diff --git a/.editorconfig b/.editorconfig deleted file mode 100644 index e89330a..0000000 --- a/.editorconfig +++ /dev/null @@ -1,13 +0,0 @@ -# Editor configuration, see https://editorconfig.org -root = true - -[*] -charset = utf-8 -indent_style = space -indent_size = 2 -insert_final_newline = true -trim_trailing_whitespace = true - -[*.md] -max_line_length = off -trim_trailing_whitespace = false diff --git a/.gitignore b/.gitignore deleted file mode 100644 index 86d943a..0000000 --- a/.gitignore +++ /dev/null @@ -1,46 +0,0 @@ -# See http://help.github.com/ignore-files/ for more about ignoring files. - -# compiled output -/dist -/tmp -/out-tsc -# Only exists if Bazel was run -/bazel-out - -# dependencies -/node_modules - -# profiling files -chrome-profiler-events*.json -speed-measure-plugin*.json - -# IDEs and editors -/.idea -.project -.classpath -.c9/ -*.launch -.settings/ -*.sublime-workspace - -# IDE - VSCode -.vscode/* -!.vscode/settings.json -!.vscode/tasks.json -!.vscode/launch.json -!.vscode/extensions.json -.history/* - -# misc -/.sass-cache -/connect.lock -/coverage -/libpeerconnection.log -npm-debug.log -yarn-error.log -testem.log -/typings - -# System Files -.DS_Store -Thumbs.db diff --git a/1-es2015.67d3ceb99452bc011267.js b/1-es2015.67d3ceb99452bc011267.js new file mode 100644 index 0000000..5c64954 --- /dev/null +++ b/1-es2015.67d3ceb99452bc011267.js @@ -0,0 +1 @@ +(window.webpackJsonp=window.webpackJsonp||[]).push([[1],{"/HVE":function(t,e,i){"use strict";i.d(e,"a",function(){return l}),i.d(e,"b",function(){return o}),i.d(e,"c",function(){return c});var n=i("8Y7J"),s=i("SVse");let r;try{r="undefined"!=typeof Intl&&Intl.v8BreakIterator}catch(u){r=!1}let a,l=(()=>{class t{constructor(t){this._platformId=t,this.isBrowser=this._platformId?Object(s.x)(this._platformId):"object"==typeof document&&!!document,this.EDGE=this.isBrowser&&/(edge)/i.test(navigator.userAgent),this.TRIDENT=this.isBrowser&&/(msie|trident)/i.test(navigator.userAgent),this.BLINK=this.isBrowser&&!(!window.chrome&&!r)&&"undefined"!=typeof CSS&&!this.EDGE&&!this.TRIDENT,this.WEBKIT=this.isBrowser&&/AppleWebKit/i.test(navigator.userAgent)&&!this.BLINK&&!this.EDGE&&!this.TRIDENT,this.IOS=this.isBrowser&&/iPad|iPhone|iPod/.test(navigator.userAgent)&&!("MSStream"in window),this.FIREFOX=this.isBrowser&&/(firefox|minefield)/i.test(navigator.userAgent),this.ANDROID=this.isBrowser&&/android/i.test(navigator.userAgent)&&!this.TRIDENT,this.SAFARI=this.isBrowser&&/safari/i.test(navigator.userAgent)&&this.WEBKIT}}return t.ngInjectableDef=Object(n.Pb)({factory:function(){return new t(Object(n.Qb)(n.A,8))},token:t,providedIn:"root"}),t})();class o{}function c(t){return function(){if(null==a&&"undefined"!=typeof window)try{window.addEventListener("test",null,Object.defineProperty({},"passive",{get:()=>a=!0}))}finally{a=a||!1}return a}()?t:!!t.capture}},"5GAg":function(t,e,i){"use strict";i("SVse");var n=i("8Y7J"),s=i("XNiG"),r=(i("quSY"),i("LRne"));i("dvZr"),i("vkgz"),i("7o/Q"),i("D0XW"),i("pLZG"),i("lJxs"),i("IzEk");var a=i("/HVE"),l=i("KCVW");i.d(e,"a",function(){return u}),i.d(e,"b",function(){return d});const o=650,c=Object(a.c)({passive:!0,capture:!0});let u=(()=>{class t{constructor(t,e){this._ngZone=t,this._platform=e,this._origin=null,this._windowFocused=!1,this._elementInfo=new Map,this._monitoredElementCount=0,this._documentKeydownListener=()=>{this._lastTouchTarget=null,this._setOriginForCurrentEventQueue("keyboard")},this._documentMousedownListener=()=>{this._lastTouchTarget||this._setOriginForCurrentEventQueue("mouse")},this._documentTouchstartListener=t=>{null!=this._touchTimeoutId&&clearTimeout(this._touchTimeoutId),this._lastTouchTarget=t.target,this._touchTimeoutId=setTimeout(()=>this._lastTouchTarget=null,o)},this._windowFocusListener=()=>{this._windowFocused=!0,this._windowFocusTimeoutId=setTimeout(()=>this._windowFocused=!1)}}monitor(t,e=!1){if(!this._platform.isBrowser)return Object(r.a)(null);const i=Object(l.b)(t);if(this._elementInfo.has(i)){let t=this._elementInfo.get(i);return t.checkChildren=e,t.subject.asObservable()}let n={unlisten:()=>{},checkChildren:e,subject:new s.a};this._elementInfo.set(i,n),this._incrementMonitoredElementCount();let a=t=>this._onFocus(t,i),o=t=>this._onBlur(t,i);return this._ngZone.runOutsideAngular(()=>{i.addEventListener("focus",a,!0),i.addEventListener("blur",o,!0)}),n.unlisten=()=>{i.removeEventListener("focus",a,!0),i.removeEventListener("blur",o,!0)},n.subject.asObservable()}stopMonitoring(t){const e=Object(l.b)(t),i=this._elementInfo.get(e);i&&(i.unlisten(),i.subject.complete(),this._setClasses(e),this._elementInfo.delete(e),this._decrementMonitoredElementCount())}focusVia(t,e,i){const n=Object(l.b)(t);this._setOriginForCurrentEventQueue(e),"function"==typeof n.focus&&n.focus(i)}ngOnDestroy(){this._elementInfo.forEach((t,e)=>this.stopMonitoring(e))}_toggleClass(t,e,i){i?t.classList.add(e):t.classList.remove(e)}_setClasses(t,e){this._elementInfo.get(t)&&(this._toggleClass(t,"cdk-focused",!!e),this._toggleClass(t,"cdk-touch-focused","touch"===e),this._toggleClass(t,"cdk-keyboard-focused","keyboard"===e),this._toggleClass(t,"cdk-mouse-focused","mouse"===e),this._toggleClass(t,"cdk-program-focused","program"===e))}_setOriginForCurrentEventQueue(t){this._ngZone.runOutsideAngular(()=>{this._origin=t,this._originTimeoutId=setTimeout(()=>this._origin=null,1)})}_wasCausedByTouch(t){let e=t.target;return this._lastTouchTarget instanceof Node&&e instanceof Node&&(e===this._lastTouchTarget||e.contains(this._lastTouchTarget))}_onFocus(t,e){const i=this._elementInfo.get(e);if(!i||!i.checkChildren&&e!==t.target)return;let n=this._origin;n||(n=this._windowFocused&&this._lastFocusOrigin?this._lastFocusOrigin:this._wasCausedByTouch(t)?"touch":"program"),this._setClasses(e,n),this._emitOrigin(i.subject,n),this._lastFocusOrigin=n}_onBlur(t,e){const i=this._elementInfo.get(e);!i||i.checkChildren&&t.relatedTarget instanceof Node&&e.contains(t.relatedTarget)||(this._setClasses(e),this._emitOrigin(i.subject,null))}_emitOrigin(t,e){this._ngZone.run(()=>t.next(e))}_incrementMonitoredElementCount(){1==++this._monitoredElementCount&&this._platform.isBrowser&&this._ngZone.runOutsideAngular(()=>{document.addEventListener("keydown",this._documentKeydownListener,c),document.addEventListener("mousedown",this._documentMousedownListener,c),document.addEventListener("touchstart",this._documentTouchstartListener,c),window.addEventListener("focus",this._windowFocusListener)})}_decrementMonitoredElementCount(){--this._monitoredElementCount||(document.removeEventListener("keydown",this._documentKeydownListener,c),document.removeEventListener("mousedown",this._documentMousedownListener,c),document.removeEventListener("touchstart",this._documentTouchstartListener,c),window.removeEventListener("focus",this._windowFocusListener),clearTimeout(this._windowFocusTimeoutId),clearTimeout(this._touchTimeoutId),clearTimeout(this._originTimeoutId))}}return t.ngInjectableDef=Object(n.Pb)({factory:function(){return new t(Object(n.Qb)(n.y),Object(n.Qb)(a.a))},token:t,providedIn:"root"}),t})();function d(t){return 0===t.buttons}},IP0z:function(t,e,i){"use strict";i.d(e,"b",function(){return a}),i.d(e,"a",function(){return l});var n=i("SVse"),s=i("8Y7J");const r=new s.p("cdk-dir-doc",{providedIn:"root",factory:function(){return Object(s.V)(n.c)}});let a=(()=>{class t{constructor(t){if(this.value="ltr",this.change=new s.m,t){const e=t.documentElement?t.documentElement.dir:null,i=(t.body?t.body.dir:null)||e;this.value="ltr"===i||"rtl"===i?i:"ltr"}}ngOnDestroy(){this.change.complete()}}return t.ngInjectableDef=Object(s.Pb)({factory:function(){return new t(Object(s.Qb)(r,8))},token:t,providedIn:"root"}),t})();class l{}},KCVW:function(t,e,i){"use strict";i.d(e,"a",function(){return s}),i.d(e,"c",function(){return r}),i.d(e,"b",function(){return a});var n=i("8Y7J");function s(t){return null!=t&&"false"!==`${t}`}function r(t,e=0){return function(t){return!isNaN(parseFloat(t))&&!isNaN(Number(t))}(t)?Number(t):e}function a(t){return t instanceof n.k?t.nativeElement:t}},PCNd:function(t,e,i){"use strict";i.d(e,"a",function(){return n});class n{}},Rcsm:function(t,e,i){"use strict";i.d(e,"a",function(){return n});class n{static delay(t){return new Promise(e=>setTimeout(e,t))}static getRandomColor(){let t="#";for(let e=0;e<6;e++)t+="0123456789ABCDEF"[Math.floor(16*Math.random())];return t}}},SrJx:function(t,e,i){"use strict";i.d(e,"a",function(){return r});var n=i("wZee"),s=(i("huE1"),i("kfgK"),i("8Y7J"));let r=(()=>{class t{constructor(){this.languages={cpp:n.languages.cpp}}highlightCode(t,e){return n.highlight(t,this.languages[e])}}return t.ngInjectableDef=s.Pb({factory:function(){return new t},token:t,providedIn:"root"}),t})()},Xd0L:function(t,e,i){"use strict";var n=i("8Y7J"),s=i("cUpR");const r=new n.N("8.1.4");var a=i("KCVW"),l=(i("XNiG"),i("HDdC"),i("/HVE")),o=(i("JX91"),i("5GAg"));i("dvZr"),i.d(e,"e",function(){return d}),i.d(e,"b",function(){return u}),i.d(e,"j",function(){return h}),i.d(e,"h",function(){return m}),i.d(e,"i",function(){return g}),i.d(e,"k",function(){return p}),i.d(e,"c",function(){return b}),i.d(e,"a",function(){return k}),i.d(e,"g",function(){return D}),i.d(e,"d",function(){return A}),i.d(e,"f",function(){return C});const c=new n.N("8.1.4"),u=new n.p("mat-sanity-checks",{providedIn:"root",factory:function(){return!0}});class d{constructor(t,e){this._sanityChecksEnabled=t,this._hammerLoader=e,this._hasDoneGlobalChecks=!1,this._hasCheckedHammer=!1,this._document="object"==typeof document&&document?document:null,this._window="object"==typeof window&&window?window:null,this._areChecksEnabled()&&!this._hasDoneGlobalChecks&&(this._checkDoctypeIsDefined(),this._checkThemeIsPresent(),this._checkCdkVersionMatch(),this._hasDoneGlobalChecks=!0)}_areChecksEnabled(){return this._sanityChecksEnabled&&Object(n.W)()&&!this._isTestEnv()}_isTestEnv(){const t=this._window;return t&&(t.__karma__||t.jasmine)}_checkDoctypeIsDefined(){this._document&&!this._document.doctype&&console.warn("Current document does not have a doctype. This may cause some Angular Material components not to behave as expected.")}_checkThemeIsPresent(){if(!this._document||!this._document.body||"function"!=typeof getComputedStyle)return;const t=this._document.createElement("div");t.classList.add("mat-theme-loaded-marker"),this._document.body.appendChild(t);const e=getComputedStyle(t);e&&"none"!==e.display&&console.warn("Could not find Angular Material core theme. Most Material components may not work as expected. For more info refer to the theming guide: https://material.angular.io/guide/theming"),this._document.body.removeChild(t)}_checkCdkVersionMatch(){c.full!==r.full&&console.warn("The Angular Material version ("+c.full+") does not match the Angular CDK version ("+r.full+").\nPlease ensure the versions of these two packages exactly match.")}_checkHammerIsAvailable(){!this._hasCheckedHammer&&this._window&&(!this._areChecksEnabled()||this._window.Hammer||this._hammerLoader||console.warn("Could not find HammerJS. Certain Angular Material components may not work correctly."),this._hasCheckedHammer=!0)}}function h(t){return class extends t{constructor(...t){super(...t),this._disabled=!1}get disabled(){return this._disabled}set disabled(t){this._disabled=Object(a.a)(t)}}}function m(t,e){return class extends t{get color(){return this._color}set color(t){const i=t||e;i!==this._color&&(this._color&&this._elementRef.nativeElement.classList.remove(`mat-${this._color}`),i&&this._elementRef.nativeElement.classList.add(`mat-${i}`),this._color=i)}constructor(...t){super(...t),this.color=e}}}function g(t){return class extends t{constructor(...t){super(...t),this._disableRipple=!1}get disableRipple(){return this._disableRipple}set disableRipple(t){this._disableRipple=Object(a.a)(t)}}}function p(t,e=0){return class extends t{constructor(...t){super(...t),this._tabIndex=e}get tabIndex(){return this.disabled?-1:this._tabIndex}set tabIndex(t){this._tabIndex=null!=t?t:e}}}let f;try{f="undefined"!=typeof Intl}catch(S){f=!1}const b=new n.p("MAT_HAMMER_OPTIONS"),_=["longpress","slide","slidestart","slideend","slideright","slideleft"],v={on:()=>{},off:()=>{}};class k extends s.g{constructor(t,e){super(),this._hammerOptions=t,this.events=_,e&&e._checkHammerIsAvailable()}buildHammer(t){const e="undefined"!=typeof window?window.Hammer:null;if(!e)return v;const i=new e(t,this._hammerOptions||void 0),n=new e.Pan,s=new e.Swipe,r=new e.Press,a=this._createRecognizer(n,{event:"slide",threshold:0},s),l=this._createRecognizer(r,{event:"longpress",time:500});return n.recognizeWith(s),l.recognizeWith(a),i.add([s,r,n,a,l]),i}_createRecognizer(t,e,...i){let n=new t.constructor(e);return i.push(t),i.forEach(t=>n.recognizeWith(t)),n}}const w=function(){var t={FADING_IN:0,VISIBLE:1,FADING_OUT:2,HIDDEN:3};return t[t.FADING_IN]="FADING_IN",t[t.VISIBLE]="VISIBLE",t[t.FADING_OUT]="FADING_OUT",t[t.HIDDEN]="HIDDEN",t}();class y{constructor(t,e,i){this._renderer=t,this.element=e,this.config=i,this.state=w.HIDDEN}fadeOut(){this._renderer.fadeOutRipple(this)}}const x={enterDuration:450,exitDuration:400},E=800,I=Object(l.c)({passive:!0});class F{constructor(t,e,i,n){this._target=t,this._ngZone=e,this._isPointerDown=!1,this._triggerEvents=new Map,this._activeRipples=new Set,this._onMousedown=t=>{const e=Object(o.b)(t),i=this._lastTouchStartEvent&&Date.now(){if(!this._target.rippleDisabled){this._lastTouchStartEvent=Date.now(),this._isPointerDown=!0;const e=t.changedTouches;for(let t=0;t{this._isPointerDown&&(this._isPointerDown=!1,this._activeRipples.forEach(t=>{!t.config.persistent&&(t.state===w.VISIBLE||t.config.terminateOnPointerUp&&t.state===w.FADING_IN)&&t.fadeOut()}))},n.isBrowser&&(this._containerElement=i.nativeElement,this._triggerEvents.set("mousedown",this._onMousedown).set("mouseup",this._onPointerUp).set("mouseleave",this._onPointerUp).set("touchstart",this._onTouchStart).set("touchend",this._onPointerUp).set("touchcancel",this._onPointerUp))}fadeInRipple(t,e,i={}){const n=this._containerRect=this._containerRect||this._containerElement.getBoundingClientRect(),s=Object.assign({},x,i.animation);i.centered&&(t=n.left+n.width/2,e=n.top+n.height/2);const r=i.radius||function(t,e,i){const n=Math.max(Math.abs(t-i.left),Math.abs(t-i.right)),s=Math.max(Math.abs(e-i.top),Math.abs(e-i.bottom));return Math.sqrt(n*n+s*s)}(t,e,n),a=t-n.left,l=e-n.top,o=s.enterDuration,c=document.createElement("div");c.classList.add("mat-ripple-element"),c.style.left=`${a-r}px`,c.style.top=`${l-r}px`,c.style.height=`${2*r}px`,c.style.width=`${2*r}px`,c.style.backgroundColor=i.color||null,c.style.transitionDuration=`${o}ms`,this._containerElement.appendChild(c),window.getComputedStyle(c).getPropertyValue("opacity"),c.style.transform="scale(1)";const u=new y(this,c,i);return u.state=w.FADING_IN,this._activeRipples.add(u),i.persistent||(this._mostRecentTransientRipple=u),this._runTimeoutOutsideZone(()=>{const t=u===this._mostRecentTransientRipple;u.state=w.VISIBLE,i.persistent||t&&this._isPointerDown||u.fadeOut()},o),u}fadeOutRipple(t){const e=this._activeRipples.delete(t);if(t===this._mostRecentTransientRipple&&(this._mostRecentTransientRipple=null),this._activeRipples.size||(this._containerRect=null),!e)return;const i=t.element,n=Object.assign({},x,t.config.animation);i.style.transitionDuration=`${n.exitDuration}ms`,i.style.opacity="0",t.state=w.FADING_OUT,this._runTimeoutOutsideZone(()=>{t.state=w.HIDDEN,i.parentNode.removeChild(i)},n.exitDuration)}fadeOutAll(){this._activeRipples.forEach(t=>t.fadeOut())}setupTriggerEvents(t){t&&t!==this._triggerElement&&(this._removeTriggerEvents(),this._ngZone.runOutsideAngular(()=>{this._triggerEvents.forEach((e,i)=>{t.addEventListener(i,e,I)})}),this._triggerElement=t)}_runTimeoutOutsideZone(t,e=0){this._ngZone.runOutsideAngular(()=>setTimeout(t,e))}_removeTriggerEvents(){this._triggerElement&&this._triggerEvents.forEach((t,e)=>{this._triggerElement.removeEventListener(e,t,I)})}}const A=new n.p("mat-ripple-global-options");class C{constructor(t,e,i,n,s){this._elementRef=t,this.radius=0,this._disabled=!1,this._isInitialized=!1,this._globalOptions=n||{},this._rippleRenderer=new F(this,e,t,i),"NoopAnimations"===s&&(this._globalOptions.animation={enterDuration:0,exitDuration:0})}get disabled(){return this._disabled}set disabled(t){this._disabled=t,this._setupTriggerEventsIfEnabled()}get trigger(){return this._trigger||this._elementRef.nativeElement}set trigger(t){this._trigger=t,this._setupTriggerEventsIfEnabled()}ngOnInit(){this._isInitialized=!0,this._setupTriggerEventsIfEnabled()}ngOnDestroy(){this._rippleRenderer._removeTriggerEvents()}fadeOutAll(){this._rippleRenderer.fadeOutAll()}get rippleConfig(){return{centered:this.centered,radius:this.radius,color:this.color,animation:Object.assign({},this._globalOptions.animation,this.animation),terminateOnPointerUp:this._globalOptions.terminateOnPointerUp}}get rippleDisabled(){return this.disabled||!!this._globalOptions.disabled}_setupTriggerEventsIfEnabled(){!this.disabled&&this._isInitialized&&this._rippleRenderer.setupTriggerEvents(this.trigger)}launch(t,e=0,i){return"number"==typeof t?this._rippleRenderer.fadeInRipple(t,e,Object.assign({},this.rippleConfig,i)):this._rippleRenderer.fadeInRipple(0,0,Object.assign({},this.rippleConfig,t))}}class D{}},dvZr:function(t,e,i){"use strict";i.d(e,"l",function(){return n}),i.d(e,"d",function(){return s}),i.d(e,"k",function(){return r}),i.d(e,"i",function(){return a}),i.d(e,"h",function(){return l}),i.d(e,"c",function(){return o}),i.d(e,"e",function(){return c}),i.d(e,"f",function(){return u}),i.d(e,"m",function(){return d}),i.d(e,"j",function(){return h}),i.d(e,"b",function(){return m}),i.d(e,"o",function(){return g}),i.d(e,"g",function(){return p}),i.d(e,"a",function(){return f}),i.d(e,"n",function(){return b}),i.d(e,"p",function(){return _});const n=9,s=13,r=32,a=33,l=34,o=35,c=36,u=37,d=38,h=39,m=40,g=48,p=57,f=65,b=90;function _(t,...e){return e.length?e.some(e=>t[e]):t.altKey||t.shiftKey||t.ctrlKey||t.metaKey}},huE1:function(t,e){Prism.languages.c=Prism.languages.extend("clike",{"class-name":{pattern:/(\b(?:enum|struct)\s+)\w+/,lookbehind:!0},keyword:/\b(?:_Alignas|_Alignof|_Atomic|_Bool|_Complex|_Generic|_Imaginary|_Noreturn|_Static_assert|_Thread_local|asm|typeof|inline|auto|break|case|char|const|continue|default|do|double|else|enum|extern|float|for|goto|if|int|long|register|return|short|signed|sizeof|static|struct|switch|typedef|union|unsigned|void|volatile|while)\b/,operator:/>>=?|<<=?|->|([-+&|:])\1|[?:~]|[-+*\/%&|^!=<>]=?/,number:/(?:\b0x(?:[\da-f]+\.?[\da-f]*|\.[\da-f]+)(?:p[+-]?\d+)?|(?:\b\d+\.?\d*|\B\.\d+)(?:e[+-]?\d+)?)[ful]*/i}),Prism.languages.insertBefore("c","string",{macro:{pattern:/(^\s*)#\s*[a-z]+(?:[^\r\n\\]|\\(?:\r\n|[\s\S]))*/im,lookbehind:!0,alias:"property",inside:{string:{pattern:/(#\s*include\s*)(?:<.+?>|("|')(?:\\?.)+?\2)/,lookbehind:!0},directive:{pattern:/(#\s*)\b(?:define|defined|elif|else|endif|error|ifdef|ifndef|if|import|include|line|pragma|undef|using)\b/,lookbehind:!0,alias:"keyword"}}},constant:/\b(?:__FILE__|__LINE__|__DATE__|__TIME__|__TIMESTAMP__|__func__|EOF|NULL|SEEK_CUR|SEEK_END|SEEK_SET|stdin|stdout|stderr)\b/}),delete Prism.languages.c.boolean},kfgK:function(t,e){Prism.languages.cpp=Prism.languages.extend("c",{"class-name":{pattern:/(\b(?:class|enum|struct)\s+)\w+/,lookbehind:!0},keyword:/\b(?:alignas|alignof|asm|auto|bool|break|case|catch|char|char16_t|char32_t|class|compl|const|constexpr|const_cast|continue|decltype|default|delete|do|double|dynamic_cast|else|enum|explicit|export|extern|float|for|friend|goto|if|inline|int|int8_t|int16_t|int32_t|int64_t|uint8_t|uint16_t|uint32_t|uint64_t|long|mutable|namespace|new|noexcept|nullptr|operator|private|protected|public|register|reinterpret_cast|return|short|signed|sizeof|static|static_assert|static_cast|struct|switch|template|this|thread_local|throw|try|typedef|typeid|typename|union|unsigned|using|virtual|void|volatile|wchar_t|while)\b/,number:{pattern:/(?:\b0b[01']+|\b0x(?:[\da-f']+\.?[\da-f']*|\.[\da-f']+)(?:p[+-]?[\d']+)?|(?:\b[\d']+\.?[\d']*|\B\.[\d']+)(?:e[+-]?[\d']+)?)[ful]*/i,greedy:!0},operator:/>>=?|<<=?|->|([-+&|:])\1|[?:~]|[-+*\/%&|^!=<>]=?|\b(?:and|and_eq|bitand|bitor|not|not_eq|or|or_eq|xor|xor_eq)\b/,boolean:/\b(?:true|false)\b/}),Prism.languages.insertBefore("cpp","string",{"raw-string":{pattern:/R"([^()\\ ]{0,16})\([\s\S]*?\)\1"/,alias:"string",greedy:!0}})},lT8R:function(t,e,i){"use strict";i.d(e,"b",function(){return f}),i.d(e,"a",function(){return p});var n=i("KCVW"),s=i("dvZr"),r=i("8Y7J"),a=(i("s7LF"),i("Xd0L")),l=i("quSY");const o=30,c=7,u=7,d=10;class h{}class m{constructor(t){this._elementRef=t}}const g=Object(a.k)(Object(a.h)(Object(a.j)(m),"accent"));class p extends g{constructor(t,e,i,n,s,a){super(t),this._focusMonitor=e,this._changeDetectorRef=i,this._dir=n,this._animationMode=a,this._invert=!1,this._max=100,this._min=0,this._step=1,this._thumbLabel=!1,this._tickInterval=0,this._value=null,this._vertical=!1,this.change=new r.m,this.input=new r.m,this.valueChange=new r.m,this.onTouched=()=>{},this._percent=0,this._isSliding=!1,this._isActive=!1,this._tickIntervalPercent=0,this._sliderDimensions=null,this._controlValueAccessorChangeFn=()=>{},this._dirChangeSubscription=l.a.EMPTY,this.tabIndex=parseInt(s)||0}get invert(){return this._invert}set invert(t){this._invert=Object(n.a)(t)}get max(){return this._max}set max(t){this._max=Object(n.c)(t,this._max),this._percent=this._calculatePercentage(this._value),this._changeDetectorRef.markForCheck()}get min(){return this._min}set min(t){this._min=Object(n.c)(t,this._min),null===this._value&&(this.value=this._min),this._percent=this._calculatePercentage(this._value),this._changeDetectorRef.markForCheck()}get step(){return this._step}set step(t){this._step=Object(n.c)(t,this._step),this._step%1!=0&&(this._roundToDecimal=this._step.toString().split(".").pop().length),this._changeDetectorRef.markForCheck()}get thumbLabel(){return this._thumbLabel}set thumbLabel(t){this._thumbLabel=Object(n.a)(t)}get tickInterval(){return this._tickInterval}set tickInterval(t){this._tickInterval="auto"===t?"auto":"number"==typeof t||"string"==typeof t?Object(n.c)(t,this._tickInterval):0}get value(){return null===this._value&&(this.value=this._min),this._value}set value(t){if(t!==this._value){let e=Object(n.c)(t);this._roundToDecimal&&(e=parseFloat(e.toFixed(this._roundToDecimal))),this._value=e,this._percent=this._calculatePercentage(this._value),this._changeDetectorRef.markForCheck()}}get vertical(){return this._vertical}set vertical(t){this._vertical=Object(n.a)(t)}get displayValue(){return this.displayWith?this.displayWith(this.value):this._roundToDecimal&&this.value&&this.value%1!=0?this.value.toFixed(this._roundToDecimal):this.value||0}focus(t){this._focusHostElement(t)}blur(){this._blurHostElement()}get percent(){return this._clamp(this._percent)}get _invertAxis(){return this.vertical?!this.invert:this.invert}get _isMinValue(){return 0===this.percent}get _thumbGap(){return this.disabled?c:this._isMinValue&&!this.thumbLabel?this._isActive?d:u:0}get _trackBackgroundStyles(){const t=this.vertical?`1, ${1-this.percent}, 1`:`${1-this.percent}, 1, 1`;return{transform:`translate${this.vertical?"Y":"X"}(${this._shouldInvertMouseCoords()?"-":""}${this._thumbGap}px) scale3d(${t})`}}get _trackFillStyles(){const t=this.vertical?`1, ${this.percent}, 1`:`${this.percent}, 1, 1`;return{transform:`translate${this.vertical?"Y":"X"}(${this._shouldInvertMouseCoords()?"":"-"}${this._thumbGap}px) scale3d(${t})`}}get _ticksContainerStyles(){return{transform:`translate${this.vertical?"Y":"X"}(${this.vertical||"rtl"!=this._getDirection()?"-":""}${this._tickIntervalPercent/2*100}%)`}}get _ticksStyles(){let t=100*this._tickIntervalPercent,e={backgroundSize:this.vertical?`2px ${t}%`:`${t}% 2px`,transform:`translateZ(0) translate${this.vertical?"Y":"X"}(${this.vertical||"rtl"!=this._getDirection()?"":"-"}${t/2}%)${this.vertical||"rtl"!=this._getDirection()?"":" rotate(180deg)"}`};return this._isMinValue&&this._thumbGap&&(e[`padding${this.vertical?this._invertAxis?"Bottom":"Top":this._invertAxis?"Right":"Left"}`]=`${this._thumbGap}px`),e}get _thumbContainerStyles(){return{transform:`translate${this.vertical?"Y":"X"}(-${100*(("rtl"!=this._getDirection()||this.vertical?this._invertAxis:!this._invertAxis)?this.percent:1-this.percent)}%)`}}_shouldInvertMouseCoords(){return"rtl"!=this._getDirection()||this.vertical?this._invertAxis:!this._invertAxis}_getDirection(){return this._dir&&"rtl"==this._dir.value?"rtl":"ltr"}ngOnInit(){this._focusMonitor.monitor(this._elementRef,!0).subscribe(t=>{this._isActive=!!t&&"keyboard"!==t,this._changeDetectorRef.detectChanges()}),this._dir&&(this._dirChangeSubscription=this._dir.change.subscribe(()=>{this._changeDetectorRef.markForCheck()}))}ngOnDestroy(){this._focusMonitor.stopMonitoring(this._elementRef),this._dirChangeSubscription.unsubscribe()}_onMouseenter(){this.disabled||(this._sliderDimensions=this._getSliderDimensions(),this._updateTickIntervalPercent())}_onMousedown(t){if(this.disabled||0!==t.button)return;const e=this.value;this._isSliding=!1,this._focusHostElement(),this._updateValueFromPosition({x:t.clientX,y:t.clientY}),e!=this.value&&(this._emitInputEvent(),this._emitChangeEvent())}_onSlide(t){if(this.disabled)return;this._isSliding||this._onSlideStart(null),t.preventDefault();let e=this.value;this._updateValueFromPosition({x:t.center.x,y:t.center.y}),e!=this.value&&this._emitInputEvent()}_onSlideStart(t){this.disabled||this._isSliding||(this._onMouseenter(),this._isSliding=!0,this._focusHostElement(),this._valueOnSlideStart=this.value,t&&(this._updateValueFromPosition({x:t.center.x,y:t.center.y}),t.preventDefault()))}_onSlideEnd(){this._isSliding=!1,this._valueOnSlideStart==this.value||this.disabled||this._emitChangeEvent(),this._valueOnSlideStart=null}_onFocus(){this._sliderDimensions=this._getSliderDimensions(),this._updateTickIntervalPercent()}_onBlur(){this.onTouched()}_onKeydown(t){if(this.disabled||Object(s.p)(t))return;const e=this.value;switch(t.keyCode){case s.i:this._increment(10);break;case s.h:this._increment(-10);break;case s.c:this.value=this.max;break;case s.e:this.value=this.min;break;case s.f:this._increment("rtl"==this._getDirection()?1:-1);break;case s.m:this._increment(1);break;case s.j:this._increment("rtl"==this._getDirection()?-1:1);break;case s.b:this._increment(-1);break;default:return}e!=this.value&&(this._emitInputEvent(),this._emitChangeEvent()),this._isSliding=!0,t.preventDefault()}_onKeyup(){this._isSliding=!1}_increment(t){this.value=this._clamp((this.value||0)+this.step*t,this.min,this.max)}_updateValueFromPosition(t){if(!this._sliderDimensions)return;let e=this._clamp(((this.vertical?t.y:t.x)-(this.vertical?this._sliderDimensions.top:this._sliderDimensions.left))/(this.vertical?this._sliderDimensions.height:this._sliderDimensions.width));if(this._shouldInvertMouseCoords()&&(e=1-e),0===e)this.value=this.min;else if(1===e)this.value=this.max;else{const t=this._calculateValue(e),i=Math.round((t-this.min)/this.step)*this.step+this.min;this.value=this._clamp(i,this.min,this.max)}}_emitChangeEvent(){this._controlValueAccessorChangeFn(this.value),this.valueChange.emit(this.value),this.change.emit(this._createChangeEvent())}_emitInputEvent(){this.input.emit(this._createChangeEvent())}_updateTickIntervalPercent(){if(this.tickInterval&&this._sliderDimensions)if("auto"==this.tickInterval){let t=this.vertical?this._sliderDimensions.height:this._sliderDimensions.width,e=Math.ceil(o/(t*this.step/(this.max-this.min)));this._tickIntervalPercent=e*this.step/t}else this._tickIntervalPercent=this.tickInterval*this.step/(this.max-this.min)}_createChangeEvent(t=this.value){let e=new h;return e.source=this,e.value=t,e}_calculatePercentage(t){return((t||0)-this.min)/(this.max-this.min)}_calculateValue(t){return this.min+t*(this.max-this.min)}_clamp(t,e=0,i=1){return Math.max(e,Math.min(t,i))}_getSliderDimensions(){return this._sliderWrapper?this._sliderWrapper.nativeElement.getBoundingClientRect():null}_focusHostElement(t){this._elementRef.nativeElement.focus(t)}_blurHostElement(){this._elementRef.nativeElement.blur()}writeValue(t){this.value=t}registerOnChange(t){this._controlValueAccessorChangeFn=t}registerOnTouched(t){this.onTouched=t}setDisabledState(t){this.disabled=t}}class f{}},mrSG:function(t,e,i){"use strict";function n(t,e,i,n){return new(i||(i=Promise))(function(s,r){function a(t){try{o(n.next(t))}catch(e){r(e)}}function l(t){try{o(n.throw(t))}catch(e){r(e)}}function o(t){t.done?s(t.value):new i(function(e){e(t.value)}).then(a,l)}o((n=n.apply(t,e||[])).next())})}i.d(e,"a",function(){return n})},uM4N:function(t,e,i){"use strict";i.d(e,"a",function(){return r}),i.d(e,"b",function(){return a});var n=i("8Y7J"),s=(i("lT8R"),i("SVse")),r=(i("cUpR"),i("Xd0L"),i("IP0z"),i("s7LF"),i("5GAg"),i("omvX"),n.qb({encapsulation:2,styles:[".mat-slider{display:inline-block;position:relative;box-sizing:border-box;padding:8px;outline:0;vertical-align:middle}.mat-slider.mat-slider-sliding:not(.mat-slider-disabled),.mat-slider:not(.mat-slider-disabled):active{cursor:-webkit-grabbing;cursor:grabbing}.mat-slider-wrapper{position:absolute}.mat-slider-track-wrapper{position:absolute;top:0;left:0;overflow:hidden}.mat-slider-track-fill{position:absolute;transform-origin:0 0;transition:transform .4s cubic-bezier(.25,.8,.25,1),background-color .4s cubic-bezier(.25,.8,.25,1)}.mat-slider-track-background{position:absolute;transform-origin:100% 100%;transition:transform .4s cubic-bezier(.25,.8,.25,1),background-color .4s cubic-bezier(.25,.8,.25,1)}.mat-slider-ticks-container{position:absolute;left:0;top:0;overflow:hidden}.mat-slider-ticks{background-repeat:repeat;background-clip:content-box;box-sizing:border-box;opacity:0;transition:opacity .4s cubic-bezier(.25,.8,.25,1)}.mat-slider-thumb-container{position:absolute;z-index:1;transition:transform .4s cubic-bezier(.25,.8,.25,1)}.mat-slider-focus-ring{position:absolute;width:30px;height:30px;border-radius:50%;transform:scale(0);opacity:0;transition:transform .4s cubic-bezier(.25,.8,.25,1),background-color .4s cubic-bezier(.25,.8,.25,1),opacity .4s cubic-bezier(.25,.8,.25,1)}.mat-slider.cdk-keyboard-focused .mat-slider-focus-ring,.mat-slider.cdk-program-focused .mat-slider-focus-ring{transform:scale(1);opacity:1}.mat-slider:not(.mat-slider-disabled):not(.mat-slider-sliding) .mat-slider-thumb,.mat-slider:not(.mat-slider-disabled):not(.mat-slider-sliding) .mat-slider-thumb-label{cursor:-webkit-grab;cursor:grab}.mat-slider-thumb{position:absolute;right:-10px;bottom:-10px;box-sizing:border-box;width:20px;height:20px;border:3px solid transparent;border-radius:50%;transform:scale(.7);transition:transform .4s cubic-bezier(.25,.8,.25,1),background-color .4s cubic-bezier(.25,.8,.25,1),border-color .4s cubic-bezier(.25,.8,.25,1)}.mat-slider-thumb-label{display:none;align-items:center;justify-content:center;position:absolute;width:28px;height:28px;border-radius:50%;transition:transform .4s cubic-bezier(.25,.8,.25,1),border-radius .4s cubic-bezier(.25,.8,.25,1),background-color .4s cubic-bezier(.25,.8,.25,1)}@media (-ms-high-contrast:active){.mat-slider-thumb-label{outline:solid 1px}}.mat-slider-thumb-label-text{z-index:1;opacity:0;transition:opacity .4s cubic-bezier(.25,.8,.25,1)}.mat-slider-sliding .mat-slider-thumb-container,.mat-slider-sliding .mat-slider-track-background,.mat-slider-sliding .mat-slider-track-fill{transition-duration:0s}.mat-slider-has-ticks .mat-slider-wrapper::after{content:'';position:absolute;border-width:0;border-style:solid;opacity:0;transition:opacity .4s cubic-bezier(.25,.8,.25,1)}.mat-slider-has-ticks.cdk-focused:not(.mat-slider-hide-last-tick) .mat-slider-wrapper::after,.mat-slider-has-ticks:hover:not(.mat-slider-hide-last-tick) .mat-slider-wrapper::after{opacity:1}.mat-slider-has-ticks.cdk-focused:not(.mat-slider-disabled) .mat-slider-ticks,.mat-slider-has-ticks:hover:not(.mat-slider-disabled) .mat-slider-ticks{opacity:1}.mat-slider-thumb-label-showing .mat-slider-focus-ring{display:none}.mat-slider-thumb-label-showing .mat-slider-thumb-label{display:flex}.mat-slider-axis-inverted .mat-slider-track-fill{transform-origin:100% 100%}.mat-slider-axis-inverted .mat-slider-track-background{transform-origin:0 0}.mat-slider:not(.mat-slider-disabled).cdk-focused.mat-slider-thumb-label-showing .mat-slider-thumb{transform:scale(0)}.mat-slider:not(.mat-slider-disabled).cdk-focused .mat-slider-thumb-label{border-radius:50% 50% 0}.mat-slider:not(.mat-slider-disabled).cdk-focused .mat-slider-thumb-label-text{opacity:1}.mat-slider:not(.mat-slider-disabled).cdk-mouse-focused .mat-slider-thumb,.mat-slider:not(.mat-slider-disabled).cdk-program-focused .mat-slider-thumb,.mat-slider:not(.mat-slider-disabled).cdk-touch-focused .mat-slider-thumb{border-width:2px;transform:scale(1)}.mat-slider-disabled .mat-slider-focus-ring{transform:scale(0);opacity:0}.mat-slider-disabled .mat-slider-thumb{border-width:4px;transform:scale(.5)}.mat-slider-disabled .mat-slider-thumb-label{display:none}.mat-slider-horizontal{height:48px;min-width:128px}.mat-slider-horizontal .mat-slider-wrapper{height:2px;top:23px;left:8px;right:8px}.mat-slider-horizontal .mat-slider-wrapper::after{height:2px;border-left-width:2px;right:0;top:0}.mat-slider-horizontal .mat-slider-track-wrapper{height:2px;width:100%}.mat-slider-horizontal .mat-slider-track-fill{height:2px;width:100%;transform:scaleX(0)}.mat-slider-horizontal .mat-slider-track-background{height:2px;width:100%;transform:scaleX(1)}.mat-slider-horizontal .mat-slider-ticks-container{height:2px;width:100%}@media (-ms-high-contrast:active){.mat-slider-horizontal .mat-slider-ticks-container{height:0;outline:solid 2px;top:1px}}.mat-slider-horizontal .mat-slider-ticks{height:2px;width:100%}.mat-slider-horizontal .mat-slider-thumb-container{width:100%;height:0;top:50%}.mat-slider-horizontal .mat-slider-focus-ring{top:-15px;right:-15px}.mat-slider-horizontal .mat-slider-thumb-label{right:-14px;top:-40px;transform:translateY(26px) scale(.01) rotate(45deg)}.mat-slider-horizontal .mat-slider-thumb-label-text{transform:rotate(-45deg)}.mat-slider-horizontal.cdk-focused .mat-slider-thumb-label{transform:rotate(45deg)}@media (-ms-high-contrast:active){.mat-slider-horizontal.cdk-focused .mat-slider-thumb-label,.mat-slider-horizontal.cdk-focused .mat-slider-thumb-label-text{transform:none}}.mat-slider-vertical{width:48px;min-height:128px}.mat-slider-vertical .mat-slider-wrapper{width:2px;top:8px;bottom:8px;left:23px}.mat-slider-vertical .mat-slider-wrapper::after{width:2px;border-top-width:2px;bottom:0;left:0}.mat-slider-vertical .mat-slider-track-wrapper{height:100%;width:2px}.mat-slider-vertical .mat-slider-track-fill{height:100%;width:2px;transform:scaleY(0)}.mat-slider-vertical .mat-slider-track-background{height:100%;width:2px;transform:scaleY(1)}.mat-slider-vertical .mat-slider-ticks-container{width:2px;height:100%}@media (-ms-high-contrast:active){.mat-slider-vertical .mat-slider-ticks-container{width:0;outline:solid 2px;left:1px}}.mat-slider-vertical .mat-slider-focus-ring{bottom:-15px;left:-15px}.mat-slider-vertical .mat-slider-ticks{width:2px;height:100%}.mat-slider-vertical .mat-slider-thumb-container{height:100%;width:0;left:50%}.mat-slider-vertical .mat-slider-thumb{-webkit-backface-visibility:hidden;backface-visibility:hidden}.mat-slider-vertical .mat-slider-thumb-label{bottom:-14px;left:-40px;transform:translateX(26px) scale(.01) rotate(-45deg)}.mat-slider-vertical .mat-slider-thumb-label-text{transform:rotate(45deg)}.mat-slider-vertical.cdk-focused .mat-slider-thumb-label{transform:rotate(-45deg)}[dir=rtl] .mat-slider-wrapper::after{left:0;right:auto}[dir=rtl] .mat-slider-horizontal .mat-slider-track-fill{transform-origin:100% 100%}[dir=rtl] .mat-slider-horizontal .mat-slider-track-background{transform-origin:0 0}[dir=rtl] .mat-slider-horizontal.mat-slider-axis-inverted .mat-slider-track-fill{transform-origin:0 0}[dir=rtl] .mat-slider-horizontal.mat-slider-axis-inverted .mat-slider-track-background{transform-origin:100% 100%}.mat-slider._mat-animation-noopable .mat-slider-focus-ring,.mat-slider._mat-animation-noopable .mat-slider-has-ticks .mat-slider-wrapper::after,.mat-slider._mat-animation-noopable .mat-slider-thumb,.mat-slider._mat-animation-noopable .mat-slider-thumb-container,.mat-slider._mat-animation-noopable .mat-slider-thumb-label,.mat-slider._mat-animation-noopable .mat-slider-thumb-label-text,.mat-slider._mat-animation-noopable .mat-slider-ticks,.mat-slider._mat-animation-noopable .mat-slider-track-background,.mat-slider._mat-animation-noopable .mat-slider-track-fill{transition:none}"],data:{}}));function a(t){return n.Lb(2,[n.Ib(671088640,1,{_sliderWrapper:0}),(t()(),n.sb(1,0,[[1,0],["sliderWrapper",1]],null,21,"div",[["class","mat-slider-wrapper"]],null,null,null,null,null)),(t()(),n.sb(2,0,null,null,6,"div",[["class","mat-slider-track-wrapper"]],null,null,null,null,null)),(t()(),n.sb(3,0,null,null,2,"div",[["class","mat-slider-track-background"]],null,null,null,null,null)),n.Hb(512,null,s.B,s.C,[n.k,n.s,n.D]),n.rb(5,278528,null,0,s.n,[s.B],{ngStyle:[0,"ngStyle"]},null),(t()(),n.sb(6,0,null,null,2,"div",[["class","mat-slider-track-fill"]],null,null,null,null,null)),n.Hb(512,null,s.B,s.C,[n.k,n.s,n.D]),n.rb(8,278528,null,0,s.n,[s.B],{ngStyle:[0,"ngStyle"]},null),(t()(),n.sb(9,0,null,null,5,"div",[["class","mat-slider-ticks-container"]],null,null,null,null,null)),n.Hb(512,null,s.B,s.C,[n.k,n.s,n.D]),n.rb(11,278528,null,0,s.n,[s.B],{ngStyle:[0,"ngStyle"]},null),(t()(),n.sb(12,0,null,null,2,"div",[["class","mat-slider-ticks"]],null,null,null,null,null)),n.Hb(512,null,s.B,s.C,[n.k,n.s,n.D]),n.rb(14,278528,null,0,s.n,[s.B],{ngStyle:[0,"ngStyle"]},null),(t()(),n.sb(15,0,null,null,7,"div",[["class","mat-slider-thumb-container"]],null,null,null,null,null)),n.Hb(512,null,s.B,s.C,[n.k,n.s,n.D]),n.rb(17,278528,null,0,s.n,[s.B],{ngStyle:[0,"ngStyle"]},null),(t()(),n.sb(18,0,null,null,0,"div",[["class","mat-slider-focus-ring"]],null,null,null,null,null)),(t()(),n.sb(19,0,null,null,0,"div",[["class","mat-slider-thumb"]],null,null,null,null,null)),(t()(),n.sb(20,0,null,null,2,"div",[["class","mat-slider-thumb-label"]],null,null,null,null,null)),(t()(),n.sb(21,0,null,null,1,"span",[["class","mat-slider-thumb-label-text"]],null,null,null,null,null)),(t()(),n.Kb(22,null,["",""]))],function(t,e){var i=e.component;t(e,5,0,i._trackBackgroundStyles),t(e,8,0,i._trackFillStyles),t(e,11,0,i._ticksContainerStyles),t(e,14,0,i._ticksStyles),t(e,17,0,i._thumbContainerStyles)},function(t,e){t(e,22,0,e.component.displayValue)})}},wZee:function(t,e,i){var n=function(t){var e=/\blang(?:uage)?-([\w-]+)\b/i,i=0,n={manual:t.Prism&&t.Prism.manual,disableWorkerMessageHandler:t.Prism&&t.Prism.disableWorkerMessageHandler,util:{encode:function(t){return t instanceof s?new s(t.type,n.util.encode(t.content),t.alias):Array.isArray(t)?t.map(n.util.encode):t.replace(/&/g,"&").replace(/t.length)return;if(!(w instanceof s)){if(p&&v!=e.length-1){if(h.lastIndex=k,!(A=h.exec(t)))break;for(var y=A.index+(g?A[1].length:0),x=A.index+A[0].length,E=v,I=k,F=e.length;E=(I+=e[E].length)&&(++v,k=I);if(e[v]instanceof s)continue;C=E-v,w=t.slice(k,I),A.index-=k}else{h.lastIndex=0;var A=h.exec(w),C=1}if(A){g&&(f=A[1]?A[1].length:0),x=(y=A.index+f)+(A=A[0].slice(f)).length;var D=w.slice(0,y),S=w.slice(x),T=[v,C];D&&(++v,k+=D.length,T.push(D));var O=new s(c,m?n.tokenize(A,m):A,b,A,p);if(T.push(O),S&&T.push(S),Array.prototype.splice.apply(e,T),1!=C&&n.matchGrammar(t,e,i,v,k,!0,c),l)break}else if(l)break}}}}},tokenize:function(t,e){var i=[t],s=e.rest;if(s){for(var r in s)e[r]=s[r];delete e.rest}return n.matchGrammar(t,i,e,0,0,!1),i},hooks:{all:{},add:function(t,e){var i=n.hooks.all;i[t]=i[t]||[],i[t].push(e)},run:function(t,e){var i=n.hooks.all[t];if(i&&i.length)for(var s,r=0;s=i[r++];)s(e)}},Token:s};function s(t,e,i,n,s){this.type=t,this.content=e,this.alias=i,this.length=0|(n||"").length,this.greedy=!!s}if(t.Prism=n,s.stringify=function(t,e){if("string"==typeof t)return t;if(Array.isArray(t))return t.map(function(t){return s.stringify(t,e)}).join("");var i={type:t.type,content:s.stringify(t.content,e),tag:"span",classes:["token",t.type],attributes:{},language:e};if(t.alias){var r=Array.isArray(t.alias)?t.alias:[t.alias];Array.prototype.push.apply(i.classes,r)}n.hooks.run("wrap",i);var a=Object.keys(i.attributes).map(function(t){return t+'="'+(i.attributes[t]||"").replace(/"/g,""")+'"'}).join(" ");return"<"+i.tag+' class="'+i.classes.join(" ")+'"'+(a?" "+a:"")+">"+i.content+""},!t.document)return t.addEventListener?(n.disableWorkerMessageHandler||t.addEventListener("message",function(e){var i=JSON.parse(e.data),s=i.language,r=i.immediateClose;t.postMessage(n.highlight(i.code,n.languages[s],s)),r&&t.close()},!1),n):n;var r=document.currentScript||[].slice.call(document.getElementsByTagName("script")).pop();return r&&(n.filename=r.src,n.manual||r.hasAttribute("data-manual")||("loading"!==document.readyState?window.requestAnimationFrame?window.requestAnimationFrame(n.highlightAll):window.setTimeout(n.highlightAll,16):document.addEventListener("DOMContentLoaded",n.highlightAll))),n}("undefined"!=typeof window?window:"undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope?self:{});t.exports&&(t.exports=n),"undefined"!=typeof global&&(global.Prism=n),n.languages.markup={comment://,prolog:/<\?[\s\S]+?\?>/,doctype://i,cdata://i,tag:{pattern:/<\/?(?!\d)[^\s>\/=$<%]+(?:\s(?:\s*[^\s>\/=]+(?:\s*=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+(?=[\s>]))|(?=[\s\/>])))+)?\s*\/?>/i,greedy:!0,inside:{tag:{pattern:/^<\/?[^\s>\/]+/i,inside:{punctuation:/^<\/?/,namespace:/^[^\s>\/:]+:/}},"attr-value":{pattern:/=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+)/i,inside:{punctuation:[/^=/,{pattern:/^(\s*)["']|["']$/,lookbehind:!0}]}},punctuation:/\/?>/,"attr-name":{pattern:/[^\s>\/]+/,inside:{namespace:/^[^\s>\/:]+:/}}}},entity:/&#?[\da-z]{1,8};/i},n.languages.markup.tag.inside["attr-value"].inside.entity=n.languages.markup.entity,n.hooks.add("wrap",function(t){"entity"===t.type&&(t.attributes.title=t.content.replace(/&/,"&"))}),Object.defineProperty(n.languages.markup.tag,"addInlined",{value:function(t,e){var i={};i["language-"+e]={pattern:/(^$)/i,lookbehind:!0,inside:n.languages[e]},i.cdata=/^$/i;var s={"included-cdata":{pattern://i,inside:i}};s["language-"+e]={pattern:/[\s\S]+/,inside:n.languages[e]};var r={};r[t]={pattern:RegExp(/(<__[\s\S]*?>)(?:\s*|[\s\S])*?(?=<\/__>)/.source.replace(/__/g,t),"i"),lookbehind:!0,greedy:!0,inside:s},n.languages.insertBefore("markup","cdata",r)}}),n.languages.xml=n.languages.extend("markup",{}),n.languages.html=n.languages.markup,n.languages.mathml=n.languages.markup,n.languages.svg=n.languages.markup,function(t){var e=/("|')(?:\\(?:\r\n|[\s\S])|(?!\1)[^\\\r\n])*\1/;t.languages.css={comment:/\/\*[\s\S]*?\*\//,atrule:{pattern:/@[\w-]+[\s\S]*?(?:;|(?=\s*\{))/,inside:{rule:/@[\w-]+/}},url:{pattern:RegExp("url\\((?:"+e.source+"|[^\n\r()]*)\\)","i"),inside:{function:/^url/i,punctuation:/^\(|\)$/}},selector:RegExp("[^{}\\s](?:[^{};\"']|"+e.source+")*?(?=\\s*\\{)"),string:{pattern:e,greedy:!0},property:/[-_a-z\xA0-\uFFFF][-\w\xA0-\uFFFF]*(?=\s*:)/i,important:/!important\b/i,function:/[-a-z0-9]+(?=\()/i,punctuation:/[(){};:,]/},t.languages.css.atrule.inside.rest=t.languages.css;var i=t.languages.markup;i&&(i.tag.addInlined("style","css"),t.languages.insertBefore("inside","attr-value",{"style-attr":{pattern:/\s*style=("|')(?:\\[\s\S]|(?!\1)[^\\])*\1/i,inside:{"attr-name":{pattern:/^\s*style/i,inside:i.tag.inside},punctuation:/^\s*=\s*['"]|['"]\s*$/,"attr-value":{pattern:/.+/i,inside:t.languages.css}},alias:"language-css"}},i.tag))}(n),n.languages.clike={comment:[{pattern:/(^|[^\\])\/\*[\s\S]*?(?:\*\/|$)/,lookbehind:!0},{pattern:/(^|[^\\:])\/\/.*/,lookbehind:!0,greedy:!0}],string:{pattern:/(["'])(?:\\(?:\r\n|[\s\S])|(?!\1)[^\\\r\n])*\1/,greedy:!0},"class-name":{pattern:/((?:\b(?:class|interface|extends|implements|trait|instanceof|new)\s+)|(?:catch\s+\())[\w.\\]+/i,lookbehind:!0,inside:{punctuation:/[.\\]/}},keyword:/\b(?:if|else|while|do|for|return|in|instanceof|function|new|try|throw|catch|finally|null|break|continue)\b/,boolean:/\b(?:true|false)\b/,function:/\w+(?=\()/,number:/\b0x[\da-f]+\b|(?:\b\d+\.?\d*|\B\.\d+)(?:e[+-]?\d+)?/i,operator:/--?|\+\+?|!=?=?|<=?|>=?|==?=?|&&?|\|\|?|\?|\*|\/|~|\^|%/,punctuation:/[{}[\];(),.:]/},n.languages.javascript=n.languages.extend("clike",{"class-name":[n.languages.clike["class-name"],{pattern:/(^|[^$\w\xA0-\uFFFF])[_$A-Z\xA0-\uFFFF][$\w\xA0-\uFFFF]*(?=\.(?:prototype|constructor))/,lookbehind:!0}],keyword:[{pattern:/((?:^|})\s*)(?:catch|finally)\b/,lookbehind:!0},{pattern:/(^|[^.])\b(?:as|async(?=\s*(?:function\b|\(|[$\w\xA0-\uFFFF]|$))|await|break|case|class|const|continue|debugger|default|delete|do|else|enum|export|extends|for|from|function|get|if|implements|import|in|instanceof|interface|let|new|null|of|package|private|protected|public|return|set|static|super|switch|this|throw|try|typeof|undefined|var|void|while|with|yield)\b/,lookbehind:!0}],number:/\b(?:(?:0[xX](?:[\dA-Fa-f](?:_[\dA-Fa-f])?)+|0[bB](?:[01](?:_[01])?)+|0[oO](?:[0-7](?:_[0-7])?)+)n?|(?:\d(?:_\d)?)+n|NaN|Infinity)\b|(?:\b(?:\d(?:_\d)?)+\.?(?:\d(?:_\d)?)*|\B\.(?:\d(?:_\d)?)+)(?:[Ee][+-]?(?:\d(?:_\d)?)+)?/,function:/#?[_$a-zA-Z\xA0-\uFFFF][$\w\xA0-\uFFFF]*(?=\s*(?:\.\s*(?:apply|bind|call)\s*)?\()/,operator:/-[-=]?|\+[+=]?|!=?=?|<>?>?=?|=(?:==?|>)?|&[&=]?|\|[|=]?|\*\*?=?|\/=?|~|\^=?|%=?|\?|\.{3}/}),n.languages.javascript["class-name"][0].pattern=/(\b(?:class|interface|extends|implements|instanceof|new)\s+)[\w.\\]+/,n.languages.insertBefore("javascript","keyword",{regex:{pattern:/((?:^|[^$\w\xA0-\uFFFF."'\])\s])\s*)\/(\[(?:[^\]\\\r\n]|\\.)*]|\\.|[^\/\\\[\r\n])+\/[gimyus]{0,6}(?=\s*($|[\r\n,.;})\]]))/,lookbehind:!0,greedy:!0},"function-variable":{pattern:/#?[_$a-zA-Z\xA0-\uFFFF][$\w\xA0-\uFFFF]*(?=\s*[=:]\s*(?:async\s*)?(?:\bfunction\b|(?:\((?:[^()]|\([^()]*\))*\)|[_$a-zA-Z\xA0-\uFFFF][$\w\xA0-\uFFFF]*)\s*=>))/,alias:"function"},parameter:[{pattern:/(function(?:\s+[_$A-Za-z\xA0-\uFFFF][$\w\xA0-\uFFFF]*)?\s*\(\s*)(?!\s)(?:[^()]|\([^()]*\))+?(?=\s*\))/,lookbehind:!0,inside:n.languages.javascript},{pattern:/[_$a-z\xA0-\uFFFF][$\w\xA0-\uFFFF]*(?=\s*=>)/i,inside:n.languages.javascript},{pattern:/(\(\s*)(?!\s)(?:[^()]|\([^()]*\))+?(?=\s*\)\s*=>)/,lookbehind:!0,inside:n.languages.javascript},{pattern:/((?:\b|\s|^)(?!(?:as|async|await|break|case|catch|class|const|continue|debugger|default|delete|do|else|enum|export|extends|finally|for|from|function|get|if|implements|import|in|instanceof|interface|let|new|null|of|package|private|protected|public|return|set|static|super|switch|this|throw|try|typeof|undefined|var|void|while|with|yield)(?![$\w\xA0-\uFFFF]))(?:[_$A-Za-z\xA0-\uFFFF][$\w\xA0-\uFFFF]*\s*)\(\s*)(?!\s)(?:[^()]|\([^()]*\))+?(?=\s*\)\s*\{)/,lookbehind:!0,inside:n.languages.javascript}],constant:/\b[A-Z](?:[A-Z_]|\dx?)*\b/}),n.languages.insertBefore("javascript","string",{"template-string":{pattern:/`(?:\\[\s\S]|\${(?:[^{}]|{(?:[^{}]|{[^}]*})*})+}|(?!\${)[^\\`])*`/,greedy:!0,inside:{"template-punctuation":{pattern:/^`|`$/,alias:"string"},interpolation:{pattern:/((?:^|[^\\])(?:\\{2})*)\${(?:[^{}]|{(?:[^{}]|{[^}]*})*})+}/,lookbehind:!0,inside:{"interpolation-punctuation":{pattern:/^\${|}$/,alias:"punctuation"},rest:n.languages.javascript}},string:/[\s\S]+/}}}),n.languages.markup&&n.languages.markup.tag.addInlined("script","javascript"),n.languages.js=n.languages.javascript,"undefined"!=typeof self&&self.Prism&&self.document&&document.querySelector&&(self.Prism.fileHighlight=function(t){t=t||document;var e={js:"javascript",py:"python",rb:"ruby",ps1:"powershell",psm1:"powershell",sh:"bash",bat:"batch",h:"c",tex:"latex"};Array.prototype.slice.call(t.querySelectorAll("pre[data-src]")).forEach(function(t){if(!t.hasAttribute("data-src-loaded")){for(var i,s=t.getAttribute("data-src"),r=t,a=/\blang(?:uage)?-([\w-]+)\b/i;r&&!a.test(r.className);)r=r.parentNode;if(r&&(i=(t.className.match(a)||[,""])[1]),!i){var l=(s.match(/\.(\w+)$/)||[,""])[1];i=e[l]||l}var o=document.createElement("code");o.className="language-"+i,t.textContent="",o.textContent="Loading\u2026",t.appendChild(o);var c=new XMLHttpRequest;c.open("GET",s,!0),c.onreadystatechange=function(){4==c.readyState&&(c.status<400&&c.responseText?(o.textContent=c.responseText,n.highlightElement(o),t.setAttribute("data-src-loaded","")):o.textContent=c.status>=400?"\u2716 Error "+c.status+" while fetching file: "+c.statusText:"\u2716 Error: File does not exist or is empty")},c.send(null)}}),n.plugins.toolbar&&n.plugins.toolbar.registerButton("download-file",function(t){var e=t.element.parentNode;if(e&&/pre/i.test(e.nodeName)&&e.hasAttribute("data-src")&&e.hasAttribute("data-download-link")){var i=e.getAttribute("data-src"),n=document.createElement("a");return n.textContent=e.getAttribute("data-download-link-label")||"Download",n.setAttribute("download",""),n.href=i,n}})},document.addEventListener("DOMContentLoaded",function(){self.Prism.fileHighlight()}))}}]); \ No newline at end of file diff --git a/1-es5.67d3ceb99452bc011267.js b/1-es5.67d3ceb99452bc011267.js new file mode 100644 index 0000000..2d6f8db --- /dev/null +++ b/1-es5.67d3ceb99452bc011267.js @@ -0,0 +1 @@ +function t(t,e){for(var n=0;n2?r-2:0),a=2;a1?e-1:0),i=1;i>=?|<<=?|->|([-+&|:])\1|[?:~]|[-+*\/%&|^!=<>]=?/,number:/(?:\b0x(?:[\da-f]+\.?[\da-f]*|\.[\da-f]+)(?:p[+-]?\d+)?|(?:\b\d+\.?\d*|\B\.\d+)(?:e[+-]?\d+)?)[ful]*/i}),Prism.languages.insertBefore("c","string",{macro:{pattern:/(^\s*)#\s*[a-z]+(?:[^\r\n\\]|\\(?:\r\n|[\s\S]))*/im,lookbehind:!0,alias:"property",inside:{string:{pattern:/(#\s*include\s*)(?:<.+?>|("|')(?:\\?.)+?\2)/,lookbehind:!0},directive:{pattern:/(#\s*)\b(?:define|defined|elif|else|endif|error|ifdef|ifndef|if|import|include|line|pragma|undef|using)\b/,lookbehind:!0,alias:"keyword"}}},constant:/\b(?:__FILE__|__LINE__|__DATE__|__TIME__|__TIMESTAMP__|__func__|EOF|NULL|SEEK_CUR|SEEK_END|SEEK_SET|stdin|stdout|stderr)\b/}),delete Prism.languages.c.boolean},kfgK:function t(e,n){Prism.languages.cpp=Prism.languages.extend("c",{"class-name":{pattern:/(\b(?:class|enum|struct)\s+)\w+/,lookbehind:!0},keyword:/\b(?:alignas|alignof|asm|auto|bool|break|case|catch|char|char16_t|char32_t|class|compl|const|constexpr|const_cast|continue|decltype|default|delete|do|double|dynamic_cast|else|enum|explicit|export|extern|float|for|friend|goto|if|inline|int|int8_t|int16_t|int32_t|int64_t|uint8_t|uint16_t|uint32_t|uint64_t|long|mutable|namespace|new|noexcept|nullptr|operator|private|protected|public|register|reinterpret_cast|return|short|signed|sizeof|static|static_assert|static_cast|struct|switch|template|this|thread_local|throw|try|typedef|typeid|typename|union|unsigned|using|virtual|void|volatile|wchar_t|while)\b/,number:{pattern:/(?:\b0b[01']+|\b0x(?:[\da-f']+\.?[\da-f']*|\.[\da-f']+)(?:p[+-]?[\d']+)?|(?:\b[\d']+\.?[\d']*|\B\.[\d']+)(?:e[+-]?[\d']+)?)[ful]*/i,greedy:!0},operator:/>>=?|<<=?|->|([-+&|:])\1|[?:~]|[-+*\/%&|^!=<>]=?|\b(?:and|and_eq|bitand|bitor|not|not_eq|or|or_eq|xor|xor_eq)\b/,boolean:/\b(?:true|false)\b/}),Prism.languages.insertBefore("cpp","string",{"raw-string":{pattern:/R"([^()\\ ]{0,16})\([\s\S]*?\)\1"/,alias:"string",greedy:!0}})},lT8R:function t(i,r,s){"use strict";s.d(r,"b",function(){return v}),s.d(r,"a",function(){return _});var a=s("KCVW"),o=s("dvZr"),l=s("8Y7J"),u=(s("s7LF"),s("Xd0L")),c=s("quSY");var d=30,h=7,m=7,f=10;var g=function t(){};var p=function t(e){this._elementRef=e};var b=Object(u.k)(Object(u.h)(Object(u.j)(p),"accent"));var _=function(t){n(i,t);function i(e,n,i,r,s,a){var o;o=t.call(this,e)||this,o._focusMonitor=n,o._changeDetectorRef=i,o._dir=r,o._animationMode=a,o._invert=!1,o._max=100,o._min=0,o._step=1,o._thumbLabel=!1,o._tickInterval=0,o._value=null,o._vertical=!1,o.change=new l.m,o.input=new l.m,o.valueChange=new l.m,o.onTouched=function(){},o._percent=0,o._isSliding=!1,o._isActive=!1,o._tickIntervalPercent=0,o._sliderDimensions=null,o._controlValueAccessorChangeFn=function(){},o._dirChangeSubscription=c.a.EMPTY,o.tabIndex=parseInt(s)||0;return o}var r=i.prototype;r.focus=function t(e){this._focusHostElement(e)};r.blur=function t(){this._blurHostElement()};r._shouldInvertMouseCoords=function t(){return"rtl"!=this._getDirection()||this.vertical?this._invertAxis:!this._invertAxis};r._getDirection=function t(){return this._dir&&"rtl"==this._dir.value?"rtl":"ltr"};r.ngOnInit=function t(){var e=this;this._focusMonitor.monitor(this._elementRef,!0).subscribe(function(t){e._isActive=!!t&&"keyboard"!==t,e._changeDetectorRef.detectChanges()}),this._dir&&(this._dirChangeSubscription=this._dir.change.subscribe(function(){e._changeDetectorRef.markForCheck()}))};r.ngOnDestroy=function t(){this._focusMonitor.stopMonitoring(this._elementRef),this._dirChangeSubscription.unsubscribe()};r._onMouseenter=function t(){this.disabled||(this._sliderDimensions=this._getSliderDimensions(),this._updateTickIntervalPercent())};r._onMousedown=function t(e){if(this.disabled||0!==e.button)return;var n=this.value;this._isSliding=!1,this._focusHostElement(),this._updateValueFromPosition({x:e.clientX,y:e.clientY}),n!=this.value&&(this._emitInputEvent(),this._emitChangeEvent())};r._onSlide=function t(e){if(this.disabled)return;this._isSliding||this._onSlideStart(null),e.preventDefault();var n=this.value;this._updateValueFromPosition({x:e.center.x,y:e.center.y}),n!=this.value&&this._emitInputEvent()};r._onSlideStart=function t(e){this.disabled||this._isSliding||(this._onMouseenter(),this._isSliding=!0,this._focusHostElement(),this._valueOnSlideStart=this.value,e&&(this._updateValueFromPosition({x:e.center.x,y:e.center.y}),e.preventDefault()))};r._onSlideEnd=function t(){this._isSliding=!1,this._valueOnSlideStart==this.value||this.disabled||this._emitChangeEvent(),this._valueOnSlideStart=null};r._onFocus=function t(){this._sliderDimensions=this._getSliderDimensions(),this._updateTickIntervalPercent()};r._onBlur=function t(){this.onTouched()};r._onKeydown=function t(e){if(this.disabled||Object(o.p)(e))return;var n=this.value;switch(e.keyCode){case o.i:this._increment(10);break;case o.h:this._increment(-10);break;case o.c:this.value=this.max;break;case o.e:this.value=this.min;break;case o.f:this._increment("rtl"==this._getDirection()?1:-1);break;case o.m:this._increment(1);break;case o.j:this._increment("rtl"==this._getDirection()?-1:1);break;case o.b:this._increment(-1);break;default:return}n!=this.value&&(this._emitInputEvent(),this._emitChangeEvent()),this._isSliding=!0,e.preventDefault()};r._onKeyup=function t(){this._isSliding=!1};r._increment=function t(e){this.value=this._clamp((this.value||0)+this.step*e,this.min,this.max)};r._updateValueFromPosition=function t(e){if(!this._sliderDimensions)return;var n=this._clamp(((this.vertical?e.y:e.x)-(this.vertical?this._sliderDimensions.top:this._sliderDimensions.left))/(this.vertical?this._sliderDimensions.height:this._sliderDimensions.width));if(this._shouldInvertMouseCoords()&&(n=1-n),0===n)this.value=this.min;else if(1===n)this.value=this.max;else{var i=this._calculateValue(n),r=Math.round((i-this.min)/this.step)*this.step+this.min;this.value=this._clamp(r,this.min,this.max)}};r._emitChangeEvent=function t(){this._controlValueAccessorChangeFn(this.value),this.valueChange.emit(this.value),this.change.emit(this._createChangeEvent())};r._emitInputEvent=function t(){this.input.emit(this._createChangeEvent())};r._updateTickIntervalPercent=function t(){if(this.tickInterval&&this._sliderDimensions)if("auto"==this.tickInterval){var e=this.vertical?this._sliderDimensions.height:this._sliderDimensions.width,n=Math.ceil(d/(e*this.step/(this.max-this.min)));this._tickIntervalPercent=n*this.step/e}else this._tickIntervalPercent=this.tickInterval*this.step/(this.max-this.min)};r._createChangeEvent=function t(e){if(e===void 0){e=this.value}var n=new g;return n.source=this,n.value=e,n};r._calculatePercentage=function t(e){return((e||0)-this.min)/(this.max-this.min)};r._calculateValue=function t(e){return this.min+e*(this.max-this.min)};r._clamp=function t(e,n,i){if(n===void 0){n=0}if(i===void 0){i=1}return Math.max(n,Math.min(e,i))};r._getSliderDimensions=function t(){return this._sliderWrapper?this._sliderWrapper.nativeElement.getBoundingClientRect():null};r._focusHostElement=function t(e){this._elementRef.nativeElement.focus(e)};r._blurHostElement=function t(){this._elementRef.nativeElement.blur()};r.writeValue=function t(e){this.value=e};r.registerOnChange=function t(e){this._controlValueAccessorChangeFn=e};r.registerOnTouched=function t(e){this.onTouched=e};r.setDisabledState=function t(e){this.disabled=e};e(i,[{key:"invert",get:function t(){return this._invert},set:function t(e){this._invert=Object(a.a)(e)}},{key:"max",get:function t(){return this._max},set:function t(e){this._max=Object(a.c)(e,this._max),this._percent=this._calculatePercentage(this._value),this._changeDetectorRef.markForCheck()}},{key:"min",get:function t(){return this._min},set:function t(e){this._min=Object(a.c)(e,this._min),null===this._value&&(this.value=this._min),this._percent=this._calculatePercentage(this._value),this._changeDetectorRef.markForCheck()}},{key:"step",get:function t(){return this._step},set:function t(e){this._step=Object(a.c)(e,this._step),this._step%1!=0&&(this._roundToDecimal=this._step.toString().split(".").pop().length),this._changeDetectorRef.markForCheck()}},{key:"thumbLabel",get:function t(){return this._thumbLabel},set:function t(e){this._thumbLabel=Object(a.a)(e)}},{key:"tickInterval",get:function t(){return this._tickInterval},set:function t(e){this._tickInterval="auto"===e?"auto":"number"==typeof e||"string"==typeof e?Object(a.c)(e,this._tickInterval):0}},{key:"value",get:function t(){return null===this._value&&(this.value=this._min),this._value},set:function t(e){if(e!==this._value){var n=Object(a.c)(e);this._roundToDecimal&&(n=parseFloat(n.toFixed(this._roundToDecimal))),this._value=n,this._percent=this._calculatePercentage(this._value),this._changeDetectorRef.markForCheck()}}},{key:"vertical",get:function t(){return this._vertical},set:function t(e){this._vertical=Object(a.a)(e)}},{key:"displayValue",get:function t(){return this.displayWith?this.displayWith(this.value):this._roundToDecimal&&this.value&&this.value%1!=0?this.value.toFixed(this._roundToDecimal):this.value||0}},{key:"percent",get:function t(){return this._clamp(this._percent)}},{key:"_invertAxis",get:function t(){return this.vertical?!this.invert:this.invert}},{key:"_isMinValue",get:function t(){return 0===this.percent}},{key:"_thumbGap",get:function t(){return this.disabled?h:this._isMinValue&&!this.thumbLabel?this._isActive?f:m:0}},{key:"_trackBackgroundStyles",get:function t(){var e=this.vertical?"1, "+(1-this.percent)+", 1":1-this.percent+", 1, 1";return{transform:"translate"+(this.vertical?"Y":"X")+"("+(this._shouldInvertMouseCoords()?"-":"")+this._thumbGap+"px) scale3d("+e+")"}}},{key:"_trackFillStyles",get:function t(){var e=this.vertical?"1, "+this.percent+", 1":this.percent+", 1, 1";return{transform:"translate"+(this.vertical?"Y":"X")+"("+(this._shouldInvertMouseCoords()?"":"-")+this._thumbGap+"px) scale3d("+e+")"}}},{key:"_ticksContainerStyles",get:function t(){return{transform:"translate"+(this.vertical?"Y":"X")+"("+(this.vertical||"rtl"!=this._getDirection()?"-":"")+this._tickIntervalPercent/2*100+"%)"}}},{key:"_ticksStyles",get:function t(){var e=100*this._tickIntervalPercent,n={backgroundSize:this.vertical?"2px "+e+"%":e+"% 2px",transform:"translateZ(0) translate"+(this.vertical?"Y":"X")+"("+(this.vertical||"rtl"!=this._getDirection()?"":"-")+e/2+"%)"+(this.vertical||"rtl"!=this._getDirection()?"":" rotate(180deg)")};return this._isMinValue&&this._thumbGap&&(n["padding"+(this.vertical?this._invertAxis?"Bottom":"Top":this._invertAxis?"Right":"Left")]=this._thumbGap+"px"),n}},{key:"_thumbContainerStyles",get:function t(){return{transform:"translate"+(this.vertical?"Y":"X")+"(-"+100*(("rtl"!=this._getDirection()||this.vertical?this._invertAxis:!this._invertAxis)?this.percent:1-this.percent)+"%)"}}}]);return i}(b);var v=function t(){}},mrSG:function t(e,n,i){"use strict";function r(t,e,n,i){return new(n||(n=Promise))(function(r,s){function a(t){try{l(i.next(t))}catch(e){s(e)}}function o(t){try{l(i.throw(t))}catch(e){s(e)}}function l(t){t.done?r(t.value):new n(function(e){e(t.value)}).then(a,o)}l((i=i.apply(t,e||[])).next())})}i.d(n,"a",function(){return r})},uM4N:function t(e,n,i){"use strict";i.d(n,"a",function(){return a}),i.d(n,"b",function(){return o});var r=i("8Y7J"),s=(i("lT8R"),i("SVse")),a=(i("cUpR"),i("Xd0L"),i("IP0z"),i("s7LF"),i("5GAg"),i("omvX"),r.qb({encapsulation:2,styles:[".mat-slider{display:inline-block;position:relative;box-sizing:border-box;padding:8px;outline:0;vertical-align:middle}.mat-slider.mat-slider-sliding:not(.mat-slider-disabled),.mat-slider:not(.mat-slider-disabled):active{cursor:-webkit-grabbing;cursor:grabbing}.mat-slider-wrapper{position:absolute}.mat-slider-track-wrapper{position:absolute;top:0;left:0;overflow:hidden}.mat-slider-track-fill{position:absolute;transform-origin:0 0;transition:transform .4s cubic-bezier(.25,.8,.25,1),background-color .4s cubic-bezier(.25,.8,.25,1)}.mat-slider-track-background{position:absolute;transform-origin:100% 100%;transition:transform .4s cubic-bezier(.25,.8,.25,1),background-color .4s cubic-bezier(.25,.8,.25,1)}.mat-slider-ticks-container{position:absolute;left:0;top:0;overflow:hidden}.mat-slider-ticks{background-repeat:repeat;background-clip:content-box;box-sizing:border-box;opacity:0;transition:opacity .4s cubic-bezier(.25,.8,.25,1)}.mat-slider-thumb-container{position:absolute;z-index:1;transition:transform .4s cubic-bezier(.25,.8,.25,1)}.mat-slider-focus-ring{position:absolute;width:30px;height:30px;border-radius:50%;transform:scale(0);opacity:0;transition:transform .4s cubic-bezier(.25,.8,.25,1),background-color .4s cubic-bezier(.25,.8,.25,1),opacity .4s cubic-bezier(.25,.8,.25,1)}.mat-slider.cdk-keyboard-focused .mat-slider-focus-ring,.mat-slider.cdk-program-focused .mat-slider-focus-ring{transform:scale(1);opacity:1}.mat-slider:not(.mat-slider-disabled):not(.mat-slider-sliding) .mat-slider-thumb,.mat-slider:not(.mat-slider-disabled):not(.mat-slider-sliding) .mat-slider-thumb-label{cursor:-webkit-grab;cursor:grab}.mat-slider-thumb{position:absolute;right:-10px;bottom:-10px;box-sizing:border-box;width:20px;height:20px;border:3px solid transparent;border-radius:50%;transform:scale(.7);transition:transform .4s cubic-bezier(.25,.8,.25,1),background-color .4s cubic-bezier(.25,.8,.25,1),border-color .4s cubic-bezier(.25,.8,.25,1)}.mat-slider-thumb-label{display:none;align-items:center;justify-content:center;position:absolute;width:28px;height:28px;border-radius:50%;transition:transform .4s cubic-bezier(.25,.8,.25,1),border-radius .4s cubic-bezier(.25,.8,.25,1),background-color .4s cubic-bezier(.25,.8,.25,1)}@media (-ms-high-contrast:active){.mat-slider-thumb-label{outline:solid 1px}}.mat-slider-thumb-label-text{z-index:1;opacity:0;transition:opacity .4s cubic-bezier(.25,.8,.25,1)}.mat-slider-sliding .mat-slider-thumb-container,.mat-slider-sliding .mat-slider-track-background,.mat-slider-sliding .mat-slider-track-fill{transition-duration:0s}.mat-slider-has-ticks .mat-slider-wrapper::after{content:'';position:absolute;border-width:0;border-style:solid;opacity:0;transition:opacity .4s cubic-bezier(.25,.8,.25,1)}.mat-slider-has-ticks.cdk-focused:not(.mat-slider-hide-last-tick) .mat-slider-wrapper::after,.mat-slider-has-ticks:hover:not(.mat-slider-hide-last-tick) .mat-slider-wrapper::after{opacity:1}.mat-slider-has-ticks.cdk-focused:not(.mat-slider-disabled) .mat-slider-ticks,.mat-slider-has-ticks:hover:not(.mat-slider-disabled) .mat-slider-ticks{opacity:1}.mat-slider-thumb-label-showing .mat-slider-focus-ring{display:none}.mat-slider-thumb-label-showing .mat-slider-thumb-label{display:flex}.mat-slider-axis-inverted .mat-slider-track-fill{transform-origin:100% 100%}.mat-slider-axis-inverted .mat-slider-track-background{transform-origin:0 0}.mat-slider:not(.mat-slider-disabled).cdk-focused.mat-slider-thumb-label-showing .mat-slider-thumb{transform:scale(0)}.mat-slider:not(.mat-slider-disabled).cdk-focused .mat-slider-thumb-label{border-radius:50% 50% 0}.mat-slider:not(.mat-slider-disabled).cdk-focused .mat-slider-thumb-label-text{opacity:1}.mat-slider:not(.mat-slider-disabled).cdk-mouse-focused .mat-slider-thumb,.mat-slider:not(.mat-slider-disabled).cdk-program-focused .mat-slider-thumb,.mat-slider:not(.mat-slider-disabled).cdk-touch-focused .mat-slider-thumb{border-width:2px;transform:scale(1)}.mat-slider-disabled .mat-slider-focus-ring{transform:scale(0);opacity:0}.mat-slider-disabled .mat-slider-thumb{border-width:4px;transform:scale(.5)}.mat-slider-disabled .mat-slider-thumb-label{display:none}.mat-slider-horizontal{height:48px;min-width:128px}.mat-slider-horizontal .mat-slider-wrapper{height:2px;top:23px;left:8px;right:8px}.mat-slider-horizontal .mat-slider-wrapper::after{height:2px;border-left-width:2px;right:0;top:0}.mat-slider-horizontal .mat-slider-track-wrapper{height:2px;width:100%}.mat-slider-horizontal .mat-slider-track-fill{height:2px;width:100%;transform:scaleX(0)}.mat-slider-horizontal .mat-slider-track-background{height:2px;width:100%;transform:scaleX(1)}.mat-slider-horizontal .mat-slider-ticks-container{height:2px;width:100%}@media (-ms-high-contrast:active){.mat-slider-horizontal .mat-slider-ticks-container{height:0;outline:solid 2px;top:1px}}.mat-slider-horizontal .mat-slider-ticks{height:2px;width:100%}.mat-slider-horizontal .mat-slider-thumb-container{width:100%;height:0;top:50%}.mat-slider-horizontal .mat-slider-focus-ring{top:-15px;right:-15px}.mat-slider-horizontal .mat-slider-thumb-label{right:-14px;top:-40px;transform:translateY(26px) scale(.01) rotate(45deg)}.mat-slider-horizontal .mat-slider-thumb-label-text{transform:rotate(-45deg)}.mat-slider-horizontal.cdk-focused .mat-slider-thumb-label{transform:rotate(45deg)}@media (-ms-high-contrast:active){.mat-slider-horizontal.cdk-focused .mat-slider-thumb-label,.mat-slider-horizontal.cdk-focused .mat-slider-thumb-label-text{transform:none}}.mat-slider-vertical{width:48px;min-height:128px}.mat-slider-vertical .mat-slider-wrapper{width:2px;top:8px;bottom:8px;left:23px}.mat-slider-vertical .mat-slider-wrapper::after{width:2px;border-top-width:2px;bottom:0;left:0}.mat-slider-vertical .mat-slider-track-wrapper{height:100%;width:2px}.mat-slider-vertical .mat-slider-track-fill{height:100%;width:2px;transform:scaleY(0)}.mat-slider-vertical .mat-slider-track-background{height:100%;width:2px;transform:scaleY(1)}.mat-slider-vertical .mat-slider-ticks-container{width:2px;height:100%}@media (-ms-high-contrast:active){.mat-slider-vertical .mat-slider-ticks-container{width:0;outline:solid 2px;left:1px}}.mat-slider-vertical .mat-slider-focus-ring{bottom:-15px;left:-15px}.mat-slider-vertical .mat-slider-ticks{width:2px;height:100%}.mat-slider-vertical .mat-slider-thumb-container{height:100%;width:0;left:50%}.mat-slider-vertical .mat-slider-thumb{-webkit-backface-visibility:hidden;backface-visibility:hidden}.mat-slider-vertical .mat-slider-thumb-label{bottom:-14px;left:-40px;transform:translateX(26px) scale(.01) rotate(-45deg)}.mat-slider-vertical .mat-slider-thumb-label-text{transform:rotate(45deg)}.mat-slider-vertical.cdk-focused .mat-slider-thumb-label{transform:rotate(-45deg)}[dir=rtl] .mat-slider-wrapper::after{left:0;right:auto}[dir=rtl] .mat-slider-horizontal .mat-slider-track-fill{transform-origin:100% 100%}[dir=rtl] .mat-slider-horizontal .mat-slider-track-background{transform-origin:0 0}[dir=rtl] .mat-slider-horizontal.mat-slider-axis-inverted .mat-slider-track-fill{transform-origin:0 0}[dir=rtl] .mat-slider-horizontal.mat-slider-axis-inverted .mat-slider-track-background{transform-origin:100% 100%}.mat-slider._mat-animation-noopable .mat-slider-focus-ring,.mat-slider._mat-animation-noopable .mat-slider-has-ticks .mat-slider-wrapper::after,.mat-slider._mat-animation-noopable .mat-slider-thumb,.mat-slider._mat-animation-noopable .mat-slider-thumb-container,.mat-slider._mat-animation-noopable .mat-slider-thumb-label,.mat-slider._mat-animation-noopable .mat-slider-thumb-label-text,.mat-slider._mat-animation-noopable .mat-slider-ticks,.mat-slider._mat-animation-noopable .mat-slider-track-background,.mat-slider._mat-animation-noopable .mat-slider-track-fill{transition:none}"],data:{}}));function o(t){return r.Lb(2,[r.Ib(671088640,1,{_sliderWrapper:0}),(t()(),r.sb(1,0,[[1,0],["sliderWrapper",1]],null,21,"div",[["class","mat-slider-wrapper"]],null,null,null,null,null)),(t()(),r.sb(2,0,null,null,6,"div",[["class","mat-slider-track-wrapper"]],null,null,null,null,null)),(t()(),r.sb(3,0,null,null,2,"div",[["class","mat-slider-track-background"]],null,null,null,null,null)),r.Hb(512,null,s.B,s.C,[r.k,r.s,r.D]),r.rb(5,278528,null,0,s.n,[s.B],{ngStyle:[0,"ngStyle"]},null),(t()(),r.sb(6,0,null,null,2,"div",[["class","mat-slider-track-fill"]],null,null,null,null,null)),r.Hb(512,null,s.B,s.C,[r.k,r.s,r.D]),r.rb(8,278528,null,0,s.n,[s.B],{ngStyle:[0,"ngStyle"]},null),(t()(),r.sb(9,0,null,null,5,"div",[["class","mat-slider-ticks-container"]],null,null,null,null,null)),r.Hb(512,null,s.B,s.C,[r.k,r.s,r.D]),r.rb(11,278528,null,0,s.n,[s.B],{ngStyle:[0,"ngStyle"]},null),(t()(),r.sb(12,0,null,null,2,"div",[["class","mat-slider-ticks"]],null,null,null,null,null)),r.Hb(512,null,s.B,s.C,[r.k,r.s,r.D]),r.rb(14,278528,null,0,s.n,[s.B],{ngStyle:[0,"ngStyle"]},null),(t()(),r.sb(15,0,null,null,7,"div",[["class","mat-slider-thumb-container"]],null,null,null,null,null)),r.Hb(512,null,s.B,s.C,[r.k,r.s,r.D]),r.rb(17,278528,null,0,s.n,[s.B],{ngStyle:[0,"ngStyle"]},null),(t()(),r.sb(18,0,null,null,0,"div",[["class","mat-slider-focus-ring"]],null,null,null,null,null)),(t()(),r.sb(19,0,null,null,0,"div",[["class","mat-slider-thumb"]],null,null,null,null,null)),(t()(),r.sb(20,0,null,null,2,"div",[["class","mat-slider-thumb-label"]],null,null,null,null,null)),(t()(),r.sb(21,0,null,null,1,"span",[["class","mat-slider-thumb-label-text"]],null,null,null,null,null)),(t()(),r.Kb(22,null,["",""]))],function(t,e){var n=e.component;t(e,5,0,n._trackBackgroundStyles),t(e,8,0,n._trackFillStyles),t(e,11,0,n._ticksContainerStyles),t(e,14,0,n._ticksStyles),t(e,17,0,n._thumbContainerStyles)},function(t,e){t(e,22,0,e.component.displayValue)})}},wZee:function t(e,n,i){var r=function(t){var e=/\blang(?:uage)?-([\w-]+)\b/i,n=0,i={manual:t.Prism&&t.Prism.manual,disableWorkerMessageHandler:t.Prism&&t.Prism.disableWorkerMessageHandler,util:{encode:function t(e){return e instanceof r?new r(e.type,i.util.encode(e.content),e.alias):Array.isArray(e)?e.map(i.util.encode):e.replace(/&/g,"&").replace(/e.length)return;if(!(w instanceof r)){if(p&&k!=n.length-1){if(m.lastIndex=y,!(C=m.exec(e)))break;for(var x=C.index+(g?C[1].length:0),E=C.index+C[0].length,I=k,F=y,A=n.length;I=(F+=n[I].length)&&(++k,y=F)}if(n[k]instanceof r)continue;D=I-k,w=e.slice(y,F),C.index-=y}else{m.lastIndex=0;var C=m.exec(w),D=1}if(C){g&&(b=C[1]?C[1].length:0),E=(x=C.index+b)+(C=C[0].slice(b)).length;var S=w.slice(0,x),T=w.slice(E),O=[k,D];S&&(++k,y+=S.length,O.push(S));var j=new r(c,f?i.tokenize(C,f):C,_,C,p);if(O.push(j),T&&O.push(T),Array.prototype.splice.apply(n,O),1!=D&&i.matchGrammar(e,n,s,k,y,!0,c),l)break}else if(l)break}}}}}},tokenize:function t(e,n){var r=[e],s=n.rest;if(s){for(var a in s){n[a]=s[a]}delete n.rest}return i.matchGrammar(e,r,n,0,0,!1),r},hooks:{all:{},add:function t(e,n){var r=i.hooks.all;r[e]=r[e]||[],r[e].push(n)},run:function t(e,n){var r=i.hooks.all[e];if(r&&r.length)for(var s,a=0;s=r[a++];){s(n)}}},Token:r};function r(t,e,n,i,r){this.type=t,this.content=e,this.alias=n,this.length=0|(i||"").length,this.greedy=!!r}if(t.Prism=i,r.stringify=function(t,e){if("string"==typeof t)return t;if(Array.isArray(t))return t.map(function(t){return r.stringify(t,e)}).join("");var n={type:t.type,content:r.stringify(t.content,e),tag:"span",classes:["token",t.type],attributes:{},language:e};if(t.alias){var s=Array.isArray(t.alias)?t.alias:[t.alias];Array.prototype.push.apply(n.classes,s)}i.hooks.run("wrap",n);var a=Object.keys(n.attributes).map(function(t){return t+'="'+(n.attributes[t]||"").replace(/"/g,""")+'"'}).join(" ");return"<"+n.tag+' class="'+n.classes.join(" ")+'"'+(a?" "+a:"")+">"+n.content+""},!t.document)return t.addEventListener?(i.disableWorkerMessageHandler||t.addEventListener("message",function(e){var n=JSON.parse(e.data),r=n.language,s=n.immediateClose;t.postMessage(i.highlight(n.code,i.languages[r],r)),s&&t.close()},!1),i):i;var s=document.currentScript||[].slice.call(document.getElementsByTagName("script")).pop();return s&&(i.filename=s.src,i.manual||s.hasAttribute("data-manual")||("loading"!==document.readyState?window.requestAnimationFrame?window.requestAnimationFrame(i.highlightAll):window.setTimeout(i.highlightAll,16):document.addEventListener("DOMContentLoaded",i.highlightAll))),i}("undefined"!=typeof window?window:"undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope?self:{});e.exports&&(e.exports=r),"undefined"!=typeof global&&(global.Prism=r),r.languages.markup={comment://,prolog:/<\?[\s\S]+?\?>/,doctype://i,cdata://i,tag:{pattern:/<\/?(?!\d)[^\s>\/=$<%]+(?:\s(?:\s*[^\s>\/=]+(?:\s*=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+(?=[\s>]))|(?=[\s\/>])))+)?\s*\/?>/i,greedy:!0,inside:{tag:{pattern:/^<\/?[^\s>\/]+/i,inside:{punctuation:/^<\/?/,namespace:/^[^\s>\/:]+:/}},"attr-value":{pattern:/=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+)/i,inside:{punctuation:[/^=/,{pattern:/^(\s*)["']|["']$/,lookbehind:!0}]}},punctuation:/\/?>/,"attr-name":{pattern:/[^\s>\/]+/,inside:{namespace:/^[^\s>\/:]+:/}}}},entity:/&#?[\da-z]{1,8};/i},r.languages.markup.tag.inside["attr-value"].inside.entity=r.languages.markup.entity,r.hooks.add("wrap",function(t){"entity"===t.type&&(t.attributes.title=t.content.replace(/&/,"&"))}),Object.defineProperty(r.languages.markup.tag,"addInlined",{value:function t(e,n){var i={};i["language-"+n]={pattern:/(^$)/i,lookbehind:!0,inside:r.languages[n]},i.cdata=/^$/i;var s={"included-cdata":{pattern://i,inside:i}};s["language-"+n]={pattern:/[\s\S]+/,inside:r.languages[n]};var a={};a[e]={pattern:RegExp(/(<__[\s\S]*?>)(?:\s*|[\s\S])*?(?=<\/__>)/.source.replace(/__/g,e),"i"),lookbehind:!0,greedy:!0,inside:s},r.languages.insertBefore("markup","cdata",a)}}),r.languages.xml=r.languages.extend("markup",{}),r.languages.html=r.languages.markup,r.languages.mathml=r.languages.markup,r.languages.svg=r.languages.markup,function(t){var e=/("|')(?:\\(?:\r\n|[\s\S])|(?!\1)[^\\\r\n])*\1/;t.languages.css={comment:/\/\*[\s\S]*?\*\//,atrule:{pattern:/@[\w-]+[\s\S]*?(?:;|(?=\s*\{))/,inside:{rule:/@[\w-]+/}},url:{pattern:RegExp("url\\((?:"+e.source+"|[^\n\r()]*)\\)","i"),inside:{function:/^url/i,punctuation:/^\(|\)$/}},selector:RegExp("[^{}\\s](?:[^{};\"']|"+e.source+")*?(?=\\s*\\{)"),string:{pattern:e,greedy:!0},property:/[-_a-z\xA0-\uFFFF][-\w\xA0-\uFFFF]*(?=\s*:)/i,important:/!important\b/i,function:/[-a-z0-9]+(?=\()/i,punctuation:/[(){};:,]/},t.languages.css.atrule.inside.rest=t.languages.css;var n=t.languages.markup;n&&(n.tag.addInlined("style","css"),t.languages.insertBefore("inside","attr-value",{"style-attr":{pattern:/\s*style=("|')(?:\\[\s\S]|(?!\1)[^\\])*\1/i,inside:{"attr-name":{pattern:/^\s*style/i,inside:n.tag.inside},punctuation:/^\s*=\s*['"]|['"]\s*$/,"attr-value":{pattern:/.+/i,inside:t.languages.css}},alias:"language-css"}},n.tag))}(r),r.languages.clike={comment:[{pattern:/(^|[^\\])\/\*[\s\S]*?(?:\*\/|$)/,lookbehind:!0},{pattern:/(^|[^\\:])\/\/.*/,lookbehind:!0,greedy:!0}],string:{pattern:/(["'])(?:\\(?:\r\n|[\s\S])|(?!\1)[^\\\r\n])*\1/,greedy:!0},"class-name":{pattern:/((?:\b(?:class|interface|extends|implements|trait|instanceof|new)\s+)|(?:catch\s+\())[\w.\\]+/i,lookbehind:!0,inside:{punctuation:/[.\\]/}},keyword:/\b(?:if|else|while|do|for|return|in|instanceof|function|new|try|throw|catch|finally|null|break|continue)\b/,boolean:/\b(?:true|false)\b/,function:/\w+(?=\()/,number:/\b0x[\da-f]+\b|(?:\b\d+\.?\d*|\B\.\d+)(?:e[+-]?\d+)?/i,operator:/--?|\+\+?|!=?=?|<=?|>=?|==?=?|&&?|\|\|?|\?|\*|\/|~|\^|%/,punctuation:/[{}[\];(),.:]/},r.languages.javascript=r.languages.extend("clike",{"class-name":[r.languages.clike["class-name"],{pattern:/(^|[^$\w\xA0-\uFFFF])[_$A-Z\xA0-\uFFFF][$\w\xA0-\uFFFF]*(?=\.(?:prototype|constructor))/,lookbehind:!0}],keyword:[{pattern:/((?:^|})\s*)(?:catch|finally)\b/,lookbehind:!0},{pattern:/(^|[^.])\b(?:as|async(?=\s*(?:function\b|\(|[$\w\xA0-\uFFFF]|$))|await|break|case|class|const|continue|debugger|default|delete|do|else|enum|export|extends|for|from|function|get|if|implements|import|in|instanceof|interface|let|new|null|of|package|private|protected|public|return|set|static|super|switch|this|throw|try|typeof|undefined|var|void|while|with|yield)\b/,lookbehind:!0}],number:/\b(?:(?:0[xX](?:[\dA-Fa-f](?:_[\dA-Fa-f])?)+|0[bB](?:[01](?:_[01])?)+|0[oO](?:[0-7](?:_[0-7])?)+)n?|(?:\d(?:_\d)?)+n|NaN|Infinity)\b|(?:\b(?:\d(?:_\d)?)+\.?(?:\d(?:_\d)?)*|\B\.(?:\d(?:_\d)?)+)(?:[Ee][+-]?(?:\d(?:_\d)?)+)?/,function:/#?[_$a-zA-Z\xA0-\uFFFF][$\w\xA0-\uFFFF]*(?=\s*(?:\.\s*(?:apply|bind|call)\s*)?\()/,operator:/-[-=]?|\+[+=]?|!=?=?|<>?>?=?|=(?:==?|>)?|&[&=]?|\|[|=]?|\*\*?=?|\/=?|~|\^=?|%=?|\?|\.{3}/}),r.languages.javascript["class-name"][0].pattern=/(\b(?:class|interface|extends|implements|instanceof|new)\s+)[\w.\\]+/,r.languages.insertBefore("javascript","keyword",{regex:{pattern:/((?:^|[^$\w\xA0-\uFFFF."'\])\s])\s*)\/(\[(?:[^\]\\\r\n]|\\.)*]|\\.|[^\/\\\[\r\n])+\/[gimyus]{0,6}(?=\s*($|[\r\n,.;})\]]))/,lookbehind:!0,greedy:!0},"function-variable":{pattern:/#?[_$a-zA-Z\xA0-\uFFFF][$\w\xA0-\uFFFF]*(?=\s*[=:]\s*(?:async\s*)?(?:\bfunction\b|(?:\((?:[^()]|\([^()]*\))*\)|[_$a-zA-Z\xA0-\uFFFF][$\w\xA0-\uFFFF]*)\s*=>))/,alias:"function"},parameter:[{pattern:/(function(?:\s+[_$A-Za-z\xA0-\uFFFF][$\w\xA0-\uFFFF]*)?\s*\(\s*)(?!\s)(?:[^()]|\([^()]*\))+?(?=\s*\))/,lookbehind:!0,inside:r.languages.javascript},{pattern:/[_$a-z\xA0-\uFFFF][$\w\xA0-\uFFFF]*(?=\s*=>)/i,inside:r.languages.javascript},{pattern:/(\(\s*)(?!\s)(?:[^()]|\([^()]*\))+?(?=\s*\)\s*=>)/,lookbehind:!0,inside:r.languages.javascript},{pattern:/((?:\b|\s|^)(?!(?:as|async|await|break|case|catch|class|const|continue|debugger|default|delete|do|else|enum|export|extends|finally|for|from|function|get|if|implements|import|in|instanceof|interface|let|new|null|of|package|private|protected|public|return|set|static|super|switch|this|throw|try|typeof|undefined|var|void|while|with|yield)(?![$\w\xA0-\uFFFF]))(?:[_$A-Za-z\xA0-\uFFFF][$\w\xA0-\uFFFF]*\s*)\(\s*)(?!\s)(?:[^()]|\([^()]*\))+?(?=\s*\)\s*\{)/,lookbehind:!0,inside:r.languages.javascript}],constant:/\b[A-Z](?:[A-Z_]|\dx?)*\b/}),r.languages.insertBefore("javascript","string",{"template-string":{pattern:/`(?:\\[\s\S]|\${(?:[^{}]|{(?:[^{}]|{[^}]*})*})+}|(?!\${)[^\\`])*`/,greedy:!0,inside:{"template-punctuation":{pattern:/^`|`$/,alias:"string"},interpolation:{pattern:/((?:^|[^\\])(?:\\{2})*)\${(?:[^{}]|{(?:[^{}]|{[^}]*})*})+}/,lookbehind:!0,inside:{"interpolation-punctuation":{pattern:/^\${|}$/,alias:"punctuation"},rest:r.languages.javascript}},string:/[\s\S]+/}}}),r.languages.markup&&r.languages.markup.tag.addInlined("script","javascript"),r.languages.js=r.languages.javascript,"undefined"!=typeof self&&self.Prism&&self.document&&document.querySelector&&(self.Prism.fileHighlight=function(t){t=t||document;var e={js:"javascript",py:"python",rb:"ruby",ps1:"powershell",psm1:"powershell",sh:"bash",bat:"batch",h:"c",tex:"latex"};Array.prototype.slice.call(t.querySelectorAll("pre[data-src]")).forEach(function(t){if(!t.hasAttribute("data-src-loaded")){for(var n,i=t.getAttribute("data-src"),s=t,a=/\blang(?:uage)?-([\w-]+)\b/i;s&&!a.test(s.className);){s=s.parentNode}if(s&&(n=(t.className.match(a)||[,""])[1]),!n){var o=(i.match(/\.(\w+)$/)||[,""])[1];n=e[o]||o}var l=document.createElement("code");l.className="language-"+n,t.textContent="",l.textContent="Loading\u2026",t.appendChild(l);var u=new XMLHttpRequest;u.open("GET",i,!0),u.onreadystatechange=function(){4==u.readyState&&(u.status<400&&u.responseText?(l.textContent=u.responseText,r.highlightElement(l),t.setAttribute("data-src-loaded","")):l.textContent=u.status>=400?"\u2716 Error "+u.status+" while fetching file: "+u.statusText:"\u2716 Error: File does not exist or is empty")},u.send(null)}}),r.plugins.toolbar&&r.plugins.toolbar.registerButton("download-file",function(t){var e=t.element.parentNode;if(e&&/pre/i.test(e.nodeName)&&e.hasAttribute("data-src")&&e.hasAttribute("data-download-link")){var n=e.getAttribute("data-src"),i=document.createElement("a");return i.textContent=e.getAttribute("data-download-link-label")||"Download",i.setAttribute("download",""),i.href=n,i}})},document.addEventListener("DOMContentLoaded",function(){self.Prism.fileHighlight()}))}}]); \ No newline at end of file diff --git a/3rdpartylicenses.txt b/3rdpartylicenses.txt new file mode 100644 index 0000000..836b616 --- /dev/null +++ b/3rdpartylicenses.txt @@ -0,0 +1,484 @@ +@angular-devkit/build-angular +MIT +The MIT License + +Copyright (c) 2017 Google, Inc. + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +SOFTWARE. + + +@angular/animations +MIT + +@angular/cdk +MIT +The MIT License + +Copyright (c) 2019 Google LLC. + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in +all copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN +THE SOFTWARE. + + +@angular/common +MIT + +@angular/core +MIT + +@angular/forms +MIT + +@angular/material +MIT +The MIT License + +Copyright (c) 2019 Google LLC. + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in +all copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN +THE SOFTWARE. + + +@angular/material/radio + +@angular/material/slider + +@angular/platform-browser +MIT + +@angular/router +MIT + +@ng-bootstrap/ng-bootstrap +MIT +The MIT License (MIT) + +Copyright (c) 2015-2018 Angular ng-bootstrap team + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in +all copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN +THE SOFTWARE. + + +bootstrap +MIT +The MIT License (MIT) + +Copyright (c) 2011-2019 Twitter, Inc. +Copyright (c) 2011-2019 The Bootstrap Authors + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in +all copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN +THE SOFTWARE. + + +core-js +MIT +Copyright (c) 2014-2019 Denis Pushkarev + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in +all copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN +THE SOFTWARE. + + +prismjs +MIT +MIT LICENSE + +Copyright (c) 2012 Lea Verou + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in +all copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN +THE SOFTWARE. + + +rxjs +Apache-2.0 + Apache License + Version 2.0, January 2004 + http://www.apache.org/licenses/ + + TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION + + 1. Definitions. + + "License" shall mean the terms and conditions for use, reproduction, + and distribution as defined by Sections 1 through 9 of this document. + + "Licensor" shall mean the copyright owner or entity authorized by + the copyright owner that is granting the License. + + "Legal Entity" shall mean the union of the acting entity and all + other entities that control, are controlled by, or are under common + control with that entity. For the purposes of this definition, + "control" means (i) the power, direct or indirect, to cause the + direction or management of such entity, whether by contract or + otherwise, or (ii) ownership of fifty percent (50%) or more of the + outstanding shares, or (iii) beneficial ownership of such entity. + + "You" (or "Your") shall mean an individual or Legal Entity + exercising permissions granted by this License. + + "Source" form shall mean the preferred form for making modifications, + including but not limited to software source code, documentation + source, and configuration files. + + "Object" form shall mean any form resulting from mechanical + transformation or translation of a Source form, including but + not limited to compiled object code, generated documentation, + and conversions to other media types. + + "Work" shall mean the work of authorship, whether in Source or + Object form, made available under the License, as indicated by a + copyright notice that is included in or attached to the work + (an example is provided in the Appendix below). + + "Derivative Works" shall mean any work, whether in Source or Object + form, that is based on (or derived from) the Work and for which the + editorial revisions, annotations, elaborations, or other modifications + represent, as a whole, an original work of authorship. For the purposes + of this License, Derivative Works shall not include works that remain + separable from, or merely link (or bind by name) to the interfaces of, + the Work and Derivative Works thereof. + + "Contribution" shall mean any work of authorship, including + the original version of the Work and any modifications or additions + to that Work or Derivative Works thereof, that is intentionally + submitted to Licensor for inclusion in the Work by the copyright owner + or by an individual or Legal Entity authorized to submit on behalf of + the copyright owner. For the purposes of this definition, "submitted" + means any form of electronic, verbal, or written communication sent + to the Licensor or its representatives, including but not limited to + communication on electronic mailing lists, source code control systems, + and issue tracking systems that are managed by, or on behalf of, the + Licensor for the purpose of discussing and improving the Work, but + excluding communication that is conspicuously marked or otherwise + designated in writing by the copyright owner as "Not a Contribution." + + "Contributor" shall mean Licensor and any individual or Legal Entity + on behalf of whom a Contribution has been received by Licensor and + subsequently incorporated within the Work. + + 2. Grant of Copyright License. Subject to the terms and conditions of + this License, each Contributor hereby grants to You a perpetual, + worldwide, non-exclusive, no-charge, royalty-free, irrevocable + copyright license to reproduce, prepare Derivative Works of, + publicly display, publicly perform, sublicense, and distribute the + Work and such Derivative Works in Source or Object form. + + 3. Grant of Patent License. Subject to the terms and conditions of + this License, each Contributor hereby grants to You a perpetual, + worldwide, non-exclusive, no-charge, royalty-free, irrevocable + (except as stated in this section) patent license to make, have made, + use, offer to sell, sell, import, and otherwise transfer the Work, + where such license applies only to those patent claims licensable + by such Contributor that are necessarily infringed by their + Contribution(s) alone or by combination of their Contribution(s) + with the Work to which such Contribution(s) was submitted. If You + institute patent litigation against any entity (including a + cross-claim or counterclaim in a lawsuit) alleging that the Work + or a Contribution incorporated within the Work constitutes direct + or contributory patent infringement, then any patent licenses + granted to You under this License for that Work shall terminate + as of the date such litigation is filed. + + 4. Redistribution. You may reproduce and distribute copies of the + Work or Derivative Works thereof in any medium, with or without + modifications, and in Source or Object form, provided that You + meet the following conditions: + + (a) You must give any other recipients of the Work or + Derivative Works a copy of this License; and + + (b) You must cause any modified files to carry prominent notices + stating that You changed the files; and + + (c) You must retain, in the Source form of any Derivative Works + that You distribute, all copyright, patent, trademark, and + attribution notices from the Source form of the Work, + excluding those notices that do not pertain to any part of + the Derivative Works; and + + (d) If the Work includes a "NOTICE" text file as part of its + distribution, then any Derivative Works that You distribute must + include a readable copy of the attribution notices contained + within such NOTICE file, excluding those notices that do not + pertain to any part of the Derivative Works, in at least one + of the following places: within a NOTICE text file distributed + as part of the Derivative Works; within the Source form or + documentation, if provided along with the Derivative Works; or, + within a display generated by the Derivative Works, if and + wherever such third-party notices normally appear. The contents + of the NOTICE file are for informational purposes only and + do not modify the License. You may add Your own attribution + notices within Derivative Works that You distribute, alongside + or as an addendum to the NOTICE text from the Work, provided + that such additional attribution notices cannot be construed + as modifying the License. + + You may add Your own copyright statement to Your modifications and + may provide additional or different license terms and conditions + for use, reproduction, or distribution of Your modifications, or + for any such Derivative Works as a whole, provided Your use, + reproduction, and distribution of the Work otherwise complies with + the conditions stated in this License. + + 5. Submission of Contributions. Unless You explicitly state otherwise, + any Contribution intentionally submitted for inclusion in the Work + by You to the Licensor shall be under the terms and conditions of + this License, without any additional terms or conditions. + Notwithstanding the above, nothing herein shall supersede or modify + the terms of any separate license agreement you may have executed + with Licensor regarding such Contributions. + + 6. Trademarks. This License does not grant permission to use the trade + names, trademarks, service marks, or product names of the Licensor, + except as required for reasonable and customary use in describing the + origin of the Work and reproducing the content of the NOTICE file. + + 7. Disclaimer of Warranty. Unless required by applicable law or + agreed to in writing, Licensor provides the Work (and each + Contributor provides its Contributions) on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or + implied, including, without limitation, any warranties or conditions + of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A + PARTICULAR PURPOSE. You are solely responsible for determining the + appropriateness of using or redistributing the Work and assume any + risks associated with Your exercise of permissions under this License. + + 8. Limitation of Liability. In no event and under no legal theory, + whether in tort (including negligence), contract, or otherwise, + unless required by applicable law (such as deliberate and grossly + negligent acts) or agreed to in writing, shall any Contributor be + liable to You for damages, including any direct, indirect, special, + incidental, or consequential damages of any character arising as a + result of this License or out of the use or inability to use the + Work (including but not limited to damages for loss of goodwill, + work stoppage, computer failure or malfunction, or any and all + other commercial damages or losses), even if such Contributor + has been advised of the possibility of such damages. + + 9. Accepting Warranty or Additional Liability. While redistributing + the Work or Derivative Works thereof, You may choose to offer, + and charge a fee for, acceptance of support, warranty, indemnity, + or other liability obligations and/or rights consistent with this + License. However, in accepting such obligations, You may act only + on Your own behalf and on Your sole responsibility, not on behalf + of any other Contributor, and only if You agree to indemnify, + defend, and hold each Contributor harmless for any liability + incurred by, or claims asserted against, such Contributor by reason + of your accepting any such warranty or additional liability. + + END OF TERMS AND CONDITIONS + + APPENDIX: How to apply the Apache License to your work. + + To apply the Apache License to your work, attach the following + boilerplate notice, with the fields enclosed by brackets "[]" + replaced with your own identifying information. (Don't include + the brackets!) The text should be enclosed in the appropriate + comment syntax for the file format. We also recommend that a + file or class name and description of purpose be included on the + same "printed page" as the copyright notice for easier + identification within third-party archives. + + Copyright (c) 2015-2018 Google, Inc., Netflix, Inc., Microsoft Corp. and contributors + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. + + + +tslib +Apache-2.0 +Apache License + +Version 2.0, January 2004 + +http://www.apache.org/licenses/ + +TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION + +1. Definitions. + +"License" shall mean the terms and conditions for use, reproduction, and distribution as defined by Sections 1 through 9 of this document. + +"Licensor" shall mean the copyright owner or entity authorized by the copyright owner that is granting the License. + +"Legal Entity" shall mean the union of the acting entity and all other entities that control, are controlled by, or are under common control with that entity. For the purposes of this definition, "control" means (i) the power, direct or indirect, to cause the direction or management of such entity, whether by contract or otherwise, or (ii) ownership of fifty percent (50%) or more of the outstanding shares, or (iii) beneficial ownership of such entity. + +"You" (or "Your") shall mean an individual or Legal Entity exercising permissions granted by this License. + +"Source" form shall mean the preferred form for making modifications, including but not limited to software source code, documentation source, and configuration files. + +"Object" form shall mean any form resulting from mechanical transformation or translation of a Source form, including but not limited to compiled object code, generated documentation, and conversions to other media types. + +"Work" shall mean the work of authorship, whether in Source or Object form, made available under the License, as indicated by a copyright notice that is included in or attached to the work (an example is provided in the Appendix below). + +"Derivative Works" shall mean any work, whether in Source or Object form, that is based on (or derived from) the Work and for which the editorial revisions, annotations, elaborations, or other modifications represent, as a whole, an original work of authorship. For the purposes of this License, Derivative Works shall not include works that remain separable from, or merely link (or bind by name) to the interfaces of, the Work and Derivative Works thereof. + +"Contribution" shall mean any work of authorship, including the original version of the Work and any modifications or additions to that Work or Derivative Works thereof, that is intentionally submitted to Licensor for inclusion in the Work by the copyright owner or by an individual or Legal Entity authorized to submit on behalf of the copyright owner. For the purposes of this definition, "submitted" means any form of electronic, verbal, or written communication sent to the Licensor or its representatives, including but not limited to communication on electronic mailing lists, source code control systems, and issue tracking systems that are managed by, or on behalf of, the Licensor for the purpose of discussing and improving the Work, but excluding communication that is conspicuously marked or otherwise designated in writing by the copyright owner as "Not a Contribution." + +"Contributor" shall mean Licensor and any individual or Legal Entity on behalf of whom a Contribution has been received by Licensor and subsequently incorporated within the Work. + +2. Grant of Copyright License. Subject to the terms and conditions of this License, each Contributor hereby grants to You a perpetual, worldwide, non-exclusive, no-charge, royalty-free, irrevocable copyright license to reproduce, prepare Derivative Works of, publicly display, publicly perform, sublicense, and distribute the Work and such Derivative Works in Source or Object form. + +3. Grant of Patent License. Subject to the terms and conditions of this License, each Contributor hereby grants to You a perpetual, worldwide, non-exclusive, no-charge, royalty-free, irrevocable (except as stated in this section) patent license to make, have made, use, offer to sell, sell, import, and otherwise transfer the Work, where such license applies only to those patent claims licensable by such Contributor that are necessarily infringed by their Contribution(s) alone or by combination of their Contribution(s) with the Work to which such Contribution(s) was submitted. If You institute patent litigation against any entity (including a cross-claim or counterclaim in a lawsuit) alleging that the Work or a Contribution incorporated within the Work constitutes direct or contributory patent infringement, then any patent licenses granted to You under this License for that Work shall terminate as of the date such litigation is filed. + +4. Redistribution. You may reproduce and distribute copies of the Work or Derivative Works thereof in any medium, with or without modifications, and in Source or Object form, provided that You meet the following conditions: + +You must give any other recipients of the Work or Derivative Works a copy of this License; and + +You must cause any modified files to carry prominent notices stating that You changed the files; and + +You must retain, in the Source form of any Derivative Works that You distribute, all copyright, patent, trademark, and attribution notices from the Source form of the Work, excluding those notices that do not pertain to any part of the Derivative Works; and + +If the Work includes a "NOTICE" text file as part of its distribution, then any Derivative Works that You distribute must include a readable copy of the attribution notices contained within such NOTICE file, excluding those notices that do not pertain to any part of the Derivative Works, in at least one of the following places: within a NOTICE text file distributed as part of the Derivative Works; within the Source form or documentation, if provided along with the Derivative Works; or, within a display generated by the Derivative Works, if and wherever such third-party notices normally appear. The contents of the NOTICE file are for informational purposes only and do not modify the License. You may add Your own attribution notices within Derivative Works that You distribute, alongside or as an addendum to the NOTICE text from the Work, provided that such additional attribution notices cannot be construed as modifying the License. You may add Your own copyright statement to Your modifications and may provide additional or different license terms and conditions for use, reproduction, or distribution of Your modifications, or for any such Derivative Works as a whole, provided Your use, reproduction, and distribution of the Work otherwise complies with the conditions stated in this License. + +5. Submission of Contributions. Unless You explicitly state otherwise, any Contribution intentionally submitted for inclusion in the Work by You to the Licensor shall be under the terms and conditions of this License, without any additional terms or conditions. Notwithstanding the above, nothing herein shall supersede or modify the terms of any separate license agreement you may have executed with Licensor regarding such Contributions. + +6. Trademarks. This License does not grant permission to use the trade names, trademarks, service marks, or product names of the Licensor, except as required for reasonable and customary use in describing the origin of the Work and reproducing the content of the NOTICE file. + +7. Disclaimer of Warranty. Unless required by applicable law or agreed to in writing, Licensor provides the Work (and each Contributor provides its Contributions) on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied, including, without limitation, any warranties or conditions of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A PARTICULAR PURPOSE. You are solely responsible for determining the appropriateness of using or redistributing the Work and assume any risks associated with Your exercise of permissions under this License. + +8. Limitation of Liability. In no event and under no legal theory, whether in tort (including negligence), contract, or otherwise, unless required by applicable law (such as deliberate and grossly negligent acts) or agreed to in writing, shall any Contributor be liable to You for damages, including any direct, indirect, special, incidental, or consequential damages of any character arising as a result of this License or out of the use or inability to use the Work (including but not limited to damages for loss of goodwill, work stoppage, computer failure or malfunction, or any and all other commercial damages or losses), even if such Contributor has been advised of the possibility of such damages. + +9. Accepting Warranty or Additional Liability. While redistributing the Work or Derivative Works thereof, You may choose to offer, and charge a fee for, acceptance of support, warranty, indemnity, or other liability obligations and/or rights consistent with this License. However, in accepting such obligations, You may act only on Your own behalf and on Your sole responsibility, not on behalf of any other Contributor, and only if You agree to indemnify, defend, and hold each Contributor harmless for any liability incurred by, or claims asserted against, such Contributor by reason of your accepting any such warranty or additional liability. + +END OF TERMS AND CONDITIONS + + +zone.js +MIT +The MIT License + +Copyright (c) 2016-2018 Google, Inc. + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in +all copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN +THE SOFTWARE. diff --git a/404.html b/404.html new file mode 100644 index 0000000..a613b25 --- /dev/null +++ b/404.html @@ -0,0 +1,14 @@ + + + + + AlgorithmsVisualizer + + + + + + + + + diff --git a/6-es2015.6100aba97d9d2e278473.js b/6-es2015.6100aba97d9d2e278473.js new file mode 100644 index 0000000..18a9b23 --- /dev/null +++ b/6-es2015.6100aba97d9d2e278473.js @@ -0,0 +1 @@ +(window.webpackJsonp=window.webpackJsonp||[]).push([[6],{FvzE:function(l,n,e){"use strict";e.r(n);var t=e("8Y7J");class i{}var a=e("pMnS"),s=e("s7LF"),o=e("iInd"),r=e("SVse"),u=e("uM4N"),d=e("lT8R"),c=e("5GAg"),h=e("IP0z"),b=e("omvX"),m=e("KCVW"),p=e("Xd0L");const g=new t.p("mat-radio-default-options",{providedIn:"root",factory:function(){return{color:"accent"}}});let v=0;class f{constructor(l,n){this.source=l,this.value=n}}class E{constructor(l){this._changeDetector=l,this._value=null,this._name=`mat-radio-group-${v++}`,this._selected=null,this._isInitialized=!1,this._labelPosition="after",this._disabled=!1,this._required=!1,this._controlValueAccessorChangeFn=()=>{},this.onTouched=()=>{},this.change=new t.m}get name(){return this._name}set name(l){this._name=l,this._updateRadioButtonNames()}get labelPosition(){return this._labelPosition}set labelPosition(l){this._labelPosition="before"===l?"before":"after",this._markRadiosForCheck()}get value(){return this._value}set value(l){this._value!==l&&(this._value=l,this._updateSelectedRadioFromValue(),this._checkSelectedRadioButton())}_checkSelectedRadioButton(){this._selected&&!this._selected.checked&&(this._selected.checked=!0)}get selected(){return this._selected}set selected(l){this._selected=l,this.value=l?l.value:null,this._checkSelectedRadioButton()}get disabled(){return this._disabled}set disabled(l){this._disabled=Object(m.a)(l),this._markRadiosForCheck()}get required(){return this._required}set required(l){this._required=Object(m.a)(l),this._markRadiosForCheck()}ngAfterContentInit(){this._isInitialized=!0}_touch(){this.onTouched&&this.onTouched()}_updateRadioButtonNames(){this._radios&&this._radios.forEach(l=>{l.name=this.name,l._markForCheck()})}_updateSelectedRadioFromValue(){this._radios&&(null===this._selected||this._selected.value!==this._value)&&(this._selected=null,this._radios.forEach(l=>{l.checked=this.value===l.value,l.checked&&(this._selected=l)}))}_emitChangeEvent(){this._isInitialized&&this.change.emit(new f(this._selected,this._value))}_markRadiosForCheck(){this._radios&&this._radios.forEach(l=>l._markForCheck())}writeValue(l){this.value=l,this._changeDetector.markForCheck()}registerOnChange(l){this._controlValueAccessorChangeFn=l}registerOnTouched(l){this.onTouched=l}setDisabledState(l){this.disabled=l,this._changeDetector.markForCheck()}}class C{constructor(l){this._elementRef=l}}const _=Object(p.i)(Object(p.k)(C));class k extends _{constructor(l,n,e,i,a,s,o){super(n),this._changeDetector=e,this._focusMonitor=i,this._radioDispatcher=a,this._animationMode=s,this._providerOverride=o,this._uniqueId=`mat-radio-${++v}`,this.id=this._uniqueId,this.change=new t.m,this._checked=!1,this._value=null,this._removeUniqueSelectionListener=()=>{},this.radioGroup=l,this._removeUniqueSelectionListener=a.listen((l,n)=>{l!==this.id&&n===this.name&&(this.checked=!1)})}get checked(){return this._checked}set checked(l){const n=Object(m.a)(l);this._checked!==n&&(this._checked=n,n&&this.radioGroup&&this.radioGroup.value!==this.value?this.radioGroup.selected=this:!n&&this.radioGroup&&this.radioGroup.value===this.value&&(this.radioGroup.selected=null),n&&this._radioDispatcher.notify(this.id,this.name),this._changeDetector.markForCheck())}get value(){return this._value}set value(l){this._value!==l&&(this._value=l,null!==this.radioGroup&&(this.checked||(this.checked=this.radioGroup.value===l),this.checked&&(this.radioGroup.selected=this)))}get labelPosition(){return this._labelPosition||this.radioGroup&&this.radioGroup.labelPosition||"after"}set labelPosition(l){this._labelPosition=l}get disabled(){return this._disabled||null!==this.radioGroup&&this.radioGroup.disabled}set disabled(l){const n=Object(m.a)(l);this._disabled!==n&&(this._disabled=n,this._changeDetector.markForCheck())}get required(){return this._required||this.radioGroup&&this.radioGroup.required}set required(l){this._required=Object(m.a)(l)}get color(){return this._color||this.radioGroup&&this.radioGroup.color||this._providerOverride&&this._providerOverride.color||"accent"}set color(l){this._color=l}get inputId(){return`${this.id||this._uniqueId}-input`}focus(l){this._focusMonitor.focusVia(this._inputElement,"keyboard",l)}_markForCheck(){this._changeDetector.markForCheck()}ngOnInit(){this.radioGroup&&(this.checked=this.radioGroup.value===this._value,this.name=this.radioGroup.name)}ngAfterViewInit(){this._focusMonitor.monitor(this._elementRef,!0).subscribe(l=>{!l&&this.radioGroup&&this.radioGroup._touch()})}ngOnDestroy(){this._focusMonitor.stopMonitoring(this._elementRef),this._removeUniqueSelectionListener()}_emitChangeEvent(){this.change.emit(new f(this,this._value))}_isRippleDisabled(){return this.disableRipple||this.disabled}_onInputClick(l){l.stopPropagation()}_onInputChange(l){l.stopPropagation();const n=this.radioGroup&&this.value!==this.radioGroup.value;this.checked=!0,this._emitChangeEvent(),this.radioGroup&&(this.radioGroup._controlValueAccessorChangeFn(this.value),n&&this.radioGroup._emitChangeEvent())}}class x{}var w=e("cUpR"),y=e("/HVE");e("HDdC"),e("LRne"),e("XNiG");let M=(()=>{class l{constructor(){this._listeners=[]}notify(l,n){for(let e of this._listeners)e(l,n)}listen(l){return this._listeners.push(l),()=>{this._listeners=this._listeners.filter(n=>l!==n)}}ngOnDestroy(){this._listeners=[]}}return l.ngInjectableDef=Object(t.Pb)({factory:function(){return new l},token:l,providedIn:"root"}),l})();var S=t.qb({encapsulation:2,styles:[".mat-radio-button{display:inline-block;-webkit-tap-highlight-color:transparent;outline:0}.mat-radio-label{-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;cursor:pointer;display:inline-flex;align-items:center;white-space:nowrap;vertical-align:middle;width:100%}.mat-radio-container{box-sizing:border-box;display:inline-block;position:relative;width:20px;height:20px;flex-shrink:0}.mat-radio-outer-circle{box-sizing:border-box;height:20px;left:0;position:absolute;top:0;transition:border-color ease 280ms;width:20px;border-width:2px;border-style:solid;border-radius:50%}._mat-animation-noopable .mat-radio-outer-circle{transition:none}.mat-radio-inner-circle{border-radius:50%;box-sizing:border-box;height:20px;left:0;position:absolute;top:0;transition:transform ease 280ms,background-color ease 280ms;width:20px;transform:scale(.001)}._mat-animation-noopable .mat-radio-inner-circle{transition:none}.mat-radio-checked .mat-radio-inner-circle{transform:scale(.5)}@media (-ms-high-contrast:active){.mat-radio-checked .mat-radio-inner-circle{border:solid 10px}}.mat-radio-label-content{-webkit-user-select:auto;-moz-user-select:auto;-ms-user-select:auto;user-select:auto;display:inline-block;order:0;line-height:inherit;padding-left:8px;padding-right:0}[dir=rtl] .mat-radio-label-content{padding-right:8px;padding-left:0}.mat-radio-label-content.mat-radio-label-before{order:-1;padding-left:0;padding-right:8px}[dir=rtl] .mat-radio-label-content.mat-radio-label-before{padding-right:0;padding-left:8px}.mat-radio-disabled,.mat-radio-disabled .mat-radio-label{cursor:default}.mat-radio-button .mat-radio-ripple{position:absolute;left:calc(50% - 20px);top:calc(50% - 20px);height:40px;width:40px;z-index:1;pointer-events:none}.mat-radio-button .mat-radio-ripple .mat-ripple-element:not(.mat-radio-persistent-ripple){opacity:.16}.mat-radio-persistent-ripple{width:100%;height:100%;transform:none}.mat-radio-container:hover .mat-radio-persistent-ripple{opacity:.04}.mat-radio-button:not(.mat-radio-disabled).cdk-keyboard-focused .mat-radio-persistent-ripple,.mat-radio-button:not(.mat-radio-disabled).cdk-program-focused .mat-radio-persistent-ripple{opacity:.12}.mat-radio-disabled .mat-radio-container:hover .mat-radio-persistent-ripple,.mat-radio-persistent-ripple{opacity:0}@media (hover:none){.mat-radio-container:hover .mat-radio-persistent-ripple{display:none}}.mat-radio-input{bottom:0;left:50%}@media (-ms-high-contrast:active){.mat-radio-disabled{opacity:.5}}"],data:{}});function P(l){return t.Lb(2,[t.Ib(671088640,1,{_inputElement:0}),(l()(),t.sb(1,0,[["label",1]],null,12,"label",[["class","mat-radio-label"]],[[1,"for",0]],null,null,null,null)),(l()(),t.sb(2,0,null,null,7,"div",[["class","mat-radio-container"]],null,null,null,null,null)),(l()(),t.sb(3,0,null,null,0,"div",[["class","mat-radio-outer-circle"]],null,null,null,null,null)),(l()(),t.sb(4,0,null,null,0,"div",[["class","mat-radio-inner-circle"]],null,null,null,null,null)),(l()(),t.sb(5,0,null,null,3,"div",[["class","mat-radio-ripple mat-ripple"],["mat-ripple",""]],[[2,"mat-ripple-unbounded",null]],null,null,null,null)),t.rb(6,212992,null,0,p.f,[t.k,t.y,y.a,[2,p.d],[2,b.a]],{centered:[0,"centered"],radius:[1,"radius"],animation:[2,"animation"],disabled:[3,"disabled"],trigger:[4,"trigger"]},null),t.Gb(7,{enterDuration:0}),(l()(),t.sb(8,0,null,null,0,"div",[["class","mat-ripple-element mat-radio-persistent-ripple"]],null,null,null,null,null)),(l()(),t.sb(9,0,[[1,0],["input",1]],null,0,"input",[["class","mat-radio-input cdk-visually-hidden"],["type","radio"]],[[8,"id",0],[8,"checked",0],[8,"disabled",0],[8,"tabIndex",0],[1,"name",0],[1,"value",0],[8,"required",0],[1,"aria-label",0],[1,"aria-labelledby",0],[1,"aria-describedby",0]],[[null,"change"],[null,"click"]],function(l,n,e){var t=!0,i=l.component;return"change"===n&&(t=!1!==i._onInputChange(e)&&t),"click"===n&&(t=!1!==i._onInputClick(e)&&t),t},null,null)),(l()(),t.sb(10,0,null,null,3,"div",[["class","mat-radio-label-content"]],[[2,"mat-radio-label-before",null]],null,null,null,null)),(l()(),t.sb(11,0,null,null,1,"span",[["style","display:none"]],null,null,null,null,null)),(l()(),t.Kb(-1,null,["\xa0"])),t.Db(null,0)],function(l,n){var e=n.component,i=l(n,7,0,150);l(n,6,0,!0,20,i,e._isRippleDisabled(),t.Eb(n,1))},function(l,n){var e=n.component;l(n,1,0,e.inputId),l(n,5,0,t.Eb(n,6).unbounded),l(n,9,0,e.inputId,e.checked,e.disabled,e.tabIndex,e.name,e.value,e.required,e.ariaLabel,e.ariaLabelledby,e.ariaDescribedby),l(n,10,0,"before"==e.labelPosition)})}class V{constructor(){this.edges=[],this.isRoot=!1,this.backgroudColor="#0d0d26",this.color="white",this.borderColor="white",this.shadowBlur=6,this.shodowColor="grey",this.font="normal 12px Verdana",this.visited=!1,this.persistVisualProperties=!1,this.visitedAnimationFrame=0,this.visitedAnimationColors=["#e66750","#11b1bd","#03943b"]}resetMarkerProperties(){this.isRoot=!1,this.visited=!1,this.persistVisualProperties=!1,this.visitedAnimationFrame=0}resetVisualProperties(){this.backgroudColor="#0d0d26",this.color="white",this.borderColor="white",this.shadowBlur=6,this.shodowColor="grey",this.font="normal 12px Verdana"}visitedAnimationNextFrame(){if(this.isRoot)return this.color="white",void(this.backgroudColor="red");this.visitedAnimationFrame>=this.visitedAnimationColors.length||(this.backgroudColor=this.visitedAnimationColors[this.visitedAnimationFrame++],this.color="white")}doesEdgeExists(l){return this.edges.includes(l)}}class I{constructor(l){this.isDirected=!1,this.color="rgba(255,255,255,0.1)",this.arrowColor="rgba(255,255,255,0.3)",this.node=l}}class D{constructor(){this.nodes=[],this.graphReady=new t.m,this.nodeSelected=new t.m}onMouseMove(l){const n=this.board.getBoundingClientRect();if(l.clientXn.right||l.yn.bottom)return;const e=new V;e.x=l.clientX-n.left,e.y=l.clientY-n.top,this.nodes.forEach(l=>{l.persistVisualProperties||(this.getDistanceOfNodes(l,e)<=l.radius?(l.backgroudColor="white",l.color="black"):l.resetVisualProperties())}),this.drawBoard()}onMouseClick(l){const n=this.board.getBoundingClientRect();if(l.clientXn.right||l.yn.bottom)return;const e=new V;e.x=l.clientX-n.left,e.y=l.clientY-n.top,this.nodes.forEach(l=>{l.resetMarkerProperties(),l.resetVisualProperties(),this.getDistanceOfNodes(l,e)<=l.radius&&(l.backgroudColor="white",l.color="black",this.nodeSelected.emit(l),l.persistVisualProperties=!0)}),this.drawBoard()}adjustBoardParams(){const l=this.boardWrapperElementRef.nativeElement;this.board.width=l.clientWidth,this.board.height=l.clientHeight}drawNodes(){this.nodes.forEach(l=>{l.visited&&l.visitedAnimationNextFrame(),this.boardContext.beginPath(),this.boardContext.strokeStyle=l.borderColor,this.boardContext.fillStyle=l.backgroudColor,this.boardContext.shadowBlur=l.shadowBlur,this.boardContext.shadowColor=l.shodowColor,this.boardContext.arc(l.x,l.y,l.radius,0,2*Math.PI),this.boardContext.stroke(),this.boardContext.fill(),this.boardContext.fillStyle=l.color,this.boardContext.font=l.font,this.boardContext.fillText(l.value.toString(),l.x-l.radius/2+3,l.y+4),this.boardContext.closePath()})}drawEdges(){this.nodes.forEach(l=>{l.edges.forEach(n=>{if(this.boardContext.beginPath(),this.boardContext.shadowBlur=3,this.boardContext.strokeStyle=n.color,this.boardContext.moveTo(l.x,l.y),this.boardContext.lineTo(n.node.x,n.node.y),this.boardContext.stroke(),this.boardContext.closePath(),n.isDirected){const e=Math.atan(Math.abs(l.y-n.node.y)/Math.abs(l.x-n.node.x)),t=Math.PI/9,i=8,a=l.x::iterator i;\n\n while(!queue.empty())\n {\n // Dequeue a vertex from queue and print it\n s = queue.front();\n cout << s << " ";\n queue.pop_front();\n\n // Get all adjacent vertices of the dequeued\n // vertex s. If a adjacent has not been visited,\n // then mark it visited and enqueue it\n for (i = adj[s].begin(); i != adj[s].end(); ++i)\n {\n if (!visited[*i])\n {\n visited[*i] = true;\n queue.push_back(*i);\n }\n }\n }\n }\n\n // Driver program to test methods of graph class\n int main()\n {\n // Create a graph given in the above diagram\n Graph g(4);\n g.addEdge(0, 1);\n g.addEdge(0, 2);\n g.addEdge(1, 2);\n g.addEdge(2, 0);\n g.addEdge(2, 3);\n g.addEdge(3, 3);\n\n cout << "Following is Breadth First Traversal "\n << "(starting from vertex 2) ";\n g.BFS(2);\n\n return 0;\n }\n ',this.dfsExplanation="",this.dfsCode='\n // C++ program to print DFS traversal from\n // a given vertex in a given graph\n #include\n #include\n using namespace std;\n\n // Graph class represents a directed graph\n // using adjacency list representation\n class Graph\n {\n int V; // No. of vertices\n\n // Pointer to an array containing\n // adjacency lists\n list *adj;\n\n // A recursive function used by DFS\n void DFSUtil(int v, bool visited[]);\n public:\n Graph(int V); // Constructor\n\n // function to add an edge to graph\n void addEdge(int v, int w);\n\n // DFS traversal of the vertices\n // reachable from v\n void DFS(int v);\n };\n\n Graph::Graph(int V)\n {\n this->V = V;\n adj = new list[V];\n }\n\n void Graph::addEdge(int v, int w)\n {\n adj[v].push_back(w); // Add w to v\u2019s list.\n }\n\n void Graph::DFSUtil(int v, bool visited[])\n {\n // Mark the current node as visited and\n // print it\n visited[v] = true;\n cout << v << " ";\n\n // Recur for all the vertices adjacent\n // to this vertex\n list::iterator i;\n for (i = adj[v].begin(); i != adj[v].end(); ++i)\n if (!visited[*i])\n DFSUtil(*i, visited);\n }\n\n // DFS traversal of the vertices reachable from v.\n // It uses recursive DFSUtil()\n void Graph::DFS(int v)\n {\n // Mark all the vertices as not visited\n bool *visited = new bool[V];\n for (int i = 0; i < V; i++)\n visited[i] = false;\n\n // Call the recursive helper function\n // to print DFS traversal\n DFSUtil(v, visited);\n }\n\n // Driver code\n int main()\n {\n // Create a graph given in the above diagram\n Graph g(4);\n g.addEdge(0, 1);\n g.addEdge(0, 2);\n g.addEdge(1, 2);\n g.addEdge(2, 0);\n g.addEdge(2, 3);\n g.addEdge(3, 3);\n\n cout << "Following is Depth First Traversal"\n " (starting from vertex 2) ";\n g.DFS(2);\n\n return 0;\n }\n\n '}}class R{constructor(l,n){this.highlightService=l,this.notificationService=n,this.algorithms=[],this.algorithmNames=["BFS","DFS"],this.selectedAlgorithm=this.algorithmNames[0],this.samplesCount=70,this.maxSamplesCount=350,this.minValue=1,this.maxValue=150,this.values=[],this.speed=700,this.maxSpeed=3e3,this.visualizing=!1,this.customPanelOpened=!1,this.customValue=null,this.codePanelOpened=!1,this.minNodesDistance=17,this.isDirected=0,this.isCyclic=1,this.isConnected=0,this.algorithmCode="",this.algorithmExplanation="",this.graphAlgorithms=new N,this.algorithms={BFS:{name:"BFS",run:()=>this.bfs(),code:this.graphAlgorithms.bfsCode,explanation:this.graphAlgorithms.bfsExplanation},DFS:{name:"DFS",run:()=>this.dfs(),code:this.graphAlgorithms.dfsCode,explanation:this.graphAlgorithms.dfsExplanation}}}onMouseClick(l){this.visualizing||this.graph.onMouseClick(l)}onMouseMove(l){this.visualizing||this.graph.onMouseMove(l)}onWindowResize(l){this.graph.adjustBoardParams(),this.randomize(),this.graph.drawBoard()}ngOnInit(){}ngAfterViewInit(){this.randomize()}onGraphReady(l){this.board=l,this.randomize()}onNodeSelected(l){this.selectedNode=l}onRadioButtonChange(l){switch(l){case"isDirected":this.setRandomEdges()}this.graph.drawBoard()}updateSpeed(l){this.speed=l.value}updateSamplesCount(l){this.customPanelOpened=!1,this.samplesCount=l.value,this.randomize()}updateMaxValue(l){this.customPanelOpened=!1,this.maxValue=l.value,this.randomize()}addCustomValue(){if(null===this.customValue||this.customValue<=0||this.customValue>999)return;const l=new V;l.value=this.customValue,l.radius=12*l.value.toString().length;let n=1;do{if(l.x=Math.floor(Math.random()*(this.board.width-20-2*l.radius))+l.radius+10,l.y=Math.floor(Math.random()*(this.board.height-20-2*l.radius))+l.radius+10,n++>1e3)break}while(this.graph.nodes.some(n=>this.doesNodesAreTooCloser(n,l)));n<1e3?this.graph.nodes.push(l):this.notificationService.messages.push("Node can't be add as area is full"),this.customValue=null,this.graph.drawBoard()}scrollToElement(l){document.querySelector(l).scrollIntoView({behavior:"smooth",block:"center"})}removeCustomValue(){if(null===this.customValue||this.customValue<=0||this.customValue>999)return;const l=this.graph.nodes.findIndex(l=>l.value===this.customValue);l>=0&&this.graph.nodes.splice(l,1),this.graph.drawBoard()}toggleCustomPanel(){this.customPanelOpened=!this.customPanelOpened,this.graph.nodes=[],this.graph.boardContext.clearRect(0,0,this.board.width,this.board.height),this.customPanelOpened||this.randomize()}toggleCodePanel(){this.codePanelOpened=!this.codePanelOpened,this.algorithmCode=this.highlightService.highlightCode(this.algorithms[this.selectedAlgorithm].code,"cpp"),this.algorithmExplanation=this.algorithms[this.selectedAlgorithm].explanation}doesNodesAreTooCloser(l,n){return this.graph.getDistanceOfNodes(l,n)l.edges=[]),this.graph.nodes.forEach(n=>{this.getNearestKNodes(n,this.graph.nodes,l).forEach(l=>{if(1===Math.floor(2*Math.random())&&this.samplesCount>=3)return;const e=new I(l);if(e.isDirected=1===this.isDirected,!n.doesEdgeExists(e)){if(!this.isDirected){const e=new I(n);e.isDirected=1===this.isDirected,l.doesEdgeExists(e)||l.edges.push(e)}n.edges.push(e)}})})}getRandomNodes(){const l=[];for(let n=1;n<=this.samplesCount;n++){let n=1;const e=new V;do{if(e.value=Math.floor(Math.random()*(this.maxValue-this.minValue+1))+this.minValue,e.radius=12*e.value.toString().length,e.x=Math.floor(Math.random()*(this.board.width-20-2*e.radius))+e.radius+10,e.y=Math.floor(Math.random()*(this.board.height-20-2*e.radius))+e.radius+10,n++>1e3)break}while(l.some(l=>this.doesNodesAreTooCloser(l,e)));n<1e3?l.push(e):this.samplesCount=l.length}return l}randomize(){this.selectedNode=null,this.customPanelOpened=!1,this.graph.nodes=this.getRandomNodes(),this.setRandomEdges(),this.graph.drawBoard()}getNearestKNodes(l,n,e){if(e>=n.length)return[];const t=n.slice(0);return t.sort((n,e)=>this.graph.getDistanceOfNodes(l,n)>this.graph.getDistanceOfNodes(l,e)?1:-1),t.slice(1,e+1)}resetNodes(){this.graph.nodes.forEach(l=>{l.resetMarkerProperties(),l.resetVisualProperties()})}eachStep(){return G.a(this,void 0,void 0,function*(){return!!this.visualizing&&(this.graph.drawBoard(),yield O.a.delay(this.maxSpeed-this.speed),!0)})}toggleVisualize(){return G.a(this,void 0,void 0,function*(){this.visualizing?this.visualizing=!1:yield this.algorithms[this.selectedAlgorithm].run()})}bfs(){return G.a(this,void 0,void 0,function*(){if(this.resetNodes(),!this.selectedNode)return void this.notificationService.addMesage("Select any node as root");this.visualizing=!0;const l=[];if(this.selectedNode.visited=!0,this.selectedNode.isRoot=!0,this.selectedNode.persistVisualProperties=!0,l.push(this.selectedNode),!(yield this.eachStep()))return;let n=1,e=0;for(;0!==l.length;){for(;0!==n;){const t=l.shift();t.persistVisualProperties=!0,t.edges.forEach(n=>{n.node.visited||(n.node.visited=!0,l.push(n.node),e++)}),n--}if(!(yield this.eachStep()))return;n=e,e=0}this.visualizing=!1})}dfs(){return G.a(this,void 0,void 0,function*(){this.resetNodes(),this.selectedNode?(this.visualizing=!0,this.selectedNode.isRoot=!0,yield this.dfsUtil(this.selectedNode),this.visualizing=!1):this.notificationService.addMesage("Select any node as root")})}dfsUtil(l){return G.a(this,void 0,void 0,function*(){if(l.visited=!0,l.persistVisualProperties=!0,!(yield this.eachStep()))return!1;for(const n of l.edges)if(!n.node.visited&&!(yield this.dfsUtil(n.node)))return!1;return!0})}}var A=e("SrJx"),B=e("OC8m"),j=t.qb({encapsulation:0,styles:[[".submain-container[_ngcontent-%COMP%] .toolbar[_ngcontent-%COMP%] .mat-accent .mat-slider-thumb{background-color:#d168ff}.submain-container[_ngcontent-%COMP%] .toolbar[_ngcontent-%COMP%] .mat-accent .mat-slider-thumb-label{background-color:#d168ff}.submain-container[_ngcontent-%COMP%] .toolbar[_ngcontent-%COMP%] .mat-accent .mat-slider-track-fill{background-color:#d168ff}.submain-container[_ngcontent-%COMP%] .toolbar[_ngcontent-%COMP%] .radio-button[_ngcontent-%COMP%]{padding:0 20px}.submain-container[_ngcontent-%COMP%] .toolbar[_ngcontent-%COMP%] .label-name[_ngcontent-%COMP%]{color:#fff;font-size:14px}"]],data:{}});function q(l){return t.Lb(0,[(l()(),t.sb(0,0,null,null,3,"option",[],[[8,"disabled",0]],null,null,null,null)),t.rb(1,147456,null,0,s.i,[t.k,t.D,[2,s.k]],{value:[0,"value"]},null),t.rb(2,147456,null,0,s.n,[t.k,t.D,[8,null]],{value:[0,"value"]},null),(l()(),t.Kb(3,null,[" "," "]))],function(l,n){l(n,1,0,n.context.$implicit),l(n,2,0,n.context.$implicit)},function(l,n){l(n,0,0,n.component.visualizing),l(n,3,0,n.context.$implicit)})}function L(l){return t.Lb(0,[(l()(),t.sb(0,0,null,null,1,"span",[],null,null,null,null,null)),(l()(),t.Kb(-1,null,["Stop"]))],null,null)}function K(l){return t.Lb(0,[(l()(),t.Kb(-1,null,["Visualize"]))],null,null)}function T(l){return t.Lb(0,[(l()(),t.sb(0,0,null,null,13,"div",[["class","custom-panel"]],null,null,null,null,null)),(l()(),t.sb(1,0,null,null,6,"input",[["class","custom-value"],["max","999"],["min","1"],["placeholder","Enter custom value"],["type","number"]],[[2,"ng-untouched",null],[2,"ng-touched",null],[2,"ng-pristine",null],[2,"ng-dirty",null],[2,"ng-valid",null],[2,"ng-invalid",null],[2,"ng-pending",null]],[[null,"ngModelChange"],[null,"input"],[null,"blur"],[null,"compositionstart"],[null,"compositionend"],[null,"change"]],function(l,n,e){var i=!0,a=l.component;return"input"===n&&(i=!1!==t.Eb(l,2)._handleInput(e.target.value)&&i),"blur"===n&&(i=!1!==t.Eb(l,2).onTouched()&&i),"compositionstart"===n&&(i=!1!==t.Eb(l,2)._compositionStart()&&i),"compositionend"===n&&(i=!1!==t.Eb(l,2)._compositionEnd(e.target.value)&&i),"change"===n&&(i=!1!==t.Eb(l,3).onChange(e.target.value)&&i),"input"===n&&(i=!1!==t.Eb(l,3).onChange(e.target.value)&&i),"blur"===n&&(i=!1!==t.Eb(l,3).onTouched()&&i),"ngModelChange"===n&&(i=!1!==(a.customValue=e)&&i),i},null,null)),t.rb(2,16384,null,0,s.b,[t.D,t.k,[2,s.a]],null,null),t.rb(3,16384,null,0,s.j,[t.D,t.k],null,null),t.Hb(1024,null,s.e,function(l,n){return[l,n]},[s.b,s.j]),t.rb(5,671744,null,0,s.h,[[8,null],[8,null],[8,null],[6,s.e]],{model:[0,"model"]},{update:"ngModelChange"}),t.Hb(2048,null,s.f,null,[s.h]),t.rb(7,16384,null,0,s.g,[[4,s.f]],null,null),(l()(),t.sb(8,0,null,null,2,"button",[["class","edit-button"]],null,[[null,"click"]],function(l,n,e){var t=!0;return"click"===n&&(t=!1!==l.component.addCustomValue()&&t),t},null,null)),(l()(),t.sb(9,0,null,null,1,"span",[],null,null,null,null,null)),(l()(),t.Kb(-1,null,["+"])),(l()(),t.sb(11,0,null,null,2,"button",[["class","edit-button"]],null,[[null,"click"]],function(l,n,e){var t=!0;return"click"===n&&(t=!1!==l.component.removeCustomValue()&&t),t},null,null)),(l()(),t.sb(12,0,null,null,1,"span",[],null,null,null,null,null)),(l()(),t.Kb(-1,null,["-"]))],function(l,n){l(n,5,0,n.component.customValue)},function(l,n){l(n,1,0,t.Eb(n,7).ngClassUntouched,t.Eb(n,7).ngClassTouched,t.Eb(n,7).ngClassPristine,t.Eb(n,7).ngClassDirty,t.Eb(n,7).ngClassValid,t.Eb(n,7).ngClassInvalid,t.Eb(n,7).ngClassPending)})}function H(l){return t.Lb(0,[(l()(),t.sb(0,0,null,null,13,"div",[["class","code-panel"]],null,null,null,null,null)),(l()(),t.sb(1,0,null,null,1,"button",[["class","closeCodePanel"]],null,[[null,"click"]],function(l,n,e){var t=!0;return"click"===n&&(t=!1!==l.component.toggleCodePanel()&&t),t},null,null)),(l()(),t.Kb(-1,null,[" X "])),(l()(),t.sb(3,0,null,null,4,"div",[["class","code-explanation-wrapper"]],null,null,null,null,null)),(l()(),t.sb(4,0,null,null,1,"div",[["class","code-explanation-heading"]],null,null,null,null,null)),(l()(),t.Kb(5,null,["",""])),(l()(),t.sb(6,0,null,null,1,"pre",[["class","code-explanation wrap-pre-tag-text"]],[[8,"innerHTML",1]],null,null,null,null)),(l()(),t.Kb(-1,null,[" "])),(l()(),t.sb(8,0,null,null,5,"div",[["class","code-wrapper"]],null,null,null,null,null)),(l()(),t.sb(9,0,null,null,4,"pre",[],null,null,null,null,null)),(l()(),t.Kb(-1,null,[" "])),(l()(),t.sb(11,0,null,null,1,"code",[["class","code"]],[[8,"innerHTML",1]],null,null,null,null)),(l()(),t.Kb(-1,null,["\n "])),(l()(),t.Kb(-1,null,["\n "]))],null,function(l,n){var e=n.component;l(n,5,0,e.selectedAlgorithm),l(n,6,0,e.algorithmExplanation),l(n,11,0,e.algorithmCode)})}function U(l){return t.Lb(0,[t.Ib(671088640,1,{graph:0}),(l()(),t.sb(1,0,null,null,88,"div",[["class","submain-container"]],null,null,null,null,null)),(l()(),t.sb(2,0,null,null,2,"div",[["class","header"]],null,null,null,null,null)),(l()(),t.sb(3,0,null,null,1,"div",[["class","brand"]],null,null,null,null,null)),(l()(),t.Kb(-1,null,[" Graph Algorithms Visualizer "])),(l()(),t.sb(5,0,null,null,75,"div",[["class","toolbar"]],null,null,null,null,null)),(l()(),t.sb(6,0,null,null,74,"nav",[["class","navbar navbar-expand-lg"]],null,null,null,null,null)),(l()(),t.sb(7,0,null,null,1,"button",[["class","navbar-toggler"],["data-target","#navbarContent"],["data-toggle","collapse"],["type","button"]],null,null,null,null,null)),(l()(),t.sb(8,0,null,null,0,"i",[["class","fa fa-bars togglerIcon"]],null,null,null,null,null)),(l()(),t.sb(9,0,null,null,71,"div",[["class","collapse navbar-collapse"],["id","navbarContent"]],null,null,null,null,null)),(l()(),t.sb(10,0,null,null,70,"div",[["class","navWrapper row col-md-12"]],null,null,null,null,null)),(l()(),t.sb(11,0,null,null,3,"div",[["class","col-lg-1 col-md-2 col-sm-4 btn btn-primary navItem"]],null,[[null,"click"]],function(l,n,e){var i=!0;return"click"===n&&(i=!1!==t.Eb(l,12).onClick()&&i),i},null,null)),t.rb(12,16384,null,0,o.l,[o.k,o.a,[8,null],t.D,t.k],{routerLink:[0,"routerLink"]},null),t.Fb(13,1),(l()(),t.Kb(-1,null,[" Home "])),(l()(),t.sb(15,0,null,null,8,"div",[["class","col-lg-2 col-md-3 col-sm-4 navItem p-0"]],null,null,null,null,null)),(l()(),t.sb(16,0,null,null,7,"select",[],[[2,"ng-untouched",null],[2,"ng-touched",null],[2,"ng-pristine",null],[2,"ng-dirty",null],[2,"ng-valid",null],[2,"ng-invalid",null],[2,"ng-pending",null]],[[null,"ngModelChange"],[null,"change"],[null,"blur"]],function(l,n,e){var i=!0,a=l.component;return"change"===n&&(i=!1!==t.Eb(l,17).onChange(e.target.value)&&i),"blur"===n&&(i=!1!==t.Eb(l,17).onTouched()&&i),"ngModelChange"===n&&(i=!1!==(a.selectedAlgorithm=e)&&i),i},null,null)),t.rb(17,16384,null,0,s.k,[t.D,t.k],null,null),t.Hb(1024,null,s.e,function(l){return[l]},[s.k]),t.rb(19,671744,null,0,s.h,[[8,null],[8,null],[8,null],[6,s.e]],{model:[0,"model"]},{update:"ngModelChange"}),t.Hb(2048,null,s.f,null,[s.h]),t.rb(21,16384,null,0,s.g,[[4,s.f]],null,null),(l()(),t.hb(16777216,null,null,1,null,q)),t.rb(23,278528,null,0,r.j,[t.O,t.L,t.r],{ngForOf:[0,"ngForOf"]},null),(l()(),t.sb(24,0,null,null,1,"button",[["class","btn btn-danger col-lg-2 col-md-2 col-sm-4 navItem"]],[[8,"disabled",0]],[[null,"click"]],function(l,n,e){var t=!0;return"click"===n&&(t=!1!==l.component.randomize()&&t),t},null,null)),(l()(),t.Kb(-1,null,[" Randomize "])),(l()(),t.sb(26,0,null,null,6,"button",[],null,[[null,"click"]],function(l,n,e){var t=!0,i=l.component;return"click"===n&&(i.toggleVisualize(),t=!1!==i.scrollToElement("#graph")&&t),t},null,null)),t.Hb(512,null,r.z,r.A,[t.r,t.s,t.k,t.D]),t.rb(28,278528,null,0,r.i,[r.z],{ngClass:[0,"ngClass"]},null),t.Gb(29,{"btn-success":0,"btn-danger":1,"btn col-lg-1 col-md-2 col-sm-4 navItem":2}),(l()(),t.hb(16777216,null,null,1,null,L)),t.rb(31,16384,null,0,r.k,[t.O,t.L],{ngIf:[0,"ngIf"],ngIfElse:[1,"ngIfElse"]},null),(l()(),t.hb(0,[["visualize",2]],null,0,null,K)),(l()(),t.sb(33,0,null,null,4,"button",[],[[8,"disabled",0]],[[null,"click"]],function(l,n,e){var t=!0;return"click"===n&&(t=!1!==l.component.toggleCustomPanel()&&t),t},null,null)),t.Hb(512,null,r.z,r.A,[t.r,t.s,t.k,t.D]),t.rb(35,278528,null,0,r.i,[r.z],{ngClass:[0,"ngClass"]},null),t.Gb(36,{"btn btn-info col-lg-1 col-md-2 col-sm-4 navItem":0}),(l()(),t.Kb(-1,null,[" Custom "])),(l()(),t.sb(38,0,null,null,4,"button",[],null,[[null,"click"]],function(l,n,e){var t=!0;return"click"===n&&(t=!1!==l.component.toggleCodePanel()&&t),t},null,null)),t.Hb(512,null,r.z,r.A,[t.r,t.s,t.k,t.D]),t.rb(40,278528,null,0,r.i,[r.z],{ngClass:[0,"ngClass"]},null),t.Gb(41,{"col-lg-1 col-md-2 col-sm-4 navItem show-code-button":0}),(l()(),t.Kb(-1,null,[" < / > "])),(l()(),t.sb(43,0,null,null,6,"div",[["class","col-lg-2 col-md-3 col-sm-4 navItem p-0"]],null,null,null,null,null)),(l()(),t.sb(44,0,null,null,2,":svg:svg",[["fill","white"],["style","width:30px;height:40px;"]],null,null,null,null,null)),(l()(),t.sb(45,0,null,null,0,":svg:path",[["d","M31.842,15.057c-0.264-0.265-0.689-0.265-0.953,0c-0.228,0.229-0.246,0.573-0.079,0.834l-3.007,3.008 c-0.089-0.061-0.187-0.105-0.279-0.157l0.904-3.373c0.309,0.014,0.6-0.177,0.682-0.485c0.1-0.36-0.114-0.729-0.476-0.825 c-0.36-0.098-0.729,0.116-0.825,0.478c-0.083,0.311,0.073,0.618,0.351,0.762l-0.888,3.307c-0.371-0.164-0.778-0.263-1.207-0.287 c-3.048-0.168-2.584,3.011-3.806,3.01c-0.285,0-1.716-0.646-1.716-0.646l-0.982,0.201c-3.417,0.497-6.636-1.889-6.76-1.98 l-0.39-0.296c0,0-0.661,1.275-1.829,1.912c-0.865,0.47-1.861,0.567-2.545,0.567c-1.251,0-2.832-0.349-3.539-1.128 c-0.111-0.123-0.199-0.256-0.301-0.383c-3.606,1.845-5.085,4.896-3.663,4.896c2.315,0,25.529,0,25.529,0 c1.698,0,3.075-1.378,3.075-3.076c0-0.951-0.44-1.762-1.119-2.316l2.986-2.988c0.261,0.169,0.605,0.148,0.835-0.078 C32.106,15.748,32.106,15.32,31.842,15.057z M25.71,20.926c-0.372,0-0.674-0.302-0.674-0.674s0.302-0.674,0.674-0.674 s0.674,0.302,0.674,0.674S26.083,20.926,25.71,20.926z"]],null,null,null,null,null)),(l()(),t.sb(46,0,null,null,0,":svg:path",[["d","M10.259,19.925c2.863-1.558,1.811-7.37-1.684-5.348c3.494-2.905,4.963,2.837,4.633,3.785c0,0,3.071,2.32,6.253,1.853 c0-4.033-1.423-10.616-7.265-12.29C4.408,5.693,0.45,14.493,4.998,19.504C5.766,20.35,8.602,20.828,10.259,19.925z"]],null,null,null,null,null)),(l()(),t.sb(47,0,null,null,2,"mat-slider",[["class","mat-slider"],["min","0"],["role","slider"]],[[8,"tabIndex",0],[1,"aria-disabled",0],[1,"aria-valuemax",0],[1,"aria-valuemin",0],[1,"aria-valuenow",0],[1,"aria-orientation",0],[2,"mat-slider-disabled",null],[2,"mat-slider-has-ticks",null],[2,"mat-slider-horizontal",null],[2,"mat-slider-axis-inverted",null],[2,"mat-slider-sliding",null],[2,"mat-slider-thumb-label-showing",null],[2,"mat-slider-vertical",null],[2,"mat-slider-min-value",null],[2,"mat-slider-hide-last-tick",null],[2,"_mat-animation-noopable",null]],[[null,"change"],[null,"focus"],[null,"blur"],[null,"mousedown"],[null,"keydown"],[null,"keyup"],[null,"mouseenter"],[null,"slide"],[null,"slideend"],[null,"slidestart"],[null,"selectstart"]],function(l,n,e){var i=!0,a=l.component;return"focus"===n&&(i=!1!==t.Eb(l,49)._onFocus()&&i),"blur"===n&&(i=!1!==t.Eb(l,49)._onBlur()&&i),"mousedown"===n&&(i=!1!==t.Eb(l,49)._onMousedown(e)&&i),"keydown"===n&&(i=!1!==t.Eb(l,49)._onKeydown(e)&&i),"keyup"===n&&(i=!1!==t.Eb(l,49)._onKeyup()&&i),"mouseenter"===n&&(i=!1!==t.Eb(l,49)._onMouseenter()&&i),"slide"===n&&(i=!1!==t.Eb(l,49)._onSlide(e)&&i),"slideend"===n&&(i=!1!==t.Eb(l,49)._onSlideEnd()&&i),"slidestart"===n&&(i=!1!==t.Eb(l,49)._onSlideStart(e)&&i),"selectstart"===n&&(i=!1!==e.preventDefault()&&i),"change"===n&&(i=!1!==a.updateSpeed(e)&&i),i},u.b,u.a)),t.Hb(5120,null,s.e,function(l){return[l]},[d.a]),t.rb(49,245760,null,0,d.a,[t.k,c.a,t.h,[2,h.b],[8,null],[2,b.a]],{max:[0,"max"],min:[1,"min"],value:[2,"value"]},{change:"change"}),(l()(),t.sb(50,0,null,null,6,"div",[["class","col-lg-2 col-md-3 col-sm-4 navItem p-0"]],null,null,null,null,null)),(l()(),t.sb(51,0,null,null,5,"div",[["class","row"]],null,null,null,null,null)),(l()(),t.sb(52,0,null,null,1,"span",[["style","color:white;padding: 10px 0px 10px 20px"]],null,null,null,null,null)),(l()(),t.Kb(-1,null,["N"])),(l()(),t.sb(54,0,null,null,2,"mat-slider",[["class","mat-slider"],["min","1"],["role","slider"],["thumbLabel",""],["tickInterval","1"]],[[8,"tabIndex",0],[1,"aria-disabled",0],[1,"aria-valuemax",0],[1,"aria-valuemin",0],[1,"aria-valuenow",0],[1,"aria-orientation",0],[2,"mat-slider-disabled",null],[2,"mat-slider-has-ticks",null],[2,"mat-slider-horizontal",null],[2,"mat-slider-axis-inverted",null],[2,"mat-slider-sliding",null],[2,"mat-slider-thumb-label-showing",null],[2,"mat-slider-vertical",null],[2,"mat-slider-min-value",null],[2,"mat-slider-hide-last-tick",null],[2,"_mat-animation-noopable",null]],[[null,"change"],[null,"focus"],[null,"blur"],[null,"mousedown"],[null,"keydown"],[null,"keyup"],[null,"mouseenter"],[null,"slide"],[null,"slideend"],[null,"slidestart"],[null,"selectstart"]],function(l,n,e){var i=!0,a=l.component;return"focus"===n&&(i=!1!==t.Eb(l,56)._onFocus()&&i),"blur"===n&&(i=!1!==t.Eb(l,56)._onBlur()&&i),"mousedown"===n&&(i=!1!==t.Eb(l,56)._onMousedown(e)&&i),"keydown"===n&&(i=!1!==t.Eb(l,56)._onKeydown(e)&&i),"keyup"===n&&(i=!1!==t.Eb(l,56)._onKeyup()&&i),"mouseenter"===n&&(i=!1!==t.Eb(l,56)._onMouseenter()&&i),"slide"===n&&(i=!1!==t.Eb(l,56)._onSlide(e)&&i),"slideend"===n&&(i=!1!==t.Eb(l,56)._onSlideEnd()&&i),"slidestart"===n&&(i=!1!==t.Eb(l,56)._onSlideStart(e)&&i),"selectstart"===n&&(i=!1!==e.preventDefault()&&i),"change"===n&&(i=!1!==a.updateSamplesCount(e)&&i),i},u.b,u.a)),t.Hb(5120,null,s.e,function(l){return[l]},[d.a]),t.rb(56,245760,null,0,d.a,[t.k,c.a,t.h,[2,h.b],[8,null],[2,b.a]],{disabled:[0,"disabled"],max:[1,"max"],min:[2,"min"],thumbLabel:[3,"thumbLabel"],tickInterval:[4,"tickInterval"],value:[5,"value"]},{change:"change"}),(l()(),t.sb(57,0,null,null,6,"div",[["class","col-lg-2 col-md-3 col-sm-4 navItem p-0"]],null,null,null,null,null)),(l()(),t.sb(58,0,null,null,5,"div",[["class","row"]],null,null,null,null,null)),(l()(),t.sb(59,0,null,null,1,"span",[["style","color:white;padding: 10px 0px 10px 20px"]],null,null,null,null,null)),(l()(),t.Kb(-1,null,["A"])),(l()(),t.sb(61,0,null,null,2,"mat-slider",[["class","mat-slider"],["max","200"],["min","1"],["role","slider"],["thumbLabel",""],["tickInterval","1"]],[[8,"tabIndex",0],[1,"aria-disabled",0],[1,"aria-valuemax",0],[1,"aria-valuemin",0],[1,"aria-valuenow",0],[1,"aria-orientation",0],[2,"mat-slider-disabled",null],[2,"mat-slider-has-ticks",null],[2,"mat-slider-horizontal",null],[2,"mat-slider-axis-inverted",null],[2,"mat-slider-sliding",null],[2,"mat-slider-thumb-label-showing",null],[2,"mat-slider-vertical",null],[2,"mat-slider-min-value",null],[2,"mat-slider-hide-last-tick",null],[2,"_mat-animation-noopable",null]],[[null,"change"],[null,"focus"],[null,"blur"],[null,"mousedown"],[null,"keydown"],[null,"keyup"],[null,"mouseenter"],[null,"slide"],[null,"slideend"],[null,"slidestart"],[null,"selectstart"]],function(l,n,e){var i=!0,a=l.component;return"focus"===n&&(i=!1!==t.Eb(l,63)._onFocus()&&i),"blur"===n&&(i=!1!==t.Eb(l,63)._onBlur()&&i),"mousedown"===n&&(i=!1!==t.Eb(l,63)._onMousedown(e)&&i),"keydown"===n&&(i=!1!==t.Eb(l,63)._onKeydown(e)&&i),"keyup"===n&&(i=!1!==t.Eb(l,63)._onKeyup()&&i),"mouseenter"===n&&(i=!1!==t.Eb(l,63)._onMouseenter()&&i),"slide"===n&&(i=!1!==t.Eb(l,63)._onSlide(e)&&i),"slideend"===n&&(i=!1!==t.Eb(l,63)._onSlideEnd()&&i),"slidestart"===n&&(i=!1!==t.Eb(l,63)._onSlideStart(e)&&i),"selectstart"===n&&(i=!1!==e.preventDefault()&&i),"change"===n&&(i=!1!==a.updateMaxValue(e)&&i),i},u.b,u.a)),t.Hb(5120,null,s.e,function(l){return[l]},[d.a]),t.rb(63,245760,null,0,d.a,[t.k,c.a,t.h,[2,h.b],[8,null],[2,b.a]],{disabled:[0,"disabled"],max:[1,"max"],min:[2,"min"],thumbLabel:[3,"thumbLabel"],tickInterval:[4,"tickInterval"],value:[5,"value"]},{change:"change"}),(l()(),t.sb(64,0,null,null,16,"div",[["class","col-lg-1 col-md-2 col-sm-3 navItem p-0"]],null,null,null,null,null)),(l()(),t.sb(65,0,null,null,15,"div",[["class","row"]],null,null,null,null,null)),(l()(),t.sb(66,0,null,null,14,"mat-radio-group",[["class","mat-radio-group"],["role","radiogroup"]],[[2,"ng-untouched",null],[2,"ng-touched",null],[2,"ng-pristine",null],[2,"ng-dirty",null],[2,"ng-valid",null],[2,"ng-invalid",null],[2,"ng-pending",null]],[[null,"ngModelChange"],[null,"change"]],function(l,n,e){var t=!0,i=l.component;return"ngModelChange"===n&&(t=!1!==(i.isDirected=e)&&t),"change"===n&&(t=!1!==i.onRadioButtonChange("isDirected")&&t),t},null,null)),t.rb(67,1064960,null,1,E,[t.h],null,{change:"change"}),t.Ib(603979776,2,{_radios:1}),t.Hb(1024,null,s.e,function(l){return[l]},[E]),t.rb(70,671744,null,0,s.h,[[8,null],[8,null],[8,null],[6,s.e]],{model:[0,"model"]},{update:"ngModelChange"}),t.Hb(2048,null,s.f,null,[s.h]),t.rb(72,16384,null,0,s.g,[[4,s.f]],null,null),(l()(),t.sb(73,0,null,null,3,"mat-radio-button",[["class","radio-button mat-radio-button"]],[[2,"mat-radio-checked",null],[2,"mat-radio-disabled",null],[2,"_mat-animation-noopable",null],[2,"mat-primary",null],[2,"mat-accent",null],[2,"mat-warn",null],[1,"tabindex",0],[1,"id",0]],[[null,"focus"]],function(l,n,e){var i=!0;return"focus"===n&&(i=!1!==t.Eb(l,74)._inputElement.nativeElement.focus()&&i),i},P,S)),t.rb(74,4440064,[[2,4]],0,k,[[2,E],t.k,t.h,c.a,M,[2,b.a],[2,g]],{value:[0,"value"]},null),(l()(),t.sb(75,0,null,0,1,"span",[["class","label-name"]],null,null,null,null,null)),(l()(),t.Kb(-1,null,["Directed"])),(l()(),t.sb(77,0,null,null,3,"mat-radio-button",[["class","radio-button mat-radio-button"]],[[2,"mat-radio-checked",null],[2,"mat-radio-disabled",null],[2,"_mat-animation-noopable",null],[2,"mat-primary",null],[2,"mat-accent",null],[2,"mat-warn",null],[1,"tabindex",0],[1,"id",0]],[[null,"focus"]],function(l,n,e){var i=!0;return"focus"===n&&(i=!1!==t.Eb(l,78)._inputElement.nativeElement.focus()&&i),i},P,S)),t.rb(78,4440064,[[2,4]],0,k,[[2,E],t.k,t.h,c.a,M,[2,b.a],[2,g]],{value:[0,"value"]},null),(l()(),t.sb(79,0,null,0,1,"span",[["class","label-name"]],null,null,null,null,null)),(l()(),t.Kb(-1,null,["Undirected"])),(l()(),t.sb(81,0,null,null,6,"div",[["class","section"]],null,null,null,null,null)),(l()(),t.hb(16777216,null,null,1,null,T)),t.rb(83,16384,null,0,r.k,[t.O,t.L],{ngIf:[0,"ngIf"]},null),(l()(),t.sb(84,0,null,null,1,"app-graph",[["id","graph"]],null,[[null,"graphReady"],[null,"nodeSelected"]],function(l,n,e){var t=!0,i=l.component;return"graphReady"===n&&(t=!1!==i.onGraphReady(e)&&t),"nodeSelected"===n&&(t=!1!==i.onNodeSelected(e)&&t),t},F,z)),t.rb(85,4308992,[[1,4],["graph",4]],0,D,[],null,{graphReady:"graphReady",nodeSelected:"nodeSelected"}),(l()(),t.hb(16777216,null,null,1,null,H)),t.rb(87,16384,null,0,r.k,[t.O,t.L],{ngIf:[0,"ngIf"]},null),(l()(),t.sb(88,0,null,null,1,"div",[["class","glow-footer"]],null,null,null,null,null)),(l()(),t.Kb(-1,null,[" while( !(success = try())); "]))],function(l,n){var e=n.component,i=l(n,13,0,"");l(n,12,0,i),l(n,19,0,e.selectedAlgorithm),l(n,23,0,e.algorithmNames);var a=l(n,29,0,!e.visualizing,e.visualizing,!0);l(n,28,0,a),l(n,31,0,e.visualizing,t.Eb(n,32));var s=l(n,36,0,!0);l(n,35,0,s);var o=l(n,41,0,!0);l(n,40,0,o),l(n,49,0,e.maxSpeed,"0",e.speed),l(n,56,0,e.visualizing,e.maxSamplesCount,"1","","1",e.samplesCount),l(n,63,0,e.visualizing,"200","1","","1",e.maxValue),l(n,70,0,e.isDirected),l(n,74,0,1),l(n,78,0,0),l(n,83,0,e.customPanelOpened),l(n,85,0),l(n,87,0,e.codePanelOpened)},function(l,n){var e=n.component;l(n,16,0,t.Eb(n,21).ngClassUntouched,t.Eb(n,21).ngClassTouched,t.Eb(n,21).ngClassPristine,t.Eb(n,21).ngClassDirty,t.Eb(n,21).ngClassValid,t.Eb(n,21).ngClassInvalid,t.Eb(n,21).ngClassPending),l(n,24,0,e.visualizing),l(n,33,0,e.visualizing),l(n,47,1,[t.Eb(n,49).tabIndex,t.Eb(n,49).disabled,t.Eb(n,49).max,t.Eb(n,49).min,t.Eb(n,49).value,t.Eb(n,49).vertical?"vertical":"horizontal",t.Eb(n,49).disabled,t.Eb(n,49).tickInterval,!t.Eb(n,49).vertical,t.Eb(n,49)._invertAxis,t.Eb(n,49)._isSliding,t.Eb(n,49).thumbLabel,t.Eb(n,49).vertical,t.Eb(n,49)._isMinValue,t.Eb(n,49).disabled||t.Eb(n,49)._isMinValue&&t.Eb(n,49)._thumbGap&&t.Eb(n,49)._invertAxis,"NoopAnimations"===t.Eb(n,49)._animationMode]),l(n,54,1,[t.Eb(n,56).tabIndex,t.Eb(n,56).disabled,t.Eb(n,56).max,t.Eb(n,56).min,t.Eb(n,56).value,t.Eb(n,56).vertical?"vertical":"horizontal",t.Eb(n,56).disabled,t.Eb(n,56).tickInterval,!t.Eb(n,56).vertical,t.Eb(n,56)._invertAxis,t.Eb(n,56)._isSliding,t.Eb(n,56).thumbLabel,t.Eb(n,56).vertical,t.Eb(n,56)._isMinValue,t.Eb(n,56).disabled||t.Eb(n,56)._isMinValue&&t.Eb(n,56)._thumbGap&&t.Eb(n,56)._invertAxis,"NoopAnimations"===t.Eb(n,56)._animationMode]),l(n,61,1,[t.Eb(n,63).tabIndex,t.Eb(n,63).disabled,t.Eb(n,63).max,t.Eb(n,63).min,t.Eb(n,63).value,t.Eb(n,63).vertical?"vertical":"horizontal",t.Eb(n,63).disabled,t.Eb(n,63).tickInterval,!t.Eb(n,63).vertical,t.Eb(n,63)._invertAxis,t.Eb(n,63)._isSliding,t.Eb(n,63).thumbLabel,t.Eb(n,63).vertical,t.Eb(n,63)._isMinValue,t.Eb(n,63).disabled||t.Eb(n,63)._isMinValue&&t.Eb(n,63)._thumbGap&&t.Eb(n,63)._invertAxis,"NoopAnimations"===t.Eb(n,63)._animationMode]),l(n,66,0,t.Eb(n,72).ngClassUntouched,t.Eb(n,72).ngClassTouched,t.Eb(n,72).ngClassPristine,t.Eb(n,72).ngClassDirty,t.Eb(n,72).ngClassValid,t.Eb(n,72).ngClassInvalid,t.Eb(n,72).ngClassPending),l(n,73,0,t.Eb(n,74).checked,t.Eb(n,74).disabled,"NoopAnimations"===t.Eb(n,74)._animationMode,"primary"===t.Eb(n,74).color,"accent"===t.Eb(n,74).color,"warn"===t.Eb(n,74).color,-1,t.Eb(n,74).id),l(n,77,0,t.Eb(n,78).checked,t.Eb(n,78).disabled,"NoopAnimations"===t.Eb(n,78)._animationMode,"primary"===t.Eb(n,78).color,"accent"===t.Eb(n,78).color,"warn"===t.Eb(n,78).color,-1,t.Eb(n,78).id)})}function X(l){return t.Lb(0,[(l()(),t.sb(0,0,null,null,1,"app-graph-algorithms",[],null,[[null,"click"],[null,"mousemove"],["window","resize"]],function(l,n,e){var i=!0;return"click"===n&&(i=!1!==t.Eb(l,1).onMouseClick(e)&&i),"mousemove"===n&&(i=!1!==t.Eb(l,1).onMouseMove(e)&&i),"window:resize"===n&&(i=!1!==t.Eb(l,1).onWindowResize(e)&&i),i},U,j)),t.rb(1,4308992,null,0,R,[A.a,B.a],null,null)],function(l,n){l(n,1,0)},null)}var W=t.ob("app-graph-algorithms",R,X,{},{},[]);class ${}var J=e("PCNd");e.d(n,"GraphAlgorithmsModuleNgFactory",function(){return Y});var Y=t.pb(i,[],function(l){return t.Bb([t.Cb(512,t.j,t.ab,[[8,[a.a,W]],[3,t.j],t.w]),t.Cb(4608,r.m,r.l,[t.t,[2,r.E]]),t.Cb(4608,s.m,s.m,[]),t.Cb(4608,w.e,p.a,[[2,p.c],[2,p.e]]),t.Cb(1073742336,r.b,r.b,[]),t.Cb(1073742336,s.l,s.l,[]),t.Cb(1073742336,s.c,s.c,[]),t.Cb(1073742336,h.a,h.a,[]),t.Cb(1073742336,p.e,p.e,[[2,p.b],[2,w.f]]),t.Cb(1073742336,d.b,d.b,[]),t.Cb(1073742336,y.b,y.b,[]),t.Cb(1073742336,p.g,p.g,[]),t.Cb(1073742336,x,x,[]),t.Cb(1073742336,o.m,o.m,[[2,o.r],[2,o.k]]),t.Cb(1073742336,$,$,[]),t.Cb(1073742336,J.a,J.a,[]),t.Cb(1073742336,i,i,[]),t.Cb(1024,o.i,function(){return[[{path:"",component:R}]]},[])])})}}]); \ No newline at end of file diff --git a/6-es5.6100aba97d9d2e278473.js b/6-es5.6100aba97d9d2e278473.js new file mode 100644 index 0000000..73eef6c --- /dev/null +++ b/6-es5.6100aba97d9d2e278473.js @@ -0,0 +1 @@ +function n(n,e){n.prototype=Object.create(e.prototype);n.prototype.constructor=n;n.__proto__=e}function e(n,e){for(var l=0;l=t.length)break;o=t[a++]}else{a=t.next();if(a.done)break;o=a.value}var r=o;r(e,l)}};e.listen=function n(e){var l=this;return this._listeners.push(e),function(){l._listeners=l._listeners.filter(function(n){return e!==n})}};e.ngOnDestroy=function n(){this._listeners=[]};return n}();return n.ngInjectableDef=Object(o.Pb)({factory:function e(){return new n},token:n,providedIn:"root"}),n}();var I=o.qb({encapsulation:2,styles:[".mat-radio-button{display:inline-block;-webkit-tap-highlight-color:transparent;outline:0}.mat-radio-label{-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;cursor:pointer;display:inline-flex;align-items:center;white-space:nowrap;vertical-align:middle;width:100%}.mat-radio-container{box-sizing:border-box;display:inline-block;position:relative;width:20px;height:20px;flex-shrink:0}.mat-radio-outer-circle{box-sizing:border-box;height:20px;left:0;position:absolute;top:0;transition:border-color ease 280ms;width:20px;border-width:2px;border-style:solid;border-radius:50%}._mat-animation-noopable .mat-radio-outer-circle{transition:none}.mat-radio-inner-circle{border-radius:50%;box-sizing:border-box;height:20px;left:0;position:absolute;top:0;transition:transform ease 280ms,background-color ease 280ms;width:20px;transform:scale(.001)}._mat-animation-noopable .mat-radio-inner-circle{transition:none}.mat-radio-checked .mat-radio-inner-circle{transform:scale(.5)}@media (-ms-high-contrast:active){.mat-radio-checked .mat-radio-inner-circle{border:solid 10px}}.mat-radio-label-content{-webkit-user-select:auto;-moz-user-select:auto;-ms-user-select:auto;user-select:auto;display:inline-block;order:0;line-height:inherit;padding-left:8px;padding-right:0}[dir=rtl] .mat-radio-label-content{padding-right:8px;padding-left:0}.mat-radio-label-content.mat-radio-label-before{order:-1;padding-left:0;padding-right:8px}[dir=rtl] .mat-radio-label-content.mat-radio-label-before{padding-right:0;padding-left:8px}.mat-radio-disabled,.mat-radio-disabled .mat-radio-label{cursor:default}.mat-radio-button .mat-radio-ripple{position:absolute;left:calc(50% - 20px);top:calc(50% - 20px);height:40px;width:40px;z-index:1;pointer-events:none}.mat-radio-button .mat-radio-ripple .mat-ripple-element:not(.mat-radio-persistent-ripple){opacity:.16}.mat-radio-persistent-ripple{width:100%;height:100%;transform:none}.mat-radio-container:hover .mat-radio-persistent-ripple{opacity:.04}.mat-radio-button:not(.mat-radio-disabled).cdk-keyboard-focused .mat-radio-persistent-ripple,.mat-radio-button:not(.mat-radio-disabled).cdk-program-focused .mat-radio-persistent-ripple{opacity:.12}.mat-radio-disabled .mat-radio-container:hover .mat-radio-persistent-ripple,.mat-radio-persistent-ripple{opacity:0}@media (hover:none){.mat-radio-container:hover .mat-radio-persistent-ripple{display:none}}.mat-radio-input{bottom:0;left:50%}@media (-ms-high-contrast:active){.mat-radio-disabled{opacity:.5}}"],data:{}});function D(n){return o.Lb(2,[o.Ib(671088640,1,{_inputElement:0}),(n()(),o.sb(1,0,[["label",1]],null,12,"label",[["class","mat-radio-label"]],[[1,"for",0]],null,null,null,null)),(n()(),o.sb(2,0,null,null,7,"div",[["class","mat-radio-container"]],null,null,null,null,null)),(n()(),o.sb(3,0,null,null,0,"div",[["class","mat-radio-outer-circle"]],null,null,null,null,null)),(n()(),o.sb(4,0,null,null,0,"div",[["class","mat-radio-inner-circle"]],null,null,null,null,null)),(n()(),o.sb(5,0,null,null,3,"div",[["class","mat-radio-ripple mat-ripple"],["mat-ripple",""]],[[2,"mat-ripple-unbounded",null]],null,null,null,null)),o.rb(6,212992,null,0,f.f,[o.k,o.y,P.a,[2,f.d],[2,g.a]],{centered:[0,"centered"],radius:[1,"radius"],animation:[2,"animation"],disabled:[3,"disabled"],trigger:[4,"trigger"]},null),o.Gb(7,{enterDuration:0}),(n()(),o.sb(8,0,null,null,0,"div",[["class","mat-ripple-element mat-radio-persistent-ripple"]],null,null,null,null,null)),(n()(),o.sb(9,0,[[1,0],["input",1]],null,0,"input",[["class","mat-radio-input cdk-visually-hidden"],["type","radio"]],[[8,"id",0],[8,"checked",0],[8,"disabled",0],[8,"tabIndex",0],[1,"name",0],[1,"value",0],[8,"required",0],[1,"aria-label",0],[1,"aria-labelledby",0],[1,"aria-describedby",0]],[[null,"change"],[null,"click"]],function(n,e,l){var t=!0,i=n.component;return"change"===e&&(t=!1!==i._onInputChange(l)&&t),"click"===e&&(t=!1!==i._onInputClick(l)&&t),t},null,null)),(n()(),o.sb(10,0,null,null,3,"div",[["class","mat-radio-label-content"]],[[2,"mat-radio-label-before",null]],null,null,null,null)),(n()(),o.sb(11,0,null,null,1,"span",[["style","display:none"]],null,null,null,null,null)),(n()(),o.Kb(-1,null,["\xa0"])),o.Db(null,0)],function(n,e){var l=e.component,t=n(e,7,0,150);n(e,6,0,!0,20,t,l._isRippleDisabled(),o.Eb(e,1))},function(n,e){var l=e.component;n(e,1,0,l.inputId),n(e,5,0,o.Eb(e,6).unbounded),n(e,9,0,l.inputId,l.checked,l.disabled,l.tabIndex,l.name,l.value,l.required,l.ariaLabel,l.ariaLabelledby,l.ariaDescribedby),n(e,10,0,"before"==l.labelPosition)})}var z=function(){function n(){this.edges=[],this.isRoot=!1,this.backgroudColor="#0d0d26",this.color="white",this.borderColor="white",this.shadowBlur=6,this.shodowColor="grey",this.font="normal 12px Verdana",this.visited=!1,this.persistVisualProperties=!1,this.visitedAnimationFrame=0,this.visitedAnimationColors=["#e66750","#11b1bd","#03943b"]}var e=n.prototype;e.resetMarkerProperties=function n(){this.isRoot=!1,this.visited=!1,this.persistVisualProperties=!1,this.visitedAnimationFrame=0};e.resetVisualProperties=function n(){this.backgroudColor="#0d0d26",this.color="white",this.borderColor="white",this.shadowBlur=6,this.shodowColor="grey",this.font="normal 12px Verdana"};e.visitedAnimationNextFrame=function n(){if(this.isRoot)return this.color="white",void(this.backgroudColor="red");this.visitedAnimationFrame>=this.visitedAnimationColors.length||(this.backgroudColor=this.visitedAnimationColors[this.visitedAnimationFrame++],this.color="white")};e.doesEdgeExists=function n(e){return this.edges.includes(e)};return n}();var R=function n(e){this.isDirected=!1,this.color="rgba(255,255,255,0.1)",this.arrowColor="rgba(255,255,255,0.3)",this.node=e};var F=function(){function n(){this.nodes=[],this.graphReady=new o.m,this.nodeSelected=new o.m}var e=n.prototype;e.onMouseMove=function n(e){var l=this;var t=this.board.getBoundingClientRect();if(e.clientXt.right||e.yt.bottom)return;var i=new z;i.x=e.clientX-t.left,i.y=e.clientY-t.top,this.nodes.forEach(function(n){n.persistVisualProperties||(l.getDistanceOfNodes(n,i)<=n.radius?(n.backgroudColor="white",n.color="black"):n.resetVisualProperties())}),this.drawBoard()};e.onMouseClick=function n(e){var l=this;var t=this.board.getBoundingClientRect();if(e.clientXt.right||e.yt.bottom)return;var i=new z;i.x=e.clientX-t.left,i.y=e.clientY-t.top,this.nodes.forEach(function(n){n.resetMarkerProperties(),n.resetVisualProperties(),l.getDistanceOfNodes(n,i)<=n.radius&&(n.backgroudColor="white",n.color="black",l.nodeSelected.emit(n),n.persistVisualProperties=!0)}),this.drawBoard()};e.adjustBoardParams=function n(){var e=this.boardWrapperElementRef.nativeElement;this.board.width=e.clientWidth,this.board.height=e.clientHeight};e.drawNodes=function n(){var e=this;this.nodes.forEach(function(n){n.visited&&n.visitedAnimationNextFrame(),e.boardContext.beginPath(),e.boardContext.strokeStyle=n.borderColor,e.boardContext.fillStyle=n.backgroudColor,e.boardContext.shadowBlur=n.shadowBlur,e.boardContext.shadowColor=n.shodowColor,e.boardContext.arc(n.x,n.y,n.radius,0,2*Math.PI),e.boardContext.stroke(),e.boardContext.fill(),e.boardContext.fillStyle=n.color,e.boardContext.font=n.font,e.boardContext.fillText(n.value.toString(),n.x-n.radius/2+3,n.y+4),e.boardContext.closePath()})};e.drawEdges=function n(){var e=this;this.nodes.forEach(function(n){n.edges.forEach(function(l){if(e.boardContext.beginPath(),e.boardContext.shadowBlur=3,e.boardContext.strokeStyle=l.color,e.boardContext.moveTo(n.x,n.y),e.boardContext.lineTo(l.node.x,l.node.y),e.boardContext.stroke(),e.boardContext.closePath(),l.isDirected){var t=Math.atan(Math.abs(n.y-l.node.y)/Math.abs(n.x-l.node.x)),i=Math.PI/9,a=8,o=n.x::iterator i;\n\n while(!queue.empty())\n {\n // Dequeue a vertex from queue and print it\n s = queue.front();\n cout << s << " ";\n queue.pop_front();\n\n // Get all adjacent vertices of the dequeued\n // vertex s. If a adjacent has not been visited,\n // then mark it visited and enqueue it\n for (i = adj[s].begin(); i != adj[s].end(); ++i)\n {\n if (!visited[*i])\n {\n visited[*i] = true;\n queue.push_back(*i);\n }\n }\n }\n }\n\n // Driver program to test methods of graph class\n int main()\n {\n // Create a graph given in the above diagram\n Graph g(4);\n g.addEdge(0, 1);\n g.addEdge(0, 2);\n g.addEdge(1, 2);\n g.addEdge(2, 0);\n g.addEdge(2, 3);\n g.addEdge(3, 3);\n\n cout << "Following is Breadth First Traversal "\n << "(starting from vertex 2) ";\n g.BFS(2);\n\n return 0;\n }\n ',this.dfsExplanation="",this.dfsCode='\n // C++ program to print DFS traversal from\n // a given vertex in a given graph\n #include\n #include\n using namespace std;\n\n // Graph class represents a directed graph\n // using adjacency list representation\n class Graph\n {\n int V; // No. of vertices\n\n // Pointer to an array containing\n // adjacency lists\n list *adj;\n\n // A recursive function used by DFS\n void DFSUtil(int v, bool visited[]);\n public:\n Graph(int V); // Constructor\n\n // function to add an edge to graph\n void addEdge(int v, int w);\n\n // DFS traversal of the vertices\n // reachable from v\n void DFS(int v);\n };\n\n Graph::Graph(int V)\n {\n this->V = V;\n adj = new list[V];\n }\n\n void Graph::addEdge(int v, int w)\n {\n adj[v].push_back(w); // Add w to v\u2019s list.\n }\n\n void Graph::DFSUtil(int v, bool visited[])\n {\n // Mark the current node as visited and\n // print it\n visited[v] = true;\n cout << v << " ";\n\n // Recur for all the vertices adjacent\n // to this vertex\n list::iterator i;\n for (i = adj[v].begin(); i != adj[v].end(); ++i)\n if (!visited[*i])\n DFSUtil(*i, visited);\n }\n\n // DFS traversal of the vertices reachable from v.\n // It uses recursive DFSUtil()\n void Graph::DFS(int v)\n {\n // Mark all the vertices as not visited\n bool *visited = new bool[V];\n for (int i = 0; i < V; i++)\n visited[i] = false;\n\n // Call the recursive helper function\n // to print DFS traversal\n DFSUtil(v, visited);\n }\n\n // Driver code\n int main()\n {\n // Create a graph given in the above diagram\n Graph g(4);\n g.addEdge(0, 1);\n g.addEdge(0, 2);\n g.addEdge(1, 2);\n g.addEdge(2, 0);\n g.addEdge(2, 3);\n g.addEdge(3, 3);\n\n cout << "Following is Depth First Traversal"\n " (starting from vertex 2) ";\n g.DFS(2);\n\n return 0;\n }\n\n '};var j=function(){function n(n,e){var l=this;this.highlightService=n,this.notificationService=e,this.algorithms=[],this.algorithmNames=["BFS","DFS"],this.selectedAlgorithm=this.algorithmNames[0],this.samplesCount=70,this.maxSamplesCount=350,this.minValue=1,this.maxValue=150,this.values=[],this.speed=700,this.maxSpeed=3e3,this.visualizing=!1,this.customPanelOpened=!1,this.customValue=null,this.codePanelOpened=!1,this.minNodesDistance=17,this.isDirected=0,this.isCyclic=1,this.isConnected=0,this.algorithmCode="",this.algorithmExplanation="",this.graphAlgorithms=new B,this.algorithms={BFS:{name:"BFS",run:function n(){return l.bfs()},code:this.graphAlgorithms.bfsCode,explanation:this.graphAlgorithms.bfsExplanation},DFS:{name:"DFS",run:function n(){return l.dfs()},code:this.graphAlgorithms.dfsCode,explanation:this.graphAlgorithms.dfsExplanation}}}var e=n.prototype;e.onMouseClick=function n(e){this.visualizing||this.graph.onMouseClick(e)};e.onMouseMove=function n(e){this.visualizing||this.graph.onMouseMove(e)};e.onWindowResize=function n(e){this.graph.adjustBoardParams(),this.randomize(),this.graph.drawBoard()};e.ngOnInit=function n(){};e.ngAfterViewInit=function n(){this.randomize()};e.onGraphReady=function n(e){this.board=e,this.randomize()};e.onNodeSelected=function n(e){this.selectedNode=e};e.onRadioButtonChange=function n(e){switch(e){case"isDirected":this.setRandomEdges()}this.graph.drawBoard()};e.updateSpeed=function n(e){this.speed=e.value};e.updateSamplesCount=function n(e){this.customPanelOpened=!1,this.samplesCount=e.value,this.randomize()};e.updateMaxValue=function n(e){this.customPanelOpened=!1,this.maxValue=e.value,this.randomize()};e.addCustomValue=function n(){var e=this;if(null===this.customValue||this.customValue<=0||this.customValue>999)return;var l=new z;l.value=this.customValue,l.radius=12*l.value.toString().length;var t=1;do{if(l.x=Math.floor(Math.random()*(this.board.width-20-2*l.radius))+l.radius+10,l.y=Math.floor(Math.random()*(this.board.height-20-2*l.radius))+l.radius+10,t++>1e3)break}while(this.graph.nodes.some(function(n){return e.doesNodesAreTooCloser(n,l)}));t<1e3?this.graph.nodes.push(l):this.notificationService.messages.push("Node can't be add as area is full"),this.customValue=null,this.graph.drawBoard()};e.scrollToElement=function n(e){document.querySelector(e).scrollIntoView({behavior:"smooth",block:"center"})};e.removeCustomValue=function n(){var e=this;if(null===this.customValue||this.customValue<=0||this.customValue>999)return;var l=this.graph.nodes.findIndex(function(n){return n.value===e.customValue});l>=0&&this.graph.nodes.splice(l,1),this.graph.drawBoard()};e.toggleCustomPanel=function n(){this.customPanelOpened=!this.customPanelOpened,this.graph.nodes=[],this.graph.boardContext.clearRect(0,0,this.board.width,this.board.height),this.customPanelOpened||this.randomize()};e.toggleCodePanel=function n(){this.codePanelOpened=!this.codePanelOpened,this.algorithmCode=this.highlightService.highlightCode(this.algorithms[this.selectedAlgorithm].code,"cpp"),this.algorithmExplanation=this.algorithms[this.selectedAlgorithm].explanation};e.doesNodesAreTooCloser=function n(e,l){return this.graph.getDistanceOfNodes(e,l)=3)return;var t=new R(l);if(t.isDirected=1===e.isDirected,!n.doesEdgeExists(t)){if(!e.isDirected){var i=new R(n);i.isDirected=1===e.isDirected,l.doesEdgeExists(i)||l.edges.push(i)}n.edges.push(t)}})})};e.getRandomNodes=function n(){var e=this;var l=[];var t=function n(t){var i=1;var a=new z;do{if(a.value=Math.floor(Math.random()*(e.maxValue-e.minValue+1))+e.minValue,a.radius=12*a.value.toString().length,a.x=Math.floor(Math.random()*(e.board.width-20-2*a.radius))+a.radius+10,a.y=Math.floor(Math.random()*(e.board.height-20-2*a.radius))+a.radius+10,i++>1e3)break}while(l.some(function(n){return e.doesNodesAreTooCloser(n,a)}));i<1e3?l.push(a):e.samplesCount=l.length};for(var i=1;i<=this.samplesCount;i++){t(i)}return l};e.randomize=function n(){this.selectedNode=null,this.customPanelOpened=!1,this.graph.nodes=this.getRandomNodes(),this.setRandomEdges(),this.graph.drawBoard()};e.getNearestKNodes=function n(e,l,t){var i=this;if(t>=l.length)return[];var a=l.slice(0);return a.sort(function(n,l){return i.graph.getDistanceOfNodes(e,n)>i.graph.getDistanceOfNodes(e,l)?1:-1}),a.slice(1,t+1)};e.resetNodes=function n(){this.graph.nodes.forEach(function(n){n.resetMarkerProperties(),n.resetVisualProperties()})};e.eachStep=function n(){return A.a(this,void 0,void 0,regeneratorRuntime.mark(function n(){return regeneratorRuntime.wrap(function n(e){while(1){switch(e.prev=e.next){case 0:e.t0=!!this.visualizing;if(!e.t0){e.next=6;break}this.graph.drawBoard();e.next=5;return N.a.delay(this.maxSpeed-this.speed);case 5:e.t0=!0;case 6:return e.abrupt("return",e.t0);case 7:case"end":return e.stop()}}},n,this)}))};e.toggleVisualize=function n(){return A.a(this,void 0,void 0,regeneratorRuntime.mark(function n(){return regeneratorRuntime.wrap(function n(e){while(1){switch(e.prev=e.next){case 0:if(!this.visualizing){e.next=4;break}this.visualizing=!1;e.next=6;break;case 4:e.next=6;return this.algorithms[this.selectedAlgorithm].run();case 6:case"end":return e.stop()}}},n,this)}))};e.bfs=function n(){return A.a(this,void 0,void 0,regeneratorRuntime.mark(function n(){var e,l,t,i;return regeneratorRuntime.wrap(function n(a){while(1){switch(a.prev=a.next){case 0:if(!(this.resetNodes(),!this.selectedNode)){a.next=2;break}return a.abrupt("return",void this.notificationService.addMesage("Select any node as root"));case 2:this.visualizing=!0;e=[];this.selectedNode.visited=!0;this.selectedNode.isRoot=!0;this.selectedNode.persistVisualProperties=!0;e.push(this.selectedNode);a.next=10;return this.eachStep();case 10:if(a.sent){a.next=12;break}return a.abrupt("return");case 12:l=1,t=0;case 13:if(!(0!==e.length)){a.next=22;break}for(;0!==l;){i=e.shift();i.persistVisualProperties=!0,i.edges.forEach(function(n){n.node.visited||(n.node.visited=!0,e.push(n.node),t++)}),l--}a.next=17;return this.eachStep();case 17:if(a.sent){a.next=19;break}return a.abrupt("return");case 19:l=t,t=0;case 20:a.next=13;break;case 22:this.visualizing=!1;case 23:case"end":return a.stop()}}},n,this)}))};e.dfs=function n(){return A.a(this,void 0,void 0,regeneratorRuntime.mark(function n(){return regeneratorRuntime.wrap(function n(e){while(1){switch(e.prev=e.next){case 0:this.resetNodes();if(!this.selectedNode){e.next=9;break}this.visualizing=!0;this.selectedNode.isRoot=!0;e.next=6;return this.dfsUtil(this.selectedNode);case 6:this.visualizing=!1;e.next=10;break;case 9:this.notificationService.addMesage("Select any node as root");case 10:case"end":return e.stop()}}},n,this)}))};e.dfsUtil=function n(e){return A.a(this,void 0,void 0,regeneratorRuntime.mark(function n(){var l,t,i,a,o;return regeneratorRuntime.wrap(function n(r){while(1){switch(r.prev=r.next){case 0:e.visited=!0;e.persistVisualProperties=!0;r.next=4;return this.eachStep();case 4:if(r.sent){r.next=6;break}return r.abrupt("return",!1);case 6:l=e.edges,t=Array.isArray(l),i=0,l=t?l:l[Symbol.iterator]();case 7:if(!t){r.next=13;break}if(!(i>=l.length)){r.next=10;break}return r.abrupt("break",27);case 10:a=l[i++];r.next=17;break;case 13:i=l.next();if(!i.done){r.next=16;break}return r.abrupt("break",27);case 16:a=i.value;case 17:o=a;r.t0=!o.node.visited;if(!r.t0){r.next=23;break}r.next=22;return this.dfsUtil(o.node);case 22:r.t0=!r.sent;case 23:if(!r.t0){r.next=25;break}return r.abrupt("return",!1);case 25:r.next=7;break;case 27:return r.abrupt("return",!0);case 28:case"end":return r.stop()}}},n,this)}))};return n}();var L=a("SrJx"),q=a("OC8m"),K=o.qb({encapsulation:0,styles:[[".submain-container[_ngcontent-%COMP%] .toolbar[_ngcontent-%COMP%] .mat-accent .mat-slider-thumb{background-color:#d168ff}.submain-container[_ngcontent-%COMP%] .toolbar[_ngcontent-%COMP%] .mat-accent .mat-slider-thumb-label{background-color:#d168ff}.submain-container[_ngcontent-%COMP%] .toolbar[_ngcontent-%COMP%] .mat-accent .mat-slider-track-fill{background-color:#d168ff}.submain-container[_ngcontent-%COMP%] .toolbar[_ngcontent-%COMP%] .radio-button[_ngcontent-%COMP%]{padding:0 20px}.submain-container[_ngcontent-%COMP%] .toolbar[_ngcontent-%COMP%] .label-name[_ngcontent-%COMP%]{color:#fff;font-size:14px}"]],data:{}});function T(n){return o.Lb(0,[(n()(),o.sb(0,0,null,null,3,"option",[],[[8,"disabled",0]],null,null,null,null)),o.rb(1,147456,null,0,u.i,[o.k,o.D,[2,u.k]],{value:[0,"value"]},null),o.rb(2,147456,null,0,u.n,[o.k,o.D,[8,null]],{value:[0,"value"]},null),(n()(),o.Kb(3,null,[" "," "]))],function(n,e){n(e,1,0,e.context.$implicit),n(e,2,0,e.context.$implicit)},function(n,e){n(e,0,0,e.component.visualizing),n(e,3,0,e.context.$implicit)})}function H(n){return o.Lb(0,[(n()(),o.sb(0,0,null,null,1,"span",[],null,null,null,null,null)),(n()(),o.Kb(-1,null,["Stop"]))],null,null)}function U(n){return o.Lb(0,[(n()(),o.Kb(-1,null,["Visualize"]))],null,null)}function X(n){return o.Lb(0,[(n()(),o.sb(0,0,null,null,13,"div",[["class","custom-panel"]],null,null,null,null,null)),(n()(),o.sb(1,0,null,null,6,"input",[["class","custom-value"],["max","999"],["min","1"],["placeholder","Enter custom value"],["type","number"]],[[2,"ng-untouched",null],[2,"ng-touched",null],[2,"ng-pristine",null],[2,"ng-dirty",null],[2,"ng-valid",null],[2,"ng-invalid",null],[2,"ng-pending",null]],[[null,"ngModelChange"],[null,"input"],[null,"blur"],[null,"compositionstart"],[null,"compositionend"],[null,"change"]],function(n,e,l){var t=!0,i=n.component;return"input"===e&&(t=!1!==o.Eb(n,2)._handleInput(l.target.value)&&t),"blur"===e&&(t=!1!==o.Eb(n,2).onTouched()&&t),"compositionstart"===e&&(t=!1!==o.Eb(n,2)._compositionStart()&&t),"compositionend"===e&&(t=!1!==o.Eb(n,2)._compositionEnd(l.target.value)&&t),"change"===e&&(t=!1!==o.Eb(n,3).onChange(l.target.value)&&t),"input"===e&&(t=!1!==o.Eb(n,3).onChange(l.target.value)&&t),"blur"===e&&(t=!1!==o.Eb(n,3).onTouched()&&t),"ngModelChange"===e&&(t=!1!==(i.customValue=l)&&t),t},null,null)),o.rb(2,16384,null,0,u.b,[o.D,o.k,[2,u.a]],null,null),o.rb(3,16384,null,0,u.j,[o.D,o.k],null,null),o.Hb(1024,null,u.e,function(n,e){return[n,e]},[u.b,u.j]),o.rb(5,671744,null,0,u.h,[[8,null],[8,null],[8,null],[6,u.e]],{model:[0,"model"]},{update:"ngModelChange"}),o.Hb(2048,null,u.f,null,[u.h]),o.rb(7,16384,null,0,u.g,[[4,u.f]],null,null),(n()(),o.sb(8,0,null,null,2,"button",[["class","edit-button"]],null,[[null,"click"]],function(n,e,l){var t=!0;return"click"===e&&(t=!1!==n.component.addCustomValue()&&t),t},null,null)),(n()(),o.sb(9,0,null,null,1,"span",[],null,null,null,null,null)),(n()(),o.Kb(-1,null,["+"])),(n()(),o.sb(11,0,null,null,2,"button",[["class","edit-button"]],null,[[null,"click"]],function(n,e,l){var t=!0;return"click"===e&&(t=!1!==n.component.removeCustomValue()&&t),t},null,null)),(n()(),o.sb(12,0,null,null,1,"span",[],null,null,null,null,null)),(n()(),o.Kb(-1,null,["-"]))],function(n,e){n(e,5,0,e.component.customValue)},function(n,e){n(e,1,0,o.Eb(e,7).ngClassUntouched,o.Eb(e,7).ngClassTouched,o.Eb(e,7).ngClassPristine,o.Eb(e,7).ngClassDirty,o.Eb(e,7).ngClassValid,o.Eb(e,7).ngClassInvalid,o.Eb(e,7).ngClassPending)})}function W(n){return o.Lb(0,[(n()(),o.sb(0,0,null,null,13,"div",[["class","code-panel"]],null,null,null,null,null)),(n()(),o.sb(1,0,null,null,1,"button",[["class","closeCodePanel"]],null,[[null,"click"]],function(n,e,l){var t=!0;return"click"===e&&(t=!1!==n.component.toggleCodePanel()&&t),t},null,null)),(n()(),o.Kb(-1,null,[" X "])),(n()(),o.sb(3,0,null,null,4,"div",[["class","code-explanation-wrapper"]],null,null,null,null,null)),(n()(),o.sb(4,0,null,null,1,"div",[["class","code-explanation-heading"]],null,null,null,null,null)),(n()(),o.Kb(5,null,["",""])),(n()(),o.sb(6,0,null,null,1,"pre",[["class","code-explanation wrap-pre-tag-text"]],[[8,"innerHTML",1]],null,null,null,null)),(n()(),o.Kb(-1,null,[" "])),(n()(),o.sb(8,0,null,null,5,"div",[["class","code-wrapper"]],null,null,null,null,null)),(n()(),o.sb(9,0,null,null,4,"pre",[],null,null,null,null,null)),(n()(),o.Kb(-1,null,[" "])),(n()(),o.sb(11,0,null,null,1,"code",[["class","code"]],[[8,"innerHTML",1]],null,null,null,null)),(n()(),o.Kb(-1,null,["\n "])),(n()(),o.Kb(-1,null,["\n "]))],null,function(n,e){var l=e.component;n(e,5,0,l.selectedAlgorithm),n(e,6,0,l.algorithmExplanation),n(e,11,0,l.algorithmCode)})}function J(n){return o.Lb(0,[o.Ib(671088640,1,{graph:0}),(n()(),o.sb(1,0,null,null,88,"div",[["class","submain-container"]],null,null,null,null,null)),(n()(),o.sb(2,0,null,null,2,"div",[["class","header"]],null,null,null,null,null)),(n()(),o.sb(3,0,null,null,1,"div",[["class","brand"]],null,null,null,null,null)),(n()(),o.Kb(-1,null,[" Graph Algorithms Visualizer "])),(n()(),o.sb(5,0,null,null,75,"div",[["class","toolbar"]],null,null,null,null,null)),(n()(),o.sb(6,0,null,null,74,"nav",[["class","navbar navbar-expand-lg"]],null,null,null,null,null)),(n()(),o.sb(7,0,null,null,1,"button",[["class","navbar-toggler"],["data-target","#navbarContent"],["data-toggle","collapse"],["type","button"]],null,null,null,null,null)),(n()(),o.sb(8,0,null,null,0,"i",[["class","fa fa-bars togglerIcon"]],null,null,null,null,null)),(n()(),o.sb(9,0,null,null,71,"div",[["class","collapse navbar-collapse"],["id","navbarContent"]],null,null,null,null,null)),(n()(),o.sb(10,0,null,null,70,"div",[["class","navWrapper row col-md-12"]],null,null,null,null,null)),(n()(),o.sb(11,0,null,null,3,"div",[["class","col-lg-1 col-md-2 col-sm-4 btn btn-primary navItem"]],null,[[null,"click"]],function(n,e,l){var t=!0;return"click"===e&&(t=!1!==o.Eb(n,12).onClick()&&t),t},null,null)),o.rb(12,16384,null,0,d.l,[d.k,d.a,[8,null],o.D,o.k],{routerLink:[0,"routerLink"]},null),o.Fb(13,1),(n()(),o.Kb(-1,null,[" Home "])),(n()(),o.sb(15,0,null,null,8,"div",[["class","col-lg-2 col-md-3 col-sm-4 navItem p-0"]],null,null,null,null,null)),(n()(),o.sb(16,0,null,null,7,"select",[],[[2,"ng-untouched",null],[2,"ng-touched",null],[2,"ng-pristine",null],[2,"ng-dirty",null],[2,"ng-valid",null],[2,"ng-invalid",null],[2,"ng-pending",null]],[[null,"ngModelChange"],[null,"change"],[null,"blur"]],function(n,e,l){var t=!0,i=n.component;return"change"===e&&(t=!1!==o.Eb(n,17).onChange(l.target.value)&&t),"blur"===e&&(t=!1!==o.Eb(n,17).onTouched()&&t),"ngModelChange"===e&&(t=!1!==(i.selectedAlgorithm=l)&&t),t},null,null)),o.rb(17,16384,null,0,u.k,[o.D,o.k],null,null),o.Hb(1024,null,u.e,function(n){return[n]},[u.k]),o.rb(19,671744,null,0,u.h,[[8,null],[8,null],[8,null],[6,u.e]],{model:[0,"model"]},{update:"ngModelChange"}),o.Hb(2048,null,u.f,null,[u.h]),o.rb(21,16384,null,0,u.g,[[4,u.f]],null,null),(n()(),o.hb(16777216,null,null,1,null,T)),o.rb(23,278528,null,0,c.j,[o.O,o.L,o.r],{ngForOf:[0,"ngForOf"]},null),(n()(),o.sb(24,0,null,null,1,"button",[["class","btn btn-danger col-lg-2 col-md-2 col-sm-4 navItem"]],[[8,"disabled",0]],[[null,"click"]],function(n,e,l){var t=!0;return"click"===e&&(t=!1!==n.component.randomize()&&t),t},null,null)),(n()(),o.Kb(-1,null,[" Randomize "])),(n()(),o.sb(26,0,null,null,6,"button",[],null,[[null,"click"]],function(n,e,l){var t=!0,i=n.component;return"click"===e&&(i.toggleVisualize(),t=!1!==i.scrollToElement("#graph")&&t),t},null,null)),o.Hb(512,null,c.z,c.A,[o.r,o.s,o.k,o.D]),o.rb(28,278528,null,0,c.i,[c.z],{ngClass:[0,"ngClass"]},null),o.Gb(29,{"btn-success":0,"btn-danger":1,"btn col-lg-1 col-md-2 col-sm-4 navItem":2}),(n()(),o.hb(16777216,null,null,1,null,H)),o.rb(31,16384,null,0,c.k,[o.O,o.L],{ngIf:[0,"ngIf"],ngIfElse:[1,"ngIfElse"]},null),(n()(),o.hb(0,[["visualize",2]],null,0,null,U)),(n()(),o.sb(33,0,null,null,4,"button",[],[[8,"disabled",0]],[[null,"click"]],function(n,e,l){var t=!0;return"click"===e&&(t=!1!==n.component.toggleCustomPanel()&&t),t},null,null)),o.Hb(512,null,c.z,c.A,[o.r,o.s,o.k,o.D]),o.rb(35,278528,null,0,c.i,[c.z],{ngClass:[0,"ngClass"]},null),o.Gb(36,{"btn btn-info col-lg-1 col-md-2 col-sm-4 navItem":0}),(n()(),o.Kb(-1,null,[" Custom "])),(n()(),o.sb(38,0,null,null,4,"button",[],null,[[null,"click"]],function(n,e,l){var t=!0;return"click"===e&&(t=!1!==n.component.toggleCodePanel()&&t),t},null,null)),o.Hb(512,null,c.z,c.A,[o.r,o.s,o.k,o.D]),o.rb(40,278528,null,0,c.i,[c.z],{ngClass:[0,"ngClass"]},null),o.Gb(41,{"col-lg-1 col-md-2 col-sm-4 navItem show-code-button":0}),(n()(),o.Kb(-1,null,[" < / > "])),(n()(),o.sb(43,0,null,null,6,"div",[["class","col-lg-2 col-md-3 col-sm-4 navItem p-0"]],null,null,null,null,null)),(n()(),o.sb(44,0,null,null,2,":svg:svg",[["fill","white"],["style","width:30px;height:40px;"]],null,null,null,null,null)),(n()(),o.sb(45,0,null,null,0,":svg:path",[["d","M31.842,15.057c-0.264-0.265-0.689-0.265-0.953,0c-0.228,0.229-0.246,0.573-0.079,0.834l-3.007,3.008 c-0.089-0.061-0.187-0.105-0.279-0.157l0.904-3.373c0.309,0.014,0.6-0.177,0.682-0.485c0.1-0.36-0.114-0.729-0.476-0.825 c-0.36-0.098-0.729,0.116-0.825,0.478c-0.083,0.311,0.073,0.618,0.351,0.762l-0.888,3.307c-0.371-0.164-0.778-0.263-1.207-0.287 c-3.048-0.168-2.584,3.011-3.806,3.01c-0.285,0-1.716-0.646-1.716-0.646l-0.982,0.201c-3.417,0.497-6.636-1.889-6.76-1.98 l-0.39-0.296c0,0-0.661,1.275-1.829,1.912c-0.865,0.47-1.861,0.567-2.545,0.567c-1.251,0-2.832-0.349-3.539-1.128 c-0.111-0.123-0.199-0.256-0.301-0.383c-3.606,1.845-5.085,4.896-3.663,4.896c2.315,0,25.529,0,25.529,0 c1.698,0,3.075-1.378,3.075-3.076c0-0.951-0.44-1.762-1.119-2.316l2.986-2.988c0.261,0.169,0.605,0.148,0.835-0.078 C32.106,15.748,32.106,15.32,31.842,15.057z M25.71,20.926c-0.372,0-0.674-0.302-0.674-0.674s0.302-0.674,0.674-0.674 s0.674,0.302,0.674,0.674S26.083,20.926,25.71,20.926z"]],null,null,null,null,null)),(n()(),o.sb(46,0,null,null,0,":svg:path",[["d","M10.259,19.925c2.863-1.558,1.811-7.37-1.684-5.348c3.494-2.905,4.963,2.837,4.633,3.785c0,0,3.071,2.32,6.253,1.853 c0-4.033-1.423-10.616-7.265-12.29C4.408,5.693,0.45,14.493,4.998,19.504C5.766,20.35,8.602,20.828,10.259,19.925z"]],null,null,null,null,null)),(n()(),o.sb(47,0,null,null,2,"mat-slider",[["class","mat-slider"],["min","0"],["role","slider"]],[[8,"tabIndex",0],[1,"aria-disabled",0],[1,"aria-valuemax",0],[1,"aria-valuemin",0],[1,"aria-valuenow",0],[1,"aria-orientation",0],[2,"mat-slider-disabled",null],[2,"mat-slider-has-ticks",null],[2,"mat-slider-horizontal",null],[2,"mat-slider-axis-inverted",null],[2,"mat-slider-sliding",null],[2,"mat-slider-thumb-label-showing",null],[2,"mat-slider-vertical",null],[2,"mat-slider-min-value",null],[2,"mat-slider-hide-last-tick",null],[2,"_mat-animation-noopable",null]],[[null,"change"],[null,"focus"],[null,"blur"],[null,"mousedown"],[null,"keydown"],[null,"keyup"],[null,"mouseenter"],[null,"slide"],[null,"slideend"],[null,"slidestart"],[null,"selectstart"]],function(n,e,l){var t=!0,i=n.component;return"focus"===e&&(t=!1!==o.Eb(n,49)._onFocus()&&t),"blur"===e&&(t=!1!==o.Eb(n,49)._onBlur()&&t),"mousedown"===e&&(t=!1!==o.Eb(n,49)._onMousedown(l)&&t),"keydown"===e&&(t=!1!==o.Eb(n,49)._onKeydown(l)&&t),"keyup"===e&&(t=!1!==o.Eb(n,49)._onKeyup()&&t),"mouseenter"===e&&(t=!1!==o.Eb(n,49)._onMouseenter()&&t),"slide"===e&&(t=!1!==o.Eb(n,49)._onSlide(l)&&t),"slideend"===e&&(t=!1!==o.Eb(n,49)._onSlideEnd()&&t),"slidestart"===e&&(t=!1!==o.Eb(n,49)._onSlideStart(l)&&t),"selectstart"===e&&(t=!1!==l.preventDefault()&&t),"change"===e&&(t=!1!==i.updateSpeed(l)&&t),t},h.b,h.a)),o.Hb(5120,null,u.e,function(n){return[n]},[b.a]),o.rb(49,245760,null,0,b.a,[o.k,m.a,o.h,[2,p.b],[8,null],[2,g.a]],{max:[0,"max"],min:[1,"min"],value:[2,"value"]},{change:"change"}),(n()(),o.sb(50,0,null,null,6,"div",[["class","col-lg-2 col-md-3 col-sm-4 navItem p-0"]],null,null,null,null,null)),(n()(),o.sb(51,0,null,null,5,"div",[["class","row"]],null,null,null,null,null)),(n()(),o.sb(52,0,null,null,1,"span",[["style","color:white;padding: 10px 0px 10px 20px"]],null,null,null,null,null)),(n()(),o.Kb(-1,null,["N"])),(n()(),o.sb(54,0,null,null,2,"mat-slider",[["class","mat-slider"],["min","1"],["role","slider"],["thumbLabel",""],["tickInterval","1"]],[[8,"tabIndex",0],[1,"aria-disabled",0],[1,"aria-valuemax",0],[1,"aria-valuemin",0],[1,"aria-valuenow",0],[1,"aria-orientation",0],[2,"mat-slider-disabled",null],[2,"mat-slider-has-ticks",null],[2,"mat-slider-horizontal",null],[2,"mat-slider-axis-inverted",null],[2,"mat-slider-sliding",null],[2,"mat-slider-thumb-label-showing",null],[2,"mat-slider-vertical",null],[2,"mat-slider-min-value",null],[2,"mat-slider-hide-last-tick",null],[2,"_mat-animation-noopable",null]],[[null,"change"],[null,"focus"],[null,"blur"],[null,"mousedown"],[null,"keydown"],[null,"keyup"],[null,"mouseenter"],[null,"slide"],[null,"slideend"],[null,"slidestart"],[null,"selectstart"]],function(n,e,l){var t=!0,i=n.component;return"focus"===e&&(t=!1!==o.Eb(n,56)._onFocus()&&t),"blur"===e&&(t=!1!==o.Eb(n,56)._onBlur()&&t),"mousedown"===e&&(t=!1!==o.Eb(n,56)._onMousedown(l)&&t),"keydown"===e&&(t=!1!==o.Eb(n,56)._onKeydown(l)&&t),"keyup"===e&&(t=!1!==o.Eb(n,56)._onKeyup()&&t),"mouseenter"===e&&(t=!1!==o.Eb(n,56)._onMouseenter()&&t),"slide"===e&&(t=!1!==o.Eb(n,56)._onSlide(l)&&t),"slideend"===e&&(t=!1!==o.Eb(n,56)._onSlideEnd()&&t),"slidestart"===e&&(t=!1!==o.Eb(n,56)._onSlideStart(l)&&t),"selectstart"===e&&(t=!1!==l.preventDefault()&&t),"change"===e&&(t=!1!==i.updateSamplesCount(l)&&t),t},h.b,h.a)),o.Hb(5120,null,u.e,function(n){return[n]},[b.a]),o.rb(56,245760,null,0,b.a,[o.k,m.a,o.h,[2,p.b],[8,null],[2,g.a]],{disabled:[0,"disabled"],max:[1,"max"],min:[2,"min"],thumbLabel:[3,"thumbLabel"],tickInterval:[4,"tickInterval"],value:[5,"value"]},{change:"change"}),(n()(),o.sb(57,0,null,null,6,"div",[["class","col-lg-2 col-md-3 col-sm-4 navItem p-0"]],null,null,null,null,null)),(n()(),o.sb(58,0,null,null,5,"div",[["class","row"]],null,null,null,null,null)),(n()(),o.sb(59,0,null,null,1,"span",[["style","color:white;padding: 10px 0px 10px 20px"]],null,null,null,null,null)),(n()(),o.Kb(-1,null,["A"])),(n()(),o.sb(61,0,null,null,2,"mat-slider",[["class","mat-slider"],["max","200"],["min","1"],["role","slider"],["thumbLabel",""],["tickInterval","1"]],[[8,"tabIndex",0],[1,"aria-disabled",0],[1,"aria-valuemax",0],[1,"aria-valuemin",0],[1,"aria-valuenow",0],[1,"aria-orientation",0],[2,"mat-slider-disabled",null],[2,"mat-slider-has-ticks",null],[2,"mat-slider-horizontal",null],[2,"mat-slider-axis-inverted",null],[2,"mat-slider-sliding",null],[2,"mat-slider-thumb-label-showing",null],[2,"mat-slider-vertical",null],[2,"mat-slider-min-value",null],[2,"mat-slider-hide-last-tick",null],[2,"_mat-animation-noopable",null]],[[null,"change"],[null,"focus"],[null,"blur"],[null,"mousedown"],[null,"keydown"],[null,"keyup"],[null,"mouseenter"],[null,"slide"],[null,"slideend"],[null,"slidestart"],[null,"selectstart"]],function(n,e,l){var t=!0,i=n.component;return"focus"===e&&(t=!1!==o.Eb(n,63)._onFocus()&&t),"blur"===e&&(t=!1!==o.Eb(n,63)._onBlur()&&t),"mousedown"===e&&(t=!1!==o.Eb(n,63)._onMousedown(l)&&t),"keydown"===e&&(t=!1!==o.Eb(n,63)._onKeydown(l)&&t),"keyup"===e&&(t=!1!==o.Eb(n,63)._onKeyup()&&t),"mouseenter"===e&&(t=!1!==o.Eb(n,63)._onMouseenter()&&t),"slide"===e&&(t=!1!==o.Eb(n,63)._onSlide(l)&&t),"slideend"===e&&(t=!1!==o.Eb(n,63)._onSlideEnd()&&t),"slidestart"===e&&(t=!1!==o.Eb(n,63)._onSlideStart(l)&&t),"selectstart"===e&&(t=!1!==l.preventDefault()&&t),"change"===e&&(t=!1!==i.updateMaxValue(l)&&t),t},h.b,h.a)),o.Hb(5120,null,u.e,function(n){return[n]},[b.a]),o.rb(63,245760,null,0,b.a,[o.k,m.a,o.h,[2,p.b],[8,null],[2,g.a]],{disabled:[0,"disabled"],max:[1,"max"],min:[2,"min"],thumbLabel:[3,"thumbLabel"],tickInterval:[4,"tickInterval"],value:[5,"value"]},{change:"change"}),(n()(),o.sb(64,0,null,null,16,"div",[["class","col-lg-1 col-md-2 col-sm-3 navItem p-0"]],null,null,null,null,null)),(n()(),o.sb(65,0,null,null,15,"div",[["class","row"]],null,null,null,null,null)),(n()(),o.sb(66,0,null,null,14,"mat-radio-group",[["class","mat-radio-group"],["role","radiogroup"]],[[2,"ng-untouched",null],[2,"ng-touched",null],[2,"ng-pristine",null],[2,"ng-dirty",null],[2,"ng-valid",null],[2,"ng-invalid",null],[2,"ng-pending",null]],[[null,"ngModelChange"],[null,"change"]],function(n,e,l){var t=!0,i=n.component;return"ngModelChange"===e&&(t=!1!==(i.isDirected=l)&&t),"change"===e&&(t=!1!==i.onRadioButtonChange("isDirected")&&t),t},null,null)),o.rb(67,1064960,null,1,_,[o.h],null,{change:"change"}),o.Ib(603979776,2,{_radios:1}),o.Hb(1024,null,u.e,function(n){return[n]},[_]),o.rb(70,671744,null,0,u.h,[[8,null],[8,null],[8,null],[6,u.e]],{model:[0,"model"]},{update:"ngModelChange"}),o.Hb(2048,null,u.f,null,[u.h]),o.rb(72,16384,null,0,u.g,[[4,u.f]],null,null),(n()(),o.sb(73,0,null,null,3,"mat-radio-button",[["class","radio-button mat-radio-button"]],[[2,"mat-radio-checked",null],[2,"mat-radio-disabled",null],[2,"_mat-animation-noopable",null],[2,"mat-primary",null],[2,"mat-accent",null],[2,"mat-warn",null],[1,"tabindex",0],[1,"id",0]],[[null,"focus"]],function(n,e,l){var t=!0;return"focus"===e&&(t=!1!==o.Eb(n,74)._inputElement.nativeElement.focus()&&t),t},D,I)),o.rb(74,4440064,[[2,4]],0,y,[[2,_],o.k,o.h,m.a,V,[2,g.a],[2,k]],{value:[0,"value"]},null),(n()(),o.sb(75,0,null,0,1,"span",[["class","label-name"]],null,null,null,null,null)),(n()(),o.Kb(-1,null,["Directed"])),(n()(),o.sb(77,0,null,null,3,"mat-radio-button",[["class","radio-button mat-radio-button"]],[[2,"mat-radio-checked",null],[2,"mat-radio-disabled",null],[2,"_mat-animation-noopable",null],[2,"mat-primary",null],[2,"mat-accent",null],[2,"mat-warn",null],[1,"tabindex",0],[1,"id",0]],[[null,"focus"]],function(n,e,l){var t=!0;return"focus"===e&&(t=!1!==o.Eb(n,78)._inputElement.nativeElement.focus()&&t),t},D,I)),o.rb(78,4440064,[[2,4]],0,y,[[2,_],o.k,o.h,m.a,V,[2,g.a],[2,k]],{value:[0,"value"]},null),(n()(),o.sb(79,0,null,0,1,"span",[["class","label-name"]],null,null,null,null,null)),(n()(),o.Kb(-1,null,["Undirected"])),(n()(),o.sb(81,0,null,null,6,"div",[["class","section"]],null,null,null,null,null)),(n()(),o.hb(16777216,null,null,1,null,X)),o.rb(83,16384,null,0,c.k,[o.O,o.L],{ngIf:[0,"ngIf"]},null),(n()(),o.sb(84,0,null,null,1,"app-graph",[["id","graph"]],null,[[null,"graphReady"],[null,"nodeSelected"]],function(n,e,l){var t=!0,i=n.component;return"graphReady"===e&&(t=!1!==i.onGraphReady(l)&&t),"nodeSelected"===e&&(t=!1!==i.onNodeSelected(l)&&t),t},O,G)),o.rb(85,4308992,[[1,4],["graph",4]],0,F,[],null,{graphReady:"graphReady",nodeSelected:"nodeSelected"}),(n()(),o.hb(16777216,null,null,1,null,W)),o.rb(87,16384,null,0,c.k,[o.O,o.L],{ngIf:[0,"ngIf"]},null),(n()(),o.sb(88,0,null,null,1,"div",[["class","glow-footer"]],null,null,null,null,null)),(n()(),o.Kb(-1,null,[" while( !(success = try())); "]))],function(n,e){var l=e.component,t=n(e,13,0,"");n(e,12,0,t),n(e,19,0,l.selectedAlgorithm),n(e,23,0,l.algorithmNames);var i=n(e,29,0,!l.visualizing,l.visualizing,!0);n(e,28,0,i),n(e,31,0,l.visualizing,o.Eb(e,32));var a=n(e,36,0,!0);n(e,35,0,a);var r=n(e,41,0,!0);n(e,40,0,r),n(e,49,0,l.maxSpeed,"0",l.speed),n(e,56,0,l.visualizing,l.maxSamplesCount,"1","","1",l.samplesCount),n(e,63,0,l.visualizing,"200","1","","1",l.maxValue),n(e,70,0,l.isDirected),n(e,74,0,1),n(e,78,0,0),n(e,83,0,l.customPanelOpened),n(e,85,0),n(e,87,0,l.codePanelOpened)},function(n,e){var l=e.component;n(e,16,0,o.Eb(e,21).ngClassUntouched,o.Eb(e,21).ngClassTouched,o.Eb(e,21).ngClassPristine,o.Eb(e,21).ngClassDirty,o.Eb(e,21).ngClassValid,o.Eb(e,21).ngClassInvalid,o.Eb(e,21).ngClassPending),n(e,24,0,l.visualizing),n(e,33,0,l.visualizing),n(e,47,1,[o.Eb(e,49).tabIndex,o.Eb(e,49).disabled,o.Eb(e,49).max,o.Eb(e,49).min,o.Eb(e,49).value,o.Eb(e,49).vertical?"vertical":"horizontal",o.Eb(e,49).disabled,o.Eb(e,49).tickInterval,!o.Eb(e,49).vertical,o.Eb(e,49)._invertAxis,o.Eb(e,49)._isSliding,o.Eb(e,49).thumbLabel,o.Eb(e,49).vertical,o.Eb(e,49)._isMinValue,o.Eb(e,49).disabled||o.Eb(e,49)._isMinValue&&o.Eb(e,49)._thumbGap&&o.Eb(e,49)._invertAxis,"NoopAnimations"===o.Eb(e,49)._animationMode]),n(e,54,1,[o.Eb(e,56).tabIndex,o.Eb(e,56).disabled,o.Eb(e,56).max,o.Eb(e,56).min,o.Eb(e,56).value,o.Eb(e,56).vertical?"vertical":"horizontal",o.Eb(e,56).disabled,o.Eb(e,56).tickInterval,!o.Eb(e,56).vertical,o.Eb(e,56)._invertAxis,o.Eb(e,56)._isSliding,o.Eb(e,56).thumbLabel,o.Eb(e,56).vertical,o.Eb(e,56)._isMinValue,o.Eb(e,56).disabled||o.Eb(e,56)._isMinValue&&o.Eb(e,56)._thumbGap&&o.Eb(e,56)._invertAxis,"NoopAnimations"===o.Eb(e,56)._animationMode]),n(e,61,1,[o.Eb(e,63).tabIndex,o.Eb(e,63).disabled,o.Eb(e,63).max,o.Eb(e,63).min,o.Eb(e,63).value,o.Eb(e,63).vertical?"vertical":"horizontal",o.Eb(e,63).disabled,o.Eb(e,63).tickInterval,!o.Eb(e,63).vertical,o.Eb(e,63)._invertAxis,o.Eb(e,63)._isSliding,o.Eb(e,63).thumbLabel,o.Eb(e,63).vertical,o.Eb(e,63)._isMinValue,o.Eb(e,63).disabled||o.Eb(e,63)._isMinValue&&o.Eb(e,63)._thumbGap&&o.Eb(e,63)._invertAxis,"NoopAnimations"===o.Eb(e,63)._animationMode]),n(e,66,0,o.Eb(e,72).ngClassUntouched,o.Eb(e,72).ngClassTouched,o.Eb(e,72).ngClassPristine,o.Eb(e,72).ngClassDirty,o.Eb(e,72).ngClassValid,o.Eb(e,72).ngClassInvalid,o.Eb(e,72).ngClassPending),n(e,73,0,o.Eb(e,74).checked,o.Eb(e,74).disabled,"NoopAnimations"===o.Eb(e,74)._animationMode,"primary"===o.Eb(e,74).color,"accent"===o.Eb(e,74).color,"warn"===o.Eb(e,74).color,-1,o.Eb(e,74).id),n(e,77,0,o.Eb(e,78).checked,o.Eb(e,78).disabled,"NoopAnimations"===o.Eb(e,78)._animationMode,"primary"===o.Eb(e,78).color,"accent"===o.Eb(e,78).color,"warn"===o.Eb(e,78).color,-1,o.Eb(e,78).id)})}function Y(n){return o.Lb(0,[(n()(),o.sb(0,0,null,null,1,"app-graph-algorithms",[],null,[[null,"click"],[null,"mousemove"],["window","resize"]],function(n,e,l){var t=!0;return"click"===e&&(t=!1!==o.Eb(n,1).onMouseClick(l)&&t),"mousemove"===e&&(t=!1!==o.Eb(n,1).onMouseMove(l)&&t),"window:resize"===e&&(t=!1!==o.Eb(n,1).onWindowResize(l)&&t),t},J,K)),o.rb(1,4308992,null,0,j,[L.a,q.a],null,null)],function(n,e){n(e,1,0)},null)}var $=o.ob("app-graph-algorithms",j,Y,{},{},[]);var Q=function n(){};var Z=a("PCNd");a.d(i,"GraphAlgorithmsModuleNgFactory",function(){return nn});var nn=o.pb(r,[],function(n){return o.Bb([o.Cb(512,o.j,o.ab,[[8,[s.a,$]],[3,o.j],o.w]),o.Cb(4608,c.m,c.l,[o.t,[2,c.E]]),o.Cb(4608,u.m,u.m,[]),o.Cb(4608,S.e,f.a,[[2,f.c],[2,f.e]]),o.Cb(1073742336,c.b,c.b,[]),o.Cb(1073742336,u.l,u.l,[]),o.Cb(1073742336,u.c,u.c,[]),o.Cb(1073742336,p.a,p.a,[]),o.Cb(1073742336,f.e,f.e,[[2,f.b],[2,S.f]]),o.Cb(1073742336,b.b,b.b,[]),o.Cb(1073742336,P.b,P.b,[]),o.Cb(1073742336,f.g,f.g,[]),o.Cb(1073742336,M,M,[]),o.Cb(1073742336,d.m,d.m,[[2,d.r],[2,d.k]]),o.Cb(1073742336,Q,Q,[]),o.Cb(1073742336,Z.a,Z.a,[]),o.Cb(1073742336,r,r,[]),o.Cb(1024,d.i,function(){return[[{path:"",component:j}]]},[])])})}}]); \ No newline at end of file diff --git a/7-es2015.fed6f1cc532aebd6584a.js b/7-es2015.fed6f1cc532aebd6584a.js new file mode 100644 index 0000000..a53f100 --- /dev/null +++ b/7-es2015.fed6f1cc532aebd6584a.js @@ -0,0 +1 @@ +(window.webpackJsonp=window.webpackJsonp||[]).push([[7],{"0CzR":function(n,e,t){"use strict";t.r(e);var i=t("8Y7J");class l{}var r=t("pMnS"),a=t("s7LF"),o=t("iInd"),s=t("SVse"),u=t("uM4N"),d=t("lT8R"),h=t("5GAg"),c=t("IP0z"),m=t("omvX");class p{constructor(){this.ind1=null,this.ind2=null,this.ind3=null,this.swapped=!1,this.leftBoundary=null,this.rightBoundary=null,this.leftBoundary2=null,this.rightBoundary2=null}}class b{constructor(){this.historgramReady=new i.m,this.boardColoringParams=new p}ngOnInit(){}onWindowResize(n){this.initBoard()}ngAfterViewInit(){this.initBoard(),this.historgramReady.emit(this.board)}adjustBoardParams(){const n=this.boardWrapperElementRef.nativeElement;this.board.width=n.clientWidth,this.board.height=n.clientHeight,this.barWidth=(this.board.width-2*(this.values.length+2))/this.values.length,this.barUnitLength=(this.board.height-50)/Math.max(...this.values),this.barWidth=Math.min(this.barWidth,10),this.initX=(this.board.width-2*this.values.length-this.barWidth*this.values.length)/2+2,this.initY=40}initBoard(){this.board=this.boardElementRef.nativeElement,this.boardContext=this.board.getContext("2d"),this.adjustBoardParams(),this.drawBoard()}drawBoard(n=new p){this.boardColoringParams=n,this.boardContext.clearRect(0,0,this.board.width,this.board.height);let e=this.initX,t=this.initY;for(let i=0;ithis.bubbleSort(this.values),code:this.sortingAlgorithms.bubbleSortCode,explanation:this.sortingAlgorithms.bubbleSortExplanation},"Insertion Sort":{name:"Insertion Sort",run:()=>this.insertionSort(this.values),code:this.sortingAlgorithms.insertionSortCode,explanation:this.sortingAlgorithms.insertionSortExplanation},"Quick Sort":{name:"Quick Sort",run:()=>this.quickSort(this.values),code:this.sortingAlgorithms.quickSortCode,explanation:this.sortingAlgorithms.quickSortExplanation},"Merge Sort":{name:"Merge Sort",run:()=>this.mergeSort(this.values),code:this.sortingAlgorithms.mergeSortCode,explanation:this.sortingAlgorithms.mergeSortExplanation},"Heap Sort":{name:"Heap Sort",run:()=>this.heapSort(this.values),code:this.sortingAlgorithms.heapSortCode,explanation:this.sortingAlgorithms.heapSortExplanation},"Selection Sort":{name:"Selection Sort",run:()=>this.selectionSort(this.values),code:this.sortingAlgorithms.selectionSortCode,explanation:this.sortingAlgorithms.selectionSortExplanation}}}ngOnInit(){for(let n=1;n<=this.samplesCount;n++)this.values.push(Math.floor(Math.random()*(this.maxValue-this.minValue+1)+this.minValue))}ngAfterViewInit(){}onHistogramReady(n){this.board=n,this.maxSamplesCount=Math.ceil((this.board.width-4)/9)}updateSpeed(n){this.speed=n.value}updateSamplesCount(n){this.customPanelOpened=!1,this.samplesCount=n.value,this.randomize()}updateMaxValue(n){this.customPanelOpened=!1,this.maxValue=n.value,this.randomize()}addCustomValue(){null===this.customValue||this.customValue<=0||this.customValue>999||(this.values.push(this.customValue),this.histogram.adjustBoardParams(),this.histogram.drawBoard(),this.customValue=null)}removeCustomValue(){if(null===this.customValue||this.customValue<=0||this.customValue>999)return;const n=this.values.findIndex(n=>n===this.customValue);n>=0&&this.values.splice(n,1),this.histogram.drawBoard()}toggleCustomPanel(){this.customPanelOpened=!this.customPanelOpened,this.values=[],this.histogram.boardContext.clearRect(0,0,this.board.width,this.board.height),this.customPanelOpened||this.randomize()}toggleCodePanel(){this.codePanelOpened=!this.codePanelOpened,this.algorithmCode=this.highlightService.highlightCode(this.algorithms[this.selectedAlgorithm].code,"cpp"),this.algorithmExplanation=this.algorithms[this.selectedAlgorithm].explanation}randomize(){this.customPanelOpened=!1,this.values=[];for(let n=1;n<=this.samplesCount;n++)this.values.push(Math.floor(Math.random()*(this.maxValue-this.minValue+1)+this.minValue));this.histogram.values=this.values,this.histogram.adjustBoardParams(),this.histogram.drawBoard()}shuffleValues(){const n=[];for(let e=1;e<=this.values.length;e++){let e;do{e=Math.floor(Math.random()*this.values.length)}while(-1!==n.findIndex(n=>n===e));n.push(e)}for(let e=0;en[i+1]&&(t=!0,n[i+1]=[n[i],n[i]=n[i+1]][0],e.swapped=!0,!(yield this.eachStep(n,e))))return}if(!t)break}this.visualizing=!1})}quickSort(n){return y.a(this,void 0,void 0,function*(){this.visualizing=!0,yield this.quickSortUtil(n,0,n.length-1),this.visualizing=!1})}quickSortUtil(n,e,t){return y.a(this,void 0,void 0,function*(){let i;return e=0&&n[l]>t;){if(!this.visualizing)return;if(n[l+1]=n[l],n[l]=t,e.swapped=!0,!(yield this.eachStep(n,e)))return;if(e.ind1=--l,e.ind2=l+1,e.swapped=!1,!(yield this.eachStep(n,e)))return}}this.visualizing=!1})}selectionSort(n){return y.a(this,void 0,void 0,function*(){const e=new p;e.swapped=!1,this.visualizing=!0;for(let t=0;tn[l]&&(l=r),an[l]&&(l=a),l!=t){if(n[t]=[n[l],n[l]=n[t]][0],i.ind3=null,i.ind1=t,i.ind2=l,i.swapped=!0,!(yield this.eachStep(n,i)))return!1;if(i.swapped=!1,!(yield this.heapify(n,e,l)))return!1}return!0})}heapSort(n){return y.a(this,void 0,void 0,function*(){const e=n.length,t=new p;this.visualizing=!0;for(let i=Math.floor(e/2)-1;i>=0;i--)if(!(yield this.heapify(n,e,i)))return;for(let i=e-1;i>=0;i--){if(t.ind1=0,t.ind2=i,!(yield this.eachStep(n,t)))return;if(n[i]=[n[0],n[0]=n[i]][0],t.ind1=0,t.ind2=i,t.swapped=!0,!(yield this.eachStep(n,t)))return;if(t.swapped=!1,!(yield this.heapify(n,i,0)))return}this.visualizing=!1})}}var S=t("SrJx"),C=i.qb({encapsulation:0,styles:[[".submain-container[_ngcontent-%COMP%] .toolbar[_ngcontent-%COMP%] .mat-accent .mat-slider-thumb{background-color:#d168ff}.submain-container[_ngcontent-%COMP%] .toolbar[_ngcontent-%COMP%] .mat-accent .mat-slider-thumb-label{background-color:#d168ff}.submain-container[_ngcontent-%COMP%] .toolbar[_ngcontent-%COMP%] .mat-accent .mat-slider-track-fill{background-color:#d168ff}"]],data:{}});function E(n){return i.Lb(0,[(n()(),i.sb(0,0,null,null,3,"option",[],[[8,"disabled",0]],null,null,null,null)),i.rb(1,147456,null,0,a.i,[i.k,i.D,[2,a.k]],{value:[0,"value"]},null),i.rb(2,147456,null,0,a.n,[i.k,i.D,[8,null]],{value:[0,"value"]},null),(n()(),i.Kb(3,null,[" "," "]))],function(n,e){n(e,1,0,e.context.$implicit),n(e,2,0,e.context.$implicit)},function(n,e){n(e,0,0,e.component.visualizing),n(e,3,0,e.context.$implicit)})}function _(n){return i.Lb(0,[(n()(),i.sb(0,0,null,null,1,"span",[],null,null,null,null,null)),(n()(),i.Kb(-1,null,["Stop"]))],null,null)}function I(n){return i.Lb(0,[(n()(),i.Kb(-1,null,["Visualize"]))],null,null)}function M(n){return i.Lb(0,[(n()(),i.sb(0,0,null,null,13,"div",[["class","custom-panel"]],null,null,null,null,null)),(n()(),i.sb(1,0,null,null,6,"input",[["class","custom-value"],["max","999"],["min","1"],["placeholder","Enter custom value"],["type","number"]],[[2,"ng-untouched",null],[2,"ng-touched",null],[2,"ng-pristine",null],[2,"ng-dirty",null],[2,"ng-valid",null],[2,"ng-invalid",null],[2,"ng-pending",null]],[[null,"ngModelChange"],[null,"input"],[null,"blur"],[null,"compositionstart"],[null,"compositionend"],[null,"change"]],function(n,e,t){var l=!0,r=n.component;return"input"===e&&(l=!1!==i.Eb(n,2)._handleInput(t.target.value)&&l),"blur"===e&&(l=!1!==i.Eb(n,2).onTouched()&&l),"compositionstart"===e&&(l=!1!==i.Eb(n,2)._compositionStart()&&l),"compositionend"===e&&(l=!1!==i.Eb(n,2)._compositionEnd(t.target.value)&&l),"change"===e&&(l=!1!==i.Eb(n,3).onChange(t.target.value)&&l),"input"===e&&(l=!1!==i.Eb(n,3).onChange(t.target.value)&&l),"blur"===e&&(l=!1!==i.Eb(n,3).onTouched()&&l),"ngModelChange"===e&&(l=!1!==(r.customValue=t)&&l),l},null,null)),i.rb(2,16384,null,0,a.b,[i.D,i.k,[2,a.a]],null,null),i.rb(3,16384,null,0,a.j,[i.D,i.k],null,null),i.Hb(1024,null,a.e,function(n,e){return[n,e]},[a.b,a.j]),i.rb(5,671744,null,0,a.h,[[8,null],[8,null],[8,null],[6,a.e]],{model:[0,"model"]},{update:"ngModelChange"}),i.Hb(2048,null,a.f,null,[a.h]),i.rb(7,16384,null,0,a.g,[[4,a.f]],null,null),(n()(),i.sb(8,0,null,null,2,"button",[["class","edit-button"]],null,[[null,"click"]],function(n,e,t){var i=!0;return"click"===e&&(i=!1!==n.component.addCustomValue()&&i),i},null,null)),(n()(),i.sb(9,0,null,null,1,"span",[],null,null,null,null,null)),(n()(),i.Kb(-1,null,["+"])),(n()(),i.sb(11,0,null,null,2,"button",[["class","edit-button"]],null,[[null,"click"]],function(n,e,t){var i=!0;return"click"===e&&(i=!1!==n.component.removeCustomValue()&&i),i},null,null)),(n()(),i.sb(12,0,null,null,1,"span",[],null,null,null,null,null)),(n()(),i.Kb(-1,null,["-"]))],function(n,e){n(e,5,0,e.component.customValue)},function(n,e){n(e,1,0,i.Eb(e,7).ngClassUntouched,i.Eb(e,7).ngClassTouched,i.Eb(e,7).ngClassPristine,i.Eb(e,7).ngClassDirty,i.Eb(e,7).ngClassValid,i.Eb(e,7).ngClassInvalid,i.Eb(e,7).ngClassPending)})}function z(n){return i.Lb(0,[(n()(),i.sb(0,0,null,null,13,"div",[["class","code-panel"]],null,null,null,null,null)),(n()(),i.sb(1,0,null,null,1,"button",[["class","closeCodePanel"]],null,[[null,"click"]],function(n,e,t){var i=!0;return"click"===e&&(i=!1!==n.component.toggleCodePanel()&&i),i},null,null)),(n()(),i.Kb(-1,null,[" X "])),(n()(),i.sb(3,0,null,null,4,"div",[["class","code-explanation-wrapper"]],null,null,null,null,null)),(n()(),i.sb(4,0,null,null,1,"div",[["class","code-explanation-heading"]],null,null,null,null,null)),(n()(),i.Kb(5,null,["",""])),(n()(),i.sb(6,0,null,null,1,"pre",[["class","code-explanation wrap-pre-tag-text"]],[[8,"innerHTML",1]],null,null,null,null)),(n()(),i.Kb(-1,null,[" "])),(n()(),i.sb(8,0,null,null,5,"div",[["class","code-wrapper"]],null,null,null,null,null)),(n()(),i.sb(9,0,null,null,4,"pre",[],null,null,null,null,null)),(n()(),i.Kb(-1,null,[" "])),(n()(),i.sb(11,0,null,null,1,"code",[["class","code"]],[[8,"innerHTML",1]],null,null,null,null)),(n()(),i.Kb(-1,null,["\n "])),(n()(),i.Kb(-1,null,["\n "]))],null,function(n,e){var t=e.component;n(e,5,0,t.selectedAlgorithm),n(e,6,0,t.algorithmExplanation),n(e,11,0,t.algorithmCode)})}function P(n){return i.Lb(0,[i.Ib(671088640,1,{histogram:0}),(n()(),i.sb(1,0,null,null,73,"div",[["class","submain-container"]],null,null,null,null,null)),(n()(),i.sb(2,0,null,null,2,"div",[["class","header"]],null,null,null,null,null)),(n()(),i.sb(3,0,null,null,1,"div",[["class","brand"]],null,null,null,null,null)),(n()(),i.Kb(-1,null,[" Sorting Algorithms Visualizer "])),(n()(),i.sb(5,0,null,null,60,"div",[["class","toolbar"]],null,null,null,null,null)),(n()(),i.sb(6,0,null,null,59,"nav",[["class","navbar navbar-expand-lg"]],null,null,null,null,null)),(n()(),i.sb(7,0,null,null,1,"button",[["class","navbar-toggler"],["data-target","#navbarContent"],["data-toggle","collapse"],["type","button"]],null,null,null,null,null)),(n()(),i.sb(8,0,null,null,0,"i",[["class","fa fa-bars togglerIcon"]],null,null,null,null,null)),(n()(),i.sb(9,0,null,null,56,"div",[["class","collapse navbar-collapse"],["id","navbarContent"]],null,null,null,null,null)),(n()(),i.sb(10,0,null,null,55,"div",[["class","navWrapper row col-md-12"]],null,null,null,null,null)),(n()(),i.sb(11,0,null,null,3,"div",[["class","col-lg-1 col-md-2 col-sm-4 btn btn-primary navItem"]],null,[[null,"click"]],function(n,e,t){var l=!0;return"click"===e&&(l=!1!==i.Eb(n,12).onClick()&&l),l},null,null)),i.rb(12,16384,null,0,o.l,[o.k,o.a,[8,null],i.D,i.k],{routerLink:[0,"routerLink"]},null),i.Fb(13,1),(n()(),i.Kb(-1,null,[" Home "])),(n()(),i.sb(15,0,null,null,8,"div",[["class","col-lg-2 col-md-3 col-sm-4 navItem p-0"]],null,null,null,null,null)),(n()(),i.sb(16,0,null,null,7,"select",[],[[2,"ng-untouched",null],[2,"ng-touched",null],[2,"ng-pristine",null],[2,"ng-dirty",null],[2,"ng-valid",null],[2,"ng-invalid",null],[2,"ng-pending",null]],[[null,"ngModelChange"],[null,"change"],[null,"blur"]],function(n,e,t){var l=!0,r=n.component;return"change"===e&&(l=!1!==i.Eb(n,17).onChange(t.target.value)&&l),"blur"===e&&(l=!1!==i.Eb(n,17).onTouched()&&l),"ngModelChange"===e&&(l=!1!==(r.selectedAlgorithm=t)&&l),l},null,null)),i.rb(17,16384,null,0,a.k,[i.D,i.k],null,null),i.Hb(1024,null,a.e,function(n){return[n]},[a.k]),i.rb(19,671744,null,0,a.h,[[8,null],[8,null],[8,null],[6,a.e]],{model:[0,"model"]},{update:"ngModelChange"}),i.Hb(2048,null,a.f,null,[a.h]),i.rb(21,16384,null,0,a.g,[[4,a.f]],null,null),(n()(),i.hb(16777216,null,null,1,null,E)),i.rb(23,278528,null,0,s.j,[i.O,i.L,i.r],{ngForOf:[0,"ngForOf"]},null),(n()(),i.sb(24,0,null,null,1,"button",[["class","btn btn-secondary col-lg-2 col-md-2 col-sm-4 navItem"]],[[8,"disabled",0]],[[null,"click"]],function(n,e,t){var i=!0;return"click"===e&&(i=!1!==n.component.shuffleValues()&&i),i},null,null)),(n()(),i.Kb(-1,null,[" Shuffle "])),(n()(),i.sb(26,0,null,null,1,"button",[["class","btn btn-danger col-lg-2 col-md-2 col-sm-4 navItem"]],[[8,"disabled",0]],[[null,"click"]],function(n,e,t){var i=!0;return"click"===e&&(i=!1!==n.component.randomize()&&i),i},null,null)),(n()(),i.Kb(-1,null,[" Randomize "])),(n()(),i.sb(28,0,null,null,6,"button",[],null,[[null,"click"]],function(n,e,t){var i=!0;return"click"===e&&(i=!1!==n.component.toggleVisualize()&&i),i},null,null)),i.Hb(512,null,s.z,s.A,[i.r,i.s,i.k,i.D]),i.rb(30,278528,null,0,s.i,[s.z],{ngClass:[0,"ngClass"]},null),i.Gb(31,{"btn-success":0,"btn-danger":1,"btn col-lg-1 col-md-2 col-sm-4 navItem":2}),(n()(),i.hb(16777216,null,null,1,null,_)),i.rb(33,16384,null,0,s.k,[i.O,i.L],{ngIf:[0,"ngIf"],ngIfElse:[1,"ngIfElse"]},null),(n()(),i.hb(0,[["visualize",2]],null,0,null,I)),(n()(),i.sb(35,0,null,null,4,"button",[],[[8,"disabled",0]],[[null,"click"]],function(n,e,t){var i=!0;return"click"===e&&(i=!1!==n.component.toggleCustomPanel()&&i),i},null,null)),i.Hb(512,null,s.z,s.A,[i.r,i.s,i.k,i.D]),i.rb(37,278528,null,0,s.i,[s.z],{ngClass:[0,"ngClass"]},null),i.Gb(38,{"btn btn-info col-lg-1 col-md-2 col-sm-4 navItem":0}),(n()(),i.Kb(-1,null,[" Custom "])),(n()(),i.sb(40,0,null,null,4,"button",[],null,[[null,"click"]],function(n,e,t){var i=!0;return"click"===e&&(i=!1!==n.component.toggleCodePanel()&&i),i},null,null)),i.Hb(512,null,s.z,s.A,[i.r,i.s,i.k,i.D]),i.rb(42,278528,null,0,s.i,[s.z],{ngClass:[0,"ngClass"]},null),i.Gb(43,{"col-lg-1 col-md-2 col-sm-4 navItem show-code-button":0}),(n()(),i.Kb(-1,null,[" < / > "])),(n()(),i.sb(45,0,null,null,6,"div",[["class","col-lg-2 col-md-3 col-sm-4 navItem p-0"]],null,null,null,null,null)),(n()(),i.sb(46,0,null,null,2,":svg:svg",[["fill","white"],["style","width:30px;height:40px;"]],null,null,null,null,null)),(n()(),i.sb(47,0,null,null,0,":svg:path",[["d","M31.842,15.057c-0.264-0.265-0.689-0.265-0.953,0c-0.228,0.229-0.246,0.573-0.079,0.834l-3.007,3.008 c-0.089-0.061-0.187-0.105-0.279-0.157l0.904-3.373c0.309,0.014,0.6-0.177,0.682-0.485c0.1-0.36-0.114-0.729-0.476-0.825 c-0.36-0.098-0.729,0.116-0.825,0.478c-0.083,0.311,0.073,0.618,0.351,0.762l-0.888,3.307c-0.371-0.164-0.778-0.263-1.207-0.287 c-3.048-0.168-2.584,3.011-3.806,3.01c-0.285,0-1.716-0.646-1.716-0.646l-0.982,0.201c-3.417,0.497-6.636-1.889-6.76-1.98 l-0.39-0.296c0,0-0.661,1.275-1.829,1.912c-0.865,0.47-1.861,0.567-2.545,0.567c-1.251,0-2.832-0.349-3.539-1.128 c-0.111-0.123-0.199-0.256-0.301-0.383c-3.606,1.845-5.085,4.896-3.663,4.896c2.315,0,25.529,0,25.529,0 c1.698,0,3.075-1.378,3.075-3.076c0-0.951-0.44-1.762-1.119-2.316l2.986-2.988c0.261,0.169,0.605,0.148,0.835-0.078 C32.106,15.748,32.106,15.32,31.842,15.057z M25.71,20.926c-0.372,0-0.674-0.302-0.674-0.674s0.302-0.674,0.674-0.674 s0.674,0.302,0.674,0.674S26.083,20.926,25.71,20.926z"]],null,null,null,null,null)),(n()(),i.sb(48,0,null,null,0,":svg:path",[["d","M10.259,19.925c2.863-1.558,1.811-7.37-1.684-5.348c3.494-2.905,4.963,2.837,4.633,3.785c0,0,3.071,2.32,6.253,1.853 c0-4.033-1.423-10.616-7.265-12.29C4.408,5.693,0.45,14.493,4.998,19.504C5.766,20.35,8.602,20.828,10.259,19.925z"]],null,null,null,null,null)),(n()(),i.sb(49,0,null,null,2,"mat-slider",[["class","mat-slider"],["min","0"],["role","slider"]],[[8,"tabIndex",0],[1,"aria-disabled",0],[1,"aria-valuemax",0],[1,"aria-valuemin",0],[1,"aria-valuenow",0],[1,"aria-orientation",0],[2,"mat-slider-disabled",null],[2,"mat-slider-has-ticks",null],[2,"mat-slider-horizontal",null],[2,"mat-slider-axis-inverted",null],[2,"mat-slider-sliding",null],[2,"mat-slider-thumb-label-showing",null],[2,"mat-slider-vertical",null],[2,"mat-slider-min-value",null],[2,"mat-slider-hide-last-tick",null],[2,"_mat-animation-noopable",null]],[[null,"change"],[null,"focus"],[null,"blur"],[null,"mousedown"],[null,"keydown"],[null,"keyup"],[null,"mouseenter"],[null,"slide"],[null,"slideend"],[null,"slidestart"],[null,"selectstart"]],function(n,e,t){var l=!0,r=n.component;return"focus"===e&&(l=!1!==i.Eb(n,51)._onFocus()&&l),"blur"===e&&(l=!1!==i.Eb(n,51)._onBlur()&&l),"mousedown"===e&&(l=!1!==i.Eb(n,51)._onMousedown(t)&&l),"keydown"===e&&(l=!1!==i.Eb(n,51)._onKeydown(t)&&l),"keyup"===e&&(l=!1!==i.Eb(n,51)._onKeyup()&&l),"mouseenter"===e&&(l=!1!==i.Eb(n,51)._onMouseenter()&&l),"slide"===e&&(l=!1!==i.Eb(n,51)._onSlide(t)&&l),"slideend"===e&&(l=!1!==i.Eb(n,51)._onSlideEnd()&&l),"slidestart"===e&&(l=!1!==i.Eb(n,51)._onSlideStart(t)&&l),"selectstart"===e&&(l=!1!==t.preventDefault()&&l),"change"===e&&(l=!1!==r.updateSpeed(t)&&l),l},u.b,u.a)),i.Hb(5120,null,a.e,function(n){return[n]},[d.a]),i.rb(51,245760,null,0,d.a,[i.k,h.a,i.h,[2,c.b],[8,null],[2,m.a]],{max:[0,"max"],min:[1,"min"],value:[2,"value"]},{change:"change"}),(n()(),i.sb(52,0,null,null,6,"div",[["class","col-lg-2 col-md-3 col-sm-4 navItem p-0"]],null,null,null,null,null)),(n()(),i.sb(53,0,null,null,5,"div",[["class","row"]],null,null,null,null,null)),(n()(),i.sb(54,0,null,null,1,"span",[["style","color:white;padding: 10px 0px 10px 20px"]],null,null,null,null,null)),(n()(),i.Kb(-1,null,["N"])),(n()(),i.sb(56,0,null,null,2,"mat-slider",[["class","mat-slider"],["min","1"],["role","slider"],["thumbLabel",""],["tickInterval","1"]],[[8,"tabIndex",0],[1,"aria-disabled",0],[1,"aria-valuemax",0],[1,"aria-valuemin",0],[1,"aria-valuenow",0],[1,"aria-orientation",0],[2,"mat-slider-disabled",null],[2,"mat-slider-has-ticks",null],[2,"mat-slider-horizontal",null],[2,"mat-slider-axis-inverted",null],[2,"mat-slider-sliding",null],[2,"mat-slider-thumb-label-showing",null],[2,"mat-slider-vertical",null],[2,"mat-slider-min-value",null],[2,"mat-slider-hide-last-tick",null],[2,"_mat-animation-noopable",null]],[[null,"change"],[null,"focus"],[null,"blur"],[null,"mousedown"],[null,"keydown"],[null,"keyup"],[null,"mouseenter"],[null,"slide"],[null,"slideend"],[null,"slidestart"],[null,"selectstart"]],function(n,e,t){var l=!0,r=n.component;return"focus"===e&&(l=!1!==i.Eb(n,58)._onFocus()&&l),"blur"===e&&(l=!1!==i.Eb(n,58)._onBlur()&&l),"mousedown"===e&&(l=!1!==i.Eb(n,58)._onMousedown(t)&&l),"keydown"===e&&(l=!1!==i.Eb(n,58)._onKeydown(t)&&l),"keyup"===e&&(l=!1!==i.Eb(n,58)._onKeyup()&&l),"mouseenter"===e&&(l=!1!==i.Eb(n,58)._onMouseenter()&&l),"slide"===e&&(l=!1!==i.Eb(n,58)._onSlide(t)&&l),"slideend"===e&&(l=!1!==i.Eb(n,58)._onSlideEnd()&&l),"slidestart"===e&&(l=!1!==i.Eb(n,58)._onSlideStart(t)&&l),"selectstart"===e&&(l=!1!==t.preventDefault()&&l),"change"===e&&(l=!1!==r.updateSamplesCount(t)&&l),l},u.b,u.a)),i.Hb(5120,null,a.e,function(n){return[n]},[d.a]),i.rb(58,245760,null,0,d.a,[i.k,h.a,i.h,[2,c.b],[8,null],[2,m.a]],{disabled:[0,"disabled"],max:[1,"max"],min:[2,"min"],thumbLabel:[3,"thumbLabel"],tickInterval:[4,"tickInterval"],value:[5,"value"]},{change:"change"}),(n()(),i.sb(59,0,null,null,6,"div",[["class","col-lg-2 col-md-3 col-sm-4 navItem p-0"]],null,null,null,null,null)),(n()(),i.sb(60,0,null,null,5,"div",[["class","row"]],null,null,null,null,null)),(n()(),i.sb(61,0,null,null,1,"span",[["style","color:white;padding: 10px 0px 10px 20px"]],null,null,null,null,null)),(n()(),i.Kb(-1,null,["A"])),(n()(),i.sb(63,0,null,null,2,"mat-slider",[["class","mat-slider"],["max","999"],["min","1"],["role","slider"],["thumbLabel",""],["tickInterval","1"]],[[8,"tabIndex",0],[1,"aria-disabled",0],[1,"aria-valuemax",0],[1,"aria-valuemin",0],[1,"aria-valuenow",0],[1,"aria-orientation",0],[2,"mat-slider-disabled",null],[2,"mat-slider-has-ticks",null],[2,"mat-slider-horizontal",null],[2,"mat-slider-axis-inverted",null],[2,"mat-slider-sliding",null],[2,"mat-slider-thumb-label-showing",null],[2,"mat-slider-vertical",null],[2,"mat-slider-min-value",null],[2,"mat-slider-hide-last-tick",null],[2,"_mat-animation-noopable",null]],[[null,"change"],[null,"focus"],[null,"blur"],[null,"mousedown"],[null,"keydown"],[null,"keyup"],[null,"mouseenter"],[null,"slide"],[null,"slideend"],[null,"slidestart"],[null,"selectstart"]],function(n,e,t){var l=!0,r=n.component;return"focus"===e&&(l=!1!==i.Eb(n,65)._onFocus()&&l),"blur"===e&&(l=!1!==i.Eb(n,65)._onBlur()&&l),"mousedown"===e&&(l=!1!==i.Eb(n,65)._onMousedown(t)&&l),"keydown"===e&&(l=!1!==i.Eb(n,65)._onKeydown(t)&&l),"keyup"===e&&(l=!1!==i.Eb(n,65)._onKeyup()&&l),"mouseenter"===e&&(l=!1!==i.Eb(n,65)._onMouseenter()&&l),"slide"===e&&(l=!1!==i.Eb(n,65)._onSlide(t)&&l),"slideend"===e&&(l=!1!==i.Eb(n,65)._onSlideEnd()&&l),"slidestart"===e&&(l=!1!==i.Eb(n,65)._onSlideStart(t)&&l),"selectstart"===e&&(l=!1!==t.preventDefault()&&l),"change"===e&&(l=!1!==r.updateMaxValue(t)&&l),l},u.b,u.a)),i.Hb(5120,null,a.e,function(n){return[n]},[d.a]),i.rb(65,245760,null,0,d.a,[i.k,h.a,i.h,[2,c.b],[8,null],[2,m.a]],{disabled:[0,"disabled"],max:[1,"max"],min:[2,"min"],thumbLabel:[3,"thumbLabel"],tickInterval:[4,"tickInterval"],value:[5,"value"]},{change:"change"}),(n()(),i.sb(66,0,null,null,6,"div",[["class","section"]],null,null,null,null,null)),(n()(),i.hb(16777216,null,null,1,null,M)),i.rb(68,16384,null,0,s.k,[i.O,i.L],{ngIf:[0,"ngIf"]},null),(n()(),i.sb(69,0,null,null,1,"app-histogram",[],null,[[null,"historgramReady"],["window","resize"]],function(n,e,t){var l=!0,r=n.component;return"window:resize"===e&&(l=!1!==i.Eb(n,70).onWindowResize(t)&&l),"historgramReady"===e&&(l=!1!==r.onHistogramReady(t)&&l),l},v,g)),i.rb(70,4308992,[[1,4],["histogram",4]],0,b,[],{minValue:[0,"minValue"],maxValue:[1,"maxValue"],values:[2,"values"]},{historgramReady:"historgramReady"}),(n()(),i.hb(16777216,null,null,1,null,z)),i.rb(72,16384,null,0,s.k,[i.O,i.L],{ngIf:[0,"ngIf"]},null),(n()(),i.sb(73,0,null,null,1,"div",[["class","glow-footer"]],null,null,null,null,null)),(n()(),i.Kb(-1,null,[" while( !(success = try())); "]))],function(n,e){var t=e.component,l=n(e,13,0,"");n(e,12,0,l),n(e,19,0,t.selectedAlgorithm),n(e,23,0,t.algorithmNames);var r=n(e,31,0,!t.visualizing,t.visualizing,!0);n(e,30,0,r),n(e,33,0,t.visualizing,i.Eb(e,34));var a=n(e,38,0,!0);n(e,37,0,a);var o=n(e,43,0,!0);n(e,42,0,o),n(e,51,0,t.maxSpeed,"0",t.speed),n(e,58,0,t.visualizing,t.maxSamplesCount,"1","","1",t.samplesCount),n(e,65,0,t.visualizing,"999","1","","1",t.maxValue),n(e,68,0,t.customPanelOpened),n(e,70,0,t.minValue,t.maxValue,t.values),n(e,72,0,t.codePanelOpened)},function(n,e){var t=e.component;n(e,16,0,i.Eb(e,21).ngClassUntouched,i.Eb(e,21).ngClassTouched,i.Eb(e,21).ngClassPristine,i.Eb(e,21).ngClassDirty,i.Eb(e,21).ngClassValid,i.Eb(e,21).ngClassInvalid,i.Eb(e,21).ngClassPending),n(e,24,0,t.visualizing),n(e,26,0,t.visualizing),n(e,35,0,t.visualizing),n(e,49,1,[i.Eb(e,51).tabIndex,i.Eb(e,51).disabled,i.Eb(e,51).max,i.Eb(e,51).min,i.Eb(e,51).value,i.Eb(e,51).vertical?"vertical":"horizontal",i.Eb(e,51).disabled,i.Eb(e,51).tickInterval,!i.Eb(e,51).vertical,i.Eb(e,51)._invertAxis,i.Eb(e,51)._isSliding,i.Eb(e,51).thumbLabel,i.Eb(e,51).vertical,i.Eb(e,51)._isMinValue,i.Eb(e,51).disabled||i.Eb(e,51)._isMinValue&&i.Eb(e,51)._thumbGap&&i.Eb(e,51)._invertAxis,"NoopAnimations"===i.Eb(e,51)._animationMode]),n(e,56,1,[i.Eb(e,58).tabIndex,i.Eb(e,58).disabled,i.Eb(e,58).max,i.Eb(e,58).min,i.Eb(e,58).value,i.Eb(e,58).vertical?"vertical":"horizontal",i.Eb(e,58).disabled,i.Eb(e,58).tickInterval,!i.Eb(e,58).vertical,i.Eb(e,58)._invertAxis,i.Eb(e,58)._isSliding,i.Eb(e,58).thumbLabel,i.Eb(e,58).vertical,i.Eb(e,58)._isMinValue,i.Eb(e,58).disabled||i.Eb(e,58)._isMinValue&&i.Eb(e,58)._thumbGap&&i.Eb(e,58)._invertAxis,"NoopAnimations"===i.Eb(e,58)._animationMode]),n(e,63,1,[i.Eb(e,65).tabIndex,i.Eb(e,65).disabled,i.Eb(e,65).max,i.Eb(e,65).min,i.Eb(e,65).value,i.Eb(e,65).vertical?"vertical":"horizontal",i.Eb(e,65).disabled,i.Eb(e,65).tickInterval,!i.Eb(e,65).vertical,i.Eb(e,65)._invertAxis,i.Eb(e,65)._isSliding,i.Eb(e,65).thumbLabel,i.Eb(e,65).vertical,i.Eb(e,65)._isMinValue,i.Eb(e,65).disabled||i.Eb(e,65)._isMinValue&&i.Eb(e,65)._thumbGap&&i.Eb(e,65)._invertAxis,"NoopAnimations"===i.Eb(e,65)._animationMode])})}function O(n){return i.Lb(0,[(n()(),i.sb(0,0,null,null,1,"app-sorting-algorithms",[],null,null,null,P,C)),i.rb(1,4308992,null,0,k,[S.a],null,null)],function(n,e){n(e,1,0)},null)}var A=i.ob("app-sorting-algorithms",k,O,{},{},[]),T=t("cUpR"),B=t("Xd0L");class L{}var j=t("PCNd");t.d(e,"SortingAlgorithmsModuleNgFactory",function(){return V});var V=i.pb(l,[],function(n){return i.Bb([i.Cb(512,i.j,i.ab,[[8,[r.a,A]],[3,i.j],i.w]),i.Cb(4608,s.m,s.l,[i.t,[2,s.E]]),i.Cb(4608,a.m,a.m,[]),i.Cb(4608,T.e,B.a,[[2,B.c],[2,B.e]]),i.Cb(1073742336,s.b,s.b,[]),i.Cb(1073742336,a.l,a.l,[]),i.Cb(1073742336,a.c,a.c,[]),i.Cb(1073742336,o.m,o.m,[[2,o.r],[2,o.k]]),i.Cb(1073742336,L,L,[]),i.Cb(1073742336,j.a,j.a,[]),i.Cb(1073742336,c.a,c.a,[]),i.Cb(1073742336,B.e,B.e,[[2,B.b],[2,T.f]]),i.Cb(1073742336,d.b,d.b,[]),i.Cb(1073742336,l,l,[]),i.Cb(1024,o.i,function(){return[[{path:"",component:k}]]},[])])})}}]); \ No newline at end of file diff --git a/7-es5.fed6f1cc532aebd6584a.js b/7-es5.fed6f1cc532aebd6584a.js new file mode 100644 index 0000000..ad538c1 --- /dev/null +++ b/7-es5.fed6f1cc532aebd6584a.js @@ -0,0 +1 @@ +(window.webpackJsonp=window.webpackJsonp||[]).push([[7],{"0CzR":function n(e,t,r){"use strict";r.r(t);var i=r("8Y7J");var a=function n(){};var l=r("pMnS"),o=r("s7LF"),s=r("iInd"),u=r("SVse"),d=r("uM4N"),c=r("lT8R"),h=r("5GAg"),p=r("IP0z"),m=r("omvX");var b=function n(){this.ind1=null,this.ind2=null,this.ind3=null,this.swapped=!1,this.leftBoundary=null,this.rightBoundary=null,this.leftBoundary2=null,this.rightBoundary2=null};var g=function(){function n(){this.historgramReady=new i.m,this.boardColoringParams=new b}var e=n.prototype;e.ngOnInit=function n(){};e.onWindowResize=function n(e){this.initBoard()};e.ngAfterViewInit=function n(){this.initBoard(),this.historgramReady.emit(this.board)};e.adjustBoardParams=function n(){var e=this.boardWrapperElementRef.nativeElement;this.board.width=e.clientWidth,this.board.height=e.clientHeight,this.barWidth=(this.board.width-2*(this.values.length+2))/this.values.length,this.barUnitLength=(this.board.height-50)/Math.max.apply(Math,this.values),this.barWidth=Math.min(this.barWidth,10),this.initX=(this.board.width-2*this.values.length-this.barWidth*this.values.length)/2+2,this.initY=40};e.initBoard=function n(){this.board=this.boardElementRef.nativeElement,this.boardContext=this.board.getContext("2d"),this.adjustBoardParams(),this.drawBoard()};e.drawBoard=function n(e){if(e===void 0){e=new b}this.boardColoringParams=e,this.boardContext.clearRect(0,0,this.board.width,this.board.height);var t=this.initX,r=this.initY;for(var i=0;i999||(this.values.push(this.customValue),this.histogram.adjustBoardParams(),this.histogram.drawBoard(),this.customValue=null)};e.removeCustomValue=function n(){var e=this;if(null===this.customValue||this.customValue<=0||this.customValue>999)return;var t=this.values.findIndex(function(n){return n===e.customValue});t>=0&&this.values.splice(t,1),this.histogram.drawBoard()};e.toggleCustomPanel=function n(){this.customPanelOpened=!this.customPanelOpened,this.values=[],this.histogram.boardContext.clearRect(0,0,this.board.width,this.board.height),this.customPanelOpened||this.randomize()};e.toggleCodePanel=function n(){this.codePanelOpened=!this.codePanelOpened,this.algorithmCode=this.highlightService.highlightCode(this.algorithms[this.selectedAlgorithm].code,"cpp"),this.algorithmExplanation=this.algorithms[this.selectedAlgorithm].explanation};e.randomize=function n(){this.customPanelOpened=!1,this.values=[];for(var e=1;e<=this.samplesCount;e++){this.values.push(Math.floor(Math.random()*(this.maxValue-this.minValue+1)+this.minValue))}this.histogram.values=this.values,this.histogram.adjustBoardParams(),this.histogram.drawBoard()};e.shuffleValues=function n(){var e=this;var t=[];var r=function n(r){var i=void 0;do{i=Math.floor(Math.random()*e.values.length)}while(-1!==t.findIndex(function(n){return n===i}));t.push(i)};for(var i=1;i<=this.values.length;i++){r(i)}for(var a=0;ae[i+1];if(!l.t0){l.next=22;break}r=!0;e[i+1]=[e[i],e[i]=e[i+1]][0];a.swapped=!0;l.next=21;return this.eachStep(e,a);case 21:l.t0=!l.sent;case 22:if(!l.t0){l.next=24;break}return l.abrupt("return");case 24:i++;l.next=5;break;case 27:if(r){l.next=29;break}return l.abrupt("break",32);case 29:t++;l.next=2;break;case 32:this.visualizing=!1;case 33:case"end":return l.stop()}}},n,this)}))};e.quickSort=function n(e){return w.a(this,void 0,void 0,regeneratorRuntime.mark(function n(){return regeneratorRuntime.wrap(function n(t){while(1){switch(t.prev=t.next){case 0:this.visualizing=!0;t.next=3;return this.quickSortUtil(e,0,e.length-1);case 3:this.visualizing=!1;case 4:case"end":return t.stop()}}},n,this)}))};e.quickSortUtil=function n(e,t,r){return w.a(this,void 0,void 0,regeneratorRuntime.mark(function n(){var i;return regeneratorRuntime.wrap(function n(a){while(1){switch(a.prev=a.next){case 0:a.t0=t=0&&e[a]>r)){l.next=34;break}if(this.visualizing){l.next=18;break}return l.abrupt("return");case 18:e[a+1]=e[a];e[a]=r;t.swapped=!0;l.next=23;return this.eachStep(e,t);case 23:if(l.sent){l.next=25;break}return l.abrupt("return");case 25:t.ind1=--a;t.ind2=a+1;t.swapped=!1;l.next=30;return this.eachStep(e,t);case 30:if(l.sent){l.next=32;break}return l.abrupt("return");case 32:l.next=15;break;case 34:++i;l.next=3;break;case 37:this.visualizing=!1;case 38:case"end":return l.stop()}}},n,this)}))};e.selectionSort=function n(e){return w.a(this,void 0,void 0,regeneratorRuntime.mark(function n(){var t,r,i,a;return regeneratorRuntime.wrap(function n(l){while(1){switch(l.prev=l.next){case 0:t=new b;t.swapped=!1,this.visualizing=!0;r=0;case 3:if(!(re[a]&&(a=l),oe[a]&&(a=o),a!=r)){s.next=28;break}e[r]=[e[a],e[a]=e[r]][0];i.ind3=null;i.ind1=r;i.ind2=a;i.swapped=!0;s.next=21;return this.eachStep(e,i);case 21:if(s.sent){s.next=23;break}return s.abrupt("return",!1);case 23:i.swapped=!1;s.next=26;return this.heapify(e,t,a);case 26:if(s.sent){s.next=28;break}return s.abrupt("return",!1);case 28:return s.abrupt("return",!0);case 29:case"end":return s.stop()}}},n,this)}))};e.heapSort=function n(e){return w.a(this,void 0,void 0,regeneratorRuntime.mark(function n(){var t,r,i,a;return regeneratorRuntime.wrap(function n(l){while(1){switch(l.prev=l.next){case 0:t=e.length,r=new b;this.visualizing=!0;i=Math.floor(t/2)-1;case 3:if(!(i>=0)){l.next=11;break}l.next=6;return this.heapify(e,t,i);case 6:if(l.sent){l.next=8;break}return l.abrupt("return");case 8:i--;l.next=3;break;case 11:a=t-1;case 12:if(!(a>=0)){l.next=35;break}r.ind1=0;r.ind2=a;l.next=17;return this.eachStep(e,r);case 17:if(l.sent){l.next=19;break}return l.abrupt("return");case 19:e[a]=[e[0],e[0]=e[a]][0];r.ind1=0;r.ind2=a;r.swapped=!0;l.next=25;return this.eachStep(e,r);case 25:if(l.sent){l.next=27;break}return l.abrupt("return");case 27:r.swapped=!1;l.next=30;return this.heapify(e,a,0);case 30:if(l.sent){l.next=32;break}return l.abrupt("return");case 32:a--;l.next=12;break;case 35:this.visualizing=!1;case 36:case"end":return l.stop()}}},n,this)}))};return n}();var C=r("SrJx"),E=i.qb({encapsulation:0,styles:[[".submain-container[_ngcontent-%COMP%] .toolbar[_ngcontent-%COMP%] .mat-accent .mat-slider-thumb{background-color:#d168ff}.submain-container[_ngcontent-%COMP%] .toolbar[_ngcontent-%COMP%] .mat-accent .mat-slider-thumb-label{background-color:#d168ff}.submain-container[_ngcontent-%COMP%] .toolbar[_ngcontent-%COMP%] .mat-accent .mat-slider-track-fill{background-color:#d168ff}"]],data:{}});function _(n){return i.Lb(0,[(n()(),i.sb(0,0,null,null,3,"option",[],[[8,"disabled",0]],null,null,null,null)),i.rb(1,147456,null,0,o.i,[i.k,i.D,[2,o.k]],{value:[0,"value"]},null),i.rb(2,147456,null,0,o.n,[i.k,i.D,[8,null]],{value:[0,"value"]},null),(n()(),i.Kb(3,null,[" "," "]))],function(n,e){n(e,1,0,e.context.$implicit),n(e,2,0,e.context.$implicit)},function(n,e){n(e,0,0,e.component.visualizing),n(e,3,0,e.context.$implicit)})}function I(n){return i.Lb(0,[(n()(),i.sb(0,0,null,null,1,"span",[],null,null,null,null,null)),(n()(),i.Kb(-1,null,["Stop"]))],null,null)}function M(n){return i.Lb(0,[(n()(),i.Kb(-1,null,["Visualize"]))],null,null)}function z(n){return i.Lb(0,[(n()(),i.sb(0,0,null,null,13,"div",[["class","custom-panel"]],null,null,null,null,null)),(n()(),i.sb(1,0,null,null,6,"input",[["class","custom-value"],["max","999"],["min","1"],["placeholder","Enter custom value"],["type","number"]],[[2,"ng-untouched",null],[2,"ng-touched",null],[2,"ng-pristine",null],[2,"ng-dirty",null],[2,"ng-valid",null],[2,"ng-invalid",null],[2,"ng-pending",null]],[[null,"ngModelChange"],[null,"input"],[null,"blur"],[null,"compositionstart"],[null,"compositionend"],[null,"change"]],function(n,e,t){var r=!0,a=n.component;return"input"===e&&(r=!1!==i.Eb(n,2)._handleInput(t.target.value)&&r),"blur"===e&&(r=!1!==i.Eb(n,2).onTouched()&&r),"compositionstart"===e&&(r=!1!==i.Eb(n,2)._compositionStart()&&r),"compositionend"===e&&(r=!1!==i.Eb(n,2)._compositionEnd(t.target.value)&&r),"change"===e&&(r=!1!==i.Eb(n,3).onChange(t.target.value)&&r),"input"===e&&(r=!1!==i.Eb(n,3).onChange(t.target.value)&&r),"blur"===e&&(r=!1!==i.Eb(n,3).onTouched()&&r),"ngModelChange"===e&&(r=!1!==(a.customValue=t)&&r),r},null,null)),i.rb(2,16384,null,0,o.b,[i.D,i.k,[2,o.a]],null,null),i.rb(3,16384,null,0,o.j,[i.D,i.k],null,null),i.Hb(1024,null,o.e,function(n,e){return[n,e]},[o.b,o.j]),i.rb(5,671744,null,0,o.h,[[8,null],[8,null],[8,null],[6,o.e]],{model:[0,"model"]},{update:"ngModelChange"}),i.Hb(2048,null,o.f,null,[o.h]),i.rb(7,16384,null,0,o.g,[[4,o.f]],null,null),(n()(),i.sb(8,0,null,null,2,"button",[["class","edit-button"]],null,[[null,"click"]],function(n,e,t){var r=!0;return"click"===e&&(r=!1!==n.component.addCustomValue()&&r),r},null,null)),(n()(),i.sb(9,0,null,null,1,"span",[],null,null,null,null,null)),(n()(),i.Kb(-1,null,["+"])),(n()(),i.sb(11,0,null,null,2,"button",[["class","edit-button"]],null,[[null,"click"]],function(n,e,t){var r=!0;return"click"===e&&(r=!1!==n.component.removeCustomValue()&&r),r},null,null)),(n()(),i.sb(12,0,null,null,1,"span",[],null,null,null,null,null)),(n()(),i.Kb(-1,null,["-"]))],function(n,e){n(e,5,0,e.component.customValue)},function(n,e){n(e,1,0,i.Eb(e,7).ngClassUntouched,i.Eb(e,7).ngClassTouched,i.Eb(e,7).ngClassPristine,i.Eb(e,7).ngClassDirty,i.Eb(e,7).ngClassValid,i.Eb(e,7).ngClassInvalid,i.Eb(e,7).ngClassPending)})}function P(n){return i.Lb(0,[(n()(),i.sb(0,0,null,null,13,"div",[["class","code-panel"]],null,null,null,null,null)),(n()(),i.sb(1,0,null,null,1,"button",[["class","closeCodePanel"]],null,[[null,"click"]],function(n,e,t){var r=!0;return"click"===e&&(r=!1!==n.component.toggleCodePanel()&&r),r},null,null)),(n()(),i.Kb(-1,null,[" X "])),(n()(),i.sb(3,0,null,null,4,"div",[["class","code-explanation-wrapper"]],null,null,null,null,null)),(n()(),i.sb(4,0,null,null,1,"div",[["class","code-explanation-heading"]],null,null,null,null,null)),(n()(),i.Kb(5,null,["",""])),(n()(),i.sb(6,0,null,null,1,"pre",[["class","code-explanation wrap-pre-tag-text"]],[[8,"innerHTML",1]],null,null,null,null)),(n()(),i.Kb(-1,null,[" "])),(n()(),i.sb(8,0,null,null,5,"div",[["class","code-wrapper"]],null,null,null,null,null)),(n()(),i.sb(9,0,null,null,4,"pre",[],null,null,null,null,null)),(n()(),i.Kb(-1,null,[" "])),(n()(),i.sb(11,0,null,null,1,"code",[["class","code"]],[[8,"innerHTML",1]],null,null,null,null)),(n()(),i.Kb(-1,null,["\n "])),(n()(),i.Kb(-1,null,["\n "]))],null,function(n,e){var t=e.component;n(e,5,0,t.selectedAlgorithm),n(e,6,0,t.algorithmExplanation),n(e,11,0,t.algorithmCode)})}function O(n){return i.Lb(0,[i.Ib(671088640,1,{histogram:0}),(n()(),i.sb(1,0,null,null,73,"div",[["class","submain-container"]],null,null,null,null,null)),(n()(),i.sb(2,0,null,null,2,"div",[["class","header"]],null,null,null,null,null)),(n()(),i.sb(3,0,null,null,1,"div",[["class","brand"]],null,null,null,null,null)),(n()(),i.Kb(-1,null,[" Sorting Algorithms Visualizer "])),(n()(),i.sb(5,0,null,null,60,"div",[["class","toolbar"]],null,null,null,null,null)),(n()(),i.sb(6,0,null,null,59,"nav",[["class","navbar navbar-expand-lg"]],null,null,null,null,null)),(n()(),i.sb(7,0,null,null,1,"button",[["class","navbar-toggler"],["data-target","#navbarContent"],["data-toggle","collapse"],["type","button"]],null,null,null,null,null)),(n()(),i.sb(8,0,null,null,0,"i",[["class","fa fa-bars togglerIcon"]],null,null,null,null,null)),(n()(),i.sb(9,0,null,null,56,"div",[["class","collapse navbar-collapse"],["id","navbarContent"]],null,null,null,null,null)),(n()(),i.sb(10,0,null,null,55,"div",[["class","navWrapper row col-md-12"]],null,null,null,null,null)),(n()(),i.sb(11,0,null,null,3,"div",[["class","col-lg-1 col-md-2 col-sm-4 btn btn-primary navItem"]],null,[[null,"click"]],function(n,e,t){var r=!0;return"click"===e&&(r=!1!==i.Eb(n,12).onClick()&&r),r},null,null)),i.rb(12,16384,null,0,s.l,[s.k,s.a,[8,null],i.D,i.k],{routerLink:[0,"routerLink"]},null),i.Fb(13,1),(n()(),i.Kb(-1,null,[" Home "])),(n()(),i.sb(15,0,null,null,8,"div",[["class","col-lg-2 col-md-3 col-sm-4 navItem p-0"]],null,null,null,null,null)),(n()(),i.sb(16,0,null,null,7,"select",[],[[2,"ng-untouched",null],[2,"ng-touched",null],[2,"ng-pristine",null],[2,"ng-dirty",null],[2,"ng-valid",null],[2,"ng-invalid",null],[2,"ng-pending",null]],[[null,"ngModelChange"],[null,"change"],[null,"blur"]],function(n,e,t){var r=!0,a=n.component;return"change"===e&&(r=!1!==i.Eb(n,17).onChange(t.target.value)&&r),"blur"===e&&(r=!1!==i.Eb(n,17).onTouched()&&r),"ngModelChange"===e&&(r=!1!==(a.selectedAlgorithm=t)&&r),r},null,null)),i.rb(17,16384,null,0,o.k,[i.D,i.k],null,null),i.Hb(1024,null,o.e,function(n){return[n]},[o.k]),i.rb(19,671744,null,0,o.h,[[8,null],[8,null],[8,null],[6,o.e]],{model:[0,"model"]},{update:"ngModelChange"}),i.Hb(2048,null,o.f,null,[o.h]),i.rb(21,16384,null,0,o.g,[[4,o.f]],null,null),(n()(),i.hb(16777216,null,null,1,null,_)),i.rb(23,278528,null,0,u.j,[i.O,i.L,i.r],{ngForOf:[0,"ngForOf"]},null),(n()(),i.sb(24,0,null,null,1,"button",[["class","btn btn-secondary col-lg-2 col-md-2 col-sm-4 navItem"]],[[8,"disabled",0]],[[null,"click"]],function(n,e,t){var r=!0;return"click"===e&&(r=!1!==n.component.shuffleValues()&&r),r},null,null)),(n()(),i.Kb(-1,null,[" Shuffle "])),(n()(),i.sb(26,0,null,null,1,"button",[["class","btn btn-danger col-lg-2 col-md-2 col-sm-4 navItem"]],[[8,"disabled",0]],[[null,"click"]],function(n,e,t){var r=!0;return"click"===e&&(r=!1!==n.component.randomize()&&r),r},null,null)),(n()(),i.Kb(-1,null,[" Randomize "])),(n()(),i.sb(28,0,null,null,6,"button",[],null,[[null,"click"]],function(n,e,t){var r=!0;return"click"===e&&(r=!1!==n.component.toggleVisualize()&&r),r},null,null)),i.Hb(512,null,u.z,u.A,[i.r,i.s,i.k,i.D]),i.rb(30,278528,null,0,u.i,[u.z],{ngClass:[0,"ngClass"]},null),i.Gb(31,{"btn-success":0,"btn-danger":1,"btn col-lg-1 col-md-2 col-sm-4 navItem":2}),(n()(),i.hb(16777216,null,null,1,null,I)),i.rb(33,16384,null,0,u.k,[i.O,i.L],{ngIf:[0,"ngIf"],ngIfElse:[1,"ngIfElse"]},null),(n()(),i.hb(0,[["visualize",2]],null,0,null,M)),(n()(),i.sb(35,0,null,null,4,"button",[],[[8,"disabled",0]],[[null,"click"]],function(n,e,t){var r=!0;return"click"===e&&(r=!1!==n.component.toggleCustomPanel()&&r),r},null,null)),i.Hb(512,null,u.z,u.A,[i.r,i.s,i.k,i.D]),i.rb(37,278528,null,0,u.i,[u.z],{ngClass:[0,"ngClass"]},null),i.Gb(38,{"btn btn-info col-lg-1 col-md-2 col-sm-4 navItem":0}),(n()(),i.Kb(-1,null,[" Custom "])),(n()(),i.sb(40,0,null,null,4,"button",[],null,[[null,"click"]],function(n,e,t){var r=!0;return"click"===e&&(r=!1!==n.component.toggleCodePanel()&&r),r},null,null)),i.Hb(512,null,u.z,u.A,[i.r,i.s,i.k,i.D]),i.rb(42,278528,null,0,u.i,[u.z],{ngClass:[0,"ngClass"]},null),i.Gb(43,{"col-lg-1 col-md-2 col-sm-4 navItem show-code-button":0}),(n()(),i.Kb(-1,null,[" < / > "])),(n()(),i.sb(45,0,null,null,6,"div",[["class","col-lg-2 col-md-3 col-sm-4 navItem p-0"]],null,null,null,null,null)),(n()(),i.sb(46,0,null,null,2,":svg:svg",[["fill","white"],["style","width:30px;height:40px;"]],null,null,null,null,null)),(n()(),i.sb(47,0,null,null,0,":svg:path",[["d","M31.842,15.057c-0.264-0.265-0.689-0.265-0.953,0c-0.228,0.229-0.246,0.573-0.079,0.834l-3.007,3.008 c-0.089-0.061-0.187-0.105-0.279-0.157l0.904-3.373c0.309,0.014,0.6-0.177,0.682-0.485c0.1-0.36-0.114-0.729-0.476-0.825 c-0.36-0.098-0.729,0.116-0.825,0.478c-0.083,0.311,0.073,0.618,0.351,0.762l-0.888,3.307c-0.371-0.164-0.778-0.263-1.207-0.287 c-3.048-0.168-2.584,3.011-3.806,3.01c-0.285,0-1.716-0.646-1.716-0.646l-0.982,0.201c-3.417,0.497-6.636-1.889-6.76-1.98 l-0.39-0.296c0,0-0.661,1.275-1.829,1.912c-0.865,0.47-1.861,0.567-2.545,0.567c-1.251,0-2.832-0.349-3.539-1.128 c-0.111-0.123-0.199-0.256-0.301-0.383c-3.606,1.845-5.085,4.896-3.663,4.896c2.315,0,25.529,0,25.529,0 c1.698,0,3.075-1.378,3.075-3.076c0-0.951-0.44-1.762-1.119-2.316l2.986-2.988c0.261,0.169,0.605,0.148,0.835-0.078 C32.106,15.748,32.106,15.32,31.842,15.057z M25.71,20.926c-0.372,0-0.674-0.302-0.674-0.674s0.302-0.674,0.674-0.674 s0.674,0.302,0.674,0.674S26.083,20.926,25.71,20.926z"]],null,null,null,null,null)),(n()(),i.sb(48,0,null,null,0,":svg:path",[["d","M10.259,19.925c2.863-1.558,1.811-7.37-1.684-5.348c3.494-2.905,4.963,2.837,4.633,3.785c0,0,3.071,2.32,6.253,1.853 c0-4.033-1.423-10.616-7.265-12.29C4.408,5.693,0.45,14.493,4.998,19.504C5.766,20.35,8.602,20.828,10.259,19.925z"]],null,null,null,null,null)),(n()(),i.sb(49,0,null,null,2,"mat-slider",[["class","mat-slider"],["min","0"],["role","slider"]],[[8,"tabIndex",0],[1,"aria-disabled",0],[1,"aria-valuemax",0],[1,"aria-valuemin",0],[1,"aria-valuenow",0],[1,"aria-orientation",0],[2,"mat-slider-disabled",null],[2,"mat-slider-has-ticks",null],[2,"mat-slider-horizontal",null],[2,"mat-slider-axis-inverted",null],[2,"mat-slider-sliding",null],[2,"mat-slider-thumb-label-showing",null],[2,"mat-slider-vertical",null],[2,"mat-slider-min-value",null],[2,"mat-slider-hide-last-tick",null],[2,"_mat-animation-noopable",null]],[[null,"change"],[null,"focus"],[null,"blur"],[null,"mousedown"],[null,"keydown"],[null,"keyup"],[null,"mouseenter"],[null,"slide"],[null,"slideend"],[null,"slidestart"],[null,"selectstart"]],function(n,e,t){var r=!0,a=n.component;return"focus"===e&&(r=!1!==i.Eb(n,51)._onFocus()&&r),"blur"===e&&(r=!1!==i.Eb(n,51)._onBlur()&&r),"mousedown"===e&&(r=!1!==i.Eb(n,51)._onMousedown(t)&&r),"keydown"===e&&(r=!1!==i.Eb(n,51)._onKeydown(t)&&r),"keyup"===e&&(r=!1!==i.Eb(n,51)._onKeyup()&&r),"mouseenter"===e&&(r=!1!==i.Eb(n,51)._onMouseenter()&&r),"slide"===e&&(r=!1!==i.Eb(n,51)._onSlide(t)&&r),"slideend"===e&&(r=!1!==i.Eb(n,51)._onSlideEnd()&&r),"slidestart"===e&&(r=!1!==i.Eb(n,51)._onSlideStart(t)&&r),"selectstart"===e&&(r=!1!==t.preventDefault()&&r),"change"===e&&(r=!1!==a.updateSpeed(t)&&r),r},d.b,d.a)),i.Hb(5120,null,o.e,function(n){return[n]},[c.a]),i.rb(51,245760,null,0,c.a,[i.k,h.a,i.h,[2,p.b],[8,null],[2,m.a]],{max:[0,"max"],min:[1,"min"],value:[2,"value"]},{change:"change"}),(n()(),i.sb(52,0,null,null,6,"div",[["class","col-lg-2 col-md-3 col-sm-4 navItem p-0"]],null,null,null,null,null)),(n()(),i.sb(53,0,null,null,5,"div",[["class","row"]],null,null,null,null,null)),(n()(),i.sb(54,0,null,null,1,"span",[["style","color:white;padding: 10px 0px 10px 20px"]],null,null,null,null,null)),(n()(),i.Kb(-1,null,["N"])),(n()(),i.sb(56,0,null,null,2,"mat-slider",[["class","mat-slider"],["min","1"],["role","slider"],["thumbLabel",""],["tickInterval","1"]],[[8,"tabIndex",0],[1,"aria-disabled",0],[1,"aria-valuemax",0],[1,"aria-valuemin",0],[1,"aria-valuenow",0],[1,"aria-orientation",0],[2,"mat-slider-disabled",null],[2,"mat-slider-has-ticks",null],[2,"mat-slider-horizontal",null],[2,"mat-slider-axis-inverted",null],[2,"mat-slider-sliding",null],[2,"mat-slider-thumb-label-showing",null],[2,"mat-slider-vertical",null],[2,"mat-slider-min-value",null],[2,"mat-slider-hide-last-tick",null],[2,"_mat-animation-noopable",null]],[[null,"change"],[null,"focus"],[null,"blur"],[null,"mousedown"],[null,"keydown"],[null,"keyup"],[null,"mouseenter"],[null,"slide"],[null,"slideend"],[null,"slidestart"],[null,"selectstart"]],function(n,e,t){var r=!0,a=n.component;return"focus"===e&&(r=!1!==i.Eb(n,58)._onFocus()&&r),"blur"===e&&(r=!1!==i.Eb(n,58)._onBlur()&&r),"mousedown"===e&&(r=!1!==i.Eb(n,58)._onMousedown(t)&&r),"keydown"===e&&(r=!1!==i.Eb(n,58)._onKeydown(t)&&r),"keyup"===e&&(r=!1!==i.Eb(n,58)._onKeyup()&&r),"mouseenter"===e&&(r=!1!==i.Eb(n,58)._onMouseenter()&&r),"slide"===e&&(r=!1!==i.Eb(n,58)._onSlide(t)&&r),"slideend"===e&&(r=!1!==i.Eb(n,58)._onSlideEnd()&&r),"slidestart"===e&&(r=!1!==i.Eb(n,58)._onSlideStart(t)&&r),"selectstart"===e&&(r=!1!==t.preventDefault()&&r),"change"===e&&(r=!1!==a.updateSamplesCount(t)&&r),r},d.b,d.a)),i.Hb(5120,null,o.e,function(n){return[n]},[c.a]),i.rb(58,245760,null,0,c.a,[i.k,h.a,i.h,[2,p.b],[8,null],[2,m.a]],{disabled:[0,"disabled"],max:[1,"max"],min:[2,"min"],thumbLabel:[3,"thumbLabel"],tickInterval:[4,"tickInterval"],value:[5,"value"]},{change:"change"}),(n()(),i.sb(59,0,null,null,6,"div",[["class","col-lg-2 col-md-3 col-sm-4 navItem p-0"]],null,null,null,null,null)),(n()(),i.sb(60,0,null,null,5,"div",[["class","row"]],null,null,null,null,null)),(n()(),i.sb(61,0,null,null,1,"span",[["style","color:white;padding: 10px 0px 10px 20px"]],null,null,null,null,null)),(n()(),i.Kb(-1,null,["A"])),(n()(),i.sb(63,0,null,null,2,"mat-slider",[["class","mat-slider"],["max","999"],["min","1"],["role","slider"],["thumbLabel",""],["tickInterval","1"]],[[8,"tabIndex",0],[1,"aria-disabled",0],[1,"aria-valuemax",0],[1,"aria-valuemin",0],[1,"aria-valuenow",0],[1,"aria-orientation",0],[2,"mat-slider-disabled",null],[2,"mat-slider-has-ticks",null],[2,"mat-slider-horizontal",null],[2,"mat-slider-axis-inverted",null],[2,"mat-slider-sliding",null],[2,"mat-slider-thumb-label-showing",null],[2,"mat-slider-vertical",null],[2,"mat-slider-min-value",null],[2,"mat-slider-hide-last-tick",null],[2,"_mat-animation-noopable",null]],[[null,"change"],[null,"focus"],[null,"blur"],[null,"mousedown"],[null,"keydown"],[null,"keyup"],[null,"mouseenter"],[null,"slide"],[null,"slideend"],[null,"slidestart"],[null,"selectstart"]],function(n,e,t){var r=!0,a=n.component;return"focus"===e&&(r=!1!==i.Eb(n,65)._onFocus()&&r),"blur"===e&&(r=!1!==i.Eb(n,65)._onBlur()&&r),"mousedown"===e&&(r=!1!==i.Eb(n,65)._onMousedown(t)&&r),"keydown"===e&&(r=!1!==i.Eb(n,65)._onKeydown(t)&&r),"keyup"===e&&(r=!1!==i.Eb(n,65)._onKeyup()&&r),"mouseenter"===e&&(r=!1!==i.Eb(n,65)._onMouseenter()&&r),"slide"===e&&(r=!1!==i.Eb(n,65)._onSlide(t)&&r),"slideend"===e&&(r=!1!==i.Eb(n,65)._onSlideEnd()&&r),"slidestart"===e&&(r=!1!==i.Eb(n,65)._onSlideStart(t)&&r),"selectstart"===e&&(r=!1!==t.preventDefault()&&r),"change"===e&&(r=!1!==a.updateMaxValue(t)&&r),r},d.b,d.a)),i.Hb(5120,null,o.e,function(n){return[n]},[c.a]),i.rb(65,245760,null,0,c.a,[i.k,h.a,i.h,[2,p.b],[8,null],[2,m.a]],{disabled:[0,"disabled"],max:[1,"max"],min:[2,"min"],thumbLabel:[3,"thumbLabel"],tickInterval:[4,"tickInterval"],value:[5,"value"]},{change:"change"}),(n()(),i.sb(66,0,null,null,6,"div",[["class","section"]],null,null,null,null,null)),(n()(),i.hb(16777216,null,null,1,null,z)),i.rb(68,16384,null,0,u.k,[i.O,i.L],{ngIf:[0,"ngIf"]},null),(n()(),i.sb(69,0,null,null,1,"app-histogram",[],null,[[null,"historgramReady"],["window","resize"]],function(n,e,t){var r=!0,a=n.component;return"window:resize"===e&&(r=!1!==i.Eb(n,70).onWindowResize(t)&&r),"historgramReady"===e&&(r=!1!==a.onHistogramReady(t)&&r),r},x,f)),i.rb(70,4308992,[[1,4],["histogram",4]],0,g,[],{minValue:[0,"minValue"],maxValue:[1,"maxValue"],values:[2,"values"]},{historgramReady:"historgramReady"}),(n()(),i.hb(16777216,null,null,1,null,P)),i.rb(72,16384,null,0,u.k,[i.O,i.L],{ngIf:[0,"ngIf"]},null),(n()(),i.sb(73,0,null,null,1,"div",[["class","glow-footer"]],null,null,null,null,null)),(n()(),i.Kb(-1,null,[" while( !(success = try())); "]))],function(n,e){var t=e.component,r=n(e,13,0,"");n(e,12,0,r),n(e,19,0,t.selectedAlgorithm),n(e,23,0,t.algorithmNames);var a=n(e,31,0,!t.visualizing,t.visualizing,!0);n(e,30,0,a),n(e,33,0,t.visualizing,i.Eb(e,34));var l=n(e,38,0,!0);n(e,37,0,l);var o=n(e,43,0,!0);n(e,42,0,o),n(e,51,0,t.maxSpeed,"0",t.speed),n(e,58,0,t.visualizing,t.maxSamplesCount,"1","","1",t.samplesCount),n(e,65,0,t.visualizing,"999","1","","1",t.maxValue),n(e,68,0,t.customPanelOpened),n(e,70,0,t.minValue,t.maxValue,t.values),n(e,72,0,t.codePanelOpened)},function(n,e){var t=e.component;n(e,16,0,i.Eb(e,21).ngClassUntouched,i.Eb(e,21).ngClassTouched,i.Eb(e,21).ngClassPristine,i.Eb(e,21).ngClassDirty,i.Eb(e,21).ngClassValid,i.Eb(e,21).ngClassInvalid,i.Eb(e,21).ngClassPending),n(e,24,0,t.visualizing),n(e,26,0,t.visualizing),n(e,35,0,t.visualizing),n(e,49,1,[i.Eb(e,51).tabIndex,i.Eb(e,51).disabled,i.Eb(e,51).max,i.Eb(e,51).min,i.Eb(e,51).value,i.Eb(e,51).vertical?"vertical":"horizontal",i.Eb(e,51).disabled,i.Eb(e,51).tickInterval,!i.Eb(e,51).vertical,i.Eb(e,51)._invertAxis,i.Eb(e,51)._isSliding,i.Eb(e,51).thumbLabel,i.Eb(e,51).vertical,i.Eb(e,51)._isMinValue,i.Eb(e,51).disabled||i.Eb(e,51)._isMinValue&&i.Eb(e,51)._thumbGap&&i.Eb(e,51)._invertAxis,"NoopAnimations"===i.Eb(e,51)._animationMode]),n(e,56,1,[i.Eb(e,58).tabIndex,i.Eb(e,58).disabled,i.Eb(e,58).max,i.Eb(e,58).min,i.Eb(e,58).value,i.Eb(e,58).vertical?"vertical":"horizontal",i.Eb(e,58).disabled,i.Eb(e,58).tickInterval,!i.Eb(e,58).vertical,i.Eb(e,58)._invertAxis,i.Eb(e,58)._isSliding,i.Eb(e,58).thumbLabel,i.Eb(e,58).vertical,i.Eb(e,58)._isMinValue,i.Eb(e,58).disabled||i.Eb(e,58)._isMinValue&&i.Eb(e,58)._thumbGap&&i.Eb(e,58)._invertAxis,"NoopAnimations"===i.Eb(e,58)._animationMode]),n(e,63,1,[i.Eb(e,65).tabIndex,i.Eb(e,65).disabled,i.Eb(e,65).max,i.Eb(e,65).min,i.Eb(e,65).value,i.Eb(e,65).vertical?"vertical":"horizontal",i.Eb(e,65).disabled,i.Eb(e,65).tickInterval,!i.Eb(e,65).vertical,i.Eb(e,65)._invertAxis,i.Eb(e,65)._isSliding,i.Eb(e,65).thumbLabel,i.Eb(e,65).vertical,i.Eb(e,65)._isMinValue,i.Eb(e,65).disabled||i.Eb(e,65)._isMinValue&&i.Eb(e,65)._thumbGap&&i.Eb(e,65)._invertAxis,"NoopAnimations"===i.Eb(e,65)._animationMode])})}function A(n){return i.Lb(0,[(n()(),i.sb(0,0,null,null,1,"app-sorting-algorithms",[],null,null,null,O,E)),i.rb(1,4308992,null,0,S,[C.a],null,null)],function(n,e){n(e,1,0)},null)}var T=i.ob("app-sorting-algorithms",S,A,{},{},[]),B=r("cUpR"),L=r("Xd0L");var R=function n(){};var j=r("PCNd");r.d(t,"SortingAlgorithmsModuleNgFactory",function(){return V});var V=i.pb(a,[],function(n){return i.Bb([i.Cb(512,i.j,i.ab,[[8,[l.a,T]],[3,i.j],i.w]),i.Cb(4608,u.m,u.l,[i.t,[2,u.E]]),i.Cb(4608,o.m,o.m,[]),i.Cb(4608,B.e,L.a,[[2,L.c],[2,L.e]]),i.Cb(1073742336,u.b,u.b,[]),i.Cb(1073742336,o.l,o.l,[]),i.Cb(1073742336,o.c,o.c,[]),i.Cb(1073742336,s.m,s.m,[[2,s.r],[2,s.k]]),i.Cb(1073742336,R,R,[]),i.Cb(1073742336,j.a,j.a,[]),i.Cb(1073742336,p.a,p.a,[]),i.Cb(1073742336,L.e,L.e,[[2,L.b],[2,B.f]]),i.Cb(1073742336,c.b,c.b,[]),i.Cb(1073742336,a,a,[]),i.Cb(1024,s.i,function(){return[[{path:"",component:S}]]},[])])})}}]); \ No newline at end of file diff --git a/README.md b/README.md deleted file mode 100644 index 3846f04..0000000 --- a/README.md +++ /dev/null @@ -1,17 +0,0 @@ -# AlgorithmsVisualizer - -### A web application that helps you to understand algorithms better. - -### You can visit https://tejeshreddymeka.github.io/Algorithms-visualizer/ to experience the visualization of algorithms. - - - -[![Algorithms Visualizer](https://img.youtube.com/vi/YLOdPzzkTLU/0.jpg)](https://www.youtube.com/watch?v=YLOdPzzkTLU) - -Demo vedio: [vedio link](https://www.youtube.com/watch?v=YLOdPzzkTLU) - -![graph](https://github.com/tejeshreddymeka/Algorithms-visualizer/blob/master/graphs.gif) - -![sort techniques](https://github.com/tejeshreddymeka/Algorithms-visualizer/blob/master/sort-techq.gif) - -#### I will add new algorithms when i have free time. diff --git a/angular.json b/angular.json deleted file mode 100644 index 315b69a..0000000 --- a/angular.json +++ /dev/null @@ -1,139 +0,0 @@ -{ - "$schema": "./node_modules/@angular/cli/lib/config/schema.json", - "version": 1, - "newProjectRoot": "projects", - "projects": { - "Algorithms-visualizer": { - "projectType": "application", - "schematics": { - "@schematics/angular:component": { - "style": "sass" - } - }, - "root": "", - "sourceRoot": "src", - "prefix": "app", - "architect": { - "build": { - "builder": "@angular-devkit/build-angular:browser", - "options": { - "outputPath": "dist/Algorithms-visualizer", - "index": "src/index.html", - "main": "src/main.ts", - "polyfills": "src/polyfills.ts", - "tsConfig": "tsconfig.app.json", - "aot": false, - "assets": [ - "src/favicon.ico", - "src/assets" - ], - "styles": [ - "src/styles.sass", - "./node_modules/bootstrap/dist/css/bootstrap.min.css" - ], - "scripts": [ - "./node_modules/jquery/dist/jquery.min.js", - "./node_modules/bootstrap/dist/js/bootstrap.min.js", - "./node_modules/prismjs/prism.js" - ] - }, - "configurations": { - "production": { - "fileReplacements": [ - { - "replace": "src/environments/environment.ts", - "with": "src/environments/environment.prod.ts" - } - ], - "optimization": true, - "outputHashing": "all", - "sourceMap": false, - "extractCss": true, - "namedChunks": false, - "aot": true, - "extractLicenses": true, - "vendorChunk": false, - "buildOptimizer": true, - "budgets": [ - { - "type": "initial", - "maximumWarning": "2mb", - "maximumError": "5mb" - }, - { - "type": "anyComponentStyle", - "maximumWarning": "6kb", - "maximumError": "10kb" - } - ] - } - } - }, - "serve": { - "builder": "@angular-devkit/build-angular:dev-server", - "options": { - "browserTarget": "Algorithms-visualizer:build" - }, - "configurations": { - "production": { - "browserTarget": "Algorithms-visualizer:build:production" - } - } - }, - "extract-i18n": { - "builder": "@angular-devkit/build-angular:extract-i18n", - "options": { - "browserTarget": "Algorithms-visualizer:build" - } - }, - "test": { - "builder": "@angular-devkit/build-angular:karma", - "options": { - "main": "src/test.ts", - "polyfills": "src/polyfills.ts", - "tsConfig": "tsconfig.spec.json", - "karmaConfig": "karma.conf.js", - "assets": [ - "src/favicon.ico", - "src/assets" - ], - "styles": [ - "src/styles.sass" - ], - "scripts": [] - } - }, - "lint": { - "builder": "@angular-devkit/build-angular:tslint", - "options": { - "tsConfig": [ - "tsconfig.app.json", - "tsconfig.spec.json", - "e2e/tsconfig.json" - ], - "exclude": [ - "**/node_modules/**" - ] - } - }, - "e2e": { - "builder": "@angular-devkit/build-angular:protractor", - "options": { - "protractorConfig": "e2e/protractor.conf.js", - "devServerTarget": "Algorithms-visualizer:serve" - }, - "configurations": { - "production": { - "devServerTarget": "Algorithms-visualizer:serve:production" - } - } - }, - "deploy": { - "builder": "angular-cli-ghpages:deploy", - "options": {} - } - } - } - }, - "defaultProject": "Algorithms-visualizer" -} \ No newline at end of file diff --git a/src/assets/home-header-image.jpg b/assets/home-header-image.jpg similarity index 100% rename from src/assets/home-header-image.jpg rename to assets/home-header-image.jpg diff --git a/browserslist b/browserslist deleted file mode 100644 index 8084853..0000000 --- a/browserslist +++ /dev/null @@ -1,12 +0,0 @@ -# This file is used by the build system to adjust CSS and JS output to support the specified browsers below. -# For additional information regarding the format and rule options, please see: -# https://github.com/browserslist/browserslist#queries - -# You can see what browsers were selected by your queries by running: -# npx browserslist - -> 0.5% -last 2 versions -Firefox ESR -not dead -not IE 9-11 # For IE 9-11 support, remove 'not'. \ No newline at end of file diff --git a/e2e/protractor.conf.js b/e2e/protractor.conf.js deleted file mode 100644 index 73e4e68..0000000 --- a/e2e/protractor.conf.js +++ /dev/null @@ -1,32 +0,0 @@ -// @ts-check -// Protractor configuration file, see link for more information -// https://github.com/angular/protractor/blob/master/lib/config.ts - -const { SpecReporter } = require('jasmine-spec-reporter'); - -/** - * @type { import("protractor").Config } - */ -exports.config = { - allScriptsTimeout: 11000, - specs: [ - './src/**/*.e2e-spec.ts' - ], - capabilities: { - 'browserName': 'chrome' - }, - directConnect: true, - baseUrl: 'http://localhost:4200/', - framework: 'jasmine', - jasmineNodeOpts: { - showColors: true, - defaultTimeoutInterval: 30000, - print: function() {} - }, - onPrepare() { - require('ts-node').register({ - project: require('path').join(__dirname, './tsconfig.json') - }); - jasmine.getEnv().addReporter(new SpecReporter({ spec: { displayStacktrace: true } })); - } -}; \ No newline at end of file diff --git a/e2e/src/app.e2e-spec.ts b/e2e/src/app.e2e-spec.ts deleted file mode 100644 index 32513bc..0000000 --- a/e2e/src/app.e2e-spec.ts +++ /dev/null @@ -1,23 +0,0 @@ -import { AppPage } from './app.po'; -import { browser, logging } from 'protractor'; - -describe('workspace-project App', () => { - let page: AppPage; - - beforeEach(() => { - page = new AppPage(); - }); - - it('should display welcome message', () => { - page.navigateTo(); - expect(page.getTitleText()).toEqual('Algorithms-visualizer app is running!'); - }); - - afterEach(async () => { - // Assert that there are no errors emitted from the browser - const logs = await browser.manage().logs().get(logging.Type.BROWSER); - expect(logs).not.toContain(jasmine.objectContaining({ - level: logging.Level.SEVERE, - } as logging.Entry)); - }); -}); diff --git a/e2e/src/app.po.ts b/e2e/src/app.po.ts deleted file mode 100644 index b8498c2..0000000 --- a/e2e/src/app.po.ts +++ /dev/null @@ -1,11 +0,0 @@ -import { browser, by, element } from 'protractor'; - -export class AppPage { - navigateTo() { - return browser.get(browser.baseUrl) as Promise; - } - - getTitleText() { - return element(by.css('app-root .content span')).getText() as Promise; - } -} diff --git a/e2e/tsconfig.json b/e2e/tsconfig.json deleted file mode 100644 index 39b800f..0000000 --- a/e2e/tsconfig.json +++ /dev/null @@ -1,13 +0,0 @@ -{ - "extends": "../tsconfig.json", - "compilerOptions": { - "outDir": "../out-tsc/e2e", - "module": "commonjs", - "target": "es5", - "types": [ - "jasmine", - "jasminewd2", - "node" - ] - } -} diff --git a/src/favicon.ico b/favicon.ico similarity index 100% rename from src/favicon.ico rename to favicon.ico diff --git a/graphs.gif b/graphs.gif deleted file mode 100644 index d87e413..0000000 Binary files a/graphs.gif and /dev/null differ diff --git a/home-header-image.8ce7381c43fe4e6f288d.jpg b/home-header-image.8ce7381c43fe4e6f288d.jpg new file mode 100644 index 0000000..d14a6ac Binary files /dev/null and b/home-header-image.8ce7381c43fe4e6f288d.jpg differ diff --git a/index.html b/index.html new file mode 100644 index 0000000..a613b25 --- /dev/null +++ b/index.html @@ -0,0 +1,14 @@ + + + + + AlgorithmsVisualizer + + + + + + + + + diff --git a/karma.conf.js b/karma.conf.js deleted file mode 100644 index 55fcdc0..0000000 --- a/karma.conf.js +++ /dev/null @@ -1,32 +0,0 @@ -// Karma configuration file, see link for more information -// https://karma-runner.github.io/1.0/config/configuration-file.html - -module.exports = function (config) { - config.set({ - basePath: '', - frameworks: ['jasmine', '@angular-devkit/build-angular'], - plugins: [ - require('karma-jasmine'), - require('karma-chrome-launcher'), - require('karma-jasmine-html-reporter'), - require('karma-coverage-istanbul-reporter'), - require('@angular-devkit/build-angular/plugins/karma') - ], - client: { - clearContext: false // leave Jasmine Spec Runner output visible in browser - }, - coverageIstanbulReporter: { - dir: require('path').join(__dirname, './coverage/Algorithms-visualizer'), - reports: ['html', 'lcovonly', 'text-summary'], - fixWebpackSourcePaths: true - }, - reporters: ['progress', 'kjhtml'], - port: 9876, - colors: true, - logLevel: config.LOG_INFO, - autoWatch: true, - browsers: ['Chrome'], - singleRun: false, - restartOnFileChange: true - }); -}; diff --git a/main-es2015.dd9a2e78d1d4a71daa88.js b/main-es2015.dd9a2e78d1d4a71daa88.js new file mode 100644 index 0000000..6b8b833 --- /dev/null +++ b/main-es2015.dd9a2e78d1d4a71daa88.js @@ -0,0 +1 @@ +(window.webpackJsonp=window.webpackJsonp||[]).push([[2],{0:function(e,t,n){e.exports=n("zUnb")},"0EUg":function(e,t,n){"use strict";n.d(t,"a",function(){return s});var r=n("bHdf");function s(){return Object(r.a)(1)}},"2QA8":function(e,t,n){"use strict";n.d(t,"a",function(){return r});const r="function"==typeof Symbol?Symbol("rxSubscriber"):"@@rxSubscriber_"+Math.random()},"2Vo4":function(e,t,n){"use strict";n.d(t,"a",function(){return i});var r=n("XNiG"),s=n("9ppp");class i extends r.a{constructor(e){super(),this._value=e}get value(){return this.getValue()}_subscribe(e){const t=super._subscribe(e);return t&&!t.closed&&e.next(this._value),t}getValue(){if(this.hasError)throw this.thrownError;if(this.closed)throw new s.a;return this._value}next(e){super.next(this._value=e)}}},"2fFW":function(e,t,n){"use strict";n.d(t,"a",function(){return s});let r=!1;const s={Promise:void 0,set useDeprecatedSynchronousErrorHandling(e){if(e){const e=new Error;console.warn("DEPRECATED! RxJS was set to use deprecated synchronous error handling behavior by code at: \n"+e.stack)}else r&&console.log("RxJS: Back to a better error behavior. Thank you. <3");r=e},get useDeprecatedSynchronousErrorHandling(){return r}}},"4I5i":function(e,t,n){"use strict";function r(){return Error.call(this),this.message="argument out of range",this.name="ArgumentOutOfRangeError",this}n.d(t,"a",function(){return s}),r.prototype=Object.create(Error.prototype);const s=r},"5+tZ":function(e,t,n){"use strict";n.d(t,"a",function(){return l});var r=n("ZUHj"),s=n("l7GE"),i=n("51Dv"),o=n("lJxs"),a=n("Cfvw");function l(e,t,n=Number.POSITIVE_INFINITY){return"function"==typeof t?r=>r.pipe(l((n,r)=>Object(a.a)(e(n,r)).pipe(Object(o.a)((e,s)=>t(n,e,r,s))),n)):("number"==typeof t&&(n=t),t=>t.lift(new c(e,n)))}class c{constructor(e,t=Number.POSITIVE_INFINITY){this.project=e,this.concurrent=t}call(e,t){return t.subscribe(new u(e,this.project,this.concurrent))}}class u extends s.a{constructor(e,t,n=Number.POSITIVE_INFINITY){super(e),this.project=t,this.concurrent=n,this.hasCompleted=!1,this.buffer=[],this.active=0,this.index=0}_next(e){this.active0?this._next(t.shift()):0===this.active&&this.hasCompleted&&this.destination.complete()}}},"51Dv":function(e,t,n){"use strict";n.d(t,"a",function(){return s});var r=n("7o/Q");class s extends r.a{constructor(e,t,n){super(),this.parent=e,this.outerValue=t,this.outerIndex=n,this.index=0}_next(e){this.parent.notifyNext(this.outerValue,e,this.outerIndex,this.index++,this)}_error(e){this.parent.notifyError(e,this),this.unsubscribe()}_complete(){this.parent.notifyComplete(this),this.unsubscribe()}}},"7o/Q":function(e,t,n){"use strict";n.d(t,"a",function(){return c});var r=n("n6bG"),s=n("gRHU"),i=n("quSY"),o=n("2QA8"),a=n("2fFW"),l=n("NJ4a");class c extends i.a{constructor(e,t,n){switch(super(),this.syncErrorValue=null,this.syncErrorThrown=!1,this.syncErrorThrowable=!1,this.isStopped=!1,arguments.length){case 0:this.destination=s.a;break;case 1:if(!e){this.destination=s.a;break}if("object"==typeof e){e instanceof c?(this.syncErrorThrowable=e.syncErrorThrowable,this.destination=e,e.add(this)):(this.syncErrorThrowable=!0,this.destination=new u(this,e));break}default:this.syncErrorThrowable=!0,this.destination=new u(this,e,t,n)}}[o.a](){return this}static create(e,t,n){const r=new c(e,t,n);return r.syncErrorThrowable=!1,r}next(e){this.isStopped||this._next(e)}error(e){this.isStopped||(this.isStopped=!0,this._error(e))}complete(){this.isStopped||(this.isStopped=!0,this._complete())}unsubscribe(){this.closed||(this.isStopped=!0,super.unsubscribe())}_next(e){this.destination.next(e)}_error(e){this.destination.error(e),this.unsubscribe()}_complete(){this.destination.complete(),this.unsubscribe()}_unsubscribeAndRecycle(){const{_parent:e,_parents:t}=this;return this._parent=null,this._parents=null,this.unsubscribe(),this.closed=!1,this.isStopped=!1,this._parent=e,this._parents=t,this}}class u extends c{constructor(e,t,n,i){let o;super(),this._parentSubscriber=e;let a=this;Object(r.a)(t)?o=t:t&&(o=t.next,n=t.error,i=t.complete,t!==s.a&&(a=Object.create(t),Object(r.a)(a.unsubscribe)&&this.add(a.unsubscribe.bind(a)),a.unsubscribe=this.unsubscribe.bind(this))),this._context=a,this._next=o,this._error=n,this._complete=i}next(e){if(!this.isStopped&&this._next){const{_parentSubscriber:t}=this;a.a.useDeprecatedSynchronousErrorHandling&&t.syncErrorThrowable?this.__tryOrSetError(t,this._next,e)&&this.unsubscribe():this.__tryOrUnsub(this._next,e)}}error(e){if(!this.isStopped){const{_parentSubscriber:t}=this,{useDeprecatedSynchronousErrorHandling:n}=a.a;if(this._error)n&&t.syncErrorThrowable?(this.__tryOrSetError(t,this._error,e),this.unsubscribe()):(this.__tryOrUnsub(this._error,e),this.unsubscribe());else if(t.syncErrorThrowable)n?(t.syncErrorValue=e,t.syncErrorThrown=!0):Object(l.a)(e),this.unsubscribe();else{if(this.unsubscribe(),n)throw e;Object(l.a)(e)}}}complete(){if(!this.isStopped){const{_parentSubscriber:e}=this;if(this._complete){const t=()=>this._complete.call(this._context);a.a.useDeprecatedSynchronousErrorHandling&&e.syncErrorThrowable?(this.__tryOrSetError(e,t),this.unsubscribe()):(this.__tryOrUnsub(t),this.unsubscribe())}else this.unsubscribe()}}__tryOrUnsub(e,t){try{e.call(this._context,t)}catch(n){if(this.unsubscribe(),a.a.useDeprecatedSynchronousErrorHandling)throw n;Object(l.a)(n)}}__tryOrSetError(e,t,n){if(!a.a.useDeprecatedSynchronousErrorHandling)throw new Error("bad call");try{t.call(this._context,n)}catch(r){return a.a.useDeprecatedSynchronousErrorHandling?(e.syncErrorValue=r,e.syncErrorThrown=!0,!0):(Object(l.a)(r),!0)}return!1}_unsubscribe(){const{_parentSubscriber:e}=this;this._context=null,this._parentSubscriber=null,e.unsubscribe()}}},"8Y7J":function(e,t,n){"use strict";n.d(t,"kb",function(){return Ho}),n.d(t,"lb",function(){return zo}),n.d(t,"mb",function(){return Bo}),n.d(t,"nb",function(){return qo}),n.d(t,"jb",function(){return ji}),n.d(t,"ib",function(){return _i}),n.d(t,"g",function(){return ko}),n.d(t,"R",function(){return Co}),n.d(t,"x",function(){return wo}),n.d(t,"S",function(){return pt}),n.d(t,"W",function(){return ft}),n.d(t,"c",function(){return Ri}),n.d(t,"B",function(){return Vi}),n.d(t,"A",function(){return Fi}),n.d(t,"b",function(){return Li}),n.d(t,"d",function(){return Ii}),n.d(t,"e",function(){return Pi}),n.d(t,"U",function(){return Lo}),n.d(t,"M",function(){return ho}),n.d(t,"Y",function(){return mo}),n.d(t,"t",function(){return Ui}),n.d(t,"f",function(){return Wo}),n.d(t,"m",function(){return Di}),n.d(t,"l",function(){return ut}),n.d(t,"G",function(){return Ft}),n.d(t,"H",function(){return Vt}),n.d(t,"a",function(){return En}),n.d(t,"P",function(){return K}),n.d(t,"N",function(){return cr}),n.d(t,"Pb",function(){return g}),n.d(t,"T",function(){return w}),n.d(t,"q",function(){return mn}),n.d(t,"Qb",function(){return $}),n.d(t,"V",function(){return U}),n.d(t,"n",function(){return D}),n.d(t,"p",function(){return T}),n.d(t,"o",function(){return u}),n.d(t,"z",function(){return h}),n.d(t,"I",function(){return f}),n.d(t,"y",function(){return so}),n.d(t,"D",function(){return ar}),n.d(t,"E",function(){return ir}),n.d(t,"F",function(){return or}),n.d(t,"i",function(){return Qi}),n.d(t,"j",function(){return Jn}),n.d(t,"k",function(){return nr}),n.d(t,"u",function(){return q}),n.d(t,"w",function(){return B}),n.d(t,"v",function(){return To}),n.d(t,"C",function(){return Ni}),n.d(t,"J",function(){return Po}),n.d(t,"K",function(){return No}),n.d(t,"L",function(){return kr}),n.d(t,"O",function(){return Tr}),n.d(t,"h",function(){return hn}),n.d(t,"r",function(){return wr}),n.d(t,"s",function(){return Cr}),n.d(t,"Q",function(){return An}),n.d(t,"X",function(){return Uo}),n.d(t,"xb",function(){return Nn}),n.d(t,"bb",function(){return $i}),n.d(t,"Z",function(){return fn}),n.d(t,"ab",function(){return Xn}),n.d(t,"eb",function(){return jt}),n.d(t,"fb",function(){return Ut}),n.d(t,"gb",function(){return bt}),n.d(t,"vb",function(){return O}),n.d(t,"Ab",function(){return Tn}),n.d(t,"Jb",function(){return _}),n.d(t,"yb",function(){return qn}),n.d(t,"zb",function(){return Bn}),n.d(t,"ub",function(){return Ei}),n.d(t,"tb",function(){return xi}),n.d(t,"cb",function(){return vi}),n.d(t,"db",function(){return wi}),n.d(t,"Ob",function(){return ie}),n.d(t,"Mb",function(){return xn}),n.d(t,"Sb",function(){return Pn}),n.d(t,"Rb",function(){return Rn}),n.d(t,"Nb",function(){return jn}),n.d(t,"Tb",function(){return Fn}),n.d(t,"hb",function(){return Go}),n.d(t,"ob",function(){return Ps}),n.d(t,"pb",function(){return yl}),n.d(t,"qb",function(){return Wr}),n.d(t,"rb",function(){return ri}),n.d(t,"sb",function(){return Qo}),n.d(t,"wb",function(){return _s}),n.d(t,"Bb",function(){return ks}),n.d(t,"Cb",function(){return xs}),n.d(t,"Db",function(){return sa}),n.d(t,"Eb",function(){return Bs}),n.d(t,"Hb",function(){return si}),n.d(t,"Fb",function(){return oa}),n.d(t,"Gb",function(){return aa}),n.d(t,"Ib",function(){return Xo}),n.d(t,"Kb",function(){return ca}),n.d(t,"Lb",function(){return da});var r=n("XNiG"),s=n("quSY"),i=n("HDdC"),o=n("VRyK"),a=n("w1tV");const l="__parameters__";function c(e,t,n){const r=function(e){return function(...t){if(e){const n=e(...t);for(const e in n)this[e]=n[e]}}}(t);function s(...e){if(this instanceof s)return r.apply(this,e),this;const t=new s(...e);return n.annotation=t,n;function n(e,n,r){const s=e.hasOwnProperty(l)?e[l]:Object.defineProperty(e,l,{value:[]})[l];for(;s.length<=r;)s.push(null);return(s[r]=s[r]||[]).push(t),e}}return n&&(s.prototype=Object.create(n.prototype)),s.prototype.ngMetadataName=e,s.annotationCls=s,s}const u=c("Inject",e=>({token:e})),h=c("Optional"),d=c("Self"),f=c("SkipSelf");var p=function(e){return e[e.Default=0]="Default",e[e.Host=1]="Host",e[e.Self=2]="Self",e[e.SkipSelf=4]="SkipSelf",e[e.Optional=8]="Optional",e}({});function m(e){for(let t in e)if(e[t]===m)return t;throw Error("Could not find renamed property on target object.")}function g(e){return{token:e.token,providedIn:e.providedIn||null,factory:e.factory,value:void 0}}function y(e){const t=e[b];return t&&t.token===e?t:null}const b=m({ngInjectableDef:m});function _(e){if("string"==typeof e)return e;if(e instanceof Array)return"["+e.map(_).join(", ")+"]";if(null==e)return""+e;if(e.overriddenName)return`${e.overriddenName}`;if(e.name)return`${e.name}`;const t=e.toString();if(null==t)return""+t;const n=t.indexOf("\n");return-1===n?t:t.substring(0,n)}const v=m({__forward_ref__:m});function w(e){return e.__forward_ref__=w,e.toString=function(){return _(this())},e}function C(e){const t=e;return"function"==typeof t&&t.hasOwnProperty(v)&&t.__forward_ref__===w?t():e}const S="undefined"!=typeof globalThis&&globalThis,E="undefined"!=typeof window&&window,x="undefined"!=typeof self&&"undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope&&self,k="undefined"!=typeof global&&global,O=S||k||E||x;class T{constructor(e,t){this._desc=e,this.ngMetadataName="InjectionToken",this.ngInjectableDef=void 0,"number"==typeof t?this.__NG_ELEMENT_ID__=t:void 0!==t&&(this.ngInjectableDef=g({token:this,providedIn:t.providedIn||"root",factory:t.factory}))}toString(){return`InjectionToken ${this._desc}`}}const D=new T("INJECTOR",-1),A=new Object,N="ngTempTokenPath",I="ngTokenPath",P=/\n/gm,R="\u0275",j="__source",M=m({provide:String,useValue:m});let V,F=void 0;function L(e){const t=F;return F=e,t}function $(e,t=p.Default){return(V||function(e,t=p.Default){if(void 0===F)throw new Error("inject() must be called from an injection context");return null===F?function(e,t,n){const r=y(e);if(r&&"root"==r.providedIn)return void 0===r.value?r.value=r.factory():r.value;if(n&p.Optional)return null;throw new Error(`Injector: NOT_FOUND [${_(e)}]`)}(e,0,t):F.get(e,t&p.Optional?null:void 0,t)})(e,t)}const U=$;class H{get(e,t=A){if(t===A){const t=new Error(`NullInjectorError: No provider for ${_(e)}!`);throw t.name="NullInjectorError",t}return t}}function z(e,t,n,r=null){e=e&&"\n"===e.charAt(0)&&e.charAt(1)==R?e.substr(2):e;let s=_(t);if(t instanceof Array)s=t.map(_).join(" -> ");else if("object"==typeof t){let e=[];for(let n in t)if(t.hasOwnProperty(n)){let r=t[n];e.push(n+":"+("string"==typeof r?JSON.stringify(r):_(r)))}s=`{${e.join(", ")}}`}return`${n}${r?"("+r+")":""}[${s}]: ${e.replace(P,"\n ")}`}class B{}class q{}function W(e,t,n){t>=e.length?e.push(n):e.splice(t,0,n)}function G(e,t){return t>=e.length-1?e.pop():e.splice(t,1)[0]}const Q=function(){var e={OnPush:0,Default:1};return e[e.OnPush]="OnPush",e[e.Default]="Default",e}(),K=function(){var e={Emulated:0,Native:1,None:2,ShadowDom:3};return e[e.Emulated]="Emulated",e[e.Native]="Native",e[e.None]="None",e[e.ShadowDom]="ShadowDom",e}(),Z={},Y=[],J=m({ngComponentDef:m}),X=m({ngDirectiveDef:m}),ee=m({ngPipeDef:m});let te=0;function ne(e){return function(e){return e[J]||null}(e)||function(e){return e[X]||null}(e)}function re(e){return function(e){return e[ee]||null}(e)}function se(e,t){if(null==e)return Z;const n={};for(const r in e)if(e.hasOwnProperty(r)){let s=e[r],i=s;Array.isArray(s)&&(i=s[1],s=s[0]),n[s]=r,t&&(t[s]=i)}return n}const ie=function(e){const t=e.type,n=t.prototype,r={},s={type:t,providersResolver:null,consts:e.consts,vars:e.vars,factory:e.factory,template:e.template||null,ngContentSelectors:e.ngContentSelectors,hostBindings:e.hostBindings||null,contentQueries:e.contentQueries||null,declaredInputs:r,inputs:null,outputs:null,exportAs:e.exportAs||null,onChanges:null,onInit:n.ngOnInit||null,doCheck:n.ngDoCheck||null,afterContentInit:n.ngAfterContentInit||null,afterContentChecked:n.ngAfterContentChecked||null,afterViewInit:n.ngAfterViewInit||null,afterViewChecked:n.ngAfterViewChecked||null,onDestroy:n.ngOnDestroy||null,onPush:e.changeDetection===Q.OnPush,directiveDefs:null,pipeDefs:null,selectors:e.selectors,viewQuery:e.viewQuery||null,features:e.features||null,data:e.data||{},encapsulation:e.encapsulation||K.Emulated,id:"c",styles:e.styles||Y,_:null,setInput:null,schemas:e.schemas||null,tView:null};return s._=""+{toString:()=>{const n=e.directives,i=e.features,o=e.pipes;s.id+=te++,s.inputs=se(e.inputs,r),s.outputs=se(e.outputs),i&&i.forEach(e=>e(s)),s.directiveDefs=n?()=>("function"==typeof n?n():n).map(ne):null,s.pipeDefs=o?()=>("function"==typeof o?o():o).map(re):null,t.hasOwnProperty(b)||(t[b]=g({token:t,factory:e.factory}))}},s},oe=0,ae=1,le=7,ce=12,ue=19;let he=null;const de=new Map;let fe=null;const pe=1,me=0;function ge(e,t){return fe&&e===fe||(fe=e,t&&(he=de.get(e)||null),he=he||{classesBitMask:me,classesIndex:pe,stylesBitMask:me,stylesIndex:pe}),he}function ye(e,t){return function(e){for(;Array.isArray(e);)e=e[oe];return e}(t[e.index])}function be(e,t){return t[ae].data[e+ue]}let _e=null;function ve(){return Ce}let we,Ce,Se,Ee=1,xe=0,ke=0,Oe=-1;function Te(){return Oe}function De(){return Se}const Ae=(()=>("undefined"!=typeof requestAnimationFrame&&requestAnimationFrame||setTimeout).bind(O))(),Ne="--MAP--",Ie=0;function Pe(e,t){t===Ie?e[2]>Ie&&function(e){je(e,2|Re(e))}(e):e[2]=t}function Re(e){return e[1]}function je(e,t){e[1]=t}function Me(e,t){return e[t+2]}function Ve(e,t){return 1&e[t+0]}function Fe(e,t){return(1&Ve(e,t))>0}function Le(e,t){return e[t+0]>>1}function $e(e,t,n){const r=Ve(e,t);e[t+0]=r|n<<1}function Ue(e,t){return e[t+1]}function He(e,t,n){return e[t+3+n]}function ze(e,t){return!(!e||t!==e[2])}function Be(e){return(1&Re(e))>0}function qe(e){return(2&Re(e))>0}function We(e){return 6+e[4]}function Ge(e,t){let n=Array.isArray(e)?e[0]:e,r=Array.isArray(t)?t[0]:t;return n instanceof String&&(n=n.toString()),r instanceof String&&(r=r.toString()),!(n!=n&&r!=r)&&n!==r}function Qe(e){return null!=e&&""!==e}function Ke(e,t,n=" "){return e+(t.length&&e.length?n:"")+t}function Ze(e){return e.replace(/[a-z][A-Z]/g,e=>e.charAt(0)+"-"+e.charAt(1)).toLowerCase()}function Ye(e){return Je(e)?e[0]:e}function Je(e){return Array.isArray(e)&&e.length>=6&&"string"!=typeof e[1]}function Xe(e,t){return e[t+0]}function et(e,t,n){e[t+1]=n}function tt(e,t){return e[t+1]}const nt=function(){var e={Important:1,DashCase:2};return e[e.Important]="Important",e[e.DashCase]="DashCase",e}();function rt(e){return!!e.listen}const st="ngDebugContext",it="ngOriginalError",ot="ngErrorLogger";function at(e){return e[st]}function lt(e){return e[it]}function ct(e,...t){e.error(...t)}class ut{constructor(){this._console=console}handleError(e){const t=this._findOriginalError(e),n=this._findContext(e),r=function(e){return e[ot]||ct}(e);r(this._console,"ERROR",e),t&&r(this._console,"ORIGINAL ERROR",t),n&&r(this._console,"ERROR CONTEXT",n)}_findContext(e){return e?at(e)?at(e):this._findContext(lt(e)):null}_findOriginalError(e){let t=lt(e);for(;t&<(t);)t=lt(t);return t}}let ht=!0,dt=!1;function ft(){return dt=!0,ht}function pt(){if(dt)throw new Error("Cannot enable prod mode after platform setup.");ht=!1}class mt{constructor(e){if(this.defaultDoc=e,this.inertDocument=this.defaultDoc.implementation.createHTMLDocument("sanitization-inert"),this.inertBodyElement=this.inertDocument.body,null==this.inertBodyElement){const e=this.inertDocument.createElement("html");this.inertDocument.appendChild(e),this.inertBodyElement=this.inertDocument.createElement("body"),e.appendChild(this.inertBodyElement)}this.inertBodyElement.innerHTML='',!this.inertBodyElement.querySelector||this.inertBodyElement.querySelector("svg")?(this.inertBodyElement.innerHTML='