s6-0day/0day.tomorrow/Public/main.9af4d9bb812b7290.js

1 line
604 KiB
JavaScript
Raw Normal View History

2022-11-18 09:06:38 +01:00
"use strict";(self.webpackChunkfrontend=self.webpackChunkfrontend||[]).push([[179],{895:()=>{function he(n){return"function"==typeof n}function ls(n){const e=n(i=>{Error.call(i),i.stack=(new Error).stack});return e.prototype=Object.create(Error.prototype),e.prototype.constructor=e,e}const Qa=ls(n=>function(e){n(this),this.message=e?`${e.length} errors occurred during unsubscription:\n${e.map((i,r)=>`${r+1}) ${i.toString()}`).join("\n ")}`:"",this.name="UnsubscriptionError",this.errors=e});function $r(n,t){if(n){const e=n.indexOf(t);0<=e&&n.splice(e,1)}}class We{constructor(t){this.initialTeardown=t,this.closed=!1,this._parentage=null,this._finalizers=null}unsubscribe(){let t;if(!this.closed){this.closed=!0;const{_parentage:e}=this;if(e)if(this._parentage=null,Array.isArray(e))for(const o of e)o.remove(this);else e.remove(this);const{initialTeardown:i}=this;if(he(i))try{i()}catch(o){t=o instanceof Qa?o.errors:[o]}const{_finalizers:r}=this;if(r){this._finalizers=null;for(const o of r)try{Bg(o)}catch(s){t=t??[],s instanceof Qa?t=[...t,...s.errors]:t.push(s)}}if(t)throw new Qa(t)}}add(t){var e;if(t&&t!==this)if(this.closed)Bg(t);else{if(t instanceof We){if(t.closed||t._hasParent(this))return;t._addParent(this)}(this._finalizers=null!==(e=this._finalizers)&&void 0!==e?e:[]).push(t)}}_hasParent(t){const{_parentage:e}=this;return e===t||Array.isArray(e)&&e.includes(t)}_addParent(t){const{_parentage:e}=this;this._parentage=Array.isArray(e)?(e.push(t),e):e?[e,t]:t}_removeParent(t){const{_parentage:e}=this;e===t?this._parentage=null:Array.isArray(e)&&$r(e,t)}remove(t){const{_finalizers:e}=this;e&&$r(e,t),t instanceof We&&t._removeParent(this)}}We.EMPTY=(()=>{const n=new We;return n.closed=!0,n})();const Lg=We.EMPTY;function Vg(n){return n instanceof We||n&&"closed"in n&&he(n.remove)&&he(n.add)&&he(n.unsubscribe)}function Bg(n){he(n)?n():n.unsubscribe()}const or={onUnhandledError:null,onStoppedNotification:null,Promise:void 0,useDeprecatedSynchronousErrorHandling:!1,useDeprecatedNextContext:!1},Xa={setTimeout(n,t,...e){const{delegate:i}=Xa;return i?.setTimeout?i.setTimeout(n,t,...e):setTimeout(n,t,...e)},clearTimeout(n){const{delegate:t}=Xa;return(t?.clearTimeout||clearTimeout)(n)},delegate:void 0};function Hg(n){Xa.setTimeout(()=>{const{onUnhandledError:t}=or;if(!t)throw n;t(n)})}function ad(){}const tT=ld("C",void 0,void 0);function ld(n,t,e){return{kind:n,value:t,error:e}}let sr=null;function Ja(n){if(or.useDeprecatedSynchronousErrorHandling){const t=!sr;if(t&&(sr={errorThrown:!1,error:null}),n(),t){const{errorThrown:e,error:i}=sr;if(sr=null,e)throw i}}else n()}class cd extends We{constructor(t){super(),this.isStopped=!1,t?(this.destination=t,Vg(t)&&t.add(this)):this.destination=lT}static create(t,e,i){return new cs(t,e,i)}next(t){this.isStopped?dd(function iT(n){return ld("N",n,void 0)}(t),this):this._next(t)}error(t){this.isStopped?dd(function nT(n){return ld("E",void 0,n)}(t),this):(this.isStopped=!0,this._error(t))}complete(){this.isStopped?dd(tT,this):(this.isStopped=!0,this._complete())}unsubscribe(){this.closed||(this.isStopped=!0,super.unsubscribe(),this.destination=null)}_next(t){this.destination.next(t)}_error(t){try{this.destination.error(t)}finally{this.unsubscribe()}}_complete(){try{this.destination.complete()}finally{this.unsubscribe()}}}const oT=Function.prototype.bind;function ud(n,t){return oT.call(n,t)}class sT{constructor(t){this.partialObserver=t}next(t){const{partialObserver:e}=this;if(e.next)try{e.next(t)}catch(i){el(i)}}error(t){const{partialObserver:e}=this;if(e.error)try{e.error(t)}catch(i){el(i)}else el(t)}complete(){const{partialObserver:t}=this;if(t.complete)try{t.complete()}catch(e){el(e)}}}class cs extends cd{constructor(t,e,i){let r;if(super(),he(t)||!t)r={next:t??void 0,error:e??void 0,complete:i??void 0};else{let o;this&&or.useDeprecatedNextContext?(o=Object.create(t),o.unsubscribe=()=>this.unsubscribe(),r={next:t.next&&ud(t.next,o),error:t.error&&ud(t.error,o),complete:t.complete&&ud(t.complete,o)}):r=t}this.destination=new sT(r)}}function el(n){or.useDeprecatedSynchronousErrorHandling?functio