var bJ=Object.defineProperty,DJ=Object.defineProperties,SJ=Object.getOwnPropertyDescriptors,EF=Object.getOwnPropertySymbols,IJ=Object.prototype.hasOwnProperty,TJ=Object.prototype.propertyIsEnumerable,mD=(an,$t,Vt)=>$t in an?bJ(an,$t,{enumerable:!0,configurable:!0,writable:!0,value:Vt}):an[$t]=Vt,Vi=(an,$t)=>{for(var Vt in $t||($t={}))IJ.call($t,Vt)&&mD(an,Vt,$t[Vt]);if(EF)for(var Vt of EF($t))TJ.call($t,Vt)&&mD(an,Vt,$t[Vt]);return an},jf=(an,$t)=>DJ(an,SJ($t)),MF=(an,$t,Vt)=>(mD(an,"symbol"!=typeof $t?$t+"":$t,Vt),Vt);(self.webpackChunkmegaform=self.webpackChunkmegaform||[]).push([[179],{288:(an,$t,Vt)=>{"use strict";function ao(n){return"function"==typeof n}let D=!1;const $r={Promise:void 0,set useDeprecatedSynchronousErrorHandling(n){if(n){const t=new Error;console.warn("DEPRECATED! RxJS was set to use deprecated synchronous error handling behavior by code at: \n"+t.stack)}else D&&console.log("RxJS: Back to a better error behavior. Thank you. <3");D=n},get useDeprecatedSynchronousErrorHandling(){return D}};function pr(n){setTimeout(()=>{throw n},0)}const lo={closed:!0,next(n){},error(n){if($r.useDeprecatedSynchronousErrorHandling)throw n;pr(n)},complete(){}},gn=Array.isArray||(n=>n&&"number"==typeof n.length);function jl(n){return null!==n&&"object"==typeof n}const ss=(()=>{function n(t){return Error.call(this),this.message=t?`${t.length} errors occurred during unsubscription:\n${t.map((e,r)=>`${r+1}) ${e.toString()}`).join("\n  ")}`:"",this.name="UnsubscriptionError",this.errors=t,this}return n.prototype=Object.create(Error.prototype),n})();class St{constructor(t){this.closed=!1,this._parentOrParents=null,this._subscriptions=null,t&&(this._ctorUnsubscribe=!0,this._unsubscribe=t)}unsubscribe(){let t;if(this.closed)return;let{_parentOrParents:e,_ctorUnsubscribe:r,_unsubscribe:i,_subscriptions:o}=this;if(this.closed=!0,this._parentOrParents=null,this._subscriptions=null,e instanceof St)e.remove(this);else if(null!==e)for(let s=0;s<e.length;++s)e[s].remove(this);if(ao(i)){r&&(this._unsubscribe=void 0);try{i.call(this)}catch(s){t=s instanceof ss?Wr(s.errors):[s]}}if(gn(o)){let s=-1,a=o.length;for(;++s<a;){const l=o[s];if(jl(l))try{l.unsubscribe()}catch(c){t=t||[],c instanceof ss?t=t.concat(Wr(c.errors)):t.push(c)}}}if(t)throw new ss(t)}add(t){let e=t;if(!t)return St.EMPTY;switch(typeof t){case"function":e=new St(t);case"object":if(e===this||e.closed||"function"!=typeof e.unsubscribe)return e;if(this.closed)return e.unsubscribe(),e;if(!(e instanceof St)){const o=e;e=new St,e._subscriptions=[o]}break;default:throw new Error("unrecognized teardown "+t+" added to Subscription.")}let{_parentOrParents:r}=e;if(null===r)e._parentOrParents=this;else if(r instanceof St){if(r===this)return e;e._parentOrParents=[r,this]}else{if(-1!==r.indexOf(this))return e;r.push(this)}const i=this._subscriptions;return null===i?this._subscriptions=[e]:i.push(e),e}remove(t){const e=this._subscriptions;if(e){const r=e.indexOf(t);-1!==r&&e.splice(r,1)}}}var n;function Wr(n){return n.reduce((t,e)=>t.concat(e instanceof ss?e.errors:e),[])}St.EMPTY=((n=new St).closed=!0,n);const uo="function"==typeof Symbol?Symbol("rxSubscriber"):"@@rxSubscriber_"+Math.random();class wt extends St{constructor(t,e,r){switch(super(),this.syncErrorValue=null,this.syncErrorThrown=!1,this.syncErrorThrowable=!1,this.isStopped=!1,arguments.length){case 0:this.destination=lo;break;case 1:if(!t){this.destination=lo;break}if("object"==typeof t){t instanceof wt?(this.syncErrorThrowable=t.syncErrorThrowable,this.destination=t,t.add(this)):(this.syncErrorThrowable=!0,this.destination=new k(this,t));break}default:this.syncErrorThrowable=!0,this.destination=new k(this,t,e,r)}}[uo](){return this}static create(t,e,r){const i=new wt(t,e,r);return i.syncErrorThrowable=!1,i}next(t){this.isStopped||this._next(t)}error(t){this.isStopped||(this.isStopped=!0,this._error(t))}complete(){this.isStopped||(this.isStopped=!0,this._complete())}unsubscribe(){this.closed||(this.isStopped=!0,super.unsubscribe())}_next(t){this.destination.next(t)}_error(t){this.destination.error(t),this.unsubscribe()}_complete(){this.destination.complete(),this.unsubscribe()}_unsubscribeAndRecycle(){const{_parentOrParents:t}=this;return this._parentOrParents=null,this.unsubscribe(),this.closed=!1,this.isStopped=!1,this._parentOrParents=t,this}}class k extends wt{constructor(t,e,r,i){super(),this._parentSubscriber=t;let o,s=this;ao(e)?o=e:e&&(o=e.next,r=e.error,i=e.complete,e!==lo&&(s=Object.create(e),ao(s.unsubscribe)&&this.add(s.unsubscribe.bind(s)),s.unsubscribe=this.unsubscribe.bind(this))),this._context=s,this._next=o,this._error=r,this._complete=i}next(t){if(!this.isStopped&&this._next){const{_parentSubscriber:e}=this;$r.useDeprecatedSynchronousErrorHandling&&e.syncErrorThrowable?this.__tryOrSetError(e,this._next,t)&&this.unsubscribe():this.__tryOrUnsub(this._next,t)}}error(t){if(!this.isStopped){const{_parentSubscriber:e}=this,{useDeprecatedSynchronousErrorHandling:r}=$r;if(this._error)r&&e.syncErrorThrowable?(this.__tryOrSetError(e,this._error,t),this.unsubscribe()):(this.__tryOrUnsub(this._error,t),this.unsubscribe());else if(e.syncErrorThrowable)r?(e.syncErrorValue=t,e.syncErrorThrown=!0):pr(t),this.unsubscribe();else{if(this.unsubscribe(),r)throw t;pr(t)}}}complete(){if(!this.isStopped){const{_parentSubscriber:t}=this;if(this._complete){const e=()=>this._complete.call(this._context);$r.useDeprecatedSynchronousErrorHandling&&t.syncErrorThrowable?(this.__tryOrSetError(t,e),this.unsubscribe()):(this.__tryOrUnsub(e),this.unsubscribe())}else this.unsubscribe()}}__tryOrUnsub(t,e){try{t.call(this._context,e)}catch(r){if(this.unsubscribe(),$r.useDeprecatedSynchronousErrorHandling)throw r;pr(r)}}__tryOrSetError(t,e,r){if(!$r.useDeprecatedSynchronousErrorHandling)throw new Error("bad call");try{e.call(this._context,r)}catch(i){return $r.useDeprecatedSynchronousErrorHandling?(t.syncErrorValue=i,t.syncErrorThrown=!0,!0):(pr(i),!0)}return!1}_unsubscribe(){const{_parentSubscriber:t}=this;this._context=null,this._parentSubscriber=null,t.unsubscribe()}}const he="function"==typeof Symbol&&Symbol.observable||"@@observable";function ee(n){return n}let ae=(()=>{class n{constructor(e){this._isScalar=!1,e&&(this._subscribe=e)}lift(e){const r=new n;return r.source=this,r.operator=e,r}subscribe(e,r,i){const{operator:o}=this,s=function K(n,t,e){if(n){if(n instanceof wt)return n;if(n[uo])return n[uo]()}return n||t||e?new wt(n,t,e):new wt(lo)}(e,r,i);if(s.add(o?o.call(s,this.source):this.source||$r.useDeprecatedSynchronousErrorHandling&&!s.syncErrorThrowable?this._subscribe(s):this._trySubscribe(s)),$r.useDeprecatedSynchronousErrorHandling&&s.syncErrorThrowable&&(s.syncErrorThrowable=!1,s.syncErrorThrown))throw s.syncErrorValue;return s}_trySubscribe(e){try{return this._subscribe(e)}catch(r){$r.useDeprecatedSynchronousErrorHandling&&(e.syncErrorThrown=!0,e.syncErrorValue=r),function F(n){for(;n;){const{closed:t,destination:e,isStopped:r}=n;if(t||r)return!1;n=e&&e instanceof wt?e:null}return!0}(e)?e.error(r):console.warn(r)}}forEach(e,r){return new(r=Ye(r))((i,o)=>{let s;s=this.subscribe(a=>{try{e(a)}catch(l){o(l),s&&s.unsubscribe()}},o,i)})}_subscribe(e){const{source:r}=this;return r&&r.subscribe(e)}[he](){return this}pipe(...e){return 0===e.length?this:function fe(n){return 0===n.length?ee:1===n.length?n[0]:function(e){return n.reduce((r,i)=>i(r),e)}}(e)(this)}toPromise(e){return new(e=Ye(e))((r,i)=>{let o;this.subscribe(s=>o=s,s=>i(s),()=>r(o))})}}return n.create=t=>new n(t),n})();function Ye(n){if(n||(n=$r.Promise||Promise),!n)throw new Error("no Promise impl found");return n}const It=(()=>{function n(){return Error.call(this),this.message="object unsubscribed",this.name="ObjectUnsubscribedError",this}return n.prototype=Object.create(Error.prototype),n})();class Rt extends St{constructor(t,e){super(),this.subject=t,this.subscriber=e,this.closed=!1}unsubscribe(){if(this.closed)return;this.closed=!0;const t=this.subject,e=t.observers;if(this.subject=null,!e||0===e.length||t.isStopped||t.closed)return;const r=e.indexOf(this.subscriber);-1!==r&&e.splice(r,1)}}class vn extends wt{constructor(t){super(t),this.destination=t}}let gr=(()=>{class n extends ae{constructor(){super(),this.observers=[],this.closed=!1,this.isStopped=!1,this.hasError=!1,this.thrownError=null}[uo](){return new vn(this)}lift(e){const r=new co(this,this);return r.operator=e,r}next(e){if(this.closed)throw new It;if(!this.isStopped){const{observers:r}=this,i=r.length,o=r.slice();for(let s=0;s<i;s++)o[s].next(e)}}error(e){if(this.closed)throw new It;this.hasError=!0,this.thrownError=e,this.isStopped=!0;const{observers:r}=this,i=r.length,o=r.slice();for(let s=0;s<i;s++)o[s].error(e);this.observers.length=0}complete(){if(this.closed)throw new It;this.isStopped=!0;const{observers:e}=this,r=e.length,i=e.slice();for(let o=0;o<r;o++)i[o].complete();this.observers.length=0}unsubscribe(){this.isStopped=!0,this.closed=!0,this.observers=null}_trySubscribe(e){if(this.closed)throw new It;return super._trySubscribe(e)}_subscribe(e){if(this.closed)throw new It;return this.hasError?(e.error(this.thrownError),St.EMPTY):this.isStopped?(e.complete(),St.EMPTY):(this.observers.push(e),new Rt(this,e))}asObservable(){const e=new ae;return e.source=this,e}}return n.create=(t,e)=>new co(t,e),n})();class co extends gr{constructor(t,e){super(),this.destination=t,this.source=e}next(t){const{destination:e}=this;e&&e.next&&e.next(t)}error(t){const{destination:e}=this;e&&e.error&&this.destination.error(t)}complete(){const{destination:t}=this;t&&t.complete&&this.destination.complete()}_subscribe(t){const{source:e}=this;return e?this.source.subscribe(t):St.EMPTY}}function gi(n){return n&&"function"==typeof n.schedule}function nt(n,t){return function(r){if("function"!=typeof n)throw new TypeError("argument is not a function. Are you looking for `mapTo()`?");return r.lift(new Gf(n,t))}}class Gf{constructor(t,e){this.project=t,this.thisArg=e}call(t,e){return e.subscribe(new vi(t,this.project,this.thisArg))}}class vi extends wt{constructor(t,e,r){super(t),this.project=e,this.count=0,this.thisArg=r||this}_next(t){let e;try{e=this.project.call(this.thisArg,t,this.count++)}catch(r){return void this.destination.error(r)}this.destination.next(e)}}const vr=n=>t=>{for(let e=0,r=n.length;e<r&&!t.closed;e++)t.next(n[e]);t.complete()},Kr=function Ic(){return"function"==typeof Symbol&&Symbol.iterator?Symbol.iterator:"@@iterator"}(),js=n=>n&&"number"==typeof n.length&&"function"!=typeof n;function Gl(n){return!!n&&"function"!=typeof n.subscribe&&"function"==typeof n.then}const Hf=n=>{if(n&&"function"==typeof n[he])return(n=>t=>{const e=n[he]();if("function"!=typeof e.subscribe)throw new TypeError("Provided object does not correctly implement Symbol.observable");return e.subscribe(t)})(n);if(js(n))return vr(n);if(Gl(n))return(n=>t=>(n.then(e=>{t.closed||(t.next(e),t.complete())},e=>t.error(e)).then(null,pr),t))(n);if(n&&"function"==typeof n[Kr])return(n=>t=>{const e=n[Kr]();for(;;){let r;try{r=e.next()}catch(i){return t.error(i),t}if(r.done){t.complete();break}if(t.next(r.value),t.closed)break}return"function"==typeof e.return&&t.add(()=>{e.return&&e.return()}),t})(n);{const e=`You provided ${jl(n)?"an invalid object":`'${n}'`} where a stream was expected. You can provide an Observable, Promise, Array, or Iterable.`;throw new TypeError(e)}};function zf(n,t){return new ae(e=>{const r=new St;let i=0;return r.add(t.schedule(function(){i!==n.length?(e.next(n[i++]),e.closed||r.add(this.schedule())):e.complete()})),r})}function xn(n,t){return t?function Bi(n,t){if(null!=n){if(function Ac(n){return n&&"function"==typeof n[he]}(n))return function Hl(n,t){return new ae(e=>{const r=new St;return r.add(t.schedule(()=>{const i=n[he]();r.add(i.subscribe({next(o){r.add(t.schedule(()=>e.next(o)))},error(o){r.add(t.schedule(()=>e.error(o)))},complete(){r.add(t.schedule(()=>e.complete()))}}))})),r})}(n,t);if(Gl(n))return function zl(n,t){return new ae(e=>{const r=new St;return r.add(t.schedule(()=>n.then(i=>{r.add(t.schedule(()=>{e.next(i),r.add(t.schedule(()=>e.complete()))}))},i=>{r.add(t.schedule(()=>e.error(i)))}))),r})}(n,t);if(js(n))return zf(n,t);if(function Nv(n){return n&&"function"==typeof n[Kr]}(n)||"string"==typeof n)return function Tc(n,t){if(!n)throw new Error("Iterable cannot be null");return new ae(e=>{const r=new St;let i;return r.add(()=>{i&&"function"==typeof i.return&&i.return()}),r.add(t.schedule(()=>{i=n[Kr](),r.add(t.schedule(function(){if(e.closed)return;let o,s;try{const a=i.next();o=a.value,s=a.done}catch(a){return void e.error(a)}s?e.complete():(e.next(o),this.schedule())}))})),r})}(n,t)}throw new TypeError((null!==n&&typeof n||n)+" is not observable")}(n,t):n instanceof ae?n:new ae(Hf(n))}class $f extends wt{constructor(t){super(),this.parent=t}_next(t){this.parent.notifyNext(t)}_error(t){this.parent.notifyError(t),this.unsubscribe()}_complete(){this.parent.notifyComplete(),this.unsubscribe()}}class Rc extends wt{notifyNext(t){this.destination.next(t)}notifyError(t){this.destination.error(t)}notifyComplete(){this.destination.complete()}}function Gs(n,t){if(t.closed)return;if(n instanceof ae)return n.subscribe(t);let e;try{e=Hf(n)(t)}catch(r){t.error(r)}return e}function Bt(n,t,e=Number.POSITIVE_INFINITY){return"function"==typeof t?r=>r.pipe(Bt((i,o)=>xn(n(i,o)).pipe(nt((s,a)=>t(i,s,o,a))),e)):("number"==typeof t&&(e=t),r=>r.lift(new $l(n,e)))}class $l{constructor(t,e=Number.POSITIVE_INFINITY){this.project=t,this.concurrent=e}call(t,e){return e.subscribe(new Oc(t,this.project,this.concurrent))}}class Oc extends Rc{constructor(t,e,r=Number.POSITIVE_INFINITY){super(t),this.project=e,this.concurrent=r,this.hasCompleted=!1,this.buffer=[],this.active=0,this.index=0}_next(t){this.active<this.concurrent?this._tryNext(t):this.buffer.push(t)}_tryNext(t){let e;const r=this.index++;try{e=this.project(t,r)}catch(i){return void this.destination.error(i)}this.active++,this._innerSub(e)}_innerSub(t){const e=new $f(this),r=this.destination;r.add(e);const i=Gs(t,e);i!==e&&r.add(i)}_complete(){this.hasCompleted=!0,0===this.active&&0===this.buffer.length&&this.destination.complete(),this.unsubscribe()}notifyNext(t){this.destination.next(t)}notifyComplete(){const t=this.buffer;this.active--,t.length>0?this._next(t.shift()):0===this.active&&this.hasCompleted&&this.destination.complete()}}function Ao(n=Number.POSITIVE_INFINITY){return Bt(ee,n)}function Wf(n,t){return t?zf(n,t):new ae(vr(n))}function ls(){return function(t){return t.lift(new qf(t))}}class qf{constructor(t){this.connectable=t}call(t,e){const{connectable:r}=this;r._refCount++;const i=new Kf(t,r),o=e.subscribe(i);return i.closed||(i.connection=r.connect()),o}}class Kf extends wt{constructor(t,e){super(t),this.connectable=e}_unsubscribe(){const{connectable:t}=this;if(!t)return void(this.connection=null);this.connectable=null;const e=t._refCount;if(e<=0)return void(this.connection=null);if(t._refCount=e-1,e>1)return void(this.connection=null);const{connection:r}=this,i=t._connection;this.connection=null,i&&(!r||i===r)&&i.unsubscribe()}}class Pc extends ae{constructor(t,e){super(),this.source=t,this.subjectFactory=e,this._refCount=0,this._isComplete=!1}_subscribe(t){return this.getSubject().subscribe(t)}getSubject(){const t=this._subject;return(!t||t.isStopped)&&(this._subject=this.subjectFactory()),this._subject}connect(){let t=this._connection;return t||(this._isComplete=!1,t=this._connection=new St,t.add(this.source.subscribe(new Yf(this.getSubject(),this))),t.closed&&(this._connection=null,t=St.EMPTY)),t}refCount(){return ls()(this)}}const Zf=(()=>{const n=Pc.prototype;return{operator:{value:null},_refCount:{value:0,writable:!0},_subject:{value:null,writable:!0},_connection:{value:null,writable:!0},_subscribe:{value:n._subscribe},_isComplete:{value:n._isComplete,writable:!0},getSubject:{value:n.getSubject},connect:{value:n.connect},refCount:{value:n.refCount}}})();class Yf extends vn{constructor(t,e){super(t),this.connectable=e}_error(t){this._unsubscribe(),super._error(t)}_complete(){this.connectable._isComplete=!0,this._unsubscribe(),super._complete()}_unsubscribe(){const t=this.connectable;if(t){this.connectable=null;const e=t._connection;t._refCount=0,t._subject=null,t._connection=null,e&&e.unsubscribe()}}}class Jf{constructor(t,e){this.subjectFactory=t,this.selector=e}call(t,e){const{selector:r}=this,i=this.subjectFactory(),o=r(i).subscribe(t);return o.add(e.subscribe(i)),o}}function SC(){return new gr}function Ut(n){for(let t in n)if(n[t]===Ut)return t;throw Error("Could not find renamed property on target object.")}function kc(n,t){for(const e in t)t.hasOwnProperty(e)&&!n.hasOwnProperty(e)&&(n[e]=t[e])}function Tt(n){if("string"==typeof n)return n;if(Array.isArray(n))return"["+n.map(Tt).join(", ")+"]";if(null==n)return""+n;if(n.overriddenName)return`${n.overriddenName}`;if(n.name)return`${n.name}`;const t=n.toString();if(null==t)return""+t;const e=t.indexOf("\n");return-1===e?t:t.substring(0,e)}function ed(n,t){return null==n||""===n?null===t?"":t:null==t||""===t?n:n+" "+t}const TC=Ut({__forward_ref__:Ut});function Wt(n){return n.__forward_ref__=Wt,n.toString=function(){return Tt(this())},n}function Qe(n){return td(n)?n():n}function td(n){return"function"==typeof n&&n.hasOwnProperty(TC)&&n.__forward_ref__===Wt}class st extends Error{constructor(t,e){super(function nd(n,t){return`NG0${Math.abs(n)}${t?": "+t:""}`}(t,e)),this.code=t}}function Ne(n){return"string"==typeof n?n:null==n?"":String(n)}function Xn(n){return"function"==typeof n?n.name||n.toString():"object"==typeof n&&null!=n&&"function"==typeof n.type?n.type.name||n.type.toString():Ne(n)}function Lc(n,t){const e=t?` in ${t}`:"";throw new st(-201,`No provider for ${Xn(n)} found${e}`)}function Yr(n,t){null==n&&function Ct(n,t,e,r){throw new Error(`ASSERTION ERROR: ${n}`+(null==r?"":` [Expected=> ${e} ${r} ${t} <=Actual]`))}(t,n,null,"!=")}function Fe(n){return{token:n.token,providedIn:n.providedIn||null,factory:n.factory,value:void 0}}function mr(n){return{providers:n.providers||[],imports:n.imports||[]}}function od(n){return Vv(n,ql)||Vv(n,Fc)}function Vv(n,t){return n.hasOwnProperty(t)?n[t]:null}function sd(n){return n&&(n.hasOwnProperty(Nc)||n.hasOwnProperty(FC))?n[Nc]:null}const ql=Ut({\u0275prov:Ut}),Nc=Ut({\u0275inj:Ut}),Fc=Ut({ngInjectableDef:Ut}),FC=Ut({ngInjectorDef:Ut});var Ve=(()=>((Ve=Ve||{})[Ve.Default=0]="Default",Ve[Ve.Host=1]="Host",Ve[Ve.Self=2]="Self",Ve[Ve.SkipSelf=4]="SkipSelf",Ve[Ve.Optional=8]="Optional",Ve))();let ka;function us(n){const t=ka;return ka=n,t}function ad(n,t,e){const r=od(n);return r&&"root"==r.providedIn?void 0===r.value?r.value=r.factory():r.value:e&Ve.Optional?null:void 0!==t?t:void Lc(Tt(n),"Injector")}function ho(n){return{toString:n}.toString()}var Ui=(()=>((Ui=Ui||{})[Ui.OnPush=0]="OnPush",Ui[Ui.Default=1]="Default",Ui))(),mi=(()=>(function(n){n[n.Emulated=0]="Emulated",n[n.None=2]="None",n[n.ShadowDom=3]="ShadowDom"}(mi||(mi={})),mi))();const La="undefined"!=typeof globalThis&&globalThis,jv="undefined"!=typeof window&&window,Gv="undefined"!=typeof self&&"undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope&&self,Ot=La||"undefined"!=typeof global&&global||jv||Gv,Hs={},jt=[],Vc=Ut({\u0275cmp:Ut}),ld=Ut({\u0275dir:Ut}),Bc=Ut({\u0275pipe:Ut}),Hv=Ut({\u0275mod:Ut}),Oo=Ut({\u0275fac:Ut}),Kl=Ut({__NG_ELEMENT_ID__:Ut});let GC=0;function An(n){return ho(()=>{const e={},r={type:n.type,providersResolver:null,decls:n.decls,vars:n.vars,factory:null,template:n.template||null,consts:n.consts||null,ngContentSelectors:n.ngContentSelectors,hostBindings:n.hostBindings||null,hostVars:n.hostVars||0,hostAttrs:n.hostAttrs||null,contentQueries:n.contentQueries||null,declaredInputs:e,inputs:null,outputs:null,exportAs:n.exportAs||null,onPush:n.changeDetection===Ui.OnPush,directiveDefs:null,pipeDefs:null,selectors:n.selectors||jt,viewQuery:n.viewQuery||null,features:n.features||null,data:n.data||{},encapsulation:n.encapsulation||mi.Emulated,id:"c",styles:n.styles||jt,_:null,setInput:null,schemas:n.schemas||null,tView:null},i=n.directives,o=n.features,s=n.pipes;return r.id+=GC++,r.inputs=Gt(n.inputs,e),r.outputs=Gt(n.outputs),o&&o.forEach(a=>a(r)),r.directiveDefs=i?()=>("function"==typeof i?i():i).map(zv):null,r.pipeDefs=s?()=>("function"==typeof s?s():s).map($v):null,r})}function zv(n){return Qn(n)||function cs(n){return n[ld]||null}(n)}function $v(n){return function zs(n){return n[Bc]||null}(n)}const Wv={};function Xr(n){return ho(()=>{const t={type:n.type,bootstrap:n.bootstrap||jt,declarations:n.declarations||jt,imports:n.imports||jt,exports:n.exports||jt,transitiveCompileScopes:null,schemas:n.schemas||null,id:n.id||null};return null!=n.id&&(Wv[n.id]=n.type),t})}function Gt(n,t){if(null==n)return Hs;const e={};for(const r in n)if(n.hasOwnProperty(r)){let i=n[r],o=i;Array.isArray(i)&&(o=i[1],i=i[0]),e[i]=r,t&&(t[i]=o)}return e}const Te=An;function Qn(n){return n[Vc]||null}function _i(n,t){const e=n[Hv]||null;if(!e&&!0===t)throw new Error(`Type ${Tt(n)} does not have '\u0275mod' property.`);return e}function Hi(n){return Array.isArray(n)&&"object"==typeof n[1]}function Tr(n){return Array.isArray(n)&&!0===n[1]}function fs(n){return 0!=(8&n.flags)}function Uc(n){return 2==(2&n.flags)}function Ql(n){return 1==(1&n.flags)}function yi(n){return null!==n.template}function hd(n){return 0!=(512&n[2])}function Ar(n,t){return n.hasOwnProperty(Oo)?n[Oo]:null}class Gc{constructor(t,e,r){this.previousValue=t,this.currentValue=e,this.firstChange=r}isFirstChange(){return this.firstChange}}function Jr(){return Jv}function Jv(n){return n.type.prototype.ngOnChanges&&(n.setInput=Va),XC}function XC(){const n=dd(this),t=null==n?void 0:n.current;if(t){const e=n.previous;if(e===Hs)n.previous=t;else for(let r in t)e[r]=t[r];n.current=null,this.ngOnChanges(t)}}function Va(n,t,e,r){const i=dd(n)||function QC(n,t){return n[wi]=t}(n,{previous:Hs,current:null}),o=i.current||(i.current={}),s=i.previous,a=this.declaredInputs[e],l=s[a];o[a]=new Gc(l&&l.currentValue,t,s===Hs),n[r]=t}Jr.ngInherit=!0;const wi="__ngSimpleChanges__";function dd(n){return n[wi]||null}const R="math";let ie;function _t(){return void 0!==ie?ie:"undefined"!=typeof document?document:void 0}function Ae(n){return!!n.listen}const zc={createRenderer:(n,t)=>_t()};function Et(n){for(;Array.isArray(n);)n=n[0];return n}function ko(n,t){return Et(t[n])}function lr(n,t){return Et(t[n.index])}function Mt(n,t){return n.data[t]}function Rr(n,t){const e=t[n];return Hi(e)?e:e[0]}function Jl(n){return 4==(4&n[2])}function vd(n){return 128==(128&n[2])}function ds(n,t){return null==t?null:n[t]}function eu(n){n[18]=0}function fo(n,t){n[5]+=t;let e=n,r=n[3];for(;null!==r&&(1===t&&1===e[5]||-1===t&&0===e[5]);)r[5]+=t,e=r,r=r[3]}const Re={lFrame:ou(null),bindingsEnabled:!0};function yd(){return Re.bindingsEnabled}function G(){return Re.lFrame.lView}function pt(){return Re.lFrame.tView}function Kt(n){return Re.lFrame.contextLView=n,n[8]}function Pn(){let n=nu();for(;null!==n&&64===n.type;)n=n.parent;return n}function nu(){return Re.lFrame.currentTNode}function Mi(n,t){const e=Re.lFrame;e.currentTNode=n,e.isParent=t}function Cd(){return Re.lFrame.isParent}function Kc(){Re.lFrame.isParent=!1}function Ua(){return Re.lFrame.bindingIndex++}function zi(n){const t=Re.lFrame,e=t.bindingIndex;return t.bindingIndex=t.bindingIndex+n,e}function ja(n,t){const e=Re.lFrame;e.bindingIndex=e.bindingRootIndex=n,Ks(t)}function Ks(n){Re.lFrame.currentDirectiveIndex=n}function Zs(){return Re.lFrame.currentQueryIndex}function Ed(n){Re.lFrame.currentQueryIndex=n}function rw(n){const t=n[1];return 2===t.type?t.declTNode:1===t.type?n[6]:null}function nm(n,t,e){if(e&Ve.SkipSelf){let i=t,o=n;for(;!(i=i.parent,null!==i||e&Ve.Host||(i=rw(o),null===i||(o=o[15],10&i.type))););if(null===i)return!1;t=i,n=o}const r=Re.lFrame=rm();return r.currentTNode=t,r.lView=n,!0}function Yc(n){const t=rm(),e=n[1];Re.lFrame=t,t.currentTNode=e.firstChild,t.lView=n,t.tView=e,t.contextLView=n,t.bindingIndex=e.bindingStartIndex,t.inI18n=!1}function rm(){const n=Re.lFrame,t=null===n?null:n.child;return null===t?ou(n):t}function ou(n){const t={currentTNode:null,isParent:!0,lView:null,tView:null,selectedIndex:-1,contextLView:null,elementDepthCount:0,currentNamespace:null,currentDirectiveIndex:-1,bindingRootIndex:-1,bindingIndex:-1,currentQueryIndex:0,parent:n,child:null,inI18n:!1};return null!==n&&(n.child=t),t}function Ha(){const n=Re.lFrame;return Re.lFrame=n.parent,n.currentTNode=null,n.lView=null,n}const Md=Ha;function M(){const n=Ha();n.isParent=!0,n.tView=null,n.selectedIndex=-1,n.contextLView=null,n.elementDepthCount=0,n.currentDirectiveIndex=-1,n.currentNamespace=null,n.bindingRootIndex=-1,n.bindingIndex=-1,n.currentQueryIndex=0}function Zt(){return Re.lFrame.selectedIndex}function Ke(n){Re.lFrame.selectedIndex=n}function un(){const n=Re.lFrame;return Mt(n.tView,n.selectedIndex)}function Qc(n,t){for(let e=t.directiveStart,r=t.directiveEnd;e<r;e++){const o=n.data[e].type.prototype,{ngAfterContentInit:s,ngAfterContentChecked:a,ngAfterViewInit:l,ngAfterViewChecked:c,ngOnDestroy:f}=o;s&&(n.contentHooks||(n.contentHooks=[])).push(-e,s),a&&((n.contentHooks||(n.contentHooks=[])).push(e,a),(n.contentCheckHooks||(n.contentCheckHooks=[])).push(e,a)),l&&(n.viewHooks||(n.viewHooks=[])).push(-e,l),c&&((n.viewHooks||(n.viewHooks=[])).push(e,c),(n.viewCheckHooks||(n.viewCheckHooks=[])).push(e,c)),null!=f&&(n.destroyHooks||(n.destroyHooks=[])).push(e,f)}}function Jc(n,t,e){im(n,t,3,e)}function xi(n,t,e,r){(3&n[2])===e&&im(n,t,e,r)}function xd(n,t){let e=n[2];(3&e)===t&&(e&=2047,e+=1,n[2]=e)}function im(n,t,e,r){const o=null!=r?r:-1,s=t.length-1;let a=0;for(let l=void 0!==r?65535&n[18]:0;l<s;l++)if("number"==typeof t[l+1]){if(a=t[l],null!=r&&a>=r)break}else t[l]<0&&(n[18]+=65536),(a<o||-1==o)&&(uw(n,e,t,l),n[18]=(4294901760&n[18])+l+2),l++}function uw(n,t,e,r){const i=e[r]<0,o=e[r+1],a=n[i?-e[r]:e[r]];if(i){if(n[2]>>11<n[18]>>16&&(3&n[2])===t){n[2]+=2048;try{o.call(a)}finally{}}}else try{o.call(a)}finally{}}class su{constructor(t,e,r){this.factory=t,this.resolving=!1,this.canSeeViewProviders=e,this.injectImpl=r}}function eh(n,t,e){const r=Ae(n);let i=0;for(;i<e.length;){const o=e[i];if("number"==typeof o){if(0!==o)break;i++;const s=e[i++],a=e[i++],l=e[i++];r?n.setAttribute(t,a,l,s):t.setAttributeNS(s,a,l)}else{const s=o,a=e[++i];Dd(s)?r&&n.setProperty(t,s,a):r?n.setAttribute(t,s,a):t.setAttribute(s,a),i++}}return i}function bi(n){return 3===n||4===n||6===n}function Dd(n){return 64===n.charCodeAt(0)}function th(n,t){if(null!==t&&0!==t.length)if(null===n||0===n.length)n=t.slice();else{let e=-1;for(let r=0;r<t.length;r++){const i=t[r];"number"==typeof i?e=i:0===e||om(n,e,i,null,-1===e||2===e?t[++r]:null)}}return n}function om(n,t,e,r,i){let o=0,s=n.length;if(-1===t)s=-1;else for(;o<n.length;){const a=n[o++];if("number"==typeof a){if(a===t){s=-1;break}if(a>t){s=o-1;break}}}for(;o<n.length;){const a=n[o];if("number"==typeof a)break;if(a===e){if(null===r)return void(null!==i&&(n[o+1]=i));if(r===n[o+1])return void(n[o+2]=i)}o++,null!==r&&o++,null!==i&&o++}-1!==s&&(n.splice(s,0,t),o=s+1),n.splice(o++,0,e),null!==r&&n.splice(o++,0,r),null!==i&&n.splice(o++,0,i)}function sm(n){return-1!==n}function Wa(n){return 32767&n}function Xs(n,t){let e=function am(n){return n>>16}(n),r=t;for(;e>0;)r=r[15],e--;return r}let Sd=!0;function nh(n){const t=Sd;return Sd=n,t}let dw=0;function uu(n,t){const e=cu(n,t);if(-1!==e)return e;const r=t[1];r.firstCreatePass&&(n.injectorIndex=t.length,$i(r.data,n),$i(t,null),$i(r.blueprint,null));const i=po(n,t),o=n.injectorIndex;if(sm(i)){const s=Wa(i),a=Xs(i,t),l=a[1].data;for(let c=0;c<8;c++)t[o+c]=a[s+c]|l[s+c]}return t[o+8]=i,o}function $i(n,t){n.push(0,0,0,0,0,0,0,0,t)}function cu(n,t){return-1===n.injectorIndex||n.parent&&n.parent.injectorIndex===n.injectorIndex||null===t[n.injectorIndex+8]?-1:n.injectorIndex}function po(n,t){if(n.parent&&-1!==n.parent.injectorIndex)return n.parent.injectorIndex;let e=0,r=null,i=t;for(;null!==i;){const o=i[1],s=o.type;if(r=2===s?o.declTNode:1===s?i[6]:null,null===r)return-1;if(e++,i=i[15],-1!==r.injectorIndex)return r.injectorIndex|e<<16}return-1}function yr(n,t,e){!function um(n,t,e){let r;"string"==typeof e?r=e.charCodeAt(0)||0:e.hasOwnProperty(Kl)&&(r=e[Kl]),null==r&&(r=e[Kl]=dw++);const i=255&r;t.data[n+(i>>5)]|=1<<i}(n,t,e)}function Id(n,t,e){if(e&Ve.Optional)return n;Lc(t,"NodeInjector")}function Td(n,t,e,r){if(e&Ve.Optional&&void 0===r&&(r=null),0==(e&(Ve.Self|Ve.Host))){const i=n[9],o=us(void 0);try{return i?i.get(t,r,e&Ve.Optional):ad(t,r,e&Ve.Optional)}finally{us(o)}}return Id(r,t,e)}function Ka(n,t,e,r=Ve.Default,i){if(null!==n){const o=function hm(n){if("string"==typeof n)return n.charCodeAt(0)||0;const t=n.hasOwnProperty(Kl)?n[Kl]:void 0;return"number"==typeof t?t>=0?255&t:cm:t}(e);if("function"==typeof o){if(!nm(t,n,r))return r&Ve.Host?Id(i,e,r):Td(t,e,r,i);try{const s=o(r);if(null!=s||r&Ve.Optional)return s;Lc(e)}finally{Md()}}else if("number"==typeof o){let s=null,a=cu(n,t),l=-1,c=r&Ve.Host?t[16][6]:null;for((-1===a||r&Ve.SkipSelf)&&(l=-1===a?po(n,t):t[a+8],-1!==l&&rh(r,!1)?(s=t[1],a=Wa(l),t=Xs(l,t)):a=-1);-1!==a;){const f=t[1];if($n(o,a,f.data)){const d=gw(a,t,e,s,r,c);if(d!==Fo)return d}l=t[a+8],-1!==l&&rh(r,t[1].data[a+8]===c)&&$n(o,a,t)?(s=f,a=Wa(l),t=Xs(l,t)):a=-1}}}return Td(t,e,r,i)}const Fo={};function cm(){return new Js(Pn(),G())}function gw(n,t,e,r,i,o){const s=t[1],a=s.data[n+8],f=Qs(a,s,e,null==r?Uc(a)&&Sd:r!=s&&0!=(3&a.type),i&Ve.Host&&o===a);return null!==f?hu(t,s,f,a):Fo}function Qs(n,t,e,r,i){const o=n.providerIndexes,s=t.data,a=1048575&o,l=n.directiveStart,f=o>>20,g=i?a+f:n.directiveEnd;for(let v=r?a:a+f;v<g;v++){const m=s[v];if(v<l&&e===m||v>=l&&m.type===e)return v}if(i){const v=s[l];if(v&&yi(v)&&v.type===e)return l}return null}function hu(n,t,e,r){let i=n[e];const o=t.data;if(function No(n){return n instanceof su}(i)){const s=i;s.resolving&&function rd(n,t){const e=t?`. Dependency path: ${t.join(" > ")} > ${n}`:"";throw new st(-200,`Circular dependency in DI detected for ${n}${e}`)}(Xn(o[e]));const a=nh(s.canSeeViewProviders);s.resolving=!0;const l=s.injectImpl?us(s.injectImpl):null;nm(n,r,Ve.Default);try{i=n[e]=s.factory(void 0,o,n,r),t.firstCreatePass&&e>=r.directiveStart&&function lw(n,t,e){const{ngOnChanges:r,ngOnInit:i,ngDoCheck:o}=t.type.prototype;if(r){const s=Jv(t);(e.preOrderHooks||(e.preOrderHooks=[])).push(n,s),(e.preOrderCheckHooks||(e.preOrderCheckHooks=[])).push(n,s)}i&&(e.preOrderHooks||(e.preOrderHooks=[])).push(0-n,i),o&&((e.preOrderHooks||(e.preOrderHooks=[])).push(n,o),(e.preOrderCheckHooks||(e.preOrderCheckHooks=[])).push(n,o))}(e,o[e],t)}finally{null!==l&&us(l),nh(a),s.resolving=!1,Md()}}return i}function $n(n,t,e){return!!(e[t+(n>>5)]&1<<n)}function rh(n,t){return!(n&Ve.Self||n&Ve.Host&&t)}class Js{constructor(t,e){this._tNode=t,this._lView=e}get(t,e,r){return Ka(this._tNode,this._lView,t,r,e)}}function Jt(n){return ho(()=>{const t=n.prototype.constructor,e=t[Oo]||fu(t),r=Object.prototype;let i=Object.getPrototypeOf(n.prototype).constructor;for(;i&&i!==r;){const o=i[Oo]||fu(i);if(o&&o!==e)return o;i=Object.getPrototypeOf(i)}return o=>new o})}function fu(n){return td(n)?()=>{const t=fu(Qe(n));return t&&t()}:Ar(n)}const ea="__parameters__";function Za(n,t,e){return ho(()=>{const r=function Ad(n){return function(...e){if(n){const r=n(...e);for(const i in r)this[i]=r[i]}}}(t);function i(...o){if(this instanceof i)return r.apply(this,o),this;const s=new i(...o);return a.annotation=s,a;function a(l,c,f){const d=l.hasOwnProperty(ea)?l[ea]:Object.defineProperty(l,ea,{value:[]})[ea];for(;d.length<=f;)d.push(null);return(d[f]=d[f]||[]).push(s),l}}return e&&(i.prototype=Object.create(e.prototype)),i.prototype.ngMetadataName=n,i.annotationCls=i,i})}class Be{constructor(t,e){this._desc=t,this.ngMetadataName="InjectionToken",this.\u0275prov=void 0,"number"==typeof e?this.__NG_ELEMENT_ID__=e:void 0!==e&&(this.\u0275prov=Fe({token:this,providedIn:e.providedIn||"root",factory:e.factory}))}toString(){return`InjectionToken ${this._desc}`}}const du=new Be("AnalyzeForEntryComponents");function Si(n,t){void 0===t&&(t=n);for(let e=0;e<n.length;e++){let r=n[e];Array.isArray(r)?(t===n&&(t=n.slice(0,e)),Si(r,t)):t!==n&&t.push(r)}return t}function Ii(n,t){n.forEach(e=>Array.isArray(e)?Ii(e,t):t(e))}function kd(n,t,e){t>=n.length?n.push(e):n.splice(t,0,e)}function gu(n,t){return t>=n.length-1?n.pop():n.splice(t,1)[0]}function Ya(n,t){const e=[];for(let r=0;r<n;r++)e.push(t);return e}function ei(n,t,e){let r=na(n,t);return r>=0?n[1|r]=e:(r=~r,function fm(n,t,e,r){let i=n.length;if(i==t)n.push(e,r);else if(1===i)n.push(r,n[0]),n[0]=e;else{for(i--,n.push(n[i-1],n[i]);i>t;)n[i]=n[i-2],i--;n[t]=e,n[t+1]=r}}(n,r,t,e)),r}function mu(n,t){const e=na(n,t);if(e>=0)return n[1|e]}function na(n,t){return function pm(n,t,e){let r=0,i=n.length>>e;for(;i!==r;){const o=r+(i-r>>1),s=n[o<<e];if(t===s)return o<<e;s>t?i=o:r=o+1}return~(i<<e)}(n,t,1)}const yu={},Xa="__NG_DI_FLAG__",Qa="ngTempTokenPath",vm=/\n/gm,Vo="__source",Bd=Ut({provide:String,useValue:Ut});let Ja;function Cu(n){const t=Ja;return Ja=n,t}function mm(n,t=Ve.Default){if(void 0===Ja)throw new st(203,"");return null===Ja?ad(n,void 0,t):Ja.get(n,t&Ve.Optional?null:void 0,t)}function oe(n,t=Ve.Default){return(function Bv(){return ka}()||mm)(Qe(n),t)}const jd=oe;function wu(n){const t=[];for(let e=0;e<n.length;e++){const r=Qe(n[e]);if(Array.isArray(r)){if(0===r.length)throw new st(900,"");let i,o=Ve.Default;for(let s=0;s<r.length;s++){const a=r[s],l=Mw(a);"number"==typeof l?-1===l?i=a.token:o|=l:i=a}t.push(oe(i,o))}else t.push(oe(r))}return t}function Ti(n,t){return n[Xa]=t,n.prototype[Xa]=t,n}function Mw(n){return n[Xa]}const Eu=Ti(Za("Inject",n=>({token:n})),-1),go=Ti(Za("Optional"),8),Mu=Ti(Za("SkipSelf"),4);var Pr=(()=>((Pr=Pr||{})[Pr.Important=1]="Important",Pr[Pr.DashCase=2]="DashCase",Pr))();const $d="__ngContext__";function Nn(n,t){n[$d]=t}function Su(n){const t=function nl(n){return n[$d]||null}(n);return t?Array.isArray(t)?t:t.lView:null}function Iu(n,t){return undefined(n,t)}function _s(n){const t=n[3];return Tr(t)?t[3]:t}function rl(n){return ys(n[13])}function Tu(n){return ys(n[4])}function ys(n){for(;null!==n&&!Tr(n);)n=n[4];return n}function Cs(n,t,e,r,i){if(null!=r){let o,s=!1;Tr(r)?o=r:Hi(r)&&(s=!0,r=r[0]);const a=Et(r);0===n&&null!==e?null==i?Qd(t,e,a):ws(t,e,a,i||null,!0):1===n&&null!==e?ws(t,e,a,i||null,!0):2===n?function sl(n,t,e){const r=dh(n,t);r&&function Vw(n,t,e,r){Ae(n)?n.removeChild(t,e,r):t.removeChild(e)}(n,r,t,e)}(t,a,s):3===n&&t.destroyNode(a),null!=o&&function km(n,t,e,r,i){const o=e[7];o!==Et(e)&&Cs(t,n,r,o,i);for(let a=10;a<e.length;a++){const l=e[a];kr(l[1],l,n,t,r,o)}}(t,n,o,e,i)}}function Zd(n,t,e){if(Ae(n))return n.createElement(t,e);{const r=null!==e?function L(n){const t=n.toLowerCase();return"svg"===t?"http://www.w3.org/2000/svg":t===R?"http://www.w3.org/1998/MathML/":null}(e):null;return null===r?n.createElement(t):n.createElementNS(r,t)}}function mo(n,t){const e=n[9],r=e.indexOf(t),i=t[3];1024&t[2]&&(t[2]&=-1025,fo(i,-1)),e.splice(r,1)}function nr(n,t){if(n.length<=10)return;const e=10+t,r=n[e];if(r){const i=r[17];null!==i&&i!==n&&mo(i,r),t>0&&(n[e-1][4]=r[4]);const o=gu(n,10+t);!function Im(n,t){kr(n,t,t[11],2,null,null),t[0]=null,t[6]=null}(r[1],r);const s=o[19];null!==s&&s.detachView(o[1]),r[3]=null,r[4]=null,r[2]&=-129}return r}function fh(n,t){if(!(256&t[2])){const e=t[11];Ae(e)&&e.destroyNode&&kr(n,t,e,3,null,null),function kw(n){let t=n[13];if(!t)return Yd(n[1],n);for(;t;){let e=null;if(Hi(t))e=t[13];else{const r=t[10];r&&(e=r)}if(!e){for(;t&&!t[4]&&t!==n;)Hi(t)&&Yd(t[1],t),t=t[3];null===t&&(t=n),Hi(t)&&Yd(t[1],t),e=t&&t[4]}t=e}}(t)}}function Yd(n,t){if(!(256&t[2])){t[2]&=-129,t[2]|=256,function Fw(n,t){let e;if(null!=n&&null!=(e=n.destroyHooks))for(let r=0;r<e.length;r+=2){const i=t[e[r]];if(!(i instanceof su)){const o=e[r+1];if(Array.isArray(o))for(let s=0;s<o.length;s+=2){const a=i[o[s]],l=o[s+1];try{l.call(a)}finally{}}else try{o.call(i)}finally{}}}}(n,t),function Xd(n,t){const e=n.cleanup,r=t[7];let i=-1;if(null!==e)for(let o=0;o<e.length-1;o+=2)if("string"==typeof e[o]){const s=e[o+1],a="function"==typeof s?s(t):Et(t[s]),l=r[i=e[o+2]],c=e[o+3];"boolean"==typeof c?a.removeEventListener(e[o],l,c):c>=0?r[i=c]():r[i=-c].unsubscribe(),o+=2}else{const s=r[i=e[o+1]];e[o].call(s)}if(null!==r){for(let o=i+1;o<r.length;o++)r[o]();t[7]=null}}(n,t),1===t[1].type&&Ae(t[11])&&t[11].destroy();const e=t[17];if(null!==e&&Tr(t[3])){e!==t[3]&&mo(e,t);const r=t[19];null!==r&&r.detachView(n)}}}function Am(n,t,e){return function il(n,t,e){let r=t;for(;null!==r&&40&r.type;)r=(t=r).parent;if(null===r)return e[0];if(2&r.flags){const i=n.data[r.directiveStart].encapsulation;if(i===mi.None||i===mi.Emulated)return null}return lr(r,e)}(n,t.parent,e)}function ws(n,t,e,r,i){Ae(n)?n.insertBefore(t,e,r,i):t.insertBefore(e,r,i)}function Qd(n,t,e){Ae(n)?n.appendChild(t,e):t.appendChild(e)}function Rm(n,t,e,r,i){null!==r?ws(n,t,e,r,i):Qd(n,t,e)}function dh(n,t){return Ae(n)?n.parentNode(t):t.parentNode}function Jd(n,t,e){return Om(n,t,e)}let vh,mh,Om=function ep(n,t,e){return 40&n.type?lr(n,e):null};function Es(n,t,e,r){const i=Am(n,r,t),o=t[11],a=Jd(r.parent||t[6],r,t);if(null!=i)if(Array.isArray(e))for(let l=0;l<e.length;l++)Rm(o,i,e[l],a,!1);else Rm(o,i,e,a,!1)}function ol(n,t){if(null!==t){const e=t.type;if(3&e)return lr(t,n);if(4&e)return ph(-1,n[t.index]);if(8&e){const r=t.child;if(null!==r)return ol(n,r);{const i=n[t.index];return Tr(i)?ph(-1,i):Et(i)}}if(32&e)return Iu(t,n)()||Et(n[t.index]);{const r=np(n,t);return null!==r?Array.isArray(r)?r[0]:ol(_s(n[16]),r):ol(n,t.next)}}return null}function np(n,t){return null!==t?n[16][6].projection[t.projection]:null}function ph(n,t){const e=10+n+1;if(e<t.length){const r=t[e],i=r[1].firstChild;if(null!==i)return ol(r,i)}return t[7]}function gh(n,t,e,r,i,o,s){for(;null!=e;){const a=r[e.index],l=e.type;if(s&&0===t&&(a&&Nn(Et(a),r),e.flags|=4),64!=(64&e.flags))if(8&l)gh(n,t,e.child,r,i,o,!1),Cs(t,n,i,a,o);else if(32&l){const c=Iu(e,r);let f;for(;f=c();)Cs(t,n,i,f,o);Cs(t,n,i,a,o)}else 16&l?Pm(n,t,r,e,i,o):Cs(t,n,i,a,o);e=s?e.projectionNext:e.next}}function kr(n,t,e,r,i,o){gh(e,r,n.firstChild,t,i,o,!1)}function Pm(n,t,e,r,i,o){const s=e[16],l=s[6].projection[r.projection];if(Array.isArray(l))for(let c=0;c<l.length;c++)Cs(t,n,i,l[c],o);else gh(n,t,l,s[3],i,o,!0)}function Lm(n,t,e){Ae(n)?n.setAttribute(t,"style",e):t.style.cssText=e}function rp(n,t,e){Ae(n)?""===e?n.removeAttribute(t,"class"):n.setAttribute(t,"class",e):t.className=e}function sa(n){var t;return(null===(t=function ip(){if(void 0===vh&&(vh=null,Ot.trustedTypes))try{vh=Ot.trustedTypes.createPolicy("angular",{createHTML:n=>n,createScript:n=>n,createScriptURL:n=>n})}catch(n){}return vh}())||void 0===t?void 0:t.createHTML(n))||n}function op(n){var t;return(null===(t=function _h(){if(void 0===mh&&(mh=null,Ot.trustedTypes))try{mh=Ot.trustedTypes.createPolicy("angular#unsafe-bypass",{createHTML:n=>n,createScript:n=>n,createScriptURL:n=>n})}catch(n){}return mh}())||void 0===t?void 0:t.createHTML(n))||n}class aa{constructor(t){this.changingThisBreaksApplicationSecurity=t}toString(){return`SafeValue must use [property]=binding: ${this.changingThisBreaksApplicationSecurity} (see https://g.co/ng/security#xss)`}}class zw extends aa{getTypeName(){return"HTML"}}class Fm extends aa{getTypeName(){return"Style"}}class $w extends aa{getTypeName(){return"Script"}}class Ww extends aa{getTypeName(){return"URL"}}class qw extends aa{getTypeName(){return"ResourceURL"}}function ni(n){return n instanceof aa?n.changingThisBreaksApplicationSecurity:n}function _o(n,t){const e=Vm(n);if(null!=e&&e!==t){if("ResourceURL"===e&&"URL"===t)return!0;throw new Error(`Required a safe ${t}, got a ${e} (see https://g.co/ng/security#xss)`)}return e===t}function Vm(n){return n instanceof aa&&n.getTypeName()||null}class Xw{constructor(t){this.inertDocumentHelper=t}getInertBodyElement(t){t="<body><remove></remove>"+t;try{const e=(new window.DOMParser).parseFromString(sa(t),"text/html").body;return null===e?this.inertDocumentHelper.getInertBodyElement(t):(e.removeChild(e.firstChild),e)}catch(e){return null}}}class Qw{constructor(t){if(this.defaultDoc=t,this.inertDocument=this.defaultDoc.implementation.createHTMLDocument("sanitization-inert"),null==this.inertDocument.body){const e=this.inertDocument.createElement("html");this.inertDocument.appendChild(e);const r=this.inertDocument.createElement("body");e.appendChild(r)}}getInertBodyElement(t){const e=this.inertDocument.createElement("template");if("content"in e)return e.innerHTML=sa(t),e;const r=this.inertDocument.createElement("body");return r.innerHTML=sa(t),this.defaultDoc.documentMode&&this.stripCustomNsAttrs(r),r}stripCustomNsAttrs(t){const e=t.attributes;for(let i=e.length-1;0<i;i--){const s=e.item(i).name;("xmlns:ns1"===s||0===s.indexOf("ns1:"))&&t.removeAttribute(s)}let r=t.firstChild;for(;r;)r.nodeType===Node.ELEMENT_NODE&&this.stripCustomNsAttrs(r),r=r.nextSibling}}const ap=/^(?:(?:https?|mailto|ftp|tel|file|sms):|[^&:/?#]*(?:[/?#]|$))/gi,eE=/^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 Ru(n){return(n=String(n)).match(ap)||n.match(eE)?n:"unsafe:"+n}function jm(n){return(n=String(n)).split(",").map(t=>Ru(t.trim())).join(", ")}function yo(n){const t={};for(const e of n.split(","))t[e]=!0;return t}function Ou(...n){const t={};for(const e of n)for(const r in e)e.hasOwnProperty(r)&&(t[r]=!0);return t}const Gm=yo("area,br,col,hr,img,wbr"),Hm=yo("colgroup,dd,dt,li,p,tbody,td,tfoot,th,thead,tr"),zm=yo("rp,rt"),lp=Ou(Gm,Ou(Hm,yo("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")),Ou(zm,yo("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")),Ou(zm,Hm)),up=yo("background,cite,href,itemtype,longdesc,poster,src,xlink:href"),cp=yo("srcset"),$m=Ou(up,cp,yo("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"),yo("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")),tE=yo("script,style,template");class nE{constructor(){this.sanitizedSomething=!1,this.buf=[]}sanitizeChildren(t){let e=t.firstChild,r=!0;for(;e;)if(e.nodeType===Node.ELEMENT_NODE?r=this.startElement(e):e.nodeType===Node.TEXT_NODE?this.chars(e.nodeValue):this.sanitizedSomething=!0,r&&e.firstChild)e=e.firstChild;else for(;e;){e.nodeType===Node.ELEMENT_NODE&&this.endElement(e);let i=this.checkClobberedElement(e,e.nextSibling);if(i){e=i;break}e=this.checkClobberedElement(e,e.parentNode)}return this.buf.join("")}startElement(t){const e=t.nodeName.toLowerCase();if(!lp.hasOwnProperty(e))return this.sanitizedSomething=!0,!tE.hasOwnProperty(e);this.buf.push("<"),this.buf.push(e);const r=t.attributes;for(let i=0;i<r.length;i++){const o=r.item(i),s=o.name,a=s.toLowerCase();if(!$m.hasOwnProperty(a)){this.sanitizedSomething=!0;continue}let l=o.value;up[a]&&(l=Ru(l)),cp[a]&&(l=jm(l)),this.buf.push(" ",s,'="',qm(l),'"')}return this.buf.push(">"),!0}endElement(t){const e=t.nodeName.toLowerCase();lp.hasOwnProperty(e)&&!Gm.hasOwnProperty(e)&&(this.buf.push("</"),this.buf.push(e),this.buf.push(">"))}chars(t){this.buf.push(qm(t))}checkClobberedElement(t,e){if(e&&(t.compareDocumentPosition(e)&Node.DOCUMENT_POSITION_CONTAINED_BY)===Node.DOCUMENT_POSITION_CONTAINED_BY)throw new Error(`Failed to sanitize html because the element is clobbered: ${t.outerHTML}`);return e}}const hp=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,Wm=/([^\#-~ |!])/g;function qm(n){return n.replace(/&/g,"&amp;").replace(hp,function(t){return"&#"+(1024*(t.charCodeAt(0)-55296)+(t.charCodeAt(1)-56320)+65536)+";"}).replace(Wm,function(t){return"&#"+t.charCodeAt(0)+";"}).replace(/</g,"&lt;").replace(/>/g,"&gt;")}let yh;function Km(n,t){let e=null;try{yh=yh||function Um(n){const t=new Qw(n);return function Jw(){try{return!!(new window.DOMParser).parseFromString(sa(""),"text/html")}catch(n){return!1}}()?new Xw(t):t}(n);let r=t?String(t):"";e=yh.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=e.innerHTML,e=yh.getInertBodyElement(r)}while(r!==o);return sa((new nE).sanitizeChildren(fp(e)||e))}finally{if(e){const r=fp(e)||e;for(;r.firstChild;)r.removeChild(r.firstChild)}}}function fp(n){return"content"in n&&function rE(n){return n.nodeType===Node.ELEMENT_NODE&&"TEMPLATE"===n.nodeName}(n)?n.content:null}var Ht=(()=>((Ht=Ht||{})[Ht.NONE=0]="NONE",Ht[Ht.HTML=1]="HTML",Ht[Ht.STYLE=2]="STYLE",Ht[Ht.SCRIPT=3]="SCRIPT",Ht[Ht.URL=4]="URL",Ht[Ht.RESOURCE_URL=5]="RESOURCE_URL",Ht))();function la(n){const t=Pu();return t?op(t.sanitize(Ht.HTML,n)||""):_o(n,"HTML")?op(ni(n)):Km(_t(),Ne(n))}function ua(n){const t=Pu();return t?t.sanitize(Ht.URL,n)||"":_o(n,"URL")?ni(n):Ru(Ne(n))}function Pu(){const n=G();return n&&n[12]}function pp(n){return n.ngOriginalError}function fE(n,...t){n.error(...t)}class ku{constructor(){this._console=console}handleError(t){const e=this._findOriginalError(t),r=function hE(n){return n&&n.ngErrorLogger||fE}(t);r(this._console,"ERROR",t),e&&r(this._console,"ORIGINAL ERROR",e)}_findOriginalError(t){let e=t&&pp(t);for(;e&&pp(e);)e=pp(e);return e||null}}const mE=(()=>("undefined"!=typeof requestAnimationFrame&&requestAnimationFrame||setTimeout).bind(Ot))();function Co(n){return n instanceof Function?n():n}function Jm(n,t,e){let r=n.length;for(;;){const i=n.indexOf(t,e);if(-1===i)return i;if(0===i||n.charCodeAt(i-1)<=32){const o=t.length;if(i+o===r||n.charCodeAt(i+o)<=32)return i}e=i+1}}const e_="ng-template";function CE(n,t,e){let r=0;for(;r<n.length;){let i=n[r++];if(e&&"class"===i){if(i=n[r],-1!==Jm(i.toLowerCase(),t,0))return!0}else if(1===i){for(;r<n.length&&"string"==typeof(i=n[r++]);)if(i.toLowerCase()===t)return!0;return!1}}return!1}function Lu(n){return 4===n.type&&n.value!==e_}function wE(n,t,e){return t===(4!==n.type||e?n.value:e_)}function t_(n,t,e){let r=4;const i=n.attrs||[],o=function r_(n){for(let t=0;t<n.length;t++)if(bi(n[t]))return t;return n.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&&!wE(n,l,e)||""===l&&1===t.length){if(Ri(r))return!1;s=!0}}else{const c=8&r?l:t[++a];if(8&r&&null!==n.attrs){if(!CE(n.attrs,c,e)){if(Ri(r))return!1;s=!0}continue}const d=gp(8&r?"class":l,i,Lu(n),e);if(-1===d){if(Ri(r))return!1;s=!0;continue}if(""!==c){let g;g=d>o?"":i[d+1].toLowerCase();const v=8&r?g:null;if(v&&-1!==Jm(v,c,0)||2&r&&c!==g){if(Ri(r))return!1;s=!0}}}}else{if(!s&&!Ri(r)&&!Ri(l))return!1;if(s&&Ri(l))continue;s=!1,r=l|1&r}}return Ri(r)||s}function Ri(n){return 0==(1&n)}function gp(n,t,e,r){if(null===t)return-1;let i=0;if(r||!e){let o=!1;for(;i<t.length;){const s=t[i];if(s===n)return i;if(3===s||6===s)o=!0;else{if(1===s||2===s){let a=t[++i];for(;"string"==typeof a;)a=t[++i];continue}if(4===s)break;if(0===s){i+=4;continue}}i+=o?1:2}return-1}return function i_(n,t){let e=n.indexOf(4);if(e>-1)for(e++;e<n.length;){const r=n[e];if("number"==typeof r)return-1;if(r===t)return e;e++}return-1}(t,n)}function vp(n,t,e=!1){for(let r=0;r<t.length;r++)if(t_(n,t[r],e))return!0;return!1}function EE(n,t){e:for(let e=0;e<t.length;e++){const r=t[e];if(n.length===r.length){for(let i=0;i<n.length;i++)if(n[i]!==r[i])continue e;return!0}}return!1}function o_(n,t){return n?":not("+t.trim()+")":t}function ME(n){let t=n[0],e=1,r=2,i="",o=!1;for(;e<n.length;){let s=n[e];if("string"==typeof s)if(2&r){const a=n[++e];i+="["+s+(a.length>0?'="'+a+'"':"")+"]"}else 8&r?i+="."+s:4&r&&(i+=" "+s);else""!==i&&!Ri(s)&&(t+=o_(o,i),i=""),r=s,o=o||!Ri(r);e++}return""!==i&&(t+=o_(o,i)),t}const ze={};function ne(n){xh(pt(),G(),Zt()+n,!1)}function xh(n,t,e,r){if(!r)if(3==(3&t[2])){const o=n.preOrderCheckHooks;null!==o&&Jc(t,o,e)}else{const o=n.preOrderHooks;null!==o&&xi(t,o,0,e)}Ke(e)}function bh(n,t){return n<<17|t<<2}function Ki(n){return n>>17&32767}function _p(n){return 2|n}function Bo(n){return(131068&n)>>2}function yp(n,t){return-131069&n|t<<2}function Cp(n){return 1|n}function f_(n,t){const e=n.contentQueries;if(null!==e)for(let r=0;r<e.length;r+=2){const i=e[r],o=e[r+1];if(-1!==o){const s=n.data[o];Ed(i),s.contentQueries(2,t[o],o)}}}function je(n,t,e,r,i,o,s,a,l,c){const f=t.blueprint.slice();return f[0]=i,f[2]=140|r,eu(f),f[3]=f[15]=n,f[8]=e,f[10]=s||n&&n[10],f[11]=a||n&&n[11],f[12]=l||n&&n[12]||null,f[9]=c||n&&n[9]||null,f[6]=o,f[16]=2==t.type?n[16]:f,f}function ca(n,t,e,r,i){let o=n.data[t];if(null===o)o=function Fr(n,t,e,r,i){const o=nu(),s=Cd(),l=n.data[t]=function kE(n,t,e,r,i,o){return{type:e,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,e,t,r,i);return null===n.firstChild&&(n.firstChild=l),null!==o&&(s?null==o.child&&null!==l.parent&&(o.child=l):null===o.next&&(o.next=l)),l}(n,t,e,r,i),function ru(){return Re.lFrame.inI18n}()&&(o.flags|=64);else if(64&o.type){o.type=e,o.value=r,o.attrs=i;const s=function ps(){const n=Re.lFrame,t=n.currentTNode;return n.isParent?t:t.parent}();o.injectorIndex=null===s?-1:s.injectorIndex}return Mi(o,!0),o}function ha(n,t,e,r){if(0===e)return-1;const i=t.length;for(let o=0;o<e;o++)t.push(r),n.blueprint.push(r),n.data.push(null);return i}function Fu(n,t,e){Yc(t);try{const r=n.viewQuery;null!==r&&Vp(1,r,e);const i=n.template;null!==i&&Dp(n,t,i,1,e),n.firstCreatePass&&(n.firstCreatePass=!1),n.staticContentQueries&&f_(n,t),n.staticViewQueries&&Vp(2,n.viewQuery,e);const o=n.components;null!==o&&function jo(n,t){for(let e=0;e<t.length;e++)D_(n,t[e])}(t,o)}catch(r){throw n.firstCreatePass&&(n.incompleteFirstPass=!0,n.firstCreatePass=!1),r}finally{t[2]&=-5,M()}}function ft(n,t,e,r){const i=t[2];if(256!=(256&i)){Yc(t);try{eu(t),function wd(n){return Re.lFrame.bindingIndex=n}(n.bindingStartIndex),null!==e&&Dp(n,t,e,2,r);const s=3==(3&i);if(s){const c=n.preOrderCheckHooks;null!==c&&Jc(t,c,null)}else{const c=n.preOrderHooks;null!==c&&xi(t,c,0,null),xd(t,0)}if(function WE(n){for(let t=rl(n);null!==t;t=Tu(t)){if(!t[2])continue;const e=t[9];for(let r=0;r<e.length;r++){const i=e[r],o=i[3];0==(1024&i[2])&&fo(o,1),i[2]|=1024}}}(t),function $E(n){for(let t=rl(n);null!==t;t=Tu(t))for(let e=10;e<t.length;e++){const r=t[e],i=r[1];vd(r)&&ft(i,r,i.template,r[8])}}(t),null!==n.contentQueries&&f_(n,t),s){const c=n.contentCheckHooks;null!==c&&Jc(t,c)}else{const c=n.contentHooks;null!==c&&xi(t,c,1),xd(t,1)}!function RE(n,t){const e=n.hostBindingOpCodes;if(null!==e)try{for(let r=0;r<e.length;r++){const i=e[r];if(i<0)Ke(~i);else{const o=i,s=e[++r],a=e[++r];ja(s,o),a(2,t[o])}}}finally{Ke(-1)}}(n,t);const a=n.components;null!==a&&function d_(n,t){for(let e=0;e<t.length;e++)qE(n,t[e])}(t,a);const l=n.viewQuery;if(null!==l&&Vp(2,l,r),s){const c=n.viewCheckHooks;null!==c&&Jc(t,c)}else{const c=n.viewHooks;null!==c&&xi(t,c,2),xd(t,2)}!0===n.firstUpdatePass&&(n.firstUpdatePass=!1),t[2]&=-73,1024&t[2]&&(t[2]&=-1025,fo(t[3],-1))}finally{M()}}}function OE(n,t,e,r){const i=t[10],s=Jl(t);try{!s&&i.begin&&i.begin(),s&&Fu(n,t,r),ft(n,t,e,r)}finally{!s&&i.end&&i.end()}}function Dp(n,t,e,r,i){const o=Zt(),s=2&r;try{Ke(-1),s&&t.length>20&&xh(n,t,20,!1),e(r,i)}finally{Ke(o)}}function Vu(n,t,e){if(fs(t)){const i=t.directiveEnd;for(let o=t.directiveStart;o<i;o++){const s=n.data[o];s.contentQueries&&s.contentQueries(1,e[o],o)}}}function Sp(n,t,e){!yd()||(function w_(n,t,e,r){const i=e.directiveStart,o=e.directiveEnd;n.firstCreatePass||uu(e,t),Nn(r,t);const s=e.initialInputs;for(let a=i;a<o;a++){const l=n.data[a],c=yi(l);c&&x_(t,e,l);const f=hu(t,n,a,e);Nn(f,t),null!==s&&HE(0,a-i,f,l,0,s),c&&(Rr(e.index,t)[8]=f)}}(n,t,e,lr(e,t)),128==(128&e.flags)&&function BE(n,t,e){const r=e.directiveStart,i=e.directiveEnd,s=e.index,a=function iu(){return Re.lFrame.currentDirectiveIndex}();try{Ke(s);for(let l=r;l<i;l++){const c=n.data[l],f=t[l];Ks(l),(null!==c.hostBindings||0!==c.hostVars||null!==c.hostAttrs)&&E_(c,f)}}finally{Ke(-1),Ks(a)}}(n,t,e))}function Ip(n,t,e=lr){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?e(t,n):n[s];n[i++]=a}}}function p_(n){const t=n.tView;return null===t||t.incompleteFirstPass?n.tView=Ah(1,null,n.template,n.decls,n.vars,n.directiveDefs,n.pipeDefs,n.viewQuery,n.schemas,n.consts):t}function Ah(n,t,e,r,i,o,s,a,l,c){const f=20+r,d=f+i,g=function PE(n,t){const e=[];for(let r=0;r<t;r++)e.push(r<n?null:ze);return e}(f,d),v="function"==typeof c?c():c;return g[1]={type:n,blueprint:g,template:e,queries:null,viewQuery:a,declTNode:t,data:g.slice().fill(null,f),bindingStartIndex:f,expandoStartIndex:d,hostBindingOpCodes:null,firstCreatePass:!0,firstUpdatePass:!0,staticViewQueries:!1,staticContentQueries:!1,preOrderHooks:null,preOrderCheckHooks:null,contentHooks:null,contentCheckHooks:null,viewHooks:null,viewCheckHooks:null,destroyHooks:null,cleanup:null,contentQueries:null,components:null,directiveRegistry:"function"==typeof o?o():o,pipeRegistry:"function"==typeof s?s():s,firstChild:null,schemas:l,consts:v,incompleteFirstPass:!1}}function m_(n,t,e,r){const i=T_(t);null===e?i.push(r):(i.push(e),n.firstCreatePass&&A_(n).push(r,i.length-1))}function __(n,t,e){for(let r in n)if(n.hasOwnProperty(r)){const i=n[r];(e=null===e?{}:e).hasOwnProperty(r)?e[r].push(t,i):e[r]=[t,i]}return e}function Ap(n,t,e,r){let i=!1;if(yd()){const o=function UE(n,t,e){const r=n.directiveRegistry;let i=null;if(r)for(let o=0;o<r.length;o++){const s=r[o];vp(e,s.selectors,!1)&&(i||(i=[]),yr(uu(e,t),n,s.type),yi(s)?(Rp(n,e),i.unshift(s)):i.push(s))}return i}(n,t,e),s=null===r?null:{"":-1};if(null!==o){i=!0,M_(e,n.data.length,o.length);for(let f=0;f<o.length;f++){const d=o[f];d.providersResolver&&d.providersResolver(d)}let a=!1,l=!1,c=ha(n,t,o.length,null);for(let f=0;f<o.length;f++){const d=o[f];e.mergedAttrs=th(e.mergedAttrs,d.hostAttrs),Op(n,e,t,c,d),GE(c,d,s),null!==d.contentQueries&&(e.flags|=8),(null!==d.hostBindings||null!==d.hostAttrs||0!==d.hostVars)&&(e.flags|=128);const g=d.type.prototype;!a&&(g.ngOnChanges||g.ngOnInit||g.ngDoCheck)&&((n.preOrderHooks||(n.preOrderHooks=[])).push(e.index),a=!0),!l&&(g.ngOnChanges||g.ngDoCheck)&&((n.preOrderCheckHooks||(n.preOrderCheckHooks=[])).push(e.index),l=!0),c++}!function LE(n,t){const r=t.directiveEnd,i=n.data,o=t.attrs,s=[];let a=null,l=null;for(let c=t.directiveStart;c<r;c++){const f=i[c],d=f.inputs,g=null===o||Lu(t)?null:zE(d,o);s.push(g),a=__(d,c,a),l=__(f.outputs,c,l)}null!==a&&(a.hasOwnProperty("class")&&(t.flags|=16),a.hasOwnProperty("style")&&(t.flags|=32)),t.initialInputs=s,t.inputs=a,t.outputs=l}(n,e)}s&&function jE(n,t,e){if(t){const r=n.localNames=[];for(let i=0;i<t.length;i+=2){const o=e[t[i+1]];if(null==o)throw new st(-301,!1);r.push(t[i],o)}}}(e,r,s)}return e.mergedAttrs=th(e.mergedAttrs,e.attrs),i}function C_(n,t,e,r,i,o){const s=o.hostBindings;if(s){let a=n.hostBindingOpCodes;null===a&&(a=n.hostBindingOpCodes=[]);const l=~t.index;(function VE(n){let t=n.length;for(;t>0;){const e=n[--t];if("number"==typeof e&&e<0)return e}return 0})(a)!=l&&a.push(l),a.push(r,i,s)}}function E_(n,t){null!==n.hostBindings&&n.hostBindings(1,t)}function Rp(n,t){t.flags|=2,(n.components||(n.components=[])).push(t.index)}function GE(n,t,e){if(e){if(t.exportAs)for(let r=0;r<t.exportAs.length;r++)e[t.exportAs[r]]=n;yi(t)&&(e[""]=n)}}function M_(n,t,e){n.flags|=1,n.directiveStart=t,n.directiveEnd=t+e,n.providerIndexes=t}function Op(n,t,e,r,i){n.data[r]=i;const o=i.factory||(i.factory=Ar(i.type)),s=new su(o,yi(i),null);n.blueprint[r]=s,e[r]=s,C_(n,t,0,r,ha(n,e,i.hostVars,ze),i)}function x_(n,t,e){const r=lr(t,n),i=p_(e),o=n[10],s=Rh(n,je(n,i,null,e.onPush?64:16,r,t,o,o.createRenderer(r,e),null,null));n[t.index]=s}function wo(n,t,e,r,i,o){const s=lr(n,t);!function Pp(n,t,e,r,i,o,s){if(null==o)Ae(n)?n.removeAttribute(t,i,e):t.removeAttribute(i);else{const a=null==s?Ne(o):s(o,r||"",i);Ae(n)?n.setAttribute(t,i,a,e):e?t.setAttributeNS(e,i,a):t.setAttribute(i,a)}}(t[11],s,o,n.value,e,r,i)}function HE(n,t,e,r,i,o){const s=o[t];if(null!==s){const a=r.setInput;for(let l=0;l<s.length;){const c=s[l++],f=s[l++],d=s[l++];null!==a?r.setInput(e,d,c,f):e[f]=d}}}function zE(n,t){let e=null,r=0;for(;r<t.length;){const i=t[r];if(0!==i)if(5!==i){if("number"==typeof i)break;n.hasOwnProperty(i)&&(null===e&&(e=[]),e.push(i,n[i],t[r+1])),r+=2}else r+=2;else r+=4}return e}function b_(n,t,e,r){return new Array(n,!0,!1,t,null,0,r,e,null,null)}function qE(n,t){const e=Rr(t,n);if(vd(e)){const r=e[1];80&e[2]?ft(r,e,r.template,e[8]):e[5]>0&&kp(e)}}function kp(n){for(let r=rl(n);null!==r;r=Tu(r))for(let i=10;i<r.length;i++){const o=r[i];if(1024&o[2]){const s=o[1];ft(s,o,s.template,o[8])}else o[5]>0&&kp(o)}const e=n[1].components;if(null!==e)for(let r=0;r<e.length;r++){const i=Rr(e[r],n);vd(i)&&i[5]>0&&kp(i)}}function D_(n,t){const e=Rr(t,n),r=e[1];(function S_(n,t){for(let e=t.length;e<n.blueprint.length;e++)t.push(n.blueprint[e])})(r,e),Fu(r,e,e[8])}function Rh(n,t){return n[13]?n[14][4]=t:n[13]=t,n[14]=t,t}function Lp(n){for(;n;){n[2]|=64;const t=_s(n);if(hd(n)&&!t)return n;n=t}return null}function I_(n){!function Np(n){for(let t=0;t<n.components.length;t++){const e=n.components[t],r=Su(e),i=r[1];OE(i,r,i.template,e)}}(n[8])}function Vp(n,t,e){Ed(0),t(n,e)}const ZE=(()=>Promise.resolve(null))();function T_(n){return n[7]||(n[7]=[])}function A_(n){return n.cleanup||(n.cleanup=[])}function O_(n,t){const e=n[9],r=e?e.get(ku,null):null;r&&r.handleError(t)}function P_(n,t,e,r,i){for(let o=0;o<e.length;){const s=e[o++],a=e[o++],l=t[s],c=n.data[s];null!==c.setInput?c.setInput(l,i,r,a):l[a]=i}}function Go(n,t,e){const r=ko(t,n);!function tr(n,t,e){Ae(n)?n.setValue(t,e):t.textContent=e}(n[11],r,e)}function Oh(n,t,e){let r=e?n.styles:null,i=e?n.classes:null,o=0;if(null!==t)for(let s=0;s<t.length;s++){const a=t[s];"number"==typeof a?o=a:1==o?i=ed(i,a):2==o&&(r=ed(r,a+": "+t[++s]+";"))}e?n.styles=r:n.stylesWithoutHost=r,e?n.classes=i:n.classesWithoutHost=i}const Bp=new Be("INJECTOR",-1);class k_{get(t,e=yu){if(e===yu){const r=new Error(`NullInjectorError: No provider for ${Tt(t)}!`);throw r.name="NullInjectorError",r}return e}}const Up=new Be("Set Injector scope."),Uu={},jp={};let Ph;function Gp(){return void 0===Ph&&(Ph=new k_),Ph}function L_(n,t=null,e=null,r){const i=N_(n,t,e,r);return i._resolveInjectorDefTypes(),i}function N_(n,t=null,e=null,r){return new QE(n,e,t||Gp(),r)}class QE{constructor(t,e,r,i=null){this.parent=r,this.records=new Map,this.injectorDefTypes=new Set,this.onDestroy=new Set,this._destroyed=!1;const o=[];e&&Ii(e,a=>this.processProvider(a,t,e)),Ii([t],a=>this.processInjectorType(a,[],o)),this.records.set(Bp,Fn(void 0,this));const s=this.records.get(Up);this.scope=null!=s?s.value:null,this.source=i||("object"==typeof t?null:Tt(t))}get destroyed(){return this._destroyed}destroy(){this.assertNotDestroyed(),this._destroyed=!0;try{this.onDestroy.forEach(t=>t.ngOnDestroy())}finally{this.records.clear(),this.onDestroy.clear(),this.injectorDefTypes.clear()}}get(t,e=yu,r=Ve.Default){this.assertNotDestroyed();const i=Cu(this),o=us(void 0);try{if(!(r&Ve.SkipSelf)){let a=this.records.get(t);if(void 0===a){const l=function zp(n){return"function"==typeof n||"object"==typeof n&&n instanceof Be}(t)&&od(t);a=l&&this.injectableDefInScope(l)?Fn(ju(t),Uu):null,this.records.set(t,a)}if(null!=a)return this.hydrate(t,a)}return(r&Ve.Self?Gp():this.parent).get(t,e=r&Ve.Optional&&e===yu?null:e)}catch(s){if("NullInjectorError"===s.name){if((s[Qa]=s[Qa]||[]).unshift(Tt(t)),i)throw s;return function ms(n,t,e,r){const i=n[Qa];throw t[Vo]&&i.unshift(t[Vo]),n.message=function _m(n,t,e,r=null){n=n&&"\n"===n.charAt(0)&&"\u0275"==n.charAt(1)?n.substr(2):n;let i=Tt(t);if(Array.isArray(t))i=t.map(Tt).join(" -> ");else if("object"==typeof t){let o=[];for(let s in t)if(t.hasOwnProperty(s)){let a=t[s];o.push(s+":"+("string"==typeof a?JSON.stringify(a):Tt(a)))}i=`{${o.join(", ")}}`}return`${e}${r?"("+r+")":""}[${i}]: ${n.replace(vm,"\n  ")}`}("\n"+n.message,i,e,r),n.ngTokenPath=i,n[Qa]=null,n}(s,t,"R3InjectorError",this.source)}throw s}finally{us(o),Cu(i)}}_resolveInjectorDefTypes(){this.injectorDefTypes.forEach(t=>this.get(t))}toString(){const t=[];return this.records.forEach((r,i)=>t.push(Tt(i))),`R3Injector[${t.join(", ")}]`}assertNotDestroyed(){if(this._destroyed)throw new st(205,!1)}processInjectorType(t,e,r){if(!(t=Qe(t)))return!1;let i=sd(t);const o=null==i&&t.ngModule||void 0,s=void 0===o?t:o,a=-1!==r.indexOf(s);if(void 0!==o&&(i=sd(o)),null==i)return!1;if(null!=i.imports&&!a){let f;r.push(s);try{Ii(i.imports,d=>{this.processInjectorType(d,e,r)&&(void 0===f&&(f=[]),f.push(d))})}finally{}if(void 0!==f)for(let d=0;d<f.length;d++){const{ngModule:g,providers:v}=f[d];Ii(v,m=>this.processProvider(m,g,v||jt))}}this.injectorDefTypes.add(s);const l=Ar(s)||(()=>new s);this.records.set(s,Fn(l,Uu));const c=i.providers;if(null!=c&&!a){const f=t;Ii(c,d=>this.processProvider(d,f,c))}return void 0!==o&&void 0!==t.providers}processProvider(t,e,r){let i=ul(t=Qe(t))?t:Qe(t&&t.provide);const o=function e1(n,t,e){return kh(n)?Fn(void 0,n.useValue):Fn(F_(n),Uu)}(t);if(ul(t)||!0!==t.multi)this.records.get(i);else{let s=this.records.get(i);s||(s=Fn(void 0,Uu,!0),s.factory=()=>wu(s.multi),this.records.set(i,s)),i=t,s.multi.push(t)}this.records.set(i,o)}hydrate(t,e){return e.value===Uu&&(e.value=jp,e.value=e.factory()),"object"==typeof e.value&&e.value&&function i1(n){return null!==n&&"object"==typeof n&&"function"==typeof n.ngOnDestroy}(e.value)&&this.onDestroy.add(e.value),e.value}injectableDefInScope(t){if(!t.providedIn)return!1;const e=Qe(t.providedIn);return"string"==typeof e?"any"===e||e===this.scope:this.injectorDefTypes.has(e)}}function ju(n){const t=od(n),e=null!==t?t.factory:Ar(n);if(null!==e)return e;if(n instanceof Be)throw new st(204,!1);if(n instanceof Function)return function JE(n){const t=n.length;if(t>0)throw Ya(t,"?"),new st(204,!1);const e=function LC(n){const t=n&&(n[ql]||n[Fc]);if(t){const e=function NC(n){if(n.hasOwnProperty("name"))return n.name;const t=(""+n).match(/^function\s*([^\s(]+)/);return null===t?"":t[1]}(n);return console.warn(`DEPRECATED: DI is instantiating a token "${e}" that inherits its @Injectable decorator but does not provide one itself.\nThis will become an error in a future version of Angular. Please add @Injectable() to the "${e}" class.`),t}return null}(n);return null!==e?()=>e.factory(n):()=>new n}(n);throw new st(204,!1)}function F_(n,t,e){let r;if(ul(n)){const i=Qe(n);return Ar(i)||ju(i)}if(kh(n))r=()=>Qe(n.useValue);else if(function n1(n){return!(!n||!n.useFactory)}(n))r=()=>n.useFactory(...wu(n.deps||[]));else if(function t1(n){return!(!n||!n.useExisting)}(n))r=()=>oe(Qe(n.useExisting));else{const i=Qe(n&&(n.useClass||n.provide));if(!function Hp(n){return!!n.deps}(n))return Ar(i)||ju(i);r=()=>new i(...wu(n.deps))}return r}function Fn(n,t,e=!1){return{factory:n,value:t,multi:e?[]:void 0}}function kh(n){return null!==n&&"object"==typeof n&&Bd in n}function ul(n){return"function"==typeof n}let ur=(()=>{class n{static create(e,r){var i;if(Array.isArray(e))return L_({name:""},r,e,"");{const o=null!==(i=e.name)&&void 0!==i?i:"";return L_({name:o},e.parent,e.providers,o)}}}return n.THROW_IF_NOT_FOUND=yu,n.NULL=new k_,n.\u0275prov=Fe({token:n,providedIn:"any",factory:()=>oe(Bp)}),n.__NG_ELEMENT_ID__=-1,n})();function c1(n,t){Qc(Su(n)[1],Pn())}function u(n){let t=function K_(n){return Object.getPrototypeOf(n.prototype).constructor}(n.type),e=!0;const r=[n];for(;t;){let i;if(yi(n))i=t.\u0275cmp||t.\u0275dir;else{if(t.\u0275cmp)throw new st(903,"");i=t.\u0275dir}if(i){if(e){r.push(i);const s=n;s.inputs=p(n.inputs),s.declaredInputs=p(n.declaredInputs),s.outputs=p(n.outputs);const a=i.hostBindings;a&&b(n,a);const l=i.viewQuery,c=i.contentQueries;if(l&&_(n,l),c&&C(n,c),kc(n.inputs,i.inputs),kc(n.declaredInputs,i.declaredInputs),kc(n.outputs,i.outputs),yi(i)&&i.data.animation){const f=n.data;f.animation=(f.animation||[]).concat(i.data.animation)}}const o=i.features;if(o)for(let s=0;s<o.length;s++){const a=o[s];a&&a.ngInherit&&a(n),a===u&&(e=!1)}}t=Object.getPrototypeOf(t)}!function h(n){let t=0,e=null;for(let r=n.length-1;r>=0;r--){const i=n[r];i.hostVars=t+=i.hostVars,i.hostAttrs=th(i.hostAttrs,e=th(e,i.hostAttrs))}}(r)}function p(n){return n===Hs?{}:n===jt?[]:n}function _(n,t){const e=n.viewQuery;n.viewQuery=e?(r,i)=>{t(r,i),e(r,i)}:t}function C(n,t){const e=n.contentQueries;n.contentQueries=e?(r,i,o)=>{t(r,i,o),e(r,i,o)}:t}function b(n,t){const e=n.hostBindings;n.hostBindings=e?(r,i)=>{t(r,i),e(r,i)}:t}let U=null;function B(){if(!U){const n=Ot.Symbol;if(n&&n.iterator)U=n.iterator;else{const t=Object.getOwnPropertyNames(Map.prototype);for(let e=0;e<t.length;++e){const r=t[e];"entries"!==r&&"size"!==r&&Map.prototype[r]===Map.prototype.entries&&(U=r)}}}return U}function Y(n){return!!Xe(n)&&(Array.isArray(n)||!(n instanceof Map)&&B()in n)}function Xe(n){return null!==n&&("function"==typeof n||"object"==typeof n)}function Me(n,t,e){return!Object.is(n[t],e)&&(n[t]=e,!0)}function At(n,t,e,r){const i=G();return Me(i,Ua(),t)&&(pt(),wo(un(),i,n,t,e,r)),At}function Oe(n,t,e,r,i,o,s,a){const l=G(),c=pt(),f=n+20,d=c.firstCreatePass?function xF(n,t,e,r,i,o,s,a,l){const c=t.consts,f=ca(t,n,4,s||null,ds(c,a));Ap(t,e,f,ds(c,l)),Qc(t,f);const d=f.tViews=Ah(2,f,r,i,o,t.directiveRegistry,t.pipeRegistry,null,t.schemas,c);return null!==t.queries&&(t.queries.template(t,f),d.queries=t.queries.embeddedTView(f)),f}(f,c,l,t,e,r,i,o,s):c.data[f];Mi(d,!1);const g=l[11].createComment("");Es(c,l,g,d),Nn(g,l),Rh(l,l[f]=b_(g,l,g,d)),Ql(d)&&Sp(c,l,d),null!=s&&Ip(l,d,a)}function z(n,t=Ve.Default){const e=G();return null===e?oe(n,t):Ka(Pn(),e,Qe(n),t)}function g1(){throw new Error("invalid")}function W(n,t,e){const r=G();return Me(r,Ua(),t)&&function wr(n,t,e,r,i,o,s,a){const l=lr(t,e);let f,c=t.inputs;!a&&null!=c&&(f=c[r])?(P_(n,e,f,r,i),Uc(t)&&function FE(n,t){const e=Rr(t,n);16&e[2]||(e[2]|=64)}(e,t.index)):3&t.type&&(r=function NE(n){return"class"===n?"className":"for"===n?"htmlFor":"formaction"===n?"formAction":"innerHtml"===n?"innerHTML":"readonly"===n?"readOnly":"tabindex"===n?"tabIndex":n}(r),i=null!=s?s(i,t.value||"",r):i,Ae(o)?o.setProperty(l,r,i):Dd(r)||(l.setProperty?l.setProperty(r,i):l[r]=i))}(pt(),un(),r,n,t,r[11],e,!1),W}function v1(n,t,e,r,i){const s=i?"class":"style";P_(n,e,t.inputs[s],s,r)}function se(n,t,e,r){const i=G(),o=pt(),s=20+n,a=i[11],l=i[s]=Zd(a,t,function aw(){return Re.lFrame.currentNamespace}()),c=o.firstCreatePass?function WF(n,t,e,r,i,o,s){const a=t.consts,c=ca(t,n,2,i,ds(a,o));return Ap(t,e,c,ds(a,s)),null!==c.attrs&&Oh(c,c.attrs,!1),null!==c.mergedAttrs&&Oh(c,c.mergedAttrs,!0),null!==t.queries&&t.queries.elementStart(t,c),c}(s,o,i,0,t,e,r):o.data[s];Mi(c,!0);const f=c.mergedAttrs;null!==f&&eh(a,l,f);const d=c.classes;null!==d&&rp(a,l,d);const g=c.styles;return null!==g&&Lm(a,l,g),64!=(64&c.flags)&&Es(o,i,l,c),0===function em(){return Re.lFrame.elementDepthCount}()&&Nn(l,i),function tm(){Re.lFrame.elementDepthCount++}(),Ql(c)&&(Sp(o,i,c),Vu(o,c,i)),null!==r&&Ip(i,c),se}function J(){let n=Pn();Cd()?Kc():(n=n.parent,Mi(n,!1));const t=n;!function qc(){Re.lFrame.elementDepthCount--}();const e=pt();return e.firstCreatePass&&(Qc(e,n),fs(n)&&e.queries.elementEnd(n)),null!=t.classesWithoutHost&&function hw(n){return 0!=(16&n.flags)}(t)&&v1(e,t,G(),t.classesWithoutHost,!0),null!=t.stylesWithoutHost&&function fw(n){return 0!=(32&n.flags)}(t)&&v1(e,t,G(),t.stylesWithoutHost,!1),J}function xt(n,t,e,r){return se(n,t,e,r),J(),xt}function bs(n,t,e){const r=G(),i=pt(),o=n+20,s=i.firstCreatePass?function qF(n,t,e,r,i){const o=t.consts,s=ds(o,r),a=ca(t,n,8,"ng-container",s);return null!==s&&Oh(a,s,!0),Ap(t,e,a,ds(o,i)),null!==t.queries&&t.queries.elementStart(t,a),a}(o,i,r,t,e):i.data[o];Mi(s,!0);const a=r[o]=r[11].createComment("");return Es(i,r,a,s),Nn(a,r),Ql(s)&&(Sp(i,r,s),Vu(i,s,r)),null!=e&&Ip(r,s),bs}function Ho(){let n=Pn();const t=pt();return Cd()?Kc():(n=n.parent,Mi(n,!1)),t.firstCreatePass&&(Qc(t,n),fs(n)&&t.queries.elementEnd(n)),Ho}function Cn(){return G()}function Yp(n){return!!n&&"function"==typeof n.then}const m1=function tI(n){return!!n&&"function"==typeof n.subscribe};function Ge(n,t,e,r){const i=G(),o=pt(),s=Pn();return function rI(n,t,e,r,i,o,s,a){const l=Ql(r),f=n.firstCreatePass&&A_(n),d=t[8],g=T_(t);let v=!0;if(3&r.type||a){const w=lr(r,t),x=a?a(w):w,E=g.length,S=a?T=>a(Et(T[r.index])):r.index;if(Ae(e)){let T=null;if(!a&&l&&(T=function KF(n,t,e,r){const i=n.cleanup;if(null!=i)for(let o=0;o<i.length-1;o+=2){const s=i[o];if(s===e&&i[o+1]===r){const a=t[7],l=i[o+2];return a.length>l?a[l]:null}"string"==typeof s&&(o+=2)}return null}(n,t,i,r.index)),null!==T)(T.__ngLastListenerFn__||T).__ngNextListenerFn__=o,T.__ngLastListenerFn__=o,v=!1;else{o=_1(r,t,d,o,!1);const O=e.listen(x,i,o);g.push(o,O),f&&f.push(i,S,E,E+1)}}else o=_1(r,t,d,o,!0),x.addEventListener(i,o,s),g.push(o),f&&f.push(i,S,E,s)}else o=_1(r,t,d,o,!1);const m=r.outputs;let y;if(v&&null!==m&&(y=m[i])){const w=y.length;if(w)for(let x=0;x<w;x+=2){const N=t[y[x]][y[x+1]].subscribe(o),j=g.length;g.push(o,N),f&&f.push(i,r.index,j,-(j+1))}}}(o,i,i[11],s,n,t,!!e,r),Ge}function iI(n,t,e,r){try{return!1!==e(r)}catch(i){return O_(n,i),!1}}function _1(n,t,e,r,i){return function o(s){if(s===Function)return r;const a=2&n.flags?Rr(n.index,t):t;0==(32&t[2])&&Lp(a);let l=iI(t,0,r,s),c=o.__ngNextListenerFn__;for(;c;)l=iI(t,0,c,s)&&l,c=c.__ngNextListenerFn__;return i&&!1===l&&(s.preventDefault(),s.returnValue=!1),l}}function de(n=1){return function za(n){return(Re.lFrame.contextLView=function Xc(n,t){for(;n>0;)t=t[15],n--;return t}(n,Re.lFrame.contextLView))[8]}(n)}function ZF(n,t){let e=null;const r=function n_(n){const t=n.attrs;if(null!=t){const e=t.indexOf(5);if(0==(1&e))return t[e+1]}return null}(n);for(let i=0;i<t.length;i++){const o=t[i];if("*"!==o){if(null===r?vp(n,o,!0):EE(r,o))return i}else e=i}return e}function vI(n,t,e,r,i){const o=n[e+1],s=null===t;let a=r?Ki(o):Bo(o),l=!1;for(;0!==a&&(!1===l||s);){const f=n[a+1];QF(n[a],t)&&(l=!0,n[a+1]=r?Cp(f):_p(f)),a=r?Ki(f):Bo(f)}l&&(n[e+1]=r?_p(o):Cp(o))}function QF(n,t){return null===n||null==t||(Array.isArray(n)?n[1]:n)===t||!(!Array.isArray(n)||"string"!=typeof t)&&na(n,t)>=0}const ir={textEnd:0,key:0,keyEnd:0,value:0,valueEnd:0};function mI(n){return n.substring(ir.key,ir.keyEnd)}function JF(n){return n.substring(ir.value,ir.valueEnd)}function yI(n,t){const e=ir.textEnd;let r=ir.key=Gh(n,t,e);return e===r?-1:(r=ir.keyEnd=function r2(n,t,e){let r;for(;t<e&&(45===(r=n.charCodeAt(t))||95===r||(-33&r)>=65&&(-33&r)<=90||r>=48&&r<=57);)t++;return t}(n,r,e),r=wI(n,r,e),r=ir.value=Gh(n,r,e),r=ir.valueEnd=function i2(n,t,e){let r=-1,i=-1,o=-1,s=t,a=s;for(;s<e;){const l=n.charCodeAt(s++);if(59===l)return a;34===l||39===l?a=s=EI(n,l,s,e):t===s-4&&85===o&&82===i&&76===r&&40===l?a=s=EI(n,41,s,e):l>32&&(a=s),o=i,i=r,r=-33&l}return a}(n,r,e),wI(n,r,e))}function Gh(n,t,e){for(;t<e&&n.charCodeAt(t)<=32;)t++;return t}function wI(n,t,e,r){return(t=Gh(n,t,e))<e&&t++,t}function EI(n,t,e,r){let i=-1,o=e;for(;o<r;){const s=n.charCodeAt(o++);if(s==t&&92!==i)return o;i=92==s&&92===i?0:s}throw new Error}function Y_(n,t){return function zo(n,t,e,r){const i=G(),o=pt(),s=zi(2);o.firstUpdatePass&&bI(o,n,s,r),t!==ze&&Me(i,s,t)&&SI(o,o.data[Zt()],i,i[11],n,i[s+1]=function d2(n,t){return null==n||("string"==typeof t?n+=t:"object"==typeof n&&(n=Tt(ni(n)))),n}(t,e),r,s)}(n,t,null,!0),Y_}function Eo(n){!function $o(n,t,e,r){const i=pt(),o=zi(2);i.firstUpdatePass&&bI(i,null,o,r);const s=G();if(e!==ze&&Me(s,o,e)){const a=i.data[Zt()];if(TI(a,r)&&!xI(i,o)){let l=r?a.classesWithoutHost:a.stylesWithoutHost;null!==l&&(e=ed(l,e||"")),v1(i,a,s,e,r)}else!function f2(n,t,e,r,i,o,s,a){i===ze&&(i=jt);let l=0,c=0,f=0<i.length?i[0]:null,d=0<o.length?o[0]:null;for(;null!==f||null!==d;){const g=l<i.length?i[l+1]:void 0,v=c<o.length?o[c+1]:void 0;let y,m=null;f===d?(l+=2,c+=2,g!==v&&(m=d,y=v)):null===d||null!==f&&f<d?(l+=2,m=f):(c+=2,m=d,y=v),null!==m&&SI(n,t,e,r,m,y,s,a),f=l<i.length?i[l]:null,d=c<o.length?o[c]:null}}(i,a,s,s[11],s[o+1],s[o+1]=function h2(n,t,e){if(null==e||""===e)return jt;const r=[],i=ni(e);if(Array.isArray(i))for(let o=0;o<i.length;o++)n(r,i[o],!0);else if("object"==typeof i)for(const o in i)i.hasOwnProperty(o)&&n(r,o,i[o]);else"string"==typeof i&&t(r,i);return r}(n,t,e),r,o)}}(DI,o2,n,!1)}function o2(n,t){for(let e=function t2(n){return function CI(n){ir.key=0,ir.keyEnd=0,ir.value=0,ir.valueEnd=0,ir.textEnd=n.length}(n),yI(n,Gh(n,0,ir.textEnd))}(t);e>=0;e=yI(t,e))DI(n,mI(t),JF(t))}function xI(n,t){return t>=n.expandoStartIndex}function bI(n,t,e,r){const i=n.data;if(null===i[e+1]){const o=i[Zt()],s=xI(n,e);TI(o,r)&&null===t&&!s&&(t=!1),t=function a2(n,t,e,r){const i=function Ga(n){const t=Re.lFrame.currentDirectiveIndex;return-1===t?null:n[t]}(n);let o=r?t.residualClasses:t.residualStyles;if(null===i)0===(r?t.classBindings:t.styleBindings)&&(e=Xp(e=C1(null,n,t,e,r),t.attrs,r),o=null);else{const s=t.directiveStylingLast;if(-1===s||n[s]!==i)if(e=C1(i,n,t,e,r),null===o){let l=function l2(n,t,e){const r=e?t.classBindings:t.styleBindings;if(0!==Bo(r))return n[Ki(r)]}(n,t,r);void 0!==l&&Array.isArray(l)&&(l=C1(null,n,t,l[1],r),l=Xp(l,t.attrs,r),function u2(n,t,e,r){n[Ki(e?t.classBindings:t.styleBindings)]=r}(n,t,r,l))}else o=function c2(n,t,e){let r;const i=t.directiveEnd;for(let o=1+t.directiveStylingLast;o<i;o++)r=Xp(r,n[o].hostAttrs,e);return Xp(r,t.attrs,e)}(n,t,r)}return void 0!==o&&(r?t.residualClasses=o:t.residualStyles=o),e}(i,o,t,r),function YF(n,t,e,r,i,o){let s=o?t.classBindings:t.styleBindings,a=Ki(s),l=Bo(s);n[r]=e;let f,c=!1;if(Array.isArray(e)){const d=e;f=d[1],(null===f||na(d,f)>0)&&(c=!0)}else f=e;if(i)if(0!==l){const g=Ki(n[a+1]);n[r+1]=bh(g,a),0!==g&&(n[g+1]=yp(n[g+1],r)),n[a+1]=function xE(n,t){return 131071&n|t<<17}(n[a+1],r)}else n[r+1]=bh(a,0),0!==a&&(n[a+1]=yp(n[a+1],r)),a=r;else n[r+1]=bh(l,0),0===a?a=r:n[l+1]=yp(n[l+1],r),l=r;c&&(n[r+1]=_p(n[r+1])),vI(n,f,r,!0),vI(n,f,r,!1),function XF(n,t,e,r,i){const o=i?n.residualClasses:n.residualStyles;null!=o&&"string"==typeof t&&na(o,t)>=0&&(e[r+1]=Cp(e[r+1]))}(t,f,n,r,o),s=bh(a,l),o?t.classBindings=s:t.styleBindings=s}(i,o,t,e,s,r)}}function C1(n,t,e,r,i){let o=null;const s=e.directiveEnd;let a=e.directiveStylingLast;for(-1===a?a=e.directiveStart:a++;a<s&&(o=t[a],r=Xp(r,o.hostAttrs,i),o!==n);)a++;return null!==n&&(e.directiveStylingLast=a),r}function Xp(n,t,e){const r=e?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(n)||(n=void 0===n?[]:["",n]),ei(n,s,!!e||t[++o]))}return void 0===n?null:n}function DI(n,t,e){ei(n,t,ni(e))}function SI(n,t,e,r,i,o,s,a){if(!(3&t.type))return;const l=n.data,c=l[a+1];X_(function a_(n){return 1==(1&n)}(c)?II(l,t,e,i,Bo(c),s):void 0)||(X_(o)||function s_(n){return 2==(2&n)}(c)&&(o=II(l,null,e,i,a,s)),function Uw(n,t,e,r,i){const o=Ae(n);if(t)i?o?n.addClass(e,r):e.classList.add(r):o?n.removeClass(e,r):e.classList.remove(r);else{let s=-1===r.indexOf("-")?void 0:Pr.DashCase;if(null==i)o?n.removeStyle(e,r,s):e.style.removeProperty(r);else{const a="string"==typeof i&&i.endsWith("!important");a&&(i=i.slice(0,-10),s|=Pr.Important),o?n.setStyle(e,r,i,s):e.style.setProperty(r,i,a?"important":"")}}}(r,s,ko(Zt(),e),i,o))}function II(n,t,e,r,i,o){const s=null===t;let a;for(;i>0;){const l=n[i],c=Array.isArray(l),f=c?l[1]:l,d=null===f;let g=e[i+1];g===ze&&(g=d?jt:void 0);let v=d?mu(g,r):f===r?g:void 0;if(c&&!X_(v)&&(v=mu(l,r)),X_(v)&&(a=v,s))return a;const m=n[i+1];i=s?Ki(m):Bo(m)}if(null!==t){let l=o?t.residualClasses:t.residualStyles;null!=l&&(a=mu(l,r))}return a}function X_(n){return void 0!==n}function TI(n,t){return 0!=(n.flags&(t?16:32))}function da(n,t=""){const e=G(),r=pt(),i=n+20,o=r.firstCreatePass?ca(r,i,1,t,null):r.data[i],s=e[i]=function hh(n,t){return Ae(n)?n.createText(t):n.createTextNode(t)}(e[11],t);Es(r,e,s,o),Mi(o,!1)}function Q_(n){return Qp("",n,""),Q_}function Qp(n,t,e){const r=G(),i=function Br(n,t,e,r){return Me(n,Ua(),e)?t+Ne(e)+r:ze}(r,n,t,e);return i!==ze&&Go(r,Zt(),i),Qp}const J_="en-US";let XI=J_;function M1(n,t,e,r,i){if(n=Qe(n),Array.isArray(n))for(let o=0;o<n.length;o++)M1(n[o],t,e,r,i);else{const o=pt(),s=G();let a=ul(n)?n:Qe(n.provide),l=F_(n);const c=Pn(),f=1048575&c.providerIndexes,d=c.directiveStart,g=c.providerIndexes>>20;if(ul(n)||!n.multi){const v=new su(l,i,z),m=b1(a,t,i?f:f+g,d);-1===m?(yr(uu(c,s),o,a),x1(o,n,t.length),t.push(a),c.directiveStart++,c.directiveEnd++,i&&(c.providerIndexes+=1048576),e.push(v),s.push(v)):(e[m]=v,s[m]=v)}else{const v=b1(a,t,f+g,d),m=b1(a,t,f,f+g),y=v>=0&&e[v],w=m>=0&&e[m];if(i&&!w||!i&&!y){yr(uu(c,s),o,a);const x=function O3(n,t,e,r,i){const o=new su(n,e,z);return o.multi=[],o.index=t,o.componentProviders=0,wT(o,i,r&&!e),o}(i?R3:A3,e.length,i,r,l);!i&&w&&(e[m].providerFactory=x),x1(o,n,t.length,0),t.push(a),c.directiveStart++,c.directiveEnd++,i&&(c.providerIndexes+=1048576),e.push(x),s.push(x)}else x1(o,n,v>-1?v:m,wT(e[i?m:v],l,!i&&r));!i&&r&&w&&e[m].componentProviders++}}}function x1(n,t,e,r){const i=ul(t),o=function r1(n){return!!n.useClass}(t);if(i||o){const l=(o?Qe(t.useClass):t).prototype.ngOnDestroy;if(l){const c=n.destroyHooks||(n.destroyHooks=[]);if(!i&&t.multi){const f=c.indexOf(e);-1===f?c.push(e,[r,l]):c[f+1].push(r,l)}else c.push(e,l)}}}function wT(n,t,e){return e&&n.componentProviders++,n.multi.push(t)-1}function b1(n,t,e,r){for(let i=e;i<r;i++)if(t[i]===n)return i;return-1}function A3(n,t,e,r){return D1(this.multi,[])}function R3(n,t,e,r){const i=this.multi;let o;if(this.providerFactory){const s=this.providerFactory.componentProviders,a=hu(e,e[1],this.providerFactory.index,r);o=a.slice(0,s),D1(i,o);for(let l=s;l<a.length;l++)o.push(a[l])}else o=[],D1(i,o);return o}function D1(n,t){for(let e=0;e<n.length;e++)t.push((0,n[e])());return t}function dn(n,t=[]){return e=>{e.providersResolver=(r,i)=>function T3(n,t,e){const r=pt();if(r.firstCreatePass){const i=yi(n);M1(e,r.data,r.blueprint,i,!0),M1(t,r.data,r.blueprint,i,!1)}}(r,i?i(n):n,t)}}class ET{}class L3{resolveComponentFactory(t){throw function k3(n){const t=Error(`No component factory found for ${Tt(n)}. Did you add it to @NgModule.entryComponents?`);return t.ngComponent=n,t}(t)}}let rg=(()=>{class n{}return n.NULL=new L3,n})();function N3(){return $h(Pn(),G())}function $h(n,t){return new Er(lr(n,t))}let Er=(()=>{class n{constructor(e){this.nativeElement=e}}return n.__NG_ELEMENT_ID__=N3,n})();function F3(n){return n instanceof Er?n.nativeElement:n}class xT{}let pa=(()=>{class n{}return n.__NG_ELEMENT_ID__=()=>function B3(){const n=G(),e=Rr(Pn().index,n);return function V3(n){return n[11]}(Hi(e)?e:n)}(),n})(),U3=(()=>{class n{}return n.\u0275prov=Fe({token:n,providedIn:"root",factory:()=>null}),n})();class ig{constructor(t){this.full=t,this.major=t.split(".")[0],this.minor=t.split(".")[1],this.patch=t.split(".").slice(2).join(".")}}const j3=new ig("13.4.0"),S1={};function iy(n,t,e,r,i=!1){for(;null!==e;){const o=t[e.index];if(null!==o&&r.push(Et(o)),Tr(o))for(let a=10;a<o.length;a++){const l=o[a],c=l[1].firstChild;null!==c&&iy(l[1],l,c,r)}const s=e.type;if(8&s)iy(n,t,e.child,r);else if(32&s){const a=Iu(e,t);let l;for(;l=a();)r.push(l)}else if(16&s){const a=np(t,e);if(Array.isArray(a))r.push(...a);else{const l=_s(t[16]);iy(l[1],l,a,r,!0)}}e=i?e.projectionNext:e.next}return r}class og{constructor(t,e){this._lView=t,this._cdRefInjectingView=e,this._appRef=null,this._attachedToViewContainer=!1}get rootNodes(){const t=this._lView,e=t[1];return iy(e,t,e.firstChild,[])}get context(){return this._lView[8]}set context(t){this._lView[8]=t}get destroyed(){return 256==(256&this._lView[2])}destroy(){if(this._appRef)this._appRef.detachView(this);else if(this._attachedToViewContainer){const t=this._lView[3];if(Tr(t)){const e=t[8],r=e?e.indexOf(this):-1;r>-1&&(nr(t,r),gu(e,r))}this._attachedToViewContainer=!1}fh(this._lView[1],this._lView)}onDestroy(t){m_(this._lView[1],this._lView,null,t)}markForCheck(){Lp(this._cdRefInjectingView||this._lView)}detach(){this._lView[2]&=-129}reattach(){this._lView[2]|=128}detectChanges(){!function Fp(n,t,e){const r=t[10];r.begin&&r.begin();try{ft(n,t,n.template,e)}catch(i){throw O_(t,i),i}finally{r.end&&r.end()}}(this._lView[1],this._lView,this.context)}checkNoChanges(){}attachToViewContainerRef(){if(this._appRef)throw new st(902,"");this._attachedToViewContainer=!0}detachFromAppRef(){this._appRef=null,function Tm(n,t){kr(n,t,t[11],2,null,null)}(this._lView[1],this._lView)}attachToAppRef(t){if(this._attachedToViewContainer)throw new st(902,"");this._appRef=t}}class G3 extends og{constructor(t){super(t),this._view=t}detectChanges(){I_(this._view)}checkNoChanges(){}get context(){return null}}class bT extends rg{constructor(t){super(),this.ngModule=t}resolveComponentFactory(t){const e=Qn(t);return new I1(e,this.ngModule)}}function DT(n){const t=[];for(let e in n)n.hasOwnProperty(e)&&t.push({propName:n[e],templateName:e});return t}class I1 extends ET{constructor(t,e){super(),this.componentDef=t,this.ngModule=e,this.componentType=t.type,this.selector=function Eh(n){return n.map(ME).join(",")}(t.selectors),this.ngContentSelectors=t.ngContentSelectors?t.ngContentSelectors:[],this.isBoundToModule=!!e}get inputs(){return DT(this.componentDef.inputs)}get outputs(){return DT(this.componentDef.outputs)}create(t,e,r,i){const o=(i=i||this.ngModule)?function z3(n,t){return{get:(e,r,i)=>{const o=n.get(e,S1,i);return o!==S1||r===S1?o:t.get(e,r,i)}}}(t,i.injector):t,s=o.get(xT,zc),a=o.get(U3,null),l=s.createRenderer(null,this.componentDef),c=this.componentDef.selectors[0][0]||"div",f=r?function v_(n,t,e){if(Ae(n))return n.selectRootElement(t,e===mi.ShadowDom);let r="string"==typeof t?n.querySelector(t):t;return r.textContent="",r}(l,r,this.componentDef.encapsulation):Zd(s.createRenderer(null,this.componentDef),c,function H3(n){const t=n.toLowerCase();return"svg"===t?"svg":"math"===t?R:null}(c)),d=this.componentDef.onPush?576:528,g=function q_(n,t){return{components:[],scheduler:n||mE,clean:ZE,playerHandler:t||null,flags:0}}(),v=Ah(0,null,null,1,0,null,null,null,null,null),m=je(null,v,g,d,null,null,s,l,a,o);let y,w;Yc(m);try{const x=function $_(n,t,e,r,i,o){const s=e[1];e[20]=n;const l=ca(s,20,2,"#host",null),c=l.mergedAttrs=t.hostAttrs;null!==c&&(Oh(l,c,!0),null!==n&&(eh(i,n,c),null!==l.classes&&rp(i,n,l.classes),null!==l.styles&&Lm(i,n,l.styles)));const f=r.createRenderer(n,t),d=je(e,p_(t),null,t.onPush?64:16,e[20],l,r,f,o||null,null);return s.firstCreatePass&&(yr(uu(l,e),s,t.type),Rp(s,l),M_(l,e.length,1)),Rh(e,d),e[20]=d}(f,this.componentDef,m,s,l);if(f)if(r)eh(l,f,["ng-version",j3.full]);else{const{attrs:E,classes:S}=function Mh(n){const t=[],e=[];let r=1,i=2;for(;r<n.length;){let o=n[r];if("string"==typeof o)2===i?""!==o&&t.push(o,n[++r]):8===i&&e.push(o);else{if(!Ri(i))break;i=o}r++}return{attrs:t,classes:e}}(this.componentDef.selectors[0]);E&&eh(l,f,E),S&&S.length>0&&rp(l,f,S.join(" "))}if(w=Mt(v,20),void 0!==e){const E=w.projection=[];for(let S=0;S<this.ngContentSelectors.length;S++){const T=e[S];E.push(null!=T?Array.from(T):null)}}y=function W_(n,t,e,r,i){const o=e[1],s=function Vr(n,t,e){const r=Pn();n.firstCreatePass&&(e.providersResolver&&e.providersResolver(e),Op(n,r,t,ha(n,t,1,null),e));const i=hu(t,n,r.directiveStart,r);Nn(i,t);const o=lr(r,t);return o&&Nn(o,t),i}(o,e,t);if(r.components.push(s),n[8]=s,i&&i.forEach(l=>l(s,t)),t.contentQueries){const l=Pn();t.contentQueries(1,s,l.directiveStart)}const a=Pn();return!o.firstCreatePass||null===t.hostBindings&&null===t.hostAttrs||(Ke(a.index),C_(e[1],a,0,a.directiveStart,a.directiveEnd,t),E_(t,s)),s}(x,this.componentDef,m,g,[c1]),Fu(v,m,null)}finally{M()}return new W3(this.componentType,y,$h(w,m),m,w)}}class W3 extends class P3{}{constructor(t,e,r,i,o){super(),this.location=r,this._rootLView=i,this._tNode=o,this.instance=e,this.hostView=this.changeDetectorRef=new G3(i),this.componentType=t}get injector(){return new Js(this._tNode,this._rootLView)}destroy(){this.hostView.destroy()}onDestroy(t){this.hostView.onDestroy(t)}}class ga{}class ST{}const Wh=new Map;class AT extends ga{constructor(t,e){super(),this._parent=e,this._bootstrapComponents=[],this.injector=this,this.destroyCbs=[],this.componentFactoryResolver=new bT(this);const r=_i(t);this._bootstrapComponents=Co(r.bootstrap),this._r3Injector=N_(t,e,[{provide:ga,useValue:this},{provide:rg,useValue:this.componentFactoryResolver}],Tt(t)),this._r3Injector._resolveInjectorDefTypes(),this.instance=this.get(t)}get(t,e=ur.THROW_IF_NOT_FOUND,r=Ve.Default){return t===ur||t===ga||t===Bp?this:this._r3Injector.get(t,e,r)}destroy(){const t=this._r3Injector;!t.destroyed&&t.destroy(),this.destroyCbs.forEach(e=>e()),this.destroyCbs=null}onDestroy(t){this.destroyCbs.push(t)}}class T1 extends ST{constructor(t){super(),this.moduleType=t,null!==_i(t)&&function K3(n){const t=new Set;!function e(r){const i=_i(r,!0),o=i.id;null!==o&&(function IT(n,t,e){if(t&&t!==e)throw new Error(`Duplicate module registered for ${n} - ${Tt(t)} vs ${Tt(t.name)}`)}(o,Wh.get(o),r),Wh.set(o,r));const s=Co(i.imports);for(const a of s)t.has(a)||(t.add(a),e(a))}(n)}(t)}create(t){return new AT(this.moduleType,t)}}function sg(n,t,e,r){return function RT(n,t,e,r,i,o){const s=t+e;return Me(n,s,i)?function ve(n,t,e){return n[t]=e}(n,s+1,o?r.call(o,i):r(i)):function ag(n,t){const e=n[t];return e===ze?void 0:e}(n,s+1)}(G(),function _r(){const n=Re.lFrame;let t=n.bindingRootIndex;return-1===t&&(t=n.bindingRootIndex=n.tView.bindingStartIndex),t}(),n,t,e,r)}function A1(n){return t=>{setTimeout(n,void 0,t)}}const lt=class hV extends gr{constructor(t=!1){super(),this.__isAsync=t}emit(t){super.next(t)}subscribe(t,e,r){var i,o,s;let a=t,l=e||(()=>null),c=r;if(t&&"object"==typeof t){const d=t;a=null===(i=d.next)||void 0===i?void 0:i.bind(d),l=null===(o=d.error)||void 0===o?void 0:o.bind(d),c=null===(s=d.complete)||void 0===s?void 0:s.bind(d)}this.__isAsync&&(l=A1(l),a&&(a=A1(a)),c&&(c=A1(c)));const f=super.subscribe({next:a,error:l,complete:c});return t instanceof St&&t.add(f),f}};function fV(){return this._results[B()]()}class R1{constructor(t=!1){this._emitDistinctChangesOnly=t,this.dirty=!0,this._results=[],this._changesDetected=!1,this._changes=null,this.length=0,this.first=void 0,this.last=void 0;const e=B(),r=R1.prototype;r[e]||(r[e]=fV)}get changes(){return this._changes||(this._changes=new lt)}get(t){return this._results[t]}map(t){return this._results.map(t)}filter(t){return this._results.filter(t)}find(t){return this._results.find(t)}reduce(t,e){return this._results.reduce(t,e)}forEach(t){this._results.forEach(t)}some(t){return this._results.some(t)}toArray(){return this._results.slice()}toString(){return this._results.toString()}reset(t,e){const r=this;r.dirty=!1;const i=Si(t);(this._changesDetected=!function Pd(n,t,e){if(n.length!==t.length)return!1;for(let r=0;r<n.length;r++){let i=n[r],o=t[r];if(e&&(i=e(i),o=e(o)),o!==i)return!1}return!0}(r._results,i,e))&&(r._results=i,r.length=i.length,r.last=i[this.length-1],r.first=i[0])}notifyOnChanges(){this._changes&&(this._changesDetected||!this._emitDistinctChangesOnly)&&this._changes.emit(this)}setDirty(){this.dirty=!0}destroy(){this.changes.complete(),this.changes.unsubscribe()}}Symbol;let va=(()=>{class n{}return n.__NG_ELEMENT_ID__=gV,n})();const dV=va,pV=class extends dV{constructor(t,e,r){super(),this._declarationLView=t,this._declarationTContainer=e,this.elementRef=r}createEmbeddedView(t){const e=this._declarationTContainer.tViews,r=je(this._declarationLView,e,t,16,null,e.declTNode,null,null,null,null);r[17]=this._declarationLView[this._declarationTContainer.index];const o=this._declarationLView[19];return null!==o&&(r[19]=o.createEmbeddedView(e)),Fu(e,r,t),new og(r)}};function gV(){return oy(Pn(),G())}function oy(n,t){return 4&n.type?new pV(t,n,$h(n,t)):null}let Wo=(()=>{class n{}return n.__NG_ELEMENT_ID__=vV,n})();function vV(){return VT(Pn(),G())}const mV=Wo,NT=class extends mV{constructor(t,e,r){super(),this._lContainer=t,this._hostTNode=e,this._hostLView=r}get element(){return $h(this._hostTNode,this._hostLView)}get injector(){return new Js(this._hostTNode,this._hostLView)}get parentInjector(){const t=po(this._hostTNode,this._hostLView);if(sm(t)){const e=Xs(t,this._hostLView),r=Wa(t);return new Js(e[1].data[r+8],e)}return new Js(null,this._hostLView)}clear(){for(;this.length>0;)this.remove(this.length-1)}get(t){const e=FT(this._lContainer);return null!==e&&e[t]||null}get length(){return this._lContainer.length-10}createEmbeddedView(t,e,r){const i=t.createEmbeddedView(e||{});return this.insert(i,r),i}createComponent(t,e,r,i,o){const s=t&&!function pu(n){return"function"==typeof n}(t);let a;if(s)a=e;else{const d=e||{};a=d.index,r=d.injector,i=d.projectableNodes,o=d.ngModuleRef}const l=s?t:new I1(Qn(t)),c=r||this.parentInjector;if(!o&&null==l.ngModule){const g=(s?c:this.parentInjector).get(ga,null);g&&(o=g)}const f=l.create(c,i,void 0,o);return this.insert(f.hostView,a),f}insert(t,e){const r=t._lView,i=r[1];if(function tw(n){return Tr(n[3])}(r)){const f=this.indexOf(t);if(-1!==f)this.detach(f);else{const d=r[3],g=new NT(d,d[6],d[3]);g.detach(g.indexOf(t))}}const o=this._adjustIndex(e),s=this._lContainer;!function Lw(n,t,e,r){const i=10+r,o=e.length;r>0&&(e[i-1][4]=t),r<o-10?(t[4]=e[i],kd(e,10+r,t)):(e.push(t),t[4]=null),t[3]=e;const s=t[17];null!==s&&e!==s&&function Nw(n,t){const e=n[9];t[16]!==t[3][3][16]&&(n[2]=!0),null===e?n[9]=[t]:e.push(t)}(s,t);const a=t[19];null!==a&&a.insertView(n),t[2]|=128}(i,r,s,o);const a=ph(o,s),l=r[11],c=dh(l,s[7]);return null!==c&&function Pw(n,t,e,r,i,o){r[0]=i,r[6]=t,kr(n,r,e,1,i,o)}(i,s[6],l,r,c,a),t.attachToViewContainerRef(),kd(O1(s),o,t),t}move(t,e){return this.insert(t,e)}indexOf(t){const e=FT(this._lContainer);return null!==e?e.indexOf(t):-1}remove(t){const e=this._adjustIndex(t,-1),r=nr(this._lContainer,e);r&&(gu(O1(this._lContainer),e),fh(r[1],r))}detach(t){const e=this._adjustIndex(t,-1),r=nr(this._lContainer,e);return r&&null!=gu(O1(this._lContainer),e)?new og(r):null}_adjustIndex(t,e=0){return null==t?this.length+e:t}};function FT(n){return n[8]}function O1(n){return n[8]||(n[8]=[])}function VT(n,t){let e;const r=t[n.index];if(Tr(r))e=r;else{let i;if(8&n.type)i=Et(r);else{const o=t[11];i=o.createComment("");const s=lr(n,t);ws(o,dh(o,s),i,function Bw(n,t){return Ae(n)?n.nextSibling(t):t.nextSibling}(o,s),!1)}t[n.index]=e=b_(r,t,i,n),Rh(t,e)}return new NT(e,n,t)}class P1{constructor(t){this.queryList=t,this.matches=null}clone(){return new P1(this.queryList)}setDirty(){this.queryList.setDirty()}}class k1{constructor(t=[]){this.queries=t}createEmbeddedView(t){const e=t.queries;if(null!==e){const r=null!==t.contentQueries?t.contentQueries[0]:e.length,i=[];for(let o=0;o<r;o++){const s=e.getByIndex(o);i.push(this.queries[s.indexInDeclarationView].clone())}return new k1(i)}return null}insertView(t){this.dirtyQueriesWithMatches(t)}detachView(t){this.dirtyQueriesWithMatches(t)}dirtyQueriesWithMatches(t){for(let e=0;e<this.queries.length;e++)null!==HT(t,e).matches&&this.queries[e].setDirty()}}class BT{constructor(t,e,r=null){this.predicate=t,this.flags=e,this.read=r}}class L1{constructor(t=[]){this.queries=t}elementStart(t,e){for(let r=0;r<this.queries.length;r++)this.queries[r].elementStart(t,e)}elementEnd(t){for(let e=0;e<this.queries.length;e++)this.queries[e].elementEnd(t)}embeddedTView(t){let e=null;for(let r=0;r<this.length;r++){const i=null!==e?e.length:0,o=this.getByIndex(r).embeddedTView(t,i);o&&(o.indexInDeclarationView=r,null!==e?e.push(o):e=[o])}return null!==e?new L1(e):null}template(t,e){for(let r=0;r<this.queries.length;r++)this.queries[r].template(t,e)}getByIndex(t){return this.queries[t]}get length(){return this.queries.length}track(t){this.queries.push(t)}}class N1{constructor(t,e=-1){this.metadata=t,this.matches=null,this.indexInDeclarationView=-1,this.crossesNgTemplate=!1,this._appliesToNextNode=!0,this._declarationNodeIndex=e}elementStart(t,e){this.isApplyingToNode(e)&&this.matchTNode(t,e)}elementEnd(t){this._declarationNodeIndex===t.index&&(this._appliesToNextNode=!1)}template(t,e){this.elementStart(t,e)}embeddedTView(t,e){return this.isApplyingToNode(t)?(this.crossesNgTemplate=!0,this.addMatch(-t.index,e),new N1(this.metadata)):null}isApplyingToNode(t){if(this._appliesToNextNode&&1!=(1&this.metadata.flags)){const e=this._declarationNodeIndex;let r=t.parent;for(;null!==r&&8&r.type&&r.index!==e;)r=r.parent;return e===(null!==r?r.index:-1)}return this._appliesToNextNode}matchTNode(t,e){const r=this.metadata.predicate;if(Array.isArray(r))for(let i=0;i<r.length;i++){const o=r[i];this.matchTNodeWithReadOption(t,e,CV(e,o)),this.matchTNodeWithReadOption(t,e,Qs(e,t,o,!1,!1))}else r===va?4&e.type&&this.matchTNodeWithReadOption(t,e,-1):this.matchTNodeWithReadOption(t,e,Qs(e,t,r,!1,!1))}matchTNodeWithReadOption(t,e,r){if(null!==r){const i=this.metadata.read;if(null!==i)if(i===Er||i===Wo||i===va&&4&e.type)this.addMatch(e.index,-2);else{const o=Qs(e,t,i,!1,!1);null!==o&&this.addMatch(e.index,o)}else this.addMatch(e.index,r)}}addMatch(t,e){null===this.matches?this.matches=[t,e]:this.matches.push(t,e)}}function CV(n,t){const e=n.localNames;if(null!==e)for(let r=0;r<e.length;r+=2)if(e[r]===t)return e[r+1];return null}function EV(n,t,e,r){return-1===e?function wV(n,t){return 11&n.type?$h(n,t):4&n.type?oy(n,t):null}(t,n):-2===e?function MV(n,t,e){return e===Er?$h(t,n):e===va?oy(t,n):e===Wo?VT(t,n):void 0}(n,t,r):hu(n,n[1],e,t)}function UT(n,t,e,r){const i=t[19].queries[r];if(null===i.matches){const o=n.data,s=e.matches,a=[];for(let l=0;l<s.length;l+=2){const c=s[l];a.push(c<0?null:EV(t,o[c],s[l+1],e.metadata.read))}i.matches=a}return i.matches}function F1(n,t,e,r){const i=n.queries.getByIndex(e),o=i.matches;if(null!==o){const s=UT(n,t,i,e);for(let a=0;a<o.length;a+=2){const l=o[a];if(l>0)r.push(s[a/2]);else{const c=o[a+1],f=t[-l];for(let d=10;d<f.length;d++){const g=f[d];g[17]===g[3]&&F1(g[1],g,c,r)}if(null!==f[9]){const d=f[9];for(let g=0;g<d.length;g++){const v=d[g];F1(v[1],v,c,r)}}}}}return r}function Hu(n){const t=G(),e=pt(),r=Zs();Ed(r+1);const i=HT(e,r);if(n.dirty&&Jl(t)===(2==(2&i.metadata.flags))){if(null===i.matches)n.reset([]);else{const o=i.crossesNgTemplate?F1(e,t,r,[]):UT(e,t,i,r);n.reset(o,F3),n.notifyOnChanges()}return!0}return!1}function ug(n,t,e){const r=pt();r.firstCreatePass&&(function GT(n,t,e){null===n.queries&&(n.queries=new L1),n.queries.track(new N1(t,e))}(r,new BT(n,t,e),-1),2==(2&t)&&(r.staticViewQueries=!0)),function jT(n,t,e){const r=new R1(4==(4&e));m_(n,t,r,r.destroy),null===t[19]&&(t[19]=new k1),t[19].queries.push(new P1(r))}(r,G(),t)}function zu(){return function xV(n,t){return n[19].queries[t].queryList}(G(),Zs())}function HT(n,t){return n.queries.getByIndex(t)}function ly(...n){}const z1=new Be("Application Initializer");let $1=(()=>{class n{constructor(e){this.appInits=e,this.resolve=ly,this.reject=ly,this.initialized=!1,this.done=!1,this.donePromise=new Promise((r,i)=>{this.resolve=r,this.reject=i})}runInitializers(){if(this.initialized)return;const e=[],r=()=>{this.done=!0,this.resolve()};if(this.appInits)for(let i=0;i<this.appInits.length;i++){const o=this.appInits[i]();if(Yp(o))e.push(o);else if(m1(o)){const s=new Promise((a,l)=>{o.subscribe({complete:a,error:l})});e.push(s)}}Promise.all(e).then(()=>{r()}).catch(i=>{this.reject(i)}),0===e.length&&r(),this.initialized=!0}}return n.\u0275fac=function(e){return new(e||n)(oe(z1,8))},n.\u0275prov=Fe({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();const hg=new Be("AppId",{providedIn:"root",factory:function sA(){return`${W1()}${W1()}${W1()}`}});function W1(){return String.fromCharCode(97+Math.floor(25*Math.random()))}const aA=new Be("Platform Initializer"),uy=new Be("Platform ID",{providedIn:"platform",factory:()=>"unknown"}),lA=new Be("appBootstrapListener");let HV=(()=>{class n{log(e){console.log(e)}warn(e){console.warn(e)}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275prov=Fe({token:n,factory:n.\u0275fac,providedIn:"platform"}),n})();const cl=new Be("LocaleId",{providedIn:"root",factory:()=>jd(cl,Ve.Optional|Ve.SkipSelf)||function zV(){return"undefined"!=typeof $localize&&$localize.locale||J_}()});class WV{constructor(t,e){this.ngModuleFactory=t,this.componentFactories=e}}let uA=(()=>{class n{compileModuleSync(e){return new T1(e)}compileModuleAsync(e){return Promise.resolve(this.compileModuleSync(e))}compileModuleAndAllComponentsSync(e){const r=this.compileModuleSync(e),o=Co(_i(e).declarations).reduce((s,a)=>{const l=Qn(a);return l&&s.push(new I1(l)),s},[]);return new WV(r,o)}compileModuleAndAllComponentsAsync(e){return Promise.resolve(this.compileModuleAndAllComponentsSync(e))}clearCache(){}clearCacheFor(e){}getModuleId(e){}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275prov=Fe({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();const KV=(()=>Promise.resolve(0))();function q1(n){"undefined"==typeof Zone?KV.then(()=>{n&&n.apply(null,null)}):Zone.current.scheduleMicroTask("scheduleMicrotask",n)}class hr{constructor({enableLongStackTrace:t=!1,shouldCoalesceEventChangeDetection:e=!1,shouldCoalesceRunChangeDetection:r=!1}){if(this.hasPendingMacrotasks=!1,this.hasPendingMicrotasks=!1,this.isStable=!0,this.onUnstable=new lt(!1),this.onMicrotaskEmpty=new lt(!1),this.onStable=new lt(!1),this.onError=new lt(!1),"undefined"==typeof Zone)throw new Error("In this configuration Angular requires Zone.js");Zone.assertZonePatched();const i=this;i._nesting=0,i._outer=i._inner=Zone.current,Zone.TaskTrackingZoneSpec&&(i._inner=i._inner.fork(new Zone.TaskTrackingZoneSpec)),t&&Zone.longStackTraceZoneSpec&&(i._inner=i._inner.fork(Zone.longStackTraceZoneSpec)),i.shouldCoalesceEventChangeDetection=!r&&e,i.shouldCoalesceRunChangeDetection=r,i.lastRequestAnimationFrameId=-1,i.nativeRequestAnimationFrame=function ZV(){let n=Ot.requestAnimationFrame,t=Ot.cancelAnimationFrame;if("undefined"!=typeof Zone&&n&&t){const e=n[Zone.__symbol__("OriginalDelegate")];e&&(n=e);const r=t[Zone.__symbol__("OriginalDelegate")];r&&(t=r)}return{nativeRequestAnimationFrame:n,nativeCancelAnimationFrame:t}}().nativeRequestAnimationFrame,function QV(n){const t=()=>{!function XV(n){n.isCheckStableRunning||-1!==n.lastRequestAnimationFrameId||(n.lastRequestAnimationFrameId=n.nativeRequestAnimationFrame.call(Ot,()=>{n.fakeTopEventTask||(n.fakeTopEventTask=Zone.root.scheduleEventTask("fakeTopEventTask",()=>{n.lastRequestAnimationFrameId=-1,Z1(n),n.isCheckStableRunning=!0,K1(n),n.isCheckStableRunning=!1},void 0,()=>{},()=>{})),n.fakeTopEventTask.invoke()}),Z1(n))}(n)};n._inner=n._inner.fork({name:"angular",properties:{isAngularZone:!0},onInvokeTask:(e,r,i,o,s,a)=>{try{return cA(n),e.invokeTask(i,o,s,a)}finally{(n.shouldCoalesceEventChangeDetection&&"eventTask"===o.type||n.shouldCoalesceRunChangeDetection)&&t(),hA(n)}},onInvoke:(e,r,i,o,s,a,l)=>{try{return cA(n),e.invoke(i,o,s,a,l)}finally{n.shouldCoalesceRunChangeDetection&&t(),hA(n)}},onHasTask:(e,r,i,o)=>{e.hasTask(i,o),r===i&&("microTask"==o.change?(n._hasPendingMicrotasks=o.microTask,Z1(n),K1(n)):"macroTask"==o.change&&(n.hasPendingMacrotasks=o.macroTask))},onHandleError:(e,r,i,o)=>(e.handleError(i,o),n.runOutsideAngular(()=>n.onError.emit(o)),!1)})}(i)}static isInAngularZone(){return"undefined"!=typeof Zone&&!0===Zone.current.get("isAngularZone")}static assertInAngularZone(){if(!hr.isInAngularZone())throw new Error("Expected to be in Angular Zone, but it is not!")}static assertNotInAngularZone(){if(hr.isInAngularZone())throw new Error("Expected to not be in Angular Zone, but it is!")}run(t,e,r){return this._inner.run(t,e,r)}runTask(t,e,r,i){const o=this._inner,s=o.scheduleEventTask("NgZoneEvent: "+i,t,YV,ly,ly);try{return o.runTask(s,e,r)}finally{o.cancelTask(s)}}runGuarded(t,e,r){return this._inner.runGuarded(t,e,r)}runOutsideAngular(t){return this._outer.run(t)}}const YV={};function K1(n){if(0==n._nesting&&!n.hasPendingMicrotasks&&!n.isStable)try{n._nesting++,n.onMicrotaskEmpty.emit(null)}finally{if(n._nesting--,!n.hasPendingMicrotasks)try{n.runOutsideAngular(()=>n.onStable.emit(null))}finally{n.isStable=!0}}}function Z1(n){n.hasPendingMicrotasks=!!(n._hasPendingMicrotasks||(n.shouldCoalesceEventChangeDetection||n.shouldCoalesceRunChangeDetection)&&-1!==n.lastRequestAnimationFrameId)}function cA(n){n._nesting++,n.isStable&&(n.isStable=!1,n.onUnstable.emit(null))}function hA(n){n._nesting--,K1(n)}class JV{constructor(){this.hasPendingMicrotasks=!1,this.hasPendingMacrotasks=!1,this.isStable=!0,this.onUnstable=new lt,this.onMicrotaskEmpty=new lt,this.onStable=new lt,this.onError=new lt}run(t,e,r){return t.apply(e,r)}runGuarded(t,e,r){return t.apply(e,r)}runOutsideAngular(t){return t()}runTask(t,e,r,i){return t.apply(e,r)}}let Y1=(()=>{class n{constructor(e){this._ngZone=e,this._pendingCount=0,this._isZoneStable=!0,this._didWork=!1,this._callbacks=[],this.taskTrackingZone=null,this._watchAngularEvents(),e.run(()=>{this.taskTrackingZone="undefined"==typeof Zone?null:Zone.current.get("TaskTrackingZone")})}_watchAngularEvents(){this._ngZone.onUnstable.subscribe({next:()=>{this._didWork=!0,this._isZoneStable=!1}}),this._ngZone.runOutsideAngular(()=>{this._ngZone.onStable.subscribe({next:()=>{hr.assertNotInAngularZone(),q1(()=>{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())q1(()=>{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(r=>!r.updateCb||!r.updateCb(e)||(clearTimeout(r.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,r,i){let o=-1;r&&r>0&&(o=setTimeout(()=>{this._callbacks=this._callbacks.filter(s=>s.timeoutId!==o),e(this._didWork,this.getPendingTasks())},r)),this._callbacks.push({doneCb:e,timeoutId:o,updateCb:i})}whenStable(e,r,i){if(i&&!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,r,i),this._runCallbacksIfReady()}getPendingRequestCount(){return this._pendingCount}findProviders(e,r,i){return[]}}return n.\u0275fac=function(e){return new(e||n)(oe(hr))},n.\u0275prov=Fe({token:n,factory:n.\u0275fac}),n})(),eB=(()=>{class n{constructor(){this._applications=new Map,X1.addToWindow(this)}registerApplication(e,r){this._applications.set(e,r)}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,r=!0){return X1.findTestabilityInTree(this,e,r)}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275prov=Fe({token:n,factory:n.\u0275fac,providedIn:"platform"}),n})();class tB{addToWindow(t){}findTestabilityInTree(t,e,r){return null}}let X1=new tB,$u=null;const fA=new Be("AllowMultipleToken"),dA=new Be("PlatformOnDestroy");class pA{constructor(t,e){this.name=t,this.token=e}}function gA(n,t,e=[]){const r=`Platform: ${t}`,i=new Be(r);return(o=[])=>{let s=Q1();if(!s||s.injector.get(fA,!1)){const a=[...e,...o,{provide:i,useValue:!0}];n?n(a):function oB(n){if($u&&!$u.get(fA,!1))throw new st(400,"");$u=n;const t=n.get(vA),e=n.get(aA,null);e&&e.forEach(r=>r())}(function aB(n=[],t){return ur.create({name:t,providers:[{provide:Up,useValue:"platform"},{provide:dA,useValue:()=>$u=null},...n]})}(a,r))}return function sB(n){const t=Q1();if(!t)throw new st(401,"");return t}()}}function Q1(){var n;return null!==(n=null==$u?void 0:$u.get(vA))&&void 0!==n?n:null}let vA=(()=>{class n{constructor(e){this._injector=e,this._modules=[],this._destroyListeners=[],this._destroyed=!1}bootstrapModuleFactory(e,r){const a=function lB(n,t){let e;return e="noop"===n?new JV:("zone.js"===n?void 0:n)||new hr({enableLongStackTrace:!1,shouldCoalesceEventChangeDetection:!!(null==t?void 0:t.ngZoneEventCoalescing),shouldCoalesceRunChangeDetection:!!(null==t?void 0:t.ngZoneRunCoalescing)}),e}(r?r.ngZone:void 0,{ngZoneEventCoalescing:r&&r.ngZoneEventCoalescing||!1,ngZoneRunCoalescing:r&&r.ngZoneRunCoalescing||!1}),l=[{provide:hr,useValue:a}];return a.run(()=>{const c=ur.create({providers:l,parent:this.injector,name:e.moduleType.name}),f=e.create(c),d=f.injector.get(ku,null);if(!d)throw new st(402,"");return a.runOutsideAngular(()=>{const g=a.onError.subscribe({next:v=>{d.handleError(v)}});f.onDestroy(()=>{eM(this._modules,f),g.unsubscribe()})}),function uB(n,t,e){try{const r=e();return Yp(r)?r.catch(i=>{throw t.runOutsideAngular(()=>n.handleError(i)),i}):r}catch(r){throw t.runOutsideAngular(()=>n.handleError(r)),r}}(d,a,()=>{const g=f.injector.get($1);return g.runInitializers(),g.donePromise.then(()=>(function V2(n){Yr(n,"Expected localeId to be defined"),"string"==typeof n&&(XI=n.toLowerCase().replace(/_/g,"-"))}(f.injector.get(cl,J_)||J_),this._moduleDoBootstrap(f),f))})})}bootstrapModule(e,r=[]){const i=mA({},r);return function rB(n,t,e){const r=new T1(e);return Promise.resolve(r)}(0,0,e).then(o=>this.bootstrapModuleFactory(o,i))}_moduleDoBootstrap(e){const r=e.injector.get(J1);if(e._bootstrapComponents.length>0)e._bootstrapComponents.forEach(i=>r.bootstrap(i));else{if(!e.instance.ngDoBootstrap)throw new st(403,"");e.instance.ngDoBootstrap(r)}this._modules.push(e)}onDestroy(e){this._destroyListeners.push(e)}get injector(){return this._injector}destroy(){if(this._destroyed)throw new st(404,"");this._modules.slice().forEach(r=>r.destroy()),this._destroyListeners.forEach(r=>r());const e=this._injector.get(dA,null);null==e||e(),this._destroyed=!0}get destroyed(){return this._destroyed}}return n.\u0275fac=function(e){return new(e||n)(oe(ur))},n.\u0275prov=Fe({token:n,factory:n.\u0275fac,providedIn:"platform"}),n})();function mA(n,t){return Array.isArray(t)?t.reduce(mA,n):Object.assign(Object.assign({},n),t)}let J1=(()=>{class n{constructor(e,r,i,o){this._zone=e,this._injector=r,this._exceptionHandler=i,this._initStatus=o,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 s=new ae(l=>{this._stable=this._zone.isStable&&!this._zone.hasPendingMacrotasks&&!this._zone.hasPendingMicrotasks,this._zone.runOutsideAngular(()=>{l.next(this._stable),l.complete()})}),a=new ae(l=>{let c;this._zone.runOutsideAngular(()=>{c=this._zone.onStable.subscribe(()=>{hr.assertNotInAngularZone(),q1(()=>{!this._stable&&!this._zone.hasPendingMacrotasks&&!this._zone.hasPendingMicrotasks&&(this._stable=!0,l.next(!0))})})});const f=this._zone.onUnstable.subscribe(()=>{hr.assertInAngularZone(),this._stable&&(this._stable=!1,this._zone.runOutsideAngular(()=>{l.next(!1)}))});return()=>{c.unsubscribe(),f.unsubscribe()}});this.isStable=function Wl(...n){let t=Number.POSITIVE_INFINITY,e=null,r=n[n.length-1];return gi(r)?(e=n.pop(),n.length>1&&"number"==typeof n[n.length-1]&&(t=n.pop())):"number"==typeof r&&(t=n.pop()),null===e&&1===n.length&&n[0]instanceof ae?n[0]:Ao(t)(Wf(n,e))}(s,a.pipe(function IC(){return n=>ls()(function Qf(n,t){return function(r){let i;if(i="function"==typeof n?n:function(){return n},"function"==typeof t)return r.lift(new Jf(i,t));const o=Object.create(r,Zf);return o.source=r,o.subjectFactory=i,o}}(SC)(n))}()))}bootstrap(e,r){if(!this._initStatus.done)throw new st(405,"");let i;i=e instanceof ET?e:this._injector.get(rg).resolveComponentFactory(e),this.componentTypes.push(i.componentType);const o=function iB(n){return n.isBoundToModule}(i)?void 0:this._injector.get(ga),a=i.create(ur.NULL,[],r||i.selector,o),l=a.location.nativeElement,c=a.injector.get(Y1,null),f=c&&a.injector.get(eB);return c&&f&&f.registerApplication(l,c),a.onDestroy(()=>{this.detachView(a.hostView),eM(this.components,a),f&&f.unregisterApplication(l)}),this._loadComponent(a),a}tick(){if(this._runningTick)throw new st(101,"");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 r=e;this._views.push(r),r.attachToAppRef(this)}detachView(e){const r=e;eM(this._views,r),r.detachFromAppRef()}_loadComponent(e){this.attachView(e.hostView),this.tick(),this.components.push(e),this._injector.get(lA,[]).concat(this._bootstrapListeners).forEach(i=>i(e))}ngOnDestroy(){this._views.slice().forEach(e=>e.destroy()),this._onMicrotaskEmptySubscription.unsubscribe()}get viewCount(){return this._views.length}}return n.\u0275fac=function(e){return new(e||n)(oe(hr),oe(ur),oe(ku),oe($1))},n.\u0275prov=Fe({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();function eM(n,t){const e=n.indexOf(t);e>-1&&n.splice(e,1)}let yA=!0,cy=(()=>{class n{}return n.__NG_ELEMENT_ID__=fB,n})();function fB(n){return function dB(n,t,e){if(Uc(n)&&!e){const r=Rr(n.index,t);return new og(r,r)}return 47&n.type?new og(t[16],t):null}(Pn(),G(),16==(16&n))}class xA{constructor(){}supports(t){return Y(t)}create(t){return new yB(t)}}const _B=(n,t)=>t;class yB{constructor(t){this.length=0,this._linkedRecords=null,this._unlinkedRecords=null,this._previousItHead=null,this._itHead=null,this._itTail=null,this._additionsHead=null,this._additionsTail=null,this._movesHead=null,this._movesTail=null,this._removalsHead=null,this._removalsTail=null,this._identityChangesHead=null,this._identityChangesTail=null,this._trackByFn=t||_B}forEachItem(t){let e;for(e=this._itHead;null!==e;e=e._next)t(e)}forEachOperation(t){let e=this._itHead,r=this._removalsHead,i=0,o=null;for(;e||r;){const s=!r||e&&e.currentIndex<DA(r,i,o)?e:r,a=DA(s,i,o),l=s.currentIndex;if(s===r)i--,r=r._nextRemoved;else if(e=e._next,null==s.previousIndex)i++;else{o||(o=[]);const c=a-i,f=l-i;if(c!=f){for(let g=0;g<c;g++){const v=g<o.length?o[g]:o[g]=0,m=v+g;f<=m&&m<c&&(o[g]=v+1)}o[s.previousIndex]=f-c}}a!==l&&t(s,a,l)}}forEachPreviousItem(t){let e;for(e=this._previousItHead;null!==e;e=e._nextPrevious)t(e)}forEachAddedItem(t){let e;for(e=this._additionsHead;null!==e;e=e._nextAdded)t(e)}forEachMovedItem(t){let e;for(e=this._movesHead;null!==e;e=e._nextMoved)t(e)}forEachRemovedItem(t){let e;for(e=this._removalsHead;null!==e;e=e._nextRemoved)t(e)}forEachIdentityChange(t){let e;for(e=this._identityChangesHead;null!==e;e=e._nextIdentityChange)t(e)}diff(t){if(null==t&&(t=[]),!Y(t))throw new st(900,"");return this.check(t)?this:null}onDestroy(){}check(t){this._reset();let i,o,s,e=this._itHead,r=!1;if(Array.isArray(t)){this.length=t.length;for(let a=0;a<this.length;a++)o=t[a],s=this._trackByFn(a,o),null!==e&&Object.is(e.trackById,s)?(r&&(e=this._verifyReinsertion(e,o,s,a)),Object.is(e.item,o)||this._addIdentityChange(e,o)):(e=this._mismatch(e,o,s,a),r=!0),e=e._next}else i=0,function Ee(n,t){if(Array.isArray(n))for(let e=0;e<n.length;e++)t(n[e]);else{const e=n[B()]();let r;for(;!(r=e.next()).done;)t(r.value)}}(t,a=>{s=this._trackByFn(i,a),null!==e&&Object.is(e.trackById,s)?(r&&(e=this._verifyReinsertion(e,a,s,i)),Object.is(e.item,a)||this._addIdentityChange(e,a)):(e=this._mismatch(e,a,s,i),r=!0),e=e._next,i++}),this.length=i;return this._truncate(e),this.collection=t,this.isDirty}get isDirty(){return null!==this._additionsHead||null!==this._movesHead||null!==this._removalsHead||null!==this._identityChangesHead}_reset(){if(this.isDirty){let t;for(t=this._previousItHead=this._itHead;null!==t;t=t._next)t._nextPrevious=t._next;for(t=this._additionsHead;null!==t;t=t._nextAdded)t.previousIndex=t.currentIndex;for(this._additionsHead=this._additionsTail=null,t=this._movesHead;null!==t;t=t._nextMoved)t.previousIndex=t.currentIndex;this._movesHead=this._movesTail=null,this._removalsHead=this._removalsTail=null,this._identityChangesHead=this._identityChangesTail=null}}_mismatch(t,e,r,i){let o;return null===t?o=this._itTail:(o=t._prev,this._remove(t)),null!==(t=null===this._unlinkedRecords?null:this._unlinkedRecords.get(r,null))?(Object.is(t.item,e)||this._addIdentityChange(t,e),this._reinsertAfter(t,o,i)):null!==(t=null===this._linkedRecords?null:this._linkedRecords.get(r,i))?(Object.is(t.item,e)||this._addIdentityChange(t,e),this._moveAfter(t,o,i)):t=this._addAfter(new CB(e,r),o,i),t}_verifyReinsertion(t,e,r,i){let o=null===this._unlinkedRecords?null:this._unlinkedRecords.get(r,null);return null!==o?t=this._reinsertAfter(o,t._prev,i):t.currentIndex!=i&&(t.currentIndex=i,this._addToMoves(t,i)),t}_truncate(t){for(;null!==t;){const e=t._next;this._addToRemovals(this._unlink(t)),t=e}null!==this._unlinkedRecords&&this._unlinkedRecords.clear(),null!==this._additionsTail&&(this._additionsTail._nextAdded=null),null!==this._movesTail&&(this._movesTail._nextMoved=null),null!==this._itTail&&(this._itTail._next=null),null!==this._removalsTail&&(this._removalsTail._nextRemoved=null),null!==this._identityChangesTail&&(this._identityChangesTail._nextIdentityChange=null)}_reinsertAfter(t,e,r){null!==this._unlinkedRecords&&this._unlinkedRecords.remove(t);const i=t._prevRemoved,o=t._nextRemoved;return null===i?this._removalsHead=o:i._nextRemoved=o,null===o?this._removalsTail=i:o._prevRemoved=i,this._insertAfter(t,e,r),this._addToMoves(t,r),t}_moveAfter(t,e,r){return this._unlink(t),this._insertAfter(t,e,r),this._addToMoves(t,r),t}_addAfter(t,e,r){return this._insertAfter(t,e,r),this._additionsTail=null===this._additionsTail?this._additionsHead=t:this._additionsTail._nextAdded=t,t}_insertAfter(t,e,r){const i=null===e?this._itHead:e._next;return t._next=i,t._prev=e,null===i?this._itTail=t:i._prev=t,null===e?this._itHead=t:e._next=t,null===this._linkedRecords&&(this._linkedRecords=new bA),this._linkedRecords.put(t),t.currentIndex=r,t}_remove(t){return this._addToRemovals(this._unlink(t))}_unlink(t){null!==this._linkedRecords&&this._linkedRecords.remove(t);const e=t._prev,r=t._next;return null===e?this._itHead=r:e._next=r,null===r?this._itTail=e:r._prev=e,t}_addToMoves(t,e){return t.previousIndex===e||(this._movesTail=null===this._movesTail?this._movesHead=t:this._movesTail._nextMoved=t),t}_addToRemovals(t){return null===this._unlinkedRecords&&(this._unlinkedRecords=new bA),this._unlinkedRecords.put(t),t.currentIndex=null,t._nextRemoved=null,null===this._removalsTail?(this._removalsTail=this._removalsHead=t,t._prevRemoved=null):(t._prevRemoved=this._removalsTail,this._removalsTail=this._removalsTail._nextRemoved=t),t}_addIdentityChange(t,e){return t.item=e,this._identityChangesTail=null===this._identityChangesTail?this._identityChangesHead=t:this._identityChangesTail._nextIdentityChange=t,t}}class CB{constructor(t,e){this.item=t,this.trackById=e,this.currentIndex=null,this.previousIndex=null,this._nextPrevious=null,this._prev=null,this._next=null,this._prevDup=null,this._nextDup=null,this._prevRemoved=null,this._nextRemoved=null,this._nextAdded=null,this._nextMoved=null,this._nextIdentityChange=null}}class wB{constructor(){this._head=null,this._tail=null}add(t){null===this._head?(this._head=this._tail=t,t._nextDup=null,t._prevDup=null):(this._tail._nextDup=t,t._prevDup=this._tail,t._nextDup=null,this._tail=t)}get(t,e){let r;for(r=this._head;null!==r;r=r._nextDup)if((null===e||e<=r.currentIndex)&&Object.is(r.trackById,t))return r;return null}remove(t){const e=t._prevDup,r=t._nextDup;return null===e?this._head=r:e._nextDup=r,null===r?this._tail=e:r._prevDup=e,null===this._head}}class bA{constructor(){this.map=new Map}put(t){const e=t.trackById;let r=this.map.get(e);r||(r=new wB,this.map.set(e,r)),r.add(t)}get(t,e){const i=this.map.get(t);return i?i.get(t,e):null}remove(t){const e=t.trackById;return this.map.get(e).remove(t)&&this.map.delete(e),t}get isEmpty(){return 0===this.map.size}clear(){this.map.clear()}}function DA(n,t,e){const r=n.previousIndex;if(null===r)return r;let i=0;return e&&r<e.length&&(i=e[r]),r+t+i}class SA{constructor(){}supports(t){return t instanceof Map||Xe(t)}create(){return new EB}}class EB{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(t){let e;for(e=this._mapHead;null!==e;e=e._next)t(e)}forEachPreviousItem(t){let e;for(e=this._previousMapHead;null!==e;e=e._nextPrevious)t(e)}forEachChangedItem(t){let e;for(e=this._changesHead;null!==e;e=e._nextChanged)t(e)}forEachAddedItem(t){let e;for(e=this._additionsHead;null!==e;e=e._nextAdded)t(e)}forEachRemovedItem(t){let e;for(e=this._removalsHead;null!==e;e=e._nextRemoved)t(e)}diff(t){if(t){if(!(t instanceof Map||Xe(t)))throw new st(900,"")}else t=new Map;return this.check(t)?this:null}onDestroy(){}check(t){this._reset();let e=this._mapHead;if(this._appendAfter=null,this._forEach(t,(r,i)=>{if(e&&e.key===i)this._maybeAddToChanges(e,r),this._appendAfter=e,e=e._next;else{const o=this._getOrCreateRecordForKey(i,r);e=this._insertBeforeOrAppend(e,o)}}),e){e._prev&&(e._prev._next=null),this._removalsHead=e;for(let r=e;null!==r;r=r._nextRemoved)r===this._mapHead&&(this._mapHead=null),this._records.delete(r.key),r._nextRemoved=r._next,r.previousValue=r.currentValue,r.currentValue=null,r._prev=null,r._next=null}return this._changesTail&&(this._changesTail._nextChanged=null),this._additionsTail&&(this._additionsTail._nextAdded=null),this.isDirty}_insertBeforeOrAppend(t,e){if(t){const r=t._prev;return e._next=t,e._prev=r,t._prev=e,r&&(r._next=e),t===this._mapHead&&(this._mapHead=e),this._appendAfter=t,t}return this._appendAfter?(this._appendAfter._next=e,e._prev=this._appendAfter):this._mapHead=e,this._appendAfter=e,null}_getOrCreateRecordForKey(t,e){if(this._records.has(t)){const i=this._records.get(t);this._maybeAddToChanges(i,e);const o=i._prev,s=i._next;return o&&(o._next=s),s&&(s._prev=o),i._next=null,i._prev=null,i}const r=new MB(t);return this._records.set(t,r),r.currentValue=e,this._addToAdditions(r),r}_reset(){if(this.isDirty){let t;for(this._previousMapHead=this._mapHead,t=this._previousMapHead;null!==t;t=t._next)t._nextPrevious=t._next;for(t=this._changesHead;null!==t;t=t._nextChanged)t.previousValue=t.currentValue;for(t=this._additionsHead;null!=t;t=t._nextAdded)t.previousValue=t.currentValue;this._changesHead=this._changesTail=null,this._additionsHead=this._additionsTail=null,this._removalsHead=null}}_maybeAddToChanges(t,e){Object.is(e,t.currentValue)||(t.previousValue=t.currentValue,t.currentValue=e,this._addToChanges(t))}_addToAdditions(t){null===this._additionsHead?this._additionsHead=this._additionsTail=t:(this._additionsTail._nextAdded=t,this._additionsTail=t)}_addToChanges(t){null===this._changesHead?this._changesHead=this._changesTail=t:(this._changesTail._nextChanged=t,this._changesTail=t)}_forEach(t,e){t instanceof Map?t.forEach(e):Object.keys(t).forEach(r=>e(t[r],r))}}class MB{constructor(t){this.key=t,this.previousValue=null,this.currentValue=null,this._nextPrevious=null,this._next=null,this._prev=null,this._nextAdded=null,this._nextRemoved=null,this._nextChanged=null}}function IA(){return new dy([new xA])}let dy=(()=>{class n{constructor(e){this.factories=e}static create(e,r){if(null!=r){const i=r.factories.slice();e=e.concat(i)}return new n(e)}static extend(e){return{provide:n,useFactory:r=>n.create(e,r||IA()),deps:[[n,new Mu,new go]]}}find(e){const r=this.factories.find(i=>i.supports(e));if(null!=r)return r;throw new st(901,"")}}return n.\u0275prov=Fe({token:n,providedIn:"root",factory:IA}),n})();function TA(){return new fg([new SA])}let fg=(()=>{class n{constructor(e){this.factories=e}static create(e,r){if(r){const i=r.factories.slice();e=e.concat(i)}return new n(e)}static extend(e){return{provide:n,useFactory:r=>n.create(e,r||TA()),deps:[[n,new Mu,new go]]}}find(e){const r=this.factories.find(o=>o.supports(e));if(r)return r;throw new st(901,"")}}return n.\u0275prov=Fe({token:n,providedIn:"root",factory:TA}),n})();const DB=gA(null,"core",[]);let SB=(()=>{class n{constructor(e){}}return n.\u0275fac=function(e){return new(e||n)(oe(J1))},n.\u0275mod=Xr({type:n}),n.\u0275inj=mr({}),n})(),py=null;function Ss(){return py}const ai=new Be("DocumentToken");let qu=(()=>{class n{historyGo(e){throw new Error("Not implemented")}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275prov=Fe({token:n,factory:function(){return function RB(){return oe(AA)}()},providedIn:"platform"}),n})();const OB=new Be("Location Initialized");let AA=(()=>{class n extends qu{constructor(e){super(),this._doc=e,this._init()}_init(){this.location=window.location,this._history=window.history}getBaseHrefFromDOM(){return Ss().getBaseHref(this._doc)}onPopState(e){const r=Ss().getGlobalEventTarget(this._doc,"window");return r.addEventListener("popstate",e,!1),()=>r.removeEventListener("popstate",e)}onHashChange(e){const r=Ss().getGlobalEventTarget(this._doc,"window");return r.addEventListener("hashchange",e,!1),()=>r.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,r,i){RA()?this._history.pushState(e,r,i):this.location.hash=i}replaceState(e,r,i){RA()?this._history.replaceState(e,r,i):this.location.hash=i}forward(){this._history.forward()}back(){this._history.back()}historyGo(e=0){this._history.go(e)}getState(){return this._history.state}}return n.\u0275fac=function(e){return new(e||n)(oe(ai))},n.\u0275prov=Fe({token:n,factory:function(){return function PB(){return new AA(oe(ai))}()},providedIn:"platform"}),n})();function RA(){return!!window.history.pushState}function oM(n,t){if(0==n.length)return t;if(0==t.length)return n;let e=0;return n.endsWith("/")&&e++,t.startsWith("/")&&e++,2==e?n+t.substring(1):1==e?n+t:n+"/"+t}function OA(n){const t=n.match(/#|\?|$/),e=t&&t.index||n.length;return n.slice(0,e-("/"===n[e-1]?1:0))+n.slice(e)}function ma(n){return n&&"?"!==n[0]?"?"+n:n}let Kh=(()=>{class n{historyGo(e){throw new Error("Not implemented")}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275prov=Fe({token:n,factory:function(){return function kB(n){const t=oe(ai).location;return new PA(oe(qu),t&&t.origin||"")}()},providedIn:"root"}),n})();const sM=new Be("appBaseHref");let PA=(()=>{class n extends Kh{constructor(e,r){if(super(),this._platformLocation=e,this._removeListenerFns=[],null==r&&(r=this._platformLocation.getBaseHrefFromDOM()),null==r)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=r}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 oM(this._baseHref,e)}path(e=!1){const r=this._platformLocation.pathname+ma(this._platformLocation.search),i=this._platformLocation.hash;return i&&e?`${r}${i}`:r}pushState(e,r,i,o){const s=this.prepareExternalUrl(i+ma(o));this._platformLocation.pushState(e,r,s)}replaceState(e,r,i,o){const s=this.prepareExternalUrl(i+ma(o));this._platformLocation.replaceState(e,r,s)}forward(){this._platformLocation.forward()}back(){this._platformLocation.back()}historyGo(e=0){var r,i;null===(i=(r=this._platformLocation).historyGo)||void 0===i||i.call(r,e)}}return n.\u0275fac=function(e){return new(e||n)(oe(qu),oe(sM,8))},n.\u0275prov=Fe({token:n,factory:n.\u0275fac}),n})(),LB=(()=>{class n extends Kh{constructor(e,r){super(),this._platformLocation=e,this._baseHref="",this._removeListenerFns=[],null!=r&&(this._baseHref=r)}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 r=this._platformLocation.hash;return null==r&&(r="#"),r.length>0?r.substring(1):r}prepareExternalUrl(e){const r=oM(this._baseHref,e);return r.length>0?"#"+r:r}pushState(e,r,i,o){let s=this.prepareExternalUrl(i+ma(o));0==s.length&&(s=this._platformLocation.pathname),this._platformLocation.pushState(e,r,s)}replaceState(e,r,i,o){let s=this.prepareExternalUrl(i+ma(o));0==s.length&&(s=this._platformLocation.pathname),this._platformLocation.replaceState(e,r,s)}forward(){this._platformLocation.forward()}back(){this._platformLocation.back()}historyGo(e=0){var r,i;null===(i=(r=this._platformLocation).historyGo)||void 0===i||i.call(r,e)}}return n.\u0275fac=function(e){return new(e||n)(oe(qu),oe(sM,8))},n.\u0275prov=Fe({token:n,factory:n.\u0275fac}),n})(),aM=(()=>{class n{constructor(e,r){this._subject=new lt,this._urlChangeListeners=[],this._platformStrategy=e;const i=this._platformStrategy.getBaseHref();this._platformLocation=r,this._baseHref=OA(kA(i)),this._platformStrategy.onPopState(o=>{this._subject.emit({url:this.path(!0),pop:!0,state:o.state,type:o.type})})}path(e=!1){return this.normalize(this._platformStrategy.path(e))}getState(){return this._platformLocation.getState()}isCurrentPathEqualTo(e,r=""){return this.path()==this.normalize(e+ma(r))}normalize(e){return n.stripTrailingSlash(function FB(n,t){return n&&t.startsWith(n)?t.substring(n.length):t}(this._baseHref,kA(e)))}prepareExternalUrl(e){return e&&"/"!==e[0]&&(e="/"+e),this._platformStrategy.prepareExternalUrl(e)}go(e,r="",i=null){this._platformStrategy.pushState(i,"",e,r),this._notifyUrlChangeListeners(this.prepareExternalUrl(e+ma(r)),i)}replaceState(e,r="",i=null){this._platformStrategy.replaceState(i,"",e,r),this._notifyUrlChangeListeners(this.prepareExternalUrl(e+ma(r)),i)}forward(){this._platformStrategy.forward()}back(){this._platformStrategy.back()}historyGo(e=0){var r,i;null===(i=(r=this._platformStrategy).historyGo)||void 0===i||i.call(r,e)}onUrlChange(e){this._urlChangeListeners.push(e),this._urlChangeSubscription||(this._urlChangeSubscription=this.subscribe(r=>{this._notifyUrlChangeListeners(r.url,r.state)}))}_notifyUrlChangeListeners(e="",r){this._urlChangeListeners.forEach(i=>i(e,r))}subscribe(e,r,i){return this._subject.subscribe({next:e,error:r,complete:i})}}return n.normalizeQueryParams=ma,n.joinWithSlash=oM,n.stripTrailingSlash=OA,n.\u0275fac=function(e){return new(e||n)(oe(Kh),oe(qu))},n.\u0275prov=Fe({token:n,factory:function(){return function NB(){return new aM(oe(Kh),oe(qu))}()},providedIn:"root"}),n})();function kA(n){return n.replace(/\/index.html$/,"")}function HA(n,t){t=encodeURIComponent(t);for(const e of n.split(";")){const r=e.indexOf("="),[i,o]=-1==r?[e,""]:[e.slice(0,r),e.slice(r+1)];if(i.trim()===t)return decodeURIComponent(o)}return null}let mM=(()=>{class n{constructor(e,r,i,o){this._iterableDiffers=e,this._keyValueDiffers=r,this._ngEl=i,this._renderer=o,this._iterableDiffer=null,this._keyValueDiffer=null,this._initialClasses=[],this._rawClass=null}set klass(e){this._removeClasses(this._initialClasses),this._initialClasses="string"==typeof e?e.split(/\s+/):[],this._applyClasses(this._initialClasses),this._applyClasses(this._rawClass)}set ngClass(e){this._removeClasses(this._rawClass),this._applyClasses(this._initialClasses),this._iterableDiffer=null,this._keyValueDiffer=null,this._rawClass="string"==typeof e?e.split(/\s+/):e,this._rawClass&&(Y(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(r=>this._toggleClass(r.key,r.currentValue)),e.forEachChangedItem(r=>this._toggleClass(r.key,r.currentValue)),e.forEachRemovedItem(r=>{r.previousValue&&this._toggleClass(r.key,!1)})}_applyIterableChanges(e){e.forEachAddedItem(r=>{if("string"!=typeof r.item)throw new Error(`NgClass can only toggle CSS classes expressed as strings, got ${Tt(r.item)}`);this._toggleClass(r.item,!0)}),e.forEachRemovedItem(r=>this._toggleClass(r.item,!1))}_applyClasses(e){e&&(Array.isArray(e)||e instanceof Set?e.forEach(r=>this._toggleClass(r,!0)):Object.keys(e).forEach(r=>this._toggleClass(r,!!e[r])))}_removeClasses(e){e&&(Array.isArray(e)||e instanceof Set?e.forEach(r=>this._toggleClass(r,!1)):Object.keys(e).forEach(r=>this._toggleClass(r,!1)))}_toggleClass(e,r){(e=e.trim())&&e.split(/\s+/g).forEach(i=>{r?this._renderer.addClass(this._ngEl.nativeElement,i):this._renderer.removeClass(this._ngEl.nativeElement,i)})}}return n.\u0275fac=function(e){return new(e||n)(z(dy),z(fg),z(Er),z(pa))},n.\u0275dir=Te({type:n,selectors:[["","ngClass",""]],inputs:{klass:["class","klass"],ngClass:"ngClass"}}),n})();class wU{constructor(t,e,r,i){this.$implicit=t,this.ngForOf=e,this.index=r,this.count=i}get first(){return 0===this.index}get last(){return this.index===this.count-1}get even(){return this.index%2==0}get odd(){return!this.even}}let Is=(()=>{class n{constructor(e,r,i){this._viewContainer=e,this._template=r,this._differs=i,this._ngForOf=null,this._ngForOfDirty=!0,this._differ=null}set ngForOf(e){this._ngForOf=e,this._ngForOfDirty=!0}set ngForTrackBy(e){this._trackByFn=e}get ngForTrackBy(){return this._trackByFn}set ngForTemplate(e){e&&(this._template=e)}ngDoCheck(){if(this._ngForOfDirty){this._ngForOfDirty=!1;const e=this._ngForOf;!this._differ&&e&&(this._differ=this._differs.find(e).create(this.ngForTrackBy))}if(this._differ){const e=this._differ.diff(this._ngForOf);e&&this._applyChanges(e)}}_applyChanges(e){const r=this._viewContainer;e.forEachOperation((i,o,s)=>{if(null==i.previousIndex)r.createEmbeddedView(this._template,new wU(i.item,this._ngForOf,-1,-1),null===s?void 0:s);else if(null==s)r.remove(null===o?void 0:o);else if(null!==o){const a=r.get(o);r.move(a,s),zA(a,i)}});for(let i=0,o=r.length;i<o;i++){const a=r.get(i).context;a.index=i,a.count=o,a.ngForOf=this._ngForOf}e.forEachIdentityChange(i=>{zA(r.get(i.currentIndex),i)})}static ngTemplateContextGuard(e,r){return!0}}return n.\u0275fac=function(e){return new(e||n)(z(Wo),z(va),z(dy))},n.\u0275dir=Te({type:n,selectors:[["","ngFor","","ngForOf",""]],inputs:{ngForOf:"ngForOf",ngForTrackBy:"ngForTrackBy",ngForTemplate:"ngForTemplate"}}),n})();function zA(n,t){n.context.$implicit=t.item}let ya=(()=>{class n{constructor(e,r){this._viewContainer=e,this._context=new EU,this._thenTemplateRef=null,this._elseTemplateRef=null,this._thenViewRef=null,this._elseViewRef=null,this._thenTemplateRef=r}set ngIf(e){this._context.$implicit=this._context.ngIf=e,this._updateView()}set ngIfThen(e){$A("ngIfThen",e),this._thenTemplateRef=e,this._thenViewRef=null,this._updateView()}set ngIfElse(e){$A("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,r){return!0}}return n.\u0275fac=function(e){return new(e||n)(z(Wo),z(va))},n.\u0275dir=Te({type:n,selectors:[["","ngIf",""]],inputs:{ngIf:"ngIf",ngIfThen:"ngIfThen",ngIfElse:"ngIfElse"}}),n})();class EU{constructor(){this.$implicit=null,this.ngIf=null}}function $A(n,t){if(t&&!t.createEmbeddedView)throw new Error(`${n} must be a TemplateRef, but received '${Tt(t)}'.`)}const WA="browser";function xy(n){return n===WA}class CM{constructor(t,e){this._viewContainerRef=t,this._templateRef=e,this._created=!1}create(){this._created=!0,this._viewContainerRef.createEmbeddedView(this._templateRef)}destroy(){this._created=!1,this._viewContainerRef.clear()}enforceState(t){t&&!this._created?this.create():!t&&this._created&&this.destroy()}}let Sy=(()=>{class n{constructor(){this._defaultUsed=!1,this._caseCount=0,this._lastCaseCheckIndex=0,this._lastCasesMatched=!1}set ngSwitch(e){this._ngSwitch=e,0===this._caseCount&&this._updateDefaultCases(!0)}_addCase(){return this._caseCount++}_addDefault(e){this._defaultViews||(this._defaultViews=[]),this._defaultViews.push(e)}_matchCase(e){const r=e==this._ngSwitch;return this._lastCasesMatched=this._lastCasesMatched||r,this._lastCaseCheckIndex++,this._lastCaseCheckIndex===this._caseCount&&(this._updateDefaultCases(!this._lastCasesMatched),this._lastCaseCheckIndex=0,this._lastCasesMatched=!1),r}_updateDefaultCases(e){if(this._defaultViews&&e!==this._defaultUsed){this._defaultUsed=e;for(let r=0;r<this._defaultViews.length;r++)this._defaultViews[r].enforceState(e)}}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275dir=Te({type:n,selectors:[["","ngSwitch",""]],inputs:{ngSwitch:"ngSwitch"}}),n})(),XA=(()=>{class n{constructor(e,r,i){this.ngSwitch=i,i._addCase(),this._view=new CM(e,r)}ngDoCheck(){this._view.enforceState(this.ngSwitch._matchCase(this.ngSwitchCase))}}return n.\u0275fac=function(e){return new(e||n)(z(Wo),z(va),z(Sy,9))},n.\u0275dir=Te({type:n,selectors:[["","ngSwitchCase",""]],inputs:{ngSwitchCase:"ngSwitchCase"}}),n})(),wM=(()=>{class n{constructor(e,r,i){this._ngEl=e,this._differs=r,this._renderer=i,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,r){const[i,o]=e.split(".");null!=(r=null!=r&&o?`${r}${o}`:r)?this._renderer.setStyle(this._ngEl.nativeElement,i,r):this._renderer.removeStyle(this._ngEl.nativeElement,i)}_applyChanges(e){e.forEachRemovedItem(r=>this._setStyle(r.key,null)),e.forEachAddedItem(r=>this._setStyle(r.key,r.currentValue)),e.forEachChangedItem(r=>this._setStyle(r.key,r.currentValue))}}return n.\u0275fac=function(e){return new(e||n)(z(Er),z(fg),z(pa))},n.\u0275dir=Te({type:n,selectors:[["","ngStyle",""]],inputs:{ngStyle:"ngStyle"}}),n})(),eR=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=Xr({type:n}),n.\u0275inj=mr({}),n})(),wj=(()=>{class n{}return n.\u0275prov=Fe({token:n,providedIn:"root",factory:()=>new Ej(oe(ai),window)}),n})();class Ej{constructor(t,e){this.document=t,this.window=e,this.offset=()=>[0,0]}setOffset(t){this.offset=Array.isArray(t)?()=>t:t}getScrollPosition(){return this.supportsScrolling()?[this.window.pageXOffset,this.window.pageYOffset]:[0,0]}scrollToPosition(t){this.supportsScrolling()&&this.window.scrollTo(t[0],t[1])}scrollToAnchor(t){if(!this.supportsScrolling())return;const e=function Mj(n,t){const e=n.getElementById(t)||n.getElementsByName(t)[0];if(e)return e;if("function"==typeof n.createTreeWalker&&n.body&&(n.body.createShadowRoot||n.body.attachShadow)){const r=n.createTreeWalker(n.body,NodeFilter.SHOW_ELEMENT);let i=r.currentNode;for(;i;){const o=i.shadowRoot;if(o){const s=o.getElementById(t)||o.querySelector(`[name="${t}"]`);if(s)return s}i=r.nextNode()}}return null}(this.document,t);e&&(this.scrollToElement(e),e.focus())}setHistoryScrollRestoration(t){if(this.supportScrollRestoration()){const e=this.window.history;e&&e.scrollRestoration&&(e.scrollRestoration=t)}}scrollToElement(t){const e=t.getBoundingClientRect(),r=e.left+this.window.pageXOffset,i=e.top+this.window.pageYOffset,o=this.offset();this.window.scrollTo(r-o[0],i-o[1])}supportScrollRestoration(){try{if(!this.supportsScrolling())return!1;const t=tR(this.window.history)||tR(Object.getPrototypeOf(this.window.history));return!(!t||!t.writable&&!t.set)}catch(t){return!1}}supportsScrolling(){try{return!!this.window&&!!this.window.scrollTo&&"pageXOffset"in this.window}catch(t){return!1}}}function tR(n){return Object.getOwnPropertyDescriptor(n,"scrollRestoration")}class nR{}class xM extends class bj extends class AB{}{constructor(){super(...arguments),this.supportsDOMEvents=!0}}{static makeCurrent(){!function TB(n){py||(py=n)}(new xM)}onAndCancel(t,e,r){return t.addEventListener(e,r,!1),()=>{t.removeEventListener(e,r,!1)}}dispatchEvent(t,e){t.dispatchEvent(e)}remove(t){t.parentNode&&t.parentNode.removeChild(t)}createElement(t,e){return(e=e||this.getDefaultDocument()).createElement(t)}createHtmlDocument(){return document.implementation.createHTMLDocument("fakeTitle")}getDefaultDocument(){return document}isElementNode(t){return t.nodeType===Node.ELEMENT_NODE}isShadowRoot(t){return t instanceof DocumentFragment}getGlobalEventTarget(t,e){return"window"===e?window:"document"===e?t:"body"===e?t.body:null}getBaseHref(t){const e=function Dj(){return vg=vg||document.querySelector("base"),vg?vg.getAttribute("href"):null}();return null==e?null:function Sj(n){Iy=Iy||document.createElement("a"),Iy.setAttribute("href",n);const t=Iy.pathname;return"/"===t.charAt(0)?t:`/${t}`}(e)}resetBaseElement(){vg=null}getUserAgent(){return window.navigator.userAgent}getCookie(t){return HA(document.cookie,t)}}let Iy,vg=null;const rR=new Be("TRANSITION_ID"),Tj=[{provide:z1,useFactory:function Ij(n,t,e){return()=>{e.get($1).donePromise.then(()=>{const r=Ss(),i=t.querySelectorAll(`style[ng-transition="${n}"]`);for(let o=0;o<i.length;o++)r.remove(i[o])})}},deps:[rR,ai,ur],multi:!0}];class bM{static init(){!function nB(n){X1=n}(new bM)}addToWindow(t){Ot.getAngularTestability=(r,i=!0)=>{const o=t.findTestabilityInTree(r,i);if(null==o)throw new Error("Could not find testability for element.");return o},Ot.getAllAngularTestabilities=()=>t.getAllTestabilities(),Ot.getAllAngularRootElements=()=>t.getAllRootElements(),Ot.frameworkStabilizers||(Ot.frameworkStabilizers=[]),Ot.frameworkStabilizers.push(r=>{const i=Ot.getAllAngularTestabilities();let o=i.length,s=!1;const a=function(l){s=s||l,o--,0==o&&r(s)};i.forEach(function(l){l.whenStable(a)})})}findTestabilityInTree(t,e,r){if(null==e)return null;const i=t.getTestability(e);return null!=i?i:r?Ss().isShadowRoot(e)?this.findTestabilityInTree(t,e.host,!0):this.findTestabilityInTree(t,e.parentElement,!0):null}}let Aj=(()=>{class n{build(){return new XMLHttpRequest}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275prov=Fe({token:n,factory:n.\u0275fac}),n})();const Ty=new Be("EventManagerPlugins");let Ay=(()=>{class n{constructor(e,r){this._zone=r,this._eventNameToPlugin=new Map,e.forEach(i=>i.manager=this),this._plugins=e.slice().reverse()}addEventListener(e,r,i){return this._findPluginFor(r).addEventListener(e,r,i)}addGlobalEventListener(e,r,i){return this._findPluginFor(r).addGlobalEventListener(e,r,i)}getZone(){return this._zone}_findPluginFor(e){const r=this._eventNameToPlugin.get(e);if(r)return r;const i=this._plugins;for(let o=0;o<i.length;o++){const s=i[o];if(s.supports(e))return this._eventNameToPlugin.set(e,s),s}throw new Error(`No event manager plugin found for event ${e}`)}}return n.\u0275fac=function(e){return new(e||n)(oe(Ty),oe(hr))},n.\u0275prov=Fe({token:n,factory:n.\u0275fac}),n})();class iR{constructor(t){this._doc=t}addGlobalEventListener(t,e,r){const i=Ss().getGlobalEventTarget(this._doc,t);if(!i)throw new Error(`Unsupported event target ${i} for event ${e}`);return this.addEventListener(i,e,r)}}let oR=(()=>{class n{constructor(){this._stylesSet=new Set}addStyles(e){const r=new Set;e.forEach(i=>{this._stylesSet.has(i)||(this._stylesSet.add(i),r.add(i))}),this.onStylesAdded(r)}onStylesAdded(e){}getAllStyles(){return Array.from(this._stylesSet)}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275prov=Fe({token:n,factory:n.\u0275fac}),n})(),mg=(()=>{class n extends oR{constructor(e){super(),this._doc=e,this._hostNodes=new Map,this._hostNodes.set(e.head,[])}_addStylesToHost(e,r,i){e.forEach(o=>{const s=this._doc.createElement("style");s.textContent=o,i.push(r.appendChild(s))})}addHost(e){const r=[];this._addStylesToHost(this._stylesSet,e,r),this._hostNodes.set(e,r)}removeHost(e){const r=this._hostNodes.get(e);r&&r.forEach(sR),this._hostNodes.delete(e)}onStylesAdded(e){this._hostNodes.forEach((r,i)=>{this._addStylesToHost(e,i,r)})}ngOnDestroy(){this._hostNodes.forEach(e=>e.forEach(sR))}}return n.\u0275fac=function(e){return new(e||n)(oe(ai))},n.\u0275prov=Fe({token:n,factory:n.\u0275fac}),n})();function sR(n){Ss().remove(n)}const DM={svg:"http://www.w3.org/2000/svg",xhtml:"http://www.w3.org/1999/xhtml",xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/",math:"http://www.w3.org/1998/MathML/"},SM=/%COMP%/g;function Ry(n,t,e){for(let r=0;r<t.length;r++){let i=t[r];Array.isArray(i)?Ry(n,i,e):(i=i.replace(SM,n),e.push(i))}return e}function uR(n){return t=>{if("__ngUnwrap__"===t)return n;!1===n(t)&&(t.preventDefault(),t.returnValue=!1)}}let IM=(()=>{class n{constructor(e,r,i){this.eventManager=e,this.sharedStylesHost=r,this.appId=i,this.rendererByCompId=new Map,this.defaultRenderer=new TM(e)}createRenderer(e,r){if(!e||!r)return this.defaultRenderer;switch(r.encapsulation){case mi.Emulated:{let i=this.rendererByCompId.get(r.id);return i||(i=new Nj(this.eventManager,this.sharedStylesHost,r,this.appId),this.rendererByCompId.set(r.id,i)),i.applyToHost(e),i}case 1:case mi.ShadowDom:return new Fj(this.eventManager,this.sharedStylesHost,e,r);default:if(!this.rendererByCompId.has(r.id)){const i=Ry(r.id,r.styles,[]);this.sharedStylesHost.addStyles(i),this.rendererByCompId.set(r.id,this.defaultRenderer)}return this.defaultRenderer}}begin(){}end(){}}return n.\u0275fac=function(e){return new(e||n)(oe(Ay),oe(mg),oe(hg))},n.\u0275prov=Fe({token:n,factory:n.\u0275fac}),n})();class TM{constructor(t){this.eventManager=t,this.data=Object.create(null),this.destroyNode=null}destroy(){}createElement(t,e){return e?document.createElementNS(DM[e]||e,t):document.createElement(t)}createComment(t){return document.createComment(t)}createText(t){return document.createTextNode(t)}appendChild(t,e){t.appendChild(e)}insertBefore(t,e,r){t&&t.insertBefore(e,r)}removeChild(t,e){t&&t.removeChild(e)}selectRootElement(t,e){let r="string"==typeof t?document.querySelector(t):t;if(!r)throw new Error(`The selector "${t}" did not match any elements`);return e||(r.textContent=""),r}parentNode(t){return t.parentNode}nextSibling(t){return t.nextSibling}setAttribute(t,e,r,i){if(i){e=i+":"+e;const o=DM[i];o?t.setAttributeNS(o,e,r):t.setAttribute(e,r)}else t.setAttribute(e,r)}removeAttribute(t,e,r){if(r){const i=DM[r];i?t.removeAttributeNS(i,e):t.removeAttribute(`${r}:${e}`)}else t.removeAttribute(e)}addClass(t,e){t.classList.add(e)}removeClass(t,e){t.classList.remove(e)}setStyle(t,e,r,i){i&(Pr.DashCase|Pr.Important)?t.style.setProperty(e,r,i&Pr.Important?"important":""):t.style[e]=r}removeStyle(t,e,r){r&Pr.DashCase?t.style.removeProperty(e):t.style[e]=""}setProperty(t,e,r){t[e]=r}setValue(t,e){t.nodeValue=e}listen(t,e,r){return"string"==typeof t?this.eventManager.addGlobalEventListener(t,e,uR(r)):this.eventManager.addEventListener(t,e,uR(r))}}class Nj extends TM{constructor(t,e,r,i){super(t),this.component=r;const o=Ry(i+"-"+r.id,r.styles,[]);e.addStyles(o),this.contentAttr=function Pj(n){return"_ngcontent-%COMP%".replace(SM,n)}(i+"-"+r.id),this.hostAttr=function kj(n){return"_nghost-%COMP%".replace(SM,n)}(i+"-"+r.id)}applyToHost(t){super.setAttribute(t,this.hostAttr,"")}createElement(t,e){const r=super.createElement(t,e);return super.setAttribute(r,this.contentAttr,""),r}}class Fj extends TM{constructor(t,e,r,i){super(t),this.sharedStylesHost=e,this.hostEl=r,this.shadowRoot=r.attachShadow({mode:"open"}),this.sharedStylesHost.addHost(this.shadowRoot);const o=Ry(i.id,i.styles,[]);for(let s=0;s<o.length;s++){const a=document.createElement("style");a.textContent=o[s],this.shadowRoot.appendChild(a)}}nodeOrShadowRoot(t){return t===this.hostEl?this.shadowRoot:t}destroy(){this.sharedStylesHost.removeHost(this.shadowRoot)}appendChild(t,e){return super.appendChild(this.nodeOrShadowRoot(t),e)}insertBefore(t,e,r){return super.insertBefore(this.nodeOrShadowRoot(t),e,r)}removeChild(t,e){return super.removeChild(this.nodeOrShadowRoot(t),e)}parentNode(t){return this.nodeOrShadowRoot(super.parentNode(this.nodeOrShadowRoot(t)))}}let Vj=(()=>{class n extends iR{constructor(e){super(e)}supports(e){return!0}addEventListener(e,r,i){return e.addEventListener(r,i,!1),()=>this.removeEventListener(e,r,i)}removeEventListener(e,r,i){return e.removeEventListener(r,i)}}return n.\u0275fac=function(e){return new(e||n)(oe(ai))},n.\u0275prov=Fe({token:n,factory:n.\u0275fac}),n})();const hR=["alt","control","meta","shift"],Uj={"\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"},fR={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"},jj={alt:n=>n.altKey,control:n=>n.ctrlKey,meta:n=>n.metaKey,shift:n=>n.shiftKey};let Gj=(()=>{class n extends iR{constructor(e){super(e)}supports(e){return null!=n.parseEventName(e)}addEventListener(e,r,i){const o=n.parseEventName(r),s=n.eventCallback(o.fullKey,i,this.manager.getZone());return this.manager.getZone().runOutsideAngular(()=>Ss().onAndCancel(e,o.domEventName,s))}static parseEventName(e){const r=e.toLowerCase().split("."),i=r.shift();if(0===r.length||"keydown"!==i&&"keyup"!==i)return null;const o=n._normalizeKey(r.pop());let s="";if(hR.forEach(l=>{const c=r.indexOf(l);c>-1&&(r.splice(c,1),s+=l+".")}),s+=o,0!=r.length||0===o.length)return null;const a={};return a.domEventName=i,a.fullKey=s,a}static getEventFullKey(e){let r="",i=function Hj(n){let t=n.key;if(null==t){if(t=n.keyIdentifier,null==t)return"Unidentified";t.startsWith("U+")&&(t=String.fromCharCode(parseInt(t.substring(2),16)),3===n.location&&fR.hasOwnProperty(t)&&(t=fR[t]))}return Uj[t]||t}(e);return i=i.toLowerCase()," "===i?i="space":"."===i&&(i="dot"),hR.forEach(o=>{o!=i&&jj[o](e)&&(r+=o+".")}),r+=i,r}static eventCallback(e,r,i){return o=>{n.getEventFullKey(o)===e&&i.runGuarded(()=>r(o))}}static _normalizeKey(e){return"esc"===e?"escape":e}}return n.\u0275fac=function(e){return new(e||n)(oe(ai))},n.\u0275prov=Fe({token:n,factory:n.\u0275fac}),n})();const qj=gA(DB,"browser",[{provide:uy,useValue:WA},{provide:aA,useValue:function zj(){xM.makeCurrent(),bM.init()},multi:!0},{provide:ai,useFactory:function Wj(){return function He(n){ie=n}(document),document},deps:[]}]),Kj=[{provide:Up,useValue:"root"},{provide:ku,useFactory:function $j(){return new ku},deps:[]},{provide:Ty,useClass:Vj,multi:!0,deps:[ai,hr,uy]},{provide:Ty,useClass:Gj,multi:!0,deps:[ai]},{provide:IM,useClass:IM,deps:[Ay,mg,hg]},{provide:xT,useExisting:IM},{provide:oR,useExisting:mg},{provide:mg,useClass:mg,deps:[ai]},{provide:Y1,useClass:Y1,deps:[hr]},{provide:Ay,useClass:Ay,deps:[Ty,hr]},{provide:nR,useClass:Aj,deps:[]}];let Zj=(()=>{class n{constructor(e){if(e)throw new Error("BrowserModule has already been loaded. If you need access to common directives such as NgIf and NgFor from a lazy loaded module, import CommonModule instead.")}static withServerTransition(e){return{ngModule:n,providers:[{provide:hg,useValue:e.appId},{provide:rR,useExisting:hg},Tj]}}}return n.\u0275fac=function(e){return new(e||n)(oe(n,12))},n.\u0275mod=Xr({type:n}),n.\u0275inj=mr({providers:Kj,imports:[eR,SB]}),n})();"undefined"!=typeof window&&window;let RM=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275prov=Fe({token:n,factory:function(e){let r=null;return r=e?new(e||n):oe(gR),r},providedIn:"root"}),n})(),gR=(()=>{class n extends RM{constructor(e){super(),this._doc=e}sanitize(e,r){if(null==r)return null;switch(e){case Ht.NONE:return r;case Ht.HTML:return _o(r,"HTML")?ni(r):Km(this._doc,String(r)).toString();case Ht.STYLE:return _o(r,"Style")?ni(r):r;case Ht.SCRIPT:if(_o(r,"Script"))return ni(r);throw new Error("unsafe value used in a script context");case Ht.URL:return Vm(r),_o(r,"URL")?ni(r):Ru(String(r));case Ht.RESOURCE_URL:if(_o(r,"ResourceURL"))return ni(r);throw new Error("unsafe value used in a resource URL context (see https://g.co/ng/security#xss)");default:throw new Error(`Unexpected SecurityContext ${e} (see https://g.co/ng/security#xss)`)}}bypassSecurityTrustHtml(e){return function Ai(n){return new zw(n)}(e)}bypassSecurityTrustStyle(e){return function Kw(n){return new Fm(n)}(e)}bypassSecurityTrustScript(e){return function Zw(n){return new $w(n)}(e)}bypassSecurityTrustUrl(e){return function Yw(n){return new Ww(n)}(e)}bypassSecurityTrustResourceUrl(e){return function Bm(n){return new qw(n)}(e)}}return n.\u0275fac=function(e){return new(e||n)(oe(ai))},n.\u0275prov=Fe({token:n,factory:function(e){let r=null;return r=e?new e:function oG(n){return new gR(n.get(ai))}(oe(ur)),r},providedIn:"root"}),n})();function et(...n){let t=n[n.length-1];return gi(t)?(n.pop(),zf(n,t)):Wf(n)}function Zh(n,t){return Bt(n,t,1)}function Ku(n,t){return function(r){return r.lift(new sG(n,t))}}class sG{constructor(t,e){this.predicate=t,this.thisArg=e}call(t,e){return e.subscribe(new aG(t,this.predicate,this.thisArg))}}class aG extends wt{constructor(t,e,r){super(t),this.predicate=e,this.thisArg=r,this.count=0}_next(t){let e;try{e=this.predicate.call(this.thisArg,t,this.count++)}catch(r){return void this.destination.error(r)}e&&this.destination.next(t)}}class vR{}class mR{}class Ca{constructor(t){this.normalizedNames=new Map,this.lazyUpdate=null,t?this.lazyInit="string"==typeof t?()=>{this.headers=new Map,t.split("\n").forEach(e=>{const r=e.indexOf(":");if(r>0){const i=e.slice(0,r),o=i.toLowerCase(),s=e.slice(r+1).trim();this.maybeSetNormalizedName(i,o),this.headers.has(o)?this.headers.get(o).push(s):this.headers.set(o,[s])}})}:()=>{this.headers=new Map,Object.keys(t).forEach(e=>{let r=t[e];const i=e.toLowerCase();"string"==typeof r&&(r=[r]),r.length>0&&(this.headers.set(i,r),this.maybeSetNormalizedName(e,i))})}:this.headers=new Map}has(t){return this.init(),this.headers.has(t.toLowerCase())}get(t){this.init();const e=this.headers.get(t.toLowerCase());return e&&e.length>0?e[0]:null}keys(){return this.init(),Array.from(this.normalizedNames.values())}getAll(t){return this.init(),this.headers.get(t.toLowerCase())||null}append(t,e){return this.clone({name:t,value:e,op:"a"})}set(t,e){return this.clone({name:t,value:e,op:"s"})}delete(t,e){return this.clone({name:t,value:e,op:"d"})}maybeSetNormalizedName(t,e){this.normalizedNames.has(e)||this.normalizedNames.set(e,t)}init(){this.lazyInit&&(this.lazyInit instanceof Ca?this.copyFrom(this.lazyInit):this.lazyInit(),this.lazyInit=null,this.lazyUpdate&&(this.lazyUpdate.forEach(t=>this.applyUpdate(t)),this.lazyUpdate=null))}copyFrom(t){t.init(),Array.from(t.headers.keys()).forEach(e=>{this.headers.set(e,t.headers.get(e)),this.normalizedNames.set(e,t.normalizedNames.get(e))})}clone(t){const e=new Ca;return e.lazyInit=this.lazyInit&&this.lazyInit instanceof Ca?this.lazyInit:this,e.lazyUpdate=(this.lazyUpdate||[]).concat([t]),e}applyUpdate(t){const e=t.name.toLowerCase();switch(t.op){case"a":case"s":let r=t.value;if("string"==typeof r&&(r=[r]),0===r.length)return;this.maybeSetNormalizedName(t.name,e);const i=("a"===t.op?this.headers.get(e):void 0)||[];i.push(...r),this.headers.set(e,i);break;case"d":const o=t.value;if(o){let s=this.headers.get(e);if(!s)return;s=s.filter(a=>-1===o.indexOf(a)),0===s.length?(this.headers.delete(e),this.normalizedNames.delete(e)):this.headers.set(e,s)}else this.headers.delete(e),this.normalizedNames.delete(e)}}forEach(t){this.init(),Array.from(this.normalizedNames.keys()).forEach(e=>t(this.normalizedNames.get(e),this.headers.get(e)))}}class lG{encodeKey(t){return _R(t)}encodeValue(t){return _R(t)}decodeKey(t){return decodeURIComponent(t)}decodeValue(t){return decodeURIComponent(t)}}const cG=/%(\d[a-f0-9])/gi,hG={40:"@","3A":":",24:"$","2C":",","3B":";","2B":"+","3D":"=","3F":"?","2F":"/"};function _R(n){return encodeURIComponent(n).replace(cG,(t,e)=>{var r;return null!==(r=hG[e])&&void 0!==r?r:t})}function yR(n){return`${n}`}class fl{constructor(t={}){if(this.updates=null,this.cloneFrom=null,this.encoder=t.encoder||new lG,t.fromString){if(t.fromObject)throw new Error("Cannot specify both fromString and fromObject.");this.map=function uG(n,t){const e=new Map;return n.length>0&&n.replace(/^\?/,"").split("&").forEach(i=>{const o=i.indexOf("="),[s,a]=-1==o?[t.decodeKey(i),""]:[t.decodeKey(i.slice(0,o)),t.decodeValue(i.slice(o+1))],l=e.get(s)||[];l.push(a),e.set(s,l)}),e}(t.fromString,this.encoder)}else t.fromObject?(this.map=new Map,Object.keys(t.fromObject).forEach(e=>{const r=t.fromObject[e];this.map.set(e,Array.isArray(r)?r:[r])})):this.map=null}has(t){return this.init(),this.map.has(t)}get(t){this.init();const e=this.map.get(t);return e?e[0]:null}getAll(t){return this.init(),this.map.get(t)||null}keys(){return this.init(),Array.from(this.map.keys())}append(t,e){return this.clone({param:t,value:e,op:"a"})}appendAll(t){const e=[];return Object.keys(t).forEach(r=>{const i=t[r];Array.isArray(i)?i.forEach(o=>{e.push({param:r,value:o,op:"a"})}):e.push({param:r,value:i,op:"a"})}),this.clone(e)}set(t,e){return this.clone({param:t,value:e,op:"s"})}delete(t,e){return this.clone({param:t,value:e,op:"d"})}toString(){return this.init(),this.keys().map(t=>{const e=this.encoder.encodeKey(t);return this.map.get(t).map(r=>e+"="+this.encoder.encodeValue(r)).join("&")}).filter(t=>""!==t).join("&")}clone(t){const e=new fl({encoder:this.encoder});return e.cloneFrom=this.cloneFrom||this,e.updates=(this.updates||[]).concat(t),e}init(){null===this.map&&(this.map=new Map),null!==this.cloneFrom&&(this.cloneFrom.init(),this.cloneFrom.keys().forEach(t=>this.map.set(t,this.cloneFrom.map.get(t))),this.updates.forEach(t=>{switch(t.op){case"a":case"s":const e=("a"===t.op?this.map.get(t.param):void 0)||[];e.push(yR(t.value)),this.map.set(t.param,e);break;case"d":if(void 0===t.value){this.map.delete(t.param);break}{let r=this.map.get(t.param)||[];const i=r.indexOf(yR(t.value));-1!==i&&r.splice(i,1),r.length>0?this.map.set(t.param,r):this.map.delete(t.param)}}}),this.cloneFrom=this.updates=null)}}class fG{constructor(){this.map=new Map}set(t,e){return this.map.set(t,e),this}get(t){return this.map.has(t)||this.map.set(t,t.defaultValue()),this.map.get(t)}delete(t){return this.map.delete(t),this}has(t){return this.map.has(t)}keys(){return this.map.keys()}}function CR(n){return"undefined"!=typeof ArrayBuffer&&n instanceof ArrayBuffer}function wR(n){return"undefined"!=typeof Blob&&n instanceof Blob}function ER(n){return"undefined"!=typeof FormData&&n instanceof FormData}class _g{constructor(t,e,r,i){let o;if(this.url=e,this.body=null,this.reportProgress=!1,this.withCredentials=!1,this.responseType="json",this.method=t.toUpperCase(),function dG(n){switch(n){case"DELETE":case"GET":case"HEAD":case"OPTIONS":case"JSONP":return!1;default:return!0}}(this.method)||i?(this.body=void 0!==r?r:null,o=i):o=r,o&&(this.reportProgress=!!o.reportProgress,this.withCredentials=!!o.withCredentials,o.responseType&&(this.responseType=o.responseType),o.headers&&(this.headers=o.headers),o.context&&(this.context=o.context),o.params&&(this.params=o.params)),this.headers||(this.headers=new Ca),this.context||(this.context=new fG),this.params){const s=this.params.toString();if(0===s.length)this.urlWithParams=e;else{const a=e.indexOf("?");this.urlWithParams=e+(-1===a?"?":a<e.length-1?"&":"")+s}}else this.params=new fl,this.urlWithParams=e}serializeBody(){return null===this.body?null:CR(this.body)||wR(this.body)||ER(this.body)||function pG(n){return"undefined"!=typeof URLSearchParams&&n instanceof URLSearchParams}(this.body)||"string"==typeof this.body?this.body:this.body instanceof fl?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||ER(this.body)?null:wR(this.body)?this.body.type||null:CR(this.body)?null:"string"==typeof this.body?"text/plain":this.body instanceof fl?"application/x-www-form-urlencoded;charset=UTF-8":"object"==typeof this.body||"number"==typeof this.body||"boolean"==typeof this.body?"application/json":null}clone(t={}){var e;const r=t.method||this.method,i=t.url||this.url,o=t.responseType||this.responseType,s=void 0!==t.body?t.body:this.body,a=void 0!==t.withCredentials?t.withCredentials:this.withCredentials,l=void 0!==t.reportProgress?t.reportProgress:this.reportProgress;let c=t.headers||this.headers,f=t.params||this.params;const d=null!==(e=t.context)&&void 0!==e?e:this.context;return void 0!==t.setHeaders&&(c=Object.keys(t.setHeaders).reduce((g,v)=>g.set(v,t.setHeaders[v]),c)),t.setParams&&(f=Object.keys(t.setParams).reduce((g,v)=>g.set(v,t.setParams[v]),f)),new _g(r,i,s,{params:f,headers:c,context:d,reportProgress:l,responseType:o,withCredentials:a})}}var En=(()=>((En=En||{})[En.Sent=0]="Sent",En[En.UploadProgress=1]="UploadProgress",En[En.ResponseHeader=2]="ResponseHeader",En[En.DownloadProgress=3]="DownloadProgress",En[En.Response=4]="Response",En[En.User=5]="User",En))();class OM{constructor(t,e=200,r="OK"){this.headers=t.headers||new Ca,this.status=void 0!==t.status?t.status:e,this.statusText=t.statusText||r,this.url=t.url||null,this.ok=this.status>=200&&this.status<300}}class PM extends OM{constructor(t={}){super(t),this.type=En.ResponseHeader}clone(t={}){return new PM({headers:t.headers||this.headers,status:void 0!==t.status?t.status:this.status,statusText:t.statusText||this.statusText,url:t.url||this.url||void 0})}}class Oy extends OM{constructor(t={}){super(t),this.type=En.Response,this.body=void 0!==t.body?t.body:null}clone(t={}){return new Oy({body:void 0!==t.body?t.body:this.body,headers:t.headers||this.headers,status:void 0!==t.status?t.status:this.status,statusText:t.statusText||this.statusText,url:t.url||this.url||void 0})}}class MR extends OM{constructor(t){super(t,0,"Unknown Error"),this.name="HttpErrorResponse",this.ok=!1,this.message=this.status>=200&&this.status<300?`Http failure during parsing for ${t.url||"(unknown url)"}`:`Http failure response for ${t.url||"(unknown url)"}: ${t.status} ${t.statusText}`,this.error=t.error||null}}function kM(n,t){return{body:t,headers:n.headers,context:n.context,observe:n.observe,params:n.params,reportProgress:n.reportProgress,responseType:n.responseType,withCredentials:n.withCredentials}}let Py=(()=>{class n{constructor(e){this.handler=e}request(e,r,i={}){let o;if(e instanceof _g)o=e;else{let l,c;l=i.headers instanceof Ca?i.headers:new Ca(i.headers),i.params&&(c=i.params instanceof fl?i.params:new fl({fromObject:i.params})),o=new _g(e,r,void 0!==i.body?i.body:null,{headers:l,context:i.context,params:c,reportProgress:i.reportProgress,responseType:i.responseType||"json",withCredentials:i.withCredentials})}const s=et(o).pipe(Zh(l=>this.handler.handle(l)));if(e instanceof _g||"events"===i.observe)return s;const a=s.pipe(Ku(l=>l instanceof Oy));switch(i.observe||"body"){case"body":switch(o.responseType){case"arraybuffer":return a.pipe(nt(l=>{if(null!==l.body&&!(l.body instanceof ArrayBuffer))throw new Error("Response is not an ArrayBuffer.");return l.body}));case"blob":return a.pipe(nt(l=>{if(null!==l.body&&!(l.body instanceof Blob))throw new Error("Response is not a Blob.");return l.body}));case"text":return a.pipe(nt(l=>{if(null!==l.body&&"string"!=typeof l.body)throw new Error("Response is not a string.");return l.body}));default:return a.pipe(nt(l=>l.body))}case"response":return a;default:throw new Error(`Unreachable: unhandled observe type ${i.observe}}`)}}delete(e,r={}){return this.request("DELETE",e,r)}get(e,r={}){return this.request("GET",e,r)}head(e,r={}){return this.request("HEAD",e,r)}jsonp(e,r){return this.request("JSONP",e,{params:(new fl).append(r,"JSONP_CALLBACK"),observe:"body",responseType:"json"})}options(e,r={}){return this.request("OPTIONS",e,r)}patch(e,r,i={}){return this.request("PATCH",e,kM(i,r))}post(e,r,i={}){return this.request("POST",e,kM(i,r))}put(e,r,i={}){return this.request("PUT",e,kM(i,r))}}return n.\u0275fac=function(e){return new(e||n)(oe(vR))},n.\u0275prov=Fe({token:n,factory:n.\u0275fac}),n})();class xR{constructor(t,e){this.next=t,this.interceptor=e}handle(t){return this.interceptor.intercept(t,this.next)}}const bR=new Be("HTTP_INTERCEPTORS");let gG=(()=>{class n{intercept(e,r){return r.handle(e)}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275prov=Fe({token:n,factory:n.\u0275fac}),n})();const vG=/^\)\]\}',?\n/;let DR=(()=>{class n{constructor(e){this.xhrFactory=e}handle(e){if("JSONP"===e.method)throw new Error("Attempted to construct Jsonp request without HttpClientJsonpModule installed.");return new ae(r=>{const i=this.xhrFactory.build();if(i.open(e.method,e.urlWithParams),e.withCredentials&&(i.withCredentials=!0),e.headers.forEach((v,m)=>i.setRequestHeader(v,m.join(","))),e.headers.has("Accept")||i.setRequestHeader("Accept","application/json, text/plain, */*"),!e.headers.has("Content-Type")){const v=e.detectContentTypeHeader();null!==v&&i.setRequestHeader("Content-Type",v)}if(e.responseType){const v=e.responseType.toLowerCase();i.responseType="json"!==v?v:"text"}const o=e.serializeBody();let s=null;const a=()=>{if(null!==s)return s;const v=i.statusText||"OK",m=new Ca(i.getAllResponseHeaders()),y=function mG(n){return"responseURL"in n&&n.responseURL?n.responseURL:/^X-Request-URL:/m.test(n.getAllResponseHeaders())?n.getResponseHeader("X-Request-URL"):null}(i)||e.url;return s=new PM({headers:m,status:i.status,statusText:v,url:y}),s},l=()=>{let{headers:v,status:m,statusText:y,url:w}=a(),x=null;204!==m&&(x=void 0===i.response?i.responseText:i.response),0===m&&(m=x?200:0);let E=m>=200&&m<300;if("json"===e.responseType&&"string"==typeof x){const S=x;x=x.replace(vG,"");try{x=""!==x?JSON.parse(x):null}catch(T){x=S,E&&(E=!1,x={error:T,text:x})}}E?(r.next(new Oy({body:x,headers:v,status:m,statusText:y,url:w||void 0})),r.complete()):r.error(new MR({error:x,headers:v,status:m,statusText:y,url:w||void 0}))},c=v=>{const{url:m}=a(),y=new MR({error:v,status:i.status||0,statusText:i.statusText||"Unknown Error",url:m||void 0});r.error(y)};let f=!1;const d=v=>{f||(r.next(a()),f=!0);let m={type:En.DownloadProgress,loaded:v.loaded};v.lengthComputable&&(m.total=v.total),"text"===e.responseType&&!!i.responseText&&(m.partialText=i.responseText),r.next(m)},g=v=>{let m={type:En.UploadProgress,loaded:v.loaded};v.lengthComputable&&(m.total=v.total),r.next(m)};return i.addEventListener("load",l),i.addEventListener("error",c),i.addEventListener("timeout",c),i.addEventListener("abort",c),e.reportProgress&&(i.addEventListener("progress",d),null!==o&&i.upload&&i.upload.addEventListener("progress",g)),i.send(o),r.next({type:En.Sent}),()=>{i.removeEventListener("error",c),i.removeEventListener("abort",c),i.removeEventListener("load",l),i.removeEventListener("timeout",c),e.reportProgress&&(i.removeEventListener("progress",d),null!==o&&i.upload&&i.upload.removeEventListener("progress",g)),i.readyState!==i.DONE&&i.abort()}})}}return n.\u0275fac=function(e){return new(e||n)(oe(nR))},n.\u0275prov=Fe({token:n,factory:n.\u0275fac}),n})();const LM=new Be("XSRF_COOKIE_NAME"),NM=new Be("XSRF_HEADER_NAME");class SR{}let _G=(()=>{class n{constructor(e,r,i){this.doc=e,this.platform=r,this.cookieName=i,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=HA(e,this.cookieName),this.lastCookieString=e),this.lastToken}}return n.\u0275fac=function(e){return new(e||n)(oe(ai),oe(uy),oe(LM))},n.\u0275prov=Fe({token:n,factory:n.\u0275fac}),n})(),FM=(()=>{class n{constructor(e,r){this.tokenService=e,this.headerName=r}intercept(e,r){const i=e.url.toLowerCase();if("GET"===e.method||"HEAD"===e.method||i.startsWith("http://")||i.startsWith("https://"))return r.handle(e);const o=this.tokenService.getToken();return null!==o&&!e.headers.has(this.headerName)&&(e=e.clone({headers:e.headers.set(this.headerName,o)})),r.handle(e)}}return n.\u0275fac=function(e){return new(e||n)(oe(SR),oe(NM))},n.\u0275prov=Fe({token:n,factory:n.\u0275fac}),n})(),yG=(()=>{class n{constructor(e,r){this.backend=e,this.injector=r,this.chain=null}handle(e){if(null===this.chain){const r=this.injector.get(bR,[]);this.chain=r.reduceRight((i,o)=>new xR(i,o),this.backend)}return this.chain.handle(e)}}return n.\u0275fac=function(e){return new(e||n)(oe(mR),oe(ur))},n.\u0275prov=Fe({token:n,factory:n.\u0275fac}),n})(),CG=(()=>{class n{static disable(){return{ngModule:n,providers:[{provide:FM,useClass:gG}]}}static withOptions(e={}){return{ngModule:n,providers:[e.cookieName?{provide:LM,useValue:e.cookieName}:[],e.headerName?{provide:NM,useValue:e.headerName}:[]]}}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=Xr({type:n}),n.\u0275inj=mr({providers:[FM,{provide:bR,useExisting:FM,multi:!0},{provide:SR,useClass:_G},{provide:LM,useValue:"XSRF-TOKEN"},{provide:NM,useValue:"X-XSRF-TOKEN"}]}),n})(),wG=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=Xr({type:n}),n.\u0275inj=mr({providers:[Py,{provide:vR,useClass:yG},DR,{provide:mR,useExisting:DR}],imports:[[CG.withOptions({cookieName:"XSRF-TOKEN",headerName:"X-XSRF-TOKEN"})]]}),n})();class Zo extends gr{constructor(t){super(),this._value=t}get value(){return this.getValue()}_subscribe(t){const e=super._subscribe(t);return e&&!e.closed&&t.next(this._value),e}getValue(){if(this.hasError)throw this.thrownError;if(this.closed)throw new It;return this._value}next(t){super.next(this._value=t)}}class EG extends wt{notifyNext(t,e,r,i,o){this.destination.next(e)}notifyError(t,e){this.destination.error(t)}notifyComplete(t){this.destination.complete()}}class MG extends wt{constructor(t,e,r){super(),this.parent=t,this.outerValue=e,this.outerIndex=r,this.index=0}_next(t){this.parent.notifyNext(this.outerValue,t,this.outerIndex,this.index++,this)}_error(t){this.parent.notifyError(t,this),this.unsubscribe()}_complete(){this.parent.notifyComplete(this),this.unsubscribe()}}function xG(n,t,e,r,i=new MG(n,e,r)){if(!i.closed)return t instanceof ae?t.subscribe(i):Hf(t)(i)}const IR={};class DG{constructor(t){this.resultSelector=t}call(t,e){return e.subscribe(new SG(t,this.resultSelector))}}class SG extends EG{constructor(t,e){super(t),this.resultSelector=e,this.active=0,this.values=[],this.observables=[]}_next(t){this.values.push(IR),this.observables.push(t)}_complete(){const t=this.observables,e=t.length;if(0===e)this.destination.complete();else{this.active=e,this.toRespond=e;for(let r=0;r<e;r++)this.add(xG(this,t[r],void 0,r))}}notifyComplete(t){0==(this.active-=1)&&this.destination.complete()}notifyNext(t,e,r){const i=this.values,s=this.toRespond?i[r]===IR?--this.toRespond:this.toRespond:0;i[r]=e,0===s&&(this.resultSelector?this._tryResultSelector(i):this.destination.next(i.slice()))}_tryResultSelector(t){let e;try{e=this.resultSelector.apply(this,t)}catch(r){return void this.destination.error(r)}this.destination.next(e)}}function ky(n,t){return new ae(t?e=>t.schedule(IG,0,{error:n,subscriber:e}):e=>e.error(n))}function IG({error:n,subscriber:t}){t.error(n)}const Ly=(()=>{function n(){return Error.call(this),this.message="no elements in sequence",this.name="EmptyError",this}return n.prototype=Object.create(Error.prototype),n})();function VM(...n){return function TG(){return Ao(1)}()(et(...n))}const Yh=new ae(n=>n.complete());function BM(n){return n?function AG(n){return new ae(t=>n.schedule(()=>t.complete()))}(n):Yh}function TR(n){return new ae(t=>{let e;try{e=n()}catch(i){return void t.error(i)}return(e?xn(e):BM()).subscribe(t)})}function dl(n,t){return"function"==typeof t?e=>e.pipe(dl((r,i)=>xn(n(r,i)).pipe(nt((o,s)=>t(r,o,i,s))))):e=>e.lift(new RG(n))}class RG{constructor(t){this.project=t}call(t,e){return e.subscribe(new OG(t,this.project))}}class OG extends Rc{constructor(t,e){super(t),this.project=e,this.index=0}_next(t){let e;const r=this.index++;try{e=this.project(t,r)}catch(i){return void this.destination.error(i)}this._innerSub(e)}_innerSub(t){const e=this.innerSubscription;e&&e.unsubscribe();const r=new $f(this),i=this.destination;i.add(r),this.innerSubscription=Gs(t,r),this.innerSubscription!==r&&i.add(this.innerSubscription)}_complete(){const{innerSubscription:t}=this;(!t||t.closed)&&super._complete(),this.unsubscribe()}_unsubscribe(){this.innerSubscription=void 0}notifyComplete(){this.innerSubscription=void 0,this.isStopped&&super._complete()}notifyNext(t){this.destination.next(t)}}const AR=(()=>{function n(){return Error.call(this),this.message="argument out of range",this.name="ArgumentOutOfRangeError",this}return n.prototype=Object.create(Error.prototype),n})();function UM(n){return t=>0===n?BM():t.lift(new PG(n))}class PG{constructor(t){if(this.total=t,this.total<0)throw new AR}call(t,e){return e.subscribe(new kG(t,this.total))}}class kG extends wt{constructor(t,e){super(t),this.total=e,this.count=0}_next(t){const e=this.total,r=++this.count;r<=e&&(this.destination.next(t),r===e&&(this.destination.complete(),this.unsubscribe()))}}function jM(n,t){let e=!1;return arguments.length>=2&&(e=!0),function(i){return i.lift(new NG(n,t,e))}}class NG{constructor(t,e,r=!1){this.accumulator=t,this.seed=e,this.hasSeed=r}call(t,e){return e.subscribe(new FG(t,this.accumulator,this.seed,this.hasSeed))}}class FG extends wt{constructor(t,e,r,i){super(t),this.accumulator=e,this._seed=r,this.hasSeed=i,this.index=0}get seed(){return this._seed}set seed(t){this.hasSeed=!0,this._seed=t}_next(t){if(this.hasSeed)return this._tryNext(t);this.seed=t,this.destination.next(t)}_tryNext(t){const e=this.index++;let r;try{r=this.accumulator(this.seed,t,e)}catch(i){this.destination.error(i)}this.seed=r,this.destination.next(r)}}function Zu(n){return function(e){const r=new VG(n),i=e.lift(r);return r.caught=i}}class VG{constructor(t){this.selector=t}call(t,e){return e.subscribe(new BG(t,this.selector,this.caught))}}class BG extends Rc{constructor(t,e,r){super(t),this.selector=e,this.caught=r}error(t){if(!this.isStopped){let e;try{e=this.selector(t,this.caught)}catch(o){return void super.error(o)}this._unsubscribeAndRecycle();const r=new $f(this);this.add(r);const i=Gs(e,r);i!==r&&this.add(i)}}}function GM(n){return function(e){return 0===n?BM():e.lift(new UG(n))}}class UG{constructor(t){if(this.total=t,this.total<0)throw new AR}call(t,e){return e.subscribe(new jG(t,this.total))}}class jG extends wt{constructor(t,e){super(t),this.total=e,this.ring=new Array,this.count=0}_next(t){const e=this.ring,r=this.total,i=this.count++;e.length<r?e.push(t):e[i%r]=t}_complete(){const t=this.destination;let e=this.count;if(e>0){const r=this.count>=this.total?this.total:this.count,i=this.ring;for(let o=0;o<r;o++){const s=e++%r;t.next(i[s])}}t.complete()}}function RR(n=zG){return t=>t.lift(new GG(n))}class GG{constructor(t){this.errorFactory=t}call(t,e){return e.subscribe(new HG(t,this.errorFactory))}}class HG extends wt{constructor(t,e){super(t),this.errorFactory=e,this.hasValue=!1}_next(t){this.hasValue=!0,this.destination.next(t)}_complete(){if(this.hasValue)return this.destination.complete();{let t;try{t=this.errorFactory()}catch(e){t=e}this.destination.error(t)}}}function zG(){return new Ly}function OR(n=null){return t=>t.lift(new $G(n))}class $G{constructor(t){this.defaultValue=t}call(t,e){return e.subscribe(new WG(t,this.defaultValue))}}class WG extends wt{constructor(t,e){super(t),this.defaultValue=e,this.isEmpty=!0}_next(t){this.isEmpty=!1,this.destination.next(t)}_complete(){this.isEmpty&&this.destination.next(this.defaultValue),this.destination.complete()}}function Yu(n,t){const e=arguments.length>=2;return r=>r.pipe(n?Ku((i,o)=>n(i,o,r)):ee,UM(1),e?OR(t):RR(()=>new Ly))}function pl(){}function Xi(n,t,e){return function(i){return i.lift(new KG(n,t,e))}}class KG{constructor(t,e,r){this.nextOrObserver=t,this.error=e,this.complete=r}call(t,e){return e.subscribe(new ZG(t,this.nextOrObserver,this.error,this.complete))}}class ZG extends wt{constructor(t,e,r,i){super(t),this._tapNext=pl,this._tapError=pl,this._tapComplete=pl,this._tapError=r||pl,this._tapComplete=i||pl,ao(e)?(this._context=this,this._tapNext=e):e&&(this._context=e,this._tapNext=e.next||pl,this._tapError=e.error||pl,this._tapComplete=e.complete||pl)}_next(t){try{this._tapNext.call(this._context,t)}catch(e){return void this.destination.error(e)}this.destination.next(t)}_error(t){try{this._tapError.call(this._context,t)}catch(e){return void this.destination.error(e)}this.destination.error(t)}_complete(){try{this._tapComplete.call(this._context)}catch(t){return void this.destination.error(t)}return this.destination.complete()}}class XG{constructor(t){this.callback=t}call(t,e){return e.subscribe(new QG(t,this.callback))}}class QG extends wt{constructor(t,e){super(t),this.add(new St(e))}}class wa{constructor(t,e){this.id=t,this.url=e}}class HM extends wa{constructor(t,e,r="imperative",i=null){super(t,e),this.navigationTrigger=r,this.restoredState=i}toString(){return`NavigationStart(id: ${this.id}, url: '${this.url}')`}}class yg extends wa{constructor(t,e,r){super(t,e),this.urlAfterRedirects=r}toString(){return`NavigationEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}')`}}class PR extends wa{constructor(t,e,r){super(t,e),this.reason=r}toString(){return`NavigationCancel(id: ${this.id}, url: '${this.url}')`}}class JG extends wa{constructor(t,e,r){super(t,e),this.error=r}toString(){return`NavigationError(id: ${this.id}, url: '${this.url}', error: ${this.error})`}}class eH extends wa{constructor(t,e,r,i){super(t,e),this.urlAfterRedirects=r,this.state=i}toString(){return`RoutesRecognized(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class tH extends wa{constructor(t,e,r,i){super(t,e),this.urlAfterRedirects=r,this.state=i}toString(){return`GuardsCheckStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class nH extends wa{constructor(t,e,r,i,o){super(t,e),this.urlAfterRedirects=r,this.state=i,this.shouldActivate=o}toString(){return`GuardsCheckEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state}, shouldActivate: ${this.shouldActivate})`}}class rH extends wa{constructor(t,e,r,i){super(t,e),this.urlAfterRedirects=r,this.state=i}toString(){return`ResolveStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class iH extends wa{constructor(t,e,r,i){super(t,e),this.urlAfterRedirects=r,this.state=i}toString(){return`ResolveEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class kR{constructor(t){this.route=t}toString(){return`RouteConfigLoadStart(path: ${this.route.path})`}}class LR{constructor(t){this.route=t}toString(){return`RouteConfigLoadEnd(path: ${this.route.path})`}}class oH{constructor(t){this.snapshot=t}toString(){return`ChildActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class sH{constructor(t){this.snapshot=t}toString(){return`ChildActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class aH{constructor(t){this.snapshot=t}toString(){return`ActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class lH{constructor(t){this.snapshot=t}toString(){return`ActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class NR{constructor(t,e,r){this.routerEvent=t,this.position=e,this.anchor=r}toString(){return`Scroll(anchor: '${this.anchor}', position: '${this.position?`${this.position[0]}, ${this.position[1]}`:null}')`}}const ut="primary";class uH{constructor(t){this.params=t||{}}has(t){return Object.prototype.hasOwnProperty.call(this.params,t)}get(t){if(this.has(t)){const e=this.params[t];return Array.isArray(e)?e[0]:e}return null}getAll(t){if(this.has(t)){const e=this.params[t];return Array.isArray(e)?e:[e]}return[]}get keys(){return Object.keys(this.params)}}function Xh(n){return new uH(n)}const FR="ngNavigationCancelingError";function zM(n){const t=Error("NavigationCancelingError: "+n);return t[FR]=!0,t}function hH(n,t,e){const r=e.path.split("/");if(r.length>n.length||"full"===e.pathMatch&&(t.hasChildren()||r.length<n.length))return null;const i={};for(let o=0;o<r.length;o++){const s=r[o],a=n[o];if(s.startsWith(":"))i[s.substring(1)]=a;else if(s!==a.path)return null}return{consumed:n.slice(0,r.length),posParams:i}}function Ts(n,t){const e=n?Object.keys(n):void 0,r=t?Object.keys(t):void 0;if(!e||!r||e.length!=r.length)return!1;let i;for(let o=0;o<e.length;o++)if(i=e[o],!VR(n[i],t[i]))return!1;return!0}function VR(n,t){if(Array.isArray(n)&&Array.isArray(t)){if(n.length!==t.length)return!1;const e=[...n].sort(),r=[...t].sort();return e.every((i,o)=>r[o]===i)}return n===t}function BR(n){return Array.prototype.concat.apply([],n)}function UR(n){return n.length>0?n[n.length-1]:null}function Mr(n,t){for(const e in n)n.hasOwnProperty(e)&&t(n[e],e)}function As(n){return m1(n)?n:Yp(n)?xn(Promise.resolve(n)):et(n)}const pH={exact:function HR(n,t,e){if(!Qu(n.segments,t.segments)||!Ny(n.segments,t.segments,e)||n.numberOfChildren!==t.numberOfChildren)return!1;for(const r in t.children)if(!n.children[r]||!HR(n.children[r],t.children[r],e))return!1;return!0},subset:zR},jR={exact:function gH(n,t){return Ts(n,t)},subset:function vH(n,t){return Object.keys(t).length<=Object.keys(n).length&&Object.keys(t).every(e=>VR(n[e],t[e]))},ignored:()=>!0};function GR(n,t,e){return pH[e.paths](n.root,t.root,e.matrixParams)&&jR[e.queryParams](n.queryParams,t.queryParams)&&!("exact"===e.fragment&&n.fragment!==t.fragment)}function zR(n,t,e){return $R(n,t,t.segments,e)}function $R(n,t,e,r){if(n.segments.length>e.length){const i=n.segments.slice(0,e.length);return!(!Qu(i,e)||t.hasChildren()||!Ny(i,e,r))}if(n.segments.length===e.length){if(!Qu(n.segments,e)||!Ny(n.segments,e,r))return!1;for(const i in t.children)if(!n.children[i]||!zR(n.children[i],t.children[i],r))return!1;return!0}{const i=e.slice(0,n.segments.length),o=e.slice(n.segments.length);return!!(Qu(n.segments,i)&&Ny(n.segments,i,r)&&n.children[ut])&&$R(n.children[ut],t,o,r)}}function Ny(n,t,e){return t.every((r,i)=>jR[e](n[i].parameters,r.parameters))}class Xu{constructor(t,e,r){this.root=t,this.queryParams=e,this.fragment=r}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=Xh(this.queryParams)),this._queryParamMap}toString(){return yH.serialize(this)}}class gt{constructor(t,e){this.segments=t,this.children=e,this.parent=null,Mr(e,(r,i)=>r.parent=this)}hasChildren(){return this.numberOfChildren>0}get numberOfChildren(){return Object.keys(this.children).length}toString(){return Fy(this)}}class Cg{constructor(t,e){this.path=t,this.parameters=e}get parameterMap(){return this._parameterMap||(this._parameterMap=Xh(this.parameters)),this._parameterMap}toString(){return YR(this)}}function Qu(n,t){return n.length===t.length&&n.every((e,r)=>e.path===t[r].path)}class WR{}class qR{parse(t){const e=new IH(t);return new Xu(e.parseRootSegment(),e.parseQueryParams(),e.parseFragment())}serialize(t){const e=`/${wg(t.root,!0)}`,r=function EH(n){const t=Object.keys(n).map(e=>{const r=n[e];return Array.isArray(r)?r.map(i=>`${Vy(e)}=${Vy(i)}`).join("&"):`${Vy(e)}=${Vy(r)}`}).filter(e=>!!e);return t.length?`?${t.join("&")}`:""}(t.queryParams),i="string"==typeof t.fragment?`#${function CH(n){return encodeURI(n)}(t.fragment)}`:"";return`${e}${r}${i}`}}const yH=new qR;function Fy(n){return n.segments.map(t=>YR(t)).join("/")}function wg(n,t){if(!n.hasChildren())return Fy(n);if(t){const e=n.children[ut]?wg(n.children[ut],!1):"",r=[];return Mr(n.children,(i,o)=>{o!==ut&&r.push(`${o}:${wg(i,!1)}`)}),r.length>0?`${e}(${r.join("//")})`:e}{const e=function _H(n,t){let e=[];return Mr(n.children,(r,i)=>{i===ut&&(e=e.concat(t(r,i)))}),Mr(n.children,(r,i)=>{i!==ut&&(e=e.concat(t(r,i)))}),e}(n,(r,i)=>i===ut?[wg(n.children[ut],!1)]:[`${i}:${wg(r,!1)}`]);return 1===Object.keys(n.children).length&&null!=n.children[ut]?`${Fy(n)}/${e[0]}`:`${Fy(n)}/(${e.join("//")})`}}function KR(n){return encodeURIComponent(n).replace(/%40/g,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",")}function Vy(n){return KR(n).replace(/%3B/gi,";")}function $M(n){return KR(n).replace(/\(/g,"%28").replace(/\)/g,"%29").replace(/%26/gi,"&")}function By(n){return decodeURIComponent(n)}function ZR(n){return By(n.replace(/\+/g,"%20"))}function YR(n){return`${$M(n.path)}${function wH(n){return Object.keys(n).map(t=>`;${$M(t)}=${$M(n[t])}`).join("")}(n.parameters)}`}const MH=/^[^\/()?;=#]+/;function Uy(n){const t=n.match(MH);return t?t[0]:""}const xH=/^[^=?&#]+/,DH=/^[^&#]+/;class IH{constructor(t){this.url=t,this.remaining=t}parseRootSegment(){return this.consumeOptional("/"),""===this.remaining||this.peekStartsWith("?")||this.peekStartsWith("#")?new gt([],{}):new gt([],this.parseChildren())}parseQueryParams(){const t={};if(this.consumeOptional("?"))do{this.parseQueryParam(t)}while(this.consumeOptional("&"));return t}parseFragment(){return this.consumeOptional("#")?decodeURIComponent(this.remaining):null}parseChildren(){if(""===this.remaining)return{};this.consumeOptional("/");const t=[];for(this.peekStartsWith("(")||t.push(this.parseSegment());this.peekStartsWith("/")&&!this.peekStartsWith("//")&&!this.peekStartsWith("/(");)this.capture("/"),t.push(this.parseSegment());let e={};this.peekStartsWith("/(")&&(this.capture("/"),e=this.parseParens(!0));let r={};return this.peekStartsWith("(")&&(r=this.parseParens(!1)),(t.length>0||Object.keys(e).length>0)&&(r[ut]=new gt(t,e)),r}parseSegment(){const t=Uy(this.remaining);if(""===t&&this.peekStartsWith(";"))throw new Error(`Empty path url segment cannot have parameters: '${this.remaining}'.`);return this.capture(t),new Cg(By(t),this.parseMatrixParams())}parseMatrixParams(){const t={};for(;this.consumeOptional(";");)this.parseParam(t);return t}parseParam(t){const e=Uy(this.remaining);if(!e)return;this.capture(e);let r="";if(this.consumeOptional("=")){const i=Uy(this.remaining);i&&(r=i,this.capture(r))}t[By(e)]=By(r)}parseQueryParam(t){const e=function bH(n){const t=n.match(xH);return t?t[0]:""}(this.remaining);if(!e)return;this.capture(e);let r="";if(this.consumeOptional("=")){const s=function SH(n){const t=n.match(DH);return t?t[0]:""}(this.remaining);s&&(r=s,this.capture(r))}const i=ZR(e),o=ZR(r);if(t.hasOwnProperty(i)){let s=t[i];Array.isArray(s)||(s=[s],t[i]=s),s.push(o)}else t[i]=o}parseParens(t){const e={};for(this.capture("(");!this.consumeOptional(")")&&this.remaining.length>0;){const r=Uy(this.remaining),i=this.remaining[r.length];if("/"!==i&&")"!==i&&";"!==i)throw new Error(`Cannot parse url '${this.url}'`);let o;r.indexOf(":")>-1?(o=r.substr(0,r.indexOf(":")),this.capture(o),this.capture(":")):t&&(o=ut);const s=this.parseChildren();e[o]=1===Object.keys(s).length?s[ut]:new gt([],s),this.consumeOptional("//")}return e}peekStartsWith(t){return this.remaining.startsWith(t)}consumeOptional(t){return!!this.peekStartsWith(t)&&(this.remaining=this.remaining.substring(t.length),!0)}capture(t){if(!this.consumeOptional(t))throw new Error(`Expected "${t}".`)}}class XR{constructor(t){this._root=t}get root(){return this._root.value}parent(t){const e=this.pathFromRoot(t);return e.length>1?e[e.length-2]:null}children(t){const e=WM(t,this._root);return e?e.children.map(r=>r.value):[]}firstChild(t){const e=WM(t,this._root);return e&&e.children.length>0?e.children[0].value:null}siblings(t){const e=qM(t,this._root);return e.length<2?[]:e[e.length-2].children.map(i=>i.value).filter(i=>i!==t)}pathFromRoot(t){return qM(t,this._root).map(e=>e.value)}}function WM(n,t){if(n===t.value)return t;for(const e of t.children){const r=WM(n,e);if(r)return r}return null}function qM(n,t){if(n===t.value)return[t];for(const e of t.children){const r=qM(n,e);if(r.length)return r.unshift(t),r}return[]}class Ea{constructor(t,e){this.value=t,this.children=e}toString(){return`TreeNode(${this.value})`}}function Qh(n){const t={};return n&&n.children.forEach(e=>t[e.value.outlet]=e),t}class QR extends XR{constructor(t,e){super(t),this.snapshot=e,KM(this,t)}toString(){return this.snapshot.toString()}}function JR(n,t){const e=function TH(n,t){const s=new jy([],{},{},"",{},ut,t,null,n.root,-1,{});return new tO("",new Ea(s,[]))}(n,t),r=new Zo([new Cg("",{})]),i=new Zo({}),o=new Zo({}),s=new Zo({}),a=new Zo(""),l=new Jh(r,i,s,a,o,ut,t,e.root);return l.snapshot=e.root,new QR(new Ea(l,[]),e)}class Jh{constructor(t,e,r,i,o,s,a,l){this.url=t,this.params=e,this.queryParams=r,this.fragment=i,this.data=o,this.outlet=s,this.component=a,this._futureSnapshot=l}get routeConfig(){return this._futureSnapshot.routeConfig}get root(){return this._routerState.root}get parent(){return this._routerState.parent(this)}get firstChild(){return this._routerState.firstChild(this)}get children(){return this._routerState.children(this)}get pathFromRoot(){return this._routerState.pathFromRoot(this)}get paramMap(){return this._paramMap||(this._paramMap=this.params.pipe(nt(t=>Xh(t)))),this._paramMap}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=this.queryParams.pipe(nt(t=>Xh(t)))),this._queryParamMap}toString(){return this.snapshot?this.snapshot.toString():`Future(${this._futureSnapshot})`}}function eO(n,t="emptyOnly"){const e=n.pathFromRoot;let r=0;if("always"!==t)for(r=e.length-1;r>=1;){const i=e[r],o=e[r-1];if(i.routeConfig&&""===i.routeConfig.path)r--;else{if(o.component)break;r--}}return function AH(n){return n.reduce((t,e)=>({params:Object.assign(Object.assign({},t.params),e.params),data:Object.assign(Object.assign({},t.data),e.data),resolve:Object.assign(Object.assign({},t.resolve),e._resolvedData)}),{params:{},data:{},resolve:{}})}(e.slice(r))}class jy{constructor(t,e,r,i,o,s,a,l,c,f,d){this.url=t,this.params=e,this.queryParams=r,this.fragment=i,this.data=o,this.outlet=s,this.component=a,this.routeConfig=l,this._urlSegment=c,this._lastPathIndex=f,this._resolve=d}get root(){return this._routerState.root}get parent(){return this._routerState.parent(this)}get firstChild(){return this._routerState.firstChild(this)}get children(){return this._routerState.children(this)}get pathFromRoot(){return this._routerState.pathFromRoot(this)}get paramMap(){return this._paramMap||(this._paramMap=Xh(this.params)),this._paramMap}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=Xh(this.queryParams)),this._queryParamMap}toString(){return`Route(url:'${this.url.map(r=>r.toString()).join("/")}', path:'${this.routeConfig?this.routeConfig.path:""}')`}}class tO extends XR{constructor(t,e){super(e),this.url=t,KM(this,e)}toString(){return nO(this._root)}}function KM(n,t){t.value._routerState=n,t.children.forEach(e=>KM(n,e))}function nO(n){const t=n.children.length>0?` { ${n.children.map(nO).join(", ")} } `:"";return`${n.value}${t}`}function ZM(n){if(n.snapshot){const t=n.snapshot,e=n._futureSnapshot;n.snapshot=e,Ts(t.queryParams,e.queryParams)||n.queryParams.next(e.queryParams),t.fragment!==e.fragment&&n.fragment.next(e.fragment),Ts(t.params,e.params)||n.params.next(e.params),function fH(n,t){if(n.length!==t.length)return!1;for(let e=0;e<n.length;++e)if(!Ts(n[e],t[e]))return!1;return!0}(t.url,e.url)||n.url.next(e.url),Ts(t.data,e.data)||n.data.next(e.data)}else n.snapshot=n._futureSnapshot,n.data.next(n._futureSnapshot.data)}function YM(n,t){const e=Ts(n.params,t.params)&&function mH(n,t){return Qu(n,t)&&n.every((e,r)=>Ts(e.parameters,t[r].parameters))}(n.url,t.url);return e&&!(!n.parent!=!t.parent)&&(!n.parent||YM(n.parent,t.parent))}function Eg(n,t,e){if(e&&n.shouldReuseRoute(t.value,e.value.snapshot)){const r=e.value;r._futureSnapshot=t.value;const i=function OH(n,t,e){return t.children.map(r=>{for(const i of e.children)if(n.shouldReuseRoute(r.value,i.value.snapshot))return Eg(n,r,i);return Eg(n,r)})}(n,t,e);return new Ea(r,i)}{if(n.shouldAttach(t.value)){const o=n.retrieve(t.value);if(null!==o){const s=o.route;return s.value._futureSnapshot=t.value,s.children=t.children.map(a=>Eg(n,a)),s}}const r=function PH(n){return new Jh(new Zo(n.url),new Zo(n.params),new Zo(n.queryParams),new Zo(n.fragment),new Zo(n.data),n.outlet,n.component,n)}(t.value),i=t.children.map(o=>Eg(n,o));return new Ea(r,i)}}function Gy(n){return"object"==typeof n&&null!=n&&!n.outlets&&!n.segmentPath}function Mg(n){return"object"==typeof n&&null!=n&&n.outlets}function XM(n,t,e,r,i){let o={};if(r&&Mr(r,(a,l)=>{o[l]=Array.isArray(a)?a.map(c=>`${c}`):`${a}`}),n===t)return new Xu(e,o,i);const s=rO(n,t,e);return new Xu(s,o,i)}function rO(n,t,e){const r={};return Mr(n.children,(i,o)=>{r[o]=i===t?e:rO(i,t,e)}),new gt(n.segments,r)}class iO{constructor(t,e,r){if(this.isAbsolute=t,this.numberOfDoubleDots=e,this.commands=r,t&&r.length>0&&Gy(r[0]))throw new Error("Root segment cannot have matrix parameters");const i=r.find(Mg);if(i&&i!==UR(r))throw new Error("{outlets:{}} has to be the last command")}toRoot(){return this.isAbsolute&&1===this.commands.length&&"/"==this.commands[0]}}class QM{constructor(t,e,r){this.segmentGroup=t,this.processChildren=e,this.index=r}}function oO(n,t,e){if(n||(n=new gt([],{})),0===n.segments.length&&n.hasChildren())return Hy(n,t,e);const r=function BH(n,t,e){let r=0,i=t;const o={match:!1,pathIndex:0,commandIndex:0};for(;i<n.segments.length;){if(r>=e.length)return o;const s=n.segments[i],a=e[r];if(Mg(a))break;const l=`${a}`,c=r<e.length-1?e[r+1]:null;if(i>0&&void 0===l)break;if(l&&c&&"object"==typeof c&&void 0===c.outlets){if(!aO(l,c,s))return o;r+=2}else{if(!aO(l,{},s))return o;r++}i++}return{match:!0,pathIndex:i,commandIndex:r}}(n,t,e),i=e.slice(r.commandIndex);if(r.match&&r.pathIndex<n.segments.length){const o=new gt(n.segments.slice(0,r.pathIndex),{});return o.children[ut]=new gt(n.segments.slice(r.pathIndex),n.children),Hy(o,0,i)}return r.match&&0===i.length?new gt(n.segments,{}):r.match&&!n.hasChildren()?JM(n,t,e):r.match?Hy(n,0,i):JM(n,t,e)}function Hy(n,t,e){if(0===e.length)return new gt(n.segments,{});{const r=function VH(n){return Mg(n[0])?n[0].outlets:{[ut]:n}}(e),i={};return Mr(r,(o,s)=>{"string"==typeof o&&(o=[o]),null!==o&&(i[s]=oO(n.children[s],t,o))}),Mr(n.children,(o,s)=>{void 0===r[s]&&(i[s]=o)}),new gt(n.segments,i)}}function JM(n,t,e){const r=n.segments.slice(0,t);let i=0;for(;i<e.length;){const o=e[i];if(Mg(o)){const l=UH(o.outlets);return new gt(r,l)}if(0===i&&Gy(e[0])){r.push(new Cg(n.segments[t].path,sO(e[0]))),i++;continue}const s=Mg(o)?o.outlets[ut]:`${o}`,a=i<e.length-1?e[i+1]:null;s&&a&&Gy(a)?(r.push(new Cg(s,sO(a))),i+=2):(r.push(new Cg(s,{})),i++)}return new gt(r,{})}function UH(n){const t={};return Mr(n,(e,r)=>{"string"==typeof e&&(e=[e]),null!==e&&(t[r]=JM(new gt([],{}),0,e))}),t}function sO(n){const t={};return Mr(n,(e,r)=>t[r]=`${e}`),t}function aO(n,t,e){return n==e.path&&Ts(t,e.parameters)}class GH{constructor(t,e,r,i){this.routeReuseStrategy=t,this.futureState=e,this.currState=r,this.forwardEvent=i}activate(t){const e=this.futureState._root,r=this.currState?this.currState._root:null;this.deactivateChildRoutes(e,r,t),ZM(this.futureState.root),this.activateChildRoutes(e,r,t)}deactivateChildRoutes(t,e,r){const i=Qh(e);t.children.forEach(o=>{const s=o.value.outlet;this.deactivateRoutes(o,i[s],r),delete i[s]}),Mr(i,(o,s)=>{this.deactivateRouteAndItsChildren(o,r)})}deactivateRoutes(t,e,r){const i=t.value,o=e?e.value:null;if(i===o)if(i.component){const s=r.getContext(i.outlet);s&&this.deactivateChildRoutes(t,e,s.children)}else this.deactivateChildRoutes(t,e,r);else o&&this.deactivateRouteAndItsChildren(e,r)}deactivateRouteAndItsChildren(t,e){t.value.component&&this.routeReuseStrategy.shouldDetach(t.value.snapshot)?this.detachAndStoreRouteSubtree(t,e):this.deactivateRouteAndOutlet(t,e)}detachAndStoreRouteSubtree(t,e){const r=e.getContext(t.value.outlet),i=r&&t.value.component?r.children:e,o=Qh(t);for(const s of Object.keys(o))this.deactivateRouteAndItsChildren(o[s],i);if(r&&r.outlet){const s=r.outlet.detach(),a=r.children.onOutletDeactivated();this.routeReuseStrategy.store(t.value.snapshot,{componentRef:s,route:t,contexts:a})}}deactivateRouteAndOutlet(t,e){const r=e.getContext(t.value.outlet),i=r&&t.value.component?r.children:e,o=Qh(t);for(const s of Object.keys(o))this.deactivateRouteAndItsChildren(o[s],i);r&&r.outlet&&(r.outlet.deactivate(),r.children.onOutletDeactivated(),r.attachRef=null,r.resolver=null,r.route=null)}activateChildRoutes(t,e,r){const i=Qh(e);t.children.forEach(o=>{this.activateRoutes(o,i[o.value.outlet],r),this.forwardEvent(new lH(o.value.snapshot))}),t.children.length&&this.forwardEvent(new sH(t.value.snapshot))}activateRoutes(t,e,r){const i=t.value,o=e?e.value:null;if(ZM(i),i===o)if(i.component){const s=r.getOrCreateContext(i.outlet);this.activateChildRoutes(t,e,s.children)}else this.activateChildRoutes(t,e,r);else if(i.component){const s=r.getOrCreateContext(i.outlet);if(this.routeReuseStrategy.shouldAttach(i.snapshot)){const a=this.routeReuseStrategy.retrieve(i.snapshot);this.routeReuseStrategy.store(i.snapshot,null),s.children.onOutletReAttached(a.contexts),s.attachRef=a.componentRef,s.route=a.route.value,s.outlet&&s.outlet.attach(a.componentRef,a.route.value),ZM(a.route.value),this.activateChildRoutes(t,null,s.children)}else{const a=function HH(n){for(let t=n.parent;t;t=t.parent){const e=t.routeConfig;if(e&&e._loadedConfig)return e._loadedConfig;if(e&&e.component)return null}return null}(i.snapshot),l=a?a.module.componentFactoryResolver:null;s.attachRef=null,s.route=i,s.resolver=l,s.outlet&&s.outlet.activateWith(i,l),this.activateChildRoutes(t,null,s.children)}}else this.activateChildRoutes(t,null,r)}}class ex{constructor(t,e){this.routes=t,this.module=e}}function gl(n){return"function"==typeof n}function Ju(n){return n instanceof Xu}const xg=Symbol("INITIAL_VALUE");function bg(){return dl(n=>function bG(...n){let t,e;return gi(n[n.length-1])&&(e=n.pop()),"function"==typeof n[n.length-1]&&(t=n.pop()),1===n.length&&gn(n[0])&&(n=n[0]),Wf(n,e).lift(new DG(t))}(n.map(t=>t.pipe(UM(1),function LG(...n){const t=n[n.length-1];return gi(t)?(n.pop(),e=>VM(n,e,t)):e=>VM(n,e)}(xg)))).pipe(jM((t,e)=>{let r=!1;return e.reduce((i,o,s)=>i!==xg?i:(o===xg&&(r=!0),r||!1!==o&&s!==e.length-1&&!Ju(o)?i:o),t)},xg),Ku(t=>t!==xg),nt(t=>Ju(t)?t:!0===t),UM(1)))}class ZH{constructor(){this.outlet=null,this.route=null,this.resolver=null,this.children=new Dg,this.attachRef=null}}class Dg{constructor(){this.contexts=new Map}onChildOutletCreated(t,e){const r=this.getOrCreateContext(t);r.outlet=e,this.contexts.set(t,r)}onChildOutletDestroyed(t){const e=this.getContext(t);e&&(e.outlet=null,e.attachRef=null)}onOutletDeactivated(){const t=this.contexts;return this.contexts=new Map,t}onOutletReAttached(t){this.contexts=t}getOrCreateContext(t){let e=this.getContext(t);return e||(e=new ZH,this.contexts.set(t,e)),e}getContext(t){return this.contexts.get(t)||null}}let lO=(()=>{class n{constructor(e,r,i,o,s){this.parentContexts=e,this.location=r,this.resolver=i,this.changeDetector=s,this.activated=null,this._activatedRoute=null,this.activateEvents=new lt,this.deactivateEvents=new lt,this.attachEvents=new lt,this.detachEvents=new lt,this.name=o||ut,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,this.detachEvents.emit(e.instance),e}attach(e,r){this.activated=e,this._activatedRoute=r,this.location.insert(e.hostView),this.attachEvents.emit(e.instance)}deactivate(){if(this.activated){const e=this.component;this.activated.destroy(),this.activated=null,this._activatedRoute=null,this.deactivateEvents.emit(e)}}activateWith(e,r){if(this.isActivated)throw new Error("Cannot activate an already activated outlet");this._activatedRoute=e;const s=(r=r||this.resolver).resolveComponentFactory(e._futureSnapshot.routeConfig.component),a=this.parentContexts.getOrCreateContext(this.name).children,l=new YH(e,a,this.location.injector);this.activated=this.location.createComponent(s,this.location.length,l),this.changeDetector.markForCheck(),this.activateEvents.emit(this.activated.instance)}}return n.\u0275fac=function(e){return new(e||n)(z(Dg),z(Wo),z(rg),function vs(n){return function pw(n,t){if("class"===t)return n.classes;if("style"===t)return n.styles;const e=n.attrs;if(e){const r=e.length;let i=0;for(;i<r;){const o=e[i];if(bi(o))break;if(0===o)i+=2;else if("number"==typeof o)for(i++;i<r&&"string"==typeof e[i];)i++;else{if(o===t)return e[i+1];i+=2}}}return null}(Pn(),n)}("name"),z(cy))},n.\u0275dir=Te({type:n,selectors:[["router-outlet"]],outputs:{activateEvents:"activate",deactivateEvents:"deactivate",attachEvents:"attach",detachEvents:"detach"},exportAs:["outlet"]}),n})();class YH{constructor(t,e,r){this.route=t,this.childContexts=e,this.parent=r}get(t,e){return t===Jh?this.route:t===Dg?this.childContexts:this.parent.get(t,e)}}let uO=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275cmp=An({type:n,selectors:[["ng-component"]],decls:1,vars:0,template:function(e,r){1&e&&xt(0,"router-outlet")},directives:[lO],encapsulation:2}),n})();function cO(n,t=""){for(let e=0;e<n.length;e++){const r=n[e];XH(r,QH(t,r))}}function XH(n,t){n.children&&cO(n.children,t)}function QH(n,t){return t?n||t.path?n&&!t.path?`${n}/`:!n&&t.path?t.path:`${n}/${t.path}`:"":n}function tx(n){const t=n.children&&n.children.map(tx),e=t?Object.assign(Object.assign({},n),{children:t}):Object.assign({},n);return!e.component&&(t||e.loadChildren)&&e.outlet&&e.outlet!==ut&&(e.component=uO),e}function bo(n){return n.outlet||ut}function hO(n,t){const e=n.filter(r=>bo(r)===t);return e.push(...n.filter(r=>bo(r)!==t)),e}const fO={matched:!1,consumedSegments:[],remainingSegments:[],parameters:{},positionalParamSegments:{}};function zy(n,t,e){var r;if(""===t.path)return"full"===t.pathMatch&&(n.hasChildren()||e.length>0)?Object.assign({},fO):{matched:!0,consumedSegments:[],remainingSegments:e,parameters:{},positionalParamSegments:{}};const o=(t.matcher||hH)(e,n,t);if(!o)return Object.assign({},fO);const s={};Mr(o.posParams,(l,c)=>{s[c]=l.path});const a=o.consumed.length>0?Object.assign(Object.assign({},s),o.consumed[o.consumed.length-1].parameters):s;return{matched:!0,consumedSegments:o.consumed,remainingSegments:e.slice(o.consumed.length),parameters:a,positionalParamSegments:null!==(r=o.posParams)&&void 0!==r?r:{}}}function $y(n,t,e,r,i="corrected"){if(e.length>0&&function t4(n,t,e){return e.some(r=>Wy(n,t,r)&&bo(r)!==ut)}(n,e,r)){const s=new gt(t,function e4(n,t,e,r){const i={};i[ut]=r,r._sourceSegment=n,r._segmentIndexShift=t.length;for(const o of e)if(""===o.path&&bo(o)!==ut){const s=new gt([],{});s._sourceSegment=n,s._segmentIndexShift=t.length,i[bo(o)]=s}return i}(n,t,r,new gt(e,n.children)));return s._sourceSegment=n,s._segmentIndexShift=t.length,{segmentGroup:s,slicedSegments:[]}}if(0===e.length&&function n4(n,t,e){return e.some(r=>Wy(n,t,r))}(n,e,r)){const s=new gt(n.segments,function JH(n,t,e,r,i,o){const s={};for(const a of r)if(Wy(n,e,a)&&!i[bo(a)]){const l=new gt([],{});l._sourceSegment=n,l._segmentIndexShift="legacy"===o?n.segments.length:t.length,s[bo(a)]=l}return Object.assign(Object.assign({},i),s)}(n,t,e,r,n.children,i));return s._sourceSegment=n,s._segmentIndexShift=t.length,{segmentGroup:s,slicedSegments:e}}const o=new gt(n.segments,n.children);return o._sourceSegment=n,o._segmentIndexShift=t.length,{segmentGroup:o,slicedSegments:e}}function Wy(n,t,e){return(!(n.hasChildren()||t.length>0)||"full"!==e.pathMatch)&&""===e.path}function dO(n,t,e,r){return!!(bo(n)===r||r!==ut&&Wy(t,e,n))&&("**"===n.path||zy(t,n,e).matched)}function pO(n,t,e){return 0===t.length&&!n.children[e]}class qy{constructor(t){this.segmentGroup=t||null}}class gO{constructor(t){this.urlTree=t}}function Sg(n){return ky(new qy(n))}function vO(n){return ky(new gO(n))}function r4(n){return ky(new Error(`Only absolute redirects can have named outlets. redirectTo: '${n}'`))}class s4{constructor(t,e,r,i,o){this.configLoader=e,this.urlSerializer=r,this.urlTree=i,this.config=o,this.allowRedirects=!0,this.ngModule=t.get(ga)}apply(){const t=$y(this.urlTree.root,[],[],this.config).segmentGroup,e=new gt(t.segments,t.children);return this.expandSegmentGroup(this.ngModule,this.config,e,ut).pipe(nt(o=>this.createUrlTree(nx(o),this.urlTree.queryParams,this.urlTree.fragment))).pipe(Zu(o=>{if(o instanceof gO)return this.allowRedirects=!1,this.match(o.urlTree);throw o instanceof qy?this.noMatchError(o):o}))}match(t){return this.expandSegmentGroup(this.ngModule,this.config,t.root,ut).pipe(nt(i=>this.createUrlTree(nx(i),t.queryParams,t.fragment))).pipe(Zu(i=>{throw i instanceof qy?this.noMatchError(i):i}))}noMatchError(t){return new Error(`Cannot match any routes. URL Segment: '${t.segmentGroup}'`)}createUrlTree(t,e,r){const i=t.segments.length>0?new gt([],{[ut]:t}):t;return new Xu(i,e,r)}expandSegmentGroup(t,e,r,i){return 0===r.segments.length&&r.hasChildren()?this.expandChildren(t,e,r).pipe(nt(o=>new gt([],o))):this.expandSegment(t,r,e,r.segments,i,!0)}expandChildren(t,e,r){const i=[];for(const o of Object.keys(r.children))"primary"===o?i.unshift(o):i.push(o);return xn(i).pipe(Zh(o=>{const s=r.children[o],a=hO(e,o);return this.expandSegmentGroup(t,a,s,o).pipe(nt(l=>({segment:l,outlet:o})))}),jM((o,s)=>(o[s.outlet]=s.segment,o),{}),function qG(n,t){const e=arguments.length>=2;return r=>r.pipe(n?Ku((i,o)=>n(i,o,r)):ee,GM(1),e?OR(t):RR(()=>new Ly))}())}expandSegment(t,e,r,i,o,s){return xn(r).pipe(Zh(a=>this.expandSegmentAgainstRoute(t,e,r,a,i,o,s).pipe(Zu(c=>{if(c instanceof qy)return et(null);throw c}))),Yu(a=>!!a),Zu((a,l)=>{if(a instanceof Ly||"EmptyError"===a.name)return pO(e,i,o)?et(new gt([],{})):Sg(e);throw a}))}expandSegmentAgainstRoute(t,e,r,i,o,s,a){return dO(i,e,o,s)?void 0===i.redirectTo?this.matchSegmentAgainstRoute(t,e,i,o,s):a&&this.allowRedirects?this.expandSegmentAgainstRouteUsingRedirect(t,e,r,i,o,s):Sg(e):Sg(e)}expandSegmentAgainstRouteUsingRedirect(t,e,r,i,o,s){return"**"===i.path?this.expandWildCardWithParamsAgainstRouteUsingRedirect(t,r,i,s):this.expandRegularSegmentAgainstRouteUsingRedirect(t,e,r,i,o,s)}expandWildCardWithParamsAgainstRouteUsingRedirect(t,e,r,i){const o=this.applyRedirectCommands([],r.redirectTo,{});return r.redirectTo.startsWith("/")?vO(o):this.lineralizeSegments(r,o).pipe(Bt(s=>{const a=new gt(s,{});return this.expandSegment(t,a,e,s,i,!1)}))}expandRegularSegmentAgainstRouteUsingRedirect(t,e,r,i,o,s){const{matched:a,consumedSegments:l,remainingSegments:c,positionalParamSegments:f}=zy(e,i,o);if(!a)return Sg(e);const d=this.applyRedirectCommands(l,i.redirectTo,f);return i.redirectTo.startsWith("/")?vO(d):this.lineralizeSegments(i,d).pipe(Bt(g=>this.expandSegment(t,e,r,g.concat(c),s,!1)))}matchSegmentAgainstRoute(t,e,r,i,o){if("**"===r.path)return r.loadChildren?(r._loadedConfig?et(r._loadedConfig):this.configLoader.load(t.injector,r)).pipe(nt(d=>(r._loadedConfig=d,new gt(i,{})))):et(new gt(i,{}));const{matched:s,consumedSegments:a,remainingSegments:l}=zy(e,r,i);return s?this.getChildConfig(t,r,i).pipe(Bt(f=>{const d=f.module,g=f.routes,{segmentGroup:v,slicedSegments:m}=$y(e,a,l,g),y=new gt(v.segments,v.children);if(0===m.length&&y.hasChildren())return this.expandChildren(d,g,y).pipe(nt(S=>new gt(a,S)));if(0===g.length&&0===m.length)return et(new gt(a,{}));const w=bo(r)===o;return this.expandSegment(d,y,g,m,w?ut:o,!0).pipe(nt(E=>new gt(a.concat(E.segments),E.children)))})):Sg(e)}getChildConfig(t,e,r){return e.children?et(new ex(e.children,t)):e.loadChildren?void 0!==e._loadedConfig?et(e._loadedConfig):this.runCanLoadGuards(t.injector,e,r).pipe(Bt(i=>i?this.configLoader.load(t.injector,e).pipe(nt(o=>(e._loadedConfig=o,o))):function i4(n){return ky(zM(`Cannot load children because the guard of the route "path: '${n.path}'" returned false`))}(e))):et(new ex([],t))}runCanLoadGuards(t,e,r){const i=e.canLoad;if(!i||0===i.length)return et(!0);const o=i.map(s=>{const a=t.get(s);let l;if(function $H(n){return n&&gl(n.canLoad)}(a))l=a.canLoad(e,r);else{if(!gl(a))throw new Error("Invalid CanLoad guard");l=a(e,r)}return As(l)});return et(o).pipe(bg(),Xi(s=>{if(!Ju(s))return;const a=zM(`Redirecting to "${this.urlSerializer.serialize(s)}"`);throw a.url=s,a}),nt(s=>!0===s))}lineralizeSegments(t,e){let r=[],i=e.root;for(;;){if(r=r.concat(i.segments),0===i.numberOfChildren)return et(r);if(i.numberOfChildren>1||!i.children[ut])return r4(t.redirectTo);i=i.children[ut]}}applyRedirectCommands(t,e,r){return this.applyRedirectCreatreUrlTree(e,this.urlSerializer.parse(e),t,r)}applyRedirectCreatreUrlTree(t,e,r,i){const o=this.createSegmentGroup(t,e.root,r,i);return new Xu(o,this.createQueryParams(e.queryParams,this.urlTree.queryParams),e.fragment)}createQueryParams(t,e){const r={};return Mr(t,(i,o)=>{if("string"==typeof i&&i.startsWith(":")){const a=i.substring(1);r[o]=e[a]}else r[o]=i}),r}createSegmentGroup(t,e,r,i){const o=this.createSegments(t,e.segments,r,i);let s={};return Mr(e.children,(a,l)=>{s[l]=this.createSegmentGroup(t,a,r,i)}),new gt(o,s)}createSegments(t,e,r,i){return e.map(o=>o.path.startsWith(":")?this.findPosParam(t,o,i):this.findOrReturn(o,r))}findPosParam(t,e,r){const i=r[e.path.substring(1)];if(!i)throw new Error(`Cannot redirect to '${t}'. Cannot find '${e.path}'.`);return i}findOrReturn(t,e){let r=0;for(const i of e){if(i.path===t.path)return e.splice(r),i;r++}return t}}function nx(n){const t={};for(const r of Object.keys(n.children)){const o=nx(n.children[r]);(o.segments.length>0||o.hasChildren())&&(t[r]=o)}return function a4(n){if(1===n.numberOfChildren&&n.children[ut]){const t=n.children[ut];return new gt(n.segments.concat(t.segments),t.children)}return n}(new gt(n.segments,t))}class mO{constructor(t){this.path=t,this.route=this.path[this.path.length-1]}}class Ky{constructor(t,e){this.component=t,this.route=e}}function u4(n,t,e){const r=n._root;return Ig(r,t?t._root:null,e,[r.value])}function Zy(n,t,e){const r=function h4(n){if(!n)return null;for(let t=n.parent;t;t=t.parent){const e=t.routeConfig;if(e&&e._loadedConfig)return e._loadedConfig}return null}(t);return(r?r.module.injector:e).get(n)}function Ig(n,t,e,r,i={canDeactivateChecks:[],canActivateChecks:[]}){const o=Qh(t);return n.children.forEach(s=>{(function f4(n,t,e,r,i={canDeactivateChecks:[],canActivateChecks:[]}){const o=n.value,s=t?t.value:null,a=e?e.getContext(n.value.outlet):null;if(s&&o.routeConfig===s.routeConfig){const l=function d4(n,t,e){if("function"==typeof e)return e(n,t);switch(e){case"pathParamsChange":return!Qu(n.url,t.url);case"pathParamsOrQueryParamsChange":return!Qu(n.url,t.url)||!Ts(n.queryParams,t.queryParams);case"always":return!0;case"paramsOrQueryParamsChange":return!YM(n,t)||!Ts(n.queryParams,t.queryParams);default:return!YM(n,t)}}(s,o,o.routeConfig.runGuardsAndResolvers);l?i.canActivateChecks.push(new mO(r)):(o.data=s.data,o._resolvedData=s._resolvedData),Ig(n,t,o.component?a?a.children:null:e,r,i),l&&a&&a.outlet&&a.outlet.isActivated&&i.canDeactivateChecks.push(new Ky(a.outlet.component,s))}else s&&Tg(t,a,i),i.canActivateChecks.push(new mO(r)),Ig(n,null,o.component?a?a.children:null:e,r,i)})(s,o[s.value.outlet],e,r.concat([s.value]),i),delete o[s.value.outlet]}),Mr(o,(s,a)=>Tg(s,e.getContext(a),i)),i}function Tg(n,t,e){const r=Qh(n),i=n.value;Mr(r,(o,s)=>{Tg(o,i.component?t?t.children.getContext(s):null:t,e)}),e.canDeactivateChecks.push(new Ky(i.component&&t&&t.outlet&&t.outlet.isActivated?t.outlet.component:null,i))}class E4{}function _O(n){return new ae(t=>t.error(n))}class x4{constructor(t,e,r,i,o,s){this.rootComponentType=t,this.config=e,this.urlTree=r,this.url=i,this.paramsInheritanceStrategy=o,this.relativeLinkResolution=s}recognize(){const t=$y(this.urlTree.root,[],[],this.config.filter(s=>void 0===s.redirectTo),this.relativeLinkResolution).segmentGroup,e=this.processSegmentGroup(this.config,t,ut);if(null===e)return null;const r=new jy([],Object.freeze({}),Object.freeze(Object.assign({},this.urlTree.queryParams)),this.urlTree.fragment,{},ut,this.rootComponentType,null,this.urlTree.root,-1,{}),i=new Ea(r,e),o=new tO(this.url,i);return this.inheritParamsAndData(o._root),o}inheritParamsAndData(t){const e=t.value,r=eO(e,this.paramsInheritanceStrategy);e.params=Object.freeze(r.params),e.data=Object.freeze(r.data),t.children.forEach(i=>this.inheritParamsAndData(i))}processSegmentGroup(t,e,r){return 0===e.segments.length&&e.hasChildren()?this.processChildren(t,e):this.processSegment(t,e,e.segments,r)}processChildren(t,e){const r=[];for(const o of Object.keys(e.children)){const s=e.children[o],a=hO(t,o),l=this.processSegmentGroup(a,s,o);if(null===l)return null;r.push(...l)}const i=yO(r);return function b4(n){n.sort((t,e)=>t.value.outlet===ut?-1:e.value.outlet===ut?1:t.value.outlet.localeCompare(e.value.outlet))}(i),i}processSegment(t,e,r,i){for(const o of t){const s=this.processSegmentAgainstRoute(o,e,r,i);if(null!==s)return s}return pO(e,r,i)?[]:null}processSegmentAgainstRoute(t,e,r,i){if(t.redirectTo||!dO(t,e,r,i))return null;let o,s=[],a=[];if("**"===t.path){const v=r.length>0?UR(r).parameters:{};o=new jy(r,v,Object.freeze(Object.assign({},this.urlTree.queryParams)),this.urlTree.fragment,EO(t),bo(t),t.component,t,CO(e),wO(e)+r.length,MO(t))}else{const v=zy(e,t,r);if(!v.matched)return null;s=v.consumedSegments,a=v.remainingSegments,o=new jy(s,v.parameters,Object.freeze(Object.assign({},this.urlTree.queryParams)),this.urlTree.fragment,EO(t),bo(t),t.component,t,CO(e),wO(e)+s.length,MO(t))}const l=function D4(n){return n.children?n.children:n.loadChildren?n._loadedConfig.routes:[]}(t),{segmentGroup:c,slicedSegments:f}=$y(e,s,a,l.filter(v=>void 0===v.redirectTo),this.relativeLinkResolution);if(0===f.length&&c.hasChildren()){const v=this.processChildren(l,c);return null===v?null:[new Ea(o,v)]}if(0===l.length&&0===f.length)return[new Ea(o,[])];const d=bo(t)===i,g=this.processSegment(l,c,f,d?ut:i);return null===g?null:[new Ea(o,g)]}}function S4(n){const t=n.value.routeConfig;return t&&""===t.path&&void 0===t.redirectTo}function yO(n){const t=[],e=new Set;for(const r of n){if(!S4(r)){t.push(r);continue}const i=t.find(o=>r.value.routeConfig===o.value.routeConfig);void 0!==i?(i.children.push(...r.children),e.add(i)):t.push(r)}for(const r of e){const i=yO(r.children);t.push(new Ea(r.value,i))}return t.filter(r=>!e.has(r))}function CO(n){let t=n;for(;t._sourceSegment;)t=t._sourceSegment;return t}function wO(n){let t=n,e=t._segmentIndexShift?t._segmentIndexShift:0;for(;t._sourceSegment;)t=t._sourceSegment,e+=t._segmentIndexShift?t._segmentIndexShift:0;return e-1}function EO(n){return n.data||{}}function MO(n){return n.resolve||{}}function xO(n){return[...Object.keys(n),...Object.getOwnPropertySymbols(n)]}function rx(n){return dl(t=>{const e=n(t);return e?xn(e).pipe(nt(()=>t)):et(t)})}class L4 extends class k4{shouldDetach(t){return!1}store(t,e){}shouldAttach(t){return!1}retrieve(t){return null}shouldReuseRoute(t,e){return t.routeConfig===e.routeConfig}}{}const ix=new Be("ROUTES");class bO{constructor(t,e,r,i){this.injector=t,this.compiler=e,this.onLoadStartListener=r,this.onLoadEndListener=i}load(t,e){if(e._loader$)return e._loader$;this.onLoadStartListener&&this.onLoadStartListener(e);const i=this.loadModuleFactory(e.loadChildren).pipe(nt(o=>{this.onLoadEndListener&&this.onLoadEndListener(e);const s=o.create(t);return new ex(BR(s.injector.get(ix,void 0,Ve.Self|Ve.Optional)).map(tx),s)}),Zu(o=>{throw e._loader$=void 0,o}));return e._loader$=new Pc(i,()=>new gr).pipe(ls()),e._loader$}loadModuleFactory(t){return As(t()).pipe(Bt(e=>e instanceof ST?et(e):xn(this.compiler.compileModuleAsync(e))))}}class F4{shouldProcessUrl(t){return!0}extract(t){return t}merge(t,e){return t}}function V4(n){throw n}function B4(n,t,e){return t.parse("/")}function DO(n,t){return et(null)}const U4={paths:"exact",fragment:"ignored",matrixParams:"ignored",queryParams:"exact"},j4={paths:"subset",fragment:"ignored",matrixParams:"ignored",queryParams:"subset"};let Qi=(()=>{class n{constructor(e,r,i,o,s,a,l){this.rootComponentType=e,this.urlSerializer=r,this.rootContexts=i,this.location=o,this.config=l,this.lastSuccessfulNavigation=null,this.currentNavigation=null,this.disposed=!1,this.navigationId=0,this.currentPageId=0,this.isNgZoneEnabled=!1,this.events=new gr,this.errorHandler=V4,this.malformedUriErrorHandler=B4,this.navigated=!1,this.lastSuccessfulId=-1,this.hooks={beforePreactivation:DO,afterPreactivation:DO},this.urlHandlingStrategy=new F4,this.routeReuseStrategy=new L4,this.onSameUrlNavigation="ignore",this.paramsInheritanceStrategy="emptyOnly",this.urlUpdateStrategy="deferred",this.relativeLinkResolution="corrected",this.canceledNavigationResolution="replace",this.ngModule=s.get(ga),this.console=s.get(HV);const d=s.get(hr);this.isNgZoneEnabled=d instanceof hr&&hr.isInAngularZone(),this.resetConfig(l),this.currentUrlTree=function dH(){return new Xu(new gt([],{}),{},null)}(),this.rawUrlTree=this.currentUrlTree,this.browserUrlTree=this.currentUrlTree,this.configLoader=new bO(s,a,g=>this.triggerEvent(new kR(g)),g=>this.triggerEvent(new LR(g))),this.routerState=JR(this.currentUrlTree,this.rootComponentType),this.transitions=new Zo({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 r=this.events;return e.pipe(Ku(i=>0!==i.id),nt(i=>Object.assign(Object.assign({},i),{extractedUrl:this.urlHandlingStrategy.extract(i.rawUrl)})),dl(i=>{let o=!1,s=!1;return et(i).pipe(Xi(a=>{this.currentNavigation={id:a.id,initialUrl:a.currentRawUrl,extractedUrl:a.extractedUrl,trigger:a.source,extras:a.extras,previousNavigation:this.lastSuccessfulNavigation?Object.assign(Object.assign({},this.lastSuccessfulNavigation),{previousNavigation:null}):null}}),dl(a=>{const l=this.browserUrlTree.toString(),c=!this.navigated||a.extractedUrl.toString()!==l||l!==this.currentUrlTree.toString();if(("reload"===this.onSameUrlNavigation||c)&&this.urlHandlingStrategy.shouldProcessUrl(a.rawUrl))return SO(a.source)&&(this.browserUrlTree=a.extractedUrl),et(a).pipe(dl(d=>{const g=this.transitions.getValue();return r.next(new HM(d.id,this.serializeUrl(d.extractedUrl),d.source,d.restoredState)),g!==this.transitions.getValue()?Yh:Promise.resolve(d)}),function l4(n,t,e,r){return dl(i=>function o4(n,t,e,r,i){return new s4(n,t,e,r,i).apply()}(n,t,e,i.extractedUrl,r).pipe(nt(o=>Object.assign(Object.assign({},i),{urlAfterRedirects:o}))))}(this.ngModule.injector,this.configLoader,this.urlSerializer,this.config),Xi(d=>{this.currentNavigation=Object.assign(Object.assign({},this.currentNavigation),{finalUrl:d.urlAfterRedirects})}),function I4(n,t,e,r,i){return Bt(o=>function M4(n,t,e,r,i="emptyOnly",o="legacy"){try{const s=new x4(n,t,e,r,i,o).recognize();return null===s?_O(new E4):et(s)}catch(s){return _O(s)}}(n,t,o.urlAfterRedirects,e(o.urlAfterRedirects),r,i).pipe(nt(s=>Object.assign(Object.assign({},o),{targetSnapshot:s}))))}(this.rootComponentType,this.config,d=>this.serializeUrl(d),this.paramsInheritanceStrategy,this.relativeLinkResolution),Xi(d=>{if("eager"===this.urlUpdateStrategy){if(!d.extras.skipLocationChange){const v=this.urlHandlingStrategy.merge(d.urlAfterRedirects,d.rawUrl);this.setBrowserUrl(v,d)}this.browserUrlTree=d.urlAfterRedirects}const g=new eH(d.id,this.serializeUrl(d.extractedUrl),this.serializeUrl(d.urlAfterRedirects),d.targetSnapshot);r.next(g)}));if(c&&this.rawUrlTree&&this.urlHandlingStrategy.shouldProcessUrl(this.rawUrlTree)){const{id:g,extractedUrl:v,source:m,restoredState:y,extras:w}=a,x=new HM(g,this.serializeUrl(v),m,y);r.next(x);const E=JR(v,this.rootComponentType).snapshot;return et(Object.assign(Object.assign({},a),{targetSnapshot:E,urlAfterRedirects:v,extras:Object.assign(Object.assign({},w),{skipLocationChange:!1,replaceUrl:!1})}))}return this.rawUrlTree=a.rawUrl,a.resolve(null),Yh}),rx(a=>{const{targetSnapshot:l,id:c,extractedUrl:f,rawUrl:d,extras:{skipLocationChange:g,replaceUrl:v}}=a;return this.hooks.beforePreactivation(l,{navigationId:c,appliedUrlTree:f,rawUrlTree:d,skipLocationChange:!!g,replaceUrl:!!v})}),Xi(a=>{const l=new tH(a.id,this.serializeUrl(a.extractedUrl),this.serializeUrl(a.urlAfterRedirects),a.targetSnapshot);this.triggerEvent(l)}),nt(a=>Object.assign(Object.assign({},a),{guards:u4(a.targetSnapshot,a.currentSnapshot,this.rootContexts)})),function p4(n,t){return Bt(e=>{const{targetSnapshot:r,currentSnapshot:i,guards:{canActivateChecks:o,canDeactivateChecks:s}}=e;return 0===s.length&&0===o.length?et(Object.assign(Object.assign({},e),{guardsResult:!0})):function g4(n,t,e,r){return xn(n).pipe(Bt(i=>function w4(n,t,e,r,i){const o=t&&t.routeConfig?t.routeConfig.canDeactivate:null;return o&&0!==o.length?et(o.map(a=>{const l=Zy(a,t,i);let c;if(function KH(n){return n&&gl(n.canDeactivate)}(l))c=As(l.canDeactivate(n,t,e,r));else{if(!gl(l))throw new Error("Invalid CanDeactivate guard");c=As(l(n,t,e,r))}return c.pipe(Yu())})).pipe(bg()):et(!0)}(i.component,i.route,e,t,r)),Yu(i=>!0!==i,!0))}(s,r,i,n).pipe(Bt(a=>a&&function zH(n){return"boolean"==typeof n}(a)?function v4(n,t,e,r){return xn(t).pipe(Zh(i=>VM(function _4(n,t){return null!==n&&t&&t(new oH(n)),et(!0)}(i.route.parent,r),function m4(n,t){return null!==n&&t&&t(new aH(n)),et(!0)}(i.route,r),function C4(n,t,e){const r=t[t.length-1],o=t.slice(0,t.length-1).reverse().map(s=>function c4(n){const t=n.routeConfig?n.routeConfig.canActivateChild:null;return t&&0!==t.length?{node:n,guards:t}:null}(s)).filter(s=>null!==s).map(s=>TR(()=>et(s.guards.map(l=>{const c=Zy(l,s.node,e);let f;if(function qH(n){return n&&gl(n.canActivateChild)}(c))f=As(c.canActivateChild(r,n));else{if(!gl(c))throw new Error("Invalid CanActivateChild guard");f=As(c(r,n))}return f.pipe(Yu())})).pipe(bg())));return et(o).pipe(bg())}(n,i.path,e),function y4(n,t,e){const r=t.routeConfig?t.routeConfig.canActivate:null;if(!r||0===r.length)return et(!0);const i=r.map(o=>TR(()=>{const s=Zy(o,t,e);let a;if(function WH(n){return n&&gl(n.canActivate)}(s))a=As(s.canActivate(t,n));else{if(!gl(s))throw new Error("Invalid CanActivate guard");a=As(s(t,n))}return a.pipe(Yu())}));return et(i).pipe(bg())}(n,i.route,e))),Yu(i=>!0!==i,!0))}(r,o,n,t):et(a)),nt(a=>Object.assign(Object.assign({},e),{guardsResult:a})))})}(this.ngModule.injector,a=>this.triggerEvent(a)),Xi(a=>{if(Ju(a.guardsResult)){const c=zM(`Redirecting to "${this.serializeUrl(a.guardsResult)}"`);throw c.url=a.guardsResult,c}const l=new nH(a.id,this.serializeUrl(a.extractedUrl),this.serializeUrl(a.urlAfterRedirects),a.targetSnapshot,!!a.guardsResult);this.triggerEvent(l)}),Ku(a=>!!a.guardsResult||(this.restoreHistory(a),this.cancelNavigationTransition(a,""),!1)),rx(a=>{if(a.guards.canActivateChecks.length)return et(a).pipe(Xi(l=>{const c=new rH(l.id,this.serializeUrl(l.extractedUrl),this.serializeUrl(l.urlAfterRedirects),l.targetSnapshot);this.triggerEvent(c)}),dl(l=>{let c=!1;return et(l).pipe(function T4(n,t){return Bt(e=>{const{targetSnapshot:r,guards:{canActivateChecks:i}}=e;if(!i.length)return et(e);let o=0;return xn(i).pipe(Zh(s=>function A4(n,t,e,r){return function R4(n,t,e,r){const i=xO(n);if(0===i.length)return et({});const o={};return xn(i).pipe(Bt(s=>function O4(n,t,e,r){const i=Zy(n,t,r);return As(i.resolve?i.resolve(t,e):i(t,e))}(n[s],t,e,r).pipe(Xi(a=>{o[s]=a}))),GM(1),Bt(()=>xO(o).length===i.length?et(o):Yh))}(n._resolve,n,t,r).pipe(nt(o=>(n._resolvedData=o,n.data=Object.assign(Object.assign({},n.data),eO(n,e).resolve),null)))}(s.route,r,n,t)),Xi(()=>o++),GM(1),Bt(s=>o===i.length?et(e):Yh))})}(this.paramsInheritanceStrategy,this.ngModule.injector),Xi({next:()=>c=!0,complete:()=>{c||(this.restoreHistory(l),this.cancelNavigationTransition(l,"At least one route resolver didn't emit any value."))}}))}),Xi(l=>{const c=new iH(l.id,this.serializeUrl(l.extractedUrl),this.serializeUrl(l.urlAfterRedirects),l.targetSnapshot);this.triggerEvent(c)}))}),rx(a=>{const{targetSnapshot:l,id:c,extractedUrl:f,rawUrl:d,extras:{skipLocationChange:g,replaceUrl:v}}=a;return this.hooks.afterPreactivation(l,{navigationId:c,appliedUrlTree:f,rawUrlTree:d,skipLocationChange:!!g,replaceUrl:!!v})}),nt(a=>{const l=function RH(n,t,e){const r=Eg(n,t._root,e?e._root:void 0);return new QR(r,t)}(this.routeReuseStrategy,a.targetSnapshot,a.currentRouterState);return Object.assign(Object.assign({},a),{targetRouterState:l})}),Xi(a=>{this.currentUrlTree=a.urlAfterRedirects,this.rawUrlTree=this.urlHandlingStrategy.merge(a.urlAfterRedirects,a.rawUrl),this.routerState=a.targetRouterState,"deferred"===this.urlUpdateStrategy&&(a.extras.skipLocationChange||this.setBrowserUrl(this.rawUrlTree,a),this.browserUrlTree=a.urlAfterRedirects)}),((n,t,e)=>nt(r=>(new GH(t,r.targetRouterState,r.currentRouterState,e).activate(n),r)))(this.rootContexts,this.routeReuseStrategy,a=>this.triggerEvent(a)),Xi({next(){o=!0},complete(){o=!0}}),function YG(n){return t=>t.lift(new XG(n))}(()=>{var a;o||s||this.cancelNavigationTransition(i,`Navigation ID ${i.id} is not equal to the current navigation id ${this.navigationId}`),(null===(a=this.currentNavigation)||void 0===a?void 0:a.id)===i.id&&(this.currentNavigation=null)}),Zu(a=>{if(s=!0,function cH(n){return n&&n[FR]}(a)){const l=Ju(a.url);l||(this.navigated=!0,this.restoreHistory(i,!0));const c=new PR(i.id,this.serializeUrl(i.extractedUrl),a.message);r.next(c),l?setTimeout(()=>{const f=this.urlHandlingStrategy.merge(a.url,this.rawUrlTree),d={skipLocationChange:i.extras.skipLocationChange,replaceUrl:"eager"===this.urlUpdateStrategy||SO(i.source)};this.scheduleNavigation(f,"imperative",null,d,{resolve:i.resolve,reject:i.reject,promise:i.promise})},0):i.resolve(!1)}else{this.restoreHistory(i,!0);const l=new JG(i.id,this.serializeUrl(i.extractedUrl),a);r.next(l);try{i.resolve(this.errorHandler(a))}catch(c){i.reject(c)}}return Yh}))}))}resetRootComponentType(e){this.rootComponentType=e,this.routerState.root.component=this.rootComponentType}setTransition(e){this.transitions.next(Object.assign(Object.assign({},this.transitions.value),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 r="popstate"===e.type?"popstate":"hashchange";"popstate"===r&&setTimeout(()=>{var i;const o={replaceUrl:!0},s=(null===(i=e.state)||void 0===i?void 0:i.navigationId)?e.state:null;if(s){const l=Object.assign({},s);delete l.navigationId,delete l.\u0275routerPageId,0!==Object.keys(l).length&&(o.state=l)}const a=this.parseUrl(e.url);this.scheduleNavigation(a,r,s,o)},0)}))}get url(){return this.serializeUrl(this.currentUrlTree)}getCurrentNavigation(){return this.currentNavigation}triggerEvent(e){this.events.next(e)}resetConfig(e){cO(e),this.config=e.map(tx),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,r={}){const{relativeTo:i,queryParams:o,fragment:s,queryParamsHandling:a,preserveFragment:l}=r,c=i||this.routerState.root,f=l?this.currentUrlTree.fragment:s;let d=null;switch(a){case"merge":d=Object.assign(Object.assign({},this.currentUrlTree.queryParams),o);break;case"preserve":d=this.currentUrlTree.queryParams;break;default:d=o||null}return null!==d&&(d=this.removeEmptyProps(d)),function kH(n,t,e,r,i){if(0===e.length)return XM(t.root,t.root,t.root,r,i);const o=function LH(n){if("string"==typeof n[0]&&1===n.length&&"/"===n[0])return new iO(!0,0,n);let t=0,e=!1;const r=n.reduce((i,o,s)=>{if("object"==typeof o&&null!=o){if(o.outlets){const a={};return Mr(o.outlets,(l,c)=>{a[c]="string"==typeof l?l.split("/"):l}),[...i,{outlets:a}]}if(o.segmentPath)return[...i,o.segmentPath]}return"string"!=typeof o?[...i,o]:0===s?(o.split("/").forEach((a,l)=>{0==l&&"."===a||(0==l&&""===a?e=!0:".."===a?t++:""!=a&&i.push(a))}),i):[...i,o]},[]);return new iO(e,t,r)}(e);if(o.toRoot())return XM(t.root,t.root,new gt([],{}),r,i);const s=function NH(n,t,e){if(n.isAbsolute)return new QM(t.root,!0,0);if(-1===e.snapshot._lastPathIndex){const o=e.snapshot._urlSegment;return new QM(o,o===t.root,0)}const r=Gy(n.commands[0])?0:1;return function FH(n,t,e){let r=n,i=t,o=e;for(;o>i;){if(o-=i,r=r.parent,!r)throw new Error("Invalid number of '../'");i=r.segments.length}return new QM(r,!1,i-o)}(e.snapshot._urlSegment,e.snapshot._lastPathIndex+r,n.numberOfDoubleDots)}(o,t,n),a=s.processChildren?Hy(s.segmentGroup,s.index,o.commands):oO(s.segmentGroup,s.index,o.commands);return XM(t.root,s.segmentGroup,a,r,i)}(c,this.currentUrlTree,e,d,null!=f?f:null)}navigateByUrl(e,r={skipLocationChange:!1}){const i=Ju(e)?e:this.parseUrl(e),o=this.urlHandlingStrategy.merge(i,this.rawUrlTree);return this.scheduleNavigation(o,"imperative",null,r)}navigate(e,r={skipLocationChange:!1}){return function G4(n){for(let t=0;t<n.length;t++){const e=n[t];if(null==e)throw new Error(`The requested path contains ${e} segment at index ${t}`)}}(e),this.navigateByUrl(this.createUrlTree(e,r),r)}serializeUrl(e){return this.urlSerializer.serialize(e)}parseUrl(e){let r;try{r=this.urlSerializer.parse(e)}catch(i){r=this.malformedUriErrorHandler(i,this.urlSerializer,e)}return r}isActive(e,r){let i;if(i=!0===r?Object.assign({},U4):!1===r?Object.assign({},j4):r,Ju(e))return GR(this.currentUrlTree,e,i);const o=this.parseUrl(e);return GR(this.currentUrlTree,o,i)}removeEmptyProps(e){return Object.keys(e).reduce((r,i)=>{const o=e[i];return null!=o&&(r[i]=o),r},{})}processNavigations(){this.navigations.subscribe(e=>{this.navigated=!0,this.lastSuccessfulId=e.id,this.currentPageId=e.targetPageId,this.events.next(new yg(e.id,this.serializeUrl(e.extractedUrl),this.serializeUrl(this.currentUrlTree))),this.lastSuccessfulNavigation=this.currentNavigation,e.resolve(!0)},e=>{this.console.warn(`Unhandled Navigation Error: ${e}`)})}scheduleNavigation(e,r,i,o,s){var a,l;if(this.disposed)return Promise.resolve(!1);let c,f,d;s?(c=s.resolve,f=s.reject,d=s.promise):d=new Promise((m,y)=>{c=m,f=y});const g=++this.navigationId;let v;return"computed"===this.canceledNavigationResolution?(0===this.currentPageId&&(i=this.location.getState()),v=i&&i.\u0275routerPageId?i.\u0275routerPageId:o.replaceUrl||o.skipLocationChange?null!==(a=this.browserPageId)&&void 0!==a?a:0:(null!==(l=this.browserPageId)&&void 0!==l?l:0)+1):v=0,this.setTransition({id:g,targetPageId:v,source:r,restoredState:i,currentUrlTree:this.currentUrlTree,currentRawUrl:this.rawUrlTree,rawUrl:e,extras:o,resolve:c,reject:f,promise:d,currentSnapshot:this.routerState.snapshot,currentRouterState:this.routerState}),d.catch(m=>Promise.reject(m))}setBrowserUrl(e,r){const i=this.urlSerializer.serialize(e),o=Object.assign(Object.assign({},r.extras.state),this.generateNgRouterState(r.id,r.targetPageId));this.location.isCurrentPathEqualTo(i)||r.extras.replaceUrl?this.location.replaceState(i,"",o):this.location.go(i,"",o)}restoreHistory(e,r=!1){var i,o;if("computed"===this.canceledNavigationResolution){const s=this.currentPageId-e.targetPageId;"popstate"!==e.source&&"eager"!==this.urlUpdateStrategy&&this.currentUrlTree!==(null===(i=this.currentNavigation)||void 0===i?void 0:i.finalUrl)||0===s?this.currentUrlTree===(null===(o=this.currentNavigation)||void 0===o?void 0:o.finalUrl)&&0===s&&(this.resetState(e),this.browserUrlTree=e.currentUrlTree,this.resetUrlToCurrentUrlTree()):this.location.historyGo(s)}else"replace"===this.canceledNavigationResolution&&(r&&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,r){const i=new PR(e.id,this.serializeUrl(e.extractedUrl),r);this.triggerEvent(i),e.resolve(!1)}generateNgRouterState(e,r){return"computed"===this.canceledNavigationResolution?{navigationId:e,\u0275routerPageId:r}:{navigationId:e}}}return n.\u0275fac=function(e){g1()},n.\u0275prov=Fe({token:n,factory:n.\u0275fac}),n})();function SO(n){return"imperative"!==n}let Yy=(()=>{class n{constructor(e,r,i){this.router=e,this.route=r,this.locationStrategy=i,this.commands=null,this.href=null,this.onChanges=new gr,this.subscription=e.events.subscribe(o=>{o instanceof yg&&this.updateTargetUrlAndHref()})}set routerLink(e){this.commands=null!=e?Array.isArray(e)?e:[e]:null}ngOnChanges(e){this.updateTargetUrlAndHref(),this.onChanges.next(this)}ngOnDestroy(){this.subscription.unsubscribe()}onClick(e,r,i,o,s){if(0!==e||r||i||o||s||"string"==typeof this.target&&"_self"!=this.target||null===this.urlTree)return!0;const a={skipLocationChange:ef(this.skipLocationChange),replaceUrl:ef(this.replaceUrl),state:this.state};return this.router.navigateByUrl(this.urlTree,a),!1}updateTargetUrlAndHref(){this.href=null!==this.urlTree?this.locationStrategy.prepareExternalUrl(this.router.serializeUrl(this.urlTree)):null}get urlTree(){return null===this.commands?null:this.router.createUrlTree(this.commands,{relativeTo:void 0!==this.relativeTo?this.relativeTo:this.route,queryParams:this.queryParams,fragment:this.fragment,queryParamsHandling:this.queryParamsHandling,preserveFragment:ef(this.preserveFragment)})}}return n.\u0275fac=function(e){return new(e||n)(z(Qi),z(Jh),z(Kh))},n.\u0275dir=Te({type:n,selectors:[["a","routerLink",""],["area","routerLink",""]],hostVars:2,hostBindings:function(e,r){1&e&&Ge("click",function(o){return r.onClick(o.button,o.ctrlKey,o.shiftKey,o.altKey,o.metaKey)}),2&e&&At("target",r.target)("href",r.href,ua)},inputs:{target:"target",queryParams:"queryParams",fragment:"fragment",queryParamsHandling:"queryParamsHandling",preserveFragment:"preserveFragment",skipLocationChange:"skipLocationChange",replaceUrl:"replaceUrl",state:"state",relativeTo:"relativeTo",routerLink:"routerLink"},features:[Jr]}),n})();function ef(n){return""===n||!!n}class IO{}class TO{preload(t,e){return et(null)}}let AO=(()=>{class n{constructor(e,r,i,o){this.router=e,this.injector=i,this.preloadingStrategy=o,this.loader=new bO(i,r,l=>e.triggerEvent(new kR(l)),l=>e.triggerEvent(new LR(l)))}setUpPreloading(){this.subscription=this.router.events.pipe(Ku(e=>e instanceof yg),Zh(()=>this.preload())).subscribe(()=>{})}preload(){const e=this.injector.get(ga);return this.processRoutes(e,this.router.config)}ngOnDestroy(){this.subscription&&this.subscription.unsubscribe()}processRoutes(e,r){const i=[];for(const o of r)if(o.loadChildren&&!o.canLoad&&o._loadedConfig){const s=o._loadedConfig;i.push(this.processRoutes(s.module,s.routes))}else o.loadChildren&&!o.canLoad?i.push(this.preloadConfig(e,o)):o.children&&i.push(this.processRoutes(e,o.children));return xn(i).pipe(Ao(),nt(o=>{}))}preloadConfig(e,r){return this.preloadingStrategy.preload(r,()=>(r._loadedConfig?et(r._loadedConfig):this.loader.load(e.injector,r)).pipe(Bt(o=>(r._loadedConfig=o,this.processRoutes(o.module,o.routes)))))}}return n.\u0275fac=function(e){return new(e||n)(oe(Qi),oe(uA),oe(ur),oe(IO))},n.\u0275prov=Fe({token:n,factory:n.\u0275fac}),n})(),sx=(()=>{class n{constructor(e,r,i={}){this.router=e,this.viewportScroller=r,this.options=i,this.lastId=0,this.lastSource="imperative",this.restoredId=0,this.store={},i.scrollPositionRestoration=i.scrollPositionRestoration||"disabled",i.anchorScrolling=i.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 HM?(this.store[this.lastId]=this.viewportScroller.getScrollPosition(),this.lastSource=e.navigationTrigger,this.restoredId=e.restoredState?e.restoredState.navigationId:0):e instanceof yg&&(this.lastId=e.id,this.scheduleScrollEvent(e,this.router.parseUrl(e.urlAfterRedirects).fragment))})}consumeScrollEvents(){return this.router.events.subscribe(e=>{e instanceof NR&&(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,r){this.router.triggerEvent(new NR(e,"popstate"===this.lastSource?this.store[this.restoredId]:null,r))}ngOnDestroy(){this.routerEventsSubscription&&this.routerEventsSubscription.unsubscribe(),this.scrollEventsSubscription&&this.scrollEventsSubscription.unsubscribe()}}return n.\u0275fac=function(e){g1()},n.\u0275prov=Fe({token:n,factory:n.\u0275fac}),n})();const ec=new Be("ROUTER_CONFIGURATION"),RO=new Be("ROUTER_FORROOT_GUARD"),W4=[aM,{provide:WR,useClass:qR},{provide:Qi,useFactory:function Q4(n,t,e,r,i,o,s={},a,l){const c=new Qi(null,n,t,e,r,i,BR(o));return a&&(c.urlHandlingStrategy=a),l&&(c.routeReuseStrategy=l),function J4(n,t){n.errorHandler&&(t.errorHandler=n.errorHandler),n.malformedUriErrorHandler&&(t.malformedUriErrorHandler=n.malformedUriErrorHandler),n.onSameUrlNavigation&&(t.onSameUrlNavigation=n.onSameUrlNavigation),n.paramsInheritanceStrategy&&(t.paramsInheritanceStrategy=n.paramsInheritanceStrategy),n.relativeLinkResolution&&(t.relativeLinkResolution=n.relativeLinkResolution),n.urlUpdateStrategy&&(t.urlUpdateStrategy=n.urlUpdateStrategy),n.canceledNavigationResolution&&(t.canceledNavigationResolution=n.canceledNavigationResolution)}(s,c),s.enableTracing&&c.events.subscribe(f=>{var d,g;null===(d=console.group)||void 0===d||d.call(console,`Router Event: ${f.constructor.name}`),console.log(f.toString()),console.log(f),null===(g=console.groupEnd)||void 0===g||g.call(console)}),c},deps:[WR,Dg,aM,ur,uA,ix,ec,[class N4{},new go],[class P4{},new go]]},Dg,{provide:Jh,useFactory:function e6(n){return n.routerState.root},deps:[Qi]},AO,TO,class $4{preload(t,e){return e().pipe(Zu(()=>et(null)))}},{provide:ec,useValue:{enableTracing:!1}}];function q4(){return new pA("Router",Qi)}let K4=(()=>{class n{constructor(e,r){}static forRoot(e,r){return{ngModule:n,providers:[W4,OO(e),{provide:RO,useFactory:X4,deps:[[Qi,new go,new Mu]]},{provide:ec,useValue:r||{}},{provide:Kh,useFactory:Y4,deps:[qu,[new Eu(sM),new go],ec]},{provide:sx,useFactory:Z4,deps:[Qi,wj,ec]},{provide:IO,useExisting:r&&r.preloadingStrategy?r.preloadingStrategy:TO},{provide:pA,multi:!0,useFactory:q4},[ax,{provide:z1,multi:!0,useFactory:t6,deps:[ax]},{provide:PO,useFactory:n6,deps:[ax]},{provide:lA,multi:!0,useExisting:PO}]]}}static forChild(e){return{ngModule:n,providers:[OO(e)]}}}return n.\u0275fac=function(e){return new(e||n)(oe(RO,8),oe(Qi,8))},n.\u0275mod=Xr({type:n}),n.\u0275inj=mr({}),n})();function Z4(n,t,e){return e.scrollOffset&&t.setOffset(e.scrollOffset),new sx(n,t,e)}function Y4(n,t,e={}){return e.useHash?new LB(n,t):new PA(n,t)}function X4(n){return"guarded"}function OO(n){return[{provide:du,multi:!0,useValue:n},{provide:ix,multi:!0,useValue:n}]}let ax=(()=>{class n{constructor(e){this.injector=e,this.initNavigation=!1,this.destroyed=!1,this.resultOfPreactivationDone=new gr}appInitializer(){return this.injector.get(OB,Promise.resolve(null)).then(()=>{if(this.destroyed)return Promise.resolve(!0);let r=null;const i=new Promise(a=>r=a),o=this.injector.get(Qi),s=this.injector.get(ec);return"disabled"===s.initialNavigation?(o.setUpLocationChangeListener(),r(!0)):"enabled"===s.initialNavigation||"enabledBlocking"===s.initialNavigation?(o.hooks.afterPreactivation=()=>this.initNavigation?et(null):(this.initNavigation=!0,r(!0),this.resultOfPreactivationDone),o.initialNavigation()):r(!0),i})}bootstrapListener(e){const r=this.injector.get(ec),i=this.injector.get(AO),o=this.injector.get(sx),s=this.injector.get(Qi),a=this.injector.get(J1);e===a.components[0]&&(("enabledNonBlocking"===r.initialNavigation||void 0===r.initialNavigation)&&s.initialNavigation(),i.setUpPreloading(),o.init(),s.resetRootComponentType(a.componentTypes[0]),this.resultOfPreactivationDone.next(null),this.resultOfPreactivationDone.complete())}ngOnDestroy(){this.destroyed=!0}}return n.\u0275fac=function(e){return new(e||n)(oe(ur))},n.\u0275prov=Fe({token:n,factory:n.\u0275fac}),n})();function t6(n){return n.appInitializer.bind(n)}function n6(n){return n.bootstrapListener.bind(n)}const PO=new Be("Router Initializer");let tc={async:!1,baseUrl:null,breaks:!1,extensions:null,gfm:!0,headerIds:!0,headerPrefix:"",highlight:null,hooks:null,langPrefix:"language-",mangle:!0,pedantic:!1,renderer:null,sanitize:!1,sanitizer:null,silent:!1,smartypants:!1,tokenizer:null,walkTokens:null,xhtml:!1};const LO=/[&<>"']/,o6=new RegExp(LO.source,"g"),NO=/[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/,s6=new RegExp(NO.source,"g"),a6={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"},FO=n=>a6[n];function Ur(n,t){if(t){if(LO.test(n))return n.replace(o6,FO)}else if(NO.test(n))return n.replace(s6,FO);return n}const l6=/&(#(?:\d+)|(?:#x[0-9A-Fa-f]+)|(?:\w+));?/gi;function VO(n){return n.replace(l6,(t,e)=>"colon"===(e=e.toLowerCase())?":":"#"===e.charAt(0)?"x"===e.charAt(1)?String.fromCharCode(parseInt(e.substring(2),16)):String.fromCharCode(+e.substring(1)):"")}const u6=/(^|[^\[])\^/g;function en(n,t){n="string"==typeof n?n:n.source,t=t||"";const e={replace:(r,i)=>(i=(i=i.source||i).replace(u6,"$1"),n=n.replace(r,i),e),getRegex:()=>new RegExp(n,t)};return e}const c6=/[^\w:]/g,h6=/^$|^[a-z][a-z0-9+.-]*:|^[?#]/i;function BO(n,t,e){if(n){let r;try{r=decodeURIComponent(VO(e)).replace(c6,"").toLowerCase()}catch(i){return null}if(0===r.indexOf("javascript:")||0===r.indexOf("vbscript:")||0===r.indexOf("data:"))return null}t&&!h6.test(e)&&(e=function g6(n,t){Xy[" "+n]||(Xy[" "+n]=f6.test(n)?n+"/":Jy(n,"/",!0));const e=-1===(n=Xy[" "+n]).indexOf(":");return"//"===t.substring(0,2)?e?t:n.replace(d6,"$1")+t:"/"===t.charAt(0)?e?t:n.replace(p6,"$1")+t:n+t}(t,e));try{e=encodeURI(e).replace(/%25/g,"%")}catch(r){return null}return e}const Xy={},f6=/^[^:]+:\/*[^/]*$/,d6=/^([^:]+:)[\s\S]*$/,p6=/^([^:]+:\/*[^/]*)[\s\S]*$/,Qy={exec:function(){}};function UO(n,t){const r=n.replace(/\|/g,(o,s,a)=>{let l=!1,c=s;for(;--c>=0&&"\\"===a[c];)l=!l;return l?"|":" |"}).split(/ \|/);let i=0;if(r[0].trim()||r.shift(),r.length>0&&!r[r.length-1].trim()&&r.pop(),r.length>t)r.splice(t);else for(;r.length<t;)r.push("");for(;i<r.length;i++)r[i]=r[i].trim().replace(/\\\|/g,"|");return r}function Jy(n,t,e){const r=n.length;if(0===r)return"";let i=0;for(;i<r;){const o=n.charAt(r-i-1);if(o!==t||e){if(o===t||!e)break;i++}else i++}return n.slice(0,r-i)}function jO(n,t){if(t<1)return"";let e="";for(;t>1;)1&t&&(e+=n),t>>=1,n+=n;return e+n}function GO(n,t,e,r){const i=t.href,o=t.title?Ur(t.title):null,s=n[1].replace(/\\([\[\]])/g,"$1");if("!"!==n[0].charAt(0)){r.state.inLink=!0;const a={type:"link",raw:e,href:i,title:o,text:s,tokens:r.inlineTokens(s)};return r.state.inLink=!1,a}return{type:"image",raw:e,href:i,title:o,text:Ur(s)}}class lx{constructor(t){this.options=t||tc}space(t){const e=this.rules.block.newline.exec(t);if(e&&e[0].length>0)return{type:"space",raw:e[0]}}code(t){const e=this.rules.block.code.exec(t);if(e){const r=e[0].replace(/^ {1,4}/gm,"");return{type:"code",raw:e[0],codeBlockStyle:"indented",text:this.options.pedantic?r:Jy(r,"\n")}}}fences(t){const e=this.rules.block.fences.exec(t);if(e){const r=e[0],i=function _6(n,t){const e=n.match(/^(\s+)(?:```)/);if(null===e)return t;const r=e[1];return t.split("\n").map(i=>{const o=i.match(/^\s+/);if(null===o)return i;const[s]=o;return s.length>=r.length?i.slice(r.length):i}).join("\n")}(r,e[3]||"");return{type:"code",raw:r,lang:e[2]?e[2].trim().replace(this.rules.inline._escapes,"$1"):e[2],text:i}}}heading(t){const e=this.rules.block.heading.exec(t);if(e){let r=e[2].trim();if(/#$/.test(r)){const i=Jy(r,"#");(this.options.pedantic||!i||/ $/.test(i))&&(r=i.trim())}return{type:"heading",raw:e[0],depth:e[1].length,text:r,tokens:this.lexer.inline(r)}}}hr(t){const e=this.rules.block.hr.exec(t);if(e)return{type:"hr",raw:e[0]}}blockquote(t){const e=this.rules.block.blockquote.exec(t);if(e){const r=e[0].replace(/^ *>[ \t]?/gm,""),i=this.lexer.state.top;this.lexer.state.top=!0;const o=this.lexer.blockTokens(r);return this.lexer.state.top=i,{type:"blockquote",raw:e[0],tokens:o,text:r}}}list(t){let e=this.rules.block.list.exec(t);if(e){let r,i,o,s,a,l,c,f,d,g,v,m,y=e[1].trim();const w=y.length>1,x={type:"list",raw:"",ordered:w,start:w?+y.slice(0,-1):"",loose:!1,items:[]};y=w?`\\d{1,9}\\${y.slice(-1)}`:`\\${y}`,this.options.pedantic&&(y=w?y:"[*+-]");const E=new RegExp(`^( {0,3}${y})((?:[\t ][^\\n]*)?(?:\\n|$))`);for(;t&&(m=!1,(e=E.exec(t))&&!this.rules.block.hr.test(t));){if(r=e[0],t=t.substring(r.length),f=e[2].split("\n",1)[0].replace(/^\t+/,T=>" ".repeat(3*T.length)),d=t.split("\n",1)[0],this.options.pedantic?(s=2,v=f.trimLeft()):(s=e[2].search(/[^ ]/),s=s>4?1:s,v=f.slice(s),s+=e[1].length),l=!1,!f&&/^ *$/.test(d)&&(r+=d+"\n",t=t.substring(d.length+1),m=!0),!m){const T=new RegExp(`^ {0,${Math.min(3,s-1)}}(?:[*+-]|\\d{1,9}[.)])((?:[ \t][^\\n]*)?(?:\\n|$))`),O=new RegExp(`^ {0,${Math.min(3,s-1)}}((?:- *){3,}|(?:_ *){3,}|(?:\\* *){3,})(?:\\n+|$)`),N=new RegExp(`^ {0,${Math.min(3,s-1)}}(?:\`\`\`|~~~)`),j=new RegExp(`^ {0,${Math.min(3,s-1)}}#`);for(;t&&(g=t.split("\n",1)[0],d=g,this.options.pedantic&&(d=d.replace(/^ {1,4}(?=( {4})*[^ ])/g,"  ")),!(N.test(d)||j.test(d)||T.test(d)||O.test(t)));){if(d.search(/[^ ]/)>=s||!d.trim())v+="\n"+d.slice(s);else{if(l||f.search(/[^ ]/)>=4||N.test(f)||j.test(f)||O.test(f))break;v+="\n"+d}!l&&!d.trim()&&(l=!0),r+=g+"\n",t=t.substring(g.length+1),f=d.slice(s)}}x.loose||(c?x.loose=!0:/\n *\n *$/.test(r)&&(c=!0)),this.options.gfm&&(i=/^\[[ xX]\] /.exec(v),i&&(o="[ ] "!==i[0],v=v.replace(/^\[[ xX]\] +/,""))),x.items.push({type:"list_item",raw:r,task:!!i,checked:o,loose:!1,text:v}),x.raw+=r}x.items[x.items.length-1].raw=r.trimRight(),x.items[x.items.length-1].text=v.trimRight(),x.raw=x.raw.trimRight();const S=x.items.length;for(a=0;a<S;a++)if(this.lexer.state.top=!1,x.items[a].tokens=this.lexer.blockTokens(x.items[a].text,[]),!x.loose){const T=x.items[a].tokens.filter(N=>"space"===N.type),O=T.length>0&&T.some(N=>/\n.*\n/.test(N.raw));x.loose=O}if(x.loose)for(a=0;a<S;a++)x.items[a].loose=!0;return x}}html(t){const e=this.rules.block.html.exec(t);if(e){const r={type:"html",raw:e[0],pre:!this.options.sanitizer&&("pre"===e[1]||"script"===e[1]||"style"===e[1]),text:e[0]};if(this.options.sanitize){const i=this.options.sanitizer?this.options.sanitizer(e[0]):Ur(e[0]);r.type="paragraph",r.text=i,r.tokens=this.lexer.inline(i)}return r}}def(t){const e=this.rules.block.def.exec(t);if(e){const r=e[1].toLowerCase().replace(/\s+/g," "),i=e[2]?e[2].replace(/^<(.*)>$/,"$1").replace(this.rules.inline._escapes,"$1"):"",o=e[3]?e[3].substring(1,e[3].length-1).replace(this.rules.inline._escapes,"$1"):e[3];return{type:"def",tag:r,raw:e[0],href:i,title:o}}}table(t){const e=this.rules.block.table.exec(t);if(e){const r={type:"table",header:UO(e[1]).map(i=>({text:i})),align:e[2].replace(/^ *|\| *$/g,"").split(/ *\| */),rows:e[3]&&e[3].trim()?e[3].replace(/\n[ \t]*$/,"").split("\n"):[]};if(r.header.length===r.align.length){r.raw=e[0];let o,s,a,l,i=r.align.length;for(o=0;o<i;o++)r.align[o]=/^ *-+: *$/.test(r.align[o])?"right":/^ *:-+: *$/.test(r.align[o])?"center":/^ *:-+ *$/.test(r.align[o])?"left":null;for(i=r.rows.length,o=0;o<i;o++)r.rows[o]=UO(r.rows[o],r.header.length).map(c=>({text:c}));for(i=r.header.length,s=0;s<i;s++)r.header[s].tokens=this.lexer.inline(r.header[s].text);for(i=r.rows.length,s=0;s<i;s++)for(l=r.rows[s],a=0;a<l.length;a++)l[a].tokens=this.lexer.inline(l[a].text);return r}}}lheading(t){const e=this.rules.block.lheading.exec(t);if(e)return{type:"heading",raw:e[0],depth:"="===e[2].charAt(0)?1:2,text:e[1],tokens:this.lexer.inline(e[1])}}paragraph(t){const e=this.rules.block.paragraph.exec(t);if(e){const r="\n"===e[1].charAt(e[1].length-1)?e[1].slice(0,-1):e[1];return{type:"paragraph",raw:e[0],text:r,tokens:this.lexer.inline(r)}}}text(t){const e=this.rules.block.text.exec(t);if(e)return{type:"text",raw:e[0],text:e[0],tokens:this.lexer.inline(e[0])}}escape(t){const e=this.rules.inline.escape.exec(t);if(e)return{type:"escape",raw:e[0],text:Ur(e[1])}}tag(t){const e=this.rules.inline.tag.exec(t);if(e)return!this.lexer.state.inLink&&/^<a /i.test(e[0])?this.lexer.state.inLink=!0:this.lexer.state.inLink&&/^<\/a>/i.test(e[0])&&(this.lexer.state.inLink=!1),!this.lexer.state.inRawBlock&&/^<(pre|code|kbd|script)(\s|>)/i.test(e[0])?this.lexer.state.inRawBlock=!0:this.lexer.state.inRawBlock&&/^<\/(pre|code|kbd|script)(\s|>)/i.test(e[0])&&(this.lexer.state.inRawBlock=!1),{type:this.options.sanitize?"text":"html",raw:e[0],inLink:this.lexer.state.inLink,inRawBlock:this.lexer.state.inRawBlock,text:this.options.sanitize?this.options.sanitizer?this.options.sanitizer(e[0]):Ur(e[0]):e[0]}}link(t){const e=this.rules.inline.link.exec(t);if(e){const r=e[2].trim();if(!this.options.pedantic&&/^</.test(r)){if(!/>$/.test(r))return;const s=Jy(r.slice(0,-1),"\\");if((r.length-s.length)%2==0)return}else{const s=function v6(n,t){if(-1===n.indexOf(t[1]))return-1;const e=n.length;let r=0,i=0;for(;i<e;i++)if("\\"===n[i])i++;else if(n[i]===t[0])r++;else if(n[i]===t[1]&&(r--,r<0))return i;return-1}(e[2],"()");if(s>-1){const l=(0===e[0].indexOf("!")?5:4)+e[1].length+s;e[2]=e[2].substring(0,s),e[0]=e[0].substring(0,l).trim(),e[3]=""}}let i=e[2],o="";if(this.options.pedantic){const s=/^([^'"]*[^\s])\s+(['"])(.*)\2/.exec(i);s&&(i=s[1],o=s[3])}else o=e[3]?e[3].slice(1,-1):"";return i=i.trim(),/^</.test(i)&&(i=this.options.pedantic&&!/>$/.test(r)?i.slice(1):i.slice(1,-1)),GO(e,{href:i&&i.replace(this.rules.inline._escapes,"$1"),title:o&&o.replace(this.rules.inline._escapes,"$1")},e[0],this.lexer)}}reflink(t,e){let r;if((r=this.rules.inline.reflink.exec(t))||(r=this.rules.inline.nolink.exec(t))){let i=(r[2]||r[1]).replace(/\s+/g," ");if(i=e[i.toLowerCase()],!i){const o=r[0].charAt(0);return{type:"text",raw:o,text:o}}return GO(r,i,r[0],this.lexer)}}emStrong(t,e,r=""){let i=this.rules.inline.emStrong.lDelim.exec(t);if(!i||i[3]&&r.match(/[\p{L}\p{N}]/u))return;const o=i[1]||i[2]||"";if(!o||o&&(""===r||this.rules.inline.punctuation.exec(r))){const s=i[0].length-1;let a,l,c=s,f=0;const d="*"===i[0][0]?this.rules.inline.emStrong.rDelimAst:this.rules.inline.emStrong.rDelimUnd;for(d.lastIndex=0,e=e.slice(-1*t.length+s);null!=(i=d.exec(e));){if(a=i[1]||i[2]||i[3]||i[4]||i[5]||i[6],!a)continue;if(l=a.length,i[3]||i[4]){c+=l;continue}if((i[5]||i[6])&&s%3&&!((s+l)%3)){f+=l;continue}if(c-=l,c>0)continue;l=Math.min(l,l+c+f);const g=t.slice(0,s+i.index+(i[0].length-a.length)+l);if(Math.min(s,l)%2){const m=g.slice(1,-1);return{type:"em",raw:g,text:m,tokens:this.lexer.inlineTokens(m)}}const v=g.slice(2,-2);return{type:"strong",raw:g,text:v,tokens:this.lexer.inlineTokens(v)}}}}codespan(t){const e=this.rules.inline.code.exec(t);if(e){let r=e[2].replace(/\n/g," ");const i=/[^ ]/.test(r),o=/^ /.test(r)&&/ $/.test(r);return i&&o&&(r=r.substring(1,r.length-1)),r=Ur(r,!0),{type:"codespan",raw:e[0],text:r}}}br(t){const e=this.rules.inline.br.exec(t);if(e)return{type:"br",raw:e[0]}}del(t){const e=this.rules.inline.del.exec(t);if(e)return{type:"del",raw:e[0],text:e[2],tokens:this.lexer.inlineTokens(e[2])}}autolink(t,e){const r=this.rules.inline.autolink.exec(t);if(r){let i,o;return"@"===r[2]?(i=Ur(this.options.mangle?e(r[1]):r[1]),o="mailto:"+i):(i=Ur(r[1]),o=i),{type:"link",raw:r[0],text:i,href:o,tokens:[{type:"text",raw:i,text:i}]}}}url(t,e){let r;if(r=this.rules.inline.url.exec(t)){let i,o;if("@"===r[2])i=Ur(this.options.mangle?e(r[0]):r[0]),o="mailto:"+i;else{let s;do{s=r[0],r[0]=this.rules.inline._backpedal.exec(r[0])[0]}while(s!==r[0]);i=Ur(r[0]),o="www."===r[1]?"http://"+r[0]:r[0]}return{type:"link",raw:r[0],text:i,href:o,tokens:[{type:"text",raw:i,text:i}]}}}inlineText(t,e){const r=this.rules.inline.text.exec(t);if(r){let i;return i=this.lexer.state.inRawBlock?this.options.sanitize?this.options.sanitizer?this.options.sanitizer(r[0]):Ur(r[0]):r[0]:Ur(this.options.smartypants?e(r[0]):r[0]),{type:"text",raw:r[0],text:i}}}}const xe={newline:/^(?: *(?:\n|$))+/,code:/^( {4}[^\n]+(?:\n(?: *(?:\n|$))*)?)+/,fences:/^ {0,3}(`{3,}(?=[^`\n]*(?:\n|$))|~{3,})([^\n]*)(?:\n|$)(?:|([\s\S]*?)(?:\n|$))(?: {0,3}\1[~`]* *(?=\n|$)|$)/,hr:/^ {0,3}((?:-[\t ]*){3,}|(?:_[ \t]*){3,}|(?:\*[ \t]*){3,})(?:\n+|$)/,heading:/^ {0,3}(#{1,6})(?=\s|$)(.*)(?:\n+|$)/,blockquote:/^( {0,3}> ?(paragraph|[^\n]*)(?:\n|$))+/,list:/^( {0,3}bull)([ \t][^\n]+?)?(?:\n|$)/,html:"^ {0,3}(?:<(script|pre|style|textarea)[\\s>][\\s\\S]*?(?:</\\1>[^\\n]*\\n+|$)|comment[^\\n]*(\\n+|$)|<\\?[\\s\\S]*?(?:\\?>\\n*|$)|<![A-Z][\\s\\S]*?(?:>\\n*|$)|<!\\[CDATA\\[[\\s\\S]*?(?:\\]\\]>\\n*|$)|</?(tag)(?: +|\\n|/?>)[\\s\\S]*?(?:(?:\\n *)+\\n|$)|<(?!script|pre|style|textarea)([a-z][\\w-]*)(?:attribute)*? */?>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n *)+\\n|$)|</(?!script|pre|style|textarea)[a-z][\\w-]*\\s*>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n *)+\\n|$))",def:/^ {0,3}\[(label)\]: *(?:\n *)?([^<\s][^\s]*|<.*?>)(?:(?: +(?:\n *)?| *\n *)(title))? *(?:\n+|$)/,table:Qy,lheading:/^((?:.|\n(?!\n))+?)\n {0,3}(=+|-+) *(?:\n+|$)/,_paragraph:/^([^\n]+(?:\n(?!hr|heading|lheading|blockquote|fences|list|html|table| +\n)[^\n]+)*)/,text:/^[^\n]+/,_label:/(?!\s*\])(?:\\.|[^\[\]\\])+/,_title:/(?:"(?:\\"?|[^"\\])*"|'[^'\n]*(?:\n[^'\n]+)*\n?'|\([^()]*\))/};xe.def=en(xe.def).replace("label",xe._label).replace("title",xe._title).getRegex(),xe.bullet=/(?:[*+-]|\d{1,9}[.)])/,xe.listItemStart=en(/^( *)(bull) */).replace("bull",xe.bullet).getRegex(),xe.list=en(xe.list).replace(/bull/g,xe.bullet).replace("hr","\\n+(?=\\1?(?:(?:- *){3,}|(?:_ *){3,}|(?:\\* *){3,})(?:\\n+|$))").replace("def","\\n+(?="+xe.def.source+")").getRegex(),xe._tag="address|article|aside|base|basefont|blockquote|body|caption|center|col|colgroup|dd|details|dialog|dir|div|dl|dt|fieldset|figcaption|figure|footer|form|frame|frameset|h[1-6]|head|header|hr|html|iframe|legend|li|link|main|menu|menuitem|meta|nav|noframes|ol|optgroup|option|p|param|section|source|summary|table|tbody|td|tfoot|th|thead|title|tr|track|ul",xe._comment=/<!--(?!-?>)[\s\S]*?(?:-->|$)/,xe.html=en(xe.html,"i").replace("comment",xe._comment).replace("tag",xe._tag).replace("attribute",/ +[a-zA-Z:_][\w.:-]*(?: *= *"[^"\n]*"| *= *'[^'\n]*'| *= *[^\s"'=<>`]+)?/).getRegex(),xe.paragraph=en(xe._paragraph).replace("hr",xe.hr).replace("heading"," {0,3}#{1,6} ").replace("|lheading","").replace("|table","").replace("blockquote"," {0,3}>").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",xe._tag).getRegex(),xe.blockquote=en(xe.blockquote).replace("paragraph",xe.paragraph).getRegex(),xe.normal=Vi({},xe),xe.gfm=jf(Vi({},xe.normal),{table:"^ *([^\\n ].*\\|.*)\\n {0,3}(?:\\| *)?(:?-+:? *(?:\\| *:?-+:? *)*)(?:\\| *)?(?:\\n((?:(?! *\\n|hr|heading|blockquote|code|fences|list|html).*(?:\\n|$))*)\\n*|$)"}),xe.gfm.table=en(xe.gfm.table).replace("hr",xe.hr).replace("heading"," {0,3}#{1,6} ").replace("blockquote"," {0,3}>").replace("code"," {4}[^\\n]").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",xe._tag).getRegex(),xe.gfm.paragraph=en(xe._paragraph).replace("hr",xe.hr).replace("heading"," {0,3}#{1,6} ").replace("|lheading","").replace("table",xe.gfm.table).replace("blockquote"," {0,3}>").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",xe._tag).getRegex(),xe.pedantic=jf(Vi({},xe.normal),{html:en("^ *(?:comment *(?:\\n|\\s*$)|<(tag)[\\s\\S]+?</\\1> *(?:\\n{2,}|\\s*$)|<tag(?:\"[^\"]*\"|'[^']*'|\\s[^'\"/>\\s]*)*?/?> *(?:\\n{2,}|\\s*$))").replace("comment",xe._comment).replace(/tag/g,"(?!(?:a|em|strong|small|s|cite|q|dfn|abbr|data|time|code|var|samp|kbd|sub|sup|i|b|u|mark|ruby|rt|rp|bdi|bdo|span|br|wbr|ins|del|img)\\b)\\w+(?!:|[^\\w\\s@]*@)\\b").getRegex(),def:/^ *\[([^\]]+)\]: *<?([^\s>]+)>?(?: +(["(][^\n]+[")]))? *(?:\n+|$)/,heading:/^(#{1,6})(.*)(?:\n+|$)/,fences:Qy,lheading:/^(.+?)\n {0,3}(=+|-+) *(?:\n+|$)/,paragraph:en(xe.normal._paragraph).replace("hr",xe.hr).replace("heading"," *#{1,6} *[^\n]").replace("lheading",xe.lheading).replace("blockquote"," {0,3}>").replace("|fences","").replace("|list","").replace("|html","").getRegex()});const ce={escape:/^\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/,autolink:/^<(scheme:[^\s\x00-\x1f<>]*|email)>/,url:Qy,tag:"^comment|^</[a-zA-Z][\\w:-]*\\s*>|^<[a-zA-Z][\\w-]*(?:attribute)*?\\s*/?>|^<\\?[\\s\\S]*?\\?>|^<![a-zA-Z]+\\s[\\s\\S]*?>|^<!\\[CDATA\\[[\\s\\S]*?\\]\\]>",link:/^!?\[(label)\]\(\s*(href)(?:\s+(title))?\s*\)/,reflink:/^!?\[(label)\]\[(ref)\]/,nolink:/^!?\[(ref)\](?:\[\])?/,reflinkSearch:"reflink|nolink(?!\\()",emStrong:{lDelim:/^(?:\*+(?:([punct_])|[^\s*]))|^_+(?:([punct*])|([^\s_]))/,rDelimAst:/^(?:[^_*\\]|\\.)*?\_\_(?:[^_*\\]|\\.)*?\*(?:[^_*\\]|\\.)*?(?=\_\_)|(?:[^*\\]|\\.)+(?=[^*])|[punct_](\*+)(?=[\s]|$)|(?:[^punct*_\s\\]|\\.)(\*+)(?=[punct_\s]|$)|[punct_\s](\*+)(?=[^punct*_\s])|[\s](\*+)(?=[punct_])|[punct_](\*+)(?=[punct_])|(?:[^punct*_\s\\]|\\.)(\*+)(?=[^punct*_\s])/,rDelimUnd:/^(?:[^_*\\]|\\.)*?\*\*(?:[^_*\\]|\\.)*?\_(?:[^_*\\]|\\.)*?(?=\*\*)|(?:[^_\\]|\\.)+(?=[^_])|[punct*](\_+)(?=[\s]|$)|(?:[^punct*_\s\\]|\\.)(\_+)(?=[punct*\s]|$)|[punct*\s](\_+)(?=[^punct*_\s])|[\s](\_+)(?=[punct*])|[punct*](\_+)(?=[punct*])/},code:/^(`+)([^`]|[^`][\s\S]*?[^`])\1(?!`)/,br:/^( {2,}|\\)\n(?!\s*$)/,del:Qy,text:/^(`+|[^`])(?:(?= {2,}\n)|[\s\S]*?(?:(?=[\\<!\[`*_]|\b_|$)|[^ ](?= {2,}\n)))/,punctuation:/^([\spunctuation])/};function y6(n){return n.replace(/---/g,"\u2014").replace(/--/g,"\u2013").replace(/(^|[-\u2014/(\[{"\s])'/g,"$1\u2018").replace(/'/g,"\u2019").replace(/(^|[-\u2014/(\[{\u2018\s])"/g,"$1\u201c").replace(/"/g,"\u201d").replace(/\.{3}/g,"\u2026")}function HO(n){let e,r,t="";const i=n.length;for(e=0;e<i;e++)r=n.charCodeAt(e),Math.random()>.5&&(r="x"+r.toString(16)),t+="&#"+r+";";return t}ce._punctuation="!\"#$%&'()+\\-.,/:;<=>?@\\[\\]`^{|}~",ce.punctuation=en(ce.punctuation).replace(/punctuation/g,ce._punctuation).getRegex(),ce.blockSkip=/\[[^\]]*?\]\([^\)]*?\)|`[^`]*?`|<[^>]*?>/g,ce.escapedEmSt=/(?:^|[^\\])(?:\\\\)*\\[*_]/g,ce._comment=en(xe._comment).replace("(?:--\x3e|$)","--\x3e").getRegex(),ce.emStrong.lDelim=en(ce.emStrong.lDelim).replace(/punct/g,ce._punctuation).getRegex(),ce.emStrong.rDelimAst=en(ce.emStrong.rDelimAst,"g").replace(/punct/g,ce._punctuation).getRegex(),ce.emStrong.rDelimUnd=en(ce.emStrong.rDelimUnd,"g").replace(/punct/g,ce._punctuation).getRegex(),ce._escapes=/\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/g,ce._scheme=/[a-zA-Z][a-zA-Z0-9+.-]{1,31}/,ce._email=/[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+(@)[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)+(?![-_])/,ce.autolink=en(ce.autolink).replace("scheme",ce._scheme).replace("email",ce._email).getRegex(),ce._attribute=/\s+[a-zA-Z:_][\w.:-]*(?:\s*=\s*"[^"]*"|\s*=\s*'[^']*'|\s*=\s*[^\s"'=<>`]+)?/,ce.tag=en(ce.tag).replace("comment",ce._comment).replace("attribute",ce._attribute).getRegex(),ce._label=/(?:\[(?:\\.|[^\[\]\\])*\]|\\.|`[^`]*`|[^\[\]\\`])*?/,ce._href=/<(?:\\.|[^\n<>\\])+>|[^\s\x00-\x1f]*/,ce._title=/"(?:\\"?|[^"\\])*"|'(?:\\'?|[^'\\])*'|\((?:\\\)?|[^)\\])*\)/,ce.link=en(ce.link).replace("label",ce._label).replace("href",ce._href).replace("title",ce._title).getRegex(),ce.reflink=en(ce.reflink).replace("label",ce._label).replace("ref",xe._label).getRegex(),ce.nolink=en(ce.nolink).replace("ref",xe._label).getRegex(),ce.reflinkSearch=en(ce.reflinkSearch,"g").replace("reflink",ce.reflink).replace("nolink",ce.nolink).getRegex(),ce.normal=Vi({},ce),ce.pedantic=jf(Vi({},ce.normal),{strong:{start:/^__|\*\*/,middle:/^__(?=\S)([\s\S]*?\S)__(?!_)|^\*\*(?=\S)([\s\S]*?\S)\*\*(?!\*)/,endAst:/\*\*(?!\*)/g,endUnd:/__(?!_)/g},em:{start:/^_|\*/,middle:/^()\*(?=\S)([\s\S]*?\S)\*(?!\*)|^_(?=\S)([\s\S]*?\S)_(?!_)/,endAst:/\*(?!\*)/g,endUnd:/_(?!_)/g},link:en(/^!?\[(label)\]\((.*?)\)/).replace("label",ce._label).getRegex(),reflink:en(/^!?\[(label)\]\s*\[([^\]]*)\]/).replace("label",ce._label).getRegex()}),ce.gfm=jf(Vi({},ce.normal),{escape:en(ce.escape).replace("])","~|])").getRegex(),_extended_email:/[A-Za-z0-9._+-]+(@)[a-zA-Z0-9-_]+(?:\.[a-zA-Z0-9-_]*[a-zA-Z0-9])+(?![-_])/,url:/^((?:ftp|https?):\/\/|www\.)(?:[a-zA-Z0-9\-]+\.?)+[^\s<]*|^email/,_backpedal:/(?:[^?!.,:;*_'"~()&]+|\([^)]*\)|&(?![a-zA-Z0-9]+;$)|[?!.,:;*_'"~)]+(?!$))+/,del:/^(~~?)(?=[^\s~])([\s\S]*?[^\s~])\1(?=[^~]|$)/,text:/^([`~]+|[^`~])(?:(?= {2,}\n)|(?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)|[\s\S]*?(?:(?=[\\<!\[`*~_]|\b_|https?:\/\/|ftp:\/\/|www\.|$)|[^ ](?= {2,}\n)|[^a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-](?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)))/}),ce.gfm.url=en(ce.gfm.url,"i").replace("email",ce.gfm._extended_email).getRegex(),ce.breaks=jf(Vi({},ce.gfm),{br:en(ce.br).replace("{2,}","*").getRegex(),text:en(ce.gfm.text).replace("\\b_","\\b_| {2,}\\n").replace(/\{2,\}/g,"*").getRegex()});class vl{constructor(t){this.tokens=[],this.tokens.links=Object.create(null),this.options=t||tc,this.options.tokenizer=this.options.tokenizer||new lx,this.tokenizer=this.options.tokenizer,this.tokenizer.options=this.options,this.tokenizer.lexer=this,this.inlineQueue=[],this.state={inLink:!1,inRawBlock:!1,top:!0};const e={block:xe.normal,inline:ce.normal};this.options.pedantic?(e.block=xe.pedantic,e.inline=ce.pedantic):this.options.gfm&&(e.block=xe.gfm,e.inline=this.options.breaks?ce.breaks:ce.gfm),this.tokenizer.rules=e}static get rules(){return{block:xe,inline:ce}}static lex(t,e){return new vl(e).lex(t)}static lexInline(t,e){return new vl(e).inlineTokens(t)}lex(t){let e;for(t=t.replace(/\r\n|\r/g,"\n"),this.blockTokens(t,this.tokens);e=this.inlineQueue.shift();)this.inlineTokens(e.src,e.tokens);return this.tokens}blockTokens(t,e=[]){let r,i,o,s;for(t=this.options.pedantic?t.replace(/\t/g,"    ").replace(/^ +$/gm,""):t.replace(/^( *)(\t+)/gm,(a,l,c)=>l+"    ".repeat(c.length));t;)if(!(this.options.extensions&&this.options.extensions.block&&this.options.extensions.block.some(a=>!!(r=a.call({lexer:this},t,e))&&(t=t.substring(r.raw.length),e.push(r),!0)))){if(r=this.tokenizer.space(t)){t=t.substring(r.raw.length),1===r.raw.length&&e.length>0?e[e.length-1].raw+="\n":e.push(r);continue}if(r=this.tokenizer.code(t)){t=t.substring(r.raw.length),i=e[e.length-1],!i||"paragraph"!==i.type&&"text"!==i.type?e.push(r):(i.raw+="\n"+r.raw,i.text+="\n"+r.text,this.inlineQueue[this.inlineQueue.length-1].src=i.text);continue}if(r=this.tokenizer.fences(t)){t=t.substring(r.raw.length),e.push(r);continue}if(r=this.tokenizer.heading(t)){t=t.substring(r.raw.length),e.push(r);continue}if(r=this.tokenizer.hr(t)){t=t.substring(r.raw.length),e.push(r);continue}if(r=this.tokenizer.blockquote(t)){t=t.substring(r.raw.length),e.push(r);continue}if(r=this.tokenizer.list(t)){t=t.substring(r.raw.length),e.push(r);continue}if(r=this.tokenizer.html(t)){t=t.substring(r.raw.length),e.push(r);continue}if(r=this.tokenizer.def(t)){t=t.substring(r.raw.length),i=e[e.length-1],!i||"paragraph"!==i.type&&"text"!==i.type?this.tokens.links[r.tag]||(this.tokens.links[r.tag]={href:r.href,title:r.title}):(i.raw+="\n"+r.raw,i.text+="\n"+r.raw,this.inlineQueue[this.inlineQueue.length-1].src=i.text);continue}if(r=this.tokenizer.table(t)){t=t.substring(r.raw.length),e.push(r);continue}if(r=this.tokenizer.lheading(t)){t=t.substring(r.raw.length),e.push(r);continue}if(o=t,this.options.extensions&&this.options.extensions.startBlock){let a=1/0;const l=t.slice(1);let c;this.options.extensions.startBlock.forEach(function(f){c=f.call({lexer:this},l),"number"==typeof c&&c>=0&&(a=Math.min(a,c))}),a<1/0&&a>=0&&(o=t.substring(0,a+1))}if(this.state.top&&(r=this.tokenizer.paragraph(o))){i=e[e.length-1],s&&"paragraph"===i.type?(i.raw+="\n"+r.raw,i.text+="\n"+r.text,this.inlineQueue.pop(),this.inlineQueue[this.inlineQueue.length-1].src=i.text):e.push(r),s=o.length!==t.length,t=t.substring(r.raw.length);continue}if(r=this.tokenizer.text(t)){t=t.substring(r.raw.length),i=e[e.length-1],i&&"text"===i.type?(i.raw+="\n"+r.raw,i.text+="\n"+r.text,this.inlineQueue.pop(),this.inlineQueue[this.inlineQueue.length-1].src=i.text):e.push(r);continue}if(t){const a="Infinite loop on byte: "+t.charCodeAt(0);if(this.options.silent){console.error(a);break}throw new Error(a)}}return this.state.top=!0,e}inline(t,e=[]){return this.inlineQueue.push({src:t,tokens:e}),e}inlineTokens(t,e=[]){let r,i,o,a,l,c,s=t;if(this.tokens.links){const f=Object.keys(this.tokens.links);if(f.length>0)for(;null!=(a=this.tokenizer.rules.inline.reflinkSearch.exec(s));)f.includes(a[0].slice(a[0].lastIndexOf("[")+1,-1))&&(s=s.slice(0,a.index)+"["+jO("a",a[0].length-2)+"]"+s.slice(this.tokenizer.rules.inline.reflinkSearch.lastIndex))}for(;null!=(a=this.tokenizer.rules.inline.blockSkip.exec(s));)s=s.slice(0,a.index)+"["+jO("a",a[0].length-2)+"]"+s.slice(this.tokenizer.rules.inline.blockSkip.lastIndex);for(;null!=(a=this.tokenizer.rules.inline.escapedEmSt.exec(s));)s=s.slice(0,a.index+a[0].length-2)+"++"+s.slice(this.tokenizer.rules.inline.escapedEmSt.lastIndex),this.tokenizer.rules.inline.escapedEmSt.lastIndex--;for(;t;)if(l||(c=""),l=!1,!(this.options.extensions&&this.options.extensions.inline&&this.options.extensions.inline.some(f=>!!(r=f.call({lexer:this},t,e))&&(t=t.substring(r.raw.length),e.push(r),!0)))){if(r=this.tokenizer.escape(t)){t=t.substring(r.raw.length),e.push(r);continue}if(r=this.tokenizer.tag(t)){t=t.substring(r.raw.length),i=e[e.length-1],i&&"text"===r.type&&"text"===i.type?(i.raw+=r.raw,i.text+=r.text):e.push(r);continue}if(r=this.tokenizer.link(t)){t=t.substring(r.raw.length),e.push(r);continue}if(r=this.tokenizer.reflink(t,this.tokens.links)){t=t.substring(r.raw.length),i=e[e.length-1],i&&"text"===r.type&&"text"===i.type?(i.raw+=r.raw,i.text+=r.text):e.push(r);continue}if(r=this.tokenizer.emStrong(t,s,c)){t=t.substring(r.raw.length),e.push(r);continue}if(r=this.tokenizer.codespan(t)){t=t.substring(r.raw.length),e.push(r);continue}if(r=this.tokenizer.br(t)){t=t.substring(r.raw.length),e.push(r);continue}if(r=this.tokenizer.del(t)){t=t.substring(r.raw.length),e.push(r);continue}if(r=this.tokenizer.autolink(t,HO)){t=t.substring(r.raw.length),e.push(r);continue}if(!this.state.inLink&&(r=this.tokenizer.url(t,HO))){t=t.substring(r.raw.length),e.push(r);continue}if(o=t,this.options.extensions&&this.options.extensions.startInline){let f=1/0;const d=t.slice(1);let g;this.options.extensions.startInline.forEach(function(v){g=v.call({lexer:this},d),"number"==typeof g&&g>=0&&(f=Math.min(f,g))}),f<1/0&&f>=0&&(o=t.substring(0,f+1))}if(r=this.tokenizer.inlineText(o,y6)){t=t.substring(r.raw.length),"_"!==r.raw.slice(-1)&&(c=r.raw.slice(-1)),l=!0,i=e[e.length-1],i&&"text"===i.type?(i.raw+=r.raw,i.text+=r.text):e.push(r);continue}if(t){const f="Infinite loop on byte: "+t.charCodeAt(0);if(this.options.silent){console.error(f);break}throw new Error(f)}}return e}}class e0{constructor(t){this.options=t||tc}code(t,e,r){const i=(e||"").match(/\S*/)[0];if(this.options.highlight){const o=this.options.highlight(t,i);null!=o&&o!==t&&(r=!0,t=o)}return t=t.replace(/\n$/,"")+"\n",i?'<pre><code class="'+this.options.langPrefix+Ur(i)+'">'+(r?t:Ur(t,!0))+"</code></pre>\n":"<pre><code>"+(r?t:Ur(t,!0))+"</code></pre>\n"}blockquote(t){return`<blockquote>\n${t}</blockquote>\n`}html(t){return t}heading(t,e,r,i){return this.options.headerIds?`<h${e} id="${this.options.headerPrefix+i.slug(r)}">${t}</h${e}>\n`:`<h${e}>${t}</h${e}>\n`}hr(){return this.options.xhtml?"<hr/>\n":"<hr>\n"}list(t,e,r){const i=e?"ol":"ul";return"<"+i+(e&&1!==r?' start="'+r+'"':"")+">\n"+t+"</"+i+">\n"}listitem(t){return`<li>${t}</li>\n`}checkbox(t){return"<input "+(t?'checked="" ':"")+'disabled="" type="checkbox"'+(this.options.xhtml?" /":"")+"> "}paragraph(t){return`<p>${t}</p>\n`}table(t,e){return e&&(e=`<tbody>${e}</tbody>`),"<table>\n<thead>\n"+t+"</thead>\n"+e+"</table>\n"}tablerow(t){return`<tr>\n${t}</tr>\n`}tablecell(t,e){const r=e.header?"th":"td";return(e.align?`<${r} align="${e.align}">`:`<${r}>`)+t+`</${r}>\n`}strong(t){return`<strong>${t}</strong>`}em(t){return`<em>${t}</em>`}codespan(t){return`<code>${t}</code>`}br(){return this.options.xhtml?"<br/>":"<br>"}del(t){return`<del>${t}</del>`}link(t,e,r){if(null===(t=BO(this.options.sanitize,this.options.baseUrl,t)))return r;let i='<a href="'+t+'"';return e&&(i+=' title="'+e+'"'),i+=">"+r+"</a>",i}image(t,e,r){if(null===(t=BO(this.options.sanitize,this.options.baseUrl,t)))return r;let i=`<img src="${t}" alt="${r}"`;return e&&(i+=` title="${e}"`),i+=this.options.xhtml?"/>":">",i}text(t){return t}}class zO{strong(t){return t}em(t){return t}codespan(t){return t}del(t){return t}html(t){return t}text(t){return t}link(t,e,r){return""+r}image(t,e,r){return""+r}br(){return""}}class $O{constructor(){this.seen={}}serialize(t){return t.toLowerCase().trim().replace(/<[!\/a-z].*?>/gi,"").replace(/[\u2000-\u206F\u2E00-\u2E7F\\'!"#$%&()*+,./:;<=>?@[\]^`{|}~]/g,"").replace(/\s/g,"-")}getNextSafeSlug(t,e){let r=t,i=0;if(this.seen.hasOwnProperty(r)){i=this.seen[t];do{i++,r=t+"-"+i}while(this.seen.hasOwnProperty(r))}return e||(this.seen[t]=i,this.seen[r]=0),r}slug(t,e={}){const r=this.serialize(t);return this.getNextSafeSlug(r,e.dryrun)}}class ml{constructor(t){this.options=t||tc,this.options.renderer=this.options.renderer||new e0,this.renderer=this.options.renderer,this.renderer.options=this.options,this.textRenderer=new zO,this.slugger=new $O}static parse(t,e){return new ml(e).parse(t)}static parseInline(t,e){return new ml(e).parseInline(t)}parse(t,e=!0){let i,o,s,a,l,c,f,d,g,v,m,y,w,x,E,S,T,O,N,r="";const j=t.length;for(i=0;i<j;i++)if(v=t[i],this.options.extensions&&this.options.extensions.renderers&&this.options.extensions.renderers[v.type]&&(N=this.options.extensions.renderers[v.type].call({parser:this},v),!1!==N||!["space","hr","heading","code","table","blockquote","list","html","paragraph","text"].includes(v.type)))r+=N||"";else switch(v.type){case"space":continue;case"hr":r+=this.renderer.hr();continue;case"heading":r+=this.renderer.heading(this.parseInline(v.tokens),v.depth,VO(this.parseInline(v.tokens,this.textRenderer)),this.slugger);continue;case"code":r+=this.renderer.code(v.text,v.lang,v.escaped);continue;case"table":for(d="",f="",a=v.header.length,o=0;o<a;o++)f+=this.renderer.tablecell(this.parseInline(v.header[o].tokens),{header:!0,align:v.align[o]});for(d+=this.renderer.tablerow(f),g="",a=v.rows.length,o=0;o<a;o++){for(c=v.rows[o],f="",l=c.length,s=0;s<l;s++)f+=this.renderer.tablecell(this.parseInline(c[s].tokens),{header:!1,align:v.align[s]});g+=this.renderer.tablerow(f)}r+=this.renderer.table(d,g);continue;case"blockquote":g=this.parse(v.tokens),r+=this.renderer.blockquote(g);continue;case"list":for(m=v.ordered,y=v.start,w=v.loose,a=v.items.length,g="",o=0;o<a;o++)E=v.items[o],S=E.checked,T=E.task,x="",E.task&&(O=this.renderer.checkbox(S),w?E.tokens.length>0&&"paragraph"===E.tokens[0].type?(E.tokens[0].text=O+" "+E.tokens[0].text,E.tokens[0].tokens&&E.tokens[0].tokens.length>0&&"text"===E.tokens[0].tokens[0].type&&(E.tokens[0].tokens[0].text=O+" "+E.tokens[0].tokens[0].text)):E.tokens.unshift({type:"text",text:O}):x+=O),x+=this.parse(E.tokens,w),g+=this.renderer.listitem(x,T,S);r+=this.renderer.list(g,m,y);continue;case"html":r+=this.renderer.html(v.text);continue;case"paragraph":r+=this.renderer.paragraph(this.parseInline(v.tokens));continue;case"text":for(g=v.tokens?this.parseInline(v.tokens):v.text;i+1<j&&"text"===t[i+1].type;)v=t[++i],g+="\n"+(v.tokens?this.parseInline(v.tokens):v.text);r+=e?this.renderer.paragraph(g):g;continue;default:{const H='Token with "'+v.type+'" type was not found.';if(this.options.silent)return void console.error(H);throw new Error(H)}}return r}parseInline(t,e){e=e||this.renderer;let i,o,s,r="";const a=t.length;for(i=0;i<a;i++)if(o=t[i],this.options.extensions&&this.options.extensions.renderers&&this.options.extensions.renderers[o.type]&&(s=this.options.extensions.renderers[o.type].call({parser:this},o),!1!==s||!["escape","html","link","image","strong","em","codespan","br","del","text"].includes(o.type)))r+=s||"";else switch(o.type){case"escape":case"text":r+=e.text(o.text);break;case"html":r+=e.html(o.text);break;case"link":r+=e.link(o.href,o.title,this.parseInline(o.tokens,e));break;case"image":r+=e.image(o.href,o.title,o.text);break;case"strong":r+=e.strong(this.parseInline(o.tokens,e));break;case"em":r+=e.em(this.parseInline(o.tokens,e));break;case"codespan":r+=e.codespan(o.text);break;case"br":r+=e.br();break;case"del":r+=e.del(this.parseInline(o.tokens,e));break;default:{const l='Token with "'+o.type+'" type was not found.';if(this.options.silent)return void console.error(l);throw new Error(l)}}return r}}class t0{constructor(t){this.options=t||tc}preprocess(t){return t}postprocess(t){return t}}function WO(n,t){return(e,r,i)=>{"function"==typeof r&&(i=r,r=null);const o=Vi({},r),s=function C6(n,t,e){return r=>{if(r.message+="\nPlease report this to https://github.com/markedjs/marked.",n){const i="<p>An error occurred:</p><pre>"+Ur(r.message+"",!0)+"</pre>";return t?Promise.resolve(i):e?void e(null,i):i}if(t)return Promise.reject(r);if(!e)throw r;e(r)}}((r=Vi(Vi({},Ie.defaults),o)).silent,r.async,i);if(null==e)return s(new Error("marked(): input parameter is undefined or null"));if("string"!=typeof e)return s(new Error("marked(): input parameter is of type "+Object.prototype.toString.call(e)+", string expected"));if(function m6(n){n&&n.sanitize&&!n.silent&&console.warn("marked(): sanitize and sanitizer parameters are deprecated since version 0.7.0, should not be used and will be removed in the future. Read more here: https://marked.js.org/#/USING_ADVANCED.md#options")}(r),r.hooks&&(r.hooks.options=r),i){const a=r.highlight;let l;try{r.hooks&&(e=r.hooks.preprocess(e)),l=n(e,r)}catch(d){return s(d)}const c=function(d){let g;if(!d)try{r.walkTokens&&Ie.walkTokens(l,r.walkTokens),g=t(l,r),r.hooks&&(g=r.hooks.postprocess(g))}catch(v){d=v}return r.highlight=a,d?s(d):i(null,g)};if(!a||a.length<3||(delete r.highlight,!l.length))return c();let f=0;return Ie.walkTokens(l,function(d){"code"===d.type&&(f++,setTimeout(()=>{a(d.text,d.lang,function(g,v){if(g)return c(g);null!=v&&v!==d.text&&(d.text=v,d.escaped=!0),f--,0===f&&c()})},0))}),void(0===f&&c())}if(r.async)return Promise.resolve(r.hooks?r.hooks.preprocess(e):e).then(a=>n(a,r)).then(a=>r.walkTokens?Promise.all(Ie.walkTokens(a,r.walkTokens)).then(()=>a):a).then(a=>t(a,r)).then(a=>r.hooks?r.hooks.postprocess(a):a).catch(s);try{r.hooks&&(e=r.hooks.preprocess(e));const a=n(e,r);r.walkTokens&&Ie.walkTokens(a,r.walkTokens);let l=t(a,r);return r.hooks&&(l=r.hooks.postprocess(l)),l}catch(a){return s(a)}}}function Ie(n,t,e){return WO(vl.lex,ml.parse)(n,t,e)}MF(t0,"passThroughHooks",new Set(["preprocess","postprocess"])),Ie.options=Ie.setOptions=function(n){return function i6(n){tc=n}(Ie.defaults=Vi(Vi({},Ie.defaults),n)),Ie},Ie.getDefaults=function kO(){return{async:!1,baseUrl:null,breaks:!1,extensions:null,gfm:!0,headerIds:!0,headerPrefix:"",highlight:null,hooks:null,langPrefix:"language-",mangle:!0,pedantic:!1,renderer:null,sanitize:!1,sanitizer:null,silent:!1,smartypants:!1,tokenizer:null,walkTokens:null,xhtml:!1}},Ie.defaults=tc,Ie.use=function(...n){const t=Ie.defaults.extensions||{renderers:{},childTokens:{}};n.forEach(e=>{const r=Vi({},e);if(r.async=Ie.defaults.async||r.async||!1,e.extensions&&(e.extensions.forEach(i=>{if(!i.name)throw new Error("extension name required");if(i.renderer){const o=t.renderers[i.name];t.renderers[i.name]=o?function(...s){let a=i.renderer.apply(this,s);return!1===a&&(a=o.apply(this,s)),a}:i.renderer}if(i.tokenizer){if(!i.level||"block"!==i.level&&"inline"!==i.level)throw new Error("extension level must be 'block' or 'inline'");t[i.level]?t[i.level].unshift(i.tokenizer):t[i.level]=[i.tokenizer],i.start&&("block"===i.level?t.startBlock?t.startBlock.push(i.start):t.startBlock=[i.start]:"inline"===i.level&&(t.startInline?t.startInline.push(i.start):t.startInline=[i.start]))}i.childTokens&&(t.childTokens[i.name]=i.childTokens)}),r.extensions=t),e.renderer){const i=Ie.defaults.renderer||new e0;for(const o in e.renderer){const s=i[o];i[o]=(...a)=>{let l=e.renderer[o].apply(i,a);return!1===l&&(l=s.apply(i,a)),l}}r.renderer=i}if(e.tokenizer){const i=Ie.defaults.tokenizer||new lx;for(const o in e.tokenizer){const s=i[o];i[o]=(...a)=>{let l=e.tokenizer[o].apply(i,a);return!1===l&&(l=s.apply(i,a)),l}}r.tokenizer=i}if(e.hooks){const i=Ie.defaults.hooks||new t0;for(const o in e.hooks){const s=i[o];i[o]=t0.passThroughHooks.has(o)?a=>{if(Ie.defaults.async)return Promise.resolve(e.hooks[o].call(i,a)).then(c=>s.call(i,c));const l=e.hooks[o].call(i,a);return s.call(i,l)}:(...a)=>{let l=e.hooks[o].apply(i,a);return!1===l&&(l=s.apply(i,a)),l}}r.hooks=i}if(e.walkTokens){const i=Ie.defaults.walkTokens;r.walkTokens=function(o){let s=[];return s.push(e.walkTokens.call(this,o)),i&&(s=s.concat(i.call(this,o))),s}}Ie.setOptions(r)})},Ie.walkTokens=function(n,t){let e=[];for(const r of n)switch(e=e.concat(t.call(Ie,r)),r.type){case"table":for(const i of r.header)e=e.concat(Ie.walkTokens(i.tokens,t));for(const i of r.rows)for(const o of i)e=e.concat(Ie.walkTokens(o.tokens,t));break;case"list":e=e.concat(Ie.walkTokens(r.items,t));break;default:Ie.defaults.extensions&&Ie.defaults.extensions.childTokens&&Ie.defaults.extensions.childTokens[r.type]?Ie.defaults.extensions.childTokens[r.type].forEach(function(i){e=e.concat(Ie.walkTokens(r[i],t))}):r.tokens&&(e=e.concat(Ie.walkTokens(r.tokens,t)))}return e},Ie.parseInline=WO(vl.lexInline,ml.parseInline),Ie.Parser=ml,Ie.parser=ml.parse,Ie.Renderer=e0,Ie.TextRenderer=zO,Ie.Lexer=vl,Ie.lexer=vl.lex,Ie.Tokenizer=lx,Ie.Slugger=$O,Ie.Hooks=t0,Ie.parse=Ie;const w6=["*"];var Ag=(()=>(function(n){n.CommandLine="command-line",n.LineHighlight="line-highlight",n.LineNumbers="line-numbers"}(Ag||(Ag={})),Ag))();class qO{}const KO=new Be("SECURITY_CONTEXT");let Rg=(()=>{class n{constructor(e,r,i,o,s){this.platform=e,this.securityContext=r,this.http=i,this.sanitizer=s,this.initialMarkedOptions={renderer:new e0},this.options=o}get options(){return this._options}set options(e){this._options=Object.assign(Object.assign({},this.initialMarkedOptions),e)}get renderer(){return this.options.renderer}set renderer(e){this.options.renderer=e}compile(e,r=!1,i=!1,o=this.options){const s=this.trimIndentation(e),a=r?this.decodeHtml(s):s,c=Ie(i?this.renderEmoji(a):a,o);return this.sanitizer.sanitize(this.securityContext,c)||""}getSource(e){if(!this.http)throw new Error("[ngx-markdown] When using the `src` attribute you *have to* pass the `HttpClient` as a parameter of the `forRoot` method. See README for more information");return this.http.get(e,{responseType:"text"}).pipe(nt(r=>this.handleExtension(e,r)))}highlight(e){if(xy(this.platform)&&"undefined"!=typeof Prism){e||(e=document);const r=e.querySelectorAll('pre code:not([class*="language-"])');Array.prototype.forEach.call(r,i=>i.classList.add("language-none")),Prism.highlightAllUnder(e)}}renderKatex(e,r){if(!xy(this.platform))return e;if("undefined"==typeof katex||void 0===katex.renderToString)throw new Error("[ngx-markdown] When using the `katex` attribute you *have to* include KaTeX files to `angular.json` or use imports. See README for more information");return e.replace(/\$([^\s][^$]*?[^\s])\$/gm,(i,o)=>katex.renderToString(o,r))}decodeHtml(e){if(!xy(this.platform))return e;const r=document.createElement("textarea");return r.innerHTML=e,r.value}handleExtension(e,r){const i=e?e.split("?")[0].split(".").splice(-1).join():"";return"md"!==i?"```"+i+"\n"+r+"\n```":r}renderEmoji(e){if(!xy(this.platform))return e;if("undefined"==typeof joypixels||void 0===joypixels.shortnameToUnicode)throw new Error("[ngx-markdown] When using the `emoji` attribute you *have to* include Emoji-Toolkit files to `angular.json` or use imports. See README for more information");return joypixels.shortnameToUnicode(e)}trimIndentation(e){if(!e)return"";let r;return e.split("\n").map(i=>{let o=r;return i.length>0&&(o=isNaN(o)?i.search(/\S|$/):Math.min(i.search(/\S|$/),o)),isNaN(r)&&(r=o),o?i.substring(o):i}).join("\n")}}return n.\u0275fac=function(e){return new(e||n)(oe(uy),oe(KO),oe(Py,8),oe(qO,8),oe(RM))},n.\u0275prov=Fe({token:n,factory:n.\u0275fac}),n})(),tf=(()=>{class n{constructor(e,r){this.element=e,this.markdownService=r,this.error=new lt,this.load=new lt,this.ready=new lt,this._commandLine=!1,this._emoji=!1,this._katex=!1,this._lineHighlight=!1,this._lineNumbers=!1}get emoji(){return this._emoji}set emoji(e){this._emoji=this.coerceBooleanProperty(e)}get katex(){return this._katex}set katex(e){this._katex=this.coerceBooleanProperty(e)}get lineHighlight(){return this._lineHighlight}set lineHighlight(e){this._lineHighlight=this.coerceBooleanProperty(e)}get lineNumbers(){return this._lineNumbers}set lineNumbers(e){this._lineNumbers=this.coerceBooleanProperty(e)}get commandLine(){return this._commandLine}set commandLine(e){this._commandLine=this.coerceBooleanProperty(e)}ngOnChanges(){null==this.data?null==this.src||this.handleSrc():this.handleData()}ngAfterViewInit(){!this.data&&!this.src&&this.handleTransclusion()}render(e,r=!1){let i=this.markdownService.compile(e,r,this.emoji);i=this.katex?this.markdownService.renderKatex(i,this.katexOptions):i,this.element.nativeElement.innerHTML=i,this.handlePlugins(),this.markdownService.highlight(this.element.nativeElement),this.ready.emit()}coerceBooleanProperty(e){return null!=e&&"false"!=`${String(e)}`}handleData(){this.render(this.data)}handleSrc(){this.markdownService.getSource(this.src).subscribe(e=>{this.render(e),this.load.emit(e)},e=>this.error.emit(e))}handleTransclusion(){this.render(this.element.nativeElement.innerHTML,!0)}handlePlugins(){this.commandLine&&(this.setPluginClass(this.element.nativeElement,Ag.CommandLine),this.setPluginOptions(this.element.nativeElement,{dataFilterOutput:this.filterOutput,dataHost:this.host,dataPrompt:this.prompt,dataOutput:this.output,dataUser:this.user})),this.lineHighlight&&this.setPluginOptions(this.element.nativeElement,{dataLine:this.line,dataLineOffset:this.lineOffset}),this.lineNumbers&&(this.setPluginClass(this.element.nativeElement,Ag.LineNumbers),this.setPluginOptions(this.element.nativeElement,{dataStart:this.start}))}setPluginClass(e,r){const i=e.querySelectorAll("pre");for(let o=0;o<i.length;o++){const s=r instanceof Array?r:[r];i.item(o).classList.add(...s)}}setPluginOptions(e,r){const i=e.querySelectorAll("pre");for(let o=0;o<i.length;o++)Object.keys(r).forEach(s=>{const a=r[s];if(a){const l=this.toLispCase(s);i.item(o).setAttribute(l,a.toString())}})}toLispCase(e){const r=e.match(/([A-Z])/g);if(!r)return e;let i=e.toString();for(let o=0,s=r.length;o<s;o++)i=i.replace(new RegExp(r[o]),"-"+r[o].toLowerCase());return"-"===i.slice(0,1)&&(i=i.slice(1)),i}}return n.\u0275fac=function(e){return new(e||n)(z(Er),z(Rg))},n.\u0275cmp=An({type:n,selectors:[["markdown"],["","markdown",""]],inputs:{data:"data",src:"src",emoji:"emoji",katex:"katex",katexOptions:"katexOptions",lineHighlight:"lineHighlight",line:"line",lineOffset:"lineOffset",lineNumbers:"lineNumbers",start:"start",commandLine:"commandLine",filterOutput:"filterOutput",host:"host",prompt:"prompt",output:"output",user:"user"},outputs:{error:"error",load:"load",ready:"ready"},features:[Jr],ngContentSelectors:w6,decls:1,vars:0,template:function(e,r){1&e&&(function oI(n){const t=G()[16][6];if(!t.projection){const r=t.projection=Ya(n?n.length:1,null),i=r.slice();let o=t.child;for(;null!==o;){const s=n?ZF(o,n):0;null!==s&&(i[s]?i[s].projectionNext=o:r[s]=o,i[s]=o),o=o.next}}}(),function sI(n,t=0,e){const r=G(),i=pt(),o=ca(i,20+n,16,null,e||null);null===o.projection&&(o.projection=t),Kc(),64!=(64&o.flags)&&function oa(n,t,e){Pm(t[11],0,t,e,Am(n,e,t),Jd(e.parent||t[6],e,t))}(i,r,o)}(0))},encapsulation:2}),n})(),ZO=(()=>{class n{static forRoot(e){return{ngModule:n,providers:[Rg,e&&e.loader||[],e&&e.markedOptions||[],{provide:KO,useValue:e&&null!=e.sanitize?e.sanitize:Ht.HTML}]}}static forChild(){return{ngModule:n}}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=Xr({type:n}),n.\u0275inj=mr({}),n})();var ux=Vt(489),nf=Vt.n(ux);const YO="/api.mintze/index.php",XO={type:"selectionListComment",mandatory:!0,key:"institution",keyComment:"institution_kommentar",title:"Name Ihrer Institution",placeholder:"Bitte w\xe4hlen Sie Ihre Institution.",info:"Bitte w\xe4hlen Sie aus der folgenden Liste Ihre Institution aus:",options:[{value:"Bense GmbH Laborbau",label:"Bense GmbH Laborbau"},{value:"BLAB Lebenswissenschaftliches Sch\xfclerlabor",label:"BLAB Lebenswissenschaftliches Sch\xfclerlabor"},{value:"Chemie Nord, Arbeitgeberverband f\xfcr die Chemische Industrie in Norddeutschland e.V.",label:"Chemie Nord, Arbeitgeberverband f\xfcr die Chemische Industrie in Norddeutschland e.V."},{value:"Europ\xe4isches Brotmuseum e.V. Eberg\xf6tzen",label:"Europ\xe4isches Brotmuseum e.V. Eberg\xf6tzen"},{value:"Friedlandhilfe",label:"Friedlandhilfe"},{value:"Georg-August-Universit\xe4t G\xf6ttingen",label:"Georg-August-Universit\xe4t G\xf6ttingen"},{value:"Grenzdurchgangslager Friedland",label:"Grenzdurchgangslager Friedland"},{value:"Grenzlandmuseum Eichsfeld",label:"Grenzlandmuseum Eichsfeld"},{value:"HAWK Hochschule f\xfcr angewandte Wissenschaft und Kunst Hildesheim/Holzminden/G\xf6ttingen, Fakult\xe4t f\xfcr Ingenieurwissenschaften",label:"HAWK Hochschule f\xfcr angewandte Wissenschaft und Kunst Hildesheim/Holzminden/G\xf6ttingen, Fakult\xe4t f\xfcr Ingenieurwissenschaften"},{value:"Heinz-Sielmann-Stiftung, Gut Herbigshagen",label:"Heinz-Sielmann-Stiftung, Gut Herbigshagen"},{value:"Hochschule f\xfcr angewandte Wissenschaft und Kunst Hildesheim/Holzminden/G\xf6ttingen, Studiengang Green Building",label:"Hochschule f\xfcr angewandte Wissenschaft und Kunst Hildesheim/Holzminden/G\xf6ttingen, Studiengang Green Building"},{value:"Industrie- und Handelskammer Hannover, Gesch\xe4ftsstelle G\xf6ttingen",label:"Industrie- und Handelskammer Hannover, Gesch\xe4ftsstelle G\xf6ttingen"},{value:"Innovationsnetzwerk Holzminden-H\xf6xter",label:"Innovationsnetzwerk Holzminden-H\xf6xter"},{value:"Institut f\xfcr Nanophotonik G\xf6ttingen",label:"Institut f\xfcr Nanophotonik G\xf6ttingen"},{value:"Internationaler Schulbauernhof Hardegsen",label:"Internationaler Schulbauernhof Hardegsen"},{value:"Kulturstiftung Kornhaus / PS.Speicher Einbeck",label:"Kulturstiftung Kornhaus / PS.Speicher Einbeck"},{value:"KWS SAAT SE & Co. KGaA",label:"KWS SAAT SE & Co. KGaA"},{value:"Landkreis Goslar",label:"Landkreis Goslar"},{value:"Landkreis G\xf6ttingen",label:"Landkreis G\xf6ttingen"},{value:"Landkreis Holzminden",label:"Landkreis Holzminden"},{value:"Landkreis Northeim",label:"Landkreis Northeim"},{value:"LEB L\xe4ndliche Erwachsenenbildung in Niedersachsen e.V. (LEB), FriedlandGarten",label:"LEB L\xe4ndliche Erwachsenenbildung in Niedersachsen e.V. (LEB), FriedlandGarten"},{value:"Measurement Valley e.V.",label:"Measurement Valley e.V."},{value:"Museum Friedland",label:"Museum Friedland"},{value:"Naturpark M\xfcnden e.V.",label:"Naturpark M\xfcnden e.V."},{value:"Novelis Deutschland GmbH",label:"Novelis Deutschland GmbH"},{value:"Otto K\xfcnnecke GmbH",label:"Otto K\xfcnnecke GmbH"},{value:"Ottobock SE & Co. KGaA",label:"Ottobock SE & Co. KGaA"},{value:"PFH G\xf6ttingen",label:"PFH G\xf6ttingen"},{value:"Phywe",label:"Phywe"},{value:"Piller Power Systems Osterode",label:"Piller Power Systems Osterode"},{value:"Robotikfreunde G\xf6ttingen e.V.",label:"Robotikfreunde G\xf6ttingen e.V."},{value:"Sartorius AG",label:"Sartorius AG"},{value:"Spielimpulse Viola Harlan, Gleichen",label:"Spielimpulse Viola Harlan, Gleichen"},{value:"Stadt Duderstadt",label:"Stadt Duderstadt"},{value:"Stadt G\xf6ttingen",label:"Stadt G\xf6ttingen"},{value:"Stiftung NiedersachsenMetall",label:"Stiftung NiedersachsenMetall"},{value:"S\xfcdniedersachsenInnovationsCampus (SNIC)",label:"S\xfcdniedersachsenInnovationsCampus (SNIC)"},{value:"VDI Bezirksverein Hannover e.V.",label:"VDI Bezirksverein Hannover e.V."},{value:"VHS G\xf6ttingen Osterode gGmbH",label:"VHS G\xf6ttingen Osterode gGmbH"},{value:"Waldp\xe4dagogikzentrum G\xf6ttingen - RUZ Reinhausen",label:"Waldp\xe4dagogikzentrum G\xf6ttingen - RUZ Reinhausen"},{value:"WRG Wirtschaftsf\xf6rderung Region G\xf6ttingen GmbH",label:"WRG Wirtschaftsf\xf6rderung Region G\xf6ttingen GmbH"},{value:"XLAB G\xf6ttingen - G\xf6ttinger Experimentallabor f\xfcr junge Leute",label:"XLAB G\xf6ttingen - G\xf6ttinger Experimentallabor f\xfcr junge Leute"},{value:"Zentrale Wissenschaftliche Einrichtung f\xfcr Lehrer*innenbildung",label:"Zentrale Wissenschaftliche Einrichtung f\xfcr Lehrer*innenbildung"},{value:"Zukunftszentrum Holzminden-H\xf6xter",label:"Zukunftszentrum Holzminden-H\xf6xter"},{value:"Weitere",label:"Weitere (bitte eingeben)",comment:!0}]},S6={id:12,key:"mintze",title:"Formular 1: Au\xdferschulische Lernorte und MINT:ZE Partner",blocks:[{type:"info",title:"Sehr geehrte Damen und Herren,",info:"\n    hier sind Sie aufgefordert Ihren au\xdferschulischen Lernort allgemein vorzustellen.\n\n    Die mit einem Sternchen versehenen Unterpunkte sind zur Absenden des Formulars notwendig und damit f\xfcr m\xf6glichst genaue Angaben zu den Lernorten und ihren Angeboten vorgesehen.\n  "},{type:"divider"},{type:"info",title:"",info:"# Ihre Institution"},XO,{type:"info",title:"",info:"# Ansprechperson"},{type:"textShort",mandatory:!0,showCounter:!1,key:"asp_name",title:"Name",value:"",placeholder:"Name"},{type:"textShort",mandatory:!0,showCounter:!1,key:"asp_email",title:"E-Mail",value:"",placeholder:"E-Mail"},{type:"textShort",mandatory:!1,showCounter:!1,key:"asp_telefon",title:"Telefon",value:"",placeholder:"Telefon"},{type:"info",title:"",info:"# Kurzbeschreibung Ihrer Institution"},{type:"selectionSwitchComment",mandatory:!0,key:"ins_orgform",keyComment:"ins_orgform_kommentar",title:"Organisationsform",info:"Bitte w\xe4hlen Sie die Form Ihrer Institution:",value:"",options:[{value:"Erlebnis- / Lehrgarten",label:"Erlebnis- / Lehrgarten"},{value:"Experimentallabor",label:"Experimentallabor"},{value:"Hochschule",label:"Hochschule"},{value:"Kammer / Verband",label:"Kammer / Verband"},{value:"Kommune",label:"Kommune"},{value:"Museum",label:"Museum"},{value:"Natur-Erlebniszentrum",label:"Natur-Erlebniszentrum"},{value:"Netzwerk",label:"Netzwerk"},{value:"Schulbauernhof",label:"Schulbauernhof"},{value:"Schule",label:"Schule"},{value:"Stiftung",label:"Stiftung"},{value:"Umweltbildungszentrum",label:"Umweltbildungszentrum"},{value:"Unternehmen",label:"Unternehmen"},{value:"Verein",label:"Verein"},{value:"Wissensforum",label:"Wissensforum"},{value:"Zukunftszentrum",label:"Zukunftszentrum"},{value:"Sonstiges",label:"Sonstiges",comment:!0}]},{type:"checkbox",mandatory:!0,key:"ins_bereich",keyComment:"ins_bereich_kommentar",title:"T\xe4tigkeitsbereiche",info:"Bitte w\xe4hlen Sie den oder die T\xe4tigkeitsbereiche Ihrer Institution:",options:[{value:"Digitalisierung / Informatik",label:"Digitalisierung / Informatik"},{value:"Energie",label:"Energie"},{value:"Gesundheit",label:"Gesundheit"},{value:"Klimaschutz",label:"Klimaschutz"},{value:"Mathematik",label:"Mathematik"},{value:"Mobilit\xe4t",label:"Mobilit\xe4t"},{value:"Nachhaltigkeit",label:"Nachhaltigkeit"},{value:"Naturschutz",label:"Naturschutz"},{value:"Naturwissenschaften",label:"Naturwissenschaften"},{value:"Robotik",label:"Robotik"},{value:"Technik",label:"Technik"},{value:"Umweltbildung",label:"Umweltbildung"},{value:"Sonstiges",label:"Sonstiges",comment:!0}],value:[],placeholder:""},{type:"textLong",mandatory:!0,showCounter:!0,key:"ins_ziele",title:"Ziele",info:"Bitte **maximal 500 Zeichen**.",value:"",placeholder:"Die Ziele Ihrer Institution"},{type:"checkbox",mandatory:!0,key:"ins_zielgrp",keyComment:"ins_zielgrp_kommentar",title:"Zielgruppen",info:"Bitte w\xe4hlen Sie die Zielgruppen Ihrer Institution:",options:[{value:"Einzelpersonen",label:"Einzelpersonen"},{value:"Familien",label:"Familien"},{value:"Gruppen",label:"Gruppen"},{value:"Lehrkr\xe4fte",label:"Lehrkr\xe4fte"},{value:"p\xe4d. Fachkr\xe4fte",label:"p\xe4d. Fachkr\xe4fte"},{value:"Schulklassen",label:"Schulklassen"},{value:"Sonstiges",label:"Sonstiges",comment:!0}],value:[],placeholder:""},{type:"textLong",mandatory:!0,showCounter:!1,key:"ins_erfahrung",title:"Erfahrung im Bildungsbereich",value:"",placeholder:"Die Erfahrungen Ihrer Institution im Bildungsbereich"},{type:"textShort",mandatory:!0,showCounter:!1,key:"hashtag",title:"Hashtag",info:"F\xfcr die Lernortplattform ben\xf6tigen wir einen Hashtag als Alleinstellungsmerkmal jeder Institution.",value:"#",placeholder:"Hashtag"},{type:"imageUpload",mandatory:!0,showCounter:!1,key:"logo",title:"Logo",info:"\nBitte laden Sie hier ein Logo Ihrer Institution hoch:\n\n- als **PNG-, Vektor-** oder **JPG-Datei**\n- in m\xf6glichst **hoher Aufl\xf6sung**",value:"",placeholder:""},{type:"info",title:"",info:"# R\xe4umlichkeiten"},{type:"selectionSwitch",mandatory:!0,key:"barrierefrei",keyComment:"raum_kommentar",title:"Ist Ihr Lernort barrierefrei zug\xe4nglich?",info:"",value:"",options:[{value:"Ja",label:"Ja"},{value:"Nein",label:"Nein"}]},{type:"selectionSwitchComment",mandatory:!0,key:"raum",keyComment:"raum_kommentar",title:"K\xf6nnen Sie im Rahmen von Netzwerkveranstaltungen R\xe4umlichkeiten zur Verf\xfcgung stellen?",info:"Wenn ja, welche (Personenzahl, Rahmenbedingungen)?",value:"",options:[{value:"Ja",label:"Ja (bitte Details angeben)",comment:!0},{value:"Nein",label:"Nein"}]},{type:"info",title:"",info:"# Bilder aus Ihrer Institution / aus Ihren Angeboten"},{type:"imageUpload",mandatory:!1,showCounter:!1,key:"bilder",title:"Bilder",info:"\nBitte laden Sie hier Bilder aus Ihrer Institution oder Ihren Angeboten\n\n- als **PNG-** oder **JPG-Datei**\n- in m\xf6glichst **hoher Aufl\xf6sung**\n\nhoch und geben Sie ggf. im nachfolgenden Textfeld eine kurze Beschreibung dazu an:",value:"",placeholder:""},{type:"textLong",mandatory:!1,showCounter:!0,key:"bilder_kommentar",title:"Bildunterschrift",info:"Was ist auf dem Bild bzw. den Bildern zu sehen? Bitte **maximal 250 Zeichen pro Bild**.",value:"",placeholder:"Bildunterschrift"},{type:"textShort",mandatory:!1,showCounter:!1,key:"link",title:"Link zu Ihrer Homepage",info:"Wenn Sie auf Ihrer Homepage bereits einen MINT oder MINT:ZE Bereich vorhalten, freuen wir uns \xfcber einen Direktlink!",value:"",placeholder:"Link"},{type:"divider"},{type:"checkbox",mandatory:!0,key:"datenschutz",title:"Einwilligung zu Erhebung und Nutzung personenbezogener Daten",info:"",options:[{value:"Datenschutz",mandatory:!0,info:"\n### Notwendige Datenverarbeitung (erforderlich)\n\nDie S\xfcdniedersachsenStiftung verarbeitet die Daten Ihrer Eingabe zum Zweck der F\xf6rderung, Verbreitung und Bewerbung Ihrer Angebote. Diese werden auf Grundlage gesetzlicher Berechtigungen erhoben, gespeichert und verarbeitet. Ihre Daten k\xf6nnen zum dargestellten Zweck an die anderen Verbundpartner (Universit\xe4t G\xf6ttingen, Bildungsregion S\xfcdniedersachsen e.V., Robotikfreunde G\xf6ttingen e.V., MyGatekeeper gUG (haftungsbeschr\xe4nkt)) weitergeleitet werden. Die Einverst\xe4ndniserkl\xe4rung k\xf6nnen Sie jederzeit widerrufen, gleichzeitig k\xf6nnen Sie jederzeit die Berichtigung, L\xf6schung und Sperrung einzelner personenbezogener Daten verlangen. Bitte setzen Sie sich daf\xfcr mit Susanne Martini (Tel. 0551/270713-55 oder per E-Mail [martini@bildungsregion-suedniedersachsen.de](mailto:martini@bildungsregion-suedniedersachsen.de)) in Verbindung.\n\nMit Ihrer R\xfcckmeldung willigen Sie ein, dass Ihre Daten in der oben aufgef\xfchrten Art und Weise und zu den genannten Zwecken erhoben, gespeichert und verarbeitet werden."}],value:[],placeholder:""}]},I6={id:13,key:"mintze",title:"Formular 2: Vorstellung eines Angebots",blocks:[{type:"info",title:"Sehr geehrte Damen und Herren,",info:"\n    mit Hilfe dieses Formulars k\xf6nnen Sie ein oder mehrere Bildungsangebote absenden. F\xfcllen Sie hierf\xfcr das Formular mehrfach aus.\n\n    Die mit einem Sternchen versehenen Unterpunkte sind zur Absenden des Formulars notwendig und damit f\xfcr m\xf6glichst genaue Angaben zu den Lernorten und ihren Angeboten vorgesehen.\n    "},{type:"divider"},{type:"info",title:"",info:"# Ihre Institution"},XO,{type:"info",title:"",info:"# Ansprechperson"},{type:"textShort",mandatory:!1,showCounter:!1,key:"asp_name",title:"Name",value:"",placeholder:"Name"},{type:"textShort",mandatory:!1,showCounter:!1,key:"asp_email",title:"E-Mail",value:"",placeholder:"E-Mail"},{type:"textShort",mandatory:!1,showCounter:!1,key:"asp_telefon",title:"Telefon",value:"",placeholder:"Telefon"},{type:"info",title:"",info:"# Kurzbeschreibung Ihres Angebots"},{type:"textShort",mandatory:!1,showCounter:!1,key:"titel",title:"Titel/Name",value:"",placeholder:"Titel bzw. Name des Angebots"},{type:"checkbox",mandatory:!0,key:"thema",keyComment:"thema_kommentar",title:"Thematischer Schwerpunkt",info:"Bitte w\xe4hlen Sie den oder die thematischen Schwerpunkte Ihres Angebots:",options:[{value:"Digitalisierung / Informatik",label:"Digitalisierung / Informatik"},{value:"Energie",label:"Energie"},{value:"Gesundheit",label:"Gesundheit"},{value:"Klimaschutz",label:"Klimaschutz"},{value:"Mathematik",label:"Mathematik"},{value:"Mobilit\xe4t",label:"Mobilit\xe4t"},{value:"Nachhaltigkeit",label:"Nachhaltigkeit"},{value:"Naturschutz",label:"Naturschutz"},{value:"Naturwissenschaften",label:"Naturwissenschaften"},{value:"Robotik",label:"Robotik"},{value:"Technik",label:"Technik"},{value:"Umweltbildung",label:"Umweltbildung"},{value:"Sonstiges",label:"Sonstiges",comment:!0}],value:[],placeholder:""},{type:"selectionList",mandatory:!0,key:"thema_mint",title:"Zuordnung zu MINT-Bereichen",info:"Zu welchem MINT-Bereich passt Ihr Angebot am besten?",placeholder:"Bitte w\xe4hlen Sie einen MINT-Bereich.",options:[{value:"Biologie",label:"Biologie"},{value:"Chemie",label:"Chemie"},{value:"Informatik",label:"Informatik"},{value:"Mathematik",label:"Mathematik"},{value:"Naturwissenschaften",label:"Naturwissenschaften"},{value:"Physik",label:"Physik"},{value:"Technik",label:"Technik"},{value:"F\xe4cher\xfcbergreifend",label:"F\xe4cher\xfcbergreifend"}],value:""},{type:"checkbox",mandatory:!0,key:"format",keyComment:"format_kommentar",title:"Format(e)",info:"Bitte w\xe4hlen Sie das Format Ihres Angebots:",options:[{value:"Workshop",label:"Workshop"},{value:"Ferienwoche/Betreuungsangebote",label:"Ferienwoche/Betreuungsangebote"},{value:"Vortrag",label:"Vortrag"},{value:"Ausstellung",label:"Ausstellung"},{value:"F\xfchrung",label:"F\xfchrung"},{value:"Arbeitsgemeinschaft",label:"Arbeitsgemeinschaft"},{value:"Sch\xfclerlabor",label:"Sch\xfclerlabor"},{value:"OER (MOOCs etc.)",label:"OER (MOOCs etc.)"},{value:"Praktikum",label:"Praktikum"},{value:"Zukunftstag f\xfcr M\xe4dchen und Jungen",label:"Zukunftstag f\xfcr M\xe4dchen und Jungen"},{value:"Sonstiges",label:"Sonstiges",comment:!0}],value:[],placeholder:""},{type:"checkbox",mandatory:!0,key:"zielgrp",keyComment:"zielgrp_kommentar",title:"Zielgruppen",info:"Bitte w\xe4hlen Sie die Zielgruppen Ihres Angebots:",options:[{value:"Einzelpersonen",label:"Einzelpersonen"},{value:"Familien",label:"Familien"},{value:"Gruppen",label:"Gruppen"},{value:"Kinder und Jugendliche",label:"Kinder und Jugendliche"},{value:"Schulklassen",label:"Schulklassen"},{value:"Nur M\xe4dchen",label:"Nur M\xe4dchen"},{value:"Lehrkr\xe4fte",label:"Lehrkr\xe4fte"},{value:"P\xe4d. Fachkr\xe4fte",label:"P\xe4d. Fachkr\xe4fte"},{value:"Sonstiges",label:"Sonstiges",comment:!0}],value:[],placeholder:""},{type:"textShort",mandatory:!0,showCounter:!1,key:"tn_alter",title:"Alter",value:"",placeholder:"An welche Altersgruppe richtet sich Ihr Angebot? (Angabe in Jahren)"},{type:"selectionSwitchComment",mandatory:!1,showCounter:!1,key:"inklusiv",keyComment:"inklusiv_kommentar",title:"Handelt es sich um ein inklusives Angebot?",info:"Wenn ja, auf welchen F\xf6rderbedarf wird eingegangen?",value:"",options:[{value:"Ja",label:"Ja (Details angeben)",comment:!0},{value:"Nein",label:"Nein"}]},{type:"selectionSwitchComment",mandatory:!1,showCounter:!1,key:"bilingual",keyComment:"bilingual_kommentar",title:"Handelt es sich um ein bilinguales Angebot?",info:"Wenn ja, welche Sprache(n)?",value:"",options:[{value:"Ja",label:"Ja (Details angeben)",comment:!0},{value:"Nein",label:"Nein"}]},{type:"selectionSwitchComment",mandatory:!1,showCounter:!1,key:"vorwissen",keyComment:"vorwissen_kommentar",title:"Ist Vorwissen f\xfcr die Teilnahme am Angebot erforderlich?",value:"",options:[{value:"Ja",label:"Ja (Details angeben)",comment:!0},{value:"Nein",label:"Nein"}]},{type:"info",title:"",info:"# Veranstaltungsort"},{type:"selectionSwitchComment",mandatory:!0,key:"ort",keyComment:"ort_adresse",title:"Wo wird das Angebot umgesetzt?",info:"",placeholder:"",options:[{value:"Pr\xe4senz",label:"Pr\xe4senz (Adresse angeben)",comment:!0},{value:"Hybrid",label:"Hybrid (Adresse angeben)",comment:!0},{value:"Online",label:"Online"}],value:""},{type:"selectionList",mandatory:!0,key:"region",title:"In welcher Region findet das Angebot statt?",info:"",placeholder:"W\xe4hlen Sie die zutreffende Region",options:[{value:"Landkreis Goslar",label:"Landkreis Goslar"},{value:"Landkreis G\xf6ttingen",label:"Landkreis G\xf6ttingen"},{value:"Landkreis Holzminden",label:"Landkreis Holzminden"},{value:"Landkreis Northeim",label:"Landkreis Northeim"},{value:"Stadt Duderstadt",label:"Stadt Duderstadt"},{value:"Stadt G\xf6ttingen",label:"Stadt G\xf6ttingen"},{value:"\xdcberregional/Online",label:"\xdcberregional/Online"}],value:""},{type:"textLong",mandatory:!1,showCounter:!1,key:"termine",title:"Geplante Veranstaltungen mit Termin und Zielgruppe",value:"",placeholder:"z. B. 01.01.2023: Wie gut ist unser Wasser? (f\xfcr Schulklassen)"},{type:"checkbox",mandatory:!0,key:"regel",title:"Regelm\xe4\xdfigkeit des Angebots",info:"Wie oft bieten Sie das Angebot an (z. B. zu festen Zeiten, auf Nachfrage)?",options:[{value:"Auf Anfrage",label:"Auf Anfrage"},{value:"W\xf6chentlich",label:"W\xf6chentlich"},{value:"Monatlich",label:"Monatlich"},{value:"Sonstiges",label:"Sonstiges",comment:!0}],value:[],placeholder:""},{type:"selectionSwitchComment",mandatory:!0,key:"umfang",title:"Zeitlicher Umfang des Angebots",info:"",options:[{value:"< 1 h",label:"< 1 h"},{value:"1 - 2 h",label:"1 - 2 h"},{value:"2 - 3 h",label:"2 - 3 h"},{value:"Ganztag",label:"Ganztag"},{value:"Ohne Einschr\xe4nkung",label:"Ohne Einschr\xe4nkung"},{value:"Sonstiges",label:"Sonstiges",comment:!0}],value:[],placeholder:""},{type:"info",title:"",info:"# Kosten und Material\n\nFalls Kosten f\xfcr Ihr Angebot anfallen oder Material seitens der Teilnehmenden notwendig ist:\n"},{type:"textLong",mandatory:!1,showCounter:!1,key:"material",title:"Materialauflistung",info:"",value:"",placeholder:"Welches Material ist f\xfcr die Teilnahme erforderlich?"},{type:"textShort",mandatory:!1,showCounter:!1,key:"kosten",title:"Teilnahmekosten pro Person",info:"",value:"",placeholder:"Welche Kosten sind pro Person mit einer Teilnahme verbunden?"},{type:"textShort",mandatory:!1,showCounter:!1,key:"kosten_gruppe",title:"Teilnahmekosten pro Gruppe",info:"",value:"",placeholder:"Welche Kosten sind pro Gruppe mit einer Teilnahme verbunden?"},{type:"selectionSwitchComment",mandatory:!1,key:"ermaessigung",keyComment:"ermaessigung_kommentar",title:"Gibt es Erm\xe4\xdfigungen und wenn ja, welche?",info:"",value:"",options:[{value:"Ja",label:"Ja (Details angeben)",comment:!0},{value:"Nein",label:"Nein"}]},{type:"info",title:"",info:"# Gruppengr\xf6\xdfen / Begleitpersonen"},{type:"selectionSwitchComment",mandatory:!0,key:"tn_begrenzt",keyComment:"tn_begrenzt_kommentar",title:"Ist die Zahl der Teilnehmenden begrenzt?",info:"",value:"",options:[{value:"Ja",label:"Ja (max. Personen angeben)",comment:!0},{value:"Nein",label:"Nein"}]},{type:"selectionSwitchComment",mandatory:!0,key:"begleitung",keyComment:"begleitung_kommentar",title:"Sind Begleitpersonen n\xf6tig?",info:"",value:"",options:[{value:"Ja",label:"Ja (bitte genauer spezifizieren)",comment:!0},{value:"Nein",label:"Nein"}]},{type:"divider"},{type:"checkbox",mandatory:!0,key:"datenschutz",title:"Einwilligung zu Erhebung und Nutzung personenbezogener Daten",info:"",options:[{value:"Datenschutz",mandatory:!0,info:"\n### Notwendige Datenverarbeitung (erforderlich)\n\nDie S\xfcdniedersachsenStiftung verarbeitet die Daten Ihrer Eingabe zum Zweck der F\xf6rderung, Verbreitung und Bewerbung Ihrer Angebote. Diese werden auf Grundlage gesetzlicher Berechtigungen erhoben, gespeichert und verarbeitet. Ihre Daten k\xf6nnen zum dargestellten Zweck an die anderen Verbundpartner (Universit\xe4t G\xf6ttingen, Bildungsregion S\xfcdniedersachsen e.V., Robotikfreunde G\xf6ttingen e.V., MyGatekeeper gUG (haftungsbeschr\xe4nkt)) weitergeleitet werden. Die Einverst\xe4ndniserkl\xe4rung k\xf6nnen Sie jederzeit widerrufen, gleichzeitig k\xf6nnen Sie jederzeit die Berichtigung, L\xf6schung und Sperrung einzelner personenbezogener Daten verlangen. Bitte setzen Sie sich daf\xfcr mit Susanne Martini (Tel. 0551/270713-55 oder per E-Mail [martini@bildungsregion-suedniedersachsen.de](mailto:martini@bildungsregion-suedniedersachsen.de)) in Verbindung.\n\nMit Ihrer R\xfcckmeldung willigen Sie ein, dass Ihre Daten in der oben aufgef\xfchrten Art und Weise und zu den genannten Zwecken erhoben, gespeichert und verarbeitet werden."}],value:[],placeholder:""}]};let Og=(()=>{class n{constructor(){this.class="btn-primary",this.disabled=!1}ngOnInit(){}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275cmp=An({type:n,selectors:[["ui-button"]],inputs:{title:"title",class:"class",disabled:"disabled"},decls:1,vars:3,consts:[[3,"innerText","title","disabled"]],template:function(e,r){1&e&&xt(0,"button",0),2&e&&W("innerText",r.title)("title",r.title)("disabled",r.disabled?"disabled":null)},styles:["button[_ngcontent-%COMP%]{border:0;padding:12px 48px;margin:24px;font-size:var(--font-size);font-weight:500;transition:.5s;cursor:pointer}button[_ngcontent-%COMP%]:hover{transition:.5s;box-shadow:#00000059 0 5px 15px;transform:scale(1.1)}button[_ngcontent-%COMP%]:disabled{opacity:.8;cursor:not-allowed}button[_ngcontent-%COMP%]:disabled:hover{transition:.25s;transform:none;box-shadow:none}.btn-primary[_nghost-%COMP%] > button[_ngcontent-%COMP%]{background-color:var(--highlight-color);color:var(--selection-color-front)}.btn-default[_nghost-%COMP%] > button[_ngcontent-%COMP%]{background-color:#ddd;color:#000}.btn-select[_nghost-%COMP%] > button[_ngcontent-%COMP%]{display:block;width:100%;max-width:400px;margin:24px auto}"]}),n})();function n0(n,t){return new ae(e=>{const r=n.length;if(0===r)return void e.complete();const i=new Array(r);let o=0,s=0;for(let a=0;a<r;a++){const l=xn(n[a]);let c=!1;e.add(l.subscribe({next:f=>{c||(c=!0,s++),i[a]=f},error:f=>e.error(f),complete:()=>{o++,(o===r||!c)&&(s===r&&e.next(t?t.reduce((f,d,g)=>(f[d]=i[g],f),{}):i),e.complete())}}))}})}let QO=(()=>{class n{constructor(e,r){this._renderer=e,this._elementRef=r,this.onChange=i=>{},this.onTouched=()=>{}}setProperty(e,r){this._renderer.setProperty(this._elementRef.nativeElement,e,r)}registerOnTouched(e){this.onTouched=e}registerOnChange(e){this.onChange=e}setDisabledState(e){this.setProperty("disabled",e)}}return n.\u0275fac=function(e){return new(e||n)(z(pa),z(Er))},n.\u0275dir=Te({type:n}),n})(),nc=(()=>{class n extends QO{}return n.\u0275fac=function(){let t;return function(r){return(t||(t=Jt(n)))(r||n)}}(),n.\u0275dir=Te({type:n,features:[u]}),n})();const Rs=new Be("NgValueAccessor"),R6={provide:Rs,useExisting:Wt(()=>rc),multi:!0},P6=new Be("CompositionEventMode");let rc=(()=>{class n extends QO{constructor(e,r,i){super(e,r),this._compositionMode=i,this._composing=!1,null==this._compositionMode&&(this._compositionMode=!function O6(){const n=Ss()?Ss().getUserAgent():"";return/android (\d+)/.test(n.toLowerCase())}())}writeValue(e){this.setProperty("value",null==e?"":e)}_handleInput(e){(!this._compositionMode||this._compositionMode&&!this._composing)&&this.onChange(e)}_compositionStart(){this._composing=!0}_compositionEnd(e){this._composing=!1,this._compositionMode&&this.onChange(e)}}return n.\u0275fac=function(e){return new(e||n)(z(pa),z(Er),z(P6,8))},n.\u0275dir=Te({type:n,selectors:[["input","formControlName","",3,"type","checkbox"],["textarea","formControlName",""],["input","formControl","",3,"type","checkbox"],["textarea","formControl",""],["input","ngModel","",3,"type","checkbox"],["textarea","ngModel",""],["","ngDefaultControl",""]],hostBindings:function(e,r){1&e&&Ge("input",function(o){return r._handleInput(o.target.value)})("blur",function(){return r.onTouched()})("compositionstart",function(){return r._compositionStart()})("compositionend",function(o){return r._compositionEnd(o.target.value)})},features:[dn([R6]),u]}),n})();const jr=new Be("NgValidators"),yl=new Be("NgAsyncValidators");function uP(n){return null!=n}function cP(n){const t=Yp(n)?xn(n):n;return m1(t),t}function hP(n){let t={};return n.forEach(e=>{t=null!=e?Object.assign(Object.assign({},t),e):t}),0===Object.keys(t).length?null:t}function fP(n,t){return t.map(e=>e(n))}function dP(n){return n.map(t=>function L6(n){return!n.validate}(t)?t:e=>t.validate(e))}function cx(n){return null!=n?function pP(n){if(!n)return null;const t=n.filter(uP);return 0==t.length?null:function(e){return hP(fP(e,t))}}(dP(n)):null}function hx(n){return null!=n?function gP(n){if(!n)return null;const t=n.filter(uP);return 0==t.length?null:function(e){return function T6(...n){if(1===n.length){const t=n[0];if(gn(t))return n0(t,null);if(jl(t)&&Object.getPrototypeOf(t)===Object.prototype){const e=Object.keys(t);return n0(e.map(r=>t[r]),e)}}if("function"==typeof n[n.length-1]){const t=n.pop();return n0(n=1===n.length&&gn(n[0])?n[0]:n,null).pipe(nt(e=>t(...e)))}return n0(n,null)}(fP(e,t).map(cP)).pipe(nt(hP))}}(dP(n)):null}function vP(n,t){return null===n?[t]:Array.isArray(n)?[...n,t]:[n,t]}function fx(n){return n?Array.isArray(n)?n:[n]:[]}function o0(n,t){return Array.isArray(n)?n.includes(t):n===t}function yP(n,t){const e=fx(t);return fx(n).forEach(i=>{o0(e,i)||e.push(i)}),e}function CP(n,t){return fx(t).filter(e=>!o0(n,e))}class wP{constructor(){this._rawValidators=[],this._rawAsyncValidators=[],this._onDestroyCallbacks=[]}get value(){return this.control?this.control.value:null}get valid(){return this.control?this.control.valid:null}get invalid(){return this.control?this.control.invalid:null}get pending(){return this.control?this.control.pending:null}get disabled(){return this.control?this.control.disabled:null}get enabled(){return this.control?this.control.enabled:null}get errors(){return this.control?this.control.errors:null}get pristine(){return this.control?this.control.pristine:null}get dirty(){return this.control?this.control.dirty:null}get touched(){return this.control?this.control.touched:null}get status(){return this.control?this.control.status:null}get untouched(){return this.control?this.control.untouched:null}get statusChanges(){return this.control?this.control.statusChanges:null}get valueChanges(){return this.control?this.control.valueChanges:null}get path(){return null}_setValidators(t){this._rawValidators=t||[],this._composedValidatorFn=cx(this._rawValidators)}_setAsyncValidators(t){this._rawAsyncValidators=t||[],this._composedAsyncValidatorFn=hx(this._rawAsyncValidators)}get validator(){return this._composedValidatorFn||null}get asyncValidator(){return this._composedAsyncValidatorFn||null}_registerOnDestroy(t){this._onDestroyCallbacks.push(t)}_invokeOnDestroyCallbacks(){this._onDestroyCallbacks.forEach(t=>t()),this._onDestroyCallbacks=[]}reset(t){this.control&&this.control.reset(t)}hasError(t,e){return!!this.control&&this.control.hasError(t,e)}getError(t,e){return this.control?this.control.getError(t,e):null}}class Cl extends wP{constructor(){super(...arguments),this._parent=null,this.name=null,this.valueAccessor=null}}class li extends wP{get formDirective(){return null}get path(){return null}}let ic=(()=>{class n extends class EP{constructor(t){this._cd=t}is(t){var e,r,i;return"submitted"===t?!!(null===(e=this._cd)||void 0===e?void 0:e.submitted):!!(null===(i=null===(r=this._cd)||void 0===r?void 0:r.control)||void 0===i?void 0:i[t])}}{constructor(e){super(e)}}return n.\u0275fac=function(e){return new(e||n)(z(Cl,2))},n.\u0275dir=Te({type:n,selectors:[["","formControlName",""],["","ngModel",""],["","formControl",""]],hostVars:14,hostBindings:function(e,r){2&e&&Y_("ng-untouched",r.is("untouched"))("ng-touched",r.is("touched"))("ng-pristine",r.is("pristine"))("ng-dirty",r.is("dirty"))("ng-valid",r.is("valid"))("ng-invalid",r.is("invalid"))("ng-pending",r.is("pending"))},features:[u]}),n})();function Pg(n,t){(function gx(n,t){const e=function mP(n){return n._rawValidators}(n);null!==t.validator?n.setValidators(vP(e,t.validator)):"function"==typeof e&&n.setValidators([e]);const r=function _P(n){return n._rawAsyncValidators}(n);null!==t.asyncValidator?n.setAsyncValidators(vP(r,t.asyncValidator)):"function"==typeof r&&n.setAsyncValidators([r]);const i=()=>n.updateValueAndValidity();u0(t._rawValidators,i),u0(t._rawAsyncValidators,i)})(n,t),t.valueAccessor.writeValue(n.value),function z6(n,t){t.valueAccessor.registerOnChange(e=>{n._pendingValue=e,n._pendingChange=!0,n._pendingDirty=!0,"change"===n.updateOn&&xP(n,t)})}(n,t),function W6(n,t){const e=(r,i)=>{t.valueAccessor.writeValue(r),i&&t.viewToModelUpdate(r)};n.registerOnChange(e),t._registerOnDestroy(()=>{n._unregisterOnChange(e)})}(n,t),function $6(n,t){t.valueAccessor.registerOnTouched(()=>{n._pendingTouched=!0,"blur"===n.updateOn&&n._pendingChange&&xP(n,t),"submit"!==n.updateOn&&n.markAsTouched()})}(n,t),function H6(n,t){if(t.valueAccessor.setDisabledState){const e=r=>{t.valueAccessor.setDisabledState(r)};n.registerOnDisabledChange(e),t._registerOnDestroy(()=>{n._unregisterOnDisabledChange(e)})}}(n,t)}function u0(n,t){n.forEach(e=>{e.registerOnValidatorChange&&e.registerOnValidatorChange(t)})}function xP(n,t){n._pendingDirty&&n.markAsDirty(),n.setValue(n._pendingValue,{emitModelToViewChange:!1}),t.viewToModelUpdate(n._pendingValue),n._pendingChange=!1}function _x(n,t){const e=n.indexOf(t);e>-1&&n.splice(e,1)}const kg="VALID",h0="INVALID",rf="PENDING",Lg="DISABLED";function Cx(n){return(f0(n)?n.validators:n)||null}function IP(n){return Array.isArray(n)?cx(n):n||null}function wx(n,t){return(f0(t)?t.asyncValidators:n)||null}function TP(n){return Array.isArray(n)?hx(n):n||null}function f0(n){return null!=n&&!Array.isArray(n)&&"object"==typeof n}const Ex=n=>n instanceof xx;function RP(n){return(n=>n instanceof kP)(n)?n.value:n.getRawValue()}function OP(n,t){const e=Ex(n),r=n.controls;if(!(e?Object.keys(r):r).length)throw new st(1e3,"");if(!r[t])throw new st(1001,"")}function PP(n,t){Ex(n),n._forEachChild((r,i)=>{if(void 0===t[i])throw new st(1002,"")})}class Mx{constructor(t,e){this._pendingDirty=!1,this._hasOwnPendingAsyncValidator=!1,this._pendingTouched=!1,this._onCollectionChange=()=>{},this._parent=null,this.pristine=!0,this.touched=!1,this._onDisabledChange=[],this._rawValidators=t,this._rawAsyncValidators=e,this._composedValidatorFn=IP(this._rawValidators),this._composedAsyncValidatorFn=TP(this._rawAsyncValidators)}get validator(){return this._composedValidatorFn}set validator(t){this._rawValidators=this._composedValidatorFn=t}get asyncValidator(){return this._composedAsyncValidatorFn}set asyncValidator(t){this._rawAsyncValidators=this._composedAsyncValidatorFn=t}get parent(){return this._parent}get valid(){return this.status===kg}get invalid(){return this.status===h0}get pending(){return this.status==rf}get disabled(){return this.status===Lg}get enabled(){return this.status!==Lg}get dirty(){return!this.pristine}get untouched(){return!this.touched}get updateOn(){return this._updateOn?this._updateOn:this.parent?this.parent.updateOn:"change"}setValidators(t){this._rawValidators=t,this._composedValidatorFn=IP(t)}setAsyncValidators(t){this._rawAsyncValidators=t,this._composedAsyncValidatorFn=TP(t)}addValidators(t){this.setValidators(yP(t,this._rawValidators))}addAsyncValidators(t){this.setAsyncValidators(yP(t,this._rawAsyncValidators))}removeValidators(t){this.setValidators(CP(t,this._rawValidators))}removeAsyncValidators(t){this.setAsyncValidators(CP(t,this._rawAsyncValidators))}hasValidator(t){return o0(this._rawValidators,t)}hasAsyncValidator(t){return o0(this._rawAsyncValidators,t)}clearValidators(){this.validator=null}clearAsyncValidators(){this.asyncValidator=null}markAsTouched(t={}){this.touched=!0,this._parent&&!t.onlySelf&&this._parent.markAsTouched(t)}markAllAsTouched(){this.markAsTouched({onlySelf:!0}),this._forEachChild(t=>t.markAllAsTouched())}markAsUntouched(t={}){this.touched=!1,this._pendingTouched=!1,this._forEachChild(e=>{e.markAsUntouched({onlySelf:!0})}),this._parent&&!t.onlySelf&&this._parent._updateTouched(t)}markAsDirty(t={}){this.pristine=!1,this._parent&&!t.onlySelf&&this._parent.markAsDirty(t)}markAsPristine(t={}){this.pristine=!0,this._pendingDirty=!1,this._forEachChild(e=>{e.markAsPristine({onlySelf:!0})}),this._parent&&!t.onlySelf&&this._parent._updatePristine(t)}markAsPending(t={}){this.status=rf,!1!==t.emitEvent&&this.statusChanges.emit(this.status),this._parent&&!t.onlySelf&&this._parent.markAsPending(t)}disable(t={}){const e=this._parentMarkedDirty(t.onlySelf);this.status=Lg,this.errors=null,this._forEachChild(r=>{r.disable(Object.assign(Object.assign({},t),{onlySelf:!0}))}),this._updateValue(),!1!==t.emitEvent&&(this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._updateAncestors(Object.assign(Object.assign({},t),{skipPristineCheck:e})),this._onDisabledChange.forEach(r=>r(!0))}enable(t={}){const e=this._parentMarkedDirty(t.onlySelf);this.status=kg,this._forEachChild(r=>{r.enable(Object.assign(Object.assign({},t),{onlySelf:!0}))}),this.updateValueAndValidity({onlySelf:!0,emitEvent:t.emitEvent}),this._updateAncestors(Object.assign(Object.assign({},t),{skipPristineCheck:e})),this._onDisabledChange.forEach(r=>r(!1))}_updateAncestors(t){this._parent&&!t.onlySelf&&(this._parent.updateValueAndValidity(t),t.skipPristineCheck||this._parent._updatePristine(),this._parent._updateTouched())}setParent(t){this._parent=t}updateValueAndValidity(t={}){this._setInitialStatus(),this._updateValue(),this.enabled&&(this._cancelExistingSubscription(),this.errors=this._runValidator(),this.status=this._calculateStatus(),(this.status===kg||this.status===rf)&&this._runAsyncValidator(t.emitEvent)),!1!==t.emitEvent&&(this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._parent&&!t.onlySelf&&this._parent.updateValueAndValidity(t)}_updateTreeValidity(t={emitEvent:!0}){this._forEachChild(e=>e._updateTreeValidity(t)),this.updateValueAndValidity({onlySelf:!0,emitEvent:t.emitEvent})}_setInitialStatus(){this.status=this._allControlsDisabled()?Lg:kg}_runValidator(){return this.validator?this.validator(this):null}_runAsyncValidator(t){if(this.asyncValidator){this.status=rf,this._hasOwnPendingAsyncValidator=!0;const e=cP(this.asyncValidator(this));this._asyncValidationSubscription=e.subscribe(r=>{this._hasOwnPendingAsyncValidator=!1,this.setErrors(r,{emitEvent:t})})}}_cancelExistingSubscription(){this._asyncValidationSubscription&&(this._asyncValidationSubscription.unsubscribe(),this._hasOwnPendingAsyncValidator=!1)}setErrors(t,e={}){this.errors=t,this._updateControlsErrors(!1!==e.emitEvent)}get(t){return function Y6(n,t,e){if(null==t||(Array.isArray(t)||(t=t.split(e)),Array.isArray(t)&&0===t.length))return null;let r=n;return t.forEach(i=>{r=Ex(r)?r.controls.hasOwnProperty(i)?r.controls[i]:null:(n=>n instanceof Q6)(r)&&r.at(i)||null}),r}(this,t,".")}getError(t,e){const r=e?this.get(e):this;return r&&r.errors?r.errors[t]:null}hasError(t,e){return!!this.getError(t,e)}get root(){let t=this;for(;t._parent;)t=t._parent;return t}_updateControlsErrors(t){this.status=this._calculateStatus(),t&&this.statusChanges.emit(this.status),this._parent&&this._parent._updateControlsErrors(t)}_initObservables(){this.valueChanges=new lt,this.statusChanges=new lt}_calculateStatus(){return this._allControlsDisabled()?Lg:this.errors?h0:this._hasOwnPendingAsyncValidator||this._anyControlsHaveStatus(rf)?rf:this._anyControlsHaveStatus(h0)?h0:kg}_anyControlsHaveStatus(t){return this._anyControls(e=>e.status===t)}_anyControlsDirty(){return this._anyControls(t=>t.dirty)}_anyControlsTouched(){return this._anyControls(t=>t.touched)}_updatePristine(t={}){this.pristine=!this._anyControlsDirty(),this._parent&&!t.onlySelf&&this._parent._updatePristine(t)}_updateTouched(t={}){this.touched=this._anyControlsTouched(),this._parent&&!t.onlySelf&&this._parent._updateTouched(t)}_isBoxedValue(t){return"object"==typeof t&&null!==t&&2===Object.keys(t).length&&"value"in t&&"disabled"in t}_registerOnCollectionChange(t){this._onCollectionChange=t}_setUpdateStrategy(t){f0(t)&&null!=t.updateOn&&(this._updateOn=t.updateOn)}_parentMarkedDirty(t){return!t&&!(!this._parent||!this._parent.dirty)&&!this._parent._anyControlsDirty()}}class kP extends Mx{constructor(t=null,e,r){super(Cx(e),wx(r,e)),this.defaultValue=null,this._onChange=[],this._pendingChange=!1,this._applyFormState(t),this._setUpdateStrategy(e),this._initObservables(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator}),f0(e)&&e.initialValueIsDefault&&(this.defaultValue=this._isBoxedValue(t)?t.value:t)}setValue(t,e={}){this.value=this._pendingValue=t,this._onChange.length&&!1!==e.emitModelToViewChange&&this._onChange.forEach(r=>r(this.value,!1!==e.emitViewToModelChange)),this.updateValueAndValidity(e)}patchValue(t,e={}){this.setValue(t,e)}reset(t=this.defaultValue,e={}){this._applyFormState(t),this.markAsPristine(e),this.markAsUntouched(e),this.setValue(this.value,e),this._pendingChange=!1}_updateValue(){}_anyControls(t){return!1}_allControlsDisabled(){return this.disabled}registerOnChange(t){this._onChange.push(t)}_unregisterOnChange(t){_x(this._onChange,t)}registerOnDisabledChange(t){this._onDisabledChange.push(t)}_unregisterOnDisabledChange(t){_x(this._onDisabledChange,t)}_forEachChild(t){}_syncPendingControls(){return!("submit"!==this.updateOn||(this._pendingDirty&&this.markAsDirty(),this._pendingTouched&&this.markAsTouched(),!this._pendingChange)||(this.setValue(this._pendingValue,{onlySelf:!0,emitModelToViewChange:!1}),0))}_applyFormState(t){this._isBoxedValue(t)?(this.value=this._pendingValue=t.value,t.disabled?this.disable({onlySelf:!0,emitEvent:!1}):this.enable({onlySelf:!0,emitEvent:!1})):this.value=this._pendingValue=t}}class xx extends Mx{constructor(t,e,r){super(Cx(e),wx(r,e)),this.controls=t,this._initObservables(),this._setUpdateStrategy(e),this._setUpControls(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator})}registerControl(t,e){return this.controls[t]?this.controls[t]:(this.controls[t]=e,e.setParent(this),e._registerOnCollectionChange(this._onCollectionChange),e)}addControl(t,e,r={}){this.registerControl(t,e),this.updateValueAndValidity({emitEvent:r.emitEvent}),this._onCollectionChange()}removeControl(t,e={}){this.controls[t]&&this.controls[t]._registerOnCollectionChange(()=>{}),delete this.controls[t],this.updateValueAndValidity({emitEvent:e.emitEvent}),this._onCollectionChange()}setControl(t,e,r={}){this.controls[t]&&this.controls[t]._registerOnCollectionChange(()=>{}),delete this.controls[t],e&&this.registerControl(t,e),this.updateValueAndValidity({emitEvent:r.emitEvent}),this._onCollectionChange()}contains(t){return this.controls.hasOwnProperty(t)&&this.controls[t].enabled}setValue(t,e={}){PP(this,t),Object.keys(t).forEach(r=>{OP(this,r),this.controls[r].setValue(t[r],{onlySelf:!0,emitEvent:e.emitEvent})}),this.updateValueAndValidity(e)}patchValue(t,e={}){null!=t&&(Object.keys(t).forEach(r=>{this.controls[r]&&this.controls[r].patchValue(t[r],{onlySelf:!0,emitEvent:e.emitEvent})}),this.updateValueAndValidity(e))}reset(t={},e={}){this._forEachChild((r,i)=>{r.reset(t[i],{onlySelf:!0,emitEvent:e.emitEvent})}),this._updatePristine(e),this._updateTouched(e),this.updateValueAndValidity(e)}getRawValue(){return this._reduceChildren({},(t,e,r)=>(t[r]=RP(e),t))}_syncPendingControls(){let t=this._reduceChildren(!1,(e,r)=>!!r._syncPendingControls()||e);return t&&this.updateValueAndValidity({onlySelf:!0}),t}_forEachChild(t){Object.keys(this.controls).forEach(e=>{const r=this.controls[e];r&&t(r,e)})}_setUpControls(){this._forEachChild(t=>{t.setParent(this),t._registerOnCollectionChange(this._onCollectionChange)})}_updateValue(){this.value=this._reduceValue()}_anyControls(t){for(const e of Object.keys(this.controls)){const r=this.controls[e];if(this.contains(e)&&t(r))return!0}return!1}_reduceValue(){return this._reduceChildren({},(t,e,r)=>((e.enabled||this.disabled)&&(t[r]=e.value),t))}_reduceChildren(t,e){let r=t;return this._forEachChild((i,o)=>{r=e(r,i,o)}),r}_allControlsDisabled(){for(const t of Object.keys(this.controls))if(this.controls[t].enabled)return!1;return Object.keys(this.controls).length>0||this.disabled}}class Q6 extends Mx{constructor(t,e,r){super(Cx(e),wx(r,e)),this.controls=t,this._initObservables(),this._setUpdateStrategy(e),this._setUpControls(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator})}at(t){return this.controls[t]}push(t,e={}){this.controls.push(t),this._registerControl(t),this.updateValueAndValidity({emitEvent:e.emitEvent}),this._onCollectionChange()}insert(t,e,r={}){this.controls.splice(t,0,e),this._registerControl(e),this.updateValueAndValidity({emitEvent:r.emitEvent})}removeAt(t,e={}){this.controls[t]&&this.controls[t]._registerOnCollectionChange(()=>{}),this.controls.splice(t,1),this.updateValueAndValidity({emitEvent:e.emitEvent})}setControl(t,e,r={}){this.controls[t]&&this.controls[t]._registerOnCollectionChange(()=>{}),this.controls.splice(t,1),e&&(this.controls.splice(t,0,e),this._registerControl(e)),this.updateValueAndValidity({emitEvent:r.emitEvent}),this._onCollectionChange()}get length(){return this.controls.length}setValue(t,e={}){PP(this,t),t.forEach((r,i)=>{OP(this,i),this.at(i).setValue(r,{onlySelf:!0,emitEvent:e.emitEvent})}),this.updateValueAndValidity(e)}patchValue(t,e={}){null!=t&&(t.forEach((r,i)=>{this.at(i)&&this.at(i).patchValue(r,{onlySelf:!0,emitEvent:e.emitEvent})}),this.updateValueAndValidity(e))}reset(t=[],e={}){this._forEachChild((r,i)=>{r.reset(t[i],{onlySelf:!0,emitEvent:e.emitEvent})}),this._updatePristine(e),this._updateTouched(e),this.updateValueAndValidity(e)}getRawValue(){return this.controls.map(t=>RP(t))}clear(t={}){this.controls.length<1||(this._forEachChild(e=>e._registerOnCollectionChange(()=>{})),this.controls.splice(0),this.updateValueAndValidity({emitEvent:t.emitEvent}))}_syncPendingControls(){let t=this.controls.reduce((e,r)=>!!r._syncPendingControls()||e,!1);return t&&this.updateValueAndValidity({onlySelf:!0}),t}_forEachChild(t){this.controls.forEach((e,r)=>{t(e,r)})}_updateValue(){this.value=this.controls.filter(t=>t.enabled||this.disabled).map(t=>t.value)}_anyControls(t){return this.controls.some(e=>e.enabled&&t(e))}_setUpControls(){this._forEachChild(t=>this._registerControl(t))}_allControlsDisabled(){for(const t of this.controls)if(t.enabled)return!1;return this.controls.length>0||this.disabled}_registerControl(t){t.setParent(this),t._registerOnCollectionChange(this._onCollectionChange)}}const t5={provide:Cl,useExisting:Wt(()=>wl)},FP=(()=>Promise.resolve(null))();let wl=(()=>{class n extends Cl{constructor(e,r,i,o,s){super(),this._changeDetectorRef=s,this.control=new kP,this._registered=!1,this.update=new lt,this._parent=e,this._setValidators(r),this._setAsyncValidators(i),this.valueAccessor=function mx(n,t){if(!t)return null;let e,r,i;return Array.isArray(t),t.forEach(o=>{o.constructor===rc?e=o:function Z6(n){return Object.getPrototypeOf(n.constructor)===nc}(o)?r=o:i=o}),i||r||e||null}(0,o)}ngOnChanges(e){if(this._checkForErrors(),!this._registered||"name"in e){if(this._registered&&(this._checkName(),this.formDirective)){const r=e.name.previousValue;this.formDirective.removeControl({name:r,path:this._getPath(r)})}this._setUpControl()}"isDisabled"in e&&this._updateDisabled(e),function vx(n,t){if(!n.hasOwnProperty("model"))return!1;const e=n.model;return!!e.isFirstChange()||!Object.is(t,e.currentValue)}(e,this.viewModel)&&(this._updateValue(this.model),this.viewModel=this.model)}ngOnDestroy(){this.formDirective&&this.formDirective.removeControl(this)}get path(){return this._getPath(this.name)}get formDirective(){return this._parent?this._parent.formDirective:null}viewToModelUpdate(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(){Pg(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){FP.then(()=>{var r;this.control.setValue(e,{emitViewToModelChange:!1}),null===(r=this._changeDetectorRef)||void 0===r||r.markForCheck()})}_updateDisabled(e){const r=e.isDisabled.currentValue,i=""===r||r&&"false"!==r;FP.then(()=>{var o;i&&!this.control.disabled?this.control.disable():!i&&this.control.disabled&&this.control.enable(),null===(o=this._changeDetectorRef)||void 0===o||o.markForCheck()})}_getPath(e){return this._parent?function a0(n,t){return[...t.path,n]}(e,this._parent):[e]}}return n.\u0275fac=function(e){return new(e||n)(z(li,9),z(jr,10),z(yl,10),z(Rs,10),z(cy,8))},n.\u0275dir=Te({type:n,selectors:[["","ngModel","",3,"formControlName","",3,"formControl",""]],inputs:{name:"name",isDisabled:["disabled","isDisabled"],model:["ngModel","model"],options:["ngModelOptions","options"]},outputs:{update:"ngModelChange"},exportAs:["ngModel"],features:[dn([t5]),u,Jr]}),n})();const i5={provide:Rs,useExisting:Wt(()=>d0),multi:!0};let BP=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=Xr({type:n}),n.\u0275inj=mr({}),n})(),o5=(()=>{class n{constructor(){this._accessors=[]}add(e,r){this._accessors.push([e,r])}remove(e){for(let r=this._accessors.length-1;r>=0;--r)if(this._accessors[r][1]===e)return void this._accessors.splice(r,1)}select(e){this._accessors.forEach(r=>{this._isSameGroup(r,e)&&r[1]!==e&&r[1].fireUncheck(e.value)})}_isSameGroup(e,r){return!!e[0].control&&e[0]._parent===r._control._parent&&e[1].name===r.name}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275prov=Fe({token:n,factory:n.\u0275fac,providedIn:BP}),n})(),d0=(()=>{class n extends nc{constructor(e,r,i,o){super(e,r),this._registry=i,this._injector=o,this.onChange=()=>{}}ngOnInit(){this._control=this._injector.get(Cl),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 n.\u0275fac=function(e){return new(e||n)(z(pa),z(Er),z(o5),z(ur))},n.\u0275dir=Te({type:n,selectors:[["input","type","radio","formControlName",""],["input","type","radio","formControl",""],["input","type","radio","ngModel",""]],hostBindings:function(e,r){1&e&&Ge("change",function(){return r.onChange()})("blur",function(){return r.onTouched()})},inputs:{name:"name",formControlName:"formControlName",value:"value"},features:[dn([i5]),u]}),n})();const f5={provide:Rs,useExisting:Wt(()=>Fg),multi:!0};function $P(n,t){return null==n?`${t}`:(t&&"object"==typeof t&&(t="Object"),`${n}: ${t}`.slice(0,50))}let Fg=(()=>{class n extends nc{constructor(){super(...arguments),this._optionMap=new Map,this._idCounter=0,this._compareWith=Object.is}set compareWith(e){this._compareWith=e}writeValue(e){this.value=e;const i=$P(this._getOptionId(e),e);this.setProperty("value",i)}registerOnChange(e){this.onChange=r=>{this.value=this._getOptionValue(r),e(this.value)}}_registerOption(){return(this._idCounter++).toString()}_getOptionId(e){for(const r of Array.from(this._optionMap.keys()))if(this._compareWith(this._optionMap.get(r),e))return r;return null}_getOptionValue(e){const r=function d5(n){return n.split(":")[0]}(e);return this._optionMap.has(r)?this._optionMap.get(r):e}}return n.\u0275fac=function(){let t;return function(r){return(t||(t=Jt(n)))(r||n)}}(),n.\u0275dir=Te({type:n,selectors:[["select","formControlName","",3,"multiple",""],["select","formControl","",3,"multiple",""],["select","ngModel","",3,"multiple",""]],hostBindings:function(e,r){1&e&&Ge("change",function(o){return r.onChange(o.target.value)})("blur",function(){return r.onTouched()})},inputs:{compareWith:"compareWith"},features:[dn([f5]),u]}),n})(),Tx=(()=>{class n{constructor(e,r,i){this._element=e,this._renderer=r,this._select=i,this._select&&(this.id=this._select._registerOption())}set ngValue(e){null!=this._select&&(this._select._optionMap.set(this.id,e),this._setElementValue($P(this.id,e)),this._select.writeValue(this._select.value))}set value(e){this._setElementValue(e),this._select&&this._select.writeValue(this._select.value)}_setElementValue(e){this._renderer.setProperty(this._element.nativeElement,"value",e)}ngOnDestroy(){this._select&&(this._select._optionMap.delete(this.id),this._select.writeValue(this._select.value))}}return n.\u0275fac=function(e){return new(e||n)(z(Er),z(pa),z(Fg,9))},n.\u0275dir=Te({type:n,selectors:[["option"]],inputs:{ngValue:"ngValue",value:"value"}}),n})();const p5={provide:Rs,useExisting:Wt(()=>Ax),multi:!0};function WP(n,t){return null==n?`${t}`:("string"==typeof t&&(t=`'${t}'`),t&&"object"==typeof t&&(t="Object"),`${n}: ${t}`.slice(0,50))}let Ax=(()=>{class n extends nc{constructor(){super(...arguments),this._optionMap=new Map,this._idCounter=0,this._compareWith=Object.is}set compareWith(e){this._compareWith=e}writeValue(e){let r;if(this.value=e,Array.isArray(e)){const i=e.map(o=>this._getOptionId(o));r=(o,s)=>{o._setSelected(i.indexOf(s.toString())>-1)}}else r=(i,o)=>{i._setSelected(!1)};this._optionMap.forEach(r)}registerOnChange(e){this.onChange=r=>{const i=[],o=r.selectedOptions;if(void 0!==o){const s=o;for(let a=0;a<s.length;a++){const c=this._getOptionValue(s[a].value);i.push(c)}}else{const s=r.options;for(let a=0;a<s.length;a++){const l=s[a];if(l.selected){const c=this._getOptionValue(l.value);i.push(c)}}}this.value=i,e(i)}}_registerOption(e){const r=(this._idCounter++).toString();return this._optionMap.set(r,e),r}_getOptionId(e){for(const r of Array.from(this._optionMap.keys()))if(this._compareWith(this._optionMap.get(r)._value,e))return r;return null}_getOptionValue(e){const r=function g5(n){return n.split(":")[0]}(e);return this._optionMap.has(r)?this._optionMap.get(r)._value:e}}return n.\u0275fac=function(){let t;return function(r){return(t||(t=Jt(n)))(r||n)}}(),n.\u0275dir=Te({type:n,selectors:[["select","multiple","","formControlName",""],["select","multiple","","formControl",""],["select","multiple","","ngModel",""]],hostBindings:function(e,r){1&e&&Ge("change",function(o){return r.onChange(o.target)})("blur",function(){return r.onTouched()})},inputs:{compareWith:"compareWith"},features:[dn([p5]),u]}),n})(),Rx=(()=>{class n{constructor(e,r,i){this._element=e,this._renderer=r,this._select=i,this._select&&(this.id=this._select._registerOption(this))}set ngValue(e){null!=this._select&&(this._value=e,this._setElementValue(WP(this.id,e)),this._select.writeValue(this._select.value))}set value(e){this._select?(this._value=e,this._setElementValue(WP(this.id,e)),this._select.writeValue(this._select.value)):this._setElementValue(e)}_setElementValue(e){this._renderer.setProperty(this._element.nativeElement,"value",e)}_setSelected(e){this._renderer.setProperty(this._element.nativeElement,"selected",e)}ngOnDestroy(){this._select&&(this._select._optionMap.delete(this.id),this._select.writeValue(this._select.value))}}return n.\u0275fac=function(e){return new(e||n)(z(Er),z(pa),z(Ax,9))},n.\u0275dir=Te({type:n,selectors:[["option"]],inputs:{ngValue:"ngValue",value:"value"}}),n})(),b5=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=Xr({type:n}),n.\u0275inj=mr({imports:[[BP]]}),n})(),D5=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=Xr({type:n}),n.\u0275inj=mr({imports:[b5]}),n})();const S5=["input"];function I5(n,t){if(1&n&&(se(0,"div",3),da(1),J()),2&n){const e=de();ne(1),Q_(e.getCounterMessage())}}let Px=(()=>{class n{constructor(){this.textChange=new lt,this.placeholder="",this.showCounter=!1}get model(){return this.text}set model(e){this.text=e,this.textChange.emit(this.text),this.adjustTextAreaHeight()}ngOnInit(){}ngAfterViewInit(){}adjustTextAreaHeight(){if(!this.input)return;const e=this.input.nativeElement;e.style.height="auto",e.style.height=e.scrollHeight+2+"px"}getCounterMessage(){var e;const r=this.text.length,i=(null===(e=this.text.match(/(\w+)/g))||void 0===e?void 0:e.length)||0;return this.formatNoneOrOne(r,["Keine Zeichen","Ein Zeichen","Zeichen"])+", "+this.formatNoneOrOne(i,["keine W\xf6rter","ein Wort","W\xf6rter"])}formatNoneOrOne(e,r){switch(e){case 0:case 1:return r[e];default:return`${e} ${r[2]}`}}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275cmp=An({type:n,selectors:[["ui-input-text-long"]],viewQuery:function(e,r){if(1&e&&ug(S5,5),2&e){let i;Hu(i=zu())&&(r.input=i.first)}},inputs:{text:"text",placeholder:"placeholder",showCounter:"showCounter"},outputs:{textChange:"textChange"},decls:4,vars:3,consts:[[3,"ngModel","placeholder","ngModelChange"],["input",""],["class","counter",4,"ngIf"],[1,"counter"]],template:function(e,r){1&e&&(se(0,"div")(1,"textarea",0,1),Ge("ngModelChange",function(o){return r.model=o}),J(),Oe(3,I5,2,1,"div",2),J()),2&e&&(ne(1),W("ngModel",r.model)("placeholder",r.placeholder),ne(2),W("ngIf",r.showCounter))},directives:[rc,ic,wl,ya],styles:["div[_ngcontent-%COMP%]{width:100%}textarea[_ngcontent-%COMP%]{display:block;width:100%;min-height:96px;border:1px solid var(--line-color);color:var(--text-color);resize:none;outline:none;padding:var(--form-elements-padding);font-size:var(--font-size-form-elements);line-height:var(--line-height-form-elements)}textarea[_ngcontent-%COMP%]:active, textarea[_ngcontent-%COMP%]:focus{border-color:var(--highlight-color)}textarea[_ngcontent-%COMP%]::placeholder{color:var(--light-color)}textarea[_ngcontent-%COMP%]::selection{background-color:var(--selection-color-back);color:var(--selection-color-front)}.counter[_ngcontent-%COMP%]{color:var(--light-color);font-size:var(--font-size-small);text-align:right}"]}),n})();function T5(n,t){1&n&&xt(0,"markdown",9),2&n&&W("data",de().$implicit.info)}function A5(n,t){1&n&&xt(0,"span",10),2&n&&W("innerText",de().$implicit.label)}function R5(n,t){if(1&n){const e=Cn();se(0,"ui-input-text-long",11),Ge("textChange",function(i){return Kt(e),de(2).modelComment=i}),J()}2&n&&W("text",de(2).modelComment)}function O5(n,t){if(1&n){const e=Cn();bs(0),se(1,"label",1)(2,"span",2)(3,"input",3),Ge("change",function(){const o=Kt(e).$implicit;return de().toggle(o.value)}),J(),xt(4,"span",4),J(),Oe(5,T5,1,1,"markdown",5),Oe(6,A5,1,1,"span",6),J(),se(7,"div",7),Oe(8,R5,1,1,"ui-input-text-long",8),J(),Ho()}if(2&n){const e=t.$implicit,r=de();ne(3),W("checked",r.isChecked(e.value)),ne(2),W("ngIf",e.info),ne(1),W("ngIf",e.label),ne(2),W("ngIf",r.isChecked(e.value)&&e.comment)}}let P5=(()=>{class n{constructor(){this.selected=[],this.selectedChange=new lt,this.comment="",this.commentChange=new lt}get model(){return this.selected}set model(e){this.selected=e,this.selectedChange.emit(this.selected)}get modelComment(){return this.comment}set modelComment(e){this.comment=e,this.commentChange.emit(this.comment)}toggle(e){const r=nf().indexOf(this.selected,e);r>-1?(this.selected.splice(r,1),this.model=[...this.selected]):this.model=[...this.selected,e]}isChecked(e){return nf().includes(this.selected,e)}ngOnInit(){}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275cmp=An({type:n,selectors:[["ui-input-checkbox"]],inputs:{selected:"selected",comment:"comment",options:"options"},outputs:{selectedChange:"selectedChange",commentChange:"commentChange"},decls:2,vars:1,consts:[[4,"ngFor","ngForOf"],[1,"radio"],[1,"radio-input"],["id","confirm","type","checkbox",3,"checked","change"],[1,"radio-control"],["class","radio-label",3,"data",4,"ngIf"],["class","radio-label",3,"innerText",4,"ngIf"],[1,"textarea"],[3,"text","textChange",4,"ngIf"],[1,"radio-label",3,"data"],[1,"radio-label",3,"innerText"],[3,"text","textChange"]],template:function(e,r){1&e&&(se(0,"div"),Oe(1,O5,9,4,"ng-container",0),J()),2&e&&(ne(1),W("ngForOf",r.options))},directives:[Is,ya,tf,Px],styles:["label[_ngcontent-%COMP%]{margin-bottom:12px}.radio[_ngcontent-%COMP%]{display:flex;flex-direction:row;vertical-align:top;cursor:pointer}.radio-input[_ngcontent-%COMP%]{display:flex}.radio-input[_ngcontent-%COMP%] > input[_ngcontent-%COMP%]{opacity:0;width:0;height:0}.radio-input[_ngcontent-%COMP%] > input[_ngcontent-%COMP%]:checked + .radio-control[_ngcontent-%COMP%]{border-width:6px}.radio-control[_ngcontent-%COMP%]{display:block;width:1em;height:1em;border:1px solid var(--highlight-color);margin-right:.5em;transform:translateY(.125em)}.radio-label[_ngcontent-%COMP%]{line-height:var(--line-height)}  .radio-label>*:first-child{margin-top:0}.textarea[_ngcontent-%COMP%]{padding-left:32px;padding-bottom:8px}"]}),n})();var k5=function(){function n(){this.disposed=!1}return n.prototype.dispose=function(){this.disposed||(this.disposed=!0,this.disposeInternal())},n.prototype.disposeInternal=function(){},n}();const kx=k5;function sc(n,t){return n>t?1:n<t?-1:0}function nk(n,t){return n.indexOf(t)>=0}function Lx(n,t,e){var r=n.length;if(n[0]<=t)return 0;if(t<=n[r-1])return r-1;var i=void 0;if(e>0){for(i=1;i<r;++i)if(n[i]<t)return i-1}else if(e<0){for(i=1;i<r;++i)if(n[i]<=t)return i}else for(i=1;i<r;++i){if(n[i]==t)return i;if(n[i]<t)return"function"==typeof e?e(t,n[i-1],n[i])>0?i-1:i:n[i-1]-t<t-n[i]?i-1:i}return r-1}function N5(n,t,e){for(;t<e;){var r=n[t];n[t]=n[e],n[e]=r,++t,--e}}function Ma(n,t){for(var e=Array.isArray(t)?t:[t],r=e.length,i=0;i<r;i++)n[n.length]=e[i]}function ac(n,t){var e=n.length;if(e!==t.length)return!1;for(var r=0;r<e;r++)if(n[r]!==t[r])return!1;return!0}function xa(){return!0}function Vg(){return!1}function lc(){}function vt(){return function(){throw new Error("Unimplemented abstract method.")}()}var B5=0;function kt(n){return n.ol_uid||(n.ol_uid=String(++B5))}var El="undefined"!=typeof navigator&&void 0!==navigator.userAgent?navigator.userAgent.toLowerCase():"",U5=-1!==El.indexOf("firefox"),G5=(-1!==El.indexOf("safari")&&-1==El.indexOf("chrom")&&(El.indexOf("version/15.4")>=0||El.match(/cpu (os|iphone os) 15_4 like mac os x/)),-1!==El.indexOf("webkit")&&-1==El.indexOf("edge")),H5=-1!==El.indexOf("macintosh"),rk="undefined"!=typeof devicePixelRatio?devicePixelRatio:1,p0="undefined"!=typeof WorkerGlobalScope&&"undefined"!=typeof OffscreenCanvas&&self instanceof WorkerGlobalScope,z5="undefined"!=typeof Image&&Image.prototype.decode,ik=function(){var n=!1;try{var t=Object.defineProperty({},"passive",{get:function(){n=!0}});window.addEventListener("_",null,t),window.removeEventListener("_",null,t)}catch(e){}return n}(),$5=function(){var n=function(t,e){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,i){r.__proto__=i}||function(r,i){for(var o in i)Object.prototype.hasOwnProperty.call(i,o)&&(r[o]=i[o])})(t,e)};return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function r(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)}}(),W5=function(n){function t(e){var r=this,o="Assertion failed. See https://openlayers.org/en/v"+"6.15.1".split("-")[0]+"/doc/errors/#"+e+" for details.";return(r=n.call(this,o)||this).code=e,r.name="AssertionError",r.message=o,r}return $5(t,n),t}(Error);const ok=W5;function ct(n,t){if(!n)throw new ok(t)}var sk;function Zn(n,t){var e=t[0],r=t[1];return t[0]=n[0]*e+n[2]*r+n[4],t[1]=n[1]*e+n[3]*r+n[5],t}function Os(n,t,e,r,i,o,s,a){var l=Math.sin(o),c=Math.cos(o);return n[0]=r*c,n[1]=i*l,n[2]=-r*l,n[3]=i*c,n[4]=s*r*c-a*r*l+t,n[5]=s*i*l+a*i*c+e,n}function g0(n,t){var e=function Z5(n){return n[0]*n[3]-n[1]*n[2]}(t);ct(0!==e,32);var r=t[0],i=t[1],o=t[2],s=t[3],a=t[4],l=t[5];return n[0]=s/e,n[1]=-i/e,n[2]=-o/e,n[3]=r/e,n[4]=(o*l-s*a)/e,n[5]=-(r*l-i*a)/e,n}function Bx(n){var t="matrix("+n.join(", ")+")";if(p0)return t;var e=sk||(sk=document.createElement("div"));return e.style.transform=t,e.style.transform}new Array(6);function ak(n){for(var t=[1/0,1/0,-1/0,-1/0],e=0,r=n.length;e<r;++e)lf(t,n[e]);return t}function Ug(n,t,e){return e?(e[0]=n[0]-t,e[1]=n[1]-t,e[2]=n[2]+t,e[3]=n[3]+t,e):[n[0]-t,n[1]-t,n[2]+t,n[3]+t]}function lk(n,t){return t?(t[0]=n[0],t[1]=n[1],t[2]=n[2],t[3]=n[3],t):n.slice()}function of(n,t,e){var r,i;return(r=t<n[0]?n[0]-t:n[2]<t?t-n[2]:0)*r+(i=e<n[1]?n[1]-e:n[3]<e?e-n[3]:0)*i}function jg(n,t){return Ux(n,t[0],t[1])}function sf(n,t){return n[0]<=t[0]&&t[2]<=n[2]&&n[1]<=t[1]&&t[3]<=n[3]}function Ux(n,t,e){return n[0]<=t&&t<=n[2]&&n[1]<=e&&e<=n[3]}function jx(n,t){var s=t[0],a=t[1],l=0;return s<n[0]?l|=16:s>n[2]&&(l|=4),a<n[1]?l|=8:a>n[3]&&(l|=2),0===l&&(l=1),l}function Xo(n,t,e,r,i){return i?(i[0]=n,i[1]=t,i[2]=e,i[3]=r,i):[n,t,e,r]}function af(n){return Xo(1/0,1/0,-1/0,-1/0,n)}function uk(n,t,e,r,i){return hk(af(i),n,t,e,r)}function Gg(n,t){return n[0]==t[0]&&n[2]==t[2]&&n[1]==t[1]&&n[3]==t[3]}function lf(n,t){t[0]<n[0]&&(n[0]=t[0]),t[0]>n[2]&&(n[2]=t[0]),t[1]<n[1]&&(n[1]=t[1]),t[1]>n[3]&&(n[3]=t[1])}function hk(n,t,e,r,i){for(;e<r;e+=i)e8(n,t[e],t[e+1]);return n}function e8(n,t,e){n[0]=Math.min(n[0],t),n[1]=Math.min(n[1],e),n[2]=Math.max(n[2],t),n[3]=Math.max(n[3],e)}function Gx(n,t){var e;return!!((e=t(m0(n)))||(e=t(_0(n)),e)||(e=t(y0(n)),e)||(e=t(uc(n)),e))&&e}function v0(n){var t=0;return $x(n)||(t=Yt(n)*eo(n)),t}function m0(n){return[n[0],n[1]]}function _0(n){return[n[2],n[1]]}function uf(n){return[(n[0]+n[2])/2,(n[1]+n[3])/2]}function t8(n,t){var e;return"bottom-left"===t?e=m0(n):"bottom-right"===t?e=_0(n):"top-left"===t?e=uc(n):"top-right"===t?e=y0(n):ct(!1,13),e}function Hx(n,t,e,r,i){var o=zx(n,t,e,r),s=o[0],a=o[1],l=o[2],c=o[3],f=o[4],d=o[5],g=o[6],v=o[7];return Xo(Math.min(s,l,f,g),Math.min(a,c,d,v),Math.max(s,l,f,g),Math.max(a,c,d,v),i)}function zx(n,t,e,r){var i=t*r[0]/2,o=t*r[1]/2,s=Math.cos(e),a=Math.sin(e),l=i*s,c=i*a,f=o*s,d=o*a,g=n[0],v=n[1];return[g-l+d,v-c-f,g-l-d,v-c+f,g+l-d,v+c+f,g+l+d,v+c-f,g-l+d,v-c-f]}function eo(n){return n[3]-n[1]}function cf(n,t,e){var r=e||[1/0,1/0,-1/0,-1/0];return ui(n,t)?(r[0]=n[0]>t[0]?n[0]:t[0],r[1]=n[1]>t[1]?n[1]:t[1],r[2]=n[2]<t[2]?n[2]:t[2],r[3]=n[3]<t[3]?n[3]:t[3]):af(r),r}function uc(n){return[n[0],n[3]]}function y0(n){return[n[2],n[3]]}function Yt(n){return n[2]-n[0]}function ui(n,t){return n[0]<=t[2]&&n[2]>=t[0]&&n[1]<=t[3]&&n[3]>=t[1]}function $x(n){return n[2]<n[0]||n[3]<n[1]}function fk(n,t){var e=t.getExtent(),r=uf(n);if(t.canWrapX()&&(r[0]<e[0]||r[0]>=e[2])){var i=Yt(e),s=Math.floor((r[0]-e[0])/i)*i;n[0]-=s,n[2]-=s}return n}function Sn(n,t,e){return Math.min(Math.max(n,t),e)}var s8="cosh"in Math?Math.cosh:function(t){var e=Math.exp(t);return(e+1/e)/2},a8="log2"in Math?Math.log2:function(t){return Math.log(t)*Math.LOG2E};function l8(n,t,e,r,i,o){var s=i-e,a=o-r;if(0!==s||0!==a){var l=((n-e)*s+(t-r)*a)/(s*s+a*a);l>1?(e=i,r=o):l>0&&(e+=s*l,r+=a*l)}return cc(n,t,e,r)}function cc(n,t,e,r){var i=e-n,o=r-t;return i*i+o*o}function C0(n){return n*Math.PI/180}function hc(n,t){var e=n%t;return e*t<0?e+t:e}function ba(n,t,e){return n+e*(t-n)}function Wx(n,t){var e=Math.pow(10,t);return Math.round(n*e)/e}function w0(n,t){return Math.floor(Wx(n,t))}function E0(n,t){return Math.ceil(Wx(n,t))}var dk=/^#([a-f0-9]{3}|[a-f0-9]{4}(?:[a-f0-9]{2}){0,2})$/i,pk=/^([a-z]*)$|^hsla?\(.*\)$/i;function gk(n){return"string"==typeof n?n:_k(n)}var t,e,c8=(t={},e=0,function(r){var i;if(t.hasOwnProperty(r))i=t[r];else{if(e>=1024){var o=0;for(var s in t)0==(3&o++)&&(delete t[s],--e)}i=function h8(n){var t,e,r,i,o;if(pk.exec(n)&&(n=function vk(n){var t=document.createElement("div");if(t.style.color=n,""!==t.style.color){document.body.appendChild(t);var e=getComputedStyle(t).color;return document.body.removeChild(t),e}return""}(n)),dk.exec(n)){var a,s=n.length-1;a=s<=4?1:2;var l=4===s||8===s;t=parseInt(n.substr(1+0*a,a),16),e=parseInt(n.substr(1+1*a,a),16),r=parseInt(n.substr(1+2*a,a),16),i=l?parseInt(n.substr(1+3*a,a),16):255,1==a&&(t=(t<<4)+t,e=(e<<4)+e,r=(r<<4)+r,l&&(i=(i<<4)+i)),o=[t,e,r,i/255]}else 0==n.indexOf("rgba(")?mk(o=n.slice(5,-1).split(",").map(Number)):0==n.indexOf("rgb(")?((o=n.slice(4,-1).split(",").map(Number)).push(1),mk(o)):ct(!1,14);return o}(r),t[r]=i,++e}return i});function M0(n){return Array.isArray(n)?n:c8(n)}function mk(n){return n[0]=Sn(n[0]+.5|0,0,255),n[1]=Sn(n[1]+.5|0,0,255),n[2]=Sn(n[2]+.5|0,0,255),n[3]=Sn(n[3],0,1),n}function _k(n){var t=n[0];t!=(0|t)&&(t=t+.5|0);var e=n[1];e!=(0|e)&&(e=e+.5|0);var r=n[2];return r!=(0|r)&&(r=r+.5|0),"rgba("+t+","+e+","+r+","+(void 0===n[3]?1:Math.round(100*n[3])/100)+")"}var f8=function(){function n(){this.cache_={},this.cacheSize_=0,this.maxCacheSize_=32}return n.prototype.clear=function(){this.cache_={},this.cacheSize_=0},n.prototype.canExpireCache=function(){return this.cacheSize_>this.maxCacheSize_},n.prototype.expire=function(){if(this.canExpireCache()){var t=0;for(var e in this.cache_)0==(3&t++)&&!this.cache_[e].hasListener()&&(delete this.cache_[e],--this.cacheSize_)}},n.prototype.get=function(t,e,r){var i=yk(t,e,r);return i in this.cache_?this.cache_[i]:null},n.prototype.set=function(t,e,r,i){var o=yk(t,e,r);this.cache_[o]=i,++this.cacheSize_},n.prototype.setSize=function(t){this.maxCacheSize_=t,this.expire()},n}();function yk(n,t,e){return t+":"+n+":"+(e?gk(e):"null")}var x0=new f8,d8=function(){function n(t){this.type=t,this.target=null}return n.prototype.preventDefault=function(){this.defaultPrevented=!0},n.prototype.stopPropagation=function(){this.propagationStopped=!0},n}();const Qo=d8;var In="function"==typeof Object.assign?Object.assign:function(n,t){if(null==n)throw new TypeError("Cannot convert undefined or null to object");for(var e=Object(n),r=1,i=arguments.length;r<i;++r){var o=arguments[r];if(null!=o)for(var s in o)o.hasOwnProperty(s)&&(e[s]=o[s])}return e};function Hg(n){for(var t in n)delete n[t]}var Ck="function"==typeof Object.values?Object.values:function(n){var t=[];for(var e in n)t.push(n[e]);return t};function zg(n){var t;for(t in n)return!1;return!t}var p8=function(){var n=function(t,e){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,i){r.__proto__=i}||function(r,i){for(var o in i)Object.prototype.hasOwnProperty.call(i,o)&&(r[o]=i[o])})(t,e)};return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function r(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)}}(),g8=function(n){function t(e){var r=n.call(this)||this;return r.eventTarget_=e,r.pendingRemovals_=null,r.dispatching_=null,r.listeners_=null,r}return p8(t,n),t.prototype.addEventListener=function(e,r){if(e&&r){var i=this.listeners_||(this.listeners_={}),o=i[e]||(i[e]=[]);-1===o.indexOf(r)&&o.push(r)}},t.prototype.dispatchEvent=function(e){var r="string"==typeof e,i=r?e:e.type,o=this.listeners_&&this.listeners_[i];if(o){var s=r?new Qo(e):e;s.target||(s.target=this.eventTarget_||this);var a=this.dispatching_||(this.dispatching_={}),l=this.pendingRemovals_||(this.pendingRemovals_={});i in a||(a[i]=0,l[i]=0),++a[i];for(var c,f=0,d=o.length;f<d;++f)if(!1===(c="handleEvent"in o[f]?o[f].handleEvent(s):o[f].call(this,s))||s.propagationStopped){c=!1;break}if(0==--a[i]){var g=l[i];for(delete l[i];g--;)this.removeEventListener(i,lc);delete a[i]}return c}},t.prototype.disposeInternal=function(){this.listeners_&&Hg(this.listeners_)},t.prototype.getListeners=function(e){return this.listeners_&&this.listeners_[e]||void 0},t.prototype.hasListener=function(e){return!!this.listeners_&&(e?e in this.listeners_:Object.keys(this.listeners_).length>0)},t.prototype.removeEventListener=function(e,r){var i=this.listeners_&&this.listeners_[e];if(i){var o=i.indexOf(r);-1!==o&&(this.pendingRemovals_&&e in this.pendingRemovals_?(i[o]=lc,++this.pendingRemovals_[e]):(i.splice(o,1),0===i.length&&delete this.listeners_[e]))}},t}(kx);const ff=g8;function bt(n,t,e,r,i){if(r&&r!==n&&(e=e.bind(r)),i){var o=e;e=function(){n.removeEventListener(t,e),o.apply(this,arguments)}}var s={target:n,type:t,listener:e};return n.addEventListener(t,e),s}function b0(n,t,e,r){return bt(n,t,e,r,!0)}function pn(n){n&&n.target&&(n.target.removeEventListener(n.type,n.listener),Hg(n))}var v8=function(){var n=function(t,e){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,i){r.__proto__=i}||function(r,i){for(var o in i)Object.prototype.hasOwnProperty.call(i,o)&&(r[o]=i[o])})(t,e)};return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function r(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)}}(),D0=function(n){function t(){var e=n.call(this)||this;return e.on=e.onInternal,e.once=e.onceInternal,e.un=e.unInternal,e.revision_=0,e}return v8(t,n),t.prototype.changed=function(){++this.revision_,this.dispatchEvent("change")},t.prototype.getRevision=function(){return this.revision_},t.prototype.onInternal=function(e,r){if(Array.isArray(e)){for(var i=e.length,o=new Array(i),s=0;s<i;++s)o[s]=bt(this,e[s],r);return o}return bt(this,e,r)},t.prototype.onceInternal=function(e,r){var i;if(Array.isArray(e)){var o=e.length;i=new Array(o);for(var s=0;s<o;++s)i[s]=b0(this,e[s],r)}else i=b0(this,e,r);return r.ol_key=i,i},t.prototype.unInternal=function(e,r){var i=r.ol_key;if(i)!function m8(n){if(Array.isArray(n))for(var t=0,e=n.length;t<e;++t)pn(n[t]);else pn(n)}(i);else if(Array.isArray(e))for(var o=0,s=e.length;o<s;++o)this.removeEventListener(e[o],r);else this.removeEventListener(e,r)},t}(ff);const wk=D0;var Ek=function(){var n=function(t,e){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,i){r.__proto__=i}||function(r,i){for(var o in i)Object.prototype.hasOwnProperty.call(i,o)&&(r[o]=i[o])})(t,e)};return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function r(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)}}(),Mk=function(n){function t(e,r,i){var o=n.call(this,e)||this;return o.key=r,o.oldValue=i,o}return Ek(t,n),t}(Qo),_8=function(n){function t(e){var r=n.call(this)||this;return kt(r),r.values_=null,void 0!==e&&r.setProperties(e),r}return Ek(t,n),t.prototype.get=function(e){var r;return this.values_&&this.values_.hasOwnProperty(e)&&(r=this.values_[e]),r},t.prototype.getKeys=function(){return this.values_&&Object.keys(this.values_)||[]},t.prototype.getProperties=function(){return this.values_&&In({},this.values_)||{}},t.prototype.hasProperties=function(){return!!this.values_},t.prototype.notify=function(e,r){var i;i="change:".concat(e),this.hasListener(i)&&this.dispatchEvent(new Mk(i,e,r)),this.hasListener(i="propertychange")&&this.dispatchEvent(new Mk(i,e,r))},t.prototype.addChangeListener=function(e,r){this.addEventListener("change:".concat(e),r)},t.prototype.removeChangeListener=function(e,r){this.removeEventListener("change:".concat(e),r)},t.prototype.set=function(e,r,i){var o=this.values_||(this.values_={});if(i)o[e]=r;else{var s=o[e];o[e]=r,s!==r&&this.notify(e,s)}},t.prototype.setProperties=function(e,r){for(var i in e)this.set(i,e[i],r)},t.prototype.applyProperties=function(e){!e.values_||In(this.values_||(this.values_={}),e.values_)},t.prototype.unset=function(e,r){if(this.values_&&e in this.values_){var i=this.values_[e];delete this.values_[e],zg(this.values_)&&(this.values_=null),r||this.notify(e,i)}},t}(wk);const Ps=_8;var y8=function(){var n=function(t,e){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,i){r.__proto__=i}||function(r,i){for(var o in i)Object.prototype.hasOwnProperty.call(i,o)&&(r[o]=i[o])})(t,e)};return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function r(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)}}(),C8=function(n){function t(e){var r=n.call(this)||this;r.background_=e.background;var i=In({},e);return"object"==typeof e.properties&&(delete i.properties,In(i,e.properties)),i.opacity=void 0!==e.opacity?e.opacity:1,ct("number"==typeof i.opacity,64),i.visible=void 0===e.visible||e.visible,i.zIndex=e.zIndex,i.maxResolution=void 0!==e.maxResolution?e.maxResolution:1/0,i.minResolution=void 0!==e.minResolution?e.minResolution:0,i.minZoom=void 0!==e.minZoom?e.minZoom:-1/0,i.maxZoom=void 0!==e.maxZoom?e.maxZoom:1/0,r.className_=void 0!==i.className?i.className:"ol-layer",delete i.className,r.setProperties(i),r.state_=null,r}return y8(t,n),t.prototype.getBackground=function(){return this.background_},t.prototype.getClassName=function(){return this.className_},t.prototype.getLayerState=function(e){var r=this.state_||{layer:this,managed:void 0===e||e},i=this.getZIndex();return r.opacity=Sn(Math.round(100*this.getOpacity())/100,0,1),r.visible=this.getVisible(),r.extent=this.getExtent(),r.zIndex=void 0!==i||r.managed?i:1/0,r.maxResolution=this.getMaxResolution(),r.minResolution=Math.max(this.getMinResolution(),0),r.minZoom=this.getMinZoom(),r.maxZoom=this.getMaxZoom(),this.state_=r,r},t.prototype.getLayersArray=function(e){return vt()},t.prototype.getLayerStatesArray=function(e){return vt()},t.prototype.getExtent=function(){return this.get("extent")},t.prototype.getMaxResolution=function(){return this.get("maxResolution")},t.prototype.getMinResolution=function(){return this.get("minResolution")},t.prototype.getMinZoom=function(){return this.get("minZoom")},t.prototype.getMaxZoom=function(){return this.get("maxZoom")},t.prototype.getOpacity=function(){return this.get("opacity")},t.prototype.getSourceState=function(){return vt()},t.prototype.getVisible=function(){return this.get("visible")},t.prototype.getZIndex=function(){return this.get("zIndex")},t.prototype.setBackground=function(e){this.background_=e,this.changed()},t.prototype.setExtent=function(e){this.set("extent",e)},t.prototype.setMaxResolution=function(e){this.set("maxResolution",e)},t.prototype.setMinResolution=function(e){this.set("minResolution",e)},t.prototype.setMaxZoom=function(e){this.set("maxZoom",e)},t.prototype.setMinZoom=function(e){this.set("minZoom",e)},t.prototype.setOpacity=function(e){ct("number"==typeof e,64),this.set("opacity",e)},t.prototype.setVisible=function(e){this.set("visible",e)},t.prototype.setZIndex=function(e){this.set("zIndex",e)},t.prototype.disposeInternal=function(){this.state_&&(this.state_.layer=null,this.state_=null),n.prototype.disposeInternal.call(this)},t}(Ps);const xk=C8;var w8=function(){var n=function(t,e){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,i){r.__proto__=i}||function(r,i){for(var o in i)Object.prototype.hasOwnProperty.call(i,o)&&(r[o]=i[o])})(t,e)};return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function r(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)}}(),E8=function(n){function t(e){var r=this,i=In({},e);return delete i.source,(r=n.call(this,i)||this).mapPrecomposeKey_=null,r.mapRenderKey_=null,r.sourceChangeKey_=null,r.renderer_=null,r.rendered=!1,e.render&&(r.render=e.render),e.map&&r.setMap(e.map),r.addChangeListener("source",r.handleSourcePropertyChange_),r.setSource(e.source?e.source:null),r}return w8(t,n),t.prototype.getLayersArray=function(e){var r=e||[];return r.push(this),r},t.prototype.getLayerStatesArray=function(e){var r=e||[];return r.push(this.getLayerState()),r},t.prototype.getSource=function(){return this.get("source")||null},t.prototype.getRenderSource=function(){return this.getSource()},t.prototype.getSourceState=function(){var e=this.getSource();return e?e.getState():"undefined"},t.prototype.handleSourceChange_=function(){this.changed()},t.prototype.handleSourcePropertyChange_=function(){this.sourceChangeKey_&&(pn(this.sourceChangeKey_),this.sourceChangeKey_=null);var e=this.getSource();e&&(this.sourceChangeKey_=bt(e,"change",this.handleSourceChange_,this)),this.changed()},t.prototype.getFeatures=function(e){return this.renderer_?this.renderer_.getFeatures(e):new Promise(function(r){return r([])})},t.prototype.getData=function(e){return this.renderer_&&this.rendered?this.renderer_.getData(e):null},t.prototype.render=function(e,r){var i=this.getRenderer();if(i.prepareFrame(e))return this.rendered=!0,i.renderFrame(e,r)},t.prototype.unrender=function(){this.rendered=!1},t.prototype.setMapInternal=function(e){e||this.unrender(),this.set("map",e)},t.prototype.getMapInternal=function(){return this.get("map")},t.prototype.setMap=function(e){this.mapPrecomposeKey_&&(pn(this.mapPrecomposeKey_),this.mapPrecomposeKey_=null),e||this.changed(),this.mapRenderKey_&&(pn(this.mapRenderKey_),this.mapRenderKey_=null),e&&(this.mapPrecomposeKey_=bt(e,"precompose",function(r){var o=r.frameState.layerStatesArray,s=this.getLayerState(!1);ct(!o.some(function(a){return a.layer===s.layer}),67),o.push(s)},this),this.mapRenderKey_=bt(this,"change",e.render,e),this.changed())},t.prototype.setSource=function(e){this.set("source",e)},t.prototype.getRenderer=function(){return this.renderer_||(this.renderer_=this.createRenderer()),this.renderer_},t.prototype.hasRenderer=function(){return!!this.renderer_},t.prototype.createRenderer=function(){return null},t.prototype.disposeInternal=function(){this.renderer_&&(this.renderer_.dispose(),delete this.renderer_),this.setSource(null),n.prototype.disposeInternal.call(this)},t}(xk);function S0(n,t){if(!n.visible)return!1;var e=t.resolution;if(e<n.minResolution||e>=n.maxResolution)return!1;var r=t.zoom;return r>n.minZoom&&r<=n.maxZoom}const I0=E8;function T0(n,t){for(var e=!0,r=n.length-1;r>=0;--r)if(n[r]!=t[r]){e=!1;break}return e}function qx(n,t){var e=Math.cos(t),r=Math.sin(t),o=n[1]*e+n[0]*r;return n[0]=n[0]*e-n[1]*r,n[1]=o,n}function Dk(n,t){if(t.canWrapX()){var e=Yt(t.getExtent()),r=Sk(n,t,e);r&&(n[0]-=r*e)}return n}function Sk(n,t,e){var r=t.getExtent(),i=0;if(t.canWrapX()&&(n[0]<r[0]||n[0]>r[2])){var o=e||Yt(r);i=Math.floor((n[0]-r[0])/o)}return i}var I8=function(){var n=function(t,e){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,i){r.__proto__=i}||function(r,i){for(var o in i)Object.prototype.hasOwnProperty.call(i,o)&&(r[o]=i[o])})(t,e)};return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function r(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)}}(),T8=function(n){function t(e){var r=n.call(this)||this;return r.map_=e,r}return I8(t,n),t.prototype.dispatchRenderEvent=function(e,r){vt()},t.prototype.calculateMatrices2D=function(e){var r=e.viewState,i=e.coordinateToPixelTransform,o=e.pixelToCoordinateTransform;Os(i,e.size[0]/2,e.size[1]/2,1/r.resolution,-1/r.resolution,-r.rotation,-r.center[0],-r.center[1]),g0(o,i)},t.prototype.forEachFeatureAtCoordinate=function(e,r,i,o,s,a,l,c){var f,d=r.viewState;function g(We,we,be,De){return s.call(a,we,We?be:null,De)}var v=d.projection,m=Dk(e.slice(),v),y=[[0,0]];if(v.canWrapX()&&o){var x=Yt(v.getExtent());y.push([-x,0],[x,0])}for(var E=r.layerStatesArray,S=E.length,T=[],O=[],N=0;N<y.length;N++)for(var j=S-1;j>=0;--j){var H=E[j],X=H.layer;if(X.hasRenderer()&&S0(H,d)&&l.call(c,X)){var pe=X.getRenderer(),me=X.getSource();if(pe&&me){var ye=me.getWrapX()?m:e,_e=g.bind(null,H.managed);O[0]=ye[0]+y[N][0],O[1]=ye[1]+y[N][1],f=pe.forEachFeatureAtCoordinate(O,r,i,_e,T)}if(f)return f}}if(0!==T.length){var $e=1/T.length;return T.forEach(function(We,we){return We.distanceSq+=we*$e}),T.sort(function(We,we){return We.distanceSq-we.distanceSq}),T.some(function(We){return f=We.callback(We.feature,We.layer,We.geometry)}),f}},t.prototype.forEachLayerAtPixel=function(e,r,i,o,s){return vt()},t.prototype.hasFeatureAtCoordinate=function(e,r,i,o,s,a){return void 0!==this.forEachFeatureAtCoordinate(e,r,i,o,xa,this,s,a)},t.prototype.getMap=function(){return this.map_},t.prototype.renderFrame=function(e){vt()},t.prototype.scheduleExpireIconCache=function(e){x0.canExpireCache()&&e.postRenderFunctions.push(A8)},t}(kx);function A8(n,t){x0.expire()}const R8=T8;var O8=function(){var n=function(t,e){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,i){r.__proto__=i}||function(r,i){for(var o in i)Object.prototype.hasOwnProperty.call(i,o)&&(r[o]=i[o])})(t,e)};return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function r(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)}}(),P8=function(n){function t(e,r,i,o){var s=n.call(this,e)||this;return s.inversePixelTransform=r,s.frameState=i,s.context=o,s}return O8(t,n),t}(Qo);const Ik=P8;var A0="ol-hidden",$g="ol-unselectable",Zx="ol-control",Tk="ol-collapsed",k8=new RegExp(["^\\s*(?=(?:(?:[-a-z]+\\s*){0,2}(italic|oblique))?)","(?=(?:(?:[-a-z]+\\s*){0,2}(small-caps))?)","(?=(?:(?:[-a-z]+\\s*){0,2}(bold(?:er)?|lighter|[1-9]00 ))?)","(?:(?:normal|\\1|\\2|\\3)\\s*){0,3}((?:xx?-)?","(?:small|large)|medium|smaller|larger|[\\.\\d]+(?:\\%|in|[cem]m|ex|p[ctx]))","(?:\\s*\\/\\s*(normal|[\\.\\d]+(?:\\%|in|[cem]m|ex|p[ctx])?))","?\\s*([-,\\\"\\'\\sa-z]+?)\\s*$"].join(""),"i"),Ak=["style","variant","weight","size","lineHeight","family"],Rk=function(n){var t=n.match(k8);if(!t)return null;for(var e={lineHeight:"normal",size:"1.2em",style:"normal",weight:"normal",variant:"normal"},r=0,i=Ak.length;r<i;++r){var o=t[r+1];void 0!==o&&(e[Ak[r]]=o)}return e.families=e.family.split(/,\s?/),e};function to(n,t,e,r){var i;return i=e&&e.length?e.shift():p0?new OffscreenCanvas(n||300,t||300):document.createElement("canvas"),n&&(i.width=n),t&&(i.height=t),i.getContext("2d",r)}function Ok(n){var t=n.canvas;t.width=1,t.height=1,n.clearRect(0,0,1,1)}function Pk(n,t){var e=t.parentNode;e&&e.replaceChild(n,t)}function Yx(n){return n&&n.parentNode?n.parentNode.removeChild(n):null}var kk="10px sans-serif",Da="#000",R0="round",Wg=[],df="round",Zg="#000",Yg="center",O0="middle",fc=[0,0,0,0],Sa=new Ps;(new ff).setSize=function(){console.warn("labelCache is deprecated.")};var Xx,pf=null,Qx={},V8=function(){var o,s,t="32px ",e=["monospace","serif"],r=e.length,i="wmytzilWMYTZIL@#/&?$%10\uf013";function a(c,f,d){for(var g=!0,v=0;v<r;++v){var m=e[v];if(s=P0(c+" "+f+" "+t+m,i),d!=m){var y=P0(c+" "+f+" "+t+d+","+m,i);g=g&&y!=s}}return!!g}function l(){for(var c=!0,f=Sa.getKeys(),d=0,g=f.length;d<g;++d){var v=f[d];Sa.get(v)<100&&(a.apply(this,v.split("\n"))?(Hg(Qx),pf=null,Xx=void 0,Sa.set(v,100)):(Sa.set(v,Sa.get(v)+1,!0),c=!1))}c&&(clearInterval(o),o=void 0)}return function(c){var f=Rk(c);if(f)for(var d=f.families,g=0,v=d.length;g<v;++g){var m=d[g],y=f.style+"\n"+f.weight+"\n"+m;void 0===Sa.get(y)&&(Sa.set(y,100,!0),a(f.style,f.weight,m)||(Sa.set(y,0,!0),void 0===o&&(o=setInterval(l,32))))}}}(),B8=function(){var n;return function(t){var e=Qx[t];if(null==e){if(p0){var r=Rk(t),i=Lk(t,"\u017dg");e=(isNaN(Number(r.lineHeight))?1.2:Number(r.lineHeight))*(i.actualBoundingBoxAscent+i.actualBoundingBoxDescent)}else n||((n=document.createElement("div")).innerHTML="M",n.style.minHeight="0",n.style.maxHeight="none",n.style.height="auto",n.style.padding="0",n.style.border="none",n.style.position="absolute",n.style.display="block",n.style.left="-99999px"),n.style.font=t,document.body.appendChild(n),e=n.offsetHeight,document.body.removeChild(n);Qx[t]=e}return e}}();function Lk(n,t){return pf||(pf=to(1,1)),n!=Xx&&(pf.font=n,Xx=pf.font),pf.measureText(t)}function P0(n,t){return Lk(n,t).width}function Nk(n,t,e){if(t in e)return e[t];var r=t.split("\n").reduce(function(i,o){return Math.max(i,P0(n,o))},0);return e[t]=r,r}var H8=function(){var n=function(t,e){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,i){r.__proto__=i}||function(r,i){for(var o in i)Object.prototype.hasOwnProperty.call(i,o)&&(r[o]=i[o])})(t,e)};return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function r(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)}}(),z8=function(n){function t(e){var r=n.call(this,e)||this;r.fontChangeListenerKey_=bt(Sa,"propertychange",e.redrawText.bind(e)),r.element_=document.createElement("div");var i=r.element_.style;i.position="absolute",i.width="100%",i.height="100%",i.zIndex="0",r.element_.className=$g+" ol-layers";var o=e.getViewport();return o.insertBefore(r.element_,o.firstChild||null),r.children_=[],r.renderedVisible_=!0,r}return H8(t,n),t.prototype.dispatchRenderEvent=function(e,r){var i=this.getMap();if(i.hasListener(e)){var o=new Ik(e,void 0,r);i.dispatchEvent(o)}},t.prototype.disposeInternal=function(){pn(this.fontChangeListenerKey_),this.element_.parentNode.removeChild(this.element_),n.prototype.disposeInternal.call(this)},t.prototype.renderFrame=function(e){if(e){this.calculateMatrices2D(e),this.dispatchRenderEvent("precompose",e);var r=e.layerStatesArray.sort(function(v,m){return v.zIndex-m.zIndex}),i=e.viewState;this.children_.length=0;for(var o=[],s=null,a=0,l=r.length;a<l;++a){var c=r[a];e.layerIndex=a;var f=c.layer,d=f.getSourceState();if(!S0(c,i)||"ready"!=d&&"undefined"!=d)f.unrender();else{var g=f.render(e,s);!g||(g!==s&&(this.children_.push(g),s=g),"getDeclutter"in f&&o.push(f))}}for(a=o.length-1;a>=0;--a)o[a].renderDeclutter(e);(function N8(n,t){for(var e=n.childNodes,r=0;;++r){var i=e[r],o=t[r];if(!i&&!o)break;if(i!==o){if(!i){n.appendChild(o);continue}if(!o){n.removeChild(i),--r;continue}n.insertBefore(o,i)}}})(this.element_,this.children_),this.dispatchRenderEvent("postcompose",e),this.renderedVisible_||(this.element_.style.display="",this.renderedVisible_=!0),this.scheduleExpireIconCache(e)}else this.renderedVisible_&&(this.element_.style.display="none",this.renderedVisible_=!1)},t.prototype.forEachLayerAtPixel=function(e,r,i,o,s){for(var a=r.viewState,l=r.layerStatesArray,f=l.length-1;f>=0;--f){var d=l[f],g=d.layer;if(g.hasRenderer()&&S0(d,a)&&s(g)){var m=g.getRenderer().getDataAtPixel(e,r,i);if(m){var y=o(g,m);if(y)return y}}}},t}(R8);const $8=z8;var Fk=function(){var n=function(t,e){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,i){r.__proto__=i}||function(r,i){for(var o in i)Object.prototype.hasOwnProperty.call(i,o)&&(r[o]=i[o])})(t,e)};return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function r(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)}}(),k0=function(n){function t(e,r,i){var o=n.call(this,e)||this;return o.element=r,o.index=i,o}return Fk(t,n),t}(Qo),W8=function(n){function t(e,r){var i=n.call(this)||this;if(i.unique_=!!(r||{}).unique,i.array_=e||[],i.unique_)for(var s=0,a=i.array_.length;s<a;++s)i.assertUnique_(i.array_[s],s);return i.updateLength_(),i}return Fk(t,n),t.prototype.clear=function(){for(;this.getLength()>0;)this.pop()},t.prototype.extend=function(e){for(var r=0,i=e.length;r<i;++r)this.push(e[r]);return this},t.prototype.forEach=function(e){for(var r=this.array_,i=0,o=r.length;i<o;++i)e(r[i],i,r)},t.prototype.getArray=function(){return this.array_},t.prototype.item=function(e){return this.array_[e]},t.prototype.getLength=function(){return this.get("length")},t.prototype.insertAt=function(e,r){this.unique_&&this.assertUnique_(r),this.array_.splice(e,0,r),this.updateLength_(),this.dispatchEvent(new k0("add",r,e))},t.prototype.pop=function(){return this.removeAt(this.getLength()-1)},t.prototype.push=function(e){this.unique_&&this.assertUnique_(e);var r=this.getLength();return this.insertAt(r,e),this.getLength()},t.prototype.remove=function(e){for(var r=this.array_,i=0,o=r.length;i<o;++i)if(r[i]===e)return this.removeAt(i)},t.prototype.removeAt=function(e){var r=this.array_[e];return this.array_.splice(e,1),this.updateLength_(),this.dispatchEvent(new k0("remove",r,e)),r},t.prototype.setAt=function(e,r){var i=this.getLength();if(e<i){this.unique_&&this.assertUnique_(r,e);var o=this.array_[e];this.array_[e]=r,this.dispatchEvent(new k0("remove",o,e)),this.dispatchEvent(new k0("add",r,e))}else{for(var s=i;s<e;++s)this.insertAt(s,void 0);this.insertAt(e,r)}},t.prototype.updateLength_=function(){this.set("length",this.array_.length)},t.prototype.assertUnique_=function(e,r){for(var i=0,o=this.array_.length;i<o;++i)if(this.array_[i]===e&&i!==r)throw new ok(58)},t}(Ps);const ci=W8;var Bk=function(){var n=function(t,e){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,i){r.__proto__=i}||function(r,i){for(var o in i)Object.prototype.hasOwnProperty.call(i,o)&&(r[o]=i[o])})(t,e)};return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function r(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)}}(),xl=function(n){function t(e,r){var i=n.call(this,e)||this;return i.layer=r,i}return Bk(t,n),t}(Qo),q8=function(n){function t(e){var r=this,i=e||{},o=In({},i);delete o.layers;var s=i.layers;return(r=n.call(this,o)||this).layersListenerKeys_=[],r.listenerKeys_={},r.addChangeListener("layers",r.handleLayersChanged_),s?Array.isArray(s)?s=new ci(s.slice(),{unique:!0}):ct("function"==typeof s.getArray,43):s=new ci(void 0,{unique:!0}),r.setLayers(s),r}return Bk(t,n),t.prototype.handleLayerChange_=function(){this.changed()},t.prototype.handleLayersChanged_=function(){this.layersListenerKeys_.forEach(pn),this.layersListenerKeys_.length=0;var e=this.getLayers();for(var r in this.layersListenerKeys_.push(bt(e,"add",this.handleLayersAdd_,this),bt(e,"remove",this.handleLayersRemove_,this)),this.listenerKeys_)this.listenerKeys_[r].forEach(pn);Hg(this.listenerKeys_);for(var i=e.getArray(),o=0,s=i.length;o<s;o++){var a=i[o];this.registerLayerListeners_(a),this.dispatchEvent(new xl("addlayer",a))}this.changed()},t.prototype.registerLayerListeners_=function(e){var r=[bt(e,"propertychange",this.handleLayerChange_,this),bt(e,"change",this.handleLayerChange_,this)];e instanceof t&&r.push(bt(e,"addlayer",this.handleLayerGroupAdd_,this),bt(e,"removelayer",this.handleLayerGroupRemove_,this)),this.listenerKeys_[kt(e)]=r},t.prototype.handleLayerGroupAdd_=function(e){this.dispatchEvent(new xl("addlayer",e.layer))},t.prototype.handleLayerGroupRemove_=function(e){this.dispatchEvent(new xl("removelayer",e.layer))},t.prototype.handleLayersAdd_=function(e){var r=e.element;this.registerLayerListeners_(r),this.dispatchEvent(new xl("addlayer",r)),this.changed()},t.prototype.handleLayersRemove_=function(e){var r=e.element,i=kt(r);this.listenerKeys_[i].forEach(pn),delete this.listenerKeys_[i],this.dispatchEvent(new xl("removelayer",r)),this.changed()},t.prototype.getLayers=function(){return this.get("layers")},t.prototype.setLayers=function(e){var r=this.getLayers();if(r)for(var i=r.getArray(),o=0,s=i.length;o<s;++o)this.dispatchEvent(new xl("removelayer",i[o]));this.set("layers",e)},t.prototype.getLayersArray=function(e){var r=void 0!==e?e:[];return this.getLayers().forEach(function(i){i.getLayersArray(r)}),r},t.prototype.getLayerStatesArray=function(e){var r=void 0!==e?e:[],i=r.length;this.getLayers().forEach(function(f){f.getLayerStatesArray(r)});var o=this.getLayerState(),s=o.zIndex;!e&&void 0===o.zIndex&&(s=0);for(var a=i,l=r.length;a<l;a++){var c=r[a];c.opacity*=o.opacity,c.visible=c.visible&&o.visible,c.maxResolution=Math.min(c.maxResolution,o.maxResolution),c.minResolution=Math.max(c.minResolution,o.minResolution),c.minZoom=Math.max(c.minZoom,o.minZoom),c.maxZoom=Math.min(c.maxZoom,o.maxZoom),void 0!==o.extent&&(c.extent=void 0!==c.extent?cf(c.extent,o.extent):o.extent),void 0===c.zIndex&&(c.zIndex=s)}return r},t.prototype.getSourceState=function(){return"ready"},t}(xk);const L0=q8;var K8=function(){var n=function(t,e){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,i){r.__proto__=i}||function(r,i){for(var o in i)Object.prototype.hasOwnProperty.call(i,o)&&(r[o]=i[o])})(t,e)};return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function r(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)}}(),Z8=function(n){function t(e,r,i){var o=n.call(this,e)||this;return o.map=r,o.frameState=void 0!==i?i:null,o}return K8(t,n),t}(Qo);const gf=Z8;var Y8=function(){var n=function(t,e){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,i){r.__proto__=i}||function(r,i){for(var o in i)Object.prototype.hasOwnProperty.call(i,o)&&(r[o]=i[o])})(t,e)};return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function r(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)}}(),X8=function(n){function t(e,r,i,o,s,a){var l=n.call(this,e,r,s)||this;return l.originalEvent=i,l.pixel_=null,l.coordinate_=null,l.dragging=void 0!==o&&o,l.activePointers=a,l}return Y8(t,n),Object.defineProperty(t.prototype,"pixel",{get:function(){return this.pixel_||(this.pixel_=this.map.getEventPixel(this.originalEvent)),this.pixel_},set:function(e){this.pixel_=e},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"coordinate",{get:function(){return this.coordinate_||(this.coordinate_=this.map.getCoordinateFromPixel(this.pixel)),this.coordinate_},set:function(e){this.coordinate_=e},enumerable:!1,configurable:!0}),t.prototype.preventDefault=function(){n.prototype.preventDefault.call(this),"preventDefault"in this.originalEvent&&this.originalEvent.preventDefault()},t.prototype.stopPropagation=function(){n.prototype.stopPropagation.call(this),"stopPropagation"in this.originalEvent&&this.originalEvent.stopPropagation()},t}(gf);const Ia=X8,Lt={SINGLECLICK:"singleclick",CLICK:"click",DBLCLICK:"dblclick",POINTERDRAG:"pointerdrag",POINTERMOVE:"pointermove",POINTERDOWN:"pointerdown",POINTERUP:"pointerup",POINTEROVER:"pointerover",POINTEROUT:"pointerout",POINTERENTER:"pointerenter",POINTERLEAVE:"pointerleave",POINTERCANCEL:"pointercancel"};var Q8=function(){var n=function(t,e){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,i){r.__proto__=i}||function(r,i){for(var o in i)Object.prototype.hasOwnProperty.call(i,o)&&(r[o]=i[o])})(t,e)};return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function r(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)}}(),J8=function(n){function t(e,r){var i=n.call(this,e)||this;i.map_=e,i.emulateClicks_=!1,i.dragging_=!1,i.dragListenerKeys_=[],i.moveTolerance_=void 0===r?1:r,i.down_=null;var o=i.map_.getViewport();return i.activePointers_=[],i.trackedTouches_={},i.element_=o,i.pointerdownListenerKey_=bt(o,"pointerdown",i.handlePointerDown_,i),i.relayedListenerKey_=bt(o,"pointermove",i.relayMoveEvent_,i),i.boundHandleTouchMove_=i.handleTouchMove_.bind(i),i.element_.addEventListener("touchmove",i.boundHandleTouchMove_,!!ik&&{passive:!1}),i}return Q8(t,n),t.prototype.emulateClick_=function(e){var r=new Ia(Lt.CLICK,this.map_,e);this.dispatchEvent(r),void 0!==this.clickTimeoutId_?(clearTimeout(this.clickTimeoutId_),this.clickTimeoutId_=void 0,r=new Ia(Lt.DBLCLICK,this.map_,e),this.dispatchEvent(r)):this.clickTimeoutId_=setTimeout(function(){this.clickTimeoutId_=void 0;var i=new Ia(Lt.SINGLECLICK,this.map_,e);this.dispatchEvent(i)}.bind(this),250)},t.prototype.updateActivePointers_=function(e){var r=e,i=r.pointerId;if(r.type==Lt.POINTERUP||r.type==Lt.POINTERCANCEL){for(var o in delete this.trackedTouches_[i],this.trackedTouches_)if(this.trackedTouches_[o].target!==r.target){delete this.trackedTouches_[o];break}}else(r.type==Lt.POINTERDOWN||r.type==Lt.POINTERMOVE)&&(this.trackedTouches_[i]=r);this.activePointers_=Ck(this.trackedTouches_)},t.prototype.handlePointerUp_=function(e){this.updateActivePointers_(e);var r=new Ia(Lt.POINTERUP,this.map_,e,void 0,void 0,this.activePointers_);this.dispatchEvent(r),this.emulateClicks_&&!r.defaultPrevented&&!this.dragging_&&this.isMouseActionButton_(e)&&this.emulateClick_(this.down_),0===this.activePointers_.length&&(this.dragListenerKeys_.forEach(pn),this.dragListenerKeys_.length=0,this.dragging_=!1,this.down_=null)},t.prototype.isMouseActionButton_=function(e){return 0===e.button},t.prototype.handlePointerDown_=function(e){this.emulateClicks_=0===this.activePointers_.length,this.updateActivePointers_(e);var r=new Ia(Lt.POINTERDOWN,this.map_,e,void 0,void 0,this.activePointers_);for(var i in this.dispatchEvent(r),this.down_={},e){var o=e[i];this.down_[i]="function"==typeof o?lc:o}if(0===this.dragListenerKeys_.length){var s=this.map_.getOwnerDocument();this.dragListenerKeys_.push(bt(s,Lt.POINTERMOVE,this.handlePointerMove_,this),bt(s,Lt.POINTERUP,this.handlePointerUp_,this),bt(this.element_,Lt.POINTERCANCEL,this.handlePointerUp_,this)),this.element_.getRootNode&&this.element_.getRootNode()!==s&&this.dragListenerKeys_.push(bt(this.element_.getRootNode(),Lt.POINTERUP,this.handlePointerUp_,this))}},t.prototype.handlePointerMove_=function(e){if(this.isMoving_(e)){this.updateActivePointers_(e),this.dragging_=!0;var r=new Ia(Lt.POINTERDRAG,this.map_,e,this.dragging_,void 0,this.activePointers_);this.dispatchEvent(r)}},t.prototype.relayMoveEvent_=function(e){this.originalPointerMoveEvent_=e;var r=!(!this.down_||!this.isMoving_(e));this.dispatchEvent(new Ia(Lt.POINTERMOVE,this.map_,e,r))},t.prototype.handleTouchMove_=function(e){var r=this.originalPointerMoveEvent_;(!r||r.defaultPrevented)&&("boolean"!=typeof e.cancelable||!0===e.cancelable)&&e.preventDefault()},t.prototype.isMoving_=function(e){return this.dragging_||Math.abs(e.clientX-this.down_.clientX)>this.moveTolerance_||Math.abs(e.clientY-this.down_.clientY)>this.moveTolerance_},t.prototype.disposeInternal=function(){this.relayedListenerKey_&&(pn(this.relayedListenerKey_),this.relayedListenerKey_=null),this.element_.removeEventListener("touchmove",this.boundHandleTouchMove_),this.pointerdownListenerKey_&&(pn(this.pointerdownListenerKey_),this.pointerdownListenerKey_=null),this.dragListenerKeys_.forEach(pn),this.dragListenerKeys_.length=0,this.element_=null,n.prototype.disposeInternal.call(this)},t}(ff);const ez=J8;var N0=1/0,tz=function(){function n(t,e){this.priorityFunction_=t,this.keyFunction_=e,this.elements_=[],this.priorities_=[],this.queuedElements_={}}return n.prototype.clear=function(){this.elements_.length=0,this.priorities_.length=0,Hg(this.queuedElements_)},n.prototype.dequeue=function(){var t=this.elements_,e=this.priorities_,r=t[0];1==t.length?(t.length=0,e.length=0):(t[0]=t.pop(),e[0]=e.pop(),this.siftUp_(0));var i=this.keyFunction_(r);return delete this.queuedElements_[i],r},n.prototype.enqueue=function(t){ct(!(this.keyFunction_(t)in this.queuedElements_),31);var e=this.priorityFunction_(t);return e!=N0&&(this.elements_.push(t),this.priorities_.push(e),this.queuedElements_[this.keyFunction_(t)]=!0,this.siftDown_(0,this.elements_.length-1),!0)},n.prototype.getCount=function(){return this.elements_.length},n.prototype.getLeftChildIndex_=function(t){return 2*t+1},n.prototype.getRightChildIndex_=function(t){return 2*t+2},n.prototype.getParentIndex_=function(t){return t-1>>1},n.prototype.heapify_=function(){var t;for(t=(this.elements_.length>>1)-1;t>=0;t--)this.siftUp_(t)},n.prototype.isEmpty=function(){return 0===this.elements_.length},n.prototype.isKeyQueued=function(t){return t in this.queuedElements_},n.prototype.isQueued=function(t){return this.isKeyQueued(this.keyFunction_(t))},n.prototype.siftUp_=function(t){for(var e=this.elements_,r=this.priorities_,i=e.length,o=e[t],s=r[t],a=t;t<i>>1;){var l=this.getLeftChildIndex_(t),c=this.getRightChildIndex_(t),f=c<i&&r[c]<r[l]?c:l;e[t]=e[f],r[t]=r[f],t=f}e[t]=o,r[t]=s,this.siftDown_(a,t)},n.prototype.siftDown_=function(t,e){for(var r=this.elements_,i=this.priorities_,o=r[e],s=i[e];e>t;){var a=this.getParentIndex_(e);if(!(i[a]>s))break;r[e]=r[a],i[e]=i[a],e=a}r[e]=o,i[e]=s},n.prototype.reprioritize=function(){var s,a,l,t=this.priorityFunction_,e=this.elements_,r=this.priorities_,i=0,o=e.length;for(a=0;a<o;++a)(l=t(s=e[a]))==N0?delete this.queuedElements_[this.keyFunction_(s)]:(r[i]=l,e[i++]=s);e.length=i,r.length=i,this.heapify_()},n}();const nz=tz;var rz=function(){var n=function(t,e){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,i){r.__proto__=i}||function(r,i){for(var o in i)Object.prototype.hasOwnProperty.call(i,o)&&(r[o]=i[o])})(t,e)};return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function r(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)}}(),iz=function(n){function t(e,r){var i=n.call(this,function(o){return e.apply(null,o)},function(o){return o[0].getKey()})||this;return i.boundHandleTileChange_=i.handleTileChange.bind(i),i.tileChangeCallback_=r,i.tilesLoading_=0,i.tilesLoadingKeys_={},i}return rz(t,n),t.prototype.enqueue=function(e){var r=n.prototype.enqueue.call(this,e);return r&&e[0].addEventListener("change",this.boundHandleTileChange_),r},t.prototype.getTilesLoading=function(){return this.tilesLoading_},t.prototype.handleTileChange=function(e){var r=e.target,i=r.getState();if(2===i||3===i||4===i){r.removeEventListener("change",this.boundHandleTileChange_);var o=r.getKey();o in this.tilesLoadingKeys_&&(delete this.tilesLoadingKeys_[o],--this.tilesLoading_),this.tileChangeCallback_()}},t.prototype.loadMoreTiles=function(e,r){for(var s,a,i=0;this.tilesLoading_<e&&i<r&&this.getCount()>0;)a=(s=this.dequeue()[0]).getKey(),0===s.getState()&&!(a in this.tilesLoadingKeys_)&&(this.tilesLoadingKeys_[a]=!0,++this.tilesLoading_,++i,s.load())},t}(nz);const oz=iz;var Jo={RADIANS:"radians",DEGREES:"degrees",FEET:"ft",METERS:"m",PIXELS:"pixels",TILE_PIXELS:"tile-pixels",USFEET:"us-ft"},no={};no[Jo.RADIANS]=6370997/(2*Math.PI),no[Jo.DEGREES]=2*Math.PI*6370997/360,no[Jo.FEET]=.3048,no[Jo.METERS]=1,no[Jo.USFEET]=1200/3937;const ro=Jo,es={CENTER:"center",RESOLUTION:"resolution",ROTATION:"rotation"};var uz=function(){function n(t){this.code_=t.code,this.units_=t.units,this.extent_=void 0!==t.extent?t.extent:null,this.worldExtent_=void 0!==t.worldExtent?t.worldExtent:null,this.axisOrientation_=void 0!==t.axisOrientation?t.axisOrientation:"enu",this.global_=void 0!==t.global&&t.global,this.canWrapX_=!(!this.global_||!this.extent_),this.getPointResolutionFunc_=t.getPointResolution,this.defaultTileGrid_=null,this.metersPerUnit_=t.metersPerUnit}return n.prototype.canWrapX=function(){return this.canWrapX_},n.prototype.getCode=function(){return this.code_},n.prototype.getExtent=function(){return this.extent_},n.prototype.getUnits=function(){return this.units_},n.prototype.getMetersPerUnit=function(){return this.metersPerUnit_||no[this.units_]},n.prototype.getWorldExtent=function(){return this.worldExtent_},n.prototype.getAxisOrientation=function(){return this.axisOrientation_},n.prototype.isGlobal=function(){return this.global_},n.prototype.setGlobal=function(t){this.global_=t,this.canWrapX_=!(!t||!this.extent_)},n.prototype.getDefaultTileGrid=function(){return this.defaultTileGrid_},n.prototype.setDefaultTileGrid=function(t){this.defaultTileGrid_=t},n.prototype.setExtent=function(t){this.extent_=t,this.canWrapX_=!(!this.global_||!t)},n.prototype.setWorldExtent=function(t){this.worldExtent_=t},n.prototype.setGetPointResolution=function(t){this.getPointResolutionFunc_=t},n.prototype.getPointResolutionFunc=function(){return this.getPointResolutionFunc_},n}();const nb=uz;var cz=function(){var n=function(t,e){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,i){r.__proto__=i}||function(r,i){for(var o in i)Object.prototype.hasOwnProperty.call(i,o)&&(r[o]=i[o])})(t,e)};return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function r(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)}}(),Qg=6378137,vf=Math.PI*Qg,hz=[-vf,-vf,vf,vf],fz=[-180,-85,180,85],F0=Qg*Math.log(Math.tan(Math.PI/2)),mf=function(n){function t(e){return n.call(this,{code:e,units:ro.METERS,extent:hz,global:!0,worldExtent:fz,getPointResolution:function(r,i){return r/s8(i[1]/Qg)}})||this}return cz(t,n),t}(nb),Uk=[new mf("EPSG:3857"),new mf("EPSG:102100"),new mf("EPSG:102113"),new mf("EPSG:900913"),new mf("http://www.opengis.net/def/crs/EPSG/0/3857"),new mf("http://www.opengis.net/gml/srs/epsg.xml#3857")];function dz(n,t,e){var r=n.length,i=e>1?e:2,o=t;void 0===o&&(o=i>2?n.slice():new Array(r));for(var s=0;s<r;s+=i){o[s]=vf*n[s]/180;var a=Qg*Math.log(Math.tan(Math.PI*(+n[s+1]+90)/360));a>F0?a=F0:a<-F0&&(a=-F0),o[s+1]=a}return o}function pz(n,t,e){var r=n.length,i=e>1?e:2,o=t;void 0===o&&(o=i>2?n.slice():new Array(r));for(var s=0;s<r;s+=i)o[s]=180*n[s]/vf,o[s+1]=360*Math.atan(Math.exp(n[s+1]/Qg))/Math.PI-90;return o}var gz=function(){var n=function(t,e){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,i){r.__proto__=i}||function(r,i){for(var o in i)Object.prototype.hasOwnProperty.call(i,o)&&(r[o]=i[o])})(t,e)};return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function r(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)}}(),jk=[-180,-90,180,90],mz=6378137*Math.PI/180,dc=function(n){function t(e,r){return n.call(this,{code:e,units:ro.DEGREES,extent:jk,axisOrientation:r,global:!0,metersPerUnit:mz,worldExtent:jk})||this}return gz(t,n),t}(nb),Gk=[new dc("CRS:84"),new dc("EPSG:4326","neu"),new dc("urn:ogc:def:crs:OGC:1.3:CRS84"),new dc("urn:ogc:def:crs:OGC:2:84"),new dc("http://www.opengis.net/def/crs/OGC/1.3/CRS84"),new dc("http://www.opengis.net/gml/srs/epsg.xml#4326","neu"),new dc("http://www.opengis.net/def/crs/EPSG/0/4326","neu")],V0={},ts={};function _f(n,t,e){var r=n.getCode(),i=t.getCode();r in ts||(ts[r]={}),ts[r][i]=e}function Hk(n,t){var e;return n in ts&&t in ts[n]&&(e=ts[n][t]),e}function rb(n,t,e){var r=e||6371008.8,i=C0(n[1]),o=C0(t[1]),s=(o-i)/2,a=C0(t[0]-n[0])/2,l=Math.sin(s)*Math.sin(s)+Math.sin(a)*Math.sin(a)*Math.cos(i)*Math.cos(o);return 2*r*Math.atan2(Math.sqrt(l),Math.sqrt(1-l))}var ob=!0;function sb(n,t,e){var r;if(void 0!==t){for(var i=0,o=n.length;i<o;++i)t[i]=n[i];r=t}else r=n.slice();return r}function $k(n,t,e){if(void 0!==t&&n!==t){for(var r=0,i=n.length;r<i;++r)t[r]=n[r];n=t}return n}function Wk(n){(function yz(n,t){V0[n]=t})(n.getCode(),n),_f(n,n,sb)}function Yn(n){return"string"==typeof n?function _z(n){return V0[n]||V0[n.replace(/urn:(x-)?ogc:def:crs:EPSG:(.*:)?(\w+)$/,"EPSG:$3")]||null}(n):n||null}function j0(n,t,e,r){var i,o=(n=Yn(n)).getPointResolutionFunc();if(o)i=o(t,e),r&&r!==n.getUnits()&&(s=n.getMetersPerUnit())&&(i=i*s/no[r]);else{var a=n.getUnits();if(a==ro.DEGREES&&!r||r==ro.DEGREES)i=t;else{var s,l=Jg(n,Yn("EPSG:4326"));if(l===$k&&a!==ro.DEGREES)i=t*n.getMetersPerUnit();else{var c=[e[0]-t/2,e[1],e[0]+t/2,e[1],e[0],e[1]-t/2,e[0],e[1]+t/2];i=(rb((c=l(c,c,2)).slice(0,2),c.slice(2,4))+rb(c.slice(4,6),c.slice(6,8)))/2}void 0!==(s=r?no[r]:n.getMetersPerUnit())&&(i/=s)}}return i}function ab(n){(function Ez(n){n.forEach(Wk)})(n),n.forEach(function(t){n.forEach(function(e){t!==e&&_f(t,e,sb)})})}function lb(n,t){return n?"string"==typeof n?Yn(n):n:Yn(t)}function qk(n){return function(t,e,r){for(var i=t.length,o=void 0!==r?r:2,s=void 0!==e?e:new Array(i),a=0;a<i;a+=o)for(var l=n(t.slice(a,a+o)),c=l.length,f=0,d=o;f<d;++f)s[a+f]=f>=c?t[a+f]:l[f];return s}}function xz(n,t,e,r){var i=Yn(n),o=Yn(t);_f(i,o,qk(e)),_f(o,i,qk(r))}function yf(n,t){if(n===t)return!0;var e=n.getUnits()===t.getUnits();return(n.getCode()===t.getCode()||Jg(n,t)===sb)&&e}function Jg(n,t){var i=Hk(n.getCode(),t.getCode());return i||(i=$k),i}function ev(n,t){return Jg(Yn(n),Yn(t))}function Cf(n,t,e){return ev(t,e)(n,void 0,n.length)}function ub(n,t,e,r){return function i8(n,t,e,r){var i=[];if(r>1)for(var o=n[2]-n[0],s=n[3]-n[1],a=0;a<r;++a)i.push(n[0]+o*a/r,n[1],n[2],n[1]+s*a/r,n[2]-o*a/r,n[3],n[0],n[3]-s*a/r);else i=[n[0],n[1],n[2],n[1],n[2],n[3],n[0],n[3]];t(i,i,2);for(var l=[],c=[],f=(a=0,i.length);a<f;a+=2)l.push(i[a]),c.push(i[a+1]);return function Y5(n,t,e){return Xo(Math.min.apply(null,n),Math.min.apply(null,t),Math.max.apply(null,n),Math.max.apply(null,t),e)}(l,c,e)}(n,ev(t,e),void 0,r)}var hi=null;function cb(){return hi}function hb(n,t){return n}function ns(n,t){return ob&&!T0(n,[0,0])&&n[0]>=-180&&n[0]<=180&&n[1]>=-90&&n[1]<=90&&(ob=!1,console.warn("Call useGeographic() from ol/proj once to work with [longitude, latitude] coordinates.")),n}function fb(n,t){return n}function pc(n,t){return n}function Dz(n,t){return n}function Kk(n,t,e){return function(r){var i,o;if(n.canWrapX()){var s=n.getExtent(),a=Yt(s);(o=Sk(r=r.slice(0),n,a))&&(r[0]=r[0]-o*a),r[0]=Sn(r[0],s[0],s[2]),r[1]=Sn(r[1],s[1],s[3]),i=e(r)}else i=e(r);return o&&t.canWrapX()&&(i[0]+=o*Yt(t.getExtent())),i}}function Zk(n,t,e){return function(r,i,o,s,a){if(r){if(!i&&!t)return r;var l=t?0:o[0]*i,c=t?0:o[1]*i,f=a?a[0]:0,d=a?a[1]:0,g=n[0]+l/2+f,v=n[2]-l/2+f,m=n[1]+c/2+d,y=n[3]-c/2+d;g>v&&(v=g=(v+g)/2),m>y&&(y=m=(y+m)/2);var w=Sn(r[0],g,v),x=Sn(r[1],m,y);if(s&&e&&i){var E=30*i;w+=-E*Math.log(1+Math.max(0,g-r[0])/E)+E*Math.log(1+Math.max(0,r[0]-v)/E),x+=-E*Math.log(1+Math.max(0,m-r[1])/E)+E*Math.log(1+Math.max(0,r[1]-y)/E)}return[w,x]}}}function Iz(n){return n}function db(n,t,e,r){var i=Yt(t)/e[0],o=eo(t)/e[1];return r?Math.min(n,Math.max(i,o)):Math.min(n,Math.min(i,o))}function pb(n,t,e){var r=Math.min(n,t);return r*=Math.log(1+50*Math.max(0,n/t-1))/50+1,e&&(r=Math.max(r,e),r/=Math.log(1+50*Math.max(0,e/n-1))/50+1),Sn(r,e/2,2*t)}function Yk(n,t,e,r,i){return function(o,s,a,l){if(void 0!==o){var c=r?db(n,r,a,i):n;return(void 0===e||e)&&l?pb(o,c,t):Sn(o,t,c)}}}function gb(n){if(void 0!==n)return 0}function Xk(n){if(void 0!==n)return n}function Qk(n){return Math.pow(n,3)}function wf(n){return 1-Qk(1-n)}function vb(n){return 3*n*n-2*n*n*n}function Pz(n){return n}!function Sz(){ab(Uk),ab(Gk),function Mz(n,t,e,r){n.forEach(function(i){t.forEach(function(o){_f(i,o,e),_f(o,i,r)})})}(Gk,Uk,dz,pz)}();function gc(n,t,e,r,i,o){for(var s=o||[],a=0,l=t;l<e;l+=r){var c=n[l],f=n[l+1];s[a++]=i[0]*c+i[2]*f+i[4],s[a++]=i[1]*c+i[3]*f+i[5]}return o&&s.length!=a&&(s.length=a),s}function mb(n,t,e,r,i,o,s){for(var a=s||[],l=Math.cos(i),c=Math.sin(i),f=o[0],d=o[1],g=0,v=t;v<e;v+=r){var m=n[v]-f,y=n[v+1]-d;a[g++]=f+m*l-y*c,a[g++]=d+m*c+y*l;for(var w=v+2;w<v+r;++w)a[g++]=n[w]}return s&&a.length!=g&&(a.length=g),a}function Jk(n,t,e,r,i,o,s){for(var a=s||[],l=0,c=t;c<e;c+=r){a[l++]=n[c]+i,a[l++]=n[c+1]+o;for(var f=c+2;f<c+r;++f)a[l++]=n[f]}return s&&a.length!=l&&(a.length=l),a}var Lz=function(){var n=function(t,e){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,i){r.__proto__=i}||function(r,i){for(var o in i)Object.prototype.hasOwnProperty.call(i,o)&&(r[o]=i[o])})(t,e)};return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function r(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)}}(),eL=[1,0,0,1,0,0],Nz=function(n){function t(){var e=n.call(this)||this;return e.extent_=[1/0,1/0,-1/0,-1/0],e.extentRevision_=-1,e.simplifiedGeometryMaxMinSquaredTolerance=0,e.simplifiedGeometryRevision=0,e.simplifyTransformedInternal=function V5(n){var e,r,i,t=!1;return function(){var o=Array.prototype.slice.call(arguments);return(!t||this!==i||!ac(o,r))&&(t=!0,i=this,r=o,e=n.apply(this,arguments)),e}}(function(r,i,o){if(!o)return this.getSimplifiedGeometry(i);var s=this.clone();return s.applyTransform(o),s.getSimplifiedGeometry(i)}),e}return Lz(t,n),t.prototype.simplifyTransformed=function(e,r){return this.simplifyTransformedInternal(this.getRevision(),e,r)},t.prototype.clone=function(){return vt()},t.prototype.closestPointXY=function(e,r,i,o){return vt()},t.prototype.containsXY=function(e,r){var i=this.getClosestPoint([e,r]);return i[0]===e&&i[1]===r},t.prototype.getClosestPoint=function(e,r){var i=r||[NaN,NaN];return this.closestPointXY(e[0],e[1],i,1/0),i},t.prototype.intersectsCoordinate=function(e){return this.containsXY(e[0],e[1])},t.prototype.computeExtent=function(e){return vt()},t.prototype.getExtent=function(e){if(this.extentRevision_!=this.getRevision()){var r=this.computeExtent(this.extent_);(isNaN(r[0])||isNaN(r[1]))&&af(r),this.extentRevision_=this.getRevision()}return function n8(n,t){return t?(t[0]=n[0],t[1]=n[1],t[2]=n[2],t[3]=n[3],t):n}(this.extent_,e)},t.prototype.rotate=function(e,r){vt()},t.prototype.scale=function(e,r,i){vt()},t.prototype.simplify=function(e){return this.getSimplifiedGeometry(e*e)},t.prototype.getSimplifiedGeometry=function(e){return vt()},t.prototype.getType=function(){return vt()},t.prototype.applyTransform=function(e){vt()},t.prototype.intersectsExtent=function(e){return vt()},t.prototype.translate=function(e,r){vt()},t.prototype.transform=function(e,r){var i=Yn(e),o=i.getUnits()==ro.TILE_PIXELS?function(s,a,l){var c=i.getExtent(),f=i.getWorldExtent(),d=eo(f)/eo(c);return Os(eL,f[0],f[3],d,-d,0,0,0),gc(s,0,s.length,l,eL,a),ev(i,r)(s,a,l)}:ev(i,r);return this.applyTransform(o),this},t}(Ps);const Fz=Nz;var Vz=function(){var n=function(t,e){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,i){r.__proto__=i}||function(r,i){for(var o in i)Object.prototype.hasOwnProperty.call(i,o)&&(r[o]=i[o])})(t,e)};return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function r(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)}}(),Bz=function(n){function t(){var e=n.call(this)||this;return e.layout="XY",e.stride=2,e.flatCoordinates=null,e}return Vz(t,n),t.prototype.computeExtent=function(e){return uk(this.flatCoordinates,0,this.flatCoordinates.length,this.stride,e)},t.prototype.getCoordinates=function(){return vt()},t.prototype.getFirstCoordinate=function(){return this.flatCoordinates.slice(0,this.stride)},t.prototype.getFlatCoordinates=function(){return this.flatCoordinates},t.prototype.getLastCoordinate=function(){return this.flatCoordinates.slice(this.flatCoordinates.length-this.stride)},t.prototype.getLayout=function(){return this.layout},t.prototype.getSimplifiedGeometry=function(e){if(this.simplifiedGeometryRevision!==this.getRevision()&&(this.simplifiedGeometryMaxMinSquaredTolerance=0,this.simplifiedGeometryRevision=this.getRevision()),e<0||0!==this.simplifiedGeometryMaxMinSquaredTolerance&&e<=this.simplifiedGeometryMaxMinSquaredTolerance)return this;var r=this.getSimplifiedGeometryInternal(e);return r.getFlatCoordinates().length<this.flatCoordinates.length?r:(this.simplifiedGeometryMaxMinSquaredTolerance=e,this)},t.prototype.getSimplifiedGeometryInternal=function(e){return this},t.prototype.getStride=function(){return this.stride},t.prototype.setFlatCoordinates=function(e,r){this.stride=G0(e),this.layout=e,this.flatCoordinates=r},t.prototype.setCoordinates=function(e,r){vt()},t.prototype.setLayout=function(e,r,i){var o;if(e)o=G0(e);else{for(var s=0;s<i;++s){if(0===r.length)return this.layout="XY",void(this.stride=2);r=r[0]}e=function Uz(n){var t;return 2==n?t="XY":3==n?t="XYZ":4==n&&(t="XYZM"),t}(o=r.length)}this.layout=e,this.stride=o},t.prototype.applyTransform=function(e){this.flatCoordinates&&(e(this.flatCoordinates,this.flatCoordinates,this.stride),this.changed())},t.prototype.rotate=function(e,r){var i=this.getFlatCoordinates();if(i){var o=this.getStride();mb(i,0,i.length,o,e,r,i),this.changed()}},t.prototype.scale=function(e,r,i){var o=r;void 0===o&&(o=e);var s=i;s||(s=uf(this.getExtent()));var a=this.getFlatCoordinates();if(a){var l=this.getStride();(function kz(n,t,e,r,i,o,s,a){for(var l=a||[],c=s[0],f=s[1],d=0,g=t;g<e;g+=r){var m=n[g+1]-f;l[d++]=c+i*(n[g]-c),l[d++]=f+o*m;for(var y=g+2;y<g+r;++y)l[d++]=n[y]}a&&l.length!=d&&(l.length=d)})(a,0,a.length,l,e,o,s,a),this.changed()}},t.prototype.translate=function(e,r){var i=this.getFlatCoordinates();if(i){var o=this.getStride();Jk(i,0,i.length,o,e,r,i),this.changed()}},t}(Fz);function G0(n){var t;return"XY"==n?t=2:"XYZ"==n||"XYM"==n?t=3:"XYZM"==n&&(t=4),t}const Dl=Bz;function tL(n,t,e,r,i,o,s){var d,a=n[t],l=n[t+1],c=n[e]-a,f=n[e+1]-l;if(0===c&&0===f)d=t;else{var g=((i-a)*c+(o-l)*f)/(c*c+f*f);if(g>1)d=e;else{if(g>0){for(var v=0;v<r;++v)s[v]=ba(n[t+v],n[e+v],g);return void(s.length=r)}d=t}}for(v=0;v<r;++v)s[v]=n[d+v];s.length=r}function _b(n,t,e,r,i){var o=n[t],s=n[t+1];for(t+=r;t<e;t+=r){var a=n[t],l=n[t+1],c=cc(o,s,a,l);c>i&&(i=c),o=a,s=l}return i}function yb(n,t,e,r,i){for(var o=0,s=e.length;o<s;++o){var a=e[o];i=_b(n,t,a,r,i),t=a}return i}function Cb(n,t,e,r,i,o,s,a,l,c,f){if(t==e)return c;var d,g;if(0===i){if((g=cc(s,a,n[t],n[t+1]))<c){for(d=0;d<r;++d)l[d]=n[t+d];return l.length=r,g}return c}for(var v=f||[NaN,NaN],m=t+r;m<e;)if(tL(n,m-r,m,r,s,a,v),(g=cc(s,a,v[0],v[1]))<c){for(c=g,d=0;d<r;++d)l[d]=v[d];l.length=r,m+=r}else m+=r*Math.max((Math.sqrt(g)-Math.sqrt(c))/i|0,1);if(o&&(tL(n,e-r,t,r,s,a,v),(g=cc(s,a,v[0],v[1]))<c)){for(c=g,d=0;d<r;++d)l[d]=v[d];l.length=r}return c}function wb(n,t,e,r,i,o,s,a,l,c,f){for(var d=f||[NaN,NaN],g=0,v=e.length;g<v;++g){var m=e[g];c=Cb(n,t,m,r,i,o,s,a,l,c,d),t=m}return c}function nL(n,t,e,r){for(var i=0,o=e.length;i<o;++i)n[t++]=e[i];return t}function H0(n,t,e,r){for(var i=0,o=e.length;i<o;++i)for(var s=e[i],a=0;a<r;++a)n[t++]=s[a];return t}function Eb(n,t,e,r,i){for(var o=i||[],s=0,a=0,l=e.length;a<l;++a){var c=H0(n,t,e[a],r);o[s++]=c,t=c}return o.length=s,o}function z0(n,t,e,r,i,o,s){var a=(e-t)/r;if(a<3){for(;t<e;t+=r)o[s++]=n[t],o[s++]=n[t+1];return s}var l=new Array(a);l[0]=1,l[a-1]=1;for(var c=[t,e-r],f=0;c.length>0;){for(var d=c.pop(),g=c.pop(),v=0,m=n[g],y=n[g+1],w=n[d],x=n[d+1],E=g+r;E<d;E+=r){var O=l8(n[E],n[E+1],m,y,w,x);O>v&&(f=E,v=O)}v>i&&(l[(f-t)/r]=1,g+r<f&&c.push(g,f),f+r<d&&c.push(f,d))}for(E=0;E<a;++E)l[E]&&(o[s++]=n[t+E*r],o[s++]=n[t+E*r+1]);return s}function vc(n,t){return t*Math.round(n/t)}function Wz(n,t,e,r,i,o,s){if(t==e)return s;var c,f,a=vc(n[t],i),l=vc(n[t+1],i);t+=r,o[s++]=a,o[s++]=l;do{if(c=vc(n[t],i),f=vc(n[t+1],i),(t+=r)==e)return o[s++]=c,o[s++]=f,s}while(c==a&&f==l);for(;t<e;){var d=vc(n[t],i),g=vc(n[t+1],i);if(t+=r,d!=c||g!=f){var v=c-a,m=f-l,y=d-a,w=g-l;if(v*w==m*y&&(v<0&&y<v||v==y||v>0&&y>v)&&(m<0&&w<m||m==w||m>0&&w>m)){c=d,f=g;continue}o[s++]=c,o[s++]=f,a=c,l=f,c=d,f=g}}return o[s++]=c,o[s++]=f,s}function iL(n,t,e,r,i,o,s,a){for(var l=0,c=e.length;l<c;++l){var f=e[l];s=Wz(n,t,f,r,i,o,s),a.push(s),t=f}return s}function Sl(n,t,e,r,i){for(var o=void 0!==i?i:[],s=0,a=t;a<e;a+=r)o[s++]=n.slice(a,a+r);return o.length=s,o}function tv(n,t,e,r,i){for(var o=void 0!==i?i:[],s=0,a=0,l=e.length;a<l;++a){var c=e[a];o[s++]=Sl(n,t,c,r,o[s]),t=c}return o.length=s,o}function Mb(n,t,e,r,i){for(var o=void 0!==i?i:[],s=0,a=0,l=e.length;a<l;++a){var c=e[a];o[s++]=tv(n,t,c,r,o[s]),t=c[c.length-1]}return o.length=s,o}function oL(n,t,e,r){for(var i=0,o=n[e-r],s=n[e-r+1];t<e;t+=r){var a=n[t],l=n[t+1];i+=s*a-o*l,o=a,s=l}return i/2}function sL(n,t,e,r){for(var i=0,o=0,s=e.length;o<s;++o){var a=e[o];i+=oL(n,t,a,r),t=a}return i}var Zz=function(){var n=function(t,e){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,i){r.__proto__=i}||function(r,i){for(var o in i)Object.prototype.hasOwnProperty.call(i,o)&&(r[o]=i[o])})(t,e)};return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function r(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)}}(),Yz=function(n){function t(e,r){var i=n.call(this)||this;return i.maxDelta_=-1,i.maxDeltaRevision_=-1,void 0===r||Array.isArray(e[0])?i.setCoordinates(e,r):i.setFlatCoordinates(r,e),i}return Zz(t,n),t.prototype.clone=function(){return new t(this.flatCoordinates.slice(),this.layout)},t.prototype.closestPointXY=function(e,r,i,o){return o<of(this.getExtent(),e,r)?o:(this.maxDeltaRevision_!=this.getRevision()&&(this.maxDelta_=Math.sqrt(_b(this.flatCoordinates,0,this.flatCoordinates.length,this.stride,0)),this.maxDeltaRevision_=this.getRevision()),Cb(this.flatCoordinates,0,this.flatCoordinates.length,this.stride,this.maxDelta_,!0,e,r,i,o))},t.prototype.getArea=function(){return oL(this.flatCoordinates,0,this.flatCoordinates.length,this.stride)},t.prototype.getCoordinates=function(){return Sl(this.flatCoordinates,0,this.flatCoordinates.length,this.stride)},t.prototype.getSimplifiedGeometryInternal=function(e){var r=[];return r.length=z0(this.flatCoordinates,0,this.flatCoordinates.length,this.stride,e,r,0),new t(r,"XY")},t.prototype.getType=function(){return"LinearRing"},t.prototype.intersectsExtent=function(e){return!1},t.prototype.setCoordinates=function(e,r){this.setLayout(r,e,1),this.flatCoordinates||(this.flatCoordinates=[]),this.flatCoordinates.length=H0(this.flatCoordinates,0,e,this.stride),this.changed()},t}(Dl);const aL=Yz;var Xz=function(){var n=function(t,e){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,i){r.__proto__=i}||function(r,i){for(var o in i)Object.prototype.hasOwnProperty.call(i,o)&&(r[o]=i[o])})(t,e)};return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function r(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)}}(),Qz=function(n){function t(e,r){var i=n.call(this)||this;return i.setCoordinates(e,r),i}return Xz(t,n),t.prototype.clone=function(){var e=new t(this.flatCoordinates.slice(),this.layout);return e.applyProperties(this),e},t.prototype.closestPointXY=function(e,r,i,o){var s=this.flatCoordinates,a=cc(e,r,s[0],s[1]);if(a<o){for(var l=this.stride,c=0;c<l;++c)i[c]=s[c];return i.length=l,a}return o},t.prototype.getCoordinates=function(){return this.flatCoordinates?this.flatCoordinates.slice():[]},t.prototype.computeExtent=function(e){return function X5(n,t){var e=n[0],r=n[1];return Xo(e,r,e,r,t)}(this.flatCoordinates,e)},t.prototype.getType=function(){return"Point"},t.prototype.intersectsExtent=function(e){return Ux(e,this.flatCoordinates[0],this.flatCoordinates[1])},t.prototype.setCoordinates=function(e,r){this.setLayout(r,e,0),this.flatCoordinates||(this.flatCoordinates=[]),this.flatCoordinates.length=nL(this.flatCoordinates,0,e),this.changed()},t}(Dl);const Ef=Qz;function Jz(n,t,e,r,i){return!Gx(i,function(s){return!mc(n,t,e,r,s[0],s[1])})}function mc(n,t,e,r,i,o){for(var s=0,a=n[e-r],l=n[e-r+1];t<e;t+=r){var c=n[t],f=n[t+1];l<=o?f>o&&(c-a)*(o-l)-(i-a)*(f-l)>0&&s++:f<=o&&(c-a)*(o-l)-(i-a)*(f-l)<0&&s--,a=c,l=f}return 0!==s}function xb(n,t,e,r,i,o){if(0===e.length||!mc(n,t,e[0],r,i,o))return!1;for(var s=1,a=e.length;s<a;++s)if(mc(n,e[s-1],e[s],r,i,o))return!1;return!0}function lL(n,t,e,r,i,o,s){for(var a,l,c,f,d,g,v,m=i[o+1],y=[],w=0,x=e.length;w<x;++w){var E=e[w];for(f=n[E-r],g=n[E-r+1],a=t;a<E;a+=r)d=n[a],v=n[a+1],(m<=g&&v<=m||g<=m&&m<=v)&&y.push(c=(m-g)/(v-g)*(d-f)+f),f=d,g=v}var S=NaN,T=-1/0;for(y.sort(sc),f=y[0],a=1,l=y.length;a<l;++a){d=y[a];var O=Math.abs(d-f);O>T&&xb(n,t,e,r,c=(f+d)/2,m)&&(S=c,T=O),f=d}return isNaN(S)&&(S=i[o]),s?(s.push(S,m,T),s):[S,m,T]}function uL(n,t,e,r,i){var o;for(t+=r;t<e;t+=r)if(o=i(n.slice(t-r,t),n.slice(t,t+r)))return o;return!1}function $0(n,t,e,r,i){var o=hk([1/0,1/0,-1/0,-1/0],n,t,e,r);return!!ui(i,o)&&(!!(sf(i,o)||o[0]>=i[0]&&o[2]<=i[2]||o[1]>=i[1]&&o[3]<=i[3])||uL(n,t,e,r,function(s,a){return function r8(n,t,e){var r=!1,i=jx(n,t),o=jx(n,e);if(1===i||1===o)r=!0;else{var s=n[0],a=n[1],l=n[2],c=n[3],g=e[0],v=e[1],m=(v-t[1])/(g-t[0]),y=void 0,w=void 0;!!(2&o)&&!(2&i)&&(r=(y=g-(v-c)/m)>=s&&y<=l),r||!(4&o)||4&i||(r=(w=v-(g-l)*m)>=a&&w<=c),r||!(8&o)||8&i||(r=(y=g-(v-a)/m)>=s&&y<=l),!r&&16&o&&!(16&i)&&(r=(w=v-(g-s)*m)>=a&&w<=c)}return r}(i,s,a)}))}function cL(n,t,e,r,i){return!!($0(n,t,e,r,i)||mc(n,t,e,r,i[0],i[1])||mc(n,t,e,r,i[0],i[3])||mc(n,t,e,r,i[2],i[1])||mc(n,t,e,r,i[2],i[3]))}function hL(n,t,e,r,i){if(!cL(n,t,e[0],r,i))return!1;if(1===e.length)return!0;for(var o=1,s=e.length;o<s;++o)if(Jz(n,e[o-1],e[o],r,i)&&!$0(n,e[o-1],e[o],r,i))return!1;return!0}function i$(n,t,e,r){for(;t<e-r;){for(var i=0;i<r;++i){var o=n[t+i];n[t+i]=n[e-r+i],n[e-r+i]=o}t+=r,e-=r}}function bb(n,t,e,r){for(var i=0,o=n[e-r],s=n[e-r+1];t<e;t+=r){var a=n[t],l=n[t+1];i+=(a-o)*(l+s),o=a,s=l}return 0===i?void 0:i>0}function fL(n,t,e,r,i){for(var o=void 0!==i&&i,s=0,a=e.length;s<a;++s){var l=e[s],c=bb(n,t,l,r);if(0===s){if(o&&c||!o&&!c)return!1}else if(o&&!c||!o&&c)return!1;t=l}return!0}function Db(n,t,e,r,i){for(var o=void 0!==i&&i,s=0,a=e.length;s<a;++s){var l=e[s],c=bb(n,t,l,r);(0===s?o&&c||!o&&!c:o&&!c||!o&&c)&&i$(n,t,l,r),t=l}return t}function dL(n,t,e,r,i){for(var o=0,s=e.length;o<s;++o)t=Db(n,t,e[o],r,i);return t}var s$=function(){var n=function(t,e){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,i){r.__proto__=i}||function(r,i){for(var o in i)Object.prototype.hasOwnProperty.call(i,o)&&(r[o]=i[o])})(t,e)};return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function r(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)}}(),W0=function(n){function t(e,r,i){var o=n.call(this)||this;return o.ends_=[],o.flatInteriorPointRevision_=-1,o.flatInteriorPoint_=null,o.maxDelta_=-1,o.maxDeltaRevision_=-1,o.orientedRevision_=-1,o.orientedFlatCoordinates_=null,void 0!==r&&i?(o.setFlatCoordinates(r,e),o.ends_=i):o.setCoordinates(e,r),o}return s$(t,n),t.prototype.appendLinearRing=function(e){this.flatCoordinates?Ma(this.flatCoordinates,e.getFlatCoordinates()):this.flatCoordinates=e.getFlatCoordinates().slice(),this.ends_.push(this.flatCoordinates.length),this.changed()},t.prototype.clone=function(){var e=new t(this.flatCoordinates.slice(),this.layout,this.ends_.slice());return e.applyProperties(this),e},t.prototype.closestPointXY=function(e,r,i,o){return o<of(this.getExtent(),e,r)?o:(this.maxDeltaRevision_!=this.getRevision()&&(this.maxDelta_=Math.sqrt(yb(this.flatCoordinates,0,this.ends_,this.stride,0)),this.maxDeltaRevision_=this.getRevision()),wb(this.flatCoordinates,0,this.ends_,this.stride,this.maxDelta_,!0,e,r,i,o))},t.prototype.containsXY=function(e,r){return xb(this.getOrientedFlatCoordinates(),0,this.ends_,this.stride,e,r)},t.prototype.getArea=function(){return sL(this.getOrientedFlatCoordinates(),0,this.ends_,this.stride)},t.prototype.getCoordinates=function(e){var r;return void 0!==e?Db(r=this.getOrientedFlatCoordinates().slice(),0,this.ends_,this.stride,e):r=this.flatCoordinates,tv(r,0,this.ends_,this.stride)},t.prototype.getEnds=function(){return this.ends_},t.prototype.getFlatInteriorPoint=function(){if(this.flatInteriorPointRevision_!=this.getRevision()){var e=uf(this.getExtent());this.flatInteriorPoint_=lL(this.getOrientedFlatCoordinates(),0,this.ends_,this.stride,e,0),this.flatInteriorPointRevision_=this.getRevision()}return this.flatInteriorPoint_},t.prototype.getInteriorPoint=function(){return new Ef(this.getFlatInteriorPoint(),"XYM")},t.prototype.getLinearRingCount=function(){return this.ends_.length},t.prototype.getLinearRing=function(e){return e<0||this.ends_.length<=e?null:new aL(this.flatCoordinates.slice(0===e?0:this.ends_[e-1],this.ends_[e]),this.layout)},t.prototype.getLinearRings=function(){for(var e=this.layout,r=this.flatCoordinates,i=this.ends_,o=[],s=0,a=0,l=i.length;a<l;++a){var c=i[a],f=new aL(r.slice(s,c),e);o.push(f),s=c}return o},t.prototype.getOrientedFlatCoordinates=function(){if(this.orientedRevision_!=this.getRevision()){var e=this.flatCoordinates;fL(e,0,this.ends_,this.stride)?this.orientedFlatCoordinates_=e:(this.orientedFlatCoordinates_=e.slice(),this.orientedFlatCoordinates_.length=Db(this.orientedFlatCoordinates_,0,this.ends_,this.stride)),this.orientedRevision_=this.getRevision()}return this.orientedFlatCoordinates_},t.prototype.getSimplifiedGeometryInternal=function(e){var r=[],i=[];return r.length=iL(this.flatCoordinates,0,this.ends_,this.stride,Math.sqrt(e),r,0,i),new t(r,"XY",i)},t.prototype.getType=function(){return"Polygon"},t.prototype.intersectsExtent=function(e){return hL(this.getOrientedFlatCoordinates(),0,this.ends_,this.stride,e)},t.prototype.setCoordinates=function(e,r){this.setLayout(r,e,2),this.flatCoordinates||(this.flatCoordinates=[]);var i=Eb(this.flatCoordinates,0,e,this.stride,this.ends_);this.flatCoordinates.length=0===i.length?0:i[i.length-1],this.changed()},t}(Dl);const q0=W0;function pL(n){var t=n[0],e=n[1],r=n[2],i=n[3],o=[t,e,t,i,r,i,r,e,t,e];return new W0(o,"XY",[o.length])}var l$=function(){var n=function(t,e){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,i){r.__proto__=i}||function(r,i){for(var o in i)Object.prototype.hasOwnProperty.call(i,o)&&(r[o]=i[o])})(t,e)};return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function r(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)}}(),u$=function(n){function t(e){var r=n.call(this)||this,i=In({},e);return r.hints_=[0,0],r.animations_=[],r.projection_=lb(i.projection,"EPSG:3857"),r.viewportSize_=[100,100],r.targetCenter_=null,r.nextCenter_=null,r.cancelAnchor_=void 0,i.projection&&function zk(n){ob=!(void 0===n||n)}(),i.center&&(i.center=ns(i.center)),i.extent&&(i.extent=pc(i.extent)),r.applyOptions_(i),r}return l$(t,n),t.prototype.applyOptions_=function(e){var r=In({},e);for(var i in es)delete r[i];this.setProperties(r,!0);var o=function h$(n){var t,e,r,s=void 0!==n.minZoom?n.minZoom:0,a=void 0!==n.maxZoom?n.maxZoom:28,l=void 0!==n.zoomFactor?n.zoomFactor:2,c=void 0!==n.multiWorld&&n.multiWorld,f=void 0===n.smoothResolutionConstraint||n.smoothResolutionConstraint,d=void 0!==n.showFullExtent&&n.showFullExtent,g=lb(n.projection,"EPSG:3857"),v=g.getExtent(),m=n.constrainOnlyCenter,y=n.extent;if(!c&&!y&&g.isGlobal()&&(m=!1,y=v),void 0!==n.resolutions){var w=n.resolutions;e=w[s],r=void 0!==w[a]?w[a]:w[w.length-1],t=n.constrainResolution?function Tz(n,t,e,r){return function(i,o,s,a){if(void 0!==i){var l=n[0],c=n[n.length-1],f=e?db(l,e,s,r):l;if(a)return void 0===t||t?pb(i,f,c):Sn(i,c,f);var g=Math.min(f,i),v=Math.floor(Lx(n,g,o));return n[v]>f&&v<n.length-1?n[v+1]:n[v]}}}(w,f,!m&&y,d):Yk(e,r,f,!m&&y,d)}else{var E=(v?Math.max(Yt(v),eo(v)):360*no[ro.DEGREES]/g.getMetersPerUnit())/256/Math.pow(2,0),S=E/Math.pow(2,28);void 0!==(e=n.maxResolution)?s=0:e=E/Math.pow(l,s),void 0===(r=n.minResolution)&&(r=void 0!==n.maxZoom?void 0!==n.maxResolution?e/Math.pow(l,a):E/Math.pow(l,a):S),a=s+Math.floor(Math.log(e/r)/Math.log(l)),r=e/Math.pow(l,a-s),t=n.constrainResolution?function Az(n,t,e,r,i,o){return function(s,a,l,c){if(void 0!==s){var f=i?db(t,i,l,o):t,d=void 0!==e?e:0;if(c)return void 0===r||r?pb(s,f,d):Sn(s,d,f);var m=Math.ceil(Math.log(t/f)/Math.log(n)-1e-9),y=-a*(.5-1e-9)+.5,w=Math.min(f,s),x=Math.floor(Math.log(t/w)/Math.log(n)+y),E=Math.max(m,x);return Sn(t/Math.pow(n,E),d,f)}}}(l,e,r,f,!m&&y,d):Yk(e,r,f,!m&&y,d)}return{constraint:t,maxResolution:e,minResolution:r,minZoom:s,zoomFactor:l}}(e);this.maxResolution_=o.maxResolution,this.minResolution_=o.minResolution,this.zoomFactor_=o.zoomFactor,this.resolutions_=e.resolutions,this.padding_=e.padding,this.minZoom_=o.minZoom;var s=function c$(n){if(void 0!==n.extent)return Zk(n.extent,n.constrainOnlyCenter,void 0===n.smoothExtentConstraint||n.smoothExtentConstraint);var e=lb(n.projection,"EPSG:3857");if(!0!==n.multiWorld&&e.isGlobal()){var r=e.getExtent().slice();return r[0]=-1/0,r[2]=1/0,Zk(r,!1,!1)}return Iz}(e),a=o.constraint,l=function f$(n){if(void 0===n.enableRotation||n.enableRotation){var e=n.constrainRotation;return void 0===e||!0===e?function Oz(n){var t=n||C0(5);return function(e,r){return r?e:void 0!==e?Math.abs(e)<=t?0:e:void 0}}():!1===e?Xk:"number"==typeof e?function Rz(n){var t=2*Math.PI/n;return function(e,r){return r?e:void 0!==e?e=Math.floor(e/t+.5)*t:void 0}}(e):Xk}return gb}(e);this.constraints_={center:s,resolution:a,rotation:l},this.setRotation(void 0!==e.rotation?e.rotation:0),this.setCenterInternal(void 0!==e.center?e.center:null),void 0!==e.resolution?this.setResolution(e.resolution):void 0!==e.zoom&&this.setZoom(e.zoom)},Object.defineProperty(t.prototype,"padding",{get:function(){return this.padding_},set:function(e){var r=this.padding_;this.padding_=e;var i=this.getCenter();if(i){var o=e||[0,0,0,0];r=r||[0,0,0,0];var s=this.getResolution();this.setCenterInternal([i[0]+s/2*(o[3]-r[3]+r[1]-o[1]),i[1]-s/2*(o[0]-r[0]+r[2]-o[2])])}},enumerable:!1,configurable:!0}),t.prototype.getUpdatedOptions_=function(e){var r=this.getProperties();return void 0!==r.resolution?r.resolution=this.getResolution():r.zoom=this.getZoom(),r.center=this.getCenterInternal(),r.rotation=this.getRotation(),In({},r,e)},t.prototype.animate=function(e){this.isDef()&&!this.getAnimating()&&this.resolveConstraints(0);for(var r=new Array(arguments.length),i=0;i<r.length;++i){var o=arguments[i];o.center&&((o=In({},o)).center=ns(o.center,this.getProjection())),o.anchor&&((o=In({},o)).anchor=ns(o.anchor,this.getProjection())),r[i]=o}this.animateInternal.apply(this,r)},t.prototype.animateInternal=function(e){var i,r=arguments.length;r>1&&"function"==typeof arguments[r-1]&&(i=arguments[r-1],--r);for(var o=0;o<r&&!this.isDef();++o){var s=arguments[o];s.center&&this.setCenterInternal(s.center),void 0!==s.zoom?this.setZoom(s.zoom):s.resolution&&this.setResolution(s.resolution),void 0!==s.rotation&&this.setRotation(s.rotation)}if(o!==r){for(var a=Date.now(),l=this.targetCenter_.slice(),c=this.targetResolution_,f=this.targetRotation_,d=[];o<r;++o){var g=arguments[o],v={start:a,complete:!1,anchor:g.anchor,duration:void 0!==g.duration?g.duration:1e3,easing:g.easing||vb,callback:i};if(g.center&&(v.sourceCenter=l,v.targetCenter=g.center.slice(),l=v.targetCenter),void 0!==g.zoom?(v.sourceResolution=c,v.targetResolution=this.getResolutionForZoom(g.zoom),c=v.targetResolution):g.resolution&&(v.sourceResolution=c,v.targetResolution=g.resolution,c=v.targetResolution),void 0!==g.rotation){v.sourceRotation=f;var m=hc(g.rotation-f+Math.PI,2*Math.PI)-Math.PI;v.targetRotation=f+m,f=v.targetRotation}d$(v)?v.complete=!0:a+=v.duration,d.push(v)}this.animations_.push(d),this.setHint(0,1),this.updateAnimations_()}else i&&K0(i,!0)},t.prototype.getAnimating=function(){return this.hints_[0]>0},t.prototype.getInteracting=function(){return this.hints_[1]>0},t.prototype.cancelAnimations=function(){this.setHint(0,-this.hints_[0]);for(var e,r=0,i=this.animations_.length;r<i;++r){var o=this.animations_[r];if(o[0].callback&&K0(o[0].callback,!1),!e)for(var s=0,a=o.length;s<a;++s){var l=o[s];if(!l.complete){e=l.anchor;break}}}this.animations_.length=0,this.cancelAnchor_=e,this.nextCenter_=null,this.nextResolution_=NaN,this.nextRotation_=NaN},t.prototype.updateAnimations_=function(){if(void 0!==this.updateAnimationKey_&&(cancelAnimationFrame(this.updateAnimationKey_),this.updateAnimationKey_=void 0),this.getAnimating()){for(var e=Date.now(),r=!1,i=this.animations_.length-1;i>=0;--i){for(var o=this.animations_[i],s=!0,a=0,l=o.length;a<l;++a){var c=o[a];if(!c.complete){var d=c.duration>0?(e-c.start)/c.duration:1;d>=1?(c.complete=!0,d=1):s=!1;var g=c.easing(d);if(c.sourceCenter){var v=c.sourceCenter[0],m=c.sourceCenter[1],y=c.targetCenter[0],w=c.targetCenter[1];this.nextCenter_=c.targetCenter,this.targetCenter_=[v+g*(y-v),m+g*(w-m)]}if(c.sourceResolution&&c.targetResolution){var S=1===g?c.targetResolution:c.sourceResolution+g*(c.targetResolution-c.sourceResolution);if(c.anchor){var T=this.getViewportSize_(this.getRotation()),O=this.constraints_.resolution(S,0,T,!0);this.targetCenter_=this.calculateCenterZoom(O,c.anchor)}this.nextResolution_=c.targetResolution,this.targetResolution_=S,this.applyTargetState_(!0)}if(void 0!==c.sourceRotation&&void 0!==c.targetRotation){var N=1===g?hc(c.targetRotation+Math.PI,2*Math.PI)-Math.PI:c.sourceRotation+g*(c.targetRotation-c.sourceRotation);if(c.anchor){var j=this.constraints_.rotation(N,!0);this.targetCenter_=this.calculateCenterRotate(j,c.anchor)}this.nextRotation_=c.targetRotation,this.targetRotation_=N}if(this.applyTargetState_(!0),r=!0,!c.complete)break}}if(s){this.animations_[i]=null,this.setHint(0,-1),this.nextCenter_=null,this.nextResolution_=NaN,this.nextRotation_=NaN;var H=o[0].callback;H&&K0(H,!0)}}this.animations_=this.animations_.filter(Boolean),r&&void 0===this.updateAnimationKey_&&(this.updateAnimationKey_=requestAnimationFrame(this.updateAnimations_.bind(this)))}},t.prototype.calculateCenterRotate=function(e,r){var i,o=this.getCenterInternal();return void 0!==o&&(qx(i=[o[0]-r[0],o[1]-r[1]],e-this.getRotation()),function M8(n,t){n[0]+=+t[0],n[1]+=+t[1]}(i,r)),i},t.prototype.calculateCenterZoom=function(e,r){var i,o=this.getCenterInternal(),s=this.getResolution();return void 0!==o&&void 0!==s&&(i=[r[0]-e*(r[0]-o[0])/s,r[1]-e*(r[1]-o[1])/s]),i},t.prototype.getViewportSize_=function(e){var r=this.viewportSize_;if(e){var i=r[0],o=r[1];return[Math.abs(i*Math.cos(e))+Math.abs(o*Math.sin(e)),Math.abs(i*Math.sin(e))+Math.abs(o*Math.cos(e))]}return r},t.prototype.setViewportSize=function(e){this.viewportSize_=Array.isArray(e)?e.slice():[100,100],this.getAnimating()||this.resolveConstraints(0)},t.prototype.getCenter=function(){var e=this.getCenterInternal();return e&&hb(e,this.getProjection())},t.prototype.getCenterInternal=function(){return this.get(es.CENTER)},t.prototype.getConstraints=function(){return this.constraints_},t.prototype.getConstrainResolution=function(){return this.get("constrainResolution")},t.prototype.getHints=function(e){return void 0!==e?(e[0]=this.hints_[0],e[1]=this.hints_[1],e):this.hints_.slice()},t.prototype.calculateExtent=function(e){return fb(this.calculateExtentInternal(e),this.getProjection())},t.prototype.calculateExtentInternal=function(e){var r=e||this.getViewportSizeMinusPadding_(),i=this.getCenterInternal();ct(i,1);var o=this.getResolution();ct(void 0!==o,2);var s=this.getRotation();return ct(void 0!==s,3),Hx(i,o,s,r)},t.prototype.getMaxResolution=function(){return this.maxResolution_},t.prototype.getMinResolution=function(){return this.minResolution_},t.prototype.getMaxZoom=function(){return this.getZoomForResolution(this.minResolution_)},t.prototype.setMaxZoom=function(e){this.applyOptions_(this.getUpdatedOptions_({maxZoom:e}))},t.prototype.getMinZoom=function(){return this.getZoomForResolution(this.maxResolution_)},t.prototype.setMinZoom=function(e){this.applyOptions_(this.getUpdatedOptions_({minZoom:e}))},t.prototype.setConstrainResolution=function(e){this.applyOptions_(this.getUpdatedOptions_({constrainResolution:e}))},t.prototype.getProjection=function(){return this.projection_},t.prototype.getResolution=function(){return this.get(es.RESOLUTION)},t.prototype.getResolutions=function(){return this.resolutions_},t.prototype.getResolutionForExtent=function(e,r){return this.getResolutionForExtentInternal(pc(e,this.getProjection()),r)},t.prototype.getResolutionForExtentInternal=function(e,r){var i=r||this.getViewportSizeMinusPadding_(),o=Yt(e)/i[0],s=eo(e)/i[1];return Math.max(o,s)},t.prototype.getResolutionForValueFunction=function(e){var r=e||2,i=this.getConstrainedResolution(this.maxResolution_),s=Math.log(i/this.minResolution_)/Math.log(r);return function(a){return i/Math.pow(r,a*s)}},t.prototype.getRotation=function(){return this.get(es.ROTATION)},t.prototype.getValueForResolutionFunction=function(e){var r=Math.log(e||2),i=this.getConstrainedResolution(this.maxResolution_),s=Math.log(i/this.minResolution_)/r;return function(a){return Math.log(i/a)/r/s}},t.prototype.getViewportSizeMinusPadding_=function(e){var r=this.getViewportSize_(e),i=this.padding_;return i&&(r=[r[0]-i[1]-i[3],r[1]-i[0]-i[2]]),r},t.prototype.getState=function(){var e=this.getProjection(),r=this.getResolution(),i=this.getRotation(),o=this.getCenterInternal(),s=this.padding_;if(s){var a=this.getViewportSizeMinusPadding_();o=Ib(o,this.getViewportSize_(),[a[0]/2+s[3],a[1]/2+s[0]],r,i)}return{center:o.slice(0),projection:void 0!==e?e:null,resolution:r,nextCenter:this.nextCenter_,nextResolution:this.nextResolution_,nextRotation:this.nextRotation_,rotation:i,zoom:this.getZoom()}},t.prototype.getZoom=function(){var e,r=this.getResolution();return void 0!==r&&(e=this.getZoomForResolution(r)),e},t.prototype.getZoomForResolution=function(e){var i,o,r=this.minZoom_||0;if(this.resolutions_){var s=Lx(this.resolutions_,e,1);r=s,i=this.resolutions_[s],o=s==this.resolutions_.length-1?2:i/this.resolutions_[s+1]}else i=this.maxResolution_,o=this.zoomFactor_;return r+Math.log(i/e)/Math.log(o)},t.prototype.getResolutionForZoom=function(e){if(this.resolutions_){if(this.resolutions_.length<=1)return 0;var r=Sn(Math.floor(e),0,this.resolutions_.length-2);return this.resolutions_[r]/Math.pow(this.resolutions_[r]/this.resolutions_[r+1],Sn(e-r,0,1))}return this.maxResolution_/Math.pow(this.zoomFactor_,e-this.minZoom_)},t.prototype.fit=function(e,r){var i;if(ct(Array.isArray(e)||"function"==typeof e.getSimplifiedGeometry,24),Array.isArray(e))ct(!$x(e),25),i=pL(o=pc(e,this.getProjection()));else if("Circle"===e.getType()){var o;(i=pL(o=pc(e.getExtent(),this.getProjection()))).rotate(this.getRotation(),uf(o))}else{var s=cb();i=s?e.clone().transform(s,this.getProjection()):e}this.fitInternal(i,r)},t.prototype.rotatedExtentForGeometry=function(e){for(var r=this.getRotation(),i=Math.cos(r),o=Math.sin(-r),s=e.getFlatCoordinates(),a=e.getStride(),l=1/0,c=1/0,f=-1/0,d=-1/0,g=0,v=s.length;g<v;g+=a){var m=s[g]*i-s[g+1]*o,y=s[g]*o+s[g+1]*i;l=Math.min(l,m),c=Math.min(c,y),f=Math.max(f,m),d=Math.max(d,y)}return[l,c,f,d]},t.prototype.fitInternal=function(e,r){var i=r||{},o=i.size;o||(o=this.getViewportSizeMinusPadding_());var l,s=void 0!==i.padding?i.padding:[0,0,0,0],a=void 0!==i.nearest&&i.nearest;l=void 0!==i.minResolution?i.minResolution:void 0!==i.maxZoom?this.getResolutionForZoom(i.maxZoom):0;var c=this.rotatedExtentForGeometry(e),f=this.getResolutionForExtentInternal(c,[o[0]-s[1]-s[3],o[1]-s[0]-s[2]]);f=isNaN(f)?l:Math.max(f,l),f=this.getConstrainedResolution(f,a?0:1);var d=this.getRotation(),g=Math.sin(d),v=Math.cos(d),m=uf(c);m[0]+=(s[1]-s[3])/2*f,m[1]+=(s[0]-s[2])/2*f;var x=this.getConstrainedCenter([m[0]*v-m[1]*g,m[1]*v+m[0]*g],f),E=i.callback?i.callback:lc;void 0!==i.duration?this.animateInternal({resolution:f,center:x,duration:i.duration,easing:i.easing},E):(this.targetResolution_=f,this.targetCenter_=x,this.applyTargetState_(!1,!0),K0(E,!0))},t.prototype.centerOn=function(e,r,i){this.centerOnInternal(ns(e,this.getProjection()),r,i)},t.prototype.centerOnInternal=function(e,r,i){this.setCenterInternal(Ib(e,r,i,this.getResolution(),this.getRotation()))},t.prototype.calculateCenterShift=function(e,r,i,o){var s,a=this.padding_;if(a&&e){var l=this.getViewportSizeMinusPadding_(-i),c=Ib(e,o,[l[0]/2+a[3],l[1]/2+a[0]],r,i);s=[e[0]-c[0],e[1]-c[1]]}return s},t.prototype.isDef=function(){return!!this.getCenterInternal()&&void 0!==this.getResolution()},t.prototype.adjustCenter=function(e){var r=hb(this.targetCenter_,this.getProjection());this.setCenter([r[0]+e[0],r[1]+e[1]])},t.prototype.adjustCenterInternal=function(e){var r=this.targetCenter_;this.setCenterInternal([r[0]+e[0],r[1]+e[1]])},t.prototype.adjustResolution=function(e,r){var i=r&&ns(r,this.getProjection());this.adjustResolutionInternal(e,i)},t.prototype.adjustResolutionInternal=function(e,r){var i=this.getAnimating()||this.getInteracting(),o=this.getViewportSize_(this.getRotation()),s=this.constraints_.resolution(this.targetResolution_*e,0,o,i);r&&(this.targetCenter_=this.calculateCenterZoom(s,r)),this.targetResolution_*=e,this.applyTargetState_()},t.prototype.adjustZoom=function(e,r){this.adjustResolution(Math.pow(this.zoomFactor_,-e),r)},t.prototype.adjustRotation=function(e,r){r&&(r=ns(r,this.getProjection())),this.adjustRotationInternal(e,r)},t.prototype.adjustRotationInternal=function(e,r){var i=this.getAnimating()||this.getInteracting(),o=this.constraints_.rotation(this.targetRotation_+e,i);r&&(this.targetCenter_=this.calculateCenterRotate(o,r)),this.targetRotation_+=e,this.applyTargetState_()},t.prototype.setCenter=function(e){this.setCenterInternal(e&&ns(e,this.getProjection()))},t.prototype.setCenterInternal=function(e){this.targetCenter_=e,this.applyTargetState_()},t.prototype.setHint=function(e,r){return this.hints_[e]+=r,this.changed(),this.hints_[e]},t.prototype.setResolution=function(e){this.targetResolution_=e,this.applyTargetState_()},t.prototype.setRotation=function(e){this.targetRotation_=e,this.applyTargetState_()},t.prototype.setZoom=function(e){this.setResolution(this.getResolutionForZoom(e))},t.prototype.applyTargetState_=function(e,r){var i=this.getAnimating()||this.getInteracting()||r,o=this.constraints_.rotation(this.targetRotation_,i),s=this.getViewportSize_(o),a=this.constraints_.resolution(this.targetResolution_,0,s,i),l=this.constraints_.center(this.targetCenter_,a,s,i,this.calculateCenterShift(this.targetCenter_,a,o,s));this.get(es.ROTATION)!==o&&this.set(es.ROTATION,o),this.get(es.RESOLUTION)!==a&&(this.set(es.RESOLUTION,a),this.set("zoom",this.getZoom(),!0)),(!l||!this.get(es.CENTER)||!T0(this.get(es.CENTER),l))&&this.set(es.CENTER,l),this.getAnimating()&&!e&&this.cancelAnimations(),this.cancelAnchor_=void 0},t.prototype.resolveConstraints=function(e,r,i){var o=void 0!==e?e:200,s=r||0,a=this.constraints_.rotation(this.targetRotation_),l=this.getViewportSize_(a),c=this.constraints_.resolution(this.targetResolution_,s,l),f=this.constraints_.center(this.targetCenter_,c,l,!1,this.calculateCenterShift(this.targetCenter_,c,a,l));if(0===o&&!this.cancelAnchor_)return this.targetResolution_=c,this.targetRotation_=a,this.targetCenter_=f,void this.applyTargetState_();var d=i||(0===o?this.cancelAnchor_:void 0);this.cancelAnchor_=void 0,(this.getResolution()!==c||this.getRotation()!==a||!this.getCenterInternal()||!T0(this.getCenterInternal(),f))&&(this.getAnimating()&&this.cancelAnimations(),this.animateInternal({rotation:a,center:f,resolution:c,duration:o,easing:wf,anchor:d}))},t.prototype.beginInteraction=function(){this.resolveConstraints(0),this.setHint(1,1)},t.prototype.endInteraction=function(e,r,i){var o=i&&ns(i,this.getProjection());this.endInteractionInternal(e,r,o)},t.prototype.endInteractionInternal=function(e,r,i){this.setHint(1,-1),this.resolveConstraints(e,r,i)},t.prototype.getConstrainedCenter=function(e,r){var i=this.getViewportSize_(this.getRotation());return this.constraints_.center(e,r||this.getResolution(),i)},t.prototype.getConstrainedZoom=function(e,r){var i=this.getResolutionForZoom(e);return this.getZoomForResolution(this.getConstrainedResolution(i,r))},t.prototype.getConstrainedResolution=function(e,r){var i=r||0,o=this.getViewportSize_(this.getRotation());return this.constraints_.resolution(e,i,o)},t}(Ps);function K0(n,t){setTimeout(function(){n(t)},0)}function d$(n){return!(n.sourceCenter&&n.targetCenter&&!T0(n.sourceCenter,n.targetCenter)||n.sourceResolution!==n.targetResolution||n.sourceRotation!==n.targetRotation)}function Ib(n,t,e,r,i){var o=Math.cos(-i),s=Math.sin(-i),a=n[0]*o-n[1]*s,l=n[1]*o+n[0]*s;return[(a+=(t[0]/2-e[0])*r)*o-(l+=(e[1]-t[1]/2)*r)*(s=-s),l*o+a*s]}const Il=u$;function gL(n,t,e){return void 0===e&&(e=[0,0]),e[0]=n[0]+2*t,e[1]=n[1]+2*t,e}function vL(n){return n[0]>0&&n[1]>0}function mL(n,t,e){return void 0===e&&(e=[0,0]),e[0]=n[0]*t+.5|0,e[1]=n[1]*t+.5|0,e}function io(n,t){return Array.isArray(n)?n:(void 0===t?t=[n,n]:(t[0]=n,t[1]=n),t)}var p$=function(){var n=function(t,e){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,i){r.__proto__=i}||function(r,i){for(var o in i)Object.prototype.hasOwnProperty.call(i,o)&&(r[o]=i[o])})(t,e)};return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function r(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)}}();function _L(n){n instanceof I0?n.setMapInternal(null):n instanceof L0&&n.getLayers().forEach(_L)}function yL(n,t){if(n instanceof I0)n.setMapInternal(t);else if(n instanceof L0)for(var e=n.getLayers().getArray(),r=0,i=e.length;r<i;++r)yL(e[r],t)}var g$=function(n){function t(e){var r=n.call(this)||this,i=function v$(n){var t=null;void 0!==n.keyboardEventTarget&&(t="string"==typeof n.keyboardEventTarget?document.getElementById(n.keyboardEventTarget):n.keyboardEventTarget);var i,o,s,e={},r=n.layers&&"function"==typeof n.layers.getLayers?n.layers:new L0({layers:n.layers});return e.layergroup=r,e.target=n.target,e.view=n.view instanceof Il?n.view:new Il,void 0!==n.controls&&(Array.isArray(n.controls)?i=new ci(n.controls.slice()):(ct("function"==typeof n.controls.getArray,47),i=n.controls)),void 0!==n.interactions&&(Array.isArray(n.interactions)?o=new ci(n.interactions.slice()):(ct("function"==typeof n.interactions.getArray,48),o=n.interactions)),void 0!==n.overlays?Array.isArray(n.overlays)?s=new ci(n.overlays.slice()):(ct("function"==typeof n.overlays.getArray,49),s=n.overlays):s=new ci,{controls:i,interactions:o,keyboardEventTarget:t,overlays:s,values:e}}(e);r.loaded_=!0,r.boundHandleBrowserEvent_=r.handleBrowserEvent.bind(r),r.maxTilesLoading_=void 0!==e.maxTilesLoading?e.maxTilesLoading:16,r.pixelRatio_=void 0!==e.pixelRatio?e.pixelRatio:rk,r.animationDelay_=function(){this.animationDelayKey_=void 0,this.renderFrame_(Date.now())}.bind(r),r.coordinateToPixelTransform_=[1,0,0,1,0,0],r.pixelToCoordinateTransform_=[1,0,0,1,0,0],r.frameIndex_=0,r.frameState_=null,r.previousExtent_=null,r.viewPropertyListenerKey_=null,r.viewChangeListenerKey_=null,r.layerGroupPropertyListenerKeys_=null,r.viewport_=document.createElement("div"),r.viewport_.className="ol-viewport"+("ontouchstart"in window?" ol-touch":""),r.viewport_.style.position="relative",r.viewport_.style.overflow="hidden",r.viewport_.style.width="100%",r.viewport_.style.height="100%",r.overlayContainer_=document.createElement("div"),r.overlayContainer_.style.position="absolute",r.overlayContainer_.style.zIndex="0",r.overlayContainer_.style.width="100%",r.overlayContainer_.style.height="100%",r.overlayContainer_.style.pointerEvents="none",r.overlayContainer_.className="ol-overlaycontainer",r.viewport_.appendChild(r.overlayContainer_),r.overlayContainerStopEvent_=document.createElement("div"),r.overlayContainerStopEvent_.style.position="absolute",r.overlayContainerStopEvent_.style.zIndex="0",r.overlayContainerStopEvent_.style.width="100%",r.overlayContainerStopEvent_.style.height="100%",r.overlayContainerStopEvent_.style.pointerEvents="none",r.overlayContainerStopEvent_.className="ol-overlaycontainer-stopevent",r.viewport_.appendChild(r.overlayContainerStopEvent_),r.mapBrowserEventHandler_=null,r.moveTolerance_=e.moveTolerance,r.keyboardEventTarget_=i.keyboardEventTarget,r.targetChangeHandlerKeys_=null,r.controls=i.controls||new ci,r.interactions=i.interactions||new ci,r.overlays_=i.overlays,r.overlayIdIndex_={},r.renderer_=null,r.postRenderFunctions_=[],r.tileQueue_=new oz(r.getTilePriority.bind(r),r.handleTileChange_.bind(r)),r.addChangeListener("layergroup",r.handleLayerGroupChanged_),r.addChangeListener("view",r.handleViewChanged_),r.addChangeListener("size",r.handleSizeChanged_),r.addChangeListener("target",r.handleTargetChanged_),r.setProperties(i.values);var o=r;return e.view&&!(e.view instanceof Il)&&e.view.then(function(s){o.setView(new Il(s))}),r.controls.addEventListener("add",function(s){s.element.setMap(this)}.bind(r)),r.controls.addEventListener("remove",function(s){s.element.setMap(null)}.bind(r)),r.interactions.addEventListener("add",function(s){s.element.setMap(this)}.bind(r)),r.interactions.addEventListener("remove",function(s){s.element.setMap(null)}.bind(r)),r.overlays_.addEventListener("add",function(s){this.addOverlayInternal_(s.element)}.bind(r)),r.overlays_.addEventListener("remove",function(s){var l=s.element.getId();void 0!==l&&delete this.overlayIdIndex_[l.toString()],s.element.setMap(null)}.bind(r)),r.controls.forEach(function(s){s.setMap(this)}.bind(r)),r.interactions.forEach(function(s){s.setMap(this)}.bind(r)),r.overlays_.forEach(r.addOverlayInternal_.bind(r)),r}return p$(t,n),t.prototype.createRenderer=function(){throw new Error("Use a map type that has a createRenderer method")},t.prototype.addControl=function(e){this.getControls().push(e)},t.prototype.addInteraction=function(e){this.getInteractions().push(e)},t.prototype.addLayer=function(e){this.getLayerGroup().getLayers().push(e)},t.prototype.handleLayerAdd_=function(e){yL(e.layer,this)},t.prototype.addOverlay=function(e){this.getOverlays().push(e)},t.prototype.addOverlayInternal_=function(e){var r=e.getId();void 0!==r&&(this.overlayIdIndex_[r.toString()]=e),e.setMap(this)},t.prototype.disposeInternal=function(){this.controls.clear(),this.interactions.clear(),this.overlays_.clear(),this.setTarget(null),n.prototype.disposeInternal.call(this)},t.prototype.forEachFeatureAtPixel=function(e,r,i){if(this.frameState_&&this.renderer_){var o=this.getCoordinateFromPixelInternal(e);return this.renderer_.forEachFeatureAtCoordinate(o,this.frameState_,void 0!==(i=void 0!==i?i:{}).hitTolerance?i.hitTolerance:0,!1!==i.checkWrapped,r,null,void 0!==i.layerFilter?i.layerFilter:xa,null)}},t.prototype.getFeaturesAtPixel=function(e,r){var i=[];return this.forEachFeatureAtPixel(e,function(o){i.push(o)},r),i},t.prototype.getAllLayers=function(){var e=[];return function r(i){i.forEach(function(o){o instanceof L0?r(o.getLayers()):e.push(o)})}(this.getLayers()),e},t.prototype.forEachLayerAtPixel=function(e,r,i){if(this.frameState_&&this.renderer_){var o=i||{};return this.renderer_.forEachLayerAtPixel(e,this.frameState_,void 0!==o.hitTolerance?o.hitTolerance:0,r,o.layerFilter||xa)}},t.prototype.hasFeatureAtPixel=function(e,r){if(!this.frameState_||!this.renderer_)return!1;var i=this.getCoordinateFromPixelInternal(e);return this.renderer_.hasFeatureAtCoordinate(i,this.frameState_,void 0!==(r=void 0!==r?r:{}).hitTolerance?r.hitTolerance:0,!1!==r.checkWrapped,void 0!==r.layerFilter?r.layerFilter:xa,null)},t.prototype.getEventCoordinate=function(e){return this.getCoordinateFromPixel(this.getEventPixel(e))},t.prototype.getEventCoordinateInternal=function(e){return this.getCoordinateFromPixelInternal(this.getEventPixel(e))},t.prototype.getEventPixel=function(e){var r=this.viewport_.getBoundingClientRect(),i="changedTouches"in e?e.changedTouches[0]:e;return[i.clientX-r.left,i.clientY-r.top]},t.prototype.getTarget=function(){return this.get("target")},t.prototype.getTargetElement=function(){var e=this.getTarget();return void 0!==e?"string"==typeof e?document.getElementById(e):e:null},t.prototype.getCoordinateFromPixel=function(e){return hb(this.getCoordinateFromPixelInternal(e),this.getView().getProjection())},t.prototype.getCoordinateFromPixelInternal=function(e){var r=this.frameState_;return r?Zn(r.pixelToCoordinateTransform,e.slice()):null},t.prototype.getControls=function(){return this.controls},t.prototype.getOverlays=function(){return this.overlays_},t.prototype.getOverlayById=function(e){var r=this.overlayIdIndex_[e.toString()];return void 0!==r?r:null},t.prototype.getInteractions=function(){return this.interactions},t.prototype.getLayerGroup=function(){return this.get("layergroup")},t.prototype.setLayers=function(e){var r=this.getLayerGroup();if(e instanceof ci)r.setLayers(e);else{var i=r.getLayers();i.clear(),i.extend(e)}},t.prototype.getLayers=function(){return this.getLayerGroup().getLayers()},t.prototype.getLoadingOrNotReady=function(){for(var e=this.getLayerGroup().getLayerStatesArray(),r=0,i=e.length;r<i;++r){var o=e[r];if(o.visible){var s=o.layer.getRenderer();if(s&&!s.ready)return!0;var a=o.layer.getSource();if(a&&a.loading)return!0}}return!1},t.prototype.getPixelFromCoordinate=function(e){var r=ns(e,this.getView().getProjection());return this.getPixelFromCoordinateInternal(r)},t.prototype.getPixelFromCoordinateInternal=function(e){var r=this.frameState_;return r?Zn(r.coordinateToPixelTransform,e.slice(0,2)):null},t.prototype.getRenderer=function(){return this.renderer_},t.prototype.getSize=function(){return this.get("size")},t.prototype.getView=function(){return this.get("view")},t.prototype.getViewport=function(){return this.viewport_},t.prototype.getOverlayContainer=function(){return this.overlayContainer_},t.prototype.getOverlayContainerStopEvent=function(){return this.overlayContainerStopEvent_},t.prototype.getOwnerDocument=function(){var e=this.getTargetElement();return e?e.ownerDocument:document},t.prototype.getTilePriority=function(e,r,i,o){return function sz(n,t,e,r,i){if(!n||!(e in n.wantedTiles)||!n.wantedTiles[e][t.getKey()])return N0;var o=n.viewState.center,s=r[0]-o[0],a=r[1]-o[1];return 65536*Math.log(i)+Math.sqrt(s*s+a*a)/i}(this.frameState_,e,r,i,o)},t.prototype.handleBrowserEvent=function(e,r){var o=new Ia(r||e.type,this,e);this.handleMapBrowserEvent(o)},t.prototype.handleMapBrowserEvent=function(e){if(this.frameState_){var r=e.originalEvent,i=r.type;if("pointerdown"===i||"wheel"===i||"keydown"===i){var o=this.getOwnerDocument(),s=this.viewport_.getRootNode?this.viewport_.getRootNode():o,a=r.target;if(this.overlayContainerStopEvent_.contains(a)||!(s===o?o.documentElement:s).contains(a))return}if(e.frameState=this.frameState_,!1!==this.dispatchEvent(e))for(var l=this.getInteractions().getArray().slice(),c=l.length-1;c>=0;c--){var f=l[c];if(f.getMap()===this&&f.getActive()&&this.getTargetElement()&&(!f.handleEvent(e)||e.propagationStopped))break}}},t.prototype.handlePostRender=function(){var e=this.frameState_,r=this.tileQueue_;if(!r.isEmpty()){var i=this.maxTilesLoading_,o=i;if(e){var s=e.viewHints;if(s[0]||s[1]){var a=Date.now()-e.time>8;i=a?0:8,o=a?0:2}}r.getTilesLoading()<i&&(r.reprioritize(),r.loadMoreTiles(i,o))}e&&this.renderer_&&!e.animate&&(!0===this.renderComplete_?(this.hasListener("rendercomplete")&&this.renderer_.dispatchRenderEvent("rendercomplete",e),!1===this.loaded_&&(this.loaded_=!0,this.dispatchEvent(new gf("loadend",this,e)))):!0===this.loaded_&&(this.loaded_=!1,this.dispatchEvent(new gf("loadstart",this,e))));for(var l=this.postRenderFunctions_,c=0,f=l.length;c<f;++c)l[c](this,e);l.length=0},t.prototype.handleSizeChanged_=function(){this.getView()&&!this.getView().getAnimating()&&this.getView().resolveConstraints(0),this.render()},t.prototype.handleTargetChanged_=function(){if(this.mapBrowserEventHandler_){for(var e=0,r=this.targetChangeHandlerKeys_.length;e<r;++e)pn(this.targetChangeHandlerKeys_[e]);this.targetChangeHandlerKeys_=null,this.viewport_.removeEventListener("contextmenu",this.boundHandleBrowserEvent_),this.viewport_.removeEventListener("wheel",this.boundHandleBrowserEvent_),this.mapBrowserEventHandler_.dispose(),this.mapBrowserEventHandler_=null,Yx(this.viewport_)}var i=this.getTargetElement();if(i){for(var o in i.appendChild(this.viewport_),this.renderer_||(this.renderer_=this.createRenderer()),this.mapBrowserEventHandler_=new ez(this,this.moveTolerance_),Lt)this.mapBrowserEventHandler_.addEventListener(Lt[o],this.handleMapBrowserEvent.bind(this));this.viewport_.addEventListener("contextmenu",this.boundHandleBrowserEvent_,!1),this.viewport_.addEventListener("wheel",this.boundHandleBrowserEvent_,!!ik&&{passive:!1});var s=this.getOwnerDocument().defaultView,a=this.keyboardEventTarget_?this.keyboardEventTarget_:i;this.targetChangeHandlerKeys_=[bt(a,"keydown",this.handleBrowserEvent,this),bt(a,"keypress",this.handleBrowserEvent,this),bt(s,"resize",this.updateSize,this)]}else this.renderer_&&(clearTimeout(this.postRenderTimeoutHandle_),this.postRenderTimeoutHandle_=void 0,this.postRenderFunctions_.length=0,this.renderer_.dispose(),this.renderer_=null),this.animationDelayKey_&&(cancelAnimationFrame(this.animationDelayKey_),this.animationDelayKey_=void 0);this.updateSize()},t.prototype.handleTileChange_=function(){this.render()},t.prototype.handleViewPropertyChanged_=function(){this.render()},t.prototype.handleViewChanged_=function(){this.viewPropertyListenerKey_&&(pn(this.viewPropertyListenerKey_),this.viewPropertyListenerKey_=null),this.viewChangeListenerKey_&&(pn(this.viewChangeListenerKey_),this.viewChangeListenerKey_=null);var e=this.getView();e&&(this.updateViewportSize_(),this.viewPropertyListenerKey_=bt(e,"propertychange",this.handleViewPropertyChanged_,this),this.viewChangeListenerKey_=bt(e,"change",this.handleViewPropertyChanged_,this),e.resolveConstraints(0)),this.render()},t.prototype.handleLayerGroupChanged_=function(){this.layerGroupPropertyListenerKeys_&&(this.layerGroupPropertyListenerKeys_.forEach(pn),this.layerGroupPropertyListenerKeys_=null);var e=this.getLayerGroup();e&&(this.handleLayerAdd_(new xl("addlayer",e)),this.layerGroupPropertyListenerKeys_=[bt(e,"propertychange",this.render,this),bt(e,"change",this.render,this),bt(e,"addlayer",this.handleLayerAdd_,this),bt(e,"removelayer",this.handleLayerRemove_,this)]),this.render()},t.prototype.isRendered=function(){return!!this.frameState_},t.prototype.renderSync=function(){this.animationDelayKey_&&cancelAnimationFrame(this.animationDelayKey_),this.animationDelay_()},t.prototype.redrawText=function(){for(var e=this.getLayerGroup().getLayerStatesArray(),r=0,i=e.length;r<i;++r){var o=e[r].layer;o.hasRenderer()&&o.getRenderer().handleFontsChanged()}},t.prototype.render=function(){this.renderer_&&void 0===this.animationDelayKey_&&(this.animationDelayKey_=requestAnimationFrame(this.animationDelay_))},t.prototype.removeControl=function(e){return this.getControls().remove(e)},t.prototype.removeInteraction=function(e){return this.getInteractions().remove(e)},t.prototype.removeLayer=function(e){return this.getLayerGroup().getLayers().remove(e)},t.prototype.handleLayerRemove_=function(e){_L(e.layer)},t.prototype.removeOverlay=function(e){return this.getOverlays().remove(e)},t.prototype.renderFrame_=function(e){var r=this,i=this.getSize(),o=this.getView(),s=this.frameState_,a=null;if(void 0!==i&&vL(i)&&o&&o.isDef()){var l=o.getHints(this.frameState_?this.frameState_.viewHints:void 0),c=o.getState();if(a={animate:!1,coordinateToPixelTransform:this.coordinateToPixelTransform_,declutterTree:null,extent:Hx(c.center,c.resolution,c.rotation,i),index:this.frameIndex_++,layerIndex:0,layerStatesArray:this.getLayerGroup().getLayerStatesArray(),pixelRatio:this.pixelRatio_,pixelToCoordinateTransform:this.pixelToCoordinateTransform_,postRenderFunctions:[],size:i,tileQueue:this.tileQueue_,time:e,usedTiles:{},viewState:c,viewHints:l,wantedTiles:{},mapId:kt(this),renderTargets:{}},c.nextCenter&&c.nextResolution){var f=isNaN(c.nextRotation)?c.rotation:c.nextRotation;a.nextExtent=Hx(c.nextCenter,c.nextResolution,f,i)}}this.frameState_=a,this.renderer_.renderFrame(a),a&&(a.animate&&this.render(),Array.prototype.push.apply(this.postRenderFunctions_,a.postRenderFunctions),s&&(!this.previousExtent_||!$x(this.previousExtent_)&&!Gg(a.extent,this.previousExtent_))&&(this.dispatchEvent(new gf("movestart",this,s)),this.previousExtent_=af(this.previousExtent_)),this.previousExtent_&&!a.viewHints[0]&&!a.viewHints[1]&&!Gg(a.extent,this.previousExtent_)&&(this.dispatchEvent(new gf("moveend",this,a)),lk(a.extent,this.previousExtent_))),this.dispatchEvent(new gf("postrender",this,a)),this.renderComplete_=this.hasListener("loadstart")||this.hasListener("loadend")||this.hasListener("rendercomplete")?!this.tileQueue_.getTilesLoading()&&!this.tileQueue_.getCount()&&!this.getLoadingOrNotReady():void 0,this.postRenderTimeoutHandle_||(this.postRenderTimeoutHandle_=setTimeout(function(){r.postRenderTimeoutHandle_=void 0,r.handlePostRender()},0))},t.prototype.setLayerGroup=function(e){var r=this.getLayerGroup();r&&this.handleLayerRemove_(new xl("removelayer",r)),this.set("layergroup",e)},t.prototype.setSize=function(e){this.set("size",e)},t.prototype.setTarget=function(e){this.set("target",e)},t.prototype.setView=function(e){if(!e||e instanceof Il)this.set("view",e);else{this.set("view",new Il);var r=this;e.then(function(i){r.setView(new Il(i))})}},t.prototype.updateSize=function(){var e=this.getTargetElement(),r=void 0;if(e){var i=getComputedStyle(e),o=e.offsetWidth-parseFloat(i.borderLeftWidth)-parseFloat(i.paddingLeft)-parseFloat(i.paddingRight)-parseFloat(i.borderRightWidth),s=e.offsetHeight-parseFloat(i.borderTopWidth)-parseFloat(i.paddingTop)-parseFloat(i.paddingBottom)-parseFloat(i.borderBottomWidth);!isNaN(o)&&!isNaN(s)&&!vL(r=[o,s])&&(e.offsetWidth||e.offsetHeight||e.getClientRects().length)&&console.warn("No map visible because the map container's width or height are 0.")}this.setSize(r),this.updateViewportSize_()},t.prototype.updateViewportSize_=function(){var e=this.getView();if(e){var r=void 0,i=getComputedStyle(this.viewport_);i.width&&i.height&&(r=[parseInt(i.width,10),parseInt(i.height,10)]),e.setViewportSize(r)}},t}(Ps);const m$=g$;var _$=function(){var n=function(t,e){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,i){r.__proto__=i}||function(r,i){for(var o in i)Object.prototype.hasOwnProperty.call(i,o)&&(r[o]=i[o])})(t,e)};return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function r(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)}}(),y$=function(n){function t(e){var r=n.call(this)||this,i=e.element;return i&&!e.target&&!i.style.pointerEvents&&(i.style.pointerEvents="auto"),r.element=i||null,r.target_=null,r.map_=null,r.listenerKeys=[],e.render&&(r.render=e.render),e.target&&r.setTarget(e.target),r}return _$(t,n),t.prototype.disposeInternal=function(){Yx(this.element),n.prototype.disposeInternal.call(this)},t.prototype.getMap=function(){return this.map_},t.prototype.setMap=function(e){this.map_&&Yx(this.element);for(var r=0,i=this.listenerKeys.length;r<i;++r)pn(this.listenerKeys[r]);this.listenerKeys.length=0,this.map_=e,e&&((this.target_?this.target_:e.getOverlayContainerStopEvent()).appendChild(this.element),this.render!==lc&&this.listenerKeys.push(bt(e,"postrender",this.render,this)),e.render())},t.prototype.render=function(e){},t.prototype.setTarget=function(e){this.target_="string"==typeof e?document.getElementById(e):e},t}(Ps);const Z0=y$;var C$=function(){var n=function(t,e){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,i){r.__proto__=i}||function(r,i){for(var o in i)Object.prototype.hasOwnProperty.call(i,o)&&(r[o]=i[o])})(t,e)};return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function r(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)}}(),w$=function(n){function t(e){var r=this,i=e||{};(r=n.call(this,{element:document.createElement("div"),render:i.render,target:i.target})||this).ulElement_=document.createElement("ul"),r.collapsed_=void 0===i.collapsed||i.collapsed,r.userCollapsed_=r.collapsed_,r.overrideCollapsible_=void 0!==i.collapsible,r.collapsible_=void 0===i.collapsible||i.collapsible,r.collapsible_||(r.collapsed_=!1);var o=void 0!==i.className?i.className:"ol-attribution",s=void 0!==i.tipLabel?i.tipLabel:"Attributions",a=void 0!==i.expandClassName?i.expandClassName:o+"-expand",l=void 0!==i.collapseLabel?i.collapseLabel:"\u203a",c=void 0!==i.collapseClassName?i.collapseClassName:o+"-collapse";"string"==typeof l?(r.collapseLabel_=document.createElement("span"),r.collapseLabel_.textContent=l,r.collapseLabel_.className=c):r.collapseLabel_=l;var f=void 0!==i.label?i.label:"i";"string"==typeof f?(r.label_=document.createElement("span"),r.label_.textContent=f,r.label_.className=a):r.label_=f;var d=r.collapsible_&&!r.collapsed_?r.collapseLabel_:r.label_;r.toggleButton_=document.createElement("button"),r.toggleButton_.setAttribute("type","button"),r.toggleButton_.setAttribute("aria-expanded",String(!r.collapsed_)),r.toggleButton_.title=s,r.toggleButton_.appendChild(d),r.toggleButton_.addEventListener("click",r.handleClick_.bind(r),!1);var v=r.element;return v.className=o+" "+$g+" "+Zx+(r.collapsed_&&r.collapsible_?" "+Tk:"")+(r.collapsible_?"":" ol-uncollapsible"),v.appendChild(r.toggleButton_),v.appendChild(r.ulElement_),r.renderedAttributions_=[],r.renderedVisible_=!0,r}return C$(t,n),t.prototype.collectSourceAttributions_=function(e){for(var r={},i=[],o=!0,s=e.layerStatesArray,a=0,l=s.length;a<l;++a){var c=s[a];if(S0(c,e.viewState)){var f=c.layer.getSource();if(f){var d=f.getAttributions();if(d){var g=d(e);if(g)if(o=o&&!1!==f.getAttributionsCollapsible(),Array.isArray(g))for(var v=0,m=g.length;v<m;++v)g[v]in r||(i.push(g[v]),r[g[v]]=!0);else g in r||(i.push(g),r[g]=!0)}}}}return this.overrideCollapsible_||this.setCollapsible(o),i},t.prototype.updateElement_=function(e){if(e){var r=this.collectSourceAttributions_(e),i=r.length>0;if(this.renderedVisible_!=i&&(this.element.style.display=i?"":"none",this.renderedVisible_=i),!ac(r,this.renderedAttributions_)){!function L8(n){for(;n.lastChild;)n.removeChild(n.lastChild)}(this.ulElement_);for(var o=0,s=r.length;o<s;++o){var a=document.createElement("li");a.innerHTML=r[o],this.ulElement_.appendChild(a)}this.renderedAttributions_=r}}else this.renderedVisible_&&(this.element.style.display="none",this.renderedVisible_=!1)},t.prototype.handleClick_=function(e){e.preventDefault(),this.handleToggle_(),this.userCollapsed_=this.collapsed_},t.prototype.handleToggle_=function(){this.element.classList.toggle(Tk),this.collapsed_?Pk(this.collapseLabel_,this.label_):Pk(this.label_,this.collapseLabel_),this.collapsed_=!this.collapsed_,this.toggleButton_.setAttribute("aria-expanded",String(!this.collapsed_))},t.prototype.getCollapsible=function(){return this.collapsible_},t.prototype.setCollapsible=function(e){this.collapsible_!==e&&(this.collapsible_=e,this.element.classList.toggle("ol-uncollapsible"),this.userCollapsed_&&this.handleToggle_())},t.prototype.setCollapsed=function(e){this.userCollapsed_=e,this.collapsible_&&this.collapsed_!==e&&this.handleToggle_()},t.prototype.getCollapsed=function(){return this.collapsed_},t.prototype.render=function(e){this.updateElement_(e.frameState)},t}(Z0);const E$=w$;var M$=function(){var n=function(t,e){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,i){r.__proto__=i}||function(r,i){for(var o in i)Object.prototype.hasOwnProperty.call(i,o)&&(r[o]=i[o])})(t,e)};return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function r(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)}}(),x$=function(n){function t(e){var r=this,i=e||{};r=n.call(this,{element:document.createElement("div"),render:i.render,target:i.target})||this;var o=void 0!==i.className?i.className:"ol-rotate",s=void 0!==i.label?i.label:"\u21e7",a=void 0!==i.compassClassName?i.compassClassName:"ol-compass";r.label_=null,"string"==typeof s?(r.label_=document.createElement("span"),r.label_.className=a,r.label_.textContent=s):(r.label_=s,r.label_.classList.add(a));var l=i.tipLabel?i.tipLabel:"Reset rotation",c=document.createElement("button");c.className=o+"-reset",c.setAttribute("type","button"),c.title=l,c.appendChild(r.label_),c.addEventListener("click",r.handleClick_.bind(r),!1);var d=r.element;return d.className=o+" "+$g+" "+Zx,d.appendChild(c),r.callResetNorth_=i.resetNorth?i.resetNorth:void 0,r.duration_=void 0!==i.duration?i.duration:250,r.autoHide_=void 0===i.autoHide||i.autoHide,r.rotation_=void 0,r.autoHide_&&r.element.classList.add(A0),r}return M$(t,n),t.prototype.handleClick_=function(e){e.preventDefault(),void 0!==this.callResetNorth_?this.callResetNorth_():this.resetNorth_()},t.prototype.resetNorth_=function(){var r=this.getMap().getView();if(r){var i=r.getRotation();void 0!==i&&(this.duration_>0&&i%(2*Math.PI)!=0?r.animate({rotation:0,duration:this.duration_,easing:wf}):r.setRotation(0))}},t.prototype.render=function(e){var r=e.frameState;if(r){var i=r.viewState.rotation;if(i!=this.rotation_){var o="rotate("+i+"rad)";if(this.autoHide_){var s=this.element.classList.contains(A0);s||0!==i?s&&0!==i&&this.element.classList.remove(A0):this.element.classList.add(A0)}this.label_.style.transform=o}this.rotation_=i}},t}(Z0);const b$=x$;var D$=function(){var n=function(t,e){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,i){r.__proto__=i}||function(r,i){for(var o in i)Object.prototype.hasOwnProperty.call(i,o)&&(r[o]=i[o])})(t,e)};return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function r(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)}}(),S$=function(n){function t(e){var r=this,i=e||{};r=n.call(this,{element:document.createElement("div"),target:i.target})||this;var o=void 0!==i.className?i.className:"ol-zoom",s=void 0!==i.delta?i.delta:1,a=void 0!==i.zoomInClassName?i.zoomInClassName:o+"-in",l=void 0!==i.zoomOutClassName?i.zoomOutClassName:o+"-out",c=void 0!==i.zoomInLabel?i.zoomInLabel:"+",f=void 0!==i.zoomOutLabel?i.zoomOutLabel:"\u2013",d=void 0!==i.zoomInTipLabel?i.zoomInTipLabel:"Zoom in",g=void 0!==i.zoomOutTipLabel?i.zoomOutTipLabel:"Zoom out",v=document.createElement("button");v.className=a,v.setAttribute("type","button"),v.title=d,v.appendChild("string"==typeof c?document.createTextNode(c):c),v.addEventListener("click",r.handleClick_.bind(r,s),!1);var m=document.createElement("button");m.className=l,m.setAttribute("type","button"),m.title=g,m.appendChild("string"==typeof f?document.createTextNode(f):f),m.addEventListener("click",r.handleClick_.bind(r,-s),!1);var w=r.element;return w.className=o+" "+$g+" "+Zx,w.appendChild(v),w.appendChild(m),r.duration_=void 0!==i.duration?i.duration:250,r}return D$(t,n),t.prototype.handleClick_=function(e,r){r.preventDefault(),this.zoomByDelta_(e)},t.prototype.zoomByDelta_=function(e){var i=this.getMap().getView();if(i){var o=i.getZoom();if(void 0!==o){var s=i.getConstrainedZoom(o+e);this.duration_>0?(i.getAnimating()&&i.cancelAnimations(),i.animate({zoom:s,duration:this.duration_,easing:wf})):i.setZoom(s)}}},t}(Z0);const I$=S$;function CL(n){var t=n||{},e=new ci;return(void 0===t.zoom||t.zoom)&&e.push(new I$(t.zoomOptions)),(void 0===t.rotate||t.rotate)&&e.push(new b$(t.rotateOptions)),(void 0===t.attribution||t.attribution)&&e.push(new E$(t.attributionOptions)),e}var T$=function(){var n=function(t,e){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,i){r.__proto__=i}||function(r,i){for(var o in i)Object.prototype.hasOwnProperty.call(i,o)&&(r[o]=i[o])})(t,e)};return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function r(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)}}(),A$=function(n){function t(e){var r=n.call(this)||this;return e&&e.handleEvent&&(r.handleEvent=e.handleEvent),r.map_=null,r.setActive(!0),r}return T$(t,n),t.prototype.getActive=function(){return this.get("active")},t.prototype.getMap=function(){return this.map_},t.prototype.handleEvent=function(e){return!0},t.prototype.setActive=function(e){this.set("active",e)},t.prototype.setMap=function(e){this.map_=e},t}(Ps);function Tb(n,t,e,r){var i=n.getZoom();if(void 0!==i){var o=n.getConstrainedZoom(i+t),s=n.getResolutionForZoom(o);n.getAnimating()&&n.cancelAnimations(),n.animate({resolution:s,anchor:e,duration:void 0!==r?r:250,easing:wf})}}const nv=A$;var O$=function(){var n=function(t,e){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,i){r.__proto__=i}||function(r,i){for(var o in i)Object.prototype.hasOwnProperty.call(i,o)&&(r[o]=i[o])})(t,e)};return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function r(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)}}(),P$=function(n){function t(e){var r=n.call(this)||this,i=e||{};return r.delta_=i.delta?i.delta:1,r.duration_=void 0!==i.duration?i.duration:250,r}return O$(t,n),t.prototype.handleEvent=function(e){var r=!1;if(e.type==Lt.DBLCLICK){var i=e.originalEvent,s=e.coordinate,a=i.shiftKey?-this.delta_:this.delta_;Tb(e.map.getView(),a,s,this.duration_),i.preventDefault(),r=!0}return!r},t}(nv);const k$=P$;var L$=function(){var n=function(t,e){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,i){r.__proto__=i}||function(r,i){for(var o in i)Object.prototype.hasOwnProperty.call(i,o)&&(r[o]=i[o])})(t,e)};return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function r(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)}}(),N$=function(n){function t(e){var r=this,i=e||{};return r=n.call(this,i)||this,i.handleDownEvent&&(r.handleDownEvent=i.handleDownEvent),i.handleDragEvent&&(r.handleDragEvent=i.handleDragEvent),i.handleMoveEvent&&(r.handleMoveEvent=i.handleMoveEvent),i.handleUpEvent&&(r.handleUpEvent=i.handleUpEvent),i.stopDown&&(r.stopDown=i.stopDown),r.handlingDownUpSequence=!1,r.targetPointers=[],r}return L$(t,n),t.prototype.getPointerCount=function(){return this.targetPointers.length},t.prototype.handleDownEvent=function(e){return!1},t.prototype.handleDragEvent=function(e){},t.prototype.handleEvent=function(e){if(!e.originalEvent)return!0;var r=!1;if(this.updateTrackedPointers_(e),this.handlingDownUpSequence){if(e.type==Lt.POINTERDRAG)this.handleDragEvent(e),e.originalEvent.preventDefault();else if(e.type==Lt.POINTERUP){var i=this.handleUpEvent(e);this.handlingDownUpSequence=i&&this.targetPointers.length>0}}else if(e.type==Lt.POINTERDOWN){var o=this.handleDownEvent(e);this.handlingDownUpSequence=o,r=this.stopDown(o)}else e.type==Lt.POINTERMOVE&&this.handleMoveEvent(e);return!r},t.prototype.handleMoveEvent=function(e){},t.prototype.handleUpEvent=function(e){return!1},t.prototype.stopDown=function(e){return e},t.prototype.updateTrackedPointers_=function(e){e.activePointers&&(this.targetPointers=e.activePointers)},t}(nv);function Ab(n){for(var t=n.length,e=0,r=0,i=0;i<t;i++)e+=n[i].clientX,r+=n[i].clientY;return[e/t,r/t]}const _c=N$;function Rb(n){var t=arguments;return function(e){for(var r=!0,i=0,o=t.length;i<o&&(r=r&&t[i](e));++i);return r}}var F$=function(n){var t=n.originalEvent;return t.altKey&&!(t.metaKey||t.ctrlKey)&&t.shiftKey},wL=function(n){return!n.map.getTargetElement().hasAttribute("tabindex")||function(n){var t=n.map.getTargetElement(),e=n.map.getOwnerDocument().activeElement;return t.contains(e)}(n)},Ob=xa,EL=function(n){var t=n.originalEvent;return 0==t.button&&!(G5&&H5&&t.ctrlKey)},Pb=function(n){var t=n.originalEvent;return!t.altKey&&!(t.metaKey||t.ctrlKey)&&!t.shiftKey},ML=function(n){var t=n.originalEvent;return!t.altKey&&!(t.metaKey||t.ctrlKey)&&t.shiftKey},xL=function(n){var t=n.originalEvent,e=t.target.tagName;return"INPUT"!==e&&"SELECT"!==e&&"TEXTAREA"!==e&&!t.target.isContentEditable},kb=function(n){var t=n.originalEvent;return ct(void 0!==t,56),"mouse"==t.pointerType},B$=function(n){var t=n.originalEvent;return ct(void 0!==t,56),t.isPrimary&&0===t.button},U$=function(){var n=function(t,e){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,i){r.__proto__=i}||function(r,i){for(var o in i)Object.prototype.hasOwnProperty.call(i,o)&&(r[o]=i[o])})(t,e)};return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function r(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)}}(),j$=function(n){function t(e){var r=n.call(this,{stopDown:Vg})||this,i=e||{};r.kinetic_=i.kinetic,r.lastCentroid=null,r.panning_=!1;var o=i.condition?i.condition:Rb(Pb,B$);return r.condition_=i.onFocusOnly?Rb(wL,o):o,r.noKinetic_=!1,r}return U$(t,n),t.prototype.handleDragEvent=function(e){this.panning_||(this.panning_=!0,this.getMap().getView().beginInteraction());var r=this.targetPointers,i=Ab(r);if(r.length==this.lastPointersCount_){if(this.kinetic_&&this.kinetic_.update(i[0],i[1]),this.lastCentroid){var o=[this.lastCentroid[0]-i[0],i[1]-this.lastCentroid[1]],a=e.map.getView();(function D8(n,t){n[0]*=t,n[1]*=t})(o,a.getResolution()),qx(o,a.getRotation()),a.adjustCenterInternal(o)}}else this.kinetic_&&this.kinetic_.begin();this.lastCentroid=i,this.lastPointersCount_=r.length,e.originalEvent.preventDefault()},t.prototype.handleUpEvent=function(e){var r=e.map,i=r.getView();if(0===this.targetPointers.length){if(!this.noKinetic_&&this.kinetic_&&this.kinetic_.end()){var o=this.kinetic_.getDistance(),s=this.kinetic_.getAngle(),a=i.getCenterInternal(),l=r.getPixelFromCoordinateInternal(a),c=r.getCoordinateFromPixelInternal([l[0]-o*Math.cos(s),l[1]-o*Math.sin(s)]);i.animateInternal({center:i.getConstrainedCenter(c),duration:500,easing:wf})}return this.panning_&&(this.panning_=!1,i.endInteraction()),!1}return this.kinetic_&&this.kinetic_.begin(),this.lastCentroid=null,!0},t.prototype.handleDownEvent=function(e){if(this.targetPointers.length>0&&this.condition_(e)){var i=e.map.getView();return this.lastCentroid=null,i.getAnimating()&&i.cancelAnimations(),this.kinetic_&&this.kinetic_.begin(),this.noKinetic_=this.targetPointers.length>1,!0}return!1},t}(_c);const G$=j$;var H$=function(){var n=function(t,e){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,i){r.__proto__=i}||function(r,i){for(var o in i)Object.prototype.hasOwnProperty.call(i,o)&&(r[o]=i[o])})(t,e)};return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function r(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)}}(),z$=function(n){function t(e){var r=this,i=e||{};return(r=n.call(this,{stopDown:Vg})||this).condition_=i.condition?i.condition:F$,r.lastAngle_=void 0,r.duration_=void 0!==i.duration?i.duration:250,r}return H$(t,n),t.prototype.handleDragEvent=function(e){if(kb(e)){var r=e.map,i=r.getView();if(i.getConstraints().rotation!==gb){var o=r.getSize(),s=e.pixel,a=Math.atan2(o[1]/2-s[1],s[0]-o[0]/2);void 0!==this.lastAngle_&&i.adjustRotationInternal(-(a-this.lastAngle_)),this.lastAngle_=a}}},t.prototype.handleUpEvent=function(e){return!kb(e)||(e.map.getView().endInteraction(this.duration_),!1)},t.prototype.handleDownEvent=function(e){return!(!kb(e)||!EL(e)||!this.condition_(e)||(e.map.getView().beginInteraction(),this.lastAngle_=void 0,0))},t}(_c);const $$=z$;var W$=function(){var n=function(t,e){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,i){r.__proto__=i}||function(r,i){for(var o in i)Object.prototype.hasOwnProperty.call(i,o)&&(r[o]=i[o])})(t,e)};return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function r(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)}}(),q$=function(n){function t(e){var r=n.call(this)||this;return r.geometry_=null,r.element_=document.createElement("div"),r.element_.style.position="absolute",r.element_.style.pointerEvents="auto",r.element_.className="ol-box "+e,r.map_=null,r.startPixel_=null,r.endPixel_=null,r}return W$(t,n),t.prototype.disposeInternal=function(){this.setMap(null)},t.prototype.render_=function(){var e=this.startPixel_,r=this.endPixel_,i="px",o=this.element_.style;o.left=Math.min(e[0],r[0])+i,o.top=Math.min(e[1],r[1])+i,o.width=Math.abs(r[0]-e[0])+i,o.height=Math.abs(r[1]-e[1])+i},t.prototype.setMap=function(e){if(this.map_){this.map_.getOverlayContainer().removeChild(this.element_);var r=this.element_.style;r.left="inherit",r.top="inherit",r.width="inherit",r.height="inherit"}this.map_=e,this.map_&&this.map_.getOverlayContainer().appendChild(this.element_)},t.prototype.setPixels=function(e,r){this.startPixel_=e,this.endPixel_=r,this.createOrUpdateGeometry(),this.render_()},t.prototype.createOrUpdateGeometry=function(){var e=this.startPixel_,r=this.endPixel_,o=[e,[e[0],r[1]],r,[r[0],e[1]]].map(this.map_.getCoordinateFromPixelInternal,this.map_);o[4]=o[0].slice(),this.geometry_?this.geometry_.setCoordinates([o]):this.geometry_=new q0([o])},t.prototype.getGeometry=function(){return this.geometry_},t}(kx);const K$=q$;var bL=function(){var n=function(t,e){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,i){r.__proto__=i}||function(r,i){for(var o in i)Object.prototype.hasOwnProperty.call(i,o)&&(r[o]=i[o])})(t,e)};return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function r(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)}}(),Lb=function(n){function t(e,r,i){var o=n.call(this,e)||this;return o.coordinate=r,o.mapBrowserEvent=i,o}return bL(t,n),t}(Qo),Z$=function(n){function t(e){var r=n.call(this)||this,i=e||{};return r.box_=new K$(i.className||"ol-dragbox"),r.minArea_=void 0!==i.minArea?i.minArea:64,i.onBoxEnd&&(r.onBoxEnd=i.onBoxEnd),r.startPixel_=null,r.condition_=i.condition?i.condition:EL,r.boxEndCondition_=i.boxEndCondition?i.boxEndCondition:r.defaultBoxEndCondition,r}return bL(t,n),t.prototype.defaultBoxEndCondition=function(e,r,i){var o=i[0]-r[0],s=i[1]-r[1];return o*o+s*s>=this.minArea_},t.prototype.getGeometry=function(){return this.box_.getGeometry()},t.prototype.handleDragEvent=function(e){this.box_.setPixels(this.startPixel_,e.pixel),this.dispatchEvent(new Lb("boxdrag",e.coordinate,e))},t.prototype.handleUpEvent=function(e){this.box_.setMap(null);var r=this.boxEndCondition_(e,this.startPixel_,e.pixel);return r&&this.onBoxEnd(e),this.dispatchEvent(new Lb(r?"boxend":"boxcancel",e.coordinate,e)),!1},t.prototype.handleDownEvent=function(e){return!!this.condition_(e)&&(this.startPixel_=e.pixel,this.box_.setMap(e.map),this.box_.setPixels(this.startPixel_,this.startPixel_),this.dispatchEvent(new Lb("boxstart",e.coordinate,e)),!0)},t.prototype.onBoxEnd=function(e){},t}(_c);const Y$=Z$;var X$=function(){var n=function(t,e){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,i){r.__proto__=i}||function(r,i){for(var o in i)Object.prototype.hasOwnProperty.call(i,o)&&(r[o]=i[o])})(t,e)};return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function r(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)}}(),Q$=function(n){function t(e){var r=this,i=e||{};return(r=n.call(this,{condition:i.condition?i.condition:ML,className:i.className||"ol-dragzoom",minArea:i.minArea})||this).duration_=void 0!==i.duration?i.duration:200,r.out_=void 0!==i.out&&i.out,r}return X$(t,n),t.prototype.onBoxEnd=function(e){var i=this.getMap().getView(),o=this.getGeometry();if(this.out_){var s=i.rotatedExtentForGeometry(o),a=i.getResolutionForExtentInternal(s),l=i.getResolution()/a;(o=o.clone()).scale(l*l)}i.fitInternal(o,{duration:this.duration_,easing:wf})},t}(Y$);const J$=Q$;var e9=function(){var n=function(t,e){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,i){r.__proto__=i}||function(r,i){for(var o in i)Object.prototype.hasOwnProperty.call(i,o)&&(r[o]=i[o])})(t,e)};return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function r(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)}}(),t9=function(n){function t(e){var r=n.call(this)||this,i=e||{};return r.defaultCondition_=function(o){return Pb(o)&&xL(o)},r.condition_=void 0!==i.condition?i.condition:r.defaultCondition_,r.duration_=void 0!==i.duration?i.duration:100,r.pixelDelta_=void 0!==i.pixelDelta?i.pixelDelta:128,r}return e9(t,n),t.prototype.handleEvent=function(e){var r=!1;if("keydown"==e.type){var i=e.originalEvent,o=i.keyCode;if(this.condition_(e)&&(40==o||37==o||39==o||38==o)){var a=e.map.getView(),l=a.getResolution()*this.pixelDelta_,c=0,f=0;40==o?f=-l:37==o?c=-l:39==o?c=l:f=l;var d=[c,f];qx(d,a.getRotation()),function R$(n,t,e){var r=n.getCenterInternal();r&&n.animateInternal({duration:void 0!==e?e:250,easing:Pz,center:n.getConstrainedCenter([r[0]+t[0],r[1]+t[1]])})}(a,d,this.duration_),i.preventDefault(),r=!0}}return!r},t}(nv);const n9=t9;var r9=function(){var n=function(t,e){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,i){r.__proto__=i}||function(r,i){for(var o in i)Object.prototype.hasOwnProperty.call(i,o)&&(r[o]=i[o])})(t,e)};return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function r(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)}}(),i9=function(n){function t(e){var r=n.call(this)||this,i=e||{};return r.condition_=i.condition?i.condition:xL,r.delta_=i.delta?i.delta:1,r.duration_=void 0!==i.duration?i.duration:100,r}return r9(t,n),t.prototype.handleEvent=function(e){var r=!1;if("keydown"==e.type||"keypress"==e.type){var i=e.originalEvent,o=i.charCode;if(this.condition_(e)&&(o=="+".charCodeAt(0)||o=="-".charCodeAt(0))){var s=e.map,a=o=="+".charCodeAt(0)?this.delta_:-this.delta_;Tb(s.getView(),a,void 0,this.duration_),i.preventDefault(),r=!0}}return!r},t}(nv);const o9=i9;var s9=function(){function n(t,e,r){this.decay_=t,this.minVelocity_=e,this.delay_=r,this.points_=[],this.angle_=0,this.initialVelocity_=0}return n.prototype.begin=function(){this.points_.length=0,this.angle_=0,this.initialVelocity_=0},n.prototype.update=function(t,e){this.points_.push(t,e,Date.now())},n.prototype.end=function(){if(this.points_.length<6)return!1;var t=Date.now()-this.delay_,e=this.points_.length-3;if(this.points_[e+2]<t)return!1;for(var r=e-3;r>0&&this.points_[r+2]>t;)r-=3;var i=this.points_[e+2]-this.points_[r+2];if(i<1e3/60)return!1;var o=this.points_[e]-this.points_[r],s=this.points_[e+1]-this.points_[r+1];return this.angle_=Math.atan2(s,o),this.initialVelocity_=Math.sqrt(o*o+s*s)/i,this.initialVelocity_>this.minVelocity_},n.prototype.getDistance=function(){return(this.minVelocity_-this.initialVelocity_)/this.decay_},n.prototype.getAngle=function(){return this.angle_},n}();const a9=s9;var l9=function(){var n=function(t,e){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,i){r.__proto__=i}||function(r,i){for(var o in i)Object.prototype.hasOwnProperty.call(i,o)&&(r[o]=i[o])})(t,e)};return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function r(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)}}(),u9=function(n){function t(e){var r=this,i=e||{};(r=n.call(this,i)||this).totalDelta_=0,r.lastDelta_=0,r.maxDelta_=void 0!==i.maxDelta?i.maxDelta:1,r.duration_=void 0!==i.duration?i.duration:250,r.timeout_=void 0!==i.timeout?i.timeout:80,r.useAnchor_=void 0===i.useAnchor||i.useAnchor,r.constrainResolution_=void 0!==i.constrainResolution&&i.constrainResolution;var o=i.condition?i.condition:Ob;return r.condition_=i.onFocusOnly?Rb(wL,o):o,r.lastAnchor_=null,r.startTime_=void 0,r.mode_=void 0,r.trackpadEventGap_=400,r.deltaPerZoom_=300,r}return l9(t,n),t.prototype.endInteraction_=function(){this.trackpadTimeoutId_=void 0;var e=this.getMap();e&&e.getView().endInteraction(void 0,this.lastDelta_?this.lastDelta_>0?1:-1:0,this.lastAnchor_)},t.prototype.handleEvent=function(e){if(!this.condition_(e))return!0;if("wheel"!==e.type)return!0;var s,i=e.map,o=e.originalEvent;if(o.preventDefault(),this.useAnchor_&&(this.lastAnchor_=e.coordinate),"wheel"==e.type&&(s=o.deltaY,U5&&o.deltaMode===WheelEvent.DOM_DELTA_PIXEL&&(s/=rk),o.deltaMode===WheelEvent.DOM_DELTA_LINE&&(s*=40)),0===s)return!1;this.lastDelta_=s;var a=Date.now();void 0===this.startTime_&&(this.startTime_=a),(!this.mode_||a-this.startTime_>this.trackpadEventGap_)&&(this.mode_=Math.abs(s)<4?"trackpad":"wheel");var l=i.getView();if("trackpad"===this.mode_&&!l.getConstrainResolution()&&!this.constrainResolution_)return this.trackpadTimeoutId_?clearTimeout(this.trackpadTimeoutId_):(l.getAnimating()&&l.cancelAnimations(),l.beginInteraction()),this.trackpadTimeoutId_=setTimeout(this.endInteraction_.bind(this),this.timeout_),l.adjustZoom(-s/this.deltaPerZoom_,this.lastAnchor_),this.startTime_=a,!1;this.totalDelta_+=s;var c=Math.max(this.timeout_-(a-this.startTime_),0);return clearTimeout(this.timeoutId_),this.timeoutId_=setTimeout(this.handleWheelZoom_.bind(this,i),c),!1},t.prototype.handleWheelZoom_=function(e){var r=e.getView();r.getAnimating()&&r.cancelAnimations();var i=-Sn(this.totalDelta_,-this.maxDelta_*this.deltaPerZoom_,this.maxDelta_*this.deltaPerZoom_)/this.deltaPerZoom_;(r.getConstrainResolution()||this.constrainResolution_)&&(i=i?i>0?1:-1:0),Tb(r,i,this.lastAnchor_,this.duration_),this.mode_=void 0,this.totalDelta_=0,this.lastAnchor_=null,this.startTime_=void 0,this.timeoutId_=void 0},t.prototype.setMouseAnchor=function(e){this.useAnchor_=e,e||(this.lastAnchor_=null)},t}(nv);const c9=u9;var h9=function(){var n=function(t,e){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,i){r.__proto__=i}||function(r,i){for(var o in i)Object.prototype.hasOwnProperty.call(i,o)&&(r[o]=i[o])})(t,e)};return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function r(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)}}(),f9=function(n){function t(e){var r=this,i=e||{},o=i;return o.stopDown||(o.stopDown=Vg),(r=n.call(this,o)||this).anchor_=null,r.lastAngle_=void 0,r.rotating_=!1,r.rotationDelta_=0,r.threshold_=void 0!==i.threshold?i.threshold:.3,r.duration_=void 0!==i.duration?i.duration:250,r}return h9(t,n),t.prototype.handleDragEvent=function(e){var r=0,i=this.targetPointers[0],o=this.targetPointers[1],s=Math.atan2(o.clientY-i.clientY,o.clientX-i.clientX);if(void 0!==this.lastAngle_){var a=s-this.lastAngle_;this.rotationDelta_+=a,!this.rotating_&&Math.abs(this.rotationDelta_)>this.threshold_&&(this.rotating_=!0),r=a}this.lastAngle_=s;var l=e.map,c=l.getView();if(c.getConstraints().rotation!==gb){var f=l.getViewport().getBoundingClientRect(),d=Ab(this.targetPointers);d[0]-=f.left,d[1]-=f.top,this.anchor_=l.getCoordinateFromPixelInternal(d),this.rotating_&&(l.render(),c.adjustRotationInternal(r,this.anchor_))}},t.prototype.handleUpEvent=function(e){return!(this.targetPointers.length<2&&(e.map.getView().endInteraction(this.duration_),1))},t.prototype.handleDownEvent=function(e){if(this.targetPointers.length>=2){var r=e.map;return this.anchor_=null,this.lastAngle_=void 0,this.rotating_=!1,this.rotationDelta_=0,this.handlingDownUpSequence||r.getView().beginInteraction(),!0}return!1},t}(_c);const d9=f9;var p9=function(){var n=function(t,e){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,i){r.__proto__=i}||function(r,i){for(var o in i)Object.prototype.hasOwnProperty.call(i,o)&&(r[o]=i[o])})(t,e)};return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function r(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)}}(),g9=function(n){function t(e){var r=this,i=e||{},o=i;return o.stopDown||(o.stopDown=Vg),(r=n.call(this,o)||this).anchor_=null,r.duration_=void 0!==i.duration?i.duration:400,r.lastDistance_=void 0,r.lastScaleDelta_=1,r}return p9(t,n),t.prototype.handleDragEvent=function(e){var r=1,i=this.targetPointers[0],o=this.targetPointers[1],s=i.clientX-o.clientX,a=i.clientY-o.clientY,l=Math.sqrt(s*s+a*a);void 0!==this.lastDistance_&&(r=this.lastDistance_/l),this.lastDistance_=l;var c=e.map,f=c.getView();1!=r&&(this.lastScaleDelta_=r);var d=c.getViewport().getBoundingClientRect(),g=Ab(this.targetPointers);g[0]-=d.left,g[1]-=d.top,this.anchor_=c.getCoordinateFromPixelInternal(g),c.render(),f.adjustResolutionInternal(r,this.anchor_)},t.prototype.handleUpEvent=function(e){return!(this.targetPointers.length<2&&(e.map.getView().endInteraction(this.duration_,this.lastScaleDelta_>1?1:-1),1))},t.prototype.handleDownEvent=function(e){if(this.targetPointers.length>=2){var r=e.map;return this.anchor_=null,this.lastDistance_=void 0,this.lastScaleDelta_=1,this.handlingDownUpSequence||r.getView().beginInteraction(),!0}return!1},t}(_c);const v9=g9;var _9=function(){var n=function(t,e){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,i){r.__proto__=i}||function(r,i){for(var o in i)Object.prototype.hasOwnProperty.call(i,o)&&(r[o]=i[o])})(t,e)};return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function r(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)}}(),y9=function(n){function t(e){return(e=In({},e)).controls||(e.controls=CL()),e.interactions||(e.interactions=function m9(n){var t=n||{},e=new ci,r=new a9(-.005,.05,100);return(void 0===t.altShiftDragRotate||t.altShiftDragRotate)&&e.push(new $$),(void 0===t.doubleClickZoom||t.doubleClickZoom)&&e.push(new k$({delta:t.zoomDelta,duration:t.zoomDuration})),(void 0===t.dragPan||t.dragPan)&&e.push(new G$({onFocusOnly:t.onFocusOnly,kinetic:r})),(void 0===t.pinchRotate||t.pinchRotate)&&e.push(new d9),(void 0===t.pinchZoom||t.pinchZoom)&&e.push(new v9({duration:t.zoomDuration})),(void 0===t.keyboard||t.keyboard)&&(e.push(new n9),e.push(new o9({delta:t.zoomDelta,duration:t.zoomDuration}))),(void 0===t.mouseWheelZoom||t.mouseWheelZoom)&&e.push(new c9({onFocusOnly:t.onFocusOnly,duration:t.zoomDuration})),(void 0===t.shiftDragZoom||t.shiftDragZoom)&&e.push(new J$({duration:t.zoomDuration})),e}({onFocusOnly:!0})),n.call(this,e)||this}return _9(t,n),t.prototype.createRenderer=function(){return new $8(this)},t}(m$);const C9=y9;var w9=function(){var n=function(t,e){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,i){r.__proto__=i}||function(r,i){for(var o in i)Object.prototype.hasOwnProperty.call(i,o)&&(r[o]=i[o])})(t,e)};return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function r(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)}}(),E9=function(n){function t(e){var r=this,i=e||{},o=In({},i);return delete o.preload,delete o.useInterimTilesOnError,(r=n.call(this,o)||this).setPreload(void 0!==i.preload?i.preload:0),r.setUseInterimTilesOnError(void 0===i.useInterimTilesOnError||i.useInterimTilesOnError),r}return w9(t,n),t.prototype.getPreload=function(){return this.get("preload")},t.prototype.setPreload=function(e){this.set("preload",e)},t.prototype.getUseInterimTilesOnError=function(){return this.get("useInterimTilesOnError")},t.prototype.setUseInterimTilesOnError=function(e){this.set("useInterimTilesOnError",e)},t.prototype.getData=function(e){return n.prototype.getData.call(this,e)},t}(I0);const M9=E9;var x9=function(){var n=function(t,e){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,i){r.__proto__=i}||function(r,i){for(var o in i)Object.prototype.hasOwnProperty.call(i,o)&&(r[o]=i[o])})(t,e)};return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function r(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)}}(),b9=function(n){function t(e){var r=n.call(this)||this;return r.ready=!0,r.boundHandleImageChange_=r.handleImageChange_.bind(r),r.layer_=e,r.declutterExecutorGroup=null,r}return x9(t,n),t.prototype.getFeatures=function(e){return vt()},t.prototype.getData=function(e){return null},t.prototype.prepareFrame=function(e){return vt()},t.prototype.renderFrame=function(e,r){return vt()},t.prototype.loadedTileCallback=function(e,r,i){e[r]||(e[r]={}),e[r][i.tileCoord.toString()]=i},t.prototype.createLoadedTileFinder=function(e,r,i){return function(o,s){var a=this.loadedTileCallback.bind(this,i,o);return e.forEachLoadedTile(r,o,s,a)}.bind(this)},t.prototype.forEachFeatureAtCoordinate=function(e,r,i,o,s){},t.prototype.getDataAtPixel=function(e,r,i){return null},t.prototype.getLayer=function(){return this.layer_},t.prototype.handleFontsChanged=function(){},t.prototype.handleImageChange_=function(e){2===e.target.getState()&&this.renderIfReadyAndVisible()},t.prototype.loadImage=function(e){var r=e.getState();return 2!=r&&3!=r&&e.addEventListener("change",this.boundHandleImageChange_),0==r&&(e.load(),r=e.getState()),2==r},t.prototype.renderIfReadyAndVisible=function(){var e=this.getLayer();e&&e.getVisible()&&"ready"===e.getSourceState()&&e.changed()},t.prototype.disposeInternal=function(){delete this.layer_,n.prototype.disposeInternal.call(this)},t}(wk);const D9=b9;var S9=function(){var n=function(t,e){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,i){r.__proto__=i}||function(r,i){for(var o in i)Object.prototype.hasOwnProperty.call(i,o)&&(r[o]=i[o])})(t,e)};return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function r(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)}}(),DL=[],Mf=null,T9=function(n){function t(e){var r=n.call(this,e)||this;return r.container=null,r.tempTransform=[1,0,0,1,0,0],r.pixelTransform=[1,0,0,1,0,0],r.inversePixelTransform=[1,0,0,1,0,0],r.context=null,r.containerReused=!1,r.pixelContext_=null,r.frameState=null,r}return S9(t,n),t.prototype.getImageData=function(e,r,i){var o;Mf||function I9(){var n=document.createElement("canvas");n.width=1,n.height=1,Mf=n.getContext("2d")}(),Mf.clearRect(0,0,1,1);try{Mf.drawImage(e,r,i,1,1,0,0,1,1),o=Mf.getImageData(0,0,1,1).data}catch(s){return Mf=null,null}return o},t.prototype.getBackground=function(e){var i=this.getLayer().getBackground();return"function"==typeof i&&(i=i(e.viewState.resolution)),i||void 0},t.prototype.useContainer=function(e,r,i){var s,a,o=this.getLayer().getClassName();if(e&&e.className===o&&(!i||e&&e.style.backgroundColor&&ac(M0(e.style.backgroundColor),M0(i)))&&(l=e.firstElementChild)instanceof HTMLCanvasElement&&(a=l.getContext("2d")),a&&a.canvas.style.transform===r?(this.container=e,this.context=a,this.containerReused=!0):this.containerReused&&(this.container=null,this.context=null,this.containerReused=!1),!this.container){(s=document.createElement("div")).className=o;var l,c=s.style;c.position="absolute",c.width="100%",c.height="100%",a=to(),s.appendChild(l=a.canvas),(c=l.style).position="absolute",c.left="0",c.transformOrigin="top left",this.container=s,this.context=a}!this.containerReused&&i&&!this.container.style.backgroundColor&&(this.container.style.backgroundColor=i)},t.prototype.clipUnrotated=function(e,r,i){var o=uc(i),s=y0(i),a=_0(i),l=m0(i);Zn(r.coordinateToPixelTransform,o),Zn(r.coordinateToPixelTransform,s),Zn(r.coordinateToPixelTransform,a),Zn(r.coordinateToPixelTransform,l);var c=this.inversePixelTransform;Zn(c,o),Zn(c,s),Zn(c,a),Zn(c,l),e.save(),e.beginPath(),e.moveTo(Math.round(o[0]),Math.round(o[1])),e.lineTo(Math.round(s[0]),Math.round(s[1])),e.lineTo(Math.round(a[0]),Math.round(a[1])),e.lineTo(Math.round(l[0]),Math.round(l[1])),e.clip()},t.prototype.dispatchRenderEvent_=function(e,r,i){var o=this.getLayer();if(o.hasListener(e)){var s=new Ik(e,this.inversePixelTransform,i,r);o.dispatchEvent(s)}},t.prototype.preRender=function(e,r){this.frameState=r,this.dispatchRenderEvent_("prerender",e,r)},t.prototype.postRender=function(e,r){this.dispatchRenderEvent_("postrender",e,r)},t.prototype.getRenderTransform=function(e,r,i,o,s,a,l){var d=o/r;return Os(this.tempTransform,s/2,a/2,d,-d,-i,-e[0]+l,-e[1])},t.prototype.getDataAtPixel=function(e,r,i){var o=Zn(this.inversePixelTransform,e.slice()),s=this.context,l=this.getLayer().getExtent();if(l&&!jg(l,Zn(r.pixelToCoordinateTransform,e.slice())))return null;var m,f=Math.round(o[0]),d=Math.round(o[1]),g=this.pixelContext_;if(!g){var v=document.createElement("canvas");v.width=1,v.height=1,g=v.getContext("2d"),this.pixelContext_=g}g.clearRect(0,0,1,1);try{g.drawImage(s.canvas,f,d,1,1,0,0,1,1),m=g.getImageData(0,0,1,1).data}catch(y){return"SecurityError"===y.name?(this.pixelContext_=null,new Uint8Array):m}return 0===m[3]?null:m},t.prototype.disposeInternal=function(){delete this.frameState,n.prototype.disposeInternal.call(this)},t}(D9);const SL=T9;var A9=function(){var n=function(t,e){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,i){r.__proto__=i}||function(r,i){for(var o in i)Object.prototype.hasOwnProperty.call(i,o)&&(r[o]=i[o])})(t,e)};return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function r(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)}}(),R9=function(n){function t(e,r,i){var o=n.call(this)||this,s=i||{};return o.tileCoord=e,o.state=r,o.interimTile=null,o.key="",o.transition_=void 0===s.transition?250:s.transition,o.transitionStarts_={},o.interpolate=!!s.interpolate,o}return A9(t,n),t.prototype.changed=function(){this.dispatchEvent("change")},t.prototype.release=function(){},t.prototype.getKey=function(){return this.key+"/"+this.tileCoord},t.prototype.getInterimTile=function(){if(!this.interimTile)return this;var e=this.interimTile;do{if(2==e.getState())return this.transition_=0,e;e=e.interimTile}while(e);return this},t.prototype.refreshInterimChain=function(){if(this.interimTile){var e=this.interimTile,r=this;do{if(2==e.getState()){e.interimTile=null;break}1==e.getState()?r=e:0==e.getState()?r.interimTile=e.interimTile:r=e,e=r.interimTile}while(e)}},t.prototype.getTileCoord=function(){return this.tileCoord},t.prototype.getState=function(){return this.state},t.prototype.setState=function(e){if(3!==this.state&&this.state>e)throw new Error("Tile load sequence violation");this.state=e,this.changed()},t.prototype.load=function(){vt()},t.prototype.getAlpha=function(e,r){if(!this.transition_)return 1;var i=this.transitionStarts_[e];if(i){if(-1===i)return 1}else this.transitionStarts_[e]=i=r;var o=r-i+1e3/60;return o>=this.transition_?1:Qk(o/this.transition_)},t.prototype.inTransition=function(e){return!!this.transition_&&-1!==this.transitionStarts_[e]},t.prototype.endTransition=function(e){this.transition_&&(this.transitionStarts_[e]=-1)},t}(ff);const IL=R9;var O9=function(){var n=function(t,e){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,i){r.__proto__=i}||function(r,i){for(var o in i)Object.prototype.hasOwnProperty.call(i,o)&&(r[o]=i[o])})(t,e)};return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function r(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)}}(),P9=function(n){function t(e,r,i,o){var s=n.call(this)||this;return s.extent=e,s.pixelRatio_=i,s.resolution=r,s.state=o,s}return O9(t,n),t.prototype.changed=function(){this.dispatchEvent("change")},t.prototype.getExtent=function(){return this.extent},t.prototype.getImage=function(){return vt()},t.prototype.getPixelRatio=function(){return this.pixelRatio_},t.prototype.getResolution=function(){return this.resolution},t.prototype.getState=function(){return this.state},t.prototype.load=function(){vt()},t}(ff);const k9=P9;var L9=function(){var n=function(t,e){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,i){r.__proto__=i}||function(r,i){for(var o in i)Object.prototype.hasOwnProperty.call(i,o)&&(r[o]=i[o])})(t,e)};return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function r(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)}}();function Fb(n,t,e){var r=n,i=!0,o=!1,s=!1,a=[b0(r,"load",function(){s=!0,o||t()})];return r.src&&z5?(o=!0,r.decode().then(function(){i&&t()}).catch(function(l){i&&(s?t():e())})):a.push(b0(r,"error",e)),function(){i=!1,a.forEach(pn)}}!function(n){function t(e,r,i,o,s,a){var l=n.call(this,e,r,i,0)||this;return l.src_=o,l.image_=new Image,null!==s&&(l.image_.crossOrigin=s),l.unlisten_=null,l.state=0,l.imageLoadFunction_=a,l}L9(t,n),t.prototype.getImage=function(){return this.image_},t.prototype.handleImageError_=function(){this.state=3,this.unlistenImage_(),this.changed()},t.prototype.handleImageLoad_=function(){void 0===this.resolution&&(this.resolution=eo(this.extent)/this.image_.height),this.state=2,this.unlistenImage_(),this.changed()},t.prototype.load=function(){(0==this.state||3==this.state)&&(this.state=1,this.changed(),this.imageLoadFunction_(this,this.src_),this.unlisten_=Fb(this.image_,this.handleImageLoad_.bind(this),this.handleImageError_.bind(this)))},t.prototype.setImage=function(e){this.image_=e,this.resolution=eo(this.extent)/this.image_.height},t.prototype.unlistenImage_=function(){this.unlisten_&&(this.unlisten_(),this.unlisten_=null)}}(k9);var N9=function(){var n=function(t,e){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,i){r.__proto__=i}||function(r,i){for(var o in i)Object.prototype.hasOwnProperty.call(i,o)&&(r[o]=i[o])})(t,e)};return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function r(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)}}(),F9=function(n){function t(e,r,i,o,s,a){var l=n.call(this,e,r,a)||this;return l.crossOrigin_=o,l.src_=i,l.key=i,l.image_=new Image,null!==o&&(l.image_.crossOrigin=o),l.unlisten_=null,l.tileLoadFunction_=s,l}return N9(t,n),t.prototype.getImage=function(){return this.image_},t.prototype.setImage=function(e){this.image_=e,this.state=2,this.unlistenImage_(),this.changed()},t.prototype.handleImageError_=function(){this.state=3,this.unlistenImage_(),this.image_=function V9(){var n=to(1,1);return n.fillStyle="rgba(0,0,0,0)",n.fillRect(0,0,1,1),n.canvas}(),this.changed()},t.prototype.handleImageLoad_=function(){var e=this.image_;this.state=e.naturalWidth&&e.naturalHeight?2:4,this.unlistenImage_(),this.changed()},t.prototype.load=function(){3==this.state&&(this.state=0,this.image_=new Image,null!==this.crossOrigin_&&(this.image_.crossOrigin=this.crossOrigin_)),0==this.state&&(this.state=1,this.changed(),this.tileLoadFunction_(this,this.src_),this.unlisten_=Fb(this.image_,this.handleImageLoad_.bind(this),this.handleImageError_.bind(this)))},t.prototype.unlistenImage_=function(){this.unlisten_&&(this.unlisten_(),this.unlisten_=null)},t}(IL);const TL=F9;var j9=function(){function n(t,e,r,i,o,s){this.sourceProj_=t,this.targetProj_=e;var a={},l=ev(this.targetProj_,this.sourceProj_);this.transformInv_=function(S){var T=S[0]+"/"+S[1];return a[T]||(a[T]=l(S)),a[T]},this.maxSourceExtent_=i,this.errorThresholdSquared_=o*o,this.triangles_=[],this.wrapsXInSource_=!1,this.canWrapXInSource_=this.sourceProj_.canWrapX()&&!!i&&!!this.sourceProj_.getExtent()&&Yt(i)==Yt(this.sourceProj_.getExtent()),this.sourceWorldWidth_=this.sourceProj_.getExtent()?Yt(this.sourceProj_.getExtent()):null,this.targetWorldWidth_=this.targetProj_.getExtent()?Yt(this.targetProj_.getExtent()):null;var c=uc(r),f=y0(r),d=_0(r),g=m0(r),v=this.transformInv_(c),m=this.transformInv_(f),y=this.transformInv_(d),w=this.transformInv_(g),x=10+(s?Math.max(0,Math.ceil(a8(v0(r)/(s*s*256*256)))):0);if(this.addQuad_(c,f,d,g,v,m,y,w,x),this.wrapsXInSource_){var E=1/0;this.triangles_.forEach(function(S,T,O){E=Math.min(E,S.source[0][0],S.source[1][0],S.source[2][0])}),this.triangles_.forEach(function(S){if(Math.max(S.source[0][0],S.source[1][0],S.source[2][0])-E>this.sourceWorldWidth_/2){var T=[[S.source[0][0],S.source[0][1]],[S.source[1][0],S.source[1][1]],[S.source[2][0],S.source[2][1]]];T[0][0]-E>this.sourceWorldWidth_/2&&(T[0][0]-=this.sourceWorldWidth_),T[1][0]-E>this.sourceWorldWidth_/2&&(T[1][0]-=this.sourceWorldWidth_),T[2][0]-E>this.sourceWorldWidth_/2&&(T[2][0]-=this.sourceWorldWidth_);var O=Math.min(T[0][0],T[1][0],T[2][0]);Math.max(T[0][0],T[1][0],T[2][0])-O<this.sourceWorldWidth_/2&&(S.source=T)}}.bind(this))}a={}}return n.prototype.addTriangle_=function(t,e,r,i,o,s){this.triangles_.push({source:[i,o,s],target:[t,e,r]})},n.prototype.addQuad_=function(t,e,r,i,o,s,a,l,c){var f=ak([o,s,a,l]),d=this.sourceWorldWidth_?Yt(f)/this.sourceWorldWidth_:null,g=this.sourceWorldWidth_,v=this.sourceProj_.canWrapX()&&d>.5&&d<1,m=!1;if(c>0&&(this.targetProj_.isGlobal()&&this.targetWorldWidth_&&(m=Yt(ak([t,e,r,i]))/this.targetWorldWidth_>.25||m),!v&&this.sourceProj_.isGlobal()&&d&&(m=d>.25||m)),!(!m&&this.maxSourceExtent_&&isFinite(f[0])&&isFinite(f[1])&&isFinite(f[2])&&isFinite(f[3]))||ui(f,this.maxSourceExtent_)){var x=0;if(!(m||isFinite(o[0])&&isFinite(o[1])&&isFinite(s[0])&&isFinite(s[1])&&isFinite(a[0])&&isFinite(a[1])&&isFinite(l[0])&&isFinite(l[1])))if(c>0)m=!0;else if(1!=(x=(isFinite(o[0])&&isFinite(o[1])?0:8)+(isFinite(s[0])&&isFinite(s[1])?0:4)+(isFinite(a[0])&&isFinite(a[1])?0:2)+(isFinite(l[0])&&isFinite(l[1])?0:1))&&2!=x&&4!=x&&8!=x)return;if(c>0){if(!m){var S=this.transformInv_([(t[0]+r[0])/2,(t[1]+r[1])/2]),T=void 0;T=v?(hc(o[0],g)+hc(a[0],g))/2-hc(S[0],g):(o[0]+a[0])/2-S[0];var N=(o[1]+a[1])/2-S[1];m=T*T+N*N>this.errorThresholdSquared_}if(m){if(Math.abs(t[0]-r[0])<=Math.abs(t[1]-r[1])){var H=[(e[0]+r[0])/2,(e[1]+r[1])/2],X=this.transformInv_(H),pe=[(i[0]+t[0])/2,(i[1]+t[1])/2],me=this.transformInv_(pe);this.addQuad_(t,e,H,pe,o,s,X,me,c-1),this.addQuad_(pe,H,r,i,me,X,a,l,c-1)}else{var ye=[(t[0]+e[0])/2,(t[1]+e[1])/2],_e=this.transformInv_(ye),$e=[(r[0]+i[0])/2,(r[1]+i[1])/2],We=this.transformInv_($e);this.addQuad_(t,ye,$e,i,o,_e,We,l,c-1),this.addQuad_(ye,e,r,$e,_e,s,a,We,c-1)}return}}if(v){if(!this.canWrapXInSource_)return;this.wrapsXInSource_=!0}0==(11&x)&&this.addTriangle_(t,r,i,o,a,l),0==(14&x)&&this.addTriangle_(t,r,e,o,a,s),x&&(0==(13&x)&&this.addTriangle_(e,i,t,s,l,o),0==(7&x)&&this.addTriangle_(e,i,r,s,l,a))}},n.prototype.calculateSourceExtent=function(){var t=[1/0,1/0,-1/0,-1/0];return this.triangles_.forEach(function(e,r,i){var o=e.source;lf(t,o[0]),lf(t,o[1]),lf(t,o[2])}),t},n.prototype.getTriangles=function(){return this.triangles_},n}();const G9=j9;var Bb,Vb={imageSmoothingEnabled:!1,msImageSmoothingEnabled:!1},H9={imageSmoothingEnabled:!0,msImageSmoothingEnabled:!0},RL=[];function OL(n,t,e,r,i){n.beginPath(),n.moveTo(0,0),n.lineTo(t,e),n.lineTo(r,i),n.closePath(),n.save(),n.clip(),n.fillRect(0,0,Math.max(t,r)+1,Math.max(e,i)),n.restore()}function Ub(n,t){return Math.abs(n[4*t]-210)>2||Math.abs(n[4*t+3]-191.25)>2}function jb(n,t,e,r){var i=Cf(e,t,n),o=j0(t,r,e),s=t.getMetersPerUnit();void 0!==s&&(o*=s);var a=n.getMetersPerUnit();void 0!==a&&(o/=a);var l=n.getExtent();if(!l||jg(l,i)){var c=j0(n,o,i)/o;isFinite(c)&&c>0&&(o/=c)}return o}var q9=function(){var n=function(t,e){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,i){r.__proto__=i}||function(r,i){for(var o in i)Object.prototype.hasOwnProperty.call(i,o)&&(r[o]=i[o])})(t,e)};return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function r(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)}}(),K9=function(n){function t(e,r,i,o,s,a,l,c,f,d,g,v){var m=n.call(this,s,0,{interpolate:!!v})||this;m.renderEdges_=void 0!==g&&g,m.pixelRatio_=l,m.gutter_=c,m.canvas_=null,m.sourceTileGrid_=r,m.targetTileGrid_=o,m.wrappedTileCoord_=a||s,m.sourceTiles_=[],m.sourcesListenerKeys_=null,m.sourceZ_=0;var y=o.getTileCoordExtent(m.wrappedTileCoord_),w=m.targetTileGrid_.getExtent(),x=m.sourceTileGrid_.getExtent(),E=w?cf(y,w):y;if(0===v0(E))return m.state=4,m;var S=e.getExtent();S&&(x=x?cf(x,S):S);var T=o.getResolution(m.wrappedTileCoord_[0]),O=function $9(n,t,e,r){var i=uf(e),o=jb(n,t,i,r);return(!isFinite(o)||o<=0)&&Gx(e,function(s){return o=jb(n,t,s,r),isFinite(o)&&o>0}),o}(e,i,E,T);if(!isFinite(O)||O<=0)return m.state=4,m;if(m.triangulation_=new G9(e,i,E,x,O*(void 0!==d?d:.5),T),0===m.triangulation_.getTriangles().length)return m.state=4,m;m.sourceZ_=r.getZForResolution(O);var j=m.triangulation_.calculateSourceExtent();if(x&&(e.canWrapX()?(j[1]=Sn(j[1],x[1],x[3]),j[3]=Sn(j[3],x[1],x[3])):j=cf(j,x)),v0(j)){for(var H=r.getTileRangeForExtentAndZ(j,m.sourceZ_),X=H.minX;X<=H.maxX;X++)for(var pe=H.minY;pe<=H.maxY;pe++){var me=f(m.sourceZ_,X,pe,l);me&&m.sourceTiles_.push(me)}0===m.sourceTiles_.length&&(m.state=4)}else m.state=4;return m}return q9(t,n),t.prototype.getImage=function(){return this.canvas_},t.prototype.reproject_=function(){var e=[];if(this.sourceTiles_.forEach(function(f,d,g){f&&2==f.getState()&&e.push({extent:this.sourceTileGrid_.getTileCoordExtent(f.tileCoord),image:f.getImage()})}.bind(this)),this.sourceTiles_.length=0,0===e.length)this.state=3;else{var r=this.wrappedTileCoord_[0],i=this.targetTileGrid_.getTileSize(r),o="number"==typeof i?i:i[0],s="number"==typeof i?i:i[1],a=this.targetTileGrid_.getResolution(r),l=this.sourceTileGrid_.getResolution(this.sourceZ_),c=this.targetTileGrid_.getTileCoordExtent(this.wrappedTileCoord_);this.canvas_=function W9(n,t,e,r,i,o,s,a,l,c,f,d){var g=to(Math.round(e*n),Math.round(e*t),RL);if(d||In(g,Vb),0===l.length)return g.canvas;function v(T){return Math.round(T*e)/e}g.scale(e,e),g.globalCompositeOperation="lighter";var m=[1/0,1/0,-1/0,-1/0];l.forEach(function(T,O,N){!function Q5(n,t){t[0]<n[0]&&(n[0]=t[0]),t[2]>n[2]&&(n[2]=t[2]),t[1]<n[1]&&(n[1]=t[1]),t[3]>n[3]&&(n[3]=t[3])}(m,T.extent)});var y=Yt(m),w=eo(m),x=to(Math.round(e*y/r),Math.round(e*w/r));d||In(x,Vb);var E=e/r;l.forEach(function(T,O,N){var j=T.extent[0]-m[0],H=-(T.extent[3]-m[3]),X=Yt(T.extent),pe=eo(T.extent);T.image.width>0&&T.image.height>0&&x.drawImage(T.image,c,c,T.image.width-2*c,T.image.height-2*c,j*E,H*E,X*E,pe*E)});var S=uc(s);return a.getTriangles().forEach(function(T,O,N){var j=T.source,H=T.target,X=j[0][0],pe=j[0][1],me=j[1][0],ye=j[1][1],_e=j[2][0],$e=j[2][1],We=v((H[0][0]-S[0])/o),we=v(-(H[0][1]-S[1])/o),be=v((H[1][0]-S[0])/o),De=v(-(H[1][1]-S[1])/o),mt=v((H[2][0]-S[0])/o),yt=v(-(H[2][1]-S[1])/o),tn=X,Z=pe;X=0,pe=0;var sn=function u8(n){for(var t=n.length,e=0;e<t;e++){for(var r=e,i=Math.abs(n[e][e]),o=e+1;o<t;o++){var s=Math.abs(n[o][e]);s>i&&(i=s,r=o)}if(0===i)return null;var a=n[r];n[r]=n[e],n[e]=a;for(var l=e+1;l<t;l++)for(var c=-n[l][e]/n[e][e],f=e;f<t+1;f++)e==f?n[l][f]=0:n[l][f]+=c*n[e][f]}for(var d=new Array(t),g=t-1;g>=0;g--){d[g]=n[g][t]/n[g][g];for(var v=g-1;v>=0;v--)n[v][t]-=n[v][g]*d[g]}return d}([[me-=tn,ye-=Z,0,0,be-We],[_e-=tn,$e-=Z,0,0,mt-We],[0,0,me,ye,De-we],[0,0,_e,$e,yt-we]]);if(sn){if(g.save(),g.beginPath(),function z9(){if(void 0===Bb){var n=document.createElement("canvas").getContext("2d");n.globalCompositeOperation="lighter",n.fillStyle="rgba(210, 0, 0, 0.75)",OL(n,4,5,4,0),OL(n,4,5,0,5);var t=n.getImageData(0,0,3,3).data;Bb=Ub(t,0)||Ub(t,4)||Ub(t,8)}return Bb}()||!d){g.moveTo(be,De);for(var br=We-be,Ni=we-De,Dr=0;Dr<4;Dr++)g.lineTo(be+v((Dr+1)*br/4),De+v(Dr*Ni/3)),3!=Dr&&g.lineTo(be+v((Dr+1)*br/4),De+v((Dr+1)*Ni/3));g.lineTo(mt,yt)}else g.moveTo(be,De),g.lineTo(We,we),g.lineTo(mt,yt);g.clip(),g.transform(sn[0],sn[2],sn[1],sn[3],We,we),g.translate(m[0]-tn,m[3]-Z),g.scale(r/e,-r/e),g.drawImage(x.canvas,0,0),g.restore()}}),f&&(g.save(),g.globalCompositeOperation="source-over",g.strokeStyle="black",g.lineWidth=1,a.getTriangles().forEach(function(T,O,N){var j=T.target,H=(j[0][0]-S[0])/o,X=-(j[0][1]-S[1])/o,pe=(j[1][0]-S[0])/o,me=-(j[1][1]-S[1])/o,ye=(j[2][0]-S[0])/o,_e=-(j[2][1]-S[1])/o;g.beginPath(),g.moveTo(pe,me),g.lineTo(H,X),g.lineTo(ye,_e),g.closePath(),g.stroke()}),g.restore()),g.canvas}(o,s,this.pixelRatio_,l,this.sourceTileGrid_.getExtent(),a,c,this.triangulation_,e,this.gutter_,this.renderEdges_,this.interpolate),this.state=2}this.changed()},t.prototype.load=function(){if(0==this.state){this.state=1,this.changed();var e=0;this.sourcesListenerKeys_=[],this.sourceTiles_.forEach(function(r,i,o){var s=r.getState();if(0==s||1==s){e++;var a=bt(r,"change",function(l){var c=r.getState();(2==c||3==c||4==c)&&(pn(a),0==--e&&(this.unlistenSources_(),this.reproject_()))},this);this.sourcesListenerKeys_.push(a)}}.bind(this)),0===e?setTimeout(this.reproject_.bind(this),0):this.sourceTiles_.forEach(function(r,i,o){0==r.getState()&&r.load()})}},t.prototype.unlistenSources_=function(){this.sourcesListenerKeys_.forEach(pn),this.sourcesListenerKeys_=null},t.prototype.release=function(){this.canvas_&&(Ok(this.canvas_.getContext("2d")),RL.push(this.canvas_),this.canvas_=null),n.prototype.release.call(this)},t}(IL);const PL=K9;var kL=function(){function n(t,e,r,i){this.minX=t,this.maxX=e,this.minY=r,this.maxY=i}return n.prototype.contains=function(t){return this.containsXY(t[1],t[2])},n.prototype.containsTileRange=function(t){return this.minX<=t.minX&&t.maxX<=this.maxX&&this.minY<=t.minY&&t.maxY<=this.maxY},n.prototype.containsXY=function(t,e){return this.minX<=t&&t<=this.maxX&&this.minY<=e&&e<=this.maxY},n.prototype.equals=function(t){return this.minX==t.minX&&this.minY==t.minY&&this.maxX==t.maxX&&this.maxY==t.maxY},n.prototype.extend=function(t){t.minX<this.minX&&(this.minX=t.minX),t.maxX>this.maxX&&(this.maxX=t.maxX),t.minY<this.minY&&(this.minY=t.minY),t.maxY>this.maxY&&(this.maxY=t.maxY)},n.prototype.getHeight=function(){return this.maxY-this.minY+1},n.prototype.getSize=function(){return[this.getWidth(),this.getHeight()]},n.prototype.getWidth=function(){return this.maxX-this.minX+1},n.prototype.intersects=function(t){return this.minX<=t.maxX&&this.maxX>=t.minX&&this.minY<=t.maxY&&this.maxY>=t.minY},n}();function xf(n,t,e,r,i){return void 0!==i?(i.minX=n,i.maxX=t,i.minY=e,i.maxY=r,i):new kL(n,t,e,r)}const LL=kL;var Z9=function(){var n=function(t,e){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,i){r.__proto__=i}||function(r,i){for(var o in i)Object.prototype.hasOwnProperty.call(i,o)&&(r[o]=i[o])})(t,e)};return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function r(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)}}(),Y9=function(n){function t(e){var r=n.call(this,e)||this;return r.extentChanged=!0,r.renderedExtent_=null,r.renderedProjection=null,r.renderedTiles=[],r.newTiles_=!1,r.tmpExtent=[1/0,1/0,-1/0,-1/0],r.tmpTileRange_=new LL(0,0,0,0),r}return Z9(t,n),t.prototype.isDrawableTile=function(e){var r=this.getLayer(),i=e.getState(),o=r.getUseInterimTilesOnError();return 2==i||4==i||3==i&&!o},t.prototype.getTile=function(e,r,i,o){var s=o.pixelRatio,a=o.viewState.projection,l=this.getLayer(),f=l.getSource().getTile(e,r,i,s,a);return 3==f.getState()&&(l.getUseInterimTilesOnError()?l.getPreload()>0&&(this.newTiles_=!0):f.setState(2)),this.isDrawableTile(f)||(f=f.getInterimTile()),f},t.prototype.getData=function(e){var r=this.frameState;if(!r)return null;var i=this.getLayer(),o=Zn(r.pixelToCoordinateTransform,e.slice()),s=i.getExtent();if(s&&!jg(s,o))return null;for(var a=r.pixelRatio,l=r.viewState.projection,c=r.viewState,f=i.getRenderSource(),d=f.getTileGridForProjection(c.projection),g=f.getTilePixelRatio(r.pixelRatio),v=d.getZForResolution(c.resolution);v>=d.getMinZoom();--v){var m=d.getTileCoordForCoordAndZ(o,v),y=f.getTile(v,m[1],m[2],a,l);if(!(y instanceof TL||y instanceof PL))return null;if(2===y.getState()){var w=d.getOrigin(v),x=io(d.getTileSize(v)),E=d.getResolution(v),S=Math.floor(g*((o[0]-w[0])/E-m[1]*x[0])),T=Math.floor(g*((w[1]-o[1])/E-m[2]*x[1])),O=Math.round(g*f.getGutterForProjection(c.projection));return this.getImageData(y.getImage(),S+O,T+O)}}return null},t.prototype.loadedTileCallback=function(e,r,i){return!!this.isDrawableTile(i)&&n.prototype.loadedTileCallback.call(this,e,r,i)},t.prototype.prepareFrame=function(e){return!!this.getLayer().getSource()},t.prototype.renderFrame=function(e,r){var i=e.layerStatesArray[e.layerIndex],o=e.viewState,s=o.projection,a=o.resolution,l=o.center,c=o.rotation,f=e.pixelRatio,d=this.getLayer(),g=d.getSource(),v=g.getRevision(),m=g.getTileGridForProjection(s),y=m.getZForResolution(a,g.zDirection),w=m.getResolution(y),x=e.extent,E=e.viewState.resolution,S=g.getTilePixelRatio(f),T=Math.round(Yt(x)/E*f),O=Math.round(eo(x)/E*f),N=i.extent&&pc(i.extent);N&&(x=cf(x,pc(i.extent)));var j=w*T/2/S,H=w*O/2/S,X=[l[0]-j,l[1]-H,l[0]+j,l[1]+H],pe=m.getTileRangeForExtentAndZ(x,y),me={};me[y]={};var ye=this.createLoadedTileFinder(g,s,me),_e=this.tmpExtent,$e=this.tmpTileRange_;this.newTiles_=!1;for(var We=c?zx(o.center,E,c,e.size):void 0,we=pe.minX;we<=pe.maxX;++we)for(var be=pe.minY;be<=pe.maxY;++be)if(!c||m.tileCoordIntersectsViewport([y,we,be],We)){var De=this.getTile(y,we,be,e);if(this.isDrawableTile(De)){var mt=kt(this);if(2==De.getState()&&(me[y][De.tileCoord.toString()]=De,(yt=De.inTransition(mt))&&1!==i.opacity&&(De.endTransition(mt),yt=!1),!this.newTiles_&&(yt||-1===this.renderedTiles.indexOf(De))&&(this.newTiles_=!0)),1===De.getAlpha(mt,e.time))continue}var tn=m.getTileCoordChildTileRange(De.tileCoord,$e,_e),Z=!1;tn&&(Z=ye(y+1,tn)),Z||m.forEachTileCoordParentTileRange(De.tileCoord,ye,$e,_e)}var Gn=w/a*f/S;Os(this.pixelTransform,e.size[0]/2,e.size[1]/2,1/f,1/f,c,-T/2,-O/2);var sn=Bx(this.pixelTransform);this.useContainer(r,sn,this.getBackground(e));var ht=this.context,br=ht.canvas;g0(this.inversePixelTransform,this.pixelTransform),Os(this.tempTransform,T/2,O/2,Gn,Gn,0,-T/2,-O/2),br.width!=T||br.height!=O?(br.width=T,br.height=O):this.containerReused||ht.clearRect(0,0,T,O),N&&this.clipUnrotated(ht,e,N),g.getInterpolate()||In(ht,Vb),this.preRender(ht,e),this.renderedTiles.length=0;var Dr,Vf,so,Ni=Object.keys(me).map(Number);Ni.sort(sc),1!==i.opacity||this.containerReused&&!g.getOpaque(e.viewState.projection)?(Dr=[],Vf=[]):Ni=Ni.reverse();for(var bv=Ni.length-1;bv>=0;--bv){var Bs=Ni[bv],Dv=g.getTilePixelSize(Bs,f,s),Bf=m.getResolution(Bs)/w,mC=Dv[0]*Bf*Gn,_C=Dv[1]*Bf*Gn,Sv=m.getTileCoordForCoordAndZ(uc(X),Bs),Iv=m.getTileCoordExtent(Sv),Vl=Zn(this.tempTransform,[S*(Iv[0]-X[0])/w,S*(X[3]-Iv[3])/w]),cD=S*g.getGutterForProjection(s),bc=me[Bs];for(var yC in bc){var yt,Bl=(De=bc[yC]).tileCoord,Uf=Sv[1]-Bl[1],hD=Math.round(Vl[0]-(Uf-1)*mC),CC=Sv[2]-Bl[2],Tv=Math.round(Vl[1]-(CC-1)*_C),Pa=hD-(we=Math.round(Vl[0]-Uf*mC)),Us=Tv-(be=Math.round(Vl[1]-CC*_C)),Dc=y===Bs,Av=!1;if(!(yt=Dc&&1!==De.getAlpha(kt(this),e.time)))if(Dr){so=[we,be,we+Pa,be,we+Pa,be+Us,we,be+Us];for(var di=0,wC=Dr.length;di<wC;++di)if(y!==Bs&&Bs<Vf[di]){var Sr=Dr[di];ui([we,be,we+Pa,be+Us],[Sr[0],Sr[3],Sr[4],Sr[7]])&&(Av||(ht.save(),Av=!0),ht.beginPath(),ht.moveTo(so[0],so[1]),ht.lineTo(so[2],so[3]),ht.lineTo(so[4],so[5]),ht.lineTo(so[6],so[7]),ht.moveTo(Sr[6],Sr[7]),ht.lineTo(Sr[4],Sr[5]),ht.lineTo(Sr[2],Sr[3]),ht.lineTo(Sr[0],Sr[1]),ht.clip())}Dr.push(so),Vf.push(Bs)}else ht.clearRect(we,be,Pa,Us);this.drawTileImage(De,e,we,be,Pa,Us,cD,Dc),Dr&&!yt?(Av&&ht.restore(),this.renderedTiles.unshift(De)):this.renderedTiles.push(De),this.updateUsedTiles(e.usedTiles,g,De)}}return this.renderedRevision=v,this.renderedResolution=w,this.extentChanged=!this.renderedExtent_||!Gg(this.renderedExtent_,X),this.renderedExtent_=X,this.renderedPixelRatio=f,this.renderedProjection=s,this.manageTilePyramid(e,g,m,f,s,x,y,d.getPreload()),this.scheduleExpireCache(e,g),this.postRender(ht,e),i.extent&&ht.restore(),In(ht,H9),sn!==br.style.transform&&(br.style.transform=sn),this.container},t.prototype.drawTileImage=function(e,r,i,o,s,a,l,c){var f=this.getTileImage(e);if(f){var d=kt(this),g=r.layerStatesArray[r.layerIndex],v=g.opacity*(c?e.getAlpha(d,r.time):1),m=v!==this.context.globalAlpha;m&&(this.context.save(),this.context.globalAlpha=v),this.context.drawImage(f,l,l,f.width-2*l,f.height-2*l,i,o,s,a),m&&this.context.restore(),v!==g.opacity?r.animate=!0:c&&e.endTransition(d)}},t.prototype.getImage=function(){var e=this.context;return e?e.canvas:null},t.prototype.getTileImage=function(e){return e.getImage()},t.prototype.scheduleExpireCache=function(e,r){if(r.canExpireCache()){var i=function(o,s,a){var l=kt(o);l in a.usedTiles&&o.expireCache(a.viewState.projection,a.usedTiles[l])}.bind(null,r);e.postRenderFunctions.push(i)}},t.prototype.updateUsedTiles=function(e,r,i){var o=kt(r);o in e||(e[o]={}),e[o][i.getKey()]=!0},t.prototype.manageTilePyramid=function(e,r,i,o,s,a,l,c,f){var d=kt(r);d in e.wantedTiles||(e.wantedTiles[d]={});var E,S,T,O,N,j,g=e.wantedTiles[d],v=e.tileQueue,m=i.getMinZoom(),y=e.viewState.rotation,w=y?zx(e.viewState.center,e.viewState.resolution,y,e.size):void 0,x=0;for(j=m;j<=l;++j)for(S=i.getTileRangeForExtentAndZ(a,j,S),T=i.getResolution(j),O=S.minX;O<=S.maxX;++O)for(N=S.minY;N<=S.maxY;++N)y&&!i.tileCoordIntersectsViewport([j,O,N],w)||(l-j<=c?(++x,0==(E=r.getTile(j,O,N,o,s)).getState()&&(g[E.getKey()]=!0,v.isKeyQueued(E.getKey())||v.enqueue([E,d,i.getTileCoordCenter(E.tileCoord),T])),void 0!==f&&f(E)):r.useTile(j,O,N,s));r.updateCacheSize(x,s)},t}(SL);const X9=Y9;var Q9=function(){var n=function(t,e){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,i){r.__proto__=i}||function(r,i){for(var o in i)Object.prototype.hasOwnProperty.call(i,o)&&(r[o]=i[o])})(t,e)};return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function r(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)}}(),J9=function(n){function t(e){return n.call(this,e)||this}return Q9(t,n),t.prototype.createRenderer=function(){return new X9(this)},t}(M9);const NL=J9;var eW=function(){function n(t){this.highWaterMark=void 0!==t?t:2048,this.count_=0,this.entries_={},this.oldest_=null,this.newest_=null}return n.prototype.canExpireCache=function(){return this.highWaterMark>0&&this.getCount()>this.highWaterMark},n.prototype.expireCache=function(t){for(;this.canExpireCache();)this.pop()},n.prototype.clear=function(){this.count_=0,this.entries_={},this.oldest_=null,this.newest_=null},n.prototype.containsKey=function(t){return this.entries_.hasOwnProperty(t)},n.prototype.forEach=function(t){for(var e=this.oldest_;e;)t(e.value_,e.key_,this),e=e.newer},n.prototype.get=function(t,e){var r=this.entries_[t];return ct(void 0!==r,15),r===this.newest_||(r===this.oldest_?(this.oldest_=this.oldest_.newer,this.oldest_.older=null):(r.newer.older=r.older,r.older.newer=r.newer),r.newer=null,r.older=this.newest_,this.newest_.newer=r,this.newest_=r),r.value_},n.prototype.remove=function(t){var e=this.entries_[t];return ct(void 0!==e,15),e===this.newest_?(this.newest_=e.older,this.newest_&&(this.newest_.newer=null)):e===this.oldest_?(this.oldest_=e.newer,this.oldest_&&(this.oldest_.older=null)):(e.newer.older=e.older,e.older.newer=e.newer),delete this.entries_[t],--this.count_,e.value_},n.prototype.getCount=function(){return this.count_},n.prototype.getKeys=function(){var r,t=new Array(this.count_),e=0;for(r=this.newest_;r;r=r.older)t[e++]=r.key_;return t},n.prototype.getValues=function(){var r,t=new Array(this.count_),e=0;for(r=this.newest_;r;r=r.older)t[e++]=r.value_;return t},n.prototype.peekLast=function(){return this.oldest_.value_},n.prototype.peekLastKey=function(){return this.oldest_.key_},n.prototype.peekFirstKey=function(){return this.newest_.key_},n.prototype.peek=function(t){if(this.containsKey(t))return this.entries_[t].value_},n.prototype.pop=function(){var t=this.oldest_;return delete this.entries_[t.key_],t.newer&&(t.newer.older=null),this.oldest_=t.newer,this.oldest_||(this.newest_=null),--this.count_,t.value_},n.prototype.replace=function(t,e){this.get(t),this.entries_[t].value_=e},n.prototype.set=function(t,e){ct(!(t in this.entries_),16);var r={key_:t,newer:null,older:this.newest_,value_:e};this.newest_?this.newest_.newer=r:this.oldest_=r,this.newest_=r,this.entries_[t]=r,++this.count_},n.prototype.setSize=function(t){this.highWaterMark=t},n}();const tW=eW;function FL(n,t,e,r){return void 0!==r?(r[0]=n,r[1]=t,r[2]=e,r):[n,t,e]}function rv(n,t,e){return n+"/"+t+"/"+e}function VL(n){return rv(n[0],n[1],n[2])}function BL(n){return(n[1]<<n[0])+n[2]}var iW=function(){var n=function(t,e){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,i){r.__proto__=i}||function(r,i){for(var o in i)Object.prototype.hasOwnProperty.call(i,o)&&(r[o]=i[o])})(t,e)};return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function r(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)}}(),oW=function(n){function t(){return null!==n&&n.apply(this,arguments)||this}return iW(t,n),t.prototype.expireCache=function(e){for(;this.canExpireCache()&&!(this.peekLast().getKey()in e);)this.pop().release()},t.prototype.pruneExceptNewestZ=function(){if(0!==this.getCount()){var r=function nW(n){return n.split("/").map(Number)}(this.peekFirstKey()),i=r[0];this.forEach(function(o){o.tileCoord[0]!==i&&(this.remove(VL(o.tileCoord)),o.release())}.bind(this))}},t}(tW);const UL=oW;var sW=function(){var n=function(t,e){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,i){r.__proto__=i}||function(r,i){for(var o in i)Object.prototype.hasOwnProperty.call(i,o)&&(r[o]=i[o])})(t,e)};return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function r(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)}}(),aW=function(n){function t(e){var r=n.call(this)||this;r.projection=Yn(e.projection),r.attributions_=jL(e.attributions),r.attributionsCollapsible_=void 0===e.attributionsCollapsible||e.attributionsCollapsible,r.loading=!1,r.state_=void 0!==e.state?e.state:"ready",r.wrapX_=void 0!==e.wrapX&&e.wrapX,r.interpolate_=!!e.interpolate,r.viewResolver=null,r.viewRejector=null;var i=r;return r.viewPromise_=new Promise(function(o,s){i.viewResolver=o,i.viewRejector=s}),r}return sW(t,n),t.prototype.getAttributions=function(){return this.attributions_},t.prototype.getAttributionsCollapsible=function(){return this.attributionsCollapsible_},t.prototype.getProjection=function(){return this.projection},t.prototype.getResolutions=function(){return vt()},t.prototype.getView=function(){return this.viewPromise_},t.prototype.getState=function(){return this.state_},t.prototype.getWrapX=function(){return this.wrapX_},t.prototype.getInterpolate=function(){return this.interpolate_},t.prototype.refresh=function(){this.changed()},t.prototype.setAttributions=function(e){this.attributions_=jL(e),this.changed()},t.prototype.setState=function(e){this.state_=e,this.changed()},t}(Ps);function jL(n){return n?Array.isArray(n)?function(t){return n}:"function"==typeof n?n:function(t){return[n]}:null}const GL=aW;var lW=[0,0,0],uW=function(){function n(t){var e;if(this.minZoom=void 0!==t.minZoom?t.minZoom:0,this.resolutions_=t.resolutions,ct(function F5(n,t,e){var r=t||sc;return n.every(function(i,o){if(0===o)return!0;var s=r(n[o-1],i);return!(s>0||e&&0===s)})}(this.resolutions_,function(s,a){return a-s},!0),17),!t.origins)for(var r=0,i=this.resolutions_.length-1;r<i;++r)if(e){if(this.resolutions_[r]/this.resolutions_[r+1]!==e){e=void 0;break}}else e=this.resolutions_[r]/this.resolutions_[r+1];this.zoomFactor_=e,this.maxZoom=this.resolutions_.length-1,this.origin_=void 0!==t.origin?t.origin:null,this.origins_=null,void 0!==t.origins&&(this.origins_=t.origins,ct(this.origins_.length==this.resolutions_.length,20));var o=t.extent;void 0!==o&&!this.origin_&&!this.origins_&&(this.origin_=uc(o)),ct(!this.origin_&&this.origins_||this.origin_&&!this.origins_,18),this.tileSizes_=null,void 0!==t.tileSizes&&(this.tileSizes_=t.tileSizes,ct(this.tileSizes_.length==this.resolutions_.length,19)),this.tileSize_=void 0!==t.tileSize?t.tileSize:this.tileSizes_?null:256,ct(!this.tileSize_&&this.tileSizes_||this.tileSize_&&!this.tileSizes_,22),this.extent_=void 0!==o?o:null,this.fullTileRanges_=null,this.tmpSize_=[0,0],this.tmpExtent_=[0,0,0,0],void 0!==t.sizes?this.fullTileRanges_=t.sizes.map(function(s,a){var l=new LL(Math.min(0,s[0]),Math.max(s[0]-1,-1),Math.min(0,s[1]),Math.max(s[1]-1,-1));if(o){var c=this.getTileRangeForExtentAndZ(o,a);l.minX=Math.max(c.minX,l.minX),l.maxX=Math.min(c.maxX,l.maxX),l.minY=Math.max(c.minY,l.minY),l.maxY=Math.min(c.maxY,l.maxY)}return l},this):o&&this.calculateTileRanges_(o)}return n.prototype.forEachTileCoord=function(t,e,r){for(var i=this.getTileRangeForExtentAndZ(t,e),o=i.minX,s=i.maxX;o<=s;++o)for(var a=i.minY,l=i.maxY;a<=l;++a)r([e,o,a])},n.prototype.forEachTileCoordParentTileRange=function(t,e,r,i){var s,a,l=null,c=t[0]-1;for(2===this.zoomFactor_?(s=t[1],a=t[2]):l=this.getTileCoordExtent(t,i);c>=this.minZoom;){if(e(c,2===this.zoomFactor_?xf(s=Math.floor(s/2),s,a=Math.floor(a/2),a,r):this.getTileRangeForExtentAndZ(l,c,r)))return!0;--c}return!1},n.prototype.getExtent=function(){return this.extent_},n.prototype.getMaxZoom=function(){return this.maxZoom},n.prototype.getMinZoom=function(){return this.minZoom},n.prototype.getOrigin=function(t){return this.origin_?this.origin_:this.origins_[t]},n.prototype.getResolution=function(t){return this.resolutions_[t]},n.prototype.getResolutions=function(){return this.resolutions_},n.prototype.getTileCoordChildTileRange=function(t,e,r){if(t[0]<this.maxZoom){if(2===this.zoomFactor_){var i=2*t[1],o=2*t[2];return xf(i,i+1,o,o+1,e)}var s=this.getTileCoordExtent(t,r||this.tmpExtent_);return this.getTileRangeForExtentAndZ(s,t[0]+1,e)}return null},n.prototype.getTileRangeForTileCoordAndZ=function(t,e,r){if(e>this.maxZoom||e<this.minZoom)return null;var i=t[0],o=t[1],s=t[2];if(e===i)return xf(o,s,o,s,r);if(this.zoomFactor_){var a=Math.pow(this.zoomFactor_,e-i),l=Math.floor(o*a),c=Math.floor(s*a);return e<i?xf(l,l,c,c,r):xf(l,Math.floor(a*(o+1))-1,c,Math.floor(a*(s+1))-1,r)}var g=this.getTileCoordExtent(t,this.tmpExtent_);return this.getTileRangeForExtentAndZ(g,e,r)},n.prototype.getTileRangeExtent=function(t,e,r){var i=this.getOrigin(t),o=this.getResolution(t),s=io(this.getTileSize(t),this.tmpSize_);return Xo(i[0]+e.minX*s[0]*o,i[1]+e.minY*s[1]*o,i[0]+(e.maxX+1)*s[0]*o,i[1]+(e.maxY+1)*s[1]*o,r)},n.prototype.getTileRangeForExtentAndZ=function(t,e,r){var i=lW;this.getTileCoordForXYAndZ_(t[0],t[3],e,!1,i);var o=i[1],s=i[2];return this.getTileCoordForXYAndZ_(t[2],t[1],e,!0,i),xf(o,i[1],s,i[2],r)},n.prototype.getTileCoordCenter=function(t){var e=this.getOrigin(t[0]),r=this.getResolution(t[0]),i=io(this.getTileSize(t[0]),this.tmpSize_);return[e[0]+(t[1]+.5)*i[0]*r,e[1]-(t[2]+.5)*i[1]*r]},n.prototype.getTileCoordExtent=function(t,e){var r=this.getOrigin(t[0]),i=this.getResolution(t[0]),o=io(this.getTileSize(t[0]),this.tmpSize_),s=r[0]+t[1]*o[0]*i,a=r[1]-(t[2]+1)*o[1]*i;return Xo(s,a,s+o[0]*i,a+o[1]*i,e)},n.prototype.getTileCoordForCoordAndResolution=function(t,e,r){return this.getTileCoordForXYAndResolution_(t[0],t[1],e,!1,r)},n.prototype.getTileCoordForXYAndResolution_=function(t,e,r,i,o){var s=this.getZForResolution(r),a=r/this.getResolution(s),l=this.getOrigin(s),c=io(this.getTileSize(s),this.tmpSize_),f=a*(t-l[0])/r/c[0],d=a*(l[1]-e)/r/c[1];return i?(f=E0(f,5)-1,d=E0(d,5)-1):(f=w0(f,5),d=w0(d,5)),FL(s,f,d,o)},n.prototype.getTileCoordForXYAndZ_=function(t,e,r,i,o){var s=this.getOrigin(r),a=this.getResolution(r),l=io(this.getTileSize(r),this.tmpSize_),c=(t-s[0])/a/l[0],f=(s[1]-e)/a/l[1];return i?(c=E0(c,5)-1,f=E0(f,5)-1):(c=w0(c,5),f=w0(f,5)),FL(r,c,f,o)},n.prototype.getTileCoordForCoordAndZ=function(t,e,r){return this.getTileCoordForXYAndZ_(t[0],t[1],e,!1,r)},n.prototype.getTileCoordResolution=function(t){return this.resolutions_[t[0]]},n.prototype.getTileSize=function(t){return this.tileSize_?this.tileSize_:this.tileSizes_[t]},n.prototype.getFullTileRange=function(t){return this.fullTileRanges_?this.fullTileRanges_[t]:this.extent_?this.getTileRangeForExtentAndZ(this.extent_,t):null},n.prototype.getZForResolution=function(t,e){return Sn(Lx(this.resolutions_,t,e||0),this.minZoom,this.maxZoom)},n.prototype.tileCoordIntersectsViewport=function(t,e){return cL(e,0,e.length,2,this.getTileCoordExtent(t))},n.prototype.calculateTileRanges_=function(t){for(var e=this.resolutions_.length,r=new Array(e),i=this.minZoom;i<e;++i)r[i]=this.getTileRangeForExtentAndZ(t,i);this.fullTileRanges_=r},n}();const cW=uW;function HL(n){var t=n.getDefaultTileGrid();return t||(t=function dW(n,t,e,r){return function fW(n,t,e,r){var i=void 0!==r?r:"top-left",o=function zL(n,t,e,r){for(var i=void 0!==t?t:42,o=eo(n),s=Yt(n),a=io(void 0!==e?e:256),l=r>0?r:Math.max(s/a[0],o/a[1]),c=i+1,f=new Array(c),d=0;d<c;++d)f[d]=l/Math.pow(2,d);return f}(n,t,e);return new cW({extent:n,origin:t8(n,i),resolutions:o,tileSize:e})}($L(n),t,e,r)}(n),n.setDefaultTileGrid(t)),t}function $L(n){var t=(n=Yn(n)).getExtent();if(!t){var e=180*no[ro.DEGREES]/n.getMetersPerUnit();t=Xo(-e,-e,e,e)}return t}var WL=function(){var n=function(t,e){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,i){r.__proto__=i}||function(r,i){for(var o in i)Object.prototype.hasOwnProperty.call(i,o)&&(r[o]=i[o])})(t,e)};return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function r(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)}}(),pW=function(n){function t(e){var r=n.call(this,{attributions:e.attributions,attributionsCollapsible:e.attributionsCollapsible,projection:e.projection,state:e.state,wrapX:e.wrapX,interpolate:e.interpolate})||this;return r.opaque_=void 0!==e.opaque&&e.opaque,r.tilePixelRatio_=void 0!==e.tilePixelRatio?e.tilePixelRatio:1,r.tileGrid=void 0!==e.tileGrid?e.tileGrid:null,r.tileGrid&&io(r.tileGrid.getTileSize(r.tileGrid.getMinZoom()),[256,256]),r.tileCache=new UL(e.cacheSize||0),r.tmpSize=[0,0],r.key_=e.key||"",r.tileOptions={transition:e.transition,interpolate:e.interpolate},r.zDirection=e.zDirection?e.zDirection:0,r}return WL(t,n),t.prototype.canExpireCache=function(){return this.tileCache.canExpireCache()},t.prototype.expireCache=function(e,r){var i=this.getTileCacheForProjection(e);i&&i.expireCache(r)},t.prototype.forEachLoadedTile=function(e,r,i,o){var s=this.getTileCacheForProjection(e);if(!s)return!1;for(var l,c,f,a=!0,d=i.minX;d<=i.maxX;++d)for(var g=i.minY;g<=i.maxY;++g)c=rv(r,d,g),f=!1,s.containsKey(c)&&(f=2===(l=s.get(c)).getState())&&(f=!1!==o(l)),f||(a=!1);return a},t.prototype.getGutterForProjection=function(e){return 0},t.prototype.getKey=function(){return this.key_},t.prototype.setKey=function(e){this.key_!==e&&(this.key_=e,this.changed())},t.prototype.getOpaque=function(e){return this.opaque_},t.prototype.getResolutions=function(){return this.tileGrid?this.tileGrid.getResolutions():null},t.prototype.getTile=function(e,r,i,o,s){return vt()},t.prototype.getTileGrid=function(){return this.tileGrid},t.prototype.getTileGridForProjection=function(e){return this.tileGrid?this.tileGrid:HL(e)},t.prototype.getTileCacheForProjection=function(e){var r=this.getProjection();return ct(null===r||yf(r,e),68),this.tileCache},t.prototype.getTilePixelRatio=function(e){return this.tilePixelRatio_},t.prototype.getTilePixelSize=function(e,r,i){var o=this.getTileGridForProjection(i),s=this.getTilePixelRatio(r),a=io(o.getTileSize(e),this.tmpSize);return 1==s?a:mL(a,s,this.tmpSize)},t.prototype.getTileCoordForTileUrlFunction=function(e,r){var i=void 0!==r?r:this.getProjection(),o=this.getTileGridForProjection(i);return this.getWrapX()&&i.isGlobal()&&(e=function hW(n,t,e){var r=t[0],i=n.getTileCoordCenter(t),o=$L(e);if(jg(o,i))return t;var s=Yt(o),a=Math.ceil((o[0]-i[0])/s);return i[0]+=s*a,n.getTileCoordForCoordAndZ(i,r)}(o,e,i)),function rW(n,t){var e=n[0],r=n[1],i=n[2];if(t.getMinZoom()>e||e>t.getMaxZoom())return!1;var o=t.getFullTileRange(e);return!o||o.containsXY(r,i)}(e,o)?e:null},t.prototype.clear=function(){this.tileCache.clear()},t.prototype.refresh=function(){this.clear(),n.prototype.refresh.call(this)},t.prototype.updateCacheSize=function(e,r){var i=this.getTileCacheForProjection(r);e>i.highWaterMark&&(i.highWaterMark=e)},t.prototype.useTile=function(e,r,i,o){},t}(GL),gW=function(n){function t(e,r){var i=n.call(this,e)||this;return i.tile=r,i}return WL(t,n),t}(Qo);const vW=pW;function mW(n,t){var e=/\{z\}/g,r=/\{x\}/g,i=/\{y\}/g,o=/\{-y\}/g;return function(s,a,l){if(s)return n.replace(e,s[0].toString()).replace(r,s[1].toString()).replace(i,s[2].toString()).replace(o,function(){var f=t.getFullTileRange(s[0]);return ct(f,55),(f.getHeight()-s[2]-1).toString()})}}var wW=function(){var n=function(t,e){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,i){r.__proto__=i}||function(r,i){for(var o in i)Object.prototype.hasOwnProperty.call(i,o)&&(r[o]=i[o])})(t,e)};return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function r(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)}}(),EW=function(n){function t(e){var r=n.call(this,{attributions:e.attributions,cacheSize:e.cacheSize,opaque:e.opaque,projection:e.projection,state:e.state,tileGrid:e.tileGrid,tilePixelRatio:e.tilePixelRatio,wrapX:e.wrapX,transition:e.transition,interpolate:e.interpolate,key:e.key,attributionsCollapsible:e.attributionsCollapsible,zDirection:e.zDirection})||this;return r.generateTileUrlFunction_=r.tileUrlFunction===t.prototype.tileUrlFunction,r.tileLoadFunction=e.tileLoadFunction,e.tileUrlFunction&&(r.tileUrlFunction=e.tileUrlFunction),r.urls=null,e.urls?r.setUrls(e.urls):e.url&&r.setUrl(e.url),r.tileLoadingKeys_={},r}return wW(t,n),t.prototype.getTileLoadFunction=function(){return this.tileLoadFunction},t.prototype.getTileUrlFunction=function(){return Object.getPrototypeOf(this).tileUrlFunction===this.tileUrlFunction?this.tileUrlFunction.bind(this):this.tileUrlFunction},t.prototype.getUrls=function(){return this.urls},t.prototype.handleTileChange=function(e){var s,r=e.target,i=kt(r),o=r.getState();1==o?(this.tileLoadingKeys_[i]=!0,s="tileloadstart"):i in this.tileLoadingKeys_&&(delete this.tileLoadingKeys_[i],s=3==o?"tileloaderror":2==o?"tileloadend":void 0),null!=s&&this.dispatchEvent(new gW(s,r))},t.prototype.setTileLoadFunction=function(e){this.tileCache.clear(),this.tileLoadFunction=e,this.changed()},t.prototype.setTileUrlFunction=function(e,r){this.tileUrlFunction=e,this.tileCache.pruneExceptNewestZ(),void 0!==r?this.setKey(r):this.changed()},t.prototype.setUrl=function(e){var r=function CW(n){var t=[],e=/\{([a-z])-([a-z])\}/.exec(n);if(e){var r=e[1].charCodeAt(0),i=e[2].charCodeAt(0),o=void 0;for(o=r;o<=i;++o)t.push(n.replace(e[0],String.fromCharCode(o)));return t}if(e=/\{(\d+)-(\d+)\}/.exec(n)){for(var s=parseInt(e[2],10),a=parseInt(e[1],10);a<=s;a++)t.push(n.replace(e[0],a.toString()));return t}return t.push(n),t}(e);this.urls=r,this.setUrls(r)},t.prototype.setUrls=function(e){this.urls=e;var r=e.join("\n");this.generateTileUrlFunction_?this.setTileUrlFunction(function _W(n,t){for(var e=n.length,r=new Array(e),i=0;i<e;++i)r[i]=mW(n[i],t);return function yW(n){return 1===n.length?n[0]:function(t,e,r){if(t){var o=hc(BL(t),n.length);return n[o](t,e,r)}}}(r)}(e,this.tileGrid),r):this.setKey(r)},t.prototype.tileUrlFunction=function(e,r,i){},t.prototype.useTile=function(e,r,i){var o=rv(e,r,i);this.tileCache.containsKey(o)&&this.tileCache.get(o)},t}(vW);const MW=EW;var xW=function(){var n=function(t,e){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,i){r.__proto__=i}||function(r,i){for(var o in i)Object.prototype.hasOwnProperty.call(i,o)&&(r[o]=i[o])})(t,e)};return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function r(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)}}(),bW=function(n){function t(e){var r=this,i=void 0===e.imageSmoothing||e.imageSmoothing;return void 0!==e.interpolate&&(i=e.interpolate),(r=n.call(this,{attributions:e.attributions,cacheSize:e.cacheSize,opaque:e.opaque,projection:e.projection,state:e.state,tileGrid:e.tileGrid,tileLoadFunction:e.tileLoadFunction?e.tileLoadFunction:DW,tilePixelRatio:e.tilePixelRatio,tileUrlFunction:e.tileUrlFunction,url:e.url,urls:e.urls,wrapX:e.wrapX,transition:e.transition,interpolate:i,key:e.key,attributionsCollapsible:e.attributionsCollapsible,zDirection:e.zDirection})||this).crossOrigin=void 0!==e.crossOrigin?e.crossOrigin:null,r.tileClass=void 0!==e.tileClass?e.tileClass:TL,r.tileCacheForProjection={},r.tileGridForProjection={},r.reprojectionErrorThreshold_=e.reprojectionErrorThreshold,r.renderReprojectionEdges_=!1,r}return xW(t,n),t.prototype.canExpireCache=function(){if(this.tileCache.canExpireCache())return!0;for(var e in this.tileCacheForProjection)if(this.tileCacheForProjection[e].canExpireCache())return!0;return!1},t.prototype.expireCache=function(e,r){var i=this.getTileCacheForProjection(e);for(var o in this.tileCache.expireCache(this.tileCache==i?r:{}),this.tileCacheForProjection){var s=this.tileCacheForProjection[o];s.expireCache(s==i?r:{})}},t.prototype.getGutterForProjection=function(e){return this.getProjection()&&e&&!yf(this.getProjection(),e)?0:this.getGutter()},t.prototype.getGutter=function(){return 0},t.prototype.getKey=function(){var e=n.prototype.getKey.call(this);return this.getInterpolate()||(e+=":disable-interpolation"),e},t.prototype.getOpaque=function(e){return!(this.getProjection()&&e&&!yf(this.getProjection(),e))&&n.prototype.getOpaque.call(this,e)},t.prototype.getTileGridForProjection=function(e){var r=this.getProjection();if(this.tileGrid&&(!r||yf(r,e)))return this.tileGrid;var i=kt(e);return i in this.tileGridForProjection||(this.tileGridForProjection[i]=HL(e)),this.tileGridForProjection[i]},t.prototype.getTileCacheForProjection=function(e){var r=this.getProjection();if(!r||yf(r,e))return this.tileCache;var i=kt(e);return i in this.tileCacheForProjection||(this.tileCacheForProjection[i]=new UL(this.tileCache.highWaterMark)),this.tileCacheForProjection[i]},t.prototype.createTile_=function(e,r,i,o,s,a){var l=[e,r,i],c=this.getTileCoordForTileUrlFunction(l,s),f=c?this.tileUrlFunction(c,o,s):void 0,d=new this.tileClass(l,void 0!==f?0:4,void 0!==f?f:"",this.crossOrigin,this.tileLoadFunction,this.tileOptions);return d.key=a,d.addEventListener("change",this.handleTileChange.bind(this)),d},t.prototype.getTile=function(e,r,i,o,s){var a=this.getProjection();if(!a||!s||yf(a,s))return this.getTileInternal(e,r,i,o,a||s);var l=this.getTileCacheForProjection(s),c=[e,r,i],f=void 0,d=VL(c);l.containsKey(d)&&(f=l.get(d));var g=this.getKey();if(f&&f.key==g)return f;var v=this.getTileGridForProjection(a),m=this.getTileGridForProjection(s),y=this.getTileCoordForTileUrlFunction(c,s),w=new PL(a,v,s,m,c,y,this.getTilePixelRatio(o),this.getGutter(),function(x,E,S,T){return this.getTileInternal(x,E,S,T,a)}.bind(this),this.reprojectionErrorThreshold_,this.renderReprojectionEdges_,this.getInterpolate());return w.key=g,f?(w.interimTile=f,w.refreshInterimChain(),l.replace(d,w)):l.set(d,w),w},t.prototype.getTileInternal=function(e,r,i,o,s){var a=null,l=rv(e,r,i),c=this.getKey();if(this.tileCache.containsKey(l)){if((a=this.tileCache.get(l)).key!=c){var f=a;(a=this.createTile_(e,r,i,o,s,c)).interimTile=0==f.getState()?f.interimTile:f,a.refreshInterimChain(),this.tileCache.replace(l,a)}}else a=this.createTile_(e,r,i,o,s,c),this.tileCache.set(l,a);return a},t.prototype.setRenderReprojectionEdges=function(e){if(this.renderReprojectionEdges_!=e){for(var r in this.renderReprojectionEdges_=e,this.tileCacheForProjection)this.tileCacheForProjection[r].clear();this.changed()}},t.prototype.setTileGridForProjection=function(e,r){var i=Yn(e);if(i){var o=kt(i);o in this.tileGridForProjection||(this.tileGridForProjection[o]=r)}},t}(MW);function DW(n,t){n.getImage().src=t}const SW=bW;var J0="1.3.0";function qL(n,t){var e=[];Object.keys(t).forEach(function(i){null!=t[i]&&e.push(i+"="+encodeURIComponent(t[i]))});var r=e.join("&");return(n=-1===(n=n.replace(/[?&]$/,"")).indexOf("?")?n+"?":n+"&")+r}var TW=function(){var n=function(t,e){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,i){r.__proto__=i}||function(r,i){for(var o in i)Object.prototype.hasOwnProperty.call(i,o)&&(r[o]=i[o])})(t,e)};return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function r(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)}}(),AW=function(n){function t(e){var r=this,i=e||{},o=void 0===i.imageSmoothing||i.imageSmoothing;void 0!==i.interpolate&&(o=i.interpolate);var s=i.params||{};return(r=n.call(this,{attributions:i.attributions,attributionsCollapsible:i.attributionsCollapsible,cacheSize:i.cacheSize,crossOrigin:i.crossOrigin,interpolate:o,opaque:!(!("TRANSPARENT"in s)||s.TRANSPARENT),projection:i.projection,reprojectionErrorThreshold:i.reprojectionErrorThreshold,tileClass:i.tileClass,tileGrid:i.tileGrid,tileLoadFunction:i.tileLoadFunction,url:i.url,urls:i.urls,wrapX:void 0===i.wrapX||i.wrapX,transition:i.transition,zDirection:i.zDirection})||this).gutter_=void 0!==i.gutter?i.gutter:0,r.params_=s,r.v13_=!0,r.serverType_=i.serverType,r.hidpi_=void 0===i.hidpi||i.hidpi,r.tmpExtent_=[1/0,1/0,-1/0,-1/0],r.updateV13_(),r.setKey(r.getKeyForParams_()),r}return TW(t,n),t.prototype.getFeatureInfoUrl=function(e,r,i,o){var s=Yn(i),a=this.getProjection(),l=this.getTileGrid();l||(l=this.getTileGridForProjection(s));var c=l.getZForResolution(r,this.zDirection),f=l.getTileCoordForCoordAndZ(e,c);if(!(l.getResolutions().length<=f[0])){var d=l.getResolution(f[0]),g=l.getTileCoordExtent(f,this.tmpExtent_),v=io(l.getTileSize(f[0]),this.tmpSize),m=this.gutter_;0!==m&&(v=gL(v,m,this.tmpSize),g=Ug(g,d*m,g)),a&&a!==s&&(d=jb(a,s,e,d),g=ub(g,s,a),e=Cf(e,s,a));var y={SERVICE:"WMS",VERSION:J0,REQUEST:"GetFeatureInfo",FORMAT:"image/png",TRANSPARENT:!0,QUERY_LAYERS:this.params_.LAYERS};In(y,this.params_,o);var w=Math.floor((e[0]-g[0])/d),x=Math.floor((g[3]-e[1])/d);return y[this.v13_?"I":"X"]=w,y[this.v13_?"J":"Y"]=x,this.getRequestUrl_(f,v,g,1,a||s,y)}},t.prototype.getLegendUrl=function(e,r){if(void 0!==this.urls[0]){var i={SERVICE:"WMS",VERSION:J0,REQUEST:"GetLegendGraphic",FORMAT:"image/png"};if(void 0===r||void 0===r.LAYER){var o=this.params_.LAYERS;if(Array.isArray(o)&&1!==o.length)return;i.LAYER=o}if(void 0!==e){var a=this.getProjection()?this.getProjection().getMetersPerUnit():1;i.SCALE=e*a/28e-5}return In(i,r),qL(this.urls[0],i)}},t.prototype.getGutter=function(){return this.gutter_},t.prototype.getParams=function(){return this.params_},t.prototype.getRequestUrl_=function(e,r,i,o,s,a){var l=this.urls;if(l){if(a.WIDTH=r[0],a.HEIGHT=r[1],a[this.v13_?"CRS":"SRS"]=s.getCode(),"STYLES"in this.params_||(a.STYLES=""),1!=o)switch(this.serverType_){case"geoserver":var c=90*o+.5|0;"FORMAT_OPTIONS"in a?a.FORMAT_OPTIONS+=";dpi:"+c:a.FORMAT_OPTIONS="dpi:"+c;break;case"mapserver":a.MAP_RESOLUTION=90*o;break;case"carmentaserver":case"qgis":a.DPI=90*o;break;default:ct(!1,52)}var f=s.getAxisOrientation(),d=i;if(this.v13_&&"ne"==f.substr(0,2)){var g=void 0;g=i[0],d[0]=i[1],d[1]=g,g=i[2],d[2]=i[3],d[3]=g}return a.BBOX=d.join(","),qL(1==l.length?l[0]:l[hc(BL(e),l.length)],a)}},t.prototype.getTilePixelRatio=function(e){return this.hidpi_&&void 0!==this.serverType_?e:1},t.prototype.getKeyForParams_=function(){var e=0,r=[];for(var i in this.params_)r[e++]=i+"-"+this.params_[i];return r.join("/")},t.prototype.updateParams=function(e){In(this.params_,e),this.updateV13_(),this.setKey(this.getKeyForParams_())},t.prototype.updateV13_=function(){this.v13_=function IW(n,t){for(var e=(""+n).split("."),r=(""+t).split("."),i=0;i<Math.max(e.length,r.length);i++){var o=parseInt(e[i]||"0",10),s=parseInt(r[i]||"0",10);if(o>s)return 1;if(s>o)return-1}return 0}(this.params_.VERSION||J0,"1.3")>=0},t.prototype.tileUrlFunction=function(e,r,i){var o=this.getTileGrid();if(o||(o=this.getTileGridForProjection(i)),!(o.getResolutions().length<=e[0])){1!=r&&(!this.hidpi_||void 0===this.serverType_)&&(r=1);var s=o.getResolution(e[0]),a=o.getTileCoordExtent(e,this.tmpExtent_),l=io(o.getTileSize(e[0]),this.tmpSize),c=this.gutter_;0!==c&&(l=gL(l,c,this.tmpSize),a=Ug(a,s*c,a)),1!=r&&(l=mL(l,r,this.tmpSize));var f={SERVICE:"WMS",VERSION:J0,REQUEST:"GetMap",FORMAT:"image/png",TRANSPARENT:!0};return In(f,this.params_),this.getRequestUrl_(e,l,a,r,i,f)}},t}(SW);const KL=AW;var RW=function(){var n=function(t,e){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,i){r.__proto__=i}||function(r,i){for(var o in i)Object.prototype.hasOwnProperty.call(i,o)&&(r[o]=i[o])})(t,e)};return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function r(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)}}(),Hb="units",OW=[1,2,5],iv=25.4/.28,PW=function(n){function t(e){var r=this,i=e||{},o=void 0!==i.className?i.className:i.bar?"ol-scale-bar":"ol-scale-line";return(r=n.call(this,{element:document.createElement("div"),render:i.render,target:i.target})||this).innerElement_=document.createElement("div"),r.innerElement_.className=o+"-inner",r.element.className=o+" "+$g,r.element.appendChild(r.innerElement_),r.viewState_=null,r.minWidth_=void 0!==i.minWidth?i.minWidth:64,r.maxWidth_=i.maxWidth,r.renderedVisible_=!1,r.renderedWidth_=void 0,r.renderedHTML_="",r.addChangeListener(Hb,r.handleUnitsChanged_),r.setUnits(i.units||"metric"),r.scaleBar_=i.bar||!1,r.scaleBarSteps_=i.steps||4,r.scaleBarText_=i.text||!1,r.dpi_=i.dpi||void 0,r}return RW(t,n),t.prototype.getUnits=function(){return this.get(Hb)},t.prototype.handleUnitsChanged_=function(){this.updateElement_()},t.prototype.setUnits=function(e){this.set(Hb,e)},t.prototype.setDpi=function(e){this.dpi_=e},t.prototype.updateElement_=function(){var e=this.viewState_;if(e){var O,r=e.center,i=e.projection,o=this.getUnits(),a=j0(i,e.resolution,r,"degrees"==o?ro.DEGREES:ro.METERS),l=this.minWidth_*(this.dpi_||iv)/iv,c=void 0!==this.maxWidth_?this.maxWidth_*(this.dpi_||iv)/iv:void 0,f=l*a,d="";if("degrees"==o){var g=no[ro.DEGREES];(f*=g)<g/60?(d="\u2033",a*=3600):f<g?(d="\u2032",a*=60):d="\xb0"}else"imperial"==o?f<.9144?(d="in",a/=.0254):f<1609.344?(d="ft",a/=.3048):(d="mi",a/=1609.344):"nautical"==o?(a/=1852,d="NM"):"metric"==o?f<.001?(d="\u03bcm",a*=1e6):f<1?(d="mm",a*=1e3):f<1e3?d="m":(d="km",a/=1e3):"us"==o?f<.9144?(d="in",a*=39.37):f<1609.344?(d="ft",a/=.30480061):(d="mi",a/=1609.3472):ct(!1,33);for(var m,y,w,x,E,S,v=3*Math.floor(Math.log(l*a)/Math.log(10));;){w=Math.floor(v/3);var T=Math.pow(10,w);if(m=OW[(v%3+3)%3]*T,y=Math.round(m/a),isNaN(y))return this.element.style.display="none",void(this.renderedVisible_=!1);if(void 0!==c&&y>=c){m=x,y=E,w=S;break}if(y>=l)break;x=m,E=y,S=w,++v}O=this.scaleBar_?this.createScaleBar(y,m,d):m.toFixed(w<0?-w:0)+" "+d,this.renderedHTML_!=O&&(this.innerElement_.innerHTML=O,this.renderedHTML_=O),this.renderedWidth_!=y&&(this.innerElement_.style.width=y+"px",this.renderedWidth_=y),this.renderedVisible_||(this.element.style.display="",this.renderedVisible_=!0)}else this.renderedVisible_&&(this.element.style.display="none",this.renderedVisible_=!1)},t.prototype.createScaleBar=function(e,r,i){for(var o="1 : "+Math.round(this.getScaleForResolution()).toLocaleString(),s=[],a=e/this.scaleBarSteps_,l="ol-scale-singlebar-odd",c=0;c<this.scaleBarSteps_;c++)0===c&&s.push(this.createMarker("absolute",c)),s.push('<div><div class="ol-scale-singlebar '+l+'" style="width: '+a+'px;"></div>'+this.createMarker("relative",c)+(c%2==0||2===this.scaleBarSteps_?this.createStepText(c,e,!1,r,i):"")+"</div>"),c===this.scaleBarSteps_-1&&s.push(this.createStepText(c+1,e,!0,r,i)),l="ol-scale-singlebar-odd"===l?"ol-scale-singlebar-even":"ol-scale-singlebar-odd";return'<div style="display: flex;">'+(this.scaleBarText_?'<div class="ol-scale-text" style="width: '+e+'px;">'+o+"</div>":"")+s.join("")+"</div>"},t.prototype.createMarker=function(e,r){return'<div class="ol-scale-step-marker" style="position: '+e+";top: "+("absolute"===e?3:-10)+'px;"></div>'},t.prototype.createStepText=function(e,r,i,o,s){var a=0===e?0:Math.round(o/this.scaleBarSteps_*e*100)/100;return'<div class="ol-scale-step-text" style="margin-left: '+(0===e?-3:r/this.scaleBarSteps_*-1)+"px;text-align: "+(0===e?"left":"center")+"; min-width: "+(0===e?0:r/this.scaleBarSteps_*2)+"px;left: "+(i?r+"px":"unset")+';">'+a+(0===e?"":" "+s)+"</div>"},t.prototype.getScaleForResolution=function(){var e=j0(this.viewState_.projection,this.viewState_.resolution,this.viewState_.center,ro.METERS),r=this.dpi_||iv;return parseFloat(e.toString())*(1e3/25.4)*r},t.prototype.render=function(e){var r=e.frameState;this.viewState_=r?r.viewState:null,this.updateElement_()},t}(Z0);const kW=PW;var YL=.0066943799901413165,ov=484813681109536e-20,q=Math.PI/2,te=1e-10,xr=.017453292519943295,ks=57.29577951308232,Nt=Math.PI/4,sv=2*Math.PI,jn=3.14159265359,ki={greenwich:0,lisbon:-9.131906111111,paris:2.337229166667,bogota:-74.080916666667,madrid:-3.687938888889,rome:12.452333333333,bern:7.439583333333,jakarta:106.807719444444,ferro:-17.666666666667,brussels:4.367975,stockholm:18.058277777778,athens:23.7163375,oslo:10.722916666667};const GW={ft:{to_meter:.3048},"us-ft":{to_meter:1200/3937}};var XL=/[\s_\-\/\(\)]/g;function Al(n,t){if(n[t])return n[t];for(var o,e=Object.keys(n),r=t.toLowerCase().replace(XL,""),i=-1;++i<e.length;)if((o=e[i]).toLowerCase().replace(XL,"")===r)return n[o]}function $b(n){var r,i,o,t={},e=n.split("+").map(function(a){return a.trim()}).filter(function(a){return a}).reduce(function(a,l){var c=l.split("=");return c.push(!0),a[c[0].toLowerCase()]=c[1],a},{}),s={proj:"projName",datum:"datumCode",rf:function(a){t.rf=parseFloat(a)},lat_0:function(a){t.lat0=a*xr},lat_1:function(a){t.lat1=a*xr},lat_2:function(a){t.lat2=a*xr},lat_ts:function(a){t.lat_ts=a*xr},lon_0:function(a){t.long0=a*xr},lon_1:function(a){t.long1=a*xr},lon_2:function(a){t.long2=a*xr},alpha:function(a){t.alpha=parseFloat(a)*xr},gamma:function(a){t.rectified_grid_angle=parseFloat(a)},lonc:function(a){t.longc=a*xr},x_0:function(a){t.x0=parseFloat(a)},y_0:function(a){t.y0=parseFloat(a)},k_0:function(a){t.k0=parseFloat(a)},k:function(a){t.k0=parseFloat(a)},a:function(a){t.a=parseFloat(a)},b:function(a){t.b=parseFloat(a)},r_a:function(){t.R_A=!0},zone:function(a){t.zone=parseInt(a,10)},south:function(){t.utmSouth=!0},towgs84:function(a){t.datum_params=a.split(",").map(function(l){return parseFloat(l)})},to_meter:function(a){t.to_meter=parseFloat(a)},units:function(a){t.units=a;var l=Al(GW,a);l&&(t.to_meter=l.to_meter)},from_greenwich:function(a){t.from_greenwich=a*xr},pm:function(a){var l=Al(ki,a);t.from_greenwich=(l||parseFloat(a))*xr},nadgrids:function(a){"@null"===a?t.datumCode="none":t.nadgrids=a},axis:function(a){var l="ewnsud";3===a.length&&-1!==l.indexOf(a.substr(0,1))&&-1!==l.indexOf(a.substr(1,1))&&-1!==l.indexOf(a.substr(2,1))&&(t.axis=a)},approx:function(){t.approx=!0}};for(r in e)i=e[r],r in s?"function"==typeof(o=s[r])?o(i):t[o]=i:t[r]=i;return"string"==typeof t.datumCode&&"WGS84"!==t.datumCode&&(t.datumCode=t.datumCode.toLowerCase()),t}var zW=/\s/,$W=/[A-Za-z]/,WW=/[A-Za-z84_]/,tC=/[,\]]/,tN=/[\d\.E\-\+]/;function Aa(n){if("string"!=typeof n)throw new Error("not a string");this.text=n.trim(),this.level=0,this.place=0,this.root=null,this.stack=[],this.currentObject=null,this.state=1}function nN(n,t,e){Array.isArray(t)&&(e.unshift(t),t=null);var i=e.reduce(function(o,s){return Df(s,o),o},t?{}:n);t&&(n[t]=i)}function Df(n,t){if(Array.isArray(n)){var e=n.shift();if("PARAMETER"===e&&(e=n.shift()),1===n.length)return Array.isArray(n[0])?(t[e]={},void Df(n[0],t[e])):void(t[e]=n[0]);if(n.length)if("TOWGS84"!==e){if("AXIS"===e)return e in t||(t[e]=[]),void t[e].push(n);var r;switch(Array.isArray(e)||(t[e]={}),e){case"UNIT":case"PRIMEM":case"VERT_DATUM":return t[e]={name:n[0].toLowerCase(),convert:n[1]},void(3===n.length&&Df(n[2],t[e]));case"SPHEROID":case"ELLIPSOID":return t[e]={name:n[0],a:n[1],rf:n[2]},void(4===n.length&&Df(n[3],t[e]));case"PROJECTEDCRS":case"PROJCRS":case"GEOGCS":case"GEOCCS":case"PROJCS":case"LOCAL_CS":case"GEODCRS":case"GEODETICCRS":case"GEODETICDATUM":case"EDATUM":case"ENGINEERINGDATUM":case"VERT_CS":case"VERTCRS":case"VERTICALCRS":case"COMPD_CS":case"COMPOUNDCRS":case"ENGINEERINGCRS":case"ENGCRS":case"FITTED_CS":case"LOCAL_DATUM":case"DATUM":return n[0]=["name",n[0]],void nN(t,e,n);default:for(r=-1;++r<n.length;)if(!Array.isArray(n[r]))return Df(n,t[e]);return nN(t,e,n)}}else t[e]=n;else t[e]=!0}else t[n]=!0}function Ls(n){return.017453292519943295*n}function rN(n){var t=function qW(n){return new Aa(n).output()}(n),e=t.shift(),r=t.shift();t.unshift(["name",r]),t.unshift(["type",e]);var i={};return Df(t,i),function YW(n){if("GEOGCS"===n.type?n.projName="longlat":"LOCAL_CS"===n.type?(n.projName="identity",n.local=!0):n.projName="object"==typeof n.PROJECTION?Object.keys(n.PROJECTION)[0]:n.PROJECTION,n.AXIS){for(var t="",e=0,r=n.AXIS.length;e<r;++e){var i=[n.AXIS[e][0].toLowerCase(),n.AXIS[e][1].toLowerCase()];-1!==i[0].indexOf("north")||("y"===i[0]||"lat"===i[0])&&"north"===i[1]?t+="n":-1!==i[0].indexOf("south")||("y"===i[0]||"lat"===i[0])&&"south"===i[1]?t+="s":-1!==i[0].indexOf("east")||("x"===i[0]||"lon"===i[0])&&"east"===i[1]?t+="e":(-1!==i[0].indexOf("west")||("x"===i[0]||"lon"===i[0])&&"west"===i[1])&&(t+="w")}2===t.length&&(t+="u"),3===t.length&&(n.axis=t)}n.UNIT&&(n.units=n.UNIT.name.toLowerCase(),"metre"===n.units&&(n.units="meter"),n.UNIT.convert&&("GEOGCS"===n.type?n.DATUM&&n.DATUM.SPHEROID&&(n.to_meter=n.UNIT.convert*n.DATUM.SPHEROID.a):n.to_meter=n.UNIT.convert));var o=n.GEOGCS;function s(c){return c*(n.to_meter||1)}"GEOGCS"===n.type&&(o=n),o&&(n.datumCode=o.DATUM?o.DATUM.name.toLowerCase():o.name.toLowerCase(),"d_"===n.datumCode.slice(0,2)&&(n.datumCode=n.datumCode.slice(2)),("new_zealand_geodetic_datum_1949"===n.datumCode||"new_zealand_1949"===n.datumCode)&&(n.datumCode="nzgd49"),("wgs_1984"===n.datumCode||"world_geodetic_system_1984"===n.datumCode)&&("Mercator_Auxiliary_Sphere"===n.PROJECTION&&(n.sphere=!0),n.datumCode="wgs84"),"_ferro"===n.datumCode.slice(-6)&&(n.datumCode=n.datumCode.slice(0,-6)),"_jakarta"===n.datumCode.slice(-8)&&(n.datumCode=n.datumCode.slice(0,-8)),~n.datumCode.indexOf("belge")&&(n.datumCode="rnb72"),o.DATUM&&o.DATUM.SPHEROID&&(n.ellps=o.DATUM.SPHEROID.name.replace("_19","").replace(/[Cc]larke\_18/,"clrk"),"international"===n.ellps.toLowerCase().slice(0,13)&&(n.ellps="intl"),n.a=o.DATUM.SPHEROID.a,n.rf=parseFloat(o.DATUM.SPHEROID.rf,10)),o.DATUM&&o.DATUM.TOWGS84&&(n.datum_params=o.DATUM.TOWGS84),~n.datumCode.indexOf("osgb_1936")&&(n.datumCode="osgb36"),~n.datumCode.indexOf("osni_1952")&&(n.datumCode="osni52"),(~n.datumCode.indexOf("tm65")||~n.datumCode.indexOf("geodetic_datum_of_1965"))&&(n.datumCode="ire65"),"ch1903+"===n.datumCode&&(n.datumCode="ch1903"),~n.datumCode.indexOf("israel")&&(n.datumCode="isr93")),n.b&&!isFinite(n.b)&&(n.b=n.a),[["standard_parallel_1","Standard_Parallel_1"],["standard_parallel_1","Latitude of 1st standard parallel"],["standard_parallel_2","Standard_Parallel_2"],["standard_parallel_2","Latitude of 2nd standard parallel"],["false_easting","False_Easting"],["false_easting","False easting"],["false-easting","Easting at false origin"],["false_northing","False_Northing"],["false_northing","False northing"],["false_northing","Northing at false origin"],["central_meridian","Central_Meridian"],["central_meridian","Longitude of natural origin"],["central_meridian","Longitude of false origin"],["latitude_of_origin","Latitude_Of_Origin"],["latitude_of_origin","Central_Parallel"],["latitude_of_origin","Latitude of natural origin"],["latitude_of_origin","Latitude of false origin"],["scale_factor","Scale_Factor"],["k0","scale_factor"],["latitude_of_center","Latitude_Of_Center"],["latitude_of_center","Latitude_of_center"],["lat0","latitude_of_center",Ls],["longitude_of_center","Longitude_Of_Center"],["longitude_of_center","Longitude_of_center"],["longc","longitude_of_center",Ls],["x0","false_easting",s],["y0","false_northing",s],["long0","central_meridian",Ls],["lat0","latitude_of_origin",Ls],["lat0","standard_parallel_1",Ls],["lat1","standard_parallel_1",Ls],["lat2","standard_parallel_2",Ls],["azimuth","Azimuth"],["alpha","azimuth",Ls],["srsCode","name"]].forEach(function(c){return function ZW(n,t){var e=t[0],r=t[1];!(e in n)&&r in n&&(n[e]=n[r],3===t.length&&(n[e]=t[2](n[e])))}(n,c)}),!n.long0&&n.longc&&("Albers_Conic_Equal_Area"===n.projName||"Lambert_Azimuthal_Equal_Area"===n.projName)&&(n.long0=n.longc),n.lat_ts||!n.lat1||"Stereographic_South_Pole"!==n.projName&&"Polar Stereographic (variant B)"!==n.projName?!n.lat_ts&&n.lat0&&"Polar_Stereographic"===n.projName&&(n.lat_ts=n.lat0,n.lat0=Ls(n.lat0>0?90:-90)):(n.lat0=Ls(n.lat1>0?90:-90),n.lat_ts=n.lat1)}(i),i}function Do(n){var t=this;if(2===arguments.length){var e=arguments[1];Do[n]="string"==typeof e?"+"===e.charAt(0)?$b(arguments[1]):rN(arguments[1]):e}else if(1===arguments.length){if(Array.isArray(n))return n.map(function(r){Array.isArray(r)?Do.apply(t,r):Do(r)});if("string"==typeof n){if(n in Do)return Do[n]}else"EPSG"in n?Do["EPSG:"+n.EPSG]=n:"ESRI"in n?Do["ESRI:"+n.ESRI]=n:"IAU2000"in n?Do["IAU2000:"+n.IAU2000]=n:console.log(n);return}}Aa.prototype.readCharicter=function(){var n=this.text[this.place++];if(4!==this.state)for(;zW.test(n);){if(this.place>=this.text.length)return;n=this.text[this.place++]}switch(this.state){case 1:return this.neutral(n);case 2:return this.keyword(n);case 4:return this.quoted(n);case 5:return this.afterquote(n);case 3:return this.number(n);case-1:return}},Aa.prototype.afterquote=function(n){if('"'===n)return this.word+='"',void(this.state=4);if(tC.test(n))return this.word=this.word.trim(),void this.afterItem(n);throw new Error("havn't handled \""+n+'" in afterquote yet, index '+this.place)},Aa.prototype.afterItem=function(n){return","===n?(null!==this.word&&this.currentObject.push(this.word),this.word=null,void(this.state=1)):"]"===n?(this.level--,null!==this.word&&(this.currentObject.push(this.word),this.word=null),this.state=1,this.currentObject=this.stack.pop(),void(this.currentObject||(this.state=-1))):void 0},Aa.prototype.number=function(n){if(!tN.test(n)){if(tC.test(n))return this.word=parseFloat(this.word),void this.afterItem(n);throw new Error("havn't handled \""+n+'" in number yet, index '+this.place)}this.word+=n},Aa.prototype.quoted=function(n){'"'!==n?this.word+=n:this.state=5},Aa.prototype.keyword=function(n){if(WW.test(n))this.word+=n;else{if("["===n){var t=[];return t.push(this.word),this.level++,null===this.root?this.root=t:this.currentObject.push(t),this.stack.push(this.currentObject),this.currentObject=t,void(this.state=1)}if(!tC.test(n))throw new Error("havn't handled \""+n+'" in keyword yet, index '+this.place);this.afterItem(n)}},Aa.prototype.neutral=function(n){if($W.test(n))return this.word=n,void(this.state=2);if('"'===n)return this.word="",void(this.state=4);if(tN.test(n))return this.word=n,void(this.state=3);if(!tC.test(n))throw new Error("havn't handled \""+n+'" in neutral yet, index '+this.place);this.afterItem(n)},Aa.prototype.output=function(){for(;this.place<this.text.length;)this.readCharicter();if(-1===this.state)return this.root;throw new Error('unable to parse string "'+this.text+'". State is '+this.state)},function NW(n){n("EPSG:4326","+title=WGS 84 (long/lat) +proj=longlat +ellps=WGS84 +datum=WGS84 +units=degrees"),n("EPSG:4269","+title=NAD83 (long/lat) +proj=longlat +a=6378137.0 +b=6356752.31414036 +ellps=GRS80 +datum=NAD83 +units=degrees"),n("EPSG:3857","+title=WGS 84 / Pseudo-Mercator +proj=merc +a=6378137 +b=6378137 +lat_ts=0.0 +lon_0=0.0 +x_0=0.0 +y_0=0 +k=1.0 +units=m +nadgrids=@null +no_defs"),n.WGS84=n["EPSG:4326"],n["EPSG:3785"]=n["EPSG:3857"],n.GOOGLE=n["EPSG:3857"],n["EPSG:900913"]=n["EPSG:3857"],n["EPSG:102113"]=n["EPSG:3857"]}(Do);const nC=Do;var JW=["PROJECTEDCRS","PROJCRS","GEOGCS","GEOCCS","PROJCS","LOCAL_CS","GEODCRS","GEODETICCRS","GEODETICDATUM","ENGCRS","ENGINEERINGCRS"],t7=["3857","900913","3785","102113"];function iN(n,t){var e,r;if(n=n||{},!t)return n;for(r in t)void 0!==(e=t[r])&&(n[r]=e);return n}function Ns(n,t,e){var r=n*t;return e/Math.sqrt(1-r*r)}function lv(n){return n<0?-1:1}function le(n){return Math.abs(n)<=jn?n:n-lv(n)*sv}function rs(n,t,e){var r=n*e;return r=Math.pow((1-r)/(1+r),.5*n),Math.tan(.5*(q-t))/r}function uv(n,t){for(var r,i,e=.5*n,o=q-2*Math.atan(t),s=0;s<=15;s++)if(r=n*Math.sin(o),o+=i=q-2*Math.atan(t*Math.pow((1-r)/(1+r),e))-o,Math.abs(i)<=1e-10)return o;return-9999}const h7={init:function a7(){var n=this.b/this.a;this.es=1-n*n,"x0"in this||(this.x0=0),"y0"in this||(this.y0=0),this.e=Math.sqrt(this.es),this.lat_ts?this.k0=this.sphere?Math.cos(this.lat_ts):Ns(this.e,Math.sin(this.lat_ts),Math.cos(this.lat_ts)):this.k0||(this.k0=this.k?this.k:1)},forward:function l7(n){var r,i,t=n.x,e=n.y;if(e*ks>90&&e*ks<-90&&t*ks>180&&t*ks<-180)return null;if(Math.abs(Math.abs(e)-q)<=te)return null;if(this.sphere)r=this.x0+this.a*this.k0*le(t-this.long0),i=this.y0+this.a*this.k0*Math.log(Math.tan(Nt+.5*e));else{var o=Math.sin(e),s=rs(this.e,e,o);r=this.x0+this.a*this.k0*le(t-this.long0),i=this.y0-this.a*this.k0*Math.log(s)}return n.x=r,n.y=i,n},inverse:function u7(n){var r,i,t=n.x-this.x0,e=n.y-this.y0;if(this.sphere)i=q-2*Math.atan(Math.exp(-e/(this.a*this.k0)));else{var o=Math.exp(-e/(this.a*this.k0));if(-9999===(i=uv(this.e,o)))return null}return r=le(this.long0+t/(this.a*this.k0)),n.x=r,n.y=i,n},names:["Mercator","Popular Visualisation Pseudo Mercator","Mercator_1SP","Mercator_Auxiliary_Sphere","merc"]};function oN(n){return n}var p7=[h7,{init:function f7(){},forward:oN,inverse:oN,names:["longlat","identity"]}],rC={},iC=[];function sN(n,t){var e=iC.length;return n.names?(iC[e]=n,n.names.forEach(function(r){rC[r.toLowerCase()]=e}),this):(console.log(t),!0)}const m7={start:function v7(){p7.forEach(sN)},add:sN,get:function g7(n){if(!n)return!1;var t=n.toLowerCase();return void 0!==rC[t]&&iC[rC[t]]?iC[rC[t]]:void 0}};var Ze={MERIT:{a:6378137,rf:298.257,ellipseName:"MERIT 1983"},SGS85:{a:6378136,rf:298.257,ellipseName:"Soviet Geodetic System 85"},GRS80:{a:6378137,rf:298.257222101,ellipseName:"GRS 1980(IUGG, 1980)"},IAU76:{a:6378140,rf:298.257,ellipseName:"IAU 1976"},airy:{a:6377563.396,b:6356256.91,ellipseName:"Airy 1830"},APL4:{a:6378137,rf:298.25,ellipseName:"Appl. Physics. 1965"},NWL9D:{a:6378145,rf:298.25,ellipseName:"Naval Weapons Lab., 1965"},mod_airy:{a:6377340.189,b:6356034.446,ellipseName:"Modified Airy"},andrae:{a:6377104.43,rf:300,ellipseName:"Andrae 1876 (Den., Iclnd.)"},aust_SA:{a:6378160,rf:298.25,ellipseName:"Australian Natl & S. Amer. 1969"},GRS67:{a:6378160,rf:298.247167427,ellipseName:"GRS 67(IUGG 1967)"},bessel:{a:6377397.155,rf:299.1528128,ellipseName:"Bessel 1841"},bess_nam:{a:6377483.865,rf:299.1528128,ellipseName:"Bessel 1841 (Namibia)"},clrk66:{a:6378206.4,b:6356583.8,ellipseName:"Clarke 1866"},clrk80:{a:6378249.145,rf:293.4663,ellipseName:"Clarke 1880 mod."},clrk80ign:{a:6378249.2,b:6356515,rf:293.4660213,ellipseName:"Clarke 1880 (IGN)"},clrk58:{a:6378293.645208759,rf:294.2606763692654,ellipseName:"Clarke 1858"},CPM:{a:6375738.7,rf:334.29,ellipseName:"Comm. des Poids et Mesures 1799"},delmbr:{a:6376428,rf:311.5,ellipseName:"Delambre 1810 (Belgium)"},engelis:{a:6378136.05,rf:298.2566,ellipseName:"Engelis 1985"},evrst30:{a:6377276.345,rf:300.8017,ellipseName:"Everest 1830"},evrst48:{a:6377304.063,rf:300.8017,ellipseName:"Everest 1948"},evrst56:{a:6377301.243,rf:300.8017,ellipseName:"Everest 1956"},evrst69:{a:6377295.664,rf:300.8017,ellipseName:"Everest 1969"},evrstSS:{a:6377298.556,rf:300.8017,ellipseName:"Everest (Sabah & Sarawak)"},fschr60:{a:6378166,rf:298.3,ellipseName:"Fischer (Mercury Datum) 1960"},fschr60m:{a:6378155,rf:298.3,ellipseName:"Fischer 1960"},fschr68:{a:6378150,rf:298.3,ellipseName:"Fischer 1968"},helmert:{a:6378200,rf:298.3,ellipseName:"Helmert 1906"},hough:{a:6378270,rf:297,ellipseName:"Hough"},intl:{a:6378388,rf:297,ellipseName:"International 1909 (Hayford)"},kaula:{a:6378163,rf:298.24,ellipseName:"Kaula 1961"},lerch:{a:6378139,rf:298.257,ellipseName:"Lerch 1979"},mprts:{a:6397300,rf:191,ellipseName:"Maupertius 1738"},new_intl:{a:6378157.5,b:6356772.2,ellipseName:"New International 1967"},plessis:{a:6376523,rf:6355863,ellipseName:"Plessis 1817 (France)"},krass:{a:6378245,rf:298.3,ellipseName:"Krassovsky, 1942"},SEasia:{a:6378155,b:6356773.3205,ellipseName:"Southeast Asia"},walbeck:{a:6376896,b:6355834.8467,ellipseName:"Walbeck"},WGS60:{a:6378165,rf:298.3,ellipseName:"WGS 60"},WGS66:{a:6378145,rf:298.25,ellipseName:"WGS 66"},WGS7:{a:6378135,rf:298.26,ellipseName:"WGS 72"}},_7=Ze.WGS84={a:6378137,rf:298.257223563,ellipseName:"WGS 84"};Ze.sphere={a:6370997,b:6370997,ellipseName:"Normal Sphere (r=6370997)"};var dr={wgs84:{towgs84:"0,0,0",ellipse:"WGS84",datumName:"WGS84"},ch1903:{towgs84:"674.374,15.056,405.346",ellipse:"bessel",datumName:"swiss"},ggrs87:{towgs84:"-199.87,74.79,246.62",ellipse:"GRS80",datumName:"Greek_Geodetic_Reference_System_1987"},nad83:{towgs84:"0,0,0",ellipse:"GRS80",datumName:"North_American_Datum_1983"},nad27:{nadgrids:"@conus,@alaska,@ntv2_0.gsb,@ntv1_can.dat",ellipse:"clrk66",datumName:"North_American_Datum_1927"},potsdam:{towgs84:"598.1,73.7,418.2,0.202,0.045,-2.455,6.7",ellipse:"bessel",datumName:"Potsdam Rauenberg 1950 DHDN"},carthage:{towgs84:"-263.0,6.0,431.0",ellipse:"clark80",datumName:"Carthage 1934 Tunisia"},hermannskogel:{towgs84:"577.326,90.129,463.919,5.137,1.474,5.297,2.4232",ellipse:"bessel",datumName:"Hermannskogel"},osni52:{towgs84:"482.530,-130.596,564.557,-1.042,-0.214,-0.631,8.15",ellipse:"airy",datumName:"Irish National"},ire65:{towgs84:"482.530,-130.596,564.557,-1.042,-0.214,-0.631,8.15",ellipse:"mod_airy",datumName:"Ireland 1965"},rassadiran:{towgs84:"-133.63,-157.5,-158.62",ellipse:"intl",datumName:"Rassadiran"},nzgd49:{towgs84:"59.47,-5.04,187.44,0.47,-0.1,1.024,-4.5993",ellipse:"intl",datumName:"New Zealand Geodetic Datum 1949"},osgb36:{towgs84:"446.448,-125.157,542.060,0.1502,0.2470,0.8421,-20.4894",ellipse:"airy",datumName:"Airy 1830"},s_jtsk:{towgs84:"589,76,480",ellipse:"bessel",datumName:"S-JTSK (Ferro)"},beduaram:{towgs84:"-106,-87,188",ellipse:"clrk80",datumName:"Beduaram"},gunung_segara:{towgs84:"-403,684,41",ellipse:"bessel",datumName:"Gunung Segara Jakarta"},rnb72:{towgs84:"106.869,-52.2978,103.724,-0.33657,0.456955,-1.84218,1",ellipse:"intl",datumName:"Reseau National Belge 1972"}};var aN={};function b7(n){if(0===n.length)return null;var t="@"===n[0];return t&&(n=n.slice(1)),"null"===n?{name:"null",mandatory:!t,grid:null,isNull:!0}:{name:n,mandatory:!t,grid:aN[n]||null,isNull:!1}}function Sf(n){return n/3600*Math.PI/180}function qb(n,t,e){return String.fromCharCode.apply(null,new Uint8Array(n.buffer.slice(t,e)))}function T7(n){return n.map(function(t){return[Sf(t.longitudeShift),Sf(t.latitudeShift)]})}function A7(n,t,e){return{name:qb(n,t+8,t+16).trim(),parent:qb(n,t+24,t+24+8).trim(),lowerLatitude:n.getFloat64(t+72,e),upperLatitude:n.getFloat64(t+88,e),lowerLongitude:n.getFloat64(t+104,e),upperLongitude:n.getFloat64(t+120,e),latitudeInterval:n.getFloat64(t+136,e),longitudeInterval:n.getFloat64(t+152,e),gridNodeCount:n.getInt32(t+168,e)}}function R7(n,t,e,r){for(var i=t+176,s=[],a=0;a<e.gridNodeCount;a++){var l={latitudeShift:n.getFloat32(i+16*a,r),longitudeShift:n.getFloat32(i+16*a+4,r),latitudeAccuracy:n.getFloat32(i+16*a+8,r),longitudeAccuracy:n.getFloat32(i+16*a+12,r)};s.push(l)}return s}function If(n,t){if(!(this instanceof If))return new If(n);t=t||function(c){if(c)throw c};var e=function o7(n){if(!function XW(n){return"string"==typeof n}(n))return n;if(function QW(n){return n in nC}(n))return nC[n];if(function e7(n){return JW.some(function(t){return n.indexOf(t)>-1})}(n)){var t=rN(n);if(function n7(n){var t=Al(n,"authority");if(t){var e=Al(t,"epsg");return e&&t7.indexOf(e)>-1}}(t))return nC["EPSG:3857"];var e=function r7(n){var t=Al(n,"extension");if(t)return Al(t,"proj4")}(t);return e?$b(e):t}return function i7(n){return"+"===n[0]}(n)?$b(n):void 0}(n);if("object"==typeof e){var r=If.projections.get(e.projName);if(r){if(e.datumCode&&"none"!==e.datumCode){var i=Al(dr,e.datumCode);i&&(e.datum_params=e.datum_params||(i.towgs84?i.towgs84.split(","):null),e.ellps=i.ellipse,e.datumName=i.datumName?i.datumName:e.datumCode)}e.k0=e.k0||1,e.axis=e.axis||"enu",e.ellps=e.ellps||"wgs84",e.lat1=e.lat1||e.lat0;var o=function C7(n,t,e,r,i){if(!n){var o=Al(Ze,r);o||(o=_7),n=o.a,t=o.b,e=o.rf}return e&&!t&&(t=(1-1/e)*n),(0===e||Math.abs(n-t)<te)&&(i=!0,t=n),{a:n,b:t,rf:e,sphere:i}}(e.a,e.b,e.rf,e.ellps,e.sphere),s=function y7(n,t,e,r){var i=n*n,o=t*t,s=(i-o)/i,a=0;return r?(i=(n*=1-s*(.16666666666666666+s*(.04722222222222222+.022156084656084655*s)))*n,s=0):a=Math.sqrt(s),{es:s,e:a,ep2:(i-o)/o}}(o.a,o.b,0,e.R_A),a=function x7(n){return void 0===n?null:n.split(",").map(b7)}(e.nadgrids),l=e.datum||function w7(n,t,e,r,i,o,s){var a={};return a.datum_type=void 0===n||"none"===n?5:4,t&&(a.datum_params=t.map(parseFloat),(0!==a.datum_params[0]||0!==a.datum_params[1]||0!==a.datum_params[2])&&(a.datum_type=1),a.datum_params.length>3&&(0!==a.datum_params[3]||0!==a.datum_params[4]||0!==a.datum_params[5]||0!==a.datum_params[6])&&(a.datum_type=2,a.datum_params[3]*=ov,a.datum_params[4]*=ov,a.datum_params[5]*=ov,a.datum_params[6]=a.datum_params[6]/1e6+1)),s&&(a.datum_type=3,a.grids=s),a.a=e,a.b=r,a.es=i,a.ep2=o,a}(e.datumCode,e.datum_params,o.a,o.b,s.es,s.ep2,a);iN(this,e),iN(this,r),this.a=o.a,this.b=o.b,this.rf=o.rf,this.sphere=o.sphere,this.es=s.es,this.e=s.e,this.ep2=s.ep2,this.datum=l,this.init(),t(null,this)}else t(n)}else t(n)}(If.projections=m7).start();const cv=If;function lN(n,t,e){var s,a,c,r=n.x,i=n.y,o=n.z?n.z:0;if(i<-q&&i>-1.001*q)i=-q;else if(i>q&&i<1.001*q)i=q;else{if(i<-q)return{x:-1/0,y:-1/0,z:n.z};if(i>q)return{x:1/0,y:1/0,z:n.z}}return r>Math.PI&&(r-=2*Math.PI),a=Math.sin(i),c=Math.cos(i),{x:((s=e/Math.sqrt(1-t*(a*a)))+o)*c*Math.cos(r),y:(s+o)*c*Math.sin(r),z:(s*(1-t)+o)*a}}function uN(n,t,e,r){var a,l,c,f,d,g,v,m,y,w,x,E,S,j,X,T=n.x,O=n.y,N=n.z?n.z:0;if(a=Math.sqrt(T*T+O*O),l=Math.sqrt(T*T+O*O+N*N),a/e<1e-12){if(j=0,l/e<1e-12)return X=-r,{x:n.x,y:n.y,z:n.z}}else j=Math.atan2(O,T);c=N/l,m=(f=a/l)*(1-t)*(d=1/Math.sqrt(1-t*(2-t)*f*f)),y=c*d,S=0;do{S++,g=t*(v=e/Math.sqrt(1-t*y*y))/(v+(X=a*m+N*y-v*(1-t*y*y))),E=(x=c*(d=1/Math.sqrt(1-g*(2-g)*f*f)))*m-(w=f*(1-g)*d)*y,m=w,y=x}while(E*E>1e-24&&S<30);return{x:j,y:Math.atan(x/Math.abs(w)),z:X}}function oC(n){return 1===n||2===n}function cN(n,t,e){if(null===n.grids||0===n.grids.length)return console.log("Grid shift grids not found"),-1;for(var r={x:-e.x,y:e.y},i={x:Number.NaN,y:Number.NaN},s=[],a=0;a<n.grids.length;a++){var l=n.grids[a];if(s.push(l.name),l.isNull){i=r;break}if(null!==l.grid){var c=l.grid.subgrids[0],f=(Math.abs(c.del[1])+Math.abs(c.del[0]))/1e4;if(!(c.ll[1]-f>r.y||c.ll[0]-f>r.x||c.ll[1]+(c.lim[1]-1)*c.del[1]+f<r.y||c.ll[0]+(c.lim[0]-1)*c.del[0]+f<r.x||(i=N7(r,t,c),isNaN(i.x))))break}else if(l.mandatory)return console.log("Unable to find mandatory grid '"+l.name+"'"),-1}return isNaN(i.x)?(console.log("Failed to find a grid shift table for location '"+-r.x*ks+" "+r.y*ks+" tried: '"+s+"'"),-1):(e.x=-i.x,e.y=i.y,0)}function N7(n,t,e){var r={x:Number.NaN,y:Number.NaN};if(isNaN(n.x))return r;var i={x:n.x,y:n.y};i.x-=e.ll[0],i.y-=e.ll[1],i.x=le(i.x-Math.PI)+Math.PI;var o=hN(i,e);if(t){if(isNaN(o.x))return r;o.x=i.x-o.x,o.y=i.y-o.y;var l,c,s=9;do{if(c=hN(o,e),isNaN(c.x)){console.log("Inverse grid shift iteration failed, presumably at grid edge.  Using first approximation.");break}o.x+=(l={x:i.x-(c.x+o.x),y:i.y-(c.y+o.y)}).x,o.y+=l.y}while(s--&&Math.abs(l.x)>1e-12&&Math.abs(l.y)>1e-12);if(s<0)return console.log("Inverse grid shift iterator failed to converge."),r;r.x=le(o.x+e.ll[0]),r.y=o.y+e.ll[1]}else isNaN(o.x)||(r.x=n.x+o.x,r.y=n.y+o.y);return r}function hN(n,t){var s,e={x:n.x/t.del[0],y:n.y/t.del[1]},r_x=Math.floor(e.x),r_y=Math.floor(e.y),i_x=e.x-1*r_x,i_y=e.y-1*r_y,o={x:Number.NaN,y:Number.NaN};if(r_x<0||r_x>=t.lim[0]||r_y<0||r_y>=t.lim[1])return o;var a_x=t.cvs[s=r_y*t.lim[0]+r_x][0],a_y=t.cvs[s][1];s++;var l_x=t.cvs[s][0],l_y=t.cvs[s][1],c_x=t.cvs[s+=t.lim[0]][0],c_y=t.cvs[s][1];s--;var f_y=t.cvs[s][1],d=i_x*i_y,g=i_x*(1-i_y),v=(1-i_x)*(1-i_y),m=(1-i_x)*i_y;return o.x=v*a_x+g*l_x+m*t.cvs[s][0]+d*c_x,o.y=v*a_y+g*l_y+m*f_y+d*c_y,o}function fN(n,t,e){var s,a,l,r=e.x,i=e.y,o=e.z||0,c={};for(l=0;l<3;l++)if(!t||2!==l||void 0!==e.z)switch(0===l?(s=r,a=-1!=="ew".indexOf(n.axis[l])?"x":"y"):1===l?(s=i,a=-1!=="ns".indexOf(n.axis[l])?"y":"x"):(s=o,a="z"),n.axis[l]){case"e":case"n":c[a]=s;break;case"w":case"s":c[a]=-s;break;case"u":void 0!==e[a]&&(c.z=s);break;case"d":void 0!==e[a]&&(c.z=-s);break;default:return null}return c}function dN(n){var t={x:n[0],y:n[1]};return n.length>2&&(t.z=n[2]),n.length>3&&(t.m=n[3]),t}function pN(n){if("function"==typeof Number.isFinite){if(Number.isFinite(n))return;throw new TypeError("coordinates must be finite numbers")}if("number"!=typeof n||n!=n||!isFinite(n))throw new TypeError("coordinates must be finite numbers")}function sC(n,t,e,r){var i,o=void 0!==(e=Array.isArray(e)?dN(e):{x:e.x,y:e.y,z:e.z,m:e.m}).z;if(function F7(n){pN(n.x),pN(n.y)}(e),n.datum&&t.datum&&function V7(n,t){return(1===n.datum.datum_type||2===n.datum.datum_type||3===n.datum.datum_type)&&"WGS84"!==t.datumCode||(1===t.datum.datum_type||2===t.datum.datum_type||3===t.datum.datum_type)&&"WGS84"!==n.datumCode}(n,t)&&(e=sC(n,i=new cv("WGS84"),e,r),n=i),r&&"enu"!==n.axis&&(e=fN(n,!1,e)),"longlat"===n.projName)e={x:e.x*xr,y:e.y*xr,z:e.z||0};else if(n.to_meter&&(e={x:e.x*n.to_meter,y:e.y*n.to_meter,z:e.z||0}),!(e=n.inverse(e)))return;if(n.from_greenwich&&(e.x+=n.from_greenwich),e=function L7(n,t,e){if(function O7(n,t){return!(n.datum_type!==t.datum_type||n.a!==t.a||Math.abs(n.es-t.es)>5e-11)&&(1===n.datum_type?n.datum_params[0]===t.datum_params[0]&&n.datum_params[1]===t.datum_params[1]&&n.datum_params[2]===t.datum_params[2]:2!==n.datum_type||n.datum_params[0]===t.datum_params[0]&&n.datum_params[1]===t.datum_params[1]&&n.datum_params[2]===t.datum_params[2]&&n.datum_params[3]===t.datum_params[3]&&n.datum_params[4]===t.datum_params[4]&&n.datum_params[5]===t.datum_params[5]&&n.datum_params[6]===t.datum_params[6])}(n,t)||5===n.datum_type||5===t.datum_type)return e;var r=n.a,i=n.es;if(3===n.datum_type){if(0!==cN(n,!1,e))return;r=6378137,i=YL}var s=t.a,a=t.b,l=t.es;return 3===t.datum_type&&(s=6378137,a=6356752.314,l=YL),i!==l||r!==s||oC(n.datum_type)||oC(t.datum_type)?(e=lN(e,i,r),oC(n.datum_type)&&(e=function P7(n,t,e){if(1===t)return{x:n.x+e[0],y:n.y+e[1],z:n.z+e[2]};if(2===t){var s=e[3],a=e[4],l=e[5],c=e[6];return{x:c*(n.x-l*n.y+a*n.z)+e[0],y:c*(l*n.x+n.y-s*n.z)+e[1],z:c*(-a*n.x+s*n.y+n.z)+e[2]}}}(e,n.datum_type,n.datum_params)),oC(t.datum_type)&&(e=function k7(n,t,e){if(1===t)return{x:n.x-e[0],y:n.y-e[1],z:n.z-e[2]};if(2===t){var s=e[3],a=e[4],l=e[5],c=e[6],f=(n.x-e[0])/c,d=(n.y-e[1])/c,g=(n.z-e[2])/c;return{x:f+l*d-a*g,y:-l*f+d+s*g,z:a*f-s*d+g}}}(e,t.datum_type,t.datum_params)),e=uN(e,l,s,a),3!==t.datum_type||0===cN(t,!0,e)?e:void 0):e}(n.datum,t.datum,e))return t.from_greenwich&&(e={x:e.x-t.from_greenwich,y:e.y,z:e.z||0}),"longlat"===t.projName?e={x:e.x*ks,y:e.y*ks,z:e.z||0}:(e=t.forward(e),t.to_meter&&(e={x:e.x/t.to_meter,y:e.y/t.to_meter,z:e.z||0})),r&&"enu"!==t.axis?fN(t,!0,e):(o||delete e.z,e)}var gN=cv("WGS84");function Kb(n,t,e,r){var i,o,s;return Array.isArray(e)?(i=sC(n,t,e,r)||{x:NaN,y:NaN},e.length>2?void 0!==n.name&&"geocent"===n.name||void 0!==t.name&&"geocent"===t.name?"number"==typeof i.z?[i.x,i.y,i.z].concat(e.splice(3)):[i.x,i.y,e[2]].concat(e.splice(3)):[i.x,i.y].concat(e.splice(2)):[i.x,i.y]):(o=sC(n,t,e,r),2===(s=Object.keys(e)).length||s.forEach(function(a){if(void 0!==n.name&&"geocent"===n.name||void 0!==t.name&&"geocent"===t.name){if("x"===a||"y"===a||"z"===a)return}else if("x"===a||"y"===a)return;o[a]=e[a]}),o)}function vN(n){return n instanceof cv?n:n.oProj?n.oProj:cv(n)}const oo=function B7(n,t,e){n=vN(n);var i,r=!1;return void 0===t?(t=n,n=gN,r=!0):(void 0!==t.x||Array.isArray(t))&&(e=t,t=n,n=gN,r=!0),t=vN(t),e?Kb(n,t,e):(i={forward:function(o,s){return Kb(n,t,o,s)},inverse:function(o,s){return Kb(t,n,o,s)}},r&&(i.oProj=t),i)};const U7={forward:CN,inverse:function j7(n){var t=Yb(xN(n.toUpperCase()));return t.lat&&t.lon?[t.lon,t.lat,t.lon,t.lat]:[t.left,t.bottom,t.right,t.top]},toPoint:wN};function CN(n,t){return t=t||5,function z7(n,t){var e="00000"+n.easting,r="00000"+n.northing;return n.zoneNumber+n.zoneLetter+function $7(n,t,e){var r=MN(e);return function W7(n,t,e){var r=e-1,i="AJSAJS".charCodeAt(r),o="AFAFAF".charCodeAt(r),s=i+n-1,a=o+t,l=!1;return s>90&&(s=s-90+65-1,l=!0),(73===s||i<73&&s>73||(s>73||i<73)&&l)&&s++,(79===s||i<79&&s>79||(s>79||i<79)&&l)&&73==++s&&s++,s>90&&(s=s-90+65-1),a>86?(a=a-86+65-1,l=!0):l=!1,(73===a||o<73&&a>73||(a>73||o<73)&&l)&&a++,(79===a||o<79&&a>79||(a>79||o<79)&&l)&&73==++a&&a++,a>86&&(a=a-86+65-1),String.fromCharCode(s)+String.fromCharCode(a)}(Math.floor(n/1e5),Math.floor(t/1e5)%20,r)}(n.easting,n.northing,n.zoneNumber)+e.substr(e.length-5,t)+r.substr(r.length-5,t)}(function G7(n){var a,l,c,f,d,y,w,t=n.lat,e=n.lon,r=6378137,i=.00669438,o=.9996,v=Zb(t),m=Zb(e);w=Math.floor((e+180)/6)+1,180===e&&(w=60),t>=56&&t<64&&e>=3&&e<12&&(w=32),t>=72&&t<84&&(e>=0&&e<9?w=31:e>=9&&e<21?w=33:e>=21&&e<33?w=35:e>=33&&e<42&&(w=37)),y=Zb(6*(w-1)-180+3),a=i/(1-i),l=r/Math.sqrt(1-i*Math.sin(v)*Math.sin(v)),c=Math.tan(v)*Math.tan(v),f=a*Math.cos(v)*Math.cos(v);var x=o*l*((d=Math.cos(v)*(m-y))+(1-c+f)*d*d*d/6+(5-18*c+c*c+72*f-58*a)*d*d*d*d*d/120)+5e5,E=o*(r*(.9983242984503243*v-.002514607064228144*Math.sin(2*v)+2639046602129982e-21*Math.sin(4*v)-35*i*i*i/3072*Math.sin(6*v))+l*Math.tan(v)*(d*d/2+(5-c+9*f+4*f*f)*d*d*d*d/24+(61-58*c+c*c+600*f-330*a)*d*d*d*d*d*d/720));return t<0&&(E+=1e7),{northing:Math.round(E),easting:Math.round(x),zoneNumber:w,zoneLetter:H7(t)}}({lat:n[1],lon:n[0]}),t)}function wN(n){var t=Yb(xN(n.toUpperCase()));return t.lat&&t.lon?[t.lon,t.lat]:[(t.left+t.right)/2,(t.top+t.bottom)/2]}function Zb(n){return n*(Math.PI/180)}function EN(n){return n/Math.PI*180}function Yb(n){var t=n.northing,e=n.easting,r=n.zoneLetter,i=n.zoneNumber;if(i<0||i>60)return null;var l,f,d,g,v,m,w,x,E,o=.9996,s=6378137,a=.00669438,c=(1-Math.sqrt(1-a))/(1+Math.sqrt(1-a)),S=e-5e5,T=t;r<"N"&&(T-=1e7),w=6*(i-1)-180+3,l=a/(1-a),E=(x=T/o/6367449.145945056)+(3*c/2-27*c*c*c/32)*Math.sin(2*x)+(21*c*c/16-55*c*c*c*c/32)*Math.sin(4*x)+151*c*c*c/96*Math.sin(6*x),f=s/Math.sqrt(1-a*Math.sin(E)*Math.sin(E)),d=Math.tan(E)*Math.tan(E),g=l*Math.cos(E)*Math.cos(E),v=s*(1-a)/Math.pow(1-a*Math.sin(E)*Math.sin(E),1.5),m=S/(f*o);var O=E-f*Math.tan(E)/v*(m*m/2-(5+3*d+10*g-4*g*g-9*l)*m*m*m*m/24+(61+90*d+298*g+45*d*d-252*l-3*g*g)*m*m*m*m*m*m/720);O=EN(O);var j,N=(m-(1+2*d+g)*m*m*m/6+(5-2*g+28*d-3*g*g+8*l+24*d*d)*m*m*m*m*m/120)/Math.cos(E);if(N=w+EN(N),n.accuracy){var H=Yb({northing:n.northing+n.accuracy,easting:n.easting+n.accuracy,zoneLetter:n.zoneLetter,zoneNumber:n.zoneNumber});j={top:H.lat,right:H.lon,bottom:O,left:N}}else j={lat:O,lon:N};return j}function H7(n){var t="Z";return 84>=n&&n>=72?t="X":72>n&&n>=64?t="W":64>n&&n>=56?t="V":56>n&&n>=48?t="U":48>n&&n>=40?t="T":40>n&&n>=32?t="S":32>n&&n>=24?t="R":24>n&&n>=16?t="Q":16>n&&n>=8?t="P":8>n&&n>=0?t="N":0>n&&n>=-8?t="M":-8>n&&n>=-16?t="L":-16>n&&n>=-24?t="K":-24>n&&n>=-32?t="J":-32>n&&n>=-40?t="H":-40>n&&n>=-48?t="G":-48>n&&n>=-56?t="F":-56>n&&n>=-64?t="E":-64>n&&n>=-72?t="D":-72>n&&n>=-80&&(t="C"),t}function MN(n){var t=n%6;return 0===t&&(t=6),t}function xN(n){if(n&&0===n.length)throw"MGRSPoint coverting from nothing";for(var i,t=n.length,e=null,r="",o=0;!/[A-Z]/.test(i=n.charAt(o));){if(o>=2)throw"MGRSPoint bad conversion from: "+n;r+=i,o++}var s=parseInt(r,10);if(0===o||o+3>t)throw"MGRSPoint bad conversion from: "+n;var a=n.charAt(o++);if(a<="A"||"B"===a||"Y"===a||a>="Z"||"I"===a||"O"===a)throw"MGRSPoint zone letter "+a+" not handled: "+n;e=n.substring(o,o+=2);for(var l=MN(s),c=function q7(n,t){for(var e="AJSAJS".charCodeAt(t-1),r=1e5,i=!1;e!==n.charCodeAt(0);){if(73==++e&&e++,79===e&&e++,e>90){if(i)throw"Bad character: "+n;e=65,i=!0}r+=1e5}return r}(e.charAt(0),l),f=function K7(n,t){if(n>"V")throw"MGRSPoint given invalid Northing "+n;for(var e="AFAFAF".charCodeAt(t-1),r=0,i=!1;e!==n.charCodeAt(0);){if(73==++e&&e++,79===e&&e++,e>86){if(i)throw"Bad character: "+n;e=65,i=!0}r+=1e5}return r}(e.charAt(1),l);f<Z7(a);)f+=2e6;var d=t-o;if(d%2!=0)throw"MGRSPoint has to have an even number \nof digits after the zone letter and two 100km letters - front \nhalf for easting meters, second half for \nnorthing meters"+n;var y,w,x,g=d/2,v=0,m=0;return g>0&&(y=1e5/Math.pow(10,g),w=n.substring(o,o+g),v=parseFloat(w)*y,x=n.substring(o+g),m=parseFloat(x)*y),{easting:v+c,northing:m+f,zoneLetter:a,zoneNumber:s,accuracy:y}}function Z7(n){var t;switch(n){case"C":t=11e5;break;case"D":t=2e6;break;case"E":t=28e5;break;case"F":t=37e5;break;case"G":t=46e5;break;case"H":t=55e5;break;case"J":t=64e5;break;case"K":t=73e5;break;case"L":t=82e5;break;case"M":t=91e5;break;case"N":t=0;break;case"P":t=8e5;break;case"Q":t=17e5;break;case"R":t=26e5;break;case"S":t=35e5;break;case"T":t=44e5;break;case"U":t=53e5;break;case"V":t=62e5;break;case"W":t=7e6;break;case"X":t=79e5;break;default:t=-1}if(t>=0)return t;throw"Invalid zone letter: "+n}function Af(n,t,e){if(!(this instanceof Af))return new Af(n,t,e);if(Array.isArray(n))this.x=n[0],this.y=n[1],this.z=n[2]||0;else if("object"==typeof n)this.x=n.x,this.y=n.y,this.z=n.z||0;else if("string"==typeof n&&void 0===t){var r=n.split(",");this.x=parseFloat(r[0],10),this.y=parseFloat(r[1],10),this.z=parseFloat(r[2],10)||0}else this.x=n,this.y=t,this.z=e||0;console.warn("proj4.Point will be removed in version 3, use proj4.toPoint")}Af.fromMGRS=function(n){return new Af(wN(n))},Af.prototype.toMGRS=function(n){return CN([this.x,this.y],n)};const Y7=Af;var DN=.01953125,SN=.01068115234375;function IN(n){var t=[];t[0]=1-n*(.25+n*(.046875+n*(DN+n*SN))),t[1]=n*(.75-n*(.046875+n*(DN+n*SN)));var e=n*n;return t[2]=e*(.46875-n*(.013020833333333334+.007120768229166667*n)),t[3]=(e*=n)*(.3645833333333333-.005696614583333333*n),t[4]=e*n*.3076171875,t}function aC(n,t,e,r){return r[0]*n-(e*=t)*(r[1]+(t*=t)*(r[2]+t*(r[3]+t*r[4])))}function TN(n,t,e){for(var r=1/(1-t),i=n,o=20;o;--o){var s=Math.sin(i),a=1-t*s*s;if(i-=a=(aC(i,s,Math.cos(i),e)-n)*(a*Math.sqrt(a))*r,Math.abs(a)<te)return i}return i}const lC={init:function aq(){this.x0=void 0!==this.x0?this.x0:0,this.y0=void 0!==this.y0?this.y0:0,this.long0=void 0!==this.long0?this.long0:0,this.lat0=void 0!==this.lat0?this.lat0:0,this.es&&(this.en=IN(this.es),this.ml0=aC(this.lat0,Math.sin(this.lat0),Math.cos(this.lat0),this.en))},forward:function lq(n){var i,o,s,e=n.y,r=le(n.x-this.long0),a=Math.sin(e),l=Math.cos(e);if(this.es){var f=l*r,d=Math.pow(f,2),g=this.ep2*Math.pow(l,2),v=Math.pow(g,2),m=Math.abs(l)>te?Math.tan(e):0,y=Math.pow(m,2),w=Math.pow(y,2);i=1-this.es*Math.pow(a,2),f/=Math.sqrt(i);var x=aC(e,a,l,this.en);o=this.a*(this.k0*f*(1+d/6*(1-y+g+d/20*(5-18*y+w+14*g-58*y*g+d/42*(61+179*w-w*y-479*y)))))+this.x0,s=this.a*(this.k0*(x-this.ml0+a*r*f/2*(1+d/12*(5-y+9*g+4*v+d/30*(61+w-58*y+270*g-330*y*g+d/56*(1385+543*w-w*y-3111*y))))))+this.y0}else{var c=l*Math.sin(r);if(Math.abs(Math.abs(c)-1)<te)return 93;if(o=.5*this.a*this.k0*Math.log((1+c)/(1-c))+this.x0,s=l*Math.cos(r)/Math.sqrt(1-Math.pow(c,2)),(c=Math.abs(s))>=1){if(c-1>te)return 93;s=0}else s=Math.acos(s);e<0&&(s=-s),s=this.a*this.k0*(s-this.lat0)+this.y0}return n.x=o,n.y=s,n},inverse:function uq(n){var t,e,r,i,o=1/this.a*(n.x-this.x0),s=1/this.a*(n.y-this.y0);if(this.es)if(e=TN(t=this.ml0+s/this.k0,this.es,this.en),Math.abs(e)<q){var d=Math.sin(e),g=Math.cos(e),v=Math.abs(g)>te?Math.tan(e):0,m=this.ep2*Math.pow(g,2),y=Math.pow(m,2),w=Math.pow(v,2),x=Math.pow(w,2);t=1-this.es*Math.pow(d,2);var E=o*Math.sqrt(t)/this.k0,S=Math.pow(E,2);r=e-(t*=v)*S/(1-this.es)*.5*(1-S/12*(5+3*w-9*m*w+m-4*y-S/30*(61+90*w-252*m*w+45*x+46*m-S/56*(1385+3633*w+4095*x+1574*x*w)))),i=le(this.long0+E*(1-S/6*(1+2*w+m-S/20*(5+28*w+24*x+8*m*w+6*m-S/42*(61+662*w+1320*x+720*x*w))))/g)}else r=q*lv(s),i=0;else{var a=Math.exp(o/this.k0),l=.5*(a-1/a),f=Math.cos(this.lat0+s/this.k0);t=Math.sqrt((1-Math.pow(f,2))/(1+Math.pow(l,2))),r=Math.asin(t),s<0&&(r=-r),i=0===l&&0===f?0:le(Math.atan2(l,f)+this.long0)}return n.x=i,n.y=r,n},names:["Fast_Transverse_Mercator","Fast Transverse Mercator"]};function AN(n){var t=Math.exp(n);return(t-1/t)/2}function is(n,t){n=Math.abs(n),t=Math.abs(t);var e=Math.max(n,t),r=Math.min(n,t)/(e||1);return e*Math.sqrt(1+Math.pow(r,2))}function Xb(n,t){for(var s,e=2*Math.cos(2*t),r=n.length-1,i=n[r],o=0;--r>=0;)s=e*i-o+n[r],o=i,i=s;return t+s*Math.sin(2*t)}function RN(n,t,e){for(var m,y,r=Math.sin(t),i=Math.cos(t),o=AN(e),s=function pq(n){var t=Math.exp(n);return(t+1/t)/2}(e),a=2*i*s,l=-2*r*o,c=n.length-1,f=n[c],d=0,g=0,v=0;--c>=0;)m=g,y=d,f=a*(g=f)-m-l*(d=v)+n[c],v=l*g-y+a*d;return[(a=r*s)*f-(l=i*o)*v,a*v+l*f]}const uC={init:function gq(){if(!this.approx&&(isNaN(this.es)||this.es<=0))throw new Error('Incorrect elliptical usage. Try using the +approx option in the proj string, or PROJECTION["Fast_Transverse_Mercator"] in the WKT.');this.approx&&(lC.init.apply(this),this.forward=lC.forward,this.inverse=lC.inverse),this.x0=void 0!==this.x0?this.x0:0,this.y0=void 0!==this.y0?this.y0:0,this.long0=void 0!==this.long0?this.long0:0,this.lat0=void 0!==this.lat0?this.lat0:0,this.cgb=[],this.cbg=[],this.utg=[],this.gtu=[];var n=this.es/(1+Math.sqrt(1-this.es)),t=n/(2-n),e=t;this.cgb[0]=t*(2+t*(-2/3+t*(t*(116/45+t*(26/45+t*(-2854/675)))-2))),this.cbg[0]=t*(t*(2/3+t*(4/3+t*(-82/45+t*(32/45+t*(4642/4725)))))-2),this.cgb[1]=(e*=t)*(7/3+t*(t*(-227/45+t*(2704/315+t*(2323/945)))-1.6)),this.cbg[1]=e*(5/3+t*(-16/15+t*(-13/9+t*(904/315+t*(-1522/945))))),this.cgb[2]=(e*=t)*(56/15+t*(-136/35+t*(-1262/105+t*(73814/2835)))),this.cbg[2]=e*(-26/15+t*(34/21+t*(1.6+t*(-12686/2835)))),this.cgb[3]=(e*=t)*(4279/630+t*(-332/35+t*(-399572/14175))),this.cbg[3]=e*(1237/630+t*(t*(-24832/14175)-2.4)),this.cgb[4]=(e*=t)*(4174/315+t*(-144838/6237)),this.cbg[4]=e*(-734/315+t*(109598/31185)),this.cgb[5]=(e*=t)*(601676/22275),this.cbg[5]=e*(444337/155925),e=Math.pow(t,2),this.Qn=this.k0/(1+t)*(1+e*(1/4+e*(1/64+e/256))),this.utg[0]=t*(t*(2/3+t*(-37/96+t*(1/360+t*(81/512+t*(-96199/604800)))))-.5),this.gtu[0]=t*(.5+t*(-2/3+t*(5/16+t*(41/180+t*(-127/288+t*(7891/37800)))))),this.utg[1]=e*(-1/48+t*(-1/15+t*(437/1440+t*(-46/105+t*(1118711/3870720))))),this.gtu[1]=e*(13/48+t*(t*(557/1440+t*(281/630+t*(-1983433/1935360)))-.6)),this.utg[2]=(e*=t)*(-17/480+t*(37/840+t*(209/4480+t*(-5569/90720)))),this.gtu[2]=e*(61/240+t*(-103/140+t*(15061/26880+t*(167603/181440)))),this.utg[3]=(e*=t)*(-4397/161280+t*(11/504+t*(830251/7257600))),this.gtu[3]=e*(49561/161280+t*(-179/168+t*(6601661/7257600))),this.utg[4]=(e*=t)*(-4583/161280+t*(108847/3991680)),this.gtu[4]=e*(34729/80640+t*(-3418889/1995840)),this.utg[5]=(e*=t)*(-20648693/638668800),this.gtu[5]=.6650675310896665*e;var r=Xb(this.cbg,this.lat0);this.Zb=-this.Qn*(r+function dq(n,t){for(var s,e=2*Math.cos(t),r=n.length-1,i=n[r],o=0;--r>=0;)s=e*i-o+n[r],o=i,i=s;return Math.sin(t)*s}(this.gtu,2*r))},forward:function vq(n){var t=le(n.x-this.long0),e=n.y;e=Xb(this.cbg,e);var r=Math.sin(e),i=Math.cos(e),o=Math.sin(t),s=Math.cos(t);e=Math.atan2(r,s*i),t=Math.atan2(o*i,is(r,i*s)),t=function fq(n){var t=Math.abs(n);return t=function hq(n){var t=1+n,e=t-1;return 0===e?n:n*Math.log(t)/e}(t*(1+t/(is(1,t)+1))),n<0?-t:t}(Math.tan(t));var l,c,a=RN(this.gtu,2*e,2*t);return e+=a[0],t+=a[1],Math.abs(t)<=2.623395162778?(l=this.a*(this.Qn*t)+this.x0,c=this.a*(this.Qn*e+this.Zb)+this.y0):(l=1/0,c=1/0),n.x=l,n.y=c,n},inverse:function mq(n){var r,i,t=1/this.a*(n.x-this.x0),e=1/this.a*(n.y-this.y0);if(e=(e-this.Zb)/this.Qn,t/=this.Qn,Math.abs(t)<=2.623395162778){var o=RN(this.utg,2*e,2*t);e+=o[0],t+=o[1],t=Math.atan(AN(t));var s=Math.sin(e),a=Math.cos(e),l=Math.sin(t),c=Math.cos(t);e=Math.atan2(s*c,is(l,c*a)),r=le((t=Math.atan2(l,c*a))+this.long0),i=Xb(this.cgb,e)}else r=1/0,i=1/0;return n.x=r,n.y=i,n},names:["Extended_Transverse_Mercator","Extended Transverse Mercator","etmerc","Transverse_Mercator","Transverse Mercator","tmerc"]},Mq={init:function wq(){var n=function yq(n,t){if(void 0===n){if((n=Math.floor(30*(le(t)+Math.PI)/Math.PI)+1)<0)return 0;if(n>60)return 60}return n}(this.zone,this.long0);if(void 0===n)throw new Error("unknown utm zone");this.lat0=0,this.long0=(6*Math.abs(n)-183)*xr,this.x0=5e5,this.y0=this.utmSouth?1e7:0,this.k0=.9996,uC.init.apply(this),this.forward=uC.forward,this.inverse=uC.inverse},names:["Universal Transverse Mercator System","utm"],dependsOn:"etmerc"};function Qb(n,t){return Math.pow((1-n)/(1+n),t)}const Jb={init:function bq(){var n=Math.sin(this.lat0),t=Math.cos(this.lat0);t*=t,this.rc=Math.sqrt(1-this.es)/(1-this.es*n*n),this.C=Math.sqrt(1+this.es*t*t/(1-this.es)),this.phic0=Math.asin(n/this.C),this.ratexp=.5*this.C*this.e,this.K=Math.tan(.5*this.phic0+Nt)/(Math.pow(Math.tan(.5*this.lat0+Nt),this.C)*Qb(this.e*n,this.ratexp))},forward:function Dq(n){var t=n.x,e=n.y;return n.y=2*Math.atan(this.K*Math.pow(Math.tan(.5*e+Nt),this.C)*Qb(this.e*Math.sin(e),this.ratexp))-q,n.x=this.C*t,n},inverse:function Sq(n){for(var e=n.x/this.C,r=n.y,i=Math.pow(Math.tan(.5*r+Nt)/this.K,1/this.C),o=20;o>0&&(r=2*Math.atan(i*Qb(this.e*Math.sin(n.y),-.5*this.e))-q,!(Math.abs(r-n.y)<1e-14));--o)n.y=r;return o?(n.x=e,n.y=r,n):null},names:["gauss"]},Pq={init:function Tq(){Jb.init.apply(this),this.rc&&(this.sinc0=Math.sin(this.phic0),this.cosc0=Math.cos(this.phic0),this.R2=2*this.rc,this.title||(this.title="Oblique Stereographic Alternative"))},forward:function Aq(n){var t,e,r,i;return n.x=le(n.x-this.long0),Jb.forward.apply(this,[n]),t=Math.sin(n.y),e=Math.cos(n.y),r=Math.cos(n.x),n.x=(i=this.k0*this.R2/(1+this.sinc0*t+this.cosc0*e*r))*e*Math.sin(n.x),n.y=i*(this.cosc0*t-this.sinc0*e*r),n.x=this.a*n.x+this.x0,n.y=this.a*n.y+this.y0,n},inverse:function Rq(n){var t,e,r,i,o;if(n.x=(n.x-this.x0)/this.a,n.y=(n.y-this.y0)/this.a,n.x/=this.k0,n.y/=this.k0,o=Math.sqrt(n.x*n.x+n.y*n.y)){var s=2*Math.atan2(o,this.R2);t=Math.sin(s),e=Math.cos(s),i=Math.asin(e*this.sinc0+n.y*t*this.cosc0/o),r=Math.atan2(n.x*t,o*this.cosc0*e-n.y*this.sinc0*t)}else i=this.phic0,r=0;return n.x=r,n.y=i,Jb.inverse.apply(this,[n]),n.x=le(n.x+this.long0),n},names:["Stereographic_North_Pole","Oblique_Stereographic","Polar_Stereographic","sterea","Oblique Stereographic Alternative","Double_Stereographic"]},Bq={init:function Lq(){this.coslat0=Math.cos(this.lat0),this.sinlat0=Math.sin(this.lat0),this.sphere?1===this.k0&&!isNaN(this.lat_ts)&&Math.abs(this.coslat0)<=te&&(this.k0=.5*(1+lv(this.lat0)*Math.sin(this.lat_ts))):(Math.abs(this.coslat0)<=te&&(this.con=this.lat0>0?1:-1),this.cons=Math.sqrt(Math.pow(1+this.e,1+this.e)*Math.pow(1-this.e,1-this.e)),1===this.k0&&!isNaN(this.lat_ts)&&Math.abs(this.coslat0)<=te&&(this.k0=.5*this.cons*Ns(this.e,Math.sin(this.lat_ts),Math.cos(this.lat_ts))/rs(this.e,this.con*this.lat_ts,this.con*Math.sin(this.lat_ts))),this.ms1=Ns(this.e,this.sinlat0,this.coslat0),this.X0=2*Math.atan(this.ssfn_(this.lat0,this.sinlat0,this.e))-q,this.cosX0=Math.cos(this.X0),this.sinX0=Math.sin(this.X0))},forward:function Nq(n){var o,s,a,l,c,f,t=n.x,e=n.y,r=Math.sin(e),i=Math.cos(e),d=le(t-this.long0);return Math.abs(Math.abs(t-this.long0)-Math.PI)<=te&&Math.abs(e+this.lat0)<=te?(n.x=NaN,n.y=NaN,n):this.sphere?(o=2*this.k0/(1+this.sinlat0*r+this.coslat0*i*Math.cos(d)),n.x=this.a*o*i*Math.sin(d)+this.x0,n.y=this.a*o*(this.coslat0*r-this.sinlat0*i*Math.cos(d))+this.y0,n):(s=2*Math.atan(this.ssfn_(e,r,this.e))-q,l=Math.cos(s),a=Math.sin(s),Math.abs(this.coslat0)<=te?(c=rs(this.e,e*this.con,this.con*r),n.x=this.x0+(f=2*this.a*this.k0*c/this.cons)*Math.sin(t-this.long0),n.y=this.y0-this.con*f*Math.cos(t-this.long0),n):(Math.abs(this.sinlat0)<te?(o=2*this.a*this.k0/(1+l*Math.cos(d)),n.y=o*a):(o=2*this.a*this.k0*this.ms1/(this.cosX0*(1+this.sinX0*a+this.cosX0*l*Math.cos(d))),n.y=o*(this.cosX0*a-this.sinX0*l*Math.cos(d))+this.y0),n.x=o*l*Math.sin(d)+this.x0,n))},inverse:function Fq(n){n.x-=this.x0,n.y-=this.y0;var t,e,i,o,s=Math.sqrt(n.x*n.x+n.y*n.y);if(this.sphere){var a=2*Math.atan(s/(2*this.a*this.k0));return t=this.long0,e=this.lat0,s<=te?(n.x=t,n.y=e,n):(e=Math.asin(Math.cos(a)*this.sinlat0+n.y*Math.sin(a)*this.coslat0/s),t=Math.abs(this.coslat0)<te?le(this.lat0>0?this.long0+Math.atan2(n.x,-1*n.y):this.long0+Math.atan2(n.x,n.y)):le(this.long0+Math.atan2(n.x*Math.sin(a),s*this.coslat0*Math.cos(a)-n.y*this.sinlat0*Math.sin(a))),n.x=t,n.y=e,n)}if(Math.abs(this.coslat0)<=te){if(s<=te)return e=this.lat0,n.x=t=this.long0,n.y=e,n;n.x*=this.con,n.y*=this.con,e=this.con*uv(this.e,s*this.cons/(2*this.a*this.k0)),t=this.con*le(this.con*this.long0+Math.atan2(n.x,-1*n.y))}else i=2*Math.atan(s*this.cosX0/(2*this.a*this.k0*this.ms1)),t=this.long0,s<=te?o=this.X0:(o=Math.asin(Math.cos(i)*this.sinX0+n.y*Math.sin(i)*this.cosX0/s),t=le(this.long0+Math.atan2(n.x*Math.sin(i),s*this.cosX0*Math.cos(i)-n.y*this.sinX0*Math.sin(i)))),e=-1*uv(this.e,Math.tan(.5*(q+o)));return n.x=t,n.y=e,n},names:["stere","Stereographic_South_Pole","Polar Stereographic (variant B)"],ssfn_:function kq(n,t,e){return t*=e,Math.tan(.5*(q+n))*Math.pow((1-t)/(1+t),.5*e)}},zq={init:function Uq(){var n=this.lat0;this.lambda0=this.long0;var t=Math.sin(n),e=this.a,i=1/this.rf,o=2*i-Math.pow(i,2),s=this.e=Math.sqrt(o);this.R=this.k0*e*Math.sqrt(1-o)/(1-o*Math.pow(t,2)),this.alpha=Math.sqrt(1+o/(1-o)*Math.pow(Math.cos(n),4)),this.b0=Math.asin(t/this.alpha);var a=Math.log(Math.tan(Math.PI/4+this.b0/2)),l=Math.log(Math.tan(Math.PI/4+n/2)),c=Math.log((1+s*t)/(1-s*t));this.K=a-this.alpha*l+this.alpha*s/2*c},forward:function jq(n){var t=Math.log(Math.tan(Math.PI/4-n.y/2)),e=this.e/2*Math.log((1+this.e*Math.sin(n.y))/(1-this.e*Math.sin(n.y))),i=2*(Math.atan(Math.exp(-this.alpha*(t+e)+this.K))-Math.PI/4),o=this.alpha*(n.x-this.lambda0),s=Math.atan(Math.sin(o)/(Math.sin(this.b0)*Math.tan(i)+Math.cos(this.b0)*Math.cos(o))),a=Math.asin(Math.cos(this.b0)*Math.sin(i)-Math.sin(this.b0)*Math.cos(i)*Math.cos(o));return n.y=this.R/2*Math.log((1+Math.sin(a))/(1-Math.sin(a)))+this.y0,n.x=this.R*s+this.x0,n},inverse:function Gq(n){for(var r=(n.x-this.x0)/this.R,i=2*(Math.atan(Math.exp((n.y-this.y0)/this.R))-Math.PI/4),o=Math.asin(Math.cos(this.b0)*Math.sin(i)+Math.sin(this.b0)*Math.cos(i)*Math.cos(r)),s=Math.atan(Math.sin(r)/(Math.cos(this.b0)*Math.cos(r)-Math.sin(this.b0)*Math.tan(i))),a=this.lambda0+s/this.alpha,l=0,c=o,f=-1e3,d=0;Math.abs(c-f)>1e-7;){if(++d>20)return;l=1/this.alpha*(Math.log(Math.tan(Math.PI/4+o/2))-this.K)+this.e*Math.log(Math.tan(Math.PI/4+Math.asin(this.e*Math.sin(c))/2)),f=c,c=2*Math.atan(Math.exp(l))-Math.PI/2}return n.x=a,n.y=c,n},names:["somerc"]};var Rf=1e-7;const Yq={init:function Wq(){var n,t,e,r,i,o,s,a,l,c,d,f=0,g=0,v=0,m=0,y=0,w=0,x=0;this.no_off=function $q(n){var e="object"==typeof n.PROJECTION?Object.keys(n.PROJECTION)[0]:n.PROJECTION;return"no_uoff"in n||"no_off"in n||-1!==["Hotine_Oblique_Mercator","Hotine_Oblique_Mercator_Azimuth_Natural_Origin"].indexOf(e)}(this),this.no_rot="no_rot"in this;var S=!1;"alpha"in this&&(S=!0);var T=!1;if("rectified_grid_angle"in this&&(T=!0),S&&(x=this.alpha),T&&(f=this.rectified_grid_angle*xr),S||T)g=this.longc;else if(v=this.long1,y=this.lat1,m=this.long2,w=this.lat2,Math.abs(y-w)<=Rf||(n=Math.abs(y))<=Rf||Math.abs(n-q)<=Rf||Math.abs(Math.abs(this.lat0)-q)<=Rf||Math.abs(Math.abs(w)-q)<=Rf)throw new Error;var O=1-this.es;t=Math.sqrt(O),Math.abs(this.lat0)>te?(a=Math.sin(this.lat0),e=Math.cos(this.lat0),n=1-this.es*a*a,this.B=e*e,this.B=Math.sqrt(1+this.es*this.B*this.B/O),this.A=this.B*this.k0*t/n,(i=(r=this.B*t/(e*Math.sqrt(n)))*r-1)<=0?i=0:(i=Math.sqrt(i),this.lat0<0&&(i=-i)),this.E=i+=r,this.E*=Math.pow(rs(this.e,this.lat0,a),this.B)):(this.B=1/t,this.A=this.k0,this.E=r=i=1),S||T?(S?(d=Math.asin(Math.sin(x)/r),T||(f=x)):(d=f,x=Math.asin(r*Math.sin(d))),this.lam0=g-Math.asin(.5*(i-1/i)*Math.tan(d))/this.B):(o=Math.pow(rs(this.e,y,Math.sin(y)),this.B),s=Math.pow(rs(this.e,w,Math.sin(w)),this.B),i=this.E/o,l=(s-o)/(s+o),c=((c=this.E*this.E)-s*o)/(c+s*o),(n=v-m)<-Math.pi?m-=sv:n>Math.pi&&(m+=sv),this.lam0=le(.5*(v+m)-Math.atan(c*Math.tan(.5*this.B*(v-m))/l)/this.B),d=Math.atan(2*Math.sin(this.B*le(v-this.lam0))/(i-1/i)),f=x=Math.asin(r*Math.sin(d))),this.singam=Math.sin(d),this.cosgam=Math.cos(d),this.sinrot=Math.sin(f),this.cosrot=Math.cos(f),this.rB=1/this.B,this.ArB=this.A*this.rB,this.BrA=1/this.ArB,this.no_off?this.u_0=0:(this.u_0=Math.abs(this.ArB*Math.atan(Math.sqrt(r*r-1)/Math.cos(x))),this.lat0<0&&(this.u_0=-this.u_0)),i=.5*d,this.v_pole_n=this.ArB*Math.log(Math.tan(Nt-i)),this.v_pole_s=this.ArB*Math.log(Math.tan(Nt+i))},forward:function qq(n){var e,r,i,o,s,a,l,c,t={};if(n.x=n.x-this.lam0,Math.abs(Math.abs(n.y)-q)>te){if(e=.5*((s=this.E/Math.pow(rs(this.e,n.y,Math.sin(n.y)),this.B))-(a=1/s)),r=.5*(s+a),o=Math.sin(this.B*n.x),i=(e*this.singam-o*this.cosgam)/r,Math.abs(Math.abs(i)-1)<te)throw new Error;c=.5*this.ArB*Math.log((1-i)/(1+i)),a=Math.cos(this.B*n.x),l=Math.abs(a)<Rf?this.A*n.x:this.ArB*Math.atan2(e*this.cosgam+o*this.singam,a)}else c=n.y>0?this.v_pole_n:this.v_pole_s,l=this.ArB*n.y;return this.no_rot?(t.x=l,t.y=c):(t.x=c*this.cosrot+(l-=this.u_0)*this.sinrot,t.y=l*this.cosrot-c*this.sinrot),t.x=this.a*t.x+this.x0,t.y=this.a*t.y+this.y0,t},inverse:function Kq(n){var t,e,r,i,o,s,a,l={};if(n.x=1/this.a*(n.x-this.x0),n.y=1/this.a*(n.y-this.y0),this.no_rot?(e=n.y,t=n.x):(e=n.x*this.cosrot-n.y*this.sinrot,t=n.y*this.cosrot+n.x*this.sinrot+this.u_0),i=.5*((r=Math.exp(-this.BrA*e))-1/r),o=.5*(r+1/r),a=((s=Math.sin(this.BrA*t))*this.cosgam+i*this.singam)/o,Math.abs(Math.abs(a)-1)<te)l.x=0,l.y=a<0?-q:q;else{if(l.y=this.E/Math.sqrt((1+a)/(1-a)),l.y=uv(this.e,Math.pow(l.y,1/this.B)),l.y===1/0)throw new Error;l.x=-this.rB*Math.atan2(i*this.cosgam-s*this.singam,Math.cos(this.BrA*t))}return l.x+=this.lam0,l},names:["Hotine_Oblique_Mercator","Hotine Oblique Mercator","Hotine_Oblique_Mercator_Azimuth_Natural_Origin","Hotine_Oblique_Mercator_Two_Point_Natural_Origin","Hotine_Oblique_Mercator_Azimuth_Center","Oblique_Mercator","omerc"]},tK={init:function Xq(){if(this.lat2||(this.lat2=this.lat1),this.k0||(this.k0=1),this.x0=this.x0||0,this.y0=this.y0||0,!(Math.abs(this.lat1+this.lat2)<te)){var n=this.b/this.a;this.e=Math.sqrt(1-n*n);var t=Math.sin(this.lat1),e=Math.cos(this.lat1),r=Ns(this.e,t,e),i=rs(this.e,this.lat1,t),o=Math.sin(this.lat2),s=Math.cos(this.lat2),a=Ns(this.e,o,s),l=rs(this.e,this.lat2,o),c=rs(this.e,this.lat0,Math.sin(this.lat0));this.ns=Math.abs(this.lat1-this.lat2)>te?Math.log(r/a)/Math.log(i/l):t,isNaN(this.ns)&&(this.ns=t),this.f0=r/(this.ns*Math.pow(i,this.ns)),this.rh=this.a*this.f0*Math.pow(c,this.ns),this.title||(this.title="Lambert Conformal Conic")}},forward:function Qq(n){var t=n.x,e=n.y;Math.abs(2*Math.abs(e)-Math.PI)<=te&&(e=lv(e)*(q-2*te));var i,o,r=Math.abs(Math.abs(e)-q);if(r>te)i=rs(this.e,e,Math.sin(e)),o=this.a*this.f0*Math.pow(i,this.ns);else{if((r=e*this.ns)<=0)return null;o=0}var s=this.ns*le(t-this.long0);return n.x=this.k0*(o*Math.sin(s))+this.x0,n.y=this.k0*(this.rh-o*Math.cos(s))+this.y0,n},inverse:function Jq(n){var t,e,r,i,o,s=(n.x-this.x0)/this.k0,a=this.rh-(n.y-this.y0)/this.k0;this.ns>0?(t=Math.sqrt(s*s+a*a),e=1):(t=-Math.sqrt(s*s+a*a),e=-1);var l=0;if(0!==t&&(l=Math.atan2(e*s,e*a)),0!==t||this.ns>0){if(e=1/this.ns,r=Math.pow(t/(this.a*this.f0),e),-9999===(i=uv(this.e,r)))return null}else i=-q;return o=le(l/this.ns+this.long0),n.x=o,n.y=i,n},names:["Lambert Tangential Conformal Conic Projection","Lambert_Conformal_Conic","Lambert_Conformal_Conic_1SP","Lambert_Conformal_Conic_2SP","lcc","Lambert Conic Conformal (1SP)","Lambert Conic Conformal (2SP)"]},sK={init:function nK(){this.a=6377397.155,this.es=.006674372230614,this.e=Math.sqrt(this.es),this.lat0||(this.lat0=.863937979737193),this.long0||(this.long0=.4334234309119251),this.k0||(this.k0=.9999),this.s45=.785398163397448,this.s90=2*this.s45,this.fi0=this.lat0,this.e2=this.es,this.e=Math.sqrt(this.e2),this.alfa=Math.sqrt(1+this.e2*Math.pow(Math.cos(this.fi0),4)/(1-this.e2)),this.uq=1.04216856380474,this.u0=Math.asin(Math.sin(this.fi0)/this.alfa),this.g=Math.pow((1+this.e*Math.sin(this.fi0))/(1-this.e*Math.sin(this.fi0)),this.alfa*this.e/2),this.k=Math.tan(this.u0/2+this.s45)/Math.pow(Math.tan(this.fi0/2+this.s45),this.alfa)*this.g,this.k1=this.k0,this.n0=this.a*Math.sqrt(1-this.e2)/(1-this.e2*Math.pow(Math.sin(this.fi0),2)),this.s0=1.37008346281555,this.n=Math.sin(this.s0),this.ro0=this.k1*this.n0/Math.tan(this.s0),this.ad=this.s90-this.uq},forward:function rK(n){var t,e,r,i,o,s,a,c=n.y,f=le(n.x-this.long0);return t=Math.pow((1+this.e*Math.sin(c))/(1-this.e*Math.sin(c)),this.alfa*this.e/2),e=2*(Math.atan(this.k*Math.pow(Math.tan(c/2+this.s45),this.alfa)/t)-this.s45),r=-f*this.alfa,i=Math.asin(Math.cos(this.ad)*Math.sin(e)+Math.sin(this.ad)*Math.cos(e)*Math.cos(r)),o=Math.asin(Math.cos(e)*Math.sin(r)/Math.cos(i)),s=this.n*o,a=this.ro0*Math.pow(Math.tan(this.s0/2+this.s45),this.n)/Math.pow(Math.tan(i/2+this.s45),this.n),n.y=a*Math.cos(s)/1,n.x=a*Math.sin(s)/1,this.czech||(n.y*=-1,n.x*=-1),n},inverse:function iK(n){var t,e,r,i,s,a,l,c=n.x;n.x=n.y,n.y=c,this.czech||(n.y*=-1,n.x*=-1),s=Math.sqrt(n.x*n.x+n.y*n.y),i=Math.atan2(n.y,n.x)/Math.sin(this.s0),r=2*(Math.atan(Math.pow(this.ro0/s,1/this.n)*Math.tan(this.s0/2+this.s45))-this.s45),t=Math.asin(Math.cos(this.ad)*Math.sin(r)-Math.sin(this.ad)*Math.cos(r)*Math.cos(i)),e=Math.asin(Math.cos(r)*Math.sin(i)/Math.cos(t)),n.x=this.long0-e/this.alfa,a=t,l=0;var f=0;do{n.y=2*(Math.atan(Math.pow(this.k,-1/this.alfa)*Math.pow(Math.tan(t/2+this.s45),1/this.alfa)*Math.pow((1+this.e*Math.sin(a))/(1-this.e*Math.sin(a)),this.e/2))-this.s45),Math.abs(a-n.y)<1e-10&&(l=1),a=n.y,f+=1}while(0===l&&f<15);return f>=15?null:n},names:["Krovak","krovak"]};function fi(n,t,e,r,i){return n*i-t*Math.sin(2*i)+e*Math.sin(4*i)-r*Math.sin(6*i)}function dv(n){return 1-.25*n*(1+n/16*(3+1.25*n))}function pv(n){return.375*n*(1+.25*n*(1+.46875*n))}function gv(n){return.05859375*n*n*(1+.75*n)}function vv(n){return n*n*n*(35/3072)}function Of(n,t,e){var r=t*e;return n/Math.sqrt(1-r*r)}function Pf(n){return Math.abs(n)<q?n:n-lv(n)*Math.PI}function cC(n,t,e,r,i){var o,s;o=n/t;for(var a=0;a<15;a++)if(o+=s=(n-(t*o-e*Math.sin(2*o)+r*Math.sin(4*o)-i*Math.sin(6*o)))/(t-2*e*Math.cos(2*o)+4*r*Math.cos(4*o)-6*i*Math.cos(6*o)),Math.abs(s)<=1e-10)return o;return NaN}const hK={init:function aK(){this.sphere||(this.e0=dv(this.es),this.e1=pv(this.es),this.e2=gv(this.es),this.e3=vv(this.es),this.ml0=this.a*fi(this.e0,this.e1,this.e2,this.e3,this.lat0))},forward:function lK(n){var t,e,r=n.x,i=n.y;if(r=le(r-this.long0),this.sphere)t=this.a*Math.asin(Math.cos(i)*Math.sin(r)),e=this.a*(Math.atan2(Math.tan(i),Math.cos(r))-this.lat0);else{var o=Math.sin(i),s=Math.cos(i),a=Of(this.a,this.e,o),l=Math.tan(i)*Math.tan(i),c=r*Math.cos(i),f=c*c,d=this.es*s*s/(1-this.es);t=a*c*(1-f*l*(1/6-(8-l+8*d)*f/120)),e=this.a*fi(this.e0,this.e1,this.e2,this.e3,i)-this.ml0+a*o/s*f*(.5+(5-l+6*d)*f/24)}return n.x=t+this.x0,n.y=e+this.y0,n},inverse:function uK(n){n.x-=this.x0,n.y-=this.y0;var r,i,t=n.x/this.a,e=n.y/this.a;if(this.sphere){var o=e+this.lat0;r=Math.asin(Math.sin(o)*Math.cos(t)),i=Math.atan2(Math.tan(t),Math.cos(o))}else{var a=cC(this.ml0/this.a+e,this.e0,this.e1,this.e2,this.e3);if(Math.abs(Math.abs(a)-q)<=te)return n.x=this.long0,n.y=q,e<0&&(n.y*=-1),n;var l=Of(this.a,this.e,Math.sin(a)),c=l*l*l/this.a/this.a*(1-this.es),f=Math.pow(Math.tan(a),2),d=t*this.a/l,g=d*d;r=a-l*Math.tan(a)/c*d*d*(.5-(1+3*f)*d*d/24),i=d*(1-g*(f/3+(1+3*f)*f*g/15))/Math.cos(a)}return n.x=le(i+this.long0),n.y=Pf(r),n},names:["Cassini","Cassini_Soldner","cass"]};function Rl(n,t){var e;return n>1e-7?(1-n*n)*(t/(1-(e=n*t)*e)-.5/n*Math.log((1-e)/(1+e))):2*t}const IK={init:function vK(){var t,n=Math.abs(this.lat0);if(this.mode=Math.abs(n-q)<te?this.lat0<0?this.S_POLE:this.N_POLE:Math.abs(n)<te?this.EQUIT:this.OBLIQ,this.es>0)switch(this.qp=Rl(this.e,1),this.mmf=.5/(1-this.es),this.apa=function bK(n){var t,e=[];return e[0]=.3333333333333333*n,e[0]+=.17222222222222222*(t=n*n),e[1]=.06388888888888888*t,e[0]+=.10257936507936508*(t*=n),e[1]+=.0664021164021164*t,e[2]=.016415012942191543*t,e}(this.es),this.mode){case this.N_POLE:case this.S_POLE:this.dd=1;break;case this.EQUIT:this.rq=Math.sqrt(.5*this.qp),this.dd=1/this.rq,this.xmf=1,this.ymf=.5*this.qp;break;case this.OBLIQ:this.rq=Math.sqrt(.5*this.qp),t=Math.sin(this.lat0),this.sinb1=Rl(this.e,t)/this.qp,this.cosb1=Math.sqrt(1-this.sinb1*this.sinb1),this.dd=Math.cos(this.lat0)/(Math.sqrt(1-this.es*t*t)*this.rq*this.cosb1),this.ymf=(this.xmf=this.rq)/this.dd,this.xmf*=this.dd}else this.mode===this.OBLIQ&&(this.sinph0=Math.sin(this.lat0),this.cosph0=Math.cos(this.lat0))},forward:function mK(n){var t,e,r,i,o,s,a,l,c,f,d=n.x,g=n.y;if(d=le(d-this.long0),this.sphere){if(o=Math.sin(g),f=Math.cos(g),r=Math.cos(d),this.mode===this.OBLIQ||this.mode===this.EQUIT){if((e=this.mode===this.EQUIT?1+f*r:1+this.sinph0*o+this.cosph0*f*r)<=te)return null;t=(e=Math.sqrt(2/e))*f*Math.sin(d),e*=this.mode===this.EQUIT?o:this.cosph0*o-this.sinph0*f*r}else if(this.mode===this.N_POLE||this.mode===this.S_POLE){if(this.mode===this.N_POLE&&(r=-r),Math.abs(g+this.lat0)<te)return null;e=Nt-.5*g,t=(e=2*(this.mode===this.S_POLE?Math.cos(e):Math.sin(e)))*Math.sin(d),e*=r}}else{switch(a=0,l=0,c=0,r=Math.cos(d),i=Math.sin(d),o=Math.sin(g),s=Rl(this.e,o),(this.mode===this.OBLIQ||this.mode===this.EQUIT)&&(a=s/this.qp,l=Math.sqrt(1-a*a)),this.mode){case this.OBLIQ:c=1+this.sinb1*a+this.cosb1*l*r;break;case this.EQUIT:c=1+l*r;break;case this.N_POLE:c=q+g,s=this.qp-s;break;case this.S_POLE:c=g-q,s=this.qp+s}if(Math.abs(c)<te)return null;switch(this.mode){case this.OBLIQ:case this.EQUIT:c=Math.sqrt(2/c),e=this.mode===this.OBLIQ?this.ymf*c*(this.cosb1*a-this.sinb1*l*r):(c=Math.sqrt(2/(1+l*r)))*a*this.ymf,t=this.xmf*c*l*i;break;case this.N_POLE:case this.S_POLE:s>=0?(t=(c=Math.sqrt(s))*i,e=r*(this.mode===this.S_POLE?c:-c)):t=e=0}}return n.x=this.a*t+this.x0,n.y=this.a*e+this.y0,n},inverse:function _K(n){n.x-=this.x0,n.y-=this.y0;var r,i,o,s,a,l,c,t=n.x/this.a,e=n.y/this.a;if(this.sphere){var d,f=0,g=0;if((i=.5*(d=Math.sqrt(t*t+e*e)))>1)return null;switch(i=2*Math.asin(i),(this.mode===this.OBLIQ||this.mode===this.EQUIT)&&(g=Math.sin(i),f=Math.cos(i)),this.mode){case this.EQUIT:i=Math.abs(d)<=te?0:Math.asin(e*g/d),t*=g,e=f*d;break;case this.OBLIQ:i=Math.abs(d)<=te?this.lat0:Math.asin(f*this.sinph0+e*g*this.cosph0/d),t*=g*this.cosph0,e=(f-Math.sin(i)*this.sinph0)*d;break;case this.N_POLE:e=-e,i=q-i;break;case this.S_POLE:i-=q}r=0!==e||this.mode!==this.EQUIT&&this.mode!==this.OBLIQ?Math.atan2(t,e):0}else{if(c=0,this.mode===this.OBLIQ||this.mode===this.EQUIT){if(t/=this.dd,e*=this.dd,(l=Math.sqrt(t*t+e*e))<te)return n.x=this.long0,n.y=this.lat0,n;s=2*Math.asin(.5*l/this.rq),o=Math.cos(s),t*=s=Math.sin(s),this.mode===this.OBLIQ?(a=this.qp*(c=o*this.sinb1+e*s*this.cosb1/l),e=l*this.cosb1*o-e*this.sinb1*s):(a=this.qp*(c=e*s/l),e=l*o)}else if(this.mode===this.N_POLE||this.mode===this.S_POLE){if(this.mode===this.N_POLE&&(e=-e),!(a=t*t+e*e))return n.x=this.long0,n.y=this.lat0,n;c=1-a/this.qp,this.mode===this.S_POLE&&(c=-c)}r=Math.atan2(t,e),i=function DK(n,t){var e=n+n;return n+t[0]*Math.sin(e)+t[1]*Math.sin(e+e)+t[2]*Math.sin(e+e+e)}(Math.asin(c),this.apa)}return n.x=le(this.long0+r),n.y=i,n},names:["Lambert Azimuthal Equal Area","Lambert_Azimuthal_Equal_Area","laea"],S_POLE:1,N_POLE:2,EQUIT:3,OBLIQ:4};function Ol(n){return Math.abs(n)>1&&(n=n>1?1:-1),Math.asin(n)}const kK={init:function TK(){Math.abs(this.lat1+this.lat2)<te||(this.temp=this.b/this.a,this.es=1-Math.pow(this.temp,2),this.e3=Math.sqrt(this.es),this.sin_po=Math.sin(this.lat1),this.cos_po=Math.cos(this.lat1),this.t1=this.sin_po,this.con=this.sin_po,this.ms1=Ns(this.e3,this.sin_po,this.cos_po),this.qs1=Rl(this.e3,this.sin_po),this.sin_po=Math.sin(this.lat2),this.cos_po=Math.cos(this.lat2),this.t2=this.sin_po,this.ms2=Ns(this.e3,this.sin_po,this.cos_po),this.qs2=Rl(this.e3,this.sin_po),this.sin_po=Math.sin(this.lat0),this.cos_po=Math.cos(this.lat0),this.t3=this.sin_po,this.qs0=Rl(this.e3,this.sin_po),this.ns0=Math.abs(this.lat1-this.lat2)>te?(this.ms1*this.ms1-this.ms2*this.ms2)/(this.qs2-this.qs1):this.con,this.c=this.ms1*this.ms1+this.ns0*this.qs1,this.rh=this.a*Math.sqrt(this.c-this.ns0*this.qs0)/this.ns0)},forward:function AK(n){var t=n.x,e=n.y;this.sin_phi=Math.sin(e),this.cos_phi=Math.cos(e);var r=Rl(this.e3,this.sin_phi),i=this.a*Math.sqrt(this.c-this.ns0*r)/this.ns0,o=this.ns0*le(t-this.long0),s=i*Math.sin(o)+this.x0,a=this.rh-i*Math.cos(o)+this.y0;return n.x=s,n.y=a,n},inverse:function RK(n){var t,r,i,o,s;return n.x-=this.x0,n.y=this.rh-n.y+this.y0,this.ns0>=0?(t=Math.sqrt(n.x*n.x+n.y*n.y),r=1):(t=-Math.sqrt(n.x*n.x+n.y*n.y),r=-1),i=0,0!==t&&(i=Math.atan2(r*n.x,r*n.y)),r=t*this.ns0/this.a,s=this.sphere?Math.asin((this.c-r*r)/(2*this.ns0)):this.phi1z(this.e3,(this.c-r*r)/this.ns0),o=le(i/this.ns0+this.long0),n.x=o,n.y=s,n},names:["Albers_Conic_Equal_Area","Albers","aea"],phi1z:function OK(n,t){var e,i,o,s,a=Ol(.5*t);if(n<te)return a;for(var l=n*n,c=1;c<=25;c++)if(a+=s=.5*(o=1-(i=n*(e=Math.sin(a)))*i)*o/Math.cos(a)*(t/(1-l)-e/o+.5/n*Math.log((1-i)/(1+i))),Math.abs(s)<=1e-7)return a;return null}},BK={init:function LK(){this.sin_p14=Math.sin(this.lat0),this.cos_p14=Math.cos(this.lat0),this.infinity_dist=1e3*this.a,this.rc=1},forward:function NK(n){var t,e,r,i,s,a,l,f=n.y;return r=le(n.x-this.long0),t=Math.sin(f),e=Math.cos(f),i=Math.cos(r),(s=this.sin_p14*t+this.cos_p14*e*i)>0||Math.abs(s)<=te?(a=this.x0+1*this.a*e*Math.sin(r)/s,l=this.y0+1*this.a*(this.cos_p14*t-this.sin_p14*e*i)/s):(a=this.x0+this.infinity_dist*e*Math.sin(r),l=this.y0+this.infinity_dist*(this.cos_p14*t-this.sin_p14*e*i)),n.x=a,n.y=l,n},inverse:function FK(n){var t,e,r,i,o,s;return n.x=(n.x-this.x0)/this.a,n.y=(n.y-this.y0)/this.a,n.x/=this.k0,n.y/=this.k0,(t=Math.sqrt(n.x*n.x+n.y*n.y))?(i=Math.atan2(t,this.rc),e=Math.sin(i),s=Ol((r=Math.cos(i))*this.sin_p14+n.y*e*this.cos_p14/t),o=Math.atan2(n.x*e,t*this.cos_p14*r-n.y*this.sin_p14*e),o=le(this.long0+o)):(s=this.phic0,o=0),n.x=o,n.y=s,n},names:["gnom"]},$K={init:function jK(){this.sphere||(this.k0=Ns(this.e,Math.sin(this.lat_ts),Math.cos(this.lat_ts)))},forward:function GK(n){var r,i,e=n.y,o=le(n.x-this.long0);if(this.sphere)r=this.x0+this.a*o*Math.cos(this.lat_ts),i=this.y0+this.a*Math.sin(e)/Math.cos(this.lat_ts);else{var s=Rl(this.e,Math.sin(e));r=this.x0+this.a*this.k0*o,i=this.y0+this.a*s*.5/this.k0}return n.x=r,n.y=i,n},inverse:function HK(n){var t,e;return n.x-=this.x0,n.y-=this.y0,this.sphere?(t=le(this.long0+n.x/this.a/Math.cos(this.lat_ts)),e=Math.asin(n.y/this.a*Math.cos(this.lat_ts))):(e=function UK(n,t){var e=1-(1-n*n)/(2*n)*Math.log((1-n)/(1+n));if(Math.abs(Math.abs(t)-e)<1e-6)return t<0?-1*q:q;for(var i,o,s,a,r=Math.asin(.5*t),l=0;l<30;l++)if(o=Math.sin(r),s=Math.cos(r),a=n*o,r+=i=Math.pow(1-a*a,2)/(2*s)*(t/(1-n*n)-o/(1-a*a)+.5/n*Math.log((1-a)/(1+a))),Math.abs(i)<=1e-10)return r;return NaN}(this.e,2*n.y*this.k0/this.a),t=le(this.long0+n.x/(this.a*this.k0))),n.x=t,n.y=e,n},names:["cea"]},YK={init:function WK(){this.x0=this.x0||0,this.y0=this.y0||0,this.lat0=this.lat0||0,this.long0=this.long0||0,this.lat_ts=this.lat_ts||0,this.title=this.title||"Equidistant Cylindrical (Plate Carre)",this.rc=Math.cos(this.lat_ts)},forward:function qK(n){var e=n.y,r=le(n.x-this.long0),i=Pf(e-this.lat0);return n.x=this.x0+this.a*r*this.rc,n.y=this.y0+this.a*i,n},inverse:function KK(n){var e=n.y;return n.x=le(this.long0+(n.x-this.x0)/(this.a*this.rc)),n.y=Pf(this.lat0+(e-this.y0)/this.a),n},names:["Equirectangular","Equidistant_Cylindrical","eqc"]},tZ={init:function XK(){this.temp=this.b/this.a,this.es=1-Math.pow(this.temp,2),this.e=Math.sqrt(this.es),this.e0=dv(this.es),this.e1=pv(this.es),this.e2=gv(this.es),this.e3=vv(this.es),this.ml0=this.a*fi(this.e0,this.e1,this.e2,this.e3,this.lat0)},forward:function QK(n){var r,i,o,e=n.y,s=le(n.x-this.long0);if(o=s*Math.sin(e),this.sphere)Math.abs(e)<=te?(r=this.a*s,i=-1*this.a*this.lat0):(r=this.a*Math.sin(o)/Math.tan(e),i=this.a*(Pf(e-this.lat0)+(1-Math.cos(o))/Math.tan(e)));else if(Math.abs(e)<=te)r=this.a*s,i=-1*this.ml0;else{var a=Of(this.a,this.e,Math.sin(e))/Math.tan(e);r=a*Math.sin(o),i=this.a*fi(this.e0,this.e1,this.e2,this.e3,e)-this.ml0+a*(1-Math.cos(o))}return n.x=r+this.x0,n.y=i+this.y0,n},inverse:function JK(n){var t,e,r,i,o,s,a,l,c;if(r=n.x-this.x0,i=n.y-this.y0,this.sphere)if(Math.abs(i+this.a*this.lat0)<=te)t=le(r/this.a+this.long0),e=0;else{var f;for(a=r*r/this.a/this.a+(s=this.lat0+i/this.a)*s,l=s,o=20;o;--o)if(l+=c=-1*(s*(l*(f=Math.tan(l))+1)-l-.5*(l*l+a)*f)/((l-s)/f-1),Math.abs(c)<=te){e=l;break}t=le(this.long0+Math.asin(r*Math.tan(l)/this.a)/Math.sin(e))}else if(Math.abs(i+this.ml0)<=te)e=0,t=le(this.long0+r/this.a);else{var d,g,v,m,y;for(a=r*r/this.a/this.a+(s=(this.ml0+i)/this.a)*s,l=s,o=20;o;--o)if(y=this.e*Math.sin(l),d=Math.sqrt(1-y*y)*Math.tan(l),g=this.a*fi(this.e0,this.e1,this.e2,this.e3,l),v=this.e0-2*this.e1*Math.cos(2*l)+4*this.e2*Math.cos(4*l)-6*this.e3*Math.cos(6*l),l-=c=(s*(d*(m=g/this.a)+1)-m-.5*d*(m*m+a))/(this.es*Math.sin(2*l)*(m*m+a-2*s*m)/(4*d)+(s-m)*(d*v-2/Math.sin(2*l))-v),Math.abs(c)<=te){e=l;break}d=Math.sqrt(1-this.es*Math.pow(Math.sin(e),2))*Math.tan(e),t=le(this.long0+Math.asin(r*d/this.a)/Math.sin(e))}return n.x=t,n.y=e,n},names:["Polyconic","poly"]},sZ={init:function nZ(){this.A=[],this.A[1]=.6399175073,this.A[2]=-.1358797613,this.A[3]=.063294409,this.A[4]=-.02526853,this.A[5]=.0117879,this.A[6]=-.0055161,this.A[7]=.0026906,this.A[8]=-.001333,this.A[9]=67e-5,this.A[10]=-34e-5,this.B_re=[],this.B_im=[],this.B_re[1]=.7557853228,this.B_im[1]=0,this.B_re[2]=.249204646,this.B_im[2]=.003371507,this.B_re[3]=-.001541739,this.B_im[3]=.04105856,this.B_re[4]=-.10162907,this.B_im[4]=.01727609,this.B_re[5]=-.26623489,this.B_im[5]=-.36249218,this.B_re[6]=-.6870983,this.B_im[6]=-1.1651967,this.C_re=[],this.C_im=[],this.C_re[1]=1.3231270439,this.C_im[1]=0,this.C_re[2]=-.577245789,this.C_im[2]=-.007809598,this.C_re[3]=.508307513,this.C_im[3]=-.112208952,this.C_re[4]=-.15094762,this.C_im[4]=.18200602,this.C_re[5]=1.01418179,this.C_im[5]=1.64497696,this.C_re[6]=1.9660549,this.C_im[6]=2.5127645,this.D=[],this.D[1]=1.5627014243,this.D[2]=.5185406398,this.D[3]=-.03333098,this.D[4]=-.1052906,this.D[5]=-.0368594,this.D[6]=.007317,this.D[7]=.0122,this.D[8]=.00394,this.D[9]=-.0013},forward:function rZ(n){var t,s=(n.y-this.lat0)/ov*1e-5,a=n.x-this.long0,l=1,c=0;for(t=1;t<=10;t++)c+=this.A[t]*(l*=s);var y,f=c,d=a,g=1,v=0,w=0,x=0;for(t=1;t<=6;t++)y=v*f+g*d,w=w+this.B_re[t]*(g=g*f-v*d)-this.B_im[t]*(v=y),x=x+this.B_im[t]*g+this.B_re[t]*v;return n.x=x*this.a+this.x0,n.y=w*this.a+this.y0,n},inverse:function iZ(n){var t,d,s=(n.y-this.y0)/this.a,a=(n.x-this.x0)/this.a,l=1,c=0,g=0,v=0;for(t=1;t<=6;t++)d=c*s+l*a,g=g+this.C_re[t]*(l=l*s-c*a)-this.C_im[t]*(c=d),v=v+this.C_im[t]*l+this.C_re[t]*c;for(var m=0;m<this.iterations;m++){var E,y=g,w=v,S=s,T=a;for(t=2;t<=6;t++)E=w*g+y*v,S+=(t-1)*(this.B_re[t]*(y=y*g-w*v)-this.B_im[t]*(w=E)),T+=(t-1)*(this.B_im[t]*y+this.B_re[t]*w);y=1,w=0;var O=this.B_re[1],N=this.B_im[1];for(t=2;t<=6;t++)E=w*g+y*v,O+=t*(this.B_re[t]*(y=y*g-w*v)-this.B_im[t]*(w=E)),N+=t*(this.B_im[t]*y+this.B_re[t]*w);var j=O*O+N*N;g=(S*O+T*N)/j,v=(T*O-S*N)/j}var H=g,X=v,pe=1,me=0;for(t=1;t<=9;t++)me+=this.D[t]*(pe*=H);var ye=this.lat0+me*ov*1e5;return n.x=this.long0+X,n.y=ye,n},names:["New_Zealand_Map_Grid","nzmg"]},hZ={init:function aZ(){},forward:function lZ(n){var e=n.y,r=le(n.x-this.long0),i=this.x0+this.a*r,o=this.y0+this.a*Math.log(Math.tan(Math.PI/4+e/2.5))*1.25;return n.x=i,n.y=o,n},inverse:function uZ(n){n.x-=this.x0,n.y-=this.y0;var t=le(this.long0+n.x/this.a),e=2.5*(Math.atan(Math.exp(.8*n.y/this.a))-Math.PI/4);return n.x=t,n.y=e,n},names:["Miller_Cylindrical","mill"]},mZ={init:function dZ(){this.sphere?(this.n=1,this.m=0,this.es=0,this.C_y=Math.sqrt((this.m+1)/this.n),this.C_x=this.C_y/(this.m+1)):this.en=IN(this.es)},forward:function pZ(n){var t,e,r=n.x,i=n.y;if(r=le(r-this.long0),this.sphere){if(this.m)for(var o=this.n*Math.sin(i),s=20;s;--s){var a=(this.m*i+Math.sin(i)-o)/(this.m+Math.cos(i));if(i-=a,Math.abs(a)<te)break}else i=1!==this.n?Math.asin(this.n*Math.sin(i)):i;t=this.a*this.C_x*r*(this.m+Math.cos(i)),e=this.a*this.C_y*i}else{var l=Math.sin(i),c=Math.cos(i);e=this.a*aC(i,l,c,this.en),t=this.a*r*c/Math.sqrt(1-this.es*l*l)}return n.x=t,n.y=e,n},inverse:function gZ(n){var t,r,i;return n.x-=this.x0,r=n.x/this.a,n.y-=this.y0,t=n.y/this.a,this.sphere?(t/=this.C_y,r/=this.C_x*(this.m+Math.cos(t)),this.m?t=Ol((this.m*t+Math.sin(t))/this.n):1!==this.n&&(t=Ol(Math.sin(t)/this.n)),r=le(r+this.long0),t=Pf(t)):(t=TN(n.y/this.a,this.es,this.en),(i=Math.abs(t))<q?(i=Math.sin(t),r=le(this.long0+n.x*Math.sqrt(1-this.es*i*i)/(this.a*Math.cos(t)))):i-te<q&&(r=this.long0)),n.x=r,n.y=t,n},names:["Sinusoidal","sinu"]},EZ={init:function _Z(){},forward:function yZ(n){for(var e=n.y,r=le(n.x-this.long0),i=e,o=Math.PI*Math.sin(e);;){var s=-(i+Math.sin(i)-o)/(1+Math.cos(i));if(i+=s,Math.abs(s)<te)break}i/=2,Math.PI/2-Math.abs(e)<te&&(r=0);var a=.900316316158*this.a*r*Math.cos(i)+this.x0,l=1.4142135623731*this.a*Math.sin(i)+this.y0;return n.x=a,n.y=l,n},inverse:function CZ(n){var t,e;n.x-=this.x0,n.y-=this.y0,e=n.y/(1.4142135623731*this.a),Math.abs(e)>.999999999999&&(e=.999999999999),t=Math.asin(e);var r=le(this.long0+n.x/(.900316316158*this.a*Math.cos(t)));r<-Math.PI&&(r=-Math.PI),r>Math.PI&&(r=Math.PI),e=(2*t+Math.sin(2*t))/Math.PI,Math.abs(e)>1&&(e=1);var i=Math.asin(e);return n.x=r,n.y=i,n},names:["Mollweide","moll"]},SZ={init:function MZ(){Math.abs(this.lat1+this.lat2)<te||(this.lat2=this.lat2||this.lat1,this.temp=this.b/this.a,this.es=1-Math.pow(this.temp,2),this.e=Math.sqrt(this.es),this.e0=dv(this.es),this.e1=pv(this.es),this.e2=gv(this.es),this.e3=vv(this.es),this.sinphi=Math.sin(this.lat1),this.cosphi=Math.cos(this.lat1),this.ms1=Ns(this.e,this.sinphi,this.cosphi),this.ml1=fi(this.e0,this.e1,this.e2,this.e3,this.lat1),Math.abs(this.lat1-this.lat2)<te?this.ns=this.sinphi:(this.sinphi=Math.sin(this.lat2),this.cosphi=Math.cos(this.lat2),this.ms2=Ns(this.e,this.sinphi,this.cosphi),this.ml2=fi(this.e0,this.e1,this.e2,this.e3,this.lat2),this.ns=(this.ms1-this.ms2)/(this.ml2-this.ml1)),this.g=this.ml1+this.ms1/this.ns,this.ml0=fi(this.e0,this.e1,this.e2,this.e3,this.lat0),this.rh=this.a*(this.g-this.ml0))},forward:function xZ(n){var r,t=n.x,e=n.y;if(this.sphere)r=this.a*(this.g-e);else{var i=fi(this.e0,this.e1,this.e2,this.e3,e);r=this.a*(this.g-i)}var o=this.ns*le(t-this.long0),s=this.x0+r*Math.sin(o),a=this.y0+this.rh-r*Math.cos(o);return n.x=s,n.y=a,n},inverse:function bZ(n){var t,e,r,i;n.x-=this.x0,n.y=this.rh-n.y+this.y0,this.ns>=0?(e=Math.sqrt(n.x*n.x+n.y*n.y),t=1):(e=-Math.sqrt(n.x*n.x+n.y*n.y),t=-1);var o=0;return 0!==e&&(o=Math.atan2(t*n.x,t*n.y)),this.sphere?(i=le(this.long0+o/this.ns),r=Pf(this.g-e/this.a),n.x=i,n.y=r,n):(r=cC(this.g-e/this.a,this.e0,this.e1,this.e2,this.e3),i=le(this.long0+o/this.ns),n.x=i,n.y=r,n)},names:["Equidistant_Conic","eqdc"]},OZ={init:function IZ(){this.R=this.a},forward:function TZ(n){var i,o,e=n.y,r=le(n.x-this.long0);Math.abs(e)<=te&&(i=this.x0+this.R*r,o=this.y0);var s=Ol(2*Math.abs(e/Math.PI));(Math.abs(r)<=te||Math.abs(Math.abs(e)-q)<=te)&&(i=this.x0,o=e>=0?this.y0+Math.PI*this.R*Math.tan(.5*s):this.y0+Math.PI*this.R*-Math.tan(.5*s));var a=.5*Math.abs(Math.PI/r-r/Math.PI),l=a*a,c=Math.sin(s),f=Math.cos(s),d=f/(c+f-1),v=d*(2/c-1),m=v*v,y=Math.PI*this.R*(a*(d-m)+Math.sqrt(l*(d-m)*(d-m)-(m+l)*(d*d-m)))/(m+l);r<0&&(y=-y),i=this.x0+y;var w=l+d;return y=Math.PI*this.R*(v*w-a*Math.sqrt((m+l)*(l+1)-w*w))/(m+l),o=e>=0?this.y0+y:this.y0-y,n.x=i,n.y=o,n},inverse:function AZ(n){var t,e,r,i,o,s,a,l,c,f,d,g;return n.x-=this.x0,n.y-=this.y0,d=Math.PI*this.R,o=(r=n.x/d)*r+(i=n.y/d)*i,d=3*(i*i/(l=-2*(s=-Math.abs(i)*(1+o))+1+2*i*i+o*o)+(2*(a=s-2*i*i+r*r)*a*a/l/l/l-9*s*a/l/l)/27)/(c=(s-a*a/3/l)/l)/(f=2*Math.sqrt(-c/3)),Math.abs(d)>1&&(d=d>=0?1:-1),g=Math.acos(d)/3,e=n.y>=0?(-f*Math.cos(g+Math.PI/3)-a/3/l)*Math.PI:-(-f*Math.cos(g+Math.PI/3)-a/3/l)*Math.PI,t=Math.abs(r)<te?this.long0:le(this.long0+Math.PI*(o-1+Math.sqrt(1+2*(r*r-i*i)+o*o))/2/r),n.x=t,n.y=e,n},names:["Van_der_Grinten_I","VanDerGrinten","vandg"]},FZ={init:function PZ(){this.sin_p12=Math.sin(this.lat0),this.cos_p12=Math.cos(this.lat0)},forward:function kZ(n){var s,a,l,c,f,d,g,v,m,y,w,x,E,S,T,O,N,j,H,X,pe,me,t=n.x,e=n.y,r=Math.sin(n.y),i=Math.cos(n.y),o=le(t-this.long0);return this.sphere?Math.abs(this.sin_p12-1)<=te?(n.x=this.x0+this.a*(q-e)*Math.sin(o),n.y=this.y0-this.a*(q-e)*Math.cos(o),n):Math.abs(this.sin_p12+1)<=te?(n.x=this.x0+this.a*(q+e)*Math.sin(o),n.y=this.y0+this.a*(q+e)*Math.cos(o),n):(j=this.sin_p12*r+this.cos_p12*i*Math.cos(o),N=(O=Math.acos(j))?O/Math.sin(O):1,n.x=this.x0+this.a*N*i*Math.sin(o),n.y=this.y0+this.a*N*(this.cos_p12*r-this.sin_p12*i*Math.cos(o)),n):(s=dv(this.es),a=pv(this.es),l=gv(this.es),c=vv(this.es),Math.abs(this.sin_p12-1)<=te?(f=this.a*fi(s,a,l,c,q),d=this.a*fi(s,a,l,c,e),n.x=this.x0+(f-d)*Math.sin(o),n.y=this.y0-(f-d)*Math.cos(o),n):Math.abs(this.sin_p12+1)<=te?(f=this.a*fi(s,a,l,c,q),d=this.a*fi(s,a,l,c,e),n.x=this.x0+(f+d)*Math.sin(o),n.y=this.y0+(f+d)*Math.cos(o),n):(g=r/i,v=Of(this.a,this.e,this.sin_p12),m=Of(this.a,this.e,r),y=Math.atan((1-this.es)*g+this.es*v*this.sin_p12/(m*i)),H=0===(w=Math.atan2(Math.sin(o),this.cos_p12*Math.tan(y)-this.sin_p12*Math.cos(o)))?Math.asin(this.cos_p12*Math.sin(y)-this.sin_p12*Math.cos(y)):Math.abs(Math.abs(w)-Math.PI)<=te?-Math.asin(this.cos_p12*Math.sin(y)-this.sin_p12*Math.cos(y)):Math.asin(Math.sin(o)*Math.cos(y)/Math.sin(w)),x=this.e*this.sin_p12/Math.sqrt(1-this.es),E=this.e*this.cos_p12*Math.cos(w)/Math.sqrt(1-this.es),n.x=this.x0+(O=v*H*(1-(X=H*H)*(T=E*E)*(1-T)/6+(pe=X*H)/8*(S=x*E)*(1-2*T)+(me=pe*H)/120*(T*(4-7*T)-3*x*x*(1-7*T))-me*H/48*S))*Math.sin(w),n.y=this.y0+O*Math.cos(w),n))},inverse:function LZ(n){var t,e,r,i,o,s,a,l,c,f,d,g,m,y,w,x,E,S,T,O,N,j,H;return n.x-=this.x0,n.y-=this.y0,this.sphere?(t=Math.sqrt(n.x*n.x+n.y*n.y))>2*q*this.a?void 0:(e=t/this.a,r=Math.sin(e),i=Math.cos(e),o=this.long0,Math.abs(t)<=te?s=this.lat0:(s=Ol(i*this.sin_p12+n.y*r*this.cos_p12/t),a=Math.abs(this.lat0)-q,o=Math.abs(a)<=te?le(this.lat0>=0?this.long0+Math.atan2(n.x,-n.y):this.long0-Math.atan2(-n.x,n.y)):le(this.long0+Math.atan2(n.x*r,t*this.cos_p12*i-n.y*this.sin_p12*r))),n.x=o,n.y=s,n):(l=dv(this.es),c=pv(this.es),f=gv(this.es),d=vv(this.es),Math.abs(this.sin_p12-1)<=te?(s=cC(((g=this.a*fi(l,c,f,d,q))-(t=Math.sqrt(n.x*n.x+n.y*n.y)))/this.a,l,c,f,d),o=le(this.long0+Math.atan2(n.x,-1*n.y)),n.x=o,n.y=s,n):Math.abs(this.sin_p12+1)<=te?(g=this.a*fi(l,c,f,d,q),s=cC(((t=Math.sqrt(n.x*n.x+n.y*n.y))-g)/this.a,l,c,f,d),o=le(this.long0+Math.atan2(n.x,n.y)),n.x=o,n.y=s,n):(t=Math.sqrt(n.x*n.x+n.y*n.y),w=Math.atan2(n.x,n.y),m=Of(this.a,this.e,this.sin_p12),x=Math.cos(w),T=3*this.es*(1-(S=-(E=this.e*this.cos_p12*x)*E/(1-this.es)))*this.sin_p12*this.cos_p12*x/(1-this.es),j=1-S*(N=(O=t/m)-S*(1+S)*Math.pow(O,3)/6-T*(1+3*S)*Math.pow(O,4)/24)*N/2-O*N*N*N/6,y=Math.asin(this.sin_p12*Math.cos(N)+this.cos_p12*Math.sin(N)*x),o=le(this.long0+Math.asin(Math.sin(w)*Math.sin(N)/Math.cos(y))),H=Math.sin(y),s=Math.atan2((H-this.es*j*this.sin_p12)*Math.tan(y),H*(1-this.es)),n.x=o,n.y=s,n))},names:["Azimuthal_Equidistant","aeqd"]},GZ={init:function VZ(){this.sin_p14=Math.sin(this.lat0),this.cos_p14=Math.cos(this.lat0)},forward:function BZ(n){var t,e,r,i,s,a,l,f=n.y;return r=le(n.x-this.long0),t=Math.sin(f),e=Math.cos(f),i=Math.cos(r),((s=this.sin_p14*t+this.cos_p14*e*i)>0||Math.abs(s)<=te)&&(a=1*this.a*e*Math.sin(r),l=this.y0+1*this.a*(this.cos_p14*t-this.sin_p14*e*i)),n.x=a,n.y=l,n},inverse:function UZ(n){var t,e,r,i,o,s,a;return n.x-=this.x0,n.y-=this.y0,e=Ol((t=Math.sqrt(n.x*n.x+n.y*n.y))/this.a),r=Math.sin(e),i=Math.cos(e),s=this.long0,Math.abs(t)<=te?(a=this.lat0,n.x=s,n.y=a,n):(a=Ol(i*this.sin_p14+n.y*r*this.cos_p14/t),o=Math.abs(this.lat0)-q,Math.abs(o)<=te?(s=le(this.lat0>=0?this.long0+Math.atan2(n.x,-n.y):this.long0-Math.atan2(-n.x,n.y)),n.x=s,n.y=a,n):(s=le(this.long0+Math.atan2(n.x*r,t*this.cos_p14*i-n.y*this.sin_p14*r)),n.x=s,n.y=a,n))},names:["ortho"]};function hC(n,t,e,r){var i;return n<te?(r.value=1,i=0):(i=Math.atan2(t,e),Math.abs(i)<=Nt?r.value=1:i>Nt&&i<=q+Nt?(r.value=2,i-=q):i>q+Nt||i<=-(q+Nt)?(r.value=3,i=i>=0?i-jn:i+jn):(r.value=4,i+=q)),i}function kf(n,t){var e=n+t;return e<-jn?e+=sv:e>+jn&&(e-=sv),e}const qZ={init:function HZ(){this.x0=this.x0||0,this.y0=this.y0||0,this.lat0=this.lat0||0,this.long0=this.long0||0,this.lat_ts=this.lat_ts||0,this.title=this.title||"Quadrilateralized Spherical Cube",this.face=this.lat0>=q-Nt/2?5:this.lat0<=-(q-Nt/2)?6:Math.abs(this.long0)<=Nt?1:Math.abs(this.long0)<=q+Nt?this.long0>0?2:4:3,0!==this.es&&(this.one_minus_f=1-(this.a-this.b)/this.a,this.one_minus_f_squared=this.one_minus_f*this.one_minus_f)},forward:function zZ(n){var e,r,i,o,s,a,t={x:0,y:0},l={value:0};if(n.x-=this.long0,e=0!==this.es?Math.atan(this.one_minus_f_squared*Math.tan(n.y)):n.y,r=n.x,5===this.face)o=q-e,r>=Nt&&r<=q+Nt?(l.value=1,i=r-q):r>q+Nt||r<=-(q+Nt)?(l.value=2,i=r>0?r-jn:r+jn):r>-(q+Nt)&&r<=-Nt?(l.value=3,i=r+q):(l.value=4,i=r);else if(6===this.face)o=q+e,r>=Nt&&r<=q+Nt?(l.value=1,i=-r+q):r<Nt&&r>=-Nt?(l.value=2,i=-r):r<-Nt&&r>=-(q+Nt)?(l.value=3,i=-r-q):(l.value=4,i=r>0?-r+jn:-r-jn);else{var c,f,d,g,v,m;2===this.face?r=kf(r,+q):3===this.face?r=kf(r,+jn):4===this.face&&(r=kf(r,-q)),g=Math.sin(e),v=Math.cos(e),m=Math.sin(r),c=v*Math.cos(r),f=v*m,d=g,1===this.face?i=hC(o=Math.acos(c),d,f,l):2===this.face?i=hC(o=Math.acos(f),d,-c,l):3===this.face?i=hC(o=Math.acos(-c),d,-f,l):4===this.face?i=hC(o=Math.acos(-f),d,c,l):(o=i=0,l.value=1)}return a=Math.atan(12/jn*(i+Math.acos(Math.sin(i)*Math.cos(Nt))-q)),s=Math.sqrt((1-Math.cos(o))/(Math.cos(a)*Math.cos(a))/(1-Math.cos(Math.atan(1/Math.cos(i))))),2===l.value?a+=q:3===l.value?a+=jn:4===l.value&&(a+=1.5*jn),t.x=s*Math.cos(a),t.y=s*Math.sin(a),t.x=t.x*this.a+this.x0,t.y=t.y*this.a+this.y0,n.x=t.x,n.y=t.y,n},inverse:function $Z(n){var e,r,i,o,s,a,l,c,f,y,w,x,t={lam:0,phi:0},d={value:0};if(n.x=(n.x-this.x0)/this.a,n.y=(n.y-this.y0)/this.a,r=Math.atan(Math.sqrt(n.x*n.x+n.y*n.y)),e=Math.atan2(n.y,n.x),n.x>=0&&n.x>=Math.abs(n.y)?d.value=1:n.y>=0&&n.y>=Math.abs(n.x)?(d.value=2,e-=q):n.x<0&&-n.x>=Math.abs(n.y)?(d.value=3,e=e<0?e+jn:e-jn):(d.value=4,e+=q),f=jn/12*Math.tan(e),s=Math.sin(f)/(Math.cos(f)-1/Math.sqrt(2)),a=Math.atan(s),(l=1-(i=Math.cos(e))*i*(o=Math.tan(r))*o*(1-Math.cos(Math.atan(1/Math.cos(a)))))<-1?l=-1:l>1&&(l=1),5===this.face)c=Math.acos(l),t.phi=q-c,t.lam=1===d.value?a+q:2===d.value?a<0?a+jn:a-jn:3===d.value?a-q:a;else if(6===this.face)c=Math.acos(l),t.phi=c-q,t.lam=1===d.value?-a+q:2===d.value?-a:3===d.value?-a-q:a<0?-a-jn:-a+jn;else{var g,v,m;f=(g=l)*g,v=(f+=(m=f>=1?0:Math.sqrt(1-f)*Math.sin(a))*m)>=1?0:Math.sqrt(1-f),2===d.value?(f=v,v=-m,m=f):3===d.value?(v=-v,m=-m):4===d.value&&(f=v,v=m,m=-f),2===this.face?(f=g,g=-v,v=f):3===this.face?(g=-g,v=-v):4===this.face&&(f=g,g=v,v=-f),t.phi=Math.acos(-m)-q,t.lam=Math.atan2(v,g),2===this.face?t.lam=kf(t.lam,-q):3===this.face?t.lam=kf(t.lam,-jn):4===this.face&&(t.lam=kf(t.lam,+q))}return 0!==this.es&&(y=t.phi<0?1:0,w=Math.tan(t.phi),x=this.b/Math.sqrt(w*w+this.one_minus_f_squared),t.phi=Math.atan(Math.sqrt(this.a*this.a-x*x)/(this.one_minus_f*x)),y&&(t.phi=-t.phi)),t.lam+=this.long0,n.x=t.lam,n.y=t.phi,n},names:["Quadrilateralized Spherical Cube","Quadrilateralized_Spherical_Cube","qsc"]};var eD=[[1,22199e-21,-715515e-10,31103e-10],[.9986,-482243e-9,-24897e-9,-13309e-10],[.9954,-83103e-8,-448605e-10,-9.86701e-7],[.99,-.00135364,-59661e-9,36777e-10],[.9822,-.00167442,-449547e-11,-572411e-11],[.973,-.00214868,-903571e-10,1.8736e-8],[.96,-.00305085,-900761e-10,164917e-11],[.9427,-.00382792,-653386e-10,-26154e-10],[.9216,-.00467746,-10457e-8,481243e-11],[.8962,-.00536223,-323831e-10,-543432e-11],[.8679,-.00609363,-113898e-9,332484e-11],[.835,-.00698325,-640253e-10,9.34959e-7],[.7986,-.00755338,-500009e-10,9.35324e-7],[.7597,-.00798324,-35971e-9,-227626e-11],[.7186,-.00851367,-701149e-10,-86303e-10],[.6732,-.00986209,-199569e-9,191974e-10],[.6213,-.010418,883923e-10,624051e-11],[.5722,-.00906601,182e-6,624051e-11],[.5322,-.00677797,275608e-9,624051e-11]],mv=[[-520417e-23,.0124,121431e-23,-845284e-16],[.062,.0124,-1.26793e-9,4.22642e-10],[.124,.0124,5.07171e-9,-1.60604e-9],[.186,.0123999,-1.90189e-8,6.00152e-9],[.248,.0124002,7.10039e-8,-2.24e-8],[.31,.0123992,-2.64997e-7,8.35986e-8],[.372,.0124029,9.88983e-7,-3.11994e-7],[.434,.0123893,-369093e-11,-4.35621e-7],[.4958,.0123198,-102252e-10,-3.45523e-7],[.5571,.0121916,-154081e-10,-5.82288e-7],[.6176,.0119938,-241424e-10,-5.25327e-7],[.6769,.011713,-320223e-10,-5.16405e-7],[.7346,.0113541,-397684e-10,-6.09052e-7],[.7903,.0109107,-489042e-10,-104739e-11],[.8435,.0103431,-64615e-9,-1.40374e-9],[.8936,.00969686,-64636e-9,-8547e-9],[.9394,.00840947,-192841e-9,-42106e-10],[.9761,.00616527,-256e-6,-42106e-10],[1,.00328947,-319159e-9,-42106e-10]],fC=function(n,t){return n[0]+t*(n[1]+t*(n[2]+t*n[3]))};const tY={init:function XZ(){this.x0=this.x0||0,this.y0=this.y0||0,this.long0=this.long0||0,this.es=0,this.title=this.title||"Robinson"},forward:function QZ(n){var t=le(n.x-this.long0),e=Math.abs(n.y),r=Math.floor(11.459155902616464*e);r<0?r=0:r>=18&&(r=17);var i={x:fC(eD[r],e=ks*(e-.08726646259971647*r))*t,y:fC(mv[r],e)};return n.y<0&&(i.y=-i.y),i.x=i.x*this.a*.8487+this.x0,i.y=i.y*this.a*1.3523+this.y0,i},inverse:function JZ(n){var t={x:(n.x-this.x0)/(.8487*this.a),y:Math.abs(n.y-this.y0)/(1.3523*this.a)};if(t.y>=1)t.x/=eD[18][0],t.y=n.y<0?-q:q;else{var e=Math.floor(18*t.y);for(e<0?e=0:e>=18&&(e=17);;)if(mv[e][0]>t.y)--e;else{if(!(mv[e+1][0]<=t.y))break;++e}var r=mv[e],i=5*(t.y-r[0])/(mv[e+1][0]-r[0]);i=function YZ(n,t,e,r){for(var i=t;r;--r){var o=n(i);if(i-=o,Math.abs(o)<e)break}return i}(function(o){return(fC(r,o)-t.y)/function(n,t){return n[1]+t*(2*n[2]+3*t*n[3])}(r,o)},i,te,100),t.x/=fC(eD[e],i),t.y=(5*e+i)*xr,n.y<0&&(t.y=-t.y)}return t.x=le(t.x+this.long0),t},names:["Robinson","robin"]},sY={init:function nY(){this.name="geocent"},forward:function rY(n){return lN(n,this.es,this.a)},inverse:function iY(n){return uN(n,this.es,this.a,this.b)},names:["Geocentric","geocentric","geocent","Geocent"]};var _v={h:{def:1e5,num:!0},azi:{def:0,num:!0,degrees:!0},tilt:{def:0,num:!0,degrees:!0},long0:{def:0,num:!0},lat0:{def:0,num:!0}};const hY={init:function aY(){if(Object.keys(_v).forEach(function(e){if(void 0===this[e])this[e]=_v[e].def;else{if(_v[e].num&&isNaN(this[e]))throw new Error("Invalid parameter value, must be numeric "+e+" = "+this[e]);_v[e].num&&(this[e]=parseFloat(this[e]))}_v[e].degrees&&(this[e]=this[e]*xr)}.bind(this)),Math.abs(Math.abs(this.lat0)-q)<te?this.mode=this.lat0<0?1:0:Math.abs(this.lat0)<te?this.mode=2:(this.mode=3,this.sinph0=Math.sin(this.lat0),this.cosph0=Math.cos(this.lat0)),this.pn1=this.h/this.a,this.pn1<=0||this.pn1>1e10)throw new Error("Invalid height");this.p=1+this.pn1,this.rp=1/this.p,this.h1=1/this.pn1,this.pfact=(this.p+1)*this.h1,this.es=0;var n=this.tilt,t=this.azi;this.cg=Math.cos(t),this.sg=Math.sin(t),this.cw=Math.cos(n),this.sw=Math.sin(n)},forward:function lY(n){n.x-=this.long0;var i,o,s,a,t=Math.sin(n.y),e=Math.cos(n.y),r=Math.cos(n.x);switch(this.mode){case 3:o=this.sinph0*t+this.cosph0*e*r;break;case 2:o=e*r;break;case 1:o=-t;break;case 0:o=t}switch(i=(o=this.pn1/(this.p-o))*e*Math.sin(n.x),this.mode){case 3:o*=this.cosph0*t-this.sinph0*e*r;break;case 2:o*=t;break;case 0:o*=-e*r;break;case 1:o*=e*r}return i=(i*this.cg-o*this.sg)*this.cw*(a=1/((s=o*this.cg+i*this.sg)*this.sw*this.h1+this.cw)),o=s*a,n.x=i*this.a,n.y=o*this.a,n},inverse:function uY(n){n.x/=this.a,n.y/=this.a;var e,r,i,t={x:n.x,y:n.y};n.x=(e=this.pn1*n.x*(i=1/(this.pn1-n.y*this.sw)))*this.cg+(r=this.pn1*n.y*this.cw*i)*this.sg,n.y=r*this.cg-e*this.sg;var o=is(n.x,n.y);if(Math.abs(o)<te)t.x=0,t.y=n.y;else{var s,a;switch(a=1-o*o*this.pfact,a=(this.p-Math.sqrt(a))/(this.pn1/o+o/this.pn1),s=Math.sqrt(1-a*a),this.mode){case 3:t.y=Math.asin(s*this.sinph0+n.y*a*this.cosph0/o),n.y=(s-this.sinph0*Math.sin(t.y))*o,n.x*=a*this.cosph0;break;case 2:t.y=Math.asin(n.y*a/o),n.y=s*o,n.x*=a;break;case 0:t.y=Math.asin(s),n.y=-n.y;break;case 1:t.y=-Math.asin(s)}t.x=Math.atan2(n.x,n.y)}return n.x=t.x+this.long0,n.y=t.y,n},names:["Tilted_Perspective","tpers"]},vY={init:function fY(){if(this.flip_axis="x"===this.sweep?1:0,this.h=Number(this.h),this.radius_g_1=this.h/this.a,this.radius_g_1<=0||this.radius_g_1>1e10)throw new Error;if(this.radius_g=1+this.radius_g_1,this.C=this.radius_g*this.radius_g-1,0!==this.es){var n=1-this.es,t=1/n;this.radius_p=Math.sqrt(n),this.radius_p2=n,this.radius_p_inv2=t,this.shape="ellipse"}else this.radius_p=1,this.radius_p2=1,this.radius_p_inv2=1,this.shape="sphere";this.title||(this.title="Geostationary Satellite View")},forward:function dY(n){var r,i,o,s,t=n.x,e=n.y;if(t-=this.long0,"ellipse"===this.shape){e=Math.atan(this.radius_p2*Math.tan(e));var a=this.radius_p/is(this.radius_p*Math.cos(e),Math.sin(e));if(i=a*Math.cos(t)*Math.cos(e),o=a*Math.sin(t)*Math.cos(e),s=a*Math.sin(e),(this.radius_g-i)*i-o*o-s*s*this.radius_p_inv2<0)return n.x=Number.NaN,n.y=Number.NaN,n;r=this.radius_g-i,this.flip_axis?(n.x=this.radius_g_1*Math.atan(o/is(s,r)),n.y=this.radius_g_1*Math.atan(s/r)):(n.x=this.radius_g_1*Math.atan(o/r),n.y=this.radius_g_1*Math.atan(s/is(o,r)))}else"sphere"===this.shape&&(r=Math.cos(e),i=Math.cos(t)*r,o=Math.sin(t)*r,s=Math.sin(e),r=this.radius_g-i,this.flip_axis?(n.x=this.radius_g_1*Math.atan(o/is(s,r)),n.y=this.radius_g_1*Math.atan(s/r)):(n.x=this.radius_g_1*Math.atan(o/r),n.y=this.radius_g_1*Math.atan(s/is(o,r))));return n.x=n.x*this.a,n.y=n.y*this.a,n},inverse:function pY(n){var i,o,s,a,t=-1,e=0,r=0;if(n.x=n.x/this.a,n.y=n.y/this.a,"ellipse"===this.shape){this.flip_axis?(r=Math.tan(n.y/this.radius_g_1),e=Math.tan(n.x/this.radius_g_1)*is(1,r)):(e=Math.tan(n.x/this.radius_g_1),r=Math.tan(n.y/this.radius_g_1)*is(1,e));var l=r/this.radius_p;if((s=(o=2*this.radius_g*t)*o-4*(i=e*e+l*l+t*t)*this.C)<0)return n.x=Number.NaN,n.y=Number.NaN,n;a=(-o-Math.sqrt(s))/(2*i),t=this.radius_g+a*t,e*=a,r*=a,n.x=Math.atan2(e,t),n.y=Math.atan(r*Math.cos(n.x)/t),n.y=Math.atan(this.radius_p_inv2*Math.tan(n.y))}else if("sphere"===this.shape){if(this.flip_axis?(r=Math.tan(n.y/this.radius_g_1),e=Math.tan(n.x/this.radius_g_1)*Math.sqrt(1+r*r)):(e=Math.tan(n.x/this.radius_g_1),r=Math.tan(n.y/this.radius_g_1)*Math.sqrt(1+e*e)),(s=(o=2*this.radius_g*t)*o-4*(i=e*e+r*r+t*t)*this.C)<0)return n.x=Number.NaN,n.y=Number.NaN,n;a=(-o-Math.sqrt(s))/(2*i),t=this.radius_g+a*t,e*=a,r*=a,n.x=Math.atan2(e,t),n.y=Math.atan(r*Math.cos(n.x)/t)}return n.x=n.x+this.long0,n},names:["Geostationary Satellite View","Geostationary_Satellite","geos"]};oo.defaultDatum="WGS84",oo.Proj=cv,oo.WGS84=new oo.Proj("WGS84"),oo.Point=Y7,oo.toPoint=dN,oo.defs=nC,oo.nadgrid=function M7(n,t){var e=new DataView(t),r=function D7(n){var t=n.getInt32(8,!1);return 11!==t&&(11!==(t=n.getInt32(8,!0))&&console.warn("Failed to detect nadgrid endian-ness, defaulting to little-endian"),!0)}(e),i=function S7(n,t){return{nFields:n.getInt32(8,t),nSubgridFields:n.getInt32(24,t),nSubgrids:n.getInt32(40,t),shiftType:qb(n,56,64).trim(),fromSemiMajorAxis:n.getFloat64(120,t),fromSemiMinorAxis:n.getFloat64(136,t),toSemiMajorAxis:n.getFloat64(152,t),toSemiMinorAxis:n.getFloat64(168,t)}}(e,r);i.nSubgrids>1&&console.log("Only single NTv2 subgrids are currently supported, subsequent sub grids are ignored");var o=function I7(n,t,e){for(var i=[],o=0;o<t.nSubgrids;o++){var s=A7(n,176,e),a=R7(n,176,s,e),l=Math.round(1+(s.upperLongitude-s.lowerLongitude)/s.longitudeInterval),c=Math.round(1+(s.upperLatitude-s.lowerLatitude)/s.latitudeInterval);i.push({ll:[Sf(s.lowerLongitude),Sf(s.lowerLatitude)],del:[Sf(s.longitudeInterval),Sf(s.latitudeInterval)],lim:[l,c],count:s.gridNodeCount,cvs:T7(a)})}return i}(e,i,r),s={header:i,subgrids:o};return aN[n]=s,s},oo.transform=sC,oo.mgrs=U7,oo.version="__VERSION__",function mY(n){n.Proj.projections.add(lC),n.Proj.projections.add(uC),n.Proj.projections.add(Mq),n.Proj.projections.add(Pq),n.Proj.projections.add(Bq),n.Proj.projections.add(zq),n.Proj.projections.add(Yq),n.Proj.projections.add(tK),n.Proj.projections.add(sK),n.Proj.projections.add(hK),n.Proj.projections.add(IK),n.Proj.projections.add(kK),n.Proj.projections.add(BK),n.Proj.projections.add($K),n.Proj.projections.add(YK),n.Proj.projections.add(tZ),n.Proj.projections.add(sZ),n.Proj.projections.add(hZ),n.Proj.projections.add(mZ),n.Proj.projections.add(EZ),n.Proj.projections.add(SZ),n.Proj.projections.add(OZ),n.Proj.projections.add(FZ),n.Proj.projections.add(GZ),n.Proj.projections.add(qZ),n.Proj.projections.add(tY),n.Proj.projections.add(sY),n.Proj.projections.add(hY),n.Proj.projections.add(vY)}(oo);const NN=oo;var FN=Vt(402),_Y=function(){function n(t){this.opacity_=t.opacity,this.rotateWithView_=t.rotateWithView,this.rotation_=t.rotation,this.scale_=t.scale,this.scaleArray_=io(t.scale),this.displacement_=t.displacement,this.declutterMode_=t.declutterMode}return n.prototype.clone=function(){var t=this.getScale();return new n({opacity:this.getOpacity(),scale:Array.isArray(t)?t.slice():t,rotation:this.getRotation(),rotateWithView:this.getRotateWithView(),displacement:this.getDisplacement().slice(),declutterMode:this.getDeclutterMode()})},n.prototype.getOpacity=function(){return this.opacity_},n.prototype.getRotateWithView=function(){return this.rotateWithView_},n.prototype.getRotation=function(){return this.rotation_},n.prototype.getScale=function(){return this.scale_},n.prototype.getScaleArray=function(){return this.scaleArray_},n.prototype.getDisplacement=function(){return this.displacement_},n.prototype.getDeclutterMode=function(){return this.declutterMode_},n.prototype.getAnchor=function(){return vt()},n.prototype.getImage=function(t){return vt()},n.prototype.getHitDetectionImage=function(){return vt()},n.prototype.getPixelRatio=function(t){return 1},n.prototype.getImageState=function(){return vt()},n.prototype.getImageSize=function(){return vt()},n.prototype.getOrigin=function(){return vt()},n.prototype.getSize=function(){return vt()},n.prototype.setDisplacement=function(t){this.displacement_=t},n.prototype.setOpacity=function(t){this.opacity_=t},n.prototype.setRotateWithView=function(t){this.rotateWithView_=t},n.prototype.setRotation=function(t){this.rotation_=t},n.prototype.setScale=function(t){this.scale_=t,this.scaleArray_=io(t)},n.prototype.listenImageChange=function(t){vt()},n.prototype.load=function(){vt()},n.prototype.unlistenImageChange=function(t){vt()},n}();const VN=_Y;function Fs(n){return Array.isArray(n)?_k(n):n}var yY=function(){var n=function(t,e){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,i){r.__proto__=i}||function(r,i){for(var o in i)Object.prototype.hasOwnProperty.call(i,o)&&(r[o]=i[o])})(t,e)};return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function r(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)}}(),CY=function(n){function t(e){var r=this;return(r=n.call(this,{opacity:1,rotateWithView:void 0!==e.rotateWithView&&e.rotateWithView,rotation:void 0!==e.rotation?e.rotation:0,scale:void 0!==e.scale?e.scale:1,displacement:void 0!==e.displacement?e.displacement:[0,0],declutterMode:e.declutterMode})||this).canvas_=void 0,r.hitDetectionCanvas_=null,r.fill_=void 0!==e.fill?e.fill:null,r.origin_=[0,0],r.points_=e.points,r.radius_=void 0!==e.radius?e.radius:e.radius1,r.radius2_=e.radius2,r.angle_=void 0!==e.angle?e.angle:0,r.stroke_=void 0!==e.stroke?e.stroke:null,r.size_=null,r.renderOptions_=null,r.render(),r}return yY(t,n),t.prototype.clone=function(){var e=this.getScale(),r=new t({fill:this.getFill()?this.getFill().clone():void 0,points:this.getPoints(),radius:this.getRadius(),radius2:this.getRadius2(),angle:this.getAngle(),stroke:this.getStroke()?this.getStroke().clone():void 0,rotation:this.getRotation(),rotateWithView:this.getRotateWithView(),scale:Array.isArray(e)?e.slice():e,displacement:this.getDisplacement().slice(),declutterMode:this.getDeclutterMode()});return r.setOpacity(this.getOpacity()),r},t.prototype.getAnchor=function(){var e=this.size_;if(!e)return null;var r=this.getDisplacement();return[e[0]/2-r[0],e[1]/2+r[1]]},t.prototype.getAngle=function(){return this.angle_},t.prototype.getFill=function(){return this.fill_},t.prototype.setFill=function(e){this.fill_=e,this.render()},t.prototype.getHitDetectionImage=function(){return this.hitDetectionCanvas_||this.createHitDetectionCanvas_(this.renderOptions_),this.hitDetectionCanvas_},t.prototype.getImage=function(e){var r=this.canvas_[e];if(!r){var i=this.renderOptions_,o=to(i.size*e,i.size*e);this.draw_(i,o,e),this.canvas_[e]=r=o.canvas}return r},t.prototype.getPixelRatio=function(e){return e},t.prototype.getImageSize=function(){return this.size_},t.prototype.getImageState=function(){return 2},t.prototype.getOrigin=function(){return this.origin_},t.prototype.getPoints=function(){return this.points_},t.prototype.getRadius=function(){return this.radius_},t.prototype.getRadius2=function(){return this.radius2_},t.prototype.getSize=function(){return this.size_},t.prototype.getStroke=function(){return this.stroke_},t.prototype.setStroke=function(e){this.stroke_=e,this.render()},t.prototype.listenImageChange=function(e){},t.prototype.load=function(){},t.prototype.unlistenImageChange=function(e){},t.prototype.calculateLineJoinSize_=function(e,r,i){if(0===r||this.points_===1/0||"bevel"!==e&&"miter"!==e)return r;var o=this.radius_,s=void 0===this.radius2_?o:this.radius2_;if(o<s){var a=o;o=s,s=a}var c=2*Math.PI/(void 0===this.radius2_?this.points_:2*this.points_),f=s*Math.sin(c),g=o-Math.sqrt(s*s-f*f),v=Math.sqrt(f*f+g*g),m=v/f;if("miter"===e&&m<=i)return m*r;var y=r/2/m,w=r/2*(g/v),E=Math.sqrt((o+y)*(o+y)+w*w)-o;if(void 0===this.radius2_||"bevel"===e)return 2*E;var S=o*Math.sin(c),O=s-Math.sqrt(o*o-S*S),j=Math.sqrt(S*S+O*O)/S;return j<=i?2*Math.max(E,j*r/2-s-o):2*E},t.prototype.createRenderOptions=function(){var s,e=df,r=0,i=null,o=0,a=0;this.stroke_&&(null===(s=this.stroke_.getColor())&&(s=Zg),s=Fs(s),void 0===(a=this.stroke_.getWidth())&&(a=1),i=this.stroke_.getLineDash(),o=this.stroke_.getLineDashOffset(),void 0===(e=this.stroke_.getLineJoin())&&(e=df),void 0===(r=this.stroke_.getMiterLimit())&&(r=10));var l=this.calculateLineJoinSize_(e,a,r),c=Math.max(this.radius_,this.radius2_||0);return{strokeStyle:s,strokeWidth:a,size:Math.ceil(2*c+l),lineDash:i,lineDashOffset:o,lineJoin:e,miterLimit:r}},t.prototype.render=function(){this.renderOptions_=this.createRenderOptions();var e=this.renderOptions_.size;this.canvas_={},this.size_=[e,e]},t.prototype.draw_=function(e,r,i){if(r.scale(i,i),r.translate(e.size/2,e.size/2),this.createPath_(r),this.fill_){var o=this.fill_.getColor();null===o&&(o=Da),r.fillStyle=Fs(o),r.fill()}this.stroke_&&(r.strokeStyle=e.strokeStyle,r.lineWidth=e.strokeWidth,r.setLineDash&&e.lineDash&&(r.setLineDash(e.lineDash),r.lineDashOffset=e.lineDashOffset),r.lineJoin=e.lineJoin,r.miterLimit=e.miterLimit,r.stroke())},t.prototype.createHitDetectionCanvas_=function(e){if(this.fill_){var r=this.fill_.getColor(),i=0;if("string"==typeof r&&(r=M0(r)),null===r?i=1:Array.isArray(r)&&(i=4===r.length?r[3]:1),0===i){var o=to(e.size,e.size);this.hitDetectionCanvas_=o.canvas,this.drawHitDetectionCanvas_(e,o)}}this.hitDetectionCanvas_||(this.hitDetectionCanvas_=this.getImage(1))},t.prototype.createPath_=function(e){var r=this.points_,i=this.radius_;if(r===1/0)e.arc(0,0,i,0,2*Math.PI);else{var o=void 0===this.radius2_?i:this.radius2_;void 0!==this.radius2_&&(r*=2);for(var s=this.angle_-Math.PI/2,a=2*Math.PI/r,l=0;l<r;l++){var c=s+l*a,f=l%2==0?i:o;e.lineTo(f*Math.cos(c),f*Math.sin(c))}e.closePath()}},t.prototype.drawHitDetectionCanvas_=function(e,r){r.translate(e.size/2,e.size/2),this.createPath_(r),r.fillStyle=Da,r.fill(),this.stroke_&&(r.strokeStyle=e.strokeStyle,r.lineWidth=e.strokeWidth,e.lineDash&&(r.setLineDash(e.lineDash),r.lineDashOffset=e.lineDashOffset),r.lineJoin=e.lineJoin,r.miterLimit=e.miterLimit,r.stroke())},t}(VN);const wY=CY;var EY=function(){var n=function(t,e){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,i){r.__proto__=i}||function(r,i){for(var o in i)Object.prototype.hasOwnProperty.call(i,o)&&(r[o]=i[o])})(t,e)};return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function r(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)}}(),MY=function(n){function t(e){var r=e||{};return n.call(this,{points:1/0,fill:r.fill,radius:r.radius,stroke:r.stroke,scale:void 0!==r.scale?r.scale:1,rotation:void 0!==r.rotation?r.rotation:0,rotateWithView:void 0!==r.rotateWithView&&r.rotateWithView,displacement:void 0!==r.displacement?r.displacement:[0,0],declutterMode:r.declutterMode})||this}return EY(t,n),t.prototype.clone=function(){var e=this.getScale(),r=new t({fill:this.getFill()?this.getFill().clone():void 0,stroke:this.getStroke()?this.getStroke().clone():void 0,radius:this.getRadius(),scale:Array.isArray(e)?e.slice():e,rotation:this.getRotation(),rotateWithView:this.getRotateWithView(),displacement:this.getDisplacement().slice(),declutterMode:this.getDeclutterMode()});return r.setOpacity(this.getOpacity()),r},t.prototype.setRadius=function(e){this.radius_=e,this.render()},t}(wY);const BN=MY;var xY=function(){function n(t){var e=t||{};this.color_=void 0!==e.color?e.color:null}return n.prototype.clone=function(){var t=this.getColor();return new n({color:Array.isArray(t)?t.slice():t||void 0})},n.prototype.getColor=function(){return this.color_},n.prototype.setColor=function(t){this.color_=t},n}();const tD=xY;var bY=function(){function n(t){var e=t||{};this.color_=void 0!==e.color?e.color:null,this.lineCap_=e.lineCap,this.lineDash_=void 0!==e.lineDash?e.lineDash:null,this.lineDashOffset_=e.lineDashOffset,this.lineJoin_=e.lineJoin,this.miterLimit_=e.miterLimit,this.width_=e.width}return n.prototype.clone=function(){var t=this.getColor();return new n({color:Array.isArray(t)?t.slice():t||void 0,lineCap:this.getLineCap(),lineDash:this.getLineDash()?this.getLineDash().slice():void 0,lineDashOffset:this.getLineDashOffset(),lineJoin:this.getLineJoin(),miterLimit:this.getMiterLimit(),width:this.getWidth()})},n.prototype.getColor=function(){return this.color_},n.prototype.getLineCap=function(){return this.lineCap_},n.prototype.getLineDash=function(){return this.lineDash_},n.prototype.getLineDashOffset=function(){return this.lineDashOffset_},n.prototype.getLineJoin=function(){return this.lineJoin_},n.prototype.getMiterLimit=function(){return this.miterLimit_},n.prototype.getWidth=function(){return this.width_},n.prototype.setColor=function(t){this.color_=t},n.prototype.setLineCap=function(t){this.lineCap_=t},n.prototype.setLineDash=function(t){this.lineDash_=t},n.prototype.setLineDashOffset=function(t){this.lineDashOffset_=t},n.prototype.setLineJoin=function(t){this.lineJoin_=t},n.prototype.setMiterLimit=function(t){this.miterLimit_=t},n.prototype.setWidth=function(t){this.width_=t},n}();const dC=bY;var Nf=function(){function n(t){var e=t||{};this.geometry_=null,this.geometryFunction_=UN,void 0!==e.geometry&&this.setGeometry(e.geometry),this.fill_=void 0!==e.fill?e.fill:null,this.image_=void 0!==e.image?e.image:null,this.renderer_=void 0!==e.renderer?e.renderer:null,this.hitDetectionRenderer_=void 0!==e.hitDetectionRenderer?e.hitDetectionRenderer:null,this.stroke_=void 0!==e.stroke?e.stroke:null,this.text_=void 0!==e.text?e.text:null,this.zIndex_=e.zIndex}return n.prototype.clone=function(){var t=this.getGeometry();return t&&"object"==typeof t&&(t=t.clone()),new n({geometry:t,fill:this.getFill()?this.getFill().clone():void 0,image:this.getImage()?this.getImage().clone():void 0,renderer:this.getRenderer(),stroke:this.getStroke()?this.getStroke().clone():void 0,text:this.getText()?this.getText().clone():void 0,zIndex:this.getZIndex()})},n.prototype.getRenderer=function(){return this.renderer_},n.prototype.setRenderer=function(t){this.renderer_=t},n.prototype.setHitDetectionRenderer=function(t){this.hitDetectionRenderer_=t},n.prototype.getHitDetectionRenderer=function(){return this.hitDetectionRenderer_},n.prototype.getGeometry=function(){return this.geometry_},n.prototype.getGeometryFunction=function(){return this.geometryFunction_},n.prototype.getFill=function(){return this.fill_},n.prototype.setFill=function(t){this.fill_=t},n.prototype.getImage=function(){return this.image_},n.prototype.setImage=function(t){this.image_=t},n.prototype.getStroke=function(){return this.stroke_},n.prototype.setStroke=function(t){this.stroke_=t},n.prototype.getText=function(){return this.text_},n.prototype.setText=function(t){this.text_=t},n.prototype.getZIndex=function(){return this.zIndex_},n.prototype.setGeometry=function(t){"function"==typeof t?this.geometryFunction_=t:"string"==typeof t?this.geometryFunction_=function(e){return e.get(t)}:t?void 0!==t&&(this.geometryFunction_=function(){return t}):this.geometryFunction_=UN,this.geometry_=t},n.prototype.setZIndex=function(t){this.zIndex_=t},n}(),nD=null;function SY(n,t){if(!nD){var e=new tD({color:"rgba(255,255,255,0.4)"}),r=new dC({color:"#3399CC",width:1.25});nD=[new Nf({image:new BN({fill:e,stroke:r,radius:5}),fill:e,stroke:r})]}return nD}function UN(n){return n.getGeometry()}const TY=Nf;var AY=function(){var n=function(t,e){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,i){r.__proto__=i}||function(r,i){for(var o in i)Object.prototype.hasOwnProperty.call(i,o)&&(r[o]=i[o])})(t,e)};return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function r(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)}}(),RY=function(n){function t(e){var r=this,i=e||{},o=In({},i);return delete o.style,delete o.renderBuffer,delete o.updateWhileAnimating,delete o.updateWhileInteracting,(r=n.call(this,o)||this).declutter_=void 0!==i.declutter&&i.declutter,r.renderBuffer_=void 0!==i.renderBuffer?i.renderBuffer:100,r.style_=null,r.styleFunction_=void 0,r.setStyle(i.style),r.updateWhileAnimating_=void 0!==i.updateWhileAnimating&&i.updateWhileAnimating,r.updateWhileInteracting_=void 0!==i.updateWhileInteracting&&i.updateWhileInteracting,r}return AY(t,n),t.prototype.getDeclutter=function(){return this.declutter_},t.prototype.getFeatures=function(e){return n.prototype.getFeatures.call(this,e)},t.prototype.getRenderBuffer=function(){return this.renderBuffer_},t.prototype.getRenderOrder=function(){return this.get("renderOrder")},t.prototype.getStyle=function(){return this.style_},t.prototype.getStyleFunction=function(){return this.styleFunction_},t.prototype.getUpdateWhileAnimating=function(){return this.updateWhileAnimating_},t.prototype.getUpdateWhileInteracting=function(){return this.updateWhileInteracting_},t.prototype.renderDeclutter=function(e){e.declutterTree||(e.declutterTree=new FN(9)),this.getRenderer().renderDeclutter(e)},t.prototype.setRenderOrder=function(e){this.set("renderOrder",e)},t.prototype.setStyle=function(e){this.style_=void 0!==e?e:SY,this.styleFunction_=null===e?void 0:function DY(n){var t,e;"function"==typeof n?t=n:(Array.isArray(n)?e=n:(ct("function"==typeof n.getZIndex,41),e=[n]),t=function(){return e});return t}(this.style_),this.changed()},t}(I0);const OY=RY;var yv={BEGIN_GEOMETRY:0,BEGIN_PATH:1,CIRCLE:2,CLOSE_PATH:3,CUSTOM:4,DRAW_CHARS:5,DRAW_IMAGE:6,END_GEOMETRY:7,FILL:8,MOVE_TO_LINE_TO:9,SET_FILL_STYLE:10,SET_STROKE_STYLE:11,STROKE:12},pC=[yv.FILL],Pl=[yv.STROKE],Mc=[yv.BEGIN_PATH],GN=[yv.CLOSE_PATH];const Le=yv;var PY=function(){function n(){}return n.prototype.drawCustom=function(t,e,r,i){},n.prototype.drawGeometry=function(t){},n.prototype.setStyle=function(t){},n.prototype.drawCircle=function(t,e){},n.prototype.drawFeature=function(t,e){},n.prototype.drawGeometryCollection=function(t,e){},n.prototype.drawLineString=function(t,e){},n.prototype.drawMultiLineString=function(t,e){},n.prototype.drawMultiPoint=function(t,e){},n.prototype.drawMultiPolygon=function(t,e){},n.prototype.drawPoint=function(t,e){},n.prototype.drawPolygon=function(t,e){},n.prototype.drawText=function(t,e){},n.prototype.setFillStrokeStyle=function(t,e){},n.prototype.setImageStyle=function(t,e){},n.prototype.setTextStyle=function(t,e){},n}();const HN=PY;var kY=function(){var n=function(t,e){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,i){r.__proto__=i}||function(r,i){for(var o in i)Object.prototype.hasOwnProperty.call(i,o)&&(r[o]=i[o])})(t,e)};return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function r(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)}}(),LY=function(n){function t(e,r,i,o){var s=n.call(this)||this;return s.tolerance=e,s.maxExtent=r,s.pixelRatio=o,s.maxLineWidth=0,s.resolution=i,s.beginGeometryInstruction1_=null,s.beginGeometryInstruction2_=null,s.bufferedMaxExtent_=null,s.instructions=[],s.coordinates=[],s.tmpCoordinate_=[],s.hitDetectionInstructions=[],s.state={},s}return kY(t,n),t.prototype.applyPixelRatio=function(e){var r=this.pixelRatio;return 1==r?e:e.map(function(i){return i*r})},t.prototype.appendFlatPointCoordinates=function(e,r){for(var i=this.getBufferedMaxExtent(),o=this.tmpCoordinate_,s=this.coordinates,a=s.length,l=0,c=e.length;l<c;l+=r)o[0]=e[l],o[1]=e[l+1],jg(i,o)&&(s[a++]=o[0],s[a++]=o[1]);return a},t.prototype.appendFlatLineCoordinates=function(e,r,i,o,s,a){var l=this.coordinates,c=l.length,f=this.getBufferedMaxExtent();a&&(r+=o);var y,w,x,d=e[r],g=e[r+1],v=this.tmpCoordinate_,m=!0;for(y=r+o;y<i;y+=o)v[0]=e[y],v[1]=e[y+1],(x=jx(f,v))!==w?(m&&(l[c++]=d,l[c++]=g,m=!1),l[c++]=v[0],l[c++]=v[1]):1===x?(l[c++]=v[0],l[c++]=v[1],m=!1):m=!0,d=v[0],g=v[1],w=x;return(s&&m||y===r+o)&&(l[c++]=d,l[c++]=g),c},t.prototype.drawCustomCoordinates_=function(e,r,i,o,s){for(var a=0,l=i.length;a<l;++a){var c=i[a],f=this.appendFlatLineCoordinates(e,r,c,o,!1,!1);s.push(f),r=c}return r},t.prototype.drawCustom=function(e,r,i,o){this.beginGeometry(e,r);var c,f,d,g,v,s=e.getType(),a=e.getStride(),l=this.coordinates.length;switch(s){case"MultiPolygon":c=e.getOrientedFlatCoordinates(),g=[];var m=e.getEndss();v=0;for(var y=0,w=m.length;y<w;++y){var x=[];v=this.drawCustomCoordinates_(c,v,m[y],a,x),g.push(x)}this.instructions.push([Le.CUSTOM,l,g,e,i,Mb]),this.hitDetectionInstructions.push([Le.CUSTOM,l,g,e,o||i,Mb]);break;case"Polygon":case"MultiLineString":d=[],c="Polygon"==s?e.getOrientedFlatCoordinates():e.getFlatCoordinates(),v=this.drawCustomCoordinates_(c,0,e.getEnds(),a,d),this.instructions.push([Le.CUSTOM,l,d,e,i,tv]),this.hitDetectionInstructions.push([Le.CUSTOM,l,d,e,o||i,tv]);break;case"LineString":case"Circle":c=e.getFlatCoordinates(),f=this.appendFlatLineCoordinates(c,0,c.length,a,!1,!1),this.instructions.push([Le.CUSTOM,l,f,e,i,Sl]),this.hitDetectionInstructions.push([Le.CUSTOM,l,f,e,o||i,Sl]);break;case"MultiPoint":c=e.getFlatCoordinates(),(f=this.appendFlatPointCoordinates(c,a))>l&&(this.instructions.push([Le.CUSTOM,l,f,e,i,Sl]),this.hitDetectionInstructions.push([Le.CUSTOM,l,f,e,o||i,Sl]));break;case"Point":c=e.getFlatCoordinates(),this.coordinates.push(c[0],c[1]),this.instructions.push([Le.CUSTOM,l,f=this.coordinates.length,e,i]),this.hitDetectionInstructions.push([Le.CUSTOM,l,f,e,o||i])}this.endGeometry(r)},t.prototype.beginGeometry=function(e,r){this.beginGeometryInstruction1_=[Le.BEGIN_GEOMETRY,r,0,e],this.instructions.push(this.beginGeometryInstruction1_),this.beginGeometryInstruction2_=[Le.BEGIN_GEOMETRY,r,0,e],this.hitDetectionInstructions.push(this.beginGeometryInstruction2_)},t.prototype.finish=function(){return{instructions:this.instructions,hitDetectionInstructions:this.hitDetectionInstructions,coordinates:this.coordinates}},t.prototype.reverseHitDetectionInstructions=function(){var e=this.hitDetectionInstructions;e.reverse();var r,o,s,i=e.length,a=-1;for(r=0;r<i;++r)(s=(o=e[r])[0])==Le.END_GEOMETRY?a=r:s==Le.BEGIN_GEOMETRY&&(o[2]=r,N5(this.hitDetectionInstructions,a,r),a=-1)},t.prototype.setFillStrokeStyle=function(e,r){var i=this.state;if(e){var o=e.getColor();i.fillStyle=Fs(o||Da)}else i.fillStyle=void 0;if(r){var s=r.getColor();i.strokeStyle=Fs(s||Zg);var a=r.getLineCap();i.lineCap=void 0!==a?a:R0;var l=r.getLineDash();i.lineDash=l?l.slice():Wg;var c=r.getLineDashOffset();i.lineDashOffset=c||0;var f=r.getLineJoin();i.lineJoin=void 0!==f?f:df;var d=r.getWidth();i.lineWidth=void 0!==d?d:1;var g=r.getMiterLimit();i.miterLimit=void 0!==g?g:10,i.lineWidth>this.maxLineWidth&&(this.maxLineWidth=i.lineWidth,this.bufferedMaxExtent_=null)}else i.strokeStyle=void 0,i.lineCap=void 0,i.lineDash=null,i.lineDashOffset=void 0,i.lineJoin=void 0,i.lineWidth=void 0,i.miterLimit=void 0},t.prototype.createFill=function(e){var r=e.fillStyle,i=[Le.SET_FILL_STYLE,r];return"string"!=typeof r&&i.push(!0),i},t.prototype.applyStroke=function(e){this.instructions.push(this.createStroke(e))},t.prototype.createStroke=function(e){return[Le.SET_STROKE_STYLE,e.strokeStyle,e.lineWidth*this.pixelRatio,e.lineCap,e.lineJoin,e.miterLimit,this.applyPixelRatio(e.lineDash),e.lineDashOffset*this.pixelRatio]},t.prototype.updateFillStyle=function(e,r){var i=e.fillStyle;("string"!=typeof i||e.currentFillStyle!=i)&&(void 0!==i&&this.instructions.push(r.call(this,e)),e.currentFillStyle=i)},t.prototype.updateStrokeStyle=function(e,r){var i=e.strokeStyle,o=e.lineCap,s=e.lineDash,a=e.lineDashOffset,l=e.lineJoin,c=e.lineWidth,f=e.miterLimit;(e.currentStrokeStyle!=i||e.currentLineCap!=o||s!=e.currentLineDash&&!ac(e.currentLineDash,s)||e.currentLineDashOffset!=a||e.currentLineJoin!=l||e.currentLineWidth!=c||e.currentMiterLimit!=f)&&(void 0!==i&&r.call(this,e),e.currentStrokeStyle=i,e.currentLineCap=o,e.currentLineDash=s,e.currentLineDashOffset=a,e.currentLineJoin=l,e.currentLineWidth=c,e.currentMiterLimit=f)},t.prototype.endGeometry=function(e){this.beginGeometryInstruction1_[2]=this.instructions.length,this.beginGeometryInstruction1_=null,this.beginGeometryInstruction2_[2]=this.hitDetectionInstructions.length,this.beginGeometryInstruction2_=null;var r=[Le.END_GEOMETRY,e];this.instructions.push(r),this.hitDetectionInstructions.push(r)},t.prototype.getBufferedMaxExtent=function(){return!this.bufferedMaxExtent_&&(this.bufferedMaxExtent_=lk(this.maxExtent),this.maxLineWidth>0)&&Ug(this.bufferedMaxExtent_,this.resolution*(this.maxLineWidth+1)/2,this.bufferedMaxExtent_),this.bufferedMaxExtent_},t}(HN);const Cv=LY;var NY=function(){var n=function(t,e){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,i){r.__proto__=i}||function(r,i){for(var o in i)Object.prototype.hasOwnProperty.call(i,o)&&(r[o]=i[o])})(t,e)};return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function r(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)}}(),FY=function(n){function t(e,r,i,o){var s=n.call(this,e,r,i,o)||this;return s.hitDetectionImage_=null,s.image_=null,s.imagePixelRatio_=void 0,s.anchorX_=void 0,s.anchorY_=void 0,s.height_=void 0,s.opacity_=void 0,s.originX_=void 0,s.originY_=void 0,s.rotateWithView_=void 0,s.rotation_=void 0,s.scale_=void 0,s.width_=void 0,s.declutterMode_=void 0,s.declutterImageWithText_=void 0,s}return NY(t,n),t.prototype.drawPoint=function(e,r){if(this.image_){this.beginGeometry(e,r);var i=e.getFlatCoordinates(),o=e.getStride(),s=this.coordinates.length,a=this.appendFlatPointCoordinates(i,o);this.instructions.push([Le.DRAW_IMAGE,s,a,this.image_,this.anchorX_*this.imagePixelRatio_,this.anchorY_*this.imagePixelRatio_,Math.ceil(this.height_*this.imagePixelRatio_),this.opacity_,this.originX_*this.imagePixelRatio_,this.originY_*this.imagePixelRatio_,this.rotateWithView_,this.rotation_,[this.scale_[0]*this.pixelRatio/this.imagePixelRatio_,this.scale_[1]*this.pixelRatio/this.imagePixelRatio_],Math.ceil(this.width_*this.imagePixelRatio_),this.declutterMode_,this.declutterImageWithText_]),this.hitDetectionInstructions.push([Le.DRAW_IMAGE,s,a,this.hitDetectionImage_,this.anchorX_,this.anchorY_,this.height_,this.opacity_,this.originX_,this.originY_,this.rotateWithView_,this.rotation_,this.scale_,this.width_,this.declutterMode_,this.declutterImageWithText_]),this.endGeometry(r)}},t.prototype.drawMultiPoint=function(e,r){if(this.image_){this.beginGeometry(e,r);var i=e.getFlatCoordinates(),o=e.getStride(),s=this.coordinates.length,a=this.appendFlatPointCoordinates(i,o);this.instructions.push([Le.DRAW_IMAGE,s,a,this.image_,this.anchorX_*this.imagePixelRatio_,this.anchorY_*this.imagePixelRatio_,Math.ceil(this.height_*this.imagePixelRatio_),this.opacity_,this.originX_*this.imagePixelRatio_,this.originY_*this.imagePixelRatio_,this.rotateWithView_,this.rotation_,[this.scale_[0]*this.pixelRatio/this.imagePixelRatio_,this.scale_[1]*this.pixelRatio/this.imagePixelRatio_],Math.ceil(this.width_*this.imagePixelRatio_),this.declutterMode_,this.declutterImageWithText_]),this.hitDetectionInstructions.push([Le.DRAW_IMAGE,s,a,this.hitDetectionImage_,this.anchorX_,this.anchorY_,this.height_,this.opacity_,this.originX_,this.originY_,this.rotateWithView_,this.rotation_,this.scale_,this.width_,this.declutterMode_,this.declutterImageWithText_]),this.endGeometry(r)}},t.prototype.finish=function(){return this.reverseHitDetectionInstructions(),this.anchorX_=void 0,this.anchorY_=void 0,this.hitDetectionImage_=null,this.image_=null,this.imagePixelRatio_=void 0,this.height_=void 0,this.scale_=void 0,this.opacity_=void 0,this.originX_=void 0,this.originY_=void 0,this.rotateWithView_=void 0,this.rotation_=void 0,this.width_=void 0,n.prototype.finish.call(this)},t.prototype.setImageStyle=function(e,r){var i=e.getAnchor(),o=e.getSize(),s=e.getOrigin();this.imagePixelRatio_=e.getPixelRatio(this.pixelRatio),this.anchorX_=i[0],this.anchorY_=i[1],this.hitDetectionImage_=e.getHitDetectionImage(),this.image_=e.getImage(this.pixelRatio),this.height_=o[1],this.opacity_=e.getOpacity(),this.originX_=s[0],this.originY_=s[1],this.rotateWithView_=e.getRotateWithView(),this.rotation_=e.getRotation(),this.scale_=e.getScaleArray(),this.width_=o[0],this.declutterMode_=e.getDeclutterMode(),this.declutterImageWithText_=r},t}(Cv);const VY=FY;var BY=function(){var n=function(t,e){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,i){r.__proto__=i}||function(r,i){for(var o in i)Object.prototype.hasOwnProperty.call(i,o)&&(r[o]=i[o])})(t,e)};return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function r(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)}}(),UY=function(n){function t(e,r,i,o){return n.call(this,e,r,i,o)||this}return BY(t,n),t.prototype.drawFlatCoordinates_=function(e,r,i,o){var s=this.coordinates.length,a=this.appendFlatLineCoordinates(e,r,i,o,!1,!1),l=[Le.MOVE_TO_LINE_TO,s,a];return this.instructions.push(l),this.hitDetectionInstructions.push(l),i},t.prototype.drawLineString=function(e,r){var i=this.state;if(void 0!==i.strokeStyle&&void 0!==i.lineWidth){this.updateStrokeStyle(i,this.applyStroke),this.beginGeometry(e,r),this.hitDetectionInstructions.push([Le.SET_STROKE_STYLE,i.strokeStyle,i.lineWidth,i.lineCap,i.lineJoin,i.miterLimit,Wg,0],Mc);var a=e.getFlatCoordinates(),l=e.getStride();this.drawFlatCoordinates_(a,0,a.length,l),this.hitDetectionInstructions.push(Pl),this.endGeometry(r)}},t.prototype.drawMultiLineString=function(e,r){var i=this.state;if(void 0!==i.strokeStyle&&void 0!==i.lineWidth){this.updateStrokeStyle(i,this.applyStroke),this.beginGeometry(e,r),this.hitDetectionInstructions.push([Le.SET_STROKE_STYLE,i.strokeStyle,i.lineWidth,i.lineCap,i.lineJoin,i.miterLimit,i.lineDash,i.lineDashOffset],Mc);for(var a=e.getEnds(),l=e.getFlatCoordinates(),c=e.getStride(),f=0,d=0,g=a.length;d<g;++d)f=this.drawFlatCoordinates_(l,f,a[d],c);this.hitDetectionInstructions.push(Pl),this.endGeometry(r)}},t.prototype.finish=function(){var e=this.state;return null!=e.lastStroke&&e.lastStroke!=this.coordinates.length&&this.instructions.push(Pl),this.reverseHitDetectionInstructions(),this.state=null,n.prototype.finish.call(this)},t.prototype.applyStroke=function(e){null!=e.lastStroke&&e.lastStroke!=this.coordinates.length&&(this.instructions.push(Pl),e.lastStroke=this.coordinates.length),e.lastStroke=0,n.prototype.applyStroke.call(this,e),this.instructions.push(Mc)},t}(Cv);const jY=UY;var GY=function(){var n=function(t,e){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,i){r.__proto__=i}||function(r,i){for(var o in i)Object.prototype.hasOwnProperty.call(i,o)&&(r[o]=i[o])})(t,e)};return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function r(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)}}(),HY=function(n){function t(e,r,i,o){return n.call(this,e,r,i,o)||this}return GY(t,n),t.prototype.drawFlatCoordinatess_=function(e,r,i,o){var s=this.state,a=void 0!==s.fillStyle,l=void 0!==s.strokeStyle,c=i.length;this.instructions.push(Mc),this.hitDetectionInstructions.push(Mc);for(var f=0;f<c;++f){var d=i[f],g=this.coordinates.length,v=this.appendFlatLineCoordinates(e,r,d,o,!0,!l),m=[Le.MOVE_TO_LINE_TO,g,v];this.instructions.push(m),this.hitDetectionInstructions.push(m),l&&(this.instructions.push(GN),this.hitDetectionInstructions.push(GN)),r=d}return a&&(this.instructions.push(pC),this.hitDetectionInstructions.push(pC)),l&&(this.instructions.push(Pl),this.hitDetectionInstructions.push(Pl)),r},t.prototype.drawCircle=function(e,r){var i=this.state;if(void 0!==i.fillStyle||void 0!==i.strokeStyle){this.setFillStrokeStyles_(),this.beginGeometry(e,r),void 0!==i.fillStyle&&this.hitDetectionInstructions.push([Le.SET_FILL_STYLE,Da]),void 0!==i.strokeStyle&&this.hitDetectionInstructions.push([Le.SET_STROKE_STYLE,i.strokeStyle,i.lineWidth,i.lineCap,i.lineJoin,i.miterLimit,i.lineDash,i.lineDashOffset]);var a=e.getFlatCoordinates(),l=e.getStride(),c=this.coordinates.length;this.appendFlatLineCoordinates(a,0,a.length,l,!1,!1);var f=[Le.CIRCLE,c];this.instructions.push(Mc,f),this.hitDetectionInstructions.push(Mc,f),void 0!==i.fillStyle&&(this.instructions.push(pC),this.hitDetectionInstructions.push(pC)),void 0!==i.strokeStyle&&(this.instructions.push(Pl),this.hitDetectionInstructions.push(Pl)),this.endGeometry(r)}},t.prototype.drawPolygon=function(e,r){var i=this.state;if(void 0!==i.fillStyle||void 0!==i.strokeStyle){this.setFillStrokeStyles_(),this.beginGeometry(e,r),void 0!==i.fillStyle&&this.hitDetectionInstructions.push([Le.SET_FILL_STYLE,Da]),void 0!==i.strokeStyle&&this.hitDetectionInstructions.push([Le.SET_STROKE_STYLE,i.strokeStyle,i.lineWidth,i.lineCap,i.lineJoin,i.miterLimit,i.lineDash,i.lineDashOffset]);var a=e.getEnds(),l=e.getOrientedFlatCoordinates(),c=e.getStride();this.drawFlatCoordinatess_(l,0,a,c),this.endGeometry(r)}},t.prototype.drawMultiPolygon=function(e,r){var i=this.state;if(void 0!==i.fillStyle||void 0!==i.strokeStyle){this.setFillStrokeStyles_(),this.beginGeometry(e,r),void 0!==i.fillStyle&&this.hitDetectionInstructions.push([Le.SET_FILL_STYLE,Da]),void 0!==i.strokeStyle&&this.hitDetectionInstructions.push([Le.SET_STROKE_STYLE,i.strokeStyle,i.lineWidth,i.lineCap,i.lineJoin,i.miterLimit,i.lineDash,i.lineDashOffset]);for(var a=e.getEndss(),l=e.getOrientedFlatCoordinates(),c=e.getStride(),f=0,d=0,g=a.length;d<g;++d)f=this.drawFlatCoordinatess_(l,f,a[d],c);this.endGeometry(r)}},t.prototype.finish=function(){this.reverseHitDetectionInstructions(),this.state=null;var e=this.tolerance;if(0!==e)for(var r=this.coordinates,i=0,o=r.length;i<o;++i)r[i]=vc(r[i],e);return n.prototype.finish.call(this)},t.prototype.setFillStrokeStyles_=function(){var e=this.state;void 0!==e.fillStyle&&this.updateFillStyle(e,this.createFill),void 0!==e.strokeStyle&&this.updateStrokeStyle(e,this.applyStroke)},t}(Cv);const zN=HY;function $Y(n,t,e,r,i){var d,g,v,m,y,w,x,E,S,o=e,s=e,a=0,l=0,c=e;for(d=e;d<r;d+=i){var T=t[d],O=t[d+1];void 0!==m&&(E=T-m,S=O-y,v=Math.sqrt(E*E+S*S),void 0!==w&&(l+=g,Math.acos((w*E+x*S)/(g*v))>n&&(l>a&&(a=l,o=c,s=d),l=0,c=d-i)),g=v,w=E,x=S),m=T,y=O}return(l+=v)>a?[c,d]:[o,s]}var WY=function(){var n=function(t,e){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,i){r.__proto__=i}||function(r,i){for(var o in i)Object.prototype.hasOwnProperty.call(i,o)&&(r[o]=i[o])})(t,e)};return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function r(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)}}(),wv={left:0,end:0,center:.5,right:1,start:1,top:0,middle:.5,hanging:.2,alphabetic:.8,ideographic:.8,bottom:1},qY=function(n){function t(e,r,i,o){var s=n.call(this,e,r,i,o)||this;return s.labels_=null,s.text_="",s.textOffsetX_=0,s.textOffsetY_=0,s.textRotateWithView_=void 0,s.textRotation_=0,s.textFillState_=null,s.fillStates={},s.textStrokeState_=null,s.strokeStates={},s.textState_={},s.textStates={},s.textKey_="",s.fillKey_="",s.strokeKey_="",s.declutterImageWithText_=void 0,s}return WY(t,n),t.prototype.finish=function(){var e=n.prototype.finish.call(this);return e.textStates=this.textStates,e.fillStates=this.fillStates,e.strokeStates=this.strokeStates,e},t.prototype.drawText=function(e,r){var s=this.textState_;if(""!==this.text_&&s&&(this.textFillState_||this.textStrokeState_)){var a=this.coordinates,l=a.length,c=e.getType(),f=null,d=e.getStride();if("line"!==s.placement||"LineString"!=c&&"MultiLineString"!=c&&"Polygon"!=c&&"MultiPolygon"!=c){var j=s.overflow?null:[];switch(c){case"Point":case"MultiPoint":f=e.getFlatCoordinates();break;case"LineString":f=e.getFlatMidpoint();break;case"Circle":f=e.getCenter();break;case"MultiLineString":f=e.getFlatMidpoints(),d=2;break;case"Polygon":f=e.getFlatInteriorPoint(),s.overflow||j.push(f[2]/this.resolution),d=3;break;case"MultiPolygon":var H=e.getFlatInteriorPoints();for(f=[],m=0,y=H.length;m<y;m+=3)s.overflow||j.push(H[m+2]/this.resolution),f.push(H[m],H[m+1]);if(0===f.length)return;d=2}if((N=this.appendFlatPointCoordinates(f,d))===l)return;if(j&&(N-l)/2!=f.length/d){var X=l/2;j=j.filter(function(De,mt){var yt=a[2*(X+mt)]===f[mt*d]&&a[2*(X+mt)+1]===f[mt*d+1];return yt||--X,yt})}this.saveTextStates_(),(s.backgroundFill||s.backgroundStroke)&&(this.setFillStrokeStyle(s.backgroundFill,s.backgroundStroke),s.backgroundFill&&(this.updateFillStyle(this.state,this.createFill),this.hitDetectionInstructions.push(this.createFill(this.state))),s.backgroundStroke&&(this.updateStrokeStyle(this.state,this.applyStroke),this.hitDetectionInstructions.push(this.createStroke(this.state)))),this.beginGeometry(e,r);var pe=s.padding;if(pe!=fc&&(s.scale[0]<0||s.scale[1]<0)){var me=s.padding[0],ye=s.padding[1],_e=s.padding[2],$e=s.padding[3];s.scale[0]<0&&(ye=-ye,$e=-$e),s.scale[1]<0&&(me=-me,_e=-_e),pe=[me,ye,_e,$e]}var We=this.pixelRatio;this.instructions.push([Le.DRAW_IMAGE,l,N,null,NaN,NaN,NaN,1,0,0,this.textRotateWithView_,this.textRotation_,[1,1],NaN,void 0,this.declutterImageWithText_,pe==fc?fc:pe.map(function(De){return De*We}),!!s.backgroundFill,!!s.backgroundStroke,this.text_,this.textKey_,this.strokeKey_,this.fillKey_,this.textOffsetX_,this.textOffsetY_,j]);var we=1/We;this.hitDetectionInstructions.push([Le.DRAW_IMAGE,l,N,null,NaN,NaN,NaN,1,0,0,this.textRotateWithView_,this.textRotation_,[we,we],NaN,void 0,this.declutterImageWithText_,pe,!!s.backgroundFill,!!s.backgroundStroke,this.text_,this.textKey_,this.strokeKey_,this.fillKey_,this.textOffsetX_,this.textOffsetY_,j]),this.endGeometry(r)}else{if(!ui(this.getBufferedMaxExtent(),e.getExtent()))return;var g=void 0;if(f=e.getFlatCoordinates(),"LineString"==c)g=[f.length];else if("MultiLineString"==c)g=e.getEnds();else if("Polygon"==c)g=e.getEnds().slice(0,1);else if("MultiPolygon"==c){var v=e.getEndss();g=[];for(var m=0,y=v.length;m<y;++m)g.push(v[m][0])}this.beginGeometry(e,r);for(var w=s.textAlign,x=0,E=void 0,S=0,T=g.length;S<T;++S){if(null==w){var O=$Y(s.maxAngle,f,x,g[S],d);x=O[0],E=O[1]}else E=g[S];for(m=x;m<E;m+=d)a.push(f[m],f[m+1]);var N;x=g[S],this.drawChars_(l,N=a.length),l=N}this.endGeometry(r)}}},t.prototype.saveTextStates_=function(){var e=this.textStrokeState_,r=this.textState_,i=this.textFillState_,o=this.strokeKey_;e&&(o in this.strokeStates||(this.strokeStates[o]={strokeStyle:e.strokeStyle,lineCap:e.lineCap,lineDashOffset:e.lineDashOffset,lineWidth:e.lineWidth,lineJoin:e.lineJoin,miterLimit:e.miterLimit,lineDash:e.lineDash}));var s=this.textKey_;s in this.textStates||(this.textStates[s]={font:r.font,textAlign:r.textAlign||Yg,justify:r.justify,textBaseline:r.textBaseline||O0,scale:r.scale});var a=this.fillKey_;i&&(a in this.fillStates||(this.fillStates[a]={fillStyle:i.fillStyle}))},t.prototype.drawChars_=function(e,r){var i=this.textStrokeState_,o=this.textState_,s=this.strokeKey_,a=this.textKey_,l=this.fillKey_;this.saveTextStates_();var c=this.pixelRatio,f=wv[o.textBaseline],d=this.textOffsetY_*c,g=this.text_,v=i?i.lineWidth*Math.abs(o.scale[0])/2:0;this.instructions.push([Le.DRAW_CHARS,e,r,f,o.overflow,l,o.maxAngle,c,d,s,v*c,g,a,1]),this.hitDetectionInstructions.push([Le.DRAW_CHARS,e,r,f,o.overflow,l,o.maxAngle,1,d,s,v,g,a,1/c])},t.prototype.setTextStyle=function(e,r){var i,o,s;if(e){var a=e.getFill();a?((o=this.textFillState_)||(this.textFillState_=o={}),o.fillStyle=Fs(a.getColor()||Da)):this.textFillState_=o=null;var l=e.getStroke();if(l){(s=this.textStrokeState_)||(this.textStrokeState_=s={});var c=l.getLineDash(),f=l.getLineDashOffset(),d=l.getWidth(),g=l.getMiterLimit();s.lineCap=l.getLineCap()||R0,s.lineDash=c?c.slice():Wg,s.lineDashOffset=void 0===f?0:f,s.lineJoin=l.getLineJoin()||df,s.lineWidth=void 0===d?1:d,s.miterLimit=void 0===g?10:g,s.strokeStyle=Fs(l.getColor()||Zg)}else this.textStrokeState_=s=null;i=this.textState_;var v=e.getFont()||kk;V8(v);var m=e.getScaleArray();i.overflow=e.getOverflow(),i.font=v,i.maxAngle=e.getMaxAngle(),i.placement=e.getPlacement(),i.textAlign=e.getTextAlign(),i.justify=e.getJustify(),i.textBaseline=e.getTextBaseline()||O0,i.backgroundFill=e.getBackgroundFill(),i.backgroundStroke=e.getBackgroundStroke(),i.padding=e.getPadding()||fc,i.scale=void 0===m?[1,1]:m;var y=e.getOffsetX(),w=e.getOffsetY(),x=e.getRotateWithView(),E=e.getRotation();this.text_=e.getText()||"",this.textOffsetX_=void 0===y?0:y,this.textOffsetY_=void 0===w?0:w,this.textRotateWithView_=void 0!==x&&x,this.textRotation_=void 0===E?0:E,this.strokeKey_=s?("string"==typeof s.strokeStyle?s.strokeStyle:kt(s.strokeStyle))+s.lineCap+s.lineDashOffset+"|"+s.lineWidth+s.lineJoin+s.miterLimit+"["+s.lineDash.join()+"]":"",this.textKey_=i.font+i.scale+(i.textAlign||"?")+(i.justify||"?")+(i.textBaseline||"?"),this.fillKey_=o?"string"==typeof o.fillStyle?o.fillStyle:"|"+kt(o.fillStyle):""}else this.text_="";this.declutterImageWithText_=r},t}(Cv),KY={Circle:zN,Default:Cv,Image:VY,LineString:jY,Polygon:zN,Text:qY},ZY=function(){function n(t,e,r,i){this.tolerance_=t,this.maxExtent_=e,this.pixelRatio_=i,this.resolution_=r,this.buildersByZIndex_={}}return n.prototype.finish=function(){var t={};for(var e in this.buildersByZIndex_){t[e]=t[e]||{};var r=this.buildersByZIndex_[e];for(var i in r){var o=r[i].finish();t[e][i]=o}}return t},n.prototype.getBuilder=function(t,e){var r=void 0!==t?t.toString():"0",i=this.buildersByZIndex_[r];void 0===i&&(this.buildersByZIndex_[r]=i={});var o=i[e];return void 0===o&&(o=new(0,KY[e])(this.tolerance_,this.maxExtent_,this.resolution_,this.pixelRatio_),i[e]=o),o},n}();const $N=ZY;function YY(n,t,e,r,i,o,s,a,l,c,f,d){var g=n[t],v=n[t+1],m=0,y=0,w=0,x=0;function E(){m=g,y=v,g=n[t+=r],v=n[t+1],x+=w,w=Math.sqrt((g-m)*(g-m)+(v-y)*(v-y))}do{E()}while(t<e-r&&x+w<o);for(var S=0===w?0:(o-x)/w,T=ba(m,g,S),O=ba(y,v,S),N=t-r,j=x,H=o+a*l(c,i,f);t<e-r&&x+w<H;)E();var me,X=ba(m,g,S=0===w?0:(H-x)/w),pe=ba(y,v,S);if(d){var ye=[T,O,X,pe];mb(ye,0,4,2,d,ye,ye),me=ye[0]>ye[2]}else me=T>X;var we,_e=Math.PI,$e=[],We=N+r===t;if(w=0,x=j,g=n[t=N],v=n[t+1],We)return E(),we=Math.atan2(v-y,g-m),me&&(we+=we>0?-_e:_e),$e[0]=[be=(X+T)/2,De=(pe+O)/2,(H-o)/2,we,i],$e;for(var mt=0,yt=(i=i.replace(/\n/g," ")).length;mt<yt;){E();var tn=Math.atan2(v-y,g-m);if(me&&(tn+=tn>0?-_e:_e),void 0!==we){var Z=tn-we;if(Z+=Z>_e?-2*_e:Z<-_e?2*_e:0,Math.abs(Z)>s)return null}we=tn;for(var Gn=mt,sn=0;mt<yt;++mt){var br=a*l(c,i[me?yt-mt-1:mt],f);if(t+r<e&&x+w<o+sn+br/2)break;sn+=br}if(mt!==Gn){var Ni=me?i.substring(yt-Gn,yt-mt):i.substring(Gn,mt),be=ba(m,g,S=0===w?0:(o+sn/2-x)/w),De=ba(y,v,S);$e.push([be,De,sn/2,tn,Ni]),o+=sn}}return $e}function rD(n,t,e,r){for(var i=n[t],o=n[t+1],s=0,a=t+r;a<e;a+=r){var l=n[a],c=n[a+1];s+=Math.sqrt((l-i)*(l-i)+(c-o)*(c-o)),i=l,o=c}return s}var Ff=[1/0,1/0,-1/0,-1/0],kl=[],Ra=[],Oa=[],Ll=[];function WN(n){return n[3].declutterBox}var XY=new RegExp("["+String.fromCharCode(1425)+"-"+String.fromCharCode(2303)+String.fromCharCode(64285)+"-"+String.fromCharCode(65023)+String.fromCharCode(65136)+"-"+String.fromCharCode(65276)+String.fromCharCode(67584)+"-"+String.fromCharCode(69631)+String.fromCharCode(124928)+"-"+String.fromCharCode(126975)+"]");function qN(n,t){return("start"===t||"end"===t)&&!XY.test(n)&&(t="start"===t?"left":"right"),wv[t]}function QY(n,t,e){return e>0&&n.push("\n",""),n.push(t,""),n}var JY=function(){function n(t,e,r,i){this.overlaps=r,this.pixelRatio=e,this.resolution=t,this.instructions=i.instructions,this.coordinates=i.coordinates,this.coordinateCache_={},this.renderedTransform_=[1,0,0,1,0,0],this.hitDetectionInstructions=i.hitDetectionInstructions,this.pixelCoordinates_=null,this.viewRotation_=0,this.fillStates=i.fillStates||{},this.strokeStates=i.strokeStates||{},this.textStates=i.textStates||{},this.widths_={},this.labels_={}}return n.prototype.createLabel=function(t,e,r,i){var o=t+e+r+i;if(this.labels_[o])return this.labels_[o];var s=i?this.strokeStates[i]:null,a=r?this.fillStates[r]:null,l=this.textStates[e],c=this.pixelRatio,f=[l.scale[0]*c,l.scale[1]*c],d=Array.isArray(t),g=l.justify?wv[l.justify]:qN(Array.isArray(t)?t[0]:t,l.textAlign||Yg),v=i&&s.lineWidth?s.lineWidth:0,m=d?t:t.split("\n").reduce(QY,[]),y=function U8(n,t){for(var e=[],r=[],i=[],o=0,s=0,a=0,l=0,c=0,f=t.length;c<=f;c+=2){var d=t[c];if("\n"!==d&&c!==f){var g=t[c+1]||n.font,v=P0(g,d);e.push(v),s+=v;var m=B8(g);r.push(m),l=Math.max(l,m)}else o=Math.max(o,s),i.push(s),s=0,a+=l}return{width:o,height:a,widths:e,heights:r,lineWidths:i}}(l,m),E=y.widths,S=y.heights,T=y.lineWidths,O=y.width+v,N=[],j=(O+2)*f[0],H=(y.height+v)*f[1],X={width:j<0?Math.floor(j):Math.ceil(j),height:H<0?Math.floor(H):Math.ceil(H),contextInstructions:N};(1!=f[0]||1!=f[1])&&N.push("scale",f),i&&(N.push("strokeStyle",s.strokeStyle),N.push("lineWidth",v),N.push("lineCap",s.lineCap),N.push("lineJoin",s.lineJoin),N.push("miterLimit",s.miterLimit),(p0?OffscreenCanvasRenderingContext2D:CanvasRenderingContext2D).prototype.setLineDash&&(N.push("setLineDash",[s.lineDash]),N.push("lineDashOffset",s.lineDashOffset))),r&&N.push("fillStyle",a.fillStyle),N.push("textBaseline","middle"),N.push("textAlign","center");for(var mt,me=.5-g,ye=g*O+me*v,_e=[],$e=[],We=0,we=0,be=0,De=0,yt=0,tn=m.length;yt<tn;yt+=2){var Z=m[yt];if("\n"!==Z){var Gn=m[yt+1]||l.font;Gn!==mt&&(i&&_e.push("font",Gn),r&&$e.push("font",Gn),mt=Gn),We=Math.max(We,S[be]);var sn=[Z,ye+me*E[be]+g*(E[be]-T[De]),.5*(v+We)+we];ye+=E[be],i&&_e.push("strokeText",sn),r&&$e.push("fillText",sn),++be}else we+=We,We=0,ye=g*O+me*v,++De}return Array.prototype.push.apply(N,_e),Array.prototype.push.apply(N,$e),this.labels_[o]=X,X},n.prototype.replayTextBackground_=function(t,e,r,i,o,s,a){t.beginPath(),t.moveTo.apply(t,e),t.lineTo.apply(t,r),t.lineTo.apply(t,i),t.lineTo.apply(t,o),t.lineTo.apply(t,e),s&&(this.alignFill_=s[2],this.fill_(t)),a&&(this.setStrokeStyle_(t,a),t.stroke())},n.prototype.calculateImageOrLabelDimensions_=function(t,e,r,i,o,s,a,l,c,f,d,g,v,m,y,w){var X,x=r-(a*=g[0]),E=i-(l*=g[1]),S=o+c>t?t-c:o,T=s+f>e?e-f:s,O=m[3]+S*g[0]+m[1],N=m[0]+T*g[1]+m[2],j=x-m[3],H=E-m[0];return(y||0!==d)&&(kl[0]=j,Ll[0]=j,kl[1]=H,Ra[1]=H,Ra[0]=j+O,Oa[0]=Ra[0],Oa[1]=H+N,Ll[1]=Oa[1]),0!==d?(Zn(X=Os([1,0,0,1,0,0],r,i,1,1,d,-r,-i),kl),Zn(X,Ra),Zn(X,Oa),Zn(X,Ll),Xo(Math.min(kl[0],Ra[0],Oa[0],Ll[0]),Math.min(kl[1],Ra[1],Oa[1],Ll[1]),Math.max(kl[0],Ra[0],Oa[0],Ll[0]),Math.max(kl[1],Ra[1],Oa[1],Ll[1]),Ff)):Xo(Math.min(j,j+O),Math.min(H,H+N),Math.max(j,j+O),Math.max(H,H+N),Ff),v&&(x=Math.round(x),E=Math.round(E)),{drawImageX:x,drawImageY:E,drawImageW:S,drawImageH:T,originX:c,originY:f,declutterBox:{minX:Ff[0],minY:Ff[1],maxX:Ff[2],maxY:Ff[3],value:w},canvasTransform:X,scale:g}},n.prototype.replayImageOrLabel_=function(t,e,r,i,o,s,a){var c=i.declutterBox,f=t.canvas,d=a?a[2]*i.scale[0]/2:0;return c.minX-d<=f.width/e&&c.maxX+d>=0&&c.minY-d<=f.height/e&&c.maxY+d>=0&&(!(!s&&!a)&&this.replayTextBackground_(t,kl,Ra,Oa,Ll,s,a),function j8(n,t,e,r,i,o,s,a,l,c,f){n.save(),1!==e&&(n.globalAlpha*=e),t&&n.setTransform.apply(n,t),r.contextInstructions?(n.translate(l,c),n.scale(f[0],f[1]),function G8(n,t){for(var e=n.contextInstructions,r=0,i=e.length;r<i;r+=2)Array.isArray(e[r+1])?t[e[r]].apply(t,e[r+1]):t[e[r]]=e[r+1]}(r,n)):f[0]<0||f[1]<0?(n.translate(l,c),n.scale(f[0],f[1]),n.drawImage(r,i,o,s,a,0,0,s,a)):n.drawImage(r,i,o,s,a,l,c,s*f[0],a*f[1]),n.restore()}(t,i.canvasTransform,o,r,i.originX,i.originY,i.drawImageW,i.drawImageH,i.drawImageX,i.drawImageY,i.scale)),!0},n.prototype.fill_=function(t){if(this.alignFill_){var e=Zn(this.renderedTransform_,[0,0]),r=512*this.pixelRatio;t.save(),t.translate(e[0]%r,e[1]%r),t.rotate(this.viewRotation_)}t.fill(),this.alignFill_&&t.restore()},n.prototype.setStrokeStyle_=function(t,e){t.strokeStyle=e[1],t.lineWidth=e[2],t.lineCap=e[3],t.lineJoin=e[4],t.miterLimit=e[5],t.setLineDash&&(t.lineDashOffset=e[7],t.setLineDash(e[6]))},n.prototype.drawLabelWithPointPlacement_=function(t,e,r,i){var o=this.textStates[e],s=this.createLabel(t,e,i,r),a=this.strokeStates[r],l=this.pixelRatio,c=qN(Array.isArray(t)?t[0]:t,o.textAlign||Yg),f=wv[o.textBaseline||O0],d=a&&a.lineWidth?a.lineWidth:0;return{label:s,anchorX:c*(s.width/l-2*o.scale[0])+2*(.5-c)*d,anchorY:f*s.height/l+2*(.5-f)*d}},n.prototype.execute_=function(t,e,r,i,o,s,a,l){var c;this.pixelCoordinates_&&ac(r,this.renderedTransform_)?c=this.pixelCoordinates_:(this.pixelCoordinates_||(this.pixelCoordinates_=[]),c=gc(this.coordinates,0,this.coordinates.length,2,r,this.pixelCoordinates_),function q5(n,t){n[0]=t[0],n[1]=t[1],n[2]=t[2],n[3]=t[3],n[4]=t[4],n[5]=t[5]}(this.renderedTransform_,r));for(var v,m,y,w,x,E,S,T,O,N,j,H,De,mt,yt,tn,f=0,d=i.length,g=0,X=0,pe=0,me=null,ye=null,_e=this.coordinateCache_,$e=this.viewRotation_,We=Math.round(1e12*Math.atan2(-r[1],r[0]))/1e12,we={context:t,pixelRatio:this.pixelRatio,resolution:this.resolution,rotation:$e},be=this.instructions!=i||this.overlaps?0:200;f<d;){var Z=i[f];switch(Z[0]){case Le.BEGIN_GEOMETRY:tn=Z[3],(De=Z[1]).getGeometry()?void 0===a||ui(a,tn.getExtent())?++f:f=Z[2]+1:f=Z[2];break;case Le.BEGIN_PATH:X>be&&(this.fill_(t),X=0),pe>be&&(t.stroke(),pe=0),!X&&!pe&&(t.beginPath(),w=NaN,x=NaN),++f;break;case Le.CIRCLE:var sn=c[g=Z[1]],ht=c[g+1],Dr=c[g+2]-sn,Vf=c[g+3]-ht,so=Math.sqrt(Dr*Dr+Vf*Vf);t.moveTo(sn+so,ht),t.arc(sn,ht,so,0,2*Math.PI,!0),++f;break;case Le.CLOSE_PATH:t.closePath(),++f;break;case Le.CUSTOM:g=Z[1],v=Z[2];var Bs=Z[4],Dv=6==Z.length?Z[5]:void 0;we.geometry=Z[3],we.feature=De,f in _e||(_e[f]=[]);var xc=_e[f];Dv?Dv(c,g,v,2,xc):(xc[0]=c[g],xc[1]=c[g+1],xc.length=2),Bs(xc,we),++f;break;case Le.DRAW_IMAGE:g=Z[1],v=Z[2],m=Z[4],y=Z[5];var Bf=Z[6],mC=Z[7],_C=Z[8],Sv=Z[9],Iv=Z[10],Vl=Z[11],cD=Z[12],bc=Z[13],yC=Z[14],Bl=Z[15];if(!(T=Z[3])&&Z.length>=20){var Uf=this.drawLabelWithPointPlacement_(O=Z[19],N=Z[20],j=Z[21],H=Z[22]);Z[3]=T=Uf.label,Z[4]=m=(Uf.anchorX-Z[23])*this.pixelRatio,Z[5]=y=(Uf.anchorY-Z[24])*this.pixelRatio,Z[6]=Bf=T.height,Z[13]=bc=T.width}var Tv=void 0;Z.length>25&&(Tv=Z[25]);var Pa=void 0,Us=void 0,Dc=void 0;Z.length>17?(Pa=Z[16],Us=Z[17],Dc=Z[18]):(Pa=fc,Us=!1,Dc=!1),Iv&&We?Vl+=$e:!Iv&&!We&&(Vl-=$e);for(var Av=0;g<v;g+=2)if(!(Tv&&Tv[Av++]<bc/this.pixelRatio)){var wC=[t,e,T,di=this.calculateImageOrLabelDimensions_(T.width,T.height,c[g],c[g+1],bc,Bf,m,y,_C,Sv,Vl,cD,o,Pa,Us||Dc,De),mC,Us?me:null,Dc?ye:null];if(l){if("none"===yC)continue;if("obstacle"===yC){l.insert(di.declutterBox);continue}var Sr=void 0,fD=void 0;if(Bl){var EC=v-g;if(!Bl[EC]){Bl[EC]=wC;continue}if(Sr=Bl[EC],delete Bl[EC],fD=WN(Sr),l.collides(fD))continue}if(l.collides(di.declutterBox))continue;Sr&&(l.insert(fD),this.replayImageOrLabel_.apply(this,Sr)),l.insert(di.declutterBox)}this.replayImageOrLabel_.apply(this,wC)}++f;break;case Le.DRAW_CHARS:var pF=Z[1],gF=Z[2],dD=Z[3],CJ=Z[4];H=Z[5];var wJ=Z[6],vF=Z[7],mF=Z[8];j=Z[9];var pD=Z[10];O=Z[11];var _F=[Z[13],Z[13]],gD=this.textStates[N=Z[12]],Rv=gD.font,Ov=[gD.scale[0]*vF,gD.scale[1]*vF],Pv=void 0;Rv in this.widths_?Pv=this.widths_[Rv]:this.widths_[Rv]=Pv={};var yF=rD(c,pF,gF,2),CF=Math.abs(Ov[0])*Nk(Rv,O,Pv);if(CJ||CF<=yF){var kv=YY(c,pF,gF,2,O,(yF-CF)*wv[this.textStates[N].textAlign],wJ,Math.abs(Ov[0]),Nk,Rv,Pv,We?0:this.viewRotation_);e:if(kv){var Lv=[],Ul=void 0,MC=void 0,Fi=void 0,To=void 0;if(j)for(Ul=0,MC=kv.length;Ul<MC;++Ul){Fi=this.createLabel((To=kv[Ul])[4],N,"",j);var di=this.calculateImageOrLabelDimensions_(Fi.width,Fi.height,To[0],To[1],Fi.width,Fi.height,m=To[2]+(Ov[0]<0?-pD:pD),y=dD*Fi.height+2*(.5-dD)*pD*Ov[1]/Ov[0]-mF,0,0,To[3],_F,!1,fc,!1,De);if(l&&l.collides(di.declutterBox))break e;Lv.push([t,e,Fi,di,1,null,null])}if(H)for(Ul=0,MC=kv.length;Ul<MC;++Ul){if(Fi=this.createLabel((To=kv[Ul])[4],N,H,""),di=this.calculateImageOrLabelDimensions_(Fi.width,Fi.height,To[0],To[1],Fi.width,Fi.height,m=To[2],y=dD*Fi.height-mF,0,0,To[3],_F,!1,fc,!1,De),l&&l.collides(di.declutterBox))break e;Lv.push([t,e,Fi,di,1,null,null])}l&&l.load(Lv.map(WN));for(var vD=0,xJ=Lv.length;vD<xJ;++vD)this.replayImageOrLabel_.apply(this,Lv[vD])}}++f;break;case Le.END_GEOMETRY:if(void 0!==s){var wF=s(De=Z[1],tn);if(wF)return wF}++f;break;case Le.FILL:be?X++:this.fill_(t),++f;break;case Le.MOVE_TO_LINE_TO:for(v=Z[2],S=(yt=c[(g=Z[1])+1])+.5|0,((E=(mt=c[g])+.5|0)!==w||S!==x)&&(t.moveTo(mt,yt),w=E,x=S),g+=2;g<v;g+=2)E=(mt=c[g])+.5|0,S=(yt=c[g+1])+.5|0,(g==v-2||E!==w||S!==x)&&(t.lineTo(mt,yt),w=E,x=S);++f;break;case Le.SET_FILL_STYLE:me=Z,this.alignFill_=Z[2],X&&(this.fill_(t),X=0,pe&&(t.stroke(),pe=0)),t.fillStyle=Z[1],++f;break;case Le.SET_STROKE_STYLE:ye=Z,pe&&(t.stroke(),pe=0),this.setStrokeStyle_(t,Z),++f;break;case Le.STROKE:be?pe++:t.stroke(),++f;break;default:++f}}X&&this.fill_(t),pe&&t.stroke()},n.prototype.execute=function(t,e,r,i,o,s){this.viewRotation_=i,this.execute_(t,e,r,this.instructions,o,void 0,void 0,s)},n.prototype.executeHitDetection=function(t,e,r,i,o){return this.viewRotation_=r,this.execute_(t,1,e,this.hitDetectionInstructions,!0,i,o)},n}();const eX=JY;var iD=["Polygon","Circle","LineString","Image","Text","Default"],tX=function(){function n(t,e,r,i,o,s){this.maxExtent_=t,this.overlaps_=i,this.pixelRatio_=r,this.resolution_=e,this.renderBuffer_=s,this.executorsByZIndex_={},this.hitDetectionContext_=null,this.hitDetectionTransform_=[1,0,0,1,0,0],this.createExecutors_(o)}return n.prototype.clip=function(t,e){var r=this.getClipCoords(e);t.beginPath(),t.moveTo(r[0],r[1]),t.lineTo(r[2],r[3]),t.lineTo(r[4],r[5]),t.lineTo(r[6],r[7]),t.clip()},n.prototype.createExecutors_=function(t){for(var e in t){var r=this.executorsByZIndex_[e];void 0===r&&(this.executorsByZIndex_[e]=r={});var i=t[e];for(var o in i)r[o]=new eX(this.resolution_,this.pixelRatio_,this.overlaps_,i[o])}},n.prototype.hasExecutors=function(t){for(var e in this.executorsByZIndex_)for(var r=this.executorsByZIndex_[e],i=0,o=t.length;i<o;++i)if(t[i]in r)return!0;return!1},n.prototype.forEachFeatureAtCoordinate=function(t,e,r,i,o,s){var a=2*(i=Math.round(i))+1,l=Os(this.hitDetectionTransform_,i+.5,i+.5,1/e,-1/e,-r,-t[0],-t[1]),c=!this.hitDetectionContext_;c&&(this.hitDetectionContext_=to(a,a));var d,f=this.hitDetectionContext_;f.canvas.width!==a||f.canvas.height!==a?(f.canvas.width=a,f.canvas.height=a):c||f.clearRect(0,0,a,a),void 0!==this.renderBuffer_&&(lf(d=[1/0,1/0,-1/0,-1/0],t),Ug(d,e*(this.renderBuffer_+i),d));var v,g=function nX(n){if(void 0!==oD[n])return oD[n];for(var t=2*n+1,e=n*n,r=new Array(e+1),i=0;i<=n;++i)for(var o=0;o<=n;++o){var s=i*i+o*o;if(s>e)break;var a=r[s];a||(r[s]=a=[]),a.push(4*((n+i)*t+(n+o))+3),i>0&&a.push(4*((n-i)*t+(n+o))+3),o>0&&(a.push(4*((n+i)*t+(n-o))+3),i>0&&a.push(4*((n-i)*t+(n-o))+3))}for(var l=[],c=(i=0,r.length);i<c;++i)r[i]&&l.push.apply(l,r[i]);return oD[n]=l,l}(i);function m(N,j){for(var H=f.getImageData(0,0,a,a).data,X=0,pe=g.length;X<pe;X++)if(H[g[X]]>0){if(!s||"Image"!==v&&"Text"!==v||-1!==s.indexOf(N)){var me=(g[X]-3)/4,ye=i-me%a,_e=i-(me/a|0),$e=o(N,j,ye*ye+_e*_e);if($e)return $e}f.clearRect(0,0,a,a);break}}var w,x,E,S,T,y=Object.keys(this.executorsByZIndex_).map(Number);for(y.sort(sc),w=y.length-1;w>=0;--w){var O=y[w].toString();for(E=this.executorsByZIndex_[O],x=iD.length-1;x>=0;--x)if(void 0!==(S=E[v=iD[x]])&&(T=S.executeHitDetection(f,l,r,m,d)))return T}},n.prototype.getClipCoords=function(t){var e=this.maxExtent_;if(!e)return null;var r=e[0],i=e[1],o=e[2],s=e[3],a=[r,i,r,s,o,s,o,i];return gc(a,0,8,2,t,a),a},n.prototype.isEmpty=function(){return zg(this.executorsByZIndex_)},n.prototype.execute=function(t,e,r,i,o,s,a){var l=Object.keys(this.executorsByZIndex_).map(Number);l.sort(sc),this.maxExtent_&&(t.save(),this.clip(t,r));var f,d,g,v,m,y,c=s||iD;for(a&&l.reverse(),f=0,d=l.length;f<d;++f){var w=l[f].toString();for(m=this.executorsByZIndex_[w],g=0,v=c.length;g<v;++g)void 0!==(y=m[c[g]])&&y.execute(t,e,r,i,o,a)}this.maxExtent_&&t.restore()},n}(),oD={};const KN=tX;var rX=function(){var n=function(t,e){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,i){r.__proto__=i}||function(r,i){for(var o in i)Object.prototype.hasOwnProperty.call(i,o)&&(r[o]=i[o])})(t,e)};return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function r(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)}}(),iX=function(n){function t(e,r,i,o,s,a,l){var c=n.call(this)||this;return c.context_=e,c.pixelRatio_=r,c.extent_=i,c.transform_=o,c.viewRotation_=s,c.squaredTolerance_=a,c.userTransform_=l,c.contextFillState_=null,c.contextStrokeState_=null,c.contextTextState_=null,c.fillState_=null,c.strokeState_=null,c.image_=null,c.imageAnchorX_=0,c.imageAnchorY_=0,c.imageHeight_=0,c.imageOpacity_=0,c.imageOriginX_=0,c.imageOriginY_=0,c.imageRotateWithView_=!1,c.imageRotation_=0,c.imageScale_=[0,0],c.imageWidth_=0,c.text_="",c.textOffsetX_=0,c.textOffsetY_=0,c.textRotateWithView_=!1,c.textRotation_=0,c.textScale_=[0,0],c.textFillState_=null,c.textStrokeState_=null,c.textState_=null,c.pixelCoordinates_=[],c.tmpLocalTransform_=[1,0,0,1,0,0],c}return rX(t,n),t.prototype.drawImages_=function(e,r,i,o){if(this.image_){var s=gc(e,r,i,o,this.transform_,this.pixelCoordinates_),a=this.context_,l=this.tmpLocalTransform_,c=a.globalAlpha;1!=this.imageOpacity_&&(a.globalAlpha=c*this.imageOpacity_);var f=this.imageRotation_;this.imageRotateWithView_&&(f+=this.viewRotation_);for(var d=0,g=s.length;d<g;d+=2){var v=s[d]-this.imageAnchorX_,m=s[d+1]-this.imageAnchorY_;if(0!==f||1!=this.imageScale_[0]||1!=this.imageScale_[1]){var y=v+this.imageAnchorX_,w=m+this.imageAnchorY_;Os(l,y,w,1,1,f,-y,-w),a.setTransform.apply(a,l),a.translate(y,w),a.scale(this.imageScale_[0],this.imageScale_[1]),a.drawImage(this.image_,this.imageOriginX_,this.imageOriginY_,this.imageWidth_,this.imageHeight_,-this.imageAnchorX_,-this.imageAnchorY_,this.imageWidth_,this.imageHeight_),a.setTransform(1,0,0,1,0,0)}else a.drawImage(this.image_,this.imageOriginX_,this.imageOriginY_,this.imageWidth_,this.imageHeight_,v,m,this.imageWidth_,this.imageHeight_)}1!=this.imageOpacity_&&(a.globalAlpha=c)}},t.prototype.drawText_=function(e,r,i,o){if(this.textState_&&""!==this.text_){this.textFillState_&&this.setContextFillState_(this.textFillState_),this.textStrokeState_&&this.setContextStrokeState_(this.textStrokeState_),this.setContextTextState_(this.textState_);var s=gc(e,r,i,o,this.transform_,this.pixelCoordinates_),a=this.context_,l=this.textRotation_;for(this.textRotateWithView_&&(l+=this.viewRotation_);r<i;r+=o){var c=s[r]+this.textOffsetX_,f=s[r+1]+this.textOffsetY_;if(0!==l||1!=this.textScale_[0]||1!=this.textScale_[1]){var d=Os(this.tmpLocalTransform_,c,f,1,1,l,-c,-f);a.setTransform.apply(a,d),a.translate(c,f),a.scale(this.textScale_[0],this.textScale_[1]),this.textStrokeState_&&a.strokeText(this.text_,0,0),this.textFillState_&&a.fillText(this.text_,0,0),a.setTransform(1,0,0,1,0,0)}else this.textStrokeState_&&a.strokeText(this.text_,c,f),this.textFillState_&&a.fillText(this.text_,c,f)}}},t.prototype.moveToLineTo_=function(e,r,i,o,s){var a=this.context_,l=gc(e,r,i,o,this.transform_,this.pixelCoordinates_);a.moveTo(l[0],l[1]);var c=l.length;s&&(c-=2);for(var f=2;f<c;f+=2)a.lineTo(l[f],l[f+1]);return s&&a.closePath(),i},t.prototype.drawRings_=function(e,r,i,o){for(var s=0,a=i.length;s<a;++s)r=this.moveToLineTo_(e,r,i[s],o,!0);return r},t.prototype.drawCircle=function(e){if(ui(this.extent_,e.getExtent())){if(this.fillState_||this.strokeState_){this.fillState_&&this.setContextFillState_(this.fillState_),this.strokeState_&&this.setContextStrokeState_(this.strokeState_);var r=function jz(n,t,e){var r=n.getFlatCoordinates();if(r){var i=n.getStride();return gc(r,0,r.length,i,t,e)}return null}(e,this.transform_,this.pixelCoordinates_),i=r[2]-r[0],o=r[3]-r[1],s=Math.sqrt(i*i+o*o),a=this.context_;a.beginPath(),a.arc(r[0],r[1],s,0,2*Math.PI),this.fillState_&&a.fill(),this.strokeState_&&a.stroke()}""!==this.text_&&this.drawText_(e.getCenter(),0,2,2)}},t.prototype.setStyle=function(e){this.setFillStrokeStyle(e.getFill(),e.getStroke()),this.setImageStyle(e.getImage()),this.setTextStyle(e.getText())},t.prototype.setTransform=function(e){this.transform_=e},t.prototype.drawGeometry=function(e){switch(e.getType()){case"Point":this.drawPoint(e);break;case"LineString":this.drawLineString(e);break;case"Polygon":this.drawPolygon(e);break;case"MultiPoint":this.drawMultiPoint(e);break;case"MultiLineString":this.drawMultiLineString(e);break;case"MultiPolygon":this.drawMultiPolygon(e);break;case"GeometryCollection":this.drawGeometryCollection(e);break;case"Circle":this.drawCircle(e)}},t.prototype.drawFeature=function(e,r){var i=r.getGeometryFunction()(e);!i||!ui(this.extent_,i.getExtent())||(this.setStyle(r),this.drawGeometry(i))},t.prototype.drawGeometryCollection=function(e){for(var r=e.getGeometriesArray(),i=0,o=r.length;i<o;++i)this.drawGeometry(r[i])},t.prototype.drawPoint=function(e){this.squaredTolerance_&&(e=e.simplifyTransformed(this.squaredTolerance_,this.userTransform_));var r=e.getFlatCoordinates(),i=e.getStride();this.image_&&this.drawImages_(r,0,r.length,i),""!==this.text_&&this.drawText_(r,0,r.length,i)},t.prototype.drawMultiPoint=function(e){this.squaredTolerance_&&(e=e.simplifyTransformed(this.squaredTolerance_,this.userTransform_));var r=e.getFlatCoordinates(),i=e.getStride();this.image_&&this.drawImages_(r,0,r.length,i),""!==this.text_&&this.drawText_(r,0,r.length,i)},t.prototype.drawLineString=function(e){if(this.squaredTolerance_&&(e=e.simplifyTransformed(this.squaredTolerance_,this.userTransform_)),ui(this.extent_,e.getExtent())){if(this.strokeState_){this.setContextStrokeState_(this.strokeState_);var r=this.context_,i=e.getFlatCoordinates();r.beginPath(),this.moveToLineTo_(i,0,i.length,e.getStride(),!1),r.stroke()}if(""!==this.text_){var o=e.getFlatMidpoint();this.drawText_(o,0,2,2)}}},t.prototype.drawMultiLineString=function(e){this.squaredTolerance_&&(e=e.simplifyTransformed(this.squaredTolerance_,this.userTransform_));var r=e.getExtent();if(ui(this.extent_,r)){if(this.strokeState_){this.setContextStrokeState_(this.strokeState_);var i=this.context_,o=e.getFlatCoordinates(),s=0,a=e.getEnds(),l=e.getStride();i.beginPath();for(var c=0,f=a.length;c<f;++c)s=this.moveToLineTo_(o,s,a[c],l,!1);i.stroke()}if(""!==this.text_){var d=e.getFlatMidpoints();this.drawText_(d,0,d.length,2)}}},t.prototype.drawPolygon=function(e){if(this.squaredTolerance_&&(e=e.simplifyTransformed(this.squaredTolerance_,this.userTransform_)),ui(this.extent_,e.getExtent())){if(this.strokeState_||this.fillState_){this.fillState_&&this.setContextFillState_(this.fillState_),this.strokeState_&&this.setContextStrokeState_(this.strokeState_);var r=this.context_;r.beginPath(),this.drawRings_(e.getOrientedFlatCoordinates(),0,e.getEnds(),e.getStride()),this.fillState_&&r.fill(),this.strokeState_&&r.stroke()}if(""!==this.text_){var i=e.getFlatInteriorPoint();this.drawText_(i,0,2,2)}}},t.prototype.drawMultiPolygon=function(e){if(this.squaredTolerance_&&(e=e.simplifyTransformed(this.squaredTolerance_,this.userTransform_)),ui(this.extent_,e.getExtent())){if(this.strokeState_||this.fillState_){this.fillState_&&this.setContextFillState_(this.fillState_),this.strokeState_&&this.setContextStrokeState_(this.strokeState_);var r=this.context_,i=e.getOrientedFlatCoordinates(),o=0,s=e.getEndss(),a=e.getStride();r.beginPath();for(var l=0,c=s.length;l<c;++l)o=this.drawRings_(i,o,s[l],a);this.fillState_&&r.fill(),this.strokeState_&&r.stroke()}if(""!==this.text_){var d=e.getFlatInteriorPoints();this.drawText_(d,0,d.length,2)}}},t.prototype.setContextFillState_=function(e){var r=this.context_,i=this.contextFillState_;i?i.fillStyle!=e.fillStyle&&(i.fillStyle=e.fillStyle,r.fillStyle=e.fillStyle):(r.fillStyle=e.fillStyle,this.contextFillState_={fillStyle:e.fillStyle})},t.prototype.setContextStrokeState_=function(e){var r=this.context_,i=this.contextStrokeState_;i?(i.lineCap!=e.lineCap&&(i.lineCap=e.lineCap,r.lineCap=e.lineCap),r.setLineDash&&(ac(i.lineDash,e.lineDash)||r.setLineDash(i.lineDash=e.lineDash),i.lineDashOffset!=e.lineDashOffset&&(i.lineDashOffset=e.lineDashOffset,r.lineDashOffset=e.lineDashOffset)),i.lineJoin!=e.lineJoin&&(i.lineJoin=e.lineJoin,r.lineJoin=e.lineJoin),i.lineWidth!=e.lineWidth&&(i.lineWidth=e.lineWidth,r.lineWidth=e.lineWidth),i.miterLimit!=e.miterLimit&&(i.miterLimit=e.miterLimit,r.miterLimit=e.miterLimit),i.strokeStyle!=e.strokeStyle&&(i.strokeStyle=e.strokeStyle,r.strokeStyle=e.strokeStyle)):(r.lineCap=e.lineCap,r.setLineDash&&(r.setLineDash(e.lineDash),r.lineDashOffset=e.lineDashOffset),r.lineJoin=e.lineJoin,r.lineWidth=e.lineWidth,r.miterLimit=e.miterLimit,r.strokeStyle=e.strokeStyle,this.contextStrokeState_={lineCap:e.lineCap,lineDash:e.lineDash,lineDashOffset:e.lineDashOffset,lineJoin:e.lineJoin,lineWidth:e.lineWidth,miterLimit:e.miterLimit,strokeStyle:e.strokeStyle})},t.prototype.setContextTextState_=function(e){var r=this.context_,i=this.contextTextState_,o=e.textAlign?e.textAlign:Yg;i?(i.font!=e.font&&(i.font=e.font,r.font=e.font),i.textAlign!=o&&(i.textAlign=o,r.textAlign=o),i.textBaseline!=e.textBaseline&&(i.textBaseline=e.textBaseline,r.textBaseline=e.textBaseline)):(r.font=e.font,r.textAlign=o,r.textBaseline=e.textBaseline,this.contextTextState_={font:e.font,textAlign:o,textBaseline:e.textBaseline})},t.prototype.setFillStrokeStyle=function(e,r){var i=this;if(e){var o=e.getColor();this.fillState_={fillStyle:Fs(o||Da)}}else this.fillState_=null;if(r){var s=r.getColor(),a=r.getLineCap(),l=r.getLineDash(),c=r.getLineDashOffset(),f=r.getLineJoin(),d=r.getWidth(),g=r.getMiterLimit(),v=l||Wg;this.strokeState_={lineCap:void 0!==a?a:R0,lineDash:1===this.pixelRatio_?v:v.map(function(m){return m*i.pixelRatio_}),lineDashOffset:(c||0)*this.pixelRatio_,lineJoin:void 0!==f?f:df,lineWidth:(void 0!==d?d:1)*this.pixelRatio_,miterLimit:void 0!==g?g:10,strokeStyle:Fs(s||Zg)}}else this.strokeState_=null},t.prototype.setImageStyle=function(e){var r;if(e&&(r=e.getSize())){var i=e.getAnchor(),o=e.getOrigin();this.image_=e.getImage(this.pixelRatio_),this.imageAnchorX_=i[0]*this.pixelRatio_,this.imageAnchorY_=i[1]*this.pixelRatio_,this.imageHeight_=r[1]*this.pixelRatio_,this.imageOpacity_=e.getOpacity(),this.imageOriginX_=o[0],this.imageOriginY_=o[1],this.imageRotateWithView_=e.getRotateWithView(),this.imageRotation_=e.getRotation(),this.imageScale_=e.getScaleArray(),this.imageWidth_=r[0]*this.pixelRatio_}else this.image_=null},t.prototype.setTextStyle=function(e){if(e){var r=e.getFill();if(r){var i=r.getColor();this.textFillState_={fillStyle:Fs(i||Da)}}else this.textFillState_=null;var o=e.getStroke();if(o){var s=o.getColor(),a=o.getLineCap(),l=o.getLineDash(),c=o.getLineDashOffset(),f=o.getLineJoin(),d=o.getWidth(),g=o.getMiterLimit();this.textStrokeState_={lineCap:void 0!==a?a:R0,lineDash:l||Wg,lineDashOffset:c||0,lineJoin:void 0!==f?f:df,lineWidth:void 0!==d?d:1,miterLimit:void 0!==g?g:10,strokeStyle:Fs(s||Zg)}}else this.textStrokeState_=null;var v=e.getFont(),m=e.getOffsetX(),y=e.getOffsetY(),w=e.getRotateWithView(),x=e.getRotation(),E=e.getScaleArray(),S=e.getText(),T=e.getTextAlign(),O=e.getTextBaseline();this.textState_={font:void 0!==v?v:kk,textAlign:void 0!==T?T:Yg,textBaseline:void 0!==O?O:O0},this.text_=void 0!==S?Array.isArray(S)?S.reduce(function(N,j,H){return N+(H%2?" ":j)},""):S:"",this.textOffsetX_=void 0!==m?this.pixelRatio_*m:0,this.textOffsetY_=void 0!==y?this.pixelRatio_*y:0,this.textRotateWithView_=void 0!==w&&w,this.textRotation_=void 0!==x?x:0,this.textScale_=[this.pixelRatio_*E[0],this.pixelRatio_*E[1]]}else this.text_=""},t}(HN);const oX=iX;var sX=function(){var n=function(t,e){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,i){r.__proto__=i}||function(r,i){for(var o in i)Object.prototype.hasOwnProperty.call(i,o)&&(r[o]=i[o])})(t,e)};return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function r(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)}}(),Ev=null,aX=function(n){function t(e,r,i,o,s,a){var l=n.call(this)||this;return l.hitDetectionImage_=null,l.image_=e||new Image,null!==o&&(l.image_.crossOrigin=o),l.canvas_={},l.color_=a,l.unlisten_=null,l.imageState_=s,l.size_=i,l.src_=r,l}return sX(t,n),t.prototype.isTainted_=function(){if(void 0===this.tainted_&&2===this.imageState_){Ev||(Ev=to(1,1)),Ev.drawImage(this.image_,0,0);try{Ev.getImageData(0,0,1,1),this.tainted_=!1}catch(e){Ev=null,this.tainted_=!0}}return!0===this.tainted_},t.prototype.dispatchChangeEvent_=function(){this.dispatchEvent("change")},t.prototype.handleImageError_=function(){this.imageState_=3,this.unlistenImage_(),this.dispatchChangeEvent_()},t.prototype.handleImageLoad_=function(){this.imageState_=2,this.size_?(this.image_.width=this.size_[0],this.image_.height=this.size_[1]):this.size_=[this.image_.width,this.image_.height],this.unlistenImage_(),this.dispatchChangeEvent_()},t.prototype.getImage=function(e){return this.replaceColor_(e),this.canvas_[e]?this.canvas_[e]:this.image_},t.prototype.getPixelRatio=function(e){return this.replaceColor_(e),this.canvas_[e]?e:1},t.prototype.getImageState=function(){return this.imageState_},t.prototype.getHitDetectionImage=function(){if(!this.hitDetectionImage_)if(this.isTainted_()){var e=this.size_[0],r=this.size_[1],i=to(e,r);i.fillRect(0,0,e,r),this.hitDetectionImage_=i.canvas}else this.hitDetectionImage_=this.image_;return this.hitDetectionImage_},t.prototype.getSize=function(){return this.size_},t.prototype.getSrc=function(){return this.src_},t.prototype.load=function(){if(0==this.imageState_){this.imageState_=1;try{this.image_.src=this.src_}catch(e){this.handleImageError_()}this.unlisten_=Fb(this.image_,this.handleImageLoad_.bind(this),this.handleImageError_.bind(this))}},t.prototype.replaceColor_=function(e){if(this.color_&&!this.canvas_[e]&&2===this.imageState_){var r=document.createElement("canvas");this.canvas_[e]=r,r.width=Math.ceil(this.image_.width*e),r.height=Math.ceil(this.image_.height*e);var i=r.getContext("2d");if(i.scale(e,e),i.drawImage(this.image_,0,0),i.globalCompositeOperation="multiply","multiply"===i.globalCompositeOperation||this.isTainted_())i.fillStyle=gk(this.color_),i.fillRect(0,0,r.width/e,r.height/e),i.globalCompositeOperation="destination-in",i.drawImage(this.image_,0,0);else{for(var o=i.getImageData(0,0,r.width,r.height),s=o.data,a=this.color_[0]/255,l=this.color_[1]/255,c=this.color_[2]/255,f=this.color_[3],d=0,g=s.length;d<g;d+=4)s[d]*=a,s[d+1]*=l,s[d+2]*=c,s[d+3]*=f;i.putImageData(o,0,0)}}},t.prototype.unlistenImage_=function(){this.unlisten_&&(this.unlisten_(),this.unlisten_=null)},t}(ff),uX=function(){var n=function(t,e){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,i){r.__proto__=i}||function(r,i){for(var o in i)Object.prototype.hasOwnProperty.call(i,o)&&(r[o]=i[o])})(t,e)};return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function r(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)}}(),cX=function(n){function t(e){var r=this,i=e||{};(r=n.call(this,{opacity:void 0!==i.opacity?i.opacity:1,rotation:void 0!==i.rotation?i.rotation:0,scale:void 0!==i.scale?i.scale:1,displacement:void 0!==i.displacement?i.displacement:[0,0],rotateWithView:void 0!==i.rotateWithView&&i.rotateWithView,declutterMode:i.declutterMode})||this).anchor_=void 0!==i.anchor?i.anchor:[.5,.5],r.normalizedAnchor_=null,r.anchorOrigin_=void 0!==i.anchorOrigin?i.anchorOrigin:"top-left",r.anchorXUnits_=void 0!==i.anchorXUnits?i.anchorXUnits:"fraction",r.anchorYUnits_=void 0!==i.anchorYUnits?i.anchorYUnits:"fraction",r.crossOrigin_=void 0!==i.crossOrigin?i.crossOrigin:null;var c=void 0!==i.img?i.img:null;r.imgSize_=i.imgSize;var f=i.src;ct(!(void 0!==f&&c),4),ct(!c||c&&r.imgSize_,5),(void 0===f||0===f.length)&&c&&(f=c.src||kt(c)),ct(void 0!==f&&f.length>0,6);var d=void 0!==i.src?0:2;return r.color_=void 0!==i.color?M0(i.color):null,r.iconImage_=function lX(n,t,e,r,i,o){var s=x0.get(t,r,o);return s||(s=new aX(n,t,e,r,i,o),x0.set(t,r,o,s)),s}(c,f,void 0!==r.imgSize_?r.imgSize_:null,r.crossOrigin_,d,r.color_),r.offset_=void 0!==i.offset?i.offset:[0,0],r.offsetOrigin_=void 0!==i.offsetOrigin?i.offsetOrigin:"top-left",r.origin_=null,r.size_=void 0!==i.size?i.size:null,r}return uX(t,n),t.prototype.clone=function(){var e=this.getScale();return new t({anchor:this.anchor_.slice(),anchorOrigin:this.anchorOrigin_,anchorXUnits:this.anchorXUnits_,anchorYUnits:this.anchorYUnits_,color:this.color_&&this.color_.slice?this.color_.slice():this.color_||void 0,crossOrigin:this.crossOrigin_,imgSize:this.imgSize_,offset:this.offset_.slice(),offsetOrigin:this.offsetOrigin_,opacity:this.getOpacity(),rotateWithView:this.getRotateWithView(),rotation:this.getRotation(),scale:Array.isArray(e)?e.slice():e,size:null!==this.size_?this.size_.slice():void 0,src:this.getSrc(),displacement:this.getDisplacement().slice(),declutterMode:this.getDeclutterMode()})},t.prototype.getAnchor=function(){var e=this.normalizedAnchor_;if(!e){e=this.anchor_;var r=this.getSize();if("fraction"==this.anchorXUnits_||"fraction"==this.anchorYUnits_){if(!r)return null;e=this.anchor_.slice(),"fraction"==this.anchorXUnits_&&(e[0]*=r[0]),"fraction"==this.anchorYUnits_&&(e[1]*=r[1])}if("top-left"!=this.anchorOrigin_){if(!r)return null;e===this.anchor_&&(e=this.anchor_.slice()),("top-right"==this.anchorOrigin_||"bottom-right"==this.anchorOrigin_)&&(e[0]=-e[0]+r[0]),("bottom-left"==this.anchorOrigin_||"bottom-right"==this.anchorOrigin_)&&(e[1]=-e[1]+r[1])}this.normalizedAnchor_=e}var i=this.getDisplacement();return[e[0]-i[0],e[1]+i[1]]},t.prototype.setAnchor=function(e){this.anchor_=e,this.normalizedAnchor_=null},t.prototype.getColor=function(){return this.color_},t.prototype.getImage=function(e){return this.iconImage_.getImage(e)},t.prototype.getPixelRatio=function(e){return this.iconImage_.getPixelRatio(e)},t.prototype.getImageSize=function(){return this.iconImage_.getSize()},t.prototype.getImageState=function(){return this.iconImage_.getImageState()},t.prototype.getHitDetectionImage=function(){return this.iconImage_.getHitDetectionImage()},t.prototype.getOrigin=function(){if(this.origin_)return this.origin_;var e=this.offset_;if("top-left"!=this.offsetOrigin_){var r=this.getSize(),i=this.iconImage_.getSize();if(!r||!i)return null;e=e.slice(),("top-right"==this.offsetOrigin_||"bottom-right"==this.offsetOrigin_)&&(e[0]=i[0]-r[0]-e[0]),("bottom-left"==this.offsetOrigin_||"bottom-right"==this.offsetOrigin_)&&(e[1]=i[1]-r[1]-e[1])}return this.origin_=e,this.origin_},t.prototype.getSrc=function(){return this.iconImage_.getSrc()},t.prototype.getSize=function(){return this.size_?this.size_:this.iconImage_.getSize()},t.prototype.listenImageChange=function(e){this.iconImage_.addEventListener("change",e)},t.prototype.load=function(){this.iconImage_.load()},t.prototype.unlistenImageChange=function(e){this.iconImage_.removeEventListener("change",e)},t}(VN);const ZN=cX;var Vs=.5,YN={Point:function EX(n,t,e,r,i){var a,o=e.getImage(),s=e.getText();if(o){if(2!=o.getImageState())return;var l=n;if(i){var c=o.getDeclutterMode();if("none"!==c)if(l=i,"obstacle"===c){var f=n.getBuilder(e.getZIndex(),"Image");f.setImageStyle(o,a),f.drawPoint(t,r)}else s&&s.getText()&&(a={})}var d=l.getBuilder(e.getZIndex(),"Image");d.setImageStyle(o,a),d.drawPoint(t,r)}if(s&&s.getText()){var g=n;i&&(g=i);var v=g.getBuilder(e.getZIndex(),"Text");v.setTextStyle(s,a),v.drawText(t,r)}},LineString:function yX(n,t,e,r,i){var o=e.getStroke();if(o){var s=n.getBuilder(e.getZIndex(),"LineString");s.setFillStrokeStyle(null,o),s.drawLineString(t,r)}var a=e.getText();if(a&&a.getText()){var l=(i||n).getBuilder(e.getZIndex(),"Text");l.setTextStyle(a),l.drawText(t,r)}},Polygon:function xX(n,t,e,r,i){var o=e.getFill(),s=e.getStroke();if(o||s){var a=n.getBuilder(e.getZIndex(),"Polygon");a.setFillStrokeStyle(o,s),a.drawPolygon(t,r)}var l=e.getText();if(l&&l.getText()){var c=(i||n).getBuilder(e.getZIndex(),"Text");c.setTextStyle(l),c.drawText(t,r)}},MultiPoint:function MX(n,t,e,r,i){var a,o=e.getImage(),s=e.getText();if(o){if(2!=o.getImageState())return;var l=n;if(i){var c=o.getDeclutterMode();if("none"!==c)if(l=i,"obstacle"===c){var f=n.getBuilder(e.getZIndex(),"Image");f.setImageStyle(o,a),f.drawMultiPoint(t,r)}else s&&s.getText()&&(a={})}var d=l.getBuilder(e.getZIndex(),"Image");d.setImageStyle(o,a),d.drawMultiPoint(t,r)}if(s&&s.getText()){var g=n;i&&(g=i);var v=g.getBuilder(e.getZIndex(),"Text");v.setTextStyle(s,a),v.drawText(t,r)}},MultiLineString:function CX(n,t,e,r,i){var o=e.getStroke();if(o){var s=n.getBuilder(e.getZIndex(),"LineString");s.setFillStrokeStyle(null,o),s.drawMultiLineString(t,r)}var a=e.getText();if(a&&a.getText()){var l=(i||n).getBuilder(e.getZIndex(),"Text");l.setTextStyle(a),l.drawText(t,r)}},MultiPolygon:function wX(n,t,e,r,i){var o=e.getFill(),s=e.getStroke();if(s||o){var a=n.getBuilder(e.getZIndex(),"Polygon");a.setFillStrokeStyle(o,s),a.drawMultiPolygon(t,r)}var l=e.getText();if(l&&l.getText()){var c=(i||n).getBuilder(e.getZIndex(),"Text");c.setTextStyle(l),c.drawText(t,r)}},GeometryCollection:function _X(n,t,e,r,i){var s,a,o=t.getGeometriesArray();for(s=0,a=o.length;s<a;++s)(0,YN[o[s].getType()])(n,o[s],e,r,i)},Circle:function vX(n,t,e,r,i){var o=e.getFill(),s=e.getStroke();if(o||s){var a=n.getBuilder(e.getZIndex(),"Circle");a.setFillStrokeStyle(o,s),a.drawCircle(t,r)}var l=e.getText();if(l&&l.getText()){var c=(i||n).getBuilder(e.getZIndex(),"Text");c.setTextStyle(l),c.drawText(t,r)}}};function pX(n,t){return parseInt(kt(n),10)-parseInt(kt(t),10)}function sD(n,t){return.5*n/t}function XN(n,t,e,r,i,o,s){var a=!1,l=e.getImage();if(l){var c=l.getImageState();2==c||3==c?l.unlistenImageChange(i):(0==c&&l.load(),l.listenImageChange(i),a=!0)}return function mX(n,t,e,r,i,o){var s=e.getGeometryFunction()(t);if(s){var a=s.simplifyTransformed(r,i);e.getRenderer()?QN(n,a,e,t):(0,YN[a.getType()])(n,a,e,t,o)}}(n,t,e,r,o,s),a}function QN(n,t,e,r){if("GeometryCollection"!=t.getType())n.getBuilder(e.getZIndex(),"Default").drawCustom(t,r,e.getRenderer(),e.getHitDetectionRenderer());else for(var i=t.getGeometries(),o=0,s=i.length;o<s;++o)QN(n,i[o],e,r)}var bX=function(){var n=function(t,e){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,i){r.__proto__=i}||function(r,i){for(var o in i)Object.prototype.hasOwnProperty.call(i,o)&&(r[o]=i[o])})(t,e)};return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function r(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)}}(),DX=function(n){function t(e){var r=n.call(this,e)||this;return r.boundHandleStyleImageChange_=r.handleStyleImageChange_.bind(r),r.hitDetectionImageData_=null,r.renderedFeatures_=null,r.renderedRevision_=-1,r.renderedResolution_=NaN,r.renderedExtent_=[1/0,1/0,-1/0,-1/0],r.wrappedRenderedExtent_=[1/0,1/0,-1/0,-1/0],r.renderedCenter_=null,r.renderedProjection_=null,r.renderedRenderOrder_=null,r.replayGroup_=null,r.replayGroupChanged=!0,r.declutterExecutorGroup=null,r.clipping=!0,r.compositionContext_=null,r.opacity_=1,r}return bX(t,n),t.prototype.renderWorlds=function(e,r,i){var o=r.extent,s=r.viewState,a=s.center,l=s.resolution,c=s.projection,f=s.rotation,d=c.getExtent(),g=this.getLayer().getSource(),v=r.pixelRatio,m=r.viewHints,y=!(m[0]||m[1]),w=this.compositionContext_,x=Math.round(r.size[0]*v),E=Math.round(r.size[1]*v),S=g.getWrapX()&&c.canWrapX(),T=S?Yt(d):null,O=S?Math.ceil((o[2]-d[2])/T)+1:1,N=S?Math.floor((o[0]-d[0])/T):0;do{var j=this.getRenderTransform(a,l,f,v,x,E,N*T);e.execute(w,1,j,f,y,void 0,i)}while(++N<O)},t.prototype.setupCompositionContext_=function(){if(1!==this.opacity_){var e=to(this.context.canvas.width,this.context.canvas.height,DL);this.compositionContext_=e}else this.compositionContext_=this.context},t.prototype.releaseCompositionContext_=function(){if(1!==this.opacity_){var e=this.context.globalAlpha;this.context.globalAlpha=this.opacity_,this.context.drawImage(this.compositionContext_.canvas,0,0),this.context.globalAlpha=e,Ok(this.compositionContext_),DL.push(this.compositionContext_.canvas),this.compositionContext_=null}},t.prototype.renderDeclutter=function(e){this.declutterExecutorGroup&&(this.setupCompositionContext_(),this.renderWorlds(this.declutterExecutorGroup,e,e.declutterTree),this.releaseCompositionContext_())},t.prototype.renderFrame=function(e,r){var i=e.pixelRatio,o=e.layerStatesArray[e.layerIndex];(function K5(n,t,e){(function Bg(n,t,e,r,i,o,s){return n[0]=t,n[1]=e,n[2]=r,n[3]=i,n[4]=o,n[5]=s,n})(n,t,0,0,e,0,0)})(this.pixelTransform,1/i,1/i),g0(this.inversePixelTransform,this.pixelTransform);var s=Bx(this.pixelTransform);this.useContainer(r,s,this.getBackground(e));var a=this.context,l=a.canvas,c=this.replayGroup_,f=this.declutterExecutorGroup;if((!c||c.isEmpty())&&(!f||f.isEmpty()))return null;var d=Math.round(e.size[0]*i),g=Math.round(e.size[1]*i);l.width!=d||l.height!=g?(l.width=d,l.height=g,l.style.transform!==s&&(l.style.transform=s)):this.containerReused||a.clearRect(0,0,d,g),this.preRender(a,e);var v=e.viewState;this.opacity_=o.opacity,this.setupCompositionContext_();var y=!1,w=!0;if(o.extent&&this.clipping){var x=pc(o.extent);(y=(w=ui(x,e.extent))&&!sf(x,e.extent))&&this.clipUnrotated(this.compositionContext_,e,x)}return w&&this.renderWorlds(c,e),y&&this.compositionContext_.restore(),this.releaseCompositionContext_(),this.postRender(a,e),this.renderedRotation_!==v.rotation&&(this.renderedRotation_=v.rotation,this.hitDetectionImageData_=null),this.container},t.prototype.getFeatures=function(e){return new Promise(function(r){if(!this.hitDetectionImageData_&&!this.animatingOrInteracting_){var i=[this.context.canvas.width,this.context.canvas.height];Zn(this.pixelTransform,i);var o=this.renderedCenter_,s=this.renderedResolution_,a=this.renderedRotation_,l=this.renderedProjection_,c=this.wrappedRenderedExtent_,f=this.getLayer(),d=[],g=i[0]*Vs,v=i[1]*Vs;d.push(this.getRenderTransform(o,s,a,Vs,g,v,0).slice());var m=f.getSource(),y=l.getExtent();if(m.getWrapX()&&l.canWrapX()&&!sf(y,c)){for(var w=c[0],x=Yt(y),E=0;w<y[0];)--E,d.push(this.getRenderTransform(o,s,a,Vs,g,v,x*E).slice()),w+=x;for(E=0,w=c[2];w>y[2];)++E,d.push(this.getRenderTransform(o,s,a,Vs,g,v,x*E).slice()),w-=x}this.hitDetectionImageData_=function hX(n,t,e,r,i,o,s){var c=to(n[0]*Vs,n[1]*Vs);c.imageSmoothingEnabled=!1;for(var f=c.canvas,d=new oX(c,Vs,i,null,s),g=e.length,v=Math.floor(16777215/g),m={},y=1;y<=g;++y){var w=e[y-1],x=w.getStyleFunction()||r;if(r){var E=x(w,o);if(E){Array.isArray(E)||(E=[E]);for(var T="#"+("000000"+(y*v).toString(16)).slice(-6),O=0,N=E.length;O<N;++O){var j=E[O],H=j.getGeometryFunction()(w);if(H&&ui(i,H.getExtent())){var X=j.clone(),pe=X.getFill();pe&&pe.setColor(T);var me=X.getStroke();me&&(me.setColor(T),me.setLineDash(null)),X.setText(void 0);var ye=j.getImage();if(ye&&0!==ye.getOpacity()){var _e=ye.getImageSize();if(!_e)continue;var $e=to(_e[0],_e[1],void 0,{alpha:!1}),We=$e.canvas;$e.fillStyle=T,$e.fillRect(0,0,We.width,We.height),X.setImage(new ZN({img:We,imgSize:_e,anchor:ye.getAnchor(),anchorXUnits:"pixels",anchorYUnits:"pixels",offset:ye.getOrigin(),opacity:1,size:ye.getSize(),scale:ye.getScale(),rotation:ye.getRotation(),rotateWithView:ye.getRotateWithView()}))}var we=X.getZIndex()||0;(be=m[we])||(m[we]=be={},be.Polygon=[],be.Circle=[],be.LineString=[],be.Point=[]),be[H.getType().replace("Multi","")].push(H,X)}}}}}for(var De=Object.keys(m).map(Number).sort(sc),mt=(y=0,De.length);y<mt;++y){var be=m[De[y]];for(var yt in be){var tn=be[yt];for(O=0,N=tn.length;O<N;O+=2){d.setStyle(tn[O+1]);for(var Z=0,Gn=t.length;Z<Gn;++Z)d.setTransform(t[Z]),d.drawGeometry(tn[O])}}}return c.getImageData(0,0,f.width,f.height)}(i,d,this.renderedFeatures_,f.getStyleFunction(),c,s,a)}r(function fX(n,t,e){var r=[];if(e){var i=Math.floor(Math.round(n[0])*Vs),o=Math.floor(Math.round(n[1])*Vs),s=4*(Sn(i,0,e.width-1)+Sn(o,0,e.height-1)*e.width),f=e.data[s+2]+256*(e.data[s+1]+256*e.data[s]),d=Math.floor(16777215/t.length);f&&f%d==0&&r.push(t[f/d-1])}return r}(e,this.renderedFeatures_,this.hitDetectionImageData_))}.bind(this))},t.prototype.forEachFeatureAtCoordinate=function(e,r,i,o,s){var a=this;if(this.replayGroup_){var v,l=r.viewState.resolution,c=r.viewState.rotation,f=this.getLayer(),d={},g=function(y,w,x){var E=kt(y),S=d[E];if(S){if(!0!==S&&x<S.distanceSq){if(0===x)return d[E]=!0,s.splice(s.lastIndexOf(S),1),o(y,f,w);S.geometry=w,S.distanceSq=x}}else{if(0===x)return d[E]=!0,o(y,f,w);s.push(d[E]={feature:y,layer:f,geometry:w,distanceSq:x,callback:o})}},m=[this.replayGroup_];return this.declutterExecutorGroup&&m.push(this.declutterExecutorGroup),m.some(function(y){return v=y.forEachFeatureAtCoordinate(e,l,c,i,g,y===a.declutterExecutorGroup&&r.declutterTree?r.declutterTree.all().map(function(w){return w.value}):null)}),v}},t.prototype.handleFontsChanged=function(){var e=this.getLayer();e.getVisible()&&this.replayGroup_&&e.changed()},t.prototype.handleStyleImageChange_=function(e){this.renderIfReadyAndVisible()},t.prototype.prepareFrame=function(e){var r=this.getLayer(),i=r.getSource();if(!i)return!1;var o=e.viewHints[0],s=e.viewHints[1],a=r.getUpdateWhileAnimating(),l=r.getUpdateWhileInteracting();if(this.ready&&!a&&o||!l&&s)return this.animatingOrInteracting_=!0,!0;this.animatingOrInteracting_=!1;var c=e.extent,f=e.viewState,d=f.projection,g=f.resolution,v=e.pixelRatio,m=r.getRevision(),y=r.getRenderBuffer(),w=r.getRenderOrder();void 0===w&&(w=pX);var x=f.center.slice(),E=Ug(c,y*g),S=E.slice(),T=[E.slice()],O=d.getExtent();if(i.getWrapX()&&d.canWrapX()&&!sf(O,e.extent)){var N=Yt(O),j=Math.max(Yt(E)/2,N);E[0]=O[0]-j,E[2]=O[2]+j,Dk(x,d);var H=fk(T[0],d);H[0]<O[0]&&H[2]<O[2]?T.push([H[0]+N,H[1],H[2]+N,H[3]]):H[0]>O[0]&&H[2]>O[2]&&T.push([H[0]-N,H[1],H[2]-N,H[3]])}if(this.ready&&this.renderedResolution_==g&&this.renderedRevision_==m&&this.renderedRenderOrder_==w&&sf(this.wrappedRenderedExtent_,E))return ac(this.renderedExtent_,S)||(this.hitDetectionImageData_=null,this.renderedExtent_=S),this.renderedCenter_=x,this.replayGroupChanged=!1,!0;this.replayGroup_=null;var pe,X=new $N(sD(g,v),E,g,v);this.getLayer().getDeclutter()&&(pe=new $N(sD(g,v),E,g,v));var ye,me=cb();if(me){for(var _e=0,$e=T.length;_e<$e;++_e){var we=fb(T[_e]);i.loadFeatures(we,Dz(g),me)}ye=Jg(me,d)}else for(_e=0,$e=T.length;_e<$e;++_e)i.loadFeatures(T[_e],g,d);var be=function gX(n,t){var e=sD(n,t);return e*e}(g,v),De=!0,mt=function(sn){var ht,br=sn.getStyleFunction()||r.getStyleFunction();if(br&&(ht=br(sn,g)),ht){var Ni=this.renderFeature(sn,be,ht,X,ye,pe);De=De&&!Ni}}.bind(this),yt=fb(E),tn=i.getFeaturesInExtent(yt);for(w&&tn.sort(w),_e=0,$e=tn.length;_e<$e;++_e)mt(tn[_e]);this.renderedFeatures_=tn,this.ready=De;var Z=X.finish(),Gn=new KN(E,g,v,i.getOverlaps(),Z,r.getRenderBuffer());return pe&&(this.declutterExecutorGroup=new KN(E,g,v,i.getOverlaps(),pe.finish(),r.getRenderBuffer())),this.renderedResolution_=g,this.renderedRevision_=m,this.renderedRenderOrder_=w,this.renderedExtent_=S,this.wrappedRenderedExtent_=E,this.renderedCenter_=x,this.renderedProjection_=d,this.replayGroup_=Gn,this.hitDetectionImageData_=null,this.replayGroupChanged=!0,!0},t.prototype.renderFeature=function(e,r,i,o,s,a){if(!i)return!1;var l=!1;if(Array.isArray(i))for(var c=0,f=i.length;c<f;++c)l=XN(o,e,i[c],r,this.boundHandleStyleImageChange_,s,a)||l;else l=XN(o,e,i,r,this.boundHandleStyleImageChange_,s,a);return l},t}(SL);const SX=DX;var IX=function(){var n=function(t,e){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,i){r.__proto__=i}||function(r,i){for(var o in i)Object.prototype.hasOwnProperty.call(i,o)&&(r[o]=i[o])})(t,e)};return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function r(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)}}(),TX=function(n){function t(e){return n.call(this,e)||this}return IX(t,n),t.prototype.createRenderer=function(){return new SX(this)},t}(OY);const JN=TX;var AX=function(){function n(t){this.rbush_=new FN(t),this.items_={}}return n.prototype.insert=function(t,e){var r={minX:t[0],minY:t[1],maxX:t[2],maxY:t[3],value:e};this.rbush_.insert(r),this.items_[kt(e)]=r},n.prototype.load=function(t,e){for(var r=new Array(e.length),i=0,o=e.length;i<o;i++){var s=t[i],a=e[i],l={minX:s[0],minY:s[1],maxX:s[2],maxY:s[3],value:a};r[i]=l,this.items_[kt(a)]=l}this.rbush_.load(r)},n.prototype.remove=function(t){var e=kt(t),r=this.items_[e];return delete this.items_[e],null!==this.rbush_.remove(r)},n.prototype.update=function(t,e){var r=this.items_[kt(e)];Gg([r.minX,r.minY,r.maxX,r.maxY],t)||(this.remove(e),this.insert(t,e))},n.prototype.getAll=function(){return this.rbush_.all().map(function(e){return e.value})},n.prototype.getInExtent=function(t){return this.rbush_.search({minX:t[0],minY:t[1],maxX:t[2],maxY:t[3]}).map(function(i){return i.value})},n.prototype.forEach=function(t){return this.forEach_(this.getAll(),t)},n.prototype.forEachInExtent=function(t,e){return this.forEach_(this.getInExtent(t),e)},n.prototype.forEach_=function(t,e){for(var r,i=0,o=t.length;i<o;i++)if(r=e(t[i]))return r;return r},n.prototype.isEmpty=function(){return zg(this.items_)},n.prototype.clear=function(){this.rbush_.clear(),this.items_={}},n.prototype.getExtent=function(t){var e=this.rbush_.toJSON();return Xo(e.minX,e.minY,e.maxX,e.maxY,t)},n.prototype.concat=function(t){for(var e in this.rbush_.load(t.rbush_.all()),t.items_)this.items_[e]=t.items_[e]},n}();const eF=AX;function RX(n,t){return[[-1/0,-1/0,1/0,1/0]]}function nF(n,t){return function(e,r,i,o,s){var a=this;!function OX(n,t,e,r,i,o,s){var a=new XMLHttpRequest;a.open("GET","function"==typeof n?n(e,r,i):n,!0),"arraybuffer"==t.getType()&&(a.responseType="arraybuffer"),a.withCredentials=false,a.onload=function(l){if(!a.status||a.status>=200&&a.status<300){var c=t.getType(),f=void 0;"json"==c||"text"==c?f=a.responseText:"xml"==c?(f=a.responseXML)||(f=(new DOMParser).parseFromString(a.responseText,"application/xml")):"arraybuffer"==c&&(f=a.response),f?o(t.readFeatures(f,{extent:e,featureProjection:i}),t.readProjection(f)):s()}else s()},a.onerror=s,a.send()}(n,t,e,r,i,function(l,c){a.addFeatures(l),void 0!==o&&o(l)},s||lc)}}var rF=function(){var n=function(t,e){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,i){r.__proto__=i}||function(r,i){for(var o in i)Object.prototype.hasOwnProperty.call(i,o)&&(r[o]=i[o])})(t,e)};return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function r(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)}}(),Fl=function(n){function t(e,r,i){var o=n.call(this,e)||this;return o.feature=r,o.features=i,o}return rF(t,n),t}(Qo),PX=function(n){function t(e){var r=this,i=e||{};(r=n.call(this,{attributions:i.attributions,interpolate:!0,projection:void 0,state:"ready",wrapX:void 0===i.wrapX||i.wrapX})||this).loader_=lc,r.format_=i.format,r.overlaps_=void 0===i.overlaps||i.overlaps,r.url_=i.url,void 0!==i.loader?r.loader_=i.loader:void 0!==r.url_&&(ct(r.format_,7),r.loader_=nF(r.url_,r.format_)),r.strategy_=void 0!==i.strategy?i.strategy:RX;var s,a,o=void 0===i.useSpatialIndex||i.useSpatialIndex;return r.featuresRtree_=o?new eF:null,r.loadedExtentsRtree_=new eF,r.loadingExtentsCount_=0,r.nullGeometryFeatures_={},r.idIndex_={},r.uidIndex_={},r.featureChangeKeys_={},r.featuresCollection_=null,Array.isArray(i.features)?a=i.features:i.features&&(a=(s=i.features).getArray()),!o&&void 0===s&&(s=new ci(a)),void 0!==a&&r.addFeaturesInternal(a),void 0!==s&&r.bindFeaturesCollection_(s),r}return rF(t,n),t.prototype.addFeature=function(e){this.addFeatureInternal(e),this.changed()},t.prototype.addFeatureInternal=function(e){var r=kt(e);if(this.addToIndex_(r,e)){this.setupChangeEvents_(r,e);var i=e.getGeometry();if(i){var o=i.getExtent();this.featuresRtree_&&this.featuresRtree_.insert(o,e)}else this.nullGeometryFeatures_[r]=e;this.dispatchEvent(new Fl("addfeature",e))}else this.featuresCollection_&&this.featuresCollection_.remove(e)},t.prototype.setupChangeEvents_=function(e,r){this.featureChangeKeys_[e]=[bt(r,"change",this.handleFeatureChange_,this),bt(r,"propertychange",this.handleFeatureChange_,this)]},t.prototype.addToIndex_=function(e,r){var i=!0,o=r.getId();return void 0!==o&&(o.toString()in this.idIndex_?i=!1:this.idIndex_[o.toString()]=r),i&&(ct(!(e in this.uidIndex_),30),this.uidIndex_[e]=r),i},t.prototype.addFeatures=function(e){this.addFeaturesInternal(e),this.changed()},t.prototype.addFeaturesInternal=function(e){for(var r=[],i=[],o=[],s=0,a=e.length;s<a;s++){var c=kt(l=e[s]);this.addToIndex_(c,l)&&i.push(l)}s=0;for(var f=i.length;s<f;s++){var l;c=kt(l=i[s]),this.setupChangeEvents_(c,l);var d=l.getGeometry();if(d){var g=d.getExtent();r.push(g),o.push(l)}else this.nullGeometryFeatures_[c]=l}if(this.featuresRtree_&&this.featuresRtree_.load(r,o),this.hasListener("addfeature")){s=0;for(var v=i.length;s<v;s++)this.dispatchEvent(new Fl("addfeature",i[s]))}},t.prototype.bindFeaturesCollection_=function(e){var r=!1;this.addEventListener("addfeature",function(i){r||(r=!0,e.push(i.feature),r=!1)}),this.addEventListener("removefeature",function(i){r||(r=!0,e.remove(i.feature),r=!1)}),e.addEventListener("add",function(i){r||(r=!0,this.addFeature(i.element),r=!1)}.bind(this)),e.addEventListener("remove",function(i){r||(r=!0,this.removeFeature(i.element),r=!1)}.bind(this)),this.featuresCollection_=e},t.prototype.clear=function(e){if(e){for(var r in this.featureChangeKeys_)this.featureChangeKeys_[r].forEach(pn);this.featuresCollection_||(this.featureChangeKeys_={},this.idIndex_={},this.uidIndex_={})}else if(this.featuresRtree_){var o=function(l){this.removeFeatureInternal(l)}.bind(this);for(var s in this.featuresRtree_.forEach(o),this.nullGeometryFeatures_)this.removeFeatureInternal(this.nullGeometryFeatures_[s])}this.featuresCollection_&&this.featuresCollection_.clear(),this.featuresRtree_&&this.featuresRtree_.clear(),this.nullGeometryFeatures_={};var a=new Fl("clear");this.dispatchEvent(a),this.changed()},t.prototype.forEachFeature=function(e){if(this.featuresRtree_)return this.featuresRtree_.forEach(e);this.featuresCollection_&&this.featuresCollection_.forEach(e)},t.prototype.forEachFeatureAtCoordinateDirect=function(e,r){return this.forEachFeatureInExtent([e[0],e[1],e[0],e[1]],function(o){if(o.getGeometry().intersectsCoordinate(e))return r(o)})},t.prototype.forEachFeatureInExtent=function(e,r){if(this.featuresRtree_)return this.featuresRtree_.forEachInExtent(e,r);this.featuresCollection_&&this.featuresCollection_.forEach(r)},t.prototype.forEachFeatureIntersectingExtent=function(e,r){return this.forEachFeatureInExtent(e,function(i){if(i.getGeometry().intersectsExtent(e)){var s=r(i);if(s)return s}})},t.prototype.getFeaturesCollection=function(){return this.featuresCollection_},t.prototype.getFeatures=function(){var e;return this.featuresCollection_?e=this.featuresCollection_.getArray().slice(0):this.featuresRtree_&&(e=this.featuresRtree_.getAll(),zg(this.nullGeometryFeatures_)||Ma(e,Ck(this.nullGeometryFeatures_))),e},t.prototype.getFeaturesAtCoordinate=function(e){var r=[];return this.forEachFeatureAtCoordinateDirect(e,function(i){r.push(i)}),r},t.prototype.getFeaturesInExtent=function(e,r){var i=this;if(this.featuresRtree_){if(!(r&&r.canWrapX()&&this.getWrapX()))return this.featuresRtree_.getInExtent(e);var s=function o8(n,t){if(t.canWrapX()){var e=t.getExtent();if(!isFinite(n[0])||!isFinite(n[2]))return[[e[0],n[1],e[2],n[3]]];fk(n,t);var r=Yt(e);if(Yt(n)>r)return[[e[0],n[1],e[2],n[3]]];if(n[0]<e[0])return[[n[0]+r,n[1],e[2],n[3]],[e[0],n[1],n[2],n[3]]];if(n[2]>e[2])return[[n[0],n[1],e[2],n[3]],[e[0],n[1],n[2]-r,n[3]]]}return[n]}(e,r);return[].concat.apply([],s.map(function(a){return i.featuresRtree_.getInExtent(a)}))}return this.featuresCollection_?this.featuresCollection_.getArray().slice(0):[]},t.prototype.getClosestFeatureToCoordinate=function(e,r){var i=e[0],o=e[1],s=null,a=[NaN,NaN],l=1/0,c=[-1/0,-1/0,1/0,1/0],f=r||xa;return this.featuresRtree_.forEachInExtent(c,function(d){if(f(d)){var g=d.getGeometry(),v=l;if((l=g.closestPointXY(i,o,a,l))<v){s=d;var m=Math.sqrt(l);c[0]=i-m,c[1]=o-m,c[2]=i+m,c[3]=o+m}}}),s},t.prototype.getExtent=function(e){return this.featuresRtree_.getExtent(e)},t.prototype.getFeatureById=function(e){var r=this.idIndex_[e.toString()];return void 0!==r?r:null},t.prototype.getFeatureByUid=function(e){var r=this.uidIndex_[e];return void 0!==r?r:null},t.prototype.getFormat=function(){return this.format_},t.prototype.getOverlaps=function(){return this.overlaps_},t.prototype.getUrl=function(){return this.url_},t.prototype.handleFeatureChange_=function(e){var r=e.target,i=kt(r),o=r.getGeometry();if(o){var s=o.getExtent();i in this.nullGeometryFeatures_?(delete this.nullGeometryFeatures_[i],this.featuresRtree_&&this.featuresRtree_.insert(s,r)):this.featuresRtree_&&this.featuresRtree_.update(s,r)}else i in this.nullGeometryFeatures_||(this.featuresRtree_&&this.featuresRtree_.remove(r),this.nullGeometryFeatures_[i]=r);var a=r.getId();if(void 0!==a){var l=a.toString();this.idIndex_[l]!==r&&(this.removeFromIdIndex_(r),this.idIndex_[l]=r)}else this.removeFromIdIndex_(r),this.uidIndex_[i]=r;this.changed(),this.dispatchEvent(new Fl("changefeature",r))},t.prototype.hasFeature=function(e){var r=e.getId();return void 0!==r?r in this.idIndex_:kt(e)in this.uidIndex_},t.prototype.isEmpty=function(){return this.featuresRtree_?this.featuresRtree_.isEmpty()&&zg(this.nullGeometryFeatures_):!this.featuresCollection_||0===this.featuresCollection_.getLength()},t.prototype.loadFeatures=function(e,r,i){for(var o=this.loadedExtentsRtree_,s=this.strategy_(e,r,i),a=function(d,g){var v=s[d];o.forEachInExtent(v,function(y){return sf(y.extent,v)})||(++l.loadingExtentsCount_,l.dispatchEvent(new Fl("featuresloadstart")),l.loader_.call(l,v,r,i,function(y){--this.loadingExtentsCount_,this.dispatchEvent(new Fl("featuresloadend",void 0,y))}.bind(l),function(){--this.loadingExtentsCount_,this.dispatchEvent(new Fl("featuresloaderror"))}.bind(l)),o.insert(v,{extent:v.slice()}))},l=this,c=0,f=s.length;c<f;++c)a(c);this.loading=!(this.loader_.length<4)&&this.loadingExtentsCount_>0},t.prototype.refresh=function(){this.clear(!0),this.loadedExtentsRtree_.clear(),n.prototype.refresh.call(this)},t.prototype.removeLoadedExtent=function(e){var i,r=this.loadedExtentsRtree_;r.forEachInExtent(e,function(o){if(Gg(o.extent,e))return i=o,!0}),i&&r.remove(i)},t.prototype.removeFeature=function(e){if(e){var r=kt(e);r in this.nullGeometryFeatures_?delete this.nullGeometryFeatures_[r]:this.featuresRtree_&&this.featuresRtree_.remove(e),this.removeFeatureInternal(e)&&this.changed()}},t.prototype.removeFeatureInternal=function(e){var r=kt(e),i=this.featureChangeKeys_[r];if(i){i.forEach(pn),delete this.featureChangeKeys_[r];var o=e.getId();return void 0!==o&&delete this.idIndex_[o.toString()],delete this.uidIndex_[r],this.dispatchEvent(new Fl("removefeature",e)),e}},t.prototype.removeFromIdIndex_=function(e){var r=!1;for(var i in this.idIndex_)if(this.idIndex_[i]===e){delete this.idIndex_[i],r=!0;break}return r},t.prototype.setLoader=function(e){this.loader_=e},t.prototype.setUrl=function(e){ct(this.format_,7),this.url_=e,this.setLoader(nF(e,this.format_))},t}(GL);const iF=PX;var oF=function(){var n=function(t,e){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,i){r.__proto__=i}||function(r,i){for(var o in i)Object.prototype.hasOwnProperty.call(i,o)&&(r[o]=i[o])})(t,e)};return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function r(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)}}(),lD=function(n){function t(e,r,i,o,s){var a=n.call(this,e)||this;return a.features=r,a.coordinate=i,a.startCoordinate=o,a.mapBrowserEvent=s,a}return oF(t,n),t}(Qo),kX=function(n){function t(e){var o,r=this,i=e||{};if((r=n.call(this,i)||this).lastCoordinate_=null,r.startCoordinate_=null,r.features_=void 0!==i.features?i.features:null,i.layers&&!r.features_)if("function"==typeof i.layers)o=i.layers;else{var s=i.layers;o=function(a){return nk(s,a)}}else o=xa;return r.layerFilter_=o,r.filter_=i.filter&&!r.features_?i.filter:xa,r.hitTolerance_=i.hitTolerance?i.hitTolerance:0,r.condition_=i.condition?i.condition:Ob,r.lastFeature_=null,r.addChangeListener("active",r.handleActiveChanged_),r}return oF(t,n),t.prototype.handleDownEvent=function(e){if(!e.originalEvent||!this.condition_(e))return!1;if(this.lastFeature_=this.featuresAtPixel_(e.pixel,e.map),!this.lastCoordinate_&&this.lastFeature_){this.startCoordinate_=e.coordinate,this.lastCoordinate_=e.coordinate,this.handleMoveEvent(e);var r=this.features_||new ci([this.lastFeature_]);return this.dispatchEvent(new lD("translatestart",r,e.coordinate,this.startCoordinate_,e)),!0}return!1},t.prototype.handleUpEvent=function(e){if(this.lastCoordinate_){this.lastCoordinate_=null,this.handleMoveEvent(e);var r=this.features_||new ci([this.lastFeature_]);return this.dispatchEvent(new lD("translateend",r,e.coordinate,this.startCoordinate_,e)),this.startCoordinate_=null,!0}return!1},t.prototype.handleDragEvent=function(e){if(this.lastCoordinate_){var r=e.coordinate,i=r[0]-this.lastCoordinate_[0],o=r[1]-this.lastCoordinate_[1],s=this.features_||new ci([this.lastFeature_]);s.forEach(function(a){var l=a.getGeometry();l.translate(i,o),a.setGeometry(l)}),this.lastCoordinate_=r,this.dispatchEvent(new lD("translating",s,r,this.startCoordinate_,e))}},t.prototype.handleMoveEvent=function(e){var r=e.map.getViewport();this.featuresAtPixel_(e.pixel,e.map)?(r.classList.remove(this.lastCoordinate_?"ol-grab":"ol-grabbing"),r.classList.add(this.lastCoordinate_?"ol-grabbing":"ol-grab")):r.classList.remove("ol-grab","ol-grabbing")},t.prototype.featuresAtPixel_=function(e,r){return r.forEachFeatureAtPixel(e,function(i,o){if(this.filter_(i,o)&&(!this.features_||nk(this.features_.getArray(),i)))return i}.bind(this),{layerFilter:this.layerFilter_,hitTolerance:this.hitTolerance_})},t.prototype.getHitTolerance=function(){return this.hitTolerance_},t.prototype.setHitTolerance=function(e){this.hitTolerance_=e},t.prototype.setMap=function(e){var r=this.getMap();n.prototype.setMap.call(this,e),this.updateState_(r)},t.prototype.handleActiveChanged_=function(){this.updateState_(null)},t.prototype.updateState_=function(e){var r=this.getMap(),i=this.getActive();r&&i||!(r=r||e)||r.getViewport().classList.remove("ol-grab","ol-grabbing")},t}(_c);const LX=kX;var NX=function(){var n=function(t,e){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,i){r.__proto__=i}||function(r,i){for(var o in i)Object.prototype.hasOwnProperty.call(i,o)&&(r[o]=i[o])})(t,e)};return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function r(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)}}(),sF=function(n){function t(e,r,i){var o=n.call(this)||this;return void 0!==i&&void 0===r?o.setFlatCoordinates(i,e):o.setCenterAndRadius(e,r||0,i),o}return NX(t,n),t.prototype.clone=function(){var e=new t(this.flatCoordinates.slice(),void 0,this.layout);return e.applyProperties(this),e},t.prototype.closestPointXY=function(e,r,i,o){var s=this.flatCoordinates,a=e-s[0],l=r-s[1],c=a*a+l*l;if(c<o){if(0===c)for(var f=0;f<this.stride;++f)i[f]=s[f];else{var d=this.getRadius()/Math.sqrt(c);for(i[0]=s[0]+d*a,i[1]=s[1]+d*l,f=2;f<this.stride;++f)i[f]=s[f]}return i.length=this.stride,c}return o},t.prototype.containsXY=function(e,r){var i=this.flatCoordinates,o=e-i[0],s=r-i[1];return o*o+s*s<=this.getRadiusSquared_()},t.prototype.getCenter=function(){return this.flatCoordinates.slice(0,this.stride)},t.prototype.computeExtent=function(e){var r=this.flatCoordinates,i=r[this.stride]-r[0];return Xo(r[0]-i,r[1]-i,r[0]+i,r[1]+i,e)},t.prototype.getRadius=function(){return Math.sqrt(this.getRadiusSquared_())},t.prototype.getRadiusSquared_=function(){var e=this.flatCoordinates[this.stride]-this.flatCoordinates[0],r=this.flatCoordinates[this.stride+1]-this.flatCoordinates[1];return e*e+r*r},t.prototype.getType=function(){return"Circle"},t.prototype.intersectsExtent=function(e){if(ui(e,this.getExtent())){var i=this.getCenter();return e[0]<=i[0]&&e[2]>=i[0]||e[1]<=i[1]&&e[3]>=i[1]||Gx(e,this.intersectsCoordinate.bind(this))}return!1},t.prototype.setCenter=function(e){var r=this.stride,i=this.flatCoordinates[r]-this.flatCoordinates[0],o=e.slice();o[r]=o[0]+i;for(var s=1;s<r;++s)o[r+s]=e[s];this.setFlatCoordinates(this.layout,o),this.changed()},t.prototype.setCenterAndRadius=function(e,r,i){this.setLayout(i,e,0),this.flatCoordinates||(this.flatCoordinates=[]);var o=this.flatCoordinates,s=nL(o,0,e);o[s++]=o[0]+r;for(var a=1,l=this.stride;a<l;++a)o[s++]=o[a];o.length=s,this.changed()},t.prototype.getCoordinates=function(){return null},t.prototype.setCoordinates=function(e,r){},t.prototype.setRadius=function(e){this.flatCoordinates[this.stride]=this.flatCoordinates[0]+e,this.changed()},t.prototype.rotate=function(e,r){var i=this.getCenter(),o=this.getStride();this.setCenter(mb(i,0,i.length,o,e,r,i)),this.changed()},t.prototype.translate=function(e,r){var i=this.getCenter(),o=this.getStride();this.setCenter(Jk(i,0,i.length,o,e,r,i)),this.changed()},t}(Dl);const FX=sF;var VX=function(){var n=function(t,e){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,i){r.__proto__=i}||function(r,i){for(var o in i)Object.prototype.hasOwnProperty.call(i,o)&&(r[o]=i[o])})(t,e)};return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function r(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)}}(),BX=function(n){function t(e){var r=n.call(this)||this;return r.id_=void 0,r.geometryName_="geometry",r.style_=null,r.styleFunction_=void 0,r.geometryChangeKey_=null,r.addChangeListener(r.geometryName_,r.handleGeometryChanged_),e&&("function"==typeof e.getSimplifiedGeometry?r.setGeometry(e):r.setProperties(e)),r}return VX(t,n),t.prototype.clone=function(){var e=new t(this.hasProperties()?this.getProperties():null);e.setGeometryName(this.getGeometryName());var r=this.getGeometry();r&&e.setGeometry(r.clone());var i=this.getStyle();return i&&e.setStyle(i),e},t.prototype.getGeometry=function(){return this.get(this.geometryName_)},t.prototype.getId=function(){return this.id_},t.prototype.getGeometryName=function(){return this.geometryName_},t.prototype.getStyle=function(){return this.style_},t.prototype.getStyleFunction=function(){return this.styleFunction_},t.prototype.handleGeometryChange_=function(){this.changed()},t.prototype.handleGeometryChanged_=function(){this.geometryChangeKey_&&(pn(this.geometryChangeKey_),this.geometryChangeKey_=null);var e=this.getGeometry();e&&(this.geometryChangeKey_=bt(e,"change",this.handleGeometryChange_,this)),this.changed()},t.prototype.setGeometry=function(e){this.set(this.geometryName_,e)},t.prototype.setStyle=function(e){this.style_=e,this.styleFunction_=e?function UX(n){return"function"==typeof n?n:(Array.isArray(n)?t=n:(ct("function"==typeof n.getZIndex,41),t=[n]),function(){return t});var t}(e):void 0,this.changed()},t.prototype.setId=function(e){this.id_=e,this.changed()},t.prototype.setGeometryName=function(e){this.removeChangeListener(this.geometryName_,this.handleGeometryChanged_),this.geometryName_=e,this.addChangeListener(this.geometryName_,this.handleGeometryChanged_),this.handleGeometryChanged_()},t}(Ps);const Mv=BX;function aF(n,t,e,r,i,o,s){var a,l,c=(e-t)/r;if(1===c)a=t;else if(2===c)a=t,l=i;else if(0!==c){for(var f=n[t],d=n[t+1],g=0,v=[0],m=t+r;m<e;m+=r){var y=n[m],w=n[m+1];g+=Math.sqrt((y-f)*(y-f)+(w-d)*(w-d)),v.push(g),f=y,d=w}var x=i*g,E=function L5(n,t,e){for(var r,i,o=e||sc,s=0,a=n.length,l=!1;s<a;)(i=+o(n[r=s+(a-s>>1)],t))<0?s=r+1:(a=r,l=!i);return l?s:~s}(v,x);E<0?(l=(x-v[-E-2])/(v[-E-1]-v[-E-2]),a=t+(-E-2)*r):a=t+E*r}var S=s>1?s:2,T=o||new Array(S);for(m=0;m<S;++m)T[m]=void 0===a?NaN:void 0===l?n[a+m]:ba(n[a+m],n[a+r+m],l);return T}function uD(n,t,e,r,i,o){if(e==t)return null;var s;if(i<n[t+r-1])return o?((s=n.slice(t,t+r))[r-1]=i,s):null;if(n[e-1]<i)return o?((s=n.slice(e-r,e))[r-1]=i,s):null;if(i==n[t+r-1])return n.slice(t,t+r);for(var a=t/r,l=e/r;a<l;){var c=a+l>>1;i<n[(c+1)*r-1]?l=c:a=c+1}var f=n[a*r-1];if(i==f)return n.slice((a-1)*r,(a-1)*r+r);var g=(i-f)/(n[(a+1)*r-1]-f);s=[];for(var v=0;v<r-1;++v)s.push(ba(n[(a-1)*r+v],n[a*r+v],g));return s.push(i),s}var GX=function(){var n=function(t,e){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,i){r.__proto__=i}||function(r,i){for(var o in i)Object.prototype.hasOwnProperty.call(i,o)&&(r[o]=i[o])})(t,e)};return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function r(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)}}(),HX=function(n){function t(e,r){var i=n.call(this)||this;return i.flatMidpoint_=null,i.flatMidpointRevision_=-1,i.maxDelta_=-1,i.maxDeltaRevision_=-1,void 0===r||Array.isArray(e[0])?i.setCoordinates(e,r):i.setFlatCoordinates(r,e),i}return GX(t,n),t.prototype.appendCoordinate=function(e){this.flatCoordinates?Ma(this.flatCoordinates,e):this.flatCoordinates=e.slice(),this.changed()},t.prototype.clone=function(){var e=new t(this.flatCoordinates.slice(),this.layout);return e.applyProperties(this),e},t.prototype.closestPointXY=function(e,r,i,o){return o<of(this.getExtent(),e,r)?o:(this.maxDeltaRevision_!=this.getRevision()&&(this.maxDelta_=Math.sqrt(_b(this.flatCoordinates,0,this.flatCoordinates.length,this.stride,0)),this.maxDeltaRevision_=this.getRevision()),Cb(this.flatCoordinates,0,this.flatCoordinates.length,this.stride,this.maxDelta_,!1,e,r,i,o))},t.prototype.forEachSegment=function(e){return uL(this.flatCoordinates,0,this.flatCoordinates.length,this.stride,e)},t.prototype.getCoordinateAtM=function(e,r){return"XYM"!=this.layout&&"XYZM"!=this.layout?null:uD(this.flatCoordinates,0,this.flatCoordinates.length,this.stride,e,void 0!==r&&r)},t.prototype.getCoordinates=function(){return Sl(this.flatCoordinates,0,this.flatCoordinates.length,this.stride)},t.prototype.getCoordinateAt=function(e,r){return aF(this.flatCoordinates,0,this.flatCoordinates.length,this.stride,e,r,this.stride)},t.prototype.getLength=function(){return rD(this.flatCoordinates,0,this.flatCoordinates.length,this.stride)},t.prototype.getFlatMidpoint=function(){return this.flatMidpointRevision_!=this.getRevision()&&(this.flatMidpoint_=this.getCoordinateAt(.5,this.flatMidpoint_),this.flatMidpointRevision_=this.getRevision()),this.flatMidpoint_},t.prototype.getSimplifiedGeometryInternal=function(e){var r=[];return r.length=z0(this.flatCoordinates,0,this.flatCoordinates.length,this.stride,e,r,0),new t(r,"XY")},t.prototype.getType=function(){return"LineString"},t.prototype.intersectsExtent=function(e){return $0(this.flatCoordinates,0,this.flatCoordinates.length,this.stride,e)},t.prototype.setCoordinates=function(e,r){this.setLayout(r,e,1),this.flatCoordinates||(this.flatCoordinates=[]),this.flatCoordinates.length=H0(this.flatCoordinates,0,e,this.stride),this.changed()},t}(Dl);const xv=HX;var zX=function(){var n=function(t,e){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,i){r.__proto__=i}||function(r,i){for(var o in i)Object.prototype.hasOwnProperty.call(i,o)&&(r[o]=i[o])})(t,e)};return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function r(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)}}(),$X=function(n){function t(e,r,i){var o=n.call(this)||this;if(o.ends_=[],o.maxDelta_=-1,o.maxDeltaRevision_=-1,Array.isArray(e[0]))o.setCoordinates(e,r);else if(void 0!==r&&i)o.setFlatCoordinates(r,e),o.ends_=i;else{for(var s=o.getLayout(),a=e,l=[],c=[],f=0,d=a.length;f<d;++f){var g=a[f];0===f&&(s=g.getLayout()),Ma(l,g.getFlatCoordinates()),c.push(l.length)}o.setFlatCoordinates(s,l),o.ends_=c}return o}return zX(t,n),t.prototype.appendLineString=function(e){this.flatCoordinates?Ma(this.flatCoordinates,e.getFlatCoordinates().slice()):this.flatCoordinates=e.getFlatCoordinates().slice(),this.ends_.push(this.flatCoordinates.length),this.changed()},t.prototype.clone=function(){var e=new t(this.flatCoordinates.slice(),this.layout,this.ends_.slice());return e.applyProperties(this),e},t.prototype.closestPointXY=function(e,r,i,o){return o<of(this.getExtent(),e,r)?o:(this.maxDeltaRevision_!=this.getRevision()&&(this.maxDelta_=Math.sqrt(yb(this.flatCoordinates,0,this.ends_,this.stride,0)),this.maxDeltaRevision_=this.getRevision()),wb(this.flatCoordinates,0,this.ends_,this.stride,this.maxDelta_,!1,e,r,i,o))},t.prototype.getCoordinateAtM=function(e,r,i){return"XYM"!=this.layout&&"XYZM"!=this.layout||0===this.flatCoordinates.length?null:function jX(n,t,e,r,i,o,s){if(s)return uD(n,t,e[e.length-1],r,i,o);var a;if(i<n[r-1])return o?((a=n.slice(0,r))[r-1]=i,a):null;if(n[n.length-1]<i)return o?((a=n.slice(n.length-r))[r-1]=i,a):null;for(var l=0,c=e.length;l<c;++l){var f=e[l];if(t!=f){if(i<n[t+r-1])return null;if(i<=n[f-1])return uD(n,t,f,r,i,!1);t=f}}return null}(this.flatCoordinates,0,this.ends_,this.stride,e,void 0!==r&&r,void 0!==i&&i)},t.prototype.getCoordinates=function(){return tv(this.flatCoordinates,0,this.ends_,this.stride)},t.prototype.getEnds=function(){return this.ends_},t.prototype.getLineString=function(e){return e<0||this.ends_.length<=e?null:new xv(this.flatCoordinates.slice(0===e?0:this.ends_[e-1],this.ends_[e]),this.layout)},t.prototype.getLineStrings=function(){for(var e=this.flatCoordinates,r=this.ends_,i=this.layout,o=[],s=0,a=0,l=r.length;a<l;++a){var c=r[a],f=new xv(e.slice(s,c),i);o.push(f),s=c}return o},t.prototype.getFlatMidpoints=function(){for(var e=[],r=this.flatCoordinates,i=0,o=this.ends_,s=this.stride,a=0,l=o.length;a<l;++a){var c=o[a];Ma(e,aF(r,i,c,s,.5)),i=c}return e},t.prototype.getSimplifiedGeometryInternal=function(e){var r=[],i=[];return r.length=function rL(n,t,e,r,i,o,s,a){for(var l=0,c=e.length;l<c;++l){var f=e[l];s=z0(n,t,f,r,i,o,s),a.push(s),t=f}return s}(this.flatCoordinates,0,this.ends_,this.stride,e,r,0,i),new t(r,"XY",i)},t.prototype.getType=function(){return"MultiLineString"},t.prototype.intersectsExtent=function(e){return function n$(n,t,e,r,i){for(var o=0,s=e.length;o<s;++o){if($0(n,t,e[o],r,i))return!0;t=e[o]}return!1}(this.flatCoordinates,0,this.ends_,this.stride,e)},t.prototype.setCoordinates=function(e,r){this.setLayout(r,e,2),this.flatCoordinates||(this.flatCoordinates=[]);var i=Eb(this.flatCoordinates,0,e,this.stride,this.ends_);this.flatCoordinates.length=0===i.length?0:i[i.length-1],this.changed()},t}(Dl);const WX=$X;var qX=function(){var n=function(t,e){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,i){r.__proto__=i}||function(r,i){for(var o in i)Object.prototype.hasOwnProperty.call(i,o)&&(r[o]=i[o])})(t,e)};return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function r(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)}}(),KX=function(n){function t(e,r){var i=n.call(this)||this;return r&&!Array.isArray(e[0])?i.setFlatCoordinates(r,e):i.setCoordinates(e,r),i}return qX(t,n),t.prototype.appendPoint=function(e){this.flatCoordinates?Ma(this.flatCoordinates,e.getFlatCoordinates()):this.flatCoordinates=e.getFlatCoordinates().slice(),this.changed()},t.prototype.clone=function(){var e=new t(this.flatCoordinates.slice(),this.layout);return e.applyProperties(this),e},t.prototype.closestPointXY=function(e,r,i,o){if(o<of(this.getExtent(),e,r))return o;for(var s=this.flatCoordinates,a=this.stride,l=0,c=s.length;l<c;l+=a){var f=cc(e,r,s[l],s[l+1]);if(f<o){o=f;for(var d=0;d<a;++d)i[d]=s[l+d];i.length=a}}return o},t.prototype.getCoordinates=function(){return Sl(this.flatCoordinates,0,this.flatCoordinates.length,this.stride)},t.prototype.getPoint=function(e){return e<0||(this.flatCoordinates?this.flatCoordinates.length/this.stride:0)<=e?null:new Ef(this.flatCoordinates.slice(e*this.stride,(e+1)*this.stride),this.layout)},t.prototype.getPoints=function(){for(var e=this.flatCoordinates,r=this.layout,i=this.stride,o=[],s=0,a=e.length;s<a;s+=i){var l=new Ef(e.slice(s,s+i),r);o.push(l)}return o},t.prototype.getType=function(){return"MultiPoint"},t.prototype.intersectsExtent=function(e){for(var r=this.flatCoordinates,i=this.stride,o=0,s=r.length;o<s;o+=i)if(Ux(e,r[o],r[o+1]))return!0;return!1},t.prototype.setCoordinates=function(e,r){this.setLayout(r,e,1),this.flatCoordinates||(this.flatCoordinates=[]),this.flatCoordinates.length=H0(this.flatCoordinates,0,e,this.stride),this.changed()},t}(Dl);const lF=KX;var YX=function(){var n=function(t,e){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,i){r.__proto__=i}||function(r,i){for(var o in i)Object.prototype.hasOwnProperty.call(i,o)&&(r[o]=i[o])})(t,e)};return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function r(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)}}(),XX=function(n){function t(e,r,i){var o=n.call(this)||this;if(o.endss_=[],o.flatInteriorPointsRevision_=-1,o.flatInteriorPoints_=null,o.maxDelta_=-1,o.maxDeltaRevision_=-1,o.orientedRevision_=-1,o.orientedFlatCoordinates_=null,!i&&!Array.isArray(e[0])){for(var s=o.getLayout(),a=e,l=[],c=[],f=0,d=a.length;f<d;++f){var g=a[f];0===f&&(s=g.getLayout());for(var v=l.length,m=g.getEnds(),y=0,w=m.length;y<w;++y)m[y]+=v;Ma(l,g.getFlatCoordinates()),c.push(m)}r=s,e=l,i=c}return void 0!==r&&i?(o.setFlatCoordinates(r,e),o.endss_=i):o.setCoordinates(e,r),o}return YX(t,n),t.prototype.appendPolygon=function(e){var r;if(this.flatCoordinates){var i=this.flatCoordinates.length;Ma(this.flatCoordinates,e.getFlatCoordinates());for(var o=0,s=(r=e.getEnds().slice()).length;o<s;++o)r[o]+=i}else this.flatCoordinates=e.getFlatCoordinates().slice(),r=e.getEnds().slice(),this.endss_.push();this.endss_.push(r),this.changed()},t.prototype.clone=function(){for(var e=this.endss_.length,r=new Array(e),i=0;i<e;++i)r[i]=this.endss_[i].slice();var o=new t(this.flatCoordinates.slice(),this.layout,r);return o.applyProperties(this),o},t.prototype.closestPointXY=function(e,r,i,o){return o<of(this.getExtent(),e,r)?o:(this.maxDeltaRevision_!=this.getRevision()&&(this.maxDelta_=Math.sqrt(function Gz(n,t,e,r,i){for(var o=0,s=e.length;o<s;++o){var a=e[o];i=yb(n,t,a,r,i),t=a[a.length-1]}return i}(this.flatCoordinates,0,this.endss_,this.stride,0)),this.maxDeltaRevision_=this.getRevision()),function Hz(n,t,e,r,i,o,s,a,l,c,f){for(var d=f||[NaN,NaN],g=0,v=e.length;g<v;++g){var m=e[g];c=wb(n,t,m,r,i,o,s,a,l,c,d),t=m[m.length-1]}return c}(this.getOrientedFlatCoordinates(),0,this.endss_,this.stride,this.maxDelta_,!0,e,r,i,o))},t.prototype.containsXY=function(e,r){return function e$(n,t,e,r,i,o){if(0===e.length)return!1;for(var s=0,a=e.length;s<a;++s){var l=e[s];if(xb(n,t,l,r,i,o))return!0;t=l[l.length-1]}return!1}(this.getOrientedFlatCoordinates(),0,this.endss_,this.stride,e,r)},t.prototype.getArea=function(){return function Kz(n,t,e,r){for(var i=0,o=0,s=e.length;o<s;++o){var a=e[o];i+=sL(n,t,a,r),t=a[a.length-1]}return i}(this.getOrientedFlatCoordinates(),0,this.endss_,this.stride)},t.prototype.getCoordinates=function(e){var r;return void 0!==e?dL(r=this.getOrientedFlatCoordinates().slice(),0,this.endss_,this.stride,e):r=this.flatCoordinates,Mb(r,0,this.endss_,this.stride)},t.prototype.getEndss=function(){return this.endss_},t.prototype.getFlatInteriorPoints=function(){if(this.flatInteriorPointsRevision_!=this.getRevision()){var e=function ZX(n,t,e,r){for(var i=[],o=[1/0,1/0,-1/0,-1/0],s=0,a=e.length;s<a;++s){var l=e[s];o=uk(n,t,l[0],r),i.push((o[0]+o[2])/2,(o[1]+o[3])/2),t=l[l.length-1]}return i}(this.flatCoordinates,0,this.endss_,this.stride);this.flatInteriorPoints_=function t$(n,t,e,r,i){for(var o=[],s=0,a=e.length;s<a;++s){var l=e[s];o=lL(n,t,l,r,i,2*s,o),t=l[l.length-1]}return o}(this.getOrientedFlatCoordinates(),0,this.endss_,this.stride,e),this.flatInteriorPointsRevision_=this.getRevision()}return this.flatInteriorPoints_},t.prototype.getInteriorPoints=function(){return new lF(this.getFlatInteriorPoints().slice(),"XYM")},t.prototype.getOrientedFlatCoordinates=function(){if(this.orientedRevision_!=this.getRevision()){var e=this.flatCoordinates;!function o$(n,t,e,r,i){for(var o=0,s=e.length;o<s;++o){var a=e[o];if(!fL(n,t,a,r,i))return!1;a.length&&(t=a[a.length-1])}return!0}(e,0,this.endss_,this.stride)?(this.orientedFlatCoordinates_=e.slice(),this.orientedFlatCoordinates_.length=dL(this.orientedFlatCoordinates_,0,this.endss_,this.stride)):this.orientedFlatCoordinates_=e,this.orientedRevision_=this.getRevision()}return this.orientedFlatCoordinates_},t.prototype.getSimplifiedGeometryInternal=function(e){var r=[],i=[];return r.length=function qz(n,t,e,r,i,o,s,a){for(var l=0,c=e.length;l<c;++l){var f=e[l],d=[];s=iL(n,t,f,r,i,o,s,d),a.push(d),t=f[f.length-1]}return s}(this.flatCoordinates,0,this.endss_,this.stride,Math.sqrt(e),r,0,i),new t(r,"XY",i)},t.prototype.getPolygon=function(e){if(e<0||this.endss_.length<=e)return null;var r;if(0===e)r=0;else{var i=this.endss_[e-1];r=i[i.length-1]}var o=this.endss_[e].slice(),s=o[o.length-1];if(0!==r)for(var a=0,l=o.length;a<l;++a)o[a]-=r;return new q0(this.flatCoordinates.slice(r,s),this.layout,o)},t.prototype.getPolygons=function(){for(var e=this.layout,r=this.flatCoordinates,i=this.endss_,o=[],s=0,a=0,l=i.length;a<l;++a){var c=i[a].slice(),f=c[c.length-1];if(0!==s)for(var d=0,g=c.length;d<g;++d)c[d]-=s;var v=new q0(r.slice(s,f),e,c);o.push(v),s=f}return o},t.prototype.getType=function(){return"MultiPolygon"},t.prototype.intersectsExtent=function(e){return function r$(n,t,e,r,i){for(var o=0,s=e.length;o<s;++o){var a=e[o];if(hL(n,t,a,r,i))return!0;t=a[a.length-1]}return!1}(this.getOrientedFlatCoordinates(),0,this.endss_,this.stride,e)},t.prototype.setCoordinates=function(e,r){this.setLayout(r,e,3),this.flatCoordinates||(this.flatCoordinates=[]);var i=function zz(n,t,e,r,i){for(var o=i||[],s=0,a=0,l=e.length;a<l;++a){var c=Eb(n,t,e[a],r,o[s]);o[s++]=c,t=c[c.length-1]}return o.length=s,o}(this.flatCoordinates,0,e,this.stride,this.endss_);if(0===i.length)this.flatCoordinates.length=0;else{var o=i[i.length-1];this.flatCoordinates.length=0===o.length?0:o[o.length-1]}this.changed()},t}(Dl);const QX=XX;var uF=function(){var n=function(t,e){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,i){r.__proto__=i}||function(r,i){for(var o in i)Object.prototype.hasOwnProperty.call(i,o)&&(r[o]=i[o])})(t,e)};return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function r(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)}}(),vC=function(n){function t(e,r){var i=n.call(this,e)||this;return i.feature=r,i}return uF(t,n),t}(Qo),JX=function(n){function t(e){var r=this,i=e;i.stopDown||(i.stopDown=Vg),(r=n.call(this,i)||this).shouldHandle_=!1,r.downPx_=null,r.freehand_=!1,r.source_=e.source?e.source:null,r.features_=e.features?e.features:null,r.snapTolerance_=e.snapTolerance?e.snapTolerance:12,r.type_=e.type,r.mode_=function tQ(n){switch(n){case"Point":case"MultiPoint":return"Point";case"LineString":case"MultiLineString":return"LineString";case"Polygon":case"MultiPolygon":return"Polygon";case"Circle":return"Circle";default:throw new Error("Invalid type: "+n)}}(r.type_),r.stopClick_=!!e.stopClick,r.minPoints_=e.minPoints?e.minPoints:"Polygon"===r.mode_?3:2,r.maxPoints_="Circle"===r.mode_?2:e.maxPoints?e.maxPoints:1/0,r.finishCondition_=e.finishCondition?e.finishCondition:xa,r.geometryLayout_=e.geometryLayout?e.geometryLayout:"XY";var o=e.geometryFunction;if(!o){var a,s=r.mode_;"Circle"===s?o=function(l,c,f){var d=c||new FX([NaN,NaN]),g=ns(l[0]),v=function Kx(n,t){var e=n[0]-t[0],r=n[1]-t[1];return e*e+r*r}(g,ns(l[l.length-1]));d.setCenterAndRadius(g,Math.sqrt(v),this.geometryLayout_);var m=cb();return m&&d.transform(f,m),d}:("Point"===s?a=Ef:"LineString"===s?a=xv:"Polygon"===s&&(a=q0),o=function(l,c,f){return c?c.setCoordinates("Polygon"===s?l[0].length?[l[0].concat([l[0][0]])]:[]:l,this.geometryLayout_):c=new a(l,this.geometryLayout_),c})}return r.geometryFunction_=o,r.dragVertexDelay_=void 0!==e.dragVertexDelay?e.dragVertexDelay:500,r.finishCoordinate_=null,r.sketchFeature_=null,r.sketchPoint_=null,r.sketchCoords_=null,r.sketchLine_=null,r.sketchLineCoords_=null,r.squaredClickTolerance_=e.clickTolerance?e.clickTolerance*e.clickTolerance:36,r.overlay_=new JN({source:new iF({useSpatialIndex:!1,wrapX:!!e.wrapX&&e.wrapX}),style:e.style?e.style:eQ(),updateWhileInteracting:!0}),r.geometryName_=e.geometryName,r.condition_=e.condition?e.condition:Pb,r.freehandCondition_=e.freehand?Ob:e.freehandCondition?e.freehandCondition:ML,r.addChangeListener("active",r.updateState_),r}return uF(t,n),t.prototype.setMap=function(e){n.prototype.setMap.call(this,e),this.updateState_()},t.prototype.getOverlay=function(){return this.overlay_},t.prototype.handleEvent=function(e){"contextmenu"===e.originalEvent.type&&e.originalEvent.preventDefault(),this.freehand_="Point"!==this.mode_&&this.freehandCondition_(e);var r=e.type===Lt.POINTERMOVE,i=!0;return!this.freehand_&&this.lastDragTime_&&e.type===Lt.POINTERDRAG&&(Date.now()-this.lastDragTime_>=this.dragVertexDelay_?(this.downPx_=e.pixel,this.shouldHandle_=!this.freehand_,r=!0):this.lastDragTime_=void 0,this.shouldHandle_&&void 0!==this.downTimeout_&&(clearTimeout(this.downTimeout_),this.downTimeout_=void 0)),this.freehand_&&e.type===Lt.POINTERDRAG&&null!==this.sketchFeature_?(this.addToDrawing_(e.coordinate),i=!1):this.freehand_&&e.type===Lt.POINTERDOWN?i=!1:r&&this.getPointerCount()<2?(i=e.type===Lt.POINTERMOVE)&&this.freehand_?(this.handlePointerMove_(e),this.shouldHandle_&&e.originalEvent.preventDefault()):("mouse"===e.originalEvent.pointerType||e.type===Lt.POINTERDRAG&&void 0===this.downTimeout_)&&this.handlePointerMove_(e):e.type===Lt.DBLCLICK&&(i=!1),n.prototype.handleEvent.call(this,e)&&i},t.prototype.handleDownEvent=function(e){return this.shouldHandle_=!this.freehand_,this.freehand_?(this.downPx_=e.pixel,this.finishCoordinate_||this.startDrawing_(e.coordinate),!0):this.condition_(e)?(this.lastDragTime_=Date.now(),this.downTimeout_=setTimeout(function(){this.handlePointerMove_(new Ia(Lt.POINTERMOVE,e.map,e.originalEvent,!1,e.frameState))}.bind(this),this.dragVertexDelay_),this.downPx_=e.pixel,!0):(this.lastDragTime_=void 0,!1)},t.prototype.handleUpEvent=function(e){var r=!0;if(0===this.getPointerCount())if(this.downTimeout_&&(clearTimeout(this.downTimeout_),this.downTimeout_=void 0),this.handlePointerMove_(e),this.shouldHandle_){var i=!this.finishCoordinate_;i&&this.startDrawing_(e.coordinate),!i&&this.freehand_?this.finishDrawing():!this.freehand_&&(!i||"Point"===this.mode_)&&(this.atFinish_(e.pixel)?this.finishCondition_(e)&&this.finishDrawing():this.addToDrawing_(e.coordinate)),r=!1}else this.freehand_&&this.abortDrawing();return!r&&this.stopClick_&&e.preventDefault(),r},t.prototype.handlePointerMove_=function(e){if(this.pointerType_=e.originalEvent.pointerType,this.downPx_&&(!this.freehand_&&this.shouldHandle_||this.freehand_&&!this.shouldHandle_)){var r=this.downPx_,i=e.pixel,o=r[0]-i[0],s=r[1]-i[1],a=o*o+s*s;if(this.shouldHandle_=this.freehand_?a>this.squaredClickTolerance_:a<=this.squaredClickTolerance_,!this.shouldHandle_)return}this.finishCoordinate_?this.modifyDrawing_(e.coordinate):this.createOrUpdateSketchPoint_(e.coordinate.slice())},t.prototype.atFinish_=function(e){var r=!1;if(this.sketchFeature_){var i=!1,o=[this.finishCoordinate_],s=this.mode_;if("Point"===s)r=!0;else if("Circle"===s)r=2===this.sketchCoords_.length;else if("LineString"===s)i=this.sketchCoords_.length>this.minPoints_;else if("Polygon"===s){var a=this.sketchCoords_;i=a[0].length>this.minPoints_,o=[a[0][0],a[0][a[0].length-2]]}if(i)for(var l=this.getMap(),c=0,f=o.length;c<f;c++){var d=o[c],g=l.getPixelFromCoordinate(d),v=e[0]-g[0],m=e[1]-g[1],y=this.freehand_?1:this.snapTolerance_;if(r=Math.sqrt(v*v+m*m)<=y){this.finishCoordinate_=d;break}}}return r},t.prototype.createOrUpdateSketchPoint_=function(e){this.sketchPoint_?this.sketchPoint_.getGeometry().setCoordinates(e):(this.sketchPoint_=new Mv(new Ef(e)),this.updateSketchFeatures_())},t.prototype.createOrUpdateCustomSketchLine_=function(e){this.sketchLine_||(this.sketchLine_=new Mv);var r=e.getLinearRing(0),i=this.sketchLine_.getGeometry();i?(i.setFlatCoordinates(r.getLayout(),r.getFlatCoordinates()),i.changed()):(i=new xv(r.getFlatCoordinates(),r.getLayout()),this.sketchLine_.setGeometry(i))},t.prototype.startDrawing_=function(e){for(var r=this.getMap().getView().getProjection(),i=G0(this.geometryLayout_);e.length<i;)e.push(0);this.finishCoordinate_=e,"Point"===this.mode_?this.sketchCoords_=e.slice():"Polygon"===this.mode_?(this.sketchCoords_=[[e.slice(),e.slice()]],this.sketchLineCoords_=this.sketchCoords_[0]):this.sketchCoords_=[e.slice(),e.slice()],this.sketchLineCoords_&&(this.sketchLine_=new Mv(new xv(this.sketchLineCoords_)));var o=this.geometryFunction_(this.sketchCoords_,void 0,r);this.sketchFeature_=new Mv,this.geometryName_&&this.sketchFeature_.setGeometryName(this.geometryName_),this.sketchFeature_.setGeometry(o),this.updateSketchFeatures_(),this.dispatchEvent(new vC("drawstart",this.sketchFeature_))},t.prototype.modifyDrawing_=function(e){for(var a,l,r=this.getMap(),i=this.sketchFeature_.getGeometry(),o=r.getView().getProjection(),s=G0(this.geometryLayout_);e.length<s;)e.push(0);"Point"===this.mode_?l=this.sketchCoords_:"Polygon"===this.mode_?(l=(a=this.sketchCoords_[0])[a.length-1],this.atFinish_(r.getPixelFromCoordinate(e))&&(e=this.finishCoordinate_.slice())):l=(a=this.sketchCoords_)[a.length-1],l[0]=e[0],l[1]=e[1],this.geometryFunction_(this.sketchCoords_,i,o),this.sketchPoint_&&this.sketchPoint_.getGeometry().setCoordinates(e),"Polygon"===i.getType()&&"Polygon"!==this.mode_?this.createOrUpdateCustomSketchLine_(i):this.sketchLineCoords_&&this.sketchLine_.getGeometry().setCoordinates(this.sketchLineCoords_),this.updateSketchFeatures_()},t.prototype.addToDrawing_=function(e){var o,s,r=this.sketchFeature_.getGeometry(),i=this.getMap().getView().getProjection(),a=this.mode_;"LineString"===a||"Circle"===a?(this.finishCoordinate_=e.slice(),(s=this.sketchCoords_).length>=this.maxPoints_&&(this.freehand_?s.pop():o=!0),s.push(e.slice()),this.geometryFunction_(s,r,i)):"Polygon"===a&&((s=this.sketchCoords_[0]).length>=this.maxPoints_&&(this.freehand_?s.pop():o=!0),s.push(e.slice()),o&&(this.finishCoordinate_=s[0]),this.geometryFunction_(this.sketchCoords_,r,i)),this.createOrUpdateSketchPoint_(e.slice()),this.updateSketchFeatures_(),o&&this.finishDrawing()},t.prototype.removeLastPoint=function(){if(this.sketchFeature_){var i,e=this.sketchFeature_.getGeometry(),r=this.getMap().getView().getProjection(),o=this.mode_;if("LineString"===o||"Circle"===o){if((i=this.sketchCoords_).splice(-2,1),i.length>=2){this.finishCoordinate_=i[i.length-2].slice();var s=this.finishCoordinate_.slice();i[i.length-1]=s,this.createOrUpdateSketchPoint_(s)}this.geometryFunction_(i,e,r),"Polygon"===e.getType()&&this.sketchLine_&&this.createOrUpdateCustomSketchLine_(e)}else if("Polygon"===o){(i=this.sketchCoords_[0]).splice(-2,1);var a=this.sketchLine_.getGeometry();i.length>=2&&(s=i[i.length-2].slice(),i[i.length-1]=s,this.createOrUpdateSketchPoint_(s)),a.setCoordinates(i),this.geometryFunction_(this.sketchCoords_,e,r)}1===i.length&&this.abortDrawing(),this.updateSketchFeatures_()}},t.prototype.finishDrawing=function(){var e=this.abortDrawing_();if(e){var r=this.sketchCoords_,i=e.getGeometry(),o=this.getMap().getView().getProjection();"LineString"===this.mode_?(r.pop(),this.geometryFunction_(r,i,o)):"Polygon"===this.mode_&&(r[0].pop(),this.geometryFunction_(r,i,o),r=i.getCoordinates()),"MultiPoint"===this.type_?e.setGeometry(new lF([r])):"MultiLineString"===this.type_?e.setGeometry(new WX([r])):"MultiPolygon"===this.type_&&e.setGeometry(new QX([r])),this.dispatchEvent(new vC("drawend",e)),this.features_&&this.features_.push(e),this.source_&&this.source_.addFeature(e)}},t.prototype.abortDrawing_=function(){this.finishCoordinate_=null;var e=this.sketchFeature_;return this.sketchFeature_=null,this.sketchPoint_=null,this.sketchLine_=null,this.overlay_.getSource().clear(!0),e},t.prototype.abortDrawing=function(){var e=this.abortDrawing_();e&&this.dispatchEvent(new vC("drawabort",e))},t.prototype.appendCoordinates=function(e){var o,r=this.mode_,i=!this.sketchFeature_;if(i&&this.startDrawing_(e[0]),"LineString"===r||"Circle"===r)o=this.sketchCoords_;else{if("Polygon"!==r)return;o=this.sketchCoords_&&this.sketchCoords_.length?this.sketchCoords_[0]:[]}i&&o.shift(),o.pop();for(var s=0;s<e.length;s++)this.addToDrawing_(e[s]);var a=e[e.length-1];this.addToDrawing_(a),this.modifyDrawing_(a)},t.prototype.extend=function(e){var i=e.getGeometry();this.sketchFeature_=e,this.sketchCoords_=i.getCoordinates();var o=this.sketchCoords_[this.sketchCoords_.length-1];this.finishCoordinate_=o.slice(),this.sketchCoords_.push(o.slice()),this.sketchPoint_=new Mv(new Ef(o)),this.updateSketchFeatures_(),this.dispatchEvent(new vC("drawstart",this.sketchFeature_))},t.prototype.updateSketchFeatures_=function(){var e=[];this.sketchFeature_&&e.push(this.sketchFeature_),this.sketchLine_&&e.push(this.sketchLine_),this.sketchPoint_&&e.push(this.sketchPoint_);var r=this.overlay_.getSource();r.clear(!0),r.addFeatures(e)},t.prototype.updateState_=function(){var e=this.getMap(),r=this.getActive();(!e||!r)&&this.abortDrawing(),this.overlay_.setMap(r?e:null)},t}(_c);function eQ(){var n=function IY(){var n={},t=[255,255,255,1],e=[0,153,255,1];return n.Polygon=[new Nf({fill:new tD({color:[255,255,255,.5]})})],n.MultiPolygon=n.Polygon,n.LineString=[new Nf({stroke:new dC({color:t,width:5})}),new Nf({stroke:new dC({color:e,width:3})})],n.MultiLineString=n.LineString,n.Circle=n.Polygon.concat(n.LineString),n.Point=[new Nf({image:new BN({radius:6,fill:new tD({color:e}),stroke:new dC({color:t,width:1.5})}),zIndex:1/0})],n.MultiPoint=n.Point,n.GeometryCollection=n.Polygon.concat(n.LineString,n.Point),n}();return function(t,e){return n[t.getGeometry().getType()]}}const nQ=JX,rQ=["map"];let iQ=(()=>{class n{constructor(){this.marker='<svg xmlns="http://www.w3.org/2000/svg" width="71.7px" height="107.92px" viewBox="-2 -2 69.7 105.92"><path fill="#00a19a" stroke="#fff" stroke-width="3px" d="M53.64 33.46a19.79 19.79 0 1 1-19.79-20.11 20 20 0 0 1 19.79 20.11ZM33.85 0C15.16 0 0 17.09 0 38.18s33.85 65.74 33.85 65.74S67.7 59.26 67.7 38.18 52.55 0 33.85 0Z" /></svg>',this.center=[605297,5814977],this.zoom=14,this.coordinatesChange=new lt,this.source=new iF}ngOnInit(){}get model(){return this.coordinates}set model(e){this.coordinates=e,this.coordinatesChange.emit(this.coordinates)}ngAfterViewInit(){this.map||this.initMap(this.mapElement)}initMap(e){var r;NN.defs("EPSG:25832","+proj=utm +zone=32 +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +units=m +no_defs"),function LW(n){var r,i,t=Object.keys(n.defs),e=t.length;for(r=0;r<e;++r){var o=t[r];if(!Yn(o)){var s=n.defs(o),a=s.units;!a&&"longlat"===s.projName&&(a=ro.DEGREES),Wk(new nb({code:o,axisOrientation:s.axis,metersPerUnit:s.to_meter,units:a}))}}for(r=0;r<e;++r){var l=t[r],c=Yn(l);for(i=0;i<e;++i){var f=t[i],d=Yn(f);if(!Hk(l,f))if(n.defs[l]===n.defs[f])ab([c,d]);else{var g=n(l,f);xz(c,d,Kk(c,d,g.forward),Kk(d,c,g.inverse))}}}}(NN),this.projection=Yn("EPSG:25832"),null===(r=this.projection)||void 0===r||r.setExtent([-1877994.66,3932281.56,836715.13,9440581.95]),this.view=new Il({center:this.center,zoom:this.zoom,projection:this.projection});const i=new TY({image:new ZN({opacity:1,src:"data:image/svg+xml;utf8,"+escape(this.marker),scale:.5,anchor:[.5,1]})});this.layer=new JN({source:this.source,style:i}),this.layerPhoto=new NL({source:new KL({url:"https://www.geobasisdaten.niedersachsen.de/doorman/noauth/wms_ni_dop",params:{LAYERS:"WMS_NI_DOP",STYLES:"default",FORMAT:"image/jpeg"},projection:"EPSG:25832"})}),this.layerPhoto.setVisible(!1),this.layerPlan=new NL({source:new KL({url:"https://sgx.geodatenzentrum.de/wms_topplus_open",params:{LAYERS:"web",STYLES:"default",FORMAT:"image/png"},projection:"EPSG:25832"})}),this.map=new C9({layers:[this.layerPlan,this.layerPhoto,this.layer],target:e.nativeElement,view:this.view,controls:CL().extend([new kW({})])});const o=new LX({layers:[this.layer]});o.on("translateend",()=>{this.updateModel()}),this.draw=new nQ({source:this.source,type:"Point"}),this.map.addInteraction(this.draw),this.map.addInteraction(o),this.draw.setActive(!1)}setMarker(){var e,r;null===(e=this.draw)||void 0===e||e.setActive(!0),null===(r=this.draw)||void 0===r||r.once("drawend",i=>{var o;null===(o=this.draw)||void 0===o||o.setActive(!1),this.updateModel(i.feature)})}updateModel(e){var r;let i=[];for(const o of null===(r=this.source)||void 0===r?void 0:r.getFeatures()){const s=o.getGeometry();!s||i.push(s.getCoordinates())}if(e){const o=e.getGeometry();o&&i.push(o.getCoordinates())}this.model=i}resetMarkers(){this.source.clear(),this.model=[]}setBaseLayer(e){var r,i,o,s;switch(e){case"photo":null===(r=this.layerPhoto)||void 0===r||r.setVisible(!0),null===(i=this.layerPlan)||void 0===i||i.setVisible(!1);break;case"plan":null===(o=this.layerPlan)||void 0===o||o.setVisible(!0),null===(s=this.layerPhoto)||void 0===s||s.setVisible(!1)}}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275cmp=An({type:n,selectors:[["ui-input-location"]],viewQuery:function(e,r){if(1&e&&ug(rQ,5),2&e){let i;Hu(i=zu())&&(r.mapElement=i.first)}},inputs:{center:"center",zoom:"zoom",coordinates:"coordinates"},outputs:{coordinatesChange:"coordinatesChange"},decls:8,vars:0,consts:[[1,"map-container"],["map",""],[1,"layer-switch"],["title"," ",1,"btn-plan",3,"click"],["title"," ",1,"btn-photo",3,"click"],[1,"actions"],["title","Marker setzen",1,"btn-primary",3,"click"],["title","Marker l\xf6schen",3,"click"]],template:function(e,r){1&e&&(se(0,"div",0,1)(2,"div",2)(3,"ui-button",3),Ge("click",function(){return r.setBaseLayer("plan")}),J(),se(4,"ui-button",4),Ge("click",function(){return r.setBaseLayer("photo")}),J()()(),se(5,"div",5)(6,"ui-button",6),Ge("click",function(){return r.setMarker()}),J(),se(7,"ui-button",7),Ge("click",function(){return r.resetMarkers()}),J()())},directives:[Og],styles:["div.map-container[_ngcontent-%COMP%]{display:block;width:100%;height:400px;border:1px solid var(--line-color);outline:none;padding:0;position:relative}div.map-container[_ngcontent-%COMP%]:active, div.map-container[_ngcontent-%COMP%]:focus{border-color:var(--highlight-color)}.actions[_ngcontent-%COMP%]{text-align:center}.layer-switch[_ngcontent-%COMP%]{z-index:1000;position:absolute;bottom:0;right:0;padding:16px}  .btn-photo>button,   .btn-plan>button{width:43px;height:43px;padding:0;margin:0;box-shadow:#00000029 0 3px 6px,#0000003b 0 3px 6px;border:4px solid #fff}  .btn-photo,   .btn-plan{margin-left:16px}  .btn-photo>button{background-image:url(btn-photo.94ed6ab613115959.png)}  .btn-plan>button{background-image:url(btn-plan.c9d01fa7b1fa362b.png)}"]}),n})();function oQ(n,t){if(1&n&&(se(0,"div",3),da(1),J()),2&n){const e=de();ne(1),Q_(e.getCounterMessage())}}let cF=(()=>{class n{constructor(){this.textChange=new lt,this.placeholder="",this.showCounter=!1}get model(){return this.text}set model(e){this.text=e,this.textChange.emit(this.text)}ngOnInit(){}getCounterMessage(){var e;const r=this.text.length,i=(null===(e=this.text.match(/(\w+)/g))||void 0===e?void 0:e.length)||0;return this.formatNoneOrOne(r,["Keine Zeichen","Ein Zeichen","Zeichen"])+", "+this.formatNoneOrOne(i,["keine W\xf6rter","ein Wort","W\xf6rter"])}formatNoneOrOne(e,r){switch(e){case 0:case 1:return r[e];default:return`${e} ${r[2]}`}}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275cmp=An({type:n,selectors:[["ui-input-text-short"]],inputs:{text:"text",placeholder:"placeholder",showCounter:"showCounter"},outputs:{textChange:"textChange"},decls:4,vars:3,consts:[["type","text",3,"ngModel","placeholder","ngModelChange"],["input",""],["class","counter",4,"ngIf"],[1,"counter"]],template:function(e,r){1&e&&(se(0,"div")(1,"input",0,1),Ge("ngModelChange",function(o){return r.model=o}),J(),Oe(3,oQ,2,1,"div",2),J()),2&e&&(ne(1),W("ngModel",r.model)("placeholder",r.placeholder),ne(2),W("ngIf",r.showCounter))},directives:[rc,ic,wl,ya],styles:["div[_ngcontent-%COMP%]{width:100%}input[_ngcontent-%COMP%]{display:block;width:100%;border:1px solid var(--line-color);color:var(--text-color);resize:none;outline:none;padding:var(--form-elements-padding);font-size:var(--font-size-form-elements);line-height:var(--line-height-form-elements)}input[_ngcontent-%COMP%]:active, input[_ngcontent-%COMP%]:focus{border-color:var(--highlight-color)}input[_ngcontent-%COMP%]::placeholder{color:var(--light-color)}input[_ngcontent-%COMP%]::selection{background-color:var(--selection-color-back);color:var(--selection-color-front)}.counter[_ngcontent-%COMP%]{color:var(--light-color);font-size:var(--font-size-small);text-align:right}"]}),n})();function sQ(n,t){if(1&n&&xt(0,"option",3),2&n){const e=t.$implicit;W("value",e.value)("innerText",e.label)}}let aQ=(()=>{class n{constructor(){this.selectionChange=new lt,this.placeholder=""}get model(){return this.selection}set model(e){this.selection=e,this.selectionChange.emit(this.selection)}ngOnInit(){}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275cmp=An({type:n,selectors:[["ui-input-selection-list"]],inputs:{selection:"selection",placeholder:"placeholder",options:"options"},outputs:{selectionChange:"selectionChange"},decls:4,vars:3,consts:[[3,"ngModel","ngModelChange"],["value","","disabled","",3,"innerText"],[3,"value","innerText",4,"ngFor","ngForOf"],[3,"value","innerText"]],template:function(e,r){1&e&&(se(0,"div")(1,"select",0),Ge("ngModelChange",function(o){return r.model=o}),xt(2,"option",1),Oe(3,sQ,1,2,"option",2),J()()),2&e&&(ne(1),W("ngModel",r.model),ne(1),W("innerText",r.placeholder),ne(1),W("ngForOf",r.options))},directives:[Fg,ic,wl,Tx,Rx,Is],styles:["div[_ngcontent-%COMP%]{width:100%}select[_ngcontent-%COMP%]{display:block;width:100%;border:1px solid var(--line-color);color:var(--text-color);resize:none;outline:none;padding:var(--form-elements-padding);font-size:var(--font-size-form-elements);line-height:var(--line-height-form-elements)}select[_ngcontent-%COMP%]:active, select[_ngcontent-%COMP%]:focus{border-color:var(--highlight-color)}"]}),n})();function lQ(n,t){if(1&n&&xt(0,"option",5),2&n){const e=t.$implicit;W("value",e.value)("innerText",e.label)}}function uQ(n,t){if(1&n){const e=Cn();se(0,"ui-input-text-short",6),Ge("textChange",function(i){return Kt(e),de().modelComment=i}),J()}2&n&&W("text",de().modelComment)}let cQ=(()=>{class n{constructor(){this.selectionChange=new lt,this.commentChange=new lt,this.placeholder=""}get model(){return this.selection}set model(e){this.selection=e,this.selectionChange.emit(this.selection)}get modelComment(){return this.comment}set modelComment(e){this.comment=e,this.commentChange.emit(this.comment)}hasComment(e){var r;return null===(r=nf().find(this.options,i=>i.value===e))||void 0===r?void 0:r.comment}ngOnInit(){}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275cmp=An({type:n,selectors:[["ui-input-selection-list-comment"]],inputs:{selection:"selection",comment:"comment",placeholder:"placeholder",options:"options"},outputs:{selectionChange:"selectionChange",commentChange:"commentChange"},decls:6,vars:4,consts:[[3,"ngModel","ngModelChange"],["value","","disabled","",3,"innerText"],[3,"value","innerText",4,"ngFor","ngForOf"],[1,"textarea"],[3,"text","textChange",4,"ngIf"],[3,"value","innerText"],[3,"text","textChange"]],template:function(e,r){1&e&&(se(0,"div")(1,"select",0),Ge("ngModelChange",function(o){return r.model=o}),xt(2,"option",1),Oe(3,lQ,1,2,"option",2),J(),se(4,"div",3),Oe(5,uQ,1,1,"ui-input-text-short",4),J()()),2&e&&(ne(1),W("ngModel",r.model),ne(1),W("innerText",r.placeholder),ne(1),W("ngForOf",r.options),ne(2),W("ngIf",r.hasComment(r.model)))},directives:[Fg,ic,wl,Tx,Rx,Is,ya,cF],styles:["div[_ngcontent-%COMP%]{width:100%}select[_ngcontent-%COMP%]{display:block;width:100%;border:1px solid var(--line-color);color:var(--text-color);resize:none;outline:none;padding:var(--form-elements-padding);font-size:var(--font-size-form-elements);line-height:var(--line-height-form-elements)}select[_ngcontent-%COMP%]:active, select[_ngcontent-%COMP%]:focus{border-color:var(--highlight-color)}.textarea[_ngcontent-%COMP%]{padding-top:8px}"]}),n})();function hQ(n,t){1&n&&xt(0,"markdown",7),2&n&&W("data",de().$implicit.info)}function fQ(n,t){1&n&&xt(0,"span",8),2&n&&W("innerText",de().$implicit.label)}function dQ(n,t){if(1&n){const e=Cn();se(0,"label",1)(1,"span",2)(2,"input",3),Ge("ngModelChange",function(i){return Kt(e),de().model=i}),J(),xt(3,"span",4),J(),Oe(4,hQ,1,1,"markdown",5),Oe(5,fQ,1,1,"span",6),J()}if(2&n){const e=t.$implicit,r=de();ne(2),W("name",r.id)("value",e.value)("ngModel",r.model),ne(2),W("ngIf",e.info),ne(1),W("ngIf",e.label)}}let pQ=(()=>{class n{constructor(){this.selectionChange=new lt,this.id=ux.uniqueId()}get model(){return this.selection}set model(e){this.selection=e,this.selectionChange.emit(this.selection)}ngOnInit(){}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275cmp=An({type:n,selectors:[["ui-input-selection-switch"]],inputs:{selection:"selection",options:"options"},outputs:{selectionChange:"selectionChange"},decls:2,vars:1,consts:[["class","radio",4,"ngFor","ngForOf"],[1,"radio"],[1,"radio-input"],["type","radio",3,"name","value","ngModel","ngModelChange"],[1,"radio-control"],["class","radio-label",3,"data",4,"ngIf"],["class","radio-label",3,"innerText",4,"ngIf"],[1,"radio-label",3,"data"],[1,"radio-label",3,"innerText"]],template:function(e,r){1&e&&(se(0,"div"),Oe(1,dQ,6,5,"label",0),J()),2&e&&(ne(1),W("ngForOf",r.options))},directives:[Is,d0,rc,ic,wl,ya,tf],styles:["label[_ngcontent-%COMP%]{margin-bottom:12px}.radio[_ngcontent-%COMP%]{display:flex;flex-direction:row;vertical-align:top;cursor:pointer}.radio-input[_ngcontent-%COMP%]{display:flex}.radio-input[_ngcontent-%COMP%] > input[_ngcontent-%COMP%]{opacity:0;width:0;height:0}.radio-input[_ngcontent-%COMP%] > input[_ngcontent-%COMP%]:checked + .radio-control[_ngcontent-%COMP%]{border-width:6px}.radio-control[_ngcontent-%COMP%]{display:block;width:1em;height:1em;border-radius:50%;border:1px solid var(--highlight-color);margin-right:.5em;transform:translateY(.125em)}.radio-label[_ngcontent-%COMP%]{line-height:var(--line-height)}  .radio-label>*:first-child{margin-top:0}"]}),n})();function gQ(n,t){1&n&&xt(0,"markdown",9),2&n&&W("data",de().$implicit.info)}function vQ(n,t){1&n&&xt(0,"span",10),2&n&&W("innerText",de().$implicit.label)}function mQ(n,t){if(1&n){const e=Cn();se(0,"ui-input-text-long",11),Ge("textChange",function(i){return Kt(e),de(2).modelComment=i}),J()}2&n&&W("text",de(2).modelComment)}function _Q(n,t){if(1&n){const e=Cn();bs(0),se(1,"label",1)(2,"span",2)(3,"input",3),Ge("ngModelChange",function(i){return Kt(e),de().model=i}),J(),xt(4,"span",4),J(),Oe(5,gQ,1,1,"markdown",5),Oe(6,vQ,1,1,"span",6),J(),se(7,"div",7),Oe(8,mQ,1,1,"ui-input-text-long",8),J(),Ho()}if(2&n){const e=t.$implicit,r=de();ne(3),W("name",r.id)("value",e.value)("ngModel",r.model),ne(2),W("ngIf",e.info),ne(1),W("ngIf",e.label),ne(2),W("ngIf",e.value===r.model&&e.comment)}}let yQ=(()=>{class n{constructor(){this.selectionChange=new lt,this.commentChange=new lt,this.id=ux.uniqueId()}get model(){return this.selection}set model(e){this.selection!==e&&(this.modelComment=""),this.selection=e,this.selectionChange.emit(this.selection)}get modelComment(){return this.comment}set modelComment(e){this.comment=e,this.commentChange.emit(this.comment)}ngOnInit(){}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275cmp=An({type:n,selectors:[["ui-input-selection-switch-comment"]],inputs:{selection:"selection",comment:"comment",options:"options"},outputs:{selectionChange:"selectionChange",commentChange:"commentChange"},decls:2,vars:1,consts:[[4,"ngFor","ngForOf"],[1,"radio"],[1,"radio-input"],["type","radio",3,"name","value","ngModel","ngModelChange"],[1,"radio-control"],["class","radio-label",3,"data",4,"ngIf"],["class","radio-label",3,"innerText",4,"ngIf"],[1,"textarea"],[3,"text","textChange",4,"ngIf"],[1,"radio-label",3,"data"],[1,"radio-label",3,"innerText"],[3,"text","textChange"]],template:function(e,r){1&e&&(se(0,"div"),Oe(1,_Q,9,6,"ng-container",0),J()),2&e&&(ne(1),W("ngForOf",r.options))},directives:[Is,d0,rc,ic,wl,ya,tf,Px],styles:["label[_ngcontent-%COMP%]{margin-bottom:12px}.radio[_ngcontent-%COMP%]{display:flex;flex-direction:row;vertical-align:top;cursor:pointer}.radio-input[_ngcontent-%COMP%]{display:flex}.radio-input[_ngcontent-%COMP%] > input[_ngcontent-%COMP%]{opacity:0;width:0;height:0}.radio-input[_ngcontent-%COMP%] > input[_ngcontent-%COMP%]:checked + .radio-control[_ngcontent-%COMP%]{border-width:6px}.radio-control[_ngcontent-%COMP%]{display:block;width:1em;height:1em;border-radius:50%;border:1px solid var(--highlight-color);margin-right:.5em;transform:translateY(.125em)}.radio-label[_ngcontent-%COMP%]{line-height:var(--line-height)}  .radio-label>*:first-child{margin-top:0}.textarea[_ngcontent-%COMP%]{padding-left:32px;padding-bottom:8px}"]}),n})();const EQ=(n,t)=>function wQ(n){return n.type===En.DownloadProgress||n.type===En.UploadProgress}(t)?{progress:t.total?Math.round(100*t.loaded/t.total):n.progress,state:"IN_PROGRESS"}:function CQ(n){return n.type===En.Response}(t)?{progress:100,state:"DONE",response:t.body}:n;let hF=(()=>{class n{constructor(e){this.http=e}upload(e,r){const i=e.name,o=new FormData;return o.append("file",e),o.append("filename",i),o.append("formId",r),this.http.post(YO+"/upload",o,{reportProgress:!0,observe:"events"}).pipe(jM(EQ,{state:"PENDING",progress:0}))}}return n.\u0275fac=function(e){return new(e||n)(oe(Py))},n.\u0275prov=Fe({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();const MQ=["fileInput"];function xQ(n,t){if(1&n){const e=Cn();se(0,"div",9)(1,"div",10),Ge("click",function(){const o=Kt(e).$implicit;return de().remove(o)}),J()()}if(2&n){const e=t.$implicit;W("ngStyle",de().imageStyle(e))}}const bQ=function(n){return{width:n}};let DQ=(()=>{class n{constructor(e){this.uploadService=e,this.baseUrl="https://forms.mygatekeeper.de",this.imageUrlChange=new lt,this.images=[],this.uploadProgress=0}ngOnInit(){}selectFile(){var e;null===(e=this.fileInput)||void 0===e||e.nativeElement.click()}imageStyle(e){return{backgroundImage:'url("/assets/upload/'+this.formKey+"/"+e+'")'}}remove(e){this.images.splice(this.images.indexOf(e),1)}getImageUrls(){const e=this.baseUrl+"/assets/upload/"+this.formKey+"/";return e+this.images.join("\n"+e)}handleFileInput(e){var r;if(this.uploadProgress=0,!e||!e.target)return;let i=null===(r=e.target.files)||void 0===r?void 0:r.item(0);!i||this.uploadService.upload(i,this.formKey).subscribe(o=>{this.uploadProgress=o.progress,"DONE"===o.state&&(this.images.push(o.response.url),this.imageUrlChange.emit(this.getImageUrls()),this.uploadProgress=0)})}}return n.\u0275fac=function(e){return new(e||n)(z(hF))},n.\u0275cmp=An({type:n,selectors:[["ui-input-image-upload-multi"]],viewQuery:function(e,r){if(1&e&&ug(MQ,5,Er),2&e){let i;Hu(i=zu())&&(r.fileInput=i.first)}},inputs:{formKey:"formKey",imageUrl:"imageUrl"},outputs:{imageUrlChange:"imageUrlChange"},decls:9,vars:5,consts:[[1,"image-container"],[1,"image-viewport"],[3,"ngStyle",4,"ngFor","ngForOf"],["type","file","id","file","name","file","accept","image/*",3,"change"],["fileInput",""],[1,"upload-progress"],[1,"progress-bar"],[1,"actions"],["title","Datei hochladen",1,"btn-primary",3,"click"],[3,"ngStyle"],[1,"remove",3,"click"]],template:function(e,r){1&e&&(se(0,"div",0)(1,"div",1),Oe(2,xQ,2,1,"div",2),J(),se(3,"input",3,4),Ge("change",function(o){return r.handleFileInput(o)}),J(),se(5,"div",5),xt(6,"div",6),J()(),se(7,"div",7)(8,"ui-button",8),Ge("click",function(){return r.selectFile()}),J()()),2&e&&(ne(2),W("ngForOf",r.images),ne(4),Eo(sg(3,bQ,r.uploadProgress+"%")))},directives:[Is,wM,Og],styles:['.image-viewport[_ngcontent-%COMP%]{display:block;height:200px;width:100%;border:1px solid var(--line-color);overflow-y:scroll;text-align:center}.image-viewport[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]{position:relative;display:inline-block;width:174px;height:174px;margin:12px;background-color:#fff;background-position:center;background-repeat:no-repeat;background-size:contain;box-shadow:#3c40434d 0 1px 2px,#3c404326 0 2px 6px 2px}.image-viewport[_ngcontent-%COMP%] > div[_ngcontent-%COMP%] > .remove[_ngcontent-%COMP%]{position:absolute;top:0;right:0;background-color:#a00;color:#fff;width:32px;height:32px;line-height:32px;font-size:32px;text-align:center;cursor:pointer;transition:.5s}.image-viewport[_ngcontent-%COMP%] > div[_ngcontent-%COMP%] > .remove[_ngcontent-%COMP%]:after{content:"\\d7"}.image-viewport[_ngcontent-%COMP%] > div[_ngcontent-%COMP%] > .remove[_ngcontent-%COMP%]:hover{background-color:#c00;transition:.5s}button[_ngcontent-%COMP%]{display:block;margin:auto;cursor:pointer;padding:12px 48px;font-size:var(--font-size);font-weight:500;width:100%;background-color:var(--line-color);border:0;transition:.5s}button[_ngcontent-%COMP%]:hover{background-color:var(--highlight-color);color:var(--selection-color-front);transition:.5s;box-shadow:#00000059 0 5px 15px}button[_ngcontent-%COMP%]:disabled{opacity:.8;cursor:not-allowed}button[_ngcontent-%COMP%]:disabled:hover{transition:.25s;box-shadow:none}.image-container[_ngcontent-%COMP%]{display:block;margin:auto;width:100%}#file[_ngcontent-%COMP%]{display:none}.upload-progress[_ngcontent-%COMP%]{background-color:#ddd;border-right:1px solid var(--line-color);border-left:1px solid var(--line-color);height:8px;width:100%}.progress-bar[_ngcontent-%COMP%]{background-color:var(--highlight-color);height:8px;width:0%}.actions[_ngcontent-%COMP%]{text-align:center}']}),n})();const SQ=["fileInput"];function IQ(n,t){if(1&n){const e=Cn();se(0,"div"),da(1),se(2,"div",9),Ge("click",function(){const o=Kt(e).$implicit;return de().remove(o)}),J()()}if(2&n){const e=t.$implicit;ne(1),Qp(" ",e," ")}}const TQ=function(n){return{width:n}};let AQ=(()=>{class n{constructor(e){this.uploadService=e,this.baseUrl="https://forms.mygatekeeper.de",this.imageUrlChange=new lt,this.images=[],this.uploadProgress=0}ngOnInit(){}selectFile(){var e;null===(e=this.fileInput)||void 0===e||e.nativeElement.click()}imageStyle(e){return{backgroundImage:'url("/assets/upload/'+this.formKey+"/"+e+'")'}}remove(e){this.images.splice(this.images.indexOf(e),1)}getImageUrls(){const e=this.baseUrl+"/assets/upload/"+this.formKey+"/";return e+this.images.join("\n"+e)}handleFileInput(e){var r;if(this.uploadProgress=0,!e||!e.target)return;let i=null===(r=e.target.files)||void 0===r?void 0:r.item(0);!i||this.uploadService.upload(i,this.formKey).subscribe(o=>{this.uploadProgress=o.progress,"DONE"===o.state&&(this.images.push(o.response.url),this.imageUrlChange.emit(this.getImageUrls()),this.uploadProgress=0)})}}return n.\u0275fac=function(e){return new(e||n)(z(hF))},n.\u0275cmp=An({type:n,selectors:[["ui-input-file-upload-multi"]],viewQuery:function(e,r){if(1&e&&ug(SQ,5,Er),2&e){let i;Hu(i=zu())&&(r.fileInput=i.first)}},inputs:{formKey:"formKey",imageUrl:"imageUrl"},outputs:{imageUrlChange:"imageUrlChange"},decls:9,vars:5,consts:[[1,"file-container"],[1,"file-viewport"],[4,"ngFor","ngForOf"],["type","file","id","file","name","file","accept","application/pdf",3,"change"],["fileInput",""],[1,"upload-progress"],[1,"progress-bar"],[1,"actions"],["title","Datei hochladen",1,"btn-primary",3,"click"],[1,"remove",3,"click"]],template:function(e,r){1&e&&(se(0,"div",0)(1,"div",1),Oe(2,IQ,3,1,"div",2),J(),se(3,"input",3,4),Ge("change",function(o){return r.handleFileInput(o)}),J(),se(5,"div",5),xt(6,"div",6),J()(),se(7,"div",7)(8,"ui-button",8),Ge("click",function(){return r.selectFile()}),J()()),2&e&&(ne(2),W("ngForOf",r.images),ne(4),Eo(sg(3,TQ,r.uploadProgress+"%")))},directives:[Is,Og],styles:['.file-viewport[_ngcontent-%COMP%]{display:block;height:100px;width:100%;border:1px solid var(--line-color);overflow-y:scroll;text-align:center}.file-viewport[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]{position:relative;display:block;width:calc(100% - 24px);height:32px;margin:12px;background-color:#fff;box-shadow:#3c40434d 0 1px 2px,#3c404326 0 2px 6px 2px;text-align:left;padding-left:16px;line-height:32px;overflow:hidden;text-overflow:ellipsis}.file-viewport[_ngcontent-%COMP%] > div[_ngcontent-%COMP%] > .remove[_ngcontent-%COMP%]{position:absolute;top:0;right:0;background-color:#a00;color:#fff;width:32px;height:32px;line-height:32px;font-size:32px;text-align:center;cursor:pointer;transition:.5s}.file-viewport[_ngcontent-%COMP%] > div[_ngcontent-%COMP%] > .remove[_ngcontent-%COMP%]:after{content:"\\d7"}.file-viewport[_ngcontent-%COMP%] > div[_ngcontent-%COMP%] > .remove[_ngcontent-%COMP%]:hover{background-color:#c00;transition:.5s}button[_ngcontent-%COMP%]{display:block;margin:auto;cursor:pointer;padding:12px 48px;font-size:var(--font-size);font-weight:500;width:100%;background-color:var(--line-color);border:0;transition:.5s}button[_ngcontent-%COMP%]:hover{background-color:var(--highlight-color);color:var(--selection-color-front);transition:.5s;box-shadow:#00000059 0 5px 15px}button[_ngcontent-%COMP%]:disabled{opacity:.8;cursor:not-allowed}button[_ngcontent-%COMP%]:disabled:hover{transition:.25s;box-shadow:none}.file-container[_ngcontent-%COMP%]{display:block;margin:auto;width:100%}#file[_ngcontent-%COMP%]{display:none}.upload-progress[_ngcontent-%COMP%]{background-color:#ddd;border-right:1px solid var(--line-color);border-left:1px solid var(--line-color);height:8px;width:100%}.progress-bar[_ngcontent-%COMP%]{background-color:var(--highlight-color);height:8px;width:0%}.actions[_ngcontent-%COMP%]{text-align:center}']}),n})();const RQ=function(n){return{mandatory:n}};function OQ(n,t){if(1&n&&xt(0,"h2",15),2&n){const e=de().$implicit;W("innerHTML",e.title,la)("ngClass",sg(2,RQ,e.mandatory))}}function PQ(n,t){1&n&&xt(0,"markdown",16),2&n&&W("data",de().$implicit.info)}function kQ(n,t){if(1&n){const e=Cn();se(0,"ui-button",17),Ge("click",function(){return Kt(e),de(2).formToggled=!0}),J()}2&n&&W("title",de().$implicit.buttonTitle)}function LQ(n,t){if(1&n){const e=Cn();se(0,"ui-input-checkbox",18),Ge("selectedChange",function(i){return Kt(e),de().$implicit.value=i})("commentChange",function(i){return Kt(e),de().$implicit.valueComment=i}),J()}if(2&n){const e=de().$implicit;W("selected",e.value)("comment",e.valueComment)("options",e.options)}}function NQ(n,t){if(1&n){const e=Cn();se(0,"ui-input-text-long",19),Ge("textChange",function(i){return Kt(e),de().$implicit.value=i}),J()}if(2&n){const e=de().$implicit;W("text",e.value)("showCounter",e.showCounter)("placeholder",e.placeholder)}}function FQ(n,t){if(1&n){const e=Cn();se(0,"ui-input-location",20),Ge("coordinatesChange",function(i){return Kt(e),de().$implicit.value=i}),J()}2&n&&W("coordinates",de().$implicit.value)}function VQ(n,t){if(1&n){const e=Cn();se(0,"ui-input-text-short",19),Ge("textChange",function(i){return Kt(e),de().$implicit.value=i}),J()}if(2&n){const e=de().$implicit;W("text",e.value)("showCounter",e.showCounter)("placeholder",e.placeholder)}}function BQ(n,t){if(1&n){const e=Cn();se(0,"ui-input-selection-list",21),Ge("selectionChange",function(i){return Kt(e),de().$implicit.value=i}),J()}if(2&n){const e=de().$implicit;W("selection",e.value)("options",e.options)("placeholder",e.placeholder)}}function UQ(n,t){if(1&n){const e=Cn();se(0,"ui-input-selection-list-comment",22),Ge("selectionChange",function(i){return Kt(e),de().$implicit.value=i})("commentChange",function(i){return Kt(e),de().$implicit.valueComment=i}),J()}if(2&n){const e=de().$implicit;W("selection",e.value)("comment",e.valueComment)("options",e.options)}}function jQ(n,t){if(1&n){const e=Cn();se(0,"ui-input-selection-switch",23),Ge("selectionChange",function(i){return Kt(e),de().$implicit.value=i}),J()}if(2&n){const e=de().$implicit;W("selection",e.value)("options",e.options)}}function GQ(n,t){if(1&n){const e=Cn();se(0,"ui-input-selection-switch-comment",22),Ge("selectionChange",function(i){return Kt(e),de().$implicit.value=i})("commentChange",function(i){return Kt(e),de().$implicit.valueComment=i}),J()}if(2&n){const e=de().$implicit;W("selection",e.value)("comment",e.valueComment)("options",e.options)}}function HQ(n,t){if(1&n){const e=Cn();se(0,"ui-input-image-upload-multi",24),Ge("imageUrlChange",function(i){return Kt(e),de().$implicit.value=i}),J()}if(2&n){const e=de().$implicit,r=de();W("imageUrl",e.value)("formKey",r.formKey)}}function zQ(n,t){if(1&n){const e=Cn();se(0,"ui-input-file-upload-multi",24),Ge("imageUrlChange",function(i){return Kt(e),de().$implicit.value=i}),J()}if(2&n){const e=de().$implicit,r=de();W("imageUrl",e.value)("formKey",r.formKey)}}function $Q(n,t){1&n&&xt(0,"hr")}function WQ(n,t){if(1&n&&(se(0,"div",1),xt(1,"a",2),Oe(2,OQ,1,4,"h2",3),Oe(3,PQ,1,1,"markdown",4),bs(4,5),Oe(5,kQ,1,1,"ui-button",6),Oe(6,LQ,1,3,"ui-input-checkbox",7),Oe(7,NQ,1,3,"ui-input-text-long",8),Oe(8,FQ,1,1,"ui-input-location",9),Oe(9,VQ,1,3,"ui-input-text-short",8),Oe(10,BQ,1,3,"ui-input-selection-list",10),Oe(11,UQ,1,3,"ui-input-selection-list-comment",11),Oe(12,jQ,1,2,"ui-input-selection-switch",12),Oe(13,GQ,1,3,"ui-input-selection-switch-comment",11),Oe(14,HQ,1,2,"ui-input-image-upload-multi",13),Oe(15,zQ,1,2,"ui-input-file-upload-multi",13),Oe(16,$Q,1,0,"hr",14),Ho(),J()),2&n){const e=t.$implicit,r=t.index;ne(1),W("id","block"+r),ne(1),W("ngIf",e.title),ne(1),W("ngIf",e.info),ne(1),W("ngSwitch",e.type),ne(1),W("ngSwitchCase","infoToggle"),ne(1),W("ngSwitchCase","checkbox"),ne(1),W("ngSwitchCase","textLong"),ne(1),W("ngSwitchCase","location"),ne(1),W("ngSwitchCase","textShort"),ne(1),W("ngSwitchCase","selectionList"),ne(1),W("ngSwitchCase","selectionListComment"),ne(1),W("ngSwitchCase","selectionSwitch"),ne(1),W("ngSwitchCase","selectionSwitchComment"),ne(1),W("ngSwitchCase","imageUpload"),ne(1),W("ngSwitchCase","fileUpload"),ne(1),W("ngSwitchCase","divider")}}let qQ=(()=>{class n{constructor(e){this.markdownService=e,this.formToggled=!1}getBlocks(){let e=[];for(let r of this.blocks){if("infoToggle"===r.type){if(this.formToggled)continue;e.push(r);break}e.push(r)}return e}ngOnInit(){const e=this.markdownService.renderer.link;this.markdownService.renderer.link=(r,i,o)=>e.call(this.markdownService.renderer,r,i,o).replace(/^<a /,'<a target="_blank" rel="nofollow" ')}}return n.\u0275fac=function(e){return new(e||n)(z(Rg))},n.\u0275cmp=An({type:n,selectors:[["ui-input-form"]],inputs:{blocks:"blocks",formKey:"formKey"},decls:1,vars:1,consts:[["class","block",4,"ngFor","ngForOf"],[1,"block"],[3,"id"],[3,"innerHTML","ngClass",4,"ngIf"],[3,"data",4,"ngIf"],[3,"ngSwitch"],[3,"title","click",4,"ngSwitchCase"],[3,"selected","comment","options","selectedChange","commentChange",4,"ngSwitchCase"],[3,"text","showCounter","placeholder","textChange",4,"ngSwitchCase"],[3,"coordinates","coordinatesChange",4,"ngSwitchCase"],[3,"selection","options","placeholder","selectionChange",4,"ngSwitchCase"],[3,"selection","comment","options","selectionChange","commentChange",4,"ngSwitchCase"],[3,"selection","options","selectionChange",4,"ngSwitchCase"],[3,"imageUrl","formKey","imageUrlChange",4,"ngSwitchCase"],[4,"ngSwitchCase"],[3,"innerHTML","ngClass"],[3,"data"],[3,"title","click"],[3,"selected","comment","options","selectedChange","commentChange"],[3,"text","showCounter","placeholder","textChange"],[3,"coordinates","coordinatesChange"],[3,"selection","options","placeholder","selectionChange"],[3,"selection","comment","options","selectionChange","commentChange"],[3,"selection","options","selectionChange"],[3,"imageUrl","formKey","imageUrlChange"]],template:function(e,r){1&e&&Oe(0,WQ,17,16,"div",0),2&e&&W("ngForOf",r.getBlocks())},directives:[Is,ya,mM,tf,Sy,XA,Og,P5,Px,iQ,cF,aQ,cQ,pQ,yQ,DQ,AQ],styles:['.block[_ngcontent-%COMP%]{margin-bottom:48px}hr[_ngcontent-%COMP%]{width:300px;height:1px;border-top:1px solid var(--highlight-color);margin:12px auto}.mandatory[_ngcontent-%COMP%]:after{content:" *";font-size:20px;font-weight:500}']}),n})();function KQ(n,t){1&n&&xt(0,"a",15),2&n&&W("href",de().$implicit.link,ua)}function ZQ(n,t){if(1&n&&(se(0,"div",13),Oe(1,KQ,1,1,"a",14),J()),2&n){const e=t.$implicit;W("ngStyle",e.style),ne(1),W("ngIf",e.link)}}function YQ(n,t){if(1&n){const e=Cn();se(0,"ui-button",16),Ge("click",function(){const o=Kt(e).$implicit;return de(2).selectForm(o)}),J()}2&n&&W("title",t.$implicit.title)}function XQ(n,t){1&n&&xt(0,"a",15),2&n&&W("href",de().$implicit.link,ua)}function QQ(n,t){if(1&n&&(se(0,"div",13),Oe(1,XQ,1,1,"a",14),J()),2&n){const e=t.$implicit;W("ngStyle",e.style),ne(1),W("ngIf",e.link)}}function JQ(n,t){if(1&n&&(bs(0),xt(1,"h2",1),se(2,"div",7),Oe(3,QQ,2,2,"div",8),J(),Ho()),2&n){const e=t.$implicit;ne(1),W("innerHTML",e.title,la),ne(2),W("ngForOf",e.logos)}}function eJ(n,t){if(1&n&&(bs(0),se(1,"div",6),bs(2),se(3,"div",7),Oe(4,ZQ,2,2,"div",8),J(),Ho(),se(5,"div",9),xt(6,"markdown",10),Oe(7,YQ,1,1,"ui-button",11),J(),Oe(8,JQ,4,2,"ng-container",12),J(),Ho()),2&n){const e=de();ne(4),W("ngForOf",e.logos),ne(2),W("data",e.text),ne(1),W("ngForOf",e.forms),ne(1),W("ngForOf",e.sponsors)}}function tJ(n,t){1&n&&xt(0,"a",15),2&n&&W("href",de().$implicit.link,ua)}function nJ(n,t){if(1&n&&(se(0,"div",13),Oe(1,tJ,1,1,"a",14),J()),2&n){const e=t.$implicit;W("ngStyle",e.style),ne(1),W("ngIf",e.link)}}function rJ(n,t){if(1&n&&(se(0,"li"),xt(1,"a",26),J()),2&n){const e=t.$implicit;ne(1),W("fragment",e.href)("innerHTML",e.title,la)}}function iJ(n,t){if(1&n&&(se(0,"div",25),da(1),se(2,"ul"),Oe(3,rJ,2,2,"li",12),J()()),2&n){const e=de(2);ne(1),Qp(" ",e.missingFields," "),ne(2),W("ngForOf",e.missingValues)}}function oJ(n,t){1&n&&xt(0,"div",27),2&n&&W("innerHTML",de(2).error,la)}function sJ(n,t){1&n&&xt(0,"div",28),2&n&&W("innerHTML",de(2).submitSuccess,la)}function aJ(n,t){if(1&n){const e=Cn();se(0,"ui-button",29),Ge("click",function(){return Kt(e),de(2).submit()}),J()}2&n&&W("disabled",de(2).busy)}function lJ(n,t){if(1&n){const e=Cn();bs(0)(1),se(2,"div",7),Oe(3,nJ,2,2,"div",8),J(),Ho(),se(4,"div",17),xt(5,"ui-input-form",18),J(),se(6,"div",6),Oe(7,iJ,4,2,"div",19),Oe(8,oJ,1,1,"div",20),Oe(9,sJ,1,1,"div",21),J(),se(10,"div",22)(11,"ui-button",23),Ge("click",function(){return Kt(e),de().reset()}),J(),Oe(12,aJ,1,1,"ui-button",24),J(),Ho()}if(2&n){const e=de();ne(3),W("ngForOf",e.logos),ne(2),W("blocks",e.blocks)("formKey",e.formKey),ne(2),W("ngIf",e.missingValues.length),ne(1),W("ngIf",e.error),ne(1),W("ngIf",e.done),ne(3),W("ngIf",!e.done)}}const uJ=function(n){return{"light-footer":n}},fF="MINT:ZE - MINT: Zukunft Erleben",gJ=[],vJ=[{style:{backgroundImage:"url(/mintze/assets/logos/logo-mintze.png)"}}];let dF=(()=>{class n{constructor(e,r){this.http=e,this.markdownService=r,this.missingFields="Erg\xe4nzen Sie bitte noch die folgenden Pflichtfelder, bevor Sie das Formular absenden:",this.submitSuccess="Ihre Einsendung wurde erfolgreich auf unseren Server \xfcbermittelt und wird nun von uns weiterbearbeitet.",this.sponsors=gJ,this.logos=vJ,this.forms=[S6,I6],this.displayForm=!1,this.blocks=[],this.title=fF,this.text="\n## Sehr geehrte MINT:ZE Kooperationspartner,\n\nin einem ersten Schritt zur Lernort-Plattform, ist es n\xf6tig alle au\xdferschulischen Bildungsangebote der Region zu sammeln und zu sortieren.\n\nDaf\xfcr haben wir zwei Formulare vorbereitet. Im ersten Teil geht es um die Vorstellung Ihrer Institution, im zweiten um die Vorstellung Ihrer Angebote. Damit alle Angebote zu gegebener Zeit nach bestimmten Kriterien filterbar sind, muss Teil 2 ggf. mehrfach ausgef\xfcllt werden, sofern Sie mehrere Angebote bereithalten. Der Aufwand allerdings wird sich lohnen!\n\nFalls es Ihnen nicht m\xf6glich sein sollte, f\xfcr all Ihre Angebote das zweite Formular auszuf\xfcllen, kontaktieren Sie bitte [martini@bildungsregion-suedniedersachsen.de](mailto:martini@bildungsregion-suedniedersachsen.de).\n\nKooperationseinrichtungen, die keine MINT Bildungsangebote im Sinne au\xdferschulischer Lernorte bereithalten, m\xfcssen das zweite Formular nicht ausf\xfcllen. Wir freuen uns aber, wenn Sie uns mitteilen, was Sie in das MINT:ZE Netzwerk einbringen m\xf6chten (beispielsweise R\xe4umlichkeiten f\xfcr Netzwerkveranstaltungen).\n",this.formId="0",this.formKey="unknown-form",this.busy=!1,this.done=!1,this.error="",this.warningSet=!1,this.noWarning=!1,this.missingValues=[]}ngOnInit(){const e=this.markdownService.renderer.link;this.markdownService.renderer.link=(r,i,o)=>e.call(this.markdownService.renderer,r,i,o).replace(/^<a /,'<a target="_blank" rel="nofollow" ')}activateWarning(){this.warningSet||(this.warningSet=!0,window.addEventListener("beforeunload",e=>{this.noWarning?delete e.returnValue:(e.preventDefault(),e.returnValue="M\xf6chten Sie die Seite wirklich verlassen? Falls Sie Ihre Daten noch nicht abgesendet haben, gehen sie verloren.")}))}scrollToTop(){window.scroll({top:0,left:0})}reset(){this.title=fF,this.scrollToTop(),this.displayForm=!1,this.done=!1,this.error="",this.busy=!1,this.formId="",this.formKey="",this.missingValues=[]}selectForm(e){this.blocks=e.blocks,this.title=e.title,this.formId=e.id,this.formKey=e.key,this.noWarning=!1,this.scrollToTop(),this.displayForm=!0,this.activateWarning()}submit(){var e,r,i;let o=[],a={},l=-1;for(let c of this.blocks)if(++l,c.key){console.log(c.key,c);e:switch(c.type){case"infoToggle":case"textLong":case"textShort":case"selectionList":case"selectionSwitch":case"imageUpload":case"fileUpload":const f=null===(e=c.value)||void 0===e?void 0:e.trim();if(c.mandatory&&!f){o.push({href:"block"+l,title:c.title});break}if(f&&c.validate&&!f.match(c.validate)){o.push({href:"block"+l,title:c.title+" <strong>"+c.validateHint+"</strong>"});break}a[c.key]=f;break;case"selectionListComment":case"selectionSwitchComment":const d="string"==typeof(null==c?void 0:c.value)&&(null==c?void 0:c.value.trim());if(c.mandatory&&!d){o.push({href:"block"+l,title:c.title});break}a[c.key]=d;const g=null===(r=c.valueComment)||void 0===r?void 0:r.trim(),v=nf().find(c.options,x=>x.value===d);if(c.mandatory&&(null==v?void 0:v.comment)&&!g){o.push({href:"block"+l,title:c.title});break}a[c.keyComment]=(null==v?void 0:v.comment)?g:"";break;case"location":const m=c.value;if(c.mandatory&&(!m||!m.length)){o.push({href:"block"+l,title:c.title});break}a[c.key]=JSON.stringify(m);break;case"checkbox":const y=c.value;if(c.mandatory){for(const x of c.options)if(x.mandatory&&!nf().includes(y,x.value)){o.push({href:"block"+l,title:c.title});break e}if(y.length<1){o.push({href:"block"+l,title:c.title});break}}a[c.key]=JSON.stringify(y);let w=!1;for(const x of c.options)if(x.comment&&nf().includes(y,x.value)){w=!0;break}if(w){const x=null===(i=c.valueComment)||void 0===i?void 0:i.trim();if(!x){o.push({href:"block"+l,title:c.title});break}a[c.keyComment]=x}else a[c.keyComment]=""}}this.missingValues=o,!o.length&&(this.busy=!0,this.http.post(YO+"/submission/save",{formId:this.formId,data:a}).subscribe(()=>{this.error="",this.done=!0,this.busy=!1,this.noWarning=!0},c=>{console.log("error!"),this.error="Ihre Eingaben konnten leider nicht \xfcbermittelt werden.",this.busy=!1}))}}return n.\u0275fac=function(e){return new(e||n)(z(Py),z(Rg))},n.\u0275cmp=An({type:n,selectors:[["app-root"]],decls:14,vars:6,consts:[[1,"title"],[3,"innerHTML"],[4,"ngIf"],[1,"footer",3,"ngClass"],["href","https://mygatekeeper.de/impressum","target","_blank"],["href","https://mygatekeeper.de/datenschutzerklaerung","target","_blank"],[1,"page"],[1,"logos"],["class","logo",3,"ngStyle",4,"ngFor","ngForOf"],[1,"intro",2,"padding-bottom","48px"],[3,"data"],["class","btn-primary btn-select",3,"title","click",4,"ngFor","ngForOf"],[4,"ngFor","ngForOf"],[1,"logo",3,"ngStyle"],["target","_blank",3,"href",4,"ngIf"],["target","_blank",3,"href"],[1,"btn-primary","btn-select",3,"title","click"],[1,"page",2,"padding-top","48px"],[3,"blocks","formKey"],["class","error",4,"ngIf"],["class","error",3,"innerHTML",4,"ngIf"],["class","success",3,"innerHTML",4,"ngIf"],[1,"actions"],["title","Zur\xfcck zur Startseite",1,"btn-default",3,"click"],["class","btn-primary","title","Absenden",3,"disabled","click",4,"ngIf"],[1,"error"],["routerLink","/",3,"fragment","innerHTML"],[1,"error",3,"innerHTML"],[1,"success",3,"innerHTML"],["title","Absenden",1,"btn-primary",3,"disabled","click"]],template:function(e,r){1&e&&(se(0,"div",0),xt(1,"h1",1),J(),Oe(2,eJ,9,4,"ng-container",2),Oe(3,lJ,13,7,"ng-container",2),se(4,"div",3)(5,"p")(6,"small"),da(7,"Diese Seite wird bereitgestellt durch MyGatekeeper gemeinn\xfctzige Unternehmergesellschaft (haftungsbeschr\xe4nkt)."),J()(),se(8,"p")(9,"a",4),da(10,"Impressum"),J(),da(11,"\xa0|\xa0"),se(12,"a",5),da(13,"Datenschutz"),J()()()),2&e&&(ne(1),W("innerHTML",r.title,la),ne(1),W("ngIf",!r.displayForm),ne(1),W("ngIf",r.displayForm),ne(1),W("ngClass",sg(4,uJ,!r.displayForm)))},directives:[ya,Is,wM,tf,Og,qQ,Yy,mM],styles:[".page[_ngcontent-%COMP%]{width:100%;max-width:1000px;margin-left:auto;margin-right:auto;padding:0 24px}.title[_ngcontent-%COMP%]{margin:0;padding:24px 24px 64px;background-color:var(--highlight-color);text-align:center}h1[_ngcontent-%COMP%]{width:100%;max-width:1000px;margin:0 auto;font-size:32px;font-weight:500;color:var(--selection-color-front)}.footer[_ngcontent-%COMP%]{margin:0;padding:24px 24px 256px;background-color:var(--highlight-color);color:var(--selection-color-front);text-align:center}.footer[_ngcontent-%COMP%]   a[_ngcontent-%COMP%]{color:var(--selection-color-front)}.footer[_ngcontent-%COMP%]   a[_ngcontent-%COMP%]:hover{color:var(--selection-color-front);text-decoration:none}.actions[_ngcontent-%COMP%]{text-align:center;padding:24px 24px 48px}.logos[_ngcontent-%COMP%]{text-align:center;padding-bottom:24px}.logo[_ngcontent-%COMP%]{position:relative;display:inline-block;background-color:#fff;background-size:contain;background-repeat:no-repeat;background-position:center;width:200px;height:70px;margin:24px}.logo[_ngcontent-%COMP%] > a[_ngcontent-%COMP%]{position:absolute;top:0;left:0;width:100%;height:100%}.logo-mgk[_ngcontent-%COMP%]{background-image:url(logo-mgk.cf038931f0b4d3c0.jpg)}.logo-mk[_ngcontent-%COMP%]{background-image:url(logo-mk.3404153b77fd6c0a.jpg)}.logo-lpb[_ngcontent-%COMP%]{background-image:url(logo-lpb.1dcf9ebcb8a37566.png)}.logo-dg[_ngcontent-%COMP%]{background-image:url(logo-mk-demokratisch-gestalten.8de3765b1d1fccf5.jpg)}.logo-vl[_ngcontent-%COMP%]{background-image:url(logo-vl.d0482b6a4fdd1329.png)}.light-footer[_ngcontent-%COMP%]{color:var(--highlight-color);background-color:var(--selection-color-front)}.light-footer[_ngcontent-%COMP%]   a[_ngcontent-%COMP%]{color:#000}.light-footer[_ngcontent-%COMP%]   a[_ngcontent-%COMP%]:hover{color:var(--highlight-color);text-decoration:none}.intro[_ngcontent-%COMP%]{margin-top:48px}.actions[_ngcontent-%COMP%]   ul[_ngcontent-%COMP%]{list-style:none;margin:0;padding:0}.error[_ngcontent-%COMP%]{background-color:var(--error-color-faded);color:var(--error-color);border:1px solid var(--error-color)}.error[_ngcontent-%COMP%]   a[_ngcontent-%COMP%]{color:#000}.error[_ngcontent-%COMP%]   a[_ngcontent-%COMP%]:hover{color:var(--error-color)!important;text-decoration:none}.success[_ngcontent-%COMP%]{background-color:var(--success-color-faded);color:var(--success-color);border:1px solid var(--success-color)}.success[_ngcontent-%COMP%]   a[_ngcontent-%COMP%]{color:#000}.success[_ngcontent-%COMP%]   a[_ngcontent-%COMP%]:hover{color:var(--success-color)!important;text-decoration:none}.error[_ngcontent-%COMP%], .success[_ngcontent-%COMP%]{padding:var(--form-elements-padding);font-size:var(--font-size-form-elements);line-height:var(--line-height-form-elements);margin:24px 0}"]}),n})(),mJ=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=Xr({type:n}),n.\u0275inj=mr({imports:[[eR,D5,ZO]]}),n})();const _J=[{path:"take-your-space-gifhorn",component:dF}];let yJ=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=Xr({type:n,bootstrap:[dF]}),n.\u0275inj=mr({providers:[],imports:[[Zj,mJ,wG,K4.forRoot(_J,{scrollPositionRestoration:"enabled",anchorScrolling:"enabled",scrollOffset:[0,24]}),ZO.forRoot({markedOptions:{provide:qO,useValue:{gfm:!0,breaks:!1,pedantic:!1,smartLists:!0,smartypants:!1}}})]]}),n})();(function hB(){yA=!1})(),qj().bootstrapModule(yJ).catch(n=>console.error(n))},489:function(an,$t,Vt){var ao;an=Vt.nmd(an),function(){var D,gn="Expected a function",Sc="__lodash_hash_undefined__",St="__lodash_placeholder__",vi=1/0,vr=9007199254740991,Kr=4294967295,DC=[["ary",128],["bind",1],["bindKey",2],["curry",8],["curryRight",16],["flip",512],["partial",32],["partialRight",64],["rearg",256]],js="[object Arguments]",Gl="[object Array]",Hl="[object Boolean]",zl="[object Date]",Tc="[object Error]",Ac="[object Function]",Nv="[object GeneratorFunction]",Bi="[object Map]",xn="[object Number]",as="[object Object]",Rc="[object Promise]",Gs="[object RegExp]",Bt="[object Set]",$l="[object String]",Oc="[object Symbol]",Ao="[object WeakMap]",Wl="[object ArrayBuffer]",ls="[object DataView]",qf="[object Float32Array]",Kf="[object Float64Array]",Pc="[object Int8Array]",Zf="[object Int16Array]",Yf="[object Int32Array]",Fv="[object Uint8Array]",Xf="[object Uint8ClampedArray]",Qf="[object Uint16Array]",Jf="[object Uint32Array]",SC=/\b__p \+= '';/g,IC=/\b(__p \+=) '' \+/g,Ut=/(__e\(.*?\)|\b__t\)) \+\n'';/g,kc=/&(?:amp|lt|gt|quot|#39);/g,Tt=/[&<>"']/g,ed=RegExp(kc.source),TC=RegExp(Tt.source),Wt=/<%-([\s\S]+?)%>/g,Qe=/<%([\s\S]+?)%>/g,td=/<%=([\s\S]+?)%>/g,wD=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,st=/^\w*$/,nd=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,Ne=/[\\^$.*+?()[\]{}|]/g,Xn=RegExp(Ne.source),rd=/^\s+/,ED=/\s/,MD=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,Lc=/\{\n\/\* \[wrapped with (.+)\] \*/,Zr=/,? & /,xD=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,AC=/[()=,{}\[\]\/\s]/,bD=/\\(\\)?/g,Ro=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,RC=/\w*$/,DD=/^[-+]0x[0-9a-f]+$/i,SD=/^0b[01]+$/i,ID=/^\[object .+?Constructor\]$/,OC=/^0o[0-7]+$/i,TD=/^(?:0|[1-9]\d*)$/,PC=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,id=/($^)/,Yr=/['\n\r\u2028\u2029\\]/g,Ct="\\ud800-\\udfff",Fe="\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff",kC="\\u2700-\\u27bf",mr="a-z\\xdf-\\xf6\\xf8-\\xff",sd="A-Z\\xc0-\\xd6\\xd8-\\xde",ql="\\ufe0e\\ufe0f",Nc="\\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",FC="["+Ct+"]",Ve="["+Nc+"]",ka="["+Fe+"]",Bv="\\d+",us="["+kC+"]",ad="["+mr+"]",VC="[^"+Ct+Nc+Bv+kC+mr+sd+"]",ho="\\ud83c[\\udffb-\\udfff]",BC="[^"+Ct+"]",Uv="(?:\\ud83c[\\udde6-\\uddff]){2}",mi="[\\ud800-\\udbff][\\udc00-\\udfff]",La="["+sd+"]",Gv="(?:"+ad+"|"+VC+")",PD="(?:"+La+"|"+VC+")",Ot="(?:['\u2019](?:d|ll|m|re|s|t|ve))?",UC="(?:['\u2019](?:D|LL|M|RE|S|T|VE))?",jC="(?:"+ka+"|"+ho+")?",Hs="["+ql+"]?",Bc=Hs+jC+"(?:\\u200d(?:"+[BC,Uv,mi].join("|")+")"+Hs+jC+")*",Hv="(?:"+[us,Uv,mi].join("|")+")"+Bc,Oo="(?:"+[BC+ka+"?",ka,Uv,mi,FC].join("|")+")",Kl=RegExp("['\u2019]","g"),GC=RegExp(ka,"g"),An=RegExp(ho+"(?="+ho+")|"+Oo+Bc,"g"),HC=RegExp([La+"?"+ad+"+"+Ot+"(?="+[Ve,La,"$"].join("|")+")",PD+"+"+UC+"(?="+[Ve,La+Gv,"$"].join("|")+")",La+"?"+Gv+"+"+Ot,La+"+"+UC,"\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])","\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",Bv,Hv].join("|"),"g"),zv=RegExp("[\\u200d"+Ct+Fe+ql+"]"),$v=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,Wv=["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"],Xr=-1,Xt={};Xt[qf]=Xt[Kf]=Xt[Pc]=Xt[Zf]=Xt[Yf]=Xt[Fv]=Xt[Xf]=Xt[Qf]=Xt[Jf]=!0,Xt[js]=Xt[Gl]=Xt[Wl]=Xt[Hl]=Xt[ls]=Xt[zl]=Xt[Tc]=Xt[Ac]=Xt[Bi]=Xt[xn]=Xt[as]=Xt[Gs]=Xt[Bt]=Xt[$l]=Xt[Ao]=!1;var Gt={};Gt[js]=Gt[Gl]=Gt[Wl]=Gt[ls]=Gt[Hl]=Gt[zl]=Gt[qf]=Gt[Kf]=Gt[Pc]=Gt[Zf]=Gt[Yf]=Gt[Bi]=Gt[xn]=Gt[as]=Gt[Gs]=Gt[Bt]=Gt[$l]=Gt[Oc]=Gt[Fv]=Gt[Xf]=Gt[Qf]=Gt[Jf]=!0,Gt[Tc]=Gt[Ac]=Gt[Ao]=!1;var cs={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},zs=parseFloat,_i=parseInt,Zl="object"==typeof global&&global&&global.Object===Object&&global,ud="object"==typeof self&&self&&self.Object===Object&&self,mn=Zl||ud||Function("return this")(),Yl=$t&&!$t.nodeType&&$t,ji=Yl&&an&&!an.nodeType&&an,Jn=ji&&ji.exports===Yl,cd=Jn&&Zl.process,ln=function(){try{return ji&&ji.require&&ji.require("util").types||cd&&cd.binding&&cd.binding("util")}catch(V){}}(),Q=ln&&ln.isArrayBuffer,rt=ln&&ln.isDate,Qt=ln&&ln.isMap,Ir=ln&&ln.isRegExp,hs=ln&&ln.isSet,Rn=ln&&ln.isTypedArray;function On(R,V,L){switch(L.length){case 0:return R.call(V);case 1:return R.call(V,L[0]);case 2:return R.call(V,L[0],L[1]);case 3:return R.call(V,L[0],L[1],L[2])}return R.apply(V,L)}function cn(R,V,L,ie){for(var He=-1,_t=null==R?0:R.length;++He<_t;){var Hn=R[He];V(ie,Hn,L(Hn),R)}return ie}function ar(R,V){for(var L=-1,ie=null==R?0:R.length;++L<ie&&!1!==V(R[L],L,R););return R}function Na(R,V){for(var L=null==R?0:R.length;L--&&!1!==V(R[L],L,R););return R}function qe(R,V){for(var L=-1,ie=null==R?0:R.length;++L<ie;)if(!V(R[L],L,R))return!1;return!0}function Gi(R,V){for(var L=-1,ie=null==R?0:R.length,He=0,_t=[];++L<ie;){var Hn=R[L];V(Hn,L,R)&&(_t[He++]=Hn)}return _t}function Po(R,V){return!(null==R||!R.length)&&fs(R,V,0)>-1}function Xl(R,V,L){for(var ie=-1,He=null==R?0:R.length;++ie<He;)if(L(V,R[ie]))return!0;return!1}function Pt(R,V){for(var L=-1,ie=null==R?0:R.length,He=Array(ie);++L<ie;)He[L]=V(R[L],L,R);return He}function hn(R,V){for(var L=-1,ie=V.length,He=R.length;++L<ie;)R[He+L]=V[L];return R}function $s(R,V,L,ie){var He=-1,_t=null==R?0:R.length;for(ie&&_t&&(L=R[++He]);++He<_t;)L=V(L,R[He],He,R);return L}function Fa(R,V,L,ie){var He=null==R?0:R.length;for(ie&&He&&(L=R[--He]);He--;)L=V(L,R[He],He,R);return L}function Qr(R,V){for(var L=-1,ie=null==R?0:R.length;++L<ie;)if(V(R[L],L,R))return!0;return!1}var qt=hd("length");function Hi(R,V,L){var ie;return L(R,function(He,_t,Hn){if(V(He,_t,Hn))return ie=_t,!1}),ie}function Tr(R,V,L,ie){for(var He=R.length,_t=L+(ie?1:-1);ie?_t--:++_t<He;)if(V(R[_t],_t,R))return _t;return-1}function fs(R,V,L){return V==V?function Jv(R,V,L){for(var ie=L-1,He=R.length;++ie<He;)if(R[ie]===V)return ie;return-1}(R,V,L):Tr(R,Ql,L)}function Uc(R,V,L,ie){for(var He=L-1,_t=R.length;++He<_t;)if(ie(R[He],V))return He;return-1}function Ql(R){return R!=R}function yi(R,V){var L=null==R?0:R.length;return L?Zv(R,V)/L:NaN}function hd(R){return function(V){return null==V?D:V[R]}}function qv(R){return function(V){return null==R?D:R[V]}}function Kv(R,V,L,ie,He){return He(R,function(_t,Hn,Ae){L=ie?(ie=!1,_t):V(L,_t,Hn,Ae)}),L}function Zv(R,V){for(var L,ie=-1,He=R.length;++ie<He;){var _t=V(R[ie]);_t!==D&&(L=L===D?_t:L+_t)}return L}function Yv(R,V){for(var L=-1,ie=Array(R);++L<R;)ie[L]=V(L);return ie}function qC(R){return R&&R.slice(0,dd(R)+1).replace(rd,"")}function Ci(R){return function(V){return R(V)}}function Xv(R,V){return Pt(V,function(L){return R[L]})}function jc(R,V){return R.has(V)}function KC(R,V){for(var L=-1,ie=R.length;++L<ie&&fs(V,R[L],0)>-1;);return L}function ZC(R,V){for(var L=R.length;L--&&fs(V,R[L],0)>-1;);return L}function LD(R,V){for(var L=R.length,ie=0;L--;)R[L]===V&&++ie;return ie}var ND=qv({\u00c0:"A",\u00c1:"A",\u00c2:"A",\u00c3:"A",\u00c4:"A",\u00c5:"A",\u00e0:"a",\u00e1:"a",\u00e2:"a",\u00e3:"a",\u00e4:"a",\u00e5:"a",\u00c7:"C",\u00e7:"c",\u00d0:"D",\u00f0:"d",\u00c8:"E",\u00c9:"E",\u00ca:"E",\u00cb:"E",\u00e8:"e",\u00e9:"e",\u00ea:"e",\u00eb:"e",\u00cc:"I",\u00cd:"I",\u00ce:"I",\u00cf:"I",\u00ec:"i",\u00ed:"i",\u00ee:"i",\u00ef:"i",\u00d1:"N",\u00f1:"n",\u00d2:"O",\u00d3:"O",\u00d4:"O",\u00d5:"O",\u00d6:"O",\u00d8:"O",\u00f2:"o",\u00f3:"o",\u00f4:"o",\u00f5:"o",\u00f6:"o",\u00f8:"o",\u00d9:"U",\u00da:"U",\u00db:"U",\u00dc:"U",\u00f9:"u",\u00fa:"u",\u00fb:"u",\u00fc:"u",\u00dd:"Y",\u00fd:"y",\u00ff:"y",\u00c6:"Ae",\u00e6:"ae",\u00de:"Th",\u00fe:"th",\u00df:"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"}),FD=qv({"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"});function VD(R){return"\\"+cs[R]}function Ws(R){return zv.test(R)}function Qv(R){var V=-1,L=Array(R.size);return R.forEach(function(ie,He){L[++V]=[He,ie]}),L}function YC(R,V){return function(L){return R(V(L))}}function Ar(R,V){for(var L=-1,ie=R.length,He=0,_t=[];++L<ie;){var Hn=R[L];(Hn===V||Hn===St)&&(R[L]=St,_t[He++]=L)}return _t}function Gc(R){var V=-1,L=Array(R.size);return R.forEach(function(ie){L[++V]=ie}),L}function Va(R){return Ws(R)?function pd(R){for(var V=An.lastIndex=0;An.test(R);)++V;return V}(R):qt(R)}function wi(R){return Ws(R)?function JC(R){return R.match(An)||[]}(R):function zC(R){return R.split("")}(R)}function dd(R){for(var V=R.length;V--&&ED.test(R.charAt(V)););return V}var QC=qv({"&amp;":"&","&lt;":"<","&gt;":">","&quot;":'"',"&#39;":"'"}),Hc=function R(V){var u,L=(V=null==V?mn:Hc.defaults(mn.Object(),V,Hc.pick(mn,Wv))).Array,ie=V.Date,He=V.Error,_t=V.Function,Hn=V.Math,Ae=V.Object,zc=V.RegExp,ew=V.String,Et=V.TypeError,$c=L.prototype,ko=Ae.prototype,lr=V["__core-js_shared__"],Wc=_t.prototype.toString,Mt=ko.hasOwnProperty,Ba=0,Rr=(u=/[^.]+$/.exec(lr&&lr.keys&&lr.keys.IE_PROTO||""))?"Symbol(src)_1."+u:"",Jl=ko.toString,vd=Wc.call(Ae),tw=mn._,ds=zc("^"+Wc.call(Mt).replace(Ne,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),eu=Jn?V.Buffer:D,fo=V.Symbol,Re=V.Uint8Array,md=eu?eu.allocUnsafe:D,_d=YC(Ae.getPrototypeOf,Ae),em=Ae.create,tm=ko.propertyIsEnumerable,qc=$c.splice,yd=fo?fo.isConcatSpreadable:D,tu=fo?fo.iterator:D,qs=fo?fo.toStringTag:D,G=function(){try{var u=ys(Ae,"defineProperty");return u({},"",{}),u}catch(h){}}(),pt=V.clearTimeout!==mn.clearTimeout&&V.clearTimeout,Kt=ie&&ie.now!==mn.Date.now&&ie.now,Pn=V.setTimeout!==mn.setTimeout&&V.setTimeout,nu=Hn.ceil,ps=Hn.floor,Mi=Ae.getOwnPropertySymbols,Cd=eu?eu.isBuffer:D,Kc=V.isFinite,GD=$c.join,nw=YC(Ae.keys,Ae),zn=Hn.max,kn=Hn.min,_r=ie.now,Lo=V.parseInt,wd=Hn.random,Ua=$c.reverse,zi=ys(V,"DataView"),ru=ys(V,"Map"),Zc=ys(V,"Promise"),ja=ys(V,"Set"),iu=ys(V,"WeakMap"),Ks=ys(Ae,"create"),Ga=iu&&new iu,Zs={},Ed=oa(zi),rw=oa(ru),nm=oa(Zc),Yc=oa(ja),rm=oa(iu),ou=fo?fo.prototype:D,Ha=ou?ou.valueOf:D,Md=ou?ou.toString:D;function M(u){if(yn(u)&&!Ue(u)&&!(u instanceof Ke)){if(u instanceof Zt)return u;if(Mt.call(u,"__wrapped__"))return km(u)}return new Zt(u)}var za=function(){function u(){}return function(h){if(!fn(h))return{};if(em)return em(h);u.prototype=h;var p=new u;return u.prototype=D,p}}();function Xc(){}function Zt(u,h){this.__wrapped__=u,this.__actions__=[],this.__chain__=!!h,this.__index__=0,this.__values__=D}function Ke(u){this.__wrapped__=u,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=Kr,this.__views__=[]}function Ys(u){var h=-1,p=null==u?0:u.length;for(this.clear();++h<p;){var _=u[h];this.set(_[0],_[1])}}function xi(u){var h=-1,p=null==u?0:u.length;for(this.clear();++h<p;){var _=u[h];this.set(_[0],_[1])}}function No(u){var h=-1,p=null==u?0:u.length;for(this.clear();++h<p;){var _=u[h];this.set(_[0],_[1])}}function $a(u){var h=-1,p=null==u?0:u.length;for(this.__data__=new No;++h<p;)this.add(u[h])}function bi(u){var h=this.__data__=new xi(u);this.size=h.size}function am(u,h){var p=Ue(u),_=!p&&Uo(u),C=!p&&!_&&Ms(u),b=!p&&!_&&!C&&ii(u),I=p||_||C||b,A=I?Yv(u.length,ew):[],P=A.length;for(var U in u)(h||Mt.call(u,U))&&(!I||!("length"==U||C&&("offset"==U||"parent"==U)||b&&("buffer"==U||"byteLength"==U||"byteOffset"==U)||mo(U,P)))&&A.push(U);return A}function Xs(u){var h=u.length;return h?u[dm(0,h-1)]:D}function Sd(u,h){return sl(Or(u),po(h,0,u.length))}function nh(u){return sl(Or(u))}function lm(u,h,p){(p!==D&&!Lr(u[h],p)||p===D&&!(h in u))&&$i(u,h,p)}function qa(u,h,p){var _=u[h];(!Mt.call(u,h)||!Lr(_,p)||p===D&&!(h in u))&&$i(u,h,p)}function lu(u,h){for(var p=u.length;p--;)if(Lr(u[p][0],h))return p;return-1}function dw(u,h,p,_){return Fo(u,function(C,b,I){h(_,C,p(C),I)}),_}function um(u,h){return u&&Cr(h,rr(h),u)}function $i(u,h,p){"__proto__"==h&&G?G(u,h,{configurable:!0,enumerable:!0,value:p,writable:!0}):u[h]=p}function cu(u,h){for(var p=-1,_=h.length,C=L(_),b=null==u;++p<_;)C[p]=b?D:wr(u,h[p]);return C}function po(u,h,p){return u==u&&(p!==D&&(u=u<=p?u:p),h!==D&&(u=u>=h?u:h)),u}function yr(u,h,p,_,C,b){var I,A=1&h,P=2&h,U=4&h;if(p&&(I=C?p(u,_,C,b):p(u)),I!==D)return I;if(!fn(u))return u;var B=Ue(u);if(B){if(I=function Pw(u){var h=u.length,p=new u.constructor(h);return h&&"string"==typeof u[0]&&Mt.call(u,"index")&&(p.index=u.index,p.input=u.input),p}(u),!A)return Or(u,I)}else{var $=tr(u),Y=$==Ac||$==Nv;if(Ms(u))return Eu(u,A);if($==as||$==js||Y&&!C){if(I=P||Y?{}:Tm(u),!A)return P?function bw(u,h){return Cr(u,hh(u),h)}(u,function uu(u,h){return u&&Cr(h,Vr(h),u)}(I,u)):function xu(u,h){return Cr(u,Cs(u),h)}(u,um(I,u))}else{if(!Gt[$])return C?u:{};I=function kw(u,h,p){var _=u.constructor;switch(h){case Wl:return go(u);case Hl:case zl:return new _(+u);case ls:return function ym(u,h){var p=h?go(u.buffer):u.buffer;return new u.constructor(p,u.byteOffset,u.byteLength)}(u,p);case qf:case Kf:case Pc:case Zf:case Yf:case Fv:case Xf:case Qf:case Jf:return Gd(u,p);case Bi:return new _;case xn:case $l:return new _(u);case Gs:return function Mu(u){var h=new u.constructor(u.source,RC.exec(u));return h.lastIndex=u.lastIndex,h}(u);case Bt:return new _;case Oc:return function xw(u){return Ha?Ae(Ha.call(u)):{}}(u)}}(u,$,A)}}b||(b=new bi);var ge=b.get(u);if(ge)return ge;b.set(u,I),xp(u)?u.forEach(function(ve){I.add(yr(ve,h,p,ve,u,b))}):TE(u)&&u.forEach(function(ve,Je){I.set(Je,yr(ve,h,p,Je,u,b))});var Xe=B?D:(U?P?Kd:Iu:P?Vr:rr)(u);return ar(Xe||u,function(ve,Je){Xe&&(ve=u[Je=ve]),qa(I,Je,yr(ve,h,p,Je,u,b))}),I}function Id(u,h,p){var _=p.length;if(null==u)return!_;for(u=Ae(u);_--;){var C=p[_],I=u[C];if(I===D&&!(C in u)||!(0,h[C])(I))return!1}return!0}function Td(u,h,p){if("function"!=typeof u)throw new Et(gn);return Es(function(){u.apply(D,p)},h)}function Ka(u,h,p,_){var C=-1,b=Po,I=!0,A=u.length,P=[],U=h.length;if(!A)return P;p&&(h=Pt(h,Ci(p))),_?(b=Xl,I=!1):h.length>=200&&(b=jc,I=!1,h=new $a(h));e:for(;++C<A;){var B=u[C],$=null==p?B:p(B);if(B=_||0!==B?B:0,I&&$==$){for(var Y=U;Y--;)if(h[Y]===$)continue e;P.push(B)}else b(h,$,_)||P.push(B)}return P}M.templateSettings={escape:Wt,evaluate:Qe,interpolate:td,variable:"",imports:{_:M}},(M.prototype=Xc.prototype).constructor=M,(Zt.prototype=za(Xc.prototype)).constructor=Zt,(Ke.prototype=za(Xc.prototype)).constructor=Ke,Ys.prototype.clear=function sw(){this.__data__=Ks?Ks(null):{},this.size=0},Ys.prototype.delete=function aw(u){var h=this.has(u)&&delete this.__data__[u];return this.size-=h?1:0,h},Ys.prototype.get=function lw(u){var h=this.__data__;if(Ks){var p=h[u];return p===Sc?D:p}return Mt.call(h,u)?h[u]:D},Ys.prototype.has=function Qc(u){var h=this.__data__;return Ks?h[u]!==D:Mt.call(h,u)},Ys.prototype.set=function Jc(u,h){var p=this.__data__;return this.size+=this.has(u)?0:1,p[u]=Ks&&h===D?Sc:h,this},xi.prototype.clear=function xd(){this.__data__=[],this.size=0},xi.prototype.delete=function im(u){var h=this.__data__,p=lu(h,u);return!(p<0||(p==h.length-1?h.pop():qc.call(h,p,1),--this.size,0))},xi.prototype.get=function uw(u){var h=this.__data__,p=lu(h,u);return p<0?D:h[p][1]},xi.prototype.has=function gs(u){return lu(this.__data__,u)>-1},xi.prototype.set=function su(u,h){var p=this.__data__,_=lu(p,u);return _<0?(++this.size,p.push([u,h])):p[_][1]=h,this},No.prototype.clear=function cw(){this.size=0,this.__data__={hash:new Ys,map:new(ru||xi),string:new Ys}},No.prototype.delete=function au(u){var h=rl(this,u).delete(u);return this.size-=h?1:0,h},No.prototype.get=function bd(u){return rl(this,u).get(u)},No.prototype.has=function hw(u){return rl(this,u).has(u)},No.prototype.set=function fw(u,h){var p=rl(this,u),_=p.size;return p.set(u,h),this.size+=p.size==_?0:1,this},$a.prototype.add=$a.prototype.push=function HD(u){return this.__data__.set(u,Sc),this},$a.prototype.has=function eh(u){return this.__data__.has(u)},bi.prototype.clear=function Dd(){this.__data__=new xi,this.size=0},bi.prototype.delete=function th(u){var h=this.__data__,p=h.delete(u);return this.size=h.size,p},bi.prototype.get=function om(u){return this.__data__.get(u)},bi.prototype.has=function sm(u){return this.__data__.has(u)},bi.prototype.set=function Wa(u,h){var p=this.__data__;if(p instanceof xi){var _=p.__data__;if(!ru||_.length<199)return _.push([u,h]),this.size=++p.size,this;p=this.__data__=new No(_)}return p.set(u,h),this.size=p.size,this};var Fo=wm(Jt),cm=wm(fu,!0);function gw(u,h){var p=!0;return Fo(u,function(_,C,b){return p=!!h(_,C,b)}),p}function Qs(u,h,p){for(var _=-1,C=u.length;++_<C;){var b=u[_],I=h(b);if(null!=I&&(A===D?I==I&&!ri(I):p(I,A)))var A=I,P=b}return P}function hm(u,h){var p=[];return Fo(u,function(_,C,b){h(_,C,b)&&p.push(_)}),p}function $n(u,h,p,_,C){var b=-1,I=u.length;for(p||(p=Nw),C||(C=[]);++b<I;){var A=u[b];h>0&&p(A)?h>1?$n(A,h-1,p,_,C):hn(C,A):_||(C[C.length]=A)}return C}var rh=Dw(),Js=Dw(!0);function Jt(u,h){return u&&rh(u,h,rr)}function fu(u,h){return u&&Js(u,h,rr)}function vs(u,h){return Gi(h,function(p){return Zi(u[p])})}function Di(u,h){for(var p=0,_=(h=Ti(h,u)).length;null!=u&&p<_;)u=u[kr(h[p++])];return p&&p==_?u:D}function ea(u,h,p){var _=h(u);return Ue(u)?_:hn(_,p(u))}function bn(u){return null==u?u===D?"[object Undefined]":"[object Null]":qs&&qs in Ae(u)?function XD(u){var h=Mt.call(u,qs),p=u[qs];try{u[qs]=D;var _=!0}catch(b){}var C=Jl.call(u);return _&&(h?u[qs]=p:delete u[qs]),C}(u):function Bw(u){return Jl.call(u)}(u)}function ih(u,h){return u>h}function Ad(u,h){return null!=u&&Mt.call(u,h)}function Za(u,h){return null!=u&&h in Ae(u)}function Rd(u,h,p){for(var _=p?Xl:Po,C=u[0].length,b=u.length,I=b,A=L(b),P=1/0,U=[];I--;){var B=u[I];I&&h&&(B=Pt(B,Ci(h))),P=kn(B.length,P),A[I]=!p&&(h||C>=120&&B.length>=120)?new $a(I&&B):D}B=u[0];var $=-1,Y=A[0];e:for(;++$<C&&U.length<P;){var ge=B[$],Ee=h?h(ge):ge;if(ge=p||0!==ge?ge:0,!(Y?jc(Y,Ee):_(U,Ee,p))){for(I=b;--I;){var Xe=A[I];if(!(Xe?jc(Xe,Ee):_(u[I],Ee,p)))continue e}Y&&Y.push(Ee),U.push(ge)}}return U}function du(u,h,p){var _=null==(u=ep(u,h=Ti(h,u)))?u:u[kr(Ai(h))];return null==_?D:On(_,u,p)}function vw(u){return yn(u)&&bn(u)==js}function oh(u,h,p,_,C){return u===h||(null==u||null==h||!yn(u)&&!yn(h)?u!=u&&h!=h:function qD(u,h,p,_,C,b){var I=Ue(u),A=Ue(h),P=I?Gl:tr(u),U=A?Gl:tr(h),B=(P=P==js?as:P)==as,$=(U=U==js?as:U)==as,Y=P==U;if(Y&&Ms(u)){if(!Ms(h))return!1;I=!0,B=!1}if(Y&&!B)return b||(b=new bi),I||ii(u)?qd(u,h,p,_,C,b):function Aw(u,h,p,_,C,b,I){switch(p){case ls:if(u.byteLength!=h.byteLength||u.byteOffset!=h.byteOffset)return!1;u=u.buffer,h=h.buffer;case Wl:return!(u.byteLength!=h.byteLength||!b(new Re(u),new Re(h)));case Hl:case zl:case xn:return Lr(+u,+h);case Tc:return u.name==h.name&&u.message==h.message;case Gs:case $l:return u==h+"";case Bi:var A=Qv;case Bt:if(A||(A=Gc),u.size!=h.size&&!(1&_))return!1;var U=I.get(u);if(U)return U==h;_|=2,I.set(u,h);var B=qd(A(u),A(h),_,C,b,I);return I.delete(u),B;case Oc:if(Ha)return Ha.call(u)==Ha.call(h)}return!1}(u,h,P,p,_,C,b);if(!(1&p)){var ge=B&&Mt.call(u,"__wrapped__"),Ee=$&&Mt.call(h,"__wrapped__");if(ge||Ee){var Xe=ge?u.value():u,ve=Ee?h.value():h;return b||(b=new bi),C(Xe,ve,p,_,b)}}return!!Y&&(b||(b=new bi),function Rw(u,h,p,_,C,b){var I=1&p,A=Iu(u),P=A.length;if(P!=Iu(h).length&&!I)return!1;for(var $=P;$--;){var Y=A[$];if(!(I?Y in h:Mt.call(h,Y)))return!1}var ge=b.get(u),Ee=b.get(h);if(ge&&Ee)return ge==h&&Ee==u;var Xe=!0;b.set(u,h),b.set(h,u);for(var ve=I;++$<P;){var Je=u[Y=A[$]],Me=h[Y];if(_)var Vn=I?_(Me,Je,Y,h,u,b):_(Je,Me,Y,u,h,b);if(!(Vn===D?Je===Me||C(Je,Me,p,_,b):Vn)){Xe=!1;break}ve||(ve="constructor"==Y)}if(Xe&&!ve){var Wn=u.constructor,nn=h.constructor;Wn!=nn&&"constructor"in u&&"constructor"in h&&!("function"==typeof Wn&&Wn instanceof Wn&&"function"==typeof nn&&nn instanceof nn)&&(Xe=!1)}return b.delete(u),b.delete(h),Xe}(u,h,p,_,C,b))}(u,h,p,_,oh,C))}function ta(u,h,p,_){var C=p.length,b=C,I=!_;if(null==u)return!b;for(u=Ae(u);C--;){var A=p[C];if(I&&A[2]?A[1]!==u[A[0]]:!(A[0]in u))return!1}for(;++C<b;){var P=(A=p[C])[0],U=u[P],B=A[1];if(I&&A[2]){if(U===D&&!(P in u))return!1}else{var $=new bi;if(_)var Y=_(U,B,P,u,h,$);if(!(Y===D?oh(B,U,3,_,$):Y))return!1}}return!0}function mw(u){return!(!fn(u)||function Fw(u){return!!Rr&&Rr in u}(u))&&(Zi(u)?ds:ID).test(oa(u))}function _w(u){return"function"==typeof u?u:null==u?Fn:"object"==typeof u?Ue(u)?Ya(u[0],u[1]):gu(u):Wp(u)}function Pd(u){if(!il(u))return nw(u);var h=[];for(var p in Ae(u))Mt.call(u,p)&&"constructor"!=p&&h.push(p);return h}function Ii(u,h){return u<h}function kd(u,h){var p=-1,_=Nr(u)?L(u.length):[];return Fo(u,function(C,b,I){_[++p]=h(C,b,I)}),_}function gu(u){var h=Tu(u);return 1==h.length&&h[0][2]?Qd(h[0][0],h[0][1]):function(p){return p===u||ta(p,u,h)}}function Ya(u,h){return fh(u)&&ws(h)?Qd(kr(u),h):function(p){var _=wr(p,u);return _===D&&_===h?Tp(p,u):oh(h,_,3)}}function vu(u,h,p,_,C){u!==h&&rh(h,function(b,I){if(C||(C=new bi),fn(b))!function yw(u,h,p,_,C,b,I){var A=Au(u,p),P=Au(h,p),U=I.get(P);if(U)lm(u,p,U);else{var B=b?b(A,P,p+"",u,h,I):D,$=B===D;if($){var Y=Ue(P),ge=!Y&&Ms(P),Ee=!Y&&!ge&&ii(P);B=P,Y||ge||Ee?Ue(A)?B=A:_n(A)?B=Or(A):ge?($=!1,B=Eu(P,!0)):Ee?($=!1,B=Gd(P,!0)):B=[]:Nu(P)||Uo(P)?(B=A,Uo(A)?B=ha(A):(!fn(A)||Zi(A))&&(B=Tm(P))):$=!1}$&&(I.set(P,B),C(B,P,_,b,I),I.delete(P)),lm(u,p,B)}}(u,h,I,p,vu,_,C);else{var A=_?_(Au(u,I),b,I+"",u,h,C):D;A===D&&(A=b),lm(u,I,A)}},Vr)}function fm(u,h){var p=u.length;if(p)return mo(h+=h<0?p:0,p)?u[h]:D}function Cw(u,h,p){h=h.length?Pt(h,function(b){return Ue(b)?function(I){return Di(I,1===b.length?b[0]:b)}:b}):[Fn];var _=-1;return h=Pt(h,Ci(Ce())),function WC(R,V){var L=R.length;for(R.sort(V);L--;)R[L]=R[L].value;return R}(kd(u,function(b,I,A){return{criteria:Pt(h,function(U){return U(b)}),index:++_,value:b}}),function(b,I){return function lh(u,h,p){for(var _=-1,C=u.criteria,b=h.criteria,I=C.length,A=p.length;++_<I;){var P=ah(C[_],b[_]);if(P)return _>=A?P:P*("desc"==p[_]?-1:1)}return u.index-h.index}(b,I,p)})}function Ld(u,h,p){for(var _=-1,C=h.length,b={};++_<C;){var I=h[_],A=Di(u,I);p(A,I)&&_u(b,Ti(I,u),A)}return b}function mu(u,h,p,_){var C=_?Uc:fs,b=-1,I=h.length,A=u;for(u===h&&(h=Or(h)),p&&(A=Pt(u,Ci(p)));++b<I;)for(var P=0,U=h[b],B=p?p(U):U;(P=C(A,B,P,_))>-1;)A!==u&&qc.call(A,P,1),qc.call(u,P,1);return u}function na(u,h){for(var p=u?h.length:0,_=p-1;p--;){var C=h[p];if(p==_||C!==b){var b=C;mo(C)?qc.call(u,C,1):Bd(u,C)}}return u}function dm(u,h){return u+ps(wd()*(h-u+1))}function Nd(u,h){var p="";if(!u||h<1||h>vr)return p;do{h%2&&(p+=u),(h=ps(h/2))&&(u+=u)}while(h);return p}function it(u,h){return ol(Jd(u,h,Fn),u+"")}function ww(u){return Xs(Bu(u))}function Ew(u,h){var p=Bu(u);return sl(p,po(h,0,p.length))}function _u(u,h,p,_){if(!fn(u))return u;for(var C=-1,b=(h=Ti(h,u)).length,I=b-1,A=u;null!=A&&++C<b;){var P=kr(h[C]),U=p;if("__proto__"===P||"constructor"===P||"prototype"===P)return u;if(C!=I){var B=A[P];(U=_?_(B,P,A):D)===D&&(U=fn(B)?B:mo(h[C+1])?[]:{})}qa(A,P,U),A=A[P]}return u}var Fd=Ga?function(u,h){return Ga.set(u,h),u}:Fn,Vd=G?function(u,h){return G(u,"toString",{configurable:!0,enumerable:!1,value:ju(h),writable:!0})}:Fn;function sh(u){return sl(Bu(u))}function Wi(u,h,p){var _=-1,C=u.length;h<0&&(h=-h>C?0:C+h),(p=p>C?C:p)<0&&(p+=C),C=h>p?0:p-h>>>0,h>>>=0;for(var b=L(C);++_<C;)b[_]=u[_+h];return b}function yu(u,h){var p;return Fo(u,function(_,C,b){return!(p=h(_,C,b))}),!!p}function Xa(u,h,p){var _=0,C=null==u?_:u.length;if("number"==typeof h&&h==h&&C<=2147483647){for(;_<C;){var b=_+C>>>1,I=u[b];null!==I&&!ri(I)&&(p?I<=h:I<h)?_=b+1:C=b}return C}return Qa(u,h,Fn,p)}function Qa(u,h,p,_){var C=0,b=null==u?0:u.length;if(0===b)return 0;for(var I=(h=p(h))!=h,A=null===h,P=ri(h),U=h===D;C<b;){var B=ps((C+b)/2),$=p(u[B]),Y=$!==D,ge=null===$,Ee=$==$,Xe=ri($);if(I)var ve=_||Ee;else ve=U?Ee&&(_||Y):A?Ee&&Y&&(_||!ge):P?Ee&&Y&&!ge&&(_||!Xe):!ge&&!Xe&&(_?$<=h:$<h);ve?C=B+1:b=B}return kn(b,4294967294)}function gm(u,h){for(var p=-1,_=u.length,C=0,b=[];++p<_;){var I=u[p],A=h?h(I):I;if(!p||!Lr(A,P)){var P=A;b[C++]=0===I?0:I}}return b}function vm(u){return"number"==typeof u?u:ri(u)?NaN:+u}function ti(u){if("string"==typeof u)return u;if(Ue(u))return Pt(u,ti)+"";if(ri(u))return Md?Md.call(u):"";var h=u+"";return"0"==h&&1/u==-vi?"-0":h}function Vo(u,h,p){var _=-1,C=Po,b=u.length,I=!0,A=[],P=A;if(p)I=!1,C=Xl;else if(b>=200){var U=h?null:Iw(u);if(U)return Gc(U);I=!1,C=jc,P=new $a}else P=h?[]:A;e:for(;++_<b;){var B=u[_],$=h?h(B):B;if(B=p||0!==B?B:0,I&&$==$){for(var Y=P.length;Y--;)if(P[Y]===$)continue e;h&&P.push($),A.push(B)}else C(P,$,p)||(P!==A&&P.push($),A.push(B))}return A}function Bd(u,h){return null==(u=ep(u,h=Ti(h,u)))||delete u[kr(Ai(h))]}function Ja(u,h,p,_){return _u(u,h,p(Di(u,h)),_)}function Cu(u,h,p,_){for(var C=u.length,b=_?C:-1;(_?b--:++b<C)&&h(u[b],b,u););return p?Wi(u,_?0:b,_?b+1:C):Wi(u,_?b+1:0,_?C:b)}function mm(u,h){var p=u;return p instanceof Ke&&(p=p.value()),$s(h,function(_,C){return C.func.apply(C.thisArg,hn([_],C.args))},p)}function oe(u,h,p){var _=u.length;if(_<2)return _?Vo(u[0]):[];for(var C=-1,b=L(_);++C<_;)for(var I=u[C],A=-1;++A<_;)A!=C&&(b[C]=Ka(b[C]||I,u[A],h,p));return Vo($n(b,1),h,p)}function Ud(u,h,p){for(var _=-1,C=u.length,b=h.length,I={};++_<C;)p(I,u[_],_<b?h[_]:D);return I}function jd(u){return _n(u)?u:[]}function wu(u){return"function"==typeof u?u:Fn}function Ti(u,h){return Ue(u)?u:fh(u,h)?[u]:gh(ft(u))}var Mw=it;function ms(u,h,p){var _=u.length;return p=p===D?_:p,!h&&p>=_?u:Wi(u,h,p)}var _m=pt||function(u){return mn.clearTimeout(u)};function Eu(u,h){if(h)return u.slice();var p=u.length,_=md?md(p):new u.constructor(p);return u.copy(_),_}function go(u){var h=new u.constructor(u.byteLength);return new Re(h).set(new Re(u)),h}function Gd(u,h){var p=h?go(u.buffer):u.buffer;return new u.constructor(p,u.byteOffset,u.length)}function ah(u,h){if(u!==h){var p=u!==D,_=null===u,C=u==u,b=ri(u),I=h!==D,A=null===h,P=h==h,U=ri(h);if(!A&&!U&&!b&&u>h||b&&I&&P&&!A&&!U||_&&I&&P||!p&&P||!C)return 1;if(!_&&!b&&!U&&u<h||U&&p&&C&&!_&&!b||A&&p&&C||!I&&C||!P)return-1}return 0}function Hd(u,h,p,_){for(var C=-1,b=u.length,I=p.length,A=-1,P=h.length,U=zn(b-I,0),B=L(P+U),$=!_;++A<P;)B[A]=h[A];for(;++C<I;)($||C<b)&&(B[p[C]]=u[C]);for(;U--;)B[A++]=u[C++];return B}function Cm(u,h,p,_){for(var C=-1,b=u.length,I=-1,A=p.length,P=-1,U=h.length,B=zn(b-A,0),$=L(B+U),Y=!_;++C<B;)$[C]=u[C];for(var ge=C;++P<U;)$[ge+P]=h[P];for(;++I<A;)(Y||C<b)&&($[ge+p[I]]=u[C++]);return $}function Or(u,h){var p=-1,_=u.length;for(h||(h=L(_));++p<_;)h[p]=u[p];return h}function Cr(u,h,p,_){var C=!p;p||(p={});for(var b=-1,I=h.length;++b<I;){var A=h[b],P=_?_(p[A],u[A],A,p,u):D;P===D&&(P=u[A]),C?$i(p,A,P):qa(p,A,P)}return p}function zd(u,h){return function(p,_){var C=Ue(p)?cn:dw,b=h?h():{};return C(p,u,Ce(_,2),b)}}function ra(u){return it(function(h,p){var _=-1,C=p.length,b=C>1?p[C-1]:D,I=C>2?p[2]:D;for(b=u.length>3&&"function"==typeof b?(C--,b):D,I&&nr(p[0],p[1],I)&&(b=C<3?D:b,C=1),h=Ae(h);++_<C;){var A=p[_];A&&u(h,A,_,b)}return h})}function wm(u,h){return function(p,_){if(null==p)return p;if(!Nr(p))return u(p,_);for(var C=p.length,b=h?C:-1,I=Ae(p);(h?b--:++b<C)&&!1!==_(I[b],b,I););return p}}function Dw(u){return function(h,p,_){for(var C=-1,b=Ae(h),I=_(h),A=I.length;A--;){var P=I[u?A:++C];if(!1===p(b[P],P,b))break}return h}}function Em(u){return function(h){var p=Ws(h=ft(h))?wi(h):D,_=p?p[0]:h.charAt(0),C=p?ms(p,1).join(""):h.slice(1);return _[u]()+C}}function el(u){return function(h){return $s(Ph(S_(h).replace(Kl,"")),u,"")}}function bu(u){return function(){var h=arguments;switch(h.length){case 0:return new u;case 1:return new u(h[0]);case 2:return new u(h[0],h[1]);case 3:return new u(h[0],h[1],h[2]);case 4:return new u(h[0],h[1],h[2],h[3]);case 5:return new u(h[0],h[1],h[2],h[3],h[4]);case 6:return new u(h[0],h[1],h[2],h[3],h[4],h[5]);case 7:return new u(h[0],h[1],h[2],h[3],h[4],h[5],h[6])}var p=za(u.prototype),_=u.apply(p,h);return fn(_)?_:p}}function Pr(u){return function(h,p,_){var C=Ae(h);if(!Nr(h)){var b=Ce(p,3);h=rr(h),p=function(A){return b(C[A],A,C)}}var I=u(h,p,_);return I>-1?C[b?h[I]:I]:D}}function Mm(u){return qi(function(h){var p=h.length,_=p,C=Zt.prototype.thru;for(u&&h.reverse();_--;){var b=h[_];if("function"!=typeof b)throw new Et(gn);if(C&&!I&&"wrapper"==_s(b))var I=new Zt([],!0)}for(_=I?_:p;++_<p;){var A=_s(b=h[_]),P="wrapper"==A?ch(b):D;I=P&&Xd(P[0])&&424==P[1]&&!P[4].length&&1==P[9]?I[_s(P[0])].apply(I,P[3]):1==b.length&&Xd(b)?I[A]():I.thru(b)}return function(){var U=arguments,B=U[0];if(I&&1==U.length&&Ue(B))return I.plant(B).value();for(var $=0,Y=p?h[$].apply(this,U):B;++$<p;)Y=h[$].call(this,Y);return Y}})}function uh(u,h,p,_,C,b,I,A,P,U){var B=128&h,$=1&h,Y=2&h,ge=24&h,Ee=512&h,Xe=Y?D:bu(u);return function ve(){for(var Je=arguments.length,Me=L(Je),Vn=Je;Vn--;)Me[Vn]=arguments[Vn];if(ge)var Wn=ia(ve),nn=LD(Me,Wn);if(_&&(Me=Hd(Me,_,C,ge)),b&&(Me=Cm(Me,b,I,ge)),Je-=nn,ge&&Je<U){var At=Ar(Me,Wn);return nl(u,h,uh,ve.placeholder,p,Me,At,A,P,U-Je)}var cr=$?p:this,Br=Y?cr[u]:u;return Je=Me.length,A?Me=Om(Me,A):Ee&&Je>1&&Me.reverse(),B&&P<Je&&(Me.length=P),this&&this!==mn&&this instanceof ve&&(Br=Xe||bu(Br)),Br.apply(cr,Me)}}function xm(u,h){return function(p,_){return function Be(u,h,p,_){return Jt(u,function(C,b,I){h(_,p(C),b,I)}),_}(p,u,h(_),{})}}function Du(u,h){return function(p,_){var C;if(p===D&&_===D)return h;if(p!==D&&(C=p),_!==D){if(C===D)return _;"string"==typeof p||"string"==typeof _?(p=ti(p),_=ti(_)):(p=vm(p),_=vm(_)),C=u(p,_)}return C}}function er(u){return qi(function(h){return h=Pt(h,Ci(Ce())),it(function(p){var _=this;return u(h,function(C){return On(C,_,p)})})})}function tl(u,h){var p=(h=h===D?" ":ti(h)).length;if(p<2)return p?Nd(h,u):h;var _=Nd(h,nu(u/Va(h)));return Ws(h)?ms(wi(_),0,u).join(""):_.slice(0,u)}function $d(u){return function(h,p,_){return _&&"number"!=typeof _&&nr(h,p,_)&&(p=_=D),h=jo(h),p===D?(p=h,h=0):p=jo(p),function pm(u,h,p,_){for(var C=-1,b=zn(nu((h-u)/(p||1)),0),I=L(b);b--;)I[_?b:++C]=u,u+=p;return I}(h,p,_=_===D?h<p?1:-1:jo(_),u)}}function Nn(u){return function(h,p){return"string"==typeof h&&"string"==typeof p||(h=Fr(h),p=Fr(p)),u(h,p)}}function nl(u,h,p,_,C,b,I,A,P,U){var B=8&h;h|=B?32:64,4&(h&=~(B?64:32))||(h&=-4);var Xe=[u,h,C,B?b:D,B?I:D,B?D:b,B?D:I,A,P,U],ve=p.apply(D,Xe);return Xd(u)&&tp(ve,Xe),ve.placeholder=_,np(ve,u,h)}function Su(u){var h=Hn[u];return function(p,_){if(p=Fr(p),(_=null==_?0:kn(je(_),292))&&Kc(p)){var C=(ft(p)+"e").split("e");return+((C=(ft(h(C[0]+"e"+(+C[1]+_)))+"e").split("e"))[0]+"e"+(+C[1]-_))}return h(p)}}var Iw=ja&&1/Gc(new ja([,-0]))[1]==vi?function(u){return new ja(u)}:zp;function Dm(u){return function(h){var p=tr(h);return p==Bi?Qv(h):p==Bt?function Jr(R){var V=-1,L=Array(R.size);return R.forEach(function(ie){L[++V]=[ie,ie]}),L}(h):function kD(R,V){return Pt(V,function(L){return[L,R[L]]})}(h,u(h))}}function vo(u,h,p,_,C,b,I,A){var P=2&h;if(!P&&"function"!=typeof u)throw new Et(gn);var U=_?_.length:0;if(U||(h&=-97,_=C=D),I=I===D?I:zn(je(I),0),A=A===D?A:je(A),U-=C?C.length:0,64&h){var B=_,$=C;_=C=D}var Y=P?D:ch(u),ge=[u,h,p,_,C,B,$,b,I,A];if(Y&&function Vw(u,h){var p=u[1],_=h[1],C=p|_;if(!(C<131||(128==_&&8==p||128==_&&256==p&&u[7].length<=h[8]||384==_&&h[7].length<=h[8]&&8==p)))return u;1&_&&(u[2]=h[2],C|=1&p?0:4);var A=h[3];if(A){var P=u[3];u[3]=P?Hd(P,A,h[4]):A,u[4]=P?Ar(u[3],St):h[4]}(A=h[5])&&(u[5]=(P=u[5])?Cm(P,A,h[6]):A,u[6]=P?Ar(u[5],St):h[6]),(A=h[7])&&(u[7]=A),128&_&&(u[8]=null==u[8]?h[8]:kn(u[8],h[8])),null==u[9]&&(u[9]=h[9]),u[0]=h[0],u[1]=C}(ge,Y),u=ge[0],h=ge[1],p=ge[2],_=ge[3],C=ge[4],!(A=ge[9]=ge[9]===D?P?0:u.length:zn(ge[9]-U,0))&&24&h&&(h&=-25),h&&1!=h)Ee=8==h||16==h?function YD(u,h,p){var _=bu(u);return function C(){for(var b=arguments.length,I=L(b),A=b,P=ia(C);A--;)I[A]=arguments[A];var U=b<3&&I[0]!==P&&I[b-1]!==P?[]:Ar(I,P);return(b-=U.length)<p?nl(u,h,uh,C.placeholder,D,I,U,D,D,p-b):On(this&&this!==mn&&this instanceof C?_:u,this,I)}}(u,h,A):32!=h&&33!=h||C.length?uh.apply(D,ge):function bm(u,h,p,_){var C=1&h,b=bu(u);return function I(){for(var A=-1,P=arguments.length,U=-1,B=_.length,$=L(B+P),Y=this&&this!==mn&&this instanceof I?b:u;++U<B;)$[U]=_[U];for(;P--;)$[U++]=arguments[++A];return On(Y,C?p:this,$)}}(u,h,p,_);else var Ee=function Sw(u,h,p){var _=1&h,C=bu(u);return function b(){return(this&&this!==mn&&this instanceof b?C:u).apply(_?p:this,arguments)}}(u,h,p);return np((Y?Fd:tp)(Ee,ge),u,h)}function Sm(u,h,p,_){return u===D||Lr(u,ko[p])&&!Mt.call(_,p)?h:u}function Wd(u,h,p,_,C,b){return fn(u)&&fn(h)&&(b.set(h,u),vu(u,h,D,Wd,b),b.delete(h)),u}function Tw(u){return Nu(u)?D:u}function qd(u,h,p,_,C,b){var I=1&p,A=u.length,P=h.length;if(A!=P&&!(I&&P>A))return!1;var U=b.get(u),B=b.get(h);if(U&&B)return U==h&&B==u;var $=-1,Y=!0,ge=2&p?new $a:D;for(b.set(u,h),b.set(h,u);++$<A;){var Ee=u[$],Xe=h[$];if(_)var ve=I?_(Xe,Ee,$,h,u,b):_(Ee,Xe,$,u,h,b);if(ve!==D){if(ve)continue;Y=!1;break}if(ge){if(!Qr(h,function(Je,Me){if(!jc(ge,Me)&&(Ee===Je||C(Ee,Je,p,_,b)))return ge.push(Me)})){Y=!1;break}}else if(Ee!==Xe&&!C(Ee,Xe,p,_,b)){Y=!1;break}}return b.delete(u),b.delete(h),Y}function qi(u){return ol(Jd(u,D,sp),u+"")}function Iu(u){return ea(u,rr,Cs)}function Kd(u){return ea(u,Vr,hh)}var ch=Ga?function(u){return Ga.get(u)}:zp;function _s(u){for(var h=u.name+"",p=Zs[h],_=Mt.call(Zs,h)?p.length:0;_--;){var C=p[_],b=C.func;if(null==b||b==u)return C.name}return h}function ia(u){return(Mt.call(M,"placeholder")?M:u).placeholder}function Ce(){var u=M.iteratee||kh;return u=u===kh?_w:u,arguments.length?u(arguments[0],arguments[1]):u}function rl(u,h){var p=u.__data__;return function Yd(u){var h=typeof u;return"string"==h||"number"==h||"symbol"==h||"boolean"==h?"__proto__"!==u:null===u}(h)?p["string"==typeof h?"string":"hash"]:p.map}function Tu(u){for(var h=rr(u),p=h.length;p--;){var _=h[p],C=u[_];h[p]=[_,C,ws(C)]}return h}function ys(u,h){var p=function BD(R,V){return null==R?D:R[V]}(u,h);return mw(p)?p:D}var Cs=Mi?function(u){return null==u?[]:(u=Ae(u),Gi(Mi(u),function(h){return tm.call(u,h)}))}:qp,hh=Mi?function(u){for(var h=[];u;)hn(h,Cs(u)),u=_d(u);return h}:qp,tr=bn;function Im(u,h,p){for(var _=-1,C=(h=Ti(h,u)).length,b=!1;++_<C;){var I=kr(h[_]);if(!(b=null!=u&&p(u,I)))break;u=u[I]}return b||++_!=C?b:!!(C=null==u?0:u.length)&&Ep(C)&&mo(I,C)&&(Ue(u)||Uo(u))}function Tm(u){return"function"!=typeof u.constructor||il(u)?{}:za(_d(u))}function Nw(u){return Ue(u)||Uo(u)||!!(yd&&u&&u[yd])}function mo(u,h){var p=typeof u;return!!(h=null==h?vr:h)&&("number"==p||"symbol"!=p&&TD.test(u))&&u>-1&&u%1==0&&u<h}function nr(u,h,p){if(!fn(p))return!1;var _=typeof h;return!!("number"==_?Nr(p)&&mo(h,p.length):"string"==_&&h in p)&&Lr(p[h],u)}function fh(u,h){if(Ue(u))return!1;var p=typeof u;return!("number"!=p&&"symbol"!=p&&"boolean"!=p&&null!=u&&!ri(u))||st.test(u)||!wD.test(u)||null!=h&&u in Ae(h)}function Xd(u){var h=_s(u),p=M[h];if("function"!=typeof p||!(h in Ke.prototype))return!1;if(u===p)return!0;var _=ch(p);return!!_&&u===_[0]}(zi&&tr(new zi(new ArrayBuffer(1)))!=ls||ru&&tr(new ru)!=Bi||Zc&&tr(Zc.resolve())!=Rc||ja&&tr(new ja)!=Bt||iu&&tr(new iu)!=Ao)&&(tr=function(u){var h=bn(u),p=h==as?u.constructor:D,_=p?oa(p):"";if(_)switch(_){case Ed:return ls;case rw:return Bi;case nm:return Rc;case Yc:return Bt;case rm:return Ao}return h});var Am=lr?Zi:Kp;function il(u){var h=u&&u.constructor;return u===("function"==typeof h&&h.prototype||ko)}function ws(u){return u==u&&!fn(u)}function Qd(u,h){return function(p){return null!=p&&p[u]===h&&(h!==D||u in Ae(p))}}function Jd(u,h,p){return h=zn(h===D?u.length-1:h,0),function(){for(var _=arguments,C=-1,b=zn(_.length-h,0),I=L(b);++C<b;)I[C]=_[h+C];C=-1;for(var A=L(h+1);++C<h;)A[C]=_[C];return A[h]=p(I),On(u,this,A)}}function ep(u,h){return h.length<2?u:Di(u,Wi(h,0,-1))}function Om(u,h){for(var p=u.length,_=kn(h.length,p),C=Or(u);_--;){var b=h[_];u[_]=mo(b,p)?C[b]:D}return u}function Au(u,h){if(("constructor"!==h||"function"!=typeof u[h])&&"__proto__"!=h)return u[h]}var tp=ph(Fd),Es=Pn||function(u,h){return mn.setTimeout(u,h)},ol=ph(Vd);function np(u,h,p){var _=h+"";return ol(u,function Lw(u,h){var p=h.length;if(!p)return u;var _=p-1;return h[_]=(p>1?"& ":"")+h[_],h=h.join(p>2?", ":" "),u.replace(MD,"{\n/* [wrapped with "+h+"] */\n")}(_,function Pm(u,h){return ar(DC,function(p){var _="_."+p[0];h&p[1]&&!Po(u,_)&&u.push(_)}),u.sort()}(function Zd(u){var h=u.match(Lc);return h?h[1].split(Zr):[]}(_),p)))}function ph(u){var h=0,p=0;return function(){var _=_r(),C=16-(_-p);if(p=_,C>0){if(++h>=800)return arguments[0]}else h=0;return u.apply(D,arguments)}}function sl(u,h){var p=-1,_=u.length,C=_-1;for(h=h===D?_:h;++p<h;){var b=dm(p,C),I=u[b];u[b]=u[p],u[p]=I}return u.length=h,u}var gh=function Rm(u){var h=Eh(u,function(_){return 500===p.size&&p.clear(),_}),p=h.cache;return h}(function(u){var h=[];return 46===u.charCodeAt(0)&&h.push(""),u.replace(nd,function(p,_,C,b){h.push(C?b.replace(bD,"$1"):_||p)}),h});function kr(u){if("string"==typeof u||ri(u))return u;var h=u+"";return"0"==h&&1/u==-vi?"-0":h}function oa(u){if(null!=u){try{return Wc.call(u)}catch(h){}try{return u+""}catch(h){}}return""}function km(u){if(u instanceof Ke)return u.clone();var h=new Zt(u.__wrapped__,u.__chain__);return h.__actions__=Or(u.__actions__),h.__index__=u.__index__,h.__values__=u.__values__,h}var vh=it(function(u,h){return _n(u)?Ka(u,$n(h,1,_n,!0)):[]}),ip=it(function(u,h){var p=Ai(h);return _n(p)&&(p=D),_n(u)?Ka(u,$n(h,1,_n,!0),Ce(p,2)):[]}),sa=it(function(u,h){var p=Ai(h);return _n(p)&&(p=D),_n(u)?Ka(u,$n(h,1,_n,!0),D,p):[]});function _h(u,h,p){var _=null==u?0:u.length;if(!_)return-1;var C=null==p?0:je(p);return C<0&&(C=zn(_+C,0)),Tr(u,Ce(h,3),C)}function op(u,h,p){var _=null==u?0:u.length;if(!_)return-1;var C=_-1;return p!==D&&(C=je(p),C=p<0?zn(_+C,0):kn(C,_-1)),Tr(u,Ce(h,3),C,!0)}function sp(u){return null!=u&&u.length?$n(u,1):[]}function Fm(u){return u&&u.length?u[0]:D}var qw=it(function(u){var h=Pt(u,jd);return h.length&&h[0]===u[0]?Rd(h):[]}),ni=it(function(u){var h=Ai(u),p=Pt(u,jd);return h===Ai(p)?h=D:p.pop(),p.length&&p[0]===u[0]?Rd(p,Ce(h,2)):[]}),_o=it(function(u){var h=Ai(u),p=Pt(u,jd);return(h="function"==typeof h?h:D)&&p.pop(),p.length&&p[0]===u[0]?Rd(p,D,h):[]});function Ai(u){var h=null==u?0:u.length;return h?u[h-1]:D}var Yw=it(Bm);function Bm(u,h){return u&&u.length&&h&&h.length?mu(u,h):u}var Qw=qi(function(u,h){var p=null==u?0:u.length,_=cu(u,h);return na(u,Pt(h,function(C){return mo(C,p)?+C:C}).sort(ah)),_});function ap(u){return null==u?u:Ua.call(u)}var cp=it(function(u){return Vo($n(u,1,_n,!0))}),rS=it(function(u){var h=Ai(u);return _n(h)&&(h=D),Vo($n(u,1,_n,!0),Ce(h,2))}),iS=it(function(u){var h=Ai(u);return h="function"==typeof h?h:D,Vo($n(u,1,_n,!0),D,h)});function hp(u){if(!u||!u.length)return[];var h=0;return u=Gi(u,function(p){if(_n(p))return h=zn(p.length,h),!0}),Yv(h,function(p){return Pt(u,hd(p))})}function Wm(u,h){if(!u||!u.length)return[];var p=hp(u);return null==h?p:Pt(p,function(_){return On(h,D,_)})}var qm=it(function(u,h){return _n(u)?Ka(u,h):[]}),yh=it(function(u){return oe(Gi(u,_n))}),Km=it(function(u){var h=Ai(u);return _n(h)&&(h=D),oe(Gi(u,_n),Ce(h,2))}),fp=it(function(u){var h=Ai(u);return h="function"==typeof h?h:D,oe(Gi(u,_n),D,h)}),rE=it(hp),iE=it(function(u){var h=u.length,p=h>1?u[h-1]:D;return p="function"==typeof p?(u.pop(),p):D,Wm(u,p)});function ua(u){var h=M(u);return h.__chain__=!0,h}function Ch(u,h){return h(u)}var oE=qi(function(u){var h=u.length,p=h?u[0]:0,_=this.__wrapped__,C=function(b){return cu(b,u)};return!(h>1||this.__actions__.length)&&_ instanceof Ke&&mo(p)?((_=_.slice(p,+p+(h?1:0))).__actions__.push({func:Ch,args:[C],thisArg:D}),new Zt(_,this.__chain__).thru(function(b){return h&&!b.length&&b.push(D),b})):this.thru(C)}),uE=zd(function(u,h,p){Mt.call(u,p)?++u[p]:$i(u,p,1)}),hE=Pr(_h),fE=Pr(op);function Ym(u,h){return(Ue(u)?ar:Fo)(u,Ce(h,3))}function Xm(u,h){return(Ue(u)?Na:cm)(u,Ce(h,3))}var gE=zd(function(u,h,p){Mt.call(u,p)?u[p].push(h):$i(u,p,[h])}),mE=it(function(u,h,p){var _=-1,C="function"==typeof h,b=Nr(u)?L(u.length):[];return Fo(u,function(I){b[++_]=C?On(h,I,p):du(I,h,p)}),b}),_E=zd(function(u,h,p){$i(u,p,h)});function wh(u,h){return(Ue(u)?Pt:kd)(u,Ce(h,3))}var al=zd(function(u,h,p){u[p?0:1].push(h)},function(){return[[],[]]}),CE=it(function(u,h){if(null==u)return[];var p=h.length;return p>1&&nr(u,h[0],h[1])?h=[]:p>2&&nr(h[0],h[1],h[2])&&(h=[h[0]]),Cw(u,$n(h,1),[])}),Lu=Kt||function(){return mn.Date.now()};function t_(u,h,p){return h=p?D:h,vo(u,128,D,D,D,D,h=u&&null==h?u.length:h)}function Ri(u,h){var p;if("function"!=typeof h)throw new Et(gn);return u=je(u),function(){return--u>0&&(p=h.apply(this,arguments)),u<=1&&(h=D),p}}var gp=it(function(u,h,p){var _=1;if(p.length){var C=Ar(p,ia(gp));_|=32}return vo(u,_,h,p,C)}),vp=it(function(u,h,p){var _=3;if(p.length){var C=Ar(p,ia(vp));_|=32}return vo(h,_,u,p,C)});function i_(u,h,p){var _,C,b,I,A,P,U=0,B=!1,$=!1,Y=!0;if("function"!=typeof u)throw new Et(gn);function ge(At){var cr=_,Br=C;return _=C=D,U=At,I=u.apply(Br,cr)}function Ee(At){return U=At,A=Es(Je,h),B?ge(At):I}function ve(At){var cr=At-P;return P===D||cr>=h||cr<0||$&&At-U>=b}function Je(){var At=Lu();if(ve(At))return Me(At);A=Es(Je,function Xe(At){var fa=h-(At-P);return $?kn(fa,b-(At-U)):fa}(At))}function Me(At){return A=D,Y&&_?ge(At):(_=C=D,I)}function nn(){var At=Lu(),cr=ve(At);if(_=arguments,C=this,P=At,cr){if(A===D)return Ee(P);if($)return _m(A),A=Es(Je,h),ge(P)}return A===D&&(A=Es(Je,h)),I}return h=Fr(h)||0,fn(p)&&(B=!!p.leading,b=($="maxWait"in p)?zn(Fr(p.maxWait)||0,h):b,Y="trailing"in p?!!p.trailing:Y),nn.cancel=function Vn(){A!==D&&_m(A),U=0,_=P=C=A=D},nn.flush=function Wn(){return A===D?I:Me(Lu())},nn}var EE=it(function(u,h){return Td(u,1,h)}),o_=it(function(u,h,p){return Td(u,Fr(h)||0,p)});function Eh(u,h){if("function"!=typeof u||null!=h&&"function"!=typeof h)throw new Et(gn);var p=function(){var _=arguments,C=h?h.apply(this,_):_[0],b=p.cache;if(b.has(C))return b.get(C);var I=u.apply(this,_);return p.cache=b.set(C,I)||b,I};return p.cache=new(Eh.Cache||No),p}function Mh(u){if("function"!=typeof u)throw new Et(gn);return function(){var h=arguments;switch(h.length){case 0:return!u.call(this);case 1:return!u.call(this,h[0]);case 2:return!u.call(this,h[0],h[1]);case 3:return!u.call(this,h[0],h[1],h[2])}return!u.apply(this,h)}}Eh.Cache=No;var ne=Mw(function(u,h){var p=(h=1==h.length&&Ue(h[0])?Pt(h[0],Ci(Ce())):Pt($n(h,1),Ci(Ce()))).length;return it(function(_){for(var C=-1,b=kn(_.length,p);++C<b;)_[C]=h[C].call(this,_[C]);return On(u,this,_)})}),xh=it(function(u,h){var p=Ar(h,ia(xh));return vo(u,32,D,h,p)}),mp=it(function(u,h){var p=Ar(h,ia(mp));return vo(u,64,D,h,p)}),bh=qi(function(u,h){return vo(u,256,D,D,D,h)});function Lr(u,h){return u===h||u!=u&&h!=h}var Dh=Nn(ih),wp=Nn(function(u,h){return u>=h}),Uo=vw(function(){return arguments}())?vw:function(u){return yn(u)&&Mt.call(u,"callee")&&!tm.call(u,"callee")},Ue=L.isArray,dS=Q?Ci(Q):function $D(u){return yn(u)&&bn(u)==Wl};function Nr(u){return null!=u&&Ep(u.length)&&!Zi(u)}function _n(u){return yn(u)&&Nr(u)}var Ms=Cd||Kp,u_=rt?Ci(rt):function WD(u){return yn(u)&&bn(u)==zl};function Sh(u){if(!yn(u))return!1;var h=bn(u);return h==Tc||"[object DOMException]"==h||"string"==typeof u.message&&"string"==typeof u.name&&!Nu(u)}function Zi(u){if(!fn(u))return!1;var h=bn(u);return h==Ac||h==Nv||"[object AsyncFunction]"==h||"[object Proxy]"==h}function IE(u){return"number"==typeof u&&u==je(u)}function Ep(u){return"number"==typeof u&&u>-1&&u%1==0&&u<=vr}function fn(u){var h=typeof u;return null!=u&&("object"==h||"function"==h)}function yn(u){return null!=u&&"object"==typeof u}var TE=Qt?Ci(Qt):function KD(u){return yn(u)&&tr(u)==Bi};function Ih(u){return"number"==typeof u||yn(u)&&bn(u)==xn}function Nu(u){if(!yn(u)||bn(u)!=as)return!1;var h=_d(u);if(null===h)return!0;var p=Mt.call(h,"constructor")&&h.constructor;return"function"==typeof p&&p instanceof p&&Wc.call(p)==vd}var Th=Ir?Ci(Ir):function Ln(u){return yn(u)&&bn(u)==Gs},xp=hs?Ci(hs):function Od(u){return yn(u)&&tr(u)==Bt};function ll(u){return"string"==typeof u||!Ue(u)&&yn(u)&&bn(u)==$l}function ri(u){return"symbol"==typeof u||yn(u)&&bn(u)==Oc}var ii=Rn?Ci(Rn):function pu(u){return yn(u)&&Ep(u.length)&&!!Xt[bn(u)]},RE=Nn(Ii),f_=Nn(function(u,h){return u<=h});function d_(u){if(!u)return[];if(Nr(u))return ll(u)?wi(u):Or(u);if(tu&&u[tu])return function UD(R){for(var V,L=[];!(V=R.next()).done;)L.push(V.value);return L}(u[tu]());var h=tr(u);return(h==Bi?Qv:h==Bt?Gc:Bu)(u)}function jo(u){return u?(u=Fr(u))===vi||u===-vi?17976931348623157e292*(u<0?-1:1):u==u?u:0:0===u?u:0}function je(u){var h=jo(u),p=h%1;return h==h?p?h-p:h:0}function ca(u){return u?po(je(u),0,Kr):0}function Fr(u){if("number"==typeof u)return u;if(ri(u))return NaN;if(fn(u)){var h="function"==typeof u.valueOf?u.valueOf():u;u=fn(h)?h+"":h}if("string"!=typeof u)return 0===u?u:+u;u=qC(u);var p=SD.test(u);return p||OC.test(u)?_i(u.slice(2),p?2:8):DD.test(u)?NaN:+u}function ha(u){return Cr(u,Vr(u))}function ft(u){return null==u?"":ti(u)}var OE=ra(function(u,h){if(il(h)||Nr(h))Cr(h,rr(h),u);else for(var p in h)Mt.call(h,p)&&qa(u,p,h[p])}),Dp=ra(function(u,h){Cr(h,Vr(h),u)}),Vu=ra(function(u,h,p,_){Cr(h,Vr(h),u,_)}),Sp=ra(function(u,h,p,_){Cr(h,rr(h),u,_)}),Ip=qi(cu),Ah=it(function(u,h){u=Ae(u);var p=-1,_=h.length,C=_>2?h[2]:D;for(C&&nr(h[0],h[1],C)&&(_=1);++p<_;)for(var b=h[p],I=Vr(b),A=-1,P=I.length;++A<P;){var U=I[A],B=u[U];(B===D||Lr(B,ko[U])&&!Mt.call(u,U))&&(u[U]=b[U])}return u}),PE=it(function(u){return u.push(D,Wd),On(w_,D,u)});function wr(u,h,p){var _=null==u?D:Di(u,h);return _===D?p:_}function Tp(u,h){return null!=u&&Im(u,h,Za)}var ES=xm(function(u,h,p){null!=h&&"function"!=typeof h.toString&&(h=Jl.call(h)),u[h]=p},ju(Fn)),MS=xm(function(u,h,p){null!=h&&"function"!=typeof h.toString&&(h=Jl.call(h)),Mt.call(u,h)?u[h].push(p):u[h]=[p]},Ce),y_=it(du);function rr(u){return Nr(u)?am(u):Pd(u)}function Vr(u){return Nr(u)?am(u,!0):function Si(u){if(!fn(u))return function dh(u){var h=[];if(null!=u)for(var p in Ae(u))h.push(p);return h}(u);var h=il(u),p=[];for(var _ in u)"constructor"==_&&(h||!Mt.call(u,_))||p.push(_);return p}(u)}var VE=ra(function(u,h,p){vu(u,h,p)}),w_=ra(function(u,h,p,_){vu(u,h,p,_)}),BE=qi(function(u,h){var p={};if(null==u)return p;var _=!1;h=Pt(h,function(b){return b=Ti(b,u),_||(_=b.length>1),b}),Cr(u,Kd(u),p),_&&(p=yr(p,7,Tw));for(var C=h.length;C--;)Bd(p,h[C]);return p}),UE=qi(function(u,h){return null==u?{}:function ZD(u,h){return Ld(u,h,function(p,_){return Tp(u,_)})}(u,h)});function Rp(u,h){if(null==u)return{};var p=Pt(Kd(u),function(_){return[_]});return h=Ce(h),Ld(u,p,function(_,C){return h(_,C[0])})}var Op=Dm(rr),x_=Dm(Vr);function Bu(u){return null==u?[]:Xv(u,rr(u))}var kp=el(function(u,h,p){return h=h.toLowerCase(),u+(p?D_(h):h)});function D_(u){return jp(ft(u).toLowerCase())}function S_(u){return(u=ft(u))&&u.replace(PC,ND).replace(GC,"")}var Np=el(function(u,h,p){return u+(p?"-":"")+h.toLowerCase()}),Fp=el(function(u,h,p){return u+(p?" ":"")+h.toLowerCase()}),I_=Em("toLowerCase"),A_=el(function(u,h,p){return u+(p?"_":"")+h.toLowerCase()}),O_=el(function(u,h,p){return u+(p?" ":"")+jp(h)}),Uu=el(function(u,h,p){return u+(p?" ":"")+h.toUpperCase()}),jp=Em("toUpperCase");function Ph(u,h,p){return u=ft(u),(h=p?D:h)===D?function fd(R){return $v.test(R)}(u)?function Ei(R){return R.match(HC)||[]}(u):function $C(R){return R.match(xD)||[]}(u):u.match(h)||[]}var Gp=it(function(u,h){try{return On(u,D,h)}catch(p){return Sh(p)?p:new He(p)}}),L_=qi(function(u,h){return ar(h,function(p){p=kr(p),$i(u,p,gp(u[p],u))}),u});function ju(u){return function(){return u}}var e1=Mm(),F_=Mm(!0);function Fn(u){return u}function kh(u){return _w("function"==typeof u?u:yr(u,1))}var ul=it(function(u,h){return function(p){return du(p,u,h)}}),r1=it(function(u,h){return function(p){return du(u,p,h)}});function Hp(u,h,p){var _=rr(h),C=vs(h,_);null==p&&(!fn(h)||!C.length&&_.length)&&(p=h,h=u,u=this,C=vs(h,rr(h)));var b=!(fn(p)&&"chain"in p&&!p.chain),I=Zi(u);return ar(C,function(A){var P=h[A];u[A]=P,I&&(u.prototype[A]=function(){var U=this.__chain__;if(b||U){var B=u(this.__wrapped__),$=B.__actions__=Or(this.__actions__);return $.push({func:P,args:arguments,thisArg:u}),B.__chain__=U,B}return P.apply(u,hn([this.value()],arguments))})}),u}function zp(){}var $p=er(Pt),V_=er(qe),B_=er(Qr);function Wp(u){return fh(u)?hd(kr(u)):function ei(u){return function(h){return Di(h,u)}}(u)}var o1=$d(),s1=$d(!0);function qp(){return[]}function Kp(){return!1}var AS=Du(function(u,h){return u+h},0),Zp=Su("ceil"),u1=Du(function(u,h){return u/h},1),H_=Su("floor"),W_=Du(function(u,h){return u*h},1),q_=Su("round"),c1=Du(function(u,h){return u-h},0);return M.after=function wE(u,h){if("function"!=typeof h)throw new Et(gn);return u=je(u),function(){if(--u<1)return h.apply(this,arguments)}},M.ary=t_,M.assign=OE,M.assignIn=Dp,M.assignInWith=Vu,M.assignWith=Sp,M.at=Ip,M.before=Ri,M.bind=gp,M.bindAll=L_,M.bindKey=vp,M.castArray=function yp(){if(!arguments.length)return[];var u=arguments[0];return Ue(u)?u:[u]},M.chain=ua,M.chunk=function Uw(u,h,p){h=(p?nr(u,h,p):h===D)?1:zn(je(h),0);var _=null==u?0:u.length;if(!_||h<1)return[];for(var C=0,b=0,I=L(nu(_/h));C<_;)I[b++]=Wi(u,C,C+=h);return I},M.compact=function Lm(u){for(var h=-1,p=null==u?0:u.length,_=0,C=[];++h<p;){var b=u[h];b&&(C[_++]=b)}return C},M.concat=function rp(){var u=arguments.length;if(!u)return[];for(var h=L(u-1),p=arguments[0],_=u;_--;)h[_-1]=arguments[_];return hn(Ue(p)?Or(p):[p],$n(h,1))},M.cond=function N_(u){var h=null==u?0:u.length,p=Ce();return u=h?Pt(u,function(_){if("function"!=typeof _[1])throw new Et(gn);return[p(_[0]),_[1]]}):[],it(function(_){for(var C=-1;++C<h;){var b=u[C];if(On(b[0],this,_))return On(b[1],this,_)}})},M.conforms=function QE(u){return function pw(u){var h=rr(u);return function(p){return Id(p,u,h)}}(yr(u,1))},M.constant=ju,M.countBy=uE,M.create=function p_(u,h){var p=za(u);return null==h?p:um(p,h)},M.curry=function n_(u,h,p){var _=vo(u,8,D,D,D,D,D,h=p?D:h);return _.placeholder=n_.placeholder,_},M.curryRight=function r_(u,h,p){var _=vo(u,16,D,D,D,D,D,h=p?D:h);return _.placeholder=r_.placeholder,_},M.debounce=i_,M.defaults=Ah,M.defaultsDeep=PE,M.defer=EE,M.delay=o_,M.difference=vh,M.differenceBy=ip,M.differenceWith=sa,M.drop=function jw(u,h,p){var _=null==u?0:u.length;return _?Wi(u,(h=p||h===D?1:je(h))<0?0:h,_):[]},M.dropRight=function Gw(u,h,p){var _=null==u?0:u.length;return _?Wi(u,0,(h=_-(h=p||h===D?1:je(h)))<0?0:h):[]},M.dropRightWhile=function QD(u,h){return u&&u.length?Cu(u,Ce(h,3),!0,!0):[]},M.dropWhile=function Hw(u,h){return u&&u.length?Cu(u,Ce(h,3),!0):[]},M.fill=function mh(u,h,p,_){var C=null==u?0:u.length;return C?(p&&"number"!=typeof p&&nr(u,h,p)&&(p=0,_=C),function hu(u,h,p,_){var C=u.length;for((p=je(p))<0&&(p=-p>C?0:C+p),(_=_===D||_>C?C:je(_))<0&&(_+=C),_=p>_?0:ca(_);p<_;)u[p++]=h;return u}(u,h,p,_)):[]},M.filter=function pp(u,h){return(Ue(u)?Gi:hm)(u,Ce(h,3))},M.flatMap=function ku(u,h){return $n(wh(u,h),1)},M.flatMapDeep=function dE(u,h){return $n(wh(u,h),vi)},M.flatMapDepth=function pE(u,h,p){return p=p===D?1:je(p),$n(wh(u,h),p)},M.flatten=sp,M.flattenDeep=function Nm(u){return null!=u&&u.length?$n(u,vi):[]},M.flattenDepth=function aa(u,h){return null!=u&&u.length?$n(u,h=h===D?1:je(h)):[]},M.flip=function ME(u){return vo(u,512)},M.flow=e1,M.flowRight=F_,M.fromPairs=function zw(u){for(var h=-1,p=null==u?0:u.length,_={};++h<p;){var C=u[h];_[C[0]]=C[1]}return _},M.functions=function LE(u){return null==u?[]:vs(u,rr(u))},M.functionsIn=function NE(u){return null==u?[]:vs(u,Vr(u))},M.groupBy=gE,M.initial=function Ww(u){return null!=u&&u.length?Wi(u,0,-1):[]},M.intersection=qw,M.intersectionBy=ni,M.intersectionWith=_o,M.invert=ES,M.invertBy=MS,M.invokeMap=mE,M.iteratee=kh,M.keyBy=_E,M.keys=rr,M.keysIn=Vr,M.map=wh,M.mapKeys=function Ap(u,h){var p={};return h=Ce(h,3),Jt(u,function(_,C,b){$i(p,h(_,C,b),_)}),p},M.mapValues=function C_(u,h){var p={};return h=Ce(h,3),Jt(u,function(_,C,b){$i(p,C,h(_,C,b))}),p},M.matches=function t1(u){return gu(yr(u,1))},M.matchesProperty=function n1(u,h){return Ya(u,yr(h,1))},M.memoize=Eh,M.merge=VE,M.mergeWith=w_,M.method=ul,M.methodOf=r1,M.mixin=Hp,M.negate=Mh,M.nthArg=function ur(u){return u=je(u),it(function(h){return fm(h,u)})},M.omit=BE,M.omitBy=function E_(u,h){return Rp(u,Mh(Ce(h)))},M.once=function ze(u){return Ri(2,u)},M.orderBy=function yE(u,h,p,_){return null==u?[]:(Ue(h)||(h=null==h?[]:[h]),Ue(p=_?D:p)||(p=null==p?[]:[p]),Cw(u,h,p))},M.over=$p,M.overArgs=ne,M.overEvery=V_,M.overSome=B_,M.partial=xh,M.partialRight=mp,M.partition=al,M.pick=UE,M.pickBy=Rp,M.property=Wp,M.propertyOf=function U_(u){return function(h){return null==u?D:Di(u,h)}},M.pull=Yw,M.pullAll=Bm,M.pullAllBy=function Um(u,h,p){return u&&u.length&&h&&h.length?mu(u,h,Ce(p,2)):u},M.pullAllWith=function Xw(u,h,p){return u&&u.length&&h&&h.length?mu(u,h,D,p):u},M.pullAt=Qw,M.range=o1,M.rangeRight=s1,M.rearg=bh,M.reject=function lS(u,h){return(Ue(u)?Gi:hm)(u,Mh(Ce(h,3)))},M.remove=function Jw(u,h){var p=[];if(!u||!u.length)return p;var _=-1,C=[],b=u.length;for(h=Ce(h,3);++_<b;){var I=u[_];h(I,_,u)&&(p.push(I),C.push(_))}return na(u,C),p},M.rest=function Ki(u,h){if("function"!=typeof u)throw new Et(gn);return it(u,h=h===D?h:je(h))},M.reverse=ap,M.sampleSize=function uS(u,h,p){return h=(p?nr(u,h,p):h===D)?1:je(h),(Ue(u)?Sd:Ew)(u,h)},M.set=function GE(u,h,p){return null==u?u:_u(u,h,p)},M.setWith=function M_(u,h,p,_){return _="function"==typeof _?_:D,null==u?u:_u(u,h,p,_)},M.shuffle=function Jm(u){return(Ue(u)?nh:sh)(u)},M.slice=function JD(u,h,p){var _=null==u?0:u.length;return _?(p&&"number"!=typeof p&&nr(u,h,p)?(h=0,p=_):(h=null==h?0:je(h),p=p===D?_:je(p)),Wi(u,h,p)):[]},M.sortBy=CE,M.sortedUniq=function Hm(u){return u&&u.length?gm(u):[]},M.sortedUniqBy=function zm(u,h){return u&&u.length?gm(u,Ce(h,2)):[]},M.split=function R_(u,h,p){return p&&"number"!=typeof p&&nr(u,h,p)&&(h=p=D),(p=p===D?Kr:p>>>0)?(u=ft(u))&&("string"==typeof h||null!=h&&!Th(h))&&!(h=ti(h))&&Ws(u)?ms(wi(u),0,p):u.split(h,p):[]},M.spread=function s_(u,h){if("function"!=typeof u)throw new Et(gn);return h=null==h?0:zn(je(h),0),it(function(p){var _=p[h],C=ms(p,0,h);return _&&hn(C,_),On(u,this,C)})},M.tail=function eS(u){var h=null==u?0:u.length;return h?Wi(u,1,h):[]},M.take=function tS(u,h,p){return u&&u.length?Wi(u,0,(h=p||h===D?1:je(h))<0?0:h):[]},M.takeRight=function nS(u,h,p){var _=null==u?0:u.length;return _?Wi(u,(h=_-(h=p||h===D?1:je(h)))<0?0:h,_):[]},M.takeRightWhile=function lp(u,h){return u&&u.length?Cu(u,Ce(h,3),!1,!0):[]},M.takeWhile=function up(u,h){return u&&u.length?Cu(u,Ce(h,3)):[]},M.tap=function Zm(u,h){return h(u),u},M.throttle=function xE(u,h,p){var _=!0,C=!0;if("function"!=typeof u)throw new Et(gn);return fn(p)&&(_="leading"in p?!!p.leading:_,C="trailing"in p?!!p.trailing:C),i_(u,h,{leading:_,maxWait:h,trailing:C})},M.thru=Ch,M.toArray=d_,M.toPairs=Op,M.toPairsIn=x_,M.toPath=function l1(u){return Ue(u)?Pt(u,kr):ri(u)?[u]:Or(gh(ft(u)))},M.toPlainObject=ha,M.transform=function wo(u,h,p){var _=Ue(u),C=_||Ms(u)||ii(u);if(h=Ce(h,4),null==p){var b=u&&u.constructor;p=C?_?new b:[]:fn(u)&&Zi(b)?za(_d(u)):{}}return(C?ar:Jt)(u,function(I,A,P){return h(p,I,A,P)}),p},M.unary=function _p(u){return t_(u,1)},M.union=cp,M.unionBy=rS,M.unionWith=iS,M.uniq=function $m(u){return u&&u.length?Vo(u):[]},M.uniqBy=function tE(u,h){return u&&u.length?Vo(u,Ce(h,2)):[]},M.uniqWith=function nE(u,h){return h="function"==typeof h?h:D,u&&u.length?Vo(u,D,h):[]},M.unset=function Pp(u,h){return null==u||Bd(u,h)},M.unzip=hp,M.unzipWith=Wm,M.update=function HE(u,h,p){return null==u?u:Ja(u,h,wu(p))},M.updateWith=function zE(u,h,p,_){return _="function"==typeof _?_:D,null==u?u:Ja(u,h,wu(p),_)},M.values=Bu,M.valuesIn=function b_(u){return null==u?[]:Xv(u,Vr(u))},M.without=qm,M.words=Ph,M.wrap=function Bo(u,h){return xh(wu(h),u)},M.xor=yh,M.xorBy=Km,M.xorWith=fp,M.zip=rE,M.zipObject=function Ht(u,h){return Ud(u||[],h||[],qa)},M.zipObjectDeep=function la(u,h){return Ud(u||[],h||[],_u)},M.zipWith=iE,M.entries=Op,M.entriesIn=x_,M.extend=Dp,M.extendWith=Vu,Hp(M,M),M.add=AS,M.attempt=Gp,M.camelCase=kp,M.capitalize=D_,M.ceil=Zp,M.clamp=function $E(u,h,p){return p===D&&(p=h,h=D),p!==D&&(p=(p=Fr(p))==p?p:0),h!==D&&(h=(h=Fr(h))==h?h:0),po(Fr(u),h,p)},M.clone=function a_(u){return yr(u,4)},M.cloneDeep=function hS(u){return yr(u,5)},M.cloneDeepWith=function l_(u,h){return yr(u,5,h="function"==typeof h?h:D)},M.cloneWith=function Cp(u,h){return yr(u,4,h="function"==typeof h?h:D)},M.conformsTo=function fS(u,h){return null==h||Id(u,h,rr(h))},M.deburr=S_,M.defaultTo=function JE(u,h){return null==u||u!=u?h:u},M.divide=u1,M.endsWith=function Rh(u,h,p){u=ft(u),h=ti(h);var _=u.length,C=p=p===D?_:po(je(p),0,_);return(p-=h.length)>=0&&u.slice(p,C)==h},M.eq=Lr,M.escape=function Lp(u){return(u=ft(u))&&TC.test(u)?u.replace(Tt,FD):u},M.escapeRegExp=function KE(u){return(u=ft(u))&&Xn.test(u)?u.replace(Ne,"\\$&"):u},M.every=function cE(u,h,p){var _=Ue(u)?qe:gw;return p&&nr(u,h,p)&&(h=D),_(u,Ce(h,3))},M.find=hE,M.findIndex=_h,M.findKey=function g_(u,h){return Hi(u,Ce(h,3),Jt)},M.findLast=fE,M.findLastIndex=op,M.findLastKey=function wS(u,h){return Hi(u,Ce(h,3),fu)},M.floor=H_,M.forEach=Ym,M.forEachRight=Xm,M.forIn=function v_(u,h){return null==u?u:rh(u,Ce(h,3),Vr)},M.forInRight=function m_(u,h){return null==u?u:Js(u,Ce(h,3),Vr)},M.forOwn=function kE(u,h){return u&&Jt(u,Ce(h,3))},M.forOwnRight=function __(u,h){return u&&fu(u,Ce(h,3))},M.get=wr,M.gt=Dh,M.gte=wp,M.has=function FE(u,h){return null!=u&&Im(u,h,Ad)},M.hasIn=Tp,M.head=Fm,M.identity=Fn,M.includes=function vE(u,h,p,_){u=Nr(u)?u:Bu(u),p=p&&!_?je(p):0;var C=u.length;return p<0&&(p=zn(C+p,0)),ll(u)?p<=C&&u.indexOf(h,p)>-1:!!C&&fs(u,h,p)>-1},M.indexOf=function $w(u,h,p){var _=null==u?0:u.length;if(!_)return-1;var C=null==p?0:je(p);return C<0&&(C=zn(_+C,0)),fs(u,h,C)},M.inRange=function WE(u,h,p){return h=jo(h),p===D?(p=h,h=0):p=jo(p),function zD(u,h,p){return u>=kn(h,p)&&u<zn(h,p)}(u=Fr(u),h,p)},M.invoke=y_,M.isArguments=Uo,M.isArray=Ue,M.isArrayBuffer=dS,M.isArrayLike=Nr,M.isArrayLikeObject=_n,M.isBoolean=function bE(u){return!0===u||!1===u||yn(u)&&bn(u)==Hl},M.isBuffer=Ms,M.isDate=u_,M.isElement=function pS(u){return yn(u)&&1===u.nodeType&&!Nu(u)},M.isEmpty=function DE(u){if(null==u)return!0;if(Nr(u)&&(Ue(u)||"string"==typeof u||"function"==typeof u.splice||Ms(u)||ii(u)||Uo(u)))return!u.length;var h=tr(u);if(h==Bi||h==Bt)return!u.size;if(il(u))return!Pd(u).length;for(var p in u)if(Mt.call(u,p))return!1;return!0},M.isEqual=function gS(u,h){return oh(u,h)},M.isEqualWith=function c_(u,h,p){var _=(p="function"==typeof p?p:D)?p(u,h):D;return _===D?oh(u,h,D,p):!!_},M.isError=Sh,M.isFinite=function SE(u){return"number"==typeof u&&Kc(u)},M.isFunction=Zi,M.isInteger=IE,M.isLength=Ep,M.isMap=TE,M.isMatch=function vS(u,h){return u===h||ta(u,h,Tu(h))},M.isMatchWith=function mS(u,h,p){return p="function"==typeof p?p:D,ta(u,h,Tu(h),p)},M.isNaN=function _S(u){return Ih(u)&&u!=+u},M.isNative=function yS(u){if(Am(u))throw new He("Unsupported core-js use. Try https://npms.io/search?q=ponyfill.");return mw(u)},M.isNil=function xs(u){return null==u},M.isNull=function CS(u){return null===u},M.isNumber=Ih,M.isObject=fn,M.isObjectLike=yn,M.isPlainObject=Nu,M.isRegExp=Th,M.isSafeInteger=function Mp(u){return IE(u)&&u>=-vr&&u<=vr},M.isSet=xp,M.isString=ll,M.isSymbol=ri,M.isTypedArray=ii,M.isUndefined=function h_(u){return u===D},M.isWeakMap=function AE(u){return yn(u)&&tr(u)==Ao},M.isWeakSet=function bp(u){return yn(u)&&"[object WeakSet]"==bn(u)},M.join=function Vm(u,h){return null==u?"":GD.call(u,h)},M.kebabCase=Np,M.last=Ai,M.lastIndexOf=function Kw(u,h,p){var _=null==u?0:u.length;if(!_)return-1;var C=_;return p!==D&&(C=(C=je(p))<0?zn(_+C,0):kn(C,_-1)),h==h?function XC(R,V,L){for(var ie=L+1;ie--;)if(R[ie]===V)return ie;return ie}(u,h,C):Tr(u,Ql,C,!0)},M.lowerCase=Fp,M.lowerFirst=I_,M.lt=RE,M.lte=f_,M.max=function z_(u){return u&&u.length?Qs(u,Fn,ih):D},M.maxBy=function RS(u,h){return u&&u.length?Qs(u,Ce(h,2),ih):D},M.mean=function Yi(u){return yi(u,Fn)},M.meanBy=function OS(u,h){return yi(u,Ce(h,2))},M.min=function PS(u){return u&&u.length?Qs(u,Fn,Ii):D},M.minBy=function $_(u,h){return u&&u.length?Qs(u,Ce(h,2),Ii):D},M.stubArray=qp,M.stubFalse=Kp,M.stubObject=function j_(){return{}},M.stubString=function IS(){return""},M.stubTrue=function G_(){return!0},M.multiply=W_,M.nth=function Zw(u,h){return u&&u.length?fm(u,je(h)):D},M.noConflict=function i1(){return mn._===this&&(mn._=tw),this},M.noop=zp,M.now=Lu,M.pad=function xS(u,h,p){u=ft(u);var _=(h=je(h))?Va(u):0;if(!h||_>=h)return u;var C=(h-_)/2;return tl(ps(C),p)+u+tl(nu(C),p)},M.padEnd=function bS(u,h,p){u=ft(u);var _=(h=je(h))?Va(u):0;return h&&_<h?u+tl(h-_,p):u},M.padStart=function Vp(u,h,p){u=ft(u);var _=(h=je(h))?Va(u):0;return h&&_<h?tl(h-_,p)+u:u},M.parseInt=function DS(u,h,p){return p||null==h?h=0:h&&(h=+h),Lo(ft(u).replace(rd,""),h||0)},M.random=function qE(u,h,p){if(p&&"boolean"!=typeof p&&nr(u,h,p)&&(h=p=D),p===D&&("boolean"==typeof h?(p=h,h=D):"boolean"==typeof u&&(p=u,u=D)),u===D&&h===D?(u=0,h=1):(u=jo(u),h===D?(h=u,u=0):h=jo(h)),u>h){var _=u;u=h,h=_}if(p||u%1||h%1){var C=wd();return kn(u+C*(h-u+zs("1e-"+((C+"").length-1))),h)}return dm(u,h)},M.reduce=function Co(u,h,p){var _=Ue(u)?$s:Kv,C=arguments.length<3;return _(u,Ce(h,4),p,C,Fo)},M.reduceRight=function aS(u,h,p){var _=Ue(u)?Fa:Kv,C=arguments.length<3;return _(u,Ce(h,4),p,C,cm)},M.repeat=function ZE(u,h,p){return h=(p?nr(u,h,p):h===D)?1:je(h),Nd(ft(u),h)},M.replace=function T_(){var u=arguments,h=ft(u[0]);return u.length<3?h:h.replace(u[1],u[2])},M.result=function jE(u,h,p){var _=-1,C=(h=Ti(h,u)).length;for(C||(C=1,u=D);++_<C;){var b=null==u?D:u[kr(h[_])];b===D&&(_=C,b=p),u=Zi(b)?b.call(u):b}return u},M.round=q_,M.runInContext=R,M.sample=function Qm(u){return(Ue(u)?Xs:ww)(u)},M.size=function cS(u){if(null==u)return 0;if(Nr(u))return ll(u)?Va(u):u.length;var h=tr(u);return h==Bi||h==Bt?u.size:Pd(u).length},M.snakeCase=A_,M.some=function e_(u,h,p){var _=Ue(u)?Qr:yu;return p&&nr(u,h,p)&&(h=D),_(u,Ce(h,3))},M.sortedIndex=function eE(u,h){return Xa(u,h)},M.sortedIndexBy=function Ru(u,h,p){return Qa(u,h,Ce(p,2))},M.sortedIndexOf=function jm(u,h){var p=null==u?0:u.length;if(p){var _=Xa(u,h);if(_<p&&Lr(u[_],h))return _}return-1},M.sortedLastIndex=function yo(u,h){return Xa(u,h,!0)},M.sortedLastIndexBy=function Ou(u,h,p){return Qa(u,h,Ce(p,2),!0)},M.sortedLastIndexOf=function Gm(u,h){if(null!=u&&u.length){var _=Xa(u,h,!0)-1;if(Lr(u[_],h))return _}return-1},M.startCase=O_,M.startsWith=function P_(u,h,p){return u=ft(u),p=null==p?0:po(je(p),0,u.length),h=ti(h),u.slice(p,p+h.length)==h},M.subtract=c1,M.sum=function kS(u){return u&&u.length?Zv(u,Fn):0},M.sumBy=function K_(u,h){return u&&u.length?Zv(u,Ce(h,2)):0},M.template=function Go(u,h,p){var _=M.templateSettings;p&&nr(u,h,p)&&(h=D),u=ft(u),h=Vu({},h,_,Sm);var A,P,C=Vu({},h.imports,_.imports,Sm),b=rr(C),I=Xv(C,b),U=0,B=h.interpolate||id,$="__p += '",Y=zc((h.escape||id).source+"|"+B.source+"|"+(B===td?Ro:id).source+"|"+(h.evaluate||id).source+"|$","g"),ge="//# sourceURL="+(Mt.call(h,"sourceURL")?(h.sourceURL+"").replace(/\s/g," "):"lodash.templateSources["+ ++Xr+"]")+"\n";u.replace(Y,function(ve,Je,Me,Vn,Wn,nn){return Me||(Me=Vn),$+=u.slice(U,nn).replace(Yr,VD),Je&&(A=!0,$+="' +\n__e("+Je+") +\n'"),Wn&&(P=!0,$+="';\n"+Wn+";\n__p += '"),Me&&($+="' +\n((__t = ("+Me+")) == null ? '' : __t) +\n'"),U=nn+ve.length,ve}),$+="';\n";var Ee=Mt.call(h,"variable")&&h.variable;if(Ee){if(AC.test(Ee))throw new He("Invalid `variable` option passed into `_.template`")}else $="with (obj) {\n"+$+"\n}\n";$=(P?$.replace(SC,""):$).replace(IC,"$1").replace(Ut,"$1;"),$="function("+(Ee||"obj")+") {\n"+(Ee?"":"obj || (obj = {});\n")+"var __t, __p = ''"+(A?", __e = _.escape":"")+(P?", __j = Array.prototype.join;\nfunction print() { __p += __j.call(arguments, '') }\n":";\n")+$+"return __p\n}";var Xe=Gp(function(){return _t(b,ge+"return "+$).apply(D,I)});if(Xe.source=$,Sh(Xe))throw Xe;return Xe},M.times=function a1(u,h){if((u=je(u))<1||u>vr)return[];var p=Kr,_=kn(u,Kr);h=Ce(h),u-=Kr;for(var C=Yv(_,h);++p<u;)h(p);return C},M.toFinite=jo,M.toInteger=je,M.toLength=ca,M.toLower=function Oh(u){return ft(u).toLowerCase()},M.toNumber=Fr,M.toSafeInteger=function Fu(u){return u?po(je(u),-vr,vr):0===u?u:0},M.toString=ft,M.toUpper=function YE(u){return ft(u).toUpperCase()},M.trim=function XE(u,h,p){if((u=ft(u))&&(p||h===D))return qC(u);if(!u||!(h=ti(h)))return u;var _=wi(u),C=wi(h);return ms(_,KC(_,C),ZC(_,C)+1).join("")},M.trimEnd=function SS(u,h,p){if((u=ft(u))&&(p||h===D))return u.slice(0,dd(u)+1);if(!u||!(h=ti(h)))return u;var _=wi(u);return ms(_,0,ZC(_,wi(h))+1).join("")},M.trimStart=function Bp(u,h,p){if((u=ft(u))&&(p||h===D))return u.replace(rd,"");if(!u||!(h=ti(h)))return u;var _=wi(u);return ms(_,KC(_,wi(h))).join("")},M.truncate=function k_(u,h){var p=30,_="...";if(fn(h)){var C="separator"in h?h.separator:C;p="length"in h?je(h.length):p,_="omission"in h?ti(h.omission):_}var b=(u=ft(u)).length;if(Ws(u)){var I=wi(u);b=I.length}if(p>=b)return u;var A=p-Va(_);if(A<1)return _;var P=I?ms(I,0,A).join(""):u.slice(0,A);if(C===D)return P+_;if(I&&(A+=P.length-A),Th(C)){if(u.slice(A).search(C)){var U,B=P;for(C.global||(C=zc(C.source,ft(RC.exec(C))+"g")),C.lastIndex=0;U=C.exec(B);)var $=U.index;P=P.slice(0,$===D?A:$)}}else if(u.indexOf(ti(C),A)!=A){var Y=P.lastIndexOf(C);Y>-1&&(P=P.slice(0,Y))}return P+_},M.unescape=function Up(u){return(u=ft(u))&&ed.test(u)?u.replace(kc,QC):u},M.uniqueId=function TS(u){var h=++Ba;return ft(u)+h},M.upperCase=Uu,M.upperFirst=jp,M.each=Ym,M.eachRight=Xm,M.first=Fm,Hp(M,function(){var u={};return Jt(M,function(h,p){Mt.call(M.prototype,p)||(u[p]=h)}),u}(),{chain:!1}),M.VERSION="4.17.21",ar(["bind","bindKey","curry","curryRight","partial","partialRight"],function(u){M[u].placeholder=M}),ar(["drop","take"],function(u,h){Ke.prototype[u]=function(p){p=p===D?1:zn(je(p),0);var _=this.__filtered__&&!h?new Ke(this):this.clone();return _.__filtered__?_.__takeCount__=kn(p,_.__takeCount__):_.__views__.push({size:kn(p,Kr),type:u+(_.__dir__<0?"Right":"")}),_},Ke.prototype[u+"Right"]=function(p){return this.reverse()[u](p).reverse()}}),ar(["filter","map","takeWhile"],function(u,h){var p=h+1,_=1==p||3==p;Ke.prototype[u]=function(C){var b=this.clone();return b.__iteratees__.push({iteratee:Ce(C,3),type:p}),b.__filtered__=b.__filtered__||_,b}}),ar(["head","last"],function(u,h){var p="take"+(h?"Right":"");Ke.prototype[u]=function(){return this[p](1).value()[0]}}),ar(["initial","tail"],function(u,h){var p="drop"+(h?"":"Right");Ke.prototype[u]=function(){return this.__filtered__?new Ke(this):this[p](1)}}),Ke.prototype.compact=function(){return this.filter(Fn)},Ke.prototype.find=function(u){return this.filter(u).head()},Ke.prototype.findLast=function(u){return this.reverse().find(u)},Ke.prototype.invokeMap=it(function(u,h){return"function"==typeof u?new Ke(this):this.map(function(p){return du(p,u,h)})}),Ke.prototype.reject=function(u){return this.filter(Mh(Ce(u)))},Ke.prototype.slice=function(u,h){u=je(u);var p=this;return p.__filtered__&&(u>0||h<0)?new Ke(p):(u<0?p=p.takeRight(-u):u&&(p=p.drop(u)),h!==D&&(p=(h=je(h))<0?p.dropRight(-h):p.take(h-u)),p)},Ke.prototype.takeRightWhile=function(u){return this.reverse().takeWhile(u).reverse()},Ke.prototype.toArray=function(){return this.take(Kr)},Jt(Ke.prototype,function(u,h){var p=/^(?:filter|find|map|reject)|While$/.test(h),_=/^(?:head|last)$/.test(h),C=M[_?"take"+("last"==h?"Right":""):h],b=_||/^find/.test(h);!C||(M.prototype[h]=function(){var I=this.__wrapped__,A=_?[1]:arguments,P=I instanceof Ke,U=A[0],B=P||Ue(I),$=function(Je){var Me=C.apply(M,hn([Je],A));return _&&Y?Me[0]:Me};B&&p&&"function"==typeof U&&1!=U.length&&(P=B=!1);var Y=this.__chain__,ge=!!this.__actions__.length,Ee=b&&!Y,Xe=P&&!ge;if(!b&&B){I=Xe?I:new Ke(this);var ve=u.apply(I,A);return ve.__actions__.push({func:Ch,args:[$],thisArg:D}),new Zt(ve,Y)}return Ee&&Xe?u.apply(this,A):(ve=this.thru($),Ee?_?ve.value()[0]:ve.value():ve)})}),ar(["pop","push","shift","sort","splice","unshift"],function(u){var h=$c[u],p=/^(?:push|sort|unshift)$/.test(u)?"tap":"thru",_=/^(?:pop|shift)$/.test(u);M.prototype[u]=function(){var C=arguments;if(_&&!this.__chain__){var b=this.value();return h.apply(Ue(b)?b:[],C)}return this[p](function(I){return h.apply(Ue(I)?I:[],C)})}}),Jt(Ke.prototype,function(u,h){var p=M[h];if(p){var _=p.name+"";Mt.call(Zs,_)||(Zs[_]=[]),Zs[_].push({name:h,func:p})}}),Zs[uh(D,2).name]=[{name:"wrapper",func:D}],Ke.prototype.clone=function un(){var u=new Ke(this.__wrapped__);return u.__actions__=Or(this.__actions__),u.__dir__=this.__dir__,u.__filtered__=this.__filtered__,u.__iteratees__=Or(this.__iteratees__),u.__takeCount__=this.__takeCount__,u.__views__=Or(this.__views__),u},Ke.prototype.reverse=function iw(){if(this.__filtered__){var u=new Ke(this);u.__dir__=-1,u.__filtered__=!0}else(u=this.clone()).__dir__*=-1;return u},Ke.prototype.value=function ow(){var u=this.__wrapped__.value(),h=this.__dir__,p=Ue(u),_=h<0,C=p?u.length:0,b=function Ow(u,h,p){for(var _=-1,C=p.length;++_<C;){var b=p[_],I=b.size;switch(b.type){case"drop":u+=I;break;case"dropRight":h-=I;break;case"take":h=kn(h,u+I);break;case"takeRight":u=zn(u,h-I)}}return{start:u,end:h}}(0,C,this.__views__),I=b.start,A=b.end,P=A-I,U=_?A:I-1,B=this.__iteratees__,$=B.length,Y=0,ge=kn(P,this.__takeCount__);if(!p||!_&&C==P&&ge==P)return mm(u,this.__actions__);var Ee=[];e:for(;P--&&Y<ge;){for(var Xe=-1,ve=u[U+=h];++Xe<$;){var Je=B[Xe],Vn=Je.type,Wn=(0,Je.iteratee)(ve);if(2==Vn)ve=Wn;else if(!Wn){if(1==Vn)continue e;break e}}Ee[Y++]=ve}return Ee},M.prototype.at=oE,M.prototype.chain=function sE(){return ua(this)},M.prototype.commit=function aE(){return new Zt(this.value(),this.__chain__)},M.prototype.next=function lE(){this.__values__===D&&(this.__values__=d_(this.value()));var u=this.__index__>=this.__values__.length;return{done:u,value:u?D:this.__values__[this.__index__++]}},M.prototype.plant=function sS(u){for(var h,p=this;p instanceof Xc;){var _=km(p);_.__index__=0,_.__values__=D,h?C.__wrapped__=_:h=_;var C=_;p=p.__wrapped__}return C.__wrapped__=u,h},M.prototype.reverse=function Pu(){var u=this.__wrapped__;if(u instanceof Ke){var h=u;return this.__actions__.length&&(h=new Ke(this)),(h=h.reverse()).__actions__.push({func:Ch,args:[ap],thisArg:D}),new Zt(h,this.__chain__)}return this.thru(ap)},M.prototype.toJSON=M.prototype.valueOf=M.prototype.value=function dp(){return mm(this.__wrapped__,this.__actions__)},M.prototype.first=M.prototype.head,tu&&(M.prototype[tu]=function oS(){return this}),M}();mn._=Hc,(ao=function(){return Hc}.call($t,Vt,$t,an))!==D&&(an.exports=ao)}.call(this)},402:function(an){an.exports=function(){"use strict";function $t(k,F,K,he,ee){!function ue(fe,ae,Ye,at,It){for(;at>Ye;){if(at-Ye>600){var Rt=at-Ye+1,vn=ae-Ye+1,gr=Math.log(Rt),co=.5*Math.exp(2*gr/3),gi=.5*Math.sqrt(gr*co*(Rt-co)/Rt)*(vn-Rt/2<0?-1:1);ue(fe,ae,Math.max(Ye,Math.floor(ae-vn*co/Rt+gi)),Math.min(at,Math.floor(ae+(Rt-vn)*co/Rt+gi)),It)}var vi=fe[ae],vr=Ye,qr=at;for(Vt(fe,Ye,ae),It(fe[at],vi)>0&&Vt(fe,Ye,at);vr<qr;){for(Vt(fe,vr,qr),vr++,qr--;It(fe[vr],vi)<0;)vr++;for(;It(fe[qr],vi)>0;)qr--}0===It(fe[Ye],vi)?Vt(fe,Ye,qr):Vt(fe,++qr,at),qr<=ae&&(Ye=qr+1),ae<=qr&&(at=qr-1)}}(k,F,K||0,he||k.length-1,ee||ao)}function Vt(k,F,K){var he=k[F];k[F]=k[K],k[K]=he}function ao(k,F){return k<F?-1:k>F?1:0}var D=function(k){void 0===k&&(k=9),this._maxEntries=Math.max(4,k),this._minEntries=Math.max(2,Math.ceil(.4*this._maxEntries)),this.clear()};function $r(k,F,K){if(!K)return F.indexOf(k);for(var he=0;he<F.length;he++)if(K(k,F[he]))return he;return-1}function pr(k,F){lo(k,0,k.children.length,F,k)}function lo(k,F,K,he,ee){ee||(ee=pi(null)),ee.minX=1/0,ee.minY=1/0,ee.maxX=-1/0,ee.maxY=-1/0;for(var ue=F;ue<K;ue++){var fe=k.children[ue];gn(ee,k.leaf?he(fe):fe)}return ee}function gn(k,F){return k.minX=Math.min(k.minX,F.minX),k.minY=Math.min(k.minY,F.minY),k.maxX=Math.max(k.maxX,F.maxX),k.maxY=Math.max(k.maxY,F.maxY),k}function jl(k,F){return k.minX-F.minX}function Sc(k,F){return k.minY-F.minY}function ss(k){return(k.maxX-k.minX)*(k.maxY-k.minY)}function St(k){return k.maxX-k.minX+(k.maxY-k.minY)}function Wr(k,F){return k.minX<=F.minX&&k.minY<=F.minY&&F.maxX<=k.maxX&&F.maxY<=k.maxY}function uo(k,F){return F.minX<=k.maxX&&F.minY<=k.maxY&&F.maxX>=k.minX&&F.maxY>=k.minY}function pi(k){return{children:k,height:1,leaf:!0,minX:1/0,minY:1/0,maxX:-1/0,maxY:-1/0}}function wt(k,F,K,he,ee){for(var ue=[F,K];ue.length;)if(!((K=ue.pop())-(F=ue.pop())<=he)){var fe=F+Math.ceil((K-F)/he/2)*he;$t(k,fe,F,K,ee),ue.push(F,fe,fe,K)}}return D.prototype.all=function(){return this._all(this.data,[])},D.prototype.search=function(k){var F=this.data,K=[];if(!uo(k,F))return K;for(var he=this.toBBox,ee=[];F;){for(var ue=0;ue<F.children.length;ue++){var fe=F.children[ue],ae=F.leaf?he(fe):fe;uo(k,ae)&&(F.leaf?K.push(fe):Wr(k,ae)?this._all(fe,K):ee.push(fe))}F=ee.pop()}return K},D.prototype.collides=function(k){var F=this.data;if(!uo(k,F))return!1;for(var K=[];F;){for(var he=0;he<F.children.length;he++){var ee=F.children[he],ue=F.leaf?this.toBBox(ee):ee;if(uo(k,ue)){if(F.leaf||Wr(k,ue))return!0;K.push(ee)}}F=K.pop()}return!1},D.prototype.load=function(k){if(!k||!k.length)return this;if(k.length<this._minEntries){for(var F=0;F<k.length;F++)this.insert(k[F]);return this}var K=this._build(k.slice(),0,k.length-1,0);if(this.data.children.length)if(this.data.height===K.height)this._splitRoot(this.data,K);else{if(this.data.height<K.height){var he=this.data;this.data=K,K=he}this._insert(K,this.data.height-K.height-1,!0)}else this.data=K;return this},D.prototype.insert=function(k){return k&&this._insert(k,this.data.height-1),this},D.prototype.clear=function(){return this.data=pi([]),this},D.prototype.remove=function(k,F){if(!k)return this;for(var K,he,ee,ue=this.data,fe=this.toBBox(k),ae=[],Ye=[];ue||ae.length;){if(ue||(ue=ae.pop(),he=ae[ae.length-1],K=Ye.pop(),ee=!0),ue.leaf){var at=$r(k,ue.children,F);if(-1!==at)return ue.children.splice(at,1),ae.push(ue),this._condense(ae),this}ee||ue.leaf||!Wr(ue,fe)?he?(K++,ue=he.children[K],ee=!1):ue=null:(ae.push(ue),Ye.push(K),K=0,he=ue,ue=ue.children[0])}return this},D.prototype.toBBox=function(k){return k},D.prototype.compareMinX=function(k,F){return k.minX-F.minX},D.prototype.compareMinY=function(k,F){return k.minY-F.minY},D.prototype.toJSON=function(){return this.data},D.prototype.fromJSON=function(k){return this.data=k,this},D.prototype._all=function(k,F){for(var K=[];k;)k.leaf?F.push.apply(F,k.children):K.push.apply(K,k.children),k=K.pop();return F},D.prototype._build=function(k,F,K,he){var ee,ue=K-F+1,fe=this._maxEntries;if(ue<=fe)return pr(ee=pi(k.slice(F,K+1)),this.toBBox),ee;he||(he=Math.ceil(Math.log(ue)/Math.log(fe)),fe=Math.ceil(ue/Math.pow(fe,he-1))),(ee=pi([])).leaf=!1,ee.height=he;var ae=Math.ceil(ue/fe),Ye=ae*Math.ceil(Math.sqrt(fe));wt(k,F,K,Ye,this.compareMinX);for(var at=F;at<=K;at+=Ye){var It=Math.min(at+Ye-1,K);wt(k,at,It,ae,this.compareMinY);for(var Rt=at;Rt<=It;Rt+=ae){var vn=Math.min(Rt+ae-1,It);ee.children.push(this._build(k,Rt,vn,he-1))}}return pr(ee,this.toBBox),ee},D.prototype._chooseSubtree=function(k,F,K,he){for(;he.push(F),!F.leaf&&he.length-1!==K;){for(var ee=1/0,ue=1/0,fe=void 0,ae=0;ae<F.children.length;ae++){var Ye=F.children[ae],at=ss(Ye),It=(Rt=k,vn=Ye,(Math.max(vn.maxX,Rt.maxX)-Math.min(vn.minX,Rt.minX))*(Math.max(vn.maxY,Rt.maxY)-Math.min(vn.minY,Rt.minY))-at);It<ue?(ue=It,ee=at<ee?at:ee,fe=Ye):It===ue&&at<ee&&(ee=at,fe=Ye)}F=fe||F.children[0]}var Rt,vn;return F},D.prototype._insert=function(k,F,K){var he=K?k:this.toBBox(k),ee=[],ue=this._chooseSubtree(he,this.data,F,ee);for(ue.children.push(k),gn(ue,he);F>=0&&ee[F].children.length>this._maxEntries;)this._split(ee,F),F--;this._adjustParentBBoxes(he,ee,F)},D.prototype._split=function(k,F){var K=k[F],he=K.children.length,ee=this._minEntries;this._chooseSplitAxis(K,ee,he);var ue=this._chooseSplitIndex(K,ee,he),fe=pi(K.children.splice(ue,K.children.length-ue));fe.height=K.height,fe.leaf=K.leaf,pr(K,this.toBBox),pr(fe,this.toBBox),F?k[F-1].children.push(fe):this._splitRoot(K,fe)},D.prototype._splitRoot=function(k,F){this.data=pi([k,F]),this.data.height=k.height+1,this.data.leaf=!1,pr(this.data,this.toBBox)},D.prototype._chooseSplitIndex=function(k,F,K){for(var he,ee,ue,fe,ae,Ye,at,It=1/0,Rt=1/0,vn=F;vn<=K-F;vn++){var gr=lo(k,0,vn,this.toBBox),co=lo(k,vn,K,this.toBBox),gi=(ee=gr,ue=co,void 0,void 0,void 0,void 0,fe=Math.max(ee.minX,ue.minX),ae=Math.max(ee.minY,ue.minY),Ye=Math.min(ee.maxX,ue.maxX),at=Math.min(ee.maxY,ue.maxY),Math.max(0,Ye-fe)*Math.max(0,at-ae)),nt=ss(gr)+ss(co);gi<It?(It=gi,he=vn,Rt=nt<Rt?nt:Rt):gi===It&&nt<Rt&&(Rt=nt,he=vn)}return he||K-F},D.prototype._chooseSplitAxis=function(k,F,K){var he=k.leaf?this.compareMinX:jl,ee=k.leaf?this.compareMinY:Sc;this._allDistMargin(k,F,K,he)<this._allDistMargin(k,F,K,ee)&&k.children.sort(he)},D.prototype._allDistMargin=function(k,F,K,he){k.children.sort(he);for(var ee=this.toBBox,ue=lo(k,0,F,ee),fe=lo(k,K-F,K,ee),ae=St(ue)+St(fe),Ye=F;Ye<K-F;Ye++){var at=k.children[Ye];gn(ue,k.leaf?ee(at):at),ae+=St(ue)}for(var It=K-F-1;It>=F;It--){var Rt=k.children[It];gn(fe,k.leaf?ee(Rt):Rt),ae+=St(fe)}return ae},D.prototype._adjustParentBBoxes=function(k,F,K){for(var he=K;he>=0;he--)gn(F[he],k)},D.prototype._condense=function(k){for(var F=k.length-1,K=void 0;F>=0;F--)0===k[F].children.length?F>0?(K=k[F-1].children).splice(K.indexOf(k[F]),1):this.clear():pr(k[F],this.toBBox)},D}()}},an=>{an(an.s=288)}]);