diff --git a/.eslintrc.json b/.eslintrc.json
new file mode 100644
index 0000000..1cc45f8
--- /dev/null
+++ b/.eslintrc.json
@@ -0,0 +1,77 @@
+{
+ "root": true,
+ "ignorePatterns": [
+ "projects/**/*"
+ ],
+ "overrides": [
+ {
+ "files": [
+ "*.ts"
+ ],
+ "parserOptions": {
+ "project": [
+ "tsconfig.json",
+ "e2e/tsconfig.json"
+ ],
+ "createDefaultProgram": true
+ },
+ "extends": [
+ "plugin:@angular-eslint/ng-cli-compat",
+ "plugin:@angular-eslint/ng-cli-compat--formatting-add-on",
+ "plugin:@angular-eslint/template/process-inline-templates"
+ ],
+ "plugins": [
+ "eslint-plugin-unicorn"
+ ],
+ "rules": {
+ "@typescript-eslint/consistent-type-definitions": "error",
+ "@typescript-eslint/dot-notation": "off",
+ "@typescript-eslint/explicit-member-accessibility": [
+ "off",
+ {
+ "accessibility": "explicit"
+ }
+ ],
+ "@typescript-eslint/no-use-before-define": "error",
+ "brace-style": [
+ "error",
+ "1tbs"
+ ],
+ "comma-dangle": [
+ "error",
+ "always-multiline"
+ ],
+ "id-blacklist": "off",
+ "id-match": "off",
+ "max-len": [
+ "error",
+ {
+ "ignorePattern": "^import |^export | implements | extends ",
+ "code": 200
+ }
+ ],
+ "no-multiple-empty-lines": "error",
+ "no-underscore-dangle": "off",
+ "padding-line-between-statements": [
+ "error",
+ {
+ "blankLine": "always",
+ "prev": "*",
+ "next": "return"
+ }
+ ],
+ "unicorn/filename-case": "error",
+ "@typescript-eslint/member-ordering": "off"
+ }
+ },
+ {
+ "files": [
+ "*.html"
+ ],
+ "extends": [
+ "plugin:@angular-eslint/template/recommended"
+ ],
+ "rules": {}
+ }
+ ]
+}
diff --git a/.gitignore b/.gitignore
index f4f46a5..574ca98 100644
--- a/.gitignore
+++ b/.gitignore
@@ -32,6 +32,7 @@ speed-measure-plugin.json
.history/*
# misc
+/.angular/cache
/.sass-cache
/connect.lock
/coverage
diff --git a/angular.json b/angular.json
index e6af2f5..a19783d 100644
--- a/angular.json
+++ b/angular.json
@@ -30,7 +30,14 @@
"src/styles.scss",
"node_modules/bootstrap/dist/css/bootstrap.css"
],
- "scripts": []
+ "scripts": [],
+ "aot": false,
+ "vendorChunk": true,
+ "extractLicenses": false,
+ "buildOptimizer": false,
+ "sourceMap": true,
+ "optimization": false,
+ "namedChunks": true
},
"configurations": {
"production": {
@@ -56,7 +63,8 @@
}
]
}
- }
+ },
+ "defaultConfiguration": ""
},
"serve": {
"builder": "@angular-devkit/build-angular:dev-server",
@@ -93,15 +101,11 @@
}
},
"lint": {
- "builder": "@angular-devkit/build-angular:tslint",
+ "builder": "@angular-eslint/builder:lint",
"options": {
- "tsConfig": [
- "tsconfig.app.json",
- "tsconfig.spec.json",
- "e2e/tsconfig.json"
- ],
- "exclude": [
- "**/node_modules/**"
+ "lintFilePatterns": [
+ "src/**/*.ts",
+ "src/**/*.html"
]
}
},
@@ -141,19 +145,19 @@
}
},
"lint": {
- "builder": "@angular-devkit/build-angular:tslint",
+ "builder": "@angular-eslint/builder:lint",
"options": {
- "tsConfig": [
- "projects/ngx-sortablejs/tsconfig.lib.json",
- "projects/ngx-sortablejs/tsconfig.spec.json"
- ],
- "exclude": [
- "**/node_modules/**"
+ "lintFilePatterns": [
+ "projects/ngx-sortablejs/**/*.ts",
+ "projects/ngx-sortablejs/**/*.html"
]
}
}
}
}
},
- "defaultProject": "ngx-sortablejs-app"
+ "defaultProject": "ngx-sortablejs-app",
+ "cli": {
+ "defaultCollection": "@angular-eslint/schematics"
+ }
}
diff --git a/docs/3rdpartylicenses.txt b/docs/3rdpartylicenses.txt
deleted file mode 100644
index 4bbae0b..0000000
--- a/docs/3rdpartylicenses.txt
+++ /dev/null
@@ -1,335 +0,0 @@
-@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/common
-MIT
-
-@angular/core
-MIT
-
-@angular/forms
-MIT
-
-@angular/platform-browser
-MIT
-
-@angular/router
-MIT
-
-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.
-
-
-ngx-bootstrap/component-loader
-
-ngx-bootstrap/dropdown
-
-ngx-bootstrap/positioning
-
-ngx-bootstrap/utils
-
-ngx-sortablejs
-MIT
-MIT License
------------
-
-Copyright (c) 2016 Semen Bobrov
-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.
-
-
-
-sortablejs
-MIT
-
-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/docs/404.html b/docs/404.html
deleted file mode 100644
index d20e959..0000000
--- a/docs/404.html
+++ /dev/null
@@ -1,16 +0,0 @@
-
-
-
-
-
- ngx-sortablejs demo
-
-
-
-
-
-
-
-
-
-
diff --git a/docs/assets/sortable-logo.png b/docs/assets/sortable-logo.png
deleted file mode 100644
index e67be96..0000000
Binary files a/docs/assets/sortable-logo.png and /dev/null differ
diff --git a/docs/favicon.ico b/docs/favicon.ico
deleted file mode 100644
index 8081c7c..0000000
Binary files a/docs/favicon.ico and /dev/null differ
diff --git a/docs/index.html b/docs/index.html
deleted file mode 100644
index d20e959..0000000
--- a/docs/index.html
+++ /dev/null
@@ -1,16 +0,0 @@
-
-
-
-
-
- ngx-sortablejs demo
-
-
-
-
-
-
-
-
-
-
diff --git a/docs/main-es2015.24f3a84c4815c23e5b2d.js b/docs/main-es2015.24f3a84c4815c23e5b2d.js
deleted file mode 100644
index f58913c..0000000
--- a/docs/main-es2015.24f3a84c4815c23e5b2d.js
+++ /dev/null
@@ -1 +0,0 @@
-(window.webpackJsonp=window.webpackJsonp||[]).push([[1],{0:function(t,e,n){t.exports=n("zUnb")},zUnb:function(t,e,n){"use strict";function r(t){return"function"==typeof t}n.r(e);let s=!1;const i={Promise:void 0,set useDeprecatedSynchronousErrorHandling(t){s=t},get useDeprecatedSynchronousErrorHandling(){return s}};function o(t){setTimeout(()=>{throw t})}const l={closed:!0,next(t){},error(t){if(i.useDeprecatedSynchronousErrorHandling)throw t;o(t)},complete(){}},a=Array.isArray||(t=>t&&"number"==typeof t.length);function u(t){return null!==t&&"object"==typeof t}function c(t){return Error.call(this),this.message=t?`${t.length} errors occurred during unsubscription:\n${t.map((t,e)=>`${e+1}) ${t.toString()}`).join("\n ")}`:"",this.name="UnsubscriptionError",this.errors=t,this}c.prototype=Object.create(Error.prototype);const h=c,d=function(){class t{constructor(t){this.closed=!1,this._parent=null,this._parents=null,this._subscriptions=null,t&&(this._unsubscribe=t)}unsubscribe(){let t,e=!1;if(this.closed)return;let{_parent:n,_parents:s,_unsubscribe:i,_subscriptions:o}=this;this.closed=!0,this._parent=null,this._parents=null,this._subscriptions=null;let l=-1,c=s?s.length:0;for(;n;)n.remove(this),n=++lt.concat(e instanceof h?e.errors:e),[])}const f="function"==typeof Symbol?Symbol("rxSubscriber"):"@@rxSubscriber_"+Math.random();class g extends d{constructor(t,e,n){switch(super(),this.syncErrorValue=null,this.syncErrorThrown=!1,this.syncErrorThrowable=!1,this.isStopped=!1,arguments.length){case 0:this.destination=l;break;case 1:if(!t){this.destination=l;break}if("object"==typeof t){t instanceof g?(this.syncErrorThrowable=t.syncErrorThrowable,this.destination=t,t.add(this)):(this.syncErrorThrowable=!0,this.destination=new m(this,t));break}default:this.syncErrorThrowable=!0,this.destination=new m(this,t,e,n)}}[f](){return this}static create(t,e,n){const r=new g(t,e,n);return r.syncErrorThrowable=!1,r}next(t){this.isStopped||this._next(t)}error(t){this.isStopped||(this.isStopped=!0,this._error(t))}complete(){this.isStopped||(this.isStopped=!0,this._complete())}unsubscribe(){this.closed||(this.isStopped=!0,super.unsubscribe())}_next(t){this.destination.next(t)}_error(t){this.destination.error(t),this.unsubscribe()}_complete(){this.destination.complete(),this.unsubscribe()}_unsubscribeAndRecycle(){const{_parent:t,_parents:e}=this;return this._parent=null,this._parents=null,this.unsubscribe(),this.closed=!1,this.isStopped=!1,this._parent=t,this._parents=e,this}}class m extends g{constructor(t,e,n,s){let i;super(),this._parentSubscriber=t;let o=this;r(e)?i=e:e&&(i=e.next,n=e.error,s=e.complete,e!==l&&(r((o=Object.create(e)).unsubscribe)&&this.add(o.unsubscribe.bind(o)),o.unsubscribe=this.unsubscribe.bind(this))),this._context=o,this._next=i,this._error=n,this._complete=s}next(t){if(!this.isStopped&&this._next){const{_parentSubscriber:e}=this;i.useDeprecatedSynchronousErrorHandling&&e.syncErrorThrowable?this.__tryOrSetError(e,this._next,t)&&this.unsubscribe():this.__tryOrUnsub(this._next,t)}}error(t){if(!this.isStopped){const{_parentSubscriber:e}=this,{useDeprecatedSynchronousErrorHandling:n}=i;if(this._error)n&&e.syncErrorThrowable?(this.__tryOrSetError(e,this._error,t),this.unsubscribe()):(this.__tryOrUnsub(this._error,t),this.unsubscribe());else if(e.syncErrorThrowable)n?(e.syncErrorValue=t,e.syncErrorThrown=!0):o(t),this.unsubscribe();else{if(this.unsubscribe(),n)throw t;o(t)}}}complete(){if(!this.isStopped){const{_parentSubscriber:t}=this;if(this._complete){const e=()=>this._complete.call(this._context);i.useDeprecatedSynchronousErrorHandling&&t.syncErrorThrowable?(this.__tryOrSetError(t,e),this.unsubscribe()):(this.__tryOrUnsub(e),this.unsubscribe())}else this.unsubscribe()}}__tryOrUnsub(t,e){try{t.call(this._context,e)}catch(n){if(this.unsubscribe(),i.useDeprecatedSynchronousErrorHandling)throw n;o(n)}}__tryOrSetError(t,e,n){if(!i.useDeprecatedSynchronousErrorHandling)throw new Error("bad call");try{e.call(this._context,n)}catch(r){return i.useDeprecatedSynchronousErrorHandling?(t.syncErrorValue=r,t.syncErrorThrown=!0,!0):(o(r),!0)}return!1}_unsubscribe(){const{_parentSubscriber:t}=this;this._context=null,this._parentSubscriber=null,t.unsubscribe()}}const v="function"==typeof Symbol&&Symbol.observable||"@@observable";function _(){}function b(...t){return w(t)}function w(t){return t?1===t.length?t[0]:function(e){return t.reduce((t,e)=>e(t),e)}:_}const y=function(){class t{constructor(t){this._isScalar=!1,t&&(this._subscribe=t)}lift(e){const n=new t;return n.source=this,n.operator=e,n}subscribe(t,e,n){const{operator:r}=this,s=function(t,e,n){if(t){if(t instanceof g)return t;if(t[f])return t[f]()}return t||e||n?new g(t,e,n):new g(l)}(t,e,n);if(s.add(r?r.call(s,this.source):this.source||i.useDeprecatedSynchronousErrorHandling&&!s.syncErrorThrowable?this._subscribe(s):this._trySubscribe(s)),i.useDeprecatedSynchronousErrorHandling&&s.syncErrorThrowable&&(s.syncErrorThrowable=!1,s.syncErrorThrown))throw s.syncErrorValue;return s}_trySubscribe(t){try{return this._subscribe(t)}catch(e){i.useDeprecatedSynchronousErrorHandling&&(t.syncErrorThrown=!0,t.syncErrorValue=e),function(t){for(;t;){const{closed:e,destination:n,isStopped:r}=t;if(e||r)return!1;t=n&&n instanceof g?n:null}return!0}(t)?t.error(e):console.warn(e)}}forEach(t,e){return new(e=C(e))((e,n)=>{let r;r=this.subscribe(e=>{try{t(e)}catch(s){n(s),r&&r.unsubscribe()}},n,e)})}_subscribe(t){const{source:e}=this;return e&&e.subscribe(t)}[v](){return this}pipe(...t){return 0===t.length?this:w(t)(this)}toPromise(t){return new(t=C(t))((t,e)=>{let n;this.subscribe(t=>n=t,t=>e(t),()=>t(n))})}}return t.create=(e=>new t(e)),t}();function C(t){if(t||(t=i.Promise||Promise),!t)throw new Error("no Promise impl found");return t}function E(){return Error.call(this),this.message="object unsubscribed",this.name="ObjectUnsubscribedError",this}E.prototype=Object.create(Error.prototype);const S=E;class x extends d{constructor(t,e){super(),this.subject=t,this.subscriber=e,this.closed=!1}unsubscribe(){if(this.closed)return;this.closed=!0;const t=this.subject,e=t.observers;if(this.subject=null,!e||0===e.length||t.isStopped||t.closed)return;const n=e.indexOf(this.subscriber);-1!==n&&e.splice(n,1)}}class T extends g{constructor(t){super(t),this.destination=t}}const k=function(){class t extends y{constructor(){super(),this.observers=[],this.closed=!1,this.isStopped=!1,this.hasError=!1,this.thrownError=null}[f](){return new T(this)}lift(t){const e=new A(this,this);return e.operator=t,e}next(t){if(this.closed)throw new S;if(!this.isStopped){const{observers:e}=this,n=e.length,r=e.slice();for(let s=0;snew A(t,e)),t}();class A extends k{constructor(t,e){super(),this.destination=t,this.source=e}next(t){const{destination:e}=this;e&&e.next&&e.next(t)}error(t){const{destination:e}=this;e&&e.error&&this.destination.error(t)}complete(){const{destination:t}=this;t&&t.complete&&this.destination.complete()}_subscribe(t){const{source:e}=this;return e?this.source.subscribe(t):d.EMPTY}}function O(t){return t&&"function"==typeof t.schedule}class I extends g{constructor(t,e,n){super(),this.parent=t,this.outerValue=e,this.outerIndex=n,this.index=0}_next(t){this.parent.notifyNext(this.outerValue,t,this.outerIndex,this.index++,this)}_error(t){this.parent.notifyError(t,this),this.unsubscribe()}_complete(){this.parent.notifyComplete(this),this.unsubscribe()}}const R=t=>e=>{for(let n=0,r=t.length;ne=>(t.then(t=>{e.closed||(e.next(t),e.complete())},t=>e.error(t)).then(null,o),e);function D(){return"function"==typeof Symbol&&Symbol.iterator?Symbol.iterator:"@@iterator"}const M=D(),P=t=>e=>{const n=t[M]();for(;;){const t=n.next();if(t.done){e.complete();break}if(e.next(t.value),e.closed)break}return"function"==typeof n.return&&e.add(()=>{n.return&&n.return()}),e},V=t=>e=>{const n=t[v]();if("function"!=typeof n.subscribe)throw new TypeError("Provided object does not correctly implement Symbol.observable");return n.subscribe(e)},j=t=>t&&"number"==typeof t.length&&"function"!=typeof t;function L(t){return!!t&&"function"!=typeof t.subscribe&&"function"==typeof t.then}const F=t=>{if(t instanceof y)return e=>t._isScalar?(e.next(t.value),void e.complete()):t.subscribe(e);if(t&&"function"==typeof t[v])return V(t);if(j(t))return R(t);if(L(t))return N(t);if(t&&"function"==typeof t[M])return P(t);{const e=u(t)?"an invalid object":`'${t}'`;throw new TypeError(`You provided ${e} where a stream was expected.`+" You can provide an Observable, Promise, Array, or Iterable.")}};function U(t,e,n,r,s=new I(t,n,r)){if(!s.closed)return F(e)(s)}class $ extends g{notifyNext(t,e,n,r,s){this.destination.next(e)}notifyError(t,e){this.destination.error(t)}notifyComplete(t){this.destination.complete()}}function H(t,e){return function(n){if("function"!=typeof t)throw new TypeError("argument is not a function. Are you looking for `mapTo()`?");return n.lift(new z(t,e))}}class z{constructor(t,e){this.project=t,this.thisArg=e}call(t,e){return e.subscribe(new B(t,this.project,this.thisArg))}}class B extends g{constructor(t,e,n){super(t),this.project=e,this.count=0,this.thisArg=n||this}_next(t){let e;try{e=this.project.call(this.thisArg,t,this.count++)}catch(n){return void this.destination.error(n)}this.destination.next(e)}}function W(t,e){return new y(e?n=>{const r=new d;let s=0;return r.add(e.schedule(function(){s!==t.length?(n.next(t[s++]),n.closed||r.add(this.schedule())):n.complete()})),r}:R(t))}function G(t,e){if(!e)return t instanceof y?t:new y(F(t));if(null!=t){if(function(t){return t&&"function"==typeof t[v]}(t))return function(t,e){return new y(e?n=>{const r=new d;return r.add(e.schedule(()=>{const s=t[v]();r.add(s.subscribe({next(t){r.add(e.schedule(()=>n.next(t)))},error(t){r.add(e.schedule(()=>n.error(t)))},complete(){r.add(e.schedule(()=>n.complete()))}}))})),r}:V(t))}(t,e);if(L(t))return function(t,e){return new y(e?n=>{const r=new d;return r.add(e.schedule(()=>t.then(t=>{r.add(e.schedule(()=>{n.next(t),r.add(e.schedule(()=>n.complete()))}))},t=>{r.add(e.schedule(()=>n.error(t)))}))),r}:N(t))}(t,e);if(j(t))return W(t,e);if(function(t){return t&&"function"==typeof t[M]}(t)||"string"==typeof t)return function(t,e){if(!t)throw new Error("Iterable cannot be null");return new y(e?n=>{const r=new d;let s;return r.add(()=>{s&&"function"==typeof s.return&&s.return()}),r.add(e.schedule(()=>{s=t[M](),r.add(e.schedule(function(){if(n.closed)return;let t,e;try{const i=s.next();t=i.value,e=i.done}catch(r){return void n.error(r)}e?n.complete():(n.next(t),this.schedule())}))})),r}:P(t))}(t,e)}throw new TypeError((null!==t&&typeof t||t)+" is not observable")}function q(t,e,n=Number.POSITIVE_INFINITY){return"function"==typeof e?r=>r.pipe(q((n,r)=>G(t(n,r)).pipe(H((t,s)=>e(n,t,r,s))),n)):("number"==typeof e&&(n=e),e=>e.lift(new Z(t,n)))}class Z{constructor(t,e=Number.POSITIVE_INFINITY){this.project=t,this.concurrent=e}call(t,e){return e.subscribe(new Q(t,this.project,this.concurrent))}}class Q extends ${constructor(t,e,n=Number.POSITIVE_INFINITY){super(t),this.project=e,this.concurrent=n,this.hasCompleted=!1,this.buffer=[],this.active=0,this.index=0}_next(t){this.active0?this._next(e.shift()):0===this.active&&this.hasCompleted&&this.destination.complete()}}function Y(t){return t}function K(t=Number.POSITIVE_INFINITY){return q(Y,t)}function X(...t){let e=Number.POSITIVE_INFINITY,n=null,r=t[t.length-1];return O(r)?(n=t.pop(),t.length>1&&"number"==typeof t[t.length-1]&&(e=t.pop())):"number"==typeof r&&(e=t.pop()),null===n&&1===t.length&&t[0]instanceof y?t[0]:K(e)(W(t,n))}function J(){return function(t){return t.lift(new tt(t))}}class tt{constructor(t){this.connectable=t}call(t,e){const{connectable:n}=this;n._refCount++;const r=new et(t,n),s=e.subscribe(r);return r.closed||(r.connection=n.connect()),s}}class et extends g{constructor(t,e){super(t),this.connectable=e}_unsubscribe(){const{connectable:t}=this;if(!t)return void(this.connection=null);this.connectable=null;const e=t._refCount;if(e<=0)return void(this.connection=null);if(t._refCount=e-1,e>1)return void(this.connection=null);const{connection:n}=this,r=t._connection;this.connection=null,!r||n&&r!==n||r.unsubscribe()}}const nt=class extends y{constructor(t,e){super(),this.source=t,this.subjectFactory=e,this._refCount=0,this._isComplete=!1}_subscribe(t){return this.getSubject().subscribe(t)}getSubject(){const t=this._subject;return t&&!t.isStopped||(this._subject=this.subjectFactory()),this._subject}connect(){let t=this._connection;return t||(this._isComplete=!1,(t=this._connection=new d).add(this.source.subscribe(new st(this.getSubject(),this))),t.closed?(this._connection=null,t=d.EMPTY):this._connection=t),t}refCount(){return J()(this)}}.prototype,rt={operator:{value:null},_refCount:{value:0,writable:!0},_subject:{value:null,writable:!0},_connection:{value:null,writable:!0},_subscribe:{value:nt._subscribe},_isComplete:{value:nt._isComplete,writable:!0},getSubject:{value:nt.getSubject},connect:{value:nt.connect},refCount:{value:nt.refCount}};class st extends T{constructor(t,e){super(t),this.connectable=e}_error(t){this._unsubscribe(),super._error(t)}_complete(){this.connectable._isComplete=!0,this._unsubscribe(),super._complete()}_unsubscribe(){const t=this.connectable;if(t){this.connectable=null;const e=t._connection;t._refCount=0,t._subject=null,t._connection=null,e&&e.unsubscribe()}}}function it(){return new k}const ot="__parameters__";function lt(t,e,n){const r=function(t){return function(...e){if(t){const n=t(...e);for(const t in n)this[t]=n[t]}}}(e);function s(...t){if(this instanceof s)return r.apply(this,t),this;const e=new s(...t);return n.annotation=e,n;function n(t,n,r){const s=t.hasOwnProperty(ot)?t[ot]:Object.defineProperty(t,ot,{value:[]})[ot];for(;s.length<=r;)s.push(null);return(s[r]=s[r]||[]).push(e),t}}return n&&(s.prototype=Object.create(n.prototype)),s.prototype.ngMetadataName=t,s.annotationCls=s,s}const at=lt("Inject",t=>({token:t})),ut=lt("Optional"),ct=lt("Self"),ht=lt("SkipSelf");var dt=function(t){return t[t.Default=0]="Default",t[t.Host=1]="Host",t[t.Self=2]="Self",t[t.SkipSelf=4]="SkipSelf",t[t.Optional=8]="Optional",t}({});function pt(t){for(let e in t)if(t[e]===pt)return e;throw Error("Could not find renamed property on target object.")}function ft(t){return{providedIn:t.providedIn||null,factory:t.factory,value:void 0}}function gt(t){return t&&t.hasOwnProperty(mt)?t[mt]:null}const mt=pt({ngInjectableDef:pt});function vt(t){if("string"==typeof t)return t;if(t instanceof Array)return"["+t.map(vt).join(", ")+"]";if(null==t)return""+t;if(t.overriddenName)return`${t.overriddenName}`;if(t.name)return`${t.name}`;const e=t.toString();if(null==e)return""+e;const n=e.indexOf("\n");return-1===n?e:e.substring(0,n)}const _t=pt({__forward_ref__:pt});function bt(t){return t.__forward_ref__=bt,t.toString=function(){return vt(this())},t}function wt(t){const e=t;return"function"==typeof e&&e.hasOwnProperty(_t)&&e.__forward_ref__===bt?e():t}function yt(){const t="undefined"!=typeof globalThis&&globalThis,e="undefined"!=typeof window&&window,n="undefined"!=typeof self&&"undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope&&self,r="undefined"!=typeof global&&global;return t||r||e||n}const Ct=yt();let Et,St=void 0;function xt(t){const e=St;return St=t,e}function Tt(t,e=dt.Default){return(Et||function(t,e=dt.Default){if(void 0===St)throw new Error("inject() must be called from an injection context");return null===St?function(t,e,n){const r=gt(t);if(r&&"root"==r.providedIn)return void 0===r.value?r.value=r.factory():r.value;if(n&dt.Optional)return null;throw new Error(`Injector: NOT_FOUND [${vt(t)}]`)}(t,0,e):St.get(t,e&dt.Optional?null:void 0,e)})(t,e)}class kt{constructor(t,e){this._desc=t,this.ngMetadataName="InjectionToken",this.ngInjectableDef=void 0,"number"==typeof e?this.__NG_ELEMENT_ID__=e:void 0!==e&&(this.ngInjectableDef=ft({providedIn:e.providedIn||"root",factory:e.factory}))}toString(){return`InjectionToken ${this._desc}`}}const At="__source",Ot=new Object,It=new kt("INJECTOR",-1);class Rt{get(t,e=Ot){if(e===Ot){const e=new Error(`NullInjectorError: No provider for ${vt(t)}!`);throw e.name="NullInjectorError",e}return e}}const Nt=function(){class t{static create(t,e){return Array.isArray(t)?new Ht(t,e):new Ht(t.providers,t.parent,t.name||null)}}return t.THROW_IF_NOT_FOUND=Ot,t.NULL=new Rt,t.ngInjectableDef=ft({providedIn:"any",factory:()=>Tt(It)}),t.__NG_ELEMENT_ID__=-1,t}(),Dt=function(t){return t},Mt=[],Pt=Dt,Vt=function(){return Array.prototype.slice.call(arguments)},jt=pt({provide:String,useValue:pt}),Lt="ngTokenPath",Ft="ngTempTokenPath",Ut=/\n/gm,$t="\u0275";class Ht{constructor(t,e=Nt.NULL,n=null){this.parent=e,this.source=n;const r=this._records=new Map;r.set(Nt,{token:Nt,fn:Dt,deps:Mt,value:this,useNew:!1}),r.set(It,{token:It,fn:Dt,deps:Mt,value:this,useNew:!1}),function t(e,n){if(n)if((n=wt(n))instanceof Array)for(let r=0;rt.push(vt(n))),`StaticInjector[${t.join(", ")}]`}}function zt(t){return Wt("Cannot mix multi providers and regular providers",t)}function Bt(t,e,n,r=null){t=t&&"\n"===t.charAt(0)&&t.charAt(1)==$t?t.substr(2):t;let s=vt(e);if(e instanceof Array)s=e.map(vt).join(" -> ");else if("object"==typeof e){let t=[];for(let n in e)if(e.hasOwnProperty(n)){let r=e[n];t.push(n+":"+("string"==typeof r?JSON.stringify(r):vt(r)))}s=`{${t.join(", ")}}`}return`${n}${r?"("+r+")":""}[${s}]: ${t.replace(Ut,"\n ")}`}function Wt(t,e){return new Error(Bt(t,e,"StaticInjectorError"))}const Gt="ngDebugContext",qt="ngOriginalError",Zt="ngErrorLogger",Qt=new kt("AnalyzeForEntryComponents"),Yt=function(){var t={Emulated:0,Native:1,None:2,ShadowDom:3};return t[t.Emulated]="Emulated",t[t.Native]="Native",t[t.None]="None",t[t.ShadowDom]="ShadowDom",t}(),Kt=(()=>("undefined"!=typeof requestAnimationFrame&&requestAnimationFrame||setTimeout).bind(Ct))();function Xt(t){return t[Gt]}function Jt(t){return t[qt]}function te(t,...e){t.error(...e)}class ee{constructor(){this._console=console}handleError(t){const e=this._findOriginalError(t),n=this._findContext(t),r=function(t){return t[Zt]||te}(t);r(this._console,"ERROR",t),e&&r(this._console,"ORIGINAL ERROR",e),n&&r(this._console,"ERROR CONTEXT",n)}_findContext(t){return t?Xt(t)?Xt(t):this._findContext(Jt(t)):null}_findOriginalError(t){let e=Jt(t);for(;e&&Jt(e);)e=Jt(e);return e}}let ne=!0,re=!1;function se(){return re=!0,ne}class ie{constructor(t){if(this.defaultDoc=t,this.inertDocument=this.defaultDoc.implementation.createHTMLDocument("sanitization-inert"),this.inertBodyElement=this.inertDocument.body,null==this.inertBodyElement){const t=this.inertDocument.createElement("html");this.inertDocument.appendChild(t),this.inertBodyElement=this.inertDocument.createElement("body"),t.appendChild(this.inertBodyElement)}this.inertBodyElement.innerHTML=' ',!this.inertBodyElement.querySelector||this.inertBodyElement.querySelector("svg")?(this.inertBodyElement.innerHTML=' ',this.getInertBodyElement=this.inertBodyElement.querySelector&&this.inertBodyElement.querySelector("svg img")&&function(){try{return!!window.DOMParser}catch(t){return!1}}()?this.getInertBodyElement_DOMParser:this.getInertBodyElement_InertDocument):this.getInertBodyElement=this.getInertBodyElement_XHR}getInertBodyElement_XHR(t){t="
"+t+"";try{t=encodeURI(t)}catch(r){return null}const e=new XMLHttpRequest;e.responseType="document",e.open("GET","data:text/html;charset=utf-8,"+t,!1),e.send(void 0);const n=e.response.body;return n.removeChild(n.firstChild),n}getInertBodyElement_DOMParser(t){t=" "+t+"";try{const n=(new window.DOMParser).parseFromString(t,"text/html").body;return n.removeChild(n.firstChild),n}catch(e){return null}}getInertBodyElement_InertDocument(t){const e=this.inertDocument.createElement("template");return"content"in e?(e.innerHTML=t,e):(this.inertBodyElement.innerHTML=t,this.defaultDoc.documentMode&&this.stripCustomNsAttrs(this.inertBodyElement),this.inertBodyElement)}stripCustomNsAttrs(t){const e=t.attributes;for(let r=e.length-1;0ae(t.trim())).join(", ")),this.buf.push(" ",e,'="',Ee(o),'"')}var r;return this.buf.push(">"),!0}endElement(t){const e=t.nodeName.toLowerCase();ge.hasOwnProperty(e)&&!he.hasOwnProperty(e)&&(this.buf.push(""),this.buf.push(e),this.buf.push(">"))}chars(t){this.buf.push(Ee(t))}checkClobberedElement(t,e){if(e&&(t.compareDocumentPosition(e)&Node.DOCUMENT_POSITION_CONTAINED_BY)===Node.DOCUMENT_POSITION_CONTAINED_BY)throw new Error(`Failed to sanitize html because the element is clobbered: ${t.outerHTML}`);return e}}const ye=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,Ce=/([^\#-~ |!])/g;function Ee(t){return t.replace(/&/g,"&").replace(ye,function(t){return""+(1024*(t.charCodeAt(0)-55296)+(t.charCodeAt(1)-56320)+65536)+";"}).replace(Ce,function(t){return""+t.charCodeAt(0)+";"}).replace(//g,">")}let Se;function xe(t){return"content"in t&&function(t){return t.nodeType===Node.ELEMENT_NODE&&"TEMPLATE"===t.nodeName}(t)?t.content:null}const Te=function(){var t={NONE:0,HTML:1,STYLE:2,SCRIPT:3,URL:4,RESOURCE_URL:5};return t[t.NONE]="NONE",t[t.HTML]="HTML",t[t.STYLE]="STYLE",t[t.SCRIPT]="SCRIPT",t[t.URL]="URL",t[t.RESOURCE_URL]="RESOURCE_URL",t}();class ke{}const Ae=new RegExp("^([-,.\"'%_!# a-zA-Z0-9]+|(?:(?:matrix|translate|scale|rotate|skew|perspective)(?:X|Y|3d)?|(?:rgb|hsl)a?|(?:repeating-)?(?:linear|radial)-gradient|(?:calc|attr))\\([-0-9.%, #a-zA-Z]+\\))$","g"),Oe=/^url\(([^)]+)\)$/,Ie=/([A-Z])/g;function Re(t){try{return null!=t?t.toString().slice(0,30):t}catch(e){return"[ERROR] Exception while trying to serialize the value"}}function Ne(t){return!!t&&"function"==typeof t.then}function De(t){return!!t&&"function"==typeof t.subscribe}let Me=null;function Pe(){if(!Me){const t=Ct.Symbol;if(t&&t.iterator)Me=t.iterator;else{const t=Object.getOwnPropertyNames(Map.prototype);for(let e=0;een(t)),t}(),en=Je;class nn{}class rn{}const sn=function(){var t={Important:1,DashCase:2};return t[t.Important]="Important",t[t.DashCase]="DashCase",t}(),on=function(){class t{}return t.__NG_ELEMENT_ID__=(()=>ln()),t}(),ln=Je;class an{constructor(t){this.full=t,this.major=t.split(".")[0],this.minor=t.split(".")[1],this.patch=t.split(".").slice(2).join(".")}}const un=new an("8.0.0");class cn{constructor(){}supports(t){return Fe(t)}create(t){return new dn(t)}}const hn=(t,e)=>e;class dn{constructor(t){this.length=0,this._linkedRecords=null,this._unlinkedRecords=null,this._previousItHead=null,this._itHead=null,this._itTail=null,this._additionsHead=null,this._additionsTail=null,this._movesHead=null,this._movesTail=null,this._removalsHead=null,this._removalsTail=null,this._identityChangesHead=null,this._identityChangesTail=null,this._trackByFn=t||hn}forEachItem(t){let e;for(e=this._itHead;null!==e;e=e._next)t(e)}forEachOperation(t){let e=this._itHead,n=this._removalsHead,r=0,s=null;for(;e||n;){const i=!n||e&&e.currentIndex{r=this._trackByFn(e,t),null!==s&&Ve(s.trackById,r)?(i&&(s=this._verifyReinsertion(s,t,r,e)),Ve(s.item,t)||this._addIdentityChange(s,t)):(s=this._mismatch(s,t,r,e),i=!0),s=s._next,e++}),this.length=e;return this._truncate(s),this.collection=t,this.isDirty}get isDirty(){return null!==this._additionsHead||null!==this._movesHead||null!==this._removalsHead||null!==this._identityChangesHead}_reset(){if(this.isDirty){let t,e;for(t=this._previousItHead=this._itHead;null!==t;t=t._next)t._nextPrevious=t._next;for(t=this._additionsHead;null!==t;t=t._nextAdded)t.previousIndex=t.currentIndex;for(this._additionsHead=this._additionsTail=null,t=this._movesHead;null!==t;t=e)t.previousIndex=t.currentIndex,e=t._nextMoved;this._movesHead=this._movesTail=null,this._removalsHead=this._removalsTail=null,this._identityChangesHead=this._identityChangesTail=null}}_mismatch(t,e,n,r){let s;return null===t?s=this._itTail:(s=t._prev,this._remove(t)),null!==(t=null===this._linkedRecords?null:this._linkedRecords.get(n,r))?(Ve(t.item,e)||this._addIdentityChange(t,e),this._moveAfter(t,s,r)):null!==(t=null===this._unlinkedRecords?null:this._unlinkedRecords.get(n,null))?(Ve(t.item,e)||this._addIdentityChange(t,e),this._reinsertAfter(t,s,r)):t=this._addAfter(new pn(e,n),s,r),t}_verifyReinsertion(t,e,n,r){let s=null===this._unlinkedRecords?null:this._unlinkedRecords.get(n,null);return null!==s?t=this._reinsertAfter(s,t._prev,r):t.currentIndex!=r&&(t.currentIndex=r,this._addToMoves(t,r)),t}_truncate(t){for(;null!==t;){const e=t._next;this._addToRemovals(this._unlink(t)),t=e}null!==this._unlinkedRecords&&this._unlinkedRecords.clear(),null!==this._additionsTail&&(this._additionsTail._nextAdded=null),null!==this._movesTail&&(this._movesTail._nextMoved=null),null!==this._itTail&&(this._itTail._next=null),null!==this._removalsTail&&(this._removalsTail._nextRemoved=null),null!==this._identityChangesTail&&(this._identityChangesTail._nextIdentityChange=null)}_reinsertAfter(t,e,n){null!==this._unlinkedRecords&&this._unlinkedRecords.remove(t);const r=t._prevRemoved,s=t._nextRemoved;return null===r?this._removalsHead=s:r._nextRemoved=s,null===s?this._removalsTail=r:s._prevRemoved=r,this._insertAfter(t,e,n),this._addToMoves(t,n),t}_moveAfter(t,e,n){return this._unlink(t),this._insertAfter(t,e,n),this._addToMoves(t,n),t}_addAfter(t,e,n){return this._insertAfter(t,e,n),this._additionsTail=null===this._additionsTail?this._additionsHead=t:this._additionsTail._nextAdded=t,t}_insertAfter(t,e,n){const r=null===e?this._itHead:e._next;return t._next=r,t._prev=e,null===r?this._itTail=t:r._prev=t,null===e?this._itHead=t:e._next=t,null===this._linkedRecords&&(this._linkedRecords=new gn),this._linkedRecords.put(t),t.currentIndex=n,t}_remove(t){return this._addToRemovals(this._unlink(t))}_unlink(t){null!==this._linkedRecords&&this._linkedRecords.remove(t);const e=t._prev,n=t._next;return null===e?this._itHead=n:e._next=n,null===n?this._itTail=e:n._prev=e,t}_addToMoves(t,e){return t.previousIndex===e?t:(this._movesTail=null===this._movesTail?this._movesHead=t:this._movesTail._nextMoved=t,t)}_addToRemovals(t){return null===this._unlinkedRecords&&(this._unlinkedRecords=new gn),this._unlinkedRecords.put(t),t.currentIndex=null,t._nextRemoved=null,null===this._removalsTail?(this._removalsTail=this._removalsHead=t,t._prevRemoved=null):(t._prevRemoved=this._removalsTail,this._removalsTail=this._removalsTail._nextRemoved=t),t}_addIdentityChange(t,e){return t.item=e,this._identityChangesTail=null===this._identityChangesTail?this._identityChangesHead=t:this._identityChangesTail._nextIdentityChange=t,t}}class pn{constructor(t,e){this.item=t,this.trackById=e,this.currentIndex=null,this.previousIndex=null,this._nextPrevious=null,this._prev=null,this._next=null,this._prevDup=null,this._nextDup=null,this._prevRemoved=null,this._nextRemoved=null,this._nextAdded=null,this._nextMoved=null,this._nextIdentityChange=null}}class fn{constructor(){this._head=null,this._tail=null}add(t){null===this._head?(this._head=this._tail=t,t._nextDup=null,t._prevDup=null):(this._tail._nextDup=t,t._prevDup=this._tail,t._nextDup=null,this._tail=t)}get(t,e){let n;for(n=this._head;null!==n;n=n._nextDup)if((null===e||e<=n.currentIndex)&&Ve(n.trackById,t))return n;return null}remove(t){const e=t._prevDup,n=t._nextDup;return null===e?this._head=n:e._nextDup=n,null===n?this._tail=e:n._prevDup=e,null===this._head}}class gn{constructor(){this.map=new Map}put(t){const e=t.trackById;let n=this.map.get(e);n||(n=new fn,this.map.set(e,n)),n.add(t)}get(t,e){const n=this.map.get(t);return n?n.get(t,e):null}remove(t){const e=t.trackById;return this.map.get(e).remove(t)&&this.map.delete(e),t}get isEmpty(){return 0===this.map.size}clear(){this.map.clear()}}function mn(t,e,n){const r=t.previousIndex;if(null===r)return r;let s=0;return n&&r{if(e&&e.key===n)this._maybeAddToChanges(e,t),this._appendAfter=e,e=e._next;else{const r=this._getOrCreateRecordForKey(n,t);e=this._insertBeforeOrAppend(e,r)}}),e){e._prev&&(e._prev._next=null),this._removalsHead=e;for(let t=e;null!==t;t=t._nextRemoved)t===this._mapHead&&(this._mapHead=null),this._records.delete(t.key),t._nextRemoved=t._next,t.previousValue=t.currentValue,t.currentValue=null,t._prev=null,t._next=null}return this._changesTail&&(this._changesTail._nextChanged=null),this._additionsTail&&(this._additionsTail._nextAdded=null),this.isDirty}_insertBeforeOrAppend(t,e){if(t){const n=t._prev;return e._next=t,e._prev=n,t._prev=e,n&&(n._next=e),t===this._mapHead&&(this._mapHead=e),this._appendAfter=t,t}return this._appendAfter?(this._appendAfter._next=e,e._prev=this._appendAfter):this._mapHead=e,this._appendAfter=e,null}_getOrCreateRecordForKey(t,e){if(this._records.has(t)){const n=this._records.get(t);this._maybeAddToChanges(n,e);const r=n._prev,s=n._next;return r&&(r._next=s),s&&(s._prev=r),n._next=null,n._prev=null,n}const n=new bn(t);return this._records.set(t,n),n.currentValue=e,this._addToAdditions(n),n}_reset(){if(this.isDirty){let t;for(this._previousMapHead=this._mapHead,t=this._previousMapHead;null!==t;t=t._next)t._nextPrevious=t._next;for(t=this._changesHead;null!==t;t=t._nextChanged)t.previousValue=t.currentValue;for(t=this._additionsHead;null!=t;t=t._nextAdded)t.previousValue=t.currentValue;this._changesHead=this._changesTail=null,this._additionsHead=this._additionsTail=null,this._removalsHead=null}}_maybeAddToChanges(t,e){Ve(e,t.currentValue)||(t.previousValue=t.currentValue,t.currentValue=e,this._addToChanges(t))}_addToAdditions(t){null===this._additionsHead?this._additionsHead=this._additionsTail=t:(this._additionsTail._nextAdded=t,this._additionsTail=t)}_addToChanges(t){null===this._changesHead?this._changesHead=this._changesTail=t:(this._changesTail._nextChanged=t,this._changesTail=t)}_forEach(t,e){t instanceof Map?t.forEach(e):Object.keys(t).forEach(n=>e(t[n],n))}}class bn{constructor(t){this.key=t,this.previousValue=null,this.currentValue=null,this._nextPrevious=null,this._next=null,this._prev=null,this._nextAdded=null,this._nextRemoved=null,this._nextChanged=null}}const wn=function(){class t{constructor(t){this.factories=t}static create(e,n){if(null!=n){const t=n.factories.slice();e=e.concat(t)}return new t(e)}static extend(e){return{provide:t,useFactory:n=>{if(!n)throw new Error("Cannot extend IterableDiffers without a parent injector");return t.create(e,n)},deps:[[t,new ht,new ut]]}}find(t){const e=this.factories.find(e=>e.supports(t));if(null!=e)return e;throw new Error(`Cannot find a differ supporting object '${t}' of type '${n=t,n.name||typeof n}'`);var n}}return t.ngInjectableDef=ft({providedIn:"root",factory:()=>new t([new cn])}),t}(),yn=function(){class t{constructor(t){this.factories=t}static create(e,n){if(n){const t=n.factories.slice();e=e.concat(t)}return new t(e)}static extend(e){return{provide:t,useFactory:n=>{if(!n)throw new Error("Cannot extend KeyValueDiffers without a parent injector");return t.create(e,n)},deps:[[t,new ht,new ut]]}}find(t){const e=this.factories.find(e=>e.supports(t));if(e)return e;throw new Error(`Cannot find a differ supporting object '${t}'`)}}return t.ngInjectableDef=ft({providedIn:"root",factory:()=>new t([new vn])}),t}(),Cn=function(){class t{}return t.__NG_ELEMENT_ID__=(()=>En()),t}(),En=(...t)=>{},Sn=[new vn],xn=new wn([new cn]),Tn=new yn(Sn),kn=function(){class t{}return t.__NG_ELEMENT_ID__=(()=>An(t,tn)),t}(),An=Je,On=function(){class t{}return t.__NG_ELEMENT_ID__=(()=>In(t,tn)),t}(),In=Je;function Rn(t,e,n,r){let s=`ExpressionChangedAfterItHasBeenCheckedError: Expression has changed after it was checked. Previous value: '${e}'. Current value: '${n}'.`;return r&&(s+=" It seems like the view has been created after its parent and its children have been dirty checked. Has it been created in a change detection hook ?"),function(t,e){const n=new Error(t);return Nn(n,e),n}(s,t)}function Nn(t,e){t[Gt]=e,t[Zt]=e.logError.bind(e)}function Dn(t){return new Error(`ViewDestroyedError: Attempt to use a destroyed view: ${t}`)}function Mn(t,e,n){const r=t.state,s=1792&r;return s===e?(t.state=-1793&r|n,t.initIndex=-1,!0):s===n}function Pn(t,e,n){return(1792&t.state)===e&&t.initIndex<=n&&(t.initIndex=n+1,!0)}function Vn(t,e){return t.nodes[e]}function jn(t,e){return t.nodes[e]}function Ln(t,e){return t.nodes[e]}function Fn(t,e){return t.nodes[e]}function Un(t,e){return t.nodes[e]}const $n={setCurrentNode:void 0,createRootView:void 0,createEmbeddedView:void 0,createComponentView:void 0,createNgModuleRef:void 0,overrideProvider:void 0,overrideComponentView:void 0,clearOverrides:void 0,checkAndUpdateView:void 0,checkNoChangesView:void 0,destroyView:void 0,resolveDep:void 0,createDebugContext:void 0,handleEvent:void 0,updateDirectives:void 0,updateRenderer:void 0,dirtyParentQueries:void 0},Hn=()=>{},zn=new Map;function Bn(t){let e=zn.get(t);return e||(e=vt(t)+"_"+zn.size,zn.set(t,e)),e}function Wn(t,e,n,r){if(Le.isWrapped(r)){r=Le.unwrap(r);const s=t.def.nodes[e].bindingIndex+n,i=Le.unwrap(t.oldValues[s]);t.oldValues[s]=new Le(i)}return r}const Gn="$$undefined",qn="$$empty";function Zn(t){return{id:Gn,styles:t.styles,encapsulation:t.encapsulation,data:t.data}}let Qn=0;function Yn(t,e,n,r){return!(!(2&t.state)&&Ve(t.oldValues[e.bindingIndex+n],r))}function Kn(t,e,n,r){return!!Yn(t,e,n,r)&&(t.oldValues[e.bindingIndex+n]=r,!0)}function Xn(t,e,n,r){const s=t.oldValues[e.bindingIndex+n];if(1&t.state||!je(s,r)){const i=e.bindings[n].name;throw Rn($n.createDebugContext(t,e.nodeIndex),`${i}: ${s}`,`${i}: ${r}`,0!=(1&t.state))}}function Jn(t){let e=t;for(;e;)2&e.def.flags&&(e.state|=8),e=e.viewContainerParent||e.parent}function tr(t,e){let n=t;for(;n&&n!==e;)n.state|=64,n=n.viewContainerParent||n.parent}function er(t,e,n,r){try{return Jn(33554432&t.def.nodes[e].flags?jn(t,e).componentView:t),$n.handleEvent(t,e,n,r)}catch(s){t.root.errorHandler.handleError(s)}}function nr(t){return t.parent?jn(t.parent,t.parentNodeDef.nodeIndex):null}function rr(t){return t.parent?t.parentNodeDef.parent:null}function sr(t,e){switch(201347067&e.flags){case 1:return jn(t,e.nodeIndex).renderElement;case 2:return Vn(t,e.nodeIndex).renderText}}function ir(t){return!!t.parent&&!!(32768&t.parentNodeDef.flags)}function or(t){return!(!t.parent||32768&t.parentNodeDef.flags)}function lr(t){return 1<{"number"==typeof t?(e[t]=s,n|=lr(t)):r[t]=s}),{matchedQueries:e,references:r,matchedQueryIds:n}}function ur(t,e){return t.map(t=>{let n,r;return Array.isArray(t)?[r,n]=t:(r=0,n=t),n&&("function"==typeof n||"object"==typeof n)&&e&&Object.defineProperty(n,At,{value:e,configurable:!0}),{flags:r,token:n,tokenKey:Bn(n)}})}function cr(t,e,n){let r=n.renderParent;return r?0==(1&r.flags)||0==(33554432&r.flags)||r.element.componentRendererType&&r.element.componentRendererType.encapsulation===Yt.Native?jn(t,n.renderParent.nodeIndex).renderElement:void 0:e}const hr=new WeakMap;function dr(t){let e=hr.get(t);return e||((e=t(()=>Hn)).factory=t,hr.set(t,e)),e}function pr(t,e,n,r,s){3===e&&(n=t.renderer.parentNode(sr(t,t.def.lastRenderRootNode))),fr(t,e,0,t.def.nodes.length-1,n,r,s)}function fr(t,e,n,r,s,i,o){for(let l=n;l<=r;l++){const n=t.def.nodes[l];11&n.flags&&mr(t,n,e,s,i,o),l+=n.childCount}}function gr(t,e,n,r,s,i){let o=t;for(;o&&!ir(o);)o=o.parent;const l=o.parent,a=rr(o),u=a.nodeIndex+a.childCount;for(let c=a.nodeIndex+1;c<=u;c++){const t=l.def.nodes[c];t.ngContentIndex===e&&mr(l,t,n,r,s,i),c+=t.childCount}if(!l.parent){const o=t.root.projectableNodes[e];if(o)for(let e=0;e-1}(s)||"root"===i.providedIn&&s._def.isRoot))){const n=t._providers.length;return t._def.providers[n]=t._def.providersByKey[e.tokenKey]={flags:5120,value:a.factory,deps:[],index:n,token:e.token},t._providers[n]=yr,t._providers[n]=kr(t,t._def.providersByKey[e.tokenKey])}return 4&e.flags?n:t._parent.get(e.token,n)}finally{xt(r)}var s,i}function kr(t,e){let n;switch(201347067&e.flags){case 512:n=function(t,e,n){const r=n.length;switch(r){case 0:return new e;case 1:return new e(Tr(t,n[0]));case 2:return new e(Tr(t,n[0]),Tr(t,n[1]));case 3:return new e(Tr(t,n[0]),Tr(t,n[1]),Tr(t,n[2]));default:const s=new Array(r);for(let e=0;e=n.length)&&(e=n.length-1),e<0)return null;const r=n[e];return r.viewContainerParent=null,Nr(n,e),$n.dirtyParentQueries(r),Ir(r),r}function Or(t,e,n){const r=e?sr(e,e.def.lastRenderRootNode):t.renderElement,s=n.renderer.parentNode(r),i=n.renderer.nextSibling(r);pr(n,2,s,i,void 0)}function Ir(t){pr(t,3,null,null,void 0)}function Rr(t,e,n){e>=t.length?t.push(n):t.splice(e,0,n)}function Nr(t,e){e>=t.length-1?t.pop():t.splice(e,1)}const Dr=new Object;function Mr(t,e,n,r,s,i){return new Pr(t,e,n,r,s,i)}class Pr extends Be{constructor(t,e,n,r,s,i){super(),this.selector=t,this.componentType=e,this._inputs=r,this._outputs=s,this.ngContentSelectors=i,this.viewDefFactory=n}get inputs(){const t=[],e=this._inputs;for(let n in e)t.push({propName:n,templateName:e[n]});return t}get outputs(){const t=[];for(let e in this._outputs)t.push({propName:e,templateName:this._outputs[e]});return t}create(t,e,n,r){if(!r)throw new Error("ngModule should be provided");const s=dr(this.viewDefFactory),i=s.nodes[0].element.componentProvider.nodeIndex,o=$n.createRootView(t,e||[],n,s,r,Dr),l=Ln(o,i).instance;return n&&o.renderer.setAttribute(jn(o,0).renderElement,"ng-version",un.full),new Vr(o,new Ur(o),l)}}class Vr extends ze{constructor(t,e,n){super(),this._view=t,this._viewRef=e,this._component=n,this._elDef=this._view.def.nodes[0],this.hostView=e,this.changeDetectorRef=e,this.instance=n}get location(){return new tn(jn(this._view,this._elDef.nodeIndex).renderElement)}get injector(){return new Br(this._view,this._elDef)}get componentType(){return this._component.constructor}destroy(){this._viewRef.destroy()}onDestroy(t){this._viewRef.onDestroy(t)}}function jr(t,e,n){return new Lr(t,e,n)}class Lr{constructor(t,e,n){this._view=t,this._elDef=e,this._data=n,this._embeddedViews=[]}get element(){return new tn(this._data.renderElement)}get injector(){return new Br(this._view,this._elDef)}get parentInjector(){let t=this._view,e=this._elDef.parent;for(;!e&&t;)e=rr(t),t=t.parent;return t?new Br(t,e):new Br(this._view,null)}clear(){for(let t=this._embeddedViews.length-1;t>=0;t--){const e=Ar(this._data,t);$n.destroyView(e)}}get(t){const e=this._embeddedViews[t];if(e){const t=new Ur(e);return t.attachToViewContainerRef(this),t}return null}get length(){return this._embeddedViews.length}createEmbeddedView(t,e,n){const r=t.createEmbeddedView(e||{});return this.insert(r,n),r}createComponent(t,e,n,r,s){const i=n||this.parentInjector;s||t instanceof Ye||(s=i.get(Ke));const o=t.create(i,r,void 0,s);return this.insert(o.hostView,e),o}insert(t,e){if(t.destroyed)throw new Error("Cannot insert a destroyed View in a ViewContainer!");const n=t;return function(t,e,n,r){let s=e.viewContainer._embeddedViews;null==n&&(n=s.length),r.viewContainerParent=t,Rr(s,n,r),function(t,e){const n=nr(e);if(!n||n===t||16&e.state)return;e.state|=16;let r=n.template._projectedViews;r||(r=n.template._projectedViews=[]),r.push(e),function(t,n){if(4&n.flags)return;e.parent.def.nodeFlags|=4,n.flags|=4;let r=n.parent;for(;r;)r.childFlags|=4,r=r.parent}(0,e.parentNodeDef)}(e,r),$n.dirtyParentQueries(r),Or(e,n>0?s[n-1]:null,r)}(this._view,this._data,e,n._view),n.attachToViewContainerRef(this),t}move(t,e){if(t.destroyed)throw new Error("Cannot move a destroyed View in a ViewContainer!");const n=this._embeddedViews.indexOf(t._view);return function(t,e,r){const s=t.viewContainer._embeddedViews,i=s[n];Nr(s,n),null==r&&(r=s.length),Rr(s,r,i),$n.dirtyParentQueries(i),Ir(i),Or(t,r>0?s[r-1]:null,i)}(this._data,0,e),t}indexOf(t){return this._embeddedViews.indexOf(t._view)}remove(t){const e=Ar(this._data,t);e&&$n.destroyView(e)}detach(t){const e=Ar(this._data,t);return e?new Ur(e):null}}function Fr(t){return new Ur(t)}class Ur{constructor(t){this._view=t,this._viewContainerRef=null,this._appRef=null}get rootNodes(){return function(t){const e=[];return pr(t,0,void 0,void 0,e),e}(this._view)}get context(){return this._view.context}get destroyed(){return 0!=(128&this._view.state)}markForCheck(){Jn(this._view)}detach(){this._view.state&=-5}detectChanges(){const t=this._view.root.rendererFactory;t.begin&&t.begin();try{$n.checkAndUpdateView(this._view)}finally{t.end&&t.end()}}checkNoChanges(){$n.checkNoChangesView(this._view)}reattach(){this._view.state|=4}onDestroy(t){this._view.disposables||(this._view.disposables=[]),this._view.disposables.push(t)}destroy(){this._appRef?this._appRef.detachView(this):this._viewContainerRef&&this._viewContainerRef.detach(this._viewContainerRef.indexOf(this)),$n.destroyView(this._view)}detachFromAppRef(){this._appRef=null,Ir(this._view),$n.dirtyParentQueries(this._view)}attachToAppRef(t){if(this._viewContainerRef)throw new Error("This view is already attached to a ViewContainer!");this._appRef=t}attachToViewContainerRef(t){if(this._appRef)throw new Error("This view is already attached directly to the ApplicationRef!");this._viewContainerRef=t}}function $r(t,e){return new Hr(t,e)}class Hr extends kn{constructor(t,e){super(),this._parentView=t,this._def=e}createEmbeddedView(t){return new Ur($n.createEmbeddedView(this._parentView,this._def,this._def.element.template,t))}get elementRef(){return new tn(jn(this._parentView,this._def.nodeIndex).renderElement)}}function zr(t,e){return new Br(t,e)}class Br{constructor(t,e){this.view=t,this.elDef=e}get(t,e=Nt.THROW_IF_NOT_FOUND){return $n.resolveDep(this.view,this.elDef,!!this.elDef&&0!=(33554432&this.elDef.flags),{flags:0,token:t,tokenKey:Bn(t)},e)}}function Wr(t,e){const n=t.def.nodes[e];if(1&n.flags){const e=jn(t,n.nodeIndex);return n.element.template?e.template:e.renderElement}if(2&n.flags)return Vn(t,n.nodeIndex).renderText;if(20240&n.flags)return Ln(t,n.nodeIndex).instance;throw new Error(`Illegal state: read nodeValue for node index ${e}`)}function Gr(t){return new qr(t.renderer)}class qr{constructor(t){this.delegate=t}selectRootElement(t){return this.delegate.selectRootElement(t)}createElement(t,e){const[n,r]=br(e),s=this.delegate.createElement(r,n);return t&&this.delegate.appendChild(t,s),s}createViewRoot(t){return t}createTemplateAnchor(t){const e=this.delegate.createComment("");return t&&this.delegate.appendChild(t,e),e}createText(t,e){const n=this.delegate.createText(e);return t&&this.delegate.appendChild(t,n),n}projectNodes(t,e){for(let n=0;nt())}onDestroy(t){this._destroyListeners.push(t)}}const Yr=Bn(nn),Kr=Bn(on),Xr=Bn(tn),Jr=Bn(On),ts=Bn(kn),es=Bn(Cn),ns=Bn(Nt),rs=Bn(It);function ss(t,e,n,r,s,i,o,l){const a=[];if(o)for(let c in o){const[t,e]=o[c];a[t]={flags:8,name:c,nonMinifiedName:e,ns:null,securityContext:null,suffix:null}}const u=[];if(l)for(let c in l)u.push({type:1,propName:c,target:null,eventName:l[c]});return ls(t,e|=16384,n,r,s,s,i,a,u)}function is(t,e,n){return ls(-1,t|=16,null,0,e,e,n)}function os(t,e,n,r,s){return ls(-1,t,e,0,n,r,s)}function ls(t,e,n,r,s,i,o,l,a){const{matchedQueries:u,references:c,matchedQueryIds:h}=ar(n);a||(a=[]),l||(l=[]),i=wt(i);const d=ur(o,vt(s));return{nodeIndex:-1,parent:null,renderParent:null,bindingIndex:-1,outputIndex:-1,checkIndex:t,flags:e,childFlags:0,directChildFlags:0,childMatchedQueries:0,matchedQueries:u,matchedQueryIds:h,references:c,ngContentIndex:-1,childCount:r,bindings:l,bindingFlags:wr(l),outputs:a,element:null,provider:{token:s,value:i,deps:d},text:null,query:null,ngContent:null}}function as(t,e){return ds(t,e)}function us(t,e){let n=t;for(;n.parent&&!ir(n);)n=n.parent;return ps(n.parent,rr(n),!0,e.provider.value,e.provider.deps)}function cs(t,e){const n=ps(t,e.parent,(32768&e.flags)>0,e.provider.value,e.provider.deps);if(e.outputs.length)for(let r=0;rer(t,e,n,r)}function ds(t,e){const n=(8192&e.flags)>0,r=e.provider;switch(201347067&e.flags){case 512:return ps(t,e.parent,n,r.value,r.deps);case 1024:return function(t,e,n,r,s){const i=s.length;switch(i){case 0:return r();case 1:return r(gs(t,e,n,s[0]));case 2:return r(gs(t,e,n,s[0]),gs(t,e,n,s[1]));case 3:return r(gs(t,e,n,s[0]),gs(t,e,n,s[1]),gs(t,e,n,s[2]));default:const o=Array(i);for(let r=0;rKt});class Cs extends k{constructor(t=!1){super(),this.__isAsync=t}emit(t){super.next(t)}subscribe(t,e,n){let r,s=t=>null,i=()=>null;t&&"object"==typeof t?(r=this.__isAsync?e=>{setTimeout(()=>t.next(e))}:e=>{t.next(e)},t.error&&(s=this.__isAsync?e=>{setTimeout(()=>t.error(e))}:e=>{t.error(e)}),t.complete&&(i=this.__isAsync?()=>{setTimeout(()=>t.complete())}:()=>{t.complete()})):(r=this.__isAsync?e=>{setTimeout(()=>t(e))}:e=>{t(e)},e&&(s=this.__isAsync?t=>{setTimeout(()=>e(t))}:t=>{e(t)}),n&&(i=this.__isAsync?()=>{setTimeout(()=>n())}:()=>{n()}));const o=super.subscribe(r,s,i);return t instanceof d&&t.add(o),o}}class Es{constructor(){this.dirty=!0,this._results=[],this.changes=new Cs,this.length=0}map(t){return this._results.map(t)}filter(t){return this._results.filter(t)}find(t){return this._results.find(t)}reduce(t,e){return this._results.reduce(t,e)}forEach(t){this._results.forEach(t)}some(t){return this._results.some(t)}toArray(){return this._results.slice()}[Pe()](){return this._results[Pe()]()}toString(){return this._results.toString()}reset(t){this._results=function t(e,n){void 0===n&&(n=e);for(let r=0;r{this.resolve=t,this.reject=e})}runInitializers(){if(this.initialized)return;const t=[],e=()=>{this.done=!0,this.resolve()};if(this.appInits)for(let n=0;n{e()}).catch(t=>{this.reject(t)}),0===t.length&&e(),this.initialized=!0}}const ks=new kt("AppId");function As(){return`${Os()}${Os()}${Os()}`}function Os(){return String.fromCharCode(97+Math.floor(25*Math.random()))}const Is=new kt("Platform Initializer"),Rs=new kt("Platform ID"),Ns=new kt("appBootstrapListener");class Ds{log(t){console.log(t)}warn(t){console.warn(t)}}function Ms(){throw new Error("Runtime compiler is not loaded")}const Ps=Ms,Vs=Ms,js=Ms,Ls=Ms;class Fs{constructor(){this.compileModuleSync=Ps,this.compileModuleAsync=Vs,this.compileModuleAndAllComponentsSync=js,this.compileModuleAndAllComponentsAsync=Ls}clearCache(){}clearCacheFor(t){}getModuleId(t){}}class Us{}let $s,Hs;function zs(){const t=Ct.wtf;return!(!t||!($s=t.trace)||(Hs=$s.events,0))}const Bs=zs(),Ws=Bs?function(t,e=null){return Hs.createScope(t,e)}:(t,e)=>(function(t,e){return null}),Gs=Bs?function(t,e){return $s.leaveScope(t,e),e}:(t,e)=>e,qs=(()=>Promise.resolve(0))();function Zs(t){"undefined"==typeof Zone?qs.then(()=>{t&&t.apply(null,null)}):Zone.current.scheduleMicroTask("scheduleMicrotask",t)}class Qs{constructor({enableLongStackTrace:t=!1}){if(this.hasPendingMicrotasks=!1,this.hasPendingMacrotasks=!1,this.isStable=!0,this.onUnstable=new Cs(!1),this.onMicrotaskEmpty=new Cs(!1),this.onStable=new Cs(!1),this.onError=new Cs(!1),"undefined"==typeof Zone)throw new Error("In this configuration Angular requires Zone.js");var e;Zone.assertZonePatched(),this._nesting=0,this._outer=this._inner=Zone.current,Zone.wtfZoneSpec&&(this._inner=this._inner.fork(Zone.wtfZoneSpec)),Zone.TaskTrackingZoneSpec&&(this._inner=this._inner.fork(new Zone.TaskTrackingZoneSpec)),t&&Zone.longStackTraceZoneSpec&&(this._inner=this._inner.fork(Zone.longStackTraceZoneSpec)),(e=this)._inner=e._inner.fork({name:"angular",properties:{isAngularZone:!0},onInvokeTask:(t,n,r,s,i,o)=>{try{return Js(e),t.invokeTask(r,s,i,o)}finally{ti(e)}},onInvoke:(t,n,r,s,i,o,l)=>{try{return Js(e),t.invoke(r,s,i,o,l)}finally{ti(e)}},onHasTask:(t,n,r,s)=>{t.hasTask(r,s),n===r&&("microTask"==s.change?(e.hasPendingMicrotasks=s.microTask,Xs(e)):"macroTask"==s.change&&(e.hasPendingMacrotasks=s.macroTask))},onHandleError:(t,n,r,s)=>(t.handleError(r,s),e.runOutsideAngular(()=>e.onError.emit(s)),!1)})}static isInAngularZone(){return!0===Zone.current.get("isAngularZone")}static assertInAngularZone(){if(!Qs.isInAngularZone())throw new Error("Expected to be in Angular Zone, but it is not!")}static assertNotInAngularZone(){if(Qs.isInAngularZone())throw new Error("Expected to not be in Angular Zone, but it is!")}run(t,e,n){return this._inner.run(t,e,n)}runTask(t,e,n,r){const s=this._inner,i=s.scheduleEventTask("NgZoneEvent: "+r,t,Ks,Ys,Ys);try{return s.runTask(i,e,n)}finally{s.cancelTask(i)}}runGuarded(t,e,n){return this._inner.runGuarded(t,e,n)}runOutsideAngular(t){return this._outer.run(t)}}function Ys(){}const Ks={};function Xs(t){if(0==t._nesting&&!t.hasPendingMicrotasks&&!t.isStable)try{t._nesting++,t.onMicrotaskEmpty.emit(null)}finally{if(t._nesting--,!t.hasPendingMicrotasks)try{t.runOutsideAngular(()=>t.onStable.emit(null))}finally{t.isStable=!0}}}function Js(t){t._nesting++,t.isStable&&(t.isStable=!1,t.onUnstable.emit(null))}function ti(t){t._nesting--,Xs(t)}class ei{constructor(){this.hasPendingMicrotasks=!1,this.hasPendingMacrotasks=!1,this.isStable=!0,this.onUnstable=new Cs,this.onMicrotaskEmpty=new Cs,this.onStable=new Cs,this.onError=new Cs}run(t){return t()}runGuarded(t){return t()}runOutsideAngular(t){return t()}runTask(t){return t()}}class ni{constructor(t){this._ngZone=t,this._pendingCount=0,this._isZoneStable=!0,this._didWork=!1,this._callbacks=[],this.taskTrackingZone=null,this._watchAngularEvents(),t.run(()=>{this.taskTrackingZone="undefined"==typeof Zone?null:Zone.current.get("TaskTrackingZone")})}_watchAngularEvents(){this._ngZone.onUnstable.subscribe({next:()=>{this._didWork=!0,this._isZoneStable=!1}}),this._ngZone.runOutsideAngular(()=>{this._ngZone.onStable.subscribe({next:()=>{Qs.assertNotInAngularZone(),Zs(()=>{this._isZoneStable=!0,this._runCallbacksIfReady()})}})})}increasePendingRequestCount(){return this._pendingCount+=1,this._didWork=!0,this._pendingCount}decreasePendingRequestCount(){if(this._pendingCount-=1,this._pendingCount<0)throw new Error("pending async requests below zero");return this._runCallbacksIfReady(),this._pendingCount}isStable(){return this._isZoneStable&&0===this._pendingCount&&!this._ngZone.hasPendingMacrotasks}_runCallbacksIfReady(){if(this.isStable())Zs(()=>{for(;0!==this._callbacks.length;){let t=this._callbacks.pop();clearTimeout(t.timeoutId),t.doneCb(this._didWork)}this._didWork=!1});else{let t=this.getPendingTasks();this._callbacks=this._callbacks.filter(e=>!e.updateCb||!e.updateCb(t)||(clearTimeout(e.timeoutId),!1)),this._didWork=!0}}getPendingTasks(){return this.taskTrackingZone?this.taskTrackingZone.macroTasks.map(t=>({source:t.source,creationLocation:t.creationLocation,data:t.data})):[]}addCallback(t,e,n){let r=-1;e&&e>0&&(r=setTimeout(()=>{this._callbacks=this._callbacks.filter(t=>t.timeoutId!==r),t(this._didWork,this.getPendingTasks())},e)),this._callbacks.push({doneCb:t,timeoutId:r,updateCb:n})}whenStable(t,e,n){if(n&&!this.taskTrackingZone)throw new Error('Task tracking zone is required when passing an update callback to whenStable(). Is "zone.js/dist/task-tracking.js" loaded?');this.addCallback(t,e,n),this._runCallbacksIfReady()}getPendingRequestCount(){return this._pendingCount}findProviders(t,e,n){return[]}}const ri=function(){class t{constructor(){this._applications=new Map,oi.addToWindow(this)}registerApplication(t,e){this._applications.set(t,e)}unregisterApplication(t){this._applications.delete(t)}unregisterAllApplications(){this._applications.clear()}getTestability(t){return this._applications.get(t)||null}getAllTestabilities(){return Array.from(this._applications.values())}getAllRootElements(){return Array.from(this._applications.keys())}findTestabilityInTree(t,e=!0){return oi.findTestabilityInTree(this,t,e)}}return t.ctorParameters=(()=>[]),t}();class si{addToWindow(t){}findTestabilityInTree(t,e,n){return null}}let ii,oi=new si,li=function(t,e,n){return t.get(Us).createCompiler([e]).compileModuleAsync(n)},ai=function(t){return t instanceof Ye};const ui=new kt("AllowMultipleToken");class ci{constructor(t,e){this.name=t,this.token=e}}function hi(t,e,n=[]){const r=`Platform: ${e}`,s=new kt(r);return(e=[])=>{let i=di();if(!i||i.injector.get(ui,!1))if(t)t(n.concat(e).concat({provide:s,useValue:!0}));else{const t=n.concat(e).concat({provide:s,useValue:!0});!function(t){if(ii&&!ii.destroyed&&!ii.injector.get(ui,!1))throw new Error("There can be only one platform. Destroy the previous one to create a new one.");ii=t.get(pi);const e=t.get(Is,null);e&&e.forEach(t=>t())}(Nt.create({providers:t,name:r}))}return function(t){const e=di();if(!e)throw new Error("No platform exists!");if(!e.injector.get(t,null))throw new Error("A platform with a different configuration has been created. Please destroy it first.");return e}(s)}}function di(){return ii&&!ii.destroyed?ii:null}class pi{constructor(t){this._injector=t,this._modules=[],this._destroyListeners=[],this._destroyed=!1}bootstrapModuleFactory(t,e){const n="noop"===(s=e?e.ngZone:void 0)?new ei:("zone.js"===s?void 0:s)||new Qs({enableLongStackTrace:se()}),r=[{provide:Qs,useValue:n}];var s;return n.run(()=>{const e=Nt.create({providers:r,parent:this.injector,name:t.moduleType.name}),s=t.create(e),i=s.injector.get(ee,null);if(!i)throw new Error("No ErrorHandler. Is platform module (BrowserModule) included?");return s.onDestroy(()=>mi(this._modules,s)),n.runOutsideAngular(()=>n.onError.subscribe({next:t=>{i.handleError(t)}})),function(t,e,n){try{const s=n();return Ne(s)?s.catch(n=>{throw e.runOutsideAngular(()=>t.handleError(n)),n}):s}catch(r){throw e.runOutsideAngular(()=>t.handleError(r)),r}}(i,n,()=>{const t=s.injector.get(Ts);return t.runInitializers(),t.donePromise.then(()=>(this._moduleDoBootstrap(s),s))})})}bootstrapModule(t,e=[]){const n=fi({},e);return li(this.injector,n,t).then(t=>this.bootstrapModuleFactory(t,n))}_moduleDoBootstrap(t){const e=t.injector.get(gi);if(t._bootstrapComponents.length>0)t._bootstrapComponents.forEach(t=>e.bootstrap(t));else{if(!t.instance.ngDoBootstrap)throw new Error(`The module ${vt(t.instance.constructor)} was bootstrapped, but it does not declare "@NgModule.bootstrap" components nor a "ngDoBootstrap" method. `+"Please define one of these.");t.instance.ngDoBootstrap(e)}this._modules.push(t)}onDestroy(t){this._destroyListeners.push(t)}get injector(){return this._injector}destroy(){if(this._destroyed)throw new Error("The platform has already been destroyed!");this._modules.slice().forEach(t=>t.destroy()),this._destroyListeners.forEach(t=>t()),this._destroyed=!0}get destroyed(){return this._destroyed}}function fi(t,e){return Array.isArray(e)?e.reduce(fi,t):Object.assign({},t,e)}const gi=function(){class t{constructor(t,e,n,r,s,i){this._zone=t,this._console=e,this._injector=n,this._exceptionHandler=r,this._componentFactoryResolver=s,this._initStatus=i,this._bootstrapListeners=[],this._views=[],this._runningTick=!1,this._enforceNoNewChanges=!1,this._stable=!0,this.componentTypes=[],this.components=[],this._enforceNoNewChanges=se(),this._zone.onMicrotaskEmpty.subscribe({next:()=>{this._zone.run(()=>{this.tick()})}});const o=new y(t=>{this._stable=this._zone.isStable&&!this._zone.hasPendingMacrotasks&&!this._zone.hasPendingMicrotasks,this._zone.runOutsideAngular(()=>{t.next(this._stable),t.complete()})}),l=new y(t=>{let e;this._zone.runOutsideAngular(()=>{e=this._zone.onStable.subscribe(()=>{Qs.assertNotInAngularZone(),Zs(()=>{this._stable||this._zone.hasPendingMacrotasks||this._zone.hasPendingMicrotasks||(this._stable=!0,t.next(!0))})})});const n=this._zone.onUnstable.subscribe(()=>{Qs.assertInAngularZone(),this._stable&&(this._stable=!1,this._zone.runOutsideAngular(()=>{t.next(!1)}))});return()=>{e.unsubscribe(),n.unsubscribe()}});this.isStable=X(o,l.pipe(t=>J()(function(t,e){return function(e){let n;n="function"==typeof t?t:function(){return t};const r=Object.create(e,rt);return r.source=e,r.subjectFactory=n,r}}(it)(t))))}bootstrap(t,e){if(!this._initStatus.done)throw new Error("Cannot bootstrap as there are still asynchronous initializers running. Bootstrap components in the `ngDoBootstrap` method of the root module.");let n;n=t instanceof Be?t:this._componentFactoryResolver.resolveComponentFactory(t),this.componentTypes.push(n.componentType);const r=ai(n)?null:this._injector.get(Ke),s=n.create(Nt.NULL,[],e||n.selector,r);s.onDestroy(()=>{this._unloadComponent(s)});const i=s.injector.get(ni,null);return i&&s.injector.get(ri).registerApplication(s.location.nativeElement,i),this._loadComponent(s),se()&&this._console.log("Angular is running in the development mode. Call enableProdMode() to enable the production mode."),s}tick(){if(this._runningTick)throw new Error("ApplicationRef.tick is called recursively");const e=t._tickScope();try{this._runningTick=!0;for(let t of this._views)t.detectChanges();if(this._enforceNoNewChanges)for(let t of this._views)t.checkNoChanges()}catch(n){this._zone.runOutsideAngular(()=>this._exceptionHandler.handleError(n))}finally{this._runningTick=!1,Gs(e)}}attachView(t){const e=t;this._views.push(e),e.attachToAppRef(this)}detachView(t){const e=t;mi(this._views,e),e.detachFromAppRef()}_loadComponent(t){this.attachView(t.hostView),this.tick(),this.components.push(t),this._injector.get(Ns,[]).concat(this._bootstrapListeners).forEach(e=>e(t))}_unloadComponent(t){this.detachView(t.hostView),mi(this.components,t)}ngOnDestroy(){this._views.slice().forEach(t=>t.destroy())}get viewCount(){return this._views.length}}return t._tickScope=Ws("ApplicationRef#tick()"),t}();function mi(t,e){const n=t.indexOf(e);n>-1&&t.splice(n,1)}const vi=!1,_i="#",bi="NgFactory";class wi{}const yi={factoryPathPrefix:"",factoryPathSuffix:".ngfactory"};class Ci{constructor(t,e){this._compiler=t,this._config=e||yi}load(t){return!vi&&this._compiler instanceof Fs?this.loadFactory(t):this.loadAndCompile(t)}loadAndCompile(t){let[e,r]=t.split(_i);return void 0===r&&(r="default"),n("zn8P")(e).then(t=>t[r]).then(t=>Ei(t,e,r)).then(t=>this._compiler.compileModuleAsync(t))}loadFactory(t){let[e,r]=t.split(_i),s=bi;return void 0===r&&(r="default",s=""),n("zn8P")(this._config.factoryPathPrefix+e+this._config.factoryPathSuffix).then(t=>t[r+s]).then(t=>Ei(t,e,r))}}function Ei(t,e,n){if(!t)throw new Error(`Cannot find '${n}' in '${e}'`);return t}class Si{constructor(t,e){this.name=t,this.callback=e}}class xi{constructor(t,e,n){this.listeners=[],this.parent=null,this._debugContext=n,this.nativeNode=t,e&&e instanceof Ti&&e.addChild(this)}get injector(){return this._debugContext.injector}get componentInstance(){return this._debugContext.component}get context(){return this._debugContext.context}get references(){return this._debugContext.references}get providerTokens(){return this._debugContext.providerTokens}}class Ti extends xi{constructor(t,e,n){super(t,e,n),this.properties={},this.attributes={},this.classes={},this.styles={},this.childNodes=[],this.nativeElement=t}addChild(t){t&&(this.childNodes.push(t),t.parent=this)}removeChild(t){const e=this.childNodes.indexOf(t);-1!==e&&(t.parent=null,this.childNodes.splice(e,1))}insertChildrenAfter(t,e){const n=this.childNodes.indexOf(t);-1!==n&&(this.childNodes.splice(n+1,0,...e),e.forEach(e=>{e.parent&&e.parent.removeChild(e),t.parent=this}))}insertBefore(t,e){const n=this.childNodes.indexOf(t);-1===n?this.addChild(e):(e.parent&&e.parent.removeChild(e),e.parent=this,this.childNodes.splice(n,0,e))}query(t){return this.queryAll(t)[0]||null}queryAll(t){const e=[];return function t(e,n,r){e.childNodes.forEach(e=>{e instanceof Ti&&(n(e)&&r.push(e),t(e,n,r))})}(this,t,e),e}queryAllNodes(t){const e=[];return function t(e,n,r){e instanceof Ti&&e.childNodes.forEach(e=>{n(e)&&r.push(e),e instanceof Ti&&t(e,n,r)})}(this,t,e),e}get children(){return this.childNodes.filter(t=>t instanceof Ti)}triggerEventHandler(t,e){this.listeners.forEach(n=>{n.name==t&&n.callback(e)})}}const ki=new Map,Ai=function(t){return ki.get(t)||null};function Oi(t){ki.set(t.nativeNode,t)}const Ii=hi(null,"core",[{provide:Rs,useValue:"unknown"},{provide:pi,deps:[Nt]},{provide:ri,deps:[]},{provide:Ds,deps:[]}]),Ri=new kt("LocaleId");function Ni(){return xn}function Di(){return Tn}function Mi(t){return t||"en-US"}function Pi(t){let e=[];return t.onStable.subscribe(()=>{for(;e.length;)e.pop()()}),function(t){e.push(t)}}class Vi{constructor(t){}}function ji(t,e,n,r,s,i){t|=1;const{matchedQueries:o,references:l,matchedQueryIds:a}=ar(e);return{nodeIndex:-1,parent:null,renderParent:null,bindingIndex:-1,outputIndex:-1,flags:t,checkIndex:-1,childFlags:0,directChildFlags:0,childMatchedQueries:0,matchedQueries:o,matchedQueryIds:a,references:l,ngContentIndex:n,childCount:r,bindings:[],bindingFlags:0,outputs:[],element:{ns:null,name:null,attrs:null,template:i?dr(i):null,componentProvider:null,componentView:null,componentRendererType:null,publicProviders:null,allProviders:null,handleEvent:s||Hn},provider:null,text:null,query:null,ngContent:null}}function Li(t,e,n,r,s,i,o=[],l,a,u,c,h){u||(u=Hn);const{matchedQueries:d,references:p,matchedQueryIds:f}=ar(n);let g=null,m=null;i&&([g,m]=br(i)),l=l||[];const v=new Array(l.length);for(let w=0;w{const[n,r]=br(t);return[n,r,e]});return h=function(t){if(t&&t.id===Gn){const e=null!=t.encapsulation&&t.encapsulation!==Yt.None||t.styles.length||Object.keys(t.data).length;t.id=e?`c${Qn++}`:qn}return t&&t.id===qn&&(t=null),t||null}(h),c&&(e|=33554432),{nodeIndex:-1,parent:null,renderParent:null,bindingIndex:-1,outputIndex:-1,checkIndex:t,flags:e|=1,childFlags:0,directChildFlags:0,childMatchedQueries:0,matchedQueries:d,matchedQueryIds:f,references:p,ngContentIndex:r,childCount:s,bindings:v,bindingFlags:wr(v),outputs:_,element:{ns:g,name:m,attrs:b,template:null,componentProvider:null,componentView:c||null,componentRendererType:h,publicProviders:null,allProviders:null,handleEvent:u||Hn},provider:null,text:null,query:null,ngContent:null}}function Fi(t,e,n){const r=n.element,s=t.root.selectorOrNode,i=t.renderer;let o;if(t.parent||!s){o=r.name?i.createElement(r.name,r.ns):i.createComment("");const s=cr(t,e,n);s&&i.appendChild(s,o)}else o=i.selectRootElement(s,!!r.componentRendererType&&r.componentRendererType.encapsulation===Yt.ShadowDom);if(r.attrs)for(let l=0;ler(t,e,n,r)}function Hi(t,e,n,r){if(!Kn(t,e,n,r))return!1;const s=e.bindings[n],i=jn(t,e.nodeIndex),o=i.renderElement,l=s.name;switch(15&s.flags){case 1:!function(t,e,n,r,s,i){const o=e.securityContext;let l=o?t.root.sanitizer.sanitize(o,i):i;l=null!=l?l.toString():null;const a=t.renderer;null!=i?a.setAttribute(n,s,l,r):a.removeAttribute(n,s,r)}(t,s,o,s.ns,l,r);break;case 2:!function(t,e,n,r){const s=t.renderer;r?s.addClass(e,n):s.removeClass(e,n)}(t,o,l,r);break;case 4:!function(t,e,n,r,s){let i=t.root.sanitizer.sanitize(Te.STYLE,s);if(null!=i){i=i.toString();const t=e.suffix;null!=t&&(i+=t)}else i=null;const o=t.renderer;null!=i?o.setStyle(n,r,i):o.removeStyle(n,r)}(t,s,o,l,r);break;case 8:!function(t,e,n,r,s){const i=e.securityContext;let o=i?t.root.sanitizer.sanitize(i,s):s;t.renderer.setProperty(n,r,o)}(33554432&e.flags&&32&s.flags?i.componentView:t,s,o,l,r)}return!0}function zi(t,e,n){let r=[];for(let s in n)r.push({propName:s,bindingType:n[s]});return{nodeIndex:-1,parent:null,renderParent:null,bindingIndex:-1,outputIndex:-1,checkIndex:-1,flags:t,childFlags:0,directChildFlags:0,childMatchedQueries:0,ngContentIndex:-1,matchedQueries:{},matchedQueryIds:0,references:{},childCount:0,bindings:[],bindingFlags:0,outputs:[],element:null,provider:null,text:null,query:{id:e,filterId:lr(e),bindings:r},ngContent:null}}function Bi(t){const e=t.def.nodeMatchedQueries;for(;t.parent&&or(t);){let n=t.parentNodeDef;t=t.parent;const r=n.nodeIndex+n.childCount;for(let s=0;s<=r;s++){const r=t.def.nodes[s];67108864&r.flags&&536870912&r.flags&&(r.query.filterId&e)===r.query.filterId&&Un(t,s).setDirty(),!(1&r.flags&&s+r.childCount0)u=t,Ji(t)||(c=t);else for(;u&&f===u.nodeIndex+u.childCount;){const t=u.parent;t&&(t.childFlags|=u.childFlags,t.childMatchedQueries|=u.childMatchedQueries),c=(u=t)&&Ji(u)?u.renderParent:u}}return{factory:null,nodeFlags:o,rootNodeFlags:l,nodeMatchedQueries:a,flags:t,nodes:e,updateDirectives:n||Hn,updateRenderer:r||Hn,handleEvent:(t,n,r,s)=>e[n].element.handleEvent(t,r,s),bindingCount:s,outputCount:i,lastRenderRootNode:p}}function Ji(t){return 0!=(1&t.flags)&&null===t.element.name}function to(t,e,n){const r=e.element&&e.element.template;if(r){if(!r.lastRenderRootNode)throw new Error("Illegal State: Embedded templates without nodes are not allowed!");if(r.lastRenderRootNode&&16777216&r.lastRenderRootNode.flags)throw new Error(`Illegal State: Last root node of a template can't have embedded views, at index ${e.nodeIndex}!`)}if(20224&e.flags&&0==(1&(t?t.flags:0)))throw new Error(`Illegal State: StaticProvider/Directive nodes need to be children of elements or anchors, at index ${e.nodeIndex}!`);if(e.query){if(67108864&e.flags&&(!t||0==(16384&t.flags)))throw new Error(`Illegal State: Content Query nodes need to be children of directives, at index ${e.nodeIndex}!`);if(134217728&e.flags&&t)throw new Error(`Illegal State: View Query nodes have to be top level nodes, at index ${e.nodeIndex}!`)}if(e.childCount){const r=t?t.nodeIndex+t.childCount:n-1;if(e.nodeIndex<=r&&e.nodeIndex+e.childCount>r)throw new Error(`Illegal State: childCount of node leads outside of parent, at index ${e.nodeIndex}!`)}}function eo(t,e,n,r){const s=so(t.root,t.renderer,t,e,n);return io(s,t.component,r),oo(s),s}function no(t,e,n){const r=so(t,t.renderer,null,null,e);return io(r,n,n),oo(r),r}function ro(t,e,n,r){const s=e.element.componentRendererType;let i;return i=s?t.root.rendererFactory.createRenderer(r,s):t.root.renderer,so(t.root,i,t,e.element.componentProvider,n)}function so(t,e,n,r,s){const i=new Array(s.nodes.length),o=s.outputCount?new Array(s.outputCount):null;return{def:s,parent:n,viewContainerParent:null,parentNodeDef:r,context:null,component:null,nodes:i,state:13,root:t,renderer:e,oldValues:new Array(s.bindingCount),disposables:o,initIndex:-1}}function io(t,e,n){t.component=e,t.context=n}function oo(t){let e;ir(t)&&(e=jn(t.parent,t.parentNodeDef.parent.nodeIndex).renderElement);const n=t.def,r=t.nodes;for(let s=0;s0&&Hi(t,e,0,n)&&(p=!0),d>1&&Hi(t,e,1,r)&&(p=!0),d>2&&Hi(t,e,2,s)&&(p=!0),d>3&&Hi(t,e,3,i)&&(p=!0),d>4&&Hi(t,e,4,o)&&(p=!0),d>5&&Hi(t,e,5,l)&&(p=!0),d>6&&Hi(t,e,6,a)&&(p=!0),d>7&&Hi(t,e,7,u)&&(p=!0),d>8&&Hi(t,e,8,c)&&(p=!0),d>9&&Hi(t,e,9,h)&&(p=!0),p}(t,e,n,r,s,i,o,l,a,u,c,h);case 2:return function(t,e,n,r,s,i,o,l,a,u,c,h){let d=!1;const p=e.bindings,f=p.length;if(f>0&&Kn(t,e,0,n)&&(d=!0),f>1&&Kn(t,e,1,r)&&(d=!0),f>2&&Kn(t,e,2,s)&&(d=!0),f>3&&Kn(t,e,3,i)&&(d=!0),f>4&&Kn(t,e,4,o)&&(d=!0),f>5&&Kn(t,e,5,l)&&(d=!0),f>6&&Kn(t,e,6,a)&&(d=!0),f>7&&Kn(t,e,7,u)&&(d=!0),f>8&&Kn(t,e,8,c)&&(d=!0),f>9&&Kn(t,e,9,h)&&(d=!0),d){let d=e.text.prefix;f>0&&(d+=Ki(n,p[0])),f>1&&(d+=Ki(r,p[1])),f>2&&(d+=Ki(s,p[2])),f>3&&(d+=Ki(i,p[3])),f>4&&(d+=Ki(o,p[4])),f>5&&(d+=Ki(l,p[5])),f>6&&(d+=Ki(a,p[6])),f>7&&(d+=Ki(u,p[7])),f>8&&(d+=Ki(c,p[8])),f>9&&(d+=Ki(h,p[9]));const g=Vn(t,e.nodeIndex).renderText;t.renderer.setValue(g,d)}return d}(t,e,n,r,s,i,o,l,a,u,c,h);case 16384:return function(t,e,n,r,s,i,o,l,a,u,c,h){const d=Ln(t,e.nodeIndex),p=d.instance;let f=!1,g=void 0;const m=e.bindings.length;return m>0&&Yn(t,e,0,n)&&(f=!0,g=vs(t,d,e,0,n,g)),m>1&&Yn(t,e,1,r)&&(f=!0,g=vs(t,d,e,1,r,g)),m>2&&Yn(t,e,2,s)&&(f=!0,g=vs(t,d,e,2,s,g)),m>3&&Yn(t,e,3,i)&&(f=!0,g=vs(t,d,e,3,i,g)),m>4&&Yn(t,e,4,o)&&(f=!0,g=vs(t,d,e,4,o,g)),m>5&&Yn(t,e,5,l)&&(f=!0,g=vs(t,d,e,5,l,g)),m>6&&Yn(t,e,6,a)&&(f=!0,g=vs(t,d,e,6,a,g)),m>7&&Yn(t,e,7,u)&&(f=!0,g=vs(t,d,e,7,u,g)),m>8&&Yn(t,e,8,c)&&(f=!0,g=vs(t,d,e,8,c,g)),m>9&&Yn(t,e,9,h)&&(f=!0,g=vs(t,d,e,9,h,g)),g&&p.ngOnChanges(g),65536&e.flags&&Pn(t,256,e.nodeIndex)&&p.ngOnInit(),262144&e.flags&&p.ngDoCheck(),f}(t,e,n,r,s,i,o,l,a,u,c,h);case 32:case 64:case 128:return function(t,e,n,r,s,i,o,l,a,u,c,h){const d=e.bindings;let p=!1;const f=d.length;if(f>0&&Kn(t,e,0,n)&&(p=!0),f>1&&Kn(t,e,1,r)&&(p=!0),f>2&&Kn(t,e,2,s)&&(p=!0),f>3&&Kn(t,e,3,i)&&(p=!0),f>4&&Kn(t,e,4,o)&&(p=!0),f>5&&Kn(t,e,5,l)&&(p=!0),f>6&&Kn(t,e,6,a)&&(p=!0),f>7&&Kn(t,e,7,u)&&(p=!0),f>8&&Kn(t,e,8,c)&&(p=!0),f>9&&Kn(t,e,9,h)&&(p=!0),p){const p=Fn(t,e.nodeIndex);let g;switch(201347067&e.flags){case 32:g=new Array(d.length),f>0&&(g[0]=n),f>1&&(g[1]=r),f>2&&(g[2]=s),f>3&&(g[3]=i),f>4&&(g[4]=o),f>5&&(g[5]=l),f>6&&(g[6]=a),f>7&&(g[7]=u),f>8&&(g[8]=c),f>9&&(g[9]=h);break;case 64:g={},f>0&&(g[d[0].name]=n),f>1&&(g[d[1].name]=r),f>2&&(g[d[2].name]=s),f>3&&(g[d[3].name]=i),f>4&&(g[d[4].name]=o),f>5&&(g[d[5].name]=l),f>6&&(g[d[6].name]=a),f>7&&(g[d[7].name]=u),f>8&&(g[d[8].name]=c),f>9&&(g[d[9].name]=h);break;case 128:const t=n;switch(f){case 1:g=t.transform(n);break;case 2:g=t.transform(r);break;case 3:g=t.transform(r,s);break;case 4:g=t.transform(r,s,i);break;case 5:g=t.transform(r,s,i,o);break;case 6:g=t.transform(r,s,i,o,l);break;case 7:g=t.transform(r,s,i,o,l,a);break;case 8:g=t.transform(r,s,i,o,l,a,u);break;case 9:g=t.transform(r,s,i,o,l,a,u,c);break;case 10:g=t.transform(r,s,i,o,l,a,u,c,h)}}p.value=g}return p}(t,e,n,r,s,i,o,l,a,u,c,h);default:throw"unreachable"}}(t,e,r,s,i,o,l,a,u,c,h,d):function(t,e,n){switch(201347067&e.flags){case 1:return function(t,e,n){let r=!1;for(let s=0;s0&&Xn(t,e,0,n),d>1&&Xn(t,e,1,r),d>2&&Xn(t,e,2,s),d>3&&Xn(t,e,3,i),d>4&&Xn(t,e,4,o),d>5&&Xn(t,e,5,l),d>6&&Xn(t,e,6,a),d>7&&Xn(t,e,7,u),d>8&&Xn(t,e,8,c),d>9&&Xn(t,e,9,h)}(t,e,r,s,i,o,l,a,u,c,h,d):function(t,e,n){for(let r=0;r{const r=Ao.get(t.token);3840&t.flags&&r&&(e=!0,n=n||r.deprecatedBehavior)}),t.modules.forEach(t=>{Oo.forEach((r,s)=>{gt(s).providedIn===t&&(e=!0,n=n||r.deprecatedBehavior)})}),{hasOverrides:e,hasDeprecatedOverrides:n})}(t);return e?(function(t){for(let e=0;e0){let e=new Set(t.modules);Oo.forEach((r,s)=>{if(e.has(gt(s).providedIn)){let e={token:s,flags:r.flags|(n?4096:0),deps:ur(r.deps),value:r.value,index:t.providers.length};t.providers.push(e),t.providersByKey[Bn(s)]=e}})}}(t=t.factory(()=>Hn)),t):t}(r))}const Ao=new Map,Oo=new Map,Io=new Map;function Ro(t){let e;Ao.set(t.token,t),"function"==typeof t.token&&(e=gt(t.token))&&"function"==typeof e.providedIn&&Oo.set(t.token,t)}function No(t,e){const n=dr(e.viewDefFactory),r=dr(n.nodes[0].element.componentView);Io.set(t,r)}function Do(){Ao.clear(),Oo.clear(),Io.clear()}function Mo(t){if(0===Ao.size)return t;const e=function(t){const e=[];let n=null;for(let r=0;rHn);for(let r=0;r"-"+t[1].toLowerCase())}`)]=Re(l))}const r=e.parent,l=jn(t,r.nodeIndex).renderElement;if(r.element.name)for(let e in n){const r=n[e];null!=r?t.renderer.setAttribute(l,e,r):t.renderer.removeAttribute(l,e)}else t.renderer.setValue(l,`bindings=${JSON.stringify(n,null,2)}`)}}var s,i}function Qo(t,e,n,r){ho(t,e,n,...r)}function Yo(t,e){for(let n=e;n++i===s?t.error.bind(t,...e):Hn),inew Xo(t,e),handleEvent:Wo,updateDirectives:Go,updateRenderer:qo}:{setCurrentNode:()=>{},createRootView:Co,createEmbeddedView:eo,createComponentView:ro,createNgModuleRef:Zr,overrideProvider:Hn,overrideComponentView:Hn,clearOverrides:Hn,checkAndUpdateView:ao,checkNoChangesView:lo,destroyView:fo,createDebugContext:(t,e)=>new Xo(t,e),handleEvent:(t,e,n,r)=>t.def.handleEvent(t,e,n,r),updateDirectives:(t,e)=>t.def.updateDirectives(0===e?Po:Vo,t),updateRenderer:(t,e)=>t.def.updateRenderer(0===e?Po:Vo,t)};$n.setCurrentNode=t.setCurrentNode,$n.createRootView=t.createRootView,$n.createEmbeddedView=t.createEmbeddedView,$n.createComponentView=t.createComponentView,$n.createNgModuleRef=t.createNgModuleRef,$n.overrideProvider=t.overrideProvider,$n.overrideComponentView=t.overrideComponentView,$n.clearOverrides=t.clearOverrides,$n.checkAndUpdateView=t.checkAndUpdateView,$n.checkNoChangesView=t.checkNoChangesView,$n.destroyView=t.destroyView,$n.resolveDep=gs,$n.createDebugContext=t.createDebugContext,$n.handleEvent=t.handleEvent,$n.updateDirectives=t.updateDirectives,$n.updateRenderer=t.updateRenderer,$n.dirtyParentQueries=Bi}();const e=function(t){const e=Array.from(t.providers),n=Array.from(t.modules),r={};for(const s in t.providersByKey)r[s]=t.providersByKey[s];return{factory:t.factory,isRoot:t.isRoot,providers:e,modules:n,providersByKey:r}}(dr(this._ngModuleDefFactory));return $n.createNgModuleRef(this.moduleType,t||Nt.NULL,this._bootstrapComponents,e)}}class ll{}class al{constructor(){this.navbarCollapsed=!0}get showTestCases(){return"true"===localStorage.getItem("showTestCases")}}class ul{}const cl=new kt("Location Initialized");class hl{}const dl=new kt("appBaseHref");class pl{constructor(t,e){this._subject=new Cs,this._urlChangeListeners=[],this._platformStrategy=t;const n=this._platformStrategy.getBaseHref();this._platformLocation=e,this._baseHref=pl.stripTrailingSlash(fl(n)),this._platformStrategy.onPopState(t=>{this._subject.emit({url:this.path(!0),pop:!0,state:t.state,type:t.type})})}path(t=!1){return this.normalize(this._platformStrategy.path(t))}getState(){return this._platformLocation.getState()}isCurrentPathEqualTo(t,e=""){return this.path()==this.normalize(t+pl.normalizeQueryParams(e))}normalize(t){return pl.stripTrailingSlash(function(t,e){return t&&e.startsWith(t)?e.substring(t.length):e}(this._baseHref,fl(t)))}prepareExternalUrl(t){return t&&"/"!==t[0]&&(t="/"+t),this._platformStrategy.prepareExternalUrl(t)}go(t,e="",n=null){this._platformStrategy.pushState(n,"",t,e),this._notifyUrlChangeListeners(this.prepareExternalUrl(t+pl.normalizeQueryParams(e)),n)}replaceState(t,e="",n=null){this._platformStrategy.replaceState(n,"",t,e),this._notifyUrlChangeListeners(this.prepareExternalUrl(t+pl.normalizeQueryParams(e)),n)}forward(){this._platformStrategy.forward()}back(){this._platformStrategy.back()}onUrlChange(t){this._urlChangeListeners.push(t),this.subscribe(t=>{this._notifyUrlChangeListeners(t.url,t.state)})}_notifyUrlChangeListeners(t="",e){this._urlChangeListeners.forEach(n=>n(t,e))}subscribe(t,e,n){return this._subject.subscribe({next:t,error:e,complete:n})}static normalizeQueryParams(t){return t&&"?"!==t[0]?"?"+t:t}static joinWithSlash(t,e){if(0==t.length)return e;if(0==e.length)return t;let n=0;return t.endsWith("/")&&n++,e.startsWith("/")&&n++,2==n?t+e.substring(1):1==n?t+e:t+"/"+e}static stripTrailingSlash(t){const e=t.match(/#|\?|$/),n=e&&e.index||t.length;return t.slice(0,n-("/"===t[n-1]?1:0))+t.slice(n)}}function fl(t){return t.replace(/\/index.html$/,"")}class gl extends hl{constructor(t,e){super(),this._platformLocation=t,this._baseHref="",null!=e&&(this._baseHref=e)}onPopState(t){this._platformLocation.onPopState(t),this._platformLocation.onHashChange(t)}getBaseHref(){return this._baseHref}path(t=!1){let e=this._platformLocation.hash;return null==e&&(e="#"),e.length>0?e.substring(1):e}prepareExternalUrl(t){const e=pl.joinWithSlash(this._baseHref,t);return e.length>0?"#"+e:e}pushState(t,e,n,r){let s=this.prepareExternalUrl(n+pl.normalizeQueryParams(r));0==s.length&&(s=this._platformLocation.pathname),this._platformLocation.pushState(t,e,s)}replaceState(t,e,n,r){let s=this.prepareExternalUrl(n+pl.normalizeQueryParams(r));0==s.length&&(s=this._platformLocation.pathname),this._platformLocation.replaceState(t,e,s)}forward(){this._platformLocation.forward()}back(){this._platformLocation.back()}}class ml extends hl{constructor(t,e){if(super(),this._platformLocation=t,null==e&&(e=this._platformLocation.getBaseHrefFromDOM()),null==e)throw new Error("No base href set. Please provide a value for the APP_BASE_HREF token or add a base element to the document.");this._baseHref=e}onPopState(t){this._platformLocation.onPopState(t),this._platformLocation.onHashChange(t)}getBaseHref(){return this._baseHref}prepareExternalUrl(t){return pl.joinWithSlash(this._baseHref,t)}path(t=!1){const e=this._platformLocation.pathname+pl.normalizeQueryParams(this._platformLocation.search),n=this._platformLocation.hash;return n&&t?`${e}${n}`:e}pushState(t,e,n,r){const s=this.prepareExternalUrl(n+pl.normalizeQueryParams(r));this._platformLocation.pushState(t,e,s)}replaceState(t,e,n,r){const s=this.prepareExternalUrl(n+pl.normalizeQueryParams(r));this._platformLocation.replaceState(t,e,s)}forward(){this._platformLocation.forward()}back(){this._platformLocation.back()}}const vl=void 0;var _l=["en",[["a","p"],["AM","PM"],vl],[["AM","PM"],vl,vl],[["S","M","T","W","T","F","S"],["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],["Su","Mo","Tu","We","Th","Fr","Sa"]],vl,[["J","F","M","A","M","J","J","A","S","O","N","D"],["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],["January","February","March","April","May","June","July","August","September","October","November","December"]],vl,[["B","A"],["BC","AD"],["Before Christ","Anno Domini"]],0,[6,0],["M/d/yy","MMM d, y","MMMM d, y","EEEE, MMMM d, y"],["h:mm a","h:mm:ss a","h:mm:ss a z","h:mm:ss a zzzz"],["{1}, {0}",vl,"{1} 'at' {0}",vl],[".",",",";","%","+","-","E","\xd7","\u2030","\u221e","NaN",":"],["#,##0.###","#,##0%","\xa4#,##0.00","#E0"],"$","US Dollar",{},function(t){let e=Math.floor(Math.abs(t)),n=t.toString().replace(/^[^.]*\.?/,"").length;return 1===e&&0===n?1:5}];const bl={},wl=function(){var t={Zero:0,One:1,Two:2,Few:3,Many:4,Other:5};return t[t.Zero]="Zero",t[t.One]="One",t[t.Two]="Two",t[t.Few]="Few",t[t.Many]="Many",t[t.Other]="Other",t}(),yl=new kt("UseV4Plurals");class Cl{}class El extends Cl{constructor(t,e){super(),this.locale=t,this.deprecatedPluralFn=e}getPluralCategory(t,e){switch(this.deprecatedPluralFn?this.deprecatedPluralFn(e||this.locale,t):function(t){return function(t){const e=t.toLowerCase().replace(/_/g,"-");let n=bl[e];if(n)return n;const r=e.split("-")[0];if(n=bl[r])return n;if("en"===r)return _l;throw new Error(`Missing locale data for the locale "${t}".`)}(t)[18]}(e||this.locale)(t)){case wl.Zero:return"zero";case wl.One:return"one";case wl.Two:return"two";case wl.Few:return"few";case wl.Many:return"many";default:return"other"}}}class Sl{constructor(t,e,n,r){this.$implicit=t,this.ngForOf=e,this.index=n,this.count=r}get first(){return 0===this.index}get last(){return this.index===this.count-1}get even(){return this.index%2==0}get odd(){return!this.even}}class xl{constructor(t,e,n){this._viewContainer=t,this._template=e,this._differs=n,this._ngForOfDirty=!0,this._differ=null}set ngForOf(t){this._ngForOf=t,this._ngForOfDirty=!0}set ngForTrackBy(t){se()&&null!=t&&"function"!=typeof t&&console&&console.warn&&console.warn(`trackBy must be a function, but received ${JSON.stringify(t)}. `+"See https://angular.io/docs/ts/latest/api/common/index/NgFor-directive.html#!#change-propagation for more information."),this._trackByFn=t}get ngForTrackBy(){return this._trackByFn}set ngForTemplate(t){t&&(this._template=t)}ngDoCheck(){if(this._ngForOfDirty){this._ngForOfDirty=!1;const n=this._ngForOf;if(!this._differ&&n)try{this._differ=this._differs.find(n).create(this.ngForTrackBy)}catch(e){throw new Error(`Cannot find a differ supporting object '${n}' of type '${t=n,t.name||typeof t}'. NgFor only supports binding to Iterables such as Arrays.`)}}var t;if(this._differ){const t=this._differ.diff(this._ngForOf);t&&this._applyChanges(t)}}_applyChanges(t){const e=[];t.forEachOperation((t,n,r)=>{if(null==t.previousIndex){const n=this._viewContainer.createEmbeddedView(this._template,new Sl(null,this._ngForOf,-1,-1),r),s=new Tl(t,n);e.push(s)}else if(null==r)this._viewContainer.remove(n);else{const s=this._viewContainer.get(n);this._viewContainer.move(s,r);const i=new Tl(t,s);e.push(i)}});for(let n=0;n{this._viewContainer.get(t.currentIndex).context.$implicit=t.item})}_perViewChange(t,e){t.context.$implicit=e.item}static ngTemplateContextGuard(t,e){return!0}}class Tl{constructor(t,e){this.record=t,this.view=e}}class kl{constructor(t,e){this._viewContainer=t,this._context=new Al,this._thenTemplateRef=null,this._elseTemplateRef=null,this._thenViewRef=null,this._elseViewRef=null,this._thenTemplateRef=e}set ngIf(t){this._context.$implicit=this._context.ngIf=t,this._updateView()}set ngIfThen(t){Ol("ngIfThen",t),this._thenTemplateRef=t,this._thenViewRef=null,this._updateView()}set ngIfElse(t){Ol("ngIfElse",t),this._elseTemplateRef=t,this._elseViewRef=null,this._updateView()}_updateView(){this._context.$implicit?this._thenViewRef||(this._viewContainer.clear(),this._elseViewRef=null,this._thenTemplateRef&&(this._thenViewRef=this._viewContainer.createEmbeddedView(this._thenTemplateRef,this._context))):this._elseViewRef||(this._viewContainer.clear(),this._thenViewRef=null,this._elseTemplateRef&&(this._elseViewRef=this._viewContainer.createEmbeddedView(this._elseTemplateRef,this._context)))}static ngTemplateGuard_ngIf(t,e){return!0}}class Al{constructor(){this.$implicit=null,this.ngIf=null}}function Ol(t,e){if(e&&!e.createEmbeddedView)throw new Error(`${t} must be a TemplateRef, but received '${vt(e)}'.`)}class Il{transform(t){return JSON.stringify(t,null,2)}}class Rl{}const Nl=new kt("DocumentToken"),Dl="browser",Ml="server",Pl=function(){class t{}return t.ngInjectableDef=ft({providedIn:"root",factory:()=>new Vl(Tt(Nl),window,Tt(ee))}),t}();class Vl{constructor(t,e,n){this.document=t,this.window=e,this.errorHandler=n,this.offset=(()=>[0,0])}setOffset(t){this.offset=Array.isArray(t)?()=>t:t}getScrollPosition(){return this.supportScrollRestoration()?[this.window.scrollX,this.window.scrollY]:[0,0]}scrollToPosition(t){this.supportScrollRestoration()&&this.window.scrollTo(t[0],t[1])}scrollToAnchor(t){if(this.supportScrollRestoration()){t=this.window.CSS&&this.window.CSS.escape?this.window.CSS.escape(t):t.replace(/(\"|\'\ |:|\.|\[|\]|,|=)/g,"\\$1");try{const n=this.document.querySelector(`#${t}`);if(n)return void this.scrollToElement(n);const r=this.document.querySelector(`[name='${t}']`);if(r)return void this.scrollToElement(r)}catch(e){this.errorHandler.handleError(e)}}}setHistoryScrollRestoration(t){if(this.supportScrollRestoration()){const e=this.window.history;e&&e.scrollRestoration&&(e.scrollRestoration=t)}}scrollToElement(t){const e=t.getBoundingClientRect(),n=e.left+this.window.pageXOffset,r=e.top+this.window.pageYOffset,s=this.offset();this.window.scrollTo(n-s[0],r-s[1])}supportScrollRestoration(){try{return!!this.window&&!!this.window.scrollTo}catch(t){return!1}}}const jl=new y(t=>t.complete());function Ll(t){return t?function(t){return new y(e=>t.schedule(()=>e.complete()))}(t):jl}function Fl(t){const e=new y(e=>{e.next(t),e.complete()});return e._isScalar=!0,e.value=t,e}function Ul(...t){let e=t[t.length-1];switch(O(e)?t.pop():e=void 0,t.length){case 0:return Ll(e);case 1:return e?W(t,e):Fl(t[0]);default:return W(t,e)}}class $l extends k{constructor(t){super(),this._value=t}get value(){return this.getValue()}_subscribe(t){const e=super._subscribe(t);return e&&!e.closed&&t.next(this._value),e}getValue(){if(this.hasError)throw this.thrownError;if(this.closed)throw new S;return this._value}next(t){super.next(this._value=t)}}function Hl(){return Error.call(this),this.message="no elements in sequence",this.name="EmptyError",this}Hl.prototype=Object.create(Error.prototype);const zl=Hl,Bl={};class Wl{constructor(t){this.resultSelector=t}call(t,e){return e.subscribe(new Gl(t,this.resultSelector))}}class Gl extends ${constructor(t,e){super(t),this.resultSelector=e,this.active=0,this.values=[],this.observables=[]}_next(t){this.values.push(Bl),this.observables.push(t)}_complete(){const t=this.observables,e=t.length;if(0===e)this.destination.complete();else{this.active=e,this.toRespond=e;for(let n=0;n{let n;try{n=t()}catch(r){return void e.error(r)}return(n?G(n):Ll()).subscribe(e)})}function Zl(){return K(1)}function Ql(t,e){return function(n){return n.lift(new Yl(t,e))}}class Yl{constructor(t,e){this.predicate=t,this.thisArg=e}call(t,e){return e.subscribe(new Kl(t,this.predicate,this.thisArg))}}class Kl extends g{constructor(t,e,n){super(t),this.predicate=e,this.thisArg=n,this.count=0}_next(t){let e;try{e=this.predicate.call(this.thisArg,t,this.count++)}catch(n){return void this.destination.error(n)}e&&this.destination.next(t)}}function Xl(){return Error.call(this),this.message="argument out of range",this.name="ArgumentOutOfRangeError",this}Xl.prototype=Object.create(Error.prototype);const Jl=Xl;function ta(t){return function(e){return 0===t?Ll():e.lift(new ea(t))}}class ea{constructor(t){if(this.total=t,this.total<0)throw new Jl}call(t,e){return e.subscribe(new na(t,this.total))}}class na extends g{constructor(t,e){super(t),this.total=e,this.ring=new Array,this.count=0}_next(t){const e=this.ring,n=this.total,r=this.count++;e.length0){const n=this.count>=this.total?this.total:this.count,r=this.ring;for(let s=0;sra({hasValue:!1,next(){this.hasValue=!0},complete(){if(!this.hasValue)throw t()}});function la(t=null){return e=>e.lift(new aa(t))}class aa{constructor(t){this.defaultValue=t}call(t,e){return e.subscribe(new ua(t,this.defaultValue))}}class ua extends g{constructor(t,e){super(t),this.defaultValue=e,this.isEmpty=!0}_next(t){this.isEmpty=!1,this.destination.next(t)}_complete(){this.isEmpty&&this.destination.next(this.defaultValue),this.destination.complete()}}function ca(t,e){const n=arguments.length>=2;return r=>r.pipe(t?Ql((e,n)=>t(e,n,r)):Y,ta(1),n?la(e):oa(()=>new zl))}function ha(t){return function(e){const n=new da(t),r=e.lift(n);return n.caught=r}}class da{constructor(t){this.selector=t}call(t,e){return e.subscribe(new pa(t,this.selector,this.caught))}}class pa extends ${constructor(t,e,n){super(t),this.selector=e,this.caught=n}error(t){if(!this.isStopped){let n;try{n=this.selector(t,this.caught)}catch(e){return void super.error(e)}this._unsubscribeAndRecycle();const r=new I(this,void 0,void 0);this.add(r),U(this,n,void 0,void 0,r)}}}function fa(t){return e=>0===t?Ll():e.lift(new ga(t))}class ga{constructor(t){if(this.total=t,this.total<0)throw new Jl}call(t,e){return e.subscribe(new ma(t,this.total))}}class ma extends g{constructor(t,e){super(t),this.total=e,this.count=0}_next(t){const e=this.total,n=++this.count;n<=e&&(this.destination.next(t),n===e&&(this.destination.complete(),this.unsubscribe()))}}function va(t,e){const n=arguments.length>=2;return r=>r.pipe(t?Ql((e,n)=>t(e,n,r)):Y,fa(1),n?la(e):oa(()=>new zl))}class _a{constructor(t,e,n){this.predicate=t,this.thisArg=e,this.source=n}call(t,e){return e.subscribe(new ba(t,this.predicate,this.thisArg,this.source))}}class ba extends g{constructor(t,e,n,r){super(t),this.predicate=e,this.thisArg=n,this.source=r,this.index=0,this.thisArg=n||this}notifyComplete(t){this.destination.next(t),this.destination.complete()}_next(t){let e=!1;try{e=this.predicate.call(this.thisArg,t,this.index++,this.source)}catch(n){return void this.destination.error(n)}e||this.notifyComplete(!1)}_complete(){this.notifyComplete(!0)}}function wa(t,e){return"function"==typeof e?n=>n.pipe(wa((n,r)=>G(t(n,r)).pipe(H((t,s)=>e(n,t,r,s))))):e=>e.lift(new ya(t))}class ya{constructor(t){this.project=t}call(t,e){return e.subscribe(new Ca(t,this.project))}}class Ca extends ${constructor(t,e){super(t),this.project=e,this.index=0}_next(t){let e;const n=this.index++;try{e=this.project(t,n)}catch(r){return void this.destination.error(r)}this._innerSub(e,t,n)}_innerSub(t,e,n){const r=this.innerSubscription;r&&r.unsubscribe();const s=new I(this,void 0,void 0);this.destination.add(s),this.innerSubscription=U(this,t,e,n,s)}_complete(){const{innerSubscription:t}=this;t&&!t.closed||super._complete(),this.unsubscribe()}_unsubscribe(){this.innerSubscription=null}notifyComplete(t){this.destination.remove(t),this.innerSubscription=null,this.isStopped&&super._complete()}notifyNext(t,e,n,r,s){this.destination.next(e)}}function Ea(t,e){let n=!1;return arguments.length>=2&&(n=!0),function(r){return r.lift(new Sa(t,e,n))}}class Sa{constructor(t,e,n=!1){this.accumulator=t,this.seed=e,this.hasSeed=n}call(t,e){return e.subscribe(new xa(t,this.accumulator,this.seed,this.hasSeed))}}class xa extends g{constructor(t,e,n,r){super(t),this.accumulator=e,this._seed=n,this.hasSeed=r,this.index=0}get seed(){return this._seed}set seed(t){this.hasSeed=!0,this._seed=t}_next(t){if(this.hasSeed)return this._tryNext(t);this.seed=t,this.destination.next(t)}_tryNext(t){const e=this.index++;let n;try{n=this.accumulator(this.seed,t,e)}catch(r){this.destination.error(r)}this.seed=n,this.destination.next(n)}}function Ta(t,e){return q(t,e,1)}class ka{constructor(t){this.callback=t}call(t,e){return e.subscribe(new Aa(t,this.callback))}}class Aa extends g{constructor(t,e){super(t),this.add(new d(e))}}let Oa=null;function Ia(){return Oa}class Ra{constructor(){this.resourceLoaderType=null}get attrToPropMap(){return this._attrToPropMap}set attrToPropMap(t){this._attrToPropMap=t}}class Na extends Ra{constructor(){super(),this._animationPrefix=null,this._transitionEnd=null;try{const e=this.createElement("div",document);if(null!=this.getStyle(e,"animationName"))this._animationPrefix="";else{const t=["Webkit","Moz","O","ms"];for(let n=0;n{null!=this.getStyle(e,t)&&(this._transitionEnd=n[t])})}catch(t){this._animationPrefix=null,this._transitionEnd=null}}getDistributedNodes(t){return t.getDistributedNodes()}resolveAndSetHref(t,e,n){t.href=null==n?e:e+"/../"+n}supportsDOMEvents(){return!0}supportsNativeShadowDOM(){return"function"==typeof document.body.createShadowRoot}getAnimationPrefix(){return this._animationPrefix?this._animationPrefix:""}getTransitionEnd(){return this._transitionEnd?this._transitionEnd:""}supportsAnimation(){return null!=this._animationPrefix&&null!=this._transitionEnd}}const Da={class:"className",innerHtml:"innerHTML",readonly:"readOnly",tabindex:"tabIndex"},Ma=3,Pa={"\b":"Backspace","\t":"Tab","\x7f":"Delete","\x1b":"Escape",Del:"Delete",Esc:"Escape",Left:"ArrowLeft",Right:"ArrowRight",Up:"ArrowUp",Down:"ArrowDown",Menu:"ContextMenu",Scroll:"ScrollLock",Win:"OS"},Va={A:"1",B:"2",C:"3",D:"4",E:"5",F:"6",G:"7",H:"8",I:"9",J:"*",K:"+",M:"-",N:".",O:"/","`":"0","\x90":"NumLock"},ja=(()=>{if(Ct.Node)return Ct.Node.prototype.contains||function(t){return!!(16&this.compareDocumentPosition(t))}})();class La extends Na{parse(t){throw new Error("parse not implemented")}static makeCurrent(){var t;t=new La,Oa||(Oa=t)}hasProperty(t,e){return e in t}setProperty(t,e,n){t[e]=n}getProperty(t,e){return t[e]}invoke(t,e,n){t[e](...n)}logError(t){window.console&&(console.error?console.error(t):console.log(t))}log(t){window.console&&window.console.log&&window.console.log(t)}logGroup(t){window.console&&window.console.group&&window.console.group(t)}logGroupEnd(){window.console&&window.console.groupEnd&&window.console.groupEnd()}get attrToPropMap(){return Da}contains(t,e){return ja.call(t,e)}querySelector(t,e){return t.querySelector(e)}querySelectorAll(t,e){return t.querySelectorAll(e)}on(t,e,n){t.addEventListener(e,n,!1)}onAndCancel(t,e,n){return t.addEventListener(e,n,!1),()=>{t.removeEventListener(e,n,!1)}}dispatchEvent(t,e){t.dispatchEvent(e)}createMouseEvent(t){const e=this.getDefaultDocument().createEvent("MouseEvent");return e.initEvent(t,!0,!0),e}createEvent(t){const e=this.getDefaultDocument().createEvent("Event");return e.initEvent(t,!0,!0),e}preventDefault(t){t.preventDefault(),t.returnValue=!1}isPrevented(t){return t.defaultPrevented||null!=t.returnValue&&!t.returnValue}getInnerHTML(t){return t.innerHTML}getTemplateContent(t){return"content"in t&&this.isTemplateElement(t)?t.content:null}getOuterHTML(t){return t.outerHTML}nodeName(t){return t.nodeName}nodeValue(t){return t.nodeValue}type(t){return t.type}content(t){return this.hasProperty(t,"content")?t.content:t}firstChild(t){return t.firstChild}nextSibling(t){return t.nextSibling}parentElement(t){return t.parentNode}childNodes(t){return t.childNodes}childNodesAsList(t){const e=t.childNodes,n=new Array(e.length);for(let r=0;rt.insertBefore(n,e))}insertAfter(t,e,n){t.insertBefore(n,e.nextSibling)}setInnerHTML(t,e){t.innerHTML=e}getText(t){return t.textContent}setText(t,e){t.textContent=e}getValue(t){return t.value}setValue(t,e){t.value=e}getChecked(t){return t.checked}setChecked(t,e){t.checked=e}createComment(t){return this.getDefaultDocument().createComment(t)}createTemplate(t){const e=this.getDefaultDocument().createElement("template");return e.innerHTML=t,e}createElement(t,e){return(e=e||this.getDefaultDocument()).createElement(t)}createElementNS(t,e,n){return(n=n||this.getDefaultDocument()).createElementNS(t,e)}createTextNode(t,e){return(e=e||this.getDefaultDocument()).createTextNode(t)}createScriptTag(t,e,n){const r=(n=n||this.getDefaultDocument()).createElement("SCRIPT");return r.setAttribute(t,e),r}createStyleElement(t,e){const n=(e=e||this.getDefaultDocument()).createElement("style");return this.appendChild(n,this.createTextNode(t,e)),n}createShadowRoot(t){return t.createShadowRoot()}getShadowRoot(t){return t.shadowRoot}getHost(t){return t.host}clone(t){return t.cloneNode(!0)}getElementsByClassName(t,e){return t.getElementsByClassName(e)}getElementsByTagName(t,e){return t.getElementsByTagName(e)}classList(t){return Array.prototype.slice.call(t.classList,0)}addClass(t,e){t.classList.add(e)}removeClass(t,e){t.classList.remove(e)}hasClass(t,e){return t.classList.contains(e)}setStyle(t,e,n){t.style[e]=n}removeStyle(t,e){t.style[e]=""}getStyle(t,e){return t.style[e]}hasStyle(t,e,n){const r=this.getStyle(t,e)||"";return n?r==n:r.length>0}tagName(t){return t.tagName}attributeMap(t){const e=new Map,n=t.attributes;for(let r=0;r[{type:void 0,decorators:[{type:at,args:[Nl]}]}]),t}(),za=new kt("TRANSITION_ID"),Ba=[{provide:xs,useFactory:function(t,e,n){return()=>{n.get(Ts).donePromise.then(()=>{const n=Ia();Array.prototype.slice.apply(n.querySelectorAll(e,"style[ng-transition]")).filter(e=>n.getAttribute(e,"ng-transition")===t).forEach(t=>n.remove(t))})}},deps:[za,Nl,Nt],multi:!0}];class Wa{static init(){var t;t=new Wa,oi=t}addToWindow(t){Ct.getAngularTestability=((e,n=!0)=>{const r=t.findTestabilityInTree(e,n);if(null==r)throw new Error("Could not find testability for element.");return r}),Ct.getAllAngularTestabilities=(()=>t.getAllTestabilities()),Ct.getAllAngularRootElements=(()=>t.getAllRootElements()),Ct.frameworkStabilizers||(Ct.frameworkStabilizers=[]),Ct.frameworkStabilizers.push(t=>{const e=Ct.getAllAngularTestabilities();let n=e.length,r=!1;const s=function(e){r=r||e,0==--n&&t(r)};e.forEach(function(t){t.whenStable(s)})})}findTestabilityInTree(t,e,n){if(null==e)return null;const r=t.getTestability(e);return null!=r?r:n?Ia().isShadowRoot(e)?this.findTestabilityInTree(t,Ia().getHost(e),!0):this.findTestabilityInTree(t,Ia().parentElement(e),!0):null}}function Ga(t,e){"undefined"!=typeof COMPILED&&COMPILED||((Ct.ng=Ct.ng||{})[t]=e)}const qa=(()=>({ApplicationRef:gi,NgZone:Qs}))();function Za(t){return Ai(t)}const Qa=new kt("EventManagerPlugins");class Ya{constructor(t,e){this._zone=e,this._eventNameToPlugin=new Map,t.forEach(t=>t.manager=this),this._plugins=t.slice().reverse()}addEventListener(t,e,n){return this._findPluginFor(e).addEventListener(t,e,n)}addGlobalEventListener(t,e,n){return this._findPluginFor(e).addGlobalEventListener(t,e,n)}getZone(){return this._zone}_findPluginFor(t){const e=this._eventNameToPlugin.get(t);if(e)return e;const n=this._plugins;for(let r=0;r{this._stylesSet.has(t)||(this._stylesSet.add(t),e.add(t))}),this.onStylesAdded(e)}onStylesAdded(t){}getAllStyles(){return Array.from(this._stylesSet)}}class Ja extends Xa{constructor(t){super(),this._doc=t,this._hostNodes=new Set,this._styleNodes=new Set,this._hostNodes.add(t.head)}_addStylesToHost(t,e){t.forEach(t=>{const n=this._doc.createElement("style");n.textContent=t,this._styleNodes.add(e.appendChild(n))})}addHost(t){this._addStylesToHost(this._stylesSet,t),this._hostNodes.add(t)}removeHost(t){this._hostNodes.delete(t)}onStylesAdded(t){this._hostNodes.forEach(e=>this._addStylesToHost(t,e))}ngOnDestroy(){this._styleNodes.forEach(t=>Ia().remove(t))}}const tu={svg:"http://www.w3.org/2000/svg",xhtml:"http://www.w3.org/1999/xhtml",xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/"},eu=/%COMP%/g,nu="_nghost-%COMP%",ru="_ngcontent-%COMP%";function su(t,e,n){for(let r=0;r{!1===t(e)&&(e.preventDefault(),e.returnValue=!1)}}class ou{constructor(t,e,n){this.eventManager=t,this.sharedStylesHost=e,this.appId=n,this.rendererByCompId=new Map,this.defaultRenderer=new lu(t)}createRenderer(t,e){if(!t||!e)return this.defaultRenderer;switch(e.encapsulation){case Yt.Emulated:{let n=this.rendererByCompId.get(e.id);return n||(n=new cu(this.eventManager,this.sharedStylesHost,e,this.appId),this.rendererByCompId.set(e.id,n)),n.applyToHost(t),n}case Yt.Native:case Yt.ShadowDom:return new hu(this.eventManager,this.sharedStylesHost,t,e);default:if(!this.rendererByCompId.has(e.id)){const t=su(e.id,e.styles,[]);this.sharedStylesHost.addStyles(t),this.rendererByCompId.set(e.id,this.defaultRenderer)}return this.defaultRenderer}}begin(){}end(){}}class lu{constructor(t){this.eventManager=t,this.data=Object.create(null)}destroy(){}createElement(t,e){return e?document.createElementNS(tu[e]||e,t):document.createElement(t)}createComment(t){return document.createComment(t)}createText(t){return document.createTextNode(t)}appendChild(t,e){t.appendChild(e)}insertBefore(t,e,n){t&&t.insertBefore(e,n)}removeChild(t,e){t&&t.removeChild(e)}selectRootElement(t,e){let n="string"==typeof t?document.querySelector(t):t;if(!n)throw new Error(`The selector "${t}" did not match any elements`);return e||(n.textContent=""),n}parentNode(t){return t.parentNode}nextSibling(t){return t.nextSibling}setAttribute(t,e,n,r){if(r){e=`${r}:${e}`;const s=tu[r];s?t.setAttributeNS(s,e,n):t.setAttribute(e,n)}else t.setAttribute(e,n)}removeAttribute(t,e,n){if(n){const r=tu[n];r?t.removeAttributeNS(r,e):t.removeAttribute(`${n}:${e}`)}else t.removeAttribute(e)}addClass(t,e){t.classList.add(e)}removeClass(t,e){t.classList.remove(e)}setStyle(t,e,n,r){r&sn.DashCase?t.style.setProperty(e,n,r&sn.Important?"important":""):t.style[e]=n}removeStyle(t,e,n){n&sn.DashCase?t.style.removeProperty(e):t.style[e]=""}setProperty(t,e,n){uu(e,"property"),t[e]=n}setValue(t,e){t.nodeValue=e}listen(t,e,n){return uu(e,"listener"),"string"==typeof t?this.eventManager.addGlobalEventListener(t,e,iu(n)):this.eventManager.addEventListener(t,e,iu(n))}}const au=(()=>"@".charCodeAt(0))();function uu(t,e){if(t.charCodeAt(0)===au)throw new Error(`Found the synthetic ${e} ${t}. Please include either "BrowserAnimationsModule" or "NoopAnimationsModule" in your application.`)}class cu extends lu{constructor(t,e,n,r){super(t),this.component=n;const s=su(r+"-"+n.id,n.styles,[]);e.addStyles(s),this.contentAttr=ru.replace(eu,r+"-"+n.id),this.hostAttr=nu.replace(eu,r+"-"+n.id)}applyToHost(t){super.setAttribute(t,this.hostAttr,"")}createElement(t,e){const n=super.createElement(t,e);return super.setAttribute(n,this.contentAttr,""),n}}class hu extends lu{constructor(t,e,n,r){super(t),this.sharedStylesHost=e,this.hostEl=n,this.component=r,this.shadowRoot=r.encapsulation===Yt.ShadowDom?n.attachShadow({mode:"open"}):n.createShadowRoot(),this.sharedStylesHost.addHost(this.shadowRoot);const s=su(r.id,r.styles,[]);for(let i=0;i"undefined"!=typeof Zone&&Zone.__symbol__||function(t){return"__zone_symbol__"+t})(),pu=du("addEventListener"),fu=du("removeEventListener"),gu={},mu="FALSE",vu="ANGULAR",_u="addEventListener",bu="removeEventListener",wu="__zone_symbol__propagationStopped",yu="__zone_symbol__stopImmediatePropagation",Cu=(()=>{const t="undefined"!=typeof Zone&&Zone[du("BLACK_LISTED_EVENTS")];if(t){const e={};return t.forEach(t=>{e[t]=t}),e}})(),Eu=function(t){return!!Cu&&Cu.hasOwnProperty(t)},Su=function(t){const e=gu[t.type];if(!e)return;const n=this[e];if(!n)return;const r=[t];if(1===n.length){const t=n[0];return t.zone!==Zone.current?t.zone.run(t.handler,this,r):t.handler.apply(this,r)}{const e=n.slice();for(let n=0;n0;s||(s=t[n]=[]);const o=Eu(e)?Zone.root:Zone.current;if(0===s.length)s.push({zone:o,handler:r});else{let t=!1;for(let e=0;ethis.removeEventListener(t,e,r)}removeEventListener(t,e,n){let r=t[fu];if(!r)return t[bu].apply(t,[e,n,!1]);let s=gu[e],i=s&&t[s];if(!i)return t[bu].apply(t,[e,n,!1]);let o=!1;for(let l=0;l{r=!0};return this.loader().then(()=>{if(!window.Hammer)return this.console.warn("The custom HAMMER_LOADER completed, but Hammer.JS is not present."),void(s=(()=>{}));r||(s=this.addEventListener(t,e,n))}).catch(()=>{this.console.warn(`The "${e}" event cannot be bound because the custom `+"Hammer.JS loader failed."),s=(()=>{})}),()=>{s()}}return r.runOutsideAngular(()=>{const s=this._config.buildHammer(t),i=function(t){r.runGuarded(function(){n(t)})};return s.on(e,i),()=>{s.off(e,i),"function"==typeof s.destroy&&s.destroy()}})}isCustomEvent(t){return this._config.events.indexOf(t)>-1}}const Ru=["alt","control","meta","shift"],Nu={alt:t=>t.altKey,control:t=>t.ctrlKey,meta:t=>t.metaKey,shift:t=>t.shiftKey};class Du extends Ka{constructor(t){super(t)}supports(t){return null!=Du.parseEventName(t)}addEventListener(t,e,n){const r=Du.parseEventName(e),s=Du.eventCallback(r.fullKey,n,this.manager.getZone());return this.manager.getZone().runOutsideAngular(()=>Ia().onAndCancel(t,r.domEventName,s))}static parseEventName(t){const e=t.toLowerCase().split("."),n=e.shift();if(0===e.length||"keydown"!==n&&"keyup"!==n)return null;const r=Du._normalizeKey(e.pop());let s="";if(Ru.forEach(t=>{const n=e.indexOf(t);n>-1&&(e.splice(n,1),s+=t+".")}),s+=r,0!=e.length||0===r.length)return null;const i={};return i.domEventName=n,i.fullKey=s,i}static getEventFullKey(t){let e="",n=Ia().getEventKey(t);return" "===(n=n.toLowerCase())?n="space":"."===n&&(n="dot"),Ru.forEach(r=>{r!=n&&(0,Nu[r])(t)&&(e+=r+".")}),e+=n}static eventCallback(t,e,n){return r=>{Du.getEventFullKey(r)===t&&n.runGuarded(()=>e(r))}}static _normalizeKey(t){switch(t){case"esc":return"escape";default:return t}}}class Mu{}class Pu extends Mu{constructor(t){super(),this._doc=t}sanitize(t,e){if(null==e)return null;switch(t){case Te.NONE:return e;case Te.HTML:return e instanceof ju?e.changingThisBreaksApplicationSecurity:(this.checkNotSafeValue(e,"HTML"),function(t,e){let n=null;try{Se=Se||new ie(t);let r=e?String(e):"";n=Se.getInertBodyElement(r);let s=5,i=r;do{if(0===s)throw new Error("Failed to sanitize html because the input is unstable");s--,r=i,i=n.innerHTML,n=Se.getInertBodyElement(r)}while(r!==i);const o=new we,l=o.sanitizeChildren(xe(n)||n);return se()&&o.sanitizedSomething&&console.warn("WARNING: sanitizing HTML stripped some content, see http://g.co/ng/security#xss"),l}finally{if(n){const t=xe(n)||n;for(;t.firstChild;)t.removeChild(t.firstChild)}}}(this._doc,String(e)));case Te.STYLE:return e instanceof Lu?e.changingThisBreaksApplicationSecurity:(this.checkNotSafeValue(e,"Style"),function(t){if(!(t=String(t).trim()))return"";const e=t.match(Oe);return e&&ae(e[1])===e[1]||t.match(Ae)&&function(t){let e=!0,n=!0;for(let r=0;rt.length)return null;if("full"===n.pathMatch&&(e.hasChildren()||r.length0?t[t.length-1]:null}function Ec(t,e){for(const n in t)t.hasOwnProperty(n)&&e(t[n],n)}function Sc(t){return De(t)?t:Ne(t)?G(Promise.resolve(t)):Ul(t)}function xc(t,e,n){return n?function(t,e){return wc(t,e)}(t.queryParams,e.queryParams)&&function t(e,n){if(!Oc(e.segments,n.segments))return!1;if(e.numberOfChildren!==n.numberOfChildren)return!1;for(const r in n.children){if(!e.children[r])return!1;if(!t(e.children[r],n.children[r]))return!1}return!0}(t.root,e.root):function(t,e){return Object.keys(e).length<=Object.keys(t).length&&Object.keys(e).every(n=>e[n]===t[n])}(t.queryParams,e.queryParams)&&function t(e,n){return function e(n,r,s){if(n.segments.length>s.length){return!!Oc(n.segments.slice(0,s.length),s)&&!r.hasChildren()}if(n.segments.length===s.length){if(!Oc(n.segments,s))return!1;for(const e in r.children){if(!n.children[e])return!1;if(!t(n.children[e],r.children[e]))return!1}return!0}{const t=s.slice(0,n.segments.length),i=s.slice(n.segments.length);return!!Oc(n.segments,t)&&!!n.children[uc]&&e(n.children[uc],r,i)}}(e,n,n.segments)}(t.root,e.root)}class Tc{constructor(t,e,n){this.root=t,this.queryParams=e,this.fragment=n}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=hc(this.queryParams)),this._queryParamMap}toString(){return Dc.serialize(this)}}class kc{constructor(t,e){this.segments=t,this.children=e,this.parent=null,Ec(e,(t,e)=>t.parent=this)}hasChildren(){return this.numberOfChildren>0}get numberOfChildren(){return Object.keys(this.children).length}toString(){return Mc(this)}}class Ac{constructor(t,e){this.path=t,this.parameters=e}get parameterMap(){return this._parameterMap||(this._parameterMap=hc(this.parameters)),this._parameterMap}toString(){return Uc(this)}}function Oc(t,e){return t.length===e.length&&t.every((t,n)=>t.path===e[n].path)}function Ic(t,e){let n=[];return Ec(t.children,(t,r)=>{r===uc&&(n=n.concat(e(t,r)))}),Ec(t.children,(t,r)=>{r!==uc&&(n=n.concat(e(t,r)))}),n}class Rc{}class Nc{parse(t){const e=new Wc(t);return new Tc(e.parseRootSegment(),e.parseQueryParams(),e.parseFragment())}serialize(t){var e;return`${`/${function t(e,n){if(!e.hasChildren())return Mc(e);if(n){const n=e.children[uc]?t(e.children[uc],!1):"",r=[];return Ec(e.children,(e,n)=>{n!==uc&&r.push(`${n}:${t(e,!1)}`)}),r.length>0?`${n}(${r.join("//")})`:n}{const n=Ic(e,(n,r)=>r===uc?[t(e.children[uc],!1)]:[`${r}:${t(n,!1)}`]);return`${Mc(e)}/(${n.join("//")})`}}(t.root,!0)}`}${function(t){const e=Object.keys(t).map(e=>{const n=t[e];return Array.isArray(n)?n.map(t=>`${Vc(e)}=${Vc(t)}`).join("&"):`${Vc(e)}=${Vc(n)}`});return e.length?`?${e.join("&")}`:""}(t.queryParams)}${"string"==typeof t.fragment?`#${e=t.fragment,encodeURI(e)}`:""}`}}const Dc=new Nc;function Mc(t){return t.segments.map(t=>Uc(t)).join("/")}function Pc(t){return encodeURIComponent(t).replace(/%40/g,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",")}function Vc(t){return Pc(t).replace(/%3B/gi,";")}function jc(t){return Pc(t).replace(/\(/g,"%28").replace(/\)/g,"%29").replace(/%26/gi,"&")}function Lc(t){return decodeURIComponent(t)}function Fc(t){return Lc(t.replace(/\+/g,"%20"))}function Uc(t){return`${jc(t.path)}${e=t.parameters,Object.keys(e).map(t=>`;${jc(t)}=${jc(e[t])}`).join("")}`;var e}const $c=/^[^\/()?;=#]+/;function Hc(t){const e=t.match($c);return e?e[0]:""}const zc=/^[^=?]+/,Bc=/^[^?]+/;class Wc{constructor(t){this.url=t,this.remaining=t}parseRootSegment(){return this.consumeOptional("/"),""===this.remaining||this.peekStartsWith("?")||this.peekStartsWith("#")?new kc([],{}):new kc([],this.parseChildren())}parseQueryParams(){const t={};if(this.consumeOptional("?"))do{this.parseQueryParam(t)}while(this.consumeOptional("&"));return t}parseFragment(){return this.consumeOptional("#")?decodeURIComponent(this.remaining):null}parseChildren(){if(""===this.remaining)return{};this.consumeOptional("/");const t=[];for(this.peekStartsWith("(")||t.push(this.parseSegment());this.peekStartsWith("/")&&!this.peekStartsWith("//")&&!this.peekStartsWith("/(");)this.capture("/"),t.push(this.parseSegment());let e={};this.peekStartsWith("/(")&&(this.capture("/"),e=this.parseParens(!0));let n={};return this.peekStartsWith("(")&&(n=this.parseParens(!1)),(t.length>0||Object.keys(e).length>0)&&(n[uc]=new kc(t,e)),n}parseSegment(){const t=Hc(this.remaining);if(""===t&&this.peekStartsWith(";"))throw new Error(`Empty path url segment cannot have parameters: '${this.remaining}'.`);return this.capture(t),new Ac(Lc(t),this.parseMatrixParams())}parseMatrixParams(){const t={};for(;this.consumeOptional(";");)this.parseParam(t);return t}parseParam(t){const e=Hc(this.remaining);if(!e)return;this.capture(e);let n="";if(this.consumeOptional("=")){const t=Hc(this.remaining);t&&this.capture(n=t)}t[Lc(e)]=Lc(n)}parseQueryParam(t){const e=function(t){const e=t.match(zc);return e?e[0]:""}(this.remaining);if(!e)return;this.capture(e);let n="";if(this.consumeOptional("=")){const t=function(t){const e=t.match(Bc);return e?e[0]:""}(this.remaining);t&&this.capture(n=t)}const r=Fc(e),s=Fc(n);if(t.hasOwnProperty(r)){let e=t[r];Array.isArray(e)||(t[r]=e=[e]),e.push(s)}else t[r]=s}parseParens(t){const e={};for(this.capture("(");!this.consumeOptional(")")&&this.remaining.length>0;){const n=Hc(this.remaining),r=this.remaining[n.length];if("/"!==r&&")"!==r&&";"!==r)throw new Error(`Cannot parse url '${this.url}'`);let s=void 0;n.indexOf(":")>-1?(s=n.substr(0,n.indexOf(":")),this.capture(s),this.capture(":")):t&&(s=uc);const i=this.parseChildren();e[s]=1===Object.keys(i).length?i[uc]:new kc([],i),this.consumeOptional("//")}return e}peekStartsWith(t){return this.remaining.startsWith(t)}consumeOptional(t){return!!this.peekStartsWith(t)&&(this.remaining=this.remaining.substring(t.length),!0)}capture(t){if(!this.consumeOptional(t))throw new Error(`Expected "${t}".`)}}class Gc{constructor(t){this._root=t}get root(){return this._root.value}parent(t){const e=this.pathFromRoot(t);return e.length>1?e[e.length-2]:null}children(t){const e=qc(t,this._root);return e?e.children.map(t=>t.value):[]}firstChild(t){const e=qc(t,this._root);return e&&e.children.length>0?e.children[0].value:null}siblings(t){const e=Zc(t,this._root);return e.length<2?[]:e[e.length-2].children.map(t=>t.value).filter(e=>e!==t)}pathFromRoot(t){return Zc(t,this._root).map(t=>t.value)}}function qc(t,e){if(t===e.value)return e;for(const n of e.children){const e=qc(t,n);if(e)return e}return null}function Zc(t,e){if(t===e.value)return[e];for(const n of e.children){const r=Zc(t,n);if(r.length)return r.unshift(e),r}return[]}class Qc{constructor(t,e){this.value=t,this.children=e}toString(){return`TreeNode(${this.value})`}}function Yc(t){const e={};return t&&t.children.forEach(t=>e[t.value.outlet]=t),e}class Kc extends Gc{constructor(t,e){super(t),this.snapshot=e,rh(this,t)}toString(){return this.snapshot.toString()}}function Xc(t,e){const n=function(t,e){const n=new eh([],{},{},"",{},uc,e,null,t.root,-1,{});return new nh("",new Qc(n,[]))}(t,e),r=new $l([new Ac("",{})]),s=new $l({}),i=new $l({}),o=new $l({}),l=new $l(""),a=new Jc(r,s,o,l,i,uc,e,n.root);return a.snapshot=n.root,new Kc(new Qc(a,[]),n)}class Jc{constructor(t,e,n,r,s,i,o,l){this.url=t,this.params=e,this.queryParams=n,this.fragment=r,this.data=s,this.outlet=i,this.component=o,this._futureSnapshot=l}get routeConfig(){return this._futureSnapshot.routeConfig}get root(){return this._routerState.root}get parent(){return this._routerState.parent(this)}get firstChild(){return this._routerState.firstChild(this)}get children(){return this._routerState.children(this)}get pathFromRoot(){return this._routerState.pathFromRoot(this)}get paramMap(){return this._paramMap||(this._paramMap=this.params.pipe(H(t=>hc(t)))),this._paramMap}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=this.queryParams.pipe(H(t=>hc(t)))),this._queryParamMap}toString(){return this.snapshot?this.snapshot.toString():`Future(${this._futureSnapshot})`}}function th(t,e="emptyOnly"){const n=t.pathFromRoot;let r=0;if("always"!==e)for(r=n.length-1;r>=1;){const t=n[r],e=n[r-1];if(t.routeConfig&&""===t.routeConfig.path)r--;else{if(e.component)break;r--}}return function(t){return t.reduce((t,e)=>({params:Object.assign({},t.params,e.params),data:Object.assign({},t.data,e.data),resolve:Object.assign({},t.resolve,e._resolvedData)}),{params:{},data:{},resolve:{}})}(n.slice(r))}class eh{constructor(t,e,n,r,s,i,o,l,a,u,c){this.url=t,this.params=e,this.queryParams=n,this.fragment=r,this.data=s,this.outlet=i,this.component=o,this.routeConfig=l,this._urlSegment=a,this._lastPathIndex=u,this._resolve=c}get root(){return this._routerState.root}get parent(){return this._routerState.parent(this)}get firstChild(){return this._routerState.firstChild(this)}get children(){return this._routerState.children(this)}get pathFromRoot(){return this._routerState.pathFromRoot(this)}get paramMap(){return this._paramMap||(this._paramMap=hc(this.params)),this._paramMap}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=hc(this.queryParams)),this._queryParamMap}toString(){return`Route(url:'${this.url.map(t=>t.toString()).join("/")}', path:'${this.routeConfig?this.routeConfig.path:""}')`}}class nh extends Gc{constructor(t,e){super(e),this.url=t,rh(this,e)}toString(){return sh(this._root)}}function rh(t,e){e.value._routerState=t,e.children.forEach(e=>rh(t,e))}function sh(t){const e=t.children.length>0?` { ${t.children.map(sh).join(", ")} } `:"";return`${t.value}${e}`}function ih(t){if(t.snapshot){const e=t.snapshot,n=t._futureSnapshot;t.snapshot=n,wc(e.queryParams,n.queryParams)||t.queryParams.next(n.queryParams),e.fragment!==n.fragment&&t.fragment.next(n.fragment),wc(e.params,n.params)||t.params.next(n.params),function(t,e){if(t.length!==e.length)return!1;for(let n=0;nwc(t.parameters,r[e].parameters))&&!(!t.parent!=!e.parent)&&(!t.parent||oh(t.parent,e.parent))}function lh(t){return"object"==typeof t&&null!=t&&!t.outlets&&!t.segmentPath}function ah(t,e,n,r,s){let i={};return r&&Ec(r,(t,e)=>{i[e]=Array.isArray(t)?t.map(t=>`${t}`):`${t}`}),new Tc(n.root===t?e:function t(e,n,r){const s={};return Ec(e.children,(e,i)=>{s[i]=e===n?r:t(e,n,r)}),new kc(e.segments,s)}(n.root,t,e),i,s)}class uh{constructor(t,e,n){if(this.isAbsolute=t,this.numberOfDoubleDots=e,this.commands=n,t&&n.length>0&&lh(n[0]))throw new Error("Root segment cannot have matrix parameters");const r=n.find(t=>"object"==typeof t&&null!=t&&t.outlets);if(r&&r!==Cc(n))throw new Error("{outlets:{}} has to be the last command")}toRoot(){return this.isAbsolute&&1===this.commands.length&&"/"==this.commands[0]}}class ch{constructor(t,e,n){this.segmentGroup=t,this.processChildren=e,this.index=n}}function hh(t){return"object"==typeof t&&null!=t&&t.outlets?t.outlets[uc]:`${t}`}function dh(t,e,n){if(t||(t=new kc([],{})),0===t.segments.length&&t.hasChildren())return ph(t,e,n);const r=function(t,e,n){let r=0,s=e;const i={match:!1,pathIndex:0,commandIndex:0};for(;s=n.length)return i;const e=t.segments[s],o=hh(n[r]),l=r0&&void 0===o)break;if(o&&l&&"object"==typeof l&&void 0===l.outlets){if(!vh(o,l,e))return i;r+=2}else{if(!vh(o,{},e))return i;r++}s++}return{match:!0,pathIndex:s,commandIndex:r}}(t,e,n),s=n.slice(r.commandIndex);if(r.match&&r.pathIndex{null!==n&&(s[r]=dh(t.children[r],e,n))}),Ec(t.children,(t,e)=>{void 0===r[e]&&(s[e]=t)}),new kc(t.segments,s)}}function fh(t,e,n){const r=t.segments.slice(0,e);let s=0;for(;s{null!==t&&(e[n]=fh(new kc([],{}),0,t))}),e}function mh(t){const e={};return Ec(t,(t,n)=>e[n]=`${t}`),e}function vh(t,e,n){return t==n.path&&wc(e,n.parameters)}const _h=(t,e,n)=>H(r=>(new bh(e,r.targetRouterState,r.currentRouterState,n).activate(t),r));class bh{constructor(t,e,n,r){this.routeReuseStrategy=t,this.futureState=e,this.currState=n,this.forwardEvent=r}activate(t){const e=this.futureState._root,n=this.currState?this.currState._root:null;this.deactivateChildRoutes(e,n,t),ih(this.futureState.root),this.activateChildRoutes(e,n,t)}deactivateChildRoutes(t,e,n){const r=Yc(e);t.children.forEach(t=>{const e=t.value.outlet;this.deactivateRoutes(t,r[e],n),delete r[e]}),Ec(r,(t,e)=>{this.deactivateRouteAndItsChildren(t,n)})}deactivateRoutes(t,e,n){const r=t.value,s=e?e.value:null;if(r===s)if(r.component){const s=n.getContext(r.outlet);s&&this.deactivateChildRoutes(t,e,s.children)}else this.deactivateChildRoutes(t,e,n);else s&&this.deactivateRouteAndItsChildren(e,n)}deactivateRouteAndItsChildren(t,e){this.routeReuseStrategy.shouldDetach(t.value.snapshot)?this.detachAndStoreRouteSubtree(t,e):this.deactivateRouteAndOutlet(t,e)}detachAndStoreRouteSubtree(t,e){const n=e.getContext(t.value.outlet);if(n&&n.outlet){const e=n.outlet.detach(),r=n.children.onOutletDeactivated();this.routeReuseStrategy.store(t.value.snapshot,{componentRef:e,route:t,contexts:r})}}deactivateRouteAndOutlet(t,e){const n=e.getContext(t.value.outlet);if(n){const r=Yc(t),s=t.value.component?n.children:e;Ec(r,(t,e)=>this.deactivateRouteAndItsChildren(t,s)),n.outlet&&(n.outlet.deactivate(),n.children.onOutletDeactivated())}}activateChildRoutes(t,e,n){const r=Yc(e);t.children.forEach(t=>{this.activateRoutes(t,r[t.value.outlet],n),this.forwardEvent(new oc(t.value.snapshot))}),t.children.length&&this.forwardEvent(new sc(t.value.snapshot))}activateRoutes(t,e,n){const r=t.value,s=e?e.value:null;if(ih(r),r===s)if(r.component){const s=n.getOrCreateContext(r.outlet);this.activateChildRoutes(t,e,s.children)}else this.activateChildRoutes(t,e,n);else if(r.component){const e=n.getOrCreateContext(r.outlet);if(this.routeReuseStrategy.shouldAttach(r.snapshot)){const t=this.routeReuseStrategy.retrieve(r.snapshot);this.routeReuseStrategy.store(r.snapshot,null),e.children.onOutletReAttached(t.contexts),e.attachRef=t.componentRef,e.route=t.route.value,e.outlet&&e.outlet.attach(t.componentRef,t.route.value),wh(t.route)}else{const n=function(t){for(let e=r.snapshot.parent;e;e=e.parent){const t=e.routeConfig;if(t&&t._loadedConfig)return t._loadedConfig;if(t&&t.component)return null}return null}(),s=n?n.module.componentFactoryResolver:null;e.attachRef=null,e.route=r,e.resolver=s,e.outlet&&e.outlet.activateWith(r,s),this.activateChildRoutes(t,null,e.children)}}else this.activateChildRoutes(t,null,n)}}function wh(t){ih(t.value),t.children.forEach(wh)}function yh(t){return"function"==typeof t}function Ch(t){return t instanceof Tc}class Eh{constructor(t){this.segmentGroup=t||null}}class Sh{constructor(t){this.urlTree=t}}function xh(t){return new y(e=>e.error(new Eh(t)))}function Th(t){return new y(e=>e.error(new Sh(t)))}function kh(t){return new y(e=>e.error(new Error(`Only absolute redirects can have named outlets. redirectTo: '${t}'`)))}class Ah{constructor(t,e,n,r,s){this.configLoader=e,this.urlSerializer=n,this.urlTree=r,this.config=s,this.allowRedirects=!0,this.ngModule=t.get(Ke)}apply(){return this.expandSegmentGroup(this.ngModule,this.config,this.urlTree.root,uc).pipe(H(t=>this.createUrlTree(t,this.urlTree.queryParams,this.urlTree.fragment))).pipe(ha(t=>{if(t instanceof Sh)return this.allowRedirects=!1,this.match(t.urlTree);if(t instanceof Eh)throw this.noMatchError(t);throw t}))}match(t){return this.expandSegmentGroup(this.ngModule,this.config,t.root,uc).pipe(H(e=>this.createUrlTree(e,t.queryParams,t.fragment))).pipe(ha(t=>{if(t instanceof Eh)throw this.noMatchError(t);throw t}))}noMatchError(t){return new Error(`Cannot match any routes. URL Segment: '${t.segmentGroup}'`)}createUrlTree(t,e,n){const r=t.segments.length>0?new kc([],{[uc]:t}):t;return new Tc(r,e,n)}expandSegmentGroup(t,e,n,r){return 0===n.segments.length&&n.hasChildren()?this.expandChildren(t,e,n).pipe(H(t=>new kc([],t))):this.expandSegment(t,n,e,n.segments,r,!0)}expandChildren(t,e,n){return function(t,e){if(0===Object.keys(t).length)return Ul({});const n=[],r=[],s={};return Ec(t,(t,i)=>{const o=e(i,t).pipe(H(t=>s[i]=t));i===uc?n.push(o):r.push(o)}),Ul.apply(null,n.concat(r)).pipe(Zl(),ca(),H(()=>s))}(n.children,(n,r)=>this.expandSegmentGroup(t,e,r,n))}expandSegment(t,e,n,r,s,i){return Ul(...n).pipe(H(o=>this.expandSegmentAgainstRoute(t,e,n,o,r,s,i).pipe(ha(t=>{if(t instanceof Eh)return Ul(null);throw t}))),Zl(),va(t=>!!t),ha((t,n)=>{if(t instanceof zl||"EmptyError"===t.name){if(this.noLeftoversInUrl(e,r,s))return Ul(new kc([],{}));throw new Eh(e)}throw t}))}noLeftoversInUrl(t,e,n){return 0===e.length&&!t.children[n]}expandSegmentAgainstRoute(t,e,n,r,s,i,o){return Nh(r)!==i?xh(e):void 0===r.redirectTo?this.matchSegmentAgainstRoute(t,e,r,s):o&&this.allowRedirects?this.expandSegmentAgainstRouteUsingRedirect(t,e,n,r,s,i):xh(e)}expandSegmentAgainstRouteUsingRedirect(t,e,n,r,s,i){return"**"===r.path?this.expandWildCardWithParamsAgainstRouteUsingRedirect(t,n,r,i):this.expandRegularSegmentAgainstRouteUsingRedirect(t,e,n,r,s,i)}expandWildCardWithParamsAgainstRouteUsingRedirect(t,e,n,r){const s=this.applyRedirectCommands([],n.redirectTo,{});return n.redirectTo.startsWith("/")?Th(s):this.lineralizeSegments(n,s).pipe(q(n=>{const s=new kc(n,{});return this.expandSegment(t,s,e,n,r,!1)}))}expandRegularSegmentAgainstRouteUsingRedirect(t,e,n,r,s,i){const{matched:o,consumedSegments:l,lastChild:a,positionalParamSegments:u}=Oh(e,r,s);if(!o)return xh(e);const c=this.applyRedirectCommands(l,r.redirectTo,u);return r.redirectTo.startsWith("/")?Th(c):this.lineralizeSegments(r,c).pipe(q(r=>this.expandSegment(t,e,n,r.concat(s.slice(a)),i,!1)))}matchSegmentAgainstRoute(t,e,n,r){if("**"===n.path)return n.loadChildren?this.configLoader.load(t.injector,n).pipe(H(t=>(n._loadedConfig=t,new kc(r,{})))):Ul(new kc(r,{}));const{matched:s,consumedSegments:i,lastChild:o}=Oh(e,n,r);if(!s)return xh(e);const l=r.slice(o);return this.getChildConfig(t,n,r).pipe(q(t=>{const n=t.module,r=t.routes,{segmentGroup:s,slicedSegments:o}=function(t,e,n,r){return n.length>0&&function(t,e,n){return r.some(n=>Rh(t,e,n)&&Nh(n)!==uc)}(t,n)?{segmentGroup:Ih(new kc(e,function(t,e){const n={};n[uc]=e;for(const r of t)""===r.path&&Nh(r)!==uc&&(n[Nh(r)]=new kc([],{}));return n}(r,new kc(n,t.children)))),slicedSegments:[]}:0===n.length&&function(t,e,n){return r.some(n=>Rh(t,e,n))}(t,n)?{segmentGroup:Ih(new kc(t.segments,function(t,e,n,r){const s={};for(const i of n)Rh(t,e,i)&&!r[Nh(i)]&&(s[Nh(i)]=new kc([],{}));return Object.assign({},r,s)}(t,n,r,t.children))),slicedSegments:n}:{segmentGroup:t,slicedSegments:n}}(e,i,l,r);return 0===o.length&&s.hasChildren()?this.expandChildren(n,r,s).pipe(H(t=>new kc(i,t))):0===r.length&&0===o.length?Ul(new kc(i,{})):this.expandSegment(n,s,r,o,uc,!0).pipe(H(t=>new kc(i.concat(t.segments),t.children)))}))}getChildConfig(t,e,n){return e.children?Ul(new gc(e.children,t)):e.loadChildren?void 0!==e._loadedConfig?Ul(e._loadedConfig):function(t,e,n){const r=e.canLoad;return r&&0!==r.length?G(r).pipe(H(r=>{const s=t.get(r);let i;if(function(t){return t&&yh(t.canLoad)}(s))i=s.canLoad(e,n);else{if(!yh(s))throw new Error("Invalid CanLoad guard");i=s(e,n)}return Sc(i)})).pipe(Zl(),(s=(t=>!0===t),t=>t.lift(new _a(s,void 0,t)))):Ul(!0);var s}(t.injector,e,n).pipe(q(n=>n?this.configLoader.load(t.injector,e).pipe(H(t=>(e._loadedConfig=t,t))):function(t){return new y(e=>e.error(pc(`Cannot load children because the guard of the route "path: '${t.path}'" returned false`)))}(e))):Ul(new gc([],t))}lineralizeSegments(t,e){let n=[],r=e.root;for(;;){if(n=n.concat(r.segments),0===r.numberOfChildren)return Ul(n);if(r.numberOfChildren>1||!r.children[uc])return kh(t.redirectTo);r=r.children[uc]}}applyRedirectCommands(t,e,n){return this.applyRedirectCreatreUrlTree(e,this.urlSerializer.parse(e),t,n)}applyRedirectCreatreUrlTree(t,e,n,r){const s=this.createSegmentGroup(t,e.root,n,r);return new Tc(s,this.createQueryParams(e.queryParams,this.urlTree.queryParams),e.fragment)}createQueryParams(t,e){const n={};return Ec(t,(t,r)=>{if("string"==typeof t&&t.startsWith(":")){const s=t.substring(1);n[r]=e[s]}else n[r]=t}),n}createSegmentGroup(t,e,n,r){const s=this.createSegments(t,e.segments,n,r);let i={};return Ec(e.children,(e,s)=>{i[s]=this.createSegmentGroup(t,e,n,r)}),new kc(s,i)}createSegments(t,e,n,r){return e.map(e=>e.path.startsWith(":")?this.findPosParam(t,e,r):this.findOrReturn(e,n))}findPosParam(t,e,n){const r=n[e.path.substring(1)];if(!r)throw new Error(`Cannot redirect to '${t}'. Cannot find '${e.path}'.`);return r}findOrReturn(t,e){let n=0;for(const r of e){if(r.path===t.path)return e.splice(n),r;n++}return t}}function Oh(t,e,n){if(""===e.path)return"full"===e.pathMatch&&(t.hasChildren()||n.length>0)?{matched:!1,consumedSegments:[],lastChild:0,positionalParamSegments:{}}:{matched:!0,consumedSegments:[],lastChild:0,positionalParamSegments:{}};const r=(e.matcher||fc)(n,t,e);return r?{matched:!0,consumedSegments:r.consumed,lastChild:r.consumed.length,positionalParamSegments:r.posParams}:{matched:!1,consumedSegments:[],lastChild:0,positionalParamSegments:{}}}function Ih(t){if(1===t.numberOfChildren&&t.children[uc]){const e=t.children[uc];return new kc(t.segments.concat(e.segments),e.children)}return t}function Rh(t,e,n){return(!(t.hasChildren()||e.length>0)||"full"!==n.pathMatch)&&""===n.path&&void 0!==n.redirectTo}function Nh(t){return t.outlet||uc}class Dh{constructor(t){this.path=t,this.route=this.path[this.path.length-1]}}class Mh{constructor(t,e){this.component=t,this.route=e}}function Ph(t,e,n){const r=t._root;return function t(e,n,r,s,i={canDeactivateChecks:[],canActivateChecks:[]}){const o=Yc(n);return e.children.forEach(e=>{!function(e,n,r,s,i={canDeactivateChecks:[],canActivateChecks:[]}){const o=e.value,l=n?n.value:null,a=r?r.getContext(e.value.outlet):null;if(l&&o.routeConfig===l.routeConfig){const u=function(t,e,n){if("function"==typeof n)return n(t,e);switch(n){case"pathParamsChange":return!Oc(t.url,e.url);case"pathParamsOrQueryParamsChange":return!Oc(t.url,e.url)||!wc(t.queryParams,e.queryParams);case"always":return!0;case"paramsOrQueryParamsChange":return!oh(t,e)||!wc(t.queryParams,e.queryParams);case"paramsChange":default:return!oh(t,e)}}(l,o,o.routeConfig.runGuardsAndResolvers);if(u?i.canActivateChecks.push(new Dh(s)):(o.data=l.data,o._resolvedData=l._resolvedData),t(e,n,o.component?a?a.children:null:r,s,i),u){i.canDeactivateChecks.push(new Mh(a&&a.outlet&&a.outlet.component||null,l))}}else l&&jh(n,a,i),i.canActivateChecks.push(new Dh(s)),t(e,null,o.component?a?a.children:null:r,s,i)}(e,o[e.value.outlet],r,s.concat([e.value]),i),delete o[e.value.outlet]}),Ec(o,(t,e)=>jh(t,r.getContext(e),i)),i}(r,e?e._root:null,n,[r.value])}function Vh(t,e,n){const r=function(t){if(!t)return null;for(let e=t.parent;e;e=e.parent){const t=e.routeConfig;if(t&&t._loadedConfig)return t._loadedConfig}return null}(e);return(r?r.module.injector:n).get(t)}function jh(t,e,n){const r=Yc(t),s=t.value;Ec(r,(t,r)=>{jh(t,s.component?e?e.children.getContext(r):null:e,n)}),n.canDeactivateChecks.push(new Mh(s.component&&e&&e.outlet&&e.outlet.isActivated?e.outlet.component:null,s))}const Lh=Symbol("INITIAL_VALUE");function Fh(){return wa(t=>(function(...t){let e=null,n=null;return O(t[t.length-1])&&(n=t.pop()),"function"==typeof t[t.length-1]&&(e=t.pop()),1===t.length&&a(t[0])&&(t=t[0]),W(t,n).lift(new Wl(e))})(...t.map(t=>t.pipe(fa(1),function(...t){return e=>{let n=t[t.length-1];O(n)?t.pop():n=null;const r=t.length;return function(...t){return Zl()(Ul(...t))}(1!==r||n?r>0?W(t,n):Ll(n):Fl(t[0]),e)}}(Lh)))).pipe(Ea((t,e)=>{let n=!1;return e.reduce((t,r,s)=>{if(t!==Lh)return t;if(r===Lh&&(n=!0),!n){if(!1===r)return r;if(s===e.length-1||Ch(r))return r}return t},t)},Lh),Ql(t=>t!==Lh),H(t=>Ch(t)?t:!0===t),fa(1)))}function Uh(t,e){return null!==t&&e&&e(new ic(t)),Ul(!0)}function $h(t,e){return null!==t&&e&&e(new rc(t)),Ul(!0)}function Hh(t,e,n){const r=e.routeConfig?e.routeConfig.canActivate:null;return r&&0!==r.length?Ul(r.map(r=>ql(()=>{const s=Vh(r,e,n);let i;if(function(t){return t&&yh(t.canActivate)}(s))i=Sc(s.canActivate(e,t));else{if(!yh(s))throw new Error("Invalid CanActivate guard");i=Sc(s(e,t))}return i.pipe(va())}))).pipe(Fh()):Ul(!0)}function zh(t,e,n){const r=e[e.length-1],s=e.slice(0,e.length-1).reverse().map(t=>(function(t){const e=t.routeConfig?t.routeConfig.canActivateChild:null;return e&&0!==e.length?{node:t,guards:e}:null})(t)).filter(t=>null!==t).map(e=>ql(()=>Ul(e.guards.map(s=>{const i=Vh(s,e.node,n);let o;if(function(t){return t&&yh(t.canActivateChild)}(i))o=Sc(i.canActivateChild(r,t));else{if(!yh(i))throw new Error("Invalid CanActivateChild guard");o=Sc(i(r,t))}return o.pipe(va())})).pipe(Fh())));return Ul(s).pipe(Fh())}class Bh{}class Wh{constructor(t,e,n,r,s,i){this.rootComponentType=t,this.config=e,this.urlTree=n,this.url=r,this.paramsInheritanceStrategy=s,this.relativeLinkResolution=i}recognize(){try{const e=Zh(this.urlTree.root,[],[],this.config,this.relativeLinkResolution).segmentGroup,n=this.processSegmentGroup(this.config,e,uc),r=new eh([],Object.freeze({}),Object.freeze(Object.assign({},this.urlTree.queryParams)),this.urlTree.fragment,{},uc,this.rootComponentType,null,this.urlTree.root,-1,{}),s=new Qc(r,n),i=new nh(this.url,s);return this.inheritParamsAndData(i._root),Ul(i)}catch(t){return new y(e=>e.error(t))}}inheritParamsAndData(t){const e=t.value,n=th(e,this.paramsInheritanceStrategy);e.params=Object.freeze(n.params),e.data=Object.freeze(n.data),t.children.forEach(t=>this.inheritParamsAndData(t))}processSegmentGroup(t,e,n){return 0===e.segments.length&&e.hasChildren()?this.processChildren(t,e):this.processSegment(t,e,e.segments,n)}processChildren(t,e){const n=Ic(e,(e,n)=>this.processSegmentGroup(t,e,n));return function(t){const e={};n.forEach(t=>{const n=e[t.value.outlet];if(n){const e=n.url.map(t=>t.toString()).join("/"),r=t.value.url.map(t=>t.toString()).join("/");throw new Error(`Two segments cannot have the same outlet name: '${e}' and '${r}'.`)}e[t.value.outlet]=t.value})}(),n.sort((t,e)=>t.value.outlet===uc?-1:e.value.outlet===uc?1:t.value.outlet.localeCompare(e.value.outlet)),n}processSegment(t,e,n,r){for(const i of t)try{return this.processSegmentAgainstRoute(i,e,n,r)}catch(s){if(!(s instanceof Bh))throw s}if(this.noLeftoversInUrl(e,n,r))return[];throw new Bh}noLeftoversInUrl(t,e,n){return 0===e.length&&!t.children[n]}processSegmentAgainstRoute(t,e,n,r){if(t.redirectTo)throw new Bh;if((t.outlet||uc)!==r)throw new Bh;let s,i=[],o=[];if("**"===t.path){const i=n.length>0?Cc(n).parameters:{};s=new eh(n,i,Object.freeze(Object.assign({},this.urlTree.queryParams)),this.urlTree.fragment,Kh(t),r,t.component,t,Gh(e),qh(e)+n.length,Xh(t))}else{const l=function(t,e,n){if(""===e.path){if("full"===e.pathMatch&&(t.hasChildren()||n.length>0))throw new Bh;return{consumedSegments:[],lastChild:0,parameters:{}}}const r=(e.matcher||fc)(n,t,e);if(!r)throw new Bh;const s={};Ec(r.posParams,(t,e)=>{s[e]=t.path});const i=r.consumed.length>0?Object.assign({},s,r.consumed[r.consumed.length-1].parameters):s;return{consumedSegments:r.consumed,lastChild:r.consumed.length,parameters:i}}(e,t,n);i=l.consumedSegments,o=n.slice(l.lastChild),s=new eh(i,l.parameters,Object.freeze(Object.assign({},this.urlTree.queryParams)),this.urlTree.fragment,Kh(t),r,t.component,t,Gh(e),qh(e)+i.length,Xh(t))}const l=function(t){return t.children?t.children:t.loadChildren?t._loadedConfig.routes:[]}(t),{segmentGroup:a,slicedSegments:u}=Zh(e,i,o,l,this.relativeLinkResolution);if(0===u.length&&a.hasChildren()){const t=this.processChildren(l,a);return[new Qc(s,t)]}if(0===l.length&&0===u.length)return[new Qc(s,[])];const c=this.processSegment(l,a,u,uc);return[new Qc(s,c)]}}function Gh(t){let e=t;for(;e._sourceSegment;)e=e._sourceSegment;return e}function qh(t){let e=t,n=e._segmentIndexShift?e._segmentIndexShift:0;for(;e._sourceSegment;)n+=(e=e._sourceSegment)._segmentIndexShift?e._segmentIndexShift:0;return n-1}function Zh(t,e,n,r,s){if(n.length>0&&function(t,e,n){return r.some(n=>Qh(t,e,n)&&Yh(n)!==uc)}(t,n)){const s=new kc(e,function(t,e,n,r){const s={};s[uc]=r,r._sourceSegment=t,r._segmentIndexShift=e.length;for(const i of n)if(""===i.path&&Yh(i)!==uc){const n=new kc([],{});n._sourceSegment=t,n._segmentIndexShift=e.length,s[Yh(i)]=n}return s}(t,e,r,new kc(n,t.children)));return s._sourceSegment=t,s._segmentIndexShift=e.length,{segmentGroup:s,slicedSegments:[]}}if(0===n.length&&function(t,e,n){return r.some(n=>Qh(t,e,n))}(t,n)){const i=new kc(t.segments,function(t,e,n,r,s,i){const o={};for(const l of r)if(Qh(t,n,l)&&!s[Yh(l)]){const n=new kc([],{});n._sourceSegment=t,n._segmentIndexShift="legacy"===i?t.segments.length:e.length,o[Yh(l)]=n}return Object.assign({},s,o)}(t,e,n,r,t.children,s));return i._sourceSegment=t,i._segmentIndexShift=e.length,{segmentGroup:i,slicedSegments:n}}const i=new kc(t.segments,t.children);return i._sourceSegment=t,i._segmentIndexShift=e.length,{segmentGroup:i,slicedSegments:n}}function Qh(t,e,n){return(!(t.hasChildren()||e.length>0)||"full"!==n.pathMatch)&&""===n.path&&void 0===n.redirectTo}function Yh(t){return t.outlet||uc}function Kh(t){return t.data||{}}function Xh(t){return t.resolve||{}}function Jh(t,e,n,r){const s=Vh(t,e,r);return Sc(s.resolve?s.resolve(e,n):s(e,n))}function td(t){return function(e){return e.pipe(wa(e=>{const n=t(e);return n?G(n).pipe(H(()=>e)):G([e])}))}}class ed{}class nd{shouldDetach(t){return!1}store(t,e){}shouldAttach(t){return!1}retrieve(t){return null}shouldReuseRoute(t,e){return t.routeConfig===e.routeConfig}}const rd=new kt("ROUTES");class sd{constructor(t,e,n,r){this.loader=t,this.compiler=e,this.onLoadStartListener=n,this.onLoadEndListener=r}load(t,e){return this.onLoadStartListener&&this.onLoadStartListener(e),this.loadModuleFactory(e.loadChildren).pipe(H(n=>{this.onLoadEndListener&&this.onLoadEndListener(e);const r=n.create(t);return new gc(yc(r.injector.get(rd)).map(bc),r)}))}loadModuleFactory(t){return"string"==typeof t?G(this.loader.load(t)):Sc(t()).pipe(q(t=>t instanceof Xe?Ul(t):G(this.compiler.compileModuleAsync(t))))}}class id{}class od{shouldProcessUrl(t){return!0}extract(t){return t}merge(t,e){return t}}function ld(t){throw t}function ad(t,e,n){return e.parse("/")}function ud(t,e){return Ul(null)}class cd{constructor(t,e,n,r,s,i,o,l){this.rootComponentType=t,this.urlSerializer=e,this.rootContexts=n,this.location=r,this.config=l,this.lastSuccessfulNavigation=null,this.currentNavigation=null,this.navigationId=0,this.isNgZoneEnabled=!1,this.events=new k,this.errorHandler=ld,this.malformedUriErrorHandler=ad,this.navigated=!1,this.lastSuccessfulId=-1,this.hooks={beforePreactivation:ud,afterPreactivation:ud},this.urlHandlingStrategy=new od,this.routeReuseStrategy=new nd,this.onSameUrlNavigation="ignore",this.paramsInheritanceStrategy="emptyOnly",this.urlUpdateStrategy="deferred",this.relativeLinkResolution="legacy",this.ngModule=s.get(Ke),this.console=s.get(Ds);const a=s.get(Qs);this.isNgZoneEnabled=a instanceof Qs,this.resetConfig(l),this.currentUrlTree=new Tc(new kc([],{}),{},null),this.rawUrlTree=this.currentUrlTree,this.browserUrlTree=this.currentUrlTree,this.configLoader=new sd(i,o,t=>this.triggerEvent(new ec(t)),t=>this.triggerEvent(new nc(t))),this.routerState=Xc(this.currentUrlTree,this.rootComponentType),this.transitions=new $l({id:0,currentUrlTree:this.currentUrlTree,currentRawUrl:this.currentUrlTree,extractedUrl:this.urlHandlingStrategy.extract(this.currentUrlTree),urlAfterRedirects:this.urlHandlingStrategy.extract(this.currentUrlTree),rawUrl:this.currentUrlTree,extras:{},resolve:null,reject:null,promise:Promise.resolve(!0),source:"imperative",restoredState:null,currentSnapshot:this.routerState.snapshot,targetSnapshot:null,currentRouterState:this.routerState,targetRouterState:null,guards:{canActivateChecks:[],canDeactivateChecks:[]},guardsResult:null}),this.navigations=this.setupNavigations(this.transitions),this.processNavigations()}setupNavigations(t){const e=this.events;return t.pipe(Ql(t=>0!==t.id),H(t=>Object.assign({},t,{extractedUrl:this.urlHandlingStrategy.extract(t.rawUrl)})),wa(t=>{let n=!1,r=!1;return Ul(t).pipe(ra(t=>{this.currentNavigation={id:t.id,initialUrl:t.currentRawUrl,extractedUrl:t.extractedUrl,trigger:t.source,extras:t.extras,previousNavigation:this.lastSuccessfulNavigation?Object.assign({},this.lastSuccessfulNavigation,{previousNavigation:null}):null}}),wa(t=>{const n=!this.navigated||t.extractedUrl.toString()!==this.browserUrlTree.toString();if(("reload"===this.onSameUrlNavigation||n)&&this.urlHandlingStrategy.shouldProcessUrl(t.rawUrl))return Ul(t).pipe(wa(t=>{const n=this.transitions.getValue();return e.next(new Gu(t.id,this.serializeUrl(t.extractedUrl),t.source,t.restoredState)),n!==this.transitions.getValue()?jl:[t]}),wa(t=>Promise.resolve(t)),function(t,e,n,r){return function(s){return s.pipe(wa(s=>(function(t,e,n,r,i){return new Ah(t,e,n,s.extractedUrl,i).apply()})(t,e,n,0,r).pipe(H(t=>Object.assign({},s,{urlAfterRedirects:t})))))}}(this.ngModule.injector,this.configLoader,this.urlSerializer,this.config),ra(t=>{this.currentNavigation=Object.assign({},this.currentNavigation,{finalUrl:t.urlAfterRedirects})}),function(t,e,n,r,s){return function(i){return i.pipe(q(i=>(function(t,e,n,r,s="emptyOnly",i="legacy"){return new Wh(t,e,n,r,s,i).recognize()})(t,e,i.urlAfterRedirects,n(i.urlAfterRedirects),r,s).pipe(H(t=>Object.assign({},i,{targetSnapshot:t})))))}}(this.rootComponentType,this.config,t=>this.serializeUrl(t),this.paramsInheritanceStrategy,this.relativeLinkResolution),ra(t=>{"eager"===this.urlUpdateStrategy&&(t.extras.skipLocationChange||this.setBrowserUrl(t.urlAfterRedirects,!!t.extras.replaceUrl,t.id,t.extras.state),this.browserUrlTree=t.urlAfterRedirects)}),ra(t=>{const n=new Yu(t.id,this.serializeUrl(t.extractedUrl),this.serializeUrl(t.urlAfterRedirects),t.targetSnapshot);e.next(n)}));if(n&&this.rawUrlTree&&this.urlHandlingStrategy.shouldProcessUrl(this.rawUrlTree)){const{id:n,extractedUrl:r,source:s,restoredState:i,extras:o}=t,l=new Gu(n,this.serializeUrl(r),s,i);e.next(l);const a=Xc(r,this.rootComponentType).snapshot;return Ul(Object.assign({},t,{targetSnapshot:a,urlAfterRedirects:r,extras:Object.assign({},o,{skipLocationChange:!1,replaceUrl:!1})}))}return this.rawUrlTree=t.rawUrl,this.browserUrlTree=t.urlAfterRedirects,t.resolve(null),jl}),td(t=>{const{targetSnapshot:e,id:n,extractedUrl:r,rawUrl:s,extras:{skipLocationChange:i,replaceUrl:o}}=t;return this.hooks.beforePreactivation(e,{navigationId:n,appliedUrlTree:r,rawUrlTree:s,skipLocationChange:!!i,replaceUrl:!!o})}),ra(t=>{const e=new Ku(t.id,this.serializeUrl(t.extractedUrl),this.serializeUrl(t.urlAfterRedirects),t.targetSnapshot);this.triggerEvent(e)}),H(t=>Object.assign({},t,{guards:Ph(t.targetSnapshot,t.currentSnapshot,this.rootContexts)})),function(t,e){return function(n){return n.pipe(q(n=>{const{targetSnapshot:r,currentSnapshot:s,guards:{canActivateChecks:i,canDeactivateChecks:o}}=n;return 0===o.length&&0===i.length?Ul(Object.assign({},n,{guardsResult:!0})):function(t,e,n,r){return G(o).pipe(q(t=>(function(t,e,n,r,s){const i=e&&e.routeConfig?e.routeConfig.canDeactivate:null;return i&&0!==i.length?Ul(i.map(i=>{const o=Vh(i,e,s);let l;if(function(t){return t&&yh(t.canDeactivate)}(o))l=Sc(o.canDeactivate(t,e,n,r));else{if(!yh(o))throw new Error("Invalid CanDeactivate guard");l=Sc(o(t,e,n,r))}return l.pipe(va())})).pipe(Fh()):Ul(!0)})(t.component,t.route,n,e,r)),va(t=>!0!==t,!0))}(0,r,s,t).pipe(q(n=>n&&function(t){return"boolean"==typeof n}()?function(t,e,n,r){return G(i).pipe(Ta(e=>G([$h(e.route.parent,r),Uh(e.route,r),zh(t,e.path,n),Hh(t,e.route,n)]).pipe(Zl(),va(t=>!0!==t,!0))),va(t=>!0!==t,!0))}(r,0,t,e):Ul(n)),H(t=>Object.assign({},n,{guardsResult:t})))}))}}(this.ngModule.injector,t=>this.triggerEvent(t)),ra(t=>{if(Ch(t.guardsResult)){const e=pc(`Redirecting to "${this.serializeUrl(t.guardsResult)}"`);throw e.url=t.guardsResult,e}}),ra(t=>{const e=new Xu(t.id,this.serializeUrl(t.extractedUrl),this.serializeUrl(t.urlAfterRedirects),t.targetSnapshot,!!t.guardsResult);this.triggerEvent(e)}),Ql(t=>{if(!t.guardsResult){this.resetUrlToCurrentUrlTree();const n=new Zu(t.id,this.serializeUrl(t.extractedUrl),"");return e.next(n),t.resolve(!1),!1}return!0}),td(t=>{if(t.guards.canActivateChecks.length)return Ul(t).pipe(ra(t=>{const e=new Ju(t.id,this.serializeUrl(t.extractedUrl),this.serializeUrl(t.urlAfterRedirects),t.targetSnapshot);this.triggerEvent(e)}),function(t,e){return function(n){return n.pipe(q(n=>{const{targetSnapshot:r,guards:{canActivateChecks:s}}=n;return s.length?G(s).pipe(Ta(n=>(function(t,e,n,s){return function(t,e,n,r){const s=Object.keys(t);if(0===s.length)return Ul({});if(1===s.length){const i=s[0];return Jh(t[i],e,n,r).pipe(H(t=>({[i]:t})))}const i={};return G(s).pipe(q(s=>Jh(t[s],e,n,r).pipe(H(t=>(i[s]=t,t))))).pipe(ca(),H(()=>i))}(t._resolve,t,r,s).pipe(H(e=>(t._resolvedData=e,t.data=Object.assign({},t.data,th(t,n).resolve),null)))})(n.route,0,t,e)),function(t,e){return arguments.length>=2?function(e){return b(Ea(t,void 0),ta(1),la(void 0))(e)}:function(e){return b(Ea((e,n,r)=>t(e)),ta(1))(e)}}((t,e)=>t),H(t=>n)):Ul(n)}))}}(this.paramsInheritanceStrategy,this.ngModule.injector),ra(t=>{const e=new tc(t.id,this.serializeUrl(t.extractedUrl),this.serializeUrl(t.urlAfterRedirects),t.targetSnapshot);this.triggerEvent(e)}))}),td(t=>{const{targetSnapshot:e,id:n,extractedUrl:r,rawUrl:s,extras:{skipLocationChange:i,replaceUrl:o}}=t;return this.hooks.afterPreactivation(e,{navigationId:n,appliedUrlTree:r,rawUrlTree:s,skipLocationChange:!!i,replaceUrl:!!o})}),H(t=>{const e=function(t,e,n){const r=function t(e,n,r){if(r&&e.shouldReuseRoute(n.value,r.value.snapshot)){const s=r.value;s._futureSnapshot=n.value;const i=function(e,n,r){return n.children.map(n=>{for(const s of r.children)if(e.shouldReuseRoute(s.value.snapshot,n.value))return t(e,n,s);return t(e,n)})}(e,n,r);return new Qc(s,i)}{const r=e.retrieve(n.value);if(r){const t=r.route;return function t(e,n){if(e.value.routeConfig!==n.value.routeConfig)throw new Error("Cannot reattach ActivatedRouteSnapshot created from a different route");if(e.children.length!==n.children.length)throw new Error("Cannot reattach ActivatedRouteSnapshot with a different number of children");n.value._futureSnapshot=e.value;for(let r=0;rt(e,n));return new Qc(r,i)}}var s}(t,e._root,n?n._root:void 0);return new Kc(r,e)}(this.routeReuseStrategy,t.targetSnapshot,t.currentRouterState);return Object.assign({},t,{targetRouterState:e})}),ra(t=>{this.currentUrlTree=t.urlAfterRedirects,this.rawUrlTree=this.urlHandlingStrategy.merge(this.currentUrlTree,t.rawUrl),this.routerState=t.targetRouterState,"deferred"===this.urlUpdateStrategy&&(t.extras.skipLocationChange||this.setBrowserUrl(this.rawUrlTree,!!t.extras.replaceUrl,t.id,t.extras.state),this.browserUrlTree=t.urlAfterRedirects)}),_h(this.rootContexts,this.routeReuseStrategy,t=>this.triggerEvent(t)),ra({next(){n=!0},complete(){n=!0}}),function(t){return e=>e.lift(new ka(t))}(()=>{if(!n&&!r){this.resetUrlToCurrentUrlTree();const n=new Zu(t.id,this.serializeUrl(t.extractedUrl),`Navigation ID ${t.id} is not equal to the current navigation id ${this.navigationId}`);e.next(n),t.resolve(!1)}this.currentNavigation=null}),ha(n=>{if(r=!0,function(t){return n&&n[dc]}()){const r=Ch(n.url);r||(this.navigated=!0,this.resetStateAndUrl(t.currentRouterState,t.currentUrlTree,t.rawUrl));const s=new Zu(t.id,this.serializeUrl(t.extractedUrl),n.message);e.next(s),t.resolve(!1),r&&this.navigateByUrl(n.url)}else{this.resetStateAndUrl(t.currentRouterState,t.currentUrlTree,t.rawUrl);const r=new Qu(t.id,this.serializeUrl(t.extractedUrl),n);e.next(r);try{t.resolve(this.errorHandler(n))}catch(s){t.reject(s)}}return jl}))}))}resetRootComponentType(t){this.rootComponentType=t,this.routerState.root.component=this.rootComponentType}getTransition(){const t=this.transitions.value;return t.urlAfterRedirects=this.browserUrlTree,t}setTransition(t){this.transitions.next(Object.assign({},this.getTransition(),t))}initialNavigation(){this.setUpLocationChangeListener(),0===this.navigationId&&this.navigateByUrl(this.location.path(!0),{replaceUrl:!0})}setUpLocationChangeListener(){this.locationSubscription||(this.locationSubscription=this.location.subscribe(t=>{let e=this.parseUrl(t.url);const n="popstate"===t.type?"popstate":"hashchange",r=t.state&&t.state.navigationId?t.state:null;setTimeout(()=>{this.scheduleNavigation(e,n,r,{replaceUrl:!0})},0)}))}get url(){return this.serializeUrl(this.currentUrlTree)}getCurrentNavigation(){return this.currentNavigation}triggerEvent(t){this.events.next(t)}resetConfig(t){mc(t),this.config=t.map(bc),this.navigated=!1,this.lastSuccessfulId=-1}ngOnDestroy(){this.dispose()}dispose(){this.locationSubscription&&(this.locationSubscription.unsubscribe(),this.locationSubscription=null)}createUrlTree(t,e={}){const{relativeTo:n,queryParams:r,fragment:s,preserveQueryParams:i,queryParamsHandling:o,preserveFragment:l}=e;se()&&i&&console&&console.warn&&console.warn("preserveQueryParams is deprecated, use queryParamsHandling instead.");const a=n||this.routerState.root,u=l?this.currentUrlTree.fragment:s;let c=null;if(o)switch(o){case"merge":c=Object.assign({},this.currentUrlTree.queryParams,r);break;case"preserve":c=this.currentUrlTree.queryParams;break;default:c=r||null}else c=i?this.currentUrlTree.queryParams:r||null;return null!==c&&(c=this.removeEmptyProps(c)),function(t,e,n,r,s){if(0===n.length)return ah(e.root,e.root,e,r,s);const i=function(t){if("string"==typeof t[0]&&1===t.length&&"/"===t[0])return new uh(!0,0,t);let e=0,n=!1;const r=t.reduce((t,r,s)=>{if("object"==typeof r&&null!=r){if(r.outlets){const e={};return Ec(r.outlets,(t,n)=>{e[n]="string"==typeof t?t.split("/"):t}),[...t,{outlets:e}]}if(r.segmentPath)return[...t,r.segmentPath]}return"string"!=typeof r?[...t,r]:0===s?(r.split("/").forEach((r,s)=>{0==s&&"."===r||(0==s&&""===r?n=!0:".."===r?e++:""!=r&&t.push(r))}),t):[...t,r]},[]);return new uh(n,e,r)}(n);if(i.toRoot())return ah(e.root,new kc([],{}),e,r,s);const o=function(t,n,r){if(t.isAbsolute)return new ch(e.root,!0,0);if(-1===r.snapshot._lastPathIndex)return new ch(r.snapshot._urlSegment,!0,0);const s=lh(t.commands[0])?0:1;return function(e,n,i){let o=r.snapshot._urlSegment,l=r.snapshot._lastPathIndex+s,a=t.numberOfDoubleDots;for(;a>l;){if(a-=l,!(o=o.parent))throw new Error("Invalid number of '../'");l=o.segments.length}return new ch(o,!1,l-a)}()}(i,0,t),l=o.processChildren?ph(o.segmentGroup,o.index,i.commands):dh(o.segmentGroup,o.index,i.commands);return ah(o.segmentGroup,l,e,r,s)}(a,this.currentUrlTree,t,c,u)}navigateByUrl(t,e={skipLocationChange:!1}){se()&&this.isNgZoneEnabled&&!Qs.isInAngularZone()&&this.console.warn("Navigation triggered outside Angular zone, did you forget to call 'ngZone.run()'?");const n=Ch(t)?t:this.parseUrl(t),r=this.urlHandlingStrategy.merge(n,this.rawUrlTree);return this.scheduleNavigation(r,"imperative",null,e)}navigate(t,e={skipLocationChange:!1}){return function(t){for(let e=0;e{const r=t[n];return null!=r&&(e[n]=r),e},{})}processNavigations(){this.navigations.subscribe(t=>{this.navigated=!0,this.lastSuccessfulId=t.id,this.events.next(new qu(t.id,this.serializeUrl(t.extractedUrl),this.serializeUrl(this.currentUrlTree))),this.lastSuccessfulNavigation=this.currentNavigation,this.currentNavigation=null,t.resolve(!0)},t=>{this.console.warn("Unhandled Navigation Error: ")})}scheduleNavigation(t,e,n,r){const s=this.getTransition();if(s&&"imperative"!==e&&"imperative"===s.source&&s.rawUrl.toString()===t.toString())return Promise.resolve(!0);if(s&&"hashchange"==e&&"popstate"===s.source&&s.rawUrl.toString()===t.toString())return Promise.resolve(!0);if(s&&"popstate"==e&&"hashchange"===s.source&&s.rawUrl.toString()===t.toString())return Promise.resolve(!0);let i=null,o=null;const l=new Promise((t,e)=>{i=t,o=e}),a=++this.navigationId;return this.setTransition({id:a,source:e,restoredState:n,currentUrlTree:this.currentUrlTree,currentRawUrl:this.rawUrlTree,rawUrl:t,extras:r,resolve:i,reject:o,promise:l,currentSnapshot:this.routerState.snapshot,currentRouterState:this.routerState}),l.catch(t=>Promise.reject(t))}setBrowserUrl(t,e,n,r){const s=this.urlSerializer.serialize(t);r=r||{},this.location.isCurrentPathEqualTo(s)||e?this.location.replaceState(s,"",Object.assign({},r,{navigationId:n})):this.location.go(s,"",Object.assign({},r,{navigationId:n}))}resetStateAndUrl(t,e,n){this.routerState=t,this.currentUrlTree=e,this.rawUrlTree=this.urlHandlingStrategy.merge(this.currentUrlTree,n),this.resetUrlToCurrentUrlTree()}resetUrlToCurrentUrlTree(){this.location.replaceState(this.urlSerializer.serialize(this.rawUrlTree),"",{navigationId:this.lastSuccessfulId})}}class hd{constructor(t,e,n,r,s){this.router=t,this.route=e,this.commands=[],null==n&&r.setAttribute(s.nativeElement,"tabindex","0")}set routerLink(t){this.commands=null!=t?Array.isArray(t)?t:[t]:[]}set preserveQueryParams(t){se()&&console&&console.warn&&console.warn("preserveQueryParams is deprecated!, use queryParamsHandling instead."),this.preserve=t}onClick(){const t={skipLocationChange:pd(this.skipLocationChange),replaceUrl:pd(this.replaceUrl)};return this.router.navigateByUrl(this.urlTree,t),!0}get urlTree(){return this.router.createUrlTree(this.commands,{relativeTo:this.route,queryParams:this.queryParams,fragment:this.fragment,preserveQueryParams:pd(this.preserve),queryParamsHandling:this.queryParamsHandling,preserveFragment:pd(this.preserveFragment)})}}class dd{constructor(t,e,n){this.router=t,this.route=e,this.locationStrategy=n,this.commands=[],this.subscription=t.events.subscribe(t=>{t instanceof qu&&this.updateTargetUrlAndHref()})}set routerLink(t){this.commands=null!=t?Array.isArray(t)?t:[t]:[]}set preserveQueryParams(t){se()&&console&&console.warn&&console.warn("preserveQueryParams is deprecated, use queryParamsHandling instead."),this.preserve=t}ngOnChanges(t){this.updateTargetUrlAndHref()}ngOnDestroy(){this.subscription.unsubscribe()}onClick(t,e,n,r){if(0!==t||e||n||r)return!0;if("string"==typeof this.target&&"_self"!=this.target)return!0;const s={skipLocationChange:pd(this.skipLocationChange),replaceUrl:pd(this.replaceUrl),state:this.state};return this.router.navigateByUrl(this.urlTree,s),!1}updateTargetUrlAndHref(){this.href=this.locationStrategy.prepareExternalUrl(this.router.serializeUrl(this.urlTree))}get urlTree(){return this.router.createUrlTree(this.commands,{relativeTo:this.route,queryParams:this.queryParams,fragment:this.fragment,preserveQueryParams:pd(this.preserve),queryParamsHandling:this.queryParamsHandling,preserveFragment:pd(this.preserveFragment)})}}function pd(t){return""===t||!!t}class fd{constructor(t,e,n,r,s){this.router=t,this.element=e,this.renderer=n,this.link=r,this.linkWithHref=s,this.classes=[],this.isActive=!1,this.routerLinkActiveOptions={exact:!1},this.subscription=t.events.subscribe(t=>{t instanceof qu&&this.update()})}ngAfterContentInit(){this.links.changes.subscribe(t=>this.update()),this.linksWithHrefs.changes.subscribe(t=>this.update()),this.update()}set routerLinkActive(t){const e=Array.isArray(t)?t:t.split(" ");this.classes=e.filter(t=>!!t)}ngOnChanges(t){this.update()}ngOnDestroy(){this.subscription.unsubscribe()}update(){this.links&&this.linksWithHrefs&&this.router.navigated&&Promise.resolve().then(()=>{const t=this.hasActiveLinks();this.isActive!==t&&(this.isActive=t,this.classes.forEach(e=>{t?this.renderer.addClass(this.element.nativeElement,e):this.renderer.removeClass(this.element.nativeElement,e)}))})}isLinkActive(t){return e=>t.isActive(e.urlTree,this.routerLinkActiveOptions.exact)}hasActiveLinks(){const t=this.isLinkActive(this.router);return this.link&&t(this.link)||this.linkWithHref&&t(this.linkWithHref)||this.links.some(t)||this.linksWithHrefs.some(t)}}class gd{constructor(){this.outlet=null,this.route=null,this.resolver=null,this.children=new md,this.attachRef=null}}class md{constructor(){this.contexts=new Map}onChildOutletCreated(t,e){const n=this.getOrCreateContext(t);n.outlet=e,this.contexts.set(t,n)}onChildOutletDestroyed(t){const e=this.getContext(t);e&&(e.outlet=null)}onOutletDeactivated(){const t=this.contexts;return this.contexts=new Map,t}onOutletReAttached(t){this.contexts=t}getOrCreateContext(t){let e=this.getContext(t);return e||(e=new gd,this.contexts.set(t,e)),e}getContext(t){return this.contexts.get(t)||null}}class vd{constructor(t,e,n,r,s){this.parentContexts=t,this.location=e,this.resolver=n,this.changeDetector=s,this.activated=null,this._activatedRoute=null,this.activateEvents=new Cs,this.deactivateEvents=new Cs,this.name=r||uc,t.onChildOutletCreated(this.name,this)}ngOnDestroy(){this.parentContexts.onChildOutletDestroyed(this.name)}ngOnInit(){if(!this.activated){const t=this.parentContexts.getContext(this.name);t&&t.route&&(t.attachRef?this.attach(t.attachRef,t.route):this.activateWith(t.route,t.resolver||null))}}get isActivated(){return!!this.activated}get component(){if(!this.activated)throw new Error("Outlet is not activated");return this.activated.instance}get activatedRoute(){if(!this.activated)throw new Error("Outlet is not activated");return this._activatedRoute}get activatedRouteData(){return this._activatedRoute?this._activatedRoute.snapshot.data:{}}detach(){if(!this.activated)throw new Error("Outlet is not activated");this.location.detach();const t=this.activated;return this.activated=null,this._activatedRoute=null,t}attach(t,e){this.activated=t,this._activatedRoute=e,this.location.insert(t.hostView)}deactivate(){if(this.activated){const t=this.component;this.activated.destroy(),this.activated=null,this._activatedRoute=null,this.deactivateEvents.emit(t)}}activateWith(t,e){if(this.isActivated)throw new Error("Cannot activate an already activated outlet");this._activatedRoute=t;const n=(e=e||this.resolver).resolveComponentFactory(t._futureSnapshot.routeConfig.component),r=this.parentContexts.getOrCreateContext(this.name).children,s=new _d(t,r,this.location.injector);this.activated=this.location.createComponent(n,this.location.length,s),this.changeDetector.markForCheck(),this.activateEvents.emit(this.activated.instance)}}class _d{constructor(t,e,n){this.route=t,this.childContexts=e,this.parent=n}get(t,e){return t===Jc?this.route:t===md?this.childContexts:this.parent.get(t,e)}}class bd{}class wd{preload(t,e){return e().pipe(ha(()=>Ul(null)))}}class yd{preload(t,e){return Ul(null)}}class Cd{constructor(t,e,n,r,s){this.router=t,this.injector=r,this.preloadingStrategy=s,this.loader=new sd(e,n,e=>t.triggerEvent(new ec(e)),e=>t.triggerEvent(new nc(e)))}setUpPreloading(){this.subscription=this.router.events.pipe(Ql(t=>t instanceof qu),Ta(()=>this.preload())).subscribe(()=>{})}preload(){const t=this.injector.get(Ke);return this.processRoutes(t,this.router.config)}ngOnDestroy(){this.subscription.unsubscribe()}processRoutes(t,e){const n=[];for(const r of e)if(r.loadChildren&&!r.canLoad&&r._loadedConfig){const t=r._loadedConfig;n.push(this.processRoutes(t.module,t.routes))}else r.loadChildren&&!r.canLoad?n.push(this.preloadConfig(t,r)):r.children&&n.push(this.processRoutes(t,r.children));return G(n).pipe(K(),H(t=>void 0))}preloadConfig(t,e){return this.preloadingStrategy.preload(e,()=>this.loader.load(t.injector,e).pipe(q(t=>(e._loadedConfig=t,this.processRoutes(t.module,t.routes)))))}}class Ed{constructor(t,e,n={}){this.router=t,this.viewportScroller=e,this.options=n,this.lastId=0,this.lastSource="imperative",this.restoredId=0,this.store={},n.scrollPositionRestoration=n.scrollPositionRestoration||"disabled",n.anchorScrolling=n.anchorScrolling||"disabled"}init(){"disabled"!==this.options.scrollPositionRestoration&&this.viewportScroller.setHistoryScrollRestoration("manual"),this.routerEventsSubscription=this.createScrollEvents(),this.scrollEventsSubscription=this.consumeScrollEvents()}createScrollEvents(){return this.router.events.subscribe(t=>{t instanceof Gu?(this.store[this.lastId]=this.viewportScroller.getScrollPosition(),this.lastSource=t.navigationTrigger,this.restoredId=t.restoredState?t.restoredState.navigationId:0):t instanceof qu&&(this.lastId=t.id,this.scheduleScrollEvent(t,this.router.parseUrl(t.urlAfterRedirects).fragment))})}consumeScrollEvents(){return this.router.events.subscribe(t=>{t instanceof lc&&(t.position?"top"===this.options.scrollPositionRestoration?this.viewportScroller.scrollToPosition([0,0]):"enabled"===this.options.scrollPositionRestoration&&this.viewportScroller.scrollToPosition(t.position):t.anchor&&"enabled"===this.options.anchorScrolling?this.viewportScroller.scrollToAnchor(t.anchor):"disabled"!==this.options.scrollPositionRestoration&&this.viewportScroller.scrollToPosition([0,0]))})}scheduleScrollEvent(t,e){this.router.triggerEvent(new lc(t,"popstate"===this.lastSource?this.store[this.restoredId]:null,e))}ngOnDestroy(){this.routerEventsSubscription&&this.routerEventsSubscription.unsubscribe(),this.scrollEventsSubscription&&this.scrollEventsSubscription.unsubscribe()}}const Sd=new kt("ROUTER_CONFIGURATION"),xd=new kt("ROUTER_FORROOT_GUARD"),Td=[pl,{provide:Rc,useClass:Nc},{provide:cd,useFactory:Dd,deps:[gi,Rc,md,pl,Nt,Ss,Fs,rd,Sd,[id,new ut],[ed,new ut]]},md,{provide:Jc,useFactory:Md,deps:[cd]},{provide:Ss,useClass:Ci},Cd,yd,wd,{provide:Sd,useValue:{enableTracing:!1}}];function kd(){return new ci("Router",cd)}class Ad{constructor(t,e){}static forRoot(t,e){return{ngModule:Ad,providers:[Td,Nd(t),{provide:xd,useFactory:Rd,deps:[[cd,new ut,new ht]]},{provide:Sd,useValue:e||{}},{provide:hl,useFactory:Id,deps:[ul,[new at(dl),new ut],Sd]},{provide:Ed,useFactory:Od,deps:[cd,Pl,Sd]},{provide:bd,useExisting:e&&e.preloadingStrategy?e.preloadingStrategy:yd},{provide:ci,multi:!0,useFactory:kd},[Pd,{provide:xs,multi:!0,useFactory:Vd,deps:[Pd]},{provide:Ld,useFactory:jd,deps:[Pd]},{provide:Ns,multi:!0,useExisting:Ld}]]}}static forChild(t){return{ngModule:Ad,providers:[Nd(t)]}}}function Od(t,e,n){return n.scrollOffset&&e.setOffset(n.scrollOffset),new Ed(t,e,n)}function Id(t,e,n={}){return n.useHash?new gl(t,e):new ml(t,e)}function Rd(t){if(t)throw new Error("RouterModule.forRoot() called twice. Lazy loaded modules should use RouterModule.forChild() instead.");return"guarded"}function Nd(t){return[{provide:Qt,multi:!0,useValue:t},{provide:rd,multi:!0,useValue:t}]}function Dd(t,e,n,r,s,i,o,l,a={},u,c){const h=new cd(null,e,n,r,s,i,o,yc(l));if(u&&(h.urlHandlingStrategy=u),c&&(h.routeReuseStrategy=c),a.errorHandler&&(h.errorHandler=a.errorHandler),a.malformedUriErrorHandler&&(h.malformedUriErrorHandler=a.malformedUriErrorHandler),a.enableTracing){const t=Ia();h.events.subscribe(e=>{t.logGroup(`Router Event: ${e.constructor.name}`),t.log(e.toString()),t.log(e),t.logGroupEnd()})}return a.onSameUrlNavigation&&(h.onSameUrlNavigation=a.onSameUrlNavigation),a.paramsInheritanceStrategy&&(h.paramsInheritanceStrategy=a.paramsInheritanceStrategy),a.urlUpdateStrategy&&(h.urlUpdateStrategy=a.urlUpdateStrategy),a.relativeLinkResolution&&(h.relativeLinkResolution=a.relativeLinkResolution),h}function Md(t){return t.routerState.root}class Pd{constructor(t){this.injector=t,this.initNavigation=!1,this.resultOfPreactivationDone=new k}appInitializer(){return this.injector.get(cl,Promise.resolve(null)).then(()=>{let t=null;const e=new Promise(e=>t=e),n=this.injector.get(cd),r=this.injector.get(Sd);if(this.isLegacyDisabled(r)||this.isLegacyEnabled(r))t(!0);else if("disabled"===r.initialNavigation)n.setUpLocationChangeListener(),t(!0);else{if("enabled"!==r.initialNavigation)throw new Error(`Invalid initialNavigation options: '${r.initialNavigation}'`);n.hooks.afterPreactivation=(()=>this.initNavigation?Ul(null):(this.initNavigation=!0,t(!0),this.resultOfPreactivationDone)),n.initialNavigation()}return e})}bootstrapListener(t){const e=this.injector.get(Sd),n=this.injector.get(Cd),r=this.injector.get(Ed),s=this.injector.get(cd),i=this.injector.get(gi);t===i.components[0]&&(this.isLegacyEnabled(e)?s.initialNavigation():this.isLegacyDisabled(e)&&s.setUpLocationChangeListener(),n.setUpPreloading(),r.init(),s.resetRootComponentType(i.componentTypes[0]),this.resultOfPreactivationDone.next(null),this.resultOfPreactivationDone.complete())}isLegacyEnabled(t){return"legacy_enabled"===t.initialNavigation||!0===t.initialNavigation||void 0===t.initialNavigation}isLegacyDisabled(t){return"legacy_disabled"===t.initialNavigation||!1===t.initialNavigation}}function Vd(t){return t.appInitializer.bind(t)}function jd(t){return t.bootstrapListener.bind(t)}const Ld=new kt("Router Initializer");var Fd=Zn({encapsulation:2,styles:[],data:{}});function Ud(t){return Xi(0,[(t()(),Li(0,16777216,null,null,1,"router-outlet",[],null,null,null,null,null)),ss(1,212992,null,0,vd,[md,On,Ze,[8,null],Cn],null,null)],function(t,e){t(e,1,0)},null)}function $d(t){return Xi(0,[(t()(),Li(0,0,null,null,1,"ng-component",[],null,null,null,Ud,Fd)),ss(1,49152,null,0,ac,[],null,null)],null,null)}var Hd=Mr("ng-component",ac,$d,{},{},[]);class zd{constructor(t,e){this.open=t,this.close=e||t}isManual(){return"manual"===this.open||"manual"===this.close}}const Bd={hover:["mouseover","mouseout"],focus:["focusin","focusout"]},Wd="undefined"!=typeof window&&window||{};let Gd;function qd(){return void 0===Wd||(void 0===Wd.__theme?Gd?"bs3"===Gd:"bs3"===(Gd=function(){if("undefined"==typeof document)return null;const t=document.createElement("span");t.innerText="test bs version",document.body.appendChild(t),t.classList.add("d-none");const e=t.getBoundingClientRect();return document.body.removeChild(t),e&&0===e.top?"bs4":"bs3"}()):"bs4"!==Wd.__theme)}"undefined"==typeof console||console;class Zd{constructor(t,e,n){this.nodes=t,this.viewRef=e,this.componentRef=n}}class Qd{constructor(t,e,n,r,s,i,o,l){this._viewContainerRef=t,this._renderer=e,this._elementRef=n,this._injector=r,this._componentFactoryResolver=s,this._ngZone=i,this._applicationRef=o,this._posService=l,this.onBeforeShow=new Cs,this.onShown=new Cs,this.onBeforeHide=new Cs,this.onHidden=new Cs,this._providers=[],this._isHiding=!1,this.containerDefaultSelector="body",this._listenOpts={},this._globalListener=Function.prototype}get isShown(){return!this._isHiding&&!!this._componentRef}attach(t){return this._componentFactory=this._componentFactoryResolver.resolveComponentFactory(t),this}to(t){return this.container=t||this.container,this}position(t){return this.attachment=t.attachment||this.attachment,this._elementRef=t.target||this._elementRef,this}provide(t){return this._providers.push(t),this}show(t={}){if(this._subscribePositioning(),this._innerComponent=null,!this._componentRef){this.onBeforeShow.emit(),this._contentRef=this._getContentRef(t.content,t.context,t.initialState);const e=Nt.create({providers:this._providers,parent:this._injector});this._componentRef=this._componentFactory.create(e,this._contentRef.nodes),this._applicationRef.attachView(this._componentRef.hostView),this.instance=this._componentRef.instance,Object.assign(this._componentRef.instance,t),this.container instanceof tn&&this.container.nativeElement.appendChild(this._componentRef.location.nativeElement),"string"==typeof this.container&&"undefined"!=typeof document&&(document.querySelector(this.container)||document.querySelector(this.containerDefaultSelector)).appendChild(this._componentRef.location.nativeElement),!this.container&&this._elementRef&&this._elementRef.nativeElement.parentElement&&this._elementRef.nativeElement.parentElement.appendChild(this._componentRef.location.nativeElement),this._contentRef.componentRef&&(this._innerComponent=this._contentRef.componentRef.instance,this._contentRef.componentRef.changeDetectorRef.markForCheck(),this._contentRef.componentRef.changeDetectorRef.detectChanges()),this._componentRef.changeDetectorRef.markForCheck(),this._componentRef.changeDetectorRef.detectChanges(),this.onShown.emit(this._componentRef.instance)}return this._registerOutsideClick(),this._componentRef}hide(){if(!this._componentRef)return this;this._posService.deletePositionElement(this._componentRef.location),this.onBeforeHide.emit(this._componentRef.instance);const t=this._componentRef.location.nativeElement;return t.parentNode.removeChild(t),this._contentRef.componentRef&&this._contentRef.componentRef.destroy(),this._componentRef.destroy(),this._viewContainerRef&&this._contentRef.viewRef&&this._viewContainerRef.remove(this._viewContainerRef.indexOf(this._contentRef.viewRef)),this._contentRef.viewRef&&this._contentRef.viewRef.destroy(),this._contentRef=null,this._componentRef=null,this._removeGlobalListener(),this.onHidden.emit(),this}toggle(){this.isShown?this.hide():this.show()}dispose(){this.isShown&&this.hide(),this._unsubscribePositioning(),this._unregisterListenersFn&&this._unregisterListenersFn()}listen(t){this.triggers=t.triggers||this.triggers,this._listenOpts.outsideClick=t.outsideClick,this._listenOpts.outsideEsc=t.outsideEsc,t.target=t.target||this._elementRef.nativeElement;const e=this._listenOpts.hide=(()=>t.hide?t.hide():void this.hide()),n=this._listenOpts.show=(e=>{t.show?t.show(e):this.show(e),e()});return this._unregisterListenersFn=function(t,e){const n=function(t,n=Bd){const r=(e.triggers||"").trim();if(0===r.length)return[];const s=r.split(/\s+/).map(t=>t.split(":")).map(t=>{const e=n[t[0]]||t;return new zd(e[0],e[1])}),i=s.filter(t=>t.isManual());if(i.length>1)throw new Error("Triggers parse error: only one manual trigger is allowed");if(1===i.length&&s.length>1)throw new Error("Triggers parse error: manual trigger can't be mixed with other triggers");return s}(),r=e.target;if(1===n.length&&n[0].isManual())return Function.prototype;const s=[],i=[],o=()=>{i.forEach(t=>s.push(t())),i.length=0};return n.forEach(n=>{const l=n.open===n.close,a=l?e.toggle:e.show;l||i.push(()=>t.listen(r,n.close,e.hide)),s.push(t.listen(r,n.open,()=>a(o)))}),()=>{s.forEach(t=>t())}}(this._renderer,{target:t.target,triggers:t.triggers,show:n,hide:e,toggle:t=>{this.isShown?e():n(t)}}),this}_removeGlobalListener(){this._globalListener&&(this._globalListener(),this._globalListener=null)}attachInline(t,e){return this._inlineViewRef=t.createEmbeddedView(e),this}_registerOutsideClick(){if(this._componentRef&&this._componentRef.location){if(this._listenOpts.outsideClick){const t=this._componentRef.location.nativeElement;setTimeout(()=>{this._globalListener=function(t,e){return e.outsideClick?t.listen("document","click",t=>{e.target&&e.target.contains(t.target)||e.targets&&e.targets.some(e=>e.contains(t.target))||e.hide()}):Function.prototype}(this._renderer,{targets:[t,this._elementRef.nativeElement],outsideClick:this._listenOpts.outsideClick,hide:()=>this._listenOpts.hide()})})}var t;this._listenOpts.outsideEsc&&(this._globalListener=(t={targets:[this._componentRef.location.nativeElement,this._elementRef.nativeElement],outsideEsc:this._listenOpts.outsideEsc,hide:()=>this._listenOpts.hide()}).outsideEsc?this._renderer.listen("document","keyup.esc",e=>{t.target&&t.target.contains(e.target)||t.targets&&t.targets.some(t=>t.contains(e.target))||t.hide()}):Function.prototype)}}getInnerComponent(){return this._innerComponent}_subscribePositioning(){!this._zoneSubscription&&this.attachment&&(this.onShown.subscribe(()=>{this._posService.position({element:this._componentRef.location,target:this._elementRef,attachment:this.attachment,appendToBody:"body"===this.container})}),this._zoneSubscription=this._ngZone.onStable.subscribe(()=>{this._componentRef&&this._posService.calcPosition()}))}_unsubscribePositioning(){this._zoneSubscription&&(this._zoneSubscription.unsubscribe(),this._zoneSubscription=null)}_getContentRef(t,e,n){if(!t)return new Zd([]);if(t instanceof kn){if(this._viewContainerRef){const n=this._viewContainerRef.createEmbeddedView(t,e);return n.markForCheck(),new Zd([n.rootNodes],n)}const n=t.createEmbeddedView({});return this._applicationRef.attachView(n),new Zd([n.rootNodes],n)}if("function"==typeof t){const e=this._componentFactoryResolver.resolveComponentFactory(t),r=Nt.create({providers:this._providers,parent:this._injector}),s=e.create(r);return Object.assign(s.instance,n),this._applicationRef.attachView(s.hostView),new Zd([[s.location.nativeElement]],s.hostView,s)}return new Zd([[this._renderer.createText(`${t}`)]])}}class Yd{constructor(t,e,n,r,s){this._componentFactoryResolver=t,this._ngZone=e,this._injector=n,this._posService=r,this._applicationRef=s}createLoader(t,e,n){return new Qd(e,n,t,this._injector,this._componentFactoryResolver,this._ngZone,this._applicationRef,this._posService)}}function Kd(t,e,n,s){return r(n)&&(s=n,n=void 0),s?Kd(t,e,n).pipe(H(t=>a(t)?s(...t):s(t))):new y(r=>{!function t(e,n,r,s,i){let o;if(function(t){return t&&"function"==typeof t.addEventListener&&"function"==typeof t.removeEventListener}(e)){const t=e;e.addEventListener(n,r,i),o=(()=>t.removeEventListener(n,r,i))}else if(function(t){return t&&"function"==typeof t.on&&"function"==typeof t.off}(e)){const t=e;e.on(n,r),o=(()=>t.off(n,r))}else if(function(t){return t&&"function"==typeof t.addListener&&"function"==typeof t.removeListener}(e)){const t=e;e.addListener(n,r),o=(()=>t.removeListener(n,r))}else{if(!e||!e.length)throw new TypeError("Invalid event target");for(let o=0,l=e.length;o1?Array.prototype.slice.call(arguments):t)},r,n)})}class Xd extends d{constructor(t,e){super()}schedule(t,e=0){return this}}class Jd extends Xd{constructor(t,e){super(t,e),this.scheduler=t,this.work=e,this.pending=!1}schedule(t,e=0){if(this.closed)return this;this.state=t;const n=this.id,r=this.scheduler;return null!=n&&(this.id=this.recycleAsyncId(r,n,e)),this.pending=!0,this.delay=e,this.id=this.id||this.requestAsyncId(r,this.id,e),this}requestAsyncId(t,e,n=0){return setInterval(t.flush.bind(t,this),n)}recycleAsyncId(t,e,n=0){if(null!==n&&this.delay===n&&!1===this.pending)return e;clearInterval(e)}execute(t,e){if(this.closed)return new Error("executing a cancelled action");this.pending=!1;const n=this._execute(t,e);if(n)return n;!1===this.pending&&null!=this.id&&(this.id=this.recycleAsyncId(this.scheduler,this.id,null))}_execute(t,e){let n=!1,r=void 0;try{this.work(t)}catch(s){n=!0,r=!!s&&s||new Error(s)}if(n)return this.unsubscribe(),r}_unsubscribe(){const t=this.id,e=this.scheduler,n=e.actions,r=n.indexOf(this);this.work=null,this.state=null,this.pending=!1,this.scheduler=null,-1!==r&&n.splice(r,1),null!=t&&(this.id=this.recycleAsyncId(e,t,null)),this.delay=null}}class tp extends Jd{constructor(t,e){super(t,e),this.scheduler=t,this.work=e}requestAsyncId(t,e,n=0){return null!==n&&n>0?super.requestAsyncId(t,e,n):(t.actions.push(this),t.scheduled||(t.scheduled=requestAnimationFrame(()=>t.flush(null))))}recycleAsyncId(t,e,n=0){if(null!==n&&n>0||null===n&&this.delay>0)return super.recycleAsyncId(t,e,n);0===t.actions.length&&(cancelAnimationFrame(e),t.scheduled=void 0)}}const ep=function(){class t{constructor(e,n=t.now){this.SchedulerAction=e,this.now=n}schedule(t,e=0,n){return new this.SchedulerAction(this,t).schedule(n,e)}}return t.now=(()=>Date.now()),t}();class np extends ep{constructor(t,e=ep.now){super(t,()=>np.delegate&&np.delegate!==this?np.delegate.now():e()),this.actions=[],this.active=!1,this.scheduled=void 0}schedule(t,e=0,n){return np.delegate&&np.delegate!==this?np.delegate.schedule(t,e,n):super.schedule(t,e,n)}flush(t){const{actions:e}=this;if(this.active)return void e.push(t);let n;this.active=!0;do{if(n=t.execute(t.state,t.delay))break}while(t=e.shift());if(this.active=!1,n){for(;t=e.shift();)t.unsubscribe();throw n}}}class rp extends np{flush(t){this.active=!0,this.scheduled=void 0;const{actions:e}=this;let n,r=-1,s=e.length;t=t||e.shift();do{if(n=t.execute(t.state,t.delay))break}while(++rObject.assign({key:t},a[t],{area:Sp(a[t])})).sort((t,e)=>e.area-t.area);let c=u.filter(({width:t,height:e})=>t>=n.clientWidth&&e>=n.clientHeight);const h=(c=c.filter(t=>s.some(e=>e===t.key))).length>0?c[0].key:u[0].key,d=t.split(" ")[1];return n.className=n.className.replace(/bs-tooltip-auto/g,`bs-tooltip-${h}`),h+(d?`-${d}`:"")}function Tp(t){const e=t.ownerDocument.defaultView.getComputedStyle(t),n=parseFloat(e.marginTop||0)+parseFloat(e.marginBottom||0),r=parseFloat(e.marginLeft||0)+parseFloat(e.marginRight||0);return{width:Number(t.offsetWidth)+r,height:Number(t.offsetHeight)+n}}function kp(t,e,n=null){return yp(e,n?Cp(t):fp(t,e),n)}function Ap(t,e,n){const r=n.split(" ")[0],s=Tp(t),i={width:s.width,height:s.height},o=-1!==["right","left"].indexOf(r),l=o?"top":"left",a=o?"left":"top",u=o?"height":"width",c=o?"width":"height";return i[l]=e[l]+e[u]/2-s[u]/2,i[a]=r===a?e[a]-s[c]:e[function(t){const e={left:"right",right:"left",bottom:"top",top:"bottom"};return a.replace(/left|right|bottom|top/g,t=>e[t])}()],i}function Op(t,e){return t&&t.modifiers&&t.modifiers[e]&&t.modifiers[e].enabled}function Ip(t,e,n){Object.keys(e).forEach(r=>{let s="";-1!==["width","height","top","right","bottom","left"].indexOf(r)&&function(t){return""!==t&&!isNaN(parseFloat(t))&&isFinite(t)}(e[r])&&(s="px"),n?n.setStyle(t,r,`${String(e[r])}${s}`):t.style[r]=String(e[r])+s})}function Rp(t){let e=t.offsets.target;const n=t.instance.target.querySelector(".arrow");if(!n)return t;const r=-1!==["left","right"].indexOf(t.placement),s=r?"height":"width",i=r?"Top":"Left",o=i.toLowerCase(),l=r?"left":"top",a=r?"bottom":"right",u=Tp(n)[s];t.offsets.host[a]-ue[a]&&(e[o]+=Number(t.offsets.host[o])+Number(u)-Number(e[a])),e=bp(e);const c=Number(t.offsets.host[o])+Number(t.offsets.host[s]/2-u/2),h=ip(t.instance.target),d=parseFloat(h[`margin${i}`]),p=parseFloat(h[`border${i}Width`]);let f=c-e[o]-d-p;return f=Math.max(Math.min(e[s]-u,f),0),t.offsets.arrow={[o]:Math.round(f),[l]:""},t.instance.arrow=n,t}function Np(t){if(t.offsets.target=bp(t.offsets.target),!Op(t.options,"flip"))return t.offsets.target=Object.assign({},t.offsets.target,Ap(t.instance.target,t.offsets.host,t.placement)),t;const e=Ep(t.instance.target,t.instance.host,0,"viewport",!1);let n=t.placement.split(" ")[0],r=t.placement.split(" ")[1]||"";const s=xp("auto",t.offsets.host,t.instance.target,t.instance.host,t.options.allowedPositions),i=[n,s];return i.forEach((s,o)=>{if(n!==s||i.length===o+1)return t;const l="left"===(n=t.placement.split(" ")[0])&&Math.floor(t.offsets.target.right)>Math.floor(t.offsets.host.left)||"right"===n&&Math.floor(t.offsets.target.left)Math.floor(t.offsets.host.top)||"bottom"===n&&Math.floor(t.offsets.target.top)Math.floor(e.right),c=Math.floor(t.offsets.target.top)Math.floor(e.bottom),d="left"===n&&a||"right"===n&&u||"top"===n&&c||"bottom"===n&&h,p=-1!==["top","bottom"].indexOf(n),f=p&&"left"===r&&a||p&&"right"===r&&u||!p&&"left"===r&&c||!p&&"right"===r&&h;(l||d||f)&&((l||d)&&(n=i[o+1]),f&&(r=function(t){return"right"===t?"left":"left"===t?"right":t}(r)),t.placement=n+(r?` ${r}`:""),t.offsets.target=Object.assign({},t.offsets.target,Ap(t.instance.target,t.offsets.host,t.placement)))}),t}function Dp(t){if(!Op(t.options,"preventOverflow"))return t;const e="transform",n=t.instance.target.style,{top:r,left:s,[e]:i}=n;n.top="",n.left="",n[e]="";const o=Ep(t.instance.target,t.instance.host,0,"scrollParent",!1);n.top=r,n.left=s,n[e]=i;const l={primary(e){let n=t.offsets.target[e];return t.offsets.target[e]o[e]&&(r=Math.min(t.offsets.target[n],o[e]-("right"===e?t.offsets.target.width:t.offsets.target.height))),{[n]:r}}};let a;return["left","right","top","bottom"].forEach(e=>{a=-1!==["left","top"].indexOf(e)?"primary":"secondary",t.offsets.target=Object.assign({},t.offsets.target,l[a](e))}),t}function Mp(t){const e=t.placement,n=e.split(" ")[0],r=e.split(" ")[1];if(r){const{host:e,target:s}=t.offsets,i=-1!==["bottom","top"].indexOf(n),o=i?"left":"top",l=i?"width":"height";t.offsets.target=Object.assign({},s,{start:{[o]:e[o]},end:{[o]:e[o]+e[l]-s[l]}}[r])}return t}class Pp{position(t,e,n=!0){return this.offset(t,e,!1)}offset(t,e,n=!0){return kp(e,t)}positionElements(t,e,n,r,s){return[Np,Mp,Dp,Rp].reduce((t,e)=>e(t),function(t,e,n,r){const s=kp(t,e);n.match(/^(auto)*\s*(left|right|top|bottom)*$/)||n.match(/^(left|right|top|bottom)*\s*(start|end)*$/)||(n="auto");const i=!!n.match(/auto/g);let o=n.match(/auto\s(left|right|top|bottom)/)?n.split(" ")[1]||"auto":n;return{options:r,instance:{target:t,host:e,arrow:null},offsets:{target:Ap(t,s,o),host:s,arrow:null},positionFixed:!1,placement:o=xp(o,s,t,e,r?r.allowedPositions:void 0),placementAuto:i}}(e,t,n,s))}}const Vp=new Pp;class jp{constructor(t,e){this.update$$=new k,this.positionElements=new Map,function(t){return t===Dl}(e)&&X(Kd(window,"scroll"),Kd(window,"resize"),Ul(0,sp),this.update$$).subscribe(()=>{this.positionElements.forEach(e=>{!function(t,e,n,r,s,i){const o=Vp.positionElements(t,e,n,r,s),l=function(t){return{width:t.offsets.target.width,height:t.offsets.target.height,left:Math.floor(t.offsets.target.left),top:Math.round(t.offsets.target.top),bottom:Math.round(t.offsets.target.bottom),right:Math.floor(t.offsets.target.right)}}(o);Ip(e,{"will-change":"transform",top:"0px",left:"0px",transform:`translate3d(${l.left}px, ${l.top}px, 0px)`},i),o.instance.arrow&&Ip(o.instance.arrow,o.offsets.arrow,i),function(t,e){const n=t.instance.target;let r=n.className;t.placementAuto&&(-1!==(r=(r=(r=r.replace(/bs-popover-auto/g,`bs-popover-${t.placement}`)).replace(/bs-tooltip-auto/g,`bs-tooltip-${t.placement}`)).replace(/\sauto/g,` ${t.placement}`)).indexOf("popover")&&-1===r.indexOf("popover-auto")&&(r+=" popover-auto"),-1!==r.indexOf("tooltip")&&-1===r.indexOf("tooltip-auto")&&(r+=" tooltip-auto")),r=r.replace(/left|right|top|bottom/g,`${t.placement.split(" ")[0]}`),e?e.setAttribute(n,"class",r):n.className=r}(o,i)}(Lp(e.target),Lp(e.element),e.attachment,e.appendToBody,this.options,t.createRenderer(null,null))})})}position(t){this.addPositionElement(t)}addPositionElement(t){this.positionElements.set(Lp(t.element),t)}calcPosition(){this.update$$.next()}deletePositionElement(t){this.positionElements.delete(Lp(t))}setOptions(t){this.options=t}}function Lp(t){return"string"==typeof t?document.querySelector(t):t instanceof tn?t.nativeElement:t}class Fp{constructor(){this.autoClose=!0,this.insideClick=!1}}class Up{constructor(){this.direction="down",this.isOpenChange=new Cs,this.isDisabledChange=new Cs,this.toggleClick=new Cs,this.dropdownMenu=new Promise(t=>{this.resolveDropdownMenu=t})}}class $p{constructor(t,e,n,r){this._state=t,this.cd=e,this._renderer=n,this._element=r,this.isOpen=!1,this._subscription=t.isOpenChange.subscribe(t=>{this.isOpen=t;const e=this._element.nativeElement.querySelector(".dropdown-menu");e&&!qd()&&(this._renderer.addClass(e,"show"),e.classList.contains("dropdown-menu-right")&&(this._renderer.setStyle(e,"left","auto"),this._renderer.setStyle(e,"right","0")),"up"===this.direction&&(this._renderer.setStyle(e,"top","auto"),this._renderer.setStyle(e,"transform","translateY(-101%)"))),this.cd.markForCheck(),this.cd.detectChanges()})}get direction(){return this._state.direction}_contains(t){return this._element.nativeElement.contains(t)}ngOnDestroy(){this._subscription.unsubscribe()}}class Hp{constructor(t,e,n,r,s,i){this._elementRef=t,this._renderer=e,this._viewContainerRef=n,this._cis=r,this._config=s,this._state=i,this._isInlineOpen=!1,this._subscriptions=[],this._isInited=!1,this._state.autoClose=this._config.autoClose,this._state.insideClick=this._config.insideClick,this._dropdown=this._cis.createLoader(this._elementRef,this._viewContainerRef,this._renderer).provide({provide:Up,useValue:this._state}),this.onShown=this._dropdown.onShown,this.onHidden=this._dropdown.onHidden,this.isOpenChange=this._state.isOpenChange}set autoClose(t){this._state.autoClose=t}get autoClose(){return this._state.autoClose}set insideClick(t){this._state.insideClick=t}get insideClick(){return this._state.insideClick}set isDisabled(t){this._isDisabled=t,this._state.isDisabledChange.emit(t),t&&this.hide()}get isDisabled(){return this._isDisabled}get isOpen(){return this._showInline?this._isInlineOpen:this._dropdown.isShown}set isOpen(t){t?this.show():this.hide()}get isBs4(){return!qd()}get _showInline(){return!this.container}ngOnInit(){this._isInited||(this._isInited=!0,this._dropdown.listen({outsideClick:!1,triggers:this.triggers,show:()=>this.show()}),this._subscriptions.push(this._state.toggleClick.subscribe(t=>this.toggle(t))),this._subscriptions.push(this._state.isDisabledChange.pipe(Ql(t=>t)).subscribe(t=>this.hide())))}show(){if(!this.isOpen&&!this.isDisabled)return this._showInline?(this._inlinedMenu||this._state.dropdownMenu.then(t=>{this._dropdown.attachInline(t.viewContainer,t.templateRef),this._inlinedMenu=this._dropdown._inlineViewRef,this.addBs4Polyfills()}).catch(),this.addBs4Polyfills(),this._isInlineOpen=!0,this.onShown.emit(!0),void this._state.isOpenChange.emit(!0)):void this._state.dropdownMenu.then(t=>{const e=this.dropup||void 0!==this.dropup&&this.dropup;this._state.direction=e?"up":"down";const n=this.placement||(e?"top start":"bottom start");this._dropdown.attach($p).to(this.container).position({attachment:n}).show({content:t.templateRef,placement:n}),this._state.isOpenChange.emit(!0)}).catch()}hide(){this.isOpen&&(this._showInline?(this.removeShowClass(),this.removeDropupStyles(),this._isInlineOpen=!1,this.onHidden.emit(!0)):this._dropdown.hide(),this._state.isOpenChange.emit(!1))}toggle(t){return this.isOpen||!t?this.hide():this.show()}_contains(t){return this._elementRef.nativeElement.contains(t.target)||this._dropdown.instance&&this._dropdown.instance._contains(t.target)}ngOnDestroy(){for(const t of this._subscriptions)t.unsubscribe();this._dropdown.dispose()}addBs4Polyfills(){qd()||(this.addShowClass(),this.checkRightAlignment(),this.addDropupStyles())}addShowClass(){this._inlinedMenu&&this._inlinedMenu.rootNodes[0]&&this._renderer.addClass(this._inlinedMenu.rootNodes[0],"show")}removeShowClass(){this._inlinedMenu&&this._inlinedMenu.rootNodes[0]&&this._renderer.removeClass(this._inlinedMenu.rootNodes[0],"show")}checkRightAlignment(){if(this._inlinedMenu&&this._inlinedMenu.rootNodes[0]){const t=this._inlinedMenu.rootNodes[0].classList.contains("dropdown-menu-right");this._renderer.setStyle(this._inlinedMenu.rootNodes[0],"left",t?"auto":"0"),this._renderer.setStyle(this._inlinedMenu.rootNodes[0],"right",t?"0":"auto")}}addDropupStyles(){this._inlinedMenu&&this._inlinedMenu.rootNodes[0]&&(this._renderer.setStyle(this._inlinedMenu.rootNodes[0],"top",this.dropup?"auto":"100%"),this._renderer.setStyle(this._inlinedMenu.rootNodes[0],"transform",this.dropup?"translateY(-101%)":"translateY(0)"),this._renderer.setStyle(this._inlinedMenu.rootNodes[0],"bottom","auto"))}removeDropupStyles(){this._inlinedMenu&&this._inlinedMenu.rootNodes[0]&&(this._renderer.removeStyle(this._inlinedMenu.rootNodes[0],"top"),this._renderer.removeStyle(this._inlinedMenu.rootNodes[0],"transform"),this._renderer.removeStyle(this._inlinedMenu.rootNodes[0],"bottom"))}}class zp{constructor(t,e,n){t.resolveDropdownMenu({templateRef:n,viewContainer:e})}}class Bp{constructor(t,e,n,r,s){this._changeDetectorRef=t,this._dropdown=e,this._element=n,this._renderer=r,this._state=s,this.isDisabled=null,this._subscriptions=[],this._subscriptions.push(this._state.isOpenChange.subscribe(t=>{this.isOpen=t,t?(this._documentClickListener=this._renderer.listen("document","click",t=>{!this._state.autoClose||2===t.button||this._element.nativeElement.contains(t.target)||this._state.insideClick&&this._dropdown._contains(t)||(this._state.toggleClick.emit(!1),this._changeDetectorRef.detectChanges())}),this._escKeyUpListener=this._renderer.listen(this._element.nativeElement,"keyup.esc",()=>{this._state.autoClose&&(this._state.toggleClick.emit(!1),this._changeDetectorRef.detectChanges())})):(this._documentClickListener(),this._escKeyUpListener())})),this._subscriptions.push(this._state.isDisabledChange.subscribe(t=>this.isDisabled=t||null))}onClick(){this.isDisabled||this._state.toggleClick.emit(!0)}ngOnDestroy(){this._documentClickListener&&this._documentClickListener(),this._escKeyUpListener&&this._escKeyUpListener();for(const t of this._subscriptions)t.unsubscribe()}}class Wp{static forRoot(t){return{ngModule:Wp,providers:[Yd,jp,Up,{provide:Fp,useValue:t||{autoClose:!0,insideClick:!1}}]}}}var Gp=Zn({encapsulation:2,styles:[],data:{}});function qp(t){return Xi(2,[(t()(),Li(0,0,null,null,1,"div",[],[[2,"dropup",null],[2,"dropdown",null],[2,"show",null],[2,"open",null]],null,null,null,null)),{nodeIndex:-1,parent:null,renderParent:null,bindingIndex:-1,outputIndex:-1,checkIndex:-1,flags:8,childFlags:0,directChildFlags:0,childMatchedQueries:0,matchedQueries:{},matchedQueryIds:0,references:{},ngContentIndex:null,childCount:0,bindings:[],bindingFlags:0,outputs:[],element:null,provider:null,text:null,query:null,ngContent:{index:0}}],null,function(t,e){var n=e.component;t(e,0,0,"up"===n.direction,"down"===n.direction,n.isOpen,n.isOpen)})}function Zp(t){return Xi(0,[(t()(),Li(0,0,null,null,1,"bs-dropdown-container",[["style","display:block;position: absolute;"]],null,null,null,qp,Gp)),ss(1,180224,null,0,$p,[Up,Cn,on,tn],null,null)],null,null)}var Qp=Mr("bs-dropdown-container",$p,Zp,{},{},["*"]);function Yp(t){return(Yp="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function Kp(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function Xp(){return(Xp=Object.assign||function(t){for(var e=1;e"===e[0]&&(e=e.substring(1)),t)try{if(t.matches)return t.matches(e);if(t.msMatchesSelector)return t.msMatchesSelector(e);if(t.webkitMatchesSelector)return t.webkitMatchesSelector(e)}catch(n){return!1}return!1}}function hf(t){return t.host&&t!==document&&t.host.nodeType?t.host:t.parentNode}function df(t,e,n,r){if(t){n=n||document;do{if(null!=e&&(">"===e[0]?t.parentNode===n&&cf(t,e):cf(t,e))||r&&t===n)return t;if(t===n)break}while(t=hf(t))}return null}var pf,ff=/\s+/g;function gf(t,e,n){if(t&&e)if(t.classList)t.classList[n?"add":"remove"](e);else{var r=(" "+t.className+" ").replace(ff," ").replace(" "+e+" "," ");t.className=(r+(n?" "+e:"")).replace(ff," ")}}function mf(t,e,n){var r=t&&t.style;if(r){if(void 0===n)return document.defaultView&&document.defaultView.getComputedStyle?n=document.defaultView.getComputedStyle(t,""):t.currentStyle&&(n=t.currentStyle),void 0===e?n:n[e];e in r||-1!==e.indexOf("webkit")||(e="-webkit-"+e),r[e]=n+("string"==typeof n?"":"px")}}function vf(t,e){var n="";do{var r=mf(t,"transform");r&&"none"!==r&&(n=r+" "+n)}while(!e&&(t=t.parentNode));var s=window.DOMMatrix||window.WebKitCSSMatrix||window.CSSMatrix;return s&&new s(n)}function _f(t,e,n){if(t){var r=t.getElementsByTagName(e),s=0,i=r.length;if(n)for(;s=o:i<=o))return s;if(s===bf())break;s=Tf(s,!1)}return!1}function Cf(t,e,n){for(var r=0,s=0,i=t.children;s2&&void 0!==arguments[2]?arguments[2]:{},r=n.evt,s=function(t,e){if(null==t)return{};var n,r,s=function(t,e){if(null==t)return{};var n,r,s={},i=Object.keys(t);for(r=0;r=0||(s[n]=t[n]);return s}(t,e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(t,n)&&(s[n]=t[n])}return s}(n,["evt"]);Pf.pluginEvent.bind(Eg)(t,e,Jp({dragEl:Lf,parentEl:Ff,ghostEl:Uf,rootEl:$f,nextEl:Hf,lastDownEl:zf,cloneEl:Bf,cloneHidden:Wf,dragStarted:tg,putSortable:Kf,activeSortable:Eg.active,originalEvent:r,oldIndex:Gf,oldDraggableIndex:Zf,newIndex:qf,newDraggableIndex:Qf,hideGhostForTarget:bg,unhideGhostForTarget:wg,cloneNowHidden:function(){Wf=!0},cloneNowShown:function(){Wf=!1},dispatchSortableEvent:function(t){jf({sortable:e,name:t,originalEvent:r})}},s))};function jf(t){!function(t){var e,n=t.sortable,r=t.rootEl,s=t.name,i=t.targetEl,o=t.cloneEl,l=t.toEl,a=t.fromEl,u=t.oldIndex,c=t.newIndex,h=t.oldDraggableIndex,d=t.newDraggableIndex,p=t.originalEvent,f=t.putSortable,g=t.eventOptions,m=(n=n||r[Rf]).options,v="on"+s.charAt(0).toUpperCase()+s.substr(1);!window.CustomEvent||ef||nf?(e=document.createEvent("Event")).initEvent(s,!0,!0):e=new CustomEvent(s,{bubbles:!0,cancelable:!0}),e.to=l||r,e.from=a||r,e.item=i||r,e.clone=o,e.oldIndex=u,e.newIndex=c,e.oldDraggableIndex=h,e.newDraggableIndex=d,e.originalEvent=p,e.pullMode=f?f.lastPutMode:void 0;var _=Jp({},g,Pf.getEventOptions(s,n));for(var b in _)e[b]=_[b];r&&r.dispatchEvent(e),m[v]&&m[v].call(n,e)}(Jp({putSortable:Kf,cloneEl:Bf,targetEl:Lf,rootEl:$f,oldIndex:Gf,oldDraggableIndex:Zf,newIndex:qf,newDraggableIndex:Qf},t))}if("undefined"==typeof window||!window.document)throw new Error("Sortable.js requires a window with a document");var Lf,Ff,Uf,$f,Hf,zf,Bf,Wf,Gf,qf,Zf,Qf,Yf,Kf,Xf,Jf,tg,eg,ng,rg,sg,ig=!1,og=!1,lg=[],ag=!1,ug=!1,cg=[],hg=!1,dg=[],pg=of,fg=nf||ef?"cssFloat":"float",gg="draggable"in document.createElement("div"),mg=function(){if(ef)return!1;var t=document.createElement("x");return t.style.cssText="pointer-events:auto","auto"===t.style.pointerEvents}(),vg=function(t,e){var n=mf(t),r=parseInt(n.width)-parseInt(n.paddingLeft)-parseInt(n.paddingRight)-parseInt(n.borderLeftWidth)-parseInt(n.borderRightWidth),s=Cf(t,0,e),i=Cf(t,1,e),o=s&&mf(s),l=i&&mf(i),a=o&&parseInt(o.marginLeft)+parseInt(o.marginRight)+wf(s).width,u=l&&parseInt(l.marginLeft)+parseInt(l.marginRight)+wf(i).width;return"flex"===n.display?"column"===n.flexDirection||"column-reverse"===n.flexDirection?"vertical":"horizontal":"grid"===n.display?n.gridTemplateColumns.split(" ").length<=1?"vertical":"horizontal":s&&"none"!==o.float?!i||"both"!==l.clear&&l.clear!==("left"===o.float?"left":"right")?"horizontal":"vertical":s&&("block"===o.display||"flex"===o.display||"table"===o.display||"grid"===o.display||a>=r&&"none"===n[fg]||i&&"none"===n[fg]&&a+u>r)?"vertical":"horizontal"},_g=function(t){function e(t,n){return function(r,s,i,o){if(null==t&&(n||r.options.group.name&&s.options.group.name&&r.options.group.name===s.options.group.name))return!0;if(null==t||!1===t)return!1;if(n&&"clone"===t)return t;if("function"==typeof t)return e(t(r,s,i,o),n)(r,s,i,o);var l=(n?r:s).options.group.name;return!0===t||"string"==typeof t&&t===l||t.join&&t.indexOf(l)>-1}}var n={},r=t.group;r&&"object"==Yp(r)||(r={name:r}),n.name=r.name,n.checkPull=e(r.pull,!0),n.checkPut=e(r.put),n.revertClone=r.revertClone,t.group=n},bg=function(){!mg&&Uf&&mf(Uf,"display","none")},wg=function(){!mg&&Uf&&mf(Uf,"display","")};document.addEventListener("click",function(t){if(og)return t.preventDefault(),t.stopPropagation&&t.stopPropagation(),t.stopImmediatePropagation&&t.stopImmediatePropagation(),og=!1,!1},!0);var yg=function(t){if(Lf){var e=function(t,e){for(var n in lg)if(!Ef(lg[n])){var r=wf(lg[n]),s=lg[n][Rf].options.emptyInsertThreshold;if(s&&t>=r.left-s&&t<=r.right+s&&e>=r.top-s&&e<=r.bottom+s)return lg[n]}}((t=t.touches?t.touches[0]:t).clientX,t.clientY);if(e){var n={};for(var r in t)n[r]=t[r];n.target=n.rootEl=e,n.preventDefault=void 0,n.stopPropagation=void 0,e[Rf]._onDragOver(n)}}},Cg=function(t){Lf&&Lf.parentNode[Rf]._isOutsideThisEl(t.target)};function Eg(t,e){if(!t||!t.nodeType||1!==t.nodeType)throw"Sortable: `el` must be an HTMLElement, not ".concat({}.toString.call(t));this.el=t,this.options=e=Xp({},e),t[Rf]=this;var n,r,s={group:null,sort:!0,disabled:!1,store:null,handle:null,draggable:/^[uo]l$/i.test(t.nodeName)?">li":">*",swapThreshold:1,invertSwap:!1,invertedSwapThreshold:null,removeCloneOnHide:!0,direction:function(){return vg(t,this.options)},ghostClass:"sortable-ghost",chosenClass:"sortable-chosen",dragClass:"sortable-drag",ignore:"a, img",filter:null,preventOnFilter:!0,animation:0,easing:null,setData:function(t,e){t.setData("Text",e.textContent)},dropBubble:!1,dragoverBubble:!1,dataIdAttr:"data-id",delay:0,delayOnTouchOnly:!1,touchStartThreshold:Number.parseInt(window.devicePixelRatio,10)||1,forceFallback:!1,fallbackClass:"sortable-fallback",fallbackOnBody:!1,fallbackTolerance:0,fallbackOffset:{x:0,y:0},supportPointer:!1!==Eg.supportPointer&&"PointerEvent"in window,emptyInsertThreshold:5};for(var i in Pf.initializePlugins(this,t,s),s)!(i in e)&&(e[i]=s[i]);for(var o in _g(e),this)"_"===o.charAt(0)&&"function"==typeof this[o]&&(this[o]=this[o].bind(this));this.nativeDraggable=!e.forceFallback&&gg,this.nativeDraggable&&(this.options.touchStartThreshold=1),e.supportPointer?af(t,"pointerdown",this._onTapStart):(af(t,"mousedown",this._onTapStart),af(t,"touchstart",this._onTapStart)),this.nativeDraggable&&(af(t,"dragover",this),af(t,"dragenter",this)),lg.push(this.el),e.store&&e.store.get&&this.sort(e.store.get(this)||[]),Xp(this,(r=[],{captureAnimationState:function(){if(r=[],this.options.animation){var t=[].slice.call(this.el.children);for(var e in t)if("none"!==mf(t[e],"display")&&t[e]!==Eg.ghost){r.push({target:t[e],rect:wf(t[e])});var n=wf(t[e]);if(t[e].thisAnimationDuration){var s=vf(t[e],!0);s&&(n.top-=s.f,n.left-=s.e)}t[e].fromRect=n}}},addAnimationState:function(t){r.push(t)},removeAnimationState:function(t){r.splice(function(t,e){for(var n in t)for(var r in e)if(e[r]===t[n][r])return Number(n);return-1}(r,{target:t}),1)},animateAll:function(t){if(!this.options.animation)return clearTimeout(n),void("function"==typeof t&&t());var e=!1,s=0;for(var i in r){var o=0,l=r[i].target,a=l.fromRect,u=wf(l),c=l.prevFromRect,h=l.prevToRect,d=r[i].rect,p=vf(l,!0);p&&(u.top-=p.f,u.left-=p.e),l.toRect=u,(yf(l,u,"bottom","top")||yf(l,u,"top","bottom")||yf(l,u,"right","left")||yf(l,u,"left","right"))&&(yf(l,d,"bottom","top")||yf(l,d,"top","bottom")||yf(l,d,"right","left")||yf(l,d,"left","right"))&&(yf(l,a,"bottom","top")||yf(l,a,"top","bottom")||yf(l,a,"right","left")||yf(l,a,"left","right"))||(l.thisAnimationDuration&&kf(c,u)&&!kf(a,u)&&(d.top-u.top)/(d.left-u.left)==(a.top-u.top)/(a.left-u.left)&&(o=Nf(d,c,h,this.options)),kf(u,a)||(l.prevFromRect=a,l.prevToRect=u,o||(o=this.options.animation),this.animate(l,d,o)),o&&(e=!0,s=Math.max(s,o),clearTimeout(l.animationResetTimer),l.animationResetTimer=setTimeout((function(){this.animationStates[this.i].target.animationTime=0,this.animationStates[this.i].target.prevFromRect=null,this.animationStates[this.i].target.fromRect=null,this.animationStates[this.i].target.prevToRect=null,this.animationStates[this.i].target.thisAnimationDuration=null}).bind({animationStates:r,i:Number(i)}),o),l.thisAnimationDuration=o))}clearTimeout(n),e?n=setTimeout(function(){"function"==typeof t&&t()},s):"function"==typeof t&&t(),r=[]},animate:function(t,e,n){if(n){mf(t,"transition",""),mf(t,"transform","");var r=wf(t),s=vf(this.el),i=(e.left-r.left)/(s&&s.a||1),o=(e.top-r.top)/(s&&s.d||1);t.animatingX=!!i,t.animatingY=!!o,mf(t,"transform","translate3d("+i+"px,"+o+"px,0)"),mf(t,"transition","transform "+n+"ms"+(this.options.easing?" "+this.options.easing:"")),mf(t,"transform","translate3d(0,0,0)"),"number"==typeof t.animated&&clearTimeout(t.animated),t.animated=setTimeout(function(){mf(t,"transition",""),mf(t,"transform",""),t.animated=!1,t.animatingX=!1,t.animatingY=!1},n)}}}))}function Sg(t,e,n,r,s,i,o,l){var a,u,c=t[Rf],h=c.options.onMove;return!window.CustomEvent||ef||nf?(a=document.createEvent("Event")).initEvent("move",!0,!0):a=new CustomEvent("move",{bubbles:!0,cancelable:!0}),a.to=e,a.from=t,a.dragged=n,a.draggedRect=r,a.related=s||e,a.relatedRect=i||wf(e),a.willInsertAfter=l,a.originalEvent=o,t.dispatchEvent(a),h&&(u=h.call(c,a,o)),u}function xg(t){t.draggable=!1}function Tg(){hg=!1}function kg(t){for(var e=t.tagName+t.className+t.src+t.href+t.textContent,n=e.length,r=0;n--;)r+=e.charCodeAt(n);return r.toString(36)}function Ag(t){return setTimeout(t,0)}function Og(t){return clearTimeout(t)}Eg.prototype={constructor:Eg,_isOutsideThisEl:function(t){this.el.contains(t)||t===this.el||(eg=null)},_getDirection:function(t,e){return"function"==typeof this.options.direction?this.options.direction.call(this,t,e,Lf):this.options.direction},_onTapStart:function(t){if(t.cancelable){var e=this,n=this.el,r=this.options,s=r.preventOnFilter,i=t.type,o=t.touches&&t.touches[0],l=(o||t).target,a=t.target.shadowRoot&&(t.path&&t.path[0]||t.composedPath&&t.composedPath()[0])||l,u=r.filter;if(function(t){dg.length=0;for(var e=t.getElementsByTagName("input"),n=e.length;n--;){var r=e[n];r.checked&&dg.push(r)}}(n),!Lf&&!(/mousedown|pointerdown/.test(i)&&0!==t.button||r.disabled||a.isContentEditable||(l=df(l,r.draggable,n,!1))&&l.animated||zf===l)){if(Gf=Sf(l),Zf=Sf(l,r.draggable),"function"==typeof u){if(u.call(this,t,l,this))return jf({sortable:e,rootEl:a,name:"filter",targetEl:l,toEl:n,fromEl:n}),Vf("filter",e,{evt:t}),void(s&&t.cancelable&&t.preventDefault())}else if(u&&(u=u.split(",").some(function(r){if(r=df(a,r.trim(),n,!1))return jf({sortable:e,rootEl:r,name:"filter",targetEl:l,fromEl:n,toEl:n}),Vf("filter",e,{evt:t}),!0})))return void(s&&t.cancelable&&t.preventDefault());r.handle&&!df(a,r.handle,n,!1)||this._prepareDragStart(t,o,l)}}},_prepareDragStart:function(t,e,n){var r,s=this,i=s.el,o=s.options,l=i.ownerDocument;if(n&&!Lf&&n.parentNode===i)if($f=i,Ff=(Lf=n).parentNode,Hf=Lf.nextSibling,zf=n,Yf=o.group,Eg.dragged=Lf,Xf={target:Lf,clientX:(e||t).clientX,clientY:(e||t).clientY},this._lastX=(e||t).clientX,this._lastY=(e||t).clientY,Lf.style["will-change"]="all",r=function(){Vf("delayEnded",s,{evt:t}),Eg.eventCanceled?s._onDrop():(s._disableDelayedDragEvents(),!rf&&s.nativeDraggable&&(Lf.draggable=!0),s._triggerDragStart(t,e),jf({sortable:s,name:"choose",originalEvent:t}),gf(Lf,o.chosenClass,!0))},o.ignore.split(",").forEach(function(t){_f(Lf,t.trim(),xg)}),af(l,"dragover",yg),af(l,"mousemove",yg),af(l,"touchmove",yg),af(l,"mouseup",s._onDrop),af(l,"touchend",s._onDrop),af(l,"touchcancel",s._onDrop),rf&&this.nativeDraggable&&(this.options.touchStartThreshold=4,Lf.draggable=!0),Vf("delayStart",this,{evt:t}),!o.delay||o.delayOnTouchOnly&&!e||this.nativeDraggable&&(nf||ef))r();else{if(Eg.eventCanceled)return void this._onDrop();af(l,"mouseup",s._disableDelayedDrag),af(l,"touchend",s._disableDelayedDrag),af(l,"touchcancel",s._disableDelayedDrag),af(l,"mousemove",s._delayedDragTouchMoveHandler),af(l,"touchmove",s._delayedDragTouchMoveHandler),o.supportPointer&&af(l,"pointermove",s._delayedDragTouchMoveHandler),s._dragStartTimer=setTimeout(r,o.delay)}},_delayedDragTouchMoveHandler:function(t){var e=t.touches?t.touches[0]:t;Math.max(Math.abs(e.clientX-this._lastX),Math.abs(e.clientY-this._lastY))>=Math.floor(this.options.touchStartThreshold/(this.nativeDraggable&&window.devicePixelRatio||1))&&this._disableDelayedDrag()},_disableDelayedDrag:function(){Lf&&xg(Lf),clearTimeout(this._dragStartTimer),this._disableDelayedDragEvents()},_disableDelayedDragEvents:function(){var t=this.el.ownerDocument;uf(t,"mouseup",this._disableDelayedDrag),uf(t,"touchend",this._disableDelayedDrag),uf(t,"touchcancel",this._disableDelayedDrag),uf(t,"mousemove",this._delayedDragTouchMoveHandler),uf(t,"touchmove",this._delayedDragTouchMoveHandler),uf(t,"pointermove",this._delayedDragTouchMoveHandler)},_triggerDragStart:function(t,e){e=e||("touch"==t.pointerType?t:null),!this.nativeDraggable||e?af(document,this.options.supportPointer?"pointermove":e?"touchmove":"mousemove",this._onTouchMove):(af(Lf,"dragend",this),af($f,"dragstart",this._onDragStart));try{document.selection?Ag(function(){document.selection.empty()}):window.getSelection().removeAllRanges()}catch(n){}},_dragStarted:function(t,e){if(ig=!1,$f&&Lf){Vf("dragStarted",this,{evt:e}),this.nativeDraggable&&af(document,"dragover",Cg);var n=this.options;!t&&gf(Lf,n.dragClass,!1),gf(Lf,n.ghostClass,!0),Eg.active=this,t&&this._appendGhost(),jf({sortable:this,name:"start",originalEvent:e})}else this._nulling()},_emulateDragOver:function(){if(Jf){this._lastX=Jf.clientX,this._lastY=Jf.clientY,bg();for(var t=document.elementFromPoint(Jf.clientX,Jf.clientY),e=t;t&&t.shadowRoot&&(t=t.shadowRoot.elementFromPoint(Jf.clientX,Jf.clientY))!==e;)e=t;if(Lf.parentNode[Rf]._isOutsideThisEl(t),e)do{if(e[Rf]&&e[Rf]._onDragOver({clientX:Jf.clientX,clientY:Jf.clientY,target:t,rootEl:e})&&!this.options.dragoverBubble)break;t=e}while(e=e.parentNode);wg()}},_onTouchMove:function(t){if(Xf){var e=this.options,n=e.fallbackTolerance,r=e.fallbackOffset,s=t.touches?t.touches[0]:t,i=Uf&&vf(Uf),o=Uf&&i&&i.a,l=Uf&&i&&i.d,a=pg&&sg&&xf(sg),u=(s.clientX-Xf.clientX+r.x)/(o||1)+(a?a[0]-cg[0]:0)/(o||1),c=(s.clientY-Xf.clientY+r.y)/(l||1)+(a?a[1]-cg[1]:0)/(l||1),h=t.touches?"translate3d("+u+"px,"+c+"px,0)":"translate("+u+"px,"+c+"px)";if(!Eg.active&&!ig){if(n&&Math.max(Math.abs(s.clientX-this._lastX),Math.abs(s.clientY-this._lastY))r.right+10||t.clientX<=r.right&&t.clientY>r.bottom&&t.clientX>=r.left:t.clientX>r.right&&t.clientY>r.top||t.clientX<=r.right&&t.clientY>r.bottom+10}(t,s,this)&&!g.animated){if(g===Lf)return I(!1);if(g&&i===t.target&&(o=g),o&&(n=wf(o)),!1!==Sg($f,i,Lf,e,o,n,t,!!o))return O(),i.appendChild(Lf),Ff=i,R(),I(!0)}else if(o.parentNode===i){n=wf(o);var m,v,_,b=Lf.parentNode!==i,w=!function(t,e,n){var r=n?t.left:t.top,s=n?e.left:e.top;return r===s||(n?t.right:t.bottom)===(n?e.right:e.bottom)||r+(n?t.width:t.height)/2===s+(n?e.width:e.height)/2}(Lf.animated&&Lf.toRect||e,o.animated&&o.toRect||n,s),y=s?"top":"left",C=yf(o,null,"top","top")||yf(Lf,null,"top","top"),E=C?C.scrollTop:void 0;if(eg!==o&&(v=n[y],ag=!1,ug=!w&&l.invertSwap||b),0!==(m=function(t,e,n,r,s,i,o){var l=wf(e),a=n?t.clientY:t.clientX,u=n?l.height:l.width,c=n?l.top:l.left,h=n?l.bottom:l.right,d=!1;if(!i)if(o&&rgc+u*s/2:ah-rg)return-ng}else if(a>c+u*(1-r)/2&&ah-u*s/2)?a>c+u/2?1:-1:0}(t,o,s,w?1:l.swapThreshold,null==l.invertedSwapThreshold?l.swapThreshold:l.invertedSwapThreshold,ug,eg===o))){var S=Sf(Lf);do{_=Ff.children[S-=m]}while(_&&("none"===mf(_,"display")||_===Uf))}if(0===m||_===o)return I(!1);eg=o,ng=m;var x=o.nextElementSibling,T=!1,k=Sg($f,i,Lf,e,o,n,t,T=1===m);if(!1!==k)return 1!==k&&-1!==k||(T=1===k),hg=!0,setTimeout(Tg,30),O(),T&&!x?i.appendChild(Lf):o.parentNode.insertBefore(Lf,T?x:o),C&&Of(C,0,E-C.scrollTop),Ff=Lf.parentNode,void 0===v||ug||(rg=Math.abs(v-wf(o)[y])),R(),I(!0)}if(i.contains(Lf))return I(!1)}return!1}function A(l,a){Vf(l,p,Jp({evt:t,isOwner:c,axis:s?"vertical":"horizontal",revert:r,dragRect:e,targetRect:n,canSort:h,fromSortable:d,target:o,completed:I,onMove:function(n,r){return Sg($f,i,Lf,e,n,wf(n),t,r)},changed:R},a))}function O(){A("dragOverAnimationCapture"),p.captureAnimationState(),p!==d&&d.captureAnimationState()}function I(e){return A("dragOverCompleted",{insertion:e}),e&&(c?u._hideClone():u._showClone(p),p!==d&&(gf(Lf,Kf?Kf.options.ghostClass:u.options.ghostClass,!1),gf(Lf,l.ghostClass,!0)),Kf!==p&&p!==Eg.active?Kf=p:p===Eg.active&&Kf&&(Kf=null),d===p&&(p._ignoreWhileAnimating=o),p.animateAll(function(){A("dragOverAnimationComplete"),p._ignoreWhileAnimating=null}),p!==d&&(d.animateAll(),d._ignoreWhileAnimating=null)),(o===Lf&&!Lf.animated||o===i&&!o.animated)&&(eg=null),l.dragoverBubble||t.rootEl||o===document||(Lf.parentNode[Rf]._isOutsideThisEl(t.target),!e&&yg(t)),!l.dragoverBubble&&t.stopPropagation&&t.stopPropagation(),f=!0}function R(){qf=Sf(Lf),Qf=Sf(Lf,l.draggable),jf({sortable:p,name:"change",toEl:i,newIndex:qf,newDraggableIndex:Qf,originalEvent:t})}},_ignoreWhileAnimating:null,_offMoveEvents:function(){uf(document,"mousemove",this._onTouchMove),uf(document,"touchmove",this._onTouchMove),uf(document,"pointermove",this._onTouchMove),uf(document,"dragover",yg),uf(document,"mousemove",yg),uf(document,"touchmove",yg)},_offUpEvents:function(){var t=this.el.ownerDocument;uf(t,"mouseup",this._onDrop),uf(t,"touchend",this._onDrop),uf(t,"pointerup",this._onDrop),uf(t,"touchcancel",this._onDrop),uf(document,"selectstart",this)},_onDrop:function(t){var e=this.el,n=this.options;qf=Sf(Lf),Qf=Sf(Lf,n.draggable),Vf("drop",this,{evt:t}),qf=Sf(Lf),Qf=Sf(Lf,n.draggable),Eg.eventCanceled?this._nulling():(ig=!1,ug=!1,ag=!1,clearInterval(this._loopId),clearTimeout(this._dragStartTimer),Og(this.cloneId),Og(this._dragStartId),this.nativeDraggable&&(uf(document,"drop",this),uf(e,"dragstart",this._onDragStart)),this._offMoveEvents(),this._offUpEvents(),sf&&mf(document.body,"user-select",""),t&&(tg&&(t.cancelable&&t.preventDefault(),!n.dropBubble&&t.stopPropagation()),Uf&&Uf.parentNode&&Uf.parentNode.removeChild(Uf),($f===Ff||Kf&&"clone"!==Kf.lastPutMode)&&Bf&&Bf.parentNode&&Bf.parentNode.removeChild(Bf),Lf&&(this.nativeDraggable&&uf(Lf,"dragend",this),xg(Lf),Lf.style["will-change"]="",tg&&!ig&&gf(Lf,Kf?Kf.options.ghostClass:this.options.ghostClass,!1),gf(Lf,this.options.chosenClass,!1),jf({sortable:this,name:"unchoose",toEl:Ff,newIndex:null,newDraggableIndex:null,originalEvent:t}),$f!==Ff?(qf>=0&&(jf({rootEl:Ff,name:"add",toEl:Ff,fromEl:$f,originalEvent:t}),jf({sortable:this,name:"remove",toEl:Ff,originalEvent:t}),jf({rootEl:Ff,name:"sort",toEl:Ff,fromEl:$f,originalEvent:t}),jf({sortable:this,name:"sort",toEl:Ff,originalEvent:t})),Kf&&Kf.save()):qf!==Gf&&qf>=0&&(jf({sortable:this,name:"update",toEl:Ff,originalEvent:t}),jf({sortable:this,name:"sort",toEl:Ff,originalEvent:t})),Eg.active&&(null!=qf&&-1!==qf||(qf=Gf,Qf=Zf),jf({sortable:this,name:"end",toEl:Ff,originalEvent:t}),this.save()))),this._nulling())},_nulling:function(){Vf("nulling",this),$f=Lf=Ff=Uf=Hf=Bf=zf=Wf=Xf=Jf=tg=qf=Qf=Gf=Zf=eg=ng=Kf=Yf=Eg.dragged=Eg.ghost=Eg.clone=Eg.active=null,dg.forEach(function(t){t.checked=!0}),dg.length=0},handleEvent:function(t){switch(t.type){case"drop":case"dragend":this._onDrop(t);break;case"dragenter":case"dragover":Lf&&(this._onDragOver(t),function(t){t.dataTransfer&&(t.dataTransfer.dropEffect="move"),t.cancelable&&t.preventDefault()}(t));break;case"selectstart":t.preventDefault()}},toArray:function(){for(var t,e=[],n=this.el.children,r=0,s=n.length,i=this.options;rnew Gg(t))}injectIntoEvery(t,e){this.bindings.forEach((n,r)=>n.insert(t,e[r]))}getFromEvery(t){return this.bindings.map(e=>e.get(t))}extractFromEvery(t){return this.bindings.map(e=>e.remove(t))}get provided(){return!!this.bindings.length}}const Zg=function(){class t{}return t.ngInjectableDef=ft({factory:function(){return new t},token:t,providedIn:"root"}),t}();class Qg{constructor(t,e,n,r,s){this.globalConfig=t,this.service=e,this.element=n,this.zone=r,this.renderer=s,this.runInsideAngular=!1,this.sortablejsInit=new Cs}ngOnInit(){Bg&&Bg.create&&(this.runInsideAngular?this.create():this.zone.runOutsideAngular(()=>this.create()))}ngOnChanges(t){const e=t.sortablejsOptions;if(e&&!e.isFirstChange()){const t=e.previousValue,n=e.currentValue;Object.keys(n).forEach(e=>{n[e]!==t[e]&&this.sortableInstance.option(e,this.options[e])})}}ngOnDestroy(){this.sortableInstance&&this.sortableInstance.destroy()}create(){const t=this.sortablejsContainer?this.element.nativeElement.querySelector(this.sortablejsContainer):this.element.nativeElement;setTimeout(()=>{this.sortableInstance=Bg.create(t,this.options),this.sortablejsInit.emit(this.sortableInstance)},0)}getBindings(){return this.sortablejs?this.sortablejs instanceof qg?this.sortablejs:new qg([this.sortablejs]):new qg([])}get options(){return Object.assign({},this.optionsWithoutEvents,this.overridenOptions)}get optionsWithoutEvents(){return Object.assign({},this.globalConfig||{},this.sortablejsOptions||{})}proxyEvent(t,...e){this.zone.run(()=>{this.optionsWithoutEvents&&this.optionsWithoutEvents[t]&&this.optionsWithoutEvents[t](...e)})}get isCloning(){return"clone"===this.sortableInstance.options.group.checkPull(this.sortableInstance,this.sortableInstance)}clone(t){return(this.sortablejsCloneFunction||(t=>t))(t)}get overridenOptions(){return{onAdd:t=>{this.service.transfer=(e=>{this.getBindings().injectIntoEvery(t.newIndex,e),this.proxyEvent("onAdd",t)}),this.proxyEvent("onAddOriginal",t)},onRemove:t=>{const e=this.getBindings();e.provided&&(this.isCloning?(this.service.transfer(e.getFromEvery(t.oldIndex).map(t=>this.clone(t))),this.renderer.removeChild(t.item.parentNode,t.item),this.renderer.insertBefore(t.clone.parentNode,t.item,t.clone),this.renderer.removeChild(t.clone.parentNode,t.clone)):this.service.transfer(e.extractFromEvery(t.oldIndex)),this.service.transfer=null),this.proxyEvent("onRemove",t)},onUpdate:t=>{const e=this.getBindings();e.injectIntoEvery(t.newIndex,e.extractFromEvery(t.oldIndex)),this.proxyEvent("onUpdate",t)}}}}class Yg{static forRoot(t){return{ngModule:Yg,providers:[{provide:Wg,useValue:t}]}}}class Kg{constructor(){this.cities=["Ankara","Moscow","Munich","Paris","Washington"]}}var Xg=Zn({encapsulation:0,styles:[[""]],data:{}});function Jg(t){return Xi(0,[(t()(),Li(0,0,null,null,1,"button",[["class","btn btn-secondary"],["type","button"]],null,null,null,null,null)),(t()(),Qi(1,null,["",""]))],null,function(t,e){t(e,1,0,e.context.$implicit)})}function tm(t){return Xi(0,[(t()(),Li(0,0,null,null,1,"button",[["class","btn btn-secondary"],["type","button"]],null,null,null,null,null)),(t()(),Qi(1,null,["",""]))],null,function(t,e){t(e,1,0,e.context.$implicit)})}function em(t){return Xi(0,[(t()(),Li(0,0,null,null,5,"div",[["class","col-sm-4 my-3"]],null,null,null,null,null)),(t()(),Li(1,0,null,null,4,"div",[["class","card"]],null,null,null,null,null)),(t()(),Li(2,0,null,null,1,"div",[["class","card-header"]],null,null,null,null,null)),(t()(),Qi(3,null,["",""])),(t()(),Li(4,0,null,null,1,"div",[["class","card-body"]],null,null,null,null,null)),(t()(),Qi(5,null,[""," description"]))],null,function(t,e){t(e,3,0,e.context.$implicit),t(e,5,0,e.context.$implicit)})}function nm(t){return Xi(0,[(t()(),Li(0,0,null,null,2,"li",[["class","nav-item"]],null,null,null,null,null)),(t()(),Li(1,0,null,null,1,"a",[["class","nav-link active mr-1"]],null,null,null,null,null)),(t()(),Qi(2,null,["",""]))],null,function(t,e){t(e,2,0,e.context.$implicit)})}function rm(t){return Xi(0,[(t()(),Li(0,0,null,null,1,"li",[["class","breadcrumb-item active"]],null,null,null,null,null)),(t()(),Qi(1,null,["",""]))],null,function(t,e){t(e,1,0,e.context.$implicit)})}function sm(t){return Xi(0,[(t()(),Li(0,0,null,null,1,"h1",[],null,null,null,null,null)),(t()(),Qi(-1,null,["Sortable Array"])),(t()(),Li(2,0,null,null,3,"p",[["class","lead"]],null,null,null,null,null)),(t()(),Li(3,0,null,null,2,"strong",[],null,null,null,null,null)),(t()(),Li(4,0,null,null,1,"a",[["href","https://github.com/SortableJS/ngx-sortablejs/tree/master/src/app/examples/simple-sortable"],["target","_blank"]],null,null,null,null,null)),(t()(),Qi(-1,null,["The source code"])),(t()(),Qi(-1,null,[" The examples below shows various bootstrap.css elements that can be "])),(t()(),Li(7,0,null,null,1,"em",[],null,null,null,null,null)),(t()(),Qi(-1,null,["sortable"])),(t()(),Qi(-1,null,[". They share the same model that's why every time you drag / drop the element all others get updated. Actually everything can be sortable. "])),(t()(),Li(10,0,null,null,1,"h2",[["class","mt-4 mb-3"]],null,null,null,null,null)),(t()(),Qi(-1,null,["Button groups"])),(t()(),Li(12,0,null,null,8,"div",[["class","clearfix"]],null,null,null,null,null)),(t()(),Li(13,0,null,null,3,"div",[["class","btn-group-vertical float-left"]],null,null,null,null,null)),ss(14,737280,null,0,Qg,[[2,Wg],Zg,tn,Qs,on],{sortablejs:[0,"sortablejs"]},null),(t()(),ji(16777216,null,null,1,null,Jg)),ss(16,278528,null,0,xl,[On,kn,wn],{ngForOf:[0,"ngForOf"]},null),(t()(),Li(17,0,null,null,3,"div",[["class","btn-group ml-3"]],null,null,null,null,null)),ss(18,737280,null,0,Qg,[[2,Wg],Zg,tn,Qs,on],{sortablejs:[0,"sortablejs"]},null),(t()(),ji(16777216,null,null,1,null,tm)),ss(20,278528,null,0,xl,[On,kn,wn],{ngForOf:[0,"ngForOf"]},null),(t()(),Li(21,0,null,null,1,"h2",[["class","mt-4 mb-3"]],null,null,null,null,null)),(t()(),Qi(-1,null,["Cards"])),(t()(),Li(23,0,null,null,3,"div",[["class","row"]],null,null,null,null,null)),ss(24,737280,null,0,Qg,[[2,Wg],Zg,tn,Qs,on],{sortablejs:[0,"sortablejs"]},null),(t()(),ji(16777216,null,null,1,null,em)),ss(26,278528,null,0,xl,[On,kn,wn],{ngForOf:[0,"ngForOf"]},null),(t()(),Li(27,0,null,null,1,"h2",[["class","mt-4 mb-3"]],null,null,null,null,null)),(t()(),Qi(-1,null,["Navigation"])),(t()(),Li(29,0,null,null,3,"ul",[["class","nav nav-pills mb-3"]],null,null,null,null,null)),ss(30,737280,null,0,Qg,[[2,Wg],Zg,tn,Qs,on],{sortablejs:[0,"sortablejs"]},null),(t()(),ji(16777216,null,null,1,null,nm)),ss(32,278528,null,0,xl,[On,kn,wn],{ngForOf:[0,"ngForOf"]},null),(t()(),Li(33,0,null,null,4,"nav",[["aria-label","breadcrumb"],["role","navigation"]],null,null,null,null,null)),(t()(),Li(34,0,null,null,3,"ol",[["class","breadcrumb"]],null,null,null,null,null)),ss(35,737280,null,0,Qg,[[2,Wg],Zg,tn,Qs,on],{sortablejs:[0,"sortablejs"]},null),(t()(),ji(16777216,null,null,1,null,rm)),ss(37,278528,null,0,xl,[On,kn,wn],{ngForOf:[0,"ngForOf"]},null),(t()(),Li(38,0,null,null,1,"h2",[["class","mt-4 mb-3"]],null,null,null,null,null)),(t()(),Qi(-1,null,["The actual model"])),(t()(),Li(40,0,null,null,2,"div",[["class","alert alert-dark"]],null,null,null,null,null)),(t()(),Qi(41,null,[" > ","\n"])),is(0,Il,[])],function(t,e){var n=e.component;t(e,14,0,n.cities),t(e,16,0,n.cities),t(e,18,0,n.cities),t(e,20,0,n.cities),t(e,24,0,n.cities),t(e,26,0,n.cities),t(e,30,0,n.cities),t(e,32,0,n.cities),t(e,35,0,n.cities),t(e,37,0,n.cities)},function(t,e){var n=e.component;t(e,41,0,Wn(e,41,0,Wr(e,42).transform(n.cities)))})}function im(t){return Xi(0,[(t()(),Li(0,0,null,null,1,"app-simple-sortable",[],null,null,null,sm,Xg)),ss(1,49152,null,0,Kg,[],null,null)],null,null)}var om=Mr("app-simple-sortable",Kg,im,{},{},[]);class lm extends ${constructor(t,e){super(t),this.sources=e,this.completed=0,this.haveValues=0;const n=e.length;this.values=new Array(n);for(let r=0;r{}),this.onTouched=(()=>{}),this._composing=!1,null==this._compositionMode&&(this._compositionMode=!function(){const t=Ia()?Ia().getUserAgent():"";return/android (\d+)/.test(t.toLowerCase())}())}writeValue(t){this._renderer.setProperty(this._elementRef.nativeElement,"value",null==t?"":t)}registerOnChange(t){this.onChange=t}registerOnTouched(t){this.onTouched=t}setDisabledState(t){this._renderer.setProperty(this._elementRef.nativeElement,"disabled",t)}_handleInput(t){(!this._compositionMode||this._compositionMode&&!this._composing)&&this.onChange(t)}_compositionStart(){this._composing=!0}_compositionEnd(t){this._composing=!1,this._compositionMode&&this.onChange(t)}}class hm{get value(){return this.control?this.control.value:null}get valid(){return this.control?this.control.valid:null}get invalid(){return this.control?this.control.invalid:null}get pending(){return this.control?this.control.pending:null}get disabled(){return this.control?this.control.disabled:null}get enabled(){return this.control?this.control.enabled:null}get errors(){return this.control?this.control.errors:null}get pristine(){return this.control?this.control.pristine:null}get dirty(){return this.control?this.control.dirty:null}get touched(){return this.control?this.control.touched:null}get status(){return this.control?this.control.status:null}get untouched(){return this.control?this.control.untouched:null}get statusChanges(){return this.control?this.control.statusChanges:null}get valueChanges(){return this.control?this.control.valueChanges:null}get path(){return null}reset(t){this.control&&this.control.reset(t)}hasError(t,e){return!!this.control&&this.control.hasError(t,e)}getError(t,e){return this.control?this.control.getError(t,e):null}}function dm(){throw new Error("unimplemented")}class pm extends hm{constructor(){super(...arguments),this._parent=null,this.name=null,this.valueAccessor=null,this._rawValidators=[],this._rawAsyncValidators=[]}get validator(){return dm()}get asyncValidator(){return dm()}}class fm{constructor(t){this._cd=t}get ngClassUntouched(){return!!this._cd.control&&this._cd.control.untouched}get ngClassTouched(){return!!this._cd.control&&this._cd.control.touched}get ngClassPristine(){return!!this._cd.control&&this._cd.control.pristine}get ngClassDirty(){return!!this._cd.control&&this._cd.control.dirty}get ngClassValid(){return!!this._cd.control&&this._cd.control.valid}get ngClassInvalid(){return!!this._cd.control&&this._cd.control.invalid}get ngClassPending(){return!!this._cd.control&&this._cd.control.pending}}class gm extends fm{constructor(t){super(t)}}function mm(t){return null==t||0===t.length}const vm=/^(?=.{1,254}$)(?=.{1,64}@)[-!#$%&'*+\/0-9=?A-Z^_`a-z{|}~]+(\.[-!#$%&'*+\/0-9=?A-Z^_`a-z{|}~]+)*@[A-Za-z0-9]([A-Za-z0-9-]{0,61}[A-Za-z0-9])?(\.[A-Za-z0-9]([A-Za-z0-9-]{0,61}[A-Za-z0-9])?)*$/;class _m{static min(t){return e=>{if(mm(e.value)||mm(t))return null;const n=parseFloat(e.value);return!isNaN(n)&&n{if(mm(e.value)||mm(t))return null;const n=parseFloat(e.value);return!isNaN(n)&&n>t?{max:{max:t,actual:e.value}}:null}}static required(t){return mm(t.value)?{required:!0}:null}static requiredTrue(t){return!0===t.value?null:{required:!0}}static email(t){return mm(t.value)?null:vm.test(t.value)?null:{email:!0}}static minLength(t){return e=>{if(mm(e.value))return null;const n=e.value?e.value.length:0;return n{const n=e.value?e.value.length:0;return n>t?{maxlength:{requiredLength:t,actualLength:n}}:null}}static pattern(t){if(!t)return _m.nullValidator;let e,n;return"string"==typeof t?(n="","^"!==t.charAt(0)&&(n+="^"),n+=t,"$"!==t.charAt(t.length-1)&&(n+="$"),e=new RegExp(n)):(n=t.toString(),e=t),t=>{if(mm(t.value))return null;const r=t.value;return e.test(r)?null:{pattern:{requiredPattern:n,actualValue:r}}}}static nullValidator(t){return null}static compose(t){if(!t)return null;const e=t.filter(bm);return 0==e.length?null:function(t){return ym(function(t,n){return e.map(e=>e(t))}(t))}}static composeAsync(t){if(!t)return null;const e=t.filter(bm);return 0==e.length?null:function(t){return function t(...e){let n;return"function"==typeof e[e.length-1]&&(n=e.pop()),1===e.length&&a(e[0])&&(e=e[0]),0===e.length?jl:n?t(e).pipe(H(t=>n(...t))):new y(t=>new lm(t,e))}(function(t,n){return e.map(e=>e(t))}(t).map(wm)).pipe(H(ym))}}}function bm(t){return null!=t}function wm(t){const e=Ne(t)?G(t):t;if(!De(e))throw new Error("Expected validator to return Promise or Observable.");return e}function ym(t){const e=t.reduce((t,e)=>null!=e?Object.assign({},t,e):t,{});return 0===Object.keys(e).length?null:e}function Cm(t){return t.validate?e=>t.validate(e):t}function Em(t){return t.validate?e=>t.validate(e):t}class Sm{constructor(){this._accessors=[]}add(t,e){this._accessors.push([t,e])}remove(t){for(let e=this._accessors.length-1;e>=0;--e)if(this._accessors[e][1]===t)return void this._accessors.splice(e,1)}select(t){this._accessors.forEach(e=>{this._isSameGroup(e,t)&&e[1]!==t&&e[1].fireUncheck(t.value)})}_isSameGroup(t,e){return!!t[0].control&&t[0]._parent===e._control._parent&&t[1].name===e.name}}const xm={formControlName:'\n \n \n
\n\n In your class:\n\n this.myGroup = new FormGroup({\n firstName: new FormControl()\n });',formGroupName:'\n \n\n In your class:\n\n this.myGroup = new FormGroup({\n person: new FormGroup({ firstName: new FormControl() })\n });',formArrayName:'\n \n\n In your class:\n\n this.cityArray = new FormArray([new FormControl(\'SF\')]);\n this.myGroup = new FormGroup({\n cities: this.cityArray\n });',ngModelGroup:'\n ',ngModelWithFormGroup:'\n \n \n \n
\n '};class Tm{static controlParentException(){throw new Error(`formControlName must be used with a parent formGroup directive. You'll want to add a formGroup\n directive and pass it an existing FormGroup instance (you can create one in your class).\n\n Example:\n\n ${xm.formControlName}`)}static ngModelGroupException(){throw new Error(`formControlName cannot be used with an ngModelGroup parent. It is only compatible with parents\n that also have a "form" prefix: formGroupName, formArrayName, or formGroup.\n\n Option 1: Update the parent to be formGroupName (reactive form strategy)\n\n ${xm.formGroupName}\n\n Option 2: Use ngModel instead of formControlName (template-driven strategy)\n\n ${xm.ngModelGroup}`)}static missingFormException(){throw new Error(`formGroup expects a FormGroup instance. Please pass one in.\n\n Example:\n\n ${xm.formControlName}`)}static groupParentException(){throw new Error(`formGroupName must be used with a parent formGroup directive. You'll want to add a formGroup\n directive and pass it an existing FormGroup instance (you can create one in your class).\n\n Example:\n\n ${xm.formGroupName}`)}static arrayParentException(){throw new Error(`formArrayName must be used with a parent formGroup directive. You'll want to add a formGroup\n directive and pass it an existing FormGroup instance (you can create one in your class).\n\n Example:\n\n ${xm.formArrayName}`)}static disabledAttrWarning(){console.warn("\n It looks like you're using the disabled attribute with a reactive form directive. If you set disabled to true\n when you set up this control in your component class, the disabled attribute will actually be set in the DOM for\n you. We recommend using this approach to avoid 'changed after checked' errors.\n \n Example: \n form = new FormGroup({\n first: new FormControl({value: 'Nancy', disabled: true}, Validators.required),\n last: new FormControl('Drew', Validators.required)\n });\n ")}static ngModelWarning(t){console.warn(`\n It looks like you're using ngModel on the same form field as ${t}. \n Support for using the ngModel input property and ngModelChange event with \n reactive form directives has been deprecated in Angular v6 and will be removed \n in Angular v7.\n \n For more information on this, see our API docs here:\n https://angular.io/api/forms/${"formControl"===t?"FormControlDirective":"FormControlName"}#use-with-ngmodel\n `)}}function km(t,e){t._pendingDirty&&t.markAsDirty(),t.setValue(t._pendingValue,{emitModelToViewChange:!1}),e.viewToModelUpdate(t._pendingValue),t._pendingChange=!1}function Am(t,e){let n;throw n=t.path.length>1?`path: '${t.path.join(" -> ")}'`:t.path[0]?`name: '${t.path}'`:"unspecified name attribute",new Error(`${e} ${n}`)}function Om(t){return null!=t?_m.compose(t.map(Cm)):null}function Im(t){return null!=t?_m.composeAsync(t.map(Em)):null}const Rm=[class{constructor(t,e){this._renderer=t,this._elementRef=e,this.onChange=(t=>{}),this.onTouched=(()=>{})}writeValue(t){this._renderer.setProperty(this._elementRef.nativeElement,"checked",t)}registerOnChange(t){this.onChange=t}registerOnTouched(t){this.onTouched=t}setDisabledState(t){this._renderer.setProperty(this._elementRef.nativeElement,"disabled",t)}},class{constructor(t,e){this._renderer=t,this._elementRef=e,this.onChange=(t=>{}),this.onTouched=(()=>{})}writeValue(t){this._renderer.setProperty(this._elementRef.nativeElement,"value",parseFloat(t))}registerOnChange(t){this.onChange=(e=>{t(""==e?null:parseFloat(e))})}registerOnTouched(t){this.onTouched=t}setDisabledState(t){this._renderer.setProperty(this._elementRef.nativeElement,"disabled",t)}},class{constructor(t,e){this._renderer=t,this._elementRef=e,this.onChange=(t=>{}),this.onTouched=(()=>{})}writeValue(t){this._renderer.setProperty(this._elementRef.nativeElement,"value",null==t?"":t)}registerOnChange(t){this.onChange=(e=>{t(""==e?null:parseFloat(e))})}registerOnTouched(t){this.onTouched=t}setDisabledState(t){this._renderer.setProperty(this._elementRef.nativeElement,"disabled",t)}},class{constructor(t,e){this._renderer=t,this._elementRef=e,this._optionMap=new Map,this._idCounter=0,this.onChange=(t=>{}),this.onTouched=(()=>{}),this._compareWith=Ve}set compareWith(t){if("function"!=typeof t)throw new Error(`compareWith must be a function, but received ${JSON.stringify(t)}`);this._compareWith=t}writeValue(t){this.value=t;const e=this._getOptionId(t);null==e&&this._renderer.setProperty(this._elementRef.nativeElement,"selectedIndex",-1);const n=function(t,e){return null==t?`${e}`:(e&&"object"==typeof e&&(e="Object"),`${t}: ${e}`.slice(0,50))}(e,t);this._renderer.setProperty(this._elementRef.nativeElement,"value",n)}registerOnChange(t){this.onChange=(e=>{this.value=this._getOptionValue(e),t(this.value)})}registerOnTouched(t){this.onTouched=t}setDisabledState(t){this._renderer.setProperty(this._elementRef.nativeElement,"disabled",t)}_registerOption(){return(this._idCounter++).toString()}_getOptionId(t){for(const e of Array.from(this._optionMap.keys()))if(this._compareWith(this._optionMap.get(e),t))return e;return null}_getOptionValue(t){const e=function(t){return t.split(":")[0]}(t);return this._optionMap.has(e)?this._optionMap.get(e):t}},class{constructor(t,e){this._renderer=t,this._elementRef=e,this._optionMap=new Map,this._idCounter=0,this.onChange=(t=>{}),this.onTouched=(()=>{}),this._compareWith=Ve}set compareWith(t){if("function"!=typeof t)throw new Error(`compareWith must be a function, but received ${JSON.stringify(t)}`);this._compareWith=t}writeValue(t){let e;if(this.value=t,Array.isArray(t)){const n=t.map(t=>this._getOptionId(t));e=((t,e)=>{t._setSelected(n.indexOf(e.toString())>-1)})}else e=((t,e)=>{t._setSelected(!1)});this._optionMap.forEach(e)}registerOnChange(t){this.onChange=(e=>{const n=[];if(e.hasOwnProperty("selectedOptions")){const t=e.selectedOptions;for(let e=0;e{}),this.onTouched=(()=>{})}ngOnInit(){this._control=this._injector.get(pm),this._checkName(),this._registry.add(this._control,this)}ngOnDestroy(){this._registry.remove(this)}writeValue(t){this._state=t===this.value,this._renderer.setProperty(this._elementRef.nativeElement,"checked",this._state)}registerOnChange(t){this._fn=t,this.onChange=(()=>{t(this.value),this._registry.select(this)})}fireUncheck(t){this.writeValue(t)}registerOnTouched(t){this.onTouched=t}setDisabledState(t){this._renderer.setProperty(this._elementRef.nativeElement,"disabled",t)}_checkName(){this.name&&this.formControlName&&this.name!==this.formControlName&&this._throwNameError(),!this.name&&this.formControlName&&(this.name=this.formControlName)}_throwNameError(){throw new Error('\n If you define both a name and a formControlName attribute on your radio button, their values\n must match. Ex: \n ')}}],Nm="VALID",Dm="INVALID",Mm="PENDING",Pm="DISABLED";function Vm(t){const e=Lm(t)?t.validators:t;return Array.isArray(e)?Om(e):e||null}function jm(t,e){const n=Lm(e)?e.asyncValidators:t;return Array.isArray(n)?Im(n):n||null}function Lm(t){return null!=t&&!Array.isArray(t)&&"object"==typeof t}class Fm{constructor(t,e){this.validator=t,this.asyncValidator=e,this._onCollectionChange=(()=>{}),this.pristine=!0,this.touched=!1,this._onDisabledChange=[]}get parent(){return this._parent}get valid(){return this.status===Nm}get invalid(){return this.status===Dm}get pending(){return this.status==Mm}get disabled(){return this.status===Pm}get enabled(){return this.status!==Pm}get dirty(){return!this.pristine}get untouched(){return!this.touched}get updateOn(){return this._updateOn?this._updateOn:this.parent?this.parent.updateOn:"change"}setValidators(t){this.validator=Vm(t)}setAsyncValidators(t){this.asyncValidator=jm(t)}clearValidators(){this.validator=null}clearAsyncValidators(){this.asyncValidator=null}markAsTouched(t={}){this.touched=!0,this._parent&&!t.onlySelf&&this._parent.markAsTouched(t)}markAllAsTouched(){this.markAsTouched({onlySelf:!0}),this._forEachChild(t=>t.markAllAsTouched())}markAsUntouched(t={}){this.touched=!1,this._pendingTouched=!1,this._forEachChild(t=>{t.markAsUntouched({onlySelf:!0})}),this._parent&&!t.onlySelf&&this._parent._updateTouched(t)}markAsDirty(t={}){this.pristine=!1,this._parent&&!t.onlySelf&&this._parent.markAsDirty(t)}markAsPristine(t={}){this.pristine=!0,this._pendingDirty=!1,this._forEachChild(t=>{t.markAsPristine({onlySelf:!0})}),this._parent&&!t.onlySelf&&this._parent._updatePristine(t)}markAsPending(t={}){this.status=Mm,!1!==t.emitEvent&&this.statusChanges.emit(this.status),this._parent&&!t.onlySelf&&this._parent.markAsPending(t)}disable(t={}){const e=this._parentMarkedDirty(t.onlySelf);this.status=Pm,this.errors=null,this._forEachChild(e=>{e.disable(Object.assign({},t,{onlySelf:!0}))}),this._updateValue(),!1!==t.emitEvent&&(this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._updateAncestors(Object.assign({},t,{skipPristineCheck:e})),this._onDisabledChange.forEach(t=>t(!0))}enable(t={}){const e=this._parentMarkedDirty(t.onlySelf);this.status=Nm,this._forEachChild(e=>{e.enable(Object.assign({},t,{onlySelf:!0}))}),this.updateValueAndValidity({onlySelf:!0,emitEvent:t.emitEvent}),this._updateAncestors(Object.assign({},t,{skipPristineCheck:e})),this._onDisabledChange.forEach(t=>t(!1))}_updateAncestors(t){this._parent&&!t.onlySelf&&(this._parent.updateValueAndValidity(t),t.skipPristineCheck||this._parent._updatePristine(),this._parent._updateTouched())}setParent(t){this._parent=t}updateValueAndValidity(t={}){this._setInitialStatus(),this._updateValue(),this.enabled&&(this._cancelExistingSubscription(),this.errors=this._runValidator(),this.status=this._calculateStatus(),this.status!==Nm&&this.status!==Mm||this._runAsyncValidator(t.emitEvent)),!1!==t.emitEvent&&(this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._parent&&!t.onlySelf&&this._parent.updateValueAndValidity(t)}_updateTreeValidity(t={emitEvent:!0}){this._forEachChild(e=>e._updateTreeValidity(t)),this.updateValueAndValidity({onlySelf:!0,emitEvent:t.emitEvent})}_setInitialStatus(){this.status=this._allControlsDisabled()?Pm:Nm}_runValidator(){return this.validator?this.validator(this):null}_runAsyncValidator(t){if(this.asyncValidator){this.status=Mm;const e=wm(this.asyncValidator(this));this._asyncValidationSubscription=e.subscribe(e=>this.setErrors(e,{emitEvent:t}))}}_cancelExistingSubscription(){this._asyncValidationSubscription&&this._asyncValidationSubscription.unsubscribe()}setErrors(t,e={}){this.errors=t,this._updateControlsErrors(!1!==e.emitEvent)}get(t){return function(t,e,n){return null==e?null:(e instanceof Array||(e=e.split(".")),e instanceof Array&&0===e.length?null:e.reduce((t,e)=>t instanceof $m?t.controls.hasOwnProperty(e)?t.controls[e]:null:t instanceof Hm&&t.at(e)||null,t))}(this,t)}getError(t,e){const n=e?this.get(e):this;return n&&n.errors?n.errors[t]:null}hasError(t,e){return!!this.getError(t,e)}get root(){let t=this;for(;t._parent;)t=t._parent;return t}_updateControlsErrors(t){this.status=this._calculateStatus(),t&&this.statusChanges.emit(this.status),this._parent&&this._parent._updateControlsErrors(t)}_initObservables(){this.valueChanges=new Cs,this.statusChanges=new Cs}_calculateStatus(){return this._allControlsDisabled()?Pm:this.errors?Dm:this._anyControlsHaveStatus(Mm)?Mm:this._anyControlsHaveStatus(Dm)?Dm:Nm}_anyControlsHaveStatus(t){return this._anyControls(e=>e.status===t)}_anyControlsDirty(){return this._anyControls(t=>t.dirty)}_anyControlsTouched(){return this._anyControls(t=>t.touched)}_updatePristine(t={}){this.pristine=!this._anyControlsDirty(),this._parent&&!t.onlySelf&&this._parent._updatePristine(t)}_updateTouched(t={}){this.touched=this._anyControlsTouched(),this._parent&&!t.onlySelf&&this._parent._updateTouched(t)}_isBoxedValue(t){return"object"==typeof t&&null!==t&&2===Object.keys(t).length&&"value"in t&&"disabled"in t}_registerOnCollectionChange(t){this._onCollectionChange=t}_setUpdateStrategy(t){Lm(t)&&null!=t.updateOn&&(this._updateOn=t.updateOn)}_parentMarkedDirty(t){return!t&&this._parent&&this._parent.dirty&&!this._parent._anyControlsDirty()}}class Um extends Fm{constructor(t=null,e,n){super(Vm(e),jm(n,e)),this._onChange=[],this._applyFormState(t),this._setUpdateStrategy(e),this.updateValueAndValidity({onlySelf:!0,emitEvent:!1}),this._initObservables()}setValue(t,e={}){this.value=this._pendingValue=t,this._onChange.length&&!1!==e.emitModelToViewChange&&this._onChange.forEach(t=>t(this.value,!1!==e.emitViewToModelChange)),this.updateValueAndValidity(e)}patchValue(t,e={}){this.setValue(t,e)}reset(t=null,e={}){this._applyFormState(t),this.markAsPristine(e),this.markAsUntouched(e),this.setValue(this.value,e),this._pendingChange=!1}_updateValue(){}_anyControls(t){return!1}_allControlsDisabled(){return this.disabled}registerOnChange(t){this._onChange.push(t)}_clearChangeFns(){this._onChange=[],this._onDisabledChange=[],this._onCollectionChange=(()=>{})}registerOnDisabledChange(t){this._onDisabledChange.push(t)}_forEachChild(t){}_syncPendingControls(){return!("submit"!==this.updateOn||(this._pendingDirty&&this.markAsDirty(),this._pendingTouched&&this.markAsTouched(),!this._pendingChange)||(this.setValue(this._pendingValue,{onlySelf:!0,emitModelToViewChange:!1}),0))}_applyFormState(t){this._isBoxedValue(t)?(this.value=this._pendingValue=t.value,t.disabled?this.disable({onlySelf:!0,emitEvent:!1}):this.enable({onlySelf:!0,emitEvent:!1})):this.value=this._pendingValue=t}}class $m extends Fm{constructor(t,e,n){super(Vm(e),jm(n,e)),this.controls=t,this._initObservables(),this._setUpdateStrategy(e),this._setUpControls(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!1})}registerControl(t,e){return this.controls[t]?this.controls[t]:(this.controls[t]=e,e.setParent(this),e._registerOnCollectionChange(this._onCollectionChange),e)}addControl(t,e){this.registerControl(t,e),this.updateValueAndValidity(),this._onCollectionChange()}removeControl(t){this.controls[t]&&this.controls[t]._registerOnCollectionChange(()=>{}),delete this.controls[t],this.updateValueAndValidity(),this._onCollectionChange()}setControl(t,e){this.controls[t]&&this.controls[t]._registerOnCollectionChange(()=>{}),delete this.controls[t],e&&this.registerControl(t,e),this.updateValueAndValidity(),this._onCollectionChange()}contains(t){return this.controls.hasOwnProperty(t)&&this.controls[t].enabled}setValue(t,e={}){this._checkAllValuesPresent(t),Object.keys(t).forEach(n=>{this._throwIfControlMissing(n),this.controls[n].setValue(t[n],{onlySelf:!0,emitEvent:e.emitEvent})}),this.updateValueAndValidity(e)}patchValue(t,e={}){Object.keys(t).forEach(n=>{this.controls[n]&&this.controls[n].patchValue(t[n],{onlySelf:!0,emitEvent:e.emitEvent})}),this.updateValueAndValidity(e)}reset(t={},e={}){this._forEachChild((n,r)=>{n.reset(t[r],{onlySelf:!0,emitEvent:e.emitEvent})}),this._updatePristine(e),this._updateTouched(e),this.updateValueAndValidity(e)}getRawValue(){return this._reduceChildren({},(t,e,n)=>(t[n]=e instanceof Um?e.value:e.getRawValue(),t))}_syncPendingControls(){let t=this._reduceChildren(!1,(t,e)=>!!e._syncPendingControls()||t);return t&&this.updateValueAndValidity({onlySelf:!0}),t}_throwIfControlMissing(t){if(!Object.keys(this.controls).length)throw new Error("\n There are no form controls registered with this group yet. If you're using ngModel,\n you may want to check next tick (e.g. use setTimeout).\n ");if(!this.controls[t])throw new Error(`Cannot find form control with name: ${t}.`)}_forEachChild(t){Object.keys(this.controls).forEach(e=>t(this.controls[e],e))}_setUpControls(){this._forEachChild(t=>{t.setParent(this),t._registerOnCollectionChange(this._onCollectionChange)})}_updateValue(){this.value=this._reduceValue()}_anyControls(t){let e=!1;return this._forEachChild((n,r)=>{e=e||this.contains(r)&&t(n)}),e}_reduceValue(){return this._reduceChildren({},(t,e,n)=>((e.enabled||this.disabled)&&(t[n]=e.value),t))}_reduceChildren(t,e){let n=t;return this._forEachChild((t,r)=>{n=e(n,t,r)}),n}_allControlsDisabled(){for(const t of Object.keys(this.controls))if(this.controls[t].enabled)return!1;return Object.keys(this.controls).length>0||this.disabled}_checkAllValuesPresent(t){this._forEachChild((e,n)=>{if(void 0===t[n])throw new Error(`Must supply a value for form control with name: '${n}'.`)})}}class Hm extends Fm{constructor(t,e,n){super(Vm(e),jm(n,e)),this.controls=t,this._initObservables(),this._setUpdateStrategy(e),this._setUpControls(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!1})}at(t){return this.controls[t]}push(t){this.controls.push(t),this._registerControl(t),this.updateValueAndValidity(),this._onCollectionChange()}insert(t,e){this.controls.splice(t,0,e),this._registerControl(e),this.updateValueAndValidity()}removeAt(t){this.controls[t]&&this.controls[t]._registerOnCollectionChange(()=>{}),this.controls.splice(t,1),this.updateValueAndValidity()}setControl(t,e){this.controls[t]&&this.controls[t]._registerOnCollectionChange(()=>{}),this.controls.splice(t,1),e&&(this.controls.splice(t,0,e),this._registerControl(e)),this.updateValueAndValidity(),this._onCollectionChange()}get length(){return this.controls.length}setValue(t,e={}){this._checkAllValuesPresent(t),t.forEach((t,n)=>{this._throwIfControlMissing(n),this.at(n).setValue(t,{onlySelf:!0,emitEvent:e.emitEvent})}),this.updateValueAndValidity(e)}patchValue(t,e={}){t.forEach((t,n)=>{this.at(n)&&this.at(n).patchValue(t,{onlySelf:!0,emitEvent:e.emitEvent})}),this.updateValueAndValidity(e)}reset(t=[],e={}){this._forEachChild((n,r)=>{n.reset(t[r],{onlySelf:!0,emitEvent:e.emitEvent})}),this._updatePristine(e),this._updateTouched(e),this.updateValueAndValidity(e)}getRawValue(){return this.controls.map(t=>t instanceof Um?t.value:t.getRawValue())}clear(){this.controls.length<1||(this._forEachChild(t=>t._registerOnCollectionChange(()=>{})),this.controls.splice(0),this.updateValueAndValidity())}_syncPendingControls(){let t=this.controls.reduce((t,e)=>!!e._syncPendingControls()||t,!1);return t&&this.updateValueAndValidity({onlySelf:!0}),t}_throwIfControlMissing(t){if(!this.controls.length)throw new Error("\n There are no form controls registered with this array yet. If you're using ngModel,\n you may want to check next tick (e.g. use setTimeout).\n ");if(!this.at(t))throw new Error(`Cannot find form control at index ${t}`)}_forEachChild(t){this.controls.forEach((e,n)=>{t(e,n)})}_updateValue(){this.value=this.controls.filter(t=>t.enabled||this.disabled).map(t=>t.value)}_anyControls(t){return this.controls.some(e=>e.enabled&&t(e))}_setUpControls(){this._forEachChild(t=>this._registerControl(t))}_checkAllValuesPresent(t){this._forEachChild((e,n)=>{if(void 0===t[n])throw new Error(`Must supply a value for form control at index: ${n}.`)})}_allControlsDisabled(){for(const t of this.controls)if(t.enabled)return!1;return this.controls.length>0||this.disabled}_registerControl(t){t.setParent(this),t._registerOnCollectionChange(this._onCollectionChange)}}const zm=new kt("NgModelWithFormControlWarning"),Bm=function(){class t extends pm{constructor(t,e,n,r){super(),this._ngModelWarningConfig=r,this.update=new Cs,this._ngModelWarningSent=!1,this._rawValidators=t||[],this._rawAsyncValidators=e||[],this.valueAccessor=function(t,e){if(!e)return null;Array.isArray(e)||Am(t,"Value accessor was not provided as an array for form control with");let n=void 0,r=void 0,s=void 0;return e.forEach(e=>{e.constructor===cm?n=e:function(t){return Rm.some(e=>t.constructor===e)}(e)?(r&&Am(t,"More than one built-in value accessor matches form control with"),r=e):(s&&Am(t,"More than one custom value accessor matches form control with"),s=e)}),s||r||n||(Am(t,"No valid value accessor for form control with"),null)}(this,n)}set isDisabled(t){Tm.disabledAttrWarning()}ngOnChanges(e){var n,r,s,i;this._isControlChanged(e)&&(i=this,(s=this.form)||Am(i,"Cannot find control with"),i.valueAccessor||Am(i,"No value accessor for form control with"),s.validator=_m.compose([s.validator,i.validator]),s.asyncValidator=_m.composeAsync([s.asyncValidator,i.asyncValidator]),i.valueAccessor.writeValue(s.value),function(t,e){e.valueAccessor.registerOnChange(n=>{t._pendingValue=n,t._pendingChange=!0,t._pendingDirty=!0,"change"===t.updateOn&&km(t,e)})}(s,i),function(t,e){t.registerOnChange((t,n)=>{e.valueAccessor.writeValue(t),n&&e.viewToModelUpdate(t)})}(s,i),function(t,e){e.valueAccessor.registerOnTouched(()=>{t._pendingTouched=!0,"blur"===t.updateOn&&t._pendingChange&&km(t,e),"submit"!==t.updateOn&&t.markAsTouched()})}(s,i),i.valueAccessor.setDisabledState&&s.registerOnDisabledChange(t=>{i.valueAccessor.setDisabledState(t)}),i._rawValidators.forEach(t=>{t.registerOnValidatorChange&&t.registerOnValidatorChange(()=>s.updateValueAndValidity())}),i._rawAsyncValidators.forEach(t=>{t.registerOnValidatorChange&&t.registerOnValidatorChange(()=>s.updateValueAndValidity())}),this.control.disabled&&this.valueAccessor.setDisabledState&&this.valueAccessor.setDisabledState(!0),this.form.updateValueAndValidity({emitEvent:!1})),function(t,e){if(!t.hasOwnProperty("model"))return!1;const n=t.model;return!!n.isFirstChange()||!Ve(e,n.currentValue)}(e,this.viewModel)&&("formControl",n=t,this,r=this._ngModelWarningConfig,se()&&"never"!==r&&((null!==r&&"once"!==r||n._ngModelWarningSentOnce)&&("always"!==r||this._ngModelWarningSent)||(Tm.ngModelWarning("formControl"),n._ngModelWarningSentOnce=!0,this._ngModelWarningSent=!0)),this.form.setValue(this.model),this.viewModel=this.model)}get path(){return[]}get validator(){return Om(this._rawValidators)}get asyncValidator(){return Im(this._rawAsyncValidators)}get control(){return this.form}viewToModelUpdate(t){this.viewModel=t,this.update.emit(t)}_isControlChanged(t){return t.hasOwnProperty("form")}}return t._ngModelWarningSentOnce=!1,t}();class Wm{}class Gm{group(t,e=null){const n=this._reduceControls(t);let r=null,s=null,i=void 0;return null!=e&&(function(t){return void 0!==t.asyncValidators||void 0!==t.validators||void 0!==t.updateOn}(e)?(r=null!=e.validators?e.validators:null,s=null!=e.asyncValidators?e.asyncValidators:null,i=null!=e.updateOn?e.updateOn:void 0):(r=null!=e.validator?e.validator:null,s=null!=e.asyncValidator?e.asyncValidator:null)),new $m(n,{asyncValidators:s,updateOn:i,validators:r})}control(t,e,n){return new Um(t,e,n)}array(t,e,n){const r=t.map(t=>this._createControl(t));return new Hm(r,e,n)}_reduceControls(t){const e={};return Object.keys(t).forEach(n=>{e[n]=this._createControl(t[n])}),e}_createControl(t){return t instanceof Um||t instanceof $m||t instanceof Hm?t:Array.isArray(t)?this.control(t[0],t.length>1?t[1]:null,t.length>2?t[2]:null):this.control(t)}}class qm{static withConfig(t){return{ngModule:qm,providers:[{provide:zm,useValue:t.warnOnNgModelWithFormControl}]}}}class Zm{constructor(){this.citiesControls=new Hm(["Ankara","Moscow","Munich","Paris","Washington"].map(t=>new Um(t)))}}var Qm=Zn({encapsulation:0,styles:[[""]],data:{}});function Ym(t){return Xi(0,[(t()(),Li(0,0,null,null,6,"li",[["class","list-group-item"]],null,null,null,null,null)),(t()(),Li(1,0,null,null,5,"input",[["class","form-control"]],[[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,"input"],[null,"blur"],[null,"compositionstart"],[null,"compositionend"]],function(t,e,n){var r=!0;return"input"===e&&(r=!1!==Wr(t,2)._handleInput(n.target.value)&&r),"blur"===e&&(r=!1!==Wr(t,2).onTouched()&&r),"compositionstart"===e&&(r=!1!==Wr(t,2)._compositionStart()&&r),"compositionend"===e&&(r=!1!==Wr(t,2)._compositionEnd(n.target.value)&&r),r},null,null)),ss(2,16384,null,0,cm,[on,tn,[2,um]],null,null),os(1024,null,am,function(t){return[t]},[cm]),ss(4,540672,null,0,Bm,[[8,null],[8,null],[6,am],[2,zm]],{form:[0,"form"]},null),os(2048,null,pm,null,[Bm]),ss(6,16384,null,0,gm,[[4,pm]],null,null)],function(t,e){t(e,4,0,e.context.$implicit)},function(t,e){t(e,1,0,Wr(e,6).ngClassUntouched,Wr(e,6).ngClassTouched,Wr(e,6).ngClassPristine,Wr(e,6).ngClassDirty,Wr(e,6).ngClassValid,Wr(e,6).ngClassInvalid,Wr(e,6).ngClassPending)})}function Km(t){return Xi(0,[(t()(),Li(0,0,null,null,1,"h1",[],null,null,null,null,null)),(t()(),Qi(-1,null,["Sortable Array"])),(t()(),Li(2,0,null,null,3,"p",[["class","lead"]],null,null,null,null,null)),(t()(),Li(3,0,null,null,2,"strong",[],null,null,null,null,null)),(t()(),Li(4,0,null,null,1,"a",[["href","https://github.com/SortableJS/ngx-sortablejs/tree/master/src/app/examples/sortable-form-array"],["target","_blank"]],null,null,null,null,null)),(t()(),Qi(-1,null,["The source code"])),(t()(),Li(6,0,null,null,4,"p",[],null,null,null,null,null)),(t()(),Qi(-1,null,[" Most of the time one wants to sort something more than just data. Complex forms with "])),(t()(),Li(8,0,null,null,1,"em",[],null,null,null,null,null)),(t()(),Qi(-1,null,["FormArray"])),(t()(),Qi(-1,null,[" controls are also supported.\n"])),(t()(),Li(11,0,null,null,1,"p",[],null,null,null,null,null)),(t()(),Qi(-1,null,["Try to change the text and reorder the inputs"])),(t()(),Li(13,0,null,null,3,"ul",[["class","list-group"]],null,null,null,null,null)),ss(14,737280,null,0,Qg,[[2,Wg],Zg,tn,Qs,on],{sortablejs:[0,"sortablejs"]},null),(t()(),ji(16777216,null,null,1,null,Ym)),ss(16,278528,null,0,xl,[On,kn,wn],{ngForOf:[0,"ngForOf"]},null),(t()(),Li(17,0,null,null,1,"p",[["class","my-3"]],null,null,null,null,null)),(t()(),Qi(-1,null,["The actual value of the array"])),(t()(),Li(19,0,null,null,2,"div",[["class","alert alert-dark"]],null,null,null,null,null)),(t()(),Qi(20,null,[" > ","\n"])),is(0,Il,[])],function(t,e){var n=e.component;t(e,14,0,n.citiesControls),t(e,16,0,n.citiesControls.controls)},function(t,e){var n=e.component;t(e,20,0,Wn(e,20,0,Wr(e,21).transform(n.citiesControls.value)))})}function Xm(t){return Xi(0,[(t()(),Li(0,0,null,null,1,"app-sortable-form-array",[],null,null,null,Km,Qm)),ss(1,49152,null,0,Zm,[],null,null)],null,null)}var Jm=Mr("app-sortable-form-array",Zm,Xm,{},{},[]);class tv{constructor(){this.draggableItems=[{draggable:!0,text:"1"},{draggable:!0,text:"2"},{draggable:!1,text:"3"},{draggable:!0,text:"4"},{draggable:!0,text:"5"}],this.eventItems=["1","2","3","4","5"],this.eventUpdateCounter=0,this.scrollableItems=Array.from({length:30}).map((t,e)=>e+1),this.draggableOptions={draggable:".draggable"},this.eventOptions={onUpdate:()=>this.eventUpdateCounter++},this.scrollableOptions={scroll:!0,scrollSensitivity:100}}}var ev=Zn({encapsulation:0,styles:[[""]],data:{}});function nv(t){return Xi(0,[(t()(),Li(0,0,null,null,1,"li",[["class","list-group-item"]],[[2,"draggable",null],[2,"disabled",null]],null,null,null,null)),(t()(),Qi(1,null,[" Element "," "]))],null,function(t,e){t(e,0,0,e.context.$implicit.draggable,!e.context.$implicit.draggable),t(e,1,0,e.context.$implicit.text)})}function rv(t){return Xi(0,[(t()(),Li(0,0,null,null,1,"li",[["class","list-group-item"]],null,null,null,null,null)),(t()(),Qi(1,null,[" Element "," "]))],null,function(t,e){t(e,1,0,e.context.$implicit)})}function sv(t){return Xi(0,[(t()(),Li(0,0,null,null,1,"li",[["class","list-group-item"]],null,null,null,null,null)),(t()(),Qi(1,null,[" Element "," "]))],null,function(t,e){t(e,1,0,e.context.$implicit)})}function iv(t){return Xi(0,[(t()(),Li(0,0,null,null,1,"h1",[],null,null,null,null,null)),(t()(),Qi(-1,null,["Custom options"])),(t()(),Li(2,0,null,null,3,"p",[["class","lead"]],null,null,null,null,null)),(t()(),Li(3,0,null,null,2,"strong",[],null,null,null,null,null)),(t()(),Li(4,0,null,null,1,"a",[["href","https://github.com/SortableJS/ngx-sortablejs/tree/master/src/app/examples/sortable-with-options"],["target","_blank"]],null,null,null,null,null)),(t()(),Qi(-1,null,["The source code"])),(t()(),Qi(-1,null,[" This example shows how the various options could be used in order to configure "])),(t()(),Li(7,0,null,null,1,"em",[],null,null,null,null,null)),(t()(),Qi(-1,null,["Sortablejs"])),(t()(),Qi(-1,null,[". "])),(t()(),Li(10,0,null,null,1,"h2",[["class","mt-4 mb-3"]],null,null,null,null,null)),(t()(),Qi(-1,null,["Disabled options"])),(t()(),Li(12,0,null,null,3,"ul",[["class","list-group"]],null,null,null,null,null)),ss(13,737280,null,0,Qg,[[2,Wg],Zg,tn,Qs,on],{sortablejs:[0,"sortablejs"],sortablejsOptions:[1,"sortablejsOptions"]},null),(t()(),ji(16777216,null,null,1,null,nv)),ss(15,278528,null,0,xl,[On,kn,wn],{ngForOf:[0,"ngForOf"]},null),(t()(),Li(16,0,null,null,1,"p",[["class","my-3"]],null,null,null,null,null)),(t()(),Qi(-1,null,["and the actual model is"])),(t()(),Li(18,0,null,null,2,"div",[["class","alert alert-dark"]],null,null,null,null,null)),(t()(),Qi(19,null,[" > ","\n"])),is(0,Il,[]),(t()(),Li(21,0,null,null,1,"h2",[["class","mt-4 mb-3"]],null,null,null,null,null)),(t()(),Qi(-1,null,["Events"])),(t()(),Li(23,0,null,null,7,"p",[["class","my-3"]],null,null,null,null,null)),(t()(),Qi(-1,null,[" Binding to the events is easy. Any even could be attached as a property of "])),(t()(),Li(25,0,null,null,1,"em",[],null,null,null,null,null)),(t()(),Qi(-1,null,["Sortablejs"])),(t()(),Qi(-1,null,[". The example below binds to the "])),(t()(),Li(28,0,null,null,1,"em",[],null,null,null,null,null)),(t()(),Qi(-1,null,["onUpdate"])),(t()(),Qi(-1,null,[" event. Drag the items and track the amount of updates.\n"])),(t()(),Li(31,0,null,null,1,"div",[["class","alert alert-dark"]],null,null,null,null,null)),(t()(),Qi(32,null,[" > Updated "," times\n"])),(t()(),Li(33,0,null,null,3,"ul",[["class","list-group"]],null,null,null,null,null)),ss(34,737280,null,0,Qg,[[2,Wg],Zg,tn,Qs,on],{sortablejs:[0,"sortablejs"],sortablejsOptions:[1,"sortablejsOptions"]},null),(t()(),ji(16777216,null,null,1,null,rv)),ss(36,278528,null,0,xl,[On,kn,wn],{ngForOf:[0,"ngForOf"]},null),(t()(),Li(37,0,null,null,10,"div",[["class","alert alert-info my-3"]],null,null,null,null,null)),(t()(),Qi(-1,null,[" Hint: for the "])),(t()(),Li(39,0,null,null,1,"em",[],null,null,null,null,null)),(t()(),Qi(-1,null,["FormArray"])),(t()(),Qi(-1,null,[" using "])),(t()(),Li(42,0,null,null,1,"em",[],null,null,null,null,null)),(t()(),Qi(-1,null,["onUpdate"])),(t()(),Qi(-1,null,[" is kinda overhead because the "])),(t()(),Li(45,0,null,null,1,"em",[],null,null,null,null,null)),(t()(),Qi(-1,null,["FormArray.valueChanges"])),(t()(),Qi(-1,null,[" provides an event on every change.\n"])),(t()(),Li(48,0,null,null,1,"h2",[["class","mt-4 mb-3"]],null,null,null,null,null)),(t()(),Qi(-1,null,["Autoscroll with fixed navbar"])),(t()(),Li(50,0,null,null,4,"p",[],null,null,null,null,null)),(t()(),Qi(-1,null,[" Normally the scrolling that is performed by "])),(t()(),Li(52,0,null,null,1,"em",[],null,null,null,null,null)),(t()(),Qi(-1,null,["Sortablejs"])),(t()(),Qi(-1,null,[" is working fine. However with a fixed navbar it may cause problems.\n"])),(t()(),Li(55,0,null,null,4,"p",[],null,null,null,null,null)),(t()(),Qi(-1,null,[" Setting the "])),(t()(),Li(57,0,null,null,1,"em",[],null,null,null,null,null)),(t()(),Qi(-1,null,["scrollSensitivity"])),(t()(),Qi(-1,null,[" to the proper value will solve the problem. Try it on the long list below\n"])),(t()(),Li(60,0,null,null,3,"ul",[["class","list-group"]],null,null,null,null,null)),ss(61,737280,null,0,Qg,[[2,Wg],Zg,tn,Qs,on],{sortablejs:[0,"sortablejs"],sortablejsOptions:[1,"sortablejsOptions"]},null),(t()(),ji(16777216,null,null,1,null,sv)),ss(63,278528,null,0,xl,[On,kn,wn],{ngForOf:[0,"ngForOf"]},null)],function(t,e){var n=e.component;t(e,13,0,n.draggableItems,n.draggableOptions),t(e,15,0,n.draggableItems),t(e,34,0,n.eventItems,n.eventOptions),t(e,36,0,n.eventItems),t(e,61,0,n.scrollableItems,n.scrollableOptions),t(e,63,0,n.scrollableItems)},function(t,e){var n=e.component;t(e,19,0,Wn(e,19,0,Wr(e,20).transform(n.draggableItems))),t(e,32,0,n.eventUpdateCounter)})}function ov(t){return Xi(0,[(t()(),Li(0,0,null,null,1,"app-sortable-with-options",[],null,null,null,iv,ev)),ss(1,49152,null,0,tv,[],null,null)],null,null)}var lv=Mr("app-sortable-with-options",tv,ov,{},{},[]);class av{constructor(){this.normalList1=["1","2","3","4","5"],this.normalList2=["6","7","8","9","10"],this.normalOptions={group:"normal-group"},this.cloneList1=["1","2","3","4","5"],this.cloneList2=["6","7","8","9","10"],this.clone1Options={group:{name:"clone-group",pull:"clone",put:!1}},this.clone2Options={group:"clone-group"},this.list1=["1","2","3","4","5"],this.list2=["6","7","8","9","10"],this.list3=["11","12"],this.list4=["13"],this.list1Options={group:{name:"group1",put:!1}},this.list2Options={group:{name:"group2",put:["group1","group2"]}},this.list3Options={group:{name:"group2",pull:"clone",put:["group1","group2"],revertClone:!0}},this.list4Options={group:{name:"group2",put:["group1"]}}}}var uv=Zn({encapsulation:0,styles:[[".sortable[_ngcontent-%COMP%]{background:#eee;border-radius:.25rem;min-height:40px}"]],data:{}});function cv(t){return Xi(0,[(t()(),Li(0,0,null,null,1,"li",[["class","list-group-item"]],null,null,null,null,null)),(t()(),Qi(1,null,["Element ",""]))],null,function(t,e){t(e,1,0,e.context.$implicit)})}function hv(t){return Xi(0,[(t()(),Li(0,0,null,null,1,"li",[["class","list-group-item"]],null,null,null,null,null)),(t()(),Qi(1,null,["Element ",""]))],null,function(t,e){t(e,1,0,e.context.$implicit)})}function dv(t){return Xi(0,[(t()(),Li(0,0,null,null,1,"li",[["class","list-group-item"]],null,null,null,null,null)),(t()(),Qi(1,null,["Element ",""]))],null,function(t,e){t(e,1,0,e.context.$implicit)})}function pv(t){return Xi(0,[(t()(),Li(0,0,null,null,1,"li",[["class","list-group-item"]],null,null,null,null,null)),(t()(),Qi(1,null,["Element ",""]))],null,function(t,e){t(e,1,0,e.context.$implicit)})}function fv(t){return Xi(0,[(t()(),Li(0,0,null,null,1,"li",[["class","list-group-item"]],null,null,null,null,null)),(t()(),Qi(1,null,["Element ",""]))],null,function(t,e){t(e,1,0,e.context.$implicit)})}function gv(t){return Xi(0,[(t()(),Li(0,0,null,null,1,"li",[["class","list-group-item"]],null,null,null,null,null)),(t()(),Qi(1,null,["Element ",""]))],null,function(t,e){t(e,1,0,e.context.$implicit)})}function mv(t){return Xi(0,[(t()(),Li(0,0,null,null,1,"li",[["class","list-group-item"]],null,null,null,null,null)),(t()(),Qi(1,null,["Element ",""]))],null,function(t,e){t(e,1,0,e.context.$implicit)})}function vv(t){return Xi(0,[(t()(),Li(0,0,null,null,1,"li",[["class","list-group-item"]],null,null,null,null,null)),(t()(),Qi(1,null,["Element ",""]))],null,function(t,e){t(e,1,0,e.context.$implicit)})}function _v(t){return Xi(0,[(t()(),Li(0,0,null,null,1,"h1",[],null,null,null,null,null)),(t()(),Qi(-1,null,["Connecting multiple sortable lists"])),(t()(),Li(2,0,null,null,3,"p",[["class","lead"]],null,null,null,null,null)),(t()(),Li(3,0,null,null,2,"strong",[],null,null,null,null,null)),(t()(),Li(4,0,null,null,1,"a",[["href","https://github.com/SortableJS/ngx-sortablejs/tree/master/src/app/examples/multiple-lists"],["target","_blank"]],null,null,null,null,null)),(t()(),Qi(-1,null,["The source code"])),(t()(),Qi(-1,null,[" This shows how the "])),(t()(),Li(7,0,null,null,1,"em",[],null,null,null,null,null)),(t()(),Qi(-1,null,["sortable"])),(t()(),Qi(-1,null,[" lists can be connected together. Pay attention to the "])),(t()(),Li(10,0,null,null,1,"em",[],null,null,null,null,null)),(t()(),Qi(-1,null,["sortable"])),(t()(),Qi(-1,null,[" CSS class\n(gives a "])),(t()(),Li(13,0,null,null,1,"em",[],null,null,null,null,null)),(t()(),Qi(-1,null,["min-height"])),(t()(),Qi(-1,null,[") that does not allow lists to become invisible when all items are gone "])),(t()(),Li(16,0,null,null,1,"h2",[["class","mt-4 mb-3"]],null,null,null,null,null)),(t()(),Qi(-1,null,["Transfer between lists"])),(t()(),Li(18,0,null,null,1,"p",[],null,null,null,null,null)),(t()(),Qi(-1,null,[" These lists are connected together. You can drag / drop elements across the lists.\n"])),(t()(),Li(20,0,null,null,10,"div",[["class","row"]],null,null,null,null,null)),(t()(),Li(21,0,null,null,4,"div",[["class","col-sm-3"]],null,null,null,null,null)),(t()(),Li(22,0,null,null,3,"ul",[["class","list-group sortable"]],null,null,null,null,null)),ss(23,737280,null,0,Qg,[[2,Wg],Zg,tn,Qs,on],{sortablejs:[0,"sortablejs"],sortablejsOptions:[1,"sortablejsOptions"]},null),(t()(),ji(16777216,null,null,1,null,cv)),ss(25,278528,null,0,xl,[On,kn,wn],{ngForOf:[0,"ngForOf"]},null),(t()(),Li(26,0,null,null,4,"div",[["class","col-sm-3"]],null,null,null,null,null)),(t()(),Li(27,0,null,null,3,"ul",[["class","list-group sortable"]],null,null,null,null,null)),ss(28,737280,null,0,Qg,[[2,Wg],Zg,tn,Qs,on],{sortablejs:[0,"sortablejs"],sortablejsOptions:[1,"sortablejsOptions"]},null),(t()(),ji(16777216,null,null,1,null,hv)),ss(30,278528,null,0,xl,[On,kn,wn],{ngForOf:[0,"ngForOf"]},null),(t()(),Li(31,0,null,null,1,"p",[["class","my-3"]],null,null,null,null,null)),(t()(),Qi(-1,null,["and the actual state is"])),(t()(),Li(33,0,null,null,8,"div",[["class","row"]],null,null,null,null,null)),(t()(),Li(34,0,null,null,3,"div",[["class","col-sm-3"]],null,null,null,null,null)),(t()(),Li(35,0,null,null,2,"div",[["class","alert alert-dark"]],null,null,null,null,null)),(t()(),Qi(36,null,["> ",""])),is(0,Il,[]),(t()(),Li(38,0,null,null,3,"div",[["class","col-sm-3"]],null,null,null,null,null)),(t()(),Li(39,0,null,null,2,"div",[["class","alert alert-dark"]],null,null,null,null,null)),(t()(),Qi(40,null,["> ",""])),is(0,Il,[]),(t()(),Li(42,0,null,null,1,"h2",[["class","mt-4 mb-3"]],null,null,null,null,null)),(t()(),Qi(-1,null,["Clone items"])),(t()(),Li(44,0,null,null,1,"p",[],null,null,null,null,null)),(t()(),Qi(-1,null,["The list 1 is a clone factory and list 2 can be its target."])),(t()(),Li(46,0,null,null,10,"div",[["class","row"]],null,null,null,null,null)),(t()(),Li(47,0,null,null,4,"div",[["class","col-sm-3"]],null,null,null,null,null)),(t()(),Li(48,0,null,null,3,"ul",[["class","list-group sortable"]],null,null,null,null,null)),ss(49,737280,null,0,Qg,[[2,Wg],Zg,tn,Qs,on],{sortablejs:[0,"sortablejs"],sortablejsOptions:[1,"sortablejsOptions"]},null),(t()(),ji(16777216,null,null,1,null,dv)),ss(51,278528,null,0,xl,[On,kn,wn],{ngForOf:[0,"ngForOf"]},null),(t()(),Li(52,0,null,null,4,"div",[["class","col-sm-3"]],null,null,null,null,null)),(t()(),Li(53,0,null,null,3,"ul",[["class","list-group sortable"]],null,null,null,null,null)),ss(54,737280,null,0,Qg,[[2,Wg],Zg,tn,Qs,on],{sortablejs:[0,"sortablejs"],sortablejsOptions:[1,"sortablejsOptions"]},null),(t()(),ji(16777216,null,null,1,null,pv)),ss(56,278528,null,0,xl,[On,kn,wn],{ngForOf:[0,"ngForOf"]},null),(t()(),Li(57,0,null,null,1,"p",[["class","my-3"]],null,null,null,null,null)),(t()(),Qi(-1,null,["and the actual state is"])),(t()(),Li(59,0,null,null,8,"div",[["class","row"]],null,null,null,null,null)),(t()(),Li(60,0,null,null,3,"div",[["class","col-sm-3"]],null,null,null,null,null)),(t()(),Li(61,0,null,null,2,"div",[["class","alert alert-dark"]],null,null,null,null,null)),(t()(),Qi(62,null,["> ",""])),is(0,Il,[]),(t()(),Li(64,0,null,null,3,"div",[["class","col-sm-3"]],null,null,null,null,null)),(t()(),Li(65,0,null,null,2,"div",[["class","alert alert-dark"]],null,null,null,null,null)),(t()(),Qi(66,null,["> ",""])),is(0,Il,[]),(t()(),Li(68,0,null,null,1,"h2",[["class","mt-4 mb-3"]],null,null,null,null,null)),(t()(),Qi(-1,null,["Super complicated example"])),(t()(),Li(70,0,null,null,7,"p",[],null,null,null,null,null)),(t()(),Qi(-1,null,[" These lists are connected together. You can drag / drop elements across the lists. Pay attention to the "])),(t()(),Li(72,0,null,null,1,"em",[],null,null,null,null,null)),(t()(),Qi(-1,null,["sortable"])),(t()(),Qi(-1,null,[" CSS class (gives a "])),(t()(),Li(75,0,null,null,1,"em",[],null,null,null,null,null)),(t()(),Qi(-1,null,["min-height"])),(t()(),Qi(-1,null,[") that does not allow list to become invisible when all items are gone\n"])),(t()(),Li(78,0,null,null,31,"div",[["class","row"]],null,null,null,null,null)),(t()(),Li(79,0,null,null,6,"div",[["class","col-sm-3"]],null,null,null,null,null)),(t()(),Li(80,0,null,null,1,"strong",[],null,null,null,null,null)),(t()(),Qi(-1,null,["1. This list cannot accept items"])),(t()(),Li(82,0,null,null,3,"ul",[["class","mt-2 list-group sortable"]],null,null,null,null,null)),ss(83,737280,null,0,Qg,[[2,Wg],Zg,tn,Qs,on],{sortablejs:[0,"sortablejs"],sortablejsOptions:[1,"sortablejsOptions"]},null),(t()(),ji(16777216,null,null,1,null,fv)),ss(85,278528,null,0,xl,[On,kn,wn],{ngForOf:[0,"ngForOf"]},null),(t()(),Li(86,0,null,null,9,"div",[["class","col-sm-3"]],null,null,null,null,null)),(t()(),Li(87,0,null,null,4,"strong",[],null,null,null,null,null)),(t()(),Qi(-1,null,["2. This is a "])),(t()(),Li(89,0,null,null,1,"em",[],null,null,null,null,null)),(t()(),Qi(-1,null,["normal"])),(t()(),Qi(-1,null,[" list"])),(t()(),Li(92,0,null,null,3,"ul",[["class","mt-2 list-group sortable"]],null,null,null,null,null)),ss(93,737280,null,0,Qg,[[2,Wg],Zg,tn,Qs,on],{sortablejs:[0,"sortablejs"],sortablejsOptions:[1,"sortablejsOptions"]},null),(t()(),ji(16777216,null,null,1,null,gv)),ss(95,278528,null,0,xl,[On,kn,wn],{ngForOf:[0,"ngForOf"]},null),(t()(),Li(96,0,null,null,6,"div",[["class","col-sm-3"]],null,null,null,null,null)),(t()(),Li(97,0,null,null,1,"strong",[],null,null,null,null,null)),(t()(),Qi(-1,null,["3. This list clones its children"])),(t()(),Li(99,0,null,null,3,"ul",[["class","mt-2 list-group sortable"]],null,null,null,null,null)),ss(100,737280,null,0,Qg,[[2,Wg],Zg,tn,Qs,on],{sortablejs:[0,"sortablejs"],sortablejsOptions:[1,"sortablejsOptions"]},null),(t()(),ji(16777216,null,null,1,null,mv)),ss(102,278528,null,0,xl,[On,kn,wn],{ngForOf:[0,"ngForOf"]},null),(t()(),Li(103,0,null,null,6,"div",[["class","col-sm-3"]],null,null,null,null,null)),(t()(),Li(104,0,null,null,1,"strong",[],null,null,null,null,null)),(t()(),Qi(-1,null,["4. Only #1 can put here"])),(t()(),Li(106,0,null,null,3,"ul",[["class","mt-2 list-group sortable"]],null,null,null,null,null)),ss(107,737280,null,0,Qg,[[2,Wg],Zg,tn,Qs,on],{sortablejs:[0,"sortablejs"],sortablejsOptions:[1,"sortablejsOptions"]},null),(t()(),ji(16777216,null,null,1,null,vv)),ss(109,278528,null,0,xl,[On,kn,wn],{ngForOf:[0,"ngForOf"]},null),(t()(),Li(110,0,null,null,1,"p",[["class","my-3"]],null,null,null,null,null)),(t()(),Qi(-1,null,["and the actual state is"])),(t()(),Li(112,0,null,null,16,"div",[["class","row"]],null,null,null,null,null)),(t()(),Li(113,0,null,null,3,"div",[["class","col-sm-3"]],null,null,null,null,null)),(t()(),Li(114,0,null,null,2,"div",[["class","alert alert-dark"]],null,null,null,null,null)),(t()(),Qi(115,null,["> ",""])),is(0,Il,[]),(t()(),Li(117,0,null,null,3,"div",[["class","col-sm-3"]],null,null,null,null,null)),(t()(),Li(118,0,null,null,2,"div",[["class","alert alert-dark"]],null,null,null,null,null)),(t()(),Qi(119,null,["> ",""])),is(0,Il,[]),(t()(),Li(121,0,null,null,3,"div",[["class","col-sm-3"]],null,null,null,null,null)),(t()(),Li(122,0,null,null,2,"div",[["class","alert alert-dark"]],null,null,null,null,null)),(t()(),Qi(123,null,["> ",""])),is(0,Il,[]),(t()(),Li(125,0,null,null,3,"div",[["class","col-sm-3"]],null,null,null,null,null)),(t()(),Li(126,0,null,null,2,"div",[["class","alert alert-dark"]],null,null,null,null,null)),(t()(),Qi(127,null,["> ",""])),is(0,Il,[])],function(t,e){var n=e.component;t(e,23,0,n.normalList1,n.normalOptions),t(e,25,0,n.normalList1),t(e,28,0,n.normalList2,n.normalOptions),t(e,30,0,n.normalList2),t(e,49,0,n.cloneList1,n.clone1Options),t(e,51,0,n.cloneList1),t(e,54,0,n.cloneList2,n.clone2Options),t(e,56,0,n.cloneList2),t(e,83,0,n.list1,n.list1Options),t(e,85,0,n.list1),t(e,93,0,n.list2,n.list2Options),t(e,95,0,n.list2),t(e,100,0,n.list3,n.list3Options),t(e,102,0,n.list3),t(e,107,0,n.list4,n.list4Options),t(e,109,0,n.list4)},function(t,e){var n=e.component;t(e,36,0,Wn(e,36,0,Wr(e,37).transform(n.normalList1))),t(e,40,0,Wn(e,40,0,Wr(e,41).transform(n.normalList2))),t(e,62,0,Wn(e,62,0,Wr(e,63).transform(n.cloneList1))),t(e,66,0,Wn(e,66,0,Wr(e,67).transform(n.cloneList2))),t(e,115,0,Wn(e,115,0,Wr(e,116).transform(n.list1))),t(e,119,0,Wn(e,119,0,Wr(e,120).transform(n.list2))),t(e,123,0,Wn(e,123,0,Wr(e,124).transform(n.list3))),t(e,127,0,Wn(e,127,0,Wr(e,128).transform(n.list4)))})}function bv(t){return Xi(0,[(t()(),Li(0,0,null,null,1,"app-multiple-lists",[],null,null,null,_v,uv)),ss(1,49152,null,0,av,[],null,null)],null,null)}var wv=Mr("app-multiple-lists",av,bv,{},{},[]);class yv{constructor(){this.options={group:"test"}}}var Cv=Zn({encapsulation:0,styles:[[""]],data:{}});function Ev(t){return Xi(0,[(t()(),Li(0,0,null,null,1,"li",[["class","list-group-item"]],null,null,null,null,null)),(t()(),Qi(1,null,["Element ",""]))],null,function(t,e){t(e,1,0,e.context.$implicit)})}function Sv(t){return Xi(0,[(t()(),Li(0,0,null,null,3,"ul",[["class","list-group sortable"]],null,null,null,null,null)),ss(1,737280,null,0,Qg,[[2,Wg],Zg,tn,Qs,on],{sortablejs:[0,"sortablejs"],sortablejsOptions:[1,"sortablejsOptions"]},null),(t()(),ji(16777216,null,null,1,null,Ev)),ss(3,278528,null,0,xl,[On,kn,wn],{ngForOf:[0,"ngForOf"]},null)],function(t,e){var n=e.component;t(e,1,0,n.list,n.options),t(e,3,0,n.list)},null)}class xv{constructor(){this.list1=["1","2","3","4","5"],this.list2=["6","7","8","9","10"]}}var Tv=Zn({encapsulation:0,styles:[[""]],data:{}});function kv(t){return Xi(0,[(t()(),Li(0,0,null,null,1,"h1",[],null,null,null,null,null)),(t()(),Qi(-1,null,["Connecting multiple sortable lists in different components"])),(t()(),Li(2,0,null,null,6,"div",[["class","row"]],null,null,null,null,null)),(t()(),Li(3,0,null,null,2,"div",[["class","col-sm-3"]],null,null,null,null,null)),(t()(),Li(4,0,null,null,1,"app-child-component",[],null,null,null,Sv,Cv)),ss(5,49152,null,0,yv,[],{list:[0,"list"]},null),(t()(),Li(6,0,null,null,2,"div",[["class","col-sm-3"]],null,null,null,null,null)),(t()(),Li(7,0,null,null,1,"app-child-component",[],null,null,null,Sv,Cv)),ss(8,49152,null,0,yv,[],{list:[0,"list"]},null),(t()(),Li(9,0,null,null,1,"p",[["class","my-3"]],null,null,null,null,null)),(t()(),Qi(-1,null,["and the actual state is"])),(t()(),Li(11,0,null,null,8,"div",[["class","row"]],null,null,null,null,null)),(t()(),Li(12,0,null,null,3,"div",[["class","col-sm-3"]],null,null,null,null,null)),(t()(),Li(13,0,null,null,2,"div",[["class","alert alert-dark"]],null,null,null,null,null)),(t()(),Qi(14,null,["> ",""])),is(0,Il,[]),(t()(),Li(16,0,null,null,3,"div",[["class","col-sm-3"]],null,null,null,null,null)),(t()(),Li(17,0,null,null,2,"div",[["class","alert alert-dark"]],null,null,null,null,null)),(t()(),Qi(18,null,["> ",""])),is(0,Il,[])],function(t,e){var n=e.component;t(e,5,0,n.list1),t(e,8,0,n.list2)},function(t,e){var n=e.component;t(e,14,0,Wn(e,14,0,Wr(e,15).transform(n.list1))),t(e,18,0,Wn(e,18,0,Wr(e,19).transform(n.list2)))})}function Av(t){return Xi(0,[(t()(),Li(0,0,null,null,1,"app-cross-components-multiple-lists",[],null,null,null,kv,Tv)),ss(1,49152,null,0,xv,[],null,null)],null,null)}var Ov=Mr("app-cross-components-multiple-lists",xv,Av,{},{},[]),Iv=Zn({encapsulation:0,styles:[[""]],data:{}});function Rv(t){return Xi(0,[(t()(),Li(0,0,null,null,6,"div",[["class","dropdown-menu"]],null,null,null,null,null)),(t()(),Li(1,0,null,null,5,"a",[["class","dropdown-item"],["routerLink","tests/cross-components-multiple-list"],["routerLinkActive","active"]],[[1,"target",0],[8,"href",4]],[[null,"click"]],function(t,e,n){var r=!0;return"click"===e&&(r=!1!==Wr(t,2).onClick(n.button,n.ctrlKey,n.metaKey,n.shiftKey)&&r),r},null,null)),ss(2,671744,[[10,4]],0,dd,[cd,Jc,hl],{routerLink:[0,"routerLink"]},null),ss(3,1720320,null,2,fd,[cd,tn,on,[2,hd],[2,dd]],{routerLinkActive:[0,"routerLinkActive"]},null),zi(603979776,9,{links:1}),zi(603979776,10,{linksWithHrefs:1}),(t()(),Qi(-1,null,[" Cross-component multiple lists "]))],function(t,e){t(e,2,0,"tests/cross-components-multiple-list"),t(e,3,0,"active")},function(t,e){t(e,1,0,Wr(e,2).target,Wr(e,2).href)})}function Nv(t){return Xi(0,[(t()(),Li(0,16777216,null,null,7,"li",[["class","nav-item dropdown"],["dropdown",""]],[[2,"dropup",null],[2,"open",null],[2,"show",null]],null,null,null,null)),os(512,null,Up,Up,[]),ss(2,212992,null,0,Hp,[tn,on,On,Yd,Fp,Up],null,null),(t()(),Li(3,0,null,null,2,"a",[["class","nav-link dropdown-toggle"],["dropdownToggle",""]],[[1,"aria-haspopup",0],[1,"disabled",0],[1,"aria-expanded",0]],[[null,"click"]],function(t,e,n){var r=!0;return"click"===e&&(r=!1!==Wr(t,4).onClick()&&r),r},null,null)),ss(4,147456,null,0,Bp,[Cn,Hp,tn,on,Up],null,null),(t()(),Qi(-1,null,["Test cases"])),(t()(),ji(16777216,null,null,1,null,Rv)),ss(7,16384,null,0,zp,[Up,On,kn],null,null),(t()(),ji(0,null,null,0))],function(t,e){t(e,2,0)},function(t,e){t(e,0,0,Wr(e,2).dropup,Wr(e,2).isOpen,Wr(e,2).isOpen&&Wr(e,2).isBs4),t(e,3,0,!0,Wr(e,4).isDisabled,Wr(e,4).isOpen)})}function Dv(t){return Xi(0,[(t()(),Li(0,0,null,null,43,"nav",[["class","navbar navbar-expand-lg navbar-dark bg-dark fixed-top"]],null,null,null,null,null)),(t()(),Li(1,0,null,null,4,"a",[["class","navbar-brand"],["href","https://github.com/sortablejs/ngx-sortablejs"],["target","_blank"]],null,null,null,null,null)),(t()(),Li(2,0,null,null,0,"img",[["height","30"],["src","data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCAyNTAgMjUwIj4KICAgIDxwYXRoIGZpbGw9IiNERDAwMzEiIGQ9Ik0xMjUgMzBMMzEuOSA2My4ybDE0LjIgMTIzLjFMMTI1IDIzMGw3OC45LTQzLjcgMTQuMi0xMjMuMXoiIC8+CiAgICA8cGF0aCBmaWxsPSIjQzMwMDJGIiBkPSJNMTI1IDMwdjIyLjItLjFWMjMwbDc4LjktNDMuNyAxNC4yLTEyMy4xTDEyNSAzMHoiIC8+CiAgICA8cGF0aCAgZmlsbD0iI0ZGRkZGRiIgZD0iTTEyNSA1Mi4xTDY2LjggMTgyLjZoMjEuN2wxMS43LTI5LjJoNDkuNGwxMS43IDI5LjJIMTgzTDEyNSA1Mi4xem0xNyA4My4zaC0zNGwxNy00MC45IDE3IDQwLjl6IiAvPgogIDwvc3ZnPg=="],["width","30"]],null,null,null,null,null)),(t()(),Qi(-1,null,[" + "])),(t()(),Li(4,0,null,null,0,"img",[["height","30"],["src","assets/sortable-logo.png"],["width","30"]],null,null,null,null,null)),(t()(),Qi(-1,null,[" = ngx-sortablejs "])),(t()(),Li(6,0,null,null,1,"button",[["class","navbar-toggler"],["type","button"]],null,[[null,"click"]],function(t,e,n){var r=!0,s=t.component;return"click"===e&&(r=0!=(s.navbarCollapsed=!s.navbarCollapsed)&&r),r},null,null)),(t()(),Li(7,0,null,null,0,"span",[["class","navbar-toggler-icon"]],null,null,null,null,null)),(t()(),Li(8,0,null,null,35,"div",[["class","navbar-collapse"]],[[2,"collapse",null]],null,null,null,null)),(t()(),Li(9,0,null,null,30,"ul",[["class","navbar-nav mr-auto"]],null,null,null,null,null)),(t()(),Li(10,0,null,null,6,"li",[["class","nav-item"],["routerLinkActive","active"]],null,null,null,null,null)),ss(11,1720320,null,2,fd,[cd,tn,on,[2,hd],[2,dd]],{routerLinkActive:[0,"routerLinkActive"]},null),zi(603979776,1,{links:1}),zi(603979776,2,{linksWithHrefs:1}),(t()(),Li(14,0,null,null,2,"a",[["class","nav-link"],["routerLink","sortable-array"]],[[1,"target",0],[8,"href",4]],[[null,"click"]],function(t,e,n){var r=!0;return"click"===e&&(r=!1!==Wr(t,15).onClick(n.button,n.ctrlKey,n.metaKey,n.shiftKey)&&r),r},null,null)),ss(15,671744,[[2,4]],0,dd,[cd,Jc,hl],{routerLink:[0,"routerLink"]},null),(t()(),Qi(-1,null,["Simple sortable"])),(t()(),Li(17,0,null,null,6,"li",[["class","nav-item"],["routerLinkActive","active"]],null,null,null,null,null)),ss(18,1720320,null,2,fd,[cd,tn,on,[2,hd],[2,dd]],{routerLinkActive:[0,"routerLinkActive"]},null),zi(603979776,3,{links:1}),zi(603979776,4,{linksWithHrefs:1}),(t()(),Li(21,0,null,null,2,"a",[["class","nav-link"],["routerLink","sortable-form-array"]],[[1,"target",0],[8,"href",4]],[[null,"click"]],function(t,e,n){var r=!0;return"click"===e&&(r=!1!==Wr(t,22).onClick(n.button,n.ctrlKey,n.metaKey,n.shiftKey)&&r),r},null,null)),ss(22,671744,[[4,4]],0,dd,[cd,Jc,hl],{routerLink:[0,"routerLink"]},null),(t()(),Qi(-1,null,["FormArray"])),(t()(),Li(24,0,null,null,6,"li",[["class","nav-item"],["routerLinkActive","active"]],null,null,null,null,null)),ss(25,1720320,null,2,fd,[cd,tn,on,[2,hd],[2,dd]],{routerLinkActive:[0,"routerLinkActive"]},null),zi(603979776,5,{links:1}),zi(603979776,6,{linksWithHrefs:1}),(t()(),Li(28,0,null,null,2,"a",[["class","nav-link"],["routerLink","custom-options"]],[[1,"target",0],[8,"href",4]],[[null,"click"]],function(t,e,n){var r=!0;return"click"===e&&(r=!1!==Wr(t,29).onClick(n.button,n.ctrlKey,n.metaKey,n.shiftKey)&&r),r},null,null)),ss(29,671744,[[6,4]],0,dd,[cd,Jc,hl],{routerLink:[0,"routerLink"]},null),(t()(),Qi(-1,null,["Custom options"])),(t()(),Li(31,0,null,null,6,"li",[["class","nav-item"],["routerLinkActive","active"]],null,null,null,null,null)),ss(32,1720320,null,2,fd,[cd,tn,on,[2,hd],[2,dd]],{routerLinkActive:[0,"routerLinkActive"]},null),zi(603979776,7,{links:1}),zi(603979776,8,{linksWithHrefs:1}),(t()(),Li(35,0,null,null,2,"a",[["class","nav-link"],["routerLink","multiple-lists"]],[[1,"target",0],[8,"href",4]],[[null,"click"]],function(t,e,n){var r=!0;return"click"===e&&(r=!1!==Wr(t,36).onClick(n.button,n.ctrlKey,n.metaKey,n.shiftKey)&&r),r},null,null)),ss(36,671744,[[8,4]],0,dd,[cd,Jc,hl],{routerLink:[0,"routerLink"]},null),(t()(),Qi(-1,null,["Multiple lists"])),(t()(),ji(16777216,null,null,1,null,Nv)),ss(39,16384,null,0,kl,[On,kn],{ngIf:[0,"ngIf"]},null),(t()(),Li(40,0,null,null,3,"ul",[["class","navbar-nav ml-auto"]],null,null,null,null,null)),(t()(),Li(41,0,null,null,2,"li",[["class","nav-item"]],null,null,null,null,null)),(t()(),Li(42,0,null,null,1,"a",[["class","nav-link"],["href","https://github.com/sortablejs/ngx-sortablejs"],["target","_blank"]],null,null,null,null,null)),(t()(),Qi(-1,null,["Github"])),(t()(),Li(44,0,null,null,2,"div",[["class","container-fluid my-4"],["style","padding-top: 58px"]],null,null,null,null,null)),(t()(),Li(45,16777216,null,null,1,"router-outlet",[],null,null,null,null,null)),ss(46,212992,null,0,vd,[md,On,Ze,[8,null],Cn],null,null)],function(t,e){var n=e.component;t(e,11,0,"active"),t(e,15,0,"sortable-array"),t(e,18,0,"active"),t(e,22,0,"sortable-form-array"),t(e,25,0,"active"),t(e,29,0,"custom-options"),t(e,32,0,"active"),t(e,36,0,"multiple-lists"),t(e,39,0,n.showTestCases),t(e,46,0)},function(t,e){t(e,8,0,e.component.navbarCollapsed),t(e,14,0,Wr(e,15).target,Wr(e,15).href),t(e,21,0,Wr(e,22).target,Wr(e,22).href),t(e,28,0,Wr(e,29).target,Wr(e,29).href),t(e,35,0,Wr(e,36).target,Wr(e,36).href)})}function Mv(t){return Xi(0,[(t()(),Li(0,0,null,null,1,"app-root",[],null,null,null,Dv,Iv)),ss(1,49152,null,0,al,[],null,null)],null,null)}var Pv=Mr("app-root",al,Mv,{},{},[]);class Vv{}class jv{}var Lv=il(ll,[al],function(t){return function(t){const e={},n=[];let r=!1;for(let s=0;s(t[e.name]=e.token,t),{}))),()=>Za),Vd(e)];var n},[[2,ci],Pd]),xr(512,Ts,Ts,[[2,xs]]),xr(131584,gi,gi,[Qs,Ds,Nt,ee,Ze,Ts]),xr(1073742336,Vi,Vi,[gi]),xr(1073742336,Bu,Bu,[[3,Bu]]),xr(1024,xd,Rd,[[3,cd]]),xr(512,Rc,Nc,[]),xr(512,md,md,[]),xr(256,Sd,{},[]),xr(1024,hl,Id,[ul,[2,dl],Sd]),xr(512,pl,pl,[hl,ul]),xr(512,Fs,Fs,[]),xr(512,Ss,Ci,[Fs,[2,wi]]),xr(1024,rd,function(){return[[{path:"",pathMatch:"full",redirectTo:"sortable-array"},{path:"sortable-array",component:Kg},{path:"sortable-form-array",component:Zm},{path:"custom-options",component:tv},{path:"multiple-lists",component:av},{path:"tests/cross-components-multiple-list",component:xv}]]},[]),xr(1024,cd,Dd,[gi,Rc,md,pl,Nt,Ss,Fs,rd,Sd,[2,id],[2,ed]]),xr(1073742336,Ad,Ad,[[2,xd],[2,cd]]),xr(1073742336,Yg,Yg,[]),xr(1073742336,Wp,Wp,[]),xr(1073742336,Wm,Wm,[]),xr(1073742336,qm,qm,[]),xr(1073742336,Vv,Vv,[]),xr(1073742336,jv,jv,[]),xr(1073742336,ll,ll,[]),xr(256,He,!0,[]),xr(256,Wg,{animation:200},[]),xr(256,Fp,{autoClose:!0,insideClick:!1},[])])});(function(){if(re)throw new Error("Cannot enable prod mode after platform setup.");ne=!1})(),Hu().bootstrapModuleFactory(Lv).catch(t=>console.error(t))},zn8P:function(t,e){function n(t){return Promise.resolve().then(function(){var e=new Error("Cannot find module '"+t+"'");throw e.code="MODULE_NOT_FOUND",e})}n.keys=function(){return[]},n.resolve=n,t.exports=n,n.id="zn8P"}},[[0,0]]]);
\ No newline at end of file
diff --git a/docs/main-es5.d9a8f22b69355353ed09.js b/docs/main-es5.d9a8f22b69355353ed09.js
deleted file mode 100644
index 45d5028..0000000
--- a/docs/main-es5.d9a8f22b69355353ed09.js
+++ /dev/null
@@ -1 +0,0 @@
-(window.webpackJsonp=window.webpackJsonp||[]).push([[1],{0:function(t,e,n){t.exports=n("zUnb")},zUnb:function(t,e,n){"use strict";n.r(e);var r=function(t,e){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(t,e)};function o(t,e){function n(){this.constructor=t}r(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}var i=function(){return(i=Object.assign||function(t){for(var e,n=1,r=arguments.length;n=0;a--)(o=t[a])&&(l=(i<3?o(l):i>3?o(e,n,l):o(e,n))||l);return i>3&&l&&Object.defineProperty(e,n,l),l}function a(t,e){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(t,e)}function u(t){var e="function"==typeof Symbol&&t[Symbol.iterator],n=0;return e?e.call(t):{next:function(){return t&&n>=t.length&&(t=void 0),{value:t&&t[n++],done:!t}}}}function s(t,e){var n="function"==typeof Symbol&&t[Symbol.iterator];if(!n)return t;var r,o,i=n.call(t),l=[];try{for(;(void 0===e||e-- >0)&&!(r=i.next()).done;)l.push(r.value)}catch(a){o={error:a}}finally{try{r&&!r.done&&(n=i.return)&&n.call(i)}finally{if(o)throw o.error}}return l}function c(){for(var t=[],e=0;e0?this._next(e.shift()):0===this.active&&this.hasCompleted&&this.destination.complete()},e}(Y);function ot(t){return t}function it(t){return void 0===t&&(t=Number.POSITIVE_INFINITY),et(ot,t)}function lt(){for(var t=[],e=0;e1&&"number"==typeof t[t.length-1]&&(n=t.pop())):"number"==typeof o&&(n=t.pop()),null===r&&1===t.length&&t[0]instanceof A?t[0]:it(n)(J(t,r))}function at(){return function(t){return t.lift(new ut(t))}}var ut=function(){function t(t){this.connectable=t}return t.prototype.call=function(t,e){var n=this.connectable;n._refCount++;var r=new st(t,n),o=e.subscribe(r);return r.closed||(r.connection=n.connect()),o},t}(),st=function(t){function e(e,n){var r=t.call(this,e)||this;return r.connectable=n,r}return o(e,t),e.prototype._unsubscribe=function(){var t=this.connectable;if(t){this.connectable=null;var e=t._refCount;if(e<=0)this.connection=null;else if(t._refCount=e-1,e>1)this.connection=null;else{var n=this.connection,r=t._connection;this.connection=null,!r||n&&r!==n||r.unsubscribe()}}else this.connection=null},e}(E),ct=function(t){function e(e,n){var r=t.call(this)||this;return r.source=e,r.subjectFactory=n,r._refCount=0,r._isComplete=!1,r}return o(e,t),e.prototype._subscribe=function(t){return this.getSubject().subscribe(t)},e.prototype.getSubject=function(){var t=this._subject;return t&&!t.isStopped||(this._subject=this.subjectFactory()),this._subject},e.prototype.connect=function(){var t=this._connection;return t||(this._isComplete=!1,(t=this._connection=new v).add(this.source.subscribe(new pt(this.getSubject(),this))),t.closed?(this._connection=null,t=v.EMPTY):this._connection=t),t},e.prototype.refCount=function(){return at()(this)},e}(A).prototype,ht={operator:{value:null},_refCount:{value:0,writable:!0},_subject:{value:null,writable:!0},_connection:{value:null,writable:!0},_subscribe:{value:ct._subscribe},_isComplete:{value:ct._isComplete,writable:!0},getSubject:{value:ct.getSubject},connect:{value:ct.connect},refCount:{value:ct.refCount}},pt=function(t){function e(e,n){var r=t.call(this,e)||this;return r.connectable=n,r}return o(e,t),e.prototype._error=function(e){this._unsubscribe(),t.prototype._error.call(this,e)},e.prototype._complete=function(){this.connectable._isComplete=!0,this._unsubscribe(),t.prototype._complete.call(this)},e.prototype._unsubscribe=function(){var t=this.connectable;if(t){this.connectable=null;var e=t._connection;t._refCount=0,t._subject=null,t._connection=null,e&&e.unsubscribe()}},e}(D);function ft(){return new M}var dt="__parameters__",gt="__prop__metadata__";function vt(t){return function(){for(var e=[],n=0;n ");else if("object"==typeof e){var i=[];for(var l in e)if(e.hasOwnProperty(l)){var a=e[l];i.push(l+":"+("string"==typeof a?JSON.stringify(a):kt(a)))}o="{"+i.join(", ")+"}"}return n+(r?"("+r+")":"")+"["+o+"]: "+t.replace(Yt,"\n ")}function te(t,e){return new Error(Jt(t,e,"StaticInjectorError"))}var ee="ngDebugContext",ne="ngOriginalError",re="ngErrorLogger",oe=new Lt("AnalyzeForEntryComponents"),ie=function(t){return t[t.Emulated=0]="Emulated",t[t.Native=1]="Native",t[t.None=2]="None",t[t.ShadowDom=3]="ShadowDom",t}({}),le=function(){return("undefined"!=typeof requestAnimationFrame&&requestAnimationFrame||setTimeout).bind(Dt)}();function ae(t){return t[ee]}function ue(t){return t[ne]}function se(t){for(var e=[],n=1;n ',!this.inertBodyElement.querySelector||this.inertBodyElement.querySelector("svg")?(this.inertBodyElement.innerHTML=' ',this.getInertBodyElement=this.inertBodyElement.querySelector&&this.inertBodyElement.querySelector("svg img")&&function(){try{return!!window.DOMParser}catch(t){return!1}}()?this.getInertBodyElement_DOMParser:this.getInertBodyElement_InertDocument):this.getInertBodyElement=this.getInertBodyElement_XHR}return t.prototype.getInertBodyElement_XHR=function(t){t="
"+t+"";try{t=encodeURI(t)}catch(r){return null}var e=new XMLHttpRequest;e.responseType="document",e.open("GET","data:text/html;charset=utf-8,"+t,!1),e.send(void 0);var n=e.response.body;return n.removeChild(n.firstChild),n},t.prototype.getInertBodyElement_DOMParser=function(t){t=" "+t+"";try{var e=(new window.DOMParser).parseFromString(t,"text/html").body;return e.removeChild(e.firstChild),e}catch(n){return null}},t.prototype.getInertBodyElement_InertDocument=function(t){var e=this.inertDocument.createElement("template");return"content"in e?(e.innerHTML=t,e):(this.inertBodyElement.innerHTML=t,this.defaultDoc.documentMode&&this.stripCustomNsAttrs(this.inertBodyElement),this.inertBodyElement)},t.prototype.stripCustomNsAttrs=function(t){for(var e=t.attributes,n=e.length-1;0"),!0},t.prototype.endElement=function(t){var e=t.nodeName.toLowerCase();xe.hasOwnProperty(e)&&!we.hasOwnProperty(e)&&(this.buf.push(""),this.buf.push(e),this.buf.push(">"))},t.prototype.chars=function(t){this.buf.push(Ne(t))},t.prototype.checkClobberedElement=function(t,e){if(e&&(t.compareDocumentPosition(e)&Node.DOCUMENT_POSITION_CONTAINED_BY)===Node.DOCUMENT_POSITION_CONTAINED_BY)throw new Error("Failed to sanitize html because the element is clobbered: "+t.outerHTML);return e},t}(),Pe=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,Re=/([^\#-~ |!])/g;function Ne(t){return t.replace(/&/g,"&").replace(Pe,function(t){return""+(1024*(t.charCodeAt(0)-55296)+(t.charCodeAt(1)-56320)+65536)+";"}).replace(Re,function(t){return""+t.charCodeAt(0)+";"}).replace(//g,">")}function De(t){return"content"in t&&function(t){return t.nodeType===Node.ELEMENT_NODE&&"TEMPLATE"===t.nodeName}(t)?t.content:null}var Me=function(t){return t[t.NONE=0]="NONE",t[t.HTML=1]="HTML",t[t.STYLE=2]="STYLE",t[t.SCRIPT=3]="SCRIPT",t[t.URL=4]="URL",t[t.RESOURCE_URL=5]="RESOURCE_URL",t}({}),je=function(){return function(){}}(),Ve=new RegExp("^([-,.\"'%_!# a-zA-Z0-9]+|(?:(?:matrix|translate|scale|rotate|skew|perspective)(?:X|Y|3d)?|(?:rgb|hsl)a?|(?:repeating-)?(?:linear|radial)-gradient|(?:calc|attr))\\([-0-9.%, #a-zA-Z]+\\))$","g"),Le=/^url\(([^)]+)\)$/,Fe=/([A-Z])/g;function Ue(t){try{return null!=t?t.toString().slice(0,30):t}catch(e){return"[ERROR] Exception while trying to serialize the value"}}function He(t){return!!t&&"function"==typeof t.then}function ze(t){return!!t&&"function"==typeof t.subscribe}var Be=null;function We(){if(!Be){var t=Dt.Symbol;if(t&&t.iterator)Be=t.iterator;else for(var e=Object.getOwnPropertyNames(Map.prototype),n=0;n-1}(r)||"root"===o.providedIn&&r._def.isRoot))){var c=t._providers.length;return t._def.providers[c]=t._def.providersByKey[e.tokenKey]={flags:5120,value:a.factory,deps:[],index:c,token:e.token},t._providers[c]=Ar,t._providers[c]=Mr(t,t._def.providersByKey[e.tokenKey])}return 4&e.flags?n:t._parent.get(e.token,n)}finally{jt(i)}}function Mr(t,e){var n;switch(201347067&e.flags){case 512:n=function(t,e,n){var r=n.length;switch(r){case 0:return new e;case 1:return new e(Dr(t,n[0]));case 2:return new e(Dr(t,n[0]),Dr(t,n[1]));case 3:return new e(Dr(t,n[0]),Dr(t,n[1]),Dr(t,n[2]));default:for(var o=new Array(r),i=0;i=n.length)&&(e=n.length-1),e<0)return null;var r=n[e];return r.viewContainerParent=null,Ur(n,e),Yn.dirtyParentQueries(r),Lr(r),r}function Vr(t,e,n){var r=e?pr(e,e.def.lastRenderRootNode):t.renderElement,o=n.renderer.parentNode(r),i=n.renderer.nextSibling(r);wr(n,2,o,i,void 0)}function Lr(t){wr(t,3,null,null,void 0)}function Fr(t,e,n){e>=t.length?t.push(n):t.splice(e,0,n)}function Ur(t,e){e>=t.length-1?t.pop():t.splice(e,1)}var Hr=new Object;function zr(t,e,n,r,o,i){return new Br(t,e,n,r,o,i)}var Br=function(t){function e(e,n,r,o,i,l){var a=t.call(this)||this;return a.selector=e,a.componentType=n,a._inputs=o,a._outputs=i,a.ngContentSelectors=l,a.viewDefFactory=r,a}return o(e,t),Object.defineProperty(e.prototype,"inputs",{get:function(){var t=[],e=this._inputs;for(var n in e)t.push({propName:n,templateName:e[n]});return t},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"outputs",{get:function(){var t=[];for(var e in this._outputs)t.push({propName:e,templateName:this._outputs[e]});return t},enumerable:!0,configurable:!0}),e.prototype.create=function(t,e,n,r){if(!r)throw new Error("ngModule should be provided");var o=_r(this.viewDefFactory),i=o.nodes[0].element.componentProvider.nodeIndex,l=Yn.createRootView(t,e||[],n,o,r,Hr),a=qn(l,i).instance;return n&&l.renderer.setAttribute(Gn(l,0).renderElement,"ng-version",mn.full),new Wr(l,new Qr(l),a)},e}(Je),Wr=function(t){function e(e,n,r){var o=t.call(this)||this;return o._view=e,o._viewRef=n,o._component=r,o._elDef=o._view.def.nodes[0],o.hostView=n,o.changeDetectorRef=n,o.instance=r,o}return o(e,t),Object.defineProperty(e.prototype,"location",{get:function(){return new cn(Gn(this._view,this._elDef.nodeIndex).renderElement)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"injector",{get:function(){return new Xr(this._view,this._elDef)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"componentType",{get:function(){return this._component.constructor},enumerable:!0,configurable:!0}),e.prototype.destroy=function(){this._viewRef.destroy()},e.prototype.onDestroy=function(t){this._viewRef.onDestroy(t)},e}(Xe);function Gr(t,e,n){return new qr(t,e,n)}var qr=function(){function t(t,e,n){this._view=t,this._elDef=e,this._data=n,this._embeddedViews=[]}return Object.defineProperty(t.prototype,"element",{get:function(){return new cn(this._data.renderElement)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"injector",{get:function(){return new Xr(this._view,this._elDef)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"parentInjector",{get:function(){for(var t=this._view,e=this._elDef.parent;!e&&t;)e=hr(t),t=t.parent;return t?new Xr(t,e):new Xr(this._view,null)},enumerable:!0,configurable:!0}),t.prototype.clear=function(){for(var t=this._embeddedViews.length-1;t>=0;t--){var e=jr(this._data,t);Yn.destroyView(e)}},t.prototype.get=function(t){var e=this._embeddedViews[t];if(e){var n=new Qr(e);return n.attachToViewContainerRef(this),n}return null},Object.defineProperty(t.prototype,"length",{get:function(){return this._embeddedViews.length},enumerable:!0,configurable:!0}),t.prototype.createEmbeddedView=function(t,e,n){var r=t.createEmbeddedView(e||{});return this.insert(r,n),r},t.prototype.createComponent=function(t,e,n,r,o){var i=n||this.parentInjector;o||t instanceof ln||(o=i.get(an));var l=t.create(i,r,void 0,o);return this.insert(l.hostView,e),l},t.prototype.insert=function(t,e){if(t.destroyed)throw new Error("Cannot insert a destroyed View in a ViewContainer!");var n,r,o,i,l=t;return i=(n=this._data).viewContainer._embeddedViews,null==(r=e)&&(r=i.length),(o=l._view).viewContainerParent=this._view,Fr(i,r,o),function(t,e){var n=cr(e);if(n&&n!==t&&!(16&e.state)){e.state|=16;var r=n.template._projectedViews;r||(r=n.template._projectedViews=[]),r.push(e),function(t,n){if(!(4&n.flags)){e.parent.def.nodeFlags|=4,n.flags|=4;for(var r=n.parent;r;)r.childFlags|=4,r=r.parent}}(0,e.parentNodeDef)}}(n,o),Yn.dirtyParentQueries(o),Vr(n,r>0?i[r-1]:null,o),l.attachToViewContainerRef(this),t},t.prototype.move=function(t,e){if(t.destroyed)throw new Error("Cannot move a destroyed View in a ViewContainer!");var n,r,o,i,l,a=this._embeddedViews.indexOf(t._view);return o=e,l=(i=(n=this._data).viewContainer._embeddedViews)[r=a],Ur(i,r),null==o&&(o=i.length),Fr(i,o,l),Yn.dirtyParentQueries(l),Lr(l),Vr(n,o>0?i[o-1]:null,l),t},t.prototype.indexOf=function(t){return this._embeddedViews.indexOf(t._view)},t.prototype.remove=function(t){var e=jr(this._data,t);e&&Yn.destroyView(e)},t.prototype.detach=function(t){var e=jr(this._data,t);return e?new Qr(e):null},t}();function Zr(t){return new Qr(t)}var Qr=function(){function t(t){this._view=t,this._viewContainerRef=null,this._appRef=null}return Object.defineProperty(t.prototype,"rootNodes",{get:function(){return wr(this._view,0,void 0,void 0,t=[]),t;var t},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"context",{get:function(){return this._view.context},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"destroyed",{get:function(){return 0!=(128&this._view.state)},enumerable:!0,configurable:!0}),t.prototype.markForCheck=function(){ar(this._view)},t.prototype.detach=function(){this._view.state&=-5},t.prototype.detectChanges=function(){var t=this._view.root.rendererFactory;t.begin&&t.begin();try{Yn.checkAndUpdateView(this._view)}finally{t.end&&t.end()}},t.prototype.checkNoChanges=function(){Yn.checkNoChangesView(this._view)},t.prototype.reattach=function(){this._view.state|=4},t.prototype.onDestroy=function(t){this._view.disposables||(this._view.disposables=[]),this._view.disposables.push(t)},t.prototype.destroy=function(){this._appRef?this._appRef.detachView(this):this._viewContainerRef&&this._viewContainerRef.detach(this._viewContainerRef.indexOf(this)),Yn.destroyView(this._view)},t.prototype.detachFromAppRef=function(){this._appRef=null,Lr(this._view),Yn.dirtyParentQueries(this._view)},t.prototype.attachToAppRef=function(t){if(this._viewContainerRef)throw new Error("This view is already attached to a ViewContainer!");this._appRef=t},t.prototype.attachToViewContainerRef=function(t){if(this._appRef)throw new Error("This view is already attached directly to the ApplicationRef!");this._viewContainerRef=t},t}();function Yr(t,e){return new $r(t,e)}var $r=function(t){function e(e,n){var r=t.call(this)||this;return r._parentView=e,r._def=n,r}return o(e,t),e.prototype.createEmbeddedView=function(t){return new Qr(Yn.createEmbeddedView(this._parentView,this._def,this._def.element.template,t))},Object.defineProperty(e.prototype,"elementRef",{get:function(){return new cn(Gn(this._parentView,this._def.nodeIndex).renderElement)},enumerable:!0,configurable:!0}),e}(Mn);function Kr(t,e){return new Xr(t,e)}var Xr=function(){function t(t,e){this.view=t,this.elDef=e}return t.prototype.get=function(t,e){return void 0===e&&(e=Bt.THROW_IF_NOT_FOUND),Yn.resolveDep(this.view,this.elDef,!!this.elDef&&0!=(33554432&this.elDef.flags),{flags:0,token:t,tokenKey:Xn(t)},e)},t}();function Jr(t,e){var n=t.def.nodes[e];if(1&n.flags){var r=Gn(t,n.nodeIndex);return n.element.template?r.template:r.renderElement}if(2&n.flags)return Wn(t,n.nodeIndex).renderText;if(20240&n.flags)return qn(t,n.nodeIndex).instance;throw new Error("Illegal state: read nodeValue for node index "+e)}function to(t){return new eo(t.renderer)}var eo=function(){function t(t){this.delegate=t}return t.prototype.selectRootElement=function(t){return this.delegate.selectRootElement(t)},t.prototype.createElement=function(t,e){var n=s(Tr(e),2),r=this.delegate.createElement(n[1],n[0]);return t&&this.delegate.appendChild(t,r),r},t.prototype.createViewRoot=function(t){return t},t.prototype.createTemplateAnchor=function(t){var e=this.delegate.createComment("");return t&&this.delegate.appendChild(t,e),e},t.prototype.createText=function(t,e){var n=this.delegate.createText(e);return t&&this.delegate.appendChild(t,n),n},t.prototype.projectNodes=function(t,e){for(var n=0;n0,e.provider.value,e.provider.deps);if(e.outputs.length)for(var r=0;r0,r=e.provider;switch(201347067&e.flags){case 512:return Co(t,e.parent,n,r.value,r.deps);case 1024:return function(t,e,n,r,o){var i=o.length;switch(i){case 0:return r();case 1:return r(So(t,e,n,o[0]));case 2:return r(So(t,e,n,o[0]),So(t,e,n,o[1]));case 3:return r(So(t,e,n,o[0]),So(t,e,n,o[1]),So(t,e,n,o[2]));default:for(var l=Array(i),a=0;a0&&(o=setTimeout(function(){r._callbacks=r._callbacks.filter(function(t){return t.timeoutId!==o}),t(r._didWork,r.getPendingTasks())},e)),this._callbacks.push({doneCb:t,timeoutId:o,updateCb:n})},t.prototype.whenStable=function(t,e,n){if(n&&!this.taskTrackingZone)throw new Error('Task tracking zone is required when passing an update callback to whenStable(). Is "zone.js/dist/task-tracking.js" loaded?');this.addCallback(t,e,n),this._runCallbacksIfReady()},t.prototype.getPendingRequestCount=function(){return this._pendingCount},t.prototype.findProviders=function(t,e,n){return[]},t}(),vi=function(){function t(){this._applications=new Map,mi.addToWindow(this)}return t.prototype.registerApplication=function(t,e){this._applications.set(t,e)},t.prototype.unregisterApplication=function(t){this._applications.delete(t)},t.prototype.unregisterAllApplications=function(){this._applications.clear()},t.prototype.getTestability=function(t){return this._applications.get(t)||null},t.prototype.getAllTestabilities=function(){return Array.from(this._applications.values())},t.prototype.getAllRootElements=function(){return Array.from(this._applications.keys())},t.prototype.findTestabilityInTree=function(t,e){return void 0===e&&(e=!0),mi.findTestabilityInTree(this,t,e)},l([a("design:paramtypes",[])],t)}(),mi=new(function(){function t(){}return t.prototype.addToWindow=function(t){},t.prototype.findTestabilityInTree=function(t,e,n){return null},t}()),yi=new Lt("AllowMultipleToken"),bi=function(){return function(t,e){this.name=t,this.token=e}}();function _i(t,e,n){void 0===n&&(n=[]);var r="Platform: "+e,o=new Lt(r);return function(e){void 0===e&&(e=[]);var i=wi();if(!i||i.injector.get(yi,!1))if(t)t(n.concat(e).concat({provide:o,useValue:!0}));else{var l=n.concat(e).concat({provide:o,useValue:!0});!function(t){if(fi&&!fi.destroyed&&!fi.injector.get(yi,!1))throw new Error("There can be only one platform. Destroy the previous one to create a new one.");fi=t.get(Ci);var e=t.get(Ho,null);e&&e.forEach(function(t){return t()})}(Bt.create({providers:l,name:r}))}return function(t){var e=wi();if(!e)throw new Error("No platform exists!");if(!e.injector.get(t,null))throw new Error("A platform with a different configuration has been created. Please destroy it first.");return e}(o)}}function wi(){return fi&&!fi.destroyed?fi:null}var Ci=function(){function t(t){this._injector=t,this._modules=[],this._destroyListeners=[],this._destroyed=!1}return t.prototype.bootstrapModuleFactory=function(t,e){var n,r=this,o="noop"===(n=e?e.ngZone:void 0)?new di:("zone.js"===n?void 0:n)||new ai({enableLongStackTrace:fe()}),i=[{provide:ai,useValue:o}];return o.run(function(){var e=Bt.create({providers:i,parent:r.injector,name:t.moduleType.name}),n=t.create(e),l=n.injector.get(ce,null);if(!l)throw new Error("No ErrorHandler. Is platform module (BrowserModule) included?");return n.onDestroy(function(){return xi(r._modules,n)}),o.runOutsideAngular(function(){return o.onError.subscribe({next:function(t){l.handleError(t)}})}),function(t,e,o){try{var i=((l=n.injector.get(Vo)).runInitializers(),l.donePromise.then(function(){return r._moduleDoBootstrap(n),n}));return He(i)?i.catch(function(n){throw e.runOutsideAngular(function(){return t.handleError(n)}),n}):i}catch(a){throw e.runOutsideAngular(function(){return t.handleError(a)}),a}var l}(l,o)})},t.prototype.bootstrapModule=function(t,e){var n=this;void 0===e&&(e=[]);var r=Ei({},e);return function(t,e,n){return t.get(Jo).createCompiler([e]).compileModuleAsync(n)}(this.injector,r,t).then(function(t){return n.bootstrapModuleFactory(t,r)})},t.prototype._moduleDoBootstrap=function(t){var e=t.injector.get(Si);if(t._bootstrapComponents.length>0)t._bootstrapComponents.forEach(function(t){return e.bootstrap(t)});else{if(!t.instance.ngDoBootstrap)throw new Error("The module "+kt(t.instance.constructor)+' was bootstrapped, but it does not declare "@NgModule.bootstrap" components nor a "ngDoBootstrap" method. Please define one of these.');t.instance.ngDoBootstrap(e)}this._modules.push(t)},t.prototype.onDestroy=function(t){this._destroyListeners.push(t)},Object.defineProperty(t.prototype,"injector",{get:function(){return this._injector},enumerable:!0,configurable:!0}),t.prototype.destroy=function(){if(this._destroyed)throw new Error("The platform has already been destroyed!");this._modules.slice().forEach(function(t){return t.destroy()}),this._destroyListeners.forEach(function(t){return t()}),this._destroyed=!0},Object.defineProperty(t.prototype,"destroyed",{get:function(){return this._destroyed},enumerable:!0,configurable:!0}),t}();function Ei(t,e){return Array.isArray(e)?e.reduce(Ei,t):i({},t,e)}var Si=function(){function t(t,e,n,r,o,i){var l=this;this._zone=t,this._console=e,this._injector=n,this._exceptionHandler=r,this._componentFactoryResolver=o,this._initStatus=i,this._bootstrapListeners=[],this._views=[],this._runningTick=!1,this._enforceNoNewChanges=!1,this._stable=!0,this.componentTypes=[],this.components=[],this._enforceNoNewChanges=fe(),this._zone.onMicrotaskEmpty.subscribe({next:function(){l._zone.run(function(){l.tick()})}});var a=new A(function(t){l._stable=l._zone.isStable&&!l._zone.hasPendingMacrotasks&&!l._zone.hasPendingMicrotasks,l._zone.runOutsideAngular(function(){t.next(l._stable),t.complete()})}),u=new A(function(t){var e;l._zone.runOutsideAngular(function(){e=l._zone.onStable.subscribe(function(){ai.assertNotInAngularZone(),li(function(){l._stable||l._zone.hasPendingMacrotasks||l._zone.hasPendingMicrotasks||(l._stable=!0,t.next(!0))})})});var n=l._zone.onUnstable.subscribe(function(){ai.assertInAngularZone(),l._stable&&(l._stable=!1,l._zone.runOutsideAngular(function(){t.next(!1)}))});return function(){e.unsubscribe(),n.unsubscribe()}});this.isStable=lt(a,u.pipe(function(t){return at()((e=ft,function(t){var n;n="function"==typeof e?e:function(){return e};var r=Object.create(t,ht);return r.source=t,r.subjectFactory=n,r})(t));var e}))}var e;return e=t,t.prototype.bootstrap=function(t,e){var n,r=this;if(!this._initStatus.done)throw new Error("Cannot bootstrap as there are still asynchronous initializers running. Bootstrap components in the `ngDoBootstrap` method of the root module.");n=t instanceof Je?t:this._componentFactoryResolver.resolveComponentFactory(t),this.componentTypes.push(n.componentType);var o=n instanceof ln?null:this._injector.get(an),i=n.create(Bt.NULL,[],e||n.selector,o);i.onDestroy(function(){r._unloadComponent(i)});var l=i.injector.get(gi,null);return l&&i.injector.get(vi).registerApplication(i.location.nativeElement,l),this._loadComponent(i),fe()&&this._console.log("Angular is running in the development mode. Call enableProdMode() to enable the production mode."),i},t.prototype.tick=function(){var t,n,r,o,i=this;if(this._runningTick)throw new Error("ApplicationRef.tick is called recursively");var l=e._tickScope();try{this._runningTick=!0;try{for(var a=u(this._views),s=a.next();!s.done;s=a.next())s.value.detectChanges()}catch(p){t={error:p}}finally{try{s&&!s.done&&(n=a.return)&&n.call(a)}finally{if(t)throw t.error}}if(this._enforceNoNewChanges)try{for(var c=u(this._views),h=c.next();!h.done;h=c.next())h.value.checkNoChanges()}catch(f){r={error:f}}finally{try{h&&!h.done&&(o=c.return)&&o.call(c)}finally{if(r)throw r.error}}}catch(d){this._zone.runOutsideAngular(function(){return i._exceptionHandler.handleError(d)})}finally{this._runningTick=!1,oi(l)}},t.prototype.attachView=function(t){var e=t;this._views.push(e),e.attachToAppRef(this)},t.prototype.detachView=function(t){var e=t;xi(this._views,e),e.detachFromAppRef()},t.prototype._loadComponent=function(t){this.attachView(t.hostView),this.tick(),this.components.push(t),this._injector.get(Bo,[]).concat(this._bootstrapListeners).forEach(function(e){return e(t)})},t.prototype._unloadComponent=function(t){this.detachView(t.hostView),xi(this.components,t)},t.prototype.ngOnDestroy=function(){this._views.slice().forEach(function(t){return t.destroy()})},Object.defineProperty(t.prototype,"viewCount",{get:function(){return this._views.length},enumerable:!0,configurable:!0}),t._tickScope=ri("ApplicationRef#tick()"),t}();function xi(t,e){var n=t.indexOf(e);n>-1&&t.splice(n,1)}var Oi=function(){return function(){}}(),Ti={factoryPathPrefix:"",factoryPathSuffix:".ngfactory"},ki=function(){function t(t,e){this._compiler=t,this._config=e||Ti}return t.prototype.load=function(t){return this._compiler instanceof Xo?this.loadFactory(t):this.loadAndCompile(t)},t.prototype.loadAndCompile=function(t){var e=this,r=s(t.split("#"),2),o=r[0],i=r[1];return void 0===i&&(i="default"),n("zn8P")(o).then(function(t){return t[i]}).then(function(t){return Ai(t,o,i)}).then(function(t){return e._compiler.compileModuleAsync(t)})},t.prototype.loadFactory=function(t){var e=s(t.split("#"),2),r=e[0],o=e[1],i="NgFactory";return void 0===o&&(o="default",i=""),n("zn8P")(this._config.factoryPathPrefix+r+this._config.factoryPathSuffix).then(function(t){return t[o+i]}).then(function(t){return Ai(t,r,o)})},t}();function Ai(t,e,n){if(!t)throw new Error("Cannot find '"+n+"' in '"+e+"'");return t}var Ii=function(){return function(t,e){this.name=t,this.callback=e}}(),Pi=function(){function t(t,e,n){this.listeners=[],this.parent=null,this._debugContext=n,this.nativeNode=t,e&&e instanceof Ri&&e.addChild(this)}return Object.defineProperty(t.prototype,"injector",{get:function(){return this._debugContext.injector},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"componentInstance",{get:function(){return this._debugContext.component},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"context",{get:function(){return this._debugContext.context},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"references",{get:function(){return this._debugContext.references},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"providerTokens",{get:function(){return this._debugContext.providerTokens},enumerable:!0,configurable:!0}),t}(),Ri=function(t){function e(e,n,r){var o=t.call(this,e,n,r)||this;return o.properties={},o.attributes={},o.classes={},o.styles={},o.childNodes=[],o.nativeElement=e,o}return o(e,t),e.prototype.addChild=function(t){t&&(this.childNodes.push(t),t.parent=this)},e.prototype.removeChild=function(t){var e=this.childNodes.indexOf(t);-1!==e&&(t.parent=null,this.childNodes.splice(e,1))},e.prototype.insertChildrenAfter=function(t,e){var n,r=this,o=this.childNodes.indexOf(t);-1!==o&&((n=this.childNodes).splice.apply(n,c([o+1,0],e)),e.forEach(function(e){e.parent&&e.parent.removeChild(e),t.parent=r}))},e.prototype.insertBefore=function(t,e){var n=this.childNodes.indexOf(t);-1===n?this.addChild(e):(e.parent&&e.parent.removeChild(e),e.parent=this,this.childNodes.splice(n,0,e))},e.prototype.query=function(t){return this.queryAll(t)[0]||null},e.prototype.queryAll=function(t){var e=[];return function t(e,n,r){e.childNodes.forEach(function(e){e instanceof Ri&&(n(e)&&r.push(e),t(e,n,r))})}(this,t,e),e},e.prototype.queryAllNodes=function(t){var e=[];return function t(e,n,r){e instanceof Ri&&e.childNodes.forEach(function(e){n(e)&&r.push(e),e instanceof Ri&&t(e,n,r)})}(this,t,e),e},Object.defineProperty(e.prototype,"children",{get:function(){return this.childNodes.filter(function(t){return t instanceof e})},enumerable:!0,configurable:!0}),e.prototype.triggerEventHandler=function(t,e){this.listeners.forEach(function(n){n.name==t&&n.callback(e)})},e}(Pi),Ni=new Map,Di=function(t){return Ni.get(t)||null};function Mi(t){Ni.set(t.nativeNode,t)}var ji=_i(null,"core",[{provide:zo,useValue:"unknown"},{provide:Ci,deps:[Bt]},{provide:vi,deps:[]},{provide:Wo,deps:[]}]),Vi=new Lt("LocaleId");function Li(){return Nn}function Fi(){return Dn}function Ui(t){return t||"en-US"}function Hi(t){var e=[];return t.onStable.subscribe(function(){for(;e.length;)e.pop()()}),function(t){e.push(t)}}var zi=function(){return function(t){}}();function Bi(t,e,n,r,o,i){t|=1;var l=vr(e);return{nodeIndex:-1,parent:null,renderParent:null,bindingIndex:-1,outputIndex:-1,flags:t,checkIndex:-1,childFlags:0,directChildFlags:0,childMatchedQueries:0,matchedQueries:l.matchedQueries,matchedQueryIds:l.matchedQueryIds,references:l.references,ngContentIndex:n,childCount:r,bindings:[],bindingFlags:0,outputs:[],element:{ns:null,name:null,attrs:null,template:i?_r(i):null,componentProvider:null,componentView:null,componentRendererType:null,publicProviders:null,allProviders:null,handleEvent:o||$n},provider:null,text:null,query:null,ngContent:null}}function Wi(t,e,n,r,o,i,l,a,u,c,h,p){var f;void 0===l&&(l=[]),c||(c=$n);var d=vr(n),g=d.matchedQueries,v=d.references,m=d.matchedQueryIds,y=null,b=null;i&&(y=(f=s(Tr(i),2))[0],b=f[1]),a=a||[];for(var _=new Array(a.length),w=0;w0)s=g,ll(g)||(c=g);else for(;s&&d===s.nodeIndex+s.childCount;){var y=s.parent;y&&(y.childFlags|=s.childFlags,y.childMatchedQueries|=s.childMatchedQueries),c=(s=y)&&ll(s)?s.renderParent:s}}return{factory:null,nodeFlags:l,rootNodeFlags:a,nodeMatchedQueries:u,flags:t,nodes:e,updateDirectives:n||$n,updateRenderer:r||$n,handleEvent:function(t,n,r,o){return e[n].element.handleEvent(t,r,o)},bindingCount:o,outputCount:i,lastRenderRootNode:f}}function ll(t){return 0!=(1&t.flags)&&null===t.element.name}function al(t,e,n){var r=e.element&&e.element.template;if(r){if(!r.lastRenderRootNode)throw new Error("Illegal State: Embedded templates without nodes are not allowed!");if(r.lastRenderRootNode&&16777216&r.lastRenderRootNode.flags)throw new Error("Illegal State: Last root node of a template can't have embedded views, at index "+e.nodeIndex+"!")}if(20224&e.flags&&0==(1&(t?t.flags:0)))throw new Error("Illegal State: StaticProvider/Directive nodes need to be children of elements or anchors, at index "+e.nodeIndex+"!");if(e.query){if(67108864&e.flags&&(!t||0==(16384&t.flags)))throw new Error("Illegal State: Content Query nodes need to be children of directives, at index "+e.nodeIndex+"!");if(134217728&e.flags&&t)throw new Error("Illegal State: View Query nodes have to be top level nodes, at index "+e.nodeIndex+"!")}if(e.childCount){var o=t?t.nodeIndex+t.childCount:n-1;if(e.nodeIndex<=o&&e.nodeIndex+e.childCount>o)throw new Error("Illegal State: childCount of node leads outside of parent, at index "+e.nodeIndex+"!")}}function ul(t,e,n,r){var o=hl(t.root,t.renderer,t,e,n);return pl(o,t.component,r),fl(o),o}function sl(t,e,n){var r=hl(t,t.renderer,null,null,e);return pl(r,n,n),fl(r),r}function cl(t,e,n,r){var o,i=e.element.componentRendererType;return o=i?t.root.rendererFactory.createRenderer(r,i):t.root.renderer,hl(t.root,o,t,e.element.componentProvider,n)}function hl(t,e,n,r,o){var i=new Array(o.nodes.length),l=o.outputCount?new Array(o.outputCount):null;return{def:o,parent:n,viewContainerParent:null,parentNodeDef:r,context:null,component:null,nodes:i,state:13,root:t,renderer:e,oldValues:new Array(o.bindingCount),disposables:l,initIndex:-1}}function pl(t,e,n){t.component=e,t.context=n}function fl(t){var e;fr(t)&&(e=Gn(t.parent,t.parentNodeDef.parent.nodeIndex).renderElement);for(var n=t.def,r=t.nodes,o=0;o0&&Qi(t,e,0,n)&&(f=!0),p>1&&Qi(t,e,1,r)&&(f=!0),p>2&&Qi(t,e,2,o)&&(f=!0),p>3&&Qi(t,e,3,i)&&(f=!0),p>4&&Qi(t,e,4,l)&&(f=!0),p>5&&Qi(t,e,5,a)&&(f=!0),p>6&&Qi(t,e,6,u)&&(f=!0),p>7&&Qi(t,e,7,s)&&(f=!0),p>8&&Qi(t,e,8,c)&&(f=!0),p>9&&Qi(t,e,9,h)&&(f=!0),f}(t,e,n,r,o,i,l,a,u,s,c,h);case 2:return function(t,e,n,r,o,i,l,a,u,s,c,h){var p=!1,f=e.bindings,d=f.length;if(d>0&&ir(t,e,0,n)&&(p=!0),d>1&&ir(t,e,1,r)&&(p=!0),d>2&&ir(t,e,2,o)&&(p=!0),d>3&&ir(t,e,3,i)&&(p=!0),d>4&&ir(t,e,4,l)&&(p=!0),d>5&&ir(t,e,5,a)&&(p=!0),d>6&&ir(t,e,6,u)&&(p=!0),d>7&&ir(t,e,7,s)&&(p=!0),d>8&&ir(t,e,8,c)&&(p=!0),d>9&&ir(t,e,9,h)&&(p=!0),p){var g=e.text.prefix;d>0&&(g+=ol(n,f[0])),d>1&&(g+=ol(r,f[1])),d>2&&(g+=ol(o,f[2])),d>3&&(g+=ol(i,f[3])),d>4&&(g+=ol(l,f[4])),d>5&&(g+=ol(a,f[5])),d>6&&(g+=ol(u,f[6])),d>7&&(g+=ol(s,f[7])),d>8&&(g+=ol(c,f[8])),d>9&&(g+=ol(h,f[9]));var v=Wn(t,e.nodeIndex).renderText;t.renderer.setValue(v,g)}return p}(t,e,n,r,o,i,l,a,u,s,c,h);case 16384:return function(t,e,n,r,o,i,l,a,u,s,c,h){var p=qn(t,e.nodeIndex),f=p.instance,d=!1,g=void 0,v=e.bindings.length;return v>0&&or(t,e,0,n)&&(d=!0,g=Oo(t,p,e,0,n,g)),v>1&&or(t,e,1,r)&&(d=!0,g=Oo(t,p,e,1,r,g)),v>2&&or(t,e,2,o)&&(d=!0,g=Oo(t,p,e,2,o,g)),v>3&&or(t,e,3,i)&&(d=!0,g=Oo(t,p,e,3,i,g)),v>4&&or(t,e,4,l)&&(d=!0,g=Oo(t,p,e,4,l,g)),v>5&&or(t,e,5,a)&&(d=!0,g=Oo(t,p,e,5,a,g)),v>6&&or(t,e,6,u)&&(d=!0,g=Oo(t,p,e,6,u,g)),v>7&&or(t,e,7,s)&&(d=!0,g=Oo(t,p,e,7,s,g)),v>8&&or(t,e,8,c)&&(d=!0,g=Oo(t,p,e,8,c,g)),v>9&&or(t,e,9,h)&&(d=!0,g=Oo(t,p,e,9,h,g)),g&&f.ngOnChanges(g),65536&e.flags&&Bn(t,256,e.nodeIndex)&&f.ngOnInit(),262144&e.flags&&f.ngDoCheck(),d}(t,e,n,r,o,i,l,a,u,s,c,h);case 32:case 64:case 128:return function(t,e,n,r,o,i,l,a,u,s,c,h){var p=e.bindings,f=!1,d=p.length;if(d>0&&ir(t,e,0,n)&&(f=!0),d>1&&ir(t,e,1,r)&&(f=!0),d>2&&ir(t,e,2,o)&&(f=!0),d>3&&ir(t,e,3,i)&&(f=!0),d>4&&ir(t,e,4,l)&&(f=!0),d>5&&ir(t,e,5,a)&&(f=!0),d>6&&ir(t,e,6,u)&&(f=!0),d>7&&ir(t,e,7,s)&&(f=!0),d>8&&ir(t,e,8,c)&&(f=!0),d>9&&ir(t,e,9,h)&&(f=!0),f){var g=Zn(t,e.nodeIndex),v=void 0;switch(201347067&e.flags){case 32:v=new Array(p.length),d>0&&(v[0]=n),d>1&&(v[1]=r),d>2&&(v[2]=o),d>3&&(v[3]=i),d>4&&(v[4]=l),d>5&&(v[5]=a),d>6&&(v[6]=u),d>7&&(v[7]=s),d>8&&(v[8]=c),d>9&&(v[9]=h);break;case 64:v={},d>0&&(v[p[0].name]=n),d>1&&(v[p[1].name]=r),d>2&&(v[p[2].name]=o),d>3&&(v[p[3].name]=i),d>4&&(v[p[4].name]=l),d>5&&(v[p[5].name]=a),d>6&&(v[p[6].name]=u),d>7&&(v[p[7].name]=s),d>8&&(v[p[8].name]=c),d>9&&(v[p[9].name]=h);break;case 128:var m=n;switch(d){case 1:v=m.transform(n);break;case 2:v=m.transform(r);break;case 3:v=m.transform(r,o);break;case 4:v=m.transform(r,o,i);break;case 5:v=m.transform(r,o,i,l);break;case 6:v=m.transform(r,o,i,l,a);break;case 7:v=m.transform(r,o,i,l,a,u);break;case 8:v=m.transform(r,o,i,l,a,u,s);break;case 9:v=m.transform(r,o,i,l,a,u,s,c);break;case 10:v=m.transform(r,o,i,l,a,u,s,c,h)}}g.value=v}return f}(t,e,n,r,o,i,l,a,u,s,c,h);default:throw"unreachable"}}(t,e,r,o,i,l,a,u,s,h,p,f):function(t,e,n){switch(201347067&e.flags){case 1:return function(t,e,n){for(var r=!1,o=0;o0&&lr(t,e,0,n),p>1&&lr(t,e,1,r),p>2&&lr(t,e,2,o),p>3&&lr(t,e,3,i),p>4&&lr(t,e,4,l),p>5&&lr(t,e,5,a),p>6&&lr(t,e,6,u),p>7&&lr(t,e,7,s),p>8&&lr(t,e,8,c),p>9&&lr(t,e,9,h)}(t,e,r,o,i,l,a,u,s,c,h,p):function(t,e,n){for(var r=0;r0){var i=new Set(t.modules);Ml.forEach(function(e,r){if(i.has(Ot(r).providedIn)){var o={token:r,flags:e.flags|(n?4096:0),deps:mr(e.deps),value:e.value,index:t.providers.length};t.providers.push(o),t.providersByKey[Xn(r)]=o}})}}(t=t.factory(function(){return $n})),t):t}(r))}var Dl=new Map,Ml=new Map,jl=new Map;function Vl(t){var e;Dl.set(t.token,t),"function"==typeof t.token&&(e=Ot(t.token))&&"function"==typeof e.providedIn&&Ml.set(t.token,t)}function Ll(t,e){var n=_r(e.viewDefFactory),r=_r(n.nodes[0].element.componentView);jl.set(t,r)}function Fl(){Dl.clear(),Ml.clear(),jl.clear()}function Ul(t){if(0===Dl.size)return t;var e=function(t){for(var e=[],n=null,r=0;r0?e.substring(1):e},e.prototype.prepareExternalUrl=function(t){var e=ya.joinWithSlash(this._baseHref,t);return e.length>0?"#"+e:e},e.prototype.pushState=function(t,e,n,r){var o=this.prepareExternalUrl(n+ya.normalizeQueryParams(r));0==o.length&&(o=this._platformLocation.pathname),this._platformLocation.pushState(t,e,o)},e.prototype.replaceState=function(t,e,n,r){var o=this.prepareExternalUrl(n+ya.normalizeQueryParams(r));0==o.length&&(o=this._platformLocation.pathname),this._platformLocation.replaceState(t,e,o)},e.prototype.forward=function(){this._platformLocation.forward()},e.prototype.back=function(){this._platformLocation.back()},e}(va),wa=function(t){function e(e,n){var r=t.call(this)||this;if(r._platformLocation=e,null==n&&(n=r._platformLocation.getBaseHrefFromDOM()),null==n)throw new Error("No base href set. Please provide a value for the APP_BASE_HREF token or add a base element to the document.");return r._baseHref=n,r}return o(e,t),e.prototype.onPopState=function(t){this._platformLocation.onPopState(t),this._platformLocation.onHashChange(t)},e.prototype.getBaseHref=function(){return this._baseHref},e.prototype.prepareExternalUrl=function(t){return ya.joinWithSlash(this._baseHref,t)},e.prototype.path=function(t){void 0===t&&(t=!1);var e=this._platformLocation.pathname+ya.normalizeQueryParams(this._platformLocation.search),n=this._platformLocation.hash;return n&&t?""+e+n:e},e.prototype.pushState=function(t,e,n,r){var o=this.prepareExternalUrl(n+ya.normalizeQueryParams(r));this._platformLocation.pushState(t,e,o)},e.prototype.replaceState=function(t,e,n,r){var o=this.prepareExternalUrl(n+ya.normalizeQueryParams(r));this._platformLocation.replaceState(t,e,o)},e.prototype.forward=function(){this._platformLocation.forward()},e.prototype.back=function(){this._platformLocation.back()},e}(va),Ca=void 0,Ea=["en",[["a","p"],["AM","PM"],Ca],[["AM","PM"],Ca,Ca],[["S","M","T","W","T","F","S"],["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],["Su","Mo","Tu","We","Th","Fr","Sa"]],Ca,[["J","F","M","A","M","J","J","A","S","O","N","D"],["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],["January","February","March","April","May","June","July","August","September","October","November","December"]],Ca,[["B","A"],["BC","AD"],["Before Christ","Anno Domini"]],0,[6,0],["M/d/yy","MMM d, y","MMMM d, y","EEEE, MMMM d, y"],["h:mm a","h:mm:ss a","h:mm:ss a z","h:mm:ss a zzzz"],["{1}, {0}",Ca,"{1} 'at' {0}",Ca],[".",",",";","%","+","-","E","\xd7","\u2030","\u221e","NaN",":"],["#,##0.###","#,##0%","\xa4#,##0.00","#E0"],"$","US Dollar",{},function(t){var e=Math.floor(Math.abs(t)),n=t.toString().replace(/^[^.]*\.?/,"").length;return 1===e&&0===n?1:5}],Sa={},xa=function(t){return t[t.Zero=0]="Zero",t[t.One=1]="One",t[t.Two=2]="Two",t[t.Few=3]="Few",t[t.Many=4]="Many",t[t.Other=5]="Other",t}({}),Oa=new Lt("UseV4Plurals"),Ta=function(){return function(){}}(),ka=function(t){function e(e,n){var r=t.call(this)||this;return r.locale=e,r.deprecatedPluralFn=n,r}return o(e,t),e.prototype.getPluralCategory=function(t,e){switch(this.deprecatedPluralFn?this.deprecatedPluralFn(e||this.locale,t):function(t){return function(t){var e=t.toLowerCase().replace(/_/g,"-"),n=Sa[e];if(n)return n;var r=e.split("-")[0];if(n=Sa[r])return n;if("en"===r)return Ea;throw new Error('Missing locale data for the locale "'+t+'".')}(t)[18]}(e||this.locale)(t)){case xa.Zero:return"zero";case xa.One:return"one";case xa.Two:return"two";case xa.Few:return"few";case xa.Many:return"many";default:return"other"}},e}(Ta),Aa=function(){function t(t,e,n,r){this.$implicit=t,this.ngForOf=e,this.index=n,this.count=r}return Object.defineProperty(t.prototype,"first",{get:function(){return 0===this.index},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"last",{get:function(){return this.index===this.count-1},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"even",{get:function(){return this.index%2==0},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"odd",{get:function(){return!this.even},enumerable:!0,configurable:!0}),t}(),Ia=function(){function t(t,e,n){this._viewContainer=t,this._template=e,this._differs=n,this._ngForOfDirty=!0,this._differ=null}return Object.defineProperty(t.prototype,"ngForOf",{set:function(t){this._ngForOf=t,this._ngForOfDirty=!0},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"ngForTrackBy",{get:function(){return this._trackByFn},set:function(t){fe()&&null!=t&&"function"!=typeof t&&console&&console.warn&&console.warn("trackBy must be a function, but received "+JSON.stringify(t)+". See https://angular.io/docs/ts/latest/api/common/index/NgFor-directive.html#!#change-propagation for more information."),this._trackByFn=t},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"ngForTemplate",{set:function(t){t&&(this._template=t)},enumerable:!0,configurable:!0}),t.prototype.ngDoCheck=function(){if(this._ngForOfDirty){this._ngForOfDirty=!1;var t=this._ngForOf;if(!this._differ&&t)try{this._differ=this._differs.find(t).create(this.ngForTrackBy)}catch(r){throw new Error("Cannot find a differ supporting object '"+t+"' of type '"+((e=t).name||typeof e)+"'. NgFor only supports binding to Iterables such as Arrays.")}}var e;if(this._differ){var n=this._differ.diff(this._ngForOf);n&&this._applyChanges(n)}},t.prototype._applyChanges=function(t){var e=this,n=[];t.forEachOperation(function(t,r,o){if(null==t.previousIndex){var i=e._viewContainer.createEmbeddedView(e._template,new Aa(null,e._ngForOf,-1,-1),o),l=new Pa(t,i);n.push(l)}else null==o?e._viewContainer.remove(r):(i=e._viewContainer.get(r),e._viewContainer.move(i,o),l=new Pa(t,i),n.push(l))});for(var r=0;r0)for(var n=this.count>=this.total?this.total:this.count,r=this.ring,o=0;o=2;return function(r){return r.pipe(t?tu(function(e,n){return t(e,n,r)}):ot,iu(1),n?fu(e):hu(function(){return new Qa}))}}function mu(t){return function(e){var n=new yu(t),r=e.lift(n);return n.caught=r}}var yu=function(){function t(t){this.selector=t}return t.prototype.call=function(t,e){return e.subscribe(new bu(t,this.selector,this.caught))},t}(),bu=function(t){function e(e,n,r){var o=t.call(this,e)||this;return o.selector=n,o.caught=r,o}return o(e,t),e.prototype.error=function(e){if(!this.isStopped){var n=void 0;try{n=this.selector(e,this.caught)}catch(o){return void t.prototype.error.call(this,o)}this._unsubscribeAndRecycle();var r=new L(this,void 0,void 0);this.add(r),Q(this,n,void 0,void 0,r)}},e}(Y);function _u(t){return function(e){return 0===t?Ba():e.lift(new wu(t))}}var wu=function(){function t(t){if(this.total=t,this.total<0)throw new ou}return t.prototype.call=function(t,e){return e.subscribe(new Cu(t,this.total))},t}(),Cu=function(t){function e(e,n){var r=t.call(this,e)||this;return r.total=n,r.count=0,r}return o(e,t),e.prototype._next=function(t){var e=this.total,n=++this.count;n<=e&&(this.destination.next(t),n===e&&(this.destination.complete(),this.unsubscribe()))},e}(E);function Eu(t,e){var n=arguments.length>=2;return function(r){return r.pipe(t?tu(function(e,n){return t(e,n,r)}):ot,_u(1),n?fu(e):hu(function(){return new Qa}))}}var Su=function(){function t(t,e,n){this.predicate=t,this.thisArg=e,this.source=n}return t.prototype.call=function(t,e){return e.subscribe(new xu(t,this.predicate,this.thisArg,this.source))},t}(),xu=function(t){function e(e,n,r,o){var i=t.call(this,e)||this;return i.predicate=n,i.thisArg=r,i.source=o,i.index=0,i.thisArg=r||i,i}return o(e,t),e.prototype.notifyComplete=function(t){this.destination.next(t),this.destination.complete()},e.prototype._next=function(t){var e=!1;try{e=this.predicate.call(this.thisArg,t,this.index++,this.source)}catch(n){return void this.destination.error(n)}e||this.notifyComplete(!1)},e.prototype._complete=function(){this.notifyComplete(!0)},e}(E);function Ou(t,e){return"function"==typeof e?function(n){return n.pipe(Ou(function(n,r){return tt(t(n,r)).pipe($(function(t,o){return e(n,t,r,o)}))}))}:function(e){return e.lift(new Tu(t))}}var Tu=function(){function t(t){this.project=t}return t.prototype.call=function(t,e){return e.subscribe(new ku(t,this.project))},t}(),ku=function(t){function e(e,n){var r=t.call(this,e)||this;return r.project=n,r.index=0,r}return o(e,t),e.prototype._next=function(t){var e,n=this.index++;try{e=this.project(t,n)}catch(r){return void this.destination.error(r)}this._innerSub(e,t,n)},e.prototype._innerSub=function(t,e,n){var r=this.innerSubscription;r&&r.unsubscribe();var o=new L(this,void 0,void 0);this.destination.add(o),this.innerSubscription=Q(this,t,e,n,o)},e.prototype._complete=function(){var e=this.innerSubscription;e&&!e.closed||t.prototype._complete.call(this),this.unsubscribe()},e.prototype._unsubscribe=function(){this.innerSubscription=null},e.prototype.notifyComplete=function(e){this.destination.remove(e),this.innerSubscription=null,this.isStopped&&t.prototype._complete.call(this)},e.prototype.notifyNext=function(t,e,n,r,o){this.destination.next(e)},e}(Y);function Au(t,e){var n=!1;return arguments.length>=2&&(n=!0),function(r){return r.lift(new Iu(t,e,n))}}var Iu=function(){function t(t,e,n){void 0===n&&(n=!1),this.accumulator=t,this.seed=e,this.hasSeed=n}return t.prototype.call=function(t,e){return e.subscribe(new Pu(t,this.accumulator,this.seed,this.hasSeed))},t}(),Pu=function(t){function e(e,n,r,o){var i=t.call(this,e)||this;return i.accumulator=n,i._seed=r,i.hasSeed=o,i.index=0,i}return o(e,t),Object.defineProperty(e.prototype,"seed",{get:function(){return this._seed},set:function(t){this.hasSeed=!0,this._seed=t},enumerable:!0,configurable:!0}),e.prototype._next=function(t){if(this.hasSeed)return this._tryNext(t);this.seed=t,this.destination.next(t)},e.prototype._tryNext=function(t){var e,n=this.index++;try{e=this.accumulator(this.seed,t,n)}catch(r){this.destination.error(r)}this.seed=e,this.destination.next(e)},e}(E);function Ru(t,e){return et(t,e,1)}var Nu=function(){function t(t){this.callback=t}return t.prototype.call=function(t,e){return e.subscribe(new Du(t,this.callback))},t}(),Du=function(t){function e(e,n){var r=t.call(this,e)||this;return r.add(new v(n)),r}return o(e,t),e}(E),Mu=null;function ju(){return Mu}var Vu,Lu=function(t){function e(){var e=t.call(this)||this;e._animationPrefix=null,e._transitionEnd=null;try{var n=e.createElement("div",document);if(null!=e.getStyle(n,"animationName"))e._animationPrefix="";else for(var r=["Webkit","Moz","O","ms"],o=0;o0},e.prototype.tagName=function(t){return t.tagName},e.prototype.attributeMap=function(t){for(var e=new Map,n=t.attributes,r=0;r0;l||(l=t[i]=[]);var u=Cs(e)?Zone.root:Zone.current;if(0===l.length)l.push({zone:u,handler:o});else{for(var s=!1,c=0;c-1},e}(es),Is=["alt","control","meta","shift"],Ps={alt:function(t){return t.altKey},control:function(t){return t.ctrlKey},meta:function(t){return t.metaKey},shift:function(t){return t.shiftKey}},Rs=function(t){function e(e){return t.call(this,e)||this}var n;return o(e,t),n=e,e.prototype.supports=function(t){return null!=n.parseEventName(t)},e.prototype.addEventListener=function(t,e,r){var o=n.parseEventName(e),i=n.eventCallback(o.fullKey,r,this.manager.getZone());return this.manager.getZone().runOutsideAngular(function(){return ju().onAndCancel(t,o.domEventName,i)})},e.parseEventName=function(t){var e=t.toLowerCase().split("."),r=e.shift();if(0===e.length||"keydown"!==r&&"keyup"!==r)return null;var o=n._normalizeKey(e.pop()),i="";if(Is.forEach(function(t){var n=e.indexOf(t);n>-1&&(e.splice(n,1),i+=t+".")}),i+=o,0!=e.length||0===o.length)return null;var l={};return l.domEventName=r,l.fullKey=i,l},e.getEventFullKey=function(t){var e="",n=ju().getEventKey(t);return" "===(n=n.toLowerCase())?n="space":"."===n&&(n="dot"),Is.forEach(function(r){r!=n&&(0,Ps[r])(t)&&(e+=r+".")}),e+=n},e.eventCallback=function(t,e,r){return function(o){n.getEventFullKey(o)===t&&r.runGuarded(function(){return e(o)})}},e._normalizeKey=function(t){switch(t){case"esc":return"escape";default:return t}},e}(es),Ns=function(){return function(){}}(),Ds=function(t){function e(e){var n=t.call(this)||this;return n._doc=e,n}return o(e,t),e.prototype.sanitize=function(t,e){if(null==e)return null;switch(t){case Me.NONE:return e;case Me.HTML:return e instanceof js?e.changingThisBreaksApplicationSecurity:(this.checkNotSafeValue(e,"HTML"),function(t,e){var n=null;try{_e=_e||new de(t);var r=e?String(e):"";n=_e.getInertBodyElement(r);var o=5,i=r;do{if(0===o)throw new Error("Failed to sanitize html because the input is unstable");o--,r=i,i=n.innerHTML,n=_e.getInertBodyElement(r)}while(r!==i);var l=new Ie,a=l.sanitizeChildren(De(n)||n);return fe()&&l.sanitizedSomething&&console.warn("WARNING: sanitizing HTML stripped some content, see http://g.co/ng/security#xss"),a}finally{if(n)for(var u=De(n)||n;u.firstChild;)u.removeChild(u.firstChild)}}(this._doc,String(e)));case Me.STYLE:return e instanceof Vs?e.changingThisBreaksApplicationSecurity:(this.checkNotSafeValue(e,"Style"),function(t){if(!(t=String(t).trim()))return"";var e=t.match(Le);return e&&me(e[1])===e[1]||t.match(Ve)&&function(t){for(var e=!0,n=!0,r=0;rt.length)return null;if("full"===n.pathMatch&&(e.hasChildren()||r.length0?t[t.length-1]:null}function Cc(t,e){for(var n in t)t.hasOwnProperty(n)&&e(t[n],n)}function Ec(t){return ze(t)?t:He(t)?tt(Promise.resolve(t)):Ga(t)}function Sc(t,e,n){return n?function(t,e){return bc(t,e)}(t.queryParams,e.queryParams)&&function t(e,n){if(!kc(e.segments,n.segments))return!1;if(e.numberOfChildren!==n.numberOfChildren)return!1;for(var r in n.children){if(!e.children[r])return!1;if(!t(e.children[r],n.children[r]))return!1}return!0}(t.root,e.root):function(t,e){return Object.keys(e).length<=Object.keys(t).length&&Object.keys(e).every(function(n){return e[n]===t[n]})}(t.queryParams,e.queryParams)&&function t(e,n){return function e(n,r,o){if(n.segments.length>o.length)return!!kc(l=n.segments.slice(0,o.length),o)&&!r.hasChildren();if(n.segments.length===o.length){if(!kc(n.segments,o))return!1;for(var i in r.children){if(!n.children[i])return!1;if(!t(n.children[i],r.children[i]))return!1}return!0}var l=o.slice(0,n.segments.length),a=o.slice(n.segments.length);return!!kc(n.segments,l)&&!!n.children[uc]&&e(n.children[uc],r,a)}(e,n,n.segments)}(t.root,e.root)}var xc=function(){function t(t,e,n){this.root=t,this.queryParams=e,this.fragment=n}return Object.defineProperty(t.prototype,"queryParamMap",{get:function(){return this._queryParamMap||(this._queryParamMap=cc(this.queryParams)),this._queryParamMap},enumerable:!0,configurable:!0}),t.prototype.toString=function(){return Rc.serialize(this)},t}(),Oc=function(){function t(t,e){var n=this;this.segments=t,this.children=e,this.parent=null,Cc(e,function(t,e){return t.parent=n})}return t.prototype.hasChildren=function(){return this.numberOfChildren>0},Object.defineProperty(t.prototype,"numberOfChildren",{get:function(){return Object.keys(this.children).length},enumerable:!0,configurable:!0}),t.prototype.toString=function(){return Nc(this)},t}(),Tc=function(){function t(t,e){this.path=t,this.parameters=e}return Object.defineProperty(t.prototype,"parameterMap",{get:function(){return this._parameterMap||(this._parameterMap=cc(this.parameters)),this._parameterMap},enumerable:!0,configurable:!0}),t.prototype.toString=function(){return Fc(this)},t}();function kc(t,e){return t.length===e.length&&t.every(function(t,n){return t.path===e[n].path})}function Ac(t,e){var n=[];return Cc(t.children,function(t,r){r===uc&&(n=n.concat(e(t,r)))}),Cc(t.children,function(t,r){r!==uc&&(n=n.concat(e(t,r)))}),n}var Ic=function(){return function(){}}(),Pc=function(){function t(){}return t.prototype.parse=function(t){var e=new Wc(t);return new xc(e.parseRootSegment(),e.parseQueryParams(),e.parseFragment())},t.prototype.serialize=function(t){var e,n;return"/"+function t(e,n){if(!e.hasChildren())return Nc(e);if(n){var r=e.children[uc]?t(e.children[uc],!1):"",o=[];return Cc(e.children,function(e,n){n!==uc&&o.push(n+":"+t(e,!1))}),o.length>0?r+"("+o.join("//")+")":r}var i=Ac(e,function(n,r){return r===uc?[t(e.children[uc],!1)]:[r+":"+t(n,!1)]});return Nc(e)+"/("+i.join("//")+")"}(t.root,!0)+(e=t.queryParams,(n=Object.keys(e).map(function(t){var n=e[t];return Array.isArray(n)?n.map(function(e){return Mc(t)+"="+Mc(e)}).join("&"):Mc(t)+"="+Mc(n)})).length?"?"+n.join("&"):"")+("string"==typeof t.fragment?"#"+encodeURI(t.fragment):"")},t}(),Rc=new Pc;function Nc(t){return t.segments.map(function(t){return Fc(t)}).join("/")}function Dc(t){return encodeURIComponent(t).replace(/%40/g,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",")}function Mc(t){return Dc(t).replace(/%3B/gi,";")}function jc(t){return Dc(t).replace(/\(/g,"%28").replace(/\)/g,"%29").replace(/%26/gi,"&")}function Vc(t){return decodeURIComponent(t)}function Lc(t){return Vc(t.replace(/\+/g,"%20"))}function Fc(t){return""+jc(t.path)+(e=t.parameters,Object.keys(e).map(function(t){return";"+jc(t)+"="+jc(e[t])}).join(""));var e}var Uc=/^[^\/()?;=#]+/;function Hc(t){var e=t.match(Uc);return e?e[0]:""}var zc=/^[^=?]+/,Bc=/^[^?]+/,Wc=function(){function t(t){this.url=t,this.remaining=t}return t.prototype.parseRootSegment=function(){return this.consumeOptional("/"),""===this.remaining||this.peekStartsWith("?")||this.peekStartsWith("#")?new Oc([],{}):new Oc([],this.parseChildren())},t.prototype.parseQueryParams=function(){var t={};if(this.consumeOptional("?"))do{this.parseQueryParam(t)}while(this.consumeOptional("&"));return t},t.prototype.parseFragment=function(){return this.consumeOptional("#")?decodeURIComponent(this.remaining):null},t.prototype.parseChildren=function(){if(""===this.remaining)return{};this.consumeOptional("/");var t=[];for(this.peekStartsWith("(")||t.push(this.parseSegment());this.peekStartsWith("/")&&!this.peekStartsWith("//")&&!this.peekStartsWith("/(");)this.capture("/"),t.push(this.parseSegment());var e={};this.peekStartsWith("/(")&&(this.capture("/"),e=this.parseParens(!0));var n={};return this.peekStartsWith("(")&&(n=this.parseParens(!1)),(t.length>0||Object.keys(e).length>0)&&(n[uc]=new Oc(t,e)),n},t.prototype.parseSegment=function(){var t=Hc(this.remaining);if(""===t&&this.peekStartsWith(";"))throw new Error("Empty path url segment cannot have parameters: '"+this.remaining+"'.");return this.capture(t),new Tc(Vc(t),this.parseMatrixParams())},t.prototype.parseMatrixParams=function(){for(var t={};this.consumeOptional(";");)this.parseParam(t);return t},t.prototype.parseParam=function(t){var e=Hc(this.remaining);if(e){this.capture(e);var n="";if(this.consumeOptional("=")){var r=Hc(this.remaining);r&&this.capture(n=r)}t[Vc(e)]=Vc(n)}},t.prototype.parseQueryParam=function(t){var e,n=(e=this.remaining.match(zc))?e[0]:"";if(n){this.capture(n);var r="";if(this.consumeOptional("=")){var o=function(t){var e=t.match(Bc);return e?e[0]:""}(this.remaining);o&&this.capture(r=o)}var i=Lc(n),l=Lc(r);if(t.hasOwnProperty(i)){var a=t[i];Array.isArray(a)||(t[i]=a=[a]),a.push(l)}else t[i]=l}},t.prototype.parseParens=function(t){var e={};for(this.capture("(");!this.consumeOptional(")")&&this.remaining.length>0;){var n=Hc(this.remaining),r=this.remaining[n.length];if("/"!==r&&")"!==r&&";"!==r)throw new Error("Cannot parse url '"+this.url+"'");var o=void 0;n.indexOf(":")>-1?(o=n.substr(0,n.indexOf(":")),this.capture(o),this.capture(":")):t&&(o=uc);var i=this.parseChildren();e[o]=1===Object.keys(i).length?i[uc]:new Oc([],i),this.consumeOptional("//")}return e},t.prototype.peekStartsWith=function(t){return this.remaining.startsWith(t)},t.prototype.consumeOptional=function(t){return!!this.peekStartsWith(t)&&(this.remaining=this.remaining.substring(t.length),!0)},t.prototype.capture=function(t){if(!this.consumeOptional(t))throw new Error('Expected "'+t+'".')},t}(),Gc=function(){function t(t){this._root=t}return Object.defineProperty(t.prototype,"root",{get:function(){return this._root.value},enumerable:!0,configurable:!0}),t.prototype.parent=function(t){var e=this.pathFromRoot(t);return e.length>1?e[e.length-2]:null},t.prototype.children=function(t){var e=qc(t,this._root);return e?e.children.map(function(t){return t.value}):[]},t.prototype.firstChild=function(t){var e=qc(t,this._root);return e&&e.children.length>0?e.children[0].value:null},t.prototype.siblings=function(t){var e=Zc(t,this._root);return e.length<2?[]:e[e.length-2].children.map(function(t){return t.value}).filter(function(e){return e!==t})},t.prototype.pathFromRoot=function(t){return Zc(t,this._root).map(function(t){return t.value})},t}();function qc(t,e){var n,r;if(t===e.value)return e;try{for(var o=u(e.children),i=o.next();!i.done;i=o.next()){var l=qc(t,i.value);if(l)return l}}catch(a){n={error:a}}finally{try{i&&!i.done&&(r=o.return)&&r.call(o)}finally{if(n)throw n.error}}return null}function Zc(t,e){var n,r;if(t===e.value)return[e];try{for(var o=u(e.children),i=o.next();!i.done;i=o.next()){var l=Zc(t,i.value);if(l.length)return l.unshift(e),l}}catch(a){n={error:a}}finally{try{i&&!i.done&&(r=o.return)&&r.call(o)}finally{if(n)throw n.error}}return[]}var Qc=function(){function t(t,e){this.value=t,this.children=e}return t.prototype.toString=function(){return"TreeNode("+this.value+")"},t}();function Yc(t){var e={};return t&&t.children.forEach(function(t){return e[t.value.outlet]=t}),e}var $c=function(t){function e(e,n){var r=t.call(this,e)||this;return r.snapshot=n,nh(r,e),r}return o(e,t),e.prototype.toString=function(){return this.snapshot.toString()},e}(Gc);function Kc(t,e){var n=function(t,e){var n=new th([],{},{},"",{},uc,e,null,t.root,-1,{});return new eh("",new Qc(n,[]))}(t,e),r=new qa([new Tc("",{})]),o=new qa({}),i=new qa({}),l=new qa({}),a=new qa(""),u=new Xc(r,o,l,a,i,uc,e,n.root);return u.snapshot=n.root,new $c(new Qc(u,[]),n)}var Xc=function(){function t(t,e,n,r,o,i,l,a){this.url=t,this.params=e,this.queryParams=n,this.fragment=r,this.data=o,this.outlet=i,this.component=l,this._futureSnapshot=a}return Object.defineProperty(t.prototype,"routeConfig",{get:function(){return this._futureSnapshot.routeConfig},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"root",{get:function(){return this._routerState.root},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"parent",{get:function(){return this._routerState.parent(this)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"firstChild",{get:function(){return this._routerState.firstChild(this)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"children",{get:function(){return this._routerState.children(this)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"pathFromRoot",{get:function(){return this._routerState.pathFromRoot(this)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"paramMap",{get:function(){return this._paramMap||(this._paramMap=this.params.pipe($(function(t){return cc(t)}))),this._paramMap},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"queryParamMap",{get:function(){return this._queryParamMap||(this._queryParamMap=this.queryParams.pipe($(function(t){return cc(t)}))),this._queryParamMap},enumerable:!0,configurable:!0}),t.prototype.toString=function(){return this.snapshot?this.snapshot.toString():"Future("+this._futureSnapshot+")"},t}();function Jc(t,e){void 0===e&&(e="emptyOnly");var n=t.pathFromRoot,r=0;if("always"!==e)for(r=n.length-1;r>=1;){var o=n[r],l=n[r-1];if(o.routeConfig&&""===o.routeConfig.path)r--;else{if(l.component)break;r--}}return function(t){return t.reduce(function(t,e){return{params:i({},t.params,e.params),data:i({},t.data,e.data),resolve:i({},t.resolve,e._resolvedData)}},{params:{},data:{},resolve:{}})}(n.slice(r))}var th=function(){function t(t,e,n,r,o,i,l,a,u,s,c){this.url=t,this.params=e,this.queryParams=n,this.fragment=r,this.data=o,this.outlet=i,this.component=l,this.routeConfig=a,this._urlSegment=u,this._lastPathIndex=s,this._resolve=c}return Object.defineProperty(t.prototype,"root",{get:function(){return this._routerState.root},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"parent",{get:function(){return this._routerState.parent(this)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"firstChild",{get:function(){return this._routerState.firstChild(this)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"children",{get:function(){return this._routerState.children(this)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"pathFromRoot",{get:function(){return this._routerState.pathFromRoot(this)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"paramMap",{get:function(){return this._paramMap||(this._paramMap=cc(this.params)),this._paramMap},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"queryParamMap",{get:function(){return this._queryParamMap||(this._queryParamMap=cc(this.queryParams)),this._queryParamMap},enumerable:!0,configurable:!0}),t.prototype.toString=function(){return"Route(url:'"+this.url.map(function(t){return t.toString()}).join("/")+"', path:'"+(this.routeConfig?this.routeConfig.path:"")+"')"},t}(),eh=function(t){function e(e,n){var r=t.call(this,n)||this;return r.url=e,nh(r,n),r}return o(e,t),e.prototype.toString=function(){return rh(this._root)},e}(Gc);function nh(t,e){e.value._routerState=t,e.children.forEach(function(e){return nh(t,e)})}function rh(t){var e=t.children.length>0?" { "+t.children.map(rh).join(", ")+" } ":"";return""+t.value+e}function oh(t){if(t.snapshot){var e=t.snapshot,n=t._futureSnapshot;t.snapshot=n,bc(e.queryParams,n.queryParams)||t.queryParams.next(n.queryParams),e.fragment!==n.fragment&&t.fragment.next(n.fragment),bc(e.params,n.params)||t.params.next(n.params),function(t,e){if(t.length!==e.length)return!1;for(var n=0;n0&&lh(n[0]))throw new Error("Root segment cannot have matrix parameters");var r=n.find(function(t){return"object"==typeof t&&null!=t&&t.outlets});if(r&&r!==wc(n))throw new Error("{outlets:{}} has to be the last command")}return t.prototype.toRoot=function(){return this.isAbsolute&&1===this.commands.length&&"/"==this.commands[0]},t}(),sh=function(){return function(t,e,n){this.segmentGroup=t,this.processChildren=e,this.index=n}}();function ch(t){return"object"==typeof t&&null!=t&&t.outlets?t.outlets[uc]:""+t}function hh(t,e,n){if(t||(t=new Oc([],{})),0===t.segments.length&&t.hasChildren())return ph(t,e,n);var r=function(t,e,n){for(var r=0,o=e,i={match:!1,pathIndex:0,commandIndex:0};o=n.length)return i;var l=t.segments[o],a=ch(n[r]),u=r0&&void 0===a)break;if(a&&u&&"object"==typeof u&&void 0===u.outlets){if(!vh(a,u,l))return i;r+=2}else{if(!vh(a,{},l))return i;r++}o++}return{match:!0,pathIndex:o,commandIndex:r}}(t,e,n),o=n.slice(r.commandIndex);if(r.match&&r.pathIndex0?new Oc([],((r={})[uc]=t,r)):t;return new xc(o,e,n)},t.prototype.expandSegmentGroup=function(t,e,n,r){return 0===n.segments.length&&n.hasChildren()?this.expandChildren(t,e,n).pipe($(function(t){return new Oc([],t)})):this.expandSegment(t,n,e,n.segments,r,!0)},t.prototype.expandChildren=function(t,e,n){var r=this;return function(n,o){if(0===Object.keys(n).length)return Ga({});var i=[],l=[],a={};return Cc(n,function(n,o){var u,s,c=(u=o,s=n,r.expandSegmentGroup(t,e,s,u)).pipe($(function(t){return a[o]=t}));o===uc?i.push(c):l.push(c)}),Ga.apply(null,i.concat(l)).pipe(Ja(),vu(),$(function(){return a}))}(n.children)},t.prototype.expandSegment=function(t,e,n,r,o,i){var l=this;return Ga.apply(void 0,c(n)).pipe($(function(a){return l.expandSegmentAgainstRoute(t,e,n,a,r,o,i).pipe(mu(function(t){if(t instanceof wh)return Ga(null);throw t}))}),Ja(),Eu(function(t){return!!t}),mu(function(t,n){if(t instanceof Qa||"EmptyError"===t.name){if(l.noLeftoversInUrl(e,r,o))return Ga(new Oc([],{}));throw new wh(e)}throw t}))},t.prototype.noLeftoversInUrl=function(t,e,n){return 0===e.length&&!t.children[n]},t.prototype.expandSegmentAgainstRoute=function(t,e,n,r,o,i,l){return Ih(r)!==i?Eh(e):void 0===r.redirectTo?this.matchSegmentAgainstRoute(t,e,r,o):l&&this.allowRedirects?this.expandSegmentAgainstRouteUsingRedirect(t,e,n,r,o,i):Eh(e)},t.prototype.expandSegmentAgainstRouteUsingRedirect=function(t,e,n,r,o,i){return"**"===r.path?this.expandWildCardWithParamsAgainstRouteUsingRedirect(t,n,r,i):this.expandRegularSegmentAgainstRouteUsingRedirect(t,e,n,r,o,i)},t.prototype.expandWildCardWithParamsAgainstRouteUsingRedirect=function(t,e,n,r){var o=this,i=this.applyRedirectCommands([],n.redirectTo,{});return n.redirectTo.startsWith("/")?Sh(i):this.lineralizeSegments(n,i).pipe(et(function(n){var i=new Oc(n,{});return o.expandSegment(t,i,e,n,r,!1)}))},t.prototype.expandRegularSegmentAgainstRouteUsingRedirect=function(t,e,n,r,o,i){var l=this,a=Th(e,r,o),u=a.consumedSegments,s=a.lastChild,c=a.positionalParamSegments;if(!a.matched)return Eh(e);var h=this.applyRedirectCommands(u,r.redirectTo,c);return r.redirectTo.startsWith("/")?Sh(h):this.lineralizeSegments(r,h).pipe(et(function(r){return l.expandSegment(t,e,n,r.concat(o.slice(s)),i,!1)}))},t.prototype.matchSegmentAgainstRoute=function(t,e,n,r){var o=this;if("**"===n.path)return n.loadChildren?this.configLoader.load(t.injector,n).pipe($(function(t){return n._loadedConfig=t,new Oc(r,{})})):Ga(new Oc(r,{}));var l=Th(e,n,r),a=l.consumedSegments,s=l.lastChild;if(!l.matched)return Eh(e);var c=r.slice(s);return this.getChildConfig(t,n,r).pipe(et(function(t){var n=t.module,r=t.routes,l=function(t,e,n,r){return n.length>0&&function(t,e,n){return r.some(function(n){return Ah(t,e,n)&&Ih(n)!==uc})}(t,n)?{segmentGroup:kh(new Oc(e,function(t,e){var n,r,o={};o[uc]=e;try{for(var i=u(t),l=i.next();!l.done;l=i.next()){var a=l.value;""===a.path&&Ih(a)!==uc&&(o[Ih(a)]=new Oc([],{}))}}catch(s){n={error:s}}finally{try{l&&!l.done&&(r=i.return)&&r.call(i)}finally{if(n)throw n.error}}return o}(r,new Oc(n,t.children)))),slicedSegments:[]}:0===n.length&&function(t,e,n){return r.some(function(n){return Ah(t,e,n)})}(t,n)?{segmentGroup:kh(new Oc(t.segments,function(t,e,n,r){var o,l,a={};try{for(var s=u(n),c=s.next();!c.done;c=s.next()){var h=c.value;Ah(t,e,h)&&!r[Ih(h)]&&(a[Ih(h)]=new Oc([],{}))}}catch(p){o={error:p}}finally{try{c&&!c.done&&(l=s.return)&&l.call(s)}finally{if(o)throw o.error}}return i({},r,a)}(t,n,r,t.children))),slicedSegments:n}:{segmentGroup:t,slicedSegments:n}}(e,a,c,r),s=l.segmentGroup,h=l.slicedSegments;return 0===h.length&&s.hasChildren()?o.expandChildren(n,r,s).pipe($(function(t){return new Oc(a,t)})):0===r.length&&0===h.length?Ga(new Oc(a,{})):o.expandSegment(n,s,r,h,uc,!0).pipe($(function(t){return new Oc(a.concat(t.segments),t.children)}))}))},t.prototype.getChildConfig=function(t,e,n){var r=this;return e.children?Ga(new dc(e.children,t)):e.loadChildren?void 0!==e._loadedConfig?Ga(e._loadedConfig):function(t,e,n){var r,o=e.canLoad;return o&&0!==o.length?tt(o).pipe($(function(r){var o,i=t.get(r);if(function(t){return t&&bh(t.canLoad)}(i))o=i.canLoad(e,n);else{if(!bh(i))throw new Error("Invalid CanLoad guard");o=i(e,n)}return Ec(o)})).pipe(Ja(),(r=function(t){return!0===t},function(t){return t.lift(new Su(r,void 0,t))})):Ga(!0)}(t.injector,e,n).pipe(et(function(n){return n?r.configLoader.load(t.injector,e).pipe($(function(t){return e._loadedConfig=t,t})):function(t){return new A(function(e){return e.error(pc("Cannot load children because the guard of the route \"path: '"+t.path+"'\" returned false"))})}(e)})):Ga(new dc([],t))},t.prototype.lineralizeSegments=function(t,e){for(var n=[],r=e.root;;){if(n=n.concat(r.segments),0===r.numberOfChildren)return Ga(n);if(r.numberOfChildren>1||!r.children[uc])return xh(t.redirectTo);r=r.children[uc]}},t.prototype.applyRedirectCommands=function(t,e,n){return this.applyRedirectCreatreUrlTree(e,this.urlSerializer.parse(e),t,n)},t.prototype.applyRedirectCreatreUrlTree=function(t,e,n,r){var o=this.createSegmentGroup(t,e.root,n,r);return new xc(o,this.createQueryParams(e.queryParams,this.urlTree.queryParams),e.fragment)},t.prototype.createQueryParams=function(t,e){var n={};return Cc(t,function(t,r){if("string"==typeof t&&t.startsWith(":")){var o=t.substring(1);n[r]=e[o]}else n[r]=t}),n},t.prototype.createSegmentGroup=function(t,e,n,r){var o=this,i=this.createSegments(t,e.segments,n,r),l={};return Cc(e.children,function(e,i){l[i]=o.createSegmentGroup(t,e,n,r)}),new Oc(i,l)},t.prototype.createSegments=function(t,e,n,r){var o=this;return e.map(function(e){return e.path.startsWith(":")?o.findPosParam(t,e,r):o.findOrReturn(e,n)})},t.prototype.findPosParam=function(t,e,n){var r=n[e.path.substring(1)];if(!r)throw new Error("Cannot redirect to '"+t+"'. Cannot find '"+e.path+"'.");return r},t.prototype.findOrReturn=function(t,e){var n,r,o=0;try{for(var i=u(e),l=i.next();!l.done;l=i.next()){var a=l.value;if(a.path===t.path)return e.splice(o),a;o++}}catch(s){n={error:s}}finally{try{l&&!l.done&&(r=i.return)&&r.call(i)}finally{if(n)throw n.error}}return t},t}();function Th(t,e,n){if(""===e.path)return"full"===e.pathMatch&&(t.hasChildren()||n.length>0)?{matched:!1,consumedSegments:[],lastChild:0,positionalParamSegments:{}}:{matched:!0,consumedSegments:[],lastChild:0,positionalParamSegments:{}};var r=(e.matcher||fc)(n,t,e);return r?{matched:!0,consumedSegments:r.consumed,lastChild:r.consumed.length,positionalParamSegments:r.posParams}:{matched:!1,consumedSegments:[],lastChild:0,positionalParamSegments:{}}}function kh(t){if(1===t.numberOfChildren&&t.children[uc]){var e=t.children[uc];return new Oc(t.segments.concat(e.segments),e.children)}return t}function Ah(t,e,n){return(!(t.hasChildren()||e.length>0)||"full"!==n.pathMatch)&&""===n.path&&void 0!==n.redirectTo}function Ih(t){return t.outlet||uc}var Ph=function(){return function(t){this.path=t,this.route=this.path[this.path.length-1]}}(),Rh=function(){return function(t,e){this.component=t,this.route=e}}();function Nh(t,e,n){var r=function(t){if(!t)return null;for(var e=t.parent;e;e=e.parent){var n=e.routeConfig;if(n&&n._loadedConfig)return n._loadedConfig}return null}(e);return(r?r.module.injector:n).get(t)}function Dh(t,e,n,r,o){void 0===o&&(o={canDeactivateChecks:[],canActivateChecks:[]});var i=Yc(e);return t.children.forEach(function(t){!function(t,e,n,r,o){void 0===o&&(o={canDeactivateChecks:[],canActivateChecks:[]});var i=t.value,l=e?e.value:null,a=n?n.getContext(t.value.outlet):null;if(l&&i.routeConfig===l.routeConfig){var u=function(t,e,n){if("function"==typeof n)return n(t,e);switch(n){case"pathParamsChange":return!kc(t.url,e.url);case"pathParamsOrQueryParamsChange":return!kc(t.url,e.url)||!bc(t.queryParams,e.queryParams);case"always":return!0;case"paramsOrQueryParamsChange":return!ih(t,e)||!bc(t.queryParams,e.queryParams);case"paramsChange":default:return!ih(t,e)}}(l,i,i.routeConfig.runGuardsAndResolvers);u?o.canActivateChecks.push(new Ph(r)):(i.data=l.data,i._resolvedData=l._resolvedData),Dh(t,e,i.component?a?a.children:null:n,r,o),u&&o.canDeactivateChecks.push(new Rh(a&&a.outlet&&a.outlet.component||null,l))}else l&&Mh(e,a,o),o.canActivateChecks.push(new Ph(r)),Dh(t,null,i.component?a?a.children:null:n,r,o)}(t,i[t.value.outlet],n,r.concat([t.value]),o),delete i[t.value.outlet]}),Cc(i,function(t,e){return Mh(t,n.getContext(e),o)}),o}function Mh(t,e,n){var r=Yc(t),o=t.value;Cc(r,function(t,r){Mh(t,o.component?e?e.children.getContext(r):null:e,n)}),n.canDeactivateChecks.push(new Rh(o.component&&e&&e.outlet&&e.outlet.isActivated?e.outlet.component:null,o))}var jh=Symbol("INITIAL_VALUE");function Vh(){return Ou(function(t){return(function(){for(var t=[],e=0;e0?J(t,n):Ba(n):Wa(t[0]),e)}}(jh))}))).pipe(Au(function(t,e){var n=!1;return e.reduce(function(t,r,o){if(t!==jh)return t;if(r===jh&&(n=!0),!n){if(!1===r)return r;if(o===e.length-1||_h(r))return r}return t},t)},jh),tu(function(t){return t!==jh}),$(function(t){return _h(t)?t:!0===t}),_u(1))})}function Lh(t,e){return null!==t&&e&&e(new oc(t)),Ga(!0)}function Fh(t,e){return null!==t&&e&&e(new nc(t)),Ga(!0)}function Uh(t,e,n){var r=e.routeConfig?e.routeConfig.canActivate:null;return r&&0!==r.length?Ga(r.map(function(r){return Xa(function(){var o,i=Nh(r,e,n);if(function(t){return t&&bh(t.canActivate)}(i))o=Ec(i.canActivate(e,t));else{if(!bh(i))throw new Error("Invalid CanActivate guard");o=Ec(i(e,t))}return o.pipe(Eu())})})).pipe(Vh()):Ga(!0)}function Hh(t,e,n){var r=e[e.length-1],o=e.slice(0,e.length-1).reverse().map(function(t){return function(t){var e=t.routeConfig?t.routeConfig.canActivateChild:null;return e&&0!==e.length?{node:t,guards:e}:null}(t)}).filter(function(t){return null!==t}).map(function(e){return Xa(function(){return Ga(e.guards.map(function(o){var i,l=Nh(o,e.node,n);if(function(t){return t&&bh(t.canActivateChild)}(l))i=Ec(l.canActivateChild(r,t));else{if(!bh(l))throw new Error("Invalid CanActivateChild guard");i=Ec(l(r,t))}return i.pipe(Eu())})).pipe(Vh())})});return Ga(o).pipe(Vh())}var zh=function(){return function(){}}(),Bh=function(){function t(t,e,n,r,o,i){this.rootComponentType=t,this.config=e,this.urlTree=n,this.url=r,this.paramsInheritanceStrategy=o,this.relativeLinkResolution=i}return t.prototype.recognize=function(){try{var t=qh(this.urlTree.root,[],[],this.config,this.relativeLinkResolution).segmentGroup,e=this.processSegmentGroup(this.config,t,uc),n=new th([],Object.freeze({}),Object.freeze(i({},this.urlTree.queryParams)),this.urlTree.fragment,{},uc,this.rootComponentType,null,this.urlTree.root,-1,{}),r=new Qc(n,e),o=new eh(this.url,r);return this.inheritParamsAndData(o._root),Ga(o)}catch(l){return new A(function(t){return t.error(l)})}},t.prototype.inheritParamsAndData=function(t){var e=this,n=t.value,r=Jc(n,this.paramsInheritanceStrategy);n.params=Object.freeze(r.params),n.data=Object.freeze(r.data),t.children.forEach(function(t){return e.inheritParamsAndData(t)})},t.prototype.processSegmentGroup=function(t,e,n){return 0===e.segments.length&&e.hasChildren()?this.processChildren(t,e):this.processSegment(t,e,e.segments,n)},t.prototype.processChildren=function(t,e){var n,r=this,o=Ac(e,function(e,n){return r.processSegmentGroup(t,e,n)});return n={},o.forEach(function(t){var e=n[t.value.outlet];if(e){var r=e.url.map(function(t){return t.toString()}).join("/"),o=t.value.url.map(function(t){return t.toString()}).join("/");throw new Error("Two segments cannot have the same outlet name: '"+r+"' and '"+o+"'.")}n[t.value.outlet]=t.value}),o.sort(function(t,e){return t.value.outlet===uc?-1:e.value.outlet===uc?1:t.value.outlet.localeCompare(e.value.outlet)}),o},t.prototype.processSegment=function(t,e,n,r){var o,i;try{for(var l=u(t),a=l.next();!a.done;a=l.next()){var s=a.value;try{return this.processSegmentAgainstRoute(s,e,n,r)}catch(c){if(!(c instanceof zh))throw c}}}catch(h){o={error:h}}finally{try{a&&!a.done&&(i=l.return)&&i.call(l)}finally{if(o)throw o.error}}if(this.noLeftoversInUrl(e,n,r))return[];throw new zh},t.prototype.noLeftoversInUrl=function(t,e,n){return 0===e.length&&!t.children[n]},t.prototype.processSegmentAgainstRoute=function(t,e,n,r){if(t.redirectTo)throw new zh;if((t.outlet||uc)!==r)throw new zh;var o,l=[],a=[];if("**"===t.path){var u=n.length>0?wc(n).parameters:{};o=new th(n,u,Object.freeze(i({},this.urlTree.queryParams)),this.urlTree.fragment,Yh(t),r,t.component,t,Wh(e),Gh(e)+n.length,$h(t))}else{var s=function(t,e,n){if(""===e.path){if("full"===e.pathMatch&&(t.hasChildren()||n.length>0))throw new zh;return{consumedSegments:[],lastChild:0,parameters:{}}}var r=(e.matcher||fc)(n,t,e);if(!r)throw new zh;var o={};Cc(r.posParams,function(t,e){o[e]=t.path});var l=r.consumed.length>0?i({},o,r.consumed[r.consumed.length-1].parameters):o;return{consumedSegments:r.consumed,lastChild:r.consumed.length,parameters:l}}(e,t,n);l=s.consumedSegments,a=n.slice(s.lastChild),o=new th(l,s.parameters,Object.freeze(i({},this.urlTree.queryParams)),this.urlTree.fragment,Yh(t),r,t.component,t,Wh(e),Gh(e)+l.length,$h(t))}var c=function(t){return t.children?t.children:t.loadChildren?t._loadedConfig.routes:[]}(t),h=qh(e,l,a,c,this.relativeLinkResolution),p=h.segmentGroup,f=h.slicedSegments;if(0===f.length&&p.hasChildren()){var d=this.processChildren(c,p);return[new Qc(o,d)]}if(0===c.length&&0===f.length)return[new Qc(o,[])];var g=this.processSegment(c,p,f,uc);return[new Qc(o,g)]},t}();function Wh(t){for(var e=t;e._sourceSegment;)e=e._sourceSegment;return e}function Gh(t){for(var e=t,n=e._segmentIndexShift?e._segmentIndexShift:0;e._sourceSegment;)n+=(e=e._sourceSegment)._segmentIndexShift?e._segmentIndexShift:0;return n-1}function qh(t,e,n,r,o){if(n.length>0&&function(t,e,n){return r.some(function(n){return Zh(t,e,n)&&Qh(n)!==uc})}(t,n)){var l=new Oc(e,function(t,e,n,r){var o,i,l={};l[uc]=r,r._sourceSegment=t,r._segmentIndexShift=e.length;try{for(var a=u(n),s=a.next();!s.done;s=a.next()){var c=s.value;if(""===c.path&&Qh(c)!==uc){var h=new Oc([],{});h._sourceSegment=t,h._segmentIndexShift=e.length,l[Qh(c)]=h}}}catch(p){o={error:p}}finally{try{s&&!s.done&&(i=a.return)&&i.call(a)}finally{if(o)throw o.error}}return l}(t,e,r,new Oc(n,t.children)));return l._sourceSegment=t,l._segmentIndexShift=e.length,{segmentGroup:l,slicedSegments:[]}}if(0===n.length&&function(t,e,n){return r.some(function(n){return Zh(t,e,n)})}(t,n)){var a=new Oc(t.segments,function(t,e,n,r,o,l){var a,s,c={};try{for(var h=u(r),p=h.next();!p.done;p=h.next()){var f=p.value;if(Zh(t,n,f)&&!o[Qh(f)]){var d=new Oc([],{});d._sourceSegment=t,d._segmentIndexShift="legacy"===l?t.segments.length:e.length,c[Qh(f)]=d}}}catch(g){a={error:g}}finally{try{p&&!p.done&&(s=h.return)&&s.call(h)}finally{if(a)throw a.error}}return i({},o,c)}(t,e,n,r,t.children,o));return a._sourceSegment=t,a._segmentIndexShift=e.length,{segmentGroup:a,slicedSegments:n}}var s=new Oc(t.segments,t.children);return s._sourceSegment=t,s._segmentIndexShift=e.length,{segmentGroup:s,slicedSegments:n}}function Zh(t,e,n){return(!(t.hasChildren()||e.length>0)||"full"!==n.pathMatch)&&""===n.path&&void 0===n.redirectTo}function Qh(t){return t.outlet||uc}function Yh(t){return t.data||{}}function $h(t){return t.resolve||{}}function Kh(t,e,n,r){var o=Nh(t,e,r);return Ec(o.resolve?o.resolve(e,n):o(e,n))}function Xh(t){return function(e){return e.pipe(Ou(function(e){var n=t(e);return n?tt(n).pipe($(function(){return e})):tt([e])}))}}var Jh=function(){return function(){}}(),tp=function(){function t(){}return t.prototype.shouldDetach=function(t){return!1},t.prototype.store=function(t,e){},t.prototype.shouldAttach=function(t){return!1},t.prototype.retrieve=function(t){return null},t.prototype.shouldReuseRoute=function(t,e){return t.routeConfig===e.routeConfig},t}(),ep=new Lt("ROUTES"),np=function(){function t(t,e,n,r){this.loader=t,this.compiler=e,this.onLoadStartListener=n,this.onLoadEndListener=r}return t.prototype.load=function(t,e){var n=this;return this.onLoadStartListener&&this.onLoadStartListener(e),this.loadModuleFactory(e.loadChildren).pipe($(function(r){n.onLoadEndListener&&n.onLoadEndListener(e);var o=r.create(t);return new dc(_c(o.injector.get(ep)).map(yc),o)}))},t.prototype.loadModuleFactory=function(t){var e=this;return"string"==typeof t?tt(this.loader.load(t)):Ec(t()).pipe(et(function(t){return t instanceof un?Ga(t):tt(e.compiler.compileModuleAsync(t))}))},t}(),rp=function(){return function(){}}(),op=function(){function t(){}return t.prototype.shouldProcessUrl=function(t){return!0},t.prototype.extract=function(t){return t},t.prototype.merge=function(t,e){return t},t}();function ip(t){throw t}function lp(t,e,n){return e.parse("/")}function ap(t,e){return Ga(null)}var up=function(){function t(t,e,n,r,o,i,l,a){var u=this;this.rootComponentType=t,this.urlSerializer=e,this.rootContexts=n,this.location=r,this.config=a,this.lastSuccessfulNavigation=null,this.currentNavigation=null,this.navigationId=0,this.isNgZoneEnabled=!1,this.events=new M,this.errorHandler=ip,this.malformedUriErrorHandler=lp,this.navigated=!1,this.lastSuccessfulId=-1,this.hooks={beforePreactivation:ap,afterPreactivation:ap},this.urlHandlingStrategy=new op,this.routeReuseStrategy=new tp,this.onSameUrlNavigation="ignore",this.paramsInheritanceStrategy="emptyOnly",this.urlUpdateStrategy="deferred",this.relativeLinkResolution="legacy",this.ngModule=o.get(an),this.console=o.get(Wo);var s=o.get(ai);this.isNgZoneEnabled=s instanceof ai,this.resetConfig(a),this.currentUrlTree=new xc(new Oc([],{}),{},null),this.rawUrlTree=this.currentUrlTree,this.browserUrlTree=this.currentUrlTree,this.configLoader=new np(i,l,function(t){return u.triggerEvent(new tc(t))},function(t){return u.triggerEvent(new ec(t))}),this.routerState=Kc(this.currentUrlTree,this.rootComponentType),this.transitions=new qa({id:0,currentUrlTree:this.currentUrlTree,currentRawUrl:this.currentUrlTree,extractedUrl:this.urlHandlingStrategy.extract(this.currentUrlTree),urlAfterRedirects:this.urlHandlingStrategy.extract(this.currentUrlTree),rawUrl:this.currentUrlTree,extras:{},resolve:null,reject:null,promise:Promise.resolve(!0),source:"imperative",restoredState:null,currentSnapshot:this.routerState.snapshot,targetSnapshot:null,currentRouterState:this.routerState,targetRouterState:null,guards:{canActivateChecks:[],canDeactivateChecks:[]},guardsResult:null}),this.navigations=this.setupNavigations(this.transitions),this.processNavigations()}return t.prototype.setupNavigations=function(t){var e=this,n=this.events;return t.pipe(tu(function(t){return 0!==t.id}),$(function(t){return i({},t,{extractedUrl:e.urlHandlingStrategy.extract(t.rawUrl)})}),Ou(function(t){var r,o,l,a,s=!1,c=!1;return Ga(t).pipe(uu(function(t){e.currentNavigation={id:t.id,initialUrl:t.currentRawUrl,extractedUrl:t.extractedUrl,trigger:t.source,extras:t.extras,previousNavigation:e.lastSuccessfulNavigation?i({},e.lastSuccessfulNavigation,{previousNavigation:null}):null}}),Ou(function(t){var r,o,l,a,u=!e.navigated||t.extractedUrl.toString()!==e.browserUrlTree.toString();if(("reload"===e.onSameUrlNavigation||u)&&e.urlHandlingStrategy.shouldProcessUrl(t.rawUrl))return Ga(t).pipe(Ou(function(t){var r=e.transitions.getValue();return n.next(new Gs(t.id,e.serializeUrl(t.extractedUrl),t.source,t.restoredState)),r!==e.transitions.getValue()?za:[t]}),Ou(function(t){return Promise.resolve(t)}),(r=e.ngModule.injector,o=e.configLoader,l=e.urlSerializer,a=e.config,function(t){return t.pipe(Ou(function(t){return function(e,n,r,o,i){return new Oh(e,n,r,t.extractedUrl,i).apply()}(r,o,l,0,a).pipe($(function(e){return i({},t,{urlAfterRedirects:e})}))}))}),uu(function(t){e.currentNavigation=i({},e.currentNavigation,{finalUrl:t.urlAfterRedirects})}),function(t,n,r,o,l){return function(r){return r.pipe(et(function(r){return function(t,e,n,r,o,i){return void 0===o&&(o="emptyOnly"),void 0===i&&(i="legacy"),new Bh(t,e,n,r,o,i).recognize()}(t,n,r.urlAfterRedirects,(a=r.urlAfterRedirects,e.serializeUrl(a)),o,l).pipe($(function(t){return i({},r,{targetSnapshot:t})}));var a}))}}(e.rootComponentType,e.config,0,e.paramsInheritanceStrategy,e.relativeLinkResolution),uu(function(t){"eager"===e.urlUpdateStrategy&&(t.extras.skipLocationChange||e.setBrowserUrl(t.urlAfterRedirects,!!t.extras.replaceUrl,t.id,t.extras.state),e.browserUrlTree=t.urlAfterRedirects)}),uu(function(t){var r=new Ys(t.id,e.serializeUrl(t.extractedUrl),e.serializeUrl(t.urlAfterRedirects),t.targetSnapshot);n.next(r)}));if(u&&e.rawUrlTree&&e.urlHandlingStrategy.shouldProcessUrl(e.rawUrlTree)){var s=t.extractedUrl,c=t.source,h=t.restoredState,p=t.extras,f=new Gs(t.id,e.serializeUrl(s),c,h);n.next(f);var d=Kc(s,e.rootComponentType).snapshot;return Ga(i({},t,{targetSnapshot:d,urlAfterRedirects:s,extras:i({},p,{skipLocationChange:!1,replaceUrl:!1})}))}return e.rawUrlTree=t.rawUrl,e.browserUrlTree=t.urlAfterRedirects,t.resolve(null),za}),Xh(function(t){var n=t.extras;return e.hooks.beforePreactivation(t.targetSnapshot,{navigationId:t.id,appliedUrlTree:t.extractedUrl,rawUrlTree:t.rawUrl,skipLocationChange:!!n.skipLocationChange,replaceUrl:!!n.replaceUrl})}),uu(function(t){var n=new $s(t.id,e.serializeUrl(t.extractedUrl),e.serializeUrl(t.urlAfterRedirects),t.targetSnapshot);e.triggerEvent(n)}),$(function(t){return i({},t,{guards:(n=t.targetSnapshot,r=t.currentSnapshot,o=e.rootContexts,l=n._root,Dh(l,r?r._root:null,o,[l.value]))});var n,r,o,l}),function(t,e){return function(n){return n.pipe(et(function(n){var r=n.targetSnapshot,o=n.currentSnapshot,l=n.guards,a=l.canActivateChecks,u=l.canDeactivateChecks;return 0===u.length&&0===a.length?Ga(i({},n,{guardsResult:!0})):function(t,e,n,r){return tt(u).pipe(et(function(t){return function(t,e,n,r,o){var i=e&&e.routeConfig?e.routeConfig.canDeactivate:null;return i&&0!==i.length?Ga(i.map(function(i){var l,a=Nh(i,e,o);if(function(t){return t&&bh(t.canDeactivate)}(a))l=Ec(a.canDeactivate(t,e,n,r));else{if(!bh(a))throw new Error("Invalid CanDeactivate guard");l=Ec(a(t,e,n,r))}return l.pipe(Eu())})).pipe(Vh()):Ga(!0)}(t.component,t.route,n,e,r)}),Eu(function(t){return!0!==t},!0))}(0,r,o,t).pipe(et(function(n){return n&&"boolean"==typeof n?function(t,e,n,r){return tt(a).pipe(Ru(function(e){return tt([Fh(e.route.parent,r),Lh(e.route,r),Hh(t,e.path,n),Uh(t,e.route,n)]).pipe(Ja(),Eu(function(t){return!0!==t},!0))}),Eu(function(t){return!0!==t},!0))}(r,0,t,e):Ga(n)}),$(function(t){return i({},n,{guardsResult:t})}))}))}}(e.ngModule.injector,function(t){return e.triggerEvent(t)}),uu(function(t){if(_h(t.guardsResult)){var n=pc('Redirecting to "'+e.serializeUrl(t.guardsResult)+'"');throw n.url=t.guardsResult,n}}),uu(function(t){var n=new Ks(t.id,e.serializeUrl(t.extractedUrl),e.serializeUrl(t.urlAfterRedirects),t.targetSnapshot,!!t.guardsResult);e.triggerEvent(n)}),tu(function(t){if(!t.guardsResult){e.resetUrlToCurrentUrlTree();var r=new Zs(t.id,e.serializeUrl(t.extractedUrl),"");return n.next(r),t.resolve(!1),!1}return!0}),Xh(function(t){if(t.guards.canActivateChecks.length)return Ga(t).pipe(uu(function(t){var n=new Xs(t.id,e.serializeUrl(t.extractedUrl),e.serializeUrl(t.urlAfterRedirects),t.targetSnapshot);e.triggerEvent(n)}),(n=e.paramsInheritanceStrategy,r=e.ngModule.injector,function(t){return t.pipe(et(function(t){var e=t.targetSnapshot,o=t.guards.canActivateChecks;return o.length?tt(o).pipe(Ru(function(t){return function(t,n,r,o){return function(t,e,n,r){var o=Object.keys(t);if(0===o.length)return Ga({});if(1===o.length){var i=o[0];return Kh(t[i],e,n,r).pipe($(function(t){var e;return(e={})[i]=t,e}))}var l={};return tt(o).pipe(et(function(o){return Kh(t[o],e,n,r).pipe($(function(t){return l[o]=t,t}))})).pipe(vu(),$(function(){return l}))}(t._resolve,t,e,o).pipe($(function(e){return t._resolvedData=e,t.data=i({},t.data,Jc(t,r).resolve),null}))}(t.route,0,n,r)}),function(t,e){return arguments.length>=2?function(e){return T(Au(t,void 0),iu(1),fu(void 0))(e)}:function(e){return T(Au(function(e,n,r){return t(e)}),iu(1))(e)}}(function(t,e){return t}),$(function(e){return t})):Ga(t)}))}),uu(function(t){var n=new Js(t.id,e.serializeUrl(t.extractedUrl),e.serializeUrl(t.urlAfterRedirects),t.targetSnapshot);e.triggerEvent(n)}));var n,r}),Xh(function(t){var n=t.extras;return e.hooks.afterPreactivation(t.targetSnapshot,{navigationId:t.id,appliedUrlTree:t.extractedUrl,rawUrlTree:t.rawUrl,skipLocationChange:!!n.skipLocationChange,replaceUrl:!!n.replaceUrl})}),$(function(t){var n,r,o,l=(o=function t(e,n,r){if(r&&e.shouldReuseRoute(n.value,r.value.snapshot)){(s=r.value)._futureSnapshot=n.value;var o=function(e,n,r){return n.children.map(function(n){var o,i;try{for(var l=u(r.children),a=l.next();!a.done;a=l.next()){var s=a.value;if(e.shouldReuseRoute(s.value.snapshot,n.value))return t(e,n,s)}}catch(c){o={error:c}}finally{try{a&&!a.done&&(i=l.return)&&i.call(l)}finally{if(o)throw o.error}}return t(e,n)})}(e,n,r);return new Qc(s,o)}var i=e.retrieve(n.value);if(i){var l=i.route;return function t(e,n){if(e.value.routeConfig!==n.value.routeConfig)throw new Error("Cannot reattach ActivatedRouteSnapshot created from a different route");if(e.children.length!==n.children.length)throw new Error("Cannot reattach ActivatedRouteSnapshot with a different number of children");n.value._futureSnapshot=e.value;for(var r=0;ra;){if(u-=a,!(l=l.parent))throw new Error("Invalid number of '../'");a=l.segments.length}return new sh(l,!1,a-u)}()}(i,0,t),a=l.processChildren?ph(l.segmentGroup,l.index,i.commands):hh(l.segmentGroup,l.index,i.commands);return ah(l.segmentGroup,a,e,r,o)}(s,this.currentUrlTree,t,p,h)},t.prototype.navigateByUrl=function(t,e){void 0===e&&(e={skipLocationChange:!1}),fe()&&this.isNgZoneEnabled&&!ai.isInAngularZone()&&this.console.warn("Navigation triggered outside Angular zone, did you forget to call 'ngZone.run()'?");var n=_h(t)?t:this.parseUrl(t),r=this.urlHandlingStrategy.merge(n,this.rawUrlTree);return this.scheduleNavigation(r,"imperative",null,e)},t.prototype.navigate=function(t,e){return void 0===e&&(e={skipLocationChange:!1}),function(t){for(var e=0;e1)throw new Error("Triggers parse error: only one manual trigger is allowed");if(1===i.length&&o.length>1)throw new Error("Triggers parse error: manual trigger can't be mixed with other triggers");return o}(),r=e.target;if(1===n.length&&n[0].isManual())return Function.prototype;var o=[],i=[],l=function(){i.forEach(function(t){return o.push(t())}),i.length=0};return n.forEach(function(n){var a=n.open===n.close,u=a?e.toggle:e.show;a||i.push(function(){return t.listen(r,n.close,e.hide)}),o.push(t.listen(r,n.open,function(){return u(l)}))}),function(){o.forEach(function(t){return t()})}}(this._renderer,{target:t.target,triggers:t.triggers,show:r,hide:n,toggle:function(t){e.isShown?n():r(t)}}),this},t.prototype._removeGlobalListener=function(){this._globalListener&&(this._globalListener(),this._globalListener=null)},t.prototype.attachInline=function(t,e){return this._inlineViewRef=t.createEmbeddedView(e),this},t.prototype._registerOutsideClick=function(){var t=this;if(this._componentRef&&this._componentRef.location){if(this._listenOpts.outsideClick){var e=this._componentRef.location.nativeElement;setTimeout(function(){var n;t._globalListener=(n={targets:[e,t._elementRef.nativeElement],outsideClick:t._listenOpts.outsideClick,hide:function(){return t._listenOpts.hide()}}).outsideClick?t._renderer.listen("document","click",function(t){n.target&&n.target.contains(t.target)||n.targets&&n.targets.some(function(e){return e.contains(t.target)})||n.hide()}):Function.prototype})}var n;this._listenOpts.outsideEsc&&(this._globalListener=(n={targets:[this._componentRef.location.nativeElement,this._elementRef.nativeElement],outsideEsc:this._listenOpts.outsideEsc,hide:function(){return t._listenOpts.hide()}}).outsideEsc?this._renderer.listen("document","keyup.esc",function(t){n.target&&n.target.contains(t.target)||n.targets&&n.targets.some(function(e){return e.contains(t.target)})||n.hide()}):Function.prototype)}},t.prototype.getInnerComponent=function(){return this._innerComponent},t.prototype._subscribePositioning=function(){var t=this;!this._zoneSubscription&&this.attachment&&(this.onShown.subscribe(function(){t._posService.position({element:t._componentRef.location,target:t._elementRef,attachment:t.attachment,appendToBody:"body"===t.container})}),this._zoneSubscription=this._ngZone.onStable.subscribe(function(){t._componentRef&&t._posService.calcPosition()}))},t.prototype._unsubscribePositioning=function(){this._zoneSubscription&&(this._zoneSubscription.unsubscribe(),this._zoneSubscription=null)},t.prototype._getContentRef=function(t,e,n){if(!t)return new qp([]);if(t instanceof Mn){if(this._viewContainerRef){var r=this._viewContainerRef.createEmbeddedView(t,e);return r.markForCheck(),new qp([r.rootNodes],r)}var o=t.createEmbeddedView({});return this._applicationRef.attachView(o),new qp([o.rootNodes],o)}if("function"==typeof t){var i=this._componentFactoryResolver.resolveComponentFactory(t),l=Bt.create({providers:this._providers,parent:this._injector}),a=i.create(l);return Object.assign(a.instance,n),this._applicationRef.attachView(a.hostView),new qp([[a.location.nativeElement]],a.hostView,a)}return new qp([[this._renderer.createText(""+t)]])},t}(),Qp=function(){function t(t,e,n,r,o){this._componentFactoryResolver=t,this._ngZone=e,this._injector=n,this._posService=r,this._applicationRef=o}return t.prototype.createLoader=function(t,e,n){return new Zp(e,n,t,this._injector,this._componentFactoryResolver,this._ngZone,this._applicationRef,this._posService)},t}();function Yp(t,e,n,r){return f(n)&&(r=n,n=void 0),r?Yp(t,e,n).pipe($(function(t){return h(t)?r.apply(void 0,t):r(t)})):new A(function(r){!function t(e,n,r,o,i){var l;if(function(t){return t&&"function"==typeof t.addEventListener&&"function"==typeof t.removeEventListener}(e)){var a=e;e.addEventListener(n,r,i),l=function(){return a.removeEventListener(n,r,i)}}else if(function(t){return t&&"function"==typeof t.on&&"function"==typeof t.off}(e)){var u=e;e.on(n,r),l=function(){return u.off(n,r)}}else if(function(t){return t&&"function"==typeof t.addListener&&"function"==typeof t.removeListener}(e)){var s=e;e.addListener(n,r),l=function(){return s.removeListener(n,r)}}else{if(!e||!e.length)throw new TypeError("Invalid event target");for(var c=0,h=e.length;c1?Array.prototype.slice.call(arguments):t)},r,n)})}var $p=function(t){function e(e,n){var r=t.call(this,e,n)||this;return r.scheduler=e,r.work=n,r}return o(e,t),e.prototype.requestAsyncId=function(e,n,r){return void 0===r&&(r=0),null!==r&&r>0?t.prototype.requestAsyncId.call(this,e,n,r):(e.actions.push(this),e.scheduled||(e.scheduled=requestAnimationFrame(function(){return e.flush(null)})))},e.prototype.recycleAsyncId=function(e,n,r){if(void 0===r&&(r=0),null!==r&&r>0||null===r&&this.delay>0)return t.prototype.recycleAsyncId.call(this,e,n,r);0===e.actions.length&&(cancelAnimationFrame(n),e.scheduled=void 0)},e}(function(t){function e(e,n){var r=t.call(this,e,n)||this;return r.scheduler=e,r.work=n,r.pending=!1,r}return o(e,t),e.prototype.schedule=function(t,e){if(void 0===e&&(e=0),this.closed)return this;this.state=t;var n=this.id,r=this.scheduler;return null!=n&&(this.id=this.recycleAsyncId(r,n,e)),this.pending=!0,this.delay=e,this.id=this.id||this.requestAsyncId(r,this.id,e),this},e.prototype.requestAsyncId=function(t,e,n){return void 0===n&&(n=0),setInterval(t.flush.bind(t,this),n)},e.prototype.recycleAsyncId=function(t,e,n){if(void 0===n&&(n=0),null!==n&&this.delay===n&&!1===this.pending)return e;clearInterval(e)},e.prototype.execute=function(t,e){if(this.closed)return new Error("executing a cancelled action");this.pending=!1;var n=this._execute(t,e);if(n)return n;!1===this.pending&&null!=this.id&&(this.id=this.recycleAsyncId(this.scheduler,this.id,null))},e.prototype._execute=function(t,e){var n=!1,r=void 0;try{this.work(t)}catch(o){n=!0,r=!!o&&o||new Error(o)}if(n)return this.unsubscribe(),r},e.prototype._unsubscribe=function(){var t=this.id,e=this.scheduler,n=e.actions,r=n.indexOf(this);this.work=null,this.state=null,this.pending=!1,this.scheduler=null,-1!==r&&n.splice(r,1),null!=t&&(this.id=this.recycleAsyncId(e,t,null)),this.delay=null},e}(function(t){function e(e,n){return t.call(this)||this}return o(e,t),e.prototype.schedule=function(t,e){return void 0===e&&(e=0),this},e}(v))),Kp=function(){function t(e,n){void 0===n&&(n=t.now),this.SchedulerAction=e,this.now=n}return t.prototype.schedule=function(t,e,n){return void 0===e&&(e=0),new this.SchedulerAction(this,t).schedule(n,e)},t.now=function(){return Date.now()},t}(),Xp=new(function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return o(e,t),e.prototype.flush=function(t){this.active=!0,this.scheduled=void 0;var e,n=this.actions,r=-1,o=n.length;t=t||n.shift();do{if(e=t.execute(t.state,t.delay))break}while(++r=n.clientWidth&&t.height>=n.clientHeight}),p=(h=h.filter(function(t){return o.some(function(e){return e===t.key})})).length>0?h[0].key:c[0].key,f=t.split(" ")[1];return n.className=n.className.replace(/bs-tooltip-auto/g,"bs-tooltip-"+p),p+(f?"-"+f:"")}function _f(t){var e=t.ownerDocument.defaultView.getComputedStyle(t),n=parseFloat(e.marginTop||0)+parseFloat(e.marginBottom||0),r=parseFloat(e.marginLeft||0)+parseFloat(e.marginRight||0);return{width:Number(t.offsetWidth)+r,height:Number(t.offsetHeight)+n}}function wf(t,e,n){return void 0===n&&(n=null),vf(e,n?mf(t):sf(t,e),n)}function Cf(t,e,n){var r,o=n.split(" ")[0],i=_f(t),l={width:i.width,height:i.height},a=-1!==["right","left"].indexOf(o),u=a?"top":"left",s=a?"left":"top",c=a?"height":"width",h=a?"width":"height";return l[u]=e[u]+e[c]/2-i[c]/2,l[s]=o===s?e[s]-i[h]:e[(r={left:"right",right:"left",bottom:"top",top:"bottom"},s.replace(/left|right|bottom|top/g,function(t){return r[t]}))],l}function Ef(t,e){return t&&t.modifiers&&t.modifiers[e]&&t.modifiers[e].enabled}function Sf(t,e,n){Object.keys(e).forEach(function(r){var o,i="";-1!==["width","height","top","right","bottom","left"].indexOf(r)&&""!==(o=e[r])&&!isNaN(parseFloat(o))&&isFinite(o)&&(i="px"),n?n.setStyle(t,r,""+String(e[r])+i):t.style[r]=String(e[r])+i})}function xf(t){var e,n=t.offsets.target,r=t.instance.target.querySelector(".arrow");if(!r)return t;var o=-1!==["left","right"].indexOf(t.placement),i=o?"height":"width",l=o?"Top":"Left",a=l.toLowerCase(),u=o?"left":"top",s=o?"bottom":"right",c=_f(r)[i];t.offsets.host[s]-cn[s]&&(n[a]+=Number(t.offsets.host[a])+Number(c)-Number(n[s])),n=df(n);var h=Number(t.offsets.host[a])+Number(t.offsets.host[i]/2-c/2),p=Jp(t.instance.target),f=parseFloat(p["margin"+l]),d=parseFloat(p["border"+l+"Width"]),g=h-n[a]-f-d;return g=Math.max(Math.min(n[i]-c,g),0),t.offsets.arrow=((e={})[a]=Math.round(g),e[u]="",e),t.instance.arrow=r,t}function Of(t){if(t.offsets.target=df(t.offsets.target),!Ef(t.options,"flip"))return t.offsets.target=i({},t.offsets.target,Cf(t.instance.target,t.offsets.host,t.placement)),t;var e=yf(t.instance.target,t.instance.host,0,"viewport",!1),n=t.placement.split(" ")[0],r=t.placement.split(" ")[1]||"",o=bf("auto",t.offsets.host,t.instance.target,t.instance.host,t.options.allowedPositions),l=[n,o];return l.forEach(function(o,a){if(n!==o||l.length===a+1)return t;var u="left"===(n=t.placement.split(" ")[0])&&Math.floor(t.offsets.target.right)>Math.floor(t.offsets.host.left)||"right"===n&&Math.floor(t.offsets.target.left)Math.floor(t.offsets.host.top)||"bottom"===n&&Math.floor(t.offsets.target.top)Math.floor(e.right),h=Math.floor(t.offsets.target.top)Math.floor(e.bottom),f="left"===n&&s||"right"===n&&c||"top"===n&&h||"bottom"===n&&p,d=-1!==["top","bottom"].indexOf(n),g=d&&"left"===r&&s||d&&"right"===r&&c||!d&&"left"===r&&h||!d&&"right"===r&&p;(u||f||g)&&((u||f)&&(n=l[a+1]),g&&(r=function(t){return"right"===t?"left":"left"===t?"right":t}(r)),t.placement=n+(r?" "+r:""),t.offsets.target=i({},t.offsets.target,Cf(t.instance.target,t.offsets.host,t.placement)))}),t}function Tf(t){if(!Ef(t.options,"preventOverflow"))return t;var e=t.instance.target.style,n=e.top,r=e.left,o=e.transform;e.top="",e.left="",e.transform="";var l=yf(t.instance.target,t.instance.host,0,"scrollParent",!1);e.top=n,e.left=r,e.transform=o;var a,u={primary:function(e){var n,r=t.offsets.target[e];return t.offsets.target[e]l[e]&&(o=Math.min(t.offsets.target[r],l[e]-("right"===e?t.offsets.target.width:t.offsets.target.height))),(n={})[r]=o,n}};return["left","right","top","bottom"].forEach(function(e){a=-1!==["left","top"].indexOf(e)?"primary":"secondary",t.offsets.target=i({},t.offsets.target,u[a](e))}),t}function kf(t){var e,n,r=t.placement,o=r.split(" ")[0],l=r.split(" ")[1];if(l){var a=t.offsets,u=a.host,s=a.target,c=-1!==["bottom","top"].indexOf(o),h=c?"left":"top",p=c?"width":"height",f={start:(e={},e[h]=u[h],e),end:(n={},n[h]=u[h]+u[p]-s[p],n)};t.offsets.target=i({},s,f[l])}return t}var Af=new(function(){function t(){}return t.prototype.position=function(t,e,n){return void 0===n&&(n=!0),this.offset(t,e,!1)},t.prototype.offset=function(t,e,n){return void 0===n&&(n=!0),wf(e,t)},t.prototype.positionElements=function(t,e,n,r,o){return[Of,kf,Tf,xf].reduce(function(t,e){return e(t)},function(t,e,n,r){var o=wf(t,e);n.match(/^(auto)*\s*(left|right|top|bottom)*$/)||n.match(/^(left|right|top|bottom)*\s*(start|end)*$/)||(n="auto");var i=!!n.match(/auto/g),l=n.match(/auto\s(left|right|top|bottom)/)?n.split(" ")[1]||"auto":n;return{options:r,instance:{target:t,host:e,arrow:null},offsets:{target:Cf(t,o,l),host:o,arrow:null},positionFixed:!1,placement:l=bf(l,o,t,e,r?r.allowedPositions:void 0),placementAuto:i}}(e,t,n,o))},t}()),If=function(){function t(t,e){var n=this;this.update$$=new M,this.positionElements=new Map,function(t){return t===La}(e)&<(Yp(window,"scroll"),Yp(window,"resize"),Ga(0,Xp),this.update$$).subscribe(function(){n.positionElements.forEach(function(e){var r,o,i,l,a,u,s,c;r=Pf(e.target),o=Pf(e.element),i=e.attachment,l=e.appendToBody,a=n.options,u=t.createRenderer(null,null),Sf(o,{"will-change":"transform",top:"0px",left:"0px",transform:"translate3d("+(c=function(t){return{width:t.offsets.target.width,height:t.offsets.target.height,left:Math.floor(t.offsets.target.left),top:Math.round(t.offsets.target.top),bottom:Math.round(t.offsets.target.bottom),right:Math.floor(t.offsets.target.right)}}(s=Af.positionElements(r,o,i,l,a))).left+"px, "+c.top+"px, 0px)"},u),s.instance.arrow&&Sf(s.instance.arrow,s.offsets.arrow,u),function(t,e){var n=t.instance.target,r=n.className;t.placementAuto&&(-1!==(r=(r=(r=r.replace(/bs-popover-auto/g,"bs-popover-"+t.placement)).replace(/bs-tooltip-auto/g,"bs-tooltip-"+t.placement)).replace(/\sauto/g," "+t.placement)).indexOf("popover")&&-1===r.indexOf("popover-auto")&&(r+=" popover-auto"),-1!==r.indexOf("tooltip")&&-1===r.indexOf("tooltip-auto")&&(r+=" tooltip-auto")),r=r.replace(/left|right|top|bottom/g,""+t.placement.split(" ")[0]),e?e.setAttribute(n,"class",r):n.className=r}(s,u)})})}return t.prototype.position=function(t){this.addPositionElement(t)},t.prototype.addPositionElement=function(t){this.positionElements.set(Pf(t.element),t)},t.prototype.calcPosition=function(){this.update$$.next()},t.prototype.deletePositionElement=function(t){this.positionElements.delete(Pf(t))},t.prototype.setOptions=function(t){this.options=t},t}();function Pf(t){return"string"==typeof t?document.querySelector(t):t instanceof cn?t.nativeElement:t}var Rf=function(){return function(){this.autoClose=!0,this.insideClick=!1}}(),Nf=function(){return function(){var t=this;this.direction="down",this.isOpenChange=new Po,this.isDisabledChange=new Po,this.toggleClick=new Po,this.dropdownMenu=new Promise(function(e){t.resolveDropdownMenu=e})}}(),Df=function(){function t(t,e,n,r){var o=this;this._state=t,this.cd=e,this._renderer=n,this._element=r,this.isOpen=!1,this._subscription=t.isOpenChange.subscribe(function(t){o.isOpen=t;var e=o._element.nativeElement.querySelector(".dropdown-menu");e&&!Gp()&&(o._renderer.addClass(e,"show"),e.classList.contains("dropdown-menu-right")&&(o._renderer.setStyle(e,"left","auto"),o._renderer.setStyle(e,"right","0")),"up"===o.direction&&(o._renderer.setStyle(e,"top","auto"),o._renderer.setStyle(e,"transform","translateY(-101%)"))),o.cd.markForCheck(),o.cd.detectChanges()})}return Object.defineProperty(t.prototype,"direction",{get:function(){return this._state.direction},enumerable:!0,configurable:!0}),t.prototype._contains=function(t){return this._element.nativeElement.contains(t)},t.prototype.ngOnDestroy=function(){this._subscription.unsubscribe()},t}(),Mf=function(){function t(t,e,n,r,o,i){this._elementRef=t,this._renderer=e,this._viewContainerRef=n,this._cis=r,this._config=o,this._state=i,this._isInlineOpen=!1,this._subscriptions=[],this._isInited=!1,this._state.autoClose=this._config.autoClose,this._state.insideClick=this._config.insideClick,this._dropdown=this._cis.createLoader(this._elementRef,this._viewContainerRef,this._renderer).provide({provide:Nf,useValue:this._state}),this.onShown=this._dropdown.onShown,this.onHidden=this._dropdown.onHidden,this.isOpenChange=this._state.isOpenChange}return Object.defineProperty(t.prototype,"autoClose",{get:function(){return this._state.autoClose},set:function(t){this._state.autoClose=t},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"insideClick",{get:function(){return this._state.insideClick},set:function(t){this._state.insideClick=t},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"isDisabled",{get:function(){return this._isDisabled},set:function(t){this._isDisabled=t,this._state.isDisabledChange.emit(t),t&&this.hide()},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"isOpen",{get:function(){return this._showInline?this._isInlineOpen:this._dropdown.isShown},set:function(t){t?this.show():this.hide()},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"isBs4",{get:function(){return!Gp()},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"_showInline",{get:function(){return!this.container},enumerable:!0,configurable:!0}),t.prototype.ngOnInit=function(){var t=this;this._isInited||(this._isInited=!0,this._dropdown.listen({outsideClick:!1,triggers:this.triggers,show:function(){return t.show()}}),this._subscriptions.push(this._state.toggleClick.subscribe(function(e){return t.toggle(e)})),this._subscriptions.push(this._state.isDisabledChange.pipe(tu(function(t){return t})).subscribe(function(e){return t.hide()})))},t.prototype.show=function(){var t=this;if(!this.isOpen&&!this.isDisabled)return this._showInline?(this._inlinedMenu||this._state.dropdownMenu.then(function(e){t._dropdown.attachInline(e.viewContainer,e.templateRef),t._inlinedMenu=t._dropdown._inlineViewRef,t.addBs4Polyfills()}).catch(),this.addBs4Polyfills(),this._isInlineOpen=!0,this.onShown.emit(!0),void this._state.isOpenChange.emit(!0)):void this._state.dropdownMenu.then(function(e){var n=t.dropup||void 0!==t.dropup&&t.dropup;t._state.direction=n?"up":"down";var r=t.placement||(n?"top start":"bottom start");t._dropdown.attach(Df).to(t.container).position({attachment:r}).show({content:e.templateRef,placement:r}),t._state.isOpenChange.emit(!0)}).catch()},t.prototype.hide=function(){this.isOpen&&(this._showInline?(this.removeShowClass(),this.removeDropupStyles(),this._isInlineOpen=!1,this.onHidden.emit(!0)):this._dropdown.hide(),this._state.isOpenChange.emit(!1))},t.prototype.toggle=function(t){return this.isOpen||!t?this.hide():this.show()},t.prototype._contains=function(t){return this._elementRef.nativeElement.contains(t.target)||this._dropdown.instance&&this._dropdown.instance._contains(t.target)},t.prototype.ngOnDestroy=function(){var t,e;try{for(var n=u(this._subscriptions),r=n.next();!r.done;r=n.next())r.value.unsubscribe()}catch(o){t={error:o}}finally{try{r&&!r.done&&(e=n.return)&&e.call(n)}finally{if(t)throw t.error}}this._dropdown.dispose()},t.prototype.addBs4Polyfills=function(){Gp()||(this.addShowClass(),this.checkRightAlignment(),this.addDropupStyles())},t.prototype.addShowClass=function(){this._inlinedMenu&&this._inlinedMenu.rootNodes[0]&&this._renderer.addClass(this._inlinedMenu.rootNodes[0],"show")},t.prototype.removeShowClass=function(){this._inlinedMenu&&this._inlinedMenu.rootNodes[0]&&this._renderer.removeClass(this._inlinedMenu.rootNodes[0],"show")},t.prototype.checkRightAlignment=function(){if(this._inlinedMenu&&this._inlinedMenu.rootNodes[0]){var t=this._inlinedMenu.rootNodes[0].classList.contains("dropdown-menu-right");this._renderer.setStyle(this._inlinedMenu.rootNodes[0],"left",t?"auto":"0"),this._renderer.setStyle(this._inlinedMenu.rootNodes[0],"right",t?"0":"auto")}},t.prototype.addDropupStyles=function(){this._inlinedMenu&&this._inlinedMenu.rootNodes[0]&&(this._renderer.setStyle(this._inlinedMenu.rootNodes[0],"top",this.dropup?"auto":"100%"),this._renderer.setStyle(this._inlinedMenu.rootNodes[0],"transform",this.dropup?"translateY(-101%)":"translateY(0)"),this._renderer.setStyle(this._inlinedMenu.rootNodes[0],"bottom","auto"))},t.prototype.removeDropupStyles=function(){this._inlinedMenu&&this._inlinedMenu.rootNodes[0]&&(this._renderer.removeStyle(this._inlinedMenu.rootNodes[0],"top"),this._renderer.removeStyle(this._inlinedMenu.rootNodes[0],"transform"),this._renderer.removeStyle(this._inlinedMenu.rootNodes[0],"bottom"))},t}(),jf=function(){return function(t,e,n){t.resolveDropdownMenu({templateRef:n,viewContainer:e})}}(),Vf=function(){function t(t,e,n,r,o){var i=this;this._changeDetectorRef=t,this._dropdown=e,this._element=n,this._renderer=r,this._state=o,this.isDisabled=null,this._subscriptions=[],this._subscriptions.push(this._state.isOpenChange.subscribe(function(t){i.isOpen=t,t?(i._documentClickListener=i._renderer.listen("document","click",function(t){!i._state.autoClose||2===t.button||i._element.nativeElement.contains(t.target)||i._state.insideClick&&i._dropdown._contains(t)||(i._state.toggleClick.emit(!1),i._changeDetectorRef.detectChanges())}),i._escKeyUpListener=i._renderer.listen(i._element.nativeElement,"keyup.esc",function(){i._state.autoClose&&(i._state.toggleClick.emit(!1),i._changeDetectorRef.detectChanges())})):(i._documentClickListener(),i._escKeyUpListener())})),this._subscriptions.push(this._state.isDisabledChange.subscribe(function(t){return i.isDisabled=t||null}))}return t.prototype.onClick=function(){this.isDisabled||this._state.toggleClick.emit(!0)},t.prototype.ngOnDestroy=function(){var t,e;this._documentClickListener&&this._documentClickListener(),this._escKeyUpListener&&this._escKeyUpListener();try{for(var n=u(this._subscriptions),r=n.next();!r.done;r=n.next())r.value.unsubscribe()}catch(o){t={error:o}}finally{try{r&&!r.done&&(e=n.return)&&e.call(n)}finally{if(t)throw t.error}}},t}(),Lf=function(){function t(){}return t.forRoot=function(e){return{ngModule:t,providers:[Qp,If,Nf,{provide:Rf,useValue:e||{autoClose:!0,insideClick:!1}}]}},t}(),Ff=nr({encapsulation:2,styles:[],data:{}});function Uf(t){return il(2,[(t()(),Wi(0,0,null,null,1,"div",[],[[2,"dropup",null],[2,"dropdown",null],[2,"show",null],[2,"open",null]],null,null,null,null)),{nodeIndex:-1,parent:null,renderParent:null,bindingIndex:-1,outputIndex:-1,checkIndex:-1,flags:8,childFlags:0,directChildFlags:0,childMatchedQueries:0,matchedQueries:{},matchedQueryIds:0,references:{},ngContentIndex:null,childCount:0,bindings:[],bindingFlags:0,outputs:[],element:null,provider:null,text:null,query:null,ngContent:{index:0}}],null,function(t,e){var n=e.component;t(e,0,0,"up"===n.direction,"down"===n.direction,n.isOpen,n.isOpen)})}function Hf(t){return il(0,[(t()(),Wi(0,0,null,null,1,"bs-dropdown-container",[["style","display:block;position: absolute;"]],null,null,null,Uf,Ff)),po(1,180224,null,0,Df,[Nf,In,gn,cn],null,null)],null,null)}var zf=zr("bs-dropdown-container",Df,Hf,{},{},["*"]);function Bf(t){return(Bf="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function Wf(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function Gf(){return(Gf=Object.assign||function(t){for(var e=1;e"===e[0]&&(e=e.substring(1)),t)try{if(t.matches)return t.matches(e);if(t.msMatchesSelector)return t.msMatchesSelector(e);if(t.webkitMatchesSelector)return t.webkitMatchesSelector(e)}catch(n){return!1}return!1}}function rd(t){return t.host&&t!==document&&t.host.nodeType?t.host:t.parentNode}function od(t,e,n,r){if(t){n=n||document;do{if(null!=e&&(">"===e[0]?t.parentNode===n&&nd(t,e):nd(t,e))||r&&t===n)return t;if(t===n)break}while(t=rd(t))}return null}var id,ld=/\s+/g;function ad(t,e,n){if(t&&e)if(t.classList)t.classList[n?"add":"remove"](e);else{var r=(" "+t.className+" ").replace(ld," ").replace(" "+e+" "," ");t.className=(r+(n?" "+e:"")).replace(ld," ")}}function ud(t,e,n){var r=t&&t.style;if(r){if(void 0===n)return document.defaultView&&document.defaultView.getComputedStyle?n=document.defaultView.getComputedStyle(t,""):t.currentStyle&&(n=t.currentStyle),void 0===e?n:n[e];e in r||-1!==e.indexOf("webkit")||(e="-webkit-"+e),r[e]=n+("string"==typeof n?"":"px")}}function sd(t,e){var n="";do{var r=ud(t,"transform");r&&"none"!==r&&(n=r+" "+n)}while(!e&&(t=t.parentNode));var o=window.DOMMatrix||window.WebKitCSSMatrix||window.CSSMatrix;return o&&new o(n)}function cd(t,e,n){if(t){var r=t.getElementsByTagName(e),o=0,i=r.length;if(n)for(;o=l:i<=l))return o;if(o===hd())break;o=yd(o,!1)}return!1}function dd(t,e,n){for(var r=0,o=0,i=t.children;o2&&void 0!==arguments[2]?arguments[2]:{},r=n.evt,o=function(t,e){if(null==t)return{};var n,r,o=function(t,e){if(null==t)return{};var n,r,o={},i=Object.keys(t);for(r=0;r=0||(o[n]=t[n]);return o}(t,e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(t,n)&&(o[n]=t[n])}return o}(n,["evt"]);Td.pluginEvent.bind(gg)(t,e,qf({dragEl:Id,parentEl:Pd,ghostEl:Rd,rootEl:Nd,nextEl:Dd,lastDownEl:Md,cloneEl:jd,cloneHidden:Vd,dragStarted:qd,putSortable:Bd,activeSortable:gg.active,originalEvent:r,oldIndex:Ld,oldDraggableIndex:Ud,newIndex:Fd,newDraggableIndex:Hd,hideGhostForTarget:hg,unhideGhostForTarget:pg,cloneNowHidden:function(){Vd=!0},cloneNowShown:function(){Vd=!1},dispatchSortableEvent:function(t){Ad({sortable:e,name:t,originalEvent:r})}},o))};function Ad(t){!function(t){var e,n=t.sortable,r=t.rootEl,o=t.name,i=t.targetEl,l=t.cloneEl,a=t.toEl,u=t.fromEl,s=t.oldIndex,c=t.newIndex,h=t.oldDraggableIndex,p=t.newDraggableIndex,f=t.originalEvent,d=t.putSortable,g=t.eventOptions,v=(n=n||r[Ed]).options,m="on"+o.charAt(0).toUpperCase()+o.substr(1);!window.CustomEvent||Qf||Yf?(e=document.createEvent("Event")).initEvent(o,!0,!0):e=new CustomEvent(o,{bubbles:!0,cancelable:!0}),e.to=a||r,e.from=u||r,e.item=i||r,e.clone=l,e.oldIndex=s,e.newIndex=c,e.oldDraggableIndex=h,e.newDraggableIndex=p,e.originalEvent=f,e.pullMode=d?d.lastPutMode:void 0;var y=qf({},g,Td.getEventOptions(o,n));for(var b in y)e[b]=y[b];r&&r.dispatchEvent(e),v[m]&&v[m].call(n,e)}(qf({putSortable:Bd,cloneEl:jd,targetEl:Id,rootEl:Nd,oldIndex:Ld,oldDraggableIndex:Ud,newIndex:Fd,newDraggableIndex:Hd},t))}if("undefined"==typeof window||!window.document)throw new Error("Sortable.js requires a window with a document");var Id,Pd,Rd,Nd,Dd,Md,jd,Vd,Ld,Fd,Ud,Hd,zd,Bd,Wd,Gd,qd,Zd,Qd,Yd,$d,Kd=!1,Xd=!1,Jd=[],tg=!1,eg=!1,ng=[],rg=!1,og=[],ig=Xf,lg=Yf||Qf?"cssFloat":"float",ag="draggable"in document.createElement("div"),ug=function(){if(Qf)return!1;var t=document.createElement("x");return t.style.cssText="pointer-events:auto","auto"===t.style.pointerEvents}(),sg=function(t,e){var n=ud(t),r=parseInt(n.width)-parseInt(n.paddingLeft)-parseInt(n.paddingRight)-parseInt(n.borderLeftWidth)-parseInt(n.borderRightWidth),o=dd(t,0,e),i=dd(t,1,e),l=o&&ud(o),a=i&&ud(i),u=l&&parseInt(l.marginLeft)+parseInt(l.marginRight)+pd(o).width,s=a&&parseInt(a.marginLeft)+parseInt(a.marginRight)+pd(i).width;return"flex"===n.display?"column"===n.flexDirection||"column-reverse"===n.flexDirection?"vertical":"horizontal":"grid"===n.display?n.gridTemplateColumns.split(" ").length<=1?"vertical":"horizontal":o&&"none"!==l.float?!i||"both"!==a.clear&&a.clear!==("left"===l.float?"left":"right")?"horizontal":"vertical":o&&("block"===l.display||"flex"===l.display||"table"===l.display||"grid"===l.display||u>=r&&"none"===n[lg]||i&&"none"===n[lg]&&u+s>r)?"vertical":"horizontal"},cg=function(t){function e(t,n){return function(r,o,i,l){if(null==t&&(n||r.options.group.name&&o.options.group.name&&r.options.group.name===o.options.group.name))return!0;if(null==t||!1===t)return!1;if(n&&"clone"===t)return t;if("function"==typeof t)return e(t(r,o,i,l),n)(r,o,i,l);var a=(n?r:o).options.group.name;return!0===t||"string"==typeof t&&t===a||t.join&&t.indexOf(a)>-1}}var n={},r=t.group;r&&"object"==Bf(r)||(r={name:r}),n.name=r.name,n.checkPull=e(r.pull,!0),n.checkPut=e(r.put),n.revertClone=r.revertClone,t.group=n},hg=function(){!ug&&Rd&&ud(Rd,"display","none")},pg=function(){!ug&&Rd&&ud(Rd,"display","")};document.addEventListener("click",function(t){if(Xd)return t.preventDefault(),t.stopPropagation&&t.stopPropagation(),t.stopImmediatePropagation&&t.stopImmediatePropagation(),Xd=!1,!1},!0);var fg=function(t){if(Id){var e=function(t,e){for(var n in Jd)if(!gd(Jd[n])){var r=pd(Jd[n]),o=Jd[n][Ed].options.emptyInsertThreshold;if(o&&t>=r.left-o&&t<=r.right+o&&e>=r.top-o&&e<=r.bottom+o)return Jd[n]}}((t=t.touches?t.touches[0]:t).clientX,t.clientY);if(e){var n={};for(var r in t)n[r]=t[r];n.target=n.rootEl=e,n.preventDefault=void 0,n.stopPropagation=void 0,e[Ed]._onDragOver(n)}}},dg=function(t){Id&&Id.parentNode[Ed]._isOutsideThisEl(t.target)};function gg(t,e){if(!t||!t.nodeType||1!==t.nodeType)throw"Sortable: `el` must be an HTMLElement, not ".concat({}.toString.call(t));this.el=t,this.options=e=Gf({},e),t[Ed]=this;var n,r,o={group:null,sort:!0,disabled:!1,store:null,handle:null,draggable:/^[uo]l$/i.test(t.nodeName)?">li":">*",swapThreshold:1,invertSwap:!1,invertedSwapThreshold:null,removeCloneOnHide:!0,direction:function(){return sg(t,this.options)},ghostClass:"sortable-ghost",chosenClass:"sortable-chosen",dragClass:"sortable-drag",ignore:"a, img",filter:null,preventOnFilter:!0,animation:0,easing:null,setData:function(t,e){t.setData("Text",e.textContent)},dropBubble:!1,dragoverBubble:!1,dataIdAttr:"data-id",delay:0,delayOnTouchOnly:!1,touchStartThreshold:Number.parseInt(window.devicePixelRatio,10)||1,forceFallback:!1,fallbackClass:"sortable-fallback",fallbackOnBody:!1,fallbackTolerance:0,fallbackOffset:{x:0,y:0},supportPointer:!1!==gg.supportPointer&&"PointerEvent"in window,emptyInsertThreshold:5};for(var i in Td.initializePlugins(this,t,o),o)!(i in e)&&(e[i]=o[i]);for(var l in cg(e),this)"_"===l.charAt(0)&&"function"==typeof this[l]&&(this[l]=this[l].bind(this));this.nativeDraggable=!e.forceFallback&&ag,this.nativeDraggable&&(this.options.touchStartThreshold=1),e.supportPointer?td(t,"pointerdown",this._onTapStart):(td(t,"mousedown",this._onTapStart),td(t,"touchstart",this._onTapStart)),this.nativeDraggable&&(td(t,"dragover",this),td(t,"dragenter",this)),Jd.push(this.el),e.store&&e.store.get&&this.sort(e.store.get(this)||[]),Gf(this,(r=[],{captureAnimationState:function(){if(r=[],this.options.animation){var t=[].slice.call(this.el.children);for(var e in t)if("none"!==ud(t[e],"display")&&t[e]!==gg.ghost){r.push({target:t[e],rect:pd(t[e])});var n=pd(t[e]);if(t[e].thisAnimationDuration){var o=sd(t[e],!0);o&&(n.top-=o.f,n.left-=o.e)}t[e].fromRect=n}}},addAnimationState:function(t){r.push(t)},removeAnimationState:function(t){r.splice(function(t,e){for(var n in t)for(var r in e)if(e[r]===t[n][r])return Number(n);return-1}(r,{target:t}),1)},animateAll:function(t){if(!this.options.animation)return clearTimeout(n),void("function"==typeof t&&t());var e=!1,o=0;for(var i in r){var l=0,a=r[i].target,u=a.fromRect,s=pd(a),c=a.prevFromRect,h=a.prevToRect,p=r[i].rect,f=sd(a,!0);f&&(s.top-=f.f,s.left-=f.e),a.toRect=s,(fd(a,s,"bottom","top")||fd(a,s,"top","bottom")||fd(a,s,"right","left")||fd(a,s,"left","right"))&&(fd(a,p,"bottom","top")||fd(a,p,"top","bottom")||fd(a,p,"right","left")||fd(a,p,"left","right"))&&(fd(a,u,"bottom","top")||fd(a,u,"top","bottom")||fd(a,u,"right","left")||fd(a,u,"left","right"))||(a.thisAnimationDuration&&bd(c,s)&&!bd(u,s)&&(p.top-s.top)/(p.left-s.left)==(u.top-s.top)/(u.left-s.left)&&(l=Sd(p,c,h,this.options)),bd(s,u)||(a.prevFromRect=u,a.prevToRect=s,l||(l=this.options.animation),this.animate(a,p,l)),l&&(e=!0,o=Math.max(o,l),clearTimeout(a.animationResetTimer),a.animationResetTimer=setTimeout((function(){this.animationStates[this.i].target.animationTime=0,this.animationStates[this.i].target.prevFromRect=null,this.animationStates[this.i].target.fromRect=null,this.animationStates[this.i].target.prevToRect=null,this.animationStates[this.i].target.thisAnimationDuration=null}).bind({animationStates:r,i:Number(i)}),l),a.thisAnimationDuration=l))}clearTimeout(n),e?n=setTimeout(function(){"function"==typeof t&&t()},o):"function"==typeof t&&t(),r=[]},animate:function(t,e,n){if(n){ud(t,"transition",""),ud(t,"transform","");var r=pd(t),o=sd(this.el),i=(e.left-r.left)/(o&&o.a||1),l=(e.top-r.top)/(o&&o.d||1);t.animatingX=!!i,t.animatingY=!!l,ud(t,"transform","translate3d("+i+"px,"+l+"px,0)"),ud(t,"transition","transform "+n+"ms"+(this.options.easing?" "+this.options.easing:"")),ud(t,"transform","translate3d(0,0,0)"),"number"==typeof t.animated&&clearTimeout(t.animated),t.animated=setTimeout(function(){ud(t,"transition",""),ud(t,"transform",""),t.animated=!1,t.animatingX=!1,t.animatingY=!1},n)}}}))}function vg(t,e,n,r,o,i,l,a){var u,s,c=t[Ed],h=c.options.onMove;return!window.CustomEvent||Qf||Yf?(u=document.createEvent("Event")).initEvent("move",!0,!0):u=new CustomEvent("move",{bubbles:!0,cancelable:!0}),u.to=e,u.from=t,u.dragged=n,u.draggedRect=r,u.related=o||e,u.relatedRect=i||pd(e),u.willInsertAfter=a,u.originalEvent=l,t.dispatchEvent(u),h&&(s=h.call(c,u,l)),s}function mg(t){t.draggable=!1}function yg(){rg=!1}function bg(t){for(var e=t.tagName+t.className+t.src+t.href+t.textContent,n=e.length,r=0;n--;)r+=e.charCodeAt(n);return r.toString(36)}function _g(t){return setTimeout(t,0)}function wg(t){return clearTimeout(t)}gg.prototype={constructor:gg,_isOutsideThisEl:function(t){this.el.contains(t)||t===this.el||(Zd=null)},_getDirection:function(t,e){return"function"==typeof this.options.direction?this.options.direction.call(this,t,e,Id):this.options.direction},_onTapStart:function(t){if(t.cancelable){var e=this,n=this.el,r=this.options,o=r.preventOnFilter,i=t.type,l=t.touches&&t.touches[0],a=(l||t).target,u=t.target.shadowRoot&&(t.path&&t.path[0]||t.composedPath&&t.composedPath()[0])||a,s=r.filter;if(function(t){og.length=0;for(var e=t.getElementsByTagName("input"),n=e.length;n--;){var r=e[n];r.checked&&og.push(r)}}(n),!Id&&!(/mousedown|pointerdown/.test(i)&&0!==t.button||r.disabled||u.isContentEditable||(a=od(a,r.draggable,n,!1))&&a.animated||Md===a)){if(Ld=vd(a),Ud=vd(a,r.draggable),"function"==typeof s){if(s.call(this,t,a,this))return Ad({sortable:e,rootEl:u,name:"filter",targetEl:a,toEl:n,fromEl:n}),kd("filter",e,{evt:t}),void(o&&t.cancelable&&t.preventDefault())}else if(s&&(s=s.split(",").some(function(r){if(r=od(u,r.trim(),n,!1))return Ad({sortable:e,rootEl:r,name:"filter",targetEl:a,fromEl:n,toEl:n}),kd("filter",e,{evt:t}),!0})))return void(o&&t.cancelable&&t.preventDefault());r.handle&&!od(u,r.handle,n,!1)||this._prepareDragStart(t,l,a)}}},_prepareDragStart:function(t,e,n){var r,o=this,i=o.el,l=o.options,a=i.ownerDocument;if(n&&!Id&&n.parentNode===i)if(Nd=i,Pd=(Id=n).parentNode,Dd=Id.nextSibling,Md=n,zd=l.group,gg.dragged=Id,Wd={target:Id,clientX:(e||t).clientX,clientY:(e||t).clientY},this._lastX=(e||t).clientX,this._lastY=(e||t).clientY,Id.style["will-change"]="all",r=function(){kd("delayEnded",o,{evt:t}),gg.eventCanceled?o._onDrop():(o._disableDelayedDragEvents(),!$f&&o.nativeDraggable&&(Id.draggable=!0),o._triggerDragStart(t,e),Ad({sortable:o,name:"choose",originalEvent:t}),ad(Id,l.chosenClass,!0))},l.ignore.split(",").forEach(function(t){cd(Id,t.trim(),mg)}),td(a,"dragover",fg),td(a,"mousemove",fg),td(a,"touchmove",fg),td(a,"mouseup",o._onDrop),td(a,"touchend",o._onDrop),td(a,"touchcancel",o._onDrop),$f&&this.nativeDraggable&&(this.options.touchStartThreshold=4,Id.draggable=!0),kd("delayStart",this,{evt:t}),!l.delay||l.delayOnTouchOnly&&!e||this.nativeDraggable&&(Yf||Qf))r();else{if(gg.eventCanceled)return void this._onDrop();td(a,"mouseup",o._disableDelayedDrag),td(a,"touchend",o._disableDelayedDrag),td(a,"touchcancel",o._disableDelayedDrag),td(a,"mousemove",o._delayedDragTouchMoveHandler),td(a,"touchmove",o._delayedDragTouchMoveHandler),l.supportPointer&&td(a,"pointermove",o._delayedDragTouchMoveHandler),o._dragStartTimer=setTimeout(r,l.delay)}},_delayedDragTouchMoveHandler:function(t){var e=t.touches?t.touches[0]:t;Math.max(Math.abs(e.clientX-this._lastX),Math.abs(e.clientY-this._lastY))>=Math.floor(this.options.touchStartThreshold/(this.nativeDraggable&&window.devicePixelRatio||1))&&this._disableDelayedDrag()},_disableDelayedDrag:function(){Id&&mg(Id),clearTimeout(this._dragStartTimer),this._disableDelayedDragEvents()},_disableDelayedDragEvents:function(){var t=this.el.ownerDocument;ed(t,"mouseup",this._disableDelayedDrag),ed(t,"touchend",this._disableDelayedDrag),ed(t,"touchcancel",this._disableDelayedDrag),ed(t,"mousemove",this._delayedDragTouchMoveHandler),ed(t,"touchmove",this._delayedDragTouchMoveHandler),ed(t,"pointermove",this._delayedDragTouchMoveHandler)},_triggerDragStart:function(t,e){e=e||("touch"==t.pointerType?t:null),!this.nativeDraggable||e?td(document,this.options.supportPointer?"pointermove":e?"touchmove":"mousemove",this._onTouchMove):(td(Id,"dragend",this),td(Nd,"dragstart",this._onDragStart));try{document.selection?_g(function(){document.selection.empty()}):window.getSelection().removeAllRanges()}catch(n){}},_dragStarted:function(t,e){if(Kd=!1,Nd&&Id){kd("dragStarted",this,{evt:e}),this.nativeDraggable&&td(document,"dragover",dg);var n=this.options;!t&&ad(Id,n.dragClass,!1),ad(Id,n.ghostClass,!0),gg.active=this,t&&this._appendGhost(),Ad({sortable:this,name:"start",originalEvent:e})}else this._nulling()},_emulateDragOver:function(){if(Gd){this._lastX=Gd.clientX,this._lastY=Gd.clientY,hg();for(var t=document.elementFromPoint(Gd.clientX,Gd.clientY),e=t;t&&t.shadowRoot&&(t=t.shadowRoot.elementFromPoint(Gd.clientX,Gd.clientY))!==e;)e=t;if(Id.parentNode[Ed]._isOutsideThisEl(t),e)do{if(e[Ed]&&e[Ed]._onDragOver({clientX:Gd.clientX,clientY:Gd.clientY,target:t,rootEl:e})&&!this.options.dragoverBubble)break;t=e}while(e=e.parentNode);pg()}},_onTouchMove:function(t){if(Wd){var e=this.options,n=e.fallbackTolerance,r=e.fallbackOffset,o=t.touches?t.touches[0]:t,i=Rd&&sd(Rd),l=Rd&&i&&i.a,a=Rd&&i&&i.d,u=ig&&$d&&md($d),s=(o.clientX-Wd.clientX+r.x)/(l||1)+(u?u[0]-ng[0]:0)/(l||1),c=(o.clientY-Wd.clientY+r.y)/(a||1)+(u?u[1]-ng[1]:0)/(a||1),h=t.touches?"translate3d("+s+"px,"+c+"px,0)":"translate("+s+"px,"+c+"px)";if(!gg.active&&!Kd){if(n&&Math.max(Math.abs(o.clientX-this._lastX),Math.abs(o.clientY-this._lastY))r.right+10||t.clientX<=r.right&&t.clientY>r.bottom&&t.clientX>=r.left:t.clientX>r.right&&t.clientY>r.top||t.clientX<=r.right&&t.clientY>r.bottom+10}(t,o,this)&&!g.animated){if(g===Id)return I(!1);if(g&&i===t.target&&(l=g),l&&(n=pd(l)),!1!==vg(Nd,i,Id,e,l,n,t,!!l))return A(),i.appendChild(Id),Pd=i,P(),I(!0)}else if(l.parentNode===i){n=pd(l);var v,m,y,b=Id.parentNode!==i,_=!function(t,e,n){var r=n?t.left:t.top,o=n?e.left:e.top;return r===o||(n?t.right:t.bottom)===(n?e.right:e.bottom)||r+(n?t.width:t.height)/2===o+(n?e.width:e.height)/2}(Id.animated&&Id.toRect||e,l.animated&&l.toRect||n,o),w=o?"top":"left",C=fd(l,null,"top","top")||fd(Id,null,"top","top"),E=C?C.scrollTop:void 0;if(Zd!==l&&(m=n[w],tg=!1,eg=!_&&a.invertSwap||b),0!==(v=function(t,e,n,r,o,i,l){var a=pd(e),u=n?t.clientY:t.clientX,s=n?a.height:a.width,c=n?a.top:a.left,h=n?a.bottom:a.right,p=!1;if(!i)if(l&&Ydc+s*o/2:uh-Yd)return-Qd}else if(u>c+s*(1-r)/2&&uh-s*o/2)?u>c+s/2?1:-1:0}(t,l,o,_?1:a.swapThreshold,null==a.invertedSwapThreshold?a.swapThreshold:a.invertedSwapThreshold,eg,Zd===l))){var S=vd(Id);do{y=Pd.children[S-=v]}while(y&&("none"===ud(y,"display")||y===Rd))}if(0===v||y===l)return I(!1);Zd=l,Qd=v;var x=l.nextElementSibling,O=!1,T=vg(Nd,i,Id,e,l,n,t,O=1===v);if(!1!==T)return 1!==T&&-1!==T||(O=1===T),rg=!0,setTimeout(yg,30),A(),O&&!x?i.appendChild(Id):l.parentNode.insertBefore(Id,O?x:l),C&&wd(C,0,E-C.scrollTop),Pd=Id.parentNode,void 0===m||eg||(Yd=Math.abs(m-pd(l)[w])),P(),I(!0)}if(i.contains(Id))return I(!1)}return!1}function k(a,u){kd(a,f,qf({evt:t,isOwner:c,axis:o?"vertical":"horizontal",revert:r,dragRect:e,targetRect:n,canSort:h,fromSortable:p,target:l,completed:I,onMove:function(n,r){return vg(Nd,i,Id,e,n,pd(n),t,r)},changed:P},u))}function A(){k("dragOverAnimationCapture"),f.captureAnimationState(),f!==p&&p.captureAnimationState()}function I(e){return k("dragOverCompleted",{insertion:e}),e&&(c?s._hideClone():s._showClone(f),f!==p&&(ad(Id,Bd?Bd.options.ghostClass:s.options.ghostClass,!1),ad(Id,a.ghostClass,!0)),Bd!==f&&f!==gg.active?Bd=f:f===gg.active&&Bd&&(Bd=null),p===f&&(f._ignoreWhileAnimating=l),f.animateAll(function(){k("dragOverAnimationComplete"),f._ignoreWhileAnimating=null}),f!==p&&(p.animateAll(),p._ignoreWhileAnimating=null)),(l===Id&&!Id.animated||l===i&&!l.animated)&&(Zd=null),a.dragoverBubble||t.rootEl||l===document||(Id.parentNode[Ed]._isOutsideThisEl(t.target),!e&&fg(t)),!a.dragoverBubble&&t.stopPropagation&&t.stopPropagation(),d=!0}function P(){Fd=vd(Id),Hd=vd(Id,a.draggable),Ad({sortable:f,name:"change",toEl:i,newIndex:Fd,newDraggableIndex:Hd,originalEvent:t})}},_ignoreWhileAnimating:null,_offMoveEvents:function(){ed(document,"mousemove",this._onTouchMove),ed(document,"touchmove",this._onTouchMove),ed(document,"pointermove",this._onTouchMove),ed(document,"dragover",fg),ed(document,"mousemove",fg),ed(document,"touchmove",fg)},_offUpEvents:function(){var t=this.el.ownerDocument;ed(t,"mouseup",this._onDrop),ed(t,"touchend",this._onDrop),ed(t,"pointerup",this._onDrop),ed(t,"touchcancel",this._onDrop),ed(document,"selectstart",this)},_onDrop:function(t){var e=this.el,n=this.options;Fd=vd(Id),Hd=vd(Id,n.draggable),kd("drop",this,{evt:t}),Fd=vd(Id),Hd=vd(Id,n.draggable),gg.eventCanceled?this._nulling():(Kd=!1,eg=!1,tg=!1,clearInterval(this._loopId),clearTimeout(this._dragStartTimer),wg(this.cloneId),wg(this._dragStartId),this.nativeDraggable&&(ed(document,"drop",this),ed(e,"dragstart",this._onDragStart)),this._offMoveEvents(),this._offUpEvents(),Kf&&ud(document.body,"user-select",""),t&&(qd&&(t.cancelable&&t.preventDefault(),!n.dropBubble&&t.stopPropagation()),Rd&&Rd.parentNode&&Rd.parentNode.removeChild(Rd),(Nd===Pd||Bd&&"clone"!==Bd.lastPutMode)&&jd&&jd.parentNode&&jd.parentNode.removeChild(jd),Id&&(this.nativeDraggable&&ed(Id,"dragend",this),mg(Id),Id.style["will-change"]="",qd&&!Kd&&ad(Id,Bd?Bd.options.ghostClass:this.options.ghostClass,!1),ad(Id,this.options.chosenClass,!1),Ad({sortable:this,name:"unchoose",toEl:Pd,newIndex:null,newDraggableIndex:null,originalEvent:t}),Nd!==Pd?(Fd>=0&&(Ad({rootEl:Pd,name:"add",toEl:Pd,fromEl:Nd,originalEvent:t}),Ad({sortable:this,name:"remove",toEl:Pd,originalEvent:t}),Ad({rootEl:Pd,name:"sort",toEl:Pd,fromEl:Nd,originalEvent:t}),Ad({sortable:this,name:"sort",toEl:Pd,originalEvent:t})),Bd&&Bd.save()):Fd!==Ld&&Fd>=0&&(Ad({sortable:this,name:"update",toEl:Pd,originalEvent:t}),Ad({sortable:this,name:"sort",toEl:Pd,originalEvent:t})),gg.active&&(null!=Fd&&-1!==Fd||(Fd=Ld,Hd=Ud),Ad({sortable:this,name:"end",toEl:Pd,originalEvent:t}),this.save()))),this._nulling())},_nulling:function(){kd("nulling",this),Nd=Id=Pd=Rd=Dd=jd=Md=Vd=Wd=Gd=qd=Fd=Hd=Ld=Ud=Zd=Qd=Bd=zd=gg.dragged=gg.ghost=gg.clone=gg.active=null,og.forEach(function(t){t.checked=!0}),og.length=0},handleEvent:function(t){switch(t.type){case"drop":case"dragend":this._onDrop(t);break;case"dragenter":case"dragover":Id&&(this._onDragOver(t),function(t){t.dataTransfer&&(t.dataTransfer.dropEffect="move"),t.cancelable&&t.preventDefault()}(t));break;case"selectstart":t.preventDefault()}},toArray:function(){for(var t,e=[],n=this.el.children,r=0,o=n.length,i=this.options;r ","\n"])),fo(0,Ma,[])],function(t,e){var n=e.component;t(e,14,0,n.cities),t(e,16,0,n.cities),t(e,18,0,n.cities),t(e,20,0,n.cities),t(e,24,0,n.cities),t(e,26,0,n.cities),t(e,30,0,n.cities),t(e,32,0,n.cities),t(e,35,0,n.cities),t(e,37,0,n.cities)},function(t,e){var n=e.component;t(e,41,0,Jn(e,41,0,Jr(e,42).transform(n.cities)))})}function Kg(t){return il(0,[(t()(),Wi(0,0,null,null,1,"app-simple-sortable",[],null,null,null,$g,Wg)),po(1,49152,null,0,Bg,[],null,null)],null,null)}var Xg=zr("app-simple-sortable",Bg,Kg,{},{},[]),Jg=function(t){function e(e,n){var r=t.call(this,e)||this;r.sources=n,r.completed=0,r.haveValues=0;var o=n.length;r.values=new Array(o);for(var i=0;it?{max:{max:t,actual:e.value}}:null}},t.required=function(t){return av(t.value)?{required:!0}:null},t.requiredTrue=function(t){return!0===t.value?null:{required:!0}},t.email=function(t){return av(t.value)?null:uv.test(t.value)?null:{email:!0}},t.minLength=function(t){return function(e){if(av(e.value))return null;var n=e.value?e.value.length:0;return nt?{maxlength:{requiredLength:t,actualLength:n}}:null}},t.pattern=function(e){return e?("string"==typeof e?(r="","^"!==e.charAt(0)&&(r+="^"),r+=e,"$"!==e.charAt(e.length-1)&&(r+="$"),n=new RegExp(r)):(r=e.toString(),n=e),function(t){if(av(t.value))return null;var e=t.value;return n.test(e)?null:{pattern:{requiredPattern:r,actualValue:e}}}):t.nullValidator;var n,r},t.nullValidator=function(t){return null},t.compose=function(t){if(!t)return null;var e=t.filter(cv);return 0==e.length?null:function(t){return pv(function(t,n){return e.map(function(e){return e(t)})}(t))}},t.composeAsync=function(t){if(!t)return null;var e=t.filter(cv);return 0==e.length?null:function(t){return function t(){for(var e,n=[],r=0;r=0;--e)if(this._accessors[e][1]===t)return void this._accessors.splice(e,1)},t.prototype.select=function(t){var e=this;this._accessors.forEach(function(n){e._isSameGroup(n,t)&&n[1]!==t&&n[1].fireUncheck(t.value)})},t.prototype._isSameGroup=function(t,e){return!!t[0].control&&t[0]._parent===e._control._parent&&t[1].name===e.name},t}(),mv=function(){function t(t,e,n,r){this._renderer=t,this._elementRef=e,this._registry=n,this._injector=r,this.onChange=function(){},this.onTouched=function(){}}return t.prototype.ngOnInit=function(){this._control=this._injector.get(iv),this._checkName(),this._registry.add(this._control,this)},t.prototype.ngOnDestroy=function(){this._registry.remove(this)},t.prototype.writeValue=function(t){this._state=t===this.value,this._renderer.setProperty(this._elementRef.nativeElement,"checked",this._state)},t.prototype.registerOnChange=function(t){var e=this;this._fn=t,this.onChange=function(){t(e.value),e._registry.select(e)}},t.prototype.fireUncheck=function(t){this.writeValue(t)},t.prototype.registerOnTouched=function(t){this.onTouched=t},t.prototype.setDisabledState=function(t){this._renderer.setProperty(this._elementRef.nativeElement,"disabled",t)},t.prototype._checkName=function(){this.name&&this.formControlName&&this.name!==this.formControlName&&this._throwNameError(),!this.name&&this.formControlName&&(this.name=this.formControlName)},t.prototype._throwNameError=function(){throw new Error('\n If you define both a name and a formControlName attribute on your radio button, their values\n must match. Ex: \n ')},t}(),yv=function(){function t(t,e){this._renderer=t,this._elementRef=e,this.onChange=function(t){},this.onTouched=function(){}}return t.prototype.writeValue=function(t){this._renderer.setProperty(this._elementRef.nativeElement,"value",parseFloat(t))},t.prototype.registerOnChange=function(t){this.onChange=function(e){t(""==e?null:parseFloat(e))}},t.prototype.registerOnTouched=function(t){this.onTouched=t},t.prototype.setDisabledState=function(t){this._renderer.setProperty(this._elementRef.nativeElement,"disabled",t)},t}(),bv='\n \n \n
\n\n In your class:\n\n this.myGroup = new FormGroup({\n firstName: new FormControl()\n });',_v='\n \n\n In your class:\n\n this.myGroup = new FormGroup({\n person: new FormGroup({ firstName: new FormControl() })\n });',wv=function(){function t(){}return t.controlParentException=function(){throw new Error("formControlName must be used with a parent formGroup directive. You'll want to add a formGroup\n directive and pass it an existing FormGroup instance (you can create one in your class).\n\n Example:\n\n "+bv)},t.ngModelGroupException=function(){throw new Error('formControlName cannot be used with an ngModelGroup parent. It is only compatible with parents\n that also have a "form" prefix: formGroupName, formArrayName, or formGroup.\n\n Option 1: Update the parent to be formGroupName (reactive form strategy)\n\n '+_v+'\n\n Option 2: Use ngModel instead of formControlName (template-driven strategy)\n\n \n ')},t.missingFormException=function(){throw new Error("formGroup expects a FormGroup instance. Please pass one in.\n\n Example:\n\n "+bv)},t.groupParentException=function(){throw new Error("formGroupName must be used with a parent formGroup directive. You'll want to add a formGroup\n directive and pass it an existing FormGroup instance (you can create one in your class).\n\n Example:\n\n "+_v)},t.arrayParentException=function(){throw new Error('formArrayName must be used with a parent formGroup directive. You\'ll want to add a formGroup\n directive and pass it an existing FormGroup instance (you can create one in your class).\n\n Example:\n\n \n \n\n In your class:\n\n this.cityArray = new FormArray([new FormControl(\'SF\')]);\n this.myGroup = new FormGroup({\n cities: this.cityArray\n });')},t.disabledAttrWarning=function(){console.warn("\n It looks like you're using the disabled attribute with a reactive form directive. If you set disabled to true\n when you set up this control in your component class, the disabled attribute will actually be set in the DOM for\n you. We recommend using this approach to avoid 'changed after checked' errors.\n \n Example: \n form = new FormGroup({\n first: new FormControl({value: 'Nancy', disabled: true}, Validators.required),\n last: new FormControl('Drew', Validators.required)\n });\n ")},t.ngModelWarning=function(t){console.warn("\n It looks like you're using ngModel on the same form field as "+t+". \n Support for using the ngModel input property and ngModelChange event with \n reactive form directives has been deprecated in Angular v6 and will be removed \n in Angular v7.\n \n For more information on this, see our API docs here:\n https://angular.io/api/forms/"+("formControl"===t?"FormControlDirective":"FormControlName")+"#use-with-ngmodel\n ")},t}();function Cv(t,e){t._pendingDirty&&t.markAsDirty(),t.setValue(t._pendingValue,{emitModelToViewChange:!1}),e.viewToModelUpdate(t._pendingValue),t._pendingChange=!1}function Ev(t,e){var n;throw n=t.path.length>1?"path: '"+t.path.join(" -> ")+"'":t.path[0]?"name: '"+t.path+"'":"unspecified name attribute",new Error(e+" "+n)}function Sv(t){return null!=t?sv.compose(t.map(fv)):null}function xv(t){return null!=t?sv.composeAsync(t.map(dv)):null}var Ov=[ev,yv,gv,function(){function t(t,e){this._renderer=t,this._elementRef=e,this._optionMap=new Map,this._idCounter=0,this.onChange=function(t){},this.onTouched=function(){},this._compareWith=Ge}return Object.defineProperty(t.prototype,"compareWith",{set:function(t){if("function"!=typeof t)throw new Error("compareWith must be a function, but received "+JSON.stringify(t));this._compareWith=t},enumerable:!0,configurable:!0}),t.prototype.writeValue=function(t){this.value=t;var e=this._getOptionId(t);null==e&&this._renderer.setProperty(this._elementRef.nativeElement,"selectedIndex",-1);var n=function(t,e){return null==t?""+e:(e&&"object"==typeof e&&(e="Object"),(t+": "+e).slice(0,50))}(e,t);this._renderer.setProperty(this._elementRef.nativeElement,"value",n)},t.prototype.registerOnChange=function(t){var e=this;this.onChange=function(n){e.value=e._getOptionValue(n),t(e.value)}},t.prototype.registerOnTouched=function(t){this.onTouched=t},t.prototype.setDisabledState=function(t){this._renderer.setProperty(this._elementRef.nativeElement,"disabled",t)},t.prototype._registerOption=function(){return(this._idCounter++).toString()},t.prototype._getOptionId=function(t){var e,n;try{for(var r=u(Array.from(this._optionMap.keys())),o=r.next();!o.done;o=r.next()){var i=o.value;if(this._compareWith(this._optionMap.get(i),t))return i}}catch(l){e={error:l}}finally{try{o&&!o.done&&(n=r.return)&&n.call(r)}finally{if(e)throw e.error}}return null},t.prototype._getOptionValue=function(t){var e=function(t){return t.split(":")[0]}(t);return this._optionMap.has(e)?this._optionMap.get(e):t},t}(),function(){function t(t,e){this._renderer=t,this._elementRef=e,this._optionMap=new Map,this._idCounter=0,this.onChange=function(t){},this.onTouched=function(){},this._compareWith=Ge}return Object.defineProperty(t.prototype,"compareWith",{set:function(t){if("function"!=typeof t)throw new Error("compareWith must be a function, but received "+JSON.stringify(t));this._compareWith=t},enumerable:!0,configurable:!0}),t.prototype.writeValue=function(t){var e,n=this;if(this.value=t,Array.isArray(t)){var r=t.map(function(t){return n._getOptionId(t)});e=function(t,e){t._setSelected(r.indexOf(e.toString())>-1)}}else e=function(t,e){t._setSelected(!1)};this._optionMap.forEach(e)},t.prototype.registerOnChange=function(t){var e=this;this.onChange=function(n){var r=[];if(n.hasOwnProperty("selectedOptions"))for(var o=n.selectedOptions,i=0;i0||this.disabled},e.prototype._checkAllValuesPresent=function(t){this._forEachChild(function(e,n){if(void 0===t[n])throw new Error("Must supply a value for form control with name: '"+n+"'.")})},e}(Iv),Nv=function(t){function e(e,n,r){var o=t.call(this,Tv(n),kv(r,n))||this;return o.controls=e,o._initObservables(),o._setUpdateStrategy(n),o._setUpControls(),o.updateValueAndValidity({onlySelf:!0,emitEvent:!1}),o}return o(e,t),e.prototype.at=function(t){return this.controls[t]},e.prototype.push=function(t){this.controls.push(t),this._registerControl(t),this.updateValueAndValidity(),this._onCollectionChange()},e.prototype.insert=function(t,e){this.controls.splice(t,0,e),this._registerControl(e),this.updateValueAndValidity()},e.prototype.removeAt=function(t){this.controls[t]&&this.controls[t]._registerOnCollectionChange(function(){}),this.controls.splice(t,1),this.updateValueAndValidity()},e.prototype.setControl=function(t,e){this.controls[t]&&this.controls[t]._registerOnCollectionChange(function(){}),this.controls.splice(t,1),e&&(this.controls.splice(t,0,e),this._registerControl(e)),this.updateValueAndValidity(),this._onCollectionChange()},Object.defineProperty(e.prototype,"length",{get:function(){return this.controls.length},enumerable:!0,configurable:!0}),e.prototype.setValue=function(t,e){var n=this;void 0===e&&(e={}),this._checkAllValuesPresent(t),t.forEach(function(t,r){n._throwIfControlMissing(r),n.at(r).setValue(t,{onlySelf:!0,emitEvent:e.emitEvent})}),this.updateValueAndValidity(e)},e.prototype.patchValue=function(t,e){var n=this;void 0===e&&(e={}),t.forEach(function(t,r){n.at(r)&&n.at(r).patchValue(t,{onlySelf:!0,emitEvent:e.emitEvent})}),this.updateValueAndValidity(e)},e.prototype.reset=function(t,e){void 0===t&&(t=[]),void 0===e&&(e={}),this._forEachChild(function(n,r){n.reset(t[r],{onlySelf:!0,emitEvent:e.emitEvent})}),this._updatePristine(e),this._updateTouched(e),this.updateValueAndValidity(e)},e.prototype.getRawValue=function(){return this.controls.map(function(t){return t instanceof Pv?t.value:t.getRawValue()})},e.prototype.clear=function(){this.controls.length<1||(this._forEachChild(function(t){return t._registerOnCollectionChange(function(){})}),this.controls.splice(0),this.updateValueAndValidity())},e.prototype._syncPendingControls=function(){var t=this.controls.reduce(function(t,e){return!!e._syncPendingControls()||t},!1);return t&&this.updateValueAndValidity({onlySelf:!0}),t},e.prototype._throwIfControlMissing=function(t){if(!this.controls.length)throw new Error("\n There are no form controls registered with this array yet. If you're using ngModel,\n you may want to check next tick (e.g. use setTimeout).\n ");if(!this.at(t))throw new Error("Cannot find form control at index "+t)},e.prototype._forEachChild=function(t){this.controls.forEach(function(e,n){t(e,n)})},e.prototype._updateValue=function(){var t=this;this.value=this.controls.filter(function(e){return e.enabled||t.disabled}).map(function(t){return t.value})},e.prototype._anyControls=function(t){return this.controls.some(function(e){return e.enabled&&t(e)})},e.prototype._setUpControls=function(){var t=this;this._forEachChild(function(e){return t._registerControl(e)})},e.prototype._checkAllValuesPresent=function(t){this._forEachChild(function(e,n){if(void 0===t[n])throw new Error("Must supply a value for form control at index: "+n+".")})},e.prototype._allControlsDisabled=function(){var t,e;try{for(var n=u(this.controls),r=n.next();!r.done;r=n.next())if(r.value.enabled)return!1}catch(o){t={error:o}}finally{try{r&&!r.done&&(e=n.return)&&e.call(n)}finally{if(t)throw t.error}}return this.controls.length>0||this.disabled},e.prototype._registerControl=function(t){t.setParent(this),t._registerOnCollectionChange(this._onCollectionChange)},e}(Iv),Dv=new Lt("NgModelWithFormControlWarning"),Mv=function(t){function e(e,n,r,o){var i=t.call(this)||this;return i._ngModelWarningConfig=o,i.update=new Po,i._ngModelWarningSent=!1,i._rawValidators=e||[],i._rawAsyncValidators=n||[],i.valueAccessor=function(t,e){if(!e)return null;Array.isArray(e)||Ev(t,"Value accessor was not provided as an array for form control with");var n=void 0,r=void 0,o=void 0;return e.forEach(function(e){var i;e.constructor===rv?n=e:(i=e,Ov.some(function(t){return i.constructor===t})?(r&&Ev(t,"More than one built-in value accessor matches form control with"),r=e):(o&&Ev(t,"More than one custom value accessor matches form control with"),o=e))}),o||r||n||(Ev(t,"No valid value accessor for form control with"),null)}(i,r),i}var n;return o(e,t),n=e,Object.defineProperty(e.prototype,"isDisabled",{set:function(t){wv.disabledAttrWarning()},enumerable:!0,configurable:!0}),e.prototype.ngOnChanges=function(t){var e,r,o,i;this._isControlChanged(t)&&(i=this,(o=this.form)||Ev(i,"Cannot find control with"),i.valueAccessor||Ev(i,"No value accessor for form control with"),o.validator=sv.compose([o.validator,i.validator]),o.asyncValidator=sv.composeAsync([o.asyncValidator,i.asyncValidator]),i.valueAccessor.writeValue(o.value),function(t,e){e.valueAccessor.registerOnChange(function(n){t._pendingValue=n,t._pendingChange=!0,t._pendingDirty=!0,"change"===t.updateOn&&Cv(t,e)})}(o,i),function(t,e){t.registerOnChange(function(t,n){e.valueAccessor.writeValue(t),n&&e.viewToModelUpdate(t)})}(o,i),function(t,e){e.valueAccessor.registerOnTouched(function(){t._pendingTouched=!0,"blur"===t.updateOn&&t._pendingChange&&Cv(t,e),"submit"!==t.updateOn&&t.markAsTouched()})}(o,i),i.valueAccessor.setDisabledState&&o.registerOnDisabledChange(function(t){i.valueAccessor.setDisabledState(t)}),i._rawValidators.forEach(function(t){t.registerOnValidatorChange&&t.registerOnValidatorChange(function(){return o.updateValueAndValidity()})}),i._rawAsyncValidators.forEach(function(t){t.registerOnValidatorChange&&t.registerOnValidatorChange(function(){return o.updateValueAndValidity()})}),this.control.disabled&&this.valueAccessor.setDisabledState&&this.valueAccessor.setDisabledState(!0),this.form.updateValueAndValidity({emitEvent:!1})),function(t,e){if(!t.hasOwnProperty("model"))return!1;var n=t.model;return!!n.isFirstChange()||!Ge(e,n.currentValue)}(t,this.viewModel)&&("formControl",e=n,this,r=this._ngModelWarningConfig,fe()&&"never"!==r&&((null!==r&&"once"!==r||e._ngModelWarningSentOnce)&&("always"!==r||this._ngModelWarningSent)||(wv.ngModelWarning("formControl"),e._ngModelWarningSentOnce=!0,this._ngModelWarningSent=!0)),this.form.setValue(this.model),this.viewModel=this.model)},Object.defineProperty(e.prototype,"path",{get:function(){return[]},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"validator",{get:function(){return Sv(this._rawValidators)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"asyncValidator",{get:function(){return xv(this._rawAsyncValidators)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"control",{get:function(){return this.form},enumerable:!0,configurable:!0}),e.prototype.viewToModelUpdate=function(t){this.viewModel=t,this.update.emit(t)},e.prototype._isControlChanged=function(t){return t.hasOwnProperty("form")},e._ngModelWarningSentOnce=!1,e}(iv),jv=function(){return function(){}}(),Vv=function(){function t(){}return t.prototype.group=function(t,e){void 0===e&&(e=null);var n=this._reduceControls(t),r=null,o=null,i=void 0;return null!=e&&(function(t){return void 0!==t.asyncValidators||void 0!==t.validators||void 0!==t.updateOn}(e)?(r=null!=e.validators?e.validators:null,o=null!=e.asyncValidators?e.asyncValidators:null,i=null!=e.updateOn?e.updateOn:void 0):(r=null!=e.validator?e.validator:null,o=null!=e.asyncValidator?e.asyncValidator:null)),new Rv(n,{asyncValidators:o,updateOn:i,validators:r})},t.prototype.control=function(t,e,n){return new Pv(t,e,n)},t.prototype.array=function(t,e,n){var r=this,o=t.map(function(t){return r._createControl(t)});return new Nv(o,e,n)},t.prototype._reduceControls=function(t){var e=this,n={};return Object.keys(t).forEach(function(r){n[r]=e._createControl(t[r])}),n},t.prototype._createControl=function(t){return t instanceof Pv||t instanceof Rv||t instanceof Nv?t:Array.isArray(t)?this.control(t[0],t.length>1?t[1]:null,t.length>2?t[2]:null):this.control(t)},t}(),Lv=function(){function t(){}var e;return e=t,t.withConfig=function(t){return{ngModule:e,providers:[{provide:Dv,useValue:t.warnOnNgModelWithFormControl}]}},t}(),Fv=function(){return function(){this.citiesControls=new Nv(["Ankara","Moscow","Munich","Paris","Washington"].map(function(t){return new Pv(t)}))}}(),Uv=nr({encapsulation:0,styles:[[""]],data:{}});function Hv(t){return il(0,[(t()(),Wi(0,0,null,null,6,"li",[["class","list-group-item"]],null,null,null,null,null)),(t()(),Wi(1,0,null,null,5,"input",[["class","form-control"]],[[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,"input"],[null,"blur"],[null,"compositionstart"],[null,"compositionend"]],function(t,e,n){var r=!0;return"input"===e&&(r=!1!==Jr(t,2)._handleInput(n.target.value)&&r),"blur"===e&&(r=!1!==Jr(t,2).onTouched()&&r),"compositionstart"===e&&(r=!1!==Jr(t,2)._compositionStart()&&r),"compositionend"===e&&(r=!1!==Jr(t,2)._compositionEnd(n.target.value)&&r),r},null,null)),po(2,16384,null,0,rv,[gn,cn,[2,nv]],null,null),go(1024,null,tv,function(t){return[t]},[rv]),po(4,540672,null,0,Mv,[[8,null],[8,null],[6,tv],[2,Dv]],{form:[0,"form"]},null),go(2048,null,iv,null,[Mv]),po(6,16384,null,0,lv,[[4,iv]],null,null)],function(t,e){t(e,4,0,e.context.$implicit)},function(t,e){t(e,1,0,Jr(e,6).ngClassUntouched,Jr(e,6).ngClassTouched,Jr(e,6).ngClassPristine,Jr(e,6).ngClassDirty,Jr(e,6).ngClassValid,Jr(e,6).ngClassInvalid,Jr(e,6).ngClassPending)})}function zv(t){return il(0,[(t()(),Wi(0,0,null,null,1,"h1",[],null,null,null,null,null)),(t()(),nl(-1,null,["Sortable Array"])),(t()(),Wi(2,0,null,null,3,"p",[["class","lead"]],null,null,null,null,null)),(t()(),Wi(3,0,null,null,2,"strong",[],null,null,null,null,null)),(t()(),Wi(4,0,null,null,1,"a",[["href","https://github.com/SortableJS/ngx-sortablejs/tree/master/src/app/examples/sortable-form-array"],["target","_blank"]],null,null,null,null,null)),(t()(),nl(-1,null,["The source code"])),(t()(),Wi(6,0,null,null,4,"p",[],null,null,null,null,null)),(t()(),nl(-1,null,[" Most of the time one wants to sort something more than just data. Complex forms with "])),(t()(),Wi(8,0,null,null,1,"em",[],null,null,null,null,null)),(t()(),nl(-1,null,["FormArray"])),(t()(),nl(-1,null,[" controls are also supported.\n"])),(t()(),Wi(11,0,null,null,1,"p",[],null,null,null,null,null)),(t()(),nl(-1,null,["Try to change the text and reorder the inputs"])),(t()(),Wi(13,0,null,null,3,"ul",[["class","list-group"]],null,null,null,null,null)),po(14,737280,null,0,Hg,[[2,Vg],Ug,cn,ai,gn],{sortablejs:[0,"sortablejs"]},null),(t()(),Bi(16777216,null,null,1,null,Hv)),po(16,278528,null,0,Ia,[Vn,Mn,kn],{ngForOf:[0,"ngForOf"]},null),(t()(),Wi(17,0,null,null,1,"p",[["class","my-3"]],null,null,null,null,null)),(t()(),nl(-1,null,["The actual value of the array"])),(t()(),Wi(19,0,null,null,2,"div",[["class","alert alert-dark"]],null,null,null,null,null)),(t()(),nl(20,null,[" > ","\n"])),fo(0,Ma,[])],function(t,e){var n=e.component;t(e,14,0,n.citiesControls),t(e,16,0,n.citiesControls.controls)},function(t,e){var n=e.component;t(e,20,0,Jn(e,20,0,Jr(e,21).transform(n.citiesControls.value)))})}function Bv(t){return il(0,[(t()(),Wi(0,0,null,null,1,"app-sortable-form-array",[],null,null,null,zv,Uv)),po(1,49152,null,0,Fv,[],null,null)],null,null)}var Wv=zr("app-sortable-form-array",Fv,Bv,{},{},[]),Gv=function(){return function(){var t=this;this.draggableItems=[{draggable:!0,text:"1"},{draggable:!0,text:"2"},{draggable:!1,text:"3"},{draggable:!0,text:"4"},{draggable:!0,text:"5"}],this.eventItems=["1","2","3","4","5"],this.eventUpdateCounter=0,this.scrollableItems=Array.from({length:30}).map(function(t,e){return e+1}),this.draggableOptions={draggable:".draggable"},this.eventOptions={onUpdate:function(){return t.eventUpdateCounter++}},this.scrollableOptions={scroll:!0,scrollSensitivity:100}}}(),qv=nr({encapsulation:0,styles:[[""]],data:{}});function Zv(t){return il(0,[(t()(),Wi(0,0,null,null,1,"li",[["class","list-group-item"]],[[2,"draggable",null],[2,"disabled",null]],null,null,null,null)),(t()(),nl(1,null,[" Element "," "]))],null,function(t,e){t(e,0,0,e.context.$implicit.draggable,!e.context.$implicit.draggable),t(e,1,0,e.context.$implicit.text)})}function Qv(t){return il(0,[(t()(),Wi(0,0,null,null,1,"li",[["class","list-group-item"]],null,null,null,null,null)),(t()(),nl(1,null,[" Element "," "]))],null,function(t,e){t(e,1,0,e.context.$implicit)})}function Yv(t){return il(0,[(t()(),Wi(0,0,null,null,1,"li",[["class","list-group-item"]],null,null,null,null,null)),(t()(),nl(1,null,[" Element "," "]))],null,function(t,e){t(e,1,0,e.context.$implicit)})}function $v(t){return il(0,[(t()(),Wi(0,0,null,null,1,"h1",[],null,null,null,null,null)),(t()(),nl(-1,null,["Custom options"])),(t()(),Wi(2,0,null,null,3,"p",[["class","lead"]],null,null,null,null,null)),(t()(),Wi(3,0,null,null,2,"strong",[],null,null,null,null,null)),(t()(),Wi(4,0,null,null,1,"a",[["href","https://github.com/SortableJS/ngx-sortablejs/tree/master/src/app/examples/sortable-with-options"],["target","_blank"]],null,null,null,null,null)),(t()(),nl(-1,null,["The source code"])),(t()(),nl(-1,null,[" This example shows how the various options could be used in order to configure "])),(t()(),Wi(7,0,null,null,1,"em",[],null,null,null,null,null)),(t()(),nl(-1,null,["Sortablejs"])),(t()(),nl(-1,null,[". "])),(t()(),Wi(10,0,null,null,1,"h2",[["class","mt-4 mb-3"]],null,null,null,null,null)),(t()(),nl(-1,null,["Disabled options"])),(t()(),Wi(12,0,null,null,3,"ul",[["class","list-group"]],null,null,null,null,null)),po(13,737280,null,0,Hg,[[2,Vg],Ug,cn,ai,gn],{sortablejs:[0,"sortablejs"],sortablejsOptions:[1,"sortablejsOptions"]},null),(t()(),Bi(16777216,null,null,1,null,Zv)),po(15,278528,null,0,Ia,[Vn,Mn,kn],{ngForOf:[0,"ngForOf"]},null),(t()(),Wi(16,0,null,null,1,"p",[["class","my-3"]],null,null,null,null,null)),(t()(),nl(-1,null,["and the actual model is"])),(t()(),Wi(18,0,null,null,2,"div",[["class","alert alert-dark"]],null,null,null,null,null)),(t()(),nl(19,null,[" > ","\n"])),fo(0,Ma,[]),(t()(),Wi(21,0,null,null,1,"h2",[["class","mt-4 mb-3"]],null,null,null,null,null)),(t()(),nl(-1,null,["Events"])),(t()(),Wi(23,0,null,null,7,"p",[["class","my-3"]],null,null,null,null,null)),(t()(),nl(-1,null,[" Binding to the events is easy. Any even could be attached as a property of "])),(t()(),Wi(25,0,null,null,1,"em",[],null,null,null,null,null)),(t()(),nl(-1,null,["Sortablejs"])),(t()(),nl(-1,null,[". The example below binds to the "])),(t()(),Wi(28,0,null,null,1,"em",[],null,null,null,null,null)),(t()(),nl(-1,null,["onUpdate"])),(t()(),nl(-1,null,[" event. Drag the items and track the amount of updates.\n"])),(t()(),Wi(31,0,null,null,1,"div",[["class","alert alert-dark"]],null,null,null,null,null)),(t()(),nl(32,null,[" > Updated "," times\n"])),(t()(),Wi(33,0,null,null,3,"ul",[["class","list-group"]],null,null,null,null,null)),po(34,737280,null,0,Hg,[[2,Vg],Ug,cn,ai,gn],{sortablejs:[0,"sortablejs"],sortablejsOptions:[1,"sortablejsOptions"]},null),(t()(),Bi(16777216,null,null,1,null,Qv)),po(36,278528,null,0,Ia,[Vn,Mn,kn],{ngForOf:[0,"ngForOf"]},null),(t()(),Wi(37,0,null,null,10,"div",[["class","alert alert-info my-3"]],null,null,null,null,null)),(t()(),nl(-1,null,[" Hint: for the "])),(t()(),Wi(39,0,null,null,1,"em",[],null,null,null,null,null)),(t()(),nl(-1,null,["FormArray"])),(t()(),nl(-1,null,[" using "])),(t()(),Wi(42,0,null,null,1,"em",[],null,null,null,null,null)),(t()(),nl(-1,null,["onUpdate"])),(t()(),nl(-1,null,[" is kinda overhead because the "])),(t()(),Wi(45,0,null,null,1,"em",[],null,null,null,null,null)),(t()(),nl(-1,null,["FormArray.valueChanges"])),(t()(),nl(-1,null,[" provides an event on every change.\n"])),(t()(),Wi(48,0,null,null,1,"h2",[["class","mt-4 mb-3"]],null,null,null,null,null)),(t()(),nl(-1,null,["Autoscroll with fixed navbar"])),(t()(),Wi(50,0,null,null,4,"p",[],null,null,null,null,null)),(t()(),nl(-1,null,[" Normally the scrolling that is performed by "])),(t()(),Wi(52,0,null,null,1,"em",[],null,null,null,null,null)),(t()(),nl(-1,null,["Sortablejs"])),(t()(),nl(-1,null,[" is working fine. However with a fixed navbar it may cause problems.\n"])),(t()(),Wi(55,0,null,null,4,"p",[],null,null,null,null,null)),(t()(),nl(-1,null,[" Setting the "])),(t()(),Wi(57,0,null,null,1,"em",[],null,null,null,null,null)),(t()(),nl(-1,null,["scrollSensitivity"])),(t()(),nl(-1,null,[" to the proper value will solve the problem. Try it on the long list below\n"])),(t()(),Wi(60,0,null,null,3,"ul",[["class","list-group"]],null,null,null,null,null)),po(61,737280,null,0,Hg,[[2,Vg],Ug,cn,ai,gn],{sortablejs:[0,"sortablejs"],sortablejsOptions:[1,"sortablejsOptions"]},null),(t()(),Bi(16777216,null,null,1,null,Yv)),po(63,278528,null,0,Ia,[Vn,Mn,kn],{ngForOf:[0,"ngForOf"]},null)],function(t,e){var n=e.component;t(e,13,0,n.draggableItems,n.draggableOptions),t(e,15,0,n.draggableItems),t(e,34,0,n.eventItems,n.eventOptions),t(e,36,0,n.eventItems),t(e,61,0,n.scrollableItems,n.scrollableOptions),t(e,63,0,n.scrollableItems)},function(t,e){var n=e.component;t(e,19,0,Jn(e,19,0,Jr(e,20).transform(n.draggableItems))),t(e,32,0,n.eventUpdateCounter)})}function Kv(t){return il(0,[(t()(),Wi(0,0,null,null,1,"app-sortable-with-options",[],null,null,null,$v,qv)),po(1,49152,null,0,Gv,[],null,null)],null,null)}var Xv=zr("app-sortable-with-options",Gv,Kv,{},{},[]),Jv=function(){return function(){this.normalList1=["1","2","3","4","5"],this.normalList2=["6","7","8","9","10"],this.normalOptions={group:"normal-group"},this.cloneList1=["1","2","3","4","5"],this.cloneList2=["6","7","8","9","10"],this.clone1Options={group:{name:"clone-group",pull:"clone",put:!1}},this.clone2Options={group:"clone-group"},this.list1=["1","2","3","4","5"],this.list2=["6","7","8","9","10"],this.list3=["11","12"],this.list4=["13"],this.list1Options={group:{name:"group1",put:!1}},this.list2Options={group:{name:"group2",put:["group1","group2"]}},this.list3Options={group:{name:"group2",pull:"clone",put:["group1","group2"],revertClone:!0}},this.list4Options={group:{name:"group2",put:["group1"]}}}}(),tm=nr({encapsulation:0,styles:[[".sortable[_ngcontent-%COMP%]{background:#eee;border-radius:.25rem;min-height:40px}"]],data:{}});function em(t){return il(0,[(t()(),Wi(0,0,null,null,1,"li",[["class","list-group-item"]],null,null,null,null,null)),(t()(),nl(1,null,["Element ",""]))],null,function(t,e){t(e,1,0,e.context.$implicit)})}function nm(t){return il(0,[(t()(),Wi(0,0,null,null,1,"li",[["class","list-group-item"]],null,null,null,null,null)),(t()(),nl(1,null,["Element ",""]))],null,function(t,e){t(e,1,0,e.context.$implicit)})}function rm(t){return il(0,[(t()(),Wi(0,0,null,null,1,"li",[["class","list-group-item"]],null,null,null,null,null)),(t()(),nl(1,null,["Element ",""]))],null,function(t,e){t(e,1,0,e.context.$implicit)})}function om(t){return il(0,[(t()(),Wi(0,0,null,null,1,"li",[["class","list-group-item"]],null,null,null,null,null)),(t()(),nl(1,null,["Element ",""]))],null,function(t,e){t(e,1,0,e.context.$implicit)})}function im(t){return il(0,[(t()(),Wi(0,0,null,null,1,"li",[["class","list-group-item"]],null,null,null,null,null)),(t()(),nl(1,null,["Element ",""]))],null,function(t,e){t(e,1,0,e.context.$implicit)})}function lm(t){return il(0,[(t()(),Wi(0,0,null,null,1,"li",[["class","list-group-item"]],null,null,null,null,null)),(t()(),nl(1,null,["Element ",""]))],null,function(t,e){t(e,1,0,e.context.$implicit)})}function am(t){return il(0,[(t()(),Wi(0,0,null,null,1,"li",[["class","list-group-item"]],null,null,null,null,null)),(t()(),nl(1,null,["Element ",""]))],null,function(t,e){t(e,1,0,e.context.$implicit)})}function um(t){return il(0,[(t()(),Wi(0,0,null,null,1,"li",[["class","list-group-item"]],null,null,null,null,null)),(t()(),nl(1,null,["Element ",""]))],null,function(t,e){t(e,1,0,e.context.$implicit)})}function sm(t){return il(0,[(t()(),Wi(0,0,null,null,1,"h1",[],null,null,null,null,null)),(t()(),nl(-1,null,["Connecting multiple sortable lists"])),(t()(),Wi(2,0,null,null,3,"p",[["class","lead"]],null,null,null,null,null)),(t()(),Wi(3,0,null,null,2,"strong",[],null,null,null,null,null)),(t()(),Wi(4,0,null,null,1,"a",[["href","https://github.com/SortableJS/ngx-sortablejs/tree/master/src/app/examples/multiple-lists"],["target","_blank"]],null,null,null,null,null)),(t()(),nl(-1,null,["The source code"])),(t()(),nl(-1,null,[" This shows how the "])),(t()(),Wi(7,0,null,null,1,"em",[],null,null,null,null,null)),(t()(),nl(-1,null,["sortable"])),(t()(),nl(-1,null,[" lists can be connected together. Pay attention to the "])),(t()(),Wi(10,0,null,null,1,"em",[],null,null,null,null,null)),(t()(),nl(-1,null,["sortable"])),(t()(),nl(-1,null,[" CSS class\n(gives a "])),(t()(),Wi(13,0,null,null,1,"em",[],null,null,null,null,null)),(t()(),nl(-1,null,["min-height"])),(t()(),nl(-1,null,[") that does not allow lists to become invisible when all items are gone "])),(t()(),Wi(16,0,null,null,1,"h2",[["class","mt-4 mb-3"]],null,null,null,null,null)),(t()(),nl(-1,null,["Transfer between lists"])),(t()(),Wi(18,0,null,null,1,"p",[],null,null,null,null,null)),(t()(),nl(-1,null,[" These lists are connected together. You can drag / drop elements across the lists.\n"])),(t()(),Wi(20,0,null,null,10,"div",[["class","row"]],null,null,null,null,null)),(t()(),Wi(21,0,null,null,4,"div",[["class","col-sm-3"]],null,null,null,null,null)),(t()(),Wi(22,0,null,null,3,"ul",[["class","list-group sortable"]],null,null,null,null,null)),po(23,737280,null,0,Hg,[[2,Vg],Ug,cn,ai,gn],{sortablejs:[0,"sortablejs"],sortablejsOptions:[1,"sortablejsOptions"]},null),(t()(),Bi(16777216,null,null,1,null,em)),po(25,278528,null,0,Ia,[Vn,Mn,kn],{ngForOf:[0,"ngForOf"]},null),(t()(),Wi(26,0,null,null,4,"div",[["class","col-sm-3"]],null,null,null,null,null)),(t()(),Wi(27,0,null,null,3,"ul",[["class","list-group sortable"]],null,null,null,null,null)),po(28,737280,null,0,Hg,[[2,Vg],Ug,cn,ai,gn],{sortablejs:[0,"sortablejs"],sortablejsOptions:[1,"sortablejsOptions"]},null),(t()(),Bi(16777216,null,null,1,null,nm)),po(30,278528,null,0,Ia,[Vn,Mn,kn],{ngForOf:[0,"ngForOf"]},null),(t()(),Wi(31,0,null,null,1,"p",[["class","my-3"]],null,null,null,null,null)),(t()(),nl(-1,null,["and the actual state is"])),(t()(),Wi(33,0,null,null,8,"div",[["class","row"]],null,null,null,null,null)),(t()(),Wi(34,0,null,null,3,"div",[["class","col-sm-3"]],null,null,null,null,null)),(t()(),Wi(35,0,null,null,2,"div",[["class","alert alert-dark"]],null,null,null,null,null)),(t()(),nl(36,null,["> ",""])),fo(0,Ma,[]),(t()(),Wi(38,0,null,null,3,"div",[["class","col-sm-3"]],null,null,null,null,null)),(t()(),Wi(39,0,null,null,2,"div",[["class","alert alert-dark"]],null,null,null,null,null)),(t()(),nl(40,null,["> ",""])),fo(0,Ma,[]),(t()(),Wi(42,0,null,null,1,"h2",[["class","mt-4 mb-3"]],null,null,null,null,null)),(t()(),nl(-1,null,["Clone items"])),(t()(),Wi(44,0,null,null,1,"p",[],null,null,null,null,null)),(t()(),nl(-1,null,["The list 1 is a clone factory and list 2 can be its target."])),(t()(),Wi(46,0,null,null,10,"div",[["class","row"]],null,null,null,null,null)),(t()(),Wi(47,0,null,null,4,"div",[["class","col-sm-3"]],null,null,null,null,null)),(t()(),Wi(48,0,null,null,3,"ul",[["class","list-group sortable"]],null,null,null,null,null)),po(49,737280,null,0,Hg,[[2,Vg],Ug,cn,ai,gn],{sortablejs:[0,"sortablejs"],sortablejsOptions:[1,"sortablejsOptions"]},null),(t()(),Bi(16777216,null,null,1,null,rm)),po(51,278528,null,0,Ia,[Vn,Mn,kn],{ngForOf:[0,"ngForOf"]},null),(t()(),Wi(52,0,null,null,4,"div",[["class","col-sm-3"]],null,null,null,null,null)),(t()(),Wi(53,0,null,null,3,"ul",[["class","list-group sortable"]],null,null,null,null,null)),po(54,737280,null,0,Hg,[[2,Vg],Ug,cn,ai,gn],{sortablejs:[0,"sortablejs"],sortablejsOptions:[1,"sortablejsOptions"]},null),(t()(),Bi(16777216,null,null,1,null,om)),po(56,278528,null,0,Ia,[Vn,Mn,kn],{ngForOf:[0,"ngForOf"]},null),(t()(),Wi(57,0,null,null,1,"p",[["class","my-3"]],null,null,null,null,null)),(t()(),nl(-1,null,["and the actual state is"])),(t()(),Wi(59,0,null,null,8,"div",[["class","row"]],null,null,null,null,null)),(t()(),Wi(60,0,null,null,3,"div",[["class","col-sm-3"]],null,null,null,null,null)),(t()(),Wi(61,0,null,null,2,"div",[["class","alert alert-dark"]],null,null,null,null,null)),(t()(),nl(62,null,["> ",""])),fo(0,Ma,[]),(t()(),Wi(64,0,null,null,3,"div",[["class","col-sm-3"]],null,null,null,null,null)),(t()(),Wi(65,0,null,null,2,"div",[["class","alert alert-dark"]],null,null,null,null,null)),(t()(),nl(66,null,["> ",""])),fo(0,Ma,[]),(t()(),Wi(68,0,null,null,1,"h2",[["class","mt-4 mb-3"]],null,null,null,null,null)),(t()(),nl(-1,null,["Super complicated example"])),(t()(),Wi(70,0,null,null,7,"p",[],null,null,null,null,null)),(t()(),nl(-1,null,[" These lists are connected together. You can drag / drop elements across the lists. Pay attention to the "])),(t()(),Wi(72,0,null,null,1,"em",[],null,null,null,null,null)),(t()(),nl(-1,null,["sortable"])),(t()(),nl(-1,null,[" CSS class (gives a "])),(t()(),Wi(75,0,null,null,1,"em",[],null,null,null,null,null)),(t()(),nl(-1,null,["min-height"])),(t()(),nl(-1,null,[") that does not allow list to become invisible when all items are gone\n"])),(t()(),Wi(78,0,null,null,31,"div",[["class","row"]],null,null,null,null,null)),(t()(),Wi(79,0,null,null,6,"div",[["class","col-sm-3"]],null,null,null,null,null)),(t()(),Wi(80,0,null,null,1,"strong",[],null,null,null,null,null)),(t()(),nl(-1,null,["1. This list cannot accept items"])),(t()(),Wi(82,0,null,null,3,"ul",[["class","mt-2 list-group sortable"]],null,null,null,null,null)),po(83,737280,null,0,Hg,[[2,Vg],Ug,cn,ai,gn],{sortablejs:[0,"sortablejs"],sortablejsOptions:[1,"sortablejsOptions"]},null),(t()(),Bi(16777216,null,null,1,null,im)),po(85,278528,null,0,Ia,[Vn,Mn,kn],{ngForOf:[0,"ngForOf"]},null),(t()(),Wi(86,0,null,null,9,"div",[["class","col-sm-3"]],null,null,null,null,null)),(t()(),Wi(87,0,null,null,4,"strong",[],null,null,null,null,null)),(t()(),nl(-1,null,["2. This is a "])),(t()(),Wi(89,0,null,null,1,"em",[],null,null,null,null,null)),(t()(),nl(-1,null,["normal"])),(t()(),nl(-1,null,[" list"])),(t()(),Wi(92,0,null,null,3,"ul",[["class","mt-2 list-group sortable"]],null,null,null,null,null)),po(93,737280,null,0,Hg,[[2,Vg],Ug,cn,ai,gn],{sortablejs:[0,"sortablejs"],sortablejsOptions:[1,"sortablejsOptions"]},null),(t()(),Bi(16777216,null,null,1,null,lm)),po(95,278528,null,0,Ia,[Vn,Mn,kn],{ngForOf:[0,"ngForOf"]},null),(t()(),Wi(96,0,null,null,6,"div",[["class","col-sm-3"]],null,null,null,null,null)),(t()(),Wi(97,0,null,null,1,"strong",[],null,null,null,null,null)),(t()(),nl(-1,null,["3. This list clones its children"])),(t()(),Wi(99,0,null,null,3,"ul",[["class","mt-2 list-group sortable"]],null,null,null,null,null)),po(100,737280,null,0,Hg,[[2,Vg],Ug,cn,ai,gn],{sortablejs:[0,"sortablejs"],sortablejsOptions:[1,"sortablejsOptions"]},null),(t()(),Bi(16777216,null,null,1,null,am)),po(102,278528,null,0,Ia,[Vn,Mn,kn],{ngForOf:[0,"ngForOf"]},null),(t()(),Wi(103,0,null,null,6,"div",[["class","col-sm-3"]],null,null,null,null,null)),(t()(),Wi(104,0,null,null,1,"strong",[],null,null,null,null,null)),(t()(),nl(-1,null,["4. Only #1 can put here"])),(t()(),Wi(106,0,null,null,3,"ul",[["class","mt-2 list-group sortable"]],null,null,null,null,null)),po(107,737280,null,0,Hg,[[2,Vg],Ug,cn,ai,gn],{sortablejs:[0,"sortablejs"],sortablejsOptions:[1,"sortablejsOptions"]},null),(t()(),Bi(16777216,null,null,1,null,um)),po(109,278528,null,0,Ia,[Vn,Mn,kn],{ngForOf:[0,"ngForOf"]},null),(t()(),Wi(110,0,null,null,1,"p",[["class","my-3"]],null,null,null,null,null)),(t()(),nl(-1,null,["and the actual state is"])),(t()(),Wi(112,0,null,null,16,"div",[["class","row"]],null,null,null,null,null)),(t()(),Wi(113,0,null,null,3,"div",[["class","col-sm-3"]],null,null,null,null,null)),(t()(),Wi(114,0,null,null,2,"div",[["class","alert alert-dark"]],null,null,null,null,null)),(t()(),nl(115,null,["> ",""])),fo(0,Ma,[]),(t()(),Wi(117,0,null,null,3,"div",[["class","col-sm-3"]],null,null,null,null,null)),(t()(),Wi(118,0,null,null,2,"div",[["class","alert alert-dark"]],null,null,null,null,null)),(t()(),nl(119,null,["> ",""])),fo(0,Ma,[]),(t()(),Wi(121,0,null,null,3,"div",[["class","col-sm-3"]],null,null,null,null,null)),(t()(),Wi(122,0,null,null,2,"div",[["class","alert alert-dark"]],null,null,null,null,null)),(t()(),nl(123,null,["> ",""])),fo(0,Ma,[]),(t()(),Wi(125,0,null,null,3,"div",[["class","col-sm-3"]],null,null,null,null,null)),(t()(),Wi(126,0,null,null,2,"div",[["class","alert alert-dark"]],null,null,null,null,null)),(t()(),nl(127,null,["> ",""])),fo(0,Ma,[])],function(t,e){var n=e.component;t(e,23,0,n.normalList1,n.normalOptions),t(e,25,0,n.normalList1),t(e,28,0,n.normalList2,n.normalOptions),t(e,30,0,n.normalList2),t(e,49,0,n.cloneList1,n.clone1Options),t(e,51,0,n.cloneList1),t(e,54,0,n.cloneList2,n.clone2Options),t(e,56,0,n.cloneList2),t(e,83,0,n.list1,n.list1Options),t(e,85,0,n.list1),t(e,93,0,n.list2,n.list2Options),t(e,95,0,n.list2),t(e,100,0,n.list3,n.list3Options),t(e,102,0,n.list3),t(e,107,0,n.list4,n.list4Options),t(e,109,0,n.list4)},function(t,e){var n=e.component;t(e,36,0,Jn(e,36,0,Jr(e,37).transform(n.normalList1))),t(e,40,0,Jn(e,40,0,Jr(e,41).transform(n.normalList2))),t(e,62,0,Jn(e,62,0,Jr(e,63).transform(n.cloneList1))),t(e,66,0,Jn(e,66,0,Jr(e,67).transform(n.cloneList2))),t(e,115,0,Jn(e,115,0,Jr(e,116).transform(n.list1))),t(e,119,0,Jn(e,119,0,Jr(e,120).transform(n.list2))),t(e,123,0,Jn(e,123,0,Jr(e,124).transform(n.list3))),t(e,127,0,Jn(e,127,0,Jr(e,128).transform(n.list4)))})}function cm(t){return il(0,[(t()(),Wi(0,0,null,null,1,"app-multiple-lists",[],null,null,null,sm,tm)),po(1,49152,null,0,Jv,[],null,null)],null,null)}var hm=zr("app-multiple-lists",Jv,cm,{},{},[]),pm=function(){return function(){this.options={group:"test"}}}(),fm=nr({encapsulation:0,styles:[[""]],data:{}});function dm(t){return il(0,[(t()(),Wi(0,0,null,null,1,"li",[["class","list-group-item"]],null,null,null,null,null)),(t()(),nl(1,null,["Element ",""]))],null,function(t,e){t(e,1,0,e.context.$implicit)})}function gm(t){return il(0,[(t()(),Wi(0,0,null,null,3,"ul",[["class","list-group sortable"]],null,null,null,null,null)),po(1,737280,null,0,Hg,[[2,Vg],Ug,cn,ai,gn],{sortablejs:[0,"sortablejs"],sortablejsOptions:[1,"sortablejsOptions"]},null),(t()(),Bi(16777216,null,null,1,null,dm)),po(3,278528,null,0,Ia,[Vn,Mn,kn],{ngForOf:[0,"ngForOf"]},null)],function(t,e){var n=e.component;t(e,1,0,n.list,n.options),t(e,3,0,n.list)},null)}var vm=function(){return function(){this.list1=["1","2","3","4","5"],this.list2=["6","7","8","9","10"]}}(),mm=nr({encapsulation:0,styles:[[""]],data:{}});function ym(t){return il(0,[(t()(),Wi(0,0,null,null,1,"h1",[],null,null,null,null,null)),(t()(),nl(-1,null,["Connecting multiple sortable lists in different components"])),(t()(),Wi(2,0,null,null,6,"div",[["class","row"]],null,null,null,null,null)),(t()(),Wi(3,0,null,null,2,"div",[["class","col-sm-3"]],null,null,null,null,null)),(t()(),Wi(4,0,null,null,1,"app-child-component",[],null,null,null,gm,fm)),po(5,49152,null,0,pm,[],{list:[0,"list"]},null),(t()(),Wi(6,0,null,null,2,"div",[["class","col-sm-3"]],null,null,null,null,null)),(t()(),Wi(7,0,null,null,1,"app-child-component",[],null,null,null,gm,fm)),po(8,49152,null,0,pm,[],{list:[0,"list"]},null),(t()(),Wi(9,0,null,null,1,"p",[["class","my-3"]],null,null,null,null,null)),(t()(),nl(-1,null,["and the actual state is"])),(t()(),Wi(11,0,null,null,8,"div",[["class","row"]],null,null,null,null,null)),(t()(),Wi(12,0,null,null,3,"div",[["class","col-sm-3"]],null,null,null,null,null)),(t()(),Wi(13,0,null,null,2,"div",[["class","alert alert-dark"]],null,null,null,null,null)),(t()(),nl(14,null,["> ",""])),fo(0,Ma,[]),(t()(),Wi(16,0,null,null,3,"div",[["class","col-sm-3"]],null,null,null,null,null)),(t()(),Wi(17,0,null,null,2,"div",[["class","alert alert-dark"]],null,null,null,null,null)),(t()(),nl(18,null,["> ",""])),fo(0,Ma,[])],function(t,e){var n=e.component;t(e,5,0,n.list1),t(e,8,0,n.list2)},function(t,e){var n=e.component;t(e,14,0,Jn(e,14,0,Jr(e,15).transform(n.list1))),t(e,18,0,Jn(e,18,0,Jr(e,19).transform(n.list2)))})}function bm(t){return il(0,[(t()(),Wi(0,0,null,null,1,"app-cross-components-multiple-lists",[],null,null,null,ym,mm)),po(1,49152,null,0,vm,[],null,null)],null,null)}var _m=zr("app-cross-components-multiple-lists",vm,bm,{},{},[]),wm=nr({encapsulation:0,styles:[[""]],data:{}});function Cm(t){return il(0,[(t()(),Wi(0,0,null,null,6,"div",[["class","dropdown-menu"]],null,null,null,null,null)),(t()(),Wi(1,0,null,null,5,"a",[["class","dropdown-item"],["routerLink","tests/cross-components-multiple-list"],["routerLinkActive","active"]],[[1,"target",0],[8,"href",4]],[[null,"click"]],function(t,e,n){var r=!0;return"click"===e&&(r=!1!==Jr(t,2).onClick(n.button,n.ctrlKey,n.metaKey,n.shiftKey)&&r),r},null,null)),po(2,671744,[[10,4]],0,cp,[up,Xc,va],{routerLink:[0,"routerLink"]},null),po(3,1720320,null,2,pp,[up,cn,gn,[2,sp],[2,cp]],{routerLinkActive:[0,"routerLinkActive"]},null),Yi(603979776,9,{links:1}),Yi(603979776,10,{linksWithHrefs:1}),(t()(),nl(-1,null,[" Cross-component multiple lists "]))],function(t,e){t(e,2,0,"tests/cross-components-multiple-list"),t(e,3,0,"active")},function(t,e){t(e,1,0,Jr(e,2).target,Jr(e,2).href)})}function Em(t){return il(0,[(t()(),Wi(0,16777216,null,null,7,"li",[["class","nav-item dropdown"],["dropdown",""]],[[2,"dropup",null],[2,"open",null],[2,"show",null]],null,null,null,null)),go(512,null,Nf,Nf,[]),po(2,212992,null,0,Mf,[cn,gn,Vn,Qp,Rf,Nf],null,null),(t()(),Wi(3,0,null,null,2,"a",[["class","nav-link dropdown-toggle"],["dropdownToggle",""]],[[1,"aria-haspopup",0],[1,"disabled",0],[1,"aria-expanded",0]],[[null,"click"]],function(t,e,n){var r=!0;return"click"===e&&(r=!1!==Jr(t,4).onClick()&&r),r},null,null)),po(4,147456,null,0,Vf,[In,Mf,cn,gn,Nf],null,null),(t()(),nl(-1,null,["Test cases"])),(t()(),Bi(16777216,null,null,1,null,Cm)),po(7,16384,null,0,jf,[Nf,Vn,Mn],null,null),(t()(),Bi(0,null,null,0))],function(t,e){t(e,2,0)},function(t,e){t(e,0,0,Jr(e,2).dropup,Jr(e,2).isOpen,Jr(e,2).isOpen&&Jr(e,2).isBs4),t(e,3,0,!0,Jr(e,4).isDisabled,Jr(e,4).isOpen)})}function Sm(t){return il(0,[(t()(),Wi(0,0,null,null,43,"nav",[["class","navbar navbar-expand-lg navbar-dark bg-dark fixed-top"]],null,null,null,null,null)),(t()(),Wi(1,0,null,null,4,"a",[["class","navbar-brand"],["href","https://github.com/sortablejs/ngx-sortablejs"],["target","_blank"]],null,null,null,null,null)),(t()(),Wi(2,0,null,null,0,"img",[["height","30"],["src","data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCAyNTAgMjUwIj4KICAgIDxwYXRoIGZpbGw9IiNERDAwMzEiIGQ9Ik0xMjUgMzBMMzEuOSA2My4ybDE0LjIgMTIzLjFMMTI1IDIzMGw3OC45LTQzLjcgMTQuMi0xMjMuMXoiIC8+CiAgICA8cGF0aCBmaWxsPSIjQzMwMDJGIiBkPSJNMTI1IDMwdjIyLjItLjFWMjMwbDc4LjktNDMuNyAxNC4yLTEyMy4xTDEyNSAzMHoiIC8+CiAgICA8cGF0aCAgZmlsbD0iI0ZGRkZGRiIgZD0iTTEyNSA1Mi4xTDY2LjggMTgyLjZoMjEuN2wxMS43LTI5LjJoNDkuNGwxMS43IDI5LjJIMTgzTDEyNSA1Mi4xem0xNyA4My4zaC0zNGwxNy00MC45IDE3IDQwLjl6IiAvPgogIDwvc3ZnPg=="],["width","30"]],null,null,null,null,null)),(t()(),nl(-1,null,[" + "])),(t()(),Wi(4,0,null,null,0,"img",[["height","30"],["src","assets/sortable-logo.png"],["width","30"]],null,null,null,null,null)),(t()(),nl(-1,null,[" = ngx-sortablejs "])),(t()(),Wi(6,0,null,null,1,"button",[["class","navbar-toggler"],["type","button"]],null,[[null,"click"]],function(t,e,n){var r=!0,o=t.component;return"click"===e&&(r=0!=(o.navbarCollapsed=!o.navbarCollapsed)&&r),r},null,null)),(t()(),Wi(7,0,null,null,0,"span",[["class","navbar-toggler-icon"]],null,null,null,null,null)),(t()(),Wi(8,0,null,null,35,"div",[["class","navbar-collapse"]],[[2,"collapse",null]],null,null,null,null)),(t()(),Wi(9,0,null,null,30,"ul",[["class","navbar-nav mr-auto"]],null,null,null,null,null)),(t()(),Wi(10,0,null,null,6,"li",[["class","nav-item"],["routerLinkActive","active"]],null,null,null,null,null)),po(11,1720320,null,2,pp,[up,cn,gn,[2,sp],[2,cp]],{routerLinkActive:[0,"routerLinkActive"]},null),Yi(603979776,1,{links:1}),Yi(603979776,2,{linksWithHrefs:1}),(t()(),Wi(14,0,null,null,2,"a",[["class","nav-link"],["routerLink","sortable-array"]],[[1,"target",0],[8,"href",4]],[[null,"click"]],function(t,e,n){var r=!0;return"click"===e&&(r=!1!==Jr(t,15).onClick(n.button,n.ctrlKey,n.metaKey,n.shiftKey)&&r),r},null,null)),po(15,671744,[[2,4]],0,cp,[up,Xc,va],{routerLink:[0,"routerLink"]},null),(t()(),nl(-1,null,["Simple sortable"])),(t()(),Wi(17,0,null,null,6,"li",[["class","nav-item"],["routerLinkActive","active"]],null,null,null,null,null)),po(18,1720320,null,2,pp,[up,cn,gn,[2,sp],[2,cp]],{routerLinkActive:[0,"routerLinkActive"]},null),Yi(603979776,3,{links:1}),Yi(603979776,4,{linksWithHrefs:1}),(t()(),Wi(21,0,null,null,2,"a",[["class","nav-link"],["routerLink","sortable-form-array"]],[[1,"target",0],[8,"href",4]],[[null,"click"]],function(t,e,n){var r=!0;return"click"===e&&(r=!1!==Jr(t,22).onClick(n.button,n.ctrlKey,n.metaKey,n.shiftKey)&&r),r},null,null)),po(22,671744,[[4,4]],0,cp,[up,Xc,va],{routerLink:[0,"routerLink"]},null),(t()(),nl(-1,null,["FormArray"])),(t()(),Wi(24,0,null,null,6,"li",[["class","nav-item"],["routerLinkActive","active"]],null,null,null,null,null)),po(25,1720320,null,2,pp,[up,cn,gn,[2,sp],[2,cp]],{routerLinkActive:[0,"routerLinkActive"]},null),Yi(603979776,5,{links:1}),Yi(603979776,6,{linksWithHrefs:1}),(t()(),Wi(28,0,null,null,2,"a",[["class","nav-link"],["routerLink","custom-options"]],[[1,"target",0],[8,"href",4]],[[null,"click"]],function(t,e,n){var r=!0;return"click"===e&&(r=!1!==Jr(t,29).onClick(n.button,n.ctrlKey,n.metaKey,n.shiftKey)&&r),r},null,null)),po(29,671744,[[6,4]],0,cp,[up,Xc,va],{routerLink:[0,"routerLink"]},null),(t()(),nl(-1,null,["Custom options"])),(t()(),Wi(31,0,null,null,6,"li",[["class","nav-item"],["routerLinkActive","active"]],null,null,null,null,null)),po(32,1720320,null,2,pp,[up,cn,gn,[2,sp],[2,cp]],{routerLinkActive:[0,"routerLinkActive"]},null),Yi(603979776,7,{links:1}),Yi(603979776,8,{linksWithHrefs:1}),(t()(),Wi(35,0,null,null,2,"a",[["class","nav-link"],["routerLink","multiple-lists"]],[[1,"target",0],[8,"href",4]],[[null,"click"]],function(t,e,n){var r=!0;return"click"===e&&(r=!1!==Jr(t,36).onClick(n.button,n.ctrlKey,n.metaKey,n.shiftKey)&&r),r},null,null)),po(36,671744,[[8,4]],0,cp,[up,Xc,va],{routerLink:[0,"routerLink"]},null),(t()(),nl(-1,null,["Multiple lists"])),(t()(),Bi(16777216,null,null,1,null,Em)),po(39,16384,null,0,Ra,[Vn,Mn],{ngIf:[0,"ngIf"]},null),(t()(),Wi(40,0,null,null,3,"ul",[["class","navbar-nav ml-auto"]],null,null,null,null,null)),(t()(),Wi(41,0,null,null,2,"li",[["class","nav-item"]],null,null,null,null,null)),(t()(),Wi(42,0,null,null,1,"a",[["class","nav-link"],["href","https://github.com/sortablejs/ngx-sortablejs"],["target","_blank"]],null,null,null,null,null)),(t()(),nl(-1,null,["Github"])),(t()(),Wi(44,0,null,null,2,"div",[["class","container-fluid my-4"],["style","padding-top: 58px"]],null,null,null,null,null)),(t()(),Wi(45,16777216,null,null,1,"router-outlet",[],null,null,null,null,null)),po(46,212992,null,0,gp,[dp,Vn,rn,[8,null],In],null,null)],function(t,e){var n=e.component;t(e,11,0,"active"),t(e,15,0,"sortable-array"),t(e,18,0,"active"),t(e,22,0,"sortable-form-array"),t(e,25,0,"active"),t(e,29,0,"custom-options"),t(e,32,0,"active"),t(e,36,0,"multiple-lists"),t(e,39,0,n.showTestCases),t(e,46,0)},function(t,e){t(e,8,0,e.component.navbarCollapsed),t(e,14,0,Jr(e,15).target,Jr(e,15).href),t(e,21,0,Jr(e,22).target,Jr(e,22).href),t(e,28,0,Jr(e,29).target,Jr(e,29).href),t(e,35,0,Jr(e,36).target,Jr(e,36).href)})}function xm(t){return il(0,[(t()(),Wi(0,0,null,null,1,"app-root",[],null,null,null,Sm,wm)),po(1,49152,null,0,fa,[],null,null)],null,null)}var Om=zr("app-root",fa,xm,{},{},[]),Tm=function(){return function(){}}(),km=function(){return function(){}}(),Am=ca(pa,[fa],function(t){return function(t){for(var e={},n=[],r=!1,o=0;o",this._properties=t&&t.properties||{},this._zoneDelegate=new a(this,this._parent&&this._parent._zoneDelegate,t)}static assertZonePatched(){if(e.Promise!==D.ZoneAwarePromise)throw new Error("Zone.js has detected that ZoneAwarePromise `(window|global).Promise` has been overwritten.\nMost likely cause is that a Promise polyfill has been loaded after Zone.js (Polyfilling Promise api is not necessary when zone.js is loaded. If you must load one, do so before loading zone.js.)")}static get root(){let e=s.current;for(;e.parent;)e=e.parent;return e}static get current(){return P.zone}static get currentTask(){return z}static __load_patch(t,i){if(D.hasOwnProperty(t)){if(r)throw Error("Already loaded patch: "+t)}else if(!e["__Zone_disable_"+t]){const r="Zone:"+t;n(r),D[t]=i(e,s,O),o(r,r)}}get parent(){return this._parent}get name(){return this._name}get(e){const t=this.getZoneWith(e);if(t)return t._properties[e]}getZoneWith(e){let t=this;for(;t;){if(t._properties.hasOwnProperty(e))return t;t=t._parent}return null}fork(e){if(!e)throw new Error("ZoneSpec required!");return this._zoneDelegate.fork(this,e)}wrap(e,t){if("function"!=typeof e)throw new Error("Expecting function got: "+e);const n=this._zoneDelegate.intercept(this,e,t),o=this;return function(){return o.runGuarded(n,this,arguments,t)}}run(e,t,n,o){P={parent:P,zone:this};try{return this._zoneDelegate.invoke(this,e,t,n,o)}finally{P=P.parent}}runGuarded(e,t=null,n,o){P={parent:P,zone:this};try{try{return this._zoneDelegate.invoke(this,e,t,n,o)}catch(r){if(this._zoneDelegate.handleError(this,r))throw r}}finally{P=P.parent}}runTask(e,t,n){if(e.zone!=this)throw new Error("A task can only be run in the zone of creation! (Creation: "+(e.zone||m).name+"; Execution: "+this.name+")");if(e.state===y&&(e.type===S||e.type===Z))return;const o=e.state!=v;o&&e._transitionTo(v,b),e.runCount++;const r=z;z=e,P={parent:P,zone:this};try{e.type==Z&&e.data&&!e.data.isPeriodic&&(e.cancelFn=void 0);try{return this._zoneDelegate.invokeTask(this,e,t,n)}catch(s){if(this._zoneDelegate.handleError(this,s))throw s}}finally{e.state!==y&&e.state!==w&&(e.type==S||e.data&&e.data.isPeriodic?o&&e._transitionTo(b,v):(e.runCount=0,this._updateTaskCount(e,-1),o&&e._transitionTo(y,v,y))),P=P.parent,z=r}}scheduleTask(e){if(e.zone&&e.zone!==this){let t=this;for(;t;){if(t===e.zone)throw Error(`can not reschedule task to ${this.name} which is descendants of the original zone ${e.zone.name}`);t=t.parent}}e._transitionTo(k,y);const t=[];e._zoneDelegates=t,e._zone=this;try{e=this._zoneDelegate.scheduleTask(this,e)}catch(n){throw e._transitionTo(w,k,y),this._zoneDelegate.handleError(this,n),n}return e._zoneDelegates===t&&this._updateTaskCount(e,1),e.state==k&&e._transitionTo(b,k),e}scheduleMicroTask(e,t,n,o){return this.scheduleTask(new c(E,e,t,n,o,void 0))}scheduleMacroTask(e,t,n,o,r){return this.scheduleTask(new c(Z,e,t,n,o,r))}scheduleEventTask(e,t,n,o,r){return this.scheduleTask(new c(S,e,t,n,o,r))}cancelTask(e){if(e.zone!=this)throw new Error("A task can only be cancelled in the zone of creation! (Creation: "+(e.zone||m).name+"; Execution: "+this.name+")");e._transitionTo(T,b,v);try{this._zoneDelegate.cancelTask(this,e)}catch(t){throw e._transitionTo(w,T),this._zoneDelegate.handleError(this,t),t}return this._updateTaskCount(e,-1),e._transitionTo(y,T),e.runCount=0,e}_updateTaskCount(e,t){const n=e._zoneDelegates;-1==t&&(e._zoneDelegates=null);for(let o=0;oe.hasTask(n,o),onScheduleTask:(e,t,n,o)=>e.scheduleTask(n,o),onInvokeTask:(e,t,n,o,r,s)=>e.invokeTask(n,o,r,s),onCancelTask:(e,t,n,o)=>e.cancelTask(n,o)};class a{constructor(e,t,n){this._taskCounts={microTask:0,macroTask:0,eventTask:0},this.zone=e,this._parentDelegate=t,this._forkZS=n&&(n&&n.onFork?n:t._forkZS),this._forkDlgt=n&&(n.onFork?t:t._forkDlgt),this._forkCurrZone=n&&(n.onFork?this.zone:t.zone),this._interceptZS=n&&(n.onIntercept?n:t._interceptZS),this._interceptDlgt=n&&(n.onIntercept?t:t._interceptDlgt),this._interceptCurrZone=n&&(n.onIntercept?this.zone:t.zone),this._invokeZS=n&&(n.onInvoke?n:t._invokeZS),this._invokeDlgt=n&&(n.onInvoke?t:t._invokeDlgt),this._invokeCurrZone=n&&(n.onInvoke?this.zone:t.zone),this._handleErrorZS=n&&(n.onHandleError?n:t._handleErrorZS),this._handleErrorDlgt=n&&(n.onHandleError?t:t._handleErrorDlgt),this._handleErrorCurrZone=n&&(n.onHandleError?this.zone:t.zone),this._scheduleTaskZS=n&&(n.onScheduleTask?n:t._scheduleTaskZS),this._scheduleTaskDlgt=n&&(n.onScheduleTask?t:t._scheduleTaskDlgt),this._scheduleTaskCurrZone=n&&(n.onScheduleTask?this.zone:t.zone),this._invokeTaskZS=n&&(n.onInvokeTask?n:t._invokeTaskZS),this._invokeTaskDlgt=n&&(n.onInvokeTask?t:t._invokeTaskDlgt),this._invokeTaskCurrZone=n&&(n.onInvokeTask?this.zone:t.zone),this._cancelTaskZS=n&&(n.onCancelTask?n:t._cancelTaskZS),this._cancelTaskDlgt=n&&(n.onCancelTask?t:t._cancelTaskDlgt),this._cancelTaskCurrZone=n&&(n.onCancelTask?this.zone:t.zone),this._hasTaskZS=null,this._hasTaskDlgt=null,this._hasTaskDlgtOwner=null,this._hasTaskCurrZone=null;const o=n&&n.onHasTask;(o||t&&t._hasTaskZS)&&(this._hasTaskZS=o?n:i,this._hasTaskDlgt=t,this._hasTaskDlgtOwner=this,this._hasTaskCurrZone=e,n.onScheduleTask||(this._scheduleTaskZS=i,this._scheduleTaskDlgt=t,this._scheduleTaskCurrZone=this.zone),n.onInvokeTask||(this._invokeTaskZS=i,this._invokeTaskDlgt=t,this._invokeTaskCurrZone=this.zone),n.onCancelTask||(this._cancelTaskZS=i,this._cancelTaskDlgt=t,this._cancelTaskCurrZone=this.zone))}fork(e,t){return this._forkZS?this._forkZS.onFork(this._forkDlgt,this.zone,e,t):new s(e,t)}intercept(e,t,n){return this._interceptZS?this._interceptZS.onIntercept(this._interceptDlgt,this._interceptCurrZone,e,t,n):t}invoke(e,t,n,o,r){return this._invokeZS?this._invokeZS.onInvoke(this._invokeDlgt,this._invokeCurrZone,e,t,n,o,r):t.apply(n,o)}handleError(e,t){return!this._handleErrorZS||this._handleErrorZS.onHandleError(this._handleErrorDlgt,this._handleErrorCurrZone,e,t)}scheduleTask(e,t){let n=t;if(this._scheduleTaskZS)this._hasTaskZS&&n._zoneDelegates.push(this._hasTaskDlgtOwner),(n=this._scheduleTaskZS.onScheduleTask(this._scheduleTaskDlgt,this._scheduleTaskCurrZone,e,t))||(n=t);else if(t.scheduleFn)t.scheduleFn(t);else{if(t.type!=E)throw new Error("Task is missing scheduleFn.");g(t)}return n}invokeTask(e,t,n,o){return this._invokeTaskZS?this._invokeTaskZS.onInvokeTask(this._invokeTaskDlgt,this._invokeTaskCurrZone,e,t,n,o):t.callback.apply(n,o)}cancelTask(e,t){let n;if(this._cancelTaskZS)n=this._cancelTaskZS.onCancelTask(this._cancelTaskDlgt,this._cancelTaskCurrZone,e,t);else{if(!t.cancelFn)throw Error("Task is not cancelable");n=t.cancelFn(t)}return n}hasTask(e,t){try{this._hasTaskZS&&this._hasTaskZS.onHasTask(this._hasTaskDlgt,this._hasTaskCurrZone,e,t)}catch(n){this.handleError(e,n)}}_updateTaskCount(e,t){const n=this._taskCounts,o=n[e],r=n[e]=o+t;if(r<0)throw new Error("More tasks executed then were scheduled.");0!=o&&0!=r||this.hasTask(this.zone,{microTask:n.microTask>0,macroTask:n.macroTask>0,eventTask:n.eventTask>0,change:e})}}class c{constructor(t,n,o,r,s,i){this._zone=null,this.runCount=0,this._zoneDelegates=null,this._state="notScheduled",this.type=t,this.source=n,this.data=r,this.scheduleFn=s,this.cancelFn=i,this.callback=o;const a=this;this.invoke=t===S&&r&&r.useG?c.invokeTask:function(){return c.invokeTask.call(e,a,this,arguments)}}static invokeTask(e,t,n){e||(e=this),j++;try{return e.runCount++,e.zone.runTask(e,t,n)}finally{1==j&&_(),j--}}get zone(){return this._zone}get state(){return this._state}cancelScheduleRequest(){this._transitionTo(y,k)}_transitionTo(e,t,n){if(this._state!==t&&this._state!==n)throw new Error(`${this.type} '${this.source}': can not transition to '${e}', expecting state '${t}'${n?" or '"+n+"'":""}, was '${this._state}'.`);this._state=e,e==y&&(this._zoneDelegates=null)}toString(){return this.data&&void 0!==this.data.handleId?this.data.handleId.toString():Object.prototype.toString.call(this)}toJSON(){return{type:this.type,state:this.state,source:this.source,zone:this.zone.name,runCount:this.runCount}}}const l=I("setTimeout"),u=I("Promise"),h=I("then");let p,f=[],d=!1;function g(t){if(0===j&&0===f.length)if(p||e[u]&&(p=e[u].resolve(0)),p){let e=p[h];e||(e=p.then),e.call(p,_)}else e[l](_,0);t&&f.push(t)}function _(){if(!d){for(d=!0;f.length;){const t=f;f=[];for(let n=0;nP,onUnhandledError:C,microtaskDrainDone:C,scheduleMicroTask:g,showUncaughtError:()=>!s[I("ignoreConsoleErrorUncaughtError")],patchEventTarget:()=>[],patchOnProperties:C,patchMethod:()=>C,bindArguments:()=>[],patchThen:()=>C,patchMacroTask:()=>C,setNativePromise:e=>{e&&"function"==typeof e.resolve&&(p=e.resolve(0))},patchEventPrototype:()=>C,isIEOrEdge:()=>!1,getGlobalObjects:()=>void 0,ObjectDefineProperty:()=>C,ObjectGetOwnPropertyDescriptor:()=>void 0,ObjectCreate:()=>void 0,ArraySlice:()=>[],patchClass:()=>C,wrapWithCurrentZone:()=>C,filterProperties:()=>[],attachOriginToPatched:()=>C,_redefineProperty:()=>C,patchCallbacks:()=>C};let P={parent:null,zone:new s(null,null)},z=null,j=0;function C(){}function I(e){return"__zone_symbol__"+e}o("Zone","Zone"),e.Zone=s}("undefined"!=typeof window&&window||"undefined"!=typeof self&&self||global),Zone.__load_patch("ZoneAwarePromise",(e,t,n)=>{const o=Object.getOwnPropertyDescriptor,r=Object.defineProperty,s=n.symbol,i=[],a=s("Promise"),c=s("then"),l="__creationTrace__";n.onUnhandledError=(e=>{if(n.showUncaughtError()){const t=e&&e.rejection;t?console.error("Unhandled Promise rejection:",t instanceof Error?t.message:t,"; Zone:",e.zone.name,"; Task:",e.task&&e.task.source,"; Value:",t,t instanceof Error?t.stack:void 0):console.error(e)}}),n.microtaskDrainDone=(()=>{for(;i.length;)for(;i.length;){const t=i.shift();try{t.zone.runGuarded(()=>{throw t})}catch(e){h(e)}}});const u=s("unhandledPromiseRejectionHandler");function h(e){n.onUnhandledError(e);try{const n=t[u];n&&"function"==typeof n&&n.call(this,e)}catch(o){}}function p(e){return e&&e.then}function f(e){return e}function d(e){return R.reject(e)}const g=s("state"),_=s("value"),m=s("finally"),y=s("parentPromiseValue"),k=s("parentPromiseState"),b="Promise.then",v=null,T=!0,w=!1,E=0;function Z(e,t){return n=>{try{P(e,t,n)}catch(o){P(e,!1,o)}}}const S=function(){let e=!1;return function(t){return function(){e||(e=!0,t.apply(null,arguments))}}},D="Promise resolved with itself",O=s("currentTaskTrace");function P(e,o,s){const a=S();if(e===s)throw new TypeError(D);if(e[g]===v){let h=null;try{"object"!=typeof s&&"function"!=typeof s||(h=s&&s.then)}catch(u){return a(()=>{P(e,!1,u)})(),e}if(o!==w&&s instanceof R&&s.hasOwnProperty(g)&&s.hasOwnProperty(_)&&s[g]!==v)j(s),P(e,s[g],s[_]);else if(o!==w&&"function"==typeof h)try{h.call(s,a(Z(e,o)),a(Z(e,!1)))}catch(u){a(()=>{P(e,!1,u)})()}else{e[g]=o;const a=e[_];if(e[_]=s,e[m]===m&&o===T&&(e[g]=e[k],e[_]=e[y]),o===w&&s instanceof Error){const e=t.currentTask&&t.currentTask.data&&t.currentTask.data[l];e&&r(s,O,{configurable:!0,enumerable:!1,writable:!0,value:e})}for(let t=0;t{try{const r=e[_],a=n&&m===n[m];a&&(n[y]=r,n[k]=s);const c=t.run(i,void 0,a&&i!==d&&i!==f?[]:[r]);P(n,!0,c)}catch(o){P(n,!1,o)}},n)}const I="function ZoneAwarePromise() { [native code] }";class R{constructor(e){const t=this;if(!(t instanceof R))throw new Error("Must be an instanceof Promise.");t[g]=v,t[_]=[];try{e&&e(Z(t,T),Z(t,w))}catch(n){P(t,!1,n)}}static toString(){return I}static resolve(e){return P(new this(null),T,e)}static reject(e){return P(new this(null),w,e)}static race(e){let t,n,o=new this((e,o)=>{t=e,n=o});function r(e){t(e)}function s(e){n(e)}for(let i of e)p(i)||(i=this.resolve(i)),i.then(r,s);return o}static all(e){let t,n,o=new this((e,o)=>{t=e,n=o}),r=2,s=0;const i=[];for(let a of e){p(a)||(a=this.resolve(a));const e=s;a.then(n=>{i[e]=n,0==--r&&t(i)},n),r++,s++}return 0==(r-=2)&&t(i),o}get[Symbol.toStringTag](){return"Promise"}then(e,n){const o=new this.constructor(null),r=t.current;return this[g]==v?this[_].push(r,o,e,n):C(this,r,o,e,n),o}catch(e){return this.then(null,e)}finally(e){const n=new this.constructor(null);n[m]=m;const o=t.current;return this[g]==v?this[_].push(o,n,e,e):C(this,o,n,e,e),n}}R.resolve=R.resolve,R.reject=R.reject,R.race=R.race,R.all=R.all;const M=e[a]=e.Promise,x=t.__symbol__("ZoneAwarePromise");let L=o(e,"Promise");L&&!L.configurable||(L&&delete L.writable,L&&delete L.value,L||(L={configurable:!0,enumerable:!0}),L.get=function(){return e[x]?e[x]:e[a]},L.set=function(t){t===R?e[x]=t:(e[a]=t,t.prototype[c]||A(t),n.setNativePromise(t))},r(e,"Promise",L)),e.Promise=R;const N=s("thenPatched");function A(e){const t=e.prototype,n=o(t,"then");if(n&&(!1===n.writable||!n.configurable))return;const r=t.then;t[c]=r,e.prototype.then=function(e,t){return new R((e,t)=>{r.call(this,e,t)}).then(e,t)},e[N]=!0}if(n.patchThen=A,M){A(M);const t=e.fetch;"function"==typeof t&&(e[n.symbol("fetch")]=t,e.fetch=function(e){return function(){let t=e.apply(this,arguments);if(t instanceof R)return t;let n=t.constructor;return n[N]||A(n),t}}(t))}return Promise[t.__symbol__("uncaughtPromiseErrors")]=i,R});const n=Object.getOwnPropertyDescriptor,o=Object.defineProperty,r=Object.getPrototypeOf,s=Object.create,i=Array.prototype.slice,a="addEventListener",c="removeEventListener",l=Zone.__symbol__(a),u=Zone.__symbol__(c),h="true",p="false",f="__zone_symbol__";function d(e,t){return Zone.current.wrap(e,t)}function g(e,t,n,o,r){return Zone.current.scheduleMacroTask(e,t,n,o,r)}const _=Zone.__symbol__,m="undefined"!=typeof window,y=m?window:void 0,k=m&&y||"object"==typeof self&&self||global,b="removeAttribute",v=[null];function T(e,t){for(let n=e.length-1;n>=0;n--)"function"==typeof e[n]&&(e[n]=d(e[n],t+"_"+n));return e}function w(e){return!e||!1!==e.writable&&!("function"==typeof e.get&&void 0===e.set)}const E="undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope,Z=!("nw"in k)&&void 0!==k.process&&"[object process]"==={}.toString.call(k.process),S=!Z&&!E&&!(!m||!y.HTMLElement),D=void 0!==k.process&&"[object process]"==={}.toString.call(k.process)&&!E&&!(!m||!y.HTMLElement),O={},P=function(e){if(!(e=e||k.event))return;let t=O[e.type];t||(t=O[e.type]=_("ON_PROPERTY"+e.type));const n=this||e.target||k,o=n[t];let r;if(S&&n===y&&"error"===e.type){const t=e;!0===(r=o&&o.call(this,t.message,t.filename,t.lineno,t.colno,t.error))&&e.preventDefault()}else null==(r=o&&o.apply(this,arguments))||r||e.preventDefault();return r};function z(e,t,r){let s=n(e,t);if(!s&&r&&n(r,t)&&(s={enumerable:!0,configurable:!0}),!s||!s.configurable)return;const i=_("on"+t+"patched");if(e.hasOwnProperty(i)&&e[i])return;delete s.writable,delete s.value;const a=s.get,c=s.set,l=t.substr(2);let u=O[l];u||(u=O[l]=_("ON_PROPERTY"+l)),s.set=function(t){let n=this;n||e!==k||(n=k),n&&(n[u]&&n.removeEventListener(l,P),c&&c.apply(n,v),"function"==typeof t?(n[u]=t,n.addEventListener(l,P,!1)):n[u]=null)},s.get=function(){let n=this;if(n||e!==k||(n=k),!n)return null;const o=n[u];if(o)return o;if(a){let e=a&&a.call(this);if(e)return s.set.call(this,e),"function"==typeof n[b]&&n.removeAttribute(t),e}return null},o(e,t,s),e[i]=!0}function j(e,t,n){if(t)for(let o=0;o{const t=Object.getOwnPropertyDescriptor(c,e);Object.defineProperty(l,e,{get:function(){return c[e]},set:function(n){(!t||t.writable&&"function"==typeof t.set)&&(c[e]=n)},enumerable:!t||t.enumerable,configurable:!t||t.configurable})}))}var c,l;return a}function x(e,t,n){let o=null;function r(e){const t=e.data;return t.args[t.cbIdx]=function(){e.invoke.apply(this,arguments)},o.apply(t.target,t.args),e}o=M(e,t,e=>(function(t,o){const s=n(t,o);return s.cbIdx>=0&&"function"==typeof o[s.cbIdx]?g(s.name,o[s.cbIdx],s,r):e.apply(t,o)}))}function L(e,t){e[_("OriginalDelegate")]=t}let N=!1,A=!1;function F(){if(N)return A;N=!0;try{const t=y.navigator.userAgent;-1===t.indexOf("MSIE ")&&-1===t.indexOf("Trident/")&&-1===t.indexOf("Edge/")||(A=!0)}catch(e){}return A}Zone.__load_patch("toString",e=>{const t=Function.prototype.toString,n=_("OriginalDelegate"),o=_("Promise"),r=_("Error"),s=function(){if("function"==typeof this){const s=this[n];if(s)return"function"==typeof s?t.call(s):Object.prototype.toString.call(s);if(this===Promise){const n=e[o];if(n)return t.call(n)}if(this===Error){const n=e[r];if(n)return t.call(n)}}return t.call(this)};s[n]=t,Function.prototype.toString=s;const i=Object.prototype.toString;Object.prototype.toString=function(){return this instanceof Promise?"[object Promise]":i.call(this)}});let H=!1;if("undefined"!=typeof window)try{const e=Object.defineProperty({},"passive",{get:function(){H=!0}});window.addEventListener("test",e,e),window.removeEventListener("test",e,e)}catch(Te){H=!1}const G={useG:!0},q={},B={},$=/^__zone_symbol__(\w+)(true|false)$/,U="__zone_symbol__propagationStopped";function W(e,t,n){const o=n&&n.add||a,s=n&&n.rm||c,i=n&&n.listeners||"eventListeners",l=n&&n.rmAll||"removeAllListeners",u=_(o),d="."+o+":",g="prependListener",m="."+g+":",y=function(e,t,n){if(e.isRemoved)return;const o=e.callback;"object"==typeof o&&o.handleEvent&&(e.callback=(e=>o.handleEvent(e)),e.originalDelegate=o),e.invoke(e,t,[n]);const r=e.options;r&&"object"==typeof r&&r.once&&t[s].call(t,n.type,e.originalDelegate?e.originalDelegate:e.callback,r)},k=function(t){if(!(t=t||e.event))return;const n=this||t.target||e,o=n[q[t.type][p]];if(o)if(1===o.length)y(o[0],n,t);else{const e=o.slice();for(let o=0;o(function(t,n){t[U]=!0,e&&e.apply(t,n)}))}function J(e,t,n,o,r){const s=Zone.__symbol__(o);if(t[s])return;const i=t[s]=t[o];t[o]=function(s,a,c){return a&&a.prototype&&r.forEach(function(t){const r=`${n}.${o}::`+t,s=a.prototype;if(s.hasOwnProperty(t)){const n=e.ObjectGetOwnPropertyDescriptor(s,t);n&&n.value?(n.value=e.wrapWithCurrentZone(n.value,r),e._redefineProperty(a.prototype,t,n)):s[t]&&(s[t]=e.wrapWithCurrentZone(s[t],r))}else s[t]&&(s[t]=e.wrapWithCurrentZone(s[t],r))}),i.call(t,s,a,c)},e.attachOriginToPatched(t[o],i)}const Y=Zone.__symbol__,K=Object[Y("defineProperty")]=Object.defineProperty,Q=Object[Y("getOwnPropertyDescriptor")]=Object.getOwnPropertyDescriptor,ee=Object.create,te=Y("unconfigurables");function ne(e,t,n){const o=n.configurable;return se(e,t,n=re(e,t,n),o)}function oe(e,t){return e&&e[te]&&e[te][t]}function re(e,t,n){return Object.isFrozen(n)||(n.configurable=!0),n.configurable||(e[te]||Object.isFrozen(e)||K(e,te,{writable:!0,value:{}}),e[te]&&(e[te][t]=!0)),n}function se(e,t,n,o){try{return K(e,t,n)}catch(r){if(!n.configurable)throw r;void 0===o?delete n.configurable:n.configurable=o;try{return K(e,t,n)}catch(r){let o=null;try{o=JSON.stringify(n)}catch(r){o=n.toString()}console.log(`Attempting to configure '${t}' with descriptor '${o}' on object '${e}' and got error, giving up: ${r}`)}}}const ie=["absolutedeviceorientation","afterinput","afterprint","appinstalled","beforeinstallprompt","beforeprint","beforeunload","devicelight","devicemotion","deviceorientation","deviceorientationabsolute","deviceproximity","hashchange","languagechange","message","mozbeforepaint","offline","online","paint","pageshow","pagehide","popstate","rejectionhandled","storage","unhandledrejection","unload","userproximity","vrdisplyconnected","vrdisplaydisconnected","vrdisplaypresentchange"],ae=["encrypted","waitingforkey","msneedkey","mozinterruptbegin","mozinterruptend"],ce=["load"],le=["blur","error","focus","load","resize","scroll","messageerror"],ue=["bounce","finish","start"],he=["loadstart","progress","abort","error","load","progress","timeout","loadend","readystatechange"],pe=["upgradeneeded","complete","abort","success","error","blocked","versionchange","close"],fe=["close","error","open","message"],de=["error","message"],ge=["abort","animationcancel","animationend","animationiteration","auxclick","beforeinput","blur","cancel","canplay","canplaythrough","change","compositionstart","compositionupdate","compositionend","cuechange","click","close","contextmenu","curechange","dblclick","drag","dragend","dragenter","dragexit","dragleave","dragover","drop","durationchange","emptied","ended","error","focus","focusin","focusout","gotpointercapture","input","invalid","keydown","keypress","keyup","load","loadstart","loadeddata","loadedmetadata","lostpointercapture","mousedown","mouseenter","mouseleave","mousemove","mouseout","mouseover","mouseup","mousewheel","orientationchange","pause","play","playing","pointercancel","pointerdown","pointerenter","pointerleave","pointerlockchange","mozpointerlockchange","webkitpointerlockerchange","pointerlockerror","mozpointerlockerror","webkitpointerlockerror","pointermove","pointout","pointerover","pointerup","progress","ratechange","reset","resize","scroll","seeked","seeking","select","selectionchange","selectstart","show","sort","stalled","submit","suspend","timeupdate","volumechange","touchcancel","touchmove","touchstart","touchend","transitioncancel","transitionend","waiting","wheel"].concat(["webglcontextrestored","webglcontextlost","webglcontextcreationerror"],["autocomplete","autocompleteerror"],["toggle"],["afterscriptexecute","beforescriptexecute","DOMContentLoaded","freeze","fullscreenchange","mozfullscreenchange","webkitfullscreenchange","msfullscreenchange","fullscreenerror","mozfullscreenerror","webkitfullscreenerror","msfullscreenerror","readystatechange","visibilitychange","resume"],ie,["beforecopy","beforecut","beforepaste","copy","cut","paste","dragstart","loadend","animationstart","search","transitionrun","transitionstart","webkitanimationend","webkitanimationiteration","webkitanimationstart","webkittransitionend"],["activate","afterupdate","ariarequest","beforeactivate","beforedeactivate","beforeeditfocus","beforeupdate","cellchange","controlselect","dataavailable","datasetchanged","datasetcomplete","errorupdate","filterchange","layoutcomplete","losecapture","move","moveend","movestart","propertychange","resizeend","resizestart","rowenter","rowexit","rowsdelete","rowsinserted","command","compassneedscalibration","deactivate","help","mscontentzoom","msmanipulationstatechanged","msgesturechange","msgesturedoubletap","msgestureend","msgesturehold","msgesturestart","msgesturetap","msgotpointercapture","msinertiastart","mslostpointercapture","mspointercancel","mspointerdown","mspointerenter","mspointerhover","mspointerleave","mspointermove","mspointerout","mspointerover","mspointerup","pointerout","mssitemodejumplistitemremoved","msthumbnailclick","stop","storagecommit"]);function _e(e,t,n){if(!n||0===n.length)return t;const o=n.filter(t=>t.target===e);if(!o||0===o.length)return t;const r=o[0].ignoreProperties;return t.filter(e=>-1===r.indexOf(e))}function me(e,t,n,o){e&&j(e,_e(e,t,n),o)}function ye(e,t){if(Z&&!D)return;if(Zone[e.symbol("patchEvents")])return;const n="undefined"!=typeof WebSocket,o=t.__Zone_ignore_on_properties;if(S){const e=window,t=function(){try{const n=e.navigator.userAgent;if(-1!==n.indexOf("MSIE ")||-1!==n.indexOf("Trident/"))return!0}catch(t){}return!1}?[{target:e,ignoreProperties:["error"]}]:[];me(e,ge.concat(["messageerror"]),o?o.concat(t):o,r(e)),me(Document.prototype,ge,o),void 0!==e.SVGElement&&me(e.SVGElement.prototype,ge,o),me(Element.prototype,ge,o),me(HTMLElement.prototype,ge,o),me(HTMLMediaElement.prototype,ae,o),me(HTMLFrameSetElement.prototype,ie.concat(le),o),me(HTMLBodyElement.prototype,ie.concat(le),o),me(HTMLFrameElement.prototype,ce,o),me(HTMLIFrameElement.prototype,ce,o);const n=e.HTMLMarqueeElement;n&&me(n.prototype,ue,o);const s=e.Worker;s&&me(s.prototype,de,o)}const s=t.XMLHttpRequest;s&&me(s.prototype,he,o);const i=t.XMLHttpRequestEventTarget;i&&me(i&&i.prototype,he,o),"undefined"!=typeof IDBIndex&&(me(IDBIndex.prototype,pe,o),me(IDBRequest.prototype,pe,o),me(IDBOpenDBRequest.prototype,pe,o),me(IDBDatabase.prototype,pe,o),me(IDBTransaction.prototype,pe,o),me(IDBCursor.prototype,pe,o)),n&&me(WebSocket.prototype,fe,o)}Zone.__load_patch("util",(e,t,r)=>{r.patchOnProperties=j,r.patchMethod=M,r.bindArguments=T,r.patchMacroTask=x;const l=t.__symbol__("BLACK_LISTED_EVENTS"),u=t.__symbol__("UNPATCHED_EVENTS");e[u]&&(e[l]=e[u]),e[l]&&(t[l]=t[u]=e[l]),r.patchEventPrototype=X,r.patchEventTarget=W,r.isIEOrEdge=F,r.ObjectDefineProperty=o,r.ObjectGetOwnPropertyDescriptor=n,r.ObjectCreate=s,r.ArraySlice=i,r.patchClass=I,r.wrapWithCurrentZone=d,r.filterProperties=_e,r.attachOriginToPatched=L,r._redefineProperty=ne,r.patchCallbacks=J,r.getGlobalObjects=(()=>({globalSources:B,zoneSymbolEventNames:q,eventNames:ge,isBrowser:S,isMix:D,isNode:Z,TRUE_STR:h,FALSE_STR:p,ZONE_SYMBOL_PREFIX:f,ADD_EVENT_LISTENER_STR:a,REMOVE_EVENT_LISTENER_STR:c}))});const ke=_("zoneTask");function be(e,t,n,o){let r=null,s=null;n+=o;const i={};function a(t){const n=t.data;return n.args[0]=function(){try{t.invoke.apply(this,arguments)}finally{t.data&&t.data.isPeriodic||("number"==typeof n.handleId?delete i[n.handleId]:n.handleId&&(n.handleId[ke]=null))}},n.handleId=r.apply(e,n.args),t}function c(e){return s(e.data.handleId)}r=M(e,t+=o,n=>(function(r,s){if("function"==typeof s[0]){const e=g(t,s[0],{isPeriodic:"Interval"===o,delay:"Timeout"===o||"Interval"===o?s[1]||0:void 0,args:s},a,c);if(!e)return e;const n=e.data.handleId;return"number"==typeof n?i[n]=e:n&&(n[ke]=e),n&&n.ref&&n.unref&&"function"==typeof n.ref&&"function"==typeof n.unref&&(e.ref=n.ref.bind(n),e.unref=n.unref.bind(n)),"number"==typeof n||n?n:e}return n.apply(e,s)})),s=M(e,n,t=>(function(n,o){const r=o[0];let s;"number"==typeof r?s=i[r]:(s=r&&r[ke])||(s=r),s&&"string"==typeof s.type?"notScheduled"!==s.state&&(s.cancelFn&&s.data.isPeriodic||0===s.runCount)&&("number"==typeof r?delete i[r]:r&&(r[ke]=null),s.zone.cancelTask(s)):t.apply(e,o)}))}function ve(e,t){if(Zone[t.symbol("patchEventTarget")])return;const{eventNames:n,zoneSymbolEventNames:o,TRUE_STR:r,FALSE_STR:s,ZONE_SYMBOL_PREFIX:i}=t.getGlobalObjects();for(let c=0;c{const t=e[Zone.__symbol__("legacyPatch")];t&&t()}),Zone.__load_patch("timers",e=>{be(e,"set","clear","Timeout"),be(e,"set","clear","Interval"),be(e,"set","clear","Immediate")}),Zone.__load_patch("requestAnimationFrame",e=>{be(e,"request","cancel","AnimationFrame"),be(e,"mozRequest","mozCancel","AnimationFrame"),be(e,"webkitRequest","webkitCancel","AnimationFrame")}),Zone.__load_patch("blocking",(e,t)=>{const n=["alert","prompt","confirm"];for(let o=0;o(function(o,s){return t.current.run(n,e,s,r)}))}),Zone.__load_patch("EventTarget",(e,t,n)=>{!function(e,t){t.patchEventPrototype(e,t)}(e,n),ve(e,n);const o=e.XMLHttpRequestEventTarget;o&&o.prototype&&n.patchEventTarget(e,[o.prototype]),I("MutationObserver"),I("WebKitMutationObserver"),I("IntersectionObserver"),I("FileReader")}),Zone.__load_patch("on_property",(e,t,n)=>{ye(n,e),Object.defineProperty=function(e,t,n){if(oe(e,t))throw new TypeError("Cannot assign to read only property '"+t+"' of "+e);const o=n.configurable;return"prototype"!==t&&(n=re(e,t,n)),se(e,t,n,o)},Object.defineProperties=function(e,t){return Object.keys(t).forEach(function(n){Object.defineProperty(e,n,t[n])}),e},Object.create=function(e,t){return"object"!=typeof t||Object.isFrozen(t)||Object.keys(t).forEach(function(n){t[n]=re(e,n,t[n])}),ee(e,t)},Object.getOwnPropertyDescriptor=function(e,t){const n=Q(e,t);return n&&oe(e,t)&&(n.configurable=!1),n}}),Zone.__load_patch("customElements",(e,t,n)=>{!function(e,t){const{isBrowser:n,isMix:o}=t.getGlobalObjects();(n||o)&&e.customElements&&"customElements"in e&&t.patchCallbacks(t,e.customElements,"customElements","define",["connectedCallback","disconnectedCallback","adoptedCallback","attributeChangedCallback"])}(e,n)}),Zone.__load_patch("XHR",(e,t)=>{!function(c){const h=e.XMLHttpRequest;if(!h)return;const p=h.prototype;let f=p[l],d=p[u];if(!f){const t=e.XMLHttpRequestEventTarget;if(t){const e=t.prototype;f=e[l],d=e[u]}}const m="readystatechange",y="scheduled";function k(e){const t=e.data,o=t.target;o[s]=!1,o[a]=!1;const i=o[r];f||(f=o[l],d=o[u]),i&&d.call(o,m,i);const c=o[r]=(()=>{if(o.readyState===o.DONE)if(!t.aborted&&o[s]&&e.state===y){const n=o.__zone_symbol__loadfalse;if(n&&n.length>0){const r=e.invoke;e.invoke=function(){const n=o.__zone_symbol__loadfalse;for(let t=0;t(function(e,t){return e[o]=0==t[2],e[i]=t[1],T.apply(e,t)})),w=_("fetchTaskAborting"),E=_("fetchTaskScheduling"),Z=M(p,"send",()=>(function(e,n){if(!0===t.current[E])return Z.apply(e,n);if(e[o])return Z.apply(e,n);{const t={target:e,url:e[i],isPeriodic:!1,args:n,aborted:!1},o=g("XMLHttpRequest.send",b,t,k,v);e&&!0===e[a]&&!t.aborted&&o.state===y&&o.invoke()}})),S=M(p,"abort",()=>(function(e,o){const r=e[n];if(r&&"string"==typeof r.type){if(null==r.cancelFn||r.data&&r.data.aborted)return;r.zone.cancelTask(r)}else if(!0===t.current[w])return S.apply(e,o)}))}();const n=_("xhrTask"),o=_("xhrSync"),r=_("xhrListener"),s=_("xhrScheduled"),i=_("xhrURL"),a=_("xhrErrorBeforeScheduled")}),Zone.__load_patch("geolocation",e=>{e.navigator&&e.navigator.geolocation&&function(e,t){const o=e.constructor.name;for(let r=0;r{const t=function(){return e.apply(this,T(arguments,o+"."+s))};return L(t,e),t})(i)}}}(e.navigator.geolocation,["getCurrentPosition","watchPosition"])}),Zone.__load_patch("PromiseRejectionEvent",(e,t)=>{function n(t){return function(n){V(e,t).forEach(o=>{const r=e.PromiseRejectionEvent;if(r){const e=new r(t,{promise:n.promise,reason:n.rejection});o.invoke(e)}})}}e.PromiseRejectionEvent&&(t[_("unhandledPromiseRejectionHandler")]=n("unhandledrejection"),t[_("rejectionHandledHandler")]=n("rejectionhandled"))})}},[[1,0]]]);
\ No newline at end of file
diff --git a/docs/polyfills-es5.943113ac054b16d954ae.js b/docs/polyfills-es5.943113ac054b16d954ae.js
deleted file mode 100644
index 265fe12..0000000
--- a/docs/polyfills-es5.943113ac054b16d954ae.js
+++ /dev/null
@@ -1 +0,0 @@
-(window.webpackJsonp=window.webpackJsonp||[]).push([[2],{"+2oP":function(t,e,n){"use strict";var r=n("hh1v"),o=n("6LWA"),i=n("I8vh"),a=n("UMSQ"),c=n("/GqU"),u=n("hBjN"),s=n("tiKp")("species"),f=[].slice,l=Math.max,p=n("Hd5f")("slice");n("I+eb")({target:"Array",proto:!0,forced:!p},{slice:function(t,e){var n,p,h,v=c(this),d=a(v.length),g=i(t,d),y=i(void 0===e?d:e,d);if(o(v)&&("function"!=typeof(n=v.constructor)||n!==Array&&!o(n.prototype)?r(n)&&null===(n=n[s])&&(n=void 0):n=void 0,n===Array||void 0===n))return f.call(v,g,y);for(p=new(void 0===n?Array:n)(l(y-g,0)),h=0;g",this._properties=e&&e.properties||{},this._zoneDelegate=new u(this,this._parent&&this._parent._zoneDelegate,e)}return e.assertZonePatched=function(){if(t.Promise!==O.ZoneAwarePromise)throw new Error("Zone.js has detected that ZoneAwarePromise `(window|global).Promise` has been overwritten.\nMost likely cause is that a Promise polyfill has been loaded after Zone.js (Polyfilling Promise api is not necessary when zone.js is loaded. If you must load one, do so before loading zone.js.)")},Object.defineProperty(e,"root",{get:function(){for(var t=e.current;t.parent;)t=t.parent;return t},enumerable:!0,configurable:!0}),Object.defineProperty(e,"current",{get:function(){return M.zone},enumerable:!0,configurable:!0}),Object.defineProperty(e,"currentTask",{get:function(){return D},enumerable:!0,configurable:!0}),e.__load_patch=function(i,a){if(O.hasOwnProperty(i)){if(o)throw Error("Already loaded patch: "+i)}else if(!t["__Zone_disable_"+i]){var c="Zone:"+i;n(c),O[i]=a(t,e,I),r(c,c)}},Object.defineProperty(e.prototype,"parent",{get:function(){return this._parent},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"name",{get:function(){return this._name},enumerable:!0,configurable:!0}),e.prototype.get=function(t){var e=this.getZoneWith(t);if(e)return e._properties[t]},e.prototype.getZoneWith=function(t){for(var e=this;e;){if(e._properties.hasOwnProperty(t))return e;e=e._parent}return null},e.prototype.fork=function(t){if(!t)throw new Error("ZoneSpec required!");return this._zoneDelegate.fork(this,t)},e.prototype.wrap=function(t,e){if("function"!=typeof t)throw new Error("Expecting function got: "+t);var n=this._zoneDelegate.intercept(this,t,e),r=this;return function(){return r.runGuarded(n,this,arguments,e)}},e.prototype.run=function(t,e,n,r){M={parent:M,zone:this};try{return this._zoneDelegate.invoke(this,t,e,n,r)}finally{M=M.parent}},e.prototype.runGuarded=function(t,e,n,r){void 0===e&&(e=null),M={parent:M,zone:this};try{try{return this._zoneDelegate.invoke(this,t,e,n,r)}catch(o){if(this._zoneDelegate.handleError(this,o))throw o}}finally{M=M.parent}},e.prototype.runTask=function(t,e,n){if(t.zone!=this)throw new Error("A task can only be run in the zone of creation! (Creation: "+(t.zone||y).name+"; Execution: "+this.name+")");if(t.state!==b||t.type!==w&&t.type!==T){var r=t.state!=_;r&&t._transitionTo(_,k),t.runCount++;var o=D;D=t,M={parent:M,zone:this};try{t.type==T&&t.data&&!t.data.isPeriodic&&(t.cancelFn=void 0);try{return this._zoneDelegate.invokeTask(this,t,e,n)}catch(i){if(this._zoneDelegate.handleError(this,i))throw i}}finally{t.state!==b&&t.state!==S&&(t.type==w||t.data&&t.data.isPeriodic?r&&t._transitionTo(k,_):(t.runCount=0,this._updateTaskCount(t,-1),r&&t._transitionTo(b,_,b))),M=M.parent,D=o}}},e.prototype.scheduleTask=function(t){if(t.zone&&t.zone!==this)for(var e=this;e;){if(e===t.zone)throw Error("can not reschedule task to "+this.name+" which is descendants of the original zone "+t.zone.name);e=e.parent}t._transitionTo(m,b);var n=[];t._zoneDelegates=n,t._zone=this;try{t=this._zoneDelegate.scheduleTask(this,t)}catch(r){throw t._transitionTo(S,m,b),this._zoneDelegate.handleError(this,r),r}return t._zoneDelegates===n&&this._updateTaskCount(t,1),t.state==m&&t._transitionTo(k,m),t},e.prototype.scheduleMicroTask=function(t,e,n,r){return this.scheduleTask(new s(E,t,e,n,r,void 0))},e.prototype.scheduleMacroTask=function(t,e,n,r,o){return this.scheduleTask(new s(T,t,e,n,r,o))},e.prototype.scheduleEventTask=function(t,e,n,r,o){return this.scheduleTask(new s(w,t,e,n,r,o))},e.prototype.cancelTask=function(t){if(t.zone!=this)throw new Error("A task can only be cancelled in the zone of creation! (Creation: "+(t.zone||y).name+"; Execution: "+this.name+")");t._transitionTo(x,k,_);try{this._zoneDelegate.cancelTask(this,t)}catch(e){throw t._transitionTo(S,x),this._zoneDelegate.handleError(this,e),e}return this._updateTaskCount(t,-1),t._transitionTo(b,x),t.runCount=0,t},e.prototype._updateTaskCount=function(t,e){var n=t._zoneDelegates;-1==e&&(t._zoneDelegates=null);for(var r=0;r0,macroTask:n.macroTask>0,eventTask:n.eventTask>0,change:t})},t}(),s=function(){function e(n,r,o,i,a,c){this._zone=null,this.runCount=0,this._zoneDelegates=null,this._state="notScheduled",this.type=n,this.source=r,this.data=i,this.scheduleFn=a,this.cancelFn=c,this.callback=o;var u=this;this.invoke=n===w&&i&&i.useG?e.invokeTask:function(){return e.invokeTask.call(t,u,this,arguments)}}return e.invokeTask=function(t,e,n){t||(t=this),P++;try{return t.runCount++,t.zone.runTask(t,e,n)}finally{1==P&&g(),P--}},Object.defineProperty(e.prototype,"zone",{get:function(){return this._zone},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"state",{get:function(){return this._state},enumerable:!0,configurable:!0}),e.prototype.cancelScheduleRequest=function(){this._transitionTo(b,m)},e.prototype._transitionTo=function(t,e,n){if(this._state!==e&&this._state!==n)throw new Error(this.type+" '"+this.source+"': can not transition to '"+t+"', expecting state '"+e+"'"+(n?" or '"+n+"'":"")+", was '"+this._state+"'.");this._state=t,t==b&&(this._zoneDelegates=null)},e.prototype.toString=function(){return this.data&&void 0!==this.data.handleId?this.data.handleId.toString():Object.prototype.toString.call(this)},e.prototype.toJSON=function(){return{type:this.type,state:this.state,source:this.source,zone:this.zone.name,runCount:this.runCount}},e}(),f=R("setTimeout"),l=R("Promise"),p=R("then"),h=[],v=!1;function d(e){if(0===P&&0===h.length)if(i||t[l]&&(i=t[l].resolve(0)),i){var n=i[p];n||(n=i.then),n.call(i,g)}else t[f](g,0);e&&h.push(e)}function g(){if(!v){for(v=!0;h.length;){var t=h;h=[];for(var e=0;e=t.length&&(t=void 0),{value:t&&t[n++],done:!t}}}};Zone.__load_patch("ZoneAwarePromise",function(e,n,r){var o=Object.getOwnPropertyDescriptor,i=Object.defineProperty,a=r.symbol,c=[],u=a("Promise"),s=a("then"),f="__creationTrace__";r.onUnhandledError=function(t){if(r.showUncaughtError()){var e=t&&t.rejection;e?console.error("Unhandled Promise rejection:",e instanceof Error?e.message:e,"; Zone:",t.zone.name,"; Task:",t.task&&t.task.source,"; Value:",e,e instanceof Error?e.stack:void 0):console.error(t)}},r.microtaskDrainDone=function(){for(;c.length;)for(var t=function(){var t=c.shift();try{t.zone.runGuarded(function(){throw t})}catch(e){p(e)}};c.length;)t()};var l=a("unhandledPromiseRejectionHandler");function p(t){r.onUnhandledError(t);try{var e=n[l];e&&"function"==typeof e&&e.call(this,t)}catch(o){}}function h(t){return t&&t.then}function v(t){return t}function d(t){return A.reject(t)}var g=a("state"),y=a("value"),b=a("finally"),m=a("parentPromiseValue"),k=a("parentPromiseState"),_="Promise.then",x=null,S=!0,E=!1,T=0;function w(t,e){return function(n){try{D(t,e,n)}catch(r){D(t,!1,r)}}}var O=function(){var t=!1;return function(e){return function(){t||(t=!0,e.apply(null,arguments))}}},I="Promise resolved with itself",M=a("currentTaskTrace");function D(t,e,o){var a,u=O();if(t===o)throw new TypeError(I);if(t[g]===x){var s=null;try{"object"!=typeof o&&"function"!=typeof o||(s=o&&o.then)}catch(d){return u(function(){D(t,!1,d)})(),t}if(e!==E&&o instanceof A&&o.hasOwnProperty(g)&&o.hasOwnProperty(y)&&o[g]!==x)j(o),D(t,o[g],o[y]);else if(e!==E&&"function"==typeof s)try{s.call(o,u(w(t,e)),u(w(t,!1)))}catch(d){u(function(){D(t,!1,d)})()}else{t[g]=e;var l=t[y];if(t[y]=o,t[b]===b&&e===S&&(t[g]=t[k],t[y]=t[m]),e===E&&o instanceof Error){var p=n.currentTask&&n.currentTask.data&&n.currentTask.data[f];p&&i(o,M,{configurable:!0,enumerable:!1,writable:!0,value:p})}for(var h=0;h=0;n--)"function"==typeof t[n]&&(t[n]=h(t[n],e+"_"+n));return t}function x(t){return!t||!1!==t.writable&&!("function"==typeof t.get&&void 0===t.set)}var S="undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope,E=!("nw"in b)&&void 0!==b.process&&"[object process]"==={}.toString.call(b.process),T=!E&&!S&&!(!g||!y.HTMLElement),w=void 0!==b.process&&"[object process]"==={}.toString.call(b.process)&&!S&&!(!g||!y.HTMLElement),O={},I=function(t){if(t=t||b.event){var e=O[t.type];e||(e=O[t.type]=d("ON_PROPERTY"+t.type));var n,r=this||t.target||b,o=r[e];return T&&r===y&&"error"===t.type?!0===(n=o&&o.call(this,t.message,t.filename,t.lineno,t.colno,t.error))&&t.preventDefault():null==(n=o&&o.apply(this,arguments))||n||t.preventDefault(),n}};function M(t,r,o){var i=e(t,r);if(!i&&o&&e(o,r)&&(i={enumerable:!0,configurable:!0}),i&&i.configurable){var a=d("on"+r+"patched");if(!t.hasOwnProperty(a)||!t[a]){delete i.writable,delete i.value;var c=i.get,u=i.set,s=r.substr(2),f=O[s];f||(f=O[s]=d("ON_PROPERTY"+s)),i.set=function(e){var n=this;n||t!==b||(n=b),n&&(n[f]&&n.removeEventListener(s,I),u&&u.apply(n,k),"function"==typeof e?(n[f]=e,n.addEventListener(s,I,!1)):n[f]=null)},i.get=function(){var e=this;if(e||t!==b||(e=b),!e)return null;var n=e[f];if(n)return n;if(c){var o=c&&c.call(this);if(o)return i.set.call(this,o),"function"==typeof e[m]&&e.removeAttribute(r),o}return null},n(t,r,i),t[a]=!0}}}function D(t,e,n){if(e)for(var r=0;r=0&&"function"==typeof r[i.cbIdx]?v(i.name,r[i.cbIdx],i,o):t.apply(e,r)}})}function z(t,e){t[d("OriginalDelegate")]=e}var L=!1,F=!1;function Z(){try{var t=y.navigator.userAgent;if(-1!==t.indexOf("MSIE ")||-1!==t.indexOf("Trident/"))return!0}catch(e){}return!1}function C(){if(L)return F;L=!0;try{var t=y.navigator.userAgent;-1===t.indexOf("MSIE ")&&-1===t.indexOf("Trident/")&&-1===t.indexOf("Edge/")||(F=!0)}catch(e){}return F}Zone.__load_patch("toString",function(t){var e=Function.prototype.toString,n=d("OriginalDelegate"),r=d("Promise"),o=d("Error"),i=function(){if("function"==typeof this){var i=this[n];if(i)return"function"==typeof i?e.call(i):Object.prototype.toString.call(i);if(this===Promise){var a=t[r];if(a)return e.call(a)}if(this===Error){var c=t[o];if(c)return e.call(c)}}return e.call(this)};i[n]=e,Function.prototype.toString=i;var a=Object.prototype.toString;Object.prototype.toString=function(){return this instanceof Promise?"[object Promise]":a.call(this)}});var W=!1;if("undefined"!=typeof window)try{var U=Object.defineProperty({},"passive",{get:function(){W=!0}});window.addEventListener("test",U,U),window.removeEventListener("test",U,U)}catch(Tt){W=!1}var H={useG:!0},B={},G={},K=/^__zone_symbol__(\w+)(true|false)$/,V="__zone_symbol__propagationStopped";function X(t,e,n){var o=n&&n.add||a,i=n&&n.rm||c,u=n&&n.listeners||"eventListeners",s=n&&n.rmAll||"removeAllListeners",h=d(o),v="."+o+":",g="prependListener",y="."+g+":",b=function(t,e,n){if(!t.isRemoved){var r=t.callback;"object"==typeof r&&r.handleEvent&&(t.callback=function(t){return r.handleEvent(t)},t.originalDelegate=r),t.invoke(t,e,[n]);var o=t.options;o&&"object"==typeof o&&o.once&&e[i].call(e,n.type,t.originalDelegate?t.originalDelegate:t.callback,o)}},m=function(e){if(e=e||t.event){var n=this||e.target||t,r=n[B[e.type][l]];if(r)if(1===r.length)b(r[0],n,e);else for(var o=r.slice(),i=0;i1?new i(e,n):new i(e),s=t.ObjectGetOwnPropertyDescriptor(u,"onmessage");return s&&!1===s.configurable?(a=t.ObjectCreate(u),c=u,[r,o,"send","close"].forEach(function(e){a[e]=function(){var n=t.ArraySlice.call(arguments);if(e===r||e===o){var i=n.length>0?n[0]:void 0;if(i){var c=Zone.__symbol__("ON_PROPERTY"+i);u[c]=a[c]}}return u[e].apply(u,n)}})):a=u,t.patchOnProperties(a,["close","error","message","open"],c),a};var a=e.WebSocket;for(var c in i)a[c]=i[c]}(t,e),Zone[t.symbol("patchEvents")]=!0}}Zone.__load_patch("util",function(t,r,u){u.patchOnProperties=D,u.patchMethod=A,u.bindArguments=_,u.patchMacroTask=N;var s=r.__symbol__("BLACK_LISTED_EVENTS"),v=r.__symbol__("UNPATCHED_EVENTS");t[v]&&(t[s]=t[v]),t[s]&&(r[s]=r[v]=t[s]),u.patchEventPrototype=Y,u.patchEventTarget=X,u.isIEOrEdge=C,u.ObjectDefineProperty=n,u.ObjectGetOwnPropertyDescriptor=e,u.ObjectCreate=o,u.ArraySlice=i,u.patchClass=j,u.wrapWithCurrentZone=h,u.filterProperties=yt,u.attachOriginToPatched=z,u._redefineProperty=rt,u.patchCallbacks=Q,u.getGlobalObjects=function(){return{globalSources:G,zoneSymbolEventNames:B,eventNames:gt,isBrowser:T,isMix:w,isNode:E,TRUE_STR:f,FALSE_STR:l,ZONE_SYMBOL_PREFIX:p,ADD_EVENT_LISTENER_STR:a,REMOVE_EVENT_LISTENER_STR:c}}}),function(t){t.__zone_symbol__legacyPatch=function(){var e=t.Zone;e.__load_patch("registerElement",function(t,e,n){!function(t,e){var n=e.getGlobalObjects();(n.isBrowser||n.isMix)&&"registerElement"in t.document&&e.patchCallbacks(e,document,"Document","registerElement",["createdCallback","attachedCallback","detachedCallback","attributeChangedCallback"])}(t,n)}),e.__load_patch("EventTargetLegacy",function(t,e,n){kt(t,n),_t(n,t)})}}("undefined"!=typeof window&&window||"undefined"!=typeof self&&self||global);var xt=d("zoneTask");function St(t,e,n,r){var o=null,i=null;n+=r;var a={};function c(e){var n=e.data;return n.args[0]=function(){try{e.invoke.apply(this,arguments)}finally{e.data&&e.data.isPeriodic||("number"==typeof n.handleId?delete a[n.handleId]:n.handleId&&(n.handleId[xt]=null))}},n.handleId=o.apply(t,n.args),e}function u(t){return i(t.data.handleId)}o=A(t,e+=r,function(n){return function(o,i){if("function"==typeof i[0]){var s=v(e,i[0],{isPeriodic:"Interval"===r,delay:"Timeout"===r||"Interval"===r?i[1]||0:void 0,args:i},c,u);if(!s)return s;var f=s.data.handleId;return"number"==typeof f?a[f]=s:f&&(f[xt]=s),f&&f.ref&&f.unref&&"function"==typeof f.ref&&"function"==typeof f.unref&&(s.ref=f.ref.bind(f),s.unref=f.unref.bind(f)),"number"==typeof f||f?f:s}return n.apply(t,i)}}),i=A(t,n,function(e){return function(n,r){var o,i=r[0];"number"==typeof i?o=a[i]:(o=i&&i[xt])||(o=i),o&&"string"==typeof o.type?"notScheduled"!==o.state&&(o.cancelFn&&o.data.isPeriodic||0===o.runCount)&&("number"==typeof i?delete a[i]:i&&(i[xt]=null),o.zone.cancelTask(o)):e.apply(t,r)}})}function Et(t,e){if(!Zone[e.symbol("patchEventTarget")]){for(var n=e.getGlobalObjects(),r=n.eventNames,o=n.zoneSymbolEventNames,i=n.TRUE_STR,a=n.FALSE_STR,c=n.ZONE_SYMBOL_PREFIX,u=0;u0){var o=t.invoke;t.invoke=function(){for(var n=r.__zone_symbol__loadfalse,i=0;i")}),f=!i(function(){var t=/(?:)/,e=t.exec;t.exec=function(){return e.apply(this,arguments)};var n="ab".split(t);return 2!==n.length||"a"!==n[0]||"b"!==n[1]});t.exports=function(t,e,n,l){var p=a(t),h=!i(function(){var e={};return e[p]=function(){return 7},7!=""[t](e)}),v=h&&!i(function(){var e=!1,n=/a/;return n.exec=function(){return e=!0,null},"split"===t&&(n.constructor={},n.constructor[u]=function(){return n}),n[p](""),!e});if(!h||!v||"replace"===t&&!s||"split"===t&&!f){var d=/./[p],g=n(p,""[t],function(t,e,n,r,o){return e.exec===c?h&&!o?{done:!0,value:d.call(e,n,r)}:{done:!0,value:t.call(n,e,r)}:{done:!1}}),y=g[1];o(String.prototype,t,g[0]),o(RegExp.prototype,p,2==e?function(t,e){return y.call(t,this,e)}:function(t){return y.call(t,this)}),l&&r(RegExp.prototype[p],"sham",!0)}}},"1E5z":function(t,e,n){var r=n("m/L8").f,o=n("UTVS"),i=n("tiKp")("toStringTag");t.exports=function(t,e,n){t&&!o(t=n?t:t.prototype,i)&&r(t,i,{configurable:!0,value:e})}},"1Y/n":function(t,e,n){var r=n("HAuM"),o=n("ewvW"),i=n("RK3t"),a=n("UMSQ");t.exports=function(t,e,n,c,u){r(e);var s=o(t),f=i(s),l=a(s.length),p=u?l-1:0,h=u?-1:1;if(n<2)for(;;){if(p in f){c=f[p],p+=h;break}if(p+=h,u?p<0:l<=p)throw TypeError("Reduce of empty array with no initial value")}for(;u?p>=0:l>p;p+=h)p in f&&(c=e(c,f[p],p,s));return c}},"2A+d":function(t,e,n){var r=n("/GqU"),o=n("UMSQ");n("I+eb")({target:"String",stat:!0},{raw:function(t){for(var e=r(t.raw),n=o(e.length),i=arguments.length,a=[],c=0;n>c;)a.push(String(e[c++])),c=e.length?(t.target=void 0,{value:void 0,done:!0}):"keys"==n?{value:r,done:!1}:"values"==n?{value:e[r],done:!1}:{value:[r,e[r]],done:!1}},"values"),i.Arguments=i.Array,o("keys"),o("values"),o("entries")},"4oU/":function(t,e,n){var r=n("2oRo").isFinite;t.exports=Number.isFinite||function(t){return"number"==typeof t&&r(t)}},"4syw":function(t,e,n){var r=n("busE");t.exports=function(t,e,n){for(var o in e)r(t,o,e[o],n);return t}},"5D5o":function(t,e,n){var r=n("hh1v"),o=Object.isSealed,i=n("0Dky")(function(){o(1)});n("I+eb")({target:"Object",stat:!0,forced:i},{isSealed:function(t){return!r(t)||!!o&&o(t)}})},"5DmW":function(t,e,n){var r=n("/GqU"),o=n("Bs8V").f,i=n("g6v/"),a=n("0Dky")(function(){o(1)}),c=!i||a;n("I+eb")({target:"Object",stat:!0,forced:c,sham:!i},{getOwnPropertyDescriptor:function(t,e){return o(r(t),e)}})},"5YOQ":function(t,e,n){var r=n("2oRo").parseInt,o=n("WKiH"),i=n("WJkJ"),a=/^[-+]?0[xX]/,c=8!==r(i+"08")||22!==r(i+"0x16");t.exports=c?function(t,e){var n=o(String(t),3);return r(n,e>>>0||(a.test(n)?16:10))}:r},"5Yz+":function(t,e,n){"use strict";var r=n("/GqU"),o=n("ppGB"),i=n("UMSQ"),a=[].lastIndexOf,c=!!a&&1/[1].lastIndexOf(1,-0)<0,u=n("swFL")("lastIndexOf");t.exports=c||u?function(t){if(c)return a.apply(this,arguments)||0;var e=r(this),n=i(e.length),u=n-1;for(arguments.length>1&&(u=Math.min(u,o(arguments[1]))),u<0&&(u=n+u);u>=0;u--)if(u in e&&e[u]===t)return u||0;return-1}:a},"5dW1":function(t,e,n){var r=n("ppGB"),o=n("HYAF");t.exports=function(t,e,n){var i,a,c=String(o(t)),u=r(e),s=c.length;return u<0||u>=s?n?"":void 0:(i=c.charCodeAt(u))<55296||i>56319||u+1===s||(a=c.charCodeAt(u+1))<56320||a>57343?n?c.charAt(u):i:n?c.slice(u,u+2):a-56320+(i-55296<<10)+65536}},"5mdu":function(t,e){t.exports=function(t){try{return{error:!1,value:t()}}catch(e){return{error:!0,value:e}}}},"5s+n":function(t,e,n){"use strict";var r,o,i,a=n("xDBR"),c=n("2oRo"),u=n("I+eb"),s=n("hh1v"),f=n("HAuM"),l=n("GarU"),p=n("xrYK"),h=n("ImZN"),v=n("HH4o"),d=n("SEBh"),g=n("LPSS").set,y=n("tXUg"),b=n("zfnd"),m=n("RN6c"),k=n("8GlL"),_=n("5mdu"),x=n("s5pE"),S=n("tiKp")("species"),E=n("afO8"),T=n("lMq5"),w=E.get,O=E.set,I=E.getterFor("Promise"),M=c.Promise,D=c.TypeError,P=c.document,j=c.process,R=c.fetch,A=j&&j.versions,N=A&&A.v8||"",z=k.f,L=z,F="process"==p(j),Z=!!(P&&P.createEvent&&c.dispatchEvent),C=T("Promise",function(){var t=M.resolve(1),e=function(){},n=(t.constructor={})[S]=function(t){t(e,e)};return!((F||"function"==typeof PromiseRejectionEvent)&&(!a||t.finally)&&t.then(e)instanceof n&&0!==N.indexOf("6.6")&&-1===x.indexOf("Chrome/66"))}),W=C||!v(function(t){M.all(t).catch(function(){})}),U=function(t){var e;return!(!s(t)||"function"!=typeof(e=t.then))&&e},H=function(t,e,n){if(!e.notified){e.notified=!0;var r=e.reactions;y(function(){for(var o=e.value,i=1==e.state,a=0,c=function(n){var r,a,c,u=i?n.ok:n.fail,s=n.resolve,f=n.reject,l=n.domain;try{u?(i||(2===e.rejection&&V(t,e),e.rejection=1),!0===u?r=o:(l&&l.enter(),r=u(o),l&&(l.exit(),c=!0)),r===n.promise?f(D("Promise-chain cycle")):(a=U(r))?a.call(r,s,f):s(r)):f(o)}catch(p){l&&!c&&l.exit(),f(p)}};r.length>a;)c(r[a++]);e.reactions=[],e.notified=!1,n&&!e.rejection&&G(t,e)})}},B=function(t,e,n){var r,o;Z?((r=P.createEvent("Event")).promise=e,r.reason=n,r.initEvent(t,!1,!0),c.dispatchEvent(r)):r={promise:e,reason:n},(o=c["on"+t])?o(r):"unhandledrejection"===t&&m("Unhandled promise rejection",n)},G=function(t,e){g.call(c,function(){var n,r=e.value;if(K(e)&&(n=_(function(){F?j.emit("unhandledRejection",r,t):B("unhandledrejection",t,r)}),e.rejection=F||K(e)?2:1,n.error))throw n.value})},K=function(t){return 1!==t.rejection&&!t.parent},V=function(t,e){g.call(c,function(){F?j.emit("rejectionHandled",t):B("rejectionhandled",t,e.value)})},X=function(t,e,n,r){return function(o){t(e,n,o,r)}},q=function(t,e,n,r){e.done||(e.done=!0,r&&(e=r),e.value=n,e.state=2,H(t,e,!0))},Y=function(t,e,n,r){if(!e.done){e.done=!0,r&&(e=r);try{if(t===n)throw D("Promise can't be resolved itself");var o=U(n);o?y(function(){var r={done:!1};try{o.call(n,X(Y,t,r,e),X(q,t,r,e))}catch(i){q(t,r,i,e)}}):(e.value=n,e.state=1,H(t,e,!1))}catch(i){q(t,{done:!1},i,e)}}};C&&(M=function(t){l(this,M,"Promise"),f(t),r.call(this);var e=w(this);try{t(X(Y,this,e),X(q,this,e))}catch(n){q(this,e,n)}},(r=function(t){O(this,{type:"Promise",done:!1,notified:!1,parent:!1,reactions:[],rejection:!1,state:0,value:void 0})}).prototype=n("4syw")(M.prototype,{then:function(t,e){var n=I(this),r=z(d(this,M));return r.ok="function"!=typeof t||t,r.fail="function"==typeof e&&e,r.domain=F?j.domain:void 0,n.parent=!0,n.reactions.push(r),0!=n.state&&H(this,n,!1),r.promise},catch:function(t){return this.then(void 0,t)}}),o=function(){var t=new r,e=w(t);this.promise=t,this.resolve=X(Y,t,e),this.reject=X(q,t,e)},k.f=z=function(t){return t===M||t===i?new o(t):L(t)},a||"function"!=typeof R||u({global:!0,enumerable:!0,forced:!0},{fetch:function(t){return b(M,R.apply(c,arguments))}})),u({global:!0,wrap:!0,forced:C},{Promise:M}),n("1E5z")(M,"Promise",!1,!0),n("JiZb")("Promise"),i=n("Qo9l").Promise,u({target:"Promise",stat:!0,forced:C},{reject:function(t){var e=z(this);return e.reject.call(void 0,t),e.promise}}),u({target:"Promise",stat:!0,forced:a||C},{resolve:function(t){return b(a&&this===i?M:this,t)}}),u({target:"Promise",stat:!0,forced:W},{all:function(t){var e=this,n=z(e),r=n.resolve,o=n.reject,i=_(function(){var n=[],i=0,a=1;h(t,function(t){var c=i++,u=!1;n.push(void 0),a++,e.resolve(t).then(function(t){u||(u=!0,n[c]=t,--a||r(n))},o)}),--a||r(n)});return i.error&&o(i.value),n.promise},race:function(t){var e=this,n=z(e),r=n.reject,o=_(function(){h(t,function(t){e.resolve(t).then(n.resolve,r)})});return o.error&&r(o.value),n.promise}})},"5uH8":function(t,e,n){n("I+eb")({target:"Number",stat:!0},{MIN_SAFE_INTEGER:-9007199254740991})},"6JNq":function(t,e,n){var r=n("UTVS"),o=n("Vu81"),i=n("Bs8V"),a=n("m/L8");t.exports=function(t,e){for(var n=o(e),c=a.f,u=i.f,s=0;s3})}},"7+zs":function(t,e,n){var r=n("X2U+"),o=n("tiKp")("toPrimitive"),i=n("UesL"),a=Date.prototype;o in a||r(a,o,i)},"7sbD":function(t,e,n){n("qePV"),n("NbN+"),n("8AyJ"),n("i6QF"),n("kSko"),n("WDsR"),n("r/Vq"),n("5uH8"),n("w1rZ"),n("JevA"),n("toAj"),n("VC3L"),t.exports=n("Qo9l").Number},"8AyJ":function(t,e,n){n("I+eb")({target:"Number",stat:!0},{isFinite:n("4oU/")})},"8GlL":function(t,e,n){"use strict";var r=n("HAuM"),o=function(t){var e,n;this.promise=new t(function(t,r){if(void 0!==e||void 0!==n)throw TypeError("Bad Promise constructor");e=t,n=r}),this.resolve=r(e),this.reject=r(n)};t.exports.f=function(t){return new o(t)}},"8YOa":function(t,e,n){var r=n("kOOl")("meta"),o=n("uy83"),i=n("hh1v"),a=n("UTVS"),c=n("m/L8").f,u=0,s=Object.isExtensible||function(){return!0},f=function(t){c(t,r,{value:{objectID:"O"+ ++u,weakData:{}}})},l=t.exports={REQUIRED:!1,fastKey:function(t,e){if(!i(t))return"symbol"==typeof t?t:("string"==typeof t?"S":"P")+t;if(!a(t,r)){if(!s(t))return"F";if(!e)return"E";f(t)}return t[r].objectID},getWeakData:function(t,e){if(!a(t,r)){if(!s(t))return!0;if(!e)return!1;f(t)}return t[r].weakData},onFreeze:function(t){return o&&l.REQUIRED&&s(t)&&!a(t,r)&&f(t),t}};n("0BK2")[r]=!0},"90hW":function(t,e){t.exports=Math.sign||function(t){return 0==(t=+t)||t!=t?t:t<0?-1:1}},"93I0":function(t,e,n){var r=n("VpIT")("keys"),o=n("kOOl");t.exports=function(t){return r[t]||(r[t]=o(t))}},"9LPj":function(t,e,n){"use strict";var r=n("ewvW"),o=n("wE6v"),i=n("0Dky")(function(){return null!==new Date(NaN).toJSON()||1!==Date.prototype.toJSON.call({toISOString:function(){return 1}})});n("I+eb")({target:"Date",proto:!0,forced:i},{toJSON:function(t){var e=r(this),n=o(e);return"number"!=typeof n||isFinite(n)?e.toISOString():null}})},"9N29":function(t,e,n){"use strict";var r=n("1Y/n"),o=n("swFL")("reduceRight");n("I+eb")({target:"Array",proto:!0,forced:o},{reduceRight:function(t){return r(this,t,arguments.length,arguments[1],!0)}})},"9bJ7":function(t,e,n){"use strict";var r=n("5dW1");n("I+eb")({target:"String",proto:!0},{codePointAt:function(t){return r(this,t)}})},"9d/t":function(t,e,n){var r=n("xrYK"),o=n("tiKp")("toStringTag"),i="Arguments"==r(function(){return arguments}());t.exports=function(t){var e,n,a;return void 0===t?"Undefined":null===t?"Null":"string"==typeof(n=function(t,e){try{return t[e]}catch(n){}}(e=Object(t),o))?n:i?r(e):"Object"==(a=r(e))&&"function"==typeof e.callee?"Arguments":a}},"9mRW":function(t,e,n){n("I+eb")({target:"Math",stat:!0},{fround:n("vo4V")})},"9tb/":function(t,e,n){var r=n("I8vh"),o=String.fromCharCode,i=String.fromCodePoint,a=!!i&&1!=i.length;n("I+eb")({target:"String",stat:!0,forced:a},{fromCodePoint:function(t){for(var e,n=[],i=arguments.length,a=0;i>a;){if(e=+arguments[a++],r(e,1114111)!==e)throw RangeError(e+" is not a valid code point");n.push(e<65536?o(e):o(55296+((e-=65536)>>10),e%1024+56320))}return n.join("")}})},AmFO:function(t,e,n){var r=n("jrUv"),o=Math.abs,i=Math.exp,a=Math.E,c=n("0Dky")(function(){return-2e-17!=Math.sinh(-2e-17)});n("I+eb")({target:"Math",stat:!0,forced:c},{sinh:function(t){return o(t=+t)<1?(r(t)-r(-t))/2:(i(t-1)-i(-t-1))*(a/2)}})},Anvj:function(t,e,n){var r=n("33Wh"),o=n("dBg+"),i=n("0eef");t.exports=function(t){var e=r(t),n=o.f;if(n)for(var a,c=n(t),u=i.f,s=0;c.length>s;)u.call(t,a=c[s++])&&e.push(a);return e}},BNMt:function(t,e,n){"use strict";var r=n("hXpO"),o=n("6unK")("blink");n("I+eb")({target:"String",proto:!0,forced:o},{blink:function(){return r(this,"blink","","")}})},BTho:function(t,e,n){"use strict";var r=n("HAuM"),o=n("hh1v"),i=[].slice,a={};t.exports=Function.bind||function(t){var e=r(this),n=i.call(arguments,1),c=function(){var r=n.concat(i.call(arguments));return this instanceof c?function(t,e,n){if(!(e in a)){for(var r=[],o=0;o0?arguments[0]:void 0)}},v=t.exports=n("bWFh")("WeakMap",h,c,!0,!0);if(f&&l){r=c.getConstructor(h,"WeakMap",!0),a.REQUIRED=!0;var d=v.prototype,g=d.delete,y=d.has,b=d.get,m=d.set;i(d,{delete:function(t){if(u(t)&&!p(t)){var e=s(this);return e.frozen||(e.frozen=new r),g.call(this,t)||e.frozen.delete(t)}return g.call(this,t)},has:function(t){if(u(t)&&!p(t)){var e=s(this);return e.frozen||(e.frozen=new r),y.call(this,t)||e.frozen.has(t)}return y.call(this,t)},get:function(t){if(u(t)&&!p(t)){var e=s(this);return e.frozen||(e.frozen=new r),y.call(this,t)?b.call(this,t):e.frozen.get(t)}return b.call(this,t)},set:function(t,e){if(u(t)&&!p(t)){var n=s(this);n.frozen||(n.frozen=new r),y.call(this,t)?m.call(this,t,e):n.frozen.set(t,e)}else m.call(this,t,e);return this}})}},EUja:function(t,e,n){"use strict";var r=n("ppGB"),o=n("HYAF");t.exports="".repeat||function(t){var e=String(o(this)),n="",i=r(t);if(i<0||i==1/0)throw RangeError("Wrong number of repetitions");for(;i>0;(i>>>=1)&&(e+=e))1&i&&(n+=e);return n}},EnZy:function(t,e,n){"use strict";var r=n("ROdP"),o=n("glrk"),i=n("HYAF"),a=n("SEBh"),c=n("iqWW"),u=n("UMSQ"),s=n("FMNM"),f=n("kmMV"),l=n("0Dky"),p=[].push,h=Math.min,v=!l(function(){return!RegExp(4294967295,"y")});n("14Sl")("split",2,function(t,e,n){var l;return l="c"=="abbc".split(/(b)*/)[1]||4!="test".split(/(?:)/,-1).length||2!="ab".split(/(?:ab)*/).length||4!=".".split(/(.?)(.?)/).length||".".split(/()()/).length>1||"".split(/.?/).length?function(t,n){var o=String(i(this)),a=void 0===n?4294967295:n>>>0;if(0===a)return[];if(void 0===t)return[o];if(!r(t))return e.call(o,t,a);for(var c,u,s,l=[],h=0,v=new RegExp(t.source,(t.ignoreCase?"i":"")+(t.multiline?"m":"")+(t.unicode?"u":"")+(t.sticky?"y":"")+"g");(c=f.call(v,o))&&!((u=v.lastIndex)>h&&(l.push(o.slice(h,c.index)),c.length>1&&c.index=a));)v.lastIndex===c.index&&v.lastIndex++;return h===o.length?!s&&v.test("")||l.push(""):l.push(o.slice(h)),l.length>a?l.slice(0,a):l}:"0".split(void 0,0).length?function(t,n){return void 0===t&&0===n?[]:e.call(this,t,n)}:e,[function(e,n){var r=i(this),o=null==e?void 0:e[t];return void 0!==o?o.call(e,r,n):l.call(String(r),e,n)},function(t,r){var i=n(l,t,this,r,l!==e);if(i.done)return i.value;var f=o(t),p=String(this),d=a(f,RegExp),g=f.unicode,y=new d(v?f:"^(?:"+f.source+")",(f.ignoreCase?"i":"")+(f.multiline?"m":"")+(f.unicode?"u":"")+(v?"y":"g")),b=void 0===r?4294967295:r>>>0;if(0===b)return[];if(0===p.length)return null===s(y,p)?[p]:[];for(var m=0,k=0,_=[];k2?arguments[2]:void 0,f=Math.min((void 0===s?a:o(s,a))-u,a-c),l=1;for(u0;)u in n?n[c]=n[u]:delete n[c],c+=l,u+=l;return n}},FMNM:function(t,e,n){var r=n("xrYK"),o=n("kmMV");t.exports=function(t,e){var n=t.exec;if("function"==typeof n){var i=n.call(t,e);if("object"!=typeof i)throw TypeError("RegExp exec method returned something other than an Object or null");return i}if("RegExp"!==r(t))throw TypeError("RegExp#exec called on incompatible receiver");return o.call(t,e)}},"G+Rx":function(t,e,n){var r=n("2oRo").document;t.exports=r&&r.documentElement},GKVU:function(t,e,n){"use strict";var r=n("hXpO"),o=n("6unK")("anchor");n("I+eb")({target:"String",proto:!0,forced:o},{anchor:function(t){return r(this,"a","name",t)}})},GRPF:function(t,e,n){"use strict";var r=n("hXpO"),o=n("6unK")("fontsize");n("I+eb")({target:"String",proto:!0,forced:o},{fontsize:function(t){return r(this,"font","size",t)}})},GarU:function(t,e){t.exports=function(t,e,n){if(!(t instanceof e))throw TypeError("Incorrect "+(n?n+" ":"")+"invocation");return t}},HAuM:function(t,e){t.exports=function(t){if("function"!=typeof t)throw TypeError(String(t)+" is not a function");return t}},HH4o:function(t,e,n){var r=n("tiKp")("iterator"),o=!1;try{var i=0,a={next:function(){return{done:!!i++}},return:function(){o=!0}};a[r]=function(){return this},Array.from(a,function(){throw 2})}catch(c){}t.exports=function(t,e){if(!e&&!o)return!1;var n=!1;try{var i={};i[r]=function(){return{next:function(){return{done:n=!0}}}},t(i)}catch(c){}return n}},HRxU:function(t,e,n){var r=n("g6v/");n("I+eb")({target:"Object",stat:!0,forced:!r,sham:!r},{defineProperties:n("N+g0")})},HYAF:function(t,e){t.exports=function(t){if(null==t)throw TypeError("Can't call method on "+t);return t}},Hd5f:function(t,e,n){var r=n("0Dky"),o=n("tiKp")("species");t.exports=function(t){return!r(function(){var e=[];return(e.constructor={})[o]=function(){return{foo:1}},1!==e[t](Boolean).foo})}},HsHA:function(t,e){t.exports=Math.log1p||function(t){return(t=+t)>-1e-8&&t<1e-8?t-t*t/2:Math.log(1+t)}},"I+eb":function(t,e,n){var r=n("2oRo"),o=n("Bs8V").f,i=n("X2U+"),a=n("busE"),c=n("zk60"),u=n("6JNq"),s=n("lMq5");t.exports=function(t,e){var n,f,l,p,h,v=t.target,d=t.global,g=t.stat;if(n=d?r:g?r[v]||c(v,{}):(r[v]||{}).prototype)for(f in e){if(p=e[f],l=t.noTargetGet?(h=o(n,f))&&h.value:n[f],!s(d?f:v+(g?".":"#")+f,t.forced)&&void 0!==l){if(typeof p==typeof l)continue;u(p,l)}(t.sham||l&&l.sham)&&i(p,"sham",!0),a(n,f,p,t)}}},I8vh:function(t,e,n){var r=n("ppGB"),o=Math.max,i=Math.min;t.exports=function(t,e){var n=r(t);return n<0?o(n+e,0):i(n,e)}},I9xj:function(t,e,n){n("1E5z")(Math,"Math",!0)},ImZN:function(t,e,n){var r=n("glrk"),o=n("6VoE"),i=n("UMSQ"),a=n("+MLx"),c=n("NaFW"),u=n("m92n"),s={};(t.exports=function(t,e,n,f,l){var p,h,v,d,g,y=a(e,n,f?2:1);if(l)p=t;else{if("function"!=typeof(h=c(t)))throw TypeError("Target is not iterable");if(o(h)){for(v=0,d=i(t.length);d>v;v++)if((f?y(r(g=t[v])[0],g[1]):y(t[v]))===s)return s;return}p=h.call(t)}for(;!(g=p.next()).done;)if(u(p,y,g.value,f)===s)return s}).BREAK=s},IxXR:function(t,e,n){"use strict";var r=n("hXpO"),o=n("6unK")("strike");n("I+eb")({target:"String",proto:!0,forced:o},{strike:function(){return r(this,"strike","","")}})},J30X:function(t,e,n){n("I+eb")({target:"Array",stat:!0},{isArray:n("6LWA")})},JBy8:function(t,e,n){var r=n("yoRg"),o=n("eDl+").concat("length","prototype");e.f=Object.getOwnPropertyNames||function(t){return r(t,o)}},JTJg:function(t,e,n){"use strict";var r=n("NA7A"),o=n("qxPZ")("includes");n("I+eb")({target:"String",proto:!0,forced:!o},{includes:function(t){return!!~r(this,t,"includes").indexOf(t,arguments.length>1?arguments[1]:void 0)}})},JevA:function(t,e,n){var r=n("5YOQ");n("I+eb")({target:"Number",stat:!0,forced:Number.parseInt!=r},{parseInt:r})},JfAA:function(t,e,n){"use strict";var r=n("glrk"),o=n("0Dky"),i=n("rW0t"),a=n("g6v/"),c=/./.toString;(o(function(){return"/a/b"!=c.call({source:"a",flags:"b"})})||"toString"!=c.name)&&n("busE")(RegExp.prototype,"toString",function(){var t=r(this);return"/".concat(t.source,"/","flags"in t?t.flags:!a&&t instanceof RegExp?i.call(t):void 0)},{unsafe:!0})},JiZb:function(t,e,n){"use strict";var r=n("0GbY"),o=n("m/L8"),i=n("g6v/"),a=n("tiKp")("species");t.exports=function(t){var e=r(t);i&&e&&!e[a]&&(0,o.f)(e,a,{configurable:!0,get:function(){return this}})}},Kv9l:function(t,e,n){n("TWNs"),n("JfAA"),n("rB9j"),n("U3f4"),n("Rm1S"),n("UxlC"),n("hByQ"),n("EnZy")},KvGi:function(t,e,n){n("I+eb")({target:"Math",stat:!0},{sign:n("90hW")})},Kxld:function(t,e,n){n("I+eb")({target:"Object",stat:!0},{is:n("Ep9I")})},LKBx:function(t,e,n){"use strict";var r=n("UMSQ"),o=n("NA7A"),i=n("qxPZ")("startsWith"),a="".startsWith;n("I+eb")({target:"String",proto:!0,forced:!i},{startsWith:function(t){var e=o(this,t,"startsWith"),n=r(Math.min(arguments.length>1?arguments[1]:void 0,e.length)),i=String(t);return a?a.call(e,i,n):e.slice(n,n+i.length)===i}})},LPSS:function(t,e,n){var r,o,i,a=n("2oRo"),c=n("xrYK"),u=n("+MLx"),s=n("G+Rx"),f=n("zBJ4"),l=a.setImmediate,p=a.clearImmediate,h=a.process,v=a.MessageChannel,d=a.Dispatch,g=0,y={},b=function(){var t=+this;if(y.hasOwnProperty(t)){var e=y[t];delete y[t],e()}},m=function(t){b.call(t.data)};l&&p||(l=function(t){for(var e=[],n=1;arguments.length>n;)e.push(arguments[n++]);return y[++g]=function(){("function"==typeof t?t:Function(t)).apply(void 0,e)},r(g),g},p=function(t){delete y[t]},"process"==c(h)?r=function(t){h.nextTick(u(b,t,1))}:d&&d.now?r=function(t){d.now(u(b,t,1))}:v?(i=(o=new v).port2,o.port1.onmessage=m,r=u(i.postMessage,i,1)):a.addEventListener&&"function"==typeof postMessage&&!a.importScripts?(r=function(t){a.postMessage(t+"","*")},a.addEventListener("message",m,!1)):r="onreadystatechange"in f("script")?function(t){s.appendChild(f("script")).onreadystatechange=function(){s.removeChild(this),b.call(t)}}:function(t){setTimeout(u(b,t,1),0)}),t.exports={set:l,clear:p}},LhpL:function(t,e,n){var r=n("hh1v"),o=n("glrk");t.exports=function(t,e){if(o(t),!r(e)&&null!==e)throw TypeError("Can't set "+String(e)+" as a prototype")}},"N+g0":function(t,e,n){var r=n("g6v/"),o=n("m/L8"),i=n("glrk"),a=n("33Wh");t.exports=r?Object.defineProperties:function(t,e){i(t);for(var n,r=a(e),c=r.length,u=0;c>u;)o.f(t,n=r[u++],e[n]);return t}},NA7A:function(t,e,n){var r=n("ROdP"),o=n("HYAF");t.exports=function(t,e,n){if(r(e))throw TypeError("String.prototype."+n+" doesn't accept regex");return String(o(t))}},NBAS:function(t,e,n){var r=n("ewvW"),o=n("4WOD"),i=n("4Xet"),a=n("0Dky")(function(){o(1)});n("I+eb")({target:"Object",stat:!0,forced:a,sham:!i},{getPrototypeOf:function(t){return o(r(t))}})},NaFW:function(t,e,n){var r=n("9d/t"),o=n("tiKp")("iterator"),i=n("P4y1");t.exports=function(t){if(null!=t)return t[o]||t["@@iterator"]||i[r(t)]}},"NbN+":function(t,e,n){n("I+eb")({target:"Number",stat:!0},{EPSILON:Math.pow(2,-52)})},OM9Z:function(t,e,n){n("I+eb")({target:"String",proto:!0},{repeat:n("EUja")})},P0SU:function(t,e,n){var r=n("+MLx"),o=n("RK3t"),i=n("ewvW"),a=n("UMSQ"),c=n("ZfDv");t.exports=function(t,e){var n=1==t,u=2==t,s=3==t,f=4==t,l=6==t,p=5==t||l,h=e||c;return function(e,c,v){for(var d,g,y=i(e),b=o(y),m=r(c,v,3),k=a(b.length),_=0,x=n?h(e,k):u?h(e,0):void 0;k>_;_++)if((p||_ in b)&&(g=m(d=b[_],_,y),t))if(n)x[_]=g;else if(g)switch(t){case 3:return!0;case 5:return d;case 6:return _;case 2:x.push(d)}else if(f)return!1;return l?-1:s||f?f:x}}},P4y1:function(t,e){t.exports={}},PKPk:function(t,e,n){"use strict";var r=n("5dW1"),o=n("afO8"),i=n("fdAy"),a=o.set,c=o.getterFor("String Iterator");i(String,"String",function(t){a(this,{type:"String Iterator",string:String(t),index:0})},function(){var t,e=c(this),n=e.string,o=e.index;return o>=n.length?{value:void 0,done:!0}:(t=r(n,o,!0),e.index+=t.length,{value:t,done:!1})})},PqOI:function(t,e,n){var r=n("90hW"),o=Math.abs,i=Math.pow;n("I+eb")({target:"Math",stat:!0},{cbrt:function(t){return r(t=+t)*i(o(t),1/3)}})},QFcT:function(t,e,n){var r=Math.abs,o=Math.sqrt;n("I+eb")({target:"Math",stat:!0},{hypot:function(t,e){for(var n,i,a=0,c=0,u=arguments.length,s=0;c0?(i=n/s)*i:n;return s===1/0?1/0:s*o(a)}})},QIpd:function(t,e,n){var r=n("xrYK");t.exports=function(t){if("number"!=typeof t&&"Number"!=r(t))throw TypeError("Incorrect invocation");return+t}},QNnp:function(t,e,n){var r=Math.floor,o=Math.log,i=Math.LOG2E;n("I+eb")({target:"Math",stat:!0},{clz32:function(t){return(t>>>=0)?31-r(o(t+.5)*i):32}})},QWBl:function(t,e,n){"use strict";var r=n("F8JR");n("I+eb")({target:"Array",proto:!0,forced:[].forEach!=r},{forEach:r})},Qo9l:function(t,e,n){t.exports=n("2oRo")},RK3t:function(t,e,n){var r=n("0Dky"),o=n("xrYK"),i="".split;t.exports=r(function(){return!Object("z").propertyIsEnumerable(0)})?function(t){return"String"==o(t)?i.call(t,""):Object(t)}:Object},RN6c:function(t,e,n){var r=n("2oRo");t.exports=function(t,e){var n=r.console;n&&n.error&&(1===arguments.length?n.error(t):n.error(t,e))}},RNIs:function(t,e,n){var r=n("tiKp")("unscopables"),o=n("fHMY"),i=n("X2U+"),a=Array.prototype;null==a[r]&&i(a,r,o(null)),t.exports=function(t){a[r][t]=!0}},ROdP:function(t,e,n){var r=n("hh1v"),o=n("xrYK"),i=n("tiKp")("match");t.exports=function(t){var e;return r(t)&&(void 0!==(e=t[i])?!!e:"RegExp"==o(t))}},Rfxz:function(t,e,n){"use strict";var r=n("P0SU")(3),o=n("swFL")("some");n("I+eb")({target:"Array",proto:!0,forced:o},{some:function(t){return r(this,t,arguments[1])}})},Rm1S:function(t,e,n){"use strict";var r=n("glrk"),o=n("UMSQ"),i=n("HYAF"),a=n("iqWW"),c=n("FMNM");n("14Sl")("match",1,function(t,e,n){return[function(e){var n=i(this),r=null==e?void 0:e[t];return void 0!==r?r.call(e,n):new RegExp(e)[t](String(n))},function(t){var i=n(e,t,this);if(i.done)return i.value;var u=r(t),s=String(this);if(!u.global)return c(u,s);var f=u.unicode;u.lastIndex=0;for(var l,p=[],h=0;null!==(l=c(u,s));){var v=String(l[0]);p[h]=v,""===v&&(u.lastIndex=a(s,o(u.lastIndex),f)),h++}return 0===h?null:p}]})},SEBh:function(t,e,n){var r=n("glrk"),o=n("HAuM"),i=n("tiKp")("species");t.exports=function(t,e){var n,a=r(t).constructor;return void 0===a||null==(n=r(a)[i])?e:o(n)}},STAE:function(t,e,n){t.exports=!n("0Dky")(function(){return!String(Symbol())})},SYor:function(t,e,n){"use strict";var r=n("WKiH"),o=n("4HCi")("trim");n("I+eb")({target:"String",proto:!0,forced:o},{trim:function(){return r(this,3)}})},TFPT:function(t,e,n){"use strict";var r=n("hXpO"),o=n("6unK")("sub");n("I+eb")({target:"String",proto:!0,forced:o},{sub:function(){return r(this,"sub","","")}})},TWNs:function(t,e,n){var r=n("g6v/"),o=n("tiKp")("match"),i=n("2oRo"),a=n("lMq5"),c=n("cVYH"),u=n("m/L8").f,s=n("JBy8").f,f=n("ROdP"),l=n("rW0t"),p=n("busE"),h=n("0Dky"),v=i.RegExp,d=v.prototype,g=/a/g,y=/a/g,b=new v(g)!==g;if(a("RegExp",r&&(!b||h(function(){return y[o]=!1,v(g)!=g||v(y)==y||"/a/i"!=v(g,"i")})))){for(var m=function(t,e){var n=this instanceof m,r=f(t),o=void 0===e;return!n&&r&&t.constructor===m&&o?t:c(b?new v(r&&!o?t.source:t,e):v((r=t instanceof m)?t.source:t,r&&o?l.call(t):e),n?this:d,m)},k=function(t){t in m||u(m,t,{configurable:!0,get:function(){return v[t]},set:function(e){v[t]=e}})},_=s(v),x=0;x<_.length;)k(_[x++]);d.constructor=m,m.prototype=d,p(i,"RegExp",m)}n("JiZb")("RegExp")},TWQb:function(t,e,n){var r=n("/GqU"),o=n("UMSQ"),i=n("I8vh");t.exports=function(t){return function(e,n,a){var c,u=r(e),s=o(u.length),f=i(a,s);if(t&&n!=n){for(;s>f;)if((c=u[f++])!=c)return!0}else for(;s>f;f++)if((t||f in u)&&u[f]===n)return t||f||0;return!t&&-1}}},TeQF:function(t,e,n){"use strict";var r=n("P0SU")(2),o=n("Hd5f")("filter");n("I+eb")({target:"Array",proto:!0,forced:!o},{filter:function(t){return r(this,t,arguments[1])}})},TfTi:function(t,e,n){"use strict";var r=n("+MLx"),o=n("ewvW"),i=n("m92n"),a=n("6VoE"),c=n("UMSQ"),u=n("hBjN"),s=n("NaFW");t.exports=function(t){var e,n,f,l,p=o(t),h="function"==typeof this?this:Array,v=arguments.length,d=v>1?arguments[1]:void 0,g=void 0!==d,y=0,b=s(p);if(g&&(d=r(d,v>2?arguments[2]:void 0,2)),null==b||h==Array&&a(b))for(n=new h(e=c(p.length));e>y;y++)u(n,y,g?d(p[y],y):p[y]);else for(l=b.call(p),n=new h;!(f=l.next()).done;y++)u(n,y,g?i(l,d,[f.value,y],!0):f.value);return n.length=y,n}},ToJy:function(t,e,n){"use strict";var r=n("HAuM"),o=n("ewvW"),i=n("0Dky"),a=[].sort,c=[1,2,3],u=i(function(){c.sort(void 0)}),s=i(function(){c.sort(null)}),f=n("swFL")("sort"),l=u||!s||f;n("I+eb")({target:"Array",proto:!0,forced:l},{sort:function(t){return void 0===t?a.call(o(this)):a.call(o(this),r(t))}})},Tskq:function(t,e,n){"use strict";t.exports=n("bWFh")("Map",function(t){return function(){return t(this,arguments.length>0?arguments[0]:void 0)}},n("ZWaQ"),!0)},U3f4:function(t,e,n){n("g6v/")&&"g"!=/./g.flags&&n("m/L8").f(RegExp.prototype,"flags",{configurable:!0,get:n("rW0t")})},UMSQ:function(t,e,n){var r=n("ppGB"),o=Math.min;t.exports=function(t){return t>0?o(r(t),9007199254740991):0}},UTVS:function(t,e){var n={}.hasOwnProperty;t.exports=function(t,e){return n.call(t,e)}},UesL:function(t,e,n){"use strict";var r=n("glrk"),o=n("wE6v");t.exports=function(t){if("string"!==t&&"number"!==t&&"default"!==t)throw TypeError("Incorrect hint");return o(r(this),"number"!==t)}},UxlC:function(t,e,n){"use strict";var r=n("glrk"),o=n("ewvW"),i=n("UMSQ"),a=n("ppGB"),c=n("HYAF"),u=n("iqWW"),s=n("FMNM"),f=Math.max,l=Math.min,p=Math.floor,h=/\$([$&`']|\d\d?|<[^>]*>)/g,v=/\$([$&`']|\d\d?)/g;n("14Sl")("replace",2,function(t,e,n){return[function(n,r){var o=c(this),i=null==n?void 0:n[t];return void 0!==i?i.call(n,o,r):e.call(String(o),n,r)},function(t,o){var c=n(e,t,this,o);if(c.done)return c.value;var p=r(t),h=String(this),v="function"==typeof o;v||(o=String(o));var g=p.global;if(g){var y=p.unicode;p.lastIndex=0}for(var b=[];;){var m=s(p,h);if(null===m)break;if(b.push(m),!g)break;""===String(m[0])&&(p.lastIndex=u(h,i(p.lastIndex),y))}for(var k,_="",x=0,S=0;S=x&&(_+=h.slice(x,T)+D,x=T+E.length)}return _+h.slice(x)}];function d(t,n,r,i,a,c){var u=r+t.length,s=i.length,f=v;return void 0!==a&&(a=o(a),f=h),e.call(c,f,function(e,o){var c;switch(o.charAt(0)){case"$":return"$";case"&":return t;case"`":return n.slice(0,r);case"'":return n.slice(u);case"<":c=a[o.slice(1,-1)];break;default:var f=+o;if(0===f)return e;if(f>s){var l=p(f/10);return 0===l?e:l<=s?void 0===i[l-1]?o.charAt(1):i[l-1]+o.charAt(1):e}c=i[f-1]}return void 0===c?"":c})}})},Uydy:function(t,e,n){var r=n("HsHA"),o=Math.acosh,i=Math.log,a=Math.sqrt,c=Math.LN2,u=!o||710!=Math.floor(o(Number.MAX_VALUE))||o(1/0)!=1/0;n("I+eb")({target:"Math",stat:!0,forced:u},{acosh:function(t){return(t=+t)<1?NaN:t>94906265.62425156?i(t)+c:r(t-1+a(t-1)*a(t+1))}})},VC3L:function(t,e,n){"use strict";var r=n("0Dky"),o=n("QIpd"),i=1..toPrecision;n("I+eb")({target:"Number",proto:!0,forced:r(function(){return"1"!==i.call(1,void 0)})||!r(function(){i.call({})})},{toPrecision:function(t){return void 0===t?i.call(o(this)):i.call(o(this),t)}})},VpIT:function(t,e,n){var r=n("2oRo"),o=n("zk60"),i=r["__core-js_shared__"]||o("__core-js_shared__",{});(t.exports=function(t,e){return i[t]||(i[t]=void 0!==e?e:{})})("versions",[]).push({version:"3.0.1",mode:n("xDBR")?"pure":"global",copyright:"\xa9 2019 Denis Pushkarev (zloirock.ru)"})},Vu81:function(t,e,n){var r=n("JBy8"),o=n("dBg+"),i=n("glrk"),a=n("2oRo").Reflect;t.exports=a&&a.ownKeys||function(t){var e=r.f(i(t)),n=o.f;return n?e.concat(n(t)):e}},WDsR:function(t,e,n){var r=n("Xol8"),o=Math.abs;n("I+eb")({target:"Number",stat:!0},{isSafeInteger:function(t){return r(t)&&o(t)<=9007199254740991}})},WJkJ:function(t,e){t.exports="\t\n\v\f\r \xa0\u1680\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200a\u202f\u205f\u3000\u2028\u2029\ufeff"},WKiH:function(t,e,n){var r=n("HYAF"),o="["+n("WJkJ")+"]",i=RegExp("^"+o+o+"*"),a=RegExp(o+o+"*$");t.exports=function(t,e){return t=String(r(t)),1&e&&(t=t.replace(i,"")),2&e&&(t=t.replace(a,"")),t}},"X2U+":function(t,e,n){var r=n("m/L8"),o=n("XGwC");t.exports=n("g6v/")?function(t,e,n){return r.f(t,e,o(1,n))}:function(t,e,n){return t[e]=n,t}},XGwC:function(t,e){t.exports=function(t,e){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:e}}},Xe3L:function(t,e,n){"use strict";var r=n("hBjN"),o=n("0Dky")(function(){function t(){}return!(Array.of.call(t)instanceof t)});n("I+eb")({target:"Array",stat:!0,forced:o},{of:function(){for(var t=0,e=arguments.length,n=new("function"==typeof this?this:Array)(e);e>t;)r(n,t,arguments[t++]);return n.length=e,n}})},Xol8:function(t,e,n){var r=n("hh1v"),o=Math.floor;t.exports=function(t){return!r(t)&&isFinite(t)&&o(t)===t}},YGK4:function(t,e,n){"use strict";t.exports=n("bWFh")("Set",function(t){return function(){return t(this,arguments.length>0?arguments[0]:void 0)}},n("ZWaQ"))},YNrV:function(t,e,n){"use strict";var r=n("33Wh"),o=n("dBg+"),i=n("0eef"),a=n("ewvW"),c=n("RK3t"),u=Object.assign;t.exports=!u||n("0Dky")(function(){var t={},e={},n=Symbol();return t[n]=7,"abcdefghijklmnopqrst".split("").forEach(function(t){e[t]=t}),7!=u({},t)[n]||"abcdefghijklmnopqrst"!=r(u({},e)).join("")})?function(t,e){for(var n=a(t),u=arguments.length,s=1,f=o.f,l=i.f;u>s;)for(var p,h=c(arguments[s++]),v=f?r(h).concat(f(h)):r(h),d=v.length,g=0;d>g;)l.call(h,p=v[g++])&&(n[p]=h[p]);return n}:u},ZOXb:function(t,e,n){"use strict";var r=n("0Dky"),o=Date.prototype,i=o.getTime,a=o.toISOString,c=function(t){return t>9?t:"0"+t};t.exports=r(function(){return"0385-07-25T07:06:39.999Z"!=a.call(new Date(-5e13-1))})||!r(function(){a.call(new Date(NaN))})?function(){if(!isFinite(i.call(this)))throw RangeError("Invalid time value");var t=this.getUTCFullYear(),e=this.getUTCMilliseconds(),n=t<0?"-":t>9999?"+":"";return n+("00000"+Math.abs(t)).slice(n?-6:-4)+"-"+c(this.getUTCMonth()+1)+"-"+c(this.getUTCDate())+"T"+c(this.getUTCHours())+":"+c(this.getUTCMinutes())+":"+c(this.getUTCSeconds())+"."+(e>99?e:"0"+c(e))+"Z"}:a},ZWaQ:function(t,e,n){"use strict";var r=n("m/L8").f,o=n("fHMY"),i=n("4syw"),a=n("+MLx"),c=n("GarU"),u=n("ImZN"),s=n("fdAy"),f=n("JiZb"),l=n("g6v/"),p=n("8YOa").fastKey,h=n("afO8"),v=h.set,d=h.getterFor;t.exports={getConstructor:function(t,e,n,s){var f=t(function(t,r){c(t,f,e),v(t,{type:e,index:o(null),first:void 0,last:void 0,size:0}),l||(t.size=0),null!=r&&u(r,t[s],t,n)}),h=d(e),g=function(t,e,n){var r,o,i=h(t),a=y(t,e);return a?a.value=n:(i.last=a={index:o=p(e,!0),key:e,value:n,previous:r=i.last,next:void 0,removed:!1},i.first||(i.first=a),r&&(r.next=a),l?i.size++:t.size++,"F"!==o&&(i.index[o]=a)),t},y=function(t,e){var n,r=h(t),o=p(e);if("F"!==o)return r.index[o];for(n=r.first;n;n=n.next)if(n.key==e)return n};return i(f.prototype,{clear:function(){for(var t=h(this),e=t.index,n=t.first;n;)n.removed=!0,n.previous&&(n.previous=n.previous.next=void 0),delete e[n.index],n=n.next;t.first=t.last=void 0,l?t.size=0:this.size=0},delete:function(t){var e=h(this),n=y(this,t);if(n){var r=n.next,o=n.previous;delete e.index[n.index],n.removed=!0,o&&(o.next=r),r&&(r.previous=o),e.first==n&&(e.first=r),e.last==n&&(e.last=o),l?e.size--:this.size--}return!!n},forEach:function(t){for(var e,n=h(this),r=a(t,arguments.length>1?arguments[1]:void 0,3);e=e?e.next:n.first;)for(r(e.value,e.key,this);e&&e.removed;)e=e.previous},has:function(t){return!!y(this,t)}}),i(f.prototype,n?{get:function(t){var e=y(this,t);return e&&e.value},set:function(t,e){return g(this,0===t?0:t,e)}}:{add:function(t){return g(this,t=0===t?0:t,t)}}),l&&r(f.prototype,"size",{get:function(){return h(this).size}}),f},setStrong:function(t,e,n){var r=e+" Iterator",o=d(e),i=d(r);s(t,e,function(t,e){v(this,{type:r,target:t,state:o(t),kind:e,last:void 0})},function(){for(var t=i(this),e=t.kind,n=t.last;n&&n.removed;)n=n.previous;return t.target&&(t.last=n=n?n.next:t.state.first)?"keys"==e?{value:n.key,done:!1}:"values"==e?{value:n.value,done:!1}:{value:[n.key,n.value],done:!1}:(t.target=void 0,{value:void 0,done:!0})},n?"entries":"values",!n,!0),f(e)}}},ZfDv:function(t,e,n){var r=n("hh1v"),o=n("6LWA"),i=n("tiKp")("species");t.exports=function(t,e){var n;return o(t)&&("function"!=typeof(n=t.constructor)||n!==Array&&!o(n.prototype)?r(n)&&null===(n=n[i])&&(n=void 0):n=void 0),new(void 0===n?Array:n)(0===e?0:e)}},Zk8X:function(t,e,n){"use strict";var r=n("hXpO"),o=n("6unK")("sup");n("I+eb")({target:"String",proto:!0,forced:o},{sup:function(){return r(this,"sup","","")}})},a5NK:function(t,e,n){var r=Math.log,o=Math.LOG10E;n("I+eb")({target:"Math",stat:!0},{log10:function(t){return r(t)*o}})},afO8:function(t,e,n){var r,o,i,a=n("f5p1"),c=n("hh1v"),u=n("X2U+"),s=n("UTVS"),f=n("93I0"),l=n("0BK2"),p=n("2oRo").WeakMap;if(a){var h=new p,v=h.get,d=h.has,g=h.set;r=function(t,e){return g.call(h,t,e),e},o=function(t){return v.call(h,t)||{}},i=function(t){return d.call(h,t)}}else{var y=f("state");l[y]=!0,r=function(t,e){return u(t,y,e),e},o=function(t){return s(t,y)?t[y]:{}},i=function(t){return s(t,y)}}t.exports={set:r,get:o,has:i,enforce:function(t){return i(t)?o(t):r(t,{})},getterFor:function(t){return function(e){var n;if(!c(e)||(n=o(e)).type!==t)throw TypeError("Incompatible receiver, "+t+" required");return n}}}},"b+VT":function(t,e,n){var r=n("2oRo").parseFloat,o=n("WKiH"),i=n("WJkJ"),a=1/r(i+"-0")!=-1/0;t.exports=a?function(t){var e=o(String(t),3),n=r(e);return 0===n&&"-"==e.charAt(0)?-0:n}:r},bWFh:function(t,e,n){"use strict";var r=n("2oRo"),o=n("lMq5"),i=n("I+eb"),a=n("busE"),c=n("8YOa"),u=n("ImZN"),s=n("GarU"),f=n("hh1v"),l=n("0Dky"),p=n("HH4o"),h=n("1E5z"),v=n("cVYH");t.exports=function(t,e,n,d,g){var y=r[t],b=y&&y.prototype,m=y,k=d?"set":"add",_={},x=function(t){var e=b[t];a(b,t,"add"==t?function(t){return e.call(this,0===t?0:t),this}:"delete"==t?function(t){return!(g&&!f(t))&&e.call(this,0===t?0:t)}:"get"==t?function(t){return g&&!f(t)?void 0:e.call(this,0===t?0:t)}:"has"==t?function(t){return!(g&&!f(t))&&e.call(this,0===t?0:t)}:function(t,n){return e.call(this,0===t?0:t,n),this})};if(o(t,"function"!=typeof y||!(g||b.forEach&&!l(function(){(new y).entries().next()}))))m=n.getConstructor(e,t,d,k),c.REQUIRED=!0;else if(o(t,!0)){var S=new m,E=S[k](g?{}:-0,1)!=S,T=l(function(){S.has(1)}),w=p(function(t){new y(t)}),O=!g&&l(function(){for(var t=new y,e=5;e--;)t[k](e,e);return!t.has(-0)});w||((m=e(function(e,n){s(e,m,t);var r=v(new y,e,m);return null!=n&&u(n,r[k],r,d),r})).prototype=b,b.constructor=m),(T||O)&&(x("delete"),x("has"),d&&x("get")),(O||E)&&x(k),g&&b.clear&&delete b.clear}return _[t]=m,i({global:!0,forced:m!=y},_),h(m,t),g||n.setStrong(m,t,d),m}},brp2:function(t,e,n){n("I+eb")({target:"Date",stat:!0},{now:function(){return(new Date).getTime()}})},busE:function(t,e,n){var r=n("2oRo"),o=n("X2U+"),i=n("UTVS"),a=n("zk60"),c=n("noGo"),u=n("afO8"),s=u.get,f=u.enforce,l=String(c).split("toString");n("VpIT")("inspectSource",function(t){return c.call(t)}),(t.exports=function(t,e,n,c){var u=!!c&&!!c.unsafe,s=!!c&&!!c.enumerable,p=!!c&&!!c.noTargetGet;"function"==typeof n&&("string"!=typeof e||i(n,"name")||o(n,"name",e),f(n).source=l.join("string"==typeof e?e:"")),t!==r?(u?!p&&t[e]&&(s=!0):delete t[e],s?t[e]=n:o(t,e,n)):s?t[e]=n:a(e,n)})(Function.prototype,"toString",function(){return"function"==typeof this&&s(this).source||c.call(this)})},cDke:function(t,e,n){var r=n("BX/b").f,o=n("0Dky")(function(){Object.getOwnPropertyNames(1)});n("I+eb")({target:"Object",stat:!0,forced:o},{getOwnPropertyNames:r})},cVYH:function(t,e,n){var r=n("hh1v"),o=n("0rvr");t.exports=function(t,e,n){var i,a=e.constructor;return a!==n&&"function"==typeof a&&(i=a.prototype)!==n.prototype&&r(i)&&o&&o(t,i),t}},"dBg+":function(t,e){e.f=Object.getOwnPropertySymbols},"dG/n":function(t,e,n){var r=n("Qo9l"),o=n("UTVS"),i=n("wDLo"),a=n("m/L8").f;t.exports=function(t){var e=r.Symbol||(r.Symbol={});o(e,t)||a(e,t,{value:i.f(t)})}},"eDl+":function(t,e){t.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]},eJiR:function(t,e,n){var r=n("jrUv"),o=Math.exp;n("I+eb")({target:"Math",stat:!0},{tanh:function(t){var e=r(t=+t),n=r(-t);return e==1/0?1:n==1/0?-1:(e-n)/(o(t)+o(-t))}})},eajv:function(t,e,n){var r=Math.asinh,o=Math.log,i=Math.sqrt;n("I+eb")({target:"Math",stat:!0,forced:!(r&&1/r(0)>0)},{asinh:function t(e){return isFinite(e=+e)&&0!=e?e<0?-t(-e):o(e+i(e*e+1)):e}})},eoL8:function(t,e,n){var r=n("g6v/");n("I+eb")({target:"Object",stat:!0,forced:!r,sham:!r},{defineProperty:n("m/L8").f})},ewvW:function(t,e,n){var r=n("HYAF");t.exports=function(t){return Object(r(t))}},f5p1:function(t,e,n){var r=n("noGo"),o=n("2oRo").WeakMap;t.exports="function"==typeof o&&/native code/.test(r.call(o))},fHMY:function(t,e,n){var r=n("glrk"),o=n("N+g0"),i=n("eDl+"),a=n("G+Rx"),c=n("zBJ4"),u=n("93I0")("IE_PROTO"),s=function(){},f=function(){var t,e=c("iframe"),n=i.length;for(e.style.display="none",a.appendChild(e),e.src=String("javascript:"),(t=e.contentWindow.document).open(),t.write("