diff --git a/erdkunder/3rdpartylicenses.txt b/erdkunder/3rdpartylicenses.txt new file mode 100644 index 0000000..af139c7 --- /dev/null +++ b/erdkunder/3rdpartylicenses.txt @@ -0,0 +1,434 @@ +@angular/animations +MIT + +@angular/cdk +MIT +The MIT License + +Copyright (c) 2019 Google LLC. + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in +all copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN +THE SOFTWARE. + + +@angular/common +MIT + +@angular/compiler +MIT + +@angular/core +MIT + +@angular/forms +MIT + +@angular/material +MIT +The MIT License + +Copyright (c) 2019 Google LLC. + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in +all copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN +THE SOFTWARE. + + +@angular/material/button + +@angular/material/core + +@angular/material/dialog + +@angular/material/divider + +@angular/material/form-field + +@angular/material/icon + +@angular/material/list + +@angular/material/menu + +@angular/material/paginator + +@angular/material/select + +@angular/material/sidenav + +@angular/material/snack-bar + +@angular/material/toolbar + +@angular/material/tooltip + +@angular/platform-browser +MIT + +@angular/router +MIT + +ol +BSD-2-Clause + +quickselect +ISC +ISC License + +Copyright (c) 2018, Vladimir Agafonkin + +Permission to use, copy, modify, and/or distribute this software for any purpose +with or without fee is hereby granted, provided that the above copyright notice +and this permission notice appear in all copies. + +THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH +REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND +FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT, +INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS +OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER +TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF +THIS SOFTWARE. + + +rbush +MIT +MIT License + +Copyright (c) 2016 Vladimir Agafonkin + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in +all copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN +THE SOFTWARE. + + +rxjs +Apache-2.0 + Apache License + Version 2.0, January 2004 + http://www.apache.org/licenses/ + + TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION + + 1. Definitions. + + "License" shall mean the terms and conditions for use, reproduction, + and distribution as defined by Sections 1 through 9 of this document. + + "Licensor" shall mean the copyright owner or entity authorized by + the copyright owner that is granting the License. + + "Legal Entity" shall mean the union of the acting entity and all + other entities that control, are controlled by, or are under common + control with that entity. For the purposes of this definition, + "control" means (i) the power, direct or indirect, to cause the + direction or management of such entity, whether by contract or + otherwise, or (ii) ownership of fifty percent (50%) or more of the + outstanding shares, or (iii) beneficial ownership of such entity. + + "You" (or "Your") shall mean an individual or Legal Entity + exercising permissions granted by this License. + + "Source" form shall mean the preferred form for making modifications, + including but not limited to software source code, documentation + source, and configuration files. + + "Object" form shall mean any form resulting from mechanical + transformation or translation of a Source form, including but + not limited to compiled object code, generated documentation, + and conversions to other media types. + + "Work" shall mean the work of authorship, whether in Source or + Object form, made available under the License, as indicated by a + copyright notice that is included in or attached to the work + (an example is provided in the Appendix below). + + "Derivative Works" shall mean any work, whether in Source or Object + form, that is based on (or derived from) the Work and for which the + editorial revisions, annotations, elaborations, or other modifications + represent, as a whole, an original work of authorship. For the purposes + of this License, Derivative Works shall not include works that remain + separable from, or merely link (or bind by name) to the interfaces of, + the Work and Derivative Works thereof. + + "Contribution" shall mean any work of authorship, including + the original version of the Work and any modifications or additions + to that Work or Derivative Works thereof, that is intentionally + submitted to Licensor for inclusion in the Work by the copyright owner + or by an individual or Legal Entity authorized to submit on behalf of + the copyright owner. For the purposes of this definition, "submitted" + means any form of electronic, verbal, or written communication sent + to the Licensor or its representatives, including but not limited to + communication on electronic mailing lists, source code control systems, + and issue tracking systems that are managed by, or on behalf of, the + Licensor for the purpose of discussing and improving the Work, but + excluding communication that is conspicuously marked or otherwise + designated in writing by the copyright owner as "Not a Contribution." + + "Contributor" shall mean Licensor and any individual or Legal Entity + on behalf of whom a Contribution has been received by Licensor and + subsequently incorporated within the Work. + + 2. Grant of Copyright License. Subject to the terms and conditions of + this License, each Contributor hereby grants to You a perpetual, + worldwide, non-exclusive, no-charge, royalty-free, irrevocable + copyright license to reproduce, prepare Derivative Works of, + publicly display, publicly perform, sublicense, and distribute the + Work and such Derivative Works in Source or Object form. + + 3. Grant of Patent License. Subject to the terms and conditions of + this License, each Contributor hereby grants to You a perpetual, + worldwide, non-exclusive, no-charge, royalty-free, irrevocable + (except as stated in this section) patent license to make, have made, + use, offer to sell, sell, import, and otherwise transfer the Work, + where such license applies only to those patent claims licensable + by such Contributor that are necessarily infringed by their + Contribution(s) alone or by combination of their Contribution(s) + with the Work to which such Contribution(s) was submitted. If You + institute patent litigation against any entity (including a + cross-claim or counterclaim in a lawsuit) alleging that the Work + or a Contribution incorporated within the Work constitutes direct + or contributory patent infringement, then any patent licenses + granted to You under this License for that Work shall terminate + as of the date such litigation is filed. + + 4. Redistribution. You may reproduce and distribute copies of the + Work or Derivative Works thereof in any medium, with or without + modifications, and in Source or Object form, provided that You + meet the following conditions: + + (a) You must give any other recipients of the Work or + Derivative Works a copy of this License; and + + (b) You must cause any modified files to carry prominent notices + stating that You changed the files; and + + (c) You must retain, in the Source form of any Derivative Works + that You distribute, all copyright, patent, trademark, and + attribution notices from the Source form of the Work, + excluding those notices that do not pertain to any part of + the Derivative Works; and + + (d) If the Work includes a "NOTICE" text file as part of its + distribution, then any Derivative Works that You distribute must + include a readable copy of the attribution notices contained + within such NOTICE file, excluding those notices that do not + pertain to any part of the Derivative Works, in at least one + of the following places: within a NOTICE text file distributed + as part of the Derivative Works; within the Source form or + documentation, if provided along with the Derivative Works; or, + within a display generated by the Derivative Works, if and + wherever such third-party notices normally appear. The contents + of the NOTICE file are for informational purposes only and + do not modify the License. You may add Your own attribution + notices within Derivative Works that You distribute, alongside + or as an addendum to the NOTICE text from the Work, provided + that such additional attribution notices cannot be construed + as modifying the License. + + You may add Your own copyright statement to Your modifications and + may provide additional or different license terms and conditions + for use, reproduction, or distribution of Your modifications, or + for any such Derivative Works as a whole, provided Your use, + reproduction, and distribution of the Work otherwise complies with + the conditions stated in this License. + + 5. Submission of Contributions. Unless You explicitly state otherwise, + any Contribution intentionally submitted for inclusion in the Work + by You to the Licensor shall be under the terms and conditions of + this License, without any additional terms or conditions. + Notwithstanding the above, nothing herein shall supersede or modify + the terms of any separate license agreement you may have executed + with Licensor regarding such Contributions. + + 6. Trademarks. This License does not grant permission to use the trade + names, trademarks, service marks, or product names of the Licensor, + except as required for reasonable and customary use in describing the + origin of the Work and reproducing the content of the NOTICE file. + + 7. Disclaimer of Warranty. Unless required by applicable law or + agreed to in writing, Licensor provides the Work (and each + Contributor provides its Contributions) on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or + implied, including, without limitation, any warranties or conditions + of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A + PARTICULAR PURPOSE. You are solely responsible for determining the + appropriateness of using or redistributing the Work and assume any + risks associated with Your exercise of permissions under this License. + + 8. Limitation of Liability. In no event and under no legal theory, + whether in tort (including negligence), contract, or otherwise, + unless required by applicable law (such as deliberate and grossly + negligent acts) or agreed to in writing, shall any Contributor be + liable to You for damages, including any direct, indirect, special, + incidental, or consequential damages of any character arising as a + result of this License or out of the use or inability to use the + Work (including but not limited to damages for loss of goodwill, + work stoppage, computer failure or malfunction, or any and all + other commercial damages or losses), even if such Contributor + has been advised of the possibility of such damages. + + 9. Accepting Warranty or Additional Liability. While redistributing + the Work or Derivative Works thereof, You may choose to offer, + and charge a fee for, acceptance of support, warranty, indemnity, + or other liability obligations and/or rights consistent with this + License. However, in accepting such obligations, You may act only + on Your own behalf and on Your sole responsibility, not on behalf + of any other Contributor, and only if You agree to indemnify, + defend, and hold each Contributor harmless for any liability + incurred by, or claims asserted against, such Contributor by reason + of your accepting any such warranty or additional liability. + + END OF TERMS AND CONDITIONS + + APPENDIX: How to apply the Apache License to your work. + + To apply the Apache License to your work, attach the following + boilerplate notice, with the fields enclosed by brackets "[]" + replaced with your own identifying information. (Don't include + the brackets!) The text should be enclosed in the appropriate + comment syntax for the file format. We also recommend that a + file or class name and description of purpose be included on the + same "printed page" as the copyright notice for easier + identification within third-party archives. + + Copyright (c) 2015-2018 Google, Inc., Netflix, Inc., Microsoft Corp. and contributors + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. + + + +tslib +Apache-2.0 +Apache License + +Version 2.0, January 2004 + +http://www.apache.org/licenses/ + +TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION + +1. Definitions. + +"License" shall mean the terms and conditions for use, reproduction, and distribution as defined by Sections 1 through 9 of this document. + +"Licensor" shall mean the copyright owner or entity authorized by the copyright owner that is granting the License. + +"Legal Entity" shall mean the union of the acting entity and all other entities that control, are controlled by, or are under common control with that entity. For the purposes of this definition, "control" means (i) the power, direct or indirect, to cause the direction or management of such entity, whether by contract or otherwise, or (ii) ownership of fifty percent (50%) or more of the outstanding shares, or (iii) beneficial ownership of such entity. + +"You" (or "Your") shall mean an individual or Legal Entity exercising permissions granted by this License. + +"Source" form shall mean the preferred form for making modifications, including but not limited to software source code, documentation source, and configuration files. + +"Object" form shall mean any form resulting from mechanical transformation or translation of a Source form, including but not limited to compiled object code, generated documentation, and conversions to other media types. + +"Work" shall mean the work of authorship, whether in Source or Object form, made available under the License, as indicated by a copyright notice that is included in or attached to the work (an example is provided in the Appendix below). + +"Derivative Works" shall mean any work, whether in Source or Object form, that is based on (or derived from) the Work and for which the editorial revisions, annotations, elaborations, or other modifications represent, as a whole, an original work of authorship. For the purposes of this License, Derivative Works shall not include works that remain separable from, or merely link (or bind by name) to the interfaces of, the Work and Derivative Works thereof. + +"Contribution" shall mean any work of authorship, including the original version of the Work and any modifications or additions to that Work or Derivative Works thereof, that is intentionally submitted to Licensor for inclusion in the Work by the copyright owner or by an individual or Legal Entity authorized to submit on behalf of the copyright owner. For the purposes of this definition, "submitted" means any form of electronic, verbal, or written communication sent to the Licensor or its representatives, including but not limited to communication on electronic mailing lists, source code control systems, and issue tracking systems that are managed by, or on behalf of, the Licensor for the purpose of discussing and improving the Work, but excluding communication that is conspicuously marked or otherwise designated in writing by the copyright owner as "Not a Contribution." + +"Contributor" shall mean Licensor and any individual or Legal Entity on behalf of whom a Contribution has been received by Licensor and subsequently incorporated within the Work. + +2. Grant of Copyright License. Subject to the terms and conditions of this License, each Contributor hereby grants to You a perpetual, worldwide, non-exclusive, no-charge, royalty-free, irrevocable copyright license to reproduce, prepare Derivative Works of, publicly display, publicly perform, sublicense, and distribute the Work and such Derivative Works in Source or Object form. + +3. Grant of Patent License. Subject to the terms and conditions of this License, each Contributor hereby grants to You a perpetual, worldwide, non-exclusive, no-charge, royalty-free, irrevocable (except as stated in this section) patent license to make, have made, use, offer to sell, sell, import, and otherwise transfer the Work, where such license applies only to those patent claims licensable by such Contributor that are necessarily infringed by their Contribution(s) alone or by combination of their Contribution(s) with the Work to which such Contribution(s) was submitted. If You institute patent litigation against any entity (including a cross-claim or counterclaim in a lawsuit) alleging that the Work or a Contribution incorporated within the Work constitutes direct or contributory patent infringement, then any patent licenses granted to You under this License for that Work shall terminate as of the date such litigation is filed. + +4. Redistribution. You may reproduce and distribute copies of the Work or Derivative Works thereof in any medium, with or without modifications, and in Source or Object form, provided that You meet the following conditions: + +You must give any other recipients of the Work or Derivative Works a copy of this License; and + +You must cause any modified files to carry prominent notices stating that You changed the files; and + +You must retain, in the Source form of any Derivative Works that You distribute, all copyright, patent, trademark, and attribution notices from the Source form of the Work, excluding those notices that do not pertain to any part of the Derivative Works; and + +If the Work includes a "NOTICE" text file as part of its distribution, then any Derivative Works that You distribute must include a readable copy of the attribution notices contained within such NOTICE file, excluding those notices that do not pertain to any part of the Derivative Works, in at least one of the following places: within a NOTICE text file distributed as part of the Derivative Works; within the Source form or documentation, if provided along with the Derivative Works; or, within a display generated by the Derivative Works, if and wherever such third-party notices normally appear. The contents of the NOTICE file are for informational purposes only and do not modify the License. You may add Your own attribution notices within Derivative Works that You distribute, alongside or as an addendum to the NOTICE text from the Work, provided that such additional attribution notices cannot be construed as modifying the License. You may add Your own copyright statement to Your modifications and may provide additional or different license terms and conditions for use, reproduction, or distribution of Your modifications, or for any such Derivative Works as a whole, provided Your use, reproduction, and distribution of the Work otherwise complies with the conditions stated in this License. + +5. Submission of Contributions. Unless You explicitly state otherwise, any Contribution intentionally submitted for inclusion in the Work by You to the Licensor shall be under the terms and conditions of this License, without any additional terms or conditions. Notwithstanding the above, nothing herein shall supersede or modify the terms of any separate license agreement you may have executed with Licensor regarding such Contributions. + +6. Trademarks. This License does not grant permission to use the trade names, trademarks, service marks, or product names of the Licensor, except as required for reasonable and customary use in describing the origin of the Work and reproducing the content of the NOTICE file. + +7. Disclaimer of Warranty. Unless required by applicable law or agreed to in writing, Licensor provides the Work (and each Contributor provides its Contributions) on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied, including, without limitation, any warranties or conditions of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A PARTICULAR PURPOSE. You are solely responsible for determining the appropriateness of using or redistributing the Work and assume any risks associated with Your exercise of permissions under this License. + +8. Limitation of Liability. In no event and under no legal theory, whether in tort (including negligence), contract, or otherwise, unless required by applicable law (such as deliberate and grossly negligent acts) or agreed to in writing, shall any Contributor be liable to You for damages, including any direct, indirect, special, incidental, or consequential damages of any character arising as a result of this License or out of the use or inability to use the Work (including but not limited to damages for loss of goodwill, work stoppage, computer failure or malfunction, or any and all other commercial damages or losses), even if such Contributor has been advised of the possibility of such damages. + +9. Accepting Warranty or Additional Liability. While redistributing the Work or Derivative Works thereof, You may choose to offer, and charge a fee for, acceptance of support, warranty, indemnity, or other liability obligations and/or rights consistent with this License. However, in accepting such obligations, You may act only on Your own behalf and on Your sole responsibility, not on behalf of any other Contributor, and only if You agree to indemnify, defend, and hold each Contributor harmless for any liability incurred by, or claims asserted against, such Contributor by reason of your accepting any such warranty or additional liability. + +END OF TERMS AND CONDITIONS + + +zone.js +MIT +The MIT License + +Copyright (c) 2016-2018 Google, Inc. + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in +all copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN +THE SOFTWARE. diff --git a/erdkunder/favicon.ico b/erdkunder/favicon.ico new file mode 100644 index 0000000..8081c7c Binary files /dev/null and b/erdkunder/favicon.ico differ diff --git a/erdkunder/index.html b/erdkunder/index.html new file mode 100644 index 0000000..b59673e --- /dev/null +++ b/erdkunder/index.html @@ -0,0 +1,25 @@ + + + + + + VgiFrontend + + + + + + + + + + + + + \ No newline at end of file diff --git a/erdkunder/main.b92d2b6cc58007ca41d8.js b/erdkunder/main.b92d2b6cc58007ca41d8.js new file mode 100644 index 0000000..8f9841e --- /dev/null +++ b/erdkunder/main.b92d2b6cc58007ca41d8.js @@ -0,0 +1 @@ +(window.webpackJsonp=window.webpackJsonp||[]).push([[1],{0:function(t,e,n){t.exports=n("zUnb")},"A1R+":function(t,e,n){"use strict";t.exports=r,t.exports.default=r;var i=n("YcpW");function r(t,e){if(!(this instanceof r))return new r(t,e);this._maxEntries=Math.max(4,t||9),this._minEntries=Math.max(2,Math.ceil(.4*this._maxEntries)),e&&this._initFormat(e),this.clear()}function o(t,e,n){if(!n)return e.indexOf(t);for(var i=0;i=t.minX&&e.maxY>=t.minY}function m(t){return{children:t,height:1,leaf:!0,minX:1/0,minY:1/0,maxX:-1/0,maxY:-1/0}}function g(t,e,n,r,o){for(var s,a=[e,n];a.length;)(n=a.pop())-(e=a.pop())<=r||(s=e+Math.ceil((n-e)/r/2)*r,i(t,s,e,n,o),a.push(e,s,s,n))}r.prototype={all:function(){return this._all(this.data,[])},search:function(t){var e=this.data,n=[],i=this.toBBox;if(!f(t,e))return n;for(var r,o,s,a,l=[];e;){for(r=0,o=e.children.length;r=0&&r[e].children.length>this._maxEntries;)this._split(r,e),e--;this._adjustParentBBoxes(i,r,e)},_split:function(t,e){var n=t[e],i=n.children.length,r=this._minEntries;this._chooseSplitAxis(n,r,i);var o=this._chooseSplitIndex(n,r,i),a=m(n.children.splice(o,n.children.length-o));a.height=n.height,a.leaf=n.leaf,s(n,this.toBBox),s(a,this.toBBox),e?t[e-1].children.push(a):this._splitRoot(n,a)},_splitRoot:function(t,e){this.data=m([t,e]),this.data.height=t.height+1,this.data.leaf=!1,s(this.data,this.toBBox)},_chooseSplitIndex:function(t,e,n){var i,r,o,s,l,u,c,p,d,f,m,g,y,_;for(u=c=1/0,i=e;i<=n-e;i++)d=r=a(t,0,i,this.toBBox),f=o=a(t,i,n,this.toBBox),m=Math.max(d.minX,f.minX),g=Math.max(d.minY,f.minY),y=Math.min(d.maxX,f.maxX),_=Math.min(d.maxY,f.maxY),s=Math.max(0,y-m)*Math.max(0,_-g),l=h(r)+h(o),s=e;r--)o=t.children[r],l(c,t.leaf?s(o):o),h+=p(c);return h},_adjustParentBBoxes:function(t,e,n){for(var i=n;i>=0;i--)l(e[i],t)},_condense:function(t){for(var e,n=t.length-1;n>=0;n--)0===t[n].children.length?n>0?(e=t[n-1].children).splice(e.indexOf(t[n]),1):this.clear():s(t[n],this.toBBox)},_initFormat:function(t){var e=["return a"," - b",";"];this.compareMinX=new Function("a","b",e.join(t[0])),this.compareMinY=new Function("a","b",e.join(t[1])),this.toBBox=new Function("a","return {minX: a"+t[0]+", minY: a"+t[1]+", maxX: a"+t[2]+", maxY: a"+t[3]+"};")}}},YcpW:function(t,e,n){t.exports=function(){"use strict";function t(t,e,n){var i=t[e];t[e]=t[n],t[n]=i}function e(t,e){return te?1:0}return function(n,i,r,o,s){!function e(n,i,r,o,s){for(;o>r;){if(o-r>600){var a=o-r+1,l=i-r+1,u=Math.log(a),c=.5*Math.exp(2*u/3),h=.5*Math.sqrt(u*c*(a-c)/a)*(l-a/2<0?-1:1);e(n,i,Math.max(r,Math.floor(i-l*c/a+h)),Math.min(o,Math.floor(i+(a-l)*c/a+h)),s)}var p=n[i],d=r,f=o;for(t(n,r,i),s(n[o],p)>0&&t(n,r,o);d0;)f--}0===s(n[r],p)?t(n,r,f):t(n,++f,o),f<=i&&(r=f+1),i<=f&&(o=f-1)}}(n,i,r||0,o||n.length-1,s||e)}}()},b5qc:function(t,e){function n(t){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="b5qc"},crnd: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="crnd"},vkCB:function(t,e,n){var i,r,o;!function(s){if("object"==typeof t.exports){var a=s(n("b5qc"),e);void 0!==a&&(t.exports=a)}else r=[n,e],void 0===(o="function"==typeof(i=s)?i.apply(e,r):i)||(t.exports=o)}(function(t,e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.Message=function(t,e,n,i,r,o){this.nodes=t,this.placeholders=e,this.placeholderToMessage=n,this.meaning=i,this.description=r,this.id=o,this.sources=t.length?[{filePath:t[0].sourceSpan.start.file.url,startLine:t[0].sourceSpan.start.line+1,startCol:t[0].sourceSpan.start.col+1,endLine:t[t.length-1].sourceSpan.end.line+1,endCol:t[0].sourceSpan.start.col+1}]:[]};var n=function(){function t(t,e){this.value=t,this.sourceSpan=e}return t.prototype.visit=function(t,e){return t.visitText(this,e)},t}();e.Text=n;var i=function(){function t(t,e){this.children=t,this.sourceSpan=e}return t.prototype.visit=function(t,e){return t.visitContainer(this,e)},t}();e.Container=i;var r=function(){function t(t,e,n,i){this.expression=t,this.type=e,this.cases=n,this.sourceSpan=i}return t.prototype.visit=function(t,e){return t.visitIcu(this,e)},t}();e.Icu=r;var o=function(){function t(t,e,n,i,r,o,s){this.tag=t,this.attrs=e,this.startName=n,this.closeName=i,this.children=r,this.isVoid=o,this.sourceSpan=s}return t.prototype.visit=function(t,e){return t.visitTagPlaceholder(this,e)},t}();e.TagPlaceholder=o;var s=function(){function t(t,e,n){this.value=t,this.name=e,this.sourceSpan=n}return t.prototype.visit=function(t,e){return t.visitPlaceholder(this,e)},t}();e.Placeholder=s;var a=function(){function t(t,e,n){this.value=t,this.name=e,this.sourceSpan=n}return t.prototype.visit=function(t,e){return t.visitIcuPlaceholder(this,e)},t}();e.IcuPlaceholder=a;var l=function(){function t(){}return t.prototype.visitText=function(t,e){return new n(t.value,t.sourceSpan)},t.prototype.visitContainer=function(t,e){var n=this,r=t.children.map(function(t){return t.visit(n,e)});return new i(r,t.sourceSpan)},t.prototype.visitIcu=function(t,e){var n=this,i={};Object.keys(t.cases).forEach(function(r){return i[r]=t.cases[r].visit(n,e)});var o=new r(t.expression,t.type,i,t.sourceSpan);return o.expressionPlaceholder=t.expressionPlaceholder,o},t.prototype.visitTagPlaceholder=function(t,e){var n=this,i=t.children.map(function(t){return t.visit(n,e)});return new o(t.tag,t.attrs,t.startName,t.closeName,i,t.isVoid,t.sourceSpan)},t.prototype.visitPlaceholder=function(t,e){return new s(t.value,t.name,t.sourceSpan)},t.prototype.visitIcuPlaceholder=function(t,e){return new a(t.value,t.name,t.sourceSpan)},t}();e.CloneVisitor=l;var u=function(){function t(){}return t.prototype.visitText=function(t,e){},t.prototype.visitContainer=function(t,e){var n=this;t.children.forEach(function(t){return t.visit(n)})},t.prototype.visitIcu=function(t,e){var n=this;Object.keys(t.cases).forEach(function(e){t.cases[e].visit(n)})},t.prototype.visitTagPlaceholder=function(t,e){var n=this;t.children.forEach(function(t){return t.visit(n)})},t.prototype.visitPlaceholder=function(t,e){},t.prototype.visitIcuPlaceholder=function(t,e){},t}();e.RecurseVisitor=u})},zUnb:function(t,e,n){"use strict";n.r(e);var i=function(t,e){return(i=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 r(t,e){function n(){this.constructor=t}i(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}var o=function(){return(o=Object.assign||function(t){for(var e,n=1,i=arguments.length;n=0;a--)(r=t[a])&&(s=(o<3?r(s):o>3?r(e,n,s):r(e,n))||s);return o>3&&s&&Object.defineProperty(e,n,s),s}function a(t,e){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(t,e)}function l(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 u(t,e){var n="function"==typeof Symbol&&t[Symbol.iterator];if(!n)return t;var i,r,o=n.call(t),s=[];try{for(;(void 0===e||e-- >0)&&!(i=o.next()).done;)s.push(i.value)}catch(a){r={error:a}}finally{try{i&&!i.done&&(n=o.return)&&n.call(o)}finally{if(r)throw r.error}}return s}function c(){for(var t=[],e=0;e0?this._next(e.shift()):0===this.active&&this.hasCompleted&&this.destination.complete()},e}(W);function et(t){return t}function nt(t){return void 0===t&&(t=Number.POSITIVE_INFINITY),J(et,t)}function it(t,e){return e?Z(t,e):new R(V(t))}function rt(){for(var t=[],e=0;e1&&"number"==typeof t[t.length-1]&&(n=t.pop())):"number"==typeof r&&(n=t.pop()),null===i&&1===t.length&&t[0]instanceof R?t[0]:nt(n)(it(t,i))}function ot(){return function(t){return t.lift(new st(t))}}var st=function(){function t(t){this.connectable=t}return t.prototype.call=function(t,e){var n=this.connectable;n._refCount++;var i=new at(t,n),r=e.subscribe(i);return i.closed||(i.connection=n.connect()),r},t}(),at=function(t){function e(e,n){var i=t.call(this,e)||this;return i.connectable=n,i}return r(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,i=t._connection;this.connection=null,!i||n&&i!==n||i.unsubscribe()}}else this.connection=null},e}(x),lt=function(t){function e(e,n){var i=t.call(this)||this;return i.source=e,i.subjectFactory=n,i._refCount=0,i._isComplete=!1,i}return r(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 g).add(this.source.subscribe(new ct(this.getSubject(),this))),t.closed&&(this._connection=null,t=g.EMPTY)),t},e.prototype.refCount=function(){return ot()(this)},e}(R).prototype,ut={operator:{value:null},_refCount:{value:0,writable:!0},_subject:{value:null,writable:!0},_connection:{value:null,writable:!0},_subscribe:{value:lt._subscribe},_isComplete:{value:lt._isComplete,writable:!0},getSubject:{value:lt.getSubject},connect:{value:lt.connect},refCount:{value:lt.refCount}},ct=function(t){function e(e,n){var i=t.call(this,e)||this;return i.connectable=n,i}return r(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 ht(){return new F}function pt(){return function(t){return ot()((e=ht,function(t){var n;n="function"==typeof e?e:function(){return e};var i=Object.create(t,ut);return i.source=t,i.subjectFactory=n,i})(t));var e}}function dt(t){for(var e in t)if(t[e]===dt)return e;throw Error("Could not find renamed property on target object.")}var ft=dt({ngInjectableDef:dt});function mt(t){return{providedIn:t.providedIn||null,factory:t.factory,value:void 0}}function gt(t){return t.hasOwnProperty(ft)?t[ft]:null}var yt=function(){function t(t,e){this._desc=t,this.ngMetadataName="InjectionToken",this.ngInjectableDef=void 0!==e?mt({providedIn:e.providedIn||"root",factory:e.factory}):void 0}return t.prototype.toString=function(){return"InjectionToken "+this._desc},t}(),_t="__parameters__";function vt(t,e,n){var i=function(t){return function(){for(var e=[],n=0;n ");else if("object"==typeof e){var r=[];for(var o in e)if(e.hasOwnProperty(o)){var s=e[o];r.push(o+":"+("string"==typeof s?JSON.stringify(s):Rt(s)))}i="{"+r.join(", ")+"}"}return"StaticInjectorError"+(n?"("+n+")":"")+"["+i+"]: "+t.replace(Yt,"\n ")}function Jt(t,e){return new Error(Qt(t,e))}var $t=void 0;function te(t){var e=$t;return $t=t,e}function ee(t,e){if(void 0===e&&(e=0),void 0===$t)throw new Error("inject() must be called from an injection context");if(null===$t){var n=gt(t);if(n&&"root"==n.providedIn)return void 0===n.value?n.value=n.factory():n.value;if(8&e)return null;throw new Error("Injector: NOT_FOUND ["+Rt(t)+"]")}return $t.get(t,8&e?null:void 0,e)}var ne=function(t){return t[t.Emulated=0]="Emulated",t[t.Native=1]="Native",t[t.None=2]="None",t[t.ShadowDom=3]="ShadowDom",t}({});function ie(t,e){var n=se(t),i=se(e);return n&&i?function(t,e,n){for(var i=t[Tt()](),r=e[Tt()]();;){var o=i.next(),s=r.next();if(o.done&&s.done)return!0;if(o.done||s.done)return!1;if(!n(o.value,s.value))return!1}}(t,e,ie):!(n||!t||"object"!=typeof t&&"function"!=typeof t||i||!e||"object"!=typeof e&&"function"!=typeof e)||Ot(t,e)}var re=function(){function t(t){this.wrapped=t}return t.wrap=function(e){return new t(e)},t.unwrap=function(e){return t.isWrapped(e)?e.wrapped:e},t.isWrapped=function(e){return e instanceof t},t}(),oe=function(){function t(t,e,n){this.previousValue=t,this.currentValue=e,this.firstChange=n}return t.prototype.isFirstChange=function(){return this.firstChange},t}();function se(t){return!!ae(t)&&(Array.isArray(t)||!(t instanceof Map)&&Tt()in t)}function ae(t){return null!==t&&("function"==typeof t||"object"==typeof t)}var le=function(){return function(){}}(),ue=function(){return function(){}}();function ce(t){var e=Error("No component factory found for "+Rt(t)+". Did you add it to @NgModule.entryComponents?");return e[he]=t,e}var he="ngComponent",pe=function(){function t(){}return t.prototype.resolveComponentFactory=function(t){throw ce(t)},t}(),de=function(){function t(){}return t.NULL=new pe,t}(),fe=function(){function t(t,e,n){this._parent=e,this._ngModule=n,this._factories=new Map;for(var i=0;i',!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(i){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")}else this.sanitizedSomething=!0},t.prototype.endElement=function(t){var e=t.nodeName.toLowerCase();We.hasOwnProperty(e)&&!Ge.hasOwnProperty(e)&&(this.buf.push(""))},t.prototype.chars=function(t){this.buf.push($e(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}(),Qe=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,Je=/([^\#-~ |!])/g;function $e(t){return t.replace(/&/g,"&").replace(Qe,function(t){return"&#"+(1024*(t.charCodeAt(0)-55296)+(t.charCodeAt(1)-56320)+65536)+";"}).replace(Je,function(t){return"&#"+t.charCodeAt(0)+";"}).replace(//g,">")}function tn(t){return"content"in t&&function(t){return t.nodeType===Node.ELEMENT_NODE&&"TEMPLATE"===t.nodeName}(t)?t.content:null}var en=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}({}),nn=function(){return function(){}}(),rn=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"),on=/^url\(([^)]+)\)$/,sn=new(function(){return function(t){this.full=t,this.major=t.split(".")[0],this.minor=t.split(".")[1],this.patch=t.split(".").slice(2).join(".")}}())("7.0.4"),an="ngDebugContext",ln="ngOriginalError",un="ngErrorLogger";function cn(t){return t[an]}function hn(t){return t[ln]}function pn(t){for(var e=[],n=1;n0&&(r=setTimeout(function(){i._callbacks=i._callbacks.filter(function(t){return t.timeoutId!==r}),t(i._didWork,i.getPendingTasks())},e)),this._callbacks.push({doneCb:t,timeoutId:r,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}(),Hn=function(){function t(){this._applications=new Map,qn.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),qn.findTestabilityInTree(this,t,e)},s([a("design:paramtypes",[])],t)}(),qn=new(function(){function t(){}return t.prototype.addToWindow=function(t){},t.prototype.findTestabilityInTree=function(t,e,n){return null},t}()),Wn=new yt("AllowMultipleToken"),Yn=function(){return function(t,e){this.name=t,this.token=e}}();function Kn(t,e,n){void 0===n&&(n=[]);var i="Platform: "+e,r=new yt(i);return function(e){void 0===e&&(e=[]);var o=Xn();if(!o||o.injector.get(Wn,!1))if(t)t(n.concat(e).concat({provide:r,useValue:!0}));else{var s=n.concat(e).concat({provide:r,useValue:!0});!function(t){if(Bn&&!Bn.destroyed&&!Bn.injector.get(Wn,!1))throw new Error("There can be only one platform. Destroy the previous one to create a new one.");Bn=t.get(Zn);var e=t.get(wn,null);e&&e.forEach(function(t){return t()})}(zt.create({providers:s,name:i}))}return function(t){var e=Xn();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}(r)}}function Xn(){return Bn&&!Bn.destroyed?Bn:null}var Zn=function(){function t(t){this._injector=t,this._modules=[],this._destroyListeners=[],this._destroyed=!1}return t.prototype.bootstrapModuleFactory=function(t,e){var n,i=this,r="noop"===(n=e?e.ngZone:void 0)?new Gn:("zone.js"===n?void 0:n)||new Fn({enableLongStackTrace:De()}),o=[{provide:Fn,useValue:r}];return r.run(function(){var e=zt.create({providers:o,parent:i.injector,name:t.moduleType.name}),n=t.create(e),s=n.injector.get(dn,null);if(!s)throw new Error("No ErrorHandler. Is platform module (BrowserModule) included?");return n.onDestroy(function(){return $n(i._modules,n)}),r.runOutsideAngular(function(){return r.onError.subscribe({next:function(t){s.handleError(t)}})}),function(t,e,r){try{var o=((s=n.injector.get(yn)).runInitializers(),s.donePromise.then(function(){return i._moduleDoBootstrap(n),n}));return fn(o)?o.catch(function(n){throw e.runOutsideAngular(function(){return t.handleError(n)}),n}):o}catch(a){throw e.runOutsideAngular(function(){return t.handleError(a)}),a}var s}(s,r)})},t.prototype.bootstrapModule=function(t,e){var n=this;void 0===e&&(e=[]);var i=Qn({},e);return function(t,e,n){return t.get(Rn).createCompiler([e]).compileModuleAsync(n)}(this.injector,i,t).then(function(t){return n.bootstrapModuleFactory(t,i)})},t.prototype._moduleDoBootstrap=function(t){var e=t.injector.get(Jn);if(t._bootstrapComponents.length>0)t._bootstrapComponents.forEach(function(t){return e.bootstrap(t)});else{if(!t.instance.ngDoBootstrap)throw new Error("The module "+Rt(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 Qn(t,e){return Array.isArray(e)?e.reduce(Qn,t):o({},t,e)}var Jn=function(){function t(t,e,n,i,r,o){var s=this;this._zone=t,this._console=e,this._injector=n,this._exceptionHandler=i,this._componentFactoryResolver=r,this._initStatus=o,this._bootstrapListeners=[],this._views=[],this._runningTick=!1,this._enforceNoNewChanges=!1,this._stable=!0,this.componentTypes=[],this.components=[],this._enforceNoNewChanges=De(),this._zone.onMicrotaskEmpty.subscribe({next:function(){s._zone.run(function(){s.tick()})}});var a=new R(function(t){s._stable=s._zone.isStable&&!s._zone.hasPendingMacrotasks&&!s._zone.hasPendingMicrotasks,s._zone.runOutsideAngular(function(){t.next(s._stable),t.complete()})}),l=new R(function(t){var e;s._zone.runOutsideAngular(function(){e=s._zone.onStable.subscribe(function(){Fn.assertNotInAngularZone(),It(function(){s._stable||s._zone.hasPendingMacrotasks||s._zone.hasPendingMicrotasks||(s._stable=!0,t.next(!0))})})});var n=s._zone.onUnstable.subscribe(function(){Fn.assertInAngularZone(),s._stable&&(s._stable=!1,s._zone.runOutsideAngular(function(){t.next(!1)}))});return function(){e.unsubscribe(),n.unsubscribe()}});this.isStable=rt(a,l.pipe(pt()))}var e;return e=t,t.prototype.bootstrap=function(t,e){var n,i=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 ue?t:this._componentFactoryResolver.resolveComponentFactory(t),this.componentTypes.push(n.componentType);var r=n instanceof me?null:this._injector.get(ge),o=n.create(zt.NULL,[],e||n.selector,r);o.onDestroy(function(){i._unloadComponent(o)});var s=o.injector.get(Un,null);return s&&o.injector.get(Hn).registerApplication(o.location.nativeElement,s),this._loadComponent(o),De()&&this._console.log("Angular is running in the development mode. Call enableProdMode() to enable the production mode."),o},t.prototype.tick=function(){var t=this;if(this._runningTick)throw new Error("ApplicationRef.tick is called recursively");var n=e._tickScope();try{this._runningTick=!0,this._views.forEach(function(t){return t.detectChanges()}),this._enforceNoNewChanges&&this._views.forEach(function(t){return t.checkNoChanges()})}catch(i){this._zone.runOutsideAngular(function(){return t._exceptionHandler.handleError(i)})}finally{this._runningTick=!1,Dn(n)}},t.prototype.attachView=function(t){var e=t;this._views.push(e),e.attachToAppRef(this)},t.prototype.detachView=function(t){var e=t;$n(this._views,e),e.detachFromAppRef()},t.prototype._loadComponent=function(t){this.attachView(t.hostView),this.tick(),this.components.push(t),this._injector.get(xn,[]).concat(this._bootstrapListeners).forEach(function(e){return e(t)})},t.prototype._unloadComponent=function(t){this.detachView(t.hostView),$n(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=Ln("ApplicationRef#tick()"),t}();function $n(t,e){var n=t.indexOf(e);n>-1&&t.splice(n,1)}var ti=function(){return function(){}}(),ei=function(){function t(){this.dirty=!0,this._results=[],this.changes=new ke,this.length=0}return t.prototype.map=function(t){return this._results.map(t)},t.prototype.filter=function(t){return this._results.filter(t)},t.prototype.find=function(t){return this._results.find(t)},t.prototype.reduce=function(t,e){return this._results.reduce(t,e)},t.prototype.forEach=function(t){this._results.forEach(t)},t.prototype.some=function(t){return this._results.some(t)},t.prototype.toArray=function(){return this._results.slice()},t.prototype[Tt()]=function(){return this._results[Tt()]()},t.prototype.toString=function(){return this._results.toString()},t.prototype.reset=function(t){this._results=function t(e){return e.reduce(function(e,n){var i=Array.isArray(n)?t(n):n;return e.concat(i)},[])}(t),this.dirty=!1,this.length=this._results.length,this.last=this._results[this.length-1],this.first=this._results[0]},t.prototype.notifyOnChanges=function(){this.changes.emit(this)},t.prototype.setDirty=function(){this.dirty=!0},t.prototype.destroy=function(){this.changes.complete(),this.changes.unsubscribe()},t}(),ni=function(){return function(){}}(),ii={factoryPathPrefix:"",factoryPathSuffix:".ngfactory"},ri=function(){function t(t,e){this._compiler=t,this._config=e||ii}return t.prototype.load=function(t){return this._compiler instanceof On?this.loadFactory(t):this.loadAndCompile(t)},t.prototype.loadAndCompile=function(t){var e=this,i=u(t.split("#"),2),r=i[0],o=i[1];return void 0===o&&(o="default"),n("crnd")(r).then(function(t){return t[o]}).then(function(t){return oi(t,r,o)}).then(function(t){return e._compiler.compileModuleAsync(t)})},t.prototype.loadFactory=function(t){var e=u(t.split("#"),2),i=e[0],r=e[1],o="NgFactory";return void 0===r&&(r="default",o=""),n("crnd")(this._config.factoryPathPrefix+i+this._config.factoryPathSuffix).then(function(t){return t[r+o]}).then(function(t){return oi(t,i,r)})},t}();function oi(t,e,n){if(!t)throw new Error("Cannot find '"+n+"' in '"+e+"'");return t}var si=function(){function t(){}return t.__NG_ELEMENT_ID__=function(){return Ce(t,Ee)},t}(),ai=function(){function t(){}return t.__NG_ELEMENT_ID__=function(){return we()},t}(),li=function(){return function(t,e){this.name=t,this.callback=e}}(),ui=function(){function t(t,e,n){this.nativeNode=t,this._debugContext=n,this.listeners=[],this.parent=null,e&&e instanceof ci&&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}(),ci=function(t){function e(e,n,i){var r=t.call(this,e,n,i)||this;return r.properties={},r.attributes={},r.classes={},r.styles={},r.childNodes=[],r.nativeElement=e,r}return r(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,i=this,r=this.childNodes.indexOf(t);-1!==r&&((n=this.childNodes).splice.apply(n,c([r+1,0],e)),e.forEach(function(t){t.parent&&t.parent.removeChild(t),t.parent=i}))},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,i){e.childNodes.forEach(function(e){e instanceof ci&&(n(e)&&i.push(e),t(e,n,i))})}(this,t,e),e},e.prototype.queryAllNodes=function(t){var e=[];return function t(e,n,i){e instanceof ci&&e.childNodes.forEach(function(e){n(e)&&i.push(e),e instanceof ci&&t(e,n,i)})}(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}(ui),hi=new Map;function pi(t){return hi.get(t)||null}function di(t){hi.set(t.nativeNode,t)}var fi=function(){function t(){}return t.prototype.supports=function(t){return se(t)},t.prototype.create=function(t){return new gi(t)},t}(),mi=function(t,e){return e},gi=function(){function t(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||mi}return t.prototype.forEachItem=function(t){var e;for(e=this._itHead;null!==e;e=e._next)t(e)},t.prototype.forEachOperation=function(t){for(var e=this._itHead,n=this._removalsHead,i=0,r=null;e||n;){var o=!n||e&&e.currentIndex-1}(i)||"root"===r.providedIn&&i._def.isRoot))){var c=t._providers.length;return t._def.providersByKey[e.tokenKey]={flags:5120,value:a.factory,deps:[],index:c,token:e.token},t._providers[c]=kr,t._providers[c]=Mr(t,t._def.providersByKey[e.tokenKey])}return 4&e.flags?n:t._parent.get(e.token,n)}finally{te(o)}}function Mr(t,e){var n;switch(201347067&e.flags){case 512:n=function(t,e,n){var i=n.length;switch(i){case 0:return new e;case 1:return new e(Fr(t,n[0]));case 2:return new e(Fr(t,n[0]),Fr(t,n[1]));case 3:return new e(Fr(t,n[0]),Fr(t,n[1]),Fr(t,n[2]));default:for(var r=new Array(i),o=0;o=n.length)&&(e=n.length-1),e<0)return null;var i=n[e];return i.viewContainerParent=null,Br(n,e),Gi.dirtyParentQueries(i),Vr(i),i}function jr(t,e,n){var i=e?ar(e,e.def.lastRenderRootNode):t.renderElement,r=n.renderer.parentNode(i),o=n.renderer.nextSibling(i);gr(n,2,r,o,void 0)}function Vr(t){gr(t,3,null,null,void 0)}function zr(t,e,n){e>=t.length?t.push(n):t.splice(e,0,n)}function Br(t,e){e>=t.length-1?t.pop():t.splice(e,1)}var Gr=new Object;function Ur(t,e,n,i,r,o){return new Hr(t,e,n,i,r,o)}var Hr=function(t){function e(e,n,i,r,o,s){var a=t.call(this)||this;return a.selector=e,a.componentType=n,a._inputs=r,a._outputs=o,a.ngContentSelectors=s,a.viewDefFactory=i,a}return r(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,i){if(!i)throw new Error("ngModule should be provided");var r=mr(this.viewDefFactory),o=r.nodes[0].element.componentProvider.nodeIndex,s=Gi.createRootView(t,e||[],n,r,i,Gr),a=Vi(s,o).instance;return n&&s.renderer.setAttribute(ji(s,0).renderElement,"ng-version",sn.full),new qr(s,new Xr(s),a)},e}(ue),qr=function(t){function e(e,n,i){var r=t.call(this)||this;return r._view=e,r._viewRef=n,r._component=i,r._elDef=r._view.def.nodes[0],r.hostView=n,r.changeDetectorRef=n,r.instance=i,r}return r(e,t),Object.defineProperty(e.prototype,"location",{get:function(){return new Ee(ji(this._view,this._elDef.nodeIndex).renderElement)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"injector",{get:function(){return new $r(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}(le);function Wr(t,e,n){return new Yr(t,e,n)}var Yr=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 Ee(this._data.renderElement)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"injector",{get:function(){return new $r(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=sr(t),t=t.parent;return t?new $r(t,e):new $r(this._view,null)},enumerable:!0,configurable:!0}),t.prototype.clear=function(){for(var t=this._embeddedViews.length-1;t>=0;t--){var e=Nr(this._data,t);Gi.destroyView(e)}},t.prototype.get=function(t){var e=this._embeddedViews[t];if(e){var n=new Xr(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 i=t.createEmbeddedView(e||{});return this.insert(i,n),i},t.prototype.createComponent=function(t,e,n,i,r){var o=n||this.parentInjector;r||t instanceof me||(r=o.get(ge));var s=t.create(o,i,void 0,r);return this.insert(s.hostView,e),s},t.prototype.insert=function(t,e){if(t.destroyed)throw new Error("Cannot insert a destroyed View in a ViewContainer!");var n,i,r,o,s=t;return o=(n=this._data).viewContainer._embeddedViews,null==(i=e)&&(i=o.length),(r=s._view).viewContainerParent=this._view,zr(o,i,r),function(t,e){var n=or(e);if(n&&n!==t&&!(16&e.state)){e.state|=16;var i=n.template._projectedViews;i||(i=n.template._projectedViews=[]),i.push(e),function(t,n){if(!(4&n.flags)){e.parent.def.nodeFlags|=4,n.flags|=4;for(var i=n.parent;i;)i.childFlags|=4,i=i.parent}}(0,e.parentNodeDef)}}(n,r),Gi.dirtyParentQueries(r),jr(n,i>0?o[i-1]:null,r),s.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,i,r,o,s,a=this._embeddedViews.indexOf(t._view);return r=e,s=(o=(n=this._data).viewContainer._embeddedViews)[i=a],Br(o,i),null==r&&(r=o.length),zr(o,r,s),Gi.dirtyParentQueries(s),Vr(s),jr(n,r>0?o[r-1]:null,s),t},t.prototype.indexOf=function(t){return this._embeddedViews.indexOf(t._view)},t.prototype.remove=function(t){var e=Nr(this._data,t);e&&Gi.destroyView(e)},t.prototype.detach=function(t){var e=Nr(this._data,t);return e?new Xr(e):null},t}();function Kr(t){return new Xr(t)}var Xr=function(){function t(t){this._view=t,this._viewContainerRef=null,this._appRef=null}return Object.defineProperty(t.prototype,"rootNodes",{get:function(){return gr(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(){nr(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{Gi.checkAndUpdateView(this._view)}finally{t.end&&t.end()}},t.prototype.checkNoChanges=function(){Gi.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)),Gi.destroyView(this._view)},t.prototype.detachFromAppRef=function(){this._appRef=null,Vr(this._view),Gi.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 Zr(t,e){return new Qr(t,e)}var Qr=function(t){function e(e,n){var i=t.call(this)||this;return i._parentView=e,i._def=n,i}return r(e,t),e.prototype.createEmbeddedView=function(t){return new Xr(Gi.createEmbeddedView(this._parentView,this._def,this._def.element.template,t))},Object.defineProperty(e.prototype,"elementRef",{get:function(){return new Ee(ji(this._parentView,this._def.nodeIndex).renderElement)},enumerable:!0,configurable:!0}),e}(Pe);function Jr(t,e){return new $r(t,e)}var $r=function(){function t(t,e){this.view=t,this.elDef=e}return t.prototype.get=function(t,e){return void 0===e&&(e=zt.THROW_IF_NOT_FOUND),Gi.resolveDep(this.view,this.elDef,!!this.elDef&&0!=(33554432&this.elDef.flags),{flags:0,token:t,tokenKey:Ki(t)},e)},t}();function to(t,e){var n=t.def.nodes[e];if(1&n.flags){var i=ji(t,n.nodeIndex);return n.element.template?i.template:i.renderElement}if(2&n.flags)return Ni(t,n.nodeIndex).renderText;if(20240&n.flags)return Vi(t,n.nodeIndex).instance;throw new Error("Illegal state: read nodeValue for node index "+e)}function eo(t){return new no(t.renderer)}var no=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=u(Cr(e),2),i=this.delegate.createElement(n[1],n[0]);return t&&this.delegate.appendChild(t,i),i},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 i=0;i0,i=e.provider;switch(201347067&e.flags){case 512:return Co(t,e.parent,n,i.value,i.deps);case 1024:return function(t,e,n,i,r){var o=r.length;switch(o){case 0:return i();case 1:return i(Eo(t,e,n,r[0]));case 2:return i(Eo(t,e,n,r[0]),Eo(t,e,n,r[1]));case 3:return i(Eo(t,e,n,r[0]),Eo(t,e,n,r[1]),Eo(t,e,n,r[2]));default:for(var s=Array(o),a=0;a0)u=m,Uo(m)||(c=m);else for(;u&&f===u.nodeIndex+u.childCount;){var _=u.parent;_&&(_.childFlags|=u.childFlags,_.childMatchedQueries|=u.childMatchedQueries),c=(u=_)&&Uo(u)?u.renderParent:u}}return{factory:null,nodeFlags:s,rootNodeFlags:a,nodeMatchedQueries:l,flags:t,nodes:e,updateDirectives:n||Wi,updateRenderer:i||Wi,handleEvent:function(t,n,i,r){return e[n].element.handleEvent(t,i,r)},bindingCount:r,outputCount:o,lastRenderRootNode:d}}function Uo(t){return 0!=(1&t.flags)&&null===t.element.name}function Ho(t,e,n){var i=e.element&&e.element.template;if(i){if(!i.lastRenderRootNode)throw new Error("Illegal State: Embedded templates without nodes are not allowed!");if(i.lastRenderRootNode&&16777216&i.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 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 qo(t,e,n,i){var r=Ko(t.root,t.renderer,t,e,n);return Xo(r,t.component,i),Zo(r),r}function Wo(t,e,n){var i=Ko(t,t.renderer,null,null,e);return Xo(i,n,n),Zo(i),i}function Yo(t,e,n,i){var r,o=e.element.componentRendererType;return r=o?t.root.rendererFactory.createRenderer(i,o):t.root.renderer,Ko(t.root,r,t,e.element.componentProvider,n)}function Ko(t,e,n,i,r){var o=new Array(r.nodes.length),s=r.outputCount?new Array(r.outputCount):null;return{def:r,parent:n,viewContainerParent:null,parentNodeDef:i,context:null,component:null,nodes:o,state:13,root:t,renderer:e,oldValues:new Array(r.bindingCount),disposables:s,initIndex:-1}}function Xo(t,e,n){t.component=e,t.context=n}function Zo(t){var e;lr(t)&&(e=ji(t.parent,t.parentNodeDef.parent.nodeIndex).renderElement);for(var n=t.def,i=t.nodes,r=0;r0&&Rr(t,e,0,n)&&(d=!0),p>1&&Rr(t,e,1,i)&&(d=!0),p>2&&Rr(t,e,2,r)&&(d=!0),p>3&&Rr(t,e,3,o)&&(d=!0),p>4&&Rr(t,e,4,s)&&(d=!0),p>5&&Rr(t,e,5,a)&&(d=!0),p>6&&Rr(t,e,6,l)&&(d=!0),p>7&&Rr(t,e,7,u)&&(d=!0),p>8&&Rr(t,e,8,c)&&(d=!0),p>9&&Rr(t,e,9,h)&&(d=!0),d}(t,e,n,i,r,o,s,a,l,u,c,h);case 2:return function(t,e,n,i,r,o,s,a,l,u,c,h){var p=!1,d=e.bindings,f=d.length;if(f>0&&tr(t,e,0,n)&&(p=!0),f>1&&tr(t,e,1,i)&&(p=!0),f>2&&tr(t,e,2,r)&&(p=!0),f>3&&tr(t,e,3,o)&&(p=!0),f>4&&tr(t,e,4,s)&&(p=!0),f>5&&tr(t,e,5,a)&&(p=!0),f>6&&tr(t,e,6,l)&&(p=!0),f>7&&tr(t,e,7,u)&&(p=!0),f>8&&tr(t,e,8,c)&&(p=!0),f>9&&tr(t,e,9,h)&&(p=!0),p){var m=e.text.prefix;f>0&&(m+=Bo(n,d[0])),f>1&&(m+=Bo(i,d[1])),f>2&&(m+=Bo(r,d[2])),f>3&&(m+=Bo(o,d[3])),f>4&&(m+=Bo(s,d[4])),f>5&&(m+=Bo(a,d[5])),f>6&&(m+=Bo(l,d[6])),f>7&&(m+=Bo(u,d[7])),f>8&&(m+=Bo(c,d[8])),f>9&&(m+=Bo(h,d[9]));var g=Ni(t,e.nodeIndex).renderText;t.renderer.setValue(g,m)}return p}(t,e,n,i,r,o,s,a,l,u,c,h);case 16384:return function(t,e,n,i,r,o,s,a,l,u,c,h){var p=Vi(t,e.nodeIndex),d=p.instance,f=!1,m=void 0,g=e.bindings.length;return g>0&&$i(t,e,0,n)&&(f=!0,m=To(t,p,e,0,n,m)),g>1&&$i(t,e,1,i)&&(f=!0,m=To(t,p,e,1,i,m)),g>2&&$i(t,e,2,r)&&(f=!0,m=To(t,p,e,2,r,m)),g>3&&$i(t,e,3,o)&&(f=!0,m=To(t,p,e,3,o,m)),g>4&&$i(t,e,4,s)&&(f=!0,m=To(t,p,e,4,s,m)),g>5&&$i(t,e,5,a)&&(f=!0,m=To(t,p,e,5,a,m)),g>6&&$i(t,e,6,l)&&(f=!0,m=To(t,p,e,6,l,m)),g>7&&$i(t,e,7,u)&&(f=!0,m=To(t,p,e,7,u,m)),g>8&&$i(t,e,8,c)&&(f=!0,m=To(t,p,e,8,c,m)),g>9&&$i(t,e,9,h)&&(f=!0,m=To(t,p,e,9,h,m)),m&&d.ngOnChanges(m),65536&e.flags&&Mi(t,256,e.nodeIndex)&&d.ngOnInit(),262144&e.flags&&d.ngDoCheck(),f}(t,e,n,i,r,o,s,a,l,u,c,h);case 32:case 64:case 128:return function(t,e,n,i,r,o,s,a,l,u,c,h){var p=e.bindings,d=!1,f=p.length;if(f>0&&tr(t,e,0,n)&&(d=!0),f>1&&tr(t,e,1,i)&&(d=!0),f>2&&tr(t,e,2,r)&&(d=!0),f>3&&tr(t,e,3,o)&&(d=!0),f>4&&tr(t,e,4,s)&&(d=!0),f>5&&tr(t,e,5,a)&&(d=!0),f>6&&tr(t,e,6,l)&&(d=!0),f>7&&tr(t,e,7,u)&&(d=!0),f>8&&tr(t,e,8,c)&&(d=!0),f>9&&tr(t,e,9,h)&&(d=!0),d){var m=zi(t,e.nodeIndex),g=void 0;switch(201347067&e.flags){case 32:g=new Array(p.length),f>0&&(g[0]=n),f>1&&(g[1]=i),f>2&&(g[2]=r),f>3&&(g[3]=o),f>4&&(g[4]=s),f>5&&(g[5]=a),f>6&&(g[6]=l),f>7&&(g[7]=u),f>8&&(g[8]=c),f>9&&(g[9]=h);break;case 64:g={},f>0&&(g[p[0].name]=n),f>1&&(g[p[1].name]=i),f>2&&(g[p[2].name]=r),f>3&&(g[p[3].name]=o),f>4&&(g[p[4].name]=s),f>5&&(g[p[5].name]=a),f>6&&(g[p[6].name]=l),f>7&&(g[p[7].name]=u),f>8&&(g[p[8].name]=c),f>9&&(g[p[9].name]=h);break;case 128:var y=n;switch(f){case 1:g=y.transform(n);break;case 2:g=y.transform(i);break;case 3:g=y.transform(i,r);break;case 4:g=y.transform(i,r,o);break;case 5:g=y.transform(i,r,o,s);break;case 6:g=y.transform(i,r,o,s,a);break;case 7:g=y.transform(i,r,o,s,a,l);break;case 8:g=y.transform(i,r,o,s,a,l,u);break;case 9:g=y.transform(i,r,o,s,a,l,u,c);break;case 10:g=y.transform(i,r,o,s,a,l,u,c,h)}}m.value=g}return d}(t,e,n,i,r,o,s,a,l,u,c,h);default:throw"unreachable"}}(t,e,i,r,o,s,a,l,u,h,p,d):function(t,e,n){switch(201347067&e.flags){case 1:return function(t,e,n){for(var i=!1,r=0;r0&&er(t,e,0,n),p>1&&er(t,e,1,i),p>2&&er(t,e,2,r),p>3&&er(t,e,3,o),p>4&&er(t,e,4,s),p>5&&er(t,e,5,a),p>6&&er(t,e,6,l),p>7&&er(t,e,7,u),p>8&&er(t,e,8,c),p>9&&er(t,e,9,h)}(t,e,i,r,o,s,a,l,u,c,h,p):function(t,e,n){for(var i=0;i0){var o=new Set(t.modules);_s.forEach(function(e,i){if(o.has(gt(i).providedIn)){var r={token:i,flags:e.flags|(n?4096:0),deps:pr(e.deps),value:e.value,index:t.providers.length};t.providers.push(r),t.providersByKey[Ki(i)]=r}})}}(t=t.factory(function(){return Wi})),t):t}(i))}var ys=new Map,_s=new Map,vs=new Map;function bs(t){var e;ys.set(t.token,t),"function"==typeof t.token&&(e=gt(t.token))&&"function"==typeof e.providedIn&&_s.set(t.token,t)}function ws(t,e){var n=mr(e.viewDefFactory),i=mr(n.nodes[0].element.componentView);vs.set(t,i)}function Cs(){ys.clear(),_s.clear(),vs.clear()}function xs(t){if(0===ys.size)return t;var e=function(t){for(var e=[],n=null,i=0;i0)for(var n=this.count>=this.total?this.total:this.count,i=this.ring,r=0;r=2;return function(i){return i.pipe(t?aa(function(e,n){return t(e,n,i)}):et,pa(1),n?va(e):ma(function(){return new ia}))}}function xa(t,e){return function(n){return n.lift(new Ea(t,e,n))}}var Ea=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 Sa(t,this.predicate,this.thisArg,this.source))},t}(),Sa=function(t){function e(e,n,i,r){var o=t.call(this,e)||this;return o.predicate=n,o.thisArg=i,o.source=r,o.index=0,o.thisArg=i||o,o}return r(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}(x);function Ta(t){return function(e){var n=new Ia(t),i=e.lift(n);return n.caught=i}}var Ia=function(){function t(t){this.selector=t}return t.prototype.call=function(t,e){return e.subscribe(new Oa(t,this.selector,this.caught))},t}(),Oa=function(t){function e(e,n,i){var r=t.call(this,e)||this;return r.selector=n,r.caught=i,r}return r(e,t),e.prototype.error=function(e){if(!this.isStopped){var n=void 0;try{n=this.selector(e,this.caught)}catch(r){return void t.prototype.error.call(this,r)}this._unsubscribeAndRecycle();var i=new j(this,void 0,void 0);this.add(i),q(this,n,void 0,void 0,i)}},e}(W);function Ra(t){return function(e){return 0===t?oa():e.lift(new ka(t))}}var ka=function(){function t(t){if(this.total=t,this.total<0)throw new ha}return t.prototype.call=function(t,e){return e.subscribe(new Pa(t,this.total))},t}(),Pa=function(t){function e(e,n){var i=t.call(this,e)||this;return i.total=n,i.count=0,i}return r(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}(x);function Aa(t,e){var n=arguments.length>=2;return function(i){return i.pipe(t?aa(function(e,n){return t(e,n,i)}):et,Ra(1),n?va(e):ma(function(){return new ia}))}}function La(t,e){return"function"==typeof e?function(n){return n.pipe(La(function(n,i){return Q(t(n,i)).pipe(Y(function(t,r){return e(n,t,i,r)}))}))}:function(e){return e.lift(new Da(t))}}var Da=function(){function t(t){this.project=t}return t.prototype.call=function(t,e){return e.subscribe(new Fa(t,this.project))},t}(),Fa=function(t){function e(e,n){var i=t.call(this,e)||this;return i.project=n,i.index=0,i}return r(e,t),e.prototype._next=function(t){var e,n=this.index++;try{e=this.project(t,n)}catch(i){return void this.destination.error(i)}this._innerSub(e,t,n)},e.prototype._innerSub=function(t,e,n){var i=this.innerSubscription;i&&i.unsubscribe();var r=new j(this,void 0,void 0);this.destination.add(r),this.innerSubscription=q(this,t,e,n,r)},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,i,r){this.destination.next(e)},e}(W);function Ma(t,e){return J(t,e,1)}function Na(t,e){var n=!1;return arguments.length>=2&&(n=!0),function(i){return i.lift(new ja(t,e,n))}}var ja=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 Va(t,this.accumulator,this.seed,this.hasSeed))},t}(),Va=function(t){function e(e,n,i,r){var o=t.call(this,e)||this;return o.accumulator=n,o._seed=i,o.hasSeed=r,o.index=0,o}return r(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(i){this.destination.error(i)}this.seed=e,this.destination.next(e)},e}(x);function za(t,e,n){return function(i){return i.lift(new Ba(t,e,n))}}var Ba=function(){function t(t,e,n){this.nextOrObserver=t,this.error=e,this.complete=n}return t.prototype.call=function(t,e){return e.subscribe(new Ga(t,this.nextOrObserver,this.error,this.complete))},t}(),Ga=function(t){function e(e,n,i,r){var o=t.call(this,e)||this;return o._tapNext=T,o._tapError=T,o._tapComplete=T,o._tapError=i||T,o._tapComplete=r||T,d(n)?(o._context=o,o._tapNext=n):n&&(o._context=n,o._tapNext=n.next||T,o._tapError=n.error||T,o._tapComplete=n.complete||T),o}return r(e,t),e.prototype._next=function(t){try{this._tapNext.call(this._context,t)}catch(e){return void this.destination.error(e)}this.destination.next(t)},e.prototype._error=function(t){try{this._tapError.call(this._context,t)}catch(t){return void this.destination.error(t)}this.destination.error(t)},e.prototype._complete=function(){try{this._tapComplete.call(this._context)}catch(t){return void this.destination.error(t)}return this.destination.complete()},e}(x);function Ua(t){return function(e){return e.lift(new Ha(t))}}var Ha=function(){function t(t){this.callback=t}return t.prototype.call=function(t,e){return e.subscribe(new qa(t,this.callback))},t}(),qa=function(t){function e(e,n){var i=t.call(this,e)||this;return i.add(new g(n)),i}return r(e,t),e}(x),Wa=function(){return function(){}}(),Ya=new yt("Location Initialized"),Ka=function(){return function(){}}(),Xa=new yt("appBaseHref"),Za=function(){function t(t){var n=this;this._subject=new ke,this._platformStrategy=t;var i=this._platformStrategy.getBaseHref();this._baseHref=e.stripTrailingSlash(Qa(i)),this._platformStrategy.onPopState(function(t){n._subject.emit({url:n.path(!0),pop:!0,state:t.state,type:t.type})})}var e;return e=t,t.prototype.path=function(t){return void 0===t&&(t=!1),this.normalize(this._platformStrategy.path(t))},t.prototype.isCurrentPathEqualTo=function(t,n){return void 0===n&&(n=""),this.path()==this.normalize(t+e.normalizeQueryParams(n))},t.prototype.normalize=function(t){return e.stripTrailingSlash(function(t,e){return t&&e.startsWith(t)?e.substring(t.length):e}(this._baseHref,Qa(t)))},t.prototype.prepareExternalUrl=function(t){return t&&"/"!==t[0]&&(t="/"+t),this._platformStrategy.prepareExternalUrl(t)},t.prototype.go=function(t,e,n){void 0===e&&(e=""),void 0===n&&(n=null),this._platformStrategy.pushState(n,"",t,e)},t.prototype.replaceState=function(t,e,n){void 0===e&&(e=""),void 0===n&&(n=null),this._platformStrategy.replaceState(n,"",t,e)},t.prototype.forward=function(){this._platformStrategy.forward()},t.prototype.back=function(){this._platformStrategy.back()},t.prototype.subscribe=function(t,e,n){return this._subject.subscribe({next:t,error:e,complete:n})},t.normalizeQueryParams=function(t){return t&&"?"!==t[0]?"?"+t:t},t.joinWithSlash=function(t,e){if(0==t.length)return e;if(0==e.length)return t;var n=0;return t.endsWith("/")&&n++,e.startsWith("/")&&n++,2==n?t+e.substring(1):1==n?t+e:t+"/"+e},t.stripTrailingSlash=function(t){var e=t.match(/#|\?|$/),n=e&&e.index||t.length;return t.slice(0,n-("/"===t[n-1]?1:0))+t.slice(n)},t}();function Qa(t){return t.replace(/\/index.html$/,"")}var Ja=function(t){function e(e,n){var i=t.call(this)||this;return i._platformLocation=e,i._baseHref="",null!=n&&(i._baseHref=n),i}return r(e,t),e.prototype.onPopState=function(t){this._platformLocation.onPopState(t),this._platformLocation.onHashChange(t)},e.prototype.getBaseHref=function(){return this._baseHref},e.prototype.path=function(t){void 0===t&&(t=!1);var e=this._platformLocation.hash;return null==e&&(e="#"),e.length>0?e.substring(1):e},e.prototype.prepareExternalUrl=function(t){var e=Za.joinWithSlash(this._baseHref,t);return e.length>0?"#"+e:e},e.prototype.pushState=function(t,e,n,i){var r=this.prepareExternalUrl(n+Za.normalizeQueryParams(i));0==r.length&&(r=this._platformLocation.pathname),this._platformLocation.pushState(t,e,r)},e.prototype.replaceState=function(t,e,n,i){var r=this.prepareExternalUrl(n+Za.normalizeQueryParams(i));0==r.length&&(r=this._platformLocation.pathname),this._platformLocation.replaceState(t,e,r)},e.prototype.forward=function(){this._platformLocation.forward()},e.prototype.back=function(){this._platformLocation.back()},e}(Ka),$a=function(t){function e(e,n){var i=t.call(this)||this;if(i._platformLocation=e,null==n&&(n=i._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 i._baseHref=n,i}return r(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 Za.joinWithSlash(this._baseHref,t)},e.prototype.path=function(t){void 0===t&&(t=!1);var e=this._platformLocation.pathname+Za.normalizeQueryParams(this._platformLocation.search),n=this._platformLocation.hash;return n&&t?""+e+n:e},e.prototype.pushState=function(t,e,n,i){var r=this.prepareExternalUrl(n+Za.normalizeQueryParams(i));this._platformLocation.pushState(t,e,r)},e.prototype.replaceState=function(t,e,n,i){var r=this.prepareExternalUrl(n+Za.normalizeQueryParams(i));this._platformLocation.replaceState(t,e,r)},e.prototype.forward=function(){this._platformLocation.forward()},e.prototype.back=function(){this._platformLocation.back()},e}(Ka),tl=void 0,el=["en",[["a","p"],["AM","PM"],tl],[["AM","PM"],tl,tl],[["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"]],tl,[["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"]],tl,[["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}",tl,"{1} 'at' {0}",tl],[".",",",";","%","+","-","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}],nl={},il=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}({}),rl=new yt("UseV4Plurals"),ol=function(){return function(){}}(),sl=function(t){function e(e,n){var i=t.call(this)||this;return i.locale=e,i.deprecatedPluralFn=n,i}return r(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=nl[e];if(n)return n;var i=e.split("-")[0];if(n=nl[i])return n;if("en"===i)return el;throw new Error('Missing locale data for the locale "'+t+'".')}(t)[18]}(e||this.locale)(t)){case il.Zero:return"zero";case il.One:return"one";case il.Two:return"two";case il.Few:return"few";case il.Many:return"many";default:return"other"}},e}(ol);function al(t,e){var n,i;e=encodeURIComponent(e);try{for(var r=l(t.split(";")),o=r.next();!o.done;o=r.next()){var s=o.value,a=s.indexOf("="),c=u(-1==a?[s,""]:[s.slice(0,a),s.slice(a+1)],2),h=c[1];if(c[0].trim()===e)return decodeURIComponent(h)}}catch(p){n={error:p}}finally{try{o&&!o.done&&(i=r.return)&&i.call(r)}finally{if(n)throw n.error}}return null}var ll=function(){function t(t,e,n,i){this._iterableDiffers=t,this._keyValueDiffers=e,this._ngEl=n,this._renderer=i,this._initialClasses=[]}return Object.defineProperty(t.prototype,"klass",{set:function(t){this._removeClasses(this._initialClasses),this._initialClasses="string"==typeof t?t.split(/\s+/):[],this._applyClasses(this._initialClasses),this._applyClasses(this._rawClass)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"ngClass",{set:function(t){this._removeClasses(this._rawClass),this._applyClasses(this._initialClasses),this._iterableDiffer=null,this._keyValueDiffer=null,this._rawClass="string"==typeof t?t.split(/\s+/):t,this._rawClass&&(se(this._rawClass)?this._iterableDiffer=this._iterableDiffers.find(this._rawClass).create():this._keyValueDiffer=this._keyValueDiffers.find(this._rawClass).create())},enumerable:!0,configurable:!0}),t.prototype.ngDoCheck=function(){if(this._iterableDiffer){var t=this._iterableDiffer.diff(this._rawClass);t&&this._applyIterableChanges(t)}else if(this._keyValueDiffer){var e=this._keyValueDiffer.diff(this._rawClass);e&&this._applyKeyValueChanges(e)}},t.prototype._applyKeyValueChanges=function(t){var e=this;t.forEachAddedItem(function(t){return e._toggleClass(t.key,t.currentValue)}),t.forEachChangedItem(function(t){return e._toggleClass(t.key,t.currentValue)}),t.forEachRemovedItem(function(t){t.previousValue&&e._toggleClass(t.key,!1)})},t.prototype._applyIterableChanges=function(t){var e=this;t.forEachAddedItem(function(t){if("string"!=typeof t.item)throw new Error("NgClass can only toggle CSS classes expressed as strings, got "+Rt(t.item));e._toggleClass(t.item,!0)}),t.forEachRemovedItem(function(t){return e._toggleClass(t.item,!1)})},t.prototype._applyClasses=function(t){var e=this;t&&(Array.isArray(t)||t instanceof Set?t.forEach(function(t){return e._toggleClass(t,!0)}):Object.keys(t).forEach(function(n){return e._toggleClass(n,!!t[n])}))},t.prototype._removeClasses=function(t){var e=this;t&&(Array.isArray(t)||t instanceof Set?t.forEach(function(t){return e._toggleClass(t,!1)}):Object.keys(t).forEach(function(t){return e._toggleClass(t,!1)}))},t.prototype._toggleClass=function(t,e){var n=this;(t=t.trim())&&t.split(/\s+/g).forEach(function(t){e?n._renderer.addClass(n._ngEl.nativeElement,t):n._renderer.removeClass(n._ngEl.nativeElement,t)})},t}(),ul=function(){function t(t,e,n,i){this.$implicit=t,this.ngForOf=e,this.index=n,this.count=i}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}(),cl=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){De()&&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(i){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,i,r){if(null==t.previousIndex){var o=e._viewContainer.createEmbeddedView(e._template,new ul(null,e._ngForOf,-1,-1),r),s=new hl(t,o);n.push(s)}else null==r?e._viewContainer.remove(i):(o=e._viewContainer.get(i),e._viewContainer.move(o,r),s=new hl(t,o),n.push(s))});for(var i=0;i0},e.prototype.tagName=function(t){return t.tagName},e.prototype.attributeMap=function(t){for(var e=new Map,n=t.attributes,i=0;i0;s||(s=t[o]=[]);var l=yu(e)?Zone.root:Zone.current;if(0===s.length)s.push({zone:l,handler:r});else{for(var u=!1,c=0;c-1},e}(Zl),Su=["alt","control","meta","shift"],Tu={alt:function(t){return t.altKey},control:function(t){return t.ctrlKey},meta:function(t){return t.metaKey},shift:function(t){return t.shiftKey}},Iu=function(t){function e(e){return t.call(this,e)||this}var n;return r(e,t),n=e,e.prototype.supports=function(t){return null!=n.parseEventName(t)},e.prototype.addEventListener=function(t,e,i){var r=n.parseEventName(e),o=n.eventCallback(r.fullKey,i,this.manager.getZone());return this.manager.getZone().runOutsideAngular(function(){return Pl().onAndCancel(t,r.domEventName,o)})},e.parseEventName=function(t){var e=t.toLowerCase().split("."),i=e.shift();if(0===e.length||"keydown"!==i&&"keyup"!==i)return null;var r=n._normalizeKey(e.pop()),o="";if(Su.forEach(function(t){var n=e.indexOf(t);n>-1&&(e.splice(n,1),o+=t+".")}),o+=r,0!=e.length||0===r.length)return null;var s={};return s.domEventName=i,s.fullKey=o,s},e.getEventFullKey=function(t){var e="",n=Pl().getEventKey(t);return" "===(n=n.toLowerCase())?n="space":"."===n&&(n="dot"),Su.forEach(function(i){i!=n&&(0,Tu[i])(t)&&(e+=i+".")}),e+=n},e.eventCallback=function(t,e,i){return function(r){n.getEventFullKey(r)===t&&i.runGuarded(function(){return e(r)})}},e._normalizeKey=function(t){switch(t){case"esc":return"escape";default:return t}},e}(Zl),Ou=function(){return function(){}}(),Ru=function(t){function e(e){var n=t.call(this)||this;return n._doc=e,n}return r(e,t),e.prototype.sanitize=function(t,e){if(null==e)return null;switch(t){case en.NONE:return e;case en.HTML:return e instanceof Pu?e.changingThisBreaksApplicationSecurity:(this.checkNotSafeValue(e,"HTML"),function(t,e){var n=null;try{Be=Be||new Fe(t);var i=e?String(e):"";n=Be.getInertBodyElement(i);var r=5,o=i;do{if(0===r)throw new Error("Failed to sanitize html because the input is unstable");r--,i=o,o=n.innerHTML,n=Be.getInertBodyElement(i)}while(i!==o);var s=new Ze,a=s.sanitizeChildren(tn(n)||n);return De()&&s.sanitizedSomething&&console.warn("WARNING: sanitizing HTML stripped some content (see http://g.co/ng/security#xss)."),a}finally{if(n)for(var l=tn(n)||n;l.firstChild;)l.removeChild(l.firstChild)}}(this._doc,String(e)));case en.STYLE:return e instanceof Au?e.changingThisBreaksApplicationSecurity:(this.checkNotSafeValue(e,"Style"),function(t){if(!(t=String(t).trim()))return"";var e=t.match(on);return e&&je(e[1])===e[1]||t.match(rn)&&function(t){for(var e=!0,n=!0,i=0;it.length)return null;if("full"===n.pathMatch&&(e.hasChildren()||i.length0?t[t.length-1]:null}function mc(t,e){for(var n in t)t.hasOwnProperty(n)&&e(t[n],n)}function gc(t){return t.pipe(nt(),xa(function(t){return!0===t}))}function yc(t){return mn(t)?t:fn(t)?Q(Promise.resolve(t)):ta(t)}function _c(t,e,n){return n?function(t,e){return pc(t,e)}(t.queryParams,e.queryParams)&&function t(e,n){if(!Cc(e.segments,n.segments))return!1;if(e.numberOfChildren!==n.numberOfChildren)return!1;for(var i in n.children){if(!e.children[i])return!1;if(!t(e.children[i],n.children[i]))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,i,r){if(n.segments.length>r.length)return!!Cc(s=n.segments.slice(0,r.length),r)&&!i.hasChildren();if(n.segments.length===r.length){if(!Cc(n.segments,r))return!1;for(var o in i.children){if(!n.children[o])return!1;if(!t(n.children[o],i.children[o]))return!1}return!0}var s=r.slice(0,n.segments.length),a=r.slice(n.segments.length);return!!Cc(n.segments,s)&&!!n.children[ic]&&e(n.children[ic],i,a)}(e,n,n.segments)}(t.root,e.root)}var vc=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=oc(this.queryParams)),this._queryParamMap},enumerable:!0,configurable:!0}),t.prototype.toString=function(){return Tc.serialize(this)},t}(),bc=function(){function t(t,e){var n=this;this.segments=t,this.children=e,this.parent=null,mc(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 Ic(this)},t}(),wc=function(){function t(t,e){this.path=t,this.parameters=e}return Object.defineProperty(t.prototype,"parameterMap",{get:function(){return this._parameterMap||(this._parameterMap=oc(this.parameters)),this._parameterMap},enumerable:!0,configurable:!0}),t.prototype.toString=function(){return Lc(this)},t}();function Cc(t,e){return t.length===e.length&&t.every(function(t,n){return t.path===e[n].path})}function xc(t,e){var n=[];return mc(t.children,function(t,i){i===ic&&(n=n.concat(e(t,i)))}),mc(t.children,function(t,i){i!==ic&&(n=n.concat(e(t,i)))}),n}var Ec=function(){return function(){}}(),Sc=function(){function t(){}return t.prototype.parse=function(t){var e=new jc(t);return new vc(e.parseRootSegment(),e.parseQueryParams(),e.parseFragment())},t.prototype.serialize=function(t){var e,n;return"/"+function t(e,n){if(!e.hasChildren())return Ic(e);if(n){var i=e.children[ic]?t(e.children[ic],!1):"",r=[];return mc(e.children,function(e,n){n!==ic&&r.push(n+":"+t(e,!1))}),r.length>0?i+"("+r.join("//")+")":i}var o=xc(e,function(n,i){return i===ic?[t(e.children[ic],!1)]:[i+":"+t(n,!1)]});return Ic(e)+"/("+o.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 Rc(t)+"="+Rc(e)}).join("&"):Rc(t)+"="+Rc(n)})).length?"?"+n.join("&"):"")+("string"==typeof t.fragment?"#"+encodeURI(t.fragment):"")},t}(),Tc=new Sc;function Ic(t){return t.segments.map(function(t){return Lc(t)}).join("/")}function Oc(t){return encodeURIComponent(t).replace(/%40/g,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",")}function Rc(t){return Oc(t).replace(/%3B/gi,";")}function kc(t){return Oc(t).replace(/\(/g,"%28").replace(/\)/g,"%29").replace(/%26/gi,"&")}function Pc(t){return decodeURIComponent(t)}function Ac(t){return Pc(t.replace(/\+/g,"%20"))}function Lc(t){return""+kc(t.path)+(e=t.parameters,Object.keys(e).map(function(t){return";"+kc(t)+"="+kc(e[t])}).join(""));var e}var Dc=/^[^\/()?;=#]+/;function Fc(t){var e=t.match(Dc);return e?e[0]:""}var Mc=/^[^=?&#]+/,Nc=/^[^?&#]+/,jc=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 bc([],{}):new bc([],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[ic]=new bc(t,e)),n},t.prototype.parseSegment=function(){var t=Fc(this.remaining);if(""===t&&this.peekStartsWith(";"))throw new Error("Empty path url segment cannot have parameters: '"+this.remaining+"'.");return this.capture(t),new wc(Pc(t),this.parseMatrixParams())},t.prototype.parseMatrixParams=function(){for(var t={};this.consumeOptional(";");)this.parseParam(t);return t},t.prototype.parseParam=function(t){var e=Fc(this.remaining);if(e){this.capture(e);var n="";if(this.consumeOptional("=")){var i=Fc(this.remaining);i&&this.capture(n=i)}t[Pc(e)]=Pc(n)}},t.prototype.parseQueryParam=function(t){var e,n=(e=this.remaining.match(Mc))?e[0]:"";if(n){this.capture(n);var i="";if(this.consumeOptional("=")){var r=function(t){var e=t.match(Nc);return e?e[0]:""}(this.remaining);r&&this.capture(i=r)}var o=Ac(n),s=Ac(i);if(t.hasOwnProperty(o)){var a=t[o];Array.isArray(a)||(t[o]=a=[a]),a.push(s)}else t[o]=s}},t.prototype.parseParens=function(t){var e={};for(this.capture("(");!this.consumeOptional(")")&&this.remaining.length>0;){var n=Fc(this.remaining),i=this.remaining[n.length];if("/"!==i&&")"!==i&&";"!==i)throw new Error("Cannot parse url '"+this.url+"'");var r=void 0;n.indexOf(":")>-1?(r=n.substr(0,n.indexOf(":")),this.capture(r),this.capture(":")):t&&(r=ic);var o=this.parseChildren();e[r]=1===Object.keys(o).length?o[ic]:new bc([],o),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}(),Vc=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=zc(t,this._root);return e?e.children.map(function(t){return t.value}):[]},t.prototype.firstChild=function(t){var e=zc(t,this._root);return e&&e.children.length>0?e.children[0].value:null},t.prototype.siblings=function(t){var e=Bc(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 Bc(t,this._root).map(function(t){return t.value})},t}();function zc(t,e){var n,i;if(t===e.value)return e;try{for(var r=l(e.children),o=r.next();!o.done;o=r.next()){var s=zc(t,o.value);if(s)return s}}catch(a){n={error:a}}finally{try{o&&!o.done&&(i=r.return)&&i.call(r)}finally{if(n)throw n.error}}return null}function Bc(t,e){var n,i;if(t===e.value)return[e];try{for(var r=l(e.children),o=r.next();!o.done;o=r.next()){var s=Bc(t,o.value);if(s.length)return s.unshift(e),s}}catch(a){n={error:a}}finally{try{o&&!o.done&&(i=r.return)&&i.call(r)}finally{if(n)throw n.error}}return[]}var Gc=function(){function t(t,e){this.value=t,this.children=e}return t.prototype.toString=function(){return"TreeNode("+this.value+")"},t}();function Uc(t){var e={};return t&&t.children.forEach(function(t){return e[t.value.outlet]=t}),e}var Hc=function(t){function e(e,n){var i=t.call(this,e)||this;return i.snapshot=n,Zc(i,e),i}return r(e,t),e.prototype.toString=function(){return this.snapshot.toString()},e}(Vc);function qc(t,e){var n=function(t,e){var n=new Kc([],{},{},"",{},ic,e,null,t.root,-1,{});return new Xc("",new Gc(n,[]))}(t,e),i=new ea([new wc("",{})]),r=new ea({}),o=new ea({}),s=new ea({}),a=new ea(""),l=new Wc(i,r,s,a,o,ic,e,n.root);return l.snapshot=n.root,new Hc(new Gc(l,[]),n)}var Wc=function(){function t(t,e,n,i,r,o,s,a){this.url=t,this.params=e,this.queryParams=n,this.fragment=i,this.data=r,this.outlet=o,this.component=s,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(Y(function(t){return oc(t)}))),this._paramMap},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"queryParamMap",{get:function(){return this._queryParamMap||(this._queryParamMap=this.queryParams.pipe(Y(function(t){return oc(t)}))),this._queryParamMap},enumerable:!0,configurable:!0}),t.prototype.toString=function(){return this.snapshot?this.snapshot.toString():"Future("+this._futureSnapshot+")"},t}();function Yc(t,e){void 0===e&&(e="emptyOnly");var n=t.pathFromRoot,i=0;if("always"!==e)for(i=n.length-1;i>=1;){var r=n[i],s=n[i-1];if(r.routeConfig&&""===r.routeConfig.path)i--;else{if(s.component)break;i--}}return function(t){return t.reduce(function(t,e){return{params:o({},t.params,e.params),data:o({},t.data,e.data),resolve:o({},t.resolve,e._resolvedData)}},{params:{},data:{},resolve:{}})}(n.slice(i))}var Kc=function(){function t(t,e,n,i,r,o,s,a,l,u,c){this.url=t,this.params=e,this.queryParams=n,this.fragment=i,this.data=r,this.outlet=o,this.component=s,this.routeConfig=a,this._urlSegment=l,this._lastPathIndex=u,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=oc(this.params)),this._paramMap},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"queryParamMap",{get:function(){return this._queryParamMap||(this._queryParamMap=oc(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}(),Xc=function(t){function e(e,n){var i=t.call(this,n)||this;return i.url=e,Zc(i,n),i}return r(e,t),e.prototype.toString=function(){return Qc(this._root)},e}(Vc);function Zc(t,e){e.value._routerState=t,e.children.forEach(function(e){return Zc(t,e)})}function Qc(t){var e=t.children.length>0?" { "+t.children.map(Qc).join(", ")+" } ":"";return""+t.value+e}function Jc(t){if(t.snapshot){var e=t.snapshot,n=t._futureSnapshot;t.snapshot=n,pc(e.queryParams,n.queryParams)||t.queryParams.next(n.queryParams),e.fragment!==n.fragment&&t.fragment.next(n.fragment),pc(e.params,n.params)||t.params.next(n.params),function(t,e){if(t.length!==e.length)return!1;for(var n=0;n0&&th(n[0]))throw new Error("Root segment cannot have matrix parameters");var i=n.find(function(t){return"object"==typeof t&&null!=t&&t.outlets});if(i&&i!==fc(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}(),ih=function(){return function(t,e,n){this.segmentGroup=t,this.processChildren=e,this.index=n}}();function rh(t){return"object"==typeof t&&null!=t&&t.outlets?t.outlets[ic]:""+t}function oh(t,e,n){if(t||(t=new bc([],{})),0===t.segments.length&&t.hasChildren())return sh(t,e,n);var i=function(t,e,n){for(var i=0,r=e,o={match:!1,pathIndex:0,commandIndex:0};r=n.length)return o;var s=t.segments[r],a=rh(n[i]),l=i0&&void 0===a)break;if(a&&l&&"object"==typeof l&&void 0===l.outlets){if(!ch(a,l,s))return o;i+=2}else{if(!ch(a,{},s))return o;i++}r++}return{match:!0,pathIndex:r,commandIndex:i}}(t,e,n),r=n.slice(i.commandIndex);if(i.match&&i.pathIndex0?new bc([],((i={})[ic]=t,i)):t;return new vc(r,e,n)},t.prototype.expandSegmentGroup=function(t,e,n,i){return 0===n.segments.length&&n.hasChildren()?this.expandChildren(t,e,n).pipe(Y(function(t){return new bc([],t)})):this.expandSegment(t,n,e,n.segments,i,!0)},t.prototype.expandChildren=function(t,e,n){var i=this;return function(n,r){if(0===Object.keys(n).length)return ta({});var o=[],s=[],a={};return mc(n,function(n,r){var l,u,c=(l=r,u=n,i.expandSegmentGroup(t,e,u,l)).pipe(Y(function(t){return a[r]=t}));r===ic?o.push(c):s.push(c)}),ta.apply(null,o.concat(s)).pipe(sa(),Ca(),Y(function(){return a}))}(n.children)},t.prototype.expandSegment=function(t,e,n,i,r,o){var s=this;return ta.apply(void 0,c(n)).pipe(Y(function(a){return s.expandSegmentAgainstRoute(t,e,n,a,i,r,o).pipe(Ta(function(t){if(t instanceof dh)return ta(null);throw t}))}),sa(),Aa(function(t){return!!t}),Ta(function(t,n){if(t instanceof ia||"EmptyError"===t.name){if(s.noLeftoversInUrl(e,i,r))return ta(new bc([],{}));throw new dh(e)}throw t}))},t.prototype.noLeftoversInUrl=function(t,e,n){return 0===e.length&&!t.children[n]},t.prototype.expandSegmentAgainstRoute=function(t,e,n,i,r,o,s){return Ch(i)!==o?mh(e):void 0===i.redirectTo?this.matchSegmentAgainstRoute(t,e,i,r):s&&this.allowRedirects?this.expandSegmentAgainstRouteUsingRedirect(t,e,n,i,r,o):mh(e)},t.prototype.expandSegmentAgainstRouteUsingRedirect=function(t,e,n,i,r,o){return"**"===i.path?this.expandWildCardWithParamsAgainstRouteUsingRedirect(t,n,i,o):this.expandRegularSegmentAgainstRouteUsingRedirect(t,e,n,i,r,o)},t.prototype.expandWildCardWithParamsAgainstRouteUsingRedirect=function(t,e,n,i){var r=this,o=this.applyRedirectCommands([],n.redirectTo,{});return n.redirectTo.startsWith("/")?gh(o):this.lineralizeSegments(n,o).pipe(J(function(n){var o=new bc(n,{});return r.expandSegment(t,o,e,n,i,!1)}))},t.prototype.expandRegularSegmentAgainstRouteUsingRedirect=function(t,e,n,i,r,o){var s=this,a=vh(e,i,r),l=a.consumedSegments,u=a.lastChild,c=a.positionalParamSegments;if(!a.matched)return mh(e);var h=this.applyRedirectCommands(l,i.redirectTo,c);return i.redirectTo.startsWith("/")?gh(h):this.lineralizeSegments(i,h).pipe(J(function(i){return s.expandSegment(t,e,n,i.concat(r.slice(u)),o,!1)}))},t.prototype.matchSegmentAgainstRoute=function(t,e,n,i){var r=this;if("**"===n.path)return n.loadChildren?this.configLoader.load(t.injector,n).pipe(Y(function(t){return n._loadedConfig=t,new bc(i,{})})):ta(new bc(i,{}));var s=vh(e,n,i),a=s.consumedSegments,u=s.lastChild;if(!s.matched)return mh(e);var c=i.slice(u);return this.getChildConfig(t,n,i).pipe(J(function(t){var n=t.module,i=t.routes,s=function(t,e,n,i){return n.length>0&&function(t,e,n){return i.some(function(n){return wh(t,e,n)&&Ch(n)!==ic})}(t,n)?{segmentGroup:bh(new bc(e,function(t,e){var n,i,r={};r[ic]=e;try{for(var o=l(t),s=o.next();!s.done;s=o.next()){var a=s.value;""===a.path&&Ch(a)!==ic&&(r[Ch(a)]=new bc([],{}))}}catch(u){n={error:u}}finally{try{s&&!s.done&&(i=o.return)&&i.call(o)}finally{if(n)throw n.error}}return r}(i,new bc(n,t.children)))),slicedSegments:[]}:0===n.length&&function(t,e,n){return i.some(function(n){return wh(t,e,n)})}(t,n)?{segmentGroup:bh(new bc(t.segments,function(t,e,n,i){var r,s,a={};try{for(var u=l(n),c=u.next();!c.done;c=u.next()){var h=c.value;wh(t,e,h)&&!i[Ch(h)]&&(a[Ch(h)]=new bc([],{}))}}catch(p){r={error:p}}finally{try{c&&!c.done&&(s=u.return)&&s.call(u)}finally{if(r)throw r.error}}return o({},i,a)}(t,n,i,t.children))),slicedSegments:n}:{segmentGroup:t,slicedSegments:n}}(e,a,c,i),u=s.segmentGroup,h=s.slicedSegments;return 0===h.length&&u.hasChildren()?r.expandChildren(n,i,u).pipe(Y(function(t){return new bc(a,t)})):0===i.length&&0===h.length?ta(new bc(a,{})):r.expandSegment(n,u,i,h,ic,!0).pipe(Y(function(t){return new bc(a.concat(t.segments),t.children)}))}))},t.prototype.getChildConfig=function(t,e,n){var i=this;return e.children?ta(new ac(e.children,t)):e.loadChildren?void 0!==e._loadedConfig?ta(e._loadedConfig):function(t,e,n){var i=e.canLoad;return i&&0!==i.length?gc(Q(i).pipe(Y(function(i){var r=t.get(i);return yc(r.canLoad?r.canLoad(e,n):r(e,n))}))):ta(!0)}(t.injector,e,n).pipe(J(function(n){return n?i.configLoader.load(t.injector,e).pipe(Y(function(t){return e._loadedConfig=t,t})):function(t){return new R(function(e){return e.error(((n=Error("NavigationCancelingError: Cannot load children because the guard of the route \"path: '"+t.path+"'\" returned false")).ngNavigationCancelingError=!0,n));var n})}(e)})):ta(new ac([],t))},t.prototype.lineralizeSegments=function(t,e){for(var n=[],i=e.root;;){if(n=n.concat(i.segments),0===i.numberOfChildren)return ta(n);if(i.numberOfChildren>1||!i.children[ic])return yh(t.redirectTo);i=i.children[ic]}},t.prototype.applyRedirectCommands=function(t,e,n){return this.applyRedirectCreatreUrlTree(e,this.urlSerializer.parse(e),t,n)},t.prototype.applyRedirectCreatreUrlTree=function(t,e,n,i){var r=this.createSegmentGroup(t,e.root,n,i);return new vc(r,this.createQueryParams(e.queryParams,this.urlTree.queryParams),e.fragment)},t.prototype.createQueryParams=function(t,e){var n={};return mc(t,function(t,i){if("string"==typeof t&&t.startsWith(":")){var r=t.substring(1);n[i]=e[r]}else n[i]=t}),n},t.prototype.createSegmentGroup=function(t,e,n,i){var r=this,o=this.createSegments(t,e.segments,n,i),s={};return mc(e.children,function(e,o){s[o]=r.createSegmentGroup(t,e,n,i)}),new bc(o,s)},t.prototype.createSegments=function(t,e,n,i){var r=this;return e.map(function(e){return e.path.startsWith(":")?r.findPosParam(t,e,i):r.findOrReturn(e,n)})},t.prototype.findPosParam=function(t,e,n){var i=n[e.path.substring(1)];if(!i)throw new Error("Cannot redirect to '"+t+"'. Cannot find '"+e.path+"'.");return i},t.prototype.findOrReturn=function(t,e){var n,i,r=0;try{for(var o=l(e),s=o.next();!s.done;s=o.next()){var a=s.value;if(a.path===t.path)return e.splice(r),a;r++}}catch(u){n={error:u}}finally{try{s&&!s.done&&(i=o.return)&&i.call(o)}finally{if(n)throw n.error}}return t},t}();function vh(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 i=(e.matcher||sc)(n,t,e);return i?{matched:!0,consumedSegments:i.consumed,lastChild:i.consumed.length,positionalParamSegments:i.posParams}:{matched:!1,consumedSegments:[],lastChild:0,positionalParamSegments:{}}}function bh(t){if(1===t.numberOfChildren&&t.children[ic]){var e=t.children[ic];return new bc(t.segments.concat(e.segments),e.children)}return t}function wh(t,e,n){return(!(t.hasChildren()||e.length>0)||"full"!==n.pathMatch)&&""===n.path&&void 0!==n.redirectTo}function Ch(t){return t.outlet||ic}var xh=function(){return function(t){this.path=t,this.route=this.path[this.path.length-1]}}(),Eh=function(){return function(t,e){this.component=t,this.route=e}}();function Sh(t,e,n){var i=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(i?i.module.injector:n).get(t)}function Th(t,e,n,i,r){void 0===r&&(r={canDeactivateChecks:[],canActivateChecks:[]});var o=Uc(e);return t.children.forEach(function(t){!function(t,e,n,i,r){void 0===r&&(r={canDeactivateChecks:[],canActivateChecks:[]});var o=t.value,s=e?e.value:null,a=n?n.getContext(t.value.outlet):null;if(s&&o.routeConfig===s.routeConfig){var l=function(t,e,n){switch(n){case"always":return!0;case"paramsOrQueryParamsChange":return!$c(t,e)||!pc(t.queryParams,e.queryParams);case"paramsChange":default:return!$c(t,e)}}(s,o,o.routeConfig.runGuardsAndResolvers);l?r.canActivateChecks.push(new xh(i)):(o.data=s.data,o._resolvedData=s._resolvedData),Th(t,e,o.component?a?a.children:null:n,i,r),l&&r.canDeactivateChecks.push(new Eh(a&&a.outlet&&a.outlet.component||null,s))}else s&&Ih(e,a,r),r.canActivateChecks.push(new xh(i)),Th(t,null,o.component?a?a.children:null:n,i,r)}(t,o[t.value.outlet],n,i.concat([t.value]),r),delete o[t.value.outlet]}),mc(o,function(t,e){return Ih(t,n.getContext(e),r)}),r}function Ih(t,e,n){var i=Uc(t),r=t.value;mc(i,function(t,i){Ih(t,r.component?e?e.children.getContext(i):null:e,n)}),n.canDeactivateChecks.push(new Eh(r.component&&e&&e.outlet&&e.outlet.isActivated?e.outlet.component:null,r))}function Oh(t,e){return null!==t&&e&&e(new $u(t)),ta(!0)}function Rh(t,e){return null!==t&&e&&e(new Qu(t)),ta(!0)}function kh(t,e,n){var i=e.routeConfig?e.routeConfig.canActivate:null;return i&&0!==i.length?gc(Q(i).pipe(Y(function(i){var r=Sh(i,e,n);return yc(r.canActivate?r.canActivate(e,t):r(e,t)).pipe(Aa())}))):ta(!0)}function Ph(t,e,n){var i=e[e.length-1];return gc(Q(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})).pipe(Y(function(e){return gc(Q(e.guards).pipe(Y(function(r){var o=Sh(r,e.node,n);return yc(o.canActivateChild?o.canActivateChild(i,t):o(i,t)).pipe(Aa())})))})))}var Ah=function(){return function(){}}(),Lh=function(){function t(t,e,n,i,r,o){this.rootComponentType=t,this.config=e,this.urlTree=n,this.url=i,this.paramsInheritanceStrategy=r,this.relativeLinkResolution=o}return t.prototype.recognize=function(){try{var t=Mh(this.urlTree.root,[],[],this.config,this.relativeLinkResolution).segmentGroup,e=this.processSegmentGroup(this.config,t,ic),n=new Kc([],Object.freeze({}),Object.freeze(o({},this.urlTree.queryParams)),this.urlTree.fragment,{},ic,this.rootComponentType,null,this.urlTree.root,-1,{}),i=new Gc(n,e),r=new Xc(this.url,i);return this.inheritParamsAndData(r._root),ta(r)}catch(s){return new R(function(t){return t.error(s)})}},t.prototype.inheritParamsAndData=function(t){var e=this,n=t.value,i=Yc(n,this.paramsInheritanceStrategy);n.params=Object.freeze(i.params),n.data=Object.freeze(i.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,i=this,r=xc(e,function(e,n){return i.processSegmentGroup(t,e,n)});return n={},r.forEach(function(t){var e=n[t.value.outlet];if(e){var i=e.url.map(function(t){return t.toString()}).join("/"),r=t.value.url.map(function(t){return t.toString()}).join("/");throw new Error("Two segments cannot have the same outlet name: '"+i+"' and '"+r+"'.")}n[t.value.outlet]=t.value}),r.sort(function(t,e){return t.value.outlet===ic?-1:e.value.outlet===ic?1:t.value.outlet.localeCompare(e.value.outlet)}),r},t.prototype.processSegment=function(t,e,n,i){var r,o;try{for(var s=l(t),a=s.next();!a.done;a=s.next()){var u=a.value;try{return this.processSegmentAgainstRoute(u,e,n,i)}catch(c){if(!(c instanceof Ah))throw c}}}catch(h){r={error:h}}finally{try{a&&!a.done&&(o=s.return)&&o.call(s)}finally{if(r)throw r.error}}if(this.noLeftoversInUrl(e,n,i))return[];throw new Ah},t.prototype.noLeftoversInUrl=function(t,e,n){return 0===e.length&&!t.children[n]},t.prototype.processSegmentAgainstRoute=function(t,e,n,i){if(t.redirectTo)throw new Ah;if((t.outlet||ic)!==i)throw new Ah;var r,s=[],a=[];if("**"===t.path){var l=n.length>0?fc(n).parameters:{};r=new Kc(n,l,Object.freeze(o({},this.urlTree.queryParams)),this.urlTree.fragment,Vh(t),i,t.component,t,Dh(e),Fh(e)+n.length,zh(t))}else{var u=function(t,e,n){if(""===e.path){if("full"===e.pathMatch&&(t.hasChildren()||n.length>0))throw new Ah;return{consumedSegments:[],lastChild:0,parameters:{}}}var i=(e.matcher||sc)(n,t,e);if(!i)throw new Ah;var r={};mc(i.posParams,function(t,e){r[e]=t.path});var s=i.consumed.length>0?o({},r,i.consumed[i.consumed.length-1].parameters):r;return{consumedSegments:i.consumed,lastChild:i.consumed.length,parameters:s}}(e,t,n);s=u.consumedSegments,a=n.slice(u.lastChild),r=new Kc(s,u.parameters,Object.freeze(o({},this.urlTree.queryParams)),this.urlTree.fragment,Vh(t),i,t.component,t,Dh(e),Fh(e)+s.length,zh(t))}var c=function(t){return t.children?t.children:t.loadChildren?t._loadedConfig.routes:[]}(t),h=Mh(e,s,a,c,this.relativeLinkResolution),p=h.segmentGroup,d=h.slicedSegments;if(0===d.length&&p.hasChildren()){var f=this.processChildren(c,p);return[new Gc(r,f)]}if(0===c.length&&0===d.length)return[new Gc(r,[])];var m=this.processSegment(c,p,d,ic);return[new Gc(r,m)]},t}();function Dh(t){for(var e=t;e._sourceSegment;)e=e._sourceSegment;return e}function Fh(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 Mh(t,e,n,i,r){if(n.length>0&&function(t,e,n){return i.some(function(n){return Nh(t,e,n)&&jh(n)!==ic})}(t,n)){var s=new bc(e,function(t,e,n,i){var r,o,s={};s[ic]=i,i._sourceSegment=t,i._segmentIndexShift=e.length;try{for(var a=l(n),u=a.next();!u.done;u=a.next()){var c=u.value;if(""===c.path&&jh(c)!==ic){var h=new bc([],{});h._sourceSegment=t,h._segmentIndexShift=e.length,s[jh(c)]=h}}}catch(p){r={error:p}}finally{try{u&&!u.done&&(o=a.return)&&o.call(a)}finally{if(r)throw r.error}}return s}(t,e,i,new bc(n,t.children)));return s._sourceSegment=t,s._segmentIndexShift=e.length,{segmentGroup:s,slicedSegments:[]}}if(0===n.length&&function(t,e,n){return i.some(function(n){return Nh(t,e,n)})}(t,n)){var a=new bc(t.segments,function(t,e,n,i,r,s){var a,u,c={};try{for(var h=l(i),p=h.next();!p.done;p=h.next()){var d=p.value;if(Nh(t,n,d)&&!r[jh(d)]){var f=new bc([],{});f._sourceSegment=t,f._segmentIndexShift="legacy"===s?t.segments.length:e.length,c[jh(d)]=f}}}catch(m){a={error:m}}finally{try{p&&!p.done&&(u=h.return)&&u.call(h)}finally{if(a)throw a.error}}return o({},r,c)}(t,e,n,i,t.children,r));return a._sourceSegment=t,a._segmentIndexShift=e.length,{segmentGroup:a,slicedSegments:n}}var u=new bc(t.segments,t.children);return u._sourceSegment=t,u._segmentIndexShift=e.length,{segmentGroup:u,slicedSegments:n}}function Nh(t,e,n){return(!(t.hasChildren()||e.length>0)||"full"!==n.pathMatch)&&""===n.path&&void 0===n.redirectTo}function jh(t){return t.outlet||ic}function Vh(t){return t.data||{}}function zh(t){return t.resolve||{}}function Bh(t,e,n,i){var r=Sh(t,e,i);return yc(r.resolve?r.resolve(e,n):r(e,n))}function Gh(t){return function(e){return e.pipe(La(function(e){var n=t(e);return n?Q(n).pipe(Y(function(){return e})):Q([e])}))}}var Uh=function(){return function(){}}(),Hh=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}(),qh=new yt("ROUTES"),Wh=function(){function t(t,e,n,i){this.loader=t,this.compiler=e,this.onLoadStartListener=n,this.onLoadEndListener=i}return t.prototype.load=function(t,e){var n=this;return this.onLoadStartListener&&this.onLoadStartListener(e),this.loadModuleFactory(e.loadChildren).pipe(Y(function(i){n.onLoadEndListener&&n.onLoadEndListener(e);var r=i.create(t);return new ac(dc(r.injector.get(qh)).map(hc),r)}))},t.prototype.loadModuleFactory=function(t){var e=this;return"string"==typeof t?Q(this.loader.load(t)):yc(t()).pipe(J(function(t){return t instanceof ye?ta(t):Q(e.compiler.compileModuleAsync(t))}))},t}(),Yh=function(){return function(){}}(),Kh=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 Xh(t){throw t}function Zh(t,e,n){return e.parse("/")}function Qh(t,e){return ta(null)}var Jh=function(){function t(t,e,n,i,r,o,s,a){var l=this;this.rootComponentType=t,this.urlSerializer=e,this.rootContexts=n,this.location=i,this.config=a,this.navigationId=0,this.isNgZoneEnabled=!1,this.events=new F,this.errorHandler=Xh,this.malformedUriErrorHandler=Zh,this.navigated=!1,this.lastSuccessfulId=-1,this.hooks={beforePreactivation:Qh,afterPreactivation:Qh},this.urlHandlingStrategy=new Kh,this.routeReuseStrategy=new Hh,this.onSameUrlNavigation="ignore",this.paramsInheritanceStrategy="emptyOnly",this.urlUpdateStrategy="deferred",this.relativeLinkResolution="legacy",this.ngModule=r.get(ge),this.console=r.get(En);var u=r.get(Fn);this.isNgZoneEnabled=u instanceof Fn,this.resetConfig(a),this.currentUrlTree=new vc(new bc([],{}),{},null),this.rawUrlTree=this.currentUrlTree,this.configLoader=new Wh(o,s,function(t){return l.triggerEvent(new Xu(t))},function(t){return l.triggerEvent(new Zu(t))}),this.routerState=qc(this.currentUrlTree,this.rootComponentType),this.transitions=new ea({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",state: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(aa(function(t){return 0!==t.id}),Y(function(t){return o({},t,{extractedUrl:e.urlHandlingStrategy.extract(t.rawUrl)})}),La(function(t){var i,r,s,a=!1,u=!1;return ta(t).pipe(La(function(t){var i,r,s,a,l=!e.navigated||t.extractedUrl.toString()!==e.currentUrlTree.toString();if(("reload"===e.onSameUrlNavigation||l)&&e.urlHandlingStrategy.shouldProcessUrl(t.rawUrl))return ta(t).pipe(za(function(t){return"eager"===e.urlUpdateStrategy&&!t.extras.skipLocationChange&&e.setBrowserUrl(t.rawUrl,!!t.extras.replaceUrl,t.id)}),La(function(t){var i=e.transitions.getValue();return n.next(new zu(t.id,e.serializeUrl(t.extractedUrl),t.source,t.state)),i!==e.transitions.getValue()?ra:[t]}),La(function(t){return Promise.resolve(t)}),(i=e.ngModule.injector,r=e.configLoader,s=e.urlSerializer,a=e.config,function(t){return t.pipe(La(function(t){return function(e,n,i,r,o){return new _h(e,n,i,t.extractedUrl,o).apply()}(i,r,s,0,a).pipe(Y(function(e){return o({},t,{urlAfterRedirects:e})}))}))}),function(t,n,i,r,s){return function(i){return i.pipe(J(function(i){return function(t,e,n,i,r,o){return void 0===r&&(r="emptyOnly"),void 0===o&&(o="legacy"),new Lh(t,e,n,i,r,o).recognize()}(t,n,i.urlAfterRedirects,(a=i.urlAfterRedirects,e.serializeUrl(a)),r,s).pipe(Y(function(t){return o({},i,{targetSnapshot:t})}));var a}))}}(e.rootComponentType,e.config,0,e.paramsInheritanceStrategy,e.relativeLinkResolution),za(function(t){var i=new Hu(t.id,e.serializeUrl(t.extractedUrl),e.serializeUrl(t.urlAfterRedirects),t.targetSnapshot);n.next(i)}));if(l&&e.rawUrlTree&&e.urlHandlingStrategy.shouldProcessUrl(e.rawUrlTree)){var u=t.extractedUrl,c=t.source,h=t.state,p=t.extras,d=new zu(t.id,e.serializeUrl(u),c,h);n.next(d);var f=qc(u,e.rootComponentType).snapshot;return ta(o({},t,{targetSnapshot:f,urlAfterRedirects:u,extras:o({},p,{skipLocationChange:!1,replaceUrl:!1})}))}return e.rawUrlTree=t.rawUrl,t.resolve(null),ra}),Gh(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})}),za(function(t){var n=new qu(t.id,e.serializeUrl(t.extractedUrl),e.serializeUrl(t.urlAfterRedirects),t.targetSnapshot);e.triggerEvent(n)}),Y(function(t){return o({},t,{guards:(n=t.targetSnapshot,i=t.currentSnapshot,r=e.rootContexts,s=n._root,Th(s,i?i._root:null,r,[s.value]))});var n,i,r,s}),function(t,e){return function(n){return n.pipe(J(function(n){var i=n.targetSnapshot,r=n.currentSnapshot,s=n.guards,a=s.canActivateChecks,l=s.canDeactivateChecks;return 0===l.length&&0===a.length?ta(o({},n,{guardsResult:!0})):function(t,e,n,i){return Q(l).pipe(J(function(t){return function(t,e,n,i,r){var o=e&&e.routeConfig?e.routeConfig.canDeactivate:null;return o&&0!==o.length?Q(o).pipe(J(function(o){var s=Sh(o,e,r);return yc(s.canDeactivate?s.canDeactivate(t,e,n,i):s(t,e,n,i)).pipe(Aa())})).pipe(xa(function(t){return!0===t})):ta(!0)}(t.component,t.route,n,e,i)}),xa(function(t){return!0===t}))}(0,i,r,t).pipe(J(function(n){return n?function(t,e,n,i){return Q(a).pipe(Ma(function(e){return gc(Q([Rh(e.route.parent,i),Oh(e.route,i),Ph(t,e.path,n),kh(t,e.route,n)]))}),xa(function(t){return!0===t}))}(i,0,t,e):ta(!1)}),Y(function(t){return o({},n,{guardsResult:t})}))}))}}(e.ngModule.injector,function(t){return e.triggerEvent(t)}),za(function(t){var n=new Wu(t.id,e.serializeUrl(t.extractedUrl),e.serializeUrl(t.urlAfterRedirects),t.targetSnapshot,!!t.guardsResult);e.triggerEvent(n)}),aa(function(t){if(!t.guardsResult){e.resetUrlToCurrentUrlTree();var i=new Gu(t.id,e.serializeUrl(t.extractedUrl),"");return n.next(i),t.resolve(!1),!1}return!0}),Gh(function(t){if(t.guards.canActivateChecks.length)return ta(t).pipe(za(function(t){var n=new Yu(t.id,e.serializeUrl(t.extractedUrl),e.serializeUrl(t.urlAfterRedirects),t.targetSnapshot);e.triggerEvent(n)}),(n=e.paramsInheritanceStrategy,i=e.ngModule.injector,function(t){return t.pipe(J(function(t){var e=t.targetSnapshot,r=t.guards.canActivateChecks;return r.length?Q(r).pipe(Ma(function(t){return function(t,n,i,r){return function(t,e,n,i){var r=Object.keys(t);if(0===r.length)return ta({});if(1===r.length){var o=r[0];return Bh(t[o],e,n,i).pipe(Y(function(t){var e;return(e={})[o]=t,e}))}var s={};return Q(r).pipe(J(function(r){return Bh(t[r],e,n,i).pipe(Y(function(t){return s[r]=t,t}))})).pipe(Ca(),Y(function(){return s}))}(t._resolve,t,e,r).pipe(Y(function(e){return t._resolvedData=e,t.data=o({},t.data,Yc(t,i).resolve),null}))}(t.route,0,n,i)}),function(t,e){return arguments.length>=2?function(e){return I(Na(t,void 0),pa(1),va(void 0))(e)}:function(e){return I(Na(function(e,n,i){return t(e)}),pa(1))(e)}}(function(t,e){return t}),Y(function(e){return t})):ta(t)}))}),za(function(t){var n=new Ku(t.id,e.serializeUrl(t.extractedUrl),e.serializeUrl(t.urlAfterRedirects),t.targetSnapshot);e.triggerEvent(n)}));var n,i}),Gh(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})}),Y(function(t){var n,i,r,s=(r=function t(e,n,i){if(i&&e.shouldReuseRoute(n.value,i.value.snapshot)){(u=i.value)._futureSnapshot=n.value;var r=function(e,n,i){return n.children.map(function(n){var r,o;try{for(var s=l(i.children),a=s.next();!a.done;a=s.next()){var u=a.value;if(e.shouldReuseRoute(u.value.snapshot,n.value))return t(e,n,u)}}catch(c){r={error:c}}finally{try{a&&!a.done&&(o=s.return)&&o.call(s)}finally{if(r)throw r.error}}return t(e,n)})}(e,n,i);return new Gc(u,r)}var o=e.retrieve(n.value);if(o){var s=o.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 i=0;ia;){if(l-=a,!(s=s.parent))throw new Error("Invalid number of '../'");a=s.segments.length}return new ih(s,!1,a-l)}()}(o,0,t),a=s.processChildren?sh(s.segmentGroup,s.index,o.commands):oh(s.segmentGroup,s.index,o.commands);return eh(s.segmentGroup,a,e,i,r)}(u,this.currentUrlTree,t,p,h)},t.prototype.navigateByUrl=function(t,e){void 0===e&&(e={skipLocationChange:!1}),De()&&this.isNgZoneEnabled&&!Fn.isInAngularZone()&&this.console.warn("Navigation triggered outside Angular zone, did you forget to call 'ngZone.run()'?");var n=t instanceof vc?t:this.parseUrl(t),i=this.urlHandlingStrategy.merge(n,this.rawUrlTree);return this.scheduleNavigation(i,"imperative",null,e)},t.prototype.navigate=function(t,e){return void 0===e&&(e={skipLocationChange:!1}),function(t){for(var e=0;et?{max:{max:t,actual:e.value}}:null}},t.required=function(t){return Pp(t.value)?{required:!0}:null},t.requiredTrue=function(t){return!0===t.value?null:{required:!0}},t.email=function(t){return Pp(t.value)?null:Lp.test(t.value)?null:{email:!0}},t.minLength=function(t){return function(e){if(Pp(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?(i="","^"!==e.charAt(0)&&(i+="^"),i+=e,"$"!==e.charAt(e.length-1)&&(i+="$"),n=new RegExp(i)):(i=e.toString(),n=e),function(t){if(Pp(t.value))return null;var e=t.value;return n.test(e)?null:{pattern:{requiredPattern:i,actualValue:e}}}):t.nullValidator;var n,i},t.nullValidator=function(t){return null},t.compose=function(t){if(!t)return null;var e=t.filter(Fp);return 0==e.length?null:function(t){return Np(function(t,n){return e.map(function(e){return e(t)})}(t))}},t.composeAsync=function(t){if(!t)return null;var e=t.filter(Fp);return 0==e.length?null:function(t){return Ip(function(t,n){return e.map(function(e){return e(t)})}(t).map(Mp)).pipe(Y(Np))}},t}();function Fp(t){return null!=t}function Mp(t){var e=fn(t)?Q(t):t;if(!mn(e))throw new Error("Expected validator to return Promise or Observable.");return e}function Np(t){var e=t.reduce(function(t,e){return null!=e?o({},t,e):t},{});return 0===Object.keys(e).length?null:e}var jp=new yt("NgValueAccessor"),Vp=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,"checked",t)},t.prototype.registerOnChange=function(t){this.onChange=t},t.prototype.registerOnTouched=function(t){this.onTouched=t},t.prototype.setDisabledState=function(t){this._renderer.setProperty(this._elementRef.nativeElement,"disabled",t)},t}(),zp=new yt("CompositionEventMode"),Bp=function(){function t(t,e,n){var i;this._renderer=t,this._elementRef=e,this._compositionMode=n,this.onChange=function(t){},this.onTouched=function(){},this._composing=!1,null==this._compositionMode&&(this._compositionMode=(i=Pl()?Pl().getUserAgent():"",!/android (\d+)/.test(i.toLowerCase())))}return t.prototype.writeValue=function(t){this._renderer.setProperty(this._elementRef.nativeElement,"value",null==t?"":t)},t.prototype.registerOnChange=function(t){this.onChange=t},t.prototype.registerOnTouched=function(t){this.onTouched=t},t.prototype.setDisabledState=function(t){this._renderer.setProperty(this._elementRef.nativeElement,"disabled",t)},t.prototype._handleInput=function(t){(!this._compositionMode||this._compositionMode&&!this._composing)&&this.onChange(t)},t.prototype._compositionStart=function(){this._composing=!0},t.prototype._compositionEnd=function(t){this._composing=!1,this._compositionMode&&this.onChange(t)},t}();function Gp(t){return t.validate?function(e){return t.validate(e)}:t}function Up(t){return t.validate?function(e){return t.validate(e)}:t}var Hp=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",null==t?"":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}();function qp(){throw new Error("unimplemented")}var Wp=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e._parent=null,e.name=null,e.valueAccessor=null,e._rawValidators=[],e._rawAsyncValidators=[],e}return r(e,t),Object.defineProperty(e.prototype,"validator",{get:function(){return qp()},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"asyncValidator",{get:function(){return qp()},enumerable:!0,configurable:!0}),e}(Rp),Yp=function(){function t(){this._accessors=[]}return t.prototype.add=function(t,e){this._accessors.push([t,e])},t.prototype.remove=function(t){for(var e=this._accessors.length-1;e>=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}(),Kp=function(){function t(t,e,n,i){this._renderer=t,this._elementRef=e,this._registry=n,this._injector=i,this.onChange=function(){},this.onTouched=function(){}}return t.prototype.ngOnInit=function(){this._control=this._injector.get(Wp),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}(),Xp=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}(),Zp='\n

\n \n
\n\n In your class:\n\n this.myGroup = new FormGroup({\n firstName: new FormControl()\n });',Qp='\n
\n
\n \n
\n
\n\n In your class:\n\n this.myGroup = new FormGroup({\n person: new FormGroup({ firstName: new FormControl() })\n });',Jp=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 "+Zp)},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 '+Qp+'\n\n Option 2: Use ngModel instead of formControlName (template-driven strategy)\n\n \n
\n
\n \n
\n
')},t.missingFormException=function(){throw new Error("formGroup expects a FormGroup instance. Please pass one in.\n\n Example:\n\n "+Zp)},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 "+Qp)},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
\n \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 $p(t,e){return c(e.path,[t])}function td(t,e){t||rd(e,"Cannot find control with"),e.valueAccessor||rd(e,"No value accessor for form control with"),t.validator=Dp.compose([t.validator,e.validator]),t.asyncValidator=Dp.composeAsync([t.asyncValidator,e.asyncValidator]),e.valueAccessor.writeValue(t.value),function(t,e){e.valueAccessor.registerOnChange(function(n){t._pendingValue=n,t._pendingChange=!0,t._pendingDirty=!0,"change"===t.updateOn&&ed(t,e)})}(t,e),function(t,e){t.registerOnChange(function(t,n){e.valueAccessor.writeValue(t),n&&e.viewToModelUpdate(t)})}(t,e),function(t,e){e.valueAccessor.registerOnTouched(function(){t._pendingTouched=!0,"blur"===t.updateOn&&t._pendingChange&&ed(t,e),"submit"!==t.updateOn&&t.markAsTouched()})}(t,e),e.valueAccessor.setDisabledState&&t.registerOnDisabledChange(function(t){e.valueAccessor.setDisabledState(t)}),e._rawValidators.forEach(function(e){e.registerOnValidatorChange&&e.registerOnValidatorChange(function(){return t.updateValueAndValidity()})}),e._rawAsyncValidators.forEach(function(e){e.registerOnValidatorChange&&e.registerOnValidatorChange(function(){return t.updateValueAndValidity()})})}function ed(t,e){t._pendingDirty&&t.markAsDirty(),t.setValue(t._pendingValue,{emitModelToViewChange:!1}),e.viewToModelUpdate(t._pendingValue),t._pendingChange=!1}function nd(t,e){null==t&&rd(e,"Cannot find control with"),t.validator=Dp.compose([t.validator,e.validator]),t.asyncValidator=Dp.composeAsync([t.asyncValidator,e.asyncValidator])}function id(t){return rd(t,"There is no FormControl instance attached to form control element with")}function rd(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 od(t){return null!=t?Dp.compose(t.map(Gp)):null}function sd(t){return null!=t?Dp.composeAsync(t.map(Up)):null}var ad=[Vp,Xp,Hp,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=Ot}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 i=l(Array.from(this._optionMap.keys())),r=i.next();!r.done;r=i.next()){var o=r.value;if(this._compareWith(this._optionMap.get(o),t))return o}}catch(s){e={error:s}}finally{try{r&&!r.done&&(n=i.return)&&n.call(i)}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=Ot}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 i=t.map(function(t){return n._getOptionId(t)});e=function(t,e){t._setSelected(i.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 i=[];if(n.hasOwnProperty("selectedOptions"))for(var r=n.selectedOptions,o=0;o-1&&t.splice(n,1)}var cd=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return r(e,t),e.prototype.ngOnInit=function(){this._checkParentType(),this.formDirective.addFormGroup(this)},e.prototype.ngOnDestroy=function(){this.formDirective&&this.formDirective.removeFormGroup(this)},Object.defineProperty(e.prototype,"control",{get:function(){return this.formDirective.getFormGroup(this)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"path",{get:function(){return $p(this.name,this._parent)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"formDirective",{get:function(){return this._parent?this._parent.formDirective:null},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"validator",{get:function(){return od(this._validators)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"asyncValidator",{get:function(){return sd(this._asyncValidators)},enumerable:!0,configurable:!0}),e.prototype._checkParentType=function(){},e}(kp),hd=function(){function t(t){this._cd=t}return Object.defineProperty(t.prototype,"ngClassUntouched",{get:function(){return!!this._cd.control&&this._cd.control.untouched},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"ngClassTouched",{get:function(){return!!this._cd.control&&this._cd.control.touched},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"ngClassPristine",{get:function(){return!!this._cd.control&&this._cd.control.pristine},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"ngClassDirty",{get:function(){return!!this._cd.control&&this._cd.control.dirty},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"ngClassValid",{get:function(){return!!this._cd.control&&this._cd.control.valid},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"ngClassInvalid",{get:function(){return!!this._cd.control&&this._cd.control.invalid},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"ngClassPending",{get:function(){return!!this._cd.control&&this._cd.control.pending},enumerable:!0,configurable:!0}),t}(),pd=function(t){function e(e){return t.call(this,e)||this}return r(e,t),e}(hd),dd=function(t){function e(e){return t.call(this,e)||this}return r(e,t),e}(hd);function fd(t){var e=gd(t)?t.validators:t;return Array.isArray(e)?od(e):e||null}function md(t,e){var n=gd(e)?e.asyncValidators:t;return Array.isArray(n)?sd(n):n||null}function gd(t){return null!=t&&!Array.isArray(t)&&"object"==typeof t}var yd=function(){function t(t,e){this.validator=t,this.asyncValidator=e,this._onCollectionChange=function(){},this.pristine=!0,this.touched=!1,this._onDisabledChange=[]}return Object.defineProperty(t.prototype,"parent",{get:function(){return this._parent},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"valid",{get:function(){return"VALID"===this.status},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"invalid",{get:function(){return"INVALID"===this.status},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"pending",{get:function(){return"PENDING"==this.status},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"disabled",{get:function(){return"DISABLED"===this.status},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"enabled",{get:function(){return"DISABLED"!==this.status},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"dirty",{get:function(){return!this.pristine},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"untouched",{get:function(){return!this.touched},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"updateOn",{get:function(){return this._updateOn?this._updateOn:this.parent?this.parent.updateOn:"change"},enumerable:!0,configurable:!0}),t.prototype.setValidators=function(t){this.validator=fd(t)},t.prototype.setAsyncValidators=function(t){this.asyncValidator=md(t)},t.prototype.clearValidators=function(){this.validator=null},t.prototype.clearAsyncValidators=function(){this.asyncValidator=null},t.prototype.markAsTouched=function(t){void 0===t&&(t={}),this.touched=!0,this._parent&&!t.onlySelf&&this._parent.markAsTouched(t)},t.prototype.markAsUntouched=function(t){void 0===t&&(t={}),this.touched=!1,this._pendingTouched=!1,this._forEachChild(function(t){t.markAsUntouched({onlySelf:!0})}),this._parent&&!t.onlySelf&&this._parent._updateTouched(t)},t.prototype.markAsDirty=function(t){void 0===t&&(t={}),this.pristine=!1,this._parent&&!t.onlySelf&&this._parent.markAsDirty(t)},t.prototype.markAsPristine=function(t){void 0===t&&(t={}),this.pristine=!0,this._pendingDirty=!1,this._forEachChild(function(t){t.markAsPristine({onlySelf:!0})}),this._parent&&!t.onlySelf&&this._parent._updatePristine(t)},t.prototype.markAsPending=function(t){void 0===t&&(t={}),this.status="PENDING",!1!==t.emitEvent&&this.statusChanges.emit(this.status),this._parent&&!t.onlySelf&&this._parent.markAsPending(t)},t.prototype.disable=function(t){void 0===t&&(t={}),this.status="DISABLED",this.errors=null,this._forEachChild(function(e){e.disable(o({},t,{onlySelf:!0}))}),this._updateValue(),!1!==t.emitEvent&&(this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._updateAncestors(t),this._onDisabledChange.forEach(function(t){return t(!0)})},t.prototype.enable=function(t){void 0===t&&(t={}),this.status="VALID",this._forEachChild(function(e){e.enable(o({},t,{onlySelf:!0}))}),this.updateValueAndValidity({onlySelf:!0,emitEvent:t.emitEvent}),this._updateAncestors(t),this._onDisabledChange.forEach(function(t){return t(!1)})},t.prototype._updateAncestors=function(t){this._parent&&!t.onlySelf&&(this._parent.updateValueAndValidity(t),this._parent._updatePristine(),this._parent._updateTouched())},t.prototype.setParent=function(t){this._parent=t},t.prototype.updateValueAndValidity=function(t){void 0===t&&(t={}),this._setInitialStatus(),this._updateValue(),this.enabled&&(this._cancelExistingSubscription(),this.errors=this._runValidator(),this.status=this._calculateStatus(),"VALID"!==this.status&&"PENDING"!==this.status||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)},t.prototype._updateTreeValidity=function(t){void 0===t&&(t={emitEvent:!0}),this._forEachChild(function(e){return e._updateTreeValidity(t)}),this.updateValueAndValidity({onlySelf:!0,emitEvent:t.emitEvent})},t.prototype._setInitialStatus=function(){this.status=this._allControlsDisabled()?"DISABLED":"VALID"},t.prototype._runValidator=function(){return this.validator?this.validator(this):null},t.prototype._runAsyncValidator=function(t){var e=this;if(this.asyncValidator){this.status="PENDING";var n=Mp(this.asyncValidator(this));this._asyncValidationSubscription=n.subscribe(function(n){return e.setErrors(n,{emitEvent:t})})}},t.prototype._cancelExistingSubscription=function(){this._asyncValidationSubscription&&this._asyncValidationSubscription.unsubscribe()},t.prototype.setErrors=function(t,e){void 0===e&&(e={}),this.errors=t,this._updateControlsErrors(!1!==e.emitEvent)},t.prototype.get=function(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(function(t,e){return t instanceof vd?t.controls.hasOwnProperty(e)?t.controls[e]:null:t instanceof bd&&t.at(e)||null},t))}(this,t)},t.prototype.getError=function(t,e){var n=e?this.get(e):this;return n&&n.errors?n.errors[t]:null},t.prototype.hasError=function(t,e){return!!this.getError(t,e)},Object.defineProperty(t.prototype,"root",{get:function(){for(var t=this;t._parent;)t=t._parent;return t},enumerable:!0,configurable:!0}),t.prototype._updateControlsErrors=function(t){this.status=this._calculateStatus(),t&&this.statusChanges.emit(this.status),this._parent&&this._parent._updateControlsErrors(t)},t.prototype._initObservables=function(){this.valueChanges=new ke,this.statusChanges=new ke},t.prototype._calculateStatus=function(){return this._allControlsDisabled()?"DISABLED":this.errors?"INVALID":this._anyControlsHaveStatus("PENDING")?"PENDING":this._anyControlsHaveStatus("INVALID")?"INVALID":"VALID"},t.prototype._anyControlsHaveStatus=function(t){return this._anyControls(function(e){return e.status===t})},t.prototype._anyControlsDirty=function(){return this._anyControls(function(t){return t.dirty})},t.prototype._anyControlsTouched=function(){return this._anyControls(function(t){return t.touched})},t.prototype._updatePristine=function(t){void 0===t&&(t={}),this.pristine=!this._anyControlsDirty(),this._parent&&!t.onlySelf&&this._parent._updatePristine(t)},t.prototype._updateTouched=function(t){void 0===t&&(t={}),this.touched=this._anyControlsTouched(),this._parent&&!t.onlySelf&&this._parent._updateTouched(t)},t.prototype._isBoxedValue=function(t){return"object"==typeof t&&null!==t&&2===Object.keys(t).length&&"value"in t&&"disabled"in t},t.prototype._registerOnCollectionChange=function(t){this._onCollectionChange=t},t.prototype._setUpdateStrategy=function(t){gd(t)&&null!=t.updateOn&&(this._updateOn=t.updateOn)},t}(),_d=function(t){function e(e,n,i){void 0===e&&(e=null);var r=t.call(this,fd(n),md(i,n))||this;return r._onChange=[],r._applyFormState(e),r._setUpdateStrategy(n),r.updateValueAndValidity({onlySelf:!0,emitEvent:!1}),r._initObservables(),r}return r(e,t),e.prototype.setValue=function(t,e){var n=this;void 0===e&&(e={}),this.value=this._pendingValue=t,this._onChange.length&&!1!==e.emitModelToViewChange&&this._onChange.forEach(function(t){return t(n.value,!1!==e.emitViewToModelChange)}),this.updateValueAndValidity(e)},e.prototype.patchValue=function(t,e){void 0===e&&(e={}),this.setValue(t,e)},e.prototype.reset=function(t,e){void 0===t&&(t=null),void 0===e&&(e={}),this._applyFormState(t),this.markAsPristine(e),this.markAsUntouched(e),this.setValue(this.value,e),this._pendingChange=!1},e.prototype._updateValue=function(){},e.prototype._anyControls=function(t){return!1},e.prototype._allControlsDisabled=function(){return this.disabled},e.prototype.registerOnChange=function(t){this._onChange.push(t)},e.prototype._clearChangeFns=function(){this._onChange=[],this._onDisabledChange=[],this._onCollectionChange=function(){}},e.prototype.registerOnDisabledChange=function(t){this._onDisabledChange.push(t)},e.prototype._forEachChild=function(t){},e.prototype._syncPendingControls=function(){return!("submit"!==this.updateOn||(this._pendingDirty&&this.markAsDirty(),this._pendingTouched&&this.markAsTouched(),!this._pendingChange)||(this.setValue(this._pendingValue,{onlySelf:!0,emitModelToViewChange:!1}),0))},e.prototype._applyFormState=function(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},e}(yd),vd=function(t){function e(e,n,i){var r=t.call(this,fd(n),md(i,n))||this;return r.controls=e,r._initObservables(),r._setUpdateStrategy(n),r._setUpControls(),r.updateValueAndValidity({onlySelf:!0,emitEvent:!1}),r}return r(e,t),e.prototype.registerControl=function(t,e){return this.controls[t]?this.controls[t]:(this.controls[t]=e,e.setParent(this),e._registerOnCollectionChange(this._onCollectionChange),e)},e.prototype.addControl=function(t,e){this.registerControl(t,e),this.updateValueAndValidity(),this._onCollectionChange()},e.prototype.removeControl=function(t){this.controls[t]&&this.controls[t]._registerOnCollectionChange(function(){}),delete this.controls[t],this.updateValueAndValidity(),this._onCollectionChange()},e.prototype.setControl=function(t,e){this.controls[t]&&this.controls[t]._registerOnCollectionChange(function(){}),delete this.controls[t],e&&this.registerControl(t,e),this.updateValueAndValidity(),this._onCollectionChange()},e.prototype.contains=function(t){return this.controls.hasOwnProperty(t)&&this.controls[t].enabled},e.prototype.setValue=function(t,e){var n=this;void 0===e&&(e={}),this._checkAllValuesPresent(t),Object.keys(t).forEach(function(i){n._throwIfControlMissing(i),n.controls[i].setValue(t[i],{onlySelf:!0,emitEvent:e.emitEvent})}),this.updateValueAndValidity(e)},e.prototype.patchValue=function(t,e){var n=this;void 0===e&&(e={}),Object.keys(t).forEach(function(i){n.controls[i]&&n.controls[i].patchValue(t[i],{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,i){n.reset(t[i],{onlySelf:!0,emitEvent:e.emitEvent})}),this.updateValueAndValidity(e),this._updatePristine(e),this._updateTouched(e)},e.prototype.getRawValue=function(){return this._reduceChildren({},function(t,e,n){return t[n]=e instanceof _d?e.value:e.getRawValue(),t})},e.prototype._syncPendingControls=function(){var t=this._reduceChildren(!1,function(t,e){return!!e._syncPendingControls()||t});return t&&this.updateValueAndValidity({onlySelf:!0}),t},e.prototype._throwIfControlMissing=function(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+".")},e.prototype._forEachChild=function(t){var e=this;Object.keys(this.controls).forEach(function(n){return t(e.controls[n],n)})},e.prototype._setUpControls=function(){var t=this;this._forEachChild(function(e){e.setParent(t),e._registerOnCollectionChange(t._onCollectionChange)})},e.prototype._updateValue=function(){this.value=this._reduceValue()},e.prototype._anyControls=function(t){var e=this,n=!1;return this._forEachChild(function(i,r){n=n||e.contains(r)&&t(i)}),n},e.prototype._reduceValue=function(){var t=this;return this._reduceChildren({},function(e,n,i){return(n.enabled||t.disabled)&&(e[i]=n.value),e})},e.prototype._reduceChildren=function(t,e){var n=t;return this._forEachChild(function(t,i){n=e(n,t,i)}),n},e.prototype._allControlsDisabled=function(){var t,e;try{for(var n=l(Object.keys(this.controls)),i=n.next();!i.done;i=n.next())if(this.controls[i.value].enabled)return!1}catch(r){t={error:r}}finally{try{i&&!i.done&&(e=n.return)&&e.call(n)}finally{if(t)throw t.error}}return Object.keys(this.controls).length>0||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}(yd),bd=function(t){function e(e,n,i){var r=t.call(this,fd(n),md(i,n))||this;return r.controls=e,r._initObservables(),r._setUpdateStrategy(n),r._setUpControls(),r.updateValueAndValidity({onlySelf:!0,emitEvent:!1}),r}return r(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,i){n._throwIfControlMissing(i),n.at(i).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,i){n.at(i)&&n.at(i).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,i){n.reset(t[i],{onlySelf:!0,emitEvent:e.emitEvent})}),this.updateValueAndValidity(e),this._updatePristine(e),this._updateTouched(e)},e.prototype.getRawValue=function(){return this.controls.map(function(t){return t instanceof _d?t.value:t.getRawValue()})},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=l(this.controls),i=n.next();!i.done;i=n.next())if(i.value.enabled)return!1}catch(r){t={error:r}}finally{try{i&&!i.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}(yd),wd=Promise.resolve(null),Cd=function(t){function e(e,n){var i=t.call(this)||this;return i.submitted=!1,i._directives=[],i.ngSubmit=new ke,i.form=new vd({},od(e),sd(n)),i}return r(e,t),e.prototype.ngAfterViewInit=function(){this._setUpdateStrategy()},Object.defineProperty(e.prototype,"formDirective",{get:function(){return this},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"control",{get:function(){return this.form},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"path",{get:function(){return[]},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"controls",{get:function(){return this.form.controls},enumerable:!0,configurable:!0}),e.prototype.addControl=function(t){var e=this;wd.then(function(){var n=e._findContainer(t.path);t.control=n.registerControl(t.name,t.control),td(t.control,t),t.control.updateValueAndValidity({emitEvent:!1}),e._directives.push(t)})},e.prototype.getControl=function(t){return this.form.get(t.path)},e.prototype.removeControl=function(t){var e=this;wd.then(function(){var n=e._findContainer(t.path);n&&n.removeControl(t.name),ud(e._directives,t)})},e.prototype.addFormGroup=function(t){var e=this;wd.then(function(){var n=e._findContainer(t.path),i=new vd({});nd(i,t),n.registerControl(t.name,i),i.updateValueAndValidity({emitEvent:!1})})},e.prototype.removeFormGroup=function(t){var e=this;wd.then(function(){var n=e._findContainer(t.path);n&&n.removeControl(t.name)})},e.prototype.getFormGroup=function(t){return this.form.get(t.path)},e.prototype.updateModel=function(t,e){var n=this;wd.then(function(){n.form.get(t.path).setValue(e)})},e.prototype.setValue=function(t){this.control.setValue(t)},e.prototype.onSubmit=function(t){return this.submitted=!0,ld(this.form,this._directives),this.ngSubmit.emit(t),!1},e.prototype.onReset=function(){this.resetForm()},e.prototype.resetForm=function(t){void 0===t&&(t=void 0),this.form.reset(t),this.submitted=!1},e.prototype._setUpdateStrategy=function(){this.options&&null!=this.options.updateOn&&(this.form._updateOn=this.options.updateOn)},e.prototype._findContainer=function(t){return t.pop(),t.length?this.form.get(t):this.form},e}(kp),xd=new yt("NgModelWithFormControlWarning"),Ed=function(t){function e(e,n){var i=t.call(this)||this;return i._validators=e,i._asyncValidators=n,i.submitted=!1,i.directives=[],i.form=null,i.ngSubmit=new ke,i}return r(e,t),e.prototype.ngOnChanges=function(t){this._checkFormPresent(),t.hasOwnProperty("form")&&(this._updateValidators(),this._updateDomValue(),this._updateRegistrations())},Object.defineProperty(e.prototype,"formDirective",{get:function(){return this},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"control",{get:function(){return this.form},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"path",{get:function(){return[]},enumerable:!0,configurable:!0}),e.prototype.addControl=function(t){var e=this.form.get(t.path);return td(e,t),e.updateValueAndValidity({emitEvent:!1}),this.directives.push(t),e},e.prototype.getControl=function(t){return this.form.get(t.path)},e.prototype.removeControl=function(t){ud(this.directives,t)},e.prototype.addFormGroup=function(t){var e=this.form.get(t.path);nd(e,t),e.updateValueAndValidity({emitEvent:!1})},e.prototype.removeFormGroup=function(t){},e.prototype.getFormGroup=function(t){return this.form.get(t.path)},e.prototype.addFormArray=function(t){var e=this.form.get(t.path);nd(e,t),e.updateValueAndValidity({emitEvent:!1})},e.prototype.removeFormArray=function(t){},e.prototype.getFormArray=function(t){return this.form.get(t.path)},e.prototype.updateModel=function(t,e){this.form.get(t.path).setValue(e)},e.prototype.onSubmit=function(t){return this.submitted=!0,ld(this.form,this.directives),this.ngSubmit.emit(t),!1},e.prototype.onReset=function(){this.resetForm()},e.prototype.resetForm=function(t){void 0===t&&(t=void 0),this.form.reset(t),this.submitted=!1},e.prototype._updateDomValue=function(){var t=this;this.directives.forEach(function(e){var n=t.form.get(e.path);e.control!==n&&(function(t,e){e.valueAccessor.registerOnChange(function(){return id(e)}),e.valueAccessor.registerOnTouched(function(){return id(e)}),e._rawValidators.forEach(function(t){t.registerOnValidatorChange&&t.registerOnValidatorChange(null)}),e._rawAsyncValidators.forEach(function(t){t.registerOnValidatorChange&&t.registerOnValidatorChange(null)}),t&&t._clearChangeFns()}(e.control,e),n&&td(n,e),e.control=n)}),this.form._updateTreeValidity({emitEvent:!1})},e.prototype._updateRegistrations=function(){var t=this;this.form._registerOnCollectionChange(function(){return t._updateDomValue()}),this._oldForm&&this._oldForm._registerOnCollectionChange(function(){}),this._oldForm=this.form},e.prototype._updateValidators=function(){var t=od(this._validators);this.form.validator=Dp.compose([this.form.validator,t]);var e=sd(this._asyncValidators);this.form.asyncValidator=Dp.composeAsync([this.form.asyncValidator,e])},e.prototype._checkFormPresent=function(){this.form||Jp.missingFormException()},e}(kp),Sd=function(t){function e(e,n,i){var r=t.call(this)||this;return r._parent=e,r._validators=n,r._asyncValidators=i,r}return r(e,t),e.prototype._checkParentType=function(){Id(this._parent)&&Jp.groupParentException()},e}(cd),Td=function(t){function e(e,n,i){var r=t.call(this)||this;return r._parent=e,r._validators=n,r._asyncValidators=i,r}return r(e,t),e.prototype.ngOnInit=function(){this._checkParentType(),this.formDirective.addFormArray(this)},e.prototype.ngOnDestroy=function(){this.formDirective&&this.formDirective.removeFormArray(this)},Object.defineProperty(e.prototype,"control",{get:function(){return this.formDirective.getFormArray(this)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"formDirective",{get:function(){return this._parent?this._parent.formDirective:null},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"path",{get:function(){return $p(this.name,this._parent)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"validator",{get:function(){return od(this._validators)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"asyncValidator",{get:function(){return sd(this._asyncValidators)},enumerable:!0,configurable:!0}),e.prototype._checkParentType=function(){Id(this._parent)&&Jp.arrayParentException()},e}(kp);function Id(t){return!(t instanceof Sd||t instanceof Ed||t instanceof Td)}var Od=function(t){function e(e,n,i,r,o){var s=t.call(this)||this;return s._ngModelWarningConfig=o,s._added=!1,s.update=new ke,s._ngModelWarningSent=!1,s._parent=e,s._rawValidators=n||[],s._rawAsyncValidators=i||[],s.valueAccessor=function(t,e){if(!e)return null;Array.isArray(e)||rd(t,"Value accessor was not provided as an array for form control with");var n=void 0,i=void 0,r=void 0;return e.forEach(function(e){var o;e.constructor===Bp?n=e:(o=e,ad.some(function(t){return o.constructor===t})?(i&&rd(t,"More than one built-in value accessor matches form control with"),i=e):(r&&rd(t,"More than one custom value accessor matches form control with"),r=e))}),r||i||n||(rd(t,"No valid value accessor for form control with"),null)}(s,r),s}var n;return r(e,t),n=e,Object.defineProperty(e.prototype,"isDisabled",{set:function(t){Jp.disabledAttrWarning()},enumerable:!0,configurable:!0}),e.prototype.ngOnChanges=function(t){var e,i;this._added||this._setUpControl(),function(t,e){if(!t.hasOwnProperty("model"))return!1;var n=t.model;return!!n.isFirstChange()||!Ot(e,n.currentValue)}(t,this.viewModel)&&("formControlName",e=n,this,i=this._ngModelWarningConfig,De()&&"never"!==i&&((null!==i&&"once"!==i||e._ngModelWarningSentOnce)&&("always"!==i||this._ngModelWarningSent)||(Jp.ngModelWarning("formControlName"),e._ngModelWarningSentOnce=!0,this._ngModelWarningSent=!0)),this.viewModel=this.model,this.formDirective.updateModel(this,this.model))},e.prototype.ngOnDestroy=function(){this.formDirective&&this.formDirective.removeControl(this)},e.prototype.viewToModelUpdate=function(t){this.viewModel=t,this.update.emit(t)},Object.defineProperty(e.prototype,"path",{get:function(){return $p(this.name,this._parent)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"formDirective",{get:function(){return this._parent?this._parent.formDirective:null},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"validator",{get:function(){return od(this._rawValidators)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"asyncValidator",{get:function(){return sd(this._rawAsyncValidators)},enumerable:!0,configurable:!0}),e.prototype._checkParentType=function(){!(this._parent instanceof Sd)&&this._parent instanceof cd?Jp.ngModelGroupException():this._parent instanceof Sd||this._parent instanceof Ed||this._parent instanceof Td||Jp.controlParentException()},e.prototype._setUpControl=function(){this._checkParentType(),this.control=this.formDirective.addControl(this),this.control.disabled&&this.valueAccessor.setDisabledState&&this.valueAccessor.setDisabledState(!0),this._added=!0},e._ngModelWarningSentOnce=!1,e}(Wp),Rd=function(){function t(){}return Object.defineProperty(t.prototype,"required",{get:function(){return this._required},set:function(t){this._required=null!=t&&!1!==t&&""+t!="false",this._onChange&&this._onChange()},enumerable:!0,configurable:!0}),t.prototype.validate=function(t){return this.required?Dp.required(t):null},t.prototype.registerOnValidatorChange=function(t){this._onChange=t},t}(),kd=function(){function t(){}return t.prototype.group=function(t,e){void 0===e&&(e=null);var n=this._reduceControls(t);return new vd(n,null!=e?e.validator:null,null!=e?e.asyncValidator:null)},t.prototype.control=function(t,e,n){return new _d(t,e,n)},t.prototype.array=function(t,e,n){var i=this,r=t.map(function(t){return i._createControl(t)});return new bd(r,e,n)},t.prototype._reduceControls=function(t){var e=this,n={};return Object.keys(t).forEach(function(i){n[i]=e._createControl(t[i])}),n},t.prototype._createControl=function(t){return t instanceof _d||t instanceof vd||t instanceof bd?t:Array.isArray(t)?this.control(t[0],t.length>1?t[1]:null,t.length>2?t[2]:null):this.control(t)},t}(),Pd=function(){return function(){}}(),Ad=function(){return function(){}}(),Ld=function(){function t(){}var e;return e=t,t.withConfig=function(t){return{ngModule:e,providers:[{provide:xd,useValue:t.warnOnNgModelWithFormControl}]}},t}(),Dd=function(){return function(){}}(),Fd=function(){return function(){}}(),Md="*";function Nd(t,e){return void 0===e&&(e=null),{type:2,steps:t,options:e}}function jd(t){return{type:6,styles:t,offset:null}}function Vd(t){Promise.resolve(null).then(t)}var zd,Bd=function(){function t(t,e){void 0===t&&(t=0),void 0===e&&(e=0),this._onDoneFns=[],this._onStartFns=[],this._onDestroyFns=[],this._started=!1,this._destroyed=!1,this._finished=!1,this.parentPlayer=null,this.totalTime=t+e}return t.prototype._onFinish=function(){this._finished||(this._finished=!0,this._onDoneFns.forEach(function(t){return t()}),this._onDoneFns=[])},t.prototype.onStart=function(t){this._onStartFns.push(t)},t.prototype.onDone=function(t){this._onDoneFns.push(t)},t.prototype.onDestroy=function(t){this._onDestroyFns.push(t)},t.prototype.hasStarted=function(){return this._started},t.prototype.init=function(){},t.prototype.play=function(){this.hasStarted()||(this._onStart(),this.triggerMicrotask()),this._started=!0},t.prototype.triggerMicrotask=function(){var t=this;Vd(function(){return t._onFinish()})},t.prototype._onStart=function(){this._onStartFns.forEach(function(t){return t()}),this._onStartFns=[]},t.prototype.pause=function(){},t.prototype.restart=function(){},t.prototype.finish=function(){this._onFinish()},t.prototype.destroy=function(){this._destroyed||(this._destroyed=!0,this.hasStarted()||this._onStart(),this.finish(),this._onDestroyFns.forEach(function(t){return t()}),this._onDestroyFns=[])},t.prototype.reset=function(){},t.prototype.setPosition=function(t){},t.prototype.getPosition=function(){return 0},t.prototype.triggerCallback=function(t){var e="start"==t?this._onStartFns:this._onDoneFns;e.forEach(function(t){return t()}),e.length=0},t}(),Gd=function(){function t(t){var e=this;this._onDoneFns=[],this._onStartFns=[],this._finished=!1,this._started=!1,this._destroyed=!1,this._onDestroyFns=[],this.parentPlayer=null,this.totalTime=0,this.players=t;var n=0,i=0,r=0,o=this.players.length;0==o?Vd(function(){return e._onFinish()}):this.players.forEach(function(t){t.onDone(function(){++n==o&&e._onFinish()}),t.onDestroy(function(){++i==o&&e._onDestroy()}),t.onStart(function(){++r==o&&e._onStart()})}),this.totalTime=this.players.reduce(function(t,e){return Math.max(t,e.totalTime)},0)}return t.prototype._onFinish=function(){this._finished||(this._finished=!0,this._onDoneFns.forEach(function(t){return t()}),this._onDoneFns=[])},t.prototype.init=function(){this.players.forEach(function(t){return t.init()})},t.prototype.onStart=function(t){this._onStartFns.push(t)},t.prototype._onStart=function(){this.hasStarted()||(this._started=!0,this._onStartFns.forEach(function(t){return t()}),this._onStartFns=[])},t.prototype.onDone=function(t){this._onDoneFns.push(t)},t.prototype.onDestroy=function(t){this._onDestroyFns.push(t)},t.prototype.hasStarted=function(){return this._started},t.prototype.play=function(){this.parentPlayer||this.init(),this._onStart(),this.players.forEach(function(t){return t.play()})},t.prototype.pause=function(){this.players.forEach(function(t){return t.pause()})},t.prototype.restart=function(){this.players.forEach(function(t){return t.restart()})},t.prototype.finish=function(){this._onFinish(),this.players.forEach(function(t){return t.finish()})},t.prototype.destroy=function(){this._onDestroy()},t.prototype._onDestroy=function(){this._destroyed||(this._destroyed=!0,this._onFinish(),this.players.forEach(function(t){return t.destroy()}),this._onDestroyFns.forEach(function(t){return t()}),this._onDestroyFns=[])},t.prototype.reset=function(){this.players.forEach(function(t){return t.reset()}),this._destroyed=!1,this._finished=!1,this._started=!1},t.prototype.setPosition=function(t){var e=t*this.totalTime;this.players.forEach(function(t){var n=t.totalTime?Math.min(1,e/t.totalTime):1;t.setPosition(n)})},t.prototype.getPosition=function(){var t=0;return this.players.forEach(function(e){var n=e.getPosition();t=Math.min(n,t)}),t},t.prototype.beforeDestroy=function(){this.players.forEach(function(t){t.beforeDestroy&&t.beforeDestroy()})},t.prototype.triggerCallback=function(t){var e="start"==t?this._onStartFns:this._onDoneFns;e.forEach(function(t){return t()}),e.length=0},t}(),Ud="!";function Hd(t){return null!=t&&""+t!="false"}function qd(t,e){return void 0===e&&(e=0),function(t){return!isNaN(parseFloat(t))&&!isNaN(Number(t))}(t)?Number(t):e}function Wd(t){return Array.isArray(t)?t:[t]}function Yd(t){return null==t?"":"string"==typeof t?t:t+"px"}function Kd(t){return t instanceof Ee?t.nativeElement:t}try{zd="undefined"!=typeof Intl&&Intl.v8BreakIterator}catch(ML){zd=!1}var Xd,Zd,Qd=function(){function t(t){this._platformId=t,this.isBrowser=this._platformId?this._platformId===Tl:"object"==typeof document&&!!document,this.EDGE=this.isBrowser&&/(edge)/i.test(navigator.userAgent),this.TRIDENT=this.isBrowser&&/(msie|trident)/i.test(navigator.userAgent),this.BLINK=this.isBrowser&&!(!window.chrome&&!zd)&&"undefined"!=typeof CSS&&!this.EDGE&&!this.TRIDENT,this.WEBKIT=this.isBrowser&&/AppleWebKit/i.test(navigator.userAgent)&&!this.BLINK&&!this.EDGE&&!this.TRIDENT,this.IOS=this.isBrowser&&/iPad|iPhone|iPod/.test(navigator.userAgent)&&!("MSStream"in window),this.FIREFOX=this.isBrowser&&/(firefox|minefield)/i.test(navigator.userAgent),this.ANDROID=this.isBrowser&&/android/i.test(navigator.userAgent)&&!this.TRIDENT,this.SAFARI=this.isBrowser&&/safari/i.test(navigator.userAgent)&&this.WEBKIT}return t.ngInjectableDef=mt({factory:function(){return new t(ee(Cn,8))},token:t,providedIn:"root"}),t}(),Jd=function(){return function(){}}(),$d=["color","button","checkbox","date","datetime-local","email","file","hidden","image","month","number","password","radio","range","reset","search","submit","tel","text","time","url","week"];function tf(){if(Xd)return Xd;if("object"!=typeof document||!document)return Xd=new Set($d);var t=document.createElement("input");return Xd=new Set($d.filter(function(e){return t.setAttribute("type",e),t.type===e}))}function ef(t){return function(){if(null==Zd&&"undefined"!=typeof window)try{window.addEventListener("test",null,Object.defineProperty({},"passive",{get:function(){return Zd=!0}}))}finally{Zd=Zd||!1}return Zd}()?t:!!t.capture}var nf,rf=function(){var t={NORMAL:0,NEGATED:1,INVERTED:2};return t[t.NORMAL]="NORMAL",t[t.NEGATED]="NEGATED",t[t.INVERTED]="INVERTED",t}();function of(){if("object"!=typeof document||!document)return rf.NORMAL;if(!nf){var t=document.createElement("div"),e=t.style;t.dir="rtl",e.height="1px",e.width="1px",e.overflow="auto",e.visibility="hidden",e.pointerEvents="none",e.position="absolute";var n=document.createElement("div"),i=n.style;i.width="2px",i.height="1px",t.appendChild(n),document.body.appendChild(t),nf=rf.NORMAL,0===t.scrollLeft&&(t.scrollLeft=1,nf=0===t.scrollLeft?rf.NEGATED:rf.INVERTED),t.parentNode.removeChild(t)}return nf}function sf(){for(var t=[],e=0;e-1&&n!==e._activeItemIndex&&(e._activeItemIndex=n)}})}return t.prototype.skipPredicate=function(t){return this._skipPredicateFn=t,this},t.prototype.withWrap=function(t){return void 0===t&&(t=!0),this._wrap=t,this},t.prototype.withVerticalOrientation=function(t){return void 0===t&&(t=!0),this._vertical=t,this},t.prototype.withHorizontalOrientation=function(t){return this._horizontal=t,this},t.prototype.withAllowedModifierKeys=function(t){return this._allowedModifierKeys=t,this},t.prototype.withTypeAhead=function(t){var e=this;if(void 0===t&&(t=200),this._items.length&&this._items.some(function(t){return"function"!=typeof t.getLabel}))throw Error("ListKeyManager items in typeahead mode must implement the `getLabel` method.");return this._typeaheadSubscription.unsubscribe(),this._typeaheadSubscription=this._letterKeyStream.pipe(za(function(t){return e._pressedLetters.push(t)}),ff(t),aa(function(){return e._pressedLetters.length>0}),Y(function(){return e._pressedLetters.join("")})).subscribe(function(t){for(var n=e._getItemsArray(),i=1;i-1});switch(n){case 9:return void this.tabOut.next();case 40:if(this._vertical&&i){this.setNextItemActive();break}return;case 38:if(this._vertical&&i){this.setPreviousItemActive();break}return;case 39:if(this._horizontal&&i){"rtl"===this._horizontal?this.setPreviousItemActive():this.setNextItemActive();break}return;case 37:if(this._horizontal&&i){"rtl"===this._horizontal?this.setNextItemActive():this.setPreviousItemActive();break}return;default:return void((i||uf(t,"shiftKey"))&&(t.key&&1===t.key.length?this._letterKeyStream.next(t.key.toLocaleUpperCase()):(n>=65&&n<=90||n>=48&&n<=57)&&this._letterKeyStream.next(String.fromCharCode(n))))}this._pressedLetters=[],t.preventDefault()},Object.defineProperty(t.prototype,"activeItemIndex",{get:function(){return this._activeItemIndex},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"activeItem",{get:function(){return this._activeItem},enumerable:!0,configurable:!0}),t.prototype.setFirstItemActive=function(){this._setActiveItemByIndex(0,1)},t.prototype.setLastItemActive=function(){this._setActiveItemByIndex(this._items.length-1,-1)},t.prototype.setNextItemActive=function(){this._activeItemIndex<0?this.setFirstItemActive():this._setActiveItemByDelta(1)},t.prototype.setPreviousItemActive=function(){this._activeItemIndex<0&&this._wrap?this.setLastItemActive():this._setActiveItemByDelta(-1)},t.prototype.updateActiveItem=function(t){var e=this._getItemsArray(),n="number"==typeof t?t:e.indexOf(t),i=e[n];this._activeItem=null==i?null:i,this._activeItemIndex=n},t.prototype.updateActiveItemIndex=function(t){this.updateActiveItem(t)},t.prototype._setActiveItemByDelta=function(t){this._wrap?this._setActiveInWrapMode(t):this._setActiveInDefaultMode(t)},t.prototype._setActiveInWrapMode=function(t){for(var e=this._getItemsArray(),n=1;n<=e.length;n++){var i=(this._activeItemIndex+t*n+e.length)%e.length;if(!this._skipPredicateFn(e[i]))return void this.setActiveItem(i)}},t.prototype._setActiveInDefaultMode=function(t){this._setActiveItemByIndex(this._activeItemIndex+t,t)},t.prototype._setActiveItemByIndex=function(t,e){var n=this._getItemsArray();if(n[t]){for(;this._skipPredicateFn(n[t]);)if(!n[t+=e])return;this.setActiveItem(t)}},t.prototype._getItemsArray=function(){return this._items instanceof ei?this._items.toArray():this._items},t}(),Ef=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return r(e,t),e.prototype.setActiveItem=function(e){this.activeItem&&this.activeItem.setInactiveStyles(),t.prototype.setActiveItem.call(this,e),this.activeItem&&this.activeItem.setActiveStyles()},e}(xf),Sf=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e._origin="program",e}return r(e,t),e.prototype.setFocusOrigin=function(t){return this._origin=t,this},e.prototype.setActiveItem=function(e){t.prototype.setActiveItem.call(this,e),this.activeItem&&this.activeItem.focus(this._origin)},e}(xf),Tf=function(){function t(t){this._platform=t}return t.prototype.isDisabled=function(t){return t.hasAttribute("disabled")},t.prototype.isVisible=function(t){return function(t){return!!(t.offsetWidth||t.offsetHeight||"function"==typeof t.getClientRects&&t.getClientRects().length)}(t)&&"visible"===getComputedStyle(t).visibility},t.prototype.isTabbable=function(t){if(!this._platform.isBrowser)return!1;var e,n=function(t){try{return t.frameElement}catch(ML){return null}}((e=t).ownerDocument&&e.ownerDocument.defaultView||window);if(n){var i=n&&n.nodeName.toLowerCase();if(-1===Of(n))return!1;if((this._platform.BLINK||this._platform.WEBKIT)&&"object"===i)return!1;if((this._platform.BLINK||this._platform.WEBKIT)&&!this.isVisible(n))return!1}var r=t.nodeName.toLowerCase(),o=Of(t);if(t.hasAttribute("contenteditable"))return-1!==o;if("iframe"===r)return!1;if("audio"===r){if(!t.hasAttribute("controls"))return!1;if(this._platform.BLINK)return!0}if("video"===r){if(!t.hasAttribute("controls")&&this._platform.TRIDENT)return!1;if(this._platform.BLINK||this._platform.FIREFOX)return!0}return("object"!==r||!this._platform.BLINK&&!this._platform.WEBKIT)&&!(this._platform.WEBKIT&&this._platform.IOS&&!function(t){var e=t.nodeName.toLowerCase(),n="input"===e&&t.type;return"text"===n||"password"===n||"select"===e||"textarea"===e}(t))&&t.tabIndex>=0},t.prototype.isFocusable=function(t){return function(t){return!function(t){return function(t){return"input"==t.nodeName.toLowerCase()}(t)&&"hidden"==t.type}(t)&&(function(t){var e=t.nodeName.toLowerCase();return"input"===e||"select"===e||"button"===e||"textarea"===e}(t)||function(t){return function(t){return"a"==t.nodeName.toLowerCase()}(t)&&t.hasAttribute("href")}(t)||t.hasAttribute("contenteditable")||If(t))}(t)&&!this.isDisabled(t)&&this.isVisible(t)},t.ngInjectableDef=mt({factory:function(){return new t(ee(Qd))},token:t,providedIn:"root"}),t}();function If(t){if(!t.hasAttribute("tabindex")||void 0===t.tabIndex)return!1;var e=t.getAttribute("tabindex");return"-32768"!=e&&!(!e||isNaN(parseInt(e,10)))}function Of(t){if(!If(t))return null;var e=parseInt(t.getAttribute("tabindex")||"",10);return isNaN(e)?-1:e}var Rf=function(){function t(t,e,n,i,r){void 0===r&&(r=!1);var o=this;this._element=t,this._checker=e,this._ngZone=n,this._document=i,this._hasAttached=!1,this._startAnchorListener=function(){return o.focusLastTabbableElement()},this._endAnchorListener=function(){return o.focusFirstTabbableElement()},this._enabled=!0,r||this.attachAnchors()}return Object.defineProperty(t.prototype,"enabled",{get:function(){return this._enabled},set:function(t){this._enabled=t,this._startAnchor&&this._endAnchor&&(this._toggleAnchorTabIndex(t,this._startAnchor),this._toggleAnchorTabIndex(t,this._endAnchor))},enumerable:!0,configurable:!0}),t.prototype.destroy=function(){var t=this._startAnchor,e=this._endAnchor;t&&(t.removeEventListener("focus",this._startAnchorListener),t.parentNode&&t.parentNode.removeChild(t)),e&&(e.removeEventListener("focus",this._endAnchorListener),e.parentNode&&e.parentNode.removeChild(e)),this._startAnchor=this._endAnchor=null},t.prototype.attachAnchors=function(){var t=this;return!!this._hasAttached||(this._ngZone.runOutsideAngular(function(){t._startAnchor||(t._startAnchor=t._createAnchor(),t._startAnchor.addEventListener("focus",t._startAnchorListener)),t._endAnchor||(t._endAnchor=t._createAnchor(),t._endAnchor.addEventListener("focus",t._endAnchorListener))}),this._element.parentNode&&(this._element.parentNode.insertBefore(this._startAnchor,this._element),this._element.parentNode.insertBefore(this._endAnchor,this._element.nextSibling),this._hasAttached=!0),this._hasAttached)},t.prototype.focusInitialElementWhenReady=function(){var t=this;return new Promise(function(e){t._executeOnStable(function(){return e(t.focusInitialElement())})})},t.prototype.focusFirstTabbableElementWhenReady=function(){var t=this;return new Promise(function(e){t._executeOnStable(function(){return e(t.focusFirstTabbableElement())})})},t.prototype.focusLastTabbableElementWhenReady=function(){var t=this;return new Promise(function(e){t._executeOnStable(function(){return e(t.focusLastTabbableElement())})})},t.prototype._getRegionBoundary=function(t){for(var e=this._element.querySelectorAll("[cdk-focus-region-"+t+"], [cdkFocusRegion"+t+"], [cdk-focus-"+t+"]"),n=0;n=0;n--){var i=e[n].nodeType===this._document.ELEMENT_NODE?this._getLastTabbableElement(e[n]):null;if(i)return i}return null},t.prototype._createAnchor=function(){var t=this._document.createElement("div");return this._toggleAnchorTabIndex(this._enabled,t),t.classList.add("cdk-visually-hidden"),t.classList.add("cdk-focus-trap-anchor"),t.setAttribute("aria-hidden","true"),t},t.prototype._toggleAnchorTabIndex=function(t,e){t?e.setAttribute("tabindex","0"):e.removeAttribute("tabindex")},t.prototype._executeOnStable=function(t){this._ngZone.isStable?t():this._ngZone.onStable.asObservable().pipe(Ra(1)).subscribe(t)},t}(),kf=function(){function t(t,e,n){this._checker=t,this._ngZone=e,this._document=n}return t.prototype.create=function(t,e){return void 0===e&&(e=!1),new Rf(t,this._checker,this._ngZone,this._document,e)},t.ngInjectableDef=mt({factory:function(){return new t(ee(Tf),ee(Fn),ee(Sl))},token:t,providedIn:"root"}),t}(),Pf=new yt("liveAnnouncerElement",{providedIn:"root",factory:function(){return null}}),Af=function(){function t(t,e,n){this._ngZone=e,this._document=n,this._liveElement=t||this._createLiveElement()}return t.prototype.announce=function(t){for(var e,n,i=this,r=[],o=1;o1?Array.prototype.slice.call(arguments):t)},i,n)})}function wm(t){return function(e){return e.lift(new Cm(t))}}var Cm=function(){function t(t){this.notifier=t}return t.prototype.call=function(t,e){var n=new xm(t),i=q(n,this.notifier);return i&&!n.seenValue?(n.add(i),e.subscribe(n)):n},t}(),xm=function(t){function e(e){var n=t.call(this,e)||this;return n.seenValue=!1,n}return r(e,t),e.prototype.notifyNext=function(t,e,n,i,r){this.seenValue=!0,this.complete()},e.prototype.notifyComplete=function(){},e}(W),Em=function(){return function(){}}();function Sm(t){return Error("A hint was already declared for 'align=\""+t+"\"'.")}var Tm=0,Im=Bf(function(){return function(t){this._elementRef=t}}(),"primary"),Om=new yt("MAT_FORM_FIELD_DEFAULT_OPTIONS"),Rm=function(t){function e(e,n,i,r,o,s,a,l){var u=t.call(this,e)||this;return u._elementRef=e,u._changeDetectorRef=n,u._dir=r,u._defaults=o,u._platform=s,u._ngZone=a,u._outlineGapCalculationNeededImmediately=!1,u._outlineGapCalculationNeededOnStable=!1,u._destroyed=new F,u._showAlwaysAnimate=!1,u._subscriptAnimationState="",u._hintLabel="",u._hintLabelId="mat-hint-"+Tm++,u._labelId="mat-form-field-label-"+Tm++,u._labelOptions=i||{},u.floatLabel=u._labelOptions.float||"auto",u._animationsEnabled="NoopAnimations"!==l,u.appearance=o&&o.appearance?o.appearance:"legacy",u}return r(e,t),Object.defineProperty(e.prototype,"appearance",{get:function(){return this._appearance},set:function(t){var e=this._appearance;this._appearance=t||this._defaults&&this._defaults.appearance||"legacy","outline"===this._appearance&&e!==t&&this._updateOutlineGapOnStable()},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"hideRequiredMarker",{get:function(){return this._hideRequiredMarker},set:function(t){this._hideRequiredMarker=Hd(t)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"_shouldAlwaysFloat",{get:function(){return"always"===this.floatLabel&&!this._showAlwaysAnimate},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"_canLabelFloat",{get:function(){return"never"!==this.floatLabel},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"hintLabel",{get:function(){return this._hintLabel},set:function(t){this._hintLabel=t,this._processHints()},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"floatLabel",{get:function(){return"legacy"!==this.appearance&&"never"===this._floatLabel?"auto":this._floatLabel},set:function(t){t!==this._floatLabel&&(this._floatLabel=t||this._labelOptions.float||"auto",this._changeDetectorRef.markForCheck())},enumerable:!0,configurable:!0}),e.prototype.getConnectedOverlayOrigin=function(){return this._connectionContainerRef||this._elementRef},e.prototype.ngAfterContentInit=function(){var t=this;this._validateControlChild();var e=this._control;e.controlType&&this._elementRef.nativeElement.classList.add("mat-form-field-type-"+e.controlType),e.stateChanges.pipe(af(null)).subscribe(function(){t._validatePlaceholders(),t._syncDescribedByIds(),t._changeDetectorRef.markForCheck()}),e.ngControl&&e.ngControl.valueChanges&&e.ngControl.valueChanges.pipe(wm(this._destroyed)).subscribe(function(){return t._changeDetectorRef.markForCheck()});var n=this._ngZone;n&&n.runOutsideAngular(function(){n.onStable.asObservable().pipe(wm(t._destroyed)).subscribe(function(){t._outlineGapCalculationNeededOnStable&&t.updateOutlineGap()})}),rt(this._prefixChildren.changes,this._suffixChildren.changes).subscribe(function(){t._updateOutlineGapOnStable(),t._changeDetectorRef.markForCheck()}),this._hintChildren.changes.pipe(af(null)).subscribe(function(){t._processHints(),t._changeDetectorRef.markForCheck()}),this._errorChildren.changes.pipe(af(null)).subscribe(function(){t._syncDescribedByIds(),t._changeDetectorRef.markForCheck()}),this._dir&&this._dir.change.pipe(wm(this._destroyed)).subscribe(function(){return t.updateOutlineGap()})},e.prototype.ngAfterContentChecked=function(){this._validateControlChild(),this._outlineGapCalculationNeededImmediately&&this.updateOutlineGap()},e.prototype.ngAfterViewInit=function(){this._subscriptAnimationState="enter",this._changeDetectorRef.detectChanges()},e.prototype.ngOnDestroy=function(){this._destroyed.next(),this._destroyed.complete()},e.prototype._shouldForward=function(t){var e=this._control?this._control.ngControl:null;return e&&e[t]},e.prototype._hasPlaceholder=function(){return!!(this._control&&this._control.placeholder||this._placeholderChild)},e.prototype._hasLabel=function(){return!!this._labelChild},e.prototype._shouldLabelFloat=function(){return this._canLabelFloat&&(this._control.shouldLabelFloat||this._shouldAlwaysFloat)},e.prototype._hideControlPlaceholder=function(){return"legacy"===this.appearance&&!this._hasLabel()||this._hasLabel()&&!this._shouldLabelFloat()},e.prototype._hasFloatingLabel=function(){return this._hasLabel()||"legacy"===this.appearance&&this._hasPlaceholder()},e.prototype._getDisplayedMessages=function(){return this._errorChildren&&this._errorChildren.length>0&&this._control.errorState?"error":"hint"},e.prototype._animateAndLockLabel=function(){var t=this;this._hasFloatingLabel()&&this._canLabelFloat&&(this._animationsEnabled&&(this._showAlwaysAnimate=!0,bm(this._label.nativeElement,"transitionend").pipe(Ra(1)).subscribe(function(){t._showAlwaysAnimate=!1})),this.floatLabel="always",this._changeDetectorRef.markForCheck())},e.prototype._validatePlaceholders=function(){if(this._control.placeholder&&this._placeholderChild)throw Error("Placeholder attribute and child element were both specified.")},e.prototype._processHints=function(){this._validateHints(),this._syncDescribedByIds()},e.prototype._validateHints=function(){var t,e,n=this;this._hintChildren&&this._hintChildren.forEach(function(i){if("start"===i.align){if(t||n.hintLabel)throw Sm("start");t=i}else if("end"===i.align){if(e)throw Sm("end");e=i}})},e.prototype._syncDescribedByIds=function(){if(this._control){var t=[];if("hint"===this._getDisplayedMessages()){var e=this._hintChildren?this._hintChildren.find(function(t){return"start"===t.align}):null,n=this._hintChildren?this._hintChildren.find(function(t){return"end"===t.align}):null;e?t.push(e.id):this._hintLabel&&t.push(this._hintLabelId),n&&t.push(n.id)}else this._errorChildren&&(t=this._errorChildren.map(function(t){return t.id}));this._control.setDescribedByIds(t)}},e.prototype._validateControlChild=function(){if(!this._control)throw Error("mat-form-field must contain a MatFormFieldControl.")},e.prototype.updateOutlineGap=function(){var t=this._label?this._label.nativeElement:null;if("outline"===this.appearance&&t&&t.children.length&&t.textContent.trim()&&(!this._platform||this._platform.isBrowser))if(document.documentElement.contains(this._elementRef.nativeElement)){var e=0,n=0,i=this._connectionContainerRef.nativeElement,r=i.querySelectorAll(".mat-form-field-outline-start"),o=i.querySelectorAll(".mat-form-field-outline-gap");if(this._label&&this._label.nativeElement.children.length){var s=i.getBoundingClientRect();if(0===s.width&&0===s.height)return this._outlineGapCalculationNeededOnStable=!0,void(this._outlineGapCalculationNeededImmediately=!1);for(var a=this._getStartEnd(s),l=this._getStartEnd(t.children[0].getBoundingClientRect()),u=0,c=0,h=t.children;c0?.75*u+10:0}for(var p=0;p *";case":leave":return"* => void";case":increment":return function(t,e){return parseFloat(e)>parseFloat(t)};case":decrement":return function(t,e){return parseFloat(e) *"}}(t,n);if("function"==typeof i)return void e.push(i);t=i}var r=t.match(/^(\*|[-\w]+)\s*()\s*(\*|[-\w]+)$/);if(null==r||r.length<4)return n.push('The provided transition expression "'+t+'" is not supported'),e;var o=r[1],s=r[2],a=r[3];e.push(Pg(o,a)),"<"!=s[0]||o==Og&&a==Og||e.push(Pg(a,o))}(t,r,i)}):r.push(n),r),animation:o,queryCount:e.queryCount,depCount:e.depCount,options:Ng(t.options)}},t.prototype.visitSequence=function(t,e){var n=this;return{type:2,steps:t.steps.map(function(t){return Tg(n,t,e)}),options:Ng(t.options)}},t.prototype.visitGroup=function(t,e){var n=this,i=e.currentTime,r=0,o=t.steps.map(function(t){e.currentTime=i;var o=Tg(n,t,e);return r=Math.max(r,e.currentTime),o});return e.currentTime=r,{type:3,steps:o,options:Ng(t.options)}},t.prototype.visitAnimate=function(t,e){var n,i=function(t,e){var n=null;if(t.hasOwnProperty("duration"))n=t;else if("number"==typeof t)return jg(cg(t,e).duration,0,"");var i=t;if(i.split(/\s+/).some(function(t){return"{"==t.charAt(0)&&"{"==t.charAt(1)})){var r=jg(0,0,"");return r.dynamic=!0,r.strValue=i,r}return jg((n=n||cg(i,e)).duration,n.delay,n.easing)}(t.timings,e.errors);e.currentAnimateTimings=i;var r=t.styles?t.styles:jd({});if(5==r.type)n=this.visitKeyframes(r,e);else{var o=t.styles,s=!1;if(!o){s=!0;var a={};i.easing&&(a.easing=i.easing),o=jd(a)}e.currentTime+=i.duration+i.delay;var l=this.visitStyle(o,e);l.isEmptyStep=s,n=l}return e.currentAnimateTimings=null,{type:4,timings:i,style:n,options:null}},t.prototype.visitStyle=function(t,e){var n=this._makeStyleAst(t,e);return this._validateStyleAst(n,e),n},t.prototype._makeStyleAst=function(t,e){var n=[];Array.isArray(t.styles)?t.styles.forEach(function(t){"string"==typeof t?t==Md?n.push(t):e.errors.push("The provided style string value "+t+" is not allowed."):n.push(t)}):n.push(t.styles);var i=!1,r=null;return n.forEach(function(t){if(Mg(t)){var e=t,n=e.easing;if(n&&(r=n,delete e.easing),!i)for(var o in e)if(e[o].toString().indexOf("{{")>=0){i=!0;break}}}),{type:6,styles:n,easing:r,offset:t.offset,containsDynamicStyles:i,options:null}},t.prototype._validateStyleAst=function(t,e){var n=this,i=e.currentAnimateTimings,r=e.currentTime,o=e.currentTime;i&&o>0&&(o-=i.duration+i.delay),t.styles.forEach(function(t){"string"!=typeof t&&Object.keys(t).forEach(function(i){if(n._driver.validateStyleProperty(i)){var s,a,l,u=e.collectedStyles[e.currentQuerySelector],c=u[i],h=!0;c&&(o!=r&&o>=c.startTime&&r<=c.endTime&&(e.errors.push('The CSS property "'+i+'" that exists between the times of "'+c.startTime+'ms" and "'+c.endTime+'ms" is also being animated in a parallel animation between the times of "'+o+'ms" and "'+r+'ms"'),h=!1),o=c.startTime),h&&(u[i]={startTime:o,endTime:r}),e.options&&(s=e.errors,a=e.options.params||{},(l=vg(t[i])).length&&l.forEach(function(t){a.hasOwnProperty(t)||s.push("Unable to resolve the local animation param "+t+" in the given list of values")}))}else e.errors.push('The provided animation property "'+i+'" is not a supported CSS property for animations')})})},t.prototype.visitKeyframes=function(t,e){var n=this,i={type:5,styles:[],options:null};if(!e.currentAnimateTimings)return e.errors.push("keyframes() must be placed inside of a call to animate()"),i;var r=0,o=[],s=!1,a=!1,l=0,u=t.steps.map(function(t){var i=n._makeStyleAst(t,e),u=null!=i.offset?i.offset:function(t){if("string"==typeof t)return null;var e=null;if(Array.isArray(t))t.forEach(function(t){if(Mg(t)&&t.hasOwnProperty("offset")){var n=t;e=parseFloat(n.offset),delete n.offset}});else if(Mg(t)&&t.hasOwnProperty("offset")){var n=t;e=parseFloat(n.offset),delete n.offset}return e}(i.styles),c=0;return null!=u&&(r++,c=i.offset=u),a=a||c<0||c>1,s=s||c0&&r0?r==p?1:h*r:o[r],a=s*m;e.currentTime=d+f.delay+a,f.duration=a,n._validateStyleAst(t,e),t.offset=s,i.styles.push(t)}),i},t.prototype.visitReference=function(t,e){return{type:8,animation:Tg(this,yg(t.animation),e),options:Ng(t.options)}},t.prototype.visitAnimateChild=function(t,e){return e.depCount++,{type:9,options:Ng(t.options)}},t.prototype.visitAnimateRef=function(t,e){return{type:10,animation:this.visitReference(t.animation,e),options:Ng(t.options)}},t.prototype.visitQuery=function(t,e){var n=e.currentQuerySelector,i=t.options||{};e.queryCount++,e.currentQuery=t;var r=u(function(t){var e=!!t.split(/\s*,\s*/).find(function(t){return":self"==t});return e&&(t=t.replace(Ag,"")),[t=t.replace(/@\*/g,".ng-trigger").replace(/@\w+/g,function(t){return".ng-trigger-"+t.substr(1)}).replace(/:animating/g,".ng-animating"),e]}(t.selector),2),o=r[0],s=r[1];e.currentQuerySelector=n.length?n+" "+o:o,Hm(e.collectedStyles,e.currentQuerySelector,{});var a=Tg(this,yg(t.animation),e);return e.currentQuery=null,e.currentQuerySelector=n,{type:11,selector:o,limit:i.limit||0,optional:!!i.optional,includeSelf:s,animation:a,originalSelector:t.selector,options:Ng(t.options)}},t.prototype.visitStagger=function(t,e){e.currentQuery||e.errors.push("stagger() can only be used inside of query()");var n="full"===t.timings?{duration:0,delay:0,easing:"full"}:cg(t.timings,e.errors,!0);return{type:12,animation:Tg(this,yg(t.animation),e),timings:n,options:null}},t}(),Fg=function(){return function(t){this.errors=t,this.queryCount=0,this.depCount=0,this.currentTransition=null,this.currentQuery=null,this.currentQuerySelector=null,this.currentAnimateTimings=null,this.currentTime=0,this.collectedStyles={},this.options=null}}();function Mg(t){return!Array.isArray(t)&&"object"==typeof t}function Ng(t){var e;return t?(t=hg(t)).params&&(t.params=(e=t.params)?hg(e):null):t={},t}function jg(t,e,n){return{duration:t,delay:e,easing:n}}function Vg(t,e,n,i,r,o,s,a){return void 0===s&&(s=null),void 0===a&&(a=!1),{type:1,element:t,keyframes:e,preStyleProps:n,postStyleProps:i,duration:r,delay:o,totalTime:r+o,easing:s,subTimeline:a}}var zg=function(){function t(){this._map=new Map}return t.prototype.consume=function(t){var e=this._map.get(t);return e?this._map.delete(t):e=[],e},t.prototype.append=function(t,e){var n=this._map.get(t);n||this._map.set(t,n=[]),n.push.apply(n,c(e))},t.prototype.has=function(t){return this._map.has(t)},t.prototype.clear=function(){this._map.clear()},t}(),Bg=new RegExp(":enter","g"),Gg=new RegExp(":leave","g");function Ug(t,e,n,i,r,o,s,a,l,u){return void 0===o&&(o={}),void 0===s&&(s={}),void 0===u&&(u=[]),(new Hg).buildKeyframes(t,e,n,i,r,o,s,a,l,u)}var Hg=function(){function t(){}return t.prototype.buildKeyframes=function(t,e,n,i,r,o,s,a,l,u){void 0===u&&(u=[]),l=l||new zg;var c=new Wg(t,e,l,i,r,u,[]);c.options=a,c.currentTimeline.setStyles([o],null,c.errors,a),Tg(this,n,c);var h=c.timelines.filter(function(t){return t.containsAnimation()});if(h.length&&Object.keys(s).length){var p=h[h.length-1];p.allowOnlyTimelineStyles()||p.setStyles([s],null,c.errors,a)}return h.length?h.map(function(t){return t.buildKeyframes()}):[Vg(e,[],[],[],0,0,"",!1)]},t.prototype.visitTrigger=function(t,e){},t.prototype.visitState=function(t,e){},t.prototype.visitTransition=function(t,e){},t.prototype.visitAnimateChild=function(t,e){var n=e.subInstructions.consume(e.element);if(n){var i=e.createSubContext(t.options),r=e.currentTimeline.currentTime,o=this._visitSubInstructions(n,i,i.options);r!=o&&e.transformIntoNewTimeline(o)}e.previousNode=t},t.prototype.visitAnimateRef=function(t,e){var n=e.createSubContext(t.options);n.transformIntoNewTimeline(),this.visitReference(t.animation,n),e.transformIntoNewTimeline(n.currentTimeline.currentTime),e.previousNode=t},t.prototype._visitSubInstructions=function(t,e,n){var i=e.currentTimeline.currentTime,r=null!=n.duration?lg(n.duration):null,o=null!=n.delay?lg(n.delay):null;return 0!==r&&t.forEach(function(t){var n=e.appendInstructionToTimeline(t,r,o);i=Math.max(i,n.duration+n.delay)}),i},t.prototype.visitReference=function(t,e){e.updateOptions(t.options,!0),Tg(this,t.animation,e),e.previousNode=t},t.prototype.visitSequence=function(t,e){var n=this,i=e.subContextCount,r=e,o=t.options;if(o&&(o.params||o.delay)&&((r=e.createSubContext(o)).transformIntoNewTimeline(),null!=o.delay)){6==r.previousNode.type&&(r.currentTimeline.snapshotCurrentStyles(),r.previousNode=qg);var s=lg(o.delay);r.delayNextStep(s)}t.steps.length&&(t.steps.forEach(function(t){return Tg(n,t,r)}),r.currentTimeline.applyStylesToKeyframe(),r.subContextCount>i&&r.transformIntoNewTimeline()),e.previousNode=t},t.prototype.visitGroup=function(t,e){var n=this,i=[],r=e.currentTimeline.currentTime,o=t.options&&t.options.delay?lg(t.options.delay):0;t.steps.forEach(function(s){var a=e.createSubContext(t.options);o&&a.delayNextStep(o),Tg(n,s,a),r=Math.max(r,a.currentTimeline.currentTime),i.push(a.currentTimeline)}),i.forEach(function(t){return e.currentTimeline.mergeTimelineCollectedStyles(t)}),e.transformIntoNewTimeline(r),e.previousNode=t},t.prototype._visitTiming=function(t,e){if(t.dynamic){var n=t.strValue;return cg(e.params?bg(n,e.params,e.errors):n,e.errors)}return{duration:t.duration,delay:t.delay,easing:t.easing}},t.prototype.visitAnimate=function(t,e){var n=e.currentAnimateTimings=this._visitTiming(t.timings,e),i=e.currentTimeline;n.delay&&(e.incrementTime(n.delay),i.snapshotCurrentStyles());var r=t.style;5==r.type?this.visitKeyframes(r,e):(e.incrementTime(n.duration),this.visitStyle(r,e),i.applyStylesToKeyframe()),e.currentAnimateTimings=null,e.previousNode=t},t.prototype.visitStyle=function(t,e){var n=e.currentTimeline,i=e.currentAnimateTimings;!i&&n.getCurrentStyleProperties().length&&n.forwardFrame();var r=i&&i.easing||t.easing;t.isEmptyStep?n.applyEmptyStep(r):n.setStyles(t.styles,r,e.errors,e.options),e.previousNode=t},t.prototype.visitKeyframes=function(t,e){var n=e.currentAnimateTimings,i=e.currentTimeline.duration,r=n.duration,o=e.createSubContext().currentTimeline;o.easing=n.easing,t.styles.forEach(function(t){o.forwardTime((t.offset||0)*r),o.setStyles(t.styles,t.easing,e.errors,e.options),o.applyStylesToKeyframe()}),e.currentTimeline.mergeTimelineCollectedStyles(o),e.transformIntoNewTimeline(i+r),e.previousNode=t},t.prototype.visitQuery=function(t,e){var n=this,i=e.currentTimeline.currentTime,r=t.options||{},o=r.delay?lg(r.delay):0;o&&(6===e.previousNode.type||0==i&&e.currentTimeline.getCurrentStyleProperties().length)&&(e.currentTimeline.snapshotCurrentStyles(),e.previousNode=qg);var s=i,a=e.invokeQuery(t.selector,t.originalSelector,t.limit,t.includeSelf,!!r.optional,e.errors);e.currentQueryTotal=a.length;var l=null;a.forEach(function(i,r){e.currentQueryIndex=r;var a=e.createSubContext(t.options,i);o&&a.delayNextStep(o),i===e.element&&(l=a.currentTimeline),Tg(n,t.animation,a),a.currentTimeline.applyStylesToKeyframe(),s=Math.max(s,a.currentTimeline.currentTime)}),e.currentQueryIndex=0,e.currentQueryTotal=0,e.transformIntoNewTimeline(s),l&&(e.currentTimeline.mergeTimelineCollectedStyles(l),e.currentTimeline.snapshotCurrentStyles()),e.previousNode=t},t.prototype.visitStagger=function(t,e){var n=e.parentContext,i=e.currentTimeline,r=t.timings,o=Math.abs(r.duration),s=o*(e.currentQueryTotal-1),a=o*e.currentQueryIndex;switch(r.duration<0?"reverse":r.easing){case"reverse":a=s-a;break;case"full":a=n.currentStaggerTime}var l=e.currentTimeline;a&&l.delayNextStep(a);var u=l.currentTime;Tg(this,t.animation,e),e.previousNode=t,n.currentStaggerTime=i.currentTime-u+(i.startTime-n.currentTimeline.startTime)},t}(),qg={},Wg=function(){function t(t,e,n,i,r,o,s,a){this._driver=t,this.element=e,this.subInstructions=n,this._enterClassName=i,this._leaveClassName=r,this.errors=o,this.timelines=s,this.parentContext=null,this.currentAnimateTimings=null,this.previousNode=qg,this.subContextCount=0,this.options={},this.currentQueryIndex=0,this.currentQueryTotal=0,this.currentStaggerTime=0,this.currentTimeline=a||new Yg(this._driver,e,0),s.push(this.currentTimeline)}return Object.defineProperty(t.prototype,"params",{get:function(){return this.options.params},enumerable:!0,configurable:!0}),t.prototype.updateOptions=function(t,e){var n=this;if(t){var i=t,r=this.options;null!=i.duration&&(r.duration=lg(i.duration)),null!=i.delay&&(r.delay=lg(i.delay));var o=i.params;if(o){var s=r.params;s||(s=this.options.params={}),Object.keys(o).forEach(function(t){e&&s.hasOwnProperty(t)||(s[t]=bg(o[t],s,n.errors))})}}},t.prototype._copyOptions=function(){var t={};if(this.options){var e=this.options.params;if(e){var n=t.params={};Object.keys(e).forEach(function(t){n[t]=e[t]})}}return t},t.prototype.createSubContext=function(e,n,i){void 0===e&&(e=null);var r=n||this.element,o=new t(this._driver,r,this.subInstructions,this._enterClassName,this._leaveClassName,this.errors,this.timelines,this.currentTimeline.fork(r,i||0));return o.previousNode=this.previousNode,o.currentAnimateTimings=this.currentAnimateTimings,o.options=this._copyOptions(),o.updateOptions(e),o.currentQueryIndex=this.currentQueryIndex,o.currentQueryTotal=this.currentQueryTotal,o.parentContext=this,this.subContextCount++,o},t.prototype.transformIntoNewTimeline=function(t){return this.previousNode=qg,this.currentTimeline=this.currentTimeline.fork(this.element,t),this.timelines.push(this.currentTimeline),this.currentTimeline},t.prototype.appendInstructionToTimeline=function(t,e,n){var i={duration:null!=e?e:t.duration,delay:this.currentTimeline.currentTime+(null!=n?n:0)+t.delay,easing:""},r=new Kg(this._driver,t.element,t.keyframes,t.preStyleProps,t.postStyleProps,i,t.stretchStartingKeyframe);return this.timelines.push(r),i},t.prototype.incrementTime=function(t){this.currentTimeline.forwardTime(this.currentTimeline.duration+t)},t.prototype.delayNextStep=function(t){t>0&&this.currentTimeline.delayNextStep(t)},t.prototype.invokeQuery=function(t,e,n,i,r,o){var s=[];if(i&&s.push(this.element),t.length>0){t=(t=t.replace(Bg,"."+this._enterClassName)).replace(Gg,"."+this._leaveClassName);var a=this._driver.query(this.element,t,1!=n);0!==n&&(a=n<0?a.slice(a.length+n,a.length):a.slice(0,n)),s.push.apply(s,c(a))}return r||0!=s.length||o.push('`query("'+e+'")` returned zero elements. (Use `query("'+e+'", { optional: true })` if you wish to allow this.)'),s},t}(),Yg=function(){function t(t,e,n,i){this._driver=t,this.element=e,this.startTime=n,this._elementTimelineStylesLookup=i,this.duration=0,this._previousKeyframe={},this._currentKeyframe={},this._keyframes=new Map,this._styleSummary={},this._pendingStyles={},this._backFill={},this._currentEmptyStepKeyframe=null,this._elementTimelineStylesLookup||(this._elementTimelineStylesLookup=new Map),this._localTimelineStyles=Object.create(this._backFill,{}),this._globalTimelineStyles=this._elementTimelineStylesLookup.get(e),this._globalTimelineStyles||(this._globalTimelineStyles=this._localTimelineStyles,this._elementTimelineStylesLookup.set(e,this._localTimelineStyles)),this._loadKeyframe()}return t.prototype.containsAnimation=function(){switch(this._keyframes.size){case 0:return!1;case 1:return this.getCurrentStyleProperties().length>0;default:return!0}},t.prototype.getCurrentStyleProperties=function(){return Object.keys(this._currentKeyframe)},Object.defineProperty(t.prototype,"currentTime",{get:function(){return this.startTime+this.duration},enumerable:!0,configurable:!0}),t.prototype.delayNextStep=function(t){var e=1==this._keyframes.size&&Object.keys(this._pendingStyles).length;this.duration||e?(this.forwardTime(this.currentTime+t),e&&this.snapshotCurrentStyles()):this.startTime+=t},t.prototype.fork=function(e,n){return this.applyStylesToKeyframe(),new t(this._driver,e,n||this.currentTime,this._elementTimelineStylesLookup)},t.prototype._loadKeyframe=function(){this._currentKeyframe&&(this._previousKeyframe=this._currentKeyframe),this._currentKeyframe=this._keyframes.get(this.duration),this._currentKeyframe||(this._currentKeyframe=Object.create(this._backFill,{}),this._keyframes.set(this.duration,this._currentKeyframe))},t.prototype.forwardFrame=function(){this.duration+=1,this._loadKeyframe()},t.prototype.forwardTime=function(t){this.applyStylesToKeyframe(),this.duration=t,this._loadKeyframe()},t.prototype._updateStyle=function(t,e){this._localTimelineStyles[t]=e,this._globalTimelineStyles[t]=e,this._styleSummary[t]={time:this.currentTime,value:e}},t.prototype.allowOnlyTimelineStyles=function(){return this._currentEmptyStepKeyframe!==this._currentKeyframe},t.prototype.applyEmptyStep=function(t){var e=this;t&&(this._previousKeyframe.easing=t),Object.keys(this._globalTimelineStyles).forEach(function(t){e._backFill[t]=e._globalTimelineStyles[t]||Md,e._currentKeyframe[t]=Md}),this._currentEmptyStepKeyframe=this._currentKeyframe},t.prototype.setStyles=function(t,e,n,i){var r=this;e&&(this._previousKeyframe.easing=e);var o=i&&i.params||{},s=function(t,e){var n,i={};return t.forEach(function(t){"*"===t?(n=n||Object.keys(e)).forEach(function(t){i[t]=Md}):pg(t,!1,i)}),i}(t,this._globalTimelineStyles);Object.keys(s).forEach(function(t){var e=bg(s[t],o,n);r._pendingStyles[t]=e,r._localTimelineStyles.hasOwnProperty(t)||(r._backFill[t]=r._globalTimelineStyles.hasOwnProperty(t)?r._globalTimelineStyles[t]:Md),r._updateStyle(t,e)})},t.prototype.applyStylesToKeyframe=function(){var t=this,e=this._pendingStyles,n=Object.keys(e);0!=n.length&&(this._pendingStyles={},n.forEach(function(n){t._currentKeyframe[n]=e[n]}),Object.keys(this._localTimelineStyles).forEach(function(e){t._currentKeyframe.hasOwnProperty(e)||(t._currentKeyframe[e]=t._localTimelineStyles[e])}))},t.prototype.snapshotCurrentStyles=function(){var t=this;Object.keys(this._localTimelineStyles).forEach(function(e){var n=t._localTimelineStyles[e];t._pendingStyles[e]=n,t._updateStyle(e,n)})},t.prototype.getFinalKeyframe=function(){return this._keyframes.get(this.duration)},Object.defineProperty(t.prototype,"properties",{get:function(){var t=[];for(var e in this._currentKeyframe)t.push(e);return t},enumerable:!0,configurable:!0}),t.prototype.mergeTimelineCollectedStyles=function(t){var e=this;Object.keys(t._styleSummary).forEach(function(n){var i=e._styleSummary[n],r=t._styleSummary[n];(!i||r.time>i.time)&&e._updateStyle(n,r.value)})},t.prototype.buildKeyframes=function(){var t=this;this.applyStylesToKeyframe();var e=new Set,n=new Set,i=1===this._keyframes.size&&0===this.duration,r=[];this._keyframes.forEach(function(o,s){var a=pg(o,!0);Object.keys(a).forEach(function(t){var i=a[t];i==Ud?e.add(t):i==Md&&n.add(t)}),i||(a.offset=s/t.duration),r.push(a)});var o=e.size?wg(e.values()):[],s=n.size?wg(n.values()):[];if(i){var a=r[0],l=hg(a);a.offset=0,l.offset=1,r=[a,l]}return Vg(this.element,r,o,s,this.duration,this.startTime,this.easing,!1)},t}(),Kg=function(t){function e(e,n,i,r,o,s,a){void 0===a&&(a=!1);var l=t.call(this,e,n,s.delay)||this;return l.element=n,l.keyframes=i,l.preStyleProps=r,l.postStyleProps=o,l._stretchStartingKeyframe=a,l.timings={duration:s.duration,delay:s.delay,easing:s.easing},l}return r(e,t),e.prototype.containsAnimation=function(){return this.keyframes.length>1},e.prototype.buildKeyframes=function(){var t=this.keyframes,e=this.timings,n=e.delay,i=e.duration,r=e.easing;if(this._stretchStartingKeyframe&&n){var o=[],s=i+n,a=n/s,l=pg(t[0],!1);l.offset=0,o.push(l);var u=pg(t[0],!1);u.offset=Xg(a),o.push(u);for(var c=t.length-1,h=1;h<=c;h++){var p=pg(t[h],!1);p.offset=Xg((n+p.offset*i)/s),o.push(p)}i=s,n=0,r="",t=o}return Vg(this.element,t,this.preStyleProps,this.postStyleProps,i,n,r,!0)},e}(Yg);function Xg(t,e){void 0===e&&(e=3);var n=Math.pow(10,e-1);return Math.round(t*n)/n}var Zg=function(){return function(){}}(),Qg=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return r(e,t),e.prototype.normalizePropertyName=function(t,e){return xg(t)},e.prototype.normalizeStyleValue=function(t,e,n,i){var r="",o=n.toString().trim();if(Jg[e]&&0!==n&&"0"!==n)if("number"==typeof n)r="px";else{var s=n.match(/^[+-]?[\d\.]+([a-z]*)$/);s&&0==s[1].length&&i.push("Please provide a CSS unit value for "+t+":"+n)}return o+r},e}(Zg),Jg=$g("width,height,minWidth,minHeight,maxWidth,maxHeight,left,top,bottom,right,fontSize,outlineWidth,outlineOffset,paddingTop,paddingLeft,paddingBottom,paddingRight,marginTop,marginLeft,marginBottom,marginRight,borderRadius,borderWidth,borderTopWidth,borderLeftWidth,borderRightWidth,borderBottomWidth,textIndent,perspective".split(","));function $g(t){var e={};return t.forEach(function(t){return e[t]=!0}),e}function ty(t,e,n,i,r,o,s,a,l,u,c,h,p){return{type:0,element:t,triggerName:e,isRemovalTransition:r,fromState:n,fromStyles:o,toState:i,toStyles:s,timelines:a,queriedElements:l,preStyleProps:u,postStyleProps:c,totalTime:h,errors:p}}var ey={},ny=function(){function t(t,e,n){this._triggerName=t,this.ast=e,this._stateStyles=n}return t.prototype.match=function(t,e,n,i){return function(t,e,n,i,r){return t.some(function(t){return t(e,n,i,r)})}(this.ast.matchers,t,e,n,i)},t.prototype.buildStyles=function(t,e,n){var i=this._stateStyles["*"],r=this._stateStyles[t],o=i?i.buildStyles(e,n):{};return r?r.buildStyles(e,n):o},t.prototype.build=function(t,e,n,i,r,s,a,l,u,c){var h=[],p=this.ast.options&&this.ast.options.params||ey,d=this.buildStyles(n,a&&a.params||ey,h),f=l&&l.params||ey,m=this.buildStyles(i,f,h),g=new Set,y=new Map,_=new Map,v="void"===i,b={params:o({},p,f)},w=c?[]:Ug(t,e,this.ast.animation,r,s,d,m,b,u,h),C=0;if(w.forEach(function(t){C=Math.max(t.duration+t.delay,C)}),h.length)return ty(e,this._triggerName,n,i,v,d,m,[],[],y,_,C,h);w.forEach(function(t){var n=t.element,i=Hm(y,n,{});t.preStyleProps.forEach(function(t){return i[t]=!0});var r=Hm(_,n,{});t.postStyleProps.forEach(function(t){return r[t]=!0}),n!==e&&g.add(n)});var x=wg(g.values());return ty(e,this._triggerName,n,i,v,d,m,w,x,y,_,C)},t}(),iy=function(){function t(t,e){this.styles=t,this.defaultParams=e}return t.prototype.buildStyles=function(t,e){var n={},i=hg(this.defaultParams);return Object.keys(t).forEach(function(e){var n=t[e];null!=n&&(i[e]=n)}),this.styles.styles.forEach(function(t){if("string"!=typeof t){var r=t;Object.keys(r).forEach(function(t){var o=r[t];o.length>1&&(o=bg(o,i,e)),n[t]=o})}}),n},t}(),ry=function(){function t(t,e){var n=this;this.name=t,this.ast=e,this.transitionFactories=[],this.states={},e.states.forEach(function(t){n.states[t.name]=new iy(t.style,t.options&&t.options.params||{})}),oy(this.states,"true","1"),oy(this.states,"false","0"),e.transitions.forEach(function(e){n.transitionFactories.push(new ny(t,e,n.states))}),this.fallbackTransition=new ny(t,{type:1,animation:{type:2,steps:[],options:null},matchers:[function(t,e){return!0}],options:null,queryCount:0,depCount:0},this.states)}return Object.defineProperty(t.prototype,"containsQueries",{get:function(){return this.ast.queryCount>0},enumerable:!0,configurable:!0}),t.prototype.matchTransition=function(t,e,n,i){return this.transitionFactories.find(function(r){return r.match(t,e,n,i)})||null},t.prototype.matchStyles=function(t,e,n){return this.fallbackTransition.buildStyles(t,e,n)},t}();function oy(t,e,n){t.hasOwnProperty(e)?t.hasOwnProperty(n)||(t[n]=t[e]):t.hasOwnProperty(n)&&(t[e]=t[n])}var sy=new zg,ay=function(){function t(t,e,n){this.bodyNode=t,this._driver=e,this._normalizer=n,this._animations={},this._playersById={},this.players=[]}return t.prototype.register=function(t,e){var n=[],i=Lg(this._driver,e,n);if(n.length)throw new Error("Unable to build the animation due to the following errors: "+n.join("\n"));this._animations[t]=i},t.prototype._buildPlayer=function(t,e,n){var i=t.element,r=zm(0,this._normalizer,0,t.keyframes,e,n);return this._driver.animate(i,r,t.duration,t.delay,t.easing,[],!0)},t.prototype.create=function(t,e,n){var i=this;void 0===n&&(n={});var r,o=[],s=this._animations[t],a=new Map;if(s?(r=Ug(this._driver,e,s,"ng-enter","ng-leave",{},{},n,sy,o)).forEach(function(t){var e=Hm(a,t.element,{});t.postStyleProps.forEach(function(t){return e[t]=null})}):(o.push("The requested animation doesn't exist or has already been destroyed"),r=[]),o.length)throw new Error("Unable to create the animation due to the following errors: "+o.join("\n"));a.forEach(function(t,e){Object.keys(t).forEach(function(n){t[n]=i._driver.computeStyle(e,n,Md)})});var l=Vm(r.map(function(t){var e=a.get(t.element);return i._buildPlayer(t,{},e)}));return this._playersById[t]=l,l.onDestroy(function(){return i.destroy(t)}),this.players.push(l),l},t.prototype.destroy=function(t){var e=this._getPlayer(t);e.destroy(),delete this._playersById[t];var n=this.players.indexOf(e);n>=0&&this.players.splice(n,1)},t.prototype._getPlayer=function(t){var e=this._playersById[t];if(!e)throw new Error("Unable to find the timeline player referenced by "+t);return e},t.prototype.listen=function(t,e,n,i){var r=Um(e,"","","");return Bm(this._getPlayer(t),n,r,i),function(){}},t.prototype.command=function(t,e,n,i){if("register"!=n)if("create"!=n){var r=this._getPlayer(t);switch(n){case"play":r.play();break;case"pause":r.pause();break;case"reset":r.reset();break;case"restart":r.restart();break;case"finish":r.finish();break;case"init":r.init();break;case"setPosition":r.setPosition(parseFloat(i[0]));break;case"destroy":this.destroy(t)}}else this.create(t,e,i[0]||{});else this.register(t,i[0])},t}(),ly=[],uy={namespaceId:"",setForRemoval:!1,setForMove:!1,hasAnimation:!1,removedBeforeQueried:!1},cy={namespaceId:"",setForMove:!1,setForRemoval:!1,hasAnimation:!1,removedBeforeQueried:!0},hy="__ng_removed",py=function(){function t(t,e){void 0===e&&(e=""),this.namespaceId=e;var n=t&&t.hasOwnProperty("value");if(this.value=function(t){return null!=t?t:null}(n?t.value:t),n){var i=hg(t);delete i.value,this.options=i}else this.options={};this.options.params||(this.options.params={})}return Object.defineProperty(t.prototype,"params",{get:function(){return this.options.params},enumerable:!0,configurable:!0}),t.prototype.absorbOptions=function(t){var e=t.params;if(e){var n=this.options.params;Object.keys(e).forEach(function(t){null==n[t]&&(n[t]=e[t])})}},t}(),dy=new py("void"),fy=function(){function t(t,e,n){this.id=t,this.hostElement=e,this._engine=n,this.players=[],this._triggers={},this._queue=[],this._elementListeners=new Map,this._hostClassName="ng-tns-"+t,Cy(e,this._hostClassName)}return t.prototype.listen=function(t,e,n,i){var r,o=this;if(!this._triggers.hasOwnProperty(e))throw new Error('Unable to listen on the animation trigger event "'+n+'" because the animation trigger "'+e+"\" doesn't exist!");if(null==n||0==n.length)throw new Error('Unable to listen on the animation trigger "'+e+'" because the provided event is undefined!');if("start"!=(r=n)&&"done"!=r)throw new Error('The provided animation trigger event "'+n+'" for the animation trigger "'+e+'" is not supported!');var s=Hm(this._elementListeners,t,[]),a={name:e,phase:n,callback:i};s.push(a);var l=Hm(this._engine.statesByElement,t,{});return l.hasOwnProperty(e)||(Cy(t,"ng-trigger"),Cy(t,"ng-trigger-"+e),l[e]=dy),function(){o._engine.afterFlush(function(){var t=s.indexOf(a);t>=0&&s.splice(t,1),o._triggers[e]||delete l[e]})}},t.prototype.register=function(t,e){return!this._triggers[t]&&(this._triggers[t]=e,!0)},t.prototype._getTrigger=function(t){var e=this._triggers[t];if(!e)throw new Error('The provided animation trigger "'+t+'" has not been registered!');return e},t.prototype.trigger=function(t,e,n,i){var r=this;void 0===i&&(i=!0);var o=this._getTrigger(e),s=new gy(this.id,e,t),a=this._engine.statesByElement.get(t);a||(Cy(t,"ng-trigger"),Cy(t,"ng-trigger-"+e),this._engine.statesByElement.set(t,a={}));var l=a[e],u=new py(n,this.id);if(!(n&&n.hasOwnProperty("value"))&&l&&u.absorbOptions(l.options),a[e]=u,l||(l=dy),"void"===u.value||l.value!==u.value){var c=Hm(this._engine.playersByElement,t,[]);c.forEach(function(t){t.namespaceId==r.id&&t.triggerName==e&&t.queued&&t.destroy()});var h=o.matchTransition(l.value,u.value,t,u.params),p=!1;if(!h){if(!i)return;h=o.fallbackTransition,p=!0}return this._engine.totalQueuedPlayers++,this._queue.push({element:t,triggerName:e,transition:h,fromState:l,toState:u,player:s,isFallbackTransition:p}),p||(Cy(t,"ng-animate-queued"),s.onStart(function(){xy(t,"ng-animate-queued")})),s.onDone(function(){var e=r.players.indexOf(s);e>=0&&r.players.splice(e,1);var n=r._engine.playersByElement.get(t);if(n){var i=n.indexOf(s);i>=0&&n.splice(i,1)}}),this.players.push(s),c.push(s),s}if(!function(t,e){var n=Object.keys(t),i=Object.keys(e);if(n.length!=i.length)return!1;for(var r=0;r=0){for(var i=!1,r=n;r>=0;r--)if(this.driver.containsElement(this._namespaceList[r].hostElement,e)){this._namespaceList.splice(r+1,0,t),i=!0;break}i||this._namespaceList.splice(0,0,t)}else this._namespaceList.push(t);return this.namespacesByHostElement.set(e,t),t},t.prototype.register=function(t,e){var n=this._namespaceLookup[t];return n||(n=this.createNamespace(t,e)),n},t.prototype.registerTrigger=function(t,e,n){var i=this._namespaceLookup[t];i&&i.register(e,n)&&this.totalAnimations++},t.prototype.destroy=function(t,e){var n=this;if(t){var i=this._fetchNamespace(t);this.afterFlush(function(){n.namespacesByHostElement.delete(i.hostElement),delete n._namespaceLookup[t];var e=n._namespaceList.indexOf(i);e>=0&&n._namespaceList.splice(e,1)}),this.afterFlushAnimationsDone(function(){return i.destroy(e)})}},t.prototype._fetchNamespace=function(t){return this._namespaceLookup[t]},t.prototype.fetchNamespacesByElement=function(t){var e=new Set,n=this.statesByElement.get(t);if(n)for(var i=Object.keys(n),r=0;r=0&&this.collectedLeaveElements.splice(o,1)}if(t){var s=this._fetchNamespace(t);s&&s.insertNode(e,n)}i&&this.collectEnterElement(e)}},t.prototype.collectEnterElement=function(t){this.collectedEnterElements.push(t)},t.prototype.markElementAsDisabled=function(t,e){e?this.disabledNodes.has(t)||(this.disabledNodes.add(t),Cy(t,"ng-animate-disabled")):this.disabledNodes.has(t)&&(this.disabledNodes.delete(t),xy(t,"ng-animate-disabled"))},t.prototype.removeNode=function(t,e,n){if(yy(e)){var i=t?this._fetchNamespace(t):null;i?i.removeNode(e,n):this.markElementAsRemoved(t,e,!1,n)}else this._onRemovalComplete(e,n)},t.prototype.markElementAsRemoved=function(t,e,n,i){this.collectedLeaveElements.push(e),e[hy]={namespaceId:t,setForRemoval:i,hasAnimation:n,removedBeforeQueried:!1}},t.prototype.listen=function(t,e,n,i,r){return yy(e)?this._fetchNamespace(t).listen(e,n,i,r):function(){}},t.prototype._buildInstruction=function(t,e,n,i,r){return t.transition.build(this.driver,t.element,t.fromState.value,t.toState.value,n,i,t.fromState.options,t.toState.options,e,r)},t.prototype.destroyInnerAnimations=function(t){var e=this,n=this.driver.query(t,".ng-trigger",!0);n.forEach(function(t){return e.destroyActiveAnimationsForElement(t)}),0!=this.playersByQueriedElement.size&&(n=this.driver.query(t,".ng-animating",!0)).forEach(function(t){return e.finishActiveQueriedAnimationOnElement(t)})},t.prototype.destroyActiveAnimationsForElement=function(t){var e=this.playersByElement.get(t);e&&e.forEach(function(t){t.queued?t.markedForDestroy=!0:t.destroy()})},t.prototype.finishActiveQueriedAnimationOnElement=function(t){var e=this.playersByQueriedElement.get(t);e&&e.forEach(function(t){return t.finish()})},t.prototype.whenRenderingDone=function(){var t=this;return new Promise(function(e){if(t.players.length)return Vm(t.players).onDone(function(){return e()});e()})},t.prototype.processLeaveNode=function(t){var e=this,n=t[hy];if(n&&n.setForRemoval){if(t[hy]=uy,n.namespaceId){this.destroyInnerAnimations(t);var i=this._fetchNamespace(n.namespaceId);i&&i.clearElementCache(t)}this._onRemovalComplete(t,n.setForRemoval)}this.driver.matchesElement(t,".ng-animate-disabled")&&this.markElementAsDisabled(t,!1),this.driver.query(t,".ng-animate-disabled",!0).forEach(function(t){e.markElementAsDisabled(t,!1)})},t.prototype.flush=function(t){var e=this;void 0===t&&(t=-1);var n=[];if(this.newHostElements.size&&(this.newHostElements.forEach(function(t,n){return e._balanceNamespaceList(t,n)}),this.newHostElements.clear()),this.totalAnimations&&this.collectedEnterElements.length)for(var i=0;i=0;T--)this._namespaceList[T].drainQueuedTransitions(e).forEach(function(t){var e=t.player,o=t.element;if(E.push(e),n.collectedEnterElements.length){var s=o[hy];if(s&&s.setForMove)return void e.destroy()}var c=!d||!n.driver.containsElement(d,o),p=C.get(o),f=g.get(o),m=n._buildInstruction(t,i,f,p,c);if(m.errors&&m.errors.length)S.push(m);else{if(c)return e.onStart(function(){return gg(o,m.fromStyles)}),e.onDestroy(function(){return mg(o,m.toStyles)}),void r.push(e);if(t.isFallbackTransition)return e.onStart(function(){return gg(o,m.fromStyles)}),e.onDestroy(function(){return mg(o,m.toStyles)}),void r.push(e);m.timelines.forEach(function(t){return t.stretchStartingKeyframe=!0}),i.append(o,m.timelines),a.push({instruction:m,player:e,element:o}),m.queriedElements.forEach(function(t){return Hm(l,t,[]).push(e)}),m.preStyleProps.forEach(function(t,e){var n=Object.keys(t);if(n.length){var i=u.get(e);i||u.set(e,i=new Set),n.forEach(function(t){return i.add(t)})}}),m.postStyleProps.forEach(function(t,e){var n=Object.keys(t),i=h.get(e);i||h.set(e,i=new Set),n.forEach(function(t){return i.add(t)})})}});if(S.length){var I=[];S.forEach(function(t){I.push("@"+t.triggerName+" has failed due to:\n"),t.errors.forEach(function(t){return I.push("- "+t+"\n")})}),E.forEach(function(t){return t.destroy()}),this.reportError(I)}var O=new Map,R=new Map;a.forEach(function(t){var e=t.element;i.has(e)&&(R.set(e,e),n._beforeAnimationBuild(t.player.namespaceId,t.instruction,O))}),r.forEach(function(t){var e=t.element;n._getPreviousPlayers(e,!1,t.namespaceId,t.triggerName,null).forEach(function(t){Hm(O,e,[]).push(t),t.destroy()})});var k=_.filter(function(t){return Sy(t,u,h)}),P=new Map;vy(P,this.driver,b,h,Md).forEach(function(t){Sy(t,u,h)&&k.push(t)});var A=new Map;m.forEach(function(t,e){vy(A,n.driver,new Set(t),u,Ud)}),k.forEach(function(t){var e=P.get(t),n=A.get(t);P.set(t,o({},e,n))});var L=[],D=[],F={};a.forEach(function(t){var e=t.element,o=t.player,a=t.instruction;if(i.has(e)){if(p.has(e))return o.onDestroy(function(){return mg(e,a.toStyles)}),o.disabled=!0,o.overrideTotalTime(a.totalTime),void r.push(o);var l=F;if(R.size>1){for(var u=e,c=[];u=u.parentNode;){var h=R.get(u);if(h){l=h;break}c.push(u)}c.forEach(function(t){return R.set(t,l)})}var d=n._buildAnimation(o.namespaceId,a,O,s,A,P);if(o.setRealPlayer(d),l===F)L.push(o);else{var f=n.playersByElement.get(l);f&&f.length&&(o.parentPlayer=Vm(f)),r.push(o)}}else gg(e,a.fromStyles),o.onDestroy(function(){return mg(e,a.toStyles)}),D.push(o),p.has(e)&&r.push(o)}),D.forEach(function(t){var e=s.get(t.element);if(e&&e.length){var n=Vm(e);t.setRealPlayer(n)}}),r.forEach(function(t){t.parentPlayer?t.syncPlayerEvents(t.parentPlayer):t.destroy()});for(var M=0;M<_.length;M++){var N,j=(N=_[M])[hy];if(xy(N,"ng-leave"),!j||!j.hasAnimation){var V=[];if(l.size){var z=l.get(N);z&&z.length&&V.push.apply(V,c(z));for(var B=this.driver.query(N,".ng-animating",!0),G=0;G0?this.driver.animate(t.element,e,t.duration,t.delay,t.easing,n):new Bd(t.duration,t.delay)},t}(),gy=function(){function t(t,e,n){this.namespaceId=t,this.triggerName=e,this.element=n,this._player=new Bd,this._containsRealPlayer=!1,this._queuedCallbacks={},this.destroyed=!1,this.markedForDestroy=!1,this.disabled=!1,this.queued=!0,this.totalTime=0}return t.prototype.setRealPlayer=function(t){var e=this;this._containsRealPlayer||(this._player=t,Object.keys(this._queuedCallbacks).forEach(function(n){e._queuedCallbacks[n].forEach(function(e){return Bm(t,n,void 0,e)})}),this._queuedCallbacks={},this._containsRealPlayer=!0,this.overrideTotalTime(t.totalTime),this.queued=!1)},t.prototype.getRealPlayer=function(){return this._player},t.prototype.overrideTotalTime=function(t){this.totalTime=t},t.prototype.syncPlayerEvents=function(t){var e=this,n=this._player;n.triggerCallback&&t.onStart(function(){return n.triggerCallback("start")}),t.onDone(function(){return e.finish()}),t.onDestroy(function(){return e.destroy()})},t.prototype._queueEvent=function(t,e){Hm(this._queuedCallbacks,t,[]).push(e)},t.prototype.onDone=function(t){this.queued&&this._queueEvent("done",t),this._player.onDone(t)},t.prototype.onStart=function(t){this.queued&&this._queueEvent("start",t),this._player.onStart(t)},t.prototype.onDestroy=function(t){this.queued&&this._queueEvent("destroy",t),this._player.onDestroy(t)},t.prototype.init=function(){this._player.init()},t.prototype.hasStarted=function(){return!this.queued&&this._player.hasStarted()},t.prototype.play=function(){!this.queued&&this._player.play()},t.prototype.pause=function(){!this.queued&&this._player.pause()},t.prototype.restart=function(){!this.queued&&this._player.restart()},t.prototype.finish=function(){this._player.finish()},t.prototype.destroy=function(){this.destroyed=!0,this._player.destroy()},t.prototype.reset=function(){!this.queued&&this._player.reset()},t.prototype.setPosition=function(t){this.queued||this._player.setPosition(t)},t.prototype.getPosition=function(){return this.queued?0:this._player.getPosition()},t.prototype.triggerCallback=function(t){var e=this._player;e.triggerCallback&&e.triggerCallback(t)},t}();function yy(t){return t&&1===t.nodeType}function _y(t,e){var n=t.style.display;return t.style.display=null!=e?e:"none",n}function vy(t,e,n,i,r){var o=[];n.forEach(function(t){return o.push(_y(t))});var s=[];i.forEach(function(n,i){var o={};n.forEach(function(t){var n=o[t]=e.computeStyle(i,t,r);n&&0!=n.length||(i[hy]=cy,s.push(i))}),t.set(i,o)});var a=0;return n.forEach(function(t){return _y(t,o[a++])}),s}function by(t,e){var n=new Map;if(t.forEach(function(t){return n.set(t,[])}),0==e.length)return n;var i=new Set(e),r=new Map;return e.forEach(function(t){var e=function t(e){if(!e)return 1;var o=r.get(e);if(o)return o;var s=e.parentNode;return o=n.has(s)?s:i.has(s)?1:t(s),r.set(e,o),o}(t);1!==e&&n.get(e).push(t)}),n}var wy="$$classes";function Cy(t,e){if(t.classList)t.classList.add(e);else{var n=t[wy];n||(n=t[wy]={}),n[e]=!0}}function xy(t,e){if(t.classList)t.classList.remove(e);else{var n=t[wy];n&&delete n[e]}}function Ey(t,e,n){Vm(n).onDone(function(){return t.processLeaveNode(e)})}function Sy(t,e,n){var i=n.get(t);if(!i)return!1;var r=e.get(t);return r?i.forEach(function(t){return r.add(t)}):e.set(t,i),n.delete(t),!0}var Ty=function(){function t(t,e,n){var i=this;this.bodyNode=t,this._driver=e,this._triggerCache={},this.onRemovalComplete=function(t,e){},this._transitionEngine=new my(t,e,n),this._timelineEngine=new ay(t,e,n),this._transitionEngine.onRemovalComplete=function(t,e){return i.onRemovalComplete(t,e)}}return t.prototype.registerTrigger=function(t,e,n,i,r){var o=t+"-"+i,s=this._triggerCache[o];if(!s){var a=[],l=Lg(this._driver,r,a);if(a.length)throw new Error('The animation trigger "'+i+'" has failed to build due to the following errors:\n - '+a.join("\n - "));s=function(t,e){return new ry(t,e)}(i,l),this._triggerCache[o]=s}this._transitionEngine.registerTrigger(e,i,s)},t.prototype.register=function(t,e){this._transitionEngine.register(t,e)},t.prototype.destroy=function(t,e){this._transitionEngine.destroy(t,e)},t.prototype.onInsert=function(t,e,n,i){this._transitionEngine.insertNode(t,e,n,i)},t.prototype.onRemove=function(t,e,n){this._transitionEngine.removeNode(t,e,n)},t.prototype.disableAnimations=function(t,e){this._transitionEngine.markElementAsDisabled(t,e)},t.prototype.process=function(t,e,n,i){if("@"==n.charAt(0)){var r=u(qm(n),2);this._timelineEngine.command(r[0],e,r[1],i)}else this._transitionEngine.trigger(t,e,n,i)},t.prototype.listen=function(t,e,n,i,r){if("@"==n.charAt(0)){var o=u(qm(n),2);return this._timelineEngine.listen(o[0],e,o[1],r)}return this._transitionEngine.listen(t,e,n,i,r)},t.prototype.flush=function(t){void 0===t&&(t=-1),this._transitionEngine.flush(t)},Object.defineProperty(t.prototype,"players",{get:function(){return this._transitionEngine.players.concat(this._timelineEngine.players)},enumerable:!0,configurable:!0}),t.prototype.whenRenderingDone=function(){return this._transitionEngine.whenRenderingDone()},t}();function Iy(t,e){var n=null,i=null;return Array.isArray(e)&&e.length?(n=Ry(e[0]),e.length>1&&(i=Ry(e[e.length-1]))):e&&(n=Ry(e)),n||i?new Oy(t,n,i):null}var Oy=function(){function t(e,n,i){this._element=e,this._startStyles=n,this._endStyles=i,this._state=0;var r=t.initialStylesByElement.get(e);r||t.initialStylesByElement.set(e,r={}),this._initialStyles=r}return t.prototype.start=function(){this._state<1&&(this._startStyles&&mg(this._element,this._startStyles,this._initialStyles),this._state=1)},t.prototype.finish=function(){this.start(),this._state<2&&(mg(this._element,this._initialStyles),this._endStyles&&(mg(this._element,this._endStyles),this._endStyles=null),this._state=1)},t.prototype.destroy=function(){this.finish(),this._state<3&&(t.initialStylesByElement.delete(this._element),this._startStyles&&(gg(this._element,this._startStyles),this._endStyles=null),this._endStyles&&(gg(this._element,this._endStyles),this._endStyles=null),mg(this._element,this._initialStyles),this._state=3)},t.initialStylesByElement=new WeakMap,t}();function Ry(t){for(var e=null,n=Object.keys(t),i=0;i=this._delay&&n>=this._duration&&this.finish()},t.prototype.finish=function(){this._finished||(this._finished=!0,this._onDoneFn(),Ny(this._element,this._eventFn,!0))},t.prototype.destroy=function(){var t,e,n,i;this._destroyed||(this._destroyed=!0,this.finish(),e=this._name,(i=My(n=Vy(t=this._element,"").split(","),e))>=0&&(n.splice(i,1),jy(t,"",n.join(","))))},t}();function Dy(t,e,n){jy(t,"PlayState",n,Fy(t,e))}function Fy(t,e){var n=Vy(t,"");return n.indexOf(",")>0?My(n.split(","),e):My([n],e)}function My(t,e){for(var n=0;n=0)return n;return-1}function Ny(t,e,n){n?t.removeEventListener(Ay,e):t.addEventListener(Ay,e)}function jy(t,e,n,i){var r=Py+e;if(null!=i){var o=t.style[r];if(o.length){var s=o.split(",");s[i]=n,n=s.join(",")}}t.style[r]=n}function Vy(t,e){return t.style[Py+e]}var zy="linear",By=function(){function t(t,e,n,i,r,o,s,a){this.element=t,this.keyframes=e,this.animationName=n,this._duration=i,this._delay=r,this._finalStyles=s,this._specialStyles=a,this._onDoneFns=[],this._onStartFns=[],this._onDestroyFns=[],this._started=!1,this.currentSnapshot={},this._state=0,this.easing=o||zy,this.totalTime=i+r,this._buildStyler()}return t.prototype.onStart=function(t){this._onStartFns.push(t)},t.prototype.onDone=function(t){this._onDoneFns.push(t)},t.prototype.onDestroy=function(t){this._onDestroyFns.push(t)},t.prototype.destroy=function(){this.init(),this._state>=4||(this._state=4,this._styler.destroy(),this._flushStartFns(),this._flushDoneFns(),this._specialStyles&&this._specialStyles.destroy(),this._onDestroyFns.forEach(function(t){return t()}),this._onDestroyFns=[])},t.prototype._flushDoneFns=function(){this._onDoneFns.forEach(function(t){return t()}),this._onDoneFns=[]},t.prototype._flushStartFns=function(){this._onStartFns.forEach(function(t){return t()}),this._onStartFns=[]},t.prototype.finish=function(){this.init(),this._state>=3||(this._state=3,this._styler.finish(),this._flushStartFns(),this._specialStyles&&this._specialStyles.finish(),this._flushDoneFns())},t.prototype.setPosition=function(t){this._styler.setPosition(t)},t.prototype.getPosition=function(){return this._styler.getPosition()},t.prototype.hasStarted=function(){return this._state>=2},t.prototype.init=function(){this._state>=1||(this._state=1,this._styler.apply(),this._delay&&this._styler.pause())},t.prototype.play=function(){this.init(),this.hasStarted()||(this._flushStartFns(),this._state=2,this._specialStyles&&this._specialStyles.start()),this._styler.resume()},t.prototype.pause=function(){this.init(),this._styler.pause()},t.prototype.restart=function(){this.reset(),this.play()},t.prototype.reset=function(){this._styler.destroy(),this._buildStyler(),this._styler.apply()},t.prototype._buildStyler=function(){var t=this;this._styler=new Ly(this.element,this.animationName,this._duration,this._delay,this.easing,"forwards",function(){return t.finish()})},t.prototype.triggerCallback=function(t){var e="start"==t?this._onStartFns:this._onDoneFns;e.forEach(function(t){return t()}),e.length=0},t.prototype.beforeDestroy=function(){var t=this;this.init();var e={};if(this.hasStarted()){var n=this._state>=3;Object.keys(this._finalStyles).forEach(function(i){"offset"!=i&&(e[i]=n?t._finalStyles[i]:Ig(t.element,i))})}this.currentSnapshot=e},t}(),Gy=function(t){function e(e,n){var i=t.call(this)||this;return i.element=e,i._startingStyles={},i.__initialized=!1,i._styles=rg(n),i}return r(e,t),e.prototype.init=function(){var e=this;!this.__initialized&&this._startingStyles&&(this.__initialized=!0,Object.keys(this._styles).forEach(function(t){e._startingStyles[t]=e.element.style[t]}),t.prototype.init.call(this))},e.prototype.play=function(){var e=this;this._startingStyles&&(this.init(),Object.keys(this._styles).forEach(function(t){return e.element.style.setProperty(t,e._styles[t])}),t.prototype.play.call(this))},e.prototype.destroy=function(){var e=this;this._startingStyles&&(Object.keys(this._startingStyles).forEach(function(t){var n=e._startingStyles[t];n?e.element.style.setProperty(t,n):e.element.style.removeProperty(t)}),this._startingStyles=null,t.prototype.destroy.call(this))},e}(Bd),Uy=function(){function t(){this._count=0,this._head=document.querySelector("head"),this._warningIssued=!1}return t.prototype.validateStyleProperty=function(t){return tg(t)},t.prototype.matchesElement=function(t,e){return eg(t,e)},t.prototype.containsElement=function(t,e){return ng(t,e)},t.prototype.query=function(t,e,n){return ig(t,e,n)},t.prototype.computeStyle=function(t,e,n){return window.getComputedStyle(t)[e]},t.prototype.buildKeyframeElement=function(t,e,n){n=n.map(function(t){return rg(t)});var i="@keyframes "+e+" {\n",r="";n.forEach(function(t){r=" ";var e=parseFloat(t.offset);i+=""+r+100*e+"% {\n",r+=" ",Object.keys(t).forEach(function(e){var n=t[e];switch(e){case"offset":return;case"easing":return void(n&&(i+=r+"animation-timing-function: "+n+";\n"));default:return void(i+=""+r+e+": "+n+";\n")}}),i+=r+"}\n"}),i+="}\n";var o=document.createElement("style");return o.innerHTML=i,o},t.prototype.animate=function(t,e,n,i,r,o,s){void 0===o&&(o=[]),s&&this._notifyFaultyScrubber();var a=o.filter(function(t){return t instanceof By}),l={};Eg(n,i)&&a.forEach(function(t){var e=t.currentSnapshot;Object.keys(e).forEach(function(t){return l[t]=e[t]})});var u=function(t){var e={};return t&&(Array.isArray(t)?t:[t]).forEach(function(t){Object.keys(t).forEach(function(n){"offset"!=n&&"easing"!=n&&(e[n]=t[n])})}),e}(e=Sg(t,e,l));if(0==n)return new Gy(t,u);var c="gen_css_kf_"+this._count++,h=this.buildKeyframeElement(t,c,e);document.querySelector("head").appendChild(h);var p=Iy(t,e),d=new By(t,e,c,n,i,r,u,p);return d.onDestroy(function(){var t;(t=h).parentNode.removeChild(t)}),d},t.prototype._notifyFaultyScrubber=function(){this._warningIssued||(console.warn("@angular/animations: please load the web-animations.js polyfill to allow programmatic access...\n"," visit http://bit.ly/IWukam to learn more about using the web-animation-js polyfill."),this._warningIssued=!0)},t}(),Hy=function(){function t(t,e,n,i){this.element=t,this.keyframes=e,this.options=n,this._specialStyles=i,this._onDoneFns=[],this._onStartFns=[],this._onDestroyFns=[],this._initialized=!1,this._finished=!1,this._started=!1,this._destroyed=!1,this.time=0,this.parentPlayer=null,this.currentSnapshot={},this._duration=n.duration,this._delay=n.delay||0,this.time=this._duration+this._delay}return t.prototype._onFinish=function(){this._finished||(this._finished=!0,this._onDoneFns.forEach(function(t){return t()}),this._onDoneFns=[])},t.prototype.init=function(){this._buildPlayer(),this._preparePlayerBeforeStart()},t.prototype._buildPlayer=function(){var t=this;if(!this._initialized){this._initialized=!0;var e=this.keyframes;this.domPlayer=this._triggerWebAnimation(this.element,e,this.options),this._finalKeyframe=e.length?e[e.length-1]:{},this.domPlayer.addEventListener("finish",function(){return t._onFinish()})}},t.prototype._preparePlayerBeforeStart=function(){this._delay?this._resetDomPlayerState():this.domPlayer.pause()},t.prototype._triggerWebAnimation=function(t,e,n){return t.animate(e,n)},t.prototype.onStart=function(t){this._onStartFns.push(t)},t.prototype.onDone=function(t){this._onDoneFns.push(t)},t.prototype.onDestroy=function(t){this._onDestroyFns.push(t)},t.prototype.play=function(){this._buildPlayer(),this.hasStarted()||(this._onStartFns.forEach(function(t){return t()}),this._onStartFns=[],this._started=!0,this._specialStyles&&this._specialStyles.start()),this.domPlayer.play()},t.prototype.pause=function(){this.init(),this.domPlayer.pause()},t.prototype.finish=function(){this.init(),this._specialStyles&&this._specialStyles.finish(),this._onFinish(),this.domPlayer.finish()},t.prototype.reset=function(){this._resetDomPlayerState(),this._destroyed=!1,this._finished=!1,this._started=!1},t.prototype._resetDomPlayerState=function(){this.domPlayer&&this.domPlayer.cancel()},t.prototype.restart=function(){this.reset(),this.play()},t.prototype.hasStarted=function(){return this._started},t.prototype.destroy=function(){this._destroyed||(this._destroyed=!0,this._resetDomPlayerState(),this._onFinish(),this._specialStyles&&this._specialStyles.destroy(),this._onDestroyFns.forEach(function(t){return t()}),this._onDestroyFns=[])},t.prototype.setPosition=function(t){this.domPlayer.currentTime=t*this.time},t.prototype.getPosition=function(){return this.domPlayer.currentTime/this.time},Object.defineProperty(t.prototype,"totalTime",{get:function(){return this._delay+this._duration},enumerable:!0,configurable:!0}),t.prototype.beforeDestroy=function(){var t=this,e={};this.hasStarted()&&Object.keys(this._finalKeyframe).forEach(function(n){"offset"!=n&&(e[n]=t._finished?t._finalKeyframe[n]:Ig(t.element,n))}),this.currentSnapshot=e},t.prototype.triggerCallback=function(t){var e="start"==t?this._onStartFns:this._onDoneFns;e.forEach(function(t){return t()}),e.length=0},t}(),qy=function(){function t(){this._isNativeImpl=/\{\s*\[native\s+code\]\s*\}/.test(Wy().toString()),this._cssKeyframesDriver=new Uy}return t.prototype.validateStyleProperty=function(t){return tg(t)},t.prototype.matchesElement=function(t,e){return eg(t,e)},t.prototype.containsElement=function(t,e){return ng(t,e)},t.prototype.query=function(t,e,n){return ig(t,e,n)},t.prototype.computeStyle=function(t,e,n){return window.getComputedStyle(t)[e]},t.prototype.overrideWebAnimationsSupport=function(t){this._isNativeImpl=t},t.prototype.animate=function(t,e,n,i,r,o,s){if(void 0===o&&(o=[]),!s&&!this._isNativeImpl)return this._cssKeyframesDriver.animate(t,e,n,i,r,o);var a={duration:n,delay:i,fill:0==i?"both":"forwards"};r&&(a.easing=r);var l={},u=o.filter(function(t){return t instanceof Hy});Eg(n,i)&&u.forEach(function(t){var e=t.currentSnapshot;Object.keys(e).forEach(function(t){return l[t]=e[t]})});var c=Iy(t,e=Sg(t,e=e.map(function(t){return pg(t,!1)}),l));return new Hy(t,e,a,c)},t}();function Wy(){return"undefined"!=typeof window&&void 0!==window.document&&Element.prototype.animate||{}}var Yy=function(t){function e(e,n){var i=t.call(this)||this;return i._nextAnimationId=0,i._renderer=e.createRenderer(n.body,{id:"0",encapsulation:ne.None,styles:[],data:{animation:[]}}),i}return r(e,t),e.prototype.build=function(t){var e=this._nextAnimationId.toString();this._nextAnimationId++;var n=Array.isArray(t)?Nd(t):t;return Zy(this._renderer,null,e,"register",[n]),new Ky(e,this._renderer)},e}(Dd),Ky=function(t){function e(e,n){var i=t.call(this)||this;return i._id=e,i._renderer=n,i}return r(e,t),e.prototype.create=function(t,e){return new Xy(this._id,t,e||{},this._renderer)},e}(Fd),Xy=function(){function t(t,e,n,i){this.id=t,this.element=e,this._renderer=i,this.parentPlayer=null,this._started=!1,this.totalTime=0,this._command("create",n)}return t.prototype._listen=function(t,e){return this._renderer.listen(this.element,"@@"+this.id+":"+t,e)},t.prototype._command=function(t){for(var e=[],n=1;n=0&&t enter",animation:[{type:6,styles:{opacity:0,transform:"translateY(-100%)"},offset:null},{type:4,styles:null,timings:"300ms cubic-bezier(0.55, 0, 0.55, 0.2)"}],options:null}],options:{}}]}});function a_(t){return Go(0,[(t()(),Sr(0,0,null,null,8,null,null,null,null,null,null,null)),(t()(),Sr(1,0,null,null,3,"div",[["class","mat-form-field-outline"]],null,null,null,null,null)),(t()(),Sr(2,0,null,null,0,"div",[["class","mat-form-field-outline-start"]],null,null,null,null,null)),(t()(),Sr(3,0,null,null,0,"div",[["class","mat-form-field-outline-gap"]],null,null,null,null,null)),(t()(),Sr(4,0,null,null,0,"div",[["class","mat-form-field-outline-end"]],null,null,null,null,null)),(t()(),Sr(5,0,null,null,3,"div",[["class","mat-form-field-outline mat-form-field-outline-thick"]],null,null,null,null,null)),(t()(),Sr(6,0,null,null,0,"div",[["class","mat-form-field-outline-start"]],null,null,null,null,null)),(t()(),Sr(7,0,null,null,0,"div",[["class","mat-form-field-outline-gap"]],null,null,null,null,null)),(t()(),Sr(8,0,null,null,0,"div",[["class","mat-form-field-outline-end"]],null,null,null,null,null))],null,null)}function l_(t){return Go(0,[(t()(),Sr(0,0,null,null,1,"div",[["class","mat-form-field-prefix"]],null,null,null,null,null)),Fo(null,0)],null,null)}function u_(t){return Go(0,[(t()(),Sr(0,0,null,null,2,null,null,null,null,null,null,null)),Fo(null,2),(t()(),Vo(2,null,["",""]))],null,function(t,e){t(e,2,0,e.component._control.placeholder)})}function c_(t){return Go(0,[Fo(null,3),(t()(),Er(0,null,null,0))],null,null)}function h_(t){return Go(0,[(t()(),Sr(0,0,null,null,1,"span",[["aria-hidden","true"],["class","mat-placeholder-required mat-form-field-required-marker"]],null,null,null,null,null)),(t()(),Vo(-1,null,[" *"]))],null,null)}function p_(t){return Go(0,[(t()(),Sr(0,0,[[4,0],["label",1]],null,8,"label",[["class","mat-form-field-label"]],[[8,"id",0],[1,"for",0],[1,"aria-owns",0],[2,"mat-empty",null],[2,"mat-form-field-empty",null],[2,"mat-accent",null],[2,"mat-warn",null]],[[null,"cdkObserveContent"]],function(t,e,n){var i=!0;return"cdkObserveContent"===e&&(i=!1!==t.component.updateOutlineGap()&&i),i},null,null)),fo(1,16384,null,0,gl,[],{ngSwitch:[0,"ngSwitch"]},null),fo(2,1196032,null,0,Lm,[Am,Ee,Fn],{disabled:[0,"disabled"]},{event:"cdkObserveContent"}),(t()(),Er(16777216,null,null,1,null,u_)),fo(4,278528,null,0,yl,[si,Pe,gl],{ngSwitchCase:[0,"ngSwitchCase"]},null),(t()(),Er(16777216,null,null,1,null,c_)),fo(6,278528,null,0,yl,[si,Pe,gl],{ngSwitchCase:[0,"ngSwitchCase"]},null),(t()(),Er(16777216,null,null,1,null,h_)),fo(8,16384,null,0,pl,[si,Pe],{ngIf:[0,"ngIf"]},null)],function(t,e){var n=e.component;t(e,1,0,n._hasLabel()),t(e,2,0,"outline"!=n.appearance),t(e,4,0,!1),t(e,6,0,!0),t(e,8,0,!n.hideRequiredMarker&&n._control.required&&!n._control.disabled)},function(t,e){var n=e.component;t(e,0,0,n._labelId,n._control.id,n._control.id,n._control.empty&&!n._shouldAlwaysFloat,n._control.empty&&!n._shouldAlwaysFloat,"accent"==n.color,"warn"==n.color)})}function d_(t){return Go(0,[(t()(),Sr(0,0,null,null,1,"div",[["class","mat-form-field-suffix"]],null,null,null,null,null)),Fo(null,4)],null,null)}function f_(t){return Go(0,[(t()(),Sr(0,0,[[1,0],["underline",1]],null,1,"div",[["class","mat-form-field-underline"]],null,null,null,null,null)),(t()(),Sr(1,0,null,null,0,"span",[["class","mat-form-field-ripple"]],[[2,"mat-accent",null],[2,"mat-warn",null]],null,null,null,null))],null,function(t,e){var n=e.component;t(e,1,0,"accent"==n.color,"warn"==n.color)})}function m_(t){return Go(0,[(t()(),Sr(0,0,null,null,1,"div",[],[[24,"@transitionMessages",0]],null,null,null,null)),Fo(null,5)],null,function(t,e){t(e,0,0,e.component._subscriptAnimationState)})}function g_(t){return Go(0,[(t()(),Sr(0,0,null,null,1,"div",[["class","mat-hint"]],[[8,"id",0]],null,null,null,null)),(t()(),Vo(1,null,["",""]))],null,function(t,e){var n=e.component;t(e,0,0,n._hintLabelId),t(e,1,0,n.hintLabel)})}function y_(t){return Go(0,[(t()(),Sr(0,0,null,null,5,"div",[["class","mat-form-field-hint-wrapper"]],[[24,"@transitionMessages",0]],null,null,null,null)),(t()(),Er(16777216,null,null,1,null,g_)),fo(2,16384,null,0,pl,[si,Pe],{ngIf:[0,"ngIf"]},null),Fo(null,6),(t()(),Sr(4,0,null,null,0,"div",[["class","mat-form-field-hint-spacer"]],null,null,null,null,null)),Fo(null,7)],function(t,e){t(e,2,0,e.component.hintLabel)},function(t,e){t(e,0,0,e.component._subscriptAnimationState)})}function __(t){return Go(2,[ko(671088640,1,{underlineRef:0}),ko(402653184,2,{_connectionContainerRef:0}),ko(402653184,3,{_inputContainerRef:0}),ko(671088640,4,{_label:0}),(t()(),Sr(4,0,null,null,20,"div",[["class","mat-form-field-wrapper"]],null,null,null,null,null)),(t()(),Sr(5,0,[[2,0],["connectionContainer",1]],null,11,"div",[["class","mat-form-field-flex"]],null,[[null,"click"]],function(t,e,n){var i=!0,r=t.component;return"click"===e&&(i=!1!==(r._control.onContainerClick&&r._control.onContainerClick(n))&&i),i},null,null)),(t()(),Er(16777216,null,null,1,null,a_)),fo(7,16384,null,0,pl,[si,Pe],{ngIf:[0,"ngIf"]},null),(t()(),Er(16777216,null,null,1,null,l_)),fo(9,16384,null,0,pl,[si,Pe],{ngIf:[0,"ngIf"]},null),(t()(),Sr(10,0,[[3,0],["inputContainer",1]],null,4,"div",[["class","mat-form-field-infix"]],null,null,null,null,null)),Fo(null,1),(t()(),Sr(12,0,null,null,2,"span",[["class","mat-form-field-label-wrapper"]],null,null,null,null,null)),(t()(),Er(16777216,null,null,1,null,p_)),fo(14,16384,null,0,pl,[si,Pe],{ngIf:[0,"ngIf"]},null),(t()(),Er(16777216,null,null,1,null,d_)),fo(16,16384,null,0,pl,[si,Pe],{ngIf:[0,"ngIf"]},null),(t()(),Er(16777216,null,null,1,null,f_)),fo(18,16384,null,0,pl,[si,Pe],{ngIf:[0,"ngIf"]},null),(t()(),Sr(19,0,null,null,5,"div",[["class","mat-form-field-subscript-wrapper"]],null,null,null,null,null)),fo(20,16384,null,0,gl,[],{ngSwitch:[0,"ngSwitch"]},null),(t()(),Er(16777216,null,null,1,null,m_)),fo(22,278528,null,0,yl,[si,Pe,gl],{ngSwitchCase:[0,"ngSwitchCase"]},null),(t()(),Er(16777216,null,null,1,null,y_)),fo(24,278528,null,0,yl,[si,Pe,gl],{ngSwitchCase:[0,"ngSwitchCase"]},null)],function(t,e){var n=e.component;t(e,7,0,"outline"==n.appearance),t(e,9,0,n._prefixChildren.length),t(e,14,0,n._hasFloatingLabel()),t(e,16,0,n._suffixChildren.length),t(e,18,0,"outline"!=n.appearance),t(e,20,0,n._getDisplayedMessages()),t(e,22,0,"error"),t(e,24,0,"hint")},null)}var v_=function(){function t(t){this.durationSelector=t}return t.prototype.call=function(t,e){return e.subscribe(new b_(t,this.durationSelector))},t}(),b_=function(t){function e(e,n){var i=t.call(this,e)||this;return i.durationSelector=n,i.hasValue=!1,i}return r(e,t),e.prototype._next=function(t){if(this.value=t,this.hasValue=!0,!this.throttled){var e=void 0;try{e=(0,this.durationSelector)(t)}catch(i){return this.destination.error(i)}var n=q(this,e);!n||n.closed?this.clearThrottle():this.add(this.throttled=n)}},e.prototype.clearThrottle=function(){var t=this.value,e=this.hasValue,n=this.throttled;n&&(this.remove(n),this.throttled=null,n.unsubscribe()),e&&(this.value=null,this.hasValue=!1,this.destination.next(t))},e.prototype.notifyNext=function(t,e,n,i){this.clearThrottle()},e.prototype.notifyComplete=function(){this.clearThrottle()},e}(W);function w_(t){return!h(t)&&t-parseFloat(t)+1>=0}function C_(t){var e=t.index,n=t.period,i=t.subscriber;if(i.next(e),!i.closed){if(-1===n)return i.complete();t.index=e+1,this.schedule(t,n)}}function x_(t,e){return void 0===e&&(e=df),n=function(){return function(t,e,n){void 0===t&&(t=0);var i=-1;return w_(e)?i=Number(e)<1?1:Number(e):N(e)&&(n=e),N(n)||(n=df),new R(function(e){var r=w_(t)?t:+t-n.now();return n.schedule(C_,r,{index:0,period:i,subscriber:e})})}(t,e)},function(t){return t.lift(new v_(n))};var n}var E_=ef({passive:!0}),S_=function(){function t(t,e){this._platform=t,this._ngZone=e,this._monitoredElements=new Map}return t.prototype.monitor=function(t){var e=this;if(!this._platform.isBrowser)return ra;var n=Kd(t),i=this._monitoredElements.get(n);if(i)return i.subject.asObservable();var r=new F,o="cdk-text-field-autofilled",s=function(t){"cdk-text-field-autofill-start"!==t.animationName||n.classList.contains(o)?"cdk-text-field-autofill-end"===t.animationName&&n.classList.contains(o)&&(n.classList.remove(o),e._ngZone.run(function(){return r.next({target:t.target,isAutofilled:!1})})):(n.classList.add(o),e._ngZone.run(function(){return r.next({target:t.target,isAutofilled:!0})}))};return this._ngZone.runOutsideAngular(function(){n.addEventListener("animationstart",s,E_),n.classList.add("cdk-text-field-autofill-monitored")}),this._monitoredElements.set(n,{subject:r,unlisten:function(){n.removeEventListener("animationstart",s,E_)}}),r.asObservable()},t.prototype.stopMonitoring=function(t){var e=Kd(t),n=this._monitoredElements.get(e);n&&(n.unlisten(),n.subject.complete(),e.classList.remove("cdk-text-field-autofill-monitored"),e.classList.remove("cdk-text-field-autofilled"),this._monitoredElements.delete(e))},t.prototype.ngOnDestroy=function(){var t=this;this._monitoredElements.forEach(function(e,n){return t.stopMonitoring(n)})},t.ngInjectableDef=mt({factory:function(){return new t(ee(Qd),ee(Fn))},token:t,providedIn:"root"}),t}(),T_=function(){return function(){}}(),I_=["button","checkbox","file","hidden","image","radio","range","reset","submit"],O_=0,R_=function(t){function e(e,n,i,r,o,s,a,l,u){var c=t.call(this,s,r,o,i)||this;c._elementRef=e,c._platform=n,c.ngControl=i,c._autofillMonitor=l,c._uid="mat-input-"+O_++,c._isServer=!1,c._isNativeSelect=!1,c.focused=!1,c.stateChanges=new F,c.controlType="mat-input",c.autofilled=!1,c._disabled=!1,c._required=!1,c._type="text",c._readonly=!1,c._neverEmptyInputTypes=["date","datetime","datetime-local","month","time","week"].filter(function(t){return tf().has(t)});var h=c._elementRef.nativeElement;return c._inputValueAccessor=a||h,c._previousNativeValue=c.value,c.id=c.id,n.IOS&&u.runOutsideAngular(function(){e.nativeElement.addEventListener("keyup",function(t){var e=t.target;e.value||e.selectionStart||e.selectionEnd||(e.setSelectionRange(1,1),e.setSelectionRange(0,0))})}),c._isServer=!c._platform.isBrowser,c._isNativeSelect="select"===h.nodeName.toLowerCase(),c._isNativeSelect&&(c.controlType=h.multiple?"mat-native-select-multiple":"mat-native-select"),c}return r(e,t),Object.defineProperty(e.prototype,"disabled",{get:function(){return this.ngControl&&null!==this.ngControl.disabled?this.ngControl.disabled:this._disabled},set:function(t){this._disabled=Hd(t),this.focused&&(this.focused=!1,this.stateChanges.next())},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"id",{get:function(){return this._id},set:function(t){this._id=t||this._uid},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"required",{get:function(){return this._required},set:function(t){this._required=Hd(t)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"type",{get:function(){return this._type},set:function(t){this._type=t||"text",this._validateType(),!this._isTextarea()&&tf().has(this._type)&&(this._elementRef.nativeElement.type=this._type)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"value",{get:function(){return this._inputValueAccessor.value},set:function(t){t!==this.value&&(this._inputValueAccessor.value=t,this.stateChanges.next())},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"readonly",{get:function(){return this._readonly},set:function(t){this._readonly=Hd(t)},enumerable:!0,configurable:!0}),e.prototype.ngOnInit=function(){var t=this;this._platform.isBrowser&&this._autofillMonitor.monitor(this._elementRef.nativeElement).subscribe(function(e){t.autofilled=e.isAutofilled,t.stateChanges.next()})},e.prototype.ngOnChanges=function(){this.stateChanges.next()},e.prototype.ngOnDestroy=function(){this.stateChanges.complete(),this._platform.isBrowser&&this._autofillMonitor.stopMonitoring(this._elementRef.nativeElement)},e.prototype.ngDoCheck=function(){this.ngControl&&this.updateErrorState(),this._dirtyCheckNativeValue()},e.prototype.focus=function(){this._elementRef.nativeElement.focus()},e.prototype._focusChanged=function(t){t===this.focused||this.readonly&&t||(this.focused=t,this.stateChanges.next())},e.prototype._onInput=function(){},e.prototype._dirtyCheckNativeValue=function(){var t=this._elementRef.nativeElement.value;this._previousNativeValue!==t&&(this._previousNativeValue=t,this.stateChanges.next())},e.prototype._validateType=function(){if(I_.indexOf(this._type)>-1)throw Error('Input type "'+this._type+"\" isn't supported by matInput.")},e.prototype._isNeverEmpty=function(){return this._neverEmptyInputTypes.indexOf(this._type)>-1},e.prototype._isBadInput=function(){var t=this._elementRef.nativeElement.validity;return t&&t.badInput},e.prototype._isTextarea=function(){return"textarea"===this._elementRef.nativeElement.nodeName.toLowerCase()},Object.defineProperty(e.prototype,"empty",{get:function(){return!(this._isNeverEmpty()||this._elementRef.nativeElement.value||this._isBadInput()||this.autofilled)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"shouldLabelFloat",{get:function(){if(this._isNativeSelect){var t=this._elementRef.nativeElement,e=t.options[0];return this.focused||t.multiple||!this.empty||!!(t.selectedIndex>-1&&e&&e.label)}return this.focused||!this.empty},enumerable:!0,configurable:!0}),e.prototype.setDescribedByIds=function(t){this._ariaDescribedby=t.join(" ")},e.prototype.onContainerClick=function(){this.focused||this.focus()},e}(Hf(function(){return function(t,e,n,i){this._defaultErrorStateMatcher=t,this._parentForm=e,this._parentFormGroup=n,this.ngControl=i}}())),k_=function(){return function(){}}(),P_="accent",A_=["mat-button","mat-flat-button","mat-icon-button","mat-raised-button","mat-stroked-button","mat-mini-fab","mat-fab"],L_=function(t){function e(e,n,i,r){var o=t.call(this,e)||this;o._focusMonitor=i,o._animationMode=r,o.isRoundButton=o._hasHostAttributes("mat-fab","mat-mini-fab"),o.isIconButton=o._hasHostAttributes("mat-icon-button");for(var s=0,a=A_;s*,.mat-fab .mat-button-wrapper>*,.mat-flat-button .mat-button-wrapper>*,.mat-icon-button .mat-button-wrapper>*,.mat-mini-fab .mat-button-wrapper>*,.mat-raised-button .mat-button-wrapper>*,.mat-stroked-button .mat-button-wrapper>*{vertical-align:middle}.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-prefix .mat-icon-button,.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-suffix .mat-icon-button{display:block;font-size:inherit;width:2.5em;height:2.5em}@media (-ms-high-contrast:active){.mat-button,.mat-fab,.mat-flat-button,.mat-icon-button,.mat-mini-fab,.mat-raised-button{outline:solid 1px}}"],data:{}});function M_(t){return Go(2,[ko(402653184,1,{ripple:0}),(t()(),Sr(1,0,null,null,1,"span",[["class","mat-button-wrapper"]],null,null,null,null,null)),Fo(null,0),(t()(),Sr(3,0,null,null,1,"div",[["class","mat-button-ripple mat-ripple"],["matRipple",""]],[[2,"mat-button-ripple-round",null],[2,"mat-ripple-unbounded",null]],null,null,null,null)),fo(4,212992,[[1,4]],0,am,[Ee,Fn,Qd,[2,sm],[2,r_]],{centered:[0,"centered"],disabled:[1,"disabled"],trigger:[2,"trigger"]},null),(t()(),Sr(5,0,null,null,0,"div",[["class","mat-button-focus-overlay"]],null,null,null,null,null))],function(t,e){var n=e.component;t(e,4,0,n.isIconButton,n._isRippleDisabled(),n._getHostElement())},function(t,e){var n=e.component;t(e,3,0,n.isRoundButton||n.isIconButton,to(e,4).unbounded)})}function N_(){throw Error("Host already has a portal attached")}var j_=function(){function t(){}return t.prototype.attach=function(t){return null==t&&function(){throw Error("Attempting to attach a portal to a null PortalOutlet")}(),t.hasAttached()&&N_(),this._attachedHost=t,t.attach(this)},t.prototype.detach=function(){var t=this._attachedHost;null==t?function(){throw Error("Attempting to detach a portal that is not attached to a host")}():(this._attachedHost=null,t.detach())},Object.defineProperty(t.prototype,"isAttached",{get:function(){return null!=this._attachedHost},enumerable:!0,configurable:!0}),t.prototype.setAttachedHost=function(t){this._attachedHost=t},t}(),V_=function(t){function e(e,n,i,r){var o=t.call(this)||this;return o.component=e,o.viewContainerRef=n,o.injector=i,o.componentFactoryResolver=r,o}return r(e,t),e}(j_),z_=function(t){function e(e,n,i){var r=t.call(this)||this;return r.templateRef=e,r.viewContainerRef=n,r.context=i,r}return r(e,t),Object.defineProperty(e.prototype,"origin",{get:function(){return this.templateRef.elementRef},enumerable:!0,configurable:!0}),e.prototype.attach=function(e,n){return void 0===n&&(n=this.context),this.context=n,t.prototype.attach.call(this,e)},e.prototype.detach=function(){return this.context=void 0,t.prototype.detach.call(this)},e}(j_),B_=function(){function t(){this._isDisposed=!1}return t.prototype.hasAttached=function(){return!!this._attachedPortal},t.prototype.attach=function(t){return t||function(){throw Error("Must provide a portal to attach")}(),this.hasAttached()&&N_(),this._isDisposed&&function(){throw Error("This PortalOutlet has already been disposed")}(),t instanceof V_?(this._attachedPortal=t,this.attachComponentPortal(t)):t instanceof z_?(this._attachedPortal=t,this.attachTemplatePortal(t)):void function(){throw Error("Attempting to attach an unknown Portal type. BasePortalOutlet accepts either a ComponentPortal or a TemplatePortal.")}()},t.prototype.detach=function(){this._attachedPortal&&(this._attachedPortal.setAttachedHost(null),this._attachedPortal=null),this._invokeDisposeFn()},t.prototype.dispose=function(){this.hasAttached()&&this.detach(),this._invokeDisposeFn(),this._isDisposed=!0},t.prototype.setDisposeFn=function(t){this._disposeFn=t},t.prototype._invokeDisposeFn=function(){this._disposeFn&&(this._disposeFn(),this._disposeFn=null)},t}(),G_=function(t){function e(e,n,i,r){var o=t.call(this)||this;return o.outletElement=e,o._componentFactoryResolver=n,o._appRef=i,o._defaultInjector=r,o}return r(e,t),e.prototype.attachComponentPortal=function(t){var e,n=this,i=(t.componentFactoryResolver||this._componentFactoryResolver).resolveComponentFactory(t.component);return t.viewContainerRef?(e=t.viewContainerRef.createComponent(i,t.viewContainerRef.length,t.injector||t.viewContainerRef.injector),this.setDisposeFn(function(){return e.destroy()})):(e=i.create(t.injector||this._defaultInjector),this._appRef.attachView(e.hostView),this.setDisposeFn(function(){n._appRef.detachView(e.hostView),e.destroy()})),this.outletElement.appendChild(this._getComponentRootNode(e)),e},e.prototype.attachTemplatePortal=function(t){var e=this,n=t.viewContainerRef,i=n.createEmbeddedView(t.templateRef,t.context);return i.detectChanges(),i.rootNodes.forEach(function(t){return e.outletElement.appendChild(t)}),this.setDisposeFn(function(){var t=n.indexOf(i);-1!==t&&n.remove(t)}),i},e.prototype.dispose=function(){t.prototype.dispose.call(this),null!=this.outletElement.parentNode&&this.outletElement.parentNode.removeChild(this.outletElement)},e.prototype._getComponentRootNode=function(t){return t.hostView.rootNodes[0]},e}(B_),U_=function(t){function e(e,n){var i=t.call(this)||this;return i._componentFactoryResolver=e,i._viewContainerRef=n,i._isInitialized=!1,i.attached=new ke,i}return r(e,t),Object.defineProperty(e.prototype,"portal",{get:function(){return this._attachedPortal},set:function(e){(!this.hasAttached()||e||this._isInitialized)&&(this.hasAttached()&&t.prototype.detach.call(this),e&&t.prototype.attach.call(this,e),this._attachedPortal=e)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"attachedRef",{get:function(){return this._attachedRef},enumerable:!0,configurable:!0}),e.prototype.ngOnInit=function(){this._isInitialized=!0},e.prototype.ngOnDestroy=function(){t.prototype.dispose.call(this),this._attachedPortal=null,this._attachedRef=null},e.prototype.attachComponentPortal=function(e){e.setAttachedHost(this);var n=null!=e.viewContainerRef?e.viewContainerRef:this._viewContainerRef,i=(e.componentFactoryResolver||this._componentFactoryResolver).resolveComponentFactory(e.component),r=n.createComponent(i,n.length,e.injector||n.injector);return t.prototype.setDisposeFn.call(this,function(){return r.destroy()}),this._attachedPortal=e,this._attachedRef=r,this.attached.emit(r),r},e.prototype.attachTemplatePortal=function(e){var n=this;e.setAttachedHost(this);var i=this._viewContainerRef.createEmbeddedView(e.templateRef,e.context);return t.prototype.setDisposeFn.call(this,function(){return n._viewContainerRef.clear()}),this._attachedPortal=e,this._attachedRef=i,this.attached.emit(i),i},e}(B_),H_=function(){return function(){}}(),q_=function(){function t(t,e){this._parentInjector=t,this._customTokens=e}return t.prototype.get=function(t,e){var n=this._customTokens.get(t);return void 0!==n?n:this._parentInjector.get(t,e)},t}();function W_(t){return new R(function(e){var n;try{n=t()}catch(i){return void e.error(i)}return(n?Q(n):oa()).subscribe(e)})}var Y_=1,K_={},X_=function(t){function e(e,n){var i=t.call(this,e,n)||this;return i.scheduler=e,i.work=n,i}return r(e,t),e.prototype.requestAsyncId=function(e,n,i){return void 0===i&&(i=0),null!==i&&i>0?t.prototype.requestAsyncId.call(this,e,n,i):(e.actions.push(this),e.scheduled||(e.scheduled=(r=e.flush.bind(e,null),o=Y_++,K_[o]=r,Promise.resolve().then(function(){return function(t){var e=K_[t];e&&e()}(o)}),o)));var r,o},e.prototype.recycleAsyncId=function(e,n,i){if(void 0===i&&(i=0),null!==i&&i>0||null===i&&this.delay>0)return t.prototype.recycleAsyncId.call(this,e,n,i);0===e.actions.length&&(delete K_[n],e.scheduled=void 0)},e}(cf),Z_=new(function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return r(e,t),e.prototype.flush=function(t){this.active=!0,this.scheduled=void 0;var e,n=this.actions,i=-1,r=n.length;t=t||n.shift();do{if(e=t.execute(t.state,t.delay))break}while(++i1&&!this._multiple)throw Error("Cannot pass multiple values into SelectionModel with single-value mode.")},t}(),ov=function(){function t(t,e){this._ngZone=t,this._platform=e,this._scrolled=new F,this._globalSubscription=null,this._scrolledCount=0,this.scrollContainers=new Map}return t.prototype.register=function(t){var e=this;this.scrollContainers.has(t)||this.scrollContainers.set(t,t.elementScrolled().subscribe(function(){return e._scrolled.next(t)}))},t.prototype.deregister=function(t){var e=this.scrollContainers.get(t);e&&(e.unsubscribe(),this.scrollContainers.delete(t))},t.prototype.scrolled=function(t){var e=this;return void 0===t&&(t=20),this._platform.isBrowser?new R(function(n){e._globalSubscription||e._addGlobalListener();var i=t>0?e._scrolled.pipe(x_(t)).subscribe(n):e._scrolled.subscribe(n);return e._scrolledCount++,function(){i.unsubscribe(),e._scrolledCount--,e._scrolledCount||e._removeGlobalListener()}}):ta()},t.prototype.ngOnDestroy=function(){var t=this;this._removeGlobalListener(),this.scrollContainers.forEach(function(e,n){return t.deregister(n)}),this._scrolled.complete()},t.prototype.ancestorScrolled=function(t,e){var n=this.getAncestorScrollContainers(t);return this.scrolled(e).pipe(aa(function(t){return!t||n.indexOf(t)>-1}))},t.prototype.getAncestorScrollContainers=function(t){var e=this,n=[];return this.scrollContainers.forEach(function(i,r){e._scrollableContainsElement(r,t)&&n.push(r)}),n},t.prototype._scrollableContainsElement=function(t,e){var n=e.nativeElement,i=t.getElementRef().nativeElement;do{if(n==i)return!0}while(n=n.parentElement);return!1},t.prototype._addGlobalListener=function(){var t=this;this._globalSubscription=this._ngZone.runOutsideAngular(function(){return bm(window.document,"scroll").subscribe(function(){return t._scrolled.next()})})},t.prototype._removeGlobalListener=function(){this._globalSubscription&&(this._globalSubscription.unsubscribe(),this._globalSubscription=null)},t.ngInjectableDef=mt({factory:function(){return new t(ee(Fn),ee(Qd))},token:t,providedIn:"root"}),t}(),sv=function(){function t(t,e,n,i){var r=this;this.elementRef=t,this.scrollDispatcher=e,this.ngZone=n,this.dir=i,this._destroyed=new F,this._elementScrolled=new R(function(t){return r.ngZone.runOutsideAngular(function(){return bm(r.elementRef.nativeElement,"scroll").pipe(wm(r._destroyed)).subscribe(t)})})}return t.prototype.ngOnInit=function(){this.scrollDispatcher.register(this)},t.prototype.ngOnDestroy=function(){this.scrollDispatcher.deregister(this),this._destroyed.next(),this._destroyed.complete()},t.prototype.elementScrolled=function(){return this._elementScrolled},t.prototype.getElementRef=function(){return this.elementRef},t.prototype.scrollTo=function(t){var e=this.elementRef.nativeElement,n=this.dir&&"rtl"==this.dir.value;t.left=null==t.left?n?t.end:t.start:t.left,t.right=null==t.right?n?t.start:t.end:t.right,null!=t.bottom&&(t.top=e.scrollHeight-e.clientHeight-t.bottom),n&&of()!=rf.NORMAL?(null!=t.left&&(t.right=e.scrollWidth-e.clientWidth-t.left),of()==rf.INVERTED?t.left=t.right:of()==rf.NEGATED&&(t.left=t.right?-t.right:t.right)):null!=t.right&&(t.left=e.scrollWidth-e.clientWidth-t.right),this._applyScrollToOptions(t)},t.prototype._applyScrollToOptions=function(t){var e=this.elementRef.nativeElement;"object"==typeof document&&"scrollBehavior"in document.documentElement.style?e.scrollTo(t):(null!=t.top&&(e.scrollTop=t.top),null!=t.left&&(e.scrollLeft=t.left))},t.prototype.measureScrollOffset=function(t){var e=this.elementRef.nativeElement;if("top"==t)return e.scrollTop;if("bottom"==t)return e.scrollHeight-e.clientHeight-e.scrollTop;var n=this.dir&&"rtl"==this.dir.value;return"start"==t?t=n?"right":"left":"end"==t&&(t=n?"left":"right"),n&&of()==rf.INVERTED?"left"==t?e.scrollWidth-e.clientWidth-e.scrollLeft:e.scrollLeft:n&&of()==rf.NEGATED?"left"==t?e.scrollLeft+e.scrollWidth-e.clientWidth:-e.scrollLeft:"left"==t?e.scrollLeft:e.scrollWidth-e.clientWidth-e.scrollLeft},t}(),av=function(){return function(){}}(),lv=function(){function t(t,e){var n=this;this._platform=t,e.runOutsideAngular(function(){n._change=t.isBrowser?rt(bm(window,"resize"),bm(window,"orientationchange")):ta(),n._invalidateCache=n.change().subscribe(function(){return n._updateViewportSize()})})}return t.prototype.ngOnDestroy=function(){this._invalidateCache.unsubscribe()},t.prototype.getViewportSize=function(){this._viewportSize||this._updateViewportSize();var t={width:this._viewportSize.width,height:this._viewportSize.height};return this._platform.isBrowser||(this._viewportSize=null),t},t.prototype.getViewportRect=function(){var t=this.getViewportScrollPosition(),e=this.getViewportSize(),n=e.width,i=e.height;return{top:t.top,left:t.left,bottom:t.top+i,right:t.left+n,height:i,width:n}},t.prototype.getViewportScrollPosition=function(){if(!this._platform.isBrowser)return{top:0,left:0};var t=document.documentElement,e=t.getBoundingClientRect();return{top:-e.top||document.body.scrollTop||window.scrollY||t.scrollTop||0,left:-e.left||document.body.scrollLeft||window.scrollX||t.scrollLeft||0}},t.prototype.change=function(t){return void 0===t&&(t=20),t>0?this._change.pipe(x_(t)):this._change},t.prototype._updateViewportSize=function(){this._viewportSize=this._platform.isBrowser?{width:window.innerWidth,height:window.innerHeight}:{width:0,height:0}},t.ngInjectableDef=mt({factory:function(){return new t(ee(Qd),ee(Fn))},token:t,providedIn:"root"}),t}(),uv=function(){function t(t,e){this._viewportRuler=t,this._previousHTMLStyles={top:"",left:""},this._isEnabled=!1,this._document=e}return t.prototype.attach=function(){},t.prototype.enable=function(){if(this._canBeEnabled()){var t=this._document.documentElement;this._previousScrollPosition=this._viewportRuler.getViewportScrollPosition(),this._previousHTMLStyles.left=t.style.left||"",this._previousHTMLStyles.top=t.style.top||"",t.style.left=Yd(-this._previousScrollPosition.left),t.style.top=Yd(-this._previousScrollPosition.top),t.classList.add("cdk-global-scrollblock"),this._isEnabled=!0}},t.prototype.disable=function(){if(this._isEnabled){var t=this._document.documentElement,e=t.style,n=this._document.body.style,i=e.scrollBehavior||"",r=n.scrollBehavior||"";this._isEnabled=!1,e.left=this._previousHTMLStyles.left,e.top=this._previousHTMLStyles.top,t.classList.remove("cdk-global-scrollblock"),e.scrollBehavior=n.scrollBehavior="auto",window.scroll(this._previousScrollPosition.left,this._previousScrollPosition.top),e.scrollBehavior=i,n.scrollBehavior=r}},t.prototype._canBeEnabled=function(){if(this._document.documentElement.classList.contains("cdk-global-scrollblock")||this._isEnabled)return!1;var t=this._document.body,e=this._viewportRuler.getViewportSize();return t.scrollHeight>e.height||t.scrollWidth>e.width},t}();function cv(){return Error("Scroll strategy has already been attached.")}var hv=function(){function t(t,e,n,i){var r=this;this._scrollDispatcher=t,this._ngZone=e,this._viewportRuler=n,this._config=i,this._scrollSubscription=null,this._detach=function(){r.disable(),r._overlayRef.hasAttached()&&r._ngZone.run(function(){return r._overlayRef.detach()})}}return t.prototype.attach=function(t){if(this._overlayRef)throw cv();this._overlayRef=t},t.prototype.enable=function(){var t=this;if(!this._scrollSubscription){var e=this._scrollDispatcher.scrolled(0);this._config&&this._config.threshold&&this._config.threshold>1?(this._initialScrollPosition=this._viewportRuler.getViewportScrollPosition().top,this._scrollSubscription=e.subscribe(function(){var e=t._viewportRuler.getViewportScrollPosition().top;Math.abs(e-t._initialScrollPosition)>t._config.threshold?t._detach():t._overlayRef.updatePosition()})):this._scrollSubscription=e.subscribe(this._detach)}},t.prototype.disable=function(){this._scrollSubscription&&(this._scrollSubscription.unsubscribe(),this._scrollSubscription=null)},t}(),pv=function(){function t(){}return t.prototype.enable=function(){},t.prototype.disable=function(){},t.prototype.attach=function(){},t}();function dv(t,e){return e.some(function(e){return t.bottome.bottom||t.righte.right})}function fv(t,e){return e.some(function(e){return t.tope.bottom||t.lefte.right})}var mv=function(){function t(t,e,n,i){this._scrollDispatcher=t,this._viewportRuler=e,this._ngZone=n,this._config=i,this._scrollSubscription=null}return t.prototype.attach=function(t){if(this._overlayRef)throw cv();this._overlayRef=t},t.prototype.enable=function(){var t=this;this._scrollSubscription||(this._scrollSubscription=this._scrollDispatcher.scrolled(this._config?this._config.scrollThrottle:0).subscribe(function(){if(t._overlayRef.updatePosition(),t._config&&t._config.autoClose){var e=t._overlayRef.overlayElement.getBoundingClientRect(),n=t._viewportRuler.getViewportSize(),i=n.width,r=n.height;dv(e,[{width:i,height:r,bottom:r,right:i,top:0,left:0}])&&(t.disable(),t._ngZone.run(function(){return t._overlayRef.detach()}))}}))},t.prototype.disable=function(){this._scrollSubscription&&(this._scrollSubscription.unsubscribe(),this._scrollSubscription=null)},t}(),gv=function(){function t(t,e,n,i){var r=this;this._scrollDispatcher=t,this._viewportRuler=e,this._ngZone=n,this.noop=function(){return new pv},this.close=function(t){return new hv(r._scrollDispatcher,r._ngZone,r._viewportRuler,t)},this.block=function(){return new uv(r._viewportRuler,r._document)},this.reposition=function(t){return new mv(r._scrollDispatcher,r._viewportRuler,r._ngZone,t)},this._document=i}return t.ngInjectableDef=mt({factory:function(){return new t(ee(ov),ee(lv),ee(Fn),ee(Sl))},token:t,providedIn:"root"}),t}(),yv=function(){return function(t){var e=this;this.scrollStrategy=new pv,this.panelClass="",this.hasBackdrop=!1,this.backdropClass="cdk-overlay-dark-backdrop",this.disposeOnNavigation=!1,t&&Object.keys(t).forEach(function(n){void 0!==t[n]&&(e[n]=t[n])})}}(),_v=function(){return function(t,e,n,i,r){this.offsetX=n,this.offsetY=i,this.panelClass=r,this.originX=t.originX,this.originY=t.originY,this.overlayX=e.overlayX,this.overlayY=e.overlayY}}(),vv=function(){return function(t,e){this.connectionPair=t,this.scrollableViewProperties=e}}();function bv(t,e){if("top"!==e&&"bottom"!==e&&"center"!==e)throw Error("ConnectedPosition: Invalid "+t+' "'+e+'". Expected "top", "bottom" or "center".')}function wv(t,e){if("start"!==e&&"end"!==e&&"center"!==e)throw Error("ConnectedPosition: Invalid "+t+' "'+e+'". Expected "start", "end" or "center".')}var Cv=function(){function t(t){var e=this;this._attachedOverlays=[],this._keydownListener=function(t){for(var n=e._attachedOverlays,i=n.length-1;i>-1;i--)if(n[i]._keydownEventSubscriptions>0){n[i]._keydownEvents.next(t);break}},this._document=t}return t.prototype.ngOnDestroy=function(){this._detach()},t.prototype.add=function(t){this.remove(t),this._isAttached||(this._document.body.addEventListener("keydown",this._keydownListener,!0),this._isAttached=!0),this._attachedOverlays.push(t)},t.prototype.remove=function(t){var e=this._attachedOverlays.indexOf(t);e>-1&&this._attachedOverlays.splice(e,1),0===this._attachedOverlays.length&&this._detach()},t.prototype._detach=function(){this._isAttached&&(this._document.body.removeEventListener("keydown",this._keydownListener,!0),this._isAttached=!1)},t.ngInjectableDef=mt({factory:function(){return new t(ee(Sl))},token:t,providedIn:"root"}),t}(),xv=function(){function t(t){this._document=t}return t.prototype.ngOnDestroy=function(){this._containerElement&&this._containerElement.parentNode&&this._containerElement.parentNode.removeChild(this._containerElement)},t.prototype.getContainerElement=function(){return this._containerElement||this._createContainer(),this._containerElement},t.prototype._createContainer=function(){var t=this._document.createElement("div");t.classList.add("cdk-overlay-container"),this._document.body.appendChild(t),this._containerElement=t},t.ngInjectableDef=mt({factory:function(){return new t(ee(Sl))},token:t,providedIn:"root"}),t}(),Ev=function(){function t(t,e,n,i,r,o,s,a){var l=this;this._portalOutlet=t,this._host=e,this._pane=n,this._config=i,this._ngZone=r,this._keyboardDispatcher=o,this._document=s,this._location=a,this._backdropElement=null,this._backdropClick=new F,this._attachments=new F,this._detachments=new F,this._locationChanges=g.EMPTY,this._keydownEventsObservable=new R(function(t){var e=l._keydownEvents.subscribe(t);return l._keydownEventSubscriptions++,function(){e.unsubscribe(),l._keydownEventSubscriptions--}}),this._keydownEvents=new F,this._keydownEventSubscriptions=0,i.scrollStrategy&&i.scrollStrategy.attach(this),this._positionStrategy=i.positionStrategy}return Object.defineProperty(t.prototype,"overlayElement",{get:function(){return this._pane},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"backdropElement",{get:function(){return this._backdropElement},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"hostElement",{get:function(){return this._host},enumerable:!0,configurable:!0}),t.prototype.attach=function(t){var e=this,n=this._portalOutlet.attach(t);return this._positionStrategy&&this._positionStrategy.attach(this),!this._host.parentElement&&this._previousHostParent&&this._previousHostParent.appendChild(this._host),this._updateStackingOrder(),this._updateElementSize(),this._updateElementDirection(),this._config.scrollStrategy&&this._config.scrollStrategy.enable(),this._ngZone.onStable.asObservable().pipe(Ra(1)).subscribe(function(){e.hasAttached()&&e.updatePosition()}),this._togglePointerEvents(!0),this._config.hasBackdrop&&this._attachBackdrop(),this._config.panelClass&&this._toggleClasses(this._pane,this._config.panelClass,!0),this._attachments.next(),this._keyboardDispatcher.add(this),this._config.disposeOnNavigation&&this._location&&(this._locationChanges=this._location.subscribe(function(){return e.dispose()})),n},t.prototype.detach=function(){if(this.hasAttached()){this.detachBackdrop(),this._togglePointerEvents(!1),this._positionStrategy&&this._positionStrategy.detach&&this._positionStrategy.detach(),this._config.scrollStrategy&&this._config.scrollStrategy.disable();var t=this._portalOutlet.detach();return this._detachments.next(),this._keyboardDispatcher.remove(this),this._detachContentWhenStable(),this._locationChanges.unsubscribe(),t}},t.prototype.dispose=function(){var t=this.hasAttached();this._positionStrategy&&this._positionStrategy.dispose(),this._config.scrollStrategy&&this._config.scrollStrategy.disable(),this.detachBackdrop(),this._locationChanges.unsubscribe(),this._keyboardDispatcher.remove(this),this._portalOutlet.dispose(),this._attachments.complete(),this._backdropClick.complete(),this._keydownEvents.complete(),this._host&&this._host.parentNode&&(this._host.parentNode.removeChild(this._host),this._host=null),this._previousHostParent=this._pane=null,t&&this._detachments.next(),this._detachments.complete()},t.prototype.hasAttached=function(){return this._portalOutlet.hasAttached()},t.prototype.backdropClick=function(){return this._backdropClick.asObservable()},t.prototype.attachments=function(){return this._attachments.asObservable()},t.prototype.detachments=function(){return this._detachments.asObservable()},t.prototype.keydownEvents=function(){return this._keydownEventsObservable},t.prototype.getConfig=function(){return this._config},t.prototype.updatePosition=function(){this._positionStrategy&&this._positionStrategy.apply()},t.prototype.updatePositionStrategy=function(t){t!==this._positionStrategy&&(this._positionStrategy&&this._positionStrategy.dispose(),this._positionStrategy=t,this.hasAttached()&&(t.attach(this),this.updatePosition()))},t.prototype.updateSize=function(t){this._config=o({},this._config,t),this._updateElementSize()},t.prototype.setDirection=function(t){this._config=o({},this._config,{direction:t}),this._updateElementDirection()},t.prototype.addPanelClass=function(t){this._pane&&this._toggleClasses(this._pane,t,!0)},t.prototype.removePanelClass=function(t){this._pane&&this._toggleClasses(this._pane,t,!1)},t.prototype.getDirection=function(){var t=this._config.direction;return t?"string"==typeof t?t:t.value:"ltr"},t.prototype._updateElementDirection=function(){this._host.setAttribute("dir",this.getDirection())},t.prototype._updateElementSize=function(){var t=this._pane.style;t.width=Yd(this._config.width),t.height=Yd(this._config.height),t.minWidth=Yd(this._config.minWidth),t.minHeight=Yd(this._config.minHeight),t.maxWidth=Yd(this._config.maxWidth),t.maxHeight=Yd(this._config.maxHeight)},t.prototype._togglePointerEvents=function(t){this._pane.style.pointerEvents=t?"auto":"none"},t.prototype._attachBackdrop=function(){var t=this;this._backdropElement=this._document.createElement("div"),this._backdropElement.classList.add("cdk-overlay-backdrop"),this._config.backdropClass&&this._toggleClasses(this._backdropElement,this._config.backdropClass,!0),this._host.parentElement.insertBefore(this._backdropElement,this._host),this._backdropElement.addEventListener("click",function(e){return t._backdropClick.next(e)}),"undefined"!=typeof requestAnimationFrame?this._ngZone.runOutsideAngular(function(){requestAnimationFrame(function(){t._backdropElement&&t._backdropElement.classList.add("cdk-overlay-backdrop-showing")})}):this._backdropElement.classList.add("cdk-overlay-backdrop-showing")},t.prototype._updateStackingOrder=function(){this._host.nextSibling&&this._host.parentNode.appendChild(this._host)},t.prototype.detachBackdrop=function(){var t=this,e=this._backdropElement;if(e){var n,i=function(){e&&e.parentNode&&e.parentNode.removeChild(e),t._backdropElement==e&&(t._backdropElement=null),t._config.backdropClass&&t._toggleClasses(e,t._config.backdropClass,!1),clearTimeout(n)};e.classList.remove("cdk-overlay-backdrop-showing"),this._ngZone.runOutsideAngular(function(){e.addEventListener("transitionend",i)}),e.style.pointerEvents="none",n=this._ngZone.runOutsideAngular(function(){return setTimeout(i,500)})}},t.prototype._toggleClasses=function(t,e,n){var i=t.classList;Wd(e).forEach(function(t){n?i.add(t):i.remove(t)})},t.prototype._detachContentWhenStable=function(){var t=this;this._ngZone.runOutsideAngular(function(){var e=t._ngZone.onStable.asObservable().pipe(wm(rt(t._attachments,t._detachments))).subscribe(function(){t._pane&&t._host&&0!==t._pane.children.length||(t._pane&&t._config.panelClass&&t._toggleClasses(t._pane,t._config.panelClass,!1),t._host&&t._host.parentElement&&(t._previousHostParent=t._host.parentElement,t._previousHostParent.removeChild(t._host)),e.unsubscribe())})})},t}(),Sv=function(){function t(t,e,n,i,r){var o=this;this._viewportRuler=e,this._document=n,this._platform=i,this._overlayContainer=r,this._lastBoundingBoxSize={width:0,height:0},this._isPushed=!1,this._canPush=!0,this._growAfterOpen=!1,this._hasFlexibleDimensions=!0,this._positionLocked=!1,this._viewportMargin=0,this.scrollables=[],this._preferredPositions=[],this._positionChanges=new F,this._resizeSubscription=g.EMPTY,this._offsetX=0,this._offsetY=0,this._positionChangeSubscriptions=0,this._appliedPanelClasses=[],this.positionChanges=new R(function(t){var e=o._positionChanges.subscribe(t);return o._positionChangeSubscriptions++,function(){e.unsubscribe(),o._positionChangeSubscriptions--}}),this.setOrigin(t)}return Object.defineProperty(t.prototype,"positions",{get:function(){return this._preferredPositions},enumerable:!0,configurable:!0}),t.prototype.attach=function(t){var e=this;if(this._overlayRef&&t!==this._overlayRef)throw Error("This position strategy is already attached to an overlay");this._validatePositions(),t.hostElement.classList.add("cdk-overlay-connected-position-bounding-box"),this._overlayRef=t,this._boundingBox=t.hostElement,this._pane=t.overlayElement,this._isDisposed=!1,this._isInitialRender=!0,this._lastPosition=null,this._resizeSubscription.unsubscribe(),this._resizeSubscription=this._viewportRuler.change().subscribe(function(){e._isInitialRender=!0,e.apply()})},t.prototype.apply=function(){if(!(this._isDisposed||this._platform&&!this._platform.isBrowser))if(!this._isInitialRender&&this._positionLocked&&this._lastPosition)this.reapplyLastPosition();else{this._clearPanelClasses(),this._resetOverlayElementStyles(),this._resetBoundingBoxStyles(),this._viewportRect=this._getNarrowedViewportRect(),this._originRect=this._getOriginRect(),this._overlayRect=this._pane.getBoundingClientRect();for(var t,e=this._originRect,n=this._overlayRect,i=this._viewportRect,r=[],o=0,s=this._preferredPositions;op&&(p=g,h=m)}return this._isPushed=!1,void this._applyPosition(h.position,h.origin)}if(this._canPush)return this._isPushed=!0,void this._applyPosition(t.position,t.originPoint);this._applyPosition(t.position,t.originPoint)}},t.prototype.detach=function(){this._clearPanelClasses(),this._lastPosition=null,this._previousPushAmount=null,this._resizeSubscription.unsubscribe()},t.prototype.dispose=function(){this._isDisposed||(this._boundingBox&&Tv(this._boundingBox.style,{top:"",left:"",right:"",bottom:"",height:"",width:"",alignItems:"",justifyContent:""}),this._pane&&this._resetOverlayElementStyles(),this._overlayRef&&this._overlayRef.hostElement.classList.remove("cdk-overlay-connected-position-bounding-box"),this.detach(),this._positionChanges.complete(),this._overlayRef=this._boundingBox=null,this._isDisposed=!0)},t.prototype.reapplyLastPosition=function(){if(!this._isDisposed&&(!this._platform||this._platform.isBrowser)){this._originRect=this._getOriginRect(),this._overlayRect=this._pane.getBoundingClientRect(),this._viewportRect=this._getNarrowedViewportRect();var t=this._lastPosition||this._preferredPositions[0],e=this._getOriginPoint(this._originRect,t);this._applyPosition(t,e)}},t.prototype.withScrollableContainers=function(t){return this.scrollables=t,this},t.prototype.withPositions=function(t){return this._preferredPositions=t,-1===t.indexOf(this._lastPosition)&&(this._lastPosition=null),this._validatePositions(),this},t.prototype.withViewportMargin=function(t){return this._viewportMargin=t,this},t.prototype.withFlexibleDimensions=function(t){return void 0===t&&(t=!0),this._hasFlexibleDimensions=t,this},t.prototype.withGrowAfterOpen=function(t){return void 0===t&&(t=!0),this._growAfterOpen=t,this},t.prototype.withPush=function(t){return void 0===t&&(t=!0),this._canPush=t,this},t.prototype.withLockedPosition=function(t){return void 0===t&&(t=!0),this._positionLocked=t,this},t.prototype.setOrigin=function(t){return this._origin=t,this},t.prototype.withDefaultOffsetX=function(t){return this._offsetX=t,this},t.prototype.withDefaultOffsetY=function(t){return this._offsetY=t,this},t.prototype.withTransformOriginOn=function(t){return this._transformOriginSelector=t,this},t.prototype._getOriginPoint=function(t,e){var n;if("center"==e.originX)n=t.left+t.width/2;else{var i=this._isRtl()?t.right:t.left,r=this._isRtl()?t.left:t.right;n="start"==e.originX?i:r}return{x:n,y:"center"==e.originY?t.top+t.height/2:"top"==e.originY?t.top:t.bottom}},t.prototype._getOverlayPoint=function(t,e,n){var i;return i="center"==n.overlayX?-e.width/2:"start"===n.overlayX?this._isRtl()?-e.width:0:this._isRtl()?0:-e.width,{x:t.x+i,y:t.y+("center"==n.overlayY?-e.height/2:"top"==n.overlayY?0:-e.height)}},t.prototype._getOverlayFit=function(t,e,n,i){var r=t.x,o=t.y,s=this._getOffset(i,"x"),a=this._getOffset(i,"y");s&&(r+=s),a&&(o+=a);var l=0-o,u=o+e.height-n.height,c=this._subtractOverflows(e.width,0-r,r+e.width-n.width),h=this._subtractOverflows(e.height,l,u),p=c*h;return{visibleArea:p,isCompletelyWithinViewport:e.width*e.height===p,fitsInViewportVertically:h===e.height,fitsInViewportHorizontally:c==e.width}},t.prototype._canFitWithFlexibleDimensions=function(t,e,n){if(this._hasFlexibleDimensions){var i=n.bottom-e.y,r=n.right-e.x,o=this._overlayRef.getConfig().minHeight,s=this._overlayRef.getConfig().minWidth;return(t.fitsInViewportVertically||null!=o&&o<=i)&&(t.fitsInViewportHorizontally||null!=s&&s<=r)}},t.prototype._pushOverlayOnScreen=function(t,e,n){if(this._previousPushAmount&&this._positionLocked)return{x:t.x+this._previousPushAmount.x,y:t.y+this._previousPushAmount.y};var i,r,o=this._viewportRect,s=Math.max(t.x+e.width-o.right,0),a=Math.max(t.y+e.height-o.bottom,0),l=Math.max(o.top-n.top-t.y,0),u=Math.max(o.left-n.left-t.x,0);return this._previousPushAmount={x:i=e.width<=o.width?u||-s:t.x0){var n=this._getScrollVisibility(),i=new vv(t,n);this._positionChanges.next(i)}this._isInitialRender=!1},t.prototype._setTransformOrigin=function(t){if(this._transformOriginSelector){var e,n=this._boundingBox.querySelectorAll(this._transformOriginSelector),i=t.overlayY;e="center"===t.overlayX?"center":this._isRtl()?"start"===t.overlayX?"right":"left":"start"===t.overlayX?"left":"right";for(var r=0;rh&&!this._isInitialRender&&!this._growAfterOpen&&(i=t.y-h/2)}if("end"===e.overlayX&&!u||"start"===e.overlayX&&u)a=l.right-t.x+this._viewportMargin,o=t.x-l.left;else if("start"===e.overlayX&&!u||"end"===e.overlayX&&u)s=t.x,o=l.right-t.x;else{c=Math.min(l.right-t.x+l.left,t.x);var p=this._lastBoundingBoxSize.width;s=t.x-c,(o=2*c)>p&&!this._isInitialRender&&!this._growAfterOpen&&(s=t.x-p/2)}return{top:i,left:s,bottom:r,right:a,width:o,height:n}},t.prototype._setBoundingBoxStyles=function(t,e){var n=this._calculateBoundingBoxRect(t,e);this._isInitialRender||this._growAfterOpen||(n.height=Math.min(n.height,this._lastBoundingBoxSize.height),n.width=Math.min(n.width,this._lastBoundingBoxSize.width));var i={};if(this._hasExactPosition())i.top=i.left="0",i.bottom=i.right="",i.width=i.height="100%";else{var r=this._overlayRef.getConfig().maxHeight,o=this._overlayRef.getConfig().maxWidth;i.height=Yd(n.height),i.top=Yd(n.top),i.bottom=Yd(n.bottom),i.width=Yd(n.width),i.left=Yd(n.left),i.right=Yd(n.right),i.alignItems="center"===e.overlayX?"center":"end"===e.overlayX?"flex-end":"flex-start",i.justifyContent="center"===e.overlayY?"center":"bottom"===e.overlayY?"flex-end":"flex-start",r&&(i.maxHeight=Yd(r)),o&&(i.maxWidth=Yd(o))}this._lastBoundingBoxSize=n,Tv(this._boundingBox.style,i)},t.prototype._resetBoundingBoxStyles=function(){Tv(this._boundingBox.style,{top:"0",left:"0",right:"0",bottom:"0",height:"",width:"",alignItems:"",justifyContent:""})},t.prototype._resetOverlayElementStyles=function(){Tv(this._pane.style,{top:"",left:"",bottom:"",right:"",position:"",transform:""})},t.prototype._setOverlayElementStyles=function(t,e){var n={};if(this._hasExactPosition()){var i=this._viewportRuler.getViewportScrollPosition();Tv(n,this._getExactOverlayY(e,t,i)),Tv(n,this._getExactOverlayX(e,t,i))}else n.position="static";var r="",o=this._getOffset(e,"x"),s=this._getOffset(e,"y");o&&(r+="translateX("+o+"px) "),s&&(r+="translateY("+s+"px)"),n.transform=r.trim(),this._hasFlexibleDimensions&&this._overlayRef.getConfig().maxHeight&&(n.maxHeight=""),this._hasFlexibleDimensions&&this._overlayRef.getConfig().maxWidth&&(n.maxWidth=""),Tv(this._pane.style,n)},t.prototype._getExactOverlayY=function(t,e,n){var i={top:null,bottom:null},r=this._getOverlayPoint(e,this._overlayRect,t);this._isPushed&&(r=this._pushOverlayOnScreen(r,this._overlayRect,n));var o=this._overlayContainer?this._overlayContainer.getContainerElement().getBoundingClientRect().top:0;return r.y-=o,"bottom"===t.overlayY?i.bottom=this._document.documentElement.clientHeight-(r.y+this._overlayRect.height)+"px":i.top=Yd(r.y),i},t.prototype._getExactOverlayX=function(t,e,n){var i={left:null,right:null},r=this._getOverlayPoint(e,this._overlayRect,t);return this._isPushed&&(r=this._pushOverlayOnScreen(r,this._overlayRect,n)),"right"==(this._isRtl()?"end"===t.overlayX?"left":"right":"end"===t.overlayX?"right":"left")?i.right=this._document.documentElement.clientWidth-(r.x+this._overlayRect.width)+"px":i.left=Yd(r.x),i},t.prototype._getScrollVisibility=function(){var t=this._getOriginRect(),e=this._pane.getBoundingClientRect(),n=this.scrollables.map(function(t){return t.getElementRef().nativeElement.getBoundingClientRect()});return{isOriginClipped:fv(t,n),isOriginOutsideView:dv(t,n),isOverlayClipped:fv(e,n),isOverlayOutsideView:dv(e,n)}},t.prototype._subtractOverflows=function(t){for(var e=[],n=1;n-1&&(this.openDialogs.splice(e,1),this.openDialogs.length||(this._ariaHiddenElements.forEach(function(t,e){t?e.setAttribute("aria-hidden",t):e.removeAttribute("aria-hidden")}),this._ariaHiddenElements.clear(),this._afterAllClosed.next()))},t.prototype._hideNonDialogContentFromAssistiveTechnology=function(){var t=this._overlayContainer.getContainerElement();if(t.parentElement)for(var e=t.parentElement.children,n=e.length-1;n>-1;n--){var i=e[n];i===t||"SCRIPT"===i.nodeName||"STYLE"===i.nodeName||i.hasAttribute("aria-live")||(this._ariaHiddenElements.set(i,i.getAttribute("aria-hidden")),i.setAttribute("aria-hidden","true"))}},t.prototype._closeDialogs=function(t){for(var e=t.length;e--;)t[e].close()},t}(),Xv=0,Zv=function(){function t(t,e,n){this._dialogRef=t,this._elementRef=e,this._dialog=n,this.id="mat-dialog-title-"+Xv++}return t.prototype.ngOnInit=function(){var t=this;this._dialogRef||(this._dialogRef=function(t,e){for(var n=t.nativeElement.parentElement;n&&!n.classList.contains("mat-dialog-container");)n=n.parentElement;return n?e.find(function(t){return t.id===n.id}):null}(this._elementRef,this._dialog.openDialogs)),this._dialogRef&&Promise.resolve().then(function(){var e=t._dialogRef._containerInstance;e&&!e._ariaLabelledBy&&(e._ariaLabelledBy=t.id)})},t}(),Qv=function(){return function(){}}(),Jv=function(){return function(){}}(),$v=function(){return function(){}}(),tb=function(){return function(t,e,n,i){this.username=t,this.password=e,this.email=n,this.anni=i}}(),eb=function(){return function(t,e){null!==t&&(this.testo=t),null!==e&&(this.cssClass=e)}}(),nb={},ib=function(){function t(t){this.resultSelector=t}return t.prototype.call=function(t,e){return e.subscribe(new rb(t,this.resultSelector))},t}(),rb=function(t){function e(e,n){var i=t.call(this,e)||this;return i.resultSelector=n,i.active=0,i.values=[],i.observables=[],i}return r(e,t),e.prototype._next=function(t){this.values.push(nb),this.observables.push(t)},e.prototype._complete=function(){var t=this.observables,e=t.length;if(0===e)this.destination.complete();else{this.active=e,this.toRespond=e;for(var n=0;n0&&t.afterOpened().subscribe(function(){return t._dismissAfter(e.duration)}),e.announcementMessage&&this._live.announce(e.announcementMessage,e.politeness)},t.prototype._createOverlay=function(t){var e=new yv;e.direction=t.direction;var n=this._overlay.position().global(),i="rtl"===t.direction,r="left"===t.horizontalPosition||"start"===t.horizontalPosition&&!i||"end"===t.horizontalPosition&&i,o=!r&&"center"!==t.horizontalPosition;return r?n.left("0"):o?n.right("0"):n.centerHorizontally(),"top"===t.verticalPosition?n.top("0"):n.bottom("0"),e.positionStrategy=n,this._overlay.create(e)},t.prototype._createInjector=function(t,e){return new q_(t&&t.viewContainerRef&&t.viewContainerRef.injector||this._injector,new WeakMap([[hb,e],[pb,t.data]]))},t.ngInjectableDef=mt({factory:function(){return new t(ee(Pv),ee(Af),ee(jt),ee(lb),ee(t,12),ee(yb))},token:t,providedIn:gb}),t}(),vb=function(){function t(t,e){this.dialog=t,this.snackBar=e}return t.prototype.openDialog=function(t,e){return this.dialog.open(t,e)},t.prototype.openMessageAlert=function(t,e){return this.snackBar.openFromComponent(t,{duration:2e3,verticalPosition:"top",panelClass:[e.cssClass],data:{text:e.testo,color:"white"}})},t.prototype.getAlertConfig=function(t,e){var n=new jv;return n.disableClose=!1,n.autoFocus=!0,n.data={message:new eb(t,e)},n.position={top:"0px",left:"0px"},n},t.prototype.save=function(t,e){return t.close(e.value),t.afterClosed()},t.prototype.close=function(t){t.close()},t.prototype.getT=function(){return this.t},t.prototype.setT=function(t){this.t=t},t.ngInjectableDef=mt({factory:function(){return new t(ee(Kv),ee(_b))},token:t,providedIn:"root"}),t}(),bb=function(){function t(t){this.data=t,this.message=new eb(t.text,t.color)}return t.prototype.ngOnInit=function(){},t}(),wb=function(){return function(){}}(),Cb=function(){return function(){}}(),xb=function(){function t(t){var e=this;this.normalizedNames=new Map,this.lazyUpdate=null,t?this.lazyInit="string"==typeof t?function(){e.headers=new Map,t.split("\n").forEach(function(t){var n=t.indexOf(":");if(n>0){var i=t.slice(0,n),r=i.toLowerCase(),o=t.slice(n+1).trim();e.maybeSetNormalizedName(i,r),e.headers.has(r)?e.headers.get(r).push(o):e.headers.set(r,[o])}})}:function(){e.headers=new Map,Object.keys(t).forEach(function(n){var i=t[n],r=n.toLowerCase();"string"==typeof i&&(i=[i]),i.length>0&&(e.headers.set(r,i),e.maybeSetNormalizedName(n,r))})}:this.headers=new Map}return t.prototype.has=function(t){return this.init(),this.headers.has(t.toLowerCase())},t.prototype.get=function(t){this.init();var e=this.headers.get(t.toLowerCase());return e&&e.length>0?e[0]:null},t.prototype.keys=function(){return this.init(),Array.from(this.normalizedNames.values())},t.prototype.getAll=function(t){return this.init(),this.headers.get(t.toLowerCase())||null},t.prototype.append=function(t,e){return this.clone({name:t,value:e,op:"a"})},t.prototype.set=function(t,e){return this.clone({name:t,value:e,op:"s"})},t.prototype.delete=function(t,e){return this.clone({name:t,value:e,op:"d"})},t.prototype.maybeSetNormalizedName=function(t,e){this.normalizedNames.has(e)||this.normalizedNames.set(e,t)},t.prototype.init=function(){var e=this;this.lazyInit&&(this.lazyInit instanceof t?this.copyFrom(this.lazyInit):this.lazyInit(),this.lazyInit=null,this.lazyUpdate&&(this.lazyUpdate.forEach(function(t){return e.applyUpdate(t)}),this.lazyUpdate=null))},t.prototype.copyFrom=function(t){var e=this;t.init(),Array.from(t.headers.keys()).forEach(function(n){e.headers.set(n,t.headers.get(n)),e.normalizedNames.set(n,t.normalizedNames.get(n))})},t.prototype.clone=function(e){var n=new t;return n.lazyInit=this.lazyInit&&this.lazyInit instanceof t?this.lazyInit:this,n.lazyUpdate=(this.lazyUpdate||[]).concat([e]),n},t.prototype.applyUpdate=function(t){var e=t.name.toLowerCase();switch(t.op){case"a":case"s":var n=t.value;if("string"==typeof n&&(n=[n]),0===n.length)return;this.maybeSetNormalizedName(t.name,e);var i=("a"===t.op?this.headers.get(e):void 0)||[];i.push.apply(i,c(n)),this.headers.set(e,i);break;case"d":var r=t.value;if(r){var o=this.headers.get(e);if(!o)return;0===(o=o.filter(function(t){return-1===r.indexOf(t)})).length?(this.headers.delete(e),this.normalizedNames.delete(e)):this.headers.set(e,o)}else this.headers.delete(e),this.normalizedNames.delete(e)}},t.prototype.forEach=function(t){var e=this;this.init(),Array.from(this.normalizedNames.keys()).forEach(function(n){return t(e.normalizedNames.get(n),e.headers.get(n))})},t}(),Eb=function(){function t(){}return t.prototype.encodeKey=function(t){return Sb(t)},t.prototype.encodeValue=function(t){return Sb(t)},t.prototype.decodeKey=function(t){return decodeURIComponent(t)},t.prototype.decodeValue=function(t){return decodeURIComponent(t)},t}();function Sb(t){return encodeURIComponent(t).replace(/%40/gi,"@").replace(/%3A/gi,":").replace(/%24/gi,"$").replace(/%2C/gi,",").replace(/%3B/gi,";").replace(/%2B/gi,"+").replace(/%3D/gi,"=").replace(/%3F/gi,"?").replace(/%2F/gi,"/")}var Tb=function(){function t(t){void 0===t&&(t={});var e,n,i,r=this;if(this.updates=null,this.cloneFrom=null,this.encoder=t.encoder||new Eb,t.fromString){if(t.fromObject)throw new Error("Cannot specify both fromString and fromObject.");this.map=(e=t.fromString,n=this.encoder,i=new Map,e.length>0&&e.split("&").forEach(function(t){var e=t.indexOf("="),r=u(-1==e?[n.decodeKey(t),""]:[n.decodeKey(t.slice(0,e)),n.decodeValue(t.slice(e+1))],2),o=r[0],s=r[1],a=i.get(o)||[];a.push(s),i.set(o,a)}),i)}else t.fromObject?(this.map=new Map,Object.keys(t.fromObject).forEach(function(e){var n=t.fromObject[e];r.map.set(e,Array.isArray(n)?n:[n])})):this.map=null}return t.prototype.has=function(t){return this.init(),this.map.has(t)},t.prototype.get=function(t){this.init();var e=this.map.get(t);return e?e[0]:null},t.prototype.getAll=function(t){return this.init(),this.map.get(t)||null},t.prototype.keys=function(){return this.init(),Array.from(this.map.keys())},t.prototype.append=function(t,e){return this.clone({param:t,value:e,op:"a"})},t.prototype.set=function(t,e){return this.clone({param:t,value:e,op:"s"})},t.prototype.delete=function(t,e){return this.clone({param:t,value:e,op:"d"})},t.prototype.toString=function(){var t=this;return this.init(),this.keys().map(function(e){var n=t.encoder.encodeKey(e);return t.map.get(e).map(function(e){return n+"="+t.encoder.encodeValue(e)}).join("&")}).join("&")},t.prototype.clone=function(e){var n=new t({encoder:this.encoder});return n.cloneFrom=this.cloneFrom||this,n.updates=(this.updates||[]).concat([e]),n},t.prototype.init=function(){var t=this;null===this.map&&(this.map=new Map),null!==this.cloneFrom&&(this.cloneFrom.init(),this.cloneFrom.keys().forEach(function(e){return t.map.set(e,t.cloneFrom.map.get(e))}),this.updates.forEach(function(e){switch(e.op){case"a":case"s":var n=("a"===e.op?t.map.get(e.param):void 0)||[];n.push(e.value),t.map.set(e.param,n);break;case"d":if(void 0===e.value){t.map.delete(e.param);break}var i=t.map.get(e.param)||[],r=i.indexOf(e.value);-1!==r&&i.splice(r,1),i.length>0?t.map.set(e.param,i):t.map.delete(e.param)}}),this.cloneFrom=null)},t}();function Ib(t){return"undefined"!=typeof ArrayBuffer&&t instanceof ArrayBuffer}function Ob(t){return"undefined"!=typeof Blob&&t instanceof Blob}function Rb(t){return"undefined"!=typeof FormData&&t instanceof FormData}var kb=function(){function t(t,e,n,i){var r;if(this.url=e,this.body=null,this.reportProgress=!1,this.withCredentials=!1,this.responseType="json",this.method=t.toUpperCase(),function(t){switch(t){case"DELETE":case"GET":case"HEAD":case"OPTIONS":case"JSONP":return!1;default:return!0}}(this.method)||i?(this.body=void 0!==n?n:null,r=i):r=n,r&&(this.reportProgress=!!r.reportProgress,this.withCredentials=!!r.withCredentials,r.responseType&&(this.responseType=r.responseType),r.headers&&(this.headers=r.headers),r.params&&(this.params=r.params)),this.headers||(this.headers=new xb),this.params){var o=this.params.toString();if(0===o.length)this.urlWithParams=e;else{var s=e.indexOf("?");this.urlWithParams=e+(-1===s?"?":s=200&&this.status<300}}(),Lb=function(t){function e(e){void 0===e&&(e={});var n=t.call(this,e)||this;return n.type=Pb.ResponseHeader,n}return r(e,t),e.prototype.clone=function(t){return void 0===t&&(t={}),new e({headers:t.headers||this.headers,status:void 0!==t.status?t.status:this.status,statusText:t.statusText||this.statusText,url:t.url||this.url||void 0})},e}(Ab),Db=function(t){function e(e){void 0===e&&(e={});var n=t.call(this,e)||this;return n.type=Pb.Response,n.body=void 0!==e.body?e.body:null,n}return r(e,t),e.prototype.clone=function(t){return void 0===t&&(t={}),new e({body:void 0!==t.body?t.body:this.body,headers:t.headers||this.headers,status:void 0!==t.status?t.status:this.status,statusText:t.statusText||this.statusText,url:t.url||this.url||void 0})},e}(Ab),Fb=function(t){function e(e){var n=t.call(this,e,0,"Unknown Error")||this;return n.name="HttpErrorResponse",n.ok=!1,n.message=n.status>=200&&n.status<300?"Http failure during parsing for "+(e.url||"(unknown url)"):"Http failure response for "+(e.url||"(unknown url)")+": "+e.status+" "+e.statusText,n.error=e.error||null,n}return r(e,t),e}(Ab);function Mb(t,e){return{body:e,headers:t.headers,observe:t.observe,params:t.params,reportProgress:t.reportProgress,responseType:t.responseType,withCredentials:t.withCredentials}}var Nb=function(){function t(t){this.handler=t}return t.prototype.request=function(t,e,n){var i,r=this;if(void 0===n&&(n={}),t instanceof kb)i=t;else{var o;o=n.headers instanceof xb?n.headers:new xb(n.headers);var s=void 0;n.params&&(s=n.params instanceof Tb?n.params:new Tb({fromObject:n.params})),i=new kb(t,e,void 0!==n.body?n.body:null,{headers:o,params:s,reportProgress:n.reportProgress,responseType:n.responseType||"json",withCredentials:n.withCredentials})}var a=ta(i).pipe(Ma(function(t){return r.handler.handle(t)}));if(t instanceof kb||"events"===n.observe)return a;var l=a.pipe(aa(function(t){return t instanceof Db}));switch(n.observe||"body"){case"body":switch(i.responseType){case"arraybuffer":return l.pipe(Y(function(t){if(null!==t.body&&!(t.body instanceof ArrayBuffer))throw new Error("Response is not an ArrayBuffer.");return t.body}));case"blob":return l.pipe(Y(function(t){if(null!==t.body&&!(t.body instanceof Blob))throw new Error("Response is not a Blob.");return t.body}));case"text":return l.pipe(Y(function(t){if(null!==t.body&&"string"!=typeof t.body)throw new Error("Response is not a string.");return t.body}));case"json":default:return l.pipe(Y(function(t){return t.body}))}case"response":return l;default:throw new Error("Unreachable: unhandled observe type "+n.observe+"}")}},t.prototype.delete=function(t,e){return void 0===e&&(e={}),this.request("DELETE",t,e)},t.prototype.get=function(t,e){return void 0===e&&(e={}),this.request("GET",t,e)},t.prototype.head=function(t,e){return void 0===e&&(e={}),this.request("HEAD",t,e)},t.prototype.jsonp=function(t,e){return this.request("JSONP",t,{params:(new Tb).append(e,"JSONP_CALLBACK"),observe:"body",responseType:"json"})},t.prototype.options=function(t,e){return void 0===e&&(e={}),this.request("OPTIONS",t,e)},t.prototype.patch=function(t,e,n){return void 0===n&&(n={}),this.request("PATCH",t,Mb(n,e))},t.prototype.post=function(t,e,n){return void 0===n&&(n={}),this.request("POST",t,Mb(n,e))},t.prototype.put=function(t,e,n){return void 0===n&&(n={}),this.request("PUT",t,Mb(n,e))},t}(),jb=function(){function t(t,e){this.next=t,this.interceptor=e}return t.prototype.handle=function(t){return this.interceptor.intercept(t,this.next)},t}(),Vb=new yt("HTTP_INTERCEPTORS"),zb=function(){function t(){}return t.prototype.intercept=function(t,e){return e.handle(t)},t}(),Bb=/^\)\]\}',?\n/,Gb=function(){return function(){}}(),Ub=function(){function t(){}return t.prototype.build=function(){return new XMLHttpRequest},t}(),Hb=function(){function t(t){this.xhrFactory=t}return t.prototype.handle=function(t){var e=this;if("JSONP"===t.method)throw new Error("Attempted to construct Jsonp request without JsonpClientModule installed.");return new R(function(n){var i=e.xhrFactory.build();if(i.open(t.method,t.urlWithParams),t.withCredentials&&(i.withCredentials=!0),t.headers.forEach(function(t,e){return i.setRequestHeader(t,e.join(","))}),t.headers.has("Accept")||i.setRequestHeader("Accept","application/json, text/plain, */*"),!t.headers.has("Content-Type")){var r=t.detectContentTypeHeader();null!==r&&i.setRequestHeader("Content-Type",r)}if(t.responseType){var o=t.responseType.toLowerCase();i.responseType="json"!==o?o:"text"}var s=t.serializeBody(),a=null,l=function(){if(null!==a)return a;var e=1223===i.status?204:i.status,n=i.statusText||"OK",r=new xb(i.getAllResponseHeaders()),o=function(t){return"responseURL"in t&&t.responseURL?t.responseURL:/^X-Request-URL:/m.test(t.getAllResponseHeaders())?t.getResponseHeader("X-Request-URL"):null}(i)||t.url;return a=new Lb({headers:r,status:e,statusText:n,url:o})},u=function(){var e=l(),r=e.headers,o=e.status,s=e.statusText,a=e.url,u=null;204!==o&&(u=void 0===i.response?i.responseText:i.response),0===o&&(o=u?200:0);var c=o>=200&&o<300;if("json"===t.responseType&&"string"==typeof u){var h=u;u=u.replace(Bb,"");try{u=""!==u?JSON.parse(u):null}catch(p){u=h,c&&(c=!1,u={error:p,text:u})}}c?(n.next(new Db({body:u,headers:r,status:o,statusText:s,url:a||void 0})),n.complete()):n.error(new Fb({error:u,headers:r,status:o,statusText:s,url:a||void 0}))},c=function(t){var e=new Fb({error:t,status:i.status||0,statusText:i.statusText||"Unknown Error"});n.error(e)},h=!1,p=function(e){h||(n.next(l()),h=!0);var r={type:Pb.DownloadProgress,loaded:e.loaded};e.lengthComputable&&(r.total=e.total),"text"===t.responseType&&i.responseText&&(r.partialText=i.responseText),n.next(r)},d=function(t){var e={type:Pb.UploadProgress,loaded:t.loaded};t.lengthComputable&&(e.total=t.total),n.next(e)};return i.addEventListener("load",u),i.addEventListener("error",c),t.reportProgress&&(i.addEventListener("progress",p),null!==s&&i.upload&&i.upload.addEventListener("progress",d)),i.send(s),n.next({type:Pb.Sent}),function(){i.removeEventListener("error",c),i.removeEventListener("load",u),t.reportProgress&&(i.removeEventListener("progress",p),null!==s&&i.upload&&i.upload.removeEventListener("progress",d)),i.abort()}})},t}(),qb=new yt("XSRF_COOKIE_NAME"),Wb=new yt("XSRF_HEADER_NAME"),Yb=function(){return function(){}}(),Kb=function(){function t(t,e,n){this.doc=t,this.platform=e,this.cookieName=n,this.lastCookieString="",this.lastToken=null,this.parseCount=0}return t.prototype.getToken=function(){if("server"===this.platform)return null;var t=this.doc.cookie||"";return t!==this.lastCookieString&&(this.parseCount++,this.lastToken=al(t,this.cookieName),this.lastCookieString=t),this.lastToken},t}(),Xb=function(){function t(t,e){this.tokenService=t,this.headerName=e}return t.prototype.intercept=function(t,e){var n=t.url.toLowerCase();if("GET"===t.method||"HEAD"===t.method||n.startsWith("http://")||n.startsWith("https://"))return e.handle(t);var i=this.tokenService.getToken();return null===i||t.headers.has(this.headerName)||(t=t.clone({headers:t.headers.set(this.headerName,i)})),e.handle(t)},t}(),Zb=function(){function t(t,e){this.backend=t,this.injector=e,this.chain=null}return t.prototype.handle=function(t){if(null===this.chain){var e=this.injector.get(Vb,[]);this.chain=e.reduceRight(function(t,e){return new jb(t,e)},this.backend)}return this.chain.handle(t)},t}(),Qb=function(){function t(){}var e;return e=t,t.disable=function(){return{ngModule:e,providers:[{provide:Xb,useClass:zb}]}},t.withOptions=function(t){return void 0===t&&(t={}),{ngModule:e,providers:[t.cookieName?{provide:qb,useValue:t.cookieName}:[],t.headerName?{provide:Wb,useValue:t.headerName}:[]]}},t}(),Jb=function(){return function(){}}(),$b=function(){function t(t,e){this.http=t,this.router=e,this.isLoggedIn=!1,this.endpoint=Qs.endpoint}return t.prototype.registerUser=function(t){return this.http.post(this.endpoint+"/register",t)},t.prototype.login=function(t){return this.http.post(this.endpoint+"/login",t,{observe:"response"})},t.prototype.resetPassword=function(t,e){return this.http.patch(this.endpoint+"/resetPassword?t="+t,e)},t.prototype.sendMailResetPassword=function(t){return this.http.get(this.endpoint+"/sendResetMail?email="+t)},t.prototype.logout=function(){localStorage.clear(),this.isLoggedIn=!1,this.router.navigate(["/login"])},t.prototype.checkLogin=function(){return null!==localStorage.getItem("X-Vgi")?(this.isLoggedIn=!0,!0):(this.isLoggedIn=!1,!1)},t.ngInjectableDef=mt({factory:function(){return new t(ee(Nb),ee(Jh))},token:t,providedIn:"root"}),t}(),tw=function(){function t(t,e,n,i){this.fb=t,this.ref=e,this.authService=n,this.modalService=i}return t.prototype.ngOnInit=function(){this.regForm=this.fb.group({username:["",Dp.required],password:["",Dp.required],ripetiPassword:["",Dp.required],email:["",Dp.email],anni:["",Dp.required]})},t.prototype.submit=function(){var t=this;this.regForm.invalid?this.modalService.openMessageAlert(bb,new eb("Uno o pi\xf9 campi obbligatorio non sono stati riempiti","red-snackbar")):this.regForm.get("password").value!==this.regForm.get("ripetiPassword").value?this.modalService.openMessageAlert(bb,new eb("Le password inserite non sono uguali. Inseriscile di nuovo")):(this.modalService.save(this.ref,this.regForm),this.ref.afterClosed().subscribe(function(e){t.authService.registerUser(e).subscribe(function(e){return t.modalService.openMessageAlert(bb,new eb(e.descrizione,"green-snackbar"))})}))},t}(),ew=function(){function t(t,e,n,i,r,o){this.route=t,this.authService=e,this.fb=n,this.modalService=i,this.ref=r,this.data=o,this.buttonName="Reset",this.token=this.data.t}return t.prototype.ngOnInit=function(){null==this.token?(this.inputMail=!0,this.templateName="Inserisci la tua email",this.pwdResetForm=this.fb.group({email:["",Dp.email]})):(this.inputMail=!1,this.buttonName="Aggiorna Password",this.templateName="Inserisci la tua nuova password",this.pwdResetForm=this.fb.group({password:["",Dp.required],ripetiPassword:["",Dp.required]}))},t.prototype.submit=function(){var t=this;null==this.token?this.pwdResetForm.invalid?this.modalService.openMessageAlert(bb,new eb("Uno o pi\xf9 campi obbligatorio non sono stati riempiti","red-snackbar")):(this.modalService.save(this.ref,this.pwdResetForm),this.ref.afterClosed().subscribe(function(e){return t.authService.sendMailResetPassword(e.email).subscribe(function(e){!0===e.esito&&t.modalService.openMessageAlert(bb,new eb(e.descrizione,"green-snackbar"))})})):this.pwdResetForm.invalid?this.modalService.openMessageAlert(bb,new eb("Uno o pi\xf9 campi obbligatorio non sono stati riempiti","red-snackbar")):this.pwdResetForm.get("password").value!==this.pwdResetForm.get("ripetiPassword").value?this.modalService.openMessageAlert(bb,new eb("Le password inserite non sono uguali. Inseriscile di nuovo","red-snackbar")):this.modalService.save(this.ref,this.pwdResetForm).subscribe(function(e){return t.authService.resetPassword(t.token,e).subscribe(function(e){return t.modalService.openMessageAlert(bb,new eb(e.descrizione,"green-snackbar"))})})},t}(),nw=function(){function t(){}return t.tokenName="X-Vgi",t.passwordFormField="password",t.ripetiPasswordFormField="ripetiPassword",t.usernameFormField="username",t}(),iw=function(){function t(t,e,n,i,r){this.fb=t,this.modalService=e,this.router=n,this.authService=i,this.route=r}return t.prototype.ngOnInit=function(){var t=this;this.loginForm=this.fb.group({username:["",Dp.required],password:["",Dp.required]}),this.route.queryParams.subscribe(function(e){console.log(e);var n=e.t;null!=n&&t.openModalPwdReset(n)})},t.prototype.login=function(){var t=this;if(this.loginForm.invalid)this.modalService.openMessageAlert(bb,new eb("Uno o pi\xf9 campi obbligatorio non sono stati riempiti","red-snackbar"));else{var e=this.bindFormToUser();this.authService.login(e).subscribe(function(e){var n=e.body;if(!0===n.esito){var i=e.headers.get(nw.tokenName);null!==i&&(localStorage.setItem(nw.tokenName,i),t.authService.isLoggedIn=!0,t.router.navigate(["/map"]))}else t.modalService.openMessageAlert(bb,new eb(n.descrizione,"red-snackbar"))})}},t.prototype.openModalReg=function(){var t=new jv;t.disableClose=!1,t.autoFocus=!0,t.position={top:"",bottom:"",left:"",right:""},this.modalService.openDialog(tw,t)},t.prototype.openModalPwdReset=function(t){var e=new jv;e.disableClose=!1,e.autoFocus=!0,e.position={top:"",bottom:"",left:"",right:""},e.data={t:t},this.modalService.openDialog(ew,e)},t.prototype.bindFormToUser=function(){var t=this.loginForm.get("username").value,e=this.loginForm.get("password").value,n=new tb;return n.username=t,n.password=e,n},t}(),rw=Qi({encapsulation:0,styles:[["button[_ngcontent-%COMP%]{width:150px}.form-container[_ngcontent-%COMP%]{text-align:center;margin-top:10px;display:flex;width:100%;height:100%;justify-content:flex-start;flex-direction:column}.app-name[_ngcontent-%COMP%]{font-style:italic;font-size:2.5rem;letter-spacing:1px;color:#deb887}.single-char[_ngcontent-%COMP%]{color:#8b0000;font-size:3rem;font-style:italic}img[_ngcontent-%COMP%]{opacity:.3;width:150px;height:150px;display:block;margin:20px auto auto}.form-padding[_ngcontent-%COMP%]{padding:10px}.login-input[_ngcontent-%COMP%]{width:100%;text-align:center}"]],data:{}});function ow(t){return Go(0,[(t()(),Sr(0,0,null,null,0,"img",[["height","100"],["src","https://upload.wikimedia.org/wikipedia/commons/1/15/PSM_V16_D606_Carl_Ritter.jpg"],["width","100"]],null,null,null,null,null)),(t()(),Sr(1,0,null,null,62,"div",[["class","form-container"]],null,null,null,null,null)),(t()(),Sr(2,0,null,null,3,"i",[["class","app-name"]],null,null,null,null,null)),(t()(),Vo(-1,null,["erdkunde"])),(t()(),Sr(4,0,null,null,1,"i",[["class","single-char"]],null,null,null,null,null)),(t()(),Vo(-1,null,["R"])),(t()(),Sr(6,0,null,null,57,"form",[["class","form-padding"],["novalidate",""]],[[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,"submit"],[null,"reset"]],function(t,e,n){var i=!0;return"submit"===e&&(i=!1!==to(t,8).onSubmit(n)&&i),"reset"===e&&(i=!1!==to(t,8).onReset()&&i),i},null,null)),fo(7,16384,null,0,Pd,[],null,null),fo(8,540672,null,0,Ed,[[8,null],[8,null]],{form:[0,"form"]},null),mo(2048,null,kp,null,[Ed]),fo(10,16384,null,0,dd,[[4,kp]],null,null),(t()(),Sr(11,0,null,null,19,"div",[],null,null,null,null,null)),(t()(),Sr(12,0,null,null,18,"mat-form-field",[["class","mat-form-field"]],[[2,"mat-form-field-appearance-standard",null],[2,"mat-form-field-appearance-fill",null],[2,"mat-form-field-appearance-outline",null],[2,"mat-form-field-appearance-legacy",null],[2,"mat-form-field-invalid",null],[2,"mat-form-field-can-float",null],[2,"mat-form-field-should-float",null],[2,"mat-form-field-has-label",null],[2,"mat-form-field-hide-placeholder",null],[2,"mat-form-field-disabled",null],[2,"mat-form-field-autofilled",null],[2,"mat-focused",null],[2,"mat-accent",null],[2,"mat-warn",null],[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],[2,"_mat-animation-noopable",null]],null,null,__,s_)),fo(13,7520256,null,7,Rm,[Ee,ai,[2,vm],[2,Mm],[2,Om],Qd,Fn,[2,r_]],null,null),ko(335544320,1,{_control:0}),ko(335544320,2,{_placeholderChild:0}),ko(335544320,3,{_labelChild:0}),ko(603979776,4,{_errorChildren:1}),ko(603979776,5,{_hintChildren:1}),ko(603979776,6,{_prefixChildren:1}),ko(603979776,7,{_suffixChildren:1}),(t()(),Sr(21,0,null,1,9,"input",[["class","mat-input-element mat-form-field-autofill-control"],["formControlName","username"],["matInput",""],["placeholder","Username"],["required",""],["type","text"]],[[1,"required",0],[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],[2,"mat-input-server",null],[1,"id",0],[1,"placeholder",0],[8,"disabled",0],[8,"required",0],[1,"readonly",0],[1,"aria-describedby",0],[1,"aria-invalid",0],[1,"aria-required",0]],[[null,"input"],[null,"blur"],[null,"compositionstart"],[null,"compositionend"],[null,"focus"]],function(t,e,n){var i=!0;return"input"===e&&(i=!1!==to(t,22)._handleInput(n.target.value)&&i),"blur"===e&&(i=!1!==to(t,22).onTouched()&&i),"compositionstart"===e&&(i=!1!==to(t,22)._compositionStart()&&i),"compositionend"===e&&(i=!1!==to(t,22)._compositionEnd(n.target.value)&&i),"blur"===e&&(i=!1!==to(t,29)._focusChanged(!1)&&i),"focus"===e&&(i=!1!==to(t,29)._focusChanged(!0)&&i),"input"===e&&(i=!1!==to(t,29)._onInput()&&i),i},null,null)),fo(22,16384,null,0,Bp,[Oe,Ee,[2,zp]],null,null),fo(23,16384,null,0,Rd,[],{required:[0,"required"]},null),mo(1024,null,Ap,function(t){return[t]},[Rd]),mo(1024,null,jp,function(t){return[t]},[Bp]),fo(26,671744,null,0,Od,[[3,kp],[6,Ap],[8,null],[6,jp],[2,xd]],{name:[0,"name"]},null),mo(2048,null,Wp,null,[Od]),fo(28,16384,null,0,pd,[[4,Wp]],null,null),fo(29,999424,null,0,R_,[Ee,Qd,[6,Wp],[2,Cd],[2,Ed],Wf,[8,null],S_,Fn],{placeholder:[0,"placeholder"],required:[1,"required"],type:[2,"type"]},null),mo(2048,[[1,4]],Em,null,[R_]),(t()(),Sr(31,0,null,null,19,"div",[],null,null,null,null,null)),(t()(),Sr(32,0,null,null,18,"mat-form-field",[["class","mat-form-field"]],[[2,"mat-form-field-appearance-standard",null],[2,"mat-form-field-appearance-fill",null],[2,"mat-form-field-appearance-outline",null],[2,"mat-form-field-appearance-legacy",null],[2,"mat-form-field-invalid",null],[2,"mat-form-field-can-float",null],[2,"mat-form-field-should-float",null],[2,"mat-form-field-has-label",null],[2,"mat-form-field-hide-placeholder",null],[2,"mat-form-field-disabled",null],[2,"mat-form-field-autofilled",null],[2,"mat-focused",null],[2,"mat-accent",null],[2,"mat-warn",null],[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],[2,"_mat-animation-noopable",null]],null,null,__,s_)),fo(33,7520256,null,7,Rm,[Ee,ai,[2,vm],[2,Mm],[2,Om],Qd,Fn,[2,r_]],null,null),ko(335544320,8,{_control:0}),ko(335544320,9,{_placeholderChild:0}),ko(335544320,10,{_labelChild:0}),ko(603979776,11,{_errorChildren:1}),ko(603979776,12,{_hintChildren:1}),ko(603979776,13,{_prefixChildren:1}),ko(603979776,14,{_suffixChildren:1}),(t()(),Sr(41,0,null,1,9,"input",[["class","mat-input-element mat-form-field-autofill-control"],["formControlName","password"],["matInput",""],["placeholder","Password"],["required",""],["type","password"]],[[1,"required",0],[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],[2,"mat-input-server",null],[1,"id",0],[1,"placeholder",0],[8,"disabled",0],[8,"required",0],[1,"readonly",0],[1,"aria-describedby",0],[1,"aria-invalid",0],[1,"aria-required",0]],[[null,"input"],[null,"blur"],[null,"compositionstart"],[null,"compositionend"],[null,"focus"]],function(t,e,n){var i=!0;return"input"===e&&(i=!1!==to(t,42)._handleInput(n.target.value)&&i),"blur"===e&&(i=!1!==to(t,42).onTouched()&&i),"compositionstart"===e&&(i=!1!==to(t,42)._compositionStart()&&i),"compositionend"===e&&(i=!1!==to(t,42)._compositionEnd(n.target.value)&&i),"blur"===e&&(i=!1!==to(t,49)._focusChanged(!1)&&i),"focus"===e&&(i=!1!==to(t,49)._focusChanged(!0)&&i),"input"===e&&(i=!1!==to(t,49)._onInput()&&i),i},null,null)),fo(42,16384,null,0,Bp,[Oe,Ee,[2,zp]],null,null),fo(43,16384,null,0,Rd,[],{required:[0,"required"]},null),mo(1024,null,Ap,function(t){return[t]},[Rd]),mo(1024,null,jp,function(t){return[t]},[Bp]),fo(46,671744,null,0,Od,[[3,kp],[6,Ap],[8,null],[6,jp],[2,xd]],{name:[0,"name"]},null),mo(2048,null,Wp,null,[Od]),fo(48,16384,null,0,pd,[[4,Wp]],null,null),fo(49,999424,null,0,R_,[Ee,Qd,[6,Wp],[2,Cd],[2,Ed],Wf,[8,null],S_,Fn],{placeholder:[0,"placeholder"],required:[1,"required"],type:[2,"type"]},null),mo(2048,[[8,4]],Em,null,[R_]),(t()(),Sr(51,0,null,null,12,"div",[],null,null,null,null,null)),(t()(),Sr(52,0,null,null,3,"p",[],null,null,null,null,null)),(t()(),Vo(-1,null,["Non sei ancora iscritto? "])),(t()(),Sr(54,0,null,null,1,"a",[],null,[[null,"click"]],function(t,e,n){var i=!0;return"click"===e&&(i=!1!==t.component.openModalReg()&&i),i},null,null)),(t()(),Vo(-1,null,["Registrati"])),(t()(),Sr(56,0,null,null,3,"p",[],null,null,null,null,null)),(t()(),Vo(-1,null,[" Oppure se hai dimenticato la password "])),(t()(),Sr(58,0,null,null,1,"a",[],null,[[null,"click"]],function(t,e,n){var i=!0;return"click"===e&&(i=!1!==t.component.openModalPwdReset()&&i),i},null,null)),(t()(),Vo(-1,null,["clicca qui"])),(t()(),Sr(60,0,null,null,0,"br",[],null,null,null,null,null)),(t()(),Sr(61,0,null,null,2,"button",[["class"," white-text"],["color","primary"],["mat-raised-button",""]],[[8,"disabled",0],[2,"_mat-animation-noopable",null]],[[null,"click"]],function(t,e,n){var i=!0;return"click"===e&&(i=!1!==t.component.login()&&i),i},M_,F_)),fo(62,180224,null,0,L_,[Ee,Qd,Ff,[2,r_]],{color:[0,"color"]},null),(t()(),Vo(-1,0,["Login"]))],function(t,e){t(e,8,0,e.component.loginForm),t(e,23,0,""),t(e,26,0,"username"),t(e,29,0,"Username","","text"),t(e,43,0,""),t(e,46,0,"password"),t(e,49,0,"Password","","password"),t(e,62,0,"primary")},function(t,e){t(e,6,0,to(e,10).ngClassUntouched,to(e,10).ngClassTouched,to(e,10).ngClassPristine,to(e,10).ngClassDirty,to(e,10).ngClassValid,to(e,10).ngClassInvalid,to(e,10).ngClassPending),t(e,12,1,["standard"==to(e,13).appearance,"fill"==to(e,13).appearance,"outline"==to(e,13).appearance,"legacy"==to(e,13).appearance,to(e,13)._control.errorState,to(e,13)._canLabelFloat,to(e,13)._shouldLabelFloat(),to(e,13)._hasFloatingLabel(),to(e,13)._hideControlPlaceholder(),to(e,13)._control.disabled,to(e,13)._control.autofilled,to(e,13)._control.focused,"accent"==to(e,13).color,"warn"==to(e,13).color,to(e,13)._shouldForward("untouched"),to(e,13)._shouldForward("touched"),to(e,13)._shouldForward("pristine"),to(e,13)._shouldForward("dirty"),to(e,13)._shouldForward("valid"),to(e,13)._shouldForward("invalid"),to(e,13)._shouldForward("pending"),!to(e,13)._animationsEnabled]),t(e,21,1,[to(e,23).required?"":null,to(e,28).ngClassUntouched,to(e,28).ngClassTouched,to(e,28).ngClassPristine,to(e,28).ngClassDirty,to(e,28).ngClassValid,to(e,28).ngClassInvalid,to(e,28).ngClassPending,to(e,29)._isServer,to(e,29).id,to(e,29).placeholder,to(e,29).disabled,to(e,29).required,to(e,29).readonly&&!to(e,29)._isNativeSelect||null,to(e,29)._ariaDescribedby||null,to(e,29).errorState,to(e,29).required.toString()]),t(e,32,1,["standard"==to(e,33).appearance,"fill"==to(e,33).appearance,"outline"==to(e,33).appearance,"legacy"==to(e,33).appearance,to(e,33)._control.errorState,to(e,33)._canLabelFloat,to(e,33)._shouldLabelFloat(),to(e,33)._hasFloatingLabel(),to(e,33)._hideControlPlaceholder(),to(e,33)._control.disabled,to(e,33)._control.autofilled,to(e,33)._control.focused,"accent"==to(e,33).color,"warn"==to(e,33).color,to(e,33)._shouldForward("untouched"),to(e,33)._shouldForward("touched"),to(e,33)._shouldForward("pristine"),to(e,33)._shouldForward("dirty"),to(e,33)._shouldForward("valid"),to(e,33)._shouldForward("invalid"),to(e,33)._shouldForward("pending"),!to(e,33)._animationsEnabled]),t(e,41,1,[to(e,43).required?"":null,to(e,48).ngClassUntouched,to(e,48).ngClassTouched,to(e,48).ngClassPristine,to(e,48).ngClassDirty,to(e,48).ngClassValid,to(e,48).ngClassInvalid,to(e,48).ngClassPending,to(e,49)._isServer,to(e,49).id,to(e,49).placeholder,to(e,49).disabled,to(e,49).required,to(e,49).readonly&&!to(e,49)._isNativeSelect||null,to(e,49)._ariaDescribedby||null,to(e,49).errorState,to(e,49).required.toString()]),t(e,61,0,to(e,62).disabled||null,"NoopAnimations"===to(e,62)._animationMode)})}function sw(t){return Go(0,[(t()(),Sr(0,0,null,null,1,"app-login",[],null,null,null,ow,rw)),fo(1,114688,null,0,iw,[kd,vb,Jh,$b,Wc],null,null)],function(t,e){t(e,1,0)},null)}var aw=Ur("app-login",iw,sw,{},{},[]),lw=function(){function t(){this._vertical=!1,this._inset=!1}return Object.defineProperty(t.prototype,"vertical",{get:function(){return this._vertical},set:function(t){this._vertical=Hd(t)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"inset",{get:function(){return this._inset},set:function(t){this._inset=Hd(t)},enumerable:!0,configurable:!0}),t}(),uw=function(){return function(){}}(),cw=Qi({encapsulation:2,styles:[".mat-divider{display:block;margin:0;border-top-width:1px;border-top-style:solid}.mat-divider.mat-divider-vertical{border-top:0;border-right-width:1px;border-right-style:solid}.mat-divider.mat-divider-inset{margin-left:80px}[dir=rtl] .mat-divider.mat-divider-inset{margin-left:auto;margin-right:80px}"],data:{}});function hw(t){return Go(2,[],null,null)}var pw=Qi({encapsulation:0,styles:[[".pwd-reset-dialog[_ngcontent-%COMP%]{text-align:center;align-content:center;align-items:center;display:flex;flex-direction:column;justify-content:start;width:400px;height:300px}"]],data:{}});function dw(t){return Go(0,[(t()(),Sr(0,0,null,null,19,"div",[],null,null,null,null,null)),(t()(),Sr(1,0,null,null,18,"mat-form-field",[["class","mat-form-field"]],[[2,"mat-form-field-appearance-standard",null],[2,"mat-form-field-appearance-fill",null],[2,"mat-form-field-appearance-outline",null],[2,"mat-form-field-appearance-legacy",null],[2,"mat-form-field-invalid",null],[2,"mat-form-field-can-float",null],[2,"mat-form-field-should-float",null],[2,"mat-form-field-has-label",null],[2,"mat-form-field-hide-placeholder",null],[2,"mat-form-field-disabled",null],[2,"mat-form-field-autofilled",null],[2,"mat-focused",null],[2,"mat-accent",null],[2,"mat-warn",null],[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],[2,"_mat-animation-noopable",null]],null,null,__,s_)),fo(2,7520256,null,7,Rm,[Ee,ai,[2,vm],[2,Mm],[2,Om],Qd,Fn,[2,r_]],null,null),ko(335544320,1,{_control:0}),ko(335544320,2,{_placeholderChild:0}),ko(335544320,3,{_labelChild:0}),ko(603979776,4,{_errorChildren:1}),ko(603979776,5,{_hintChildren:1}),ko(603979776,6,{_prefixChildren:1}),ko(603979776,7,{_suffixChildren:1}),(t()(),Sr(10,0,null,1,9,"input",[["class","mat-input-element mat-form-field-autofill-control"],["formControlName","email"],["matInput",""],["placeholder","Email"],["required",""],["type","email"]],[[1,"required",0],[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],[2,"mat-input-server",null],[1,"id",0],[1,"placeholder",0],[8,"disabled",0],[8,"required",0],[1,"readonly",0],[1,"aria-describedby",0],[1,"aria-invalid",0],[1,"aria-required",0]],[[null,"input"],[null,"blur"],[null,"compositionstart"],[null,"compositionend"],[null,"focus"]],function(t,e,n){var i=!0;return"input"===e&&(i=!1!==to(t,11)._handleInput(n.target.value)&&i),"blur"===e&&(i=!1!==to(t,11).onTouched()&&i),"compositionstart"===e&&(i=!1!==to(t,11)._compositionStart()&&i),"compositionend"===e&&(i=!1!==to(t,11)._compositionEnd(n.target.value)&&i),"blur"===e&&(i=!1!==to(t,18)._focusChanged(!1)&&i),"focus"===e&&(i=!1!==to(t,18)._focusChanged(!0)&&i),"input"===e&&(i=!1!==to(t,18)._onInput()&&i),i},null,null)),fo(11,16384,null,0,Bp,[Oe,Ee,[2,zp]],null,null),fo(12,16384,null,0,Rd,[],{required:[0,"required"]},null),mo(1024,null,Ap,function(t){return[t]},[Rd]),mo(1024,null,jp,function(t){return[t]},[Bp]),fo(15,671744,null,0,Od,[[3,kp],[6,Ap],[8,null],[6,jp],[2,xd]],{name:[0,"name"]},null),mo(2048,null,Wp,null,[Od]),fo(17,16384,null,0,pd,[[4,Wp]],null,null),fo(18,999424,null,0,R_,[Ee,Qd,[6,Wp],[2,Cd],[2,Ed],Wf,[8,null],S_,Fn],{placeholder:[0,"placeholder"],required:[1,"required"],type:[2,"type"]},null),mo(2048,[[1,4]],Em,null,[R_])],function(t,e){t(e,12,0,""),t(e,15,0,"email"),t(e,18,0,"Email","","email")},function(t,e){t(e,1,1,["standard"==to(e,2).appearance,"fill"==to(e,2).appearance,"outline"==to(e,2).appearance,"legacy"==to(e,2).appearance,to(e,2)._control.errorState,to(e,2)._canLabelFloat,to(e,2)._shouldLabelFloat(),to(e,2)._hasFloatingLabel(),to(e,2)._hideControlPlaceholder(),to(e,2)._control.disabled,to(e,2)._control.autofilled,to(e,2)._control.focused,"accent"==to(e,2).color,"warn"==to(e,2).color,to(e,2)._shouldForward("untouched"),to(e,2)._shouldForward("touched"),to(e,2)._shouldForward("pristine"),to(e,2)._shouldForward("dirty"),to(e,2)._shouldForward("valid"),to(e,2)._shouldForward("invalid"),to(e,2)._shouldForward("pending"),!to(e,2)._animationsEnabled]),t(e,10,1,[to(e,12).required?"":null,to(e,17).ngClassUntouched,to(e,17).ngClassTouched,to(e,17).ngClassPristine,to(e,17).ngClassDirty,to(e,17).ngClassValid,to(e,17).ngClassInvalid,to(e,17).ngClassPending,to(e,18)._isServer,to(e,18).id,to(e,18).placeholder,to(e,18).disabled,to(e,18).required,to(e,18).readonly&&!to(e,18)._isNativeSelect||null,to(e,18)._ariaDescribedby||null,to(e,18).errorState,to(e,18).required.toString()])})}function fw(t){return Go(0,[(t()(),Sr(0,0,null,null,19,"div",[],null,null,null,null,null)),(t()(),Sr(1,0,null,null,18,"mat-form-field",[["class","mat-form-field"]],[[2,"mat-form-field-appearance-standard",null],[2,"mat-form-field-appearance-fill",null],[2,"mat-form-field-appearance-outline",null],[2,"mat-form-field-appearance-legacy",null],[2,"mat-form-field-invalid",null],[2,"mat-form-field-can-float",null],[2,"mat-form-field-should-float",null],[2,"mat-form-field-has-label",null],[2,"mat-form-field-hide-placeholder",null],[2,"mat-form-field-disabled",null],[2,"mat-form-field-autofilled",null],[2,"mat-focused",null],[2,"mat-accent",null],[2,"mat-warn",null],[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],[2,"_mat-animation-noopable",null]],null,null,__,s_)),fo(2,7520256,null,7,Rm,[Ee,ai,[2,vm],[2,Mm],[2,Om],Qd,Fn,[2,r_]],null,null),ko(335544320,8,{_control:0}),ko(335544320,9,{_placeholderChild:0}),ko(335544320,10,{_labelChild:0}),ko(603979776,11,{_errorChildren:1}),ko(603979776,12,{_hintChildren:1}),ko(603979776,13,{_prefixChildren:1}),ko(603979776,14,{_suffixChildren:1}),(t()(),Sr(10,0,null,1,9,"input",[["class","mat-input-element mat-form-field-autofill-control"],["formControlName","password"],["matInput",""],["placeholder","Nuova Password"],["required",""],["type","password"]],[[1,"required",0],[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],[2,"mat-input-server",null],[1,"id",0],[1,"placeholder",0],[8,"disabled",0],[8,"required",0],[1,"readonly",0],[1,"aria-describedby",0],[1,"aria-invalid",0],[1,"aria-required",0]],[[null,"input"],[null,"blur"],[null,"compositionstart"],[null,"compositionend"],[null,"focus"]],function(t,e,n){var i=!0;return"input"===e&&(i=!1!==to(t,11)._handleInput(n.target.value)&&i),"blur"===e&&(i=!1!==to(t,11).onTouched()&&i),"compositionstart"===e&&(i=!1!==to(t,11)._compositionStart()&&i),"compositionend"===e&&(i=!1!==to(t,11)._compositionEnd(n.target.value)&&i),"blur"===e&&(i=!1!==to(t,18)._focusChanged(!1)&&i),"focus"===e&&(i=!1!==to(t,18)._focusChanged(!0)&&i),"input"===e&&(i=!1!==to(t,18)._onInput()&&i),i},null,null)),fo(11,16384,null,0,Bp,[Oe,Ee,[2,zp]],null,null),fo(12,16384,null,0,Rd,[],{required:[0,"required"]},null),mo(1024,null,Ap,function(t){return[t]},[Rd]),mo(1024,null,jp,function(t){return[t]},[Bp]),fo(15,671744,null,0,Od,[[3,kp],[6,Ap],[8,null],[6,jp],[2,xd]],{name:[0,"name"]},null),mo(2048,null,Wp,null,[Od]),fo(17,16384,null,0,pd,[[4,Wp]],null,null),fo(18,999424,null,0,R_,[Ee,Qd,[6,Wp],[2,Cd],[2,Ed],Wf,[8,null],S_,Fn],{placeholder:[0,"placeholder"],required:[1,"required"],type:[2,"type"]},null),mo(2048,[[8,4]],Em,null,[R_]),(t()(),Sr(20,0,null,null,19,"div",[],null,null,null,null,null)),(t()(),Sr(21,0,null,null,18,"mat-form-field",[["class","mat-form-field"]],[[2,"mat-form-field-appearance-standard",null],[2,"mat-form-field-appearance-fill",null],[2,"mat-form-field-appearance-outline",null],[2,"mat-form-field-appearance-legacy",null],[2,"mat-form-field-invalid",null],[2,"mat-form-field-can-float",null],[2,"mat-form-field-should-float",null],[2,"mat-form-field-has-label",null],[2,"mat-form-field-hide-placeholder",null],[2,"mat-form-field-disabled",null],[2,"mat-form-field-autofilled",null],[2,"mat-focused",null],[2,"mat-accent",null],[2,"mat-warn",null],[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],[2,"_mat-animation-noopable",null]],null,null,__,s_)),fo(22,7520256,null,7,Rm,[Ee,ai,[2,vm],[2,Mm],[2,Om],Qd,Fn,[2,r_]],null,null),ko(335544320,15,{_control:0}),ko(335544320,16,{_placeholderChild:0}),ko(335544320,17,{_labelChild:0}),ko(603979776,18,{_errorChildren:1}),ko(603979776,19,{_hintChildren:1}),ko(603979776,20,{_prefixChildren:1}),ko(603979776,21,{_suffixChildren:1}),(t()(),Sr(30,0,null,1,9,"input",[["class","mat-input-element mat-form-field-autofill-control"],["formControlName","ripetiPassword"],["matInput",""],["placeholder","Ripeti Password"],["required",""],["type","password"]],[[1,"required",0],[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],[2,"mat-input-server",null],[1,"id",0],[1,"placeholder",0],[8,"disabled",0],[8,"required",0],[1,"readonly",0],[1,"aria-describedby",0],[1,"aria-invalid",0],[1,"aria-required",0]],[[null,"input"],[null,"blur"],[null,"compositionstart"],[null,"compositionend"],[null,"focus"]],function(t,e,n){var i=!0;return"input"===e&&(i=!1!==to(t,31)._handleInput(n.target.value)&&i),"blur"===e&&(i=!1!==to(t,31).onTouched()&&i),"compositionstart"===e&&(i=!1!==to(t,31)._compositionStart()&&i),"compositionend"===e&&(i=!1!==to(t,31)._compositionEnd(n.target.value)&&i),"blur"===e&&(i=!1!==to(t,38)._focusChanged(!1)&&i),"focus"===e&&(i=!1!==to(t,38)._focusChanged(!0)&&i),"input"===e&&(i=!1!==to(t,38)._onInput()&&i),i},null,null)),fo(31,16384,null,0,Bp,[Oe,Ee,[2,zp]],null,null),fo(32,16384,null,0,Rd,[],{required:[0,"required"]},null),mo(1024,null,Ap,function(t){return[t]},[Rd]),mo(1024,null,jp,function(t){return[t]},[Bp]),fo(35,671744,null,0,Od,[[3,kp],[6,Ap],[8,null],[6,jp],[2,xd]],{name:[0,"name"]},null),mo(2048,null,Wp,null,[Od]),fo(37,16384,null,0,pd,[[4,Wp]],null,null),fo(38,999424,null,0,R_,[Ee,Qd,[6,Wp],[2,Cd],[2,Ed],Wf,[8,null],S_,Fn],{placeholder:[0,"placeholder"],required:[1,"required"],type:[2,"type"]},null),mo(2048,[[15,4]],Em,null,[R_])],function(t,e){t(e,12,0,""),t(e,15,0,"password"),t(e,18,0,"Nuova Password","","password"),t(e,32,0,""),t(e,35,0,"ripetiPassword"),t(e,38,0,"Ripeti Password","","password")},function(t,e){t(e,1,1,["standard"==to(e,2).appearance,"fill"==to(e,2).appearance,"outline"==to(e,2).appearance,"legacy"==to(e,2).appearance,to(e,2)._control.errorState,to(e,2)._canLabelFloat,to(e,2)._shouldLabelFloat(),to(e,2)._hasFloatingLabel(),to(e,2)._hideControlPlaceholder(),to(e,2)._control.disabled,to(e,2)._control.autofilled,to(e,2)._control.focused,"accent"==to(e,2).color,"warn"==to(e,2).color,to(e,2)._shouldForward("untouched"),to(e,2)._shouldForward("touched"),to(e,2)._shouldForward("pristine"),to(e,2)._shouldForward("dirty"),to(e,2)._shouldForward("valid"),to(e,2)._shouldForward("invalid"),to(e,2)._shouldForward("pending"),!to(e,2)._animationsEnabled]),t(e,10,1,[to(e,12).required?"":null,to(e,17).ngClassUntouched,to(e,17).ngClassTouched,to(e,17).ngClassPristine,to(e,17).ngClassDirty,to(e,17).ngClassValid,to(e,17).ngClassInvalid,to(e,17).ngClassPending,to(e,18)._isServer,to(e,18).id,to(e,18).placeholder,to(e,18).disabled,to(e,18).required,to(e,18).readonly&&!to(e,18)._isNativeSelect||null,to(e,18)._ariaDescribedby||null,to(e,18).errorState,to(e,18).required.toString()]),t(e,21,1,["standard"==to(e,22).appearance,"fill"==to(e,22).appearance,"outline"==to(e,22).appearance,"legacy"==to(e,22).appearance,to(e,22)._control.errorState,to(e,22)._canLabelFloat,to(e,22)._shouldLabelFloat(),to(e,22)._hasFloatingLabel(),to(e,22)._hideControlPlaceholder(),to(e,22)._control.disabled,to(e,22)._control.autofilled,to(e,22)._control.focused,"accent"==to(e,22).color,"warn"==to(e,22).color,to(e,22)._shouldForward("untouched"),to(e,22)._shouldForward("touched"),to(e,22)._shouldForward("pristine"),to(e,22)._shouldForward("dirty"),to(e,22)._shouldForward("valid"),to(e,22)._shouldForward("invalid"),to(e,22)._shouldForward("pending"),!to(e,22)._animationsEnabled]),t(e,30,1,[to(e,32).required?"":null,to(e,37).ngClassUntouched,to(e,37).ngClassTouched,to(e,37).ngClassPristine,to(e,37).ngClassDirty,to(e,37).ngClassValid,to(e,37).ngClassInvalid,to(e,37).ngClassPending,to(e,38)._isServer,to(e,38).id,to(e,38).placeholder,to(e,38).disabled,to(e,38).required,to(e,38).readonly&&!to(e,38)._isNativeSelect||null,to(e,38)._ariaDescribedby||null,to(e,38).errorState,to(e,38).required.toString()])})}function mw(t){return Go(0,[(t()(),Sr(0,0,null,null,17,"mat-dialog-content",[["class","pwd-reset-dialog mat-dialog-content"]],[[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,"submit"],[null,"reset"]],function(t,e,n){var i=!0;return"submit"===e&&(i=!1!==to(t,1).onSubmit(n)&&i),"reset"===e&&(i=!1!==to(t,1).onReset()&&i),i},null,null)),fo(1,540672,null,0,Ed,[[8,null],[8,null]],{form:[0,"form"]},null),mo(2048,null,kp,null,[Ed]),fo(3,16384,null,0,dd,[[4,kp]],null,null),fo(4,16384,null,0,Qv,[],null,null),(t()(),Sr(5,0,null,null,1,"p",[["class","template-name"]],null,null,null,null,null)),(t()(),Vo(6,null,["",""])),(t()(),Sr(7,0,null,null,1,"mat-divider",[["class","mat-divider"],["role","separator"]],[[1,"aria-orientation",0],[2,"mat-divider-vertical",null],[2,"mat-divider-horizontal",null],[2,"mat-divider-inset",null]],null,null,hw,cw)),fo(8,49152,null,0,lw,[],null,null),(t()(),Sr(9,0,null,null,0,"br",[],null,null,null,null,null)),(t()(),Er(16777216,null,null,1,null,dw)),fo(11,16384,null,0,pl,[si,Pe],{ngIf:[0,"ngIf"],ngIfElse:[1,"ngIfElse"]},null),(t()(),Er(0,[["resetPwd",2]],null,0,null,fw)),(t()(),Sr(13,0,null,null,4,"mat-dialog-actions",[["class","mat-dialog-actions"]],null,null,null,null,null)),fo(14,16384,null,0,Jv,[],null,null),(t()(),Sr(15,0,null,null,2,"button",[["class"," white-text"],["color","primary"],["mat-raised-button",""],["type","submit"]],[[8,"disabled",0],[2,"_mat-animation-noopable",null]],[[null,"click"]],function(t,e,n){var i=!0;return"click"===e&&(i=!1!==t.component.submit()&&i),i},M_,F_)),fo(16,180224,null,0,L_,[Ee,Qd,Ff,[2,r_]],{color:[0,"color"]},null),(t()(),Vo(17,0,["",""]))],function(t,e){var n=e.component;t(e,1,0,n.pwdResetForm),t(e,11,0,!0===n.inputMail,to(e,12)),t(e,16,0,"primary")},function(t,e){var n=e.component;t(e,0,0,to(e,3).ngClassUntouched,to(e,3).ngClassTouched,to(e,3).ngClassPristine,to(e,3).ngClassDirty,to(e,3).ngClassValid,to(e,3).ngClassInvalid,to(e,3).ngClassPending),t(e,6,0,n.templateName),t(e,7,0,to(e,8).vertical?"vertical":"horizontal",to(e,8).vertical,!to(e,8).vertical,to(e,8).inset),t(e,15,0,to(e,16).disabled||null,"NoopAnimations"===to(e,16)._animationMode),t(e,17,0,n.buttonName)})}function gw(t){return Go(0,[(t()(),Sr(0,0,null,null,1,"app-password-reset",[],null,null,null,mw,pw)),fo(1,114688,null,0,ew,[Wc,$b,kd,vb,Gv,Uv],null,null)],function(t,e){t(e,1,0)},null)}var yw=Ur("app-password-reset",ew,gw,{},{},[]);function _w(){return function(){throw new Error("Unimplemented abstract method.")}()}var vw=0;function bw(t){return t.ol_uid||(t.ol_uid=String(++vw))}var ww="5.3.2",Cw=function(t){function e(e){var n="Assertion failed. See https://openlayers.org/en/"+("latest"===ww?ww:"v"+ww.split("-")[0])+"/doc/errors/#"+e+" for details.";t.call(this,n),this.code=e,this.name="AssertionError",this.message=n}return t&&(e.__proto__=t),(e.prototype=Object.create(t&&t.prototype)).constructor=e,e}(Error),xw={ADD:"add",REMOVE:"remove"},Ew="function"==typeof Object.assign?Object.assign:function(t,e){var n=arguments;if(null==t)throw new TypeError("Cannot convert undefined or null to object");for(var i=Object(t),r=1,o=arguments.length;r0},e.prototype.removeEventListener=function(t,e){var n=this.listeners_[t];if(n){var i=n.indexOf(e);t in this.pendingRemovals_?(n[i]=zw,++this.pendingRemovals_[t]):(n.splice(i,1),0===n.length&&delete this.listeners_[t])}},e}(Nw),qw={CHANGE:"change",CLEAR:"clear",CONTEXTMENU:"contextmenu",CLICK:"click",DBLCLICK:"dblclick",DRAGENTER:"dragenter",DRAGOVER:"dragover",DROP:"drop",ERROR:"error",KEYDOWN:"keydown",KEYPRESS:"keypress",LOAD:"load",MOUSEDOWN:"mousedown",MOUSEMOVE:"mousemove",MOUSEOUT:"mouseout",MOUSEUP:"mouseup",MOUSEWHEEL:"mousewheel",MSPOINTERDOWN:"MSPointerDown",RESIZE:"resize",TOUCHSTART:"touchstart",TOUCHMOVE:"touchmove",TOUCHEND:"touchend",WHEEL:"wheel"},Ww=function(t){function e(){t.call(this),this.revision_=0}return t&&(e.__proto__=t),(e.prototype=Object.create(t&&t.prototype)).constructor=e,e.prototype.changed=function(){++this.revision_,this.dispatchEvent(qw.CHANGE)},e.prototype.getRevision=function(){return this.revision_},e.prototype.on=function(t,e){if(Array.isArray(t)){for(var n=t.length,i=new Array(n),r=0;r0;)this.pop()},e.prototype.extend=function(t){for(var e=0,n=t.length;ee?1:t0){for(i=1;i=e.length){for(var r=[],o=0;o-1&&t.splice(n,1)},this.dedupTimeout_)}},e}(mC),nx=[["bubbles",!1],["cancelable",!1],["view",null],["detail",null],["screenX",0],["screenY",0],["clientX",0],["clientY",0],["ctrlKey",!1],["altKey",!1],["shiftKey",!1],["metaKey",!1],["button",0],["relatedTarget",null],["buttons",0],["pointerId",0],["width",0],["height",0],["pressure",0],["tiltX",0],["tiltY",0],["pointerType",""],["hwTimestamp",0],["isPrimary",!1],["type",""],["target",null],["currentTarget",null],["which",0]],ix=function(t){function e(e){t.call(this),this.element_=e,this.pointerMap={},this.eventMap_={},this.eventSourceList_=[],this.registerSources()}return t&&(e.__proto__=t),(e.prototype=Object.create(t&&t.prototype)).constructor=e,e.prototype.registerSources=function(){if(uC)this.registerSource("native",new UC(this));else if(cC)this.registerSource("ms",new DC(this));else{var t=new EC(this);this.registerSource("mouse",t),lC&&this.registerSource("touch",new ex(this,t))}this.register_()},e.prototype.registerSource=function(t,e){var n=e,i=n.getEvents();i&&(i.forEach((function(t){var e=n.getHandlerForEvent(t);e&&(this.eventMap_[t]=e.bind(n))}).bind(this)),this.eventSourceList_.push(n))},e.prototype.register_=function(){for(var t=this.eventSourceList_.length,e=0;ethis.moveTolerance_||Math.abs(t.clientY-this.down_.clientY)>this.moveTolerance_},e.prototype.disposeInternal=function(){this.relayedListenerKey_&&(Fw(this.relayedListenerKey_),this.relayedListenerKey_=null),this.pointerdownListenerKey_&&(Fw(this.pointerdownListenerKey_),this.pointerdownListenerKey_=null),this.dragListenerKeys_.forEach(Fw),this.dragListenerKeys_.length=0,this.documentPointerEventHandler_&&(this.documentPointerEventHandler_.dispose(),this.documentPointerEventHandler_=null),this.pointerEventHandler_&&(this.pointerEventHandler_.dispose(),this.pointerEventHandler_=null),t.prototype.disposeInternal.call(this)},e}(Hw),ox={LAYERGROUP:"layergroup",SIZE:"size",TARGET:"target",VIEW:"view"},sx={IDLE:0,LOADING:1,LOADED:2,ERROR:3,EMPTY:4,ABORT:5};function ax(t,e){if(!t)throw new Cw(e)}var lx=function(t,e){this.priorityFunction_=t,this.keyFunction_=e,this.elements_=[],this.priorities_=[],this.queuedElements_={}};lx.prototype.clear=function(){this.elements_.length=0,this.priorities_.length=0,Sw(this.queuedElements_)},lx.prototype.dequeue=function(){var t=this.elements_,e=this.priorities_,n=t[0];1==t.length?(t.length=0,e.length=0):(t[0]=t.pop(),e[0]=e.pop(),this.siftUp_(0));var i=this.keyFunction_(n);return delete this.queuedElements_[i],n},lx.prototype.enqueue=function(t){ax(!(this.keyFunction_(t)in this.queuedElements_),31);var e=this.priorityFunction_(t);return e!=1/0&&(this.elements_.push(t),this.priorities_.push(e),this.queuedElements_[this.keyFunction_(t)]=!0,this.siftDown_(0,this.elements_.length-1),!0)},lx.prototype.getCount=function(){return this.elements_.length},lx.prototype.getLeftChildIndex_=function(t){return 2*t+1},lx.prototype.getRightChildIndex_=function(t){return 2*t+2},lx.prototype.getParentIndex_=function(t){return t-1>>1},lx.prototype.heapify_=function(){var t;for(t=(this.elements_.length>>1)-1;t>=0;t--)this.siftUp_(t)},lx.prototype.isEmpty=function(){return 0===this.elements_.length},lx.prototype.isKeyQueued=function(t){return t in this.queuedElements_},lx.prototype.isQueued=function(t){return this.isKeyQueued(this.keyFunction_(t))},lx.prototype.siftUp_=function(t){for(var e=this.elements_,n=this.priorities_,i=e.length,r=e[t],o=n[t],s=t;t>1;){var a=this.getLeftChildIndex_(t),l=this.getRightChildIndex_(t),u=lt;){var s=this.getParentIndex_(e);if(!(i[s]>o))break;n[e]=n[s],i[e]=i[s],e=s}n[e]=r,i[e]=o},lx.prototype.reprioritize=function(){var t,e,n,i=this.priorityFunction_,r=this.elements_,o=this.priorities_,s=0,a=r.length;for(e=0;e0;)r=(i=this.dequeue()[0]).getKey(),(n=i.getState())===sx.ABORT?s=!0:n!==sx.IDLE||r in this.tilesLoadingKeys_||(this.tilesLoadingKeys_[r]=!0,++this.tilesLoading_,++o,i.load());0===o&&s&&this.tileChangeCallback_()},e}(lx),cx=42,hx=256;function px(t,e,n){return Math.min(Math.max(t,e),n)}var dx=function(){return"cosh"in Math?Math.cosh:function(t){var e=Math.exp(t);return(e+1/e)/2}}();function fx(t,e,n,i,r,o){var s=r-n,a=o-i;if(0!==s||0!==a){var l=((t-n)*s+(e-i)*a)/(s*s+a*a);l>1?(n=r,i=o):l>0&&(n+=s*l,i+=a*l)}return mx(t,e,n,i)}function mx(t,e,n,i){var r=n-t,o=i-e;return r*r+o*o}function gx(t){return t*Math.PI/180}function yx(t,e){var n=t%e;return n*e<0?n+e:n}function _x(t,e,n){return t+n*(e-t)}function vx(t){return t}function bx(t,e){return void 0!==t?0:void 0}function wx(t,e){return void 0!==t?t+e:void 0}function Cx(t,e){return t[0]+=e[0],t[1]+=e[1],t}function xx(t,e){var n=Math.cos(e),i=Math.sin(e),r=t[1]*n+t[0]*i;return t[0]=t[0]*n-t[1]*i,t[1]=r,t}function Ex(t,e){return t[0]*=e,t[1]*=e,t}function Sx(t){return Math.pow(t,3)}function Tx(t){return 1-Sx(1-t)}function Ix(t){return 3*t*t-2*t*t*t}function Ox(t){return t}var Rx={BOTTOM_LEFT:"bottom-left",BOTTOM_RIGHT:"bottom-right",TOP_LEFT:"top-left",TOP_RIGHT:"top-right"},kx={UNKNOWN:0,INTERSECTING:1,ABOVE:2,RIGHT:4,BELOW:8,LEFT:16};function Px(t){for(var e=[1/0,1/0,-1/0,-1/0],n=0,i=t.length;nt[2]&&(r|=kx.RIGHT),it[3]&&(r|=kx.ABOVE),r===kx.UNKNOWN&&(r=kx.INTERSECTING),r}function Vx(){return[1/0,1/0,-1/0,-1/0]}function zx(t,e,n,i,r){return r?(r[0]=t,r[1]=e,r[2]=n,r[3]=i,r):[t,e,n,i]}function Bx(t){return zx(1/0,1/0,-1/0,-1/0,t)}function Gx(t,e,n,i,r){return Wx(Bx(r),t,e,n,i)}function Ux(t,e){return t[0]==e[0]&&t[2]==e[2]&&t[1]==e[1]&&t[3]==e[3]}function Hx(t,e){return e[0]t[2]&&(t[2]=e[2]),e[1]t[3]&&(t[3]=e[3]),t}function qx(t,e){e[0]t[2]&&(t[2]=e[0]),e[1]t[3]&&(t[3]=e[1])}function Wx(t,e,n,i,r){for(;ne[0]?t[0]:e[0],i[1]=t[1]>e[1]?t[1]:e[1],i[2]=t[2]=e[0]&&t[1]<=e[3]&&t[3]>=e[1]}function sE(t){return t[2]1?n:2,o=e;void 0===o&&(o=r>2?t.slice():new Array(i));for(var s=wE,a=0;as?l=s:l<-s&&(l=-s),o[a+1]=l}return o},_E=function(t,e,n){var i=t.length,r=n>1?n:2,o=e;void 0===o&&(o=r>2?t.slice():new Array(i));for(var s=0;s1)a=n;else{if(p>0){for(var d=0;dr&&(r=u),o=a,s=l}return r}function uS(t,e,n,i,r){for(var o=0,s=n.length;o0;){for(var h=u.pop(),p=u.pop(),d=0,f=t[p],m=t[p+1],g=t[h],y=t[h+1],_=p+i;_d&&(c=_,d=v)}d>r&&(l[(c-e)/i]=1,p+i0&&m>d)&&(f<0&&g0&&g>f)?(a=h,l=p):(o[s++]=a,o[s++]=l,u=a,c=l,a=h,l=p)}}return o[s++]=a,o[s++]=l,s}function bS(t,e,n,i,r,o,s,a){for(var l=0,u=n.length;lo&&(u-a)*(o-l)-(r-a)*(c-l)>0&&s++:c<=o&&(u-a)*(o-l)-(r-a)*(c-l)<0&&s--,a=u,l=c}return 0!==s}function SS(t,e,n,i,r,o){if(0===n.length)return!1;if(!ES(t,e,n[0],i,r,o))return!1;for(var s=1,a=n.length;sb&&SS(t,e,n,i,u=(c+h)/2,f)&&(v=u,b=w),c=h}return isNaN(v)&&(v=r[o]),s?(s.push(v,f,b),s):[v,f,b]}function IS(t,e,n,i,r,o){for(var s,a=[t[e],t[e+1]],l=[];e+i=r[0]&&o[2]<=r[2]||o[1]>=r[1]&&o[3]<=r[3]||IS(t,e,n,i,function(t,e){return function(t,e,n){var i=!1,r=jx(t,e),o=jx(t,n);if(r===kx.INTERSECTING||o===kx.INTERSECTING)i=!0;else{var s,a,l=t[0],u=t[1],c=t[2],h=t[3],p=n[0],d=n[1],f=(d-e[1])/(p-e[0]);o&kx.ABOVE&&!(r&kx.ABOVE)&&(i=(s=p-(d-h)/f)>=l&&s<=c),i||!(o&kx.RIGHT)||r&kx.RIGHT||(i=(a=d-(p-c)*f)>=u&&a<=h),i||!(o&kx.BELOW)||r&kx.BELOW||(i=(s=p-(d-u)/f)>=l&&s<=c),i||!(o&kx.LEFT)||r&kx.LEFT||(i=(a=d-(p-l)*f)>=u&&a<=h)}return i}(r,t,e)}))}function RS(t,e,n,i,r){if(!function(t,e,n,i,r){return!!(OS(t,e,n,i,r)||ES(t,e,n,i,r[0],r[1])||ES(t,e,n,i,r[0],r[3])||ES(t,e,n,i,r[2],r[1])||ES(t,e,n,i,r[2],r[3]))}(t,e,n[0],i,r))return!1;if(1===n.length)return!0;for(var o=1,s=n.length;o0}function AS(t,e,n,i,r){for(var o=void 0!==r&&r,s=0,a=n.length;s=0;--i)if(t[i]!=e[i]){n=!1;break}return n}(t.sourceCenter,t.targetCenter))&&t.sourceResolution===t.targetResolution&&t.sourceRotation===t.targetRotation}var zS=function(t){function e(e){t.call(this);var n=Ew({},e);this.hints_=[0,0],this.animations_=[],this.updateAnimations_=this.updateAnimations_.bind(this),this.projection_=VE(n.projection,"EPSG:3857"),this.applyOptions_(n)}return t&&(e.__proto__=t),(e.prototype=Object.create(t&&t.prototype)).constructor=e,e.prototype.applyOptions_=function(t){var e={};e.center=void 0!==t.center?t.center:null;var n=function(t){var e,n,i,r=void 0!==t.minZoom?t.minZoom:0,o=void 0!==t.maxZoom?t.maxZoom:28,s=void 0!==t.zoomFactor?t.zoomFactor:2;if(void 0!==t.resolutions){var a=t.resolutions;n=a[r],i=void 0!==a[o]?a[o]:a[a.length-1],e=function(t){return function(e,n,i){if(void 0!==e){var r=YC(t,e,i);r=px(r+n,0,t.length-1);var o=Math.floor(r);return r!=o&&o1&&"function"==typeof arguments[i-1]&&(e=arguments[i-1],--i),!this.isDef()){var r=arguments[i-1];return r.center&&this.setCenter(r.center),void 0!==r.zoom&&this.setZoom(r.zoom),void 0!==r.rotation&&this.setRotation(r.rotation),void(e&&jS(e,!0))}for(var o=Date.now(),s=this.getCenter().slice(),a=this.getResolution(),l=this.getRotation(),u=[],c=0;c0},e.prototype.getInteracting=function(){return this.hints_[1]>0},e.prototype.cancelAnimations=function(){this.setHint(0,-this.hints_[0]);for(var t=0,e=this.animations_.length;t=0;--n){for(var i=this.animations_[n],r=!0,o=0,s=i.length;o0?(t-a.start)/a.duration:1;l>=1?(a.complete=!0,l=1):r=!1;var u=a.easing(l);if(a.sourceCenter){var c=a.sourceCenter[0],h=a.sourceCenter[1];this.set("center",[c+u*(a.targetCenter[0]-c),h+u*(a.targetCenter[1]-h)])}if(a.sourceResolution&&a.targetResolution){var p=1===u?a.targetResolution:a.sourceResolution+u*(a.targetResolution-a.sourceResolution);a.anchor&&this.set("center",this.calculateCenterZoom(p,a.anchor)),this.set("resolution",p)}if(void 0!==a.sourceRotation&&void 0!==a.targetRotation){var d=1===u?yx(a.targetRotation+Math.PI,2*Math.PI)-Math.PI:a.sourceRotation+u*(a.targetRotation-a.sourceRotation);a.anchor&&this.set("center",this.calculateCenterRotate(d,a.anchor)),this.set("rotation",d)}if(e=!0,!a.complete)break}}if(r){this.animations_[n]=null,this.setHint(0,-1);var f=i[0].callback;f&&jS(f,!0)}}this.animations_=this.animations_.filter(Boolean),e&&void 0===this.updateAnimationKey_&&(this.updateAnimationKey_=requestAnimationFrame(this.updateAnimations_))}},e.prototype.calculateCenterRotate=function(t,e){var n,i=this.getCenter();return void 0!==i&&(xx(n=[i[0]-e[0],i[1]-e[1]],t-this.getRotation()),Cx(n,e)),n},e.prototype.calculateCenterZoom=function(t,e){var n,i=this.getCenter(),r=this.getResolution();return void 0!==i&&void 0!==r&&(n=[e[0]-t*(e[0]-i[0])/r,e[1]-t*(e[1]-i[1])/r]),n},e.prototype.getSizeFromViewport_=function(){var t=[100,100],e='.ol-viewport[data-view="'+bw(this)+'"]',n=document.querySelector(e);if(n){var i=getComputedStyle(n);t[0]=parseInt(i.width,10),t[1]=parseInt(i.height,10)}return t},e.prototype.constrainCenter=function(t){return this.constraints_.center(t)},e.prototype.constrainResolution=function(t,e,n){return this.constraints_.resolution(t,e||0,n||0)},e.prototype.constrainRotation=function(t,e){return this.constraints_.rotation(t,e||0)},e.prototype.getCenter=function(){return this.get("center")},e.prototype.getConstraints=function(){return this.constraints_},e.prototype.getHints=function(t){return void 0!==t?(t[0]=this.hints_[0],t[1]=this.hints_[1],t):this.hints_.slice()},e.prototype.calculateExtent=function(t){var e=t||this.getSizeFromViewport_(),n=this.getCenter();ax(n,1);var i=this.getResolution();ax(void 0!==i,2);var r=this.getRotation();return ax(void 0!==r,3),$x(n,i,r,e)},e.prototype.getMaxResolution=function(){return this.maxResolution_},e.prototype.getMinResolution=function(){return this.minResolution_},e.prototype.getMaxZoom=function(){return this.getZoomForResolution(this.minResolution_)},e.prototype.setMaxZoom=function(t){this.applyOptions_(this.getUpdatedOptions_({maxZoom:t}))},e.prototype.getMinZoom=function(){return this.getZoomForResolution(this.maxResolution_)},e.prototype.setMinZoom=function(t){this.applyOptions_(this.getUpdatedOptions_({minZoom:t}))},e.prototype.getProjection=function(){return this.projection_},e.prototype.getResolution=function(){return this.get("resolution")},e.prototype.getResolutions=function(){return this.resolutions_},e.prototype.getResolutionForExtent=function(t,e){var n=e||this.getSizeFromViewport_(),i=rE(t)/n[0],r=tE(t)/n[1];return Math.max(i,r)},e.prototype.getResolutionForValueFunction=function(t){var e=t||2,n=this.maxResolution_,i=Math.log(n/this.minResolution_)/Math.log(e);return function(t){return n/Math.pow(e,t*i)}},e.prototype.getRotation=function(){return this.get("rotation")},e.prototype.getValueForResolutionFunction=function(t){var e=t||2,n=this.maxResolution_,i=Math.log(n/this.minResolution_)/Math.log(e);return function(t){return Math.log(n/t)/Math.log(e)/i}},e.prototype.getState=function(t){var e=this.getCenter(),n=this.getProjection(),i=this.getResolution(),r=i/t,o=this.getRotation();return{center:[Math.round(e[0]/r)*r,Math.round(e[1]/r)*r],projection:void 0!==n?n:null,resolution:i,rotation:o,zoom:this.getZoom()}},e.prototype.getZoom=function(){var t,e=this.getResolution();return void 0!==e&&(t=this.getZoomForResolution(e)),t},e.prototype.getZoomForResolution=function(t){var e,n,i=this.minZoom_||0;if(this.resolutions_){var r=YC(this.resolutions_,t,1);i=r,e=this.resolutions_[r],n=r==this.resolutions_.length-1?2:e/this.resolutions_[r+1]}else e=this.maxResolution_,n=this.zoomFactor_;return i+Math.log(e/t)/Math.log(n)},e.prototype.getResolutionForZoom=function(t){return this.constrainResolution(this.maxResolution_,t-this.minZoom_,0)},e.prototype.fit=function(t,e){var n,i=e||{},r=i.size;r||(r=this.getSizeFromViewport_()),ax(Array.isArray(t)||"function"==typeof t.getSimplifiedGeometry,24),Array.isArray(t)?(ax(!sE(t),25),n=NS(t)):t.getType()===aE.CIRCLE?(n=NS(t=t.getExtent())).rotate(this.getRotation(),Qx(t)):n=t;var o,s=void 0!==i.padding?i.padding:[0,0,0,0],a=void 0===i.constrainResolution||i.constrainResolution,l=void 0!==i.nearest&&i.nearest;o=void 0!==i.minResolution?i.minResolution:void 0!==i.maxZoom?this.constrainResolution(this.maxResolution_,i.maxZoom-this.minZoom_,0):0;for(var u=n.getFlatCoordinates(),c=this.getRotation(),h=Math.cos(-c),p=Math.sin(-c),d=1/0,f=1/0,m=-1/0,g=-1/0,y=n.getStride(),_=0,v=u.length;_=0;n--){var i=e[n];if(i.getActive()&&!i.handleEvent(t))break}}},e.prototype.handlePostRender=function(){var t=this.frameState_,e=this.tileQueue_;if(!e.isEmpty()){var n=this.maxTilesLoading_,i=n;if(t){var r=t.viewHints;r[0]&&(n=this.loadTilesWhileAnimating_?8:0,i=2),r[1]&&(n=this.loadTilesWhileInteracting_?8:0,i=2)}e.getTilesLoading()0&&t[1]>0}(n)&&i&&i.isDef()){for(var a=i.getHints(this.frameState_?this.frameState_.viewHints:void 0),l=this.getLayerGroup().getLayerStatesArray(),u={},c=0,h=l.length;c=t.minResolution&&e0;if(this.renderedVisible_!=n&&(this.element.style.display=n?"":"none",this.renderedVisible_=n),!ZC(e,this.renderedAttributions_)){!function(t){for(;t.lastChild;)t.removeChild(t.lastChild)}(this.ulElement_);for(var i=0,r=e.length;i0?t.animate({rotation:0,duration:this.duration_,easing:Tx}):t.setRotation(0))},e}(QS),uT=function(t){function e(e){var n=e||{};t.call(this,{element:document.createElement("div"),target:n.target});var i=void 0!==n.className?n.className:"ol-zoom",r=void 0!==n.delta?n.delta:1,o=void 0!==n.zoomInLabel?n.zoomInLabel:"+",s=void 0!==n.zoomOutLabel?n.zoomOutLabel:"\u2212",a=void 0!==n.zoomInTipLabel?n.zoomInTipLabel:"Zoom in",l=void 0!==n.zoomOutTipLabel?n.zoomOutTipLabel:"Zoom out",u=document.createElement("button");u.className=i+"-in",u.setAttribute("type","button"),u.title=a,u.appendChild("string"==typeof o?document.createTextNode(o):o),Aw(u,qw.CLICK,this.handleClick_.bind(this,r));var c=document.createElement("button");c.className=i+"-out",c.setAttribute("type","button"),c.title=l,c.appendChild("string"==typeof s?document.createTextNode(s):s),Aw(c,qw.CLICK,this.handleClick_.bind(this,-r));var h=this.element;h.className=i+" "+$S+" "+tT,h.appendChild(u),h.appendChild(c),this.duration_=void 0!==n.duration?n.duration:250}return t&&(e.__proto__=t),(e.prototype=Object.create(t&&t.prototype)).constructor=e,e.prototype.handleClick_=function(t,e){e.preventDefault(),this.zoomByDelta_(t)},e.prototype.zoomByDelta_=function(t){var e=this.getMap().getView();if(e){var n=e.getResolution();if(n){var i=e.constrainResolution(n,t);this.duration_>0?(e.getAnimating()&&e.cancelAnimations(),e.animate({resolution:i,duration:this.duration_,easing:Tx})):e.setResolution(i)}}},e}(QS),cT=function(t,e,n){this.decay_=t,this.minVelocity_=e,this.delay_=n,this.points_=[],this.angle_=0,this.initialVelocity_=0};cT.prototype.begin=function(){this.points_.length=0,this.angle_=0,this.initialVelocity_=0},cT.prototype.update=function(t,e){this.points_.push(t,e,Date.now())},cT.prototype.end=function(){if(this.points_.length<6)return!1;var t=Date.now()-this.delay_,e=this.points_.length-3;if(this.points_[e+2]0&&this.points_[n+2]>t;)n-=3;var i=this.points_[e+2]-this.points_[n+2];if(i<1e3/60)return!1;var r=this.points_[e]-this.points_[n],o=this.points_[e+1]-this.points_[n+1];return this.angle_=Math.atan2(o,r),this.initialVelocity_=Math.sqrt(r*r+o*o)/i,this.initialVelocity_>this.minVelocity_},cT.prototype.getDistance=function(){return(this.minVelocity_-this.initialVelocity_)/this.decay_},cT.prototype.getAngle=function(){return this.angle_};var hT=cT;function pT(t,e,n,i){e=t.constrainRotation(e,0),dT(t,e,n,i)}function dT(t,e,n,i){if(void 0!==e){var r=t.getRotation(),o=t.getCenter();void 0!==r&&o&&i>0?t.animate({rotation:e,anchor:n,duration:i,easing:Tx}):t.rotate(e,n)}}function fT(t,e,n,i){var r=t.getResolution(),o=t.constrainResolution(r,e,0);if(void 0!==o){var s=t.getResolutions();o=px(o,t.getMinResolution()||s[s.length-1],t.getMaxResolution()||s[0])}if(n&&void 0!==o&&o!==r){var a=t.getCenter(),l=t.calculateCenterZoom(o,n);l=t.constrainCenter(l),n=[(o*a[0]-r*l[0])/(o-r),(o*a[1]-r*l[1])/(o-r)]}mT(t,o,n,i)}function mT(t,e,n,i){if(e){var r=t.getResolution(),o=t.getCenter();if(void 0!==r&&o&&e!==r&&i)t.animate({resolution:e,anchor:n,duration:i,easing:Tx});else{if(n){var s=t.calculateCenterZoom(e,n);t.setCenter(s)}t.setResolution(e)}}}var gT=function(t){function e(e){t.call(this),e.handleEvent&&(this.handleEvent=e.handleEvent),this.map_=null,this.setActive(!0)}return t&&(e.__proto__=t),(e.prototype=Object.create(t&&t.prototype)).constructor=e,e.prototype.getActive=function(){return this.get("active")},e.prototype.getMap=function(){return this.map_},e.prototype.handleEvent=function(t){return!0},e.prototype.setActive=function(t){this.set("active",t)},e.prototype.setMap=function(t){this.map_=t},e}(Zw);function yT(t){var e=!1;if(t.type==hC.DBLCLICK){var n=t.coordinate,i=t.originalEvent.shiftKey?-this.delta_:this.delta_;fT(t.map.getView(),i,n,this.duration_),t.preventDefault(),e=!0}return!e}var _T=function(t){function e(e){t.call(this,{handleEvent:yT});var n=e||{};this.delta_=n.delta?n.delta:1,this.duration_=void 0!==n.duration?n.duration:250}return t&&(e.__proto__=t),(e.prototype=Object.create(t&&t.prototype)).constructor=e,e}(gT),vT=function(t){var e=t.originalEvent;return e.altKey&&!(e.metaKey||e.ctrlKey)&&e.shiftKey},bT=function(t){return t.target.getTargetElement()===document.activeElement},wT=jw,CT=function(t){var e=t.originalEvent;return 0==e.button&&!(rC&&oC&&e.ctrlKey)},xT=function(t){var e=t.originalEvent;return!e.altKey&&!(e.metaKey||e.ctrlKey)&&!e.shiftKey},ET=function(t){var e=t.originalEvent;return!e.altKey&&!(e.metaKey||e.ctrlKey)&&e.shiftKey},ST=function(t){var e=t.originalEvent.target.tagName;return"INPUT"!==e&&"SELECT"!==e&&"TEXTAREA"!==e},TT=function(t){var e=t.pointerEvent;return ax(void 0!==e,56),"mouse"==e.pointerType};function IT(t){for(var e=t.length,n=0,i=0,r=0;r0}}else if(t.type==hC.POINTERDOWN){var i=this.handleDownEvent(t);i&&t.preventDefault(),this.handlingDownUpSequence=i,e=this.stopDown(i)}else t.type==hC.POINTERMOVE&&this.handleMoveEvent(t);return!e},e.prototype.handleMoveEvent=function(t){},e.prototype.handleUpEvent=function(t){return!1},e.prototype.stopDown=function(t){return t},e.prototype.updateTrackedPointers_=function(t){if(function(t){var e=t.type;return e===hC.POINTERDOWN||e===hC.POINTERDRAG||e===hC.POINTERUP}(t)){var e=t.pointerEvent,n=e.pointerId.toString();t.type==hC.POINTERUP?delete this.trackedPointers_[n]:t.type==hC.POINTERDOWN?this.trackedPointers_[n]=e:n in this.trackedPointers_&&(this.trackedPointers_[n]=e),this.targetPointers=Tw(this.trackedPointers_)}},e}(gT),RT=function(t){function e(e){t.call(this,{stopDown:Vw});var n=e||{};this.kinetic_=n.kinetic,this.lastCentroid=null,this.panning_=!1,this.condition_=n.condition?n.condition:xT,this.noKinetic_=!1}return t&&(e.__proto__=t),(e.prototype=Object.create(t&&t.prototype)).constructor=e,e.prototype.handleDragEvent=function(t){this.panning_||(this.panning_=!0,this.getMap().getView().setHint(1,1));var e=this.targetPointers,n=IT(e);if(e.length==this.lastPointersCount_){if(this.kinetic_&&this.kinetic_.update(n[0],n[1]),this.lastCentroid){var i=this.lastCentroid[0]-n[0],r=n[1]-this.lastCentroid[1],o=t.map.getView(),s=[i,r];Ex(s,o.getResolution()),xx(s,o.getRotation()),Cx(s,o.getCenter()),s=o.constrainCenter(s),o.setCenter(s)}}else this.kinetic_&&this.kinetic_.begin();this.lastCentroid=n,this.lastPointersCount_=e.length},e.prototype.handleUpEvent=function(t){var e=t.map,n=e.getView();if(0===this.targetPointers.length){if(!this.noKinetic_&&this.kinetic_&&this.kinetic_.end()){var i=this.kinetic_.getDistance(),r=this.kinetic_.getAngle(),o=n.getCenter(),s=e.getPixelFromCoordinate(o),a=e.getCoordinateFromPixel([s[0]-i*Math.cos(r),s[1]-i*Math.sin(r)]);n.animate({center:n.constrainCenter(a),duration:500,easing:Tx})}return this.panning_&&(this.panning_=!1,n.setHint(1,-1)),!1}return this.kinetic_&&this.kinetic_.begin(),this.lastCentroid=null,!0},e.prototype.handleDownEvent=function(t){if(this.targetPointers.length>0&&this.condition_(t)){var e=t.map.getView();return this.lastCentroid=null,e.getAnimating()&&e.setCenter(t.frameState.viewState.center),this.kinetic_&&this.kinetic_.begin(),this.noKinetic_=this.targetPointers.length>1,!0}return!1},e}(OT),kT=function(t){function e(e){var n=e||{};t.call(this,{stopDown:Vw}),this.condition_=n.condition?n.condition:vT,this.lastAngle_=void 0,this.duration_=void 0!==n.duration?n.duration:250}return t&&(e.__proto__=t),(e.prototype=Object.create(t&&t.prototype)).constructor=e,e.prototype.handleDragEvent=function(t){if(TT(t)){var e=t.map,n=e.getView();if(n.getConstraints().rotation!==bx){var i=e.getSize(),r=t.pixel,o=Math.atan2(i[1]/2-r[1],r[0]-i[0]/2);if(void 0!==this.lastAngle_){var s=o-this.lastAngle_,a=n.getRotation();dT(n,a-s)}this.lastAngle_=o}}},e.prototype.handleUpEvent=function(t){if(!TT(t))return!0;var e=t.map.getView();e.setHint(1,-1);var n=e.getRotation();return pT(e,n,void 0,this.duration_),!1},e.prototype.handleDownEvent=function(t){return!(!TT(t)||!CT(t)||!this.condition_(t)||(t.map.getView().setHint(1,1),this.lastAngle_=void 0,0))},e}(OT),PT=function(t){function e(e){t.call(this),this.geometry_=null,this.element_=document.createElement("div"),this.element_.style.position="absolute",this.element_.className="ol-box "+e,this.map_=null,this.startPixel_=null,this.endPixel_=null}return t&&(e.__proto__=t),(e.prototype=Object.create(t&&t.prototype)).constructor=e,e.prototype.disposeInternal=function(){this.setMap(null)},e.prototype.render_=function(){var t=this.startPixel_,e=this.endPixel_,n=this.element_.style;n.left=Math.min(t[0],e[0])+"px",n.top=Math.min(t[1],e[1])+"px",n.width=Math.abs(e[0]-t[0])+"px",n.height=Math.abs(e[1]-t[1])+"px"},e.prototype.setMap=function(t){if(this.map_){this.map_.getOverlayContainer().removeChild(this.element_);var e=this.element_.style;e.left=e.top=e.width=e.height="inherit"}this.map_=t,this.map_&&this.map_.getOverlayContainer().appendChild(this.element_)},e.prototype.setPixels=function(t,e){this.startPixel_=t,this.endPixel_=e,this.createOrUpdateGeometry(),this.render_()},e.prototype.createOrUpdateGeometry=function(){var t=this.startPixel_,e=this.endPixel_,n=[t,[t[0],e[1]],e,[e[0],t[1]]].map(this.map_.getCoordinateFromPixel,this.map_);n[4]=n[0].slice(),this.geometry_?this.geometry_.setCoordinates([n]):this.geometry_=new MS([n])},e.prototype.getGeometry=function(){return this.geometry_},e}(Nw),AT=function(t){function e(e,n,i){t.call(this,e),this.coordinate=n,this.mapBrowserEvent=i}return t&&(e.__proto__=t),(e.prototype=Object.create(t&&t.prototype)).constructor=e,e}(Uw);function LT(){var t,e=this.getMap(),n=e.getView(),i=e.getSize(),r=this.getGeometry().getExtent();if(this.out_){var o=n.calculateExtent(i),s=(t=[e.getPixelFromCoordinate(Xx(r)),e.getPixelFromCoordinate(iE(r))],function(t,e){for(var n=0,i=e.length;n=this.minArea_},e.prototype.getGeometry=function(){return this.box_.getGeometry()},e.prototype.handleDragEvent=function(t){TT(t)&&(this.box_.setPixels(this.startPixel_,t.pixel),this.dispatchEvent(new AT("boxdrag",t.coordinate,t)))},e.prototype.handleUpEvent=function(t){return!TT(t)||(this.box_.setMap(null),this.boxEndCondition_(t,this.startPixel_,t.pixel)&&(this.onBoxEnd_(t),this.dispatchEvent(new AT("boxend",t.coordinate,t))),!1)},e.prototype.handleDownEvent=function(t){return!(!TT(t)||!CT(t)||!this.condition_(t)||(this.startPixel_=t.pixel,this.box_.setMap(t.map),this.box_.setPixels(this.startPixel_,this.startPixel_),this.dispatchEvent(new AT("boxstart",t.coordinate,t)),0))},e}(OT)),FT={LEFT:37,UP:38,RIGHT:39,DOWN:40};function MT(t){var e=!1;if(t.type==qw.KEYDOWN){var n=t.originalEvent.keyCode;if(this.condition_(t)&&(n==FT.DOWN||n==FT.LEFT||n==FT.RIGHT||n==FT.UP)){var i=t.map.getView(),r=i.getResolution()*this.pixelDelta_,o=0,s=0;n==FT.DOWN?s=-r:n==FT.LEFT?o=-r:n==FT.RIGHT?o=r:s=r;var a=[o,s];xx(a,i.getRotation()),function(t,e,n){var i=t.getCenter();if(i){var r=t.constrainCenter([i[0]+e[0],i[1]+e[1]]);n?t.animate({duration:n,easing:Ox,center:r}):t.setCenter(r)}}(i,a,this.duration_),t.preventDefault(),e=!0}}return!e}var NT=function(t){function e(e){t.call(this,{handleEvent:MT});var n=e||{};this.defaultCondition_=function(t){return xT(t)&&ST(t)},this.condition_=void 0!==n.condition?n.condition:this.defaultCondition_,this.duration_=void 0!==n.duration?n.duration:100,this.pixelDelta_=void 0!==n.pixelDelta?n.pixelDelta:128}return t&&(e.__proto__=t),(e.prototype=Object.create(t&&t.prototype)).constructor=e,e}(gT);function jT(t){var e=!1;if(t.type==qw.KEYDOWN||t.type==qw.KEYPRESS){var n=t.originalEvent.charCode;if(this.condition_(t)&&(n=="+".charCodeAt(0)||n=="-".charCodeAt(0))){var i=t.map,r=n=="+".charCodeAt(0)?this.delta_:-this.delta_;fT(i.getView(),r,void 0,this.duration_),t.preventDefault(),e=!0}}return!e}var VT=function(t){function e(e){t.call(this,{handleEvent:jT});var n=e||{};this.condition_=n.condition?n.condition:ST,this.delta_=n.delta?n.delta:1,this.duration_=void 0!==n.duration?n.duration:100}return t&&(e.__proto__=t),(e.prototype=Object.create(t&&t.prototype)).constructor=e,e}(gT),zT=function(t){function e(e){var n=e||{};t.call(this,n),this.delta_=0,this.duration_=void 0!==n.duration?n.duration:250,this.timeout_=void 0!==n.timeout?n.timeout:80,this.useAnchor_=void 0===n.useAnchor||n.useAnchor,this.constrainResolution_=n.constrainResolution||!1,this.condition_=n.condition?n.condition:wT,this.lastAnchor_=null,this.startTime_=void 0,this.mode_=void 0,this.trackpadEventGap_=400,this.trackpadDeltaPerZoom_=300,this.trackpadZoomBuffer_=1.5}return t&&(e.__proto__=t),(e.prototype=Object.create(t&&t.prototype)).constructor=e,e.prototype.decrementInteractingHint_=function(){this.trackpadTimeoutId_=void 0,this.getMap().getView().setHint(1,-1)},e.prototype.handleEvent=function(t){if(!this.condition_(t))return!0;var e=t.type;if(e!==qw.WHEEL&&e!==qw.MOUSEWHEEL)return!0;t.preventDefault();var n,i=t.map,r=t.originalEvent;if(this.useAnchor_&&(this.lastAnchor_=t.coordinate),t.type==qw.WHEEL?(n=r.deltaY,nC&&r.deltaMode===WheelEvent.DOM_DELTA_PIXEL&&(n/=sC),r.deltaMode===WheelEvent.DOM_DELTA_LINE&&(n*=40)):t.type==qw.MOUSEWHEEL&&(n=-r.wheelDeltaY,iC&&(n/=3)),0===n)return!1;var o=Date.now();if(void 0===this.startTime_&&(this.startTime_=o),(!this.mode_||o-this.startTime_>this.trackpadEventGap_)&&(this.mode_=Math.abs(n)<4?"trackpad":"wheel"),"trackpad"===this.mode_){var s=i.getView();this.trackpadTimeoutId_?clearTimeout(this.trackpadTimeoutId_):s.setHint(1,1),this.trackpadTimeoutId_=setTimeout(this.decrementInteractingHint_.bind(this),this.trackpadEventGap_);var a=s.getResolution()*Math.pow(2,n/this.trackpadDeltaPerZoom_),l=s.getMinResolution(),u=s.getMaxResolution(),c=0;if(au&&(a=Math.min(a,u*this.trackpadZoomBuffer_),c=-1),this.lastAnchor_){var h=s.calculateCenterZoom(a,this.lastAnchor_);s.setCenter(s.constrainCenter(h))}return s.setResolution(a),0===c&&this.constrainResolution_&&s.animate({resolution:s.constrainResolution(a,n>0?-1:1),easing:Tx,anchor:this.lastAnchor_,duration:this.duration_}),c>0?s.animate({resolution:l,easing:Tx,anchor:this.lastAnchor_,duration:500}):c<0&&s.animate({resolution:u,easing:Tx,anchor:this.lastAnchor_,duration:500}),this.startTime_=o,!1}this.delta_+=n;var p=Math.max(this.timeout_-(o-this.startTime_),0);return clearTimeout(this.timeoutId_),this.timeoutId_=setTimeout(this.handleWheelZoom_.bind(this,i),p),!1},e.prototype.handleWheelZoom_=function(t){var e=t.getView();e.getAnimating()&&e.cancelAnimations(),fT(e,-px(this.delta_,-1,1),this.lastAnchor_,this.duration_),this.mode_=void 0,this.delta_=0,this.lastAnchor_=null,this.startTime_=void 0,this.timeoutId_=void 0},e.prototype.setMouseAnchor=function(t){this.useAnchor_=t,t||(this.lastAnchor_=null)},e}(gT),BT=function(t){function e(e){var n=e||{},i=n;i.stopDown||(i.stopDown=Vw),t.call(this,i),this.anchor_=null,this.lastAngle_=void 0,this.rotating_=!1,this.rotationDelta_=0,this.threshold_=void 0!==n.threshold?n.threshold:.3,this.duration_=void 0!==n.duration?n.duration:250}return t&&(e.__proto__=t),(e.prototype=Object.create(t&&t.prototype)).constructor=e,e.prototype.handleDragEvent=function(t){var e=0,n=this.targetPointers[0],i=this.targetPointers[1],r=Math.atan2(i.clientY-n.clientY,i.clientX-n.clientX);if(void 0!==this.lastAngle_){var o=r-this.lastAngle_;this.rotationDelta_+=o,!this.rotating_&&Math.abs(this.rotationDelta_)>this.threshold_&&(this.rotating_=!0),e=o}this.lastAngle_=r;var s=t.map,a=s.getView();if(a.getConstraints().rotation!==bx){var l=s.getViewport().getBoundingClientRect(),u=IT(this.targetPointers);if(u[0]-=l.left,u[1]-=l.top,this.anchor_=s.getCoordinateFromPixel(u),this.rotating_){var c=a.getRotation();s.render(),dT(a,c+e,this.anchor_)}}},e.prototype.handleUpEvent=function(t){if(this.targetPointers.length<2){var e=t.map.getView();if(e.setHint(1,-1),this.rotating_){var n=e.getRotation();pT(e,n,this.anchor_,this.duration_)}return!1}return!0},e.prototype.handleDownEvent=function(t){if(this.targetPointers.length>=2){var e=t.map;return this.anchor_=null,this.lastAngle_=void 0,this.rotating_=!1,this.rotationDelta_=0,this.handlingDownUpSequence||e.getView().setHint(1,1),!0}return!1},e}(OT),GT=function(t){function e(e){var n=e||{},i=n;i.stopDown||(i.stopDown=Vw),t.call(this,i),this.constrainResolution_=n.constrainResolution||!1,this.anchor_=null,this.duration_=void 0!==n.duration?n.duration:400,this.lastDistance_=void 0,this.lastScaleDelta_=1}return t&&(e.__proto__=t),(e.prototype=Object.create(t&&t.prototype)).constructor=e,e.prototype.handleDragEvent=function(t){var e=1,n=this.targetPointers[0],i=this.targetPointers[1],r=n.clientX-i.clientX,o=n.clientY-i.clientY,s=Math.sqrt(r*r+o*o);void 0!==this.lastDistance_&&(e=this.lastDistance_/s),this.lastDistance_=s;var a=t.map,l=a.getView(),u=l.getResolution(),c=l.getMaxResolution(),h=l.getMinResolution(),p=u*e;p>c?(e=c/u,p=c):pe.getMaxResolution())&&function(t,e,n,i,r){e=t.constrainResolution(e,0,r),mT(t,e,n,i)}(e,n,this.anchor_,this.duration_,this.lastScaleDelta_-1),!1}return!0},e.prototype.handleDownEvent=function(t){if(this.targetPointers.length>=2){var e=t.map;return this.anchor_=null,this.lastDistance_=void 0,this.lastScaleDelta_=1,this.handlingDownUpSequence||e.getView().setHint(1,1),!0}return!1},e}(OT);function UT(t){var e=t||{},n=new Jw,i=new hT(-.005,.05,100);return(void 0===e.altShiftDragRotate||e.altShiftDragRotate)&&n.push(new kT),(void 0===e.doubleClickZoom||e.doubleClickZoom)&&n.push(new _T({delta:e.zoomDelta,duration:e.zoomDuration})),(void 0===e.dragPan||e.dragPan)&&n.push(new RT({condition:e.onFocusOnly?bT:void 0,kinetic:i})),(void 0===e.pinchRotate||e.pinchRotate)&&n.push(new BT),(void 0===e.pinchZoom||e.pinchZoom)&&n.push(new GT({constrainResolution:e.constrainResolution,duration:e.zoomDuration})),(void 0===e.keyboard||e.keyboard)&&(n.push(new NT),n.push(new VT({delta:e.zoomDelta,duration:e.zoomDuration}))),(void 0===e.mouseWheelZoom||e.mouseWheelZoom)&&n.push(new zT({condition:e.onFocusOnly?bT:void 0,constrainResolution:e.constrainResolution,duration:e.zoomDuration})),(void 0===e.shiftDragZoom||e.shiftDragZoom)&&n.push(new DT({duration:e.zoomDuration})),n}var HT=.5,qT=function(t){function e(e,n,i,r){t.call(this),this.extent=e,this.pixelRatio_=i,this.resolution=n,this.state=r}return t&&(e.__proto__=t),(e.prototype=Object.create(t&&t.prototype)).constructor=e,e.prototype.changed=function(){this.dispatchEvent(qw.CHANGE)},e.prototype.getExtent=function(){return this.extent},e.prototype.getImage=function(){return _w()},e.prototype.getPixelRatio=function(){return this.pixelRatio_},e.prototype.getResolution=function(){return this.resolution},e.prototype.getState=function(){return this.state},e.prototype.load=function(){_w()},e}(Hw),WT={IDLE:0,LOADING:1,LOADED:2,ERROR:3},YT=function(t){function e(e,n,i,r,o){t.call(this,e,n,i,void 0!==o?WT.IDLE:WT.LOADED),this.loader_=void 0!==o?o:null,this.canvas_=r,this.error_=null}return t&&(e.__proto__=t),(e.prototype=Object.create(t&&t.prototype)).constructor=e,e.prototype.getError=function(){return this.error_},e.prototype.handleLoad_=function(t){t?(this.error_=t,this.state=WT.ERROR):this.state=WT.LOADED,this.changed()},e.prototype.load=function(){this.state==WT.IDLE&&(this.state=WT.LOADING,this.changed(),this.loader_(this.handleLoad_.bind(this)))},e.prototype.getImage=function(){return this.canvas_},e}(qT),KT={IMAGE:"IMAGE",TILE:"TILE",VECTOR_TILE:"VECTOR_TILE",VECTOR:"VECTOR"},XT={IMAGE:"image",VECTOR:"vector"},ZT=function(t){function e(e,n,i,r,o){t.call(this,e),this.vectorContext=n,this.frameState=i,this.context=r,this.glContext=o}return t&&(e.__proto__=t),(e.prototype=Object.create(t&&t.prototype)).constructor=e,e}(Uw),QT=function(t){function e(e){t.call(this),this.highWaterMark=void 0!==e?e:2048,this.count_=0,this.entries_={},this.oldest_=null,this.newest_=null}return t&&(e.__proto__=t),(e.prototype=Object.create(t&&t.prototype)).constructor=e,e.prototype.canExpireCache=function(){return this.getCount()>this.highWaterMark},e.prototype.clear=function(){this.count_=0,this.entries_={},this.oldest_=null,this.newest_=null,this.dispatchEvent(qw.CLEAR)},e.prototype.containsKey=function(t){return this.entries_.hasOwnProperty(t)},e.prototype.forEach=function(t,e){for(var n=this.oldest_;n;)t.call(e,n.value_,n.key_,this),n=n.newer},e.prototype.get=function(t){var e=this.entries_[t];return ax(void 0!==e,15),e===this.newest_?e.value_:(e===this.oldest_?(this.oldest_=this.oldest_.newer,this.oldest_.older=null):(e.newer.older=e.older,e.older.newer=e.newer),e.newer=null,e.older=this.newest_,this.newest_.newer=e,this.newest_=e,e.value_)},e.prototype.remove=function(t){var e=this.entries_[t];return ax(void 0!==e,15),e===this.newest_?(this.newest_=e.older,this.newest_&&(this.newest_.newer=null)):e===this.oldest_?(this.oldest_=e.newer,this.oldest_&&(this.oldest_.older=null)):(e.newer.older=e.older,e.older.newer=e.newer),delete this.entries_[t],--this.count_,e.value_},e.prototype.getCount=function(){return this.count_},e.prototype.getKeys=function(){var t,e=new Array(this.count_),n=0;for(t=this.newest_;t;t=t.older)e[n++]=t.key_;return e},e.prototype.getValues=function(){var t,e=new Array(this.count_),n=0;for(t=this.newest_;t;t=t.older)e[n++]=t.value_;return e},e.prototype.peekLast=function(){return this.oldest_.value_},e.prototype.peekLastKey=function(){return this.oldest_.key_},e.prototype.peekFirstKey=function(){return this.newest_.key_},e.prototype.pop=function(){var t=this.oldest_;return delete this.entries_[t.key_],t.newer&&(t.newer.older=null),this.oldest_=t.newer,this.oldest_||(this.newest_=null),--this.count_,t.value_},e.prototype.replace=function(t,e){this.get(t),this.entries_[t].value_=e},e.prototype.set=function(t,e){ax(!(t in this.entries_),16);var n={key_:t,newer:null,older:this.newest_,value_:e};this.newest_?this.newest_.newer=n:this.oldest_=n,this.newest_=n,this.entries_[t]=n,++this.count_},e.prototype.setSize=function(t){this.highWaterMark=t},e.prototype.prune=function(){for(;this.canExpireCache();)this.pop()},e}(Hw),JT=[0,0,0,1],$T=[],tI=[0,0,0,1],eI=[0,0,0,0],nI=new QT,iI={},rI=null,oI={},sI=function(){var t,e,n=60,i=iI,r="32px ",o=["monospace","serif"],s=o.length,a="wmytzilWMYTZIL@#/&?$%10\uf013";function l(t){for(var n=aI(),i=100;i<=700;i+=300){for(var l=i+" ",u=!0,c=0;cthis.maxCacheSize_){var t=0;for(var e in this.cache_)0!=(3&t++)||this.cache_[e].hasListener()||(delete this.cache_[e],--this.cacheSize_)}},vI.prototype.get=function(t,e,n){var i=bI(t,e,n);return i in this.cache_?this.cache_[i]:null},vI.prototype.set=function(t,e,n,i){var r=bI(t,e,n);this.cache_[r]=i,++this.cacheSize_},vI.prototype.setSize=function(t){this.maxCacheSize_=t,this.expire()};var wI=new vI;function CI(t,e){wI.expire()}function xI(t,e){return t.zIndex-e.zIndex}var EI=[],SI=function(t){function e(e){t.call(this,e);var n=e.getViewport();this.context_=BS(),this.canvas_=this.context_.canvas,this.canvas_.style.width="100%",this.canvas_.style.height="100%",this.canvas_.style.display="block",this.canvas_.className=$S,n.insertBefore(this.canvas_,n.childNodes[0]||null),this.renderedVisible_=!0,this.transform_=[1,0,0,1,0,0]}return t&&(e.__proto__=t),(e.prototype=Object.create(t&&t.prototype)).constructor=e,e.prototype.dispatchRenderEvent=function(t,e){var n=this.getMap(),i=this.context_;if(n.hasListener(t)){var r=e.extent,o=e.pixelRatio,s=e.viewState.rotation,a=this.getTransform(e),l=new _I(i,o,r,a,s),u=new ZT(t,l,e,i,null);n.dispatchEvent(u)}},e.prototype.getTransform=function(t){var e=t.viewState,n=t.pixelRatio/e.resolution;return tS(this.transform_,this.canvas_.width/2,this.canvas_.height/2,n,-n,-e.rotation,-e.center[0],-e.center[1])},e.prototype.renderFrame=function(t){if(t){var e=this.context_,n=t.pixelRatio,i=Math.round(t.size[0]*n),r=Math.round(t.size[1]*n);this.canvas_.width!=i||this.canvas_.height!=r?(this.canvas_.width=i,this.canvas_.height=r):e.clearRect(0,0,i,r);var o=t.viewState.rotation;this.calculateMatrices2D(t),this.dispatchRenderEvent("precompose",t);var s=t.layerStatesArray;!function(t,e){var n,i=t.length,r=Array(t.length);for(n=0;n=0;--l){var d=c[l],f=d.layer;if(iT(d,u)&&o.call(s,f)&&(a=this.getLayerRenderer(f).forEachLayerAtCoordinate(p,e,n,i,r)))return a}},e.prototype.registerLayerRenderers=function(e){t.prototype.registerLayerRenderers.call(this,e);for(var n=0,i=e.length;n=0||EI.push(r)}},e}(function(t){function e(e){t.call(this),this.map_=e,this.layerRenderers_={},this.layerRendererListeners_={},this.layerRendererConstructors_=[]}return t&&(e.__proto__=t),(e.prototype=Object.create(t&&t.prototype)).constructor=e,e.prototype.dispatchRenderEvent=function(t,e){_w()},e.prototype.registerLayerRenderers=function(t){this.layerRendererConstructors_.push.apply(this.layerRendererConstructors_,t)},e.prototype.calculateMatrices2D=function(t){var e=t.viewState,n=t.coordinateToPixelTransform,i=t.pixelToCoordinateTransform;tS(n,t.size[0]/2,t.size[1]/2,1/e.resolution,-1/e.resolution,-e.rotation,-e.center[0],-e.center[1]),function(t){var e,n=(e=t)[0]*e[3]-e[1]*e[2];ax(0!==n,32);var i=t[0],r=t[1],o=t[2],s=t[3],a=t[4],l=t[5];t[0]=s/n,t[1]=-r/n,t[2]=-o/n,t[3]=i/n,t[4]=(o*l-s*a)/n,t[5]=-(i*l-r*a)/n}(ZE(i,n))},e.prototype.removeLayerRenderers=function(){for(var t in this.layerRenderers_)this.removeLayerRendererByKey_(t).dispose()},e.prototype.forEachFeatureAtCoordinate=function(t,e,n,i,r,o,s){var a,l=e.viewState,u=l.resolution;function c(t,n){var o=e.layerStates[bw(n)].managed;if(!(bw(t)in e.skippedFeatureUids)||o)return i.call(r,t,o?n:null)}var h=l.projection,p=t;if(h.canWrapX()){var d=h.getExtent(),f=rE(d),m=t[0];(md[2])&&(p=[m+f*Math.ceil((d[0]-m)/f),t[1]])}var g,y=e.layerStatesArray;for(g=y.length-1;g>=0;--g){var _=y[g],v=_.layer;if(iT(_,u)&&o.call(s,v)){var b=this.getLayerRenderer(v),w=v.getSource();if(w&&(a=b.forEachFeatureAtCoordinate(w.getWrapX()?p:t,e,n,c)),a)return a}}},e.prototype.forEachLayerAtPixel=function(t,e,n,i,r,o,s){return _w()},e.prototype.hasFeatureAtCoordinate=function(t,e,n,i,r){return void 0!==this.forEachFeatureAtCoordinate(t,e,n,jw,this,i,r)},e.prototype.getLayerRenderer=function(t){var e=bw(t);if(e in this.layerRenderers_)return this.layerRenderers_[e];for(var n,i=0,r=this.layerRendererConstructors_.length;i=.5&&c>=.5&&n.drawImage(i,0,0,+i.width,+i.height,Math.round(s[4]),Math.round(l),Math.round(u),Math.round(c)),n.globalAlpha=a,o&&n.restore()}this.postCompose(n,t,e)},e.prototype.getImage=function(){return _w()},e.prototype.getImageTransform=function(){return _w()},e.prototype.forEachLayerAtCoordinate=function(t,e,n,i,r){if(this.getImage()){var o=QE(this.coordinateToCanvasPixelTransform,t.slice());Ex(o,e.viewState.resolution/this.renderedResolution),this.hitCanvasContext_||(this.hitCanvasContext_=BS(1,1)),this.hitCanvasContext_.clearRect(0,0,1,1),this.hitCanvasContext_.drawImage(this.getImage(),o[0],o[1],1,1,0,0,1,1);var s=this.hitCanvasContext_.getImageData(0,0,1,1).data;return s[3]>0?i.call(r,this.getLayer(),s):void 0}},e}(TI),OI=function(t){function e(n){if(t.call(this,n),this.image_=null,this.imageTransform_=[1,0,0,1,0,0],this.skippedFeatures_=[],this.vectorRenderer_=null,n.getType()===KT.VECTOR)for(var i=0,r=EI.length;ithis.maxX&&(this.maxX=t.maxX),t.minYthis.maxY&&(this.maxY=t.maxY)},kI.prototype.getHeight=function(){return this.maxY-this.minY+1},kI.prototype.getSize=function(){return[this.getWidth(),this.getHeight()]},kI.prototype.getWidth=function(){return this.maxX-this.minX+1},kI.prototype.intersects=function(t){return this.minX<=t.maxX&&this.maxX>=t.minX&&this.minY<=t.maxY&&this.maxY>=t.minY};var AI=kI,LI=function(t){function e(e,n){t.call(this,e),this.context=n?null:BS(),this.renderedExtent_=null,this.renderedTiles=[],this.newTiles_=!1,this.tmpExtent=[1/0,1/0,-1/0,-1/0],this.tmpTileRange_=new AI(0,0,0,0),this.imageTransform_=[1,0,0,1,0,0],this.zDirection=0}return t&&(e.__proto__=t),(e.prototype=Object.create(t&&t.prototype)).constructor=e,e.prototype.isDrawableTile_=function(t){var e=this.getLayer(),n=t.getState(),i=e.getUseInterimTilesOnError();return n==sx.LOADED||n==sx.EMPTY||n==sx.ERROR&&!i},e.prototype.getTile=function(t,e,n,i,r){var o=this.getLayer(),s=o.getSource().getTile(t,e,n,i,r);return s.getState()==sx.ERROR&&(o.getUseInterimTilesOnError()?o.getPreload()>0&&(this.newTiles_=!0):s.setState(sx.LOADED)),this.isDrawableTile_(s)||(s=s.getInterimTile()),s},e.prototype.prepareFrame=function(t,e){var n=t.pixelRatio,i=t.size,r=t.viewState,o=r.projection,s=r.resolution,a=r.center,l=this.getLayer(),u=l.getSource(),c=u.getRevision(),h=u.getTileGridForProjection(o),p=h.getZForResolution(s,this.zDirection),d=h.getResolution(p),f=Math.round(s/d)||1,m=t.extent;if(void 0!==e.extent&&(m=eE(m,e.extent)),sE(m))return!1;var g=h.getTileRangeForExtentAndZ(m,p),y=h.getTileRangeExtent(p,g),_=u.getTilePixelRatio(n),v={};v[p]={};var b,w,C,x=this.createLoadedTileFinder(u,o,v),E=t.viewHints,S=E[0]||E[1],T=this.tmpExtent,I=this.tmpTileRange_;for(this.newTiles_=!1,w=g.minX;w<=g.maxX;++w)for(C=g.minY;C<=g.maxY;++C)if(!(Date.now()-t.time>16&&S)){if(b=this.getTile(p,w,C,n,o),this.isDrawableTile_(b)){var O=bw(this);if(b.getState()==sx.LOADED){v[p][b.tileCoord.toString()]=b;var R=b.inTransition(O);this.newTiles_||!R&&-1!==this.renderedTiles.indexOf(b)||(this.newTiles_=!0)}if(1===b.getAlpha(O,t.time))continue}var k=h.getTileCoordChildTileRange(b.tileCoord,I,T),P=!1;k&&(P=x(p+1,k)),P||h.forEachTileCoordParentTileRange(b.tileCoord,x,null,I,T)}var A=d*n/_*f;if(!(this.renderedResolution&&Date.now()-t.time>16&&S)&&(this.newTiles_||!this.renderedExtent_||!Mx(this.renderedExtent_,m)||this.renderedRevision!=c||f!=this.oversampling_||!S&&A!=this.renderedResolution)){var L=this.context;if(L){var D=u.getTilePixelSize(p,n,o),F=Math.round(g.getWidth()*D[0]/f),M=Math.round(g.getHeight()*D[1]/f),N=L.canvas;N.width!=F||N.height!=M?(this.oversampling_=f,N.width=F,N.height=M):((this.renderedExtent_&&!Ux(y,this.renderedExtent_)||this.renderedRevision!=c)&&L.clearRect(0,0,F,M),f=this.oversampling_)}this.renderedTiles.length=0;var j,V,z,B,G,U,H,q,W=Object.keys(v).map(Number);for(W.sort(function(t,e){return t===p?1:e===p?-1:t>e?1:t0},e.prototype.drawTileImage=function(t,e,n,i,r,o,s,a,l){var u=this.getTileImage(t);if(u){var c=bw(this),h=l?t.getAlpha(c,e.time):1,p=this.getLayer().getSource();1!==h||p.getOpaque(e.viewState.projection)||this.context.clearRect(i,r,o,s);var d=h!==this.context.globalAlpha;d&&(this.context.save(),this.context.globalAlpha=h),this.context.drawImage(u,a,a,u.width-2*a,u.height-2*a,i,r,o,s),d&&this.context.restore(),1!==h?e.animate=!0:l&&t.endTransition(c)}},e.prototype.getImage=function(){var t=this.context;return t?t.canvas:null},e.prototype.getImageTransform=function(){return this.imageTransform_},e.prototype.getTileImage=function(t){return t.getImage()},e}(II);LI.handles=function(t){return t.getType()===KT.TILE},LI.create=function(t,e){return new LI(e)};var DI=LI,FI=n("A1R+"),MI=n.n(FI),NI=function(){};NI.prototype.getReplay=function(t,e){return _w()},NI.prototype.isEmpty=function(){return _w()},NI.prototype.addDeclutter=function(t){return _w()};var jI=NI,VI={CIRCLE:"Circle",DEFAULT:"Default",IMAGE:"Image",LINE_STRING:"LineString",POLYGON:"Polygon",TEXT:"Text"};function zI(t,e,n,i){for(var r=t[e],o=t[e+1],s=0,a=e+i;at[n-i],p=r.length,d=t[e],f=t[e+1],m=t[e+=i],g=t[e+1],y=0,_=Math.sqrt(Math.pow(m-d,2)+Math.pow(g-f,2)),v="",b=0,w=0;w0?-Math.PI:Math.PI),void 0!==u){var I=T-u;if(I+=I>Math.PI?-2*Math.PI:I<-Math.PI?2*Math.PI:0,Math.abs(I)>a)return null}var O=S/_,R=_x(d,m,O),k=_x(f,g,O);u==T?(h&&(l[0]=R,l[1]=k,l[2]=x/2),l[4]=v):(b=x,l=[R,k,x/2,T,v=C],h?c.unshift(l):c.push(l),u=T),s+=x}return c}var GI={BEGIN_GEOMETRY:0,BEGIN_PATH:1,CIRCLE:2,CLOSE_PATH:3,CUSTOM:4,DRAW_CHARS:5,DRAW_IMAGE:6,END_GEOMETRY:7,FILL:8,MOVE_TO_LINE_TO:9,SET_FILL_STYLE:10,SET_STROKE_STYLE:11,STROKE:12},UI=[GI.FILL],HI=[GI.STROKE],qI=[GI.BEGIN_PATH],WI=[GI.CLOSE_PATH],YI=GI,KI=[VI.POLYGON,VI.CIRCLE,VI.LINE_STRING,VI.IMAGE,VI.TEXT,VI.DEFAULT],XI={left:0,end:0,center:.5,right:1,start:1,top:0,middle:.5,hanging:.2,alphabetic:.8,ideographic:.8,bottom:1},ZI=Vx(),QI=WE(),JI=function(t){function e(e,n,i,r,o,s){t.call(this),this.declutterTree=s,this.tolerance=e,this.maxExtent=n,this.overlaps=o,this.pixelRatio=r,this.maxLineWidth=0,this.resolution=i,this.beginGeometryInstruction1_=null,this.beginGeometryInstruction2_=null,this.bufferedMaxExtent_=null,this.instructions=[],this.coordinates=[],this.coordinateCache_={},this.renderedTransform_=[1,0,0,1,0,0],this.hitDetectionInstructions=[],this.pixelCoordinates_=null,this.state={},this.viewRotation_=0}return t&&(e.__proto__=t),(e.prototype=Object.create(t&&t.prototype)).constructor=e,e.prototype.replayTextBackground_=function(t,e,n,i,r,o,s){t.beginPath(),t.moveTo.apply(t,e),t.lineTo.apply(t,n),t.lineTo.apply(t,i),t.lineTo.apply(t,r),t.lineTo.apply(t,e),o&&(this.alignFill_=o[2],this.fill_(t)),s&&(this.setStrokeStyle_(t,s),t.stroke())},e.prototype.replayImage_=function(t,e,n,i,r,o,s,a,l,u,c,h,p,d,f,m,g,y){var _,v,b,w,C=g||y,x=f+u>i.width?i.width-u:f,E=a+c>i.height?i.height-c:a,S=m[3]+x*p+m[1],T=m[0]+E*p+m[2],I=(e-=r*=p)-m[3],O=(n-=o*=p)-m[0];(C||0!==h)&&(_=[I,O],v=[I+S,O],b=[I+S,O+T],w=[I,O+T]);var R=null;if(0!==h){var k=e+r,P=n+o;R=tS(QI,k,P,1,1,h,-k,-P),Bx(ZI),qx(ZI,QE(QI,_)),qx(ZI,QE(QI,v)),qx(ZI,QE(QI,b)),qx(ZI,QE(QI,w))}else zx(I,O,I+S,O+T,ZI);var A=t.canvas,L=y?y[2]*p/2:0,D=ZI[0]-L<=A.width&&ZI[2]+L>=0&&ZI[1]-L<=A.height&&ZI[3]+L>=0;if(d&&(e=Math.round(e),n=Math.round(n)),s){if(!D&&1==s[4])return;Hx(s,ZI);var F=D?[t,R?R.slice(0):null,l,i,u,c,x,E,e,n,p]:null;F&&C&&F.push(g,y,_,v,b,w),s.push(F)}else D&&(C&&this.replayTextBackground_(t,_,v,b,w,g,y),pI(t,R,l,i,u,c,x,E,e,n,p))},e.prototype.applyPixelRatio=function(t){var e=this.pixelRatio;return 1==e?t:t.map(function(t){return t*e})},e.prototype.appendFlatCoordinates=function(t,e,n,i,r,o){var s=this.coordinates.length,a=this.getBufferedMaxExtent();o&&(e+=i);var l,u,c,h=[t[e],t[e+1]],p=[NaN,NaN],d=!0;for(l=e+i;l5){var n=t[4];if(1==n||n==t.length-5){var i={minX:t[0],minY:t[1],maxX:t[2],maxY:t[3],value:e};if(!this.declutterTree.collides(i)){this.declutterTree.insert(i);for(var r=5,o=t.length;r11&&this.replayTextBackground_(s[0],s[13],s[14],s[15],s[16],s[11],s[12]),pI.apply(void 0,s))}}t.length=5,Bx(t)}}},e.prototype.replay_=function(t,e,n,i,r,o,s){var a;this.pixelCoordinates_&&ZC(e,this.renderedTransform_)?a=this.pixelCoordinates_:(this.pixelCoordinates_||(this.pixelCoordinates_=[]),a=uE(this.coordinates,0,this.coordinates.length,2,e,this.pixelCoordinates_),ZE(this.renderedTransform_,e));for(var l,u,c,h,p,d,f,m,g,y,_,v,b=!Iw(n),w=0,C=i.length,x=0,E=0,S=0,T=null,I=null,O=this.coordinateCache_,R=this.viewRotation_,k={context:t,pixelRatio:this.pixelRatio,resolution:this.resolution,rotation:R},P=this.instructions!=i||this.overlaps?0:200;wP&&(this.fill_(t),E=0),S>P&&(t.stroke(),S=0),E||S||(t.beginPath(),h=p=NaN),++w;break;case YI.CIRCLE:var L=a[x=A[1]],D=a[x+1],F=a[x+2]-L,M=a[x+3]-D,N=Math.sqrt(F*F+M*M);t.moveTo(L+N,D),t.arc(L,D,N,0,2*Math.PI,!0),++w;break;case YI.CLOSE_PATH:t.closePath(),++w;break;case YI.CUSTOM:x=A[1],l=A[2];var j=A[4],V=6==A.length?A[5]:void 0;k.geometry=A[3],k.feature=y,w in O||(O[w]=[]);var z=O[w];V?V(a,x,l,2,z):(z[0]=a[x],z[1]=a[x+1],z.length=2),j(z,k),++w;break;case YI.DRAW_IMAGE:x=A[1],l=A[2],g=A[3],u=A[4],c=A[5],m=o?null:A[6];var B=A[7],G=A[8],U=A[9],H=A[10],q=A[12],W=A[13],Y=A[14],K=void 0,X=void 0,Z=void 0;for(A.length>16?(K=A[15],X=A[16],Z=A[17]):(K=eI,X=Z=!1),A[11]&&(q+=R);xthis.maxLineWidth&&(this.maxLineWidth=n.lineWidth,this.bufferedMaxExtent_=null)}else n.strokeStyle=void 0,n.lineCap=void 0,n.lineDash=null,n.lineDashOffset=void 0,n.lineJoin=void 0,n.lineWidth=void 0,n.miterLimit=void 0},e.prototype.createFill=function(t,e){var n=t.fillStyle,i=[YI.SET_FILL_STYLE,n];return"string"!=typeof n&&i.push(!0),i},e.prototype.applyStroke=function(t){this.instructions.push(this.createStroke(t))},e.prototype.createStroke=function(t){return[YI.SET_STROKE_STYLE,t.strokeStyle,t.lineWidth*this.pixelRatio,t.lineCap,t.lineJoin,t.miterLimit,this.applyPixelRatio(t.lineDash),t.lineDashOffset*this.pixelRatio]},e.prototype.updateFillStyle=function(t,e,n){var i=t.fillStyle;"string"==typeof i&&t.currentFillStyle==i||(void 0!==i&&this.instructions.push(e.call(this,t,n)),t.currentFillStyle=i)},e.prototype.updateStrokeStyle=function(t,e){var n=t.strokeStyle,i=t.lineCap,r=t.lineDash,o=t.lineDashOffset,s=t.lineJoin,a=t.lineWidth,l=t.miterLimit;(t.currentStrokeStyle!=n||t.currentLineCap!=i||r!=t.currentLineDash&&!ZC(t.currentLineDash,r)||t.currentLineDashOffset!=o||t.currentLineJoin!=s||t.currentLineWidth!=a||t.currentMiterLimit!=l)&&(void 0!==n&&e.call(this,t),t.currentStrokeStyle=n,t.currentLineCap=i,t.currentLineDash=r,t.currentLineDashOffset=o,t.currentLineJoin=s,t.currentLineWidth=a,t.currentMiterLimit=l)},e.prototype.endGeometry=function(t,e){this.beginGeometryInstruction1_[2]=this.instructions.length,this.beginGeometryInstruction1_=null,this.beginGeometryInstruction2_[2]=this.hitDetectionInstructions.length,this.beginGeometryInstruction2_=null;var n=[YI.END_GEOMETRY,e];this.instructions.push(n),this.hitDetectionInstructions.push(n)},e.prototype.getBufferedMaxExtent=function(){return this.bufferedMaxExtent_||(this.bufferedMaxExtent_=Lx(this.maxExtent),this.maxLineWidth>0&&Ax(this.bufferedMaxExtent_,this.resolution*(this.maxLineWidth+1)/2,this.bufferedMaxExtent_)),this.bufferedMaxExtent_},e}(yI),$I=function(t){function e(e,n,i,r,o,s){t.call(this,e,n,i,r,o,s),this.declutterGroup_=null,this.hitDetectionImage_=null,this.image_=null,this.anchorX_=void 0,this.anchorY_=void 0,this.height_=void 0,this.opacity_=void 0,this.originX_=void 0,this.originY_=void 0,this.rotateWithView_=void 0,this.rotation_=void 0,this.scale_=void 0,this.width_=void 0}return t&&(e.__proto__=t),(e.prototype=Object.create(t&&t.prototype)).constructor=e,e.prototype.drawCoordinates_=function(t,e,n,i){return this.appendFlatCoordinates(t,e,n,i,!1,!1)},e.prototype.drawPoint=function(t,e){if(this.image_){this.beginGeometry(t,e);var n=t.getFlatCoordinates(),i=t.getStride(),r=this.coordinates.length,o=this.drawCoordinates_(n,0,n.length,i);this.instructions.push([YI.DRAW_IMAGE,r,o,this.image_,this.anchorX_,this.anchorY_,this.declutterGroup_,this.height_,this.opacity_,this.originX_,this.originY_,this.rotateWithView_,this.rotation_,this.scale_*this.pixelRatio,this.width_]),this.hitDetectionInstructions.push([YI.DRAW_IMAGE,r,o,this.hitDetectionImage_,this.anchorX_,this.anchorY_,this.declutterGroup_,this.height_,this.opacity_,this.originX_,this.originY_,this.rotateWithView_,this.rotation_,this.scale_,this.width_]),this.endGeometry(t,e)}},e.prototype.drawMultiPoint=function(t,e){if(this.image_){this.beginGeometry(t,e);var n=t.getFlatCoordinates(),i=t.getStride(),r=this.coordinates.length,o=this.drawCoordinates_(n,0,n.length,i);this.instructions.push([YI.DRAW_IMAGE,r,o,this.image_,this.anchorX_,this.anchorY_,this.declutterGroup_,this.height_,this.opacity_,this.originX_,this.originY_,this.rotateWithView_,this.rotation_,this.scale_*this.pixelRatio,this.width_]),this.hitDetectionInstructions.push([YI.DRAW_IMAGE,r,o,this.hitDetectionImage_,this.anchorX_,this.anchorY_,this.declutterGroup_,this.height_,this.opacity_,this.originX_,this.originY_,this.rotateWithView_,this.rotation_,this.scale_,this.width_]),this.endGeometry(t,e)}},e.prototype.finish=function(){this.reverseHitDetectionInstructions(),this.anchorX_=void 0,this.anchorY_=void 0,this.hitDetectionImage_=null,this.image_=null,this.height_=void 0,this.scale_=void 0,this.opacity_=void 0,this.originX_=void 0,this.originY_=void 0,this.rotateWithView_=void 0,this.rotation_=void 0,this.width_=void 0},e.prototype.setImageStyle=function(t,e){var n=t.getAnchor(),i=t.getSize(),r=t.getHitDetectionImage(1),o=t.getImage(1),s=t.getOrigin();this.anchorX_=n[0],this.anchorY_=n[1],this.declutterGroup_=e,this.hitDetectionImage_=r,this.image_=o,this.height_=i[1],this.opacity_=t.getOpacity(),this.originX_=s[0],this.originY_=s[1],this.rotateWithView_=t.getRotateWithView(),this.rotation_=t.getRotation(),this.scale_=t.getScale(),this.width_=i[0]},e}(JI),tO=function(t){function e(e,n,i,r,o,s){t.call(this,e,n,i,r,o,s)}return t&&(e.__proto__=t),(e.prototype=Object.create(t&&t.prototype)).constructor=e,e.prototype.drawFlatCoordinates_=function(t,e,n,i){var r=this.coordinates.length,o=this.appendFlatCoordinates(t,e,n,i,!1,!1),s=[YI.MOVE_TO_LINE_TO,r,o];return this.instructions.push(s),this.hitDetectionInstructions.push(s),n},e.prototype.drawLineString=function(t,e){var n=this.state;if(void 0!==n.strokeStyle&&void 0!==n.lineWidth){this.updateStrokeStyle(n,this.applyStroke),this.beginGeometry(t,e),this.hitDetectionInstructions.push([YI.SET_STROKE_STYLE,n.strokeStyle,n.lineWidth,n.lineCap,n.lineJoin,n.miterLimit,n.lineDash,n.lineDashOffset],qI);var i=t.getFlatCoordinates(),r=t.getStride();this.drawFlatCoordinates_(i,0,i.length,r),this.hitDetectionInstructions.push(HI),this.endGeometry(t,e)}},e.prototype.drawMultiLineString=function(t,e){var n=this.state;if(void 0!==n.strokeStyle&&void 0!==n.lineWidth){this.updateStrokeStyle(n,this.applyStroke),this.beginGeometry(t,e),this.hitDetectionInstructions.push([YI.SET_STROKE_STYLE,n.strokeStyle,n.lineWidth,n.lineCap,n.lineJoin,n.miterLimit,n.lineDash,n.lineDashOffset],qI);for(var i=t.getEnds(),r=t.getFlatCoordinates(),o=t.getStride(),s=0,a=0,l=i.length;at&&(y>g&&(g=y,f=_,m=o),y=0,_=o-r)),s=a,c=p,h=d),l=v,u=b}return(y+=a)>g?[_,o]:[f,m]}var iO={Circle:eO,Default:JI,Image:$I,LineString:tO,Polygon:eO,Text:function(t){function e(e,n,i,r,o,s){t.call(this,e,n,i,r,o,s),this.labels_=null,this.text_="",this.textOffsetX_=0,this.textOffsetY_=0,this.textRotateWithView_=void 0,this.textRotation_=0,this.textFillState_=null,this.fillStates={},this.textStrokeState_=null,this.strokeStates={},this.textState_={},this.textStates={},this.textKey_="",this.fillKey_="",this.strokeKey_="",this.widths_={},nI.prune()}return t&&(e.__proto__=t),(e.prototype=Object.create(t&&t.prototype)).constructor=e,e.prototype.drawText=function(t,e){var n=this.textState_;if(""!==this.text_&&n&&(this.textFillState_||this.textStrokeState_)){var i,r,o=this.coordinates.length,s=t.getType(),a=null,l=2,u=2;if("line"===n.placement){if(!oE(this.getBufferedMaxExtent(),t.getExtent()))return;var c;if(a=t.getFlatCoordinates(),u=t.getStride(),s==aE.LINE_STRING)c=[a.length];else if(s==aE.MULTI_LINE_STRING)c=t.getEnds();else if(s==aE.POLYGON)c=t.getEnds().slice(0,1);else if(s==aE.MULTI_POLYGON){var h=t.getEndss();for(c=[],i=0,r=h.length;i=v)&&a.push(b[i],b[i+1]);if(0==(l=a.length))return}l=this.appendFlatCoordinates(a,0,l,u,!1,!1),(n.backgroundFill||n.backgroundStroke)&&(this.setFillStrokeStyle(n.backgroundFill,n.backgroundStroke),n.backgroundFill&&(this.updateFillStyle(this.state,this.createFill,t),this.hitDetectionInstructions.push(this.createFill(this.state,t))),n.backgroundStroke&&(this.updateStrokeStyle(this.state,this.applyStroke),this.hitDetectionInstructions.push(this.createStroke(this.state)))),this.beginGeometry(t,e),this.drawTextImage_(_,o,l),this.endGeometry(t,e)}}},e.prototype.getImage=function(t,e,n,i){var r,o=i+e+t+n+this.pixelRatio;if(!nI.containsKey(o)){var s=i?this.strokeStates[i]||this.textStrokeState_:null,a=n?this.fillStates[n]||this.textFillState_:null,l=this.textStates[e]||this.textState_,u=l.scale*this.pixelRatio,c=XI[l.textAlign||"center"],h=i&&s.lineWidth?s.lineWidth:0,p=t.split("\n"),d=p.length,f=[],m=function(t,e,n){for(var i=e.length,r=0,o=0;o=o;)sO(n,t+r,t+o),sO(n,t+o,t+r),sO(n,t-o,t+r),sO(n,t-r,t+o),sO(n,t-r,t-o),sO(n,t-o,t-r),sO(n,t+o,t-r),sO(n,t+r,t-o),2*((s+=1+2*++o)-r)+1>0&&(s+=1-2*(r-=1));return oO[t]=n,n}(i);function f(t){for(var e=c.getImageData(0,0,l,l).data,n=0;n0){var r=void 0;return(!h||p!=VI.IMAGE&&p!=VI.TEXT||-1!==h.indexOf(t))&&(r=o(t)),r||void c.clearRect(0,0,l,l)}}this.declutterTree_&&(h=this.declutterTree_.all().map(function(t){return t.value}));var m,g,y,_,v,b=Object.keys(this.replaysByZIndex_).map(Number);for(b.sort(WC),m=b.length-1;m>=0;--m){var w=b[m].toString();for(y=this.replaysByZIndex_[w],g=KI.length-1;g>=0;--g)if(void 0!==(_=y[p=KI[g]]))if(!s||p!=VI.IMAGE&&p!=VI.TEXT){if(v=_.replayHitDetection(c,u,n,r,f,a))return v}else{var C=s[w];C?C.push(_,u.slice(0)):s[w]=[_,u.slice(0)]}}},e.prototype.getClipCoords=function(t){var e=this.maxExtent_,n=e[0],i=e[1],r=e[2],o=e[3],s=[n,i,n,o,r,o,r,i];return uE(s,0,8,2,t,s),s},e.prototype.getReplay=function(t,e){var n=void 0!==t?t.toString():"0",i=this.replaysByZIndex_[n];void 0===i&&(this.replaysByZIndex_[n]=i={});var r=i[e];return void 0===r&&(r=new(0,iO[e])(this.tolerance_,this.maxExtent_,this.resolution_,this.pixelRatio_,this.overlaps_,this.declutterTree_),i[e]=r),r},e.prototype.getReplays=function(){return this.replaysByZIndex_},e.prototype.isEmpty=function(){return Iw(this.replaysByZIndex_)},e.prototype.replay=function(t,e,n,i,r,o,s){var a=Object.keys(this.replaysByZIndex_).map(Number);a.sort(WC),t.save(),this.clip(t,e);var l,u,c,h,p,d,f=o||KI;for(l=0,u=a.length;l=r)for(i=r;iu[2];)h=this.getTransform(e,k*++P),f.replay(m,h,l,o,T),R-=k}if(cI(m,l,I/2,O/2),b&&this.dispatchRenderEvent(m,e,h),m!=t){if(v){var A=t.globalAlpha;t.globalAlpha=n.opacity,t.drawImage(m.canvas,-y,-_),t.globalAlpha=A}else t.drawImage(m.canvas,-y,-_);m.translate(-y,-_)}v||(m.globalAlpha=E)}d&&t.restore()},e.prototype.composeFrame=function(t,e,n){var i=this.getTransform(t,0);this.preCompose(n,t,i),this.compose(n,t,e),this.postCompose(n,t,e,i)},e.prototype.forEachFeatureAtCoordinate=function(t,e,n,i,r){if(this.replayGroup_){var o=e.viewState.resolution,s=e.viewState.rotation,a=this.getLayer(),l={};return this.replayGroup_.forEachFeatureAtCoordinate(t,o,s,n,{},function(t){var e=bw(t);if(!(e in l))return l[e]=!0,i.call(r,t,a)},null)}},e.prototype.handleFontsChanged_=function(t){var e=this.getLayer();e.getVisible()&&this.replayGroup_&&e.changed()},e.prototype.handleStyleImageChange_=function(t){this.renderIfReadyAndVisible()},e.prototype.prepareFrame=function(t,e){var n=this.getLayer(),i=n.getSource(),r=t.viewHints[0],o=t.viewHints[1],s=n.getUpdateWhileAnimating(),a=n.getUpdateWhileInteracting();if(!this.dirty_&&!s&&r||!a&&o)return!0;var l=t.extent,u=t.viewState,c=u.projection,h=u.resolution,p=t.pixelRatio,d=n.getRevision(),f=n.getRenderBuffer(),m=n.getRenderOrder();void 0===m&&(m=cO);var g=Ax(l,f*h),y=u.projection.getExtent();if(i.getWrapX()&&u.projection.canWrapX()&&!Mx(y,t.extent)){var _=rE(y),v=Math.max(rE(g)/2,_);g[0]=y[0]-v,g[2]=y[2]+v}if(!this.dirty_&&this.renderedResolution_==h&&this.renderedRevision_==d&&this.renderedRenderOrder_==m&&Mx(this.renderedExtent_,g))return this.replayGroupChanged=!1,!0;this.replayGroup_=null,this.dirty_=!1;var b=new aO(pO(h,p),g,h,p,i.getOverlaps(),this.declutterTree_,n.getRenderBuffer());i.loadFeatures(g,h,c);var w=(function(t){var e,i=t.getStyleFunction()||n.getStyleFunction();if(i&&(e=i(t,h)),e){var r=this.renderFeature(t,h,p,e,b);this.dirty_=this.dirty_||r}}).bind(this);if(m){var C=[];i.forEachFeatureInExtent(g,function(t){C.push(t)}),C.sort(m);for(var x=0,E=C.length;x=0;--b){var w=g[b];if(w.getState()!=sx.ABORT)for(var C=w.tileCoord,x=y.getTileCoordExtent(C,this.tmpExtent)[0]-w.extent[0],E=void 0,S=0,T=w.tileKeys.length;S=this.transition_?1:Sx(i/this.transition_)},e.prototype.inTransition=function(t){return!!this.transition_&&-1!==this.transitionStarts_[t]},e.prototype.endTransition=function(t){this.transition_&&(this.transitionStarts_[t]=-1)},e}(Hw);function xO(){var t=BS(1,1);return t.fillStyle="rgba(0,0,0,0)",t.fillRect(0,0,1,1),t.canvas}var EO=function(t){function e(e,n,i,r,o,s){t.call(this,e,n,s),this.crossOrigin_=r,this.src_=i,this.image_=new Image,null!==r&&(this.image_.crossOrigin=r),this.imageListenerKeys_=null,this.tileLoadFunction_=o}return t&&(e.__proto__=t),(e.prototype=Object.create(t&&t.prototype)).constructor=e,e.prototype.disposeInternal=function(){this.state==sx.LOADING&&(this.unlistenImage_(),this.image_=xO()),this.interimTile&&this.interimTile.dispose(),this.state=sx.ABORT,this.changed(),t.prototype.disposeInternal.call(this)},e.prototype.getImage=function(){return this.image_},e.prototype.getKey=function(){return this.src_},e.prototype.handleImageError_=function(){this.state=sx.ERROR,this.unlistenImage_(),this.image_=xO(),this.changed()},e.prototype.handleImageLoad_=function(){var t=this.image_;this.state=t.naturalWidth&&t.naturalHeight?sx.LOADED:sx.EMPTY,this.unlistenImage_(),this.changed()},e.prototype.load=function(){this.state==sx.ERROR&&(this.state=sx.IDLE,this.image_=new Image,null!==this.crossOrigin_&&(this.image_.crossOrigin=this.crossOrigin_)),this.state==sx.IDLE&&(this.state=sx.LOADING,this.changed(),this.imageListenerKeys_=[Lw(this.image_,qw.ERROR,this.handleImageError_,this),Lw(this.image_,qw.LOAD,this.handleImageLoad_,this)],this.tileLoadFunction_(this,this.src_))},e.prototype.unlistenImage_=function(){this.imageListenerKeys_.forEach(Fw),this.imageListenerKeys_=null},e}(CO);function SO(t,e,n,i){return void 0!==i?(i[0]=t,i[1]=e,i[2]=n,i):[t,e,n]}function TO(t,e,n){return t+"/"+e+"/"+n}function IO(t){return TO(t[0],t[1],t[2])}var OO=function(t){function e(e){t.call(this,e)}return t&&(e.__proto__=t),(e.prototype=Object.create(t&&t.prototype)).constructor=e,e.prototype.expireCache=function(t){for(;this.canExpireCache();){var e=this.peekLast(),n=e.tileCoord[0].toString();if(n in t&&t[n].contains(e.tileCoord))break;this.pop().dispose()}},e.prototype.pruneExceptNewestZ=function(){if(0!==this.getCount()){var t=function(t){return t.split("/").map(Number)}(this.peekFirstKey())[0];this.forEach(function(e){e.tileCoord[0]!==t&&(this.remove(IO(e.tileCoord)),e.dispose())},this)}},e}(QT);function RO(t,e,n,i){var r=HE(n,e,t),o=NE(e,i,n),s=e.getMetersPerUnit();void 0!==s&&(o*=s);var a=t.getMetersPerUnit();void 0!==a&&(o/=a);var l=t.getExtent();if(!l||Fx(l,r)){var u=NE(t,o,r)/o;isFinite(u)&&u>0&&(o/=u)}return o}function kO(t,e,n,i){var r=n-t,o=i-e,s=Math.sqrt(r*r+o*o);return[Math.round(n+r/s),Math.round(i+o/s)]}function PO(t,e,n,i,r,o,s,a,l,u,c){var h=BS(Math.round(n*t),Math.round(n*e));if(0===l.length)return h.canvas;h.scale(n,n);var p=[1/0,1/0,-1/0,-1/0];l.forEach(function(t,e,n){Hx(p,t.extent)});var d=rE(p),f=tE(p),m=BS(Math.round(n*d/i),Math.round(n*f/i)),g=n/i;l.forEach(function(t,e,n){var i=t.extent[0]-p[0],r=-(t.extent[3]-p[3]),o=rE(t.extent),s=tE(t.extent);m.drawImage(t.image,u,u,t.image.width-2*u,t.image.height-2*u,i*g,r*g,o*g,s*g)});var y=nE(s);return a.getTriangles().forEach(function(t,e,r){var s=t.source,a=t.target,l=s[0][0],u=s[0][1],c=s[1][0],d=s[1][1],f=s[2][0],g=s[2][1],_=(a[0][0]-y[0])/o,v=-(a[0][1]-y[1])/o,b=(a[1][0]-y[0])/o,w=-(a[1][1]-y[1])/o,C=(a[2][0]-y[0])/o,x=-(a[2][1]-y[1])/o,E=l,S=u;l=0,u=0;var T=function(t){for(var e=t.length,n=0;nr&&(r=s,i=o)}if(0===r)return null;var a=t[i];t[i]=t[n],t[n]=a;for(var l=n+1;l=0;p--){h[p]=t[p][e]/t[p][p];for(var d=p-1;d>=0;d--)t[d][e]-=t[d][p]*h[p]}return h}([[c-=E,d-=S,0,0,b-_],[f-=E,g-=S,0,0,C-_],[0,0,c,d,w-v],[0,0,f,g,x-v]]);if(T){h.save(),h.beginPath();var I=(_+b+C)/3,O=(v+w+x)/3,R=kO(I,O,_,v),k=kO(I,O,b,w),P=kO(I,O,C,x);h.moveTo(k[0],k[1]),h.lineTo(R[0],R[1]),h.lineTo(P[0],P[1]),h.clip(),h.transform(T[0],T[2],T[1],T[3],_,v),h.translate(p[0]-E,p[3]-S),h.scale(i/n,-i/n),h.drawImage(m.canvas,0,0),h.restore()}}),c&&(h.save(),h.strokeStyle="black",h.lineWidth=1,a.getTriangles().forEach(function(t,e,n){var i=t.target,r=(i[0][0]-y[0])/o,s=-(i[0][1]-y[1])/o,a=(i[1][0]-y[0])/o,l=-(i[1][1]-y[1])/o,u=(i[2][0]-y[0])/o,c=-(i[2][1]-y[1])/o;h.beginPath(),h.moveTo(a,l),h.lineTo(r,s),h.lineTo(u,c),h.closePath(),h.stroke()}),h.restore()),h.canvas}var AO=function(t,e,n,i,r){this.sourceProj_=t,this.targetProj_=e;var o={},s=UE(this.targetProj_,this.sourceProj_);this.transformInv_=function(t){var e=t[0]+"/"+t[1];return o[e]||(o[e]=s(t)),o[e]},this.maxSourceExtent_=i,this.errorThresholdSquared_=r*r,this.triangles_=[],this.wrapsXInSource_=!1,this.canWrapXInSource_=this.sourceProj_.canWrapX()&&!!i&&!!this.sourceProj_.getExtent()&&rE(i)==rE(this.sourceProj_.getExtent()),this.sourceWorldWidth_=this.sourceProj_.getExtent()?rE(this.sourceProj_.getExtent()):null,this.targetWorldWidth_=this.targetProj_.getExtent()?rE(this.targetProj_.getExtent()):null;var a=nE(n),l=iE(n),u=Zx(n),c=Xx(n),h=this.transformInv_(a),p=this.transformInv_(l),d=this.transformInv_(u),f=this.transformInv_(c);if(this.addQuad_(a,l,u,c,h,p,d,f,10),this.wrapsXInSource_){var m=1/0;this.triangles_.forEach(function(t,e,n){m=Math.min(m,t.source[0][0],t.source[1][0],t.source[2][0])}),this.triangles_.forEach((function(t){if(Math.max(t.source[0][0],t.source[1][0],t.source[2][0])-m>this.sourceWorldWidth_/2){var e=[[t.source[0][0],t.source[0][1]],[t.source[1][0],t.source[1][1]],[t.source[2][0],t.source[2][1]]];e[0][0]-m>this.sourceWorldWidth_/2&&(e[0][0]-=this.sourceWorldWidth_),e[1][0]-m>this.sourceWorldWidth_/2&&(e[1][0]-=this.sourceWorldWidth_),e[2][0]-m>this.sourceWorldWidth_/2&&(e[2][0]-=this.sourceWorldWidth_);var n=Math.min(e[0][0],e[1][0],e[2][0]);Math.max(e[0][0],e[1][0],e[2][0])-n.5&&c<1,d=!1;if(l>0&&(this.targetProj_.isGlobal()&&this.targetWorldWidth_&&(d=rE(Px([t,e,n,i]))/this.targetWorldWidth_>.25||d),!p&&this.sourceProj_.isGlobal()&&c&&(d=c>.25||d)),d||!this.maxSourceExtent_||oE(u,this.maxSourceExtent_)){if(!(d||isFinite(r[0])&&isFinite(r[1])&&isFinite(o[0])&&isFinite(o[1])&&isFinite(s[0])&&isFinite(s[1])&&isFinite(a[0])&&isFinite(a[1]))){if(!(l>0))return;d=!0}if(l>0){if(!d){var f,m=this.transformInv_([(t[0]+n[0])/2,(t[1]+n[1])/2]);f=p?(yx(r[0],h)+yx(s[0],h))/2-yx(m[0],h):(r[0]+s[0])/2-m[0];var g=(r[1]+s[1])/2-m[1];d=f*f+g*g>this.errorThresholdSquared_}if(d){if(Math.abs(t[0]-n[0])<=Math.abs(t[1]-n[1])){var y=[(e[0]+n[0])/2,(e[1]+n[1])/2],_=this.transformInv_(y),v=[(i[0]+t[0])/2,(i[1]+t[1])/2],b=this.transformInv_(v);this.addQuad_(t,e,y,v,r,o,_,b,l-1),this.addQuad_(v,y,n,i,b,_,s,a,l-1)}else{var w=[(t[0]+e[0])/2,(t[1]+e[1])/2],C=this.transformInv_(w),x=[(n[0]+i[0])/2,(n[1]+i[1])/2],E=this.transformInv_(x);this.addQuad_(t,w,x,i,r,C,E,a,l-1),this.addQuad_(w,e,n,x,C,o,s,E,l-1)}return}}if(p){if(!this.canWrapXInSource_)return;this.wrapsXInSource_=!0}this.addTriangle_(t,n,i,r,s,a),this.addTriangle_(t,e,n,r,o,s)}},AO.prototype.calculateSourceExtent=function(){var t=[1/0,1/0,-1/0,-1/0];return this.triangles_.forEach(function(e,n,i){var r=e.source;qx(t,r[0]),qx(t,r[1]),qx(t,r[2])}),t},AO.prototype.getTriangles=function(){return this.triangles_};var LO=AO,DO=function(t){function e(e,n,i,r,o,s,a,l,u,c,h){t.call(this,o,sx.IDLE),this.renderEdges_=void 0!==h&&h,this.pixelRatio_=a,this.gutter_=l,this.canvas_=null,this.sourceTileGrid_=n,this.targetTileGrid_=r,this.wrappedTileCoord_=s||o,this.sourceTiles_=[],this.sourcesListenerKeys_=null,this.sourceZ_=0;var p=r.getTileCoordExtent(this.wrappedTileCoord_),d=this.targetTileGrid_.getExtent(),f=this.sourceTileGrid_.getExtent(),m=d?eE(p,d):p;if(0!==Kx(m)){var g=e.getExtent();g&&(f=f?eE(f,g):g);var y=r.getResolution(this.wrappedTileCoord_[0]),_=RO(e,i,Qx(m),y);if(!isFinite(_)||_<=0)this.state=sx.EMPTY;else if(this.triangulation_=new LO(e,i,m,f,_*(void 0!==c?c:HT)),0!==this.triangulation_.getTriangles().length){this.sourceZ_=n.getZForResolution(_);var v=this.triangulation_.calculateSourceExtent();if(f&&(e.canWrapX()?(v[1]=px(v[1],f[1],f[3]),v[3]=px(v[3],f[1],f[3])):v=eE(v,f)),Kx(v)){for(var b=n.getTileRangeForExtentAndZ(v,this.sourceZ_),w=b.minX;w<=b.maxX;w++)for(var C=b.minY;C<=b.maxY;C++){var x=u(this.sourceZ_,w,C,a);x&&this.sourceTiles_.push(x)}0===this.sourceTiles_.length&&(this.state=sx.EMPTY)}else this.state=sx.EMPTY}else this.state=sx.EMPTY}else this.state=sx.EMPTY}return t&&(e.__proto__=t),(e.prototype=Object.create(t&&t.prototype)).constructor=e,e.prototype.disposeInternal=function(){this.state==sx.LOADING&&this.unlistenSources_(),t.prototype.disposeInternal.call(this)},e.prototype.getImage=function(){return this.canvas_},e.prototype.reproject_=function(){var t=[];if(this.sourceTiles_.forEach((function(e,n,i){e&&e.getState()==sx.LOADED&&t.push({extent:this.sourceTileGrid_.getTileCoordExtent(e.tileCoord),image:e.getImage()})}).bind(this)),this.sourceTiles_.length=0,0===t.length)this.state=sx.ERROR;else{var e=this.wrappedTileCoord_[0],n=this.targetTileGrid_.getTileSize(e),i="number"==typeof n?n:n[0],r="number"==typeof n?n:n[1],o=this.targetTileGrid_.getResolution(e),s=this.sourceTileGrid_.getResolution(this.sourceZ_),a=this.targetTileGrid_.getTileCoordExtent(this.wrappedTileCoord_);this.canvas_=PO(i,r,this.pixelRatio_,s,this.sourceTileGrid_.getExtent(),o,a,this.triangulation_,t,this.gutter_,this.renderEdges_),this.state=sx.LOADED}this.changed()},e.prototype.load=function(){if(this.state==sx.IDLE){this.state=sx.LOADING,this.changed();var t=0;this.sourcesListenerKeys_=[],this.sourceTiles_.forEach((function(e,n,i){var r=e.getState();if(r==sx.IDLE||r==sx.LOADING){t++;var o=Aw(e,qw.CHANGE,function(n){var i=e.getState();i!=sx.LOADED&&i!=sx.ERROR&&i!=sx.EMPTY||(Fw(o),0==--t&&(this.unlistenSources_(),this.reproject_()))},this);this.sourcesListenerKeys_.push(o)}}).bind(this)),this.sourceTiles_.forEach(function(t,e,n){t.getState()==sx.IDLE&&t.load()}),0===t&&setTimeout(this.reproject_.bind(this),0)}},e.prototype.unlistenSources_=function(){this.sourcesListenerKeys_.forEach(Fw),this.sourcesListenerKeys_=null},e}(CO);function FO(t,e){var n=/\{z\}/g,i=/\{x\}/g,r=/\{y\}/g,o=/\{-y\}/g;return function(s,a,l){return s?t.replace(n,s[0].toString()).replace(i,s[1].toString()).replace(r,function(){return(-s[2]-1).toString()}).replace(o,function(){var t=e.getFullTileRange(s[0]);return ax(t,55),(t.getHeight()+s[2]).toString()}):void 0}}function MO(t,e,n){}function NO(t){return t?Array.isArray(t)?function(e){return t}:"function"==typeof t?t:function(e){return[t]}:null}var jO=function(t){function e(e){t.call(this),this.projection_=ME(e.projection),this.attributions_=NO(e.attributions),this.attributionsCollapsible_=void 0===e.attributionsCollapsible||e.attributionsCollapsible,this.loading=!1,this.state_=void 0!==e.state?e.state:WS.READY,this.wrapX_=void 0!==e.wrapX&&e.wrapX}return t&&(e.__proto__=t),(e.prototype=Object.create(t&&t.prototype)).constructor=e,e.prototype.getAttributions=function(){return this.attributions_},e.prototype.getAttributionsCollapsible=function(){return this.attributionsCollapsible_},e.prototype.getProjection=function(){return this.projection_},e.prototype.getResolutions=function(){return _w()},e.prototype.getState=function(){return this.state_},e.prototype.getWrapX=function(){return this.wrapX_},e.prototype.refresh=function(){this.changed()},e.prototype.setAttributions=function(t){this.attributions_=NO(t),this.changed()},e.prototype.setState=function(t){this.state_=t,this.changed()},e}(Zw),VO=[0,0,0],zO=function(t){var e,n,i;if(this.minZoom=void 0!==t.minZoom?t.minZoom:0,this.resolutions_=t.resolutions,ax((n=function(t,e){return e-t}||WC,(e=this.resolutions_).every(function(t,i){if(0===i)return!0;var r=n(e[i-1],t);return!(r>0||0===r)})),17),!t.origins)for(var r=0,o=this.resolutions_.length-1;r=this.minZoom;){if(o=2===this.zoomFactor_?PI(s=Math.floor(s/2),s,a=Math.floor(a/2),a,i):this.getTileRangeForExtentAndZ(l,u,i),e.call(n,u,o))return!0;--u}return!1},zO.prototype.getExtent=function(){return this.extent_},zO.prototype.getMaxZoom=function(){return this.maxZoom},zO.prototype.getMinZoom=function(){return this.minZoom},zO.prototype.getOrigin=function(t){return this.origin_?this.origin_:this.origins_[t]},zO.prototype.getResolution=function(t){return this.resolutions_[t]},zO.prototype.getResolutions=function(){return this.resolutions_},zO.prototype.getTileCoordChildTileRange=function(t,e,n){if(t[0]n||n>e.getMaxZoom())return!1;var o,s=e.getExtent();return!(o=s?e.getTileRangeForExtentAndZ(s,n):e.getFullTileRange(n))||o.containsXY(i,r)}(t,i)?t:null},e.prototype.refresh=function(){this.tileCache.clear(),this.changed()},e.prototype.useTile=function(t,e,n,i){},e}(jO),WO=function(t){function e(e,n){t.call(this,e),this.tile=n}return t&&(e.__proto__=t),(e.prototype=Object.create(t&&t.prototype)).constructor=e,e}(Uw);function YO(t,e){t.getImage().src=e}var KO='© OpenStreetMap contributors.',XO=function(t){function e(e){var n=e||{};t.call(this,{attributions:void 0!==n.attributions?n.attributions:[KO],cacheSize:n.cacheSize,crossOrigin:void 0!==n.crossOrigin?n.crossOrigin:"anonymous",opaque:void 0===n.opaque||n.opaque,maxZoom:void 0!==n.maxZoom?n.maxZoom:19,reprojectionErrorThreshold:n.reprojectionErrorThreshold,tileLoadFunction:n.tileLoadFunction,url:void 0!==n.url?n.url:"https://{a-c}.tile.openstreetmap.org/{z}/{x}/{y}.png",wrapX:n.wrapX,attributionsCollapsible:!1})}return t&&(e.__proto__=t),(e.prototype=Object.create(t&&t.prototype)).constructor=e,e}(function(t){function e(e){var n,i,r,o=e||{},s=void 0!==o.projection?o.projection:"EPSG:3857",a=void 0!==o.tileGrid?o.tileGrid:(r={extent:i=(n={extent:HO(s),maxZoom:o.maxZoom,minZoom:o.minZoom,tileSize:o.tileSize}||{}).extent||ME("EPSG:3857").getExtent(),minZoom:n.minZoom,tileSize:n.tileSize,resolutions:UO(i,n.maxZoom,n.tileSize)},new BO(r));t.call(this,{attributions:o.attributions,cacheSize:o.cacheSize,crossOrigin:o.crossOrigin,opaque:o.opaque,projection:s,reprojectionErrorThreshold:o.reprojectionErrorThreshold,tileGrid:a,tileLoadFunction:o.tileLoadFunction,tilePixelRatio:o.tilePixelRatio,tileUrlFunction:o.tileUrlFunction,url:o.url,urls:o.urls,wrapX:void 0===o.wrapX||o.wrapX,transition:o.transition,attributionsCollapsible:o.attributionsCollapsible})}return t&&(e.__proto__=t),(e.prototype=Object.create(t&&t.prototype)).constructor=e,e}(function(t){function e(e){t.call(this,{attributions:e.attributions,cacheSize:e.cacheSize,opaque:e.opaque,projection:e.projection,state:e.state,tileGrid:e.tileGrid,tileLoadFunction:e.tileLoadFunction?e.tileLoadFunction:YO,tilePixelRatio:e.tilePixelRatio,tileUrlFunction:e.tileUrlFunction,url:e.url,urls:e.urls,wrapX:e.wrapX,transition:e.transition,key:e.key,attributionsCollapsible:e.attributionsCollapsible}),this.crossOrigin=void 0!==e.crossOrigin?e.crossOrigin:null,this.tileClass=void 0!==e.tileClass?e.tileClass:EO,this.tileCacheForProjection={},this.tileGridForProjection={},this.reprojectionErrorThreshold_=e.reprojectionErrorThreshold,this.renderReprojectionEdges_=!1}return t&&(e.__proto__=t),(e.prototype=Object.create(t&&t.prototype)).constructor=e,e.prototype.canExpireCache=function(){if(this.tileCache.canExpireCache())return!0;for(var t in this.tileCacheForProjection)if(this.tileCacheForProjection[t].canExpireCache())return!0;return!1},e.prototype.expireCache=function(t,e){var n=this.getTileCacheForProjection(t);for(var i in this.tileCache.expireCache(this.tileCache==n?e:{}),this.tileCacheForProjection){var r=this.tileCacheForProjection[i];r.expireCache(r==n?e:{})}},e.prototype.getGutterForProjection=function(t){return this.getProjection()&&t&&!BE(this.getProjection(),t)?0:this.getGutter()},e.prototype.getGutter=function(){return 0},e.prototype.getOpaque=function(e){return!(this.getProjection()&&e&&!BE(this.getProjection(),e))&&t.prototype.getOpaque.call(this,e)},e.prototype.getTileGridForProjection=function(t){var e=this.getProjection();if(!this.tileGrid||e&&!BE(e,t)){var n=bw(t);return n in this.tileGridForProjection||(this.tileGridForProjection[n]=GO(t)),this.tileGridForProjection[n]}return this.tileGrid},e.prototype.getTileCacheForProjection=function(t){var e=this.getProjection();if(!e||BE(e,t))return this.tileCache;var n=bw(t);return n in this.tileCacheForProjection||(this.tileCacheForProjection[n]=new OO(this.tileCache.highWaterMark)),this.tileCacheForProjection[n]},e.prototype.createTile_=function(t,e,n,i,r,o){var s=[t,e,n],a=this.getTileCoordForTileUrlFunction(s,r),l=a?this.tileUrlFunction(a,i,r):void 0,u=new this.tileClass(s,void 0!==l?sx.IDLE:sx.EMPTY,void 0!==l?l:"",this.crossOrigin,this.tileLoadFunction,this.tileOptions);return u.key=o,Aw(u,qw.CHANGE,this.handleTileChange,this),u},e.prototype.getTile=function(t,e,n,i,r){var o=this.getProjection();if(o&&r&&!BE(o,r)){var s,a=this.getTileCacheForProjection(r),l=[t,e,n],u=IO(l);a.containsKey(u)&&(s=a.get(u));var c=this.getKey();if(s&&s.key==c)return s;var h=this.getTileGridForProjection(o),p=this.getTileGridForProjection(r),d=this.getTileCoordForTileUrlFunction(l,r),f=new DO(o,h,r,p,l,d,this.getTilePixelRatio(i),this.getGutter(),(function(t,e,n,i){return this.getTileInternal(t,e,n,i,o)}).bind(this),this.reprojectionErrorThreshold_,this.renderReprojectionEdges_);return f.key=c,s?(f.interimTile=s,f.refreshInterimChain(),a.replace(u,f)):a.set(u,f),f}return this.getTileInternal(t,e,n,i,o||r)},e.prototype.getTileInternal=function(t,e,n,i,r){var o=null,s=TO(t,e,n),a=this.getKey();if(this.tileCache.containsKey(s)){if((o=this.tileCache.get(s)).key!=a){var l=o;(o=this.createTile_(t,e,n,i,r,a)).interimTile=l.getState()==sx.IDLE?l.interimTile:l,o.refreshInterimChain(),this.tileCache.replace(s,o)}}else o=this.createTile_(t,e,n,i,r,a),this.tileCache.set(s,o);return o},e.prototype.setRenderReprojectionEdges=function(t){if(this.renderReprojectionEdges_!=t){for(var e in this.renderReprojectionEdges_=t,this.tileCacheForProjection)this.tileCacheForProjection[e].clear();this.changed()}},e.prototype.setTileGridForProjection=function(t,e){var n=ME(t);if(n){var i=bw(n);i in this.tileGridForProjection||(this.tileGridForProjection[i]=e)}},e}(function(t){function e(e){t.call(this,{attributions:e.attributions,cacheSize:e.cacheSize,opaque:e.opaque,projection:e.projection,state:e.state,tileGrid:e.tileGrid,tilePixelRatio:e.tilePixelRatio,wrapX:e.wrapX,transition:e.transition,key:e.key,attributionsCollapsible:e.attributionsCollapsible}),this.generateTileUrlFunction_=!e.tileUrlFunction,this.tileLoadFunction=e.tileLoadFunction,this.tileUrlFunction=e.tileUrlFunction?e.tileUrlFunction.bind(this):MO,this.urls=null,e.urls?this.setUrls(e.urls):e.url&&this.setUrl(e.url),e.tileUrlFunction&&this.setTileUrlFunction(e.tileUrlFunction,this.key_),this.tileLoadingKeys_={}}return t&&(e.__proto__=t),(e.prototype=Object.create(t&&t.prototype)).constructor=e,e.prototype.getTileLoadFunction=function(){return this.tileLoadFunction},e.prototype.getTileUrlFunction=function(){return this.tileUrlFunction},e.prototype.getUrls=function(){return this.urls},e.prototype.handleTileChange=function(t){var e,n=t.target,i=bw(n),r=n.getState();r==sx.LOADING?(this.tileLoadingKeys_[i]=!0,e="tileloadstart"):i in this.tileLoadingKeys_&&(delete this.tileLoadingKeys_[i],e=r==sx.ERROR?"tileloaderror":r==sx.LOADED||r==sx.ABORT?"tileloadend":void 0),null!=e&&this.dispatchEvent(new WO(e,n))},e.prototype.setTileLoadFunction=function(t){this.tileCache.clear(),this.tileLoadFunction=t,this.changed()},e.prototype.setTileUrlFunction=function(t,e){this.tileUrlFunction=t,this.tileCache.pruneExceptNewestZ(),void 0!==e?this.setKey(e):this.changed()},e.prototype.setUrl=function(t){var e=this.urls=function(t){var e=[],n=/\{([a-z])-([a-z])\}/.exec(t);if(n){var i,r=n[1].charCodeAt(0),o=n[2].charCodeAt(0);for(i=r;i<=o;++i)e.push(t.replace(n[0],String.fromCharCode(i)));return e}if(n=n=/\{(\d+)-(\d+)\}/.exec(t)){for(var s=parseInt(n[2],10),a=parseInt(n[1],10);a<=s;a++)e.push(t.replace(n[0],a.toString()));return e}return e.push(t),e}(t);this.setUrls(e)},e.prototype.setUrls=function(t){this.urls=t;var e=t.join("\n");this.generateTileUrlFunction_?this.setTileUrlFunction(function(t,e){for(var n=t.length,i=new Array(n),r=0;rs)return 1;if(s>o)return-1}return 0}(this.params_.VERSION||"1.3.0")>=0},e}(function(t){function e(e){t.call(this,{attributions:e.attributions,projection:e.projection,state:e.state}),this.resolutions_=void 0!==e.resolutions?e.resolutions:null,this.reprojectedImage_=null,this.reprojectedRevision_=0}return t&&(e.__proto__=t),(e.prototype=Object.create(t&&t.prototype)).constructor=e,e.prototype.getResolutions=function(){return this.resolutions_},e.prototype.findNearestResolution=function(t){if(this.resolutions_){var e=YC(this.resolutions_,t,0);t=this.resolutions_[e]}return t},e.prototype.getImage=function(t,e,n,i){var r=this.getProjection();if(r&&i&&!BE(r,i)){if(this.reprojectedImage_){if(this.reprojectedRevision_==this.getRevision()&&BE(this.reprojectedImage_.getProjection(),i)&&this.reprojectedImage_.getResolution()==e&&Ux(this.reprojectedImage_.getExtent(),t))return this.reprojectedImage_;this.reprojectedImage_.dispose(),this.reprojectedImage_=null}return this.reprojectedImage_=new hR(r,i,t,e,n,(function(t,e,n){return this.getImageInternal(t,e,n,r)}).bind(this)),this.reprojectedRevision_=this.getRevision(),this.reprojectedImage_}return r&&(i=r),this.getImageInternal(t,e,n,i)},e.prototype.getImageInternal=function(t,e,n,i){return _w()},e.prototype.handleImageChange=function(t){var e=t.target;switch(e.getState()){case WT.LOADING:this.loading=!0,this.dispatchEvent(new pR("imageloadstart",e));break;case WT.LOADED:this.loading=!1,this.dispatchEvent(new pR("imageloadend",e));break;case WT.ERROR:this.loading=!1,this.dispatchEvent(new pR("imageloaderror",e))}},e}(jO)),gR={ARRAY_BUFFER:"arraybuffer",JSON:"json",TEXT:"text",XML:"xml"};function yR(t,e){return[[-1/0,-1/0,1/0,1/0]]}var _R=function(t){this.rbush_=MI()(t,void 0),this.items_={}};_R.prototype.insert=function(t,e){var n={minX:t[0],minY:t[1],maxX:t[2],maxY:t[3],value:e};this.rbush_.insert(n),this.items_[bw(e)]=n},_R.prototype.load=function(t,e){for(var n=new Array(e.length),i=0,r=e.length;i=200&&s.status<300){var n,r=e.getType();r==gR.JSON||r==gR.TEXT?n=s.responseText:r==gR.XML?(n=s.responseXML)||(n=(new DOMParser).parseFromString(s.responseText,"application/xml")):r==gR.ARRAY_BUFFER&&(n=s.response),n?(function(t,e){"function"==typeof this.addFeatures&&this.addFeatures(t)}).call(this,e.readFeatures(n,{featureProjection:o}),e.readProjection(n),e.getLastExtent()):i.call(this)}else i.call(this)}).bind(this),s.onerror=(function(){i.call(this)}).bind(this),s.send()}}(this.url_,this.format_,0,zw)),this.strategy_=void 0!==n.strategy?n.strategy:yR;var i,r,o=void 0===n.useSpatialIndex||n.useSpatialIndex;this.featuresRtree_=o?new vR:null,this.loadedExtentsRtree_=new vR,this.nullGeometryFeatures_={},this.idIndex_={},this.undefIdIndex_={},this.featureChangeKeys_={},this.featuresCollection_=null,Array.isArray(n.features)?r=n.features:n.features&&(r=(i=n.features).getArray()),o||void 0!==i||(i=new Jw(r)),void 0!==r&&this.addFeaturesInternal(r),void 0!==i&&this.bindFeaturesCollection_(i)}return t&&(e.__proto__=t),(e.prototype=Object.create(t&&t.prototype)).constructor=e,e.prototype.addFeature=function(t){this.addFeatureInternal(t),this.changed()},e.prototype.addFeatureInternal=function(t){var e=bw(t);if(this.addToIndex_(e,t)){this.setupChangeEvents_(e,t);var n=t.getGeometry();if(n){var i=n.getExtent();this.featuresRtree_&&this.featuresRtree_.insert(i,t)}else this.nullGeometryFeatures_[e]=t;this.dispatchEvent(new bR("addfeature",t))}},e.prototype.setupChangeEvents_=function(t,e){this.featureChangeKeys_[t]=[Aw(e,qw.CHANGE,this.handleFeatureChange_,this),Aw(e,"propertychange",this.handleFeatureChange_,this)]},e.prototype.addToIndex_=function(t,e){var n=!0,i=e.getId();return void 0!==i?i.toString()in this.idIndex_?n=!1:this.idIndex_[i.toString()]=e:(ax(!(t in this.undefIdIndex_),30),this.undefIdIndex_[t]=e),n},e.prototype.addFeatures=function(t){this.addFeaturesInternal(t),this.changed()},e.prototype.addFeaturesInternal=function(t){for(var e=[],n=[],i=[],r=0,o=t.length;r>1)],e))<0?s=i+1:(a=i,l=!r);return l?s:~s}(p,g);if(y<0){var _=(g-p[-y-2])/(p[-y-1]-p[-y-2]),v=e+(-y-2)*i;s=_x(t[v],t[v+i],_),a=_x(t[v+1],t[v+i+1],_)}else s=t[e+y*i],a=t[e+y*i+1]}return o?(o[0]=s,o[1]=a,o):[s,a]}function kR(t,e,n,i,r,o){if(n==e)return null;var s;if(r>1;r180)&&(n[0]=yx(i+180,360)-180),n),o=t.getPointFromLonLat(r),s=new CR({geometry:o});t.vectSource.addFeature(s);var a=e.pixel,l=o.getCoordinates(),u=new YR;u.longitude=l[0],u.latitude=l[1];var c=t.getDialogConfig(a,"Salva posizione",u,!0),h=t.dialogService.openDialog(WR,c).componentInstance.pointEvent.subscribe(function(){t.getBePoints(),h.unsubscribe()})})},t.prototype.getBePoints=function(){var t=this;this.removeAllMarkers(),this.beVectSource.clear(),this.mapService.getUserLocations().subscribe(function(e){if(e instanceof Array)for(var n=0,i=e;n=0;n--){var i=e[n];if(i.svgElement){var r=this._extractSvgIconFromSet(i.svgElement,t);if(r)return r}}return null},t.prototype._loadSvgIconFromConfig=function(t){var e=this;return this._fetchUrl(t.url).pipe(Y(function(t){return e._createSvgElementForSingleIcon(t)}))},t.prototype._loadSvgIconSetFromConfig=function(t){var e=this;return t.svgElement?ta(t.svgElement):this._fetchUrl(t.url).pipe(Y(function(n){return t.svgElement||(t.svgElement=e._svgElementFromString(n)),t.svgElement}))},t.prototype._createSvgElementForSingleIcon=function(t){var e=this._svgElementFromString(t);return this._setSvgAttributes(e),e},t.prototype._extractSvgIconFromSet=function(t,e){var n=t.querySelector("#"+e);if(!n)return null;var i=n.cloneNode(!0);if(i.removeAttribute("id"),"svg"===i.nodeName.toLowerCase())return this._setSvgAttributes(i);if("symbol"===i.nodeName.toLowerCase())return this._setSvgAttributes(this._toSvgElement(i));var r=this._svgElementFromString("");return r.appendChild(i),this._setSvgAttributes(r)},t.prototype._svgElementFromString=function(t){var e=this._document.createElement("DIV");e.innerHTML=t;var n=e.querySelector("svg");if(!n)throw Error(" tag not found");return n},t.prototype._toSvgElement=function(t){for(var e=this._svgElementFromString(""),n=0;n3&&Jf(e,"mat-multi-line",!0)})},e.prototype.ngOnDestroy=function(){this._destroyed.next(),this._destroyed.complete()},e.prototype._isRippleDisabled=function(){return!this._isInteractiveList||this.disableRipple||!(!this._list||!this._list.disableRipple)},e.prototype._getHostElement=function(){return this._element.nativeElement},e}(Tk),kk=function(){return function(){}}(),Pk=Qi({encapsulation:2,styles:[".mat-option{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;display:block;line-height:48px;height:48px;padding:0 16px;text-align:left;text-decoration:none;max-width:100%;position:relative;cursor:pointer;outline:0;display:flex;flex-direction:row;max-width:100%;box-sizing:border-box;align-items:center;-webkit-tap-highlight-color:transparent}.mat-option[disabled]{cursor:default}[dir=rtl] .mat-option{text-align:right}.mat-option .mat-icon{margin-right:16px;vertical-align:middle}.mat-option .mat-icon svg{vertical-align:top}[dir=rtl] .mat-option .mat-icon{margin-left:16px;margin-right:0}.mat-option[aria-disabled=true]{-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;cursor:default}.mat-optgroup .mat-option:not(.mat-option-multiple){padding-left:32px}[dir=rtl] .mat-optgroup .mat-option:not(.mat-option-multiple){padding-left:16px;padding-right:32px}@media (-ms-high-contrast:active){.mat-option{margin:0 1px}.mat-option.mat-active{border:solid 1px currentColor;margin:0}}.mat-option-text{display:inline-block;flex-grow:1;overflow:hidden;text-overflow:ellipsis}.mat-option .mat-option-ripple{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none}@media (-ms-high-contrast:active){.mat-option .mat-option-ripple{opacity:.5}}.mat-option-pseudo-checkbox{margin-right:8px}[dir=rtl] .mat-option-pseudo-checkbox{margin-left:8px;margin-right:0}"],data:{}});function Ak(t){return Go(0,[(t()(),Sr(0,0,null,null,1,"mat-pseudo-checkbox",[["class","mat-option-pseudo-checkbox mat-pseudo-checkbox"]],[[2,"mat-pseudo-checkbox-indeterminate",null],[2,"mat-pseudo-checkbox-checked",null],[2,"mat-pseudo-checkbox-disabled",null],[2,"_mat-animation-noopable",null]],null,null,Fk,Dk)),fo(1,49152,null,0,um,[[2,r_]],{state:[0,"state"],disabled:[1,"disabled"]},null)],function(t,e){var n=e.component;t(e,1,0,n.selected?"checked":"",n.disabled)},function(t,e){t(e,0,0,"indeterminate"===to(e,1).state,"checked"===to(e,1).state,to(e,1).disabled,"NoopAnimations"===to(e,1)._animationMode)})}function Lk(t){return Go(2,[(t()(),Er(16777216,null,null,1,null,Ak)),fo(1,16384,null,0,pl,[si,Pe],{ngIf:[0,"ngIf"]},null),(t()(),Sr(2,0,null,null,1,"span",[["class","mat-option-text"]],null,null,null,null,null)),Fo(null,0),(t()(),Sr(4,0,null,null,1,"div",[["class","mat-option-ripple mat-ripple"],["mat-ripple",""]],[[2,"mat-ripple-unbounded",null]],null,null,null,null)),fo(5,212992,null,0,am,[Ee,Fn,Qd,[2,sm],[2,r_]],{disabled:[0,"disabled"],trigger:[1,"trigger"]},null)],function(t,e){var n=e.component;t(e,1,0,n.multiple),t(e,5,0,n.disabled||n.disableRipple,n._getHostElement())},function(t,e){t(e,4,0,to(e,5).unbounded)})}var Dk=Qi({encapsulation:2,styles:[".mat-pseudo-checkbox{width:16px;height:16px;border:2px solid;border-radius:2px;cursor:pointer;display:inline-block;vertical-align:middle;box-sizing:border-box;position:relative;flex-shrink:0;transition:border-color 90ms cubic-bezier(0,0,.2,.1),background-color 90ms cubic-bezier(0,0,.2,.1)}.mat-pseudo-checkbox::after{position:absolute;opacity:0;content:'';border-bottom:2px solid currentColor;transition:opacity 90ms cubic-bezier(0,0,.2,.1)}.mat-pseudo-checkbox.mat-pseudo-checkbox-checked,.mat-pseudo-checkbox.mat-pseudo-checkbox-indeterminate{border-color:transparent}._mat-animation-noopable.mat-pseudo-checkbox{transition:none;animation:none}._mat-animation-noopable.mat-pseudo-checkbox::after{transition:none}.mat-pseudo-checkbox-disabled{cursor:default}.mat-pseudo-checkbox-indeterminate::after{top:5px;left:1px;width:10px;opacity:1;border-radius:2px}.mat-pseudo-checkbox-checked::after{top:2.4px;left:1px;width:8px;height:3px;border-left:2px solid currentColor;transform:rotate(-45deg);opacity:1;box-sizing:content-box}"],data:{}});function Fk(t){return Go(2,[],null,null)}var Mk=Qi({encapsulation:2,styles:[".mat-subheader{display:flex;box-sizing:border-box;padding:16px;align-items:center}.mat-list-base .mat-subheader{margin:0}.mat-list-base{padding-top:8px;display:block;-webkit-tap-highlight-color:transparent}.mat-list-base .mat-subheader{height:48px;line-height:16px}.mat-list-base .mat-subheader:first-child{margin-top:-8px}.mat-list-base .mat-list-item,.mat-list-base .mat-list-option{display:block;height:48px;-webkit-tap-highlight-color:transparent;width:100%;padding:0}.mat-list-base .mat-list-item .mat-list-item-content,.mat-list-base .mat-list-option .mat-list-item-content{display:flex;flex-direction:row;align-items:center;box-sizing:border-box;padding:0 16px;position:relative;height:inherit}.mat-list-base .mat-list-item .mat-list-item-content-reverse,.mat-list-base .mat-list-option .mat-list-item-content-reverse{display:flex;align-items:center;padding:0 16px;flex-direction:row-reverse;justify-content:space-around}.mat-list-base .mat-list-item .mat-list-item-ripple,.mat-list-base .mat-list-option .mat-list-item-ripple{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none}.mat-list-base .mat-list-item.mat-list-item-with-avatar,.mat-list-base .mat-list-option.mat-list-item-with-avatar{height:56px}.mat-list-base .mat-list-item.mat-2-line,.mat-list-base .mat-list-option.mat-2-line{height:72px}.mat-list-base .mat-list-item.mat-3-line,.mat-list-base .mat-list-option.mat-3-line{height:88px}.mat-list-base .mat-list-item.mat-multi-line,.mat-list-base .mat-list-option.mat-multi-line{height:auto}.mat-list-base .mat-list-item.mat-multi-line .mat-list-item-content,.mat-list-base .mat-list-option.mat-multi-line .mat-list-item-content{padding-top:16px;padding-bottom:16px}.mat-list-base .mat-list-item .mat-list-text,.mat-list-base .mat-list-option .mat-list-text{display:flex;flex-direction:column;width:100%;box-sizing:border-box;overflow:hidden;padding:0}.mat-list-base .mat-list-item .mat-list-text>*,.mat-list-base .mat-list-option .mat-list-text>*{margin:0;padding:0;font-weight:400;font-size:inherit}.mat-list-base .mat-list-item .mat-list-text:empty,.mat-list-base .mat-list-option .mat-list-text:empty{display:none}.mat-list-base .mat-list-item.mat-list-item-with-avatar .mat-list-item-content .mat-list-text,.mat-list-base .mat-list-item.mat-list-option .mat-list-item-content .mat-list-text,.mat-list-base .mat-list-option.mat-list-item-with-avatar .mat-list-item-content .mat-list-text,.mat-list-base .mat-list-option.mat-list-option .mat-list-item-content .mat-list-text{padding-right:0;padding-left:16px}[dir=rtl] .mat-list-base .mat-list-item.mat-list-item-with-avatar .mat-list-item-content .mat-list-text,[dir=rtl] .mat-list-base .mat-list-item.mat-list-option .mat-list-item-content .mat-list-text,[dir=rtl] .mat-list-base .mat-list-option.mat-list-item-with-avatar .mat-list-item-content .mat-list-text,[dir=rtl] .mat-list-base .mat-list-option.mat-list-option .mat-list-item-content .mat-list-text{padding-right:16px;padding-left:0}.mat-list-base .mat-list-item.mat-list-item-with-avatar .mat-list-item-content-reverse .mat-list-text,.mat-list-base .mat-list-item.mat-list-option .mat-list-item-content-reverse .mat-list-text,.mat-list-base .mat-list-option.mat-list-item-with-avatar .mat-list-item-content-reverse .mat-list-text,.mat-list-base .mat-list-option.mat-list-option .mat-list-item-content-reverse .mat-list-text{padding-left:0;padding-right:16px}[dir=rtl] .mat-list-base .mat-list-item.mat-list-item-with-avatar .mat-list-item-content-reverse .mat-list-text,[dir=rtl] .mat-list-base .mat-list-item.mat-list-option .mat-list-item-content-reverse .mat-list-text,[dir=rtl] .mat-list-base .mat-list-option.mat-list-item-with-avatar .mat-list-item-content-reverse .mat-list-text,[dir=rtl] .mat-list-base .mat-list-option.mat-list-option .mat-list-item-content-reverse .mat-list-text{padding-right:0;padding-left:16px}.mat-list-base .mat-list-item.mat-list-item-with-avatar.mat-list-option .mat-list-item-content .mat-list-text,.mat-list-base .mat-list-item.mat-list-item-with-avatar.mat-list-option .mat-list-item-content-reverse .mat-list-text,.mat-list-base .mat-list-option.mat-list-item-with-avatar.mat-list-option .mat-list-item-content .mat-list-text,.mat-list-base .mat-list-option.mat-list-item-with-avatar.mat-list-option .mat-list-item-content-reverse .mat-list-text{padding-right:16px;padding-left:16px}.mat-list-base .mat-list-item .mat-list-avatar,.mat-list-base .mat-list-option .mat-list-avatar{flex-shrink:0;width:40px;height:40px;border-radius:50%;object-fit:cover}.mat-list-base .mat-list-item .mat-list-avatar~.mat-divider-inset,.mat-list-base .mat-list-option .mat-list-avatar~.mat-divider-inset{margin-left:72px;width:calc(100% - 72px)}[dir=rtl] .mat-list-base .mat-list-item .mat-list-avatar~.mat-divider-inset,[dir=rtl] .mat-list-base .mat-list-option .mat-list-avatar~.mat-divider-inset{margin-left:auto;margin-right:72px}.mat-list-base .mat-list-item .mat-list-icon,.mat-list-base .mat-list-option .mat-list-icon{flex-shrink:0;width:24px;height:24px;font-size:24px;box-sizing:content-box;border-radius:50%;padding:4px}.mat-list-base .mat-list-item .mat-list-icon~.mat-divider-inset,.mat-list-base .mat-list-option .mat-list-icon~.mat-divider-inset{margin-left:64px;width:calc(100% - 64px)}[dir=rtl] .mat-list-base .mat-list-item .mat-list-icon~.mat-divider-inset,[dir=rtl] .mat-list-base .mat-list-option .mat-list-icon~.mat-divider-inset{margin-left:auto;margin-right:64px}.mat-list-base .mat-list-item .mat-divider,.mat-list-base .mat-list-option .mat-divider{position:absolute;bottom:0;left:0;width:100%;margin:0}[dir=rtl] .mat-list-base .mat-list-item .mat-divider,[dir=rtl] .mat-list-base .mat-list-option .mat-divider{margin-left:auto;margin-right:0}.mat-list-base .mat-list-item .mat-divider.mat-divider-inset,.mat-list-base .mat-list-option .mat-divider.mat-divider-inset{position:absolute}.mat-list-base[dense]{padding-top:4px;display:block}.mat-list-base[dense] .mat-subheader{height:40px;line-height:8px}.mat-list-base[dense] .mat-subheader:first-child{margin-top:-4px}.mat-list-base[dense] .mat-list-item,.mat-list-base[dense] .mat-list-option{display:block;height:40px;-webkit-tap-highlight-color:transparent;width:100%;padding:0}.mat-list-base[dense] .mat-list-item .mat-list-item-content,.mat-list-base[dense] .mat-list-option .mat-list-item-content{display:flex;flex-direction:row;align-items:center;box-sizing:border-box;padding:0 16px;position:relative;height:inherit}.mat-list-base[dense] .mat-list-item .mat-list-item-content-reverse,.mat-list-base[dense] .mat-list-option .mat-list-item-content-reverse{display:flex;align-items:center;padding:0 16px;flex-direction:row-reverse;justify-content:space-around}.mat-list-base[dense] .mat-list-item .mat-list-item-ripple,.mat-list-base[dense] .mat-list-option .mat-list-item-ripple{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none}.mat-list-base[dense] .mat-list-item.mat-list-item-with-avatar,.mat-list-base[dense] .mat-list-option.mat-list-item-with-avatar{height:48px}.mat-list-base[dense] .mat-list-item.mat-2-line,.mat-list-base[dense] .mat-list-option.mat-2-line{height:60px}.mat-list-base[dense] .mat-list-item.mat-3-line,.mat-list-base[dense] .mat-list-option.mat-3-line{height:76px}.mat-list-base[dense] .mat-list-item.mat-multi-line,.mat-list-base[dense] .mat-list-option.mat-multi-line{height:auto}.mat-list-base[dense] .mat-list-item.mat-multi-line .mat-list-item-content,.mat-list-base[dense] .mat-list-option.mat-multi-line .mat-list-item-content{padding-top:16px;padding-bottom:16px}.mat-list-base[dense] .mat-list-item .mat-list-text,.mat-list-base[dense] .mat-list-option .mat-list-text{display:flex;flex-direction:column;width:100%;box-sizing:border-box;overflow:hidden;padding:0}.mat-list-base[dense] .mat-list-item .mat-list-text>*,.mat-list-base[dense] .mat-list-option .mat-list-text>*{margin:0;padding:0;font-weight:400;font-size:inherit}.mat-list-base[dense] .mat-list-item .mat-list-text:empty,.mat-list-base[dense] .mat-list-option .mat-list-text:empty{display:none}.mat-list-base[dense] .mat-list-item.mat-list-item-with-avatar .mat-list-item-content .mat-list-text,.mat-list-base[dense] .mat-list-item.mat-list-option .mat-list-item-content .mat-list-text,.mat-list-base[dense] .mat-list-option.mat-list-item-with-avatar .mat-list-item-content .mat-list-text,.mat-list-base[dense] .mat-list-option.mat-list-option .mat-list-item-content .mat-list-text{padding-right:0;padding-left:16px}[dir=rtl] .mat-list-base[dense] .mat-list-item.mat-list-item-with-avatar .mat-list-item-content .mat-list-text,[dir=rtl] .mat-list-base[dense] .mat-list-item.mat-list-option .mat-list-item-content .mat-list-text,[dir=rtl] .mat-list-base[dense] .mat-list-option.mat-list-item-with-avatar .mat-list-item-content .mat-list-text,[dir=rtl] .mat-list-base[dense] .mat-list-option.mat-list-option .mat-list-item-content .mat-list-text{padding-right:16px;padding-left:0}.mat-list-base[dense] .mat-list-item.mat-list-item-with-avatar .mat-list-item-content-reverse .mat-list-text,.mat-list-base[dense] .mat-list-item.mat-list-option .mat-list-item-content-reverse .mat-list-text,.mat-list-base[dense] .mat-list-option.mat-list-item-with-avatar .mat-list-item-content-reverse .mat-list-text,.mat-list-base[dense] .mat-list-option.mat-list-option .mat-list-item-content-reverse .mat-list-text{padding-left:0;padding-right:16px}[dir=rtl] .mat-list-base[dense] .mat-list-item.mat-list-item-with-avatar .mat-list-item-content-reverse .mat-list-text,[dir=rtl] .mat-list-base[dense] .mat-list-item.mat-list-option .mat-list-item-content-reverse .mat-list-text,[dir=rtl] .mat-list-base[dense] .mat-list-option.mat-list-item-with-avatar .mat-list-item-content-reverse .mat-list-text,[dir=rtl] .mat-list-base[dense] .mat-list-option.mat-list-option .mat-list-item-content-reverse .mat-list-text{padding-right:0;padding-left:16px}.mat-list-base[dense] .mat-list-item.mat-list-item-with-avatar.mat-list-option .mat-list-item-content .mat-list-text,.mat-list-base[dense] .mat-list-item.mat-list-item-with-avatar.mat-list-option .mat-list-item-content-reverse .mat-list-text,.mat-list-base[dense] .mat-list-option.mat-list-item-with-avatar.mat-list-option .mat-list-item-content .mat-list-text,.mat-list-base[dense] .mat-list-option.mat-list-item-with-avatar.mat-list-option .mat-list-item-content-reverse .mat-list-text{padding-right:16px;padding-left:16px}.mat-list-base[dense] .mat-list-item .mat-list-avatar,.mat-list-base[dense] .mat-list-option .mat-list-avatar{flex-shrink:0;width:36px;height:36px;border-radius:50%;object-fit:cover}.mat-list-base[dense] .mat-list-item .mat-list-avatar~.mat-divider-inset,.mat-list-base[dense] .mat-list-option .mat-list-avatar~.mat-divider-inset{margin-left:68px;width:calc(100% - 68px)}[dir=rtl] .mat-list-base[dense] .mat-list-item .mat-list-avatar~.mat-divider-inset,[dir=rtl] .mat-list-base[dense] .mat-list-option .mat-list-avatar~.mat-divider-inset{margin-left:auto;margin-right:68px}.mat-list-base[dense] .mat-list-item .mat-list-icon,.mat-list-base[dense] .mat-list-option .mat-list-icon{flex-shrink:0;width:20px;height:20px;font-size:20px;box-sizing:content-box;border-radius:50%;padding:4px}.mat-list-base[dense] .mat-list-item .mat-list-icon~.mat-divider-inset,.mat-list-base[dense] .mat-list-option .mat-list-icon~.mat-divider-inset{margin-left:60px;width:calc(100% - 60px)}[dir=rtl] .mat-list-base[dense] .mat-list-item .mat-list-icon~.mat-divider-inset,[dir=rtl] .mat-list-base[dense] .mat-list-option .mat-list-icon~.mat-divider-inset{margin-left:auto;margin-right:60px}.mat-list-base[dense] .mat-list-item .mat-divider,.mat-list-base[dense] .mat-list-option .mat-divider{position:absolute;bottom:0;left:0;width:100%;margin:0}[dir=rtl] .mat-list-base[dense] .mat-list-item .mat-divider,[dir=rtl] .mat-list-base[dense] .mat-list-option .mat-divider{margin-left:auto;margin-right:0}.mat-list-base[dense] .mat-list-item .mat-divider.mat-divider-inset,.mat-list-base[dense] .mat-list-option .mat-divider.mat-divider-inset{position:absolute}.mat-nav-list a{text-decoration:none;color:inherit}.mat-nav-list .mat-list-item{cursor:pointer;outline:0}mat-action-list button{background:0 0;color:inherit;border:none;font:inherit;outline:inherit;-webkit-tap-highlight-color:transparent;text-align:left}[dir=rtl] mat-action-list button{text-align:right}mat-action-list button::-moz-focus-inner{border:0}mat-action-list .mat-list-item{cursor:pointer;outline:inherit}.mat-list-option:not(.mat-list-item-disabled){cursor:pointer;outline:0}@media (-ms-high-contrast:active){.mat-selection-list:focus{outline-style:dotted}.mat-list-option:focus,.mat-list-option:hover,.mat-nav-list .mat-list-item:focus,.mat-nav-list .mat-list-item:hover,mat-action-list .mat-list-item:focus,mat-action-list .mat-list-item:hover{outline:dotted 1px}}@media (hover:none){.mat-action-list .mat-list-item:not(.mat-list-item-disabled):hover,.mat-list-option:not(.mat-list-item-disabled):hover,.mat-nav-list .mat-list-item:not(.mat-list-item-disabled):hover{background:0 0}}"],data:{}});function Nk(t){return Go(2,[Fo(null,0)],null,null)}var jk=Qi({encapsulation:2,styles:[],data:{}});function Vk(t){return Go(2,[(t()(),Sr(0,0,null,null,6,"div",[["class","mat-list-item-content"]],null,null,null,null,null)),(t()(),Sr(1,0,null,null,1,"div",[["class","mat-list-item-ripple mat-ripple"],["mat-ripple",""]],[[2,"mat-ripple-unbounded",null]],null,null,null,null)),fo(2,212992,null,0,am,[Ee,Fn,Qd,[2,sm],[2,r_]],{disabled:[0,"disabled"],trigger:[1,"trigger"]},null),Fo(null,0),(t()(),Sr(4,0,null,null,1,"div",[["class","mat-list-text"]],null,null,null,null,null)),Fo(null,1),Fo(null,2)],function(t,e){var n=e.component;t(e,2,0,n._isRippleDisabled(),n._getHostElement())},function(t,e){t(e,1,0,to(e,2).unbounded)})}var zk=function(){function t(t,e,n){this.formBuilder=t,this.legendaService=e,this.modalService=n,this.submitted=new ke,this.close=new ke}return t.prototype.ngOnInit=function(){this.populateForm(),this.formBuilder.group(this.legendaForm)},t.prototype.ngOnChanges=function(t){this.populateForm()},t.prototype.onSubmit=function(){var t=this;if(this.legendaForm.invalid)this.modalService.openMessageAlert(bb,new eb("Uno o pi\xf9 campi obbligatorio non sono stati riempiti","red-snackbar"));else{var e=this.bindFormToLegenda();null!=e.id?this.legendaService.updateLegenda(e).subscribe(function(e){t.submitted.emit(),t.modalService.openMessageAlert(bb,new eb("Operazione eseguita con successo","green-snackbar"))}):this.legendaService.saveLegenda(this.bindFormToLegenda()).subscribe(function(e){null!=e&&(t.submitted.emit("submitted"),t.modalService.openMessageAlert(bb,new eb("Operazione eseguita con successo","green-snackbar")))})}},t.prototype.bindFormToLegenda=function(){var t=this.legendaForm.get("codice").value,e=this.legendaForm.get("descrizione").value,n=this.legendaForm.get("colore").value,i=this.legendaForm.get("id").value,r=new UR;return r.codice=t,r.descrizione=e,r.colore=n,r.id=i,r},t.prototype.populateForm=function(){this.legendaForm=this.formBuilder.group({codice:[null!=this.legenda&&null!=this.legenda.codice?this.legenda.codice:"",Dp.required],descrizione:[null!=this.legenda&&null!=this.legenda.descrizione?this.legenda.descrizione:"",Dp.required],colore:[null!=this.legenda&&null!=this.legenda.colore?this.legenda.colore:"",Dp.required],id:[null!=this.legenda&&null!=this.legenda.id?this.legenda.id:null]})},t.prototype.chiudi=function(){this.close.emit()},t}(),Bk=Qi({encapsulation:0,styles:[[".form-container[_ngcontent-%COMP%]{text-align:center;vertical-align:bottom}.color-input[_ngcontent-%COMP%]{width:20px}"]],data:{}});function Gk(t){return Go(0,[(t()(),Sr(0,0,null,null,81,"div",[["class","form-container"]],null,null,null,null,null)),(t()(),Sr(1,0,null,null,1,"p",[["class","template-name"]],null,null,null,null,null)),(t()(),Vo(2,null,["",""])),(t()(),Sr(3,0,null,null,70,"form",[["novalidate",""]],[[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,"submit"],[null,"reset"]],function(t,e,n){var i=!0;return"submit"===e&&(i=!1!==to(t,5).onSubmit(n)&&i),"reset"===e&&(i=!1!==to(t,5).onReset()&&i),i},null,null)),fo(4,16384,null,0,Pd,[],null,null),fo(5,540672,null,0,Ed,[[8,null],[8,null]],{form:[0,"form"]},null),mo(2048,null,kp,null,[Ed]),fo(7,16384,null,0,dd,[[4,kp]],null,null),(t()(),Sr(8,0,null,null,19,"div",[],null,null,null,null,null)),(t()(),Sr(9,0,null,null,18,"mat-form-field",[["class","mat-form-field"],["floatLabel","auto"]],[[2,"mat-form-field-appearance-standard",null],[2,"mat-form-field-appearance-fill",null],[2,"mat-form-field-appearance-outline",null],[2,"mat-form-field-appearance-legacy",null],[2,"mat-form-field-invalid",null],[2,"mat-form-field-can-float",null],[2,"mat-form-field-should-float",null],[2,"mat-form-field-has-label",null],[2,"mat-form-field-hide-placeholder",null],[2,"mat-form-field-disabled",null],[2,"mat-form-field-autofilled",null],[2,"mat-focused",null],[2,"mat-accent",null],[2,"mat-warn",null],[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],[2,"_mat-animation-noopable",null]],null,null,__,s_)),fo(10,7520256,null,7,Rm,[Ee,ai,[2,vm],[2,Mm],[2,Om],Qd,Fn,[2,r_]],{floatLabel:[0,"floatLabel"]},null),ko(335544320,1,{_control:0}),ko(335544320,2,{_placeholderChild:0}),ko(335544320,3,{_labelChild:0}),ko(603979776,4,{_errorChildren:1}),ko(603979776,5,{_hintChildren:1}),ko(603979776,6,{_prefixChildren:1}),ko(603979776,7,{_suffixChildren:1}),(t()(),Sr(18,0,null,1,9,"input",[["class","mat-input-element mat-form-field-autofill-control"],["formControlName","codice"],["matInput",""],["placeholder","Codice"],["required",""],["type","text"]],[[1,"required",0],[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],[2,"mat-input-server",null],[1,"id",0],[1,"placeholder",0],[8,"disabled",0],[8,"required",0],[1,"readonly",0],[1,"aria-describedby",0],[1,"aria-invalid",0],[1,"aria-required",0]],[[null,"input"],[null,"blur"],[null,"compositionstart"],[null,"compositionend"],[null,"focus"]],function(t,e,n){var i=!0;return"input"===e&&(i=!1!==to(t,19)._handleInput(n.target.value)&&i),"blur"===e&&(i=!1!==to(t,19).onTouched()&&i),"compositionstart"===e&&(i=!1!==to(t,19)._compositionStart()&&i),"compositionend"===e&&(i=!1!==to(t,19)._compositionEnd(n.target.value)&&i),"blur"===e&&(i=!1!==to(t,26)._focusChanged(!1)&&i),"focus"===e&&(i=!1!==to(t,26)._focusChanged(!0)&&i),"input"===e&&(i=!1!==to(t,26)._onInput()&&i),i},null,null)),fo(19,16384,null,0,Bp,[Oe,Ee,[2,zp]],null,null),fo(20,16384,null,0,Rd,[],{required:[0,"required"]},null),mo(1024,null,Ap,function(t){return[t]},[Rd]),mo(1024,null,jp,function(t){return[t]},[Bp]),fo(23,671744,null,0,Od,[[3,kp],[6,Ap],[8,null],[6,jp],[2,xd]],{name:[0,"name"]},null),mo(2048,null,Wp,null,[Od]),fo(25,16384,null,0,pd,[[4,Wp]],null,null),fo(26,999424,null,0,R_,[Ee,Qd,[6,Wp],[2,Cd],[2,Ed],Wf,[8,null],S_,Fn],{placeholder:[0,"placeholder"],required:[1,"required"],type:[2,"type"]},null),mo(2048,[[1,4]],Em,null,[R_]),(t()(),Sr(28,0,null,null,19,"div",[],null,null,null,null,null)),(t()(),Sr(29,0,null,null,18,"mat-form-field",[["class","mat-form-field"],["floatLabel","auto"]],[[2,"mat-form-field-appearance-standard",null],[2,"mat-form-field-appearance-fill",null],[2,"mat-form-field-appearance-outline",null],[2,"mat-form-field-appearance-legacy",null],[2,"mat-form-field-invalid",null],[2,"mat-form-field-can-float",null],[2,"mat-form-field-should-float",null],[2,"mat-form-field-has-label",null],[2,"mat-form-field-hide-placeholder",null],[2,"mat-form-field-disabled",null],[2,"mat-form-field-autofilled",null],[2,"mat-focused",null],[2,"mat-accent",null],[2,"mat-warn",null],[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],[2,"_mat-animation-noopable",null]],null,null,__,s_)),fo(30,7520256,null,7,Rm,[Ee,ai,[2,vm],[2,Mm],[2,Om],Qd,Fn,[2,r_]],{floatLabel:[0,"floatLabel"]},null),ko(335544320,8,{_control:0}),ko(335544320,9,{_placeholderChild:0}),ko(335544320,10,{_labelChild:0}),ko(603979776,11,{_errorChildren:1}),ko(603979776,12,{_hintChildren:1}),ko(603979776,13,{_prefixChildren:1}),ko(603979776,14,{_suffixChildren:1}),(t()(),Sr(38,0,null,1,9,"textarea",[["class","mat-input-element mat-form-field-autofill-control"],["formControlName","descrizione"],["matInput",""],["placeholder","Descrizione"],["required",""]],[[1,"required",0],[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],[2,"mat-input-server",null],[1,"id",0],[1,"placeholder",0],[8,"disabled",0],[8,"required",0],[1,"readonly",0],[1,"aria-describedby",0],[1,"aria-invalid",0],[1,"aria-required",0]],[[null,"input"],[null,"blur"],[null,"compositionstart"],[null,"compositionend"],[null,"focus"]],function(t,e,n){var i=!0;return"input"===e&&(i=!1!==to(t,39)._handleInput(n.target.value)&&i),"blur"===e&&(i=!1!==to(t,39).onTouched()&&i),"compositionstart"===e&&(i=!1!==to(t,39)._compositionStart()&&i),"compositionend"===e&&(i=!1!==to(t,39)._compositionEnd(n.target.value)&&i),"blur"===e&&(i=!1!==to(t,46)._focusChanged(!1)&&i),"focus"===e&&(i=!1!==to(t,46)._focusChanged(!0)&&i),"input"===e&&(i=!1!==to(t,46)._onInput()&&i),i},null,null)),fo(39,16384,null,0,Bp,[Oe,Ee,[2,zp]],null,null),fo(40,16384,null,0,Rd,[],{required:[0,"required"]},null),mo(1024,null,Ap,function(t){return[t]},[Rd]),mo(1024,null,jp,function(t){return[t]},[Bp]),fo(43,671744,null,0,Od,[[3,kp],[6,Ap],[8,null],[6,jp],[2,xd]],{name:[0,"name"]},null),mo(2048,null,Wp,null,[Od]),fo(45,16384,null,0,pd,[[4,Wp]],null,null),fo(46,999424,null,0,R_,[Ee,Qd,[6,Wp],[2,Cd],[2,Ed],Wf,[8,null],S_,Fn],{placeholder:[0,"placeholder"],required:[1,"required"]},null),mo(2048,[[8,4]],Em,null,[R_]),(t()(),Sr(48,0,null,null,19,"div",[],null,null,null,null,null)),(t()(),Sr(49,0,null,null,18,"mat-form-field",[["class","mat-form-field"],["floatLabel","auto"]],[[2,"mat-form-field-appearance-standard",null],[2,"mat-form-field-appearance-fill",null],[2,"mat-form-field-appearance-outline",null],[2,"mat-form-field-appearance-legacy",null],[2,"mat-form-field-invalid",null],[2,"mat-form-field-can-float",null],[2,"mat-form-field-should-float",null],[2,"mat-form-field-has-label",null],[2,"mat-form-field-hide-placeholder",null],[2,"mat-form-field-disabled",null],[2,"mat-form-field-autofilled",null],[2,"mat-focused",null],[2,"mat-accent",null],[2,"mat-warn",null],[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],[2,"_mat-animation-noopable",null]],null,null,__,s_)),fo(50,7520256,null,7,Rm,[Ee,ai,[2,vm],[2,Mm],[2,Om],Qd,Fn,[2,r_]],{floatLabel:[0,"floatLabel"]},null),ko(335544320,15,{_control:0}),ko(335544320,16,{_placeholderChild:0}),ko(335544320,17,{_labelChild:0}),ko(603979776,18,{_errorChildren:1}),ko(603979776,19,{_hintChildren:1}),ko(603979776,20,{_prefixChildren:1}),ko(603979776,21,{_suffixChildren:1}),(t()(),Sr(58,0,null,1,9,"input",[["class","color-input mat-input-element mat-form-field-autofill-control"],["formControlName","colore"],["matInput",""],["placeholder","Colore"],["required",""],["type","color"]],[[1,"required",0],[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],[2,"mat-input-server",null],[1,"id",0],[1,"placeholder",0],[8,"disabled",0],[8,"required",0],[1,"readonly",0],[1,"aria-describedby",0],[1,"aria-invalid",0],[1,"aria-required",0]],[[null,"input"],[null,"blur"],[null,"compositionstart"],[null,"compositionend"],[null,"focus"]],function(t,e,n){var i=!0;return"input"===e&&(i=!1!==to(t,59)._handleInput(n.target.value)&&i),"blur"===e&&(i=!1!==to(t,59).onTouched()&&i),"compositionstart"===e&&(i=!1!==to(t,59)._compositionStart()&&i),"compositionend"===e&&(i=!1!==to(t,59)._compositionEnd(n.target.value)&&i),"blur"===e&&(i=!1!==to(t,66)._focusChanged(!1)&&i),"focus"===e&&(i=!1!==to(t,66)._focusChanged(!0)&&i),"input"===e&&(i=!1!==to(t,66)._onInput()&&i),i},null,null)),fo(59,16384,null,0,Bp,[Oe,Ee,[2,zp]],null,null),fo(60,16384,null,0,Rd,[],{required:[0,"required"]},null),mo(1024,null,Ap,function(t){return[t]},[Rd]),mo(1024,null,jp,function(t){return[t]},[Bp]),fo(63,671744,null,0,Od,[[3,kp],[6,Ap],[8,null],[6,jp],[2,xd]],{name:[0,"name"]},null),mo(2048,null,Wp,null,[Od]),fo(65,16384,null,0,pd,[[4,Wp]],null,null),fo(66,999424,null,0,R_,[Ee,Qd,[6,Wp],[2,Cd],[2,Ed],Wf,[8,null],S_,Fn],{placeholder:[0,"placeholder"],required:[1,"required"],type:[2,"type"]},null),mo(2048,[[15,4]],Em,null,[R_]),(t()(),Sr(68,0,null,null,5,"input",[["formControlName","id"],["type","hidden"]],[[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 i=!0;return"input"===e&&(i=!1!==to(t,69)._handleInput(n.target.value)&&i),"blur"===e&&(i=!1!==to(t,69).onTouched()&&i),"compositionstart"===e&&(i=!1!==to(t,69)._compositionStart()&&i),"compositionend"===e&&(i=!1!==to(t,69)._compositionEnd(n.target.value)&&i),i},null,null)),fo(69,16384,null,0,Bp,[Oe,Ee,[2,zp]],null,null),mo(1024,null,jp,function(t){return[t]},[Bp]),fo(71,671744,null,0,Od,[[3,kp],[8,null],[8,null],[6,jp],[2,xd]],{name:[0,"name"]},null),mo(2048,null,Wp,null,[Od]),fo(73,16384,null,0,pd,[[4,Wp]],null,null),(t()(),Sr(74,0,null,null,0,"br",[],null,null,null,null,null)),(t()(),Sr(75,0,null,null,2,"button",[["class"," white-text"],["color","primary"],["mat-raised-button",""],["type","submit"]],[[8,"disabled",0],[2,"_mat-animation-noopable",null]],[[null,"click"]],function(t,e,n){var i=!0;return"click"===e&&(i=!1!==t.component.onSubmit()&&i),i},M_,F_)),fo(76,180224,null,0,L_,[Ee,Qd,Ff,[2,r_]],{color:[0,"color"]},null),(t()(),Vo(-1,0,["Salva"])),(t()(),Sr(78,0,null,null,0,"div",[["class","divider"]],null,null,null,null,null)),(t()(),Sr(79,0,null,null,2,"button",[["class"," white-text"],["color","accent"],["mat-raised-button",""]],[[8,"disabled",0],[2,"_mat-animation-noopable",null]],[[null,"click"]],function(t,e,n){var i=!0;return"click"===e&&(i=!1!==t.component.chiudi()&&i),i},M_,F_)),fo(80,180224,null,0,L_,[Ee,Qd,Ff,[2,r_]],{color:[0,"color"]},null),(t()(),Vo(-1,0,["Chiudi"]))],function(t,e){t(e,5,0,e.component.legendaForm),t(e,10,0,"auto"),t(e,20,0,""),t(e,23,0,"codice"),t(e,26,0,"Codice","","text"),t(e,30,0,"auto"),t(e,40,0,""),t(e,43,0,"descrizione"),t(e,46,0,"Descrizione",""),t(e,50,0,"auto"),t(e,60,0,""),t(e,63,0,"colore"),t(e,66,0,"Colore","","color"),t(e,71,0,"id"),t(e,76,0,"primary"),t(e,80,0,"accent")},function(t,e){t(e,2,0,e.component.templateName),t(e,3,0,to(e,7).ngClassUntouched,to(e,7).ngClassTouched,to(e,7).ngClassPristine,to(e,7).ngClassDirty,to(e,7).ngClassValid,to(e,7).ngClassInvalid,to(e,7).ngClassPending),t(e,9,1,["standard"==to(e,10).appearance,"fill"==to(e,10).appearance,"outline"==to(e,10).appearance,"legacy"==to(e,10).appearance,to(e,10)._control.errorState,to(e,10)._canLabelFloat,to(e,10)._shouldLabelFloat(),to(e,10)._hasFloatingLabel(),to(e,10)._hideControlPlaceholder(),to(e,10)._control.disabled,to(e,10)._control.autofilled,to(e,10)._control.focused,"accent"==to(e,10).color,"warn"==to(e,10).color,to(e,10)._shouldForward("untouched"),to(e,10)._shouldForward("touched"),to(e,10)._shouldForward("pristine"),to(e,10)._shouldForward("dirty"),to(e,10)._shouldForward("valid"),to(e,10)._shouldForward("invalid"),to(e,10)._shouldForward("pending"),!to(e,10)._animationsEnabled]),t(e,18,1,[to(e,20).required?"":null,to(e,25).ngClassUntouched,to(e,25).ngClassTouched,to(e,25).ngClassPristine,to(e,25).ngClassDirty,to(e,25).ngClassValid,to(e,25).ngClassInvalid,to(e,25).ngClassPending,to(e,26)._isServer,to(e,26).id,to(e,26).placeholder,to(e,26).disabled,to(e,26).required,to(e,26).readonly&&!to(e,26)._isNativeSelect||null,to(e,26)._ariaDescribedby||null,to(e,26).errorState,to(e,26).required.toString()]),t(e,29,1,["standard"==to(e,30).appearance,"fill"==to(e,30).appearance,"outline"==to(e,30).appearance,"legacy"==to(e,30).appearance,to(e,30)._control.errorState,to(e,30)._canLabelFloat,to(e,30)._shouldLabelFloat(),to(e,30)._hasFloatingLabel(),to(e,30)._hideControlPlaceholder(),to(e,30)._control.disabled,to(e,30)._control.autofilled,to(e,30)._control.focused,"accent"==to(e,30).color,"warn"==to(e,30).color,to(e,30)._shouldForward("untouched"),to(e,30)._shouldForward("touched"),to(e,30)._shouldForward("pristine"),to(e,30)._shouldForward("dirty"),to(e,30)._shouldForward("valid"),to(e,30)._shouldForward("invalid"),to(e,30)._shouldForward("pending"),!to(e,30)._animationsEnabled]),t(e,38,1,[to(e,40).required?"":null,to(e,45).ngClassUntouched,to(e,45).ngClassTouched,to(e,45).ngClassPristine,to(e,45).ngClassDirty,to(e,45).ngClassValid,to(e,45).ngClassInvalid,to(e,45).ngClassPending,to(e,46)._isServer,to(e,46).id,to(e,46).placeholder,to(e,46).disabled,to(e,46).required,to(e,46).readonly&&!to(e,46)._isNativeSelect||null,to(e,46)._ariaDescribedby||null,to(e,46).errorState,to(e,46).required.toString()]),t(e,49,1,["standard"==to(e,50).appearance,"fill"==to(e,50).appearance,"outline"==to(e,50).appearance,"legacy"==to(e,50).appearance,to(e,50)._control.errorState,to(e,50)._canLabelFloat,to(e,50)._shouldLabelFloat(),to(e,50)._hasFloatingLabel(),to(e,50)._hideControlPlaceholder(),to(e,50)._control.disabled,to(e,50)._control.autofilled,to(e,50)._control.focused,"accent"==to(e,50).color,"warn"==to(e,50).color,to(e,50)._shouldForward("untouched"),to(e,50)._shouldForward("touched"),to(e,50)._shouldForward("pristine"),to(e,50)._shouldForward("dirty"),to(e,50)._shouldForward("valid"),to(e,50)._shouldForward("invalid"),to(e,50)._shouldForward("pending"),!to(e,50)._animationsEnabled]),t(e,58,1,[to(e,60).required?"":null,to(e,65).ngClassUntouched,to(e,65).ngClassTouched,to(e,65).ngClassPristine,to(e,65).ngClassDirty,to(e,65).ngClassValid,to(e,65).ngClassInvalid,to(e,65).ngClassPending,to(e,66)._isServer,to(e,66).id,to(e,66).placeholder,to(e,66).disabled,to(e,66).required,to(e,66).readonly&&!to(e,66)._isNativeSelect||null,to(e,66)._ariaDescribedby||null,to(e,66).errorState,to(e,66).required.toString()]),t(e,68,0,to(e,73).ngClassUntouched,to(e,73).ngClassTouched,to(e,73).ngClassPristine,to(e,73).ngClassDirty,to(e,73).ngClassValid,to(e,73).ngClassInvalid,to(e,73).ngClassPending),t(e,75,0,to(e,76).disabled||null,"NoopAnimations"===to(e,76)._animationMode),t(e,79,0,to(e,80).disabled||null,"NoopAnimations"===to(e,80)._animationMode)})}var Uk=function(){function t(t){this.http=t,this.endpoint=Qs.endpoint+"/user/",this.httpOptions={headers:new xb({"Content-Type":"application/json"})}}return t.prototype.getUserRoles=function(){return this.http.get(this.endpoint+"roles")},t.prototype.getUsersPagined=function(t,e){return this.http.get(this.endpoint+"all?page="+t+"&resultPerPage="+e)},t.prototype.getCountUsers=function(){return this.http.get(this.endpoint+"count")},t.prototype.getSelf=function(){return this.http.get(this.endpoint+"self")},t.prototype.deleteSelf=function(){return this.http.delete(this.endpoint+"self")},t.prototype.delete=function(t){return this.http.delete(this.endpoint+t)},t.ngInjectableDef=mt({factory:function(){return new t(ee(Nb))},token:t,providedIn:"root"}),t}(),Hk=function(){function t(t,e,n,i){this.legendaService=t,this.modalService=e,this.userService=n,this.authService=i,this.hide=!0}return t.prototype.ngOnInit=function(){this.authService.isLoggedIn&&(this.getLegende(),this.isAdmin())},t.prototype.getColor=function(t){return t.colore},t.prototype.hideLegendaForm=function(t,e,n){this.hide=t,null!=n&&(this.legendaUp=n),!0===t&&this.getLegende(),null!==e&&!0===e?(this.legendaUp=null,this.childTemplateName="Nuovo campo legenda"):null!==e&&!1===e&&(this.childTemplateName="Modifica campo legenda")},t.prototype.onDelete=function(t){var e=this;confirm("L'elemento pu\xf2 essere cancellato solo se non esistono punti associati ad esso. Confermi l'operazione?")&&this.legendaService.deleteLegenda(t).subscribe(function(t){!0===t.esito&&(e.getLegende(),e.modalService.openMessageAlert(bb,new eb(t.descrizione,"green-snackbar")))})},t.prototype.getLegende=function(){var t=this;this.legendaService.getLegende().subscribe(function(e){t.legende=e})},t.prototype.isAdmin=function(){var t=this;this.userService.getUserRoles().subscribe(function(e){for(var n=0,i=e;n=1&&0!=this.pageSize},e.prototype.hasNextPage=function(){var t=this.getNumberOfPages()-1;return this.pageIndex visible",animation:{type:4,styles:{type:5,steps:[{type:6,styles:{opacity:0,transform:"scale(0)",offset:0},offset:null},{type:6,styles:{opacity:.5,transform:"scale(0.99)",offset:.5},offset:null},{type:6,styles:{opacity:1,transform:"scale(1)",offset:1},offset:null}]},timings:"200ms cubic-bezier(0, 0, 0.2, 1)"},options:null},{type:1,expr:"* => hidden",animation:{type:4,styles:{type:6,styles:{opacity:0},offset:null},timings:"100ms cubic-bezier(0, 0, 0.2, 1)"},options:null}],options:{}}]}});function rP(t){return Go(2,[(t()(),Sr(0,0,null,null,3,"div",[["class","mat-tooltip"]],[[2,"mat-tooltip-handset",null],[24,"@state",0]],[[null,"@state.start"],[null,"@state.done"]],function(t,e,n){var i=!0,r=t.component;return"@state.start"===e&&(i=!1!==r._animationStart()&&i),"@state.done"===e&&(i=!1!==r._animationDone(n)&&i),i},null,null)),fo(1,278528,null,0,ll,[Ei,Si,Ee,Oe],{klass:[0,"klass"],ngClass:[1,"ngClass"]},null),(e=131072,n=xl,i=[ai],go(-1,e|=16,null,0,n,n,i)),(t()(),Vo(3,null,["",""]))],function(t,e){t(e,1,0,"mat-tooltip",e.component.tooltipClass)},function(t,e){var n,i=e.component;t(e,0,0,null==(n=function(t,e,n,i){if(re.isWrapped(i)){i=re.unwrap(i);var r=t.def.nodes[0].bindingIndex+0,o=re.unwrap(t.oldValues[r]);t.oldValues[r]=new re(o)}return i}(e,0,0,to(e,2).transform(i._isHandset)))?null:n.matches,i._visibility),t(e,3,0,i.message)});var e,n,i}function oP(t){return Go(0,[(t()(),Sr(0,0,null,null,1,"mat-tooltip-component",[["aria-hidden","true"]],[[4,"zoom",null]],[["body","click"]],function(t,e,n){var i=!0;return"body:click"===e&&(i=!1!==to(t,1)._handleBodyInteraction()&&i),i},rP,iP)),fo(1,180224,null,0,xk,[ai,lb],null,null)],null,function(t,e){t(e,0,0,"visible"===to(e,1)._visibility?1:null)})}var sP=Ur("mat-tooltip-component",xk,oP,{},{},[]),aP=0,lP=0,uP=new yt("mat-select-scroll-strategy");function cP(t){return function(){return t.scrollStrategies.reposition()}}var hP=function(){return function(t,e){this.source=t,this.value=e}}(),pP=function(t){function e(e,n,i,r,o,s,a,l,u,c,h,p,d){var f=t.call(this,o,r,a,l,c)||this;return f._viewportRuler=e,f._changeDetectorRef=n,f._ngZone=i,f._dir=s,f._parentFormField=u,f.ngControl=c,f._liveAnnouncer=d,f._panelOpen=!1,f._required=!1,f._scrollTop=0,f._multiple=!1,f._compareWith=function(t,e){return t===e},f._uid="mat-select-"+aP++,f._destroy=new F,f._triggerFontSize=0,f._onChange=function(){},f._onTouched=function(){},f._optionIds="",f._transformOrigin="top",f._panelDoneAnimatingStream=new F,f._offsetY=0,f._positions=[{originX:"start",originY:"top",overlayX:"start",overlayY:"top"},{originX:"start",originY:"bottom",overlayX:"start",overlayY:"bottom"}],f._disableOptionCentering=!1,f._focused=!1,f.controlType="mat-select",f.ariaLabel="",f.optionSelectionChanges=W_(function(){return f.options?rt.apply(void 0,f.options.map(function(t){return t.onSelectionChange})):f._ngZone.onStable.asObservable().pipe(Ra(1),La(function(){return f.optionSelectionChanges}))}),f.openedChange=new ke,f._openedStream=f.openedChange.pipe(aa(function(t){return t}),Y(function(){})),f._closedStream=f.openedChange.pipe(aa(function(t){return!t}),Y(function(){})),f.selectionChange=new ke,f.valueChange=new ke,f.ngControl&&(f.ngControl.valueAccessor=f),f._scrollStrategyFactory=p,f._scrollStrategy=f._scrollStrategyFactory(),f.tabIndex=parseInt(h)||0,f.id=f.id,f}return r(e,t),Object.defineProperty(e.prototype,"focused",{get:function(){return this._focused||this._panelOpen},set:function(t){this._focused=t},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"placeholder",{get:function(){return this._placeholder},set:function(t){this._placeholder=t,this.stateChanges.next()},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"required",{get:function(){return this._required},set:function(t){this._required=Hd(t),this.stateChanges.next()},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"multiple",{get:function(){return this._multiple},set:function(t){if(this._selectionModel)throw Error("Cannot change `multiple` mode of select after initialization.");this._multiple=Hd(t)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"disableOptionCentering",{get:function(){return this._disableOptionCentering},set:function(t){this._disableOptionCentering=Hd(t)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"compareWith",{get:function(){return this._compareWith},set:function(t){if("function"!=typeof t)throw Error("`compareWith` must be a function.");this._compareWith=t,this._selectionModel&&this._initializeSelection()},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"value",{get:function(){return this._value},set:function(t){t!==this._value&&(this.writeValue(t),this._value=t)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"id",{get:function(){return this._id},set:function(t){this._id=t||this._uid,this.stateChanges.next()},enumerable:!0,configurable:!0}),e.prototype.ngOnInit=function(){var t=this;this._selectionModel=new rv(this.multiple),this.stateChanges.next(),this._panelDoneAnimatingStream.pipe(Q_(),wm(this._destroy)).subscribe(function(){t.panelOpen?(t._scrollTop=0,t.openedChange.emit(!0)):(t.openedChange.emit(!1),t.overlayDir.offsetX=0,t._changeDetectorRef.markForCheck())})},e.prototype.ngAfterContentInit=function(){var t=this;this._initKeyManager(),this._selectionModel.onChange.pipe(wm(this._destroy)).subscribe(function(t){t.added.forEach(function(t){return t.select()}),t.removed.forEach(function(t){return t.deselect()})}),this.options.changes.pipe(af(null),wm(this._destroy)).subscribe(function(){t._resetOptions(),t._initializeSelection()})},e.prototype.ngDoCheck=function(){this.ngControl&&this.updateErrorState()},e.prototype.ngOnChanges=function(t){t.disabled&&this.stateChanges.next()},e.prototype.ngOnDestroy=function(){this._destroy.next(),this._destroy.complete(),this.stateChanges.complete()},e.prototype.toggle=function(){this.panelOpen?this.close():this.open()},e.prototype.open=function(){var t=this;!this.disabled&&this.options&&this.options.length&&!this._panelOpen&&(this._triggerRect=this.trigger.nativeElement.getBoundingClientRect(),this._triggerFontSize=parseInt(getComputedStyle(this.trigger.nativeElement).fontSize||"0"),this._panelOpen=!0,this._keyManager.withHorizontalOrientation(null),this._calculateOverlayPosition(),this._highlightCorrectOption(),this._changeDetectorRef.markForCheck(),this._ngZone.onStable.asObservable().pipe(Ra(1)).subscribe(function(){t._triggerFontSize&&t.overlayDir.overlayRef&&t.overlayDir.overlayRef.overlayElement&&(t.overlayDir.overlayRef.overlayElement.style.fontSize=t._triggerFontSize+"px")}))},e.prototype.close=function(){this._panelOpen&&(this._panelOpen=!1,this._keyManager.withHorizontalOrientation(this._isRtl()?"rtl":"ltr"),this._changeDetectorRef.markForCheck(),this._onTouched())},e.prototype.writeValue=function(t){this.options&&this._setSelectionByValue(t)},e.prototype.registerOnChange=function(t){this._onChange=t},e.prototype.registerOnTouched=function(t){this._onTouched=t},e.prototype.setDisabledState=function(t){this.disabled=t,this._changeDetectorRef.markForCheck(),this.stateChanges.next()},Object.defineProperty(e.prototype,"panelOpen",{get:function(){return this._panelOpen},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"selected",{get:function(){return this.multiple?this._selectionModel.selected:this._selectionModel.selected[0]},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"triggerValue",{get:function(){if(this.empty)return"";if(this._multiple){var t=this._selectionModel.selected.map(function(t){return t.viewValue});return this._isRtl()&&t.reverse(),t.join(", ")}return this._selectionModel.selected[0].viewValue},enumerable:!0,configurable:!0}),e.prototype._isRtl=function(){return!!this._dir&&"rtl"===this._dir.value},e.prototype._handleKeydown=function(t){this.disabled||(this.panelOpen?this._handleOpenKeydown(t):this._handleClosedKeydown(t))},e.prototype._handleClosedKeydown=function(t){var e=t.keyCode,n=40===e||38===e||37===e||39===e,i=this._keyManager;if((13===e||32===e)&&!uf(t)||(this.multiple||t.altKey)&&n)t.preventDefault(),this.open();else if(!this.multiple){var r=this.selected;36===e||35===e?(36===e?i.setFirstItemActive():i.setLastItemActive(),t.preventDefault()):i.onKeydown(t),this._liveAnnouncer&&r!==this.selected&&this._liveAnnouncer.announce(this.selected.viewValue)}},e.prototype._handleOpenKeydown=function(t){var e=t.keyCode,n=40===e||38===e,i=this._keyManager;if(36===e||35===e)t.preventDefault(),36===e?i.setFirstItemActive():i.setLastItemActive();else if(n&&t.altKey)t.preventDefault(),this.close();else if(13!==e&&32!==e||!i.activeItem||uf(t))if(this._multiple&&65===e&&t.ctrlKey){t.preventDefault();var r=this.options.some(function(t){return!t.disabled&&!t.selected});this.options.forEach(function(t){t.disabled||(r?t.select():t.deselect())})}else{var o=i.activeItemIndex;i.onKeydown(t),this._multiple&&n&&t.shiftKey&&i.activeItem&&i.activeItemIndex!==o&&i.activeItem._selectViaInteraction()}else t.preventDefault(),i.activeItem._selectViaInteraction()},e.prototype._onFocus=function(){this.disabled||(this._focused=!0,this.stateChanges.next())},e.prototype._onBlur=function(){this._focused=!1,this.disabled||this.panelOpen||(this._onTouched(),this._changeDetectorRef.markForCheck(),this.stateChanges.next())},e.prototype._onAttached=function(){var t=this;this.overlayDir.positionChange.pipe(Ra(1)).subscribe(function(){t._setPseudoCheckboxPaddingSize(),t._changeDetectorRef.detectChanges(),t._calculateOverlayOffsetX(),t.panel.nativeElement.scrollTop=t._scrollTop})},e.prototype._getPanelTheme=function(){return this._parentFormField?"mat-"+this._parentFormField.color:""},e.prototype._setPseudoCheckboxPaddingSize=function(){if(!lP&&this.multiple){var t=this.panel.nativeElement.querySelector(".mat-pseudo-checkbox");t&&(lP=24+t.offsetWidth)}},Object.defineProperty(e.prototype,"empty",{get:function(){return!this._selectionModel||this._selectionModel.isEmpty()},enumerable:!0,configurable:!0}),e.prototype._initializeSelection=function(){var t=this;Promise.resolve().then(function(){t._setSelectionByValue(t.ngControl?t.ngControl.value:t._value),t.stateChanges.next()})},e.prototype._setSelectionByValue=function(t){var e=this;if(this.multiple&&t){if(!Array.isArray(t))throw Error("Value must be an array in multiple-selection mode.");this._selectionModel.clear(),t.forEach(function(t){return e._selectValue(t)}),this._sortValues()}else{this._selectionModel.clear();var n=this._selectValue(t);n&&this._keyManager.setActiveItem(n)}this._changeDetectorRef.markForCheck()},e.prototype._selectValue=function(t){var e=this,n=this.options.find(function(n){try{return null!=n.value&&e._compareWith(n.value,t)}catch(i){return De()&&console.warn(i),!1}});return n&&this._selectionModel.select(n),n},e.prototype._initKeyManager=function(){var t=this;this._keyManager=new Ef(this.options).withTypeAhead().withVerticalOrientation().withHorizontalOrientation(this._isRtl()?"rtl":"ltr").withAllowedModifierKeys(["shiftKey"]),this._keyManager.tabOut.pipe(wm(this._destroy)).subscribe(function(){t.focus(),t.close()}),this._keyManager.change.pipe(wm(this._destroy)).subscribe(function(){t._panelOpen&&t.panel?t._scrollActiveOptionIntoView():t._panelOpen||t.multiple||!t._keyManager.activeItem||t._keyManager.activeItem._selectViaInteraction()})},e.prototype._resetOptions=function(){var t=this,e=rt(this.options.changes,this._destroy);this.optionSelectionChanges.pipe(wm(e)).subscribe(function(e){t._onSelect(e.source,e.isUserInput),e.isUserInput&&!t.multiple&&t._panelOpen&&(t.close(),t.focus())}),rt.apply(void 0,this.options.map(function(t){return t._stateChanges})).pipe(wm(e)).subscribe(function(){t._changeDetectorRef.markForCheck(),t.stateChanges.next()}),this._setOptionIds()},e.prototype._onSelect=function(t,e){var n=this._selectionModel.isSelected(t);null!=t.value||this._multiple?(t.selected?this._selectionModel.select(t):this._selectionModel.deselect(t),e&&this._keyManager.setActiveItem(t),this.multiple&&(this._sortValues(),e&&this.focus())):(t.deselect(),this._selectionModel.clear(),this._propagateChanges(t.value)),n!==this._selectionModel.isSelected(t)&&this._propagateChanges(),this.stateChanges.next()},e.prototype._sortValues=function(){var t=this;if(this.multiple){var e=this.options.toArray();this._selectionModel.sort(function(n,i){return t.sortComparator?t.sortComparator(n,i,e):e.indexOf(n)-e.indexOf(i)}),this.stateChanges.next()}},e.prototype._propagateChanges=function(t){var e;e=this.multiple?this.selected.map(function(t){return t.value}):this.selected?this.selected.value:t,this._value=e,this.valueChange.emit(e),this._onChange(e),this.selectionChange.emit(new hP(this,e)),this._changeDetectorRef.markForCheck()},e.prototype._setOptionIds=function(){this._optionIds=this.options.map(function(t){return t.id}).join(" ")},e.prototype._highlightCorrectOption=function(){this._keyManager&&(this.empty?this._keyManager.setFirstItemActive():this._keyManager.setActiveItem(this._selectionModel.selected[0]))},e.prototype._scrollActiveOptionIntoView=function(){var t,e,n,i=this._keyManager.activeItemIndex||0,r=ym(i,this.options,this.optionGroups);this.panel.nativeElement.scrollTop=(n=(i+r)*(t=this._getItemHeight()))<(e=this.panel.nativeElement.scrollTop)?n:n+t>e+256?Math.max(0,n-256+t):e},e.prototype.focus=function(){this._elementRef.nativeElement.focus()},e.prototype._getOptionIndex=function(t){return this.options.reduce(function(e,n,i){return void 0===e?t===n?i:void 0:e},void 0)},e.prototype._calculateOverlayPosition=function(){var t=this._getItemHeight(),e=this._getItemCount(),n=Math.min(e*t,256),i=e*t-n,r=this.empty?0:this._getOptionIndex(this._selectionModel.selected[0]);r+=ym(r,this.options,this.optionGroups);var o=n/2;this._scrollTop=this._calculateOverlayScroll(r,o,i),this._offsetY=this._calculateOverlayOffsetY(r,o,i),this._checkOverlayWithinViewport(i)},e.prototype._calculateOverlayScroll=function(t,e,n){var i=this._getItemHeight();return Math.min(Math.max(0,i*t-e+i/2),n)},e.prototype._getAriaLabel=function(){return this.ariaLabelledby?null:this.ariaLabel||this.placeholder},e.prototype._getAriaLabelledby=function(){return this.ariaLabelledby?this.ariaLabelledby:this._parentFormField&&this._parentFormField._hasFloatingLabel()&&!this._getAriaLabel()&&this._parentFormField._labelId||null},e.prototype._getAriaActiveDescendant=function(){return this.panelOpen&&this._keyManager&&this._keyManager.activeItem?this._keyManager.activeItem.id:null},e.prototype._calculateOverlayOffsetX=function(){var t,e=this.overlayDir.overlayRef.overlayElement.getBoundingClientRect(),n=this._viewportRuler.getViewportSize(),i=this._isRtl(),r=this.multiple?lP+16:32;if(this.multiple)t=lP;else{var o=this._selectionModel.selected[0]||this.options.first;t=o&&o.group?32:16}i||(t*=-1);var s=0-(e.left+t-(i?r:0)),a=e.right+t-n.width+(i?0:r);s>0?t+=s+8:a>0&&(t-=a+8),this.overlayDir.offsetX=Math.round(t),this.overlayDir.overlayRef.updatePosition()},e.prototype._calculateOverlayOffsetY=function(t,e,n){var i,r=this._getItemHeight(),o=(r-this._triggerRect.height)/2,s=Math.floor(256/r);return this._disableOptionCentering?0:(i=0===this._scrollTop?t*r:this._scrollTop===n?(t-(this._getItemCount()-s))*r+(r-(this._getItemCount()*r-256)%r):e-r/2,Math.round(-1*i-o))},e.prototype._checkOverlayWithinViewport=function(t){var e=this._getItemHeight(),n=this._viewportRuler.getViewportSize(),i=this._triggerRect.top-8,r=n.height-this._triggerRect.bottom-8,o=Math.abs(this._offsetY),s=Math.min(this._getItemCount()*e,256)-o-this._triggerRect.height;s>r?this._adjustPanelUp(s,r):o>i?this._adjustPanelDown(o,i,t):this._transformOrigin=this._getOriginBasedOnOption()},e.prototype._adjustPanelUp=function(t,e){var n=Math.round(t-e);this._scrollTop-=n,this._offsetY-=n,this._transformOrigin=this._getOriginBasedOnOption(),this._scrollTop<=0&&(this._scrollTop=0,this._offsetY=0,this._transformOrigin="50% bottom 0px")},e.prototype._adjustPanelDown=function(t,e,n){var i=Math.round(t-e);if(this._scrollTop+=i,this._offsetY+=i,this._transformOrigin=this._getOriginBasedOnOption(),this._scrollTop>=n)return this._scrollTop=n,this._offsetY=0,void(this._transformOrigin="50% top 0px")},e.prototype._getOriginBasedOnOption=function(){var t=this._getItemHeight(),e=(t-this._triggerRect.height)/2;return"50% "+(Math.abs(this._offsetY)-e+t/2)+"px 0px"},e.prototype._getItemCount=function(){return this.options.length+this.optionGroups.length},e.prototype._getItemHeight=function(){return 3*this._triggerFontSize},e.prototype.setDescribedByIds=function(t){this._ariaDescribedby=t.join(" ")},e.prototype.onContainerClick=function(){this.focus(),this.open()},Object.defineProperty(e.prototype,"shouldLabelFloat",{get:function(){return this._panelOpen||!this.empty},enumerable:!0,configurable:!0}),e}(Gf(Uf(zf(Hf(function(){return function(t,e,n,i,r){this._elementRef=t,this._defaultErrorStateMatcher=e,this._parentForm=n,this._parentFormGroup=i,this.ngControl=r}}()))))),dP=function(){return function(){}}(),fP=Qi({encapsulation:2,styles:[".mat-select{display:inline-block;width:100%;outline:0}.mat-select-trigger{display:inline-table;cursor:pointer;position:relative;box-sizing:border-box}.mat-select-disabled .mat-select-trigger{-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;cursor:default}.mat-select-value{display:table-cell;max-width:0;width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.mat-select-value-text{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.mat-select-arrow-wrapper{display:table-cell;vertical-align:middle}.mat-form-field-appearance-fill .mat-select-arrow-wrapper{transform:translateY(-50%)}.mat-form-field-appearance-outline .mat-select-arrow-wrapper{transform:translateY(-25%)}.mat-form-field-appearance-standard.mat-form-field-has-label .mat-select:not(.mat-select-empty) .mat-select-arrow-wrapper{transform:translateY(-50%)}.mat-form-field-appearance-standard .mat-select.mat-select-empty .mat-select-arrow-wrapper{transition:transform .4s cubic-bezier(.25,.8,.25,1)}._mat-animation-noopable.mat-form-field-appearance-standard .mat-select.mat-select-empty .mat-select-arrow-wrapper{transition:none}.mat-select-arrow{width:0;height:0;border-left:5px solid transparent;border-right:5px solid transparent;border-top:5px solid;margin:0 4px}.mat-select-panel-wrap{flex-basis:100%}.mat-select-panel{min-width:112px;max-width:280px;overflow:auto;-webkit-overflow-scrolling:touch;padding-top:0;padding-bottom:0;max-height:256px;min-width:100%;border-radius:4px}@media (-ms-high-contrast:active){.mat-select-panel{outline:solid 1px}}.mat-select-panel .mat-optgroup-label,.mat-select-panel .mat-option{font-size:inherit;line-height:3em;height:3em}.mat-form-field-type-mat-select:not(.mat-form-field-disabled) .mat-form-field-flex{cursor:pointer}.mat-form-field-type-mat-select .mat-form-field-label{width:calc(100% - 18px)}.mat-select-placeholder{transition:color .4s .133s cubic-bezier(.25,.8,.25,1)}._mat-animation-noopable .mat-select-placeholder{transition:none}.mat-form-field-hide-placeholder .mat-select-placeholder{color:transparent;-webkit-text-fill-color:transparent;transition:none;display:block}"],data:{animation:[{type:7,name:"transformPanelWrap",definitions:[{type:1,expr:"* => void",animation:{type:11,selector:"@transformPanel",animation:[{type:9,options:null}],options:{optional:!0}},options:null}],options:{}},{type:7,name:"transformPanel",definitions:[{type:0,name:"void",styles:{type:6,styles:{transform:"scaleY(0.8)",minWidth:"100%",opacity:0},offset:null},options:void 0},{type:0,name:"showing",styles:{type:6,styles:{opacity:1,minWidth:"calc(100% + 32px)",transform:"scaleY(1)"},offset:null},options:void 0},{type:0,name:"showing-multiple",styles:{type:6,styles:{opacity:1,minWidth:"calc(100% + 64px)",transform:"scaleY(1)"},offset:null},options:void 0},{type:1,expr:"void => *",animation:{type:4,styles:null,timings:"120ms cubic-bezier(0, 0, 0.2, 1)"},options:null},{type:1,expr:"* => void",animation:{type:4,styles:{type:6,styles:{opacity:0},offset:null},timings:"100ms 25ms linear"},options:null}],options:{}}]}});function mP(t){return Go(0,[(t()(),Sr(0,0,null,null,1,"span",[["class","mat-select-placeholder"]],null,null,null,null,null)),(t()(),Vo(1,null,["",""]))],null,function(t,e){t(e,1,0,e.component.placeholder||"\xa0")})}function gP(t){return Go(0,[(t()(),Sr(0,0,null,null,1,"span",[],null,null,null,null,null)),(t()(),Vo(1,null,["",""]))],null,function(t,e){t(e,1,0,e.component.triggerValue||"\xa0")})}function yP(t){return Go(0,[Fo(null,0),(t()(),Er(0,null,null,0))],null,null)}function _P(t){return Go(0,[(t()(),Sr(0,0,null,null,5,"span",[["class","mat-select-value-text"]],null,null,null,null,null)),fo(1,16384,null,0,gl,[],{ngSwitch:[0,"ngSwitch"]},null),(t()(),Er(16777216,null,null,1,null,gP)),fo(3,16384,null,0,_l,[si,Pe,gl],null,null),(t()(),Er(16777216,null,null,1,null,yP)),fo(5,278528,null,0,yl,[si,Pe,gl],{ngSwitchCase:[0,"ngSwitchCase"]},null)],function(t,e){t(e,1,0,!!e.component.customTrigger),t(e,5,0,!0)},null)}function vP(t){return Go(0,[(t()(),Sr(0,0,null,null,3,"div",[["class","mat-select-panel-wrap"]],[[24,"@transformPanelWrap",0]],null,null,null,null)),(t()(),Sr(1,0,[[2,0],["panel",1]],null,2,"div",[],[[24,"@transformPanel",0],[4,"transformOrigin",null],[4,"font-size","px"]],[[null,"@transformPanel.done"],[null,"keydown"]],function(t,e,n){var i=!0,r=t.component;return"@transformPanel.done"===e&&(i=!1!==r._panelDoneAnimatingStream.next(n.toState)&&i),"keydown"===e&&(i=!1!==r._handleKeydown(n)&&i),i},null,null)),fo(2,278528,null,0,ll,[Ei,Si,Ee,Oe],{klass:[0,"klass"],ngClass:[1,"ngClass"]},null),Fo(null,1)],function(t,e){var n,i,r=e.component;t(e,2,0,("mat-select-panel ",n=r._getPanelTheme(),"mat-select-panel "+(null!=(i=n)?i.toString():"")),r.panelClass)},function(t,e){var n=e.component;t(e,0,0,void 0),t(e,1,0,n.multiple?"showing-multiple":"showing",n._transformOrigin,n._triggerFontSize)})}function bP(t){return Go(2,[ko(402653184,1,{trigger:0}),ko(671088640,2,{panel:0}),ko(402653184,3,{overlayDir:0}),(t()(),Sr(3,0,[[1,0],["trigger",1]],null,9,"div",[["aria-hidden","true"],["cdk-overlay-origin",""],["class","mat-select-trigger"]],null,[[null,"click"]],function(t,e,n){var i=!0;return"click"===e&&(i=!1!==t.component.toggle()&&i),i},null,null)),fo(4,16384,[["origin",4]],0,Dv,[Ee],null,null),(t()(),Sr(5,0,null,null,5,"div",[["class","mat-select-value"]],null,null,null,null,null)),fo(6,16384,null,0,gl,[],{ngSwitch:[0,"ngSwitch"]},null),(t()(),Er(16777216,null,null,1,null,mP)),fo(8,278528,null,0,yl,[si,Pe,gl],{ngSwitchCase:[0,"ngSwitchCase"]},null),(t()(),Er(16777216,null,null,1,null,_P)),fo(10,278528,null,0,yl,[si,Pe,gl],{ngSwitchCase:[0,"ngSwitchCase"]},null),(t()(),Sr(11,0,null,null,1,"div",[["class","mat-select-arrow-wrapper"]],null,null,null,null,null)),(t()(),Sr(12,0,null,null,0,"div",[["class","mat-select-arrow"]],null,null,null,null,null)),(t()(),Er(16777216,null,null,1,function(t,e,n){var i=!0,r=t.component;return"backdropClick"===e&&(i=!1!==r.close()&&i),"attach"===e&&(i=!1!==r._onAttached()&&i),"detach"===e&&(i=!1!==r.close()&&i),i},vP)),fo(14,671744,[[3,4]],0,Fv,[Pv,Pe,si,Lv,[2,Mm]],{origin:[0,"origin"],positions:[1,"positions"],offsetY:[2,"offsetY"],minWidth:[3,"minWidth"],backdropClass:[4,"backdropClass"],scrollStrategy:[5,"scrollStrategy"],open:[6,"open"],hasBackdrop:[7,"hasBackdrop"],lockPosition:[8,"lockPosition"]},{backdropClick:"backdropClick",attach:"attach",detach:"detach"})],function(t,e){var n=e.component;t(e,6,0,n.empty),t(e,8,0,!0),t(e,10,0,!1),t(e,14,0,to(e,4),n._positions,n._offsetY,null==n._triggerRect?null:n._triggerRect.width,"cdk-overlay-transparent-backdrop",n._scrollStrategy,n.panelOpen,"","")},null)}var wP=Qi({encapsulation:2,styles:[".mat-paginator{display:block}.mat-paginator-outer-container{display:flex}.mat-paginator-container{display:flex;align-items:center;justify-content:flex-end;min-height:56px;padding:0 8px;flex-wrap:wrap-reverse;width:100%}.mat-paginator-page-size{display:flex;align-items:baseline;margin-right:8px}[dir=rtl] .mat-paginator-page-size{margin-right:0;margin-left:8px}.mat-paginator-page-size-label{margin:0 4px}.mat-paginator-page-size-select{margin:6px 4px 0 4px;width:56px}.mat-paginator-page-size-select.mat-form-field-appearance-outline{width:64px}.mat-paginator-page-size-select.mat-form-field-appearance-fill{width:64px}.mat-paginator-range-label{margin:0 32px 0 24px}.mat-paginator-range-actions{display:flex;align-items:center}.mat-paginator-icon{width:28px;fill:currentColor}[dir=rtl] .mat-paginator-icon{transform:rotate(180deg)}"],data:{}});function CP(t){return Go(0,[(t()(),Sr(0,0,null,null,2,"mat-option",[["class","mat-option"],["role","option"]],[[1,"tabindex",0],[2,"mat-selected",null],[2,"mat-option-multiple",null],[2,"mat-active",null],[8,"id",0],[1,"aria-selected",0],[1,"aria-disabled",0],[2,"mat-option-disabled",null]],[[null,"click"],[null,"keydown"]],function(t,e,n){var i=!0;return"click"===e&&(i=!1!==to(t,1)._selectViaInteraction()&&i),"keydown"===e&&(i=!1!==to(t,1)._handleKeydown(n)&&i),i},Lk,Pk)),fo(1,8568832,[[8,4]],0,gm,[Ee,ai,[2,mm],[2,pm]],{value:[0,"value"]},null),(t()(),Vo(2,0,["",""]))],function(t,e){t(e,1,0,e.context.$implicit)},function(t,e){t(e,0,0,to(e,1)._getTabIndex(),to(e,1).selected,to(e,1).multiple,to(e,1).active,to(e,1).id,to(e,1)._getAriaSelected(),to(e,1).disabled.toString(),to(e,1).disabled),t(e,2,0,e.context.$implicit)})}function xP(t){return Go(0,[(t()(),Sr(0,0,null,null,17,"mat-form-field",[["class","mat-paginator-page-size-select mat-form-field"]],[[2,"mat-form-field-appearance-standard",null],[2,"mat-form-field-appearance-fill",null],[2,"mat-form-field-appearance-outline",null],[2,"mat-form-field-appearance-legacy",null],[2,"mat-form-field-invalid",null],[2,"mat-form-field-can-float",null],[2,"mat-form-field-should-float",null],[2,"mat-form-field-has-label",null],[2,"mat-form-field-hide-placeholder",null],[2,"mat-form-field-disabled",null],[2,"mat-form-field-autofilled",null],[2,"mat-focused",null],[2,"mat-accent",null],[2,"mat-warn",null],[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],[2,"_mat-animation-noopable",null]],null,null,__,s_)),fo(1,7520256,null,7,Rm,[Ee,ai,[2,vm],[2,Mm],[2,Om],Qd,Fn,[2,r_]],{color:[0,"color"]},null),ko(335544320,1,{_control:0}),ko(335544320,2,{_placeholderChild:0}),ko(335544320,3,{_labelChild:0}),ko(603979776,4,{_errorChildren:1}),ko(603979776,5,{_hintChildren:1}),ko(603979776,6,{_prefixChildren:1}),ko(603979776,7,{_suffixChildren:1}),(t()(),Sr(9,0,null,1,8,"mat-select",[["class","mat-select"],["role","listbox"]],[[1,"id",0],[1,"tabindex",0],[1,"aria-label",0],[1,"aria-labelledby",0],[1,"aria-required",0],[1,"aria-disabled",0],[1,"aria-invalid",0],[1,"aria-owns",0],[1,"aria-multiselectable",0],[1,"aria-describedby",0],[1,"aria-activedescendant",0],[2,"mat-select-disabled",null],[2,"mat-select-invalid",null],[2,"mat-select-required",null],[2,"mat-select-empty",null]],[[null,"selectionChange"],[null,"keydown"],[null,"focus"],[null,"blur"]],function(t,e,n){var i=!0,r=t.component;return"keydown"===e&&(i=!1!==to(t,11)._handleKeydown(n)&&i),"focus"===e&&(i=!1!==to(t,11)._onFocus()&&i),"blur"===e&&(i=!1!==to(t,11)._onBlur()&&i),"selectionChange"===e&&(i=!1!==r._changePageSize(n.value)&&i),i},bP,fP)),mo(6144,null,mm,null,[pP]),fo(11,2080768,null,3,pP,[lv,ai,Fn,Wf,Ee,[2,Mm],[2,Cd],[2,Ed],[2,Rm],[8,null],[8,null],uP,Af],{disabled:[0,"disabled"],value:[1,"value"],ariaLabel:[2,"ariaLabel"]},{selectionChange:"selectionChange"}),ko(603979776,8,{options:1}),ko(603979776,9,{optionGroups:1}),ko(335544320,10,{customTrigger:0}),mo(2048,[[1,4]],Em,null,[pP]),(t()(),Er(16777216,null,1,1,null,CP)),fo(17,278528,null,0,cl,[si,Pe,Ei],{ngForOf:[0,"ngForOf"]},null)],function(t,e){var n=e.component;t(e,1,0,n.color),t(e,11,0,n.disabled,n.pageSize,n._intl.itemsPerPageLabel),t(e,17,0,n._displayedPageSizeOptions)},function(t,e){t(e,0,1,["standard"==to(e,1).appearance,"fill"==to(e,1).appearance,"outline"==to(e,1).appearance,"legacy"==to(e,1).appearance,to(e,1)._control.errorState,to(e,1)._canLabelFloat,to(e,1)._shouldLabelFloat(),to(e,1)._hasFloatingLabel(),to(e,1)._hideControlPlaceholder(),to(e,1)._control.disabled,to(e,1)._control.autofilled,to(e,1)._control.focused,"accent"==to(e,1).color,"warn"==to(e,1).color,to(e,1)._shouldForward("untouched"),to(e,1)._shouldForward("touched"),to(e,1)._shouldForward("pristine"),to(e,1)._shouldForward("dirty"),to(e,1)._shouldForward("valid"),to(e,1)._shouldForward("invalid"),to(e,1)._shouldForward("pending"),!to(e,1)._animationsEnabled]),t(e,9,1,[to(e,11).id,to(e,11).tabIndex,to(e,11)._getAriaLabel(),to(e,11)._getAriaLabelledby(),to(e,11).required.toString(),to(e,11).disabled.toString(),to(e,11).errorState,to(e,11).panelOpen?to(e,11)._optionIds:null,to(e,11).multiple,to(e,11)._ariaDescribedby||null,to(e,11)._getAriaActiveDescendant(),to(e,11).disabled,to(e,11).errorState,to(e,11).required,to(e,11).empty])})}function EP(t){return Go(0,[(t()(),Sr(0,0,null,null,1,"div",[],null,null,null,null,null)),(t()(),Vo(1,null,["",""]))],null,function(t,e){t(e,1,0,e.component.pageSize)})}function SP(t){return Go(0,[(t()(),Sr(0,0,null,null,6,"div",[["class","mat-paginator-page-size"]],null,null,null,null,null)),(t()(),Sr(1,0,null,null,1,"div",[["class","mat-paginator-page-size-label"]],null,null,null,null,null)),(t()(),Vo(2,null,["",""])),(t()(),Er(16777216,null,null,1,null,xP)),fo(4,16384,null,0,pl,[si,Pe],{ngIf:[0,"ngIf"]},null),(t()(),Er(16777216,null,null,1,null,EP)),fo(6,16384,null,0,pl,[si,Pe],{ngIf:[0,"ngIf"]},null)],function(t,e){var n=e.component;t(e,4,0,n._displayedPageSizeOptions.length>1),t(e,6,0,n._displayedPageSizeOptions.length<=1)},function(t,e){t(e,2,0,e.component._intl.itemsPerPageLabel)})}function TP(t){return Go(0,[(t()(),Sr(0,16777216,null,null,4,"button",[["class","mat-paginator-navigation-first"],["mat-icon-button",""],["type","button"]],[[1,"aria-label",0],[8,"disabled",0],[2,"_mat-animation-noopable",null]],[[null,"click"],[null,"longpress"],[null,"keydown"],[null,"touchend"]],function(t,e,n){var i=!0,r=t.component;return"longpress"===e&&(i=!1!==to(t,2).show()&&i),"keydown"===e&&(i=!1!==to(t,2)._handleKeydown(n)&&i),"touchend"===e&&(i=!1!==to(t,2)._handleTouchend()&&i),"click"===e&&(i=!1!==r.firstPage()&&i),i},M_,F_)),fo(1,180224,null,0,L_,[Ee,Qd,Ff,[2,r_]],{disabled:[0,"disabled"]},null),fo(2,147456,null,0,Ck,[Pv,Ee,ov,si,Fn,Qd,Cf,Ff,vk,[2,Mm],[2,wk],[2,Cu]],{position:[0,"position"],disabled:[1,"disabled"],message:[2,"message"]},null),(t()(),Sr(3,0,null,0,1,":svg:svg",[["class","mat-paginator-icon"],["focusable","false"],["viewBox","0 0 24 24"]],null,null,null,null,null)),(t()(),Sr(4,0,null,null,0,":svg:path",[["d","M18.41 16.59L13.82 12l4.59-4.59L17 6l-6 6 6 6zM6 6h2v12H6z"]],null,null,null,null,null)),(t()(),Er(0,null,null,0))],function(t,e){var n=e.component;t(e,1,0,n._previousButtonsDisabled()),t(e,2,0,"above",n._previousButtonsDisabled(),n._intl.firstPageLabel)},function(t,e){t(e,0,0,e.component._intl.firstPageLabel,to(e,1).disabled||null,"NoopAnimations"===to(e,1)._animationMode)})}function IP(t){return Go(0,[(t()(),Sr(0,16777216,null,null,4,"button",[["class","mat-paginator-navigation-last"],["mat-icon-button",""],["type","button"]],[[1,"aria-label",0],[8,"disabled",0],[2,"_mat-animation-noopable",null]],[[null,"click"],[null,"longpress"],[null,"keydown"],[null,"touchend"]],function(t,e,n){var i=!0,r=t.component;return"longpress"===e&&(i=!1!==to(t,2).show()&&i),"keydown"===e&&(i=!1!==to(t,2)._handleKeydown(n)&&i),"touchend"===e&&(i=!1!==to(t,2)._handleTouchend()&&i),"click"===e&&(i=!1!==r.lastPage()&&i),i},M_,F_)),fo(1,180224,null,0,L_,[Ee,Qd,Ff,[2,r_]],{disabled:[0,"disabled"]},null),fo(2,147456,null,0,Ck,[Pv,Ee,ov,si,Fn,Qd,Cf,Ff,vk,[2,Mm],[2,wk],[2,Cu]],{position:[0,"position"],disabled:[1,"disabled"],message:[2,"message"]},null),(t()(),Sr(3,0,null,0,1,":svg:svg",[["class","mat-paginator-icon"],["focusable","false"],["viewBox","0 0 24 24"]],null,null,null,null,null)),(t()(),Sr(4,0,null,null,0,":svg:path",[["d","M5.59 7.41L10.18 12l-4.59 4.59L7 18l6-6-6-6zM16 6h2v12h-2z"]],null,null,null,null,null)),(t()(),Er(0,null,null,0))],function(t,e){var n=e.component;t(e,1,0,n._nextButtonsDisabled()),t(e,2,0,"above",n._nextButtonsDisabled(),n._intl.lastPageLabel)},function(t,e){t(e,0,0,e.component._intl.lastPageLabel,to(e,1).disabled||null,"NoopAnimations"===to(e,1)._animationMode)})}function OP(t){return Go(2,[(t()(),Sr(0,0,null,null,20,"div",[["class","mat-paginator-outer-container"]],null,null,null,null,null)),(t()(),Sr(1,0,null,null,19,"div",[["class","mat-paginator-container"]],null,null,null,null,null)),(t()(),Er(16777216,null,null,1,null,SP)),fo(3,16384,null,0,pl,[si,Pe],{ngIf:[0,"ngIf"]},null),(t()(),Sr(4,0,null,null,16,"div",[["class","mat-paginator-range-actions"]],null,null,null,null,null)),(t()(),Sr(5,0,null,null,1,"div",[["class","mat-paginator-range-label"]],null,null,null,null,null)),(t()(),Vo(6,null,["",""])),(t()(),Er(16777216,null,null,1,null,TP)),fo(8,16384,null,0,pl,[si,Pe],{ngIf:[0,"ngIf"]},null),(t()(),Sr(9,16777216,null,null,4,"button",[["class","mat-paginator-navigation-previous"],["mat-icon-button",""],["type","button"]],[[1,"aria-label",0],[8,"disabled",0],[2,"_mat-animation-noopable",null]],[[null,"click"],[null,"longpress"],[null,"keydown"],[null,"touchend"]],function(t,e,n){var i=!0,r=t.component;return"longpress"===e&&(i=!1!==to(t,11).show()&&i),"keydown"===e&&(i=!1!==to(t,11)._handleKeydown(n)&&i),"touchend"===e&&(i=!1!==to(t,11)._handleTouchend()&&i),"click"===e&&(i=!1!==r.previousPage()&&i),i},M_,F_)),fo(10,180224,null,0,L_,[Ee,Qd,Ff,[2,r_]],{disabled:[0,"disabled"]},null),fo(11,147456,null,0,Ck,[Pv,Ee,ov,si,Fn,Qd,Cf,Ff,vk,[2,Mm],[2,wk],[2,Cu]],{position:[0,"position"],disabled:[1,"disabled"],message:[2,"message"]},null),(t()(),Sr(12,0,null,0,1,":svg:svg",[["class","mat-paginator-icon"],["focusable","false"],["viewBox","0 0 24 24"]],null,null,null,null,null)),(t()(),Sr(13,0,null,null,0,":svg:path",[["d","M15.41 7.41L14 6l-6 6 6 6 1.41-1.41L10.83 12z"]],null,null,null,null,null)),(t()(),Sr(14,16777216,null,null,4,"button",[["class","mat-paginator-navigation-next"],["mat-icon-button",""],["type","button"]],[[1,"aria-label",0],[8,"disabled",0],[2,"_mat-animation-noopable",null]],[[null,"click"],[null,"longpress"],[null,"keydown"],[null,"touchend"]],function(t,e,n){var i=!0,r=t.component;return"longpress"===e&&(i=!1!==to(t,16).show()&&i),"keydown"===e&&(i=!1!==to(t,16)._handleKeydown(n)&&i),"touchend"===e&&(i=!1!==to(t,16)._handleTouchend()&&i),"click"===e&&(i=!1!==r.nextPage()&&i),i},M_,F_)),fo(15,180224,null,0,L_,[Ee,Qd,Ff,[2,r_]],{disabled:[0,"disabled"]},null),fo(16,147456,null,0,Ck,[Pv,Ee,ov,si,Fn,Qd,Cf,Ff,vk,[2,Mm],[2,wk],[2,Cu]],{position:[0,"position"],disabled:[1,"disabled"],message:[2,"message"]},null),(t()(),Sr(17,0,null,0,1,":svg:svg",[["class","mat-paginator-icon"],["focusable","false"],["viewBox","0 0 24 24"]],null,null,null,null,null)),(t()(),Sr(18,0,null,null,0,":svg:path",[["d","M10 6L8.59 7.41 13.17 12l-4.58 4.59L10 18l6-6z"]],null,null,null,null,null)),(t()(),Er(16777216,null,null,1,null,IP)),fo(20,16384,null,0,pl,[si,Pe],{ngIf:[0,"ngIf"]},null)],function(t,e){var n=e.component;t(e,3,0,!n.hidePageSize),t(e,8,0,n.showFirstLastButtons),t(e,10,0,n._previousButtonsDisabled()),t(e,11,0,"above",n._previousButtonsDisabled(),n._intl.previousPageLabel),t(e,15,0,n._nextButtonsDisabled()),t(e,16,0,"above",n._nextButtonsDisabled(),n._intl.nextPageLabel),t(e,20,0,n.showFirstLastButtons)},function(t,e){var n=e.component;t(e,6,0,n._intl.getRangeLabel(n.pageIndex,n.pageSize,n.length)),t(e,9,0,n._intl.previousPageLabel,to(e,10).disabled||null,"NoopAnimations"===to(e,10)._animationMode),t(e,14,0,n._intl.nextPageLabel,to(e,15).disabled||null,"NoopAnimations"===to(e,15)._animationMode)})}var RP=function(){function t(t,e){this.userService=t,this.modalService=e}return t.prototype.ngOnInit=function(){this.getUsersAndCount()},t.prototype.getUsersPagined=function(t){var e=this;this.userService.getUsersPagined(t.pageIndex,t.pageSize).subscribe(function(t){return e.users=t})},t.prototype.onDelete=function(t){var e=this;confirm("Si sta procedendo all'eliminazione dell'utente. Confermi l'operazione?")&&this.userService.delete(t).subscribe(function(t){!0===t.esito&&(e.getUsersAndCount(e.currentPage,e.currentPageSize),e.modalService.openMessageAlert(bb,new eb(t.descrizione,"green-snackbar")))})},t.prototype.getUsersAndCount=function(t,e){var n=this;this.userService.getUsersPagined(null!=t?t:0,null!=e?e:5).subscribe(function(t){return n.users=t}),this.userService.getCountUsers().subscribe(function(t){return n.usersNumber=t})},t}(),kP=Qi({encapsulation:0,styles:[[""]],data:{}});function PP(t){return Go(0,[(t()(),Sr(0,0,null,null,11,"mat-list-item",[["class","list-element mat-list-item"]],[[2,"mat-list-item-avatar",null],[2,"mat-list-item-with-avatar",null]],null,null,Vk,jk)),fo(1,1228800,null,3,Rk,[Ee,[2,Ik],[2,Ok],ai],null,null),ko(603979776,1,{_lines:1}),ko(335544320,2,{_avatar:0}),ko(335544320,3,{_icon:0}),(t()(),Sr(5,0,null,2,1,"p",[],null,null,null,null,null)),(t()(),Vo(6,null,["",""])),(t()(),Sr(7,0,null,2,0,"span",[["class","inline-spacing"]],null,null,null,null,null)),(t()(),Sr(8,16777216,null,2,3,"mat-icon",[["class","mat-icon notranslate"],["matTooltip","Cancella l'elemento"],["role","img"]],[[2,"mat-icon-inline",null],[2,"mat-icon-no-color",null]],[[null,"click"],[null,"longpress"],[null,"keydown"],[null,"touchend"]],function(t,e,n){var i=!0,r=t.component;return"longpress"===e&&(i=!1!==to(t,10).show()&&i),"keydown"===e&&(i=!1!==to(t,10)._handleKeydown(n)&&i),"touchend"===e&&(i=!1!==to(t,10)._handleTouchend()&&i),"click"===e&&(i=!1!==r.onDelete(t.context.$implicit.id)&&i),i},gk,mk)),fo(9,9158656,null,0,dk,[Ee,ok,[8,null],[2,uk]],null,null),fo(10,147456,null,0,Ck,[Pv,Ee,ov,si,Fn,Qd,Cf,Ff,vk,[2,Mm],[2,wk],[2,Cu]],{message:[0,"message"]},null),(t()(),Vo(-1,0,[" delete "]))],function(t,e){t(e,9,0),t(e,10,0,"Cancella l'elemento")},function(t,e){t(e,0,0,to(e,1)._avatar||to(e,1)._icon,to(e,1)._avatar||to(e,1)._icon),t(e,6,0,e.context.$implicit.username),t(e,8,0,to(e,9).inline,"primary"!==to(e,9).color&&"accent"!==to(e,9).color&&"warn"!==to(e,9).color)})}function AP(t){return Go(0,[(t()(),Sr(0,0,null,null,1,"p",[["class","template-name"]],null,null,null,null,null)),(t()(),Vo(-1,null,["Utenti registrati"])),(t()(),Sr(2,0,null,null,2,"mat-paginator",[["class","mat-paginator"]],null,[[null,"page"]],function(t,e,n){var i=!0;return"page"===e&&(i=!1!==t.component.getUsersPagined(n)&&i),i},OP,wP)),fo(3,245760,null,0,eP,[$k,ai],{length:[0,"length"],pageSize:[1,"pageSize"],pageSizeOptions:[2,"pageSizeOptions"]},{page:"page"}),jo(32,4,new Array(2)),(t()(),Sr(5,0,null,null,4,"mat-list",[["class","mat-list mat-list-base"]],null,null,null,Nk,Mk)),fo(6,704512,null,0,Ok,[Ee],null,null),(t()(),Sr(7,0,null,0,0,"br",[],null,null,null,null,null)),(t()(),Er(16777216,null,0,1,null,PP)),fo(9,278528,null,0,cl,[si,Pe,Ei],{ngForOf:[0,"ngForOf"]},null)],function(t,e){var n=e.component,i=n.usersNumber,r=t(e,4,0,5,10);t(e,3,0,i,5,r),t(e,9,0,n.users)},null)}var LP=function(){function t(){}return t.prototype.openSidenav=function(){this.sidenav.open()},t.prototype.closeSidenav=function(){this.sidenav.close()},t.prototype.toggleSidenav=function(){this.sidenav.toggle()},t.prototype.getMatSidenav=function(){return this.sidenav},t.prototype.setMatSidenav=function(t){this.sidenav=t},t.ngInjectableDef=mt({factory:function(){return new t},token:t,providedIn:"root"}),t}(),DP=function(){function t(t,e,n,i){this.userService=t,this.sidenavService=e,this.modalService=n,this.authService=i}return t.prototype.ngOnInit=function(){this.authService.isLoggedIn&&(this.getSelf(),this.isAdmin())},t.prototype.deleteSelf=function(){var t=this;confirm("Confermi di voler procedere all'autocancellazione del tuo account? L'operazione \xe8 irreversibile")&&(this.formReady=!1,this.sidenavService.closeSidenav(),this.userService.deleteSelf().subscribe(function(e){!0===e.esito?(t.modalService.openMessageAlert(bb,new eb(e.descrizione,"green-snackbar")),t.authService.logout()):(t.formReady=!0,t.modalService.openMessageAlert(bb,new eb(e.descrizione,"red-snackbar")))}))},t.prototype.isAdmin=function(){var t=this;this.userService.getUserRoles().subscribe(function(e){for(var n=0,i=e;n enter",animation:{type:4,styles:{type:6,styles:{transform:"none",opacity:1},offset:null},timings:"150ms cubic-bezier(0, 0, 0.2, 1)"},options:null},{type:1,expr:"* => void, * => exit",animation:{type:4,styles:{type:6,styles:{opacity:0},offset:null},timings:"75ms cubic-bezier(0.4, 0.0, 0.2, 1)"},options:null}],options:{}}]}});function YP(t){return Go(0,[(t()(),Er(0,null,null,0))],null,null)}function KP(t){return Go(0,[ko(402653184,1,{_portalOutlet:0}),(t()(),Er(16777216,null,null,1,null,YP)),fo(2,212992,[[1,4]],0,U_,[de,si],{portal:[0,"portal"]},null)],function(t,e){t(e,2,0,"")},null)}function XP(t){return Go(0,[(t()(),Sr(0,0,null,null,1,"mat-dialog-container",[["aria-modal","true"],["class","mat-dialog-container"],["tabindex","-1"]],[[1,"id",0],[1,"role",0],[1,"aria-labelledby",0],[1,"aria-label",0],[1,"aria-describedby",0],[40,"@dialogContainer",0]],[["component","@dialogContainer.start"],["component","@dialogContainer.done"]],function(t,e,n){var i=!0;return"component:@dialogContainer.start"===e&&(i=!1!==to(t,1)._onAnimationStart(n)&&i),"component:@dialogContainer.done"===e&&(i=!1!==to(t,1)._onAnimationDone(n)&&i),i},KP,WP)),fo(1,49152,null,0,zv,[Ee,kf,ai,[2,Sl],jv],null,null)],null,function(t,e){t(e,0,0,to(e,1)._id,to(e,1)._config.role,to(e,1)._config.ariaLabel?null:to(e,1)._ariaLabelledBy,to(e,1)._config.ariaLabel,to(e,1)._config.ariaDescribedBy||null,to(e,1)._state)})}var ZP=Ur("mat-dialog-container",zv,XP,{},{},[]),QP=Qi({encapsulation:2,styles:[".mat-snack-bar-container{border-radius:4px;box-sizing:border-box;display:block;margin:24px;max-width:33vw;min-width:344px;padding:14px 16px;min-height:48px;transform-origin:center}@media (-ms-high-contrast:active){.mat-snack-bar-container{border:solid 1px}}.mat-snack-bar-handset{width:100%}.mat-snack-bar-handset .mat-snack-bar-container{margin:8px;max-width:100%;min-width:0;width:100%}"],data:{animation:[{type:7,name:"state",definitions:[{type:0,name:"void, hidden",styles:{type:6,styles:{transform:"scale(0.8)",opacity:0},offset:null},options:void 0},{type:0,name:"visible",styles:{type:6,styles:{transform:"scale(1)",opacity:1},offset:null},options:void 0},{type:1,expr:"* => visible",animation:{type:4,styles:null,timings:"150ms cubic-bezier(0, 0, 0.2, 1)"},options:null},{type:1,expr:"* => void, * => hidden",animation:{type:4,styles:{type:6,styles:{opacity:0},offset:null},timings:"75ms cubic-bezier(0.4, 0.0, 1, 1)"},options:null}],options:{}}]}});function JP(t){return Go(0,[(t()(),Er(0,null,null,0))],null,null)}function $P(t){return Go(0,[ko(402653184,1,{_portalOutlet:0}),(t()(),Er(16777216,null,null,1,null,JP)),fo(2,212992,[[1,4]],0,U_,[de,si],{portal:[0,"portal"]},null)],function(t,e){t(e,2,0,"")},null)}function tA(t){return Go(0,[(t()(),Sr(0,0,null,null,1,"snack-bar-container",[["class","mat-snack-bar-container"]],[[1,"role",0],[40,"@state",0]],[["component","@state.done"]],function(t,e,n){var i=!0;return"component:@state.done"===e&&(i=!1!==to(t,1).onAnimationEnd(n)&&i),i},$P,QP)),fo(1,180224,null,0,mb,[Fn,Ee,ai,db],null,null)],null,function(t,e){t(e,0,0,to(e,1)._role,to(e,1)._animationState)})}var eA=Ur("snack-bar-container",mb,tA,{},{},[]),nA=Qi({encapsulation:2,styles:[".mat-simple-snackbar{display:flex;justify-content:space-between;align-items:center;height:100%;line-height:20px;opacity:1}.mat-simple-snackbar-action{flex-shrink:0;margin:-8px -8px -8px 8px}.mat-simple-snackbar-action button{max-height:36px;min-width:0}[dir=rtl] .mat-simple-snackbar-action{margin-left:-8px;margin-right:8px}"],data:{}});function iA(t){return Go(0,[(t()(),Sr(0,0,null,null,3,"div",[["class","mat-simple-snackbar-action"]],null,null,null,null,null)),(t()(),Sr(1,0,null,null,2,"button",[["mat-button",""]],[[8,"disabled",0],[2,"_mat-animation-noopable",null]],[[null,"click"]],function(t,e,n){var i=!0;return"click"===e&&(i=!1!==t.component.action()&&i),i},M_,F_)),fo(2,180224,null,0,L_,[Ee,Qd,Ff,[2,r_]],null,null),(t()(),Vo(3,0,["",""]))],null,function(t,e){var n=e.component;t(e,1,0,to(e,2).disabled||null,"NoopAnimations"===to(e,2)._animationMode),t(e,3,0,n.data.action)})}function rA(t){return Go(2,[(t()(),Sr(0,0,null,null,1,"span",[],null,null,null,null,null)),(t()(),Vo(1,null,["",""])),(t()(),Er(16777216,null,null,1,null,iA)),fo(3,16384,null,0,pl,[si,Pe],{ngIf:[0,"ngIf"]},null)],function(t,e){t(e,3,0,e.component.hasAction)},function(t,e){t(e,1,0,e.component.data.message)})}function oA(t){return Go(0,[(t()(),Sr(0,0,null,null,1,"simple-snack-bar",[["class","mat-simple-snackbar"]],null,null,null,rA,nA)),fo(1,49152,null,0,fb,[hb,pb],null,null)],null,null)}var sA=Ur("simple-snack-bar",fb,oA,{},{},[]),aA=Qi({encapsulation:0,styles:[[".modal-form[_ngcontent-%COMP%]{display:flex;flex-direction:column;justify-content:flex-start;text-align:center;align-content:center;align-items:center;width:450px;height:450px}.modal-field[_ngcontent-%COMP%]{width:100%}"]],data:{}});function lA(t){return Go(0,[(t()(),Sr(0,0,null,null,118,"div",[["class","modal-form"]],null,null,null,null,null)),(t()(),Sr(1,0,null,null,2,"h2",[["class","template-name mat-dialog-title"],["mat-dialog-title",""]],[[8,"id",0]],null,null,null,null)),fo(2,81920,null,0,Zv,[[2,Gv],Ee,Kv],null,null),(t()(),Vo(-1,null,["Registrazione"])),(t()(),Sr(4,0,null,null,1,"mat-divider",[["class","mat-divider"],["role","separator"]],[[1,"aria-orientation",0],[2,"mat-divider-vertical",null],[2,"mat-divider-horizontal",null],[2,"mat-divider-inset",null]],null,null,hw,cw)),fo(5,49152,null,0,lw,[],null,null),(t()(),Sr(6,0,null,null,0,"br",[],null,null,null,null,null)),(t()(),Sr(7,0,null,null,105,"mat-dialog-content",[["class","modal-form mat-dialog-content"]],[[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,"submit"],[null,"reset"]],function(t,e,n){var i=!0;return"submit"===e&&(i=!1!==to(t,8).onSubmit(n)&&i),"reset"===e&&(i=!1!==to(t,8).onReset()&&i),i},null,null)),fo(8,540672,null,0,Ed,[[8,null],[8,null]],{form:[0,"form"]},null),mo(2048,null,kp,null,[Ed]),fo(10,16384,null,0,dd,[[4,kp]],null,null),fo(11,16384,null,0,Qv,[],null,null),(t()(),Sr(12,0,null,null,19,"div",[],null,null,null,null,null)),(t()(),Sr(13,0,null,null,18,"mat-form-field",[["class","modal-field mat-form-field"],["floatLabel","auto"]],[[2,"mat-form-field-appearance-standard",null],[2,"mat-form-field-appearance-fill",null],[2,"mat-form-field-appearance-outline",null],[2,"mat-form-field-appearance-legacy",null],[2,"mat-form-field-invalid",null],[2,"mat-form-field-can-float",null],[2,"mat-form-field-should-float",null],[2,"mat-form-field-has-label",null],[2,"mat-form-field-hide-placeholder",null],[2,"mat-form-field-disabled",null],[2,"mat-form-field-autofilled",null],[2,"mat-focused",null],[2,"mat-accent",null],[2,"mat-warn",null],[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],[2,"_mat-animation-noopable",null]],null,null,__,s_)),fo(14,7520256,null,7,Rm,[Ee,ai,[2,vm],[2,Mm],[2,Om],Qd,Fn,[2,r_]],{floatLabel:[0,"floatLabel"]},null),ko(335544320,1,{_control:0}),ko(335544320,2,{_placeholderChild:0}),ko(335544320,3,{_labelChild:0}),ko(603979776,4,{_errorChildren:1}),ko(603979776,5,{_hintChildren:1}),ko(603979776,6,{_prefixChildren:1}),ko(603979776,7,{_suffixChildren:1}),(t()(),Sr(22,0,null,1,9,"input",[["class","mat-input-element mat-form-field-autofill-control"],["formControlName","username"],["matInput",""],["placeholder","Username"],["required",""],["type","text"]],[[1,"required",0],[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],[2,"mat-input-server",null],[1,"id",0],[1,"placeholder",0],[8,"disabled",0],[8,"required",0],[1,"readonly",0],[1,"aria-describedby",0],[1,"aria-invalid",0],[1,"aria-required",0]],[[null,"input"],[null,"blur"],[null,"compositionstart"],[null,"compositionend"],[null,"focus"]],function(t,e,n){var i=!0;return"input"===e&&(i=!1!==to(t,23)._handleInput(n.target.value)&&i),"blur"===e&&(i=!1!==to(t,23).onTouched()&&i),"compositionstart"===e&&(i=!1!==to(t,23)._compositionStart()&&i),"compositionend"===e&&(i=!1!==to(t,23)._compositionEnd(n.target.value)&&i),"blur"===e&&(i=!1!==to(t,30)._focusChanged(!1)&&i),"focus"===e&&(i=!1!==to(t,30)._focusChanged(!0)&&i),"input"===e&&(i=!1!==to(t,30)._onInput()&&i),i},null,null)),fo(23,16384,null,0,Bp,[Oe,Ee,[2,zp]],null,null),fo(24,16384,null,0,Rd,[],{required:[0,"required"]},null),mo(1024,null,Ap,function(t){return[t]},[Rd]),mo(1024,null,jp,function(t){return[t]},[Bp]),fo(27,671744,null,0,Od,[[3,kp],[6,Ap],[8,null],[6,jp],[2,xd]],{name:[0,"name"]},null),mo(2048,null,Wp,null,[Od]),fo(29,16384,null,0,pd,[[4,Wp]],null,null),fo(30,999424,null,0,R_,[Ee,Qd,[6,Wp],[2,Cd],[2,Ed],Wf,[8,null],S_,Fn],{placeholder:[0,"placeholder"],required:[1,"required"],type:[2,"type"]},null),mo(2048,[[1,4]],Em,null,[R_]),(t()(),Sr(32,0,null,null,19,"div",[],null,null,null,null,null)),(t()(),Sr(33,0,null,null,18,"mat-form-field",[["class","modal-field mat-form-field"],["floatLabel","auto"]],[[2,"mat-form-field-appearance-standard",null],[2,"mat-form-field-appearance-fill",null],[2,"mat-form-field-appearance-outline",null],[2,"mat-form-field-appearance-legacy",null],[2,"mat-form-field-invalid",null],[2,"mat-form-field-can-float",null],[2,"mat-form-field-should-float",null],[2,"mat-form-field-has-label",null],[2,"mat-form-field-hide-placeholder",null],[2,"mat-form-field-disabled",null],[2,"mat-form-field-autofilled",null],[2,"mat-focused",null],[2,"mat-accent",null],[2,"mat-warn",null],[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],[2,"_mat-animation-noopable",null]],null,null,__,s_)),fo(34,7520256,null,7,Rm,[Ee,ai,[2,vm],[2,Mm],[2,Om],Qd,Fn,[2,r_]],{floatLabel:[0,"floatLabel"]},null),ko(335544320,8,{_control:0}),ko(335544320,9,{_placeholderChild:0}),ko(335544320,10,{_labelChild:0}),ko(603979776,11,{_errorChildren:1}),ko(603979776,12,{_hintChildren:1}),ko(603979776,13,{_prefixChildren:1}),ko(603979776,14,{_suffixChildren:1}),(t()(),Sr(42,0,null,1,9,"input",[["class","mat-input-element mat-form-field-autofill-control"],["formControlName","password"],["matInput",""],["placeholder","Password"],["required",""],["type","password"]],[[1,"required",0],[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],[2,"mat-input-server",null],[1,"id",0],[1,"placeholder",0],[8,"disabled",0],[8,"required",0],[1,"readonly",0],[1,"aria-describedby",0],[1,"aria-invalid",0],[1,"aria-required",0]],[[null,"input"],[null,"blur"],[null,"compositionstart"],[null,"compositionend"],[null,"focus"]],function(t,e,n){var i=!0;return"input"===e&&(i=!1!==to(t,43)._handleInput(n.target.value)&&i),"blur"===e&&(i=!1!==to(t,43).onTouched()&&i),"compositionstart"===e&&(i=!1!==to(t,43)._compositionStart()&&i),"compositionend"===e&&(i=!1!==to(t,43)._compositionEnd(n.target.value)&&i),"blur"===e&&(i=!1!==to(t,50)._focusChanged(!1)&&i),"focus"===e&&(i=!1!==to(t,50)._focusChanged(!0)&&i),"input"===e&&(i=!1!==to(t,50)._onInput()&&i),i},null,null)),fo(43,16384,null,0,Bp,[Oe,Ee,[2,zp]],null,null),fo(44,16384,null,0,Rd,[],{required:[0,"required"]},null),mo(1024,null,Ap,function(t){return[t]},[Rd]),mo(1024,null,jp,function(t){return[t]},[Bp]),fo(47,671744,null,0,Od,[[3,kp],[6,Ap],[8,null],[6,jp],[2,xd]],{name:[0,"name"]},null),mo(2048,null,Wp,null,[Od]),fo(49,16384,null,0,pd,[[4,Wp]],null,null),fo(50,999424,null,0,R_,[Ee,Qd,[6,Wp],[2,Cd],[2,Ed],Wf,[8,null],S_,Fn],{placeholder:[0,"placeholder"],required:[1,"required"],type:[2,"type"]},null),mo(2048,[[8,4]],Em,null,[R_]),(t()(),Sr(52,0,null,null,19,"div",[],null,null,null,null,null)),(t()(),Sr(53,0,null,null,18,"mat-form-field",[["class","modal-field mat-form-field"],["floatLabel","auto"]],[[2,"mat-form-field-appearance-standard",null],[2,"mat-form-field-appearance-fill",null],[2,"mat-form-field-appearance-outline",null],[2,"mat-form-field-appearance-legacy",null],[2,"mat-form-field-invalid",null],[2,"mat-form-field-can-float",null],[2,"mat-form-field-should-float",null],[2,"mat-form-field-has-label",null],[2,"mat-form-field-hide-placeholder",null],[2,"mat-form-field-disabled",null],[2,"mat-form-field-autofilled",null],[2,"mat-focused",null],[2,"mat-accent",null],[2,"mat-warn",null],[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],[2,"_mat-animation-noopable",null]],null,null,__,s_)),fo(54,7520256,null,7,Rm,[Ee,ai,[2,vm],[2,Mm],[2,Om],Qd,Fn,[2,r_]],{floatLabel:[0,"floatLabel"]},null),ko(335544320,15,{_control:0}),ko(335544320,16,{_placeholderChild:0}),ko(335544320,17,{_labelChild:0}),ko(603979776,18,{_errorChildren:1}),ko(603979776,19,{_hintChildren:1}),ko(603979776,20,{_prefixChildren:1}),ko(603979776,21,{_suffixChildren:1}),(t()(),Sr(62,0,null,1,9,"input",[["class","mat-input-element mat-form-field-autofill-control"],["formControlName","ripetiPassword"],["matInput",""],["placeholder","Ripeti password"],["required",""],["type","password"]],[[1,"required",0],[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],[2,"mat-input-server",null],[1,"id",0],[1,"placeholder",0],[8,"disabled",0],[8,"required",0],[1,"readonly",0],[1,"aria-describedby",0],[1,"aria-invalid",0],[1,"aria-required",0]],[[null,"input"],[null,"blur"],[null,"compositionstart"],[null,"compositionend"],[null,"focus"]],function(t,e,n){var i=!0;return"input"===e&&(i=!1!==to(t,63)._handleInput(n.target.value)&&i),"blur"===e&&(i=!1!==to(t,63).onTouched()&&i),"compositionstart"===e&&(i=!1!==to(t,63)._compositionStart()&&i),"compositionend"===e&&(i=!1!==to(t,63)._compositionEnd(n.target.value)&&i),"blur"===e&&(i=!1!==to(t,70)._focusChanged(!1)&&i),"focus"===e&&(i=!1!==to(t,70)._focusChanged(!0)&&i),"input"===e&&(i=!1!==to(t,70)._onInput()&&i),i},null,null)),fo(63,16384,null,0,Bp,[Oe,Ee,[2,zp]],null,null),fo(64,16384,null,0,Rd,[],{required:[0,"required"]},null),mo(1024,null,Ap,function(t){return[t]},[Rd]),mo(1024,null,jp,function(t){return[t]},[Bp]),fo(67,671744,null,0,Od,[[3,kp],[6,Ap],[8,null],[6,jp],[2,xd]],{name:[0,"name"]},null),mo(2048,null,Wp,null,[Od]),fo(69,16384,null,0,pd,[[4,Wp]],null,null),fo(70,999424,null,0,R_,[Ee,Qd,[6,Wp],[2,Cd],[2,Ed],Wf,[8,null],S_,Fn],{placeholder:[0,"placeholder"],required:[1,"required"],type:[2,"type"]},null),mo(2048,[[15,4]],Em,null,[R_]),(t()(),Sr(72,0,null,null,19,"div",[],null,null,null,null,null)),(t()(),Sr(73,0,null,null,18,"mat-form-field",[["class","modal-field mat-form-field"],["floatLabel","auto"]],[[2,"mat-form-field-appearance-standard",null],[2,"mat-form-field-appearance-fill",null],[2,"mat-form-field-appearance-outline",null],[2,"mat-form-field-appearance-legacy",null],[2,"mat-form-field-invalid",null],[2,"mat-form-field-can-float",null],[2,"mat-form-field-should-float",null],[2,"mat-form-field-has-label",null],[2,"mat-form-field-hide-placeholder",null],[2,"mat-form-field-disabled",null],[2,"mat-form-field-autofilled",null],[2,"mat-focused",null],[2,"mat-accent",null],[2,"mat-warn",null],[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],[2,"_mat-animation-noopable",null]],null,null,__,s_)),fo(74,7520256,null,7,Rm,[Ee,ai,[2,vm],[2,Mm],[2,Om],Qd,Fn,[2,r_]],{floatLabel:[0,"floatLabel"]},null),ko(335544320,22,{_control:0}),ko(335544320,23,{_placeholderChild:0}),ko(335544320,24,{_labelChild:0}),ko(603979776,25,{_errorChildren:1}),ko(603979776,26,{_hintChildren:1}),ko(603979776,27,{_prefixChildren:1}),ko(603979776,28,{_suffixChildren:1}),(t()(),Sr(82,0,null,1,9,"input",[["class","mat-input-element mat-form-field-autofill-control"],["formControlName","email"],["matInput",""],["placeholder","Email"],["required",""],["type","email"]],[[1,"required",0],[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],[2,"mat-input-server",null],[1,"id",0],[1,"placeholder",0],[8,"disabled",0],[8,"required",0],[1,"readonly",0],[1,"aria-describedby",0],[1,"aria-invalid",0],[1,"aria-required",0]],[[null,"input"],[null,"blur"],[null,"compositionstart"],[null,"compositionend"],[null,"focus"]],function(t,e,n){var i=!0;return"input"===e&&(i=!1!==to(t,83)._handleInput(n.target.value)&&i),"blur"===e&&(i=!1!==to(t,83).onTouched()&&i),"compositionstart"===e&&(i=!1!==to(t,83)._compositionStart()&&i),"compositionend"===e&&(i=!1!==to(t,83)._compositionEnd(n.target.value)&&i),"blur"===e&&(i=!1!==to(t,90)._focusChanged(!1)&&i),"focus"===e&&(i=!1!==to(t,90)._focusChanged(!0)&&i),"input"===e&&(i=!1!==to(t,90)._onInput()&&i),i},null,null)),fo(83,16384,null,0,Bp,[Oe,Ee,[2,zp]],null,null),fo(84,16384,null,0,Rd,[],{required:[0,"required"]},null),mo(1024,null,Ap,function(t){return[t]},[Rd]),mo(1024,null,jp,function(t){return[t]},[Bp]),fo(87,671744,null,0,Od,[[3,kp],[6,Ap],[8,null],[6,jp],[2,xd]],{name:[0,"name"]},null),mo(2048,null,Wp,null,[Od]),fo(89,16384,null,0,pd,[[4,Wp]],null,null),fo(90,999424,null,0,R_,[Ee,Qd,[6,Wp],[2,Cd],[2,Ed],Wf,[8,null],S_,Fn],{placeholder:[0,"placeholder"],required:[1,"required"],type:[2,"type"]},null),mo(2048,[[22,4]],Em,null,[R_]),(t()(),Sr(92,0,null,null,20,"div",[],null,null,null,null,null)),(t()(),Sr(93,0,null,null,19,"mat-form-field",[["class","modal-field mat-form-field"],["floatLabel","auto"]],[[2,"mat-form-field-appearance-standard",null],[2,"mat-form-field-appearance-fill",null],[2,"mat-form-field-appearance-outline",null],[2,"mat-form-field-appearance-legacy",null],[2,"mat-form-field-invalid",null],[2,"mat-form-field-can-float",null],[2,"mat-form-field-should-float",null],[2,"mat-form-field-has-label",null],[2,"mat-form-field-hide-placeholder",null],[2,"mat-form-field-disabled",null],[2,"mat-form-field-autofilled",null],[2,"mat-focused",null],[2,"mat-accent",null],[2,"mat-warn",null],[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],[2,"_mat-animation-noopable",null]],null,null,__,s_)),fo(94,7520256,null,7,Rm,[Ee,ai,[2,vm],[2,Mm],[2,Om],Qd,Fn,[2,r_]],{floatLabel:[0,"floatLabel"]},null),ko(335544320,29,{_control:0}),ko(335544320,30,{_placeholderChild:0}),ko(335544320,31,{_labelChild:0}),ko(603979776,32,{_errorChildren:1}),ko(603979776,33,{_hintChildren:1}),ko(603979776,34,{_prefixChildren:1}),ko(603979776,35,{_suffixChildren:1}),(t()(),Sr(102,0,null,1,10,"input",[["class","mat-input-element mat-form-field-autofill-control"],["formControlName","anni"],["matInput",""],["placeholder","Anni"],["required",""],["type","number"]],[[1,"required",0],[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],[2,"mat-input-server",null],[1,"id",0],[1,"placeholder",0],[8,"disabled",0],[8,"required",0],[1,"readonly",0],[1,"aria-describedby",0],[1,"aria-invalid",0],[1,"aria-required",0]],[[null,"input"],[null,"blur"],[null,"compositionstart"],[null,"compositionend"],[null,"change"],[null,"focus"]],function(t,e,n){var i=!0;return"input"===e&&(i=!1!==to(t,103)._handleInput(n.target.value)&&i),"blur"===e&&(i=!1!==to(t,103).onTouched()&&i),"compositionstart"===e&&(i=!1!==to(t,103)._compositionStart()&&i),"compositionend"===e&&(i=!1!==to(t,103)._compositionEnd(n.target.value)&&i),"change"===e&&(i=!1!==to(t,104).onChange(n.target.value)&&i),"input"===e&&(i=!1!==to(t,104).onChange(n.target.value)&&i),"blur"===e&&(i=!1!==to(t,104).onTouched()&&i),"blur"===e&&(i=!1!==to(t,111)._focusChanged(!1)&&i),"focus"===e&&(i=!1!==to(t,111)._focusChanged(!0)&&i),"input"===e&&(i=!1!==to(t,111)._onInput()&&i),i},null,null)),fo(103,16384,null,0,Bp,[Oe,Ee,[2,zp]],null,null),fo(104,16384,null,0,Hp,[Oe,Ee],null,null),fo(105,16384,null,0,Rd,[],{required:[0,"required"]},null),mo(1024,null,Ap,function(t){return[t]},[Rd]),mo(1024,null,jp,function(t,e){return[t,e]},[Bp,Hp]),fo(108,671744,null,0,Od,[[3,kp],[6,Ap],[8,null],[6,jp],[2,xd]],{name:[0,"name"]},null),mo(2048,null,Wp,null,[Od]),fo(110,16384,null,0,pd,[[4,Wp]],null,null),fo(111,999424,null,0,R_,[Ee,Qd,[6,Wp],[2,Cd],[2,Ed],Wf,[8,null],S_,Fn],{placeholder:[0,"placeholder"],required:[1,"required"],type:[2,"type"]},null),mo(2048,[[29,4]],Em,null,[R_]),(t()(),Sr(113,0,null,null,5,"div",[],null,null,null,null,null)),(t()(),Sr(114,0,null,null,4,"mat-dialog-actions",[["class","mat-dialog-actions"],["style","align-items: center; align-content: center"]],null,null,null,null,null)),fo(115,16384,null,0,Jv,[],null,null),(t()(),Sr(116,0,null,null,2,"button",[["class"," white-text"],["color","primary"],["mat-raised-button",""],["type","submit"]],[[8,"disabled",0],[2,"_mat-animation-noopable",null]],[[null,"click"]],function(t,e,n){var i=!0;return"click"===e&&(i=!1!==t.component.submit()&&i),i},M_,F_)),fo(117,180224,null,0,L_,[Ee,Qd,Ff,[2,r_]],{color:[0,"color"]},null),(t()(),Vo(-1,0,["Registrati!"]))],function(t,e){var n=e.component;t(e,2,0),t(e,8,0,n.regForm),t(e,14,0,"auto"),t(e,24,0,""),t(e,27,0,"username"),t(e,30,0,"Username","","text"),t(e,34,0,"auto"),t(e,44,0,""),t(e,47,0,"password"),t(e,50,0,"Password","","password"),t(e,54,0,"auto"),t(e,64,0,""),t(e,67,0,"ripetiPassword"),t(e,70,0,"Ripeti password","","password"),t(e,74,0,"auto"),t(e,84,0,""),t(e,87,0,"email"),t(e,90,0,"Email","","email"),t(e,94,0,"auto"),t(e,105,0,""),t(e,108,0,"anni"),t(e,111,0,"Anni","","number"),t(e,117,0,"primary")},function(t,e){t(e,1,0,to(e,2).id),t(e,4,0,to(e,5).vertical?"vertical":"horizontal",to(e,5).vertical,!to(e,5).vertical,to(e,5).inset),t(e,7,0,to(e,10).ngClassUntouched,to(e,10).ngClassTouched,to(e,10).ngClassPristine,to(e,10).ngClassDirty,to(e,10).ngClassValid,to(e,10).ngClassInvalid,to(e,10).ngClassPending),t(e,13,1,["standard"==to(e,14).appearance,"fill"==to(e,14).appearance,"outline"==to(e,14).appearance,"legacy"==to(e,14).appearance,to(e,14)._control.errorState,to(e,14)._canLabelFloat,to(e,14)._shouldLabelFloat(),to(e,14)._hasFloatingLabel(),to(e,14)._hideControlPlaceholder(),to(e,14)._control.disabled,to(e,14)._control.autofilled,to(e,14)._control.focused,"accent"==to(e,14).color,"warn"==to(e,14).color,to(e,14)._shouldForward("untouched"),to(e,14)._shouldForward("touched"),to(e,14)._shouldForward("pristine"),to(e,14)._shouldForward("dirty"),to(e,14)._shouldForward("valid"),to(e,14)._shouldForward("invalid"),to(e,14)._shouldForward("pending"),!to(e,14)._animationsEnabled]),t(e,22,1,[to(e,24).required?"":null,to(e,29).ngClassUntouched,to(e,29).ngClassTouched,to(e,29).ngClassPristine,to(e,29).ngClassDirty,to(e,29).ngClassValid,to(e,29).ngClassInvalid,to(e,29).ngClassPending,to(e,30)._isServer,to(e,30).id,to(e,30).placeholder,to(e,30).disabled,to(e,30).required,to(e,30).readonly&&!to(e,30)._isNativeSelect||null,to(e,30)._ariaDescribedby||null,to(e,30).errorState,to(e,30).required.toString()]),t(e,33,1,["standard"==to(e,34).appearance,"fill"==to(e,34).appearance,"outline"==to(e,34).appearance,"legacy"==to(e,34).appearance,to(e,34)._control.errorState,to(e,34)._canLabelFloat,to(e,34)._shouldLabelFloat(),to(e,34)._hasFloatingLabel(),to(e,34)._hideControlPlaceholder(),to(e,34)._control.disabled,to(e,34)._control.autofilled,to(e,34)._control.focused,"accent"==to(e,34).color,"warn"==to(e,34).color,to(e,34)._shouldForward("untouched"),to(e,34)._shouldForward("touched"),to(e,34)._shouldForward("pristine"),to(e,34)._shouldForward("dirty"),to(e,34)._shouldForward("valid"),to(e,34)._shouldForward("invalid"),to(e,34)._shouldForward("pending"),!to(e,34)._animationsEnabled]),t(e,42,1,[to(e,44).required?"":null,to(e,49).ngClassUntouched,to(e,49).ngClassTouched,to(e,49).ngClassPristine,to(e,49).ngClassDirty,to(e,49).ngClassValid,to(e,49).ngClassInvalid,to(e,49).ngClassPending,to(e,50)._isServer,to(e,50).id,to(e,50).placeholder,to(e,50).disabled,to(e,50).required,to(e,50).readonly&&!to(e,50)._isNativeSelect||null,to(e,50)._ariaDescribedby||null,to(e,50).errorState,to(e,50).required.toString()]),t(e,53,1,["standard"==to(e,54).appearance,"fill"==to(e,54).appearance,"outline"==to(e,54).appearance,"legacy"==to(e,54).appearance,to(e,54)._control.errorState,to(e,54)._canLabelFloat,to(e,54)._shouldLabelFloat(),to(e,54)._hasFloatingLabel(),to(e,54)._hideControlPlaceholder(),to(e,54)._control.disabled,to(e,54)._control.autofilled,to(e,54)._control.focused,"accent"==to(e,54).color,"warn"==to(e,54).color,to(e,54)._shouldForward("untouched"),to(e,54)._shouldForward("touched"),to(e,54)._shouldForward("pristine"),to(e,54)._shouldForward("dirty"),to(e,54)._shouldForward("valid"),to(e,54)._shouldForward("invalid"),to(e,54)._shouldForward("pending"),!to(e,54)._animationsEnabled]),t(e,62,1,[to(e,64).required?"":null,to(e,69).ngClassUntouched,to(e,69).ngClassTouched,to(e,69).ngClassPristine,to(e,69).ngClassDirty,to(e,69).ngClassValid,to(e,69).ngClassInvalid,to(e,69).ngClassPending,to(e,70)._isServer,to(e,70).id,to(e,70).placeholder,to(e,70).disabled,to(e,70).required,to(e,70).readonly&&!to(e,70)._isNativeSelect||null,to(e,70)._ariaDescribedby||null,to(e,70).errorState,to(e,70).required.toString()]),t(e,73,1,["standard"==to(e,74).appearance,"fill"==to(e,74).appearance,"outline"==to(e,74).appearance,"legacy"==to(e,74).appearance,to(e,74)._control.errorState,to(e,74)._canLabelFloat,to(e,74)._shouldLabelFloat(),to(e,74)._hasFloatingLabel(),to(e,74)._hideControlPlaceholder(),to(e,74)._control.disabled,to(e,74)._control.autofilled,to(e,74)._control.focused,"accent"==to(e,74).color,"warn"==to(e,74).color,to(e,74)._shouldForward("untouched"),to(e,74)._shouldForward("touched"),to(e,74)._shouldForward("pristine"),to(e,74)._shouldForward("dirty"),to(e,74)._shouldForward("valid"),to(e,74)._shouldForward("invalid"),to(e,74)._shouldForward("pending"),!to(e,74)._animationsEnabled]),t(e,82,1,[to(e,84).required?"":null,to(e,89).ngClassUntouched,to(e,89).ngClassTouched,to(e,89).ngClassPristine,to(e,89).ngClassDirty,to(e,89).ngClassValid,to(e,89).ngClassInvalid,to(e,89).ngClassPending,to(e,90)._isServer,to(e,90).id,to(e,90).placeholder,to(e,90).disabled,to(e,90).required,to(e,90).readonly&&!to(e,90)._isNativeSelect||null,to(e,90)._ariaDescribedby||null,to(e,90).errorState,to(e,90).required.toString()]),t(e,93,1,["standard"==to(e,94).appearance,"fill"==to(e,94).appearance,"outline"==to(e,94).appearance,"legacy"==to(e,94).appearance,to(e,94)._control.errorState,to(e,94)._canLabelFloat,to(e,94)._shouldLabelFloat(),to(e,94)._hasFloatingLabel(),to(e,94)._hideControlPlaceholder(),to(e,94)._control.disabled,to(e,94)._control.autofilled,to(e,94)._control.focused,"accent"==to(e,94).color,"warn"==to(e,94).color,to(e,94)._shouldForward("untouched"),to(e,94)._shouldForward("touched"),to(e,94)._shouldForward("pristine"),to(e,94)._shouldForward("dirty"),to(e,94)._shouldForward("valid"),to(e,94)._shouldForward("invalid"),to(e,94)._shouldForward("pending"),!to(e,94)._animationsEnabled]),t(e,102,1,[to(e,105).required?"":null,to(e,110).ngClassUntouched,to(e,110).ngClassTouched,to(e,110).ngClassPristine,to(e,110).ngClassDirty,to(e,110).ngClassValid,to(e,110).ngClassInvalid,to(e,110).ngClassPending,to(e,111)._isServer,to(e,111).id,to(e,111).placeholder,to(e,111).disabled,to(e,111).required,to(e,111).readonly&&!to(e,111)._isNativeSelect||null,to(e,111)._ariaDescribedby||null,to(e,111).errorState,to(e,111).required.toString()]),t(e,116,0,to(e,117).disabled||null,"NoopAnimations"===to(e,117)._animationMode)})}function uA(t){return Go(0,[(t()(),Sr(0,0,null,null,1,"app-registration",[],null,null,null,lA,aA)),fo(1,114688,null,0,tw,[kd,Gv,$b,vb],null,null)],function(t,e){t(e,1,0)},null)}var cA=Ur("app-registration",tw,uA,{},{},[]),hA=Qi({encapsulation:0,styles:[[".message-alert[_ngcontent-%COMP%]{width:200px;height:100px}"]],data:{}});function pA(t){return Go(0,[(t()(),Sr(0,0,null,null,2,"div",[],null,null,null,null,null)),(t()(),Sr(1,0,null,null,1,"p",[],null,null,null,null,null)),(t()(),Vo(2,null,[" "," "]))],null,function(t,e){t(e,2,0,e.component.message.testo)})}function dA(t){return Go(0,[(t()(),Sr(0,0,null,null,1,"app-message",[],null,null,null,pA,hA)),fo(1,114688,null,0,bb,[pb],null,null)],function(t,e){t(e,1,0)},null)}var fA=Ur("app-message",bb,dA,{},{},[]),mA=Qi({encapsulation:0,styles:[[".point-form[_ngcontent-%COMP%]{width:100%;height:100%}.modal-name[_ngcontent-%COMP%]{font-family:'Gill Sans','Gill Sans MT',Calibri,'Trebuchet MS',sans-serif;font-size:1.5rem;letter-spacing:1px;color:#8b0000}.point-form-container[_ngcontent-%COMP%]{text-align:center;display:flex;justify-content:flex-start;flex-direction:column;width:400px;height:400px}.span-button[_ngcontent-%COMP%]{display:flex;flex-direction:row}"]],data:{}});function gA(t){return Go(0,[(t()(),Sr(0,0,null,null,2,"mat-option",[["class","mat-option"],["role","option"]],[[1,"tabindex",0],[2,"mat-selected",null],[2,"mat-option-multiple",null],[2,"mat-active",null],[8,"id",0],[1,"aria-selected",0],[1,"aria-disabled",0],[2,"mat-option-disabled",null]],[[null,"click"],[null,"keydown"]],function(t,e,n){var i=!0;return"click"===e&&(i=!1!==to(t,1)._selectViaInteraction()&&i),"keydown"===e&&(i=!1!==to(t,1)._handleKeydown(n)&&i),i},Lk,Pk)),fo(1,8568832,[[22,4]],0,gm,[Ee,ai,[2,mm],[2,pm]],{value:[0,"value"]},null),(t()(),Vo(2,0,[" "," "]))],function(t,e){t(e,1,0,e.context.$implicit.id)},function(t,e){t(e,0,0,to(e,1)._getTabIndex(),to(e,1).selected,to(e,1).multiple,to(e,1).active,to(e,1).id,to(e,1)._getAriaSelected(),to(e,1).disabled.toString(),to(e,1).disabled),t(e,2,0,e.context.$implicit.codice)})}function yA(t){return Go(0,[(t()(),Sr(0,0,null,null,7,"div",[],null,null,null,null,null)),(t()(),Sr(1,0,null,null,2,"button",[["class"," white-text"],["color","primary"],["mat-raised-button",""]],[[8,"disabled",0],[2,"_mat-animation-noopable",null]],[[null,"click"]],function(t,e,n){var i=!0;return"click"===e&&(i=!1!==t.component.salvaPosizione()&&i),i},M_,F_)),fo(2,180224,null,0,L_,[Ee,Qd,Ff,[2,r_]],{color:[0,"color"]},null),(t()(),Vo(-1,0,["Salva"])),(t()(),Sr(4,0,null,null,0,"div",[["class","divider"]],null,null,null,null,null)),(t()(),Sr(5,0,null,null,2,"button",[["class"," white-text"],["color","accent"],["mat-raised-button",""]],[[8,"disabled",0],[2,"_mat-animation-noopable",null]],[[null,"click"]],function(t,e,n){var i=!0;return"click"===e&&(i=!1!==t.component.closeModal()&&i),i},M_,F_)),fo(6,180224,null,0,L_,[Ee,Qd,Ff,[2,r_]],{color:[0,"color"]},null),(t()(),Vo(-1,0,["Chiudi"]))],function(t,e){t(e,2,0,"primary"),t(e,6,0,"accent")},function(t,e){t(e,1,0,to(e,2).disabled||null,"NoopAnimations"===to(e,2)._animationMode),t(e,5,0,to(e,6).disabled||null,"NoopAnimations"===to(e,6)._animationMode)})}function _A(t){return Go(0,[(t()(),Sr(0,0,null,null,2,"button",[["class"," white-text"],["color","primary"],["mat-raised-button",""]],[[8,"disabled",0],[2,"_mat-animation-noopable",null]],[[null,"click"]],function(t,e,n){var i=!0;return"click"===e&&(i=!1!==t.component.aggiornaPosizione()&&i),i},M_,F_)),fo(1,180224,null,0,L_,[Ee,Qd,Ff,[2,r_]],{color:[0,"color"]},null),(t()(),Vo(-1,0,["Aggiorna"])),(t()(),Sr(3,0,null,null,0,"div",[["class","divider"]],null,null,null,null,null)),(t()(),Sr(4,0,null,null,2,"button",[["class"," white-text"],["color","warn"],["mat-raised-button",""]],[[8,"disabled",0],[2,"_mat-animation-noopable",null]],[[null,"click"]],function(t,e,n){var i=!0;return"click"===e&&(i=!1!==t.component.cancellaPosizione()&&i),i},M_,F_)),fo(5,180224,null,0,L_,[Ee,Qd,Ff,[2,r_]],{color:[0,"color"]},null),(t()(),Vo(-1,0,["Cancella"]))],function(t,e){t(e,1,0,"primary"),t(e,5,0,"warn")},function(t,e){t(e,0,0,to(e,1).disabled||null,"NoopAnimations"===to(e,1)._animationMode),t(e,4,0,to(e,5).disabled||null,"NoopAnimations"===to(e,5)._animationMode)})}function vA(t){return Go(0,[(t()(),Sr(0,0,null,null,80,"div",[["class","point-form-container"]],null,null,null,null,null)),(t()(),Sr(1,0,null,null,2,"h2",[["class","modal-name mat-dialog-title"],["mat-dialog-title",""]],[[8,"id",0]],null,null,null,null)),fo(2,81920,null,0,Zv,[[2,Gv],Ee,Kv],null,null),(t()(),Vo(3,null,["",""])),(t()(),Sr(4,0,null,null,1,"mat-divider",[["class","mat-divider"],["role","separator"]],[[1,"aria-orientation",0],[2,"mat-divider-vertical",null],[2,"mat-divider-horizontal",null],[2,"mat-divider-inset",null]],null,null,hw,cw)),fo(5,49152,null,0,lw,[],null,null),(t()(),Sr(6,0,null,null,0,"br",[],null,null,null,null,null)),(t()(),Sr(7,0,null,null,0,"br",[],null,null,null,null,null)),(t()(),Sr(8,0,null,null,72,"form",[["class","form mat-dialog-content"],["mat-dialog-content",""],["novalidate",""]],[[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,"submit"],[null,"reset"]],function(t,e,n){var i=!0;return"submit"===e&&(i=!1!==to(t,10).onSubmit(n)&&i),"reset"===e&&(i=!1!==to(t,10).onReset()&&i),i},null,null)),fo(9,16384,null,0,Pd,[],null,null),fo(10,540672,null,0,Ed,[[8,null],[8,null]],{form:[0,"form"]},null),mo(2048,null,kp,null,[Ed]),fo(12,16384,null,0,dd,[[4,kp]],null,null),fo(13,16384,null,0,Qv,[],null,null),(t()(),Sr(14,0,null,null,19,"div",[],null,null,null,null,null)),(t()(),Sr(15,0,null,null,18,"mat-form-field",[["class","mat-field mat-form-field"]],[[2,"mat-form-field-appearance-standard",null],[2,"mat-form-field-appearance-fill",null],[2,"mat-form-field-appearance-outline",null],[2,"mat-form-field-appearance-legacy",null],[2,"mat-form-field-invalid",null],[2,"mat-form-field-can-float",null],[2,"mat-form-field-should-float",null],[2,"mat-form-field-has-label",null],[2,"mat-form-field-hide-placeholder",null],[2,"mat-form-field-disabled",null],[2,"mat-form-field-autofilled",null],[2,"mat-focused",null],[2,"mat-accent",null],[2,"mat-warn",null],[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],[2,"_mat-animation-noopable",null]],null,null,__,s_)),fo(16,7520256,null,7,Rm,[Ee,ai,[2,vm],[2,Mm],[2,Om],Qd,Fn,[2,r_]],null,null),ko(335544320,1,{_control:0}),ko(335544320,2,{_placeholderChild:0}),ko(335544320,3,{_labelChild:0}),ko(603979776,4,{_errorChildren:1}),ko(603979776,5,{_hintChildren:1}),ko(603979776,6,{_prefixChildren:1}),ko(603979776,7,{_suffixChildren:1}),(t()(),Sr(24,0,null,1,9,"input",[["class","mat-input-element mat-form-field-autofill-control"],["formControlName","nome"],["matInput",""],["placeholder","Nome"],["required",""],["type","text"]],[[1,"required",0],[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],[2,"mat-input-server",null],[1,"id",0],[1,"placeholder",0],[8,"disabled",0],[8,"required",0],[1,"readonly",0],[1,"aria-describedby",0],[1,"aria-invalid",0],[1,"aria-required",0]],[[null,"input"],[null,"blur"],[null,"compositionstart"],[null,"compositionend"],[null,"focus"]],function(t,e,n){var i=!0;return"input"===e&&(i=!1!==to(t,25)._handleInput(n.target.value)&&i),"blur"===e&&(i=!1!==to(t,25).onTouched()&&i),"compositionstart"===e&&(i=!1!==to(t,25)._compositionStart()&&i),"compositionend"===e&&(i=!1!==to(t,25)._compositionEnd(n.target.value)&&i),"blur"===e&&(i=!1!==to(t,32)._focusChanged(!1)&&i),"focus"===e&&(i=!1!==to(t,32)._focusChanged(!0)&&i),"input"===e&&(i=!1!==to(t,32)._onInput()&&i),i},null,null)),fo(25,16384,null,0,Bp,[Oe,Ee,[2,zp]],null,null),fo(26,16384,null,0,Rd,[],{required:[0,"required"]},null),mo(1024,null,Ap,function(t){return[t]},[Rd]),mo(1024,null,jp,function(t){return[t]},[Bp]),fo(29,671744,null,0,Od,[[3,kp],[6,Ap],[8,null],[6,jp],[2,xd]],{name:[0,"name"]},null),mo(2048,null,Wp,null,[Od]),fo(31,16384,null,0,pd,[[4,Wp]],null,null),fo(32,999424,null,0,R_,[Ee,Qd,[6,Wp],[2,Cd],[2,Ed],Wf,[8,null],S_,Fn],{placeholder:[0,"placeholder"],required:[1,"required"],type:[2,"type"]},null),mo(2048,[[1,4]],Em,null,[R_]),(t()(),Sr(34,0,null,null,17,"div",[],null,null,null,null,null)),(t()(),Sr(35,0,null,null,16,"mat-form-field",[["class","input-fullwidth mat-form-field"]],[[2,"mat-form-field-appearance-standard",null],[2,"mat-form-field-appearance-fill",null],[2,"mat-form-field-appearance-outline",null],[2,"mat-form-field-appearance-legacy",null],[2,"mat-form-field-invalid",null],[2,"mat-form-field-can-float",null],[2,"mat-form-field-should-float",null],[2,"mat-form-field-has-label",null],[2,"mat-form-field-hide-placeholder",null],[2,"mat-form-field-disabled",null],[2,"mat-form-field-autofilled",null],[2,"mat-focused",null],[2,"mat-accent",null],[2,"mat-warn",null],[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],[2,"_mat-animation-noopable",null]],null,null,__,s_)),fo(36,7520256,null,7,Rm,[Ee,ai,[2,vm],[2,Mm],[2,Om],Qd,Fn,[2,r_]],null,null),ko(335544320,8,{_control:0}),ko(335544320,9,{_placeholderChild:0}),ko(335544320,10,{_labelChild:0}),ko(603979776,11,{_errorChildren:1}),ko(603979776,12,{_hintChildren:1}),ko(603979776,13,{_prefixChildren:1}),ko(603979776,14,{_suffixChildren:1}),(t()(),Sr(44,0,null,1,7,"textarea",[["class","mat-input-element mat-form-field-autofill-control"],["formControlName","descrizione"],["matInput",""],["placeholder","Descrizione"]],[[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],[2,"mat-input-server",null],[1,"id",0],[1,"placeholder",0],[8,"disabled",0],[8,"required",0],[1,"readonly",0],[1,"aria-describedby",0],[1,"aria-invalid",0],[1,"aria-required",0]],[[null,"input"],[null,"blur"],[null,"compositionstart"],[null,"compositionend"],[null,"focus"]],function(t,e,n){var i=!0;return"input"===e&&(i=!1!==to(t,45)._handleInput(n.target.value)&&i),"blur"===e&&(i=!1!==to(t,45).onTouched()&&i),"compositionstart"===e&&(i=!1!==to(t,45)._compositionStart()&&i),"compositionend"===e&&(i=!1!==to(t,45)._compositionEnd(n.target.value)&&i),"blur"===e&&(i=!1!==to(t,50)._focusChanged(!1)&&i),"focus"===e&&(i=!1!==to(t,50)._focusChanged(!0)&&i),"input"===e&&(i=!1!==to(t,50)._onInput()&&i),i},null,null)),fo(45,16384,null,0,Bp,[Oe,Ee,[2,zp]],null,null),mo(1024,null,jp,function(t){return[t]},[Bp]),fo(47,671744,null,0,Od,[[3,kp],[8,null],[8,null],[6,jp],[2,xd]],{name:[0,"name"]},null),mo(2048,null,Wp,null,[Od]),fo(49,16384,null,0,pd,[[4,Wp]],null,null),fo(50,999424,null,0,R_,[Ee,Qd,[6,Wp],[2,Cd],[2,Ed],Wf,[8,null],S_,Fn],{placeholder:[0,"placeholder"]},null),mo(2048,[[8,4]],Em,null,[R_]),(t()(),Sr(52,0,null,null,23,"div",[],null,null,null,null,null)),(t()(),Sr(53,0,null,null,22,"mat-form-field",[["class","mat-field mat-form-field"]],[[2,"mat-form-field-appearance-standard",null],[2,"mat-form-field-appearance-fill",null],[2,"mat-form-field-appearance-outline",null],[2,"mat-form-field-appearance-legacy",null],[2,"mat-form-field-invalid",null],[2,"mat-form-field-can-float",null],[2,"mat-form-field-should-float",null],[2,"mat-form-field-has-label",null],[2,"mat-form-field-hide-placeholder",null],[2,"mat-form-field-disabled",null],[2,"mat-form-field-autofilled",null],[2,"mat-focused",null],[2,"mat-accent",null],[2,"mat-warn",null],[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],[2,"_mat-animation-noopable",null]],null,null,__,s_)),fo(54,7520256,null,7,Rm,[Ee,ai,[2,vm],[2,Mm],[2,Om],Qd,Fn,[2,r_]],null,null),ko(335544320,15,{_control:0}),ko(335544320,16,{_placeholderChild:0}),ko(335544320,17,{_labelChild:0}),ko(603979776,18,{_errorChildren:1}),ko(603979776,19,{_hintChildren:1}),ko(603979776,20,{_prefixChildren:1}),ko(603979776,21,{_suffixChildren:1}),(t()(),Sr(62,0,null,1,13,"mat-select",[["class","mat-select"],["formControlName","idLegenda"],["placeholder","Selezione legenda"],["required",""],["role","listbox"]],[[1,"required",0],[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],[1,"id",0],[1,"tabindex",0],[1,"aria-label",0],[1,"aria-labelledby",0],[1,"aria-required",0],[1,"aria-disabled",0],[1,"aria-invalid",0],[1,"aria-owns",0],[1,"aria-multiselectable",0],[1,"aria-describedby",0],[1,"aria-activedescendant",0],[2,"mat-select-disabled",null],[2,"mat-select-invalid",null],[2,"mat-select-required",null],[2,"mat-select-empty",null]],[[null,"ngModelChange"],[null,"keydown"],[null,"focus"],[null,"blur"]],function(t,e,n){var i=!0,r=t.component;return"keydown"===e&&(i=!1!==to(t,69)._handleKeydown(n)&&i),"focus"===e&&(i=!1!==to(t,69)._onFocus()&&i),"blur"===e&&(i=!1!==to(t,69)._onBlur()&&i),"ngModelChange"===e&&(i=!1!==(r.selectedLegenda=n)&&i),i},bP,fP)),mo(6144,null,mm,null,[pP]),fo(64,16384,null,0,Rd,[],{required:[0,"required"]},null),mo(1024,null,Ap,function(t){return[t]},[Rd]),fo(66,671744,null,0,Od,[[3,kp],[6,Ap],[8,null],[8,null],[2,xd]],{name:[0,"name"],model:[1,"model"]},{update:"ngModelChange"}),mo(2048,null,Wp,null,[Od]),fo(68,16384,null,0,pd,[[4,Wp]],null,null),fo(69,2080768,null,3,pP,[lv,ai,Fn,Wf,Ee,[2,Mm],[2,Cd],[2,Ed],[2,Rm],[6,Wp],[8,null],uP,Af],{placeholder:[0,"placeholder"],required:[1,"required"]},null),ko(603979776,22,{options:1}),ko(603979776,23,{optionGroups:1}),ko(335544320,24,{customTrigger:0}),mo(2048,[[15,4]],Em,null,[pP]),(t()(),Er(16777216,null,1,1,null,gA)),fo(75,278528,null,0,cl,[si,Pe,Ei],{ngForOf:[0,"ngForOf"]},null),(t()(),Sr(76,0,null,null,4,"div",[],null,null,null,null,null)),(t()(),Sr(77,0,null,null,0,"br",[],null,null,null,null,null)),(t()(),Er(16777216,null,null,1,null,yA)),fo(79,16384,null,0,pl,[si,Pe],{ngIf:[0,"ngIf"],ngIfElse:[1,"ngIfElse"]},null),(t()(),Er(0,[["isUpdate",2]],null,0,null,_A))],function(t,e){var n=e.component;t(e,2,0),t(e,10,0,n.formPoint),t(e,26,0,""),t(e,29,0,"nome"),t(e,32,0,"Nome","","text"),t(e,47,0,"descrizione"),t(e,50,0,"Descrizione"),t(e,64,0,""),t(e,66,0,"idLegenda",n.selectedLegenda),t(e,69,0,"Selezione legenda",""),t(e,75,0,n.legende),t(e,79,0,1==n.isNew,to(e,80))},function(t,e){var n=e.component;t(e,1,0,to(e,2).id),t(e,3,0,n.modalName),t(e,4,0,to(e,5).vertical?"vertical":"horizontal",to(e,5).vertical,!to(e,5).vertical,to(e,5).inset),t(e,8,0,to(e,12).ngClassUntouched,to(e,12).ngClassTouched,to(e,12).ngClassPristine,to(e,12).ngClassDirty,to(e,12).ngClassValid,to(e,12).ngClassInvalid,to(e,12).ngClassPending),t(e,15,1,["standard"==to(e,16).appearance,"fill"==to(e,16).appearance,"outline"==to(e,16).appearance,"legacy"==to(e,16).appearance,to(e,16)._control.errorState,to(e,16)._canLabelFloat,to(e,16)._shouldLabelFloat(),to(e,16)._hasFloatingLabel(),to(e,16)._hideControlPlaceholder(),to(e,16)._control.disabled,to(e,16)._control.autofilled,to(e,16)._control.focused,"accent"==to(e,16).color,"warn"==to(e,16).color,to(e,16)._shouldForward("untouched"),to(e,16)._shouldForward("touched"),to(e,16)._shouldForward("pristine"),to(e,16)._shouldForward("dirty"),to(e,16)._shouldForward("valid"),to(e,16)._shouldForward("invalid"),to(e,16)._shouldForward("pending"),!to(e,16)._animationsEnabled]),t(e,24,1,[to(e,26).required?"":null,to(e,31).ngClassUntouched,to(e,31).ngClassTouched,to(e,31).ngClassPristine,to(e,31).ngClassDirty,to(e,31).ngClassValid,to(e,31).ngClassInvalid,to(e,31).ngClassPending,to(e,32)._isServer,to(e,32).id,to(e,32).placeholder,to(e,32).disabled,to(e,32).required,to(e,32).readonly&&!to(e,32)._isNativeSelect||null,to(e,32)._ariaDescribedby||null,to(e,32).errorState,to(e,32).required.toString()]),t(e,35,1,["standard"==to(e,36).appearance,"fill"==to(e,36).appearance,"outline"==to(e,36).appearance,"legacy"==to(e,36).appearance,to(e,36)._control.errorState,to(e,36)._canLabelFloat,to(e,36)._shouldLabelFloat(),to(e,36)._hasFloatingLabel(),to(e,36)._hideControlPlaceholder(),to(e,36)._control.disabled,to(e,36)._control.autofilled,to(e,36)._control.focused,"accent"==to(e,36).color,"warn"==to(e,36).color,to(e,36)._shouldForward("untouched"),to(e,36)._shouldForward("touched"),to(e,36)._shouldForward("pristine"),to(e,36)._shouldForward("dirty"),to(e,36)._shouldForward("valid"),to(e,36)._shouldForward("invalid"),to(e,36)._shouldForward("pending"),!to(e,36)._animationsEnabled]),t(e,44,1,[to(e,49).ngClassUntouched,to(e,49).ngClassTouched,to(e,49).ngClassPristine,to(e,49).ngClassDirty,to(e,49).ngClassValid,to(e,49).ngClassInvalid,to(e,49).ngClassPending,to(e,50)._isServer,to(e,50).id,to(e,50).placeholder,to(e,50).disabled,to(e,50).required,to(e,50).readonly&&!to(e,50)._isNativeSelect||null,to(e,50)._ariaDescribedby||null,to(e,50).errorState,to(e,50).required.toString()]),t(e,53,1,["standard"==to(e,54).appearance,"fill"==to(e,54).appearance,"outline"==to(e,54).appearance,"legacy"==to(e,54).appearance,to(e,54)._control.errorState,to(e,54)._canLabelFloat,to(e,54)._shouldLabelFloat(),to(e,54)._hasFloatingLabel(),to(e,54)._hideControlPlaceholder(),to(e,54)._control.disabled,to(e,54)._control.autofilled,to(e,54)._control.focused,"accent"==to(e,54).color,"warn"==to(e,54).color,to(e,54)._shouldForward("untouched"),to(e,54)._shouldForward("touched"),to(e,54)._shouldForward("pristine"),to(e,54)._shouldForward("dirty"),to(e,54)._shouldForward("valid"),to(e,54)._shouldForward("invalid"),to(e,54)._shouldForward("pending"),!to(e,54)._animationsEnabled]),t(e,62,1,[to(e,64).required?"":null,to(e,68).ngClassUntouched,to(e,68).ngClassTouched,to(e,68).ngClassPristine,to(e,68).ngClassDirty,to(e,68).ngClassValid,to(e,68).ngClassInvalid,to(e,68).ngClassPending,to(e,69).id,to(e,69).tabIndex,to(e,69)._getAriaLabel(),to(e,69)._getAriaLabelledby(),to(e,69).required.toString(),to(e,69).disabled.toString(),to(e,69).errorState,to(e,69).panelOpen?to(e,69)._optionIds:null,to(e,69).multiple,to(e,69)._ariaDescribedby||null,to(e,69)._getAriaActiveDescendant(),to(e,69).disabled,to(e,69).errorState,to(e,69).required,to(e,69).empty])})}function bA(t){return Go(0,[(t()(),Sr(0,0,null,null,1,"app-addpoint",[],null,null,null,vA,mA)),fo(1,114688,null,0,WR,[kd,qR,Gv,vb,HR,Uv],null,null)],function(t,e){t(e,1,0)},null)}var wA=Ur("app-addpoint",WR,bA,{},{pointEvent:"pointEvent"},[]);function CA(t){throw Error("A drawer was already declared for 'position=\""+t+"\"'")}var xA=new yt("MAT_DRAWER_DEFAULT_AUTOSIZE",{providedIn:"root",factory:function(){return!1}}),EA=function(t){function e(e,n,i,r,o){var s=t.call(this,i,r,o)||this;return s._changeDetectorRef=e,s._container=n,s}return r(e,t),e.prototype.ngAfterContentInit=function(){var t=this;this._container._contentMarginChanges.subscribe(function(){t._changeDetectorRef.markForCheck()})},e}(sv),SA=function(){function t(t,e,n,i,r,o){var s=this;this._elementRef=t,this._focusTrapFactory=e,this._focusMonitor=n,this._platform=i,this._ngZone=r,this._doc=o,this._elementFocusedBeforeDrawerWasOpened=null,this._enableAnimations=!1,this._position="start",this._mode="over",this._disableClose=!1,this._autoFocus=!0,this._animationStarted=new F,this._animationEnd=new F,this._animationState="void",this.openedChange=new ke(!0),this._destroyed=new F,this.onPositionChanged=new ke,this._modeChanged=new F,this._opened=!1,this.openedChange.subscribe(function(t){t?(s._doc&&(s._elementFocusedBeforeDrawerWasOpened=s._doc.activeElement),s._isFocusTrapEnabled&&s._focusTrap&&s._trapFocus()):s._restoreFocus()}),this._ngZone.runOutsideAngular(function(){bm(s._elementRef.nativeElement,"keydown").pipe(aa(function(t){return t.keyCode===lf&&!s.disableClose}),wm(s._destroyed)).subscribe(function(t){return s._ngZone.run(function(){s.close(),t.stopPropagation()})})}),this._animationEnd.pipe(Q_(function(t,e){return t.fromState===e.fromState&&t.toState===e.toState})).subscribe(function(t){var e=t.fromState,n=t.toState;(0===n.indexOf("open")&&"void"===e||"void"===n&&0===e.indexOf("open"))&&s.openedChange.emit(s._opened)})}return Object.defineProperty(t.prototype,"position",{get:function(){return this._position},set:function(t){(t="end"===t?"end":"start")!=this._position&&(this._position=t,this.onPositionChanged.emit())},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"mode",{get:function(){return this._mode},set:function(t){this._mode=t,this._modeChanged.next()},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"disableClose",{get:function(){return this._disableClose},set:function(t){this._disableClose=Hd(t)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"autoFocus",{get:function(){return this._autoFocus},set:function(t){this._autoFocus=Hd(t)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"_openedStream",{get:function(){return this.openedChange.pipe(aa(function(t){return t}),Y(function(){}))},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"openedStart",{get:function(){return this._animationStarted.pipe(aa(function(t){return t.fromState!==t.toState&&0===t.toState.indexOf("open")}),Y(function(){}))},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"_closedStream",{get:function(){return this.openedChange.pipe(aa(function(t){return!t}),Y(function(){}))},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"closedStart",{get:function(){return this._animationStarted.pipe(aa(function(t){return t.fromState!==t.toState&&"void"===t.toState}),Y(function(){}))},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"_isFocusTrapEnabled",{get:function(){return this.opened&&"side"!==this.mode},enumerable:!0,configurable:!0}),t.prototype._trapFocus=function(){var t=this;this.autoFocus&&this._focusTrap.focusInitialElementWhenReady().then(function(e){e||"function"!=typeof t._elementRef.nativeElement.focus||t._elementRef.nativeElement.focus()})},t.prototype._restoreFocus=function(){if(this.autoFocus){var t=this._doc&&this._doc.activeElement;t&&this._elementRef.nativeElement.contains(t)&&(this._elementFocusedBeforeDrawerWasOpened instanceof HTMLElement?this._focusMonitor.focusVia(this._elementFocusedBeforeDrawerWasOpened,this._openedVia):this._elementRef.nativeElement.blur()),this._elementFocusedBeforeDrawerWasOpened=null,this._openedVia=null}},t.prototype.ngAfterContentInit=function(){this._focusTrap=this._focusTrapFactory.create(this._elementRef.nativeElement),this._focusTrap.enabled=this._isFocusTrapEnabled},t.prototype.ngAfterContentChecked=function(){this._platform.isBrowser&&(this._enableAnimations=!0)},t.prototype.ngOnDestroy=function(){this._focusTrap&&this._focusTrap.destroy(),this._animationStarted.complete(),this._animationEnd.complete(),this._modeChanged.complete(),this._destroyed.next(),this._destroyed.complete()},Object.defineProperty(t.prototype,"opened",{get:function(){return this._opened},set:function(t){this.toggle(Hd(t))},enumerable:!0,configurable:!0}),t.prototype.open=function(t){return this.toggle(!0,t)},t.prototype.close=function(){return this.toggle(!1)},t.prototype.toggle=function(t,e){var n=this;return void 0===t&&(t=!this.opened),void 0===e&&(e="program"),this._opened=t,t?(this._animationState=this._enableAnimations?"open":"open-instant",this._openedVia=e):(this._animationState="void",this._restoreFocus()),this._focusTrap&&(this._focusTrap.enabled=this._isFocusTrapEnabled),new Promise(function(t){n.openedChange.pipe(Ra(1)).subscribe(function(e){return t(e?"open":"close")})})},Object.defineProperty(t.prototype,"_width",{get:function(){return this._elementRef.nativeElement&&this._elementRef.nativeElement.offsetWidth||0},enumerable:!0,configurable:!0}),t}(),TA=function(){function t(t,e,n,i,r,o,s){void 0===r&&(r=!1);var a=this;this._dir=t,this._element=e,this._ngZone=n,this._changeDetectorRef=i,this._animationMode=o,this.backdropClick=new ke,this._destroyed=new F,this._doCheckSubject=new F,this._contentMargins={left:null,right:null},this._contentMarginChanges=new F,t&&t.change.pipe(wm(this._destroyed)).subscribe(function(){a._validateDrawers(),a._updateContentMargins()}),s&&s.change().pipe(wm(this._destroyed)).subscribe(function(){return a._updateContentMargins()}),this._autosize=r}return Object.defineProperty(t.prototype,"start",{get:function(){return this._start},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"end",{get:function(){return this._end},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"autosize",{get:function(){return this._autosize},set:function(t){this._autosize=Hd(t)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"hasBackdrop",{get:function(){return null==this._backdropOverride?!this._start||"side"!==this._start.mode||!this._end||"side"!==this._end.mode:this._backdropOverride},set:function(t){this._backdropOverride=null==t?null:Hd(t)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"scrollable",{get:function(){return this._userContent||this._content},enumerable:!0,configurable:!0}),t.prototype.ngAfterContentInit=function(){var t=this;this._drawers.changes.pipe(af(null)).subscribe(function(){t._validateDrawers(),t._drawers.forEach(function(e){t._watchDrawerToggle(e),t._watchDrawerPosition(e),t._watchDrawerMode(e)}),(!t._drawers.length||t._isDrawerOpen(t._start)||t._isDrawerOpen(t._end))&&t._updateContentMargins(),t._changeDetectorRef.markForCheck()}),this._doCheckSubject.pipe(ff(10),wm(this._destroyed)).subscribe(function(){return t._updateContentMargins()})},t.prototype.ngOnDestroy=function(){this._contentMarginChanges.complete(),this._doCheckSubject.complete(),this._destroyed.next(),this._destroyed.complete()},t.prototype.open=function(){this._drawers.forEach(function(t){return t.open()})},t.prototype.close=function(){this._drawers.forEach(function(t){return t.close()})},t.prototype.ngDoCheck=function(){var t=this;this._autosize&&this._isPushed()&&this._ngZone.runOutsideAngular(function(){return t._doCheckSubject.next()})},t.prototype._watchDrawerToggle=function(t){var e=this;t._animationStarted.pipe(aa(function(t){return t.fromState!==t.toState}),wm(this._drawers.changes)).subscribe(function(t){"open-instant"!==t.toState&&"NoopAnimations"!==e._animationMode&&e._element.nativeElement.classList.add("mat-drawer-transition"),e._updateContentMargins(),e._changeDetectorRef.markForCheck()}),"side"!==t.mode&&t.openedChange.pipe(wm(this._drawers.changes)).subscribe(function(){return e._setContainerClass(t.opened)})},t.prototype._watchDrawerPosition=function(t){var e=this;t&&t.onPositionChanged.pipe(wm(this._drawers.changes)).subscribe(function(){e._ngZone.onMicrotaskEmpty.asObservable().pipe(Ra(1)).subscribe(function(){e._validateDrawers()})})},t.prototype._watchDrawerMode=function(t){var e=this;t&&t._modeChanged.pipe(wm(rt(this._drawers.changes,this._destroyed))).subscribe(function(){e._updateContentMargins(),e._changeDetectorRef.markForCheck()})},t.prototype._setContainerClass=function(t){t?this._element.nativeElement.classList.add("mat-drawer-opened"):this._element.nativeElement.classList.remove("mat-drawer-opened")},t.prototype._validateDrawers=function(){var t=this;this._start=this._end=null,this._drawers.forEach(function(e){"end"==e.position?(null!=t._end&&CA("end"),t._end=e):(null!=t._start&&CA("start"),t._start=e)}),this._right=this._left=null,this._dir&&"rtl"===this._dir.value?(this._left=this._end,this._right=this._start):(this._left=this._start,this._right=this._end)},t.prototype._isPushed=function(){return this._isDrawerOpen(this._start)&&"over"!=this._start.mode||this._isDrawerOpen(this._end)&&"over"!=this._end.mode},t.prototype._onBackdropClicked=function(){this.backdropClick.emit(),this._closeModalDrawer()},t.prototype._closeModalDrawer=function(){var t=this;[this._start,this._end].filter(function(e){return e&&!e.disableClose&&t._canHaveBackdrop(e)}).forEach(function(t){return t.close()})},t.prototype._isShowingBackdrop=function(){return this._isDrawerOpen(this._start)&&this._canHaveBackdrop(this._start)||this._isDrawerOpen(this._end)&&this._canHaveBackdrop(this._end)},t.prototype._canHaveBackdrop=function(t){return"side"!==t.mode||!!this._backdropOverride},t.prototype._isDrawerOpen=function(t){return null!=t&&t.opened},t.prototype._updateContentMargins=function(){var t=this,e=0,n=0;if(this._left&&this._left.opened&&("side"==this._left.mode?e+=this._left._width:"push"==this._left.mode&&(e+=i=this._left._width,n-=i)),this._right&&this._right.opened)if("side"==this._right.mode)n+=this._right._width;else if("push"==this._right.mode){var i;n+=i=this._right._width,e-=i}n=n||null,(e=e||null)===this._contentMargins.left&&n===this._contentMargins.right||(this._contentMargins={left:e,right:n},this._ngZone.run(function(){return t._contentMarginChanges.next(t._contentMargins)}))},t}(),IA=function(t){function e(e,n,i,r,o){return t.call(this,e,n,i,r,o)||this}return r(e,t),e}(EA),OA=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e._fixedInViewport=!1,e._fixedTopGap=0,e._fixedBottomGap=0,e}return r(e,t),Object.defineProperty(e.prototype,"fixedInViewport",{get:function(){return this._fixedInViewport},set:function(t){this._fixedInViewport=Hd(t)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"fixedTopGap",{get:function(){return this._fixedTopGap},set:function(t){this._fixedTopGap=qd(t)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"fixedBottomGap",{get:function(){return this._fixedBottomGap},set:function(t){this._fixedBottomGap=qd(t)},enumerable:!0,configurable:!0}),e}(SA),RA=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return r(e,t),e}(TA),kA=function(){return function(){}}(),PA=Qi({encapsulation:2,styles:[],data:{}});function AA(t){return Go(2,[Fo(null,0)],null,null)}var LA=Qi({encapsulation:2,styles:[],data:{animation:[{type:7,name:"transform",definitions:[{type:0,name:"open, open-instant",styles:{type:6,styles:{transform:"none",visibility:"visible"},offset:null},options:void 0},{type:0,name:"void",styles:{type:6,styles:{"box-shadow":"none",visibility:"hidden"},offset:null},options:void 0},{type:1,expr:"void => open-instant",animation:{type:4,styles:null,timings:"0ms"},options:null},{type:1,expr:"void <=> open, open-instant => void",animation:{type:4,styles:null,timings:"400ms cubic-bezier(0.25, 0.8, 0.25, 1)"},options:null}],options:{}}]}});function DA(t){return Go(2,[(t()(),Sr(0,0,null,null,1,"div",[["class","mat-drawer-inner-container"]],null,null,null,null,null)),Fo(null,0)],null,null)}var FA=Qi({encapsulation:2,styles:[".mat-drawer-container{position:relative;z-index:1;box-sizing:border-box;-webkit-overflow-scrolling:touch;display:block;overflow:hidden}.mat-drawer-container[fullscreen]{top:0;left:0;right:0;bottom:0;position:absolute}.mat-drawer-container[fullscreen].mat-drawer-opened{overflow:hidden}.mat-drawer-container.mat-drawer-container-explicit-backdrop .mat-drawer-side{z-index:3}.mat-drawer-container.ng-animate-disabled .mat-drawer-backdrop,.mat-drawer-container.ng-animate-disabled .mat-drawer-content,.ng-animate-disabled .mat-drawer-container .mat-drawer-backdrop,.ng-animate-disabled .mat-drawer-container .mat-drawer-content{transition:none}.mat-drawer-backdrop{top:0;left:0;right:0;bottom:0;position:absolute;display:block;z-index:3;visibility:hidden}.mat-drawer-backdrop.mat-drawer-shown{visibility:visible}.mat-drawer-transition .mat-drawer-backdrop{transition-duration:.4s;transition-timing-function:cubic-bezier(.25,.8,.25,1);transition-property:background-color,visibility}@media (-ms-high-contrast:active){.mat-drawer-backdrop{opacity:.5}}.mat-drawer-content{position:relative;z-index:1;display:block;height:100%;overflow:auto}.mat-drawer-transition .mat-drawer-content{transition-duration:.4s;transition-timing-function:cubic-bezier(.25,.8,.25,1);transition-property:transform,margin-left,margin-right}.mat-drawer{position:relative;z-index:4;display:block;position:absolute;top:0;bottom:0;z-index:3;outline:0;box-sizing:border-box;overflow-y:auto;transform:translate3d(-100%,0,0)}@media (-ms-high-contrast:active){.mat-drawer,[dir=rtl] .mat-drawer.mat-drawer-end{border-right:solid 1px currentColor}}@media (-ms-high-contrast:active){.mat-drawer.mat-drawer-end,[dir=rtl] .mat-drawer{border-left:solid 1px currentColor;border-right:none}}.mat-drawer.mat-drawer-side{z-index:2}.mat-drawer.mat-drawer-end{right:0;transform:translate3d(100%,0,0)}[dir=rtl] .mat-drawer{transform:translate3d(100%,0,0)}[dir=rtl] .mat-drawer.mat-drawer-end{left:0;right:auto;transform:translate3d(-100%,0,0)}.mat-drawer-inner-container{width:100%;height:100%;overflow:auto;-webkit-overflow-scrolling:touch}.mat-sidenav-fixed{position:fixed}"],data:{}});function MA(t){return Go(0,[(t()(),Sr(0,0,null,null,0,"div",[["class","mat-drawer-backdrop"]],[[2,"mat-drawer-shown",null]],[[null,"click"]],function(t,e,n){var i=!0;return"click"===e&&(i=!1!==t.component._onBackdropClicked()&&i),i},null,null))],null,function(t,e){t(e,0,0,e.component._isShowingBackdrop())})}function NA(t){return Go(0,[(t()(),Sr(0,0,null,null,3,"mat-sidenav-content",[["cdkScrollable",""],["class","mat-drawer-content mat-sidenav-content"]],[[4,"margin-left","px"],[4,"margin-right","px"]],null,null,AA,PA)),fo(1,212992,null,0,sv,[Ee,ov,Fn,[2,Mm]],null,null),fo(2,1294336,null,0,IA,[ai,RA,Ee,ov,Fn],null,null),Fo(0,2)],function(t,e){t(e,1,0),t(e,2,0)},function(t,e){t(e,0,0,to(e,2)._container._contentMargins.left,to(e,2)._container._contentMargins.right)})}function jA(t){return Go(2,[ko(402653184,1,{_userContent:0}),(t()(),Er(16777216,null,null,1,null,MA)),fo(2,16384,null,0,pl,[si,Pe],{ngIf:[0,"ngIf"]},null),Fo(null,0),Fo(null,1),(t()(),Er(16777216,null,null,1,null,NA)),fo(6,16384,null,0,pl,[si,Pe],{ngIf:[0,"ngIf"]},null)],function(t,e){var n=e.component;t(e,2,0,n.hasBackdrop),t(e,6,0,!n._content)},null)}var VA=function(t){function e(e,n,i){var r=t.call(this,e)||this;return r._platform=n,r._document=i,r}return r(e,t),e.prototype.ngAfterViewInit=function(){var t=this;De()&&this._platform.isBrowser&&(this._checkToolbarMixedModes(),this._toolbarRows.changes.subscribe(function(){return t._checkToolbarMixedModes()}))},e.prototype._checkToolbarMixedModes=function(){var t=this;this._toolbarRows.length&&Array.from(this._elementRef.nativeElement.childNodes).filter(function(t){return!(t.classList&&t.classList.contains("mat-toolbar-row"))}).filter(function(e){return e.nodeType!==(t._document?t._document.COMMENT_NODE:8)}).some(function(t){return!(!t.textContent||!t.textContent.trim())})&&function(){throw Error("MatToolbar: Attempting to combine different toolbar modes. Either specify multiple `` elements explicitly or just place content inside of a `` for a single row.")}()},e}(Bf(function(){return function(t){this._elementRef=t}}())),zA=function(){return function(){}}(),BA=Qi({encapsulation:2,styles:["@media (-ms-high-contrast:active){.mat-toolbar{outline:solid 1px}}.mat-toolbar-row,.mat-toolbar-single-row{display:flex;box-sizing:border-box;padding:0 16px;width:100%;flex-direction:row;align-items:center;white-space:nowrap}.mat-toolbar-multiple-rows{display:flex;box-sizing:border-box;flex-direction:column;width:100%}.mat-toolbar-multiple-rows{min-height:64px}.mat-toolbar-row,.mat-toolbar-single-row{height:64px}@media (max-width:599px){.mat-toolbar-multiple-rows{min-height:56px}.mat-toolbar-row,.mat-toolbar-single-row{height:56px}}"],data:{}});function GA(t){return Go(2,[Fo(null,0),Fo(null,1)],null,null)}function UA(t,e){void 0===e&&(e=df);var n,i=(n=t)instanceof Date&&!isNaN(+n)?+t-e.now():Math.abs(t);return function(t){return t.lift(new HA(i,e))}}var HA=function(){function t(t,e){this.delay=t,this.scheduler=e}return t.prototype.call=function(t,e){return e.subscribe(new qA(t,this.delay,this.scheduler))},t}(),qA=function(t){function e(e,n,i){var r=t.call(this,e)||this;return r.delay=n,r.scheduler=i,r.queue=[],r.active=!1,r.errored=!1,r}return r(e,t),e.dispatch=function(t){for(var e=t.source,n=e.queue,i=t.scheduler,r=t.destination;n.length>0&&n[0].time-i.now()<=0;)n.shift().notification.observe(r);if(n.length>0){var o=Math.max(0,n[0].time-i.now());this.schedule(t,o)}else this.unsubscribe(),e.active=!1},e.prototype._schedule=function(t){this.active=!0,this.destination.add(t.schedule(e.dispatch,this.delay,{source:this,destination:this.destination,scheduler:t}))},e.prototype.scheduleNotification=function(t){if(!0!==this.errored){var e=this.scheduler,n=new WA(e.now()+this.delay,t);this.queue.push(n),!1===this.active&&this._schedule(e)}},e.prototype._next=function(t){this.scheduleNotification(iv.createNext(t))},e.prototype._error=function(t){this.errored=!0,this.queue=[],this.destination.error(t),this.unsubscribe()},e.prototype._complete=function(){this.scheduleNotification(iv.createComplete()),this.unsubscribe()},e}(x),WA=function(){return function(t,e){this.time=t,this.notification=e}}(),YA=new yt("MAT_MENU_PANEL"),KA=function(t){function e(e,n,i,r){var o=t.call(this)||this;return o._elementRef=e,o._focusMonitor=i,o._parentMenu=r,o.role="menuitem",o._hovered=new F,o._highlighted=!1,o._triggersSubmenu=!1,i&&i.monitor(o._elementRef,!1),r&&r.addItem&&r.addItem(o),o._document=n,o}return r(e,t),e.prototype.focus=function(t){void 0===t&&(t="program"),this._focusMonitor?this._focusMonitor.focusVia(this._getHostElement(),t):this._getHostElement().focus()},e.prototype.ngOnDestroy=function(){this._focusMonitor&&this._focusMonitor.stopMonitoring(this._elementRef),this._parentMenu&&this._parentMenu.removeItem&&this._parentMenu.removeItem(this),this._hovered.complete()},e.prototype._getTabIndex=function(){return this.disabled?"-1":"0"},e.prototype._getHostElement=function(){return this._elementRef.nativeElement},e.prototype._checkDisabled=function(t){this.disabled&&(t.preventDefault(),t.stopPropagation())},e.prototype._handleMouseEnter=function(){this._hovered.next(this)},e.prototype.getLabel=function(){var t=this._elementRef.nativeElement,e=this._document?this._document.TEXT_NODE:3,n="";if(t.childNodes)for(var i=t.childNodes.length,r=0;r')}(),this._xPosition=t,this.setPositionClasses()},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"yPosition",{get:function(){return this._yPosition},set:function(t){"above"!==t&&"below"!==t&&function(){throw Error('yPosition value must be either \'above\' or below\'.\n Example: ')}(),this._yPosition=t,this.setPositionClasses()},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"overlapTrigger",{get:function(){return this._overlapTrigger},set:function(t){this._overlapTrigger=Hd(t)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"hasBackdrop",{get:function(){return this._hasBackdrop},set:function(t){this._hasBackdrop=Hd(t)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"panelClass",{set:function(t){var e=this,n=this._previousPanelClass;n&&n.length&&n.split(" ").forEach(function(t){e._classList[t]=!1}),this._previousPanelClass=t,t&&t.length&&(t.split(" ").forEach(function(t){e._classList[t]=!0}),this._elementRef.nativeElement.className="")},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"classList",{get:function(){return this.panelClass},set:function(t){this.panelClass=t},enumerable:!0,configurable:!0}),t.prototype.ngOnInit=function(){this.setPositionClasses()},t.prototype.ngAfterContentInit=function(){var t=this;this._keyManager=new Sf(this._items).withWrap().withTypeAhead(),this._tabSubscription=this._keyManager.tabOut.subscribe(function(){return t.closed.emit("tab")})},t.prototype.ngOnDestroy=function(){this._tabSubscription.unsubscribe(),this.closed.complete()},t.prototype._hovered=function(){return this._itemChanges.pipe(af(this._items),La(function(t){return rt.apply(void 0,t.map(function(t){return t._hovered}))}))},t.prototype._handleKeydown=function(t){var e=t.keyCode;switch(e){case lf:this.closed.emit("keydown");break;case 37:this.parentMenu&&"ltr"===this.direction&&this.closed.emit("keydown");break;case 39:this.parentMenu&&"rtl"===this.direction&&this.closed.emit("keydown");break;default:38!==e&&40!==e||this._keyManager.setFocusOrigin("keyboard"),this._keyManager.onKeydown(t)}},t.prototype.focusFirstItem=function(t){var e=this;void 0===t&&(t="program"),this.lazyContent?this._ngZone.onStable.asObservable().pipe(Ra(1)).subscribe(function(){return e._keyManager.setFocusOrigin(t).setFirstItemActive()}):this._keyManager.setFocusOrigin(t).setFirstItemActive()},t.prototype.resetActiveItem=function(){this._keyManager.setActiveItem(-1)},t.prototype.setElevation=function(t){var e="mat-elevation-z"+(4+t),n=Object.keys(this._classList).find(function(t){return t.startsWith("mat-elevation-z")});n&&n!==this._previousElevation||(this._previousElevation&&(this._classList[this._previousElevation]=!1),this._classList[e]=!0,this._previousElevation=e)},t.prototype.addItem=function(t){-1===this._items.indexOf(t)&&(this._items.push(t),this._itemChanges.next(this._items))},t.prototype.removeItem=function(t){var e=this._items.indexOf(t);this._items.indexOf(t)>-1&&(this._items.splice(e,1),this._itemChanges.next(this._items))},t.prototype.setPositionClasses=function(t,e){void 0===t&&(t=this.xPosition),void 0===e&&(e=this.yPosition);var n=this._classList;n["mat-menu-before"]="before"===t,n["mat-menu-after"]="after"===t,n["mat-menu-above"]="above"===e,n["mat-menu-below"]="below"===e},t.prototype._startAnimation=function(){this._panelAnimationState="enter"},t.prototype._resetAnimation=function(){this._panelAnimationState="void"},t.prototype._onAnimationDone=function(t){this._animationDone.next(t),this._isAnimating=!1},t.prototype._onAnimationStart=function(t){this._isAnimating=!0,"enter"===t.toState&&0===this._keyManager.activeItemIndex&&(t.element.scrollTop=0)},t}(),QA=new yt("mat-menu-scroll-strategy");function JA(t){return function(){return t.scrollStrategies.reposition()}}var $A=ef({passive:!0}),tL=function(){function t(t,e,n,i,r,o,s,a){var l=this;this._overlay=t,this._element=e,this._viewContainerRef=n,this._parentMenu=r,this._menuItemInstance=o,this._dir=s,this._focusMonitor=a,this._overlayRef=null,this._menuOpen=!1,this._closingActionsSubscription=g.EMPTY,this._hoverSubscription=g.EMPTY,this._menuCloseSubscription=g.EMPTY,this._handleTouchStart=function(){return l._openedBy="touch"},this._openedBy=null,this.menuOpened=new ke,this.onMenuOpen=this.menuOpened,this.menuClosed=new ke,this.onMenuClose=this.menuClosed,e.nativeElement.addEventListener("touchstart",this._handleTouchStart,$A),o&&(o._triggersSubmenu=this.triggersSubmenu()),this._scrollStrategy=i}return Object.defineProperty(t.prototype,"_deprecatedMatMenuTriggerFor",{get:function(){return this.menu},set:function(t){this.menu=t},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"menu",{get:function(){return this._menu},set:function(t){var e=this;t!==this._menu&&(this._menu=t,this._menuCloseSubscription.unsubscribe(),t&&(this._menuCloseSubscription=t.close.asObservable().subscribe(function(t){e._destroyMenu(),"click"!==t&&"tab"!==t||!e._parentMenu||e._parentMenu.closed.emit(t)})))},enumerable:!0,configurable:!0}),t.prototype.ngAfterContentInit=function(){this._checkMenu(),this._handleHover()},t.prototype.ngOnDestroy=function(){this._overlayRef&&(this._overlayRef.dispose(),this._overlayRef=null),this._element.nativeElement.removeEventListener("touchstart",this._handleTouchStart,$A),this._cleanUpSubscriptions(),this._closingActionsSubscription.unsubscribe()},Object.defineProperty(t.prototype,"menuOpen",{get:function(){return this._menuOpen},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"dir",{get:function(){return this._dir&&"rtl"===this._dir.value?"rtl":"ltr"},enumerable:!0,configurable:!0}),t.prototype.triggersSubmenu=function(){return!(!this._menuItemInstance||!this._parentMenu)},t.prototype.toggleMenu=function(){return this._menuOpen?this.closeMenu():this.openMenu()},t.prototype.openMenu=function(){var t=this;if(!this._menuOpen){this._checkMenu();var e=this._createOverlay(),n=e.getConfig();this._setPosition(n.positionStrategy),n.hasBackdrop=null==this.menu.hasBackdrop?!this.triggersSubmenu():this.menu.hasBackdrop,e.attach(this._getPortal()),this.menu.lazyContent&&this.menu.lazyContent.attach(this.menuData),this._closingActionsSubscription=this._menuClosingActions().subscribe(function(){return t.closeMenu()}),this._initMenu(),this.menu instanceof ZA&&this.menu._startAnimation()}},t.prototype.closeMenu=function(){this.menu.close.emit()},t.prototype.focus=function(t){void 0===t&&(t="program"),this._focusMonitor?this._focusMonitor.focusVia(this._element,t):this._element.nativeElement.focus()},t.prototype._destroyMenu=function(){var t=this;if(this._overlayRef&&this.menuOpen){var e=this.menu;this._closingActionsSubscription.unsubscribe(),this._overlayRef.detach(),e instanceof ZA?(e._resetAnimation(),e.lazyContent?e._animationDone.pipe(aa(function(t){return"void"===t.toState}),Ra(1),wm(e.lazyContent._attached)).subscribe(function(){return e.lazyContent.detach()},void 0,function(){t._resetMenu()}):this._resetMenu()):(this._resetMenu(),e.lazyContent&&e.lazyContent.detach())}},t.prototype._initMenu=function(){this.menu.parentMenu=this.triggersSubmenu()?this._parentMenu:void 0,this.menu.direction=this.dir,this._setMenuElevation(),this._setIsMenuOpen(!0),this.menu.focusFirstItem(this._openedBy||"program")},t.prototype._setMenuElevation=function(){if(this.menu.setElevation){for(var t=0,e=this.menu.parentMenu;e;)t++,e=e.parentMenu;this.menu.setElevation(t)}},t.prototype._resetMenu=function(){this._setIsMenuOpen(!1),this._openedBy?this.triggersSubmenu()||this.focus(this._openedBy):this.focus(),this._openedBy=null},t.prototype._setIsMenuOpen=function(t){this._menuOpen=t,this._menuOpen?this.menuOpened.emit():this.menuClosed.emit(),this.triggersSubmenu()&&(this._menuItemInstance._highlighted=t)},t.prototype._checkMenu=function(){this.menu||function(){throw Error('matMenuTriggerFor: must pass in an mat-menu instance.\n\n Example:\n \n ')}()},t.prototype._createOverlay=function(){if(!this._overlayRef){var t=this._getOverlayConfig();this._subscribeToPositions(t.positionStrategy),this._overlayRef=this._overlay.create(t),this._overlayRef.keydownEvents().subscribe()}return this._overlayRef},t.prototype._getOverlayConfig=function(){return new yv({positionStrategy:this._overlay.position().flexibleConnectedTo(this._element).withLockedPosition().withTransformOriginOn(".mat-menu-panel"),backdropClass:this.menu.backdropClass||"cdk-overlay-transparent-backdrop",scrollStrategy:this._scrollStrategy(),direction:this._dir})},t.prototype._subscribeToPositions=function(t){var e=this;this.menu.setPositionClasses&&t.positionChanges.subscribe(function(t){e.menu.setPositionClasses("start"===t.connectionPair.overlayX?"after":"before","top"===t.connectionPair.overlayY?"below":"above")})},t.prototype._setPosition=function(t){var e="before"===this.menu.xPosition?["end","start"]:["start","end"],n=e[0],i=e[1],r="above"===this.menu.yPosition?["bottom","top"]:["top","bottom"],o=r[0],s=r[1],a=[o,s],l=a[0],u=a[1],c=[n,i],h=c[0],p=c[1],d=0;this.triggersSubmenu()?(p=n="before"===this.menu.xPosition?"start":"end",i=h="end"===n?"start":"end",d="bottom"===o?8:-8):this.menu.overlapTrigger||(l="top"===o?"bottom":"top",u="top"===s?"bottom":"top"),t.withPositions([{originX:n,originY:l,overlayX:h,overlayY:o,offsetY:d},{originX:i,originY:l,overlayX:p,overlayY:o,offsetY:d},{originX:n,originY:u,overlayX:h,overlayY:s,offsetY:-d},{originX:i,originY:u,overlayX:p,overlayY:s,offsetY:-d}])},t.prototype._cleanUpSubscriptions=function(){this._closingActionsSubscription.unsubscribe(),this._hoverSubscription.unsubscribe()},t.prototype._menuClosingActions=function(){var t=this,e=this._overlayRef.backdropClick(),n=this._overlayRef.detachments();return rt(e,this._parentMenu?this._parentMenu.closed:ta(),this._parentMenu?this._parentMenu._hovered().pipe(aa(function(e){return e!==t._menuItemInstance}),aa(function(){return t._menuOpen})):ta(),n)},t.prototype._handleMousedown=function(t){Mf(t)||(this._openedBy=0===t.button?"mouse":null,this.triggersSubmenu()&&t.preventDefault())},t.prototype._handleKeydown=function(t){var e=t.keyCode;this.triggersSubmenu()&&(39===e&&"ltr"===this.dir||37===e&&"rtl"===this.dir)&&this.openMenu()},t.prototype._handleClick=function(t){this.triggersSubmenu()?(t.stopPropagation(),this.openMenu()):this.toggleMenu()},t.prototype._handleHover=function(){var t=this;this.triggersSubmenu()&&(this._hoverSubscription=this._parentMenu._hovered().pipe(aa(function(e){return e===t._menuItemInstance&&!e.disabled}),UA(0,Z_)).subscribe(function(){t._openedBy="mouse",t.menu instanceof ZA&&t.menu._isAnimating?t.menu._animationDone.pipe(Ra(1),UA(0,Z_),wm(t._parentMenu._hovered())).subscribe(function(){return t.openMenu()}):t.openMenu()}))},t.prototype._getPortal=function(){return this._portal&&this._portal.templateRef===this.menu.templateRef||(this._portal=new z_(this.menu.templateRef,this._viewContainerRef)),this._portal},t}(),eL=function(){return function(){}}(),nL=Qi({encapsulation:2,styles:[".mat-menu-panel{min-width:112px;max-width:280px;overflow:auto;-webkit-overflow-scrolling:touch;max-height:calc(100vh - 48px);border-radius:4px;outline:0}.mat-menu-panel.ng-animating{pointer-events:none}@media (-ms-high-contrast:active){.mat-menu-panel{outline:solid 1px}}.mat-menu-content:not(:empty){padding-top:8px;padding-bottom:8px}.mat-menu-item{-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;cursor:pointer;outline:0;border:none;-webkit-tap-highlight-color:transparent;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;display:block;line-height:48px;height:48px;padding:0 16px;text-align:left;text-decoration:none;max-width:100%;position:relative}.mat-menu-item::-moz-focus-inner{border:0}.mat-menu-item[disabled]{cursor:default}[dir=rtl] .mat-menu-item{text-align:right}.mat-menu-item .mat-icon{margin-right:16px;vertical-align:middle}.mat-menu-item .mat-icon svg{vertical-align:top}[dir=rtl] .mat-menu-item .mat-icon{margin-left:16px;margin-right:0}@media (-ms-high-contrast:active){.mat-menu-item-highlighted,.mat-menu-item.cdk-keyboard-focused,.mat-menu-item.cdk-program-focused{outline:dotted 1px}}.mat-menu-item-submenu-trigger{padding-right:32px}.mat-menu-item-submenu-trigger::after{width:0;height:0;border-style:solid;border-width:5px 0 5px 5px;border-color:transparent transparent transparent currentColor;content:'';display:inline-block;position:absolute;top:50%;right:16px;transform:translateY(-50%)}[dir=rtl] .mat-menu-item-submenu-trigger{padding-right:16px;padding-left:32px}[dir=rtl] .mat-menu-item-submenu-trigger::after{right:auto;left:16px;transform:rotateY(180deg) translateY(-50%)}button.mat-menu-item{width:100%}.mat-menu-item .mat-menu-ripple{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none}"],data:{animation:[{type:7,name:"transformMenu",definitions:[{type:0,name:"void",styles:{type:6,styles:{opacity:0,transform:"scale(0.8)"},offset:null},options:void 0},{type:1,expr:"void => enter",animation:{type:3,steps:[{type:11,selector:".mat-menu-content",animation:{type:4,styles:{type:6,styles:{opacity:1},offset:null},timings:"100ms linear"},options:null},{type:4,styles:{type:6,styles:{transform:"scale(1)"},offset:null},timings:"120ms cubic-bezier(0, 0, 0.2, 1)"}],options:null},options:null},{type:1,expr:"* => void",animation:{type:4,styles:{type:6,styles:{opacity:0},offset:null},timings:"100ms 25ms linear"},options:null}],options:{}},{type:7,name:"fadeInItems",definitions:[{type:0,name:"showing",styles:{type:6,styles:{opacity:1},offset:null},options:void 0},{type:1,expr:"void => *",animation:[{type:6,styles:{opacity:0},offset:null},{type:4,styles:null,timings:"400ms 100ms cubic-bezier(0.55, 0, 0.55, 0.2)"}],options:null}],options:{}}]}});function iL(t){return Go(0,[(t()(),Sr(0,0,null,null,3,"div",[["class","mat-menu-panel"],["role","menu"],["tabindex","-1"]],[[24,"@transformMenu",0]],[[null,"keydown"],[null,"click"],[null,"@transformMenu.start"],[null,"@transformMenu.done"]],function(t,e,n){var i=!0,r=t.component;return"keydown"===e&&(i=!1!==r._handleKeydown(n)&&i),"click"===e&&(i=!1!==r.closed.emit("click")&&i),"@transformMenu.start"===e&&(i=!1!==r._onAnimationStart(n)&&i),"@transformMenu.done"===e&&(i=!1!==r._onAnimationDone(n)&&i),i},null,null)),fo(1,278528,null,0,ll,[Ei,Si,Ee,Oe],{klass:[0,"klass"],ngClass:[1,"ngClass"]},null),(t()(),Sr(2,0,null,null,1,"div",[["class","mat-menu-content"]],null,null,null,null,null)),Fo(null,0)],function(t,e){t(e,1,0,"mat-menu-panel",e.component._classList)},function(t,e){t(e,0,0,e.component._panelAnimationState)})}function rL(t){return Go(2,[ko(402653184,1,{templateRef:0}),(t()(),Er(0,[[1,2]],null,0,null,iL))],null,null)}var oL=Qi({encapsulation:2,styles:[],data:{}});function sL(t){return Go(2,[Fo(null,0),(t()(),Sr(1,0,null,null,1,"div",[["class","mat-menu-ripple mat-ripple"],["matRipple",""]],[[2,"mat-ripple-unbounded",null]],null,null,null,null)),fo(2,212992,null,0,am,[Ee,Fn,Qd,[2,sm],[2,r_]],{disabled:[0,"disabled"],trigger:[1,"trigger"]},null)],function(t,e){var n=e.component;t(e,2,0,n.disableRipple||n.disabled,n._getHostElement())},function(t,e){t(e,1,0,to(e,2).unbounded)})}var aL=function(){function t(t,e,n,i){this.userService=t,this.sidenavService=e,this.router=n,this.authService=i,this.isLoggedIn=!1}return t.prototype.ngOnInit=function(){},t.prototype.showSideContent=function(t){this.sidenavService.openSidenav(),this.router.navigate([{outlets:{side:[t]}}])},t.prototype.checkLogin=function(){return this.authService.isLoggedIn},t.prototype.logout=function(){this.authService.logout()},t}(),lL=Qi({encapsulation:0,styles:[[".toolbar[_ngcontent-%COMP%]{color:primary}.sidenav[_ngcontent-%COMP%]{width:100%;height:100%}mat-icon[_ngcontent-%COMP%]{font-size:25px;color:#f8f8ff}"]],data:{}});function uL(t){return Go(0,[(t()(),Sr(0,16777216,null,null,3,"mat-icon",[["class","mat-icon notranslate"],["matTooltip","Menu"],["role","img"]],[[2,"mat-icon-inline",null],[2,"mat-icon-no-color",null]],[[null,"longpress"],[null,"keydown"],[null,"touchend"]],function(t,e,n){var i=!0;return"longpress"===e&&(i=!1!==to(t,2).show()&&i),"keydown"===e&&(i=!1!==to(t,2)._handleKeydown(n)&&i),"touchend"===e&&(i=!1!==to(t,2)._handleTouchend()&&i),i},gk,mk)),fo(1,9158656,null,0,dk,[Ee,ok,[8,null],[2,uk]],null,null),fo(2,147456,null,0,Ck,[Pv,Ee,ov,si,Fn,Qd,Cf,Ff,vk,[2,Mm],[2,wk],[2,Cu]],{message:[0,"message"]},null),(t()(),Vo(-1,0,["menu"])),(t()(),Er(0,null,null,0))],function(t,e){t(e,1,0),t(e,2,0,"Menu")},function(t,e){t(e,0,0,to(e,1).inline,"primary"!==to(e,1).color&&"accent"!==to(e,1).color&&"warn"!==to(e,1).color)})}function cL(t){return Go(0,[(t()(),Sr(0,0,null,null,5,"span",[],null,null,null,null,null)),(t()(),Sr(1,16777216,null,null,4,"a",[["matTooltip","Logout"]],null,[[null,"click"],[null,"longpress"],[null,"keydown"],[null,"touchend"]],function(t,e,n){var i=!0,r=t.component;return"longpress"===e&&(i=!1!==to(t,2).show()&&i),"keydown"===e&&(i=!1!==to(t,2)._handleKeydown(n)&&i),"touchend"===e&&(i=!1!==to(t,2)._handleTouchend()&&i),"click"===e&&(i=!1!==r.logout()&&i),i},null,null)),fo(2,147456,null,0,Ck,[Pv,Ee,ov,si,Fn,Qd,Cf,Ff,vk,[2,Mm],[2,wk],[2,Cu]],{message:[0,"message"]},null),(t()(),Sr(3,0,null,null,2,"mat-icon",[["class","mat-icon notranslate"],["role","img"]],[[2,"mat-icon-inline",null],[2,"mat-icon-no-color",null]],null,null,gk,mk)),fo(4,9158656,null,0,dk,[Ee,ok,[8,null],[2,uk]],null,null),(t()(),Vo(-1,0,["exit_to_app"]))],function(t,e){t(e,2,0,"Logout"),t(e,4,0)},function(t,e){t(e,3,0,to(e,4).inline,"primary"!==to(e,4).color&&"accent"!==to(e,4).color&&"warn"!==to(e,4).color)})}function hL(t){return Go(0,[(t()(),Sr(0,0,null,null,27,"mat-toolbar",[["class","mat-toolbar"],["color","primary"]],[[2,"mat-toolbar-multiple-rows",null],[2,"mat-toolbar-single-row",null]],null,null,GA,BA)),fo(1,4243456,null,1,VA,[Ee,Qd,Sl],{color:[0,"color"]},null),ko(603979776,1,{_toolbarRows:1}),(t()(),Sr(3,0,null,0,21,"span",[],null,null,null,null,null)),(t()(),Sr(4,16777216,null,null,3,"a",[["aria-haspopup","true"]],[[1,"aria-expanded",0]],[[null,"mousedown"],[null,"keydown"],[null,"click"]],function(t,e,n){var i=!0;return"mousedown"===e&&(i=!1!==to(t,5)._handleMousedown(n)&&i),"keydown"===e&&(i=!1!==to(t,5)._handleKeydown(n)&&i),"click"===e&&(i=!1!==to(t,5)._handleClick(n)&&i),i},null,null)),fo(5,1196032,null,0,tL,[Pv,Ee,si,QA,[2,ZA],[8,null],[2,Mm],Ff],{menu:[0,"menu"]},null),(t()(),Er(16777216,null,null,1,null,uL)),fo(7,16384,null,0,pl,[si,Pe],{ngIf:[0,"ngIf"]},null),(t()(),Sr(8,0,null,null,16,"mat-menu",[],null,null,null,rL,nL)),fo(9,1294336,[["menu",4]],2,ZA,[Ee,Fn,XA],null,null),ko(603979776,2,{items:1}),ko(335544320,3,{lazyContent:0}),mo(2048,null,YA,null,[ZA]),(t()(),Sr(13,0,null,0,3,"button",[["class","mat-menu-item"],["mat-menu-item",""]],[[1,"role",0],[2,"mat-menu-item-highlighted",null],[2,"mat-menu-item-submenu-trigger",null],[1,"tabindex",0],[1,"aria-disabled",0],[1,"disabled",0]],[[null,"click"],[null,"mouseenter"]],function(t,e,n){var i=!0,r=t.component;return"click"===e&&(i=!1!==to(t,14)._checkDisabled(n)&&i),"mouseenter"===e&&(i=!1!==to(t,14)._handleMouseEnter()&&i),"click"===e&&(i=!1!==r.showSideContent("user")&&i),i},sL,oL)),fo(14,180224,[[2,4]],0,KA,[Ee,Sl,Ff,[2,YA]],null,null),(t()(),Sr(15,0,null,0,1,"span",[],null,null,null,null,null)),(t()(),Vo(-1,null,["Utente"])),(t()(),Sr(17,0,null,0,3,"button",[["class","mat-menu-item"],["mat-menu-item",""]],[[1,"role",0],[2,"mat-menu-item-highlighted",null],[2,"mat-menu-item-submenu-trigger",null],[1,"tabindex",0],[1,"aria-disabled",0],[1,"disabled",0]],[[null,"click"],[null,"mouseenter"]],function(t,e,n){var i=!0,r=t.component;return"click"===e&&(i=!1!==to(t,18)._checkDisabled(n)&&i),"mouseenter"===e&&(i=!1!==to(t,18)._handleMouseEnter()&&i),"click"===e&&(i=!1!==r.showSideContent("legenda")&&i),i},sL,oL)),fo(18,180224,[[2,4]],0,KA,[Ee,Sl,Ff,[2,YA]],null,null),(t()(),Sr(19,0,null,0,1,"span",[],null,null,null,null,null)),(t()(),Vo(-1,null,["Legenda"])),(t()(),Sr(21,0,null,0,3,"button",[["class","mat-menu-item"],["mat-menu-item",""]],[[1,"role",0],[2,"mat-menu-item-highlighted",null],[2,"mat-menu-item-submenu-trigger",null],[1,"tabindex",0],[1,"aria-disabled",0],[1,"disabled",0]],[[null,"click"],[null,"mouseenter"]],function(t,e,n){var i=!0,r=t.component;return"click"===e&&(i=!1!==to(t,22)._checkDisabled(n)&&i),"mouseenter"===e&&(i=!1!==to(t,22)._handleMouseEnter()&&i),"click"===e&&(i=!1!==r.showSideContent("istruzioni")&&i),i},sL,oL)),fo(22,180224,[[2,4]],0,KA,[Ee,Sl,Ff,[2,YA]],null,null),(t()(),Sr(23,0,null,0,1,"span",[],null,null,null,null,null)),(t()(),Vo(-1,null,["Istruzioni"])),(t()(),Sr(25,0,null,0,0,"span",[["class","fill-space"]],null,null,null,null,null)),(t()(),Er(16777216,null,0,1,null,cL)),fo(27,16384,null,0,pl,[si,Pe],{ngIf:[0,"ngIf"]},null)],function(t,e){var n=e.component;t(e,1,0,"primary"),t(e,5,0,to(e,9)),t(e,7,0,!0===n.checkLogin()),t(e,9,0),t(e,27,0,!0===n.checkLogin())},function(t,e){t(e,0,0,to(e,1)._toolbarRows.length>0,0===to(e,1)._toolbarRows.length),t(e,4,0,to(e,5).menuOpen||null),t(e,13,0,to(e,14).role,to(e,14)._highlighted,to(e,14)._triggersSubmenu,to(e,14)._getTabIndex(),to(e,14).disabled.toString(),to(e,14).disabled||null),t(e,17,0,to(e,18).role,to(e,18)._highlighted,to(e,18)._triggersSubmenu,to(e,18)._getTabIndex(),to(e,18).disabled.toString(),to(e,18).disabled||null),t(e,21,0,to(e,22).role,to(e,22)._highlighted,to(e,22)._triggersSubmenu,to(e,22)._getTabIndex(),to(e,22).disabled.toString(),to(e,22).disabled||null)})}var pL=function(){function t(t,e){this.router=t,this.sidenavService=e,this.utenteComponentRef="utente",this.legendaComponentRef="legenda",this.altroComponentRef="altro",this.router.routeReuseStrategy.shouldReuseRoute=function(){return!1}}return t.prototype.ngOnInit=function(){this.sidenavService.setMatSidenav(this.sidenav)},t}(),dL=Qi({encapsulation:0,styles:[[".container[_ngcontent-%COMP%], .main-content[_ngcontent-%COMP%]{width:100%;height:100%}.side-content[_ngcontent-%COMP%]{width:35%!important;text-align:center}"]],data:{}});function fL(t){return Go(0,[ko(402653184,1,{sidenav:0}),(t()(),Sr(1,0,null,null,13,"mat-sidenav-container",[["class","mat-drawer-container mat-sidenav-container"],["fullscreen",""]],[[2,"mat-drawer-container-explicit-backdrop",null]],null,null,jA,FA)),fo(2,1490944,null,2,RA,[[2,Mm],Ee,Fn,ai,xA,[2,r_],[2,lv]],null,null),ko(603979776,2,{_drawers:1}),ko(335544320,3,{_content:0}),(t()(),Sr(5,0,null,0,3,"mat-sidenav",[["class","side-content mat-drawer mat-sidenav"],["mode","over"],["tabIndex","-1"]],[[40,"@transform",0],[1,"align",0],[2,"mat-drawer-end",null],[2,"mat-drawer-over",null],[2,"mat-drawer-push",null],[2,"mat-drawer-side",null],[2,"mat-sidenav-fixed",null],[4,"top","px"],[4,"bottom","px"]],[["component","@transform.start"],["component","@transform.done"]],function(t,e,n){var i=!0;return"component:@transform.start"===e&&(i=!1!==to(t,6)._animationStarted.next(n)&&i),"component:@transform.done"===e&&(i=!1!==to(t,6)._animationEnd.next(n)&&i),i},DA,LA)),fo(6,3325952,[[2,4],[1,4],["sidenav",4]],0,OA,[Ee,kf,Ff,Qd,Fn,[2,Sl]],{mode:[0,"mode"]},null),(t()(),Sr(7,16777216,null,0,1,"router-outlet",[["name","side"]],null,null,null,null,null)),fo(8,212992,null,0,ep,[tp,si,de,[8,"side"],ai],null,null),(t()(),Sr(9,0,null,1,5,"mat-sidenav-content",[["class","mat-drawer-content mat-sidenav-content"]],[[4,"margin-left","px"],[4,"margin-right","px"]],null,null,AA,PA)),fo(10,1294336,[[3,4]],0,IA,[ai,RA,Ee,ov,Fn],null,null),(t()(),Sr(11,0,null,0,1,"app-toolbar",[],null,null,null,hL,lL)),fo(12,114688,null,0,aL,[Uk,LP,Jh,$b],null,null),(t()(),Sr(13,16777216,null,0,1,"router-outlet",[],null,null,null,null,null)),fo(14,212992,null,0,ep,[tp,si,de,[8,null],ai],null,null)],function(t,e){t(e,2,0),t(e,6,0,"over"),t(e,8,0),t(e,10,0),t(e,12,0),t(e,14,0)},function(t,e){t(e,1,0,to(e,2)._backdropOverride),t(e,5,0,to(e,6)._animationState,null,"end"===to(e,6).position,"over"===to(e,6).mode,"push"===to(e,6).mode,"side"===to(e,6).mode,to(e,6).fixedInViewport,to(e,6).fixedInViewport?to(e,6).fixedTopGap:null,to(e,6).fixedInViewport?to(e,6).fixedBottomGap:null),t(e,9,0,to(e,10)._container._contentMargins.left,to(e,10)._container._contentMargins.right)})}var mL=Qi({encapsulation:0,styles:[[""]],data:{}});function gL(t){return Go(0,[(t()(),Sr(0,0,null,null,1,"app-home",[],null,null,null,fL,dL)),fo(1,114688,null,0,pL,[Jh,LP],null,null)],function(t,e){t(e,1,0)},null)}function yL(t){return Go(0,[(t()(),Sr(0,0,null,null,1,"app-root",[],null,[["window","beforeunload"]],function(t,e,n){var i=!0;return"window:beforeunload"===e&&(i=!1!==to(t,1).beforeUnloadHander(n)&&i),i},gL,mL)),fo(1,49152,null,0,$s,[],null,null)],null,null)}var _L=Ur("app-root",$s,yL,{},{},[]),vL=function(){function t(t){this.modalService=t}return t.prototype.intercept=function(t,e){var n=localStorage.getItem(nw.tokenName);if(null!=n){var i=(new xb).append(nw.tokenName,n);console.log(i);var r=t.clone({headers:i});return this.handleRequest(r,e)}return this.handleRequest(t,e)},t.prototype.setHeaders=function(t,e){return t.clone({headers:e}),t},t.prototype.handleRequest=function(t,e){var n=this;return e.handle(t).pipe(Ta(function(t){var e;if(t.error instanceof ErrorEvent)e=t.error.message;else{var i=t;null!==(e=null!==i.error&&void 0!==i.error.message?i.error.message:403===i.status||401===i.status?"Credenziali di accesso non valide":"Errore durante l'operazione. Ritentare o contattare l'assistenza")&&""!==e.trim()&&n.modalService.openMessageAlert(bb,new eb(e,"red-snackbar")),i.url.endsWith("login")&&null!==localStorage.getItem(nw.tokenName)&&localStorage.removeItem(nw.tokenName)}throw e}))},t.ngInjectableDef=mt({factory:function(){return new t(ee(vb))},token:t,providedIn:"root"}),t}(),bL=function(){function t(t){this.authService=t}return t.prototype.canActivate=function(t,e){return this.authService.checkLogin()},t.prototype.canLoad=function(t,e){return this.authService.checkLogin()},t.ngInjectableDef=mt({factory:function(){return new t(ee($b))},token:t,providedIn:"root"}),t}(),wL=function(){return function(){}}(),CL=function(){return function(){}}(),xL=function(){return function(){}}(),EL=function(){return function(){}}(),SL=function(){return function(){}}(),TL=function(){return function(){}}(),IL=function(){return function(){}}(),OL=function(){return function(){}}(),RL=function(){return function(){}}(),kL=function(){return function(){}}(),PL=function(){return function(){}}(),AL=function(){return function(){}}(),LL=function(){return function(){}}(),DL=function(){return function(){}}(),FL=Xs(Js,[$s],function(t){return function(t){for(var e={},n=[],i=!1,r=0;r",this._properties=t&&t.properties||{},this._zoneDelegate=new c(this,this._parent&&this._parent._zoneDelegate,t)}return t.assertZonePatched=function(){if(e.Promise!==Z.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(t,"root",{get:function(){for(var e=t.current;e.parent;)e=e.parent;return e},enumerable:!0,configurable:!0}),Object.defineProperty(t,"current",{get:function(){return O.zone},enumerable:!0,configurable:!0}),Object.defineProperty(t,"currentTask",{get:function(){return P},enumerable:!0,configurable:!0}),t.__load_patch=function(a,i){if(Z.hasOwnProperty(a)){if(o)throw Error("Already loaded patch: "+a)}else if(!e["__Zone_disable_"+a]){var s="Zone:"+a;n(s),Z[a]=i(e,t,z),r(s,s)}},Object.defineProperty(t.prototype,"parent",{get:function(){return this._parent},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"name",{get:function(){return this._name},enumerable:!0,configurable:!0}),t.prototype.get=function(e){var t=this.getZoneWith(e);if(t)return t._properties[e]},t.prototype.getZoneWith=function(e){for(var t=this;t;){if(t._properties.hasOwnProperty(e))return t;t=t._parent}return null},t.prototype.fork=function(e){if(!e)throw new Error("ZoneSpec required!");return this._zoneDelegate.fork(this,e)},t.prototype.wrap=function(e,t){if("function"!=typeof e)throw new Error("Expecting function got: "+e);var n=this._zoneDelegate.intercept(this,e,t),r=this;return function(){return r.runGuarded(n,this,arguments,t)}},t.prototype.run=function(e,t,n,r){O={parent:O,zone:this};try{return this._zoneDelegate.invoke(this,e,t,n,r)}finally{O=O.parent}},t.prototype.runGuarded=function(e,t,n,r){void 0===t&&(t=null),O={parent:O,zone:this};try{try{return this._zoneDelegate.invoke(this,e,t,n,r)}catch(o){if(this._zoneDelegate.handleError(this,o))throw o}}finally{O=O.parent}},t.prototype.runTask=function(e,t,n){if(e.zone!=this)throw new Error("A task can only be run in the zone of creation! (Creation: "+(e.zone||y).name+"; Execution: "+this.name+")");if(e.state!==m||e.type!==D&&e.type!==S){var r=e.state!=b;r&&e._transitionTo(b,_),e.runCount++;var o=P;P=e,O={parent:O,zone:this};try{e.type==S&&e.data&&!e.data.isPeriodic&&(e.cancelFn=void 0);try{return this._zoneDelegate.invokeTask(this,e,t,n)}catch(a){if(this._zoneDelegate.handleError(this,a))throw a}}finally{e.state!==m&&e.state!==w&&(e.type==D||e.data&&e.data.isPeriodic?r&&e._transitionTo(_,b):(e.runCount=0,this._updateTaskCount(e,-1),r&&e._transitionTo(m,b,m))),O=O.parent,P=o}}},t.prototype.scheduleTask=function(e){if(e.zone&&e.zone!==this)for(var t=this;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,m);var n=[];e._zoneDelegates=n,e._zone=this;try{e=this._zoneDelegate.scheduleTask(this,e)}catch(r){throw e._transitionTo(w,k,m),this._zoneDelegate.handleError(this,r),r}return e._zoneDelegates===n&&this._updateTaskCount(e,1),e.state==k&&e._transitionTo(_,k),e},t.prototype.scheduleMicroTask=function(e,t,n,r){return this.scheduleTask(new l(E,e,t,n,r,void 0))},t.prototype.scheduleMacroTask=function(e,t,n,r,o){return this.scheduleTask(new l(S,e,t,n,r,o))},t.prototype.scheduleEventTask=function(e,t,n,r,o){return this.scheduleTask(new l(D,e,t,n,r,o))},t.prototype.cancelTask=function(e){if(e.zone!=this)throw new Error("A task can only be cancelled in the zone of creation! (Creation: "+(e.zone||y).name+"; Execution: "+this.name+")");e._transitionTo(T,_,b);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(m,T),e.runCount=0,e},t.prototype._updateTaskCount=function(e,t){var n=e._zoneDelegates;-1==t&&(e._zoneDelegates=null);for(var r=0;r0,macroTask:n.macroTask>0,eventTask:n.eventTask>0,change:e})},e}(),l=function(){function t(n,r,o,a,i,s){this._zone=null,this.runCount=0,this._zoneDelegates=null,this._state="notScheduled",this.type=n,this.source=r,this.data=a,this.scheduleFn=i,this.cancelFn=s,this.callback=o;var c=this;this.invoke=n===D&&a&&a.useG?t.invokeTask:function(){return t.invokeTask.call(e,c,this,arguments)}}return t.invokeTask=function(e,t,n){e||(e=this),C++;try{return e.runCount++,e.zone.runTask(e,t,n)}finally{1==C&&g(),C--}},Object.defineProperty(t.prototype,"zone",{get:function(){return this._zone},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"state",{get:function(){return this._state},enumerable:!0,configurable:!0}),t.prototype.cancelScheduleRequest=function(){this._transitionTo(m,k)},t.prototype._transitionTo=function(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==m&&(this._zoneDelegates=null)},t.prototype.toString=function(){return this.data&&void 0!==this.data.handleId?this.data.handleId.toString():Object.prototype.toString.call(this)},t.prototype.toJSON=function(){return{type:this.type,state:this.state,source:this.source,zone:this.zone.name,runCount:this.runCount}},t}(),u=I("setTimeout"),f=I("Promise"),p=I("then"),h=[],d=!1;function v(t){if(0===C&&0===h.length)if(a||e[f]&&(a=e[f].resolve(0)),a){var n=a[p];n||(n=a.then),n.call(a,g)}else e[u](g,0);t&&h.push(t)}function g(){if(!d){for(d=!0;h.length;){var e=h;h=[];for(var t=0;t=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}}};Zone.__load_patch("ZoneAwarePromise",function(t,n,r){var o=Object.getOwnPropertyDescriptor,a=Object.defineProperty,i=r.symbol,s=[],c=i("Promise"),l=i("then"),u="__creationTrace__";r.onUnhandledError=function(e){if(r.showUncaughtError()){var 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)}},r.microtaskDrainDone=function(){for(;s.length;)for(var e=function(){var e=s.shift();try{e.zone.runGuarded(function(){throw e})}catch(t){p(t)}};s.length;)e()};var f=i("unhandledPromiseRejectionHandler");function p(e){r.onUnhandledError(e);try{var t=n[f];t&&"function"==typeof t&&t.call(this,e)}catch(o){}}function h(e){return e&&e.then}function d(e){return e}function v(e){return M.reject(e)}var g=i("state"),y=i("value"),m=i("finally"),k=i("parentPromiseValue"),_=i("parentPromiseState"),b="Promise.then",T=null,w=!0,E=!1,S=0;function D(e,t){return function(n){try{P(e,t,n)}catch(r){P(e,!1,r)}}}var Z=function(){var e=!1;return function(t){return function(){e||(e=!0,t.apply(null,arguments))}}},z="Promise resolved with itself",O=i("currentTaskTrace");function P(e,t,o){var i,c=Z();if(e===o)throw new TypeError(z);if(e[g]===T){var l=null;try{"object"!=typeof o&&"function"!=typeof o||(l=o&&o.then)}catch(v){return c(function(){P(e,!1,v)})(),e}if(t!==E&&o instanceof M&&o.hasOwnProperty(g)&&o.hasOwnProperty(y)&&o[g]!==T)j(o),P(e,o[g],o[y]);else if(t!==E&&"function"==typeof l)try{l.call(o,c(D(e,t)),c(D(e,!1)))}catch(v){c(function(){P(e,!1,v)})()}else{e[g]=t;var f=e[y];if(e[y]=o,e[m]===m&&t===w&&(e[g]=e[_],e[y]=e[k]),t===E&&o instanceof Error){var p=n.currentTask&&n.currentTask.data&&n.currentTask.data[u];p&&a(o,O,{configurable:!0,enumerable:!1,writable:!0,value:p})}for(var h=0;h1?c[1]:null,h=p&&p.signal;return new Promise(function(p,d){var v=t.current.scheduleMacroTask("fetch",f,c,function(){var s,l=t.current;try{l[i]=!0,s=r.apply(e,c)}catch(f){return void d(f)}finally{l[i]=!1}if(!(s instanceof o)){var u=s.constructor;u[a]||n.patchThen(u)}s.then(function(e){"notScheduled"!==v.state&&v.invoke(),p(e)},function(e){"notScheduled"!==v.state&&v.invoke(),d(e)})},function(){if(l)if(h&&h.abortController&&!h.aborted&&"function"==typeof h.abortController.abort&&u)try{t.current[s]=!0,u.call(h.abortController)}finally{t.current[s]=!1}else d("cancel fetch need a AbortController.signal");else d("No AbortController supported, can not cancel fetch")});h&&h.abortController&&(h.abortController.task=v)})}}});var t=Object.getOwnPropertyDescriptor,n=Object.defineProperty,r=Object.getPrototypeOf,o=Object.create,a=Array.prototype.slice,i="addEventListener",s="removeEventListener",c=Zone.__symbol__(i),l=Zone.__symbol__(s),u="true",f="false",p="__zone_symbol__";function h(e,t){return Zone.current.wrap(e,t)}function d(e,t,n,r,o){return Zone.current.scheduleMacroTask(e,t,n,r,o)}var v=Zone.__symbol__,g="undefined"!=typeof window,y=g?window:void 0,m=g&&y||"object"==typeof self&&self||global,k="removeAttribute",_=[null];function b(e,t){for(var n=e.length-1;n>=0;n--)"function"==typeof e[n]&&(e[n]=h(e[n],t+"_"+n));return e}function T(e){return!e||!1!==e.writable&&!("function"==typeof e.get&&void 0===e.set)}var w="undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope,E=!("nw"in m)&&void 0!==m.process&&"[object process]"==={}.toString.call(m.process),S=!E&&!w&&!(!g||!y.HTMLElement),D=void 0!==m.process&&"[object process]"==={}.toString.call(m.process)&&!w&&!(!g||!y.HTMLElement),Z={},z=function(e){if(e=e||m.event){var t=Z[e.type];t||(t=Z[e.type]=v("ON_PROPERTY"+e.type));var n,r=this||e.target||m,o=r[t];return S&&r===y&&"error"===e.type?!0===(n=o&&o.call(this,e.message,e.filename,e.lineno,e.colno,e.error))&&e.preventDefault():null==(n=o&&o.apply(this,arguments))||n||e.preventDefault(),n}};function O(e,r,o){var a=t(e,r);if(!a&&o&&t(o,r)&&(a={enumerable:!0,configurable:!0}),a&&a.configurable){var i=v("on"+r+"patched");if(!e.hasOwnProperty(i)||!e[i]){delete a.writable,delete a.value;var s=a.get,c=a.set,l=r.substr(2),u=Z[l];u||(u=Z[l]=v("ON_PROPERTY"+l)),a.set=function(t){var n=this;n||e!==m||(n=m),n&&(n[u]&&n.removeEventListener(l,z),c&&c.apply(n,_),"function"==typeof t?(n[u]=t,n.addEventListener(l,z,!1)):n[u]=null)},a.get=function(){var t=this;if(t||e!==m||(t=m),!t)return null;var n=t[u];if(n)return n;if(s){var o=s&&s.call(this);if(o)return a.set.call(this,o),"function"==typeof t[k]&&t.removeAttribute(r),o}return null},n(e,r,a),e[i]=!0}}}function P(e,t,n){if(t)for(var r=0;r1?new r(e,n):new r(e),f=t(u,"onmessage");return f&&!1===f.configurable?(c=o(u),l=u,[i,s,"send","close"].forEach(function(e){c[e]=function(){var t=a.call(arguments);if(e===i||e===s){var n=t.length>0?t[0]:void 0;if(n){var r=Zone.__symbol__("ON_PROPERTY"+n);u[r]=c[r]}}return u[e].apply(u,t)}})):c=u,P(c,["close","error","message","open"],l),c};var c=n.WebSocket;for(var l in r)c[l]=r[l]}(0,c)}}var ge=v("unbound");function ye(e,n,r,o){var a=Zone.__symbol__(r);if(!e[a]){var i=e[a]=e[r];e[r]=function(a,s,c){return s&&s.prototype&&o.forEach(function(e){var o,a,i,c,l=n+"."+r+"::"+e,u=s.prototype;if(u.hasOwnProperty(e)){var f=t(u,e);f&&f.value?(f.value=h(f.value,l),c=(i=f).configurable,re(o=s.prototype,a=e,i=ne(o,a,i),c)):u[e]&&(u[e]=h(u[e],l))}else u[e]&&(u[e]=h(u[e],l))}),i.call(e,a,s,c)},L(e[r],i)}}Zone.__load_patch("util",function(e,t,n){n.patchOnProperties=P,n.patchMethod=M,n.bindArguments=b}),Zone.__load_patch("timers",function(e){K(e,"set","clear","Timeout"),K(e,"set","clear","Interval"),K(e,"set","clear","Immediate")}),Zone.__load_patch("requestAnimationFrame",function(e){K(e,"request","cancel","AnimationFrame"),K(e,"mozRequest","mozCancel","AnimationFrame"),K(e,"webkitRequest","webkitCancel","AnimationFrame")}),Zone.__load_patch("blocking",function(e,t){for(var n=["alert","prompt","confirm"],r=0;r=0&&"function"==typeof n[r.cbIdx]?d(r.name,n[r.cbIdx],r,a):e.apply(t,n)}})}()}),Zone.__load_patch("XHR",function(e,t){!function(u){var f=XMLHttpRequest.prototype,p=f[c],h=f[l];if(!p){var g=e.XMLHttpRequestEventTarget;if(g){var y=g.prototype;p=y[c],h=y[l]}}var m="readystatechange",k="scheduled";function _(e){var t=e.data,r=t.target;r[a]=!1,r[s]=!1;var i=r[o];p||(p=r[c],h=r[l]),i&&h.call(r,m,i);var u=r[o]=function(){if(r.readyState===r.DONE)if(!t.aborted&&r[a]&&e.state===k){var n=r.__zone_symbol__loadfalse;if(n&&n.length>0){var o=e.invoke;e.invoke=function(){for(var n=r.__zone_symbol__loadfalse,a=0;a.mat-calendar-body-cell-content:not(.mat-calendar-body-selected){color:rgba(0,0,0,.38)}.cdk-keyboard-focused .mat-calendar-body-active>.mat-calendar-body-cell-content:not(.mat-calendar-body-selected),.cdk-program-focused .mat-calendar-body-active>.mat-calendar-body-cell-content:not(.mat-calendar-body-selected),.mat-calendar-body-cell:not(.mat-calendar-body-disabled):hover>.mat-calendar-body-cell-content:not(.mat-calendar-body-selected){background-color:rgba(0,0,0,.04)}.mat-calendar-body-today:not(.mat-calendar-body-selected){border-color:rgba(0,0,0,.38)}.mat-calendar-body-disabled>.mat-calendar-body-today:not(.mat-calendar-body-selected){border-color:rgba(0,0,0,.18)}.mat-calendar-body-selected{background-color:#4caf50;color:rgba(0,0,0,.87)}.mat-calendar-body-disabled>.mat-calendar-body-selected{background-color:rgba(76,175,80,.4)}.mat-calendar-body-today.mat-calendar-body-selected{box-shadow:inset 0 0 0 1px rgba(0,0,0,.87)}.mat-datepicker-content{box-shadow:0 2px 4px -1px rgba(0,0,0,.2),0 4px 5px 0 rgba(0,0,0,.14),0 1px 10px 0 rgba(0,0,0,.12);background-color:#fff;color:rgba(0,0,0,.87)}.mat-datepicker-content.mat-accent .mat-calendar-body-selected{background-color:#ffc107;color:rgba(0,0,0,.87)}.mat-datepicker-content.mat-accent .mat-calendar-body-disabled>.mat-calendar-body-selected{background-color:rgba(255,193,7,.4)}.mat-datepicker-content.mat-accent .mat-calendar-body-today.mat-calendar-body-selected{box-shadow:inset 0 0 0 1px rgba(0,0,0,.87)}.mat-datepicker-content.mat-warn .mat-calendar-body-selected{background-color:#ff5722;color:#fff}.mat-datepicker-content.mat-warn .mat-calendar-body-disabled>.mat-calendar-body-selected{background-color:rgba(255,87,34,.4)}.mat-datepicker-content.mat-warn .mat-calendar-body-today.mat-calendar-body-selected{box-shadow:inset 0 0 0 1px #fff}.mat-datepicker-content-touch{box-shadow:0 0 0 0 rgba(0,0,0,.2),0 0 0 0 rgba(0,0,0,.14),0 0 0 0 rgba(0,0,0,.12)}.mat-datepicker-toggle-active{color:#4caf50}.mat-datepicker-toggle-active.mat-accent{color:#ffc107}.mat-datepicker-toggle-active.mat-warn{color:#ff5722}.mat-dialog-container{box-shadow:0 11px 15px -7px rgba(0,0,0,.2),0 24px 38px 3px rgba(0,0,0,.14),0 9px 46px 8px rgba(0,0,0,.12);background:#fff;color:rgba(0,0,0,.87)}.mat-divider{border-top-color:rgba(0,0,0,.12)}.mat-divider-vertical{border-right-color:rgba(0,0,0,.12)}.mat-expansion-panel{background:#fff;color:rgba(0,0,0,.87)}.mat-expansion-panel:not([class*=mat-elevation-z]){box-shadow:0 3px 1px -2px rgba(0,0,0,.2),0 2px 2px 0 rgba(0,0,0,.14),0 1px 5px 0 rgba(0,0,0,.12)}.mat-action-row{border-top-color:rgba(0,0,0,.12)}.mat-expansion-panel:not(.mat-expanded) .mat-expansion-panel-header:not([aria-disabled=true]).cdk-keyboard-focused,.mat-expansion-panel:not(.mat-expanded) .mat-expansion-panel-header:not([aria-disabled=true]).cdk-program-focused,.mat-expansion-panel:not(.mat-expanded) .mat-expansion-panel-header:not([aria-disabled=true]):hover{background:rgba(0,0,0,.04)}@media (hover:none){.mat-expansion-panel:not(.mat-expanded):not([aria-disabled=true]) .mat-expansion-panel-header:hover{background:#fff}}.mat-expansion-panel-header-title{color:rgba(0,0,0,.87)}.mat-expansion-indicator::after,.mat-expansion-panel-header-description{color:rgba(0,0,0,.54)}.mat-expansion-panel-header[aria-disabled=true]{color:rgba(0,0,0,.26)}.mat-expansion-panel-header[aria-disabled=true] .mat-expansion-panel-header-description,.mat-expansion-panel-header[aria-disabled=true] .mat-expansion-panel-header-title{color:inherit}.mat-form-field-label,.mat-hint{color:rgba(0,0,0,.6)}.mat-form-field.mat-focused .mat-form-field-label{color:#4caf50}.mat-form-field.mat-focused .mat-form-field-label.mat-accent{color:#ffc107}.mat-form-field.mat-focused .mat-form-field-label.mat-warn{color:#ff5722}.mat-focused .mat-form-field-required-marker{color:#ffc107}.mat-form-field-ripple{background-color:rgba(0,0,0,.87)}.mat-form-field.mat-focused .mat-form-field-ripple{background-color:#4caf50}.mat-form-field.mat-focused .mat-form-field-ripple.mat-accent{background-color:#ffc107}.mat-form-field.mat-focused .mat-form-field-ripple.mat-warn{background-color:#ff5722}.mat-form-field-type-mat-native-select.mat-focused:not(.mat-form-field-invalid) .mat-form-field-infix::after{color:#4caf50}.mat-form-field-type-mat-native-select.mat-focused:not(.mat-form-field-invalid).mat-accent .mat-form-field-infix::after{color:#ffc107}.mat-form-field-type-mat-native-select.mat-focused:not(.mat-form-field-invalid).mat-warn .mat-form-field-infix::after,.mat-form-field.mat-form-field-invalid .mat-form-field-label,.mat-form-field.mat-form-field-invalid .mat-form-field-label .mat-form-field-required-marker,.mat-form-field.mat-form-field-invalid .mat-form-field-label.mat-accent{color:#ff5722}.mat-form-field.mat-form-field-invalid .mat-form-field-ripple,.mat-form-field.mat-form-field-invalid .mat-form-field-ripple.mat-accent{background-color:#ff5722}.mat-error{color:#ff5722}.mat-form-field-appearance-legacy .mat-form-field-label,.mat-form-field-appearance-legacy .mat-hint{color:rgba(0,0,0,.54)}.mat-form-field-appearance-legacy .mat-form-field-underline{bottom:1.25em;background-color:rgba(0,0,0,.42)}.mat-form-field-appearance-legacy.mat-form-field-disabled .mat-form-field-underline{background-image:linear-gradient(to right,rgba(0,0,0,.42) 0,rgba(0,0,0,.42) 33%,transparent 0);background-size:4px 100%;background-repeat:repeat-x}.mat-form-field-appearance-standard .mat-form-field-underline{background-color:rgba(0,0,0,.42)}.mat-form-field-appearance-standard.mat-form-field-disabled .mat-form-field-underline{background-image:linear-gradient(to right,rgba(0,0,0,.42) 0,rgba(0,0,0,.42) 33%,transparent 0);background-size:4px 100%;background-repeat:repeat-x}.mat-form-field-appearance-fill .mat-form-field-flex{background-color:rgba(0,0,0,.04)}.mat-form-field-appearance-fill.mat-form-field-disabled .mat-form-field-flex{background-color:rgba(0,0,0,.02)}.mat-form-field-appearance-fill .mat-form-field-underline::before{background-color:rgba(0,0,0,.42)}.mat-form-field-appearance-fill.mat-form-field-disabled .mat-form-field-label{color:rgba(0,0,0,.38)}.mat-form-field-appearance-fill.mat-form-field-disabled .mat-form-field-underline::before{background-color:transparent}.mat-form-field-appearance-outline .mat-form-field-outline{color:rgba(0,0,0,.12)}.mat-form-field-appearance-outline .mat-form-field-outline-thick{color:rgba(0,0,0,.87)}.mat-form-field-appearance-outline.mat-focused .mat-form-field-outline-thick{color:#4caf50}.mat-form-field-appearance-outline.mat-focused.mat-accent .mat-form-field-outline-thick{color:#ffc107}.mat-form-field-appearance-outline.mat-focused.mat-warn .mat-form-field-outline-thick,.mat-form-field-appearance-outline.mat-form-field-invalid.mat-form-field-invalid .mat-form-field-outline-thick{color:#ff5722}.mat-form-field-appearance-outline.mat-form-field-disabled .mat-form-field-label{color:rgba(0,0,0,.38)}.mat-form-field-appearance-outline.mat-form-field-disabled .mat-form-field-outline{color:rgba(0,0,0,.06)}.mat-icon.mat-primary{color:#4caf50}.mat-icon.mat-accent{color:#ffc107}.mat-icon.mat-warn{color:#ff5722}.mat-form-field-type-mat-native-select .mat-form-field-infix::after{color:rgba(0,0,0,.54)}.mat-form-field-type-mat-native-select.mat-form-field-disabled .mat-form-field-infix::after,.mat-input-element:disabled{color:rgba(0,0,0,.38)}.mat-input-element{caret-color:#4caf50}.mat-input-element::-ms-input-placeholder{color:rgba(0,0,0,.42)}.mat-input-element::placeholder{color:rgba(0,0,0,.42)}.mat-input-element::-moz-placeholder{color:rgba(0,0,0,.42)}.mat-input-element::-webkit-input-placeholder{color:rgba(0,0,0,.42)}.mat-input-element:-ms-input-placeholder{color:rgba(0,0,0,.42)}.mat-accent .mat-input-element{caret-color:#ffc107}.mat-form-field-invalid .mat-input-element,.mat-warn .mat-input-element{caret-color:#ff5722}.mat-form-field-type-mat-native-select.mat-form-field-invalid .mat-form-field-infix::after{color:#ff5722}.mat-list-base .mat-list-item,.mat-list-base .mat-list-option{color:rgba(0,0,0,.87)}.mat-list-base .mat-subheader{font-family:Roboto,"Helvetica Neue",sans-serif;font-size:14px;font-weight:500;color:rgba(0,0,0,.54)}.mat-list-item-disabled{background-color:#eee}.mat-action-list .mat-list-item:focus,.mat-action-list .mat-list-item:hover,.mat-list-option:focus,.mat-list-option:hover,.mat-nav-list .mat-list-item:focus,.mat-nav-list .mat-list-item:hover{background:rgba(0,0,0,.04)}.mat-menu-panel{background:#fff}.mat-menu-panel:not([class*=mat-elevation-z]){box-shadow:0 2px 4px -1px rgba(0,0,0,.2),0 4px 5px 0 rgba(0,0,0,.14),0 1px 10px 0 rgba(0,0,0,.12)}.mat-menu-item{background:0 0;color:rgba(0,0,0,.87)}.mat-menu-item[disabled],.mat-menu-item[disabled]::after{color:rgba(0,0,0,.38)}.mat-menu-item .mat-icon-no-color,.mat-menu-item-submenu-trigger::after{color:rgba(0,0,0,.54)}.mat-menu-item-highlighted:not([disabled]),.mat-menu-item.cdk-keyboard-focused:not([disabled]),.mat-menu-item.cdk-program-focused:not([disabled]),.mat-menu-item:hover:not([disabled]){background:rgba(0,0,0,.04)}.mat-paginator{background:#fff}.mat-paginator,.mat-paginator-page-size .mat-select-trigger{color:rgba(0,0,0,.54)}.mat-paginator-decrement,.mat-paginator-increment{border-top:2px solid rgba(0,0,0,.54);border-right:2px solid rgba(0,0,0,.54)}.mat-paginator-first,.mat-paginator-last{border-top:2px solid rgba(0,0,0,.54)}.mat-icon-button[disabled] .mat-paginator-decrement,.mat-icon-button[disabled] .mat-paginator-first,.mat-icon-button[disabled] .mat-paginator-increment,.mat-icon-button[disabled] .mat-paginator-last{border-color:rgba(0,0,0,.38)}.mat-progress-bar-background{fill:#c8e6c9}.mat-progress-bar-buffer{background-color:#c8e6c9}.mat-progress-bar-fill::after{background-color:#4caf50}.mat-progress-bar.mat-accent .mat-progress-bar-background{fill:#ffecb3}.mat-progress-bar.mat-accent .mat-progress-bar-buffer{background-color:#ffecb3}.mat-progress-bar.mat-accent .mat-progress-bar-fill::after{background-color:#ffc107}.mat-progress-bar.mat-warn .mat-progress-bar-background{fill:#ffccbc}.mat-progress-bar.mat-warn .mat-progress-bar-buffer{background-color:#ffccbc}.mat-progress-bar.mat-warn .mat-progress-bar-fill::after{background-color:#ff5722}.mat-progress-spinner circle,.mat-spinner circle{stroke:#4caf50}.mat-progress-spinner.mat-accent circle,.mat-spinner.mat-accent circle{stroke:#ffc107}.mat-progress-spinner.mat-warn circle,.mat-spinner.mat-warn circle{stroke:#ff5722}.mat-radio-outer-circle{border-color:rgba(0,0,0,.54)}.mat-radio-button.mat-primary.mat-radio-checked .mat-radio-outer-circle{border-color:#4caf50}.mat-radio-button.mat-primary .mat-radio-inner-circle,.mat-radio-button.mat-primary .mat-radio-ripple .mat-ripple-element:not(.mat-radio-persistent-ripple),.mat-radio-button.mat-primary.mat-radio-checked .mat-radio-persistent-ripple,.mat-radio-button.mat-primary:active .mat-radio-persistent-ripple{background-color:#4caf50}.mat-radio-button.mat-accent.mat-radio-checked .mat-radio-outer-circle{border-color:#ffc107}.mat-radio-button.mat-accent .mat-radio-inner-circle,.mat-radio-button.mat-accent .mat-radio-ripple .mat-ripple-element:not(.mat-radio-persistent-ripple),.mat-radio-button.mat-accent.mat-radio-checked .mat-radio-persistent-ripple,.mat-radio-button.mat-accent:active .mat-radio-persistent-ripple{background-color:#ffc107}.mat-radio-button.mat-warn.mat-radio-checked .mat-radio-outer-circle{border-color:#ff5722}.mat-radio-button.mat-warn .mat-radio-inner-circle,.mat-radio-button.mat-warn .mat-radio-ripple .mat-ripple-element:not(.mat-radio-persistent-ripple),.mat-radio-button.mat-warn.mat-radio-checked .mat-radio-persistent-ripple,.mat-radio-button.mat-warn:active .mat-radio-persistent-ripple{background-color:#ff5722}.mat-radio-button.mat-radio-disabled .mat-radio-outer-circle,.mat-radio-button.mat-radio-disabled.mat-radio-checked .mat-radio-outer-circle{border-color:rgba(0,0,0,.38)}.mat-radio-button.mat-radio-disabled .mat-radio-inner-circle,.mat-radio-button.mat-radio-disabled .mat-radio-ripple .mat-ripple-element{background-color:rgba(0,0,0,.38)}.mat-radio-button.mat-radio-disabled .mat-radio-label-content{color:rgba(0,0,0,.38)}.mat-radio-button .mat-ripple-element{background-color:#000}.mat-select-value{color:rgba(0,0,0,.87)}.mat-select-placeholder{color:rgba(0,0,0,.42)}.mat-select-disabled .mat-select-value{color:rgba(0,0,0,.38)}.mat-select-arrow{color:rgba(0,0,0,.54)}.mat-select-panel{background:#fff}.mat-select-panel:not([class*=mat-elevation-z]){box-shadow:0 2px 4px -1px rgba(0,0,0,.2),0 4px 5px 0 rgba(0,0,0,.14),0 1px 10px 0 rgba(0,0,0,.12)}.mat-select-panel .mat-option.mat-selected:not(.mat-option-multiple){background:rgba(0,0,0,.12)}.mat-form-field.mat-focused.mat-primary .mat-select-arrow{color:#4caf50}.mat-form-field.mat-focused.mat-accent .mat-select-arrow{color:#ffc107}.mat-form-field .mat-select.mat-select-invalid .mat-select-arrow,.mat-form-field.mat-focused.mat-warn .mat-select-arrow{color:#ff5722}.mat-form-field .mat-select.mat-select-disabled .mat-select-arrow{color:rgba(0,0,0,.38)}.mat-drawer-container{background-color:#fafafa;color:rgba(0,0,0,.87)}.mat-drawer{background-color:#fff;color:rgba(0,0,0,.87)}.mat-drawer.mat-drawer-push{background-color:#fff}.mat-drawer:not(.mat-drawer-side){box-shadow:0 8px 10px -5px rgba(0,0,0,.2),0 16px 24px 2px rgba(0,0,0,.14),0 6px 30px 5px rgba(0,0,0,.12)}.mat-drawer-side{border-right:1px solid rgba(0,0,0,.12)}.mat-drawer-side.mat-drawer-end,[dir=rtl] .mat-drawer-side{border-left:1px solid rgba(0,0,0,.12);border-right:none}[dir=rtl] .mat-drawer-side.mat-drawer-end{border-left:none;border-right:1px solid rgba(0,0,0,.12)}.mat-drawer-backdrop.mat-drawer-shown{background-color:rgba(0,0,0,.6)}.mat-slide-toggle.mat-checked .mat-slide-toggle-thumb{background-color:#ffc107}.mat-slide-toggle.mat-checked .mat-slide-toggle-bar{background-color:rgba(255,193,7,.54)}.mat-slide-toggle.mat-checked .mat-ripple-element{background-color:#ffc107}.mat-slide-toggle.mat-primary.mat-checked .mat-slide-toggle-thumb{background-color:#4caf50}.mat-slide-toggle.mat-primary.mat-checked .mat-slide-toggle-bar{background-color:rgba(76,175,80,.54)}.mat-slide-toggle.mat-primary.mat-checked .mat-ripple-element{background-color:#4caf50}.mat-slide-toggle.mat-warn.mat-checked .mat-slide-toggle-thumb{background-color:#ff5722}.mat-slide-toggle.mat-warn.mat-checked .mat-slide-toggle-bar{background-color:rgba(255,87,34,.54)}.mat-slide-toggle.mat-warn.mat-checked .mat-ripple-element{background-color:#ff5722}.mat-slide-toggle:not(.mat-checked) .mat-ripple-element{background-color:#000}.mat-slide-toggle-thumb{box-shadow:0 2px 1px -1px rgba(0,0,0,.2),0 1px 1px 0 rgba(0,0,0,.14),0 1px 3px 0 rgba(0,0,0,.12);background-color:#fafafa}.mat-slide-toggle-bar{background-color:rgba(0,0,0,.38)}.mat-slider-track-background{background-color:rgba(0,0,0,.26)}.mat-primary .mat-slider-thumb,.mat-primary .mat-slider-thumb-label,.mat-primary .mat-slider-track-fill{background-color:#4caf50}.mat-primary .mat-slider-thumb-label-text{color:rgba(0,0,0,.87)}.mat-accent .mat-slider-thumb,.mat-accent .mat-slider-thumb-label,.mat-accent .mat-slider-track-fill{background-color:#ffc107}.mat-accent .mat-slider-thumb-label-text{color:rgba(0,0,0,.87)}.mat-warn .mat-slider-thumb,.mat-warn .mat-slider-thumb-label,.mat-warn .mat-slider-track-fill{background-color:#ff5722}.mat-warn .mat-slider-thumb-label-text{color:#fff}.mat-slider-focus-ring{background-color:rgba(255,193,7,.2)}.cdk-focused .mat-slider-track-background,.mat-slider:hover .mat-slider-track-background{background-color:rgba(0,0,0,.38)}.mat-slider-disabled .mat-slider-thumb,.mat-slider-disabled .mat-slider-track-background,.mat-slider-disabled .mat-slider-track-fill,.mat-slider-disabled:hover .mat-slider-track-background{background-color:rgba(0,0,0,.26)}.mat-slider-min-value .mat-slider-focus-ring{background-color:rgba(0,0,0,.12)}.mat-slider-min-value.mat-slider-thumb-label-showing .mat-slider-thumb,.mat-slider-min-value.mat-slider-thumb-label-showing .mat-slider-thumb-label{background-color:rgba(0,0,0,.87)}.mat-slider-min-value.mat-slider-thumb-label-showing.cdk-focused .mat-slider-thumb,.mat-slider-min-value.mat-slider-thumb-label-showing.cdk-focused .mat-slider-thumb-label{background-color:rgba(0,0,0,.26)}.mat-slider-min-value:not(.mat-slider-thumb-label-showing) .mat-slider-thumb{border-color:rgba(0,0,0,.26);background-color:transparent}.mat-slider-min-value:not(.mat-slider-thumb-label-showing).cdk-focused .mat-slider-thumb,.mat-slider-min-value:not(.mat-slider-thumb-label-showing):hover .mat-slider-thumb{border-color:rgba(0,0,0,.38)}.mat-slider-min-value:not(.mat-slider-thumb-label-showing).cdk-focused.mat-slider-disabled .mat-slider-thumb,.mat-slider-min-value:not(.mat-slider-thumb-label-showing):hover.mat-slider-disabled .mat-slider-thumb{border-color:rgba(0,0,0,.26)}.mat-slider-has-ticks .mat-slider-wrapper::after{border-color:rgba(0,0,0,.7)}.mat-slider-horizontal .mat-slider-ticks{background-image:repeating-linear-gradient(to right,rgba(0,0,0,.7),rgba(0,0,0,.7) 2px,transparent 0,transparent);background-image:-moz-repeating-linear-gradient(.0001deg,rgba(0,0,0,.7),rgba(0,0,0,.7) 2px,transparent 0,transparent)}.mat-slider-vertical .mat-slider-ticks{background-image:repeating-linear-gradient(to bottom,rgba(0,0,0,.7),rgba(0,0,0,.7) 2px,transparent 0,transparent)}.mat-step-header.cdk-keyboard-focused,.mat-step-header.cdk-program-focused,.mat-step-header:hover{background-color:rgba(0,0,0,.04)}@media (hover:none){.mat-step-header:hover{background:0 0}}.mat-step-header .mat-step-label,.mat-step-header .mat-step-optional{color:rgba(0,0,0,.54)}.mat-step-header .mat-step-icon{background-color:rgba(0,0,0,.54);color:rgba(0,0,0,.87)}.mat-step-header .mat-step-icon-selected,.mat-step-header .mat-step-icon-state-done,.mat-step-header .mat-step-icon-state-edit{background-color:#4caf50;color:rgba(0,0,0,.87)}.mat-step-header .mat-step-icon-state-error{background-color:transparent;color:#ff5722}.mat-step-header .mat-step-label.mat-step-label-active{color:rgba(0,0,0,.87)}.mat-step-header .mat-step-label.mat-step-label-error{color:#ff5722}.mat-stepper-horizontal,.mat-stepper-vertical{background-color:#fff}.mat-stepper-vertical-line::before{border-left-color:rgba(0,0,0,.12)}.mat-horizontal-stepper-header::after,.mat-horizontal-stepper-header::before,.mat-stepper-horizontal-line{border-top-color:rgba(0,0,0,.12)}.mat-sort-header-arrow{color:#757575}.mat-tab-header,.mat-tab-nav-bar{border-bottom:1px solid rgba(0,0,0,.12)}.mat-tab-group-inverted-header .mat-tab-header,.mat-tab-group-inverted-header .mat-tab-nav-bar{border-top:1px solid rgba(0,0,0,.12);border-bottom:none}.mat-tab-label,.mat-tab-link{color:rgba(0,0,0,.87)}.mat-tab-label.mat-tab-disabled,.mat-tab-link.mat-tab-disabled{color:rgba(0,0,0,.38)}.mat-tab-header-pagination-chevron{border-color:rgba(0,0,0,.87)}.mat-tab-header-pagination-disabled .mat-tab-header-pagination-chevron{border-color:rgba(0,0,0,.38)}.mat-tab-group[class*=mat-background-] .mat-tab-header,.mat-tab-nav-bar[class*=mat-background-]{border-bottom:none;border-top:none}.mat-tab-group.mat-primary .mat-tab-label.cdk-keyboard-focused:not(.mat-tab-disabled),.mat-tab-group.mat-primary .mat-tab-label.cdk-program-focused:not(.mat-tab-disabled),.mat-tab-group.mat-primary .mat-tab-link.cdk-keyboard-focused:not(.mat-tab-disabled),.mat-tab-group.mat-primary .mat-tab-link.cdk-program-focused:not(.mat-tab-disabled),.mat-tab-nav-bar.mat-primary .mat-tab-label.cdk-keyboard-focused:not(.mat-tab-disabled),.mat-tab-nav-bar.mat-primary .mat-tab-label.cdk-program-focused:not(.mat-tab-disabled),.mat-tab-nav-bar.mat-primary .mat-tab-link.cdk-keyboard-focused:not(.mat-tab-disabled),.mat-tab-nav-bar.mat-primary .mat-tab-link.cdk-program-focused:not(.mat-tab-disabled){background-color:rgba(200,230,201,.3)}.mat-tab-group.mat-primary .mat-ink-bar,.mat-tab-nav-bar.mat-primary .mat-ink-bar{background-color:#4caf50}.mat-tab-group.mat-primary.mat-background-primary .mat-ink-bar,.mat-tab-nav-bar.mat-primary.mat-background-primary .mat-ink-bar{background-color:rgba(0,0,0,.87)}.mat-tab-group.mat-accent .mat-tab-label.cdk-keyboard-focused:not(.mat-tab-disabled),.mat-tab-group.mat-accent .mat-tab-label.cdk-program-focused:not(.mat-tab-disabled),.mat-tab-group.mat-accent .mat-tab-link.cdk-keyboard-focused:not(.mat-tab-disabled),.mat-tab-group.mat-accent .mat-tab-link.cdk-program-focused:not(.mat-tab-disabled),.mat-tab-nav-bar.mat-accent .mat-tab-label.cdk-keyboard-focused:not(.mat-tab-disabled),.mat-tab-nav-bar.mat-accent .mat-tab-label.cdk-program-focused:not(.mat-tab-disabled),.mat-tab-nav-bar.mat-accent .mat-tab-link.cdk-keyboard-focused:not(.mat-tab-disabled),.mat-tab-nav-bar.mat-accent .mat-tab-link.cdk-program-focused:not(.mat-tab-disabled){background-color:rgba(255,236,179,.3)}.mat-tab-group.mat-accent .mat-ink-bar,.mat-tab-nav-bar.mat-accent .mat-ink-bar{background-color:#ffc107}.mat-tab-group.mat-accent.mat-background-accent .mat-ink-bar,.mat-tab-nav-bar.mat-accent.mat-background-accent .mat-ink-bar{background-color:rgba(0,0,0,.87)}.mat-tab-group.mat-warn .mat-tab-label.cdk-keyboard-focused:not(.mat-tab-disabled),.mat-tab-group.mat-warn .mat-tab-label.cdk-program-focused:not(.mat-tab-disabled),.mat-tab-group.mat-warn .mat-tab-link.cdk-keyboard-focused:not(.mat-tab-disabled),.mat-tab-group.mat-warn .mat-tab-link.cdk-program-focused:not(.mat-tab-disabled),.mat-tab-nav-bar.mat-warn .mat-tab-label.cdk-keyboard-focused:not(.mat-tab-disabled),.mat-tab-nav-bar.mat-warn .mat-tab-label.cdk-program-focused:not(.mat-tab-disabled),.mat-tab-nav-bar.mat-warn .mat-tab-link.cdk-keyboard-focused:not(.mat-tab-disabled),.mat-tab-nav-bar.mat-warn .mat-tab-link.cdk-program-focused:not(.mat-tab-disabled){background-color:rgba(255,204,188,.3)}.mat-tab-group.mat-warn .mat-ink-bar,.mat-tab-nav-bar.mat-warn .mat-ink-bar{background-color:#ff5722}.mat-tab-group.mat-warn.mat-background-warn .mat-ink-bar,.mat-tab-nav-bar.mat-warn.mat-background-warn .mat-ink-bar{background-color:#fff}.mat-tab-group.mat-background-primary .mat-tab-label.cdk-keyboard-focused:not(.mat-tab-disabled),.mat-tab-group.mat-background-primary .mat-tab-label.cdk-program-focused:not(.mat-tab-disabled),.mat-tab-group.mat-background-primary .mat-tab-link.cdk-keyboard-focused:not(.mat-tab-disabled),.mat-tab-group.mat-background-primary .mat-tab-link.cdk-program-focused:not(.mat-tab-disabled),.mat-tab-nav-bar.mat-background-primary .mat-tab-label.cdk-keyboard-focused:not(.mat-tab-disabled),.mat-tab-nav-bar.mat-background-primary .mat-tab-label.cdk-program-focused:not(.mat-tab-disabled),.mat-tab-nav-bar.mat-background-primary .mat-tab-link.cdk-keyboard-focused:not(.mat-tab-disabled),.mat-tab-nav-bar.mat-background-primary .mat-tab-link.cdk-program-focused:not(.mat-tab-disabled){background-color:rgba(200,230,201,.3)}.mat-tab-group.mat-background-primary .mat-tab-header,.mat-tab-group.mat-background-primary .mat-tab-links,.mat-tab-nav-bar.mat-background-primary .mat-tab-header,.mat-tab-nav-bar.mat-background-primary .mat-tab-links{background-color:#4caf50}.mat-tab-group.mat-background-primary .mat-tab-label,.mat-tab-group.mat-background-primary .mat-tab-link,.mat-tab-nav-bar.mat-background-primary .mat-tab-label,.mat-tab-nav-bar.mat-background-primary .mat-tab-link{color:rgba(0,0,0,.87)}.mat-tab-group.mat-background-primary .mat-tab-label.mat-tab-disabled,.mat-tab-group.mat-background-primary .mat-tab-link.mat-tab-disabled,.mat-tab-nav-bar.mat-background-primary .mat-tab-label.mat-tab-disabled,.mat-tab-nav-bar.mat-background-primary .mat-tab-link.mat-tab-disabled{color:rgba(0,0,0,.4)}.mat-tab-group.mat-background-primary .mat-tab-header-pagination-chevron,.mat-tab-nav-bar.mat-background-primary .mat-tab-header-pagination-chevron{border-color:rgba(0,0,0,.87)}.mat-tab-group.mat-background-primary .mat-tab-header-pagination-disabled .mat-tab-header-pagination-chevron,.mat-tab-nav-bar.mat-background-primary .mat-tab-header-pagination-disabled .mat-tab-header-pagination-chevron{border-color:rgba(0,0,0,.4)}.mat-tab-group.mat-background-primary .mat-ripple-element,.mat-tab-nav-bar.mat-background-primary .mat-ripple-element{background-color:rgba(0,0,0,.12)}.mat-tab-group.mat-background-accent .mat-tab-label.cdk-keyboard-focused:not(.mat-tab-disabled),.mat-tab-group.mat-background-accent .mat-tab-label.cdk-program-focused:not(.mat-tab-disabled),.mat-tab-group.mat-background-accent .mat-tab-link.cdk-keyboard-focused:not(.mat-tab-disabled),.mat-tab-group.mat-background-accent .mat-tab-link.cdk-program-focused:not(.mat-tab-disabled),.mat-tab-nav-bar.mat-background-accent .mat-tab-label.cdk-keyboard-focused:not(.mat-tab-disabled),.mat-tab-nav-bar.mat-background-accent .mat-tab-label.cdk-program-focused:not(.mat-tab-disabled),.mat-tab-nav-bar.mat-background-accent .mat-tab-link.cdk-keyboard-focused:not(.mat-tab-disabled),.mat-tab-nav-bar.mat-background-accent .mat-tab-link.cdk-program-focused:not(.mat-tab-disabled){background-color:rgba(255,236,179,.3)}.mat-tab-group.mat-background-accent .mat-tab-header,.mat-tab-group.mat-background-accent .mat-tab-links,.mat-tab-nav-bar.mat-background-accent .mat-tab-header,.mat-tab-nav-bar.mat-background-accent .mat-tab-links{background-color:#ffc107}.mat-tab-group.mat-background-accent .mat-tab-label,.mat-tab-group.mat-background-accent .mat-tab-link,.mat-tab-nav-bar.mat-background-accent .mat-tab-label,.mat-tab-nav-bar.mat-background-accent .mat-tab-link{color:rgba(0,0,0,.87)}.mat-tab-group.mat-background-accent .mat-tab-label.mat-tab-disabled,.mat-tab-group.mat-background-accent .mat-tab-link.mat-tab-disabled,.mat-tab-nav-bar.mat-background-accent .mat-tab-label.mat-tab-disabled,.mat-tab-nav-bar.mat-background-accent .mat-tab-link.mat-tab-disabled{color:rgba(0,0,0,.4)}.mat-tab-group.mat-background-accent .mat-tab-header-pagination-chevron,.mat-tab-nav-bar.mat-background-accent .mat-tab-header-pagination-chevron{border-color:rgba(0,0,0,.87)}.mat-tab-group.mat-background-accent .mat-tab-header-pagination-disabled .mat-tab-header-pagination-chevron,.mat-tab-nav-bar.mat-background-accent .mat-tab-header-pagination-disabled .mat-tab-header-pagination-chevron{border-color:rgba(0,0,0,.4)}.mat-tab-group.mat-background-accent .mat-ripple-element,.mat-tab-nav-bar.mat-background-accent .mat-ripple-element{background-color:rgba(0,0,0,.12)}.mat-tab-group.mat-background-warn .mat-tab-label.cdk-keyboard-focused:not(.mat-tab-disabled),.mat-tab-group.mat-background-warn .mat-tab-label.cdk-program-focused:not(.mat-tab-disabled),.mat-tab-group.mat-background-warn .mat-tab-link.cdk-keyboard-focused:not(.mat-tab-disabled),.mat-tab-group.mat-background-warn .mat-tab-link.cdk-program-focused:not(.mat-tab-disabled),.mat-tab-nav-bar.mat-background-warn .mat-tab-label.cdk-keyboard-focused:not(.mat-tab-disabled),.mat-tab-nav-bar.mat-background-warn .mat-tab-label.cdk-program-focused:not(.mat-tab-disabled),.mat-tab-nav-bar.mat-background-warn .mat-tab-link.cdk-keyboard-focused:not(.mat-tab-disabled),.mat-tab-nav-bar.mat-background-warn .mat-tab-link.cdk-program-focused:not(.mat-tab-disabled){background-color:rgba(255,204,188,.3)}.mat-tab-group.mat-background-warn .mat-tab-header,.mat-tab-group.mat-background-warn .mat-tab-links,.mat-tab-nav-bar.mat-background-warn .mat-tab-header,.mat-tab-nav-bar.mat-background-warn .mat-tab-links{background-color:#ff5722}.mat-tab-group.mat-background-warn .mat-tab-label,.mat-tab-group.mat-background-warn .mat-tab-link,.mat-tab-nav-bar.mat-background-warn .mat-tab-label,.mat-tab-nav-bar.mat-background-warn .mat-tab-link{color:#fff}.mat-tab-group.mat-background-warn .mat-tab-label.mat-tab-disabled,.mat-tab-group.mat-background-warn .mat-tab-link.mat-tab-disabled,.mat-tab-nav-bar.mat-background-warn .mat-tab-label.mat-tab-disabled,.mat-tab-nav-bar.mat-background-warn .mat-tab-link.mat-tab-disabled{color:rgba(255,255,255,.4)}.mat-tab-group.mat-background-warn .mat-tab-header-pagination-chevron,.mat-tab-nav-bar.mat-background-warn .mat-tab-header-pagination-chevron{border-color:#fff}.mat-tab-group.mat-background-warn .mat-tab-header-pagination-disabled .mat-tab-header-pagination-chevron,.mat-tab-nav-bar.mat-background-warn .mat-tab-header-pagination-disabled .mat-tab-header-pagination-chevron{border-color:rgba(255,255,255,.4)}.mat-tab-group.mat-background-warn .mat-ripple-element,.mat-tab-nav-bar.mat-background-warn .mat-ripple-element{background-color:rgba(255,255,255,.12)}.mat-toolbar{background:#f5f5f5;color:rgba(0,0,0,.87)}.mat-toolbar.mat-primary{background:#4caf50;color:rgba(0,0,0,.87)}.mat-toolbar.mat-accent{background:#ffc107;color:rgba(0,0,0,.87)}.mat-toolbar.mat-warn{background:#ff5722;color:#fff}.mat-toolbar .mat-focused .mat-form-field-ripple,.mat-toolbar .mat-form-field-ripple,.mat-toolbar .mat-form-field-underline{background-color:currentColor}.mat-toolbar .mat-focused .mat-form-field-label,.mat-toolbar .mat-form-field-label,.mat-toolbar .mat-form-field.mat-focused .mat-select-arrow,.mat-toolbar .mat-select-arrow,.mat-toolbar .mat-select-value{color:inherit}.mat-toolbar .mat-input-element{caret-color:currentColor}.mat-tooltip{background:rgba(97,97,97,.9)}.mat-tree{font-family:Roboto,"Helvetica Neue",sans-serif;background:#fff}.mat-nested-tree-node,.mat-tree-node{font-weight:400;font-size:14px;color:rgba(0,0,0,.87)}.mat-snack-bar-container{color:rgba(255,255,255,.7);background:#323232;box-shadow:0 3px 5px -1px rgba(0,0,0,.2),0 6px 10px 0 rgba(0,0,0,.14),0 1px 18px 0 rgba(0,0,0,.12)}.mat-simple-snackbar-action{color:#ffc107}.green-snackbar{background-color:green}.red-snackbar{background-color:#8b0000} \ No newline at end of file diff --git a/src/app/app-costants.ts b/src/app/app-costants.ts index f499fb4..1e018d9 100644 --- a/src/app/app-costants.ts +++ b/src/app/app-costants.ts @@ -7,6 +7,8 @@ export class AppCostants { public static readonly ripetiPasswordFormField = 'ripetiPassword'; public static readonly usernameFormField = 'username'; + public static readonly unselectablePointId = 'unselectable'; + constructor () { } diff --git a/src/app/home/map/map.component.ts b/src/app/home/map/map.component.ts index a08f4d4..d8fc5fa 100644 --- a/src/app/home/map/map.component.ts +++ b/src/app/home/map/map.component.ts @@ -27,6 +27,8 @@ import { MapService } from 'src/app/services/map.service'; import { Message } from '@angular/compiler/src/i18n/i18n_ast'; import { ReadOptions } from 'src/app/home/map/readoptions'; import { environment } from 'src/environments/environment'; +import { SearchComponent } from './search/search.component'; +import { AppCostants } from 'src/app/app-costants'; @Component({ @@ -74,7 +76,7 @@ export class MapComponent implements OnInit { ngOnInit() { // definisco i layers - this.beVectSource = new VectorSource({format: this.geoJsonFormat}); + this.beVectSource = new VectorSource({ format: this.geoJsonFormat }); this.feVectorLayer = new VectorLayer({ source: this.vectSource, style: this.markerStyle, renderBuffer: 200 }); this.beVectorLayer = new VectorLayer({ source: this.beVectSource, style: this.markerStyle }); this.feImageLayer = new ImageLayer({ @@ -106,7 +108,9 @@ export class MapComponent implements OnInit { }); this.addEventsControlToMap(); this.addButtonOrotophoto(); - this.getBePoints(); + this.addButtonRicerca(); + this.addButtonExitSearch(); + this.getBeUserPoints(); } @@ -118,19 +122,21 @@ export class MapComponent implements OnInit { this.map.on('click', (e: MapBrowserEvent) => { this.map.forEachFeatureAtPixel(e.pixel, (feature: Feature) => { console.log(feature); - this.mapService.getLocationById(feature.getId() as number).subscribe( - (data: VgiPoint) => { - if (!(data instanceof Message)) { - const dialogConf: MatDialogConfig = this.getDialogConfig(e.pixel, 'Modifica posizione', data, false); - const dialogRef: MatDialogRef = this.dialogService.openDialog(AddpointComponent, dialogConf); - const pointSubscription = dialogRef.componentInstance.pointEvent.subscribe( - () => { - this.getBePoints(); - pointSubscription.unsubscribe(); - }); - } - }, - ); + if (! feature.getId().toString().startsWith(AppCostants.unselectablePointId)) { + this.mapService.getLocationById(feature.getId() as number).subscribe( + (data: VgiPoint) => { + if (!(data instanceof Message)) { + const dialogConf: MatDialogConfig = this.getDialogConfig(e.pixel, 'Modifica posizione', data, false); + const dialogRef: MatDialogRef = this.dialogService.openDialog(AddpointComponent, dialogConf); + const pointSubscription = dialogRef.componentInstance.pointEvent.subscribe( + () => { + this.getBeUserPoints(); + pointSubscription.unsubscribe(); + }); + } + }, + ); + } } ); } @@ -150,30 +156,49 @@ export class MapComponent implements OnInit { const dialogConfig: MatDialogConfig = this.getDialogConfig(pixels, 'Salva posizione', pointVgi, true); const dialogRef: MatDialogRef = this.dialogService.openDialog(AddpointComponent, dialogConfig); const pointSubscription = dialogRef.componentInstance.pointEvent.subscribe(() => { - this.getBePoints(); + this.getBeUserPoints(); pointSubscription.unsubscribe(); } ); }); } - getBePoints() { + getBeUserPoints() { this.removeAllMarkers(); this.beVectSource.clear(); this.mapService.getUserLocations().subscribe( (data: VgiPoint[]) => { if (data instanceof Array) { + const features: Feature [] = []; for (const point of data as VgiPoint[]) { const feature: Feature = this.geoJsonFormat.readFeature(point.location, new ReadOptions(this.map)); feature.setStyle(this.getStyle(point.legenda.colore)); feature.setId(point.id); - this.beVectSource.addFeature(feature); + features.push(feature); } + this.beVectSource.addFeatures(features); } }, ); } + getSearchedPoints() { + this.removeAllMarkers(); + this.beVectSource.clear(); + const points: VgiPoint [] = this.mapService.points; + const features: Feature [] = []; + for (const point of points as VgiPoint []) { + const feature: Feature = this.geoJsonFormat.readFeature(point.location, new ReadOptions(this.map)); + feature.setStyle(this.getStyle(point.legenda.colore)); + feature.setId(AppCostants.unselectablePointId + point.id); + features.push(feature); + } + console.log(features); + console.log(this.beVectSource.getFeatures()); + this.beVectSource.addFeatures(features); + console.log(this.beVectSource.getFeatures()); + } + getPointById(id: number | string): VgiPoint | void { id = id as number; this.mapService.getLocationById(id).subscribe( @@ -187,10 +212,10 @@ export class MapComponent implements OnInit { fill: new OlFill({ color: color, }), - radius: 5, + radius: 3.5, stroke: new OlStroke({ color: color, - width: 3, + width: 3.5, }), })) }); @@ -210,6 +235,54 @@ export class MapComponent implements OnInit { this.map.addControl(control); } + + addButtonRicerca() { + const search: Element = document.createElement('button'); + search.innerHTML = 'R'; + // search.setAttribute('style', 'top: 60px; left: .5em;'); + search.addEventListener('click', () => this.openSearchModal()); + const divEl: Element = document.createElement('div'); + divEl.setAttribute('style', 'top: 97px; left: .5em;'); + divEl.className = 'ol-control ol-unselectable'; + divEl.appendChild(search); + const control: OlControl = new OlControl({ + element: divEl, + }); + this.map.addControl(control); + } + + addButtonExitSearch() { + const exit: Element = document.createElement('button'); + exit.innerHTML = 'E'; + // search.setAttribute('style', 'top: 60px; left: .5em;'); + exit.addEventListener('click', () => this.getBeUserPoints()); + const divEl: Element = document.createElement('div'); + divEl.setAttribute('style', 'top: 129px; left: .5em;'); + divEl.className = 'ol-control ol-unselectable'; + divEl.appendChild(exit); + const control: OlControl = new OlControl({ + element: divEl, + }); + this.map.addControl(control); + } + + openSearchModal() { + const dialogConfig: MatDialogConfig = new MatDialogConfig(); + dialogConfig.autoFocus = true; + dialogConfig.position = { + top: '', + bottom: '', + left: '', + right: '', + }; + const dialogRef: MatDialogRef = this.dialogService.openDialog(SearchComponent, dialogConfig); + const searchSubscription = dialogRef.componentInstance.searchCompleted.subscribe(() => { + this.getSearchedPoints(); + searchSubscription.unsubscribe(); + } + ); + } + getPointFromLonLat(lonlat: string[]): OlPoint { const longitude = parseFloat(lonlat[0]); const latitude = parseFloat(lonlat[1]); diff --git a/src/app/home/map/map.module.ts b/src/app/home/map/map.module.ts index c20d276..1b55f0b 100644 --- a/src/app/home/map/map.module.ts +++ b/src/app/home/map/map.module.ts @@ -5,11 +5,13 @@ import { MapComponent } from './map.component'; import { MaterialModule } from 'src/app/material.module'; import { ReactiveFormsModule } from '@angular/forms'; import { MessageSharedModule } from 'src/app/message/message-shared.module'; +import { SearchComponent } from './search/search.component'; @NgModule({ declarations: [ MapComponent, - AddpointComponent + AddpointComponent, + SearchComponent ], imports: [ CommonModule, @@ -19,6 +21,7 @@ import { MessageSharedModule } from 'src/app/message/message-shared.module'; ], entryComponents: [ AddpointComponent, + SearchComponent ], }) export class MapModule { } diff --git a/src/app/home/map/search/search.component.css b/src/app/home/map/search/search.component.css new file mode 100644 index 0000000..c7aa05b --- /dev/null +++ b/src/app/home/map/search/search.component.css @@ -0,0 +1,21 @@ +.point-form { + width: 100%; + height: 100%; +} + +.modal-name { + font-family: 'Gill Sans', 'Gill Sans MT', Calibri, 'Trebuchet MS', sans-serif; + font-size: 1.5rem; + letter-spacing: 1px; + color: darkRed; +} + +.search-form-container { + text-align: center; + + display: flex; + justify-content: flex-start; + flex-direction: column; + width: 400px; + height: 400px; +} \ No newline at end of file diff --git a/src/app/home/map/search/search.component.html b/src/app/home/map/search/search.component.html new file mode 100644 index 0000000..1263b08 --- /dev/null +++ b/src/app/home/map/search/search.component.html @@ -0,0 +1,31 @@ +
+ + +
+
+ +
+ + + +
+
+ + + +
+
+ + + + {{l.codice}} + + + +
+
+
+ +
+
+
diff --git a/src/app/home/map/search/search.component.spec.ts b/src/app/home/map/search/search.component.spec.ts new file mode 100644 index 0000000..4372919 --- /dev/null +++ b/src/app/home/map/search/search.component.spec.ts @@ -0,0 +1,25 @@ +import { async, ComponentFixture, TestBed } from '@angular/core/testing'; + +import { SearchComponent } from './search.component'; + +describe('SearchComponent', () => { + let component: SearchComponent; + let fixture: ComponentFixture; + + beforeEach(async(() => { + TestBed.configureTestingModule({ + declarations: [ SearchComponent ] + }) + .compileComponents(); + })); + + beforeEach(() => { + fixture = TestBed.createComponent(SearchComponent); + component = fixture.componentInstance; + fixture.detectChanges(); + }); + + it('should create', () => { + expect(component).toBeTruthy(); + }); +}); diff --git a/src/app/home/map/search/search.component.ts b/src/app/home/map/search/search.component.ts new file mode 100644 index 0000000..3dbe97f --- /dev/null +++ b/src/app/home/map/search/search.component.ts @@ -0,0 +1,68 @@ +import { Component, OnInit, Output, EventEmitter } from '@angular/core'; +import { Legenda } from 'src/app/model/legenda'; +import { MapService } from 'src/app/services/map.service'; +import { LegendaService } from 'src/app/services/legenda.service'; +import { VgiPoint } from 'src/app/model/point'; +import { FormGroup, FormBuilder } from '@angular/forms'; +import { Search } from 'src/app/model/search'; +import { ModalService } from 'src/app/services/modal-popups.service'; +import { MatDialogRef } from '@angular/material'; + +@Component({ + selector: 'app-search', + templateUrl: './search.component.html', + styleUrls: ['./search.component.css'] +}) +export class SearchComponent implements OnInit { + + legende: Legenda []; + + points: VgiPoint []; + + formSearch: FormGroup; + + @Output() + searchCompleted: EventEmitter = new EventEmitter(); + + constructor(private fb: FormBuilder, private modalService: ModalService, + private dialogRef: MatDialogRef, + private mapService: MapService, private legendaService: LegendaService) { } + + ngOnInit() { + this.createFormGroup(); + this.legendaService.getLegende().subscribe( + (data: Legenda[]) => { + this.legende = data; + }, + (error) => { + console.log(error); + } + ); + } + + search () { + this.modalService.save(this.dialogRef, this.formSearch); + this.dialogRef.afterClosed().subscribe( + (search: Search) => { + this.mapService.searchLocations(search.annoDa, search.annoA, search.idLegenda).subscribe( + (points: VgiPoint []) => { + this.mapService.points = points; + this.searchCompleted.emit(); + } + ); + } + ); + + } + + createFormGroup () { + this.formSearch = this.fb.group( + { + annoDa: [''], + annoA: [''], + idLegenda: [''], + } + ); + } + +} diff --git a/src/app/model/search.ts b/src/app/model/search.ts new file mode 100644 index 0000000..4b80f58 --- /dev/null +++ b/src/app/model/search.ts @@ -0,0 +1,17 @@ +export class Search { + annoDa: number; + annoA: number; + idLegenda: number; + + constructor (annoDa?: number, annoA?: number, idLegenda?: number) { + if (annoDa !== null) { + this.annoDa = annoDa; + } + if (annoA !== null) { + this.annoA = annoA; + } + if (idLegenda !== null) { + this.idLegenda = idLegenda; + } + } +} diff --git a/src/app/services/map.service.ts b/src/app/services/map.service.ts index f1735ff..c50ff34 100644 --- a/src/app/services/map.service.ts +++ b/src/app/services/map.service.ts @@ -1,20 +1,8 @@ import { Injectable} from '@angular/core'; -import Map from 'ol/map'; -import OSM from 'ol/source/osm'; -import TileLayer from 'ol/layer/Tile'; -import VectorLayer from 'ol/layer/Vector'; -import VectorSource from 'ol/source/Vector'; -import OlView from 'ol/View'; -import OlCircle from 'ol/style/Circle'; -import OlFill from 'ol/style/Fill'; -import OlStroke from 'ol/style/Stroke'; -import Feature from 'ol/Feature'; -import Select from 'ol/interaction/select'; import { VgiPoint } from '../model/point'; -import { HttpClient, HttpHeaders } from '@angular/common/http'; +import { HttpClient, HttpHeaders, HttpParams } from '@angular/common/http'; import { Esito } from '../model/esito'; import { Observable } from 'rxjs'; -import Style from 'ol/style/style'; import { LegendaService } from './legenda.service'; import { environment } from 'src/environments/environment'; @@ -24,23 +12,12 @@ import { environment } from 'src/environments/environment'; providedIn: 'root' }) export class MapService { -private map: Map; -private osmSource: OSM; -private beVectSource: VectorSource; -private vectSource: VectorSource; -private view: OlView; -private layers: [TileLayer, VectorLayer, VectorLayer]; -private marker: Feature; -private markers: []; -private beVectorLayer: VectorLayer; -private feVectorLayer: VectorLayer; -private selectInteraction: Select; - -private selectedFeature: any; endpoint = environment.endpoint; +points: VgiPoint []; + httpOptions = { headers: new HttpHeaders({ 'Content-Type': 'application/json' @@ -63,6 +40,15 @@ getUserLocations(): Observable { return this.http.get(this.endpoint + '/location' + '/user'); } +searchLocations(annoDa: number, annoA: number, idLegenda: number): Observable { + const params = { + 'annoDa': annoDa !== null && typeof annoDa !== 'undefined' ? annoDa.toString() : '', + 'annoA': annoA !== null && typeof annoA !== 'undefined' ? annoA.toString() : '', + 'idLegenda': idLegenda !== null && typeof idLegenda !== 'undefined' ? idLegenda.toString() : '' + }; + return this.http.get(this.endpoint + '/location' + '/search', {params}); +} + getLocationById(idLocation: number): Observable { return this.http.get(this.endpoint + '/location/' + idLocation); } @@ -75,23 +61,4 @@ deleteLocationById(idLocation: number): Observable { return this.http.delete(this.endpoint + '/location/' + idLocation); } - - - - -getMarkerStyle(color: string): Style { - return new Style({ - image : new OlCircle(({ - fill: new OlFill({ - color: color, - }), - radius: 5, - stroke: new OlStroke({ - color: color, - width: 3, - }), - })) - }); -} - }