From fa96861f3c2ee04928aaa78aebf9ae990f1b256c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?L=C3=A1szl=C3=B3=20Monda?= Date: Sat, 24 Aug 2019 16:20:35 +0200 Subject: [PATCH] Updates --- 3rdpartylicenses.txt | 1802 ++++++++++++----- agent-icon.122cd53c6edcd2643565.png | Bin 0 -> 2649 bytes agent-logo-with-text.30ef7f1140d395ca9615.svg | 41 + assets/compiled_sprite.svg | 975 +-------- assets/images/agent-app-icon.png | Bin 3757 -> 23235 bytes index.html | 24 +- inline.318b50c57b4eba3d437b.bundle.js | 1 - main.3061a0f94f0e36549a21.bundle.js | 1 - main.93f613895be1c30ea16b.js | 1 + polyfills-es5.f6e4f7f783ff74a1064c.js | 1 + polyfills.0036819a11225d49d2b0.js | 1 + polyfills.0e6c1c54467440c50b13.bundle.js | 1 - runtime.ee0aae13fb762b150814.js | 1 + scripts.65ec5e3325432370ac78.bundle.js | 1 - scripts.e2ebf74e88859d479171.js | 1 + styles.60f43bbb0ffc32696d75.bundle.css | 8 - styles.6da59c190fce1073379f.css | 8 + uhk-css.ca2e7c84772ed4b63e99.svg | 1 + 18 files changed, 1385 insertions(+), 1483 deletions(-) create mode 100644 agent-icon.122cd53c6edcd2643565.png create mode 100644 agent-logo-with-text.30ef7f1140d395ca9615.svg delete mode 100644 inline.318b50c57b4eba3d437b.bundle.js delete mode 100644 main.3061a0f94f0e36549a21.bundle.js create mode 100644 main.93f613895be1c30ea16b.js create mode 100644 polyfills-es5.f6e4f7f783ff74a1064c.js create mode 100644 polyfills.0036819a11225d49d2b0.js delete mode 100644 polyfills.0e6c1c54467440c50b13.bundle.js create mode 100644 runtime.ee0aae13fb762b150814.js delete mode 100644 scripts.65ec5e3325432370ac78.bundle.js create mode 100644 scripts.e2ebf74e88859d479171.js delete mode 100644 styles.60f43bbb0ffc32696d75.bundle.css create mode 100644 styles.6da59c190fce1073379f.css create mode 100644 uhk-css.ca2e7c84772ed4b63e99.svg diff --git a/3rdpartylicenses.txt b/3rdpartylicenses.txt index 2609c49b..42272974 100644 --- a/3rdpartylicenses.txt +++ b/3rdpartylicenses.txt @@ -1,235 +1,4 @@ -@ngrx/store@4.0.3 -MIT -The MIT License (MIT) - -Copyright (c) 2017 Brandon Roberts, Mike Ryan, Victor Savkin, Rob Wormald - -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/core@5.2.9 -MIT -MIT - -@angular/router@5.2.9 -MIT -MIT - -@ngrx/effects@4.0.5 -MIT -The MIT License (MIT) - -Copyright (c) 2017 Brandon Roberts, Mike Ryan, Victor Savkin, Rob Wormald - -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. - -@types/file-saver@0.0.1 -MIT -MIT License - - Copyright (c) Microsoft Corporation. All rights reserved. - - 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 - -reselect@3.0.1 -MIT -The MIT License (MIT) - -Copyright (c) 2015-2016 Reselect Contributors - -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. - -@ngrx/router-store@4.0.4 -MIT -The MIT License (MIT) - -Copyright (c) 2017 Brandon Roberts, Mike Ryan, Victor Savkin, Rob Wormald - -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. - -ngrx-store-freeze@0.1.9 -MIT -The MIT License (MIT) - -Copyright (c) 2016 Codeware.io - -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/platform-browser@5.2.9 -MIT -MIT - -@ngrx/store-devtools@4.0.0 -MIT -The MIT License (MIT) - -Copyright (c) 2017 Brandon Roberts, Mike Ryan, Victor Savkin, Rob Wormald - -Permission is hereby granted, free of charge, to any person obtaining a copy -of this software and associated documentation files (the "Software"), to deal -in the Software without restriction, including without limitation the rights -to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -copies of the Software, and to permit persons to whom the Software is -furnished to do so, subject to the following conditions: - -The above copyright notice and this permission notice shall be included in all -copies or substantial portions of the Software. - -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE -SOFTWARE. - -@angular/animations@5.2.9 -MIT -MIT - -angular-confirmation-popover@3.2.0 -MIT -The MIT License (MIT) - -Copyright (c) 2016 Matt Lewis - -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. - -cache-loader@1.2.2 -MIT -Copyright JS Foundation and other contributors - -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-devkit/build-optimizer@0.3.2 +@angular-devkit/build-angular MIT The MIT License @@ -253,11 +22,42 @@ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. -ngx-window-token@0.0.4 + +@angular/animations +MIT + +@angular/common +MIT + +@angular/core +MIT + +@angular/forms +MIT + +@angular/platform-browser +MIT + +@angular/router +MIT + +@ngrx/effects +MIT + +@ngrx/router-store +MIT + +@ngrx/store +MIT + +@ngrx/store-devtools +MIT + +angular-confirmation-popover MIT The MIT License (MIT) -Copyright (c) 2016 Sam Lin +Copyright (c) 2016 Matt Lewis Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal @@ -277,113 +77,8 @@ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. -ngx-clipboard@10.0.0 -MIT -The MIT License (MIT) -Copyright (c) 2016 Sam Lin - -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. - -positioning@1.3.1 -MIT -MIT License - -Copyright (c) 2017 Matt Lewis - -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. - -ng2-nouislider@1.7.7 -MIT -MIT - -@angular/forms@5.2.9 -MIT -MIT - -@ert78gb/ngx-select-ex@3.7.2 -MIT -The MIT License (MIT) - -Copyright (c) 2017-2018 Konstantin Polyntsov - -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. - -ng2-dragula@1.5.0 -MIT -The MIT License (MIT) - -Copyright (c) 2015-2016 Dmitriy Shekhovtsov -Copyright (c) 2015-2016 Valor Software -Copyright (c) 2015-2016 Nathan Walker - -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-notifier@2.0.0 +angular-notifier MIT MIT License @@ -407,15 +102,8 @@ 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@5.2.9 -MIT -MIT -@angular/platform-browser-dynamic@5.2.9 -MIT -MIT - -atoa@1.0.0 +atoa MIT The MIT License (MIT) @@ -438,7 +126,8 @@ 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. -base64-js@1.2.3 + +base64-js MIT The MIT License (MIT) @@ -462,7 +151,85 @@ 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. -contra@1.9.4 + +bootstrap +MIT +The MIT License (MIT) + +Copyright (c) 2011-2019 Twitter, 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. + + +buffer +MIT +The MIT License (MIT) + +Copyright (c) Feross Aboukhadijeh, and other contributors. + +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. + + +classlist.js +Dedicated to the public domain +This is free and unencumbered software released into the public domain. + +Anyone is free to copy, modify, publish, use, compile, sell, or +distribute this software, either in source code form or as a compiled +binary, for any purpose, commercial or non-commercial, and by any +means. + +In jurisdictions that recognize copyright laws, the author or authors +of this software dedicate any and all copyright interest in the +software to the public domain. We make this dedication for the benefit +of the public at large and to the detriment of our heirs and +successors. We intend this dedication to be an overt act of +relinquishment in perpetuity of all present and future rights to this +software under copyright law. + +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 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. + +For more information, please refer to + +contra MIT The MIT License (MIT) @@ -485,7 +252,31 @@ 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. -crossvent@1.5.4 + +core-js +MIT +Copyright (c) 2014-2019 Denis Pushkarev + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in +all copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN +THE SOFTWARE. + + +crossvent MIT The MIT License (MIT) @@ -508,11 +299,21 @@ 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. -custom-event@1.0.0 -MIT + +custom-event MIT -dragula@3.7.2 +deep-freeze-strict +public domain +This software is released to the public domain. + +It is based in part on the deepFreeze function from: +https://developer.mozilla.org/en-US/docs/JavaScript/Reference/Global_Objects/Object/freeze + +https://developer.mozilla.org/en-US/docs/Project:Copyrights + + +dragula MIT The MIT License (MIT) @@ -535,7 +336,8 @@ 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. -escape-string-regexp@1.0.5 + +escape-string-regexp MIT The MIT License (MIT) @@ -559,7 +361,8 @@ 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. -file-saver@1.3.3 + +file-saver MIT The MIT License @@ -573,7 +376,8 @@ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLI [1]: http://eligrey.com -ieee754@1.1.11 + +ieee754 BSD-3-Clause Copyright (c) 2008, Fair Oaks Labs, Inc. All rights reserved. @@ -604,11 +408,32 @@ CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. -isarray@1.0.0 -MIT -MIT -lodash@4.17.5 +jquery +MIT +Copyright JS Foundation and other contributors, https://js.foundation/ + +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. + + +lodash MIT Copyright JS Foundation and other contributors @@ -658,57 +483,366 @@ maintained libraries used by this software which have their own licenses; we recommend you read them, as their terms may differ from the terms above. -node-libs-browser@2.1.0 + +ng2-dragula MIT -(The MIT License) -Copyright (c) 2012 Tobias Koppers - -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. - -process@0.11.10 +ng2-nouislider MIT -(The MIT License) +MIT License -Copyright (c) 2013 Roman Shtylman +Copyright (c) 2017-2019 Tomasz Bak https://www.tomaszbak.com/ -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: +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 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. +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. -ticky@1.0.1 + +ngrx-store-freeze +MIT +The MIT License (MIT) + +Copyright (c) 2017 Brandon Roberts + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +SOFTWARE. + +ngx-clipboard +MIT + +ngx-select-ex +MIT +The MIT License (MIT) + +Copyright (c) 2017-2018 Konstantin Polyntsov + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +SOFTWARE. + + +ngx-window-token +MIT + +nouislider +MIT +MIT License + +Copyright (c) 2018 Léon Gersen + +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. + + +positioning +MIT +MIT License + +Copyright (c) 2017 Matt Lewis + +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. + + + +semver +ISC +The ISC License + +Copyright (c) Isaac Z. Schlueter and Contributors + +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. + + +ticky MIT The MIT License (MIT) @@ -731,7 +865,773 @@ 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. -webpack@3.11.0 + +ts-keycode-enum +MIT +MIT License + +Copyright (c) 2017 Nathan Friend + +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. + + +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 + + +uhk-agent +GPL-3.0 + GNU GENERAL PUBLIC LICENSE + Version 3, 29 June 2007 + + Copyright (C) 2007 Free Software Foundation, Inc. + Everyone is permitted to copy and distribute verbatim copies + of this license document, but changing it is not allowed. + + Preamble + + The GNU General Public License is a free, copyleft license for +software and other kinds of works. + + The licenses for most software and other practical works are designed +to take away your freedom to share and change the works. By contrast, +the GNU General Public License is intended to guarantee your freedom to +share and change all versions of a program--to make sure it remains free +software for all its users. We, the Free Software Foundation, use the +GNU General Public License for most of our software; it applies also to +any other work released this way by its authors. You can apply it to +your programs, too. + + When we speak of free software, we are referring to freedom, not +price. Our General Public Licenses are designed to make sure that you +have the freedom to distribute copies of free software (and charge for +them if you wish), that you receive source code or can get it if you +want it, that you can change the software or use pieces of it in new +free programs, and that you know you can do these things. + + To protect your rights, we need to prevent others from denying you +these rights or asking you to surrender the rights. Therefore, you have +certain responsibilities if you distribute copies of the software, or if +you modify it: responsibilities to respect the freedom of others. + + For example, if you distribute copies of such a program, whether +gratis or for a fee, you must pass on to the recipients the same +freedoms that you received. You must make sure that they, too, receive +or can get the source code. And you must show them these terms so they +know their rights. + + Developers that use the GNU GPL protect your rights with two steps: +(1) assert copyright on the software, and (2) offer you this License +giving you legal permission to copy, distribute and/or modify it. + + For the developers' and authors' protection, the GPL clearly explains +that there is no warranty for this free software. For both users' and +authors' sake, the GPL requires that modified versions be marked as +changed, so that their problems will not be attributed erroneously to +authors of previous versions. + + Some devices are designed to deny users access to install or run +modified versions of the software inside them, although the manufacturer +can do so. This is fundamentally incompatible with the aim of +protecting users' freedom to change the software. The systematic +pattern of such abuse occurs in the area of products for individuals to +use, which is precisely where it is most unacceptable. Therefore, we +have designed this version of the GPL to prohibit the practice for those +products. If such problems arise substantially in other domains, we +stand ready to extend this provision to those domains in future versions +of the GPL, as needed to protect the freedom of users. + + Finally, every program is threatened constantly by software patents. +States should not allow patents to restrict development and use of +software on general-purpose computers, but in those that do, we wish to +avoid the special danger that patents applied to a free program could +make it effectively proprietary. To prevent this, the GPL assures that +patents cannot be used to render the program non-free. + + The precise terms and conditions for copying, distribution and +modification follow. + + TERMS AND CONDITIONS + + 0. Definitions. + + "This License" refers to version 3 of the GNU General Public License. + + "Copyright" also means copyright-like laws that apply to other kinds of +works, such as semiconductor masks. + + "The Program" refers to any copyrightable work licensed under this +License. Each licensee is addressed as "you". "Licensees" and +"recipients" may be individuals or organizations. + + To "modify" a work means to copy from or adapt all or part of the work +in a fashion requiring copyright permission, other than the making of an +exact copy. The resulting work is called a "modified version" of the +earlier work or a work "based on" the earlier work. + + A "covered work" means either the unmodified Program or a work based +on the Program. + + To "propagate" a work means to do anything with it that, without +permission, would make you directly or secondarily liable for +infringement under applicable copyright law, except executing it on a +computer or modifying a private copy. Propagation includes copying, +distribution (with or without modification), making available to the +public, and in some countries other activities as well. + + To "convey" a work means any kind of propagation that enables other +parties to make or receive copies. Mere interaction with a user through +a computer network, with no transfer of a copy, is not conveying. + + An interactive user interface displays "Appropriate Legal Notices" +to the extent that it includes a convenient and prominently visible +feature that (1) displays an appropriate copyright notice, and (2) +tells the user that there is no warranty for the work (except to the +extent that warranties are provided), that licensees may convey the +work under this License, and how to view a copy of this License. If +the interface presents a list of user commands or options, such as a +menu, a prominent item in the list meets this criterion. + + 1. Source Code. + + The "source code" for a work means the preferred form of the work +for making modifications to it. "Object code" means any non-source +form of a work. + + A "Standard Interface" means an interface that either is an official +standard defined by a recognized standards body, or, in the case of +interfaces specified for a particular programming language, one that +is widely used among developers working in that language. + + The "System Libraries" of an executable work include anything, other +than the work as a whole, that (a) is included in the normal form of +packaging a Major Component, but which is not part of that Major +Component, and (b) serves only to enable use of the work with that +Major Component, or to implement a Standard Interface for which an +implementation is available to the public in source code form. A +"Major Component", in this context, means a major essential component +(kernel, window system, and so on) of the specific operating system +(if any) on which the executable work runs, or a compiler used to +produce the work, or an object code interpreter used to run it. + + The "Corresponding Source" for a work in object code form means all +the source code needed to generate, install, and (for an executable +work) run the object code and to modify the work, including scripts to +control those activities. However, it does not include the work's +System Libraries, or general-purpose tools or generally available free +programs which are used unmodified in performing those activities but +which are not part of the work. For example, Corresponding Source +includes interface definition files associated with source files for +the work, and the source code for shared libraries and dynamically +linked subprograms that the work is specifically designed to require, +such as by intimate data communication or control flow between those +subprograms and other parts of the work. + + The Corresponding Source need not include anything that users +can regenerate automatically from other parts of the Corresponding +Source. + + The Corresponding Source for a work in source code form is that +same work. + + 2. Basic Permissions. + + All rights granted under this License are granted for the term of +copyright on the Program, and are irrevocable provided the stated +conditions are met. This License explicitly affirms your unlimited +permission to run the unmodified Program. The output from running a +covered work is covered by this License only if the output, given its +content, constitutes a covered work. This License acknowledges your +rights of fair use or other equivalent, as provided by copyright law. + + You may make, run and propagate covered works that you do not +convey, without conditions so long as your license otherwise remains +in force. You may convey covered works to others for the sole purpose +of having them make modifications exclusively for you, or provide you +with facilities for running those works, provided that you comply with +the terms of this License in conveying all material for which you do +not control copyright. Those thus making or running the covered works +for you must do so exclusively on your behalf, under your direction +and control, on terms that prohibit them from making any copies of +your copyrighted material outside their relationship with you. + + Conveying under any other circumstances is permitted solely under +the conditions stated below. Sublicensing is not allowed; section 10 +makes it unnecessary. + + 3. Protecting Users' Legal Rights From Anti-Circumvention Law. + + No covered work shall be deemed part of an effective technological +measure under any applicable law fulfilling obligations under article +11 of the WIPO copyright treaty adopted on 20 December 1996, or +similar laws prohibiting or restricting circumvention of such +measures. + + When you convey a covered work, you waive any legal power to forbid +circumvention of technological measures to the extent such circumvention +is effected by exercising rights under this License with respect to +the covered work, and you disclaim any intention to limit operation or +modification of the work as a means of enforcing, against the work's +users, your or third parties' legal rights to forbid circumvention of +technological measures. + + 4. Conveying Verbatim Copies. + + You may convey verbatim copies of the Program's source code as you +receive it, in any medium, provided that you conspicuously and +appropriately publish on each copy an appropriate copyright notice; +keep intact all notices stating that this License and any +non-permissive terms added in accord with section 7 apply to the code; +keep intact all notices of the absence of any warranty; and give all +recipients a copy of this License along with the Program. + + You may charge any price or no price for each copy that you convey, +and you may offer support or warranty protection for a fee. + + 5. Conveying Modified Source Versions. + + You may convey a work based on the Program, or the modifications to +produce it from the Program, in the form of source code under the +terms of section 4, provided that you also meet all of these conditions: + + a) The work must carry prominent notices stating that you modified + it, and giving a relevant date. + + b) The work must carry prominent notices stating that it is + released under this License and any conditions added under section + 7. This requirement modifies the requirement in section 4 to + "keep intact all notices". + + c) You must license the entire work, as a whole, under this + License to anyone who comes into possession of a copy. This + License will therefore apply, along with any applicable section 7 + additional terms, to the whole of the work, and all its parts, + regardless of how they are packaged. This License gives no + permission to license the work in any other way, but it does not + invalidate such permission if you have separately received it. + + d) If the work has interactive user interfaces, each must display + Appropriate Legal Notices; however, if the Program has interactive + interfaces that do not display Appropriate Legal Notices, your + work need not make them do so. + + A compilation of a covered work with other separate and independent +works, which are not by their nature extensions of the covered work, +and which are not combined with it such as to form a larger program, +in or on a volume of a storage or distribution medium, is called an +"aggregate" if the compilation and its resulting copyright are not +used to limit the access or legal rights of the compilation's users +beyond what the individual works permit. Inclusion of a covered work +in an aggregate does not cause this License to apply to the other +parts of the aggregate. + + 6. Conveying Non-Source Forms. + + You may convey a covered work in object code form under the terms +of sections 4 and 5, provided that you also convey the +machine-readable Corresponding Source under the terms of this License, +in one of these ways: + + a) Convey the object code in, or embodied in, a physical product + (including a physical distribution medium), accompanied by the + Corresponding Source fixed on a durable physical medium + customarily used for software interchange. + + b) Convey the object code in, or embodied in, a physical product + (including a physical distribution medium), accompanied by a + written offer, valid for at least three years and valid for as + long as you offer spare parts or customer support for that product + model, to give anyone who possesses the object code either (1) a + copy of the Corresponding Source for all the software in the + product that is covered by this License, on a durable physical + medium customarily used for software interchange, for a price no + more than your reasonable cost of physically performing this + conveying of source, or (2) access to copy the + Corresponding Source from a network server at no charge. + + c) Convey individual copies of the object code with a copy of the + written offer to provide the Corresponding Source. This + alternative is allowed only occasionally and noncommercially, and + only if you received the object code with such an offer, in accord + with subsection 6b. + + d) Convey the object code by offering access from a designated + place (gratis or for a charge), and offer equivalent access to the + Corresponding Source in the same way through the same place at no + further charge. You need not require recipients to copy the + Corresponding Source along with the object code. If the place to + copy the object code is a network server, the Corresponding Source + may be on a different server (operated by you or a third party) + that supports equivalent copying facilities, provided you maintain + clear directions next to the object code saying where to find the + Corresponding Source. Regardless of what server hosts the + Corresponding Source, you remain obligated to ensure that it is + available for as long as needed to satisfy these requirements. + + e) Convey the object code using peer-to-peer transmission, provided + you inform other peers where the object code and Corresponding + Source of the work are being offered to the general public at no + charge under subsection 6d. + + A separable portion of the object code, whose source code is excluded +from the Corresponding Source as a System Library, need not be +included in conveying the object code work. + + A "User Product" is either (1) a "consumer product", which means any +tangible personal property which is normally used for personal, family, +or household purposes, or (2) anything designed or sold for incorporation +into a dwelling. In determining whether a product is a consumer product, +doubtful cases shall be resolved in favor of coverage. For a particular +product received by a particular user, "normally used" refers to a +typical or common use of that class of product, regardless of the status +of the particular user or of the way in which the particular user +actually uses, or expects or is expected to use, the product. A product +is a consumer product regardless of whether the product has substantial +commercial, industrial or non-consumer uses, unless such uses represent +the only significant mode of use of the product. + + "Installation Information" for a User Product means any methods, +procedures, authorization keys, or other information required to install +and execute modified versions of a covered work in that User Product from +a modified version of its Corresponding Source. The information must +suffice to ensure that the continued functioning of the modified object +code is in no case prevented or interfered with solely because +modification has been made. + + If you convey an object code work under this section in, or with, or +specifically for use in, a User Product, and the conveying occurs as +part of a transaction in which the right of possession and use of the +User Product is transferred to the recipient in perpetuity or for a +fixed term (regardless of how the transaction is characterized), the +Corresponding Source conveyed under this section must be accompanied +by the Installation Information. But this requirement does not apply +if neither you nor any third party retains the ability to install +modified object code on the User Product (for example, the work has +been installed in ROM). + + The requirement to provide Installation Information does not include a +requirement to continue to provide support service, warranty, or updates +for a work that has been modified or installed by the recipient, or for +the User Product in which it has been modified or installed. Access to a +network may be denied when the modification itself materially and +adversely affects the operation of the network or violates the rules and +protocols for communication across the network. + + Corresponding Source conveyed, and Installation Information provided, +in accord with this section must be in a format that is publicly +documented (and with an implementation available to the public in +source code form), and must require no special password or key for +unpacking, reading or copying. + + 7. Additional Terms. + + "Additional permissions" are terms that supplement the terms of this +License by making exceptions from one or more of its conditions. +Additional permissions that are applicable to the entire Program shall +be treated as though they were included in this License, to the extent +that they are valid under applicable law. If additional permissions +apply only to part of the Program, that part may be used separately +under those permissions, but the entire Program remains governed by +this License without regard to the additional permissions. + + When you convey a copy of a covered work, you may at your option +remove any additional permissions from that copy, or from any part of +it. (Additional permissions may be written to require their own +removal in certain cases when you modify the work.) You may place +additional permissions on material, added by you to a covered work, +for which you have or can give appropriate copyright permission. + + Notwithstanding any other provision of this License, for material you +add to a covered work, you may (if authorized by the copyright holders of +that material) supplement the terms of this License with terms: + + a) Disclaiming warranty or limiting liability differently from the + terms of sections 15 and 16 of this License; or + + b) Requiring preservation of specified reasonable legal notices or + author attributions in that material or in the Appropriate Legal + Notices displayed by works containing it; or + + c) Prohibiting misrepresentation of the origin of that material, or + requiring that modified versions of such material be marked in + reasonable ways as different from the original version; or + + d) Limiting the use for publicity purposes of names of licensors or + authors of the material; or + + e) Declining to grant rights under trademark law for use of some + trade names, trademarks, or service marks; or + + f) Requiring indemnification of licensors and authors of that + material by anyone who conveys the material (or modified versions of + it) with contractual assumptions of liability to the recipient, for + any liability that these contractual assumptions directly impose on + those licensors and authors. + + All other non-permissive additional terms are considered "further +restrictions" within the meaning of section 10. If the Program as you +received it, or any part of it, contains a notice stating that it is +governed by this License along with a term that is a further +restriction, you may remove that term. If a license document contains +a further restriction but permits relicensing or conveying under this +License, you may add to a covered work material governed by the terms +of that license document, provided that the further restriction does +not survive such relicensing or conveying. + + If you add terms to a covered work in accord with this section, you +must place, in the relevant source files, a statement of the +additional terms that apply to those files, or a notice indicating +where to find the applicable terms. + + Additional terms, permissive or non-permissive, may be stated in the +form of a separately written license, or stated as exceptions; +the above requirements apply either way. + + 8. Termination. + + You may not propagate or modify a covered work except as expressly +provided under this License. Any attempt otherwise to propagate or +modify it is void, and will automatically terminate your rights under +this License (including any patent licenses granted under the third +paragraph of section 11). + + However, if you cease all violation of this License, then your +license from a particular copyright holder is reinstated (a) +provisionally, unless and until the copyright holder explicitly and +finally terminates your license, and (b) permanently, if the copyright +holder fails to notify you of the violation by some reasonable means +prior to 60 days after the cessation. + + Moreover, your license from a particular copyright holder is +reinstated permanently if the copyright holder notifies you of the +violation by some reasonable means, this is the first time you have +received notice of violation of this License (for any work) from that +copyright holder, and you cure the violation prior to 30 days after +your receipt of the notice. + + Termination of your rights under this section does not terminate the +licenses of parties who have received copies or rights from you under +this License. If your rights have been terminated and not permanently +reinstated, you do not qualify to receive new licenses for the same +material under section 10. + + 9. Acceptance Not Required for Having Copies. + + You are not required to accept this License in order to receive or +run a copy of the Program. Ancillary propagation of a covered work +occurring solely as a consequence of using peer-to-peer transmission +to receive a copy likewise does not require acceptance. However, +nothing other than this License grants you permission to propagate or +modify any covered work. These actions infringe copyright if you do +not accept this License. Therefore, by modifying or propagating a +covered work, you indicate your acceptance of this License to do so. + + 10. Automatic Licensing of Downstream Recipients. + + Each time you convey a covered work, the recipient automatically +receives a license from the original licensors, to run, modify and +propagate that work, subject to this License. You are not responsible +for enforcing compliance by third parties with this License. + + An "entity transaction" is a transaction transferring control of an +organization, or substantially all assets of one, or subdividing an +organization, or merging organizations. If propagation of a covered +work results from an entity transaction, each party to that +transaction who receives a copy of the work also receives whatever +licenses to the work the party's predecessor in interest had or could +give under the previous paragraph, plus a right to possession of the +Corresponding Source of the work from the predecessor in interest, if +the predecessor has it or can get it with reasonable efforts. + + You may not impose any further restrictions on the exercise of the +rights granted or affirmed under this License. For example, you may +not impose a license fee, royalty, or other charge for exercise of +rights granted under this License, and you may not initiate litigation +(including a cross-claim or counterclaim in a lawsuit) alleging that +any patent claim is infringed by making, using, selling, offering for +sale, or importing the Program or any portion of it. + + 11. Patents. + + A "contributor" is a copyright holder who authorizes use under this +License of the Program or a work on which the Program is based. The +work thus licensed is called the contributor's "contributor version". + + A contributor's "essential patent claims" are all patent claims +owned or controlled by the contributor, whether already acquired or +hereafter acquired, that would be infringed by some manner, permitted +by this License, of making, using, or selling its contributor version, +but do not include claims that would be infringed only as a +consequence of further modification of the contributor version. For +purposes of this definition, "control" includes the right to grant +patent sublicenses in a manner consistent with the requirements of +this License. + + Each contributor grants you a non-exclusive, worldwide, royalty-free +patent license under the contributor's essential patent claims, to +make, use, sell, offer for sale, import and otherwise run, modify and +propagate the contents of its contributor version. + + In the following three paragraphs, a "patent license" is any express +agreement or commitment, however denominated, not to enforce a patent +(such as an express permission to practice a patent or covenant not to +sue for patent infringement). To "grant" such a patent license to a +party means to make such an agreement or commitment not to enforce a +patent against the party. + + If you convey a covered work, knowingly relying on a patent license, +and the Corresponding Source of the work is not available for anyone +to copy, free of charge and under the terms of this License, through a +publicly available network server or other readily accessible means, +then you must either (1) cause the Corresponding Source to be so +available, or (2) arrange to deprive yourself of the benefit of the +patent license for this particular work, or (3) arrange, in a manner +consistent with the requirements of this License, to extend the patent +license to downstream recipients. "Knowingly relying" means you have +actual knowledge that, but for the patent license, your conveying the +covered work in a country, or your recipient's use of the covered work +in a country, would infringe one or more identifiable patents in that +country that you have reason to believe are valid. + + If, pursuant to or in connection with a single transaction or +arrangement, you convey, or propagate by procuring conveyance of, a +covered work, and grant a patent license to some of the parties +receiving the covered work authorizing them to use, propagate, modify +or convey a specific copy of the covered work, then the patent license +you grant is automatically extended to all recipients of the covered +work and works based on it. + + A patent license is "discriminatory" if it does not include within +the scope of its coverage, prohibits the exercise of, or is +conditioned on the non-exercise of one or more of the rights that are +specifically granted under this License. You may not convey a covered +work if you are a party to an arrangement with a third party that is +in the business of distributing software, under which you make payment +to the third party based on the extent of your activity of conveying +the work, and under which the third party grants, to any of the +parties who would receive the covered work from you, a discriminatory +patent license (a) in connection with copies of the covered work +conveyed by you (or copies made from those copies), or (b) primarily +for and in connection with specific products or compilations that +contain the covered work, unless you entered into that arrangement, +or that patent license was granted, prior to 28 March 2007. + + Nothing in this License shall be construed as excluding or limiting +any implied license or other defenses to infringement that may +otherwise be available to you under applicable patent law. + + 12. No Surrender of Others' Freedom. + + If conditions are imposed on you (whether by court order, agreement or +otherwise) that contradict the conditions of this License, they do not +excuse you from the conditions of this License. If you cannot convey a +covered work so as to satisfy simultaneously your obligations under this +License and any other pertinent obligations, then as a consequence you may +not convey it at all. For example, if you agree to terms that obligate you +to collect a royalty for further conveying from those to whom you convey +the Program, the only way you could satisfy both those terms and this +License would be to refrain entirely from conveying the Program. + + 13. Use with the GNU Affero General Public License. + + Notwithstanding any other provision of this License, you have +permission to link or combine any covered work with a work licensed +under version 3 of the GNU Affero General Public License into a single +combined work, and to convey the resulting work. The terms of this +License will continue to apply to the part which is the covered work, +but the special requirements of the GNU Affero General Public License, +section 13, concerning interaction through a network will apply to the +combination as such. + + 14. Revised Versions of this License. + + The Free Software Foundation may publish revised and/or new versions of +the GNU General Public License from time to time. Such new versions will +be similar in spirit to the present version, but may differ in detail to +address new problems or concerns. + + Each version is given a distinguishing version number. If the +Program specifies that a certain numbered version of the GNU General +Public License "or any later version" applies to it, you have the +option of following the terms and conditions either of that numbered +version or of any later version published by the Free Software +Foundation. If the Program does not specify a version number of the +GNU General Public License, you may choose any version ever published +by the Free Software Foundation. + + If the Program specifies that a proxy can decide which future +versions of the GNU General Public License can be used, that proxy's +public statement of acceptance of a version permanently authorizes you +to choose that version for the Program. + + Later license versions may give you additional or different +permissions. However, no additional obligations are imposed on any +author or copyright holder as a result of your choosing to follow a +later version. + + 15. Disclaimer of Warranty. + + THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY +APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT +HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY +OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, +THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR +PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM +IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF +ALL NECESSARY SERVICING, REPAIR OR CORRECTION. + + 16. Limitation of Liability. + + IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING +WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS +THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY +GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE +USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF +DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD +PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS), +EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF +SUCH DAMAGES. + + 17. Interpretation of Sections 15 and 16. + + If the disclaimer of warranty and limitation of liability provided +above cannot be given local legal effect according to their terms, +reviewing courts shall apply local law that most closely approximates +an absolute waiver of all civil liability in connection with the +Program, unless a warranty or assumption of liability accompanies a +copy of the Program in return for a fee. + + END OF TERMS AND CONDITIONS + + How to Apply These Terms to Your New Programs + + If you develop a new program, and you want it to be of the greatest +possible use to the public, the best way to achieve this is to make it +free software which everyone can redistribute and change under these terms. + + To do so, attach the following notices to the program. It is safest +to attach them to the start of each source file to most effectively +state the exclusion of warranty; and each file should have at least +the "copyright" line and a pointer to where the full notice is found. + + + Copyright (C) + + This program is free software: you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation, either version 3 of the License, or + (at your option) any later version. + + This program is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + + You should have received a copy of the GNU General Public License + along with this program. If not, see . + +Also add information on how to contact you by electronic and paper mail. + + If the program does terminal interaction, make it output a short +notice like this when it starts in an interactive mode: + + Copyright (C) + This program comes with ABSOLUTELY NO WARRANTY; for details type `show w'. + This is free software, and you are welcome to redistribute it + under certain conditions; type `show c' for details. + +The hypothetical commands `show w' and `show c' should show the appropriate +parts of the General Public License. Of course, your program's commands +might be different; for a GUI interface, you would use an "about box". + + You should also get your employer (if you work as a programmer) or school, +if any, to sign a "copyright disclaimer" for the program, if necessary. +For more information on this, and how to apply and follow the GNU GPL, see +. + + The GNU General Public License does not permit incorporating your program +into proprietary programs. If your program is a subroutine library, you +may consider it more useful to permit linking proprietary applications with +the library. If this is what you want to do, use the GNU Lesser General +Public License instead of this License. But first, please read +. + + +uhk-common +GPL-3.0 + +webpack MIT Copyright JS Foundation and other contributors @@ -754,72 +1654,12 @@ CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. -core-js@2.5.5 -MIT -Copyright (c) 2014-2018 Denis Pushkarev -Permission is hereby granted, free of charge, to any person obtaining a copy -of this software and associated documentation files (the "Software"), to deal -in the Software without restriction, including without limitation the rights -to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -copies of the Software, and to permit persons to whom the Software is -furnished to do so, subject to the following conditions: - -The above copyright notice and this permission notice shall be included in -all copies or substantial portions of the Software. - -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN -THE SOFTWARE. - -jquery@3.2.1 -MIT -Copyright JS Foundation and other contributors, https://js.foundation/ - -This software consists of voluntary contributions made by many -individuals. For exact contribution history, see the revision history -available at https://github.com/jquery/jquery - -The following license applies to all parts of this software except as -documented below: - -==== - -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. - -==== - -All files located in the node_modules and external directories are -externally maintained libraries used by this software which have their -own licenses; we recommend you read them, as their terms may differ from -the terms above. - -zone.js@0.8.26 +zone.js MIT The MIT License -Copyright (c) 2016-2018 Google, Inc. +Copyright (c) 2010-2019 Google LLC. http://angular.io/license Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal @@ -838,31 +1678,3 @@ 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. - -spacing-bootstrap-3@1.0.0 -ISC -ISC - -bootstrap@3.3.7 -MIT -The MIT License (MIT) - -Copyright (c) 2011-2016 Twitter, 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. \ No newline at end of file diff --git a/agent-icon.122cd53c6edcd2643565.png b/agent-icon.122cd53c6edcd2643565.png new file mode 100644 index 0000000000000000000000000000000000000000..d6c6c94bd11695ae4b7659fc2ead274cb3db8578 GIT binary patch literal 2649 zcmbVOdpOhW8~@Ijg~phWvmw2`$ti6_wI=4&0+vE-Dc$*~CU-uJKH-@oU&?&rRr=YH<%xvtOkxepY)rSU<5!vX*R9K@MmFL8Cq zzXFADcRFj`jH`IVFgP11cafoV821VIEgPywrn3eR95^KFkdq#bM9cMC2~#kpdA+*)AGqdAnUky*_;=^JVBy zVQ^Ff3I(mz(Y-|R6?~=;7jLR|z-Ff4H{3|^-l0r^r_Z5?bEdq0;+Sg6ZH-PUmEyv4 zy!i{#UC8peEUbzL@@+dIZ;LH2!W-e8{>iZ)Mk?6blUH@F?-37DiTtjQxGpmmT4psq=GN_w6V=8BA8IhGvSwaBlH%xiJwXy2_K z!BU0Vd5dYzJiwwt5iNv4=D)+qGTBg>M?W=F3 z@~WXBV!ge+odf!PD7M3w3uJtf?+%N_lD4q0FvvJ;j9A==EC8>7zQ@$#64K3b*Ggh& z`<@LKt_a^YEC`0jez~_=p>PrULpZ%_EhQv1TsYCNfWySD8^$7rig88n-b-H2eDGlH zhK6L|u>X^z1MH19DC^=qv4@_qV267-IZ=(Rt*v{5J&MzDLG?S14AQ~bZZqAWFh;@J z&h8$+puDI99^)wd8M6lUx={SDR>x@(9dTPLFQI){o(s6R>K8HOjKoI5yl@6FD{TUah z8W{k!K#R-tIU)&v$pg6B+082yX}u7`UG>%k7-Ylg^rXczcBL7eF!(PNysu6#sZ*l{ z4OERBRi?9YqtLOXFJVfW2_iFoFa_q4f~bcEy{#W~_rG@@s93mN={-r++voG!C!|!F zhS$;%zF|+#<{74lNv$BCfYeRYYA2n3!y3NzN zl9G}mX>taSv-9%}15mHC-;~?F_#1#wmvs2NeSDbUpXYeAvtbM5nfbn)6ar@|S{aG_ z(o?)4B_;J}I(loeBj;3b{yTI*pwWe5R34+WD^Re7Uv@mGby=XfCvm z(CBPuteKjDG%k0Vdz?4`M_w3nVtq*(`Z^q5;@B-|HlMvfyicX-^qng?qEYRqtoa}- zOV#*E9u9}2xGF3-3z%!I=lTjDFb+*}YEl9jb)pt=<>kro&oVlNzDf=wBn9rwLd~^o zY}a(~L|)T4+y!&w%Jp9`1coZ8s8_+b0>LCL9?=AY!2~x-;nLDlayA#nKmYin#|AOS zvExsEl%Jo!$VUhdAKSJQG_o>`+1+4Dz^#%+l)Shk>33_1_+kAb>|MtOn_28eX(TK= zX}Qe`eaO=%GG02?%y*?{op5U-N2(#VKPH=d4-5_#e#Kg|US6(O1w&PItZt39Mem5) z+S0ase=SeccP)=q7mp;Ht3DyzxZ&kzyJ&GW2Fh~6AXNZc+Y_8=+RaMWU2a57QTfun zlvZ8Vs=<--13Q%;7CD??OZO-7ct=N)E3{A_B!)o=%j$&_P}4@YU%?(}Ra} zI$gcBNx3ATD@``vB(?6^#5~^sT8Ly`Tv%9WUu9{}I#NK^($c&xdfwW4h!zzYNjLUq zPE6=mmz5oz>AUzI>*ZDQ9U0rilP+iAgvAoFYs;i{1G|&ze$Z2;wE^EM3l%9$l6Gxv z?Yqd0CLW5~S|>&928H6K9vvOM9~cmjvaS1ObaZs4t-pu_^j6D4hmClW;g{11Z7#)PTxR;=! z(4^mT2jmz2?6v+g(}FBQ?yugN z&0|$9s}HS6z>{+S&Fu|#Kaa-mCFuuJ>pQzUW~Qde#TopaE4lLU)XVijlgTP(S-h35 ztxmABTeG34=arR)_{*1@HKzK}gl}U-NaM6`+DL1eBR|BcC z#d`7n8Taph{6=WrwSH#)RZ^c&5jOnX>am$Yv2nWPLT*kZsl2g~v>FHIj}cgti!Oeb zBC&t`%$fbB3g@a9Sy_k9_k$!4so`LO(Vy*<_{Qaq z4$Pax=^6`A(U+d|W$^rOdHw%fu(MN6!EQ<5#d^Ivof@q&u`bgel|W5sk8iKJ6+fY| z6O{X(X8{dA>5zxHDx~Dk0s^Z)r+TVk*N+k#ol}9fYQ4M4-nTY3HhdyTq{be}othDD zp{S9FWdREDW8kxG-#QGTi5=Av4fUCJ_V!Gnvs*^Z_h)Zu+Qn?Ie?7$dTsu&&U|cAR zx3!ICPso4gtVjq!Zllp?F`$>KoTcov=U{J7yvbM{7=hZ_a=SY-Z;~cR=3^0s51m$i z#Z4TscBRFZ8t1D=qp?)HRc7L*mVBrI*U+PnVU+tJA)@a0l3bs^c(F4xDA4B;G%+zj z>t!(7-b&^OlLndoHuSNSv$>Padv(k;ls{Vo3Z0Qv_hQzTX$cqHj@99W7M8F4Cw bRIl8;Wp6eYn`EfK9RmTJktMbg<9_QO@z3oX literal 0 HcmV?d00001 diff --git a/agent-logo-with-text.30ef7f1140d395ca9615.svg b/agent-logo-with-text.30ef7f1140d395ca9615.svg new file mode 100644 index 00000000..268c5a28 --- /dev/null +++ b/agent-logo-with-text.30ef7f1140d395ca9615.svg @@ -0,0 +1,41 @@ + + + + + + + + + + + diff --git a/assets/compiled_sprite.svg b/assets/compiled_sprite.svg index 1176393d..c05507e2 100644 --- a/assets/compiled_sprite.svg +++ b/assets/compiled_sprite.svg @@ -1,974 +1 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - ~ - ` - - - ! - 1 - - - @ - 2 - - - # - 3 - - - $ - 4 - - - % - 5 - - - ^ - 6 - - - Tab - - - Q - - - W - - - E - - - R - - - T - - - Mouse - - - A - - - S - - - D - - - F - - - G - - - Shift - - - Z - - - X - - - C - - - V - - - B - - - Ctrl - - - Super - - - Alt - - - Fn - - - Mod - - - Space - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - & - 7 - - - * - 8 - - - ( - 9 - - - ) - 0 - - - _ - - - - - + - = - - - - - - Y - - - U - - - I - - - O - - - P - - - { - [ - - - } - ] - - - | - \ - - - H - - - J - - - K - - - L - - - : - ; - - - " - ' - - - Enter - - - N - - - M - - - < - , - - - > - . - - - ? - / - - - Shift - - - Space - - - Fn - - - Alt - - - Super - - - Ctrl - - - Mod - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - ~ - ` - - - ! - 1 - - - @ - 2 - - - # - 3 - - - $ - 4 - - - % - 5 - - - ^ - 6 - - - Tab - - - Q - - - W - - - E - - - R - - - T - - - Mouse - - - A - - - S - - - D - - - F - - - G - - - Shift - - - Z - - - X - - - C - - - V - - - B - - - Ctrl - - - Super - - - Alt - - - Fn - - - Mod - - - Space - - - - - & - 7 - - - * - 8 - - - ( - 9 - - - ) - 0 - - - _ - - - - - + - = - - - - - - Y - - - U - - - I - - - O - - - P - - - { - [ - - - } - ] - - - | - \ - - - H - - - J - - - K - - - L - - - : - ; - - - " - ' - - - Enter - - - N - - - M - - - < - , - - - > - . - - - ? - / - - - Shift - - - Space - - - Fn - - - Alt - - - Super - - - Ctrl - - - Mod - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + \ No newline at end of file diff --git a/assets/images/agent-app-icon.png b/assets/images/agent-app-icon.png index 0630ea57028e47ae47994ca68a61c9a1a29fa2c9..eab1399c59ff8e4de30ad75a9a75a5005d33d659 100644 GIT binary patch literal 23235 zcmeI4cRXC%_xDHdo#-V*4>NjiQ6fZ%8ZC%kM~ya0h?WG2aP<-*L=RCC41x&J5`-XT z5S`5Eqd$}6e(#-ozxO_#-}CzY>AZ|t_WrE3&v~!4_ng_U*AcI;dzFlsi5LI?kX_SM zGeEyb{CE-KqknfO+I~R45qW8v`2qlUSbn^)ir)sV007c_E=D)~Zt7f@wF7$y+uDO~ zI|v7Qc%jt*fV@(mm#v+fgCECj2PYR#1x`d$D<_AGy#lAHgbql@OVz>IMKjpP!7y0Y z$S&B;PR5>7Ns(ASP!=7)!@KNqkk$B($Sx555?3Y?rj2KwXp{klB7{us#9_jh(^ioify zFQAAp2>4G<_I7{xc=`Ld|2#E&JD`KRgNK8spD)@^Y4Eaa*zYdJf ziH^=6WB=p%dU*Wf(7t}^chCraNBWPRzD7Y_4nPA3U$DQAorC%v^rdk9)7AUAIR2TO zzeM`c^RMUb5a{wRZa;c{x&17KUm21|U#qODkAtlr*vAMAc31pWW%~a?$f2tGv#L1w zOkF(f!2!Pf^1#2l{F(1RqdBPA`Z*|~>rn<>i9#Y$Mj}$OqGGZVQiABh1c5Mu{8Iic zh7Q=?#WCpbF+@dVMP+0qBr#)PDE}Se*9qfZXEeAz0dEh@aV|e|nG}&vOzJ9izb`ICn6wwXBE-v=6 zB9e|G(jqdqg~Vl~q=ckx#btzUi#mu2iAu}JNJvUZfIy-WKOySqV7mWTXf?2%|Bu=7 zduaRrVQ38Z{|c?=bMO`LCfgU3}5?8H7={=<5BsmKi#D|F!i$ z9quka*Ca1nA76(bGfsi?KU40HMeL6?>W9zInJa5+_hU6vwEHn39PH(Re`)>mwEpn? z-Oc6yH-W$6W4QnO7y-@>p8vNA^()j*)xQVv1v~l$*!noAIH7Ce|7EWKiuzZ#zlWCx z{#gCpUH+PgU#)-5&wncRzw;^oV^Nbu*8=*yY=7oJL>~BGZGVpZOMml6PTl=~>ZK&5 zLFfbh*@r%U_r>i0yRX?9zL@=g_x;n=*we*NQS|rW{??4)^<(Y*wJ;c>Zxb98(KA>K zJ%9h+{C5w1mp}*in`$oT8SML`E=5G8e|P$O&p&#a{i`QN&+neU(uMJn{xh4uTG2NQ z=zA65A2%z1P4pj=;eXlq^OF9T17n6e9|V)enf5uZGZA45&T(PVIMY7IbtWQA!8tBW z8fV()xXwg`DLBW4N#jiW9M_qMFa_thFln4=pW`|c5vJfA7bcA}?Q>jbBEl4$r6zLf^%G$G|sfoah-_>Q*e$8lg63$Ij%DiVG7Q1VbVC$KF4(?B22+KE=(F{+UK~= zM1(0g$AwAbO#AF4e?4P3F zmjM8O5CE`Z0|3aT0|4~kWa};s0DzP3nwpAH;KW*}+auO)|LK5%zONy7t!x6Y;>NA8 zZvyTCDD|#f(tP|-Gu64KoPgV)-m<>8wfuetyEonZvuv%5d1*R1C4Ixoy>SY1`GRABjW2}y5hdbu-I2I1u=yt67RGL+s9Ka zd!Df6ecin7vEsptRPCR4wn8>ObB$9+RJdsa>MMn?#@~bqR}JmV(&)+G2-G1XyNkzx z6^DnzO~@Jja>D{ye7djawLQMxc=$b}x<-^DI$!6IZhhI!_;$_TLXXWraRA4NxF=&ZgU{wTPpp!z zfe;VML*fxaj5O}BG?9jF2_7#W_GpnO2=3>?R94Y&fwsXq^LF2sTYFb4J`b&`Q1(&U z4z2EaqlPYC*U^~?8B}~wR@D;oczqK6d?Qg2Z6t?s*=VFeX~axU!1OXNzzvEUKr`IU zM+nC95{x5{L;>zTddIRcoN(&Y5`((fm4vrIpm{nLoKW5>p@(WPbb$JntZMXIP8z?vUafJAumNBPTdOuR6OK)@cf-oj{L)e zmavi(pUAw(e$VbQr1Gce{vvpH{*|gEEu>w(4BL|%M9^J@m9{Zm4(czZ*sUeYz3pS+ zgYjSbqN+}bA^|h{47nE|tVM-`7BIO6sxx}=JIL|){P>kc}xm|*x zSV?Dzkvnd1+7ScfFycL%D;+A;wH4qe`kVsQ#|B@;gEP=1hS0s$FO#@{d&CYnQjGYl zBZ+kd`$UTP$ex(gwT%}CQfWcflkN{^erk1~Py}DBQ(;9-oGRm?%$!Z}!te#$0*aU* za~ag85#T;{NWZg#$IlQ^Dr^-xf1a5 zWt$;HRCL&r_EVNi>dC5AEct5dh1JyQgjd|hAzCf|#SMco6TGTf44DyRu|UJa%G5y{ z$#JaEQzi)UqkX%Wj^a@$kzz-tpp!Ma{9f-D+nJwSpKi5P;BHG-;@!ilSrp)GWmfroNh}KYbL6ffXw_i}A~o!ql=f_rEbwBAdyIDzeS47k zI>;wu*h|h4+3;dZtYi_vwnb7GT$M-CL7qsnsw0jWF0D4bxo~X05`w(mg*+VCH;LJe z9-=UL7RCv^L5Y*kmfqi!4yT>pdejN3ZP*%ImHjr1iKhGrxx>3&jj>uhs3; zwjA42UuVQhJ@O1%09}z|jrpx#BBLs$KaVsPs08c0c)i2G?&LFs%;(x5C!us)!BSF8 zY%IIi-RbuPa6-LgICNyvY4W6Vuh=-%7N_oB<`bzkR@Ex`If;r-WX#Trq^!Jd36GNi zugv>G4n+>%$Fu}=?QiVW*nX;coxHy8TTuS$Kq#XOe^Taj1ae~;qVmqyVGc^X)vqb6 z8{QpqaD1XvxwC4?1OIrHT~DHOI=+Rz9?Y)D!-V3@-=}(>9u)l3B>}{q7zMd~GV&c{#~ldf#gr7GFTvcT_ktGh?Xs z3;;)M%!Tp5zxB)!!J_nptF}FTpU6*SZQxo@HWMQac?OsvdckR8(Wdl^zISjWNUc?o zf($xaa?-V|bhHgFTkHD|2-R+14F$zb2dz)+=xKa}!+s-*7{wzGHBJ+q3lK(i{&G$nEnQ{+J2_B5x zLjuK#U4#pGYa)1L!w}q7_+@9JVb zDpBgyXSZ93|CA$45j<9KJ7L{;a(P#0_bbewdq}NH=2VoW@pGYapy1t103$cxkDExUg=s^G%0W|EhTO9tmmQ zVz1Kx15_4C<}r^4bpuAde+iIhP!!#h(#Hy08*@%9Bt7b5Z=)4k-?$LL;SL*6kyfX> z^XPHcH#a=?XoBo&?-HE6mJvn6+-V_;eVLd+b>^%s(b)q7o)6@aa|H`QGdU%_yNDeX&}{?C9=ot+oG09@SLDsoc^(Uw*XNCL`xQLi3hNqQ)Sfb=HiaEQEL#7lu;!?RCou(M7e%HNyPF=?a`Y!#Y#^ zu=?(tiX$K7*0v`ZDrTYz&l&-yJZf{=1+>Zr6)mmPw>ON2U_%LUvAOBs+MFzHyZB5I zmqM$J;T9r6WGy|OKzXGgA%4pXx)KEewF$iaNaHBI7kPkLbL5wRd5hham>F&EE*gk2 z4wR6C7+aGDtC}q^V`5A0BRjLKQY!6z*&0<{FWv&3d+C}uUXh`{c5Xud+h1&_lK z$yN%NN@SCZQD}nQ-QR!B*=GO)7)+1Oz=V*@#IFKcQdfuYOV(tb-E8h6$@^Cu-F?-|uT8+ur($3nwX z!uNJm&=kZ#Dk+b8p1{h^-rd(nda}BBN^-IZJf)CT^;l#0nn9)5v-s}ayP+?i+f7>! zNKa5nr(B*>fiz74h-oC;&G6H*AM${?YOX6y_%?{)8zkCCNZ$kd;Zc(_sIAV;^vTpg zzi&LD#?`AYtE(fbAoGHO%SCBkh|s;ckr#$vBqeZ_Q0)}R1aKG*y>&2A%Pk5!JG)%T za66**t-;oax$dOGQCBnD+rGS%`;BR?dKvB`+WgToGq&4@p_YwaSf*9Cx*DMSWTX^H z5rj8y-t2U%vg%r`YE9HFj(Ys~u?`+IsDA(&-)<8DBK5@{5-0Vebsq0ai{l_wefaR9 zO;{Kk7`pFR+F!t@1#?@=0S~=4hf9&+#IH%yeU8uU53e(?FjB{E8yXs#bn?lk-mRvh zS;~(jp-Y~|Pr5(tNTU@*$P5`xC#cqX#`ubFI+0?{gAaS5*P4#X=+1qI)d_KPfXNk2 zRV>W`4dx!wheAhEX~d7}KzA8csGTkjL4*Llp2%lG z62c&R*Yj5| zy1bFW*Z;u+ymV^-EU9wD4Xt zI}kzE2^JatkHR~e=vGRk;nj<|r(C@Xu{dgTmc?>R+-IhQ4HaDQz&hUFG4V9y#qt{@|-t2q1BpVlRnKGhumQG7^ z%g&F5h|c3ZSW-qthRzGT6od5ibY)6h%2i62ks;iO^^Qyq+&%_&=E)QuWqv%)x68xD zA}<55kHcV!m3SJhu#S-t+V72Xi4$tQ3740e-UVE=(HbCK!QtlnO6fxkSk+4RzL@#S zS%rc8>F~0w za}xC)llbHe@w0^wfm;25nbyj13C~_yQiS8{j@6`Yzo22<5$f z7^Smib8xK4!^Aki9}tBEWsO~Ww; z29qWl{L#8j%!zCYF|2ZTp2c34lzd$m8S*_$>Rop?di#RK2$V^qQt8S3GDdvI?Q~)eAJu6GkqQPW`mh<+HFZ=BT>}`*^u1dDEq}~j!pn?N0PfU=!(+wWwJ%YJuq}XW4*73sX;SumEb3Gf>ynAAN{KIDim2htm&ncv z4^gV)JWNXZv7k9OOfnmgP*S1AAJGdV90$?$9ldKLf!+5_Uz{$Ylt&wVG_Kckp@w4F z)ERJZ-b{yiQ8*V(c0rF1H;^3^cDA%(q&1i29L>gK+^8orz+q6j7Nt@UMIP}vDqc=eW& zLg@%}=lc{E`6?x(-f$E2G z%$bzvEgSR?TgaM7^Ii+0>uAl=QnUA??T7N$Ri29T7)N}nAjMsH_XSk9SVjj=~XAxDF?R90Q=#L|CK8$@lUMFe@di7{cmT&4lI`{bVO!hMzi{Y}^MBGhn?h z3=oduc9~AOkSXa#%4A$0{RyJ@>4OFC*HpT=5?V+TZduN{5w5iXQX=c~>JEA*!y5@# z8IJ{W3obk}YDRpwfxmjhr>>8$S#U{sJM+Sw`fhQ-(A~q(zJY;GM7tT~L=cCX8i{$~ z+>Dp>-S6ZUCOtdfTAV=<_Y2(TMV*YV%4c1ss=XS1*PW}ldCD~?KFIWYHg!dwG1gLa zbl2?SaOj>WQj8--%cR-tZU2o$Af15IS8G!h=NGt27s$oEvA1q0n}tYR{cd9xE2M{f zfraWiXrfym^-<^jpj=Z59;3DE%NC+Qc2Pj&{K~Mcn@ymfITCb~c>u=iqf8^Powe#N z`)xjFqwofNNYoe~&b3K5W7E*dlJ*DV*&z{mg40V}MiOxPmQVsznI1`1^?t$%!Vz9; z`o;g-0sg@Vtipw{Y87$ejazDp?GC`2`l_zW;}_Hd!y-||`Wc80yD4I%X^?y~3*_{m zsXAK@Ms9Hjrff66T=-rHFYmrW?<>B8|CG2Kdl9@Q@{7 zvo3NA&g@~F6+w}NPm>yovrY_8aYNjv4o-u#>9J>T;#gOSvm;X(h?v;sf+K-!rQr$O zw;9ZA*DUjLAgcU@9?fOMPM>WbRFracDawf~!dLk17dITfcGQq(dS+P{?S7?eRA{G% zrNRIZ?p1QAxnV|QGLN=Nh(usSRhgrhvca@{d=CL+U_kg=TUGsj?{jVc+M+9#9;f9B zftNm}7>PRzNIPofjjHd~&Ldx}T@Sa5)ib-6r|x7>G+^&5aPv{>?JDP*X9{~OJlgTS zjwlJUPYTTsV+_o2UX=GFE7o{^YEq*eljO*n9xWObdRGqL=*W-sl{6xa)ysGpN=B0w zNx{d@C{?_hnhsN$C$;`W$|RuHYYNP?U$v!%52p-{C2FXzjwpE3l8F}N z4fxS%;;48+>3Vh7jv#D>h5Tl$s3qJf6laxD5sb_dg$Rt&<&wfI-Xogc`Db#CP7%3( zvMr-N+V*|D>uM}y^yNJ~RB*|Px67h^Jp_4Jb0Lg9_Yj{ON@y=M+3rtjO?ipmTt*V8 zhsey3-~VkHFD5CQ)cSRQl^sgns8+NsX>*NZ-l%ds^vH;nX0ag9*nzq@r8-f47u37( z96_|(SQdw!e7Zl>R0lUyMZO$>m$CFjVcXum3-oktB!u30=-tvzZ;dRv0I9g)Y;4vp zJFxdOfQAn7EWp3f`OBVbu+#hw&fQ5l& zUsQ{Z7@^y@e9H?ZDhX>dXQ#aPvl#UH;shn*;iiRHwEh_%pR?H zzhvU|VqLcCHELEug^}io+oM*@piDfTqqJ4%$;K1`{x1Ic;UtK(&jGJ0dRn4=kvMql zfGr$p_{rXCZ_8AB0BN`;nf9pdCl;|joCI)=mHkfmq zwxV8rP!8AF7M9uEN2kUVzlyhmw}>sA$nN>da6{JSA(YgbyJhu=nIgF1-Ll27BPB1P zcwxX-cp8tFN%qHpDC@VI`^ZE77d1>_;p>de&X3y5MDa^5KpJe?TbOTN!Ao(8aQIdm znX@hIu(;mawkKWp1gMT6g95uAJZEh7c_J1Vt|17!c?s}a<_JL})=-$(h_4vL-8qUW zCdtpxwKwNuRn5NJvp~})oo0{QC-2SpI^t)&^6u(2-Oo|wru3;gT6@pvQ=ZS0_o*eq z?Sv^}-xyH5Gqdg!0}Oan_;5x$L-o_M+ZRW~OvCtT7OVHQ;se;Mg*wti@4WZfFH4uE zV`rxq$o&ZXwoycy=i|yna}@bJQkm9_+*-??-?-07T=G>i>wqRlT8nlk;YaJcUS9}~ z);O->wYZrqmSDja8pj@W@^_KmI=!SD9z158-@dF}vYDen0!bq#V1YO7%G`%{n;Rdq zs^xBd24Kwu5w=`cJN)V$wty?zm^(c>DpNv!lq`nO*+OMI9l54Ui$4nxx=+s?6rOB& z*h_S>;t>|)`7~$QUC{ za8nUS`*?kYZ=aVK3pBg!?eS%0;ub|KMzz3~*J!JzXT|{k?ND&9Xrik+<@rnl<0>G;k8D_ zThO3BkwVPCVM=Lf`l6KvsKZAau=={u>;?d?3WzWgY0-DY2~XTwUAEdJ-SG^=2h#*M zFrsRpaBXkB*3S!B)6lKl(FgF80Dix;K#H$jgduNIzMQhSMk6jRP`2q51UwMX{`!pc zR$zp6Z|Bq7Vx=nhRlrtj5~xvBRSLEkMSXy*^$P*@CEAGic>d$L;VqKdyrsRv?uosESrs)GD=;_j z6hQ=iAZrr&2o-;a7h>yUPmGWce)SsQK3QL(e=j3qF#bK3@Z zkcF(?FUt}6n|`y7XrN#y5&8q+$q4q5puwhD(JXa?l;>1iCIrxQzu`#R@gzkDae+p< z%;e~=-e->|J} z;)}&PwerF0PJakUKZ4 zpmrP3XbEXED<55I7MW_*Oq`a;9@0XR96_JVsFsbc>;*?vC9I8~K-VW@70U`n z>wK*$0M4bTDh&+{HponL>q*XsG@#O?Yn}XX1GA|2Y)@xuWYrWN6H8g^HGJ@0r4mZO zsQoKn4lZguepudH0j2P;Lu4Fjn$|xx+o=j@J za7sxQj80_K$6G9Y1*k2_JUVt{Y`&w(bL(=RYxU-;NvjkpGinGvIk4?;dw}r1xqPEXFzCp*QSO7aJfh}p?%)=l5X8M}Cu3F_4o5=qI D|9jCV delta 3739 zcmV;M4rKAewE?XikR%NRb3#c}2nYxWdeSaefwW^{L9a%BK_cXuvn zZfkR6VQ^(GZ*pgw?mQX*01hfiL_t(|obBCva8%VD2k`Ij?7i7dRH7jYL_;uv7$Zu= z;iWu`yy^>Ns%UGG@kIu3M?2$8r!)P-e;u64h_ndWj!yemZO7`^8ONE9%t%6nQnYBH zR4rnEK}1t91QT|1fBj=0x%ck5yLYp9_wL?3zi|;xcF*f`a_+fj@7^VN7#lZkyiC&~ zGa)dGKnqCFwFJ=!LNgH|{Q!XofFz9)eqCN`X3(WM8>#SJ;oH;9c?%K)M0k#fUR|+b#fd`v#ybFL)263p5%F(9)aBH0 zg>S2;2l$dcI84CCWy_ZBCL%8S0O;w7b_$K&B%-$L4OjRjz&GV9jtYTQ-QC@Xi!uOz zHf-3S3oX2Zh#tw^a2NQ}hL-_;LchZB$LhsIyN(_?vbm?HC+67zcq|&dN*krUM7VOi z_)d*f_%85m&`$WKJ~$oc)hAaGR_}TlQ zDEO8>2!%p(=FOY8-}L}^EE>H^H^ec3g~G3F{A8L@Q&ZDCd-m*%H9^K9V8ezDx;83$ zi-B+NWQAW6d=Qbia3R*afB$|x=Kx5Y>Tz>1@MX{nzv%b?2trT`GjGd!2mBR%orINd5f7TV*qU4 z{M39J=k{*C__E)!vcrc{ANY)KYi~aI%nShSeSLj%GG_oXUM>~BtdZ4+Z_U>|K3Vh0 z13&Qqh(fPe)&S9H^eTfx$IAzQ-&AH^_?c<$@J+AF3t!eZZt>y14FLqJH-)9xFd|CFcj&FTK*CkMdO z06-fzZoDj{*AA2#KNDKkaD`tC{M2K3c=%FH(;_ovja2xyJ}}k63w(EfeNa4nW=1$1 zo~dz2bO~6I6n^mW6F@3s%T#ZNp(DE#WhXXeBVpzwo)?{4Z( zrD<;Pzxd)9KKu0F7#{vUb^1`Yp=lZ>Po9G1D^{SszTOl3vuDrX&u_eeFTeZ}@p#}{tLdw>C>liVPpi;r%#vSCr$$)#~&FU!KqVU z`Q3(sXI*!xq#N%+#zs8;_~U_{^>n>Pia)jyWWy%{YV;bv>s^%S>gqz<^ywMvp4Qe@ zTz|t2epjz3QBzYR#ZPPmN$`mX6YA^zuD9nA3We~)d+(JmdWrDhj~@)=%-7J+AjKa$ z3y^$&U}56KM!)OrdCZwR7rL&?7rh|px{kSX=lWeu&tuZ0Nm6{<^#In3BPUI|!tZ)} z8bpLU?zqDdKb5w6_3FT_1*S}ClHxOLi@>oC0V0vwKuw43?d=HHm_8feaOjIfB4}@K z_q)2Dg|6#}gu_yN%OWtdLkRT&S_iCNeNX0pn_dpH-@W(V=XZ5Ii-v}Yj`*2Z1lc~Q z*xK6Wcl|wy2@@uuv9Zw=K7lZK@}$5F{*G&|am2S?5hVGP>b0HMfhg-2i&aG2bkj|) z@l$DY=FG{NZ@GsM0@q(Z%Mssp7GVGAcH*?Dsj125W)v1ggr!TD<%OSKFjn|tu(`Q^ zd2Acl;XVSw2|xAsCAW50bVp2^b~PfAa9;R{#b7Pk+A8-DNJLnA+w!dV8H+$WJ`tg= zuCAh2#cS5wlQ(|qrVVS?uJyb6rhu$m-7xHA{&0H!xk^;MqOQ<&rQldCQh7) zrYo-;7d{c8xw#pQjg_|{cF{!_qx;r>+j8Q=JOBVWK9Zex-`WSD>lt4=SJrXg+O^}x zPj%9|b?f|YMqZ)oI__WlfGhm5vjAkrCnD6=*5dvLeuQv1>}vzvM$5Emm@#8ULHNv! zwzf93w6yr$99I#EMDUXbA3|+ytt&{i^>bemG$_t;F zLBIO-OY9ckKAjQ>1~dNi`KLI4e*8;}jEn#B02FYwbH2gcywAl`ZB9en@&*xk|+|I7S4IGyVJ9E@GBm%Mu4k`Bx3kuEbF z4r6L_Gg?}%w$?pQd}e@ty<;bj7ax)|O3GT(tk)V+64U}@OS9wyYn|YKlqP}p3P0O1 z)%<|@=Z^RB%Yx%@`F3U*PM`L1kIyjOAfhPvCe&i$J3%Y_?D)(KP2qckZ^5Y$d}fAL zRrsdz6n^4i*$Gtm)rD^x01Cg_@R@CQ39Dv&W=@`Rl?Xo#Sps~AfelVB0xJ{WHUJ96 z&(XP+iSJy;)blkfzNr&`^TIcw<%K^s`zZX<<1@qdeE|wT@c8yJw36W4pcQ_3;F|_O zFz^%ULB=0@ju-gJ0if_J4c~bHEkT>R!PL-!;CZb1M~}IrX^!zwmA4<%=&L01DrA{>-*3f+`;0B~F##%geC-TqykN z#b>sBVFbp3Z`wqE$_qd9xUcY?@e{A{9-qNui@@^5mvo-O_XMArA%vi~!mmzzW{wMH zoL2Zj#dmsL`uQh?5Ohl6R~Wve{H$fj@xhF*1QQ)n_yywU>Ugj5VSoO(@WF=hi6BA! zfx~x+;~9RIji^i@{VA596b)TeqG}4}e67 z$AgM*>AaGE;iI(pdE}3{@mNZoQh#A)`s;h|9U;aHh3^5rLmi8T5108fAKv!j^PK?L zG6N718}az+lH%tvs&jR$JDfuCWtioI@1~6;MpvcqZHEA0`SRueB*Lze;pb6t6p9Zo z@Ll5ggr9RS!N86eUU=cC**xP*0hxId6Md@i1BTCkIM#SYebnwv_5=WU|NZxym~osa z`!|aQ17A`HAMxd76pSC&Vmx*0&cw<;>kI$@3l}atVHl%bUgFC;SK*fc9}J!+!*?72 z0I+1ql79#xmV1Q{h3^wSE!)0*>j5Wc=^?-z{r&y348zzjgwPaz<=_Kk#Nx39J9cdQ zAe(Q0&H(@b2M!!)ip65RLWmY5XM^&^&t68c@!jCq2dLNh%=lc3@hwi%zBycdHTdk= zvrmLVp&5X9DRB5%%BVK_*I?SBhw-~DTef^vh+n}2z#Q+s`)++rP0e+NVcf{f^O&gv z;47H9Md6PN{}>owvtfL~MEw9hjK$6$+O}=mcV3zOA8UQ6hX65zUltimate Hacking Keyboard Configurator \ No newline at end of file + })(window,document,'script','dataLayer','GTM-PQLCXB'); + + + + diff --git a/inline.318b50c57b4eba3d437b.bundle.js b/inline.318b50c57b4eba3d437b.bundle.js deleted file mode 100644 index 1e8af07b..00000000 --- a/inline.318b50c57b4eba3d437b.bundle.js +++ /dev/null @@ -1 +0,0 @@ -!function(r){var n=window.webpackJsonp;window.webpackJsonp=function(e,u,c){for(var f,i,p,a=0,l=[];a'},i([r.assertUInt8,o("design:type",Number)],e.prototype,"id",void 0),i([r.assertUInt8,o("design:type",Number)],e.prototype,"pointerMode",void 0),i([r.assertUInt8,o("design:type",Number)],e.prototype,"deceleratedPointerSpeedMultiplier",void 0),i([r.assertUInt8,o("design:type",Number)],e.prototype,"basePointerSpeedMultiplier",void 0),i([r.assertUInt8,o("design:type",Number)],e.prototype,"acceleratedPointerSpeedMultiplier",void 0),i([r.assertUInt16,o("design:type",Number)],e.prototype,"angularShift",void 0),i([r.assertUInt8,o("design:type",Number)],e.prototype,"modLayerPointerFunction",void 0),i([r.assertUInt8,o("design:type",Number)],e.prototype,"fnLayerPointerFunction",void 0),i([r.assertUInt8,o("design:type",Number)],e.prototype,"mouseLayerPointerFunction",void 0),e}()},"/KiA":function(e,t,n){"use strict";t.h=function(e,t){switch(void 0===e&&(e=d),t.type){case r.a.APP_STARTED:return c({},e,{started:!0});case r.a.APPLY_APP_START_INFO:var n=t.payload;return c({},e,{commandLineArgs:n.commandLineArgs,platform:n.platform,osVersion:n.osVersion});case r.a.APP_SHOW_NOTIFICATION:return t.payload.type!==o.NotificationType.Undoable?e:c({},e,{undoableNotification:t.payload,navigationCountAfterNotification:0});case i.b:var a=c({},e);return a.navigationCountAfterNotification++,a.navigationCountAfterNotification>1&&(a.undoableNotification=null),a;case r.a.UNDO_LAST_SUCCESS:case r.a.DISMISS_UNDO_NOTIFICATION:return c({},e,{undoableNotification:null});case l.a.LOAD_USER_CONFIG_SUCCESS:case l.a.SAVE_USER_CONFIG_SUCCESS:return c({},e,{prevUserConfig:t.payload,configLoading:!1});case l.a.LOAD_CONFIG_FROM_DEVICE:case l.a.LOAD_USER_CONFIG:return c({},e,{configLoading:!0});case r.a.LOAD_HARDWARE_CONFIGURATION_SUCCESS:return c({},e,{hardwareConfig:t.payload});case u.a.CONNECTION_STATE_CHANGED:return!0===t.payload?e:c({},e,{hardwareConfig:null});case r.a.PRIVILEGE_WHAT_WILL_THIS_DO:return c({},e,{privilegeWhatWillThisDoClicked:!0});case r.a.SETUP_PERMISSION_ERROR:return c({},e,{permissionError:t.payload});case u.a.SET_PRIVILEGE_ON_LINUX:return c({},e,{permissionError:null});default:return e}},n.d(t,"k",function(){return p}),n.d(t,"a",function(){return f}),n.d(t,"g",function(){return h}),n.d(t,"e",function(){return y}),n.d(t,"i",function(){return m}),n.d(t,"d",function(){return g}),n.d(t,"b",function(){return v}),n.d(t,"c",function(){return b}),n.d(t,"f",function(){return k}),n.d(t,"j",function(){return _});var i=n("r/Om"),o=n("gI3A"),r=(n.n(o),n("Ji5S")),l=n("at4H"),u=n("fYQU"),a=n("xW7+"),s=n("Lt3n"),c=this&&this.__assign||Object.assign||function(e){for(var t,n=1,i=arguments.length;n1&&"number"==typeof e[e.length-1]&&(n=e.pop())):"number"==typeof a&&(n=e.pop()),null===u&&1===e.length&&e[0]instanceof i.Observable?e[0]:l.mergeAll(n)(new o.ArrayObservable(e,u))}},"1Rl6":function(e,t,n){"use strict";function i(e){for(var n in e)t.hasOwnProperty(n)||(t[n]=e[n])}Object.defineProperty(t,"__esModule",{value:!0}),i(n("4uS6")),i(n("r/AL")),i(n("gohO")),i(n("3EbR")),i(n("3uOy")),i(n("z+Yt")),i(n("ZTdU")),i(n("R30b")),i(n("ov8r")),i(n("/8Ia")),i(n("W1wB")),t.SCANCODES=n("1xu2"),t.SECONDARY_ROLES=n("KqLa")},"1kxm":function(e,t,n){"use strict";t.FastMap=function(){function e(){this.values={}}return e.prototype.delete=function(e){return this.values[e]=null,!0},e.prototype.set=function(e,t){return this.values[e]=t,this},e.prototype.get=function(e){return this.values[e]},e.prototype.forEach=function(e,t){var n=this.values;for(var i in n)n.hasOwnProperty(i)&&null!==n[i]&&e.call(t,n[i],i)},e.prototype.clear=function(){this.values={}},e}()},"1r8+":function(e,t,n){"use strict";t.isArrayLike=function(e){return e&&"number"==typeof e.length}},"1xu2":function(e,t){e.exports=[{text:"Letter",children:[{id:"4",text:"A"},{id:"5",text:"B"},{id:"6",text:"C"},{id:"7",text:"D"},{id:"8",text:"E"},{id:"9",text:"F"},{id:"10",text:"G"},{id:"11",text:"H"},{id:"12",text:"I"},{id:"13",text:"J"},{id:"14",text:"K"},{id:"15",text:"L"},{id:"16",text:"M"},{id:"17",text:"N"},{id:"18",text:"O"},{id:"19",text:"P"},{id:"20",text:"Q"},{id:"21",text:"R"},{id:"22",text:"S"},{id:"23",text:"T"},{id:"24",text:"U"},{id:"25",text:"V"},{id:"26",text:"W"},{id:"27",text:"X"},{id:"28",text:"Y"},{id:"29",text:"Z"},{id:"100",text:"| ISO"}]},{text:"Number",children:[{id:"39",text:"0 )"},{id:"30",text:"1 !"},{id:"31",text:"2 @"},{id:"32",text:"3 #"},{id:"33",text:"4 $"},{id:"34",text:"5 %"},{id:"35",text:"6 ^"},{id:"36",text:"7 &"},{id:"37",text:"8 *"},{id:"38",text:"9 ("}]},{text:"Punctuation",children:[{id:"45",text:"- _"},{id:"46",text:"= +"},{id:"47",text:"[ {"},{id:"48",text:"] }"},{id:"49",text:"\\ |"},{id:"51",text:"; :"},{id:"52",text:"' \""},{id:"53",text:"` ~"},{id:"54",text:", <"},{id:"55",text:". >"},{id:"56",text:"/ ?"}]},{text:"Whitespace",children:[{id:"40",additional:{explanation:"Return"},text:"Enter"},{id:"44",text:"Space"},{id:"43",text:"Tab"}]},{text:"Miscellaneous",children:[{id:"41",text:"Escape"},{id:"42",text:"Backspace"},{id:"73",text:"Insert"},{id:"76",text:"Delete"},{id:"101",text:"Menu"},{id:"57",text:"Caps Lock"},{id:"71",text:"Scroll Lock"},{id:"70",text:"Print Screen"},{id:"72",text:"Pause"}]},{text:"Function",children:[{id:"58",text:"F1"},{id:"59",text:"F2"},{id:"60",text:"F3"},{id:"61",text:"F4"},{id:"62",text:"F5"},{id:"63",text:"F6"},{id:"64",text:"F7"},{id:"65",text:"F8"},{id:"66",text:"F9"},{id:"67",text:"F10"},{id:"68",text:"F11"},{id:"69",text:"F12"},{id:"104",text:"F13"},{id:"105",text:"F14"},{id:"106",text:"F15"},{id:"107",text:"F16"},{id:"108",text:"F17"},{id:"109",text:"F18"},{id:"110",text:"F19"},{id:"111",text:"F20"},{id:"112",text:"F21"},{id:"113",text:"F22"},{id:"114",text:"F23"},{id:"115",text:"F24"}]},{text:"Navigation",children:[{id:"75",additional:{explanation:"PgUp"},text:"Page Up"},{id:"78",additional:{explanation:"PgDn"},text:"Page Down"},{id:"74",text:"Home"},{id:"77",text:"End"},{id:"80",text:"Left Arrow"},{id:"79",text:"Right Arrow"},{id:"82",text:"Up Arrow"},{id:"81",text:"Down Arrow"}]},{text:"Media",children:[{id:"127",text:"Mute",additional:{type:"media",scancode:226}},{id:"128",text:"Volume Up",additional:{type:"media",scancode:233}},{id:"129",text:"Volume Down",additional:{type:"media",scancode:234}},{id:"130",text:"Next Track",additional:{type:"media",scancode:181}},{id:"131",text:"Previous Track",additional:{type:"media",scancode:182}},{id:"132",text:"Stop/Eject",additional:{type:"media",scancode:204}},{id:"133",text:"Play/Pause",additional:{type:"media",scancode:205}},{id:"134",text:"Play",additional:{type:"media",scancode:176}},{id:"135",text:"Pause",additional:{type:"media",scancode:177}},{id:"136",text:"Stop",additional:{type:"media",scancode:183}},{id:"137",text:"Eject",additional:{type:"media",scancode:184}},{id:"138",text:"WWW",additional:{type:"media",scancode:138}}]},{text:"Launch application",children:[{id:"142",text:"Launch Web Browser",additional:{type:"media",scancode:406}},{id:"143",text:"Launch Email Client",additional:{type:"media",scancode:394}},{id:"144",text:"Launch Calculator",additional:{type:"media",scancode:402}}]},{text:"System",children:[{id:"139",text:"Power Down",additional:{type:"system",scancode:129}},{id:"140",text:"Sleep",additional:{type:"system",scancode:130}},{id:"141",text:"Wake Up",additional:{type:"system",scancode:131}}]},{text:"Numpad",children:[{id:"83",text:"NumLock"},{id:"84",additional:{explanation:"slash"},text:"/"},{id:"85",additional:{explanation:"asterisk"},text:"*"},{id:"86",additional:{explanation:"minus"},text:"-"},{id:"87",additional:{explanation:"plus"},text:"+"},{id:"88",text:"Enter"},{id:"89",additional:{explanation:"one"},text:"1"},{id:"90",additional:{explanation:"two"},text:"2"},{id:"91",additional:{explanation:"three"},text:"3"},{id:"92",additional:{explanation:"four"},text:"4"},{id:"93",additional:{explanation:"five"},text:"5"},{id:"94",additional:{explanation:"six"},text:"6"},{id:"95",additional:{explanation:"seven"},text:"7"},{id:"96",additional:{explanation:"eight"},text:"8"},{id:"97",additional:{explanation:"nine"},text:"9"},{id:"98",additional:{explanation:"zero"},text:"0"},{id:"99",additional:{explanation:"period"},text:"."}]}]},"215F":function(e,t,n){"use strict";var i=n("TToO").__extends,o=n("mmVS");t.takeWhile=function(e){return function(t){return t.lift(new r(e))}};var r=function(){function e(e){this.predicate=e}return e.prototype.call=function(e,t){return t.subscribe(new l(e,this.predicate))},e}(),l=function(e){function t(t,n){e.call(this,t),this.predicate=n,this.index=0}return i(t,e),t.prototype._next=function(e){var t,n=this.destination;try{t=this.predicate(e,this.index++)}catch(e){return void n.error(e)}this.nextOrComplete(e,t)},t.prototype.nextOrComplete=function(e,t){var n=this.destination;Boolean(t)?n.next(e):n.complete()},t}(o.Subscriber)},"2AEF":function(e,t,n){"use strict";var i=n("13YQ");t.exhaustMap=function(e,t){return i.exhaustMap(e,t)(this)}},"2ER/":function(e,t,n){"use strict";t.MapPolyfill=function(){function e(){this.size=0,this._values=[],this._keys=[]}return e.prototype.get=function(e){var t=this._keys.indexOf(e);return-1===t?void 0:this._values[t]},e.prototype.set=function(e,t){var n=this._keys.indexOf(e);return-1===n?(this._keys.push(e),this._values.push(t),this.size++):this._values[n]=t,this},e.prototype.delete=function(e){var t=this._keys.indexOf(e);return-1!==t&&(this._values.splice(t,1),this._keys.splice(t,1),this.size--,!0)},e.prototype.clear=function(){this._keys.length=0,this._values.length=0,this.size=0},e.prototype.forEach=function(e,t){for(var n=0;n'},e.prototype.renameKeymap=function(t,n){var i,o=this,r=!1;if(this.layers.forEach(function(e,l){var u=e.renameKeymap(t,n);u!==e&&(r||(i=o.layers.slice(),r=!0),i[l]=u)}),r){var l=Object.assign(new e,this);return l.layers=i,l}return this},e.prototype.normalize=function(){if(!(this.layers.length<1))for(var e=0;ei.LastKeystrokeAction)throw"Invalid "+t+" first byte: "+n}else if(n!==o)throw"Invalid "+t+" first byte: "+n;return n},e.prototype.renameKeymap=function(e,t){return this},e}()},"4uS6":function(e,t,n){"use strict";function i(e){for(var n in e)t.hasOwnProperty(n)||(t[n]=e[n])}Object.defineProperty(t,"__esModule",{value:!0}),i(n("4KnF")),i(n("I5Xr")),i(n("CfJK")),i(n("78zf")),i(n("HiVc")),i(n("Fq1u")),i(n("9PEG")),i(n("MkTX"));var o=n("wogf");t.KeyActionHelper=o.Helper},"63KW":function(e,t,n){"use strict";(function(e){var i=n("EKta"),o=n("ujcs"),r=n("sOR5");function l(){return a.TYPED_ARRAY_SUPPORT?2147483647:1073741823}function u(e,t){if(l()=l())throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+l().toString(16)+" bytes");return 0|e}function h(e,t){if(a.isBuffer(e))return e.length;if("undefined"!=typeof ArrayBuffer&&"function"==typeof ArrayBuffer.isView&&(ArrayBuffer.isView(e)||e instanceof ArrayBuffer))return e.byteLength;"string"!=typeof e&&(e=""+e);var n=e.length;if(0===n)return 0;for(var i=!1;;)switch(t){case"ascii":case"latin1":case"binary":return n;case"utf8":case"utf-8":case void 0:return V(e).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*n;case"hex":return n>>>1;case"base64":return F(e).length;default:if(i)return V(e).length;t=(""+t).toLowerCase(),i=!0}}function y(e,t,n){var i=e[t];e[t]=e[n],e[n]=i}function m(e,t,n,i,o){if(0===e.length)return-1;if("string"==typeof n?(i=n,n=0):n>2147483647?n=2147483647:n<-2147483648&&(n=-2147483648),n=+n,isNaN(n)&&(n=o?0:e.length-1),n<0&&(n=e.length+n),n>=e.length){if(o)return-1;n=e.length-1}else if(n<0){if(!o)return-1;n=0}if("string"==typeof t&&(t=a.from(t,i)),a.isBuffer(t))return 0===t.length?-1:g(e,t,n,i,o);if("number"==typeof t)return t&=255,a.TYPED_ARRAY_SUPPORT&&"function"==typeof Uint8Array.prototype.indexOf?o?Uint8Array.prototype.indexOf.call(e,t,n):Uint8Array.prototype.lastIndexOf.call(e,t,n):g(e,[t],n,i,o);throw new TypeError("val must be string, number or Buffer")}function g(e,t,n,i,o){var r,l=1,u=e.length,a=t.length;if(void 0!==i&&("ucs2"===(i=String(i).toLowerCase())||"ucs-2"===i||"utf16le"===i||"utf-16le"===i)){if(e.length<2||t.length<2)return-1;l=2,u/=2,a/=2,n/=2}function s(e,t){return 1===l?e[t]:e.readUInt16BE(t*l)}if(o){var c=-1;for(r=n;ru&&(n=u-a),r=n;r>=0;r--){for(var d=!0,p=0;po&&(i=o):i=o;var r=t.length;if(r%2!=0)throw new TypeError("Invalid hex string");i>r/2&&(i=r/2);for(var l=0;l>8,o.push(n%256),o.push(i);return o}(t,e.length-n),e,n,i)}function T(e,t,n){return i.fromByteArray(0===t&&n===e.length?e:e.slice(t,n))}function C(e,t,n){n=Math.min(e.length,n);for(var i=[],o=t;o239?4:s>223?3:s>191?2:1;if(o+d<=n)switch(d){case 1:s<128&&(c=s);break;case 2:128==(192&(r=e[o+1]))&&(a=(31&s)<<6|63&r)>127&&(c=a);break;case 3:l=e[o+2],128==(192&(r=e[o+1]))&&128==(192&l)&&(a=(15&s)<<12|(63&r)<<6|63&l)>2047&&(a<55296||a>57343)&&(c=a);break;case 4:l=e[o+2],u=e[o+3],128==(192&(r=e[o+1]))&&128==(192&l)&&128==(192&u)&&(a=(15&s)<<18|(63&r)<<12|(63&l)<<6|63&u)>65535&&a<1114112&&(c=a)}null===c?(c=65533,d=1):c>65535&&(i.push((c-=65536)>>>10&1023|55296),c=56320|1023&c),i.push(c),o+=d}return function(e){var t=e.length;if(t<=x)return String.fromCharCode.apply(String,e);for(var n="",i=0;ithis.length)return"";if((void 0===n||n>this.length)&&(n=this.length),n<=0)return"";if((n>>>=0)<=(t>>>=0))return"";for(e||(e="utf8");;)switch(e){case"hex":return M(this,t,n);case"utf8":case"utf-8":return C(this,t,n);case"ascii":return O(this,t,n);case"latin1":case"binary":return S(this,t,n);case"base64":return T(this,t,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return E(this,t,n);default:if(i)throw new TypeError("Unknown encoding: "+e);e=(e+"").toLowerCase(),i=!0}}).apply(this,arguments)},a.prototype.equals=function(e){if(!a.isBuffer(e))throw new TypeError("Argument must be a Buffer");return this===e||0===a.compare(this,e)},a.prototype.inspect=function(){var e="",n=t.INSPECT_MAX_BYTES;return this.length>0&&(e=this.toString("hex",0,n).match(/.{2}/g).join(" "),this.length>n&&(e+=" ... ")),""},a.prototype.compare=function(e,t,n,i,o){if(!a.isBuffer(e))throw new TypeError("Argument must be a Buffer");if(void 0===t&&(t=0),void 0===n&&(n=e?e.length:0),void 0===i&&(i=0),void 0===o&&(o=this.length),t<0||n>e.length||i<0||o>this.length)throw new RangeError("out of range index");if(i>=o&&t>=n)return 0;if(i>=o)return-1;if(t>=n)return 1;if(t>>>=0,n>>>=0,i>>>=0,o>>>=0,this===e)return 0;for(var r=o-i,l=n-t,u=Math.min(r,l),s=this.slice(i,o),c=e.slice(t,n),d=0;do)&&(n=o),e.length>0&&(n<0||t<0)||t>this.length)throw new RangeError("Attempt to write outside buffer bounds");i||(i="utf8");for(var r=!1;;)switch(i){case"hex":return v(this,e,t,n);case"utf8":case"utf-8":return b(this,e,t,n);case"ascii":return k(this,e,t,n);case"latin1":case"binary":return _(this,e,t,n);case"base64":return w(this,e,t,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return A(this,e,t,n);default:if(r)throw new TypeError("Unknown encoding: "+i);i=(""+i).toLowerCase(),r=!0}},a.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};var x=4096;function O(e,t,n){var i="";n=Math.min(e.length,n);for(var o=t;oo)&&(n=o);for(var r="",l=t;ln)throw new RangeError("Trying to access beyond buffer length")}function I(e,t,n,i,o,r){if(!a.isBuffer(e))throw new TypeError('"buffer" argument must be a Buffer instance');if(t>o||te.length)throw new RangeError("Index out of range")}function R(e,t,n,i){t<0&&(t=65535+t+1);for(var o=0,r=Math.min(e.length-n,2);o>>8*(i?o:1-o)}function D(e,t,n,i){t<0&&(t=4294967295+t+1);for(var o=0,r=Math.min(e.length-n,4);o>>8*(i?o:3-o)&255}function N(e,t,n,i,o,r){if(n+i>e.length)throw new RangeError("Index out of range");if(n<0)throw new RangeError("Index out of range")}function j(e,t,n,i,r){return r||N(e,0,n,4),o.write(e,t,n,i,23,4),n+4}function L(e,t,n,i,r){return r||N(e,0,n,8),o.write(e,t,n,i,52,8),n+8}a.prototype.slice=function(e,t){var n,i=this.length;if(e=~~e,t=void 0===t?i:~~t,e<0?(e+=i)<0&&(e=0):e>i&&(e=i),t<0?(t+=i)<0&&(t=0):t>i&&(t=i),t0&&(o*=256);)i+=this[e+--t]*o;return i},a.prototype.readUInt8=function(e,t){return t||P(e,1,this.length),this[e]},a.prototype.readUInt16LE=function(e,t){return t||P(e,2,this.length),this[e]|this[e+1]<<8},a.prototype.readUInt16BE=function(e,t){return t||P(e,2,this.length),this[e]<<8|this[e+1]},a.prototype.readUInt32LE=function(e,t){return t||P(e,4,this.length),(this[e]|this[e+1]<<8|this[e+2]<<16)+16777216*this[e+3]},a.prototype.readUInt32BE=function(e,t){return t||P(e,4,this.length),16777216*this[e]+(this[e+1]<<16|this[e+2]<<8|this[e+3])},a.prototype.readIntLE=function(e,t,n){e|=0,t|=0,n||P(e,t,this.length);for(var i=this[e],o=1,r=0;++r=(o*=128)&&(i-=Math.pow(2,8*t)),i},a.prototype.readIntBE=function(e,t,n){e|=0,t|=0,n||P(e,t,this.length);for(var i=t,o=1,r=this[e+--i];i>0&&(o*=256);)r+=this[e+--i]*o;return r>=(o*=128)&&(r-=Math.pow(2,8*t)),r},a.prototype.readInt8=function(e,t){return t||P(e,1,this.length),128&this[e]?-1*(255-this[e]+1):this[e]},a.prototype.readInt16LE=function(e,t){t||P(e,2,this.length);var n=this[e]|this[e+1]<<8;return 32768&n?4294901760|n:n},a.prototype.readInt16BE=function(e,t){t||P(e,2,this.length);var n=this[e+1]|this[e]<<8;return 32768&n?4294901760|n:n},a.prototype.readInt32LE=function(e,t){return t||P(e,4,this.length),this[e]|this[e+1]<<8|this[e+2]<<16|this[e+3]<<24},a.prototype.readInt32BE=function(e,t){return t||P(e,4,this.length),this[e]<<24|this[e+1]<<16|this[e+2]<<8|this[e+3]},a.prototype.readFloatLE=function(e,t){return t||P(e,4,this.length),o.read(this,e,!0,23,4)},a.prototype.readFloatBE=function(e,t){return t||P(e,4,this.length),o.read(this,e,!1,23,4)},a.prototype.readDoubleLE=function(e,t){return t||P(e,8,this.length),o.read(this,e,!0,52,8)},a.prototype.readDoubleBE=function(e,t){return t||P(e,8,this.length),o.read(this,e,!1,52,8)},a.prototype.writeUIntLE=function(e,t,n,i){e=+e,t|=0,n|=0,i||I(this,e,t,n,Math.pow(2,8*n)-1,0);var o=1,r=0;for(this[t]=255&e;++r=0&&(r*=256);)this[t+o]=e/r&255;return t+n},a.prototype.writeUInt8=function(e,t,n){return e=+e,t|=0,n||I(this,e,t,1,255,0),a.TYPED_ARRAY_SUPPORT||(e=Math.floor(e)),this[t]=255&e,t+1},a.prototype.writeUInt16LE=function(e,t,n){return e=+e,t|=0,n||I(this,e,t,2,65535,0),a.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8):R(this,e,t,!0),t+2},a.prototype.writeUInt16BE=function(e,t,n){return e=+e,t|=0,n||I(this,e,t,2,65535,0),a.TYPED_ARRAY_SUPPORT?(this[t]=e>>>8,this[t+1]=255&e):R(this,e,t,!1),t+2},a.prototype.writeUInt32LE=function(e,t,n){return e=+e,t|=0,n||I(this,e,t,4,4294967295,0),a.TYPED_ARRAY_SUPPORT?(this[t+3]=e>>>24,this[t+2]=e>>>16,this[t+1]=e>>>8,this[t]=255&e):D(this,e,t,!0),t+4},a.prototype.writeUInt32BE=function(e,t,n){return e=+e,t|=0,n||I(this,e,t,4,4294967295,0),a.TYPED_ARRAY_SUPPORT?(this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e):D(this,e,t,!1),t+4},a.prototype.writeIntLE=function(e,t,n,i){if(e=+e,t|=0,!i){var o=Math.pow(2,8*n-1);I(this,e,t,n,o-1,-o)}var r=0,l=1,u=0;for(this[t]=255&e;++r>0)-u&255;return t+n},a.prototype.writeIntBE=function(e,t,n,i){if(e=+e,t|=0,!i){var o=Math.pow(2,8*n-1);I(this,e,t,n,o-1,-o)}var r=n-1,l=1,u=0;for(this[t+r]=255&e;--r>=0&&(l*=256);)e<0&&0===u&&0!==this[t+r+1]&&(u=1),this[t+r]=(e/l>>0)-u&255;return t+n},a.prototype.writeInt8=function(e,t,n){return e=+e,t|=0,n||I(this,e,t,1,127,-128),a.TYPED_ARRAY_SUPPORT||(e=Math.floor(e)),e<0&&(e=255+e+1),this[t]=255&e,t+1},a.prototype.writeInt16LE=function(e,t,n){return e=+e,t|=0,n||I(this,e,t,2,32767,-32768),a.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8):R(this,e,t,!0),t+2},a.prototype.writeInt16BE=function(e,t,n){return e=+e,t|=0,n||I(this,e,t,2,32767,-32768),a.TYPED_ARRAY_SUPPORT?(this[t]=e>>>8,this[t+1]=255&e):R(this,e,t,!1),t+2},a.prototype.writeInt32LE=function(e,t,n){return e=+e,t|=0,n||I(this,e,t,4,2147483647,-2147483648),a.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8,this[t+2]=e>>>16,this[t+3]=e>>>24):D(this,e,t,!0),t+4},a.prototype.writeInt32BE=function(e,t,n){return e=+e,t|=0,n||I(this,e,t,4,2147483647,-2147483648),e<0&&(e=4294967295+e+1),a.TYPED_ARRAY_SUPPORT?(this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e):D(this,e,t,!1),t+4},a.prototype.writeFloatLE=function(e,t,n){return j(this,e,t,!0,n)},a.prototype.writeFloatBE=function(e,t,n){return j(this,e,t,!1,n)},a.prototype.writeDoubleLE=function(e,t,n){return L(this,e,t,!0,n)},a.prototype.writeDoubleBE=function(e,t,n){return L(this,e,t,!1,n)},a.prototype.copy=function(e,t,n,i){if(n||(n=0),i||0===i||(i=this.length),t>=e.length&&(t=e.length),t||(t=0),i>0&&i=this.length)throw new RangeError("sourceStart out of bounds");if(i<0)throw new RangeError("sourceEnd out of bounds");i>this.length&&(i=this.length),e.length-t=0;--o)e[o+t]=this[o+n];else if(r<1e3||!a.TYPED_ARRAY_SUPPORT)for(o=0;o>>=0,n=void 0===n?this.length:n>>>0,e||(e=0),"number"==typeof e)for(r=t;r55295&&n<57344){if(!o){if(n>56319){(t-=3)>-1&&r.push(239,191,189);continue}if(l+1===i){(t-=3)>-1&&r.push(239,191,189);continue}o=n;continue}if(n<56320){(t-=3)>-1&&r.push(239,191,189),o=n;continue}n=65536+(o-55296<<10|n-56320)}else o&&(t-=3)>-1&&r.push(239,191,189);if(o=null,n<128){if((t-=1)<0)break;r.push(n)}else if(n<2048){if((t-=2)<0)break;r.push(n>>6|192,63&n|128)}else if(n<65536){if((t-=3)<0)break;r.push(n>>12|224,n>>6&63|128,63&n|128)}else{if(!(n<1114112))throw new Error("Invalid code point");if((t-=4)<0)break;r.push(n>>18|240,n>>12&63|128,n>>6&63|128,63&n|128)}}return r}function F(e){return i.toByteArray(function(e){if((e=function(e){return e.trim?e.trim():e.replace(/^\s+|\s+$/g,"")}(e).replace(U,"")).length<2)return"";for(;e.length%4!=0;)e+="=";return e}(e))}function K(e,t,n,i){for(var o=0;o=t.length||o>=e.length);++o)t[o+n]=e[o];return o}}).call(t,n("DuR2"))},"6BaH":function(e,t,n){"use strict";var i=n("sIYO");t.multicast=function(e,t){return function(n){var r;if(r="function"==typeof e?e:function(){return e},"function"==typeof t)return n.lift(new o(r,t));var l=Object.create(n,i.connectableObservableDescriptor);return l.source=n,l.subjectFactory=r,l}};var o=function(){function e(e,t){this.subjectFactory=e,this.selector=t}return e.prototype.call=function(e,t){var n=this.selector,i=this.subjectFactory(),o=n(i).subscribe(e);return o.add(t.subscribe(i)),o},e}();t.MulticastOperator=o},"6Yye":function(e,t,n){"use strict";var i=n("rCTf"),o=n("+4ur");i.Observable.prototype.catch=o._catch,i.Observable.prototype._catch=o._catch},"78zf":function(e,t,n){"use strict";var i=n("xgwM").__extends,o=n("xgwM").__decorate,r=n("xgwM").__metadata;Object.defineProperty(t,"__esModule",{value:!0});var l,u=n("CmJd"),a=n("4KnF");!function(e){e[e.leftClick=0]="leftClick",e[e.middleClick=1]="middleClick",e[e.rightClick=2]="rightClick",e[e.moveUp=3]="moveUp",e[e.moveDown=4]="moveDown",e[e.moveLeft=5]="moveLeft",e[e.moveRight=6]="moveRight",e[e.scrollUp=7]="scrollUp",e[e.scrollDown=8]="scrollDown",e[e.scrollLeft=9]="scrollLeft",e[e.scrollRight=10]="scrollRight",e[e.accelerate=11]="accelerate",e[e.decelerate=12]="decelerate"}(l=t.MouseActionParam||(t.MouseActionParam={})),t.MouseAction=function(e){function t(t){var n=e.call(this)||this;return t?(n.mouseAction=t.mouseAction,n):n}return i(t,e),t.prototype.fromJsonObject=function(e){return this.assertKeyActionType(e),this.mouseAction=l[e.mouseAction],this},t.prototype.fromBinary=function(e){return this.readAndAssertKeyActionId(e),this.mouseAction=e.readUInt8(),this},t.prototype.toJsonObject=function(){return{keyActionType:a.keyActionType.MouseAction,mouseAction:l[this.mouseAction]}},t.prototype.toBinary=function(e){e.writeUInt8(a.KeyActionId.MouseAction),e.writeUInt8(this.mouseAction)},t.prototype.toString=function(){return''},t.prototype.getName=function(){return"MouseAction"},o([u.assertEnum(l),r("design:type",Number)],t.prototype,"mouseAction",void 0),t}(a.KeyAction)},"7DMc":function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),n.d(t,"AbstractControlDirective",function(){return s}),n.d(t,"AbstractFormGroupDirective",function(){return ie}),n.d(t,"CheckboxControlValueAccessor",function(){return _}),n.d(t,"ControlContainer",function(){return c}),n.d(t,"NG_VALUE_ACCESSOR",function(){return b}),n.d(t,"COMPOSITION_BUFFER_MODE",function(){return A}),n.d(t,"DefaultValueAccessor",function(){return T}),n.d(t,"NgControl",function(){return E}),n.d(t,"NgControlStatus",function(){return le}),n.d(t,"NgControlStatusGroup",function(){return ue}),n.d(t,"NgForm",function(){return ge}),n.d(t,"NgModel",function(){return xe}),n.d(t,"NgModelGroup",function(){return Ae}),n.d(t,"RadioControlValueAccessor",function(){return R}),n.d(t,"FormControlDirective",function(){return Me}),n.d(t,"FormControlName",function(){return Ue}),n.d(t,"FormGroupDirective",function(){return Pe}),n.d(t,"FormArrayName",function(){return Ne}),n.d(t,"FormGroupName",function(){return Re}),n.d(t,"NgSelectOption",function(){return V}),n.d(t,"SelectControlValueAccessor",function(){return U}),n.d(t,"SelectMultipleControlValueAccessor",function(){return B}),n.d(t,"CheckboxRequiredValidator",function(){return Be}),n.d(t,"EmailValidator",function(){return We}),n.d(t,"MaxLengthValidator",function(){return Ge}),n.d(t,"MinLengthValidator",function(){return $e}),n.d(t,"PatternValidator",function(){return Qe}),n.d(t,"RequiredValidator",function(){return Ke}),n.d(t,"FormBuilder",function(){return Je}),n.d(t,"AbstractControl",function(){return de}),n.d(t,"FormArray",function(){return he}),n.d(t,"FormControl",function(){return pe}),n.d(t,"FormGroup",function(){return fe}),n.d(t,"NG_ASYNC_VALIDATORS",function(){return f}),n.d(t,"NG_VALIDATORS",function(){return p}),n.d(t,"Validators",function(){return y}),n.d(t,"VERSION",function(){return Ze}),n.d(t,"FormsModule",function(){return ot}),n.d(t,"ReactiveFormsModule",function(){return rt}),n.d(t,"\u0275ba",function(){return it}),n.d(t,"\u0275z",function(){return nt}),n.d(t,"\u0275x",function(){return et}),n.d(t,"\u0275y",function(){return tt}),n.d(t,"\u0275a",function(){return k}),n.d(t,"\u0275b",function(){return w}),n.d(t,"\u0275c",function(){return oe}),n.d(t,"\u0275d",function(){return re}),n.d(t,"\u0275e",function(){return ye}),n.d(t,"\u0275f",function(){return Te}),n.d(t,"\u0275g",function(){return we}),n.d(t,"\u0275bf",function(){return Xe}),n.d(t,"\u0275bb",function(){return O}),n.d(t,"\u0275bc",function(){return S}),n.d(t,"\u0275h",function(){return P}),n.d(t,"\u0275i",function(){return I}),n.d(t,"\u0275bd",function(){return D}),n.d(t,"\u0275be",function(){return N}),n.d(t,"\u0275j",function(){return Se}),n.d(t,"\u0275k",function(){return Le}),n.d(t,"\u0275l",function(){return Ee}),n.d(t,"\u0275n",function(){return De}),n.d(t,"\u0275m",function(){return Ie}),n.d(t,"\u0275o",function(){return j}),n.d(t,"\u0275q",function(){return H}),n.d(t,"\u0275p",function(){return F}),n.d(t,"\u0275s",function(){return Fe}),n.d(t,"\u0275t",function(){return He}),n.d(t,"\u0275v",function(){return qe}),n.d(t,"\u0275u",function(){return ze}),n.d(t,"\u0275w",function(){return Ye}),n.d(t,"\u0275r",function(){return Ve});var i=n("TToO"),o=n("WT6e"),r=n("7rB9"),l=n("ioK+"),u=n("xAJs"),a=n("OE0E"),s=function(){function e(){}return Object.defineProperty(e.prototype,"value",{get:function(){return this.control?this.control.value:null},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"valid",{get:function(){return this.control?this.control.valid:null},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"invalid",{get:function(){return this.control?this.control.invalid:null},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"pending",{get:function(){return this.control?this.control.pending:null},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"disabled",{get:function(){return this.control?this.control.disabled:null},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"enabled",{get:function(){return this.control?this.control.enabled:null},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"errors",{get:function(){return this.control?this.control.errors:null},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"pristine",{get:function(){return this.control?this.control.pristine:null},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"dirty",{get:function(){return this.control?this.control.dirty:null},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"touched",{get:function(){return this.control?this.control.touched:null},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"status",{get:function(){return this.control?this.control.status:null},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"untouched",{get:function(){return this.control?this.control.untouched:null},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"statusChanges",{get:function(){return this.control?this.control.statusChanges:null},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"valueChanges",{get:function(){return this.control?this.control.valueChanges:null},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"path",{get:function(){return null},enumerable:!0,configurable:!0}),e.prototype.reset=function(e){void 0===e&&(e=void 0),this.control&&this.control.reset(e)},e.prototype.hasError=function(e,t){return!!this.control&&this.control.hasError(e,t)},e.prototype.getError=function(e,t){return this.control?this.control.getError(e,t):null},e}(),c=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Object(i.__extends)(t,e),Object.defineProperty(t.prototype,"formDirective",{get:function(){return null},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"path",{get:function(){return null},enumerable:!0,configurable:!0}),t}(s);function d(e){return null==e||0===e.length}var p=new o.InjectionToken("NgValidators"),f=new o.InjectionToken("NgAsyncValidators"),h=/^(?=.{1,254}$)(?=.{1,64}@)[-!#$%&'*+/0-9=?A-Z^_`a-z{|}~]+(\.[-!#$%&'*+/0-9=?A-Z^_`a-z{|}~]+)*@[A-Za-z0-9]([A-Za-z0-9-]{0,61}[A-Za-z0-9])?(\.[A-Za-z0-9]([A-Za-z0-9-]{0,61}[A-Za-z0-9])?)*$/,y=function(){function e(){}return e.min=function(e){return function(t){if(d(t.value)||d(e))return null;var n=parseFloat(t.value);return!isNaN(n)&&ne?{max:{max:e,actual:t.value}}:null}},e.required=function(e){return d(e.value)?{required:!0}:null},e.requiredTrue=function(e){return!0===e.value?null:{required:!0}},e.email=function(e){return h.test(e.value)?null:{email:!0}},e.minLength=function(e){return function(t){if(d(t.value))return null;var n=t.value?t.value.length:0;return ne?{maxlength:{requiredLength:e,actualLength:n}}:null}},e.pattern=function(t){return t?("string"==typeof t?(i="","^"!==t.charAt(0)&&(i+="^"),i+=t,"$"!==t.charAt(t.length-1)&&(i+="$"),n=new RegExp(i)):(i=t.toString(),n=t),function(e){if(d(e.value))return null;var t=e.value;return n.test(t)?null:{pattern:{requiredPattern:i,actualValue:t}}}):e.nullValidator;var n,i},e.nullValidator=function(e){return null},e.compose=function(e){if(!e)return null;var t=e.filter(m);return 0==t.length?null:function(e){return v(function(e,n){return t.map(function(t){return t(e)})}(e))}},e.composeAsync=function(e){if(!e)return null;var t=e.filter(m);return 0==t.length?null:function(e){var n=function(e,n){return t.map(function(t){return t(e)})}(e).map(g);return u.map.call(Object(r.forkJoin)(n),v)}},e}();function m(e){return null!=e}function g(e){var t=Object(o["\u0275isPromise"])(e)?Object(l.fromPromise)(e):e;if(!Object(o["\u0275isObservable"])(t))throw new Error("Expected validator to return Promise or Observable.");return t}function v(e){var t=e.reduce(function(e,t){return null!=t?Object(i.__assign)({},e,t):e},{});return 0===Object.keys(t).length?null:t}var b=new o.InjectionToken("NgValueAccessor"),k={provide:b,useExisting:Object(o.forwardRef)(function(){return _}),multi:!0},_=function(){function e(e,t){this._renderer=e,this._elementRef=t,this.onChange=function(e){},this.onTouched=function(){}}return e.prototype.writeValue=function(e){this._renderer.setProperty(this._elementRef.nativeElement,"checked",e)},e.prototype.registerOnChange=function(e){this.onChange=e},e.prototype.registerOnTouched=function(e){this.onTouched=e},e.prototype.setDisabledState=function(e){this._renderer.setProperty(this._elementRef.nativeElement,"disabled",e)},e}(),w={provide:b,useExisting:Object(o.forwardRef)(function(){return T}),multi:!0},A=new o.InjectionToken("CompositionEventMode"),T=function(){function e(e,t,n){var i;this._renderer=e,this._elementRef=t,this._compositionMode=n,this.onChange=function(e){},this.onTouched=function(){},this._composing=!1,null==this._compositionMode&&(this._compositionMode=(i=Object(a.s)()?Object(a.s)().getUserAgent():"",!/android (\d+)/.test(i.toLowerCase())))}return e.prototype.writeValue=function(e){this._renderer.setProperty(this._elementRef.nativeElement,"value",null==e?"":e)},e.prototype.registerOnChange=function(e){this.onChange=e},e.prototype.registerOnTouched=function(e){this.onTouched=e},e.prototype.setDisabledState=function(e){this._renderer.setProperty(this._elementRef.nativeElement,"disabled",e)},e.prototype._handleInput=function(e){(!this._compositionMode||this._compositionMode&&!this._composing)&&this.onChange(e)},e.prototype._compositionStart=function(){this._composing=!0},e.prototype._compositionEnd=function(e){this._composing=!1,this._compositionMode&&this.onChange(e)},e}();function C(e){return e.validate?function(t){return e.validate(t)}:e}function x(e){return e.validate?function(t){return e.validate(t)}:e}var O={provide:b,useExisting:Object(o.forwardRef)(function(){return S}),multi:!0},S=function(){function e(e,t){this._renderer=e,this._elementRef=t,this.onChange=function(e){},this.onTouched=function(){}}return e.prototype.writeValue=function(e){this._renderer.setProperty(this._elementRef.nativeElement,"value",null==e?"":e)},e.prototype.registerOnChange=function(e){this.onChange=function(t){e(""==t?null:parseFloat(t))}},e.prototype.registerOnTouched=function(e){this.onTouched=e},e.prototype.setDisabledState=function(e){this._renderer.setProperty(this._elementRef.nativeElement,"disabled",e)},e}();function M(){throw new Error("unimplemented")}var E=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t._parent=null,t.name=null,t.valueAccessor=null,t._rawValidators=[],t._rawAsyncValidators=[],t}return Object(i.__extends)(t,e),Object.defineProperty(t.prototype,"validator",{get:function(){return M()},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"asyncValidator",{get:function(){return M()},enumerable:!0,configurable:!0}),t}(s),P={provide:b,useExisting:Object(o.forwardRef)(function(){return R}),multi:!0},I=function(){function e(){this._accessors=[]}return e.prototype.add=function(e,t){this._accessors.push([e,t])},e.prototype.remove=function(e){for(var t=this._accessors.length-1;t>=0;--t)if(this._accessors[t][1]===e)return void this._accessors.splice(t,1)},e.prototype.select=function(e){var t=this;this._accessors.forEach(function(n){t._isSameGroup(n,e)&&n[1]!==e&&n[1].fireUncheck(e.value)})},e.prototype._isSameGroup=function(e,t){return!!e[0].control&&e[0]._parent===t._control._parent&&e[1].name===t.name},e}(),R=function(){function e(e,t,n,i){this._renderer=e,this._elementRef=t,this._registry=n,this._injector=i,this.onChange=function(){},this.onTouched=function(){}}return e.prototype.ngOnInit=function(){this._control=this._injector.get(E),this._checkName(),this._registry.add(this._control,this)},e.prototype.ngOnDestroy=function(){this._registry.remove(this)},e.prototype.writeValue=function(e){this._state=e===this.value,this._renderer.setProperty(this._elementRef.nativeElement,"checked",this._state)},e.prototype.registerOnChange=function(e){var t=this;this._fn=e,this.onChange=function(){e(t.value),t._registry.select(t)}},e.prototype.fireUncheck=function(e){this.writeValue(e)},e.prototype.registerOnTouched=function(e){this.onTouched=e},e.prototype.setDisabledState=function(e){this._renderer.setProperty(this._elementRef.nativeElement,"disabled",e)},e.prototype._checkName=function(){this.name&&this.formControlName&&this.name!==this.formControlName&&this._throwNameError(),!this.name&&this.formControlName&&(this.name=this.formControlName)},e.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 ')},e}(),D={provide:b,useExisting:Object(o.forwardRef)(function(){return N}),multi:!0},N=function(){function e(e,t){this._renderer=e,this._elementRef=t,this.onChange=function(e){},this.onTouched=function(){}}return e.prototype.writeValue=function(e){this._renderer.setProperty(this._elementRef.nativeElement,"value",parseFloat(e))},e.prototype.registerOnChange=function(e){this.onChange=function(t){e(""==t?null:parseFloat(t))}},e.prototype.registerOnTouched=function(e){this.onTouched=e},e.prototype.setDisabledState=function(e){this._renderer.setProperty(this._elementRef.nativeElement,"disabled",e)},e}(),j={provide:b,useExisting:Object(o.forwardRef)(function(){return U}),multi:!0};function L(e,t){return null==e?""+t:(t&&"object"==typeof t&&(t="Object"),(e+": "+t).slice(0,50))}var U=function(){function e(e,t){this._renderer=e,this._elementRef=t,this._optionMap=new Map,this._idCounter=0,this.onChange=function(e){},this.onTouched=function(){},this._compareWith=o["\u0275looseIdentical"]}return Object.defineProperty(e.prototype,"compareWith",{set:function(e){if("function"!=typeof e)throw new Error("compareWith must be a function, but received "+JSON.stringify(e));this._compareWith=e},enumerable:!0,configurable:!0}),e.prototype.writeValue=function(e){this.value=e;var t=this._getOptionId(e);null==t&&this._renderer.setProperty(this._elementRef.nativeElement,"selectedIndex",-1);var n=L(t,e);this._renderer.setProperty(this._elementRef.nativeElement,"value",n)},e.prototype.registerOnChange=function(e){var t=this;this.onChange=function(n){t.value=t._getOptionValue(n),e(t.value)}},e.prototype.registerOnTouched=function(e){this.onTouched=e},e.prototype.setDisabledState=function(e){this._renderer.setProperty(this._elementRef.nativeElement,"disabled",e)},e.prototype._registerOption=function(){return(this._idCounter++).toString()},e.prototype._getOptionId=function(e){for(var t=0,n=Array.from(this._optionMap.keys());t-1)}}else t=function(e,t){e._setSelected(!1)};this._optionMap.forEach(t)},e.prototype.registerOnChange=function(e){var t=this;this.onChange=function(n){var i=[];if(n.hasOwnProperty("selectedOptions"))for(var o=n.selectedOptions,r=0;r1?"path: '"+e.path.join(" -> ")+"'":e.path[0]?"name: '"+e.path+"'":"unspecified name attribute",new Error(t+" "+n)}function Q(e){return null!=e?y.compose(e.map(C)):null}function J(e){return null!=e?y.composeAsync(e.map(x)):null}function Z(e,t){if(!e.hasOwnProperty("model"))return!1;var n=e.model;return!!n.isFirstChange()||!Object(o["\u0275looseIdentical"])(t,n.currentValue)}var X=[_,N,S,U,B,R];function ee(e,t){e._syncPendingControls(),t.forEach(function(e){var t=e.control;"submit"===t.updateOn&&t._pendingChange&&(e.viewToModelUpdate(t._pendingValue),t._pendingChange=!1)})}function te(e,t){if(!t)return null;var n=void 0,i=void 0,o=void 0;return t.forEach(function(t){var r;t.constructor===T?n=t:(r=t,X.some(function(e){return r.constructor===e})?(i&&Y(e,"More than one built-in value accessor matches form control with"),i=t):(o&&Y(e,"More than one custom value accessor matches form control with"),o=t))}),o||i||n||(Y(e,"No valid value accessor for form control with"),null)}function ne(e,t){var n=e.indexOf(t);n>-1&&e.splice(n,1)}var ie=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Object(i.__extends)(t,e),t.prototype.ngOnInit=function(){this._checkParentType(),this.formDirective.addFormGroup(this)},t.prototype.ngOnDestroy=function(){this.formDirective&&this.formDirective.removeFormGroup(this)},Object.defineProperty(t.prototype,"control",{get:function(){return this.formDirective.getFormGroup(this)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"path",{get:function(){return W(this.name,this._parent)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"formDirective",{get:function(){return this._parent?this._parent.formDirective:null},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"validator",{get:function(){return Q(this._validators)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"asyncValidator",{get:function(){return J(this._asyncValidators)},enumerable:!0,configurable:!0}),t.prototype._checkParentType=function(){},t}(c),oe=function(){function e(e){this._cd=e}return Object.defineProperty(e.prototype,"ngClassUntouched",{get:function(){return!!this._cd.control&&this._cd.control.untouched},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"ngClassTouched",{get:function(){return!!this._cd.control&&this._cd.control.touched},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"ngClassPristine",{get:function(){return!!this._cd.control&&this._cd.control.pristine},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"ngClassDirty",{get:function(){return!!this._cd.control&&this._cd.control.dirty},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"ngClassValid",{get:function(){return!!this._cd.control&&this._cd.control.valid},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"ngClassInvalid",{get:function(){return!!this._cd.control&&this._cd.control.invalid},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"ngClassPending",{get:function(){return!!this._cd.control&&this._cd.control.pending},enumerable:!0,configurable:!0}),e}(),re={"[class.ng-untouched]":"ngClassUntouched","[class.ng-touched]":"ngClassTouched","[class.ng-pristine]":"ngClassPristine","[class.ng-dirty]":"ngClassDirty","[class.ng-valid]":"ngClassValid","[class.ng-invalid]":"ngClassInvalid","[class.ng-pending]":"ngClassPending"},le=function(e){function t(t){return e.call(this,t)||this}return Object(i.__extends)(t,e),t}(oe),ue=function(e){function t(t){return e.call(this,t)||this}return Object(i.__extends)(t,e),t}(oe);function ae(e){var t=ce(e)?e.validators:e;return Array.isArray(t)?Q(t):t||null}function se(e,t){var n=ce(t)?t.asyncValidators:e;return Array.isArray(n)?J(n):n||null}function ce(e){return null!=e&&!Array.isArray(e)&&"object"==typeof e}var de=function(){function e(e,t){this.validator=e,this.asyncValidator=t,this._onCollectionChange=function(){},this.pristine=!0,this.touched=!1,this._onDisabledChange=[]}return Object.defineProperty(e.prototype,"parent",{get:function(){return this._parent},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"valid",{get:function(){return"VALID"===this.status},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"invalid",{get:function(){return"INVALID"===this.status},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"pending",{get:function(){return"PENDING"==this.status},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"disabled",{get:function(){return"DISABLED"===this.status},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"enabled",{get:function(){return"DISABLED"!==this.status},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"dirty",{get:function(){return!this.pristine},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"untouched",{get:function(){return!this.touched},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"updateOn",{get:function(){return this._updateOn?this._updateOn:this.parent?this.parent.updateOn:"change"},enumerable:!0,configurable:!0}),e.prototype.setValidators=function(e){this.validator=ae(e)},e.prototype.setAsyncValidators=function(e){this.asyncValidator=se(e)},e.prototype.clearValidators=function(){this.validator=null},e.prototype.clearAsyncValidators=function(){this.asyncValidator=null},e.prototype.markAsTouched=function(e){void 0===e&&(e={}),this.touched=!0,this._parent&&!e.onlySelf&&this._parent.markAsTouched(e)},e.prototype.markAsUntouched=function(e){void 0===e&&(e={}),this.touched=!1,this._pendingTouched=!1,this._forEachChild(function(e){e.markAsUntouched({onlySelf:!0})}),this._parent&&!e.onlySelf&&this._parent._updateTouched(e)},e.prototype.markAsDirty=function(e){void 0===e&&(e={}),this.pristine=!1,this._parent&&!e.onlySelf&&this._parent.markAsDirty(e)},e.prototype.markAsPristine=function(e){void 0===e&&(e={}),this.pristine=!0,this._pendingDirty=!1,this._forEachChild(function(e){e.markAsPristine({onlySelf:!0})}),this._parent&&!e.onlySelf&&this._parent._updatePristine(e)},e.prototype.markAsPending=function(e){void 0===e&&(e={}),this.status="PENDING",this._parent&&!e.onlySelf&&this._parent.markAsPending(e)},e.prototype.disable=function(e){void 0===e&&(e={}),this.status="DISABLED",this.errors=null,this._forEachChild(function(t){t.disable(Object(i.__assign)({},e,{onlySelf:!0}))}),this._updateValue(),!1!==e.emitEvent&&(this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._updateAncestors(e),this._onDisabledChange.forEach(function(e){return e(!0)})},e.prototype.enable=function(e){void 0===e&&(e={}),this.status="VALID",this._forEachChild(function(t){t.enable(Object(i.__assign)({},e,{onlySelf:!0}))}),this.updateValueAndValidity({onlySelf:!0,emitEvent:e.emitEvent}),this._updateAncestors(e),this._onDisabledChange.forEach(function(e){return e(!1)})},e.prototype._updateAncestors=function(e){this._parent&&!e.onlySelf&&(this._parent.updateValueAndValidity(e),this._parent._updatePristine(),this._parent._updateTouched())},e.prototype.setParent=function(e){this._parent=e},e.prototype.updateValueAndValidity=function(e){void 0===e&&(e={}),this._setInitialStatus(),this._updateValue(),this.enabled&&(this._cancelExistingSubscription(),this.errors=this._runValidator(),this.status=this._calculateStatus(),"VALID"!==this.status&&"PENDING"!==this.status||this._runAsyncValidator(e.emitEvent)),!1!==e.emitEvent&&(this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._parent&&!e.onlySelf&&this._parent.updateValueAndValidity(e)},e.prototype._updateTreeValidity=function(e){void 0===e&&(e={emitEvent:!0}),this._forEachChild(function(t){return t._updateTreeValidity(e)}),this.updateValueAndValidity({onlySelf:!0,emitEvent:e.emitEvent})},e.prototype._setInitialStatus=function(){this.status=this._allControlsDisabled()?"DISABLED":"VALID"},e.prototype._runValidator=function(){return this.validator?this.validator(this):null},e.prototype._runAsyncValidator=function(e){var t=this;if(this.asyncValidator){this.status="PENDING";var n=g(this.asyncValidator(this));this._asyncValidationSubscription=n.subscribe(function(n){return t.setErrors(n,{emitEvent:e})})}},e.prototype._cancelExistingSubscription=function(){this._asyncValidationSubscription&&this._asyncValidationSubscription.unsubscribe()},e.prototype.setErrors=function(e,t){void 0===t&&(t={}),this.errors=e,this._updateControlsErrors(!1!==t.emitEvent)},e.prototype.get=function(e){return function(e,t,n){return null==t?null:(t instanceof Array||(t=t.split(".")),t instanceof Array&&0===t.length?null:t.reduce(function(e,t){return e instanceof fe?e.controls[t]||null:e instanceof he&&e.at(t)||null},e))}(this,e)},e.prototype.getError=function(e,t){var n=t?this.get(t):this;return n&&n.errors?n.errors[e]:null},e.prototype.hasError=function(e,t){return!!this.getError(e,t)},Object.defineProperty(e.prototype,"root",{get:function(){for(var e=this;e._parent;)e=e._parent;return e},enumerable:!0,configurable:!0}),e.prototype._updateControlsErrors=function(e){this.status=this._calculateStatus(),e&&this.statusChanges.emit(this.status),this._parent&&this._parent._updateControlsErrors(e)},e.prototype._initObservables=function(){this.valueChanges=new o.EventEmitter,this.statusChanges=new o.EventEmitter},e.prototype._calculateStatus=function(){return this._allControlsDisabled()?"DISABLED":this.errors?"INVALID":this._anyControlsHaveStatus("PENDING")?"PENDING":this._anyControlsHaveStatus("INVALID")?"INVALID":"VALID"},e.prototype._anyControlsHaveStatus=function(e){return this._anyControls(function(t){return t.status===e})},e.prototype._anyControlsDirty=function(){return this._anyControls(function(e){return e.dirty})},e.prototype._anyControlsTouched=function(){return this._anyControls(function(e){return e.touched})},e.prototype._updatePristine=function(e){void 0===e&&(e={}),this.pristine=!this._anyControlsDirty(),this._parent&&!e.onlySelf&&this._parent._updatePristine(e)},e.prototype._updateTouched=function(e){void 0===e&&(e={}),this.touched=this._anyControlsTouched(),this._parent&&!e.onlySelf&&this._parent._updateTouched(e)},e.prototype._isBoxedValue=function(e){return"object"==typeof e&&null!==e&&2===Object.keys(e).length&&"value"in e&&"disabled"in e},e.prototype._registerOnCollectionChange=function(e){this._onCollectionChange=e},e.prototype._setUpdateStrategy=function(e){ce(e)&&null!=e.updateOn&&(this._updateOn=e.updateOn)},e}(),pe=function(e){function t(t,n,i){void 0===t&&(t=null);var o=e.call(this,ae(n),se(i,n))||this;return o._onChange=[],o._applyFormState(t),o._setUpdateStrategy(n),o.updateValueAndValidity({onlySelf:!0,emitEvent:!1}),o._initObservables(),o}return Object(i.__extends)(t,e),t.prototype.setValue=function(e,t){var n=this;void 0===t&&(t={}),this.value=this._pendingValue=e,this._onChange.length&&!1!==t.emitModelToViewChange&&this._onChange.forEach(function(e){return e(n.value,!1!==t.emitViewToModelChange)}),this.updateValueAndValidity(t)},t.prototype.patchValue=function(e,t){void 0===t&&(t={}),this.setValue(e,t)},t.prototype.reset=function(e,t){void 0===e&&(e=null),void 0===t&&(t={}),this._applyFormState(e),this.markAsPristine(t),this.markAsUntouched(t),this.setValue(this.value,t),this._pendingChange=!1},t.prototype._updateValue=function(){},t.prototype._anyControls=function(e){return!1},t.prototype._allControlsDisabled=function(){return this.disabled},t.prototype.registerOnChange=function(e){this._onChange.push(e)},t.prototype._clearChangeFns=function(){this._onChange=[],this._onDisabledChange=[],this._onCollectionChange=function(){}},t.prototype.registerOnDisabledChange=function(e){this._onDisabledChange.push(e)},t.prototype._forEachChild=function(e){},t.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))},t.prototype._applyFormState=function(e){this._isBoxedValue(e)?(this.value=this._pendingValue=e.value,e.disabled?this.disable({onlySelf:!0,emitEvent:!1}):this.enable({onlySelf:!0,emitEvent:!1})):this.value=this._pendingValue=e},t}(de),fe=function(e){function t(t,n,i){var o=e.call(this,ae(n),se(i,n))||this;return o.controls=t,o._initObservables(),o._setUpdateStrategy(n),o._setUpControls(),o.updateValueAndValidity({onlySelf:!0,emitEvent:!1}),o}return Object(i.__extends)(t,e),t.prototype.registerControl=function(e,t){return this.controls[e]?this.controls[e]:(this.controls[e]=t,t.setParent(this),t._registerOnCollectionChange(this._onCollectionChange),t)},t.prototype.addControl=function(e,t){this.registerControl(e,t),this.updateValueAndValidity(),this._onCollectionChange()},t.prototype.removeControl=function(e){this.controls[e]&&this.controls[e]._registerOnCollectionChange(function(){}),delete this.controls[e],this.updateValueAndValidity(),this._onCollectionChange()},t.prototype.setControl=function(e,t){this.controls[e]&&this.controls[e]._registerOnCollectionChange(function(){}),delete this.controls[e],t&&this.registerControl(e,t),this.updateValueAndValidity(),this._onCollectionChange()},t.prototype.contains=function(e){return this.controls.hasOwnProperty(e)&&this.controls[e].enabled},t.prototype.setValue=function(e,t){var n=this;void 0===t&&(t={}),this._checkAllValuesPresent(e),Object.keys(e).forEach(function(i){n._throwIfControlMissing(i),n.controls[i].setValue(e[i],{onlySelf:!0,emitEvent:t.emitEvent})}),this.updateValueAndValidity(t)},t.prototype.patchValue=function(e,t){var n=this;void 0===t&&(t={}),Object.keys(e).forEach(function(i){n.controls[i]&&n.controls[i].patchValue(e[i],{onlySelf:!0,emitEvent:t.emitEvent})}),this.updateValueAndValidity(t)},t.prototype.reset=function(e,t){void 0===e&&(e={}),void 0===t&&(t={}),this._forEachChild(function(n,i){n.reset(e[i],{onlySelf:!0,emitEvent:t.emitEvent})}),this.updateValueAndValidity(t),this._updatePristine(t),this._updateTouched(t)},t.prototype.getRawValue=function(){return this._reduceChildren({},function(e,t,n){return e[n]=t instanceof pe?t.value:t.getRawValue(),e})},t.prototype._syncPendingControls=function(){var e=this._reduceChildren(!1,function(e,t){return!!t._syncPendingControls()||e});return e&&this.updateValueAndValidity({onlySelf:!0}),e},t.prototype._throwIfControlMissing=function(e){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[e])throw new Error("Cannot find form control with name: "+e+".")},t.prototype._forEachChild=function(e){var t=this;Object.keys(this.controls).forEach(function(n){return e(t.controls[n],n)})},t.prototype._setUpControls=function(){var e=this;this._forEachChild(function(t){t.setParent(e),t._registerOnCollectionChange(e._onCollectionChange)})},t.prototype._updateValue=function(){this.value=this._reduceValue()},t.prototype._anyControls=function(e){var t=this,n=!1;return this._forEachChild(function(i,o){n=n||t.contains(o)&&e(i)}),n},t.prototype._reduceValue=function(){var e=this;return this._reduceChildren({},function(t,n,i){return(n.enabled||e.disabled)&&(t[i]=n.value),t})},t.prototype._reduceChildren=function(e,t){var n=e;return this._forEachChild(function(e,i){n=t(n,e,i)}),n},t.prototype._allControlsDisabled=function(){for(var e=0,t=Object.keys(this.controls);e0||this.disabled},t.prototype._checkAllValuesPresent=function(e){this._forEachChild(function(t,n){if(void 0===e[n])throw new Error("Must supply a value for form control with name: '"+n+"'.")})},t}(de),he=function(e){function t(t,n,i){var o=e.call(this,ae(n),se(i,n))||this;return o.controls=t,o._initObservables(),o._setUpdateStrategy(n),o._setUpControls(),o.updateValueAndValidity({onlySelf:!0,emitEvent:!1}),o}return Object(i.__extends)(t,e),t.prototype.at=function(e){return this.controls[e]},t.prototype.push=function(e){this.controls.push(e),this._registerControl(e),this.updateValueAndValidity(),this._onCollectionChange()},t.prototype.insert=function(e,t){this.controls.splice(e,0,t),this._registerControl(t),this.updateValueAndValidity()},t.prototype.removeAt=function(e){this.controls[e]&&this.controls[e]._registerOnCollectionChange(function(){}),this.controls.splice(e,1),this.updateValueAndValidity()},t.prototype.setControl=function(e,t){this.controls[e]&&this.controls[e]._registerOnCollectionChange(function(){}),this.controls.splice(e,1),t&&(this.controls.splice(e,0,t),this._registerControl(t)),this.updateValueAndValidity(),this._onCollectionChange()},Object.defineProperty(t.prototype,"length",{get:function(){return this.controls.length},enumerable:!0,configurable:!0}),t.prototype.setValue=function(e,t){var n=this;void 0===t&&(t={}),this._checkAllValuesPresent(e),e.forEach(function(e,i){n._throwIfControlMissing(i),n.at(i).setValue(e,{onlySelf:!0,emitEvent:t.emitEvent})}),this.updateValueAndValidity(t)},t.prototype.patchValue=function(e,t){var n=this;void 0===t&&(t={}),e.forEach(function(e,i){n.at(i)&&n.at(i).patchValue(e,{onlySelf:!0,emitEvent:t.emitEvent})}),this.updateValueAndValidity(t)},t.prototype.reset=function(e,t){void 0===e&&(e=[]),void 0===t&&(t={}),this._forEachChild(function(n,i){n.reset(e[i],{onlySelf:!0,emitEvent:t.emitEvent})}),this.updateValueAndValidity(t),this._updatePristine(t),this._updateTouched(t)},t.prototype.getRawValue=function(){return this.controls.map(function(e){return e instanceof pe?e.value:e.getRawValue()})},t.prototype._syncPendingControls=function(){var e=this.controls.reduce(function(e,t){return!!t._syncPendingControls()||e},!1);return e&&this.updateValueAndValidity({onlySelf:!0}),e},t.prototype._throwIfControlMissing=function(e){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(e))throw new Error("Cannot find form control at index "+e)},t.prototype._forEachChild=function(e){this.controls.forEach(function(t,n){e(t,n)})},t.prototype._updateValue=function(){var e=this;this.value=this.controls.filter(function(t){return t.enabled||e.disabled}).map(function(e){return e.value})},t.prototype._anyControls=function(e){return this.controls.some(function(t){return t.enabled&&e(t)})},t.prototype._setUpControls=function(){var e=this;this._forEachChild(function(t){return e._registerControl(t)})},t.prototype._checkAllValuesPresent=function(e){this._forEachChild(function(t,n){if(void 0===e[n])throw new Error("Must supply a value for form control at index: "+n+".")})},t.prototype._allControlsDisabled=function(){for(var e=0,t=this.controls;e0||this.disabled},t.prototype._registerControl=function(e){e.setParent(this),e._registerOnCollectionChange(this._onCollectionChange)},t}(de),ye={provide:c,useExisting:Object(o.forwardRef)(function(){return ge})},me=Promise.resolve(null),ge=function(e){function t(t,n){var i=e.call(this)||this;return i.submitted=!1,i._directives=[],i.ngSubmit=new o.EventEmitter,i.form=new fe({},Q(t),J(n)),i}return Object(i.__extends)(t,e),t.prototype.ngAfterViewInit=function(){this._setUpdateStrategy()},Object.defineProperty(t.prototype,"formDirective",{get:function(){return this},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"control",{get:function(){return this.form},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"path",{get:function(){return[]},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"controls",{get:function(){return this.form.controls},enumerable:!0,configurable:!0}),t.prototype.addControl=function(e){var t=this;me.then(function(){var n=t._findContainer(e.path);e.control=n.registerControl(e.name,e.control),z(e.control,e),e.control.updateValueAndValidity({emitEvent:!1}),t._directives.push(e)})},t.prototype.getControl=function(e){return this.form.get(e.path)},t.prototype.removeControl=function(e){var t=this;me.then(function(){var n=t._findContainer(e.path);n&&n.removeControl(e.name),ne(t._directives,e)})},t.prototype.addFormGroup=function(e){var t=this;me.then(function(){var n=t._findContainer(e.path),i=new fe({});q(i,e),n.registerControl(e.name,i),i.updateValueAndValidity({emitEvent:!1})})},t.prototype.removeFormGroup=function(e){var t=this;me.then(function(){var n=t._findContainer(e.path);n&&n.removeControl(e.name)})},t.prototype.getFormGroup=function(e){return this.form.get(e.path)},t.prototype.updateModel=function(e,t){var n=this;me.then(function(){n.form.get(e.path).setValue(t)})},t.prototype.setValue=function(e){this.control.setValue(e)},t.prototype.onSubmit=function(e){return this.submitted=!0,ee(this.form,this._directives),this.ngSubmit.emit(e),!1},t.prototype.onReset=function(){this.resetForm()},t.prototype.resetForm=function(e){void 0===e&&(e=void 0),this.form.reset(e),this.submitted=!1},t.prototype._setUpdateStrategy=function(){this.options&&null!=this.options.updateOn&&(this.form._updateOn=this.options.updateOn)},t.prototype._findContainer=function(e){return e.pop(),e.length?this.form.get(e):this.form},t}(c),ve='\n
\n \n
\n\n In your class:\n\n this.myGroup = new FormGroup({\n firstName: new FormControl()\n });',be='\n
\n
\n \n
\n
\n\n In your class:\n\n this.myGroup = new FormGroup({\n person: new FormGroup({ firstName: new FormControl() })\n });',ke='\n
\n
\n \n
\n
',_e=function(){function e(){}return e.modelParentException=function(){throw new Error('\n ngModel cannot be used to register form controls with a parent formGroup directive. Try using\n formGroup\'s partner directive "formControlName" instead. Example:\n\n '+ve+'\n\n Or, if you\'d like to avoid registering this form control, indicate that it\'s standalone in ngModelOptions:\n\n Example:\n\n \n
\n \n \n
\n ')},e.formGroupNameException=function(){throw new Error("\n ngModel cannot be used to register form controls with a parent formGroupName or formArrayName directive.\n\n Option 1: Use formControlName instead of ngModel (reactive strategy):\n\n "+be+"\n\n Option 2: Update ngModel's parent be ngModelGroup (template-driven strategy):\n\n "+ke)},e.missingNameException=function(){throw new Error('If ngModel is used within a form tag, either the name attribute must be set or the form\n control must be defined as \'standalone\' in ngModelOptions.\n\n Example 1: \n Example 2: ')},e.modelGroupParentException=function(){throw new Error("\n ngModelGroup cannot be used with a parent formGroup directive.\n\n Option 1: Use formGroupName instead of ngModelGroup (reactive strategy):\n\n "+be+"\n\n Option 2: Use a regular form tag instead of the formGroup directive (template-driven strategy):\n\n "+ke)},e}(),we={provide:c,useExisting:Object(o.forwardRef)(function(){return Ae})},Ae=function(e){function t(t,n,i){var o=e.call(this)||this;return o._parent=t,o._validators=n,o._asyncValidators=i,o}return Object(i.__extends)(t,e),t.prototype._checkParentType=function(){this._parent instanceof t||this._parent instanceof ge||_e.modelGroupParentException()},t}(ie),Te={provide:E,useExisting:Object(o.forwardRef)(function(){return xe})},Ce=Promise.resolve(null),xe=function(e){function t(t,n,i,r){var l=e.call(this)||this;return l.control=new pe,l._registered=!1,l.update=new o.EventEmitter,l._parent=t,l._rawValidators=n||[],l._rawAsyncValidators=i||[],l.valueAccessor=te(l,r),l}return Object(i.__extends)(t,e),t.prototype.ngOnChanges=function(e){this._checkForErrors(),this._registered||this._setUpControl(),"isDisabled"in e&&this._updateDisabled(e),Z(e,this.viewModel)&&(this._updateValue(this.model),this.viewModel=this.model)},t.prototype.ngOnDestroy=function(){this.formDirective&&this.formDirective.removeControl(this)},Object.defineProperty(t.prototype,"path",{get:function(){return this._parent?W(this.name,this._parent):[this.name]},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"formDirective",{get:function(){return this._parent?this._parent.formDirective:null},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"validator",{get:function(){return Q(this._rawValidators)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"asyncValidator",{get:function(){return J(this._rawAsyncValidators)},enumerable:!0,configurable:!0}),t.prototype.viewToModelUpdate=function(e){this.viewModel=e,this.update.emit(e)},t.prototype._setUpControl=function(){this._setUpdateStrategy(),this._isStandalone()?this._setUpStandalone():this.formDirective.addControl(this),this._registered=!0},t.prototype._setUpdateStrategy=function(){this.options&&null!=this.options.updateOn&&(this.control._updateOn=this.options.updateOn)},t.prototype._isStandalone=function(){return!this._parent||!(!this.options||!this.options.standalone)},t.prototype._setUpStandalone=function(){z(this.control,this),this.control.updateValueAndValidity({emitEvent:!1})},t.prototype._checkForErrors=function(){this._isStandalone()||this._checkParentType(),this._checkName()},t.prototype._checkParentType=function(){!(this._parent instanceof Ae)&&this._parent instanceof ie?_e.formGroupNameException():this._parent instanceof Ae||this._parent instanceof ge||_e.modelParentException()},t.prototype._checkName=function(){this.options&&this.options.name&&(this.name=this.options.name),this._isStandalone()||this.name||_e.missingNameException()},t.prototype._updateValue=function(e){var t=this;Ce.then(function(){t.control.setValue(e,{emitViewToModelChange:!1})})},t.prototype._updateDisabled=function(e){var t=this,n=e.isDisabled.currentValue,i=""===n||n&&"false"!==n;Ce.then(function(){i&&!t.control.disabled?t.control.disable():!i&&t.control.disabled&&t.control.enable()})},t}(E),Oe=function(){function e(){}return e.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 "+ve)},e.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 '+be+"\n\n Option 2: Use ngModel instead of formControlName (template-driven strategy)\n\n "+ke)},e.missingFormException=function(){throw new Error("formGroup expects a FormGroup instance. Please pass one in.\n\n Example:\n\n "+ve)},e.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 "+be)},e.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 });')},e.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 ")},e}(),Se={provide:E,useExisting:Object(o.forwardRef)(function(){return Me})},Me=function(e){function t(t,n,i){var r=e.call(this)||this;return r.update=new o.EventEmitter,r._rawValidators=t||[],r._rawAsyncValidators=n||[],r.valueAccessor=te(r,i),r}return Object(i.__extends)(t,e),Object.defineProperty(t.prototype,"isDisabled",{set:function(e){Oe.disabledAttrWarning()},enumerable:!0,configurable:!0}),t.prototype.ngOnChanges=function(e){this._isControlChanged(e)&&(z(this.form,this),this.control.disabled&&this.valueAccessor.setDisabledState&&this.valueAccessor.setDisabledState(!0),this.form.updateValueAndValidity({emitEvent:!1})),Z(e,this.viewModel)&&(this.form.setValue(this.model),this.viewModel=this.model)},Object.defineProperty(t.prototype,"path",{get:function(){return[]},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"validator",{get:function(){return Q(this._rawValidators)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"asyncValidator",{get:function(){return J(this._rawAsyncValidators)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"control",{get:function(){return this.form},enumerable:!0,configurable:!0}),t.prototype.viewToModelUpdate=function(e){this.viewModel=e,this.update.emit(e)},t.prototype._isControlChanged=function(e){return e.hasOwnProperty("form")},t}(E),Ee={provide:c,useExisting:Object(o.forwardRef)(function(){return Pe})},Pe=function(e){function t(t,n){var i=e.call(this)||this;return i._validators=t,i._asyncValidators=n,i.submitted=!1,i.directives=[],i.form=null,i.ngSubmit=new o.EventEmitter,i}return Object(i.__extends)(t,e),t.prototype.ngOnChanges=function(e){this._checkFormPresent(),e.hasOwnProperty("form")&&(this._updateValidators(),this._updateDomValue(),this._updateRegistrations())},Object.defineProperty(t.prototype,"formDirective",{get:function(){return this},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"control",{get:function(){return this.form},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"path",{get:function(){return[]},enumerable:!0,configurable:!0}),t.prototype.addControl=function(e){var t=this.form.get(e.path);return z(t,e),t.updateValueAndValidity({emitEvent:!1}),this.directives.push(e),t},t.prototype.getControl=function(e){return this.form.get(e.path)},t.prototype.removeControl=function(e){ne(this.directives,e)},t.prototype.addFormGroup=function(e){var t=this.form.get(e.path);q(t,e),t.updateValueAndValidity({emitEvent:!1})},t.prototype.removeFormGroup=function(e){},t.prototype.getFormGroup=function(e){return this.form.get(e.path)},t.prototype.addFormArray=function(e){var t=this.form.get(e.path);q(t,e),t.updateValueAndValidity({emitEvent:!1})},t.prototype.removeFormArray=function(e){},t.prototype.getFormArray=function(e){return this.form.get(e.path)},t.prototype.updateModel=function(e,t){this.form.get(e.path).setValue(t)},t.prototype.onSubmit=function(e){return this.submitted=!0,ee(this.form,this.directives),this.ngSubmit.emit(e),!1},t.prototype.onReset=function(){this.resetForm()},t.prototype.resetForm=function(e){void 0===e&&(e=void 0),this.form.reset(e),this.submitted=!1},t.prototype._updateDomValue=function(){var e=this;this.directives.forEach(function(t){var n=e.form.get(t.path);t.control!==n&&(function(e,t){t.valueAccessor.registerOnChange(function(){return G(t)}),t.valueAccessor.registerOnTouched(function(){return G(t)}),t._rawValidators.forEach(function(e){e.registerOnValidatorChange&&e.registerOnValidatorChange(null)}),t._rawAsyncValidators.forEach(function(e){e.registerOnValidatorChange&&e.registerOnValidatorChange(null)}),e&&e._clearChangeFns()}(t.control,t),n&&z(n,t),t.control=n)}),this.form._updateTreeValidity({emitEvent:!1})},t.prototype._updateRegistrations=function(){var e=this;this.form._registerOnCollectionChange(function(){return e._updateDomValue()}),this._oldForm&&this._oldForm._registerOnCollectionChange(function(){}),this._oldForm=this.form},t.prototype._updateValidators=function(){var e=Q(this._validators);this.form.validator=y.compose([this.form.validator,e]);var t=J(this._asyncValidators);this.form.asyncValidator=y.composeAsync([this.form.asyncValidator,t])},t.prototype._checkFormPresent=function(){this.form||Oe.missingFormException()},t}(c),Ie={provide:c,useExisting:Object(o.forwardRef)(function(){return Re})},Re=function(e){function t(t,n,i){var o=e.call(this)||this;return o._parent=t,o._validators=n,o._asyncValidators=i,o}return Object(i.__extends)(t,e),t.prototype._checkParentType=function(){je(this._parent)&&Oe.groupParentException()},t}(ie),De={provide:c,useExisting:Object(o.forwardRef)(function(){return Ne})},Ne=function(e){function t(t,n,i){var o=e.call(this)||this;return o._parent=t,o._validators=n,o._asyncValidators=i,o}return Object(i.__extends)(t,e),t.prototype.ngOnInit=function(){this._checkParentType(),this.formDirective.addFormArray(this)},t.prototype.ngOnDestroy=function(){this.formDirective&&this.formDirective.removeFormArray(this)},Object.defineProperty(t.prototype,"control",{get:function(){return this.formDirective.getFormArray(this)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"formDirective",{get:function(){return this._parent?this._parent.formDirective:null},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"path",{get:function(){return W(this.name,this._parent)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"validator",{get:function(){return Q(this._validators)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"asyncValidator",{get:function(){return J(this._asyncValidators)},enumerable:!0,configurable:!0}),t.prototype._checkParentType=function(){je(this._parent)&&Oe.arrayParentException()},t}(c);function je(e){return!(e instanceof Re||e instanceof Pe||e instanceof Ne)}var Le={provide:E,useExisting:Object(o.forwardRef)(function(){return Ue})},Ue=function(e){function t(t,n,i,r){var l=e.call(this)||this;return l._added=!1,l.update=new o.EventEmitter,l._parent=t,l._rawValidators=n||[],l._rawAsyncValidators=i||[],l.valueAccessor=te(l,r),l}return Object(i.__extends)(t,e),Object.defineProperty(t.prototype,"isDisabled",{set:function(e){Oe.disabledAttrWarning()},enumerable:!0,configurable:!0}),t.prototype.ngOnChanges=function(e){this._added||this._setUpControl(),Z(e,this.viewModel)&&(this.viewModel=this.model,this.formDirective.updateModel(this,this.model))},t.prototype.ngOnDestroy=function(){this.formDirective&&this.formDirective.removeControl(this)},t.prototype.viewToModelUpdate=function(e){this.viewModel=e,this.update.emit(e)},Object.defineProperty(t.prototype,"path",{get:function(){return W(this.name,this._parent)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"formDirective",{get:function(){return this._parent?this._parent.formDirective:null},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"validator",{get:function(){return Q(this._rawValidators)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"asyncValidator",{get:function(){return J(this._rawAsyncValidators)},enumerable:!0,configurable:!0}),t.prototype._checkParentType=function(){!(this._parent instanceof Re)&&this._parent instanceof ie?Oe.ngModelGroupException():this._parent instanceof Re||this._parent instanceof Pe||this._parent instanceof Ne||Oe.controlParentException()},t.prototype._setUpControl=function(){this._checkParentType(),this.control=this.formDirective.addControl(this),this.control.disabled&&this.valueAccessor.setDisabledState&&this.valueAccessor.setDisabledState(!0),this._added=!0},t}(E),Ve={provide:p,useExisting:Object(o.forwardRef)(function(){return Ke}),multi:!0},Fe={provide:p,useExisting:Object(o.forwardRef)(function(){return Be}),multi:!0},Ke=function(){function e(){}return Object.defineProperty(e.prototype,"required",{get:function(){return this._required},set:function(e){this._required=null!=e&&!1!==e&&""+e!="false",this._onChange&&this._onChange()},enumerable:!0,configurable:!0}),e.prototype.validate=function(e){return this.required?y.required(e):null},e.prototype.registerOnValidatorChange=function(e){this._onChange=e},e}(),Be=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Object(i.__extends)(t,e),t.prototype.validate=function(e){return this.required?y.requiredTrue(e):null},t}(Ke),He={provide:p,useExisting:Object(o.forwardRef)(function(){return We}),multi:!0},We=function(){function e(){}return Object.defineProperty(e.prototype,"email",{set:function(e){this._enabled=""===e||!0===e||"true"===e,this._onChange&&this._onChange()},enumerable:!0,configurable:!0}),e.prototype.validate=function(e){return this._enabled?y.email(e):null},e.prototype.registerOnValidatorChange=function(e){this._onChange=e},e}(),ze={provide:p,useExisting:Object(o.forwardRef)(function(){return $e}),multi:!0},$e=function(){function e(){}return e.prototype.ngOnChanges=function(e){"minlength"in e&&(this._createValidator(),this._onChange&&this._onChange())},e.prototype.validate=function(e){return null==this.minlength?null:this._validator(e)},e.prototype.registerOnValidatorChange=function(e){this._onChange=e},e.prototype._createValidator=function(){this._validator=y.minLength(parseInt(this.minlength,10))},e}(),qe={provide:p,useExisting:Object(o.forwardRef)(function(){return Ge}),multi:!0},Ge=function(){function e(){}return e.prototype.ngOnChanges=function(e){"maxlength"in e&&(this._createValidator(),this._onChange&&this._onChange())},e.prototype.validate=function(e){return null!=this.maxlength?this._validator(e):null},e.prototype.registerOnValidatorChange=function(e){this._onChange=e},e.prototype._createValidator=function(){this._validator=y.maxLength(parseInt(this.maxlength,10))},e}(),Ye={provide:p,useExisting:Object(o.forwardRef)(function(){return Qe}),multi:!0},Qe=function(){function e(){}return e.prototype.ngOnChanges=function(e){"pattern"in e&&(this._createValidator(),this._onChange&&this._onChange())},e.prototype.validate=function(e){return this._validator(e)},e.prototype.registerOnValidatorChange=function(e){this._onChange=e},e.prototype._createValidator=function(){this._validator=y.pattern(this.pattern)},e}(),Je=function(){function e(){}return e.prototype.group=function(e,t){void 0===t&&(t=null);var n=this._reduceControls(e);return new fe(n,null!=t?t.validator:null,null!=t?t.asyncValidator:null)},e.prototype.control=function(e,t,n){return new pe(e,t,n)},e.prototype.array=function(e,t,n){var i=this,o=e.map(function(e){return i._createControl(e)});return new he(o,t,n)},e.prototype._reduceControls=function(e){var t=this,n={};return Object.keys(e).forEach(function(i){n[i]=t._createControl(e[i])}),n},e.prototype._createControl=function(e){return e instanceof pe||e instanceof fe||e instanceof he?e:Array.isArray(e)?this.control(e[0],e.length>1?e[1]:null,e.length>2?e[2]:null):this.control(e)},e}(),Ze=new o.Version("5.2.9"),Xe=function(){},et=[Xe,V,H,T,S,N,_,U,B,R,le,ue,Ke,$e,Ge,Qe,Be,We],tt=[xe,Ae,ge],nt=[Me,Pe,Ue,Re,Ne],it=function(){},ot=function(){},rt=function(){}},"7MSh":function(e,t,n){"use strict";var i=n("TToO").__extends,o=n("mmVS"),r=n("+3eL"),l=n("WhVc");t.distinctUntilChanged=function(e,t){return function(n){return n.lift(new u(e,t))}};var u=function(){function e(e,t){this.compare=e,this.keySelector=t}return e.prototype.call=function(e,t){return t.subscribe(new a(e,this.compare,this.keySelector))},e}(),a=function(e){function t(t,n,i){e.call(this,t),this.keySelector=i,this.hasKey=!1,"function"==typeof n&&(this.compare=n)}return i(t,e),t.prototype.compare=function(e,t){return e===t},t.prototype._next=function(e){var t=e;if(this.keySelector&&(t=r.tryCatch(this.keySelector)(e))===l.errorObject)return this.destination.error(l.errorObject.e);var n=!1;if(this.hasKey){if((n=r.tryCatch(this.compare)(this.key,t))===l.errorObject)return this.destination.error(l.errorObject.e)}else this.hasKey=!0;!1===Boolean(n)&&(this.key=t,this.destination.next(e))},t}(o.Subscriber)},"7OPe":function(e,t,n){"use strict";n.d(t,"c",function(){return r}),t.d=function(e,t){switch(void 0===e&&(e=r),t.type){case i.a.TOGGLE_CHECK_FOR_UPDATE_ON_STARTUP:return Object.assign({},e,{checkForUpdateOnStartUp:t.payload});case i.a.TOGGLE_PRE_RELEASE_FLAG:return Object.assign({},e,{usePreReleaseUpdate:t.payload});case i.a.LOAD_AUTO_UPDATE_SETTINGS_SUCCESS:return Object.assign({},t.payload);case i.a.CHECK_FOR_UPDATE_NOW:return Object.assign({},e,{checkingForUpdate:!0});case o.a.UPDATE_ERROR:case i.a.CHECK_FOR_UPDATE_SUCCESS:case i.a.CHECK_FOR_UPDATE_FAILED:return Object.assign({},e,{checkingForUpdate:!1});default:return e}},n.d(t,"b",function(){return l}),n.d(t,"a",function(){return u});var i=n("w+X5"),o=n("va3Z"),r={checkForUpdateOnStartUp:!1,usePreReleaseUpdate:!1,checkingForUpdate:!1},l=function(e){return{checkForUpdateOnStartUp:e.checkForUpdateOnStartUp,usePreReleaseUpdate:e.usePreReleaseUpdate}},u=function(e){return e.checkingForUpdate}},"7RCQ":function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n("Bxcs");t.getHardwareConfigFromDeviceResponse=function(e){var t=JSON.parse(e),n=new i.HardwareConfiguration;if(n.fromBinary(i.UhkBuffer.fromArray(t)),"FTY"===n.signature)throw Error("The device is in factory reset mode. Power-cycle the device to use it with Agent!");if("UHK"!==n.signature)throw Error("Please power cycle your keyboard (Invalid hardware configuration: Invalid signature)");return n},t.getUserConfigFromDeviceResponse=function(e){var t=JSON.parse(e),n=new i.UserConfiguration;if(n.fromBinary(i.UhkBuffer.fromArray(t)),n.userConfigMajorVersion>0)return n;throw Error("Invalid user configuration")},t.mapObjectToUserConfigBinaryBuffer=function(e){var t=new i.UserConfiguration;t.fromJsonObject(e);var n=new i.UhkBuffer;return t.toBinary(n),n.getBufferContent()}},"7axH":function(e,t,n){"use strict";var i=n("rCTf"),o=n("9PGs");i.Observable.prototype.toArray=o.toArray},"7nvF":function(e,t,n){"use strict";var i=n("p/p0");t.last=function(e,t,n){return i.last(e,t,n)(this)}},"7rB9":function(e,t,n){"use strict";var i=n("t2qv");t.forkJoin=i.ForkJoinObservable.create},"7s/Z":function(e,t){e.exports=function e(t){Object.freeze(t);var n="function"==typeof t,i=Object.prototype.hasOwnProperty;return Object.getOwnPropertyNames(t).forEach(function(o){!i.call(t,o)||n&&("caller"===o||"callee"===o||"arguments"===o)||null===t[o]||"object"!=typeof t[o]&&"function"!=typeof t[o]||Object.isFrozen(t[o])||e(t[o])}),t}},"83T1":function(e,t,n){"use strict";var i=n("fI0c");t.every=function(e,t){return i.every(e,t)(this)}},"8AXl":function(e,t,n){"use strict";n.d(t,"b",function(){return _}),n.d(t,"a",function(){return x}),n.d(t,"c",function(){return P}),n.d(t,"d",function(){return j}),n.d(t,"e",function(){return D}),n.d(t,"f",function(){return N}),n.d(t,"i",function(){return R}),n.d(t,"k",function(){return I}),n.d(t,"j",function(){return E}),n.d(t,"h",function(){return M}),n.d(t,"g",function(){return S});var i,o=n("dyjq"),r=n("1KT0"),l=n("C4lF"),u=(n.n(l),n("Y6hq")),a=(n.n(u),n("xAJs")),s=n("WT6e"),c=n("rCTf"),d=n("ack3"),p=n("cJSH"),f=(n.n(p),n("XO5T")),h=n("2AEF"),y=(n.n(h),n("Oa+j")),m=(n.n(y),n("EEr4")),g=this&&this.__extends||(i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},function(e,t){function n(){this.constructor=e}i(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),v="@ngrx/effects",b=Reflect;function k(e){return e.constructor.propDecorators?(t=e.constructor.propDecorators,Object.keys(t).reduce(function(e,n){return e.concat((i=n,t[n].filter(function(e){return e.type===_}).map(function(e){var t=!0;return e.args&&e.args.length&&(t=!!e.args[0].dispatch),{propertyName:i,dispatch:t}})));var i},[])):b.hasOwnMetadata(v,e)?b.getOwnMetadata(v,e):[];var t}function _(e){var t=(void 0===e?{dispatch:!0}:e).dispatch;return function(e,n){var i,o;i=e,o=k(e).concat([{propertyName:n,dispatch:t}]),b.defineMetadata(v,o,i)}}function w(e){return Object.getPrototypeOf(e)}var A=Object(o.x)(k,w),T="ngrxOnRunEffects";function C(e){var t=function(e){var t=w(e).constructor.name,n=A(e).map(function(n){var i=n.propertyName,o=n.dispatch,r="function"==typeof e[i]?e[i]():e[i];if(!1===o)return l.ignoreElements.call(r);var s=u.materialize.call(r);return a.map.call(s,function(n){return{effect:e[i],notification:n,propertyName:i,sourceName:t,sourceInstance:e}})});return r.merge.apply(void 0,n)}(e);return function(e){var t=w(e);return T in t&&"function"==typeof t[T]}(e)?e.ngrxOnRunEffects(t):t}var x=function(e){function t(t){var n=e.call(this)||this;return t&&(n.source=t),n}return g(t,e),t.prototype.lift=function(e){var n=new t;return n.source=this,n.operator=e,n},t.prototype.ofType=function(){for(var e=[],t=0;t-1?a.a.Mac:t.indexOf("win")>-1?a.a.Windows:a.a.Linux}),w=Object(i.createSelector)(d,l.j),A=Object(i.createSelector)(w,function(e){return!e}),T=Object(i.createSelector)(function(e){return e.appUpdate},o.a),C=function(e){return e.autoUpdateSettings},x=Object(i.createSelector)(C,r.b),O=Object(i.createSelector)(C,r.a),S=function(e){return e.device},M=Object(i.createSelector)(S,u.i),E=Object(i.createSelector)(m,M,function(e,t){return!e||t}),P=Object(i.createSelector)(S,u.h),I=Object(i.createSelector)(m,P,function(e,t){return!e||t}),R=Object(i.createSelector)(S,u.g),D=Object(i.createSelector)(m,R,function(e,t){return e?t:s.a}),N=Object(i.createSelector)(S,u.k),j=Object(i.createSelector)(S,u.l),L=Object(i.createSelector)(m,S,function(e,t){return!e||t.updatingFirmware}),U=Object(i.createSelector)(S,u.e),V=Object(i.createSelector)(S,u.d),F=Object(i.createSelector)(S,u.f),K=Object(i.createSelector)(S,u.a),B=Object(i.createSelector)(S,u.b),H=Object(i.createSelector)(S,u.c),W=Object(i.createSelector)(p,m,N,c,F,function(e,t,n,i,o){return{showAddonMenu:e,runInElectron:t,updatingFirmware:n,deviceName:i.deviceName,keymaps:i.keymaps,macros:i.macros,restoreUserConfiguration:o}}),z=function(e){return e.router}},"9JPB":function(e,t,n){"use strict";var i=n("VOfZ"),o=n("2ER/");t.Map=i.root.Map||o.MapPolyfill},"9PEG":function(e,t,n){"use strict";var i=n("xgwM").__extends,o=n("xgwM").__decorate,r=n("xgwM").__metadata;Object.defineProperty(t,"__esModule",{value:!0});var l=n("CmJd"),u=n("3uOy"),a=n("4KnF"),s=function(e){function t(n){var i=e.call(this)||this;return n?(i.keymapAbbreviation=n instanceof t?n.keymapAbbreviation:n instanceof u.Keymap?n.abbreviation:n,i):i}return i(t,e),t.prototype.fromJsonObject=function(e){return this.assertKeyActionType(e),this.keymapAbbreviation=e.keymapAbbreviation,this},t.prototype.toJsonObject=function(){return{keyActionType:a.keyActionType.SwitchKeymapAction,keymapAbbreviation:this.keymapAbbreviation}},t.prototype.toBinary=function(e,t){var n=this,i=t.keymaps.findIndex(function(e){return e.abbreviation===n.keymapAbbreviation});e.writeUInt8(a.KeyActionId.SwitchKeymapAction),e.writeUInt8(i)},t.prototype.toString=function(){return''},t.prototype.renameKeymap=function(e,n){return this.keymapAbbreviation!==e?this:new t(n)},t.prototype.getName=function(){return"SwitchKeymapAction"},t}(a.KeyAction);t.SwitchKeymapAction=s,t.UnresolvedSwitchKeymapAction=function(e){function t(t){var n=e.call(this)||this;return n.keymapIndex=t,n}return i(t,e),t.prototype.fromBinary=function(e){return e.readUInt8(),this.keymapIndex=e.readUInt8(),this},t.prototype.toBinary=function(e){e.writeUInt8(a.KeyActionId.SwitchKeymapAction),e.writeUInt8(this.keymapIndex)},t.prototype.toJsonObject=function(){throw new Error("UnresolvedSwitchKeymapAction cannot be serialized directly. Convert it to SwitchKeymapAction first.")},t.prototype.resolve=function(e){return new s(e[this.keymapIndex])},t.prototype.getName=function(){return"UnresolvedSwitchKeymapAction"},o([l.assertUInt8,r("design:type",Number)],t.prototype,"keymapIndex",void 0),t}(a.KeyAction)},"9PGs":function(e,t,n){"use strict";var i=n("piny");t.toArray=function(){return i.toArray()(this)}},"9dR0":function(e,t,n){"use strict";var i=n("TToO").__extends,o=n("mmVS");t.refCount=function(){return function(e){return e.lift(new r(e))}};var r=function(){function e(e){this.connectable=e}return e.prototype.call=function(e,t){var n=this.connectable;n._refCount++;var i=new l(e,n),o=t.subscribe(i);return i.closed||(i.connection=n.connect()),o},e}(),l=function(e){function t(t,n){e.call(this,t),this.connectable=n}return i(t,e),t.prototype._unsubscribe=function(){var e=this.connectable;if(e){this.connectable=null;var t=e._refCount;if(t<=0)this.connection=null;else if(e._refCount=t-1,t>1)this.connection=null;else{var n=this.connection,i=e._connection;this.connection=null,!i||n&&i!==n||i.unsubscribe()}}else this.connection=null},t}(o.Subscriber)},"9dXm":function(e,t,n){"use strict";var i=n("xgwM").__extends,o=n("xgwM").__decorate,r=n("xgwM").__metadata;Object.defineProperty(t,"__esModule",{value:!0});var l=n("CmJd"),u=n("ao60"),a=n("4uS6");t.KeyMacroAction=function(e){function t(t){var n=e.call(this)||this;return t?(n.action=t.action,n.type=t.type,n._scancode=t._scancode,n.modifierMask=t.modifierMask,n):n}return i(t,e),Object.defineProperty(t.prototype,"scancode",{get:function(){return this._scancode},set:function(e){this._scancode=e,this.type!==a.KeystrokeType.shortMedia&&this.type!==a.KeystrokeType.longMedia||(this.type=e<256?a.KeystrokeType.shortMedia:a.KeystrokeType.longMedia)},enumerable:!0,configurable:!0}),t.prototype.fromJsonObject=function(e){return this.assertMacroActionType(e),this.action=u.MacroKeySubAction[e.action],this.type="media"===e.type?e.scancode<256?a.KeystrokeType.shortMedia:a.KeystrokeType.longMedia:a.KeystrokeType[e.type],this._scancode=e.scancode,this.modifierMask=e.modifierMask,this},t.prototype.fromBinary=function(e){var t=this.readAndAssertMacroActionId(e)-u.MacroActionId.KeyMacroAction;return this.action=3&t,this.type=3&(t>>=2),2&(t>>=2)&&(this._scancode=this.type===a.KeystrokeType.longMedia?e.readUInt16():e.readUInt8()),1&t&&(this.modifierMask=e.readUInt8()),this},t.prototype.toJsonObject=function(){var e={macroActionType:u.macroActionType.KeyMacroAction,action:u.MacroKeySubAction[this.action]};return this.hasScancode()&&(e.type=this.type===a.KeystrokeType.shortMedia||this.type===a.KeystrokeType.longMedia?"media":a.KeystrokeType[this.type],e.scancode=this._scancode),this.hasModifiers()&&(e.modifierMask=this.modifierMask),e},t.prototype.toBinary=function(e){var t=0;t|=this.action,t|=this.type<<2,t|=(this.hasScancode()?2:0)+(this.hasModifiers()?1:0)<<4,e.writeUInt8(u.MacroActionId.KeyMacroAction+t),this.hasScancode()&&(this.type===a.KeystrokeType.longMedia?e.writeUInt16(this.scancode):e.writeUInt8(this.scancode)),this.hasModifiers()&&e.writeUInt8(this.modifierMask)},t.prototype.toString=function(){return''},t.prototype.isModifierActive=function(e){return(this.modifierMask&e)>0},t.prototype.hasScancode=function(){return!!this._scancode},t.prototype.hasModifiers=function(){return!!this.modifierMask},t.prototype.isPressAction=function(){return this.action===u.MacroKeySubAction.press},t.prototype.isTapAction=function(){return this.action===u.MacroKeySubAction.tap},t.prototype.isReleaseAction=function(){return this.action===u.MacroKeySubAction.release},t.prototype.getName=function(){return"KeyMacroAction"},o([l.assertEnum(u.MacroKeySubAction),r("design:type",Number)],t.prototype,"action",void 0),o([l.assertEnum(a.KeystrokeType),r("design:type",Number)],t.prototype,"type",void 0),o([l.assertUInt8,r("design:type",Number)],t.prototype,"modifierMask",void 0),o([l.assertUInt16,r("design:type",Number)],t.prototype,"_scancode",void 0),t}(u.MacroAction)},"9eyw":function(e,t,n){"use strict";var i=n("YOd+");function o(e){return e?1===e.length?e[0]:function(t){return e.reduce(function(e,t){return t(e)},t)}:i.noop}t.pipe=function(){for(var e=[],t=0;t0?this._next(t.shift()):0===this.active&&this.hasCompleted&&this.destination.complete()},t}(r.OuterSubscriber);t.MergeMapSubscriber=u},B00U:function(e,t,n){"use strict";var i=n("Xajo"),o=n("ICpg"),r=n("SKH6"),l=n("+3eL"),u=n("WhVc"),a=n("GIjk");function s(e){return e.reduce(function(e,t){return e.concat(t instanceof a.UnsubscriptionError?t.errors:t)},[])}t.Subscription=function(){function e(e){this.closed=!1,this._parent=null,this._parents=null,this._subscriptions=null,e&&(this._unsubscribe=e)}var t;return e.prototype.unsubscribe=function(){var e,t=!1;if(!this.closed){var n=this._parent,c=this._parents,d=this._unsubscribe,p=this._subscriptions;this.closed=!0,this._parent=null,this._parents=null,this._subscriptions=null;for(var f=-1,h=c?c.length:0;n;)n.remove(this),n=++f1?new i.ArrayObservable(e,n):new r.EmptyObservable(n),t)}}},"C0+T":function(e,t,n){"use strict";var i=n("TToO").__extends,o=n("9Avi");t.QueueScheduler=function(e){function t(){e.apply(this,arguments)}return i(t,e),t}(o.AsyncScheduler)},C4lF:function(e,t,n){"use strict";var i=n("ygD2");t.ignoreElements=function(){return i.ignoreElements()(this)}},CGGv:function(e,t,n){"use strict";var i=n("cwzr"),o=n("9Avi");t.async=new o.AsyncScheduler(i.AsyncAction)},CURp:function(e,t,n){"use strict";var i=n("VOfZ"),o=n("1r8+"),r=n("aQl7"),l=n("ICpg"),u=n("rCTf"),a=n("cdmN"),s=n("QqRK"),c=n("mbVC");t.subscribeToResult=function(e,t,n,d){var p=new s.InnerSubscriber(e,n,d);if(p.closed)return null;if(t instanceof u.Observable)return t._isScalar?(p.next(t.value),p.complete(),null):(p.syncErrorThrowable=!0,t.subscribe(p));if(o.isArrayLike(t)){for(var f=0,h=t.length;fi)throw e.constructor.name+"."+t+": Integer "+r+" is outside the valid ["+n+", "+i+"] interval";this[o]=r}},enumerable:!0,configurable:!0})}Object.defineProperty(t,"__esModule",{value:!0}),t.assertUInt8=function(e,t){return o(e,t,0,255)},t.assertInt8=function(e,t){return o(e,t,-128,127)},t.assertUInt16=i,t.assertInt16=function(e,t){return o(e,t,-32768,32767)},t.assertUInt32=function(e,t){return o(e,t,0,4294967295)},t.assertInt32=function(e,t){return o(e,t,-2147483648,2147483647)},t.assertCompactLength=function(e,t){return i(e,t)},t.assertEnum=function(e){return function(t,n){var i="_"+n;Object.defineProperty(t,n,{get:function(){return this[i]},set:function(o){if(this[i]!==o){if(void 0===e[o])throw t.constructor.name+"."+n+": "+o+" is not enum";this[i]=o}},enumerable:!0,configurable:!0})}}},D2Nv:function(e,t,n){"use strict";var i=n("TToO").__extends,o=n("mmVS");t.tap=function(e,t,n){return function(i){return i.lift(new r(e,t,n))}};var r=function(){function e(e,t,n){this.nextOrObserver=e,this.error=t,this.complete=n}return e.prototype.call=function(e,t){return t.subscribe(new l(e,this.nextOrObserver,this.error,this.complete))},e}(),l=function(e){function t(t,n,i,r){e.call(this,t);var l=new o.Subscriber(n,i,r);l.syncErrorThrowable=!0,this.add(l),this.safeSubscriber=l}return i(t,e),t.prototype._next=function(e){var t=this.safeSubscriber;t.next(e),t.syncErrorThrown?this.destination.error(t.syncErrorValue):this.destination.next(e)},t.prototype._error=function(e){var t=this.safeSubscriber;t.error(e),this.destination.error(t.syncErrorThrown?t.syncErrorValue:e)},t.prototype._complete=function(){var e=this.safeSubscriber;e.complete(),e.syncErrorThrown?this.destination.error(e.syncErrorValue):this.destination.complete()},t}(o.Subscriber)},DuR2:function(e,t){var n;n=function(){return this}();try{n=n||Function("return this")()||(0,eval)("this")}catch(e){"object"==typeof window&&(n=window)}e.exports=n},DzMp:function(e,t,n){"use strict";var i=n("+EXD");t.defer=i.DeferObservable.create},EEr4:function(e,t,n){"use strict";var i=n("TToO").__extends,o=n("rCTf"),r=n("mmVS"),l=n("B00U"),u=n("IZVw"),a=n("ZJf8"),s=n("r8ZY"),c=function(e){function t(t){e.call(this,t),this.destination=t}return i(t,e),t}(r.Subscriber);t.SubjectSubscriber=c;var d=function(e){function t(){e.call(this),this.observers=[],this.closed=!1,this.isStopped=!1,this.hasError=!1,this.thrownError=null}return i(t,e),t.prototype[s.rxSubscriber]=function(){return new c(this)},t.prototype.lift=function(e){var t=new p(this,this);return t.operator=e,t},t.prototype.next=function(e){if(this.closed)throw new u.ObjectUnsubscribedError;if(!this.isStopped)for(var t=this.observers,n=t.length,i=t.slice(),o=0;o0?a-4:a;var c=0;for(t=0;t>16&255,u[c++]=i>>8&255,u[c++]=255&i;return 2===l?(i=o[e.charCodeAt(t)]<<2|o[e.charCodeAt(t+1)]>>4,u[c++]=255&i):1===l&&(i=o[e.charCodeAt(t)]<<10|o[e.charCodeAt(t+1)]<<4|o[e.charCodeAt(t+2)]>>2,u[c++]=i>>8&255,u[c++]=255&i),u},t.fromByteArray=function(e){for(var t,n=e.length,o=n%3,r="",l=[],u=0,a=n-o;ua?a:u+16383));return 1===o?(r+=i[(t=e[n-1])>>2],r+=i[t<<4&63],r+="=="):2===o&&(r+=i[(t=(e[n-2]<<8)+e[n-1])>>10],r+=i[t>>4&63],r+=i[t<<2&63],r+="="),l.push(r),l.join("")};for(var i=[],o=[],r="undefined"!=typeof Uint8Array?Uint8Array:Array,l="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",u=0,a=l.length;u0)throw new Error("Invalid string. Length must be a multiple of 4");return"="===e[t-2]?2:"="===e[t-1]?1:0}function c(e,t,n){for(var o,r=[],l=t;l>18&63]+i[o>>12&63]+i[o>>6&63]+i[63&o]);return r.join("")}o["-".charCodeAt(0)]=62,o["_".charCodeAt(0)]=63},Eh6b:function(e,t,n){"use strict";var i=/[|\\{}()[\]^$+*?.]/g;e.exports=function(e){if("string"!=typeof e)throw new TypeError("Expected a string");return e.replace(i,"\\$&")}},EnA3:function(e,t,n){"use strict";var i=n("rCTf"),o=n("Rewd");i.Observable.prototype.do=o._do,i.Observable.prototype._do=o._do},EoAl:function(e,t,n){"use strict";var i=n("rCTf"),o=n("KuCq");i.Observable.prototype.takeWhile=o.takeWhile},F7Al:function(e,t,n){"use strict";var i=n("TToO").__extends,o=function(e){function t(){var t=e.call(this,"no elements in sequence");this.name=t.name="EmptyError",this.stack=t.stack,this.message=t.message}return i(t,e),t}(Error);t.EmptyError=o},FA5e:function(e,t,n){"use strict";var i=n("TToO").__extends,o=n("rCTf"),r=n("RRVv"),l=n("jBEF");t.ArrayLikeObservable=function(e){function t(t,n){e.call(this),this.arrayLike=t,this.scheduler=n,n||1!==t.length||(this._isScalar=!0,this.value=t[0])}return i(t,e),t.create=function(e,n){var i=e.length;return 0===i?new l.EmptyObservable:1===i?new r.ScalarObservable(e[0],n):new t(e,n)},t.dispatch=function(e){var t=e.arrayLike,n=e.index,i=e.subscriber;i.closed||(n>=e.length?i.complete():(i.next(t[n]),e.index=n+1,this.schedule(e)))},t.prototype._subscribe=function(e){var n=this.arrayLike,i=this.scheduler,o=n.length;if(i)return i.schedule(t.dispatch,0,{arrayLike:n,index:0,length:o,subscriber:e});for(var r=0;r'},t.prototype.getName=function(){return"PlayMacroAction"},o([l.assertUInt8,r("design:type",Number)],t.prototype,"macroId",void 0),t}(u.KeyAction)},Ftqy:function(e,t){e.exports={userConfigMajorVersion:4,userConfigMinorVersion:0,userConfigPatchVersion:0,deviceName:"My UHK",doubleTapSwitchLayerTimeout:250,iconsAndLayerTextsBrightness:255,alphanumericSegmentsBrightness:255,keyBacklightBrightness:255,mouseMoveInitialSpeed:4,mouseMoveAcceleration:68,mouseMoveDeceleratedSpeed:8,mouseMoveBaseSpeed:32,mouseMoveAcceleratedSpeed:64,mouseScrollInitialSpeed:20,mouseScrollAcceleration:20,mouseScrollDeceleratedSpeed:20,mouseScrollBaseSpeed:20,mouseScrollAcceleratedSpeed:50,moduleConfigurations:[],keymaps:[{isDefault:!1,abbreviation:"COM",name:"Colemak for Mac",description:"Colemak is based on QWERTY, but it places the most frequent letters under the strongest fingers. This is the Mac version.",layers:[{modules:[{id:0,keyActions:[{keyActionType:"keystroke",type:"basic",scancode:36},{keyActionType:"keystroke",type:"basic",scancode:37},{keyActionType:"keystroke",type:"basic",scancode:38},{keyActionType:"keystroke",type:"basic",scancode:39},{keyActionType:"keystroke",type:"basic",scancode:45},{keyActionType:"keystroke",type:"basic",scancode:46},{keyActionType:"keystroke",type:"basic",scancode:42},{keyActionType:"keystroke",type:"basic",scancode:15},{keyActionType:"keystroke",type:"basic",scancode:24},{keyActionType:"keystroke",type:"basic",scancode:28},{keyActionType:"keystroke",type:"basic",scancode:51},{keyActionType:"keystroke",type:"basic",scancode:47},{keyActionType:"keystroke",type:"basic",scancode:48},{keyActionType:"keystroke",type:"basic",scancode:49},{keyActionType:"keystroke",type:"basic",scancode:13},{keyActionType:"keystroke",type:"basic",scancode:17},{keyActionType:"keystroke",type:"basic",scancode:8},{keyActionType:"keystroke",type:"basic",scancode:12},{keyActionType:"keystroke",type:"basic",scancode:18},{keyActionType:"keystroke",type:"basic",scancode:52},{keyActionType:"keystroke",type:"basic",scancode:40},{keyActionType:"keystroke",type:"basic",scancode:11},{keyActionType:"keystroke",type:"basic",scancode:14},{keyActionType:"keystroke",type:"basic",scancode:16},{keyActionType:"keystroke",type:"basic",scancode:54},{keyActionType:"keystroke",type:"basic",scancode:55},{keyActionType:"keystroke",type:"basic",scancode:56},{keyActionType:"keystroke",type:"basic",modifierMask:32},null,{keyActionType:"keystroke",type:"basic",scancode:44},{keyActionType:"switchLayer",layer:"mod",switchLayerMode:"holdAndDoubleTapToggle"},{keyActionType:"switchLayer",layer:"fn",switchLayerMode:"holdAndDoubleTapToggle"},{keyActionType:"keystroke",type:"basic",modifierMask:128},{keyActionType:"keystroke",type:"basic",modifierMask:64},{keyActionType:"keystroke",type:"basic",modifierMask:16}]},{id:1,keyActions:[{keyActionType:"keystroke",type:"basic",scancode:53},{keyActionType:"keystroke",type:"basic",scancode:30},{keyActionType:"keystroke",type:"basic",scancode:31},{keyActionType:"keystroke",type:"basic",scancode:32},{keyActionType:"keystroke",type:"basic",scancode:33},{keyActionType:"keystroke",type:"basic",scancode:34},{keyActionType:"keystroke",type:"basic",scancode:35},{keyActionType:"keystroke",type:"basic",scancode:43},{keyActionType:"keystroke",type:"basic",scancode:20},{keyActionType:"keystroke",type:"basic",scancode:26},{keyActionType:"keystroke",type:"basic",scancode:9},{keyActionType:"keystroke",type:"basic",scancode:19},null,{keyActionType:"keystroke",type:"basic",scancode:10},{keyActionType:"switchLayer",layer:"mouse",switchLayerMode:"holdAndDoubleTapToggle"},{keyActionType:"keystroke",type:"basic",scancode:4},{keyActionType:"keystroke",type:"basic",scancode:21},{keyActionType:"keystroke",type:"basic",scancode:22},{keyActionType:"keystroke",type:"basic",scancode:23},null,{keyActionType:"keystroke",type:"basic",scancode:7},{keyActionType:"keystroke",type:"basic",modifierMask:2},{keyActionType:"keystroke",type:"basic",scancode:100},{keyActionType:"keystroke",type:"basic",scancode:29},{keyActionType:"keystroke",type:"basic",scancode:27},{keyActionType:"keystroke",type:"basic",scancode:6},{keyActionType:"keystroke",type:"basic",scancode:25},{keyActionType:"keystroke",type:"basic",scancode:5},{keyActionType:"keystroke",type:"basic",modifierMask:1},{keyActionType:"keystroke",type:"basic",modifierMask:4},{keyActionType:"keystroke",type:"basic",modifierMask:8},{keyActionType:"switchLayer",layer:"fn",switchLayerMode:"holdAndDoubleTapToggle"},{keyActionType:"keystroke",type:"basic",scancode:44},{keyActionType:"switchLayer",layer:"mod",switchLayerMode:"holdAndDoubleTapToggle"},null]},{id:2,keyActions:[]}]},{modules:[{id:0,keyActions:[{keyActionType:"keystroke",type:"basic",scancode:64},{keyActionType:"keystroke",type:"basic",scancode:65},{keyActionType:"keystroke",type:"basic",scancode:66},{keyActionType:"keystroke",type:"basic",scancode:67},{keyActionType:"keystroke",type:"basic",scancode:68},{keyActionType:"keystroke",type:"basic",scancode:69},{keyActionType:"keystroke",type:"basic",scancode:76},{keyActionType:"keystroke",type:"basic",scancode:74},{keyActionType:"keystroke",type:"basic",scancode:82},{keyActionType:"keystroke",type:"basic",scancode:77},{keyActionType:"keystroke",type:"basic",scancode:76},{keyActionType:"keystroke",type:"basic",scancode:70},{keyActionType:"keystroke",type:"basic",scancode:71},{keyActionType:"keystroke",type:"basic",scancode:72},{keyActionType:"keystroke",type:"basic",scancode:75},{keyActionType:"keystroke",type:"basic",scancode:80},{keyActionType:"keystroke",type:"basic",scancode:81},{keyActionType:"keystroke",type:"basic",scancode:79},{keyActionType:"keystroke",type:"basic",scancode:73},null,null,{keyActionType:"keystroke",type:"basic",scancode:78},{keyActionType:"keystroke",type:"basic",scancode:41},null,null,null,{keyActionType:"keystroke",type:"basic",scancode:101},{keyActionType:"keystroke",type:"basic",modifierMask:32},null,null,{keyActionType:"switchLayer",layer:"mod",switchLayerMode:"holdAndDoubleTapToggle"},null,{keyActionType:"keystroke",type:"basic",modifierMask:128},{keyActionType:"keystroke",type:"basic",modifierMask:64},{keyActionType:"keystroke",type:"basic",modifierMask:16}]},{id:1,keyActions:[{keyActionType:"keystroke",type:"basic",scancode:41},{keyActionType:"keystroke",type:"basic",scancode:58},{keyActionType:"keystroke",type:"basic",scancode:59},{keyActionType:"keystroke",type:"basic",scancode:60},{keyActionType:"keystroke",type:"basic",scancode:61},{keyActionType:"keystroke",type:"basic",scancode:62},{keyActionType:"keystroke",type:"basic",scancode:63},null,{keyActionType:"keystroke",type:"basic",scancode:41},{keyActionType:"keystroke",type:"basic",scancode:80,modifierMask:12},{keyActionType:"keystroke",type:"basic",scancode:23,modifierMask:8},{keyActionType:"keystroke",type:"basic",scancode:79,modifierMask:12},null,null,null,{keyActionType:"keystroke",type:"basic",scancode:57,modifierMask:1},{keyActionType:"keystroke",type:"basic",scancode:80,modifierMask:1},{keyActionType:"keystroke",type:"basic",scancode:43,modifierMask:8},{keyActionType:"keystroke",type:"basic",scancode:79,modifierMask:1},null,null,{keyActionType:"keystroke",type:"basic",modifierMask:2},null,null,null,{keyActionType:"keystroke",type:"basic",scancode:26,modifierMask:8},null,null,{keyActionType:"keystroke",type:"basic",modifierMask:1},{keyActionType:"keystroke",type:"basic",modifierMask:4},{keyActionType:"keystroke",type:"basic",modifierMask:8},null,null,{keyActionType:"switchLayer",layer:"mod",switchLayerMode:"holdAndDoubleTapToggle"},null]}]},{modules:[{id:0,keyActions:[null,null,null,null,null,null,null,{keyActionType:"keystroke",type:"media",scancode:205},{keyActionType:"keystroke",type:"media",scancode:233},null,null,null,null,{keyActionType:"keystroke",type:"media",scancode:184,modifierMask:12},null,{keyActionType:"keystroke",type:"media",scancode:182},{keyActionType:"keystroke",type:"media",scancode:234},{keyActionType:"keystroke",type:"media",scancode:181},null,null,null,null,null,null,{keyActionType:"keystroke",type:"media",scancode:226},null,null,{keyActionType:"keystroke",type:"basic",modifierMask:32},null,null,null,{keyActionType:"switchLayer",layer:"fn",switchLayerMode:"holdAndDoubleTapToggle"},{keyActionType:"keystroke",type:"basic",modifierMask:128},{keyActionType:"keystroke",type:"basic",modifierMask:64},{keyActionType:"keystroke",type:"basic",modifierMask:16}]},{id:1,keyActions:[null,{keyActionType:"switchKeymap",keymapAbbreviation:"QWR"},{keyActionType:"switchKeymap",keymapAbbreviation:"DVO"},{keyActionType:"switchKeymap",keymapAbbreviation:"COL"},{keyActionType:"switchKeymap",keymapAbbreviation:"QWM"},{keyActionType:"switchKeymap",keymapAbbreviation:"DVM"},null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,{keyActionType:"keystroke",type:"basic",modifierMask:2},null,null,null,null,null,null,{keyActionType:"keystroke",type:"basic",modifierMask:1},{keyActionType:"keystroke",type:"basic",modifierMask:4},{keyActionType:"keystroke",type:"basic",modifierMask:8},{keyActionType:"switchLayer",layer:"fn",switchLayerMode:"holdAndDoubleTapToggle"},null,null,null]}]},{modules:[{id:0,keyActions:[null,null,null,null,null,null,{keyActionType:"switchKeymap",keymapAbbreviation:"TES"},{keyActionType:"mouse",mouseAction:"scrollLeft"},{keyActionType:"mouse",mouseAction:"moveUp"},{keyActionType:"mouse",mouseAction:"scrollRight"},null,null,null,null,{keyActionType:"mouse",mouseAction:"scrollDown"},{keyActionType:"mouse",mouseAction:"moveLeft"},{keyActionType:"mouse",mouseAction:"moveDown"},{keyActionType:"mouse",mouseAction:"moveRight"},null,null,null,{keyActionType:"mouse",mouseAction:"scrollUp"},null,null,null,null,null,{keyActionType:"keystroke",type:"basic",modifierMask:32},null,{keyActionType:"mouse",mouseAction:"leftClick"},{keyActionType:"mouse",mouseAction:"rightClick"},null,{keyActionType:"keystroke",type:"basic",modifierMask:128},{keyActionType:"keystroke",type:"basic",modifierMask:64},{keyActionType:"keystroke",type:"basic",modifierMask:16}]},{id:1,keyActions:[null,{keyActionType:"switchKeymap",keymapAbbreviation:"QWR"},{keyActionType:"switchKeymap",keymapAbbreviation:"DVO"},null,null,null,null,null,null,null,null,null,null,null,{keyActionType:"switchLayer",layer:"mouse",switchLayerMode:"holdAndDoubleTapToggle"},null,{keyActionType:"mouse",mouseAction:"rightClick"},{keyActionType:"mouse",mouseAction:"middleClick"},{keyActionType:"mouse",mouseAction:"leftClick"},null,null,{keyActionType:"keystroke",type:"basic",modifierMask:2},null,null,null,null,null,null,{keyActionType:"keystroke",type:"basic",modifierMask:1},{keyActionType:"keystroke",type:"basic",modifierMask:4},{keyActionType:"keystroke",type:"basic",modifierMask:8},null,{keyActionType:"mouse",mouseAction:"decelerate"},{keyActionType:"mouse",mouseAction:"accelerate"},null]}]}]},{isDefault:!1,abbreviation:"COL",name:"Colemak for PC",description:"Colemak is based on QWERTY, but it places the most frequent letters under the strongest fingers. This is the PC version.\n",layers:[{modules:[{id:0,keyActions:[{keyActionType:"keystroke",type:"basic",scancode:36},{keyActionType:"keystroke",type:"basic",scancode:37},{keyActionType:"keystroke",type:"basic",scancode:38},{keyActionType:"keystroke",type:"basic",scancode:39},{keyActionType:"keystroke",type:"basic",scancode:45},{keyActionType:"keystroke",type:"basic",scancode:46},{keyActionType:"keystroke",type:"basic",scancode:42},{keyActionType:"keystroke",type:"basic",scancode:15},{keyActionType:"keystroke",type:"basic",scancode:24},{keyActionType:"keystroke",type:"basic",scancode:28},{keyActionType:"keystroke",type:"basic",scancode:51},{keyActionType:"keystroke",type:"basic",scancode:47},{keyActionType:"keystroke",type:"basic",scancode:48},{keyActionType:"keystroke",type:"basic",scancode:49},{keyActionType:"keystroke",type:"basic",scancode:13},{keyActionType:"keystroke",type:"basic",scancode:17},{keyActionType:"keystroke",type:"basic",scancode:8},{keyActionType:"keystroke",type:"basic",scancode:12},{keyActionType:"keystroke",type:"basic",scancode:18},{keyActionType:"keystroke",type:"basic",scancode:52},{keyActionType:"keystroke",type:"basic",scancode:40},{keyActionType:"keystroke",type:"basic",scancode:11},{keyActionType:"keystroke",type:"basic",scancode:14},{keyActionType:"keystroke",type:"basic",scancode:16},{keyActionType:"keystroke",type:"basic",scancode:54},{keyActionType:"keystroke",type:"basic",scancode:55},{keyActionType:"keystroke",type:"basic",scancode:56},{keyActionType:"keystroke",type:"basic",modifierMask:32},null,{keyActionType:"keystroke",type:"basic",scancode:44},{keyActionType:"switchLayer",layer:"mod",switchLayerMode:"holdAndDoubleTapToggle"},{keyActionType:"switchLayer",layer:"fn",switchLayerMode:"holdAndDoubleTapToggle"},{keyActionType:"keystroke",type:"basic",modifierMask:64},{keyActionType:"keystroke",type:"basic",modifierMask:128},{keyActionType:"keystroke",type:"basic",modifierMask:16}]},{id:1,keyActions:[{keyActionType:"keystroke",type:"basic",scancode:53},{keyActionType:"keystroke",type:"basic",scancode:30},{keyActionType:"keystroke",type:"basic",scancode:31},{keyActionType:"keystroke",type:"basic",scancode:32},{keyActionType:"keystroke",type:"basic",scancode:33},{keyActionType:"keystroke",type:"basic",scancode:34},{keyActionType:"keystroke",type:"basic",scancode:35},{keyActionType:"keystroke",type:"basic",scancode:43},{keyActionType:"keystroke",type:"basic",scancode:20},{keyActionType:"keystroke",type:"basic",scancode:26},{keyActionType:"keystroke",type:"basic",scancode:9},{keyActionType:"keystroke",type:"basic",scancode:19},null,{keyActionType:"keystroke",type:"basic",scancode:10},{keyActionType:"switchLayer",layer:"mouse",switchLayerMode:"holdAndDoubleTapToggle"},{keyActionType:"keystroke",type:"basic",scancode:4},{keyActionType:"keystroke",type:"basic",scancode:21},{keyActionType:"keystroke",type:"basic",scancode:22},{keyActionType:"keystroke",type:"basic",scancode:23},null,{keyActionType:"keystroke",type:"basic",scancode:7},{keyActionType:"keystroke",type:"basic",modifierMask:2},{keyActionType:"keystroke",type:"basic",scancode:100},{keyActionType:"keystroke",type:"basic",scancode:29},{keyActionType:"keystroke",type:"basic",scancode:27},{keyActionType:"keystroke",type:"basic",scancode:6},{keyActionType:"keystroke",type:"basic",scancode:25},{keyActionType:"keystroke",type:"basic",scancode:5},{keyActionType:"keystroke",type:"basic",modifierMask:1},{keyActionType:"keystroke",type:"basic",modifierMask:8},{keyActionType:"keystroke",type:"basic",modifierMask:4},{keyActionType:"switchLayer",layer:"fn",switchLayerMode:"holdAndDoubleTapToggle"},{keyActionType:"keystroke",type:"basic",scancode:44},{keyActionType:"switchLayer",layer:"mod",switchLayerMode:"holdAndDoubleTapToggle"},null]},{id:2,keyActions:[]}]},{modules:[{id:0,keyActions:[{keyActionType:"keystroke",type:"basic",scancode:64},{keyActionType:"keystroke",type:"basic",scancode:65},{keyActionType:"keystroke",type:"basic",scancode:66},{keyActionType:"keystroke",type:"basic",scancode:67},{keyActionType:"keystroke",type:"basic",scancode:68},{keyActionType:"keystroke",type:"basic",scancode:69},{keyActionType:"keystroke",type:"basic",scancode:76},{keyActionType:"keystroke",type:"basic",scancode:74},{keyActionType:"keystroke",type:"basic",scancode:82},{keyActionType:"keystroke",type:"basic",scancode:77},{keyActionType:"keystroke",type:"basic",scancode:76},{keyActionType:"keystroke",type:"basic",scancode:70},{keyActionType:"keystroke",type:"basic",scancode:71},{keyActionType:"keystroke",type:"basic",scancode:72},{keyActionType:"keystroke",type:"basic",scancode:75},{keyActionType:"keystroke",type:"basic",scancode:80},{keyActionType:"keystroke",type:"basic",scancode:81},{keyActionType:"keystroke",type:"basic",scancode:79},{keyActionType:"keystroke",type:"basic",scancode:73},null,null,{keyActionType:"keystroke",type:"basic",scancode:78},{keyActionType:"keystroke",type:"basic",scancode:41},null,null,null,{keyActionType:"keystroke",type:"basic",scancode:101},{keyActionType:"keystroke",type:"basic",modifierMask:32},null,null,{keyActionType:"switchLayer",layer:"mod",switchLayerMode:"holdAndDoubleTapToggle"},null,{keyActionType:"keystroke",type:"basic",modifierMask:64},{keyActionType:"keystroke",type:"basic",modifierMask:128},{keyActionType:"keystroke",type:"basic",modifierMask:16}]},{id:1,keyActions:[{keyActionType:"keystroke",type:"basic",scancode:41},{keyActionType:"keystroke",type:"basic",scancode:58},{keyActionType:"keystroke",type:"basic",scancode:59},{keyActionType:"keystroke",type:"basic",scancode:60},{keyActionType:"keystroke",type:"basic",scancode:61},{keyActionType:"keystroke",type:"basic",scancode:62},{keyActionType:"keystroke",type:"basic",scancode:63},null,{keyActionType:"keystroke",type:"basic",scancode:41},{keyActionType:"keystroke",type:"basic",scancode:75,modifierMask:1},{keyActionType:"keystroke",type:"basic",scancode:23,modifierMask:1},{keyActionType:"keystroke",type:"basic",scancode:78,modifierMask:1},null,null,null,{keyActionType:"keystroke",type:"basic",scancode:57,modifierMask:1},{keyActionType:"keystroke",type:"basic",scancode:80,modifierMask:5},{keyActionType:"keystroke",type:"basic",scancode:43,modifierMask:4},{keyActionType:"keystroke",type:"basic",scancode:79,modifierMask:5},null,null,{keyActionType:"keystroke",type:"basic",modifierMask:2},null,null,{keyActionType:"keystroke",type:"basic",scancode:75,modifierMask:3},{keyActionType:"keystroke",type:"basic",scancode:26,modifierMask:1},{keyActionType:"keystroke",type:"basic",scancode:78,modifierMask:3},null,{keyActionType:"keystroke",type:"basic",modifierMask:1},{keyActionType:"keystroke",type:"basic",modifierMask:8},{keyActionType:"keystroke",type:"basic",modifierMask:4},null,null,{keyActionType:"switchLayer",layer:"mod",switchLayerMode:"holdAndDoubleTapToggle"},null]}]},{modules:[{id:0,keyActions:[null,null,null,null,null,null,null,{keyActionType:"keystroke",type:"media",scancode:205},{keyActionType:"keystroke",type:"media",scancode:233},null,null,null,null,{keyActionType:"keystroke",type:"system",scancode:130},null,{keyActionType:"keystroke",type:"media",scancode:182},{keyActionType:"keystroke",type:"media",scancode:234},{keyActionType:"keystroke",type:"media",scancode:181},null,null,null,null,null,null,{keyActionType:"keystroke",type:"media",scancode:226},null,null,{keyActionType:"keystroke",type:"basic",modifierMask:32},null,null,null,{keyActionType:"switchLayer",layer:"fn",switchLayerMode:"holdAndDoubleTapToggle"},{keyActionType:"keystroke",type:"basic",modifierMask:64},{keyActionType:"keystroke",type:"basic",modifierMask:128},{keyActionType:"keystroke",type:"basic",modifierMask:16}]},{id:1,keyActions:[null,{keyActionType:"switchKeymap",keymapAbbreviation:"QWR"},{keyActionType:"switchKeymap",keymapAbbreviation:"DVO"},null,{keyActionType:"switchKeymap",keymapAbbreviation:"QWM"},{keyActionType:"switchKeymap",keymapAbbreviation:"DVM"},{keyActionType:"switchKeymap",keymapAbbreviation:"COM"},null,null,null,null,null,null,null,null,null,null,null,null,null,null,{keyActionType:"keystroke",type:"basic",modifierMask:2},null,null,null,null,null,null,{keyActionType:"keystroke",type:"basic",modifierMask:1},{keyActionType:"keystroke",type:"basic",modifierMask:8},{keyActionType:"keystroke",type:"basic",modifierMask:4},{keyActionType:"switchLayer",layer:"fn",switchLayerMode:"holdAndDoubleTapToggle"},null,null,null]}]},{modules:[{id:0,keyActions:[null,null,null,null,null,null,{keyActionType:"switchKeymap",keymapAbbreviation:"TES"},{keyActionType:"mouse",mouseAction:"scrollLeft"},{keyActionType:"mouse",mouseAction:"moveUp"},{keyActionType:"mouse",mouseAction:"scrollRight"},null,null,null,null,{keyActionType:"mouse",mouseAction:"scrollUp"},{keyActionType:"mouse",mouseAction:"moveLeft"},{keyActionType:"mouse",mouseAction:"moveDown"},{keyActionType:"mouse",mouseAction:"moveRight"},null,null,null,{keyActionType:"mouse",mouseAction:"scrollDown"},null,null,null,null,null,{keyActionType:"keystroke",type:"basic",modifierMask:32},null,{keyActionType:"mouse",mouseAction:"leftClick"},{keyActionType:"mouse",mouseAction:"rightClick"},null,{keyActionType:"keystroke",type:"basic",modifierMask:64},{keyActionType:"keystroke",type:"basic",modifierMask:128},{keyActionType:"keystroke",type:"basic",modifierMask:16}]},{id:1,keyActions:[null,{keyActionType:"switchKeymap",keymapAbbreviation:"QWR"},{keyActionType:"switchKeymap",keymapAbbreviation:"DVO"},null,null,null,null,null,null,null,null,null,null,null,{keyActionType:"switchLayer",layer:"mouse",switchLayerMode:"holdAndDoubleTapToggle"},null,{keyActionType:"mouse",mouseAction:"rightClick"},{keyActionType:"mouse",mouseAction:"middleClick"},{keyActionType:"mouse",mouseAction:"leftClick"},null,null,{keyActionType:"keystroke",type:"basic",modifierMask:2},null,null,null,null,null,null,{keyActionType:"keystroke",type:"basic",modifierMask:1},{keyActionType:"keystroke",type:"basic",modifierMask:8},{keyActionType:"keystroke",type:"basic",modifierMask:4},null,{keyActionType:"mouse",mouseAction:"decelerate"},{keyActionType:"mouse",mouseAction:"accelerate"},null]}]}]},{isDefault:!1,abbreviation:"DVM",name:"Dvorak for Mac",description:"The Dvorak keyboard layout was designed with the goal of maximizing typing efficiency. This is the Mac version.",layers:[{modules:[{id:0,keyActions:[{keyActionType:"keystroke",type:"basic",scancode:36},{keyActionType:"keystroke",type:"basic",scancode:37},{keyActionType:"keystroke",type:"basic",scancode:38},{keyActionType:"keystroke",type:"basic",scancode:39},{keyActionType:"keystroke",type:"basic",scancode:47},{keyActionType:"keystroke",type:"basic",scancode:48},{keyActionType:"keystroke",type:"basic",scancode:42},{keyActionType:"keystroke",type:"basic",scancode:10},{keyActionType:"keystroke",type:"basic",scancode:6},{keyActionType:"keystroke",type:"basic",scancode:21},{keyActionType:"keystroke",type:"basic",scancode:15},{keyActionType:"keystroke",type:"basic",scancode:56},{keyActionType:"keystroke",type:"basic",scancode:46},{keyActionType:"keystroke",type:"basic",scancode:49},{keyActionType:"keystroke",type:"basic",scancode:9},{keyActionType:"keystroke",type:"basic",scancode:11},{keyActionType:"keystroke",type:"basic",scancode:23},{keyActionType:"keystroke",type:"basic",scancode:17},{keyActionType:"keystroke",type:"basic",scancode:22},{keyActionType:"keystroke",type:"basic",scancode:45},{keyActionType:"keystroke",type:"basic",scancode:40},{keyActionType:"keystroke",type:"basic",scancode:7},{keyActionType:"keystroke",type:"basic",scancode:5},{keyActionType:"keystroke",type:"basic",scancode:16},{keyActionType:"keystroke",type:"basic",scancode:26},{keyActionType:"keystroke",type:"basic",scancode:25},{keyActionType:"keystroke",type:"basic",scancode:29},{keyActionType:"keystroke",type:"basic",modifierMask:32},null,{keyActionType:"keystroke",type:"basic",scancode:44},{keyActionType:"switchLayer",layer:"mod",switchLayerMode:"holdAndDoubleTapToggle"},{keyActionType:"switchLayer",layer:"fn",switchLayerMode:"holdAndDoubleTapToggle"},{keyActionType:"keystroke",type:"basic",modifierMask:128},{keyActionType:"keystroke",type:"basic",modifierMask:64},{keyActionType:"keystroke",type:"basic",modifierMask:16}]},{id:1,keyActions:[{keyActionType:"keystroke",type:"basic",scancode:53},{keyActionType:"keystroke",type:"basic",scancode:30},{keyActionType:"keystroke",type:"basic",scancode:31},{keyActionType:"keystroke",type:"basic",scancode:32},{keyActionType:"keystroke",type:"basic",scancode:33},{keyActionType:"keystroke",type:"basic",scancode:34},{keyActionType:"keystroke",type:"basic",scancode:35},{keyActionType:"keystroke",type:"basic",scancode:43},{keyActionType:"keystroke",type:"basic",scancode:52},{keyActionType:"keystroke",type:"basic",scancode:54},{keyActionType:"keystroke",type:"basic",scancode:55},{keyActionType:"keystroke",type:"basic",scancode:19},null,{keyActionType:"keystroke",type:"basic",scancode:28},{keyActionType:"switchLayer",layer:"mouse",switchLayerMode:"holdAndDoubleTapToggle"},{keyActionType:"keystroke",type:"basic",scancode:4},{keyActionType:"keystroke",type:"basic",scancode:18},{keyActionType:"keystroke",type:"basic",scancode:8},{keyActionType:"keystroke",type:"basic",scancode:24},null,{keyActionType:"keystroke",type:"basic",scancode:12},{keyActionType:"keystroke",type:"basic",modifierMask:2},{keyActionType:"keystroke",type:"basic",scancode:100},{keyActionType:"keystroke",type:"basic",scancode:51},{keyActionType:"keystroke",type:"basic",scancode:20},{keyActionType:"keystroke",type:"basic",scancode:13},{keyActionType:"keystroke",type:"basic",scancode:14},{keyActionType:"keystroke",type:"basic",scancode:27},{keyActionType:"keystroke",type:"basic",modifierMask:1},{keyActionType:"keystroke",type:"basic",modifierMask:4},{keyActionType:"keystroke",type:"basic",modifierMask:8},{keyActionType:"switchLayer",layer:"fn",switchLayerMode:"holdAndDoubleTapToggle"},{keyActionType:"keystroke",type:"basic",scancode:44},{keyActionType:"switchLayer",layer:"mod",switchLayerMode:"holdAndDoubleTapToggle"},null]},{id:2,keyActions:[]}]},{modules:[{id:0,keyActions:[{keyActionType:"keystroke",type:"basic",scancode:64},{keyActionType:"keystroke",type:"basic",scancode:65},{keyActionType:"keystroke",type:"basic",scancode:66},{keyActionType:"keystroke",type:"basic",scancode:67},{keyActionType:"keystroke",type:"basic",scancode:68},{keyActionType:"keystroke",type:"basic",scancode:69},{keyActionType:"keystroke",type:"basic",scancode:76},{keyActionType:"keystroke",type:"basic",scancode:74},{keyActionType:"keystroke",type:"basic",scancode:82},{keyActionType:"keystroke",type:"basic",scancode:77},{keyActionType:"keystroke",type:"basic",scancode:76},{keyActionType:"keystroke",type:"basic",scancode:70},{keyActionType:"keystroke",type:"basic",scancode:71},{keyActionType:"keystroke",type:"basic",scancode:72},{keyActionType:"keystroke",type:"basic",scancode:75},{keyActionType:"keystroke",type:"basic",scancode:80},{keyActionType:"keystroke",type:"basic",scancode:81},{keyActionType:"keystroke",type:"basic",scancode:79},{keyActionType:"keystroke",type:"basic",scancode:73},null,null,{keyActionType:"keystroke",type:"basic",scancode:78},{keyActionType:"keystroke",type:"basic",scancode:41},null,null,null,{keyActionType:"keystroke",type:"basic",scancode:101},{keyActionType:"keystroke",type:"basic",modifierMask:32},null,null,{keyActionType:"switchLayer",layer:"mod",switchLayerMode:"holdAndDoubleTapToggle"},null,{keyActionType:"keystroke",type:"basic",modifierMask:128},{keyActionType:"keystroke",type:"basic",modifierMask:64},{keyActionType:"keystroke",type:"basic",modifierMask:16}]},{id:1,keyActions:[{keyActionType:"keystroke",type:"basic",scancode:41},{keyActionType:"keystroke",type:"basic",scancode:58},{keyActionType:"keystroke",type:"basic",scancode:59},{keyActionType:"keystroke",type:"basic",scancode:60},{keyActionType:"keystroke",type:"basic",scancode:61},{keyActionType:"keystroke",type:"basic",scancode:62},{keyActionType:"keystroke",type:"basic",scancode:63},null,{keyActionType:"keystroke",type:"basic",scancode:41},{keyActionType:"keystroke",type:"basic",scancode:80,modifierMask:12},{keyActionType:"keystroke",type:"basic",scancode:23,modifierMask:8},{keyActionType:"keystroke",type:"basic",scancode:79,modifierMask:12},null,null,null,{keyActionType:"keystroke",type:"basic",scancode:57,modifierMask:1},{keyActionType:"keystroke",type:"basic",scancode:80,modifierMask:1},{keyActionType:"keystroke",type:"basic",scancode:43,modifierMask:8},{keyActionType:"keystroke",type:"basic",scancode:79,modifierMask:1},null,null,{keyActionType:"keystroke",type:"basic",modifierMask:2},null,null,null,{keyActionType:"keystroke",type:"basic",scancode:26,modifierMask:8},null,null,{keyActionType:"keystroke",type:"basic",modifierMask:1},{keyActionType:"keystroke",type:"basic",modifierMask:4},{keyActionType:"keystroke",type:"basic",modifierMask:8},null,null,{keyActionType:"switchLayer",layer:"mod",switchLayerMode:"holdAndDoubleTapToggle"},null]}]},{modules:[{id:0,keyActions:[null,null,null,null,null,null,null,{keyActionType:"keystroke",type:"media",scancode:205},{keyActionType:"keystroke",type:"media",scancode:233},null,null,null,null,{keyActionType:"keystroke",type:"media",scancode:184,modifierMask:12},null,{keyActionType:"keystroke",type:"media",scancode:182},{keyActionType:"keystroke",type:"media",scancode:234},{keyActionType:"keystroke",type:"media",scancode:181},null,null,null,null,null,null,{keyActionType:"keystroke",type:"media",scancode:226},null,null,{keyActionType:"keystroke",type:"basic",modifierMask:32},null,null,null,{keyActionType:"switchLayer",layer:"fn",switchLayerMode:"holdAndDoubleTapToggle"},{keyActionType:"keystroke",type:"basic",modifierMask:128},{keyActionType:"keystroke",type:"basic",modifierMask:64},{keyActionType:"keystroke",type:"basic",modifierMask:16}]},{id:1,keyActions:[null,{keyActionType:"switchKeymap",keymapAbbreviation:"QWR"},{keyActionType:"switchKeymap",keymapAbbreviation:"DVO"},{keyActionType:"switchKeymap",keymapAbbreviation:"COL"},{keyActionType:"switchKeymap",keymapAbbreviation:"QWM"},null,{keyActionType:"switchKeymap",keymapAbbreviation:"COM"},null,null,null,null,null,null,null,null,null,null,null,null,null,null,{keyActionType:"keystroke",type:"basic",modifierMask:2},null,null,null,null,null,null,{keyActionType:"keystroke",type:"basic",modifierMask:1},{keyActionType:"keystroke",type:"basic",modifierMask:4},{keyActionType:"keystroke",type:"basic",modifierMask:8},{keyActionType:"switchLayer",layer:"fn",switchLayerMode:"holdAndDoubleTapToggle"},null,null,null]}]},{modules:[{id:0,keyActions:[null,null,null,null,null,null,null,{keyActionType:"mouse",mouseAction:"scrollLeft"},{keyActionType:"mouse",mouseAction:"moveUp"},{keyActionType:"mouse",mouseAction:"scrollRight"},null,{keyActionType:"switchKeymap",keymapAbbreviation:"QWR"},{keyActionType:"switchKeymap",keymapAbbreviation:"COL"},null,{keyActionType:"mouse",mouseAction:"scrollDown"},{keyActionType:"mouse",mouseAction:"moveLeft"},{keyActionType:"mouse",mouseAction:"moveDown"},{keyActionType:"mouse",mouseAction:"moveRight"},null,null,null,{keyActionType:"mouse",mouseAction:"scrollUp"},null,null,null,null,null,{keyActionType:"keystroke",type:"basic",modifierMask:32},null,{keyActionType:"mouse",mouseAction:"leftClick"},{keyActionType:"mouse",mouseAction:"rightClick"},null,{keyActionType:"keystroke",type:"basic",modifierMask:128},{keyActionType:"keystroke",type:"basic",modifierMask:64},{keyActionType:"keystroke",type:"basic",modifierMask:16}]},{id:1,keyActions:[null,null,null,null,null,null,null,null,null,null,null,null,null,null,{keyActionType:"switchLayer",layer:"mouse",switchLayerMode:"holdAndDoubleTapToggle"},null,{keyActionType:"mouse",mouseAction:"rightClick"},{keyActionType:"mouse",mouseAction:"middleClick"},{keyActionType:"mouse",mouseAction:"leftClick"},null,null,{keyActionType:"keystroke",type:"basic",modifierMask:2},null,null,null,null,null,null,{keyActionType:"keystroke",type:"basic",modifierMask:1},{keyActionType:"keystroke",type:"basic",modifierMask:4},{keyActionType:"keystroke",type:"basic",modifierMask:8},null,{keyActionType:"mouse",mouseAction:"decelerate"},{keyActionType:"mouse",mouseAction:"accelerate"},null]}]}]},{isDefault:!1,abbreviation:"DVO",name:"Dvorak for PC",description:"The Dvorak keyboard layout was designed with the goal of maximizing typing efficiency. This is the PC version.",layers:[{modules:[{id:0,keyActions:[{keyActionType:"keystroke",type:"basic",scancode:36},{keyActionType:"keystroke",type:"basic",scancode:37},{keyActionType:"keystroke",type:"basic",scancode:38},{keyActionType:"keystroke",type:"basic",scancode:39},{keyActionType:"keystroke",type:"basic",scancode:47},{keyActionType:"keystroke",type:"basic",scancode:48},{keyActionType:"keystroke",type:"basic",scancode:42},{keyActionType:"keystroke",type:"basic",scancode:10},{keyActionType:"keystroke",type:"basic",scancode:6},{keyActionType:"keystroke",type:"basic",scancode:21},{keyActionType:"keystroke",type:"basic",scancode:15},{keyActionType:"keystroke",type:"basic",scancode:56},{keyActionType:"keystroke",type:"basic",scancode:46},{keyActionType:"keystroke",type:"basic",scancode:49},{keyActionType:"keystroke",type:"basic",scancode:9},{keyActionType:"keystroke",type:"basic",scancode:11},{keyActionType:"keystroke",type:"basic",scancode:23},{keyActionType:"keystroke",type:"basic",scancode:17},{keyActionType:"keystroke",type:"basic",scancode:22},{keyActionType:"keystroke",type:"basic",scancode:45},{keyActionType:"keystroke",type:"basic",scancode:40},{keyActionType:"keystroke",type:"basic",scancode:7},{keyActionType:"keystroke",type:"basic",scancode:5},{keyActionType:"keystroke",type:"basic",scancode:16},{keyActionType:"keystroke",type:"basic",scancode:26},{keyActionType:"keystroke",type:"basic",scancode:25},{keyActionType:"keystroke",type:"basic",scancode:29},{keyActionType:"keystroke",type:"basic",modifierMask:32},null,{keyActionType:"keystroke",type:"basic",scancode:44},{keyActionType:"switchLayer",layer:"mod",switchLayerMode:"holdAndDoubleTapToggle"},{keyActionType:"switchLayer",layer:"fn",switchLayerMode:"holdAndDoubleTapToggle"},{keyActionType:"keystroke",type:"basic",modifierMask:64},{keyActionType:"keystroke",type:"basic",modifierMask:128},{keyActionType:"keystroke",type:"basic",modifierMask:16}]},{id:1,keyActions:[{keyActionType:"keystroke",type:"basic",scancode:53},{keyActionType:"keystroke",type:"basic",scancode:30},{keyActionType:"keystroke",type:"basic",scancode:31},{keyActionType:"keystroke",type:"basic",scancode:32},{keyActionType:"keystroke",type:"basic",scancode:33},{keyActionType:"keystroke",type:"basic",scancode:34},{keyActionType:"keystroke",type:"basic",scancode:35},{keyActionType:"keystroke",type:"basic",scancode:43},{keyActionType:"keystroke",type:"basic",scancode:52},{keyActionType:"keystroke",type:"basic",scancode:54},{keyActionType:"keystroke",type:"basic",scancode:55},{keyActionType:"keystroke",type:"basic",scancode:19},null,{keyActionType:"keystroke",type:"basic",scancode:28},{keyActionType:"switchLayer",layer:"mouse",switchLayerMode:"holdAndDoubleTapToggle"},{keyActionType:"keystroke",type:"basic",scancode:4},{keyActionType:"keystroke",type:"basic",scancode:18},{keyActionType:"keystroke",type:"basic",scancode:8},{keyActionType:"keystroke",type:"basic",scancode:24},null,{keyActionType:"keystroke",type:"basic",scancode:12},{keyActionType:"keystroke",type:"basic",modifierMask:2},{keyActionType:"keystroke",type:"basic",scancode:100},{keyActionType:"keystroke",type:"basic",scancode:51},{keyActionType:"keystroke",type:"basic",scancode:20},{keyActionType:"keystroke",type:"basic",scancode:13},{keyActionType:"keystroke",type:"basic",scancode:14},{keyActionType:"keystroke",type:"basic",scancode:27},{keyActionType:"keystroke",type:"basic",modifierMask:1},{keyActionType:"keystroke",type:"basic",modifierMask:8},{keyActionType:"keystroke",type:"basic",modifierMask:4},{keyActionType:"switchLayer",layer:"fn",switchLayerMode:"holdAndDoubleTapToggle"},{keyActionType:"keystroke",type:"basic",scancode:44},{keyActionType:"switchLayer",layer:"mod",switchLayerMode:"holdAndDoubleTapToggle"},null]},{id:2,keyActions:[]}]},{modules:[{id:0,keyActions:[{keyActionType:"keystroke",type:"basic",scancode:64},{keyActionType:"keystroke",type:"basic",scancode:65},{keyActionType:"keystroke",type:"basic",scancode:66},{keyActionType:"keystroke",type:"basic",scancode:67},{keyActionType:"keystroke",type:"basic",scancode:68},{keyActionType:"keystroke",type:"basic",scancode:69},{keyActionType:"keystroke",type:"basic",scancode:76},{keyActionType:"keystroke",type:"basic",scancode:74},{keyActionType:"keystroke",type:"basic",scancode:82},{keyActionType:"keystroke",type:"basic",scancode:77},{keyActionType:"keystroke",type:"basic",scancode:76},{keyActionType:"keystroke",type:"basic",scancode:70},{keyActionType:"keystroke",type:"basic",scancode:71},{keyActionType:"keystroke",type:"basic",scancode:72},{keyActionType:"keystroke",type:"basic",scancode:75},{keyActionType:"keystroke",type:"basic",scancode:80},{keyActionType:"keystroke",type:"basic",scancode:81},{keyActionType:"keystroke",type:"basic",scancode:79},{keyActionType:"keystroke",type:"basic",scancode:73},null,null,{keyActionType:"keystroke",type:"basic",scancode:78},{keyActionType:"keystroke",type:"basic",scancode:41},null,null,null,{keyActionType:"keystroke",type:"basic",scancode:101},{keyActionType:"keystroke",type:"basic",modifierMask:32},null,null,{keyActionType:"switchLayer",layer:"mod",switchLayerMode:"holdAndDoubleTapToggle"},null,{keyActionType:"keystroke",type:"basic",modifierMask:64},{keyActionType:"keystroke",type:"basic",modifierMask:128},{keyActionType:"keystroke",type:"basic",modifierMask:16}]},{id:1,keyActions:[{keyActionType:"keystroke",type:"basic",scancode:41},{keyActionType:"keystroke",type:"basic",scancode:58},{keyActionType:"keystroke",type:"basic",scancode:59},{keyActionType:"keystroke",type:"basic",scancode:60},{keyActionType:"keystroke",type:"basic",scancode:61},{keyActionType:"keystroke",type:"basic",scancode:62},{keyActionType:"keystroke",type:"basic",scancode:63},null,{keyActionType:"keystroke",type:"basic",scancode:41},{keyActionType:"keystroke",type:"basic",scancode:75,modifierMask:1},{keyActionType:"keystroke",type:"basic",scancode:23,modifierMask:1},{keyActionType:"keystroke",type:"basic",scancode:78,modifierMask:1},null,null,null,{keyActionType:"keystroke",type:"basic",scancode:57,modifierMask:1},{keyActionType:"keystroke",type:"basic",scancode:80,modifierMask:5},{keyActionType:"keystroke",type:"basic",scancode:43,modifierMask:4},{keyActionType:"keystroke",type:"basic",scancode:79,modifierMask:5},null,null,{keyActionType:"keystroke",type:"basic",modifierMask:2},null,null,{keyActionType:"keystroke",type:"basic",scancode:75,modifierMask:3},{keyActionType:"keystroke",type:"basic",scancode:26,modifierMask:1},{keyActionType:"keystroke",type:"basic",scancode:78,modifierMask:3},null,{keyActionType:"keystroke",type:"basic",modifierMask:1},{keyActionType:"keystroke",type:"basic",modifierMask:8},{keyActionType:"keystroke",type:"basic",modifierMask:4},null,null,{keyActionType:"switchLayer",layer:"mod",switchLayerMode:"holdAndDoubleTapToggle"},null]}]},{modules:[{id:0,keyActions:[null,null,null,null,null,null,null,{keyActionType:"keystroke",type:"media",scancode:205},{keyActionType:"keystroke",type:"media",scancode:233},null,null,null,null,{keyActionType:"keystroke",type:"system",scancode:130},null,{keyActionType:"keystroke",type:"media",scancode:182},{keyActionType:"keystroke",type:"media",scancode:234},{keyActionType:"keystroke",type:"media",scancode:181},null,null,null,null,null,null,{keyActionType:"keystroke",type:"media",scancode:226},null,null,{keyActionType:"keystroke",type:"basic",modifierMask:32},null,null,null,{keyActionType:"switchLayer",layer:"fn",switchLayerMode:"holdAndDoubleTapToggle"},{keyActionType:"keystroke",type:"basic",modifierMask:64},{keyActionType:"keystroke",type:"basic",modifierMask:128},{keyActionType:"keystroke",type:"basic",modifierMask:16}]},{id:1,keyActions:[null,{keyActionType:"switchKeymap",keymapAbbreviation:"QWR"},null,{keyActionType:"switchKeymap",keymapAbbreviation:"COL"},{keyActionType:"switchKeymap",keymapAbbreviation:"QWM"},{keyActionType:"switchKeymap",keymapAbbreviation:"DVM"},{keyActionType:"switchKeymap",keymapAbbreviation:"COM"},null,null,null,null,null,null,null,null,null,null,null,null,null,null,{keyActionType:"keystroke",type:"basic",modifierMask:2},null,null,null,null,null,null,{keyActionType:"keystroke",type:"basic",modifierMask:1},{keyActionType:"keystroke",type:"basic",modifierMask:8},{keyActionType:"keystroke",type:"basic",modifierMask:4},{keyActionType:"switchLayer",layer:"fn",switchLayerMode:"holdAndDoubleTapToggle"},null,null,null]}]},{modules:[{id:0,keyActions:[null,null,null,null,null,null,null,{keyActionType:"mouse",mouseAction:"scrollLeft"},{keyActionType:"mouse",mouseAction:"moveUp"},{keyActionType:"mouse",mouseAction:"scrollRight"},null,{keyActionType:"switchKeymap",keymapAbbreviation:"QWR"},{keyActionType:"switchKeymap",keymapAbbreviation:"COL"},null,{keyActionType:"mouse",mouseAction:"scrollUp"},{keyActionType:"mouse",mouseAction:"moveLeft"},{keyActionType:"mouse",mouseAction:"moveDown"},{keyActionType:"mouse",mouseAction:"moveRight"},null,null,null,{keyActionType:"mouse",mouseAction:"scrollDown"},null,null,null,null,null,{keyActionType:"keystroke",type:"basic",modifierMask:32},null,{keyActionType:"mouse",mouseAction:"leftClick"},{keyActionType:"mouse",mouseAction:"rightClick"},null,{keyActionType:"keystroke",type:"basic",modifierMask:64},{keyActionType:"keystroke",type:"basic",modifierMask:128},{keyActionType:"keystroke",type:"basic",modifierMask:16}]},{id:1,keyActions:[null,null,null,null,null,null,null,null,null,null,null,null,null,null,{keyActionType:"switchLayer",layer:"mouse",switchLayerMode:"holdAndDoubleTapToggle"},null,{keyActionType:"mouse",mouseAction:"rightClick"},{keyActionType:"mouse",mouseAction:"middleClick"},{keyActionType:"mouse",mouseAction:"leftClick"},null,null,{keyActionType:"keystroke",type:"basic",modifierMask:2},null,null,null,null,null,null,{keyActionType:"keystroke",type:"basic",modifierMask:1},{keyActionType:"keystroke",type:"basic",modifierMask:8},{keyActionType:"keystroke",type:"basic",modifierMask:4},null,{keyActionType:"mouse",mouseAction:"decelerate"},{keyActionType:"mouse",mouseAction:"accelerate"},null]}]}]},{isDefault:!1,abbreviation:"QWM",name:"QWERTY for Mac",description:"QWERTY is the mother of all layouts. This is the Mac version.",layers:[{modules:[{id:0,keyActions:[{keyActionType:"keystroke",type:"basic",scancode:36},{keyActionType:"keystroke",type:"basic",scancode:37},{keyActionType:"keystroke",type:"basic",scancode:38},{keyActionType:"keystroke",type:"basic",scancode:39},{keyActionType:"keystroke",type:"basic",scancode:45},{keyActionType:"keystroke",type:"basic",scancode:46},{keyActionType:"keystroke",type:"basic",scancode:42},{keyActionType:"keystroke",type:"basic",scancode:24},{keyActionType:"keystroke",type:"basic",scancode:12},{keyActionType:"keystroke",type:"basic",scancode:18},{keyActionType:"keystroke",type:"basic",scancode:19},{keyActionType:"keystroke",type:"basic",scancode:47},{keyActionType:"keystroke",type:"basic",scancode:48},{keyActionType:"keystroke",type:"basic",scancode:49},{keyActionType:"keystroke",type:"basic",scancode:28},{keyActionType:"keystroke",type:"basic",scancode:13},{keyActionType:"keystroke",type:"basic",scancode:14},{keyActionType:"keystroke",type:"basic",scancode:15},{keyActionType:"keystroke",type:"basic",scancode:51},{keyActionType:"keystroke",type:"basic",scancode:52},{keyActionType:"keystroke",type:"basic",scancode:40},{keyActionType:"keystroke",type:"basic",scancode:11},{keyActionType:"keystroke",type:"basic",scancode:17},{keyActionType:"keystroke",type:"basic",scancode:16},{keyActionType:"keystroke",type:"basic",scancode:54},{keyActionType:"keystroke",type:"basic",scancode:55},{keyActionType:"keystroke",type:"basic",scancode:56},{keyActionType:"keystroke",type:"basic",modifierMask:32},null,{keyActionType:"keystroke",type:"basic",scancode:44},{keyActionType:"switchLayer",layer:"mod",switchLayerMode:"holdAndDoubleTapToggle"},{keyActionType:"switchLayer",layer:"fn",switchLayerMode:"holdAndDoubleTapToggle"},{keyActionType:"keystroke",type:"basic",modifierMask:128},{keyActionType:"keystroke",type:"basic",modifierMask:64},{keyActionType:"keystroke",type:"basic",modifierMask:16}]},{id:1,keyActions:[{keyActionType:"keystroke",type:"basic",scancode:53},{keyActionType:"keystroke",type:"basic",scancode:30},{keyActionType:"keystroke",type:"basic",scancode:31},{keyActionType:"keystroke",type:"basic",scancode:32},{keyActionType:"keystroke",type:"basic",scancode:33},{keyActionType:"keystroke",type:"basic",scancode:34},{keyActionType:"keystroke",type:"basic",scancode:35},{keyActionType:"keystroke",type:"basic",scancode:43},{keyActionType:"keystroke",type:"basic",scancode:20},{keyActionType:"keystroke",type:"basic",scancode:26},{keyActionType:"keystroke",type:"basic",scancode:8},{keyActionType:"keystroke",type:"basic",scancode:21},null,{keyActionType:"keystroke",type:"basic",scancode:23},{keyActionType:"switchLayer",layer:"mouse",switchLayerMode:"holdAndDoubleTapToggle"},{keyActionType:"keystroke",type:"basic",scancode:4},{keyActionType:"keystroke",type:"basic",scancode:22},{keyActionType:"keystroke",type:"basic",scancode:7},{keyActionType:"keystroke",type:"basic",scancode:9},null,{keyActionType:"keystroke",type:"basic",scancode:10},{keyActionType:"keystroke",type:"basic",modifierMask:2},{keyActionType:"keystroke",type:"basic",scancode:100},{keyActionType:"keystroke",type:"basic",scancode:29},{keyActionType:"keystroke",type:"basic",scancode:27},{keyActionType:"keystroke",type:"basic",scancode:6},{keyActionType:"keystroke",type:"basic",scancode:25},{keyActionType:"keystroke",type:"basic",scancode:5},{keyActionType:"keystroke",type:"basic",modifierMask:1},{keyActionType:"keystroke",type:"basic",modifierMask:4},{keyActionType:"keystroke",type:"basic",modifierMask:8},{keyActionType:"switchLayer",layer:"fn",switchLayerMode:"holdAndDoubleTapToggle"},{keyActionType:"keystroke",type:"basic",scancode:44},{keyActionType:"switchLayer",layer:"mod",switchLayerMode:"holdAndDoubleTapToggle"},null]},{id:2,keyActions:[]}]},{modules:[{id:0,keyActions:[{keyActionType:"keystroke",type:"basic",scancode:64},{keyActionType:"keystroke",type:"basic",scancode:65},{keyActionType:"keystroke",type:"basic",scancode:66},{keyActionType:"keystroke",type:"basic",scancode:67},{keyActionType:"keystroke",type:"basic",scancode:68},{keyActionType:"keystroke",type:"basic",scancode:69},{keyActionType:"keystroke",type:"basic",scancode:76},{keyActionType:"keystroke",type:"basic",scancode:74},{keyActionType:"keystroke",type:"basic",scancode:82},{keyActionType:"keystroke",type:"basic",scancode:77},{keyActionType:"keystroke",type:"basic",scancode:76},{keyActionType:"keystroke",type:"basic",scancode:70},{keyActionType:"keystroke",type:"basic",scancode:71},{keyActionType:"keystroke",type:"basic",scancode:72},{keyActionType:"keystroke",type:"basic",scancode:75},{keyActionType:"keystroke",type:"basic",scancode:80},{keyActionType:"keystroke",type:"basic",scancode:81},{keyActionType:"keystroke",type:"basic",scancode:79},{keyActionType:"keystroke",type:"basic",scancode:73},null,null,{keyActionType:"keystroke",type:"basic",scancode:78},{keyActionType:"keystroke",type:"basic",scancode:41},null,null,null,{keyActionType:"keystroke",type:"basic",scancode:101},{keyActionType:"keystroke",type:"basic",modifierMask:32},null,null,{keyActionType:"switchLayer",layer:"mod",switchLayerMode:"holdAndDoubleTapToggle"},null,{keyActionType:"keystroke",type:"basic",modifierMask:128},{keyActionType:"keystroke",type:"basic",modifierMask:64},{keyActionType:"keystroke",type:"basic",modifierMask:16}]},{id:1,keyActions:[{keyActionType:"keystroke",type:"basic",scancode:41},{keyActionType:"keystroke",type:"basic",scancode:58},{keyActionType:"keystroke",type:"basic",scancode:59},{keyActionType:"keystroke",type:"basic",scancode:60},{keyActionType:"keystroke",type:"basic",scancode:61},{keyActionType:"keystroke",type:"basic",scancode:62},{keyActionType:"keystroke",type:"basic",scancode:63},null,{keyActionType:"keystroke",type:"basic",scancode:41},{keyActionType:"keystroke",type:"basic",scancode:80,modifierMask:12},{keyActionType:"keystroke",type:"basic",scancode:23,modifierMask:8},{keyActionType:"keystroke",type:"basic",scancode:79,modifierMask:12},null,null,null,{keyActionType:"keystroke",type:"basic",scancode:57,modifierMask:1},{keyActionType:"keystroke",type:"basic",scancode:80,modifierMask:1},{keyActionType:"keystroke",type:"basic",scancode:43,modifierMask:8},{keyActionType:"keystroke",type:"basic",scancode:79,modifierMask:1},null,null,{keyActionType:"keystroke",type:"basic",modifierMask:2},null,null,null,{keyActionType:"keystroke",type:"basic",scancode:26,modifierMask:8},null,null,{keyActionType:"keystroke",type:"basic",modifierMask:1},{keyActionType:"keystroke",type:"basic",modifierMask:4},{keyActionType:"keystroke",type:"basic",modifierMask:8},null,null,{keyActionType:"switchLayer",layer:"mod",switchLayerMode:"holdAndDoubleTapToggle"},null]}]},{modules:[{id:0,keyActions:[null,null,null,null,null,null,null,{keyActionType:"keystroke",type:"media",scancode:205},{keyActionType:"keystroke",type:"media",scancode:233},null,null,null,null,{keyActionType:"keystroke",type:"media",scancode:184,modifierMask:12},null,{keyActionType:"keystroke",type:"media",scancode:182},{keyActionType:"keystroke",type:"media",scancode:234},{keyActionType:"keystroke",type:"media",scancode:181},null,null,null,null,null,null,{keyActionType:"keystroke",type:"media",scancode:226},null,null,{keyActionType:"keystroke",type:"basic",modifierMask:32},null,null,null,{keyActionType:"switchLayer",layer:"fn",switchLayerMode:"holdAndDoubleTapToggle"},{keyActionType:"keystroke",type:"basic",modifierMask:128},{keyActionType:"keystroke",type:"basic",modifierMask:64},{keyActionType:"keystroke",type:"basic",modifierMask:16}]},{id:1,keyActions:[null,{keyActionType:"switchKeymap",keymapAbbreviation:"QWR"},{keyActionType:"switchKeymap",keymapAbbreviation:"DVO"},{keyActionType:"switchKeymap",keymapAbbreviation:"COL"},null,{keyActionType:"switchKeymap",keymapAbbreviation:"DVM"},{keyActionType:"switchKeymap",keymapAbbreviation:"COM"},null,null,null,null,null,null,null,null,null,null,null,null,null,null,{keyActionType:"keystroke",type:"basic",modifierMask:2},null,null,null,null,null,null,{keyActionType:"keystroke",type:"basic",modifierMask:1},{keyActionType:"keystroke",type:"basic",modifierMask:4},{keyActionType:"keystroke",type:"basic",modifierMask:8},{keyActionType:"switchLayer",layer:"fn",switchLayerMode:"holdAndDoubleTapToggle"},null,null,null]}]},{modules:[{id:0,keyActions:[null,null,null,null,null,null,null,{keyActionType:"mouse",mouseAction:"scrollLeft"},{keyActionType:"mouse",mouseAction:"moveUp"},{keyActionType:"mouse",mouseAction:"scrollRight"},null,null,null,null,{keyActionType:"mouse",mouseAction:"scrollDown"},{keyActionType:"mouse",mouseAction:"moveLeft"},{keyActionType:"mouse",mouseAction:"moveDown"},{keyActionType:"mouse",mouseAction:"moveRight"},null,null,null,{keyActionType:"mouse",mouseAction:"scrollUp"},null,null,null,null,null,{keyActionType:"keystroke",type:"basic",modifierMask:32},null,{keyActionType:"mouse",mouseAction:"leftClick"},{keyActionType:"mouse",mouseAction:"rightClick"},null,{keyActionType:"keystroke",type:"basic",modifierMask:128},{keyActionType:"keystroke",type:"basic",modifierMask:64},{keyActionType:"keystroke",type:"basic",modifierMask:16}]},{id:1,keyActions:[null,null,null,null,null,null,null,null,null,null,null,null,null,null,{keyActionType:"switchLayer",layer:"mouse",switchLayerMode:"holdAndDoubleTapToggle"},null,{keyActionType:"mouse",mouseAction:"rightClick"},{keyActionType:"mouse",mouseAction:"middleClick"},{keyActionType:"mouse",mouseAction:"leftClick"},null,null,{keyActionType:"keystroke",type:"basic",modifierMask:2},null,null,null,null,null,null,{keyActionType:"keystroke",type:"basic",modifierMask:1},{keyActionType:"keystroke",type:"basic",modifierMask:4},{keyActionType:"keystroke",type:"basic",modifierMask:8},null,{keyActionType:"mouse",mouseAction:"decelerate"},{keyActionType:"mouse",mouseAction:"accelerate"},null]}]}]},{isDefault:!0,abbreviation:"QWR",name:"QWERTY for PC",description:"QWERTY is the mother of all layouts. This is the PC version.",layers:[{modules:[{id:0,keyActions:[{keyActionType:"keystroke",type:"basic",scancode:36},{keyActionType:"keystroke",type:"basic",scancode:37},{keyActionType:"keystroke",type:"basic",scancode:38},{keyActionType:"keystroke",type:"basic",scancode:39},{keyActionType:"keystroke",type:"basic",scancode:45},{keyActionType:"keystroke",type:"basic",scancode:46},{keyActionType:"keystroke",type:"basic",scancode:42},{keyActionType:"keystroke",type:"basic",scancode:24},{keyActionType:"keystroke",type:"basic",scancode:12},{keyActionType:"keystroke",type:"basic",scancode:18},{keyActionType:"keystroke",type:"basic",scancode:19},{keyActionType:"keystroke",type:"basic",scancode:47},{keyActionType:"keystroke",type:"basic",scancode:48},{keyActionType:"keystroke",type:"basic",scancode:49},{keyActionType:"keystroke",type:"basic",scancode:28},{keyActionType:"keystroke",type:"basic",scancode:13},{keyActionType:"keystroke",type:"basic",scancode:14},{keyActionType:"keystroke",type:"basic",scancode:15},{keyActionType:"keystroke",type:"basic",scancode:51},{keyActionType:"keystroke",type:"basic",scancode:52},{keyActionType:"keystroke",type:"basic",scancode:40},{keyActionType:"keystroke",type:"basic",scancode:11},{keyActionType:"keystroke",type:"basic",scancode:17},{keyActionType:"keystroke",type:"basic",scancode:16},{keyActionType:"keystroke",type:"basic",scancode:54},{keyActionType:"keystroke",type:"basic",scancode:55},{keyActionType:"keystroke",type:"basic",scancode:56},{keyActionType:"keystroke",type:"basic",modifierMask:32},null,{keyActionType:"keystroke",type:"basic",scancode:44},{keyActionType:"switchLayer",layer:"mod",switchLayerMode:"holdAndDoubleTapToggle"},{keyActionType:"switchLayer",layer:"fn",switchLayerMode:"holdAndDoubleTapToggle"},{keyActionType:"keystroke",type:"basic",modifierMask:64},{keyActionType:"keystroke",type:"basic",modifierMask:128},{keyActionType:"keystroke",type:"basic",modifierMask:16}]},{id:1,keyActions:[{keyActionType:"keystroke",type:"basic",scancode:53},{keyActionType:"keystroke",type:"basic",scancode:30},{keyActionType:"keystroke",type:"basic",scancode:31},{keyActionType:"keystroke",type:"basic",scancode:32},{keyActionType:"keystroke",type:"basic",scancode:33},{keyActionType:"keystroke",type:"basic",scancode:34},{keyActionType:"keystroke",type:"basic",scancode:35},{keyActionType:"keystroke",type:"basic",scancode:43},{keyActionType:"keystroke",type:"basic",scancode:20},{keyActionType:"keystroke",type:"basic",scancode:26},{keyActionType:"keystroke",type:"basic",scancode:8},{keyActionType:"keystroke",type:"basic",scancode:21},null,{keyActionType:"keystroke",type:"basic",scancode:23},{keyActionType:"switchLayer",layer:"mouse",switchLayerMode:"holdAndDoubleTapToggle"},{keyActionType:"keystroke",type:"basic",scancode:4},{keyActionType:"keystroke",type:"basic",scancode:22},{keyActionType:"keystroke",type:"basic",scancode:7},{keyActionType:"keystroke",type:"basic",scancode:9},null,{keyActionType:"keystroke",type:"basic",scancode:10},{keyActionType:"keystroke",type:"basic",modifierMask:2},{keyActionType:"keystroke",type:"basic",scancode:100},{keyActionType:"keystroke",type:"basic",scancode:29},{keyActionType:"keystroke",type:"basic",scancode:27},{keyActionType:"keystroke",type:"basic",scancode:6},{keyActionType:"keystroke",type:"basic",scancode:25},{keyActionType:"keystroke",type:"basic",scancode:5},{keyActionType:"keystroke",type:"basic",modifierMask:1},{keyActionType:"keystroke",type:"basic",modifierMask:8},{keyActionType:"keystroke",type:"basic",modifierMask:4},{keyActionType:"switchLayer",layer:"fn",switchLayerMode:"holdAndDoubleTapToggle"},{keyActionType:"keystroke",type:"basic",scancode:44},{keyActionType:"switchLayer",layer:"mod",switchLayerMode:"holdAndDoubleTapToggle"},null]},{id:2,keyActions:[]}]},{modules:[{id:0,keyActions:[{keyActionType:"keystroke",type:"basic",scancode:64},{keyActionType:"keystroke",type:"basic",scancode:65},{keyActionType:"keystroke",type:"basic",scancode:66},{keyActionType:"keystroke",type:"basic",scancode:67},{keyActionType:"keystroke",type:"basic",scancode:68},{keyActionType:"keystroke",type:"basic",scancode:69},{keyActionType:"keystroke",type:"basic",scancode:76},{keyActionType:"keystroke",type:"basic",scancode:74},{keyActionType:"keystroke",type:"basic",scancode:82},{keyActionType:"keystroke",type:"basic",scancode:77},{keyActionType:"keystroke",type:"basic",scancode:76},{keyActionType:"keystroke",type:"basic",scancode:70},{keyActionType:"keystroke",type:"basic",scancode:71},{keyActionType:"keystroke",type:"basic",scancode:72},{keyActionType:"keystroke",type:"basic",scancode:75},{keyActionType:"keystroke",type:"basic",scancode:80},{keyActionType:"keystroke",type:"basic",scancode:81},{keyActionType:"keystroke",type:"basic",scancode:79},{keyActionType:"keystroke",type:"basic",scancode:73},null,null,{keyActionType:"keystroke",type:"basic",scancode:78},{keyActionType:"keystroke",type:"basic",scancode:41},null,null,null,{keyActionType:"keystroke",type:"basic",scancode:101},{keyActionType:"keystroke",type:"basic",modifierMask:32},null,null,{keyActionType:"switchLayer",layer:"mod",switchLayerMode:"holdAndDoubleTapToggle"},null,{keyActionType:"keystroke",type:"basic",modifierMask:64},{keyActionType:"keystroke",type:"basic",modifierMask:128},{keyActionType:"keystroke",type:"basic",modifierMask:16}]},{id:1,keyActions:[{keyActionType:"keystroke",type:"basic",scancode:41},{keyActionType:"keystroke",type:"basic",scancode:58},{keyActionType:"keystroke",type:"basic",scancode:59},{keyActionType:"keystroke",type:"basic",scancode:60},{keyActionType:"keystroke",type:"basic",scancode:61},{keyActionType:"keystroke",type:"basic",scancode:62},{keyActionType:"keystroke",type:"basic",scancode:63},null,{keyActionType:"keystroke",type:"basic",scancode:41},{keyActionType:"keystroke",type:"basic",scancode:75,modifierMask:1},{keyActionType:"keystroke",type:"basic",scancode:23,modifierMask:1},{keyActionType:"keystroke",type:"basic",scancode:78,modifierMask:1},null,null,null,{keyActionType:"keystroke",type:"basic",scancode:57,modifierMask:1},{keyActionType:"keystroke",type:"basic",scancode:80,modifierMask:5},{keyActionType:"keystroke",type:"basic",scancode:43,modifierMask:4},{keyActionType:"keystroke",type:"basic",scancode:79,modifierMask:5},null,null,{keyActionType:"keystroke",type:"basic",modifierMask:2},null,null,{keyActionType:"keystroke",type:"basic",scancode:75,modifierMask:3},{keyActionType:"keystroke",type:"basic",scancode:26,modifierMask:1},{keyActionType:"keystroke",type:"basic",scancode:78,modifierMask:3},null,{keyActionType:"keystroke",type:"basic",modifierMask:1},{keyActionType:"keystroke",type:"basic",modifierMask:8},{keyActionType:"keystroke",type:"basic",modifierMask:4},null,null,{keyActionType:"switchLayer",layer:"mod",switchLayerMode:"holdAndDoubleTapToggle"},null]}]},{modules:[{id:0,keyActions:[null,null,null,null,null,null,{keyActionType:"switchKeymap",keymapAbbreviation:"TES"},{keyActionType:"keystroke",type:"media",scancode:205},{keyActionType:"keystroke",type:"media",scancode:233},null,null,null,null,{keyActionType:"keystroke",type:"system",scancode:130},null,{keyActionType:"keystroke",type:"media",scancode:182},{keyActionType:"keystroke",type:"media",scancode:234},{keyActionType:"keystroke",type:"media",scancode:181},null,null,null,null,null,null,{keyActionType:"keystroke",type:"media",scancode:226},null,null,{keyActionType:"keystroke",type:"basic",modifierMask:32},null,null,null,{keyActionType:"switchLayer",layer:"fn",switchLayerMode:"holdAndDoubleTapToggle"},{keyActionType:"keystroke",type:"basic",modifierMask:64},{keyActionType:"keystroke",type:"basic",modifierMask:128},{keyActionType:"keystroke",type:"basic",modifierMask:16}]},{id:1,keyActions:[null,null,{keyActionType:"switchKeymap",keymapAbbreviation:"DVO"},{keyActionType:"switchKeymap",keymapAbbreviation:"COL"},{keyActionType:"switchKeymap",keymapAbbreviation:"QWM"},{keyActionType:"switchKeymap",keymapAbbreviation:"DVM"},{keyActionType:"switchKeymap",keymapAbbreviation:"COM"},null,null,null,null,null,null,null,null,null,null,null,null,null,null,{keyActionType:"keystroke",type:"basic",modifierMask:2},null,null,null,null,null,null,{keyActionType:"keystroke",type:"basic",modifierMask:1},{keyActionType:"keystroke",type:"basic",modifierMask:8},{keyActionType:"keystroke",type:"basic",modifierMask:4},{keyActionType:"switchLayer",layer:"fn",switchLayerMode:"holdAndDoubleTapToggle"},null,null,null]}]},{modules:[{id:0,keyActions:[null,null,null,null,null,null,null,{keyActionType:"mouse",mouseAction:"scrollLeft"},{keyActionType:"mouse",mouseAction:"moveUp"},{keyActionType:"mouse",mouseAction:"scrollRight"},null,null,null,null,{keyActionType:"mouse",mouseAction:"scrollUp"},{keyActionType:"mouse",mouseAction:"moveLeft"},{keyActionType:"mouse",mouseAction:"moveDown"},{keyActionType:"mouse",mouseAction:"moveRight"},null,null,null,{keyActionType:"mouse",mouseAction:"scrollDown"},null,null,null,null,null,{keyActionType:"keystroke",type:"basic",modifierMask:32},null,{keyActionType:"mouse",mouseAction:"leftClick"},{keyActionType:"mouse",mouseAction:"rightClick"},null,{keyActionType:"keystroke",type:"basic",modifierMask:64},{keyActionType:"keystroke",type:"basic",modifierMask:128},{keyActionType:"keystroke",type:"basic",modifierMask:16}]},{id:1,keyActions:[null,null,null,null,null,null,null,null,null,null,null,null,null,null,{keyActionType:"switchLayer",layer:"mouse",switchLayerMode:"holdAndDoubleTapToggle"},null,{keyActionType:"mouse",mouseAction:"rightClick"},{keyActionType:"mouse",mouseAction:"middleClick"},{keyActionType:"mouse",mouseAction:"leftClick"},null,null,{keyActionType:"keystroke",type:"basic",modifierMask:2},null,null,null,null,null,null,{keyActionType:"keystroke",type:"basic",modifierMask:1},{keyActionType:"keystroke",type:"basic",modifierMask:8},{keyActionType:"keystroke",type:"basic",modifierMask:4},null,{keyActionType:"mouse",mouseAction:"decelerate"},{keyActionType:"mouse",mouseAction:"accelerate"},null]}]}]},{isDefault:!1,abbreviation:"TES",name:"Test",description:"This keymap is only used for factory testing purposes.",layers:[{modules:[{id:0,keyActions:[{keyActionType:"keystroke",type:"basic",scancode:36},{keyActionType:"keystroke",type:"basic",scancode:37},{keyActionType:"keystroke",type:"basic",scancode:38},{keyActionType:"keystroke",type:"basic",scancode:39},{keyActionType:"keystroke",type:"basic",scancode:45},{keyActionType:"keystroke",type:"basic",scancode:46},{keyActionType:"keystroke",type:"basic",scancode:42},{keyActionType:"keystroke",type:"basic",scancode:24},{keyActionType:"keystroke",type:"basic",scancode:12},{keyActionType:"keystroke",type:"basic",scancode:18},{keyActionType:"keystroke",type:"basic",scancode:19},{keyActionType:"keystroke",type:"basic",scancode:47},{keyActionType:"keystroke",type:"basic",scancode:48},{keyActionType:"keystroke",type:"basic",scancode:49},{keyActionType:"keystroke",type:"basic",scancode:28},{keyActionType:"keystroke",type:"basic",scancode:13},{keyActionType:"keystroke",type:"basic",scancode:14},{keyActionType:"keystroke",type:"basic",scancode:15},{keyActionType:"keystroke",type:"basic",scancode:51},{keyActionType:"keystroke",type:"basic",scancode:52},{keyActionType:"keystroke",type:"basic",scancode:87},{keyActionType:"keystroke",type:"basic",scancode:11},{keyActionType:"keystroke",type:"basic",scancode:17},{keyActionType:"keystroke",type:"basic",scancode:16},{keyActionType:"keystroke",type:"basic",scancode:54},{keyActionType:"keystroke",type:"basic",scancode:55},{keyActionType:"keystroke",type:"basic",scancode:56},{keyActionType:"keystroke",type:"basic",modifierMask:32},null,{keyActionType:"keystroke",type:"basic",scancode:94},{keyActionType:"keystroke",type:"basic",scancode:85},{keyActionType:"keystroke",type:"basic",scancode:95},{keyActionType:"keystroke",type:"basic",scancode:96},{keyActionType:"keystroke",type:"basic",scancode:97},{keyActionType:"keystroke",type:"basic",scancode:98}]},{id:1,keyActions:[{keyActionType:"keystroke",type:"basic",scancode:53},{keyActionType:"keystroke",type:"basic",scancode:30},{keyActionType:"keystroke",type:"basic",scancode:31},{keyActionType:"keystroke",type:"basic",scancode:32},{keyActionType:"keystroke",type:"basic",scancode:33},{keyActionType:"keystroke",type:"basic",scancode:34},{keyActionType:"keystroke",type:"basic",scancode:35},{keyActionType:"keystroke",type:"basic",scancode:41},{keyActionType:"keystroke",type:"basic",scancode:20},{keyActionType:"keystroke",type:"basic",scancode:26},{keyActionType:"keystroke",type:"basic",scancode:8},{keyActionType:"keystroke",type:"basic",scancode:21},null,{keyActionType:"keystroke",type:"basic",scancode:23},{keyActionType:"keystroke",type:"basic",scancode:86},{keyActionType:"keystroke",type:"basic",scancode:4},{keyActionType:"keystroke",type:"basic",scancode:22},{keyActionType:"keystroke",type:"basic",scancode:7},{keyActionType:"keystroke",type:"basic",scancode:9},null,{keyActionType:"keystroke",type:"basic",scancode:10},{keyActionType:"keystroke",type:"basic",modifierMask:2},{keyActionType:"keystroke",type:"basic",scancode:100},{keyActionType:"keystroke",type:"basic",scancode:29},{keyActionType:"keystroke",type:"basic",scancode:27},{keyActionType:"keystroke",type:"basic",scancode:6},{keyActionType:"keystroke",type:"basic",scancode:25},{keyActionType:"keystroke",type:"basic",scancode:5},{keyActionType:"keystroke",type:"basic",scancode:89},{keyActionType:"keystroke",type:"basic",scancode:90},{keyActionType:"keystroke",type:"basic",scancode:91},{keyActionType:"keystroke",type:"basic",scancode:92},{keyActionType:"keystroke",type:"basic",scancode:84},{keyActionType:"keystroke",type:"basic",scancode:93},null]},{id:2,keyActions:[]}]},{modules:[{id:0,keyActions:[{keyActionType:"keystroke",type:"basic",scancode:64},{keyActionType:"keystroke",type:"basic",scancode:65},{keyActionType:"keystroke",type:"basic",scancode:66},{keyActionType:"keystroke",type:"basic",scancode:67},{keyActionType:"keystroke",type:"basic",scancode:68},{keyActionType:"keystroke",type:"basic",scancode:69},{keyActionType:"keystroke",type:"basic",scancode:76},{keyActionType:"keystroke",type:"basic",scancode:74},{keyActionType:"keystroke",type:"basic",scancode:82},{keyActionType:"keystroke",type:"basic",scancode:77},{keyActionType:"keystroke",type:"basic",scancode:76},{keyActionType:"keystroke",type:"basic",scancode:70},{keyActionType:"keystroke",type:"basic",scancode:71},{keyActionType:"keystroke",type:"basic",scancode:72},{keyActionType:"keystroke",type:"basic",scancode:75},{keyActionType:"keystroke",type:"basic",scancode:80},{keyActionType:"keystroke",type:"basic",scancode:81},{keyActionType:"keystroke",type:"basic",scancode:79},{keyActionType:"keystroke",type:"basic",scancode:73},null,null,{keyActionType:"keystroke",type:"basic",scancode:78},{keyActionType:"keystroke",type:"basic",scancode:41},null,null,null,{keyActionType:"keystroke",type:"basic",scancode:101},{keyActionType:"keystroke",type:"basic",modifierMask:32},null,null,null,null,{keyActionType:"keystroke",type:"basic",modifierMask:64},{keyActionType:"keystroke",type:"basic",modifierMask:128},{keyActionType:"keystroke",type:"basic",modifierMask:16}]},{id:1,keyActions:[{keyActionType:"keystroke",type:"basic",scancode:41},{keyActionType:"keystroke",type:"basic",scancode:58},{keyActionType:"keystroke",type:"basic",scancode:59},{keyActionType:"keystroke",type:"basic",scancode:60},{keyActionType:"keystroke",type:"basic",scancode:61},{keyActionType:"keystroke",type:"basic",scancode:62},{keyActionType:"keystroke",type:"basic",scancode:63},null,{keyActionType:"keystroke",type:"basic",scancode:41},{keyActionType:"keystroke",type:"basic",scancode:75,modifierMask:1},{keyActionType:"keystroke",type:"basic",scancode:23,modifierMask:1},{keyActionType:"keystroke",type:"basic",scancode:78,modifierMask:1},null,null,null,{keyActionType:"keystroke",type:"basic",scancode:57,modifierMask:1},{keyActionType:"keystroke",type:"basic",scancode:80,modifierMask:5},{keyActionType:"keystroke",type:"basic",scancode:43,modifierMask:4},{keyActionType:"keystroke",type:"basic",scancode:79,modifierMask:5},null,null,{keyActionType:"keystroke",type:"basic",modifierMask:2},null,null,{keyActionType:"keystroke",type:"basic",scancode:75,modifierMask:3},{keyActionType:"keystroke",type:"basic",scancode:26,modifierMask:1},{keyActionType:"keystroke",type:"basic",scancode:78,modifierMask:3},null,{keyActionType:"keystroke",type:"basic",modifierMask:1},{keyActionType:"keystroke",type:"basic",modifierMask:8},{keyActionType:"keystroke",type:"basic",modifierMask:4},null,null,null,null]}]},{modules:[{id:0,keyActions:[null,null,null,null,null,null,null,{keyActionType:"keystroke",type:"media",scancode:205},{keyActionType:"keystroke",type:"media",scancode:233},null,null,null,null,{keyActionType:"keystroke",type:"system",scancode:130},null,{keyActionType:"keystroke",type:"media",scancode:182},{keyActionType:"keystroke",type:"media",scancode:234},{keyActionType:"keystroke",type:"media",scancode:181},null,null,null,null,null,null,{keyActionType:"keystroke",type:"media",scancode:226},null,null,{keyActionType:"keystroke",type:"basic",modifierMask:32},null,null,null,null,{keyActionType:"keystroke",type:"basic",modifierMask:64},{keyActionType:"keystroke",type:"basic",modifierMask:128},{keyActionType:"keystroke",type:"basic",modifierMask:16}]},{id:1,keyActions:[null,{keyActionType:"switchKeymap",keymapAbbreviation:"QWR"},{keyActionType:"switchKeymap",keymapAbbreviation:"DVO"},{keyActionType:"switchKeymap",keymapAbbreviation:"COL"},{keyActionType:"switchKeymap",keymapAbbreviation:"QWM"},{keyActionType:"switchKeymap",keymapAbbreviation:"DVM"},{keyActionType:"switchKeymap",keymapAbbreviation:"COM"},null,null,null,null,null,null,null,null,null,null,null,null,null,null,{keyActionType:"keystroke",type:"basic",modifierMask:2},null,null,null,null,null,null,{keyActionType:"keystroke",type:"basic",modifierMask:1},{keyActionType:"keystroke",type:"basic",modifierMask:8},{keyActionType:"keystroke",type:"basic",modifierMask:4},null,null,null,null]}]},{modules:[{id:0,keyActions:[null,null,null,null,null,null,null,{keyActionType:"mouse",mouseAction:"scrollLeft"},{keyActionType:"mouse",mouseAction:"moveUp"},{keyActionType:"mouse",mouseAction:"scrollRight"},null,null,null,null,{keyActionType:"mouse",mouseAction:"scrollUp"},{keyActionType:"mouse",mouseAction:"moveLeft"},{keyActionType:"mouse",mouseAction:"moveDown"},{keyActionType:"mouse",mouseAction:"moveRight"},null,null,null,{keyActionType:"mouse",mouseAction:"scrollDown"},null,null,null,null,null,{keyActionType:"keystroke",type:"basic",modifierMask:32},null,{keyActionType:"mouse",mouseAction:"leftClick"},{keyActionType:"mouse",mouseAction:"rightClick"},null,{keyActionType:"keystroke",type:"basic",modifierMask:64},{keyActionType:"keystroke",type:"basic",modifierMask:128},{keyActionType:"keystroke",type:"basic",modifierMask:16}]},{id:1,keyActions:[null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,{keyActionType:"mouse",mouseAction:"rightClick"},{keyActionType:"mouse",mouseAction:"middleClick"},{keyActionType:"mouse",mouseAction:"leftClick"},null,null,{keyActionType:"keystroke",type:"basic",modifierMask:2},null,null,null,null,null,null,{keyActionType:"keystroke",type:"basic",modifierMask:1},{keyActionType:"keystroke",type:"basic",modifierMask:8},{keyActionType:"keystroke",type:"basic",modifierMask:4},null,{keyActionType:"mouse",mouseAction:"decelerate"},{keyActionType:"mouse",mouseAction:"accelerate"},null]}]}]}],macros:[{isLooped:!0,isPrivate:!0,name:"Go to UHK site in browser",macroActions:[{macroActionType:"key",action:"tap",type:"basic",scancode:15,modifierMask:1},{macroActionType:"text",text:"https://ultimatehackingkeyboard.com"},{macroActionType:"key",action:"tap",type:"basic",scancode:40}]},{isLooped:!1,isPrivate:!0,name:"God mode in Doom",macroActions:[{macroActionType:"text",text:"iddqd"}]},{isLooped:!1,isPrivate:!0,name:"Type Silent Bob's address",macroActions:[{macroActionType:"text",text:"Silent Bob\n711-2880 Nulla St.\nMankato Mississippi 96522\n(257) 563-7401"}]}]}},GIjk:function(e,t,n){"use strict";var i=n("TToO").__extends,o=function(e){function t(t){e.call(this),this.errors=t;var n=Error.call(this,t?t.length+" errors occurred during unsubscription:\n "+t.map(function(e,t){return t+1+") "+e.toString()}).join("\n "):"");this.name=n.name="UnsubscriptionError",this.stack=n.stack,this.message=n.message}return i(t,e),t}(Error);t.UnsubscriptionError=o},H5FS:function(e,t,n){"use strict";(function(e,n){Object.defineProperty(t,"__esModule",{value:!0}),t.UhkBuffer=function(){function t(){this._enableDump=!1,this.offset=0,this.bytesToBacktrack=0,this.buffer=new e(t.eepromSize),this.buffer.fill(0)}return t.simpleElementWriter=function(e,t){t.toBinary(e)},t.fromArray=function(e){if(e.length<1)return null;for(var n=new t,i=0,o=e;i=t.longCompactLengthPrefix?(this.writeUInt8(t.longCompactLengthPrefix),this.writeUInt16(e)):this.writeUInt8(e)},t.prototype.readString=function(){var e=this.readCompactLength(),n=this.buffer.toString(t.stringEncoding,this.offset,this.offset+e);return this.dump(t.stringEncoding+"("+n+")"),this.bytesToBacktrack=e,this.offset+=e,n},t.prototype.writeString=function(n){var i=e.byteLength(n,t.stringEncoding);if(i>t.maxCompactLength)throw"Cannot serialize string: "+i+" bytes is larger\n than the maximum allowed length of "+t.maxCompactLength+" bytes";this.writeCompactLength(i),this.dump(t.stringEncoding+"("+n+")"),this.buffer.write(n,this.offset,i,t.stringEncoding),this.offset+=i},t.prototype.readBoolean=function(){return 0!==this.readUInt8()},t.prototype.writeBoolean=function(e){this.writeUInt8(e?1:0)},t.prototype.readArray=function(e){for(var t=[],n=this.readCompactLength(),i=0;i"},t.prototype.getName=function(){return"NoneAction"},t}(o.KeyAction)},I5Xr:function(e,t,n){"use strict";var i=n("xgwM").__extends,o=n("xgwM").__decorate,r=n("xgwM").__metadata;Object.defineProperty(t,"__esModule",{value:!0});var l,u=n("CmJd"),a=n("ZTdU"),s=n("4KnF"),c=n("CfJK");!function(e){e[e.scancode=1]="scancode",e[e.modifierMask=2]="modifierMask",e[e.secondaryRoleAction=4]="secondaryRoleAction"}(l=t.KeystrokeActionFlag||(t.KeystrokeActionFlag={}));var d=["LCtrl","LShift","LAlt","LSuper","RCtrl","RShift","RAlt","RSuper"];t.KeystrokeAction=function(e){function t(t){var n=e.call(this)||this;return t?(n.type=t.type,n._scancode=t._scancode,n.modifierMask=t.modifierMask,n.secondaryRoleAction=t.secondaryRoleAction,n):n}return i(t,e),Object.defineProperty(t.prototype,"scancode",{get:function(){return this._scancode},set:function(e){this._scancode=e,this.type!==c.KeystrokeType.shortMedia&&this.type!==c.KeystrokeType.longMedia||(this.type=e<256?c.KeystrokeType.shortMedia:c.KeystrokeType.longMedia)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"type",{get:function(){return this._type},set:function(e){e!==c.KeystrokeType.shortMedia&&e!==c.KeystrokeType.longMedia||(e=this.scancode<256?c.KeystrokeType.shortMedia:c.KeystrokeType.longMedia),this._type=e},enumerable:!0,configurable:!0}),t.prototype.fromJsonObject=function(e){return this.assertKeyActionType(e),this.type="media"===e.type?e.scancode<256?c.KeystrokeType.shortMedia:c.KeystrokeType.longMedia:c.KeystrokeType[e.type],this._scancode=e.scancode,this.modifierMask=e.modifierMask,this.secondaryRoleAction=a.SecondaryRoleAction[e.secondaryRoleAction],this},t.prototype.fromBinary=function(e){var t=this.readAndAssertKeyActionId(e)-s.KeyActionId.NoneAction;return this.type=t>>3&3,t&l.scancode&&(this._scancode=this.type===c.KeystrokeType.longMedia?e.readUInt16():e.readUInt8()),t&l.modifierMask&&(this.modifierMask=e.readUInt8()),t&l.secondaryRoleAction&&(this.secondaryRoleAction=e.readUInt8()),this},t.prototype.toJsonObject=function(){var e={keyActionType:s.keyActionType.KeystrokeAction};return e.type=this.type===c.KeystrokeType.shortMedia||this.type===c.KeystrokeType.longMedia?"media":c.KeystrokeType[this.type],this.hasScancode()&&(e.scancode=this._scancode),this.hasActiveModifier()&&(e.modifierMask=this.modifierMask),this.hasSecondaryRoleAction()&&(e.secondaryRoleAction=a.SecondaryRoleAction[this.secondaryRoleAction]),e},t.prototype.toBinary=function(e){var t=0,n=[];this.hasScancode()&&(t|=l.scancode,n.push({data:this._scancode,long:this.type===c.KeystrokeType.longMedia})),this.hasActiveModifier()&&(t|=l.modifierMask,n.push({data:this.modifierMask,long:!1})),this.hasSecondaryRoleAction()&&(t|=l.secondaryRoleAction,n.push({data:this.secondaryRoleAction,long:!1})),e.writeUInt8(s.KeyActionId.NoneAction+(t+(this.type<<3)));for(var i=0;i"},t.prototype.isActive=function(e){return(this.modifierMask&e)>0},t.prototype.hasActiveModifier=function(){return this.modifierMask>0},t.prototype.hasSecondaryRoleAction=function(){return void 0!==this.secondaryRoleAction&&null!==this.secondaryRoleAction},t.prototype.hasScancode=function(){return!!this._scancode},t.prototype.hasOnlyOneActiveModifier=function(){return 0!==this.modifierMask&&!(this.modifierMask&this.modifierMask-1)},t.prototype.getModifierList=function(){for(var e=[],t=this.modifierMask,n=0;0!==t;++n,t>>=1)1&t&&e.push(d[n]);return e},t.prototype.getName=function(){return"KeystrokeAction"},o([u.assertUInt8,r("design:type",Number)],t.prototype,"modifierMask",void 0),o([u.assertEnum(a.SecondaryRoleAction),r("design:type",Number)],t.prototype,"secondaryRoleAction",void 0),o([u.assertEnum(c.KeystrokeType),r("design:type",Number)],t.prototype,"_type",void 0),t}(s.KeyAction)},ICpg:function(e,t,n){"use strict";t.isObject=function(e){return null!=e&&"object"==typeof e}},IZVw:function(e,t,n){"use strict";var i=n("TToO").__extends,o=function(e){function t(){var t=e.call(this,"object unsubscribed");this.name=t.name="ObjectUnsubscribedError",this.stack=t.stack,this.message=t.message}return i(t,e),t}(Error);t.ObjectUnsubscribedError=o},Ilbw:function(e,t,n){"use strict";var i=n("vx8o");t.dragula=i.default||i},JJSU:function(e,t,n){"use strict";var i=n("rCTf"),o=n("7nvF");i.Observable.prototype.last=o.last},JZ4p:function(e,t,n){var i={"./DVR.json":"VMHN","./EMY.json":"TyHZ","./QTY.json":"e8yI","./VIM.json":"3vEz"};function o(e){return n(r(e))}function r(e){var t=i[e];if(!(t+1))throw new Error("Cannot find module '"+e+"'.");return t}o.keys=function(){return Object.keys(i)},o.resolve=r,e.exports=o,o.id="JZ4p"},Ji1B:function(e,t,n){"use strict";var i=n("ODby");t.observeOn=function(e,t){return void 0===t&&(t=0),i.observeOn(e,t)(this)}},Ji1V:function(e,t,n){"use strict";var i=n("C/iu");t.startWith=function(){for(var e=[],t=0;tthis.total&&this.destination.next(e)},t}(o.Subscriber)},KMB7:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n("RZVO");t.isEqualArray=function(e,t){if(e.length!==t.length)return!1;for(var n=function(e){if(!t.some(function(t){return i.isEqual(e,t)}))return{value:!1}},o=0,r=e;o0}var u,a=function(){var e=n("OjAK");return{version:e.version,firmwareVersion:e.firmwareVersion,deviceProtocolVersion:e.deviceProtocolVersion,moduleProtocolVersion:e.moduleProtocolVersion,userConfigVersion:e.userConfigVersion,hardwareConfigVersion:e.hardwareConfigVersion}},s=a,c=function(){return u||(u=a()),u};n.d(t,"a",function(){return i}),n.d(t,"b",function(){return r}),n.d(t,"d",function(){return l}),n.d(t,"c",function(){return c}),n.d(t,!1,function(){return s})},LxNc:function(e,t,n){"use strict";var i=n("TToO").__extends,o=n("wAkD"),r=n("CURp");t.catchError=function(e){return function(t){var n=new l(e),i=t.lift(n);return n.caught=i}};var l=function(){function e(e){this.selector=e}return e.prototype.call=function(e,t){return t.subscribe(new u(e,this.selector,this.caught))},e}(),u=function(e){function t(t,n,i){e.call(this,t),this.selector=n,this.caught=i}return i(t,e),t.prototype.error=function(t){if(!this.isStopped){var n=void 0;try{n=this.selector(t,this.caught)}catch(t){return void e.prototype.error.call(this,t)}this._unsubscribeAndRecycle(),this.add(r.subscribeToResult(this,n))}},t}(o.OuterSubscriber)},M4fF:function(e,t,n){(function(e,i){var o;(function(){var r,l=200,u="Expected a function",a="__lodash_placeholder__",s=1,c=2,d=4,p=1,f=2,h=1,y=2,m=4,g=8,v=16,b=32,k=64,_=128,w=256,A=512,T=800,C=16,x=1/0,O=9007199254740991,S=1.7976931348623157e308,M=NaN,E=4294967295,P=E-1,I=E>>>1,R=[["ary",_],["bind",h],["bindKey",y],["curry",g],["curryRight",v],["flip",A],["partial",b],["partialRight",k],["rearg",w]],D="[object Arguments]",N="[object Array]",j="[object AsyncFunction]",L="[object Boolean]",U="[object Date]",V="[object DOMException]",F="[object Error]",K="[object Function]",B="[object GeneratorFunction]",H="[object Map]",W="[object Number]",z="[object Null]",$="[object Object]",q="[object Proxy]",G="[object RegExp]",Y="[object Set]",Q="[object String]",J="[object Symbol]",Z="[object Undefined]",X="[object WeakMap]",ee="[object ArrayBuffer]",te="[object DataView]",ne="[object Float32Array]",ie="[object Float64Array]",oe="[object Int8Array]",re="[object Int16Array]",le="[object Int32Array]",ue="[object Uint8Array]",ae="[object Uint8ClampedArray]",se="[object Uint16Array]",ce="[object Uint32Array]",de=/\b__p \+= '';/g,pe=/\b(__p \+=) '' \+/g,fe=/(__e\(.*?\)|\b__t\)) \+\n'';/g,he=/&(?:amp|lt|gt|quot|#39);/g,ye=/[&<>"']/g,me=RegExp(he.source),ge=RegExp(ye.source),ve=/<%-([\s\S]+?)%>/g,be=/<%([\s\S]+?)%>/g,ke=/<%=([\s\S]+?)%>/g,_e=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,we=/^\w*$/,Ae=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,Te=/[\\^$.*+?()[\]{}|]/g,Ce=RegExp(Te.source),xe=/^\s+|\s+$/g,Oe=/^\s+/,Se=/\s+$/,Me=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,Ee=/\{\n\/\* \[wrapped with (.+)\] \*/,Pe=/,? & /,Ie=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,Re=/\\(\\)?/g,De=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,Ne=/\w*$/,je=/^[-+]0x[0-9a-f]+$/i,Le=/^0b[01]+$/i,Ue=/^\[object .+?Constructor\]$/,Ve=/^0o[0-7]+$/i,Fe=/^(?:0|[1-9]\d*)$/,Ke=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,Be=/($^)/,He=/['\n\r\u2028\u2029\\]/g,We="\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff",ze="\\xac\\xb1\\xd7\\xf7\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf\\u2000-\\u206f \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",$e="["+ze+"]",qe="["+We+"]",Ge="\\d+",Ye="[a-z\\xdf-\\xf6\\xf8-\\xff]",Qe="[^\\ud800-\\udfff"+ze+Ge+"\\u2700-\\u27bfa-z\\xdf-\\xf6\\xf8-\\xffA-Z\\xc0-\\xd6\\xd8-\\xde]",Je="\\ud83c[\\udffb-\\udfff]",Ze="[^\\ud800-\\udfff]",Xe="(?:\\ud83c[\\udde6-\\uddff]){2}",et="[\\ud800-\\udbff][\\udc00-\\udfff]",tt="[A-Z\\xc0-\\xd6\\xd8-\\xde]",nt="(?:"+Ye+"|"+Qe+")",it="(?:"+tt+"|"+Qe+")",ot="(?:"+qe+"|"+Je+")?",rt="[\\ufe0e\\ufe0f]?"+ot+"(?:\\u200d(?:"+[Ze,Xe,et].join("|")+")[\\ufe0e\\ufe0f]?"+ot+")*",lt="(?:"+["[\\u2700-\\u27bf]",Xe,et].join("|")+")"+rt,ut="(?:"+[Ze+qe+"?",qe,Xe,et,"[\\ud800-\\udfff]"].join("|")+")",at=RegExp("['\u2019]","g"),st=RegExp(qe,"g"),ct=RegExp(Je+"(?="+Je+")|"+ut+rt,"g"),dt=RegExp([tt+"?"+Ye+"+(?:['\u2019](?:d|ll|m|re|s|t|ve))?(?="+[$e,tt,"$"].join("|")+")",it+"+(?:['\u2019](?:D|LL|M|RE|S|T|VE))?(?="+[$e,tt+nt,"$"].join("|")+")",tt+"?"+nt+"+(?:['\u2019](?:d|ll|m|re|s|t|ve))?",tt+"+(?:['\u2019](?:D|LL|M|RE|S|T|VE))?","\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])","\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",Ge,lt].join("|"),"g"),pt=RegExp("[\\u200d\\ud800-\\udfff"+We+"\\ufe0e\\ufe0f]"),ft=/[a-z][A-Z]|[A-Z]{2,}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,ht=["Array","Buffer","DataView","Date","Error","Float32Array","Float64Array","Function","Int8Array","Int16Array","Int32Array","Map","Math","Object","Promise","RegExp","Set","String","Symbol","TypeError","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","WeakMap","_","clearTimeout","isFinite","parseInt","setTimeout"],yt=-1,mt={};mt[ne]=mt[ie]=mt[oe]=mt[re]=mt[le]=mt[ue]=mt[ae]=mt[se]=mt[ce]=!0,mt[D]=mt[N]=mt[ee]=mt[L]=mt[te]=mt[U]=mt[F]=mt[K]=mt[H]=mt[W]=mt[$]=mt[G]=mt[Y]=mt[Q]=mt[X]=!1;var gt={};gt[D]=gt[N]=gt[ee]=gt[te]=gt[L]=gt[U]=gt[ne]=gt[ie]=gt[oe]=gt[re]=gt[le]=gt[H]=gt[W]=gt[$]=gt[G]=gt[Y]=gt[Q]=gt[J]=gt[ue]=gt[ae]=gt[se]=gt[ce]=!0,gt[F]=gt[K]=gt[X]=!1;var vt={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},bt=parseFloat,kt=parseInt,_t="object"==typeof e&&e&&e.Object===Object&&e,wt="object"==typeof self&&self&&self.Object===Object&&self,At=_t||wt||Function("return this")(),Tt="object"==typeof t&&t&&!t.nodeType&&t,Ct=Tt&&"object"==typeof i&&i&&!i.nodeType&&i,xt=Ct&&Ct.exports===Tt,Ot=xt&&_t.process,St=function(){try{return Ot&&Ot.binding&&Ot.binding("util")}catch(e){}}(),Mt=St&&St.isArrayBuffer,Et=St&&St.isDate,Pt=St&&St.isMap,It=St&&St.isRegExp,Rt=St&&St.isSet,Dt=St&&St.isTypedArray;function Nt(e,t,n){switch(n.length){case 0:return e.call(t);case 1:return e.call(t,n[0]);case 2:return e.call(t,n[0],n[1]);case 3:return e.call(t,n[0],n[1],n[2])}return e.apply(t,n)}function jt(e,t,n,i){for(var o=-1,r=null==e?0:e.length;++o-1}function Kt(e,t,n){for(var i=-1,o=null==e?0:e.length;++i-1;);return n}function cn(e,t){for(var n=e.length;n--&&Qt(t,e[n],0)>-1;);return n}var dn=tn({"\xc0":"A","\xc1":"A","\xc2":"A","\xc3":"A","\xc4":"A","\xc5":"A","\xe0":"a","\xe1":"a","\xe2":"a","\xe3":"a","\xe4":"a","\xe5":"a","\xc7":"C","\xe7":"c","\xd0":"D","\xf0":"d","\xc8":"E","\xc9":"E","\xca":"E","\xcb":"E","\xe8":"e","\xe9":"e","\xea":"e","\xeb":"e","\xcc":"I","\xcd":"I","\xce":"I","\xcf":"I","\xec":"i","\xed":"i","\xee":"i","\xef":"i","\xd1":"N","\xf1":"n","\xd2":"O","\xd3":"O","\xd4":"O","\xd5":"O","\xd6":"O","\xd8":"O","\xf2":"o","\xf3":"o","\xf4":"o","\xf5":"o","\xf6":"o","\xf8":"o","\xd9":"U","\xda":"U","\xdb":"U","\xdc":"U","\xf9":"u","\xfa":"u","\xfb":"u","\xfc":"u","\xdd":"Y","\xfd":"y","\xff":"y","\xc6":"Ae","\xe6":"ae","\xde":"Th","\xfe":"th","\xdf":"ss","\u0100":"A","\u0102":"A","\u0104":"A","\u0101":"a","\u0103":"a","\u0105":"a","\u0106":"C","\u0108":"C","\u010a":"C","\u010c":"C","\u0107":"c","\u0109":"c","\u010b":"c","\u010d":"c","\u010e":"D","\u0110":"D","\u010f":"d","\u0111":"d","\u0112":"E","\u0114":"E","\u0116":"E","\u0118":"E","\u011a":"E","\u0113":"e","\u0115":"e","\u0117":"e","\u0119":"e","\u011b":"e","\u011c":"G","\u011e":"G","\u0120":"G","\u0122":"G","\u011d":"g","\u011f":"g","\u0121":"g","\u0123":"g","\u0124":"H","\u0126":"H","\u0125":"h","\u0127":"h","\u0128":"I","\u012a":"I","\u012c":"I","\u012e":"I","\u0130":"I","\u0129":"i","\u012b":"i","\u012d":"i","\u012f":"i","\u0131":"i","\u0134":"J","\u0135":"j","\u0136":"K","\u0137":"k","\u0138":"k","\u0139":"L","\u013b":"L","\u013d":"L","\u013f":"L","\u0141":"L","\u013a":"l","\u013c":"l","\u013e":"l","\u0140":"l","\u0142":"l","\u0143":"N","\u0145":"N","\u0147":"N","\u014a":"N","\u0144":"n","\u0146":"n","\u0148":"n","\u014b":"n","\u014c":"O","\u014e":"O","\u0150":"O","\u014d":"o","\u014f":"o","\u0151":"o","\u0154":"R","\u0156":"R","\u0158":"R","\u0155":"r","\u0157":"r","\u0159":"r","\u015a":"S","\u015c":"S","\u015e":"S","\u0160":"S","\u015b":"s","\u015d":"s","\u015f":"s","\u0161":"s","\u0162":"T","\u0164":"T","\u0166":"T","\u0163":"t","\u0165":"t","\u0167":"t","\u0168":"U","\u016a":"U","\u016c":"U","\u016e":"U","\u0170":"U","\u0172":"U","\u0169":"u","\u016b":"u","\u016d":"u","\u016f":"u","\u0171":"u","\u0173":"u","\u0174":"W","\u0175":"w","\u0176":"Y","\u0177":"y","\u0178":"Y","\u0179":"Z","\u017b":"Z","\u017d":"Z","\u017a":"z","\u017c":"z","\u017e":"z","\u0132":"IJ","\u0133":"ij","\u0152":"Oe","\u0153":"oe","\u0149":"'n","\u017f":"s"}),pn=tn({"&":"&","<":"<",">":">",'"':""","'":"'"});function fn(e){return"\\"+vt[e]}function hn(e){return pt.test(e)}function yn(e){var t=-1,n=Array(e.size);return e.forEach(function(e,i){n[++t]=[i,e]}),n}function mn(e,t){return function(n){return e(t(n))}}function gn(e,t){for(var n=-1,i=e.length,o=0,r=[];++n",""":'"',"'":"'"}),Tn=function e(t){var n,i=(t=null==t?At:Tn.defaults(At.Object(),t,Tn.pick(At,ht))).Array,o=t.Date,We=t.Error,ze=t.Function,$e=t.Math,qe=t.Object,Ge=t.RegExp,Ye=t.String,Qe=t.TypeError,Je=i.prototype,Ze=qe.prototype,Xe=t["__core-js_shared__"],et=ze.prototype.toString,tt=Ze.hasOwnProperty,nt=0,it=(n=/[^.]+$/.exec(Xe&&Xe.keys&&Xe.keys.IE_PROTO||""))?"Symbol(src)_1."+n:"",ot=Ze.toString,rt=et.call(qe),lt=At._,ut=Ge("^"+et.call(tt).replace(Te,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),ct=xt?t.Buffer:r,pt=t.Symbol,vt=t.Uint8Array,_t=ct?ct.allocUnsafe:r,wt=mn(qe.getPrototypeOf,qe),Tt=qe.create,Ct=Ze.propertyIsEnumerable,Ot=Je.splice,St=pt?pt.isConcatSpreadable:r,qt=pt?pt.iterator:r,tn=pt?pt.toStringTag:r,Cn=function(){try{var e=Tr(qe,"defineProperty");return e({},"",{}),e}catch(e){}}(),xn=t.clearTimeout!==At.clearTimeout&&t.clearTimeout,On=o&&o.now!==At.Date.now&&o.now,Sn=t.setTimeout!==At.setTimeout&&t.setTimeout,Mn=$e.ceil,En=$e.floor,Pn=qe.getOwnPropertySymbols,In=ct?ct.isBuffer:r,Rn=t.isFinite,Dn=Je.join,Nn=mn(qe.keys,qe),jn=$e.max,Ln=$e.min,Un=o.now,Vn=t.parseInt,Fn=$e.random,Kn=Je.reverse,Bn=Tr(t,"DataView"),Hn=Tr(t,"Map"),Wn=Tr(t,"Promise"),zn=Tr(t,"Set"),$n=Tr(t,"WeakMap"),qn=Tr(qe,"create"),Gn=$n&&new $n,Yn={},Qn=Yr(Bn),Jn=Yr(Hn),Zn=Yr(Wn),Xn=Yr(zn),ei=Yr($n),ti=pt?pt.prototype:r,ni=ti?ti.valueOf:r,ii=ti?ti.toString:r;function oi(e){if(pu(e)&&!tu(e)&&!(e instanceof ai)){if(e instanceof ui)return e;if(tt.call(e,"__wrapped__"))return Qr(e)}return new ui(e)}var ri=function(){function e(){}return function(t){if(!du(t))return{};if(Tt)return Tt(t);e.prototype=t;var n=new e;return e.prototype=r,n}}();function li(){}function ui(e,t){this.__wrapped__=e,this.__actions__=[],this.__chain__=!!t,this.__index__=0,this.__values__=r}function ai(e){this.__wrapped__=e,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=E,this.__views__=[]}function si(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t=t?e:t)),e}function Ti(e,t,n,i,o,l){var u,a=t&s,p=t&c,f=t&d;if(n&&(u=o?n(e,i,o,l):n(e)),u!==r)return u;if(!du(e))return e;var h=tu(e);if(h){if(u=function(e){var t=e.length,n=new e.constructor(t);return t&&"string"==typeof e[0]&&tt.call(e,"index")&&(n.index=e.index,n.input=e.input),n}(e),!a)return Bo(e,u)}else{var y=Or(e),m=y==K||y==B;if(ru(e))return jo(e,a);if(y==$||y==D||m&&!o){if(u=p||m?{}:Mr(e),!a)return p?function(e,t){return Ho(e,xr(e),t)}(e,function(t,n){return t&&Ho(e,Hu(e),t)}(u)):function(e,t){return Ho(e,Cr(e),t)}(e,ki(u,e))}else{if(!gt[y])return o?e:{};u=function(e,t,n){var i,o,r=e.constructor;switch(t){case ee:return Lo(e);case L:case U:return new r(+e);case te:return function(e,t){var n=t?Lo(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.byteLength)}(e,n);case ne:case ie:case oe:case re:case le:case ue:case ae:case se:case ce:return Uo(e,n);case H:return new r;case W:case Q:return new r(e);case G:return(o=new(i=e).constructor(i.source,Ne.exec(i))).lastIndex=i.lastIndex,o;case Y:return new r;case J:return ni?qe(ni.call(e)):{}}}(e,y,a)}}l||(l=new fi);var g=l.get(e);if(g)return g;if(l.set(e,u),gu(e))return e.forEach(function(i){u.add(Ti(i,t,n,i,e,l))}),u;if(fu(e))return e.forEach(function(i,o){u.set(o,Ti(i,t,n,o,e,l))}),u;var v=h?r:(f?p?gr:mr:p?Hu:Bu)(e);return Lt(v||e,function(i,o){v&&(i=e[o=i]),gi(u,o,Ti(i,t,n,o,e,l))}),u}function Ci(e,t,n){var i=n.length;if(null==e)return!i;for(e=qe(e);i--;){var o=n[i],l=e[o];if(l===r&&!(o in e)||!(0,t[o])(l))return!1}return!0}function xi(e,t,n){if("function"!=typeof e)throw new Qe(u);return Br(function(){e.apply(r,n)},t)}function Oi(e,t,n,i){var o=-1,r=Ft,u=!0,a=e.length,s=[],c=t.length;if(!a)return s;n&&(t=Bt(t,ln(n))),i?(r=Kt,u=!1):t.length>=l&&(r=an,u=!1,t=new pi(t));e:for(;++o-1},ci.prototype.set=function(e,t){var n=this.__data__,i=vi(n,e);return i<0?(++this.size,n.push([e,t])):n[i][1]=t,this},di.prototype.clear=function(){this.size=0,this.__data__={hash:new si,map:new(Hn||ci),string:new si}},di.prototype.delete=function(e){var t=wr(this,e).delete(e);return this.size-=t?1:0,t},di.prototype.get=function(e){return wr(this,e).get(e)},di.prototype.has=function(e){return wr(this,e).has(e)},di.prototype.set=function(e,t){var n=wr(this,e),i=n.size;return n.set(e,t),this.size+=n.size==i?0:1,this},pi.prototype.add=pi.prototype.push=function(e){return this.__data__.set(e,"__lodash_hash_undefined__"),this},pi.prototype.has=function(e){return this.__data__.has(e)},fi.prototype.clear=function(){this.__data__=new ci,this.size=0},fi.prototype.delete=function(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n},fi.prototype.get=function(e){return this.__data__.get(e)},fi.prototype.has=function(e){return this.__data__.has(e)},fi.prototype.set=function(e,t){var n=this.__data__;if(n instanceof ci){var i=n.__data__;if(!Hn||i.length0&&n(u)?t>1?Ri(u,t-1,n,i,o):Ht(o,u):i||(o[o.length]=u)}return o}var Di=qo(),Ni=qo(!0);function ji(e,t){return e&&Di(e,t,Bu)}function Li(e,t){return e&&Ni(e,t,Bu)}function Ui(e,t){return Vt(t,function(t){return au(e[t])})}function Vi(e,t){for(var n=0,i=(t=Io(t,e)).length;null!=e&&nt}function Hi(e,t){return null!=e&&tt.call(e,t)}function Wi(e,t){return null!=e&&t in qe(e)}function zi(e,t,n){for(var o=n?Kt:Ft,l=e[0].length,u=e.length,a=u,s=i(u),c=1/0,d=[];a--;){var p=e[a];a&&t&&(p=Bt(p,ln(t))),c=Ln(p.length,c),s[a]=!n&&(t||l>=120&&p.length>=120)?new pi(a&&p):r}p=e[0];var f=-1,h=s[0];e:for(;++f=u?a:a*("desc"==n[i]?-1:1)}return e.index-t.index}(e,t,n)});i--;)e[i]=e[i].value;return e}(eo(e,function(e,n,o){return{criteria:Bt(t,function(t){return t(e)}),index:++i,value:e}}))}function lo(e,t,n){for(var i=-1,o=t.length,r={};++i-1;)u!==e&&Ot.call(u,a,1),Ot.call(e,a,1);return e}function ao(e,t){for(var n=e?t.length:0,i=n-1;n--;){var o=t[n];if(n==i||o!==r){var r=o;Pr(o)?Ot.call(e,o,1):To(e,o)}}return e}function so(e,t){return e+En(Fn()*(t-e+1))}function co(e,t){var n="";if(!e||t<1||t>O)return n;do{t%2&&(n+=e),(t=En(t/2))&&(e+=e)}while(t);return n}function po(e,t){return Hr(Vr(e,t,ha),e+"")}function fo(e,t,n,i){if(!du(e))return e;for(var o=-1,l=(t=Io(t,e)).length,u=l-1,a=e;null!=a&&++or?0:r+t),(n=n>r?r:n)<0&&(n+=r),r=t>n?0:n-t>>>0,t>>>=0;for(var l=i(r);++o>>1,l=e[r];null!==l&&!bu(l)&&(n?l<=t:l=l){var c=t?null:ar(e);if(c)return bn(c);u=!1,o=an,s=new pi}else s=t?[]:a;e:for(;++i=i?e:mo(e,t,n)}var No=xn||function(e){return At.clearTimeout(e)};function jo(e,t){if(t)return e.slice();var n=e.length,i=_t?_t(n):new e.constructor(n);return e.copy(i),i}function Lo(e){var t=new e.constructor(e.byteLength);return new vt(t).set(new vt(e)),t}function Uo(e,t){var n=t?Lo(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.length)}function Vo(e,t){if(e!==t){var n=e!==r,i=null===e,o=e==e,l=bu(e),u=t!==r,a=null===t,s=t==t,c=bu(t);if(!a&&!c&&!l&&e>t||l&&u&&s&&!a&&!c||i&&u&&s||!n&&s||!o)return 1;if(!i&&!l&&!c&&e1?n[o-1]:r,u=o>2?n[2]:r;for(l=e.length>3&&"function"==typeof l?(o--,l):r,u&&Ir(n[0],n[1],u)&&(l=o<3?r:l,o=1),t=qe(t);++i-1?o[l?t[u]:u]:r}}function Zo(e){return yr(function(t){var n=t.length,i=n,o=ui.prototype.thru;for(e&&t.reverse();i--;){var l=t[i];if("function"!=typeof l)throw new Qe(u);if(o&&!a&&"wrapper"==br(l))var a=new ui([],!0)}for(i=a?i:n;++i1&&g.reverse(),p&&ca))return!1;var c=l.get(e);if(c&&l.get(t))return c==t;var d=-1,h=!0,y=n&f?new pi:r;for(l.set(e,t),l.set(t,e);++d-1&&e%1==0&&e1?"& ":"")+t[i],t=t.join(n>2?", ":" "),e.replace(Me,"{\n/* [wrapped with "+t+"] */\n")}(i,function(e,t){return Lt(R,function(n){var i="_."+n[0];t&n[1]&&!Ft(e,i)&&e.push(i)}),e.sort()}(function(e){var t=e.match(Ee);return t?t[1].split(Pe):[]}(i),n)))}function zr(e){var t=0,n=0;return function(){var i=Un(),o=C-(i-n);if(n=i,o>0){if(++t>=T)return arguments[0]}else t=0;return e.apply(r,arguments)}}function $r(e,t){var n=-1,i=e.length,o=i-1;for(t=t===r?i:t;++n1?e[t-1]:r;return ml(e,n="function"==typeof n?(e.pop(),n):r)});function Al(e){var t=oi(e);return t.__chain__=!0,t}function Tl(e,t){return t(e)}var Cl=yr(function(e){var t=e.length,n=t?e[0]:0,i=this.__wrapped__,o=function(t){return wi(t,e)};return!(t>1||this.__actions__.length)&&i instanceof ai&&Pr(n)?((i=i.slice(n,+n+(t?1:0))).__actions__.push({func:Tl,args:[o],thisArg:r}),new ui(i,this.__chain__).thru(function(e){return t&&!e.length&&e.push(r),e})):this.thru(o)}),xl=Wo(function(e,t,n){tt.call(e,n)?++e[n]:_i(e,n,1)}),Ol=Jo(el),Sl=Jo(tl);function Ml(e,t){return(tu(e)?Lt:Si)(e,_r(t,3))}function El(e,t){return(tu(e)?function(e,t){for(var n=null==e?0:e.length;n--&&!1!==t(e[n],n,e););return e}:Mi)(e,_r(t,3))}var Pl=Wo(function(e,t,n){tt.call(e,n)?e[n].push(t):_i(e,n,[t])}),Il=po(function(e,t,n){var o=-1,r="function"==typeof t,l=iu(e)?i(e.length):[];return Si(e,function(e){l[++o]=r?Nt(t,e,n):$i(e,t,n)}),l}),Rl=Wo(function(e,t,n){_i(e,n,t)});function Dl(e,t){return(tu(e)?Bt:eo)(e,_r(t,3))}var Nl=Wo(function(e,t,n){e[n?0:1].push(t)},function(){return[[],[]]}),jl=po(function(e,t){if(null==e)return[];var n=t.length;return n>1&&Ir(e,t[0],t[1])?t=[]:n>2&&Ir(t[0],t[1],t[2])&&(t=[t[0]]),ro(e,Ri(t,1),[])}),Ll=On||function(){return At.Date.now()};function Ul(e,t,n){return t=n?r:t,cr(e,_,r,r,r,r,t=e&&null==t?e.length:t)}function Vl(e,t){var n;if("function"!=typeof t)throw new Qe(u);return e=Cu(e),function(){return--e>0&&(n=t.apply(this,arguments)),e<=1&&(t=r),n}}var Fl=po(function(e,t,n){var i=h;if(n.length){var o=gn(n,kr(Fl));i|=b}return cr(e,i,t,n,o)}),Kl=po(function(e,t,n){var i=h|y;if(n.length){var o=gn(n,kr(Kl));i|=b}return cr(t,i,e,n,o)});function Bl(e,t,n){var i,o,l,a,s,c,d=0,p=!1,f=!1,h=!0;if("function"!=typeof e)throw new Qe(u);function y(t){var n=i,l=o;return i=o=r,d=t,a=e.apply(l,n)}function m(e){var n=e-c;return c===r||n>=t||n<0||f&&e-d>=l}function g(){var e=Ll();if(m(e))return v(e);s=Br(g,function(e){var n=t-(e-c);return f?Ln(n,l-(e-d)):n}(e))}function v(e){return s=r,h&&i?y(e):(i=o=r,a)}function b(){var e=Ll(),n=m(e);if(i=arguments,o=this,c=e,n){if(s===r)return function(e){return d=e,s=Br(g,t),p?y(e):a}(c);if(f)return s=Br(g,t),y(c)}return s===r&&(s=Br(g,t)),a}return t=Ou(t)||0,du(n)&&(p=!!n.leading,l=(f="maxWait"in n)?jn(Ou(n.maxWait)||0,t):l,h="trailing"in n?!!n.trailing:h),b.cancel=function(){s!==r&&No(s),d=0,i=c=o=s=r},b.flush=function(){return s===r?a:v(Ll())},b}var Hl=po(function(e,t){return xi(e,1,t)}),Wl=po(function(e,t,n){return xi(e,Ou(t)||0,n)});function zl(e,t){if("function"!=typeof e||null!=t&&"function"!=typeof t)throw new Qe(u);var n=function(){var i=arguments,o=t?t.apply(this,i):i[0],r=n.cache;if(r.has(o))return r.get(o);var l=e.apply(this,i);return n.cache=r.set(o,l)||r,l};return n.cache=new(zl.Cache||di),n}function $l(e){if("function"!=typeof e)throw new Qe(u);return function(){var t=arguments;switch(t.length){case 0:return!e.call(this);case 1:return!e.call(this,t[0]);case 2:return!e.call(this,t[0],t[1]);case 3:return!e.call(this,t[0],t[1],t[2])}return!e.apply(this,t)}}zl.Cache=di;var ql=Ro(function(e,t){var n=(t=1==t.length&&tu(t[0])?Bt(t[0],ln(_r())):Bt(Ri(t,1),ln(_r()))).length;return po(function(i){for(var o=-1,r=Ln(i.length,n);++o=t}),eu=qi(function(){return arguments}())?qi:function(e){return pu(e)&&tt.call(e,"callee")&&!Ct.call(e,"callee")},tu=i.isArray,nu=Mt?ln(Mt):function(e){return pu(e)&&Ki(e)==ee};function iu(e){return null!=e&&cu(e.length)&&!au(e)}function ou(e){return pu(e)&&iu(e)}var ru=In||Oa,lu=Et?ln(Et):function(e){return pu(e)&&Ki(e)==U};function uu(e){if(!pu(e))return!1;var t=Ki(e);return t==F||t==V||"string"==typeof e.message&&"string"==typeof e.name&&!yu(e)}function au(e){if(!du(e))return!1;var t=Ki(e);return t==K||t==B||t==j||t==q}function su(e){return"number"==typeof e&&e==Cu(e)}function cu(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=O}function du(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}function pu(e){return null!=e&&"object"==typeof e}var fu=Pt?ln(Pt):function(e){return pu(e)&&Or(e)==H};function hu(e){return"number"==typeof e||pu(e)&&Ki(e)==W}function yu(e){if(!pu(e)||Ki(e)!=$)return!1;var t=wt(e);if(null===t)return!0;var n=tt.call(t,"constructor")&&t.constructor;return"function"==typeof n&&n instanceof n&&et.call(n)==rt}var mu=It?ln(It):function(e){return pu(e)&&Ki(e)==G},gu=Rt?ln(Rt):function(e){return pu(e)&&Or(e)==Y};function vu(e){return"string"==typeof e||!tu(e)&&pu(e)&&Ki(e)==Q}function bu(e){return"symbol"==typeof e||pu(e)&&Ki(e)==J}var ku=Dt?ln(Dt):function(e){return pu(e)&&cu(e.length)&&!!mt[Ki(e)]},_u=rr(Xi),wu=rr(function(e,t){return e<=t});function Au(e){if(!e)return[];if(iu(e))return vu(e)?wn(e):Bo(e);if(qt&&e[qt])return function(e){for(var t,n=[];!(t=e.next()).done;)n.push(t.value);return n}(e[qt]());var t=Or(e);return(t==H?yn:t==Y?bn:Ju)(e)}function Tu(e){return e?(e=Ou(e))===x||e===-x?(e<0?-1:1)*S:e==e?e:0:0===e?e:0}function Cu(e){var t=Tu(e),n=t%1;return t==t?n?t-n:t:0}function xu(e){return e?Ai(Cu(e),0,E):0}function Ou(e){if("number"==typeof e)return e;if(bu(e))return M;if(du(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=du(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=e.replace(xe,"");var n=Le.test(e);return n||Ve.test(e)?kt(e.slice(2),n?2:8):je.test(e)?M:+e}function Su(e){return Ho(e,Hu(e))}function Mu(e){return null==e?"":wo(e)}var Eu=zo(function(e,t){if(jr(t)||iu(t))Ho(t,Bu(t),e);else for(var n in t)tt.call(t,n)&&gi(e,n,t[n])}),Pu=zo(function(e,t){Ho(t,Hu(t),e)}),Iu=zo(function(e,t,n,i){Ho(t,Hu(t),e,i)}),Ru=zo(function(e,t,n,i){Ho(t,Bu(t),e,i)}),Du=yr(wi),Nu=po(function(e,t){e=qe(e);var n=-1,i=t.length,o=i>2?t[2]:r;for(o&&Ir(t[0],t[1],o)&&(i=1);++n1),t}),Ho(e,gr(e),n),i&&(n=Ti(n,s|c|d,fr));for(var o=t.length;o--;)To(n,t[o]);return n}),qu=yr(function(e,t){return null==e?{}:function(e,t){return lo(e,t,function(t,n){return Uu(e,n)})}(e,t)});function Gu(e,t){if(null==e)return{};var n=Bt(gr(e),function(e){return[e]});return t=_r(t),lo(e,n,function(e,n){return t(e,n[0])})}var Yu=sr(Bu),Qu=sr(Hu);function Ju(e){return null==e?[]:un(e,Bu(e))}var Zu=Yo(function(e,t,n){return t=t.toLowerCase(),e+(n?Xu(t):t)});function Xu(e){return ua(Mu(e).toLowerCase())}function ea(e){return(e=Mu(e))&&e.replace(Ke,dn).replace(st,"")}var ta=Yo(function(e,t,n){return e+(n?"-":"")+t.toLowerCase()}),na=Yo(function(e,t,n){return e+(n?" ":"")+t.toLowerCase()}),ia=Go("toLowerCase"),oa=Yo(function(e,t,n){return e+(n?"_":"")+t.toLowerCase()}),ra=Yo(function(e,t,n){return e+(n?" ":"")+ua(t)}),la=Yo(function(e,t,n){return e+(n?" ":"")+t.toUpperCase()}),ua=Go("toUpperCase");function aa(e,t,n){return e=Mu(e),(t=n?r:t)===r?function(e){return ft.test(e)}(e)?function(e){return e.match(dt)||[]}(e):function(e){return e.match(Ie)||[]}(e):e.match(t)||[]}var sa=po(function(e,t){try{return Nt(e,r,t)}catch(e){return uu(e)?e:new We(e)}}),ca=yr(function(e,t){return Lt(t,function(t){t=Gr(t),_i(e,t,Fl(e[t],e))}),e});function da(e){return function(){return e}}var pa=Zo(),fa=Zo(!0);function ha(e){return e}function ya(e){return Ji("function"==typeof e?e:Ti(e,s))}var ma=po(function(e,t){return function(n){return $i(n,e,t)}}),ga=po(function(e,t){return function(n){return $i(e,n,t)}});function va(e,t,n){var i=Bu(t),o=Ui(t,i);null!=n||du(t)&&(o.length||!i.length)||(n=t,t=e,e=this,o=Ui(t,Bu(t)));var r=!(du(n)&&"chain"in n&&!n.chain),l=au(e);return Lt(o,function(n){var i=t[n];e[n]=i,l&&(e.prototype[n]=function(){var t=this.__chain__;if(r||t){var n=e(this.__wrapped__);return(n.__actions__=Bo(this.__actions__)).push({func:i,args:arguments,thisArg:e}),n.__chain__=t,n}return i.apply(e,Ht([this.value()],arguments))})}),e}function ba(){}var ka=nr(Bt),_a=nr(Ut),wa=nr($t);function Aa(e){return Rr(e)?en(Gr(e)):function(e){return function(t){return Vi(t,e)}}(e)}var Ta=or(),Ca=or(!0);function xa(){return[]}function Oa(){return!1}var Sa,Ma=tr(function(e,t){return e+t},0),Ea=ur("ceil"),Pa=tr(function(e,t){return e/t},1),Ia=ur("floor"),Ra=tr(function(e,t){return e*t},1),Da=ur("round"),Na=tr(function(e,t){return e-t},0);return oi.after=function(e,t){if("function"!=typeof t)throw new Qe(u);return e=Cu(e),function(){if(--e<1)return t.apply(this,arguments)}},oi.ary=Ul,oi.assign=Eu,oi.assignIn=Pu,oi.assignInWith=Iu,oi.assignWith=Ru,oi.at=Du,oi.before=Vl,oi.bind=Fl,oi.bindAll=ca,oi.bindKey=Kl,oi.castArray=function(){if(!arguments.length)return[];var e=arguments[0];return tu(e)?e:[e]},oi.chain=Al,oi.chunk=function(e,t,n){t=(n?Ir(e,t,n):t===r)?1:jn(Cu(t),0);var o=null==e?0:e.length;if(!o||t<1)return[];for(var l=0,u=0,a=i(Mn(o/t));lo?0:o+n),(i=i===r||i>o?o:Cu(i))<0&&(i+=o),i=n>i?0:xu(i);n>>0)?(e=Mu(e))&&("string"==typeof t||null!=t&&!mu(t))&&!(t=wo(t))&&hn(e)?Do(wn(e),0,n):e.split(t,n):[]},oi.spread=function(e,t){if("function"!=typeof e)throw new Qe(u);return t=null==t?0:jn(Cu(t),0),po(function(n){var i=n[t],o=Do(n,0,t);return i&&Ht(o,i),Nt(e,this,o)})},oi.tail=function(e){var t=null==e?0:e.length;return t?mo(e,1,t):[]},oi.take=function(e,t,n){return e&&e.length?mo(e,0,(t=n||t===r?1:Cu(t))<0?0:t):[]},oi.takeRight=function(e,t,n){var i=null==e?0:e.length;return i?mo(e,(t=i-(t=n||t===r?1:Cu(t)))<0?0:t,i):[]},oi.takeRightWhile=function(e,t){return e&&e.length?xo(e,_r(t,3),!1,!0):[]},oi.takeWhile=function(e,t){return e&&e.length?xo(e,_r(t,3)):[]},oi.tap=function(e,t){return t(e),e},oi.throttle=function(e,t,n){var i=!0,o=!0;if("function"!=typeof e)throw new Qe(u);return du(n)&&(i="leading"in n?!!n.leading:i,o="trailing"in n?!!n.trailing:o),Bl(e,t,{leading:i,maxWait:t,trailing:o})},oi.thru=Tl,oi.toArray=Au,oi.toPairs=Yu,oi.toPairsIn=Qu,oi.toPath=function(e){return tu(e)?Bt(e,Gr):bu(e)?[e]:Bo(qr(Mu(e)))},oi.toPlainObject=Su,oi.transform=function(e,t,n){var i=tu(e),o=i||ru(e)||ku(e);if(t=_r(t,4),null==n){var r=e&&e.constructor;n=o?i?new r:[]:du(e)&&au(r)?ri(wt(e)):{}}return(o?Lt:ji)(e,function(e,i,o){return t(n,e,i,o)}),n},oi.unary=function(e){return Ul(e,1)},oi.union=pl,oi.unionBy=fl,oi.unionWith=hl,oi.uniq=function(e){return e&&e.length?Ao(e):[]},oi.uniqBy=function(e,t){return e&&e.length?Ao(e,_r(t,2)):[]},oi.uniqWith=function(e,t){return t="function"==typeof t?t:r,e&&e.length?Ao(e,r,t):[]},oi.unset=function(e,t){return null==e||To(e,t)},oi.unzip=yl,oi.unzipWith=ml,oi.update=function(e,t,n){return null==e?e:Co(e,t,Po(n))},oi.updateWith=function(e,t,n,i){return i="function"==typeof i?i:r,null==e?e:Co(e,t,Po(n),i)},oi.values=Ju,oi.valuesIn=function(e){return null==e?[]:un(e,Hu(e))},oi.without=gl,oi.words=aa,oi.wrap=function(e,t){return Gl(Po(t),e)},oi.xor=vl,oi.xorBy=bl,oi.xorWith=kl,oi.zip=_l,oi.zipObject=function(e,t){return Mo(e||[],t||[],gi)},oi.zipObjectDeep=function(e,t){return Mo(e||[],t||[],fo)},oi.zipWith=wl,oi.entries=Yu,oi.entriesIn=Qu,oi.extend=Pu,oi.extendWith=Iu,va(oi,oi),oi.add=Ma,oi.attempt=sa,oi.camelCase=Zu,oi.capitalize=Xu,oi.ceil=Ea,oi.clamp=function(e,t,n){return n===r&&(n=t,t=r),n!==r&&(n=(n=Ou(n))==n?n:0),t!==r&&(t=(t=Ou(t))==t?t:0),Ai(Ou(e),t,n)},oi.clone=function(e){return Ti(e,d)},oi.cloneDeep=function(e){return Ti(e,s|d)},oi.cloneDeepWith=function(e,t){return Ti(e,s|d,t="function"==typeof t?t:r)},oi.cloneWith=function(e,t){return Ti(e,d,t="function"==typeof t?t:r)},oi.conformsTo=function(e,t){return null==t||Ci(e,t,Bu(t))},oi.deburr=ea,oi.defaultTo=function(e,t){return null==e||e!=e?t:e},oi.divide=Pa,oi.endsWith=function(e,t,n){e=Mu(e),t=wo(t);var i=e.length,o=n=n===r?i:Ai(Cu(n),0,i);return(n-=t.length)>=0&&e.slice(n,o)==t},oi.eq=Jl,oi.escape=function(e){return(e=Mu(e))&&ge.test(e)?e.replace(ye,pn):e},oi.escapeRegExp=function(e){return(e=Mu(e))&&Ce.test(e)?e.replace(Te,"\\$&"):e},oi.every=function(e,t,n){var i=tu(e)?Ut:Ei;return n&&Ir(e,t,n)&&(t=r),i(e,_r(t,3))},oi.find=Ol,oi.findIndex=el,oi.findKey=function(e,t){return Gt(e,_r(t,3),ji)},oi.findLast=Sl,oi.findLastIndex=tl,oi.findLastKey=function(e,t){return Gt(e,_r(t,3),Li)},oi.floor=Ia,oi.forEach=Ml,oi.forEachRight=El,oi.forIn=function(e,t){return null==e?e:Di(e,_r(t,3),Hu)},oi.forInRight=function(e,t){return null==e?e:Ni(e,_r(t,3),Hu)},oi.forOwn=function(e,t){return e&&ji(e,_r(t,3))},oi.forOwnRight=function(e,t){return e&&Li(e,_r(t,3))},oi.get=Lu,oi.gt=Zl,oi.gte=Xl,oi.has=function(e,t){return null!=e&&Sr(e,t,Hi)},oi.hasIn=Uu,oi.head=il,oi.identity=ha,oi.includes=function(e,t,n,i){e=iu(e)?e:Ju(e),n=n&&!i?Cu(n):0;var o=e.length;return n<0&&(n=jn(o+n,0)),vu(e)?n<=o&&e.indexOf(t,n)>-1:!!o&&Qt(e,t,n)>-1},oi.indexOf=function(e,t,n){var i=null==e?0:e.length;if(!i)return-1;var o=null==n?0:Cu(n);return o<0&&(o=jn(i+o,0)),Qt(e,t,o)},oi.inRange=function(e,t,n){return t=Tu(t),n===r?(n=t,t=0):n=Tu(n),function(e,t,n){return e>=Ln(t,n)&&e=-O&&e<=O},oi.isSet=gu,oi.isString=vu,oi.isSymbol=bu,oi.isTypedArray=ku,oi.isUndefined=function(e){return e===r},oi.isWeakMap=function(e){return pu(e)&&Or(e)==X},oi.isWeakSet=function(e){return pu(e)&&"[object WeakSet]"==Ki(e)},oi.join=function(e,t){return null==e?"":Dn.call(e,t)},oi.kebabCase=ta,oi.last=ul,oi.lastIndexOf=function(e,t,n){var i=null==e?0:e.length;if(!i)return-1;var o=i;return n!==r&&(o=(o=Cu(n))<0?jn(i+o,0):Ln(o,i-1)),t==t?function(e,t,n){for(var i=n+1;i--;)if(e[i]===t)return i;return i}(e,t,o):Yt(e,Zt,o,!0)},oi.lowerCase=na,oi.lowerFirst=ia,oi.lt=_u,oi.lte=wu,oi.max=function(e){return e&&e.length?Pi(e,ha,Bi):r},oi.maxBy=function(e,t){return e&&e.length?Pi(e,_r(t,2),Bi):r},oi.mean=function(e){return Xt(e,ha)},oi.meanBy=function(e,t){return Xt(e,_r(t,2))},oi.min=function(e){return e&&e.length?Pi(e,ha,Xi):r},oi.minBy=function(e,t){return e&&e.length?Pi(e,_r(t,2),Xi):r},oi.stubArray=xa,oi.stubFalse=Oa,oi.stubObject=function(){return{}},oi.stubString=function(){return""},oi.stubTrue=function(){return!0},oi.multiply=Ra,oi.nth=function(e,t){return e&&e.length?oo(e,Cu(t)):r},oi.noConflict=function(){return At._===this&&(At._=lt),this},oi.noop=ba,oi.now=Ll,oi.pad=function(e,t,n){e=Mu(e);var i=(t=Cu(t))?_n(e):0;if(!t||i>=t)return e;var o=(t-i)/2;return ir(En(o),n)+e+ir(Mn(o),n)},oi.padEnd=function(e,t,n){e=Mu(e);var i=(t=Cu(t))?_n(e):0;return t&&it){var i=e;e=t,t=i}if(n||e%1||t%1){var o=Fn();return Ln(e+o*(t-e+bt("1e-"+((o+"").length-1))),t)}return so(e,t)},oi.reduce=function(e,t,n){var i=tu(e)?Wt:nn,o=arguments.length<3;return i(e,_r(t,4),n,o,Si)},oi.reduceRight=function(e,t,n){var i=tu(e)?zt:nn,o=arguments.length<3;return i(e,_r(t,4),n,o,Mi)},oi.repeat=function(e,t,n){return t=(n?Ir(e,t,n):t===r)?1:Cu(t),co(Mu(e),t)},oi.replace=function(){var e=arguments,t=Mu(e[0]);return e.length<3?t:t.replace(e[1],e[2])},oi.result=function(e,t,n){var i=-1,o=(t=Io(t,e)).length;for(o||(o=1,e=r);++iO)return[];var n=E,i=Ln(e,E);t=_r(t),e-=E;for(var o=rn(i,t);++n=l)return e;var a=n-_n(i);if(a<1)return i;var s=u?Do(u,0,a).join(""):e.slice(0,a);if(o===r)return s+i;if(u&&(a+=s.length-a),mu(o)){if(e.slice(a).search(o)){var c,d=s;for(o.global||(o=Ge(o.source,Mu(Ne.exec(o))+"g")),o.lastIndex=0;c=o.exec(d);)var p=c.index;s=s.slice(0,p===r?a:p)}}else if(e.indexOf(wo(o),a)!=a){var f=s.lastIndexOf(o);f>-1&&(s=s.slice(0,f))}return s+i},oi.unescape=function(e){return(e=Mu(e))&&me.test(e)?e.replace(he,An):e},oi.uniqueId=function(e){var t=++nt;return Mu(e)+t},oi.upperCase=la,oi.upperFirst=ua,oi.each=Ml,oi.eachRight=El,oi.first=il,va(oi,(Sa={},ji(oi,function(e,t){tt.call(oi.prototype,t)||(Sa[t]=e)}),Sa),{chain:!1}),oi.VERSION="4.17.5",Lt(["bind","bindKey","curry","curryRight","partial","partialRight"],function(e){oi[e].placeholder=oi}),Lt(["drop","take"],function(e,t){ai.prototype[e]=function(n){n=n===r?1:jn(Cu(n),0);var i=this.__filtered__&&!t?new ai(this):this.clone();return i.__filtered__?i.__takeCount__=Ln(n,i.__takeCount__):i.__views__.push({size:Ln(n,E),type:e+(i.__dir__<0?"Right":"")}),i},ai.prototype[e+"Right"]=function(t){return this.reverse()[e](t).reverse()}}),Lt(["filter","map","takeWhile"],function(e,t){var n=t+1,i=1==n||3==n;ai.prototype[e]=function(e){var t=this.clone();return t.__iteratees__.push({iteratee:_r(e,3),type:n}),t.__filtered__=t.__filtered__||i,t}}),Lt(["head","last"],function(e,t){var n="take"+(t?"Right":"");ai.prototype[e]=function(){return this[n](1).value()[0]}}),Lt(["initial","tail"],function(e,t){var n="drop"+(t?"":"Right");ai.prototype[e]=function(){return this.__filtered__?new ai(this):this[n](1)}}),ai.prototype.compact=function(){return this.filter(ha)},ai.prototype.find=function(e){return this.filter(e).head()},ai.prototype.findLast=function(e){return this.reverse().find(e)},ai.prototype.invokeMap=po(function(e,t){return"function"==typeof e?new ai(this):this.map(function(n){return $i(n,e,t)})}),ai.prototype.reject=function(e){return this.filter($l(_r(e)))},ai.prototype.slice=function(e,t){e=Cu(e);var n=this;return n.__filtered__&&(e>0||t<0)?new ai(n):(e<0?n=n.takeRight(-e):e&&(n=n.drop(e)),t!==r&&(n=(t=Cu(t))<0?n.dropRight(-t):n.take(t-e)),n)},ai.prototype.takeRightWhile=function(e){return this.reverse().takeWhile(e).reverse()},ai.prototype.toArray=function(){return this.take(E)},ji(ai.prototype,function(e,t){var n=/^(?:filter|find|map|reject)|While$/.test(t),i=/^(?:head|last)$/.test(t),o=oi[i?"take"+("last"==t?"Right":""):t],l=i||/^find/.test(t);o&&(oi.prototype[t]=function(){var t=this.__wrapped__,u=i?[1]:arguments,a=t instanceof ai,s=u[0],c=a||tu(t),d=function(e){var t=o.apply(oi,Ht([e],u));return i&&p?t[0]:t};c&&n&&"function"==typeof s&&1!=s.length&&(a=c=!1);var p=this.__chain__,f=l&&!p,h=a&&!this.__actions__.length;if(!l&&c){t=h?t:new ai(this);var y=e.apply(t,u);return y.__actions__.push({func:Tl,args:[d],thisArg:r}),new ui(y,p)}return f&&h?e.apply(this,u):(y=this.thru(d),f?i?y.value()[0]:y.value():y)})}),Lt(["pop","push","shift","sort","splice","unshift"],function(e){var t=Je[e],n=/^(?:push|sort|unshift)$/.test(e)?"tap":"thru",i=/^(?:pop|shift)$/.test(e);oi.prototype[e]=function(){var e=arguments;if(i&&!this.__chain__){var o=this.value();return t.apply(tu(o)?o:[],e)}return this[n](function(n){return t.apply(tu(n)?n:[],e)})}}),ji(ai.prototype,function(e,t){var n=oi[t];if(n){var i=n.name+"";(Yn[i]||(Yn[i]=[])).push({name:t,func:n})}}),Yn[Xo(r,y).name]=[{name:"wrapper",func:r}],ai.prototype.clone=function(){var e=new ai(this.__wrapped__);return e.__actions__=Bo(this.__actions__),e.__dir__=this.__dir__,e.__filtered__=this.__filtered__,e.__iteratees__=Bo(this.__iteratees__),e.__takeCount__=this.__takeCount__,e.__views__=Bo(this.__views__),e},ai.prototype.reverse=function(){if(this.__filtered__){var e=new ai(this);e.__dir__=-1,e.__filtered__=!0}else(e=this.clone()).__dir__*=-1;return e},ai.prototype.value=function(){var e=this.__wrapped__.value(),t=this.__dir__,n=tu(e),i=t<0,o=n?e.length:0,r=function(e,t,n){for(var i=-1,o=n.length;++i=this.__values__.length;return{done:e,value:e?r:this.__values__[this.__index__++]}},oi.prototype.plant=function(e){for(var t,n=this;n instanceof li;){var i=Qr(n);i.__index__=0,i.__values__=r,t?o.__wrapped__=i:t=i;var o=i;n=n.__wrapped__}return o.__wrapped__=e,t},oi.prototype.reverse=function(){var e=this.__wrapped__;if(e instanceof ai){var t=e;return this.__actions__.length&&(t=new ai(this)),(t=t.reverse()).__actions__.push({func:Tl,args:[dl],thisArg:r}),new ui(t,this.__chain__)}return this.thru(dl)},oi.prototype.toJSON=oi.prototype.valueOf=oi.prototype.value=function(){return Oo(this.__wrapped__,this.__actions__)},oi.prototype.first=oi.prototype.head,qt&&(oi.prototype[qt]=function(){return this}),oi}();At._=Tn,(o=(function(){return Tn}).call(t,n,t,i))===r||(i.exports=o)}).call(this)}).call(t,n("DuR2"),n("3IRH")(e))},M5jZ:function(e,t,n){"use strict";var i=n("JzlZ");t.skip=function(e){return i.skip(e)(this)}},"MEr+":function(e,t,n){"use strict";var i=n("TToO").__extends,o=n("mmVS"),r=n("CGGv");t.debounceTime=function(e,t){return void 0===t&&(t=r.async),function(n){return n.lift(new l(e,t))}};var l=function(){function e(e,t){this.dueTime=e,this.scheduler=t}return e.prototype.call=function(e,t){return t.subscribe(new u(e,this.dueTime,this.scheduler))},e}(),u=function(e){function t(t,n,i){e.call(this,t),this.dueTime=n,this.scheduler=i,this.debouncedSubscription=null,this.lastValue=null,this.hasValue=!1}return i(t,e),t.prototype._next=function(e){this.clearDebounce(),this.lastValue=e,this.hasValue=!0,this.add(this.debouncedSubscription=this.scheduler.schedule(a,this.dueTime,this))},t.prototype._complete=function(){this.debouncedNext(),this.destination.complete()},t.prototype.debouncedNext=function(){this.clearDebounce(),this.hasValue&&(this.destination.next(this.lastValue),this.lastValue=null,this.hasValue=!1)},t.prototype.clearDebounce=function(){var e=this.debouncedSubscription;null!==e&&(this.remove(e),e.unsubscribe(),this.debouncedSubscription=null)},t}(o.Subscriber);function a(e){e.debouncedNext()}},MQMf:function(e,t,n){"use strict";var i=n("TToO").__extends,o=n("EEr4"),r=n("RA5l"),l=n("B00U"),u=n("ODby"),a=n("IZVw"),s=n("ZJf8");t.ReplaySubject=function(e){function t(t,n,i){void 0===t&&(t=Number.POSITIVE_INFINITY),void 0===n&&(n=Number.POSITIVE_INFINITY),e.call(this),this.scheduler=i,this._events=[],this._bufferSize=t<1?1:t,this._windowTime=n<1?1:n}return i(t,e),t.prototype.next=function(t){var n=this._getNow();this._events.push(new c(n,t)),this._trimBufferThenGetEvents(),e.prototype.next.call(this,t)},t.prototype._subscribe=function(e){var t,n=this._trimBufferThenGetEvents(),i=this.scheduler;if(this.closed)throw new a.ObjectUnsubscribedError;this.hasError?t=l.Subscription.EMPTY:this.isStopped?t=l.Subscription.EMPTY:(this.observers.push(e),t=new s.SubjectSubscription(this,e)),i&&e.add(e=new u.ObserveOnSubscriber(e,i));for(var o=n.length,r=0;rt&&(r=Math.max(r,o-t)),r>0&&i.splice(0,r),i},t}(o.Subject);var c=function(e,t){this.time=e,this.value=t}},MkTX:function(e,t,n){"use strict";var i=n("xgwM").__extends,o=n("xgwM").__decorate,r=n("xgwM").__metadata;Object.defineProperty(t,"__esModule",{value:!0});var l,u,a=n("CmJd"),s=n("4KnF");!function(e){e[e.mod=0]="mod",e[e.fn=1]="fn",e[e.mouse=2]="mouse"}(l=t.LayerName||(t.LayerName={})),function(e){e.holdAndDoubleTapToggle="holdAndDoubleTapToggle",e.toggle="toggle",e.hold="hold"}(u=t.SwitchLayerMode||(t.SwitchLayerMode={})),t.mapSwitchLayerModeToNumber=function(e){switch(e){case u.holdAndDoubleTapToggle:return 0;case u.toggle:return 1;case u.hold:return 2;default:throw new Error("Can not map "+e+" to number")}},t.mapNumberToSwitchLayerMode=function(e){switch(e){case 0:return u.holdAndDoubleTapToggle;case 1:return u.toggle;case 2:return u.hold;default:throw new Error('Can not map "'+e+'" to SwitchLayerMode')}},t.SwitchLayerAction=function(e){function n(t){var n=e.call(this)||this;return t?(n.switchLayerMode=t.switchLayerMode,n.layer=t.layer,n):n}return i(n,e),n.prototype.fromJsonObject=function(e){return this.assertKeyActionType(e),this.layer=l[e.layer],this.switchLayerMode="boolean"==typeof e.toggle?e.toggle?u.toggle:u.holdAndDoubleTapToggle:e.switchLayerMode,this},n.prototype.fromBinary=function(e){return this.readAndAssertKeyActionId(e),this.layer=e.readUInt8(),this.switchLayerMode=t.mapNumberToSwitchLayerMode(e.readUInt8()),this},n.prototype.toJsonObject=function(){return{keyActionType:s.keyActionType.SwitchLayerAction,layer:l[this.layer],switchLayerMode:this.switchLayerMode}},n.prototype.toBinary=function(e){e.writeUInt8(s.KeyActionId.SwitchLayerAction),e.writeUInt8(this.layer),e.writeUInt8(t.mapSwitchLayerModeToNumber(this.switchLayerMode))},n.prototype.toString=function(){return''},n.prototype.getName=function(){return"SwitchLayerAction"},o([a.assertEnum(u),r("design:type",String)],n.prototype,"switchLayerMode",void 0),o([a.assertEnum(l),r("design:type",Number)],n.prototype,"layer",void 0),n}(s.KeyAction)},MptX:function(e,t,n){"use strict";n.d(t,"a",function(){return i});var i={showButton:!1,text:null,showProgress:!1}},NSzm:function(e,t,n){"use strict";(function(e){n.d(t,"a",function(){return _});var i=n("TToO"),o=n("8AXl"),r=n("rCTf"),l=n("DzMp"),u=(n.n(l),n("lDdF")),a=(n.n(u),n("+pb+")),s=(n.n(a),n("uCY4")),c=(n.n(s),n("/lY3")),d=(n.n(c),n("fiy1")),p=(n.n(d),n("HcJ8")),f=(n.n(p),n("1APj")),h=(n.n(f),n("AGQa")),y=(n.n(h),n("gI3A")),m=(n.n(y),n("at4H")),g=n("9EfN"),v=n("WP8/"),b=n("Ji5S"),k=n("fYQU"),_=function(){function t(t,n,i,o,a,s,c){var d=this;this.actions$=t,this.dataStorageRepository=n,this.store=i,this.defaultUserConfigurationService=o,this.deviceRendererService=a,this.logService=s,this.router=c,this.loadUserConfig$=Object(l.defer)(function(){return r.Observable.of(new m.f(d.getUserConfiguration()))}),this.saveUserConfig$=this.actions$.ofType(v.a.ADD,v.a.DUPLICATE,v.a.EDIT_NAME,v.a.EDIT_ABBR,v.a.SET_DEFAULT,v.a.REMOVE,v.a.SAVE_KEY,v.a.EDIT_DESCRIPTION,v.b.ADD,v.b.DUPLICATE,v.b.EDIT_NAME,v.b.REMOVE,v.b.ADD_ACTION,v.b.SAVE_ACTION,v.b.DELETE_ACTION,v.b.REORDER_ACTION,m.a.RENAME_USER_CONFIGURATION,m.a.SET_USER_CONFIGURATION_VALUE).withLatestFrom(this.store.select(g.v),this.store.select(g.p)).mergeMap(function(e){var t=e[0],n=e[1],i=e[2];if(n.recalculateConfigurationLength(),d.dataStorageRepository.saveConfig(n),t.type===v.a.REMOVE||t.type===v.b.REMOVE){var o=t.type===v.a.REMOVE?"Keymap":"Macro",r={path:"/"+(t.type===v.a.REMOVE?"keymap":"macro")+"/"+t.payload,config:i.toJsonObject()};return[new m.k(n),new b.l({type:y.NotificationType.Undoable,message:o+" has been deleted",extra:{payload:r,type:v.a.UNDO_LAST_ACTION}}),new k.r]}return[new m.k(n),new b.d,new k.r]}),this.undoUserConfig$=this.actions$.ofType(v.a.UNDO_LAST_ACTION).map(function(e){return e.payload}).mergeMap(function(e){var t=(new y.UserConfiguration).fromJsonObject(e.config);return d.dataStorageRepository.saveConfig(t),d.router.navigate([e.path]),[new m.f(t)]}),this.loadConfigFromDevice$=this.actions$.ofType(m.a.LOAD_CONFIG_FROM_DEVICE).do(function(){return d.deviceRendererService.loadConfigurationFromKeyboard()}),this.loadConfigFromDeviceReply$=this.actions$.ofType(m.a.LOAD_CONFIG_FROM_DEVICE_REPLY).withLatestFrom(this.store.select(g.r)).mergeMap(function(e){var t=e[1],n=e[0].payload;if(!n.success)return[new b.l({type:y.NotificationType.Error,message:n.error})];var i,o=[];try{var r=Object(y.getUserConfigFromDeviceResponse)(n.userConfiguration);o.push(new m.f(r)),t.state&&!t.state.url.startsWith("/device/firmware")&&(i=["/"])}catch(e){d.logService.error("Eeprom user-config parse error:",e),r=(new y.UserConfiguration).fromJsonObject(n.backupConfiguration),o.push(new k.e(!!n.backupConfiguration)),o.push(new m.f(r)),i=["/device/restore-user-configuration"]}try{var l=Object(y.getHardwareConfigFromDeviceResponse)(n.hardwareConfiguration);o.push(new b.g(l))}catch(e){d.logService.error("Eeprom hardware-config parse error:",e),o.push(new b.l({type:y.NotificationType.Error,message:e}))}return o.push(new k.d(n.modules)),i&&d.router.navigate(i),o}),this.saveUserConfigInJsonFile$=this.actions$.ofType(m.a.SAVE_USER_CONFIG_IN_JSON_FILE).withLatestFrom(this.store.select(g.v)).do(function(e){var t=JSON.stringify(e[1].toJsonObject(),null,2),n=new Blob([t],{type:"text/plain"});Object(u.saveAs)(n,"UserConfiguration.json")}),this.saveUserConfigInBinFile$=this.actions$.ofType(m.a.SAVE_USER_CONFIG_IN_BIN_FILE).withLatestFrom(this.store.select(g.v)).do(function(e){var t=e[1],n=new y.UhkBuffer;t.toBinary(n);var i=new Blob([n.getBufferContent()]);Object(u.saveAs)(i,"UserConfiguration.bin")}),this.loadUserConfigurationFromFile$=this.actions$.ofType(m.a.LOAD_USER_CONFIGURATION_FROM_FILE).map(function(e){return e.payload}).map(function(t){try{var n=new y.UserConfiguration;if(t.filename.endsWith(".bin"))n.fromBinary(y.UhkBuffer.fromArray(t.data));else{var i=new e(t.data).toString();n.fromJsonObject(JSON.parse(i))}return n.userConfigMajorVersion?new m.b(n):new b.l({type:y.NotificationType.Error,message:"Invalid configuration specified."})}catch(e){return new b.l({type:y.NotificationType.Error,message:"Invalid configuration specified."})}})}return t.prototype.getUserConfiguration=function(){var e,t=this.dataStorageRepository.getConfig();return t&&t.userConfigMajorVersion===this.defaultUserConfigurationService.getDefault().userConfigMajorVersion&&(e=(new y.UserConfiguration).fromJsonObject(t)),e||(e=this.defaultUserConfigurationService.getDefault()),e},Object(i.__decorate)([Object(o.b)(),Object(i.__metadata)("design:type",r.Observable)],t.prototype,"loadUserConfig$",void 0),Object(i.__decorate)([Object(o.b)(),Object(i.__metadata)("design:type",r.Observable)],t.prototype,"saveUserConfig$",void 0),Object(i.__decorate)([Object(o.b)(),Object(i.__metadata)("design:type",r.Observable)],t.prototype,"undoUserConfig$",void 0),Object(i.__decorate)([Object(o.b)({dispatch:!1}),Object(i.__metadata)("design:type",Object)],t.prototype,"loadConfigFromDevice$",void 0),Object(i.__decorate)([Object(o.b)(),Object(i.__metadata)("design:type",Object)],t.prototype,"loadConfigFromDeviceReply$",void 0),Object(i.__decorate)([Object(o.b)({dispatch:!1}),Object(i.__metadata)("design:type",Object)],t.prototype,"saveUserConfigInJsonFile$",void 0),Object(i.__decorate)([Object(o.b)({dispatch:!1}),Object(i.__metadata)("design:type",Object)],t.prototype,"saveUserConfigInBinFile$",void 0),Object(i.__decorate)([Object(o.b)(),Object(i.__metadata)("design:type",Object)],t.prototype,"loadUserConfigurationFromFile$",void 0),t}()}).call(t,n("63KW").Buffer)},Nkju:function(e,t){e.exports=function(e,t){return Array.prototype.slice.call(e,t)}},ODby:function(e,t,n){"use strict";var i=n("TToO").__extends,o=n("mmVS"),r=n("8GmM");t.observeOn=function(e,t){return void 0===t&&(t=0),function(n){return n.lift(new l(e,t))}};var l=function(){function e(e,t){void 0===t&&(t=0),this.scheduler=e,this.delay=t}return e.prototype.call=function(e,t){return t.subscribe(new u(e,this.scheduler,this.delay))},e}();t.ObserveOnOperator=l;var u=function(e){function t(t,n,i){void 0===i&&(i=0),e.call(this,t),this.scheduler=n,this.delay=i}return i(t,e),t.dispatch=function(e){e.notification.observe(e.destination),this.unsubscribe()},t.prototype.scheduleMessage=function(e){this.add(this.scheduler.schedule(t.dispatch,this.delay,new a(e,this.destination)))},t.prototype._next=function(e){this.scheduleMessage(r.Notification.createNext(e))},t.prototype._error=function(e){this.scheduleMessage(r.Notification.createError(e))},t.prototype._complete=function(){this.scheduleMessage(r.Notification.createComplete())},t}(o.Subscriber);t.ObserveOnSubscriber=u;var a=function(e,t){this.notification=e,this.destination=t};t.ObserveOnMessage=a},OE0E:function(e,t,n){"use strict";n.d(t,"a",function(){return Fe}),n.d(t,"j",function(){return Ue}),n.d(t,"h",function(){return v}),n.d(t,"i",function(){return w}),n.d(t,"b",function(){return y}),n.d(t,"d",function(){return M}),n.d(t,"e",function(){return E}),n.d(t,"f",function(){return ne}),n.d(t,"g",function(){return ie}),n.d(t,"c",function(){return Me}),n.d(t,"s",function(){return u}),n.d(t,"l",function(){return F}),n.d(t,"k",function(){return ee}),n.d(t,"n",function(){return oe}),n.d(t,"o",function(){return ue}),n.d(t,"m",function(){return R}),n.d(t,"p",function(){return I}),n.d(t,"q",function(){return Ve}),n.d(t,"t",function(){return S}),n.d(t,"r",function(){return Ee});var i=n("Xjw4"),o=n("WT6e"),r=n("TToO"),l=null;function u(){return l}var a,s={class:"className",innerHtml:"innerHTML",readonly:"readOnly",tabindex:"tabIndex"},c={"\b":"Backspace","\t":"Tab","\x7f":"Delete","\x1b":"Escape",Del:"Delete",Esc:"Escape",Left:"ArrowLeft",Right:"ArrowRight",Up:"ArrowUp",Down:"ArrowDown",Menu:"ContextMenu",Scroll:"ScrollLock",Win:"OS"},d={A:"1",B:"2",C:"3",D:"4",E:"5",F:"6",G:"7",H:"8",I:"9",J:"*",K:"+",M:"-",N:".",O:"/","`":"0","\x90":"NumLock"};o["\u0275global"].Node&&(a=o["\u0275global"].Node.prototype.contains||function(e){return!!(16&this.compareDocumentPosition(e))});var p,f=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Object(r.__extends)(t,e),t.prototype.parse=function(e){throw new Error("parse not implemented")},t.makeCurrent=function(){var e;e=new t,l||(l=e)},t.prototype.hasProperty=function(e,t){return t in e},t.prototype.setProperty=function(e,t,n){e[t]=n},t.prototype.getProperty=function(e,t){return e[t]},t.prototype.invoke=function(e,t,n){var i;(i=e)[t].apply(i,n)},t.prototype.logError=function(e){window.console&&(console.error?console.error(e):console.log(e))},t.prototype.log=function(e){window.console&&window.console.log&&window.console.log(e)},t.prototype.logGroup=function(e){window.console&&window.console.group&&window.console.group(e)},t.prototype.logGroupEnd=function(){window.console&&window.console.groupEnd&&window.console.groupEnd()},Object.defineProperty(t.prototype,"attrToPropMap",{get:function(){return s},enumerable:!0,configurable:!0}),t.prototype.contains=function(e,t){return a.call(e,t)},t.prototype.querySelector=function(e,t){return e.querySelector(t)},t.prototype.querySelectorAll=function(e,t){return e.querySelectorAll(t)},t.prototype.on=function(e,t,n){e.addEventListener(t,n,!1)},t.prototype.onAndCancel=function(e,t,n){return e.addEventListener(t,n,!1),function(){e.removeEventListener(t,n,!1)}},t.prototype.dispatchEvent=function(e,t){e.dispatchEvent(t)},t.prototype.createMouseEvent=function(e){var t=this.getDefaultDocument().createEvent("MouseEvent");return t.initEvent(e,!0,!0),t},t.prototype.createEvent=function(e){var t=this.getDefaultDocument().createEvent("Event");return t.initEvent(e,!0,!0),t},t.prototype.preventDefault=function(e){e.preventDefault(),e.returnValue=!1},t.prototype.isPrevented=function(e){return e.defaultPrevented||null!=e.returnValue&&!e.returnValue},t.prototype.getInnerHTML=function(e){return e.innerHTML},t.prototype.getTemplateContent=function(e){return"content"in e&&this.isTemplateElement(e)?e.content:null},t.prototype.getOuterHTML=function(e){return e.outerHTML},t.prototype.nodeName=function(e){return e.nodeName},t.prototype.nodeValue=function(e){return e.nodeValue},t.prototype.type=function(e){return e.type},t.prototype.content=function(e){return this.hasProperty(e,"content")?e.content:e},t.prototype.firstChild=function(e){return e.firstChild},t.prototype.nextSibling=function(e){return e.nextSibling},t.prototype.parentElement=function(e){return e.parentNode},t.prototype.childNodes=function(e){return e.childNodes},t.prototype.childNodesAsList=function(e){for(var t=e.childNodes,n=new Array(t.length),i=0;i0},t.prototype.tagName=function(e){return e.tagName},t.prototype.attributeMap=function(e){for(var t=new Map,n=e.attributes,i=0;i0;u||(u=e[l]=[]);var s=Z(t)?Zone.root:Zone.current;if(0===u.length)u.push({zone:s,handler:r});else{for(var c=!1,d=0;d-1},t}(P),re=["alt","control","meta","shift"],le={alt:function(e){return e.altKey},control:function(e){return e.ctrlKey},meta:function(e){return e.metaKey},shift:function(e){return e.shiftKey}},ue=function(e){function t(t){return e.call(this,t)||this}return Object(r.__extends)(t,e),t.prototype.supports=function(e){return null!=t.parseEventName(e)},t.prototype.addEventListener=function(e,n,i){var o=t.parseEventName(n),r=t.eventCallback(o.fullKey,i,this.manager.getZone());return this.manager.getZone().runOutsideAngular(function(){return u().onAndCancel(e,o.domEventName,r)})},t.parseEventName=function(e){var n=e.toLowerCase().split("."),i=n.shift();if(0===n.length||"keydown"!==i&&"keyup"!==i)return null;var o=t._normalizeKey(n.pop()),r="";if(re.forEach(function(e){var t=n.indexOf(e);t>-1&&(n.splice(t,1),r+=e+".")}),r+=o,0!=n.length||0===o.length)return null;var l={};return l.domEventName=i,l.fullKey=r,l},t.getEventFullKey=function(e){var t="",n=u().getEventKey(e);return" "===(n=n.toLowerCase())?n="space":"."===n&&(n="dot"),re.forEach(function(i){i!=n&&(0,le[i])(e)&&(t+=i+".")}),t+=n},t.eventCallback=function(e,n,i){return function(o){t.getEventFullKey(o)===e&&i.runGuarded(function(){return n(o)})}},t._normalizeKey=function(e){switch(e){case"esc":return"escape";default:return e}},t}(P),ae=function(){function e(e,t){this.defaultDoc=e,this.DOM=t;var n=this.DOM.createHtmlDocument();if(this.inertBodyElement=n.body,null==this.inertBodyElement){var i=this.DOM.createElement("html",n);this.inertBodyElement=this.DOM.createElement("body",n),this.DOM.appendChild(i,this.inertBodyElement),this.DOM.appendChild(n,i)}this.DOM.setInnerHTML(this.inertBodyElement,''),!this.inertBodyElement.querySelector||this.inertBodyElement.querySelector("svg")?(this.DOM.setInnerHTML(this.inertBodyElement,'

'),this.getInertBodyElement=this.inertBodyElement.querySelector&&this.inertBodyElement.querySelector("svg img")&&function(){try{return!!window.DOMParser}catch(e){return!1}}()?this.getInertBodyElement_DOMParser:this.getInertBodyElement_InertDocument):this.getInertBodyElement=this.getInertBodyElement_XHR}return e.prototype.getInertBodyElement_XHR=function(e){e=""+e+"";try{e=encodeURI(e)}catch(e){return null}var t=new XMLHttpRequest;t.responseType="document",t.open("GET","data:text/html;charset=utf-8,"+e,!1),t.send(null);var n=t.response.body;return n.removeChild(n.firstChild),n},e.prototype.getInertBodyElement_DOMParser=function(e){e=""+e+"";try{var t=(new window.DOMParser).parseFromString(e,"text/html").body;return t.removeChild(t.firstChild),t}catch(e){return null}},e.prototype.getInertBodyElement_InertDocument=function(e){var t=this.DOM.createElement("template");return"content"in t?(this.DOM.setInnerHTML(t,e),t):(this.DOM.setInnerHTML(this.inertBodyElement,e),this.defaultDoc.documentMode&&this.stripCustomNsAttrs(this.inertBodyElement),this.inertBodyElement)},e.prototype.stripCustomNsAttrs=function(e){var t=this;this.DOM.attributeMap(e).forEach(function(n,i){"xmlns:ns1"!==i&&0!==i.indexOf("ns1:")||t.DOM.removeAttribute(e,i)});for(var n=0,i=this.DOM.childNodesAsList(e);n")):this.sanitizedSomething=!0},e.prototype.endElement=function(e){var t=this.DOM.nodeName(e).toLowerCase();be.hasOwnProperty(t)&&!ye.hasOwnProperty(t)&&(this.buf.push(""))},e.prototype.chars=function(e){this.buf.push(xe(e))},e.prototype.checkClobberedElement=function(e,t){if(t&&this.DOM.contains(e,t))throw new Error("Failed to sanitize html because the element is clobbered: "+this.DOM.getOuterHTML(e));return t},e}(),Te=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,Ce=/([^\#-~ |!])/g;function xe(e){return e.replace(/&/g,"&").replace(Te,function(e){return"&#"+(1024*(e.charCodeAt(0)-55296)+(e.charCodeAt(1)-56320)+65536)+";"}).replace(Ce,function(e){return"&#"+e.charCodeAt(0)+";"}).replace(//g,">")}var Oe=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"),Se=/^url\(([^)]+)\)$/,Me=function(){},Ee=function(e){function t(t){var n=e.call(this)||this;return n._doc=t,n}return Object(r.__extends)(t,e),t.prototype.sanitize=function(e,t){if(null==t)return null;switch(e){case o.SecurityContext.NONE:return t;case o.SecurityContext.HTML:return t instanceof Ie?t.changingThisBreaksApplicationSecurity:(this.checkNotSafeValue(t,"HTML"),function(e,t){var n=u(),i=null;try{he=he||new ae(e,n);var r=t?String(t):"";i=he.getInertBodyElement(r);var l=5,a=r;do{if(0===l)throw new Error("Failed to sanitize html because the input is unstable");l--,r=a,a=n.getInnerHTML(i),i=he.getInertBodyElement(r)}while(r!==a);var s=new Ae,c=s.sanitizeChildren(n.getTemplateContent(i)||i);return Object(o.isDevMode)()&&s.sanitizedSomething&&n.log("WARNING: sanitizing HTML stripped some content (see http://g.co/ng/security#xss)."),c}finally{if(i)for(var d=n.getTemplateContent(i)||i,p=0,f=n.childNodesAsList(d);p=8.9.1 <9.0.0",npm:">=5.6.0 <6.0.0"},devDependencies:{"@types/electron-devtools-installer":"2.0.2","@types/electron-settings":"3.0.0","@types/fs-extra":"5.0.1","@types/jasmine":"2.8.8","@types/jquery":"3.3.1","@types/jsonfile":"4.0.1","@types/lodash-es":"4.17.0","@types/node":"8.0.53","@types/node-hid":"0.5.2","@types/request":"2.0.8","@types/usb":"1.1.3",autoprefixer:"6.5.3",buffer:"5.0.6","check-node-version":"^3.2.0","copy-webpack-plugin":"4.0.1",copyfiles:"^2.0.0","core-js":"2.4.1","cross-env":"5.0.5",decompress:"4.2.0","decompress-tarbz2":"4.1.1",devtron:"1.4.0",electron:"1.8.7","electron-builder":"20.8.1","electron-debug":"1.5.0","electron-devtools-installer":"2.2.3","electron-log":"2.2.16","electron-rebuild":"1.8.2","electron-settings":"3.1.4","electron-updater":"2.21.4","exports-loader":"0.6.3","file-loader":"0.10.0","fs-extra":"5.0.0","gh-pages":"1.1.0",jasmine:"2.8.0","jasmine-core":"2.8.0","jasmine-node":"2.0.1","jasmine-ts":"0.2.1",jsonfile:"4.0.0",lerna:"3.1.4","lodash-es":"4.17.4",mkdirp:"0.5.1","node-hid":"0.5.7","npm-run-all":"4.0.2","pre-commit":"1.2.2",request:"2.88.0",rimraf:"2.6.1","standard-version":"4.2.0",stylelint:"9.5.0","svg-sprite":"1.4.0","ts-loader":"2.3.1","ts-node":"7.0.1",tslint:"5.9.1",typescript:"2.6.2",webpack:"3.12.0"},"pre-commit":["precommit-msg"],scripts:{postinstall:"lerna bootstrap","precommit-msg":"Git precommit hook is running... & exit 0",test:"run-p -sn test:test-serializer test:uhk-common","test:test-serializer":"lerna exec --scope test-serializer npm test","test:uhk-common":"lerna exec --scope uhk-common npm test","test:uhk-web":"lerna exec --scope uhk-web npm test",lint:"run-s -scn lint:ts lint:style","lint:ts":"run-p -sn lint:ts:electron-main lint:ts:electron-renderer lint:ts:web lint:ts:test-serializer lint:ts:uhk-usb","lint:ts:electron-main":"tslint --project ./packages/uhk-agent/tsconfig.json","lint:ts:electron-renderer":"tslint --project ./packages/uhk-web/src/tsconfig.renderer.json","lint:ts:web":"tslint --project ./packages/uhk-web/src/tsconfig.app.json","lint:ts:test-serializer":"tslint --project ./packages/test-serializer/tsconfig.json","lint:ts:uhk-usb":"tslint --project ./packages/uhk-usb/tsconfig.json","lint:style":'stylelint "packages/uhk-agent/src/**/*.scss" "packages/uhk-web/src/**/*.scss" --syntax scss',e2e:"lerna run e2e --scope uhk-web",prebuild:"check-node-version --package",build:"run-s build:common build:usb build:web build:electron","build:web":"lerna exec --scope uhk-web npm run build","build:electron":"cross-env AOT_BUILD=true run-s -sn build:electron:renderer build:electron:main","build:electron:main":"lerna exec --scope uhk-agent npm run build","build:electron:renderer":"lerna exec --scope uhk-web npm run build:renderer","build:common":"lerna exec --scope uhk-common npm run build","build:usb":"lerna exec --scope uhk-usb npm run build","server:web":"lerna exec --scope uhk-web npm start","server:electron":"lerna exec --scope uhk-web npm run server:renderer",electron:"lerna exec --scope uhk-agent npm start","electron:spe":"lerna exec --scope uhk-agent npm run electron:spe","standard-version":"standard-version",pack:"node ./scripts/release.js",sprites:"node ./scripts/generate-svg-sprites",release:"node ./scripts/release.js",clean:"lerna exec rimraf ./node_modules ./dist && rimraf ./node_modules ./dist","predeploy-gh-pages":"run-s build:web","deploy-gh-pages":"gh-pages -d packages/uhk-web/dist"},dependencies:{}}},Oz3Z:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i,o=n("1Rl6");t.isScancodeExists=function(e){return i||function(){i=new Map;for(var e=0,t=o.SCANCODES;e=0}},PKvP:function(e,t,n){"use strict";var i=n("JkZN");t.from=i.FromObservable.create},PutI:function(e,t,n){"use strict";var i=n("TToO").__extends,o=n("cwzr");t.QueueAction=function(e){function t(t,n){e.call(this,t,n),this.scheduler=t,this.work=n}return i(t,e),t.prototype.schedule=function(t,n){return void 0===n&&(n=0),n>0?e.prototype.schedule.call(this,t,n):(this.delay=n,this.state=t,this.scheduler.flush(this),this)},t.prototype.execute=function(t,n){return n>0||this.closed?e.prototype.execute.call(this,t,n):this._execute(t,n)},t.prototype.requestAsyncId=function(t,n,i){return void 0===i&&(i=0),null!==i&&i>0||null===i&&this.delay>0?e.prototype.requestAsyncId.call(this,t,n,i):t.flush(this)},t}(o.AsyncAction)},PvYY:function(e,t,n){"use strict";var i=n("rCTf"),o=n("0gHg");i.Observable.prototype.publishReplay=o.publishReplay},Q3m9:function(e,t,n){"use strict";var i=n("xgwM").__extends,o=n("xgwM").__decorate,r=n("xgwM").__metadata;Object.defineProperty(t,"__esModule",{value:!0});var l=n("CmJd"),u=n("ao60");t.ScrollMouseMacroAction=function(e){function t(t){var n=e.call(this)||this;return t?(n.x=t.x,n.y=t.y,n):n}return i(t,e),t.prototype.fromJsonObject=function(e){return this.assertMacroActionType(e),this.x=e.x,this.y=e.y,this},t.prototype.fromBinary=function(e){return this.readAndAssertMacroActionId(e),this.x=e.readInt16(),this.y=e.readInt16(),this},t.prototype.toJsonObject=function(){return{macroActionType:u.macroActionType.ScrollMouseMacroAction,x:this.x,y:this.y}},t.prototype.toBinary=function(e){e.writeUInt8(u.MacroActionId.ScrollMouseMacroAction),e.writeInt16(this.x),e.writeInt16(this.y)},t.prototype.toString=function(){return''},t.prototype.getName=function(){return"ScrollMouseMacroAction"},o([l.assertInt16,r("design:type",Number)],t.prototype,"x",void 0),o([l.assertInt16,r("design:type",Number)],t.prototype,"y",void 0),t}(u.MacroAction)},QqRK:function(e,t,n){"use strict";var i=n("TToO").__extends,o=n("mmVS");t.InnerSubscriber=function(e){function t(t,n,i){e.call(this),this.parent=t,this.outerValue=n,this.outerIndex=i,this.index=0}return i(t,e),t.prototype._next=function(e){this.parent.notifyNext(this.outerValue,e,this.outerIndex,this.index++,this)},t.prototype._error=function(e){this.parent.notifyError(e,this),this.unsubscribe()},t.prototype._complete=function(){this.parent.notifyComplete(this),this.unsubscribe()},t}(o.Subscriber)},R30b:function(e,t,n){"use strict";var i=n("xgwM").__decorate,o=n("xgwM").__metadata;Object.defineProperty(t,"__esModule",{value:!0});var r=n("CmJd"),l=n("jsdV");t.Macro=function(){function e(e){e&&(this.id=e.id,this.isLooped=e.isLooped,this.isPrivate=e.isPrivate,this.name=e.name,this.macroActions=e.macroActions.map(function(e){return l.Helper.createMacroAction(e)}))}return e.prototype.fromJsonObject=function(e){return this.isLooped=e.isLooped,this.isPrivate=e.isPrivate,this.name=e.name,this.macroActions=e.macroActions.map(function(e){return l.Helper.createMacroAction(e)}),this},e.prototype.fromBinary=function(e){this.isLooped=e.readBoolean(),this.isPrivate=e.readBoolean(),this.name=e.readString();var t=e.readCompactLength();this.macroActions=[];for(var n=0;n'},i([r.assertUInt8,o("design:type",Number)],e.prototype,"id",void 0),e}()},RA5l:function(e,t,n){"use strict";var i=n("PutI"),o=n("C0+T");t.queue=new o.QueueScheduler(i.QueueAction)},RRVv:function(e,t,n){"use strict";var i=n("TToO").__extends,o=n("rCTf");t.ScalarObservable=function(e){function t(t,n){e.call(this),this.value=t,this.scheduler=n,this._isScalar=!0,n&&(this._isScalar=!1)}return i(t,e),t.create=function(e,n){return new t(e,n)},t.dispatch=function(e){var t=e.value,n=e.subscriber;e.done?n.complete():(n.next(t),n.closed||(e.done=!0,this.schedule(e)))},t.prototype._subscribe=function(e){var n=this.value,i=this.scheduler;if(i)return i.schedule(t.dispatch,0,{done:!1,value:n,subscriber:e});e.next(n),e.closed||e.complete()},t}(o.Observable)},RU1a:function(e,t,n){"use strict";var i=n("TToO").__extends,o=n("wAkD"),r=n("CURp");t.takeUntil=function(e){return function(t){return t.lift(new l(e))}};var l=function(){function e(e){this.notifier=e}return e.prototype.call=function(e,t){return t.subscribe(new u(e,this.notifier))},e}(),u=function(e){function t(t,n){e.call(this,t),this.notifier=n,this.add(r.subscribeToResult(this,n))}return i(t,e),t.prototype.notifyNext=function(e,t,n,i,o){this.complete()},t.prototype.notifyComplete=function(){},t}(o.OuterSubscriber)},RZVO:function(e,t,n){(function(e,i){var o;!function(r,l){var u="object"==typeof e&&e&&e.exports==("object"==typeof t&&t)&&e,a="object"==typeof i&&i;a.global===a&&(r=a);var s=[],c={},d=0,p=c,f=30,h=r._,y=/&(?:amp|lt|gt|quot|#39);/g,m=/\b__p \+= '';/g,g=/\b(__p \+=) '' \+/g,v=/(__e\(.*?\)|\b__t\)) \+\n'';/g,b=/\w*$/,k=RegExp("^"+(c.valueOf+"").replace(/[.*+?^${}()|[\]\\]/g,"\\$&").replace(/valueOf|for [^\]]+/g,".+?")+"$"),_=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,w=/<%=([\s\S]+?)%>/g,A=/($^)/,T=/[&<>"']/g,C=/['\n\r\t\u2028\u2029\\]/g,x=0,O=Math.ceil,S=s.concat,M=Math.floor,E=k.test(E=Object.getPrototypeOf)&&E,P=c.hasOwnProperty,I=s.push,R=c.toString,D=k.test(D=be.bind)&&D,N=k.test(N=Array.isArray)&&N,j=r.isFinite,L=r.isNaN,U=k.test(U=Object.keys)&&U,V=Math.max,F=Math.min,K=Math.random,B="[object Arguments]",H="[object Array]",W="[object Boolean]",z="[object Date]",$="[object Number]",q="[object Object]",G="[object RegExp]",Y="[object String]",Q=!!r.attachEvent,J=D&&!/\n|true/.test(D+Q),Z=D&&!J,X=U&&(Q||J),ee={"[object Function]":!1};ee[B]=ee[H]=ee[W]=ee[z]=ee[$]=ee[q]=ee[G]=ee[Y]=!0;var te={};te[H]=Array,te[W]=Boolean,te[z]=Date,te[q]=Object,te[$]=Number,te[G]=RegExp,te[Y]=String;var ne={boolean:!1,function:!0,object:!0,number:!1,string:!1,undefined:!1},ie={"\\":"\\","'":"'","\n":"n","\r":"r","\t":"t","\u2028":"u2028","\u2029":"u2029"};function oe(e){return e&&"object"==typeof e&&e.__wrapped__?e:this instanceof oe?void(this.__wrapped__=e):new oe(e)}oe.templateSettings={escape:/<%-([\s\S]+?)%>/g,evaluate:/<%([\s\S]+?)%>/g,interpolate:w,variable:"",imports:{_:oe}};var re=function(e){var t="var index, iterable = "+e.firstArg+", result = iterable;\nif (!iterable) return result;\n"+e.top+";\n";return e.arrays&&(t+="var length = iterable.length; index = -1;\nif ("+e.arrays+") {\n while (++index < length) {\n "+e.loop+"\n }\n}\nelse { "),e.isKeysFast&&e.useHas?t+="\n var ownIndex = -1,\n ownProps = objectTypes[typeof iterable] ? nativeKeys(iterable) : [],\n length = ownProps.length;\n\n while (++ownIndex < length) {\n index = ownProps[ownIndex];\n "+e.loop+"\n } ":(t+="\n for (index in iterable) {",e.useHas&&(t+="\n if (",e.useHas&&(t+="hasOwnProperty.call(iterable, index)"),t+=") { "),t+=e.loop+"; ",e.useHas&&(t+="\n }"),t+="\n } "),e.arrays&&(t+="\n}"),t+(e.bottom+";\nreturn result")},le={args:"object, source, guard",top:"var args = arguments,\n argsIndex = 0,\n argsLength = typeof guard == 'number' ? 2 : args.length;\nwhile (++argsIndex < argsLength) {\n iterable = args[argsIndex];\n if (iterable && objectTypes[typeof iterable]) {",loop:"if (typeof result[index] == 'undefined') result[index] = iterable[index]",bottom:" }\n}"},ue={args:"collection, callback, thisArg",top:"callback = callback && typeof thisArg == 'undefined' ? callback : createCallback(callback, thisArg)",arrays:"typeof length == 'number'",loop:"if (callback(iterable[index], index, collection) === false) return result"},ae={top:"if (!objectTypes[typeof iterable]) return result;\n"+ue.top,arrays:!1};function se(e,t,n){t||(t=0);var i=e.length,o=i-t>=(n||f);if(o)for(var r={},l=t-1;++l-1}return et(e,n,t)>-1}}function ce(e){return e.charCodeAt(0)}function de(e,t){var n=e.index,i=t.index;if((e=e.criteria)!==(t=t.criteria)){if(e>t||"undefined"==typeof e)return 1;if(e":">",'"':""","'":"'"},Se=Re(Oe),Me=he(le,{top:le.top.replace(";",";\nif (argsLength > 3 && typeof args[argsLength - 2] == 'function') {\n var callback = createCallback(args[--argsLength - 1], args[argsLength--], 2);\n} else if (argsLength > 2 && typeof args[argsLength - 1] == 'function') {\n callback = args[--argsLength];\n}"),loop:"result[index] = callback ? callback(result[index], iterable[index]) : iterable[index]"});function Ee(e,t,n,i,o,r){var u=e;if("function"==typeof t&&(i=n,n=t,t=!1),"function"==typeof n){n="undefined"==typeof i?n:fe(n,i,1);var a="undefined"!=typeof(u=n(u));a||(u=e)}var s=je(u);if(s){var c=R.call(u);if(!ee[c])return u;var d=Te(u)}if(!s||!t)return s&&!a?d?be(u):Me({},u):u;var p=te[c];switch(c){case W:case z:return a?u:new p(+u);case $:case Y:return a?u:new p(u);case G:return a?u:p(u.source,b.exec(u))}o||(o=[]),r||(r=[]);for(var f=o.length;f--;)if(o[f]==e)return r[f];return a||(u=d?p(u.length):{},d&&(P.call(e,"index")&&(u.index=e.index),P.call(e,"input")&&(u.input=e.input))),o.push(e),r.push(u),(d?ze:Ae)(a?u:e,function(e,i){u[i]=Ee(e,t,n,l,o,r)}),u}var Pe=he(le);function Ie(e){var t=[];return we(e,function(e,n){Ne(e)&&t.push(n)}),t.sort()}function Re(e){for(var t=-1,n=Ce(e),i=n.length,o={};++t-1}),u}function Ne(e){return"function"==typeof e}function je(e){return!!e&&ne[typeof e]}function Le(e){return"number"==typeof e||R.call(e)==$}Ne(/x/)&&(Ne=function(e){return e instanceof Function||"[object Function]"==R.call(e)});var Ue=E?function(e){if(!e||"object"!=typeof e)return!1;var t=e.valueOf,n="function"==typeof t&&(n=E(t))&&E(n);return n?e==n||E(e)==n&&!_e(e):xe(e)}:xe;function Ve(e){return"string"==typeof e||R.call(e)==Y}function Fe(e){for(var t=-1,n=Ce(e),i=n.length,o=Array(i);++t-1:ye(e,function(e){if(++i>=n)return!(r=e===t)}),r}function Be(e,t,n){var i=!0;if(t=fe(t,n),Te(e))for(var o=-1,r=e.length;++oo&&(o=u)}else t=!t&&Ve(e)?ce:fe(t,n),ye(e,function(e,n,r){var l=t(e,n,r);l>i&&(i=l,o=e)});return o}var Ge=$e;function Ye(e,t,n,i){var o=arguments.length<3;if(t=fe(t,i,4),Te(e)){var r=-1,l=e.length;for(o&&(n=e[++r]);++r>>1;n(e[l])=75;if(a)var s={};for(n&&(u=[],n=fe(n,i));++o2?D.call.apply(D,arguments):pe(e,t,be(arguments,2))}function rt(e){var t=be(arguments,1);return setTimeout(function(){e.apply(l,t)},1)}function lt(e){return e}function ut(e){ze(Ie(e),function(t){var n=oe[t]=e[t];oe.prototype[t]=function(){var e=[this.__wrapped__];return I.apply(e,arguments),new oe(n.apply(oe,e))}})}function at(){return this.__wrapped__}J&&u&&"function"==typeof setImmediate&&(rt=ot(setImmediate,r)),oe.after=function(e,t){return e<1?t():function(){if(--e<1)return t.apply(this,arguments)}},oe.assign=Me,oe.at=function(e){for(var t=-1,n=S.apply(s,be(arguments,1)),i=n.length,o=Array(i);++t1?0:(t=Ie(e),-1),i=t.length;++n=100,u=[],a=u;e:for(;++o3&&"function"==typeof o[l-2]?u=fe(o[--l-1],o[l--],2):l>2&&"function"==typeof o[l-1]&&(u=o[--l]);for(;++r'},t.prototype.getName=function(){return"DelayMacroAction"},o([l.assertUInt16,r("design:type",Number)],t.prototype,"delay",void 0),t}(u.MacroAction)},TToO:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.__extends=function(e,t){function n(){this.constructor=e}i(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)},n.d(t,"__assign",function(){return o}),t.__rest=function(e,t){var n={};for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&t.indexOf(i)<0&&(n[i]=e[i]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(i=Object.getOwnPropertySymbols(e);o=0;u--)(o=e[u])&&(l=(r<3?o(l):r>3?o(t,n,l):o(t,n))||l);return r>3&&l&&Object.defineProperty(t,n,l),l},t.__param=function(e,t){return function(n,i){t(n,i,e)}},t.__metadata=function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)},t.__awaiter=function(e,t,n,i){return new(n||(n=Promise))(function(o,r){function l(e){try{a(i.next(e))}catch(e){r(e)}}function u(e){try{a(i.throw(e))}catch(e){r(e)}}function a(e){e.done?o(e.value):new n(function(t){t(e.value)}).then(l,u)}a((i=i.apply(e,t||[])).next())})},t.__generator=function(e,t){var n,i,o,r,l={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return r={next:u(0),throw:u(1),return:u(2)},"function"==typeof Symbol&&(r[Symbol.iterator]=function(){return this}),r;function u(r){return function(u){return function(r){if(n)throw new TypeError("Generator is already executing.");for(;l;)try{if(n=1,i&&(o=i[2&r[0]?"return":r[0]?"throw":"next"])&&!(o=o.call(i,r[1])).done)return o;switch(i=0,o&&(r=[0,o.value]),r[0]){case 0:case 1:o=r;break;case 4:return l.label++,{value:r[1],done:!1};case 5:l.label++,i=r[1],r=[0];continue;case 7:r=l.ops.pop(),l.trys.pop();continue;default:if(!(o=(o=l.trys).length>0&&o[o.length-1])&&(6===r[0]||2===r[0])){l=0;continue}if(3===r[0]&&(!o||r[1]>o[0]&&r[1]1||a(e,t)})})}function a(e,t){try{(n=o[e](t)).value instanceof u?Promise.resolve(n.value.v).then(s,c):d(r[0][2],n)}catch(e){d(r[0][3],e)}var n}function s(e){a("next",e)}function c(e){a("throw",e)}function d(e,t){e(t),r.shift(),r.length&&a(r[0][0],r[0][1])}},t.__asyncDelegator=function(e){var t,n;return t={},i("next"),i("throw",function(e){throw e}),i("return"),t[Symbol.iterator]=function(){return this},t;function i(i,o){e[i]&&(t[i]=function(t){return(n=!n)?{value:u(e[i](t)),done:"return"===i}:o?o(t):t})}},t.__asyncValues=function(e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var t=e[Symbol.asyncIterator];return t?t.call(e):"function"==typeof r?r(e):e[Symbol.iterator]()},t.__makeTemplateObject=function(e,t){return Object.defineProperty?Object.defineProperty(e,"raw",{value:t}):e.raw=t,e},t.__importStar=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t},t.__importDefault=function(e){return e&&e.__esModule?e:{default:e}};var i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},o=Object.assign||function(e){for(var t,n=1,i=arguments.length;n=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}}}function l(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var i,o,r=n.call(e),l=[];try{for(;(void 0===t||t-- >0)&&!(i=r.next()).done;)l.push(i.value)}catch(e){o={error:e}}finally{try{i&&!i.done&&(n=r.return)&&n.call(r)}finally{if(o)throw o.error}}return l}function u(e){return this instanceof u?(this.v=e,this):new u(e)}},TfWX:function(e,t,n){"use strict";var i=n("TToO").__extends,o=n("EEr4"),r=n("IZVw");t.BehaviorSubject=function(e){function t(t){e.call(this),this._value=t}return i(t,e),Object.defineProperty(t.prototype,"value",{get:function(){return this.getValue()},enumerable:!0,configurable:!0}),t.prototype._subscribe=function(t){var n=e.prototype._subscribe.call(this,t);return n&&!n.closed&&t.next(this._value),n},t.prototype.getValue=function(){if(this.hasError)throw this.thrownError;if(this.closed)throw new r.ObjectUnsubscribedError;return this._value},t.prototype.next=function(t){e.prototype.next.call(this,this._value=t)},t}(o.Subject)},TyHZ:function(e,t){e.exports={isDefault:!1,abbreviation:"EMY",name:"Empty keymap",description:"None of the keys are bind to any key action. It is ideal if you want to start creating your keymap from the ground up.",layers:[{modules:[{id:0,pointerRole:"move",keyActions:[null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null]},{id:1,pointerRole:"move",keyActions:[null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null]}]},{modules:[{id:0,pointerRole:"move",keyActions:[null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null]},{id:1,pointerRole:"move",keyActions:[null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null]}]},{modules:[{id:0,pointerRole:"move",keyActions:[null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null]},{id:1,pointerRole:"move",keyActions:[null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null]}]},{modules:[{id:0,pointerRole:"move",keyActions:[null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null]},{id:1,pointerRole:"move",keyActions:[null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null]}]}]}},U15Z:function(e,t,n){"use strict";var i=n("TToO").__extends,o=n("VOfZ"),r=n("rCTf"),l=n("cdmN");t.IteratorObservable=function(e){function t(t,n){if(e.call(this),this.scheduler=n,null==t)throw new Error("iterator cannot be null.");this.iterator=function(e){var t=e[l.iterator];if(!t&&"string"==typeof e)return new u(e);if(!t&&void 0!==e.length)return new a(e);if(!t)throw new TypeError("object is not iterable");return e[l.iterator]()}(t)}return i(t,e),t.create=function(e,n){return new t(e,n)},t.dispatch=function(e){var t=e.index,n=e.iterator,i=e.subscriber;if(e.hasError)i.error(e.error);else{var o=n.next();o.done?i.complete():(i.next(o.value),e.index=t+1,i.closed?"function"==typeof n.return&&n.return():this.schedule(e))}},t.prototype._subscribe=function(e){var n=this.iterator,i=this.scheduler;if(i)return i.schedule(t.dispatch,0,{index:0,iterator:n,subscriber:e});for(;;){var o=n.next();if(o.done){e.complete();break}if(e.next(o.value),e.closed){"function"==typeof n.return&&n.return();break}}},t}(r.Observable);var u=function(){function e(e,t,n){void 0===t&&(t=0),void 0===n&&(n=e.length),this.str=e,this.idx=t,this.len=n}return e.prototype[l.iterator]=function(){return this},e.prototype.next=function(){return this.idxs?s:r:r}()),this.arr=e,this.idx=t,this.len=n}return e.prototype[l.iterator]=function(){return this},e.prototype.next=function(){return this.idx=2&&(n=!0),function(i){return i.lift(new r(e,t,n))}};var r=function(){function e(e,t,n){void 0===n&&(n=!1),this.accumulator=e,this.seed=t,this.hasSeed=n}return e.prototype.call=function(e,t){return t.subscribe(new l(e,this.accumulator,this.seed,this.hasSeed))},e}(),l=function(e){function t(t,n,i,o){e.call(this,t),this.accumulator=n,this._seed=i,this.hasSeed=o,this.index=0}return i(t,e),Object.defineProperty(t.prototype,"seed",{get:function(){return this._seed},set:function(e){this.hasSeed=!0,this._seed=e},enumerable:!0,configurable:!0}),t.prototype._next=function(e){if(this.hasSeed)return this._tryNext(e);this.seed=e,this.destination.next(e)},t.prototype._tryNext=function(e){var t,n=this.index++;try{t=this.accumulator(this.seed,e,n)}catch(e){this.destination.error(e)}this.seed=t,this.destination.next(t)},t}(o.Subscriber)},Uqr9:function(e,t,n){"use strict";var i=n("TToO").__extends,o=n("mmVS");t.pairwise=function(){return function(e){return e.lift(new r)}};var r=function(){function e(){}return e.prototype.call=function(e,t){return t.subscribe(new l(e))},e}(),l=function(e){function t(t){e.call(this,t),this.hasPrev=!1}return i(t,e),t.prototype._next=function(e){this.hasPrev?this.destination.next([this.prev,e]):this.hasPrev=!0,this.prev=e},t}(o.Subscriber)},UwVZ:function(e,t,n){"use strict";var i=n("TToO").__extends,o=n("mmVS"),r=n("8Z8y"),l=n("jBEF");t.takeLast=function(e){return function(t){return 0===e?new l.EmptyObservable:t.lift(new u(e))}};var u=function(){function e(e){if(this.total=e,this.total<0)throw new r.ArgumentOutOfRangeError}return e.prototype.call=function(e,t){return t.subscribe(new a(e,this.total))},e}(),a=function(e){function t(t,n){e.call(this,t),this.total=n,this.ring=new Array,this.count=0}return i(t,e),t.prototype._next=function(e){var t=this.ring,n=this.total,i=this.count++;t.length0)for(var n=this.count>=this.total?this.total:this.count,i=this.ring,o=0;o'},e.prototype.getKeymap=function(e){return this.keymaps.find(function(t){return e===t.abbreviation})},e.prototype.getMacro=function(e){return this.macros.find(function(t){return e===t.id})},e.prototype.recalculateConfigurationLength=function(){var e=new l.UhkBuffer;this.toBinary(e),this.userConfigurationLength=e.offset},e.prototype.setDefaultDeviceName=function(){this.deviceName&&0!==this.deviceName.trim().length||(this.deviceName="My UHK")},i([r.assertUInt16,o("design:type",Number)],e.prototype,"userConfigMajorVersion",void 0),i([r.assertUInt16,o("design:type",Number)],e.prototype,"userConfigMinorVersion",void 0),i([r.assertUInt16,o("design:type",Number)],e.prototype,"userConfigPatchVersion",void 0),i([r.assertUInt16,o("design:type",Number)],e.prototype,"userConfigurationLength",void 0),i([r.assertUInt16,o("design:type",Number)],e.prototype,"doubleTapSwitchLayerTimeout",void 0),i([r.assertUInt8,o("design:type",Number)],e.prototype,"iconsAndLayerTextsBrightness",void 0),i([r.assertUInt8,o("design:type",Number)],e.prototype,"alphanumericSegmentsBrightness",void 0),i([r.assertUInt8,o("design:type",Number)],e.prototype,"keyBacklightBrightness",void 0),i([r.assertUInt8,o("design:type",Number)],e.prototype,"mouseMoveInitialSpeed",void 0),i([r.assertUInt8,o("design:type",Number)],e.prototype,"mouseMoveAcceleration",void 0),i([r.assertUInt8,o("design:type",Number)],e.prototype,"mouseMoveDeceleratedSpeed",void 0),i([r.assertUInt8,o("design:type",Number)],e.prototype,"mouseMoveBaseSpeed",void 0),i([r.assertUInt8,o("design:type",Number)],e.prototype,"mouseMoveAcceleratedSpeed",void 0),i([r.assertUInt8,o("design:type",Number)],e.prototype,"mouseScrollInitialSpeed",void 0),i([r.assertUInt8,o("design:type",Number)],e.prototype,"mouseScrollAcceleration",void 0),i([r.assertUInt8,o("design:type",Number)],e.prototype,"mouseScrollDeceleratedSpeed",void 0),i([r.assertUInt8,o("design:type",Number)],e.prototype,"mouseScrollBaseSpeed",void 0),i([r.assertUInt8,o("design:type",Number)],e.prototype,"mouseScrollAcceleratedSpeed",void 0),e}()},W2nU:function(e,t){var n,i,o=e.exports={};function r(){throw new Error("setTimeout has not been defined")}function l(){throw new Error("clearTimeout has not been defined")}function u(e){if(n===setTimeout)return setTimeout(e,0);if((n===r||!n)&&setTimeout)return n=setTimeout,setTimeout(e,0);try{return n(e,0)}catch(t){try{return n.call(null,e,0)}catch(t){return n.call(this,e,0)}}}!function(){try{n="function"==typeof setTimeout?setTimeout:r}catch(e){n=r}try{i="function"==typeof clearTimeout?clearTimeout:l}catch(e){i=l}}();var a,s=[],c=!1,d=-1;function p(){c&&a&&(c=!1,a.length?s=a.concat(s):d=-1,s.length&&f())}function f(){if(!c){var e=u(p);c=!0;for(var t=s.length;t;){for(a=s,s=[];++d1)for(var n=1;n ");else if("object"==typeof t){var o=[];for(var r in t)if(t.hasOwnProperty(r)){var l=t[r];o.push(r+":"+("string"==typeof l?JSON.stringify(l):ee(l)))}i="{"+o.join(", ")+"}"}return"StaticInjectorError"+(n?"("+n+")":"")+"["+i+"]: "+e.replace(ye,"\n ")}function ke(e,t){return new Error(be(e,t))}var _e="ngDebugContext",we="ngOriginalError",Ae="ngErrorLogger";function Te(e){return e[_e]}function Ce(e){return e[we]}function xe(e){for(var t=[],n=1;n1?" ("+function(e){for(var t=[],n=0;n-1)return t.push(e[n]),t;t.push(e[n])}return t}(e.slice().reverse()).map(function(e){return ee(e.token)}).join(" -> ")+")":""}function Me(e,t,n,i){var o=[t],r=n(o),l=i?function(e,t){var n=r+" caused by: "+(t instanceof Error?t.message:t),i=Error(n);return i[we]=t,i}(0,i):Error(r);return l.addKey=Ee,l.keys=o,l.injectors=[e],l.constructResolvingMessage=n,l[we]=i,l}function Ee(e,t){this.injectors.push(e),this.keys.push(t),this.message=this.constructResolvingMessage(this.keys)}function Pe(e,t){for(var n=[],i=0,o=t.length;i=this._providers.length)throw function(e){return Error("Index "+e+" is out-of-bounds.")}(e);return this._providers[e]},e.prototype._new=function(e){if(this._constructionCounter++>this._getMaxNumberOfObjects())throw Me(this,e.key,function(e){return"Cannot instantiate cyclic dependency!"+Se(e)});return this._instantiateProvider(e)},e.prototype._getMaxNumberOfObjects=function(){return this.objs.length},e.prototype._instantiateProvider=function(e){if(e.multiProvider){for(var t=new Array(e.resolvedFactories.length),n=0;n0)e._bootstrapComponents.forEach(function(e){return t.bootstrap(e)});else{if(!e.instance.ngDoBootstrap)throw new Error("The module "+ee(e.instance.constructor)+' was bootstrapped, but it does not declare "@NgModule.bootstrap" components nor a "ngDoBootstrap" method. Please define one of these.');e.instance.ngDoBootstrap(t)}this._modules.push(e)},e.prototype.onDestroy=function(e){this._destroyListeners.push(e)},Object.defineProperty(e.prototype,"injector",{get:function(){return this._injector},enumerable:!0,configurable:!0}),e.prototype.destroy=function(){if(this._destroyed)throw new Error("The platform has already been destroyed!");this._modules.slice().forEach(function(e){return e.destroy()}),this._destroyListeners.forEach(function(e){return e()}),this._destroyed=!0},Object.defineProperty(e.prototype,"destroyed",{get:function(){return this._destroyed},enumerable:!0,configurable:!0}),e}();function hn(e,t){return Array.isArray(t)?t.reduce(hn,e):Object(i.__assign)({},e,t)}var yn=function(){function e(e,t,n,i,u,a){var s=this;this._zone=e,this._console=t,this._injector=n,this._exceptionHandler=i,this._componentFactoryResolver=u,this._initStatus=a,this._bootstrapListeners=[],this._views=[],this._runningTick=!1,this._enforceNoNewChanges=!1,this._stable=!0,this.componentTypes=[],this.components=[],this._enforceNoNewChanges=ln(),this._zone.onMicrotaskEmpty.subscribe({next:function(){s._zone.run(function(){s.tick()})}});var c=new o.Observable(function(e){s._stable=s._zone.isStable&&!s._zone.hasPendingMacrotasks&&!s._zone.hasPendingMicrotasks,s._zone.runOutsideAngular(function(){e.next(s._stable),e.complete()})}),d=new o.Observable(function(e){var t;s._zone.runOutsideAngular(function(){t=s._zone.onStable.subscribe(function(){Ht.assertNotInAngularZone(),Z(function(){s._stable||s._zone.hasPendingMacrotasks||s._zone.hasPendingMicrotasks||(s._stable=!0,e.next(!0))})})});var n=s._zone.onUnstable.subscribe(function(){Ht.assertInAngularZone(),s._stable&&(s._stable=!1,s._zone.runOutsideAngular(function(){e.next(!1)}))});return function(){t.unsubscribe(),n.unsubscribe()}});this.isStable=Object(r.merge)(c,l.share.call(d))}return e.prototype.bootstrap=function(e,t){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=e instanceof kt?e:this._componentFactoryResolver.resolveComponentFactory(e),this.componentTypes.push(n.componentType);var o=n instanceof St?null:this._injector.get(Mt),r=n.create(ue.NULL,[],t||n.selector,o);r.onDestroy(function(){i._unloadComponent(r)});var l=r.injector.get(Qt,null);return l&&r.injector.get(Jt).registerApplication(r.location.nativeElement,l),this._loadComponent(r),ln()&&this._console.log("Angular is running in the development mode. Call enableProdMode() to enable the production mode."),r},e.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(e){return e.detectChanges()}),this._enforceNoNewChanges&&this._views.forEach(function(e){return e.checkNoChanges()})}catch(e){this._zone.runOutsideAngular(function(){return t._exceptionHandler.handleError(e)})}finally{this._runningTick=!1,Vt(n)}},e.prototype.attachView=function(e){var t=e;this._views.push(t),t.attachToAppRef(this)},e.prototype.detachView=function(e){var t=e;mn(this._views,t),t.detachFromAppRef()},e.prototype._loadComponent=function(e){this.attachView(e.hostView),this.tick(),this.components.push(e),this._injector.get(dt,[]).concat(this._bootstrapListeners).forEach(function(t){return t(e)})},e.prototype._unloadComponent=function(e){this.detachView(e.hostView),mn(this.components,e)},e.prototype.ngOnDestroy=function(){this._views.slice().forEach(function(e){return e.destroy()})},Object.defineProperty(e.prototype,"viewCount",{get:function(){return this._views.length},enumerable:!0,configurable:!0}),e._tickScope=Ut("ApplicationRef#tick()"),e}();function mn(e,t){var n=e.indexOf(t);n>-1&&e.splice(n,1)}var gn=function(e,t,n,i,o,r){this.id=e,this.templateUrl=t,this.slotCount=n,this.encapsulation=i,this.styles=o,this.animations=r},vn=function(){},bn=function(){},kn=function(){},_n=function(){},wn=function(){var e={Important:1,DashCase:2};return e[e.Important]="Important",e[e.DashCase]="DashCase",e}(),An=function(){},Tn=function(e){this.nativeElement=e},Cn=function(){},xn=new Map;function On(e,t){var n=xn.get(e);if(n)throw new Error("Duplicate module registered for "+e+" - "+n.moduleType.name+" vs "+t.moduleType.name);xn.set(e,t)}function Sn(e){var t=xn.get(e);if(!t)throw new Error("No module with ID "+e+" loaded");return t}var Mn=function(){function e(){this.dirty=!0,this._results=[],this.changes=new Bt,this.length=0}return e.prototype.map=function(e){return this._results.map(e)},e.prototype.filter=function(e){return this._results.filter(e)},e.prototype.find=function(e){return this._results.find(e)},e.prototype.reduce=function(e,t){return this._results.reduce(e,t)},e.prototype.forEach=function(e){this._results.forEach(e)},e.prototype.some=function(e){return this._results.some(e)},e.prototype.toArray=function(){return this._results.slice()},e.prototype[J()]=function(){return this._results[J()]()},e.prototype.toString=function(){return this._results.toString()},e.prototype.reset=function(e){this._results=function e(t){return t.reduce(function(t,n){var i=Array.isArray(n)?e(n):n;return t.concat(i)},[])}(e),this.dirty=!1,this.length=this._results.length,this.last=this._results[this.length-1],this.first=this._results[0]},e.prototype.notifyOnChanges=function(){this.changes.emit(this)},e.prototype.setDirty=function(){this.dirty=!0},e.prototype.destroy=function(){this.changes.complete(),this.changes.unsubscribe()},e}(),En=function(){},Pn={factoryPathPrefix:"",factoryPathSuffix:".ngfactory"},In=function(){function e(e,t){this._compiler=e,this._config=t||Pn}return e.prototype.load=function(e){return this._compiler instanceof mt?this.loadFactory(e):this.loadAndCompile(e)},e.prototype.loadAndCompile=function(e){var t=this,i=e.split("#"),o=i[0],r=i[1];return void 0===r&&(r="default"),n("Jnfr")(o).then(function(e){return e[r]}).then(function(e){return Rn(e,o,r)}).then(function(e){return t._compiler.compileModuleAsync(e)})},e.prototype.loadFactory=function(e){var t=e.split("#"),i=t[0],o=t[1],r="NgFactory";return void 0===o&&(o="default",r=""),n("Jnfr")(this._config.factoryPathPrefix+i+this._config.factoryPathSuffix).then(function(e){return e[o+r]}).then(function(e){return Rn(e,i,o)})},e}();function Rn(e,t,n){if(!e)throw new Error("Cannot find '"+n+"' in '"+t+"'");return e}var Dn=function(){},Nn=function(){},jn=function(){},Ln=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Object(i.__extends)(t,e),t}(jn),Un=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Object(i.__extends)(t,e),t}(Ln),Vn=function(){function e(e,t,n){this._debugContext=n,this.nativeNode=e,t&&t instanceof Fn?t.addChild(this):this.parent=null,this.listeners=[]}return Object.defineProperty(e.prototype,"injector",{get:function(){return this._debugContext.injector},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"componentInstance",{get:function(){return this._debugContext.component},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"context",{get:function(){return this._debugContext.context},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"references",{get:function(){return this._debugContext.references},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"providerTokens",{get:function(){return this._debugContext.providerTokens},enumerable:!0,configurable:!0}),e}(),Fn=function(e){function t(t,n,i){var o=e.call(this,t,n,i)||this;return o.properties={},o.attributes={},o.classes={},o.styles={},o.childNodes=[],o.nativeElement=t,o}return Object(i.__extends)(t,e),t.prototype.addChild=function(e){e&&(this.childNodes.push(e),e.parent=this)},t.prototype.removeChild=function(e){var t=this.childNodes.indexOf(e);-1!==t&&(e.parent=null,this.childNodes.splice(t,1))},t.prototype.insertChildrenAfter=function(e,t){var n,i=this,o=this.childNodes.indexOf(e);-1!==o&&((n=this.childNodes).splice.apply(n,[o+1,0].concat(t)),t.forEach(function(e){e.parent&&e.parent.removeChild(e),e.parent=i}))},t.prototype.insertBefore=function(e,t){var n=this.childNodes.indexOf(e);-1===n?this.addChild(t):(t.parent&&t.parent.removeChild(t),t.parent=this,this.childNodes.splice(n,0,t))},t.prototype.query=function(e){return this.queryAll(e)[0]||null},t.prototype.queryAll=function(e){var t=[];return Bn(this,e,t),t},t.prototype.queryAllNodes=function(e){var t=[];return Hn(this,e,t),t},Object.defineProperty(t.prototype,"children",{get:function(){return this.childNodes.filter(function(e){return e instanceof t})},enumerable:!0,configurable:!0}),t.prototype.triggerEventHandler=function(e,t){this.listeners.forEach(function(n){n.name==e&&n.callback(t)})},t}(Vn);function Kn(e){return e.map(function(e){return e.nativeElement})}function Bn(e,t,n){e.childNodes.forEach(function(e){e instanceof Fn&&(t(e)&&n.push(e),Bn(e,t,n))})}function Hn(e,t,n){e instanceof Fn&&e.childNodes.forEach(function(e){t(e)&&n.push(e),e instanceof Fn&&Hn(e,t,n)})}var Wn=new Map;function zn(e){return Wn.get(e)||null}function $n(e){Wn.set(e.nativeNode,e)}function qn(e,t){var n=Qn(e),i=Qn(t);return n&&i?function(e,t,n){for(var i=e[J()](),o=t[J()]();;){var r=i.next(),l=o.next();if(r.done&&l.done)return!0;if(r.done||l.done)return!1;if(!n(r.value,l.value))return!1}}(e,t,qn):!(n||!e||"object"!=typeof e&&"function"!=typeof e||i||!t||"object"!=typeof t&&"function"!=typeof t)||X(e,t)}var Gn=function(){function e(e){this.wrapped=e}return e.wrap=function(t){return new e(t)},e.unwrap=function(t){return e.isWrapped(t)?t.wrapped:t},e.isWrapped=function(t){return t instanceof e},e}(),Yn=function(){function e(e,t,n){this.previousValue=e,this.currentValue=t,this.firstChange=n}return e.prototype.isFirstChange=function(){return this.firstChange},e}();function Qn(e){return!!Jn(e)&&(Array.isArray(e)||!(e instanceof Map)&&J()in e)}function Jn(e){return null!==e&&("function"==typeof e||"object"==typeof e)}var Zn=function(){function e(){}return e.prototype.supports=function(e){return Qn(e)},e.prototype.create=function(e){return new ei(e)},e}(),Xn=function(e,t){return t},ei=function(){function e(e){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=e||Xn}return e.prototype.forEachItem=function(e){var t;for(t=this._itHead;null!==t;t=t._next)e(t)},e.prototype.forEachOperation=function(e){for(var t=this._itHead,n=this._removalsHead,i=0,o=null;t||n;){var r=!n||t&&t.currentIndex=n.length)&&(t=n.length-1),t<0)return null;var i=n[t];return i.viewContainerParent=null,Fo(n,t),Ii.dirtyParentQueries(i),Uo(i),i}function Lo(e,t,n){var i=t?Xi(t,t.def.lastRenderRootNode):e.renderElement;so(n,2,n.renderer.parentNode(i),n.renderer.nextSibling(i),void 0)}function Uo(e){so(e,3,null,null,void 0)}function Vo(e,t,n){t>=e.length?e.push(n):e.splice(t,0,n)}function Fo(e,t){t>=e.length-1?e.pop():e.splice(t,1)}var Ko=new Object;function Bo(e,t,n,i,o,r){return new Wo(e,t,n,i,o,r)}function Ho(e){return e.viewDefFactory}var Wo=function(e){function t(t,n,i,o,r,l){var u=e.call(this)||this;return u.selector=t,u.componentType=n,u._inputs=o,u._outputs=r,u.ngContentSelectors=l,u.viewDefFactory=i,u}return Object(i.__extends)(t,e),Object.defineProperty(t.prototype,"inputs",{get:function(){var e=[],t=this._inputs;for(var n in t)e.push({propName:n,templateName:t[n]});return e},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"outputs",{get:function(){var e=[];for(var t in this._outputs)e.push({propName:t,templateName:this._outputs[t]});return e},enumerable:!0,configurable:!0}),t.prototype.create=function(e,t,n,i){if(!i)throw new Error("ngModule should be provided");var o=ao(this.viewDefFactory),r=o.nodes[0].element.componentProvider.nodeIndex,l=Ii.createRootView(e,t||[],n,o,i,Ko),u=Si(l,r).instance;return n&&l.renderer.setAttribute(Oi(l,0).renderElement,"ng-version",V.full),new zo(l,new Yo(l),u)},t}(kt),zo=function(e){function t(t,n,i){var o=e.call(this)||this;return o._view=t,o._viewRef=n,o._component=i,o._elDef=o._view.def.nodes[0],o.hostView=n,o.changeDetectorRef=n,o.instance=i,o}return Object(i.__extends)(t,e),Object.defineProperty(t.prototype,"location",{get:function(){return new Tn(Oi(this._view,this._elDef.nodeIndex).renderElement)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"injector",{get:function(){return new Xo(this._view,this._elDef)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"componentType",{get:function(){return this._component.constructor},enumerable:!0,configurable:!0}),t.prototype.destroy=function(){this._viewRef.destroy()},t.prototype.onDestroy=function(e){this._viewRef.onDestroy(e)},t}(bt);function $o(e,t,n){return new qo(e,t,n)}var qo=function(){function e(e,t,n){this._view=e,this._elDef=t,this._data=n,this._embeddedViews=[]}return Object.defineProperty(e.prototype,"element",{get:function(){return new Tn(this._data.renderElement)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"injector",{get:function(){return new Xo(this._view,this._elDef)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"parentInjector",{get:function(){for(var e=this._view,t=this._elDef.parent;!t&&e;)t=Zi(e),e=e.parent;return e?new Xo(e,t):new Xo(this._view,null)},enumerable:!0,configurable:!0}),e.prototype.clear=function(){for(var e=this._embeddedViews.length-1;e>=0;e--){var t=jo(this._data,e);Ii.destroyView(t)}},e.prototype.get=function(e){var t=this._embeddedViews[e];if(t){var n=new Yo(t);return n.attachToViewContainerRef(this),n}return null},Object.defineProperty(e.prototype,"length",{get:function(){return this._embeddedViews.length},enumerable:!0,configurable:!0}),e.prototype.createEmbeddedView=function(e,t,n){var i=e.createEmbeddedView(t||{});return this.insert(i,n),i},e.prototype.createComponent=function(e,t,n,i,o){var r=n||this.parentInjector;o||e instanceof St||(o=r.get(Mt));var l=e.create(r,i,void 0,o);return this.insert(l.hostView,t),l},e.prototype.insert=function(e,t){if(e.destroyed)throw new Error("Cannot insert a destroyed View in a ViewContainer!");var n,i,o,r,l=e;return o=l._view,r=(n=this._data).viewContainer._embeddedViews,null!==(i=t)&&void 0!==i||(i=r.length),o.viewContainerParent=this._view,Vo(r,i,o),function(e,t){var n=Ji(t);if(n&&n!==e&&!(16&t.state)){t.state|=16;var i=n.template._projectedViews;i||(i=n.template._projectedViews=[]),i.push(t),function(e,n){if(!(4&n.flags)){t.parent.def.nodeFlags|=4,n.flags|=4;for(var i=n.parent;i;)i.childFlags|=4,i=i.parent}}(0,t.parentNodeDef)}}(n,o),Ii.dirtyParentQueries(o),Lo(n,i>0?r[i-1]:null,o),l.attachToViewContainerRef(this),e},e.prototype.move=function(e,t){if(e.destroyed)throw new Error("Cannot move a destroyed View in a ViewContainer!");var n,i,o,r,l,u=this._embeddedViews.indexOf(e._view);return o=t,l=(r=(n=this._data).viewContainer._embeddedViews)[i=u],Fo(r,i),null==o&&(o=r.length),Vo(r,o,l),Ii.dirtyParentQueries(l),Uo(l),Lo(n,o>0?r[o-1]:null,l),e},e.prototype.indexOf=function(e){return this._embeddedViews.indexOf(e._view)},e.prototype.remove=function(e){var t=jo(this._data,e);t&&Ii.destroyView(t)},e.prototype.detach=function(e){var t=jo(this._data,e);return t?new Yo(t):null},e}();function Go(e){return new Yo(e)}var Yo=function(){function e(e){this._view=e,this._viewContainerRef=null,this._appRef=null}return Object.defineProperty(e.prototype,"rootNodes",{get:function(){return so(this._view,0,void 0,void 0,e=[]),e;var e},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"context",{get:function(){return this._view.context},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"destroyed",{get:function(){return 0!=(128&this._view.state)},enumerable:!0,configurable:!0}),e.prototype.markForCheck=function(){Gi(this._view)},e.prototype.detach=function(){this._view.state&=-5},e.prototype.detectChanges=function(){var e=this._view.root.rendererFactory;e.begin&&e.begin();try{Ii.checkAndUpdateView(this._view)}finally{e.end&&e.end()}},e.prototype.checkNoChanges=function(){Ii.checkNoChangesView(this._view)},e.prototype.reattach=function(){this._view.state|=4},e.prototype.onDestroy=function(e){this._view.disposables||(this._view.disposables=[]),this._view.disposables.push(e)},e.prototype.destroy=function(){this._appRef?this._appRef.detachView(this):this._viewContainerRef&&this._viewContainerRef.detach(this._viewContainerRef.indexOf(this)),Ii.destroyView(this._view)},e.prototype.detachFromAppRef=function(){this._appRef=null,Uo(this._view),Ii.dirtyParentQueries(this._view)},e.prototype.attachToAppRef=function(e){if(this._viewContainerRef)throw new Error("This view is already attached to a ViewContainer!");this._appRef=e},e.prototype.attachToViewContainerRef=function(e){if(this._appRef)throw new Error("This view is already attached directly to the ApplicationRef!");this._viewContainerRef=e},e}();function Qo(e,t){return new Jo(e,t)}var Jo=function(e){function t(t,n){var i=e.call(this)||this;return i._parentView=t,i._def=n,i}return Object(i.__extends)(t,e),t.prototype.createEmbeddedView=function(e){return new Yo(Ii.createEmbeddedView(this._parentView,this._def,this._def.element.template,e))},Object.defineProperty(t.prototype,"elementRef",{get:function(){return new Tn(Oi(this._parentView,this._def.nodeIndex).renderElement)},enumerable:!0,configurable:!0}),t}(Dn);function Zo(e,t){return new Xo(e,t)}var Xo=function(){function e(e,t){this.view=e,this.elDef=t}return e.prototype.get=function(e,t){return void 0===t&&(t=ue.THROW_IF_NOT_FOUND),Ii.resolveDep(this.view,this.elDef,!!this.elDef&&0!=(33554432&this.elDef.flags),{flags:0,token:e,tokenKey:Ui(e)},t)},e}();function er(e,t){var n=e.def.nodes[t];if(1&n.flags){var i=Oi(e,n.nodeIndex);return n.element.template?i.template:i.renderElement}if(2&n.flags)return xi(e,n.nodeIndex).renderText;if(20240&n.flags)return Si(e,n.nodeIndex).instance;throw new Error("Illegal state: read nodeValue for node index "+t)}function tr(e){return new nr(e.renderer)}var nr=function(){function e(e){this.delegate=e}return e.prototype.selectRootElement=function(e){return this.delegate.selectRootElement(e)},e.prototype.createElement=function(e,t){var n=mo(t),i=this.delegate.createElement(n[1],n[0]);return e&&this.delegate.appendChild(e,i),i},e.prototype.createViewRoot=function(e){return e},e.prototype.createTemplateAnchor=function(e){var t=this.delegate.createComment("");return e&&this.delegate.appendChild(e,t),t},e.prototype.createText=function(e,t){var n=this.delegate.createText(t);return e&&this.delegate.appendChild(e,n),n},e.prototype.projectNodes=function(e,t){for(var n=0;n0,t.provider.value,t.provider.deps);if(t.outputs.length)for(var i=0;i0,i=t.provider;switch(201347067&t.flags){case 512:return _r(e,t.parent,n,i.value,i.deps);case 1024:return function(e,t,n,i,o){var r=o.length;switch(r){case 0:return i();case 1:return i(Ar(e,t,n,o[0]));case 2:return i(Ar(e,t,n,o[0]),Ar(e,t,n,o[1]));case 3:return i(Ar(e,t,n,o[0]),Ar(e,t,n,o[1]),Ar(e,t,n,o[2]));default:for(var l=Array(r),u=0;u0)s=y,Wr(y)||(c=y);else for(;s&&h===s.nodeIndex+s.childCount;){var v=s.parent;v&&(v.childFlags|=s.childFlags,v.childMatchedQueries|=s.childMatchedQueries),c=(s=v)&&Wr(s)?s.renderParent:s}}return{factory:null,nodeFlags:l,rootNodeFlags:u,nodeMatchedQueries:a,flags:e,nodes:t,updateDirectives:n||ji,updateRenderer:i||ji,handleEvent:function(e,n,i,o){return t[n].element.handleEvent(e,i,o)},bindingCount:o,outputCount:r,lastRenderRootNode:f}}function Wr(e){return 0!=(1&e.flags)&&null===e.element.name}function zr(e,t,n){var i=t.element&&t.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 "+t.nodeIndex+"!")}if(20224&t.flags&&0==(1&(e?e.flags:0)))throw new Error("Illegal State: StaticProvider/Directive nodes need to be children of elements or anchors, at index "+t.nodeIndex+"!");if(t.query){if(67108864&t.flags&&(!e||0==(16384&e.flags)))throw new Error("Illegal State: Content Query nodes need to be children of directives, at index "+t.nodeIndex+"!");if(134217728&t.flags&&e)throw new Error("Illegal State: View Query nodes have to be top level nodes, at index "+t.nodeIndex+"!")}if(t.childCount){var o=e?e.nodeIndex+e.childCount:n-1;if(t.nodeIndex<=o&&t.nodeIndex+t.childCount>o)throw new Error("Illegal State: childCount of node leads outside of parent, at index "+t.nodeIndex+"!")}}function $r(e,t,n,i){var o=Yr(e.root,e.renderer,e,t,n);return Qr(o,e.component,i),Jr(o),o}function qr(e,t,n){var i=Yr(e,e.renderer,null,null,t);return Qr(i,n,n),Jr(i),i}function Gr(e,t,n,i){var o,r=t.element.componentRendererType;return o=r?e.root.rendererFactory.createRenderer(i,r):e.root.renderer,Yr(e.root,o,e,t.element.componentProvider,n)}function Yr(e,t,n,i,o){var r=new Array(o.nodes.length),l=o.outputCount?new Array(o.outputCount):null;return{def:o,parent:n,viewContainerParent:null,parentNodeDef:i,context:null,component:null,nodes:r,state:13,root:e,renderer:t,oldValues:new Array(o.bindingCount),disposables:l,initIndex:-1}}function Qr(e,t,n){e.component=t,e.context=n}function Jr(e){var t;to(e)&&(t=Oi(e.parent,e.parentNodeDef.parent.nodeIndex).renderElement);for(var n=e.def,i=e.nodes,o=0;o0&&So(e,t,0,n)&&(f=!0),p>1&&So(e,t,1,i)&&(f=!0),p>2&&So(e,t,2,o)&&(f=!0),p>3&&So(e,t,3,r)&&(f=!0),p>4&&So(e,t,4,l)&&(f=!0),p>5&&So(e,t,5,u)&&(f=!0),p>6&&So(e,t,6,a)&&(f=!0),p>7&&So(e,t,7,s)&&(f=!0),p>8&&So(e,t,8,c)&&(f=!0),p>9&&So(e,t,9,d)&&(f=!0),f}(e,t,n,i,o,r,l,u,a,s,c,d);case 2:return function(e,t,n,i,o,r,l,u,a,s,c,d){var p=!1,f=t.bindings,h=f.length;if(h>0&&$i(e,t,0,n)&&(p=!0),h>1&&$i(e,t,1,i)&&(p=!0),h>2&&$i(e,t,2,o)&&(p=!0),h>3&&$i(e,t,3,r)&&(p=!0),h>4&&$i(e,t,4,l)&&(p=!0),h>5&&$i(e,t,5,u)&&(p=!0),h>6&&$i(e,t,6,a)&&(p=!0),h>7&&$i(e,t,7,s)&&(p=!0),h>8&&$i(e,t,8,c)&&(p=!0),h>9&&$i(e,t,9,d)&&(p=!0),p){var y=t.text.prefix;h>0&&(y+=Br(n,f[0])),h>1&&(y+=Br(i,f[1])),h>2&&(y+=Br(o,f[2])),h>3&&(y+=Br(r,f[3])),h>4&&(y+=Br(l,f[4])),h>5&&(y+=Br(u,f[5])),h>6&&(y+=Br(a,f[6])),h>7&&(y+=Br(s,f[7])),h>8&&(y+=Br(c,f[8])),h>9&&(y+=Br(d,f[9]));var m=xi(e,t.nodeIndex).renderText;e.renderer.setValue(m,y)}return p}(e,t,n,i,o,r,l,u,a,s,c,d);case 16384:return function(e,t,n,i,o,r,l,u,a,s,c,d){var p=Si(e,t.nodeIndex),f=p.instance,h=!1,y=void 0,m=t.bindings.length;return m>0&&zi(e,t,0,n)&&(h=!0,y=Cr(e,p,t,0,n,y)),m>1&&zi(e,t,1,i)&&(h=!0,y=Cr(e,p,t,1,i,y)),m>2&&zi(e,t,2,o)&&(h=!0,y=Cr(e,p,t,2,o,y)),m>3&&zi(e,t,3,r)&&(h=!0,y=Cr(e,p,t,3,r,y)),m>4&&zi(e,t,4,l)&&(h=!0,y=Cr(e,p,t,4,l,y)),m>5&&zi(e,t,5,u)&&(h=!0,y=Cr(e,p,t,5,u,y)),m>6&&zi(e,t,6,a)&&(h=!0,y=Cr(e,p,t,6,a,y)),m>7&&zi(e,t,7,s)&&(h=!0,y=Cr(e,p,t,7,s,y)),m>8&&zi(e,t,8,c)&&(h=!0,y=Cr(e,p,t,8,c,y)),m>9&&zi(e,t,9,d)&&(h=!0,y=Cr(e,p,t,9,d,y)),y&&f.ngOnChanges(y),65536&t.flags&&Ci(e,256,t.nodeIndex)&&f.ngOnInit(),262144&t.flags&&f.ngDoCheck(),h}(e,t,n,i,o,r,l,u,a,s,c,d);case 32:case 64:case 128:return function(e,t,n,i,o,r,l,u,a,s,c,d){var p=t.bindings,f=!1,h=p.length;if(h>0&&$i(e,t,0,n)&&(f=!0),h>1&&$i(e,t,1,i)&&(f=!0),h>2&&$i(e,t,2,o)&&(f=!0),h>3&&$i(e,t,3,r)&&(f=!0),h>4&&$i(e,t,4,l)&&(f=!0),h>5&&$i(e,t,5,u)&&(f=!0),h>6&&$i(e,t,6,a)&&(f=!0),h>7&&$i(e,t,7,s)&&(f=!0),h>8&&$i(e,t,8,c)&&(f=!0),h>9&&$i(e,t,9,d)&&(f=!0),f){var y=Mi(e,t.nodeIndex),m=void 0;switch(201347067&t.flags){case 32:m=new Array(p.length),h>0&&(m[0]=n),h>1&&(m[1]=i),h>2&&(m[2]=o),h>3&&(m[3]=r),h>4&&(m[4]=l),h>5&&(m[5]=u),h>6&&(m[6]=a),h>7&&(m[7]=s),h>8&&(m[8]=c),h>9&&(m[9]=d);break;case 64:m={},h>0&&(m[p[0].name]=n),h>1&&(m[p[1].name]=i),h>2&&(m[p[2].name]=o),h>3&&(m[p[3].name]=r),h>4&&(m[p[4].name]=l),h>5&&(m[p[5].name]=u),h>6&&(m[p[6].name]=a),h>7&&(m[p[7].name]=s),h>8&&(m[p[8].name]=c),h>9&&(m[p[9].name]=d);break;case 128:var g=n;switch(h){case 1:m=g.transform(n);break;case 2:m=g.transform(i);break;case 3:m=g.transform(i,o);break;case 4:m=g.transform(i,o,r);break;case 5:m=g.transform(i,o,r,l);break;case 6:m=g.transform(i,o,r,l,u);break;case 7:m=g.transform(i,o,r,l,u,a);break;case 8:m=g.transform(i,o,r,l,u,a,s);break;case 9:m=g.transform(i,o,r,l,u,a,s,c);break;case 10:m=g.transform(i,o,r,l,u,a,s,c,d)}}y.value=m}return f}(e,t,n,i,o,r,l,u,a,s,c,d);default:throw"unreachable"}}(e,t,i,o,r,l,u,a,s,c,d,p):function(e,t,n){switch(201347067&t.flags){case 1:return function(e,t,n){for(var i=!1,o=0;o0&&qi(e,t,0,n),p>1&&qi(e,t,1,i),p>2&&qi(e,t,2,o),p>3&&qi(e,t,3,r),p>4&&qi(e,t,4,l),p>5&&qi(e,t,5,u),p>6&&qi(e,t,6,a),p>7&&qi(e,t,7,s),p>8&&qi(e,t,8,c),p>9&&qi(e,t,9,d)}(e,t,i,o,r,l,u,a,s,c,d,p):function(e,t,n){for(var i=0;i0&&cu(n[t-1],i.next),n.splice(t,1),function(e){for(var t=e;t;){var n=null;if(t.views&&t.views.length?n=t.views[0].data:t.child?n=t.child:t.next&&(pu(t),n=t.next),null==n){for(;t&&!t.next;)pu(t),t=du(t,e);pu(t||e),n=t&&t.next}t=n}}(i.data),au(e,i,!1),e.query&&e.query.removeView(e,i,t),i}function cu(e,t){e.next=t,e.data.next=t?t.data:null}function du(e,t){var n;return(n=e.node)&&2==(3&n.flags)?n.parent.data:e.parent===t?null:e.parent}function pu(e){if(e.cleanup){for(var t=e.cleanup,n=0;n=bu.length?bu[e]=null:u.staticData=bu[e],vu?(_u=null,gu.view!==ku&&2!=(3&gu.flags)||(ngDevMode&&nu(gu.child,null,"previousNode.child"),gu.child=u)):gu&&(ngDevMode&&nu(gu.next,null,"previousNode.next"),gu.next=u)),gu=u,vu=!0,u}function Ru(e,t,n,i){var o,r;if(null==t){var l=Au[e];r=l&&l.native}else{ngDevMode&&nu(ku.bindingStartIndex,null,"bindingStartIndex");var u="string"!=typeof t,a=u?t.tag:t;if(null===a)throw"for now name is required";r=yu.createElement(a);var s=null;if(u){var c=Du(t.template);s=Ju(Pu(-1,mu.createRenderer(r,t.rendererType),c))}null==(o=Iu(e,3,r,s)).staticData&&(ngDevMode&&na(e-1),o.staticData=bu[e]=Vu(a,n||null,null,i||null)),n&&function(e,t){ngDevMode&&nu(t.length%2,0,"attrs.length % 2");for(var n=yu.setAttribute,i=0;i>12,o=i,r=i+((4092&e)>>2);o=bu.length&&(bu[e]=n,i)){ngDevMode&&iu(gu.staticData,"previousOrParentNode.staticData");var l=gu.staticData;(l.localNames||(l.localNames=[])).push(i,e)}var u=n.diPublic;u&&u(n);var a=gu.staticData;a&&a.attrs&&function(e,t,i){var o=((4092&gu.flags)>>2)-1,r=i.initialInputs;(void 0===r||o>=r.length)&&(r=function(e,t,n){var i=n.initialInputs||(n.initialInputs=[]);i[e]=null;for(var o=n.attrs,r=0;r=n.length||null==n[e])&&(n[e]=[]),n[e]}(e,t));Mu(l,Iu(null,2,null,l)),n.nextIndex++}return!r}function Yu(){vu=!1;var e=gu=ku.node,t=gu.parent;ngDevMode&&lu(e,2),ngDevMode&&lu(t,0);var n=t.data,i=n.nextIndex<=n.views.length?n.views[n.nextIndex-1]:null;(null==i||i.data.id!==e.data.id)&&(function(e,t,n){var i=e.data,o=i.views;n>0&&cu(o[n-1],t),n=o.length&&o.push(t),i.nextIndex<=n&&i.nextIndex++,null!==e.data.renderParent&&au(e,t,!0,function(t,n,i){var o=n.views;return t+1")}function ia(e,t){void 0===t&&(t={});var n,i=t.rendererFactory||Ou,o=e.ngComponentDef,r=ju(i,t.host||o.tag),l=Mu(Pu(-1,i.createRenderer(r,o.rendererType),[]),null);try{vu=!1,gu=null,Iu(0,3,r,Pu(-1,yu,Du(o.template))),n=Hu(1,o.n(),o)}finally{Eu(l)}return t.features&&t.features.forEach(function(e){return e(n,o)}),oa(n),n}function oa(e){ngDevMode&&iu(e,"component");var t=e[Su];ngDevMode&&!t&&Nu("Not a directive instance",e),ngDevMode&&iu(t.data,"hostNode.data"),function(e,n,i,o){var r=Mu(n,t);try{mu.begin&&mu.begin(),i.constructor.ngComponentDef.r(1,0)}finally{mu.end&&mu.end(),n.creationMode=!1,Eu(r)}}(0,t.view,e)}function ra(e){var t={type:e.type,diPublic:null,n:e.factory,tag:e.tag||null,template:e.template||null,r:e.refresh||function(t,n){Qu(t,n,e.template)},h:e.hostBindings||ua,inputs:aa(e.inputs),outputs:aa(e.outputs),methods:aa(e.methods),rendererType:Wi(e.rendererType)||null},n=e.features;return n&&n.forEach(function(e){return e(t)}),t}var la={};function ua(){}function aa(e){if(null==e)return la;var t={};for(var n in e)t[e[n]]=n;return t}function sa(e,t){return{type:7,name:e,definitions:t,options:{}}}function ca(e,t){return void 0===t&&(t=null),{type:4,styles:t,timings:e}}function da(e,t){return void 0===t&&(t=null),{type:3,steps:e,options:t}}function pa(e,t){return void 0===t&&(t=null),{type:2,steps:e,options:t}}function fa(e){return{type:6,styles:e,offset:null}}function ha(e,t,n){return{type:0,name:e,styles:t,options:n}}function ya(e){return{type:5,steps:e}}function ma(e,t,n){return void 0===n&&(n=null),{type:1,expr:e,animation:t,options:n}}var ga="*";function va(e,t){return sa(e,t)}function ba(e,t){return ca(e,t)}function ka(e){return da(e)}function _a(e){return pa(e)}function wa(e){return fa(e)}function Aa(e,t){return ha(e,t)}function Ta(e){return ya(e)}function Ca(e,t){return ma(e,t)}}).call(t,n("DuR2"))},WWFs:function(e,t,n){"use strict";var i=n("xgwM").__extends;Object.defineProperty(t,"__esModule",{value:!0});var o=function(){};t.IpcResponse=o,t.FirmwareUpgradeIpcResponse=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i(t,e),t}(o)},WWez:function(e,t,n){"use strict";var i=n("ys6Q");e.exports=function(e,t,n){e&&i(function(){e.apply(n||null,t||[])})}},Wfm2:function(e,t){e.exports={svg:{$:{xmlns:"http://www.w3.org/2000/svg",version:"1.1",width:"744.094488189",height:"1052.36220472"},rect:[{$:{id:"key-1",x:"-446.27197",y:"678.38013",ry:"3.5107117",width:"63.014999",height:"63.014999",style:"fill:#333"}},{$:{id:"key-2",x:"-379.92999",y:"678.38013",ry:"3.5107117",width:"63.014999",height:"63.014999",style:"fill:#333"}},{$:{id:"key-3",x:"-313.58899",y:"678.38013",ry:"3.5107117",width:"63.014999",height:"63.014999",style:"fill:#333"}},{$:{id:"key-4",x:"-247.24799",y:"678.38013",ry:"3.5107117",width:"63.014999",height:"63.014999",style:"fill:#333"}},{$:{id:"key-5",x:"-180.90698",y:"678.38013",ry:"3.5107117",width:"63.014999",height:"63.014999",style:"fill:#333"}},{$:{id:"key-6",x:"-114.56499",y:"678.38013",ry:"3.5107117",width:"63.014999",height:"63.014999",style:"fill:#333"}},{$:{id:"key-7",x:"-48.223999",y:"678.38013",ry:"3.5107117",width:"63.014999",height:"63.014999",style:"fill:#333"}},{$:{id:"key-8",x:"-446.27197",y:"744.89612",ry:"3.5107117",width:"96.728996",height:"63.014999",style:"fill:#333"}},{$:{id:"key-9",x:"-346.21698",y:"744.89612",ry:"3.5107117",width:"63.014999",height:"63.014999",style:"fill:#333"}},{$:{id:"key-10",x:"-279.87601",y:"744.89612",ry:"3.5107117",width:"63.014999",height:"63.014999",style:"fill:#333"}},{$:{id:"key-11",x:"-213.535",y:"744.89612",ry:"3.5107117",width:"63.014999",height:"63.014999",style:"fill:#333"}},{$:{id:"key-12",x:"-147.19299",y:"744.89612",ry:"3.5107117",width:"63.014999",height:"63.014999",style:"fill:#333"}},{$:{id:"key-14",x:"-80.852005",y:"744.89612",ry:"3.5107117",width:"63.014999",height:"63.014999",style:"fill:#333"}},{$:{id:"key-15",x:"-446.27197",y:"811.41315",ry:"3.5107117",width:"115.108",height:"63.014999",style:"fill:#333"}},{$:{id:"key-16",x:"-328.18799",y:"811.41315",ry:"3.5107117",width:"63.014999",height:"63.014999",style:"fill:#333"}},{$:{id:"key-17",x:"-262.19598",y:"811.41315",ry:"3.5107117",width:"63.014999",height:"63.014999",style:"fill:#333"}},{$:{id:"key-18",x:"-196.20499",y:"811.41315",ry:"3.5107117",width:"63.014999",height:"63.014999",style:"fill:#333"}},{$:{id:"key-19",x:"-130.21399",y:"811.41315",ry:"3.5107117",width:"63.014999",height:"63.014999",style:"fill:#333"}},{$:{id:"key-21",x:"-64.222992",y:"811.41315",ry:"3.5107117",width:"63.014999",height:"63.014999",style:"fill:#333"}},{$:{id:"key-22",x:"-446.27197",y:"877.92914",ry:"3.5107117",width:"146.686",height:"63.014999",style:"fill:#333"}},{$:{id:"key-24",x:"-296.26001",y:"877.92914",ry:"3.5107117",width:"63.014999",height:"63.014999",style:"fill:#333"}},{$:{id:"key-25",x:"-230.02377",y:"877.92914",ry:"3.5107117",width:"63.014999",height:"63.014999",style:"fill:#333"}},{$:{id:"key-26",x:"-163.78757",y:"877.92914",ry:"3.5107117",width:"63.014999",height:"63.014999",style:"fill:#333"}},{$:{id:"key-27",x:"-97.551331",y:"877.92914",ry:"3.5107117",width:"63.014999",height:"63.014999",style:"fill:#333"}},{$:{id:"key-28",x:"-31.315111",y:"877.92914",ry:"3.5107117",width:"63.014999",height:"63.014999",style:"fill:#333"}},{$:{id:"key-29",x:"-446.27197",y:"944.44714",ry:"3.5107117",width:"80.029999",height:"63.014999",style:"fill:#333"}},{$:{id:"key-30",x:"-363.79099",y:"944.44714",ry:"3.5107117",width:"80.029999",height:"63.014999",style:"fill:#333"}},{$:{id:"key-31",x:"-281.311",y:"944.44714",ry:"3.5107117",width:"80.029999",height:"63.014999",style:"fill:#333"}},{$:{id:"key-32",x:"-198.83099",y:"944.44714",ry:"3.5107117",width:"80.029999",height:"63.014999",style:"fill:#333"}},{$:{id:"key-33",x:"-116.351",y:"1011.1872",ry:"3.6962967",width:"115.108",height:"41.174999",style:"fill:#333"}},{$:{id:"key-34",x:"-116.351",y:"944.44714",ry:"3.5107117",width:"115.108",height:"63.014999",style:"fill:#333"}}],path:[{$:{d:"M -94.51036,646.84101 C -94.11496,648.67469 -92.68469,649.80097 -91.0281,649.78029 L 13.023181,649.78029 C 14.001631,649.78029 14.794821,650.57349 14.794821,651.55194 L 14.794821,651.55868 14.794821,673.23866 C 14.794821,674.21746 14.001631,675.01093 13.023181,675.01093 L -444.52338,675.01093 C -447.45834,675.01093 -449.83652,677.38911 -449.83652,680.32407 L -449.83652,1005.8729 C -449.83652,1008.8079 -447.45834,1011.1861 -444.52338,1011.1861 L -120.57683,1011.1861 C -119.59838,1011.1861 -118.80518,1011.9795 -118.80518,1012.9583 L -118.80518,1050.5832 -118.80518,1050.5899 C -118.80518,1051.5684 -119.59838,1052.3616 -120.57683,1052.3616 L -464.45746,1052.3616 C -469.36122,1052.166 -473.26634,1048.3775 -473.2955,1043.5236 L -473.2955,658.54868 C -473.28473,654.0371 -470.24793,650.61741 -466.01444,649.84887 L -114.09291,586.86646 C -109.10971,586.16157 -104.69185,589.2677 -103.81746,594.05779 -100.59959,612.36858 -97.46095,630.10521 -94.51036,646.84101 Z",style:"fill:#333"}}]}}},WhVc:function(e,t,n){"use strict";t.errorObject={e:{}}},XO5T:function(e,t,n){"use strict";var i=n("ANGw");t.mergeMap=function(e,t,n){return void 0===n&&(n=Number.POSITIVE_INFINITY),i.mergeMap(e,t,n)(this)}},Xajo:function(e,t,n){"use strict";t.isArray=Array.isArray||function(e){return e&&"number"==typeof e.length}},Xjw4:function(e,t,n){"use strict";n.d(t,"l",function(){return v}),n.d(t,"m",function(){return g}),n.d(t,"v",function(){return b}),n.d(t,"c",function(){return N}),n.d(t,"i",function(){return k}),n.d(t,"j",function(){return w}),n.d(t,"k",function(){return T}),n.d(t,"n",function(){return O}),n.d(t,"o",function(){return S}),n.d(t,"p",function(){return M}),n.d(t,"q",function(){return E}),n.d(t,"d",function(){return j}),n.d(t,"b",function(){return D}),n.d(t,"t",function(){return L}),n.d(t,"s",function(){return r}),n.d(t,"f",function(){return l}),n.d(t,"h",function(){return u}),n.d(t,"a",function(){return a}),n.d(t,"e",function(){return d}),n.d(t,"r",function(){return p}),n.d(t,"g",function(){return s}),n.d(t,"u",function(){return m});var i=n("WT6e"),o=n("TToO"),r=function(){},l=new i.InjectionToken("Location Initialized"),u=function(){},a=new i.InjectionToken("appBaseHref"),s=function(){function e(t){var n=this;this._subject=new i.EventEmitter,this._platformStrategy=t;var o=this._platformStrategy.getBaseHref();this._baseHref=e.stripTrailingSlash(c(o)),this._platformStrategy.onPopState(function(e){n._subject.emit({url:n.path(!0),pop:!0,type:e.type})})}return e.prototype.path=function(e){return void 0===e&&(e=!1),this.normalize(this._platformStrategy.path(e))},e.prototype.isCurrentPathEqualTo=function(t,n){return void 0===n&&(n=""),this.path()==this.normalize(t+e.normalizeQueryParams(n))},e.prototype.normalize=function(t){return e.stripTrailingSlash(function(e,t){return e&&t.startsWith(e)?t.substring(e.length):t}(this._baseHref,c(t)))},e.prototype.prepareExternalUrl=function(e){return e&&"/"!==e[0]&&(e="/"+e),this._platformStrategy.prepareExternalUrl(e)},e.prototype.go=function(e,t){void 0===t&&(t=""),this._platformStrategy.pushState(null,"",e,t)},e.prototype.replaceState=function(e,t){void 0===t&&(t=""),this._platformStrategy.replaceState(null,"",e,t)},e.prototype.forward=function(){this._platformStrategy.forward()},e.prototype.back=function(){this._platformStrategy.back()},e.prototype.subscribe=function(e,t,n){return this._subject.subscribe({next:e,error:t,complete:n})},e.normalizeQueryParams=function(e){return e&&"?"!==e[0]?"?"+e:e},e.joinWithSlash=function(e,t){if(0==e.length)return t;if(0==t.length)return e;var n=0;return e.endsWith("/")&&n++,t.startsWith("/")&&n++,2==n?e+t.substring(1):1==n?e+t:e+"/"+t},e.stripTrailingSlash=function(e){var t=e.match(/#|\?|$/),n=t&&t.index||e.length;return e.slice(0,n-("/"===e[n-1]?1:0))+e.slice(n)},e}();function c(e){return e.replace(/\/index.html$/,"")}var d=function(e){function t(t,n){var i=e.call(this)||this;return i._platformLocation=t,i._baseHref="",null!=n&&(i._baseHref=n),i}return Object(o.__extends)(t,e),t.prototype.onPopState=function(e){this._platformLocation.onPopState(e),this._platformLocation.onHashChange(e)},t.prototype.getBaseHref=function(){return this._baseHref},t.prototype.path=function(e){void 0===e&&(e=!1);var t=this._platformLocation.hash;return null==t&&(t="#"),t.length>0?t.substring(1):t},t.prototype.prepareExternalUrl=function(e){var t=s.joinWithSlash(this._baseHref,e);return t.length>0?"#"+t:t},t.prototype.pushState=function(e,t,n,i){var o=this.prepareExternalUrl(n+s.normalizeQueryParams(i));0==o.length&&(o=this._platformLocation.pathname),this._platformLocation.pushState(e,t,o)},t.prototype.replaceState=function(e,t,n,i){var o=this.prepareExternalUrl(n+s.normalizeQueryParams(i));0==o.length&&(o=this._platformLocation.pathname),this._platformLocation.replaceState(e,t,o)},t.prototype.forward=function(){this._platformLocation.forward()},t.prototype.back=function(){this._platformLocation.back()},t}(u),p=function(e){function t(t,n){var i=e.call(this)||this;if(i._platformLocation=t,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 Object(o.__extends)(t,e),t.prototype.onPopState=function(e){this._platformLocation.onPopState(e),this._platformLocation.onHashChange(e)},t.prototype.getBaseHref=function(){return this._baseHref},t.prototype.prepareExternalUrl=function(e){return s.joinWithSlash(this._baseHref,e)},t.prototype.path=function(e){void 0===e&&(e=!1);var t=this._platformLocation.pathname+s.normalizeQueryParams(this._platformLocation.search),n=this._platformLocation.hash;return n&&e?""+t+n:t},t.prototype.pushState=function(e,t,n,i){var o=this.prepareExternalUrl(n+s.normalizeQueryParams(i));this._platformLocation.pushState(e,t,o)},t.prototype.replaceState=function(e,t,n,i){var o=this.prepareExternalUrl(n+s.normalizeQueryParams(i));this._platformLocation.replaceState(e,t,o)},t.prototype.forward=function(){this._platformLocation.forward()},t.prototype.back=function(){this._platformLocation.back()},t}(u),f=["en",[["a","p"],["AM","PM"]],[["AM","PM"],,],[["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"]],,[["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"]],,[["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}",,"{1} 'at' {0}"],[".",",",";","%","+","-","E","\xd7","\u2030","\u221e","NaN",":"],["#,##0.###","#,##0%","\xa4#,##0.00","#E0"],"$","US Dollar",function(e){var t=Math.floor(Math.abs(e)),n=e.toString().replace(/^[^.]*\.?/,"").length;return 1===t&&0===n?1:5}],h={},y=function(){var e={Zero:0,One:1,Two:2,Few:3,Many:4,Other:5};return e[e.Zero]="Zero",e[e.One]="One",e[e.Two]="Two",e[e.Few]="Few",e[e.Many]="Many",e[e.Other]="Other",e}(),m=new i.InjectionToken("UseV4Plurals"),g=function(){},v=function(e){function t(t,n){var i=e.call(this)||this;return i.locale=t,i.deprecatedPluralFn=n,i}return Object(o.__extends)(t,e),t.prototype.getPluralCategory=function(e,t){switch(this.deprecatedPluralFn?this.deprecatedPluralFn(t||this.locale,e):function(e){return function(e){var t=e.toLowerCase().replace(/_/g,"-"),n=h[t];if(n)return n;var i=t.split("-")[0];if(n=h[i])return n;if("en"===i)return f;throw new Error('Missing locale data for the locale "'+e+'".')}(e)[17]}(t||this.locale)(e)){case y.Zero:return"zero";case y.One:return"one";case y.Two:return"two";case y.Few:return"few";case y.Many:return"many";default:return"other"}},t}(g);function b(e,t){t=encodeURIComponent(t);for(var n=0,i=e.split(";");n=e.length&&e.length===r.length)return e;for(var u=e.slice(0,t),a=t;a-1?d:computeNextEntry(n,c,p,f);u.push(h)}return u}function liftInitialState(e,t){return{monitorState:t(void 0,{}),nextActionId:1,actionsById:{0:liftAction(INIT_ACTION)},stagedActionIds:[0],skippedActionIds:[],committedState:e,currentStateIndex:0,computedStates:[]}}function liftReducerWith(e,t,n,i){return void 0===i&&(i={}),function(o){return function(r,l){var u=r||t,a=u.monitorState,s=u.actionsById,c=u.nextActionId,d=u.stagedActionIds,p=u.skippedActionIds,f=u.committedState,h=u.currentStateIndex,y=u.computedStates;function m(e){for(var t=e,n=d.slice(1,t+1),i=0;it?h-t:0}r||(s=Object.create(s));var g,v=0;switch(l.type){case RESET:s={0:liftAction(INIT_ACTION)},c=1,d=[0],p=[],f=e,h=0,y=[];break;case COMMIT:s={0:liftAction(INIT_ACTION)},c=1,d=[0],p=[],f=y[h].state,h=0,y=[];break;case ROLLBACK:s={0:liftAction(INIT_ACTION)},c=1,d=[0],p=[],h=0,y=[];break;case TOGGLE_ACTION:var b=l.id,k=p.indexOf(b);p=-1===k?[b].concat(p):p.filter(function(e){return e!==b}),v=d.indexOf(b);break;case SET_ACTIONS_ACTIVE:for(var _=l.start,w=l.end,A=l.active,T=[],C=_;Ci.maxAge&&(y=recomputeStates(y,v,o,f,s,d,p),m(d.length-i.maxAge),v=1/0);break;default:v=1/0}return y=recomputeStates(y,v,o,f,s,d,p),{monitorState:a=n(a,l),actionsById:s,nextActionId:c,stagedActionIds:d,skippedActionIds:p,committedState:f,currentStateIndex:h,computedStates:y}}}}var StoreDevtoolsConfig=function(){},STORE_DEVTOOLS_CONFIG=new __WEBPACK_IMPORTED_MODULE_0__angular_core__.InjectionToken("@ngrx/devtools Options"),INITIAL_OPTIONS=new __WEBPACK_IMPORTED_MODULE_0__angular_core__.InjectionToken("@ngrx/devtools Initial Config"),DevtoolsDispatcher=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return __extends(t,e),t}(__WEBPACK_IMPORTED_MODULE_1__ngrx_store__.a),StoreDevtools=function(){function e(e,t,n,i,o,r,l){var u=liftInitialState(r,l.monitor),a=liftReducerWith(r,u,l.monitor,l.maxAge?{maxAge:l.maxAge}:{}),s=applyOperators(t.asObservable(),[[__WEBPACK_IMPORTED_MODULE_7_rxjs_operator_skip__.skip,1],[__WEBPACK_IMPORTED_MODULE_4_rxjs_operator_merge__.merge,i.actions$],[__WEBPACK_IMPORTED_MODULE_3_rxjs_operator_map__.map,liftAction],[__WEBPACK_IMPORTED_MODULE_4_rxjs_operator_merge__.merge,e,i.liftedActions$],[__WEBPACK_IMPORTED_MODULE_5_rxjs_operator_observeOn__.observeOn,__WEBPACK_IMPORTED_MODULE_9_rxjs_scheduler_queue__.queue]]),c=__WEBPACK_IMPORTED_MODULE_3_rxjs_operator_map__.map.call(n,a),d=new __WEBPACK_IMPORTED_MODULE_2_rxjs_ReplaySubject__.ReplaySubject(1),p=applyOperators(s,[[__WEBPACK_IMPORTED_MODULE_8_rxjs_operator_withLatestFrom__.withLatestFrom,c],[__WEBPACK_IMPORTED_MODULE_6_rxjs_operator_scan__.scan,function(e,t){var n=t[0],o=(0,t[1])(e.state,n);return i.notify(n,o),{state:o,action:n}},{state:u,action:null}]]).subscribe(function(e){var t=e.action;d.next(e.state),t.type===PERFORM_ACTION&&o.next(t.action)}),f=d.asObservable(),h=__WEBPACK_IMPORTED_MODULE_3_rxjs_operator_map__.map.call(f,unliftState);this.stateSubscription=p,this.dispatcher=e,this.liftedState=f,this.state=h}return e.prototype.dispatch=function(e){this.dispatcher.next(e)},e.prototype.next=function(e){this.dispatcher.next(e)},e.prototype.error=function(e){},e.prototype.complete=function(){},e.prototype.performAction=function(e){this.dispatch(new PerformAction(e))},e.prototype.reset=function(){this.dispatch(new Reset)},e.prototype.rollback=function(){this.dispatch(new Rollback)},e.prototype.commit=function(){this.dispatch(new Commit)},e.prototype.sweep=function(){this.dispatch(new Sweep)},e.prototype.toggleAction=function(e){this.dispatch(new ToggleAction(e))},e.prototype.jumpToState=function(e){this.dispatch(new JumpToState(e))},e.prototype.importState=function(e){this.dispatch(new ImportState(e))},e}(),IS_EXTENSION_OR_MONITOR_PRESENT=new __WEBPACK_IMPORTED_MODULE_0__angular_core__.InjectionToken("Is Devtools Extension or Monitor Present");function createIsExtensionOrMonitorPresent(e,t){return Boolean(e)||t.monitor!==noMonitor}function createReduxDevtoolsExtension(){return"object"==typeof window&&"undefined"!=typeof window.__REDUX_DEVTOOLS_EXTENSION__?window.__REDUX_DEVTOOLS_EXTENSION__:null}function createStateObservable(e){return e.state}function noMonitor(){return null}function createConfig(e){var t={maxAge:!1,monitor:noMonitor},n="function"==typeof e?e():e,i=Object.assign({},t,n);if(i.maxAge&&i.maxAge<2)throw new Error("Devtools 'maxAge' cannot be less than 2, got "+i.maxAge);return i}var StoreDevtoolsModule=function(){function e(){}return e.instrument=function(t){return void 0===t&&(t={}),{ngModule:e,providers:[DevtoolsExtension,DevtoolsDispatcher,StoreDevtools,{provide:INITIAL_OPTIONS,useValue:t},{provide:IS_EXTENSION_OR_MONITOR_PRESENT,deps:[REDUX_DEVTOOLS_EXTENSION,STORE_DEVTOOLS_CONFIG],useFactory:createIsExtensionOrMonitorPresent},{provide:REDUX_DEVTOOLS_EXTENSION,useFactory:createReduxDevtoolsExtension},{provide:STORE_DEVTOOLS_CONFIG,deps:[INITIAL_OPTIONS],useFactory:createConfig},{provide:__WEBPACK_IMPORTED_MODULE_1__ngrx_store__.l,deps:[StoreDevtools],useFactory:createStateObservable},{provide:__WEBPACK_IMPORTED_MODULE_1__ngrx_store__.h,useExisting:DevtoolsDispatcher}]}},e}()},Yh8Q:function(e,t,n){"use strict";var i=n("TToO").__extends,o=n("rCTf"),r=n("RRVv"),l=n("jBEF"),u=n("fWbP");t.ArrayObservable=function(e){function t(t,n){e.call(this),this.array=t,this.scheduler=n,n||1!==t.length||(this._isScalar=!0,this.value=t[0])}return i(t,e),t.create=function(e,n){return new t(e,n)},t.of=function(){for(var e=[],n=0;n1?new t(e,i):1===o?new r.ScalarObservable(e[0],i):new l.EmptyObservable(i)},t.dispatch=function(e){var t=e.array,n=e.index,i=e.subscriber;n>=e.count?i.complete():(i.next(t[n]),i.closed||(e.index=n+1,this.schedule(e)))},t.prototype._subscribe=function(e){var n=this.array,i=n.length,o=this.scheduler;if(o)return o.schedule(t.dispatch,0,{array:n,index:0,count:i,subscriber:e});for(var r=0;r'},t.prototype.getName=function(){return"MoveMouseMacroAction"},o([l.assertInt16,r("design:type",Number)],t.prototype,"x",void 0),o([l.assertInt16,r("design:type",Number)],t.prototype,"y",void 0),t}(u.MacroAction)},ao60:function(e,t,n){"use strict";var i;Object.defineProperty(t,"__esModule",{value:!0}),function(e){e[e.KeyMacroAction=0]="KeyMacroAction",e[e.LastKeyMacroAction=63]="LastKeyMacroAction",e[e.MouseButtonMacroAction=64]="MouseButtonMacroAction",e[e.LastMouseButtonMacroAction=66]="LastMouseButtonMacroAction",e[e.MoveMouseMacroAction=67]="MoveMouseMacroAction",e[e.ScrollMouseMacroAction=68]="ScrollMouseMacroAction",e[e.DelayMacroAction=69]="DelayMacroAction",e[e.TextMacroAction=70]="TextMacroAction"}(i=t.MacroActionId||(t.MacroActionId={})),function(e){e[e.tap=0]="tap",e[e.press=1]="press",e[e.release=2]="release"}(t.MacroKeySubAction||(t.MacroKeySubAction={})),function(e){e[e.click=0]="click",e[e.hold=1]="hold",e[e.release=2]="release"}(t.MacroMouseSubAction||(t.MacroMouseSubAction={})),t.macroActionType={KeyMacroAction:"key",MouseButtonMacroAction:"mouseButton",MoveMouseMacroAction:"moveMouse",ScrollMouseMacroAction:"scrollMouse",DelayMacroAction:"delay",TextMacroAction:"text"},t.MacroAction=function(){function e(){}return e.prototype.assertMacroActionType=function(e){var n=this.getName();if(e.macroActionType!==t.macroActionType[n])throw"Invalid "+n+".macroActionType: "+e.macroActionType},e.prototype.readAndAssertMacroActionId=function(e){var t=this.getName(),n=e.readUInt8(),o=i[t];if(o===i.KeyMacroAction){if(ni.LastKeyMacroAction)throw"Invalid "+t+" first byte: "+n}else if(o===i.MouseButtonMacroAction){if(ni.LastMouseButtonMacroAction)throw"Invalid "+t+" first byte: "+n}else if(n!==o)throw"Invalid "+t+" first byte: "+n;return n},e}()},at4H:function(e,t,n){"use strict";n.d(t,"a",function(){return r}),n.d(t,"c",function(){return l}),n.d(t,"d",function(){return u}),n.d(t,"f",function(){return a}),n.d(t,"k",function(){return s}),n.d(t,"j",function(){return c}),n.d(t,"i",function(){return d}),n.d(t,"e",function(){return p}),n.d(t,"h",function(){return f}),n.d(t,"l",function(){return h}),n.d(t,"g",function(){return y}),n.d(t,"b",function(){return m});var i=n("gI3A"),o=(n.n(i),"[user-config] "),r={LOAD_USER_CONFIG:Object(i.type)(o+"Load User Config"),LOAD_CONFIG_FROM_DEVICE:Object(i.type)(o+"Load User Config from Device"),LOAD_CONFIG_FROM_DEVICE_REPLY:Object(i.type)(o+"Load User Config from Device reply"),LOAD_USER_CONFIG_SUCCESS:Object(i.type)(o+"Load User Config Success"),SAVE_USER_CONFIG_SUCCESS:Object(i.type)(o+"Save User Config Success"),SAVE_USER_CONFIG_IN_JSON_FILE:Object(i.type)(o+"Save User Config in JSON file"),SAVE_USER_CONFIG_IN_BIN_FILE:Object(i.type)(o+"Save User Config in binary file"),LOAD_RESET_USER_CONFIGURATION:Object(i.type)(o+"Load reset user configuration"),RENAME_USER_CONFIGURATION:Object(i.type)(o+"Rename user configuration"),SET_USER_CONFIGURATION_VALUE:Object(i.type)(o+"Set user configuration value"),LOAD_USER_CONFIGURATION_FROM_FILE:Object(i.type)(o+"Load user configuration from file"),APPLY_USER_CONFIGURATION_FROM_FILE:Object(i.type)(o+"Apply user configuration from file")},l=function(){return function(){this.type=r.LOAD_CONFIG_FROM_DEVICE}}(),u=function(){return function(e){this.payload=e,this.type=r.LOAD_CONFIG_FROM_DEVICE_REPLY}}(),a=function(){return function(e){this.payload=e,this.type=r.LOAD_USER_CONFIG_SUCCESS}}(),s=function(){return function(e){this.payload=e,this.type=r.SAVE_USER_CONFIG_SUCCESS}}(),c=function(){return function(){this.type=r.SAVE_USER_CONFIG_IN_JSON_FILE}}(),d=function(){return function(){this.type=r.SAVE_USER_CONFIG_IN_BIN_FILE}}(),p=function(){return function(e){this.payload=e,this.type=r.LOAD_RESET_USER_CONFIGURATION}}(),f=function(){return function(e){this.payload=e,this.type=r.RENAME_USER_CONFIGURATION}}(),h=function(){return function(e){this.payload=e,this.type=r.SET_USER_CONFIGURATION_VALUE}}(),y=function(){return function(e){this.payload=e,this.type=r.LOAD_USER_CONFIGURATION_FROM_FILE}}(),m=function(){return function(e){this.payload=e,this.type=r.APPLY_USER_CONFIGURATION_FROM_FILE}}()},bBHq:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=function(){function e(){}return e.appStarted="app-started",e.getAppStartInfo="app-get-start-info",e.getAppStartInfoReply="app-get-start-info-reply",e.exit="app-exit",e.openUrl="open-url",e}();t.App=i;var o=function(){function e(){}return e.checkingForUpdate="checking-for-update",e.updateAvailable="update-available",e.updateNotAvailable="update-not-available",e.autoUpdateError="auto-update-error",e.autoUpdateDownloaded="update-downloaded",e.autoUpdateDownloadProgress="auto-update-download-progress",e.updateAndRestart="update-and-restart",e.checkForUpdate="check-for-update",e.checkForUpdateNotAvailable="check-for-update-not-available",e}();t.AutoUpdate=o;var r=function(){function e(){}return e.setPrivilegeOnLinux="set-privilege-on-linux",e.setPrivilegeOnLinuxReply="set-privilege-on-linux-reply",e.deviceConnectionStateChanged="device-connection-state-changed",e.saveUserConfiguration="device-save-user-configuration",e.saveUserConfigurationReply="device-save-user-configuration-reply",e.loadConfigurations="device-load-configuration",e.loadConfigurationReply="device-load-configuration-reply",e.updateFirmware="device-update-firmware",e.updateFirmwareReply="device-update-firmware-reply",e.startConnectionPoller="device-start-connection-poller",e.recoveryDevice="device-recovery",e.enableUsbStackTest="enable-usb-stack-test",e}();t.Device=r,t.IpcEvents=function(){function e(){}return e.app=i,e.autoUpdater=o,e.device=r,e}()},bBiI:function(e,t,n){"use strict";var i=n("c8IX");t.first=function(e,t,n){return i.first(e,t,n)(this)}},bE1M:function(e,t,n){"use strict";var i=n("oBYf");t.concatMap=function(e,t){return i.concatMap(e,t)(this)}},bfOx:function(e,t,n){"use strict";n.d(t,"o",function(){return St}),n.d(t,"n",function(){return Et}),n.d(t,"q",function(){return Rt}),n.d(t,"d",function(){return S}),n.d(t,"e",function(){return M}),n.d(t,"s",function(){return E}),n.d(t,"l",function(){return gt}),n.d(t,"m",function(){return Ct}),n.d(t,"k",function(){return bt}),n.d(t,"i",function(){return Vt}),n.d(t,"j",function(){return Zt}),n.d(t,"p",function(){return Ht}),n.d(t,"b",function(){return It}),n.d(t,"f",function(){return Lt}),n.d(t,"g",function(){return jt}),n.d(t,"h",function(){return Nt}),n.d(t,"r",function(){return Ut}),n.d(t,"a",function(){return Fe}),n.d(t,"t",function(){return _t}),n.d(t,"c",function(){return se}),n.d(t,"u",function(){return ae}),n.d(t,"v",function(){return Ft}),n.d(t,"B",function(){return Yt}),n.d(t,"C",function(){return Qt}),n.d(t,"D",function(){return Jt}),n.d(t,"y",function(){return zt}),n.d(t,"x",function(){return Wt}),n.d(t,"A",function(){return Gt}),n.d(t,"w",function(){return Bt}),n.d(t,"z",function(){return qt});var i=n("Xjw4"),o=n("WT6e"),r=n("TToO"),l=n("TfWX"),u=n("EEr4"),a=n("lgiQ"),s=n("bE1M"),c=n("xAJs"),d=n("XO5T"),p=n("rCTf"),f=n("PKvP"),h=n("+4ur"),y=n("CfHE"),m=n("bBiI"),g=n("F7Al"),v=n("ioK+"),b=n("83T1"),k=n("7nvF"),_=n("cbuX"),w=n("pgP5"),A=n("OE0E"),T=n("ack3"),C=function(e,t){this.id=e,this.url=t},x=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Object(r.__extends)(t,e),t.prototype.toString=function(){return"NavigationStart(id: "+this.id+", url: '"+this.url+"')"},t}(C),O=function(e){function t(t,n,i){var o=e.call(this,t,n)||this;return o.urlAfterRedirects=i,o}return Object(r.__extends)(t,e),t.prototype.toString=function(){return"NavigationEnd(id: "+this.id+", url: '"+this.url+"', urlAfterRedirects: '"+this.urlAfterRedirects+"')"},t}(C),S=function(e){function t(t,n,i){var o=e.call(this,t,n)||this;return o.reason=i,o}return Object(r.__extends)(t,e),t.prototype.toString=function(){return"NavigationCancel(id: "+this.id+", url: '"+this.url+"')"},t}(C),M=function(e){function t(t,n,i){var o=e.call(this,t,n)||this;return o.error=i,o}return Object(r.__extends)(t,e),t.prototype.toString=function(){return"NavigationError(id: "+this.id+", url: '"+this.url+"', error: "+this.error+")"},t}(C),E=function(e){function t(t,n,i,o){var r=e.call(this,t,n)||this;return r.urlAfterRedirects=i,r.state=o,r}return Object(r.__extends)(t,e),t.prototype.toString=function(){return"RoutesRecognized(id: "+this.id+", url: '"+this.url+"', urlAfterRedirects: '"+this.urlAfterRedirects+"', state: "+this.state+")"},t}(C),P=function(e){function t(t,n,i,o){var r=e.call(this,t,n)||this;return r.urlAfterRedirects=i,r.state=o,r}return Object(r.__extends)(t,e),t.prototype.toString=function(){return"GuardsCheckStart(id: "+this.id+", url: '"+this.url+"', urlAfterRedirects: '"+this.urlAfterRedirects+"', state: "+this.state+")"},t}(C),I=function(e){function t(t,n,i,o,r){var l=e.call(this,t,n)||this;return l.urlAfterRedirects=i,l.state=o,l.shouldActivate=r,l}return Object(r.__extends)(t,e),t.prototype.toString=function(){return"GuardsCheckEnd(id: "+this.id+", url: '"+this.url+"', urlAfterRedirects: '"+this.urlAfterRedirects+"', state: "+this.state+", shouldActivate: "+this.shouldActivate+")"},t}(C),R=function(e){function t(t,n,i,o){var r=e.call(this,t,n)||this;return r.urlAfterRedirects=i,r.state=o,r}return Object(r.__extends)(t,e),t.prototype.toString=function(){return"ResolveStart(id: "+this.id+", url: '"+this.url+"', urlAfterRedirects: '"+this.urlAfterRedirects+"', state: "+this.state+")"},t}(C),D=function(e){function t(t,n,i,o){var r=e.call(this,t,n)||this;return r.urlAfterRedirects=i,r.state=o,r}return Object(r.__extends)(t,e),t.prototype.toString=function(){return"ResolveEnd(id: "+this.id+", url: '"+this.url+"', urlAfterRedirects: '"+this.urlAfterRedirects+"', state: "+this.state+")"},t}(C),N=function(){function e(e){this.route=e}return e.prototype.toString=function(){return"RouteConfigLoadStart(path: "+this.route.path+")"},e}(),j=function(){function e(e){this.route=e}return e.prototype.toString=function(){return"RouteConfigLoadEnd(path: "+this.route.path+")"},e}(),L=function(){function e(e){this.snapshot=e}return e.prototype.toString=function(){return"ChildActivationStart(path: '"+(this.snapshot.routeConfig&&this.snapshot.routeConfig.path||"")+"')"},e}(),U=function(){function e(e){this.snapshot=e}return e.prototype.toString=function(){return"ChildActivationEnd(path: '"+(this.snapshot.routeConfig&&this.snapshot.routeConfig.path||"")+"')"},e}(),V=function(){function e(e){this.snapshot=e}return e.prototype.toString=function(){return"ActivationStart(path: '"+(this.snapshot.routeConfig&&this.snapshot.routeConfig.path||"")+"')"},e}(),F=function(){function e(e){this.snapshot=e}return e.prototype.toString=function(){return"ActivationEnd(path: '"+(this.snapshot.routeConfig&&this.snapshot.routeConfig.path||"")+"')"},e}(),K="primary",B=function(){function e(e){this.params=e||{}}return e.prototype.has=function(e){return this.params.hasOwnProperty(e)},e.prototype.get=function(e){if(this.has(e)){var t=this.params[e];return Array.isArray(t)?t[0]:t}return null},e.prototype.getAll=function(e){if(this.has(e)){var t=this.params[e];return Array.isArray(t)?t:[t]}return[]},Object.defineProperty(e.prototype,"keys",{get:function(){return Object.keys(this.params)},enumerable:!0,configurable:!0}),e}();function H(e){return new B(e)}function W(e,t,n){var i=n.path.split("/");if(i.length>e.length)return null;if("full"===n.pathMatch&&(t.hasChildren()||i.length0?e[e.length-1]:null}function X(e,t){for(var n in e)e.hasOwnProperty(n)&&t(e[n],n)}function ee(e){var t=_.mergeAll.call(e);return b.every.call(t,function(e){return!0===e})}function te(e){return Object(o["\u0275isObservable"])(e)?e:Object(o["\u0275isPromise"])(e)?Object(v.fromPromise)(Promise.resolve(e)):Object(a.of)(e)}function ne(e,t,n){return n?function(e,t){return Q(e,t)}(e.queryParams,t.queryParams)&&function e(t,n){if(!le(t.segments,n.segments))return!1;if(t.numberOfChildren!==n.numberOfChildren)return!1;for(var i in n.children){if(!t.children[i])return!1;if(!e(t.children[i],n.children[i]))return!1}return!0}(e.root,t.root):function(e,t){return Object.keys(t).length<=Object.keys(e).length&&Object.keys(t).every(function(n){return t[n]===e[n]})}(e.queryParams,t.queryParams)&&function e(t,n){return function t(n,i,o){if(n.segments.length>o.length)return!!le(l=n.segments.slice(0,o.length),o)&&!i.hasChildren();if(n.segments.length===o.length){if(!le(n.segments,o))return!1;for(var r in i.children){if(!n.children[r])return!1;if(!e(n.children[r],i.children[r]))return!1}return!0}var l=o.slice(0,n.segments.length),u=o.slice(n.segments.length);return!!le(n.segments,l)&&!!n.children[K]&&t(n.children[K],i,u)}(t,n,n.segments)}(e.root,t.root)}var ie=function(){function e(e,t,n){this.root=e,this.queryParams=t,this.fragment=n}return Object.defineProperty(e.prototype,"queryParamMap",{get:function(){return this._queryParamMap||(this._queryParamMap=H(this.queryParams)),this._queryParamMap},enumerable:!0,configurable:!0}),e.prototype.toString=function(){return ce.serialize(this)},e}(),oe=function(){function e(e,t){var n=this;this.segments=e,this.children=t,this.parent=null,X(t,function(e,t){return e.parent=n})}return e.prototype.hasChildren=function(){return this.numberOfChildren>0},Object.defineProperty(e.prototype,"numberOfChildren",{get:function(){return Object.keys(this.children).length},enumerable:!0,configurable:!0}),e.prototype.toString=function(){return de(this)},e}(),re=function(){function e(e,t){this.path=e,this.parameters=t}return Object.defineProperty(e.prototype,"parameterMap",{get:function(){return this._parameterMap||(this._parameterMap=H(this.parameters)),this._parameterMap},enumerable:!0,configurable:!0}),e.prototype.toString=function(){return ge(this)},e}();function le(e,t){return e.length===t.length&&e.every(function(e,n){return e.path===t[n].path})}function ue(e,t){var n=[];return X(e.children,function(e,i){i===K&&(n=n.concat(t(e,i)))}),X(e.children,function(e,i){i!==K&&(n=n.concat(t(e,i)))}),n}var ae=function(){},se=function(){function e(){}return e.prototype.parse=function(e){var t=new we(e);return new ie(t.parseRootSegment(),t.parseQueryParams(),t.parseFragment())},e.prototype.serialize=function(e){var t,n;return"/"+function e(t,n){if(!t.hasChildren())return de(t);if(n){var i=t.children[K]?e(t.children[K],!1):"",o=[];return X(t.children,function(t,n){n!==K&&o.push(n+":"+e(t,!1))}),o.length>0?i+"("+o.join("//")+")":i}var r=ue(t,function(n,i){return i===K?[e(t.children[K],!1)]:[i+":"+e(n,!1)]});return de(t)+"/("+r.join("//")+")"}(e.root,!0)+(t=e.queryParams,(n=Object.keys(t).map(function(e){var n=t[e];return Array.isArray(n)?n.map(function(t){return fe(e)+"="+fe(t)}).join("&"):fe(e)+"="+fe(n)})).length?"?"+n.join("&"):"")+("string"==typeof e.fragment?"#"+encodeURI(e.fragment):"")},e}(),ce=new se;function de(e){return e.segments.map(function(e){return ge(e)}).join("/")}function pe(e){return encodeURIComponent(e).replace(/%40/g,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",")}function fe(e){return pe(e).replace(/%3B/gi,";")}function he(e){return pe(e).replace(/\(/g,"%28").replace(/\)/g,"%29").replace(/%26/gi,"&")}function ye(e){return decodeURIComponent(e)}function me(e){return ye(e.replace(/\+/g,"%20"))}function ge(e){return""+he(e.path)+(t=e.parameters,Object.keys(t).map(function(e){return";"+he(e)+"="+he(t[e])}).join(""));var t}var ve=/^[^\/()?;=&#]+/;function be(e){var t=e.match(ve);return t?t[0]:""}var ke=/^[^=?&#]+/,_e=/^[^?&#]+/,we=function(){function e(e){this.url=e,this.remaining=e}return e.prototype.parseRootSegment=function(){return this.consumeOptional("/"),""===this.remaining||this.peekStartsWith("?")||this.peekStartsWith("#")?new oe([],{}):new oe([],this.parseChildren())},e.prototype.parseQueryParams=function(){var e={};if(this.consumeOptional("?"))do{this.parseQueryParam(e)}while(this.consumeOptional("&"));return e},e.prototype.parseFragment=function(){return this.consumeOptional("#")?decodeURIComponent(this.remaining):null},e.prototype.parseChildren=function(){if(""===this.remaining)return{};this.consumeOptional("/");var e=[];for(this.peekStartsWith("(")||e.push(this.parseSegment());this.peekStartsWith("/")&&!this.peekStartsWith("//")&&!this.peekStartsWith("/(");)this.capture("/"),e.push(this.parseSegment());var t={};this.peekStartsWith("/(")&&(this.capture("/"),t=this.parseParens(!0));var n={};return this.peekStartsWith("(")&&(n=this.parseParens(!1)),(e.length>0||Object.keys(t).length>0)&&(n[K]=new oe(e,t)),n},e.prototype.parseSegment=function(){var e=be(this.remaining);if(""===e&&this.peekStartsWith(";"))throw new Error("Empty path url segment cannot have parameters: '"+this.remaining+"'.");return this.capture(e),new re(ye(e),this.parseMatrixParams())},e.prototype.parseMatrixParams=function(){for(var e={};this.consumeOptional(";");)this.parseParam(e);return e},e.prototype.parseParam=function(e){var t=be(this.remaining);if(t){this.capture(t);var n="";if(this.consumeOptional("=")){var i=be(this.remaining);i&&this.capture(n=i)}e[ye(t)]=ye(n)}},e.prototype.parseQueryParam=function(e){var t,n=(t=this.remaining.match(ke))?t[0]:"";if(n){this.capture(n);var i="";if(this.consumeOptional("=")){var o=function(e){var t=e.match(_e);return t?t[0]:""}(this.remaining);o&&this.capture(i=o)}var r=me(n),l=me(i);if(e.hasOwnProperty(r)){var u=e[r];Array.isArray(u)||(e[r]=u=[u]),u.push(l)}else e[r]=l}},e.prototype.parseParens=function(e){var t={};for(this.capture("(");!this.consumeOptional(")")&&this.remaining.length>0;){var n=be(this.remaining),i=this.remaining[n.length];if("/"!==i&&")"!==i&&";"!==i)throw new Error("Cannot parse url '"+this.url+"'");var o=void 0;n.indexOf(":")>-1?(o=n.substr(0,n.indexOf(":")),this.capture(o),this.capture(":")):e&&(o=K);var r=this.parseChildren();t[o]=1===Object.keys(r).length?r[K]:new oe([],r),this.consumeOptional("//")}return t},e.prototype.peekStartsWith=function(e){return this.remaining.startsWith(e)},e.prototype.consumeOptional=function(e){return!!this.peekStartsWith(e)&&(this.remaining=this.remaining.substring(e.length),!0)},e.prototype.capture=function(e){if(!this.consumeOptional(e))throw new Error('Expected "'+e+'".')},e}(),Ae=function(e){this.segmentGroup=e||null},Te=function(e){this.urlTree=e};function Ce(e){return new p.Observable(function(t){return t.error(new Ae(e))})}function xe(e){return new p.Observable(function(t){return t.error(new Te(e))})}function Oe(e){return new p.Observable(function(t){return t.error(new Error("Only absolute redirects can have named outlets. redirectTo: '"+e+"'"))})}var Se=function(){function e(e,t,n,i,r){this.configLoader=t,this.urlSerializer=n,this.urlTree=i,this.config=r,this.allowRedirects=!0,this.ngModule=e.get(o.NgModuleRef)}return e.prototype.apply=function(){var e=this,t=this.expandSegmentGroup(this.ngModule,this.config,this.urlTree.root,K),n=c.map.call(t,function(t){return e.createUrlTree(t,e.urlTree.queryParams,e.urlTree.fragment)});return h._catch.call(n,function(t){if(t instanceof Te)return e.allowRedirects=!1,e.match(t.urlTree);if(t instanceof Ae)throw e.noMatchError(t);throw t})},e.prototype.match=function(e){var t=this,n=this.expandSegmentGroup(this.ngModule,this.config,e.root,K),i=c.map.call(n,function(n){return t.createUrlTree(n,e.queryParams,e.fragment)});return h._catch.call(i,function(e){if(e instanceof Ae)throw t.noMatchError(e);throw e})},e.prototype.noMatchError=function(e){return new Error("Cannot match any routes. URL Segment: '"+e.segmentGroup+"'")},e.prototype.createUrlTree=function(e,t,n){var i,o=e.segments.length>0?new oe([],((i={})[K]=e,i)):e;return new ie(o,t,n)},e.prototype.expandSegmentGroup=function(e,t,n,i){return 0===n.segments.length&&n.hasChildren()?c.map.call(this.expandChildren(e,t,n),function(e){return new oe([],e)}):this.expandSegment(e,n,t,n.segments,i,!0)},e.prototype.expandChildren=function(e,t,n){var i=this;return function(n,o){if(0===Object.keys(n).length)return Object(a.of)({});var r=[],l=[],u={};X(n,function(n,o){var a=c.map.call(i.expandSegmentGroup(e,t,n,o),function(e){return u[o]=e});o===K?r.push(a):l.push(a)});var s=y.concatAll.call(a.of.apply(void 0,r.concat(l))),d=k.last.call(s);return c.map.call(d,function(){return u})}(n.children)},e.prototype.expandSegment=function(e,t,n,i,o,r){var l=this,u=a.of.apply(void 0,n),s=c.map.call(u,function(u){var s=l.expandSegmentAgainstRoute(e,t,n,u,i,o,r);return h._catch.call(s,function(e){if(e instanceof Ae)return Object(a.of)(null);throw e})}),d=y.concatAll.call(s),p=m.first.call(d,function(e){return!!e});return h._catch.call(p,function(e,n){if(e instanceof g.EmptyError||"EmptyError"===e.name){if(l.noLeftoversInUrl(t,i,o))return Object(a.of)(new oe([],{}));throw new Ae(t)}throw e})},e.prototype.noLeftoversInUrl=function(e,t,n){return 0===t.length&&!e.children[n]},e.prototype.expandSegmentAgainstRoute=function(e,t,n,i,o,r,l){return Ie(i)!==r?Ce(t):void 0===i.redirectTo?this.matchSegmentAgainstRoute(e,t,i,o):l&&this.allowRedirects?this.expandSegmentAgainstRouteUsingRedirect(e,t,n,i,o,r):Ce(t)},e.prototype.expandSegmentAgainstRouteUsingRedirect=function(e,t,n,i,o,r){return"**"===i.path?this.expandWildCardWithParamsAgainstRouteUsingRedirect(e,n,i,r):this.expandRegularSegmentAgainstRouteUsingRedirect(e,t,n,i,o,r)},e.prototype.expandWildCardWithParamsAgainstRouteUsingRedirect=function(e,t,n,i){var o=this,r=this.applyRedirectCommands([],n.redirectTo,{});return n.redirectTo.startsWith("/")?xe(r):d.mergeMap.call(this.lineralizeSegments(n,r),function(n){var r=new oe(n,{});return o.expandSegment(e,r,t,n,i,!1)})},e.prototype.expandRegularSegmentAgainstRouteUsingRedirect=function(e,t,n,i,o,r){var l=this,u=Me(t,i,o),a=u.consumedSegments,s=u.lastChild,c=u.positionalParamSegments;if(!u.matched)return Ce(t);var p=this.applyRedirectCommands(a,i.redirectTo,c);return i.redirectTo.startsWith("/")?xe(p):d.mergeMap.call(this.lineralizeSegments(i,p),function(i){return l.expandSegment(e,t,n,i.concat(o.slice(s)),r,!1)})},e.prototype.matchSegmentAgainstRoute=function(e,t,n,i){var o=this;if("**"===n.path)return n.loadChildren?c.map.call(this.configLoader.load(e.injector,n),function(e){return n._loadedConfig=e,new oe(i,{})}):Object(a.of)(new oe(i,{}));var l=Me(t,n,i),u=l.consumedSegments,s=l.lastChild;if(!l.matched)return Ce(t);var p=i.slice(s),f=this.getChildConfig(e,n);return d.mergeMap.call(f,function(e){var n=e.module,i=e.routes,l=function(e,t,n,i){return n.length>0&&function(e,t,n){return i.some(function(n){return Pe(e,t,n)&&Ie(n)!==K})}(e,n)?{segmentGroup:Ee(new oe(t,function(e,t){var n={};n[K]=t;for(var i=0,o=e;i1||!i.children[K])return Oe(e.redirectTo);i=i.children[K]}},e.prototype.applyRedirectCommands=function(e,t,n){return this.applyRedirectCreatreUrlTree(t,this.urlSerializer.parse(t),e,n)},e.prototype.applyRedirectCreatreUrlTree=function(e,t,n,i){var o=this.createSegmentGroup(e,t.root,n,i);return new ie(o,this.createQueryParams(t.queryParams,this.urlTree.queryParams),t.fragment)},e.prototype.createQueryParams=function(e,t){var n={};return X(e,function(e,i){if("string"==typeof e&&e.startsWith(":")){var o=e.substring(1);n[i]=t[o]}else n[i]=e}),n},e.prototype.createSegmentGroup=function(e,t,n,i){var o=this,r=this.createSegments(e,t.segments,n,i),l={};return X(t.children,function(t,r){l[r]=o.createSegmentGroup(e,t,n,i)}),new oe(r,l)},e.prototype.createSegments=function(e,t,n,i){var o=this;return t.map(function(t){return t.path.startsWith(":")?o.findPosParam(e,t,i):o.findOrReturn(t,n)})},e.prototype.findPosParam=function(e,t,n){var i=n[t.path.substring(1)];if(!i)throw new Error("Cannot redirect to '"+e+"'. Cannot find '"+t.path+"'.");return i},e.prototype.findOrReturn=function(e,t){for(var n=0,i=0,o=t;i0)?{matched:!1,consumedSegments:[],lastChild:0,positionalParamSegments:{}}:{matched:!0,consumedSegments:[],lastChild:0,positionalParamSegments:{}};var i=(t.matcher||W)(n,e,t);return i?{matched:!0,consumedSegments:i.consumed,lastChild:i.consumed.length,positionalParamSegments:i.posParams}:{matched:!1,consumedSegments:[],lastChild:0,positionalParamSegments:{}}}function Ee(e){if(1===e.numberOfChildren&&e.children[K]){var t=e.children[K];return new oe(e.segments.concat(t.segments),t.children)}return e}function Pe(e,t,n){return(!(e.hasChildren()||t.length>0)||"full"!==n.pathMatch)&&""===n.path&&void 0!==n.redirectTo}function Ie(e){return e.outlet||K}var Re=function(){function e(e){this._root=e}return Object.defineProperty(e.prototype,"root",{get:function(){return this._root.value},enumerable:!0,configurable:!0}),e.prototype.parent=function(e){var t=this.pathFromRoot(e);return t.length>1?t[t.length-2]:null},e.prototype.children=function(e){var t=De(e,this._root);return t?t.children.map(function(e){return e.value}):[]},e.prototype.firstChild=function(e){var t=De(e,this._root);return t&&t.children.length>0?t.children[0].value:null},e.prototype.siblings=function(e){var t=Ne(e,this._root);return t.length<2?[]:t[t.length-2].children.map(function(e){return e.value}).filter(function(t){return t!==e})},e.prototype.pathFromRoot=function(e){return Ne(e,this._root).map(function(e){return e.value})},e}();function De(e,t){if(e===t.value)return t;for(var n=0,i=t.children;n=1;){var o=n[i],l=n[i-1];if(o.routeConfig&&""===o.routeConfig.path)i--;else{if(l.component)break;i--}}return function(e){return e.reduce(function(e,t){return{params:Object(r.__assign)({},e.params,t.params),data:Object(r.__assign)({},e.data,t.data),resolve:Object(r.__assign)({},e.resolve,t._resolvedData)}},{params:{},data:{},resolve:{}})}(n.slice(i))}var Be=function(){function e(e,t,n,i,o,r,l,u,a,s,c){this.url=e,this.params=t,this.queryParams=n,this.fragment=i,this.data=o,this.outlet=r,this.component=l,this.routeConfig=u,this._urlSegment=a,this._lastPathIndex=s,this._resolve=c}return Object.defineProperty(e.prototype,"root",{get:function(){return this._routerState.root},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"parent",{get:function(){return this._routerState.parent(this)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"firstChild",{get:function(){return this._routerState.firstChild(this)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"children",{get:function(){return this._routerState.children(this)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"pathFromRoot",{get:function(){return this._routerState.pathFromRoot(this)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"paramMap",{get:function(){return this._paramMap||(this._paramMap=H(this.params)),this._paramMap},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"queryParamMap",{get:function(){return this._queryParamMap||(this._queryParamMap=H(this.queryParams)),this._queryParamMap},enumerable:!0,configurable:!0}),e.prototype.toString=function(){return"Route(url:'"+this.url.map(function(e){return e.toString()}).join("/")+"', path:'"+(this.routeConfig?this.routeConfig.path:"")+"')"},e}(),He=function(e){function t(t,n){var i=e.call(this,n)||this;return i.url=t,We(i,n),i}return Object(r.__extends)(t,e),t.prototype.toString=function(){return ze(this._root)},t}(Re);function We(e,t){t.value._routerState=e,t.children.forEach(function(t){return We(e,t)})}function ze(e){var t=e.children.length>0?" { "+e.children.map(ze).join(", ")+" } ":"";return""+e.value+t}function $e(e){if(e.snapshot){var t=e.snapshot,n=e._futureSnapshot;e.snapshot=n,Q(t.queryParams,n.queryParams)||e.queryParams.next(n.queryParams),t.fragment!==n.fragment&&e.fragment.next(n.fragment),Q(t.params,n.params)||e.params.next(n.params),function(e,t){if(e.length!==t.length)return!1;for(var n=0;n0&&Ge(n[0]))throw new Error("Root segment cannot have matrix parameters");var i=n.find(function(e){return"object"==typeof e&&null!=e&&e.outlets});if(i&&i!==Z(n))throw new Error("{outlets:{}} has to be the last command")}return e.prototype.toRoot=function(){return this.isAbsolute&&1===this.commands.length&&"/"==this.commands[0]},e}(),Je=function(e,t,n){this.segmentGroup=e,this.processChildren=t,this.index=n};function Ze(e){return"object"==typeof e&&null!=e&&e.outlets?e.outlets[K]:""+e}function Xe(e,t,n){if(e||(e=new oe([],{})),0===e.segments.length&&e.hasChildren())return et(e,t,n);var i=function(e,t,n){for(var i=0,o=t,r={match:!1,pathIndex:0,commandIndex:0};o=n.length)return r;var l=e.segments[o],u=Ze(n[i]),a=i0&&void 0===u)break;if(u&&a&&"object"==typeof a&&void 0===a.outlets){if(!ot(u,a,l))return r;i+=2}else{if(!ot(u,{},l))return r;i++}o++}return{match:!0,pathIndex:o,commandIndex:i}}(e,t,n),o=n.slice(i.commandIndex);if(i.match&&i.pathIndex0?Z(n).parameters:{};o=new Be(n,a,Object.freeze(this.urlTree.queryParams),this.urlTree.fragment,yt(e),i,e.component,e,ct(t),dt(t)+n.length,mt(e))}else{var s=function(e,t,n){if(""===t.path){if("full"===t.pathMatch&&(e.hasChildren()||n.length>0))throw new at;return{consumedSegments:[],lastChild:0,parameters:{}}}var i=(t.matcher||W)(n,e,t);if(!i)throw new at;var o={};X(i.posParams,function(e,t){o[t]=e.path});var l=i.consumed.length>0?Object(r.__assign)({},o,i.consumed[i.consumed.length-1].parameters):o;return{consumedSegments:i.consumed,lastChild:i.consumed.length,parameters:l}}(t,e,n);l=s.consumedSegments,u=n.slice(s.lastChild),o=new Be(l,s.parameters,Object.freeze(this.urlTree.queryParams),this.urlTree.fragment,yt(e),i,e.component,e,ct(t),dt(t)+l.length,mt(e))}var c=function(e){return e.children?e.children:e.loadChildren?e._loadedConfig.routes:[]}(e),d=pt(t,l,u,c),p=d.segmentGroup,f=d.slicedSegments;if(0===f.length&&p.hasChildren()){var h=this.processChildren(c,p);return[new je(o,h)]}if(0===c.length&&0===f.length)return[new je(o,[])];var y=this.processSegment(c,p,f,K);return[new je(o,y)]},e}();function ct(e){for(var t=e;t._sourceSegment;)t=t._sourceSegment;return t}function dt(e){for(var t=e,n=t._segmentIndexShift?t._segmentIndexShift:0;t._sourceSegment;)n+=(t=t._sourceSegment)._segmentIndexShift?t._segmentIndexShift:0;return n-1}function pt(e,t,n,i){if(n.length>0&&function(e,t,n){return i.some(function(n){return ft(e,t,n)&&ht(n)!==K})}(e,n)){var o=new oe(t,function(e,t,n,i){var o={};o[K]=i,i._sourceSegment=e,i._segmentIndexShift=t.length;for(var r=0,l=n;r0)||"full"!==n.pathMatch)&&""===n.path&&void 0===n.redirectTo}function ht(e){return e.outlet||K}function yt(e){return e.data||{}}function mt(e){return e.resolve||{}}var gt=function(){},vt=function(){function e(){}return e.prototype.shouldDetach=function(e){return!1},e.prototype.store=function(e,t){},e.prototype.shouldAttach=function(e){return!1},e.prototype.retrieve=function(e){return null},e.prototype.shouldReuseRoute=function(e,t){return e.routeConfig===t.routeConfig},e}(),bt=new o.InjectionToken("ROUTES"),kt=function(){function e(e,t,n,i){this.loader=e,this.compiler=t,this.onLoadStartListener=n,this.onLoadEndListener=i}return e.prototype.load=function(e,t){var n=this;this.onLoadStartListener&&this.onLoadStartListener(t);var i=this.loadModuleFactory(t.loadChildren);return c.map.call(i,function(i){n.onLoadEndListener&&n.onLoadEndListener(t);var o=i.create(e);return new z(J(o.injector.get(bt)).map(Y),o)})},e.prototype.loadModuleFactory=function(e){var t=this;return"string"==typeof e?Object(v.fromPromise)(this.loader.load(e)):d.mergeMap.call(te(e()),function(e){return e instanceof o.NgModuleFactory?Object(a.of)(e):Object(v.fromPromise)(t.compiler.compileModuleAsync(e))})},e}(),_t=function(){},wt=function(){function e(){}return e.prototype.shouldProcessUrl=function(e){return!0},e.prototype.extract=function(e){return e},e.prototype.merge=function(e,t){return e},e}();function At(e){throw e}function Tt(e){return Object(a.of)(null)}var Ct=function(){function e(e,t,n,i,r,a,s,c){var d=this;this.rootComponentType=e,this.urlSerializer=t,this.rootContexts=n,this.location=i,this.config=c,this.navigations=new l.BehaviorSubject(null),this.navigationId=0,this.events=new u.Subject,this.errorHandler=At,this.navigated=!1,this.hooks={beforePreactivation:Tt,afterPreactivation:Tt},this.urlHandlingStrategy=new wt,this.routeReuseStrategy=new vt,this.onSameUrlNavigation="ignore",this.paramsInheritanceStrategy="emptyOnly",this.ngModule=r.get(o.NgModuleRef),this.resetConfig(c),this.currentUrlTree=new ie(new oe([],{}),{},null),this.rawUrlTree=this.currentUrlTree,this.configLoader=new kt(a,s,function(e){return d.triggerEvent(new N(e))},function(e){return d.triggerEvent(new j(e))}),this.routerState=Ve(this.currentUrlTree,this.rootComponentType),this.processNavigations()}return e.prototype.resetRootComponentType=function(e){this.rootComponentType=e,this.routerState.root.component=this.rootComponentType},e.prototype.initialNavigation=function(){this.setUpLocationChangeListener(),0===this.navigationId&&this.navigateByUrl(this.location.path(!0),{replaceUrl:!0})},e.prototype.setUpLocationChangeListener=function(){var e=this;this.locationSubscription||(this.locationSubscription=this.location.subscribe(function(t){var n=e.urlSerializer.parse(t.url),i="popstate"===t.type?"popstate":"hashchange";setTimeout(function(){e.scheduleNavigation(n,i,{replaceUrl:!0})},0)}))},Object.defineProperty(e.prototype,"url",{get:function(){return this.serializeUrl(this.currentUrlTree)},enumerable:!0,configurable:!0}),e.prototype.triggerEvent=function(e){this.events.next(e)},e.prototype.resetConfig=function(e){$(e),this.config=e.map(Y),this.navigated=!1},e.prototype.ngOnDestroy=function(){this.dispose()},e.prototype.dispose=function(){this.locationSubscription&&(this.locationSubscription.unsubscribe(),this.locationSubscription=null)},e.prototype.createUrlTree=function(e,t){void 0===t&&(t={});var n=t.relativeTo,i=t.queryParams,l=t.fragment,u=t.preserveQueryParams,a=t.queryParamsHandling,s=t.preserveFragment;Object(o.isDevMode)()&&u&&console&&console.warn&&console.warn("preserveQueryParams is deprecated, use queryParamsHandling instead.");var c=n||this.routerState.root,d=s?this.currentUrlTree.fragment:l,p=null;if(a)switch(a){case"merge":p=Object(r.__assign)({},this.currentUrlTree.queryParams,i);break;case"preserve":p=this.currentUrlTree.queryParams;break;default:p=i||null}else p=u?this.currentUrlTree.queryParams:i||null;return null!==p&&(p=this.removeEmptyProps(p)),function(e,t,n,i,o){if(0===n.length)return Ye(t.root,t.root,t,i,o);var r=function(e){if("string"==typeof e[0]&&1===e.length&&"/"===e[0])return new Qe(!0,0,e);var t=0,n=!1,i=e.reduce(function(e,i,o){if("object"==typeof i&&null!=i){if(i.outlets){var r={};return X(i.outlets,function(e,t){r[t]="string"==typeof e?e.split("/"):e}),e.concat([{outlets:r}])}if(i.segmentPath)return e.concat([i.segmentPath])}return"string"!=typeof i?e.concat([i]):0===o?(i.split("/").forEach(function(i,o){0==o&&"."===i||(0==o&&""===i?n=!0:".."===i?t++:""!=i&&e.push(i))}),e):e.concat([i])},[]);return new Qe(n,t,i)}(n);if(r.toRoot())return Ye(t.root,new oe([],{}),t,i,o);var l=function(e,n,i){if(e.isAbsolute)return new Je(t.root,!0,0);if(-1===i.snapshot._lastPathIndex)return new Je(i.snapshot._urlSegment,!0,0);var o=Ge(e.commands[0])?0:1;return function(t,n,r){for(var l=i.snapshot._urlSegment,u=i.snapshot._lastPathIndex+o,a=e.numberOfDoubleDots;a>u;){if(a-=u,!(l=l.parent))throw new Error("Invalid number of '../'");u=l.segments.length}return new Je(l,!1,u-a)}()}(r,0,e),u=l.processChildren?et(l.segmentGroup,l.index,r.commands):Xe(l.segmentGroup,l.index,r.commands);return Ye(l.segmentGroup,u,t,i,o)}(c,this.currentUrlTree,e,p,d)},e.prototype.navigateByUrl=function(e,t){void 0===t&&(t={skipLocationChange:!1});var n=e instanceof ie?e:this.parseUrl(e),i=this.urlHandlingStrategy.merge(n,this.rawUrlTree);return this.scheduleNavigation(i,"imperative",t)},e.prototype.navigate=function(e,t){return void 0===t&&(t={skipLocationChange:!1}),function(e){for(var t=0;t1&&void 0!==arguments[1]?arguments[1]:i,n=null,o=null;return function(){return function(e,t,n){if(null===t||null===n||t.length!==n.length)return!1;for(var i=t.length,o=0;o1?t-1:0),i=1;i1&&void 0!==arguments[1]?arguments[1]:l;if("object"!=typeof e)throw new Error("createStructuredSelector expects first argument to be an object where each property is a selector, instead received a "+typeof e);var n=Object.keys(e);return t(n.map(function(t){return e[t]}),function(){for(var e=arguments.length,t=Array(e),i=0;i=2?function(n){return l.pipe(i.scan(e,t),o.takeLast(1),r.defaultIfEmpty(t))(n)}:function(t){return l.pipe(i.scan(function(t,n,i){return e(t,n,i+1)}),o.takeLast(1))(t)}}},dyjq:function(e,t,n){"use strict";n.d(t,"n",function(){return Y}),n.d(t,"m",function(){return z}),n.d(t,"w",function(){return m}),n.d(t,"x",function(){return g}),n.d(t,"y",function(){return v}),n.d(t,"a",function(){return I}),n.d(t,"b",function(){return P}),n.d(t,"g",function(){return L}),n.d(t,"i",function(){return D}),n.d(t,"h",function(){return N}),n.d(t,"p",function(){return j}),n.d(t,"j",function(){return V}),n.d(t,"k",function(){return B}),n.d(t,"l",function(){return K}),n.d(t,"d",function(){return k}),n.d(t,"s",function(){return w}),n.d(t,"f",function(){return _}),n.d(t,"q",function(){return T}),n.d(t,"c",function(){return A}),n.d(t,"r",function(){return b}),n.d(t,"e",function(){return C}),n.d(t,"t",function(){return O}),n.d(t,"o",function(){return q}),n.d(t,"v",function(){return Z}),n.d(t,"u",function(){return Q});var i,o=n("WT6e"),r=n("TfWX"),l=n("rCTf"),u=n("EEr4"),a=n("RA5l"),s=(n.n(a),n("Ji1B")),c=(n.n(s),n("u2wr")),d=(n.n(c),n("td8d")),p=(n.n(d),n("xAJs")),f=n("U9ky"),h=(n.n(f),n("8hgl")),y=(n.n(h),this&&this.__extends||(i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},function(e,t){function n(){this.constructor=e}i(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}));function m(e,t){void 0===t&&(t={});for(var n=Object.keys(e),i={},o=0;o0?g.apply(null,t.concat([e])):e}var b=new o.InjectionToken("@ngrx/store Internal Initial State"),k=new o.InjectionToken("@ngrx/store Initial State"),_=new o.InjectionToken("@ngrx/store Reducer Factory"),w=new o.InjectionToken("@ngrx/store Reducer Factory Provider"),A=new o.InjectionToken("@ngrx/store Initial Reducers"),T=new o.InjectionToken("@ngrx/store Internal Initial Reducers"),C=new o.InjectionToken("@ngrx/store Meta Reducers"),x=new o.InjectionToken("@ngrx/store Store Features"),O=new o.InjectionToken("@ngrx/store Internal Store Reducers"),S=new o.InjectionToken("@ngrx/store Internal Feature Reducers"),M=new o.InjectionToken("@ngrx/store Internal Feature Reducers Token"),E=new o.InjectionToken("@ngrx/store Feature Reducers"),P="@ngrx/store/init",I=function(e){function t(){return e.call(this,{type:P})||this}return y(t,e),t.prototype.next=function(t){if("undefined"==typeof t)throw new TypeError("Actions must be objects");if("undefined"==typeof t.type)throw new TypeError("Actions must have a type property");e.prototype.next.call(this,t)},t.prototype.complete=function(){},t.prototype.ngOnDestroy=function(){e.prototype.complete.call(this)},t}(r.BehaviorSubject),R=[I],D=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return y(t,e),t}(l.Observable),N=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return y(t,e),t}(I),j="@ngrx/store/update-reducers",L=function(e){function t(t,n,i,o){var r=e.call(this,o(i,n))||this;return r.dispatcher=t,r.initialState=n,r.reducers=i,r.reducerFactory=o,r}return y(t,e),t.prototype.addFeature=function(e){var t=e.reducers,n=e.initialState,i=e.key,o="function"==typeof t?function(e,i){return void 0===e&&(e=n),t(e,i)}:v(e.reducerFactory,e.metaReducers)(t,n);this.addReducer(i,o)},t.prototype.removeFeature=function(e){this.removeReducer(e.key)},t.prototype.addReducer=function(e,t){var n;this.reducers=Object.assign({},this.reducers,((n={})[e]=t,n)),this.updateReducers()},t.prototype.removeReducer=function(e){var t,n;this.reducers=(t=this.reducers,n=e,Object.keys(t).filter(function(e){return e!==n}).reduce(function(e,n){return Object.assign(e,((i={})[n]=t[n],i));var i},{})),this.updateReducers()},t.prototype.updateReducers=function(){this.next(this.reducerFactory(this.reducers,this.initialState)),this.dispatcher.next({type:j})},t.prototype.ngOnDestroy=function(){this.complete()},t}(r.BehaviorSubject),U=[L,{provide:D,useExisting:L},{provide:N,useExisting:I}],V=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return y(t,e),t.prototype.ngOnDestroy=function(){this.complete()},t}(u.Subject),F=[V],K=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return y(t,e),t}(l.Observable),B=function(e){function t(t,n,i,o){var r=e.call(this,o)||this,l=s.observeOn.call(t,a.queue),u=c.withLatestFrom.call(l,n),p=d.scan.call(u,H,o);return r.stateSubscription=p.subscribe({next:function(e){var t=e.action;r.next(e.state),i.next(t)}}),r}return y(t,e),t.prototype.ngOnDestroy=function(){this.stateSubscription.unsubscribe(),this.complete()},t}(r.BehaviorSubject);function H(e,t){void 0===e&&(e={state:void 0});var n=t[0];return{state:(0,t[1])(e.state,n),action:n}}B.INIT=P;var W=[B,{provide:K,useExisting:B}],z=function(e){function t(t,n,i){var o=e.call(this)||this;return o.actionsObserver=n,o.reducerManager=i,o.source=t,o}return y(t,e),t.prototype.select=function(e){for(var t,n=[],i=1;i'},i([r.assertUInt8,o("design:type",Number)],e.prototype,"majorVersion",void 0),i([r.assertUInt8,o("design:type",Number)],e.prototype,"minorVersion",void 0),i([r.assertUInt8,o("design:type",Number)],e.prototype,"patchVersion",void 0),i([r.assertUInt8,o("design:type",Number)],e.prototype,"brandId",void 0),i([r.assertUInt8,o("design:type",Number)],e.prototype,"deviceId",void 0),i([r.assertUInt32,o("design:type",Number)],e.prototype,"uniqueId",void 0),e}()},hTTC:function(e,t,n){"use strict";(function(t){var n=[],i="",o=/^on/;for(i in t)o.test(i)&&n.push(i.slice(2));e.exports=n}).call(t,n("DuR2"))},hYBY:function(e,t,n){"use strict";var i=n("TToO").__extends,o=n("VOfZ"),r=n("rCTf");function l(e){var t=e.subscriber;t.closed||(t.next(e.value),t.complete())}function u(e){var t=e.subscriber;t.closed||t.error(e.err)}t.PromiseObservable=function(e){function t(t,n){e.call(this),this.promise=t,this.scheduler=n}return i(t,e),t.create=function(e,n){return new t(e,n)},t.prototype._subscribe=function(e){var t=this,n=this.promise,i=this.scheduler;if(null==i)this._isScalar?e.closed||(e.next(this.value),e.complete()):n.then(function(n){t.value=n,t._isScalar=!0,e.closed||(e.next(n),e.complete())},function(t){e.closed||e.error(t)}).then(null,function(e){o.root.setTimeout(function(){throw e})});else if(this._isScalar){if(!e.closed)return i.schedule(l,0,{value:this.value,subscriber:e})}else n.then(function(n){t.value=n,t._isScalar=!0,e.closed||e.add(i.schedule(l,0,{value:n,subscriber:e}))},function(t){e.closed||e.add(i.schedule(u,0,{err:t,subscriber:e}))}).then(null,function(e){o.root.setTimeout(function(){throw e})})},t}(r.Observable)},iIfT:function(e,t,n){"use strict";var i=n("rCTf"),o=n("Ffu+");i.Observable.prototype.pairwise=o.pairwise},ijov:function(e,t,n){"use strict";var i=n("TToO").__extends,o=n("Yh8Q"),r=n("Xajo"),l=n("wAkD"),u=n("CURp"),a={};t.combineLatest=function(){for(var e=[],t=0;t-1?e:u({},e,{log:e.log.concat([{message:s.message,cssClass:"error"===s.level?i.error:i.standard}])});case o.a.MODULES_INFO_LOADED:return u({},e,{modules:t.payload});case o.a.RESET_USER_CONFIGURATION:case o.a.RESTORE_CONFIGURATION_FROM_BACKUP:return u({},e,{restoringUserConfiguration:!0});case o.a.HAS_BACKUP_USER_CONFIGURATION:return u({},e,{hasBackupUserConfiguration:t.payload});case o.a.RESTORE_CONFIGURATION_FROM_BACKUP_SUCCESS:return u({},e,{hasBackupUserConfiguration:!1});case o.a.RECOVERY_DEVICE:return u({},e,{updatingFirmware:!0,log:[{message:"",cssClass:i.standard}]});default:return e}},n.d(t,"k",function(){return s}),n.d(t,"i",function(){return c}),n.d(t,"h",function(){return d}),n.d(t,"g",function(){return p}),n.d(t,"l",function(){return f}),n.d(t,"e",function(){return h}),n.d(t,"f",function(){return y}),n.d(t,"d",function(){return m}),n.d(t,"a",function(){return g}),n.d(t,"b",function(){return v}),n.d(t,"c",function(){return b});var u=this&&this.__assign||Object.assign||function(e){for(var t,n=1,i=arguments.length;n=o.MacroActionId.KeyMacroAction&&t<=o.MacroActionId.LastKeyMacroAction)return(new r.KeyMacroAction).fromBinary(e);if(t>=o.MacroActionId.MouseButtonMacroAction&&t<=o.MacroActionId.LastMouseButtonMacroAction)return(new l.MouseButtonMacroAction).fromBinary(e);switch(t){case o.MacroActionId.MoveMouseMacroAction:return(new u.MoveMouseMacroAction).fromBinary(e);case o.MacroActionId.ScrollMouseMacroAction:return(new a.ScrollMouseMacroAction).fromBinary(e);case o.MacroActionId.DelayMacroAction:return(new s.DelayMacroAction).fromBinary(e);case o.MacroActionId.TextMacroAction:return(new c.TextMacroAction).fromBinary(e);default:throw"Invalid MacroAction first byte: "+t}},e.fromMacroAction=function(e){var t;return e instanceof r.KeyMacroAction?t=new r.KeyMacroAction(e):e instanceof l.MouseButtonMacroAction?t=new l.MouseButtonMacroAction(e):e instanceof u.MoveMouseMacroAction?t=new u.MoveMouseMacroAction(e):e instanceof a.ScrollMouseMacroAction?t=new a.ScrollMouseMacroAction(e):e instanceof s.DelayMacroAction?t=new s.DelayMacroAction(e):e instanceof c.TextMacroAction&&(t=new c.TextMacroAction(e)),t},e.fromJSONObject=function(e){switch(e.macroActionType){case o.macroActionType.KeyMacroAction:return(new r.KeyMacroAction).fromJsonObject(e);case o.macroActionType.MouseButtonMacroAction:return(new l.MouseButtonMacroAction).fromJsonObject(e);case o.macroActionType.MoveMouseMacroAction:return(new u.MoveMouseMacroAction).fromJsonObject(e);case o.macroActionType.ScrollMouseMacroAction:return(new a.ScrollMouseMacroAction).fromJsonObject(e);case o.macroActionType.DelayMacroAction:return(new s.DelayMacroAction).fromJsonObject(e);case o.macroActionType.TextMacroAction:return(new c.TextMacroAction).fromJsonObject(e);default:throw'Invalid MacroAction.macroActionType: "'+e.macroActionType+'"'}},e}()},kVUC:function(e,t,n){"use strict";n.d(t,"a",function(){return i});var i=function(e){return e[e.Linux=0]="Linux",e[e.Mac=1]="Mac",e[e.Windows=2]="Windows",e}({})},kZql:function(e,t,n){"use strict";n.d(t,"a",function(){return i});var i={production:!0}},kkb0:function(e,t,n){"use strict";var i=n("FDBB"),o=n("1KT0");t.mergeStatic=o.merge,t.merge=function(){for(var e=[],t=0;t>>=1)e.push(Boolean(1&t));return e},t.prototype.toString=function(){return''},t.prototype.hasButtons=function(){return 0!==this.mouseButtonsMask},t.prototype.isOnlyClickAction=function(){return this.action===u.MacroMouseSubAction.click},t.prototype.isOnlyHoldAction=function(){return this.action===u.MacroMouseSubAction.hold},t.prototype.isOnlyReleaseAction=function(){return this.action===u.MacroMouseSubAction.release},t.prototype.getName=function(){return"MouseButtonMacroAction"},o([l.assertEnum(u.MacroMouseSubAction),r("design:type",Number)],t.prototype,"action",void 0),o([l.assertUInt8,r("design:type",Number)],t.prototype,"mouseButtonsMask",void 0),t}(u.MacroAction)},lgiQ:function(e,t,n){"use strict";var i=n("Yh8Q");t.of=i.ArrayObservable.of},lyLw:function(e,t,n){"use strict";var i=n("Nkju"),o=n("WWez");e.exports=function(e,t){var n=t||{},r={};return void 0===e&&(e={}),e.on=function(t,n){return r[t]?r[t].push(n):r[t]=[n],e},e.once=function(t,n){return n._once=!0,e.on(t,n),e},e.off=function(t,n){var i=arguments.length;if(1===i)delete r[t];else if(0===i)r={};else{var o=r[t];if(!o)return e;o.splice(o.indexOf(n),1)}return e},e.emit=function(){var t=i(arguments);return e.emitterSnapshot(t.shift()).apply(this,t)},e.emitterSnapshot=function(t){var l=(r[t]||[]).slice(0);return function(){var r=i(arguments),u=this||e;if("error"===t&&!1!==n.throws&&!l.length)throw 1===r.length?r[0]:r;return l.forEach(function(i){n.async?o(i,r,u):i.apply(u,r),i._once&&e.off(t,i)}),e}},e}},mbVC:function(e,t,n){"use strict";var i=n("VOfZ");function o(e){var t,n=e.Symbol;return"function"==typeof n?n.observable?t=n.observable:(t=n("observable"),n.observable=t):t="@@observable",t}t.getSymbolObservable=o,t.observable=o(i.root),t.$$observable=t.observable},mmVS:function(e,t,n){"use strict";var i=n("TToO").__extends,o=n("SKH6"),r=n("B00U"),l=n("yrou"),u=n("r8ZY"),a=function(e){function t(t,n,i){switch(e.call(this),this.syncErrorValue=null,this.syncErrorThrown=!1,this.syncErrorThrowable=!1,this.isStopped=!1,arguments.length){case 0:this.destination=l.empty;break;case 1:if(!t){this.destination=l.empty;break}if("object"==typeof t){if(c(t)){var o=t[u.rxSubscriber]();this.syncErrorThrowable=o.syncErrorThrowable,this.destination=o,o.add(this)}else this.syncErrorThrowable=!0,this.destination=new s(this,t);break}default:this.syncErrorThrowable=!0,this.destination=new s(this,t,n,i)}}return i(t,e),t.prototype[u.rxSubscriber]=function(){return this},t.create=function(e,n,i){var o=new t(e,n,i);return o.syncErrorThrowable=!1,o},t.prototype.next=function(e){this.isStopped||this._next(e)},t.prototype.error=function(e){this.isStopped||(this.isStopped=!0,this._error(e))},t.prototype.complete=function(){this.isStopped||(this.isStopped=!0,this._complete())},t.prototype.unsubscribe=function(){this.closed||(this.isStopped=!0,e.prototype.unsubscribe.call(this))},t.prototype._next=function(e){this.destination.next(e)},t.prototype._error=function(e){this.destination.error(e),this.unsubscribe()},t.prototype._complete=function(){this.destination.complete(),this.unsubscribe()},t.prototype._unsubscribeAndRecycle=function(){var e=this._parent,t=this._parents;return this._parent=null,this._parents=null,this.unsubscribe(),this.closed=!1,this.isStopped=!1,this._parent=e,this._parents=t,this},t}(r.Subscription);t.Subscriber=a;var s=function(e){function t(t,n,i,r){var u;e.call(this),this._parentSubscriber=t;var a=this;o.isFunction(n)?u=n:n&&(u=n.next,i=n.error,r=n.complete,n!==l.empty&&(a=Object.create(n),o.isFunction(a.unsubscribe)&&this.add(a.unsubscribe.bind(a)),a.unsubscribe=this.unsubscribe.bind(this))),this._context=a,this._next=u,this._error=i,this._complete=r}return i(t,e),t.prototype.next=function(e){if(!this.isStopped&&this._next){var t=this._parentSubscriber;t.syncErrorThrowable?this.__tryOrSetError(t,this._next,e)&&this.unsubscribe():this.__tryOrUnsub(this._next,e)}},t.prototype.error=function(e){if(!this.isStopped){var t=this._parentSubscriber;if(this._error)t.syncErrorThrowable?(this.__tryOrSetError(t,this._error,e),this.unsubscribe()):(this.__tryOrUnsub(this._error,e),this.unsubscribe());else{if(!t.syncErrorThrowable)throw this.unsubscribe(),e;t.syncErrorValue=e,t.syncErrorThrown=!0,this.unsubscribe()}}},t.prototype.complete=function(){var e=this;if(!this.isStopped){var t=this._parentSubscriber;if(this._complete){var n=function(){return e._complete.call(e._context)};t.syncErrorThrowable?(this.__tryOrSetError(t,n),this.unsubscribe()):(this.__tryOrUnsub(n),this.unsubscribe())}else this.unsubscribe()}},t.prototype.__tryOrUnsub=function(e,t){try{e.call(this._context,t)}catch(e){throw this.unsubscribe(),e}},t.prototype.__tryOrSetError=function(e,t,n){try{t.call(this._context,n)}catch(t){return e.syncErrorValue=t,e.syncErrorThrown=!0,!0}return!1},t.prototype._unsubscribe=function(){var e=this._parentSubscriber;this._context=null,this._parentSubscriber=null,e.unsubscribe()},t}(a);function c(e){return e instanceof a||"syncErrorThrowable"in e&&e[u.rxSubscriber]}},nErl:function(e,t){(function(t){e.exports=t}).call(t,{})},oBYf:function(e,t,n){"use strict";var i=n("ANGw");t.concatMap=function(e,t){return i.mergeMap(e,t,1)}},oZkx:function(e,t,n){"use strict";var i=n("rKQy");t.concatAll=function(){return i.mergeAll(1)}},ob4r:function(e,t,n){"use strict";var i={},o="(?:^|\\s)",r="(?:\\s|$)";function l(e){var t=i[e];return t?t.lastIndex=0:i[e]=t=new RegExp(o+e+r,"g"),t}e.exports={add:function(e,t){var n=e.className;n.length?l(t).test(n)||(e.className+=" "+t):e.className=t},rm:function(e,t){e.className=e.className.replace(l(t)," ").trim()}}},offc:function(e,t,n){"use strict";var i=n("TToO").__extends,o=n("wAkD"),r=n("CURp");t.withLatestFrom=function(){for(var e=[],t=0;t0){var l=r.indexOf(n);-1!==l&&r.splice(l,1)}},t.prototype.notifyComplete=function(){},t.prototype._next=function(e){if(0===this.toRespond.length){var t=[e].concat(this.values);this.project?this._tryProject(t):this.destination.next(t)}},t.prototype._tryProject=function(e){var t;try{t=this.project.apply(this,e)}catch(e){return void this.destination.error(e)}this.destination.next(t)},t}(o.OuterSubscriber)},okk1:function(e,t,n){"use strict";var i=n("rCTf"),o=n("bBiI");i.Observable.prototype.first=o.first},ov8r:function(e,t,n){"use strict";var i=n("xgwM").__decorate,o=n("xgwM").__metadata;Object.defineProperty(t,"__esModule",{value:!0});var r=n("CmJd"),l=n("4uS6");t.Module=function(){function e(e){e&&(this.id=e.id,this.keyActions=e.keyActions.map(function(e){return l.KeyActionHelper.createKeyAction(e)}))}return e.prototype.fromJsonObject=function(e,t){return this.id=e.id,this.keyActions=e.keyActions.map(function(e){return l.KeyActionHelper.createKeyAction(e,t)}),this},e.prototype.fromBinary=function(e,t){this.id=e.readUInt8();var n=e.readCompactLength();this.keyActions=[];for(var i=0;i'},e.prototype.renameKeymap=function(t,n){var i,o=this,r=!1;if(this.keyActions.forEach(function(e,l){if(e){var u=e.renameKeymap(t,n);u!==e&&(r||(i=o.keyActions.slice(),r=!0),i[l]=u)}}),r){var l=Object.assign(new e,this);return l.keyActions=i,l}return this},i([r.assertUInt8,o("design:type",Number)],e.prototype,"id",void 0),e}()},"p/p0":function(e,t,n){"use strict";var i=n("TToO").__extends,o=n("mmVS"),r=n("F7Al");t.last=function(e,t,n){return function(i){return i.lift(new l(e,t,n,i))}};var l=function(){function e(e,t,n,i){this.predicate=e,this.resultSelector=t,this.defaultValue=n,this.source=i}return e.prototype.call=function(e,t){return t.subscribe(new u(e,this.predicate,this.resultSelector,this.defaultValue,this.source))},e}(),u=function(e){function t(t,n,i,o,r){e.call(this,t),this.predicate=n,this.resultSelector=i,this.defaultValue=o,this.source=r,this.hasValue=!1,this.index=0,"undefined"!=typeof o&&(this.lastValue=o,this.hasValue=!0)}return i(t,e),t.prototype._next=function(e){var t=this.index++;if(this.predicate)this._tryPredicate(e,t);else{if(this.resultSelector)return void this._tryResultSelector(e,t);this.lastValue=e,this.hasValue=!0}},t.prototype._tryPredicate=function(e,t){var n;try{n=this.predicate(e,t,this.source)}catch(e){return void this.destination.error(e)}if(n){if(this.resultSelector)return void this._tryResultSelector(e,t);this.lastValue=e,this.hasValue=!0}},t.prototype._tryResultSelector=function(e,t){var n;try{n=this.resultSelector(e,t)}catch(e){return void this.destination.error(e)}this.lastValue=n,this.hasValue=!0},t.prototype._complete=function(){var e=this.destination;this.hasValue?(e.next(this.lastValue),e.complete()):e.error(new r.EmptyError)},t}(o.Subscriber)},pgP5:function(e,t,n){"use strict";var i=n("dt7L");t.reduce=function(e,t){return arguments.length>=2?i.reduce(e,t)(this):i.reduce(e)(this)}},piny:function(e,t,n){"use strict";var i=n("dt7L");function o(e,t,n){return 0===n?[t]:(e.push(t),e)}t.toArray=function(){return i.reduce(o,[])}},pxzT:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n("4uS6");(t.ConfigSerializer||(t.ConfigSerializer={})).resolveSwitchKeymapActions=function(e){for(var t=0,n=e;t'},t.prototype.getName=function(){return"TextMacroAction"},t}(o.MacroAction)},tXwt:function(e,t,n){"use strict";t.b=function(e,t){switch(void 0===e&&(e=o),t.type){case i.a.UPDATE_AVAILABLE:return(n=Object.assign({},e)).updateAvailable=!0,n;case i.a.UPDATE_DOWNLOADED:return(n=Object.assign({},e)).updateDownloaded=!0,n;case i.a.DO_NOT_UPDATE_APP:var n;return(n=Object.assign({},e)).doNotUpdateApp=!0,n;default:return e}},n.d(t,"a",function(){return r});var i=n("va3Z"),o={updateAvailable:!1,updateDownloaded:!1,doNotUpdateApp:!1},r=function(e){return e.updateDownloaded&&!e.doNotUpdateApp}},td8d:function(e,t,n){"use strict";var i=n("UYy0");t.scan=function(e,t){return arguments.length>=2?i.scan(e,t)(this):i.scan(e)(this)}},u2wr:function(e,t,n){"use strict";var i=n("offc");t.withLatestFrom=function(){for(var e=[],t=0;t>1,c=-7,d=n?o-1:0,p=n?-1:1,f=e[t+d];for(d+=p,r=f&(1<<-c)-1,f>>=-c,c+=u;c>0;r=256*r+e[t+d],d+=p,c-=8);for(l=r&(1<<-c)-1,r>>=-c,c+=i;c>0;l=256*l+e[t+d],d+=p,c-=8);if(0===r)r=1-s;else{if(r===a)return l?NaN:1/0*(f?-1:1);l+=Math.pow(2,i),r-=s}return(f?-1:1)*l*Math.pow(2,r-i)},t.write=function(e,t,n,i,o,r){var l,u,a,s=8*r-o-1,c=(1<>1,p=23===o?Math.pow(2,-24)-Math.pow(2,-77):0,f=i?0:r-1,h=i?1:-1,y=t<0||0===t&&1/t<0?1:0;for(t=Math.abs(t),isNaN(t)||t===1/0?(u=isNaN(t)?1:0,l=c):(l=Math.floor(Math.log(t)/Math.LN2),t*(a=Math.pow(2,-l))<1&&(l--,a*=2),(t+=l+d>=1?p/a:p*Math.pow(2,1-d))*a>=2&&(l++,a/=2),l+d>=c?(u=0,l=c):l+d>=1?(u=(t*a-1)*Math.pow(2,o),l+=d):(u=t*Math.pow(2,d-1)*Math.pow(2,o),l=0));o>=8;e[n+f]=255&u,f+=h,u/=256,o-=8);for(l=l<0;e[n+f]=255&l,f+=h,l/=256,s-=8);e[n+f-h]|=128*y}},va3Z:function(e,t,n){"use strict";n.d(t,"a",function(){return r}),n.d(t,"c",function(){return l}),n.d(t,"b",function(){return u}),n.d(t,"d",function(){return a}),n.d(t,"e",function(){return s});var i=n("gI3A"),o=(n.n(i),"[app-update] "),r={UPDATE_AVAILABLE:Object(i.type)(o+"update available"),UPDATE_APP:Object(i.type)(o+"update app"),DO_NOT_UPDATE_APP:Object(i.type)(o+"do not update app"),UPDATE_DOWNLOADED:Object(i.type)(o+"update downloaded"),UPDATING:Object(i.type)(o+"updating"),UPDATE_ERROR:Object(i.type)(o+"error")},l=function(){return function(){this.type=r.UPDATE_APP}}(),u=function(){return function(){this.type=r.DO_NOT_UPDATE_APP}}(),a=function(){return function(){this.type=r.UPDATE_DOWNLOADED}}(),s=function(){return function(e){this.payload=e,this.type=r.UPDATE_ERROR}}()},vvwv:function(e,t,n){"use strict";var i=n("jBEF");t.empty=i.EmptyObservable.create},vx8o:function(e,t,n){"use strict";(function(t){var i=n("lyLw"),o=n("qjx7"),r=n("ob4r"),l=document,u=l.documentElement;function a(e,n,i,r){t.navigator.pointerEnabled?o[n](e,{mouseup:"pointerup",mousedown:"pointerdown",mousemove:"pointermove"}[i],r):t.navigator.msPointerEnabled?o[n](e,{mouseup:"MSPointerUp",mousedown:"MSPointerDown",mousemove:"MSPointerMove"}[i],r):(o[n](e,{mouseup:"touchend",mousedown:"touchstart",mousemove:"touchmove"}[i],r),o[n](e,i,r))}function s(e){if(void 0!==e.touches)return e.touches.length;if(void 0!==e.which&&0!==e.which)return e.which;if(void 0!==e.buttons)return e.buttons;var t=e.button;return void 0!==t?1&t?1:2&t?3:4&t?2:0:void 0}function c(e,n){return"undefined"!=typeof t[n]?t[n]:u.clientHeight?u[e]:l.body[e]}function d(e,t,n){var i,o=e||{},r=o.className;return o.className+=" gu-hide",i=l.elementFromPoint(t,n),o.className=r,i}function p(){return!1}function f(){return!0}function h(e){return e.width||e.right-e.left}function y(e){return e.height||e.bottom-e.top}function m(e){return e.parentNode===l?null:e.parentNode}function g(e){return"INPUT"===e.tagName||"TEXTAREA"===e.tagName||"SELECT"===e.tagName||function e(t){return!!t&&"false"!==t.contentEditable&&("true"===t.contentEditable||e(m(t)))}(e)}function v(e){return e.nextElementSibling||function(){var t=e;do{t=t.nextSibling}while(t&&1!==t.nodeType);return t}()}function b(e,t){var n=function(e){return e.targetTouches&&e.targetTouches.length?e.targetTouches[0]:e.changedTouches&&e.changedTouches.length?e.changedTouches[0]:e}(t),i={pageX:"clientX",pageY:"clientY"};return e in i&&!(e in n)&&i[e]in n&&(e=i[e]),n[e]}e.exports=function(e,t){var n,k,_,w,A,T,C,x,O,S,M;1===arguments.length&&!1===Array.isArray(e)&&(t=e,e=[]);var E,P=null,I=t||{};void 0===I.moves&&(I.moves=f),void 0===I.accepts&&(I.accepts=f),void 0===I.invalid&&(I.invalid=function(){return!1}),void 0===I.containers&&(I.containers=e||[]),void 0===I.isContainer&&(I.isContainer=p),void 0===I.copy&&(I.copy=!1),void 0===I.copySortSource&&(I.copySortSource=!1),void 0===I.revertOnSpill&&(I.revertOnSpill=!1),void 0===I.removeOnSpill&&(I.removeOnSpill=!1),void 0===I.direction&&(I.direction="vertical"),void 0===I.ignoreInputTextSelection&&(I.ignoreInputTextSelection=!0),void 0===I.mirrorContainer&&(I.mirrorContainer=l.body);var R=i({containers:I.containers,start:function(e){var t=K(e);t&&B(t)},end:H,cancel:G,remove:q,destroy:function(){N(!0),z({})},canMove:function(e){return!!K(e)},dragging:!1});return!0===I.removeOnSpill&&R.on("over",function(e){r.rm(e,"gu-hide")}).on("out",function(e){R.dragging&&r.add(e,"gu-hide")}),N(),R;function D(e){return-1!==R.containers.indexOf(e)||I.isContainer(e)}function N(e){var t=e?"remove":"add";a(u,t,"mousedown",V),a(u,t,"mouseup",z)}function j(e){a(u,e?"remove":"add","mousemove",F)}function L(e){var t=e?"remove":"add";o[t](u,"selectstart",U),o[t](u,"click",U)}function U(e){E&&e.preventDefault()}function V(e){if(T=e.clientX,C=e.clientY,1===s(e)&&!e.metaKey&&!e.ctrlKey){var t=e.target,n=K(t);n&&(E=n,j(),"mousedown"===e.type&&(g(t)?t.focus():e.preventDefault()))}}function F(e){if(E)if(0!==s(e)){if(void 0===e.clientX||e.clientX!==T||void 0===e.clientY||e.clientY!==C){if(I.ignoreInputTextSelection){var t=b("clientX",e),i=b("clientY",e);if(g(l.elementFromPoint(t,i)))return}var o=E;j(!0),L(),H(),B(o);var d,p={left:(d=_.getBoundingClientRect()).left+c("scrollLeft","pageXOffset"),top:d.top+c("scrollTop","pageYOffset")};w=b("pageX",e)-p.left,A=b("pageY",e)-p.top,r.add(S||_,"gu-transit"),function(){if(!n){var e=_.getBoundingClientRect();(n=_.cloneNode(!0)).style.width=h(e)+"px",n.style.height=y(e)+"px",r.rm(n,"gu-transit"),r.add(n,"gu-mirror"),I.mirrorContainer.appendChild(n),a(u,"add","mousemove",Z),r.add(I.mirrorContainer,"gu-unselectable"),R.emit("cloned",n,_,"mirror")}}(),Z(e)}}else z({})}function K(e){if(!(R.dragging&&n||D(e))){for(var t=e;m(e)&&!1===D(m(e));){if(I.invalid(e,t))return;if(!(e=m(e)))return}var i=m(e);if(i&&!I.invalid(e,t)&&I.moves(e,i,t,v(e)))return{item:e,source:i}}}function B(e){("boolean"==typeof I.copy?I.copy:I.copy(e.item,e.source))&&(S=e.item.cloneNode(!0),R.emit("cloned",S,e.item,"copy")),k=e.source,_=e.item,x=O=v(e.item),R.dragging=!0,R.emit("drag",_,k)}function H(){if(R.dragging){var e=S||_;$(e,m(e))}}function W(){E=!1,j(!0),L(!0)}function z(e){if(W(),R.dragging){var t=S||_,i=b("clientX",e),o=b("clientY",e),r=J(d(n,i,o),i,o);r&&(S&&I.copySortSource||!S||r!==k)?$(t,r):I.removeOnSpill?q():G()}}function $(e,t){var n=m(e);S&&I.copySortSource&&t===k&&n.removeChild(_),Q(t)?R.emit("cancel",e,k,k):R.emit("drop",e,t,k,O),Y()}function q(){if(R.dragging){var e=S||_,t=m(e);t&&t.removeChild(e),R.emit(S?"cancel":"remove",e,t,k),Y()}}function G(e){if(R.dragging){var t=arguments.length>0?e:I.revertOnSpill,n=S||_,i=m(n),o=Q(i);!1===o&&t&&(S?i&&i.removeChild(S):k.insertBefore(n,x)),o||t?R.emit("cancel",n,k,k):R.emit("drop",n,i,k,O),Y()}}function Y(){var e=S||_;W(),n&&(r.rm(I.mirrorContainer,"gu-unselectable"),a(u,"remove","mousemove",Z),m(n).removeChild(n),n=null),e&&r.rm(e,"gu-transit"),M&&clearTimeout(M),R.dragging=!1,P&&R.emit("out",e,P,k),R.emit("dragend",e),k=_=S=x=O=M=P=null}function Q(e,t){var i;return i=void 0!==t?t:n?O:v(S||_),e===k&&i===x}function J(e,t,n){for(var i=e;i&&!o();)i=m(i);return i;function o(){if(!1===D(i))return!1;var o=X(i,e),r=ee(i,o,t,n);return!!Q(i,r)||I.accepts(_,i,k,r)}}function Z(e){if(n){e.preventDefault();var t=b("clientX",e),i=b("clientY",e),o=i-A;n.style.left=t-w+"px",n.style.top=o+"px";var r=S||_,l=d(n,t,i),u=J(l,t,i),a=null!==u&&u!==P;(a||null===u)&&(P&&f("out"),P=u,a&&f("over"));var s=m(r);if(u!==k||!S||I.copySortSource){var c,p=X(u,l);if(null!==p)c=ee(u,p,t,i);else{if(!0!==I.revertOnSpill||S)return void(S&&s&&s.removeChild(r));c=x,u=k}(null===c&&a||c!==r&&c!==v(r))&&(O=c,u.insertBefore(r,c),R.emit("shadow",r,u,k))}else s&&s.removeChild(r)}function f(e){R.emit(e,r,P,k)}}function X(e,t){for(var n=t;n!==e&&m(n)!==e;)n=m(n);return n===u?null:n}function ee(e,t,n,i){var o,r="horizontal"===I.direction;return t!==e?(o=t.getBoundingClientRect(),(r?n>o.left+h(o)/2:i>o.top+y(o)/2)?v(t):t):function(){var t,o,l,u=e.children.length;for(t=0;tn)return o;if(!r&&l.top+l.height/2>i)return o}return null}()}}}).call(t,n("DuR2"))},"w+X5":function(e,t,n){"use strict";n.d(t,"a",function(){return r}),n.d(t,"h",function(){return l}),n.d(t,"c",function(){return u}),n.d(t,"d",function(){return a}),n.d(t,"b",function(){return s}),n.d(t,"i",function(){return c}),n.d(t,"e",function(){return d}),n.d(t,"f",function(){return p}),n.d(t,"g",function(){return f});var i=n("gI3A"),o=(n.n(i),"[app-update-config] "),r={TOGGLE_CHECK_FOR_UPDATE_ON_STARTUP:Object(i.type)(o+"Check for update on startup"),CHECK_FOR_UPDATE_NOW:Object(i.type)(o+"Check for update now"),CHECK_FOR_UPDATE_SUCCESS:Object(i.type)(o+"Check for update success"),CHECK_FOR_UPDATE_FAILED:Object(i.type)(o+"Check for update faild"),TOGGLE_PRE_RELEASE_FLAG:Object(i.type)(o+"Toggle pre release update flag"),LOAD_AUTO_UPDATE_SETTINGS:Object(i.type)(o+"Load auto update settings"),LOAD_AUTO_UPDATE_SETTINGS_SUCCESS:Object(i.type)(o+"Load auto update settings success"),SAVE_AUTO_UPDATE_SETTINGS_SUCCESS:Object(i.type)(o+"Save auto update settings success")},l=function(){return function(e){this.payload=e,this.type=r.TOGGLE_CHECK_FOR_UPDATE_ON_STARTUP}}(),u=function(){return function(){this.type=r.CHECK_FOR_UPDATE_NOW}}(),a=function(){return function(e){this.payload=e,this.type=r.CHECK_FOR_UPDATE_SUCCESS}}(),s=function(){return function(e){this.payload=e,this.type=r.CHECK_FOR_UPDATE_FAILED}}(),c=function(){return function(e){this.payload=e,this.type=r.TOGGLE_PRE_RELEASE_FLAG}}(),d=function(){return function(){this.type=r.LOAD_AUTO_UPDATE_SETTINGS_SUCCESS}}(),p=function(){return function(e){this.payload=e,this.type=r.LOAD_AUTO_UPDATE_SETTINGS_SUCCESS}}(),f=function(){return function(){this.type=r.SAVE_AUTO_UPDATE_SETTINGS_SUCCESS}}()},wAkD:function(e,t,n){"use strict";var i=n("TToO").__extends,o=n("mmVS");t.OuterSubscriber=function(e){function t(){e.apply(this,arguments)}return i(t,e),t.prototype.notifyNext=function(e,t,n,i,o){this.destination.next(t)},t.prototype.notifyError=function(e,t){this.destination.error(e)},t.prototype.notifyComplete=function(e){this.destination.complete()},t}(o.Subscriber)},wUn1:function(e,t,n){"use strict";var i=n("rCTf"),o=n("ack3");i.Observable.prototype.filter=o.filter},wogf:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n("H5FS"),o=n("4KnF"),r=n("I5Xr"),l=n("MkTX"),u=n("9PEG"),a=n("78zf"),s=n("Fq1u"),c=n("HiVc"),d=n("Oz3Z");function p(e){return e.hasSecondaryRoleAction()||e.hasActiveModifier()||e.hasScancode()&&d.isScancodeExists(e.scancode)}t.Helper=function(){function e(){}return e.createKeyAction=function(t,n){return t instanceof o.KeyAction?e.fromKeyAction(t):t instanceof i.UhkBuffer?e.fromUhkBuffer(t,n):e.fromJSONObject(t,n)},e.fromUhkBuffer=function(e,t){var n=e.readUInt8();if(e.backtrack(),n>=o.KeyActionId.KeystrokeAction&&n',styles:["\n :host {\n display: block;\n margin-top: 1rem;\n margin-bottom: 1rem;\n }\n "],providers:[{provide:r.NG_VALUE_ACCESSOR,useExisting:o.forwardRef(function(){return e}),multi:!0}]}]}],e.propDecorators={disabled:[{type:o.Input}],behaviour:[{type:o.Input}],connect:[{type:o.Input}],limit:[{type:o.Input}],min:[{type:o.Input}],max:[{type:o.Input}],step:[{type:o.Input}],format:[{type:o.Input}],pageSteps:[{type:o.Input}],config:[{type:o.Input}],ngModel:[{type:o.Input}],keyboard:[{type:o.Input}],onKeydown:[{type:o.Input}],formControl:[{type:o.Input}],tooltips:[{type:o.Input}],change:[{type:o.Output}],update:[{type:o.Output}],slide:[{type:o.Output}],set:[{type:o.Output}],start:[{type:o.Output}],end:[{type:o.Output}]},e}();t.NouisliderComponent=u,t.NouisliderModule=function(){function e(){}return e.decorators=[{type:o.NgModule,args:[{imports:[],exports:[u],declarations:[u]}]}],e}()},xAJs:function(e,t,n){"use strict";var i=n("9omE");t.map=function(e,t){return i.map(e,t)(this)}},xOQQ:function(e,t,n){"use strict";var i=n("rCTf"),o=n("U9ky");i.Observable.prototype.pluck=o.pluck},"xW7+":function(e,t,n){"use strict";n.d(t,"a",function(){return i});var i=function(e){return e[e.ANSI=0]="ANSI",e[e.ISO=1]="ISO",e}({})},xgwM:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.__extends=function(e,t){function n(){this.constructor=e}i(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)},n.d(t,"__assign",function(){return o}),t.__rest=function(e,t){var n={};for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&t.indexOf(i)<0&&(n[i]=e[i]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(i=Object.getOwnPropertySymbols(e);o=0;u--)(o=e[u])&&(l=(r<3?o(l):r>3?o(t,n,l):o(t,n))||l);return r>3&&l&&Object.defineProperty(t,n,l),l},t.__param=function(e,t){return function(n,i){t(n,i,e)}},t.__metadata=function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)},t.__awaiter=function(e,t,n,i){return new(n||(n=Promise))(function(o,r){function l(e){try{a(i.next(e))}catch(e){r(e)}}function u(e){try{a(i.throw(e))}catch(e){r(e)}}function a(e){e.done?o(e.value):new n(function(t){t(e.value)}).then(l,u)}a((i=i.apply(e,t||[])).next())})},t.__generator=function(e,t){var n,i,o,r,l={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return r={next:u(0),throw:u(1),return:u(2)},"function"==typeof Symbol&&(r[Symbol.iterator]=function(){return this}),r;function u(r){return function(u){return function(r){if(n)throw new TypeError("Generator is already executing.");for(;l;)try{if(n=1,i&&(o=i[2&r[0]?"return":r[0]?"throw":"next"])&&!(o=o.call(i,r[1])).done)return o;switch(i=0,o&&(r=[0,o.value]),r[0]){case 0:case 1:o=r;break;case 4:return l.label++,{value:r[1],done:!1};case 5:l.label++,i=r[1],r=[0];continue;case 7:r=l.ops.pop(),l.trys.pop();continue;default:if(!(o=(o=l.trys).length>0&&o[o.length-1])&&(6===r[0]||2===r[0])){l=0;continue}if(3===r[0]&&(!o||r[1]>o[0]&&r[1]1||a(e,t)})})}function a(e,t){try{(n=o[e](t)).value instanceof u?Promise.resolve(n.value.v).then(s,c):d(r[0][2],n)}catch(e){d(r[0][3],e)}var n}function s(e){a("next",e)}function c(e){a("throw",e)}function d(e,t){e(t),r.shift(),r.length&&a(r[0][0],r[0][1])}},t.__asyncDelegator=function(e){var t,n;return t={},i("next"),i("throw",function(e){throw e}),i("return"),t[Symbol.iterator]=function(){return this},t;function i(i,o){e[i]&&(t[i]=function(t){return(n=!n)?{value:u(e[i](t)),done:"return"===i}:o?o(t):t})}},t.__asyncValues=function(e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var t=e[Symbol.asyncIterator];return t?t.call(e):"function"==typeof r?r(e):e[Symbol.iterator]()},t.__makeTemplateObject=function(e,t){return Object.defineProperty?Object.defineProperty(e,"raw",{value:t}):e.raw=t,e},t.__importStar=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t},t.__importDefault=function(e){return e&&e.__esModule?e:{default:e}};var i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},o=Object.assign||function(e){for(var t,n=1,i=arguments.length;n=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}}}function l(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var i,o,r=n.call(e),l=[];try{for(;(void 0===t||t-- >0)&&!(i=r.next()).done;)l.push(i.value)}catch(e){o={error:e}}finally{try{i&&!i.done&&(n=r.return)&&n.call(r)}finally{if(o)throw o.error}}return l}function u(e){return this instanceof u?(this.v=e,this):new u(e)}},xiuF:function(e,t,n){"use strict";var i=n("TToO").__decorate,o=n("TToO").__metadata,r=n("WT6e"),l=(n("LKU8"),n("Ilbw")),u=function(){function e(e,t){this.el=e,this.dragulaService=t,this.container=e.nativeElement}return e.prototype.ngOnInit=function(){var e=this,t=this.dragulaService.find(this.dragula),n=function(){e.dragulaModel&&(e.drake.models?e.drake.models.push(e.dragulaModel):e.drake.models=[e.dragulaModel])};t?(this.drake=t.drake,n(),this.drake.containers.push(this.container)):(this.drake=l.dragula([this.container],Object.assign({},this.dragulaOptions)),n(),this.dragulaService.add(this.dragula,this.drake))},e.prototype.ngOnChanges=function(e){if(e&&e.dragulaModel&&this.drake)if(this.drake.models){var t=this.drake.models.indexOf(e.dragulaModel.previousValue);this.drake.models.splice(t,1,e.dragulaModel.currentValue)}else this.drake.models=[e.dragulaModel.currentValue]},e}();i([r.Input(),o("design:type",String)],u.prototype,"dragula",void 0),i([r.Input(),o("design:type",Object)],u.prototype,"dragulaModel",void 0),i([r.Input(),o("design:type",Object)],u.prototype,"dragulaOptions",void 0),u=i([r.Directive({selector:"[dragula]"})],u),t.DragulaDirective=u},y1XC:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.LogService=function(){function e(){}return e.prototype.error=function(){for(var e=[],t=0;t h2[_ngcontent-%COMP%]{margin-top:10px}.spin-logo[_ngcontent-%COMP%]{-webkit-animation:2s ease-in-out infinite spin;animation:2s ease-in-out infinite spin}@-webkit-keyframes spin{0%{-webkit-transform:rotate(0);transform:rotate(0)}100%,50%{-webkit-transform:rotate(360deg);transform:rotate(360deg)}}@keyframes spin{0%{-webkit-transform:rotate(0);transform:rotate(0)}100%,50%{-webkit-transform:rotate(360deg);transform:rotate(360deg)}}"]],data:{}});function O(e){return o["\u0275vid"](2,[(e()(),o["\u0275eld"](0,0,null,null,14,"span",[["class","uhk-message-wrapper"]],null,null,null,null,null)),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275eld"](2,0,null,null,2,"img",[["class","agent-logo spin-logo"],["src","assets/images/agent-icon.png"]],null,null,null,null,null)),o["\u0275did"](3,278528,null,0,p.i,[o.IterableDiffers,o.KeyValueDiffers,o.ElementRef,o.Renderer2],{klass:[0,"klass"],ngClass:[1,"ngClass"]},null),o["\u0275pod"](4,{"spin-logo":0}),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275eld"](6,0,null,null,7,"div",[["class","messages"]],null,null,null,null,null)),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275eld"](8,0,null,null,1,"h1",[],null,null,null,null,null)),(e()(),o["\u0275ted"](9,null,[" "," "])),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275eld"](11,0,null,null,1,"h2",[],null,null,null,null,null)),(e()(),o["\u0275ted"](12,null,[" "," "])),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275ted"](-1,null,["\n"])),(e()(),o["\u0275ted"](-1,null,["\n"]))],function(e,t){e(t,3,0,"agent-logo spin-logo",e(t,4,0,t.component.rotateLogo))},function(e,t){var n=t.component;e(t,9,0,n.header),e(t,12,0,n.subtitle)})}n("q3ik"),n("LppN"),n("EoAl");var S=function(){},M=o["\u0275crt"]({encapsulation:2,styles:[],data:{}});function E(e){return o["\u0275vid"](0,[(e()(),o["\u0275eld"](0,0,null,null,1,"uhk-message",[["header","Cannot find your UHK"],["subtitle","Please plug it in!"]],null,null,null,O,x)),o["\u0275did"](1,49152,null,0,C,[],{header:[0,"header"],subtitle:[1,"subtitle"]},null),(e()(),o["\u0275ted"](-1,null,["\n"]))],function(e,t){e(t,1,0,"Cannot find your UHK","Please plug it in!")},null)}var P=o["\u0275ccf"]("missing-device",S,function(e){return o["\u0275vid"](0,[(e()(),o["\u0275eld"](0,0,null,null,1,"missing-device",[],null,null,null,E,M)),o["\u0275did"](1,49152,null,0,S,[],null,null)],null,null)},{},{},[]),I=n("OE0E"),R=new o.InjectionToken("WindowToken");function D(){return window}var N=function(){},j=function(){function e(e,t){this.document=e,this.window=t}return Object.defineProperty(e.prototype,"isSupported",{get:function(){return!!this.document.queryCommandSupported&&!!this.document.queryCommandSupported("copy")},enumerable:!0,configurable:!0}),e.prototype.isTargetValid=function(e){if(e instanceof HTMLInputElement||e instanceof HTMLTextAreaElement){if(e.hasAttribute("disabled"))throw new Error('Invalid "target" attribute. Please use "readonly" instead of "disabled" attribute');return!0}throw new Error("Target should be input or textarea")},e.prototype.copyFromInputElement=function(e){try{this.selectTarget(e);var t=this.copyText();return this.clearSelection(e,this.window),t}catch(e){return!1}},e.prototype.copyFromContent=function(e){return this.tempTextArea||(this.tempTextArea=this.createTempTextArea(this.document,this.window),this.document.body.appendChild(this.tempTextArea)),this.tempTextArea.value=e,this.copyFromInputElement(this.tempTextArea)},e.prototype.destroy=function(){this.tempTextArea&&(this.document.body.removeChild(this.tempTextArea),this.tempTextArea=void 0)},e.prototype.selectTarget=function(e){return e.select(),e.setSelectionRange(0,e.value.length),e.value.length},e.prototype.copyText=function(){return this.document.execCommand("copy")},e.prototype.clearSelection=function(e,t){e&&e.blur(),t.getSelection().removeAllRanges()},e.prototype.createTempTextArea=function(e,t){var n,i="rtl"===e.documentElement.getAttribute("dir");return(n=e.createElement("textarea")).style.fontSize="12pt",n.style.border="0",n.style.padding="0",n.style.margin="0",n.style.position="absolute",n.style[i?"right":"left"]="-9999px",n.style.top=(t.pageYOffset||e.documentElement.scrollTop)+"px",n.setAttribute("readonly",""),n},e}();function L(e,t,n){return n||new j(e,t)}new o.Optional,new o.SkipSelf;var U=function(){function e(e){this.clipboardSrv=e,this.cbOnSuccess=new o.EventEmitter,this.cbOnError=new o.EventEmitter}return e.prototype.ngOnInit=function(){},e.prototype.ngOnDestroy=function(){this.clipboardSrv.destroy()},e.prototype.onClick=function(e){this.clipboardSrv.isSupported?this.targetElm&&this.clipboardSrv.isTargetValid(this.targetElm)?this.handleResult(this.clipboardSrv.copyFromInputElement(this.targetElm),this.targetElm.value):this.cbContent&&this.handleResult(this.clipboardSrv.copyFromContent(this.cbContent),this.cbContent):this.handleResult(!1,void 0)},e.prototype.handleResult=function(e,t){e?this.cbOnSuccess.emit({isSuccess:!0,content:t}):this.cbOnError.emit({isSuccess:!1})},e}(),V=function(){function e(e,t){this.elementRef=e,this.sanitizer=t}return e.prototype.ngAfterContentInit=function(){this.init()},e.prototype.ngOnChanges=function(e){e.title&&this.fixTitle()},e.prototype.init=function(){jQuery(this.elementRef.nativeElement).tooltip({placement:this.placement,html:this.html,template:this.getCustomTemplate(),title:this.title})},e.prototype.fixTitle=function(){jQuery(this.elementRef.nativeElement).tooltip({placement:this.placement,html:this.html,template:this.getCustomTemplate(),title:this.title}),jQuery(this.elementRef.nativeElement).attr("title",this.title).tooltip("fixTitle")},e.prototype.getCustomTemplate=function(){var e="",t="";return this.maxWidth&&(e='style="width: '+this.maxWidth+'px;"',t='style="max-width: '+this.maxWidth+'px;"'),'

\n
\n
\n
"},e}(),F=n("Ji5S"),K=function(){function e(e,t){this.store=e,this.cdRef=t,this.command='cat </etc/udev/rules.d/50-uhk60.rules\n# Ultimate Hacking Keyboard rules\n# These are the udev rules for accessing the USB interfaces of the UHK as non-root users.\n# Copy this file to /etc/udev/rules.d and physically reconnect the UHK afterwards.\nSUBSYSTEMS=="usb", ATTRS{idVendor}=="1d50", ATTRS{idProduct}=="612[0-7]", MODE:="0666"\nEOF\nudevadm trigger\nudevadm settle'}return e.prototype.ngOnInit=function(){var e=this;this.stateSubscription=this.store.select(c.q).subscribe(function(t){e.state=t,e.cdRef.markForCheck()})},e.prototype.ngOnDestroy=function(){this.stateSubscription&&this.stateSubscription.unsubscribe()},e.prototype.setUpPermissions=function(){this.store.dispatch(new s.p)},e.prototype.whatWillThisDo=function(){this.store.dispatch(new F.i)},e.prototype.retry=function(){this.store.dispatch(new F.f)},e}(),B=o["\u0275crt"]({encapsulation:0,styles:[[".privilege-checker-wrapper[_ngcontent-%COMP%]{height:100%;display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-orient:vertical;-webkit-box-direction:normal;-ms-flex-direction:column;flex-direction:column;-webkit-box-align:center;-ms-flex-align:center;align-items:center;-webkit-box-pack:center;-ms-flex-pack:center;justify-content:center}uhk-message[_ngcontent-%COMP%]{max-width:50%}.privilege-error[_ngcontent-%COMP%]{-webkit-animation:2s error-fade-in;animation:2s error-fade-in}@-webkit-keyframes error-fade-in{0%{color:#fff;background-color:red}100%{color:inherit;background-color:inherit}}@keyframes error-fade-in{0%{color:#fff;background-color:red}100%{color:inherit;background-color:inherit}}"]],data:{}});function H(e){return o["\u0275vid"](0,[(e()(),o["\u0275eld"](0,0,null,null,1,"a",[["class","link-inline"]],null,[[null,"click"]],function(e,t,n){var i=!0;return"click"===t&&(i=!1!==e.component.whatWillThisDo()&&i),i},null,null)),(e()(),o["\u0275ted"](-1,null,["What will this do?\n "]))],null,null)}function W(e){return o["\u0275vid"](0,[(e()(),o["\u0275eld"](0,0,[["privilegeError",1]],null,4,"p",[["class","privilege-error"]],null,null,null,null,null)),(e()(),o["\u0275ted"](-1,null,["\n Agent wasn't able to set up permissions via PolicyKit. This is most likely because the\n "])),(e()(),o["\u0275eld"](2,0,null,null,1,"code",[],null,null,null,null,null)),(e()(),o["\u0275ted"](-1,null,["polkit"])),(e()(),o["\u0275ted"](-1,null,[" package is not installed on your system.\n "]))],null,null)}function z(e){return o["\u0275vid"](0,[(e()(),o["\u0275eld"](0,0,null,null,15,"div",[],null,null,null,null,null)),(e()(),o["\u0275ted"](-1,null,["\n Agent uses the following script to set up permissions. You can run it manually as root, then\n "])),(e()(),o["\u0275eld"](2,0,null,null,1,"a",[["class","link-inline"]],null,[[null,"click"]],function(e,t,n){var i=!0;return"click"===t&&(i=!1!==e.component.retry()&&i),i},null,null)),(e()(),o["\u0275ted"](-1,null,["retry"])),(e()(),o["\u0275ted"](-1,null,[".\n "])),(e()(),o["\u0275eld"](5,0,null,null,9,"div",[["class","copy-container"]],null,null,null,null,null)),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275eld"](7,0,null,null,2,"span",[["class","fa fa-2x fa-copy"],["data-placement","top"],["data-toggle","tooltip"],["ngxClipboard",""],["title","Copy to clipboard"]],[[1,"data-placement",0]],[[null,"click"]],function(e,t,n){var i=!0;return"click"===t&&(i=!1!==o["\u0275nov"](e,8).onClick(n.target)&&i),i},null,null)),o["\u0275did"](8,212992,null,0,U,[j],{targetElm:[0,"targetElm"],cbContent:[1,"cbContent"]},null),o["\u0275did"](9,1589248,null,0,V,[o.ElementRef,I.c],{title:[0,"title"]},null),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275eld"](11,0,null,null,2,"pre",[],null,null,null,null,null)),(e()(),o["\u0275eld"](12,0,null,null,1,"code",[],null,null,null,null,null)),(e()(),o["\u0275ted"](13,null,["",""])),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275ted"](-1,null,["\n "]))],function(e,t){e(t,8,0,"",t.component.command),e(t,9,0,"Copy to clipboard")},function(e,t){var n=t.component;e(t,7,0,o["\u0275nov"](t,9).placement),e(t,13,0,n.command)})}function $(e){return o["\u0275vid"](2,[(e()(),o["\u0275eld"](0,0,null,null,22,"div",[["class","privilege-checker-wrapper"]],null,null,null,null,null)),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275eld"](2,0,null,null,1,"uhk-message",[["header","Cannot talk to your UHK"],["subtitle","Your UHK has been detected, but its permissions are not set up yet, so Agent can't talk to it."]],null,null,null,O,x)),o["\u0275did"](3,49152,null,0,C,[],{header:[0,"header"],subtitle:[1,"subtitle"]},null),(e()(),o["\u0275ted"](-1,null,["\n\n "])),(e()(),o["\u0275eld"](5,0,null,null,1,"button",[["class","btn btn-default btn-lg btn-primary"]],null,[[null,"click"]],function(e,t,n){var i=!0;return"click"===t&&(i=!1!==e.component.setUpPermissions()&&i),i},null,null)),(e()(),o["\u0275ted"](-1,null,[" Set up permissions\n "])),(e()(),o["\u0275ted"](-1,null,["\n\n "])),(e()(),o["\u0275eld"](8,0,null,null,13,"div",[["class","mt-10"]],null,null,null,null,null)),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275and"](16777216,null,null,1,null,H)),o["\u0275did"](11,16384,null,0,p.k,[o.ViewContainerRef,o.TemplateRef],{ngIf:[0,"ngIf"]},null),(e()(),o["\u0275ted"](-1,null,["\n\n "])),(e()(),o["\u0275eld"](13,0,null,null,7,"div",[],null,null,null,null,null)),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275and"](16777216,null,null,1,null,W)),o["\u0275did"](16,16384,null,0,p.k,[o.ViewContainerRef,o.TemplateRef],{ngIf:[0,"ngIf"]},null),(e()(),o["\u0275ted"](-1,null,["\n\n "])),(e()(),o["\u0275and"](16777216,null,null,1,null,z)),o["\u0275did"](19,16384,null,0,p.k,[o.ViewContainerRef,o.TemplateRef],{ngIf:[0,"ngIf"]},null),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275ted"](-1,null,["\n"])),(e()(),o["\u0275ted"](-1,null,["\n"]))],function(e,t){var n=t.component;e(t,3,0,"Cannot talk to your UHK","Your UHK has been detected, but its permissions are not set up yet, so Agent can't talk to it."),e(t,11,0,n.state.showWhatWillThisDo),e(t,16,0,n.state.permissionSetupFailed),e(t,19,0,n.state.showWhatWillThisDoContent)},null)}var q=o["\u0275ccf"]("privilege-checker",K,function(e){return o["\u0275vid"](0,[(e()(),o["\u0275eld"](0,0,null,null,1,"privilege-checker",[],null,null,null,$,B)),o["\u0275did"](1,245760,null,0,K,[u.m,o.ChangeDetectorRef],null,null)],function(e,t){e(t,1,0)},null)},{},{},[]),G=function(){},Y=o["\u0275crt"]({encapsulation:2,styles:[],data:{}});function Q(e){return o["\u0275vid"](0,[(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275eld"](1,0,null,null,1,"uhk-message",[["header","Loading keyboard configuration..."],["subtitle","Hang tight!"]],null,null,null,O,x)),o["\u0275did"](2,49152,null,0,C,[],{header:[0,"header"],subtitle:[1,"subtitle"],rotateLogo:[2,"rotateLogo"]},null),(e()(),o["\u0275ted"](-1,null,["\n "]))],function(e,t){e(t,2,0,"Loading keyboard configuration...","Hang tight!",!0)},null)}var J=o["\u0275ccf"]("loading-device",G,function(e){return o["\u0275vid"](0,[(e()(),o["\u0275eld"](0,0,null,null,1,"loading-device",[],null,null,null,Q,Y)),o["\u0275did"](1,49152,null,0,G,[],null,null)],null,null)},{},{},[]),Z=function(){function e(){this.logs=[]}return e.prototype.ngOnChanges=function(e){var t=this;e.logs&&this.divElement&&this.divElement.nativeElement&&setTimeout(function(){t.divElement.nativeElement.scrollTop=t.divElement.nativeElement.scrollHeight})},e.prototype.getClipboardContent=function(){return this.logs.reduce(function(e,t){return e+t.message+"\n"},"")},e}(),X=o["\u0275crt"]({encapsulation:0,styles:[["[_nghost-%COMP%]{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-orient:vertical;-webkit-box-direction:normal;-ms-flex-direction:column;flex-direction:column;-webkit-box-align:stretch;-ms-flex-align:stretch;align-items:stretch;width:100%;height:100%}.x-term-container[_ngcontent-%COMP%]{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-flex:1;-ms-flex:1;flex:1;-webkit-box-orient:vertical;-webkit-box-direction:normal;-ms-flex-direction:column;flex-direction:column;-webkit-box-align:stretch;-ms-flex-align:stretch;align-items:stretch;position:relative}.x-term-wrapper[_ngcontent-%COMP%]{background-color:#000;overflow:auto;position:absolute;top:0;left:0;width:100%;height:100%}.copy-container-wrapper[_ngcontent-%COMP%]{position:absolute;top:2px;right:14px}.xterm-standard[_ngcontent-%COMP%]{color:#fff}.xterm-error[_ngcontent-%COMP%]{color:red}ul[_ngcontent-%COMP%] li[_ngcontent-%COMP%]{padding-left:5px}ul[_ngcontent-%COMP%] li[_ngcontent-%COMP%] span[_ngcontent-%COMP%]:before{content:'$ '}"]],data:{}});function ee(e){return o["\u0275vid"](0,[(e()(),o["\u0275eld"](0,0,null,null,3,"li",[],null,null,null,null,null)),o["\u0275did"](1,278528,null,0,p.i,[o.IterableDiffers,o.KeyValueDiffers,o.ElementRef,o.Renderer2],{ngClass:[0,"ngClass"]},null),(e()(),o["\u0275eld"](2,0,null,null,1,"span",[],null,null,null,null,null)),(e()(),o["\u0275ted"](3,null,["",""]))],function(e,t){e(t,1,0,t.context.$implicit.cssClass)},function(e,t){e(t,3,0,t.context.$implicit.message)})}function te(e){return o["\u0275vid"](2,[o["\u0275qud"](402653184,1,{divElement:0}),(e()(),o["\u0275eld"](1,0,null,null,20,"div",[["class","x-term-container"]],null,null,null,null,null)),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275eld"](3,0,[[1,0],["scrollMe",1]],null,7,"div",[["class","x-term-wrapper"]],null,null,null,null,null)),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275eld"](5,0,null,null,4,"ul",[["class","list-unstyled"]],null,null,null,null,null)),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275and"](16777216,null,null,1,null,ee)),o["\u0275did"](8,802816,null,0,p.j,[o.ViewContainerRef,o.TemplateRef,o.IterableDiffers],{ngForOf:[0,"ngForOf"]},null),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275eld"](12,0,null,null,8,"div",[["class","copy-container-wrapper"]],null,null,null,null,null)),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275eld"](14,0,null,null,5,"div",[["class","copy-container"]],null,null,null,null,null)),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275eld"](16,0,null,null,2,"span",[["class","fa fa-2x fa-copy"],["data-placement","top"],["data-toggle","tooltip"],["ngxClipboard",""],["title","Copy to clipboard"]],[[1,"data-placement",0]],[[null,"click"]],function(e,t,n){var i=!0;return"click"===t&&(i=!1!==o["\u0275nov"](e,17).onClick(n.target)&&i),i},null,null)),o["\u0275did"](17,212992,null,0,U,[j],{targetElm:[0,"targetElm"],cbContent:[1,"cbContent"]},null),o["\u0275did"](18,1589248,null,0,V,[o.ElementRef,I.c],{title:[0,"title"]},null),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275ted"](-1,null,["\n"])),(e()(),o["\u0275ted"](-1,null,["\n"]))],function(e,t){var n=t.component;e(t,8,0,n.logs),e(t,17,0,"",n.getClipboardContent()),e(t,18,0,"Copy to clipboard")},function(e,t){e(t,16,0,o["\u0275nov"](t,18).placement)})}var ne=function(){function e(e){this.store=e}return e.prototype.ngOnInit=function(){this.flashFirmwareButtonDisbabled$=this.store.select(c.h),this.xtermLog$=this.store.select(c.A)},e.prototype.onRecoveryDevice=function(){this.store.dispatch(new s.g)},e}(),ie=o["\u0275crt"]({encapsulation:0,styles:[["[_nghost-%COMP%]{overflow-y:auto;display:block;height:100%;width:100%}[_nghost-%COMP%] p[_ngcontent-%COMP%]{margin:1.5rem 0}"]],data:{}});function oe(e){return o["\u0275vid"](2,[(e()(),o["\u0275eld"](0,0,null,null,35,"div",[["class","full-height"]],null,null,null,null,null)),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275eld"](2,0,null,null,32,"div",[["class","flex-container"]],null,null,null,null,null)),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275eld"](4,0,null,null,19,"div",[],null,null,null,null,null)),(e()(),o["\u0275ted"](-1,null,["\n\n "])),(e()(),o["\u0275eld"](6,0,null,null,6,"h1",[],null,null,null,null,null)),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275eld"](8,0,null,null,0,"i",[["class","fa fa-wrench"]],null,null,null,null,null)),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275eld"](10,0,null,null,1,"span",[],null,null,null,null,null)),(e()(),o["\u0275ted"](-1,null,["Fix device"])),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275eld"](14,0,null,null,1,"p",[],null,null,null,null,null)),(e()(),o["\u0275ted"](-1,null,["\n Your device seems to be broken. No worries, Agent can fix it.\n "])),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275eld"](17,0,null,null,5,"p",[],null,null,null,null,null)),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275eld"](19,0,null,null,2,"button",[["class","btn btn-primary"],["type","button"]],[[8,"disabled",0]],[[null,"click"]],function(e,t,n){var i=!0;return"click"===t&&(i=!1!==e.component.onRecoveryDevice()&&i),i},null,null)),o["\u0275pid"](131072,p.b,[o.ChangeDetectorRef]),(e()(),o["\u0275ted"](-1,null,["Fix device\n "])),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275eld"](25,0,null,null,5,"div",[["class","flex-grow"]],null,null,null,null,null)),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275eld"](27,0,null,null,2,"xterm",[],null,null,null,te,X)),o["\u0275did"](28,573440,null,0,Z,[],{logs:[0,"logs"]},null),o["\u0275pid"](131072,p.b,[o.ChangeDetectorRef]),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275eld"](32,0,null,null,1,"div",[["class","flex-footer"]],null,null,null,null,null)),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275ted"](-1,null,["\n"])),(e()(),o["\u0275ted"](-1,null,["\n"]))],function(e,t){var n=t.component;e(t,28,0,o["\u0275unv"](t,28,0,o["\u0275nov"](t,29).transform(n.xtermLog$)))},function(e,t){var n=t.component;e(t,19,0,o["\u0275unv"](t,19,0,o["\u0275nov"](t,20).transform(n.flashFirmwareButtonDisbabled$)))})}var re=o["\u0275ccf"]("device-recovery-mode",ne,function(e){return o["\u0275vid"](0,[(e()(),o["\u0275eld"](0,0,null,null,1,"device-recovery-mode",[["class","container-fluid"]],null,null,null,oe,ie)),o["\u0275did"](1,114688,null,0,ne,[u.m],null,null)],function(e,t){e(t,1,0)},null)},{},{},[]),le=n("bfOx"),ue=function(){function e(){}return e.prototype.onActivate=function(e,t){t.scrollIntoView()},e}(),ae=o["\u0275crt"]({encapsulation:0,styles:["[_nghost-%COMP%]{height:100%; width:100%}"],data:{}});function se(e){return o["\u0275vid"](0,[(e()(),o["\u0275eld"](0,0,null,null,4,"div",[["class","split split-horizontal main-page-content"]],null,null,null,null,null)),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275eld"](2,16777216,[["outlet",1]],null,1,"router-outlet",[],null,[[null,"activate"]],function(e,t,n){var i=!0;return"activate"===t&&(i=!1!==e.component.onActivate(n,o["\u0275nov"](e,2))&&i),i},null,null)),o["\u0275did"](3,212992,null,0,le.q,[le.b,o.ViewContainerRef,o.ComponentFactoryResolver,[8,null],o.ChangeDetectorRef],null,{activateEvents:"activate"}),(e()(),o["\u0275ted"](-1,null,["\n"])),(e()(),o["\u0275ted"](-1,null,["\n"]))],function(e,t){e(t,3,0)},null)}var ce=o["\u0275ccf"]("main-page",ue,function(e){return o["\u0275vid"](0,[(e()(),o["\u0275eld"](0,0,null,null,1,"main-page",[],null,null,null,se,ae)),o["\u0275did"](1,49152,null,0,ue,[],null,null)],null,null)},{},{},[]),de=function(){function e(){this.label="Select file",this.fileChanged=new o.EventEmitter}return e.prototype.changeFile=function(e){var t=e.srcElement.files;if(0!==t.length){var n=new FileReader;n.onloadend=(function(){var t=new Uint8Array(n.result);(e.target||e.srcElement||e.currentTarget).value=null,this.fileChanged.emit({filename:e.srcElement.value,data:Array.from(t)})}).bind(this),n.readAsArrayBuffer(t[0])}},e}(),pe=o["\u0275crt"]({encapsulation:2,styles:[],data:{}});function fe(e){return o["\u0275vid"](2,[(e()(),o["\u0275eld"](0,0,null,null,3,"label",[["class","btn btn-primary btn-file"]],[[2,"disabled",null]],null,null,null,null)),(e()(),o["\u0275ted"](1,null,["\n ","\n "])),(e()(),o["\u0275eld"](2,0,[["inputControl",1]],null,0,"input",[["type","file"]],[[8,"accept",0],[8,"disabled",0]],[[null,"change"]],function(e,t,n){var i=!0;return"change"===t&&(i=!1!==e.component.changeFile(n)&&i),i},null,null)),(e()(),o["\u0275ted"](-1,null,["\n"])),(e()(),o["\u0275ted"](-1,null,["\n"]))],null,function(e,t){var n=t.component;e(t,0,0,n.disabled),e(t,1,0,n.label),e(t,2,0,n.accept,n.disabled)})}var he=function(){function e(){}return e.prototype.getAllStyles=function(e){return window.getComputedStyle(e)},e.prototype.getStyle=function(e,t){return this.getAllStyles(e)[t]},e.prototype.isStaticPositioned=function(e){return"static"===(this.getStyle(e,"position")||"static")},e.prototype.offsetParent=function(e){for(var t=e.offsetParent||document.documentElement;t&&t!==document.documentElement&&this.isStaticPositioned(t);)t=t.offsetParent;return t||document.documentElement},e.prototype.position=function(e,t){var n;void 0===t&&(t=!0);var i={width:0,height:0,top:0,bottom:0,left:0,right:0};if("fixed"===this.getStyle(e,"position"))n=e.getBoundingClientRect();else{var o=this.offsetParent(e);n=this.offset(e,!1),o!==document.documentElement&&(i=this.offset(o,!1)),i.top+=o.clientTop,i.left+=o.clientLeft}return n.top-=i.top,n.bottom-=i.top,n.left-=i.left,n.right-=i.left,t&&(n.top=Math.round(n.top),n.bottom=Math.round(n.bottom),n.left=Math.round(n.left),n.right=Math.round(n.right)),n},e.prototype.offset=function(e,t){void 0===t&&(t=!0);var n=e.getBoundingClientRect(),i=window.pageYOffset-document.documentElement.clientTop,o=window.pageXOffset-document.documentElement.clientLeft,r={height:n.height||e.offsetHeight,width:n.width||e.offsetWidth,top:n.top+i,bottom:n.bottom+i,left:n.left+o,right:n.right+o};return t&&(r.height=Math.round(r.height),r.width=Math.round(r.width),r.top=Math.round(r.top),r.bottom=Math.round(r.bottom),r.left=Math.round(r.left),r.right=Math.round(r.right)),r},e.prototype.positionElements=function(e,t,n,i){var o=i?this.offset(e,!1):this.position(e,!1),r=this.getAllStyles(t),l=t.getBoundingClientRect(),u=n.split("-")[0]||"top",a=n.split("-")[1]||"center",s={height:l.height||t.offsetHeight,width:l.width||t.offsetWidth,top:0,bottom:l.height||t.offsetHeight,left:0,right:l.width||t.offsetWidth};switch(u){case"top":s.top=o.top-(t.offsetHeight+parseFloat(r.marginBottom));break;case"bottom":s.top=o.top+o.height;break;case"left":s.left=o.left-(t.offsetWidth+parseFloat(r.marginRight));break;case"right":s.left=o.left+o.width}switch(a){case"top":s.top=o.top;break;case"bottom":s.top=o.top+o.height-t.offsetHeight;break;case"left":s.left=o.left;break;case"right":s.left=o.left+o.width-t.offsetWidth;break;case"center":"top"===u||"bottom"===u?s.left=o.left+o.width/2-t.offsetWidth/2:s.top=o.top+o.height/2-t.offsetHeight/2}return s.top=Math.round(s.top),s.bottom=Math.round(s.bottom),s.left=Math.round(s.left),s.right=Math.round(s.right),s},e}();new he;var ye=function(){function e(e,t,n,i,r,l,u){this.viewContainerRef=e,this.elm=t,this.defaultOptions=n,this.cfr=i,this.position=r,this.renderer=l,this.document=u,this.isDisabled=!1,this.isOpen=!1,this.isOpenChange=new o.EventEmitter(!0),this.confirm=new o.EventEmitter,this.cancel=new o.EventEmitter,this.popover=null,this.eventListeners=[]}return e.prototype.ngOnInit=function(){this.isOpenChange.emit(!1)},e.prototype.ngOnChanges=function(e){e.isOpen&&(!0===e.isOpen.currentValue?this.showPopover():this.hidePopover())},e.prototype.ngOnDestroy=function(){this.hidePopover()},e.prototype.onConfirm=function(e){this.confirm.emit(e),this.hidePopover()},e.prototype.onCancel=function(e){this.cancel.emit(e),this.hidePopover()},e.prototype.togglePopover=function(){this.popover?this.hidePopover():this.showPopover()},e.prototype.onDocumentClick=function(e){!this.popover||this.elm.nativeElement.contains(e.target)||this.popover.location.nativeElement.contains(e.target)||this.hidePopover()},e.prototype.showPopover=function(){var e=this;if(!this.popover&&!this.isDisabled){this.eventListeners=[this.renderer.listen("document","click",function(t){return e.onDocumentClick(t)}),this.renderer.listen("document","touchend",function(t){return e.onDocumentClick(t)}),this.renderer.listen("window","resize",function(){return e.positionPopover()})];var t=new m;Object.assign(t,this.defaultOptions,{title:this.title,message:this.message,onConfirm:function(t){e.onConfirm(t)},onCancel:function(t){e.onCancel(t)},onAfterViewInit:function(){e.positionPopover()}}),["confirmText","cancelText","placement","confirmButtonType","cancelButtonType","focusButton","hideConfirmButton","hideCancelButton","popoverClass","appendToBody","customTemplate"].forEach(function(n){"undefined"!=typeof e[n]&&(t[n]=e[n])});var n=this.cfr.resolveComponentFactory(g),i=o.ReflectiveInjector.resolve([{provide:m,useValue:t}]),r=o.ReflectiveInjector.fromResolvedProviders(i,this.viewContainerRef.parentInjector);this.popover=this.viewContainerRef.createComponent(n,this.viewContainerRef.length,r),t.appendToBody&&this.document.body.appendChild(this.popover.location.nativeElement),this.isOpenChange.emit(!0)}},e.prototype.positionPopover=function(){if(this.popover){var e=this.popover.location.nativeElement.children[0],t=this.position.positionElements(this.elm.nativeElement,e,this.placement||this.defaultOptions.placement,this.appendToBody||this.defaultOptions.appendToBody);this.renderer.setStyle(e,"top",t.top+"px"),this.renderer.setStyle(e,"left",t.left+"px")}},e.prototype.hidePopover=function(){this.popover&&(this.popover.destroy(),this.popover=null,this.isOpenChange.emit(!1),this.eventListeners.forEach(function(e){return e()}),this.eventListeners=[])},e}(),me=n("at4H"),ge=function(){function e(e){this.store=e}return e.prototype.resetUserConfiguration=function(){this.store.dispatch(new s.i)},e.prototype.saveConfigurationInJSONFormat=function(){this.store.dispatch(new me.j)},e.prototype.saveConfigurationInBINFormat=function(){this.store.dispatch(new me.i)},e.prototype.exportUserConfiguration=function(e){e.shiftKey?this.saveConfigurationInBINFormat():this.saveConfigurationInJSONFormat()},e.prototype.changeFile=function(e){this.store.dispatch(new me.g(e))},e}(),ve=o["\u0275crt"]({encapsulation:0,styles:[["[_nghost-%COMP%]{overflow-y:auto;display:block;height:100%;width:100%}[_nghost-%COMP%] p[_ngcontent-%COMP%]{margin:1.5rem 0}"]],data:{}});function be(e){return o["\u0275vid"](0,[(e()(),o["\u0275eld"](0,0,null,null,6,"h1",[],null,null,null,null,null)),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275eld"](2,0,null,null,0,"i",[["class","fa fa-sliders"]],null,null,null,null,null)),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275eld"](4,0,null,null,1,"span",[],null,null,null,null,null)),(e()(),o["\u0275ted"](-1,null,["Device configuration"])),(e()(),o["\u0275ted"](-1,null,["\n"])),(e()(),o["\u0275ted"](-1,null,["\n\n"])),(e()(),o["\u0275eld"](8,0,null,null,1,"p",[],null,null,null,null,null)),(e()(),o["\u0275ted"](-1,null,["\n The device configuration contains all the keymaps, macros, and settings that are stored on the device.\n"])),(e()(),o["\u0275ted"](-1,null,["\n\n"])),(e()(),o["\u0275eld"](11,0,null,null,21,"ul",[["class","list-unstyled btn-list"]],null,null,null,null,null)),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275eld"](13,0,null,null,4,"li",[],null,null,null,null,null)),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275eld"](15,0,null,null,1,"button",[["class","btn btn-primary"]],null,[[null,"click"]],function(e,t,n){var i=!0;return"click"===t&&(i=!1!==e.component.exportUserConfiguration(n)&&i),i},null,null)),(e()(),o["\u0275ted"](-1,null,["Export device configuration\n "])),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275eld"](19,0,null,null,5,"li",[],null,null,null,null,null)),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275eld"](21,0,null,null,2,"file-upload",[["label","Import device configuration"]],null,[[null,"fileChanged"]],function(e,t,n){var i=!0;return"fileChanged"===t&&(i=!1!==e.component.changeFile(n)&&i),i},fe,pe)),o["\u0275did"](22,49152,null,0,de,[],{label:[0,"label"]},{fileChanged:"fileChanged"}),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275eld"](26,0,null,null,5,"li",[],null,null,null,null,null)),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275eld"](28,16777216,null,null,2,"button",[["cancelText","No"],["class","btn btn-danger"],["confirmText","Yes"],["mwlConfirmationPopover",""],["placement","bottom"],["title","Are you sure?"]],null,[[null,"confirm"],[null,"click"]],function(e,t,n){var i=!0,r=e.component;return"click"===t&&(i=!1!==o["\u0275nov"](e,29).togglePopover()&&i),"confirm"===t&&(i=!1!==r.resetUserConfiguration()&&i),i},null,null)),o["\u0275did"](29,737280,null,0,ye,[o.ViewContainerRef,o.ElementRef,y,o.ComponentFactoryResolver,he,o.Renderer2,I.b],{title:[0,"title"],confirmText:[1,"confirmText"],cancelText:[2,"cancelText"],placement:[3,"placement"]},{confirm:"confirm"}),(e()(),o["\u0275ted"](-1,null,["Reset device configuration\n "])),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275ted"](-1,null,["\n"])),(e()(),o["\u0275ted"](-1,null,["\n"]))],function(e,t){e(t,22,0,"Import device configuration"),e(t,29,0,"Are you sure?","Yes","No","bottom")},null)}var ke=o["\u0275ccf"]("device-settings",ge,function(e){return o["\u0275vid"](0,[(e()(),o["\u0275eld"](0,0,null,null,1,"device-settings",[["class","container-fluid"]],null,null,null,be,ve)),o["\u0275did"](1,49152,null,0,ge,[u.m],null,null)],null,null)},{},{},[]),_e=function(){function e(){}return e.prototype.ngOnInit=function(){},e}(),we=o["\u0275crt"]({encapsulation:0,styles:[["[_nghost-%COMP%]{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-align:center;-ms-flex-align:center;align-items:center}.action--edit[_ngcontent-%COMP%]:hover{color:#337ab7;cursor:pointer}.action--trash[_ngcontent-%COMP%]:hover{color:#d9534f;cursor:pointer}"]],data:{}});function Ae(e){return o["\u0275vid"](0,[(e()(),o["\u0275eld"](0,0,null,null,0,"span",[["aria-hidden","true"],["class","glyphicon glyphicon-option-vertical"]],null,null,null,null,null))],null,null)}function Te(e){return o["\u0275vid"](0,[(e()(),o["\u0275eld"](0,0,null,null,0,"i",[["class","fa fa-square"]],null,null,null,null,null))],null,null)}function Ce(e){return o["\u0275vid"](0,[(e()(),o["\u0275eld"](0,0,null,null,0,"i",[["class","fa fa-hand-pointer-o"]],null,null,null,null,null))],null,null)}function xe(e){return o["\u0275vid"](0,[(e()(),o["\u0275eld"](0,0,null,null,0,"i",[["class","fa fa-hand-rock-o"]],null,null,null,null,null))],null,null)}function Oe(e){return o["\u0275vid"](0,[(e()(),o["\u0275eld"](0,0,null,null,0,"i",[["class","fa fa-hand-paper-o"]],null,null,null,null,null))],null,null)}function Se(e){return o["\u0275vid"](0,[(e()(),o["\u0275eld"](0,0,null,null,0,"i",[["class","fa fa-mouse-pointer"]],null,null,null,null,null))],null,null)}function Me(e){return o["\u0275vid"](0,[(e()(),o["\u0275eld"](0,0,null,null,0,"i",[["class","fa fa-clock-o"]],null,null,null,null,null))],null,null)}function Ee(e){return o["\u0275vid"](0,[(e()(),o["\u0275eld"](0,0,null,null,0,"i",[["class","fa fa-font"]],null,null,null,null,null))],null,null)}function Pe(e){return o["\u0275vid"](0,[(e()(),o["\u0275eld"](0,0,null,null,0,"i",[["class","glyphicon glyphicon-trash action--trash"]],null,null,null,null,null))],null,null)}function Ie(e){return o["\u0275vid"](0,[(e()(),o["\u0275eld"](0,0,null,null,0,"i",[["class","glyphicon glyphicon-pencil action--edit"]],null,null,null,null,null))],null,null)}function Re(e){return o["\u0275vid"](0,[(e()(),o["\u0275eld"](0,0,null,null,0,"i",[["class","fa fa-question-circle"]],null,null,null,null,null))],null,null)}function De(e){return o["\u0275vid"](2,[(e()(),o["\u0275eld"](0,0,null,null,35,"div",[],null,null,null,null,null)),o["\u0275did"](1,16384,null,0,p.n,[],{ngSwitch:[0,"ngSwitch"]},null),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275and"](16777216,null,null,1,null,Ae)),o["\u0275did"](4,278528,null,0,p.o,[o.ViewContainerRef,o.TemplateRef,p.n],{ngSwitchCase:[0,"ngSwitchCase"]},null),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275and"](16777216,null,null,1,null,Te)),o["\u0275did"](7,278528,null,0,p.o,[o.ViewContainerRef,o.TemplateRef,p.n],{ngSwitchCase:[0,"ngSwitchCase"]},null),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275and"](16777216,null,null,1,null,Ce)),o["\u0275did"](10,278528,null,0,p.o,[o.ViewContainerRef,o.TemplateRef,p.n],{ngSwitchCase:[0,"ngSwitchCase"]},null),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275and"](16777216,null,null,1,null,xe)),o["\u0275did"](13,278528,null,0,p.o,[o.ViewContainerRef,o.TemplateRef,p.n],{ngSwitchCase:[0,"ngSwitchCase"]},null),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275and"](16777216,null,null,1,null,Oe)),o["\u0275did"](16,278528,null,0,p.o,[o.ViewContainerRef,o.TemplateRef,p.n],{ngSwitchCase:[0,"ngSwitchCase"]},null),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275and"](16777216,null,null,1,null,Se)),o["\u0275did"](19,278528,null,0,p.o,[o.ViewContainerRef,o.TemplateRef,p.n],{ngSwitchCase:[0,"ngSwitchCase"]},null),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275and"](16777216,null,null,1,null,Me)),o["\u0275did"](22,278528,null,0,p.o,[o.ViewContainerRef,o.TemplateRef,p.n],{ngSwitchCase:[0,"ngSwitchCase"]},null),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275and"](16777216,null,null,1,null,Ee)),o["\u0275did"](25,278528,null,0,p.o,[o.ViewContainerRef,o.TemplateRef,p.n],{ngSwitchCase:[0,"ngSwitchCase"]},null),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275and"](16777216,null,null,1,null,Pe)),o["\u0275did"](28,278528,null,0,p.o,[o.ViewContainerRef,o.TemplateRef,p.n],{ngSwitchCase:[0,"ngSwitchCase"]},null),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275and"](16777216,null,null,1,null,Ie)),o["\u0275did"](31,278528,null,0,p.o,[o.ViewContainerRef,o.TemplateRef,p.n],{ngSwitchCase:[0,"ngSwitchCase"]},null),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275and"](16777216,null,null,1,null,Re)),o["\u0275did"](34,278528,null,0,p.o,[o.ViewContainerRef,o.TemplateRef,p.n],{ngSwitchCase:[0,"ngSwitchCase"]},null),(e()(),o["\u0275ted"](-1,null,["\n"]))],function(e,t){e(t,1,0,t.component.name),e(t,4,0,"option-vertical"),e(t,7,0,"square"),e(t,10,0,"hand-pointer"),e(t,13,0,"hand-rock"),e(t,16,0,"hand-paper"),e(t,19,0,"mouse-pointer"),e(t,22,0,"clock"),e(t,25,0,"font"),e(t,28,0,"trash"),e(t,31,0,"pencil"),e(t,34,0,"question-circle")},null)}var Ne=n("xA9i"),je=n("7DMc"),Le=o["\u0275crt"]({encapsulation:0,styles:["[_nghost-%COMP%] {\n display: block;\n margin-top: 1rem;\n margin-bottom: 1rem;\n }"],data:{}});function Ue(e){return o["\u0275vid"](0,[(e()(),o["\u0275eld"](0,0,null,null,0,"div",[],[[1,"disabled",0]],null,null,null,null))],null,function(e,t){e(t,0,0,!!t.component.disabled||void 0)})}var Ve=n("rCTf"),Fe=(n("aV5h"),function(){function e(){this.onChange=new o.EventEmitter,this.changeDebounceTime=300,this.propagateChange=function(){}}return e.prototype.ngAfterViewInit=function(){this.pips&&this.slider.slider.pips(this.pips),this.slider.slider.target.querySelector(".noUi-tooltip").style.display="none",this.slider.slider.on("start",function(){this.target.querySelector(".noUi-tooltip").style.display="block"}),this.slider.slider.on("end",function(){this.target.querySelector(".noUi-tooltip").style.display="none"})},e.prototype.ngOnDestroy=function(){this.changeObserver$&&this.changeObserver$.complete()},e.prototype.writeValue=function(e){this.value=e||this.min},e.prototype.registerOnChange=function(e){this.propagateChange=e},e.prototype.registerOnTouched=function(){},e.prototype.onSliderChange=function(e){var t=this;this.changeObserver$?this.changeObserver$.next(e):Ve.Observable.create(function(e){t.changeObserver$=e}).debounceTime(this.changeDebounceTime).distinctUntilChanged().subscribe(this.propagateChange)},e}()),Ke=o["\u0275crt"]({encapsulation:0,styles:[["[_nghost-%COMP%] label[_ngcontent-%COMP%]{display:block;font-weight:400}[_nghost-%COMP%] label[_ngcontent-%COMP%] icon[_ngcontent-%COMP%]{display:inline-block}[_nghost-%COMP%] .slider-wrapper[_ngcontent-%COMP%]{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-orient:horizontal;-webkit-box-direction:normal;-ms-flex-direction:row;flex-direction:row;padding-left:1.6rem}[_nghost-%COMP%] .slider-container[_ngcontent-%COMP%]{width:80%}[_nghost-%COMP%] .slider-value[_ngcontent-%COMP%]{width:20%}[_nghost-%COMP%] .value-indicator[_ngcontent-%COMP%]{margin:1rem 1rem 1rem 3rem;vertical-align:middle}"]],data:{}});function Be(e){return o["\u0275vid"](0,[(e()(),o["\u0275eld"](0,0,null,null,2,"icon",[["data-placement","bottom"],["data-toggle","tooltip"],["html","true"],["name","question-circle"]],[[1,"data-placement",0]],null,null,De,we)),o["\u0275did"](1,114688,null,0,_e,[],{name:[0,"name"]},null),o["\u0275did"](2,1589248,null,0,V,[o.ElementRef,I.c],{title:[0,"title"],html:[1,"html"]},null)],function(e,t){var n=t.component;e(t,1,0,"question-circle"),e(t,2,0,n.tooltip,"true")},function(e,t){e(t,0,0,o["\u0275nov"](t,2).placement)})}function He(e){return o["\u0275vid"](0,[(e()(),o["\u0275eld"](0,0,null,null,6,"label",[],null,null,null,null,null)),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275eld"](2,0,null,null,0,"span",[],[[8,"innerHTML",1]],null,null,null,null)),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275and"](16777216,null,null,1,null,Be)),o["\u0275did"](5,16384,null,0,p.k,[o.ViewContainerRef,o.TemplateRef],{ngIf:[0,"ngIf"]},null),(e()(),o["\u0275ted"](-1,null,["\n"]))],function(e,t){e(t,5,0,t.component.tooltip)},function(e,t){e(t,2,0,t.component.label)})}function We(e){return o["\u0275vid"](0,[o["\u0275qud"](402653184,1,{slider:0}),(e()(),o["\u0275and"](16777216,null,null,1,null,He)),o["\u0275did"](2,16384,null,0,p.k,[o.ViewContainerRef,o.TemplateRef],{ngIf:[0,"ngIf"]},null),(e()(),o["\u0275ted"](-1,null,["\n"])),(e()(),o["\u0275eld"](4,0,null,null,17,"div",[["class","slider-wrapper"]],null,null,null,null,null)),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275eld"](6,0,null,null,8,"div",[["class","slider-container"]],null,null,null,null,null)),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275eld"](8,0,null,null,5,"nouislider",[],[[2,"ng2-nouislider",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]],[[null,"ngModelChange"]],function(e,t,n){var i=!0,o=e.component;return"ngModelChange"===t&&(i=!1!==(o.value=n)&&i),"ngModelChange"===t&&(i=!1!==o.onSliderChange(n)&&i),i},Ue,Le)),o["\u0275did"](9,638976,[[1,4]],0,Ne.NouisliderComponent,[o.ElementRef,o.Renderer2],{min:[0,"min"],max:[1,"max"],step:[2,"step"],ngModel:[3,"ngModel"],keyboard:[4,"keyboard"],tooltips:[5,"tooltips"]},null),o["\u0275prd"](1024,null,je.NG_VALUE_ACCESSOR,function(e){return[e]},[Ne.NouisliderComponent]),o["\u0275did"](11,671744,null,0,je.NgModel,[[8,null],[8,null],[8,null],[2,je.NG_VALUE_ACCESSOR]],{model:[0,"model"]},{update:"ngModelChange"}),o["\u0275prd"](2048,null,je.NgControl,null,[je.NgModel]),o["\u0275did"](13,16384,null,0,je.NgControlStatus,[je.NgControl],null,null),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275eld"](16,0,null,null,4,"div",[["class","slider-value"]],null,null,null,null,null)),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275eld"](18,0,null,null,1,"div",[["class","value-indicator"]],null,null,null,null,null)),(e()(),o["\u0275ted"](19,null,[""," ",""])),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275ted"](-1,null,["\n"]))],function(e,t){var n=t.component;e(t,2,0,n.label),e(t,9,0,n.min,n.max,n.step,n.value,!0,!0),e(t,11,0,n.value)},function(e,t){var n=t.component;e(t,8,0,!0,o["\u0275nov"](t,13).ngClassUntouched,o["\u0275nov"](t,13).ngClassTouched,o["\u0275nov"](t,13).ngClassPristine,o["\u0275nov"](t,13).ngClassDirty,o["\u0275nov"](t,13).ngClassValid,o["\u0275nov"](t,13).ngClassInvalid,o["\u0275nov"](t,13).ngClassPending),e(t,19,0,n.value,n.valueUnit)})}var ze=n("gI3A"),$e=function(){function e(){this._defaultConfig=(new ze.UserConfiguration).fromJsonObject(n("Ftqy"))}return e.prototype.getDefault=function(){return this._defaultConfig},e}(),qe=25,Ge=function(){function e(e,t){this.store=e,this.defaultUserConfigurationService=t,this.moveProps=[{prop:"mouseMoveInitialSpeed",title:"Initial speed",tooltip:"When mouse movement begins, this is the starting speed.",valueUnit:"px/s",value:0},{prop:"mouseMoveBaseSpeed",title:"Base speed",tooltip:"This speed is reached after the initial moving speed sufficiently ramps up.",valueUnit:"px/s",value:0},{prop:"mouseMoveAcceleration",title:"Acceleration",tooltip:"The rate of acceleration from the initial movement speed to the base speed.",valueUnit:"px/s\xb2",value:0},{prop:"mouseMoveDeceleratedSpeed",title:"Decelerated speed",tooltip:"This speed is used while moving with the decelerate key pressed.",valueUnit:"px/s",value:0},{prop:"mouseMoveAcceleratedSpeed",title:"Accelerated speed",tooltip:"This speed is used while moving with the accelerate key pressed.",valueUnit:"px/s",value:0}],this.scrollProps=[{prop:"mouseScrollInitialSpeed",title:"Initial speed",tooltip:"When mouse scrolling begins, this is the starting speed.",valueUnit:"pulse/s",value:0},{prop:"mouseScrollBaseSpeed",title:"Base speed",tooltip:"This speed is reached after the initial scrolling speed sufficiently ramps up.",valueUnit:"pulse/s",value:0},{prop:"mouseScrollAcceleration",title:"Acceleration",tooltip:"The rate of acceleration from the initial scrolling speed to the base speed.",valueUnit:"pulse/s\xb2",value:0},{prop:"mouseScrollDeceleratedSpeed",title:"Decelerated speed",tooltip:"This speed is used while scrolling with the decelerate key pressed.",valueUnit:"pulse/s",value:0},{prop:"mouseScrollAcceleratedSpeed",title:"Accelerated speed",tooltip:"This speed is used while scrolling with the accelerate key pressed.",valueUnit:"pulse/s",value:0}],this.sliderPips={mode:"positions",values:[0,50,100],density:6,stepped:!0},this.moveSettings={min:qe,max:6375,step:qe},this.scrollSettings={min:1,max:255,step:1}}return e.prototype.ngOnInit=function(){var e=this;this.userConfig$=this.store.select(c.v),this.userConfigSubscription=this.userConfig$.subscribe(function(t){e.moveProps.forEach(function(e){e.value=t[e.prop]*qe||0}),e.scrollProps.forEach(function(e){e.value=t[e.prop]||0})})},e.prototype.ngOnDestroy=function(){this.userConfigSubscription.unsubscribe()},e.prototype.onSetPropertyValue=function(e,t){this.store.dispatch(new me.l({propertyName:e,value:-1!==e.indexOf("mouseMove")?t/qe:t}))},e.prototype.resetToDefault=function(){this.store.dispatch(new s.h)},e}(),Ye=o["\u0275crt"]({encapsulation:0,styles:[["[_nghost-%COMP%]{overflow-y:auto;display:block;height:100%;width:100%}[_nghost-%COMP%] label[_ngcontent-%COMP%]{display:block;font-weight:400}[_nghost-%COMP%] label[_ngcontent-%COMP%] icon[_ngcontent-%COMP%]{display:inline-block}[_nghost-%COMP%] .mouse-speed-reset-button[_ngcontent-%COMP%]{display:block;margin-bottom:4rem}[_nghost-%COMP%] .mouse-speed-setting[_ngcontent-%COMP%]{margin-bottom:6rem}[_nghost-%COMP%] .mouse-speed-setting[_ngcontent-%COMP%] + h3[_ngcontent-%COMP%]{margin-top:2rem}"]],data:{}});function Qe(e){return o["\u0275vid"](0,[(e()(),o["\u0275eld"](0,0,null,null,11,"div",[["class","row mouse-speed-setting"]],null,null,null,null,null)),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275eld"](2,0,null,null,8,"div",[["class","col-xs-12 col-md-6"]],null,null,null,null,null)),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275eld"](4,0,null,null,5,"slider-wrapper",[],[[2,"ng-untouched",null],[2,"ng-touched",null],[2,"ng-pristine",null],[2,"ng-dirty",null],[2,"ng-valid",null],[2,"ng-invalid",null],[2,"ng-pending",null]],[[null,"ngModelChange"]],function(e,t,n){var i=!0,o=e.component;return"ngModelChange"===t&&(i=!1!==(e.context.$implicit.value=n)&&i),"ngModelChange"===t&&(i=!1!==o.onSetPropertyValue(e.context.$implicit.prop,n)&&i),i},We,Ke)),o["\u0275did"](5,4374528,null,0,Fe,[],{label:[0,"label"],tooltip:[1,"tooltip"],min:[2,"min"],max:[3,"max"],step:[4,"step"],pips:[5,"pips"],valueUnit:[6,"valueUnit"]},null),o["\u0275prd"](1024,null,je.NG_VALUE_ACCESSOR,function(e){return[e]},[Fe]),o["\u0275did"](7,671744,null,0,je.NgModel,[[8,null],[8,null],[8,null],[2,je.NG_VALUE_ACCESSOR]],{model:[0,"model"]},{update:"ngModelChange"}),o["\u0275prd"](2048,null,je.NgControl,null,[je.NgModel]),o["\u0275did"](9,16384,null,0,je.NgControlStatus,[je.NgControl],null,null),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275ted"](-1,null,["\n"]))],function(e,t){var n=t.component;e(t,5,0,t.context.$implicit.title,t.context.$implicit.tooltip,n.moveSettings.min,n.moveSettings.max,n.moveSettings.step,n.sliderPips,t.context.$implicit.valueUnit),e(t,7,0,t.context.$implicit.value)},function(e,t){e(t,4,0,o["\u0275nov"](t,9).ngClassUntouched,o["\u0275nov"](t,9).ngClassTouched,o["\u0275nov"](t,9).ngClassPristine,o["\u0275nov"](t,9).ngClassDirty,o["\u0275nov"](t,9).ngClassValid,o["\u0275nov"](t,9).ngClassInvalid,o["\u0275nov"](t,9).ngClassPending)})}function Je(e){return o["\u0275vid"](0,[(e()(),o["\u0275eld"](0,0,null,null,11,"div",[["class","row mouse-speed-setting"]],null,null,null,null,null)),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275eld"](2,0,null,null,8,"div",[["class","col-xs-12 col-md-6"]],null,null,null,null,null)),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275eld"](4,0,null,null,5,"slider-wrapper",[],[[2,"ng-untouched",null],[2,"ng-touched",null],[2,"ng-pristine",null],[2,"ng-dirty",null],[2,"ng-valid",null],[2,"ng-invalid",null],[2,"ng-pending",null]],[[null,"ngModelChange"]],function(e,t,n){var i=!0,o=e.component;return"ngModelChange"===t&&(i=!1!==(e.context.$implicit.value=n)&&i),"ngModelChange"===t&&(i=!1!==o.onSetPropertyValue(e.context.$implicit.prop,n)&&i),i},We,Ke)),o["\u0275did"](5,4374528,null,0,Fe,[],{label:[0,"label"],tooltip:[1,"tooltip"],min:[2,"min"],max:[3,"max"],step:[4,"step"],pips:[5,"pips"],valueUnit:[6,"valueUnit"]},null),o["\u0275prd"](1024,null,je.NG_VALUE_ACCESSOR,function(e){return[e]},[Fe]),o["\u0275did"](7,671744,null,0,je.NgModel,[[8,null],[8,null],[8,null],[2,je.NG_VALUE_ACCESSOR]],{model:[0,"model"]},{update:"ngModelChange"}),o["\u0275prd"](2048,null,je.NgControl,null,[je.NgModel]),o["\u0275did"](9,16384,null,0,je.NgControlStatus,[je.NgControl],null,null),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275ted"](-1,null,["\n"]))],function(e,t){var n=t.component;e(t,5,0,t.context.$implicit.title,t.context.$implicit.tooltip,n.scrollSettings.min,n.scrollSettings.max,n.scrollSettings.step,n.sliderPips,t.context.$implicit.valueUnit),e(t,7,0,t.context.$implicit.value)},function(e,t){e(t,4,0,o["\u0275nov"](t,9).ngClassUntouched,o["\u0275nov"](t,9).ngClassTouched,o["\u0275nov"](t,9).ngClassPristine,o["\u0275nov"](t,9).ngClassDirty,o["\u0275nov"](t,9).ngClassValid,o["\u0275nov"](t,9).ngClassInvalid,o["\u0275nov"](t,9).ngClassPending)})}function Ze(e){return o["\u0275vid"](0,[(e()(),o["\u0275eld"](0,0,null,null,6,"h1",[],null,null,null,null,null)),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275eld"](2,0,null,null,0,"i",[["class","fa fa-sliders"]],null,null,null,null,null)),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275eld"](4,0,null,null,1,"span",[],null,null,null,null,null)),(e()(),o["\u0275ted"](-1,null,["Mouse speed"])),(e()(),o["\u0275ted"](-1,null,["\n"])),(e()(),o["\u0275ted"](-1,null,["\n"])),(e()(),o["\u0275eld"](8,0,null,null,1,"h3",[],null,null,null,null,null)),(e()(),o["\u0275ted"](-1,null,["Mouse pointer speed"])),(e()(),o["\u0275ted"](-1,null,["\n"])),(e()(),o["\u0275and"](16777216,null,null,1,null,Qe)),o["\u0275did"](12,802816,null,0,p.j,[o.ViewContainerRef,o.TemplateRef,o.IterableDiffers],{ngForOf:[0,"ngForOf"]},null),(e()(),o["\u0275ted"](-1,null,["\n"])),(e()(),o["\u0275eld"](14,0,null,null,1,"h3",[],null,null,null,null,null)),(e()(),o["\u0275ted"](-1,null,["Mouse scroll speed"])),(e()(),o["\u0275ted"](-1,null,["\n"])),(e()(),o["\u0275and"](16777216,null,null,1,null,Je)),o["\u0275did"](18,802816,null,0,p.j,[o.ViewContainerRef,o.TemplateRef,o.IterableDiffers],{ngForOf:[0,"ngForOf"]},null),(e()(),o["\u0275ted"](-1,null,["\n"])),(e()(),o["\u0275eld"](20,16777216,null,null,2,"button",[["cancelText","No"],["class","btn btn-danger mouse-speed-reset-button"],["confirmText","Yes"],["mwlConfirmationPopover",""],["placement","top"],["title","Are you sure?"]],null,[[null,"confirm"],[null,"click"]],function(e,t,n){var i=!0,r=e.component;return"click"===t&&(i=!1!==o["\u0275nov"](e,21).togglePopover()&&i),"confirm"===t&&(i=!1!==r.resetToDefault()&&i),i},null,null)),o["\u0275did"](21,737280,null,0,ye,[o.ViewContainerRef,o.ElementRef,y,o.ComponentFactoryResolver,he,o.Renderer2,I.b],{title:[0,"title"],confirmText:[1,"confirmText"],cancelText:[2,"cancelText"],placement:[3,"placement"]},{confirm:"confirm"}),(e()(),o["\u0275ted"](-1,null,["Reset speeds to default\n"]))],function(e,t){var n=t.component;e(t,12,0,n.moveProps),e(t,18,0,n.scrollProps),e(t,21,0,"Are you sure?","Yes","No","top")},null)}var Xe=o["\u0275ccf"]("device-mouse-speed",Ge,function(e){return o["\u0275vid"](0,[(e()(),o["\u0275eld"](0,0,null,null,1,"device-mouse-speed",[["class","container-fluid"]],null,null,null,Ze,Ye)),o["\u0275did"](1,245760,null,0,Ge,[u.m,$e],null,null)],function(e,t){e(t,1,0)},null)},{},{},[]),et=function(){function e(e){this.store=e,this.iconsAndLayerTextsBrightness=0,this.alphanumericSegmentsBrightness=0,this.keyBacklightBrightness=0,this.sliderPips={mode:"positions",values:[0,50,100],density:6,stepped:!0}}return e.prototype.ngOnInit=function(){var e=this;this.userConfig$=this.store.select(c.v),this.userConfigSubscription=this.userConfig$.subscribe(function(t){e.iconsAndLayerTextsBrightness=t.iconsAndLayerTextsBrightness,e.alphanumericSegmentsBrightness=t.alphanumericSegmentsBrightness,e.keyBacklightBrightness=t.keyBacklightBrightness})},e.prototype.ngOnDestroy=function(){this.userConfigSubscription.unsubscribe()},e.prototype.onSetPropertyValue=function(e,t){this.store.dispatch(new me.l({propertyName:e,value:t}))},e}(),tt=o["\u0275crt"]({encapsulation:0,styles:[["[_nghost-%COMP%]{display:block;height:100%;width:100%}[_nghost-%COMP%] label[_ngcontent-%COMP%]{display:block;font-weight:400}[_nghost-%COMP%] .led-setting[_ngcontent-%COMP%]{margin-bottom:6rem}"]],data:{}});function nt(e){return o["\u0275vid"](0,[(e()(),o["\u0275eld"](0,0,null,null,6,"h1",[],null,null,null,null,null)),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275eld"](2,0,null,null,0,"i",[["class","fa fa-sliders"]],null,null,null,null,null)),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275eld"](4,0,null,null,1,"span",[],null,null,null,null,null)),(e()(),o["\u0275ted"](-1,null,["LED brightness"])),(e()(),o["\u0275ted"](-1,null,["\n"])),(e()(),o["\u0275ted"](-1,null,["\n"])),(e()(),o["\u0275eld"](8,0,null,null,11,"div",[["class","row led-setting"]],null,null,null,null,null)),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275eld"](10,0,null,null,8,"div",[["class","col-xs-12 col-md-6"]],null,null,null,null,null)),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275eld"](12,0,null,null,5,"slider-wrapper",[["label","LED display icon and layer texts brightness"]],[[2,"ng-untouched",null],[2,"ng-touched",null],[2,"ng-pristine",null],[2,"ng-dirty",null],[2,"ng-valid",null],[2,"ng-invalid",null],[2,"ng-pending",null]],[[null,"ngModelChange"]],function(e,t,n){var i=!0,o=e.component;return"ngModelChange"===t&&(i=!1!==(o.iconsAndLayerTextsBrightness=n)&&i),"ngModelChange"===t&&(i=!1!==o.onSetPropertyValue("iconsAndLayerTextsBrightness",n)&&i),i},We,Ke)),o["\u0275did"](13,4374528,null,0,Fe,[],{label:[0,"label"],min:[1,"min"],max:[2,"max"],step:[3,"step"],pips:[4,"pips"]},null),o["\u0275prd"](1024,null,je.NG_VALUE_ACCESSOR,function(e){return[e]},[Fe]),o["\u0275did"](15,671744,null,0,je.NgModel,[[8,null],[8,null],[8,null],[2,je.NG_VALUE_ACCESSOR]],{model:[0,"model"]},{update:"ngModelChange"}),o["\u0275prd"](2048,null,je.NgControl,null,[je.NgModel]),o["\u0275did"](17,16384,null,0,je.NgControlStatus,[je.NgControl],null,null),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275ted"](-1,null,["\n"])),(e()(),o["\u0275ted"](-1,null,["\n"])),(e()(),o["\u0275eld"](21,0,null,null,11,"div",[["class","row led-setting"]],null,null,null,null,null)),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275eld"](23,0,null,null,8,"div",[["class","col-xs-12 col-md-6"]],null,null,null,null,null)),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275eld"](25,0,null,null,5,"slider-wrapper",[["label","LED display alphanumeric segments brightness"]],[[2,"ng-untouched",null],[2,"ng-touched",null],[2,"ng-pristine",null],[2,"ng-dirty",null],[2,"ng-valid",null],[2,"ng-invalid",null],[2,"ng-pending",null]],[[null,"ngModelChange"]],function(e,t,n){var i=!0,o=e.component;return"ngModelChange"===t&&(i=!1!==(o.alphanumericSegmentsBrightness=n)&&i),"ngModelChange"===t&&(i=!1!==o.onSetPropertyValue("alphanumericSegmentsBrightness",n)&&i),i},We,Ke)),o["\u0275did"](26,4374528,null,0,Fe,[],{label:[0,"label"],min:[1,"min"],max:[2,"max"],step:[3,"step"],pips:[4,"pips"]},null),o["\u0275prd"](1024,null,je.NG_VALUE_ACCESSOR,function(e){return[e]},[Fe]),o["\u0275did"](28,671744,null,0,je.NgModel,[[8,null],[8,null],[8,null],[2,je.NG_VALUE_ACCESSOR]],{model:[0,"model"]},{update:"ngModelChange"}),o["\u0275prd"](2048,null,je.NgControl,null,[je.NgModel]),o["\u0275did"](30,16384,null,0,je.NgControlStatus,[je.NgControl],null,null),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275ted"](-1,null,["\n"])),(e()(),o["\u0275ted"](-1,null,["\n"])),(e()(),o["\u0275eld"](34,0,null,null,11,"div",[["class","row led-setting"]],null,null,null,null,null)),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275eld"](36,0,null,null,8,"div",[["class","col-xs-12 col-md-6"]],null,null,null,null,null)),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275eld"](38,0,null,null,5,"slider-wrapper",[["label","Key backlight brightness Please note that current UHK versions are not backlit."]],[[2,"ng-untouched",null],[2,"ng-touched",null],[2,"ng-pristine",null],[2,"ng-dirty",null],[2,"ng-valid",null],[2,"ng-invalid",null],[2,"ng-pending",null]],[[null,"ngModelChange"]],function(e,t,n){var i=!0,o=e.component;return"ngModelChange"===t&&(i=!1!==(o.keyBacklightBrightness=n)&&i),"ngModelChange"===t&&(i=!1!==o.onSetPropertyValue("keyBacklightBrightness",n)&&i),i},We,Ke)),o["\u0275did"](39,4374528,null,0,Fe,[],{label:[0,"label"],min:[1,"min"],max:[2,"max"],step:[3,"step"],pips:[4,"pips"]},null),o["\u0275prd"](1024,null,je.NG_VALUE_ACCESSOR,function(e){return[e]},[Fe]),o["\u0275did"](41,671744,null,0,je.NgModel,[[8,null],[8,null],[8,null],[2,je.NG_VALUE_ACCESSOR]],{model:[0,"model"]},{update:"ngModelChange"}),o["\u0275prd"](2048,null,je.NgControl,null,[je.NgModel]),o["\u0275did"](43,16384,null,0,je.NgControlStatus,[je.NgControl],null,null),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275ted"](-1,null,["\n"])),(e()(),o["\u0275ted"](-1,null,["\n"]))],function(e,t){var n=t.component;e(t,13,0,"LED display icon and layer texts brightness",0,255,1,n.sliderPips),e(t,15,0,n.iconsAndLayerTextsBrightness),e(t,26,0,"LED display alphanumeric segments brightness",0,255,1,n.sliderPips),e(t,28,0,n.alphanumericSegmentsBrightness),e(t,39,0,"Key backlight brightness Please note that current UHK versions are not backlit.",0,255,1,n.sliderPips),e(t,41,0,n.keyBacklightBrightness)},function(e,t){e(t,12,0,o["\u0275nov"](t,17).ngClassUntouched,o["\u0275nov"](t,17).ngClassTouched,o["\u0275nov"](t,17).ngClassPristine,o["\u0275nov"](t,17).ngClassDirty,o["\u0275nov"](t,17).ngClassValid,o["\u0275nov"](t,17).ngClassInvalid,o["\u0275nov"](t,17).ngClassPending),e(t,25,0,o["\u0275nov"](t,30).ngClassUntouched,o["\u0275nov"](t,30).ngClassTouched,o["\u0275nov"](t,30).ngClassPristine,o["\u0275nov"](t,30).ngClassDirty,o["\u0275nov"](t,30).ngClassValid,o["\u0275nov"](t,30).ngClassInvalid,o["\u0275nov"](t,30).ngClassPending),e(t,38,0,o["\u0275nov"](t,43).ngClassUntouched,o["\u0275nov"](t,43).ngClassTouched,o["\u0275nov"](t,43).ngClassPristine,o["\u0275nov"](t,43).ngClassDirty,o["\u0275nov"](t,43).ngClassValid,o["\u0275nov"](t,43).ngClassInvalid,o["\u0275nov"](t,43).ngClassPending)})}var it=o["\u0275ccf"]("device-led-brightness",et,function(e){return o["\u0275vid"](0,[(e()(),o["\u0275eld"](0,0,null,null,1,"device-led-brightness",[["class","container-fluid"]],null,null,null,nt,tt)),o["\u0275did"](1,245760,null,0,et,[u.m],null,null)],function(e,t){e(t,1,0)},null)},{},{},[]),ot=function(){function e(e){var t=this;this.store=e,this.flashFirmwareButtonDisbabled$=e.select(c.h),this.xtermLog$=e.select(c.A),this.getAgentVersionInfo$=e.select(c.i),this.hardwareModulesSubscription=e.select(c.m).subscribe(function(e){t.hardwareModules=e}),this.runningOnNotSupportedWindows$=e.select(c.y),this.firmwareUpgradeAllowed$=e.select(c.e),this.firmwareUpgradeFailed$=e.select(c.f),this.firmwareUpgradeSuccess$=e.select(c.g)}return e.prototype.ngOnDestroy=function(){this.hardwareModulesSubscription.unsubscribe()},e.prototype.onUpdateFirmware=function(){this.store.dispatch(new s.s)},e.prototype.changeFile=function(e){this.store.dispatch(new s.w(e.data))},e.prototype.openFirmwareGitHubIssuePage=function(e){e.preventDefault(),this.store.dispatch(new F.h(ze.Constants.FIRMWARE_GITHUB_ISSUE_URL))},e}(),rt=o["\u0275crt"]({encapsulation:0,styles:[["[_nghost-%COMP%]{overflow-y:auto;display:block;height:100vh;min-height:100%;width:100%}.link-github[_ngcontent-%COMP%]{cursor:pointer}"]],data:{}});function lt(e){return o["\u0275vid"](0,[(e()(),o["\u0275eld"](0,0,null,null,1,"p",[],null,null,null,null,null)),(e()(),o["\u0275ted"](-1,null,["Firmware update doesn't work on Windows 7, Windows Vista,\n and Windows XP. Use Windows 10, Windows 8, Linux, or OSX instead."]))],null,null)}function ut(e){return o["\u0275vid"](0,[(e()(),o["\u0275eld"](0,0,null,null,10,"p",[],null,null,null,null,null)),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275eld"](2,0,null,null,3,"button",[["class","btn btn-primary"]],[[8,"disabled",0]],[[null,"click"]],function(e,t,n){var i=!0;return"click"===t&&(i=!1!==e.component.onUpdateFirmware()&&i),i},null,null)),o["\u0275pid"](131072,p.b,[o.ChangeDetectorRef]),(e()(),o["\u0275ted"](4,null,["\n Flash firmware "," (bundled with Agent)\n "])),o["\u0275pid"](131072,p.b,[o.ChangeDetectorRef]),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275eld"](7,0,null,null,2,"file-upload",[["accept",".tar.bz2"],["label","Choose firmware file and flash it"]],null,[[null,"fileChanged"]],function(e,t,n){var i=!0;return"fileChanged"===t&&(i=!1!==e.component.changeFile(n)&&i),i},fe,pe)),o["\u0275did"](8,49152,null,0,de,[],{label:[0,"label"],disabled:[1,"disabled"],accept:[2,"accept"]},{fileChanged:"fileChanged"}),o["\u0275pid"](131072,p.b,[o.ChangeDetectorRef]),(e()(),o["\u0275ted"](-1,null,["\n "]))],function(e,t){var n=t.component;e(t,8,0,"Choose firmware file and flash it",o["\u0275unv"](t,8,1,o["\u0275nov"](t,9).transform(n.flashFirmwareButtonDisbabled$)),".tar.bz2")},function(e,t){var n=t.component;e(t,2,0,o["\u0275unv"](t,2,0,o["\u0275nov"](t,3).transform(n.flashFirmwareButtonDisbabled$))),e(t,4,0,o["\u0275unv"](t,4,0,o["\u0275nov"](t,5).transform(n.getAgentVersionInfo$)).firmwareVersion)})}function at(e){return o["\u0275vid"](0,[(e()(),o["\u0275eld"](0,0,null,null,10,"div",[["class","alert alert-danger"],["role","alert"]],null,null,null,null,null)),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275eld"](2,0,null,null,1,"p",[],null,null,null,null,null)),(e()(),o["\u0275ted"](-1,null,["Firmware update failed. Disconnect every USB device from your computer (including USB hubs, KVM switches, USB dongles, and everything else), then connect only your UHK and retry."])),(e()(),o["\u0275ted"](-1,null,["\n\n "])),(e()(),o["\u0275eld"](5,0,null,null,4,"p",[],null,null,null,null,null)),(e()(),o["\u0275ted"](-1,null,["If you've tried the above and the update still keeps failing, please "])),(e()(),o["\u0275eld"](7,0,null,null,1,"a",[["class","link-github"]],null,[[null,"click"]],function(e,t,n){var i=!0;return"click"===t&&(i=!1!==e.component.openFirmwareGitHubIssuePage(n)&&i),i},null,null)),(e()(),o["\u0275ted"](-1,null,["create a GitHub issue"])),(e()(),o["\u0275ted"](-1,null,[", and attach the update log."])),(e()(),o["\u0275ted"](-1,null,["\n "]))],null,null)}function st(e){return o["\u0275vid"](0,[(e()(),o["\u0275eld"](0,0,null,null,4,"div",[["class","alert alert-success"],["role","alert"]],null,null,null,null,null)),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275eld"](2,0,null,null,1,"p",[],null,null,null,null,null)),(e()(),o["\u0275ted"](-1,null,["Firmware update succeeded."])),(e()(),o["\u0275ted"](-1,null,["\n "]))],null,null)}function ct(e){return o["\u0275vid"](0,[(e()(),o["\u0275eld"](0,0,null,null,5,"div",[["class","flex-grow"]],null,null,null,null,null)),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275eld"](2,0,null,null,2,"xterm",[],null,null,null,te,X)),o["\u0275did"](3,573440,null,0,Z,[],{logs:[0,"logs"]},null),o["\u0275pid"](131072,p.b,[o.ChangeDetectorRef]),(e()(),o["\u0275ted"](-1,null,["\n "]))],function(e,t){var n=t.component;e(t,3,0,o["\u0275unv"](t,3,0,o["\u0275nov"](t,4).transform(n.xtermLog$)))},null)}function dt(e){return o["\u0275vid"](0,[(e()(),o["\u0275eld"](0,0,null,null,43,"div",[["class","full-height"]],null,null,null,null,null)),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275eld"](2,0,null,null,40,"div",[["class","flex-container"]],null,null,null,null,null)),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275eld"](4,0,null,null,30,"div",[],null,null,null,null,null)),(e()(),o["\u0275ted"](-1,null,["\n\n "])),(e()(),o["\u0275eld"](6,0,null,null,6,"h1",[],null,null,null,null,null)),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275eld"](8,0,null,null,0,"i",[["class","fa fa-sliders"]],null,null,null,null,null)),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275eld"](10,0,null,null,1,"span",[],null,null,null,null,null)),(e()(),o["\u0275ted"](-1,null,["Firmware"])),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275ted"](-1,null,["\n\n "])),(e()(),o["\u0275eld"](14,0,null,null,3,"p",[],null,null,null,null,null)),(e()(),o["\u0275ted"](15,null,["\n Firmware "," is running on the left keyboard half."])),(e()(),o["\u0275eld"](16,0,null,null,0,"br",[],null,null,null,null,null)),(e()(),o["\u0275ted"](17,null,["\n Firmware "," is running on the right keyboard half.\n "])),(e()(),o["\u0275ted"](-1,null,["\n\n "])),(e()(),o["\u0275and"](16777216,null,null,2,null,lt)),o["\u0275did"](20,16384,null,0,p.k,[o.ViewContainerRef,o.TemplateRef],{ngIf:[0,"ngIf"]},null),o["\u0275pid"](131072,p.b,[o.ChangeDetectorRef]),(e()(),o["\u0275ted"](-1,null,["\n\n "])),(e()(),o["\u0275and"](16777216,null,null,2,null,ut)),o["\u0275did"](24,16384,null,0,p.k,[o.ViewContainerRef,o.TemplateRef],{ngIf:[0,"ngIf"]},null),o["\u0275pid"](131072,p.b,[o.ChangeDetectorRef]),(e()(),o["\u0275ted"](-1,null,["\n\n "])),(e()(),o["\u0275and"](16777216,null,null,2,null,at)),o["\u0275did"](28,16384,null,0,p.k,[o.ViewContainerRef,o.TemplateRef],{ngIf:[0,"ngIf"]},null),o["\u0275pid"](131072,p.b,[o.ChangeDetectorRef]),(e()(),o["\u0275ted"](-1,null,["\n\n "])),(e()(),o["\u0275and"](16777216,null,null,2,null,st)),o["\u0275did"](32,16384,null,0,p.k,[o.ViewContainerRef,o.TemplateRef],{ngIf:[0,"ngIf"]},null),o["\u0275pid"](131072,p.b,[o.ChangeDetectorRef]),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275ted"](-1,null,["\n\n "])),(e()(),o["\u0275and"](16777216,null,null,2,null,ct)),o["\u0275did"](37,16384,null,0,p.k,[o.ViewContainerRef,o.TemplateRef],{ngIf:[0,"ngIf"]},null),o["\u0275pid"](131072,p.b,[o.ChangeDetectorRef]),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275eld"](40,0,null,null,1,"div",[["class","flex-footer"]],null,null,null,null,null)),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275ted"](-1,null,["\n"])),(e()(),o["\u0275ted"](-1,null,["\n"]))],function(e,t){var n=t.component;e(t,20,0,o["\u0275unv"](t,20,0,o["\u0275nov"](t,21).transform(n.runningOnNotSupportedWindows$))),e(t,24,0,o["\u0275unv"](t,24,0,o["\u0275nov"](t,25).transform(n.firmwareUpgradeAllowed$))),e(t,28,0,o["\u0275unv"](t,28,0,o["\u0275nov"](t,29).transform(n.firmwareUpgradeFailed$))),e(t,32,0,o["\u0275unv"](t,32,0,o["\u0275nov"](t,33).transform(n.firmwareUpgradeSuccess$))),e(t,37,0,o["\u0275unv"](t,37,0,o["\u0275nov"](t,38).transform(n.firmwareUpgradeAllowed$)))},function(e,t){var n=t.component;e(t,15,0,n.hardwareModules.leftModuleInfo.firmwareVersion),e(t,17,0,n.hardwareModules.rightModuleInfo.firmwareVersion)})}var pt=o["\u0275ccf"]("device-firmware",ot,function(e){return o["\u0275vid"](0,[(e()(),o["\u0275eld"](0,0,null,null,1,"device-firmware",[["class","container-fluid"]],null,null,null,dt,rt)),o["\u0275did"](1,180224,null,0,ot,[u.m],null,null)],null,null)},{},{},[]),ft=function(){function e(e,t){this.store=e,this.cdRef=t}return e.prototype.ngOnDestroy=function(){this.stateSubscription&&this.stateSubscription.unsubscribe()},e.prototype.ngOnInit=function(){var e=this;this.stateSubscription=this.store.select(c.k).subscribe(function(t){e.state=t,e.cdRef.markForCheck()})},e.prototype.resetUserConfiguration=function(){this.store.dispatch(new s.i)},e.prototype.restoreUserConfiguration=function(){this.store.dispatch(new s.j)},e}(),ht=o["\u0275crt"]({encapsulation:0,styles:[["[_nghost-%COMP%]{overflow-y:auto;display:block;height:100%;width:100%}[_nghost-%COMP%] p[_ngcontent-%COMP%]{margin:1.5rem 0}"]],data:{}});function yt(e){return o["\u0275vid"](0,[(e()(),o["\u0275eld"](0,0,null,null,1,"button",[["class","btn btn-primary"]],[[8,"disabled",0]],[[null,"click"]],function(e,t,n){var i=!0;return"click"===t&&(i=!1!==e.component.restoreUserConfiguration()&&i),i},null,null)),(e()(),o["\u0275ted"](-1,null,[" Restore the last valid device configuration\n"]))],null,function(e,t){e(t,0,0,t.component.state.restoringUserConfiguration)})}function mt(e){return o["\u0275vid"](0,[(e()(),o["\u0275eld"](0,0,null,null,1,"button",[["class","btn btn-danger"]],[[8,"disabled",0]],[[null,"click"]],function(e,t,n){var i=!0;return"click"===t&&(i=!1!==e.component.resetUserConfiguration()&&i),i},null,null)),(e()(),o["\u0275ted"](-1,null,["Reset device configuration\n"]))],null,function(e,t){e(t,0,0,t.component.state.restoringUserConfiguration)})}function gt(e){return o["\u0275vid"](0,[(e()(),o["\u0275eld"](0,0,null,null,6,"h1",[],null,null,null,null,null)),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275eld"](2,0,null,null,0,"i",[["class","fa fa-exclamation-circle"]],null,null,null,null,null)),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275eld"](4,0,null,null,1,"span",[],null,null,null,null,null)),(e()(),o["\u0275ted"](-1,null,["Fix configuration"])),(e()(),o["\u0275ted"](-1,null,["\n"])),(e()(),o["\u0275ted"](-1,null,["\n\n"])),(e()(),o["\u0275eld"](8,0,null,null,1,"p",[],null,null,null,null,null)),(e()(),o["\u0275ted"](-1,null,["\n Your on-board device configuration is invalid.\n"])),(e()(),o["\u0275ted"](-1,null,["\n"])),(e()(),o["\u0275and"](16777216,null,null,1,null,yt)),o["\u0275did"](12,16384,null,0,p.k,[o.ViewContainerRef,o.TemplateRef],{ngIf:[0,"ngIf"]},null),(e()(),o["\u0275ted"](-1,null,["\n\n"])),(e()(),o["\u0275and"](16777216,null,null,1,null,mt)),o["\u0275did"](15,16384,null,0,p.k,[o.ViewContainerRef,o.TemplateRef],{ngIf:[0,"ngIf"]},null),(e()(),o["\u0275ted"](-1,null,["\n"]))],function(e,t){var n=t.component;e(t,12,0,n.state.hasBackupUserConfiguration),e(t,15,0,!n.state.hasBackupUserConfiguration)},null)}var vt=o["\u0275ccf"]("restore-configuration",ft,function(e){return o["\u0275vid"](0,[(e()(),o["\u0275eld"](0,0,null,null,1,"restore-configuration",[["class","container-fluid"]],null,null,null,gt,ht)),o["\u0275did"](1,245760,null,0,ft,[u.m,o.ChangeDetectorRef],null,null)],function(e,t){e(t,1,0)},null)},{},{},[]),bt=function(){function e(){this.close=new o.EventEmitter,this.undo=new o.EventEmitter}return Object.defineProperty(e.prototype,"slideInOut",{get:function(){return this.notification?"in":"out"},enumerable:!0,configurable:!0}),e.prototype.ngOnChanges=function(e){if(e.notification){var t=e.notification.currentValue;t&&(this.text=t.message,this.undoable=!!t.extra)}},e.prototype.clickOnClose=function(){this.close.emit()},e.prototype.clickOnUndo=function(){this.undo.emit(this.notification.extra)},e}(),kt=o["\u0275crt"]({encapsulation:0,styles:[[".alert[_ngcontent-%COMP%]{padding:5px 10px 5px 5px;margin-bottom:.25em;margin-top:-2em}.alert[_ngcontent-%COMP%] .close[_ngcontent-%COMP%]{right:-5px}.alert[_ngcontent-%COMP%] .undo-button[_ngcontent-%COMP%]{cursor:pointer}"]],data:{animation:[{type:7,name:"slideInOut",definitions:[{type:0,name:"in",styles:{type:6,styles:{transform:"translate3d(0, 0, 0)"},offset:null},options:void 0},{type:0,name:"out",styles:{type:6,styles:{transform:"translate3d(200%, 0, 0)"},offset:null},options:void 0},{type:1,expr:"in => out",animation:{type:4,styles:null,timings:"400ms ease-in-out"},options:null},{type:1,expr:"out => in",animation:{type:4,styles:null,timings:"400ms ease-in-out"},options:null}],options:{}}]}});function _t(e){return o["\u0275vid"](0,[(e()(),o["\u0275eld"](0,0,null,null,1,"a",[["class","undo-button"]],null,[[null,"click"]],function(e,t,n){var i=!0;return"click"===t&&(i=!1!==e.component.clickOnUndo()&&i),i},null,null)),(e()(),o["\u0275ted"](-1,null,["Undo"]))],null,null)}function wt(e){return o["\u0275vid"](2,[(e()(),o["\u0275eld"](0,0,null,null,13,"div",[["class","pull-right"]],null,null,null,null,null)),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275eld"](2,0,null,null,10,"div",[["class","alert alert-warning alert-dismissible"],["role","alert"]],[[24,"@slideInOut",0]],null,null,null,null)),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275eld"](4,0,null,null,4,"button",[["aria-label","Close"],["class","close"],["type","button"]],null,[[null,"click"]],function(e,t,n){var i=!0;return"click"===t&&(i=!1!==e.component.clickOnClose()&&i),i},null,null)),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275eld"](6,0,null,null,1,"span",[["aria-hidden","true"]],null,null,null,null,null)),(e()(),o["\u0275ted"](-1,null,["\xd7"])),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275ted"](9,null,["\n ","\n "])),(e()(),o["\u0275and"](16777216,null,null,1,null,_t)),o["\u0275did"](11,16384,null,0,p.k,[o.ViewContainerRef,o.TemplateRef],{ngIf:[0,"ngIf"]},null),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275ted"](-1,null,["\n"])),(e()(),o["\u0275ted"](-1,null,["\n"]))],function(e,t){e(t,11,0,t.component.undoable)},function(e,t){var n=t.component;e(t,2,0,n.slideInOut),e(t,9,0,n.text)})}var At=function(){function e(e){this.store=e,this.undoableNotification$=this.store.select(c.u)}return e.prototype.onUndoLastNotification=function(e){this.store.dispatch(new F.m(e))},e.prototype.onDismissLastNotification=function(){this.store.dispatch(new F.d)},e}(),Tt=o["\u0275crt"]({encapsulation:2,styles:[],data:{}});function Ct(e){return o["\u0275vid"](2,[(e()(),o["\u0275eld"](0,0,null,null,3,"div",[],null,null,null,null,null)),(e()(),o["\u0275ted"](-1,null,["\n "])),o["\u0275ncd"](null,0),(e()(),o["\u0275ted"](-1,null,["\n"])),(e()(),o["\u0275ted"](-1,null,["\n"])),(e()(),o["\u0275eld"](5,0,null,null,9,"div",[["class","row"]],null,null,null,null,null)),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275eld"](7,0,null,null,6,"div",[["class","col-xs-12"]],null,null,null,null,null)),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275eld"](9,0,null,null,3,"undoable-notifier",[],null,[[null,"close"],[null,"undo"]],function(e,t,n){var i=!0,o=e.component;return"close"===t&&(i=!1!==o.onDismissLastNotification()&&i),"undo"===t&&(i=!1!==o.onUndoLastNotification(n)&&i),i},wt,kt)),o["\u0275did"](10,573440,null,0,bt,[],{notification:[0,"notification"]},{close:"close",undo:"undo"}),o["\u0275pid"](131072,p.b,[o.ChangeDetectorRef]),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275ted"](-1,null,["\n"])),(e()(),o["\u0275ted"](-1,null,["\n\n"]))],function(e,t){var n=t.component;e(t,10,0,o["\u0275unv"](t,10,0,o["\u0275nov"](t,11).transform(n.undoableNotification$)))},null)}var xt=function(){function e(e,t){this.elementRef=e,this.renderer=t}return e.prototype.onFocus=function(){this.originalValue=this.elementRef.nativeElement.value},e.prototype.onEscape=function(){this.renderer.setElementProperty(this.elementRef.nativeElement,"value",this.originalValue),this.renderer.invokeElementMethod(this.elementRef.nativeElement,"blur")},e}(),Ot=n("WP8/"),St=n("Lt3n"),Mt='Delete keymap',Et=function(){function e(e,t){this.store=e,this.renderer=t,this.downloadClick=new o.EventEmitter,this.trashTitle=Mt}return e.prototype.ngOnChanges=function(e){e.keymap&&(this.setKeymapTitle(),this.setName(),this.setAbbreviation()),e.deletable&&this.setTrashTitle()},e.prototype.windowResize=function(){this.calculateHeaderTextWidth(this.keymap.name)},e.prototype.setDefault=function(){this.keymap.isDefault||this.store.dispatch(Ot.a.setDefault(this.keymap.abbreviation))},e.prototype.removeKeymap=function(){this.deletable&&this.store.dispatch(Ot.a.removeKeymap(this.keymap.abbreviation))},e.prototype.duplicateKeymap=function(){this.store.dispatch(Ot.a.duplicateKeymap(this.keymap))},e.prototype.editKeymapName=function(e){St.d(e)?this.store.dispatch(Ot.a.editKeymapName(this.keymap.abbreviation,e)):this.setName()},e.prototype.editKeymapAbbr=function(e){var t=new RegExp(/^[a-zA-Z\d]+$/g);e.length<1||e.length>3||!t.test(e)?this.setAbbreviation():(e=e.toUpperCase(),this.store.dispatch(Ot.a.editKeymapAbbr(this.keymap.name,this.keymap.abbreviation,e)))},e.prototype.setKeymapTitle=function(){this.starTitle=this.keymap.isDefault?"This is the default keymap which gets activated when powering the keyboard.":"Makes this keymap the default keymap which gets activated when powering the keyboard."},e.prototype.setTrashTitle=function(){this.trashTitle=this.deletable?Mt:'The last keymap cannot be deleted.'},e.prototype.onDownloadIconClick=function(){this.downloadClick.emit()},e.prototype.calculateHeaderTextWidth=function(e){var t=this.keymapName.nativeElement,n=t.parentElement.offsetWidth-530,i=St.b(window.getComputedStyle(t),e);this.renderer.setStyle(t,"width",Math.min(n,i)+"px")},e.prototype.setName=function(){this.renderer.setProperty(this.keymapName.nativeElement,"value",this.keymap.name),this.calculateHeaderTextWidth(this.keymap.name)},e.prototype.setAbbreviation=function(){this.renderer.setProperty(this.keymapAbbr.nativeElement,"value",this.keymap.abbreviation)},e}(),Pt=o["\u0275crt"]({encapsulation:0,styles:[["[_nghost-%COMP%]{display:block}.keymap__is-default.fa-star-o[_ngcontent-%COMP%]{cursor:pointer}.keymap__is-default.fa-star-o[_ngcontent-%COMP%]:hover{color:#337ab7}.keymap__remove[_ngcontent-%COMP%]{font-size:.75em;top:8px}.keymap__remove[_ngcontent-%COMP%]:not(.disabled):hover{cursor:pointer;color:#900}.keymap__remove.disabled[_ngcontent-%COMP%]{opacity:.25}.keymap__duplicate[_ngcontent-%COMP%]{font-size:.75em;top:7px;margin-right:15px;position:relative}.keymap__duplicate[_ngcontent-%COMP%]:hover{cursor:pointer;color:#337ab7}.keymap__download[_ngcontent-%COMP%]{top:10px;font-size:.8em;position:relative;margin-right:10px}.keymap__download[_ngcontent-%COMP%]:hover{cursor:pointer;color:#337ab7}.pane-title[_ngcontent-%COMP%]{margin-bottom:1em}.pane-title__abbrev[_ngcontent-%COMP%], .pane-title__name[_ngcontent-%COMP%]{border:none;border-bottom:2px dotted #999;padding:0;margin:0 .25rem}.pane-title__abbrev[_ngcontent-%COMP%]:focus, .pane-title__name[_ngcontent-%COMP%]:focus{-webkit-box-shadow:0 0 0 1px #ccc,0 0 5px 0 #ccc;box-shadow:0 0 0 1px #ccc,0 0 5px 0 #ccc;border-color:transparent}.pane-title__name[_ngcontent-%COMP%]{width:290px;text-overflow:ellipsis}.pane-title__abbrev[_ngcontent-%COMP%]{width:90px;text-align:center}"]],data:{}});function It(e){return o["\u0275vid"](2,[o["\u0275qud"](402653184,1,{keymapName:0}),o["\u0275qud"](402653184,2,{keymapAbbr:0}),(e()(),o["\u0275eld"](2,0,null,null,28,"uhk-header",[],null,null,null,Ct,Tt)),o["\u0275did"](3,49152,null,0,At,[u.m],null,null),(e()(),o["\u0275ted"](-1,0,["\n "])),(e()(),o["\u0275eld"](5,0,null,0,24,"div",[["class","row"]],null,null,null,null,null)),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275eld"](7,0,null,null,21,"h1",[["class","col-xs-12 pane-title"]],null,null,null,null,null)),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275eld"](9,0,null,null,0,"i",[["class","fa fa-keyboard-o"]],null,null,null,null,null)),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275eld"](11,0,[[1,0],["name",1]],null,1,"input",[["cancelable",""],["class","keymap__name pane-title__name"],["type","text"]],null,[[null,"change"],[null,"keyup.enter"],[null,"keyup"],[null,"focus"],[null,"keyup.escape"]],function(e,t,n){var i=!0,r=e.component;return"focus"===t&&(i=!1!==o["\u0275nov"](e,12).onFocus()&&i),"keyup.escape"===t&&(i=!1!==o["\u0275nov"](e,12).onEscape()&&i),"change"===t&&(i=!1!==r.editKeymapName(n.target.value)&&i),"keyup.enter"===t&&(i=!1!==o["\u0275nov"](e,11).blur()&&i),"keyup"===t&&(i=!1!==r.calculateHeaderTextWidth(n.target.value)&&i),i},null,null)),o["\u0275did"](12,16384,null,0,xt,[o.ElementRef,o.Renderer],null,null),(e()(),o["\u0275ted"](-1,null,[" keymap\n ("])),(e()(),o["\u0275eld"](14,0,[[2,0],["abbr",1]],null,1,"input",[["cancelable",""],["class","keymap__abbrev pane-title__abbrev"],["type","text"]],[[1,"maxLength",0]],[[null,"change"],[null,"keyup.enter"],[null,"focus"],[null,"keyup.escape"]],function(e,t,n){var i=!0,r=e.component;return"focus"===t&&(i=!1!==o["\u0275nov"](e,15).onFocus()&&i),"keyup.escape"===t&&(i=!1!==o["\u0275nov"](e,15).onEscape()&&i),"change"===t&&(i=!1!==r.editKeymapAbbr(n.target.value)&&i),"keyup.enter"===t&&(i=!1!==o["\u0275nov"](e,14).blur()&&i),i},null,null)),o["\u0275did"](15,16384,null,0,xt,[o.ElementRef,o.Renderer],null,null),(e()(),o["\u0275ted"](-1,null,[")\n "])),(e()(),o["\u0275eld"](17,0,null,null,3,"i",[["class","fa keymap__is-default"],["data-placement","bottom"],["data-toggle","tooltip"]],[[1,"data-placement",0]],[[null,"click"]],function(e,t,n){var i=!0;return"click"===t&&(i=!1!==e.component.setDefault()&&i),i},null,null)),o["\u0275did"](18,278528,null,0,p.i,[o.IterableDiffers,o.KeyValueDiffers,o.ElementRef,o.Renderer2],{klass:[0,"klass"],ngClass:[1,"ngClass"]},null),o["\u0275pod"](19,{"fa-star-o":0,"fa-star":1}),o["\u0275did"](20,1589248,null,0,V,[o.ElementRef,I.c],{title:[0,"title"]},null),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275eld"](22,0,null,null,1,"i",[["class","glyphicon glyphicon-trash keymap__remove pull-right"],["data-placement","bottom"],["data-toggle","tooltip"],["html","true"]],[[2,"disabled",null],[1,"data-placement",0]],[[null,"click"]],function(e,t,n){var i=!0;return"click"===t&&(i=!1!==e.component.removeKeymap()&&i),i},null,null)),o["\u0275did"](23,1589248,null,0,V,[o.ElementRef,I.c],{title:[0,"title"],html:[1,"html"]},null),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275eld"](25,0,null,null,1,"i",[["class","fa fa-files-o keymap__duplicate pull-right"],["data-placement","bottom"],["data-toggle","tooltip"],["title","Duplicate keymap"]],[[1,"data-placement",0]],[[null,"click"]],function(e,t,n){var i=!0;return"click"===t&&(i=!1!==e.component.duplicateKeymap()&&i),i},null,null)),o["\u0275did"](26,1589248,null,0,V,[o.ElementRef,I.c],{title:[0,"title"]},null),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275ted"](-1,0,["\n"])),(e()(),o["\u0275ted"](-1,null,["\n"]))],function(e,t){var n=t.component;e(t,18,0,"fa keymap__is-default",e(t,19,0,!n.keymap.isDefault,n.keymap.isDefault)),e(t,20,0,n.starTitle),e(t,23,0,n.trashTitle,"true"),e(t,26,0,"Duplicate keymap")},function(e,t){var n=t.component;e(t,14,0,3),e(t,17,0,o["\u0275nov"](t,20).placement),e(t,22,0,!n.deletable,o["\u0275nov"](t,23).placement),e(t,25,0,o["\u0275nov"](t,26).placement)})}var Rt=function(){function e(){this.select=new o.EventEmitter,this.buttons=["Base","Mod","Fn","Mouse"],this.current=0}return e.prototype.selectLayer=function(e){this.current!==e&&(this.select.emit({oldIndex:this.current,index:e}),this.current=e)},e}(),Dt=o["\u0275crt"]({encapsulation:0,styles:[["[_nghost-%COMP%]{display:block}.disabled[_nghost-%COMP%] button[_ngcontent-%COMP%]{cursor:no-drop;background:rgba(204,204,204,.43);pointer-events:none}.disabled[_nghost-%COMP%] button.btn-primary[_ngcontent-%COMP%]{background:#7c7c7c;border-color:#7c7c7c}.uhk__layer-switcher--wrapper[_ngcontent-%COMP%]{position:relative;margin-bottom:2rem}.uhk__layer-switcher--wrapper[_ngcontent-%COMP%]:before{content:attr(data-title);display:inline-block;position:absolute;bottom:.55em;right:100%;font-size:18px;padding-right:.45em;margin:0}"]],data:{}});function Nt(e){return o["\u0275vid"](0,[(e()(),o["\u0275eld"](0,0,null,null,1,"button",[["class","btn btn-default"],["type","button"]],[[2,"btn-primary",null]],[[null,"click"]],function(e,t,n){var i=!0;return"click"===t&&(i=!1!==e.component.selectLayer(e.context.index)&&i),i},null,null)),(e()(),o["\u0275ted"](1,null,["\n ","\n "]))],null,function(e,t){e(t,0,0,t.context.index===t.component.current),e(t,1,0,t.context.$implicit)})}function jt(e){return o["\u0275vid"](0,[(e()(),o["\u0275eld"](0,0,null,null,7,"div",[["class","text-center"]],null,null,null,null,null)),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275eld"](2,0,null,null,4,"span",[["class","uhk__layer-switcher--wrapper btn-group btn-group-lg"],["data-title","Layers: "],["role","group"]],null,null,null,null,null)),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275and"](16777216,null,null,1,null,Nt)),o["\u0275did"](5,802816,null,0,p.j,[o.ViewContainerRef,o.TemplateRef,o.IterableDiffers],{ngForOf:[0,"ngForOf"]},null),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275ted"](-1,null,["\n"]))],function(e,t){e(t,5,0,t.component.buttons)},null)}var Lt=function(){function e(){}return e.prototype.ngOnInit=function(){this.svgWidth=this.width/3,this.svgHeight=this.height/3},e}(),Ut=o["\u0275crt"]({encapsulation:2,styles:[],data:{}});function Vt(e){return o["\u0275vid"](2,[(e()(),o["\u0275eld"](0,0,null,null,1,":svg:use",[],[[1,":xlink:href",0],[1,"width",0],[1,"height",0],[1,"x",0],[1,"y",0]],null,null,null,null)),(e()(),o["\u0275ted"](-1,null,["\n"])),(e()(),o["\u0275ted"](-1,null,["\n"]))],null,function(e,t){var n=t.component;e(t,0,0,n.icon,n.svgWidth,n.svgHeight,n.svgWidth,n.svgHeight)})}var Ft=function(){function e(){}return e.prototype.ngOnInit=function(){this.textY=this.height/2,this.spanX=this.width/2},e}(),Kt=o["\u0275crt"]({encapsulation:2,styles:[],data:{}});function Bt(e){return o["\u0275vid"](2,[(e()(),o["\u0275ted"](-1,null,[" "])),(e()(),o["\u0275eld"](1,0,null,null,4,":svg:text",[],[[1,"x",0],[1,"y",0],[1,"text-anchor",0]],null,null,null,null)),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275eld"](3,0,null,null,1,":svg:tspan",[["dy","0"]],[[1,"x",0]],null,null,null,null)),(e()(),o["\u0275ted"](4,null,["",""])),(e()(),o["\u0275ted"](-1,null,["\n "]))],null,function(e,t){var n=t.component;e(t,1,0,0,n.textY,"middle"),e(t,3,0,n.spanX),e(t,4,0,n.text)})}var Ht=function(){function e(){this.spanYs=[]}return e.prototype.ngOnInit=function(){this.textY=this.height/2,this.spanX=this.width/2;for(var e=0;e"]),this.basicScanCodeTextMap.set(56,["/","?"]),this.basicScanCodeTextMap.set(57,["Caps Lock"]),this.basicScanCodeTextMap.set(58,["F1"]),this.basicScanCodeTextMap.set(59,["F2"]),this.basicScanCodeTextMap.set(60,["F3"]),this.basicScanCodeTextMap.set(61,["F4"]),this.basicScanCodeTextMap.set(62,["F5"]),this.basicScanCodeTextMap.set(63,["F6"]),this.basicScanCodeTextMap.set(64,["F7"]),this.basicScanCodeTextMap.set(65,["F8"]),this.basicScanCodeTextMap.set(66,["F9"]),this.basicScanCodeTextMap.set(67,["F10"]),this.basicScanCodeTextMap.set(68,["F11"]),this.basicScanCodeTextMap.set(69,["F12"]),this.basicScanCodeTextMap.set(70,["PrtScn"]),this.basicScanCodeTextMap.set(71,["Scroll Lock"]),this.basicScanCodeTextMap.set(72,["Pause"]),this.basicScanCodeTextMap.set(73,["Insert"]),this.basicScanCodeTextMap.set(74,["Home"]),this.basicScanCodeTextMap.set(75,["PgUp"]),this.basicScanCodeTextMap.set(76,["Del"]),this.basicScanCodeTextMap.set(77,["End"]),this.basicScanCodeTextMap.set(78,["PgDn"]),this.basicScanCodeTextMap.set(79,["Right Arrow"]),this.basicScanCodeTextMap.set(80,["Left Arrow"]),this.basicScanCodeTextMap.set(81,["Down Arrow"]),this.basicScanCodeTextMap.set(82,["Up Arrow"]),this.basicScanCodeTextMap.set(83,["Num Lock"]),this.basicScanCodeTextMap.set(84,["/"]),this.basicScanCodeTextMap.set(85,["*"]),this.basicScanCodeTextMap.set(86,["-"]),this.basicScanCodeTextMap.set(87,["+"]),this.basicScanCodeTextMap.set(88,[this.getOsSpecificText("Enter")]),this.basicScanCodeTextMap.set(89,["end","1"]),this.basicScanCodeTextMap.set(90,["2"]),this.basicScanCodeTextMap.set(91,["pgdn","3"]),this.basicScanCodeTextMap.set(92,["4"]),this.basicScanCodeTextMap.set(93,["5"]),this.basicScanCodeTextMap.set(94,["6"]),this.basicScanCodeTextMap.set(95,["home","7"]),this.basicScanCodeTextMap.set(96,["8"]),this.basicScanCodeTextMap.set(97,["pgup","9"]),this.basicScanCodeTextMap.set(98,["Insert","0"]),this.basicScanCodeTextMap.set(99,["Del","."]),this.basicScanCodeTextMap.set(100,["ISO key","|"]),this.basicScanCodeTextMap.set(101,["Menu"]),this.basicScanCodeTextMap.set(104,["F13"]),this.basicScanCodeTextMap.set(105,["F14"]),this.basicScanCodeTextMap.set(106,["F15"]),this.basicScanCodeTextMap.set(107,["F16"]),this.basicScanCodeTextMap.set(108,["F17"]),this.basicScanCodeTextMap.set(109,["F18"]),this.basicScanCodeTextMap.set(110,["F19"]),this.basicScanCodeTextMap.set(111,["F20"]),this.basicScanCodeTextMap.set(112,["F21"]),this.basicScanCodeTextMap.set(113,["F22"]),this.basicScanCodeTextMap.set(114,["F23"]),this.basicScanCodeTextMap.set(115,["F24"]),this.basicScanCodeTextMap.set(176,["00"]),this.basicScanCodeTextMap.set(177,["000"]),this.mediaScanCodeTextMap=new Map,this.mediaScanCodeTextMap.set(138,["WWW"]),this.mediaScanCodeTextMap.set(176,["Play"]),this.mediaScanCodeTextMap.set(177,["Pause"]),this.mediaScanCodeTextMap.set(181,["Next"]),this.mediaScanCodeTextMap.set(182,["Prev"]),this.mediaScanCodeTextMap.set(183,["Stop"]),this.mediaScanCodeTextMap.set(184,["Eject"]),this.mediaScanCodeTextMap.set(204,["Eject","Stop"]),this.mediaScanCodeTextMap.set(205,["Pause","Play"]),this.mediaScanCodeTextMap.set(226,["Mute"]),this.mediaScanCodeTextMap.set(233,["Vol +"]),this.mediaScanCodeTextMap.set(234,["Vol -"]),this.mediaScanCodeTextMap.set(406,["Launch Web Browser"]),this.mediaScanCodeTextMap.set(394,["Launch Email Client"]),this.mediaScanCodeTextMap.set(402,["Launch Calculator"]),this.systemScanCodeTextMap=new Map,this.systemScanCodeTextMap.set(129,["Power Down"]),this.systemScanCodeTextMap.set(130,["Sleep"]),this.systemScanCodeTextMap.set(131,["Wake Up"])},e.prototype.initScancodeIcons=function(){this.basicScancodeIcons=new Map,this.basicScancodeIcons.set(79,"icon-kbd__mod--arrow-right"),this.basicScancodeIcons.set(80,"icon-kbd__mod--arrow-left"),this.basicScancodeIcons.set(81,"icon-kbd__mod--arrow-down"),this.basicScancodeIcons.set(82,"icon-kbd__mod--arrow-up"),this.basicScancodeIcons.set(101,"icon-kbd__mod--menu"),this.mediaScancodeIcons=new Map,this.mediaScancodeIcons.set(138,"icon-kbd__fn--browser"),this.mediaScancodeIcons.set(176,"icon-kbd__media--play"),this.mediaScancodeIcons.set(177,"icon-kbd__media--pause"),this.mediaScancodeIcons.set(181,"icon-kbd__media--next"),this.mediaScancodeIcons.set(182,"icon-kbd__media--prev"),this.mediaScancodeIcons.set(184,"icon-kbd__fn--eject"),this.mediaScancodeIcons.set(226,"icon-kbd__media--mute"),this.mediaScancodeIcons.set(233,"icon-kbd__media--vol-up"),this.mediaScancodeIcons.set(234,"icon-kbd__media--vol-down"),this.mediaScancodeIcons.set(406,"icon-kbd__media--web-browser"),this.mediaScancodeIcons.set(394,"icon-kbd__media--email-client"),this.mediaScancodeIcons.set(402,"icon-kbd__media--calculator"),this.systemScancodeIcons=new Map,this.systemScancodeIcons.set(129,"icon-kbd__system_power_down"),this.systemScancodeIcons.set(130,"icon-kbd__system_sleep"),this.systemScancodeIcons.set(131,"icon-kbd__system_wake_up")},e.prototype.initNameToFileNames=function(){this.nameToFileName=new Map,this.nameToFileName.set("toggle","icon-kbd__fn--toggle"),this.nameToFileName.set("double-tap","icon-kbd__fn--double-tap"),this.nameToFileName.set("switch-keymap","icon-kbd__mod--switch-keymap"),this.nameToFileName.set("macro","icon-icon__macro"),this.nameToFileName.set("shift","icon-kbd__default--modifier-shift"),this.operatingSystem===qt.a.Mac?(this.nameToFileName.set("option","icon-kbd__default--modifier-option"),this.nameToFileName.set("command","icon-kbd__default--modifier-command")):this.operatingSystem===qt.a.Windows&&this.nameToFileName.set("command","icon-kbd__default--modifier-windows"),this.nameToFileName.set("mouse","icon-kbd__mouse"),this.nameToFileName.set("left-arrow","icon-kbd__mod--arrow-left"),this.nameToFileName.set("right-arrow","icon-kbd__mod--arrow-right"),this.nameToFileName.set("down-arrow","icon-kbd__mod--arrow-down"),this.nameToFileName.set("up-arrow","icon-kbd__mod--arrow-up"),this.nameToFileName.set("scroll-left","icon-kbd__mouse--scroll-left"),this.nameToFileName.set("scroll-right","icon-kbd__mouse--scroll-right"),this.nameToFileName.set("scroll-down","icon-kbd__mouse--scroll-down"),this.nameToFileName.set("scroll-up","icon-kbd__mouse--scroll-up")},e}(),Yt=function(){this.width=0,this.height=0,this.x=0,this.y=0,this.disabled=!0},Qt=function(){function e(e){this.mapper=e,this.modifierIconNames={},this.textContainer=new Yt,this.modifierContainer=new Yt,this.shift=new Yt,this.control=new Yt,this.option=new Yt,this.command=new Yt}return e.prototype.ngOnInit=function(){if(this.viewBox=[0,0,this.width,this.height].join(" "),this.modifierIconNames.shift=this.mapper.getIcon("shift"),this.modifierIconNames.option=this.mapper.getIcon("option"),this.modifierIconNames.command=this.mapper.getIcon("command"),this.width<1.8*this.height){var e=this.width/4,t=this.height,n=(o=.8)*(this.height/this.width)*e,i=o*t;this.modifierContainer.width=this.width,this.modifierContainer.height=this.height/5,this.modifierContainer.y=this.height-this.modifierContainer.height,this.shift.width=n,this.shift.height=i,this.shift.x=(e-n)/2,this.shift.y=(t-i)/2,this.control.width=n,this.control.height=i,this.control.x=this.shift.x+e,this.control.y=this.shift.y,this.option.width=n,this.option.height=i,this.option.x=this.control.x+e,this.option.y=this.shift.y,this.command.width=n,this.command.height=i,this.command.x=this.option.x+e,this.command.y=this.shift.y,this.textContainer.y=-this.modifierContainer.height/2}else{this.modifierContainer.width=this.width/4,this.modifierContainer.height=this.height,this.modifierContainer.x=this.width-this.modifierContainer.width;var o,r=Math.min(this.modifierContainer.width/2,this.modifierContainer.height/2);i=(o=.8)*this.height*(r/this.modifierContainer.height),this.shift.width=n=o*this.width*(r/this.modifierContainer.width),this.shift.height=i,this.shift.x=this.width/4-n/2,this.shift.y=this.height/4-i/2,this.control.width=n,this.control.height=i,this.control.x=this.shift.x+this.width/2,this.control.y=this.shift.y,this.option.width=n,this.option.height=i,this.option.x=this.shift.x,this.option.y=this.shift.y+this.height/2,this.command.width=n,this.command.height=i,this.command.x=this.option.x+this.width/2,this.command.y=this.option.y,this.textContainer.x=-this.modifierContainer.width/2}this.textContainer.width=this.width,this.textContainer.height=this.height},e.prototype.ngOnChanges=function(){if(this.keystrokeAction.hasScancode()){var e,t=this.keystrokeAction.scancode;this.labelSource=this.mapper.scanCodeToSvgImagePath(t,this.keystrokeAction.type),this.labelSource?this.labelType="icon":(e=this.mapper.scanCodeToText(t,this.keystrokeAction.type))&&(1===e.length?(this.labelSource=e[0],this.labelType="one-line"):(this.labelSource=e,this.labelType="two-line"))}else this.labelType="empty";this.shift.disabled=!this.keystrokeAction.isActive(ze.KeyModifiers.leftShift|ze.KeyModifiers.rightShift),this.control.disabled=!this.keystrokeAction.isActive(ze.KeyModifiers.leftCtrl|ze.KeyModifiers.rightCtrl),this.option.disabled=!this.keystrokeAction.isActive(ze.KeyModifiers.leftAlt|ze.KeyModifiers.rightAlt),this.command.disabled=!this.keystrokeAction.isActive(ze.KeyModifiers.leftGui|ze.KeyModifiers.rightGui)},e}(),Jt=o["\u0275crt"]({encapsulation:0,styles:[[".disabled[_ngcontent-%COMP%]{fill:gray}text[_ngcontent-%COMP%]{font-size:100px}"]],data:{}});function Zt(e){return o["\u0275vid"](0,[(e()(),o["\u0275eld"](0,0,null,null,2,":svg:g",[["svg-single-icon-key",""]],null,null,null,Vt,Ut)),o["\u0275did"](1,114688,null,0,Lt,[],{width:[0,"width"],height:[1,"height"],icon:[2,"icon"]},null),(e()(),o["\u0275ted"](-1,null,["\n "]))],function(e,t){var n=t.component;e(t,1,0,n.width,n.height,n.labelSource)},null)}function Xt(e){return o["\u0275vid"](0,[(e()(),o["\u0275eld"](0,0,null,null,2,":svg:g",[["svg-one-line-text-key",""]],null,null,null,Bt,Kt)),o["\u0275did"](1,114688,null,0,Ft,[],{height:[0,"height"],width:[1,"width"],text:[2,"text"]},null),(e()(),o["\u0275ted"](-1,null,["\n "]))],function(e,t){var n=t.component;e(t,1,0,n.height,n.width,n.labelSource)},null)}function en(e){return o["\u0275vid"](0,[(e()(),o["\u0275eld"](0,0,null,null,2,":svg:g",[["svg-two-line-text-key",""]],null,null,null,$t,Wt)),o["\u0275did"](1,114688,null,0,Ht,[],{height:[0,"height"],width:[1,"width"],texts:[2,"texts"]},null),(e()(),o["\u0275ted"](-1,null,["\n "]))],function(e,t){var n=t.component;e(t,1,0,n.height,n.width,n.labelSource)},null)}function tn(e){return o["\u0275vid"](0,[(e()(),o["\u0275eld"](0,0,null,null,0,":svg:use",[],[[1,":xlink:href",0]],null,null,null,null))],null,function(e,t){e(t,0,0,t.component.modifierIconNames.option)})}function nn(e){return o["\u0275vid"](0,[(e()(),o["\u0275eld"](0,0,null,null,1,":svg:text",[],[[1,"text-anchor",0],[1,"x",0],[1,"y",0]],null,null,null,null)),(e()(),o["\u0275ted"](-1,null,["A"]))],null,function(e,t){e(t,0,0,"middle",50,50)})}function on(e){return o["\u0275vid"](0,[(e()(),o["\u0275eld"](0,0,null,null,0,":svg:use",[],[[1,":xlink:href",0]],null,null,null,null))],null,function(e,t){e(t,0,0,t.component.modifierIconNames.command)})}function rn(e){return o["\u0275vid"](0,[(e()(),o["\u0275eld"](0,0,null,null,1,":svg:text",[],[[1,"text-anchor",0],[1,"x",0],[1,"y",0]],null,null,null,null)),(e()(),o["\u0275ted"](-1,null,["S"]))],null,function(e,t){e(t,0,0,"middle",50,50)})}function ln(e){return o["\u0275vid"](2,[(e()(),o["\u0275eld"](0,0,null,null,11,":svg:svg",[],[[1,"viewBox",0],[1,"width",0],[1,"height",0],[1,"x",0],[1,"y",0]],null,null,null,null)),o["\u0275did"](1,16384,null,0,p.n,[],{ngSwitch:[0,"ngSwitch"]},null),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275and"](16777216,null,null,1,null,Zt)),o["\u0275did"](4,278528,null,0,p.o,[o.ViewContainerRef,o.TemplateRef,p.n],{ngSwitchCase:[0,"ngSwitchCase"]},null),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275and"](16777216,null,null,1,null,Xt)),o["\u0275did"](7,278528,null,0,p.o,[o.ViewContainerRef,o.TemplateRef,p.n],{ngSwitchCase:[0,"ngSwitchCase"]},null),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275and"](16777216,null,null,1,null,en)),o["\u0275did"](10,278528,null,0,p.o,[o.ViewContainerRef,o.TemplateRef,p.n],{ngSwitchCase:[0,"ngSwitchCase"]},null),(e()(),o["\u0275ted"](-1,null,["\n"])),(e()(),o["\u0275ted"](-1,null,["\n"])),(e()(),o["\u0275eld"](13,0,null,null,30,":svg:svg",[["preserveAspectRatio","none"]],[[1,"viewBox",0],[1,"width",0],[1,"height",0],[1,"x",0],[1,"y",0]],null,null,null,null)),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275eld"](15,0,null,null,3,":svg:svg",[["preserveAspectRatio","none"],["viewBox","0 0 100 100"]],[[1,"width",0],[1,"height",0],[1,"x",0],[1,"y",0],[2,"disabled",null]],null,null,null,null)),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275eld"](17,0,null,null,0,":svg:use",[],[[1,":xlink:href",0]],null,null,null,null)),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275eld"](20,0,null,null,4,":svg:svg",[["preserveAspectRatio","none"],["viewBox","0 0 100 100"]],[[1,"width",0],[1,"height",0],[1,"x",0],[1,"y",0],[2,"disabled",null]],null,null,null,null)),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275eld"](22,0,null,null,1,":svg:text",[],[[1,"text-anchor",0],[1,"x",0],[1,"y",0]],null,null,null,null)),(e()(),o["\u0275ted"](-1,null,["C"])),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275eld"](26,0,null,null,7,":svg:svg",[["preserveAspectRatio","none"],["viewBox","0 0 100 100"]],[[1,"width",0],[1,"height",0],[1,"x",0],[1,"y",0],[2,"disabled",null]],null,null,null,null)),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275and"](16777216,null,null,1,null,tn)),o["\u0275did"](29,16384,null,0,p.k,[o.ViewContainerRef,o.TemplateRef],{ngIf:[0,"ngIf"]},null),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275and"](16777216,null,null,1,null,nn)),o["\u0275did"](32,16384,null,0,p.k,[o.ViewContainerRef,o.TemplateRef],{ngIf:[0,"ngIf"]},null),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275eld"](35,0,null,null,7,":svg:svg",[["preserveAspectRatio","none"],["viewBox","0 0 100 100"]],[[1,"width",0],[1,"height",0],[1,"x",0],[1,"y",0],[2,"disabled",null]],null,null,null,null)),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275and"](16777216,null,null,1,null,on)),o["\u0275did"](38,16384,null,0,p.k,[o.ViewContainerRef,o.TemplateRef],{ngIf:[0,"ngIf"]},null),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275and"](16777216,null,null,1,null,rn)),o["\u0275did"](41,16384,null,0,p.k,[o.ViewContainerRef,o.TemplateRef],{ngIf:[0,"ngIf"]},null),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275ted"](-1,null,["\n"])),(e()(),o["\u0275ted"](-1,null,["\n"]))],function(e,t){var n=t.component;e(t,1,0,n.labelType),e(t,4,0,"icon"),e(t,7,0,"one-line"),e(t,10,0,"two-line"),e(t,29,0,n.modifierIconNames.option),e(t,32,0,!n.modifierIconNames.option),e(t,38,0,n.modifierIconNames.command),e(t,41,0,!n.modifierIconNames.command)},function(e,t){var n=t.component;e(t,0,0,n.viewBox,n.textContainer.width,n.textContainer.height,n.textContainer.x,n.textContainer.y),e(t,13,0,n.viewBox,n.modifierContainer.width,n.modifierContainer.height,n.modifierContainer.x,n.modifierContainer.y),e(t,15,0,n.shift.width,n.shift.height,n.shift.x,n.shift.y,n.shift.disabled),e(t,17,0,n.modifierIconNames.shift),e(t,20,0,n.control.width,n.control.height,n.control.x,n.control.y,n.control.disabled),e(t,22,0,"middle",50,50),e(t,26,0,n.option.width,n.option.height,n.option.x,n.option.y,n.option.disabled),e(t,35,0,n.command.width,n.command.height,n.command.x,n.command.y,n.command.disabled)})}var un=function(){function e(){}return e.prototype.ngOnInit=function(){this.useWidth=this.width/3,this.useHeight=this.height/3,this.useX=this.width>2*this.height?.6*this.width:this.width/3,this.useY=this.width>2*this.height?this.height/3:this.height/2,this.textY=this.width>2*this.height?this.height/2:this.height/3,this.textAnchor=this.width>2*this.height?"end":"middle",this.spanX=this.width>2*this.height?.6*this.width:this.width/2},e}(),an=o["\u0275crt"]({encapsulation:2,styles:[],data:{}});function sn(e){return o["\u0275vid"](2,[(e()(),o["\u0275ted"](-1,null,[" "])),(e()(),o["\u0275eld"](1,0,null,null,4,":svg:text",[],[[1,"x",0],[1,"y",0],[1,"text-anchor",0]],null,null,null,null)),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275eld"](3,0,null,null,1,":svg:tspan",[],[[1,"x",0]],null,null,null,null)),(e()(),o["\u0275ted"](4,null,["",""])),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275ted"](-1,null,["\n"])),(e()(),o["\u0275eld"](7,0,null,null,1,":svg:use",[],[[1,":xlink:href",0],[1,"width",0],[1,"height",0],[1,"x",0],[1,"y",0]],null,null,null,null)),(e()(),o["\u0275ted"](-1,null,["\n"]))],null,function(e,t){var n=t.component;e(t,1,0,0,n.textY,n.textAnchor),e(t,3,0,n.spanX),e(t,4,0,n.text),e(t,7,0,n.icon,n.useWidth,n.useHeight,n.useX,n.useY)})}var cn=function(){function e(){}return e.prototype.ngOnInit=function(){this.useWidth=this.width/3,this.useHeight=this.height/3,this.useX=this.width>2*this.height?0:this.width/3,this.useY=this.width>2*this.height?this.height/3:this.height/10,this.textY=this.width>2*this.height?this.height/2:.6*this.height,this.spanX=this.width>2*this.height?.6*this.width:this.width/2},e}(),dn=o["\u0275crt"]({encapsulation:2,styles:[],data:{}});function pn(e){return o["\u0275vid"](2,[(e()(),o["\u0275eld"](0,0,null,null,1,":svg:use",[],[[1,":xlink:href",0],[1,"width",0],[1,"height",0],[1,"x",0],[1,"y",0]],null,null,null,null)),(e()(),o["\u0275ted"](-1,null,["\n"])),(e()(),o["\u0275ted"](-1,null,["\n"])),(e()(),o["\u0275eld"](3,0,null,null,4,":svg:text",[],[[1,"x",0],[1,"y",0],[1,"text-anchor",0],[1,"font-size",0]],null,null,null,null)),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275eld"](5,0,null,null,1,":svg:tspan",[],[[1,"x",0]],null,null,null,null)),(e()(),o["\u0275ted"](6,null,["",""])),(e()(),o["\u0275ted"](-1,null,["\n"]))],null,function(e,t){var n=t.component;e(t,0,0,n.icon,n.useWidth,n.useHeight,n.useX,n.useY),e(t,3,0,0,n.textY,"middle",11),e(t,5,0,n.spanX),e(t,6,0,n.text)})}var fn=function(){function e(e){this.mapperService=e}return e.prototype.ngOnInit=function(){this.icon=this.mapperService.getIcon("switch-keymap"),this.useWidth=this.width/4,this.useHeight=this.height/4,this.useX=3*this.width/8,this.useY=this.height/5,this.textY=2*this.height/3,this.spanX=this.width/2},e}(),hn=o["\u0275crt"]({encapsulation:2,styles:[],data:{}});function yn(e){return o["\u0275vid"](2,[(e()(),o["\u0275eld"](0,0,null,null,1,":svg:use",[],[[1,":xlink:href",0],[1,"width",0],[1,"height",0],[1,"x",0],[1,"y",0]],null,null,null,null)),(e()(),o["\u0275ted"](-1,null,["\n"])),(e()(),o["\u0275ted"](-1,null,["\n"])),(e()(),o["\u0275eld"](3,0,null,null,4,":svg:text",[],[[1,"x",0],[1,"y",0],[1,"text-anchor",0]],null,null,null,null)),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275eld"](5,0,null,null,1,":svg:tspan",[],[[1,"x",0]],null,null,null,null)),(e()(),o["\u0275ted"](6,null,["",""])),(e()(),o["\u0275ted"](-1,null,["\n"]))],null,function(e,t){var n=t.component;e(t,0,0,n.icon,n.useWidth,n.useHeight,n.useX,n.useY),e(t,3,0,0,n.textY,"middle"),e(t,5,0,n.spanX),e(t,6,0,n.abbreviation)})}var mn=function(){function e(e){this.mapper=e,this.icon=this.mapper.getIcon("mouse")}return e.prototype.ngOnInit=function(){},e}(),gn=o["\u0275crt"]({encapsulation:2,styles:[],data:{}});function vn(e){return o["\u0275vid"](2,[(e()(),o["\u0275eld"](0,0,null,null,1,":svg:use",[["height","20"],["width","20"],["x","10"],["y","25"]],[[1,":xlink:href",0]],null,null,null,null)),(e()(),o["\u0275ted"](-1,null,["\n"])),(e()(),o["\u0275ted"](-1,null,["\n"])),(e()(),o["\u0275eld"](3,0,null,null,4,":svg:text",[],[[1,"x",0],[1,"y",0],[1,"text-anchor",0],[1,"font-size",0]],null,null,null,null)),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275eld"](5,0,null,null,1,":svg:tspan",[["dy","34"]],null,null,null,null,null)),(e()(),o["\u0275ted"](-1,null,[" Click "])),(e()(),o["\u0275ted"](-1,null,["\n"])),(e()(),o["\u0275ted"](-1,null,["\n"])),(e()(),o["\u0275eld"](9,0,null,null,4,":svg:text",[],[[1,"x",0],[1,"y",0],[1,"text-anchor",0],[1,"font-size",0]],null,null,null,null)),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275eld"](11,0,null,null,1,":svg:tspan",[["dy","70"]],null,null,null,null,null)),(e()(),o["\u0275ted"](12,null,[" "," "])),(e()(),o["\u0275ted"](-1,null,["\n"]))],null,function(e,t){var n=t.component;e(t,0,0,n.icon),e(t,3,0,60,0,"middle",25),e(t,9,0,50,0,"middle",25),e(t,12,0,n.button)})}var bn=function(){function e(e){this.mapper=e}return e.prototype.ngOnChanges=function(){this.mouseIcon=this.mapper.getIcon("mouse"),this.directionIcon=this.mapper.getIcon(this.direction+"-arrow")},e}(),kn=o["\u0275crt"]({encapsulation:2,styles:[],data:{}});function _n(e){return o["\u0275vid"](2,[(e()(),o["\u0275eld"](0,0,null,null,0,":svg:use",[["height","20"],["width","20"],["x","8"],["y","25"]],[[1,":xlink:href",0]],null,null,null,null)),(e()(),o["\u0275ted"](-1,null,["\n"])),(e()(),o["\u0275eld"](2,0,null,null,4,":svg:text",[],[[1,"x",0],[1,"y",0],[1,"text-anchor",0],[1,"font-size",0]],null,null,null,null)),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275eld"](4,0,null,null,1,":svg:tspan",[["dy","34"]],null,null,null,null,null)),(e()(),o["\u0275ted"](-1,null,[" Move "])),(e()(),o["\u0275ted"](-1,null,["\n"])),(e()(),o["\u0275ted"](-1,null,["\n"])),(e()(),o["\u0275eld"](8,0,null,null,0,":svg:use",[["height","30"],["width","30"],["x","35"],["y","55"]],[[1,":xlink:href",0]],null,null,null,null))],null,function(e,t){var n=t.component;e(t,0,0,n.mouseIcon),e(t,2,0,60,0,"middle",24),e(t,8,0,n.directionIcon)})}var wn=function(){function e(e){this.mapper=e}return e.prototype.ngOnChanges=function(){this.mouseIcon=this.mapper.getIcon("mouse"),this.directionIcon=this.mapper.getIcon("scroll-"+this.direction)},e}(),An=o["\u0275crt"]({encapsulation:2,styles:[],data:{}});function Tn(e){return o["\u0275vid"](2,[(e()(),o["\u0275eld"](0,0,null,null,0,":svg:use",[["height","20"],["width","20"],["x","8"],["y","25"]],[[1,":xlink:href",0]],null,null,null,null)),(e()(),o["\u0275ted"](-1,null,["\n"])),(e()(),o["\u0275eld"](2,0,null,null,4,":svg:text",[],[[1,"x",0],[1,"y",0],[1,"text-anchor",0],[1,"font-size",0]],null,null,null,null)),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275eld"](4,0,null,null,1,":svg:tspan",[["dy","34"]],null,null,null,null,null)),(e()(),o["\u0275ted"](-1,null,[" Scroll "])),(e()(),o["\u0275ted"](-1,null,["\n"])),(e()(),o["\u0275ted"](-1,null,["\n"])),(e()(),o["\u0275eld"](8,0,null,null,0,":svg:use",[["height","30"],["width","30"],["x","35"],["y","55"]],[[1,":xlink:href",0]],null,null,null,null))],null,function(e,t){var n=t.component;e(t,0,0,n.mouseIcon),e(t,2,0,60,0,"middle",24),e(t,8,0,n.directionIcon)})}var Cn=function(){function e(e){this.mapper=e,this.icon=this.mapper.getIcon("mouse")}return e.prototype.ngOnChanges=function(){this.sign=this.plus?"+":"-"},e}(),xn=o["\u0275crt"]({encapsulation:2,styles:[],data:{}});function On(e){return o["\u0275vid"](2,[(e()(),o["\u0275eld"](0,0,null,null,1,":svg:use",[["height","20"],["width","20"],["x","4"],["y","25"]],[[1,":xlink:href",0]],null,null,null,null)),(e()(),o["\u0275ted"](-1,null,["\n"])),(e()(),o["\u0275ted"](-1,null,["\n"])),(e()(),o["\u0275eld"](3,0,null,null,4,":svg:text",[],[[1,"x",0],[1,"y",0],[1,"text-anchor",0],[1,"font-size",0]],null,null,null,null)),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275eld"](5,0,null,null,1,":svg:tspan",[["dy","34"]],null,null,null,null,null)),(e()(),o["\u0275ted"](-1,null,[" Speed "])),(e()(),o["\u0275ted"](-1,null,["\n"])),(e()(),o["\u0275ted"](-1,null,["\n"])),(e()(),o["\u0275eld"](9,0,null,null,4,":svg:text",[],[[1,"x",0],[1,"y",0],[1,"text-anchor",0],[1,"font-size",0]],null,null,null,null)),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275eld"](11,0,null,null,1,":svg:tspan",[["dy","70"]],null,null,null,null,null)),(e()(),o["\u0275ted"](12,null,[" "," "])),(e()(),o["\u0275ted"](-1,null,["\n"]))],null,function(e,t){var n=t.component;e(t,0,0,n.icon),e(t,3,0,60,0,"middle",25),e(t,9,0,50,0,"middle",30),e(t,12,0,n.sign)})}var Sn=function(){function e(){}return e.prototype.ngOnChanges=function(){switch(this.mouseAction.mouseAction){case ze.MouseActionParam.leftClick:this.type="click",this.param="Left";break;case ze.MouseActionParam.rightClick:this.type="click",this.param="Right";break;case ze.MouseActionParam.middleClick:this.type="click",this.param="Middle";break;case ze.MouseActionParam.scrollDown:this.type="scroll",this.param="down";break;case ze.MouseActionParam.scrollLeft:this.type="scroll",this.param="left";break;case ze.MouseActionParam.scrollRight:this.type="scroll",this.param="right";break;case ze.MouseActionParam.scrollUp:this.type="scroll",this.param="up";break;case ze.MouseActionParam.moveDown:this.type="move",this.param="down";break;case ze.MouseActionParam.moveLeft:this.type="move",this.param="left";break;case ze.MouseActionParam.moveRight:this.type="move",this.param="right";break;case ze.MouseActionParam.moveUp:this.type="move",this.param="up";break;case ze.MouseActionParam.accelerate:this.type="speed",this.param=!0;break;case ze.MouseActionParam.decelerate:this.type="speed",this.param=!1}},e}(),Mn=o["\u0275crt"]({encapsulation:2,styles:[],data:{}});function En(e){return o["\u0275vid"](0,[(e()(),o["\u0275eld"](0,0,null,null,1,":svg:g",[["svg-mouse-click-key",""]],null,null,null,vn,gn)),o["\u0275did"](1,114688,null,0,mn,[Gt],{button:[0,"button"]},null)],function(e,t){e(t,1,0,t.component.param)},null)}function Pn(e){return o["\u0275vid"](0,[(e()(),o["\u0275eld"](0,0,null,null,1,":svg:g",[["svg-mouse-move-key",""]],null,null,null,_n,kn)),o["\u0275did"](1,573440,null,0,bn,[Gt],{direction:[0,"direction"]},null)],function(e,t){e(t,1,0,t.component.param)},null)}function In(e){return o["\u0275vid"](0,[(e()(),o["\u0275eld"](0,0,null,null,1,":svg:g",[["svg-mouse-scroll-key",""]],null,null,null,Tn,An)),o["\u0275did"](1,573440,null,0,wn,[Gt],{direction:[0,"direction"]},null)],function(e,t){e(t,1,0,t.component.param)},null)}function Rn(e){return o["\u0275vid"](0,[(e()(),o["\u0275eld"](0,0,null,null,1,":svg:g",[["svg-mouse-speed-key",""]],null,null,null,On,xn)),o["\u0275did"](1,573440,null,0,Cn,[Gt],{plus:[0,"plus"]},null)],function(e,t){e(t,1,0,t.component.param)},null)}function Dn(e){return o["\u0275vid"](2,[(e()(),o["\u0275eld"](0,0,null,null,14,":svg:g",[],null,null,null,null,null)),o["\u0275did"](1,16384,null,0,p.n,[],{ngSwitch:[0,"ngSwitch"]},null),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275and"](16777216,null,null,1,null,En)),o["\u0275did"](4,278528,null,0,p.o,[o.ViewContainerRef,o.TemplateRef,p.n],{ngSwitchCase:[0,"ngSwitchCase"]},null),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275and"](16777216,null,null,1,null,Pn)),o["\u0275did"](7,278528,null,0,p.o,[o.ViewContainerRef,o.TemplateRef,p.n],{ngSwitchCase:[0,"ngSwitchCase"]},null),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275and"](16777216,null,null,1,null,In)),o["\u0275did"](10,278528,null,0,p.o,[o.ViewContainerRef,o.TemplateRef,p.n],{ngSwitchCase:[0,"ngSwitchCase"]},null),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275and"](16777216,null,null,1,null,Rn)),o["\u0275did"](13,278528,null,0,p.o,[o.ViewContainerRef,o.TemplateRef,p.n],{ngSwitchCase:[0,"ngSwitchCase"]},null),(e()(),o["\u0275ted"](-1,null,["\n"]))],function(e,t){e(t,1,0,t.component.type),e(t,4,0,"click"),e(t,7,0,"move"),e(t,10,0,"scroll"),e(t,13,0,"speed")},null)}var Nn=function(){function e(){this.leftModifiers=new Map,this.rightModifiers=new Map,this.mapping=new Map}return e.prototype.getMap=function(e){return this.mapping.get(e)},e.prototype.hasMap=function(e){return this.mapping.has(e)},e.prototype.setModifier=function(e,t){return e?this.leftModifiers.set(t,!0):this.rightModifiers.set(t,!0)},e.prototype.getModifiers=function(e){return this.reMap(e?this.leftModifiers:this.rightModifiers)},e.prototype.initModifiers=function(){this.leftModifiers.set(16,!1),this.leftModifiers.set(17,!1),this.leftModifiers.set(18,!1),this.leftModifiers.set(91,!1),this.rightModifiers.set(16,!1),this.rightModifiers.set(17,!1),this.rightModifiers.set(18,!1),this.rightModifiers.set(91,!1)},e.prototype.populateMapping=function(){this.mapping.set(8,42),this.mapping.set(9,43),this.mapping.set(13,40),this.mapping.set(19,72),this.mapping.set(20,57),this.mapping.set(27,41),this.mapping.set(32,44),this.mapping.set(33,75),this.mapping.set(34,78),this.mapping.set(35,77),this.mapping.set(36,74),this.mapping.set(37,80),this.mapping.set(38,82),this.mapping.set(39,79),this.mapping.set(40,81),this.mapping.set(45,73),this.mapping.set(46,76),this.mapping.set(48,39),this.mapping.set(49,30),this.mapping.set(50,31),this.mapping.set(51,32),this.mapping.set(52,33),this.mapping.set(53,34),this.mapping.set(54,35),this.mapping.set(55,36),this.mapping.set(56,37),this.mapping.set(57,38),this.mapping.set(65,4),this.mapping.set(66,5),this.mapping.set(67,6),this.mapping.set(68,7),this.mapping.set(69,8),this.mapping.set(70,9),this.mapping.set(71,10),this.mapping.set(72,11),this.mapping.set(73,12),this.mapping.set(74,13),this.mapping.set(75,14),this.mapping.set(76,15),this.mapping.set(77,16),this.mapping.set(78,17),this.mapping.set(79,18),this.mapping.set(80,19),this.mapping.set(81,20),this.mapping.set(82,21),this.mapping.set(83,22),this.mapping.set(84,23),this.mapping.set(85,24),this.mapping.set(86,25),this.mapping.set(87,26),this.mapping.set(88,27),this.mapping.set(89,28),this.mapping.set(90,29),this.mapping.set(93,101),this.mapping.set(96,98),this.mapping.set(97,89),this.mapping.set(98,90),this.mapping.set(99,91),this.mapping.set(100,92),this.mapping.set(101,93),this.mapping.set(102,94),this.mapping.set(103,95),this.mapping.set(104,96),this.mapping.set(105,97),this.mapping.set(106,85),this.mapping.set(107,87),this.mapping.set(109,86),this.mapping.set(110,99),this.mapping.set(111,84),this.mapping.set(112,58),this.mapping.set(113,59),this.mapping.set(114,60),this.mapping.set(115,61),this.mapping.set(116,62),this.mapping.set(117,63),this.mapping.set(118,64),this.mapping.set(119,65),this.mapping.set(120,66),this.mapping.set(121,67),this.mapping.set(122,68),this.mapping.set(123,69),this.mapping.set(144,83),this.mapping.set(145,71),this.mapping.set(186,51),this.mapping.set(187,46),this.mapping.set(188,54),this.mapping.set(189,45),this.mapping.set(190,55),this.mapping.set(191,56),this.mapping.set(192,53),this.mapping.set(219,47),this.mapping.set(220,49),this.mapping.set(221,48),this.mapping.set(222,52)},e.prototype.reMap=function(e){return[e.get(16),e.get(17),e.get(91),e.get(18)]},e}(),jn=n("yqBA"),Ln=function(e){return e[e.KeystrokeKey=0]="KeystrokeKey",e[e.MouseKey=1]="MouseKey",e[e.OneLineText=2]="OneLineText",e[e.TwoLineText=3]="TwoLineText",e[e.TextIcon=4]="TextIcon",e[e.SingleIcon=5]="SingleIcon",e[e.SwitchKeymap=6]="SwitchKeymap",e[e.IconText=7]="IconText",e}({}),Un=function(){function e(e,t,n,i,r){var l=this;this.mapper=e,this.element=n,this.captureService=i,this.renderer=r,this.keyClick=new o.EventEmitter,this.capture=new o.EventEmitter,this.enumLabelTypes=Ln,this.changeAnimation="inactive",this.pressedShiftLocation=-1,this.pressedAltLocation=-1,this.altPressed=!1,this.shiftPressed=!1,this.subscription=t.let(Object(jn.d)()).subscribe(function(e){return l.macros=e}),this.reset(),this.captureService.populateMapping(),this.scanCodePressed=!1}return e.prototype.onClick=function(){this.reset(),this.keyClick.emit({keyTarget:this.element.nativeElement,shiftPressed:this.pressedShiftLocation>-1,altPressed:this.pressedAltLocation>-1}),this.pressedShiftLocation=-1,this.pressedAltLocation=-1},e.prototype.onMouseDown=function(e){2!==e.which&&2!==e.button||!this.capturingEnabled||(e.preventDefault(),this.renderer.invokeElementMethod(this.element.nativeElement,"focus"),this.recording?this.reset():(this.recording=!0,this.recordAnimation="active",this.pressedShiftLocation>-1&&(this.shiftPressed=!0),this.pressedAltLocation>-1&&(this.altPressed=!0)))},e.prototype.onKeyUp=function(e){18===e.keyCode&&this.pressedAltLocation>-1?(this.pressedAltLocation=-1,e.preventDefault()):16===e.keyCode&&this.pressedShiftLocation>-1?(this.pressedShiftLocation=-1,e.preventDefault()):this.scanCodePressed?(e.preventDefault(),this.scanCodePressed=!1):this.recording&&(e.preventDefault(),this.saveScanCode())},e.prototype.onKeyDown=function(e){var t=e.keyCode;this.recording?(e.preventDefault(),this.captureService.hasMap(t)?(this.pressedShiftLocation>-1&&this.captureService.setModifier(1===this.pressedShiftLocation,16),this.pressedAltLocation>-1&&this.captureService.setModifier(1===this.pressedAltLocation,18),this.saveScanCode(this.captureService.getMap(t)),this.scanCodePressed=!0):this.captureService.setModifier(1===e.location,t)):(16===e.keyCode&&(this.pressedShiftLocation=e.location),18===e.keyCode&&(this.pressedAltLocation=e.location))},e.prototype.onFocusOut=function(){this.reset()},e.prototype.ngOnInit=function(){this.setLabels()},e.prototype.ngOnChanges=function(e){e.keyAction&&(this.setLabels(),this.keybindAnimationEnabled&&(this.changeAnimation="active"))},e.prototype.ngOnDestroy=function(){this.subscription.unsubscribe()},e.prototype.onChangeAnimationDone=function(){this.changeAnimation="inactive"},e.prototype.onRecordingAnimationDone=function(){this.recordAnimation=this.recording&&"inactive"===this.recordAnimation?"active":"inactive"},e.prototype.reset=function(){this.recording=!1,this.changeAnimation="inactive",this.captureService.initModifiers(),this.shiftPressed=!1,this.altPressed=!1},e.prototype.saveScanCode=function(e){void 0===e&&(e=0);var t=this.captureService.getModifiers(!0),n=this.captureService.getModifiers(!1);this.capture.emit({captured:{code:e,left:t,right:n},shiftPressed:this.shiftPressed,altPressed:this.altPressed}),this.reset()},e.prototype.setLabels=function(){if(!this.keyAction)return this.labelSource=void 0,void(this.labelType=Ln.OneLineText);if(this.labelType=Ln.OneLineText,this.keyAction instanceof ze.KeystrokeAction){var e=void 0;if(!(n=this.keyAction).hasActiveModifier()&&n.hasScancode()){var t=n.scancode;e=this.mapper.scanCodeToText(t,n.type),this.mapper.hasScancodeIcon(t,n.type)?(this.labelSource=this.mapper.scanCodeToSvgImagePath(t,n.type),this.labelType=Ln.SingleIcon):void 0!==e&&(1===e.length?(this.labelSource=e[0],this.labelType=Ln.OneLineText):(this.labelSource=e,this.labelType=Ln.TwoLineText))}else if(n.hasOnlyOneActiveModifier()&&!n.hasScancode())switch(n.modifierMask){case ze.KeyModifiers.leftCtrl:case ze.KeyModifiers.rightCtrl:this.labelSource=["Ctrl"];break;case ze.KeyModifiers.leftShift:case ze.KeyModifiers.rightShift:this.labelSource=["Shift"];break;case ze.KeyModifiers.leftAlt:case ze.KeyModifiers.rightAlt:this.labelSource=[this.mapper.getOsSpecificText("Alt")];break;case ze.KeyModifiers.leftGui:case ze.KeyModifiers.rightGui:this.mapper.getOperatingSystem()===qt.a.Windows?(this.labelSource=this.mapper.getIcon("command"),this.labelType=Ln.SingleIcon):this.labelSource=[this.mapper.getOsSpecificText("Super")];break;default:this.labelSource=["Undefined"]}else this.labelType=Ln.KeystrokeKey,this.labelSource=this.keyAction}else if(this.keyAction instanceof ze.SwitchLayerAction){switch(e=void 0,(n=this.keyAction).layer){case ze.LayerName.mod:e="Mod";break;case ze.LayerName.fn:e="Fn";break;case ze.LayerName.mouse:e="Mouse"}n.switchLayerMode===ze.SwitchLayerMode.toggle?(this.labelType=Ln.TextIcon,this.labelSource={text:e,icon:this.mapper.getIcon("toggle")}):n.switchLayerMode===ze.SwitchLayerMode.holdAndDoubleTapToggle?(this.labelType=Ln.TextIcon,this.labelSource={text:e,icon:this.mapper.getIcon("double-tap")}):(this.labelType=Ln.OneLineText,this.labelSource=e)}else if(this.keyAction instanceof ze.SwitchKeymapAction){var n=this.keyAction;this.labelType=Ln.SwitchKeymap,this.labelSource=n.keymapAbbreviation}else if(this.keyAction instanceof ze.PlayMacroAction){var i=this.keyAction,o=this.macros.find(function(e){return e.id===i.macroId});this.labelType=Ln.IconText,this.labelSource={icon:this.mapper.getIcon("macro"),text:o.name}}else this.keyAction instanceof ze.MouseAction?(this.labelType=Ln.MouseKey,this.labelSource=this.keyAction):this.labelSource=void 0},e}(),Vn=o["\u0275crt"]({encapsulation:0,styles:[["[_nghost-%COMP%]{cursor:pointer;outline:0}[_nghost-%COMP%] text{dominant-baseline:central}[_nghost-%COMP%]:hover{fill:#494949}"]],data:{animation:[{type:7,name:"change",definitions:[{type:1,expr:"inactive => active",animation:[{type:6,styles:{fill:"#fff"},offset:null},{type:3,steps:[{type:4,styles:{type:6,styles:{fill:"#333"},offset:null},timings:"1s ease-out"}],options:null}],options:null}],options:{}},{type:7,name:"active",definitions:[{type:0,name:"1",styles:{type:6,styles:{fill:"#4099e5"},offset:null},options:void 0},{type:1,expr:"1 => *",animation:{type:4,styles:null,timings:"200ms"},options:null},{type:1,expr:"* => 1",animation:{type:4,styles:null,timings:"0ms"},options:null}],options:{}},{type:7,name:"recording",definitions:[{type:0,name:"inactive",styles:{type:6,styles:{fill:"rgba(204, 0, 0, 1)"},offset:null},options:void 0},{type:0,name:"active",styles:{type:6,styles:{fill:"rgba(204, 0, 0, 0.6)"},offset:null},options:void 0},{type:1,expr:"inactive <=> active",animation:{type:4,styles:null,timings:"600ms ease-in-out"},options:null}],options:{}}]}});function Fn(e){return o["\u0275vid"](0,[(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275eld"](1,0,null,null,0,":svg:circle",[],[[24,"@recording",0],[1,"cx",0],[1,"cy",0],[1,"r",0],[1,"fill",0]],[[null,"@recording.done"]],function(e,t,n){var i=!0;return"@recording.done"===t&&(i=!1!==e.component.onRecordingAnimationDone()&&i),i},null,null)),(e()(),o["\u0275ted"](-1,null,["\n"]))],null,function(e,t){var n=t.component;e(t,1,0,n.recordAnimation,n.width/2,n.height/2,10,"#c00")})}function Kn(e){return o["\u0275vid"](0,[(e()(),o["\u0275eld"](0,0,null,null,2,":svg:g",[["svg-keystroke-key",""]],null,null,null,ln,Jt)),o["\u0275did"](1,638976,null,0,Qt,[Gt],{height:[0,"height"],width:[1,"width"],keystrokeAction:[2,"keystrokeAction"]},null),(e()(),o["\u0275ted"](-1,null,["\n "]))],function(e,t){var n=t.component;e(t,1,0,n.height,n.width,n.labelSource)},null)}function Bn(e){return o["\u0275vid"](0,[(e()(),o["\u0275eld"](0,0,null,null,2,":svg:g",[["svg-one-line-text-key",""]],null,null,null,Bt,Kt)),o["\u0275did"](1,114688,null,0,Ft,[],{height:[0,"height"],width:[1,"width"],text:[2,"text"]},null),(e()(),o["\u0275ted"](-1,null,["\n "]))],function(e,t){var n=t.component;e(t,1,0,n.height,n.width,n.labelSource)},null)}function Hn(e){return o["\u0275vid"](0,[(e()(),o["\u0275eld"](0,0,null,null,2,":svg:g",[["svg-two-line-text-key",""]],null,null,null,$t,Wt)),o["\u0275did"](1,114688,null,0,Ht,[],{height:[0,"height"],width:[1,"width"],texts:[2,"texts"]},null),(e()(),o["\u0275ted"](-1,null,["\n "]))],function(e,t){var n=t.component;e(t,1,0,n.height,n.width,n.labelSource)},null)}function Wn(e){return o["\u0275vid"](0,[(e()(),o["\u0275eld"](0,0,null,null,2,":svg:g",[["svg-text-icon-key",""]],null,null,null,sn,an)),o["\u0275did"](1,114688,null,0,un,[],{width:[0,"width"],height:[1,"height"],text:[2,"text"],icon:[3,"icon"]},null),(e()(),o["\u0275ted"](-1,null,["\n "]))],function(e,t){var n=t.component;e(t,1,0,n.width,n.height,n.labelSource.text,n.labelSource.icon)},null)}function zn(e){return o["\u0275vid"](0,[(e()(),o["\u0275eld"](0,0,null,null,2,":svg:g",[["svg-icon-text-key",""]],null,null,null,pn,dn)),o["\u0275did"](1,114688,null,0,cn,[],{width:[0,"width"],height:[1,"height"],icon:[2,"icon"],text:[3,"text"]},null),(e()(),o["\u0275ted"](-1,null,["\n "]))],function(e,t){var n=t.component;e(t,1,0,n.width,n.height,n.labelSource.icon,n.labelSource.text)},null)}function $n(e){return o["\u0275vid"](0,[(e()(),o["\u0275eld"](0,0,null,null,2,":svg:g",[["svg-single-icon-key",""]],null,null,null,Vt,Ut)),o["\u0275did"](1,114688,null,0,Lt,[],{width:[0,"width"],height:[1,"height"],icon:[2,"icon"]},null),(e()(),o["\u0275ted"](-1,null,["\n "]))],function(e,t){var n=t.component;e(t,1,0,n.width,n.height,n.labelSource)},null)}function qn(e){return o["\u0275vid"](0,[(e()(),o["\u0275eld"](0,0,null,null,2,":svg:g",[["svg-switch-keymap-key",""]],null,null,null,yn,hn)),o["\u0275did"](1,114688,null,0,fn,[Gt],{width:[0,"width"],height:[1,"height"],abbreviation:[2,"abbreviation"]},null),(e()(),o["\u0275ted"](-1,null,["\n "]))],function(e,t){var n=t.component;e(t,1,0,n.width,n.height,n.labelSource)},null)}function Gn(e){return o["\u0275vid"](0,[(e()(),o["\u0275eld"](0,0,null,null,4,":svg:svg",[],[[1,"viewBox",0],[1,"width",0],[1,"height",0]],null,null,null,null)),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275eld"](2,0,null,null,1,":svg:g",[["svg-mouse-key",""]],null,null,null,Dn,Mn)),o["\u0275did"](3,573440,null,0,Sn,[],{mouseAction:[0,"mouseAction"]},null),(e()(),o["\u0275ted"](-1,null,["\n "]))],function(e,t){e(t,3,0,t.component.labelSource)},function(e,t){var n=t.component;e(t,0,0,"0 0 100 100",n.width,n.height)})}function Yn(e){return o["\u0275vid"](0,[(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275eld"](1,0,null,null,26,":svg:g",[],[[1,"font-size",0],[1,"font-family",0],[1,"fill",0]],null,null,null,null)),o["\u0275did"](2,16384,null,0,p.n,[],{ngSwitch:[0,"ngSwitch"]},null),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275and"](16777216,null,null,1,null,Kn)),o["\u0275did"](5,278528,null,0,p.o,[o.ViewContainerRef,o.TemplateRef,p.n],{ngSwitchCase:[0,"ngSwitchCase"]},null),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275and"](16777216,null,null,1,null,Bn)),o["\u0275did"](8,278528,null,0,p.o,[o.ViewContainerRef,o.TemplateRef,p.n],{ngSwitchCase:[0,"ngSwitchCase"]},null),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275and"](16777216,null,null,1,null,Hn)),o["\u0275did"](11,278528,null,0,p.o,[o.ViewContainerRef,o.TemplateRef,p.n],{ngSwitchCase:[0,"ngSwitchCase"]},null),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275and"](16777216,null,null,1,null,Wn)),o["\u0275did"](14,278528,null,0,p.o,[o.ViewContainerRef,o.TemplateRef,p.n],{ngSwitchCase:[0,"ngSwitchCase"]},null),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275and"](16777216,null,null,1,null,zn)),o["\u0275did"](17,278528,null,0,p.o,[o.ViewContainerRef,o.TemplateRef,p.n],{ngSwitchCase:[0,"ngSwitchCase"]},null),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275and"](16777216,null,null,1,null,$n)),o["\u0275did"](20,278528,null,0,p.o,[o.ViewContainerRef,o.TemplateRef,p.n],{ngSwitchCase:[0,"ngSwitchCase"]},null),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275and"](16777216,null,null,1,null,qn)),o["\u0275did"](23,278528,null,0,p.o,[o.ViewContainerRef,o.TemplateRef,p.n],{ngSwitchCase:[0,"ngSwitchCase"]},null),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275and"](16777216,null,null,1,null,Gn)),o["\u0275did"](26,278528,null,0,p.o,[o.ViewContainerRef,o.TemplateRef,p.n],{ngSwitchCase:[0,"ngSwitchCase"]},null),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275ted"](-1,null,["\n"]))],function(e,t){var n=t.component;e(t,2,0,n.labelType),e(t,5,0,n.enumLabelTypes.KeystrokeKey),e(t,8,0,n.enumLabelTypes.OneLineText),e(t,11,0,n.enumLabelTypes.TwoLineText),e(t,14,0,n.enumLabelTypes.TextIcon),e(t,17,0,n.enumLabelTypes.IconText),e(t,20,0,n.enumLabelTypes.SingleIcon),e(t,23,0,n.enumLabelTypes.SwitchKeymap),e(t,26,0,n.enumLabelTypes.MouseKey)},function(e,t){e(t,1,0,19,"Helvetica","white")})}function Qn(e){return o["\u0275vid"](2,[(e()(),o["\u0275eld"](0,0,null,null,0,":svg:rect",[],[[24,"@change",0],[24,"@active",0],[8,"id",0],[1,"rx",0],[1,"ry",0],[1,"height",0],[1,"width",0]],[[null,"@change.done"]],function(e,t,n){var i=!0;return"@change.done"===t&&(i=!1!==e.component.onChangeAnimationDone()&&i),i},null,null)),(e()(),o["\u0275ted"](-1,null,["\n"])),(e()(),o["\u0275and"](16777216,null,null,1,null,Fn)),o["\u0275did"](3,16384,null,0,p.k,[o.ViewContainerRef,o.TemplateRef],{ngIf:[0,"ngIf"]},null),(e()(),o["\u0275ted"](-1,null,["\n"])),(e()(),o["\u0275and"](16777216,null,null,1,null,Yn)),o["\u0275did"](6,16384,null,0,p.k,[o.ViewContainerRef,o.TemplateRef],{ngIf:[0,"ngIf"]},null),(e()(),o["\u0275ted"](-1,null,["\n"]))],function(e,t){var n=t.component;e(t,3,0,n.recording),e(t,6,0,!n.recording)},function(e,t){var n=t.component;e(t,0,0,n.changeAnimation,n.active,n.id,n.rx,n.ry,n.height,n.width)})}var Jn=function(){function e(e){this.sanitizer=e}return e.prototype.transform=function(e){return this.sanitizer.bypassSecurityTrustStyle(e)},e}(),Zn=this&&this.__assign||Object.assign||function(e){for(var t,n=1,i=arguments.length;n")},enumerable:!0,configurable:!0}),e.prototype.writeValue=function(e){this.text!==e&&(this.text=e,this.cdr.markForCheck())},e.prototype.registerOnChange=function(e){this.textChange=e},e.prototype.registerOnTouched=function(e){},e.prototype.saveText=function(){this.originalText=null,this.editing=!1,this.textChange(this.text)},e.prototype.editText=function(){this.originalText=this.text,this.editing=!0},e.prototype.cancelEditText=function(){this.text=this.originalText,this.editing=!1},e.prototype.keydownEnter=function(){this.isSaveDisabled||this.saveText()},Object.defineProperty(e.prototype,"showPlaceholder",{get:function(){return!this.editing&&!this.text},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"showText",{get:function(){return!this.editing&&!!this.text},enumerable:!0,configurable:!0}),e}(),ui=o["\u0275crt"]({encapsulation:0,styles:[["[_nghost-%COMP%]{margin-top:.5em}[_nghost-%COMP%] span.placeholder[_ngcontent-%COMP%]{color:gray;display:inline-block}[_nghost-%COMP%] span.placeholder[_ngcontent-%COMP%] .glyphicon[_ngcontent-%COMP%]{color:#000}[_nghost-%COMP%] span.editable[_ngcontent-%COMP%], [_nghost-%COMP%] span.placeholder[_ngcontent-%COMP%]{cursor:pointer}[_nghost-%COMP%] textarea.text-editor[_ngcontent-%COMP%]{display:block;width:100%}[_nghost-%COMP%] .buttons[_ngcontent-%COMP%]{margin-top:.5em}"]],data:{}});function ai(e){return o["\u0275vid"](0,[(e()(),o["\u0275eld"](0,0,null,null,4,"span",[["class","placeholder"]],null,null,null,null,null)),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275eld"](2,0,null,null,1,"span",[],null,[[null,"click"]],function(e,t,n){var i=!0;return"click"===t&&(i=!1!==e.component.editText()&&i),i},null,null)),(e()(),o["\u0275ted"](3,null,["",""])),(e()(),o["\u0275ted"](-1,null,["\n "]))],null,function(e,t){e(t,3,0,t.component.placeholder)})}function si(e){return o["\u0275vid"](0,[(e()(),o["\u0275eld"](0,0,null,null,3,"span",[["class","editable"]],null,null,null,null,null)),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275eld"](2,0,null,null,0,"span",[],[[8,"innerHTML",1]],[[null,"click"]],function(e,t,n){var i=!0;return"click"===t&&(i=!1!==e.component.editText()&&i),i},null,null)),(e()(),o["\u0275ted"](-1,null,["\n "]))],null,function(e,t){e(t,2,0,t.component.displayText)})}function ci(e){return o["\u0275vid"](0,[(e()(),o["\u0275eld"](0,0,null,null,18,"div",[],null,null,null,null,null)),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275eld"](2,0,null,null,6,"textarea",[["autofocus",""],["class","text-editor"]],[[2,"ng-untouched",null],[2,"ng-touched",null],[2,"ng-pristine",null],[2,"ng-dirty",null],[2,"ng-valid",null],[2,"ng-invalid",null],[2,"ng-pending",null]],[[null,"ngModelChange"],[null,"keydown.control.enter"],[null,"keydown.alt.enter"],[null,"input"],[null,"blur"],[null,"compositionstart"],[null,"compositionend"]],function(e,t,n){var i=!0,r=e.component;return"input"===t&&(i=!1!==o["\u0275nov"](e,3)._handleInput(n.target.value)&&i),"blur"===t&&(i=!1!==o["\u0275nov"](e,3).onTouched()&&i),"compositionstart"===t&&(i=!1!==o["\u0275nov"](e,3)._compositionStart()&&i),"compositionend"===t&&(i=!1!==o["\u0275nov"](e,3)._compositionEnd(n.target.value)&&i),"ngModelChange"===t&&(i=!1!==(r.text=n)&&i),"keydown.control.enter"===t&&(i=!1!==r.keydownEnter()&&i),"keydown.alt.enter"===t&&(i=!1!==r.keydownEnter()&&i),i},null,null)),o["\u0275did"](3,16384,null,0,je.DefaultValueAccessor,[o.Renderer2,o.ElementRef,[2,je.COMPOSITION_BUFFER_MODE]],null,null),o["\u0275prd"](1024,null,je.NG_VALUE_ACCESSOR,function(e){return[e]},[je.DefaultValueAccessor]),o["\u0275did"](5,671744,null,0,je.NgModel,[[8,null],[8,null],[8,null],[2,je.NG_VALUE_ACCESSOR]],{model:[0,"model"]},{update:"ngModelChange"}),o["\u0275prd"](2048,null,je.NgControl,null,[je.NgModel]),o["\u0275did"](7,16384,null,0,je.NgControlStatus,[je.NgControl],null,null),o["\u0275did"](8,4276224,null,0,ri,[o.ElementRef],null,null),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275eld"](10,0,null,null,7,"div",[["class","pull-right buttons"]],null,null,null,null,null)),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275eld"](12,0,null,null,1,"button",[["class","btn btn-danger"]],null,[[null,"click"]],function(e,t,n){var i=!0;return"click"===t&&(i=!1!==e.component.cancelEditText()&&i),i},null,null)),(e()(),o["\u0275ted"](-1,null,["\n Cancel\n "])),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275eld"](15,0,null,null,1,"button",[["class","btn btn-primary"]],[[8,"disabled",0]],[[null,"click"]],function(e,t,n){var i=!0;return"click"===t&&(i=!1!==e.component.saveText()&&i),i},null,null)),(e()(),o["\u0275ted"](-1,null,["\n Update description\n "])),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275ted"](-1,null,["\n"]))],function(e,t){e(t,5,0,t.component.text),e(t,8,0)},function(e,t){var n=t.component;e(t,2,0,o["\u0275nov"](t,7).ngClassUntouched,o["\u0275nov"](t,7).ngClassTouched,o["\u0275nov"](t,7).ngClassPristine,o["\u0275nov"](t,7).ngClassDirty,o["\u0275nov"](t,7).ngClassValid,o["\u0275nov"](t,7).ngClassInvalid,o["\u0275nov"](t,7).ngClassPending),e(t,15,0,n.isSaveDisabled)})}function di(e){return o["\u0275vid"](2,[(e()(),o["\u0275eld"](0,0,null,null,7,"div",[["class","text-center"]],null,null,null,null,null)),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275and"](16777216,null,null,1,null,ai)),o["\u0275did"](3,16384,null,0,p.k,[o.ViewContainerRef,o.TemplateRef],{ngIf:[0,"ngIf"]},null),(e()(),o["\u0275ted"](-1,null,["\n\n "])),(e()(),o["\u0275and"](16777216,null,null,1,null,si)),o["\u0275did"](6,16384,null,0,p.k,[o.ViewContainerRef,o.TemplateRef],{ngIf:[0,"ngIf"]},null),(e()(),o["\u0275ted"](-1,null,["\n"])),(e()(),o["\u0275ted"](-1,null,["\n\n"])),(e()(),o["\u0275and"](16777216,null,null,1,null,ci)),o["\u0275did"](10,16384,null,0,p.k,[o.ViewContainerRef,o.TemplateRef],{ngIf:[0,"ngIf"]},null),(e()(),o["\u0275ted"](-1,null,["\n"]))],function(e,t){var n=t.component;e(t,3,0,n.showPlaceholder),e(t,6,0,n.showText),e(t,10,0,n.editing)},null)}var pi=function(e){var t,n=e.rect.map(function(e){return e.$});this.keyboardKeys=[];for(var i=0;i *",animation:{type:4,styles:null,timings:500},options:null}],options:{}},{type:7,name:"fadeSeparator",definitions:[{type:0,name:"visible",styles:{type:6,styles:{opacity:1},offset:null},options:void 0},{type:0,name:"invisible",styles:{type:6,styles:{opacity:0},offset:null},options:void 0},{type:1,expr:"visible => invisible",animation:{type:4,styles:null,timings:500},options:null},{type:1,expr:"invisible => visible",animation:{type:4,styles:null,timings:1500},options:null}],options:{}}]}});function vi(e){return o["\u0275vid"](0,[(e()(),o["\u0275eld"](0,0,null,null,1,":svg:g",[["svg-module",""]],[[1,"transform",0],[24,"@split",0]],[[null,"keyClick"],[null,"keyHover"],[null,"capture"]],function(e,t,n){var i=!0,o=e.component;return"keyClick"===t&&(i=!1!==o.onKeyClick(e.context.index,n)&&i),"keyHover"===t&&(i=!1!==o.onKeyHover(n.index,n.event,n.over,e.context.index)&&i),"capture"===t&&(i=!1!==o.onCapture(e.context.index,n)&&i),i},oi,ei)),o["\u0275did"](1,49152,null,0,Xn,[],{coverages:[0,"coverages"],keyboardKeys:[1,"keyboardKeys"],keyActions:[2,"keyActions"],selectedKey:[3,"selectedKey"],selected:[4,"selected"],keybindAnimationEnabled:[5,"keybindAnimationEnabled"],capturingEnabled:[6,"capturingEnabled"]},{keyClick:"keyClick",keyHover:"keyHover",capture:"capture"})],function(e,t){var n=t.component;e(t,1,0,t.context.$implicit.coverages,t.context.$implicit.keyboardKeys,n.moduleConfig[t.context.index].keyActions,n.selectedKey,(null==n.selectedKey?null:n.selectedKey.moduleId)===t.context.index,n.keybindAnimationEnabled,n.capturingEnabled)},function(e,t){e(t,0,0,t.context.$implicit.attributes.transform,t.component.moduleAnimationStates[t.context.index])})}function bi(e){return o["\u0275vid"](0,[(e()(),o["\u0275eld"](0,0,null,null,5,"editable-text",[["placeholder","No description provided for this keymap."]],[[2,"ng-untouched",null],[2,"ng-touched",null],[2,"ng-pristine",null],[2,"ng-dirty",null],[2,"ng-valid",null],[2,"ng-invalid",null],[2,"ng-pending",null]],[[null,"ngModelChange"]],function(e,t,n){var i=!0;return"ngModelChange"===t&&(i=!1!==e.component.descriptionChanged.emit(n)&&i),i},di,ui)),o["\u0275did"](1,49152,null,0,li,[o.ChangeDetectorRef],{placeholder:[0,"placeholder"]},null),o["\u0275prd"](1024,null,je.NG_VALUE_ACCESSOR,function(e){return[e]},[li]),o["\u0275did"](3,671744,null,0,je.NgModel,[[8,null],[8,null],[8,null],[2,je.NG_VALUE_ACCESSOR]],{model:[0,"model"]},{update:"ngModelChange"}),o["\u0275prd"](2048,null,je.NgControl,null,[je.NgModel]),o["\u0275did"](5,16384,null,0,je.NgControlStatus,[je.NgControl],null,null)],function(e,t){var n=t.component;e(t,1,0,"No description provided for this keymap."),e(t,3,0,n.description)},function(e,t){e(t,0,0,o["\u0275nov"](t,5).ngClassUntouched,o["\u0275nov"](t,5).ngClassTouched,o["\u0275nov"](t,5).ngClassPristine,o["\u0275nov"](t,5).ngClassDirty,o["\u0275nov"](t,5).ngClassValid,o["\u0275nov"](t,5).ngClassInvalid,o["\u0275nov"](t,5).ngClassPending)})}function ki(e){return o["\u0275vid"](2,[(e()(),o["\u0275eld"](0,0,null,null,6,":svg:svg",[["height","100%"],["width","100%"],["xmlns","http://www.w3.org/2000/svg"]],[[1,"viewBox",0]],null,null,null,null)),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275and"](16777216,null,null,1,null,vi)),o["\u0275did"](3,802816,null,0,p.j,[o.ViewContainerRef,o.TemplateRef,o.IterableDiffers],{ngForOf:[0,"ngForOf"]},null),(e()(),o["\u0275ted"](-1,null,["\n\n "])),(e()(),o["\u0275eld"](5,0,null,null,0,":svg:path",[],[[24,"@fadeSeparator",0],[1,"d",0],[1,"style",2]],null,null,null,null)),(e()(),o["\u0275ted"](-1,null,["\n"])),(e()(),o["\u0275ted"](-1,null,["\n"])),(e()(),o["\u0275and"](16777216,null,null,1,null,bi)),o["\u0275did"](9,16384,null,0,p.k,[o.ViewContainerRef,o.TemplateRef],{ngIf:[0,"ngIf"]},null),(e()(),o["\u0275ted"](-1,null,["\n"]))],function(e,t){var n=t.component;e(t,3,0,n.modules),e(t,9,0,n.showDescription)},function(e,t){var n=t.component;e(t,0,0,n.viewBox),e(t,5,0,n.separatorAnimation,n.separator.d,n.separatorStyle)})}var _i=function(){function e(){this.keyboardLayout=fi.a.ANSI,this.keyClick=new o.EventEmitter,this.keyHover=new o.EventEmitter,this.capture=new o.EventEmitter,this.descriptionChanged=new o.EventEmitter}return e.prototype.ngOnChanges=function(e){e.layers&&(this.layerAnimationState=this.layers.map(function(){return"initOut"}),this.layerAnimationState[this.currentLayer]="init");var t=e.currentLayer;if(t)if(e.layers);else{var n=t.isFirstChange()?t.currentValue:t.previousValue;this.onLayerChange(n,t.currentValue)}},e.prototype.trackKeyboard=function(e){return e},e.prototype.onLayerChange=function(e,t){t>e?(this.layerAnimationState[e]="leftOut",this.layerAnimationState[t]="leftIn"):(this.layerAnimationState[e]="rightOut",this.layerAnimationState[t]="rightIn")},e}(),wi=o["\u0275crt"]({encapsulation:0,styles:[["svg-keyboard[_ngcontent-%COMP%]{width:95%;max-width:1400px;position:absolute;left:0;-webkit-transform:translateX(-101%);transform:translateX(-101%);-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}"]],data:{animation:[{type:7,name:"layerState",definitions:[{type:0,name:"init",styles:{type:6,styles:{transform:"translateX(-50%)",left:"50%"},offset:null},options:void 0},{type:0,name:"initOut",styles:{type:6,styles:{transform:"translateX(0)",left:"101%"},offset:null},options:void 0},{type:0,name:"leftIn, rightIn",styles:{type:6,styles:{transform:"translateX(-50%)",left:"50%"},offset:null},options:void 0},{type:0,name:"leftOut",styles:{type:6,styles:{transform:"translateX(-101%)",left:"0"},offset:null},options:void 0},{type:0,name:"rightOut",styles:{type:6,styles:{transform:"translateX(0)",left:"101%"},offset:null},options:void 0},{type:1,expr:"initOut => leftIn, leftOut => leftIn, rightOut => leftIn",animation:[{type:4,styles:{type:5,steps:[{type:6,styles:{transform:"translateX(0%)",left:"101%",offset:0},offset:null},{type:6,styles:{transform:"translateX(-50%)",left:"50%",offset:1},offset:null}]},timings:"400ms ease-out"}],options:null},{type:1,expr:"init => leftOut, leftIn => leftOut, rightIn => leftOut",animation:[{type:4,styles:{type:5,steps:[{type:6,styles:{transform:"translateX(-50%)",left:"50%",offset:0},offset:null},{type:6,styles:{transform:"translateX(-101%)",left:"0%",offset:1},offset:null}]},timings:"400ms ease-out"}],options:null},{type:1,expr:"* => rightIn",animation:[{type:4,styles:{type:5,steps:[{type:6,styles:{transform:"translateX(-101%)",left:"0%",offset:0},offset:null},{type:6,styles:{transform:"translateX(-50%)",left:"50%",offset:1},offset:null}]},timings:"400ms ease-out"}],options:null},{type:1,expr:"* => rightOut",animation:[{type:4,styles:{type:5,steps:[{type:6,styles:{transform:"translateX(-50%)",left:"50%",offset:0},offset:null},{type:6,styles:{transform:"translateX(0%)",left:"101%",offset:1},offset:null}]},timings:"400ms ease-out"}],options:null},{type:1,expr:":leave",animation:[{type:4,styles:{type:5,steps:[{type:6,styles:{opacity:1,offset:0},offset:null},{type:6,styles:{opacity:0,offset:1},offset:null}]},timings:"2000ms ease-out"}],options:null}],options:{}}]}});function Ai(e){return o["\u0275vid"](0,[(e()(),o["\u0275eld"](0,0,null,null,2,"svg-keyboard",[["oncontextmenu","return false;"]],[[24,"@layerState",0]],[[null,"keyClick"],[null,"keyHover"],[null,"capture"],[null,"descriptionChanged"]],function(e,t,n){var i=!0,o=e.component;return"keyClick"===t&&(i=!1!==o.keyClick.emit(n)&&i),"keyHover"===t&&(i=!1!==o.keyHover.emit(n)&&i),"capture"===t&&(i=!1!==o.capture.emit(n)&&i),"descriptionChanged"===t&&(i=!1!==o.descriptionChanged.emit(n)&&i),i},ki,gi)),o["\u0275did"](1,638976,null,0,mi,[hi,I.c],{moduleConfig:[0,"moduleConfig"],keybindAnimationEnabled:[1,"keybindAnimationEnabled"],capturingEnabled:[2,"capturingEnabled"],selectedKey:[3,"selectedKey"],selected:[4,"selected"],halvesSplit:[5,"halvesSplit"],keyboardLayout:[6,"keyboardLayout"],description:[7,"description"],showDescription:[8,"showDescription"]},{keyClick:"keyClick",keyHover:"keyHover",capture:"capture",descriptionChanged:"descriptionChanged"}),(e()(),o["\u0275ted"](-1,null,["\n"]))],function(e,t){var n=t.component;e(t,1,0,t.context.$implicit.modules,n.keybindAnimationEnabled,n.capturingEnabled,n.selectedKey,(null==n.selectedKey?null:n.selectedKey.layerId)===t.context.index,n.halvesSplit,n.keyboardLayout,n.description,!0)},function(e,t){e(t,0,0,t.component.layerAnimationState[t.context.index])})}function Ti(e){return o["\u0275vid"](2,[(e()(),o["\u0275and"](16777216,null,null,1,null,Ai)),o["\u0275did"](1,802816,null,0,p.j,[o.ViewContainerRef,o.TemplateRef,o.IterableDiffers],{ngForOf:[0,"ngForOf"],ngForTrackBy:[1,"ngForTrackBy"]},null),(e()(),o["\u0275ted"](-1,null,["\n"]))],function(e,t){var n=t.component;e(t,1,0,n.layers,n.trackKeyboard)},null)}var Ci=n("TToO"),xi=n("Eh6b"),Oi=n("EEr4"),Si=n("TfWX"),Mi=(n("AGQa"),n("S35O"),n("1APj"),n("qp8k"),n("HcJ8"),n("7axH"),n("wUn1"),n("WQmy"),n("EGMK"),n("+pb+"),n("EnA3"),n("M4fF")),Ei=xi,Pi=function(){function e(e,t,n,i,o){void 0===o&&(o=null),this.value=e,this.text=t,this.disabled=n,this.data=i,this._parent=o,this.type="option",this.cacheRenderedText=null}return Object.defineProperty(e.prototype,"parent",{get:function(){return this._parent},enumerable:!0,configurable:!0}),e.prototype.renderText=function(e,t){return this.cacheHighlightText===t&&null!==this.cacheRenderedText||(this.cacheHighlightText=t,this.cacheRenderedText=e.bypassSecurityTrustHtml(this.cacheHighlightText?(this.text+"").replace(new RegExp(Ei(this.cacheHighlightText),"gi"),"$&"):this.text)),this.cacheRenderedText},e}(),Ii=function(){function e(e,t){void 0===t&&(t=[]),this.label=e,this.options=t,this.type="optgroup",this.filter(function(){return!0})}return e.prototype.filter=function(e){this.optionsFiltered=this.options.filter(function(t){return e(t)})},e}(),Ri=function(e){this.template=e},Di=Mi,Ni=xi,ji=new o.InjectionToken("NGX_SELECT_OPTIONS"),Li=function(){var e={first:0,previous:1,next:2,last:3,firstSelected:4,firstIfOptionActiveInvisible:5};return e[e.first]="first",e[e.previous]="previous",e[e.next]="next",e[e.last]="last",e[e.firstSelected]="firstSelected",e[e.firstIfOptionActiveInvisible]="firstIfOptionActiveInvisible",e}();function Ui(e,t){return t in e}var Vi=function(){function e(e,t,n,i){var r,l=this;this.sanitizer=t,this.cd=n,this.optionValueField="id",this.optionTextField="text",this.optGroupLabelField="label",this.optGroupOptionsField="options",this.multiple=!1,this.allowClear=!1,this.placeholder="",this.noAutoComplete=!1,this.disabled=!1,this.defaultValue=[],this.autoSelectSingleOption=!1,this.autoClearSearch=!1,this.noResultsFound="No results found",this.size="default",this.autoActiveOnMouseEnter=!0,this.keyCodeToRemoveSelected="Delete",this.keyCodeToOptionsOpen="Enter",this.keyCodeToOptionsClose="Escape",this.keyCodeToOptionsSelect="Enter",this.keyCodeToNavigateFirst="ArrowLeft",this.keyCodeToNavigatePrevious="ArrowUp",this.keyCodeToNavigateNext="ArrowDown",this.keyCodeToNavigateLast="ArrowRight",this.typed=new o.EventEmitter,this.focus=new o.EventEmitter,this.blur=new o.EventEmitter,this.open=new o.EventEmitter,this.close=new o.EventEmitter,this.select=new o.EventEmitter,this.remove=new o.EventEmitter,this.navigated=new o.EventEmitter,this.selectionChanges=new o.EventEmitter,this.optionsOpened=!1,this.actualValue=[],this.subjOptions=new Si.BehaviorSubject([]),this.subjSearchText=new Si.BehaviorSubject(""),this.subjOptionsSelected=new Si.BehaviorSubject([]),this.subjExternalValue=new Si.BehaviorSubject([]),this.subjDefaultValue=new Si.BehaviorSubject([]),this.subjRegisterOnChange=new Oi.Subject,this._focusToInput=!1,this.isFocused=!1,this.onChange=function(e){return e},this.onTouched=function(){return null},Object.assign(this,i),this.itemsDiffer=e.find([]).create(null),this.defaultValueDiffer=e.find([]).create(null),this.typed.subscribe(function(e){return l.subjSearchText.next(e)}),this.subjOptionsSelected.subscribe(function(e){return l.selectionChanges.emit(e)});var u=this.subjExternalValue.map(function(e){return r=null===e?[]:[].concat(e)}).merge(this.subjOptionsSelected.map(function(e){return e.map(function(e){return e.value})})).combineLatest(this.subjDefaultValue,function(e,t){var n=Di.isEqual(e,t)?[]:e;return n.length?n:t}).distinctUntilChanged(function(e,t){return Di.isEqual(e,t)}).share();u.combineLatest(this.subjRegisterOnChange,function(e){return e}).subscribe(function(e){l.actualValue=e,Di.isEqual(e,r)||(r=e,l.onChange(l.multiple?e:e.length?e[0]:null))}),this.subjOptions.flatMap(function(e){return Ve.Observable.from(e).flatMap(function(e){return e instanceof Pi?Ve.Observable.of(e):e instanceof Ii?Ve.Observable.from(e.options):Ve.Observable.empty()}).toArray()}).combineLatest(u,function(e,t){var n,i,o=[];try{for(var r=Ci.__values(e),u=r.next();!u.done;u=r.next()){var a=u.value;t.indexOf(a.value)>-1&&o.push(a)}}catch(e){n={error:e}}finally{try{u&&!u.done&&(i=r.return)&&i.call(r)}finally{if(n)throw n.error}}Di.isEqual(o,l.subjOptionsSelected.value)||(l.subjOptionsSelected.next(o),l.cd.markForCheck())}).subscribe(),this.subjOptions.combineLatest(this.subjOptionsSelected,this.subjSearchText,function(e,t,n){return l.optionsFiltered=l.filterOptions(n,e,t).map(function(e){return e instanceof Pi?e.highlightedText=l.highlightOption(e):e instanceof Ii&&e.options.map(function(e){return e.highlightedText=l.highlightOption(e),e}),e}),l.cacheOptionsFilteredFlat=null,l.navigateOption(Li.firstIfOptionActiveInvisible),l.cd.markForCheck(),t}).flatMap(function(e){return l.optionsFilteredFlat().filter(function(t){return l.autoSelectSingleOption&&1===t.length&&!e.length})}).subscribe(function(e){l.subjOptionsSelected.next(e),l.cd.markForCheck()})}return e.prototype.setFormControlSize=function(e,t){return void 0===e&&(e={}),void 0===t&&(t=!0),Object.assign(t?{"form-control-sm input-sm":"small"===this.size,"form-control-lg input-lg":"large"===this.size}:{},e)},e.prototype.setBtnSize=function(){return{"btn-sm":"small"===this.size,"btn-lg":"large"===this.size}},Object.defineProperty(e.prototype,"optionsSelected",{get:function(){return this.subjOptionsSelected.value},enumerable:!0,configurable:!0}),e.prototype.mainClicked=function(e){e.clickedSelectComponent=this,this.isFocused||(this.isFocused=!0,this.focus.emit())},e.prototype.documentClick=function(e){e.clickedSelectComponent!==this&&(this.optionsOpened&&(this.optionsClose(),this.cd.detectChanges()),this.isFocused&&(this.isFocused=!1,this.blur.emit()))},e.prototype.optionsFilteredFlat=function(){var e=this;return this.cacheOptionsFilteredFlat?Ve.Observable.of(this.cacheOptionsFilteredFlat):Ve.Observable.from(this.optionsFiltered).flatMap(function(e){return e instanceof Pi?Ve.Observable.of(e):e instanceof Ii?Ve.Observable.from(e.optionsFiltered):Ve.Observable.empty()}).filter(function(e){return!e.disabled}).toArray().do(function(t){return e.cacheOptionsFilteredFlat=t})},e.prototype.navigateOption=function(e){var t=this;this.optionsFilteredFlat().map(function(n){var i,o={index:-1,activeOption:null,filteredOptionList:n};switch(e){case Li.first:o.index=0;break;case Li.previous:i=n.indexOf(t.optionActive)-1,o.index=i>=0?i:n.length-1;break;case Li.next:i=n.indexOf(t.optionActive)+1,o.index=i0?r:0}return o.activeOption=n[o.index],o}).subscribe(function(e){return t.optionActivate(e)})},e.prototype.ngDoCheck=function(){this.itemsDiffer.diff(this.items)&&this.subjOptions.next(this.buildOptions(this.items));var e=this.defaultValue?[].concat(this.defaultValue):[];this.defaultValueDiffer.diff(e)&&this.subjDefaultValue.next(e)},e.prototype.ngAfterContentChecked=function(){if(this._focusToInput&&this.checkInputVisibility()&&this.inputElRef&&this.inputElRef.nativeElement!==document.activeElement&&(this._focusToInput=!1,this.inputElRef.nativeElement.focus()),this.choiceMenuElRef){var e=this.choiceMenuElRef.nativeElement.querySelector("a.ngx-select__item_active.active");e&&e.offsetHeight>0&&this.ensureVisibleElement(e)}},e.prototype.canClearNotMultiple=function(){return this.allowClear&&!!this.subjOptionsSelected.value.length&&(!this.subjDefaultValue.value.length||this.subjDefaultValue.value[0]!==this.actualValue[0])},e.prototype.focusToInput=function(){this._focusToInput=!0},e.prototype.inputKeyDown=function(e){var t=[this.keyCodeToOptionsOpen,this.keyCodeToRemoveSelected];if(this.optionsOpened&&-1!==[this.keyCodeToOptionsSelect,this.keyCodeToNavigateFirst,this.keyCodeToNavigatePrevious,this.keyCodeToNavigateNext,this.keyCodeToNavigateLast].indexOf(e.code))switch(e.preventDefault(),e.stopPropagation(),e.code){case this.keyCodeToOptionsSelect:this.optionSelect(this.optionActive),this.navigateOption(Li.next);break;case this.keyCodeToNavigateFirst:this.navigateOption(Li.first);break;case this.keyCodeToNavigatePrevious:this.navigateOption(Li.previous);break;case this.keyCodeToNavigateLast:this.navigateOption(Li.last);break;case this.keyCodeToNavigateNext:this.navigateOption(Li.next)}else if(!this.optionsOpened&&-1!==t.indexOf(e.code))switch(e.preventDefault(),e.stopPropagation(),e.code){case this.keyCodeToOptionsOpen:this.optionsOpen();break;case this.keyCodeToRemoveSelected:this.optionRemove(this.subjOptionsSelected.value[this.subjOptionsSelected.value.length-1],e)}},e.prototype.trackByOption=function(e,t){return t instanceof Pi?t.value:t instanceof Ii?t.label:t},e.prototype.checkInputVisibility=function(){return!0===this.multiple||this.optionsOpened&&!this.noAutoComplete},e.prototype.inputKeyUp=function(e,t){void 0===e&&(e=""),this.optionsOpened?this.typed.emit(e):!this.optionsOpened&&e?this.optionsOpen(e):t.code===this.keyCodeToOptionsClose&&this.optionsClose()},e.prototype.inputClick=function(e){void 0===e&&(e=""),this.optionsOpened||this.optionsOpen(e)},e.prototype.sanitize=function(e){return e?this.sanitizer.bypassSecurityTrustHtml(e):null},e.prototype.highlightOption=function(e){return e.renderText(this.sanitizer,this.inputElRef?this.inputElRef.nativeElement.value:"")},e.prototype.optionSelect=function(e,t){void 0===t&&(t=null),t&&(t.preventDefault(),t.stopPropagation()),e&&!e.disabled&&(this.subjOptionsSelected.next((this.multiple?this.subjOptionsSelected.value:[]).concat([e])),this.select.emit(e.value),this.optionsClose(),this.onTouched())},e.prototype.optionRemove=function(e,t){!this.disabled&&e&&(t.stopPropagation(),this.subjOptionsSelected.next((this.multiple?this.subjOptionsSelected.value:[]).filter(function(t){return t!==e})),this.remove.emit(e.value))},e.prototype.optionActivate=function(e){this.optionActive===e.activeOption||e.activeOption&&e.activeOption.disabled||(this.optionActive&&(this.optionActive.active=!1),this.optionActive=e.activeOption,this.optionActive&&(this.optionActive.active=!0),this.navigated.emit(e),this.cd.detectChanges())},e.prototype.onMouseEnter=function(e){this.autoActiveOnMouseEnter&&this.optionActivate(e)},e.prototype.filterOptions=function(e,t,n){var i=this,o=new RegExp(Ni(e),"i"),r=function(t){return i.searchCallback?i.searchCallback(e,t):(!e||o.test(t.text))&&(!i.multiple||-1===n.indexOf(t))};return t.filter(function(e){if(e instanceof Pi)return r(e);if(e instanceof Ii){var t=e;return t.filter(function(e){return r(e)}),t.optionsFiltered.length}})},e.prototype.ensureVisibleElement=function(e){var t=this;setTimeout(function(){if(t.choiceMenuElRef&&t.cacheElementOffsetTop!==e.offsetTop){t.cacheElementOffsetTop=e.offsetTop;var n=t.choiceMenuElRef.nativeElement;t.cacheElementOffsetTopn.scrollTop+n.clientHeight&&(n.scrollTop=t.cacheElementOffsetTop+e.offsetHeight-n.clientHeight)}})},e.prototype.optionsOpen=function(e){void 0===e&&(e=""),this.disabled||(this.optionsOpened=!0,this.subjSearchText.next(e),this.navigateOption(!this.multiple&&this.subjOptionsSelected.value.length?Li.firstSelected:Li.first),this.focusToInput(),this.open.emit(),this.cd.markForCheck())},e.prototype.optionsClose=function(){this.optionsOpened=!1,this.close.emit(),this.autoClearSearch&&this.multiple&&this.inputElRef&&(this.inputElRef.nativeElement.value=null)},e.prototype.buildOptions=function(e){var t,n=this,i=[];return Array.isArray(e)&&e.forEach(function(e){if("object"==typeof e&&null!==e&&Ui(e,n.optGroupLabelField)&&Ui(e,n.optGroupOptionsField)&&Array.isArray(e[n.optGroupOptionsField])){var o=new Ii(e[n.optGroupLabelField]);e[n.optGroupOptionsField].forEach(function(e){(t=n.buildOption(e,o))&&o.options.push(t)}),i.push(o)}else(t=n.buildOption(e,null))&&i.push(t)}),i},e.prototype.buildOption=function(e,t){var n,i,o;if("string"==typeof e||"number"==typeof e)n=i=e,o=!1;else{if("object"!=typeof e||null===e||!Ui(e,this.optionValueField)&&!Ui(e,this.optionTextField))return null;n=Ui(e,this.optionValueField)?e[this.optionValueField]:e[this.optionTextField],i=Ui(e,this.optionTextField)?e[this.optionTextField]:e[this.optionValueField],o=!!Ui(e,"disabled")&&e.disabled}return new Pi(n,i,o,e,t)},e.prototype.writeValue=function(e){this.subjExternalValue.next(e)},e.prototype.registerOnChange=function(e){this.onChange=e,this.subjRegisterOnChange.next()},e.prototype.registerOnTouched=function(e){this.onTouched=e},e.prototype.setDisabledState=function(e){this.disabled=e},e}(),Fi=function(){function e(){}return e.forRoot=function(t){return{ngModule:e,providers:[{provide:ji,useValue:t}]}},e}(),Ki=o["\u0275crt"]({encapsulation:0,styles:[".ngx-select[_ngcontent-%COMP%]{ }\n .ngx-select_multiple[_ngcontent-%COMP%]{\n height:auto;\n padding:3px 3px 0 3px; }\n .ngx-select_multiple[_ngcontent-%COMP%] .ngx-select__search[_ngcontent-%COMP%]{\n background-color:transparent !important;\n border:none;\n outline:none;\n -webkit-box-shadow:none;\n box-shadow:none;\n height:1.6666em;\n padding:0;\n margin-bottom:3px; }\n .ngx-select__disabled[_ngcontent-%COMP%]{\n background-color:#eceeef;\n border-radius:4px;\n position:absolute;\n width:100%;\n height:100%;\n z-index:5;\n opacity:0.6;\n top:0;\n left:0;\n cursor:not-allowed; }\n .ngx-select__toggle[_ngcontent-%COMP%]{\n outline:0;\n position:relative;\n text-align:left !important;\n color:#333;\n background-color:#fff;\n border-color:#ccc;\n display:-webkit-inline-box;\n display:-ms-inline-flexbox;\n display:inline-flex;\n -webkit-box-align:stretch;\n -ms-flex-align:stretch;\n align-items:stretch;\n -webkit-box-pack:justify;\n -ms-flex-pack:justify;\n justify-content:space-between; }\n .ngx-select__toggle[_ngcontent-%COMP%]:hover{\n color:#333;\n background-color:#e6e6e6;\n border-color:#adadad; }\n .ngx-select__toggle-buttons[_ngcontent-%COMP%]{\n -ms-flex-negative:0;\n flex-shrink:0;\n display:-webkit-box;\n display:-ms-flexbox;\n display:flex;\n -webkit-box-align:center;\n -ms-flex-align:center;\n align-items:center; }\n .ngx-select__toggle-caret[_ngcontent-%COMP%]{\n position:absolute;\n height:10px;\n top:50%;\n right:10px;\n margin-top:-2px; }\n .ngx-select__placeholder[_ngcontent-%COMP%]{\n float:left; }\n .ngx-select__clear[_ngcontent-%COMP%]{\n margin-right:10px;\n padding:0;\n border:none; }\n .ngx-select_multiple[_ngcontent-%COMP%] .ngx-select__clear[_ngcontent-%COMP%]{\n line-height:initial;\n margin-left:5px;\n margin-right:0;\n color:#000;\n opacity:.5; }\n .ngx-select__clear-icon[_ngcontent-%COMP%]{\n display:inline-block;\n font-size:inherit;\n cursor:pointer;\n position:relative;\n width:1em;\n height:.75em;\n padding:0; }\n .ngx-select__clear-icon[_ngcontent-%COMP%]:before, .ngx-select__clear-icon[_ngcontent-%COMP%]:after{\n content:'';\n position:absolute;\n border-top:3px solid;\n width:100%;\n top:50%;\n left:0;\n margin-top:-1px; }\n .ngx-select__clear-icon[_ngcontent-%COMP%]:before{\n -webkit-transform:rotate(45deg);\n transform:rotate(45deg); }\n .ngx-select__clear-icon[_ngcontent-%COMP%]:after{\n -webkit-transform:rotate(-45deg);\n transform:rotate(-45deg); }\n .ngx-select__choices[_ngcontent-%COMP%]{\n width:100%;\n height:auto;\n max-height:200px;\n overflow-x:hidden;\n margin-top:0;\n position:absolute; }\n .ngx-select_multiple[_ngcontent-%COMP%] .ngx-select__choices[_ngcontent-%COMP%]{\n margin-top:1px; }\n .ngx-select__item[_ngcontent-%COMP%]{\n display:block;\n padding:3px 20px;\n clear:both;\n font-weight:400;\n line-height:1.42857143;\n white-space:nowrap;\n cursor:pointer;\n text-decoration:none; }\n .ngx-select__item_disabled[_ngcontent-%COMP%], .ngx-select__item_no-found[_ngcontent-%COMP%]{\n cursor:default; }\n .ngx-select__item_active[_ngcontent-%COMP%]{\n color:#fff;\n outline:0;\n background-color:#428bca; }\n .ngx-select__selected-single[_ngcontent-%COMP%], .ngx-select__selected-plural[_ngcontent-%COMP%]{\n display:-webkit-inline-box;\n display:-ms-inline-flexbox;\n display:inline-flex;\n -webkit-box-align:center;\n -ms-flex-align:center;\n align-items:center;\n overflow:hidden; }\n .ngx-select__selected-single[_ngcontent-%COMP%] span[_ngcontent-%COMP%], .ngx-select__selected-plural[_ngcontent-%COMP%] span[_ngcontent-%COMP%]{\n overflow:hidden;\n text-overflow:ellipsis; }\n .ngx-select__selected-plural[_ngcontent-%COMP%]{\n outline:0;\n margin:0 3px 3px 0; }\n.input-group[_ngcontent-%COMP%] > .dropdown[_ngcontent-%COMP%]{\n position:static; }"],data:{}});function Bi(e){return o["\u0275vid"](0,[(e()(),o["\u0275eld"](0,0,null,null,3,"span",[["class","ngx-select__placeholder text-muted"]],null,null,null,null,null)),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275eld"](2,0,null,null,0,"span",[],[[8,"innerHTML",1]],null,null,null,null)),(e()(),o["\u0275ted"](-1,null,["\n "]))],null,function(e,t){e(t,2,0,t.component.placeholder)})}function Hi(e){return o["\u0275vid"](0,[(e()(),o["\u0275eld"](0,0,null,null,8,"span",[["class","ngx-select__selected-single pull-left float-left"]],null,null,null,null,null)),o["\u0275did"](1,278528,null,0,p.i,[o.IterableDiffers,o.KeyValueDiffers,o.ElementRef,o.Renderer2],{klass:[0,"klass"],ngClass:[1,"ngClass"]},null),o["\u0275pod"](2,{"ngx-select__allow-clear":0}),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275eld"](4,16777216,null,null,3,null,null,null,null,null,null,null)),o["\u0275did"](5,540672,null,0,p.q,[o.ViewContainerRef],{ngTemplateOutletContext:[0,"ngTemplateOutletContext"],ngTemplateOutlet:[1,"ngTemplateOutlet"]},null),o["\u0275pod"](6,{$implicit:0,index:1,text:2}),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275ted"](-1,null,["\n "]))],function(e,t){var n=t.component;e(t,1,0,"ngx-select__selected-single pull-left float-left",e(t,2,0,n.allowClear)),e(t,5,0,e(t,6,0,n.optionsSelected[0],0,n.sanitize(n.optionsSelected[0].text)),n.templateSelectedOption||o["\u0275nov"](t.parent.parent,28))},null)}function Wi(e){return o["\u0275vid"](0,[(e()(),o["\u0275eld"](0,0,null,null,4,"a",[["class","ngx-select__clear btn btn-sm btn-link"]],null,[[null,"click"]],function(e,t,n){var i=!0,o=e.component;return"click"===t&&(i=!1!==o.optionRemove(o.optionsSelected[0],n)&&i),i},null,null)),o["\u0275did"](1,278528,null,0,p.i,[o.IterableDiffers,o.KeyValueDiffers,o.ElementRef,o.Renderer2],{klass:[0,"klass"],ngClass:[1,"ngClass"]},null),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275eld"](3,0,null,null,0,"i",[["class","ngx-select__clear-icon"]],null,null,null,null,null)),(e()(),o["\u0275ted"](-1,null,["\n "]))],function(e,t){e(t,1,0,"ngx-select__clear btn btn-sm btn-link",t.component.setBtnSize())},null)}function zi(e){return o["\u0275vid"](0,[(e()(),o["\u0275eld"](0,0,null,null,21,"div",[["class","ngx-select__selected"]],null,null,null,null,null)),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275eld"](2,0,null,null,18,"div",[["class","ngx-select__toggle btn form-control"]],null,[[null,"click"]],function(e,t,n){var i=!0;return"click"===t&&(i=!1!==e.component.optionsOpen()&&i),i},null,null)),o["\u0275did"](3,278528,null,0,p.i,[o.IterableDiffers,o.KeyValueDiffers,o.ElementRef,o.Renderer2],{klass:[0,"klass"],ngClass:[1,"ngClass"]},null),(e()(),o["\u0275ted"](-1,null,["\n\n "])),(e()(),o["\u0275and"](16777216,null,null,1,null,Bi)),o["\u0275did"](6,16384,null,0,p.k,[o.ViewContainerRef,o.TemplateRef],{ngIf:[0,"ngIf"]},null),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275and"](16777216,null,null,1,null,Hi)),o["\u0275did"](9,16384,null,0,p.k,[o.ViewContainerRef,o.TemplateRef],{ngIf:[0,"ngIf"]},null),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275eld"](11,0,null,null,8,"span",[["class","ngx-select__toggle-buttons"]],null,null,null,null,null)),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275and"](16777216,null,null,1,null,Wi)),o["\u0275did"](14,16384,null,0,p.k,[o.ViewContainerRef,o.TemplateRef],{ngIf:[0,"ngIf"]},null),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275eld"](16,0,null,null,0,"i",[["class","dropdown-toggle"]],null,null,null,null,null)),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275eld"](18,0,null,null,0,"i",[["class","ngx-select__toggle-caret caret"]],null,null,null,null,null)),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275ted"](-1,null,["\n "]))],function(e,t){var n=t.component;e(t,3,0,"ngx-select__toggle btn form-control",n.setFormControlSize(n.setBtnSize())),e(t,6,0,!n.optionsSelected.length),e(t,9,0,n.optionsSelected.length),e(t,14,0,n.canClearNotMultiple())},null)}function $i(e){return o["\u0275vid"](0,[(e()(),o["\u0275eld"](0,0,null,null,16,"span",[],null,null,null,null,null)),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275eld"](2,0,null,null,13,"span",[["class","ngx-select__selected-plural btn btn-default btn-secondary btn-xs"],["tabindex","-1"]],null,null,null,null,null)),o["\u0275did"](3,278528,null,0,p.i,[o.IterableDiffers,o.KeyValueDiffers,o.ElementRef,o.Renderer2],{klass:[0,"klass"],ngClass:[1,"ngClass"]},null),(e()(),o["\u0275ted"](-1,null,["\n\n "])),(e()(),o["\u0275eld"](5,16777216,null,null,3,null,null,null,null,null,null,null)),o["\u0275did"](6,540672,null,0,p.q,[o.ViewContainerRef],{ngTemplateOutletContext:[0,"ngTemplateOutletContext"],ngTemplateOutlet:[1,"ngTemplateOutlet"]},null),o["\u0275pod"](7,{$implicit:0,index:1,text:2}),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275ted"](-1,null,["\n\n "])),(e()(),o["\u0275eld"](10,0,null,null,4,"a",[["class","ngx-select__clear btn btn-sm btn-link pull-right float-right"]],null,[[null,"click"]],function(e,t,n){var i=!0;return"click"===t&&(i=!1!==e.component.optionRemove(e.context.$implicit,n)&&i),i},null,null)),o["\u0275did"](11,278528,null,0,p.i,[o.IterableDiffers,o.KeyValueDiffers,o.ElementRef,o.Renderer2],{klass:[0,"klass"],ngClass:[1,"ngClass"]},null),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275eld"](13,0,null,null,0,"i",[["class","ngx-select__clear-icon"]],null,null,null,null,null)),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275ted"](-1,null,["\n "]))],function(e,t){var n=t.component;e(t,3,0,"ngx-select__selected-plural btn btn-default btn-secondary btn-xs",n.setBtnSize()),e(t,6,0,e(t,7,0,t.context.$implicit,t.context.index,n.sanitize(t.context.$implicit.text)),n.templateSelectedOption||o["\u0275nov"](t.parent.parent,28)),e(t,11,0,"ngx-select__clear btn btn-sm btn-link pull-right float-right",n.setBtnSize())},null)}function qi(e){return o["\u0275vid"](0,[(e()(),o["\u0275eld"](0,0,null,null,4,"div",[["class","ngx-select__selected"]],null,null,null,null,null)),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275and"](16777216,null,null,1,null,$i)),o["\u0275did"](3,802816,null,0,p.j,[o.ViewContainerRef,o.TemplateRef,o.IterableDiffers],{ngForOf:[0,"ngForOf"],ngForTrackBy:[1,"ngForTrackBy"]},null),(e()(),o["\u0275ted"](-1,null,["\n "]))],function(e,t){var n=t.component;e(t,3,0,n.optionsSelected,n.trackByOption)},null)}function Gi(e){return o["\u0275vid"](0,[(e()(),o["\u0275eld"](0,0,[[2,0],["input",1]],null,1,"input",[["autocapitalize","off"],["autocomplete","off"],["autocorrect","off"],["class","ngx-select__search form-control"],["role","combobox"],["spellcheck","false"],["type","text"]],[[8,"tabIndex",0],[8,"disabled",0],[8,"placeholder",0]],[[null,"keyup"],[null,"click"]],function(e,t,n){var i=!0,r=e.component;return"keyup"===t&&(i=!1!==r.inputKeyUp(o["\u0275nov"](e,0).value,n)&&i),"click"===t&&(i=!1!==r.inputClick(o["\u0275nov"](e,0).value)&&i),i},null,null)),o["\u0275did"](1,278528,null,0,p.i,[o.IterableDiffers,o.KeyValueDiffers,o.ElementRef,o.Renderer2],{klass:[0,"klass"],ngClass:[1,"ngClass"]},null)],function(e,t){e(t,1,0,"ngx-select__search form-control",t.component.setFormControlSize())},function(e,t){var n=t.component;e(t,0,0,!1===n.multiple?-1:0,n.disabled,n.optionsSelected.length?"":n.placeholder)})}function Yi(e){return o["\u0275vid"](0,[(e()(),o["\u0275eld"](0,0,null,null,0,"div",[["class","divider dropdown-divider"]],null,null,null,null,null))],null,null)}function Qi(e){return o["\u0275vid"](0,[(e()(),o["\u0275eld"](0,0,null,null,1,"div",[["class","dropdown-header"]],null,null,null,null,null)),(e()(),o["\u0275ted"](1,null,["",""]))],null,function(e,t){e(t,1,0,t.parent.context.$implicit.label)})}function Ji(e){return o["\u0275vid"](0,[(e()(),o["\u0275eld"](0,0,[["choiceItem",1]],null,7,"a",[["class","ngx-select__item dropdown-item"],["href","#"]],null,[[null,"mouseenter"],[null,"click"]],function(e,t,n){var i=!0,o=e.component;return"mouseenter"===t&&(i=!1!==o.onMouseEnter({activeOption:e.context.$implicit,filteredOptionList:o.optionsFiltered,index:e.context.index})&&i),"click"===t&&(i=!1!==o.optionSelect(e.context.$implicit,n)&&i),i},null,null)),o["\u0275did"](1,278528,null,0,p.i,[o.IterableDiffers,o.KeyValueDiffers,o.ElementRef,o.Renderer2],{klass:[0,"klass"],ngClass:[1,"ngClass"]},null),o["\u0275pod"](2,{"ngx-select__item_active active":0,"ngx-select__item_disabled disabled":1}),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275eld"](4,16777216,null,null,2,null,null,null,null,null,null,null)),o["\u0275did"](5,540672,null,0,p.q,[o.ViewContainerRef],{ngTemplateOutletContext:[0,"ngTemplateOutletContext"],ngTemplateOutlet:[1,"ngTemplateOutlet"]},null),o["\u0275pod"](6,{$implicit:0,text:1,index:2,subIndex:3}),(e()(),o["\u0275ted"](-1,null,["\n "]))],function(e,t){var n=t.component;e(t,1,0,"ngx-select__item dropdown-item",e(t,2,0,t.context.$implicit.active,t.context.$implicit.disabled)),e(t,5,0,e(t,6,0,t.context.$implicit,t.context.$implicit.highlightedText,t.parent.context.index,t.context.index),n.templateOption||o["\u0275nov"](t.parent.parent.parent,28))},null)}function Zi(e){return o["\u0275vid"](0,[(e()(),o["\u0275eld"](0,0,null,null,11,"li",[["class","ngx-select__item-group"],["role","menuitem"]],null,null,null,null,null)),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275and"](16777216,null,null,1,null,Yi)),o["\u0275did"](3,16384,null,0,p.k,[o.ViewContainerRef,o.TemplateRef],{ngIf:[0,"ngIf"]},null),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275and"](16777216,null,null,1,null,Qi)),o["\u0275did"](6,16384,null,0,p.k,[o.ViewContainerRef,o.TemplateRef],{ngIf:[0,"ngIf"]},null),(e()(),o["\u0275ted"](-1,null,["\n\n "])),(e()(),o["\u0275and"](16777216,null,null,2,null,Ji)),o["\u0275did"](9,802816,null,0,p.j,[o.ViewContainerRef,o.TemplateRef,o.IterableDiffers],{ngForOf:[0,"ngForOf"],ngForTrackBy:[1,"ngForTrackBy"]},null),o["\u0275pad"](10,1),(e()(),o["\u0275ted"](-1,null,["\n "]))],function(e,t){var n=t.component;e(t,3,0,"optgroup"===t.context.$implicit.type&&t.context.index>0),e(t,6,0,"optgroup"===t.context.$implicit.type),e(t,9,0,t.context.$implicit.optionsFiltered||e(t,10,0,t.context.$implicit),n.trackByOption)},null)}function Xi(e){return o["\u0275vid"](0,[(e()(),o["\u0275eld"](0,0,null,null,4,"li",[["class","ngx-select__item ngx-select__item_no-found dropdown-header"]],null,null,null,null,null)),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275eld"](2,16777216,null,null,1,null,null,null,null,null,null,null)),o["\u0275did"](3,540672,null,0,p.q,[o.ViewContainerRef],{ngTemplateOutlet:[0,"ngTemplateOutlet"]},null),(e()(),o["\u0275ted"](-1,null,["\n "]))],function(e,t){e(t,3,0,t.component.templateOptionNotFound||o["\u0275nov"](t.parent.parent,30))},null)}function eo(e){return o["\u0275vid"](0,[(e()(),o["\u0275eld"](0,0,[[3,0],["choiceMenu",1]],null,7,"ul",[["class","ngx-select__choices dropdown-menu"],["role","menu"]],[[2,"show",null]],null,null,null,null)),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275and"](16777216,null,null,1,null,Zi)),o["\u0275did"](3,802816,null,0,p.j,[o.ViewContainerRef,o.TemplateRef,o.IterableDiffers],{ngForOf:[0,"ngForOf"],ngForTrackBy:[1,"ngForTrackBy"]},null),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275and"](16777216,null,null,1,null,Xi)),o["\u0275did"](6,16384,null,0,p.k,[o.ViewContainerRef,o.TemplateRef],{ngIf:[0,"ngIf"]},null),(e()(),o["\u0275ted"](-1,null,["\n "]))],function(e,t){var n=t.component;e(t,3,0,n.optionsFiltered,n.trackByOption),e(t,6,0,!n.optionsFiltered.length)},function(e,t){e(t,0,0,t.component.optionsOpened)})}function to(e){return o["\u0275vid"](0,[(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275eld"](1,0,null,null,0,"span",[],[[8,"innerHTML",1]],null,null,null,null)),(e()(),o["\u0275ted"](-1,null,["\n "]))],null,function(e,t){e(t,1,0,t.context.text)})}function no(e){return o["\u0275vid"](0,[(e()(),o["\u0275ted"](0,null,["\n ","\n "]))],null,function(e,t){e(t,0,0,t.component.noResultsFound)})}function io(e){return o["\u0275vid"](2,[o["\u0275qud"](402653184,1,{mainElRef:0}),o["\u0275qud"](671088640,2,{inputElRef:0}),o["\u0275qud"](671088640,3,{choiceMenuElRef:0}),(e()(),o["\u0275eld"](3,0,[[1,0],["main",1]],null,28,"div",[["class","ngx-select dropdown"]],[[8,"tabIndex",0]],[[null,"click"],[null,"focusin"],[null,"focus"],[null,"keydown"]],function(e,t,n){var i=!0,o=e.component;return"click"===t&&(i=!1!==o.mainClicked(n)&&i),"focusin"===t&&(i=!1!==o.mainClicked(n)&&i),"focus"===t&&(i=!1!==o.focusToInput()&&i),"keydown"===t&&(i=!1!==o.inputKeyDown(n)&&i),i},null,null)),o["\u0275did"](4,278528,null,0,p.i,[o.IterableDiffers,o.KeyValueDiffers,o.ElementRef,o.Renderer2],{klass:[0,"klass"],ngClass:[1,"ngClass"]},null),o["\u0275pod"](5,{"ngx-select_multiple form-control":0,"open show":1}),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275eld"](7,0,null,null,2,"div",[],null,null,null,null,null)),o["\u0275did"](8,278528,null,0,p.i,[o.IterableDiffers,o.KeyValueDiffers,o.ElementRef,o.Renderer2],{ngClass:[0,"ngClass"]},null),o["\u0275pod"](9,{"ngx-select__disabled":0}),(e()(),o["\u0275ted"](-1,null,["\n\n "])),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275and"](16777216,null,null,1,null,zi)),o["\u0275did"](13,16384,null,0,p.k,[o.ViewContainerRef,o.TemplateRef],{ngIf:[0,"ngIf"]},null),(e()(),o["\u0275ted"](-1,null,["\n\n "])),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275and"](16777216,null,null,1,null,qi)),o["\u0275did"](17,16384,null,0,p.k,[o.ViewContainerRef,o.TemplateRef],{ngIf:[0,"ngIf"]},null),(e()(),o["\u0275ted"](-1,null,["\n\n "])),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275and"](16777216,null,null,1,null,Gi)),o["\u0275did"](21,16384,null,0,p.k,[o.ViewContainerRef,o.TemplateRef],{ngIf:[0,"ngIf"]},null),(e()(),o["\u0275ted"](-1,null,["\n\n "])),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275and"](16777216,null,null,1,null,eo)),o["\u0275did"](25,16384,null,0,p.k,[o.ViewContainerRef,o.TemplateRef],{ngIf:[0,"ngIf"]},null),(e()(),o["\u0275ted"](-1,null,["\n\n "])),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275and"](0,[["defaultTemplateOption",2]],null,0,null,to)),(e()(),o["\u0275ted"](-1,null,["\n\n "])),(e()(),o["\u0275and"](0,[["defaultTemplateOptionNotFound",2]],null,0,null,no)),(e()(),o["\u0275ted"](-1,null,["\n\n"])),(e()(),o["\u0275ted"](-1,null,["\n"]))],function(e,t){var n=t.component;e(t,4,0,"ngx-select dropdown",n.setFormControlSize(e(t,5,0,!0===n.multiple,n.optionsOpened&&n.optionsFiltered.length),!0===n.multiple)),e(t,8,0,e(t,9,0,n.disabled)),e(t,13,0,!1===n.multiple&&(!n.optionsOpened||n.noAutoComplete)),e(t,17,0,!0===n.multiple),e(t,21,0,n.checkInputVisibility()),e(t,25,0,n.isFocused)},function(e,t){e(t,3,0,t.component.disabled?-1:0)})}var oo=function(){function e(e){this.captureService=e,this.isLink=!1,this.captureText="Capture keystroke",this.capture=new o.EventEmitter,this.record=!1,this.captureService.initModifiers(),this.captureService.populateMapping(),this.scanCodePressed=!1}return e.prototype.onKeyUp=function(e){this.scanCodePressed?(e.preventDefault(),this.scanCodePressed=!1):this.record&&!this.first&&(e.preventDefault(),this.saveScanCode())},e.prototype.onKeyDown=function(e){var t=e.keyCode;this.record?(e.preventDefault(),e.stopPropagation(),this.first=!1,this.captureService.hasMap(t)?(this.saveScanCode(this.captureService.getMap(t)),this.scanCodePressed=!0):this.captureService.setModifier(1===e.location,t)):13===t&&(this.record=!0,this.first=!0)},e.prototype.onFocusOut=function(){this.record=!1,this.reset()},e.prototype.start=function(){this.record=!0},e.prototype.saveScanCode=function(e){this.record=!1;var t=this.captureService.getModifiers(!0),n=this.captureService.getModifiers(!1);this.capture.emit({code:e,left:t,right:n}),this.reset()},e.prototype.reset=function(){this.first=!1,this.captureService.initModifiers()},e}(),ro=o["\u0275crt"]({encapsulation:0,styles:[[".link--capture-keystroke[_ngcontent-%COMP%]{padding:7px 0;text-decoration:none;border:0;width:100%}.link--capture-keystroke[_ngcontent-%COMP%]:focus{outline:0}.btn--capture-keystroke[_ngcontent-%COMP%]{display:inline-block;margin:0 0 0 .25rem}.fa-circle[_ngcontent-%COMP%]{color:#c00}"]],data:{}});function lo(e){return o["\u0275vid"](0,[(e()(),o["\u0275ted"](0,null,["\n","\n"]))],null,function(e,t){e(t,0,0,t.component.captureText)})}function uo(e){return o["\u0275vid"](0,[(e()(),o["\u0275ted"](-1,null,["\nCapturing ...\n"]))],null,null)}function ao(e){return o["\u0275vid"](2,[(e()(),o["\u0275eld"](0,0,null,null,11,"button",[["type","button"]],null,[[null,"click"]],function(e,t,n){var i=!0;return"click"===t&&(i=!1!==e.component.start()&&i),i},null,null)),o["\u0275did"](1,278528,null,0,p.i,[o.IterableDiffers,o.KeyValueDiffers,o.ElementRef,o.Renderer2],{ngClass:[0,"ngClass"]},null),o["\u0275pod"](2,{"btn btn-sm btn--capture-keystroke":0,"btn-link link--capture-keystroke":1,"btn-default":2,"btn-info":3}),(e()(),o["\u0275ted"](-1,null,["\n"])),(e()(),o["\u0275eld"](4,0,null,null,0,"i",[["class","fa fa-circle"]],null,null,null,null,null)),(e()(),o["\u0275ted"](-1,null,["\n\n"])),(e()(),o["\u0275and"](16777216,null,null,1,null,lo)),o["\u0275did"](7,16384,null,0,p.k,[o.ViewContainerRef,o.TemplateRef],{ngIf:[0,"ngIf"]},null),(e()(),o["\u0275ted"](-1,null,["\n\n"])),(e()(),o["\u0275and"](16777216,null,null,1,null,uo)),o["\u0275did"](10,16384,null,0,p.k,[o.ViewContainerRef,o.TemplateRef],{ngIf:[0,"ngIf"]},null),(e()(),o["\u0275ted"](-1,null,["\n"]))],function(e,t){var n=t.component;e(t,1,0,e(t,2,0,!n.isLink,n.isLink,!n.record&&!n.isLink,n.record&&!n.isLink)),e(t,7,0,!n.record),e(t,10,0,n.record)},null)}var so=function(){return function(){this.validAction=new o.EventEmitter}}(),co=function(e){function t(t){var n=e.call(this)||this;return n.mapper=t,n.leftModifiers=["LShift","LCtrl",t.getOsSpecificText("LSuper"),t.getOsSpecificText("LAlt")],n.rightModifiers=["RShift","RCtrl",t.getOsSpecificText("RSuper"),t.getOsSpecificText("RAlt")],n.scanCodeGroups=[{id:"0",text:"None"}],n.scanCodeGroups=n.scanCodeGroups.concat(ze.SCANCODES),n.secondaryRoleGroups=ze.SECONDARY_ROLES,n.leftModifierSelects=Array(n.leftModifiers.length).fill(!1),n.rightModifierSelects=Array(n.rightModifiers.length).fill(!1),n.selectedScancodeOption=n.scanCodeGroups[0],n.selectedSecondaryRoleIndex=-1,n}return Object(Ci.__extends)(t,e),t.prototype.ngOnChanges=function(){this.fromKeyAction(this.defaultKeyAction),this.validAction.emit(this.keyActionValid())},t.prototype.keyActionValid=function(e){return e||(e=this.toKeyAction()),!!e&&(e.scancode>0||e.modifierMask>0)},t.prototype.onKeysCapture=function(e){this.selectedScancodeOption=e.code?this.findScancodeOptionByScancode(e.code,ze.KeystrokeType.basic):this.scanCodeGroups[0],this.leftModifierSelects=e.left,this.rightModifierSelects=e.right,this.validAction.emit(this.keyActionValid())},t.prototype.fromKeyAction=function(e){if(!(e instanceof ze.KeystrokeAction))return!1;var t=e;this.selectedScancodeOption=this.findScancodeOptionByScancode(t.scancode||0,t.type);for(var n=this.leftModifiers.length,i=0;i>i&1);for(i=n;i>i&1)}return this.selectedSecondaryRoleIndex=void 0!==t.secondaryRoleAction?this.mapper.modifierMapper(t.secondaryRoleAction):-1,!0},t.prototype.toKeyAction=function(){var e=new ze.KeystrokeAction,t=this.toScancodeTypePair(this.selectedScancodeOption);e.scancode=t[0],e.type="media"===t[1]?e.scancode>255?ze.KeystrokeType.longMedia:ze.KeystrokeType.shortMedia:ze.KeystrokeType[t[1]],e.modifierMask=0;for(var n=this.leftModifierSelects.concat(this.rightModifierSelects).map(function(e){return e?1:0}),i=0;i0;){var i=n.shift();if(e(i)){t=i;break}i.children&&n.push.apply(n,i.children)}return t},t.prototype.findScancodeOptionById=function(e){return this.findScancodeOptionBy(function(t){return t.id===e})},t.prototype.findScancodeOptionByScancode=function(e,t){var n=t===ze.KeystrokeType.shortMedia||t===ze.KeystrokeType.longMedia?"media":ze.KeystrokeType[t];return this.findScancodeOptionBy(function(t){var i=t.additional;return!(!i||i.scancode!==e||i.type!==n)||!(i&&void 0!==i.scancode||+t.id!==e)})},t.prototype.toScancodeTypePair=function(e){return e?(e.additional?(t=e.additional.scancode,n=e.additional.type||"basic"):n="basic",void 0===t&&(t=+e.id),[t,n]):[0,"basic"];var t,n},t}(so),po=o["\u0275crt"]({encapsulation:0,styles:[["[_nghost-%COMP%]{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-orient:vertical;-webkit-box-direction:normal;-ms-flex-direction:column;flex-direction:column;position:relative}[_nghost-%COMP%] .scancode-options[_ngcontent-%COMP%]{margin-bottom:10px;margin-top:2px}[_nghost-%COMP%] .scancode-options[_ngcontent-%COMP%] > b[_ngcontent-%COMP%]{position:relative;top:2px}[_nghost-%COMP%] .scancode-options[_ngcontent-%COMP%] icon[_ngcontent-%COMP%]{display:inline-block}[_nghost-%COMP%] .modifier-options[_ngcontent-%COMP%] > b[_ngcontent-%COMP%]{position:relative;top:-9px;margin-right:4px}[_nghost-%COMP%] .modifier-options[_ngcontent-%COMP%] .btn-toolbar[_ngcontent-%COMP%]{display:inline-block}[_nghost-%COMP%] .long-press-container[_ngcontent-%COMP%]{display:-webkit-box;display:-ms-flexbox;display:flex;margin-top:3rem}[_nghost-%COMP%] .long-press-container[_ngcontent-%COMP%] > b[_ngcontent-%COMP%]{margin-right:.6em;-webkit-box-align:center;-ms-flex-align:center;align-items:center;display:-webkit-box;display:-ms-flexbox;display:flex}[_nghost-%COMP%] .long-press-container[_ngcontent-%COMP%] .secondary-role[_ngcontent-%COMP%]{width:135px}[_nghost-%COMP%] .long-press-container[_ngcontent-%COMP%] icon[_ngcontent-%COMP%]{margin-left:.6em}[_nghost-%COMP%] .setting-label.disabled[_ngcontent-%COMP%]{color:#999}[_nghost-%COMP%] .disabled-state--text[_ngcontent-%COMP%]{display:none;position:absolute;top:50%;margin-top:-4rem;color:#31708f;padding-right:40px}[_nghost-%COMP%] .disabled-state--text[_ngcontent-%COMP%] .fa[_ngcontent-%COMP%]{font-size:2.6rem;float:left;padding:1rem 1.5rem 2rem}.disabled[_nghost-%COMP%] .long-press-container[_ngcontent-%COMP%], .disabled[_nghost-%COMP%] .modifier-options[_ngcontent-%COMP%], .disabled[_nghost-%COMP%] .scancode-options[_ngcontent-%COMP%]{visibility:hidden}.disabled[_nghost-%COMP%] .disabled-state--text[_ngcontent-%COMP%]{display:block}[_nghost-%COMP%] .scancode-container[_ngcontent-%COMP%]{display:inline-block;width:200px}[_nghost-%COMP%] .secondary-role-groups-container[_ngcontent-%COMP%]{display:inline-block;width:140px}"]],data:{}});function fo(e){return o["\u0275vid"](0,[(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275eld"](1,0,null,null,9,"span",[],null,null,null,null,null)),o["\u0275did"](2,278528,null,0,p.i,[o.IterableDiffers,o.KeyValueDiffers,o.ElementRef,o.Renderer2],{ngClass:[0,"ngClass"]},null),o["\u0275pod"](3,{"indent-dropdown-item":0}),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275eld"](5,0,null,null,1,"span",[],null,null,null,null,null)),(e()(),o["\u0275ted"](6,null,["",""])),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275eld"](8,0,null,null,1,"span",[["class","scancode--searchterm"]],null,null,null,null,null)),(e()(),o["\u0275ted"](9,null,["\n ","\n "])),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275ted"](-1,null,["\n "]))],function(e,t){e(t,2,0,e(t,3,0,"0"!==t.context.$implicit.data.id))},function(e,t){e(t,6,0,t.context.$implicit.text),e(t,9,0,null==t.context.$implicit.data.additional?null:t.context.$implicit.data.additional.explanation)})}function ho(e){return o["\u0275vid"](0,[(e()(),o["\u0275eld"](0,0,null,null,1,"button",[["class","btn btn-default"],["type","button"]],[[2,"btn-primary",null]],[[null,"click"]],function(e,t,n){var i=!0;return"click"===t&&(i=!1!==e.component.toggleModifier(!1,e.context.index)&&i),i},null,null)),(e()(),o["\u0275ted"](1,null,["\n ","\n "]))],null,function(e,t){e(t,0,0,t.component.leftModifierSelects[t.context.index]),e(t,1,0,t.context.$implicit)})}function yo(e){return o["\u0275vid"](0,[(e()(),o["\u0275eld"](0,0,null,null,1,"button",[["class","btn btn-default"],["type","button"]],[[2,"btn-primary",null]],[[null,"click"]],function(e,t,n){var i=!0;return"click"===t&&(i=!1!==e.component.toggleModifier(!0,e.context.index)&&i),i},null,null)),(e()(),o["\u0275ted"](1,null,["\n ","\n "]))],null,function(e,t){e(t,0,0,t.component.rightModifierSelects[t.context.index]),e(t,1,0,t.context.$implicit)})}function mo(e){return o["\u0275vid"](0,[(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275eld"](1,0,null,null,9,"span",[],null,null,null,null,null)),o["\u0275did"](2,278528,null,0,p.i,[o.IterableDiffers,o.KeyValueDiffers,o.ElementRef,o.Renderer2],{ngClass:[0,"ngClass"]},null),o["\u0275pod"](3,{"indent-dropdown-item":0}),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275eld"](5,0,null,null,1,"span",[],null,null,null,null,null)),(e()(),o["\u0275ted"](6,null,["",""])),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275eld"](8,0,null,null,1,"span",[["class","scancode--searchterm"]],null,null,null,null,null)),(e()(),o["\u0275ted"](9,null,["\n ","\n "])),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275ted"](-1,null,["\n "]))],function(e,t){e(t,2,0,e(t,3,0,"-1"!==t.context.$implicit.data.id))},function(e,t){e(t,6,0,t.context.$implicit.text),e(t,9,0,null==t.context.$implicit.data.additional?null:t.context.$implicit.data.additional.explanation)})}function go(e){return o["\u0275vid"](0,[(e()(),o["\u0275eld"](0,0,null,null,25,"div",[["class","long-press-container"]],null,null,null,null,null)),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275eld"](2,0,null,null,1,"b",[["class","setting-label"]],null,null,null,null,null)),(e()(),o["\u0275ted"](-1,null,["Secondary role:"])),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275eld"](5,0,null,null,15,"div",[["class","secondary-role-groups-container"]],null,null,null,null,null)),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275eld"](7,0,null,null,12,"ngx-select",[["optGroupLabelField","text"],["optGroupOptionsField","children"],["optionTextField","text"],["optionValueField","id"],["size","small"]],[[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,"select"],["document","focusin"],["document","click"]],function(e,t,n){var i=!0,r=e.component;return"document:focusin"===t&&(i=!1!==o["\u0275nov"](e,8).documentClick(n)&&i),"document:click"===t&&(i=!1!==o["\u0275nov"](e,8).documentClick(n)&&i),"select"===t&&(i=!1!==r.onSecondaryRoleChange(n)&&i),i},io,Ki)),o["\u0275did"](8,2408448,null,3,Vi,[o.IterableDiffers,I.c,o.ChangeDetectorRef,[2,ji]],{items:[0,"items"],optionValueField:[1,"optionValueField"],optionTextField:[2,"optionTextField"],optGroupLabelField:[3,"optGroupLabelField"],optGroupOptionsField:[4,"optGroupOptionsField"],size:[5,"size"],autoActiveOnMouseEnter:[6,"autoActiveOnMouseEnter"]},{select:"select"}),o["\u0275qud"](335544320,4,{templateOption:0}),o["\u0275qud"](335544320,5,{templateSelectedOption:0}),o["\u0275qud"](335544320,6,{templateOptionNotFound:0}),o["\u0275prd"](1024,null,je.NG_VALUE_ACCESSOR,function(e){return[e]},[Vi]),o["\u0275did"](13,671744,null,0,je.NgModel,[[8,null],[8,null],[8,null],[2,je.NG_VALUE_ACCESSOR]],{model:[0,"model"]},null),o["\u0275prd"](2048,null,je.NgControl,null,[je.NgModel]),o["\u0275did"](15,16384,null,0,je.NgControlStatus,[je.NgControl],null,null),(e()(),o["\u0275ted"](-1,null,["\n\n "])),(e()(),o["\u0275and"](0,[[4,2]],null,1,null,mo)),o["\u0275did"](18,16384,null,0,Ri,[o.TemplateRef],null,null),(e()(),o["\u0275ted"](-1,null,["\n\n "])),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275eld"](22,0,null,null,2,"icon",[["data-placement","bottom"],["data-toggle","tooltip"],["html","true"],["maxWidth","620"],["name","question-circle"],["title","

The secondary role activates when another key gets pressed while holding this key.

\n

Let's say that the scancode is Escape and the secondary role is Mouse. Then:

\n
    \n
  • Tap this key to trigger Escape. (Primary role)
  • \n
  • Hold this key and press another key to activate the relevant key of the Mouse layer. (Secondary role)
  • \n
\n

The secondary role can be any layer or modifier.

"]],[[1,"data-placement",0]],null,null,De,we)),o["\u0275did"](23,114688,null,0,_e,[],{name:[0,"name"]},null),o["\u0275did"](24,1589248,null,0,V,[o.ElementRef,I.c],{title:[0,"title"],html:[1,"html"],maxWidth:[2,"maxWidth"]},null),(e()(),o["\u0275ted"](-1,null,["\n"]))],function(e,t){var n=t.component;e(t,8,0,n.secondaryRoleGroups,"id","text","text","children","small",!1),e(t,13,0,n.selectedSecondaryRoleIndex.toString()),e(t,23,0,"question-circle"),e(t,24,0,"

The secondary role activates when another key gets pressed while holding this key.

\n

Let's say that the scancode is Escape and the secondary role is Mouse. Then:

\n
    \n
  • Tap this key to trigger Escape. (Primary role)
  • \n
  • Hold this key and press another key to activate the relevant key of the Mouse layer. (Secondary role)
  • \n
\n

The secondary role can be any layer or modifier.

","true","620")},function(e,t){e(t,7,0,o["\u0275nov"](t,15).ngClassUntouched,o["\u0275nov"](t,15).ngClassTouched,o["\u0275nov"](t,15).ngClassPristine,o["\u0275nov"](t,15).ngClassDirty,o["\u0275nov"](t,15).ngClassValid,o["\u0275nov"](t,15).ngClassInvalid,o["\u0275nov"](t,15).ngClassPending),e(t,22,0,o["\u0275nov"](t,24).placement)})}function vo(e){return o["\u0275vid"](2,[(e()(),o["\u0275eld"](0,0,null,null,28,"div",[["class","scancode-options"]],null,null,null,null,null)),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275eld"](2,0,null,null,1,"b",[["class","setting-label"]],null,null,null,null,null)),(e()(),o["\u0275ted"](-1,null,["Scancode:"])),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275eld"](5,0,null,null,15,"div",[["class","scancode-container"]],null,null,null,null,null)),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275eld"](7,0,null,null,12,"ngx-select",[["optGroupLabelField","text"],["optGroupOptionsField","children"],["optionTextField","text"],["optionValueField","id"],["size","small"]],[[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,"select"],["document","focusin"],["document","click"]],function(e,t,n){var i=!0,r=e.component;return"document:focusin"===t&&(i=!1!==o["\u0275nov"](e,8).documentClick(n)&&i),"document:click"===t&&(i=!1!==o["\u0275nov"](e,8).documentClick(n)&&i),"select"===t&&(i=!1!==r.onScancodeChange(n)&&i),i},io,Ki)),o["\u0275did"](8,2408448,null,3,Vi,[o.IterableDiffers,I.c,o.ChangeDetectorRef,[2,ji]],{items:[0,"items"],optionValueField:[1,"optionValueField"],optionTextField:[2,"optionTextField"],optGroupLabelField:[3,"optGroupLabelField"],optGroupOptionsField:[4,"optGroupOptionsField"],size:[5,"size"],autoActiveOnMouseEnter:[6,"autoActiveOnMouseEnter"]},{select:"select"}),o["\u0275qud"](335544320,1,{templateOption:0}),o["\u0275qud"](335544320,2,{templateSelectedOption:0}),o["\u0275qud"](335544320,3,{templateOptionNotFound:0}),o["\u0275prd"](1024,null,je.NG_VALUE_ACCESSOR,function(e){return[e]},[Vi]),o["\u0275did"](13,671744,null,0,je.NgModel,[[8,null],[8,null],[8,null],[2,je.NG_VALUE_ACCESSOR]],{model:[0,"model"]},null),o["\u0275prd"](2048,null,je.NgControl,null,[je.NgModel]),o["\u0275did"](15,16384,null,0,je.NgControlStatus,[je.NgControl],null,null),(e()(),o["\u0275ted"](-1,null,["\n\n "])),(e()(),o["\u0275and"](0,[[1,2]],null,1,null,fo)),o["\u0275did"](18,16384,null,0,Ri,[o.TemplateRef],null,null),(e()(),o["\u0275ted"](-1,null,["\n\n "])),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275eld"](22,0,null,null,2,"icon",[["data-placement","bottom"],["data-toggle","tooltip"],["html","true"],["maxWidth","330"],["name","question-circle"],["title","

Looking for a non-US character? Just pick the character of the desired key according to the US layout.

\n

Let's say you're a German user and want to map the \xd6 character. You can see that on US keyboards this is the semicolon key, so choose semicolon in this dropdown.

"]],[[1,"data-placement",0]],null,null,De,we)),o["\u0275did"](23,114688,null,0,_e,[],{name:[0,"name"]},null),o["\u0275did"](24,1589248,null,0,V,[o.ElementRef,I.c],{title:[0,"title"],html:[1,"html"],maxWidth:[2,"maxWidth"]},null),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275eld"](26,0,null,null,1,"capture-keystroke-button",[["tabindex","0"]],null,[[null,"capture"],[null,"keyup"],[null,"keydown"],[null,"focusout"]],function(e,t,n){var i=!0,r=e.component;return"keyup"===t&&(i=!1!==o["\u0275nov"](e,27).onKeyUp(n)&&i),"keydown"===t&&(i=!1!==o["\u0275nov"](e,27).onKeyDown(n)&&i),"focusout"===t&&(i=!1!==o["\u0275nov"](e,27).onFocusOut()&&i),"capture"===t&&(i=!1!==r.onKeysCapture(n)&&i),i},ao,ro)),o["\u0275did"](27,49152,null,0,oo,[Nn],null,{capture:"capture"}),(e()(),o["\u0275ted"](-1,null,["\n"])),(e()(),o["\u0275ted"](-1,null,["\n"])),(e()(),o["\u0275eld"](30,0,null,null,19,"div",[["class","modifier-options"]],null,null,null,null,null)),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275eld"](32,0,null,null,1,"b",[["class","setting-label"]],null,null,null,null,null)),(e()(),o["\u0275ted"](-1,null,["Modifiers:"])),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275eld"](35,0,null,null,13,"div",[["class","btn-toolbar modifiers"]],null,null,null,null,null)),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275eld"](37,0,null,null,4,"div",[["class","btn-group btn-group-sm modifiers__left"]],null,null,null,null,null)),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275and"](16777216,null,null,1,null,ho)),o["\u0275did"](40,802816,null,0,p.j,[o.ViewContainerRef,o.TemplateRef,o.IterableDiffers],{ngForOf:[0,"ngForOf"]},null),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275eld"](43,0,null,null,4,"div",[["class","btn-group btn-group-sm modifiers__right"]],null,null,null,null,null)),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275and"](16777216,null,null,1,null,yo)),o["\u0275did"](46,802816,null,0,p.j,[o.ViewContainerRef,o.TemplateRef,o.IterableDiffers],{ngForOf:[0,"ngForOf"]},null),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275ted"](-1,null,["\n"])),(e()(),o["\u0275ted"](-1,null,["\n"])),(e()(),o["\u0275and"](16777216,null,null,1,null,go)),o["\u0275did"](52,16384,null,0,p.k,[o.ViewContainerRef,o.TemplateRef],{ngIf:[0,"ngIf"]},null),(e()(),o["\u0275ted"](-1,null,["\n\n"])),(e()(),o["\u0275eld"](54,0,null,null,9,"div",[["class","disabled-state--text"]],null,null,null,null,null)),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275eld"](56,0,null,null,0,"i",[["class","fa fa-info-circle"]],null,null,null,null,null)),(e()(),o["\u0275ted"](-1,null,["\n When a key is configured as layer switcher key, you can't assign other functions to it.\n To assign a scancode to the key, set the "])),(e()(),o["\u0275eld"](58,0,null,null,1,"em",[],null,null,null,null,null)),(e()(),o["\u0275ted"](-1,null,["Layer action"])),(e()(),o["\u0275ted"](-1,null,[" to "])),(e()(),o["\u0275eld"](61,0,null,null,1,"em",[],null,null,null,null,null)),(e()(),o["\u0275ted"](-1,null,["None"])),(e()(),o["\u0275ted"](-1,null,[".\n"])),(e()(),o["\u0275ted"](-1,null,["\n"]))],function(e,t){var n=t.component;e(t,8,0,n.scanCodeGroups,"id","text","text","children","small",!1),e(t,13,0,null==n.selectedScancodeOption?null:n.selectedScancodeOption.id),e(t,23,0,"question-circle"),e(t,24,0,"

Looking for a non-US character? Just pick the character of the desired key according to the US layout.

\n

Let's say you're a German user and want to map the \xd6 character. You can see that on US keyboards this is the semicolon key, so choose semicolon in this dropdown.

","true","330"),e(t,40,0,n.leftModifiers),e(t,46,0,n.rightModifiers),e(t,52,0,n.secondaryRoleEnabled)},function(e,t){e(t,7,0,o["\u0275nov"](t,15).ngClassUntouched,o["\u0275nov"](t,15).ngClassTouched,o["\u0275nov"](t,15).ngClassPristine,o["\u0275nov"](t,15).ngClassDirty,o["\u0275nov"](t,15).ngClassValid,o["\u0275nov"](t,15).ngClassInvalid,o["\u0275nov"](t,15).ngClassPending),e(t,22,0,o["\u0275nov"](t,24).placement)})}var bo=function(e){function t(){var t=e.call(this)||this;return t.toggleData=[{id:"active",text:"Activate"},{id:"toggle",text:"Toggle"}],t.layerData=[{id:0,text:"Mod"},{id:1,text:"Fn"},{id:2,text:"Mouse"}],t.toggle="active",t.layer=ze.LayerName.mod,t}return Object(Ci.__extends)(t,e),t.prototype.ngOnChanges=function(e){e.defaultKeyAction&&this.fromKeyAction(this.defaultKeyAction),e.currentLayer&&(this.isNotBase=this.currentLayer>0),this.validAction.emit(!0)},t.prototype.keyActionValid=function(){return!this.isNotBase},t.prototype.fromKeyAction=function(e){if(!(e instanceof ze.SwitchLayerAction))return!1;var t=e;switch(t.switchLayerMode){case ze.SwitchLayerMode.holdAndDoubleTapToggle:this.toggle="active",this.lockLayerWhenDoubleTapping=!0;break;case ze.SwitchLayerMode.hold:this.toggle="active",this.lockLayerWhenDoubleTapping=!1;break;default:this.toggle="toggle",this.lockLayerWhenDoubleTapping=!1}return this.layer=t.layer,!0},t.prototype.toKeyAction=function(){var e=new ze.SwitchLayerAction;if(e.switchLayerMode="toggle"===this.toggle?ze.SwitchLayerMode.toggle:!this.allowLayerDoubleTap||this.lockLayerWhenDoubleTapping?ze.SwitchLayerMode.holdAndDoubleTapToggle:ze.SwitchLayerMode.hold,e.layer=this.layer,!this.keyActionValid())throw new Error("KeyAction is invalid!");return e},t.prototype.toggleChanged=function(e){this.toggle=e},t.prototype.layerChanged=function(e){this.layer=+e},t}(so),ko=o["\u0275crt"]({encapsulation:0,styles:[["[_nghost-%COMP%]{display:-webkit-box;display:-ms-flexbox;display:flex;margin:0 -5px}.no-base[_nghost-%COMP%]{-webkit-box-pack:center;-ms-flex-pack:center;justify-content:center}[_nghost-%COMP%] > select[_ngcontent-%COMP%], [_nghost-%COMP%] > span[_ngcontent-%COMP%]{margin:0 5px;display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-align:center;-ms-flex-align:center;align-items:center}select[_ngcontent-%COMP%]{background-color:#fff;border:1px solid #aaa;border-radius:4px;padding:4px 20px 4px 8px}"]],data:{}});function _o(e){return o["\u0275vid"](0,[(e()(),o["\u0275eld"](0,0,null,null,3,"option",[],[[8,"selected",0]],null,null,null,null)),o["\u0275did"](1,147456,null,0,je.NgSelectOption,[o.ElementRef,o.Renderer2,[8,null]],{value:[0,"value"]},null),o["\u0275did"](2,147456,null,0,je["\u0275q"],[o.ElementRef,o.Renderer2,[8,null]],{value:[0,"value"]},null),(e()(),o["\u0275ted"](3,null,["\n ","\n "]))],function(e,t){e(t,1,0,t.context.$implicit.id),e(t,2,0,t.context.$implicit.id)},function(e,t){e(t,0,0,t.component.toggle===t.context.$implicit.id),e(t,3,0,t.context.$implicit.text)})}function wo(e){return o["\u0275vid"](0,[(e()(),o["\u0275eld"](0,0,null,null,3,"option",[],[[8,"selected",0]],null,null,null,null)),o["\u0275did"](1,147456,null,0,je.NgSelectOption,[o.ElementRef,o.Renderer2,[8,null]],{value:[0,"value"]},null),o["\u0275did"](2,147456,null,0,je["\u0275q"],[o.ElementRef,o.Renderer2,[8,null]],{value:[0,"value"]},null),(e()(),o["\u0275ted"](3,null,["\n ","\n "]))],function(e,t){e(t,1,0,t.context.$implicit.id),e(t,2,0,t.context.$implicit.id)},function(e,t){e(t,0,0,t.component.layer===t.context.$implicit.id),e(t,3,0,t.context.$implicit.text)})}function Ao(e){return o["\u0275vid"](0,[(e()(),o["\u0275ted"](-1,null,["layer by tapping this key."]))],null,null)}function To(e){return o["\u0275vid"](0,[(e()(),o["\u0275ted"](-1,null,["layer by holding this key."]))],null,null)}function Co(e){return o["\u0275vid"](0,[(e()(),o["\u0275eld"](0,0,null,null,14,"div",[],null,null,null,null,null)),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275eld"](2,0,null,null,11,"div",[["class","checkbox"]],null,null,null,null,null)),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275eld"](4,0,null,null,8,"label",[],null,null,null,null,null)),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275eld"](6,0,null,null,5,"input",[["type","checkbox"]],[[2,"ng-untouched",null],[2,"ng-touched",null],[2,"ng-pristine",null],[2,"ng-dirty",null],[2,"ng-valid",null],[2,"ng-invalid",null],[2,"ng-pending",null]],[[null,"ngModelChange"],[null,"change"],[null,"blur"]],function(e,t,n){var i=!0,r=e.component;return"change"===t&&(i=!1!==o["\u0275nov"](e,7).onChange(n.target.checked)&&i),"blur"===t&&(i=!1!==o["\u0275nov"](e,7).onTouched()&&i),"ngModelChange"===t&&(i=!1!==(r.lockLayerWhenDoubleTapping=n)&&i),i},null,null)),o["\u0275did"](7,16384,null,0,je.CheckboxControlValueAccessor,[o.Renderer2,o.ElementRef],null,null),o["\u0275prd"](1024,null,je.NG_VALUE_ACCESSOR,function(e){return[e]},[je.CheckboxControlValueAccessor]),o["\u0275did"](9,671744,null,0,je.NgModel,[[8,null],[8,null],[8,null],[2,je.NG_VALUE_ACCESSOR]],{model:[0,"model"]},{update:"ngModelChange"}),o["\u0275prd"](2048,null,je.NgControl,null,[je.NgModel]),o["\u0275did"](11,16384,null,0,je.NgControlStatus,[je.NgControl],null,null),(e()(),o["\u0275ted"](-1,null,[" Lock layer when double tapping this key.\n "])),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275ted"](-1,null,["\n "]))],function(e,t){e(t,9,0,t.component.lockLayerWhenDoubleTapping)},function(e,t){e(t,6,0,o["\u0275nov"](t,11).ngClassUntouched,o["\u0275nov"](t,11).ngClassTouched,o["\u0275nov"](t,11).ngClassPristine,o["\u0275nov"](t,11).ngClassDirty,o["\u0275nov"](t,11).ngClassValid,o["\u0275nov"](t,11).ngClassInvalid,o["\u0275nov"](t,11).ngClassPending)})}function xo(e){return o["\u0275vid"](0,[(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275eld"](1,0,null,null,32,"div",[],null,null,null,null,null)),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275eld"](3,0,null,null,26,"div",[],null,null,null,null,null)),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275eld"](5,0,null,null,4,"select",[],null,[[null,"change"]],function(e,t,n){var i=!0;return"change"===t&&(i=!1!==e.component.toggleChanged(n.target.value)&&i),i},null,null)),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275and"](16777216,null,null,1,null,_o)),o["\u0275did"](8,802816,null,0,p.j,[o.ViewContainerRef,o.TemplateRef,o.IterableDiffers],{ngForOf:[0,"ngForOf"]},null),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275eld"](11,0,null,null,1,"span",[],null,null,null,null,null)),(e()(),o["\u0275ted"](-1,null,["the"])),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275eld"](14,0,null,null,4,"select",[],null,[[null,"change"]],function(e,t,n){var i=!0;return"change"===t&&(i=!1!==e.component.layerChanged(n.target.value)&&i),i},null,null)),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275and"](16777216,null,null,1,null,wo)),o["\u0275did"](17,802816,null,0,p.j,[o.ViewContainerRef,o.TemplateRef,o.IterableDiffers],{ngForOf:[0,"ngForOf"]},null),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275eld"](20,0,null,null,8,"span",[],null,null,null,null,null)),o["\u0275did"](21,16384,null,0,p.n,[],{ngSwitch:[0,"ngSwitch"]},null),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275and"](16777216,null,null,1,null,Ao)),o["\u0275did"](24,278528,null,0,p.o,[o.ViewContainerRef,o.TemplateRef,p.n],{ngSwitchCase:[0,"ngSwitchCase"]},null),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275and"](16777216,null,null,1,null,To)),o["\u0275did"](27,16384,null,0,p.p,[o.ViewContainerRef,o.TemplateRef,p.n],null,null),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275and"](16777216,null,null,1,null,Co)),o["\u0275did"](32,16384,null,0,p.k,[o.ViewContainerRef,o.TemplateRef],{ngIf:[0,"ngIf"]},null),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275ted"](-1,null,["\n"]))],function(e,t){var n=t.component;e(t,8,0,n.toggleData),e(t,17,0,n.layerData),e(t,21,0,n.toggle),e(t,24,0,"toggle"),e(t,32,0,"active"===n.toggle&&n.allowLayerDoubleTap)},null)}function Oo(e){return o["\u0275vid"](0,[(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275eld"](1,0,null,null,1,"span",[],null,null,null,null,null)),(e()(),o["\u0275ted"](-1,null,[" Layer switching is only possible from the base layer. "])),(e()(),o["\u0275ted"](-1,null,["\n"]))],null,null)}function So(e){return o["\u0275vid"](2,[(e()(),o["\u0275and"](16777216,null,null,1,null,xo)),o["\u0275did"](1,16384,null,0,p.k,[o.ViewContainerRef,o.TemplateRef],{ngIf:[0,"ngIf"]},null),(e()(),o["\u0275ted"](-1,null,["\n"])),(e()(),o["\u0275and"](16777216,null,null,1,null,Oo)),o["\u0275did"](4,16384,null,0,p.k,[o.ViewContainerRef,o.TemplateRef],{ngIf:[0,"ngIf"]},null),(e()(),o["\u0275ted"](-1,null,["\n"]))],function(e,t){var n=t.component;e(t,1,0,!n.isNotBase),e(t,4,0,n.isNotBase)},null)}var Mo=function(e){function t(){var t=e.call(this)||this;return t.MouseActionParam=ze.MouseActionParam,t.selectedPageIndex=0,t.pages=["Move","Scroll","Click","Speed"],t}return Object(Ci.__extends)(t,e),t.prototype.ngOnChanges=function(){this.fromKeyAction(this.defaultKeyAction),this.validAction.emit(this.keyActionValid())},t.prototype.keyActionValid=function(){return void 0!==this.mouseActionParam},t.prototype.fromKeyAction=function(e){if(!(e instanceof ze.MouseAction))return!1;var t=e;switch(this.mouseActionParam=t.mouseAction,t.mouseAction===ze.MouseActionParam.moveUp&&(this.selectedPageIndex=0),t.mouseAction){case ze.MouseActionParam.moveDown:case ze.MouseActionParam.moveUp:case ze.MouseActionParam.moveLeft:case ze.MouseActionParam.moveRight:this.selectedPageIndex=0;break;case ze.MouseActionParam.scrollDown:case ze.MouseActionParam.scrollUp:case ze.MouseActionParam.scrollLeft:case ze.MouseActionParam.scrollRight:this.selectedPageIndex=1;break;case ze.MouseActionParam.leftClick:case ze.MouseActionParam.middleClick:case ze.MouseActionParam.rightClick:this.selectedPageIndex=2;break;case ze.MouseActionParam.decelerate:case ze.MouseActionParam.accelerate:this.selectedPageIndex=3;break;default:return!1}return!0},t.prototype.toKeyAction=function(){var e=new ze.MouseAction;return e.mouseAction=this.mouseActionParam,e},t.prototype.changePage=function(e){e<-1||e>3?console.error("Invalid index error: "+e):(this.selectedPageIndex=e,this.mouseActionParam=void 0,this.validAction.emit(!1))},t.prototype.setMouseActionParam=function(e){this.mouseActionParam=e,this.validAction.emit(!0)},t}(so),Eo=o["\u0275crt"]({encapsulation:0,styles:[["[_nghost-%COMP%]{display:-webkit-box;display:-ms-flexbox;display:flex}.popover-content[_nghost-%COMP%]{padding:10px;display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-align:center;-ms-flex-align:center;align-items:center}[_nghost-%COMP%] .mouse-action[_ngcontent-%COMP%] .nav[_ngcontent-%COMP%]{border-right:1px solid #ccc}[_nghost-%COMP%] .mouse-action[_ngcontent-%COMP%] .nav[_ngcontent-%COMP%] li[_ngcontent-%COMP%] a[_ngcontent-%COMP%]{border-top-right-radius:0;border-bottom-right-radius:0}[_nghost-%COMP%] .mouse-action[_ngcontent-%COMP%] .nav[_ngcontent-%COMP%] li[_ngcontent-%COMP%] a.selected[_ngcontent-%COMP%]{font-style:italic}[_nghost-%COMP%] .mouse-action[_ngcontent-%COMP%] .nav[_ngcontent-%COMP%] li.active[_ngcontent-%COMP%] a.selected[_ngcontent-%COMP%]{font-style:normal}[_nghost-%COMP%] .mouse-action[_ngcontent-%COMP%] .nav[_ngcontent-%COMP%] li.active[_ngcontent-%COMP%] a[_ngcontent-%COMP%]:after{content:'';display:block;position:absolute;width:0;height:0;top:0;right:-4rem;border-color:transparent transparent transparent #337ab7;border-style:solid;border-width:2rem}[_nghost-%COMP%] .details[_ngcontent-%COMP%] .btn-placeholder[_ngcontent-%COMP%]{visibility:hidden}.mouse__config--speed[_ngcontent-%COMP%] .btn-default[_ngcontent-%COMP%]{font-size:25px;line-height:22px;padding-top:4px;padding-bottom:4px}.mouse__config--speed[_ngcontent-%COMP%] .btn-default[_ngcontent-%COMP%] span[_ngcontent-%COMP%]{font-size:13px;display:block;text-align:center}"]],data:{}});function Po(e){return o["\u0275vid"](0,[(e()(),o["\u0275eld"](0,0,null,null,4,"li",[],[[2,"active",null]],[[null,"click"]],function(e,t,n){var i=!0;return"click"===t&&(i=!1!==e.component.changePage(e.context.index)&&i),i},null,null)),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275eld"](2,0,null,null,1,"a",[],null,null,null,null,null)),(e()(),o["\u0275ted"](3,null,[" ",""])),(e()(),o["\u0275ted"](-1,null,["\n "]))],null,function(e,t){e(t,0,0,t.component.selectedPageIndex===t.context.index),e(t,3,0,t.context.$implicit)})}function Io(e){return o["\u0275vid"](0,[(e()(),o["\u0275eld"](0,0,null,null,35,"div",[["class","mouse__config mouse__config--move text-center"]],null,null,null,null,null)),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275eld"](2,0,null,null,6,"div",[["class","row"]],null,null,null,null,null)),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275eld"](4,0,null,null,3,"button",[["class","btn btn-default btn-lg"],["type","button"]],[[2,"btn-primary",null]],[[null,"click"]],function(e,t,n){var i=!0,o=e.component;return"click"===t&&(i=!1!==o.setMouseActionParam(o.MouseActionParam.moveUp)&&i),i},null,null)),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275eld"](6,0,null,null,0,"i",[["class","fa fa-arrow-up"]],null,null,null,null,null)),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275eld"](10,0,null,null,16,"div",[["class","row"]],null,null,null,null,null)),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275eld"](12,0,null,null,3,"button",[["class","btn btn-default btn-lg"],["type","button"]],[[2,"btn-primary",null]],[[null,"click"]],function(e,t,n){var i=!0,o=e.component;return"click"===t&&(i=!1!==o.setMouseActionParam(o.MouseActionParam.moveLeft)&&i),i},null,null)),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275eld"](14,0,null,null,0,"i",[["class","fa fa-arrow-left"]],null,null,null,null,null)),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275eld"](17,0,null,null,3,"button",[["class","btn btn-default btn-lg btn-placeholder"],["type","button"]],null,null,null,null,null)),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275eld"](19,0,null,null,0,"i",[["class","fa fa-square"]],null,null,null,null,null)),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275eld"](22,0,null,null,3,"button",[["class","btn btn-default btn-lg"],["type","button"]],[[2,"btn-primary",null]],[[null,"click"]],function(e,t,n){var i=!0,o=e.component;return"click"===t&&(i=!1!==o.setMouseActionParam(o.MouseActionParam.moveRight)&&i),i},null,null)),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275eld"](24,0,null,null,0,"i",[["class","fa fa-arrow-right"]],null,null,null,null,null)),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275eld"](28,0,null,null,6,"div",[["class","row"]],null,null,null,null,null)),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275eld"](30,0,null,null,3,"button",[["class","btn btn-default btn-lg"],["type","button"]],[[2,"btn-primary",null]],[[null,"click"]],function(e,t,n){var i=!0,o=e.component;return"click"===t&&(i=!1!==o.setMouseActionParam(o.MouseActionParam.moveDown)&&i),i},null,null)),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275eld"](32,0,null,null,0,"i",[["class","fa fa-arrow-down"]],null,null,null,null,null)),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275ted"](-1,null,["\n "]))],null,function(e,t){var n=t.component;e(t,4,0,n.mouseActionParam===n.MouseActionParam.moveUp),e(t,12,0,n.mouseActionParam===n.MouseActionParam.moveLeft),e(t,22,0,n.mouseActionParam===n.MouseActionParam.moveRight),e(t,30,0,n.mouseActionParam===n.MouseActionParam.moveDown)})}function Ro(e){return o["\u0275vid"](0,[(e()(),o["\u0275eld"](0,0,null,null,35,"div",[["class","mouse__config mouse__config--scroll text-center"]],null,null,null,null,null)),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275eld"](2,0,null,null,6,"div",[["class","row"]],null,null,null,null,null)),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275eld"](4,0,null,null,3,"button",[["class","btn btn-default btn-lg"],["type","button"]],[[2,"btn-primary",null]],[[null,"click"]],function(e,t,n){var i=!0,o=e.component;return"click"===t&&(i=!1!==o.setMouseActionParam(o.MouseActionParam.scrollUp)&&i),i},null,null)),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275eld"](6,0,null,null,0,"i",[["class","fa fa-angle-double-up"]],null,null,null,null,null)),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275eld"](10,0,null,null,16,"div",[["class","row"]],null,null,null,null,null)),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275eld"](12,0,null,null,3,"button",[["class","btn btn-default btn-lg"],["type","button"]],[[2,"btn-primary",null]],[[null,"click"]],function(e,t,n){var i=!0,o=e.component;return"click"===t&&(i=!1!==o.setMouseActionParam(o.MouseActionParam.scrollLeft)&&i),i},null,null)),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275eld"](14,0,null,null,0,"i",[["class","fa fa-angle-double-left"]],null,null,null,null,null)),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275eld"](17,0,null,null,3,"button",[["class","btn btn-default btn-lg btn-placeholder"],["type","button"]],null,null,null,null,null)),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275eld"](19,0,null,null,0,"i",[["class","fa fa-square"]],null,null,null,null,null)),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275eld"](22,0,null,null,3,"button",[["class","btn btn-default btn-lg"],["type","button"]],[[2,"btn-primary",null]],[[null,"click"]],function(e,t,n){var i=!0,o=e.component;return"click"===t&&(i=!1!==o.setMouseActionParam(o.MouseActionParam.scrollRight)&&i),i},null,null)),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275eld"](24,0,null,null,0,"i",[["class","fa fa-angle-double-right"]],null,null,null,null,null)),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275eld"](28,0,null,null,6,"div",[["class","row"]],null,null,null,null,null)),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275eld"](30,0,null,null,3,"button",[["class","btn btn-default btn-lg"],["type","button"]],[[2,"btn-primary",null]],[[null,"click"]],function(e,t,n){var i=!0,o=e.component;return"click"===t&&(i=!1!==o.setMouseActionParam(o.MouseActionParam.scrollDown)&&i),i},null,null)),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275eld"](32,0,null,null,0,"i",[["class","fa fa-angle-double-down"]],null,null,null,null,null)),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275ted"](-1,null,["\n "]))],null,function(e,t){var n=t.component;e(t,4,0,n.mouseActionParam===n.MouseActionParam.scrollUp),e(t,12,0,n.mouseActionParam===n.MouseActionParam.scrollLeft),e(t,22,0,n.mouseActionParam===n.MouseActionParam.scrollRight),e(t,30,0,n.mouseActionParam===n.MouseActionParam.scrollDown)})}function Do(e){return o["\u0275vid"](0,[(e()(),o["\u0275eld"](0,0,null,null,13,"div",[["class","mouse__config mouse__config--click"]],null,null,null,null,null)),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275eld"](2,0,null,null,10,"div",[["class","btn-group col-xs-12"],["role","group"]],null,null,null,null,null)),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275eld"](4,0,null,null,1,"button",[["class","btn btn-default col-xs-4"],["type","button"]],[[2,"btn-primary",null]],[[null,"click"]],function(e,t,n){var i=!0,o=e.component;return"click"===t&&(i=!1!==o.setMouseActionParam(o.MouseActionParam.leftClick)&&i),i},null,null)),(e()(),o["\u0275ted"](-1,null,["Left"])),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275eld"](7,0,null,null,1,"button",[["class","btn btn-default col-xs-4"],["type","button"]],[[2,"btn-primary",null]],[[null,"click"]],function(e,t,n){var i=!0,o=e.component;return"click"===t&&(i=!1!==o.setMouseActionParam(o.MouseActionParam.middleClick)&&i),i},null,null)),(e()(),o["\u0275ted"](-1,null,["Middle"])),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275eld"](10,0,null,null,1,"button",[["class","btn btn-default col-xs-4"],["type","button"]],[[2,"btn-primary",null]],[[null,"click"]],function(e,t,n){var i=!0,o=e.component;return"click"===t&&(i=!1!==o.setMouseActionParam(o.MouseActionParam.rightClick)&&i),i},null,null)),(e()(),o["\u0275ted"](-1,null,["Right"])),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275ted"](-1,null,["\n "]))],null,function(e,t){var n=t.component;e(t,4,0,n.mouseActionParam===n.MouseActionParam.leftClick),e(t,7,0,n.mouseActionParam===n.MouseActionParam.middleClick),e(t,10,0,n.mouseActionParam===n.MouseActionParam.rightClick)})}function No(e){return o["\u0275vid"](0,[(e()(),o["\u0275eld"](0,0,null,null,22,"div",[["class","mouse__config mouse__config--speed text-center"]],null,null,null,null,null)),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275eld"](2,0,null,null,4,"div",[["class","help-text--mouse-speed text-left"]],null,null,null,null,null)),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275eld"](4,0,null,null,1,"p",[],null,null,null,null,null)),(e()(),o["\u0275ted"](-1,null,["Press this key along with mouse movement/scrolling to accelerate/decelerate its speed."])),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275eld"](8,0,null,null,13,"div",[["class","btn-group btn-group-lg"],["role","group"]],null,null,null,null,null)),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275eld"](10,0,null,null,4,"button",[["class","btn btn-default"]],[[2,"btn-primary",null]],[[null,"click"]],function(e,t,n){var i=!0,o=e.component;return"click"===t&&(i=!1!==o.setMouseActionParam(o.MouseActionParam.decelerate)&&i),i},null,null)),(e()(),o["\u0275ted"](-1,null,["\n -\n "])),(e()(),o["\u0275eld"](12,0,null,null,1,"span",[],null,null,null,null,null)),(e()(),o["\u0275ted"](-1,null,["Decelerate"])),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275eld"](16,0,null,null,4,"button",[["class","btn btn-default"]],[[2,"btn-primary",null]],[[null,"click"]],function(e,t,n){var i=!0,o=e.component;return"click"===t&&(i=!1!==o.setMouseActionParam(o.MouseActionParam.accelerate)&&i),i},null,null)),(e()(),o["\u0275ted"](-1,null,["\n +\n "])),(e()(),o["\u0275eld"](18,0,null,null,1,"span",[],null,null,null,null,null)),(e()(),o["\u0275ted"](-1,null,["Accelerate"])),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275ted"](-1,null,["\n "]))],null,function(e,t){var n=t.component;e(t,10,0,n.mouseActionParam===n.MouseActionParam.decelerate),e(t,16,0,n.mouseActionParam===n.MouseActionParam.accelerate)})}function jo(e){return o["\u0275vid"](0,[(e()(),o["\u0275eld"](0,0,null,null,1,"div",[],null,null,null,null,null)),(e()(),o["\u0275ted"](-1,null,["\n "]))],null,null)}function Lo(e){return o["\u0275vid"](2,[(e()(),o["\u0275eld"](0,0,null,null,7,"div",[["class","mouse-action col-sm-4"]],null,null,null,null,null)),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275eld"](2,0,null,null,4,"ul",[["class","nav nav-pills nav-stacked"]],null,null,null,null,null)),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275and"](16777216,null,null,1,null,Po)),o["\u0275did"](5,802816,null,0,p.j,[o.ViewContainerRef,o.TemplateRef,o.IterableDiffers],{ngForOf:[0,"ngForOf"]},null),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275ted"](-1,null,["\n"])),(e()(),o["\u0275ted"](-1,null,["\n"])),(e()(),o["\u0275eld"](9,0,null,null,17,"div",[["class","details col-sm-8"]],null,null,null,null,null)),o["\u0275did"](10,16384,null,0,p.n,[],{ngSwitch:[0,"ngSwitch"]},null),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275and"](16777216,null,null,1,null,Io)),o["\u0275did"](13,278528,null,0,p.o,[o.ViewContainerRef,o.TemplateRef,p.n],{ngSwitchCase:[0,"ngSwitchCase"]},null),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275and"](16777216,null,null,1,null,Ro)),o["\u0275did"](16,278528,null,0,p.o,[o.ViewContainerRef,o.TemplateRef,p.n],{ngSwitchCase:[0,"ngSwitchCase"]},null),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275and"](16777216,null,null,1,null,Do)),o["\u0275did"](19,278528,null,0,p.o,[o.ViewContainerRef,o.TemplateRef,p.n],{ngSwitchCase:[0,"ngSwitchCase"]},null),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275and"](16777216,null,null,1,null,No)),o["\u0275did"](22,278528,null,0,p.o,[o.ViewContainerRef,o.TemplateRef,p.n],{ngSwitchCase:[0,"ngSwitchCase"]},null),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275and"](16777216,null,null,1,null,jo)),o["\u0275did"](25,16384,null,0,p.p,[o.ViewContainerRef,o.TemplateRef,p.n],null,null),(e()(),o["\u0275ted"](-1,null,["\n"]))],function(e,t){var n=t.component;e(t,5,0,n.pages),e(t,10,0,n.selectedPageIndex),e(t,13,0,0),e(t,16,0,1),e(t,19,0,2),e(t,22,0,3)},null)}var Uo=["[_nghost-%COMP%]{display:block;width:100%}.action--editor[_ngcontent-%COMP%]{padding-top:0;padding-bottom:0;border-radius:0;border:0}.nav[_ngcontent-%COMP%]{padding-bottom:1rem}.nav[_ngcontent-%COMP%] li[_ngcontent-%COMP%] a[_ngcontent-%COMP%]{border-top-right-radius:0;border-bottom-right-radius:0;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.nav[_ngcontent-%COMP%] li[_ngcontent-%COMP%] a.selected[_ngcontent-%COMP%]{font-style:italic}.nav[_ngcontent-%COMP%] li[_ngcontent-%COMP%] a[_ngcontent-%COMP%]:hover{cursor:pointer}.nav[_ngcontent-%COMP%] li.active[_ngcontent-%COMP%]{z-index:2}.nav[_ngcontent-%COMP%] li.active[_ngcontent-%COMP%] a.selected[_ngcontent-%COMP%]{font-style:normal}.nav[_ngcontent-%COMP%] li.active[_ngcontent-%COMP%] a[_ngcontent-%COMP%]:after{content:'';display:block;position:absolute;width:0;height:0;top:0;right:-4rem;border-color:transparent transparent transparent #337ab7;border-style:solid;border-width:2rem}.editor__tab-links[_ngcontent-%COMP%], .editor__tabs[_ngcontent-%COMP%]{padding-top:1rem}.editor__tabs[_ngcontent-%COMP%]{border-left:1px solid #ddd;margin-left:-1.6rem;padding-left:3rem}.editor__actions[_ngcontent-%COMP%]{float:right}.editor__actions-container[_ngcontent-%COMP%]{background:#f5f5f5;border-top:1px solid #ddd;border-bottom:1px solid #ddd;padding:1rem 1.5rem}.flex-button-wrapper[_ngcontent-%COMP%]{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-orient:horizontal;-webkit-box-direction:reverse;-ms-flex-direction:row-reverse;flex-direction:row-reverse}.flex-button[_ngcontent-%COMP%]{-ms-flex-item-align:end;align-self:flex-end}"],Vo=function(){return function(){var e=this;this.valid=new o.EventEmitter,this.validate=function(){return e.valid.emit(e.isMacroValid())}}}(),Fo=/[^\x00-\x7F]/g,Ko=function(e){function t(t){var n=e.call(this)||this;return n.renderer=t,n.isMacroValid=function(){return!!n.input.nativeElement.value},n.init=function(){n.macroAction||(n.macroAction=new ze.TextMacroAction)},n}return Object(Ci.__extends)(t,e),t.prototype.ngOnInit=function(){this.init()},t.prototype.ngAfterViewInit=function(){this.renderer.invokeElementMethod(this.input.nativeElement,"focus")},t.prototype.onTextChange=function(){this.init(),this.macroAction.text=this.input.nativeElement.value},t.prototype.onKeydown=function(e){new RegExp(Fo).test(e.key)&&(e.preventDefault(),e.stopPropagation())},t.prototype.onPaste=function(e){e.preventDefault();var t=this.input.nativeElement,n=e.clipboardData.getData("text/plain"),i=n&&n.replace(Fo,"")||"";if(0!==i.length){var o=t.value||"",r=o.substr(0,t.selectionStart),l=t.selectionEnd,u=o.substr(t.selectionEnd);t.value=r+i+u,t.selectionStart=t.selectionEnd=l+i.length-(0===l?0:1),this.macroAction.text=t.value}},t}(Vo),Bo=o["\u0275crt"]({encapsulation:0,styles:[["[_nghost-%COMP%]{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-orient:vertical;-webkit-box-direction:normal;-ms-flex-direction:column;flex-direction:column;position:relative}.macro__text-input[_ngcontent-%COMP%]{width:100%;min-height:10rem;margin-bottom:1rem}"]],data:{}});function Ho(e){return o["\u0275vid"](0,[o["\u0275qud"](402653184,1,{input:0}),(e()(),o["\u0275eld"](1,0,null,null,7,"div",[],null,null,null,null,null)),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275eld"](3,0,null,null,1,"h4",[],null,null,null,null,null)),(e()(),o["\u0275ted"](-1,null,["Type text"])),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275eld"](6,0,[[1,0],["macroTextInput",1]],null,1,"textarea",[["class","macro__text-input"],["name","macro-text"]],null,[[null,"keydown"],[null,"change"],[null,"keyup"],[null,"paste"]],function(e,t,n){var i=!0,o=e.component;return"keydown"===t&&(i=!1!==o.onKeydown(n)&&i),"change"===t&&(i=!1!==o.onTextChange()&&i),"keyup"===t&&(i=!1!==o.validate()&&i),"paste"===t&&(i=!1!==o.onPaste(n)&&i),i},null,null)),(e()(),o["\u0275ted"](7,null,["",""])),(e()(),o["\u0275ted"](-1,null,["\n"])),(e()(),o["\u0275ted"](-1,null,["\n"]))],null,function(e,t){var n=t.component;e(t,7,0,null==n.macroAction?null:n.macroAction.text)})}var Wo=function(e){function t(){var t=e.call(this)||this;return t.keymapOptions=[],t}return Object(Ci.__extends)(t,e),t.prototype.ngOnChanges=function(e){e.keymaps&&(this.keymapOptions=this.keymaps.map(function(e){return{id:e.abbreviation,text:e.name}}),this.keymaps.length>0&&(this.selectedKeymap=this.keymaps[0])),this.fromKeyAction(this.defaultKeyAction),this.validAction.emit(!0)},t.prototype.onChange=function(e){this.selectedKeymap="-1"===e?void 0:this.keymaps.find(function(t){return t.abbreviation===e})},t.prototype.keyActionValid=function(){return!!this.selectedKeymap},t.prototype.fromKeyAction=function(e){if(!(e instanceof ze.SwitchKeymapAction))return!1;var t=e;this.selectedKeymap=this.keymaps.find(function(e){return e.abbreviation===t.keymapAbbreviation})},t.prototype.toKeyAction=function(){if(!this.keyActionValid())throw new Error("KeyAction is not valid. No selected keymap!");var e=new ze.SwitchKeymapAction;return e.keymapAbbreviation=this.selectedKeymap.abbreviation,e},t}(so),zo=function(e){function t(t){var n=e.call(this)||this;return n.subscription=t.let(Object(jn.d)()).subscribe(function(e){return n.macros=e}),n.macroOptions=[],n.selectedMacroIndex=0,n}return Object(Ci.__extends)(t,e),t.prototype.ngOnInit=function(){this.macroOptions=this.macros.map(function(e,t){return{id:t.toString(),text:e.name}})},t.prototype.ngOnChanges=function(){this.fromKeyAction(this.defaultKeyAction),this.validAction.emit(!0)},t.prototype.onChange=function(e){this.selectedMacroIndex=+e},t.prototype.keyActionValid=function(){return this.selectedMacroIndex>=0},t.prototype.fromKeyAction=function(e){if(!(e instanceof ze.PlayMacroAction))return!1;var t=e;return this.selectedMacroIndex=this.macros.findIndex(function(e){return t.macroId===e.id}),!0},t.prototype.toKeyAction=function(){if(!this.keyActionValid())throw new Error("KeyAction is not valid. No selected macro!");var e=new ze.PlayMacroAction;return e.macroId=this.macros[this.selectedMacroIndex].id,e},t.prototype.ngOnDestroy=function(){this.subscription.unsubscribe()},t}(so),$o=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Object(Ci.__extends)(t,e),t.prototype.ngOnInit=function(){this.validAction.emit(!0)},t.prototype.keyActionValid=function(){return!0},t.prototype.fromKeyAction=function(){return!1},t.prototype.toKeyAction=function(){},t}(so),qo=function(e){return e[e.Tap=0]="Tap",e[e.Press=1]="Press",e[e.Release=2]="Release",e}({}),Go=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.TabName=qo,t.isMacroValid=function(){var e=t.getKeyMacroAction();return!!e.scancode||!!e.modifierMask},t}return Object(Ci.__extends)(t,e),t.prototype.ngOnInit=function(){this.macroAction||(this.macroAction=new ze.KeyMacroAction),this.defaultKeyAction=new ze.KeystrokeAction(this.macroAction),this.selectTab(this.getTabName(this.macroAction))},t.prototype.selectTab=function(e){this.activeTab=e,this.validate()},t.prototype.getTabName=function(e){return e.action?e.action===ze.MacroKeySubAction.press?qo.Press:e.action===ze.MacroKeySubAction.release?qo.Release:void 0:qo.Tap},t.prototype.getActionType=function(e){switch(e){case qo.Tap:return ze.MacroKeySubAction.tap;case qo.Press:return ze.MacroKeySubAction.press;case qo.Release:return ze.MacroKeySubAction.release;default:throw new Error("Invalid tab type")}},t.prototype.getKeyMacroAction=function(){var e=new ze.KeyMacroAction(this.keypressTab.toKeyAction());return e.action=this.getActionType(this.activeTab),e},t}(Vo),Yo=o["\u0275crt"]({encapsulation:0,styles:[Uo,[".macro-key__container[_ngcontent-%COMP%]{padding:0}.macro-key__types[_ngcontent-%COMP%]{margin-left:0;padding:0 0 1rem}.macro-key__action[_ngcontent-%COMP%]{padding-left:3rem;padding-bottom:1rem}.macro-key__action-container[_ngcontent-%COMP%]{margin-top:-1rem;padding-top:1rem;border-left:1px solid #ddd}.fa[_ngcontent-%COMP%]{min-width:14px}"]],data:{}});function Qo(e){return o["\u0275vid"](0,[(e()(),o["\u0275eld"](0,0,null,null,1,"h4",[],null,null,null,null,null)),(e()(),o["\u0275ted"](-1,null,["Tap key"]))],null,null)}function Jo(e){return o["\u0275vid"](0,[(e()(),o["\u0275eld"](0,0,null,null,1,"h4",[],null,null,null,null,null)),(e()(),o["\u0275ted"](-1,null,["Press key"]))],null,null)}function Zo(e){return o["\u0275vid"](0,[(e()(),o["\u0275eld"](0,0,null,null,1,"h4",[],null,null,null,null,null)),(e()(),o["\u0275ted"](-1,null,["Release key"]))],null,null)}function Xo(e){return o["\u0275vid"](0,[o["\u0275qud"](402653184,1,{selectedTab:0}),o["\u0275qud"](402653184,2,{keypressTab:0}),(e()(),o["\u0275eld"](2,0,null,null,58,"div",[["class","col-xs-12 macro-key__container"]],null,null,null,null,null)),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275eld"](4,0,null,null,37,"div",[["class","col-xs-3 macro-key__types"]],null,null,null,null,null)),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275eld"](6,0,null,null,34,"ul",[["class","nav nav-pills nav-stacked"]],null,null,null,null,null)),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275eld"](8,0,[["keyMove",1]],null,9,"li",[],[[2,"active",null]],[[null,"click"]],function(e,t,n){var i=!0,o=e.component;return"click"===t&&(i=!1!==o.selectTab(o.TabName.Tap)&&i),i},null,null)),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275eld"](10,0,null,null,6,"a",[],null,null,null,null,null)),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275eld"](12,0,null,null,0,"i",[["class","fa fa-hand-pointer-o"]],null,null,null,null,null)),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275eld"](14,0,null,null,1,"span",[],null,null,null,null,null)),(e()(),o["\u0275ted"](-1,null,["Tap key"])),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275eld"](19,0,[["keyHold",1]],null,9,"li",[],[[2,"active",null]],[[null,"click"]],function(e,t,n){var i=!0,o=e.component;return"click"===t&&(i=!1!==o.selectTab(o.TabName.Press)&&i),i},null,null)),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275eld"](21,0,null,null,6,"a",[],null,null,null,null,null)),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275eld"](23,0,null,null,0,"i",[["class","fa fa-hand-rock-o"]],null,null,null,null,null)),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275eld"](25,0,null,null,1,"span",[],null,null,null,null,null)),(e()(),o["\u0275ted"](-1,null,["Press key"])),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275eld"](30,0,[["keyRelease",1]],null,9,"li",[],[[2,"active",null]],[[null,"click"]],function(e,t,n){var i=!0,o=e.component;return"click"===t&&(i=!1!==o.selectTab(o.TabName.Release)&&i),i},null,null)),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275eld"](32,0,null,null,6,"a",[],null,null,null,null,null)),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275eld"](34,0,null,null,0,"i",[["class","fa fa-hand-paper-o"]],null,null,null,null,null)),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275eld"](36,0,null,null,1,"span",[],null,null,null,null,null)),(e()(),o["\u0275ted"](-1,null,["Release key"])),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275eld"](43,0,null,null,16,"div",[["class","col-xs-9 macro-key__action-container"]],null,null,null,null,null)),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275eld"](45,0,null,null,13,"div",[["class","macro-key__action"]],null,null,null,null,null)),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275and"](16777216,null,null,1,null,Qo)),o["\u0275did"](48,16384,null,0,p.k,[o.ViewContainerRef,o.TemplateRef],{ngIf:[0,"ngIf"]},null),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275and"](16777216,null,null,1,null,Jo)),o["\u0275did"](51,16384,null,0,p.k,[o.ViewContainerRef,o.TemplateRef],{ngIf:[0,"ngIf"]},null),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275and"](16777216,null,null,1,null,Zo)),o["\u0275did"](54,16384,null,0,p.k,[o.ViewContainerRef,o.TemplateRef],{ngIf:[0,"ngIf"]},null),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275eld"](56,0,null,null,1,"keypress-tab",[],null,[[null,"validAction"]],function(e,t,n){var i=!0;return"validAction"===t&&(i=!1!==e.component.validate()&&i),i},vo,po)),o["\u0275did"](57,573440,[[2,4],["keypressTab",4]],0,co,[Gt],{defaultKeyAction:[0,"defaultKeyAction"],secondaryRoleEnabled:[1,"secondaryRoleEnabled"]},{validAction:"validAction"}),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275ted"](-1,null,["\n"])),(e()(),o["\u0275ted"](-1,null,["\n"]))],function(e,t){var n=t.component;e(t,48,0,n.activeTab===n.TabName.Tap),e(t,51,0,n.activeTab===n.TabName.Press),e(t,54,0,n.activeTab===n.TabName.Release),e(t,57,0,n.defaultKeyAction,!1)},function(e,t){var n=t.component;e(t,8,0,n.activeTab===n.TabName.Tap),e(t,19,0,n.activeTab===n.TabName.Press),e(t,30,0,n.activeTab===n.TabName.Release)})}var er=function(e){return e[e.Move=0]="Move",e[e.Scroll=1]="Scroll",e[e.Click=2]="Click",e[e.Hold=3]="Hold",e[e.Release=4]="Release",e}({}),tr=function(e){function t(){var t=e.call(this)||this;return t.TabName=er,t.isMacroValid=function(){switch(t.macroAction.constructor){case ze.MoveMouseMacroAction:case ze.ScrollMouseMacroAction:var e=t.macroAction,n=e.x,i=e.y;return void 0!==n&&null!==n&&void 0!==i&&null!==i&&(0!==n||0!==i)&&n<1e4&&n>-1e4&&i<1e4&&i>-1e4;case ze.MouseButtonMacroAction:return!!t.macroAction.mouseButtonsMask;default:return!0}},t.buttonLabels=["Left","Middle","Right"],t.selectedButtons=Array(t.buttonLabels.length).fill(!1),t}return Object(Ci.__extends)(t,e),t.prototype.ngOnInit=function(){this.macroAction||(this.macroAction=new ze.MouseButtonMacroAction,this.macroAction.action=ze.MacroMouseSubAction.click);var e=this.getTabName(this.macroAction);this.selectTab(e),[er.Click,er.Hold,er.Release].includes(this.activeTab)&&(this.selectedButtons=this.macroAction.getMouseButtons())},t.prototype.ngOnChanges=function(){this.ngOnInit()},t.prototype.selectTab=function(e){if(this.activeTab=e,e!==this.getTabName(this.macroAction)){switch(this.selectedButtons=[],e){case er.Scroll:this.macroAction=new ze.ScrollMouseMacroAction;break;case er.Move:this.macroAction=new ze.MoveMouseMacroAction;break;default:this.macroAction=new ze.MouseButtonMacroAction,this.macroAction.action=this.getAction(e)}this.validate()}},t.prototype.setMouseClick=function(e){this.selectedButtons[e]=!this.selectedButtons[e],this.macroAction.setMouseButtons(this.selectedButtons),this.validate()},t.prototype.hasButton=function(e){return this.selectedButtons[e]},t.prototype.getAction=function(e){switch(e){case er.Click:return ze.MacroMouseSubAction.click;case er.Hold:return ze.MacroMouseSubAction.hold;case er.Release:return ze.MacroMouseSubAction.release;default:throw new Error("Invalid tab name: "+er[e])}},t.prototype.getTabName=function(e){if(e instanceof ze.MouseButtonMacroAction){if(!e.action||e.isOnlyClickAction())return er.Click;if(e.isOnlyHoldAction())return er.Hold;if(e.isOnlyReleaseAction())return er.Release}else{if(e instanceof ze.MoveMouseMacroAction)return er.Move;if(e instanceof ze.ScrollMouseMacroAction)return er.Scroll}return er.Move},t}(Vo),nr=o["\u0275crt"]({encapsulation:0,styles:[Uo,[".macro-mouse__container[_ngcontent-%COMP%]{padding:0}.macro-mouse__types[_ngcontent-%COMP%]{border-right:1px solid #ddd;border-left:0;margin-top:-1rem;margin-left:0;padding:1rem 0}.macro-mouse__actions[_ngcontent-%COMP%]{padding-left:3rem;padding-bottom:1rem}.fa[_ngcontent-%COMP%]{min-width:14px}.form-horizontal[_ngcontent-%COMP%] .form-group[_ngcontent-%COMP%]{margin:0 0 .5rem}.form-horizontal[_ngcontent-%COMP%] label[_ngcontent-%COMP%]{display:inline-block;margin-right:.5rem}.form-horizontal[_ngcontent-%COMP%] .form-control[_ngcontent-%COMP%]{display:inline-block;width:10ch}"]],data:{}});function ir(e){return o["\u0275vid"](0,[(e()(),o["\u0275eld"](0,0,[[1,0],["tab",1]],null,39,"div",[],null,null,null,null,null)),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275eld"](2,0,null,null,1,"h4",[],null,null,null,null,null)),(e()(),o["\u0275ted"](-1,null,["Move mouse pointer"])),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275eld"](5,0,null,null,33,"div",[["class","form-horizontal"]],null,null,null,null,null)),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275eld"](7,0,null,null,14,"div",[["class","form-group"]],null,null,null,null,null)),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275eld"](9,0,null,null,1,"label",[["for","move-mouse-x"]],null,null,null,null,null)),(e()(),o["\u0275ted"](-1,null,["X:"])),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275eld"](12,0,null,null,8,"input",[["class","form-control"],["id","move-mouse-x"],["max","9999"],["maxlength","4"],["min","-9999"],["type","number"]],[[1,"maxlength",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]],[[null,"ngModelChange"],[null,"keyup"],[null,"input"],[null,"blur"],[null,"compositionstart"],[null,"compositionend"],[null,"change"]],function(e,t,n){var i=!0,r=e.component;return"input"===t&&(i=!1!==o["\u0275nov"](e,13)._handleInput(n.target.value)&&i),"blur"===t&&(i=!1!==o["\u0275nov"](e,13).onTouched()&&i),"compositionstart"===t&&(i=!1!==o["\u0275nov"](e,13)._compositionStart()&&i),"compositionend"===t&&(i=!1!==o["\u0275nov"](e,13)._compositionEnd(n.target.value)&&i),"change"===t&&(i=!1!==o["\u0275nov"](e,14).onChange(n.target.value)&&i),"input"===t&&(i=!1!==o["\u0275nov"](e,14).onChange(n.target.value)&&i),"blur"===t&&(i=!1!==o["\u0275nov"](e,14).onTouched()&&i),"ngModelChange"===t&&(i=!1!==(r.macroAction.x=n)&&i),"keyup"===t&&(i=!1!==r.validate()&&i),i},null,null)),o["\u0275did"](13,16384,null,0,je.DefaultValueAccessor,[o.Renderer2,o.ElementRef,[2,je.COMPOSITION_BUFFER_MODE]],null,null),o["\u0275did"](14,16384,null,0,je["\u0275bc"],[o.Renderer2,o.ElementRef],null,null),o["\u0275did"](15,540672,null,0,je.MaxLengthValidator,[],{maxlength:[0,"maxlength"]},null),o["\u0275prd"](1024,null,je.NG_VALIDATORS,function(e){return[e]},[je.MaxLengthValidator]),o["\u0275prd"](1024,null,je.NG_VALUE_ACCESSOR,function(e,t){return[e,t]},[je.DefaultValueAccessor,je["\u0275bc"]]),o["\u0275did"](18,671744,null,0,je.NgModel,[[8,null],[2,je.NG_VALIDATORS],[8,null],[2,je.NG_VALUE_ACCESSOR]],{model:[0,"model"]},{update:"ngModelChange"}),o["\u0275prd"](2048,null,je.NgControl,null,[je.NgModel]),o["\u0275did"](20,16384,null,0,je.NgControlStatus,[je.NgControl],null,null),(e()(),o["\u0275ted"](-1,null,[" pixels\n "])),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275eld"](23,0,null,null,14,"div",[["class","form-group"]],null,null,null,null,null)),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275eld"](25,0,null,null,1,"label",[["for","move-mouse-y"]],null,null,null,null,null)),(e()(),o["\u0275ted"](-1,null,["Y:"])),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275eld"](28,0,null,null,8,"input",[["class","form-control"],["id","move-mouse-y"],["max","9999"],["maxlength","4"],["min","-9999"],["type","number"]],[[1,"maxlength",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]],[[null,"ngModelChange"],[null,"keyup"],[null,"input"],[null,"blur"],[null,"compositionstart"],[null,"compositionend"],[null,"change"]],function(e,t,n){var i=!0,r=e.component;return"input"===t&&(i=!1!==o["\u0275nov"](e,29)._handleInput(n.target.value)&&i),"blur"===t&&(i=!1!==o["\u0275nov"](e,29).onTouched()&&i),"compositionstart"===t&&(i=!1!==o["\u0275nov"](e,29)._compositionStart()&&i),"compositionend"===t&&(i=!1!==o["\u0275nov"](e,29)._compositionEnd(n.target.value)&&i),"change"===t&&(i=!1!==o["\u0275nov"](e,30).onChange(n.target.value)&&i),"input"===t&&(i=!1!==o["\u0275nov"](e,30).onChange(n.target.value)&&i),"blur"===t&&(i=!1!==o["\u0275nov"](e,30).onTouched()&&i),"ngModelChange"===t&&(i=!1!==(r.macroAction.y=n)&&i),"keyup"===t&&(i=!1!==r.validate()&&i),i},null,null)),o["\u0275did"](29,16384,null,0,je.DefaultValueAccessor,[o.Renderer2,o.ElementRef,[2,je.COMPOSITION_BUFFER_MODE]],null,null),o["\u0275did"](30,16384,null,0,je["\u0275bc"],[o.Renderer2,o.ElementRef],null,null),o["\u0275did"](31,540672,null,0,je.MaxLengthValidator,[],{maxlength:[0,"maxlength"]},null),o["\u0275prd"](1024,null,je.NG_VALIDATORS,function(e){return[e]},[je.MaxLengthValidator]),o["\u0275prd"](1024,null,je.NG_VALUE_ACCESSOR,function(e,t){return[e,t]},[je.DefaultValueAccessor,je["\u0275bc"]]),o["\u0275did"](34,671744,null,0,je.NgModel,[[8,null],[2,je.NG_VALIDATORS],[8,null],[2,je.NG_VALUE_ACCESSOR]],{model:[0,"model"]},{update:"ngModelChange"}),o["\u0275prd"](2048,null,je.NgControl,null,[je.NgModel]),o["\u0275did"](36,16384,null,0,je.NgControlStatus,[je.NgControl],null,null),(e()(),o["\u0275ted"](-1,null,[" pixels\n "])),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275ted"](-1,null,["\n "]))],function(e,t){var n=t.component;e(t,15,0,"4"),e(t,18,0,n.macroAction.x),e(t,31,0,"4"),e(t,34,0,n.macroAction.y)},function(e,t){e(t,12,0,o["\u0275nov"](t,15).maxlength?o["\u0275nov"](t,15).maxlength:null,o["\u0275nov"](t,20).ngClassUntouched,o["\u0275nov"](t,20).ngClassTouched,o["\u0275nov"](t,20).ngClassPristine,o["\u0275nov"](t,20).ngClassDirty,o["\u0275nov"](t,20).ngClassValid,o["\u0275nov"](t,20).ngClassInvalid,o["\u0275nov"](t,20).ngClassPending),e(t,28,0,o["\u0275nov"](t,31).maxlength?o["\u0275nov"](t,31).maxlength:null,o["\u0275nov"](t,36).ngClassUntouched,o["\u0275nov"](t,36).ngClassTouched,o["\u0275nov"](t,36).ngClassPristine,o["\u0275nov"](t,36).ngClassDirty,o["\u0275nov"](t,36).ngClassValid,o["\u0275nov"](t,36).ngClassInvalid,o["\u0275nov"](t,36).ngClassPending)})}function or(e){return o["\u0275vid"](0,[(e()(),o["\u0275eld"](0,0,[[1,0],["tab",1]],null,39,"div",[],null,null,null,null,null)),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275eld"](2,0,null,null,1,"h4",[],null,null,null,null,null)),(e()(),o["\u0275ted"](-1,null,["Scroll with mouse"])),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275eld"](5,0,null,null,33,"div",[["class","form-horizontal"]],null,null,null,null,null)),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275eld"](7,0,null,null,14,"div",[["class","form-group"]],null,null,null,null,null)),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275eld"](9,0,null,null,1,"label",[["for","scroll-mouse-x"]],null,null,null,null,null)),(e()(),o["\u0275ted"](-1,null,["X:"])),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275eld"](12,0,null,null,8,"input",[["class","form-control"],["id","scroll-mouse-x"],["max","9999"],["maxlength","4"],["min","-9999"],["type","number"]],[[1,"maxlength",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]],[[null,"ngModelChange"],[null,"keyup"],[null,"input"],[null,"blur"],[null,"compositionstart"],[null,"compositionend"],[null,"change"]],function(e,t,n){var i=!0,r=e.component;return"input"===t&&(i=!1!==o["\u0275nov"](e,13)._handleInput(n.target.value)&&i),"blur"===t&&(i=!1!==o["\u0275nov"](e,13).onTouched()&&i),"compositionstart"===t&&(i=!1!==o["\u0275nov"](e,13)._compositionStart()&&i),"compositionend"===t&&(i=!1!==o["\u0275nov"](e,13)._compositionEnd(n.target.value)&&i),"change"===t&&(i=!1!==o["\u0275nov"](e,14).onChange(n.target.value)&&i),"input"===t&&(i=!1!==o["\u0275nov"](e,14).onChange(n.target.value)&&i),"blur"===t&&(i=!1!==o["\u0275nov"](e,14).onTouched()&&i),"ngModelChange"===t&&(i=!1!==(r.macroAction.x=n)&&i),"keyup"===t&&(i=!1!==r.validate()&&i),i},null,null)),o["\u0275did"](13,16384,null,0,je.DefaultValueAccessor,[o.Renderer2,o.ElementRef,[2,je.COMPOSITION_BUFFER_MODE]],null,null),o["\u0275did"](14,16384,null,0,je["\u0275bc"],[o.Renderer2,o.ElementRef],null,null),o["\u0275did"](15,540672,null,0,je.MaxLengthValidator,[],{maxlength:[0,"maxlength"]},null),o["\u0275prd"](1024,null,je.NG_VALIDATORS,function(e){return[e]},[je.MaxLengthValidator]),o["\u0275prd"](1024,null,je.NG_VALUE_ACCESSOR,function(e,t){return[e,t]},[je.DefaultValueAccessor,je["\u0275bc"]]),o["\u0275did"](18,671744,null,0,je.NgModel,[[8,null],[2,je.NG_VALIDATORS],[8,null],[2,je.NG_VALUE_ACCESSOR]],{model:[0,"model"]},{update:"ngModelChange"}),o["\u0275prd"](2048,null,je.NgControl,null,[je.NgModel]),o["\u0275did"](20,16384,null,0,je.NgControlStatus,[je.NgControl],null,null),(e()(),o["\u0275ted"](-1,null,[" pixels\n "])),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275eld"](23,0,null,null,14,"div",[["class","form-group"]],null,null,null,null,null)),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275eld"](25,0,null,null,1,"label",[["for","scroll-mouse-y"]],null,null,null,null,null)),(e()(),o["\u0275ted"](-1,null,["Y:"])),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275eld"](28,0,null,null,8,"input",[["class","form-control"],["id","scroll-mouse-y"],["max","9999"],["maxlength","4"],["min","-9999"],["type","number"]],[[1,"maxlength",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]],[[null,"ngModelChange"],[null,"keyup"],[null,"input"],[null,"blur"],[null,"compositionstart"],[null,"compositionend"],[null,"change"]],function(e,t,n){var i=!0,r=e.component;return"input"===t&&(i=!1!==o["\u0275nov"](e,29)._handleInput(n.target.value)&&i),"blur"===t&&(i=!1!==o["\u0275nov"](e,29).onTouched()&&i),"compositionstart"===t&&(i=!1!==o["\u0275nov"](e,29)._compositionStart()&&i),"compositionend"===t&&(i=!1!==o["\u0275nov"](e,29)._compositionEnd(n.target.value)&&i),"change"===t&&(i=!1!==o["\u0275nov"](e,30).onChange(n.target.value)&&i),"input"===t&&(i=!1!==o["\u0275nov"](e,30).onChange(n.target.value)&&i),"blur"===t&&(i=!1!==o["\u0275nov"](e,30).onTouched()&&i),"ngModelChange"===t&&(i=!1!==(r.macroAction.y=n)&&i),"keyup"===t&&(i=!1!==r.validate()&&i),i},null,null)),o["\u0275did"](29,16384,null,0,je.DefaultValueAccessor,[o.Renderer2,o.ElementRef,[2,je.COMPOSITION_BUFFER_MODE]],null,null),o["\u0275did"](30,16384,null,0,je["\u0275bc"],[o.Renderer2,o.ElementRef],null,null),o["\u0275did"](31,540672,null,0,je.MaxLengthValidator,[],{maxlength:[0,"maxlength"]},null),o["\u0275prd"](1024,null,je.NG_VALIDATORS,function(e){return[e]},[je.MaxLengthValidator]),o["\u0275prd"](1024,null,je.NG_VALUE_ACCESSOR,function(e,t){return[e,t]},[je.DefaultValueAccessor,je["\u0275bc"]]),o["\u0275did"](34,671744,null,0,je.NgModel,[[8,null],[2,je.NG_VALIDATORS],[8,null],[2,je.NG_VALUE_ACCESSOR]],{model:[0,"model"]},{update:"ngModelChange"}),o["\u0275prd"](2048,null,je.NgControl,null,[je.NgModel]),o["\u0275did"](36,16384,null,0,je.NgControlStatus,[je.NgControl],null,null),(e()(),o["\u0275ted"](-1,null,[" pixels\n "])),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275ted"](-1,null,["\n "]))],function(e,t){var n=t.component;e(t,15,0,"4"),e(t,18,0,n.macroAction.x),e(t,31,0,"4"),e(t,34,0,n.macroAction.y)},function(e,t){e(t,12,0,o["\u0275nov"](t,15).maxlength?o["\u0275nov"](t,15).maxlength:null,o["\u0275nov"](t,20).ngClassUntouched,o["\u0275nov"](t,20).ngClassTouched,o["\u0275nov"](t,20).ngClassPristine,o["\u0275nov"](t,20).ngClassDirty,o["\u0275nov"](t,20).ngClassValid,o["\u0275nov"](t,20).ngClassInvalid,o["\u0275nov"](t,20).ngClassPending),e(t,28,0,o["\u0275nov"](t,31).maxlength?o["\u0275nov"](t,31).maxlength:null,o["\u0275nov"](t,36).ngClassUntouched,o["\u0275nov"](t,36).ngClassTouched,o["\u0275nov"](t,36).ngClassPristine,o["\u0275nov"](t,36).ngClassDirty,o["\u0275nov"](t,36).ngClassValid,o["\u0275nov"](t,36).ngClassInvalid,o["\u0275nov"](t,36).ngClassPending)})}function rr(e){return o["\u0275vid"](0,[(e()(),o["\u0275eld"](0,0,null,null,1,"h4",[],null,null,null,null,null)),(e()(),o["\u0275ted"](-1,null,["Click mouse button"]))],null,null)}function lr(e){return o["\u0275vid"](0,[(e()(),o["\u0275eld"](0,0,null,null,1,"h4",[],null,null,null,null,null)),(e()(),o["\u0275ted"](-1,null,["Hold mouse button"]))],null,null)}function ur(e){return o["\u0275vid"](0,[(e()(),o["\u0275eld"](0,0,null,null,1,"h4",[],null,null,null,null,null)),(e()(),o["\u0275ted"](-1,null,["Release mouse button"]))],null,null)}function ar(e){return o["\u0275vid"](0,[(e()(),o["\u0275eld"](0,0,null,null,1,"button",[["class","btn btn-default"]],[[2,"btn-primary",null]],[[null,"click"]],function(e,t,n){var i=!0;return"click"===t&&(i=!1!==e.component.setMouseClick(e.context.index)&&i),i},null,null)),(e()(),o["\u0275ted"](1,null,["","\n "]))],null,function(e,t){e(t,0,0,t.component.hasButton(t.context.index)),e(t,1,0,t.context.$implicit)})}function sr(e){return o["\u0275vid"](0,[(e()(),o["\u0275eld"](0,0,[[1,0],["tab",1]],null,16,"div",[],null,null,null,null,null)),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275and"](16777216,null,null,1,null,rr)),o["\u0275did"](3,16384,null,0,p.k,[o.ViewContainerRef,o.TemplateRef],{ngIf:[0,"ngIf"]},null),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275and"](16777216,null,null,1,null,lr)),o["\u0275did"](6,16384,null,0,p.k,[o.ViewContainerRef,o.TemplateRef],{ngIf:[0,"ngIf"]},null),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275and"](16777216,null,null,1,null,ur)),o["\u0275did"](9,16384,null,0,p.k,[o.ViewContainerRef,o.TemplateRef],{ngIf:[0,"ngIf"]},null),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275eld"](11,0,null,null,4,"div",[["class","btn-group"]],null,null,null,null,null)),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275and"](16777216,null,null,1,null,ar)),o["\u0275did"](14,802816,null,0,p.j,[o.ViewContainerRef,o.TemplateRef,o.IterableDiffers],{ngForOf:[0,"ngForOf"]},null),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275ted"](-1,null,["\n "]))],function(e,t){var n=t.component;e(t,3,0,n.activeTab===n.TabName.Click),e(t,6,0,n.activeTab===n.TabName.Hold),e(t,9,0,n.activeTab===n.TabName.Release),e(t,14,0,n.buttonLabels)},null)}function cr(e){return o["\u0275vid"](0,[o["\u0275qud"](671088640,1,{selectedTab:0}),(e()(),o["\u0275eld"](1,0,null,null,75,"div",[["class","col-xs-12 macro-mouse__container"]],null,null,null,null,null)),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275eld"](3,0,null,null,59,"div",[["class","col-xs-3 macro-mouse__types"]],null,null,null,null,null)),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275eld"](5,0,null,null,56,"ul",[["class","nav nav-pills nav-stacked"]],null,null,null,null,null)),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275eld"](7,0,[["mouseMove",1]],null,9,"li",[],[[2,"active",null]],[[null,"click"]],function(e,t,n){var i=!0,o=e.component;return"click"===t&&(i=!1!==o.selectTab(o.TabName.Move)&&i),i},null,null)),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275eld"](9,0,null,null,6,"a",[],null,null,null,null,null)),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275eld"](11,0,null,null,0,"i",[["class","fa fa-arrows"]],null,null,null,null,null)),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275eld"](13,0,null,null,1,"span",[],null,null,null,null,null)),(e()(),o["\u0275ted"](-1,null,["Move pointer"])),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275eld"](18,0,[["mouseScroll",1]],null,9,"li",[],[[2,"active",null]],[[null,"click"]],function(e,t,n){var i=!0,o=e.component;return"click"===t&&(i=!1!==o.selectTab(o.TabName.Scroll)&&i),i},null,null)),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275eld"](20,0,null,null,6,"a",[],null,null,null,null,null)),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275eld"](22,0,null,null,0,"i",[["class","fa fa-arrows-v"]],null,null,null,null,null)),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275eld"](24,0,null,null,1,"span",[],null,null,null,null,null)),(e()(),o["\u0275ted"](-1,null,["Scroll"])),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275eld"](29,0,[["mouseClick",1]],null,9,"li",[],[[2,"active",null]],[[null,"click"]],function(e,t,n){var i=!0,o=e.component;return"click"===t&&(i=!1!==o.selectTab(o.TabName.Click)&&i),i},null,null)),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275eld"](31,0,null,null,6,"a",[],null,null,null,null,null)),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275eld"](33,0,null,null,0,"i",[["class","fa fa-mouse-pointer"]],null,null,null,null,null)),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275eld"](35,0,null,null,1,"span",[],null,null,null,null,null)),(e()(),o["\u0275ted"](-1,null,["Click button"])),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275eld"](40,0,[["mouseHold",1]],null,9,"li",[],[[2,"active",null]],[[null,"click"]],function(e,t,n){var i=!0,o=e.component;return"click"===t&&(i=!1!==o.selectTab(o.TabName.Hold)&&i),i},null,null)),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275eld"](42,0,null,null,6,"a",[],null,null,null,null,null)),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275eld"](44,0,null,null,0,"i",[["class","fa fa-hand-rock-o"]],null,null,null,null,null)),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275eld"](46,0,null,null,1,"span",[],null,null,null,null,null)),(e()(),o["\u0275ted"](-1,null,["Hold button"])),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275eld"](51,0,[["mouseRelease",1]],null,9,"li",[],[[2,"active",null]],[[null,"click"]],function(e,t,n){var i=!0,o=e.component;return"click"===t&&(i=!1!==o.selectTab(o.TabName.Release)&&i),i},null,null)),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275eld"](53,0,null,null,6,"a",[],null,null,null,null,null)),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275eld"](55,0,null,null,0,"i",[["class","fa fa-hand-paper-o"]],null,null,null,null,null)),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275eld"](57,0,null,null,1,"span",[],null,null,null,null,null)),(e()(),o["\u0275ted"](-1,null,["Release button"])),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275eld"](64,0,null,null,11,"div",[["class","col-xs-9 macro-mouse__actions"]],null,null,null,null,null)),o["\u0275did"](65,16384,null,0,p.n,[],{ngSwitch:[0,"ngSwitch"]},null),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275and"](16777216,null,null,1,null,ir)),o["\u0275did"](68,278528,null,0,p.o,[o.ViewContainerRef,o.TemplateRef,p.n],{ngSwitchCase:[0,"ngSwitchCase"]},null),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275and"](16777216,null,null,1,null,or)),o["\u0275did"](71,278528,null,0,p.o,[o.ViewContainerRef,o.TemplateRef,p.n],{ngSwitchCase:[0,"ngSwitchCase"]},null),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275and"](16777216,null,null,1,null,sr)),o["\u0275did"](74,16384,null,0,p.k,[o.ViewContainerRef,o.TemplateRef],{ngIf:[0,"ngIf"]},null),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275ted"](-1,null,["\n"])),(e()(),o["\u0275ted"](-1,null,["\n"]))],function(e,t){var n=t.component;e(t,65,0,n.activeTab),e(t,68,0,n.TabName.Move),e(t,71,0,n.TabName.Scroll),e(t,74,0,n.activeTab===n.TabName.Click||n.activeTab===n.TabName.Hold||n.activeTab===n.TabName.Release)},function(e,t){var n=t.component;e(t,7,0,n.activeTab===n.TabName.Move),e(t,18,0,n.activeTab===n.TabName.Scroll),e(t,29,0,n.activeTab===n.TabName.Click),e(t,40,0,n.activeTab===n.TabName.Hold),e(t,51,0,n.activeTab===n.TabName.Release)})}var dr=function(e){function t(){var t=e.call(this)||this;return t.presets=[.1,.5,1,5,10],t.isMacroValid=function(){return 0!==t.macroAction.delay},t}return Object(Ci.__extends)(t,e),Object.defineProperty(t.prototype,"delay",{get:function(){return this._delay},set:function(e){this._delay=e,this.validate()},enumerable:!0,configurable:!0}),t.prototype.ngOnInit=function(){this.macroAction||(this.macroAction=new ze.DelayMacroAction),this.delay=this.macroAction.delay>0?this.macroAction.delay/1e3:.5},t.prototype.setDelay=function(e){this._delay=e,this.macroAction.delay=1e3*this._delay,this.validate()},t}(Vo),pr=o["\u0275crt"]({encapsulation:0,styles:[["[_nghost-%COMP%]{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-orient:vertical;-webkit-box-direction:normal;-ms-flex-direction:column;flex-direction:column;position:relative}.macro-delay__presets[_ngcontent-%COMP%]{margin-top:1rem}.macro-delay__presets[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{margin-right:.25rem;margin-bottom:.25rem}.form-group[_ngcontent-%COMP%]{margin-bottom:0}.form-control[_ngcontent-%COMP%]{width:16ch;display:inline-block}"]],data:{}});function fr(e){return o["\u0275vid"](0,[(e()(),o["\u0275eld"](0,0,null,null,1,"button",[["class","btn btn-sm btn-default"]],null,[[null,"click"]],function(e,t,n){var i=!0;return"click"===t&&(i=!1!==e.component.setDelay(e.context.$implicit)&&i),i},null,null)),(e()(),o["\u0275ted"](1,null,["","s\n "]))],null,function(e,t){e(t,1,0,t.context.$implicit)})}function hr(e){return o["\u0275vid"](2,[o["\u0275qud"](402653184,1,{input:0}),(e()(),o["\u0275eld"](1,0,null,null,39,"div",[["class","macro-delay"]],null,null,null,null,null)),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275eld"](3,0,null,null,7,"div",[["class","row"]],null,null,null,null,null)),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275eld"](5,0,null,null,4,"div",[["class","col-xs-12"]],null,null,null,null,null)),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275eld"](7,0,null,null,1,"h4",[],null,null,null,null,null)),(e()(),o["\u0275ted"](-1,null,["Delay"])),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275eld"](12,0,null,null,15,"div",[["class","row"]],null,null,null,null,null)),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275eld"](14,0,null,null,12,"div",[["class","col-xs-12"]],null,null,null,null,null)),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275eld"](16,0,null,null,9,"div",[["class","form-group"]],null,null,null,null,null)),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275eld"](18,0,[[1,0],["macroDelayInput",1]],null,6,"input",[["class","form-control"],["max","1000"],["min","0"],["placeholder","Delay amount"],["step","0.1"],["type","number"]],[[2,"ng-untouched",null],[2,"ng-touched",null],[2,"ng-pristine",null],[2,"ng-dirty",null],[2,"ng-valid",null],[2,"ng-invalid",null],[2,"ng-pending",null]],[[null,"ngModelChange"],[null,"input"],[null,"blur"],[null,"compositionstart"],[null,"compositionend"],[null,"change"]],function(e,t,n){var i=!0,r=e.component;return"input"===t&&(i=!1!==o["\u0275nov"](e,19)._handleInput(n.target.value)&&i),"blur"===t&&(i=!1!==o["\u0275nov"](e,19).onTouched()&&i),"compositionstart"===t&&(i=!1!==o["\u0275nov"](e,19)._compositionStart()&&i),"compositionend"===t&&(i=!1!==o["\u0275nov"](e,19)._compositionEnd(n.target.value)&&i),"change"===t&&(i=!1!==o["\u0275nov"](e,20).onChange(n.target.value)&&i),"input"===t&&(i=!1!==o["\u0275nov"](e,20).onChange(n.target.value)&&i),"blur"===t&&(i=!1!==o["\u0275nov"](e,20).onTouched()&&i),"ngModelChange"===t&&(i=!1!==r.setDelay(o["\u0275nov"](e,18).value)&&i),i},null,null)),o["\u0275did"](19,16384,null,0,je.DefaultValueAccessor,[o.Renderer2,o.ElementRef,[2,je.COMPOSITION_BUFFER_MODE]],null,null),o["\u0275did"](20,16384,null,0,je["\u0275bc"],[o.Renderer2,o.ElementRef],null,null),o["\u0275prd"](1024,null,je.NG_VALUE_ACCESSOR,function(e,t){return[e,t]},[je.DefaultValueAccessor,je["\u0275bc"]]),o["\u0275did"](22,671744,null,0,je.NgModel,[[8,null],[8,null],[8,null],[2,je.NG_VALUE_ACCESSOR]],{model:[0,"model"]},{update:"ngModelChange"}),o["\u0275prd"](2048,null,je.NgControl,null,[je.NgModel]),o["\u0275did"](24,16384,null,0,je.NgControlStatus,[je.NgControl],null,null),(e()(),o["\u0275ted"](-1,null,["\n seconds\n "])),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275eld"](29,0,null,null,10,"div",[["class","row macro-delay__presets"]],null,null,null,null,null)),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275eld"](31,0,null,null,7,"div",[["class","col-xs-12"]],null,null,null,null,null)),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275eld"](33,0,null,null,1,"h6",[],null,null,null,null,null)),(e()(),o["\u0275ted"](-1,null,["Choose a preset"])),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275and"](16777216,null,null,1,null,fr)),o["\u0275did"](37,802816,null,0,p.j,[o.ViewContainerRef,o.TemplateRef,o.IterableDiffers],{ngForOf:[0,"ngForOf"]},null),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275ted"](-1,null,["\n"])),(e()(),o["\u0275ted"](-1,null,["\n"]))],function(e,t){var n=t.component;e(t,22,0,n.delay),e(t,37,0,n.presets)},function(e,t){e(t,18,0,o["\u0275nov"](t,24).ngClassUntouched,o["\u0275nov"](t,24).ngClassTouched,o["\u0275nov"](t,24).ngClassPristine,o["\u0275nov"](t,24).ngClassDirty,o["\u0275nov"](t,24).ngClassValid,o["\u0275nov"](t,24).ngClassInvalid,o["\u0275nov"](t,24).ngClassPending)})}var yr=function(e){return e[e.Keypress=0]="Keypress",e[e.Text=1]="Text",e[e.Mouse=2]="Mouse",e[e.Delay=3]="Delay",e}({}),mr=function(){function e(){var e=this;this.save=new o.EventEmitter,this.cancel=new o.EventEmitter,this.TabName=yr,this.isSelectedMacroValid=!1,this.onValid=function(t){return e.isSelectedMacroValid=t}}return e.prototype.ngOnInit=function(){this.updateEditableMacroAction();var e=this.getTabName(this.editableMacroAction);this.activeTab=e},e.prototype.ngOnChanges=function(){this.ngOnInit()},e.prototype.onCancelClick=function(){this.cancel.emit()},e.prototype.onSaveClick=function(){try{var e=this.selectedTab instanceof Go?this.selectedTab.getKeyMacroAction():this.selectedTab.macroAction;this.save.emit(e)}catch(e){console.error(e)}},e.prototype.selectTab=function(e){this.activeTab=e,e===this.getTabName(this.macroAction)?this.updateEditableMacroAction():(this.editableMacroAction=void 0,this.isSelectedMacroValid=!1)},e.prototype.getTabName=function(e){return e instanceof ze.DelayMacroAction?yr.Delay:e instanceof ze.TextMacroAction?yr.Text:e instanceof ze.KeyMacroAction?yr.Keypress:e instanceof ze.MouseButtonMacroAction||e instanceof ze.MoveMouseMacroAction||e instanceof ze.ScrollMouseMacroAction?yr.Mouse:void 0},e.prototype.updateEditableMacroAction=function(){var e=this.macroAction?this.macroAction:new ze.TextMacroAction;this.editableMacroAction=ze.MacroActionHelper.createMacroAction(e)},e}(),gr=o["\u0275crt"]({encapsulation:0,styles:[Uo],data:{}});function vr(e){return o["\u0275vid"](0,[(e()(),o["\u0275eld"](0,0,null,null,1,"macro-text-tab",[["class","macro__text"]],null,[[null,"valid"]],function(e,t,n){var i=!0;return"valid"===t&&(i=!1!==e.component.onValid(n)&&i),i},Ho,Bo)),o["\u0275did"](1,4308992,[[1,4],["tab",4]],0,Ko,[o.Renderer],{macroAction:[0,"macroAction"]},{valid:"valid"})],function(e,t){e(t,1,0,t.component.editableMacroAction)},null)}function br(e){return o["\u0275vid"](0,[(e()(),o["\u0275eld"](0,0,null,null,1,"macro-key-tab",[["class","macro__mouse"]],null,[[null,"valid"]],function(e,t,n){var i=!0;return"valid"===t&&(i=!1!==e.component.onValid(n)&&i),i},Xo,Yo)),o["\u0275did"](1,114688,[[1,4],["tab",4]],0,Go,[],{macroAction:[0,"macroAction"]},{valid:"valid"})],function(e,t){e(t,1,0,t.component.editableMacroAction)},null)}function kr(e){return o["\u0275vid"](0,[(e()(),o["\u0275eld"](0,0,null,null,1,"macro-mouse-tab",[["class","macro__mouse"]],null,[[null,"valid"]],function(e,t,n){var i=!0;return"valid"===t&&(i=!1!==e.component.onValid(n)&&i),i},cr,nr)),o["\u0275did"](1,638976,[[1,4],["tab",4]],0,tr,[],{macroAction:[0,"macroAction"]},{valid:"valid"})],function(e,t){e(t,1,0,t.component.editableMacroAction)},null)}function _r(e){return o["\u0275vid"](0,[(e()(),o["\u0275eld"](0,0,null,null,1,"macro-delay-tab",[["class","macro__delay"]],null,[[null,"valid"]],function(e,t,n){var i=!0;return"valid"===t&&(i=!1!==e.component.onValid(n)&&i),i},hr,pr)),o["\u0275did"](1,114688,[[1,4],["tab",4]],0,dr,[],{macroAction:[0,"macroAction"]},{valid:"valid"})],function(e,t){e(t,1,0,t.component.editableMacroAction)},null)}function wr(e){return o["\u0275vid"](0,[o["\u0275qud"](671088640,1,{selectedTab:0}),(e()(),o["\u0275eld"](1,0,null,null,85,"div",[["class","action--editor"]],null,null,null,null,null)),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275eld"](3,0,null,null,67,"div",[["class","row"]],null,null,null,null,null)),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275eld"](5,0,null,null,48,"div",[["class","col-lg-3 editor__tab-links"]],null,null,null,null,null)),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275eld"](7,0,null,null,45,"ul",[["class","nav nav-pills nav-stacked"]],null,null,null,null,null)),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275eld"](9,0,[["macroText",1]],null,9,"li",[],[[2,"active",null]],[[null,"click"]],function(e,t,n){var i=!0,o=e.component;return"click"===t&&(i=!1!==o.selectTab(o.TabName.Text)&&i),i},null,null)),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275eld"](11,0,null,null,6,"a",[],null,null,null,null,null)),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275eld"](13,0,null,null,0,"i",[["class","fa fa-font"]],null,null,null,null,null)),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275eld"](15,0,null,null,1,"span",[],null,null,null,null,null)),(e()(),o["\u0275ted"](-1,null,["Type text"])),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275eld"](20,0,[["macroKeypress",1]],null,9,"li",[],[[2,"active",null]],[[null,"click"]],function(e,t,n){var i=!0,o=e.component;return"click"===t&&(i=!1!==o.selectTab(o.TabName.Keypress)&&i),i},null,null)),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275eld"](22,0,null,null,6,"a",[],null,null,null,null,null)),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275eld"](24,0,null,null,0,"i",[["class","fa fa-keyboard-o"]],null,null,null,null,null)),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275eld"](26,0,null,null,1,"span",[],null,null,null,null,null)),(e()(),o["\u0275ted"](-1,null,["Key action"])),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275eld"](31,0,[["macroMouse",1]],null,9,"li",[],[[2,"active",null]],[[null,"click"]],function(e,t,n){var i=!0,o=e.component;return"click"===t&&(i=!1!==o.selectTab(o.TabName.Mouse)&&i),i},null,null)),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275eld"](33,0,null,null,6,"a",[],null,null,null,null,null)),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275eld"](35,0,null,null,0,"i",[["class","fa fa-mouse-pointer"]],null,null,null,null,null)),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275eld"](37,0,null,null,1,"span",[],null,null,null,null,null)),(e()(),o["\u0275ted"](-1,null,["Mouse action"])),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275eld"](42,0,[["macroDelay",1]],null,9,"li",[],[[2,"active",null]],[[null,"click"]],function(e,t,n){var i=!0,o=e.component;return"click"===t&&(i=!1!==o.selectTab(o.TabName.Delay)&&i),i},null,null)),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275eld"](44,0,null,null,6,"a",[],null,null,null,null,null)),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275eld"](46,0,null,null,0,"i",[["class","fa fa-clock-o"]],null,null,null,null,null)),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275eld"](48,0,null,null,1,"span",[],null,null,null,null,null)),(e()(),o["\u0275ted"](-1,null,["Delay"])),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275eld"](55,0,null,null,14,"div",[["class","col-xs-12 col-lg-9 editor__tabs"]],null,null,null,null,null)),o["\u0275did"](56,16384,null,0,p.n,[],{ngSwitch:[0,"ngSwitch"]},null),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275and"](16777216,null,null,1,null,vr)),o["\u0275did"](59,278528,null,0,p.o,[o.ViewContainerRef,o.TemplateRef,p.n],{ngSwitchCase:[0,"ngSwitchCase"]},null),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275and"](16777216,null,null,1,null,br)),o["\u0275did"](62,278528,null,0,p.o,[o.ViewContainerRef,o.TemplateRef,p.n],{ngSwitchCase:[0,"ngSwitchCase"]},null),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275and"](16777216,null,null,1,null,kr)),o["\u0275did"](65,278528,null,0,p.o,[o.ViewContainerRef,o.TemplateRef,p.n],{ngSwitchCase:[0,"ngSwitchCase"]},null),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275and"](16777216,null,null,1,null,_r)),o["\u0275did"](68,278528,null,0,p.o,[o.ViewContainerRef,o.TemplateRef,p.n],{ngSwitchCase:[0,"ngSwitchCase"]},null),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275eld"](72,0,null,null,13,"div",[["class","row"]],null,null,null,null,null)),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275eld"](74,0,null,null,10,"div",[["class","col-xs-12 flex-button-wrapper editor__actions-container"]],null,null,null,null,null)),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275eld"](76,0,null,null,7,"div",[["class","editor__actions"]],null,null,null,null,null)),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275eld"](78,0,null,null,1,"button",[["class","btn btn-sm btn-default flex-button"],["type","button"]],null,[[null,"click"]],function(e,t,n){var i=!0;return"click"===t&&(i=!1!==e.component.onCancelClick()&&i),i},null,null)),(e()(),o["\u0275ted"](-1,null,[" Cancel "])),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275eld"](81,0,null,null,1,"button",[["class","btn btn-sm btn-primary flex-button"],["type","button"]],[[8,"disabled",0]],[[null,"click"]],function(e,t,n){var i=!0;return"click"===t&&(i=!1!==e.component.onSaveClick()&&i),i},null,null)),(e()(),o["\u0275ted"](-1,null,[" Save "])),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275ted"](-1,null,["\n"])),(e()(),o["\u0275ted"](-1,null,["\n"]))],function(e,t){var n=t.component;e(t,56,0,n.activeTab),e(t,59,0,n.TabName.Text),e(t,62,0,n.TabName.Keypress),e(t,65,0,n.TabName.Mouse),e(t,68,0,n.TabName.Delay)},function(e,t){var n=t.component;e(t,9,0,n.activeTab===n.TabName.Text),e(t,20,0,n.activeTab===n.TabName.Keypress),e(t,31,0,n.activeTab===n.TabName.Mouse),e(t,42,0,n.activeTab===n.TabName.Delay),e(t,81,0,!n.isSelectedMacroValid)})}var Ar=function(){function e(e){this.mapper=e,this.save=new o.EventEmitter,this.cancel=new o.EventEmitter,this.edit=new o.EventEmitter,this.delete=new o.EventEmitter,this.newItem=!1,this.overflow="hidden"}return e.prototype.ngOnInit=function(){this.updateView(),this.macroAction||(this.editing=!0,this.newItem=!0,this.overflow="visible")},e.prototype.ngOnChanges=function(e){e.macroAction&&this.updateView()},e.prototype.saveEditedAction=function(e){this.macroAction=e,this.editing=!1,this.overflow="hidden",this.updateView(),this.save.emit(e)},e.prototype.editAction=function(){this.editable&&!this.editing?(this.editing=!0,this.edit.emit(),this.setOverflow("visible")):this.cancelEdit()},e.prototype.cancelEdit=function(){this.editing=!1,this.overflow="hidden",this.cancel.emit()},e.prototype.deleteAction=function(){this.delete.emit()},e.prototype.updateView=function(){if(this.macroAction)if(this.macroAction instanceof ze.DelayMacroAction)this.iconName="clock",this.title="Delay of "+((e=this.macroAction).delay>0?e.delay/1e3:0)+"s";else if(this.macroAction instanceof ze.TextMacroAction){var e=this.macroAction;this.iconName="font",this.title="Write text: "+e.text}else this.macroAction instanceof ze.KeyMacroAction?this.setKeyActionContent(e=this.macroAction):this.macroAction instanceof ze.MouseButtonMacroAction?this.setMouseButtonActionContent(e=this.macroAction):this.macroAction instanceof ze.MoveMouseMacroAction||this.macroAction instanceof ze.ScrollMouseMacroAction?this.setMouseMoveScrollActionContent(this.macroAction):this.title=this.macroAction.constructor.name;else this.title="New macro action"},e.prototype.setKeyActionContent=function(e){if(e.hasScancode()||e.hasModifiers()){if(e.isTapAction()?(this.iconName="hand-pointer",this.title="Tap key: "):e.isPressAction()?(this.iconName="hand-rock",this.title="Press key: "):e.isReleaseAction()&&(this.iconName="hand-paper",this.title="Release key: "),e.hasScancode()){var t=(this.mapper.scanCodeToText(e.scancode,e.type)||["Unknown"]).join(" ");t&&(this.title+=t)}if(e.hasModifiers())for(var n=ze.KeyModifiers.leftCtrl;n<=ze.KeyModifiers.rightGui;n<<=1)e.isModifierActive(n)&&(this.title+=" "+ze.KeyModifiers[n])}else this.title="Invalid keypress"},e.prototype.setMouseMoveScrollActionContent=function(e){var t,n;e instanceof ze.MoveMouseMacroAction?(this.iconName="mouse-pointer",this.title="Move pointer",t=this.macroAction):(this.iconName="mouse-pointer",this.title="Scroll",t=this.macroAction),0!==Math.abs(t.x)&&(this.title+=" by "+Math.abs(t.x)+"px "+(t.x>0?"leftward":"rightward"),n=!0),0!==Math.abs(t.y)&&(this.title+=" "+(n?"and":"by")+" "+Math.abs(t.y)+"px "+(t.y>0?"downward":"upward"))},e.prototype.setMouseButtonActionContent=function(e){e.isOnlyClickAction()?(this.iconName="mouse-pointer",this.title="Click mouse button: "):e.isOnlyHoldAction()?(this.iconName="hand-rock",this.title="Hold mouse button: "):e.isOnlyReleaseAction()&&(this.iconName="hand-paper",this.title="Release mouse button: ");var t=["Left","Middle","Right"],n=[];e.getMouseButtons().forEach(function(e,i){e&&t[i]&&n.push(t[i])}),this.title+=n.join(", ")},e.prototype.setOverflow=function(e){var t=this;setTimeout(function(){t.overflow=e},600)},e}(),Tr=o["\u0275crt"]({encapsulation:0,styles:[["[_nghost-%COMP%]{overflow:visible;display:block}.macro-item[_nghost-%COMP%]:first-of-type .list-group-item[_ngcontent-%COMP%]{border-radius:4px 4px 0 0}.macro-item[_nghost-%COMP%]:last-of-type .list-group-item[_ngcontent-%COMP%]{border-bottom:0}.gu-transit[_nghost-%COMP%]{opacity:.2}.gu-transit[_nghost-%COMP%] .list-group-item[_ngcontent-%COMP%]{background:#f5f5f5}.action--item[_ngcontent-%COMP%]{display:-webkit-box;display:-ms-flexbox;display:flex;-ms-flex-negative:0;flex-shrink:0;border:0;border-bottom:1px solid #ddd;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.action--item[_ngcontent-%COMP%] icon[_ngcontent-%COMP%]{margin:0 5px}.action--item[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-flex:1;-ms-flex:1;flex:1}.action--item[_ngcontent-%COMP%]:first-child{border-radius:0}.action--item.is-editing[_ngcontent-%COMP%]{background:#f5f5f5}.action--item--wrap[_ngcontent-%COMP%]{-webkit-box-pack:justify;-ms-flex-pack:justify;justify-content:space-between}.action--item--wrap.pointer[_ngcontent-%COMP%]:hover{cursor:pointer;color:#337ab7}.action--title[_ngcontent-%COMP%]{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-flex:1;-ms-flex:1;flex:1}.action--movable[_ngcontent-%COMP%]:hover{cursor:move}.list-group-item[_ngcontent-%COMP%]{margin-bottom:0}.macro-action-editor__container[_ngcontent-%COMP%]{padding-top:0;padding-bottom:0;border-radius:0;border:none;overflow:hidden}"]],data:{animation:[{type:7,name:"toggler",definitions:[{type:0,name:"inactive",styles:{type:6,styles:{height:"0px"},offset:null},options:void 0},{type:0,name:"active",styles:{type:6,styles:{height:"*"},offset:null},options:void 0},{type:1,expr:"inactive <=> active",animation:{type:4,styles:null,timings:"500ms ease-out"},options:null}],options:{}}]}});function Cr(e){return o["\u0275vid"](0,[(e()(),o["\u0275eld"](0,0,null,null,0,"span",[["aria-hidden","true"],["class","glyphicon glyphicon-option-vertical action--movable"]],null,null,null,null,null))],null,null)}function xr(e){return o["\u0275vid"](0,[(e()(),o["\u0275eld"](0,0,null,null,1,"icon",[["name","pencil"]],null,null,null,De,we)),o["\u0275did"](1,114688,null,0,_e,[],{name:[0,"name"]},null)],function(e,t){e(t,1,0,"pencil")},null)}function Or(e){return o["\u0275vid"](0,[(e()(),o["\u0275eld"](0,0,null,null,1,"icon",[["name","trash"]],null,[[null,"click"]],function(e,t,n){var i=!0;return"click"===t&&(i=!1!==e.component.deleteAction()&&i),i},De,we)),o["\u0275did"](1,114688,null,0,_e,[],{name:[0,"name"]},null)],function(e,t){e(t,1,0,"trash")},null)}function Sr(e){return o["\u0275vid"](0,[(e()(),o["\u0275eld"](0,0,null,null,2,"macro-action-editor",[["class","macro-action-editor"]],null,[[null,"cancel"],[null,"save"]],function(e,t,n){var i=!0,o=e.component;return"cancel"===t&&(i=!1!==o.cancelEdit()&&i),"save"===t&&(i=!1!==o.saveEditedAction(n)&&i),i},wr,gr)),o["\u0275did"](1,638976,null,0,mr,[],{macroAction:[0,"macroAction"]},{save:"save",cancel:"cancel"}),(e()(),o["\u0275ted"](-1,null,["\n "]))],function(e,t){e(t,1,0,t.component.macroAction)},null)}function Mr(e){return o["\u0275vid"](0,[(e()(),o["\u0275eld"](0,0,null,null,19,"div",[["class","list-group-item action--item"]],[[2,"is-editing",null]],null,null,null,null)),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275and"](16777216,null,null,1,null,Cr)),o["\u0275did"](3,16384,null,0,p.k,[o.ViewContainerRef,o.TemplateRef],{ngIf:[0,"ngIf"]},null),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275eld"](5,0,null,null,10,"div",[["class","action--item--wrap"]],[[2,"pointer",null]],[[null,"click"]],function(e,t,n){var i=!0;return"click"===t&&(i=!1!==e.component.editAction()&&i),i},null,null)),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275eld"](7,0,null,null,1,"icon",[],null,null,null,De,we)),o["\u0275did"](8,114688,null,0,_e,[],{name:[0,"name"]},null),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275eld"](10,0,null,null,1,"div",[["class","action--title"]],null,null,null,null,null)),(e()(),o["\u0275ted"](11,null,["",""])),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275and"](16777216,null,null,1,null,xr)),o["\u0275did"](14,16384,null,0,p.k,[o.ViewContainerRef,o.TemplateRef],{ngIf:[0,"ngIf"]},null),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275and"](16777216,null,null,1,null,Or)),o["\u0275did"](18,16384,null,0,p.k,[o.ViewContainerRef,o.TemplateRef],{ngIf:[0,"ngIf"]},null),(e()(),o["\u0275ted"](-1,null,["\n"])),(e()(),o["\u0275ted"](-1,null,["\n"])),(e()(),o["\u0275eld"](21,0,null,null,4,"div",[["class","list-group-item macro-action-editor__container"]],[[24,"@toggler",0],[4,"overflow",null]],null,null,null,null)),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275and"](16777216,null,null,1,null,Sr)),o["\u0275did"](24,16384,null,0,p.k,[o.ViewContainerRef,o.TemplateRef],{ngIf:[0,"ngIf"]},null),(e()(),o["\u0275ted"](-1,null,["\n"])),(e()(),o["\u0275ted"](-1,null,["\n"]))],function(e,t){var n=t.component;e(t,3,0,n.movable),e(t,8,0,n.iconName),e(t,14,0,n.editable&&n.macroAction&&!n.editing),e(t,18,0,n.deletable),e(t,24,0,n.editable||n.newItem)},function(e,t){var n=t.component;e(t,0,0,n.editing),e(t,5,0,n.editable),e(t,11,0,n.title),e(t,21,0,n.editable&&n.editing||n.newItem?"active":"inactive",n.overflow)})}var Er=o["\u0275crt"]({encapsulation:0,styles:[["[_nghost-%COMP%]{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-orient:vertical;-webkit-box-direction:normal;-ms-flex-direction:column;flex-direction:column}[_nghost-%COMP%] > span[_ngcontent-%COMP%]{text-align:center}[_nghost-%COMP%] .macro-selector[_ngcontent-%COMP%]{display:-webkit-box;display:-ms-flexbox;display:flex;margin-top:2px}[_nghost-%COMP%] .macro-selector[_ngcontent-%COMP%] b[_ngcontent-%COMP%]{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-align:center;-ms-flex-align:center;align-items:center;margin-right:7px}[_nghost-%COMP%] .macro-selector[_ngcontent-%COMP%] ngx-select[_ngcontent-%COMP%]{-webkit-box-flex:1;-ms-flex:1;flex:1}[_nghost-%COMP%] .macro-action-container[_ngcontent-%COMP%]{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-orient:vertical;-webkit-box-direction:normal;-ms-flex-direction:column;flex-direction:column;min-height:200px;max-height:300px;margin:20px 0;overflow-x:hidden;overflow-y:auto;border-radius:4px;border:1px solid #ddd}[_nghost-%COMP%] .macro-action-container[_ngcontent-%COMP%] .list-group[_ngcontent-%COMP%]{margin-bottom:0;border:0}"]],data:{}});function Pr(e){return o["\u0275vid"](0,[(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275eld"](1,0,null,null,1,"span",[],null,null,null,null,null)),(e()(),o["\u0275ted"](-1,null,[" No macros are available to choose from. Create a macro first! "])),(e()(),o["\u0275ted"](-1,null,["\n"]))],null,null)}function Ir(e){return o["\u0275vid"](0,[(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275eld"](1,0,null,null,9,"span",[],null,null,null,null,null)),o["\u0275did"](2,278528,null,0,p.i,[o.IterableDiffers,o.KeyValueDiffers,o.ElementRef,o.Renderer2],{ngClass:[0,"ngClass"]},null),o["\u0275pod"](3,{"indent-dropdown-item":0}),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275eld"](5,0,null,null,1,"span",[],null,null,null,null,null)),(e()(),o["\u0275ted"](6,null,["",""])),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275eld"](8,0,null,null,1,"span",[["class","scancode--searchterm"]],null,null,null,null,null)),(e()(),o["\u0275ted"](9,null,["\n ","\n "])),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275ted"](-1,null,["\n "]))],function(e,t){e(t,2,0,e(t,3,0,"-1"!==t.context.$implicit.data.id))},function(e,t){e(t,6,0,t.context.$implicit.text),e(t,9,0,null==t.context.$implicit.data.additional?null:t.context.$implicit.data.additional.explanation)})}function Rr(e){return o["\u0275vid"](0,[(e()(),o["\u0275eld"](0,0,null,null,2,"macro-item",[["class","macro-item"]],null,null,null,Mr,Tr)),o["\u0275did"](1,638976,null,0,Ar,[Gt],{macroAction:[0,"macroAction"],editable:[1,"editable"]},null),(e()(),o["\u0275ted"](-1,null,["\n "]))],function(e,t){e(t,1,0,t.context.$implicit,!1)},null)}function Dr(e){return o["\u0275vid"](0,[(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275eld"](1,0,null,null,2,"p",[],null,null,null,null,null)),(e()(),o["\u0275eld"](2,0,null,null,1,"i",[],null,null,null,null,null)),(e()(),o["\u0275ted"](-1,null,["Please note that macro playback is not implemented yet. You can bind macros, but they won't have any effect until firmware support is implemented. We're working on this."])),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275eld"](5,0,null,null,18,"div",[["class","macro-selector"]],null,null,null,null,null)),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275eld"](7,0,null,null,1,"b",[],null,null,null,null,null)),(e()(),o["\u0275ted"](-1,null,[" Play macro: "])),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275eld"](10,0,null,null,12,"ngx-select",[["optionTextField","text"],["optionValueField","id"],["size","small"]],[[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,"select"],["document","focusin"],["document","click"]],function(e,t,n){var i=!0,r=e.component;return"document:focusin"===t&&(i=!1!==o["\u0275nov"](e,11).documentClick(n)&&i),"document:click"===t&&(i=!1!==o["\u0275nov"](e,11).documentClick(n)&&i),"select"===t&&(i=!1!==r.onChange(n)&&i),i},io,Ki)),o["\u0275did"](11,2408448,null,3,Vi,[o.IterableDiffers,I.c,o.ChangeDetectorRef,[2,ji]],{items:[0,"items"],optionValueField:[1,"optionValueField"],optionTextField:[2,"optionTextField"],size:[3,"size"],autoActiveOnMouseEnter:[4,"autoActiveOnMouseEnter"]},{select:"select"}),o["\u0275qud"](335544320,1,{templateOption:0}),o["\u0275qud"](335544320,2,{templateSelectedOption:0}),o["\u0275qud"](335544320,3,{templateOptionNotFound:0}),o["\u0275prd"](1024,null,je.NG_VALUE_ACCESSOR,function(e){return[e]},[Vi]),o["\u0275did"](16,671744,null,0,je.NgModel,[[8,null],[8,null],[8,null],[2,je.NG_VALUE_ACCESSOR]],{model:[0,"model"]},null),o["\u0275prd"](2048,null,je.NgControl,null,[je.NgModel]),o["\u0275did"](18,16384,null,0,je.NgControlStatus,[je.NgControl],null,null),(e()(),o["\u0275ted"](-1,null,["\n\n "])),(e()(),o["\u0275and"](0,[[1,2]],null,1,null,Ir)),o["\u0275did"](21,16384,null,0,Ri,[o.TemplateRef],null,null),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275eld"](25,0,null,null,7,"div",[["class","macro-action-container"]],null,null,null,null,null)),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275eld"](27,0,null,null,4,"div",[["class","list-group"]],null,null,null,null,null)),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275and"](16777216,null,null,1,null,Rr)),o["\u0275did"](30,802816,null,0,p.j,[o.ViewContainerRef,o.TemplateRef,o.IterableDiffers],{ngForOf:[0,"ngForOf"]},null),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275ted"](-1,null,["\n"]))],function(e,t){var n=t.component;e(t,11,0,n.macroOptions,"id","text","small",!1),e(t,16,0,null==n.macroOptions[n.selectedMacroIndex]?null:n.macroOptions[n.selectedMacroIndex].id),e(t,30,0,n.macros[n.selectedMacroIndex].macroActions)},function(e,t){e(t,10,0,o["\u0275nov"](t,18).ngClassUntouched,o["\u0275nov"](t,18).ngClassTouched,o["\u0275nov"](t,18).ngClassPristine,o["\u0275nov"](t,18).ngClassDirty,o["\u0275nov"](t,18).ngClassValid,o["\u0275nov"](t,18).ngClassInvalid,o["\u0275nov"](t,18).ngClassPending)})}function Nr(e){return o["\u0275vid"](2,[(e()(),o["\u0275and"](16777216,null,null,1,null,Pr)),o["\u0275did"](1,16384,null,0,p.k,[o.ViewContainerRef,o.TemplateRef],{ngIf:[0,"ngIf"]},null),(e()(),o["\u0275ted"](-1,null,["\n"])),(e()(),o["\u0275and"](16777216,null,null,1,null,Dr)),o["\u0275did"](4,16384,null,0,p.k,[o.ViewContainerRef,o.TemplateRef],{ngIf:[0,"ngIf"]},null),(e()(),o["\u0275ted"](-1,null,["\n"]))],function(e,t){var n=t.component;e(t,1,0,0===n.macroOptions.length),e(t,4,0,n.macroOptions.length>0)},null)}var jr=o["\u0275crt"]({encapsulation:0,styles:[["[_nghost-%COMP%]{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-orient:vertical;-webkit-box-direction:normal;-ms-flex-direction:column;flex-direction:column}[_nghost-%COMP%] > span[_ngcontent-%COMP%]{text-align:center}[_nghost-%COMP%] > div[_ngcontent-%COMP%]{display:-webkit-box;display:-ms-flexbox;display:flex;margin-top:2px}[_nghost-%COMP%] > div[_ngcontent-%COMP%] b[_ngcontent-%COMP%]{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-align:center;-ms-flex-align:center;align-items:center;margin-right:7px}[_nghost-%COMP%] > div[_ngcontent-%COMP%] ngx-select[_ngcontent-%COMP%]{-webkit-box-flex:1;-ms-flex:1;flex:1}[_nghost-%COMP%] > div[_ngcontent-%COMP%]:last-child{margin-top:10px}[_nghost-%COMP%] > div[_ngcontent-%COMP%]:last-child img[_ngcontent-%COMP%]{max-height:100%;max-width:100%}.empty[_ngcontent-%COMP%]{display:-webkit-box;display:-ms-flexbox;display:flex}.empty[_ngcontent-%COMP%] img[_ngcontent-%COMP%]{display:-webkit-box;display:-ms-flexbox;display:flex;width:100%;height:100%;position:relative}"]],data:{}});function Lr(e){return o["\u0275vid"](0,[(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275eld"](1,0,null,null,1,"span",[],null,null,null,null,null)),(e()(),o["\u0275ted"](-1,null,[" No keymaps are available to choose from. Create a keymap first! "])),(e()(),o["\u0275ted"](-1,null,["\n"]))],null,null)}function Ur(e){return o["\u0275vid"](0,[(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275eld"](1,0,null,null,9,"span",[],null,null,null,null,null)),o["\u0275did"](2,278528,null,0,p.i,[o.IterableDiffers,o.KeyValueDiffers,o.ElementRef,o.Renderer2],{ngClass:[0,"ngClass"]},null),o["\u0275pod"](3,{"indent-dropdown-item":0}),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275eld"](5,0,null,null,1,"span",[],null,null,null,null,null)),(e()(),o["\u0275ted"](6,null,["",""])),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275eld"](8,0,null,null,1,"span",[["class","scancode--searchterm"]],null,null,null,null,null)),(e()(),o["\u0275ted"](9,null,["\n ","\n "])),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275ted"](-1,null,["\n "]))],function(e,t){e(t,2,0,e(t,3,0,"-1"!==t.context.$implicit.data.id))},function(e,t){e(t,6,0,t.context.$implicit.text),e(t,9,0,null==t.context.$implicit.data.additional?null:t.context.$implicit.data.additional.explanation)})}function Vr(e){return o["\u0275vid"](0,[(e()(),o["\u0275eld"](0,0,null,null,3,"div",[["class","empty"]],null,null,null,null,null)),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275eld"](2,0,null,null,0,"img",[["src","assets/images/base-layer--blank.svg"]],null,null,null,null,null)),(e()(),o["\u0275ted"](-1,null,["\n "]))],null,null)}function Fr(e){return o["\u0275vid"](0,[(e()(),o["\u0275eld"](0,0,null,null,2,"svg-keyboard",[],null,null,null,ki,gi)),o["\u0275did"](1,638976,null,0,mi,[hi,I.c],{moduleConfig:[0,"moduleConfig"]},null),(e()(),o["\u0275ted"](-1,null,["\n "]))],function(e,t){e(t,1,0,t.component.selectedKeymap.layers[0].modules)},null)}function Kr(e){return o["\u0275vid"](0,[(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275eld"](1,0,null,null,18,"div",[],null,null,null,null,null)),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275eld"](3,0,null,null,1,"b",[],null,null,null,null,null)),(e()(),o["\u0275ted"](-1,null,["Switch to keymap:"])),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275eld"](6,0,null,null,12,"ngx-select",[["optionTextField","text"],["optionValueField","id"],["size","small"]],[[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,"select"],["document","focusin"],["document","click"]],function(e,t,n){var i=!0,r=e.component;return"document:focusin"===t&&(i=!1!==o["\u0275nov"](e,7).documentClick(n)&&i),"document:click"===t&&(i=!1!==o["\u0275nov"](e,7).documentClick(n)&&i),"select"===t&&(i=!1!==r.onChange(n)&&i),i},io,Ki)),o["\u0275did"](7,2408448,null,3,Vi,[o.IterableDiffers,I.c,o.ChangeDetectorRef,[2,ji]],{items:[0,"items"],optionValueField:[1,"optionValueField"],optionTextField:[2,"optionTextField"],size:[3,"size"],autoActiveOnMouseEnter:[4,"autoActiveOnMouseEnter"]},{select:"select"}),o["\u0275qud"](335544320,1,{templateOption:0}),o["\u0275qud"](335544320,2,{templateSelectedOption:0}),o["\u0275qud"](335544320,3,{templateOptionNotFound:0}),o["\u0275prd"](1024,null,je.NG_VALUE_ACCESSOR,function(e){return[e]},[Vi]),o["\u0275did"](12,671744,null,0,je.NgModel,[[8,null],[8,null],[8,null],[2,je.NG_VALUE_ACCESSOR]],{model:[0,"model"]},null),o["\u0275prd"](2048,null,je.NgControl,null,[je.NgModel]),o["\u0275did"](14,16384,null,0,je.NgControlStatus,[je.NgControl],null,null),(e()(),o["\u0275ted"](-1,null,["\n\n "])),(e()(),o["\u0275and"](0,[[1,2]],null,1,null,Ur)),o["\u0275did"](17,16384,null,0,Ri,[o.TemplateRef],null,null),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275eld"](21,0,null,null,7,"div",[],null,null,null,null,null)),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275and"](16777216,null,null,1,null,Vr)),o["\u0275did"](24,16384,null,0,p.k,[o.ViewContainerRef,o.TemplateRef],{ngIf:[0,"ngIf"]},null),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275and"](16777216,null,null,1,null,Fr)),o["\u0275did"](27,16384,null,0,p.k,[o.ViewContainerRef,o.TemplateRef],{ngIf:[0,"ngIf"]},null),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275ted"](-1,null,["\n"]))],function(e,t){var n=t.component;e(t,7,0,n.keymapOptions,"id","text","small",!1),e(t,12,0,(null==n.selectedKeymap?null:n.selectedKeymap.abbreviation)||-1),e(t,24,0,!(null!=n.selectedKeymap&&n.selectedKeymap.abbreviation)),e(t,27,0,null==n.selectedKeymap?null:n.selectedKeymap.abbreviation)},function(e,t){e(t,6,0,o["\u0275nov"](t,14).ngClassUntouched,o["\u0275nov"](t,14).ngClassTouched,o["\u0275nov"](t,14).ngClassPristine,o["\u0275nov"](t,14).ngClassDirty,o["\u0275nov"](t,14).ngClassValid,o["\u0275nov"](t,14).ngClassInvalid,o["\u0275nov"](t,14).ngClassPending)})}function Br(e){return o["\u0275vid"](2,[(e()(),o["\u0275and"](16777216,null,null,1,null,Lr)),o["\u0275did"](1,16384,null,0,p.k,[o.ViewContainerRef,o.TemplateRef],{ngIf:[0,"ngIf"]},null),(e()(),o["\u0275ted"](-1,null,["\n"])),(e()(),o["\u0275and"](16777216,null,null,1,null,Kr)),o["\u0275did"](4,16384,null,0,p.k,[o.ViewContainerRef,o.TemplateRef],{ngIf:[0,"ngIf"]},null),(e()(),o["\u0275ted"](-1,null,["\n"]))],function(e,t){var n=t.component;e(t,1,0,0===n.keymapOptions.length),e(t,4,0,n.keymapOptions.length>0)},null)}var Hr=o["\u0275crt"]({encapsulation:0,styles:[["[_nghost-%COMP%]{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-pack:center;-ms-flex-pack:center;justify-content:center;padding:2rem 0}"]],data:{}});function Wr(e){return o["\u0275vid"](2,[(e()(),o["\u0275ted"](-1,null,["This key is unassigned and has no functionality."]))],null,null)}var zr=function(e){return e[e.Keypress=0]="Keypress",e[e.Layer=1]="Layer",e[e.Mouse=2]="Mouse",e[e.Macro=3]="Macro",e[e.Keymap=4]="Keymap",e[e.None=5]="None",e}({}),$r=function(){function e(e){this.cancel=new o.EventEmitter,this.remap=new o.EventEmitter,this.tabName=zr,this.leftArrow=!1,this.rightArrow=!1,this.topPosition=0,this.leftPosition=0,this.currentKeymap$=new Si.BehaviorSubject(void 0),this.animationState="closed",this.keymaps$=e.let(Object(jn.b)()).combineLatest(this.currentKeymap$).map(function(e){var t=e[1];return e[0].filter(function(e){return t.abbreviation!==e.abbreviation})})}return e.prototype.ngOnChanges=function(e){this.keyPosition&&this.wrapPosition&&(e.keyPosition||e.wrapPosition)&&this.calculatePosition(),e.defaultKeyAction&&this.selectTab(this.defaultKeyAction instanceof ze.KeystrokeAction?zr.Keypress:this.defaultKeyAction instanceof ze.SwitchLayerAction?zr.Layer:this.defaultKeyAction instanceof ze.MouseAction?zr.Mouse:this.defaultKeyAction instanceof ze.PlayMacroAction?zr.Macro:this.defaultKeyAction instanceof ze.SwitchKeymapAction?zr.Keymap:zr.None),e.visible&&(this.animationState=e.visible.currentValue?"opened":"closed"),e.currentKeymap&&this.currentKeymap$.next(this.currentKeymap)},e.prototype.onCancelClick=function(){this.cancel.emit(void 0)},e.prototype.onRemapKey=function(){if(this.keyActionValid)try{this.remap.emit({remapOnAllKeymap:this.remapInfo.remapOnAllKeymap,remapOnAllLayer:this.remapInfo.remapOnAllLayer,action:this.selectedTab.toKeyAction()})}catch(e){console.error(e)}},e.prototype.onEscape=function(){this.cancel.emit()},e.prototype.onKeyDown=function(e){this.visible&&(this.onRemapKey(),e.preventDefault())},e.prototype.selectTab=function(e){this.activeTab=e},e.prototype.onOverlay=function(){this.cancel.emit(void 0)},e.prototype.calculatePosition=function(){var e=this.wrapPosition.left+265,t=this.popoverHost.nativeElement,n=this.keyPosition.left+this.keyPosition.width/2;this.leftArrow=ne+this.wrapPosition.width,this.leftArrow?n=this.keyPosition.left:this.rightArrow?n=this.keyPosition.left-t.offsetWidth+this.keyPosition.width:n-=t.offsetWidth/2,this.topPosition=this.keyPosition.top+this.keyPosition.height+7+window.scrollY,this.leftPosition=n},e}(),qr=o["\u0275crt"]({encapsulation:0,styles:[[".popover[_ngcontent-%COMP%]{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-orient:vertical;-webkit-box-direction:normal;-ms-flex-direction:column;flex-direction:column;padding:0;max-width:568px;width:100%;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.popover.leftArrow[_ngcontent-%COMP%] .arrowCustom[_ngcontent-%COMP%]{-webkit-transform:none;transform:none;left:22px}.popover.rightArrow[_ngcontent-%COMP%] .arrowCustom[_ngcontent-%COMP%]{-webkit-transform:none;transform:none;right:22px;left:auto}.nav-tabs[_ngcontent-%COMP%] > li[_ngcontent-%COMP%], .popover[_ngcontent-%COMP%] > .container-fluid[_ngcontent-%COMP%]{overflow:hidden}.arrowCustom[_ngcontent-%COMP%]{position:absolute;top:-16px;left:50%;-webkit-transform:translateX(-50%);transform:translateX(-50%);width:41px;height:16px}.arrowCustom[_ngcontent-%COMP%]:before{content:'';width:0;height:0;border-left:21px solid transparent;border-right:21px solid transparent;border-bottom:17px solid rgba(0,0,0,.2);display:block;position:absolute;top:-1px}.arrowCustom[_ngcontent-%COMP%]:after{content:'';width:0;height:0;border-left:20px solid transparent;border-right:20px solid transparent;border-bottom:16px solid #f7f7f7;display:block;position:absolute;top:0}.popover-action[_ngcontent-%COMP%]{padding:8px 14px;margin:0;font-size:14px;background-color:#f7f7f7;border-top:1px solid #ebebeb;border-radius:0 0 5px 5px}.popover-title.menu-tabs[_ngcontent-%COMP%]{padding:.5rem .5rem 0;display:block}.popover-title.menu-tabs[_ngcontent-%COMP%] .nav-tabs[_ngcontent-%COMP%]{position:relative;top:1px;display:-webkit-box;display:-ms-flexbox;display:flex}.popover-title.menu-tabs[_ngcontent-%COMP%] .nav-tabs[_ngcontent-%COMP%] .menu-tabs--item[_ngcontent-%COMP%]{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-align:center;-ms-flex-align:center;align-items:center;cursor:pointer}.popover-title.menu-tabs[_ngcontent-%COMP%] .nav-tabs[_ngcontent-%COMP%] .menu-tabs--item[_ngcontent-%COMP%] i[_ngcontent-%COMP%]{margin-right:.25em}.popover-content[_ngcontent-%COMP%]{padding:10px 24px}.popover-overlay[_ngcontent-%COMP%]{position:fixed;width:100%;height:0;top:0;left:0;z-index:1050;background:rgba(0,0,0,0);-webkit-transition:background .2s ease-out,height 0s .2s linear;transition:background .2s ease-out,height 0s .2s linear}.popover-overlay.display[_ngcontent-%COMP%]{height:100%;background:rgba(0,0,0,.2);-webkit-transition:background .2s ease-out;transition:background .2s ease-out}.popover-action-form[_ngcontent-%COMP%]{margin-top:4px}.popover-action-form[_ngcontent-%COMP%] label[_ngcontent-%COMP%]{margin-right:5px}"]],data:{animation:[{type:7,name:"popover",definitions:[{type:0,name:"closed",styles:{type:6,styles:{transform:"translateY(30px)",visibility:"hidden",opacity:0},offset:null},options:void 0},{type:0,name:"opened",styles:{type:6,styles:{transform:"translateY(0)",visibility:"visible",opacity:1},offset:null},options:void 0},{type:1,expr:"opened => closed",animation:[{type:4,styles:{type:5,steps:[{type:6,styles:{transform:"translateY(0)",visibility:"visible",opacity:1,offset:0},offset:null},{type:6,styles:{transform:"translateY(30px)",visibility:"hidden",opacity:0,offset:1},offset:null}]},timings:"200ms ease-out"}],options:null},{type:1,expr:"closed => opened",animation:[{type:6,styles:{visibility:"visible"},offset:null},{type:4,styles:{type:5,steps:[{type:6,styles:{transform:"translateY(30px)",opacity:0,offset:0},offset:null},{type:6,styles:{transform:"translateY(0)",opacity:1,offset:1},offset:null}]},timings:"200ms ease-out"}],options:null}],options:{}}]}});function Gr(e){return o["\u0275vid"](0,[(e()(),o["\u0275eld"](0,0,null,null,1,"keypress-tab",[["class","popover-content"]],null,[[null,"validAction"]],function(e,t,n){var i=!0;return"validAction"===t&&(i=!1!==(e.component.keyActionValid=n)&&i),i},vo,po)),o["\u0275did"](1,573440,[[1,4],["tab",4]],0,co,[Gt],{defaultKeyAction:[0,"defaultKeyAction"],secondaryRoleEnabled:[1,"secondaryRoleEnabled"]},{validAction:"validAction"})],function(e,t){e(t,1,0,t.component.defaultKeyAction,!0)},null)}function Yr(e){return o["\u0275vid"](0,[(e()(),o["\u0275eld"](0,0,null,null,1,"layer-tab",[["class","popover-content"]],[[2,"no-base",null]],[[null,"validAction"]],function(e,t,n){var i=!0;return"validAction"===t&&(i=!1!==(e.component.keyActionValid=n)&&i),i},So,ko)),o["\u0275did"](1,573440,[[1,4],["tab",4]],0,bo,[],{defaultKeyAction:[0,"defaultKeyAction"],currentLayer:[1,"currentLayer"],allowLayerDoubleTap:[2,"allowLayerDoubleTap"]},{validAction:"validAction"})],function(e,t){var n=t.component;e(t,1,0,n.defaultKeyAction,n.currentLayer,n.allowLayerDoubleTap)},function(e,t){e(t,0,0,o["\u0275nov"](t,1).isNotBase)})}function Qr(e){return o["\u0275vid"](0,[(e()(),o["\u0275eld"](0,0,null,null,1,"mouse-tab",[["class","popover-content"]],null,[[null,"validAction"]],function(e,t,n){var i=!0;return"validAction"===t&&(i=!1!==(e.component.keyActionValid=n)&&i),i},Lo,Eo)),o["\u0275did"](1,573440,[[1,4],["tab",4]],0,Mo,[],{defaultKeyAction:[0,"defaultKeyAction"]},{validAction:"validAction"})],function(e,t){e(t,1,0,t.component.defaultKeyAction)},null)}function Jr(e){return o["\u0275vid"](0,[(e()(),o["\u0275eld"](0,0,null,null,1,"macro-tab",[["class","popover-content"]],null,[[null,"validAction"]],function(e,t,n){var i=!0;return"validAction"===t&&(i=!1!==(e.component.keyActionValid=n)&&i),i},Nr,Er)),o["\u0275did"](1,770048,[[1,4],["tab",4]],0,zo,[u.m],{defaultKeyAction:[0,"defaultKeyAction"]},{validAction:"validAction"})],function(e,t){e(t,1,0,t.component.defaultKeyAction)},null)}function Zr(e){return o["\u0275vid"](0,[(e()(),o["\u0275eld"](0,0,null,null,2,"keymap-tab",[["class","popover-content"]],null,[[null,"validAction"]],function(e,t,n){var i=!0;return"validAction"===t&&(i=!1!==(e.component.keyActionValid=n)&&i),i},Br,jr)),o["\u0275did"](1,573440,[[1,4],["tab",4]],0,Wo,[],{defaultKeyAction:[0,"defaultKeyAction"],keymaps:[1,"keymaps"]},{validAction:"validAction"}),o["\u0275pid"](131072,p.b,[o.ChangeDetectorRef])],function(e,t){var n=t.component;e(t,1,0,n.defaultKeyAction,o["\u0275unv"](t,1,1,o["\u0275nov"](t,2).transform(n.keymaps$)))},null)}function Xr(e){return o["\u0275vid"](0,[(e()(),o["\u0275eld"](0,0,null,null,1,"none-tab",[["class","popover-content"]],null,[[null,"validAction"]],function(e,t,n){var i=!0;return"validAction"===t&&(i=!1!==(e.component.keyActionValid=n)&&i),i},Wr,Hr)),o["\u0275did"](1,114688,[[1,4],["tab",4]],0,$o,[],null,{validAction:"validAction"})],function(e,t){e(t,1,0)},null)}function el(e){return o["\u0275vid"](2,[o["\u0275qud"](671088640,1,{selectedTab:0}),o["\u0275qud"](402653184,2,{popoverHost:0}),(e()(),o["\u0275eld"](2,0,[[2,0],["popover",1]],null,151,"div",[["class","popover"]],[[24,"@popover",0],[4,"top","px"],[4,"left","px"]],null,null,null,null)),o["\u0275did"](3,278528,null,0,p.i,[o.IterableDiffers,o.KeyValueDiffers,o.ElementRef,o.Renderer2],{klass:[0,"klass"],ngClass:[1,"ngClass"]},null),o["\u0275pod"](4,{leftArrow:0,rightArrow:1}),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275eld"](6,0,null,null,0,"div",[["class","arrowCustom"]],null,null,null,null,null)),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275eld"](8,0,null,null,70,"div",[["class","popover-title menu-tabs"]],null,null,null,null,null)),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275eld"](10,0,null,null,67,"ul",[["class","nav nav-tabs popover-menu"]],null,null,null,null,null)),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275eld"](12,0,[["keypress",1]],null,9,"li",[],[[2,"active",null]],[[null,"click"]],function(e,t,n){var i=!0,o=e.component;return"click"===t&&(i=!1!==o.selectTab(o.tabName.Keypress)&&i),i},null,null)),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275eld"](14,0,null,null,6,"a",[["class","menu-tabs--item"]],null,null,null,null,null)),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275eld"](16,0,null,null,0,"i",[["class","fa fa-keyboard-o"]],null,null,null,null,null)),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275eld"](18,0,null,null,1,"span",[],null,null,null,null,null)),(e()(),o["\u0275ted"](-1,null,["Keypress"])),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275eld"](23,0,[["layer",1]],null,9,"li",[],[[2,"active",null]],[[null,"click"]],function(e,t,n){var i=!0,o=e.component;return"click"===t&&(i=!1!==o.selectTab(o.tabName.Layer)&&i),i},null,null)),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275eld"](25,0,null,null,6,"a",[["class","menu-tabs--item"]],null,null,null,null,null)),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275eld"](27,0,null,null,0,"i",[["class","fa fa-clone"]],null,null,null,null,null)),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275eld"](29,0,null,null,1,"span",[],null,null,null,null,null)),(e()(),o["\u0275ted"](-1,null,["Layer"])),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275eld"](34,0,[["mouse",1]],null,9,"li",[],[[2,"active",null]],[[null,"click"]],function(e,t,n){var i=!0,o=e.component;return"click"===t&&(i=!1!==o.selectTab(o.tabName.Mouse)&&i),i},null,null)),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275eld"](36,0,null,null,6,"a",[["class","menu-tabs--item"]],null,null,null,null,null)),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275eld"](38,0,null,null,0,"i",[["class","fa fa-mouse-pointer"]],null,null,null,null,null)),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275eld"](40,0,null,null,1,"span",[],null,null,null,null,null)),(e()(),o["\u0275ted"](-1,null,["Mouse"])),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275eld"](45,0,[["macro",1]],null,9,"li",[],[[2,"active",null]],[[null,"click"]],function(e,t,n){var i=!0,o=e.component;return"click"===t&&(i=!1!==o.selectTab(o.tabName.Macro)&&i),i},null,null)),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275eld"](47,0,null,null,6,"a",[["class","menu-tabs--item"]],null,null,null,null,null)),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275eld"](49,0,null,null,0,"i",[["class","fa fa-play"]],null,null,null,null,null)),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275eld"](51,0,null,null,1,"span",[],null,null,null,null,null)),(e()(),o["\u0275ted"](-1,null,["Macro"])),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275eld"](56,0,[["keymap",1]],null,9,"li",[],[[2,"active",null]],[[null,"click"]],function(e,t,n){var i=!0,o=e.component;return"click"===t&&(i=!1!==o.selectTab(o.tabName.Keymap)&&i),i},null,null)),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275eld"](58,0,null,null,6,"a",[["class","menu-tabs--item"]],null,null,null,null,null)),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275eld"](60,0,null,null,0,"i",[["class","fa fa-keyboard-o"]],null,null,null,null,null)),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275eld"](62,0,null,null,1,"span",[],null,null,null,null,null)),(e()(),o["\u0275ted"](-1,null,["Keymap"])),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275eld"](67,0,[["none",1]],null,9,"li",[],[[2,"active",null]],[[null,"click"]],function(e,t,n){var i=!0,o=e.component;return"click"===t&&(i=!1!==o.selectTab(o.tabName.None)&&i),i},null,null)),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275eld"](69,0,null,null,6,"a",[["class","menu-tabs--item"]],null,null,null,null,null)),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275eld"](71,0,null,null,0,"i",[["class","fa fa-ban"]],null,null,null,null,null)),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275eld"](73,0,null,null,1,"span",[],null,null,null,null,null)),(e()(),o["\u0275ted"](-1,null,["None"])),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275eld"](80,0,null,null,20,"div",[],null,null,null,null,null)),o["\u0275did"](81,16384,null,0,p.n,[],{ngSwitch:[0,"ngSwitch"]},null),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275and"](16777216,null,null,1,null,Gr)),o["\u0275did"](84,278528,null,0,p.o,[o.ViewContainerRef,o.TemplateRef,p.n],{ngSwitchCase:[0,"ngSwitchCase"]},null),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275and"](16777216,null,null,1,null,Yr)),o["\u0275did"](87,278528,null,0,p.o,[o.ViewContainerRef,o.TemplateRef,p.n],{ngSwitchCase:[0,"ngSwitchCase"]},null),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275and"](16777216,null,null,1,null,Qr)),o["\u0275did"](90,278528,null,0,p.o,[o.ViewContainerRef,o.TemplateRef,p.n],{ngSwitchCase:[0,"ngSwitchCase"]},null),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275and"](16777216,null,null,1,null,Jr)),o["\u0275did"](93,278528,null,0,p.o,[o.ViewContainerRef,o.TemplateRef,p.n],{ngSwitchCase:[0,"ngSwitchCase"]},null),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275and"](16777216,null,null,1,null,Zr)),o["\u0275did"](96,278528,null,0,p.o,[o.ViewContainerRef,o.TemplateRef,p.n],{ngSwitchCase:[0,"ngSwitchCase"]},null),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275and"](16777216,null,null,1,null,Xr)),o["\u0275did"](99,278528,null,0,p.o,[o.ViewContainerRef,o.TemplateRef,p.n],{ngSwitchCase:[0,"ngSwitchCase"]},null),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275eld"](102,0,null,null,50,"div",[["class","popover-action"]],null,null,null,null,null)),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275eld"](104,0,null,null,38,"form",[["class","form-inline d-inline-block popover-action-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(e,t,n){var i=!0;return"submit"===t&&(i=!1!==o["\u0275nov"](e,106).onSubmit(n)&&i),"reset"===t&&(i=!1!==o["\u0275nov"](e,106).onReset()&&i),i},null,null)),o["\u0275did"](105,16384,null,0,je["\u0275bf"],[],null,null),o["\u0275did"](106,4210688,null,0,je.NgForm,[[8,null],[8,null]],null,null),o["\u0275prd"](2048,null,je.ControlContainer,null,[je.NgForm]),o["\u0275did"](108,16384,null,0,je.NgControlStatusGroup,[je.ControlContainer],null,null),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275eld"](110,0,null,null,11,"div",[["class","checkbox"]],null,null,null,null,null)),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275eld"](112,0,null,null,8,"label",[],null,null,null,null,null)),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275eld"](114,0,null,null,5,"input",[["name","remapOnAllKeymap"],["type","checkbox"]],[[2,"ng-untouched",null],[2,"ng-touched",null],[2,"ng-pristine",null],[2,"ng-dirty",null],[2,"ng-valid",null],[2,"ng-invalid",null],[2,"ng-pending",null]],[[null,"ngModelChange"],[null,"change"],[null,"blur"]],function(e,t,n){var i=!0,r=e.component;return"change"===t&&(i=!1!==o["\u0275nov"](e,115).onChange(n.target.checked)&&i),"blur"===t&&(i=!1!==o["\u0275nov"](e,115).onTouched()&&i),"ngModelChange"===t&&(i=!1!==(r.remapInfo.remapOnAllKeymap=n)&&i),i},null,null)),o["\u0275did"](115,16384,null,0,je.CheckboxControlValueAccessor,[o.Renderer2,o.ElementRef],null,null),o["\u0275prd"](1024,null,je.NG_VALUE_ACCESSOR,function(e){return[e]},[je.CheckboxControlValueAccessor]),o["\u0275did"](117,671744,null,0,je.NgModel,[[2,je.ControlContainer],[8,null],[8,null],[2,je.NG_VALUE_ACCESSOR]],{name:[0,"name"],model:[1,"model"]},{update:"ngModelChange"}),o["\u0275prd"](2048,null,je.NgControl,null,[je.NgModel]),o["\u0275did"](119,16384,null,0,je.NgControlStatus,[je.NgControl],null,null),(e()(),o["\u0275ted"](-1,null,[" Remap on all keymaps\n "])),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275eld"](123,0,null,null,11,"div",[["class","checkbox"]],null,null,null,null,null)),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275eld"](125,0,null,null,8,"label",[],null,null,null,null,null)),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275eld"](127,0,null,null,5,"input",[["name","remapOnAllLayer"],["type","checkbox"]],[[2,"ng-untouched",null],[2,"ng-touched",null],[2,"ng-pristine",null],[2,"ng-dirty",null],[2,"ng-valid",null],[2,"ng-invalid",null],[2,"ng-pending",null]],[[null,"ngModelChange"],[null,"change"],[null,"blur"]],function(e,t,n){var i=!0,r=e.component;return"change"===t&&(i=!1!==o["\u0275nov"](e,128).onChange(n.target.checked)&&i),"blur"===t&&(i=!1!==o["\u0275nov"](e,128).onTouched()&&i),"ngModelChange"===t&&(i=!1!==(r.remapInfo.remapOnAllLayer=n)&&i),i},null,null)),o["\u0275did"](128,16384,null,0,je.CheckboxControlValueAccessor,[o.Renderer2,o.ElementRef],null,null),o["\u0275prd"](1024,null,je.NG_VALUE_ACCESSOR,function(e){return[e]},[je.CheckboxControlValueAccessor]),o["\u0275did"](130,671744,null,0,je.NgModel,[[2,je.ControlContainer],[8,null],[8,null],[2,je.NG_VALUE_ACCESSOR]],{name:[0,"name"],model:[1,"model"]},{update:"ngModelChange"}),o["\u0275prd"](2048,null,je.NgControl,null,[je.NgModel]),o["\u0275did"](132,16384,null,0,je.NgControlStatus,[je.NgControl],null,null),(e()(),o["\u0275ted"](-1,null,[" Remap on all layers\n "])),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275eld"](136,0,null,null,5,"div",[["class","d-inline-block"]],null,null,null,null,null)),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275eld"](138,0,null,null,2,"icon",[["data-placement","bottom"],["data-toggle","tooltip"],["html","true"],["maxWidth","525"],["name","question-circle"],["title","
    \n
  • Default behavior: Remap the key on the the current layer of the current keymap.
  • \n
  • Remap on all keymaps: Remap key on the current layer of all keymaps.
  • \n
  • Remap on all layers: Remap key on all layers of the current keymap.
  • \n
  • Remap on all keymaps + Remap on all layers: Remap key on all layers of all keymaps.
  • \n
"]],[[1,"data-placement",0]],null,null,De,we)),o["\u0275did"](139,114688,null,0,_e,[],{name:[0,"name"]},null),o["\u0275did"](140,1589248,null,0,V,[o.ElementRef,I.c],{title:[0,"title"],html:[1,"html"],maxWidth:[2,"maxWidth"]},null),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275ted"](-1,null,["\n\n "])),(e()(),o["\u0275eld"](144,0,null,null,7,"div",[["class","d-inline-block pull-right"]],null,null,null,null,null)),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275eld"](146,0,null,null,1,"button",[["class","btn btn-sm btn-default"],["type","button"]],null,[[null,"click"]],function(e,t,n){var i=!0;return"click"===t&&(i=!1!==e.component.onCancelClick()&&i),i},null,null)),(e()(),o["\u0275ted"](-1,null,[" Cancel"])),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275eld"](149,0,null,null,1,"button",[["class","btn btn-sm btn-primary"],["type","button"]],[[2,"disabled",null]],[[null,"click"]],function(e,t,n){var i=!0;return"click"===t&&(i=!1!==e.component.onRemapKey()&&i),i},null,null)),(e()(),o["\u0275ted"](-1,null,[" Remap key\n "])),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275ted"](-1,null,["\n"])),(e()(),o["\u0275ted"](-1,null,["\n"])),(e()(),o["\u0275eld"](155,0,null,null,0,"div",[["class","popover-overlay"]],[[2,"display",null]],[[null,"click"]],function(e,t,n){var i=!0;return"click"===t&&(i=!1!==e.component.onOverlay()&&i),i},null,null)),(e()(),o["\u0275ted"](-1,null,["\n"]))],function(e,t){var n=t.component;e(t,3,0,"popover",e(t,4,0,n.leftArrow,n.rightArrow)),e(t,81,0,n.activeTab),e(t,84,0,n.tabName.Keypress),e(t,87,0,n.tabName.Layer),e(t,90,0,n.tabName.Mouse),e(t,93,0,n.tabName.Macro),e(t,96,0,n.tabName.Keymap),e(t,99,0,n.tabName.None),e(t,117,0,"remapOnAllKeymap",n.remapInfo.remapOnAllKeymap),e(t,130,0,"remapOnAllLayer",n.remapInfo.remapOnAllLayer),e(t,139,0,"question-circle"),e(t,140,0,"
    \n
  • Default behavior: Remap the key on the the current layer of the current keymap.
  • \n
  • Remap on all keymaps: Remap key on the current layer of all keymaps.
  • \n
  • Remap on all layers: Remap key on all layers of the current keymap.
  • \n
  • Remap on all keymaps + Remap on all layers: Remap key on all layers of all keymaps.
  • \n
","true","525")},function(e,t){var n=t.component;e(t,2,0,n.animationState,n.topPosition,n.leftPosition),e(t,12,0,n.activeTab===n.tabName.Keypress),e(t,23,0,n.activeTab===n.tabName.Layer),e(t,34,0,n.activeTab===n.tabName.Mouse),e(t,45,0,n.activeTab===n.tabName.Macro),e(t,56,0,n.activeTab===n.tabName.Keymap),e(t,67,0,n.activeTab===n.tabName.None),e(t,104,0,o["\u0275nov"](t,108).ngClassUntouched,o["\u0275nov"](t,108).ngClassTouched,o["\u0275nov"](t,108).ngClassPristine,o["\u0275nov"](t,108).ngClassDirty,o["\u0275nov"](t,108).ngClassValid,o["\u0275nov"](t,108).ngClassInvalid,o["\u0275nov"](t,108).ngClassPending),e(t,114,0,o["\u0275nov"](t,119).ngClassUntouched,o["\u0275nov"](t,119).ngClassTouched,o["\u0275nov"](t,119).ngClassPristine,o["\u0275nov"](t,119).ngClassDirty,o["\u0275nov"](t,119).ngClassValid,o["\u0275nov"](t,119).ngClassInvalid,o["\u0275nov"](t,119).ngClassPending),e(t,127,0,o["\u0275nov"](t,132).ngClassUntouched,o["\u0275nov"](t,132).ngClassTouched,o["\u0275nov"](t,132).ngClassPristine,o["\u0275nov"](t,132).ngClassDirty,o["\u0275nov"](t,132).ngClassValid,o["\u0275nov"](t,132).ngClassInvalid,o["\u0275nov"](t,132).ngClassPending),e(t,138,0,o["\u0275nov"](t,140).placement),e(t,149,0,!n.keyActionValid),e(t,155,0,n.visible)})}var tl=function(){function e(e,t,n,i){this.store=e,this.mapper=t,this.element=n,this.renderer=i,this.popoverEnabled=!0,this.tooltipEnabled=!1,this.descriptionChanged=new o.EventEmitter,this.currentLayer=0,this.remapInfo={remapOnAllKeymap:!1,remapOnAllLayer:!1},this.keyEditConfig={moduleId:void 0,keyId:void 0},this.tooltipData={posTop:0,posLeft:0,content:Ve.Observable.of([]),show:!1}}return Object.defineProperty(e.prototype,"space",{get:function(){return this.popoverEnabled},enumerable:!0,configurable:!0}),e.prototype.onResize=function(){this.wrapHost&&(this.wrapPosition=this.wrapHost.getBoundingClientRect()),this.keyElement&&(this.keyPosition=this.keyElement.getBoundingClientRect())},e.prototype.ngOnInit=function(){this.wrapHost=this.element.nativeElement,this.wrapPosition=this.wrapHost.getBoundingClientRect()},e.prototype.ngOnChanges=function(e){var t=e.keymap;t&&(this.popoverShown=!1,this.layers=this.keymap.layers,this.keybindAnimationEnabled=!t.isFirstChange()&&t.previousValue.abbreviation===t.currentValue.abbreviation||t.isFirstChange())},e.prototype.onKeyClick=function(e){if(!this.popoverShown&&this.popoverEnabled){this.keyEditConfig={moduleId:e.moduleId,keyId:e.keyId},this.selectedKey={layerId:this.currentLayer,moduleId:e.moduleId,keyId:e.keyId};var t=this.layers[this.currentLayer].modules[e.moduleId].keyActions[e.keyId];this.keyElement=e.keyTarget,this.remapInfo={remapOnAllKeymap:e.shiftPressed,remapOnAllLayer:e.altPressed},this.showPopover(t)}},e.prototype.onKeyHover=function(e){this.tooltipEnabled&&(e.over?this.showTooltip(this.layers[this.currentLayer].modules[e.moduleId].keyActions[e.keyId],e.event):this.hideTooltip())},e.prototype.onCapture=function(e){var t=new ze.KeystrokeAction,n=e.captured.left.concat(e.captured.right).map(function(e){return e?1:0});t.scancode=e.captured.code,t.modifierMask=0;for(var i=0;i0&&(n+=" ("+i+")"),r.push({name:"Scancode",value:n})}return t.hasActiveModifier()&&r.push({name:"Modifiers",value:t.getModifierList().join(", ")}),t.hasSecondaryRoleAction()&&r.push({name:"Secondary role",value:ze.SecondaryRoleAction[t.secondaryRoleAction]}),Ve.Observable.of(r)}if(e instanceof ze.MouseAction){var o=e,r=[{name:"Action type",value:"Mouse"},{name:"Action",value:Object(ze.camelCaseToSentence)(ze.MouseActionParam[o.mouseAction])}];return Ve.Observable.of(r)}if(e instanceof ze.PlayMacroAction){var l=e;return this.store.select(function(e){return e.userConfiguration.macros}).map(function(e){return e.find(function(e){return e.id===l.macroId}).name}).map(function(e){return[{name:"Action type",value:"Play macro"},{name:"Macro name",value:e}]})}if(e instanceof ze.SwitchKeymapAction){var u=e;return this.store.select(function(e){return e.userConfiguration.keymaps}).map(function(e){return e.find(function(e){return e.abbreviation===u.keymapAbbreviation}).name}).map(function(e){return[{name:"Action type",value:"Switch keymap"},{name:"Keymap",value:e}]})}if(e instanceof ze.SwitchLayerAction){var a=e;return r=[{name:"Action type",value:"Switch layer"},{name:"Layer",value:Object(ze.capitalizeFirstLetter)(ze.LayerName[a.layer])},{name:"Toogle",value:a.switchLayerMode===ze.SwitchLayerMode.toggle?"On":"Off"}],Ve.Observable.of(r)}return Ve.Observable.of([])},e}(),nl=o["\u0275crt"]({encapsulation:0,styles:[["[_nghost-%COMP%]{width:100%;display:block}.space[_nghost-%COMP%]{margin-bottom:405px}keyboard-slider[_ngcontent-%COMP%]{display:block;position:relative;height:500px;margin-top:30px}.tooltip[_ngcontent-%COMP%]{position:fixed;-webkit-transform:translate(-50%,-6px);transform:translate(-50%,-6px);display:none}.tooltip-inner[_ngcontent-%COMP%]{background:#fff;color:#000;-webkit-box-shadow:0 1px 5px #000;box-shadow:0 1px 5px #000;text-align:left}.tooltip-inner[_ngcontent-%COMP%] p[_ngcontent-%COMP%]{margin-bottom:2px}.tooltip-inner[_ngcontent-%COMP%] p[_ngcontent-%COMP%]:last-of-type{margin-bottom:0}.tooltip.bottom[_ngcontent-%COMP%] .tooltip-arrow[_ngcontent-%COMP%]{border-bottom-color:#fff;top:1px}.tooltip.in[_ngcontent-%COMP%]{display:block;opacity:1}"]],data:{}});function il(e){return o["\u0275vid"](0,[(e()(),o["\u0275eld"](0,0,null,null,1,"p",[],null,null,null,null,null)),(e()(),o["\u0275ted"](1,null,["\n ",": ","\n "]))],null,function(e,t){e(t,1,0,t.context.$implicit.name,t.context.$implicit.value)})}function ol(e){return o["\u0275vid"](0,[(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275eld"](1,0,null,null,1,"layers",[],[[2,"disabled",null]],[[null,"select"]],function(e,t,n){var i=!0;return"select"===t&&(i=!1!==e.component.selectLayer(n.index)&&i),i},jt,Dt)),o["\u0275did"](2,49152,null,0,Rt,[],{current:[0,"current"]},{select:"select"}),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275eld"](4,0,null,null,1,"keyboard-slider",[],null,[[null,"keyClick"],[null,"keyHover"],[null,"capture"],[null,"descriptionChanged"]],function(e,t,n){var i=!0,o=e.component;return"keyClick"===t&&(i=!1!==o.onKeyClick(n)&&i),"keyHover"===t&&(i=!1!==o.onKeyHover(n)&&i),"capture"===t&&(i=!1!==o.onCapture(n)&&i),"descriptionChanged"===t&&(i=!1!==o.onDescriptionChanged(n)&&i),i},Ti,wi)),o["\u0275did"](5,573440,null,0,_i,[],{layers:[0,"layers"],currentLayer:[1,"currentLayer"],keybindAnimationEnabled:[2,"keybindAnimationEnabled"],capturingEnabled:[3,"capturingEnabled"],halvesSplit:[4,"halvesSplit"],selectedKey:[5,"selectedKey"],keyboardLayout:[6,"keyboardLayout"],description:[7,"description"]},{keyClick:"keyClick",keyHover:"keyHover",capture:"capture",descriptionChanged:"descriptionChanged"}),(e()(),o["\u0275ted"](-1,null,["\n\n "])),(e()(),o["\u0275eld"](7,0,[[1,0]],null,1,"popover",[["tabindex","0"]],null,[[null,"cancel"],[null,"remap"],[null,"keydown.escape"],["document","keydown.control.enter"]],function(e,t,n){var i=!0,r=e.component;return"keydown.escape"===t&&(i=!1!==o["\u0275nov"](e,8).onEscape()&&i),"document:keydown.control.enter"===t&&(i=!1!==o["\u0275nov"](e,8).onKeyDown(n)&&i),"cancel"===t&&(i=!1!==r.hidePopover()&&i),"remap"===t&&(i=!1!==r.onRemap(n)&&i),i},el,qr)),o["\u0275did"](8,573440,null,0,$r,[u.m],{defaultKeyAction:[0,"defaultKeyAction"],currentKeymap:[1,"currentKeymap"],currentLayer:[2,"currentLayer"],keyPosition:[3,"keyPosition"],wrapPosition:[4,"wrapPosition"],visible:[5,"visible"],allowLayerDoubleTap:[6,"allowLayerDoubleTap"],remapInfo:[7,"remapInfo"]},{cancel:"cancel",remap:"remap"}),(e()(),o["\u0275ted"](-1,null,["\n\n "])),(e()(),o["\u0275eld"](10,0,null,null,10,"div",[["class","tooltip bottom"]],[[2,"in",null],[4,"top","px"],[4,"left","px"]],null,null,null,null)),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275eld"](12,0,null,null,0,"div",[["class","tooltip-arrow"]],null,null,null,null,null)),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275eld"](14,0,null,null,5,"div",[["class","tooltip-inner"]],null,null,null,null,null)),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275and"](16777216,null,null,2,null,il)),o["\u0275did"](17,802816,null,0,p.j,[o.ViewContainerRef,o.TemplateRef,o.IterableDiffers],{ngForOf:[0,"ngForOf"]},null),o["\u0275pid"](131072,p.b,[o.ChangeDetectorRef]),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275ted"](-1,null,["\n"]))],function(e,t){var n=t.component;e(t,2,0,n.currentLayer),e(t,5,0,n.layers,n.currentLayer,n.keybindAnimationEnabled,n.popoverEnabled,n.halvesSplit,n.selectedKey,n.keyboardLayout,n.keymap.description),e(t,8,0,n.popoverInitKeyAction,n.keymap,n.currentLayer,n.keyPosition,n.wrapPosition,n.popoverShown,n.allowLayerDoubleTap,n.remapInfo),e(t,17,0,o["\u0275unv"](t,17,0,o["\u0275nov"](t,18).transform(n.tooltipData.content)))},function(e,t){var n=t.component;e(t,1,0,n.popoverShown),e(t,10,0,n.tooltipData.show,n.tooltipData.posTop,n.tooltipData.posLeft)})}function rl(e){return o["\u0275vid"](2,[o["\u0275qud"](671088640,1,{popover:0}),(e()(),o["\u0275and"](16777216,null,null,1,null,ol)),o["\u0275did"](2,16384,null,0,p.k,[o.ViewContainerRef,o.TemplateRef],{ngIf:[0,"ngIf"]},null),(e()(),o["\u0275ted"](-1,null,["\n"]))],function(e,t){e(t,2,0,t.component.layers)},null)}n("okk1"),n("KRCp"),n("PvYY"),n("uCY4"),n("xOQQ");var ll=n("lDdF"),ul=function(){function e(e,t){this.store=e,this.keymap$=t.params.pluck("abbr").switchMap(function(t){return e.let(Object(jn.a)(t))}).publishReplay(1).refCount(),this.deletable$=e.let(Object(jn.b)()).map(function(e){return e.length>1}),this.keyboardLayout$=e.select(c.n),this.allowLayerDoubleTap$=e.select(c.a)}return e.prototype.downloadKeymap=function(){var e=this,t=this.keymap$.switchMap(function(t){return e.toExportableJSON(t)}).map(function(e){return JSON.stringify(e)});this.keymap$.combineLatest(t).first().subscribe(function(e){var t=e[1],n=e[0].name+"_keymap.json";Object(ll.saveAs)(new Blob([t],{type:"application/json"}),n)})},e.prototype.toggleKeyboardSplit=function(){this.keyboardSplit=!this.keyboardSplit},e.prototype.descriptionChanged=function(e){this.store.dispatch(new Ot.a.EditDescriptionAction(e))},e.prototype.toExportableJSON=function(e){return this.store.let(Object(jn.e)()).first().map(function(t){return{site:"https://ultimatehackingkeyboard.com",description:"Ultimate Hacking Keyboard keymap",keyboardModel:"UHK60",userConfigMajorVersion:t.userConfigMajorVersion,userConfigMinorVersion:t.userConfigMinorVersion,userConfigPatchVersion:t.userConfigPatchVersion,objectType:"keymap",objectValue:e.toJsonObject()}})},e}(),al=o["\u0275crt"]({encapsulation:0,styles:[["[_nghost-%COMP%]{width:100%;display:block}.not-found[_ngcontent-%COMP%]{margin-top:30px;font-size:16px;text-align:center}"]],data:{}});function sl(e){return o["\u0275vid"](0,[(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275eld"](1,0,null,null,3,"keymap-header",[],null,[[null,"downloadClick"],["window","resize"]],function(e,t,n){var i=!0,r=e.component;return"window:resize"===t&&(i=!1!==o["\u0275nov"](e,2).windowResize()&&i),"downloadClick"===t&&(i=!1!==r.downloadKeymap()&&i),i},It,Pt)),o["\u0275did"](2,573440,null,0,Et,[u.m,o.Renderer2],{keymap:[0,"keymap"],deletable:[1,"deletable"]},{downloadClick:"downloadClick"}),o["\u0275pid"](131072,p.b,[o.ChangeDetectorRef]),o["\u0275pid"](131072,p.b,[o.ChangeDetectorRef]),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275eld"](6,0,null,null,4,"svg-keyboard-wrap",[],[[2,"space",null]],[[null,"descriptionChanged"],["window","resize"]],function(e,t,n){var i=!0,r=e.component;return"window:resize"===t&&(i=!1!==o["\u0275nov"](e,7).onResize()&&i),"descriptionChanged"===t&&(i=!1!==r.descriptionChanged(n)&&i),i},rl,nl)),o["\u0275did"](7,638976,null,0,tl,[u.m,Gt,o.ElementRef,o.Renderer],{keymap:[0,"keymap"],halvesSplit:[1,"halvesSplit"],keyboardLayout:[2,"keyboardLayout"],allowLayerDoubleTap:[3,"allowLayerDoubleTap"]},{descriptionChanged:"descriptionChanged"}),o["\u0275pid"](131072,p.b,[o.ChangeDetectorRef]),o["\u0275pid"](131072,p.b,[o.ChangeDetectorRef]),o["\u0275pid"](131072,p.b,[o.ChangeDetectorRef]),(e()(),o["\u0275ted"](-1,null,["\n"]))],function(e,t){var n=t.component;e(t,2,0,o["\u0275unv"](t,2,0,o["\u0275nov"](t,3).transform(n.keymap$)),o["\u0275unv"](t,2,1,o["\u0275nov"](t,4).transform(n.deletable$))),e(t,7,0,o["\u0275unv"](t,7,0,o["\u0275nov"](t,8).transform(n.keymap$)),n.keyboardSplit,o["\u0275unv"](t,7,2,o["\u0275nov"](t,9).transform(n.keyboardLayout$)),o["\u0275unv"](t,7,3,o["\u0275nov"](t,10).transform(n.allowLayerDoubleTap$)))},function(e,t){e(t,6,0,o["\u0275nov"](t,7).space)})}function cl(e){return o["\u0275vid"](0,[(e()(),o["\u0275eld"](0,0,null,null,1,"div",[["class","not-found"]],null,null,null,null,null)),(e()(),o["\u0275ted"](-1,null,["\n Sorry, there is no keymap with this abbreviation.\n"]))],null,null)}function dl(e){return o["\u0275vid"](2,[(e()(),o["\u0275and"](16777216,null,null,2,null,sl)),o["\u0275did"](1,16384,null,0,p.k,[o.ViewContainerRef,o.TemplateRef],{ngIf:[0,"ngIf"]},null),o["\u0275pid"](131072,p.b,[o.ChangeDetectorRef]),(e()(),o["\u0275ted"](-1,null,["\n\n"])),(e()(),o["\u0275and"](16777216,null,null,2,null,cl)),o["\u0275did"](5,16384,null,0,p.k,[o.ViewContainerRef,o.TemplateRef],{ngIf:[0,"ngIf"]},null),o["\u0275pid"](131072,p.b,[o.ChangeDetectorRef]),(e()(),o["\u0275ted"](-1,null,["\n"]))],function(e,t){var n=t.component;e(t,1,0,o["\u0275unv"](t,1,0,o["\u0275nov"](t,2).transform(n.keymap$))),e(t,5,0,!o["\u0275unv"](t,5,0,o["\u0275nov"](t,6).transform(n.keymap$)))},null)}var pl=o["\u0275ccf"]("keymap-edit",ul,function(e){return o["\u0275vid"](0,[(e()(),o["\u0275eld"](0,0,null,null,1,"keymap-edit",[["class","container-fluid"]],null,[["window","keydown.alt.s"]],function(e,t,n){var i=!0;return"window:keydown.alt.s"===t&&(i=!1!==o["\u0275nov"](e,1).toggleKeyboardSplit(n)&&i),i},dl,al)),o["\u0275did"](1,49152,null,0,ul,[u.m,le.a],null,null)],null,null)},{},{},[]),fl=function(){function e(e){this.store=e,this.presetsAll$=e.select(function(e){return e.presetKeymaps}),this.filterExpression$=new Si.BehaviorSubject(""),this.presets$=this.presetsAll$.combineLatest(this.filterExpression$,function(e,t){return e.filter(function(e){return e.name.toLocaleLowerCase().includes(t)})}).publishReplay(1).refCount()}return e.prototype.filterKeyboards=function(e){this.filterExpression$.next(e)},e.prototype.addKeymap=function(e){this.store.dispatch(Ot.a.addKeymap(e))},e}(),hl=o["\u0275crt"]({encapsulation:0,styles:[["[_nghost-%COMP%]{overflow-y:auto;display:block;height:100%}.uhk__layer-switcher--wrapper[_ngcontent-%COMP%]{position:relative}.uhk__layer-switcher--wrapper[_ngcontent-%COMP%]:before{content:attr(data-title);display:inline-block;position:absolute;bottom:-.3em;right:100%;font-size:2.4rem;padding-right:.25em;margin:0}.keymap__search[_ngcontent-%COMP%]{margin-top:10px}.keymap__search[_ngcontent-%COMP%] .input-group[_ngcontent-%COMP%]{width:100%;max-width:350px;float:left}.keymap__search_amount[_ngcontent-%COMP%]{float:left;margin:7px 0 0 20px}.keymap__description[_ngcontent-%COMP%]{margin-bottom:20px}.keymap__list[_ngcontent-%COMP%]{margin-top:40px}.keymap__list_item[_ngcontent-%COMP%]{margin-bottom:50px}.keymap__list[_ngcontent-%COMP%] .btn-group-lg[_ngcontent-%COMP%]{margin:30px 0 0;width:100%;text-align:center}.keymap__list[_ngcontent-%COMP%] .btn-group-lg[_ngcontent-%COMP%] .btn[_ngcontent-%COMP%]{float:none;padding-left:50px;padding-right:50px}"]],data:{}});function yl(e){return o["\u0275vid"](0,[(e()(),o["\u0275eld"](0,0,[["keyboard",1]],null,17,"div",[["class","keymap__list_item"]],null,null,null,null,null)),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275eld"](2,0,null,null,1,"h2",[],null,null,null,null,null)),(e()(),o["\u0275ted"](3,null,["",""])),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275eld"](5,0,null,null,1,"p",[["class","keymap__description"]],null,null,null,null,null)),(e()(),o["\u0275ted"](6,null,["\n ","\n "])),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275eld"](8,0,null,null,2,"svg-keyboard-wrap",[],[[2,"space",null]],[["window","resize"]],function(e,t,n){var i=!0;return"window:resize"===t&&(i=!1!==o["\u0275nov"](e,9).onResize()&&i),i},rl,nl)),o["\u0275did"](9,638976,null,0,tl,[u.m,Gt,o.ElementRef,o.Renderer],{keymap:[0,"keymap"],popoverEnabled:[1,"popoverEnabled"],tooltipEnabled:[2,"tooltipEnabled"]},null),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275eld"](12,0,null,null,4,"div",[["class","btn-group btn-group-lg"]],null,null,null,null,null)),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275eld"](14,0,null,null,1,"button",[["class","btn btn-default"]],null,[[null,"click"]],function(e,t,n){var i=!0;return"click"===t&&(i=!1!==e.component.addKeymap(e.context.$implicit)&&i),i},null,null)),(e()(),o["\u0275ted"](-1,null,["Add keymap"])),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275ted"](-1,null,["\n "]))],function(e,t){e(t,9,0,t.context.$implicit,!1,!0)},function(e,t){e(t,3,0,t.context.$implicit.name),e(t,6,0,t.context.$implicit.description),e(t,8,0,o["\u0275nov"](t,9).space)})}function ml(e){return o["\u0275vid"](0,[(e()(),o["\u0275eld"](0,0,null,null,1,"div",[],null,null,null,null,null)),(e()(),o["\u0275ted"](-1,null,["\n Sorry, no keyboard found under this search query.\n"]))],null,null)}function gl(e){return o["\u0275vid"](2,[(e()(),o["\u0275eld"](0,0,null,null,6,"h1",[],null,null,null,null,null)),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275eld"](2,0,null,null,0,"i",[["class","fa fa-keyboard-o"]],null,null,null,null,null)),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275eld"](4,0,null,null,1,"span",[],null,null,null,null,null)),(e()(),o["\u0275ted"](-1,null,["Add new keymap"])),(e()(),o["\u0275ted"](-1,null,["\n"])),(e()(),o["\u0275ted"](-1,null,["\n"])),(e()(),o["\u0275eld"](8,0,null,null,16,"div",[["class","keymap__search clearfix"]],null,null,null,null,null)),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275eld"](10,0,null,null,8,"div",[["class","input-group"]],null,null,null,null,null)),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275eld"](12,0,null,null,3,"span",[["class","input-group-addon"],["id","sizing-addon1"]],null,null,null,null,null)),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275eld"](14,0,null,null,0,"i",[["class","fa fa-search"]],null,null,null,null,null)),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275eld"](17,0,null,null,0,"input",[["class","form-control"],["placeholder","Search ..."],["type","text"]],null,[[null,"input"]],function(e,t,n){var i=!0;return"input"===t&&(i=!1!==e.component.filterKeyboards(n.target.value)&&i),i},null,null)),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275eld"](20,0,null,null,3,"div",[["class","keymap__search_amount"]],null,null,null,null,null)),(e()(),o["\u0275ted"](21,null,["\n "," / "," keymaps shown\n "])),o["\u0275pid"](131072,p.b,[o.ChangeDetectorRef]),o["\u0275pid"](131072,p.b,[o.ChangeDetectorRef]),(e()(),o["\u0275ted"](-1,null,["\n"])),(e()(),o["\u0275ted"](-1,null,["\n"])),(e()(),o["\u0275eld"](26,0,null,null,5,"div",[["class","keymap__list"]],null,null,null,null,null)),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275and"](16777216,null,null,2,null,yl)),o["\u0275did"](29,802816,null,0,p.j,[o.ViewContainerRef,o.TemplateRef,o.IterableDiffers],{ngForOf:[0,"ngForOf"]},null),o["\u0275pid"](131072,p.b,[o.ChangeDetectorRef]),(e()(),o["\u0275ted"](-1,null,["\n"])),(e()(),o["\u0275ted"](-1,null,["\n"])),(e()(),o["\u0275and"](16777216,null,null,2,null,ml)),o["\u0275did"](34,16384,null,0,p.k,[o.ViewContainerRef,o.TemplateRef],{ngIf:[0,"ngIf"]},null),o["\u0275pid"](131072,p.b,[o.ChangeDetectorRef])],function(e,t){var n=t.component;e(t,29,0,o["\u0275unv"](t,29,0,o["\u0275nov"](t,30).transform(n.presets$))),e(t,34,0,0===o["\u0275unv"](t,34,0,o["\u0275nov"](t,35).transform(n.presets$)).length)},function(e,t){var n=t.component;e(t,21,0,o["\u0275unv"](t,21,0,o["\u0275nov"](t,22).transform(n.presets$)).length,o["\u0275unv"](t,21,1,o["\u0275nov"](t,23).transform(n.presetsAll$)).length)})}var vl=o["\u0275ccf"]("keymap-add",fl,function(e){return o["\u0275vid"](0,[(e()(),o["\u0275eld"](0,0,null,null,1,"keymap-add",[["class","container-fluid"]],null,null,null,gl,hl)),o["\u0275did"](1,49152,null,0,fl,[u.m],null,null)],null,null)},{},{},[]),bl=function(){},kl=o["\u0275crt"]({encapsulation:0,styles:[[".not-found[_ngcontent-%COMP%]{margin-top:30px;font-size:16px;text-align:center}"]],data:{}});function _l(e){return o["\u0275vid"](0,[(e()(),o["\u0275eld"](0,0,null,null,11,"div",[["class","container-fluid"]],null,null,null,null,null)),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275eld"](2,0,null,null,5,"uhk-header",[],null,null,null,Ct,Tt)),o["\u0275did"](3,49152,null,0,At,[u.m],null,null),(e()(),o["\u0275ted"](-1,0,["\n "])),(e()(),o["\u0275eld"](5,0,null,0,1,"h1",[],null,null,null,null,null)),(e()(),o["\u0275ted"](-1,null,["\xa0"])),(e()(),o["\u0275ted"](-1,0,["\n "])),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275eld"](9,0,null,null,1,"div",[["class","not-found"]],null,null,null,null,null)),(e()(),o["\u0275ted"](-1,null,["\n You don't have any macros. Try to add one!\n "])),(e()(),o["\u0275ted"](-1,null,["\n"])),(e()(),o["\u0275ted"](-1,null,["\n"]))],null,null)}var wl=o["\u0275ccf"]("macro-not-found",bl,function(e){return o["\u0275vid"](0,[(e()(),o["\u0275eld"](0,0,null,null,1,"macro-not-found",[],null,null,null,_l,kl)),o["\u0275did"](1,49152,null,0,bl,[],null,null)],null,null)},{},{},[]),Al=function(){function e(e,t){this.store=e,this.renderer=t}return e.prototype.ngOnChanges=function(e){this.isNew&&this.setFocusOnName(),e.macro&&this.setName()},e.prototype.ngAfterViewInit=function(){this.isNew&&this.setFocusOnName()},e.prototype.windowResize=function(){this.calculateHeaderTextWidth(this.macro.name)},e.prototype.removeMacro=function(){this.store.dispatch(Ot.b.removeMacro(this.macro.id))},e.prototype.duplicateMacro=function(){this.store.dispatch(Ot.b.duplicateMacro(this.macro))},e.prototype.editMacroName=function(e){St.d(e)?this.store.dispatch(Ot.b.editMacroName(this.macro.id,e)):this.setName()},e.prototype.calculateHeaderTextWidth=function(e){var t=this.macroName.nativeElement,n=.8*t.parentElement.offsetWidth,i=St.b(window.getComputedStyle(t),e);this.renderer.setStyle(t,"width",Math.min(n,i)+"px")},e.prototype.setFocusOnName=function(){this.macroName.nativeElement.select()},e.prototype.setName=function(){this.renderer.setProperty(this.macroName.nativeElement,"value",this.macro.name),this.calculateHeaderTextWidth(this.macro.name)},e}(),Tl=o["\u0275crt"]({encapsulation:0,styles:[[".macro__remove[_ngcontent-%COMP%]{font-size:.75em;top:8px}.macro__remove[_ngcontent-%COMP%]:hover{cursor:pointer;color:#900}.macro__duplicate[_ngcontent-%COMP%]{font-size:.75em;top:7px;margin-right:15px;position:relative}.macro__duplicate[_ngcontent-%COMP%]:hover{cursor:pointer;color:#337ab7}.pane-title[_ngcontent-%COMP%]{margin-bottom:1em}.pane-title__name[_ngcontent-%COMP%]{border:none;border-bottom:2px dotted #999;padding:0;margin:0 .25rem;text-overflow:ellipsis}.pane-title__name[_ngcontent-%COMP%]:focus{-webkit-box-shadow:0 0 0 1px #ccc,0 0 5px 0 #ccc;box-shadow:0 0 0 1px #ccc,0 0 5px 0 #ccc;border-color:transparent}"]],data:{}});function Cl(e){return o["\u0275vid"](2,[o["\u0275qud"](402653184,1,{macroName:0}),(e()(),o["\u0275eld"](1,0,null,null,19,"uhk-header",[],null,null,null,Ct,Tt)),o["\u0275did"](2,49152,null,0,At,[u.m],null,null),(e()(),o["\u0275ted"](-1,0,["\n "])),(e()(),o["\u0275eld"](4,0,null,0,15,"div",[["class","row"]],null,null,null,null,null)),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275eld"](6,0,null,null,12,"h1",[["class","col-xs-12 pane-title"]],null,null,null,null,null)),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275eld"](8,0,null,null,0,"i",[["class","fa fa-play"]],null,null,null,null,null)),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275eld"](10,0,[[1,0],["macroName",1]],null,1,"input",[["cancelable",""],["class","pane-title__name"],["type","text"]],null,[[null,"change"],[null,"keyup.enter"],[null,"keyup"],[null,"focus"],[null,"keyup.escape"]],function(e,t,n){var i=!0,r=e.component;return"focus"===t&&(i=!1!==o["\u0275nov"](e,11).onFocus()&&i),"keyup.escape"===t&&(i=!1!==o["\u0275nov"](e,11).onEscape()&&i),"change"===t&&(i=!1!==r.editMacroName(n.target.value)&&i),"keyup.enter"===t&&(i=!1!==o["\u0275nov"](e,10).blur()&&i),"keyup"===t&&(i=!1!==r.calculateHeaderTextWidth(n.target.value)&&i),i},null,null)),o["\u0275did"](11,16384,null,0,xt,[o.ElementRef,o.Renderer],null,null),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275eld"](13,0,null,null,1,"i",[["class","glyphicon glyphicon-trash macro__remove pull-right"],["data-original-title","Delete macro"],["data-placement","bottom"],["data-toggle","tooltip"],["html","true"],["title",""]],[[1,"data-placement",0]],[[null,"click"]],function(e,t,n){var i=!0;return"click"===t&&(i=!1!==e.component.removeMacro()&&i),i},null,null)),o["\u0275did"](14,1589248,null,0,V,[o.ElementRef,I.c],{title:[0,"title"],html:[1,"html"]},null),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275eld"](16,0,null,null,1,"i",[["class","fa fa-files-o macro__duplicate pull-right"],["data-original-title","Duplicate macro"],["data-placement","bottom"],["data-toggle","tooltip"],["title",""]],[[1,"data-placement",0]],[[null,"click"]],function(e,t,n){var i=!0;return"click"===t&&(i=!1!==e.component.duplicateMacro()&&i),i},null,null)),o["\u0275did"](17,1589248,null,0,V,[o.ElementRef,I.c],{title:[0,"title"]},null),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275ted"](-1,0,["\n"])),(e()(),o["\u0275ted"](-1,null,["\n"]))],function(e,t){e(t,14,0,"","true"),e(t,17,0,"")},function(e,t){e(t,13,0,o["\u0275nov"](t,14).placement),e(t,16,0,o["\u0275nov"](t,17).placement)})}var xl=n("xiuF"),Ol=n("LKU8"),Sl=(n("kkgw"),function(){function e(e,t){var n=this;this.mapper=e,this.dragulaService=t,this.add=new o.EventEmitter,this.edit=new o.EventEmitter,this.delete=new o.EventEmitter,this.reorder=new o.EventEmitter,this.newMacro=void 0,this.showNew=!1,this.activeEdit=void 0,t.setOptions("macroActions",{moves:function(e,t,n){return n.className.includes("action--movable")}}),t.drag.subscribe(function(e){n.dragIndex=+e[1].getAttribute("data-index")}),t.drop.subscribe(function(e){e[4]&&n.reorder.emit({macroId:n.macro.id,oldIndex:n.dragIndex,newIndex:+e[4].getAttribute("data-index")})})}return e.prototype.showNewAction=function(){this.hideActiveEditor(),this.newMacro=void 0,this.showNew=!0},e.prototype.hideNewAction=function(){this.showNew=!1},e.prototype.addNewAction=function(e){this.add.emit({macroId:this.macro.id,action:e}),this.newMacro=void 0,this.showNew=!1},e.prototype.editAction=function(e){this.hideActiveEditor(),this.showNew=!1,this.activeEdit=e},e.prototype.cancelAction=function(){this.activeEdit=void 0},e.prototype.saveAction=function(e,t){this.edit.emit({macroId:this.macro.id,index:t,action:e}),this.hideActiveEditor()},e.prototype.deleteAction=function(e,t){this.delete.emit({macroId:this.macro.id,index:t,action:e}),this.hideActiveEditor()},e.prototype.onKeysCapture=function(e){var t=Object.assign(new ze.KeyMacroAction,this.toKeyAction(e));t.action=ze.MacroKeySubAction.tap,this.add.emit({macroId:this.macro.id,action:t})},e.prototype.toKeyAction=function(e){var t=new ze.KeystrokeAction;t.scancode=e.code,t.modifierMask=0;for(var n=e.left.concat(e.right).map(function(e){return e?1:0}),i=0;i active",animation:{type:4,styles:null,timings:"500ms ease-out"},options:null}],options:{}},{type:7,name:"togglerNew",definitions:[{type:0,name:"void",styles:{type:6,styles:{height:"0px"},offset:null},options:void 0},{type:0,name:"active",styles:{type:6,styles:{height:"*"},offset:null},options:void 0},{type:1,expr:":enter",animation:{type:4,styles:null,timings:"500ms ease-out"},options:null},{type:1,expr:":leave",animation:{type:4,styles:null,timings:"500ms ease-out"},options:null}],options:{}}]}});function El(e){return o["\u0275vid"](0,[(e()(),o["\u0275eld"](0,0,null,null,1,"macro-item",[["class","macro-item"]],[[1,"data-index",0]],[[null,"save"],[null,"edit"],[null,"cancel"],[null,"delete"]],function(e,t,n){var i=!0,o=e.component;return"save"===t&&(i=!1!==o.saveAction(n,e.context.index)&&i),"edit"===t&&(i=!1!==o.editAction(e.context.index)&&i),"cancel"===t&&(i=!1!==o.cancelAction()&&i),"delete"===t&&(i=!1!==o.deleteAction(e.context.$implicit,e.context.index)&&i),i},Mr,Tr)),o["\u0275did"](1,638976,[[1,4]],0,Ar,[Gt],{macroAction:[0,"macroAction"],editable:[1,"editable"],deletable:[2,"deletable"],movable:[3,"movable"]},{save:"save",cancel:"cancel",edit:"edit",delete:"delete"})],function(e,t){e(t,1,0,t.context.$implicit,!0,!0,!0)},function(e,t){e(t,0,0,t.context.index)})}function Pl(e){return o["\u0275vid"](0,[(e()(),o["\u0275eld"](0,0,null,null,1,"macro-item",[["class","macro-item"]],[[24,"@togglerNew",0]],[[null,"save"],[null,"cancel"]],function(e,t,n){var i=!0,o=e.component;return"save"===t&&(i=!1!==o.addNewAction(n)&&i),"cancel"===t&&(i=!1!==o.hideNewAction()&&i),i},Mr,Tr)),o["\u0275did"](1,638976,[[1,4]],0,Ar,[Gt],{macroAction:[0,"macroAction"],editable:[1,"editable"],deletable:[2,"deletable"],movable:[3,"movable"]},{save:"save",cancel:"cancel"})],function(e,t){e(t,1,0,t.component.newMacro,!0,!1,!1)},function(e,t){e(t,0,0,t.component.showNew?"active":"inactive")})}function Il(e){return o["\u0275vid"](0,[o["\u0275qud"](671088640,1,{macroItems:1}),(e()(),o["\u0275eld"](1,0,null,null,38,"div",[["class","row list-container"]],null,null,null,null,null)),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275eld"](3,0,null,null,35,"div",[["class","col-xs-10 col-xs-offset-1 list-group"]],null,null,null,null,null)),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275eld"](5,0,null,null,2,"p",[],null,null,null,null,null)),(e()(),o["\u0275eld"](6,0,null,null,1,"i",[],null,null,null,null,null)),(e()(),o["\u0275ted"](-1,null,["Please note that macro playback is not implemented yet. You can create macros, but they won't have any effect until firmware support is implemented. We're working on this."])),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275eld"](9,0,null,null,8,"div",[["class","macro-actions-container"]],null,null,null,null,null)),o["\u0275did"](10,606208,null,0,xl.DragulaDirective,[o.ElementRef,Ol.DragulaService],{dragula:[0,"dragula"],dragulaModel:[1,"dragulaModel"]},null),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275and"](16777216,null,null,1,null,El)),o["\u0275did"](13,802816,null,0,p.j,[o.ViewContainerRef,o.TemplateRef,o.IterableDiffers],{ngForOf:[0,"ngForOf"]},null),(e()(),o["\u0275ted"](-1,null,["\n\n "])),(e()(),o["\u0275and"](16777216,null,null,1,null,Pl)),o["\u0275did"](16,16384,null,0,p.k,[o.ViewContainerRef,o.TemplateRef],{ngIf:[0,"ngIf"]},null),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275eld"](19,0,null,null,18,"div",[["class","list-group add-new__action-container"]],[[24,"@toggler",0]],null,null,null,null)),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275eld"](21,0,null,null,15,"div",[["class","list-group-item action--item add-new__action-item no-reorder clearfix"]],null,null,null,null,null)),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275eld"](23,0,null,null,6,"span",[["class","add-new__action-item--link"]],null,[[null,"click"]],function(e,t,n){var i=!0;return"click"===t&&(i=!1!==e.component.showNewAction()&&i),i},null,null)),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275eld"](25,0,null,null,3,"button",[["class","btn btn-link"],["type","button"]],null,null,null,null,null)),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275eld"](27,0,null,null,0,"i",[["class","fa fa-plus"]],null,null,null,null,null)),(e()(),o["\u0275ted"](-1,null,[" Add macro action\n "])),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275eld"](31,0,null,null,4,"span",[["class","add-new__action-item--link"]],null,null,null,null,null)),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275eld"](33,0,null,null,1,"capture-keystroke-button",[["captureText","Add captured keystroke"],["isLink","true"]],null,[[null,"capture"],[null,"keyup"],[null,"keydown"],[null,"focusout"]],function(e,t,n){var i=!0,r=e.component;return"keyup"===t&&(i=!1!==o["\u0275nov"](e,34).onKeyUp(n)&&i),"keydown"===t&&(i=!1!==o["\u0275nov"](e,34).onKeyDown(n)&&i),"focusout"===t&&(i=!1!==o["\u0275nov"](e,34).onFocusOut()&&i),"capture"===t&&(i=!1!==r.onKeysCapture(n)&&i),i},ao,ro)),o["\u0275did"](34,49152,null,0,oo,[Nn],{isLink:[0,"isLink"],captureText:[1,"captureText"]},{capture:"capture"}),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275ted"](-1,null,["\n"])),(e()(),o["\u0275ted"](-1,null,["\n"]))],function(e,t){var n=t.component;e(t,10,0,"macroActions",n.macro.macroActions),e(t,13,0,n.macro.macroActions),e(t,16,0,n.showNew),e(t,34,0,"true","Add captured keystroke")},function(e,t){e(t,19,0,t.component.showNew?"inactive":"active")})}var Rl=function(){function e(e,t){var n=this;this.store=e,this.route=t,this.subscription=t.params.pluck("id").switchMap(function(t){return n.macroId=+t,e.let(Object(jn.c)(n.macroId))}).subscribe(function(e){n.macro=e}),this.isNew="new"===this.route.snapshot.params.empty}return e.prototype.ngOnDestroy=function(){this.subscription.unsubscribe()},e.prototype.addAction=function(e,t){this.store.dispatch(Ot.b.addMacroAction(e,t))},e.prototype.editAction=function(e,t,n){this.store.dispatch(Ot.b.saveMacroAction(e,t,n))},e.prototype.deleteAction=function(e,t,n){this.store.dispatch(Ot.b.deleteMacroAction(e,t,n))},e.prototype.reorderAction=function(e,t,n){this.store.dispatch(Ot.b.reorderMacroAction(e,t,n))},e}(),Dl=o["\u0275crt"]({encapsulation:0,styles:[["[_nghost-%COMP%]{width:100%;height:100%;display:block}.not-found[_ngcontent-%COMP%]{margin-top:30px;font-size:16px;text-align:center}"]],data:{}});function Nl(e){return o["\u0275vid"](0,[(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275eld"](1,0,null,null,1,"macro-header",[],null,[["window","resize"]],function(e,t,n){var i=!0;return"window:resize"===t&&(i=!1!==o["\u0275nov"](e,2).windowResize()&&i),i},Cl,Tl)),o["\u0275did"](2,4767744,null,0,Al,[u.m,o.Renderer2],{macro:[0,"macro"],isNew:[1,"isNew"]},null),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275eld"](4,0,null,null,2,"macro-list",[],null,[[null,"add"],[null,"edit"],[null,"delete"],[null,"reorder"]],function(e,t,n){var i=!0,o=e.component;return"add"===t&&(i=!1!==o.addAction(n.macroId,n.action)&&i),"edit"===t&&(i=!1!==o.editAction(n.macroId,n.index,n.action)&&i),"delete"===t&&(i=!1!==o.deleteAction(n.macroId,n.index,n.action)&&i),"reorder"===t&&(i=!1!==o.reorderAction(n.macroId,n.oldIndex,n.newIndex)&&i),i},Il,Ml)),o["\u0275prd"](8704,null,Ol.DragulaService,Ol.DragulaService,[]),o["\u0275did"](6,49152,null,0,Sl,[Gt,Ol.DragulaService],{macro:[0,"macro"]},{add:"add",edit:"edit",delete:"delete",reorder:"reorder"}),(e()(),o["\u0275ted"](-1,null,["\n"]))],function(e,t){var n=t.component;e(t,2,0,n.macro,n.isNew),e(t,6,0,n.macro)},null)}function jl(e){return o["\u0275vid"](0,[(e()(),o["\u0275eld"](0,0,null,null,1,"div",[["class","not-found"]],null,null,null,null,null)),(e()(),o["\u0275ted"](1,null,["\n There is no macro with id ",".\n"]))],null,function(e,t){e(t,1,0,t.component.macroId)})}function Ll(e){return o["\u0275vid"](0,[(e()(),o["\u0275and"](16777216,null,null,1,null,Nl)),o["\u0275did"](1,16384,null,0,p.k,[o.ViewContainerRef,o.TemplateRef],{ngIf:[0,"ngIf"]},null),(e()(),o["\u0275ted"](-1,null,["\n\n"])),(e()(),o["\u0275and"](16777216,null,null,1,null,jl)),o["\u0275did"](4,16384,null,0,p.k,[o.ViewContainerRef,o.TemplateRef],{ngIf:[0,"ngIf"]},null),(e()(),o["\u0275ted"](-1,null,["\n"]))],function(e,t){var n=t.component;e(t,1,0,n.macro),e(t,4,0,!n.macro)},null)}var Ul=o["\u0275ccf"]("macro-edit",Rl,function(e){return o["\u0275vid"](0,[(e()(),o["\u0275eld"](0,0,null,null,1,"macro-edit",[["class","container-fluid"]],null,null,null,Ll,Dl)),o["\u0275did"](1,180224,null,0,Rl,[u.m,le.a],null,null)],null,null)},{},{},[]),Vl=function(e){this.name$=e.params.pluck("name")},Fl=o["\u0275crt"]({encapsulation:0,styles:[["[_nghost-%COMP%]{width:100%;height:100%;display:block}"]],data:{}});function Kl(e){return o["\u0275vid"](0,[(e()(),o["\u0275eld"](0,0,null,null,10,"div",[["class","row"]],null,null,null,null,null)),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275eld"](2,0,null,null,7,"h1",[["class","col-xs-12 pane-title"]],null,null,null,null,null)),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275eld"](4,0,null,null,0,"i",[["class","fa fa-puzzle-piece"]],null,null,null,null,null)),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275eld"](6,0,null,null,2,"span",[["class","macro__name pane-title__name"]],null,null,null,null,null)),(e()(),o["\u0275ted"](7,null,["",""])),o["\u0275pid"](131072,p.b,[o.ChangeDetectorRef]),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275ted"](-1,null,["\n"])),(e()(),o["\u0275ted"](-1,null,["\nTo be done..."]))],null,function(e,t){var n=t.component;e(t,7,0,o["\u0275unv"](t,7,0,o["\u0275nov"](t,8).transform(n.name$)))})}var Bl=o["\u0275ccf"]("add-on",Vl,function(e){return o["\u0275vid"](0,[(e()(),o["\u0275eld"](0,0,null,null,1,"add-on",[["class","container-fluid"]],null,null,null,Kl,Fl)),o["\u0275did"](1,49152,null,0,Vl,[le.a],null,null)],null,null)},{},{},[]),Hl=function(){function e(){this.toggleCheckForUpdateOnStartUp=new o.EventEmitter,this.toggleUsePreReleaseUpdate=new o.EventEmitter,this.checkForUpdate=new o.EventEmitter}return e.prototype.emitCheckForUpdateOnStartUp=function(e){this.toggleCheckForUpdateOnStartUp.emit(e)},e.prototype.emitUsePreReleaseUpdate=function(e){this.toggleUsePreReleaseUpdate.emit(e)},e.prototype.emitCheckForUpdate=function(){this.checkForUpdate.emit()},e}(),Wl=o["\u0275crt"]({encapsulation:2,styles:[],data:{}});function zl(e){return o["\u0275vid"](0,[(e()(),o["\u0275eld"](0,0,null,null,0,"span",[["class","fa fa-spinner fa-spin"]],null,null,null,null,null))],null,null)}function $l(e){return o["\u0275vid"](2,[(e()(),o["\u0275eld"](0,0,null,null,38,"div",[["class","row"]],null,null,null,null,null)),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275eld"](2,0,null,null,35,"div",[["class","col-xs-12"]],null,null,null,null,null)),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275eld"](4,0,null,null,6,"div",[["class","checkbox"]],null,null,null,null,null)),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275eld"](6,0,null,null,3,"label",[],null,null,null,null,null)),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275eld"](8,0,null,null,0,"input",[["type","checkbox"]],[[8,"checked",0]],[[null,"change"]],function(e,t,n){var i=!0;return"change"===t&&(i=!1!==e.component.emitCheckForUpdateOnStartUp(n.target.checked)&&i),i},null,null)),(e()(),o["\u0275ted"](-1,null,[" Automatically check for update on\n application start\n "])),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275ted"](-1,null,["\n\n "])),(e()(),o["\u0275eld"](12,0,null,null,6,"div",[["class","checkbox"]],null,null,null,null,null)),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275eld"](14,0,null,null,3,"label",[],null,null,null,null,null)),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275eld"](16,0,null,null,0,"input",[["type","checkbox"]],[[8,"checked",0]],[[null,"change"]],function(e,t,n){var i=!0;return"change"===t&&(i=!1!==e.component.emitUsePreReleaseUpdate(n.target.checked)&&i),i},null,null)),(e()(),o["\u0275ted"](-1,null,[" Allow alpha / pre release\n "])),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275eld"](20,0,null,null,10,"div",[["class","form-group"]],null,null,null,null,null)),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275eld"](22,0,null,null,1,"label",[["class","col-sm-2 control-label"]],null,null,null,null,null)),(e()(),o["\u0275ted"](-1,null,["Version:"])),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275eld"](25,0,null,null,4,"div",[["class","col-sm-10"]],null,null,null,null,null)),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275eld"](27,0,null,null,1,"p",[],null,null,null,null,null)),(e()(),o["\u0275ted"](28,null,["",""])),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275ted"](-1,null,["\n\n "])),(e()(),o["\u0275eld"](32,0,null,null,4,"button",[["class","btn btn-link"]],null,[[null,"click"]],function(e,t,n){var i=!0;return"click"===t&&(i=!1!==e.component.emitCheckForUpdate()&&i),i},null,null)),(e()(),o["\u0275ted"](-1,null,["\n Check for update\n "])),(e()(),o["\u0275and"](16777216,null,null,1,null,zl)),o["\u0275did"](35,16384,null,0,p.k,[o.ViewContainerRef,o.TemplateRef],{ngIf:[0,"ngIf"]},null),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275ted"](-1,null,["\n"])),(e()(),o["\u0275ted"](-1,null,["\n"]))],function(e,t){e(t,35,0,t.component.checkingForUpdate)},function(e,t){var n=t.component;e(t,8,0,n.settings.checkForUpdateOnStartUp),e(t,16,0,n.settings.usePreReleaseUpdate),e(t,28,0,n.version)})}var ql=n("w+X5"),Gl=function(){function e(e){this.store=e,this.version=Object(St.c)().version,this.autoUpdateSettings$=e.select(c.j),this.checkingForUpdate$=e.select(c.l)}return e.prototype.toogleCheckForUpdateOnStartUp=function(e){this.store.dispatch(new ql.h(e))},e.prototype.toogleUsePreReleaseUpdate=function(e){this.store.dispatch(new ql.i(e))},e.prototype.checkForUpdate=function(){this.store.dispatch(new ql.c)},e}(),Yl=o["\u0275crt"]({encapsulation:0,styles:[["[_nghost-%COMP%]{width:100%;height:100%;display:block}"]],data:{}});function Ql(e){return o["\u0275vid"](0,[(e()(),o["\u0275eld"](0,0,null,null,9,"div",[["class","row"]],null,null,null,null,null)),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275eld"](2,0,null,null,6,"h1",[["class","col-xs-12 pane-title"]],null,null,null,null,null)),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275eld"](4,0,null,null,0,"i",[["class","fa fa-gear"]],null,null,null,null,null)),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275eld"](6,0,null,null,1,"span",[["class","macro__name pane-title__name"]],null,null,null,null,null)),(e()(),o["\u0275ted"](-1,null,["Settings"])),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275ted"](-1,null,["\n"])),(e()(),o["\u0275ted"](-1,null,["\n"])),(e()(),o["\u0275eld"](11,0,null,null,4,"auto-update-settings",[],null,[[null,"toggleCheckForUpdateOnStartUp"],[null,"toggleUsePreReleaseUpdate"],[null,"checkForUpdate"]],function(e,t,n){var i=!0,o=e.component;return"toggleCheckForUpdateOnStartUp"===t&&(i=!1!==o.toogleCheckForUpdateOnStartUp(n)&&i),"toggleUsePreReleaseUpdate"===t&&(i=!1!==o.toogleUsePreReleaseUpdate(n)&&i),"checkForUpdate"===t&&(i=!1!==o.checkForUpdate()&&i),i},$l,Wl)),o["\u0275did"](12,49152,null,0,Hl,[],{version:[0,"version"],settings:[1,"settings"],checkingForUpdate:[2,"checkingForUpdate"]},{toggleCheckForUpdateOnStartUp:"toggleCheckForUpdateOnStartUp",toggleUsePreReleaseUpdate:"toggleUsePreReleaseUpdate",checkForUpdate:"checkForUpdate"}),o["\u0275pid"](131072,p.b,[o.ChangeDetectorRef]),o["\u0275pid"](131072,p.b,[o.ChangeDetectorRef]),(e()(),o["\u0275ted"](-1,null,["\n"])),(e()(),o["\u0275ted"](-1,null,["\n"]))],function(e,t){var n=t.component;e(t,12,0,n.version,o["\u0275unv"](t,12,1,o["\u0275nov"](t,13).transform(n.autoUpdateSettings$)),o["\u0275unv"](t,12,2,o["\u0275nov"](t,14).transform(n.checkingForUpdate$)))},null)}var Jl=o["\u0275ccf"]("settings",Gl,function(e){return o["\u0275vid"](0,[(e()(),o["\u0275eld"](0,0,null,null,1,"settings",[["class","container-fluid"]],null,null,null,Ql,Yl)),o["\u0275did"](1,49152,null,0,Gl,[u.m],null,null)],null,null)},{},{},[]),Zl=function(){function e(e,t){this.el=e,this.store=t}return e.prototype.onClick=function(e){e.preventDefault(),e.stopPropagation();var t=this.el.nativeElement;t.href&&this.store.dispatch(new F.h(t.href))},e}(),Xl=function(){},eu=o["\u0275crt"]({encapsulation:0,styles:[["[_nghost-%COMP%]{width:100%;height:100%;display:block}"]],data:{}});function tu(e){return o["\u0275vid"](2,[(e()(),o["\u0275eld"](0,0,null,null,9,"div",[["class","row"]],null,null,null,null,null)),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275eld"](2,0,null,null,6,"h1",[["class","col-xs-12 pane-title"]],null,null,null,null,null)),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275eld"](4,0,null,null,0,"i",[["class","fa fa-question-circle"]],null,null,null,null,null)),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275eld"](6,0,null,null,1,"span",[["class","macro__name pane-title__name"]],null,null,null,null,null)),(e()(),o["\u0275ted"](-1,null,["Help"])),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275ted"](-1,null,["\n"])),(e()(),o["\u0275ted"](-1,null,["\n\n"])),(e()(),o["\u0275eld"](11,0,null,null,12,"div",[["class","row"]],null,null,null,null,null)),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275eld"](13,0,null,null,9,"div",[["class","col-xs-12"]],null,null,null,null,null)),(e()(),o["\u0275ted"](-1,null,["\n Frequently asked questions\n "])),(e()(),o["\u0275eld"](15,0,null,null,6,"ul",[],null,null,null,null,null)),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275eld"](17,0,null,null,3,"li",[],null,null,null,null,null)),(e()(),o["\u0275eld"](18,0,null,null,2,"a",[["externalUrl",""],["href","https://ultimatehackingkeyboard.com/blog/2018/06/23/how-can-i-type-accented-characters-with-my-uhk"]],null,[[null,"click"]],function(e,t,n){var i=!0;return"click"===t&&(i=!1!==o["\u0275nov"](e,19).onClick(n)&&i),i},null,null)),o["\u0275did"](19,16384,null,0,Zl,[o.ElementRef,u.m],null,null),(e()(),o["\u0275ted"](-1,null,["How can I type accented characters with my UHK?"])),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275ted"](-1,null,["\n"])),(e()(),o["\u0275ted"](-1,null,["\n\n"])),(e()(),o["\u0275eld"](25,0,null,null,32,"div",[["class","row"]],null,null,null,null,null)),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275eld"](27,0,null,null,29,"div",[["class","col-xs-12"]],null,null,null,null,null)),(e()(),o["\u0275ted"](-1,null,["\n Keyboard shortcuts\n "])),(e()(),o["\u0275eld"](29,0,null,null,26,"ul",[],null,null,null,null,null)),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275eld"](31,0,null,null,6,"li",[],null,null,null,null,null)),(e()(),o["\u0275eld"](32,0,null,null,1,"kbd",[],null,null,null,null,null)),(e()(),o["\u0275ted"](-1,null,["CTRL"])),(e()(),o["\u0275ted"](-1,null,[" + "])),(e()(),o["\u0275eld"](35,0,null,null,1,"kbd",[],null,null,null,null,null)),(e()(),o["\u0275ted"](-1,null,["Enter"])),(e()(),o["\u0275ted"](-1,null,[" = Remap key"])),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275eld"](39,0,null,null,6,"li",[],null,null,null,null,null)),(e()(),o["\u0275eld"](40,0,null,null,1,"kbd",[],null,null,null,null,null)),(e()(),o["\u0275ted"](-1,null,["CTRL"])),(e()(),o["\u0275ted"](-1,null,[" + "])),(e()(),o["\u0275eld"](43,0,null,null,1,"kbd",[],null,null,null,null,null)),(e()(),o["\u0275ted"](-1,null,["S"])),(e()(),o["\u0275ted"](-1,null,[" = Save to keyboard"])),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275eld"](47,0,null,null,1,"li",[],null,null,null,null,null)),(e()(),o["\u0275ted"](-1,null,["Right click on a key = Capture key"])),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275eld"](50,0,null,null,1,"li",[],null,null,null,null,null)),(e()(),o["\u0275ted"](-1,null,["Hold Shift while clicking on a key = Remap on all keymaps"])),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275eld"](53,0,null,null,1,"li",[],null,null,null,null,null)),(e()(),o["\u0275ted"](-1,null,["Hold Alt while clicking on a key = Remap on all layers"])),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275ted"](-1,null,["\n"])),(e()(),o["\u0275ted"](-1,null,["\n"]))],null,null)}var nu=o["\u0275ccf"]("help-page",Xl,function(e){return o["\u0275vid"](0,[(e()(),o["\u0275eld"](0,0,null,null,1,"help-page",[["class","container-fluid"]],null,null,null,tu,eu)),o["\u0275did"](1,49152,null,0,Xl,[],null,null)],null,null)},{},{},[]),iu=function(){return function(){this.version=Object(St.c)().version,this.agentGithubUrl=ze.Constants.AGENT_GITHUB_URL}}(),ou=o["\u0275crt"]({encapsulation:0,styles:[["[_nghost-%COMP%]{overflow-y:auto;display:block;height:100%;width:100%}.agent-version[_ngcontent-%COMP%]{margin-bottom:1rem}.agent-version[_ngcontent-%COMP%] span[_ngcontent-%COMP%]{font-weight:700}.link-github[_ngcontent-%COMP%]{cursor:pointer}"]],data:{}});function ru(e){return o["\u0275vid"](0,[(e()(),o["\u0275eld"](0,0,null,null,22,"div",[["class","row"]],null,null,null,null,null)),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275eld"](2,0,null,null,6,"h1",[["class","col-xs-12 pane-title"]],null,null,null,null,null)),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275eld"](4,0,null,null,0,"i",[["class","uhk-icon uhk-icon-agent-icon"]],null,null,null,null,null)),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275eld"](6,0,null,null,1,"span",[],null,null,null,null,null)),(e()(),o["\u0275ted"](-1,null,["About"])),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275eld"](10,0,null,null,11,"div",[["class","col-xs-12"]],null,null,null,null,null)),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275eld"](12,0,null,null,3,"div",[["class","agent-version"]],null,null,null,null,null)),(e()(),o["\u0275ted"](-1,null,["Agent version: "])),(e()(),o["\u0275eld"](14,0,null,null,1,"span",[["class","text-bold"]],null,null,null,null,null)),(e()(),o["\u0275ted"](15,null,["",""])),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275eld"](17,0,null,null,3,"div",[],null,null,null,null,null)),(e()(),o["\u0275eld"](18,0,null,null,2,"a",[["class","link-github"],["externalUrl",""]],[[8,"href",4]],[[null,"click"]],function(e,t,n){var i=!0;return"click"===t&&(i=!1!==o["\u0275nov"](e,19).onClick(n)&&i),i},null,null)),o["\u0275did"](19,16384,null,0,Zl,[o.ElementRef,u.m],null,null),(e()(),o["\u0275ted"](-1,null,["Agent on GitHub"])),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275ted"](-1,null,["\n"])),(e()(),o["\u0275ted"](-1,null,["\n"]))],null,function(e,t){var n=t.component;e(t,15,0,n.version),e(t,18,0,n.agentGithubUrl)})}var lu=o["\u0275ccf"]("about-page",iu,function(e){return o["\u0275vid"](0,[(e()(),o["\u0275eld"](0,0,null,null,1,"about-page",[["class","container-fluid"]],null,null,null,ru,ou)),o["\u0275did"](1,49152,null,0,iu,[],null,null)],null,null)},{},{},[]),uu=function(){return function(){this.updateApp=new o.EventEmitter,this.doNotUpdateApp=new o.EventEmitter}}(),au=o["\u0275crt"]({encapsulation:0,styles:[[".app-update-available-wrapper[_ngcontent-%COMP%]{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-pack:center;-ms-flex-pack:center;justify-content:center;margin:.5rem}"]],data:{}});function su(e){return o["\u0275vid"](2,[(e()(),o["\u0275eld"](0,0,null,null,7,"div",[["class","app-update-available-wrapper"]],null,null,null,null,null)),(e()(),o["\u0275ted"](-1,null,["\n New version available.\n "])),(e()(),o["\u0275eld"](2,0,null,null,1,"button",[["class","btn btn-primary"],["type","button"]],null,[[null,"click"]],function(e,t,n){var i=!0;return"click"===t&&(i=!1!==e.component.updateApp.emit()&&i),i},null,null)),(e()(),o["\u0275ted"](-1,null,["Update"])),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275eld"](5,0,null,null,1,"button",[["class","btn btn-default"],["type","button"]],null,[[null,"click"]],function(e,t,n){var i=!0;return"click"===t&&(i=!1!==e.component.doNotUpdateApp.emit()&&i),i},null,null)),(e()(),o["\u0275ted"](-1,null,["Close"])),(e()(),o["\u0275ted"](-1,null,["\n"])),(e()(),o["\u0275ted"](-1,null,["\n"]))],null,null)}var cu=function(e){},du=function(){function e(e,t){this._cdRef=e,this._renderer=t,this.maxParentWidthPercent=1,this._onChanged=cu,this._onTouched=cu}return Object.defineProperty(e.prototype,"model",{get:function(){return this._model},set:function(e){this._model!==e&&(this._model=e)},enumerable:!0,configurable:!0}),e.prototype.registerOnChange=function(e){this._onChanged=e},e.prototype.registerOnTouched=function(e){this._onTouched=e},e.prototype.setDisabledState=function(e){this.disabled!==e&&(this.disabled=e,this._cdRef.markForCheck())},e.prototype.windowResize=function(){this.calculateTextWidth(this._model)},e.prototype.writeValue=function(e){console.log("write",new Date),this.model!==e&&(this._model=e,this._originalModel=e,this.calculateTextWidth(this._model),this._cdRef.markForCheck())},e.prototype.focus=function(){this._onTouched(this)},e.prototype.blur=function(){if(!St.d(this._model)||this._model.trim()===this._originalModel)return this._model=this._originalModel,this.calculateTextWidth(this._model),void this._cdRef.markForCheck();this._originalModel=this._model,this._onChanged(this._model)},e.prototype.keyEnter=function(e){e.target.blur()},e.prototype.calculateTextWidth=function(e){var t=this.inputControl.nativeElement,n=t.parentElement.parentElement.offsetWidth*this.maxParentWidthPercent,i=St.b(window.getComputedStyle(t),e);this._renderer.setStyle(t,"width",Math.min(n,i)+"px")},e}(),pu=o["\u0275crt"]({encapsulation:2,styles:[],data:{}});function fu(e){return o["\u0275vid"](2,[o["\u0275qud"](402653184,1,{inputControl:0}),(e()(),o["\u0275eld"](1,0,[[1,0],["inputControl",1]],null,6,"input",[["cancelable",""],["type","text"]],[[8,"className",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]],[[null,"ngModelChange"],[null,"blur"],[null,"focus"],[null,"keyup.enter"],[null,"keyup"],[null,"input"],[null,"compositionstart"],[null,"compositionend"],[null,"keyup.escape"]],function(e,t,n){var i=!0,r=e.component;return"input"===t&&(i=!1!==o["\u0275nov"](e,2)._handleInput(n.target.value)&&i),"blur"===t&&(i=!1!==o["\u0275nov"](e,2).onTouched()&&i),"compositionstart"===t&&(i=!1!==o["\u0275nov"](e,2)._compositionStart()&&i),"compositionend"===t&&(i=!1!==o["\u0275nov"](e,2)._compositionEnd(n.target.value)&&i),"focus"===t&&(i=!1!==o["\u0275nov"](e,7).onFocus()&&i),"keyup.escape"===t&&(i=!1!==o["\u0275nov"](e,7).onEscape()&&i),"ngModelChange"===t&&(i=!1!==(r.model=n)&&i),"blur"===t&&(i=!1!==r.blur()&&i),"focus"===t&&(i=!1!==r.focus()&&i),"keyup.enter"===t&&(i=!1!==r.keyEnter(n)&&i),"keyup"===t&&(i=!1!==r.calculateTextWidth(n.target.value)&&i),i},null,null)),o["\u0275did"](2,16384,null,0,je.DefaultValueAccessor,[o.Renderer2,o.ElementRef,[2,je.COMPOSITION_BUFFER_MODE]],null,null),o["\u0275prd"](1024,null,je.NG_VALUE_ACCESSOR,function(e){return[e]},[je.DefaultValueAccessor]),o["\u0275did"](4,671744,null,0,je.NgModel,[[8,null],[8,null],[8,null],[2,je.NG_VALUE_ACCESSOR]],{isDisabled:[0,"isDisabled"],model:[1,"model"]},{update:"ngModelChange"}),o["\u0275prd"](2048,null,je.NgControl,null,[je.NgModel]),o["\u0275did"](6,16384,null,0,je.NgControlStatus,[je.NgControl],null,null),o["\u0275did"](7,16384,null,0,xt,[o.ElementRef,o.Renderer],null,null),(e()(),o["\u0275ted"](-1,null,["\n"]))],function(e,t){var n=t.component;e(t,4,0,n.disabled,n.model)},function(e,t){e(t,1,0,t.component.css,o["\u0275nov"](t,6).ngClassUntouched,o["\u0275nov"](t,6).ngClassTouched,o["\u0275nov"](t,6).ngClassPristine,o["\u0275nov"](t,6).ngClassDirty,o["\u0275nov"](t,6).ngClassValid,o["\u0275nov"](t,6).ngClassInvalid,o["\u0275nov"](t,6).ngClassPending)})}var hu=function(){function e(e,t,n){this.store=e,this.renderer=t,this.cdRef=n,this.animation={device:"active",configuration:"active",keymap:"active",macro:"active",addon:"active"}}return e.prototype.ngOnInit=function(){var e=this;this.stateSubscription=this.store.select(c.t).subscribe(function(t){e.state=t,e.cdRef.markForCheck()})},e.prototype.ngOnDestroy=function(){this.stateSubscription&&this.stateSubscription.unsubscribe()},e.prototype.toggleHide=function(e,t){if(!this.state.updatingFirmware){var n=!1;e.target.classList.contains("fa-chevron-down")?(n=!0,this.animation[t]="active"):this.animation[t]="inactive",n?(this.renderer.addClass(e.target,"fa-chevron-up"),this.renderer.removeClass(e.target,"fa-chevron-down")):(this.renderer.removeClass(e.target,"fa-chevron-up"),this.renderer.addClass(e.target,"fa-chevron-down"))}},e.prototype.addMacro=function(){this.store.dispatch(Ot.b.addMacro())},e.prototype.editDeviceName=function(e){this.store.dispatch(new me.h(e))},e}(),yu=o["\u0275crt"]({encapsulation:0,styles:[["[_nghost-%COMP%]{background-color:#f5f5f5;border-right:1px solid #ccc;position:fixed;overflow-y:auto;width:250px;height:100%}a[_ngcontent-%COMP%]{color:#333}a.disabled[_ngcontent-%COMP%]{opacity:.65}ul[_ngcontent-%COMP%]{padding:0;margin:0}ul[_ngcontent-%COMP%] li[_ngcontent-%COMP%]{list-style:none;padding:0}ul[_ngcontent-%COMP%] ul[_ngcontent-%COMP%]{overflow:hidden}.sidebar__level-0[_ngcontent-%COMP%]{padding:.5rem 1rem 0}.sidebar__level-1[_ngcontent-%COMP%]{padding:.5rem 1rem .5rem 2rem}.sidebar__level-0[_ngcontent-%COMP%], .sidebar__level-1[_ngcontent-%COMP%]{font-size:2rem;line-height:3rem;cursor:default}.sidebar__level-0[_ngcontent-%COMP%]:hover .fa-chevron-down[_ngcontent-%COMP%], .sidebar__level-0[_ngcontent-%COMP%]:hover .fa-chevron-up[_ngcontent-%COMP%], .sidebar__level-1[_ngcontent-%COMP%]:hover .fa-chevron-down[_ngcontent-%COMP%], .sidebar__level-1[_ngcontent-%COMP%]:hover .fa-chevron-up[_ngcontent-%COMP%]{display:inline-block}.sidebar__level-0--item[_ngcontent-%COMP%], .sidebar__level-1--item[_ngcontent-%COMP%]{margin-top:0}.sidebar__level-0--item[_ngcontent-%COMP%]:nth-child(1), .sidebar__level-1--item[_ngcontent-%COMP%]:nth-child(1){margin:0}.sidebar__level-0[_ngcontent-%COMP%] .fa-chevron-down[_ngcontent-%COMP%], .sidebar__level-0[_ngcontent-%COMP%] .fa-chevron-up[_ngcontent-%COMP%], .sidebar__level-1[_ngcontent-%COMP%] .fa-chevron-down[_ngcontent-%COMP%], .sidebar__level-1[_ngcontent-%COMP%] .fa-chevron-up[_ngcontent-%COMP%]{margin-right:1rem;font-size:1.5rem;position:relative;top:.5rem;display:none;cursor:pointer}.sidebar__level-0[_ngcontent-%COMP%] .uhk-icon-agent-icon[_ngcontent-%COMP%], .sidebar__level-1[_ngcontent-%COMP%] .uhk-icon-agent-icon[_ngcontent-%COMP%]{margin-left:-3px}.sidebar__level-2--item[_ngcontent-%COMP%]{padding:0 20px 0 0;position:relative}.sidebar__level-2--item.active[_ngcontent-%COMP%]{background-color:#555;color:#fff}.sidebar__level-2--item.active[_ngcontent-%COMP%] .fa-star[_ngcontent-%COMP%]{color:#fff}.sidebar__level-2--item.active[_ngcontent-%COMP%]:hover{background-color:#555}.sidebar__level-2--item[_ngcontent-%COMP%]:hover{cursor:pointer}.sidebar__level-2--item[_ngcontent-%COMP%] .fa.pull-right[_ngcontent-%COMP%]{position:relative;top:2px}.sidebar__level-2--item[_ngcontent-%COMP%] .fa-star[_ngcontent-%COMP%]{color:#666}.sidebar__level-2--item[_ngcontent-%COMP%] a[_ngcontent-%COMP%]{display:block;width:100%;padding:0 15px 0 30px}.sidebar__level-2--item[_ngcontent-%COMP%] a[_ngcontent-%COMP%]:focus, .sidebar__level-2--item[_ngcontent-%COMP%] a[_ngcontent-%COMP%]:hover{text-decoration:none}.sidebar__level-2--item[_ngcontent-%COMP%] a.disabled[_ngcontent-%COMP%]{opacity:.65}.sidebar__level-0[_ngcontent-%COMP%]:hover, .sidebar__level-1[_ngcontent-%COMP%]:hover, .sidebar__level-2[_ngcontent-%COMP%]:hover{background-color:rgba(0,0,0,.05)}.sidebar__level-0.active[_ngcontent-%COMP%], .sidebar__level-1.active[_ngcontent-%COMP%], .sidebar__level-2.active[_ngcontent-%COMP%]{background-color:rgba(0,0,0,.18)}.sidebar__fav[_ngcontent-%COMP%]{position:absolute;right:19px;top:3px}.menu--bottom[_ngcontent-%COMP%]{position:absolute;bottom:0;left:0;width:100%}.menu--bottom[_ngcontent-%COMP%] .sidebar__level-1[_ngcontent-%COMP%]{display:block;padding:1rem;cursor:pointer}.menu--bottom[_ngcontent-%COMP%] .sidebar__level-1[_ngcontent-%COMP%]:hover{text-decoration:none}"]],data:{animation:[{type:7,name:"toggler",definitions:[{type:0,name:"inactive",styles:{type:6,styles:{height:"0px"},offset:null},options:void 0},{type:0,name:"active",styles:{type:6,styles:{height:"*"},offset:null},options:void 0},{type:1,expr:"inactive <=> active",animation:{type:4,styles:null,timings:"500ms ease-out"},options:null}],options:{}}]}});function mu(e){return o["\u0275vid"](0,[(e()(),o["\u0275eld"](0,0,null,null,13,"li",[["class","sidebar__level-2--item"]],null,null,null,null,null)),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275eld"](2,0,null,null,10,"div",[["class","sidebar__level-2"]],null,null,null,null,null)),o["\u0275did"](3,1720320,null,2,le.n,[le.m,o.ElementRef,o.Renderer2,o.ChangeDetectorRef],{routerLinkActive:[0,"routerLinkActive"]},null),o["\u0275qud"](603979776,2,{links:1}),o["\u0275qud"](603979776,3,{linksWithHrefs:1}),o["\u0275pad"](6,1),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275eld"](8,0,null,null,3,"a",[],[[2,"disabled",null],[1,"target",0],[8,"href",4]],[[null,"click"]],function(e,t,n){var i=!0;return"click"===t&&(i=!1!==o["\u0275nov"](e,9).onClick(n.button,n.ctrlKey,n.metaKey,n.shiftKey)&&i),i},null,null)),o["\u0275did"](9,671744,[[3,4]],0,le.o,[le.m,le.a,p.h],{routerLink:[0,"routerLink"]},null),o["\u0275pad"](10,1),(e()(),o["\u0275ted"](-1,null,["Mouse speed"])),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275ted"](-1,null,["\n "]))],function(e,t){e(t,3,0,e(t,6,0,"active")),e(t,9,0,e(t,10,0,"/device/mouse-speed"))},function(e,t){e(t,8,0,t.component.state.updatingFirmware,o["\u0275nov"](t,9).target,o["\u0275nov"](t,9).href)})}function gu(e){return o["\u0275vid"](0,[(e()(),o["\u0275eld"](0,0,null,null,13,"li",[["class","sidebar__level-2--item"]],null,null,null,null,null)),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275eld"](2,0,null,null,10,"div",[["class","sidebar__level-2"]],null,null,null,null,null)),o["\u0275did"](3,1720320,null,2,le.n,[le.m,o.ElementRef,o.Renderer2,o.ChangeDetectorRef],{routerLinkActive:[0,"routerLinkActive"]},null),o["\u0275qud"](603979776,4,{links:1}),o["\u0275qud"](603979776,5,{linksWithHrefs:1}),o["\u0275pad"](6,1),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275eld"](8,0,null,null,3,"a",[],[[2,"disabled",null],[1,"target",0],[8,"href",4]],[[null,"click"]],function(e,t,n){var i=!0;return"click"===t&&(i=!1!==o["\u0275nov"](e,9).onClick(n.button,n.ctrlKey,n.metaKey,n.shiftKey)&&i),i},null,null)),o["\u0275did"](9,671744,[[5,4]],0,le.o,[le.m,le.a,p.h],{routerLink:[0,"routerLink"]},null),o["\u0275pad"](10,1),(e()(),o["\u0275ted"](-1,null,["LED brightness"])),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275ted"](-1,null,["\n "]))],function(e,t){e(t,3,0,e(t,6,0,"active")),e(t,9,0,e(t,10,0,"/device/led-brightness"))},function(e,t){e(t,8,0,t.component.state.updatingFirmware,o["\u0275nov"](t,9).target,o["\u0275nov"](t,9).href)})}function vu(e){return o["\u0275vid"](0,[(e()(),o["\u0275eld"](0,0,null,null,13,"li",[["class","sidebar__level-2--item"]],null,null,null,null,null)),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275eld"](2,0,null,null,10,"div",[["class","sidebar__level-2"]],null,null,null,null,null)),o["\u0275did"](3,1720320,null,2,le.n,[le.m,o.ElementRef,o.Renderer2,o.ChangeDetectorRef],{routerLinkActive:[0,"routerLinkActive"]},null),o["\u0275qud"](603979776,6,{links:1}),o["\u0275qud"](603979776,7,{linksWithHrefs:1}),o["\u0275pad"](6,1),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275eld"](8,0,null,null,3,"a",[],[[2,"disabled",null],[1,"target",0],[8,"href",4]],[[null,"click"]],function(e,t,n){var i=!0;return"click"===t&&(i=!1!==o["\u0275nov"](e,9).onClick(n.button,n.ctrlKey,n.metaKey,n.shiftKey)&&i),i},null,null)),o["\u0275did"](9,671744,[[7,4]],0,le.o,[le.m,le.a,p.h],{routerLink:[0,"routerLink"]},null),o["\u0275pad"](10,1),(e()(),o["\u0275ted"](-1,null,["Configuration"])),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275ted"](-1,null,["\n "]))],function(e,t){e(t,3,0,e(t,6,0,"active")),e(t,9,0,e(t,10,0,"/device/configuration"))},function(e,t){e(t,8,0,t.component.state.updatingFirmware,o["\u0275nov"](t,9).target,o["\u0275nov"](t,9).href)})}function bu(e){return o["\u0275vid"](0,[(e()(),o["\u0275eld"](0,0,null,null,13,"li",[["class","sidebar__level-2--item"]],null,null,null,null,null)),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275eld"](2,0,null,null,10,"div",[["class","sidebar__level-2"]],null,null,null,null,null)),o["\u0275did"](3,1720320,null,2,le.n,[le.m,o.ElementRef,o.Renderer2,o.ChangeDetectorRef],{routerLinkActive:[0,"routerLinkActive"]},null),o["\u0275qud"](603979776,8,{links:1}),o["\u0275qud"](603979776,9,{linksWithHrefs:1}),o["\u0275pad"](6,1),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275eld"](8,0,null,null,3,"a",[],[[1,"target",0],[8,"href",4]],[[null,"click"]],function(e,t,n){var i=!0;return"click"===t&&(i=!1!==o["\u0275nov"](e,9).onClick(n.button,n.ctrlKey,n.metaKey,n.shiftKey)&&i),i},null,null)),o["\u0275did"](9,671744,[[9,4]],0,le.o,[le.m,le.a,p.h],{routerLink:[0,"routerLink"]},null),o["\u0275pad"](10,1),(e()(),o["\u0275ted"](-1,null,["Fix configuration"])),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275ted"](-1,null,["\n "]))],function(e,t){e(t,3,0,e(t,6,0,"active")),e(t,9,0,e(t,10,0,"/device/restore-user-configuration"))},function(e,t){e(t,8,0,o["\u0275nov"](t,9).target,o["\u0275nov"](t,9).href)})}function ku(e){return o["\u0275vid"](0,[(e()(),o["\u0275eld"](0,0,null,null,1,"i",[["class","fa fa-star sidebar__fav"],["data-placement","bottom"],["data-toggle","tooltip"],["title","This is the default keymap which gets activated when powering the keyboard."]],[[1,"data-placement",0]],null,null,null,null)),o["\u0275did"](1,1589248,null,0,V,[o.ElementRef,I.c],{title:[0,"title"]},null)],function(e,t){e(t,1,0,"This is the default keymap which gets activated when powering the keyboard.")},function(e,t){e(t,0,0,o["\u0275nov"](t,1).placement)})}function _u(e){return o["\u0275vid"](0,[(e()(),o["\u0275eld"](0,0,null,null,16,"li",[["class","sidebar__level-2--item"]],null,null,null,null,null)),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275eld"](2,0,null,null,13,"div",[["class","sidebar__level-2"]],null,null,null,null,null)),o["\u0275did"](3,1720320,null,2,le.n,[le.m,o.ElementRef,o.Renderer2,o.ChangeDetectorRef],{routerLinkActive:[0,"routerLinkActive"]},null),o["\u0275qud"](603979776,12,{links:1}),o["\u0275qud"](603979776,13,{linksWithHrefs:1}),o["\u0275pad"](6,1),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275eld"](8,0,null,null,3,"a",[],[[2,"disabled",null],[1,"target",0],[8,"href",4]],[[null,"click"]],function(e,t,n){var i=!0;return"click"===t&&(i=!1!==o["\u0275nov"](e,9).onClick(n.button,n.ctrlKey,n.metaKey,n.shiftKey)&&i),i},null,null)),o["\u0275did"](9,671744,[[13,4]],0,le.o,[le.m,le.a,p.h],{routerLink:[0,"routerLink"]},null),o["\u0275pad"](10,2),(e()(),o["\u0275ted"](11,null,["",""])),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275and"](16777216,null,null,1,null,ku)),o["\u0275did"](14,16384,null,0,p.k,[o.ViewContainerRef,o.TemplateRef],{ngIf:[0,"ngIf"]},null),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275ted"](-1,null,["\n "]))],function(e,t){e(t,3,0,e(t,6,0,"active")),e(t,9,0,e(t,10,0,"/keymap",t.context.$implicit.abbreviation)),e(t,14,0,t.context.$implicit.isDefault)},function(e,t){e(t,8,0,t.component.state.updatingFirmware,o["\u0275nov"](t,9).target,o["\u0275nov"](t,9).href),e(t,11,0,t.context.$implicit.name)})}function wu(e){return o["\u0275vid"](0,[(e()(),o["\u0275eld"](0,0,null,null,15,"li",[["class","sidebar__level-1--item"]],null,null,null,null,null)),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275eld"](2,0,null,null,6,"div",[["class","sidebar__level-1"]],null,null,null,null,null)),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275eld"](4,0,null,null,0,"i",[["class","fa fa-keyboard-o"]],null,null,null,null,null)),(e()(),o["\u0275ted"](-1,null,[" Keymaps\n "])),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275eld"](7,0,null,null,0,"i",[["class","fa fa-chevron-up pull-right"]],null,[[null,"click"]],function(e,t,n){var i=!0;return"click"===t&&(i=!1!==e.component.toggleHide(n,"keymap")&&i),i},null,null)),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275eld"](10,0,null,null,4,"ul",[],[[24,"@toggler",0]],null,null,null,null)),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275and"](16777216,null,null,1,null,_u)),o["\u0275did"](13,802816,null,0,p.j,[o.ViewContainerRef,o.TemplateRef,o.IterableDiffers],{ngForOf:[0,"ngForOf"]},null),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275ted"](-1,null,["\n "]))],function(e,t){e(t,13,0,t.component.state.keymaps)},function(e,t){e(t,10,0,t.component.animation.keymap)})}function Au(e){return o["\u0275vid"](0,[(e()(),o["\u0275eld"](0,0,null,null,13,"li",[["class","sidebar__level-2--item"]],null,null,null,null,null)),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275eld"](2,0,null,null,10,"div",[["class","sidebar__level-2"]],null,null,null,null,null)),o["\u0275did"](3,1720320,null,2,le.n,[le.m,o.ElementRef,o.Renderer2,o.ChangeDetectorRef],{routerLinkActive:[0,"routerLinkActive"]},null),o["\u0275qud"](603979776,14,{links:1}),o["\u0275qud"](603979776,15,{linksWithHrefs:1}),o["\u0275pad"](6,1),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275eld"](8,0,null,null,3,"a",[],[[2,"disabled",null],[1,"target",0],[8,"href",4]],[[null,"click"]],function(e,t,n){var i=!0;return"click"===t&&(i=!1!==o["\u0275nov"](e,9).onClick(n.button,n.ctrlKey,n.metaKey,n.shiftKey)&&i),i},null,null)),o["\u0275did"](9,671744,[[15,4]],0,le.o,[le.m,le.a,p.h],{routerLink:[0,"routerLink"]},null),o["\u0275pad"](10,2),(e()(),o["\u0275ted"](11,null,["",""])),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275ted"](-1,null,["\n "]))],function(e,t){e(t,3,0,e(t,6,0,"active")),e(t,9,0,e(t,10,0,"/macro",t.context.$implicit.id))},function(e,t){e(t,8,0,t.component.state.updatingFirmware,o["\u0275nov"](t,9).target,o["\u0275nov"](t,9).href),e(t,11,0,t.context.$implicit.name)})}function Tu(e){return o["\u0275vid"](0,[(e()(),o["\u0275eld"](0,0,null,null,19,"li",[["class","sidebar__level-1--item"]],null,null,null,null,null)),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275eld"](2,0,null,null,10,"div",[["class","sidebar__level-1"]],null,null,null,null,null)),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275eld"](4,0,null,null,0,"i",[["class","fa fa-play"]],null,null,null,null,null)),(e()(),o["\u0275ted"](-1,null,[" Macros\n "])),(e()(),o["\u0275eld"](6,0,null,null,3,"a",[["class","btn btn-default pull-right btn-sm"]],[[2,"disabled",null]],[[null,"click"]],function(e,t,n){var i=!0;return"click"===t&&(i=!1!==e.component.addMacro()&&i),i},null,null)),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275eld"](8,0,null,null,0,"i",[["class","fa fa-plus"]],null,null,null,null,null)),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275eld"](11,0,null,null,0,"i",[["class","fa fa-chevron-up pull-right"]],null,[[null,"click"]],function(e,t,n){var i=!0;return"click"===t&&(i=!1!==e.component.toggleHide(n,"macro")&&i),i},null,null)),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275eld"](14,0,null,null,4,"ul",[],[[24,"@toggler",0]],null,null,null,null)),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275and"](16777216,null,null,1,null,Au)),o["\u0275did"](17,802816,null,0,p.j,[o.ViewContainerRef,o.TemplateRef,o.IterableDiffers],{ngForOf:[0,"ngForOf"]},null),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275ted"](-1,null,["\n "]))],function(e,t){e(t,17,0,t.component.state.macros)},function(e,t){var n=t.component;e(t,6,0,n.state.updatingFirmware),e(t,14,0,n.animation.macro)})}function Cu(e){return o["\u0275vid"](0,[(e()(),o["\u0275eld"](0,0,null,null,71,"li",[["class","sidebar__level-1--item"]],null,null,null,null,null)),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275eld"](2,0,null,null,5,"div",[["class","sidebar__level-1"]],null,null,null,null,null)),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275eld"](4,0,null,null,0,"i",[["class","fa fa-puzzle-piece"]],null,null,null,null,null)),(e()(),o["\u0275ted"](-1,null,[" Add-on modules\n "])),(e()(),o["\u0275eld"](6,0,null,null,0,"i",[["class","fa fa-chevron-up pull-right"]],null,[[null,"click"]],function(e,t,n){var i=!0;return"click"===t&&(i=!1!==e.component.toggleHide(n,"addon")&&i),i},null,null)),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275eld"](9,0,null,null,61,"ul",[],[[24,"@toggler",0]],null,null,null,null)),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275eld"](11,0,null,null,13,"li",[["class","sidebar__level-2--item"],["data-abbrev",""],["data-name","Key cluster"]],null,null,null,null,null)),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275eld"](13,0,null,null,10,"div",[["class","sidebar__level-2"]],null,null,null,null,null)),o["\u0275did"](14,1720320,null,2,le.n,[le.m,o.ElementRef,o.Renderer2,o.ChangeDetectorRef],{routerLinkActive:[0,"routerLinkActive"]},null),o["\u0275qud"](603979776,16,{links:1}),o["\u0275qud"](603979776,17,{linksWithHrefs:1}),o["\u0275pad"](17,1),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275eld"](19,0,null,null,3,"a",[],[[2,"disabled",null],[1,"target",0],[8,"href",4]],[[null,"click"]],function(e,t,n){var i=!0;return"click"===t&&(i=!1!==o["\u0275nov"](e,20).onClick(n.button,n.ctrlKey,n.metaKey,n.shiftKey)&&i),i},null,null)),o["\u0275did"](20,671744,[[17,4]],0,le.o,[le.m,le.a,p.h],{routerLink:[0,"routerLink"]},null),o["\u0275pad"](21,2),(e()(),o["\u0275ted"](-1,null,["Key cluster"])),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275eld"](26,0,null,null,13,"li",[["class","sidebar__level-2--item"],["data-abbrev",""],["data-name","Trackball"]],null,null,null,null,null)),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275eld"](28,0,null,null,10,"div",[["class","sidebar__level-2"]],null,null,null,null,null)),o["\u0275did"](29,1720320,null,2,le.n,[le.m,o.ElementRef,o.Renderer2,o.ChangeDetectorRef],{routerLinkActive:[0,"routerLinkActive"]},null),o["\u0275qud"](603979776,18,{links:1}),o["\u0275qud"](603979776,19,{linksWithHrefs:1}),o["\u0275pad"](32,1),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275eld"](34,0,null,null,3,"a",[],[[2,"disabled",null],[1,"target",0],[8,"href",4]],[[null,"click"]],function(e,t,n){var i=!0;return"click"===t&&(i=!1!==o["\u0275nov"](e,35).onClick(n.button,n.ctrlKey,n.metaKey,n.shiftKey)&&i),i},null,null)),o["\u0275did"](35,671744,[[19,4]],0,le.o,[le.m,le.a,p.h],{routerLink:[0,"routerLink"]},null),o["\u0275pad"](36,2),(e()(),o["\u0275ted"](-1,null,["Trackball"])),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275eld"](41,0,null,null,13,"li",[["class","sidebar__level-2--item"],["data-abbrev",""],["data-name","Toucpad"]],null,null,null,null,null)),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275eld"](43,0,null,null,10,"div",[["class","sidebar__level-2"]],null,null,null,null,null)),o["\u0275did"](44,1720320,null,2,le.n,[le.m,o.ElementRef,o.Renderer2,o.ChangeDetectorRef],{routerLinkActive:[0,"routerLinkActive"]},null),o["\u0275qud"](603979776,20,{links:1}),o["\u0275qud"](603979776,21,{linksWithHrefs:1}),o["\u0275pad"](47,1),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275eld"](49,0,null,null,3,"a",[],[[2,"disabled",null],[1,"target",0],[8,"href",4]],[[null,"click"]],function(e,t,n){var i=!0;return"click"===t&&(i=!1!==o["\u0275nov"](e,50).onClick(n.button,n.ctrlKey,n.metaKey,n.shiftKey)&&i),i},null,null)),o["\u0275did"](50,671744,[[21,4]],0,le.o,[le.m,le.a,p.h],{routerLink:[0,"routerLink"]},null),o["\u0275pad"](51,2),(e()(),o["\u0275ted"](-1,null,["Touchpad"])),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275eld"](56,0,null,null,13,"li",[["class","sidebar__level-2--item"],["data-abbrev",""],["data-name","Trackpoint"]],null,null,null,null,null)),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275eld"](58,0,null,null,10,"div",[["class","sidebar__level-2"]],null,null,null,null,null)),o["\u0275did"](59,1720320,null,2,le.n,[le.m,o.ElementRef,o.Renderer2,o.ChangeDetectorRef],{routerLinkActive:[0,"routerLinkActive"]},null),o["\u0275qud"](603979776,22,{links:1}),o["\u0275qud"](603979776,23,{linksWithHrefs:1}),o["\u0275pad"](62,1),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275eld"](64,0,null,null,3,"a",[],[[2,"disabled",null],[1,"target",0],[8,"href",4]],[[null,"click"]],function(e,t,n){var i=!0;return"click"===t&&(i=!1!==o["\u0275nov"](e,65).onClick(n.button,n.ctrlKey,n.metaKey,n.shiftKey)&&i),i},null,null)),o["\u0275did"](65,671744,[[23,4]],0,le.o,[le.m,le.a,p.h],{routerLink:[0,"routerLink"]},null),o["\u0275pad"](66,2),(e()(),o["\u0275ted"](-1,null,["Trackpoint"])),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275ted"](-1,null,["\n "]))],function(e,t){e(t,14,0,e(t,17,0,"active")),e(t,20,0,e(t,21,0,"/add-on","Key cluster")),e(t,29,0,e(t,32,0,"active")),e(t,35,0,e(t,36,0,"/add-on","Trackball")),e(t,44,0,e(t,47,0,"active")),e(t,50,0,e(t,51,0,"/add-on","Touchpad")),e(t,59,0,e(t,62,0,"active")),e(t,65,0,e(t,66,0,"/add-on","Trackpoint"))},function(e,t){var n=t.component;e(t,9,0,n.animation.addon),e(t,19,0,n.state.updatingFirmware,o["\u0275nov"](t,20).target,o["\u0275nov"](t,20).href),e(t,34,0,n.state.updatingFirmware,o["\u0275nov"](t,35).target,o["\u0275nov"](t,35).href),e(t,49,0,n.state.updatingFirmware,o["\u0275nov"](t,50).target,o["\u0275nov"](t,50).href),e(t,64,0,n.state.updatingFirmware,o["\u0275nov"](t,65).target,o["\u0275nov"](t,65).href)})}function xu(e){return o["\u0275vid"](2,[o["\u0275qud"](402653184,1,{deviceName:0}),(e()(),o["\u0275eld"](1,0,null,null,118,"ul",[["class","menu--top"]],null,null,null,null,null)),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275eld"](3,0,null,null,67,"li",[["class","sidebar__level-0--item"]],null,null,null,null,null)),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275eld"](5,0,null,null,12,"div",[["class","sidebar__level-0"]],null,null,null,null,null)),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275eld"](7,0,null,null,0,"i",[["class","uhk-icon uhk-icon-0401-usb-stick rotate-right"]],null,null,null,null,null)),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275eld"](9,0,null,null,5,"auto-grow-input",[],[[2,"ng-untouched",null],[2,"ng-touched",null],[2,"ng-pristine",null],[2,"ng-dirty",null],[2,"ng-valid",null],[2,"ng-invalid",null],[2,"ng-pending",null]],[[null,"ngModelChange"],["window","resize"]],function(e,t,n){var i=!0,r=e.component;return"window:resize"===t&&(i=!1!==o["\u0275nov"](e,10).windowResize()&&i),"ngModelChange"===t&&(i=!1!==r.editDeviceName(n)&&i),i},fu,pu)),o["\u0275did"](10,49152,null,0,du,[o.ChangeDetectorRef,o.Renderer2],{maxParentWidthPercent:[0,"maxParentWidthPercent"],css:[1,"css"]},null),o["\u0275prd"](1024,null,je.NG_VALUE_ACCESSOR,function(e){return[e]},[du]),o["\u0275did"](12,671744,null,0,je.NgModel,[[8,null],[8,null],[8,null],[2,je.NG_VALUE_ACCESSOR]],{isDisabled:[0,"isDisabled"],model:[1,"model"]},{update:"ngModelChange"}),o["\u0275prd"](2048,null,je.NgControl,null,[je.NgModel]),o["\u0275did"](14,16384,null,0,je.NgControlStatus,[je.NgControl],null,null),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275eld"](16,0,null,null,0,"i",[["class","fa fa-chevron-up pull-right"]],null,[[null,"click"]],function(e,t,n){var i=!0;return"click"===t&&(i=!1!==e.component.toggleHide(n,"device")&&i),i},null,null)),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275eld"](19,0,null,null,50,"ul",[],[[24,"@toggler",0]],null,null,null,null)),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275eld"](21,0,null,null,38,"li",[["class","sidebar__level-1--item"]],null,null,null,null,null)),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275eld"](23,0,null,null,5,"div",[["class","sidebar__level-1"]],null,null,null,null,null)),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275eld"](25,0,null,null,0,"i",[["class","fa fa-sliders"]],null,null,null,null,null)),(e()(),o["\u0275ted"](-1,null,[" Device\n "])),(e()(),o["\u0275eld"](27,0,null,null,0,"i",[["class","fa fa-chevron-up pull-right"]],null,[[null,"click"]],function(e,t,n){var i=!0;return"click"===t&&(i=!1!==e.component.toggleHide(n,"configuration")&&i),i},null,null)),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275eld"](30,0,null,null,28,"ul",[],[[24,"@toggler",0]],null,null,null,null)),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275and"](16777216,null,null,1,null,mu)),o["\u0275did"](33,16384,null,0,p.k,[o.ViewContainerRef,o.TemplateRef],{ngIf:[0,"ngIf"]},null),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275and"](16777216,null,null,1,null,gu)),o["\u0275did"](36,16384,null,0,p.k,[o.ViewContainerRef,o.TemplateRef],{ngIf:[0,"ngIf"]},null),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275and"](16777216,null,null,1,null,vu)),o["\u0275did"](39,16384,null,0,p.k,[o.ViewContainerRef,o.TemplateRef],{ngIf:[0,"ngIf"]},null),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275and"](16777216,null,null,1,null,bu)),o["\u0275did"](42,16384,null,0,p.k,[o.ViewContainerRef,o.TemplateRef],{ngIf:[0,"ngIf"]},null),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275eld"](44,0,null,null,13,"li",[["class","sidebar__level-2--item"]],null,null,null,null,null)),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275eld"](46,0,null,null,10,"div",[["class","sidebar__level-2"]],null,null,null,null,null)),o["\u0275did"](47,1720320,null,2,le.n,[le.m,o.ElementRef,o.Renderer2,o.ChangeDetectorRef],{routerLinkActive:[0,"routerLinkActive"]},null),o["\u0275qud"](603979776,10,{links:1}),o["\u0275qud"](603979776,11,{linksWithHrefs:1}),o["\u0275pad"](50,1),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275eld"](52,0,null,null,3,"a",[],[[2,"disabled",null],[1,"target",0],[8,"href",4]],[[null,"click"]],function(e,t,n){var i=!0;return"click"===t&&(i=!1!==o["\u0275nov"](e,53).onClick(n.button,n.ctrlKey,n.metaKey,n.shiftKey)&&i),i},null,null)),o["\u0275did"](53,671744,[[11,4]],0,le.o,[le.m,le.a,p.h],{routerLink:[0,"routerLink"]},null),o["\u0275pad"](54,1),(e()(),o["\u0275ted"](-1,null,["Firmware"])),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275and"](16777216,null,null,1,null,wu)),o["\u0275did"](62,16384,null,0,p.k,[o.ViewContainerRef,o.TemplateRef],{ngIf:[0,"ngIf"]},null),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275and"](16777216,null,null,1,null,Tu)),o["\u0275did"](65,16384,null,0,p.k,[o.ViewContainerRef,o.TemplateRef],{ngIf:[0,"ngIf"]},null),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275and"](16777216,null,null,1,null,Cu)),o["\u0275did"](68,16384,null,0,p.k,[o.ViewContainerRef,o.TemplateRef],{ngIf:[0,"ngIf"]},null),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275eld"](72,0,null,null,46,"li",[["class","sidebar__level-0--item"]],null,null,null,null,null)),o["\u0275did"](73,1720320,null,2,le.n,[le.m,o.ElementRef,o.Renderer2,o.ChangeDetectorRef],{routerLinkActive:[0,"routerLinkActive"]},null),o["\u0275qud"](603979776,24,{links:1}),o["\u0275qud"](603979776,25,{linksWithHrefs:1}),o["\u0275pad"](76,1),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275eld"](78,0,null,null,5,"div",[["class","sidebar__level-0"]],null,null,null,null,null)),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275eld"](80,0,null,null,0,"i",[["class","uhk-icon uhk-icon-agent-icon"]],null,null,null,null,null)),(e()(),o["\u0275ted"](-1,null,[" Agent\n "])),(e()(),o["\u0275eld"](82,0,null,null,0,"i",[["class","fa fa-chevron-up pull-right"]],null,[[null,"click"]],function(e,t,n){var i=!0;return"click"===t&&(i=!1!==e.component.toggleHide(n,"agent")&&i),i},null,null)),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275eld"](85,0,null,null,32,"ul",[],[[24,"@toggler",0]],null,null,null,null)),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275eld"](88,0,null,null,13,"li",[["class","sidebar__level-2--item"]],null,null,null,null,null)),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275eld"](90,0,null,null,10,"div",[["class","sidebar__level-2"]],null,null,null,null,null)),o["\u0275did"](91,1720320,null,2,le.n,[le.m,o.ElementRef,o.Renderer2,o.ChangeDetectorRef],{routerLinkActive:[0,"routerLinkActive"]},null),o["\u0275qud"](603979776,26,{links:1}),o["\u0275qud"](603979776,27,{linksWithHrefs:1}),o["\u0275pad"](94,1),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275eld"](96,0,null,null,3,"a",[],[[2,"disabled",null],[1,"target",0],[8,"href",4]],[[null,"click"]],function(e,t,n){var i=!0;return"click"===t&&(i=!1!==o["\u0275nov"](e,97).onClick(n.button,n.ctrlKey,n.metaKey,n.shiftKey)&&i),i},null,null)),o["\u0275did"](97,671744,[[27,4],[25,4]],0,le.o,[le.m,le.a,p.h],{routerLink:[0,"routerLink"]},null),o["\u0275pad"](98,1),(e()(),o["\u0275ted"](-1,null,["Help"])),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275eld"](103,0,null,null,13,"li",[["class","sidebar__level-2--item"]],null,null,null,null,null)),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275eld"](105,0,null,null,10,"div",[["class","sidebar__level-2"]],null,null,null,null,null)),o["\u0275did"](106,1720320,null,2,le.n,[le.m,o.ElementRef,o.Renderer2,o.ChangeDetectorRef],{routerLinkActive:[0,"routerLinkActive"]},null),o["\u0275qud"](603979776,28,{links:1}),o["\u0275qud"](603979776,29,{linksWithHrefs:1}),o["\u0275pad"](109,1),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275eld"](111,0,null,null,3,"a",[],[[2,"disabled",null],[1,"target",0],[8,"href",4]],[[null,"click"]],function(e,t,n){var i=!0;return"click"===t&&(i=!1!==o["\u0275nov"](e,112).onClick(n.button,n.ctrlKey,n.metaKey,n.shiftKey)&&i),i},null,null)),o["\u0275did"](112,671744,[[29,4],[25,4]],0,le.o,[le.m,le.a,p.h],{routerLink:[0,"routerLink"]},null),o["\u0275pad"](113,1),(e()(),o["\u0275ted"](-1,null,["About"])),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275ted"](-1,null,["\n"])),(e()(),o["\u0275ted"](-1,null,["\n"]))],function(e,t){var n=t.component;e(t,10,0,.65,"side-menu-pane-title__name"),e(t,12,0,n.state.restoreUserConfiguration||n.state.updatingFirmware,n.state.deviceName),e(t,33,0,!n.state.restoreUserConfiguration),e(t,36,0,!n.state.restoreUserConfiguration),e(t,39,0,!n.state.restoreUserConfiguration),e(t,42,0,n.state.restoreUserConfiguration),e(t,47,0,e(t,50,0,"active")),e(t,53,0,e(t,54,0,"/device/firmware")),e(t,62,0,!n.state.restoreUserConfiguration),e(t,65,0,!n.state.restoreUserConfiguration),e(t,68,0,n.state.showAddonMenu),e(t,73,0,e(t,76,0,"active")),e(t,91,0,e(t,94,0,"active")),e(t,97,0,e(t,98,0,"/help")),e(t,106,0,e(t,109,0,"active")),e(t,112,0,e(t,113,0,"/about"))},function(e,t){var n=t.component;e(t,9,0,o["\u0275nov"](t,14).ngClassUntouched,o["\u0275nov"](t,14).ngClassTouched,o["\u0275nov"](t,14).ngClassPristine,o["\u0275nov"](t,14).ngClassDirty,o["\u0275nov"](t,14).ngClassValid,o["\u0275nov"](t,14).ngClassInvalid,o["\u0275nov"](t,14).ngClassPending),e(t,19,0,n.animation.device),e(t,30,0,n.animation.configuration),e(t,52,0,n.state.updatingFirmware,o["\u0275nov"](t,53).target,o["\u0275nov"](t,53).href),e(t,85,0,n.animation.agent),e(t,96,0,n.state.updatingFirmware,o["\u0275nov"](t,97).target,o["\u0275nov"](t,97).href),e(t,111,0,n.state.updatingFirmware,o["\u0275nov"](t,112).target,o["\u0275nov"](t,112).href)})}var Ou=n("MptX"),Su=function(){function e(){this.state=Ou.a,this.clicked=new o.EventEmitter}return e.prototype.onClicked=function(){this.clicked.emit(this.state.action)},e}(),Mu=o["\u0275crt"]({encapsulation:0,styles:[["button[_ngcontent-%COMP%]{min-width:150px}"]],data:{}});function Eu(e){return o["\u0275vid"](0,[(e()(),o["\u0275eld"](0,0,null,null,0,"i",[["class","fa fa-spin fa-spinner"]],null,null,null,null,null))],null,null)}function Pu(e){return o["\u0275vid"](2,[(e()(),o["\u0275eld"](0,0,null,null,4,"button",[["class","btn btn-primary"]],[[8,"disabled",0]],[[null,"click"]],function(e,t,n){var i=!0;return"click"===t&&(i=!1!==e.component.onClicked()&&i),i},null,null)),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275and"](16777216,null,null,1,null,Eu)),o["\u0275did"](3,16384,null,0,p.k,[o.ViewContainerRef,o.TemplateRef],{ngIf:[0,"ngIf"]},null),(e()(),o["\u0275ted"](4,null,[" ","\n"])),(e()(),o["\u0275ted"](-1,null,["\n"]))],function(e,t){e(t,3,0,t.component.state.showProgress)},function(e,t){var n=t.component;e(t,0,0,n.state.showProgress),e(t,4,0,n.state.text)})}var Iu=function(){return function(e){Object.assign(this,e),void 0===e.id&&(this.id="ID_"+(new Date).getTime())}}(),Ru=function(){function e(){this.actionStream=new Oi.Subject,this.actionQueue=[],this.isActionInProgress=!1}return e.prototype.push=function(e){this.actionQueue.push(e),this.tryToRunNextAction()},e.prototype.continue=function(){this.isActionInProgress=!1,this.tryToRunNextAction()},e.prototype.tryToRunNextAction=function(){this.isActionInProgress||0===this.actionQueue.length||(this.isActionInProgress=!0,this.actionStream.next(this.actionQueue.shift()))},e}(),Du=function(){return function(e){void 0===e&&(e={}),this.animations={enabled:!0,hide:{easing:"ease",offset:50,preset:"fade",speed:300},overlap:150,shift:{easing:"ease",speed:300},show:{easing:"ease",preset:"slide",speed:300}},this.behaviour={autoHide:7e3,onClick:!1,onMouseover:"pauseAutoHide",showDismissButton:!0,stacking:4},this.position={horizontal:{distance:12,position:"left"},vertical:{distance:12,gap:10,position:"bottom"}},this.theme="material",void 0!==e.theme&&(this.theme=e.theme),void 0!==e.animations&&(void 0!==e.animations.enabled&&(this.animations.enabled=e.animations.enabled),void 0!==e.animations.overlap&&(this.animations.overlap=e.animations.overlap),void 0!==e.animations.hide&&Object.assign(this.animations.hide,e.animations.hide),void 0!==e.animations.shift&&Object.assign(this.animations.shift,e.animations.shift),void 0!==e.animations.show&&Object.assign(this.animations.show,e.animations.show)),void 0!==e.behaviour&&Object.assign(this.behaviour,e.behaviour),void 0!==e.position&&(void 0!==e.position.horizontal&&Object.assign(this.position.horizontal,e.position.horizontal),void 0!==e.position.vertical&&Object.assign(this.position.vertical,e.position.vertical))}}(),Nu=function(){function e(e,t){this.queueService=e,this.config=t}return e.prototype.getConfig=function(){return this.config},e.prototype.show=function(e){this.queueService.push({payload:e,type:"SHOW"})},e.prototype.hide=function(e){this.queueService.push({payload:e,type:"HIDE"})},e.prototype.hideNewest=function(){this.queueService.push({type:"HIDE_NEWEST"})},e.prototype.hideOldest=function(){this.queueService.push({type:"HIDE_OLDEST"})},e.prototype.hideAll=function(){this.queueService.push({type:"HIDE_ALL"})},e.prototype.notify=function(e,t,n){var i={message:t,type:e};void 0!==n&&(i.id=n),this.show(i)},e}(),ju=function(){function e(e,t,n){this.changeDetector=e,this.queueService=t,this.config=n.getConfig(),this.notifications=[]}return e.prototype.ngOnInit=function(){var e=this;this.queueServiceSubscription=this.queueService.actionStream.subscribe(function(t){e.handleAction(t).then(function(){e.queueService.continue()})})},e.prototype.ngOnDestroy=function(){this.queueServiceSubscription&&this.queueServiceSubscription.unsubscribe()},e.prototype.identifyNotification=function(e,t){return t.id},e.prototype.onNotificationDismiss=function(e){this.queueService.push({payload:e,type:"HIDE"})},e.prototype.onNotificationReady=function(e){var t=this.notifications[this.notifications.length-1];t.component=e,this.continueHandleShowAction(t)},e.prototype.handleAction=function(e){switch(e.type){case"SHOW":return this.handleShowAction(e);case"HIDE":return this.handleHideAction(e);case"HIDE_OLDEST":return this.handleHideOldestAction(e);case"HIDE_NEWEST":return this.handleHideNewestAction(e);case"HIDE_ALL":return this.handleHideAllAction(e);default:return new Promise(function(e,t){e()})}},e.prototype.handleShowAction=function(e){var t=this;return new Promise(function(n,i){t.tempPromiseResolver=n,t.addNotificationToList(new Iu(e.payload))})},e.prototype.continueHandleShowAction=function(e){var t=this,n=this.notifications.length;if(1===n)e.component.show().then(this.tempPromiseResolver);else if(!1===this.config.behaviour.stacking||this.config.behaviour.stacking<2)this.notifications[0].component.hide().then(function(){t.removeNotificationFromList(t.notifications[0]),e.component.show().then(t.tempPromiseResolver)});else{var i=[];if(n>this.config.behaviour.stacking){var o=this.notifications.slice(1,n-1);this.config.animations.enabled?!1!==this.config.animations.overlap&&this.config.animations.overlap>0?(i.push(this.notifications[0].component.hide()),setTimeout(function(){i.push(t.shiftNotifications(o,e.component.getHeight(),!0))},this.config.animations.hide.speed-this.config.animations.overlap),setTimeout(function(){i.push(e.component.show())},this.config.animations.hide.speed+this.config.animations.shift.speed-this.config.animations.overlap)):i.push(new Promise(function(n,i){t.notifications[0].component.hide().then(function(){t.shiftNotifications(o,e.component.getHeight(),!0).then(function(){e.component.show().then(n)})})})):(i.push(this.notifications[0].component.hide()),i.push(this.shiftNotifications(o,e.component.getHeight(),!0)),i.push(e.component.show()))}else{var r=this.notifications.slice(0,n-1);this.config.animations.enabled?!1!==this.config.animations.overlap&&this.config.animations.overlap>0?(i.push(this.shiftNotifications(r,e.component.getHeight(),!0)),setTimeout(function(){i.push(e.component.show())},this.config.animations.shift.speed-this.config.animations.overlap)):i.push(new Promise(function(n,i){t.shiftNotifications(r,e.component.getHeight(),!0).then(function(){e.component.show().then(n)})})):(i.push(this.shiftNotifications(r,e.component.getHeight(),!0)),i.push(e.component.show()))}Promise.all(i).then(function(){n>t.config.behaviour.stacking&&t.removeNotificationFromList(t.notifications[0]),t.tempPromiseResolver()})}},e.prototype.handleHideAction=function(e){var t=this;return new Promise(function(n,i){var o=[],r=t.findNotificationById(e.payload);if(void 0!==r){var l=t.findNotificationIndexById(e.payload);if(void 0!==l){var u=t.notifications.slice(0,l);u.length>0?t.config.animations.enabled&&t.config.animations.hide.speed>0?!1!==t.config.animations.overlap&&t.config.animations.overlap>0?(o.push(r.component.hide()),setTimeout(function(){o.push(t.shiftNotifications(u,r.component.getHeight(),!1))},t.config.animations.hide.speed-t.config.animations.overlap)):r.component.hide().then(function(){o.push(t.shiftNotifications(u,r.component.getHeight(),!1))}):(o.push(r.component.hide()),o.push(t.shiftNotifications(u,r.component.getHeight(),!1))):o.push(r.component.hide()),Promise.all(o).then(function(){t.removeNotificationFromList(r),n()})}else n()}else n()})},e.prototype.handleHideOldestAction=function(e){return 0===this.notifications.length?new Promise(function(e,t){e()}):(e.payload=this.notifications[0].id,this.handleHideAction(e))},e.prototype.handleHideNewestAction=function(e){return 0===this.notifications.length?new Promise(function(e,t){e()}):(e.payload=this.notifications[this.notifications.length-1].id,this.handleHideAction(e))},e.prototype.handleHideAllAction=function(e){var t=this;return new Promise(function(e,n){var i=t.notifications.length;if(0!==i)if(t.config.animations.enabled&&t.config.animations.hide.speed>0&&!1!==t.config.animations.hide.offset&&t.config.animations.hide.offset>0)for(var o=function(n){setTimeout(function(){t.notifications[n].component.hide().then(function(){("top"===t.config.position.vertical.position&&0===n||"bottom"===t.config.position.vertical.position&&n===i-1)&&(t.removeAllNotificationsFromList(),e())})},t.config.animations.hide.offset*("top"===t.config.position.vertical.position?i-1:n))},r=i-1;r>=0;r--)o(r);else{var l=[];for(r=i-1;r>=0;r--)l.push(t.notifications[r].component.hide());Promise.all(l).then(function(){t.removeAllNotificationsFromList(),e()})}else e()})},e.prototype.shiftNotifications=function(e,t,n){return new Promise(function(i,o){if(0!==e.length){for(var r=[],l=e.length-1;l>=0;l--)r.push(e[l].component.shift(t,n));Promise.all(r).then(i)}else i()})},e.prototype.addNotificationToList=function(e){this.notifications.push(e),this.changeDetector.markForCheck()},e.prototype.removeNotificationFromList=function(e){this.notifications=this.notifications.filter(function(t){return t.component!==e.component}),this.changeDetector.markForCheck()},e.prototype.removeAllNotificationsFromList=function(){this.notifications=[],this.changeDetector.markForCheck()},e.prototype.findNotificationById=function(e){return this.notifications.find(function(t){return t.id===e})},e.prototype.findNotificationIndexById=function(e){var t=this.notifications.findIndex(function(t){return t.id===e});return-1!==t?t:void 0},e}(),Lu={hide:function(e){return{from:{opacity:"1"},to:{opacity:"0"}}},show:function(e){return{from:{opacity:"0"},to:{opacity:"1"}}}},Uu={hide:function(e){var t,n,i=e.component.getConfig(),o=e.component.getShift();return"left"===i.position.horizontal.position?(t={transform:"translate3d( 0, "+o+"px, 0 )"},n={transform:"translate3d( calc( -100% - "+i.position.horizontal.distance+"px - 10px ), "+o+"px, 0 )"}):"right"===i.position.horizontal.position?(t={transform:"translate3d( 0, "+o+"px, 0 )"},n={transform:"translate3d( calc( 100% + "+i.position.horizontal.distance+"px + 10px ), "+o+"px, 0 )"}):(t={transform:"translate3d( -50%, "+o+"px, 0 )"},n={transform:"translate3d( -50%, "+("top"===i.position.vertical.position?"calc( -100% - "+i.position.horizontal.distance+"px - 10px )":"calc( 100% + "+i.position.horizontal.distance+"px + 10px )")+", 0 )"}),{from:t,to:n}},show:function(e){var t,n,i=e.component.getConfig();return"left"===i.position.horizontal.position?(t={transform:"translate3d( calc( -100% - "+i.position.horizontal.distance+"px - 10px ), 0, 0 )"},n={transform:"translate3d( 0, 0, 0 )"}):"right"===i.position.horizontal.position?(t={transform:"translate3d( calc( 100% + "+i.position.horizontal.distance+"px + 10px ), 0, 0 )"},n={transform:"translate3d( 0, 0, 0 )"}):(t={transform:"translate3d( -50%, "+("top"===i.position.vertical.position?"calc( -100% - "+i.position.horizontal.distance+"px - 10px )":"calc( 100% + "+i.position.horizontal.distance+"px + 10px )")+", 0 )"},n={transform:"translate3d( -50%, 0, 0 )"}),{from:t,to:n}}},Vu=function(){function e(){this.animationPresets={fade:Lu,slide:Uu}}return e.prototype.getAnimationData=function(e,t){var n,i,o;return"show"===e?(n=this.animationPresets[t.component.getConfig().animations.show.preset].show(t),i=t.component.getConfig().animations.show.speed,o=t.component.getConfig().animations.show.easing):(n=this.animationPresets[t.component.getConfig().animations.hide.preset].hide(t),i=t.component.getConfig().animations.hide.speed,o=t.component.getConfig().animations.hide.easing),{keyframes:[n.from,n.to],options:{duration:i,easing:o,fill:"forwards"}}},e}(),Fu=function(){function e(){this.now=0,this.remaining=0}return e.prototype.start=function(e){var t=this;return new Promise(function(n,i){t.remaining=e,t.finishPromiseResolver=n,t.continue()})},e.prototype.pause=function(){clearTimeout(this.timerId),this.remaining-=(new Date).getTime()-this.now},e.prototype.continue=function(){var e=this;this.now=(new Date).getTime(),this.timerId=setTimeout(function(){e.finish()},this.remaining)},e.prototype.stop=function(){clearTimeout(this.timerId),this.remaining=0},e.prototype.finish=function(){this.finishPromiseResolver()},e}(),Ku=function(){function e(e,t,n,i,r){this.config=n.getConfig(),this.ready=new o.EventEmitter,this.dismiss=new o.EventEmitter,this.timerService=i,this.animationService=r,this.renderer=t,this.element=e.nativeElement,this.elementShift=0}return e.prototype.ngAfterViewInit=function(){this.setup(),this.elementHeight=this.element.offsetHeight,this.elementWidth=this.element.offsetWidth,this.ready.emit(this)},e.prototype.getConfig=function(){return this.config},e.prototype.getHeight=function(){return this.elementHeight},e.prototype.getWidth=function(){return this.elementWidth},e.prototype.getShift=function(){return this.elementShift},e.prototype.show=function(){var e=this;return new Promise(function(t,n){if(e.config.animations.enabled&&e.config.animations.show.speed>0){for(var i=e.animationService.getAnimationData("show",e.notification),o=Object.keys(i.keyframes[0]),r=o.length-1;r>=0;r--)e.renderer.setStyle(e.element,o[r],i.keyframes[0][o[r]]);e.renderer.setStyle(e.element,"visibility","visible"),e.element.animate(i.keyframes,i.options).onfinish=function(){e.startAutoHideTimer(),t()}}else e.renderer.setStyle(e.element,"visibility","visible"),e.startAutoHideTimer(),t()})},e.prototype.hide=function(){var e=this;return new Promise(function(t,n){if(e.stopAutoHideTimer(),e.config.animations.enabled&&e.config.animations.hide.speed>0){var i=e.animationService.getAnimationData("hide",e.notification);e.element.animate(i.keyframes,i.options).onfinish=function(){t()}}else t()})},e.prototype.shift=function(e,t){var n=this;return new Promise(function(i,o){var r;r="top"===n.config.position.vertical.position&&t||"bottom"===n.config.position.vertical.position&&!t?n.elementShift+e+n.config.position.vertical.gap:n.elementShift-e-n.config.position.vertical.gap;var l="middle"===n.config.position.horizontal.position?"-50%":"0";if(n.config.animations.enabled&&n.config.animations.shift.speed>0){var u={keyframes:[{transform:"translate3d( "+l+", "+n.elementShift+"px, 0 )"},{transform:"translate3d( "+l+", "+r+"px, 0 )"}],options:{duration:n.config.animations.shift.speed,easing:n.config.animations.shift.easing,fill:"forwards"}};n.elementShift=r,n.element.animate(u.keyframes,u.options).onfinish=function(){i()}}else n.renderer.setStyle(n.element,"transform","translate3d( "+l+", "+r+"px, 0 )"),n.elementShift=r,i()})},e.prototype.onClickDismiss=function(){this.dismiss.emit(this.notification.id)},e.prototype.onNotificationMouseover=function(){"pauseAutoHide"===this.config.behaviour.onMouseover?this.pauseAutoHideTimer():"resetAutoHide"===this.config.behaviour.onMouseover&&this.stopAutoHideTimer()},e.prototype.onNotificationMouseout=function(){"pauseAutoHide"===this.config.behaviour.onMouseover?this.continueAutoHideTimer():"resetAutoHide"===this.config.behaviour.onMouseover&&this.startAutoHideTimer()},e.prototype.onNotificationClick=function(){"hide"===this.config.behaviour.onClick&&this.onClickDismiss()},e.prototype.startAutoHideTimer=function(){var e=this;!1!==this.config.behaviour.autoHide&&this.config.behaviour.autoHide>0&&this.timerService.start(this.config.behaviour.autoHide).then(function(){e.onClickDismiss()})},e.prototype.pauseAutoHideTimer=function(){!1!==this.config.behaviour.autoHide&&this.config.behaviour.autoHide>0&&this.timerService.pause()},e.prototype.continueAutoHideTimer=function(){!1!==this.config.behaviour.autoHide&&this.config.behaviour.autoHide>0&&this.timerService.continue()},e.prototype.stopAutoHideTimer=function(){!1!==this.config.behaviour.autoHide&&this.config.behaviour.autoHide>0&&this.timerService.stop()},e.prototype.setup=function(){"left"===this.config.position.horizontal.position?this.renderer.setStyle(this.element,"left",this.config.position.horizontal.distance+"px"):"right"===this.config.position.horizontal.position?this.renderer.setStyle(this.element,"right",this.config.position.horizontal.distance+"px"):(this.renderer.setStyle(this.element,"left","50%"),this.renderer.setStyle(this.element,"transform","translate3d( -50%, 0, 0 )")),this.renderer.setStyle(this.element,"top"===this.config.position.vertical.position?"top":"bottom",this.config.position.vertical.distance+"px"),this.renderer.addClass(this.element,"notifier__notification--"+this.notification.type),this.renderer.addClass(this.element,"notifier__notification--"+this.config.theme)},e}(),Bu=new o.InjectionToken("[angular-notifier] Notifier Options"),Hu=new o.InjectionToken("[anuglar-notifier] Notifier Config");function Wu(e){return new Du(e)}var zu=function(){function e(){}return e.withConfig=function(t){return void 0===t&&(t={}),{ngModule:e,providers:[{provide:Bu,useValue:t},{deps:[Bu],provide:Hu,useFactory:Wu}]}},e}(),$u=o["\u0275crt"]({encapsulation:2,styles:[],data:{}});function qu(e){return o["\u0275vid"](0,[(e()(),o["\u0275eld"](0,0,null,null,3,"li",[["class","notifier__container-list"]],null,null,null,null,null)),(e()(),o["\u0275eld"](1,0,null,null,2,"notifier-notification",[["class","notifier__notification"]],null,[[null,"dismiss"],[null,"ready"],[null,"click"],[null,"mouseout"],[null,"mouseover"]],function(e,t,n){var i=!0,r=e.component;return"click"===t&&(i=!1!==o["\u0275nov"](e,3).onNotificationClick()&&i),"mouseout"===t&&(i=!1!==o["\u0275nov"](e,3).onNotificationMouseout()&&i),"mouseover"===t&&(i=!1!==o["\u0275nov"](e,3).onNotificationMouseover()&&i),"dismiss"===t&&(i=!1!==r.onNotificationDismiss(n)&&i),"ready"===t&&(i=!1!==r.onNotificationReady(n)&&i),i},Ju,Yu)),o["\u0275prd"](512,null,Fu,Fu,[]),o["\u0275did"](3,4243456,null,0,Ku,[o.ElementRef,o.Renderer2,Nu,Fu,Vu],{notification:[0,"notification"]},{ready:"ready",dismiss:"dismiss"})],function(e,t){e(t,3,0,t.context.$implicit)},null)}function Gu(e){return o["\u0275vid"](2,[(e()(),o["\u0275eld"](0,0,null,null,2,"ul",[],null,null,null,null,null)),(e()(),o["\u0275and"](16777216,null,null,1,null,qu)),o["\u0275did"](2,802816,null,0,p.j,[o.ViewContainerRef,o.TemplateRef,o.IterableDiffers],{ngForOf:[0,"ngForOf"],ngForTrackBy:[1,"ngForTrackBy"]},null)],function(e,t){var n=t.component;e(t,2,0,n.notifications,n.identifyNotification)},null)}var Yu=o["\u0275crt"]({encapsulation:2,styles:[],data:{}});function Qu(e){return o["\u0275vid"](0,[(e()(),o["\u0275eld"](0,0,null,null,2,"button",[["class","notifier__notification-button"],["title","dismiss"],["type","button"]],null,[[null,"click"]],function(e,t,n){var i=!0;return"click"===t&&(i=!1!==e.component.onClickDismiss()&&i),i},null,null)),(e()(),o["\u0275eld"](1,0,null,null,1,":svg:svg",[["class","notifier__notification-button-icon"],["height","20"],["viewBox","0 0 24 24"],["width","20"]],null,null,null,null,null)),(e()(),o["\u0275eld"](2,0,null,null,0,":svg:path",[["d","M19 6.41L17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z"]],null,null,null,null,null))],null,null)}function Ju(e){return o["\u0275vid"](2,[(e()(),o["\u0275eld"](0,0,null,null,1,"p",[["class","notifier__notification-message"]],null,null,null,null,null)),(e()(),o["\u0275ted"](1,null,["",""])),(e()(),o["\u0275and"](16777216,null,null,1,null,Qu)),o["\u0275did"](3,16384,null,0,p.k,[o.ViewContainerRef,o.TemplateRef],{ngIf:[0,"ngIf"]},null)],function(e,t){e(t,3,0,t.component.config.behaviour.showDismissButton)},function(e,t){e(t,1,0,t.component.notification.message)})}var Zu=o["\u0275crt"]({encapsulation:2,styles:[["main-app{min-height:100%;height:100%;width:100%;display:block;position:relative}.save-to-keyboard-button{position:fixed;bottom:15px;right:15px}"]],data:{animation:[{type:7,name:"showSaveToKeyboardButton",definitions:[{type:1,expr:":enter",animation:[{type:6,styles:{transform:"translateY(100%)"},offset:null},{type:4,styles:{type:6,styles:{transform:"translateY(0)"},offset:null},timings:"400ms ease-in-out"}],options:null},{type:1,expr:":leave",animation:[{type:6,styles:{transform:"translateY(0)"},offset:null},{type:4,styles:{type:6,styles:{transform:"translateY(100%)"},offset:null},timings:"400ms ease-in-out"}],options:null}],options:{}}]}});function Xu(e){return o["\u0275vid"](0,[(e()(),o["\u0275eld"](0,0,null,null,2,"app-update-available",[],null,[[null,"updateApp"],[null,"doNotUpdateApp"]],function(e,t,n){var i=!0,o=e.component;return"updateApp"===t&&(i=!1!==o.updateApp()&&i),"doNotUpdateApp"===t&&(i=!1!==o.doNotUpdateApp()&&i),i},su,au)),o["\u0275did"](1,49152,null,0,uu,[],null,{updateApp:"updateApp",doNotUpdateApp:"doNotUpdateApp"}),(e()(),o["\u0275ted"](-1,null,["\n"]))],null,null)}function ea(e){return o["\u0275vid"](0,[(e()(),o["\u0275eld"](0,0,null,null,1,"side-menu",[],null,null,null,xu,yu)),o["\u0275did"](1,245760,null,0,hu,[u.m,o.Renderer2,o.ChangeDetectorRef],null,null)],function(e,t){e(t,1,0)},null)}function ta(e){return o["\u0275vid"](0,[(e()(),o["\u0275eld"](0,0,null,null,1,"progress-button",[["class","save-to-keyboard-button"]],[[24,"@showSaveToKeyboardButton",0]],[[null,"clicked"]],function(e,t,n){var i=!0;return"clicked"===t&&(i=!1!==e.component.clickedOnProgressButton(n)&&i),i},Pu,Mu)),o["\u0275did"](1,49152,null,0,Su,[],{state:[0,"state"]},{clicked:"clicked"})],function(e,t){e(t,1,0,t.component.saveToKeyboardState)},function(e,t){e(t,0,0,void 0)})}function na(e){return o["\u0275vid"](0,[(e()(),o["\u0275and"](16777216,null,null,2,null,Xu)),o["\u0275did"](1,16384,null,0,p.k,[o.ViewContainerRef,o.TemplateRef],{ngIf:[0,"ngIf"]},null),o["\u0275pid"](131072,p.b,[o.ChangeDetectorRef]),(e()(),o["\u0275ted"](-1,null,["\n\n"])),(e()(),o["\u0275and"](16777216,null,null,2,null,ea)),o["\u0275did"](5,16384,null,0,p.k,[o.ViewContainerRef,o.TemplateRef],{ngIf:[0,"ngIf"]},null),o["\u0275pid"](131072,p.b,[o.ChangeDetectorRef]),(e()(),o["\u0275ted"](-1,null,["\n"])),(e()(),o["\u0275eld"](8,0,null,null,4,"div",[["class","main-content"],["id","main-content"]],null,null,null,null,null)),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275eld"](10,16777216,null,null,1,"router-outlet",[],null,null,null,null,null)),o["\u0275did"](11,212992,null,0,le.q,[le.b,o.ViewContainerRef,o.ComponentFactoryResolver,[8,null],o.ChangeDetectorRef],null,null),(e()(),o["\u0275ted"](-1,null,["\n"])),(e()(),o["\u0275ted"](-1,null,["\n"])),(e()(),o["\u0275eld"](14,0,null,null,1,"notifier-container",[["class","notifier__container"]],null,null,null,Gu,$u)),o["\u0275did"](15,245760,null,0,ju,[o.ChangeDetectorRef,Ru,Nu],null,null),(e()(),o["\u0275ted"](-1,null,["\n"])),(e()(),o["\u0275and"](16777216,null,null,1,null,ta)),o["\u0275did"](18,16384,null,0,p.k,[o.ViewContainerRef,o.TemplateRef],{ngIf:[0,"ngIf"]},null),(e()(),o["\u0275ted"](-1,null,["\n"]))],function(e,t){var n=t.component;e(t,1,0,o["\u0275unv"](t,1,0,o["\u0275nov"](t,2).transform(n.showUpdateAvailable$))),e(t,5,0,o["\u0275unv"](t,5,0,o["\u0275nov"](t,6).transform(n.deviceConfigurationLoaded$))),e(t,11,0),e(t,15,0),e(t,18,0,n.saveToKeyboardState.showButton)},null)}var ia=o["\u0275ccf"]("main-app",d,function(e){return o["\u0275vid"](0,[(e()(),o["\u0275eld"](0,0,null,null,1,"main-app",[],null,[["document","keydown"]],function(e,t,n){var i=!0;return"document:keydown"===t&&(i=!1!==o["\u0275nov"](e,1).onKeyDown(n)&&i),i},na,Zu)),o["\u0275did"](1,180224,null,0,d,[u.m],null,null)],null,null)},{},{},[]),oa=function(){},ra="*";function la(e,t){return void 0===t&&(t=null),{type:2,steps:e,options:t}}function ua(e){return{type:6,styles:e,offset:null}}function aa(e){Promise.resolve(null).then(e)}var sa=function(){function e(){this._onDoneFns=[],this._onStartFns=[],this._onDestroyFns=[],this._started=!1,this._destroyed=!1,this._finished=!1,this.parentPlayer=null,this.totalTime=0}return e.prototype._onFinish=function(){this._finished||(this._finished=!0,this._onDoneFns.forEach(function(e){return e()}),this._onDoneFns=[])},e.prototype.onStart=function(e){this._onStartFns.push(e)},e.prototype.onDone=function(e){this._onDoneFns.push(e)},e.prototype.onDestroy=function(e){this._onDestroyFns.push(e)},e.prototype.hasStarted=function(){return this._started},e.prototype.init=function(){},e.prototype.play=function(){this.hasStarted()||(this._onStart(),this.triggerMicrotask()),this._started=!0},e.prototype.triggerMicrotask=function(){var e=this;aa(function(){return e._onFinish()})},e.prototype._onStart=function(){this._onStartFns.forEach(function(e){return e()}),this._onStartFns=[]},e.prototype.pause=function(){},e.prototype.restart=function(){},e.prototype.finish=function(){this._onFinish()},e.prototype.destroy=function(){this._destroyed||(this._destroyed=!0,this.hasStarted()||this._onStart(),this.finish(),this._onDestroyFns.forEach(function(e){return e()}),this._onDestroyFns=[])},e.prototype.reset=function(){},e.prototype.setPosition=function(e){},e.prototype.getPosition=function(){return 0},e.prototype.triggerCallback=function(e){var t="start"==e?this._onStartFns:this._onDoneFns;t.forEach(function(e){return e()}),t.length=0},e}(),ca=function(){function e(e){var t=this;this._onDoneFns=[],this._onStartFns=[],this._finished=!1,this._started=!1,this._destroyed=!1,this._onDestroyFns=[],this.parentPlayer=null,this.totalTime=0,this.players=e;var n=0,i=0,o=0,r=this.players.length;0==r?aa(function(){return t._onFinish()}):this.players.forEach(function(e){e.onDone(function(){++n==r&&t._onFinish()}),e.onDestroy(function(){++i==r&&t._onDestroy()}),e.onStart(function(){++o==r&&t._onStart()})}),this.totalTime=this.players.reduce(function(e,t){return Math.max(e,t.totalTime)},0)}return e.prototype._onFinish=function(){this._finished||(this._finished=!0,this._onDoneFns.forEach(function(e){return e()}),this._onDoneFns=[])},e.prototype.init=function(){this.players.forEach(function(e){return e.init()})},e.prototype.onStart=function(e){this._onStartFns.push(e)},e.prototype._onStart=function(){this.hasStarted()||(this._started=!0,this._onStartFns.forEach(function(e){return e()}),this._onStartFns=[])},e.prototype.onDone=function(e){this._onDoneFns.push(e)},e.prototype.onDestroy=function(e){this._onDestroyFns.push(e)},e.prototype.hasStarted=function(){return this._started},e.prototype.play=function(){this.parentPlayer||this.init(),this._onStart(),this.players.forEach(function(e){return e.play()})},e.prototype.pause=function(){this.players.forEach(function(e){return e.pause()})},e.prototype.restart=function(){this.players.forEach(function(e){return e.restart()})},e.prototype.finish=function(){this._onFinish(),this.players.forEach(function(e){return e.finish()})},e.prototype.destroy=function(){this._onDestroy()},e.prototype._onDestroy=function(){this._destroyed||(this._destroyed=!0,this._onFinish(),this.players.forEach(function(e){return e.destroy()}),this._onDestroyFns.forEach(function(e){return e()}),this._onDestroyFns=[])},e.prototype.reset=function(){this.players.forEach(function(e){return e.reset()}),this._destroyed=!1,this._finished=!1,this._started=!1},e.prototype.setPosition=function(e){var t=e*this.totalTime;this.players.forEach(function(e){var n=e.totalTime?Math.min(1,t/e.totalTime):1;e.setPosition(n)})},e.prototype.getPosition=function(){var e=0;return this.players.forEach(function(t){var n=t.getPosition();e=Math.min(n,e)}),e},e.prototype.beforeDestroy=function(){this.players.forEach(function(e){e.beforeDestroy&&e.beforeDestroy()})},e.prototype.triggerCallback=function(e){var t="start"==e?this._onStartFns:this._onDoneFns;t.forEach(function(e){return e()}),t.length=0},e}(),da="!";function pa(e){switch(e.length){case 0:return new sa;case 1:return e[0];default:return new ca(e)}}function fa(e,t,n,i,o,r){void 0===o&&(o={}),void 0===r&&(r={});var l=[],u=[],a=-1,s=null;if(i.forEach(function(e){var n=e.offset,i=n==a,c=i&&s||{};Object.keys(e).forEach(function(n){var i=n,u=e[n];if("offset"!==n)switch(i=t.normalizePropertyName(i,l),u){case da:u=o[n];break;case ra:u=r[n];break;default:u=t.normalizeStyleValue(n,i,u,l)}c[i]=u}),i||u.push(c),s=c,a=n}),l.length)throw new Error("Unable to animate due to the following errors:\n - "+l.join("\n - "));return u}function ha(e,t,n,i){switch(t){case"start":e.onStart(function(){return i(n&&ya(n,"start",e.totalTime))});break;case"done":e.onDone(function(){return i(n&&ya(n,"done",e.totalTime))});break;case"destroy":e.onDestroy(function(){return i(n&&ya(n,"destroy",e.totalTime))})}}function ya(e,t,n){var i=ma(e.element,e.triggerName,e.fromState,e.toState,t||e.phaseName,void 0==n?e.totalTime:n),o=e._data;return null!=o&&(i._data=o),i}function ma(e,t,n,i,o,r){return void 0===o&&(o=""),void 0===r&&(r=0),{element:e,triggerName:t,fromState:n,toState:i,phaseName:o,totalTime:r}}function ga(e,t,n){var i;return e instanceof Map?(i=e.get(t))||e.set(t,i=n):(i=e[t])||(i=e[t]=n),i}function va(e){var t=e.indexOf(":");return[e.substring(1,t),e.substr(t+1)]}var ba=function(e,t){return!1},ka=function(e,t){return!1},_a=function(e,t,n){return[]};if("undefined"!=typeof Element){if(ba=function(e,t){return e.contains(t)},Element.prototype.matches)ka=function(e,t){return e.matches(t)};else{var wa=Element.prototype,Aa=wa.matchesSelector||wa.mozMatchesSelector||wa.msMatchesSelector||wa.oMatchesSelector||wa.webkitMatchesSelector;Aa&&(ka=function(e,t){return Aa.apply(e,[t])})}_a=function(e,t,n){var i=[];if(n)i.push.apply(i,e.querySelectorAll(t));else{var o=e.querySelector(t);o&&i.push(o)}return i}}var Ta=null,Ca=!1;function xa(e){Ta||(Ta=Oa()||{},Ca=!!Ta.style&&"WebkitAppearance"in Ta.style);var t=!0;return Ta.style&&!function(e){return"ebkit"==e.substring(1,6)}(e)&&!(t=e in Ta.style)&&Ca&&(t="Webkit"+e.charAt(0).toUpperCase()+e.substr(1)in Ta.style),t}function Oa(){return"undefined"!=typeof document?document.body:null}var Sa=ka,Ma=ba,Ea=_a,Pa=function(){function e(){}return e.prototype.validateStyleProperty=function(e){return xa(e)},e.prototype.matchesElement=function(e,t){return Sa(e,t)},e.prototype.containsElement=function(e,t){return Ma(e,t)},e.prototype.query=function(e,t,n){return Ea(e,t,n)},e.prototype.computeStyle=function(e,t,n){return n||""},e.prototype.animate=function(e,t,n,i,o,r){return void 0===r&&(r=[]),new sa},e}(),Ia=function(){function e(){}return e.NOOP=new Pa,e}(),Ra=1e3;function Da(e){if("number"==typeof e)return e;var t=e.match(/^(-?[\.\d]+)(m?s)/);return!t||t.length<2?0:Na(parseFloat(t[1]),t[2])}function Na(e,t){switch(t){case"s":return e*Ra;default:return e}}function ja(e,t,n){return e.hasOwnProperty("duration")?e:function(e,t,n){var i,o=0,r="";if("string"==typeof e){var l=e.match(/^(-?[\.\d]+)(m?s)(?:\s+(-?[\.\d]+)(m?s))?(?:\s+([-a-z]+(?:\(.+?\))?))?$/i);if(null===l)return t.push('The provided timing value "'+e+'" is invalid.'),{duration:0,delay:0,easing:""};i=Na(parseFloat(l[1]),l[2]);var u=l[3];null!=u&&(o=Na(Math.floor(parseFloat(u)),l[4]));var a=l[5];a&&(r=a)}else i=e;if(!n){var s=!1,c=t.length;i<0&&(t.push("Duration values below 0 are not allowed for this animation step."),s=!0),o<0&&(t.push("Delay values below 0 are not allowed for this animation step."),s=!0),s&&t.splice(c,0,'The provided timing value "'+e+'" is invalid.')}return{duration:i,delay:o,easing:r}}(e,t,n)}function La(e,t){return void 0===t&&(t={}),Object.keys(e).forEach(function(n){t[n]=e[n]}),t}function Ua(e,t,n){if(void 0===n&&(n={}),t)for(var i in e)n[i]=e[i];else La(e,n);return n}function Va(e,t){e.style&&Object.keys(t).forEach(function(n){var i=qa(n);e.style[i]=t[n]})}function Fa(e,t){e.style&&Object.keys(t).forEach(function(t){var n=qa(t);e.style[n]=""})}function Ka(e){return Array.isArray(e)?1==e.length?e[0]:la(e):e}var Ba=new RegExp("{{\\s*(.+?)\\s*}}","g");function Ha(e){var t=[];if("string"==typeof e){for(var n=e.toString(),i=void 0;i=Ba.exec(n);)t.push(i[1]);Ba.lastIndex=0}return t}function Wa(e,t,n){var i=e.toString(),o=i.replace(Ba,function(e,i){var o=t[i];return t.hasOwnProperty(i)||(n.push("Please provide a value for the animation param "+i),o=""),o.toString()});return o==i?e:o}function za(e){for(var t=[],n=e.next();!n.done;)t.push(n.value),n=e.next();return t}var $a=/-+([a-z0-9])/g;function qa(e){return e.replace($a,function(){for(var e=[],t=0;t *";case":leave":return"* => void";case":increment":return function(e,t){return parseFloat(t)>parseFloat(e)};case":decrement":return function(e,t){return parseFloat(t) *"}}(e,n);if("function"==typeof i)return void t.push(i);e=i}var o=e.match(/^(\*|[-\w]+)\s*()\s*(\*|[-\w]+)$/);if(null==o||o.length<4)return n.push('The provided transition expression "'+e+'" is not supported'),t;var r=o[1],l=o[2],u=o[3];t.push(Za(r,u)),"<"!=l[0]||r==Ya&&u==Ya||t.push(Za(u,r))}(e,o,i)}):o.push(n),o),animation:r,queryCount:t.queryCount,depCount:t.depCount,options:os(e.options)}},e.prototype.visitSequence=function(e,t){var n=this;return{type:2,steps:e.steps.map(function(e){return Ga(n,e,t)}),options:os(e.options)}},e.prototype.visitGroup=function(e,t){var n=this,i=t.currentTime,o=0,r=e.steps.map(function(e){t.currentTime=i;var r=Ga(n,e,t);return o=Math.max(o,t.currentTime),r});return t.currentTime=o,{type:3,steps:r,options:os(e.options)}},e.prototype.visitAnimate=function(e,t){var n,i=function(e,t){var n=null;if(e.hasOwnProperty("duration"))n=e;else if("number"==typeof e)return rs(ja(e,t).duration,0,"");var i=e;if(i.split(/\s+/).some(function(e){return"{"==e.charAt(0)&&"{"==e.charAt(1)})){var o=rs(0,0,"");return o.dynamic=!0,o.strValue=i,o}return rs((n=n||ja(i,t)).duration,n.delay,n.easing)}(e.timings,t.errors);t.currentAnimateTimings=i;var o=e.styles?e.styles:ua({});if(5==o.type)n=this.visitKeyframes(o,t);else{var r=e.styles,l=!1;if(!r){l=!0;var u={};i.easing&&(u.easing=i.easing),r=ua(u)}t.currentTime+=i.duration+i.delay;var a=this.visitStyle(r,t);a.isEmptyStep=l,n=a}return t.currentAnimateTimings=null,{type:4,timings:i,style:n,options:null}},e.prototype.visitStyle=function(e,t){var n=this._makeStyleAst(e,t);return this._validateStyleAst(n,t),n},e.prototype._makeStyleAst=function(e,t){var n=[];Array.isArray(e.styles)?e.styles.forEach(function(e){"string"==typeof e?e==ra?n.push(e):t.errors.push("The provided style string value "+e+" is not allowed."):n.push(e)}):n.push(e.styles);var i=!1,o=null;return n.forEach(function(e){if(is(e)){var t=e,n=t.easing;if(n&&(o=n,delete t.easing),!i)for(var r in t)if(t[r].toString().indexOf("{{")>=0){i=!0;break}}}),{type:6,styles:n,easing:o,offset:e.offset,containsDynamicStyles:i,options:null}},e.prototype._validateStyleAst=function(e,t){var n=this,i=t.currentAnimateTimings,o=t.currentTime,r=t.currentTime;i&&r>0&&(r-=i.duration+i.delay),e.styles.forEach(function(e){"string"!=typeof e&&Object.keys(e).forEach(function(i){if(n._driver.validateStyleProperty(i)){var l,u,a,s=t.collectedStyles[t.currentQuerySelector],c=s[i],d=!0;c&&(r!=o&&r>=c.startTime&&o<=c.endTime&&(t.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 "'+r+'ms" and "'+o+'ms"'),d=!1),r=c.startTime),d&&(s[i]={startTime:r,endTime:o}),t.options&&(l=t.errors,u=t.options.params||{},(a=Ha(e[i])).length&&a.forEach(function(e){u.hasOwnProperty(e)||l.push("Unable to resolve the local animation param "+e+" in the given list of values")}))}else t.errors.push('The provided animation property "'+i+'" is not a supported CSS property for animations')})})},e.prototype.visitKeyframes=function(e,t){var n=this,i={type:5,styles:[],options:null};if(!t.currentAnimateTimings)return t.errors.push("keyframes() must be placed inside of a call to animate()"),i;var o=0,r=[],l=!1,u=!1,a=0,s=e.steps.map(function(e){var i=n._makeStyleAst(e,t),s=null!=i.offset?i.offset:function(e){if("string"==typeof e)return null;var t=null;if(Array.isArray(e))e.forEach(function(e){if(is(e)&&e.hasOwnProperty("offset")){var n=e;t=parseFloat(n.offset),delete n.offset}});else if(is(e)&&e.hasOwnProperty("offset")){var n=e;t=parseFloat(n.offset),delete n.offset}return t}(i.styles),c=0;return null!=s&&(o++,c=i.offset=s),u=u||c<0||c>1,l=l||c0&&o0?o==p?1:d*o:r[o],u=l*y;t.currentTime=f+h.delay+u,h.duration=u,n._validateStyleAst(e,t),e.offset=l,i.styles.push(e)}),i},e.prototype.visitReference=function(e,t){return{type:8,animation:Ga(this,Ka(e.animation),t),options:os(e.options)}},e.prototype.visitAnimateChild=function(e,t){return t.depCount++,{type:9,options:os(e.options)}},e.prototype.visitAnimateRef=function(e,t){return{type:10,animation:this.visitReference(e.animation,t),options:os(e.options)}},e.prototype.visitQuery=function(e,t){var n=t.currentQuerySelector,i=e.options||{};t.queryCount++,t.currentQuery=e;var o=function(e){var t=!!e.split(/\s*,\s*/).find(function(e){return":self"==e});return t&&(e=e.replace(Xa,"")),[e=e.replace(/@\*/g,".ng-trigger").replace(/@\w+/g,function(e){return".ng-trigger-"+e.substr(1)}).replace(/:animating/g,".ng-animating"),t]}(e.selector),r=o[0],l=o[1];t.currentQuerySelector=n.length?n+" "+r:r,ga(t.collectedStyles,t.currentQuerySelector,{});var u=Ga(this,Ka(e.animation),t);return t.currentQuery=null,t.currentQuerySelector=n,{type:11,selector:r,limit:i.limit||0,optional:!!i.optional,includeSelf:l,animation:u,originalSelector:e.selector,options:os(e.options)}},e.prototype.visitStagger=function(e,t){t.currentQuery||t.errors.push("stagger() can only be used inside of query()");var n="full"===e.timings?{duration:0,delay:0,easing:"full"}:ja(e.timings,t.errors,!0);return{type:12,animation:Ga(this,Ka(e.animation),t),timings:n,options:null}},e}(),ns=function(e){this.errors=e,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 is(e){return!Array.isArray(e)&&"object"==typeof e}function os(e){var t;return e?(e=La(e)).params&&(e.params=(t=e.params)?La(t):null):e={},e}function rs(e,t,n){return{duration:e,delay:t,easing:n}}function ls(e,t,n,i,o,r,l,u){return void 0===l&&(l=null),void 0===u&&(u=!1),{type:1,element:e,keyframes:t,preStyleProps:n,postStyleProps:i,duration:o,delay:r,totalTime:o+r,easing:l,subTimeline:u}}var us=function(){function e(){this._map=new Map}return e.prototype.consume=function(e){var t=this._map.get(e);return t?this._map.delete(e):t=[],t},e.prototype.append=function(e,t){var n=this._map.get(e);n||this._map.set(e,n=[]),n.push.apply(n,t)},e.prototype.has=function(e){return this._map.has(e)},e.prototype.clear=function(){this._map.clear()},e}(),as=new RegExp(":enter","g"),ss=new RegExp(":leave","g");function cs(e,t,n,i,o,r,l,u,a,s){return void 0===r&&(r={}),void 0===l&&(l={}),void 0===s&&(s=[]),(new ds).buildKeyframes(e,t,n,i,o,r,l,u,a,s)}var ds=function(){function e(){}return e.prototype.buildKeyframes=function(e,t,n,i,o,r,l,u,a,s){void 0===s&&(s=[]),a=a||new us;var c=new fs(e,t,a,i,o,s,[]);c.options=u,c.currentTimeline.setStyles([r],null,c.errors,u),Ga(this,n,c);var d=c.timelines.filter(function(e){return e.containsAnimation()});if(d.length&&Object.keys(l).length){var p=d[d.length-1];p.allowOnlyTimelineStyles()||p.setStyles([l],null,c.errors,u)}return d.length?d.map(function(e){return e.buildKeyframes()}):[ls(t,[],[],[],0,0,"",!1)]},e.prototype.visitTrigger=function(e,t){},e.prototype.visitState=function(e,t){},e.prototype.visitTransition=function(e,t){},e.prototype.visitAnimateChild=function(e,t){var n=t.subInstructions.consume(t.element);if(n){var i=t.createSubContext(e.options),o=t.currentTimeline.currentTime,r=this._visitSubInstructions(n,i,i.options);o!=r&&t.transformIntoNewTimeline(r)}t.previousNode=e},e.prototype.visitAnimateRef=function(e,t){var n=t.createSubContext(e.options);n.transformIntoNewTimeline(),this.visitReference(e.animation,n),t.transformIntoNewTimeline(n.currentTimeline.currentTime),t.previousNode=e},e.prototype._visitSubInstructions=function(e,t,n){var i=t.currentTimeline.currentTime,o=null!=n.duration?Da(n.duration):null,r=null!=n.delay?Da(n.delay):null;return 0!==o&&e.forEach(function(e){var n=t.appendInstructionToTimeline(e,o,r);i=Math.max(i,n.duration+n.delay)}),i},e.prototype.visitReference=function(e,t){t.updateOptions(e.options,!0),Ga(this,e.animation,t),t.previousNode=e},e.prototype.visitSequence=function(e,t){var n=this,i=t.subContextCount,o=t,r=e.options;if(r&&(r.params||r.delay)&&((o=t.createSubContext(r)).transformIntoNewTimeline(),null!=r.delay)){6==o.previousNode.type&&(o.currentTimeline.snapshotCurrentStyles(),o.previousNode=ps);var l=Da(r.delay);o.delayNextStep(l)}e.steps.length&&(e.steps.forEach(function(e){return Ga(n,e,o)}),o.currentTimeline.applyStylesToKeyframe(),o.subContextCount>i&&o.transformIntoNewTimeline()),t.previousNode=e},e.prototype.visitGroup=function(e,t){var n=this,i=[],o=t.currentTimeline.currentTime,r=e.options&&e.options.delay?Da(e.options.delay):0;e.steps.forEach(function(l){var u=t.createSubContext(e.options);r&&u.delayNextStep(r),Ga(n,l,u),o=Math.max(o,u.currentTimeline.currentTime),i.push(u.currentTimeline)}),i.forEach(function(e){return t.currentTimeline.mergeTimelineCollectedStyles(e)}),t.transformIntoNewTimeline(o),t.previousNode=e},e.prototype._visitTiming=function(e,t){if(e.dynamic){var n=e.strValue;return ja(t.params?Wa(n,t.params,t.errors):n,t.errors)}return{duration:e.duration,delay:e.delay,easing:e.easing}},e.prototype.visitAnimate=function(e,t){var n=t.currentAnimateTimings=this._visitTiming(e.timings,t),i=t.currentTimeline;n.delay&&(t.incrementTime(n.delay),i.snapshotCurrentStyles());var o=e.style;5==o.type?this.visitKeyframes(o,t):(t.incrementTime(n.duration),this.visitStyle(o,t),i.applyStylesToKeyframe()),t.currentAnimateTimings=null,t.previousNode=e},e.prototype.visitStyle=function(e,t){var n=t.currentTimeline,i=t.currentAnimateTimings;!i&&n.getCurrentStyleProperties().length&&n.forwardFrame();var o=i&&i.easing||e.easing;e.isEmptyStep?n.applyEmptyStep(o):n.setStyles(e.styles,o,t.errors,t.options),t.previousNode=e},e.prototype.visitKeyframes=function(e,t){var n=t.currentAnimateTimings,i=t.currentTimeline.duration,o=n.duration,r=t.createSubContext().currentTimeline;r.easing=n.easing,e.styles.forEach(function(e){r.forwardTime((e.offset||0)*o),r.setStyles(e.styles,e.easing,t.errors,t.options),r.applyStylesToKeyframe()}),t.currentTimeline.mergeTimelineCollectedStyles(r),t.transformIntoNewTimeline(i+o),t.previousNode=e},e.prototype.visitQuery=function(e,t){var n=this,i=t.currentTimeline.currentTime,o=e.options||{},r=o.delay?Da(o.delay):0;r&&(6===t.previousNode.type||0==i&&t.currentTimeline.getCurrentStyleProperties().length)&&(t.currentTimeline.snapshotCurrentStyles(),t.previousNode=ps);var l=i,u=t.invokeQuery(e.selector,e.originalSelector,e.limit,e.includeSelf,!!o.optional,t.errors);t.currentQueryTotal=u.length;var a=null;u.forEach(function(i,o){t.currentQueryIndex=o;var u=t.createSubContext(e.options,i);r&&u.delayNextStep(r),i===t.element&&(a=u.currentTimeline),Ga(n,e.animation,u),u.currentTimeline.applyStylesToKeyframe(),l=Math.max(l,u.currentTimeline.currentTime)}),t.currentQueryIndex=0,t.currentQueryTotal=0,t.transformIntoNewTimeline(l),a&&(t.currentTimeline.mergeTimelineCollectedStyles(a),t.currentTimeline.snapshotCurrentStyles()),t.previousNode=e},e.prototype.visitStagger=function(e,t){var n=t.parentContext,i=t.currentTimeline,o=e.timings,r=Math.abs(o.duration),l=r*(t.currentQueryTotal-1),u=r*t.currentQueryIndex;switch(o.duration<0?"reverse":o.easing){case"reverse":u=l-u;break;case"full":u=n.currentStaggerTime}var a=t.currentTimeline;u&&a.delayNextStep(u);var s=a.currentTime;Ga(this,e.animation,t),t.previousNode=e,n.currentStaggerTime=i.currentTime-s+(i.startTime-n.currentTimeline.startTime)},e}(),ps={},fs=function(){function e(e,t,n,i,o,r,l,u){this._driver=e,this.element=t,this.subInstructions=n,this._enterClassName=i,this._leaveClassName=o,this.errors=r,this.timelines=l,this.parentContext=null,this.currentAnimateTimings=null,this.previousNode=ps,this.subContextCount=0,this.options={},this.currentQueryIndex=0,this.currentQueryTotal=0,this.currentStaggerTime=0,this.currentTimeline=u||new hs(this._driver,t,0),l.push(this.currentTimeline)}return Object.defineProperty(e.prototype,"params",{get:function(){return this.options.params},enumerable:!0,configurable:!0}),e.prototype.updateOptions=function(e,t){var n=this;if(e){var i=e,o=this.options;null!=i.duration&&(o.duration=Da(i.duration)),null!=i.delay&&(o.delay=Da(i.delay));var r=i.params;if(r){var l=o.params;l||(l=this.options.params={}),Object.keys(r).forEach(function(e){t&&l.hasOwnProperty(e)||(l[e]=Wa(r[e],l,n.errors))})}}},e.prototype._copyOptions=function(){var e={};if(this.options){var t=this.options.params;if(t){var n=e.params={};Object.keys(t).forEach(function(e){n[e]=t[e]})}}return e},e.prototype.createSubContext=function(t,n,i){void 0===t&&(t=null);var o=n||this.element,r=new e(this._driver,o,this.subInstructions,this._enterClassName,this._leaveClassName,this.errors,this.timelines,this.currentTimeline.fork(o,i||0));return r.previousNode=this.previousNode,r.currentAnimateTimings=this.currentAnimateTimings,r.options=this._copyOptions(),r.updateOptions(t),r.currentQueryIndex=this.currentQueryIndex,r.currentQueryTotal=this.currentQueryTotal,r.parentContext=this,this.subContextCount++,r},e.prototype.transformIntoNewTimeline=function(e){return this.previousNode=ps,this.currentTimeline=this.currentTimeline.fork(this.element,e),this.timelines.push(this.currentTimeline),this.currentTimeline},e.prototype.appendInstructionToTimeline=function(e,t,n){var i={duration:null!=t?t:e.duration,delay:this.currentTimeline.currentTime+(null!=n?n:0)+e.delay,easing:""},o=new ys(this._driver,e.element,e.keyframes,e.preStyleProps,e.postStyleProps,i,e.stretchStartingKeyframe);return this.timelines.push(o),i},e.prototype.incrementTime=function(e){this.currentTimeline.forwardTime(this.currentTimeline.duration+e)},e.prototype.delayNextStep=function(e){e>0&&this.currentTimeline.delayNextStep(e)},e.prototype.invokeQuery=function(e,t,n,i,o,r){var l=[];if(i&&l.push(this.element),e.length>0){e=(e=e.replace(as,"."+this._enterClassName)).replace(ss,"."+this._leaveClassName);var u=this._driver.query(this.element,e,1!=n);0!==n&&(u=n<0?u.slice(u.length+n,u.length):u.slice(0,n)),l.push.apply(l,u)}return o||0!=l.length||r.push('`query("'+t+'")` returned zero elements. (Use `query("'+t+'", { optional: true })` if you wish to allow this.)'),l},e}(),hs=function(){function e(e,t,n,i){this._driver=e,this.element=t,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(t),this._globalTimelineStyles||(this._globalTimelineStyles=this._localTimelineStyles,this._elementTimelineStylesLookup.set(t,this._localTimelineStyles)),this._loadKeyframe()}return e.prototype.containsAnimation=function(){switch(this._keyframes.size){case 0:return!1;case 1:return this.getCurrentStyleProperties().length>0;default:return!0}},e.prototype.getCurrentStyleProperties=function(){return Object.keys(this._currentKeyframe)},Object.defineProperty(e.prototype,"currentTime",{get:function(){return this.startTime+this.duration},enumerable:!0,configurable:!0}),e.prototype.delayNextStep=function(e){var t=1==this._keyframes.size&&Object.keys(this._pendingStyles).length;this.duration||t?(this.forwardTime(this.currentTime+e),t&&this.snapshotCurrentStyles()):this.startTime+=e},e.prototype.fork=function(t,n){return this.applyStylesToKeyframe(),new e(this._driver,t,n||this.currentTime,this._elementTimelineStylesLookup)},e.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))},e.prototype.forwardFrame=function(){this.duration+=1,this._loadKeyframe()},e.prototype.forwardTime=function(e){this.applyStylesToKeyframe(),this.duration=e,this._loadKeyframe()},e.prototype._updateStyle=function(e,t){this._localTimelineStyles[e]=t,this._globalTimelineStyles[e]=t,this._styleSummary[e]={time:this.currentTime,value:t}},e.prototype.allowOnlyTimelineStyles=function(){return this._currentEmptyStepKeyframe!==this._currentKeyframe},e.prototype.applyEmptyStep=function(e){var t=this;e&&(this._previousKeyframe.easing=e),Object.keys(this._globalTimelineStyles).forEach(function(e){t._backFill[e]=t._globalTimelineStyles[e]||ra,t._currentKeyframe[e]=ra}),this._currentEmptyStepKeyframe=this._currentKeyframe},e.prototype.setStyles=function(e,t,n,i){var o=this;t&&(this._previousKeyframe.easing=t);var r=i&&i.params||{},l=function(e,t){var n,i={};return e.forEach(function(e){"*"===e?(n=n||Object.keys(t)).forEach(function(e){i[e]=ra}):Ua(e,!1,i)}),i}(e,this._globalTimelineStyles);Object.keys(l).forEach(function(e){var t=Wa(l[e],r,n);o._pendingStyles[e]=t,o._localTimelineStyles.hasOwnProperty(e)||(o._backFill[e]=o._globalTimelineStyles.hasOwnProperty(e)?o._globalTimelineStyles[e]:ra),o._updateStyle(e,t)})},e.prototype.applyStylesToKeyframe=function(){var e=this,t=this._pendingStyles,n=Object.keys(t);0!=n.length&&(this._pendingStyles={},n.forEach(function(n){e._currentKeyframe[n]=t[n]}),Object.keys(this._localTimelineStyles).forEach(function(t){e._currentKeyframe.hasOwnProperty(t)||(e._currentKeyframe[t]=e._localTimelineStyles[t])}))},e.prototype.snapshotCurrentStyles=function(){var e=this;Object.keys(this._localTimelineStyles).forEach(function(t){var n=e._localTimelineStyles[t];e._pendingStyles[t]=n,e._updateStyle(t,n)})},e.prototype.getFinalKeyframe=function(){return this._keyframes.get(this.duration)},Object.defineProperty(e.prototype,"properties",{get:function(){var e=[];for(var t in this._currentKeyframe)e.push(t);return e},enumerable:!0,configurable:!0}),e.prototype.mergeTimelineCollectedStyles=function(e){var t=this;Object.keys(e._styleSummary).forEach(function(n){var i=t._styleSummary[n],o=e._styleSummary[n];(!i||o.time>i.time)&&t._updateStyle(n,o.value)})},e.prototype.buildKeyframes=function(){var e=this;this.applyStylesToKeyframe();var t=new Set,n=new Set,i=1===this._keyframes.size&&0===this.duration,o=[];this._keyframes.forEach(function(r,l){var u=Ua(r,!0);Object.keys(u).forEach(function(e){var i=u[e];i==da?t.add(e):i==ra&&n.add(e)}),i||(u.offset=l/e.duration),o.push(u)});var r=t.size?za(t.values()):[],l=n.size?za(n.values()):[];if(i){var u=o[0],a=La(u);u.offset=0,a.offset=1,o=[u,a]}return ls(this.element,o,r,l,this.duration,this.startTime,this.easing,!1)},e}(),ys=function(e){function t(t,n,i,o,r,l,u){void 0===u&&(u=!1);var a=e.call(this,t,n,l.delay)||this;return a.element=n,a.keyframes=i,a.preStyleProps=o,a.postStyleProps=r,a._stretchStartingKeyframe=u,a.timings={duration:l.duration,delay:l.delay,easing:l.easing},a}return Object(Ci.__extends)(t,e),t.prototype.containsAnimation=function(){return this.keyframes.length>1},t.prototype.buildKeyframes=function(){var e=this.keyframes,t=this.timings,n=t.delay,i=t.duration,o=t.easing;if(this._stretchStartingKeyframe&&n){var r=[],l=i+n,u=n/l,a=Ua(e[0],!1);a.offset=0,r.push(a);var s=Ua(e[0],!1);s.offset=ms(u),r.push(s);for(var c=e.length-1,d=1;d<=c;d++){var p=Ua(e[d],!1);p.offset=ms((n+p.offset*i)/l),r.push(p)}i=l,n=0,o="",e=r}return ls(this.element,e,this.preStyleProps,this.postStyleProps,i,n,o,!0)},t}(hs);function ms(e,t){void 0===t&&(t=3);var n=Math.pow(10,t-1);return Math.round(e*n)/n}var gs=function(){},vs=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Object(Ci.__extends)(t,e),t.prototype.normalizePropertyName=function(e,t){return qa(e)},t.prototype.normalizeStyleValue=function(e,t,n,i){var o="",r=n.toString().trim();if(bs[t]&&0!==n&&"0"!==n)if("number"==typeof n)o="px";else{var l=n.match(/^[+-]?[\d\.]+([a-z]*)$/);l&&0==l[1].length&&i.push("Please provide a CSS unit value for "+e+":"+n)}return r+o},t}(gs),bs=function(e){var t={};return"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(",").forEach(function(e){return t[e]=!0}),t}();function ks(e,t,n,i,o,r,l,u,a,s,c,d){return{type:0,element:e,triggerName:t,isRemovalTransition:o,fromState:n,fromStyles:r,toState:i,toStyles:l,timelines:u,queriedElements:a,preStyleProps:s,postStyleProps:c,errors:d}}var _s={},ws=function(){function e(e,t,n){this._triggerName=e,this.ast=t,this._stateStyles=n}return e.prototype.match=function(e,t){return function(e,t,n){return e.some(function(e){return e(t,n)})}(this.ast.matchers,e,t)},e.prototype.buildStyles=function(e,t,n){var i=this._stateStyles["*"],o=this._stateStyles[e],r=i?i.buildStyles(t,n):{};return o?o.buildStyles(t,n):r},e.prototype.build=function(e,t,n,i,o,r,l,u,a){var s=[],c=this.ast.options&&this.ast.options.params||_s,d=this.buildStyles(n,l&&l.params||_s,s),p=u&&u.params||_s,f=this.buildStyles(i,p,s),h=new Set,y=new Map,m=new Map,g="void"===i,v={params:Object(Ci.__assign)({},c,p)},b=cs(e,t,this.ast.animation,o,r,d,f,v,a,s);if(s.length)return ks(t,this._triggerName,n,i,g,d,f,[],[],y,m,s);b.forEach(function(e){var n=e.element,i=ga(y,n,{});e.preStyleProps.forEach(function(e){return i[e]=!0});var o=ga(m,n,{});e.postStyleProps.forEach(function(e){return o[e]=!0}),n!==t&&h.add(n)});var k=za(h.values());return ks(t,this._triggerName,n,i,g,d,f,b,k,y,m)},e}(),As=function(){function e(e,t){this.styles=e,this.defaultParams=t}return e.prototype.buildStyles=function(e,t){var n={},i=La(this.defaultParams);return Object.keys(e).forEach(function(t){var n=e[t];null!=n&&(i[t]=n)}),this.styles.styles.forEach(function(e){if("string"!=typeof e){var o=e;Object.keys(o).forEach(function(e){var r=o[e];r.length>1&&(r=Wa(r,i,t)),n[e]=r})}}),n},e}(),Ts=function(){function e(e,t){var n=this;this.name=e,this.ast=t,this.transitionFactories=[],this.states={},t.states.forEach(function(e){n.states[e.name]=new As(e.style,e.options&&e.options.params||{})}),Cs(this.states,"true","1"),Cs(this.states,"false","0"),t.transitions.forEach(function(t){n.transitionFactories.push(new ws(e,t,n.states))}),this.fallbackTransition=new ws(e,{type:1,animation:{type:2,steps:[],options:null},matchers:[function(e,t){return!0}],options:null,queryCount:0,depCount:0},this.states)}return Object.defineProperty(e.prototype,"containsQueries",{get:function(){return this.ast.queryCount>0},enumerable:!0,configurable:!0}),e.prototype.matchTransition=function(e,t){return this.transitionFactories.find(function(n){return n.match(e,t)})||null},e.prototype.matchStyles=function(e,t,n){return this.fallbackTransition.buildStyles(e,t,n)},e}();function Cs(e,t,n){e.hasOwnProperty(t)?e.hasOwnProperty(n)||(e[n]=e[t]):e.hasOwnProperty(n)&&(e[t]=e[n])}var xs=new us,Os=function(){function e(e,t){this._driver=e,this._normalizer=t,this._animations={},this._playersById={},this.players=[]}return e.prototype.register=function(e,t){var n=[],i=es(this._driver,t,n);if(n.length)throw new Error("Unable to build the animation due to the following errors: "+n.join("\n"));this._animations[e]=i},e.prototype._buildPlayer=function(e,t,n){var i=e.element,o=fa(0,this._normalizer,0,e.keyframes,t,n);return this._driver.animate(i,o,e.duration,e.delay,e.easing,[])},e.prototype.create=function(e,t,n){var i=this;void 0===n&&(n={});var o,r=[],l=this._animations[e],u=new Map;if(l?(o=cs(this._driver,t,l,"ng-enter","ng-leave",{},{},n,xs,r)).forEach(function(e){var t=ga(u,e.element,{});e.postStyleProps.forEach(function(e){return t[e]=null})}):(r.push("The requested animation doesn't exist or has already been destroyed"),o=[]),r.length)throw new Error("Unable to create the animation due to the following errors: "+r.join("\n"));u.forEach(function(e,t){Object.keys(e).forEach(function(n){e[n]=i._driver.computeStyle(t,n,ra)})});var a=pa(o.map(function(e){var t=u.get(e.element);return i._buildPlayer(e,{},t)}));return this._playersById[e]=a,a.onDestroy(function(){return i.destroy(e)}),this.players.push(a),a},e.prototype.destroy=function(e){var t=this._getPlayer(e);t.destroy(),delete this._playersById[e];var n=this.players.indexOf(t);n>=0&&this.players.splice(n,1)},e.prototype._getPlayer=function(e){var t=this._playersById[e];if(!t)throw new Error("Unable to find the timeline player referenced by "+e);return t},e.prototype.listen=function(e,t,n,i){var o=ma(t,"","","");return ha(this._getPlayer(e),n,o,i),function(){}},e.prototype.command=function(e,t,n,i){if("register"!=n)if("create"!=n){var o=this._getPlayer(e);switch(n){case"play":o.play();break;case"pause":o.pause();break;case"reset":o.reset();break;case"restart":o.restart();break;case"finish":o.finish();break;case"init":o.init();break;case"setPosition":o.setPosition(parseFloat(i[0]));break;case"destroy":this.destroy(e)}}else this.create(e,t,i[0]||{});else this.register(e,i[0])},e}(),Ss=[],Ms={namespaceId:"",setForRemoval:null,hasAnimation:!1,removedBeforeQueried:!1},Es={namespaceId:"",setForRemoval:null,hasAnimation:!1,removedBeforeQueried:!0},Ps="__ng_removed",Is=function(){function e(e,t){void 0===t&&(t=""),this.namespaceId=t;var n=e&&e.hasOwnProperty("value");if(this.value=function(e){return null!=e?e:null}(n?e.value:e),n){var i=La(e);delete i.value,this.options=i}else this.options={};this.options.params||(this.options.params={})}return Object.defineProperty(e.prototype,"params",{get:function(){return this.options.params},enumerable:!0,configurable:!0}),e.prototype.absorbOptions=function(e){var t=e.params;if(t){var n=this.options.params;Object.keys(t).forEach(function(e){null==n[e]&&(n[e]=t[e])})}},e}(),Rs=new Is("void"),Ds=new Is("DELETED"),Ns=function(){function e(e,t,n){this.id=e,this.hostElement=t,this._engine=n,this.players=[],this._triggers={},this._queue=[],this._elementListeners=new Map,this._hostClassName="ng-tns-"+e,Hs(t,this._hostClassName)}return e.prototype.listen=function(e,t,n,i){var o,r=this;if(!this._triggers.hasOwnProperty(t))throw new Error('Unable to listen on the animation trigger event "'+n+'" because the animation trigger "'+t+"\" doesn't exist!");if(null==n||0==n.length)throw new Error('Unable to listen on the animation trigger "'+t+'" because the provided event is undefined!');if("start"!=(o=n)&&"done"!=o)throw new Error('The provided animation trigger event "'+n+'" for the animation trigger "'+t+'" is not supported!');var l=ga(this._elementListeners,e,[]),u={name:t,phase:n,callback:i};l.push(u);var a=ga(this._engine.statesByElement,e,{});return a.hasOwnProperty(t)||(Hs(e,"ng-trigger"),Hs(e,"ng-trigger-"+t),a[t]=Rs),function(){r._engine.afterFlush(function(){var e=l.indexOf(u);e>=0&&l.splice(e,1),r._triggers[t]||delete a[t]})}},e.prototype.register=function(e,t){return!this._triggers[e]&&(this._triggers[e]=t,!0)},e.prototype._getTrigger=function(e){var t=this._triggers[e];if(!t)throw new Error('The provided animation trigger "'+e+'" has not been registered!');return t},e.prototype.trigger=function(e,t,n,i){var o=this;void 0===i&&(i=!0);var r=this._getTrigger(t),l=new Ls(this.id,t,e),u=this._engine.statesByElement.get(e);u||(Hs(e,"ng-trigger"),Hs(e,"ng-trigger-"+t),this._engine.statesByElement.set(e,u={}));var a=u[t],s=new Is(n,this.id);if(!(n&&n.hasOwnProperty("value"))&&a&&s.absorbOptions(a.options),u[t]=s,a){if(a===Ds)return l}else a=Rs;if("void"===s.value||a.value!==s.value){var c=ga(this._engine.playersByElement,e,[]);c.forEach(function(e){e.namespaceId==o.id&&e.triggerName==t&&e.queued&&e.destroy()});var d=r.matchTransition(a.value,s.value),p=!1;if(!d){if(!i)return;d=r.fallbackTransition,p=!0}return this._engine.totalQueuedPlayers++,this._queue.push({element:e,triggerName:t,transition:d,fromState:a,toState:s,player:l,isFallbackTransition:p}),p||(Hs(e,"ng-animate-queued"),l.onStart(function(){Ws(e,"ng-animate-queued")})),l.onDone(function(){var t=o.players.indexOf(l);t>=0&&o.players.splice(t,1);var n=o._engine.playersByElement.get(e);if(n){var i=n.indexOf(l);i>=0&&n.splice(i,1)}}),this.players.push(l),c.push(l),l}if(!function(e,t){var n=Object.keys(e),i=Object.keys(t);if(n.length!=i.length)return!1;for(var o=0;o=0){for(var i=!1,o=n;o>=0;o--)if(this.driver.containsElement(this._namespaceList[o].hostElement,t)){this._namespaceList.splice(o+1,0,e),i=!0;break}i||this._namespaceList.splice(0,0,e)}else this._namespaceList.push(e);return this.namespacesByHostElement.set(t,e),e},e.prototype.register=function(e,t){var n=this._namespaceLookup[e];return n||(n=this.createNamespace(e,t)),n},e.prototype.registerTrigger=function(e,t,n){var i=this._namespaceLookup[e];i&&i.register(t,n)&&this.totalAnimations++},e.prototype.destroy=function(e,t){var n=this;if(e){var i=this._fetchNamespace(e);this.afterFlush(function(){n.namespacesByHostElement.delete(i.hostElement),delete n._namespaceLookup[e];var t=n._namespaceList.indexOf(i);t>=0&&n._namespaceList.splice(t,1)}),this.afterFlushAnimationsDone(function(){return i.destroy(t)})}},e.prototype._fetchNamespace=function(e){return this._namespaceLookup[e]},e.prototype.fetchNamespacesByElement=function(e){var t=new Set,n=this.statesByElement.get(e);if(n)for(var i=Object.keys(n),o=0;o=0;T--)this._namespaceList[T].drainQueuedTransitions(t).forEach(function(e){var t=e.player;w.push(t);var r=e.element;if(d&&n.driver.containsElement(d,r)){var c=k.get(r),p=h.get(r),f=n._buildInstruction(e,i,p,c);if(f.errors&&f.errors.length)A.push(f);else{if(e.isFallbackTransition)return t.onStart(function(){return Fa(r,f.fromStyles)}),t.onDestroy(function(){return Va(r,f.toStyles)}),void o.push(t);f.timelines.forEach(function(e){return e.stretchStartingKeyframe=!0}),i.append(r,f.timelines),l.push({instruction:f,player:t,element:r}),f.queriedElements.forEach(function(e){return ga(u,e,[]).push(t)}),f.preStyleProps.forEach(function(e,t){var n=Object.keys(e);if(n.length){var i=a.get(t);i||a.set(t,i=new Set),n.forEach(function(e){return i.add(e)})}}),f.postStyleProps.forEach(function(e,t){var n=Object.keys(e),i=s.get(t);i||s.set(t,i=new Set),n.forEach(function(e){return i.add(e)})})}}else t.destroy()});if(A.length){var C=[];A.forEach(function(e){C.push("@"+e.triggerName+" has failed due to:\n"),e.errors.forEach(function(e){return C.push("- "+e+"\n")})}),w.forEach(function(e){return e.destroy()}),this.reportError(C)}var x=new Map,O=new Map;l.forEach(function(e){var t=e.element;i.has(t)&&(O.set(t,t),n._beforeAnimationBuild(e.player.namespaceId,e.instruction,x))}),o.forEach(function(e){var t=e.element;n._getPreviousPlayers(t,!1,e.namespaceId,e.triggerName,null).forEach(function(e){ga(x,t,[]).push(e),e.destroy()})});var S=m.filter(function(e){return $s(e,a,s)}),M=new Map;Fs(M,this.driver,v,s,ra).forEach(function(e){$s(e,a,s)&&S.push(e)});var E=new Map;f.forEach(function(e,t){Fs(E,n.driver,new Set(e),a,da)}),S.forEach(function(e){var t=M.get(e),n=E.get(e);M.set(e,Object(Ci.__assign)({},t,n))});var P=[],I=[],R={};l.forEach(function(e){var t=e.element,l=e.player,u=e.instruction;if(i.has(t)){if(c.has(t))return l.onDestroy(function(){return Va(t,u.toStyles)}),void o.push(l);var a=R;if(O.size>1){for(var s=t,d=[];s=s.parentNode;){var p=O.get(s);if(p){a=p;break}d.push(s)}d.forEach(function(e){return O.set(e,a)})}var f=n._buildAnimation(l.namespaceId,u,x,r,E,M);if(l.setRealPlayer(f),a===R)P.push(l);else{var h=n.playersByElement.get(a);h&&h.length&&(l.parentPlayer=pa(h)),o.push(l)}}else Fa(t,u.fromStyles),l.onDestroy(function(){return Va(t,u.toStyles)}),I.push(l),c.has(t)&&o.push(l)}),I.forEach(function(e){var t=r.get(e.element);if(t&&t.length){var n=pa(t);e.setRealPlayer(n)}}),o.forEach(function(e){e.parentPlayer?e.syncPlayerEvents(e.parentPlayer):e.destroy()});for(var D=0;D0?this.driver.animate(e.element,t,e.duration,e.delay,e.easing,n):new sa},e}(),Ls=function(){function e(e,t,n){this.namespaceId=e,this.triggerName=t,this.element=n,this._player=new sa,this._containsRealPlayer=!1,this._queuedCallbacks={},this.destroyed=!1,this.markedForDestroy=!1,this.queued=!0}return e.prototype.setRealPlayer=function(e){var t=this;this._containsRealPlayer||(this._player=e,Object.keys(this._queuedCallbacks).forEach(function(n){t._queuedCallbacks[n].forEach(function(t){return ha(e,n,void 0,t)})}),this._queuedCallbacks={},this._containsRealPlayer=!0,this.queued=!1)},e.prototype.getRealPlayer=function(){return this._player},e.prototype.syncPlayerEvents=function(e){var t=this,n=this._player;n.triggerCallback&&e.onStart(function(){return n.triggerCallback("start")}),e.onDone(function(){return t.finish()}),e.onDestroy(function(){return t.destroy()})},e.prototype._queueEvent=function(e,t){ga(this._queuedCallbacks,e,[]).push(t)},e.prototype.onDone=function(e){this.queued&&this._queueEvent("done",e),this._player.onDone(e)},e.prototype.onStart=function(e){this.queued&&this._queueEvent("start",e),this._player.onStart(e)},e.prototype.onDestroy=function(e){this.queued&&this._queueEvent("destroy",e),this._player.onDestroy(e)},e.prototype.init=function(){this._player.init()},e.prototype.hasStarted=function(){return!this.queued&&this._player.hasStarted()},e.prototype.play=function(){!this.queued&&this._player.play()},e.prototype.pause=function(){!this.queued&&this._player.pause()},e.prototype.restart=function(){!this.queued&&this._player.restart()},e.prototype.finish=function(){this._player.finish()},e.prototype.destroy=function(){this.destroyed=!0,this._player.destroy()},e.prototype.reset=function(){!this.queued&&this._player.reset()},e.prototype.setPosition=function(e){this.queued||this._player.setPosition(e)},e.prototype.getPosition=function(){return this.queued?0:this._player.getPosition()},Object.defineProperty(e.prototype,"totalTime",{get:function(){return this._player.totalTime},enumerable:!0,configurable:!0}),e.prototype.triggerCallback=function(e){var t=this._player;t.triggerCallback&&t.triggerCallback(e)},e}();function Us(e){return e&&1===e.nodeType}function Vs(e,t){var n=e.style.display;return e.style.display=null!=t?t:"none",n}function Fs(e,t,n,i,o){var r=[];n.forEach(function(e){return r.push(Vs(e))});var l=[];i.forEach(function(n,i){var r={};n.forEach(function(e){var n=r[e]=t.computeStyle(i,e,o);n&&0!=n.length||(i[Ps]=Es,l.push(i))}),e.set(i,r)});var u=0;return n.forEach(function(e){return Vs(e,r[u++])}),l}function Ks(e,t){var n=new Map;if(e.forEach(function(e){return n.set(e,[])}),0==t.length)return n;var i=new Set(t),o=new Map;return t.forEach(function(e){var t=function e(t){if(!t)return 1;var r=o.get(t);if(r)return r;var l=t.parentNode;return r=n.has(l)?l:i.has(l)?1:e(l),o.set(t,r),r}(e);1!==t&&n.get(t).push(e)}),n}var Bs="$$classes";function Hs(e,t){if(e.classList)e.classList.add(t);else{var n=e[Bs];n||(n=e[Bs]={}),n[t]=!0}}function Ws(e,t){if(e.classList)e.classList.remove(t);else{var n=e[Bs];n&&delete n[t]}}function zs(e,t,n){pa(n).onDone(function(){return e.processLeaveNode(t)})}function $s(e,t,n){var i=n.get(e);if(!i)return!1;var o=t.get(e);return o?i.forEach(function(e){return o.add(e)}):t.set(e,i),n.delete(e),!0}var qs=function(){function e(e,t){var n=this;this._driver=e,this._triggerCache={},this.onRemovalComplete=function(e,t){},this._transitionEngine=new js(e,t),this._timelineEngine=new Os(e,t),this._transitionEngine.onRemovalComplete=function(e,t){return n.onRemovalComplete(e,t)}}return e.prototype.registerTrigger=function(e,t,n,i,o){var r=e+"-"+i,l=this._triggerCache[r];if(!l){var u=[],a=es(this._driver,o,u);if(u.length)throw new Error('The animation trigger "'+i+'" has failed to build due to the following errors:\n - '+u.join("\n - "));l=function(e,t){return new Ts(e,t)}(i,a),this._triggerCache[r]=l}this._transitionEngine.registerTrigger(t,i,l)},e.prototype.register=function(e,t){this._transitionEngine.register(e,t)},e.prototype.destroy=function(e,t){this._transitionEngine.destroy(e,t)},e.prototype.onInsert=function(e,t,n,i){this._transitionEngine.insertNode(e,t,n,i)},e.prototype.onRemove=function(e,t,n){this._transitionEngine.removeNode(e,t,n)},e.prototype.disableAnimations=function(e,t){this._transitionEngine.markElementAsDisabled(e,t)},e.prototype.process=function(e,t,n,i){if("@"==n.charAt(0)){var o=va(n);this._timelineEngine.command(o[0],t,o[1],i)}else this._transitionEngine.trigger(e,t,n,i)},e.prototype.listen=function(e,t,n,i,o){if("@"==n.charAt(0)){var r=va(n);return this._timelineEngine.listen(r[0],t,r[1],o)}return this._transitionEngine.listen(e,t,n,i,o)},e.prototype.flush=function(e){void 0===e&&(e=-1),this._transitionEngine.flush(e)},Object.defineProperty(e.prototype,"players",{get:function(){return this._transitionEngine.players.concat(this._timelineEngine.players)},enumerable:!0,configurable:!0}),e.prototype.whenRenderingDone=function(){return this._transitionEngine.whenRenderingDone()},e}(),Gs=function(){function e(e,t,n,i){void 0===i&&(i=[]);var o=this;this.element=e,this.keyframes=t,this.options=n,this.previousPlayers=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.previousStyles={},this.currentSnapshot={},this._duration=n.duration,this._delay=n.delay||0,this.time=this._duration+this._delay,(0===this._duration||0===this._delay)&&i.forEach(function(e){var t=e.currentSnapshot;Object.keys(t).forEach(function(e){return o.previousStyles[e]=t[e]})})}return e.prototype._onFinish=function(){this._finished||(this._finished=!0,this._onDoneFns.forEach(function(e){return e()}),this._onDoneFns=[])},e.prototype.init=function(){this._buildPlayer(),this._preparePlayerBeforeStart()},e.prototype._buildPlayer=function(){var e=this;if(!this._initialized){this._initialized=!0;var t=this.keyframes.map(function(e){return Ua(e,!1)}),n=Object.keys(this.previousStyles);if(n.length&&t.length){var i=t[0],o=[];if(n.forEach(function(t){i.hasOwnProperty(t)||o.push(t),i[t]=e.previousStyles[t]}),o.length)for(var r=this,l=function(){var e=t[u];o.forEach(function(t){e[t]=Ys(r.element,t)})},u=1;u=0&&e0;return n&&e.router.navigate(["/macro",t[0].id]),!n})},e}(),hc=function(){function e(e,t){this.store=e,this.router=t}return e.prototype.canActivate=function(){var e=this;return this.store.select(c.d).do(function(t){t&&e.router.navigate(["/"])}).map(function(e){return!e})},e}(),yc=function(){function e(e,t){this.store=e,this.router=t}return e.prototype.canActivate=function(){var e=this;return this.store.select(c.d).do(function(t){t||e.router.navigate(["/detection"])})},e}(),mc=function(){function e(e,t){this.store=e,this.router=t}return e.prototype.canActivate=function(){var e=this;return this.store.select(c.w).do(function(t){t&&e.router.navigate(["/detection"])}).map(function(e){return!e})},e}(),gc=function(){function e(e,t){this.store=e,this.router=t}return e.prototype.canActivate=function(){var e=this;return this.store.select(c.w).do(function(t){t||e.router.navigate(["/privilege"])})},e}(),vc=function(){function e(e,t){this.store=e,this.router=t}return e.prototype.canActivate=function(){var e=this;return this.store.select(c.c).do(function(t){t||e.router.navigate(["/loading"])})},e}(),bc=function(){function e(e,t){this.store=e,this.router=t}return e.prototype.canActivate=function(){var e=this;return this.store.select(c.c).do(function(t){t&&e.router.navigate(["/"])}).map(function(e){return!e})},e}(),kc=function(){function e(e,t){this.store=e,this.router=t}return e.prototype.canActivate=function(){var e=this;return this.store.select(c.b).do(function(t){t||e.router.navigate(["/"])})},e}(),_c=n("YXEY"),wc=n("+GbP"),Ac=function(){},Tc=function(){},Cc=n("HZ5C"),xc=n("7OPe"),Oc=n("/KiA"),Sc=n("r/Om"),Mc=n("tXwt"),Ec=n("j4Le"),Pc=n("8AXl"),Ic=function(){function e(){}return e.prototype.send=function(e){for(var t=[],n=1;nn.length){i=0;var o=n.indexOf(t.substr(0,1)),r=n.indexOf(t.substr(1,1));++r>n.length&&(r=0,o++),t=n[o]+n[r]+n[i]}return t}(e.keymaps,i.abbreviation),i.name=d(e.keymaps,i.name),i.isDefault=0===e.keymaps.length,n.keymaps=f(e.keymaps,i);break;case u.a.EDIT_NAME:if(!Object(s.d)(t.payload.name))break;var o=t.payload.name.trim(),r=null;if(e.keymaps.some(function(e){return e.abbreviation===t.payload.abbr&&(r=e),e.name===o&&e.abbreviation!==t.payload.abbr}))break;var m=Object.assign(new l.Keymap,r,{name:o});n.keymaps=f(e.keymaps,m,function(e){return e.abbreviation!==m.abbreviation});break;case u.a.EDIT_ABBR:var g=t.payload.newAbbr.toUpperCase(),v=e.keymaps.some(function(e){return e.name!==t.payload.name&&e.abbreviation===g});n.keymaps=e.keymaps.map(function(e){return e=Object.assign(new l.Keymap,e),v||e.abbreviation!==t.payload.abbr?e=e.renameKeymap(t.payload.abbr,t.payload.newAbbr):e.abbreviation=g,e});break;case u.a.SET_DEFAULT:n.keymaps=e.keymaps.map(function(e){return(e.abbreviation===t.payload||e.isDefault)&&((e=Object.assign(new l.Keymap,e)).isDefault=e.abbreviation===t.payload),e});break;case u.a.REMOVE:var b,k=e.keymaps.filter(function(e){return e.abbreviation!==t.payload||(b=e.isDefault,!1)});b&&k.length>0&&(k[0]=Object.assign(new l.Keymap,k[0],{isDefault:!0})),n.keymaps=k.map(function(e){return(e=Object.assign(new l.Keymap,e)).layers=h(e.layers,"keymapAbbreviation",t.payload),e});break;case u.a.SAVE_KEY:var _=t.payload.key,w=t.payload.layer,A=t.payload.module,T=t.payload.keyAction,C=T.action,x=t.payload.keymap,O=C instanceof l.SwitchLayerAction,S=C instanceof l.SwitchKeymapAction;n.keymaps=e.keymaps.map(function(e){return S&&e.abbreviation===C.keymapAbbreviation?e:((T.remapOnAllKeymap||e.abbreviation===x.abbreviation)&&(e.layers=e.layers.map(function(e,t){if(T.remapOnAllLayer||t===w||O){var n=l.KeyActionHelper.createKeyAction(C);if(O)if(0===t||t-1===C.layer)y(e,A,_,n);else{var i=e.modules[A].keyActions[_];i&&i instanceof l.SwitchLayerAction&&y(e,A,_,null)}else y(e,A,_,n)}return e})),e)});break;case u.a.CHECK_MACRO:n.keymaps=e.keymaps.map(function(e){return(e=Object.assign(new l.Keymap,e)).layers=h(e.layers,"_macroId",t.payload),e});break;case u.b.ADD:(M=new l.Macro).id=p(e.macros),M.name=d(e.macros,"New macro"),M.isLooped=!1,M.isPrivate=!0,M.macroActions=[],n.macros=f(e.macros,M);break;case u.b.DUPLICATE:var M;(M=new l.Macro(t.payload)).name=d(e.macros,M.name),M.id=p(e.macros),n.macros=f(e.macros,M);break;case u.b.EDIT_NAME:if(!Object(s.d)(t.payload.name))break;var E=t.payload.name.trim(),P=null;if(e.macros.some(function(e){return e.id===t.payload.id&&(P=e),e.id!==t.payload.id&&e.name===E}))break;var I=Object.assign(new l.Macro,P,{name:E});n.macros=f(e.macros,I,function(e){return e.id!==I.id});break;case u.b.REMOVE:var R=t.payload;n.macros=e.macros.filter(function(e){return e.id!==R});for(var D=0;Dt.payload.oldIndex&&--n,(e=new l.Macro(e)).macroActions.splice(n,0,e.macroActions.splice(t.payload.oldIndex,1)[0])}return e});break;case a.a.RENAME_USER_CONFIGURATION:Object(s.d)(t.payload)&&(n.deviceName=t.payload.trim());break;case a.a.SET_USER_CONFIGURATION_VALUE:n[t.payload.propertyName]=t.payload.value;break;case u.a.EDIT_DESCRIPTION:var W=t.payload;n.keymaps=e.keymaps.map(function(e){return e.abbreviation===W.abbr&&(e.description=W.description),e})}return n},t.e=function(){return function(e){return e.map(function(e){return e.userConfiguration})}},t.b=function(){return function(e){return e.map(function(e){return e.userConfiguration.keymaps})}},t.a=function(e){return void 0===e?function(e){return function(e){return e.map(function(e){return e.userConfiguration.keymaps})}(e).map(function(e){return e.find(function(e){return e.isDefault})})}:function(t){return function(e){return e.map(function(e){return e.userConfiguration.keymaps})}(t).map(function(t){return t.find(function(t){return t.abbreviation===e})})}},t.d=function(){return function(e){return e.map(function(e){return e.userConfiguration.macros})}},t.c=function(e){return isNaN(e)?function(){return i.Observable.of(void 0)}:function(t){return function(e){return e.map(function(e){return e.userConfiguration.macros})}(t).map(function(t){return t.find(function(t){return t.id===e})})}};var i=n("rCTf"),o=n("1APj"),r=(n.n(o),n("+pb+")),l=(n.n(r),n("gI3A")),u=(n.n(l),n("WP8/")),a=n("at4H"),s=n("Lt3n"),c=new l.UserConfiguration;function d(e,t){var n=1,i=/ \(\d+\)$/g,o=t.replace(i,"");return e.forEach(function(e){e.name.replace(i,"")===o&&n++}),o+" ("+n+")"}function p(e){var t=0;return e.forEach(function(e){e.id>t&&(t=e.id)}),t+1}function f(e,t,n){void 0===n&&(n=function(){return!0});for(var i=[],o=!1,r=0,l=e;r0&&(i.push(t),o=!0),n(u)&&i.push(u)}return o||i.push(t),i}function h(e,t,n){for(var i=[],o=0;o"},e.prototype.renameKeymap=function(t,n){var i,o=this,r=!1;if(this.modules.forEach(function(e,l){var u=e.renameKeymap(t,n);u!==e&&(r||(i=o.modules.slice(),r=!0),i[l]=u)}),r){var l=Object.assign(new e,this);return l.modules=i,l}return this},e}()},zF5W:function(e,t,n){var i,o;void 0===(o="function"==typeof(i=function(){"use strict";var e="11.1.0";function t(e){return null!==e&&void 0!==e}function n(e){e.preventDefault()}function i(e){return"number"==typeof e&&!isNaN(e)&&isFinite(e)}function o(e,t,n){n>0&&(a(e,t),setTimeout(function(){s(e,t)},n))}function r(e){return Math.max(Math.min(e,100),0)}function l(e){return Array.isArray(e)?e:[e]}function u(e){var t=(e=String(e)).split(".");return t.length>1?t[1].length:0}function a(e,t){e.classList?e.classList.add(t):e.className+=" "+t}function s(e,t){e.classList?e.classList.remove(t):e.className=e.className.replace(new RegExp("(^|\\b)"+t.split(" ").join("|")+"(\\b|$)","gi")," ")}function c(e){var t=void 0!==window.pageXOffset,n="CSS1Compat"===(e.compatMode||"");return{x:t?window.pageXOffset:n?e.documentElement.scrollLeft:e.body.scrollLeft,y:t?window.pageYOffset:n?e.documentElement.scrollTop:e.body.scrollTop}}function d(e,t){return 100/(t-e)}function p(e,t){return 100*t/(e[1]-e[0])}function f(e,t){for(var n=1;e>=t[n];)n+=1;return n}function h(t,n,o){var r;if("number"==typeof n&&(n=[n]),!Array.isArray(n))throw new Error("noUiSlider ("+e+"): 'range' contains invalid value.");if(!i(r="min"===t?0:"max"===t?100:parseFloat(t))||!i(n[0]))throw new Error("noUiSlider ("+e+"): 'range' value isn't numeric.");o.xPct.push(r),o.xVal.push(n[0]),r?o.xSteps.push(!isNaN(n[1])&&n[1]):isNaN(n[1])||(o.xSteps[0]=n[1]),o.xHighestCompleteStep.push(0)}function y(e,t,n){if(!t)return!0;n.xSteps[e]=p([n.xVal[e],n.xVal[e+1]],t)/d(n.xPct[e],n.xPct[e+1]);var i=Math.ceil(Number(((n.xVal[e+1]-n.xVal[e])/n.xNumSteps[e]).toFixed(3))-1);n.xHighestCompleteStep[e]=n.xVal[e]+n.xNumSteps[e]*i}function m(e,t,n){var i;this.xPct=[],this.xVal=[],this.xSteps=[n||!1],this.xNumSteps=[!1],this.xHighestCompleteStep=[],this.snap=t;var o=[];for(i in e)e.hasOwnProperty(i)&&o.push([e[i],i]);for(o.sort(o.length&&"object"==typeof o[0][0]?function(e,t){return e[0][0]-t[0][0]}:function(e,t){return e[0]-t[0]}),i=0;i=e.slice(-1)[0])return 100;var i=f(n,e),o=t[i-1],r=t[i];return o+function(e,t){return p(e,e[0]<0?t+Math.abs(e[0]):t-e[0])}([e[i-1],e[i]],n)/d(o,r)}(this.xVal,this.xPct,e)},m.prototype.fromStepping=function(e){return function(e,t,n){if(n>=100)return e.slice(-1)[0];var i=f(n,t),o=t[i-1];return function(e,t){return t*(e[1]-e[0])/100+e[0]}([e[i-1],e[i]],(n-o)*d(o,t[i]))}(this.xVal,this.xPct,e)},m.prototype.getStep=function(e){return function(e,t,n,i){if(100===i)return i;var o=f(i,e),r=e[o-1],l=e[o];return n?i-r>(l-r)/2?l:r:t[o-1]?e[o-1]+function(e,t){return Math.round(e/t)*t}(i-e[o-1],t[o-1]):i}(this.xPct,this.xSteps,this.snap,e)},m.prototype.getNearbySteps=function(e){var t=f(e,this.xPct);return{stepBefore:{startValue:this.xVal[t-2],step:this.xNumSteps[t-2],highestStep:this.xHighestCompleteStep[t-2]},thisStep:{startValue:this.xVal[t-1],step:this.xNumSteps[t-1],highestStep:this.xHighestCompleteStep[t-1]},stepAfter:{startValue:this.xVal[t-0],step:this.xNumSteps[t-0],highestStep:this.xHighestCompleteStep[t-0]}}},m.prototype.countStepDecimals=function(){var e=this.xNumSteps.map(u);return Math.max.apply(null,e)},m.prototype.convert=function(e){return this.getStep(this.toStepping(e))};var g={to:function(e){return void 0!==e&&e.toFixed(2)},from:Number};function v(t){if(function(e){return"object"==typeof e&&"function"==typeof e.to&&"function"==typeof e.from}(t))return!0;throw new Error("noUiSlider ("+e+"): 'format' requires 'to' and 'from' methods.")}function b(t,n){if(!i(n))throw new Error("noUiSlider ("+e+"): 'step' is not numeric.");t.singleStep=n}function k(t,n){if("object"!=typeof n||Array.isArray(n))throw new Error("noUiSlider ("+e+"): 'range' is not an object.");if(void 0===n.min||void 0===n.max)throw new Error("noUiSlider ("+e+"): Missing 'min' or 'max' in 'range'.");if(n.min===n.max)throw new Error("noUiSlider ("+e+"): 'range' 'min' and 'max' cannot be equal.");t.spectrum=new m(n,t.snap,t.singleStep)}function _(t,n){if(n=l(n),!Array.isArray(n)||!n.length)throw new Error("noUiSlider ("+e+"): 'start' option is incorrect.");t.handles=n.length,t.start=n}function w(t,n){if(t.snap=n,"boolean"!=typeof n)throw new Error("noUiSlider ("+e+"): 'snap' option must be a boolean.")}function A(t,n){if(t.animate=n,"boolean"!=typeof n)throw new Error("noUiSlider ("+e+"): 'animate' option must be a boolean.")}function T(t,n){if(t.animationDuration=n,"number"!=typeof n)throw new Error("noUiSlider ("+e+"): 'animationDuration' option must be a number.")}function C(t,n){var i,o=[!1];if("lower"===n?n=[!0,!1]:"upper"===n&&(n=[!1,!0]),!0===n||!1===n){for(i=1;i=100)throw new Error("noUiSlider ("+e+"): 'padding' option must not exceed 100% of the range.")}}function E(t,n){switch(n){case"ltr":t.dir=0;break;case"rtl":t.dir=1;break;default:throw new Error("noUiSlider ("+e+"): 'direction' option was not recognized.")}}function P(t,n){if("string"!=typeof n)throw new Error("noUiSlider ("+e+"): 'behaviour' must be a string containing options.");var i=n.indexOf("tap")>=0,o=n.indexOf("drag")>=0,r=n.indexOf("fixed")>=0,l=n.indexOf("snap")>=0,u=n.indexOf("hover")>=0;if(r){if(2!==t.handles)throw new Error("noUiSlider ("+e+"): 'fixed' behaviour must be used with 2 handles");O(t,t.start[1]-t.start[0])}t.events={tap:i||l,drag:o,fixed:r,snap:l,hover:u}}function I(t,n){if(!1!==n)if(!0===n){t.tooltips=[];for(var i=0;i= 2) required for mode 'count'.");var o=n-1,r=100/o;for(n=[];o--;)n[o]=o*r;n.push(100),t="positions"}return"positions"===t?n.map(function(e){return C.fromStepping(i?C.getStep(e):e)}):"values"===t?i?n.map(function(e){return C.fromStepping(C.getStep(C.toStepping(e)))}):n:void 0}(n,t.values||!1,t.stepped||!1),u=function(e,t,n){var i,o={},r=C.xVal[0],l=C.xVal[C.xVal.length-1],u=!1,a=!1,s=0;return i=n.slice().sort(function(e,t){return e-t}),(n=i.filter(function(e){return!this[e]&&(this[e]=!0)},{}))[0]!==r&&(n.unshift(r),u=!0),n[n.length-1]!==l&&(n.push(l),a=!0),n.forEach(function(i,r){var l,c,d,p,f,h,y,m,g=i,v=n[r+1];if("steps"===t&&(l=C.xNumSteps[r]),l||(l=v-g),!1!==g&&void 0!==v)for(l=Math.max(l,1e-7),c=g;c<=v;c=(c+l).toFixed(7)/1){for(m=(f=(p=C.toStepping(c))-s)/(y=Math.round(f/e)),d=1;d<=y;d+=1)o[(s+d*m).toFixed(5)]=["x",0];h=n.indexOf(c)>-1?1:"steps"===t?2:0,!r&&u&&(h=0),c===v&&a||(o[p.toFixed(5)]=[c,h]),s=p}}),o}(o,n,l),s=t.format||{to:Math.round};return y=_.appendChild(function(e,t,n){var o=S.createElement("div"),r=[i.cssClasses.valueNormal,i.cssClasses.valueLarge,i.cssClasses.valueSub],l=[i.cssClasses.markerNormal,i.cssClasses.markerLarge,i.cssClasses.markerSub],u=[i.cssClasses.valueHorizontal,i.cssClasses.valueVertical],s=[i.cssClasses.markerHorizontal,i.cssClasses.markerVertical];function c(e,t){var n=t===i.cssClasses.value;return t+" "+(n?u:s)[i.ort]+" "+(n?r:l)[e]}return a(o,i.cssClasses.pips),a(o,0===i.ort?i.cssClasses.pipsHorizontal:i.cssClasses.pipsVertical),Object.keys(e).forEach(function(r){!function(e,r){r[1]=r[1]&&t?t(r[0],r[1]):r[1];var l=I(o,!1);l.className=c(r[1],i.cssClasses.marker),l.style[i.style]=e+"%",r[1]&&((l=I(o,!1)).className=c(r[1],i.cssClasses.value),l.setAttribute("data-value",r[0]),l.style[i.style]=e+"%",l.innerText=n.to(r[0]))}(r,e[r])}),o}(u,r,s))}function U(){var e=d.getBoundingClientRect(),t="offset"+["Width","Height"][i.ort];return 0===i.ort?e.width||d[t]:e.height||d[t]}function V(e,t,n,o){var r=function(r){return!!(r=function(e,t,n){var i,o,r=0===e.type.indexOf("touch"),l=0===e.type.indexOf("mouse"),u=0===e.type.indexOf("pointer");if(0===e.type.indexOf("MSPointer")&&(u=!0),r){var a=function(e){return e.target===n||n.contains(e.target)};if("touchstart"===e.type){var s=Array.prototype.filter.call(e.touches,a);if(s.length>1)return!1;i=s[0].pageX,o=s[0].pageY}else{var d=Array.prototype.find.call(e.changedTouches,a);if(!d)return!1;i=d.pageX,o=d.pageY}}return t=t||c(S),(l||u)&&(i=e.clientX+t.x,o=e.clientY+t.y),e.pageOffset=t,e.points=[i,o],e.cursor=l||u,e}(r,o.pageOffset,o.target||t))&&!(_.hasAttribute("disabled")&&!o.doNotReject)&&(u=i.cssClasses.tap,!(((l=_).classList?l.classList.contains(u):new RegExp("\\b"+u+"\\b").test(l.className))&&!o.doNotReject)&&!(e===b.start&&void 0!==r.buttons&&r.buttons>1)&&(!o.hover||!r.buttons)&&(k||r.preventDefault(),r.calcPoint=r.points[i.ort],void n(r,o)));var l,u},l=[];return e.split(" ").forEach(function(e){t.addEventListener(e,r,!!k&&{passive:!0}),l.push([e,r])}),l}function F(e){var t,n,o,l,u,a,s=100*(e-(n=i.ort,o=(t=d).getBoundingClientRect(),u=(l=t.ownerDocument).documentElement,a=c(l),/webkit.*Chrome.*Mobile/i.test(navigator.userAgent)&&(a.x=0),n?o.top+a.y-u.clientTop:o.left+a.x-u.clientLeft))/U();return s=r(s),i.dir?100-s:s}function K(e,t){"mouseout"===e.type&&"HTML"===e.target.nodeName&&null===e.relatedTarget&&H(e,t)}function B(e,t){if(-1===navigator.appVersion.indexOf("MSIE 9")&&0===e.buttons&&0!==t.buttonsProperty)return H(e,t);var n=(i.dir?-1:1)*(e.calcPoint-t.startCalcPoint);Q(n>0,100*n/t.baseSize,t.locations,t.handleNumbers)}function H(e,t){t.handle&&(s(t.handle,i.cssClasses.active),T-=1),t.listeners.forEach(function(e){M.removeEventListener(e[0],e[1])}),0===T&&(s(_,i.cssClasses.drag),Z(),e.cursor&&(E.style.cursor="",E.removeEventListener("selectstart",n))),t.handleNumbers.forEach(function(e){$("change",e),$("set",e),$("end",e)})}function W(e,t){var o;if(1===t.handleNumbers.length){var r=p[t.handleNumbers[0]];if(r.hasAttribute("disabled"))return!1;T+=1,a(o=r.children[0],i.cssClasses.active)}e.stopPropagation();var l=[],u=V(b.move,M,B,{target:e.target,handle:o,listeners:l,startCalcPoint:e.calcPoint,baseSize:U(),pageOffset:e.pageOffset,handleNumbers:t.handleNumbers,buttonsProperty:e.buttons,locations:w.slice()}),s=V(b.end,M,H,{target:e.target,handle:o,listeners:l,doNotReject:!0,handleNumbers:t.handleNumbers}),c=V("mouseout",M,K,{target:e.target,handle:o,listeners:l,doNotReject:!0,handleNumbers:t.handleNumbers});l.push.apply(l,u.concat(s,c)),e.cursor&&(E.style.cursor=getComputedStyle(e.target).cursor,p.length>1&&a(_,i.cssClasses.drag),E.addEventListener("selectstart",n,!1)),t.handleNumbers.forEach(function(e){$("start",e)})}function z(e,t){O[e]=O[e]||[],O[e].push(t),"update"===e.split(".")[0]&&p.forEach(function(e,t){$("update",t)})}function $(e,t,n){Object.keys(O).forEach(function(o){var r=o.split(".")[0];e===r&&O[o].forEach(function(e){e.call(h,x.map(i.format.to),t,x.slice(),n||!1,w.slice())})})}function q(e){return e+"%"}function G(e,t,n,o,l,u){return p.length>1&&(o&&t>0&&(n=Math.max(n,e[t-1]+i.margin)),l&&t1&&i.limit&&(o&&t>0&&(n=Math.min(n,e[t-1]+i.limit)),l&&t1?i.forEach(function(e,n){var i=G(o,e,o[e]+t,r[n],l[n],!1);!1===i?t=0:(t=i-o[e],o[e]=i)}):r=l=[!0];var u=!1;i.forEach(function(e,i){u=X(e,n[e]+t,r[i],l[i])||u}),u&&i.forEach(function(e){$("update",e),$("slide",e)})}function J(e,t){return i.dir?100-e-t:e}function Z(){A.forEach(function(e){p[e].style.zIndex=3+(p.length+(w[e]>50?-1:1)*e)})}function X(e,t,n,o){return!1!==(t=G(w,e,t,n,o,!1))&&(function(e,t){w[e]=t,x[e]=C.fromStepping(t);var n="translate("+Y(q(J(t,0)-P),"0")+")";p[e].style[i.transformRule]=n,ee(e),ee(e+1)}(e,t),!0)}function ee(e){if(f[e]){var t=0,n=100;0!==e&&(t=w[e-1]),e!==f.length-1&&(n=w[e]);var o=n-t,r="translate("+Y(q(J(t,o)),"0")+")",l="scale("+Y(o/100,"1")+")";f[e].style[i.transformRule]=r+" "+l}}function te(e,t){var n=l(e);t=void 0===t||!!t,i.animate&&!(void 0===w[0])&&o(_,i.cssClasses.tap,i.animationDuration),A.forEach(function(e){X(e,function(e,t){return null===e||!1===e||void 0===e?w[t]:("number"==typeof e&&(e=String(e)),e=i.format.from(e),!1===(e=C.toStepping(e))||isNaN(e)?w[t]:e)}(n[e],e),!0,!1)}),A.forEach(function(e){X(e,w[e],!0,!0)}),Z(),A.forEach(function(e){$("update",e),null!==n[e]&&t&&$("set",e)})}function ne(){var e=x.map(i.format.to);return 1===e.length?e[0]:e}return a(m=_,i.cssClasses.target),a(m,0===i.dir?i.cssClasses.ltr:i.cssClasses.rtl),a(m,0===i.ort?i.cssClasses.horizontal:i.cssClasses.vertical),d=I(m,i.cssClasses.base),function(e,t){var n=I(t,i.cssClasses.connects);p=[],(f=[]).push(D(n,e[0]));for(var o=0;on.stepAfter.startValue&&(o=n.stepAfter.startValue-i),r=i>n.thisStep.startValue?n.thisStep.step:!1!==n.stepBefore.step&&i-n.stepBefore.highestStep,100===e?o=null:0===e&&(r=null);var l=C.countStepDecimals();return null!==o&&!1!==o&&(o=Number(o.toFixed(l))),null!==r&&!1!==r&&(r=Number(r.toFixed(l))),[r,o]})},on:z,off:function(e){var t=e&&e.split(".")[0],n=t&&e.substring(t.length);Object.keys(O).forEach(function(e){var i=e.split(".")[0],o=e.substring(i.length);t&&t!==i||n&&n!==o||delete O[e]})},get:ne,set:te,reset:function(e){te(i.start,e)},__moveHandles:function(e,t,n){Q(e,t,w,n)},options:u,updateOptions:function(e,t){var n=ne(),o=["margin","limit","padding","range","animate","snap","step","format"];o.forEach(function(t){void 0!==e[t]&&(u[t]=e[t])});var r=L(u);o.forEach(function(t){void 0!==e[t]&&(i[t]=r[t])}),C=r.spectrum,i.margin=r.margin,i.limit=r.limit,i.padding=r.padding,i.pips&&j(i.pips),w=[],te(e.start||n,t)},target:_,removePips:N,pips:j},i.pips&&j(i.pips),i.tooltips&&(v=p.map(function(e,t){return!!i.tooltips[t]&&I(e.firstChild,i.cssClasses.tooltip)}),z("update",function(e,t,n){if(v[t]){var o=e[t];!0!==i.tooltips[t]&&(o=i.tooltips[t].to(n[t])),v[t].innerHTML=o}})),z("update",function(e,t,n,o,r){A.forEach(function(e){var t=p[e],o=G(w,e,0,!0,!0,!0),l=G(w,e,100,!0,!0,!0),u=r[e],a=i.ariaFormat.to(n[e]);t.children[0].setAttribute("aria-valuemin",o.toFixed(1)),t.children[0].setAttribute("aria-valuemax",l.toFixed(1)),t.children[0].setAttribute("aria-valuenow",u.toFixed(1)),t.children[0].setAttribute("aria-valuetext",a)})}),h}(t,L(i),i);return t.noUiSlider=u,u}}})?i.apply(t,[]):i)||(e.exports=o)},zQPq:function(e,t,n){"use strict";var i=n("TToO").__extends,o=n("B00U");t.Action=function(e){function t(t,n){e.call(this)}return i(t,e),t.prototype.schedule=function(e,t){return void 0===t&&(t=0),this},t}(o.Subscription)}},[0]); \ No newline at end of file diff --git a/main.93f613895be1c30ea16b.js b/main.93f613895be1c30ea16b.js new file mode 100644 index 00000000..39d96d06 --- /dev/null +++ b/main.93f613895be1c30ea16b.js @@ -0,0 +1 @@ +(window.webpackJsonp=window.webpackJsonp||[]).push([[1],{"+bod":function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n("2QPq"),i=n("Mfn/"),o=n("rBfm");!function(e){e[e.Left=0]="Left",e[e.Right=1]="Right",e[e.Middle=2]="Middle"}(t.MouseButtons||(t.MouseButtons={}));class l extends o.MacroAction{constructor(e){super(),e&&(this.action=e.action,this.mouseButtonsMask=e.mouseButtonsMask)}fromJsonObject(e){return this.assertMacroActionType(e),this.action=o.MacroMouseSubAction[e.action],this.mouseButtonsMask=e.mouseButtonsMask,this}fromBinary(e){const t=this.readAndAssertMacroActionId(e);return this.action=t-o.MacroActionId.MouseButtonMacroAction,this.mouseButtonsMask=e.readUInt8(),this}toJsonObject(){return{macroActionType:o.macroActionType.MouseButtonMacroAction,action:o.MacroMouseSubAction[this.action],mouseButtonsMask:this.mouseButtonsMask}}toBinary(e){e.writeUInt8(o.MacroActionId.MouseButtonMacroAction+this.action),e.writeUInt8(this.mouseButtonsMask)}setMouseButtons(e){let t=0;for(let n=0;n>>=1)e.push(Boolean(1&t));return e}toString(){return``}hasButtons(){return 0!==this.mouseButtonsMask}isOnlyClickAction(){return this.action===o.MacroMouseSubAction.click}isOnlyHoldAction(){return this.action===o.MacroMouseSubAction.hold}isOnlyReleaseAction(){return this.action===o.MacroMouseSubAction.release}getName(){return"MouseButtonMacroAction"}}r.__decorate([i.assertEnum(o.MacroMouseSubAction),r.__metadata("design:type",Number)],l.prototype,"action",void 0),r.__decorate([i.assertUInt8,r.__metadata("design:type",Number)],l.prototype,"mouseButtonsMask",void 0),t.MouseButtonMacroAction=l},"+tJ4":function(e,t,n){"use strict";n.d(t,"a",function(){return r});var r=function(e){return function(t){for(var n=0,r=e.length;n`}}r.__decorate([i.assertUInt8,r.__metadata("design:type",Number)],o.prototype,"majorVersion",void 0),r.__decorate([i.assertUInt8,r.__metadata("design:type",Number)],o.prototype,"minorVersion",void 0),r.__decorate([i.assertUInt8,r.__metadata("design:type",Number)],o.prototype,"patchVersion",void 0),r.__decorate([i.assertUInt8,r.__metadata("design:type",Number)],o.prototype,"brandId",void 0),r.__decorate([i.assertUInt8,r.__metadata("design:type",Number)],o.prototype,"deviceId",void 0),r.__decorate([i.assertUInt32,r.__metadata("design:type",Number)],o.prototype,"uniqueId",void 0),t.HardwareConfiguration=o},"/PH2":function(e,t,n){"use strict";n.d(t,"a",function(){return l});var r=n("mrSG"),i=n("MGBS"),o=n("zotm");function l(){for(var e=[],t=0;t0){var l=o.indexOf(n);-1!==l&&o.splice(l,1)}},t.prototype.notifyComplete=function(){},t.prototype._next=function(e){if(0===this.toRespond.length){var t=[e].concat(this.values);this.project?this._tryProject(t):this.destination.next(t)}},t.prototype._tryProject=function(e){var t;try{t=this.project.apply(this,e)}catch(n){return void this.destination.error(n)}this.destination.next(t)},t}(i.a)},"/WYv":function(e,t,n){"use strict";function r(e){return!!e&&"function"!=typeof e.subscribe&&"function"==typeof e.then}n.d(t,"a",function(){return r})},0:function(e,t,n){e.exports=n("lLol")},"0/uQ":function(e,t,n){"use strict";var r=n("6blF"),i=n("Fxb1"),o=n("pugT"),l=n("xTla"),u=n("JF+6"),a=n("En8+"),s=n("/WYv"),c=n("2ePl");function p(e,t){return t?function(e,t){if(null!=e){if(function(e){return e&&"function"==typeof e[l.a]}(e))return function(e,t){return new r.a(function(n){var r=new o.a;return r.add(t.schedule(function(){var i=e[l.a]();r.add(i.subscribe({next:function(e){r.add(t.schedule(function(){return n.next(e)}))},error:function(e){r.add(t.schedule(function(){return n.error(e)}))},complete:function(){r.add(t.schedule(function(){return n.complete()}))}}))})),r})}(e,t);if(Object(s.a)(e))return function(e,t){return new r.a(function(n){var r=new o.a;return r.add(t.schedule(function(){return e.then(function(e){r.add(t.schedule(function(){n.next(e),r.add(t.schedule(function(){return n.complete()}))}))},function(e){r.add(t.schedule(function(){return n.error(e)}))})})),r})}(e,t);if(Object(c.a)(e))return Object(u.a)(e,t);if(function(e){return e&&"function"==typeof e[a.a]}(e)||"string"==typeof e)return function(e,t){if(!e)throw new Error("Iterable cannot be null");return new r.a(function(n){var r,i=new o.a;return i.add(function(){r&&"function"==typeof r.return&&r.return()}),i.add(t.schedule(function(){r=e[a.a](),i.add(t.schedule(function(){if(!n.closed){var e,t;try{var i=r.next();e=i.value,t=i.done}catch(o){return void n.error(o)}t?n.complete():(n.next(e),this.schedule())}}))})),i})}(e,t)}throw new TypeError((null!==e&&typeof e||e)+" is not observable")}(e,t):e instanceof r.a?e:new r.a(Object(i.a)(e))}n.d(t,"a",function(){return p})},"0mNj":function(e,t,n){"use strict";n.d(t,"a",function(){return o});var r=n("mrSG"),i=n("FFOo");function o(e){return function(t){return t.lift(new l(e))}}var l=function(){function e(e){this.total=e}return e.prototype.call=function(e,t){return t.subscribe(new u(e,this.total))},e}(),u=function(e){function t(t,n){var r=e.call(this,t)||this;return r.total=n,r.count=0,r}return r.c(t,e),t.prototype._next=function(e){++this.count>this.total&&this.destination.next(e)},t}(i.a)},"0zd0":function(e,t,n){"use strict";var r=n("T1DM");function i(){return Error.call(this),this.message="Timeout has occurred",this.name="TimeoutError",this}i.prototype=Object.create(Error.prototype);var o=i,l=n("mrSG"),u=n("MGBS"),a=n("zotm"),s=function(){function e(e,t,n,r){this.waitFor=e,this.absoluteTimeout=t,this.withObservable=n,this.scheduler=r}return e.prototype.call=function(e,t){return t.subscribe(new c(e,this.absoluteTimeout,this.waitFor,this.withObservable,this.scheduler))},e}(),c=function(e){function t(t,n,r,i,o){var l=e.call(this,t)||this;return l.absoluteTimeout=n,l.waitFor=r,l.withObservable=i,l.scheduler=o,l.action=null,l.scheduleTimeout(),l}return l.c(t,e),t.dispatchTimeout=function(e){var t=e.withObservable;e._unsubscribeAndRecycle(),e.add(Object(a.a)(e,t))},t.prototype.scheduleTimeout=function(){var e=this.action;e?this.action=e.schedule(this,this.waitFor):this.add(this.action=this.scheduler.schedule(t.dispatchTimeout,this.waitFor,this))},t.prototype._next=function(t){this.absoluteTimeout||this.scheduleTimeout(),e.prototype._next.call(this,t)},t.prototype._unsubscribe=function(){this.action=null,this.scheduler=null,this.withObservable=null},t}(u.a),p=n("XlPw");function f(e,t){return void 0===t&&(t=r.a),function(e,t,n){return void 0===n&&(n=r.a),function(r){var i,o=(i=e)instanceof Date&&!isNaN(+i),l=o?+e-n.now():Math.abs(e);return r.lift(new s(l,o,t,n))}}(e,Object(p.a)(new o),t)}n.d(t,"a",function(){return f})},"15JJ":function(e,t,n){"use strict";n.d(t,"a",function(){return s});var r=n("mrSG"),i=n("MGBS"),o=n("rPjj"),l=n("zotm"),u=n("67Y/"),a=n("0/uQ");function s(e,t){return"function"==typeof t?function(n){return n.pipe(s(function(n,r){return Object(a.a)(e(n,r)).pipe(Object(u.a)(function(e,i){return t(n,e,r,i)}))}))}:function(t){return t.lift(new c(e))}}var c=function(){function e(e){this.project=e}return e.prototype.call=function(e,t){return t.subscribe(new p(e,this.project))},e}(),p=function(e){function t(t,n){var r=e.call(this,t)||this;return r.project=n,r.index=0,r}return r.c(t,e),t.prototype._next=function(e){var t,n=this.index++;try{t=this.project(e,n)}catch(r){return void this.destination.error(r)}this._innerSub(t,e,n)},t.prototype._innerSub=function(e,t,n){var r=this.innerSubscription;r&&r.unsubscribe();var i=new o.a(this,void 0,void 0);this.destination.add(i),this.innerSubscription=Object(l.a)(this,e,t,n,i)},t.prototype._complete=function(){var t=this.innerSubscription;t&&!t.closed||e.prototype._complete.call(this),this.unsubscribe()},t.prototype._unsubscribe=function(){this.innerSubscription=null},t.prototype.notifyComplete=function(t){this.destination.remove(t),this.innerSubscription=null,this.isStopped&&e.prototype._complete.call(this)},t.prototype.notifyNext=function(e,t,n,r,i){this.destination.next(t)},t}(i.a)},"1nxd":function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});class r{}r.appStarted="app-started",r.getAppStartInfo="app-get-start-info",r.getAppStartInfoReply="app-get-start-info-reply",r.exit="app-exit",r.openUrl="open-url",t.App=r;class i{}i.checkingForUpdate="checking-for-update",i.updateAvailable="update-available",i.updateNotAvailable="update-not-available",i.autoUpdateError="auto-update-error",i.autoUpdateDownloaded="update-downloaded",i.autoUpdateDownloadProgress="auto-update-download-progress",i.updateAndRestart="update-and-restart",i.checkForUpdate="check-for-update",i.checkForUpdateNotAvailable="check-for-update-not-available",t.AutoUpdate=i;class o{}o.setPrivilegeOnLinux="set-privilege-on-linux",o.setPrivilegeOnLinuxReply="set-privilege-on-linux-reply",o.deviceConnectionStateChanged="device-connection-state-changed",o.saveUserConfiguration="device-save-user-configuration",o.saveUserConfigurationReply="device-save-user-configuration-reply",o.loadConfigurations="device-load-configuration",o.loadConfigurationReply="device-load-configuration-reply",o.updateFirmware="device-update-firmware",o.updateFirmwareReply="device-update-firmware-reply",o.startConnectionPoller="device-start-connection-poller",o.recoveryDevice="device-recovery",o.enableUsbStackTest="enable-usb-stack-test",t.Device=o;class l{}l.app=r,l.autoUpdater=i,l.device=o,t.IpcEvents=l},"26FU":function(e,t,n){"use strict";n.d(t,"a",function(){return l});var r=n("mrSG"),i=n("K9Ia"),o=n("8g8A"),l=function(e){function t(t){var n=e.call(this)||this;return n._value=t,n}return r.c(t,e),Object.defineProperty(t.prototype,"value",{get:function(){return this.getValue()},enumerable:!0,configurable:!0}),t.prototype._subscribe=function(t){var n=e.prototype._subscribe.call(this,t);return n&&!n.closed&&t.next(this._value),n},t.prototype.getValue=function(){if(this.hasError)throw this.thrownError;if(this.closed)throw new o.a;return this._value},t.prototype.next=function(t){e.prototype.next.call(this,this._value=t)},t}(i.a)},"2Bdj":function(e,t,n){"use strict";function r(e){return"function"==typeof e}n.d(t,"a",function(){return r})},"2QPq":function(e,t,n){"use strict";n.r(t),n.d(t,"__extends",function(){return i}),n.d(t,"__assign",function(){return o}),n.d(t,"__rest",function(){return l}),n.d(t,"__decorate",function(){return u}),n.d(t,"__param",function(){return a}),n.d(t,"__metadata",function(){return s}),n.d(t,"__awaiter",function(){return c}),n.d(t,"__generator",function(){return p}),n.d(t,"__exportStar",function(){return f}),n.d(t,"__values",function(){return d}),n.d(t,"__read",function(){return h}),n.d(t,"__spread",function(){return y}),n.d(t,"__spreadArrays",function(){return b}),n.d(t,"__await",function(){return m}),n.d(t,"__asyncGenerator",function(){return g}),n.d(t,"__asyncDelegator",function(){return v}),n.d(t,"__asyncValues",function(){return k}),n.d(t,"__makeTemplateObject",function(){return _}),n.d(t,"__importStar",function(){return w}),n.d(t,"__importDefault",function(){return O});var r=function(e,t){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(e,t)};function i(e,t){function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}var o=function(){return(o=Object.assign||function(e){for(var t,n=1,r=arguments.length;n=0;u--)(i=e[u])&&(l=(o<3?i(l):o>3?i(t,n,l):i(t,n))||l);return o>3&&l&&Object.defineProperty(t,n,l),l}function a(e,t){return function(n,r){t(n,r,e)}}function s(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)}function c(e,t,n,r){return new(n||(n=Promise))(function(i,o){function l(e){try{a(r.next(e))}catch(t){o(t)}}function u(e){try{a(r.throw(e))}catch(t){o(t)}}function a(e){e.done?i(e.value):new n(function(t){t(e.value)}).then(l,u)}a((r=r.apply(e,t||[])).next())})}function p(e,t){var n,r,i,o,l={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return o={next:u(0),throw:u(1),return:u(2)},"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function u(o){return function(u){return function(o){if(n)throw new TypeError("Generator is already executing.");for(;l;)try{if(n=1,r&&(i=2&o[0]?r.return:o[0]?r.throw||((i=r.return)&&i.call(r),0):r.next)&&!(i=i.call(r,o[1])).done)return i;switch(r=0,i&&(o=[2&o[0],i.value]),o[0]){case 0:case 1:i=o;break;case 4:return l.label++,{value:o[1],done:!1};case 5:l.label++,r=o[1],o=[0];continue;case 7:o=l.ops.pop(),l.trys.pop();continue;default:if(!(i=(i=l.trys).length>0&&i[i.length-1])&&(6===o[0]||2===o[0])){l=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}}}function h(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,i,o=n.call(e),l=[];try{for(;(void 0===t||t-- >0)&&!(r=o.next()).done;)l.push(r.value)}catch(u){i={error:u}}finally{try{r&&!r.done&&(n=o.return)&&n.call(o)}finally{if(i)throw i.error}}return l}function y(){for(var e=[],t=0;t1||u(e,t)})})}function u(e,t){try{(n=i[e](t)).value instanceof m?Promise.resolve(n.value.v).then(a,s):c(o[0][2],n)}catch(r){c(o[0][3],r)}var n}function a(e){u("next",e)}function s(e){u("throw",e)}function c(e,t){e(t),o.shift(),o.length&&u(o[0][0],o[0][1])}}function v(e){var t,n;return t={},r("next"),r("throw",function(e){throw e}),r("return"),t[Symbol.iterator]=function(){return this},t;function r(r,i){t[r]=e[r]?function(t){return(n=!n)?{value:m(e[r](t)),done:"return"===r}:i?i(t):t}:i}}function k(e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var t,n=e[Symbol.asyncIterator];return n?n.call(e):(e=d(e),t={},r("next"),r("throw"),r("return"),t[Symbol.asyncIterator]=function(){return this},t);function r(n){t[n]=e[n]&&function(t){return new Promise(function(r,i){!function(e,t,n,r){Promise.resolve(r).then(function(t){e({value:t,done:n})},t)}(r,i,(t=e[n](t)).done,t.value)})}}}function _(e,t){return Object.defineProperty?Object.defineProperty(e,"raw",{value:t}):e.raw=t,e}function w(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t}function O(e){return e&&e.__esModule?e:{default:e}}},"2a1v":function(e,t){e.exports={svg:{$:{xmlns:"http://www.w3.org/2000/svg",version:"1.1",width:"744.094488189",height:"1052.36220472"},rect:[{$:{id:"key-1",x:"18.116484",y:"678.38116",ry:"3.5107117",width:"63.014999",height:"63.014999",style:"fill:#333"}},{$:{id:"key-2",x:"84.457497",y:"678.38116",ry:"3.5107117",width:"63.014999",height:"63.014999",style:"fill:#333"}},{$:{id:"key-3",x:"150.79849",y:"678.38116",ry:"3.5107117",width:"63.014999",height:"63.014999",style:"fill:#333"}},{$:{id:"key-4",x:"217.14047",y:"678.38116",ry:"3.5107117",width:"63.014999",height:"63.014999",style:"fill:#333"}},{$:{id:"key-5",x:"283.48148",y:"678.38116",ry:"3.5107117",width:"63.014999",height:"63.014999",style:"fill:#333"}},{$:{id:"key-6",x:"349.82248",y:"678.38116",ry:"3.5107117",width:"63.014999",height:"63.014999",style:"fill:#333"}},{$:{id:"key-7",x:"416.16348",y:"678.38116",ry:"3.5107117",width:"96.728996",height:"63.014999",style:"fill:#333"}},{$:{id:"key-8",x:"51.829502",y:"744.89612",ry:"3.5107117",width:"63.014999",height:"63.014999",style:"fill:#333"}},{$:{id:"key-9",x:"118.17051",y:"744.89612",ry:"3.5107117",width:"63.014999",height:"63.014999",style:"fill:#333"}},{$:{id:"key-10",x:"184.51248",y:"744.89612",ry:"3.5107117",width:"63.014999",height:"63.014999",style:"fill:#333"}},{$:{id:"key-11",x:"250.85349",y:"744.89612",ry:"3.5107117",width:"63.014999",height:"63.014999",style:"fill:#333"}},{$:{id:"key-12",x:"317.19449",y:"744.89612",ry:"3.5107117",width:"63.014999",height:"63.014999",style:"fill:#333"}},{$:{id:"key-13",x:"383.53549",y:"744.89612",ry:"3.5107117",width:"63.014999",height:"63.014999",style:"fill:#333"}},{$:{id:"key-14",x:"449.87747",y:"744.89612",ry:"3.5107117",width:"63.014999",height:"63.014999",style:"fill:#333"}},{$:{id:"key-15",x:"-14.511499",y:"744.89612",ry:"3.5107117",width:"63.014999",height:"63.014999",style:"fill:#333"}},{$:{id:"key-16",x:"67.828499",y:"811.41315",ry:"3.5107117",width:"63.014999",height:"63.014999",style:"fill:#333"}},{$:{id:"key-17",x:"133.81949",y:"811.41315",ry:"3.5107117",width:"63.014999",height:"63.014999",style:"fill:#333"}},{$:{id:"key-18",x:"199.81052",y:"811.41315",ry:"3.5107117",width:"63.014999",height:"63.014999",style:"fill:#333"}},{$:{id:"key-19",x:"265.80252",y:"811.41315",ry:"3.5107117",width:"63.014999",height:"63.014999",style:"fill:#333"}},{$:{id:"key-20",x:"331.79349",y:"811.41315",ry:"3.5107117",width:"63.014999",height:"63.014999",style:"fill:#333"}},{$:{id:"key-21",x:"397.78452",y:"811.41412",ry:"3.5107117",width:"115.108",height:"63.014999",style:"fill:#333"}},{$:{id:"key-22",x:"1.8374995",y:"811.41315",ry:"3.5107117",width:"63.014999",height:"63.014999",style:"fill:#333"}},{$:{id:"key-23",x:"34.921108",y:"877.92914",ry:"3.5107117",width:"63.014999",height:"63.014999",style:"fill:#333"}},{$:{id:"key-24",x:"101.15734",y:"877.92914",ry:"3.5107117",width:"63.014999",height:"63.014999",style:"fill:#333"}},{$:{id:"key-25",x:"167.39355",y:"877.92914",ry:"3.5107117",width:"63.014999",height:"63.014999",style:"fill:#333"}},{$:{id:"key-26",x:"233.62976",y:"877.92914",ry:"3.5107117",width:"63.014999",height:"63.014999",style:"fill:#333"}},{$:{id:"key-27",x:"299.86551",y:"877.92914",ry:"3.5107117",width:"63.014999",height:"63.014999",style:"fill:#333"}},{$:{id:"key-28",x:"366.20651",y:"877.93018",ry:"3.5107117",width:"146.686",height:"63.014999",style:"fill:#333"}},{$:{id:"key-30",x:"1.2074946",y:"944.44714",ry:"3.5107117",width:"115.108",height:"63.014999",style:"fill:#333"}},{$:{id:"key-31",x:"1.2074946",y:"1011.1872",ry:"3.6962967",width:"115.108",height:"41.174999",style:"fill:#333"}},{$:{id:"key-32",x:"118.76652",y:"944.44714",ry:"3.5107117",width:"80.029999",height:"63.014999",style:"fill:#333"}},{$:{id:"key-33",x:"201.24649",y:"944.44714",ry:"3.5107117",width:"80.029999",height:"63.014999",style:"fill:#333"}},{$:{id:"key-34",x:"283.72647",y:"944.44714",ry:"3.5107117",width:"80.029999",height:"63.014999",style:"fill:#333"}},{$:{id:"key-35",x:"366.20651",y:"944.44714",ry:"3.5107117",width:"146.686",height:"63.014999",style:"fill:#333"}}],path:[{$:{d:"M 516.38706,680.32407 C 516.38706,677.38911 514.00888,675.01093 511.07392,675.01093 L 19.888327,675.01093 C 18.909867,675.01093 18.116667,674.21746 18.116667,673.23866 L 18.116667,651.55868 18.116667,651.55194 C 18.116667,650.57349 18.909867,649.78029 19.888327,649.78029 L 125.68888,649.78029 C 127.81809,649.73639 128.89871,648.55406 129.17114,646.84101 132.26186,628.99452 135.45421,611.20795 138.49949,593.93731 139.53551,589.17354 143.88942,585.96932 148.65533,586.72553 281.11656,609.26905 403.66743,628.75963 532.4454,649.98632 536.92364,650.86249 539.55062,654.40739 539.84604,658.70669 L 539.84604,1043.5236 C 539.65045,1048.4273 535.86191,1052.3324 531.008,1052.3616 L 120.53833,1052.3616 C 119.55987,1052.3616 118.76667,1051.5684 118.76667,1050.5899 L 118.76667,1050.5832 118.76667,1012.9583 C 118.76667,1011.9795 119.55987,1011.1861 120.53833,1011.1861 L 511.07392,1011.1861 C 514.00888,1011.1861 516.38706,1008.8079 516.38706,1005.8729 Z",style:"fill:#333"}}]}}},"2ePl":function(e,t,n){"use strict";n.d(t,"a",function(){return r});var r=function(e){return e&&"number"==typeof e.length&&"function"!=typeof e}},"5F+I":function(e){e.exports=JSON.parse('{"isDefault":false,"abbreviation":"VIM","name":"VIM","description":"Phasellus egestas ac tellus id tincidunt. Ut non nisl turpis. Morbi molestie diam elit, et cursus nibh tempus vel. Vestibulum mattis arcu nec nisi dictum, quis facilisis augue rutrum. Fusce vel tristique metus. Nullam pretium elit et enim maximus ornare. Praesent ultrices ligula ut mi convallis, quis ultrices enim venenatis. Aenean interdum odio aliquam quam vestibulum, vel bibendum elit ornare. Morbi leo enim, ullamcorper a bibendum sit amet, ultrices vitae ligula. Etiam consectetur et massa a convallis. Nullam non nisi aliquet, suscipit nulla a, tempor odio. Praesent eu turpis euismod, pellentesque mauris ut, imperdiet felis. Pellentesque vehicula luctus purus, et mattis ante volutpat eu. Quisque venenatis porta odio.","layers":[{"modules":[{"id":0,"pointerRole":"move","keyActions":[{"keyActionType":"mouse","mouseAction":"scrollDown"},null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null]},{"id":1,"pointerRole":"scroll","keyActions":[null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null]},{"id":2,"pointerRole":"move","keyActions":[{"keyActionType":"keystroke","scancode":111,"type":"basic"}]}]},{"modules":[{"id":0,"pointerRole":"move","keyActions":[null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null]},{"id":1,"pointerRole":"move","keyActions":[null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null]}]},{"modules":[{"id":0,"pointerRole":"move","keyActions":[null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null]},{"id":1,"pointerRole":"move","keyActions":[null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null]}]},{"modules":[{"id":0,"pointerRole":"move","keyActions":[null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null]},{"id":1,"pointerRole":"move","keyActions":[null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null]}]}]}')},"60iU":function(e,t,n){"use strict";n.d(t,"a",function(){return l});var r=n("G5J1"),i=n("F/XL"),o=n("XlPw"),l=function(){function e(e,t,n){this.kind=e,this.value=t,this.error=n,this.hasValue="N"===e}return e.prototype.observe=function(e){switch(this.kind){case"N":return e.next&&e.next(this.value);case"E":return e.error&&e.error(this.error);case"C":return e.complete&&e.complete()}},e.prototype.do=function(e,t,n){switch(this.kind){case"N":return e&&e(this.value);case"E":return t&&t(this.error);case"C":return n&&n()}},e.prototype.accept=function(e,t,n){return e&&"function"==typeof e.next?this.observe(e):this.do(e,t,n)},e.prototype.toObservable=function(){switch(this.kind){case"N":return Object(i.a)(this.value);case"E":return Object(o.a)(this.error);case"C":return Object(r.b)()}throw new Error("unexpected notification kind value")},e.createNext=function(t){return void 0!==t?new e("N",t):e.undefinedValueNotification},e.createError=function(t){return new e("E",void 0,t)},e.createComplete=function(){return e.completeNotification},e.completeNotification=new e("C"),e.undefinedValueNotification=new e("N",void 0),e}()},"67Y/":function(e,t,n){"use strict";n.d(t,"a",function(){return o});var r=n("mrSG"),i=n("FFOo");function o(e,t){return function(n){if("function"!=typeof e)throw new TypeError("argument is not a function. Are you looking for `mapTo()`?");return n.lift(new l(e,t))}}var l=function(){function e(e,t){this.project=e,this.thisArg=t}return e.prototype.call=function(e,t){return t.subscribe(new u(e,this.project,this.thisArg))},e}(),u=function(e){function t(t,n,r){var i=e.call(this,t)||this;return i.project=n,i.count=0,i.thisArg=r||i,i}return r.c(t,e),t.prototype._next=function(e){var t;try{t=this.project.call(this.thisArg,e,this.count++)}catch(n){return void this.destination.error(n)}this.destination.next(t)},t}(i.a)},"6ahw":function(e,t,n){"use strict";n.d(t,"a",function(){return o});var r=n("iLxQ"),i=n("DKTb"),o={closed:!0,next:function(e){},error:function(e){if(r.a.useDeprecatedSynchronousErrorHandling)throw e;Object(i.a)(e)},complete:function(){}}},"6blF":function(e,t,n){"use strict";var r=n("FFOo"),i=n("L/V9"),o=n("6ahw"),l=n("xTla"),u=n("y3By"),a=n("iLxQ");n.d(t,"a",function(){return s});var s=function(){function e(e){this._isScalar=!1,e&&(this._subscribe=e)}return e.prototype.lift=function(t){var n=new e;return n.source=this,n.operator=t,n},e.prototype.subscribe=function(e,t,n){var l=this.operator,u=function(e,t,n){if(e){if(e instanceof r.a)return e;if(e[i.a])return e[i.a]()}return e||t||n?new r.a(e,t,n):new r.a(o.a)}(e,t,n);if(u.add(l?l.call(u,this.source):this.source||a.a.useDeprecatedSynchronousErrorHandling&&!u.syncErrorThrowable?this._subscribe(u):this._trySubscribe(u)),a.a.useDeprecatedSynchronousErrorHandling&&u.syncErrorThrowable&&(u.syncErrorThrowable=!1,u.syncErrorThrown))throw u.syncErrorValue;return u},e.prototype._trySubscribe=function(e){try{return this._subscribe(e)}catch(t){a.a.useDeprecatedSynchronousErrorHandling&&(e.syncErrorThrown=!0,e.syncErrorValue=t),function(e){for(;e;){var t=e.destination;if(e.closed||e.isStopped)return!1;e=t&&t instanceof r.a?t:null}return!0}(e)?e.error(t):console.warn(t)}},e.prototype.forEach=function(e,t){var n=this;return new(t=c(t))(function(t,r){var i;i=n.subscribe(function(t){try{e(t)}catch(n){r(n),i&&i.unsubscribe()}},r,t)})},e.prototype._subscribe=function(e){var t=this.source;return t&&t.subscribe(e)},e.prototype[l.a]=function(){return this},e.prototype.pipe=function(){for(var e=[],t=0;t0&&(s(e,t),setTimeout(function(){c(e,t)},n))}function l(e){return Math.max(Math.min(e,100),0)}function u(e){return Array.isArray(e)?e:[e]}function a(e){var t=(e=String(e)).split(".");return t.length>1?t[1].length:0}function s(e,t){e.classList?e.classList.add(t):e.className+=" "+t}function c(e,t){e.classList?e.classList.remove(t):e.className=e.className.replace(new RegExp("(^|\\b)"+t.split(" ").join("|")+"(\\b|$)","gi")," ")}function p(e){var t=void 0!==window.pageXOffset,n="CSS1Compat"===(e.compatMode||"");return{x:t?window.pageXOffset:n?e.documentElement.scrollLeft:e.body.scrollLeft,y:t?window.pageYOffset:n?e.documentElement.scrollTop:e.body.scrollTop}}function f(e,t){return 100/(t-e)}function d(e,t){return 100*t/(e[1]-e[0])}function h(e,t){for(var n=1;e>=t[n];)n+=1;return n}function y(t,n,r){var o;if("number"==typeof n&&(n=[n]),!Array.isArray(n))throw new Error("noUiSlider ("+e+"): 'range' contains invalid value.");if(!i(o="min"===t?0:"max"===t?100:parseFloat(t))||!i(n[0]))throw new Error("noUiSlider ("+e+"): 'range' value isn't numeric.");r.xPct.push(o),r.xVal.push(n[0]),o?r.xSteps.push(!isNaN(n[1])&&n[1]):isNaN(n[1])||(r.xSteps[0]=n[1]),r.xHighestCompleteStep.push(0)}function b(e,t,n){if(t)if(n.xVal[e]!==n.xVal[e+1]){n.xSteps[e]=d([n.xVal[e],n.xVal[e+1]],t)/f(n.xPct[e],n.xPct[e+1]);var r=Math.ceil(Number(((n.xVal[e+1]-n.xVal[e])/n.xNumSteps[e]).toFixed(3))-1);n.xHighestCompleteStep[e]=n.xVal[e]+n.xNumSteps[e]*r}else n.xSteps[e]=n.xHighestCompleteStep[e]=n.xVal[e]}function m(e,t,n){var r;this.xPct=[],this.xVal=[],this.xSteps=[n||!1],this.xNumSteps=[!1],this.xHighestCompleteStep=[],this.snap=t;var i=[];for(r in e)e.hasOwnProperty(r)&&i.push([e[r],r]);for(i.sort(i.length&&"object"==typeof i[0][0]?function(e,t){return e[0][0]-t[0][0]}:function(e,t){return e[0]-t[0]}),r=0;r=e.slice(-1)[0])return 100;var r=h(n,e),i=t[r-1],o=t[r];return i+function(e,t){return d(e,e[0]<0?t+Math.abs(e[0]):t-e[0])}([e[r-1],e[r]],n)/f(i,o)}(this.xVal,this.xPct,e)},m.prototype.fromStepping=function(e){return function(e,t,n){if(n>=100)return e.slice(-1)[0];var r=h(n,t),i=t[r-1];return function(e,t){return t*(e[1]-e[0])/100+e[0]}([e[r-1],e[r]],(n-i)*f(i,t[r]))}(this.xVal,this.xPct,e)},m.prototype.getStep=function(e){return function(e,t,n,r){if(100===r)return r;var i=h(r,e),o=e[i-1],l=e[i];return n?r-o>(l-o)/2?l:o:t[i-1]?e[i-1]+function(e,t){return Math.round(e/t)*t}(r-e[i-1],t[i-1]):r}(this.xPct,this.xSteps,this.snap,e)},m.prototype.getDefaultStep=function(e,t,n){var r=h(e,this.xPct);return(100===e||t&&e===this.xPct[r-1])&&(r=Math.max(r-1,1)),(this.xVal[r]-this.xVal[r-1])/n},m.prototype.getNearbySteps=function(e){var t=h(e,this.xPct);return{stepBefore:{startValue:this.xVal[t-2],step:this.xNumSteps[t-2],highestStep:this.xHighestCompleteStep[t-2]},thisStep:{startValue:this.xVal[t-1],step:this.xNumSteps[t-1],highestStep:this.xHighestCompleteStep[t-1]},stepAfter:{startValue:this.xVal[t],step:this.xNumSteps[t],highestStep:this.xHighestCompleteStep[t]}}},m.prototype.countStepDecimals=function(){var e=this.xNumSteps.map(a);return Math.max.apply(null,e)},m.prototype.convert=function(e){return this.getStep(this.toStepping(e))};var g={to:function(e){return void 0!==e&&e.toFixed(2)},from:Number};function v(t){if(function(e){return"object"==typeof e&&"function"==typeof e.to&&"function"==typeof e.from}(t))return!0;throw new Error("noUiSlider ("+e+"): 'format' requires 'to' and 'from' methods.")}function k(t,n){if(!i(n))throw new Error("noUiSlider ("+e+"): 'step' is not numeric.");t.singleStep=n}function _(t,n){if("object"!=typeof n||Array.isArray(n))throw new Error("noUiSlider ("+e+"): 'range' is not an object.");if(void 0===n.min||void 0===n.max)throw new Error("noUiSlider ("+e+"): Missing 'min' or 'max' in 'range'.");if(n.min===n.max)throw new Error("noUiSlider ("+e+"): 'range' 'min' and 'max' cannot be equal.");t.spectrum=new m(n,t.snap,t.singleStep)}function w(t,n){if(n=u(n),!Array.isArray(n)||!n.length)throw new Error("noUiSlider ("+e+"): 'start' option is incorrect.");t.handles=n.length,t.start=n}function O(t,n){if(t.snap=n,"boolean"!=typeof n)throw new Error("noUiSlider ("+e+"): 'snap' option must be a boolean.")}function A(t,n){if(t.animate=n,"boolean"!=typeof n)throw new Error("noUiSlider ("+e+"): 'animate' option must be a boolean.")}function C(t,n){if(t.animationDuration=n,"number"!=typeof n)throw new Error("noUiSlider ("+e+"): 'animationDuration' option must be a number.")}function T(t,n){var r,i=[!1];if("lower"===n?n=[!0,!1]:"upper"===n&&(n=[!1,!0]),!0===n||!1===n){for(r=1;r100)throw new Error("noUiSlider ("+e+"): 'padding' option must not exceed 100% of the range.")}}function P(t,n){switch(n){case"ltr":t.dir=0;break;case"rtl":t.dir=1;break;default:throw new Error("noUiSlider ("+e+"): 'direction' option was not recognized.")}}function I(t,n){if("string"!=typeof n)throw new Error("noUiSlider ("+e+"): 'behaviour' must be a string containing options.");var r=n.indexOf("tap")>=0,i=n.indexOf("drag")>=0,o=n.indexOf("fixed")>=0,l=n.indexOf("snap")>=0,u=n.indexOf("hover")>=0,a=n.indexOf("unconstrained")>=0;if(o){if(2!==t.handles)throw new Error("noUiSlider ("+e+"): 'fixed' behaviour must be used with 2 handles");S(t,t.start[1]-t.start[0])}if(a&&(t.margin||t.limit))throw new Error("noUiSlider ("+e+"): 'unconstrained' behaviour cannot be used with margin or limit");t.events={tap:r||l,drag:i,fixed:o,snap:l,hover:u,unconstrained:a}}function j(t,n){if(!1!==n)if(!0===n){t.tooltips=[];for(var r=0;r= 2) required for mode 'count'.");var i=n-1,o=100/i;for(n=[];i--;)n[i]=i*o;n.push(100),t="positions"}return"positions"===t?n.map(function(e){return O.fromStepping(r?O.getStep(e):e)}):"values"===t?r?n.map(function(e){return O.fromStepping(O.getStep(O.toStepping(e)))}):n:void 0}(n,t.values||!1,t.stepped||!1),u=function(e,t,n){var r,i={},o=O.xVal[0],l=O.xVal[O.xVal.length-1],u=!1,a=!1,s=0;return r=n.slice().sort(function(e,t){return e-t}),(n=r.filter(function(e){return!this[e]&&(this[e]=!0)},{}))[0]!==o&&(n.unshift(o),u=!0),n[n.length-1]!==l&&(n.push(l),a=!0),n.forEach(function(r,o){var l,c,p,f,d,h,y,b,m,g=r,v=n[o+1],k="steps"===t;if(k&&(l=O.xNumSteps[o]),l||(l=v-g),!1!==g&&void 0!==v)for(l=Math.max(l,1e-7),c=g;c<=v;c=(c+l).toFixed(7)/1){for(m=(d=(f=O.toStepping(c))-s)/(b=Math.round(d/e)),p=1;p<=b;p+=1)i[(h=s+p*m).toFixed(5)]=[O.fromStepping(h),0];y=n.indexOf(c)>-1?R:k?L:j,!o&&u&&(y=0),c===v&&a||(i[f.toFixed(5)]=[c,y]),s=f}}),i}(r,n,l),a=t.format||{to:Math.round};return y=w.appendChild(function(e,t,n){var r=M.createElement("div"),o=[];o[j]=i.cssClasses.valueNormal,o[R]=i.cssClasses.valueLarge,o[L]=i.cssClasses.valueSub;var l=[];l[j]=i.cssClasses.markerNormal,l[R]=i.cssClasses.markerLarge,l[L]=i.cssClasses.markerSub;var u=[i.cssClasses.valueHorizontal,i.cssClasses.valueVertical],a=[i.cssClasses.markerHorizontal,i.cssClasses.markerVertical];function c(e,t){var n=t===i.cssClasses.value;return t+" "+(n?u:a)[i.ort]+" "+(n?o:l)[e]}return s(r,i.cssClasses.pips),s(r,0===i.ort?i.cssClasses.pipsHorizontal:i.cssClasses.pipsVertical),Object.keys(e).forEach(function(o){!function(e,o,l){if((l=t?t(o,l):l)!==I){var u=D(r,!1);u.className=c(l,i.cssClasses.marker),u.style[i.style]=e+"%",l>j&&((u=D(r,!1)).className=c(l,i.cssClasses.value),u.setAttribute("data-value",o),u.style[i.style]=e+"%",u.innerHTML=n.to(o))}}(o,e[o][0],e[o][1])}),r}(u,o,a))}function W(){var e=f.getBoundingClientRect(),t="offset"+["Width","Height"][i.ort];return 0===i.ort?e.width||f[t]:e.height||f[t]}function q(e,t,n,r){var o=function(o){return!!(o=function(e,t,n){var r,i,o=0===e.type.indexOf("touch"),l=0===e.type.indexOf("mouse"),u=0===e.type.indexOf("pointer");if(0===e.type.indexOf("MSPointer")&&(u=!0),o){var a=function(e){return e.target===n||n.contains(e.target)};if("touchstart"===e.type){var s=Array.prototype.filter.call(e.touches,a);if(s.length>1)return!1;r=s[0].pageX,i=s[0].pageY}else{var c=Array.prototype.find.call(e.changedTouches,a);if(!c)return!1;r=c.pageX,i=c.pageY}}return t=t||p(M),(l||u)&&(r=e.clientX+t.x,i=e.clientY+t.y),e.pageOffset=t,e.points=[r,i],e.cursor=l||u,e}(o,r.pageOffset,r.target||t))&&!(V()&&!r.doNotReject)&&(u=i.cssClasses.tap,!(((l=w).classList?l.classList.contains(u):new RegExp("\\b"+u+"\\b").test(l.className))&&!r.doNotReject)&&!(e===k.start&&void 0!==o.buttons&&o.buttons>1)&&(!r.hover||!o.buttons)&&(_||o.preventDefault(),o.calcPoint=o.points[i.ort],void n(o,r)));var l,u},l=[];return e.split(" ").forEach(function(e){t.addEventListener(e,o,!!_&&{passive:!0}),l.push([e,o])}),l}function J(e){var t,n,r,o,u,a,s=100*(e-(n=i.ort,r=(t=f).getBoundingClientRect(),u=(o=t.ownerDocument).documentElement,a=p(o),/webkit.*Chrome.*Mobile/i.test(navigator.userAgent)&&(a.x=0),n?r.top+a.y-u.clientTop:r.left+a.x-u.clientLeft))/W();return s=l(s),i.dir?100-s:s}function Y(e,t){"mouseout"===e.type&&"HTML"===e.target.nodeName&&null===e.relatedTarget&&X(e,t)}function Z(e,t){if(-1===navigator.appVersion.indexOf("MSIE 9")&&0===e.buttons&&0!==t.buttonsProperty)return X(e,t);var n=(i.dir?-1:1)*(e.calcPoint-t.startCalcPoint);le(n>0,100*n/t.baseSize,t.locations,t.handleNumbers)}function X(e,t){t.handle&&(c(t.handle,i.cssClasses.active),x-=1),t.listeners.forEach(function(e){E.removeEventListener(e[0],e[1])}),0===x&&(c(w,i.cssClasses.drag),ae(),e.cursor&&(P.style.cursor="",P.removeEventListener("selectstart",r))),t.handleNumbers.forEach(function(e){re("change",e),re("set",e),re("end",e)})}function ee(e,t){if(t.handleNumbers.some(G))return!1;var n;1===t.handleNumbers.length&&(x+=1,s(n=d[t.handleNumbers[0]].children[0],i.cssClasses.active)),e.stopPropagation();var o=[],l=q(k.move,E,Z,{target:e.target,handle:n,listeners:o,startCalcPoint:e.calcPoint,baseSize:W(),pageOffset:e.pageOffset,handleNumbers:t.handleNumbers,buttonsProperty:e.buttons,locations:C.slice()}),u=q(k.end,E,X,{target:e.target,handle:n,listeners:o,doNotReject:!0,handleNumbers:t.handleNumbers}),a=q("mouseout",E,Y,{target:e.target,handle:n,listeners:o,doNotReject:!0,handleNumbers:t.handleNumbers});o.push.apply(o,l.concat(u,a)),e.cursor&&(P.style.cursor=getComputedStyle(e.target).cursor,d.length>1&&s(w,i.cssClasses.drag),P.addEventListener("selectstart",r,!1)),t.handleNumbers.forEach(function(e){re("start",e)})}function te(e,t){S[e]=S[e]||[],S[e].push(t),"update"===e.split(".")[0]&&d.forEach(function(e,t){re("update",t)})}function ne(e){var t=e&&e.split(".")[0],n=t&&e.substring(t.length);Object.keys(S).forEach(function(e){var r=e.split(".")[0],i=e.substring(r.length);t&&t!==r||n&&n!==i||delete S[e]})}function re(e,t,n){Object.keys(S).forEach(function(r){var o=r.split(".")[0];e===o&&S[r].forEach(function(e){e.call(m,A.map(i.format.to),t,A.slice(),n||!1,C.slice())})})}function ie(e,t,n,r,o,u){return d.length>1&&!i.events.unconstrained&&(r&&t>0&&(n=Math.max(n,e[t-1]+i.margin)),o&&t1&&i.limit&&(r&&t>0&&(n=Math.min(n,e[t-1]+i.limit)),o&&t1?r.forEach(function(e,n){var r=ie(i,e,i[e]+t,o[n],l[n],!1);!1===r?t=0:(t=r-i[e],i[e]=r)}):o=l=[!0];var u=!1;r.forEach(function(e,r){u=se(e,n[e]+t,o[r],l[r])||u}),u&&r.forEach(function(e){re("update",e),re("slide",e)})}function ue(e,t){return i.dir?100-e-t:e}function ae(){T.forEach(function(e){d[e].style.zIndex=3+(d.length+(C[e]>50?-1:1)*e)})}function se(e,t,n,r){return!1!==(t=ie(C,e,t,n,r,!1))&&(function(e,t){C[e]=t,A[e]=O.fromStepping(t);var n="translate("+oe(10*(ue(t,0)-N)+"%","0")+")";d[e].style[i.transformRule]=n,ce(e),ce(e+1)}(e,t),!0)}function ce(e){if(h[e]){var t=0,n=100;0!==e&&(t=C[e-1]),e!==h.length-1&&(n=C[e]);var r=n-t,o="translate("+oe(ue(t,r)+"%","0")+")",l="scale("+oe(r/100,"1")+")";h[e].style[i.transformRule]=o+" "+l}}function pe(e,t){return null===e||!1===e||void 0===e?C[t]:("number"==typeof e&&(e=String(e)),e=i.format.from(e),!1===(e=O.toStepping(e))||isNaN(e)?C[t]:e)}function fe(e,t){var n=u(e);t=void 0===t||!!t,i.animate&&!(void 0===C[0])&&o(w,i.cssClasses.tap,i.animationDuration),T.forEach(function(e){se(e,pe(n[e],e),!0,!1)}),T.forEach(function(e){se(e,C[e],!0,!0)}),ae(),T.forEach(function(e){re("update",e),null!==n[e]&&t&&re("set",e)})}function de(){var e=A.map(i.format.to);return 1===e.length?e[0]:e}function he(e){var t=C[e],n=O.getNearbySteps(t),r=A[e],o=n.thisStep.step,l=null;if(i.snap)return[r-n.stepBefore.startValue||null,n.stepAfter.startValue-r||null];!1!==o&&r+o>n.stepAfter.startValue&&(o=n.stepAfter.startValue-r),l=r>n.thisStep.startValue?n.thisStep.step:!1!==n.stepBefore.step&&r-n.stepBefore.highestStep,100===t?o=null:0===t&&(l=null);var u=O.countStepDecimals();return null!==o&&!1!==o&&(o=Number(o.toFixed(u))),null!==l&&!1!==l&&(l=Number(l.toFixed(u))),[l,o]}return s(g=w,i.cssClasses.target),s(g,0===i.dir?i.cssClasses.ltr:i.cssClasses.rtl),s(g,0===i.ort?i.cssClasses.horizontal:i.cssClasses.vertical),f=D(g,i.cssClasses.base),function(e,t){var n=D(t,i.cssClasses.connects);d=[],(h=[]).push(F(n,e[0]));for(var r=0;ro||100===l&&100===t)&&(n=i,t=l)}}),n}(t);if(!1===n)return!1;i.events.snap||o(w,i.cssClasses.tap,i.animationDuration),se(n,t,!0,!0),ae(),re("slide",n,!0),re("update",n,!0),re("change",n,!0),re("set",n,!0),i.events.snap&&ee(e,{handleNumbers:[n]})},{}),v.hover&&q(k.move,f,function(e){var t=J(e.calcPoint),n=O.getStep(t),r=O.fromStepping(n);Object.keys(S).forEach(function(e){"hover"===e.split(".")[0]&&S[e].forEach(function(e){e.call(m,r)})})},{hover:!0}),v.drag&&h.forEach(function(e,t){if(!1!==e&&0!==t&&t!==h.length-1){var n=d[t-1],r=d[t],o=[e];s(e,i.cssClasses.draggable),v.fixed&&(o.push(n.children[0]),o.push(r.children[0])),o.forEach(function(e){q(k.start,e,ee,{handles:[n,r],handleNumbers:[t-1,t]})})}}),fe(i.start),i.pips&&Q(i.pips),i.tooltips&&$(),te("update",function(e,t,n,r,o){T.forEach(function(e){var t=d[e],r=ie(C,e,0,!0,!0,!0),l=ie(C,e,100,!0,!0,!0),u=o[e],a=i.ariaFormat.to(n[e]);r=O.fromStepping(r).toFixed(1),l=O.fromStepping(l).toFixed(1),u=O.fromStepping(u).toFixed(1),t.children[0].setAttribute("aria-valuemin",r),t.children[0].setAttribute("aria-valuemax",l),t.children[0].setAttribute("aria-valuenow",u),t.children[0].setAttribute("aria-valuetext",a)})}),m={destroy:function(){for(var e in i.cssClasses)i.cssClasses.hasOwnProperty(e)&&c(w,i.cssClasses[e]);for(;w.firstChild;)w.removeChild(w.firstChild);delete w.noUiSlider},steps:function(){return T.map(he)},on:te,off:ne,get:de,set:fe,setHandle:function(t,n,r){if(!((t=Number(t))>=0&&t"}getName(){return"NoneAction"}}},"8T9/":function(e,t){e.exports=function(e,t){return Array.prototype.slice.call(e,t)}},"8g8A":function(e,t,n){"use strict";function r(){return Error.call(this),this.message="object unsubscribed",this.name="ObjectUnsubscribedError",this}n.d(t,"a",function(){return i}),r.prototype=Object.create(Error.prototype);var i=r},"90N0":function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n("2QPq"),i=n("Mfn/"),o=n("SACm"),l=n("s9zn"),u=n("myTe"),a=n("p2JS"),s=n("i/vr"),c=n("TEuf"),p=n("UEaM"),f=n("DFZA");class d{constructor(){this.moduleConfigurations=[],this.keymaps=[],this.macros=[],this.setDefaultDeviceName()}fromJsonObject(e){return this.userConfigMajorVersion=e.userConfigMajorVersion,this.userConfigMinorVersion=e.userConfigMinorVersion,this.userConfigPatchVersion=e.userConfigPatchVersion,this.deviceName=e.deviceName,this.setDefaultDeviceName(),this.doubleTapSwitchLayerTimeout=e.doubleTapSwitchLayerTimeout,this.iconsAndLayerTextsBrightness=e.iconsAndLayerTextsBrightness,this.alphanumericSegmentsBrightness=e.alphanumericSegmentsBrightness,this.keyBacklightBrightness=e.keyBacklightBrightness,this.mouseMoveInitialSpeed=e.mouseMoveInitialSpeed,this.mouseMoveAcceleration=e.mouseMoveAcceleration,this.mouseMoveDeceleratedSpeed=e.mouseMoveDeceleratedSpeed,this.mouseMoveBaseSpeed=e.mouseMoveBaseSpeed,this.mouseMoveAcceleratedSpeed=e.mouseMoveAcceleratedSpeed,this.mouseScrollInitialSpeed=e.mouseScrollInitialSpeed,this.mouseScrollAcceleration=e.mouseScrollAcceleration,this.mouseScrollDeceleratedSpeed=e.mouseScrollDeceleratedSpeed,this.mouseScrollBaseSpeed=e.mouseScrollBaseSpeed,this.mouseScrollAcceleratedSpeed=e.mouseScrollAcceleratedSpeed,this.moduleConfigurations=e.moduleConfigurations.map(e=>(new a.ModuleConfiguration).fromJsonObject(e)),this.macros=e.macros.map((e,t)=>{const n=(new u.Macro).fromJsonObject(e);return n.id=t,n}),this.keymaps=e.keymaps.map(e=>(new l.Keymap).fromJsonObject(e,this.macros)),this.clean(),this.recalculateConfigurationLength(),this}fromBinary(e){return this.userConfigMajorVersion=e.readUInt16(),this.userConfigMinorVersion=e.readUInt16(),this.userConfigPatchVersion=e.readUInt16(),this.userConfigurationLength=e.readUInt16(),this.deviceName=e.readString(),this.setDefaultDeviceName(),this.doubleTapSwitchLayerTimeout=e.readUInt16(),this.iconsAndLayerTextsBrightness=e.readUInt8(),this.alphanumericSegmentsBrightness=e.readUInt8(),this.keyBacklightBrightness=e.readUInt8(),this.mouseMoveInitialSpeed=e.readUInt8(),this.mouseMoveAcceleration=e.readUInt8(),this.mouseMoveDeceleratedSpeed=e.readUInt8(),this.mouseMoveBaseSpeed=e.readUInt8(),this.mouseMoveAcceleratedSpeed=e.readUInt8(),this.mouseScrollInitialSpeed=e.readUInt8(),this.mouseScrollAcceleration=e.readUInt8(),this.mouseScrollDeceleratedSpeed=e.readUInt8(),this.mouseScrollBaseSpeed=e.readUInt8(),this.mouseScrollAcceleratedSpeed=e.readUInt8(),this.moduleConfigurations=e.readArray(e=>(new a.ModuleConfiguration).fromBinary(e)),this.macros=e.readArray((e,t)=>{const n=(new u.Macro).fromBinary(e);return n.id=t,n}),this.keymaps=e.readArray(e=>(new l.Keymap).fromBinary(e,this.macros)),s.ConfigSerializer.resolveSwitchKeymapActions(this.keymaps),this.clean(),0===this.userConfigurationLength&&this.recalculateConfigurationLength(),this}toJsonObject(){return{userConfigMajorVersion:this.userConfigMajorVersion,userConfigMinorVersion:this.userConfigMinorVersion,userConfigPatchVersion:this.userConfigPatchVersion,deviceName:this.deviceName,doubleTapSwitchLayerTimeout:this.doubleTapSwitchLayerTimeout,iconsAndLayerTextsBrightness:this.iconsAndLayerTextsBrightness,alphanumericSegmentsBrightness:this.alphanumericSegmentsBrightness,keyBacklightBrightness:this.keyBacklightBrightness,mouseMoveInitialSpeed:this.mouseMoveInitialSpeed,mouseMoveAcceleration:this.mouseMoveAcceleration,mouseMoveDeceleratedSpeed:this.mouseMoveDeceleratedSpeed,mouseMoveBaseSpeed:this.mouseMoveBaseSpeed,mouseMoveAcceleratedSpeed:this.mouseMoveAcceleratedSpeed,mouseScrollInitialSpeed:this.mouseScrollInitialSpeed,mouseScrollAcceleration:this.mouseScrollAcceleration,mouseScrollDeceleratedSpeed:this.mouseScrollDeceleratedSpeed,mouseScrollBaseSpeed:this.mouseScrollBaseSpeed,mouseScrollAcceleratedSpeed:this.mouseScrollAcceleratedSpeed,moduleConfigurations:this.moduleConfigurations.map(e=>e.toJsonObject()),keymaps:this.keymaps.map(e=>e.toJsonObject(this.macros)),macros:this.macros.map(e=>e.toJsonObject())}}toBinary(e){e.writeUInt16(this.userConfigMajorVersion),e.writeUInt16(this.userConfigMinorVersion),e.writeUInt16(this.userConfigPatchVersion),e.writeUInt16(this.userConfigurationLength),e.writeString(this.deviceName),e.writeUInt16(this.doubleTapSwitchLayerTimeout),e.writeUInt8(this.iconsAndLayerTextsBrightness),e.writeUInt8(this.alphanumericSegmentsBrightness),e.writeUInt8(this.keyBacklightBrightness),e.writeUInt8(this.mouseMoveInitialSpeed),e.writeUInt8(this.mouseMoveAcceleration),e.writeUInt8(this.mouseMoveDeceleratedSpeed),e.writeUInt8(this.mouseMoveBaseSpeed),e.writeUInt8(this.mouseMoveAcceleratedSpeed),e.writeUInt8(this.mouseScrollInitialSpeed),e.writeUInt8(this.mouseScrollAcceleration),e.writeUInt8(this.mouseScrollDeceleratedSpeed),e.writeUInt8(this.mouseScrollBaseSpeed),e.writeUInt8(this.mouseScrollAcceleratedSpeed),e.writeArray(this.moduleConfigurations),e.writeArray(this.macros),e.writeArray(this.keymaps,(e,t)=>{t.toBinary(e,this)})}toString(){return``}getKeymap(e){return this.keymaps.find(t=>e===t.abbreviation)}getMacro(e){return this.macros.find(t=>e===t.id)}recalculateConfigurationLength(){const e=new o.UhkBuffer;this.toBinary(e),this.userConfigurationLength=e.offset}setDefaultDeviceName(){this.deviceName&&0!==this.deviceName.trim().length||(this.deviceName="My UHK")}clean(){for(const e of this.keymaps)for(let t=1;t=12.0.0 <13.0.0","npm":">=6.9.0 <7.0.0"},"devDependencies":{"@types/decompress":"4.2.3","@types/electron-devtools-installer":"2.0.2","@types/electron-settings":"3.0.0","@types/file-saver":"0.0.1","@types/fs-extra":"8.0.0","@types/jasmine":"3.3.12","@types/jasminewd2":"2.0.3","@types/jquery":"3.3.29","@types/jsonfile":"4.0.1","@types/lodash":"4.14.136","@types/node":"8.0.53","@types/node-hid":"0.7.0","@types/request":"2.0.8","@types/semver":"5.5.0","@types/tmp":"0.0.33","autoprefixer":"6.5.3","buffer":"5.0.6","check-node-version":"^3.2.0","copy-webpack-plugin":"5.0.0","copyfiles":"2.1.1","core-js":"2.4.1","cross-env":"5.0.5","decompress":"4.2.0","decompress-tarbz2":"4.1.1","devtron":"1.4.0","electron":"5.0.9","electron-builder":"20.34.0","electron-debug":"1.5.0","electron-devtools-installer":"2.2.3","electron-log":"2.2.16","electron-rebuild":"1.8.6","electron-settings":"3.1.4","electron-updater":"2.21.4","exports-loader":"0.6.3","file-loader":"0.10.0","fs-extra":"8.1.0","gh-pages":"2.0.1","html-webpack-plugin":"3.2.0","jasmine":"3.4.0","jasmine-core":"3.4.0","jasmine-node":"3.0.0","jasmine-ts":"0.3.0","jsonfile":"4.0.0","lerna":"3.16.4","lodash":"4.17.15","node-hid":"0.7.9","npm-run-all":"4.0.2","nrf-intel-hex":"1.3.0","postcss-url":"8.0.0","pre-commit":"1.2.2","request":"2.88.0","rimraf":"2.6.1","source-map-support":"0.5.9","stylelint":"10.0.0","svg-sprite":"1.5.0","ts-loader":"5.3.3","ts-node":"8.3.0","tslint":"5.18.0","typescript":"3.5.3","webpack":"4.29.5","webpack-cli":"3.2.3"},"pre-commit":["precommit-msg"],"scripts":{"postinstall":"lerna bootstrap","precommit-msg":"Git precommit hook is running... & exit 0","test":"lerna run test","lint":"lerna run lint","e2e":"lerna run e2e --scope uhk-web","prebuild":"check-node-version --package","build":"lerna run build","server:web":"lerna exec --scope uhk-web npm start","server:electron":"lerna exec --scope uhk-web npm run server:renderer","electron":"lerna exec --scope uhk-agent npm start","electron:spe":"lerna exec --scope uhk-agent npm run electron:spe","pack":"node ./scripts/release.js","sprites":"node ./scripts/generate-svg-sprites","release":"node ./scripts/release.js","clean":"lerna exec rimraf ./node_modules ./dist && rimraf ./node_modules ./dist ./tmp","predeploy-gh-pages":"lerna run build:web --scope=uhk-web","deploy-gh-pages":"gh-pages -d packages/uhk-web/dist","convert-user-config-to-bin":"node -r ts-node/register ./packages/usb/user-config-json-to-bin.ts"}}')},"9Z1F":function(e,t,n){"use strict";n.d(t,"a",function(){return u});var r=n("mrSG"),i=n("MGBS"),o=n("rPjj"),l=n("zotm");function u(e){return function(t){var n=new a(e),r=t.lift(n);return n.caught=r}}var a=function(){function e(e){this.selector=e}return e.prototype.call=function(e,t){return t.subscribe(new s(e,this.selector,this.caught))},e}(),s=function(e){function t(t,n,r){var i=e.call(this,t)||this;return i.selector=n,i.caught=r,i}return r.c(t,e),t.prototype.error=function(t){if(!this.isStopped){var n=void 0;try{n=this.selector(t,this.caught)}catch(i){return void e.prototype.error.call(this,i)}this._unsubscribeAndRecycle();var r=new o.a(this,void 0,void 0);this.add(r),Object(l.a)(this,n,void 0,void 0,r)}},t}(i.a)},"9ixT":function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n("2QPq"),i=n("Mfn/"),o=n("RGrK");var l;!function(e){e[e.leftClick=0]="leftClick",e[e.middleClick=1]="middleClick",e[e.rightClick=2]="rightClick",e[e.moveUp=3]="moveUp",e[e.moveDown=4]="moveDown",e[e.moveLeft=5]="moveLeft",e[e.moveRight=6]="moveRight",e[e.scrollUp=7]="scrollUp",e[e.scrollDown=8]="scrollDown",e[e.scrollLeft=9]="scrollLeft",e[e.scrollRight=10]="scrollRight",e[e.accelerate=11]="accelerate",e[e.decelerate=12]="decelerate",e[e.button4=13]="button4",e[e.button5=14]="button5",e[e.button6=15]="button6",e[e.button7=16]="button7",e[e.button8=17]="button8"}(l=t.MouseActionParam||(t.MouseActionParam={}));class u extends o.KeyAction{constructor(e){super(),e&&(this.mouseAction=e.mouseAction)}fromJsonObject(e){return this.assertKeyActionType(e),this.mouseAction=l[e.mouseAction],this}fromBinary(e){return this.readAndAssertKeyActionId(e),this.mouseAction=e.readUInt8(),this}toJsonObject(){return{keyActionType:o.keyActionType.MouseAction,mouseAction:l[this.mouseAction]}}toBinary(e){e.writeUInt8(o.KeyActionId.MouseAction),e.writeUInt8(this.mouseAction)}toString(){return``}getName(){return"MouseAction"}}r.__decorate([i.assertEnum(l),r.__metadata("design:type",Number)],u.prototype,"mouseAction",void 0),t.MouseAction=u},"9j6c":function(e){e.exports=JSON.parse('[{"id":"-1","text":"None"},{"text":"Layer switcher","children":[{"id":"8","text":"Mod"},{"id":"9","text":"Fn"},{"id":"10","text":"Mouse"}]},{"text":"Modifier","children":[{"id":"0","text":"LShift"},{"id":"1","text":"LCtrl"},{"id":"2","text":"LSuper"},{"id":"3","text":"LAlt"},{"id":"4","text":"RShift"},{"id":"5","text":"RCtrl"},{"id":"6","text":"RSuper"},{"id":"7","text":"RAlt"}]}]')},A5yv:function(module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.d(__webpack_exports__,"h",function(){return INITIAL_OPTIONS}),__webpack_require__.d(__webpack_exports__,"g",function(){return STORE_DEVTOOLS_CONFIG}),__webpack_require__.d(__webpack_exports__,"i",function(){return createConfig}),__webpack_require__.d(__webpack_exports__,"l",function(){return DevtoolsDispatcher}),__webpack_require__.d(__webpack_exports__,"k",function(){return DevtoolsExtension}),__webpack_require__.d(__webpack_exports__,"j",function(){return REDUX_DEVTOOLS_EXTENSION}),__webpack_require__.d(__webpack_exports__,"c",function(){return IS_EXTENSION_OR_MONITOR_PRESENT}),__webpack_require__.d(__webpack_exports__,"d",function(){return createIsExtensionOrMonitorPresent}),__webpack_require__.d(__webpack_exports__,"e",function(){return createReduxDevtoolsExtension}),__webpack_require__.d(__webpack_exports__,"f",function(){return createStateObservable}),__webpack_require__.d(__webpack_exports__,"b",function(){return StoreDevtoolsModule}),__webpack_require__.d(__webpack_exports__,"a",function(){return StoreDevtools});var tslib__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("mrSG"),_angular_core__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__("CcnG"),_ngrx_store__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__("yGQT"),rxjs__WEBPACK_IMPORTED_MODULE_3__=__webpack_require__("G5J1"),rxjs__WEBPACK_IMPORTED_MODULE_4__=__webpack_require__("6blF"),rxjs__WEBPACK_IMPORTED_MODULE_5__=__webpack_require__("F/XL"),rxjs__WEBPACK_IMPORTED_MODULE_6__=__webpack_require__("p0ib"),rxjs__WEBPACK_IMPORTED_MODULE_7__=__webpack_require__("zo3G"),rxjs__WEBPACK_IMPORTED_MODULE_8__=__webpack_require__("S5bw"),rxjs_operators__WEBPACK_IMPORTED_MODULE_9__=__webpack_require__("S1nX"),rxjs_operators__WEBPACK_IMPORTED_MODULE_10__=__webpack_require__("VnD/"),rxjs_operators__WEBPACK_IMPORTED_MODULE_11__=__webpack_require__("67Y/"),rxjs_operators__WEBPACK_IMPORTED_MODULE_12__=__webpack_require__("Phjn"),rxjs_operators__WEBPACK_IMPORTED_MODULE_13__=__webpack_require__("0zd0"),rxjs_operators__WEBPACK_IMPORTED_MODULE_14__=__webpack_require__("Gi3i"),rxjs_operators__WEBPACK_IMPORTED_MODULE_15__=__webpack_require__("9Z1F"),rxjs_operators__WEBPACK_IMPORTED_MODULE_16__=__webpack_require__("t9fZ"),rxjs_operators__WEBPACK_IMPORTED_MODULE_17__=__webpack_require__("ny24"),rxjs_operators__WEBPACK_IMPORTED_MODULE_18__=__webpack_require__("15JJ"),rxjs_operators__WEBPACK_IMPORTED_MODULE_19__=__webpack_require__("0mNj"),rxjs_operators__WEBPACK_IMPORTED_MODULE_20__=__webpack_require__("mZXl"),rxjs_operators__WEBPACK_IMPORTED_MODULE_21__=__webpack_require__("/PH2"),rxjs_operators__WEBPACK_IMPORTED_MODULE_22__=__webpack_require__("dC0D"),StoreDevtoolsConfig=function(){return function(){}}(),STORE_DEVTOOLS_CONFIG=new _angular_core__WEBPACK_IMPORTED_MODULE_1__.q("@ngrx/devtools Options"),INITIAL_OPTIONS=new _angular_core__WEBPACK_IMPORTED_MODULE_1__.q("@ngrx/devtools Initial Config");function noMonitor(){return null}var DEFAULT_NAME="NgRx Store DevTools";function createConfig(e){var t={maxAge:!1,monitor:noMonitor,actionSanitizer:void 0,stateSanitizer:void 0,name:DEFAULT_NAME,serialize:!1,logOnly:!1,features:{pause:!0,lock:!0,persist:!0,export:!0,import:"custom",jump:!0,skip:!0,reorder:!0,dispatch:!0,test:!0}},n="function"==typeof e?e():e,r=Object.assign({},t,{features:n.features||!!n.logOnly&&{pause:!0,export:!0,test:!0}||t.features},n);if(r.maxAge&&r.maxAge<2)throw new Error("Devtools 'maxAge' cannot be less than 2, got "+r.maxAge);return r}var PERFORM_ACTION="PERFORM_ACTION",REFRESH="REFRESH",RESET="RESET",ROLLBACK="ROLLBACK",COMMIT="COMMIT",SWEEP="SWEEP",TOGGLE_ACTION="TOGGLE_ACTION",SET_ACTIONS_ACTIVE="SET_ACTIONS_ACTIVE",JUMP_TO_STATE="JUMP_TO_STATE",JUMP_TO_ACTION="JUMP_TO_ACTION",IMPORT_STATE="IMPORT_STATE",LOCK_CHANGES="LOCK_CHANGES",PAUSE_RECORDING="PAUSE_RECORDING",PerformAction=function(){return function(e,t){if(this.action=e,this.timestamp=t,this.type=PERFORM_ACTION,void 0===e.type)throw new Error('Actions may not have an undefined "type" property. Have you misspelled a constant?')}}(),Refresh=function(){return function(){this.type=REFRESH}}(),Reset=function(){return function(e){this.timestamp=e,this.type=RESET}}(),Rollback=function(){return function(e){this.timestamp=e,this.type=ROLLBACK}}(),Commit=function(){return function(e){this.timestamp=e,this.type=COMMIT}}(),Sweep=function(){return function(){this.type=SWEEP}}(),ToggleAction=function(){return function(e){this.id=e,this.type=TOGGLE_ACTION}}(),JumpToState=function(){return function(e){this.index=e,this.type=JUMP_TO_STATE}}(),JumpToAction=function(){return function(e){this.actionId=e,this.type=JUMP_TO_ACTION}}(),ImportState=function(){return function(e){this.nextLiftedState=e,this.type=IMPORT_STATE}}(),LockChanges=function(){return function(e){this.status=e,this.type=LOCK_CHANGES}}(),PauseRecording=function(){return function(e){this.status=e,this.type=PAUSE_RECORDING}}();function difference(e,t){return e.filter(function(e){return t.indexOf(e)<0})}function unliftState(e){var t=e.computedStates,n=e.currentStateIndex;return n>=t.length?t[t.length-1].state:t[n].state}function liftAction(e){return new PerformAction(e,+Date.now())}function sanitizeActions(e,t){return Object.keys(t).reduce(function(n,r){var i=Number(r);return n[i]=sanitizeAction(e,t[i],i),n},{})}function sanitizeAction(e,t,n){return Object(tslib__WEBPACK_IMPORTED_MODULE_0__.a)({},t,{action:e(t.action,n)})}function sanitizeStates(e,t){return t.map(function(t,n){return{state:sanitizeState(e,t.state,n),error:t.error}})}function sanitizeState(e,t,n){return e(t,n)}function shouldFilterActions(e){return e.predicate||e.actionsSafelist||e.actionsBlocklist}function filterLiftedState(e,t,n,r){var i=[],o={},l=[];return e.stagedActionIds.forEach(function(u,a){var s=e.actionsById[u];s&&(a&&isActionFiltered(e.computedStates[a],s,t,n,r)||(o[u]=s,i.push(u),l.push(e.computedStates[a])))}),Object(tslib__WEBPACK_IMPORTED_MODULE_0__.a)({},e,{stagedActionIds:i,actionsById:o,computedStates:l})}function isActionFiltered(e,t,n,r,i){var o=n&&!n(e,t.action),l=r&&!t.action.type.match(r.join("|")),u=i&&t.action.type.match(i.join("|"));return o||l||u}var DevtoolsDispatcher=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Object(tslib__WEBPACK_IMPORTED_MODULE_0__.c)(t,e),t}(_ngrx_store__WEBPACK_IMPORTED_MODULE_2__.a),ExtensionActionTypes={START:"START",DISPATCH:"DISPATCH",STOP:"STOP",ACTION:"ACTION"},REDUX_DEVTOOLS_EXTENSION=new _angular_core__WEBPACK_IMPORTED_MODULE_1__.q("Redux Devtools Extension"),DevtoolsExtension=function(){function DevtoolsExtension(e,t,n){this.config=t,this.dispatcher=n,this.devtoolsExtension=e,this.createActionStreams()}return DevtoolsExtension.prototype.notify=function(e,t){var n=this;if(this.devtoolsExtension)if(e.type===PERFORM_ACTION){if(t.isLocked||t.isPaused)return;var r=unliftState(t);if(shouldFilterActions(this.config)&&isActionFiltered(r,e,this.config.predicate,this.config.actionsSafelist,this.config.actionsBlocklist))return;var i=this.config.stateSanitizer?sanitizeState(this.config.stateSanitizer,r,t.currentStateIndex):r,o=this.config.actionSanitizer?sanitizeAction(this.config.actionSanitizer,e,t.nextActionId):e;this.sendToReduxDevtools(function(){return n.extensionConnection.send(o,i)})}else{var l=Object(tslib__WEBPACK_IMPORTED_MODULE_0__.a)({},t,{stagedActionIds:t.stagedActionIds,actionsById:this.config.actionSanitizer?sanitizeActions(this.config.actionSanitizer,t.actionsById):t.actionsById,computedStates:this.config.stateSanitizer?sanitizeStates(this.config.stateSanitizer,t.computedStates):t.computedStates});this.sendToReduxDevtools(function(){return n.devtoolsExtension.send(null,l,n.getExtensionConfig(n.config))})}},DevtoolsExtension.prototype.createChangesObservable=function(){var e=this;return this.devtoolsExtension?new rxjs__WEBPACK_IMPORTED_MODULE_4__.a(function(t){var n=e.devtoolsExtension.connect(e.getExtensionConfig(e.config));return e.extensionConnection=n,n.init(),n.subscribe(function(e){return t.next(e)}),n.unsubscribe}):Object(rxjs__WEBPACK_IMPORTED_MODULE_3__.b)()},DevtoolsExtension.prototype.createActionStreams=function(){var e=this,t=this.createChangesObservable().pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_9__.a)()),n=t.pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_10__.a)(function(e){return e.type===ExtensionActionTypes.START})),r=t.pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_10__.a)(function(e){return e.type===ExtensionActionTypes.STOP})),i=t.pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_10__.a)(function(e){return e.type===ExtensionActionTypes.DISPATCH}),Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_11__.a)(function(t){return e.unwrapAction(t.payload)}),Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_12__.a)(function(t){return t.type===IMPORT_STATE?e.dispatcher.pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_10__.a)(function(e){return e.type===_ngrx_store__WEBPACK_IMPORTED_MODULE_2__.p}),Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_13__.a)(1e3),Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_14__.a)(1e3),Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_11__.a)(function(){return t}),Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_15__.a)(function(){return Object(rxjs__WEBPACK_IMPORTED_MODULE_5__.a)(t)}),Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_16__.a)(1)):Object(rxjs__WEBPACK_IMPORTED_MODULE_5__.a)(t)})),o=t.pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_10__.a)(function(e){return e.type===ExtensionActionTypes.ACTION}),Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_11__.a)(function(t){return e.unwrapAction(t.payload)})).pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_17__.a)(r)),l=i.pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_17__.a)(r));this.start$=n.pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_17__.a)(r)),this.actions$=this.start$.pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_18__.a)(function(){return o})),this.liftedActions$=this.start$.pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_18__.a)(function(){return l}))},DevtoolsExtension.prototype.unwrapAction=function(action){return"string"==typeof action?eval("("+action+")"):action},DevtoolsExtension.prototype.getExtensionConfig=function(e){var t={name:e.name,features:e.features,serialize:e.serialize};return!1!==e.maxAge&&(t.maxAge=e.maxAge),t},DevtoolsExtension.prototype.sendToReduxDevtools=function(e){try{e()}catch(t){console.warn("@ngrx/store-devtools: something went wrong inside the redux devtools",t)}},DevtoolsExtension}(),INIT_ACTION={type:_ngrx_store__WEBPACK_IMPORTED_MODULE_2__.b},RECOMPUTE="@ngrx/store-devtools/recompute",RECOMPUTE_ACTION={type:RECOMPUTE};function computeNextEntry(e,t,n,r,i){if(r)return{state:n,error:"Interrupted by an error up the chain"};var o,l=n;try{l=e(n,t)}catch(u){o=u.toString(),i.handleError(u.stack||u)}return{state:l,error:o}}function recomputeStates(e,t,n,r,i,o,l,u,a){if(t>=e.length&&e.length===o.length)return e;for(var s=e.slice(0,t),c=o.length-(a?1:0),p=t;p-1?h:computeNextEntry(n,d,y,b,u);s.push(m)}return a&&s.push(e[e.length-1]),s}function liftInitialState(e,t){return{monitorState:t(void 0,{}),nextActionId:1,actionsById:{0:liftAction(INIT_ACTION)},stagedActionIds:[0],skippedActionIds:[],committedState:e,currentStateIndex:0,computedStates:[],isLocked:!1,isPaused:!1}}function liftReducerWith(e,t,n,r,i){return void 0===i&&(i={}),function(o){return function(l,u){var a,s=l||t,c=s.monitorState,p=s.actionsById,f=s.nextActionId,d=s.stagedActionIds,h=s.skippedActionIds,y=s.committedState,b=s.currentStateIndex,m=s.computedStates,g=s.isLocked,v=s.isPaused;function k(e){for(var t=e,n=d.slice(1,t+1),r=0;rt?b-t:0}function _(){p={0:liftAction(INIT_ACTION)},f=1,d=[0],h=[],y=m[b].state,b=0,m=[]}l||(p=Object.create(p));var w=0;switch(u.type){case LOCK_CHANGES:g=u.status,w=1/0;break;case PAUSE_RECORDING:(v=u.status)?(d=Object(tslib__WEBPACK_IMPORTED_MODULE_0__.g)(d,[f]),p[f]=new PerformAction({type:"@ngrx/devtools/pause"},+Date.now()),f++,w=d.length-1,m=m.concat(m[m.length-1]),b===d.length-2&&b++,w=1/0):_();break;case RESET:p={0:liftAction(INIT_ACTION)},f=1,d=[0],h=[],y=e,b=0,m=[];break;case COMMIT:_();break;case ROLLBACK:p={0:liftAction(INIT_ACTION)},f=1,d=[0],h=[],b=0,m=[];break;case TOGGLE_ACTION:var O=u.id,A=h.indexOf(O);h=-1===A?Object(tslib__WEBPACK_IMPORTED_MODULE_0__.g)([O],h):h.filter(function(e){return e!==O}),w=d.indexOf(O);break;case SET_ACTIONS_ACTIVE:for(var C=u.start,T=u.end,x=u.active,S=[],M=C;Mi.maxAge&&(m=recomputeStates(m,w,o,y,p,d,h,n,v),k(d.length-i.maxAge),w=1/0);break;case _ngrx_store__WEBPACK_IMPORTED_MODULE_2__.p:m.filter(function(e){return e.error}).length>0?(w=0,i.maxAge&&d.length>i.maxAge&&(m=recomputeStates(m,w,o,y,p,d,h,n,v),k(d.length-i.maxAge),w=1/0)):(v||g||(b===d.length-1&&b++,P=f++,p[P]=new PerformAction(u,+Date.now()),d=Object(tslib__WEBPACK_IMPORTED_MODULE_0__.g)(d,[P]),m=recomputeStates(m,w=d.length-1,o,y,p,d,h,n,v)),m=m.map(function(e){return Object(tslib__WEBPACK_IMPORTED_MODULE_0__.a)({},e,{state:o(e.state,RECOMPUTE_ACTION)})}),b=d.length-1,i.maxAge&&d.length>i.maxAge&&k(d.length-i.maxAge),w=1/0);break;default:w=1/0}return m=recomputeStates(m,w,o,y,p,d,h,n,v),{monitorState:c=r(c,u),actionsById:p,nextActionId:f,stagedActionIds:d,skippedActionIds:h,committedState:y,currentStateIndex:b,computedStates:m,isLocked:g,isPaused:v}}}}var StoreDevtools=function(){function e(e,t,n,r,i,o,l,u){var a=this,s=liftInitialState(l,u.monitor),c=liftReducerWith(l,s,o,u.monitor,u),p=Object(rxjs__WEBPACK_IMPORTED_MODULE_6__.a)(Object(rxjs__WEBPACK_IMPORTED_MODULE_6__.a)(t.asObservable().pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_19__.a)(1)),r.actions$).pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_11__.a)(liftAction)),e,r.liftedActions$).pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_20__.b)(rxjs__WEBPACK_IMPORTED_MODULE_7__.a)),f=n.pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_11__.a)(c)),d=new rxjs__WEBPACK_IMPORTED_MODULE_8__.a(1),h=p.pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_21__.a)(f),Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_22__.a)(function(e,t){var n=e.state,i=Object(tslib__WEBPACK_IMPORTED_MODULE_0__.f)(t,2),o=i[0],l=(0,i[1])(n,o);return o.type!==PERFORM_ACTION&&shouldFilterActions(u)&&(l=filterLiftedState(l,u.predicate,u.actionsSafelist,u.actionsBlocklist)),r.notify(o,l),{state:l,action:o}},{state:s,action:null})).subscribe(function(e){var t=e.action;d.next(e.state),t.type===PERFORM_ACTION&&i.next(t.action)}),y=r.start$.subscribe(function(){a.refresh()}),b=d.asObservable(),m=b.pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_11__.a)(unliftState));this.extensionStartSubscription=y,this.stateSubscription=h,this.dispatcher=e,this.liftedState=b,this.state=m}return e.prototype.dispatch=function(e){this.dispatcher.next(e)},e.prototype.next=function(e){this.dispatcher.next(e)},e.prototype.error=function(e){},e.prototype.complete=function(){},e.prototype.performAction=function(e){this.dispatch(new PerformAction(e,+Date.now()))},e.prototype.refresh=function(){this.dispatch(new Refresh)},e.prototype.reset=function(){this.dispatch(new Reset(+Date.now()))},e.prototype.rollback=function(){this.dispatch(new Rollback(+Date.now()))},e.prototype.commit=function(){this.dispatch(new Commit(+Date.now()))},e.prototype.sweep=function(){this.dispatch(new Sweep)},e.prototype.toggleAction=function(e){this.dispatch(new ToggleAction(e))},e.prototype.jumpToAction=function(e){this.dispatch(new JumpToAction(e))},e.prototype.jumpToState=function(e){this.dispatch(new JumpToState(e))},e.prototype.importState=function(e){this.dispatch(new ImportState(e))},e.prototype.lockChanges=function(e){this.dispatch(new LockChanges(e))},e.prototype.pauseRecording=function(e){this.dispatch(new PauseRecording(e))},e}(),IS_EXTENSION_OR_MONITOR_PRESENT=new _angular_core__WEBPACK_IMPORTED_MODULE_1__.q("Is Devtools Extension or Monitor Present");function createIsExtensionOrMonitorPresent(e,t){return Boolean(e)||t.monitor!==noMonitor}function createReduxDevtoolsExtension(){return"object"==typeof window&&void 0!==window.__REDUX_DEVTOOLS_EXTENSION__?window.__REDUX_DEVTOOLS_EXTENSION__:null}function createStateObservable(e){return e.state}var StoreDevtoolsModule=function(){function e(){}var t;return t=e,e.instrument=function(e){return void 0===e&&(e={}),{ngModule:t,providers:[DevtoolsExtension,DevtoolsDispatcher,StoreDevtools,{provide:INITIAL_OPTIONS,useValue:e},{provide:IS_EXTENSION_OR_MONITOR_PRESENT,deps:[REDUX_DEVTOOLS_EXTENSION,STORE_DEVTOOLS_CONFIG],useFactory:createIsExtensionOrMonitorPresent},{provide:REDUX_DEVTOOLS_EXTENSION,useFactory:createReduxDevtoolsExtension},{provide:STORE_DEVTOOLS_CONFIG,deps:[INITIAL_OPTIONS],useFactory:createConfig},{provide:_ngrx_store__WEBPACK_IMPORTED_MODULE_2__.l,deps:[StoreDevtools],useFactory:createStateObservable},{provide:_ngrx_store__WEBPACK_IMPORTED_MODULE_2__.h,useExisting:DevtoolsDispatcher}]}},e}()},APMd:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n("qaQF");class i{constructor(e){e&&(this.modules=e.modules.map(e=>new r.Module(e)))}fromJsonObject(e,t){return this.modules=e.modules.map(e=>(new r.Module).fromJsonObject(e,t)),this}fromBinary(e,t){return this.modules=e.readArray(e=>(new r.Module).fromBinary(e,t)),this}toJsonObject(e){return{modules:this.modules.map(t=>t.toJsonObject(e))}}toBinary(e,t){e.writeArray(this.modules,(e,n)=>{n.toBinary(e,t)})}toString(){return""}renameKeymap(e,t){let n,r=!1;if(this.modules.forEach((i,o)=>{const l=i.renameKeymap(e,t);l!==i&&(r||(n=this.modules.slice(),r=!0),n[o]=l)}),r){const e=Object.assign(new i,this);return e.modules=n,e}return this}}t.Layer=i},B9Yq:function(e,t){e.exports=function(){throw new Error("define cannot be used indirect")}},CMKj:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n("SACm"),i=n("rBfm"),o=n("h1Ia"),l=n("+bod"),u=n("Vib2"),a=n("kIap"),s=n("dk4d"),c=n("G8Wf");class p{static createMacroAction(e){return e instanceof i.MacroAction?p.fromMacroAction(e):e instanceof r.UhkBuffer?p.fromUhkBuffer(e):p.fromJSONObject(e)}static fromUhkBuffer(e){const t=e.readUInt8();if(e.backtrack(),t>=i.MacroActionId.KeyMacroAction&&t<=i.MacroActionId.LastKeyMacroAction)return(new o.KeyMacroAction).fromBinary(e);if(t>=i.MacroActionId.MouseButtonMacroAction&&t<=i.MacroActionId.LastMouseButtonMacroAction)return(new l.MouseButtonMacroAction).fromBinary(e);switch(t){case i.MacroActionId.MoveMouseMacroAction:return(new u.MoveMouseMacroAction).fromBinary(e);case i.MacroActionId.ScrollMouseMacroAction:return(new a.ScrollMouseMacroAction).fromBinary(e);case i.MacroActionId.DelayMacroAction:return(new s.DelayMacroAction).fromBinary(e);case i.MacroActionId.TextMacroAction:return(new c.TextMacroAction).fromBinary(e);default:throw`Invalid MacroAction first byte: ${t}`}}static fromMacroAction(e){let t;return e instanceof o.KeyMacroAction?t=new o.KeyMacroAction(e):e instanceof l.MouseButtonMacroAction?t=new l.MouseButtonMacroAction(e):e instanceof u.MoveMouseMacroAction?t=new u.MoveMouseMacroAction(e):e instanceof a.ScrollMouseMacroAction?t=new a.ScrollMouseMacroAction(e):e instanceof s.DelayMacroAction?t=new s.DelayMacroAction(e):e instanceof c.TextMacroAction&&(t=new c.TextMacroAction(e)),t}static fromJSONObject(e){switch(e.macroActionType){case i.macroActionType.KeyMacroAction:return(new o.KeyMacroAction).fromJsonObject(e);case i.macroActionType.MouseButtonMacroAction:return(new l.MouseButtonMacroAction).fromJsonObject(e);case i.macroActionType.MoveMouseMacroAction:return(new u.MoveMouseMacroAction).fromJsonObject(e);case i.macroActionType.ScrollMouseMacroAction:return(new a.ScrollMouseMacroAction).fromJsonObject(e);case i.macroActionType.DelayMacroAction:return(new s.DelayMacroAction).fromJsonObject(e);case i.macroActionType.TextMacroAction:return(new c.TextMacroAction).fromJsonObject(e);default:throw`Invalid MacroAction.macroActionType: "${e.macroActionType}"`}}}t.Helper=p},CS9Q:function(e,t,n){"use strict";var r=n("mrSG"),i=function(){function e(t,n){void 0===n&&(n=e.now),this.SchedulerAction=t,this.now=n}return e.prototype.schedule=function(e,t,n){return void 0===t&&(t=0),new this.SchedulerAction(this,e).schedule(n,t)},e.now=function(){return Date.now()},e}();n.d(t,"a",function(){return o});var o=function(e){function t(n,r){void 0===r&&(r=i.now);var o=e.call(this,n,function(){return t.delegate&&t.delegate!==o?t.delegate.now():r()})||this;return o.actions=[],o.active=!1,o.scheduled=void 0,o}return r.c(t,e),t.prototype.schedule=function(n,r,i){return void 0===r&&(r=0),t.delegate&&t.delegate!==this?t.delegate.schedule(n,r,i):e.prototype.schedule.call(this,n,r,i)},t.prototype.flush=function(e){var t=this.actions;if(this.active)t.push(e);else{var n;this.active=!0;do{if(n=e.execute(e.state,e.delay))break}while(e=t.shift());if(this.active=!1,n){for(;e=t.shift();)e.unsubscribe();throw n}}},t}(i)},CcnG:function(e,t,n){"use strict";n.d(t,"mb",function(){return zl}),n.d(t,"nb",function(){return Ql}),n.d(t,"ob",function(){return Wl}),n.d(t,"pb",function(){return ql}),n.d(t,"lb",function(){return Vo}),n.d(t,"kb",function(){return Ao}),n.d(t,"g",function(){return El}),n.d(t,"S",function(){return Tl}),n.d(t,"z",function(){return Cl}),n.d(t,"U",function(){return mt}),n.d(t,"Y",function(){return bt}),n.d(t,"c",function(){return Bo}),n.d(t,"D",function(){return Ho}),n.d(t,"C",function(){return $o}),n.d(t,"b",function(){return zo}),n.d(t,"d",function(){return Fo}),n.d(t,"e",function(){return Ko}),n.d(t,"W",function(){return Gl}),n.d(t,"N",function(){return vl}),n.d(t,"ab",function(){return _l}),n.d(t,"v",function(){return Wo}),n.d(t,"f",function(){return Jl}),n.d(t,"m",function(){return jo}),n.d(t,"l",function(){return dt}),n.d(t,"H",function(){return Bt}),n.d(t,"I",function(){return Kt}),n.d(t,"a",function(){return Tn}),n.d(t,"n",function(){return Do}),n.d(t,"o",function(){return Uo}),n.d(t,"s",function(){return No}),n.d(t,"Q",function(){return Z}),n.d(t,"O",function(){return pr}),n.d(t,"Ub",function(){return k}),n.d(t,"T",function(){return _}),n.d(t,"V",function(){return T}),n.d(t,"r",function(){return gn}),n.d(t,"Vb",function(){return G}),n.d(t,"X",function(){return H}),n.d(t,"q",function(){return R}),n.d(t,"p",function(){return h}),n.d(t,"B",function(){return y}),n.d(t,"J",function(){return m}),n.d(t,"A",function(){return fl}),n.d(t,"E",function(){return sr}),n.d(t,"F",function(){return ur}),n.d(t,"G",function(){return ar}),n.d(t,"i",function(){return rl}),n.d(t,"j",function(){return er}),n.d(t,"k",function(){return ir}),n.d(t,"w",function(){return W}),n.d(t,"y",function(){return Q}),n.d(t,"x",function(){return Il}),n.d(t,"K",function(){return Ll}),n.d(t,"L",function(){return jl}),n.d(t,"M",function(){return Sr}),n.d(t,"P",function(){return Er}),n.d(t,"h",function(){return hn}),n.d(t,"t",function(){return Or}),n.d(t,"u",function(){return Ar}),n.d(t,"R",function(){return In}),n.d(t,"Z",function(){return $l}),n.d(t,"zb",function(){return jn}),n.d(t,"db",function(){return Qo}),n.d(t,"bb",function(){return bn}),n.d(t,"cb",function(){return tr}),n.d(t,"gb",function(){return Ut}),n.d(t,"hb",function(){return Ht}),n.d(t,"ib",function(){return _t}),n.d(t,"xb",function(){return j}),n.d(t,"Cb",function(){return En}),n.d(t,"Nb",function(){return A}),n.d(t,"Ab",function(){return Qn}),n.d(t,"Bb",function(){return zn}),n.d(t,"wb",function(){return Mo}),n.d(t,"vb",function(){return Eo}),n.d(t,"eb",function(){return Co}),n.d(t,"fb",function(){return To}),n.d(t,"Tb",function(){return ae}),n.d(t,"Rb",function(){return xn}),n.d(t,"Xb",function(){return Ln}),n.d(t,"Wb",function(){return Nn}),n.d(t,"Sb",function(){return Dn}),n.d(t,"Yb",function(){return Kn}),n.d(t,"jb",function(){return Yl}),n.d(t,"qb",function(){return Ni}),n.d(t,"rb",function(){return Oa}),n.d(t,"sb",function(){return qr}),n.d(t,"tb",function(){return lo}),n.d(t,"ub",function(){return Zl}),n.d(t,"yb",function(){return wi}),n.d(t,"Db",function(){return Mi}),n.d(t,"Eb",function(){return Si}),n.d(t,"Fb",function(){return au}),n.d(t,"Gb",function(){return Qi}),n.d(t,"Ib",function(){return uo}),n.d(t,"Lb",function(){return ao}),n.d(t,"Hb",function(){return pu}),n.d(t,"Jb",function(){return fu}),n.d(t,"Kb",function(){return cu}),n.d(t,"Mb",function(){return ru}),n.d(t,"Ob",function(){return hu}),n.d(t,"Pb",function(){return zr}),n.d(t,"Qb",function(){return mu});var r=n("mrSG"),i=n("pugT"),o=n("K9Ia"),l=n("6blF"),u=n("p0ib"),a=n("S1nX"),s="__parameters__",c="__prop__metadata__";function p(e){return function(){for(var t=[],n=0;n ");else if("object"==typeof t){var o=[];for(var l in t)if(t.hasOwnProperty(l)){var u=t[l];o.push(l+":"+("string"==typeof u?JSON.stringify(u):A(u)))}i="{"+o.join(", ")+"}"}return n+(r?"("+r+")":"")+"["+i+"]: "+e.replace(D,"\n ")}var Q=function(){return function(){}}(),W=function(){return function(){}}();function q(e,t,n){t>=e.length?e.push(n):e.splice(t,0,n)}function J(e,t){return t>=e.length-1?e.pop():e.splice(t,1)[0]}var Y=function(e){return e[e.OnPush=0]="OnPush",e[e.Default=1]="Default",e}({}),Z=function(e){return e[e.Emulated=0]="Emulated",e[e.Native=1]="Native",e[e.None=2]="None",e[e.ShadowDom=3]="ShadowDom",e}({}),X={},ee=[],te=v({ngComponentDef:v}),ne=v({ngDirectiveDef:v}),re=v({ngPipeDef:v}),ie=0;function oe(e){return function(e){return e[te]||null}(e)||function(e){return e[ne]||null}(e)}function le(e){return function(e){return e[re]||null}(e)}function ue(e,t){if(null==e)return X;var n={};for(var r in e)if(e.hasOwnProperty(r)){var i=e[r],o=i;Array.isArray(i)&&(o=i[1],i=i[0]),n[i]=r,t&&(t[i]=o)}return n}var ae=function(e){var t=e.type,n=t.prototype,r={},i={type:t,providersResolver:null,consts:e.consts,vars:e.vars,factory:e.factory,template:e.template||null,ngContentSelectors:e.ngContentSelectors,hostBindings:e.hostBindings||null,contentQueries:e.contentQueries||null,declaredInputs:r,inputs:null,outputs:null,exportAs:e.exportAs||null,onChanges:null,onInit:n.ngOnInit||null,doCheck:n.ngDoCheck||null,afterContentInit:n.ngAfterContentInit||null,afterContentChecked:n.ngAfterContentChecked||null,afterViewInit:n.ngAfterViewInit||null,afterViewChecked:n.ngAfterViewChecked||null,onDestroy:n.ngOnDestroy||null,onPush:e.changeDetection===Y.OnPush,directiveDefs:null,pipeDefs:null,selectors:e.selectors,viewQuery:e.viewQuery||null,features:e.features||null,data:e.data||{},encapsulation:e.encapsulation||Z.Emulated,id:"c",styles:e.styles||ee,_:null,setInput:null,schemas:e.schemas||null,tView:null};return i._=""+{toString:function(){var n=e.directives,o=e.features,l=e.pipes;i.id+=ie++,i.inputs=ue(e.inputs,r),i.outputs=ue(e.outputs),o&&o.forEach(function(e){return e(i)}),i.directiveDefs=n?function(){return("function"==typeof n?n():n).map(oe)}:null,i.pipeDefs=l?function(){return("function"==typeof l?l():l).map(le)}:null,t.hasOwnProperty(O)||(t[O]=k({token:t,factory:e.factory}))}},i},se=0,ce=1,pe=7,fe=12,de=19,he=null,ye=new Map,be=null,me=1,ge=0;function ve(e,t){return be&&e===be||(be=e,t&&(he=ye.get(e)||null),he=he||{classesBitMask:ge,classesIndex:me,stylesBitMask:ge,stylesIndex:me}),he}function ke(e,t){return function(e){for(;Array.isArray(e);)e=e[se];return e}(t[e.index])}function _e(e,t){return t[ce].data[e+de]}var we=null;function Oe(){return Ce}var Ae,Ce,Te,xe=1,Se=0,Me=0,Ee=-1;function Pe(){return Ee}function Ie(){return Te}var je=function(){return("undefined"!=typeof requestAnimationFrame&&requestAnimationFrame||setTimeout).bind(j)}(),Re="--MAP--",Le=0;function Ne(e,t){t===Le?e[2]>Le&&function(e){Ue(e,2|De(e))}(e):e[2]=t}function De(e){return e[1]}function Ue(e,t){e[1]=t}function Fe(e,t){return e[t+2]}function Ke(e,t){return 1&e[t+0]}function Be(e,t){return(1&Ke(e,t))>0}function Ve(e,t){return e[t+0]>>1}function Ge(e,t,n){var r=Ke(e,t);e[t+0]=r|n<<1}function He(e,t){return e[t+1]}function $e(e,t,n){return e[t+3+n]}function ze(e,t){return!(!e||t!==e[2])}function Qe(e){return(1&De(e))>0}function We(e){return(2&De(e))>0}function qe(e){return 6+e[4]}function Je(e,t){var n=Array.isArray(e)?e[0]:e,r=Array.isArray(t)?t[0]:t;return n instanceof String&&(n=n.toString()),r instanceof String&&(r=r.toString()),!(n!=n&&r!=r)&&n!==r}function Ye(e){return null!=e&&""!==e}function Ze(e,t,n){return void 0===n&&(n=" "),e+(t.length&&e.length?n:"")+t}function Xe(e){return e.replace(/[a-z][A-Z]/g,function(e){return e.charAt(0)+"-"+e.charAt(1)}).toLowerCase()}function et(e){return tt(e)?e[0]:e}function tt(e){return Array.isArray(e)&&e.length>=6&&"string"!=typeof e[1]}function nt(e,t){return e[t+0]}function rt(e,t,n){e[t+1]=n}function it(e,t){return e[t+1]}var ot=function(e){return e[e.Important=1]="Important",e[e.DashCase=2]="DashCase",e}({});function lt(e){return!!e.listen}var ut="ngDebugContext",at="ngOriginalError",st="ngErrorLogger";function ct(e){return e[ut]}function pt(e){return e[at]}function ft(e){for(var t=[],n=1;n',!this.inertBodyElement.querySelector||this.inertBodyElement.querySelector("svg")?(this.inertBodyElement.innerHTML='

',this.getInertBodyElement=this.inertBodyElement.querySelector&&this.inertBodyElement.querySelector("svg img")&&function(){try{return!!window.DOMParser}catch(e){return!1}}()?this.getInertBodyElement_DOMParser:this.getInertBodyElement_InertDocument):this.getInertBodyElement=this.getInertBodyElement_XHR}return e.prototype.getInertBodyElement_XHR=function(e){e=""+e+"";try{e=encodeURI(e)}catch(r){return null}var t=new XMLHttpRequest;t.responseType="document",t.open("GET","data:text/html;charset=utf-8,"+e,!1),t.send(void 0);var n=t.response.body;return n.removeChild(n.firstChild),n},e.prototype.getInertBodyElement_DOMParser=function(e){e=""+e+"";try{var t=(new window.DOMParser).parseFromString(e,"text/html").body;return t.removeChild(t.firstChild),t}catch(n){return null}},e.prototype.getInertBodyElement_InertDocument=function(e){var t=this.inertDocument.createElement("template");return"content"in t?(t.innerHTML=e,t):(this.inertBodyElement.innerHTML=e,this.defaultDoc.documentMode&&this.stripCustomNsAttrs(this.inertBodyElement),this.inertBodyElement)},e.prototype.stripCustomNsAttrs=function(e){for(var t=e.attributes,n=t.length-1;0"),!0},e.prototype.endElement=function(e){var t=e.nodeName.toLowerCase();Mt.hasOwnProperty(t)&&!Ct.hasOwnProperty(t)&&(this.buf.push(""))},e.prototype.chars=function(e){this.buf.push(Dt(e))},e.prototype.checkClobberedElement=function(e,t){if(t&&(e.compareDocumentPosition(t)&Node.DOCUMENT_POSITION_CONTAINED_BY)===Node.DOCUMENT_POSITION_CONTAINED_BY)throw new Error("Failed to sanitize html because the element is clobbered: "+e.outerHTML);return t},e}(),Lt=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,Nt=/([^\#-~ |!])/g;function Dt(e){return e.replace(/&/g,"&").replace(Lt,function(e){return"&#"+(1024*(e.charCodeAt(0)-55296)+(e.charCodeAt(1)-56320)+65536)+";"}).replace(Nt,function(e){return"&#"+e.charCodeAt(0)+";"}).replace(//g,">")}function Ut(e,t){var n=null;try{At=At||new gt(e);var r=t?String(t):"";n=At.getInertBodyElement(r);var i=5,o=r;do{if(0===i)throw new Error("Failed to sanitize html because the input is unstable");i--,r=o,o=n.innerHTML,n=At.getInertBodyElement(r)}while(r!==o);var l=new Rt,u=l.sanitizeChildren(Ft(n)||n);return bt()&&l.sanitizedSomething&&console.warn("WARNING: sanitizing HTML stripped some content, see http://g.co/ng/security#xss"),u}finally{if(n)for(var a=Ft(n)||n;a.firstChild;)a.removeChild(a.firstChild)}}function Ft(e){return"content"in e&&function(e){return e.nodeType===Node.ELEMENT_NODE&&"TEMPLATE"===e.nodeName}(e)?e.content:null}var Kt=function(e){return e[e.NONE=0]="NONE",e[e.HTML=1]="HTML",e[e.STYLE=2]="STYLE",e[e.SCRIPT=3]="SCRIPT",e[e.URL=4]="URL",e[e.RESOURCE_URL=5]="RESOURCE_URL",e}({}),Bt=function(){return function(){}}(),Vt=new RegExp("^([-,.\"'%_!# a-zA-Z0-9]+|(?:(?:matrix|translate|scale|rotate|skew|perspective)(?:X|Y|Z|3d)?|(?:rgb|hsl)a?|(?:repeating-)?(?:linear|radial)-gradient|(?:calc|attr))\\([-0-9.%, #a-zA-Z]+\\))$","g"),Gt=/^url\(([^)]+)\)$/;function Ht(e){if(!(e=String(e).trim()))return"";var t=e.match(Gt);return t&&_t(t[1])===t[1]||e.match(Vt)&&function(e){for(var t=!0,n=!0,r=0;rge}(r,o))?(function(e,t,n,r,i,o,l){for(var u=!0===i?-1:!1===i?0:i,a=on,s=(u&Ve(e,3))>0?1:0,c=qe(e);c=fn.length&&fn.push(1),fn[e]}(s);ha,m=!b&&y===a,g=it(d,h),v=Ye(g),k=e(t,n,r,i,o,l,b?u:cn(u,v,m),b?a:y,s+1,c);if(b){p||(p=k);break}if(!k&&pn(u,m)){var _=m&&!v,w=_?c:g,O=_?f:null;o(n,r,y,l?l(y,w,3):w,O),k=!0}p=k&&m,h+=2}if(fn[s]=h,1===d.length||!a)return e(t,n,r,i,o,l,u,a,s+1,c)}return p}(e,t,n,r,i,o,l,u||null,0,a||null)),p&&function(){for(var e=0;e0;return n?4&e&&t&&(n=!1):2&e&&(n=t),n}var fn=[];function dn(e,t,n,r){for(var i=1;i=2&&r[i-2]===t.hostBindings?r[i-1]=r[i-1]+n:r.push(t.hostBindings,n)}(n,we,e),function(e,t,n){for(var r=0;r0&&(i=n?Ze(e,((r=t)&&"string"!=typeof r&&(r=Object.keys(r).join(" ")),r||"")):Ze(e,function(e){var t="";if(e)for(var n=Object.keys(e),r=0;r0}function zn(e){return!!e&&"function"==typeof e.then}function Qn(e){return!!e&&"function"==typeof e.subscribe}var Wn=function(){function e(e,t,n){this.previousValue=e,this.currentValue=t,this.firstChange=n}return e.prototype.isFirstChange=function(){return this.firstChange},e}(),qn=function(){return function(){}}(),Jn=function(){return function(){}}();function Yn(e){var t=Error("No component factory found for "+A(e)+". Did you add it to @NgModule.entryComponents?");return t[Zn]=e,t}var Zn="ngComponent",Xn=function(){function e(){}return e.prototype.resolveComponentFactory=function(e){throw Yn(e)},e}(),er=function(){function e(){}return e.NULL=new Xn,e}(),tr=function(){function e(e,t,n){this._parent=t,this._ngModule=n,this._factories=new Map;for(var r=0;r-1}(r)||"root"===i.providedIn&&r._def.isRoot))){var c=e._providers.length;return e._def.providers[c]=e._def.providersByKey[t.tokenKey]={flags:5120,value:u.factory,deps:[],index:c,token:t.token},e._providers[c]=Ai,e._providers[c]=Pi(e,e._def.providersByKey[t.tokenKey])}return 4&t.flags?n:e._parent.get(t.token,n)}finally{V(o)}}function Pi(e,t){var n;switch(201347067&t.flags){case 512:n=function(e,t,n){var i=n.length;switch(i){case 0:return new t;case 1:return new t(Ei(e,n[0]));case 2:return new t(Ei(e,n[0]),Ei(e,n[1]));case 3:return new t(Ei(e,n[0]),Ei(e,n[1]),Ei(e,n[2]));default:for(var o=new Array(i),l=0;l=n.length)&&(t=n.length-1),t<0)return null;var r=n[t];return r.viewContainerParent=null,J(n,t),Vr.dirtyParentQueries(r),Ri(r),r}function ji(e,t,n){var r=t?oi(t,t.def.lastRenderRootNode):e.renderElement,i=n.renderer.parentNode(r),o=n.renderer.nextSibling(r);hi(n,2,i,o,void 0)}function Ri(e){hi(e,3,null,null,void 0)}var Li=new Object;function Ni(e,t,n,r,i,o){return new Di(e,t,n,r,i,o)}var Di=function(e){function t(t,n,r,i,o,l){var u=e.call(this)||this;return u.selector=t,u.componentType=n,u._inputs=i,u._outputs=o,u.ngContentSelectors=l,u.viewDefFactory=r,u}return Object(r.c)(t,e),Object.defineProperty(t.prototype,"inputs",{get:function(){var e=[],t=this._inputs;for(var n in t)e.push({propName:n,templateName:t[n]});return e},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"outputs",{get:function(){var e=[];for(var t in this._outputs)e.push({propName:t,templateName:this._outputs[t]});return e},enumerable:!0,configurable:!0}),t.prototype.create=function(e,t,n,r){if(!r)throw new Error("ngModule should be provided");var i=di(this.viewDefFactory),o=i.nodes[0].element.componentProvider.nodeIndex,l=Vr.createRootView(e,t||[],n,i,r,Li),u=Fr(l,o).instance;return n&&l.renderer.setAttribute(Ur(l,0).renderElement,"ng-version",fr.full),new Ui(l,new Vi(l),u)},t}(Jn),Ui=function(e){function t(t,n,r){var i=e.call(this)||this;return i._view=t,i._viewRef=n,i._component=r,i._elDef=i._view.def.nodes[0],i.hostView=n,i.changeDetectorRef=n,i.instance=r,i}return Object(r.c)(t,e),Object.defineProperty(t.prototype,"location",{get:function(){return new ir(Ur(this._view,this._elDef.nodeIndex).renderElement)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"injector",{get:function(){return new zi(this._view,this._elDef)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"componentType",{get:function(){return this._component.constructor},enumerable:!0,configurable:!0}),t.prototype.destroy=function(){this._viewRef.destroy()},t.prototype.onDestroy=function(e){this._viewRef.onDestroy(e)},t}(qn);function Fi(e,t,n){return new Ki(e,t,n)}var Ki=function(){function e(e,t,n){this._view=e,this._elDef=t,this._data=n,this._embeddedViews=[]}return Object.defineProperty(e.prototype,"element",{get:function(){return new ir(this._data.renderElement)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"injector",{get:function(){return new zi(this._view,this._elDef)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"parentInjector",{get:function(){for(var e=this._view,t=this._elDef.parent;!t&&e;)t=ii(e),e=e.parent;return e?new zi(e,t):new zi(this._view,null)},enumerable:!0,configurable:!0}),e.prototype.clear=function(){for(var e=this._embeddedViews.length-1;e>=0;e--){var t=Ii(this._data,e);Vr.destroyView(t)}},e.prototype.get=function(e){var t=this._embeddedViews[e];if(t){var n=new Vi(t);return n.attachToViewContainerRef(this),n}return null},Object.defineProperty(e.prototype,"length",{get:function(){return this._embeddedViews.length},enumerable:!0,configurable:!0}),e.prototype.createEmbeddedView=function(e,t,n){var r=e.createEmbeddedView(t||{});return this.insert(r,n),r},e.prototype.createComponent=function(e,t,n,r,i){var o=n||this.parentInjector;i||e instanceof nr||(i=o.get(Q));var l=e.create(o,r,void 0,i);return this.insert(l.hostView,t),l},e.prototype.insert=function(e,t){if(e.destroyed)throw new Error("Cannot insert a destroyed View in a ViewContainer!");var n,r,i,o,l=e;return o=(n=this._data).viewContainer._embeddedViews,null==(r=t)&&(r=o.length),(i=l._view).viewContainerParent=this._view,q(o,r,i),function(e,t){var n=ri(t);if(n&&n!==e&&!(16&t.state)){t.state|=16;var r=n.template._projectedViews;r||(r=n.template._projectedViews=[]),r.push(t),function(e,n){if(!(4&n.flags)){t.parent.def.nodeFlags|=4,n.flags|=4;for(var r=n.parent;r;)r.childFlags|=4,r=r.parent}}(0,t.parentNodeDef)}}(n,i),Vr.dirtyParentQueries(i),ji(n,r>0?o[r-1]:null,i),l.attachToViewContainerRef(this),e},e.prototype.move=function(e,t){if(e.destroyed)throw new Error("Cannot move a destroyed View in a ViewContainer!");var n,r,i,o,l,u=this._embeddedViews.indexOf(e._view);return i=t,l=(o=(n=this._data).viewContainer._embeddedViews)[r=u],J(o,r),null==i&&(i=o.length),q(o,i,l),Vr.dirtyParentQueries(l),Ri(l),ji(n,i>0?o[i-1]:null,l),e},e.prototype.indexOf=function(e){return this._embeddedViews.indexOf(e._view)},e.prototype.remove=function(e){var t=Ii(this._data,e);t&&Vr.destroyView(t)},e.prototype.detach=function(e){var t=Ii(this._data,e);return t?new Vi(t):null},e}();function Bi(e){return new Vi(e)}var Vi=function(){function e(e){this._view=e,this._viewContainerRef=null,this._appRef=null}return Object.defineProperty(e.prototype,"rootNodes",{get:function(){return hi(this._view,0,void 0,void 0,e=[]),e;var e},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"context",{get:function(){return this._view.context},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"destroyed",{get:function(){return 0!=(128&this._view.state)},enumerable:!0,configurable:!0}),e.prototype.markForCheck=function(){ei(this._view)},e.prototype.detach=function(){this._view.state&=-5},e.prototype.detectChanges=function(){var e=this._view.root.rendererFactory;e.begin&&e.begin();try{Vr.checkAndUpdateView(this._view)}finally{e.end&&e.end()}},e.prototype.checkNoChanges=function(){Vr.checkNoChangesView(this._view)},e.prototype.reattach=function(){this._view.state|=4},e.prototype.onDestroy=function(e){this._view.disposables||(this._view.disposables=[]),this._view.disposables.push(e)},e.prototype.destroy=function(){this._appRef?this._appRef.detachView(this):this._viewContainerRef&&this._viewContainerRef.detach(this._viewContainerRef.indexOf(this)),Vr.destroyView(this._view)},e.prototype.detachFromAppRef=function(){this._appRef=null,Ri(this._view),Vr.dirtyParentQueries(this._view)},e.prototype.attachToAppRef=function(e){if(this._viewContainerRef)throw new Error("This view is already attached to a ViewContainer!");this._appRef=e},e.prototype.attachToViewContainerRef=function(e){if(this._appRef)throw new Error("This view is already attached directly to the ApplicationRef!");this._viewContainerRef=e},e}();function Gi(e,t){return new Hi(e,t)}var Hi=function(e){function t(t,n){var r=e.call(this)||this;return r._parentView=t,r._def=n,r}return Object(r.c)(t,e),t.prototype.createEmbeddedView=function(e){return new Vi(Vr.createEmbeddedView(this._parentView,this._def,this._def.element.template,e))},Object.defineProperty(t.prototype,"elementRef",{get:function(){return new ir(Ur(this._parentView,this._def.nodeIndex).renderElement)},enumerable:!0,configurable:!0}),t}(Sr);function $i(e,t){return new zi(e,t)}var zi=function(){function e(e,t){this.view=e,this.elDef=t}return e.prototype.get=function(e,t){return void 0===t&&(t=gn.THROW_IF_NOT_FOUND),Vr.resolveDep(this.view,this.elDef,!!this.elDef&&0!=(33554432&this.elDef.flags),{flags:0,token:e,tokenKey:$r(e)},t)},e}();function Qi(e,t){var n=e.def.nodes[t];if(1&n.flags){var r=Ur(e,n.nodeIndex);return n.element.template?r.template:r.renderElement}if(2&n.flags)return Dr(e,n.nodeIndex).renderText;if(20240&n.flags)return Fr(e,n.nodeIndex).instance;throw new Error("Illegal state: read nodeValue for node index "+t)}function Wi(e){return new qi(e.renderer)}var qi=function(){function e(e){this.delegate=e}return e.prototype.selectRootElement=function(e){return this.delegate.selectRootElement(e)},e.prototype.createElement=function(e,t){var n=Object(r.f)(ki(t),2),i=this.delegate.createElement(n[1],n[0]);return e&&this.delegate.appendChild(e,i),i},e.prototype.createViewRoot=function(e){return e},e.prototype.createTemplateAnchor=function(e){var t=this.delegate.createComment("");return e&&this.delegate.appendChild(e,t),t},e.prototype.createText=function(e,t){var n=this.delegate.createText(t);return e&&this.delegate.appendChild(e,n),n},e.prototype.projectNodes=function(e,t){for(var n=0;n0,t.provider.value,t.provider.deps);if(t.outputs.length)for(var r=0;r0,i=t.provider;switch(201347067&t.flags){case 512:return bo(e,t.parent,n,i.value,i.deps);case 1024:return function(e,t,n,i,o){var l=o.length;switch(l){case 0:return i();case 1:return i(go(e,t,n,o[0]));case 2:return i(go(e,t,n,o[0]),go(e,t,n,o[1]));case 3:return i(go(e,t,n,o[0]),go(e,t,n,o[1]),go(e,t,n,o[2]));default:for(var u=Array(l),a=0;a0&&(i=setTimeout(function(){r._callbacks=r._callbacks.filter(function(e){return e.timeoutId!==i}),e(r._didWork,r.getPendingTasks())},t)),this._callbacks.push({doneCb:e,timeoutId:i,updateCb:n})},e.prototype.whenStable=function(e,t,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(e,t,n),this._runCallbacksIfReady()},e.prototype.getPendingRequestCount=function(){return this._pendingCount},e.prototype.findProviders=function(e,t,n){return[]},e}(),kl=function(){function e(){this._applications=new Map,Ol.addToWindow(this)}return e.prototype.registerApplication=function(e,t){this._applications.set(e,t)},e.prototype.unregisterApplication=function(e){this._applications.delete(e)},e.prototype.unregisterAllApplications=function(){this._applications.clear()},e.prototype.getTestability=function(e){return this._applications.get(e)||null},e.prototype.getAllTestabilities=function(){return Array.from(this._applications.values())},e.prototype.getAllRootElements=function(){return Array.from(this._applications.keys())},e.prototype.findTestabilityInTree=function(e,t){return void 0===t&&(t=!0),Ol.findTestabilityInTree(this,e,t)},Object(r.b)([Object(r.d)("design:paramtypes",[])],e)}();function _l(e){Ol=e}var wl,Ol=new(function(){function e(){}return e.prototype.addToWindow=function(e){},e.prototype.findTestabilityInTree=function(e,t,n){return null},e}()),Al=new R("AllowMultipleToken"),Cl=function(){return function(e,t){this.name=e,this.token=t}}();function Tl(e,t,n){void 0===n&&(n=[]);var r="Platform: "+t,i=new R(r);return function(t){void 0===t&&(t=[]);var o=xl();if(!o||o.injector.get(Al,!1))if(e)e(n.concat(t).concat({provide:i,useValue:!0}));else{var l=n.concat(t).concat({provide:i,useValue:!0});!function(e){if(wl&&!wl.destroyed&&!wl.injector.get(Al,!1))throw new Error("There can be only one platform. Destroy the previous one to create a new one.");wl=e.get(Sl);var t=e.get(Ho,null);t&&t.forEach(function(e){return e()})}(gn.create({providers:l,name:r}))}return function(e){var t=xl();if(!t)throw new Error("No platform exists!");if(!t.injector.get(e,null))throw new Error("A platform with a different configuration has been created. Please destroy it first.");return t}(i)}}function xl(){return wl&&!wl.destroyed?wl:null}var Sl=function(){function e(e){this._injector=e,this._modules=[],this._destroyListeners=[],this._destroyed=!1}return e.prototype.bootstrapModuleFactory=function(e,t){var n,r=this,i="noop"===(n=t?t.ngZone:void 0)?new gl:("zone.js"===n?void 0:n)||new fl({enableLongStackTrace:bt()}),o=[{provide:fl,useValue:i}];return i.run(function(){var t=gn.create({providers:o,parent:r.injector,name:e.moduleType.name}),n=e.create(t),l=n.injector.get(dt,null);if(!l)throw new Error("No ErrorHandler. Is platform module (BrowserModule) included?");return qo&&Io(n.injector.get(Wo,Po)||Po),n.onDestroy(function(){return Pl(r._modules,n)}),i.runOutsideAngular(function(){return i.onError.subscribe({next:function(e){l.handleError(e)}})}),function(e,t,i){try{var o=((l=n.injector.get(Ko)).runInitializers(),l.donePromise.then(function(){return r._moduleDoBootstrap(n),n}));return zn(o)?o.catch(function(n){throw t.runOutsideAngular(function(){return e.handleError(n)}),n}):o}catch(u){throw t.runOutsideAngular(function(){return e.handleError(u)}),u}var l}(l,i)})},e.prototype.bootstrapModule=function(e,t){var n=this;void 0===t&&(t=[]);var r=Ml({},t);return function(e,t,n){return e.get(il).createCompiler([t]).compileModuleAsync(n)}(this.injector,r,e).then(function(e){return n.bootstrapModuleFactory(e,r)})},e.prototype._moduleDoBootstrap=function(e){var t=e.injector.get(El);if(e._bootstrapComponents.length>0)e._bootstrapComponents.forEach(function(e){return t.bootstrap(e)});else{if(!e.instance.ngDoBootstrap)throw new Error("The module "+A(e.instance.constructor)+' was bootstrapped, but it does not declare "@NgModule.bootstrap" components nor a "ngDoBootstrap" method. Please define one of these.');e.instance.ngDoBootstrap(t)}this._modules.push(e)},e.prototype.onDestroy=function(e){this._destroyListeners.push(e)},Object.defineProperty(e.prototype,"injector",{get:function(){return this._injector},enumerable:!0,configurable:!0}),e.prototype.destroy=function(){if(this._destroyed)throw new Error("The platform has already been destroyed!");this._modules.slice().forEach(function(e){return e.destroy()}),this._destroyListeners.forEach(function(e){return e()}),this._destroyed=!0},Object.defineProperty(e.prototype,"destroyed",{get:function(){return this._destroyed},enumerable:!0,configurable:!0}),e}();function Ml(e,t){return Array.isArray(t)?t.reduce(Ml,e):Object(r.a)({},e,t)}var El=function(){function e(e,t,n,r,i,o){var s=this;this._zone=e,this._console=t,this._injector=n,this._exceptionHandler=r,this._componentFactoryResolver=i,this._initStatus=o,this._bootstrapListeners=[],this._views=[],this._runningTick=!1,this._enforceNoNewChanges=!1,this._stable=!0,this.componentTypes=[],this.components=[],this._enforceNoNewChanges=bt(),this._zone.onMicrotaskEmpty.subscribe({next:function(){s._zone.run(function(){s.tick()})}});var c=new l.a(function(e){s._stable=s._zone.isStable&&!s._zone.hasPendingMacrotasks&&!s._zone.hasPendingMicrotasks,s._zone.runOutsideAngular(function(){e.next(s._stable),e.complete()})}),p=new l.a(function(e){var t;s._zone.runOutsideAngular(function(){t=s._zone.onStable.subscribe(function(){fl.assertNotInAngularZone(),pl(function(){s._stable||s._zone.hasPendingMacrotasks||s._zone.hasPendingMicrotasks||(s._stable=!0,e.next(!0))})})});var n=s._zone.onUnstable.subscribe(function(){fl.assertInAngularZone(),s._stable&&(s._stable=!1,s._zone.runOutsideAngular(function(){e.next(!1)}))});return function(){t.unsubscribe(),n.unsubscribe()}});this.isStable=Object(u.a)(c,p.pipe(Object(a.a)()))}var t;return t=e,e.prototype.bootstrap=function(e,t){var n,r=this;if(!this._initStatus.done)throw new Error("Cannot bootstrap as there are still asynchronous initializers running. Bootstrap components in the `ngDoBootstrap` method of the root module.");n=e instanceof Jn?e:this._componentFactoryResolver.resolveComponentFactory(e),this.componentTypes.push(n.componentType);var i=n instanceof nr?null:this._injector.get(Q),o=n.create(gn.NULL,[],t||n.selector,i);o.onDestroy(function(){r._unloadComponent(o)});var l=o.injector.get(vl,null);return l&&o.injector.get(kl).registerApplication(o.location.nativeElement,l),this._loadComponent(o),bt()&&this._console.log("Angular is running in the development mode. Call enableProdMode() to enable the production mode."),o},e.prototype.tick=function(){var e,n,i,o,l=this;if(this._runningTick)throw new Error("ApplicationRef.tick is called recursively");var u=t._tickScope();try{this._runningTick=!0;try{for(var a=Object(r.h)(this._views),s=a.next();!s.done;s=a.next())s.value.detectChanges()}catch(f){e={error:f}}finally{try{s&&!s.done&&(n=a.return)&&n.call(a)}finally{if(e)throw e.error}}if(this._enforceNoNewChanges)try{for(var c=Object(r.h)(this._views),p=c.next();!p.done;p=c.next())p.value.checkNoChanges()}catch(d){i={error:d}}finally{try{p&&!p.done&&(o=c.return)&&o.call(c)}finally{if(i)throw i.error}}}catch(h){this._zone.runOutsideAngular(function(){return l._exceptionHandler.handleError(h)})}finally{this._runningTick=!1,sl(u)}},e.prototype.attachView=function(e){var t=e;this._views.push(t),t.attachToAppRef(this)},e.prototype.detachView=function(e){var t=e;Pl(this._views,t),t.detachFromAppRef()},e.prototype._loadComponent=function(e){this.attachView(e.hostView),this.tick(),this.components.push(e),this._injector.get(zo,[]).concat(this._bootstrapListeners).forEach(function(t){return t(e)})},e.prototype._unloadComponent=function(e){this.detachView(e.hostView),Pl(this.components,e)},e.prototype.ngOnDestroy=function(){this._views.slice().forEach(function(e){return e.destroy()})},Object.defineProperty(e.prototype,"viewCount",{get:function(){return this._views.length},enumerable:!0,configurable:!0}),e._tickScope=al("ApplicationRef#tick()"),e}();function Pl(e,t){var n=e.indexOf(t);n>-1&&e.splice(n,1)}var Il=function(){return function(){}}(),jl=function(){return function(){}}(),Rl={factoryPathPrefix:"",factoryPathSuffix:".ngfactory"},Ll=function(){function e(e,t){this._compiler=e,this._config=t||Rl}return e.prototype.load=function(e){return!qo&&this._compiler instanceof rl?this.loadFactory(e):this.loadAndCompile(e)},e.prototype.loadAndCompile=function(e){var t=this,i=Object(r.f)(e.split("#"),2),o=i[0],l=i[1];return void 0===l&&(l="default"),n("crnd")(o).then(function(e){return e[l]}).then(function(e){return Nl(e,o,l)}).then(function(e){return t._compiler.compileModuleAsync(e)})},e.prototype.loadFactory=function(e){var t=Object(r.f)(e.split("#"),2),i=t[0],o=t[1],l="NgFactory";return void 0===o&&(o="default",l=""),n("crnd")(this._config.factoryPathPrefix+i+this._config.factoryPathSuffix).then(function(e){return e[o+l]}).then(function(e){return Nl(e,i,o)})},e}();function Nl(e,t,n){if(!e)throw new Error("Cannot find '"+n+"' in '"+t+"'");return e}var Dl=function(){return function(e,t){this.name=e,this.callback=t}}(),Ul=function(){function e(e,t,n){this.listeners=[],this.parent=null,this._debugContext=n,this.nativeNode=e,t&&t instanceof Fl&&t.addChild(this)}return Object.defineProperty(e.prototype,"injector",{get:function(){return this._debugContext.injector},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"componentInstance",{get:function(){return this._debugContext.component},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"context",{get:function(){return this._debugContext.context},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"references",{get:function(){return this._debugContext.references},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"providerTokens",{get:function(){return this._debugContext.providerTokens},enumerable:!0,configurable:!0}),e}(),Fl=function(e){function t(t,n,r){var i=e.call(this,t,n,r)||this;return i.properties={},i.attributes={},i.classes={},i.styles={},i.childNodes=[],i.nativeElement=t,i}return Object(r.c)(t,e),t.prototype.addChild=function(e){e&&(this.childNodes.push(e),e.parent=this)},t.prototype.removeChild=function(e){var t=this.childNodes.indexOf(e);-1!==t&&(e.parent=null,this.childNodes.splice(t,1))},t.prototype.insertChildrenAfter=function(e,t){var n,i=this,o=this.childNodes.indexOf(e);-1!==o&&((n=this.childNodes).splice.apply(n,Object(r.g)([o+1,0],t)),t.forEach(function(t){t.parent&&t.parent.removeChild(t),e.parent=i}))},t.prototype.insertBefore=function(e,t){var n=this.childNodes.indexOf(e);-1===n?this.addChild(t):(t.parent&&t.parent.removeChild(t),t.parent=this,this.childNodes.splice(n,0,t))},t.prototype.query=function(e){return this.queryAll(e)[0]||null},t.prototype.queryAll=function(e){var t=[];return Kl(this,e,t),t},t.prototype.queryAllNodes=function(e){var t=[];return Bl(this,e,t),t},Object.defineProperty(t.prototype,"children",{get:function(){return this.childNodes.filter(function(e){return e instanceof t})},enumerable:!0,configurable:!0}),t.prototype.triggerEventHandler=function(e,t){this.listeners.forEach(function(n){n.name==e&&n.callback(t)})},t}(Ul);function Kl(e,t,n){e.childNodes.forEach(function(e){e instanceof Fl&&(t(e)&&n.push(e),Kl(e,t,n))})}function Bl(e,t,n){e instanceof Fl&&e.childNodes.forEach(function(e){t(e)&&n.push(e),e instanceof Fl&&Bl(e,t,n)})}var Vl=new Map,Gl=function(e){return Vl.get(e)||null};function Hl(e){Vl.set(e.nativeNode,e)}var $l=Tl(null,"core",[{provide:$o,useValue:"unknown"},{provide:Sl,deps:[gn]},{provide:kl,deps:[]},{provide:Qo,deps:[]}]);function zl(){return Tr}function Ql(){return xr}function Wl(e){return e?(qo&&Io(e),e):Po}function ql(e){var t=[];return e.onStable.subscribe(function(){for(;t.length;)t.pop()()}),function(e){t.push(e)}}var Jl=function(){return function(e){}}();function Yl(e,t,n,r,i,o){e|=1;var l=si(t);return{nodeIndex:-1,parent:null,renderParent:null,bindingIndex:-1,outputIndex:-1,flags:e,checkIndex:-1,childFlags:0,directChildFlags:0,childMatchedQueries:0,matchedQueries:l.matchedQueries,matchedQueryIds:l.matchedQueryIds,references:l.references,ngContentIndex:n,childCount:r,bindings:[],bindingFlags:0,outputs:[],element:{ns:null,name:null,attrs:null,template:o?di(o):null,componentProvider:null,componentView:null,componentRendererType:null,publicProviders:null,allProviders:null,handleEvent:i||Gr},provider:null,text:null,query:null,ngContent:null}}function Zl(e,t,n,i,o,l,u,a,s,c,p,f){var d;void 0===u&&(u=[]),c||(c=Gr);var h=si(n),y=h.matchedQueries,b=h.references,m=h.matchedQueryIds,g=null,v=null;l&&(g=(d=Object(r.f)(ki(l),2))[0],v=d[1]),a=a||[];for(var k=new Array(a.length),_=0;_0)s=y,gu(y)||(c=y);else for(;s&&h===s.nodeIndex+s.childCount;){var g=s.parent;g&&(g.childFlags|=s.childFlags,g.childMatchedQueries|=s.childMatchedQueries),c=(s=g)&&gu(s)?s.renderParent:s}}return{factory:null,nodeFlags:l,rootNodeFlags:u,nodeMatchedQueries:a,flags:e,nodes:t,updateDirectives:n||Gr,updateRenderer:r||Gr,handleEvent:function(e,n,r,i){return t[n].element.handleEvent(e,r,i)},bindingCount:i,outputCount:o,lastRenderRootNode:d}}function gu(e){return 0!=(1&e.flags)&&null===e.element.name}function vu(e,t,n){var r=t.element&&t.element.template;if(r){if(!r.lastRenderRootNode)throw new Error("Illegal State: Embedded templates without nodes are not allowed!");if(r.lastRenderRootNode&&16777216&r.lastRenderRootNode.flags)throw new Error("Illegal State: Last root node of a template can't have embedded views, at index "+t.nodeIndex+"!")}if(20224&t.flags&&0==(1&(e?e.flags:0)))throw new Error("Illegal State: StaticProvider/Directive nodes need to be children of elements or anchors, at index "+t.nodeIndex+"!");if(t.query){if(67108864&t.flags&&(!e||0==(16384&e.flags)))throw new Error("Illegal State: Content Query nodes need to be children of directives, at index "+t.nodeIndex+"!");if(134217728&t.flags&&e)throw new Error("Illegal State: View Query nodes have to be top level nodes, at index "+t.nodeIndex+"!")}if(t.childCount){var i=e?e.nodeIndex+e.childCount:n-1;if(t.nodeIndex<=i&&t.nodeIndex+t.childCount>i)throw new Error("Illegal State: childCount of node leads outside of parent, at index "+t.nodeIndex+"!")}}function ku(e,t,n,r){var i=Ou(e.root,e.renderer,e,t,n);return Au(i,e.component,r),Cu(i),i}function _u(e,t,n){var r=Ou(e,e.renderer,null,null,t);return Au(r,n,n),Cu(r),r}function wu(e,t,n,r){var i,o=t.element.componentRendererType;return i=o?e.root.rendererFactory.createRenderer(r,o):e.root.renderer,Ou(e.root,i,e,t.element.componentProvider,n)}function Ou(e,t,n,r,i){var o=new Array(i.nodes.length),l=i.outputCount?new Array(i.outputCount):null;return{def:i,parent:n,viewContainerParent:null,parentNodeDef:r,context:null,component:null,nodes:o,state:13,root:e,renderer:t,oldValues:new Array(i.bindingCount),disposables:l,initIndex:-1}}function Au(e,t,n){e.component=t,e.context=n}function Cu(e){var t;li(e)&&(t=Ur(e.parent,e.parentNodeDef.parent.nodeIndex).renderElement);for(var n=e.def,r=e.nodes,i=0;i0&&nu(e,t,0,n)&&(d=!0),f>1&&nu(e,t,1,r)&&(d=!0),f>2&&nu(e,t,2,i)&&(d=!0),f>3&&nu(e,t,3,o)&&(d=!0),f>4&&nu(e,t,4,l)&&(d=!0),f>5&&nu(e,t,5,u)&&(d=!0),f>6&&nu(e,t,6,a)&&(d=!0),f>7&&nu(e,t,7,s)&&(d=!0),f>8&&nu(e,t,8,c)&&(d=!0),f>9&&nu(e,t,9,p)&&(d=!0),d}(e,t,n,r,i,o,l,u,a,s,c,p);case 2:return function(e,t,n,r,i,o,l,u,a,s,c,p){var f=!1,d=t.bindings,h=d.length;if(h>0&&Zr(e,t,0,n)&&(f=!0),h>1&&Zr(e,t,1,r)&&(f=!0),h>2&&Zr(e,t,2,i)&&(f=!0),h>3&&Zr(e,t,3,o)&&(f=!0),h>4&&Zr(e,t,4,l)&&(f=!0),h>5&&Zr(e,t,5,u)&&(f=!0),h>6&&Zr(e,t,6,a)&&(f=!0),h>7&&Zr(e,t,7,s)&&(f=!0),h>8&&Zr(e,t,8,c)&&(f=!0),h>9&&Zr(e,t,9,p)&&(f=!0),f){var y=t.text.prefix;h>0&&(y+=bu(n,d[0])),h>1&&(y+=bu(r,d[1])),h>2&&(y+=bu(i,d[2])),h>3&&(y+=bu(o,d[3])),h>4&&(y+=bu(l,d[4])),h>5&&(y+=bu(u,d[5])),h>6&&(y+=bu(a,d[6])),h>7&&(y+=bu(s,d[7])),h>8&&(y+=bu(c,d[8])),h>9&&(y+=bu(p,d[9]));var b=Dr(e,t.nodeIndex).renderText;e.renderer.setValue(b,y)}return f}(e,t,n,r,i,o,l,u,a,s,c,p);case 16384:return function(e,t,n,r,i,o,l,u,a,s,c,p){var f=Fr(e,t.nodeIndex),d=f.instance,h=!1,y=void 0,b=t.bindings.length;return b>0&&Yr(e,t,0,n)&&(h=!0,y=ko(e,f,t,0,n,y)),b>1&&Yr(e,t,1,r)&&(h=!0,y=ko(e,f,t,1,r,y)),b>2&&Yr(e,t,2,i)&&(h=!0,y=ko(e,f,t,2,i,y)),b>3&&Yr(e,t,3,o)&&(h=!0,y=ko(e,f,t,3,o,y)),b>4&&Yr(e,t,4,l)&&(h=!0,y=ko(e,f,t,4,l,y)),b>5&&Yr(e,t,5,u)&&(h=!0,y=ko(e,f,t,5,u,y)),b>6&&Yr(e,t,6,a)&&(h=!0,y=ko(e,f,t,6,a,y)),b>7&&Yr(e,t,7,s)&&(h=!0,y=ko(e,f,t,7,s,y)),b>8&&Yr(e,t,8,c)&&(h=!0,y=ko(e,f,t,8,c,y)),b>9&&Yr(e,t,9,p)&&(h=!0,y=ko(e,f,t,9,p,y)),y&&d.ngOnChanges(y),65536&t.flags&&Nr(e,256,t.nodeIndex)&&d.ngOnInit(),262144&t.flags&&d.ngDoCheck(),h}(e,t,n,r,i,o,l,u,a,s,c,p);case 32:case 64:case 128:return function(e,t,n,r,i,o,l,u,a,s,c,p){var f=t.bindings,d=!1,h=f.length;if(h>0&&Zr(e,t,0,n)&&(d=!0),h>1&&Zr(e,t,1,r)&&(d=!0),h>2&&Zr(e,t,2,i)&&(d=!0),h>3&&Zr(e,t,3,o)&&(d=!0),h>4&&Zr(e,t,4,l)&&(d=!0),h>5&&Zr(e,t,5,u)&&(d=!0),h>6&&Zr(e,t,6,a)&&(d=!0),h>7&&Zr(e,t,7,s)&&(d=!0),h>8&&Zr(e,t,8,c)&&(d=!0),h>9&&Zr(e,t,9,p)&&(d=!0),d){var y=Kr(e,t.nodeIndex),b=void 0;switch(201347067&t.flags){case 32:b=new Array(f.length),h>0&&(b[0]=n),h>1&&(b[1]=r),h>2&&(b[2]=i),h>3&&(b[3]=o),h>4&&(b[4]=l),h>5&&(b[5]=u),h>6&&(b[6]=a),h>7&&(b[7]=s),h>8&&(b[8]=c),h>9&&(b[9]=p);break;case 64:b={},h>0&&(b[f[0].name]=n),h>1&&(b[f[1].name]=r),h>2&&(b[f[2].name]=i),h>3&&(b[f[3].name]=o),h>4&&(b[f[4].name]=l),h>5&&(b[f[5].name]=u),h>6&&(b[f[6].name]=a),h>7&&(b[f[7].name]=s),h>8&&(b[f[8].name]=c),h>9&&(b[f[9].name]=p);break;case 128:var m=n;switch(h){case 1:b=m.transform(n);break;case 2:b=m.transform(r);break;case 3:b=m.transform(r,i);break;case 4:b=m.transform(r,i,o);break;case 5:b=m.transform(r,i,o,l);break;case 6:b=m.transform(r,i,o,l,u);break;case 7:b=m.transform(r,i,o,l,u,a);break;case 8:b=m.transform(r,i,o,l,u,a,s);break;case 9:b=m.transform(r,i,o,l,u,a,s,c);break;case 10:b=m.transform(r,i,o,l,u,a,s,c,p)}}y.value=b}return d}(e,t,n,r,i,o,l,u,a,s,c,p);default:throw"unreachable"}}(e,t,i,o,l,u,a,s,c,p,f,d):function(e,t,n){switch(201347067&t.flags){case 1:return function(e,t,n){for(var r=!1,i=0;i0&&Xr(e,t,0,n),f>1&&Xr(e,t,1,r),f>2&&Xr(e,t,2,i),f>3&&Xr(e,t,3,o),f>4&&Xr(e,t,4,l),f>5&&Xr(e,t,5,u),f>6&&Xr(e,t,6,a),f>7&&Xr(e,t,7,s),f>8&&Xr(e,t,8,c),f>9&&Xr(e,t,9,p)}(e,t,r,i,o,l,u,a,s,c,p,f):function(e,t,n){for(var r=0;r0){var o=new Set(e.modules);Qu.forEach(function(t,r){if(o.has(w(r).providedIn)){var i={token:r,flags:t.flags|(n?4096:0),deps:ci(t.deps),value:t.value,index:e.providers.length};e.providers.push(i),e.providersByKey[$r(r)]=i}})}}(e=e.factory(function(){return Gr})),e):e}(r))}var zu=new Map,Qu=new Map,Wu=new Map;function qu(e){var t;zu.set(e.token,e),"function"==typeof e.token&&(t=w(e.token))&&"function"==typeof t.providedIn&&Qu.set(e.token,e)}function Ju(e,t){var n=di(t.viewDefFactory),r=di(n.nodes[0].element.componentView);Wu.set(e,r)}function Yu(){zu.clear(),Qu.clear(),Wu.clear()}function Zu(e){if(0===zu.size)return e;var t=function(e){for(var t=[],n=null,r=0;r{if(e.length!==t.length)return!1;for(const n of e)if(!t.some(e=>r.isEqual(n,e)))return!1;return!0}},"En8+":function(e,t,n){"use strict";function r(){return"function"==typeof Symbol&&Symbol.iterator?Symbol.iterator:"@@iterator"}n.d(t,"a",function(){return i});var i=r()},"F/XL":function(e,t,n){"use strict";n.d(t,"a",function(){return l});var r=n("nkY7"),i=n("IUTb"),o=n("JF+6");function l(){for(var e=[],t=0;t`}getName(){return"TextMacroAction"}}},GOc1:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n("2QPq");r.__exportStar(n("TEuf"),t),r.__exportStar(n("diPy"),t),r.__exportStar(n("/FnF"),t),r.__exportStar(n("QGe5"),t),r.__exportStar(n("s9zn"),t),r.__exportStar(n("APMd"),t),r.__exportStar(n("UEaM"),t),r.__exportStar(n("myTe"),t),r.__exportStar(n("qaQF"),t),r.__exportStar(n("p2JS"),t),r.__exportStar(n("90N0"),t),t.SCANCODES=n("UBVW"),t.SECONDARY_ROLES=n("9j6c")},Gi3i:function(e,t,n){"use strict";n.d(t,"a",function(){return l});var r=n("mrSG"),i=n("FFOo"),o=n("T1DM");function l(e,t){return void 0===t&&(t=o.a),function(n){return n.lift(new u(e,t))}}var u=function(){function e(e,t){this.dueTime=e,this.scheduler=t}return e.prototype.call=function(e,t){return t.subscribe(new a(e,this.dueTime,this.scheduler))},e}(),a=function(e){function t(t,n,r){var i=e.call(this,t)||this;return i.dueTime=n,i.scheduler=r,i.debouncedSubscription=null,i.lastValue=null,i.hasValue=!1,i}return r.c(t,e),t.prototype._next=function(e){this.clearDebounce(),this.lastValue=e,this.hasValue=!0,this.add(this.debouncedSubscription=this.scheduler.schedule(s,this.dueTime,this))},t.prototype._complete=function(){this.debouncedNext(),this.destination.complete()},t.prototype.debouncedNext=function(){if(this.clearDebounce(),this.hasValue){var e=this.lastValue;this.lastValue=null,this.hasValue=!1,this.destination.next(e)}},t.prototype.clearDebounce=function(){var e=this.debouncedSubscription;null!==e&&(this.remove(e),e.unsubscribe(),this.debouncedSubscription=null)},t}(i.a);function s(e){e.debouncedNext()}},Gjsa:function(e,t){var n="function"==typeof setImmediate;e.exports=n?function(e){setImmediate(e)}:function(e){setTimeout(e,0)}},GyMh:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e){e[e.Backspace=8]="Backspace",e[e.Tab=9]="Tab",e[e.Enter=13]="Enter",e[e.Shift=16]="Shift",e[e.Ctrl=17]="Ctrl",e[e.Alt=18]="Alt",e[e.PauseBreak=19]="PauseBreak",e[e.CapsLock=20]="CapsLock",e[e.Escape=27]="Escape",e[e.Space=32]="Space",e[e.PageUp=33]="PageUp",e[e.PageDown=34]="PageDown",e[e.End=35]="End",e[e.Home=36]="Home",e[e.LeftArrow=37]="LeftArrow",e[e.UpArrow=38]="UpArrow",e[e.RightArrow=39]="RightArrow",e[e.DownArrow=40]="DownArrow",e[e.Insert=45]="Insert",e[e.Delete=46]="Delete",e[e.Zero=48]="Zero",e[e.ClosedParen=48]="ClosedParen",e[e.One=49]="One",e[e.ExclamationMark=49]="ExclamationMark",e[e.Two=50]="Two",e[e.AtSign=50]="AtSign",e[e.Three=51]="Three",e[e.PoundSign=51]="PoundSign",e[e.Hash=51]="Hash",e[e.Four=52]="Four",e[e.DollarSign=52]="DollarSign",e[e.Five=53]="Five",e[e.PercentSign=53]="PercentSign",e[e.Six=54]="Six",e[e.Caret=54]="Caret",e[e.Hat=54]="Hat",e[e.Seven=55]="Seven",e[e.Ampersand=55]="Ampersand",e[e.Eight=56]="Eight",e[e.Star=56]="Star",e[e.Asterik=56]="Asterik",e[e.Nine=57]="Nine",e[e.OpenParen=57]="OpenParen",e[e.A=65]="A",e[e.B=66]="B",e[e.C=67]="C",e[e.D=68]="D",e[e.E=69]="E",e[e.F=70]="F",e[e.G=71]="G",e[e.H=72]="H",e[e.I=73]="I",e[e.J=74]="J",e[e.K=75]="K",e[e.L=76]="L",e[e.M=77]="M",e[e.N=78]="N",e[e.O=79]="O",e[e.P=80]="P",e[e.Q=81]="Q",e[e.R=82]="R",e[e.S=83]="S",e[e.T=84]="T",e[e.U=85]="U",e[e.V=86]="V",e[e.W=87]="W",e[e.X=88]="X",e[e.Y=89]="Y",e[e.Z=90]="Z",e[e.LeftWindowKey=91]="LeftWindowKey",e[e.RightWindowKey=92]="RightWindowKey",e[e.SelectKey=93]="SelectKey",e[e.Numpad0=96]="Numpad0",e[e.Numpad1=97]="Numpad1",e[e.Numpad2=98]="Numpad2",e[e.Numpad3=99]="Numpad3",e[e.Numpad4=100]="Numpad4",e[e.Numpad5=101]="Numpad5",e[e.Numpad6=102]="Numpad6",e[e.Numpad7=103]="Numpad7",e[e.Numpad8=104]="Numpad8",e[e.Numpad9=105]="Numpad9",e[e.Multiply=106]="Multiply",e[e.Add=107]="Add",e[e.Subtract=109]="Subtract",e[e.DecimalPoint=110]="DecimalPoint",e[e.Divide=111]="Divide",e[e.F1=112]="F1",e[e.F2=113]="F2",e[e.F3=114]="F3",e[e.F4=115]="F4",e[e.F5=116]="F5",e[e.F6=117]="F6",e[e.F7=118]="F7",e[e.F8=119]="F8",e[e.F9=120]="F9",e[e.F10=121]="F10",e[e.F11=122]="F11",e[e.F12=123]="F12",e[e.NumLock=144]="NumLock",e[e.ScrollLock=145]="ScrollLock",e[e.SemiColon=186]="SemiColon",e[e.Equals=187]="Equals",e[e.Comma=188]="Comma",e[e.Dash=189]="Dash",e[e.Period=190]="Period",e[e.UnderScore=189]="UnderScore",e[e.PlusSign=187]="PlusSign",e[e.ForwardSlash=191]="ForwardSlash",e[e.Tilde=192]="Tilde",e[e.GraveAccent=192]="GraveAccent",e[e.OpenBracket=219]="OpenBracket",e[e.ClosedBracket=221]="ClosedBracket",e[e.Quote=222]="Quote"}(t.Key||(t.Key={}))},IUTb:function(e,t,n){"use strict";n.d(t,"a",function(){return l});var r=n("6blF"),i=n("+tJ4"),o=n("JF+6");function l(e,t){return t?Object(o.a)(e,t):new r.a(Object(i.a)(e))}},Ibf7:function(e,t,n){"use strict";var r=n("Gjsa");e.exports=function(e,t,n){e&&r(function(){e.apply(n||null,t||[])})}},JEAp:function(e,t,n){var r,i=i||function(e){"use strict";if(!(void 0===e||"undefined"!=typeof navigator&&/MSIE [1-9]\./.test(navigator.userAgent))){var t=function(){return e.URL||e.webkitURL||e},n=e.document.createElementNS("http://www.w3.org/1999/xhtml","a"),r="download"in n,i=/constructor/i.test(e.HTMLElement)||e.safari,o=/CriOS\/[\d]+/.test(navigator.userAgent),l=function(t){(e.setImmediate||e.setTimeout)(function(){throw t},0)},u=function(e){setTimeout(function(){"string"==typeof e?t().revokeObjectURL(e):e.remove()},4e4)},a=function(e){return/^\s*(?:text\/\S*|application\/xml|\S*\/\S*\+xml)\s*;.*charset\s*=\s*utf-8/i.test(e.type)?new Blob([String.fromCharCode(65279),e],{type:e.type}):e},s=function(s,c,p){p||(s=a(s));var f,d=this,h="application/octet-stream"===s.type,y=function(){!function(e,t,n){for(var r=(t=[].concat(t)).length;r--;){var i=e["on"+t[r]];if("function"==typeof i)try{i.call(e,e)}catch(o){l(o)}}}(d,"writestart progress write writeend".split(" "))};if(d.readyState=d.INIT,r)return f=t().createObjectURL(s),void setTimeout(function(){var e,t;n.href=f,n.download=c,e=n,t=new MouseEvent("click"),e.dispatchEvent(t),y(),u(f),d.readyState=d.DONE});!function(){if((o||h&&i)&&e.FileReader){var n=new FileReader;return n.onloadend=function(){var t=o?n.result:n.result.replace(/^data:[^;]*;/,"data:attachment/file;");e.open(t,"_blank")||(e.location.href=t),t=void 0,d.readyState=d.DONE,y()},n.readAsDataURL(s),void(d.readyState=d.INIT)}f||(f=t().createObjectURL(s)),h?e.location.href=f:e.open(f,"_blank")||(e.location.href=f),d.readyState=d.DONE,y(),u(f)}()},c=s.prototype;return"undefined"!=typeof navigator&&navigator.msSaveOrOpenBlob?function(e,t,n){return t=t||e.name||"download",n||(e=a(e)),navigator.msSaveOrOpenBlob(e,t)}:(c.abort=function(){},c.readyState=c.INIT=0,c.WRITING=1,c.DONE=2,c.error=c.onwritestart=c.onprogress=c.onwrite=c.onabort=c.onerror=c.onwriteend=null,function(e,t,n){return new s(e,t||e.name||"download",n)})}}("undefined"!=typeof self&&self||"undefined"!=typeof window&&window||this.content);e.exports?e.exports.saveAs=i:null!==n("B9Yq")&&null!==n("PDX0")&&(void 0===(r=(function(){return i}).call(t,n,t,e))||(e.exports=r))},"JF+6":function(e,t,n){"use strict";n.d(t,"a",function(){return o});var r=n("6blF"),i=n("pugT");function o(e,t){return new r.a(function(n){var r=new i.a,o=0;return r.add(t.schedule(function(){o!==e.length?(n.next(e[o++]),n.closed||r.add(this.schedule())):n.complete()})),r})}},Ji2o:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n("2QPq");r.__exportStar(n("GOc1"),t),r.__exportStar(n("Mfn/"),t),r.__exportStar(n("i/vr"),t),r.__exportStar(n("SACm"),t)},K9Ia:function(e,t,n){"use strict";n.d(t,"b",function(){return c}),n.d(t,"a",function(){return p});var r=n("mrSG"),i=n("6blF"),o=n("FFOo"),l=n("pugT"),u=n("8g8A"),a=n("uMaO"),s=n("L/V9"),c=function(e){function t(t){var n=e.call(this,t)||this;return n.destination=t,n}return r.c(t,e),t}(o.a),p=function(e){function t(){var t=e.call(this)||this;return t.observers=[],t.closed=!1,t.isStopped=!1,t.hasError=!1,t.thrownError=null,t}return r.c(t,e),t.prototype[s.a]=function(){return new c(this)},t.prototype.lift=function(e){var t=new f(this,this);return t.operator=e,t},t.prototype.next=function(e){if(this.closed)throw new u.a;if(!this.isStopped)for(var t=this.observers,n=t.length,r=t.slice(),i=0;ie.abbreviation===this.keymapAbbreviation);e.writeUInt8(l.KeyActionId.SwitchKeymapAction),e.writeUInt8(n)}toString(){return``}renameKeymap(e,t){return this.keymapAbbreviation!==e?this:new u(t)}getName(){return"SwitchKeymapAction"}}t.SwitchKeymapAction=u;class a extends l.KeyAction{constructor(e){super(),this.keymapIndex=e}fromBinary(e){return e.readUInt8(),this.keymapIndex=e.readUInt8(),this}toBinary(e){e.writeUInt8(l.KeyActionId.SwitchKeymapAction),e.writeUInt8(this.keymapIndex)}toJsonObject(){throw new Error("UnresolvedSwitchKeymapAction cannot be serialized directly. Convert it to SwitchKeymapAction first.")}resolve(e){return new u(e[this.keymapIndex])}getName(){return"UnresolvedSwitchKeymapAction"}}r.__decorate([i.assertUInt8,r.__metadata("design:type",Number)],a.prototype,"keymapIndex",void 0),t.UnresolvedSwitchKeymapAction=a},"L/V9":function(e,t,n){"use strict";n.d(t,"a",function(){return r});var r="function"==typeof Symbol?Symbol("rxSubscriber"):"@@rxSubscriber_"+Math.random()},LvDl:function(e,t,n){(function(e){var r;(function(){var i,o=200,l="Expected a function",u="__lodash_placeholder__",a=1,s=2,c=4,p=1,f=2,d=1,h=2,y=4,b=8,m=16,g=32,v=64,k=128,_=256,w=512,O=800,A=16,C=1/0,T=9007199254740991,x=17976931348623157e292,S=NaN,M=4294967295,E=M-1,P=M>>>1,I=[["ary",k],["bind",d],["bindKey",h],["curry",b],["curryRight",m],["flip",w],["partial",g],["partialRight",v],["rearg",_]],j="[object Arguments]",R="[object Array]",L="[object AsyncFunction]",N="[object Boolean]",D="[object Date]",U="[object DOMException]",F="[object Error]",K="[object Function]",B="[object GeneratorFunction]",V="[object Map]",G="[object Number]",H="[object Null]",$="[object Object]",z="[object Proxy]",Q="[object RegExp]",W="[object Set]",q="[object String]",J="[object Symbol]",Y="[object Undefined]",Z="[object WeakMap]",X="[object ArrayBuffer]",ee="[object DataView]",te="[object Float32Array]",ne="[object Float64Array]",re="[object Int8Array]",ie="[object Int16Array]",oe="[object Int32Array]",le="[object Uint8Array]",ue="[object Uint8ClampedArray]",ae="[object Uint16Array]",se="[object Uint32Array]",ce=/\b__p \+= '';/g,pe=/\b(__p \+=) '' \+/g,fe=/(__e\(.*?\)|\b__t\)) \+\n'';/g,de=/&(?:amp|lt|gt|quot|#39);/g,he=/[&<>"']/g,ye=RegExp(de.source),be=RegExp(he.source),me=/<%-([\s\S]+?)%>/g,ge=/<%([\s\S]+?)%>/g,ve=/<%=([\s\S]+?)%>/g,ke=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,_e=/^\w*$/,we=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,Oe=/[\\^$.*+?()[\]{}|]/g,Ae=RegExp(Oe.source),Ce=/^\s+|\s+$/g,Te=/^\s+/,xe=/\s+$/,Se=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,Me=/\{\n\/\* \[wrapped with (.+)\] \*/,Ee=/,? & /,Pe=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,Ie=/\\(\\)?/g,je=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,Re=/\w*$/,Le=/^[-+]0x[0-9a-f]+$/i,Ne=/^0b[01]+$/i,De=/^\[object .+?Constructor\]$/,Ue=/^0o[0-7]+$/i,Fe=/^(?:0|[1-9]\d*)$/,Ke=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,Be=/($^)/,Ve=/['\n\r\u2028\u2029\\]/g,Ge="\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff",He="\\xac\\xb1\\xd7\\xf7\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf\\u2000-\\u206f \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",$e="["+He+"]",ze="["+Ge+"]",Qe="\\d+",We="[a-z\\xdf-\\xf6\\xf8-\\xff]",qe="[^\\ud800-\\udfff"+He+Qe+"\\u2700-\\u27bfa-z\\xdf-\\xf6\\xf8-\\xffA-Z\\xc0-\\xd6\\xd8-\\xde]",Je="\\ud83c[\\udffb-\\udfff]",Ye="[^\\ud800-\\udfff]",Ze="(?:\\ud83c[\\udde6-\\uddff]){2}",Xe="[\\ud800-\\udbff][\\udc00-\\udfff]",et="[A-Z\\xc0-\\xd6\\xd8-\\xde]",tt="(?:"+We+"|"+qe+")",nt="(?:"+et+"|"+qe+")",rt="(?:"+ze+"|"+Je+")?",it="[\\ufe0e\\ufe0f]?"+rt+"(?:\\u200d(?:"+[Ye,Ze,Xe].join("|")+")[\\ufe0e\\ufe0f]?"+rt+")*",ot="(?:"+["[\\u2700-\\u27bf]",Ze,Xe].join("|")+")"+it,lt="(?:"+[Ye+ze+"?",ze,Ze,Xe,"[\\ud800-\\udfff]"].join("|")+")",ut=RegExp("['\u2019]","g"),at=RegExp(ze,"g"),st=RegExp(Je+"(?="+Je+")|"+lt+it,"g"),ct=RegExp([et+"?"+We+"+(?:['\u2019](?:d|ll|m|re|s|t|ve))?(?="+[$e,et,"$"].join("|")+")",nt+"+(?:['\u2019](?:D|LL|M|RE|S|T|VE))?(?="+[$e,et+tt,"$"].join("|")+")",et+"?"+tt+"+(?:['\u2019](?:d|ll|m|re|s|t|ve))?",et+"+(?:['\u2019](?:D|LL|M|RE|S|T|VE))?","\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])","\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",Qe,ot].join("|"),"g"),pt=RegExp("[\\u200d\\ud800-\\udfff"+Ge+"\\ufe0e\\ufe0f]"),ft=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,dt=["Array","Buffer","DataView","Date","Error","Float32Array","Float64Array","Function","Int8Array","Int16Array","Int32Array","Map","Math","Object","Promise","RegExp","Set","String","Symbol","TypeError","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","WeakMap","_","clearTimeout","isFinite","parseInt","setTimeout"],ht=-1,yt={};yt[te]=yt[ne]=yt[re]=yt[ie]=yt[oe]=yt[le]=yt[ue]=yt[ae]=yt[se]=!0,yt[j]=yt[R]=yt[X]=yt[N]=yt[ee]=yt[D]=yt[F]=yt[K]=yt[V]=yt[G]=yt[$]=yt[Q]=yt[W]=yt[q]=yt[Z]=!1;var bt={};bt[j]=bt[R]=bt[X]=bt[ee]=bt[N]=bt[D]=bt[te]=bt[ne]=bt[re]=bt[ie]=bt[oe]=bt[V]=bt[G]=bt[$]=bt[Q]=bt[W]=bt[q]=bt[J]=bt[le]=bt[ue]=bt[ae]=bt[se]=!0,bt[F]=bt[K]=bt[Z]=!1;var mt={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},gt=parseFloat,vt=parseInt,kt="object"==typeof global&&global&&global.Object===Object&&global,_t="object"==typeof self&&self&&self.Object===Object&&self,wt=kt||_t||Function("return this")(),Ot=t&&!t.nodeType&&t,At=Ot&&"object"==typeof e&&e&&!e.nodeType&&e,Ct=At&&At.exports===Ot,Tt=Ct&&kt.process,xt=function(){try{return At&&At.require&&At.require("util").types||Tt&&Tt.binding&&Tt.binding("util")}catch(e){}}(),St=xt&&xt.isArrayBuffer,Mt=xt&&xt.isDate,Et=xt&&xt.isMap,Pt=xt&&xt.isRegExp,It=xt&&xt.isSet,jt=xt&&xt.isTypedArray;function Rt(e,t,n){switch(n.length){case 0:return e.call(t);case 1:return e.call(t,n[0]);case 2:return e.call(t,n[0],n[1]);case 3:return e.call(t,n[0],n[1],n[2])}return e.apply(t,n)}function Lt(e,t,n,r){for(var i=-1,o=null==e?0:e.length;++i-1}function Kt(e,t,n){for(var r=-1,i=null==e?0:e.length;++r-1;);return n}function sn(e,t){for(var n=e.length;n--&&qt(t,e[n],0)>-1;);return n}var cn=en({"\xc0":"A","\xc1":"A","\xc2":"A","\xc3":"A","\xc4":"A","\xc5":"A","\xe0":"a","\xe1":"a","\xe2":"a","\xe3":"a","\xe4":"a","\xe5":"a","\xc7":"C","\xe7":"c","\xd0":"D","\xf0":"d","\xc8":"E","\xc9":"E","\xca":"E","\xcb":"E","\xe8":"e","\xe9":"e","\xea":"e","\xeb":"e","\xcc":"I","\xcd":"I","\xce":"I","\xcf":"I","\xec":"i","\xed":"i","\xee":"i","\xef":"i","\xd1":"N","\xf1":"n","\xd2":"O","\xd3":"O","\xd4":"O","\xd5":"O","\xd6":"O","\xd8":"O","\xf2":"o","\xf3":"o","\xf4":"o","\xf5":"o","\xf6":"o","\xf8":"o","\xd9":"U","\xda":"U","\xdb":"U","\xdc":"U","\xf9":"u","\xfa":"u","\xfb":"u","\xfc":"u","\xdd":"Y","\xfd":"y","\xff":"y","\xc6":"Ae","\xe6":"ae","\xde":"Th","\xfe":"th","\xdf":"ss","\u0100":"A","\u0102":"A","\u0104":"A","\u0101":"a","\u0103":"a","\u0105":"a","\u0106":"C","\u0108":"C","\u010a":"C","\u010c":"C","\u0107":"c","\u0109":"c","\u010b":"c","\u010d":"c","\u010e":"D","\u0110":"D","\u010f":"d","\u0111":"d","\u0112":"E","\u0114":"E","\u0116":"E","\u0118":"E","\u011a":"E","\u0113":"e","\u0115":"e","\u0117":"e","\u0119":"e","\u011b":"e","\u011c":"G","\u011e":"G","\u0120":"G","\u0122":"G","\u011d":"g","\u011f":"g","\u0121":"g","\u0123":"g","\u0124":"H","\u0126":"H","\u0125":"h","\u0127":"h","\u0128":"I","\u012a":"I","\u012c":"I","\u012e":"I","\u0130":"I","\u0129":"i","\u012b":"i","\u012d":"i","\u012f":"i","\u0131":"i","\u0134":"J","\u0135":"j","\u0136":"K","\u0137":"k","\u0138":"k","\u0139":"L","\u013b":"L","\u013d":"L","\u013f":"L","\u0141":"L","\u013a":"l","\u013c":"l","\u013e":"l","\u0140":"l","\u0142":"l","\u0143":"N","\u0145":"N","\u0147":"N","\u014a":"N","\u0144":"n","\u0146":"n","\u0148":"n","\u014b":"n","\u014c":"O","\u014e":"O","\u0150":"O","\u014d":"o","\u014f":"o","\u0151":"o","\u0154":"R","\u0156":"R","\u0158":"R","\u0155":"r","\u0157":"r","\u0159":"r","\u015a":"S","\u015c":"S","\u015e":"S","\u0160":"S","\u015b":"s","\u015d":"s","\u015f":"s","\u0161":"s","\u0162":"T","\u0164":"T","\u0166":"T","\u0163":"t","\u0165":"t","\u0167":"t","\u0168":"U","\u016a":"U","\u016c":"U","\u016e":"U","\u0170":"U","\u0172":"U","\u0169":"u","\u016b":"u","\u016d":"u","\u016f":"u","\u0171":"u","\u0173":"u","\u0174":"W","\u0175":"w","\u0176":"Y","\u0177":"y","\u0178":"Y","\u0179":"Z","\u017b":"Z","\u017d":"Z","\u017a":"z","\u017c":"z","\u017e":"z","\u0132":"IJ","\u0133":"ij","\u0152":"Oe","\u0153":"oe","\u0149":"'n",\u017f:"s"}),pn=en({"&":"&","<":"<",">":">",'"':""","'":"'"});function fn(e){return"\\"+mt[e]}function dn(e){return pt.test(e)}function hn(e){var t=-1,n=Array(e.size);return e.forEach(function(e,r){n[++t]=[r,e]}),n}function yn(e,t){return function(n){return e(t(n))}}function bn(e,t){for(var n=-1,r=e.length,i=0,o=[];++n",""":'"',"'":"'"}),wn=function e(t){var n,r=(t=null==t?wt:wn.defaults(wt.Object(),t,wn.pick(wt,dt))).Array,Ge=t.Date,He=t.Error,$e=t.Function,ze=t.Math,Qe=t.Object,We=t.RegExp,qe=t.String,Je=t.TypeError,Ye=r.prototype,Ze=Qe.prototype,Xe=t["__core-js_shared__"],et=$e.prototype.toString,tt=Ze.hasOwnProperty,nt=0,rt=(n=/[^.]+$/.exec(Xe&&Xe.keys&&Xe.keys.IE_PROTO||""))?"Symbol(src)_1."+n:"",it=Ze.toString,ot=et.call(Qe),lt=wt._,st=We("^"+et.call(tt).replace(Oe,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),pt=Ct?t.Buffer:i,mt=t.Symbol,kt=t.Uint8Array,_t=pt?pt.allocUnsafe:i,Ot=yn(Qe.getPrototypeOf,Qe),At=Qe.create,Tt=Ze.propertyIsEnumerable,xt=Ye.splice,zt=mt?mt.isConcatSpreadable:i,en=mt?mt.iterator:i,On=mt?mt.toStringTag:i,An=function(){try{var e=Oo(Qe,"defineProperty");return e({},"",{}),e}catch(t){}}(),Cn=t.clearTimeout!==wt.clearTimeout&&t.clearTimeout,Tn=Ge&&Ge.now!==wt.Date.now&&Ge.now,xn=t.setTimeout!==wt.setTimeout&&t.setTimeout,Sn=ze.ceil,Mn=ze.floor,En=Qe.getOwnPropertySymbols,Pn=pt?pt.isBuffer:i,In=t.isFinite,jn=Ye.join,Rn=yn(Qe.keys,Qe),Ln=ze.max,Nn=ze.min,Dn=Ge.now,Un=t.parseInt,Fn=ze.random,Kn=Ye.reverse,Bn=Oo(t,"DataView"),Vn=Oo(t,"Map"),Gn=Oo(t,"Promise"),Hn=Oo(t,"Set"),$n=Oo(t,"WeakMap"),zn=Oo(Qe,"create"),Qn=$n&&new $n,Wn={},qn=qo(Bn),Jn=qo(Vn),Yn=qo(Gn),Zn=qo(Hn),Xn=qo($n),er=mt?mt.prototype:i,tr=er?er.valueOf:i,nr=er?er.toString:i;function rr(e){if(fu(e)&&!tu(e)&&!(e instanceof ur)){if(e instanceof lr)return e;if(tt.call(e,"__wrapped__"))return Jo(e)}return new lr(e)}var ir=function(){function e(){}return function(t){if(!pu(t))return{};if(At)return At(t);e.prototype=t;var n=new e;return e.prototype=i,n}}();function or(){}function lr(e,t){this.__wrapped__=e,this.__actions__=[],this.__chain__=!!t,this.__index__=0,this.__values__=i}function ur(e){this.__wrapped__=e,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=M,this.__views__=[]}function ar(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t=t?e:t)),e}function Or(e,t,n,r,o,l){var u,p=t&a,f=t&s,d=t&c;if(n&&(u=o?n(e,r,o,l):n(e)),u!==i)return u;if(!pu(e))return e;var h=tu(e);if(h){if(u=function(e){var t=e.length,n=new e.constructor(t);return t&&"string"==typeof e[0]&&tt.call(e,"index")&&(n.index=e.index,n.input=e.input),n}(e),!p)return Ki(e,u)}else{var y=To(e),b=y==K||y==B;if(ou(e))return Ri(e,p);if(y==$||y==j||b&&!o){if(u=f||b?{}:So(e),!p)return f?function(e,t){return Bi(e,Co(e),t)}(e,function(t,n){return t&&Bi(e,Gu(e),t)}(u)):function(e,t){return Bi(e,Ao(e),t)}(e,vr(u,e))}else{if(!bt[y])return o?e:{};u=function(e,t,n){var r=e.constructor;switch(t){case X:return Li(e);case N:case D:return new r(+e);case ee:return function(e,t){var n=t?Li(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.byteLength)}(e,n);case te:case ne:case re:case ie:case oe:case le:case ue:case ae:case se:return Ni(e,n);case V:return new r;case G:case q:return new r(e);case Q:return function(e){var t=new e.constructor(e.source,Re.exec(e));return t.lastIndex=e.lastIndex,t}(e);case W:return new r;case J:return tr?Qe(tr.call(e)):{}}}(e,y,p)}}l||(l=new fr);var m=l.get(e);if(m)return m;if(l.set(e,u),mu(e))return e.forEach(function(r){u.add(Or(r,t,n,r,e,l))}),u;if(du(e))return e.forEach(function(r,i){u.set(i,Or(r,t,n,i,e,l))}),u;var g=h?i:(d?f?bo:yo:f?Gu:Vu)(e);return Nt(g||e,function(r,i){g&&(r=e[i=r]),br(u,i,Or(r,t,n,i,e,l))}),u}function Ar(e,t,n){var r=n.length;if(null==e)return!r;for(e=Qe(e);r--;){var o=n[r],l=e[o];if(l===i&&!(o in e)||!(0,t[o])(l))return!1}return!0}function Cr(e,t,n){if("function"!=typeof e)throw new Je(l);return Vo(function(){e.apply(i,n)},t)}function Tr(e,t,n,r){var i=-1,l=Ft,u=!0,a=e.length,s=[],c=t.length;if(!a)return s;n&&(t=Bt(t,on(n))),r?(l=Kt,u=!1):t.length>=o&&(l=un,u=!1,t=new pr(t));e:for(;++i-1},sr.prototype.set=function(e,t){var n=this.__data__,r=mr(n,e);return r<0?(++this.size,n.push([e,t])):n[r][1]=t,this},cr.prototype.clear=function(){this.size=0,this.__data__={hash:new ar,map:new(Vn||sr),string:new ar}},cr.prototype.delete=function(e){var t=_o(this,e).delete(e);return this.size-=t?1:0,t},cr.prototype.get=function(e){return _o(this,e).get(e)},cr.prototype.has=function(e){return _o(this,e).has(e)},cr.prototype.set=function(e,t){var n=_o(this,e),r=n.size;return n.set(e,t),this.size+=n.size==r?0:1,this},pr.prototype.add=pr.prototype.push=function(e){return this.__data__.set(e,"__lodash_hash_undefined__"),this},pr.prototype.has=function(e){return this.__data__.has(e)},fr.prototype.clear=function(){this.__data__=new sr,this.size=0},fr.prototype.delete=function(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n},fr.prototype.get=function(e){return this.__data__.get(e)},fr.prototype.has=function(e){return this.__data__.has(e)},fr.prototype.set=function(e,t){var n=this.__data__;if(n instanceof sr){var r=n.__data__;if(!Vn||r.length0&&n(u)?t>1?Ir(u,t-1,n,r,i):Vt(i,u):r||(i[i.length]=u)}return i}var jr=$i(),Rr=$i(!0);function Lr(e,t){return e&&jr(e,t,Vu)}function Nr(e,t){return e&&Rr(e,t,Vu)}function Dr(e,t){return Ut(t,function(t){return au(e[t])})}function Ur(e,t){for(var n=0,r=(t=Ei(t,e)).length;null!=e&&nt}function Vr(e,t){return null!=e&&tt.call(e,t)}function Gr(e,t){return null!=e&&t in Qe(e)}function Hr(e,t,n){for(var o=n?Kt:Ft,l=e[0].length,u=e.length,a=u,s=r(u),c=1/0,p=[];a--;){var f=e[a];a&&t&&(f=Bt(f,on(t))),c=Nn(f.length,c),s[a]=!n&&(t||l>=120&&f.length>=120)?new pr(a&&f):i}f=e[0];var d=-1,h=s[0];e:for(;++d=u?a:a*("desc"==n[r]?-1:1)}return e.index-t.index}(e,t,n)});r--;)e[r]=e[r].value;return e}(Xr(e,function(e,n,i){return{criteria:Bt(t,function(t){return t(e)}),index:++r,value:e}}))}function oi(e,t,n){for(var r=-1,i=t.length,o={};++r-1;)u!==e&&xt.call(u,a,1),xt.call(e,a,1);return e}function ui(e,t){for(var n=e?t.length:0,r=n-1;n--;){var i=t[n];if(n==r||i!==o){var o=i;Eo(i)?xt.call(e,i,1):wi(e,i)}}return e}function ai(e,t){return e+Mn(Fn()*(t-e+1))}function si(e,t){var n="";if(!e||t<1||t>T)return n;do{t%2&&(n+=e),(t=Mn(t/2))&&(e+=e)}while(t);return n}function ci(e,t){return Go(Uo(e,t,ha),e+"")}function pi(e,t,n,r){if(!pu(e))return e;for(var o=-1,l=(t=Ei(t,e)).length,u=l-1,a=e;null!=a&&++oo?0:o+t),(n=n>o?o:n)<0&&(n+=o),o=t>n?0:n-t>>>0,t>>>=0;for(var l=r(o);++i>>1,l=e[o];null!==l&&!vu(l)&&(n?l<=t:l=o){var c=t?null:lo(e);if(c)return mn(c);u=!1,i=un,s=new pr}else s=t?[]:a;e:for(;++r=r?e:hi(e,t,n)}var ji=Cn||function(e){return wt.clearTimeout(e)};function Ri(e,t){if(t)return e.slice();var n=e.length,r=_t?_t(n):new e.constructor(n);return e.copy(r),r}function Li(e){var t=new e.constructor(e.byteLength);return new kt(t).set(new kt(e)),t}function Ni(e,t){var n=t?Li(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.length)}function Di(e,t){if(e!==t){var n=e!==i,r=null===e,o=e==e,l=vu(e),u=t!==i,a=null===t,s=t==t,c=vu(t);if(!a&&!c&&!l&&e>t||l&&u&&s&&!a&&!c||r&&u&&s||!n&&s||!o)return 1;if(!r&&!l&&!c&&e1?n[o-1]:i,u=o>2?n[2]:i;for(l=e.length>3&&"function"==typeof l?(o--,l):i,u&&Po(n[0],n[1],u)&&(l=o<3?i:l,o=1),t=Qe(t);++r-1?o[l?t[u]:u]:i}}function Ji(e){return ho(function(t){var n=t.length,r=n,o=lr.prototype.thru;for(e&&t.reverse();r--;){var u=t[r];if("function"!=typeof u)throw new Je(l);if(o&&!a&&"wrapper"==go(u))var a=new lr([],!0)}for(r=a?r:n;++r1&&b.reverse(),f&&ca))return!1;var c=l.get(e);if(c&&l.get(t))return c==t;var d=-1,h=!0,y=n&f?new pr:i;for(l.set(e,t),l.set(t,e);++d-1&&e%1==0&&e1?"& ":"")+t[r],t=t.join(n>2?", ":" "),e.replace(Se,"{\n/* [wrapped with "+t+"] */\n")}(r,function(e,t){return Nt(I,function(n){var r="_."+n[0];t&n[1]&&!Ft(e,r)&&e.push(r)}),e.sort()}(function(e){var t=e.match(Me);return t?t[1].split(Ee):[]}(r),n)))}function $o(e){var t=0,n=0;return function(){var r=Dn(),o=A-(r-n);if(n=r,o>0){if(++t>=O)return arguments[0]}else t=0;return e.apply(i,arguments)}}function zo(e,t){var n=-1,r=e.length,o=r-1;for(t=t===i?r:t;++n1?e[t-1]:i;return n="function"==typeof n?(e.pop(),n):i,bl(e,n)});function Ol(e){var t=rr(e);return t.__chain__=!0,t}function Al(e,t){return t(e)}var Cl=ho(function(e){var t=e.length,n=t?e[0]:0,r=this.__wrapped__,o=function(t){return _r(t,e)};return!(t>1||this.__actions__.length)&&r instanceof ur&&Eo(n)?((r=r.slice(n,+n+(t?1:0))).__actions__.push({func:Al,args:[o],thisArg:i}),new lr(r,this.__chain__).thru(function(e){return t&&!e.length&&e.push(i),e})):this.thru(o)}),Tl=Vi(function(e,t,n){tt.call(e,n)?++e[n]:kr(e,n,1)}),xl=qi(el),Sl=qi(tl);function Ml(e,t){return(tu(e)?Nt:xr)(e,ko(t,3))}function El(e,t){return(tu(e)?function(e,t){for(var n=null==e?0:e.length;n--&&!1!==t(e[n],n,e););return e}:Sr)(e,ko(t,3))}var Pl=Vi(function(e,t,n){tt.call(e,n)?e[n].push(t):kr(e,n,[t])}),Il=ci(function(e,t,n){var i=-1,o="function"==typeof t,l=ru(e)?r(e.length):[];return xr(e,function(e){l[++i]=o?Rt(t,e,n):$r(e,t,n)}),l}),jl=Vi(function(e,t,n){kr(e,n,t)});function Rl(e,t){return(tu(e)?Bt:Xr)(e,ko(t,3))}var Ll=Vi(function(e,t,n){e[n?0:1].push(t)},function(){return[[],[]]}),Nl=ci(function(e,t){if(null==e)return[];var n=t.length;return n>1&&Po(e,t[0],t[1])?t=[]:n>2&&Po(t[0],t[1],t[2])&&(t=[t[0]]),ii(e,Ir(t,1),[])}),Dl=Tn||function(){return wt.Date.now()};function Ul(e,t,n){return t=n?i:t,ao(e,k,i,i,i,i,t=e&&null==t?e.length:t)}function Fl(e,t){var n;if("function"!=typeof t)throw new Je(l);return e=Cu(e),function(){return--e>0&&(n=t.apply(this,arguments)),e<=1&&(t=i),n}}var Kl=ci(function(e,t,n){var r=d;if(n.length){var i=bn(n,vo(Kl));r|=g}return ao(e,r,t,n,i)}),Bl=ci(function(e,t,n){var r=d|h;if(n.length){var i=bn(n,vo(Bl));r|=g}return ao(t,r,e,n,i)});function Vl(e,t,n){var r,o,u,a,s,c,p=0,f=!1,d=!1,h=!0;if("function"!=typeof e)throw new Je(l);function y(t){var n=r,l=o;return r=o=i,p=t,a=e.apply(l,n)}function b(e){var n=e-c;return c===i||n>=t||n<0||d&&e-p>=u}function m(){var e=Dl();if(b(e))return g(e);s=Vo(m,function(e){var n=t-(e-c);return d?Nn(n,u-(e-p)):n}(e))}function g(e){return s=i,h&&r?y(e):(r=o=i,a)}function v(){var e=Dl(),n=b(e);if(r=arguments,o=this,c=e,n){if(s===i)return function(e){return p=e,s=Vo(m,t),f?y(e):a}(c);if(d)return s=Vo(m,t),y(c)}return s===i&&(s=Vo(m,t)),a}return t=xu(t)||0,pu(n)&&(f=!!n.leading,u=(d="maxWait"in n)?Ln(xu(n.maxWait)||0,t):u,h="trailing"in n?!!n.trailing:h),v.cancel=function(){s!==i&&ji(s),p=0,r=c=o=s=i},v.flush=function(){return s===i?a:g(Dl())},v}var Gl=ci(function(e,t){return Cr(e,1,t)}),Hl=ci(function(e,t,n){return Cr(e,xu(t)||0,n)});function $l(e,t){if("function"!=typeof e||null!=t&&"function"!=typeof t)throw new Je(l);var n=function(){var r=arguments,i=t?t.apply(this,r):r[0],o=n.cache;if(o.has(i))return o.get(i);var l=e.apply(this,r);return n.cache=o.set(i,l)||o,l};return n.cache=new($l.Cache||cr),n}function zl(e){if("function"!=typeof e)throw new Je(l);return function(){var t=arguments;switch(t.length){case 0:return!e.call(this);case 1:return!e.call(this,t[0]);case 2:return!e.call(this,t[0],t[1]);case 3:return!e.call(this,t[0],t[1],t[2])}return!e.apply(this,t)}}$l.Cache=cr;var Ql=Pi(function(e,t){var n=(t=1==t.length&&tu(t[0])?Bt(t[0],on(ko())):Bt(Ir(t,1),on(ko()))).length;return ci(function(r){for(var i=-1,o=Nn(r.length,n);++i=t}),eu=zr(function(){return arguments}())?zr:function(e){return fu(e)&&tt.call(e,"callee")&&!Tt.call(e,"callee")},tu=r.isArray,nu=St?on(St):function(e){return fu(e)&&Kr(e)==X};function ru(e){return null!=e&&cu(e.length)&&!au(e)}function iu(e){return fu(e)&&ru(e)}var ou=Pn||xa,lu=Mt?on(Mt):function(e){return fu(e)&&Kr(e)==D};function uu(e){if(!fu(e))return!1;var t=Kr(e);return t==F||t==U||"string"==typeof e.message&&"string"==typeof e.name&&!yu(e)}function au(e){if(!pu(e))return!1;var t=Kr(e);return t==K||t==B||t==L||t==z}function su(e){return"number"==typeof e&&e==Cu(e)}function cu(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=T}function pu(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}function fu(e){return null!=e&&"object"==typeof e}var du=Et?on(Et):function(e){return fu(e)&&To(e)==V};function hu(e){return"number"==typeof e||fu(e)&&Kr(e)==G}function yu(e){if(!fu(e)||Kr(e)!=$)return!1;var t=Ot(e);if(null===t)return!0;var n=tt.call(t,"constructor")&&t.constructor;return"function"==typeof n&&n instanceof n&&et.call(n)==ot}var bu=Pt?on(Pt):function(e){return fu(e)&&Kr(e)==Q},mu=It?on(It):function(e){return fu(e)&&To(e)==W};function gu(e){return"string"==typeof e||!tu(e)&&fu(e)&&Kr(e)==q}function vu(e){return"symbol"==typeof e||fu(e)&&Kr(e)==J}var ku=jt?on(jt):function(e){return fu(e)&&cu(e.length)&&!!yt[Kr(e)]},_u=ro(Zr),wu=ro(function(e,t){return e<=t});function Ou(e){if(!e)return[];if(ru(e))return gu(e)?kn(e):Ki(e);if(en&&e[en])return function(e){for(var t,n=[];!(t=e.next()).done;)n.push(t.value);return n}(e[en]());var t=To(e);return(t==V?hn:t==W?mn:Yu)(e)}function Au(e){return e?(e=xu(e))===C||e===-C?(e<0?-1:1)*x:e==e?e:0:0===e?e:0}function Cu(e){var t=Au(e),n=t%1;return t==t?n?t-n:t:0}function Tu(e){return e?wr(Cu(e),0,M):0}function xu(e){if("number"==typeof e)return e;if(vu(e))return S;if(pu(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=pu(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=e.replace(Ce,"");var n=Ne.test(e);return n||Ue.test(e)?vt(e.slice(2),n?2:8):Le.test(e)?S:+e}function Su(e){return Bi(e,Gu(e))}function Mu(e){return null==e?"":ki(e)}var Eu=Gi(function(e,t){if(Lo(t)||ru(t))Bi(t,Vu(t),e);else for(var n in t)tt.call(t,n)&&br(e,n,t[n])}),Pu=Gi(function(e,t){Bi(t,Gu(t),e)}),Iu=Gi(function(e,t,n,r){Bi(t,Gu(t),e,r)}),ju=Gi(function(e,t,n,r){Bi(t,Vu(t),e,r)}),Ru=ho(_r),Lu=ci(function(e,t){e=Qe(e);var n=-1,r=t.length,o=r>2?t[2]:i;for(o&&Po(t[0],t[1],o)&&(r=1);++n1),t}),Bi(e,bo(e),n),r&&(n=Or(n,a|s|c,po));for(var i=t.length;i--;)wi(n,t[i]);return n}),Qu=ho(function(e,t){return null==e?{}:function(e,t){return oi(e,t,function(t,n){return Uu(e,n)})}(e,t)});function Wu(e,t){if(null==e)return{};var n=Bt(bo(e),function(e){return[e]});return t=ko(t),oi(e,n,function(e,n){return t(e,n[0])})}var qu=uo(Vu),Ju=uo(Gu);function Yu(e){return null==e?[]:ln(e,Vu(e))}var Zu=Qi(function(e,t,n){return t=t.toLowerCase(),e+(n?Xu(t):t)});function Xu(e){return ua(Mu(e).toLowerCase())}function ea(e){return(e=Mu(e))&&e.replace(Ke,cn).replace(at,"")}var ta=Qi(function(e,t,n){return e+(n?"-":"")+t.toLowerCase()}),na=Qi(function(e,t,n){return e+(n?" ":"")+t.toLowerCase()}),ra=zi("toLowerCase"),ia=Qi(function(e,t,n){return e+(n?"_":"")+t.toLowerCase()}),oa=Qi(function(e,t,n){return e+(n?" ":"")+ua(t)}),la=Qi(function(e,t,n){return e+(n?" ":"")+t.toUpperCase()}),ua=zi("toUpperCase");function aa(e,t,n){return e=Mu(e),(t=n?i:t)===i?function(e){return ft.test(e)}(e)?function(e){return e.match(ct)||[]}(e):function(e){return e.match(Pe)||[]}(e):e.match(t)||[]}var sa=ci(function(e,t){try{return Rt(e,i,t)}catch(n){return uu(n)?n:new He(n)}}),ca=ho(function(e,t){return Nt(t,function(t){t=Wo(t),kr(e,t,Kl(e[t],e))}),e});function pa(e){return function(){return e}}var fa=Ji(),da=Ji(!0);function ha(e){return e}function ya(e){return Jr("function"==typeof e?e:Or(e,a))}var ba=ci(function(e,t){return function(n){return $r(n,e,t)}}),ma=ci(function(e,t){return function(n){return $r(e,n,t)}});function ga(e,t,n){var r=Vu(t),i=Dr(t,r);null!=n||pu(t)&&(i.length||!r.length)||(n=t,t=e,e=this,i=Dr(t,Vu(t)));var o=!(pu(n)&&"chain"in n&&!n.chain),l=au(e);return Nt(i,function(n){var r=t[n];e[n]=r,l&&(e.prototype[n]=function(){var t=this.__chain__;if(o||t){var n=e(this.__wrapped__),i=n.__actions__=Ki(this.__actions__);return i.push({func:r,args:arguments,thisArg:e}),n.__chain__=t,n}return r.apply(e,Vt([this.value()],arguments))})}),e}function va(){}var ka=eo(Bt),_a=eo(Dt),wa=eo($t);function Oa(e){return Io(e)?Xt(Wo(e)):function(e){return function(t){return Ur(t,e)}}(e)}var Aa=no(),Ca=no(!0);function Ta(){return[]}function xa(){return!1}var Sa,Ma=Xi(function(e,t){return e+t},0),Ea=oo("ceil"),Pa=Xi(function(e,t){return e/t},1),Ia=oo("floor"),ja=Xi(function(e,t){return e*t},1),Ra=oo("round"),La=Xi(function(e,t){return e-t},0);return rr.after=function(e,t){if("function"!=typeof t)throw new Je(l);return e=Cu(e),function(){if(--e<1)return t.apply(this,arguments)}},rr.ary=Ul,rr.assign=Eu,rr.assignIn=Pu,rr.assignInWith=Iu,rr.assignWith=ju,rr.at=Ru,rr.before=Fl,rr.bind=Kl,rr.bindAll=ca,rr.bindKey=Bl,rr.castArray=function(){if(!arguments.length)return[];var e=arguments[0];return tu(e)?e:[e]},rr.chain=Ol,rr.chunk=function(e,t,n){t=(n?Po(e,t,n):t===i)?1:Ln(Cu(t),0);var o=null==e?0:e.length;if(!o||t<1)return[];for(var l=0,u=0,a=r(Sn(o/t));lo?0:o+n),(r=r===i||r>o?o:Cu(r))<0&&(r+=o),r=n>r?0:Tu(r);n>>0)?(e=Mu(e))&&("string"==typeof t||null!=t&&!bu(t))&&!(t=ki(t))&&dn(e)?Ii(kn(e),0,n):e.split(t,n):[]},rr.spread=function(e,t){if("function"!=typeof e)throw new Je(l);return t=null==t?0:Ln(Cu(t),0),ci(function(n){var r=n[t],i=Ii(n,0,t);return r&&Vt(i,r),Rt(e,this,i)})},rr.tail=function(e){var t=null==e?0:e.length;return t?hi(e,1,t):[]},rr.take=function(e,t,n){return e&&e.length?hi(e,0,(t=n||t===i?1:Cu(t))<0?0:t):[]},rr.takeRight=function(e,t,n){var r=null==e?0:e.length;return r?hi(e,(t=r-(t=n||t===i?1:Cu(t)))<0?0:t,r):[]},rr.takeRightWhile=function(e,t){return e&&e.length?Ai(e,ko(t,3),!1,!0):[]},rr.takeWhile=function(e,t){return e&&e.length?Ai(e,ko(t,3)):[]},rr.tap=function(e,t){return t(e),e},rr.throttle=function(e,t,n){var r=!0,i=!0;if("function"!=typeof e)throw new Je(l);return pu(n)&&(r="leading"in n?!!n.leading:r,i="trailing"in n?!!n.trailing:i),Vl(e,t,{leading:r,maxWait:t,trailing:i})},rr.thru=Al,rr.toArray=Ou,rr.toPairs=qu,rr.toPairsIn=Ju,rr.toPath=function(e){return tu(e)?Bt(e,Wo):vu(e)?[e]:Ki(Qo(Mu(e)))},rr.toPlainObject=Su,rr.transform=function(e,t,n){var r=tu(e),i=r||ou(e)||ku(e);if(t=ko(t,4),null==n){var o=e&&e.constructor;n=i?r?new o:[]:pu(e)&&au(o)?ir(Ot(e)):{}}return(i?Nt:Lr)(e,function(e,r,i){return t(n,e,r,i)}),n},rr.unary=function(e){return Ul(e,1)},rr.union=fl,rr.unionBy=dl,rr.unionWith=hl,rr.uniq=function(e){return e&&e.length?_i(e):[]},rr.uniqBy=function(e,t){return e&&e.length?_i(e,ko(t,2)):[]},rr.uniqWith=function(e,t){return t="function"==typeof t?t:i,e&&e.length?_i(e,i,t):[]},rr.unset=function(e,t){return null==e||wi(e,t)},rr.unzip=yl,rr.unzipWith=bl,rr.update=function(e,t,n){return null==e?e:Oi(e,t,Mi(n))},rr.updateWith=function(e,t,n,r){return r="function"==typeof r?r:i,null==e?e:Oi(e,t,Mi(n),r)},rr.values=Yu,rr.valuesIn=function(e){return null==e?[]:ln(e,Gu(e))},rr.without=ml,rr.words=aa,rr.wrap=function(e,t){return Wl(Mi(t),e)},rr.xor=gl,rr.xorBy=vl,rr.xorWith=kl,rr.zip=_l,rr.zipObject=function(e,t){return xi(e||[],t||[],br)},rr.zipObjectDeep=function(e,t){return xi(e||[],t||[],pi)},rr.zipWith=wl,rr.entries=qu,rr.entriesIn=Ju,rr.extend=Pu,rr.extendWith=Iu,ga(rr,rr),rr.add=Ma,rr.attempt=sa,rr.camelCase=Zu,rr.capitalize=Xu,rr.ceil=Ea,rr.clamp=function(e,t,n){return n===i&&(n=t,t=i),n!==i&&(n=(n=xu(n))==n?n:0),t!==i&&(t=(t=xu(t))==t?t:0),wr(xu(e),t,n)},rr.clone=function(e){return Or(e,c)},rr.cloneDeep=function(e){return Or(e,a|c)},rr.cloneDeepWith=function(e,t){return Or(e,a|c,t="function"==typeof t?t:i)},rr.cloneWith=function(e,t){return Or(e,c,t="function"==typeof t?t:i)},rr.conformsTo=function(e,t){return null==t||Ar(e,t,Vu(t))},rr.deburr=ea,rr.defaultTo=function(e,t){return null==e||e!=e?t:e},rr.divide=Pa,rr.endsWith=function(e,t,n){e=Mu(e),t=ki(t);var r=e.length,o=n=n===i?r:wr(Cu(n),0,r);return(n-=t.length)>=0&&e.slice(n,o)==t},rr.eq=Yl,rr.escape=function(e){return(e=Mu(e))&&be.test(e)?e.replace(he,pn):e},rr.escapeRegExp=function(e){return(e=Mu(e))&&Ae.test(e)?e.replace(Oe,"\\$&"):e},rr.every=function(e,t,n){var r=tu(e)?Dt:Mr;return n&&Po(e,t,n)&&(t=i),r(e,ko(t,3))},rr.find=xl,rr.findIndex=el,rr.findKey=function(e,t){return Qt(e,ko(t,3),Lr)},rr.findLast=Sl,rr.findLastIndex=tl,rr.findLastKey=function(e,t){return Qt(e,ko(t,3),Nr)},rr.floor=Ia,rr.forEach=Ml,rr.forEachRight=El,rr.forIn=function(e,t){return null==e?e:jr(e,ko(t,3),Gu)},rr.forInRight=function(e,t){return null==e?e:Rr(e,ko(t,3),Gu)},rr.forOwn=function(e,t){return e&&Lr(e,ko(t,3))},rr.forOwnRight=function(e,t){return e&&Nr(e,ko(t,3))},rr.get=Du,rr.gt=Zl,rr.gte=Xl,rr.has=function(e,t){return null!=e&&xo(e,t,Vr)},rr.hasIn=Uu,rr.head=rl,rr.identity=ha,rr.includes=function(e,t,n,r){e=ru(e)?e:Yu(e),n=n&&!r?Cu(n):0;var i=e.length;return n<0&&(n=Ln(i+n,0)),gu(e)?n<=i&&e.indexOf(t,n)>-1:!!i&&qt(e,t,n)>-1},rr.indexOf=function(e,t,n){var r=null==e?0:e.length;if(!r)return-1;var i=null==n?0:Cu(n);return i<0&&(i=Ln(r+i,0)),qt(e,t,i)},rr.inRange=function(e,t,n){return t=Au(t),n===i?(n=t,t=0):n=Au(n),function(e,t,n){return e>=Nn(t,n)&&e=-T&&e<=T},rr.isSet=mu,rr.isString=gu,rr.isSymbol=vu,rr.isTypedArray=ku,rr.isUndefined=function(e){return e===i},rr.isWeakMap=function(e){return fu(e)&&To(e)==Z},rr.isWeakSet=function(e){return fu(e)&&"[object WeakSet]"==Kr(e)},rr.join=function(e,t){return null==e?"":jn.call(e,t)},rr.kebabCase=ta,rr.last=ul,rr.lastIndexOf=function(e,t,n){var r=null==e?0:e.length;if(!r)return-1;var o=r;return n!==i&&(o=(o=Cu(n))<0?Ln(r+o,0):Nn(o,r-1)),t==t?function(e,t,n){for(var r=n+1;r--;)if(e[r]===t)return r;return r}(e,t,o):Wt(e,Yt,o,!0)},rr.lowerCase=na,rr.lowerFirst=ra,rr.lt=_u,rr.lte=wu,rr.max=function(e){return e&&e.length?Er(e,ha,Br):i},rr.maxBy=function(e,t){return e&&e.length?Er(e,ko(t,2),Br):i},rr.mean=function(e){return Zt(e,ha)},rr.meanBy=function(e,t){return Zt(e,ko(t,2))},rr.min=function(e){return e&&e.length?Er(e,ha,Zr):i},rr.minBy=function(e,t){return e&&e.length?Er(e,ko(t,2),Zr):i},rr.stubArray=Ta,rr.stubFalse=xa,rr.stubObject=function(){return{}},rr.stubString=function(){return""},rr.stubTrue=function(){return!0},rr.multiply=ja,rr.nth=function(e,t){return e&&e.length?ri(e,Cu(t)):i},rr.noConflict=function(){return wt._===this&&(wt._=lt),this},rr.noop=va,rr.now=Dl,rr.pad=function(e,t,n){e=Mu(e);var r=(t=Cu(t))?vn(e):0;if(!t||r>=t)return e;var i=(t-r)/2;return to(Mn(i),n)+e+to(Sn(i),n)},rr.padEnd=function(e,t,n){e=Mu(e);var r=(t=Cu(t))?vn(e):0;return t&&rt){var r=e;e=t,t=r}if(n||e%1||t%1){var o=Fn();return Nn(e+o*(t-e+gt("1e-"+((o+"").length-1))),t)}return ai(e,t)},rr.reduce=function(e,t,n){var r=tu(e)?Gt:tn,i=arguments.length<3;return r(e,ko(t,4),n,i,xr)},rr.reduceRight=function(e,t,n){var r=tu(e)?Ht:tn,i=arguments.length<3;return r(e,ko(t,4),n,i,Sr)},rr.repeat=function(e,t,n){return t=(n?Po(e,t,n):t===i)?1:Cu(t),si(Mu(e),t)},rr.replace=function(){var e=arguments,t=Mu(e[0]);return e.length<3?t:t.replace(e[1],e[2])},rr.result=function(e,t,n){var r=-1,o=(t=Ei(t,e)).length;for(o||(o=1,e=i);++rT)return[];var n=M,r=Nn(e,M);t=ko(t),e-=M;for(var i=rn(r,t);++n=l)return e;var a=n-vn(r);if(a<1)return r;var s=u?Ii(u,0,a).join(""):e.slice(0,a);if(o===i)return s+r;if(u&&(a+=s.length-a),bu(o)){if(e.slice(a).search(o)){var c,p=s;for(o.global||(o=We(o.source,Mu(Re.exec(o))+"g")),o.lastIndex=0;c=o.exec(p);)var f=c.index;s=s.slice(0,f===i?a:f)}}else if(e.indexOf(ki(o),a)!=a){var d=s.lastIndexOf(o);d>-1&&(s=s.slice(0,d))}return s+r},rr.unescape=function(e){return(e=Mu(e))&&ye.test(e)?e.replace(de,_n):e},rr.uniqueId=function(e){var t=++nt;return Mu(e)+t},rr.upperCase=la,rr.upperFirst=ua,rr.each=Ml,rr.eachRight=El,rr.first=rl,ga(rr,(Sa={},Lr(rr,function(e,t){tt.call(rr.prototype,t)||(Sa[t]=e)}),Sa),{chain:!1}),rr.VERSION="4.17.11",Nt(["bind","bindKey","curry","curryRight","partial","partialRight"],function(e){rr[e].placeholder=rr}),Nt(["drop","take"],function(e,t){ur.prototype[e]=function(n){n=n===i?1:Ln(Cu(n),0);var r=this.__filtered__&&!t?new ur(this):this.clone();return r.__filtered__?r.__takeCount__=Nn(n,r.__takeCount__):r.__views__.push({size:Nn(n,M),type:e+(r.__dir__<0?"Right":"")}),r},ur.prototype[e+"Right"]=function(t){return this.reverse()[e](t).reverse()}}),Nt(["filter","map","takeWhile"],function(e,t){var n=t+1,r=1==n||3==n;ur.prototype[e]=function(e){var t=this.clone();return t.__iteratees__.push({iteratee:ko(e,3),type:n}),t.__filtered__=t.__filtered__||r,t}}),Nt(["head","last"],function(e,t){var n="take"+(t?"Right":"");ur.prototype[e]=function(){return this[n](1).value()[0]}}),Nt(["initial","tail"],function(e,t){var n="drop"+(t?"":"Right");ur.prototype[e]=function(){return this.__filtered__?new ur(this):this[n](1)}}),ur.prototype.compact=function(){return this.filter(ha)},ur.prototype.find=function(e){return this.filter(e).head()},ur.prototype.findLast=function(e){return this.reverse().find(e)},ur.prototype.invokeMap=ci(function(e,t){return"function"==typeof e?new ur(this):this.map(function(n){return $r(n,e,t)})}),ur.prototype.reject=function(e){return this.filter(zl(ko(e)))},ur.prototype.slice=function(e,t){e=Cu(e);var n=this;return n.__filtered__&&(e>0||t<0)?new ur(n):(e<0?n=n.takeRight(-e):e&&(n=n.drop(e)),t!==i&&(n=(t=Cu(t))<0?n.dropRight(-t):n.take(t-e)),n)},ur.prototype.takeRightWhile=function(e){return this.reverse().takeWhile(e).reverse()},ur.prototype.toArray=function(){return this.take(M)},Lr(ur.prototype,function(e,t){var n=/^(?:filter|find|map|reject)|While$/.test(t),r=/^(?:head|last)$/.test(t),o=rr[r?"take"+("last"==t?"Right":""):t],l=r||/^find/.test(t);o&&(rr.prototype[t]=function(){var t=this.__wrapped__,u=r?[1]:arguments,a=t instanceof ur,s=u[0],c=a||tu(t),p=function(e){var t=o.apply(rr,Vt([e],u));return r&&f?t[0]:t};c&&n&&"function"==typeof s&&1!=s.length&&(a=c=!1);var f=this.__chain__,d=!!this.__actions__.length,h=l&&!f,y=a&&!d;if(!l&&c){t=y?t:new ur(this);var b=e.apply(t,u);return b.__actions__.push({func:Al,args:[p],thisArg:i}),new lr(b,f)}return h&&y?e.apply(this,u):(b=this.thru(p),h?r?b.value()[0]:b.value():b)})}),Nt(["pop","push","shift","sort","splice","unshift"],function(e){var t=Ye[e],n=/^(?:push|sort|unshift)$/.test(e)?"tap":"thru",r=/^(?:pop|shift)$/.test(e);rr.prototype[e]=function(){var e=arguments;if(r&&!this.__chain__){var i=this.value();return t.apply(tu(i)?i:[],e)}return this[n](function(n){return t.apply(tu(n)?n:[],e)})}}),Lr(ur.prototype,function(e,t){var n=rr[t];if(n){var r=n.name+"";(Wn[r]||(Wn[r]=[])).push({name:t,func:n})}}),Wn[Yi(i,h).name]=[{name:"wrapper",func:i}],ur.prototype.clone=function(){var e=new ur(this.__wrapped__);return e.__actions__=Ki(this.__actions__),e.__dir__=this.__dir__,e.__filtered__=this.__filtered__,e.__iteratees__=Ki(this.__iteratees__),e.__takeCount__=this.__takeCount__,e.__views__=Ki(this.__views__),e},ur.prototype.reverse=function(){if(this.__filtered__){var e=new ur(this);e.__dir__=-1,e.__filtered__=!0}else(e=this.clone()).__dir__*=-1;return e},ur.prototype.value=function(){var e=this.__wrapped__.value(),t=this.__dir__,n=tu(e),r=t<0,i=n?e.length:0,o=function(e,t,n){for(var r=-1,i=n.length;++r=this.__values__.length;return{done:e,value:e?i:this.__values__[this.__index__++]}},rr.prototype.plant=function(e){for(var t,n=this;n instanceof or;){var r=Jo(n);r.__index__=0,r.__values__=i,t?o.__wrapped__=r:t=r;var o=r;n=n.__wrapped__}return o.__wrapped__=e,t},rr.prototype.reverse=function(){var e=this.__wrapped__;if(e instanceof ur){var t=e;return this.__actions__.length&&(t=new ur(this)),(t=t.reverse()).__actions__.push({func:Al,args:[pl],thisArg:i}),new lr(t,this.__chain__)}return this.thru(pl)},rr.prototype.toJSON=rr.prototype.valueOf=rr.prototype.value=function(){return Ci(this.__wrapped__,this.__actions__)},rr.prototype.first=rr.prototype.head,en&&(rr.prototype[en]=function(){return this}),rr}();wt._=wn,(r=(function(){return wn}).call(t,n,t,e))===i||(e.exports=r)}).call(this)}).call(this,n("YuTi")(e))},M3cR:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n("2QPq");var i=n("1nxd");t.IpcEvents=i.IpcEvents,r.__exportStar(n("6vzy"),t),r.__exportStar(n("RPol"),t),r.__exportStar(n("reFP"),t),r.__exportStar(n("En2k"),t),t.camelCaseToSentence=function(e){return e.replace(/^[a-z]|[A-Z]/g,function(e,t){return 0===t?e.toUpperCase():" "+e.toLowerCase()})},t.capitalizeFirstLetter=function(e){return e.charAt(0).toUpperCase()+e.slice(1)},t.runInElectron=function(){return window&&window.process&&window.process.type}},MGBS:function(e,t,n){"use strict";n.d(t,"a",function(){return i});var r=n("mrSG"),i=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return r.c(t,e),t.prototype.notifyNext=function(e,t,n,r,i){this.destination.next(t)},t.prototype.notifyError=function(e,t){this.destination.error(e)},t.prototype.notifyComplete=function(e){this.destination.complete()},t}(n("FFOo").a)},McSo:function(e,t,n){"use strict";function r(e){return null!==e&&"object"==typeof e}n.d(t,"a",function(){return r})},"Mfn/":function(e,t,n){"use strict";function r(e,t){return i(e,t,0,65535)}function i(e,t,n,r){const i="_"+t;Object.defineProperty(e,t,{get:function(){return this[i]},set:function(o){if(this[i]!==o){if(or)throw`${e.constructor.name}.${t}: `+`Integer ${o} is outside the valid [${n}, ${r}] interval`;this[i]=o}},enumerable:!0,configurable:!0})}Object.defineProperty(t,"__esModule",{value:!0}),t.assertUInt8=function(e,t){return i(e,t,0,255)},t.assertInt8=function(e,t){return i(e,t,-128,127)},t.assertUInt16=r,t.assertInt16=function(e,t){return i(e,t,-32768,32767)},t.assertUInt32=function(e,t){return i(e,t,0,4294967295)},t.assertInt32=function(e,t){return i(e,t,-2147483648,2147483647)},t.assertCompactLength=function(e,t){return r(e,t)},t.assertEnum=function(e){return function(t,n){const r="_"+n;Object.defineProperty(t,n,{get:function(){return this[r]},set:function(i){if(this[r]!==i){if(void 0===e[i])throw`${t.constructor.name}.${n}: ${i} is not enum`;this[r]=i}},enumerable:!0,configurable:!0})}}},NS47:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n("2QPq"),i=n("Mfn/"),o=n("RGrK");var l,u;!function(e){e[e.mod=0]="mod",e[e.fn=1]="fn",e[e.mouse=2]="mouse"}(l=t.LayerName||(t.LayerName={})),function(e){e.holdAndDoubleTapToggle="holdAndDoubleTapToggle",e.toggle="toggle",e.hold="hold"}(u=t.SwitchLayerMode||(t.SwitchLayerMode={})),t.mapSwitchLayerModeToNumber=e=>{switch(e){case u.holdAndDoubleTapToggle:return 0;case u.toggle:return 1;case u.hold:return 2;default:throw new Error(`Can not map ${e} to number`)}},t.mapNumberToSwitchLayerMode=e=>{switch(e){case 0:return u.holdAndDoubleTapToggle;case 1:return u.toggle;case 2:return u.hold;default:throw new Error(`Can not map "${e}" to SwitchLayerMode`)}};class a extends o.KeyAction{constructor(e){super(),e&&(this.switchLayerMode=e.switchLayerMode,this.layer=e.layer)}fromJsonObject(e){return this.assertKeyActionType(e),this.layer=l[e.layer],this.switchLayerMode="boolean"==typeof e.toggle?e.toggle?u.toggle:u.holdAndDoubleTapToggle:e.switchLayerMode,this}fromBinary(e){return this.readAndAssertKeyActionId(e),this.layer=e.readUInt8(),this.switchLayerMode=t.mapNumberToSwitchLayerMode(e.readUInt8()),this}toJsonObject(){return{keyActionType:o.keyActionType.SwitchLayerAction,layer:l[this.layer],switchLayerMode:this.switchLayerMode}}toBinary(e){e.writeUInt8(o.KeyActionId.SwitchLayerAction),e.writeUInt8(this.layer),e.writeUInt8(t.mapSwitchLayerModeToNumber(this.switchLayerMode))}toString(){return``}getName(){return"SwitchLayerAction"}}r.__decorate([i.assertEnum(u),r.__metadata("design:type",String)],a.prototype,"switchLayerMode",void 0),r.__decorate([i.assertEnum(l),r.__metadata("design:type",Number)],a.prototype,"layer",void 0),t.SwitchLayerAction=a},NmBN:function(e){e.exports=JSON.parse('{"userConfigMajorVersion":4,"userConfigMinorVersion":0,"userConfigPatchVersion":0,"deviceName":"My UHK","doubleTapSwitchLayerTimeout":250,"iconsAndLayerTextsBrightness":255,"alphanumericSegmentsBrightness":255,"keyBacklightBrightness":255,"mouseMoveInitialSpeed":4,"mouseMoveAcceleration":68,"mouseMoveDeceleratedSpeed":8,"mouseMoveBaseSpeed":32,"mouseMoveAcceleratedSpeed":64,"mouseScrollInitialSpeed":20,"mouseScrollAcceleration":20,"mouseScrollDeceleratedSpeed":10,"mouseScrollBaseSpeed":20,"mouseScrollAcceleratedSpeed":50,"moduleConfigurations":[],"keymaps":[{"isDefault":false,"abbreviation":"COM","name":"Colemak for Mac","description":"Colemak is based on QWERTY, but it places the most frequent letters under the strongest fingers. This is the Mac version.","layers":[{"modules":[{"id":0,"keyActions":[{"keyActionType":"keystroke","type":"basic","scancode":36},{"keyActionType":"keystroke","type":"basic","scancode":37},{"keyActionType":"keystroke","type":"basic","scancode":38},{"keyActionType":"keystroke","type":"basic","scancode":39},{"keyActionType":"keystroke","type":"basic","scancode":45},{"keyActionType":"keystroke","type":"basic","scancode":46},{"keyActionType":"keystroke","type":"basic","scancode":42},{"keyActionType":"keystroke","type":"basic","scancode":15},{"keyActionType":"keystroke","type":"basic","scancode":24},{"keyActionType":"keystroke","type":"basic","scancode":28},{"keyActionType":"keystroke","type":"basic","scancode":51},{"keyActionType":"keystroke","type":"basic","scancode":47},{"keyActionType":"keystroke","type":"basic","scancode":48},{"keyActionType":"keystroke","type":"basic","scancode":49},{"keyActionType":"keystroke","type":"basic","scancode":13},{"keyActionType":"keystroke","type":"basic","scancode":17},{"keyActionType":"keystroke","type":"basic","scancode":8},{"keyActionType":"keystroke","type":"basic","scancode":12},{"keyActionType":"keystroke","type":"basic","scancode":18},{"keyActionType":"keystroke","type":"basic","scancode":52},{"keyActionType":"keystroke","type":"basic","scancode":40},{"keyActionType":"keystroke","type":"basic","scancode":11},{"keyActionType":"keystroke","type":"basic","scancode":14},{"keyActionType":"keystroke","type":"basic","scancode":16},{"keyActionType":"keystroke","type":"basic","scancode":54},{"keyActionType":"keystroke","type":"basic","scancode":55},{"keyActionType":"keystroke","type":"basic","scancode":56},{"keyActionType":"keystroke","type":"basic","modifierMask":32},null,{"keyActionType":"keystroke","type":"basic","scancode":44},{"keyActionType":"switchLayer","layer":"mod","switchLayerMode":"holdAndDoubleTapToggle"},{"keyActionType":"switchLayer","layer":"fn","switchLayerMode":"holdAndDoubleTapToggle"},{"keyActionType":"keystroke","type":"basic","modifierMask":128},{"keyActionType":"keystroke","type":"basic","modifierMask":64},{"keyActionType":"keystroke","type":"basic","modifierMask":16}]},{"id":1,"keyActions":[{"keyActionType":"keystroke","type":"basic","scancode":53},{"keyActionType":"keystroke","type":"basic","scancode":30},{"keyActionType":"keystroke","type":"basic","scancode":31},{"keyActionType":"keystroke","type":"basic","scancode":32},{"keyActionType":"keystroke","type":"basic","scancode":33},{"keyActionType":"keystroke","type":"basic","scancode":34},{"keyActionType":"keystroke","type":"basic","scancode":35},{"keyActionType":"keystroke","type":"basic","scancode":43},{"keyActionType":"keystroke","type":"basic","scancode":20},{"keyActionType":"keystroke","type":"basic","scancode":26},{"keyActionType":"keystroke","type":"basic","scancode":9},{"keyActionType":"keystroke","type":"basic","scancode":19},null,{"keyActionType":"keystroke","type":"basic","scancode":10},{"keyActionType":"switchLayer","layer":"mouse","switchLayerMode":"holdAndDoubleTapToggle"},{"keyActionType":"keystroke","type":"basic","scancode":4},{"keyActionType":"keystroke","type":"basic","scancode":21},{"keyActionType":"keystroke","type":"basic","scancode":22},{"keyActionType":"keystroke","type":"basic","scancode":23},null,{"keyActionType":"keystroke","type":"basic","scancode":7},{"keyActionType":"keystroke","type":"basic","modifierMask":2},{"keyActionType":"keystroke","type":"basic","scancode":100},{"keyActionType":"keystroke","type":"basic","scancode":29},{"keyActionType":"keystroke","type":"basic","scancode":27},{"keyActionType":"keystroke","type":"basic","scancode":6},{"keyActionType":"keystroke","type":"basic","scancode":25},{"keyActionType":"keystroke","type":"basic","scancode":5},{"keyActionType":"keystroke","type":"basic","modifierMask":1},{"keyActionType":"keystroke","type":"basic","modifierMask":4},{"keyActionType":"keystroke","type":"basic","modifierMask":8},{"keyActionType":"switchLayer","layer":"fn","switchLayerMode":"holdAndDoubleTapToggle"},{"keyActionType":"keystroke","type":"basic","scancode":44},{"keyActionType":"switchLayer","layer":"mod","switchLayerMode":"holdAndDoubleTapToggle"},null]},{"id":2,"keyActions":[]}]},{"modules":[{"id":0,"keyActions":[{"keyActionType":"keystroke","type":"basic","scancode":64},{"keyActionType":"keystroke","type":"basic","scancode":65},{"keyActionType":"keystroke","type":"basic","scancode":66},{"keyActionType":"keystroke","type":"basic","scancode":67},{"keyActionType":"keystroke","type":"basic","scancode":68},{"keyActionType":"keystroke","type":"basic","scancode":69},{"keyActionType":"keystroke","type":"basic","scancode":76},{"keyActionType":"keystroke","type":"basic","scancode":74},{"keyActionType":"keystroke","type":"basic","scancode":82},{"keyActionType":"keystroke","type":"basic","scancode":77},{"keyActionType":"keystroke","type":"basic","scancode":76},{"keyActionType":"keystroke","type":"basic","scancode":70},{"keyActionType":"keystroke","type":"basic","scancode":71},{"keyActionType":"keystroke","type":"basic","scancode":72},{"keyActionType":"keystroke","type":"basic","scancode":75},{"keyActionType":"keystroke","type":"basic","scancode":80},{"keyActionType":"keystroke","type":"basic","scancode":81},{"keyActionType":"keystroke","type":"basic","scancode":79},{"keyActionType":"keystroke","type":"basic","scancode":73},null,null,{"keyActionType":"keystroke","type":"basic","scancode":78},{"keyActionType":"keystroke","type":"basic","scancode":41},null,null,null,{"keyActionType":"keystroke","type":"basic","scancode":101},{"keyActionType":"keystroke","type":"basic","modifierMask":32},null,null,{"keyActionType":"switchLayer","layer":"mod","switchLayerMode":"holdAndDoubleTapToggle"},null,{"keyActionType":"keystroke","type":"basic","modifierMask":128},{"keyActionType":"keystroke","type":"basic","modifierMask":64},{"keyActionType":"keystroke","type":"basic","modifierMask":16}]},{"id":1,"keyActions":[{"keyActionType":"keystroke","type":"basic","scancode":41},{"keyActionType":"keystroke","type":"basic","scancode":58},{"keyActionType":"keystroke","type":"basic","scancode":59},{"keyActionType":"keystroke","type":"basic","scancode":60},{"keyActionType":"keystroke","type":"basic","scancode":61},{"keyActionType":"keystroke","type":"basic","scancode":62},{"keyActionType":"keystroke","type":"basic","scancode":63},null,{"keyActionType":"keystroke","type":"basic","scancode":41},{"keyActionType":"keystroke","type":"basic","scancode":80,"modifierMask":12},{"keyActionType":"keystroke","type":"basic","scancode":23,"modifierMask":8},{"keyActionType":"keystroke","type":"basic","scancode":79,"modifierMask":12},null,null,null,{"keyActionType":"keystroke","type":"basic","scancode":57},{"keyActionType":"keystroke","type":"basic","scancode":80,"modifierMask":1},{"keyActionType":"keystroke","type":"basic","scancode":43,"modifierMask":8},{"keyActionType":"keystroke","type":"basic","scancode":79,"modifierMask":1},null,null,{"keyActionType":"keystroke","type":"basic","modifierMask":2},null,null,null,{"keyActionType":"keystroke","type":"basic","scancode":26,"modifierMask":8},null,null,{"keyActionType":"keystroke","type":"basic","modifierMask":1},{"keyActionType":"keystroke","type":"basic","modifierMask":4},{"keyActionType":"keystroke","type":"basic","modifierMask":8},null,null,{"keyActionType":"switchLayer","layer":"mod","switchLayerMode":"holdAndDoubleTapToggle"},null]}]},{"modules":[{"id":0,"keyActions":[null,null,null,null,null,null,null,{"keyActionType":"keystroke","type":"media","scancode":205},{"keyActionType":"keystroke","type":"media","scancode":233},null,null,null,null,{"keyActionType":"keystroke","type":"media","scancode":184,"modifierMask":12},null,{"keyActionType":"keystroke","type":"media","scancode":182},{"keyActionType":"keystroke","type":"media","scancode":234},{"keyActionType":"keystroke","type":"media","scancode":181},null,null,null,null,null,null,{"keyActionType":"keystroke","type":"media","scancode":226},null,null,{"keyActionType":"keystroke","type":"basic","modifierMask":32},null,null,null,{"keyActionType":"switchLayer","layer":"fn","switchLayerMode":"holdAndDoubleTapToggle"},{"keyActionType":"keystroke","type":"basic","modifierMask":128},{"keyActionType":"keystroke","type":"basic","modifierMask":64},{"keyActionType":"keystroke","type":"basic","modifierMask":16}]},{"id":1,"keyActions":[null,{"keyActionType":"switchKeymap","keymapAbbreviation":"QWR"},{"keyActionType":"switchKeymap","keymapAbbreviation":"DVO"},{"keyActionType":"switchKeymap","keymapAbbreviation":"COL"},{"keyActionType":"switchKeymap","keymapAbbreviation":"QWM"},{"keyActionType":"switchKeymap","keymapAbbreviation":"DVM"},null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,{"keyActionType":"keystroke","type":"basic","modifierMask":2},null,null,null,null,null,null,{"keyActionType":"keystroke","type":"basic","modifierMask":1},{"keyActionType":"keystroke","type":"basic","modifierMask":4},{"keyActionType":"keystroke","type":"basic","modifierMask":8},{"keyActionType":"switchLayer","layer":"fn","switchLayerMode":"holdAndDoubleTapToggle"},null,null,null]}]},{"modules":[{"id":0,"keyActions":[null,null,null,null,null,null,{"keyActionType":"switchKeymap","keymapAbbreviation":"TES"},{"keyActionType":"mouse","mouseAction":"scrollLeft"},{"keyActionType":"mouse","mouseAction":"moveUp"},{"keyActionType":"mouse","mouseAction":"scrollRight"},null,null,null,null,{"keyActionType":"mouse","mouseAction":"scrollDown"},{"keyActionType":"mouse","mouseAction":"moveLeft"},{"keyActionType":"mouse","mouseAction":"moveDown"},{"keyActionType":"mouse","mouseAction":"moveRight"},null,null,null,{"keyActionType":"mouse","mouseAction":"scrollUp"},null,null,null,null,null,{"keyActionType":"keystroke","type":"basic","modifierMask":32},null,{"keyActionType":"mouse","mouseAction":"leftClick"},{"keyActionType":"mouse","mouseAction":"rightClick"},null,{"keyActionType":"keystroke","type":"basic","modifierMask":128},{"keyActionType":"keystroke","type":"basic","modifierMask":64},{"keyActionType":"keystroke","type":"basic","modifierMask":16}]},{"id":1,"keyActions":[null,{"keyActionType":"switchKeymap","keymapAbbreviation":"QWR"},{"keyActionType":"switchKeymap","keymapAbbreviation":"DVO"},null,null,null,null,null,null,null,null,null,null,null,{"keyActionType":"switchLayer","layer":"mouse","switchLayerMode":"holdAndDoubleTapToggle"},null,{"keyActionType":"mouse","mouseAction":"rightClick"},{"keyActionType":"mouse","mouseAction":"middleClick"},{"keyActionType":"mouse","mouseAction":"leftClick"},null,null,{"keyActionType":"keystroke","type":"basic","modifierMask":2},null,null,null,null,null,null,{"keyActionType":"keystroke","type":"basic","modifierMask":1},{"keyActionType":"keystroke","type":"basic","modifierMask":4},{"keyActionType":"keystroke","type":"basic","modifierMask":8},null,{"keyActionType":"mouse","mouseAction":"decelerate"},{"keyActionType":"mouse","mouseAction":"accelerate"},null]}]}]},{"isDefault":false,"abbreviation":"COL","name":"Colemak for PC","description":"Colemak is based on QWERTY, but it places the most frequent letters under the strongest fingers. This is the PC version.\\n","layers":[{"modules":[{"id":0,"keyActions":[{"keyActionType":"keystroke","type":"basic","scancode":36},{"keyActionType":"keystroke","type":"basic","scancode":37},{"keyActionType":"keystroke","type":"basic","scancode":38},{"keyActionType":"keystroke","type":"basic","scancode":39},{"keyActionType":"keystroke","type":"basic","scancode":45},{"keyActionType":"keystroke","type":"basic","scancode":46},{"keyActionType":"keystroke","type":"basic","scancode":42},{"keyActionType":"keystroke","type":"basic","scancode":15},{"keyActionType":"keystroke","type":"basic","scancode":24},{"keyActionType":"keystroke","type":"basic","scancode":28},{"keyActionType":"keystroke","type":"basic","scancode":51},{"keyActionType":"keystroke","type":"basic","scancode":47},{"keyActionType":"keystroke","type":"basic","scancode":48},{"keyActionType":"keystroke","type":"basic","scancode":49},{"keyActionType":"keystroke","type":"basic","scancode":13},{"keyActionType":"keystroke","type":"basic","scancode":17},{"keyActionType":"keystroke","type":"basic","scancode":8},{"keyActionType":"keystroke","type":"basic","scancode":12},{"keyActionType":"keystroke","type":"basic","scancode":18},{"keyActionType":"keystroke","type":"basic","scancode":52},{"keyActionType":"keystroke","type":"basic","scancode":40},{"keyActionType":"keystroke","type":"basic","scancode":11},{"keyActionType":"keystroke","type":"basic","scancode":14},{"keyActionType":"keystroke","type":"basic","scancode":16},{"keyActionType":"keystroke","type":"basic","scancode":54},{"keyActionType":"keystroke","type":"basic","scancode":55},{"keyActionType":"keystroke","type":"basic","scancode":56},{"keyActionType":"keystroke","type":"basic","modifierMask":32},null,{"keyActionType":"keystroke","type":"basic","scancode":44},{"keyActionType":"switchLayer","layer":"mod","switchLayerMode":"holdAndDoubleTapToggle"},{"keyActionType":"switchLayer","layer":"fn","switchLayerMode":"holdAndDoubleTapToggle"},{"keyActionType":"keystroke","type":"basic","modifierMask":64},{"keyActionType":"keystroke","type":"basic","modifierMask":128},{"keyActionType":"keystroke","type":"basic","modifierMask":16}]},{"id":1,"keyActions":[{"keyActionType":"keystroke","type":"basic","scancode":53},{"keyActionType":"keystroke","type":"basic","scancode":30},{"keyActionType":"keystroke","type":"basic","scancode":31},{"keyActionType":"keystroke","type":"basic","scancode":32},{"keyActionType":"keystroke","type":"basic","scancode":33},{"keyActionType":"keystroke","type":"basic","scancode":34},{"keyActionType":"keystroke","type":"basic","scancode":35},{"keyActionType":"keystroke","type":"basic","scancode":43},{"keyActionType":"keystroke","type":"basic","scancode":20},{"keyActionType":"keystroke","type":"basic","scancode":26},{"keyActionType":"keystroke","type":"basic","scancode":9},{"keyActionType":"keystroke","type":"basic","scancode":19},null,{"keyActionType":"keystroke","type":"basic","scancode":10},{"keyActionType":"switchLayer","layer":"mouse","switchLayerMode":"holdAndDoubleTapToggle"},{"keyActionType":"keystroke","type":"basic","scancode":4},{"keyActionType":"keystroke","type":"basic","scancode":21},{"keyActionType":"keystroke","type":"basic","scancode":22},{"keyActionType":"keystroke","type":"basic","scancode":23},null,{"keyActionType":"keystroke","type":"basic","scancode":7},{"keyActionType":"keystroke","type":"basic","modifierMask":2},{"keyActionType":"keystroke","type":"basic","scancode":100},{"keyActionType":"keystroke","type":"basic","scancode":29},{"keyActionType":"keystroke","type":"basic","scancode":27},{"keyActionType":"keystroke","type":"basic","scancode":6},{"keyActionType":"keystroke","type":"basic","scancode":25},{"keyActionType":"keystroke","type":"basic","scancode":5},{"keyActionType":"keystroke","type":"basic","modifierMask":1},{"keyActionType":"keystroke","type":"basic","modifierMask":8},{"keyActionType":"keystroke","type":"basic","modifierMask":4},{"keyActionType":"switchLayer","layer":"fn","switchLayerMode":"holdAndDoubleTapToggle"},{"keyActionType":"keystroke","type":"basic","scancode":44},{"keyActionType":"switchLayer","layer":"mod","switchLayerMode":"holdAndDoubleTapToggle"},null]},{"id":2,"keyActions":[]}]},{"modules":[{"id":0,"keyActions":[{"keyActionType":"keystroke","type":"basic","scancode":64},{"keyActionType":"keystroke","type":"basic","scancode":65},{"keyActionType":"keystroke","type":"basic","scancode":66},{"keyActionType":"keystroke","type":"basic","scancode":67},{"keyActionType":"keystroke","type":"basic","scancode":68},{"keyActionType":"keystroke","type":"basic","scancode":69},{"keyActionType":"keystroke","type":"basic","scancode":76},{"keyActionType":"keystroke","type":"basic","scancode":74},{"keyActionType":"keystroke","type":"basic","scancode":82},{"keyActionType":"keystroke","type":"basic","scancode":77},{"keyActionType":"keystroke","type":"basic","scancode":76},{"keyActionType":"keystroke","type":"basic","scancode":70},{"keyActionType":"keystroke","type":"basic","scancode":71},{"keyActionType":"keystroke","type":"basic","scancode":72},{"keyActionType":"keystroke","type":"basic","scancode":75},{"keyActionType":"keystroke","type":"basic","scancode":80},{"keyActionType":"keystroke","type":"basic","scancode":81},{"keyActionType":"keystroke","type":"basic","scancode":79},{"keyActionType":"keystroke","type":"basic","scancode":73},null,null,{"keyActionType":"keystroke","type":"basic","scancode":78},{"keyActionType":"keystroke","type":"basic","scancode":41},null,null,null,{"keyActionType":"keystroke","type":"basic","scancode":101},{"keyActionType":"keystroke","type":"basic","modifierMask":32},null,null,{"keyActionType":"switchLayer","layer":"mod","switchLayerMode":"holdAndDoubleTapToggle"},null,{"keyActionType":"keystroke","type":"basic","modifierMask":64},{"keyActionType":"keystroke","type":"basic","modifierMask":128},{"keyActionType":"keystroke","type":"basic","modifierMask":16}]},{"id":1,"keyActions":[{"keyActionType":"keystroke","type":"basic","scancode":41},{"keyActionType":"keystroke","type":"basic","scancode":58},{"keyActionType":"keystroke","type":"basic","scancode":59},{"keyActionType":"keystroke","type":"basic","scancode":60},{"keyActionType":"keystroke","type":"basic","scancode":61},{"keyActionType":"keystroke","type":"basic","scancode":62},{"keyActionType":"keystroke","type":"basic","scancode":63},null,{"keyActionType":"keystroke","type":"basic","scancode":41},{"keyActionType":"keystroke","type":"basic","scancode":75,"modifierMask":1},{"keyActionType":"keystroke","type":"basic","scancode":23,"modifierMask":1},{"keyActionType":"keystroke","type":"basic","scancode":78,"modifierMask":1},null,null,null,{"keyActionType":"keystroke","type":"basic","scancode":57},{"keyActionType":"keystroke","type":"basic","scancode":80,"modifierMask":5},{"keyActionType":"keystroke","type":"basic","scancode":43,"modifierMask":4},{"keyActionType":"keystroke","type":"basic","scancode":79,"modifierMask":5},null,null,{"keyActionType":"keystroke","type":"basic","modifierMask":2},null,null,{"keyActionType":"keystroke","type":"basic","scancode":75,"modifierMask":3},{"keyActionType":"keystroke","type":"basic","scancode":26,"modifierMask":1},{"keyActionType":"keystroke","type":"basic","scancode":78,"modifierMask":3},null,{"keyActionType":"keystroke","type":"basic","modifierMask":1},{"keyActionType":"keystroke","type":"basic","modifierMask":8},{"keyActionType":"keystroke","type":"basic","modifierMask":4},null,null,{"keyActionType":"switchLayer","layer":"mod","switchLayerMode":"holdAndDoubleTapToggle"},null]}]},{"modules":[{"id":0,"keyActions":[null,null,null,null,null,null,null,{"keyActionType":"keystroke","type":"media","scancode":205},{"keyActionType":"keystroke","type":"media","scancode":233},null,null,null,null,{"keyActionType":"keystroke","type":"system","scancode":130},null,{"keyActionType":"keystroke","type":"media","scancode":182},{"keyActionType":"keystroke","type":"media","scancode":234},{"keyActionType":"keystroke","type":"media","scancode":181},null,null,null,null,null,null,{"keyActionType":"keystroke","type":"media","scancode":226},null,null,{"keyActionType":"keystroke","type":"basic","modifierMask":32},null,null,null,{"keyActionType":"switchLayer","layer":"fn","switchLayerMode":"holdAndDoubleTapToggle"},{"keyActionType":"keystroke","type":"basic","modifierMask":64},{"keyActionType":"keystroke","type":"basic","modifierMask":128},{"keyActionType":"keystroke","type":"basic","modifierMask":16}]},{"id":1,"keyActions":[null,{"keyActionType":"switchKeymap","keymapAbbreviation":"QWR"},{"keyActionType":"switchKeymap","keymapAbbreviation":"DVO"},null,{"keyActionType":"switchKeymap","keymapAbbreviation":"QWM"},{"keyActionType":"switchKeymap","keymapAbbreviation":"DVM"},{"keyActionType":"switchKeymap","keymapAbbreviation":"COM"},null,null,null,null,null,null,null,null,null,null,null,null,null,null,{"keyActionType":"keystroke","type":"basic","modifierMask":2},null,null,null,null,null,null,{"keyActionType":"keystroke","type":"basic","modifierMask":1},{"keyActionType":"keystroke","type":"basic","modifierMask":8},{"keyActionType":"keystroke","type":"basic","modifierMask":4},{"keyActionType":"switchLayer","layer":"fn","switchLayerMode":"holdAndDoubleTapToggle"},null,null,null]}]},{"modules":[{"id":0,"keyActions":[null,null,null,null,null,null,{"keyActionType":"switchKeymap","keymapAbbreviation":"TES"},{"keyActionType":"mouse","mouseAction":"scrollLeft"},{"keyActionType":"mouse","mouseAction":"moveUp"},{"keyActionType":"mouse","mouseAction":"scrollRight"},null,null,null,null,{"keyActionType":"mouse","mouseAction":"scrollUp"},{"keyActionType":"mouse","mouseAction":"moveLeft"},{"keyActionType":"mouse","mouseAction":"moveDown"},{"keyActionType":"mouse","mouseAction":"moveRight"},null,null,null,{"keyActionType":"mouse","mouseAction":"scrollDown"},null,null,null,null,null,{"keyActionType":"keystroke","type":"basic","modifierMask":32},null,{"keyActionType":"mouse","mouseAction":"leftClick"},{"keyActionType":"mouse","mouseAction":"rightClick"},null,{"keyActionType":"keystroke","type":"basic","modifierMask":64},{"keyActionType":"keystroke","type":"basic","modifierMask":128},{"keyActionType":"keystroke","type":"basic","modifierMask":16}]},{"id":1,"keyActions":[null,{"keyActionType":"switchKeymap","keymapAbbreviation":"QWR"},{"keyActionType":"switchKeymap","keymapAbbreviation":"DVO"},null,null,null,null,null,null,null,null,null,null,null,{"keyActionType":"switchLayer","layer":"mouse","switchLayerMode":"holdAndDoubleTapToggle"},null,{"keyActionType":"mouse","mouseAction":"rightClick"},{"keyActionType":"mouse","mouseAction":"middleClick"},{"keyActionType":"mouse","mouseAction":"leftClick"},null,null,{"keyActionType":"keystroke","type":"basic","modifierMask":2},null,null,null,null,null,null,{"keyActionType":"keystroke","type":"basic","modifierMask":1},{"keyActionType":"keystroke","type":"basic","modifierMask":8},{"keyActionType":"keystroke","type":"basic","modifierMask":4},null,{"keyActionType":"mouse","mouseAction":"decelerate"},{"keyActionType":"mouse","mouseAction":"accelerate"},null]}]}]},{"isDefault":false,"abbreviation":"DVM","name":"Dvorak for Mac","description":"The Dvorak keyboard layout was designed with the goal of maximizing typing efficiency. This is the Mac version.","layers":[{"modules":[{"id":0,"keyActions":[{"keyActionType":"keystroke","type":"basic","scancode":36},{"keyActionType":"keystroke","type":"basic","scancode":37},{"keyActionType":"keystroke","type":"basic","scancode":38},{"keyActionType":"keystroke","type":"basic","scancode":39},{"keyActionType":"keystroke","type":"basic","scancode":47},{"keyActionType":"keystroke","type":"basic","scancode":48},{"keyActionType":"keystroke","type":"basic","scancode":42},{"keyActionType":"keystroke","type":"basic","scancode":10},{"keyActionType":"keystroke","type":"basic","scancode":6},{"keyActionType":"keystroke","type":"basic","scancode":21},{"keyActionType":"keystroke","type":"basic","scancode":15},{"keyActionType":"keystroke","type":"basic","scancode":56},{"keyActionType":"keystroke","type":"basic","scancode":46},{"keyActionType":"keystroke","type":"basic","scancode":49},{"keyActionType":"keystroke","type":"basic","scancode":9},{"keyActionType":"keystroke","type":"basic","scancode":11},{"keyActionType":"keystroke","type":"basic","scancode":23},{"keyActionType":"keystroke","type":"basic","scancode":17},{"keyActionType":"keystroke","type":"basic","scancode":22},{"keyActionType":"keystroke","type":"basic","scancode":45},{"keyActionType":"keystroke","type":"basic","scancode":40},{"keyActionType":"keystroke","type":"basic","scancode":7},{"keyActionType":"keystroke","type":"basic","scancode":5},{"keyActionType":"keystroke","type":"basic","scancode":16},{"keyActionType":"keystroke","type":"basic","scancode":26},{"keyActionType":"keystroke","type":"basic","scancode":25},{"keyActionType":"keystroke","type":"basic","scancode":29},{"keyActionType":"keystroke","type":"basic","modifierMask":32},null,{"keyActionType":"keystroke","type":"basic","scancode":44},{"keyActionType":"switchLayer","layer":"mod","switchLayerMode":"holdAndDoubleTapToggle"},{"keyActionType":"switchLayer","layer":"fn","switchLayerMode":"holdAndDoubleTapToggle"},{"keyActionType":"keystroke","type":"basic","modifierMask":128},{"keyActionType":"keystroke","type":"basic","modifierMask":64},{"keyActionType":"keystroke","type":"basic","modifierMask":16}]},{"id":1,"keyActions":[{"keyActionType":"keystroke","type":"basic","scancode":53},{"keyActionType":"keystroke","type":"basic","scancode":30},{"keyActionType":"keystroke","type":"basic","scancode":31},{"keyActionType":"keystroke","type":"basic","scancode":32},{"keyActionType":"keystroke","type":"basic","scancode":33},{"keyActionType":"keystroke","type":"basic","scancode":34},{"keyActionType":"keystroke","type":"basic","scancode":35},{"keyActionType":"keystroke","type":"basic","scancode":43},{"keyActionType":"keystroke","type":"basic","scancode":52},{"keyActionType":"keystroke","type":"basic","scancode":54},{"keyActionType":"keystroke","type":"basic","scancode":55},{"keyActionType":"keystroke","type":"basic","scancode":19},null,{"keyActionType":"keystroke","type":"basic","scancode":28},{"keyActionType":"switchLayer","layer":"mouse","switchLayerMode":"holdAndDoubleTapToggle"},{"keyActionType":"keystroke","type":"basic","scancode":4},{"keyActionType":"keystroke","type":"basic","scancode":18},{"keyActionType":"keystroke","type":"basic","scancode":8},{"keyActionType":"keystroke","type":"basic","scancode":24},null,{"keyActionType":"keystroke","type":"basic","scancode":12},{"keyActionType":"keystroke","type":"basic","modifierMask":2},{"keyActionType":"keystroke","type":"basic","scancode":100},{"keyActionType":"keystroke","type":"basic","scancode":51},{"keyActionType":"keystroke","type":"basic","scancode":20},{"keyActionType":"keystroke","type":"basic","scancode":13},{"keyActionType":"keystroke","type":"basic","scancode":14},{"keyActionType":"keystroke","type":"basic","scancode":27},{"keyActionType":"keystroke","type":"basic","modifierMask":1},{"keyActionType":"keystroke","type":"basic","modifierMask":4},{"keyActionType":"keystroke","type":"basic","modifierMask":8},{"keyActionType":"switchLayer","layer":"fn","switchLayerMode":"holdAndDoubleTapToggle"},{"keyActionType":"keystroke","type":"basic","scancode":44},{"keyActionType":"switchLayer","layer":"mod","switchLayerMode":"holdAndDoubleTapToggle"},null]},{"id":2,"keyActions":[]}]},{"modules":[{"id":0,"keyActions":[{"keyActionType":"keystroke","type":"basic","scancode":64},{"keyActionType":"keystroke","type":"basic","scancode":65},{"keyActionType":"keystroke","type":"basic","scancode":66},{"keyActionType":"keystroke","type":"basic","scancode":67},{"keyActionType":"keystroke","type":"basic","scancode":68},{"keyActionType":"keystroke","type":"basic","scancode":69},{"keyActionType":"keystroke","type":"basic","scancode":76},{"keyActionType":"keystroke","type":"basic","scancode":74},{"keyActionType":"keystroke","type":"basic","scancode":82},{"keyActionType":"keystroke","type":"basic","scancode":77},{"keyActionType":"keystroke","type":"basic","scancode":76},{"keyActionType":"keystroke","type":"basic","scancode":70},{"keyActionType":"keystroke","type":"basic","scancode":71},{"keyActionType":"keystroke","type":"basic","scancode":72},{"keyActionType":"keystroke","type":"basic","scancode":75},{"keyActionType":"keystroke","type":"basic","scancode":80},{"keyActionType":"keystroke","type":"basic","scancode":81},{"keyActionType":"keystroke","type":"basic","scancode":79},{"keyActionType":"keystroke","type":"basic","scancode":73},null,null,{"keyActionType":"keystroke","type":"basic","scancode":78},{"keyActionType":"keystroke","type":"basic","scancode":41},null,null,null,{"keyActionType":"keystroke","type":"basic","scancode":101},{"keyActionType":"keystroke","type":"basic","modifierMask":32},null,null,{"keyActionType":"switchLayer","layer":"mod","switchLayerMode":"holdAndDoubleTapToggle"},null,{"keyActionType":"keystroke","type":"basic","modifierMask":128},{"keyActionType":"keystroke","type":"basic","modifierMask":64},{"keyActionType":"keystroke","type":"basic","modifierMask":16}]},{"id":1,"keyActions":[{"keyActionType":"keystroke","type":"basic","scancode":41},{"keyActionType":"keystroke","type":"basic","scancode":58},{"keyActionType":"keystroke","type":"basic","scancode":59},{"keyActionType":"keystroke","type":"basic","scancode":60},{"keyActionType":"keystroke","type":"basic","scancode":61},{"keyActionType":"keystroke","type":"basic","scancode":62},{"keyActionType":"keystroke","type":"basic","scancode":63},null,{"keyActionType":"keystroke","type":"basic","scancode":41},{"keyActionType":"keystroke","type":"basic","scancode":80,"modifierMask":12},{"keyActionType":"keystroke","type":"basic","scancode":23,"modifierMask":8},{"keyActionType":"keystroke","type":"basic","scancode":79,"modifierMask":12},null,null,null,{"keyActionType":"keystroke","type":"basic","scancode":57},{"keyActionType":"keystroke","type":"basic","scancode":80,"modifierMask":1},{"keyActionType":"keystroke","type":"basic","scancode":43,"modifierMask":8},{"keyActionType":"keystroke","type":"basic","scancode":79,"modifierMask":1},null,null,{"keyActionType":"keystroke","type":"basic","modifierMask":2},null,null,null,{"keyActionType":"keystroke","type":"basic","scancode":26,"modifierMask":8},null,null,{"keyActionType":"keystroke","type":"basic","modifierMask":1},{"keyActionType":"keystroke","type":"basic","modifierMask":4},{"keyActionType":"keystroke","type":"basic","modifierMask":8},null,null,{"keyActionType":"switchLayer","layer":"mod","switchLayerMode":"holdAndDoubleTapToggle"},null]}]},{"modules":[{"id":0,"keyActions":[null,null,null,null,null,null,null,{"keyActionType":"keystroke","type":"media","scancode":205},{"keyActionType":"keystroke","type":"media","scancode":233},null,null,null,null,{"keyActionType":"keystroke","type":"media","scancode":184,"modifierMask":12},null,{"keyActionType":"keystroke","type":"media","scancode":182},{"keyActionType":"keystroke","type":"media","scancode":234},{"keyActionType":"keystroke","type":"media","scancode":181},null,null,null,null,null,null,{"keyActionType":"keystroke","type":"media","scancode":226},null,null,{"keyActionType":"keystroke","type":"basic","modifierMask":32},null,null,null,{"keyActionType":"switchLayer","layer":"fn","switchLayerMode":"holdAndDoubleTapToggle"},{"keyActionType":"keystroke","type":"basic","modifierMask":128},{"keyActionType":"keystroke","type":"basic","modifierMask":64},{"keyActionType":"keystroke","type":"basic","modifierMask":16}]},{"id":1,"keyActions":[null,{"keyActionType":"switchKeymap","keymapAbbreviation":"QWR"},{"keyActionType":"switchKeymap","keymapAbbreviation":"DVO"},{"keyActionType":"switchKeymap","keymapAbbreviation":"COL"},{"keyActionType":"switchKeymap","keymapAbbreviation":"QWM"},null,{"keyActionType":"switchKeymap","keymapAbbreviation":"COM"},null,null,null,null,null,null,null,null,null,null,null,null,null,null,{"keyActionType":"keystroke","type":"basic","modifierMask":2},null,null,null,null,null,null,{"keyActionType":"keystroke","type":"basic","modifierMask":1},{"keyActionType":"keystroke","type":"basic","modifierMask":4},{"keyActionType":"keystroke","type":"basic","modifierMask":8},{"keyActionType":"switchLayer","layer":"fn","switchLayerMode":"holdAndDoubleTapToggle"},null,null,null]}]},{"modules":[{"id":0,"keyActions":[null,null,null,null,null,null,null,{"keyActionType":"mouse","mouseAction":"scrollLeft"},{"keyActionType":"mouse","mouseAction":"moveUp"},{"keyActionType":"mouse","mouseAction":"scrollRight"},null,{"keyActionType":"switchKeymap","keymapAbbreviation":"QWR"},{"keyActionType":"switchKeymap","keymapAbbreviation":"COL"},null,{"keyActionType":"mouse","mouseAction":"scrollDown"},{"keyActionType":"mouse","mouseAction":"moveLeft"},{"keyActionType":"mouse","mouseAction":"moveDown"},{"keyActionType":"mouse","mouseAction":"moveRight"},null,null,null,{"keyActionType":"mouse","mouseAction":"scrollUp"},null,null,null,null,null,{"keyActionType":"keystroke","type":"basic","modifierMask":32},null,{"keyActionType":"mouse","mouseAction":"leftClick"},{"keyActionType":"mouse","mouseAction":"rightClick"},null,{"keyActionType":"keystroke","type":"basic","modifierMask":128},{"keyActionType":"keystroke","type":"basic","modifierMask":64},{"keyActionType":"keystroke","type":"basic","modifierMask":16}]},{"id":1,"keyActions":[null,null,null,null,null,null,null,null,null,null,null,null,null,null,{"keyActionType":"switchLayer","layer":"mouse","switchLayerMode":"holdAndDoubleTapToggle"},null,{"keyActionType":"mouse","mouseAction":"rightClick"},{"keyActionType":"mouse","mouseAction":"middleClick"},{"keyActionType":"mouse","mouseAction":"leftClick"},null,null,{"keyActionType":"keystroke","type":"basic","modifierMask":2},null,null,null,null,null,null,{"keyActionType":"keystroke","type":"basic","modifierMask":1},{"keyActionType":"keystroke","type":"basic","modifierMask":4},{"keyActionType":"keystroke","type":"basic","modifierMask":8},null,{"keyActionType":"mouse","mouseAction":"decelerate"},{"keyActionType":"mouse","mouseAction":"accelerate"},null]}]}]},{"isDefault":false,"abbreviation":"DVO","name":"Dvorak for PC","description":"The Dvorak keyboard layout was designed with the goal of maximizing typing efficiency. This is the PC version.","layers":[{"modules":[{"id":0,"keyActions":[{"keyActionType":"keystroke","type":"basic","scancode":36},{"keyActionType":"keystroke","type":"basic","scancode":37},{"keyActionType":"keystroke","type":"basic","scancode":38},{"keyActionType":"keystroke","type":"basic","scancode":39},{"keyActionType":"keystroke","type":"basic","scancode":47},{"keyActionType":"keystroke","type":"basic","scancode":48},{"keyActionType":"keystroke","type":"basic","scancode":42},{"keyActionType":"keystroke","type":"basic","scancode":10},{"keyActionType":"keystroke","type":"basic","scancode":6},{"keyActionType":"keystroke","type":"basic","scancode":21},{"keyActionType":"keystroke","type":"basic","scancode":15},{"keyActionType":"keystroke","type":"basic","scancode":56},{"keyActionType":"keystroke","type":"basic","scancode":46},{"keyActionType":"keystroke","type":"basic","scancode":49},{"keyActionType":"keystroke","type":"basic","scancode":9},{"keyActionType":"keystroke","type":"basic","scancode":11},{"keyActionType":"keystroke","type":"basic","scancode":23},{"keyActionType":"keystroke","type":"basic","scancode":17},{"keyActionType":"keystroke","type":"basic","scancode":22},{"keyActionType":"keystroke","type":"basic","scancode":45},{"keyActionType":"keystroke","type":"basic","scancode":40},{"keyActionType":"keystroke","type":"basic","scancode":7},{"keyActionType":"keystroke","type":"basic","scancode":5},{"keyActionType":"keystroke","type":"basic","scancode":16},{"keyActionType":"keystroke","type":"basic","scancode":26},{"keyActionType":"keystroke","type":"basic","scancode":25},{"keyActionType":"keystroke","type":"basic","scancode":29},{"keyActionType":"keystroke","type":"basic","modifierMask":32},null,{"keyActionType":"keystroke","type":"basic","scancode":44},{"keyActionType":"switchLayer","layer":"mod","switchLayerMode":"holdAndDoubleTapToggle"},{"keyActionType":"switchLayer","layer":"fn","switchLayerMode":"holdAndDoubleTapToggle"},{"keyActionType":"keystroke","type":"basic","modifierMask":64},{"keyActionType":"keystroke","type":"basic","modifierMask":128},{"keyActionType":"keystroke","type":"basic","modifierMask":16}]},{"id":1,"keyActions":[{"keyActionType":"keystroke","type":"basic","scancode":53},{"keyActionType":"keystroke","type":"basic","scancode":30},{"keyActionType":"keystroke","type":"basic","scancode":31},{"keyActionType":"keystroke","type":"basic","scancode":32},{"keyActionType":"keystroke","type":"basic","scancode":33},{"keyActionType":"keystroke","type":"basic","scancode":34},{"keyActionType":"keystroke","type":"basic","scancode":35},{"keyActionType":"keystroke","type":"basic","scancode":43},{"keyActionType":"keystroke","type":"basic","scancode":52},{"keyActionType":"keystroke","type":"basic","scancode":54},{"keyActionType":"keystroke","type":"basic","scancode":55},{"keyActionType":"keystroke","type":"basic","scancode":19},null,{"keyActionType":"keystroke","type":"basic","scancode":28},{"keyActionType":"switchLayer","layer":"mouse","switchLayerMode":"holdAndDoubleTapToggle"},{"keyActionType":"keystroke","type":"basic","scancode":4},{"keyActionType":"keystroke","type":"basic","scancode":18},{"keyActionType":"keystroke","type":"basic","scancode":8},{"keyActionType":"keystroke","type":"basic","scancode":24},null,{"keyActionType":"keystroke","type":"basic","scancode":12},{"keyActionType":"keystroke","type":"basic","modifierMask":2},{"keyActionType":"keystroke","type":"basic","scancode":100},{"keyActionType":"keystroke","type":"basic","scancode":51},{"keyActionType":"keystroke","type":"basic","scancode":20},{"keyActionType":"keystroke","type":"basic","scancode":13},{"keyActionType":"keystroke","type":"basic","scancode":14},{"keyActionType":"keystroke","type":"basic","scancode":27},{"keyActionType":"keystroke","type":"basic","modifierMask":1},{"keyActionType":"keystroke","type":"basic","modifierMask":8},{"keyActionType":"keystroke","type":"basic","modifierMask":4},{"keyActionType":"switchLayer","layer":"fn","switchLayerMode":"holdAndDoubleTapToggle"},{"keyActionType":"keystroke","type":"basic","scancode":44},{"keyActionType":"switchLayer","layer":"mod","switchLayerMode":"holdAndDoubleTapToggle"},null]},{"id":2,"keyActions":[]}]},{"modules":[{"id":0,"keyActions":[{"keyActionType":"keystroke","type":"basic","scancode":64},{"keyActionType":"keystroke","type":"basic","scancode":65},{"keyActionType":"keystroke","type":"basic","scancode":66},{"keyActionType":"keystroke","type":"basic","scancode":67},{"keyActionType":"keystroke","type":"basic","scancode":68},{"keyActionType":"keystroke","type":"basic","scancode":69},{"keyActionType":"keystroke","type":"basic","scancode":76},{"keyActionType":"keystroke","type":"basic","scancode":74},{"keyActionType":"keystroke","type":"basic","scancode":82},{"keyActionType":"keystroke","type":"basic","scancode":77},{"keyActionType":"keystroke","type":"basic","scancode":76},{"keyActionType":"keystroke","type":"basic","scancode":70},{"keyActionType":"keystroke","type":"basic","scancode":71},{"keyActionType":"keystroke","type":"basic","scancode":72},{"keyActionType":"keystroke","type":"basic","scancode":75},{"keyActionType":"keystroke","type":"basic","scancode":80},{"keyActionType":"keystroke","type":"basic","scancode":81},{"keyActionType":"keystroke","type":"basic","scancode":79},{"keyActionType":"keystroke","type":"basic","scancode":73},null,null,{"keyActionType":"keystroke","type":"basic","scancode":78},{"keyActionType":"keystroke","type":"basic","scancode":41},null,null,null,{"keyActionType":"keystroke","type":"basic","scancode":101},{"keyActionType":"keystroke","type":"basic","modifierMask":32},null,null,{"keyActionType":"switchLayer","layer":"mod","switchLayerMode":"holdAndDoubleTapToggle"},null,{"keyActionType":"keystroke","type":"basic","modifierMask":64},{"keyActionType":"keystroke","type":"basic","modifierMask":128},{"keyActionType":"keystroke","type":"basic","modifierMask":16}]},{"id":1,"keyActions":[{"keyActionType":"keystroke","type":"basic","scancode":41},{"keyActionType":"keystroke","type":"basic","scancode":58},{"keyActionType":"keystroke","type":"basic","scancode":59},{"keyActionType":"keystroke","type":"basic","scancode":60},{"keyActionType":"keystroke","type":"basic","scancode":61},{"keyActionType":"keystroke","type":"basic","scancode":62},{"keyActionType":"keystroke","type":"basic","scancode":63},null,{"keyActionType":"keystroke","type":"basic","scancode":41},{"keyActionType":"keystroke","type":"basic","scancode":75,"modifierMask":1},{"keyActionType":"keystroke","type":"basic","scancode":23,"modifierMask":1},{"keyActionType":"keystroke","type":"basic","scancode":78,"modifierMask":1},null,null,null,{"keyActionType":"keystroke","type":"basic","scancode":57},{"keyActionType":"keystroke","type":"basic","scancode":80,"modifierMask":5},{"keyActionType":"keystroke","type":"basic","scancode":43,"modifierMask":4},{"keyActionType":"keystroke","type":"basic","scancode":79,"modifierMask":5},null,null,{"keyActionType":"keystroke","type":"basic","modifierMask":2},null,null,{"keyActionType":"keystroke","type":"basic","scancode":75,"modifierMask":3},{"keyActionType":"keystroke","type":"basic","scancode":26,"modifierMask":1},{"keyActionType":"keystroke","type":"basic","scancode":78,"modifierMask":3},null,{"keyActionType":"keystroke","type":"basic","modifierMask":1},{"keyActionType":"keystroke","type":"basic","modifierMask":8},{"keyActionType":"keystroke","type":"basic","modifierMask":4},null,null,{"keyActionType":"switchLayer","layer":"mod","switchLayerMode":"holdAndDoubleTapToggle"},null]}]},{"modules":[{"id":0,"keyActions":[null,null,null,null,null,null,null,{"keyActionType":"keystroke","type":"media","scancode":205},{"keyActionType":"keystroke","type":"media","scancode":233},null,null,null,null,{"keyActionType":"keystroke","type":"system","scancode":130},null,{"keyActionType":"keystroke","type":"media","scancode":182},{"keyActionType":"keystroke","type":"media","scancode":234},{"keyActionType":"keystroke","type":"media","scancode":181},null,null,null,null,null,null,{"keyActionType":"keystroke","type":"media","scancode":226},null,null,{"keyActionType":"keystroke","type":"basic","modifierMask":32},null,null,null,{"keyActionType":"switchLayer","layer":"fn","switchLayerMode":"holdAndDoubleTapToggle"},{"keyActionType":"keystroke","type":"basic","modifierMask":64},{"keyActionType":"keystroke","type":"basic","modifierMask":128},{"keyActionType":"keystroke","type":"basic","modifierMask":16}]},{"id":1,"keyActions":[null,{"keyActionType":"switchKeymap","keymapAbbreviation":"QWR"},null,{"keyActionType":"switchKeymap","keymapAbbreviation":"COL"},{"keyActionType":"switchKeymap","keymapAbbreviation":"QWM"},{"keyActionType":"switchKeymap","keymapAbbreviation":"DVM"},{"keyActionType":"switchKeymap","keymapAbbreviation":"COM"},null,null,null,null,null,null,null,null,null,null,null,null,null,null,{"keyActionType":"keystroke","type":"basic","modifierMask":2},null,null,null,null,null,null,{"keyActionType":"keystroke","type":"basic","modifierMask":1},{"keyActionType":"keystroke","type":"basic","modifierMask":8},{"keyActionType":"keystroke","type":"basic","modifierMask":4},{"keyActionType":"switchLayer","layer":"fn","switchLayerMode":"holdAndDoubleTapToggle"},null,null,null]}]},{"modules":[{"id":0,"keyActions":[null,null,null,null,null,null,null,{"keyActionType":"mouse","mouseAction":"scrollLeft"},{"keyActionType":"mouse","mouseAction":"moveUp"},{"keyActionType":"mouse","mouseAction":"scrollRight"},null,{"keyActionType":"switchKeymap","keymapAbbreviation":"QWR"},{"keyActionType":"switchKeymap","keymapAbbreviation":"COL"},null,{"keyActionType":"mouse","mouseAction":"scrollUp"},{"keyActionType":"mouse","mouseAction":"moveLeft"},{"keyActionType":"mouse","mouseAction":"moveDown"},{"keyActionType":"mouse","mouseAction":"moveRight"},null,null,null,{"keyActionType":"mouse","mouseAction":"scrollDown"},null,null,null,null,null,{"keyActionType":"keystroke","type":"basic","modifierMask":32},null,{"keyActionType":"mouse","mouseAction":"leftClick"},{"keyActionType":"mouse","mouseAction":"rightClick"},null,{"keyActionType":"keystroke","type":"basic","modifierMask":64},{"keyActionType":"keystroke","type":"basic","modifierMask":128},{"keyActionType":"keystroke","type":"basic","modifierMask":16}]},{"id":1,"keyActions":[null,null,null,null,null,null,null,null,null,null,null,null,null,null,{"keyActionType":"switchLayer","layer":"mouse","switchLayerMode":"holdAndDoubleTapToggle"},null,{"keyActionType":"mouse","mouseAction":"rightClick"},{"keyActionType":"mouse","mouseAction":"middleClick"},{"keyActionType":"mouse","mouseAction":"leftClick"},null,null,{"keyActionType":"keystroke","type":"basic","modifierMask":2},null,null,null,null,null,null,{"keyActionType":"keystroke","type":"basic","modifierMask":1},{"keyActionType":"keystroke","type":"basic","modifierMask":8},{"keyActionType":"keystroke","type":"basic","modifierMask":4},null,{"keyActionType":"mouse","mouseAction":"decelerate"},{"keyActionType":"mouse","mouseAction":"accelerate"},null]}]}]},{"isDefault":false,"abbreviation":"QWM","name":"QWERTY for Mac","description":"QWERTY is the mother of all layouts. This is the Mac version.","layers":[{"modules":[{"id":0,"keyActions":[{"keyActionType":"keystroke","type":"basic","scancode":36},{"keyActionType":"keystroke","type":"basic","scancode":37},{"keyActionType":"keystroke","type":"basic","scancode":38},{"keyActionType":"keystroke","type":"basic","scancode":39},{"keyActionType":"keystroke","type":"basic","scancode":45},{"keyActionType":"keystroke","type":"basic","scancode":46},{"keyActionType":"keystroke","type":"basic","scancode":42},{"keyActionType":"keystroke","type":"basic","scancode":24},{"keyActionType":"keystroke","type":"basic","scancode":12},{"keyActionType":"keystroke","type":"basic","scancode":18},{"keyActionType":"keystroke","type":"basic","scancode":19},{"keyActionType":"keystroke","type":"basic","scancode":47},{"keyActionType":"keystroke","type":"basic","scancode":48},{"keyActionType":"keystroke","type":"basic","scancode":49},{"keyActionType":"keystroke","type":"basic","scancode":28},{"keyActionType":"keystroke","type":"basic","scancode":13},{"keyActionType":"keystroke","type":"basic","scancode":14},{"keyActionType":"keystroke","type":"basic","scancode":15},{"keyActionType":"keystroke","type":"basic","scancode":51},{"keyActionType":"keystroke","type":"basic","scancode":52},{"keyActionType":"keystroke","type":"basic","scancode":40},{"keyActionType":"keystroke","type":"basic","scancode":11},{"keyActionType":"keystroke","type":"basic","scancode":17},{"keyActionType":"keystroke","type":"basic","scancode":16},{"keyActionType":"keystroke","type":"basic","scancode":54},{"keyActionType":"keystroke","type":"basic","scancode":55},{"keyActionType":"keystroke","type":"basic","scancode":56},{"keyActionType":"keystroke","type":"basic","modifierMask":32},null,{"keyActionType":"keystroke","type":"basic","scancode":44},{"keyActionType":"switchLayer","layer":"mod","switchLayerMode":"holdAndDoubleTapToggle"},{"keyActionType":"switchLayer","layer":"fn","switchLayerMode":"holdAndDoubleTapToggle"},{"keyActionType":"keystroke","type":"basic","modifierMask":128},{"keyActionType":"keystroke","type":"basic","modifierMask":64},{"keyActionType":"keystroke","type":"basic","modifierMask":16}]},{"id":1,"keyActions":[{"keyActionType":"keystroke","type":"basic","scancode":53},{"keyActionType":"keystroke","type":"basic","scancode":30},{"keyActionType":"keystroke","type":"basic","scancode":31},{"keyActionType":"keystroke","type":"basic","scancode":32},{"keyActionType":"keystroke","type":"basic","scancode":33},{"keyActionType":"keystroke","type":"basic","scancode":34},{"keyActionType":"keystroke","type":"basic","scancode":35},{"keyActionType":"keystroke","type":"basic","scancode":43},{"keyActionType":"keystroke","type":"basic","scancode":20},{"keyActionType":"keystroke","type":"basic","scancode":26},{"keyActionType":"keystroke","type":"basic","scancode":8},{"keyActionType":"keystroke","type":"basic","scancode":21},null,{"keyActionType":"keystroke","type":"basic","scancode":23},{"keyActionType":"switchLayer","layer":"mouse","switchLayerMode":"holdAndDoubleTapToggle"},{"keyActionType":"keystroke","type":"basic","scancode":4},{"keyActionType":"keystroke","type":"basic","scancode":22},{"keyActionType":"keystroke","type":"basic","scancode":7},{"keyActionType":"keystroke","type":"basic","scancode":9},null,{"keyActionType":"keystroke","type":"basic","scancode":10},{"keyActionType":"keystroke","type":"basic","modifierMask":2},{"keyActionType":"keystroke","type":"basic","scancode":100},{"keyActionType":"keystroke","type":"basic","scancode":29},{"keyActionType":"keystroke","type":"basic","scancode":27},{"keyActionType":"keystroke","type":"basic","scancode":6},{"keyActionType":"keystroke","type":"basic","scancode":25},{"keyActionType":"keystroke","type":"basic","scancode":5},{"keyActionType":"keystroke","type":"basic","modifierMask":1},{"keyActionType":"keystroke","type":"basic","modifierMask":4},{"keyActionType":"keystroke","type":"basic","modifierMask":8},{"keyActionType":"switchLayer","layer":"fn","switchLayerMode":"holdAndDoubleTapToggle"},{"keyActionType":"keystroke","type":"basic","scancode":44},{"keyActionType":"switchLayer","layer":"mod","switchLayerMode":"holdAndDoubleTapToggle"},null]},{"id":2,"keyActions":[]}]},{"modules":[{"id":0,"keyActions":[{"keyActionType":"keystroke","type":"basic","scancode":64},{"keyActionType":"keystroke","type":"basic","scancode":65},{"keyActionType":"keystroke","type":"basic","scancode":66},{"keyActionType":"keystroke","type":"basic","scancode":67},{"keyActionType":"keystroke","type":"basic","scancode":68},{"keyActionType":"keystroke","type":"basic","scancode":69},{"keyActionType":"keystroke","type":"basic","scancode":76},{"keyActionType":"keystroke","type":"basic","scancode":74},{"keyActionType":"keystroke","type":"basic","scancode":82},{"keyActionType":"keystroke","type":"basic","scancode":77},{"keyActionType":"keystroke","type":"basic","scancode":76},{"keyActionType":"keystroke","type":"basic","scancode":70},{"keyActionType":"keystroke","type":"basic","scancode":71},{"keyActionType":"keystroke","type":"basic","scancode":72},{"keyActionType":"keystroke","type":"basic","scancode":75},{"keyActionType":"keystroke","type":"basic","scancode":80},{"keyActionType":"keystroke","type":"basic","scancode":81},{"keyActionType":"keystroke","type":"basic","scancode":79},{"keyActionType":"keystroke","type":"basic","scancode":73},null,null,{"keyActionType":"keystroke","type":"basic","scancode":78},{"keyActionType":"keystroke","type":"basic","scancode":41},null,null,null,{"keyActionType":"keystroke","type":"basic","scancode":101},{"keyActionType":"keystroke","type":"basic","modifierMask":32},null,null,{"keyActionType":"switchLayer","layer":"mod","switchLayerMode":"holdAndDoubleTapToggle"},null,{"keyActionType":"keystroke","type":"basic","modifierMask":128},{"keyActionType":"keystroke","type":"basic","modifierMask":64},{"keyActionType":"keystroke","type":"basic","modifierMask":16}]},{"id":1,"keyActions":[{"keyActionType":"keystroke","type":"basic","scancode":41},{"keyActionType":"keystroke","type":"basic","scancode":58},{"keyActionType":"keystroke","type":"basic","scancode":59},{"keyActionType":"keystroke","type":"basic","scancode":60},{"keyActionType":"keystroke","type":"basic","scancode":61},{"keyActionType":"keystroke","type":"basic","scancode":62},{"keyActionType":"keystroke","type":"basic","scancode":63},null,{"keyActionType":"keystroke","type":"basic","scancode":41},{"keyActionType":"keystroke","type":"basic","scancode":80,"modifierMask":12},{"keyActionType":"keystroke","type":"basic","scancode":23,"modifierMask":8},{"keyActionType":"keystroke","type":"basic","scancode":79,"modifierMask":12},null,null,null,{"keyActionType":"keystroke","type":"basic","scancode":57},{"keyActionType":"keystroke","type":"basic","scancode":80,"modifierMask":1},{"keyActionType":"keystroke","type":"basic","scancode":43,"modifierMask":8},{"keyActionType":"keystroke","type":"basic","scancode":79,"modifierMask":1},null,null,{"keyActionType":"keystroke","type":"basic","modifierMask":2},null,null,null,{"keyActionType":"keystroke","type":"basic","scancode":26,"modifierMask":8},null,null,{"keyActionType":"keystroke","type":"basic","modifierMask":1},{"keyActionType":"keystroke","type":"basic","modifierMask":4},{"keyActionType":"keystroke","type":"basic","modifierMask":8},null,null,{"keyActionType":"switchLayer","layer":"mod","switchLayerMode":"holdAndDoubleTapToggle"},null]}]},{"modules":[{"id":0,"keyActions":[null,null,null,null,null,null,null,{"keyActionType":"keystroke","type":"media","scancode":205},{"keyActionType":"keystroke","type":"media","scancode":233},null,null,null,null,{"keyActionType":"keystroke","type":"media","scancode":184,"modifierMask":12},null,{"keyActionType":"keystroke","type":"media","scancode":182},{"keyActionType":"keystroke","type":"media","scancode":234},{"keyActionType":"keystroke","type":"media","scancode":181},null,null,null,null,null,null,{"keyActionType":"keystroke","type":"media","scancode":226},null,null,{"keyActionType":"keystroke","type":"basic","modifierMask":32},null,null,null,{"keyActionType":"switchLayer","layer":"fn","switchLayerMode":"holdAndDoubleTapToggle"},{"keyActionType":"keystroke","type":"basic","modifierMask":128},{"keyActionType":"keystroke","type":"basic","modifierMask":64},{"keyActionType":"keystroke","type":"basic","modifierMask":16}]},{"id":1,"keyActions":[null,{"keyActionType":"switchKeymap","keymapAbbreviation":"QWR"},{"keyActionType":"switchKeymap","keymapAbbreviation":"DVO"},{"keyActionType":"switchKeymap","keymapAbbreviation":"COL"},null,{"keyActionType":"switchKeymap","keymapAbbreviation":"DVM"},{"keyActionType":"switchKeymap","keymapAbbreviation":"COM"},null,null,null,null,null,null,null,null,null,null,null,null,null,null,{"keyActionType":"keystroke","type":"basic","modifierMask":2},null,null,null,null,null,null,{"keyActionType":"keystroke","type":"basic","modifierMask":1},{"keyActionType":"keystroke","type":"basic","modifierMask":4},{"keyActionType":"keystroke","type":"basic","modifierMask":8},{"keyActionType":"switchLayer","layer":"fn","switchLayerMode":"holdAndDoubleTapToggle"},null,null,null]}]},{"modules":[{"id":0,"keyActions":[null,null,null,null,null,null,null,{"keyActionType":"mouse","mouseAction":"scrollLeft"},{"keyActionType":"mouse","mouseAction":"moveUp"},{"keyActionType":"mouse","mouseAction":"scrollRight"},null,null,null,null,{"keyActionType":"mouse","mouseAction":"scrollDown"},{"keyActionType":"mouse","mouseAction":"moveLeft"},{"keyActionType":"mouse","mouseAction":"moveDown"},{"keyActionType":"mouse","mouseAction":"moveRight"},null,null,null,{"keyActionType":"mouse","mouseAction":"scrollUp"},null,null,null,null,null,{"keyActionType":"keystroke","type":"basic","modifierMask":32},null,{"keyActionType":"mouse","mouseAction":"leftClick"},{"keyActionType":"mouse","mouseAction":"rightClick"},null,{"keyActionType":"keystroke","type":"basic","modifierMask":128},{"keyActionType":"keystroke","type":"basic","modifierMask":64},{"keyActionType":"keystroke","type":"basic","modifierMask":16}]},{"id":1,"keyActions":[null,null,null,null,null,null,null,null,null,null,null,null,null,null,{"keyActionType":"switchLayer","layer":"mouse","switchLayerMode":"holdAndDoubleTapToggle"},null,{"keyActionType":"mouse","mouseAction":"rightClick"},{"keyActionType":"mouse","mouseAction":"middleClick"},{"keyActionType":"mouse","mouseAction":"leftClick"},null,null,{"keyActionType":"keystroke","type":"basic","modifierMask":2},null,null,null,null,null,null,{"keyActionType":"keystroke","type":"basic","modifierMask":1},{"keyActionType":"keystroke","type":"basic","modifierMask":4},{"keyActionType":"keystroke","type":"basic","modifierMask":8},null,{"keyActionType":"mouse","mouseAction":"decelerate"},{"keyActionType":"mouse","mouseAction":"accelerate"},null]}]}]},{"isDefault":true,"abbreviation":"QWR","name":"QWERTY for PC","description":"QWERTY is the mother of all layouts. This is the PC version.","layers":[{"modules":[{"id":0,"keyActions":[{"keyActionType":"keystroke","type":"basic","scancode":36},{"keyActionType":"keystroke","type":"basic","scancode":37},{"keyActionType":"keystroke","type":"basic","scancode":38},{"keyActionType":"keystroke","type":"basic","scancode":39},{"keyActionType":"keystroke","type":"basic","scancode":45},{"keyActionType":"keystroke","type":"basic","scancode":46},{"keyActionType":"keystroke","type":"basic","scancode":42},{"keyActionType":"keystroke","type":"basic","scancode":24},{"keyActionType":"keystroke","type":"basic","scancode":12},{"keyActionType":"keystroke","type":"basic","scancode":18},{"keyActionType":"keystroke","type":"basic","scancode":19},{"keyActionType":"keystroke","type":"basic","scancode":47},{"keyActionType":"keystroke","type":"basic","scancode":48},{"keyActionType":"keystroke","type":"basic","scancode":49},{"keyActionType":"keystroke","type":"basic","scancode":28},{"keyActionType":"keystroke","type":"basic","scancode":13},{"keyActionType":"keystroke","type":"basic","scancode":14},{"keyActionType":"keystroke","type":"basic","scancode":15},{"keyActionType":"keystroke","type":"basic","scancode":51},{"keyActionType":"keystroke","type":"basic","scancode":52},{"keyActionType":"keystroke","type":"basic","scancode":40},{"keyActionType":"keystroke","type":"basic","scancode":11},{"keyActionType":"keystroke","type":"basic","scancode":17},{"keyActionType":"keystroke","type":"basic","scancode":16},{"keyActionType":"keystroke","type":"basic","scancode":54},{"keyActionType":"keystroke","type":"basic","scancode":55},{"keyActionType":"keystroke","type":"basic","scancode":56},{"keyActionType":"keystroke","type":"basic","modifierMask":32},null,{"keyActionType":"keystroke","type":"basic","scancode":44},{"keyActionType":"switchLayer","layer":"mod","switchLayerMode":"holdAndDoubleTapToggle"},{"keyActionType":"switchLayer","layer":"fn","switchLayerMode":"holdAndDoubleTapToggle"},{"keyActionType":"keystroke","type":"basic","modifierMask":64},{"keyActionType":"keystroke","type":"basic","modifierMask":128},{"keyActionType":"keystroke","type":"basic","modifierMask":16}]},{"id":1,"keyActions":[{"keyActionType":"keystroke","type":"basic","scancode":53},{"keyActionType":"keystroke","type":"basic","scancode":30},{"keyActionType":"keystroke","type":"basic","scancode":31},{"keyActionType":"keystroke","type":"basic","scancode":32},{"keyActionType":"keystroke","type":"basic","scancode":33},{"keyActionType":"keystroke","type":"basic","scancode":34},{"keyActionType":"keystroke","type":"basic","scancode":35},{"keyActionType":"keystroke","type":"basic","scancode":43},{"keyActionType":"keystroke","type":"basic","scancode":20},{"keyActionType":"keystroke","type":"basic","scancode":26},{"keyActionType":"keystroke","type":"basic","scancode":8},{"keyActionType":"keystroke","type":"basic","scancode":21},null,{"keyActionType":"keystroke","type":"basic","scancode":23},{"keyActionType":"switchLayer","layer":"mouse","switchLayerMode":"holdAndDoubleTapToggle"},{"keyActionType":"keystroke","type":"basic","scancode":4},{"keyActionType":"keystroke","type":"basic","scancode":22},{"keyActionType":"keystroke","type":"basic","scancode":7},{"keyActionType":"keystroke","type":"basic","scancode":9},null,{"keyActionType":"keystroke","type":"basic","scancode":10},{"keyActionType":"keystroke","type":"basic","modifierMask":2},{"keyActionType":"keystroke","type":"basic","scancode":100},{"keyActionType":"keystroke","type":"basic","scancode":29},{"keyActionType":"keystroke","type":"basic","scancode":27},{"keyActionType":"keystroke","type":"basic","scancode":6},{"keyActionType":"keystroke","type":"basic","scancode":25},{"keyActionType":"keystroke","type":"basic","scancode":5},{"keyActionType":"keystroke","type":"basic","modifierMask":1},{"keyActionType":"keystroke","type":"basic","modifierMask":8},{"keyActionType":"keystroke","type":"basic","modifierMask":4},{"keyActionType":"switchLayer","layer":"fn","switchLayerMode":"holdAndDoubleTapToggle"},{"keyActionType":"keystroke","type":"basic","scancode":44},{"keyActionType":"switchLayer","layer":"mod","switchLayerMode":"holdAndDoubleTapToggle"},null]},{"id":2,"keyActions":[]}]},{"modules":[{"id":0,"keyActions":[{"keyActionType":"keystroke","type":"basic","scancode":64},{"keyActionType":"keystroke","type":"basic","scancode":65},{"keyActionType":"keystroke","type":"basic","scancode":66},{"keyActionType":"keystroke","type":"basic","scancode":67},{"keyActionType":"keystroke","type":"basic","scancode":68},{"keyActionType":"keystroke","type":"basic","scancode":69},{"keyActionType":"keystroke","type":"basic","scancode":76},{"keyActionType":"keystroke","type":"basic","scancode":74},{"keyActionType":"keystroke","type":"basic","scancode":82},{"keyActionType":"keystroke","type":"basic","scancode":77},{"keyActionType":"keystroke","type":"basic","scancode":76},{"keyActionType":"keystroke","type":"basic","scancode":70},{"keyActionType":"keystroke","type":"basic","scancode":71},{"keyActionType":"keystroke","type":"basic","scancode":72},{"keyActionType":"keystroke","type":"basic","scancode":75},{"keyActionType":"keystroke","type":"basic","scancode":80},{"keyActionType":"keystroke","type":"basic","scancode":81},{"keyActionType":"keystroke","type":"basic","scancode":79},{"keyActionType":"keystroke","type":"basic","scancode":73},null,null,{"keyActionType":"keystroke","type":"basic","scancode":78},{"keyActionType":"keystroke","type":"basic","scancode":41},null,null,null,{"keyActionType":"keystroke","type":"basic","scancode":101},{"keyActionType":"keystroke","type":"basic","modifierMask":32},null,null,{"keyActionType":"switchLayer","layer":"mod","switchLayerMode":"holdAndDoubleTapToggle"},null,{"keyActionType":"keystroke","type":"basic","modifierMask":64},{"keyActionType":"keystroke","type":"basic","modifierMask":128},{"keyActionType":"keystroke","type":"basic","modifierMask":16}]},{"id":1,"keyActions":[{"keyActionType":"keystroke","type":"basic","scancode":41},{"keyActionType":"keystroke","type":"basic","scancode":58},{"keyActionType":"keystroke","type":"basic","scancode":59},{"keyActionType":"keystroke","type":"basic","scancode":60},{"keyActionType":"keystroke","type":"basic","scancode":61},{"keyActionType":"keystroke","type":"basic","scancode":62},{"keyActionType":"keystroke","type":"basic","scancode":63},null,{"keyActionType":"keystroke","type":"basic","scancode":41},{"keyActionType":"keystroke","type":"basic","scancode":75,"modifierMask":1},{"keyActionType":"keystroke","type":"basic","scancode":23,"modifierMask":1},{"keyActionType":"keystroke","type":"basic","scancode":78,"modifierMask":1},null,null,null,{"keyActionType":"keystroke","type":"basic","scancode":57},{"keyActionType":"keystroke","type":"basic","scancode":80,"modifierMask":5},{"keyActionType":"keystroke","type":"basic","scancode":43,"modifierMask":4},{"keyActionType":"keystroke","type":"basic","scancode":79,"modifierMask":5},null,null,{"keyActionType":"keystroke","type":"basic","modifierMask":2},null,null,{"keyActionType":"keystroke","type":"basic","scancode":75,"modifierMask":3},{"keyActionType":"keystroke","type":"basic","scancode":26,"modifierMask":1},{"keyActionType":"keystroke","type":"basic","scancode":78,"modifierMask":3},null,{"keyActionType":"keystroke","type":"basic","modifierMask":1},{"keyActionType":"keystroke","type":"basic","modifierMask":8},{"keyActionType":"keystroke","type":"basic","modifierMask":4},null,null,{"keyActionType":"switchLayer","layer":"mod","switchLayerMode":"holdAndDoubleTapToggle"},null]}]},{"modules":[{"id":0,"keyActions":[null,null,null,null,null,null,{"keyActionType":"switchKeymap","keymapAbbreviation":"TES"},{"keyActionType":"keystroke","type":"media","scancode":205},{"keyActionType":"keystroke","type":"media","scancode":233},null,null,null,null,{"keyActionType":"keystroke","type":"system","scancode":130},null,{"keyActionType":"keystroke","type":"media","scancode":182},{"keyActionType":"keystroke","type":"media","scancode":234},{"keyActionType":"keystroke","type":"media","scancode":181},null,null,null,null,null,null,{"keyActionType":"keystroke","type":"media","scancode":226},null,null,{"keyActionType":"keystroke","type":"basic","modifierMask":32},null,null,null,{"keyActionType":"switchLayer","layer":"fn","switchLayerMode":"holdAndDoubleTapToggle"},{"keyActionType":"keystroke","type":"basic","modifierMask":64},{"keyActionType":"keystroke","type":"basic","modifierMask":128},{"keyActionType":"keystroke","type":"basic","modifierMask":16}]},{"id":1,"keyActions":[null,null,{"keyActionType":"switchKeymap","keymapAbbreviation":"DVO"},{"keyActionType":"switchKeymap","keymapAbbreviation":"COL"},{"keyActionType":"switchKeymap","keymapAbbreviation":"QWM"},{"keyActionType":"switchKeymap","keymapAbbreviation":"DVM"},{"keyActionType":"switchKeymap","keymapAbbreviation":"COM"},null,null,null,null,null,null,null,null,null,null,null,null,null,null,{"keyActionType":"keystroke","type":"basic","modifierMask":2},null,null,null,null,null,null,{"keyActionType":"keystroke","type":"basic","modifierMask":1},{"keyActionType":"keystroke","type":"basic","modifierMask":8},{"keyActionType":"keystroke","type":"basic","modifierMask":4},{"keyActionType":"switchLayer","layer":"fn","switchLayerMode":"holdAndDoubleTapToggle"},null,null,null]}]},{"modules":[{"id":0,"keyActions":[null,null,null,null,null,null,null,{"keyActionType":"mouse","mouseAction":"scrollLeft"},{"keyActionType":"mouse","mouseAction":"moveUp"},{"keyActionType":"mouse","mouseAction":"scrollRight"},null,null,null,null,{"keyActionType":"mouse","mouseAction":"scrollUp"},{"keyActionType":"mouse","mouseAction":"moveLeft"},{"keyActionType":"mouse","mouseAction":"moveDown"},{"keyActionType":"mouse","mouseAction":"moveRight"},null,null,null,{"keyActionType":"mouse","mouseAction":"scrollDown"},null,null,null,null,null,{"keyActionType":"keystroke","type":"basic","modifierMask":32},null,{"keyActionType":"mouse","mouseAction":"leftClick"},{"keyActionType":"mouse","mouseAction":"rightClick"},null,{"keyActionType":"keystroke","type":"basic","modifierMask":64},{"keyActionType":"keystroke","type":"basic","modifierMask":128},{"keyActionType":"keystroke","type":"basic","modifierMask":16}]},{"id":1,"keyActions":[null,null,null,null,null,null,null,null,null,null,null,null,null,null,{"keyActionType":"switchLayer","layer":"mouse","switchLayerMode":"holdAndDoubleTapToggle"},null,{"keyActionType":"mouse","mouseAction":"rightClick"},{"keyActionType":"mouse","mouseAction":"middleClick"},{"keyActionType":"mouse","mouseAction":"leftClick"},null,null,{"keyActionType":"keystroke","type":"basic","modifierMask":2},null,null,null,null,null,null,{"keyActionType":"keystroke","type":"basic","modifierMask":1},{"keyActionType":"keystroke","type":"basic","modifierMask":8},{"keyActionType":"keystroke","type":"basic","modifierMask":4},null,{"keyActionType":"mouse","mouseAction":"decelerate"},{"keyActionType":"mouse","mouseAction":"accelerate"},null]}]}]},{"isDefault":false,"abbreviation":"TES","name":"Test","description":"This keymap is only used for factory testing purposes.","layers":[{"modules":[{"id":0,"keyActions":[{"keyActionType":"keystroke","type":"basic","scancode":36},{"keyActionType":"keystroke","type":"basic","scancode":37},{"keyActionType":"keystroke","type":"basic","scancode":38},{"keyActionType":"keystroke","type":"basic","scancode":39},{"keyActionType":"keystroke","type":"basic","scancode":45},{"keyActionType":"keystroke","type":"basic","scancode":46},{"keyActionType":"keystroke","type":"basic","scancode":42},{"keyActionType":"keystroke","type":"basic","scancode":24},{"keyActionType":"keystroke","type":"basic","scancode":12},{"keyActionType":"keystroke","type":"basic","scancode":18},{"keyActionType":"keystroke","type":"basic","scancode":19},{"keyActionType":"keystroke","type":"basic","scancode":47},{"keyActionType":"keystroke","type":"basic","scancode":48},{"keyActionType":"keystroke","type":"basic","scancode":49},{"keyActionType":"keystroke","type":"basic","scancode":28},{"keyActionType":"keystroke","type":"basic","scancode":13},{"keyActionType":"keystroke","type":"basic","scancode":14},{"keyActionType":"keystroke","type":"basic","scancode":15},{"keyActionType":"keystroke","type":"basic","scancode":51},{"keyActionType":"keystroke","type":"basic","scancode":52},{"keyActionType":"keystroke","type":"basic","scancode":87},{"keyActionType":"keystroke","type":"basic","scancode":11},{"keyActionType":"keystroke","type":"basic","scancode":17},{"keyActionType":"keystroke","type":"basic","scancode":16},{"keyActionType":"keystroke","type":"basic","scancode":54},{"keyActionType":"keystroke","type":"basic","scancode":55},{"keyActionType":"keystroke","type":"basic","scancode":56},{"keyActionType":"keystroke","type":"basic","modifierMask":32},null,{"keyActionType":"keystroke","type":"basic","scancode":94},{"keyActionType":"keystroke","type":"basic","scancode":85},{"keyActionType":"keystroke","type":"basic","scancode":95},{"keyActionType":"keystroke","type":"basic","scancode":96},{"keyActionType":"keystroke","type":"basic","scancode":97},{"keyActionType":"keystroke","type":"basic","scancode":98}]},{"id":1,"keyActions":[{"keyActionType":"keystroke","type":"basic","scancode":53},{"keyActionType":"keystroke","type":"basic","scancode":30},{"keyActionType":"keystroke","type":"basic","scancode":31},{"keyActionType":"keystroke","type":"basic","scancode":32},{"keyActionType":"keystroke","type":"basic","scancode":33},{"keyActionType":"keystroke","type":"basic","scancode":34},{"keyActionType":"keystroke","type":"basic","scancode":35},{"keyActionType":"keystroke","type":"basic","scancode":41},{"keyActionType":"keystroke","type":"basic","scancode":20},{"keyActionType":"keystroke","type":"basic","scancode":26},{"keyActionType":"keystroke","type":"basic","scancode":8},{"keyActionType":"keystroke","type":"basic","scancode":21},null,{"keyActionType":"keystroke","type":"basic","scancode":23},{"keyActionType":"keystroke","type":"basic","scancode":86},{"keyActionType":"keystroke","type":"basic","scancode":4},{"keyActionType":"keystroke","type":"basic","scancode":22},{"keyActionType":"keystroke","type":"basic","scancode":7},{"keyActionType":"keystroke","type":"basic","scancode":9},null,{"keyActionType":"keystroke","type":"basic","scancode":10},{"keyActionType":"keystroke","type":"basic","modifierMask":2},{"keyActionType":"keystroke","type":"basic","scancode":100},{"keyActionType":"keystroke","type":"basic","scancode":29},{"keyActionType":"keystroke","type":"basic","scancode":27},{"keyActionType":"keystroke","type":"basic","scancode":6},{"keyActionType":"keystroke","type":"basic","scancode":25},{"keyActionType":"keystroke","type":"basic","scancode":5},{"keyActionType":"keystroke","type":"basic","scancode":89},{"keyActionType":"keystroke","type":"basic","scancode":90},{"keyActionType":"keystroke","type":"basic","scancode":91},{"keyActionType":"keystroke","type":"basic","scancode":92},{"keyActionType":"keystroke","type":"basic","scancode":84},{"keyActionType":"keystroke","type":"basic","scancode":93},null]},{"id":2,"keyActions":[]}]},{"modules":[{"id":0,"keyActions":[{"keyActionType":"keystroke","type":"basic","scancode":64},{"keyActionType":"keystroke","type":"basic","scancode":65},{"keyActionType":"keystroke","type":"basic","scancode":66},{"keyActionType":"keystroke","type":"basic","scancode":67},{"keyActionType":"keystroke","type":"basic","scancode":68},{"keyActionType":"keystroke","type":"basic","scancode":69},{"keyActionType":"keystroke","type":"basic","scancode":76},{"keyActionType":"keystroke","type":"basic","scancode":74},{"keyActionType":"keystroke","type":"basic","scancode":82},{"keyActionType":"keystroke","type":"basic","scancode":77},{"keyActionType":"keystroke","type":"basic","scancode":76},{"keyActionType":"keystroke","type":"basic","scancode":70},{"keyActionType":"keystroke","type":"basic","scancode":71},{"keyActionType":"keystroke","type":"basic","scancode":72},{"keyActionType":"keystroke","type":"basic","scancode":75},{"keyActionType":"keystroke","type":"basic","scancode":80},{"keyActionType":"keystroke","type":"basic","scancode":81},{"keyActionType":"keystroke","type":"basic","scancode":79},{"keyActionType":"keystroke","type":"basic","scancode":73},null,null,{"keyActionType":"keystroke","type":"basic","scancode":78},{"keyActionType":"keystroke","type":"basic","scancode":41},null,null,null,{"keyActionType":"keystroke","type":"basic","scancode":101},{"keyActionType":"keystroke","type":"basic","modifierMask":32},null,null,null,null,{"keyActionType":"keystroke","type":"basic","modifierMask":64},{"keyActionType":"keystroke","type":"basic","modifierMask":128},{"keyActionType":"keystroke","type":"basic","modifierMask":16}]},{"id":1,"keyActions":[{"keyActionType":"keystroke","type":"basic","scancode":41},{"keyActionType":"keystroke","type":"basic","scancode":58},{"keyActionType":"keystroke","type":"basic","scancode":59},{"keyActionType":"keystroke","type":"basic","scancode":60},{"keyActionType":"keystroke","type":"basic","scancode":61},{"keyActionType":"keystroke","type":"basic","scancode":62},{"keyActionType":"keystroke","type":"basic","scancode":63},null,{"keyActionType":"keystroke","type":"basic","scancode":41},{"keyActionType":"keystroke","type":"basic","scancode":75,"modifierMask":1},{"keyActionType":"keystroke","type":"basic","scancode":23,"modifierMask":1},{"keyActionType":"keystroke","type":"basic","scancode":78,"modifierMask":1},null,null,null,{"keyActionType":"keystroke","type":"basic","scancode":57},{"keyActionType":"keystroke","type":"basic","scancode":80,"modifierMask":5},{"keyActionType":"keystroke","type":"basic","scancode":43,"modifierMask":4},{"keyActionType":"keystroke","type":"basic","scancode":79,"modifierMask":5},null,null,{"keyActionType":"keystroke","type":"basic","modifierMask":2},null,null,{"keyActionType":"keystroke","type":"basic","scancode":75,"modifierMask":3},{"keyActionType":"keystroke","type":"basic","scancode":26,"modifierMask":1},{"keyActionType":"keystroke","type":"basic","scancode":78,"modifierMask":3},null,{"keyActionType":"keystroke","type":"basic","modifierMask":1},{"keyActionType":"keystroke","type":"basic","modifierMask":8},{"keyActionType":"keystroke","type":"basic","modifierMask":4},null,null,null,null]}]},{"modules":[{"id":0,"keyActions":[null,null,null,null,null,null,null,{"keyActionType":"keystroke","type":"media","scancode":205},{"keyActionType":"keystroke","type":"media","scancode":233},null,null,null,null,{"keyActionType":"keystroke","type":"system","scancode":130},null,{"keyActionType":"keystroke","type":"media","scancode":182},{"keyActionType":"keystroke","type":"media","scancode":234},{"keyActionType":"keystroke","type":"media","scancode":181},null,null,null,null,null,null,{"keyActionType":"keystroke","type":"media","scancode":226},null,null,{"keyActionType":"keystroke","type":"basic","modifierMask":32},null,null,null,null,{"keyActionType":"keystroke","type":"basic","modifierMask":64},{"keyActionType":"keystroke","type":"basic","modifierMask":128},{"keyActionType":"keystroke","type":"basic","modifierMask":16}]},{"id":1,"keyActions":[null,{"keyActionType":"switchKeymap","keymapAbbreviation":"QWR"},{"keyActionType":"switchKeymap","keymapAbbreviation":"DVO"},{"keyActionType":"switchKeymap","keymapAbbreviation":"COL"},{"keyActionType":"switchKeymap","keymapAbbreviation":"QWM"},{"keyActionType":"switchKeymap","keymapAbbreviation":"DVM"},{"keyActionType":"switchKeymap","keymapAbbreviation":"COM"},null,null,null,null,null,null,null,null,null,null,null,null,null,null,{"keyActionType":"keystroke","type":"basic","modifierMask":2},null,null,null,null,null,null,{"keyActionType":"keystroke","type":"basic","modifierMask":1},{"keyActionType":"keystroke","type":"basic","modifierMask":8},{"keyActionType":"keystroke","type":"basic","modifierMask":4},null,null,null,null]}]},{"modules":[{"id":0,"keyActions":[null,null,null,null,null,null,null,{"keyActionType":"mouse","mouseAction":"scrollLeft"},{"keyActionType":"mouse","mouseAction":"moveUp"},{"keyActionType":"mouse","mouseAction":"scrollRight"},null,null,null,null,{"keyActionType":"mouse","mouseAction":"scrollUp"},{"keyActionType":"mouse","mouseAction":"moveLeft"},{"keyActionType":"mouse","mouseAction":"moveDown"},{"keyActionType":"mouse","mouseAction":"moveRight"},null,null,null,{"keyActionType":"mouse","mouseAction":"scrollDown"},null,null,null,null,null,{"keyActionType":"keystroke","type":"basic","modifierMask":32},null,{"keyActionType":"mouse","mouseAction":"leftClick"},{"keyActionType":"mouse","mouseAction":"rightClick"},null,{"keyActionType":"keystroke","type":"basic","modifierMask":64},{"keyActionType":"keystroke","type":"basic","modifierMask":128},{"keyActionType":"keystroke","type":"basic","modifierMask":16}]},{"id":1,"keyActions":[null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,{"keyActionType":"mouse","mouseAction":"rightClick"},{"keyActionType":"mouse","mouseAction":"middleClick"},{"keyActionType":"mouse","mouseAction":"leftClick"},null,null,{"keyActionType":"keystroke","type":"basic","modifierMask":2},null,null,null,null,null,null,{"keyActionType":"keystroke","type":"basic","modifierMask":1},{"keyActionType":"keystroke","type":"basic","modifierMask":8},{"keyActionType":"keystroke","type":"basic","modifierMask":4},null,{"keyActionType":"mouse","mouseAction":"decelerate"},{"keyActionType":"mouse","mouseAction":"accelerate"},null]}]}]}],"macros":[{"isLooped":true,"isPrivate":true,"name":"Go to UHK site in browser","macroActions":[{"macroActionType":"key","action":"tap","type":"basic","scancode":15,"modifierMask":1},{"macroActionType":"text","text":"https://ultimatehackingkeyboard.com"},{"macroActionType":"key","action":"tap","type":"basic","scancode":40}]},{"isLooped":false,"isPrivate":true,"name":"God mode in Doom","macroActions":[{"macroActionType":"text","text":"iddqd"}]},{"isLooped":false,"isPrivate":true,"name":"Type Silent Bob\'s address","macroActions":[{"macroActionType":"text","text":"Silent Bob\\n711-2880 Nulla St.\\nMankato Mississippi 96522\\n(257) 563-7401"}]}]}')},PDX0:function(e,t){(function(t){e.exports=t}).call(this,{})},PP4X:function(e,t,n){var r={"./DVR.json":"x7X3","./EMY.json":"ZEkC","./QTY.json":"wCQ+","./VIM.json":"5F+I"};function i(e){var t=o(e);return n(t)}function o(e){if(!n.o(r,e)){var t=new Error("Cannot find module '"+e+"'");throw t.code="MODULE_NOT_FOUND",t}return r[e]}i.keys=function(){return Object.keys(r)},i.resolve=o,e.exports=i,i.id="PP4X"},Phjn:function(e,t,n){"use strict";n.d(t,"a",function(){return i});var r=n("psW0");function i(e,t){return Object(r.a)(e,t,1)}},PzH3:function(e,t,n){"use strict";var r=n("bBst"),i=n("Ys8N"),o=global.document,l=function(e,t,n,r){return e.addEventListener(t,n,r)},u=function(e,t,n,r){return e.removeEventListener(t,n,r)},a=[];function s(e,t,n){var r=function(e,t,n){var r,i;for(r=0;rr.LastKeystrokeAction)throw`Invalid ${t} first byte: ${n}`}else if(n!==i)throw`Invalid ${t} first byte: ${n}`;return n}renameKeymap(e,t){return this}}},RPol:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e){e.AGENT_GITHUB_URL="https://github.com/UltimateHackingKeyboard/agent",e.AGENT_CONTRIBUTORS_GITHUB_PAGE_URL="https://github.com/UltimateHackingKeyboard/agent/graphs/contributors",e.AGENT_CONTRIBUTORS_GITHUB_API_URL="https://api.github.com/repos/UltimateHackingKeyboard/agent/contributors",e.FIRMWARE_GITHUB_ISSUE_URL="https://github.com/UltimateHackingKeyboard/agent/issues/new"}(t.Constants||(t.Constants={}))},S1nX:function(e,t,n){"use strict";n.d(t,"a",function(){return u});var r=n("xlPZ"),i=n("yGWI"),o=n("K9Ia");function l(){return new o.a}function u(){return function(e){return Object(i.a)()(Object(r.a)(l)(e))}}},S3Q5:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.LogService=class{error(...e){console.error(e)}debug(...e){console.log(e)}silly(...e){console.log(e)}info(...e){console.info(e)}}},S5bw:function(e,t,n){"use strict";n.d(t,"a",function(){return c});var r=n("mrSG"),i=n("K9Ia"),o=n("zo3G"),l=n("pugT"),u=n("mZXl"),a=n("8g8A"),s=n("uMaO"),c=function(e){function t(t,n,r){void 0===t&&(t=Number.POSITIVE_INFINITY),void 0===n&&(n=Number.POSITIVE_INFINITY);var i=e.call(this)||this;return i.scheduler=r,i._events=[],i._infiniteTimeWindow=!1,i._bufferSize=t<1?1:t,i._windowTime=n<1?1:n,n===Number.POSITIVE_INFINITY?(i._infiniteTimeWindow=!0,i.next=i.nextInfiniteTimeWindow):i.next=i.nextTimeWindow,i}return r.c(t,e),t.prototype.nextInfiniteTimeWindow=function(t){var n=this._events;n.push(t),n.length>this._bufferSize&&n.shift(),e.prototype.next.call(this,t)},t.prototype.nextTimeWindow=function(t){this._events.push(new p(this._getNow(),t)),this._trimBufferThenGetEvents(),e.prototype.next.call(this,t)},t.prototype._subscribe=function(e){var t,n=this._infiniteTimeWindow,r=n?this._events:this._trimBufferThenGetEvents(),i=this.scheduler,o=r.length;if(this.closed)throw new a.a;if(this.isStopped||this.hasError?t=l.a.EMPTY:(this.observers.push(e),t=new s.a(this,e)),i&&e.add(e=new u.a(e,i)),n)for(var c=0;ct&&(o=Math.max(o,i-t)),o>0&&r.splice(0,o),r},t}(i.a),p=function(){return function(e,t){this.time=e,this.value=t}}()},SACm:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n("u32M");class i{constructor(){this._enableDump=!1,this.offset=0,this.bytesToBacktrack=0,this.buffer=r.Buffer.alloc(i.eepromSize),this.buffer.fill(0)}static simpleElementWriter(e,t){t.toBinary(e)}static fromArray(e){if(e.length<1)return null;const t=new i;let n=!1;for(const r of e)r>0&&(n=!0),t.writeUInt8(r);return t.offset=0,t}readInt8(){const e=this.buffer.readInt8(this.offset);return this.dump(`i8(${e})`),this.bytesToBacktrack=1,this.offset+=this.bytesToBacktrack,e}writeInt8(e){this.dump(`i8(${e})`),this.buffer.writeInt8(e,this.offset),this.offset+=1}readUInt8(){const e=this.buffer.readUInt8(this.offset);return this.dump(`u8(${e})`),this.bytesToBacktrack=1,this.offset+=this.bytesToBacktrack,e}writeUInt8(e){this.dump(`u8(${e})`),this.buffer.writeUInt8(e,this.offset),this.offset+=1}readInt16(){const e=this.buffer.readInt16LE(this.offset);return this.dump(`i16(${e})`),this.bytesToBacktrack=2,this.offset+=this.bytesToBacktrack,e}writeInt16(e){this.dump(`i16(${e})`),this.buffer.writeInt16LE(e,this.offset),this.offset+=2}readUInt16(){const e=this.buffer.readUInt16LE(this.offset);return this.dump(`u16(${e})`),this.bytesToBacktrack=2,this.offset+=this.bytesToBacktrack,e}writeUInt16(e){this.dump(`u16(${e})`),this.buffer.writeUInt16LE(e,this.offset),this.offset+=2}readInt32(){const e=this.buffer.readInt32LE(this.offset);return this.dump(`i32(${e})`),this.bytesToBacktrack=4,this.offset+=this.bytesToBacktrack,e}writeInt32(e){this.dump(`i32(${e})`),this.buffer.writeInt32LE(e,this.offset),this.offset+=4}readUInt32(){const e=this.buffer.readUInt32LE(this.offset);return this.dump(`u32(${e})`),this.bytesToBacktrack=4,this.offset+=this.bytesToBacktrack,e}writeUInt32(e){this.dump(`u32(${e})`),this.buffer.writeUInt32LE(e,this.offset),this.offset+=4}readCompactLength(){let e=this.readUInt8();return e===i.longCompactLengthPrefix&&(e=this.readUInt16()),e}writeCompactLength(e){e>=i.longCompactLengthPrefix?(this.writeUInt8(i.longCompactLengthPrefix),this.writeUInt16(e)):this.writeUInt8(e)}readString(){const e=this.readCompactLength(),t=this.buffer.toString(i.stringEncoding,this.offset,this.offset+e);return this.dump(`${i.stringEncoding}(${t})`),this.bytesToBacktrack=e,this.offset+=e,t}writeString(e){const t=r.Buffer.byteLength(e,i.stringEncoding);if(t>i.maxCompactLength)throw`Cannot serialize string: ${t} bytes is larger\n than the maximum allowed length of ${i.maxCompactLength} bytes`;this.writeCompactLength(t),this.dump(`${i.stringEncoding}(${e})`),this.buffer.write(e,this.offset,t,i.stringEncoding),this.offset+=t}readBoolean(){return 0!==this.readUInt8()}writeBoolean(e){this.writeUInt8(e?1:0)}readArray(e){const t=[],n=this.readCompactLength();for(let r=0;r"},{"id":"56","text":"/ ?"}]},{"text":"Whitespace","children":[{"id":"40","additional":{"explanation":"Return"},"text":"Enter"},{"id":"44","text":"Space"},{"id":"43","text":"Tab"}]},{"text":"Miscellaneous","children":[{"id":"41","text":"Escape"},{"id":"42","text":"Backspace"},{"id":"73","text":"Insert"},{"id":"76","text":"Delete"},{"id":"101","text":"Menu"},{"id":"57","text":"Caps Lock"},{"id":"71","text":"Scroll Lock"},{"id":"70","text":"Print Screen SysRq"},{"id":"72","text":"Pause"}]},{"text":"Function","children":[{"id":"58","text":"F1"},{"id":"59","text":"F2"},{"id":"60","text":"F3"},{"id":"61","text":"F4"},{"id":"62","text":"F5"},{"id":"63","text":"F6"},{"id":"64","text":"F7"},{"id":"65","text":"F8"},{"id":"66","text":"F9"},{"id":"67","text":"F10"},{"id":"68","text":"F11"},{"id":"69","text":"F12"},{"id":"104","text":"F13"},{"id":"105","text":"F14"},{"id":"106","text":"F15"},{"id":"107","text":"F16"},{"id":"108","text":"F17"},{"id":"109","text":"F18"},{"id":"110","text":"F19"},{"id":"111","text":"F20"},{"id":"112","text":"F21"},{"id":"113","text":"F22"},{"id":"114","text":"F23"},{"id":"115","text":"F24"}]},{"text":"Navigation","children":[{"id":"75","additional":{"explanation":"PgUp"},"text":"Page Up"},{"id":"78","additional":{"explanation":"PgDn"},"text":"Page Down"},{"id":"74","text":"Home"},{"id":"77","text":"End"},{"id":"80","text":"Left Arrow"},{"id":"79","text":"Right Arrow"},{"id":"82","text":"Up Arrow"},{"id":"81","text":"Down Arrow"}]},{"text":"Media","children":[{"id":"127","text":"Mute","additional":{"type":"media","scancode":226}},{"id":"128","text":"Volume Up","additional":{"type":"media","scancode":233}},{"id":"129","text":"Volume Down","additional":{"type":"media","scancode":234}},{"id":"130","text":"Next Track","additional":{"type":"media","scancode":181}},{"id":"131","text":"Previous Track","additional":{"type":"media","scancode":182}},{"id":"133","text":"Play/Pause","additional":{"type":"media","scancode":205}},{"id":"134","text":"Play","additional":{"type":"media","scancode":176}},{"id":"135","text":"Pause","additional":{"type":"media","scancode":177}},{"id":"136","text":"Stop","additional":{"type":"media","scancode":183}},{"id":"137","text":"Eject","additional":{"type":"media","scancode":184}},{"id":"145","text":"History Back","additional":{"type":"media","scancode":548}},{"id":"146","text":"History Forward","additional":{"type":"media","scancode":549}}]},{"text":"Launch application","children":[{"id":"143","text":"Launch Email Client","additional":{"type":"media","scancode":394}},{"id":"144","text":"Launch Calculator","additional":{"type":"media","scancode":402}}]},{"text":"System","children":[{"id":"139","text":"Power Down","additional":{"type":"system","scancode":129}},{"id":"140","text":"Sleep","additional":{"type":"system","scancode":130}},{"id":"141","text":"Wake Up","additional":{"type":"system","scancode":131}}]},{"text":"Numpad","children":[{"id":"83","text":"NumLock"},{"id":"84","additional":{"explanation":"slash"},"text":"/"},{"id":"85","additional":{"explanation":"asterisk"},"text":"*"},{"id":"86","additional":{"explanation":"minus"},"text":"-"},{"id":"87","additional":{"explanation":"plus"},"text":"+"},{"id":"88","text":"Enter"},{"id":"89","additional":{"explanation":"one"},"text":"1"},{"id":"90","additional":{"explanation":"two"},"text":"2"},{"id":"91","additional":{"explanation":"three"},"text":"3"},{"id":"92","additional":{"explanation":"four"},"text":"4"},{"id":"93","additional":{"explanation":"five"},"text":"5"},{"id":"94","additional":{"explanation":"six"},"text":"6"},{"id":"95","additional":{"explanation":"seven"},"text":"7"},{"id":"96","additional":{"explanation":"eight"},"text":"8"},{"id":"97","additional":{"explanation":"nine"},"text":"9"},{"id":"98","additional":{"explanation":"zero"},"text":"0"},{"id":"99","additional":{"explanation":"period"},"text":"."}]},{"text":"International","children":[{"id":"235","text":"International 1","additional":{"type":"basic","scancode":135}},{"id":"236","text":"International 2","additional":{"type":"basic","scancode":136}},{"id":"237","text":"International 3","additional":{"type":"basic","scancode":137}},{"id":"244","text":"Language 1","additional":{"type":"basic","scancode":144}},{"id":"245","text":"Language 2","additional":{"type":"basic","scancode":145}}]}]')},UEaM:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e){e[e.leftCtrl=0]="leftCtrl",e[e.leftShift=1]="leftShift",e[e.leftAlt=2]="leftAlt",e[e.leftSuper=3]="leftSuper",e[e.rightCtrl=4]="rightCtrl",e[e.rightShift=5]="rightShift",e[e.rightAlt=6]="rightAlt",e[e.rightSuper=7]="rightSuper",e[e.mod=8]="mod",e[e.fn=9]="fn",e[e.mouse=10]="mouse"}(t.SecondaryRoleAction||(t.SecondaryRoleAction={}))},Vib2:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n("2QPq"),i=n("Mfn/"),o=n("rBfm");class l extends o.MacroAction{constructor(e){super(),e&&(this.x=e.x,this.y=e.y)}fromJsonObject(e){return this.assertMacroActionType(e),this.x=e.x,this.y=e.y,this}fromBinary(e){return this.readAndAssertMacroActionId(e),this.x=e.readInt16(),this.y=e.readInt16(),this}toJsonObject(){return{macroActionType:o.macroActionType.MoveMouseMacroAction,x:this.x,y:this.y}}toBinary(e){e.writeUInt8(o.MacroActionId.MoveMouseMacroAction),e.writeInt16(this.x),e.writeInt16(this.y)}toString(){return``}getName(){return"MoveMouseMacroAction"}}r.__decorate([i.assertInt16,r.__metadata("design:type",Number)],l.prototype,"x",void 0),r.__decorate([i.assertInt16,r.__metadata("design:type",Number)],l.prototype,"y",void 0),t.MoveMouseMacroAction=l},"VnD/":function(e,t,n){"use strict";n.d(t,"a",function(){return o});var r=n("mrSG"),i=n("FFOo");function o(e,t){return function(n){return n.lift(new l(e,t))}}var l=function(){function e(e,t){this.predicate=e,this.thisArg=t}return e.prototype.call=function(e,t){return t.subscribe(new u(e,this.predicate,this.thisArg))},e}(),u=function(e){function t(t,n,r){var i=e.call(this,t)||this;return i.predicate=n,i.thisArg=r,i.count=0,i}return r.c(t,e),t.prototype._next=function(e){var t;try{t=this.predicate.call(this.thisArg,e,this.count++)}catch(n){return void this.destination.error(n)}t&&this.destination.next(e)},t}(i.a)},WM0l:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),n("2QPq").__exportStar(n("S3Q5"),t)},XlPw:function(e,t,n){"use strict";n.d(t,"a",function(){return i});var r=n("6blF");function i(e,t){return new r.a(t?function(n){return t.schedule(o,0,{error:e,subscriber:n})}:function(t){return t.error(e)})}function o(e){e.subscriber.error(e.error)}},YS7c:function(e,t,n){"use strict";var r=n("8/JR"),i=n("PzH3"),o=n("n6yW"),l=document,u=l.documentElement;function a(e,t,n,r){global.navigator.pointerEnabled?i[t](e,{mouseup:"pointerup",mousedown:"pointerdown",mousemove:"pointermove"}[n],r):global.navigator.msPointerEnabled?i[t](e,{mouseup:"MSPointerUp",mousedown:"MSPointerDown",mousemove:"MSPointerMove"}[n],r):(i[t](e,{mouseup:"touchend",mousedown:"touchstart",mousemove:"touchmove"}[n],r),i[t](e,n,r))}function s(e){if(void 0!==e.touches)return e.touches.length;if(void 0!==e.which&&0!==e.which)return e.which;if(void 0!==e.buttons)return e.buttons;var t=e.button;return void 0!==t?1&t?1:2&t?3:4&t?2:0:void 0}function c(e,t){return void 0!==global[t]?global[t]:u.clientHeight?u[e]:l.body[e]}function p(e,t,n){var r,i=e||{},o=i.className;return i.className+=" gu-hide",r=l.elementFromPoint(t,n),i.className=o,r}function f(){return!1}function d(){return!0}function h(e){return e.width||e.right-e.left}function y(e){return e.height||e.bottom-e.top}function b(e){return e.parentNode===l?null:e.parentNode}function m(e){return"INPUT"===e.tagName||"TEXTAREA"===e.tagName||"SELECT"===e.tagName||function e(t){return!!t&&"false"!==t.contentEditable&&("true"===t.contentEditable||e(b(t)))}(e)}function g(e){return e.nextElementSibling||function(){var t=e;do{t=t.nextSibling}while(t&&1!==t.nodeType);return t}()}function v(e,t){var n=function(e){return e.targetTouches&&e.targetTouches.length?e.targetTouches[0]:e.changedTouches&&e.changedTouches.length?e.changedTouches[0]:e}(t),r={pageX:"clientX",pageY:"clientY"};return e in r&&!(e in n)&&r[e]in n&&(e=r[e]),n[e]}e.exports=function(e,t){var n,k,_,w,O,A,C,T,x,S,M;1===arguments.length&&!1===Array.isArray(e)&&(t=e,e=[]);var E,P=null,I=t||{};void 0===I.moves&&(I.moves=d),void 0===I.accepts&&(I.accepts=d),void 0===I.invalid&&(I.invalid=function(){return!1}),void 0===I.containers&&(I.containers=e||[]),void 0===I.isContainer&&(I.isContainer=f),void 0===I.copy&&(I.copy=!1),void 0===I.copySortSource&&(I.copySortSource=!1),void 0===I.revertOnSpill&&(I.revertOnSpill=!1),void 0===I.removeOnSpill&&(I.removeOnSpill=!1),void 0===I.direction&&(I.direction="vertical"),void 0===I.ignoreInputTextSelection&&(I.ignoreInputTextSelection=!0),void 0===I.mirrorContainer&&(I.mirrorContainer=l.body);var j=r({containers:I.containers,start:function(e){var t=B(e);t&&V(t)},end:G,cancel:W,remove:Q,destroy:function(){L(!0),$({})},canMove:function(e){return!!B(e)},dragging:!1});return!0===I.removeOnSpill&&j.on("over",function(e){o.rm(e,"gu-hide")}).on("out",function(e){j.dragging&&o.add(e,"gu-hide")}),L(),j;function R(e){return-1!==j.containers.indexOf(e)||I.isContainer(e)}function L(e){var t=e?"remove":"add";a(u,t,"mousedown",F),a(u,t,"mouseup",$)}function N(e){a(u,e?"remove":"add","mousemove",K)}function D(e){var t=e?"remove":"add";i[t](u,"selectstart",U),i[t](u,"click",U)}function U(e){E&&e.preventDefault()}function F(e){if(A=e.clientX,C=e.clientY,1===s(e)&&!e.metaKey&&!e.ctrlKey){var t=e.target,n=B(t);n&&(E=n,N(),"mousedown"===e.type&&(m(t)?t.focus():e.preventDefault()))}}function K(e){if(E)if(0!==s(e)){if(void 0===e.clientX||e.clientX!==A||void 0===e.clientY||e.clientY!==C){if(I.ignoreInputTextSelection){var t=v("clientX",e),r=v("clientY",e);if(m(l.elementFromPoint(t,r)))return}var i=E;N(!0),D(),G(),V(i);var p,f={left:(p=_.getBoundingClientRect()).left+c("scrollLeft","pageXOffset"),top:p.top+c("scrollTop","pageYOffset")};w=v("pageX",e)-f.left,O=v("pageY",e)-f.top,o.add(S||_,"gu-transit"),function(){if(!n){var e=_.getBoundingClientRect();(n=_.cloneNode(!0)).style.width=h(e)+"px",n.style.height=y(e)+"px",o.rm(n,"gu-transit"),o.add(n,"gu-mirror"),I.mirrorContainer.appendChild(n),a(u,"add","mousemove",Z),o.add(I.mirrorContainer,"gu-unselectable"),j.emit("cloned",n,_,"mirror")}}(),Z(e)}}else $({})}function B(e){if(!(j.dragging&&n||R(e))){for(var t=e;b(e)&&!1===R(b(e));){if(I.invalid(e,t))return;if(!(e=b(e)))return}var r=b(e);if(r&&!I.invalid(e,t)&&I.moves(e,r,t,g(e)))return{item:e,source:r}}}function V(e){("boolean"==typeof I.copy?I.copy:I.copy(e.item,e.source))&&(S=e.item.cloneNode(!0),j.emit("cloned",S,e.item,"copy")),k=e.source,_=e.item,T=x=g(e.item),j.dragging=!0,j.emit("drag",_,k)}function G(){if(j.dragging){var e=S||_;z(e,b(e))}}function H(){E=!1,N(!0),D(!0)}function $(e){if(H(),j.dragging){var t=S||_,r=v("clientX",e),i=v("clientY",e),o=Y(p(n,r,i),r,i);o&&(S&&I.copySortSource||!S||o!==k)?z(t,o):I.removeOnSpill?Q():W()}}function z(e,t){var n=b(e);S&&I.copySortSource&&t===k&&n.removeChild(_),J(t)?j.emit("cancel",e,k,k):j.emit("drop",e,t,k,x),q()}function Q(){if(j.dragging){var e=S||_,t=b(e);t&&t.removeChild(e),j.emit(S?"cancel":"remove",e,t,k),q()}}function W(e){if(j.dragging){var t=arguments.length>0?e:I.revertOnSpill,n=S||_,r=b(n),i=J(r);!1===i&&t&&(S?r&&r.removeChild(S):k.insertBefore(n,T)),i||t?j.emit("cancel",n,k,k):j.emit("drop",n,r,k,x),q()}}function q(){var e=S||_;H(),n&&(o.rm(I.mirrorContainer,"gu-unselectable"),a(u,"remove","mousemove",Z),b(n).removeChild(n),n=null),e&&o.rm(e,"gu-transit"),M&&clearTimeout(M),j.dragging=!1,P&&j.emit("out",e,P,k),j.emit("dragend",e),k=_=S=T=x=M=P=null}function J(e,t){var r;return r=void 0!==t?t:n?x:g(S||_),e===k&&r===T}function Y(e,t,n){for(var r=e;r&&!i();)r=b(r);return r;function i(){if(!1===R(r))return!1;var i=X(r,e),o=ee(r,i,t,n);return!!J(r,o)||I.accepts(_,r,k,o)}}function Z(e){if(n){e.preventDefault();var t=v("clientX",e),r=v("clientY",e),i=r-O;n.style.left=t-w+"px",n.style.top=i+"px";var o=S||_,l=p(n,t,r),u=Y(l,t,r),a=null!==u&&u!==P;(a||null===u)&&(P&&d("out"),P=u,a&&d("over"));var s=b(o);if(u!==k||!S||I.copySortSource){var c,f=X(u,l);if(null!==f)c=ee(u,f,t,r);else{if(!0!==I.revertOnSpill||S)return void(S&&s&&s.removeChild(o));c=T,u=k}(null===c&&a||c!==o&&c!==g(o))&&(x=c,u.insertBefore(o,c),j.emit("shadow",o,u,k))}else s&&s.removeChild(o)}function d(e){j.emit(e,o,P,k)}}function X(e,t){for(var n=t;n!==e&&b(n)!==e;)n=b(n);return n===u?null:n}function ee(e,t,n,r){var i,o="horizontal"===I.direction;return t!==e?(i=t.getBoundingClientRect(),(o?n>i.left+h(i)/2:r>i.top+y(i)/2)?g(t):t):function(){var t,i,l,u=e.children.length;for(t=0;tn)return i;if(!o&&l.top+l.height/2>r)return i}return null}()}}},Ys8N:function(e,t,n){"use strict";var r=[],i="",o=/^on/;for(i in global)o.test(i)&&r.push(i.slice(2));e.exports=r},YuTi:function(e,t){e.exports=function(e){return e.webpackPolyfill||(e.deprecate=function(){},e.paths=[],e.children||(e.children=[]),Object.defineProperty(e,"loaded",{enumerable:!0,get:function(){return e.l}}),Object.defineProperty(e,"id",{enumerable:!0,get:function(){return e.i}}),e.webpackPolyfill=1),e}},ZEkC:function(e){e.exports=JSON.parse('{"isDefault":false,"abbreviation":"EMY","name":"Empty keymap","description":"None of the keys are bind to any key action. It is ideal if you want to start creating your keymap from the ground up.","layers":[{"modules":[{"id":0,"pointerRole":"move","keyActions":[null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null]},{"id":1,"pointerRole":"move","keyActions":[null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null]}]},{"modules":[{"id":0,"pointerRole":"move","keyActions":[null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null]},{"id":1,"pointerRole":"move","keyActions":[null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null]}]},{"modules":[{"id":0,"pointerRole":"move","keyActions":[null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null]},{"id":1,"pointerRole":"move","keyActions":[null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null]}]},{"modules":[{"id":0,"pointerRole":"move","keyActions":[null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null]},{"id":1,"pointerRole":"move","keyActions":[null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null]}]}]}')},Zn8D:function(e,t,n){"use strict";n.d(t,"a",function(){return o});var r=n("psW0"),i=n("mChF");function o(e){return void 0===e&&(e=Number.POSITIVE_INFINITY),Object(r.a)(i.a,e)}},ad02:function(e,t,n){"use strict";n.d(t,"a",function(){return o});var r=n("mrSG"),i=n("FFOo");function o(e,t){return function(n){return n.lift(new l(e,t))}}var l=function(){function e(e,t){this.compare=e,this.keySelector=t}return e.prototype.call=function(e,t){return t.subscribe(new u(e,this.compare,this.keySelector))},e}(),u=function(e){function t(t,n,r){var i=e.call(this,t)||this;return i.keySelector=r,i.hasKey=!1,"function"==typeof n&&(i.compare=n),i}return r.c(t,e),t.prototype.compare=function(e,t){return e===t},t.prototype._next=function(e){var t;try{var n=this.keySelector;t=n?n(e):e}catch(i){return this.destination.error(i)}var r=!1;if(this.hasKey)try{r=(0,this.compare)(this.key,t)}catch(i){return this.destination.error(i)}else this.hasKey=!0;r||(this.key=t,this.destination.next(e))},t}(i.a)},anzk:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n("2QPq"),i=n("Mfn/"),o=n("UEaM"),l=n("RGrK"),u=n("FREM");var a;!function(e){e[e.scancode=1]="scancode",e[e.modifierMask=2]="modifierMask",e[e.secondaryRoleAction=4]="secondaryRoleAction"}(a=t.KeystrokeActionFlag||(t.KeystrokeActionFlag={}));const s=3,c=["LCtrl","LShift","LAlt","LSuper","RCtrl","RShift","RAlt","RSuper"];class p extends l.KeyAction{constructor(e){super(),e&&(this.type=e.type,this._scancode=e._scancode,this.modifierMask=e.modifierMask,this.secondaryRoleAction=e.secondaryRoleAction)}set scancode(e){this._scancode=e,this.type!==u.KeystrokeType.shortMedia&&this.type!==u.KeystrokeType.longMedia||(this.type=e<256?u.KeystrokeType.shortMedia:u.KeystrokeType.longMedia)}get scancode(){return this._scancode}set type(e){e!==u.KeystrokeType.shortMedia&&e!==u.KeystrokeType.longMedia||(e=this.scancode<256?u.KeystrokeType.shortMedia:u.KeystrokeType.longMedia),this._type=e}get type(){return this._type}fromJsonObject(e){return this.assertKeyActionType(e),this.type="media"===e.type?e.scancode<256?u.KeystrokeType.shortMedia:u.KeystrokeType.longMedia:u.KeystrokeType[e.type],this._scancode=e.scancode,this.modifierMask=e.modifierMask,this.secondaryRoleAction=o.SecondaryRoleAction[e.secondaryRoleAction],this}fromBinary(e){const t=this.readAndAssertKeyActionId(e)-l.KeyActionId.NoneAction;return this.type=t>>3&3,t&a.scancode&&(this._scancode=this.type===u.KeystrokeType.longMedia?e.readUInt16():e.readUInt8()),t&a.modifierMask&&(this.modifierMask=e.readUInt8()),t&a.secondaryRoleAction&&(this.secondaryRoleAction=e.readUInt8()),this}toJsonObject(){const e={keyActionType:l.keyActionType.KeystrokeAction};return e.type=this.type===u.KeystrokeType.shortMedia||this.type===u.KeystrokeType.longMedia?"media":u.KeystrokeType[this.type],this.hasScancode()&&(e.scancode=this._scancode),this.hasActiveModifier()&&(e.modifierMask=this.modifierMask),this.hasSecondaryRoleAction()&&(e.secondaryRoleAction=o.SecondaryRoleAction[this.secondaryRoleAction]),e}toBinary(e){let t=0;const n=[];this.hasScancode()&&(t|=a.scancode,n.push({data:this._scancode,long:this.type===u.KeystrokeType.longMedia})),this.hasActiveModifier()&&(t|=a.modifierMask,n.push({data:this.modifierMask,long:!1})),this.hasSecondaryRoleAction()&&(t|=a.secondaryRoleAction,n.push({data:this.secondaryRoleAction,long:!1})),e.writeUInt8(l.KeyActionId.NoneAction+(t+(this.type<`}isActive(e){return(this.modifierMask&e)>0}hasActiveModifier(){return this.modifierMask>0}hasSecondaryRoleAction(){return null!=this.secondaryRoleAction}hasScancode(){return!!this._scancode}hasOnlyOneActiveModifier(){return 0!==this.modifierMask&&!(this.modifierMask&this.modifierMask-1)}getModifierList(){const e=[];let t=this.modifierMask;for(let n=0;0!==t;++n,t>>=1)1&t&&e.push(c[n]);return e}getName(){return"KeystrokeAction"}}r.__decorate([i.assertUInt8,r.__metadata("design:type",Number)],p.prototype,"modifierMask",void 0),r.__decorate([i.assertEnum(o.SecondaryRoleAction),r.__metadata("design:type",Number)],p.prototype,"secondaryRoleAction",void 0),r.__decorate([i.assertEnum(u.KeystrokeType),r.__metadata("design:type",Number)],p.prototype,"_type",void 0),t.KeystrokeAction=p},b7mW:function(e,t,n){"use strict";function r(){return Error.call(this),this.message="argument out of range",this.name="ArgumentOutOfRangeError",this}n.d(t,"a",function(){return i}),r.prototype=Object.create(Error.prototype);var i=r},bBst:function(e,t){var n=global.CustomEvent;e.exports=function(){try{var e=new n("cat",{detail:{foo:"bar"}});return"cat"===e.type&&"bar"===e.detail.foo}catch(t){}return!1}()?n:"function"==typeof document.createEvent?function(e,t){var n=document.createEvent("CustomEvent");return t?n.initCustomEvent(e,t.bubbles,t.cancelable,t.detail):n.initCustomEvent(e,!1,!1,void 0),n}:function(e,t){var n=document.createEventObject();return n.type=e,t?(n.bubbles=Boolean(t.bubbles),n.cancelable=Boolean(t.cancelable),n.detail=t.detail):(n.bubbles=!1,n.cancelable=!1,n.detail=void 0),n}},crnd:function(e,t){function n(e){return Promise.resolve().then(function(){var t=new Error("Cannot find module '"+e+"'");throw t.code="MODULE_NOT_FOUND",t})}n.keys=function(){return[]},n.resolve=n,e.exports=n,n.id="crnd"},dC0D:function(e,t,n){"use strict";n.d(t,"a",function(){return o});var r=n("mrSG"),i=n("FFOo");function o(e,t){var n=!1;return arguments.length>=2&&(n=!0),function(r){return r.lift(new l(e,t,n))}}var l=function(){function e(e,t,n){void 0===n&&(n=!1),this.accumulator=e,this.seed=t,this.hasSeed=n}return e.prototype.call=function(e,t){return t.subscribe(new u(e,this.accumulator,this.seed,this.hasSeed))},e}(),u=function(e){function t(t,n,r,i){var o=e.call(this,t)||this;return o.accumulator=n,o._seed=r,o.hasSeed=i,o.index=0,o}return r.c(t,e),Object.defineProperty(t.prototype,"seed",{get:function(){return this._seed},set:function(e){this.hasSeed=!0,this._seed=e},enumerable:!0,configurable:!0}),t.prototype._next=function(e){if(this.hasSeed)return this._tryNext(e);this.seed=e,this.destination.next(e)},t.prototype._tryNext=function(e){var t,n=this.index++;try{t=this.accumulator(this.seed,e,n)}catch(r){this.destination.error(r)}this.seed=t,this.destination.next(t)},t}(i.a)},diPy:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n("2QPq");r.__exportStar(n("dk4d"),t),r.__exportStar(n("h1Ia"),t),r.__exportStar(n("rBfm"),t),r.__exportStar(n("Vib2"),t),r.__exportStar(n("+bod"),t),r.__exportStar(n("kIap"),t),r.__exportStar(n("G8Wf"),t);var i=n("CMKj");t.MacroActionHelper=i.Helper},dk4d:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n("2QPq"),i=n("Mfn/"),o=n("rBfm");class l extends o.MacroAction{constructor(e){super(),e&&(this.delay=e.delay)}fromJsonObject(e){return this.assertMacroActionType(e),this.delay=e.delay,this}fromBinary(e){return this.readAndAssertMacroActionId(e),this.delay=e.readUInt16(),this}toJsonObject(){return{macroActionType:o.macroActionType.DelayMacroAction,delay:this.delay}}toBinary(e){e.writeUInt8(o.MacroActionId.DelayMacroAction),e.writeUInt16(this.delay)}toString(){return``}getName(){return"DelayMacroAction"}}r.__decorate([i.assertUInt16,r.__metadata("design:type",Number)],l.prototype,"delay",void 0),t.DelayMacroAction=l},h1Ia:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n("2QPq"),i=n("Mfn/"),o=n("rBfm"),l=n("TEuf");class u extends o.MacroAction{constructor(e){super(),e&&(this.action=e.action,this.type=e.type,this._scancode=e._scancode,this.modifierMask=e.modifierMask)}set scancode(e){this._scancode=e,this.type!==l.KeystrokeType.shortMedia&&this.type!==l.KeystrokeType.longMedia||(this.type=e<256?l.KeystrokeType.shortMedia:l.KeystrokeType.longMedia)}get scancode(){return this._scancode}fromJsonObject(e){return this.assertMacroActionType(e),this.action=o.MacroKeySubAction[e.action],this.type="media"===e.type?e.scancode<256?l.KeystrokeType.shortMedia:l.KeystrokeType.longMedia:l.KeystrokeType[e.type],this._scancode=e.scancode,this.modifierMask=e.modifierMask,this}fromBinary(e){let t=this.readAndAssertMacroActionId(e)-o.MacroActionId.KeyMacroAction;return this.action=3&t,this.type=3&(t>>=2),2&(t>>=2)&&(this._scancode=this.type===l.KeystrokeType.longMedia?e.readUInt16():e.readUInt8()),1&t&&(this.modifierMask=e.readUInt8()),this}toJsonObject(){const e={macroActionType:o.macroActionType.KeyMacroAction,action:o.MacroKeySubAction[this.action]};return this.hasScancode()&&(e.type=this.type===l.KeystrokeType.shortMedia||this.type===l.KeystrokeType.longMedia?"media":l.KeystrokeType[this.type],e.scancode=this._scancode),this.hasModifiers()&&(e.modifierMask=this.modifierMask),e}toBinary(e){let t=0;t|=this.action,t|=this.type<<2,t|=(this.hasScancode()?2:0)+(this.hasModifiers()?1:0)<<4,e.writeUInt8(o.MacroActionId.KeyMacroAction+t),this.hasScancode()&&(this.type===l.KeystrokeType.longMedia?e.writeUInt16(this.scancode):e.writeUInt8(this.scancode)),this.hasModifiers()&&e.writeUInt8(this.modifierMask)}toString(){return``}isModifierActive(e){return(this.modifierMask&e)>0}hasScancode(){return!!this._scancode}hasModifiers(){return!!this.modifierMask}isPressAction(){return this.action===o.MacroKeySubAction.press}isTapAction(){return this.action===o.MacroKeySubAction.tap}isReleaseAction(){return this.action===o.MacroKeySubAction.release}getName(){return"KeyMacroAction"}}r.__decorate([i.assertEnum(o.MacroKeySubAction),r.__metadata("design:type",Number)],u.prototype,"action",void 0),r.__decorate([i.assertEnum(l.KeystrokeType),r.__metadata("design:type",Number)],u.prototype,"type",void 0),r.__decorate([i.assertUInt8,r.__metadata("design:type",Number)],u.prototype,"modifierMask",void 0),r.__decorate([i.assertUInt16,r.__metadata("design:type",Number)],u.prototype,"_scancode",void 0),t.KeyMacroAction=u},h9Dq:function(e,t,n){"use strict";var r=n("mrSG"),i=function(e){function t(t,n){return e.call(this)||this}return r.c(t,e),t.prototype.schedule=function(e,t){return void 0===t&&(t=0),this},t}(n("pugT").a);n.d(t,"a",function(){return o});var o=function(e){function t(t,n){var r=e.call(this,t,n)||this;return r.scheduler=t,r.work=n,r.pending=!1,r}return r.c(t,e),t.prototype.schedule=function(e,t){if(void 0===t&&(t=0),this.closed)return this;this.state=e;var n=this.id,r=this.scheduler;return null!=n&&(this.id=this.recycleAsyncId(r,n,t)),this.pending=!0,this.delay=t,this.id=this.id||this.requestAsyncId(r,this.id,t),this},t.prototype.requestAsyncId=function(e,t,n){return void 0===n&&(n=0),setInterval(e.flush.bind(e,this),n)},t.prototype.recycleAsyncId=function(e,t,n){if(void 0===n&&(n=0),null!==n&&this.delay===n&&!1===this.pending)return t;clearInterval(t)},t.prototype.execute=function(e,t){if(this.closed)return new Error("executing a cancelled action");this.pending=!1;var n=this._execute(e,t);if(n)return n;!1===this.pending&&null!=this.id&&(this.id=this.recycleAsyncId(this.scheduler,this.id,null))},t.prototype._execute=function(e,t){var n=!1,r=void 0;try{this.work(e)}catch(i){n=!0,r=!!i&&i||new Error(i)}if(n)return this.unsubscribe(),r},t.prototype._unsubscribe=function(){var e=this.id,t=this.scheduler,n=t.actions,r=n.indexOf(this);this.work=null,this.state=null,this.pending=!1,this.scheduler=null,-1!==r&&n.splice(r,1),null!=e&&(this.id=this.recycleAsyncId(t,e,null)),this.delay=null},t}(i)},hRLZ:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e){e.Unknown="Unknown",e.Ok="Ok",e.NeedToSetup="NeedToSetup",e.Different="Different"}(t.UdevRulesInfo||(t.UdevRulesInfo={}))},hT0y:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n("2QPq"),i=n("Mfn/"),o=n("RGrK");class l extends o.KeyAction{constructor(e){super(),e&&(this.macroId=e instanceof l?e.macroId:e.id)}fromJsonObject(e,t){return this.assertKeyActionType(e),this.macroId=t[e.macroIndex].id,this}fromBinary(e,t){this.readAndAssertKeyActionId(e);const n=e.readUInt8();return this.macroId=t[n].id,this}toJsonObject(e){return{keyActionType:o.keyActionType.PlayMacroAction,macroIndex:e.findIndex(e=>e.id===this.macroId)}}toBinary(e,t){e.writeUInt8(o.KeyActionId.PlayMacroAction),e.writeUInt8(t.macros.findIndex(e=>e.id===this.macroId))}toString(){return``}getName(){return"PlayMacroAction"}}r.__decorate([i.assertUInt8,r.__metadata("design:type",Number)],l.prototype,"macroId",void 0),t.PlayMacroAction=l},"i/vr":function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n("TEuf");(t.ConfigSerializer||(t.ConfigSerializer={})).resolveSwitchKeymapActions=function(e){for(const t of e)for(const n of t.layers)for(const t of n.modules)for(let n=0;n>1,c=-7,p=n?i-1:0,f=n?-1:1,d=e[t+p];for(p+=f,o=d&(1<<-c)-1,d>>=-c,c+=u;c>0;o=256*o+e[t+p],p+=f,c-=8);for(l=o&(1<<-c)-1,o>>=-c,c+=r;c>0;l=256*l+e[t+p],p+=f,c-=8);if(0===o)o=1-s;else{if(o===a)return l?NaN:1/0*(d?-1:1);l+=Math.pow(2,r),o-=s}return(d?-1:1)*l*Math.pow(2,o-r)},t.write=function(e,t,n,r,i,o){var l,u,a,s=8*o-i-1,c=(1<>1,f=23===i?Math.pow(2,-24)-Math.pow(2,-77):0,d=r?0:o-1,h=r?1:-1,y=t<0||0===t&&1/t<0?1:0;for(t=Math.abs(t),isNaN(t)||t===1/0?(u=isNaN(t)?1:0,l=c):(l=Math.floor(Math.log(t)/Math.LN2),t*(a=Math.pow(2,-l))<1&&(l--,a*=2),(t+=l+p>=1?f/a:f*Math.pow(2,1-p))*a>=2&&(l++,a/=2),l+p>=c?(u=0,l=c):l+p>=1?(u=(t*a-1)*Math.pow(2,i),l+=p):(u=t*Math.pow(2,p-1)*Math.pow(2,i),l=0));i>=8;e[n+d]=255&u,d+=h,u/=256,i-=8);for(l=l<0;e[n+d]=255&l,d+=h,l/=256,s-=8);e[n+d-h]|=128*y}},jWEn:function(e,t){var n;t=e.exports=Q,n="object"==typeof process&&process.env&&process.env.NODE_DEBUG&&/\bsemver\b/i.test(process.env.NODE_DEBUG)?function(){var e=Array.prototype.slice.call(arguments,0);e.unshift("SEMVER"),console.log.apply(console,e)}:function(){},t.SEMVER_SPEC_VERSION="2.0.0";var r=256,i=Number.MAX_SAFE_INTEGER||9007199254740991,o=t.re=[],l=t.src=[],u=0,a=u++;l[a]="0|[1-9]\\d*";var s=u++;l[s]="[0-9]+";var c=u++;l[c]="\\d*[a-zA-Z-][a-zA-Z0-9-]*";var p=u++;l[p]="("+l[a]+")\\.("+l[a]+")\\.("+l[a]+")";var f=u++;l[f]="("+l[s]+")\\.("+l[s]+")\\.("+l[s]+")";var d=u++;l[d]="(?:"+l[a]+"|"+l[c]+")";var h=u++;l[h]="(?:"+l[s]+"|"+l[c]+")";var y=u++;l[y]="(?:-("+l[d]+"(?:\\."+l[d]+")*))";var b=u++;l[b]="(?:-?("+l[h]+"(?:\\."+l[h]+")*))";var m=u++;l[m]="[0-9A-Za-z-]+";var g=u++;l[g]="(?:\\+("+l[m]+"(?:\\."+l[m]+")*))";var v=u++,k="v?"+l[p]+l[y]+"?"+l[g]+"?";l[v]="^"+k+"$";var _="[v=\\s]*"+l[f]+l[b]+"?"+l[g]+"?",w=u++;l[w]="^"+_+"$";var O=u++;l[O]="((?:<|>)?=?)";var A=u++;l[A]=l[s]+"|x|X|\\*";var C=u++;l[C]=l[a]+"|x|X|\\*";var T=u++;l[T]="[v=\\s]*("+l[C]+")(?:\\.("+l[C]+")(?:\\.("+l[C]+")(?:"+l[y]+")?"+l[g]+"?)?)?";var x=u++;l[x]="[v=\\s]*("+l[A]+")(?:\\.("+l[A]+")(?:\\.("+l[A]+")(?:"+l[b]+")?"+l[g]+"?)?)?";var S=u++;l[S]="^"+l[O]+"\\s*"+l[T]+"$";var M=u++;l[M]="^"+l[O]+"\\s*"+l[x]+"$";var E=u++;l[E]="(?:^|[^\\d])(\\d{1,16})(?:\\.(\\d{1,16}))?(?:\\.(\\d{1,16}))?(?:$|[^\\d])";var P=u++;l[P]="(?:~>?)";var I=u++;l[I]="(\\s*)"+l[P]+"\\s+",o[I]=new RegExp(l[I],"g");var j=u++;l[j]="^"+l[P]+l[T]+"$";var R=u++;l[R]="^"+l[P]+l[x]+"$";var L=u++;l[L]="(?:\\^)";var N=u++;l[N]="(\\s*)"+l[L]+"\\s+",o[N]=new RegExp(l[N],"g");var D=u++;l[D]="^"+l[L]+l[T]+"$";var U=u++;l[U]="^"+l[L]+l[x]+"$";var F=u++;l[F]="^"+l[O]+"\\s*("+_+")$|^$";var K=u++;l[K]="^"+l[O]+"\\s*("+k+")$|^$";var B=u++;l[B]="(\\s*)"+l[O]+"\\s*("+_+"|"+l[T]+")",o[B]=new RegExp(l[B],"g");var V=u++;l[V]="^\\s*("+l[T]+")\\s+-\\s+("+l[T]+")\\s*$";var G=u++;l[G]="^\\s*("+l[x]+")\\s+-\\s+("+l[x]+")\\s*$";var H=u++;l[H]="(<|>)?=?\\s*\\*";for(var $=0;$<35;$++)n($,l[$]),o[$]||(o[$]=new RegExp(l[$]));function z(e,t){if(t&&"object"==typeof t||(t={loose:!!t,includePrerelease:!1}),e instanceof Q)return e;if("string"!=typeof e)return null;if(e.length>r)return null;if(!(t.loose?o[w]:o[v]).test(e))return null;try{return new Q(e,t)}catch(n){return null}}function Q(e,t){if(t&&"object"==typeof t||(t={loose:!!t,includePrerelease:!1}),e instanceof Q){if(e.loose===t.loose)return e;e=e.version}else if("string"!=typeof e)throw new TypeError("Invalid Version: "+e);if(e.length>r)throw new TypeError("version is longer than "+r+" characters");if(!(this instanceof Q))return new Q(e,t);n("SemVer",e,t),this.options=t,this.loose=!!t.loose;var l=e.trim().match(t.loose?o[w]:o[v]);if(!l)throw new TypeError("Invalid Version: "+e);if(this.raw=e,this.major=+l[1],this.minor=+l[2],this.patch=+l[3],this.major>i||this.major<0)throw new TypeError("Invalid major version");if(this.minor>i||this.minor<0)throw new TypeError("Invalid minor version");if(this.patch>i||this.patch<0)throw new TypeError("Invalid patch version");this.prerelease=l[4]?l[4].split(".").map(function(e){if(/^[0-9]+$/.test(e)){var t=+e;if(t>=0&&t=0;)"number"==typeof this.prerelease[n]&&(this.prerelease[n]++,n=-2);-1===n&&this.prerelease.push(0)}t&&(this.prerelease[0]===t?isNaN(this.prerelease[1])&&(this.prerelease=[t,0]):this.prerelease=[t,0]);break;default:throw new Error("invalid increment argument: "+e)}return this.format(),this.raw=this.version,this},t.inc=function(e,t,n,r){"string"==typeof n&&(r=n,n=void 0);try{return new Q(e,n).inc(t,r).version}catch(i){return null}},t.diff=function(e,t){if(X(e,t))return null;var n=z(e),r=z(t);if(n.prerelease.length||r.prerelease.length){for(var i in n)if(("major"===i||"minor"===i||"patch"===i)&&n[i]!==r[i])return"pre"+i;return"prerelease"}for(var i in n)if(("major"===i||"minor"===i||"patch"===i)&&n[i]!==r[i])return i},t.compareIdentifiers=q;var W=/^[0-9]+$/;function q(e,t){var n=W.test(e),r=W.test(t);return n&&r&&(e=+e,t=+t),n&&!r?-1:r&&!n?1:et?1:0}function J(e,t,n){return new Q(e,n).compare(new Q(t,n))}function Y(e,t,n){return J(e,t,n)>0}function Z(e,t,n){return J(e,t,n)<0}function X(e,t,n){return 0===J(e,t,n)}function ee(e,t,n){return 0!==J(e,t,n)}function te(e,t,n){return J(e,t,n)>=0}function ne(e,t,n){return J(e,t,n)<=0}function re(e,t,n,r){var i;switch(t){case"===":"object"==typeof e&&(e=e.version),"object"==typeof n&&(n=n.version),i=e===n;break;case"!==":"object"==typeof e&&(e=e.version),"object"==typeof n&&(n=n.version),i=e!==n;break;case"":case"=":case"==":i=X(e,n,r);break;case"!=":i=ee(e,n,r);break;case">":i=Y(e,n,r);break;case">=":i=te(e,n,r);break;case"<":i=Z(e,n,r);break;case"<=":i=ne(e,n,r);break;default:throw new TypeError("Invalid operator: "+t)}return i}function ie(e,t){if(t&&"object"==typeof t||(t={loose:!!t,includePrerelease:!1}),e instanceof ie){if(e.loose===!!t.loose)return e;e=e.value}if(!(this instanceof ie))return new ie(e,t);n("comparator",e,t),this.options=t,this.loose=!!t.loose,this.parse(e),this.value=this.semver===oe?"":this.operator+this.semver.version,n("comp",this)}t.rcompareIdentifiers=function(e,t){return q(t,e)},t.major=function(e,t){return new Q(e,t).major},t.minor=function(e,t){return new Q(e,t).minor},t.patch=function(e,t){return new Q(e,t).patch},t.compare=J,t.compareLoose=function(e,t){return J(e,t,!0)},t.rcompare=function(e,t,n){return J(t,e,n)},t.sort=function(e,n){return e.sort(function(e,r){return t.compare(e,r,n)})},t.rsort=function(e,n){return e.sort(function(e,r){return t.rcompare(e,r,n)})},t.gt=Y,t.lt=Z,t.eq=X,t.neq=ee,t.gte=te,t.lte=ne,t.cmp=re,t.Comparator=ie;var oe={};function le(e,t){if(t&&"object"==typeof t||(t={loose:!!t,includePrerelease:!1}),e instanceof le)return e.loose===!!t.loose&&e.includePrerelease===!!t.includePrerelease?e:new le(e.raw,t);if(e instanceof ie)return new le(e.value,t);if(!(this instanceof le))return new le(e,t);if(this.options=t,this.loose=!!t.loose,this.includePrerelease=!!t.includePrerelease,this.raw=e,this.set=e.split(/\s*\|\|\s*/).map(function(e){return this.parseRange(e.trim())},this).filter(function(e){return e.length}),!this.set.length)throw new TypeError("Invalid SemVer Range: "+e);this.format()}function ue(e){return!e||"x"===e.toLowerCase()||"*"===e}function ae(e,t,n,r,i,o,l,u,a,s,c,p,f){return((t=ue(n)?"":ue(r)?">="+n+".0.0":ue(i)?">="+n+"."+r+".0":">="+t)+" "+(u=ue(a)?"":ue(s)?"<"+(+a+1)+".0.0":ue(c)?"<"+a+"."+(+s+1)+".0":p?"<="+a+"."+s+"."+c+"-"+p:"<="+u)).trim()}function se(e,t,r){for(var i=0;i0){var o=e[i].semver;if(o.major===t.major&&o.minor===t.minor&&o.patch===t.patch)return!0}return!1}return!0}function ce(e,t,n){try{t=new le(t,n)}catch(r){return!1}return t.test(e)}function pe(e,t,n,r){var i,o,l,u,a;switch(e=new Q(e,r),t=new le(t,r),n){case">":i=Y,o=ne,l=Z,u=">",a=">=";break;case"<":i=Z,o=te,l=Y,u="<",a="<=";break;default:throw new TypeError('Must provide a hilo val of "<" or ">"')}if(ce(e,t,r))return!1;for(var s=0;s=0.0.0")),p=p||e,i(e.semver,(c=c||e).semver,r)?c=e:l(e.semver,p.semver,r)&&(p=e)}),c.operator===u||c.operator===a)return!1;if((!p.operator||p.operator===u)&&o(e,p.semver))return!1;if(p.operator===a&&l(e,p.semver))return!1}return!0}ie.prototype.parse=function(e){var t=e.match(this.options.loose?o[F]:o[K]);if(!t)throw new TypeError("Invalid comparator: "+e);this.operator=t[1],"="===this.operator&&(this.operator=""),this.semver=t[2]?new Q(t[2],this.options.loose):oe},ie.prototype.toString=function(){return this.value},ie.prototype.test=function(e){return n("Comparator.test",e,this.options.loose),this.semver===oe||("string"==typeof e&&(e=new Q(e,this.options)),re(e,this.operator,this.semver,this.options))},ie.prototype.intersects=function(e,t){if(!(e instanceof ie))throw new TypeError("a Comparator is required");var n;if(t&&"object"==typeof t||(t={loose:!!t,includePrerelease:!1}),""===this.operator)return n=new le(e.value,t),ce(this.value,n,t);if(""===e.operator)return n=new le(this.value,t),ce(e.semver,n,t);var r=!(">="!==this.operator&&">"!==this.operator||">="!==e.operator&&">"!==e.operator),i=!("<="!==this.operator&&"<"!==this.operator||"<="!==e.operator&&"<"!==e.operator),o=this.semver.version===e.semver.version,l=!(">="!==this.operator&&"<="!==this.operator||">="!==e.operator&&"<="!==e.operator),u=re(this.semver,"<",e.semver,t)&&(">="===this.operator||">"===this.operator)&&("<="===e.operator||"<"===e.operator),a=re(this.semver,">",e.semver,t)&&("<="===this.operator||"<"===this.operator)&&(">="===e.operator||">"===e.operator);return r||i||o&&l||u||a},t.Range=le,le.prototype.format=function(){return this.range=this.set.map(function(e){return e.join(" ").trim()}).join("||").trim(),this.range},le.prototype.toString=function(){return this.range},le.prototype.parseRange=function(e){var t=this.options.loose;e=(e=e.trim()).replace(t?o[G]:o[V],ae),n("hyphen replace",e),e=e.replace(o[B],"$1$2$3"),n("comparator trim",e,o[B]),e=(e=(e=e.replace(o[I],"$1~")).replace(o[N],"$1^")).split(/\s+/).join(" ");var r=t?o[F]:o[K],i=e.split(" ").map(function(e){return function(e,t){return n("comp",e,t),e=function(e,t){return e.trim().split(/\s+/).map(function(e){return function(e,t){return n("caret",e,t),t&&"object"==typeof t||(t={loose:!!t,includePrerelease:!1}),e.replace(t.loose?o[U]:o[D],function(t,r,i,o,l){var u;return n("caret",e,t,r,i,o,l),ue(r)?u="":ue(i)?u=">="+r+".0.0 <"+(+r+1)+".0.0":ue(o)?u="0"===r?">="+r+"."+i+".0 <"+r+"."+(+i+1)+".0":">="+r+"."+i+".0 <"+(+r+1)+".0.0":l?(n("replaceCaret pr",l),"-"!==l.charAt(0)&&(l="-"+l),u="0"===r?"0"===i?">="+r+"."+i+"."+o+l+" <"+r+"."+i+"."+(+o+1):">="+r+"."+i+"."+o+l+" <"+r+"."+(+i+1)+".0":">="+r+"."+i+"."+o+l+" <"+(+r+1)+".0.0"):(n("no pr"),u="0"===r?"0"===i?">="+r+"."+i+"."+o+" <"+r+"."+i+"."+(+o+1):">="+r+"."+i+"."+o+" <"+r+"."+(+i+1)+".0":">="+r+"."+i+"."+o+" <"+(+r+1)+".0.0"),n("caret return",u),u})}(e,t)}).join(" ")}(e,t),n("caret",e),e=function(e,t){return e.trim().split(/\s+/).map(function(e){return function(e,t){return t&&"object"==typeof t||(t={loose:!!t,includePrerelease:!1}),e.replace(t.loose?o[R]:o[j],function(t,r,i,o,l){var u;return n("tilde",e,t,r,i,o,l),ue(r)?u="":ue(i)?u=">="+r+".0.0 <"+(+r+1)+".0.0":ue(o)?u=">="+r+"."+i+".0 <"+r+"."+(+i+1)+".0":l?(n("replaceTilde pr",l),"-"!==l.charAt(0)&&(l="-"+l),u=">="+r+"."+i+"."+o+l+" <"+r+"."+(+i+1)+".0"):u=">="+r+"."+i+"."+o+" <"+r+"."+(+i+1)+".0",n("tilde return",u),u})}(e,t)}).join(" ")}(e,t),n("tildes",e),e=function(e,t){return n("replaceXRanges",e,t),e.split(/\s+/).map(function(e){return function(e,t){return t&&"object"==typeof t||(t={loose:!!t,includePrerelease:!1}),(e=e.trim()).replace(t.loose?o[M]:o[S],function(t,r,i,o,l,u){n("xRange",e,t,r,i,o,l,u);var a=ue(i),s=a||ue(o),c=s||ue(l);return"="===r&&c&&(r=""),a?t=">"===r||"<"===r?"<0.0.0":"*":r&&c?(s&&(o=0),c&&(l=0),">"===r?(r=">=",s?(i=+i+1,o=0,l=0):c&&(o=+o+1,l=0)):"<="===r&&(r="<",s?i=+i+1:o=+o+1),t=r+i+"."+o+"."+l):s?t=">="+i+".0.0 <"+(+i+1)+".0.0":c&&(t=">="+i+"."+o+".0 <"+i+"."+(+o+1)+".0"),n("xRange return",t),t})}(e,t)}).join(" ")}(e,t),n("xrange",e),e=function(e,t){return n("replaceStars",e,t),e.trim().replace(o[H],"")}(e,t),n("stars",e),e}(e,this.options)},this).join(" ").split(/\s+/);return this.options.loose&&(i=i.filter(function(e){return!!e.match(r)})),i.map(function(e){return new ie(e,this.options)},this)},le.prototype.intersects=function(e,t){if(!(e instanceof le))throw new TypeError("a Range is required");return this.set.some(function(n){return n.every(function(n){return e.set.some(function(e){return e.every(function(e){return n.intersects(e,t)})})})})},t.toComparators=function(e,t){return new le(e,t).set.map(function(e){return e.map(function(e){return e.value}).join(" ").trim().split(" ")})},le.prototype.test=function(e){if(!e)return!1;"string"==typeof e&&(e=new Q(e,this.options));for(var t=0;t",n)},t.outside=pe,t.prerelease=function(e,t){var n=z(e,t);return n&&n.prerelease.length?n.prerelease:null},t.intersects=function(e,t,n){return e=new le(e,n),t=new le(t,n),e.intersects(t)},t.coerce=function(e){if(e instanceof Q)return e;if("string"!=typeof e)return null;var t=e.match(o[E]);return null==t?null:z((t[1]||"0")+"."+(t[2]||"0")+"."+(t[3]||"0"))}},kIap:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n("2QPq"),i=n("Mfn/"),o=n("rBfm");class l extends o.MacroAction{constructor(e){super(),e&&(this.x=e.x,this.y=e.y)}fromJsonObject(e){return this.assertMacroActionType(e),this.x=e.x,this.y=e.y,this}fromBinary(e){return this.readAndAssertMacroActionId(e),this.x=e.readInt16(),this.y=e.readInt16(),this}toJsonObject(){return{macroActionType:o.macroActionType.ScrollMouseMacroAction,x:this.x,y:this.y}}toBinary(e){e.writeUInt8(o.MacroActionId.ScrollMouseMacroAction),e.writeInt16(this.x),e.writeInt16(this.y)}toString(){return``}getName(){return"ScrollMouseMacroAction"}}r.__decorate([i.assertInt16,r.__metadata("design:type",Number)],l.prototype,"x",void 0),r.__decorate([i.assertInt16,r.__metadata("design:type",Number)],l.prototype,"y",void 0),t.ScrollMouseMacroAction=l},kS0V:function(e,t,n){"use strict";t.byteLength=function(e){var t=s(e),n=t[1];return 3*(t[0]+n)/4-n},t.toByteArray=function(e){for(var t,n=s(e),r=n[0],l=n[1],u=new o(function(e,t,n){return 3*(t+n)/4-n}(0,r,l)),a=0,c=l>0?r-4:r,p=0;p>16&255,u[a++]=t>>8&255,u[a++]=255&t;return 2===l&&(t=i[e.charCodeAt(p)]<<2|i[e.charCodeAt(p+1)]>>4,u[a++]=255&t),1===l&&(t=i[e.charCodeAt(p)]<<10|i[e.charCodeAt(p+1)]<<4|i[e.charCodeAt(p+2)]>>2,u[a++]=t>>8&255,u[a++]=255&t),u},t.fromByteArray=function(e){for(var t,n=e.length,i=n%3,o=[],l=0,u=n-i;lu?u:l+16383));return 1===i?o.push(r[(t=e[n-1])>>2]+r[t<<4&63]+"=="):2===i&&o.push(r[(t=(e[n-2]<<8)+e[n-1])>>10]+r[t>>4&63]+r[t<<2&63]+"="),o.join("")};for(var r=[],i=[],o="undefined"!=typeof Uint8Array?Uint8Array:Array,l="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",u=0,a=l.length;u0)throw new Error("Invalid string. Length must be a multiple of 4");var n=e.indexOf("=");return-1===n&&(n=t),[n,n===t?0:4-n%4]}function c(e,t,n){for(var i,o=[],l=t;l>18&63]+r[i>>12&63]+r[i>>6&63]+r[63&i]);return o.join("")}i["-".charCodeAt(0)]=62,i["_".charCodeAt(0)]=63},lLol:function(e,t,n){"use strict";n.r(t);var r=n("CcnG"),i=function(){return function(){}}(),o=function(e){return e.UpdateAvailable="[app-update] update available",e.UpdateApp="[app-update] update app",e.DoNotUpdateApp="[app-update] do not update app",e.UpdateDownloaded="[app-update] update downloaded",e.Updating="[app-update] updating",e.UpdateError="[app-update] error",e}({}),l=function(){return function(){this.type=o.UpdateApp}}(),u=function(){return function(){this.type=o.DoNotUpdateApp}}(),a=function(){return function(e){this.payload=e,this.type=o.UpdateDownloaded}}(),s=function(){return function(e){this.payload=e,this.type=o.UpdateError}}(),c=function(e){return e.SetPrivilegeOnLinux="[device] set privilege on linux",e.SetPrivilegeOnLinuxReply="[device] set privilege on linux reply",e.ConnectionStateChanged="[device] connection state changed",e.SaveConfiguration="[device] save configuration",e.SaveConfigurationReply="[device] save configuration reply",e.SavingConfiguration="[device] saving configuration",e.ShowSaveToKeyboardButton="[device] show save to keyboard button",e.SaveToKeyboardSuccess="[device] save to keyboard success",e.SaveToKeyboardFailed="[device] save to keyboard failed",e.HideSaveToKeyboardButton="[device] hide save to keyboard button",e.ResetUserConfiguration="[device] reset user configuration",e.ResetPcMouseSpeedSettings="[device] reset PC mouse speed settings",e.ResetMacMouseSpeedSettings="[device] reset Mac mouse speed settings",e.UpdateFirmware="[device] update firmware",e.UpdateFirmwareWith="[device] update firmware with",e.UpdateFirmwareReply="[device] update firmware reply",e.UpdateFirmwareSuccess="[device] update firmware success",e.UpdateFirmwareFailed="[device] update firmware failed",e.ModulesInfoLoaded="[device] module info loaded",e.HasBackupUserConfiguration="[device] Store backup user configuration",e.RestoreConfigurationFromBackup="[device] Restore configuration from backup",e.RestoreConfigurationFromBackupSuccess="[device] Restore configuration from backup success",e.RecoveryDevice="[device] Recovery device",e.EnableUsbStackTest="[device] USB stack test",e.StartConnectionPoller="[device] Start connection poller",e}({}),p=function(){return function(){this.type=c.SetPrivilegeOnLinux}}(),f=function(){return function(e){this.payload=e,this.type=c.SetPrivilegeOnLinuxReply}}(),d=function(){return function(e){this.payload=e,this.type=c.ConnectionStateChanged}}(),h=function(){return function(){this.type=c.SaveConfiguration}}(),y=function(){return function(e){this.payload=e,this.type=c.SaveConfigurationReply}}(),b=function(){return function(){this.type=c.ShowSaveToKeyboardButton}}(),m=function(){return function(){this.type=c.SaveToKeyboardSuccess}}(),g=function(){return function(){this.type=c.SaveToKeyboardFailed}}(),v=function(){return function(){this.type=c.HideSaveToKeyboardButton}}(),k=function(){return function(){this.type=c.ResetUserConfiguration}}(),_=function(){return function(){this.type=c.UpdateFirmware}}(),w=function(){return function(e){this.payload=e,this.type=c.UpdateFirmwareWith}}(),O=function(){return function(e){this.payload=e,this.type=c.UpdateFirmwareReply}}(),A=function(){return function(e){this.payload=e,this.type=c.UpdateFirmwareSuccess}}(),C=function(){return function(e){this.payload=e,this.type=c.UpdateFirmwareFailed}}(),T=function(){return function(){this.type=c.ResetPcMouseSpeedSettings}}(),x=function(){return function(){this.type=c.ResetMacMouseSpeedSettings}}(),S=function(){return function(e){this.payload=e,this.type=c.ModulesInfoLoaded}}(),M=function(){return function(){this.type=c.RestoreConfigurationFromBackup}}(),E=function(){return function(e){this.payload=e,this.type=c.HasBackupUserConfiguration}}(),P=function(){return function(){this.type=c.RestoreConfigurationFromBackupSuccess}}(),I=function(){return function(){this.type=c.RecoveryDevice}}(),j=function(){return function(){this.type=c.EnableUsbStackTest}}(),R=function(){return function(){this.type=c.StartConnectionPoller}}(),L=n("yGQT"),N=n("mrSG"),D=function(){return function(){}}(),U=new r.q("Location Initialized"),F=function(){return function(){}}(),K=new r.q("appBaseHref"),B=function(){function e(e,n){var i=this;this._subject=new r.m,this._urlChangeListeners=[],this._platformStrategy=e;var o=this._platformStrategy.getBaseHref();this._platformLocation=n,this._baseHref=t.stripTrailingSlash(V(o)),this._platformStrategy.onPopState(function(e){i._subject.emit({url:i.path(!0),pop:!0,state:e.state,type:e.type})})}var t;return t=e,e.prototype.path=function(e){return void 0===e&&(e=!1),this.normalize(this._platformStrategy.path(e))},e.prototype.getState=function(){return this._platformLocation.getState()},e.prototype.isCurrentPathEqualTo=function(e,n){return void 0===n&&(n=""),this.path()==this.normalize(e+t.normalizeQueryParams(n))},e.prototype.normalize=function(e){return t.stripTrailingSlash(function(e,t){return e&&t.startsWith(e)?t.substring(e.length):t}(this._baseHref,V(e)))},e.prototype.prepareExternalUrl=function(e){return e&&"/"!==e[0]&&(e="/"+e),this._platformStrategy.prepareExternalUrl(e)},e.prototype.go=function(e,n,r){void 0===n&&(n=""),void 0===r&&(r=null),this._platformStrategy.pushState(r,"",e,n),this._notifyUrlChangeListeners(this.prepareExternalUrl(e+t.normalizeQueryParams(n)),r)},e.prototype.replaceState=function(e,n,r){void 0===n&&(n=""),void 0===r&&(r=null),this._platformStrategy.replaceState(r,"",e,n),this._notifyUrlChangeListeners(this.prepareExternalUrl(e+t.normalizeQueryParams(n)),r)},e.prototype.forward=function(){this._platformStrategy.forward()},e.prototype.back=function(){this._platformStrategy.back()},e.prototype.onUrlChange=function(e){var t=this;this._urlChangeListeners.push(e),this.subscribe(function(e){t._notifyUrlChangeListeners(e.url,e.state)})},e.prototype._notifyUrlChangeListeners=function(e,t){void 0===e&&(e=""),this._urlChangeListeners.forEach(function(n){return n(e,t)})},e.prototype.subscribe=function(e,t,n){return this._subject.subscribe({next:e,error:t,complete:n})},e.normalizeQueryParams=function(e){return e&&"?"!==e[0]?"?"+e:e},e.joinWithSlash=function(e,t){if(0==e.length)return t;if(0==t.length)return e;var n=0;return e.endsWith("/")&&n++,t.startsWith("/")&&n++,2==n?e+t.substring(1):1==n?e+t:e+"/"+t},e.stripTrailingSlash=function(e){var t=e.match(/#|\?|$/),n=t&&t.index||e.length;return e.slice(0,n-("/"===e[n-1]?1:0))+e.slice(n)},e}();function V(e){return e.replace(/\/index.html$/,"")}var G=function(e){function t(t,n){var r=e.call(this)||this;return r._platformLocation=t,r._baseHref="",null!=n&&(r._baseHref=n),r}return Object(N.c)(t,e),t.prototype.onPopState=function(e){this._platformLocation.onPopState(e),this._platformLocation.onHashChange(e)},t.prototype.getBaseHref=function(){return this._baseHref},t.prototype.path=function(e){void 0===e&&(e=!1);var t=this._platformLocation.hash;return null==t&&(t="#"),t.length>0?t.substring(1):t},t.prototype.prepareExternalUrl=function(e){var t=B.joinWithSlash(this._baseHref,e);return t.length>0?"#"+t:t},t.prototype.pushState=function(e,t,n,r){var i=this.prepareExternalUrl(n+B.normalizeQueryParams(r));0==i.length&&(i=this._platformLocation.pathname),this._platformLocation.pushState(e,t,i)},t.prototype.replaceState=function(e,t,n,r){var i=this.prepareExternalUrl(n+B.normalizeQueryParams(r));0==i.length&&(i=this._platformLocation.pathname),this._platformLocation.replaceState(e,t,i)},t.prototype.forward=function(){this._platformLocation.forward()},t.prototype.back=function(){this._platformLocation.back()},t}(F),H=function(e){function t(t,n){var r=e.call(this)||this;if(r._platformLocation=t,null==n&&(n=r._platformLocation.getBaseHrefFromDOM()),null==n)throw new Error("No base href set. Please provide a value for the APP_BASE_HREF token or add a base element to the document.");return r._baseHref=n,r}return Object(N.c)(t,e),t.prototype.onPopState=function(e){this._platformLocation.onPopState(e),this._platformLocation.onHashChange(e)},t.prototype.getBaseHref=function(){return this._baseHref},t.prototype.prepareExternalUrl=function(e){return B.joinWithSlash(this._baseHref,e)},t.prototype.path=function(e){void 0===e&&(e=!1);var t=this._platformLocation.pathname+B.normalizeQueryParams(this._platformLocation.search),n=this._platformLocation.hash;return n&&e?""+t+n:t},t.prototype.pushState=function(e,t,n,r){var i=this.prepareExternalUrl(n+B.normalizeQueryParams(r));this._platformLocation.pushState(e,t,i)},t.prototype.replaceState=function(e,t,n,r){var i=this.prepareExternalUrl(n+B.normalizeQueryParams(r));this._platformLocation.replaceState(e,t,i)},t.prototype.forward=function(){this._platformLocation.forward()},t.prototype.back=function(){this._platformLocation.back()},t}(F),z=function(e){return e[e.Zero=0]="Zero",e[e.One=1]="One",e[e.Two=2]="Two",e[e.Few=3]="Few",e[e.Many=4]="Many",e[e.Other=5]="Other",e}({}),Q=r.wb,W=new r.q("UseV4Plurals"),q=function(){return function(){}}(),J=function(e){function t(t,n){var r=e.call(this)||this;return r.locale=t,r.deprecatedPluralFn=n,r}return Object(N.c)(t,e),t.prototype.getPluralCategory=function(e,t){switch(this.deprecatedPluralFn?this.deprecatedPluralFn(t||this.locale,e):Q(t||this.locale)(e)){case z.Zero:return"zero";case z.One:return"one";case z.Two:return"two";case z.Few:return"few";case z.Many:return"many";default:return"other"}},t}(q);function Y(e,t){var n,r;t=encodeURIComponent(t);try{for(var i=Object(N.h)(e.split(";")),o=i.next();!o.done;o=i.next()){var l=o.value,u=l.indexOf("="),a=Object(N.f)(-1==u?[l,""]:[l.slice(0,u),l.slice(u+1)],2),s=a[1];if(a[0].trim()===t)return decodeURIComponent(s)}}catch(c){n={error:c}}finally{try{o&&!o.done&&(r=i.return)&&r.call(i)}finally{if(n)throw n.error}}return null}var Z=function(){return function(){}}(),X=function(){function e(e,t,n,r){this._iterableDiffers=e,this._keyValueDiffers=t,this._ngEl=n,this._renderer=r,this._initialClasses=[]}return e.prototype.getValue=function(){return null},e.prototype.setClass=function(e){this._removeClasses(this._initialClasses),this._initialClasses="string"==typeof e?e.split(/\s+/):[],this._applyClasses(this._initialClasses),this._applyClasses(this._rawClass)},e.prototype.setNgClass=function(e){this._removeClasses(this._rawClass),this._applyClasses(this._initialClasses),this._iterableDiffer=null,this._keyValueDiffer=null,this._rawClass="string"==typeof e?e.split(/\s+/):e,this._rawClass&&(Object(r.zb)(this._rawClass)?this._iterableDiffer=this._iterableDiffers.find(this._rawClass).create():this._keyValueDiffer=this._keyValueDiffers.find(this._rawClass).create())},e.prototype.applyChanges=function(){if(this._iterableDiffer){var e=this._iterableDiffer.diff(this._rawClass);e&&this._applyIterableChanges(e)}else if(this._keyValueDiffer){var t=this._keyValueDiffer.diff(this._rawClass);t&&this._applyKeyValueChanges(t)}},e.prototype._applyKeyValueChanges=function(e){var t=this;e.forEachAddedItem(function(e){return t._toggleClass(e.key,e.currentValue)}),e.forEachChangedItem(function(e){return t._toggleClass(e.key,e.currentValue)}),e.forEachRemovedItem(function(e){e.previousValue&&t._toggleClass(e.key,!1)})},e.prototype._applyIterableChanges=function(e){var t=this;e.forEachAddedItem(function(e){if("string"!=typeof e.item)throw new Error("NgClass can only toggle CSS classes expressed as strings, got "+Object(r.Nb)(e.item));t._toggleClass(e.item,!0)}),e.forEachRemovedItem(function(e){return t._toggleClass(e.item,!1)})},e.prototype._applyClasses=function(e){var t=this;e&&(Array.isArray(e)||e instanceof Set?e.forEach(function(e){return t._toggleClass(e,!0)}):Object.keys(e).forEach(function(n){return t._toggleClass(n,!!e[n])}))},e.prototype._removeClasses=function(e){var t=this;e&&(Array.isArray(e)||e instanceof Set?e.forEach(function(e){return t._toggleClass(e,!1)}):Object.keys(e).forEach(function(e){return t._toggleClass(e,!1)}))},e.prototype._toggleClass=function(e,t){var n=this;(e=e.trim())&&e.split(/\s+/g).forEach(function(e){t?n._renderer.addClass(n._ngEl.nativeElement,e):n._renderer.removeClass(n._ngEl.nativeElement,e)})},e}(),ee=function(e){function t(t){return e.call(this,t)||this}return Object(N.c)(t,e),Object.defineProperty(t.prototype,"klass",{set:function(e){this._delegate.setClass(e)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"ngClass",{set:function(e){this._delegate.setNgClass(e)},enumerable:!0,configurable:!0}),t.prototype.ngDoCheck=function(){this._delegate.applyChanges()},t}(function(){function e(e){this._delegate=e}return e.prototype.getValue=function(){return this._delegate.getValue()},e.ngDirectiveDef=void 0,e}()),te=function(){function e(e,t,n,r){this.$implicit=e,this.ngForOf=t,this.index=n,this.count=r}return Object.defineProperty(e.prototype,"first",{get:function(){return 0===this.index},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"last",{get:function(){return this.index===this.count-1},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"even",{get:function(){return this.index%2==0},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"odd",{get:function(){return!this.even},enumerable:!0,configurable:!0}),e}(),ne=function(){function e(e,t,n){this._viewContainer=e,this._template=t,this._differs=n,this._ngForOfDirty=!0,this._differ=null}return Object.defineProperty(e.prototype,"ngForOf",{set:function(e){this._ngForOf=e,this._ngForOfDirty=!0},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"ngForTrackBy",{get:function(){return this._trackByFn},set:function(e){Object(r.Y)()&&null!=e&&"function"!=typeof e&&console&&console.warn&&console.warn("trackBy must be a function, but received "+JSON.stringify(e)+". See https://angular.io/docs/ts/latest/api/common/index/NgFor-directive.html#!#change-propagation for more information."),this._trackByFn=e},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"ngForTemplate",{set:function(e){e&&(this._template=e)},enumerable:!0,configurable:!0}),e.prototype.ngDoCheck=function(){if(this._ngForOfDirty){this._ngForOfDirty=!1;var e=this._ngForOf;if(!this._differ&&e)try{this._differ=this._differs.find(e).create(this.ngForTrackBy)}catch(r){throw new Error("Cannot find a differ supporting object '"+e+"' of type '"+((t=e).name||typeof t)+"'. NgFor only supports binding to Iterables such as Arrays.")}}var t;if(this._differ){var n=this._differ.diff(this._ngForOf);n&&this._applyChanges(n)}},e.prototype._applyChanges=function(e){var t=this,n=[];e.forEachOperation(function(e,r,i){if(null==e.previousIndex){var o=t._viewContainer.createEmbeddedView(t._template,new te(null,t._ngForOf,-1,-1),null===i?void 0:i),l=new re(e,o);n.push(l)}else null==i?t._viewContainer.remove(null===r?void 0:r):null!==r&&(o=t._viewContainer.get(r),t._viewContainer.move(o,i),l=new re(e,o),n.push(l))});for(var r=0;r0)for(var n=this.count>=this.total?this.total:this.count,r=this.ring,i=0;i=2;return function(r){return r.pipe(e?Object(Ve.a)(function(t,n){return e(t,n,r)}):tt.a,$e(1),n?Ze(t):We(function(){return new Te}))}}var rt=n("9Z1F"),it=n("t9fZ");function ot(e,t){var n=arguments.length>=2;return function(r){return r.pipe(e?Object(Ve.a)(function(t,n){return e(t,n,r)}):tt.a,Object(it.a)(1),n?Ze(t):We(function(){return new Te}))}}var lt=n("psW0"),ut=function(){function e(e,t,n){this.predicate=e,this.thisArg=t,this.source=n}return e.prototype.call=function(e,t){return t.subscribe(new at(e,this.predicate,this.thisArg,this.source))},e}(),at=function(e){function t(t,n,r,i){var o=e.call(this,t)||this;return o.predicate=n,o.thisArg=r,o.source=i,o.index=0,o.thisArg=r||o,o}return N.c(t,e),t.prototype.notifyComplete=function(e){this.destination.next(e),this.destination.complete()},t.prototype._next=function(e){var t=!1;try{t=this.predicate.call(this.thisArg,e,this.index++,this.source)}catch(n){return void this.destination.error(n)}t||this.notifyComplete(!1)},t.prototype._complete=function(){this.notifyComplete(!0)},t}(Ge.a),st=n("15JJ");function ct(){for(var e=[],t=0;t=2?function(n){return Object(ht.a)(Object(ft.a)(e,t),$e(1),Ze(t))(n)}:function(t){return Object(ht.a)(Object(ft.a)(function(t,n,r){return e(t,n,r+1)}),$e(1))(t)}}var bt=n("+umK"),mt=n("2Bdj");function gt(e,t,n){return function(r){return r.lift(new vt(e,t,n))}}var vt=function(){function e(e,t,n){this.nextOrObserver=e,this.error=t,this.complete=n}return e.prototype.call=function(e,t){return t.subscribe(new kt(e,this.nextOrObserver,this.error,this.complete))},e}(),kt=function(e){function t(t,n,r,i){var o=e.call(this,t)||this;return o._tapNext=bt.a,o._tapError=bt.a,o._tapComplete=bt.a,o._tapError=r||bt.a,o._tapComplete=i||bt.a,Object(mt.a)(n)?(o._context=o,o._tapNext=n):n&&(o._context=n,o._tapNext=n.next||bt.a,o._tapError=n.error||bt.a,o._tapComplete=n.complete||bt.a),o}return N.c(t,e),t.prototype._next=function(e){try{this._tapNext.call(this._context,e)}catch(t){return void this.destination.error(t)}this.destination.next(e)},t.prototype._error=function(e){try{this._tapError.call(this._context,e)}catch(e){return void this.destination.error(e)}this.destination.error(e)},t.prototype._complete=function(){try{this._tapComplete.call(this._context)}catch(e){return void this.destination.error(e)}return this.destination.complete()},t}(Ge.a),_t=n("pugT"),wt=function(){function e(e){this.callback=e}return e.prototype.call=function(e,t){return t.subscribe(new Ot(e,this.callback))},e}(),Ot=function(e){function t(t,n){var r=e.call(this,t)||this;return r.add(new _t.a(n)),r}return N.c(t,e),t}(Ge.a),At=null;function Ct(){return At}var Tt,xt=function(e){function t(){var t=e.call(this)||this;t._animationPrefix=null,t._transitionEnd=null;try{var n=t.createElement("div",document);if(null!=t.getStyle(n,"animationName"))t._animationPrefix="";else for(var r=["Webkit","Moz","O","ms"],i=0;i0},t.prototype.tagName=function(e){return e.tagName},t.prototype.attributeMap=function(e){for(var t=new Map,n=e.attributes,r=0;r0;u||(u=e[l]=[]);var s=fn(t)?Zone.root:Zone.current;if(0===u.length)u.push({zone:s,handler:o});else{for(var c=!1,p=0;p-1},t}(Ht),kn=["alt","control","meta","shift"],_n={alt:function(e){return e.altKey},control:function(e){return e.ctrlKey},meta:function(e){return e.metaKey},shift:function(e){return e.shiftKey}},wn=function(e){function t(t){return e.call(this,t)||this}var n;return Object(N.c)(t,e),n=t,t.prototype.supports=function(e){return null!=n.parseEventName(e)},t.prototype.addEventListener=function(e,t,r){var i=n.parseEventName(t),o=n.eventCallback(i.fullKey,r,this.manager.getZone());return this.manager.getZone().runOutsideAngular(function(){return Ct().onAndCancel(e,i.domEventName,o)})},t.parseEventName=function(e){var t=e.toLowerCase().split("."),r=t.shift();if(0===t.length||"keydown"!==r&&"keyup"!==r)return null;var i=n._normalizeKey(t.pop()),o="";if(kn.forEach(function(e){var n=t.indexOf(e);n>-1&&(t.splice(n,1),o+=e+".")}),o+=i,0!=t.length||0===i.length)return null;var l={};return l.domEventName=r,l.fullKey=o,l},t.getEventFullKey=function(e){var t="",n=Ct().getEventKey(e);return" "===(n=n.toLowerCase())?n="space":"."===n&&(n="dot"),kn.forEach(function(r){r!=n&&(0,_n[r])(e)&&(t+=r+".")}),t+=n},t.eventCallback=function(e,t,r){return function(i){n.getEventFullKey(i)===e&&r.runGuarded(function(){return t(i)})}},t._normalizeKey=function(e){switch(e){case"esc":return"escape";default:return e}},t}(Ht),On=function(){return function(){}}(),An=function(e){function t(t){var n=e.call(this)||this;return n._doc=t,n}return Object(N.c)(t,e),t.prototype.sanitize=function(e,t){if(null==t)return null;switch(e){case r.I.NONE:return t;case r.I.HTML:return t instanceof Tn?t.changingThisBreaksApplicationSecurity:(this.checkNotSafeValue(t,"HTML"),Object(r.gb)(this._doc,String(t)));case r.I.STYLE:return t instanceof xn?t.changingThisBreaksApplicationSecurity:(this.checkNotSafeValue(t,"Style"),Object(r.hb)(t));case r.I.SCRIPT:if(t instanceof Sn)return t.changingThisBreaksApplicationSecurity;throw this.checkNotSafeValue(t,"Script"),new Error("unsafe value used in a script context");case r.I.URL:return t instanceof En||t instanceof Mn?t.changingThisBreaksApplicationSecurity:(this.checkNotSafeValue(t,"URL"),Object(r.ib)(String(t)));case r.I.RESOURCE_URL:if(t instanceof En)return t.changingThisBreaksApplicationSecurity;throw this.checkNotSafeValue(t,"ResourceURL"),new Error("unsafe value used in a resource URL context (see http://g.co/ng/security#xss)");default:throw new Error("Unexpected SecurityContext "+e+" (see http://g.co/ng/security#xss)")}},t.prototype.checkNotSafeValue=function(e,t){if(e instanceof Cn)throw new Error("Required a safe "+t+", got a "+e.getTypeName()+" (see http://g.co/ng/security#xss)")},t.prototype.bypassSecurityTrustHtml=function(e){return new Tn(e)},t.prototype.bypassSecurityTrustStyle=function(e){return new xn(e)},t.prototype.bypassSecurityTrustScript=function(e){return new Sn(e)},t.prototype.bypassSecurityTrustUrl=function(e){return new Mn(e)},t.prototype.bypassSecurityTrustResourceUrl=function(e){return new En(e)},t}(On),Cn=function(){function e(e){this.changingThisBreaksApplicationSecurity=e}return e.prototype.toString=function(){return"SafeValue must use [property]=binding: "+this.changingThisBreaksApplicationSecurity+" (see http://g.co/ng/security#xss)"},e}(),Tn=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Object(N.c)(t,e),t.prototype.getTypeName=function(){return"HTML"},t}(Cn),xn=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Object(N.c)(t,e),t.prototype.getTypeName=function(){return"Style"},t}(Cn),Sn=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Object(N.c)(t,e),t.prototype.getTypeName=function(){return"Script"},t}(Cn),Mn=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Object(N.c)(t,e),t.prototype.getTypeName=function(){return"URL"},t}(Cn),En=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Object(N.c)(t,e),t.prototype.getTypeName=function(){return"ResourceURL"},t}(Cn),Pn=[{provide:r.C,useValue:"browser"},{provide:r.D,useValue:function(){It.makeCurrent(),Ut.init()},multi:!0},{provide:D,useClass:Lt,deps:[me]},{provide:me,useFactory:function(){return document},deps:[]}],In=Object(r.S)(r.Z,"browser",Pn);function jn(){return new r.l}var Rn=function(){function e(e){if(e)throw new Error("BrowserModule has already been loaded. If you need access to common directives such as NgIf and NgFor from a lazy loaded module, import CommonModule instead.")}var t;return t=e,e.withServerTransition=function(e){return{ngModule:t,providers:[{provide:r.c,useValue:e.appId},{provide:Nt,useExisting:r.c},Dt]}},e}();"undefined"!=typeof window&&window;var Ln=function(){return function(e,t){this.id=e,this.url=t}}(),Nn=function(e){function t(t,n,r,i){void 0===r&&(r="imperative"),void 0===i&&(i=null);var o=e.call(this,t,n)||this;return o.navigationTrigger=r,o.restoredState=i,o}return Object(N.c)(t,e),t.prototype.toString=function(){return"NavigationStart(id: "+this.id+", url: '"+this.url+"')"},t}(Ln),Dn=function(e){function t(t,n,r){var i=e.call(this,t,n)||this;return i.urlAfterRedirects=r,i}return Object(N.c)(t,e),t.prototype.toString=function(){return"NavigationEnd(id: "+this.id+", url: '"+this.url+"', urlAfterRedirects: '"+this.urlAfterRedirects+"')"},t}(Ln),Un=function(e){function t(t,n,r){var i=e.call(this,t,n)||this;return i.reason=r,i}return Object(N.c)(t,e),t.prototype.toString=function(){return"NavigationCancel(id: "+this.id+", url: '"+this.url+"')"},t}(Ln),Fn=function(e){function t(t,n,r){var i=e.call(this,t,n)||this;return i.error=r,i}return Object(N.c)(t,e),t.prototype.toString=function(){return"NavigationError(id: "+this.id+", url: '"+this.url+"', error: "+this.error+")"},t}(Ln),Kn=function(e){function t(t,n,r,i){var o=e.call(this,t,n)||this;return o.urlAfterRedirects=r,o.state=i,o}return Object(N.c)(t,e),t.prototype.toString=function(){return"RoutesRecognized(id: "+this.id+", url: '"+this.url+"', urlAfterRedirects: '"+this.urlAfterRedirects+"', state: "+this.state+")"},t}(Ln),Bn=function(e){function t(t,n,r,i){var o=e.call(this,t,n)||this;return o.urlAfterRedirects=r,o.state=i,o}return Object(N.c)(t,e),t.prototype.toString=function(){return"GuardsCheckStart(id: "+this.id+", url: '"+this.url+"', urlAfterRedirects: '"+this.urlAfterRedirects+"', state: "+this.state+")"},t}(Ln),Vn=function(e){function t(t,n,r,i,o){var l=e.call(this,t,n)||this;return l.urlAfterRedirects=r,l.state=i,l.shouldActivate=o,l}return Object(N.c)(t,e),t.prototype.toString=function(){return"GuardsCheckEnd(id: "+this.id+", url: '"+this.url+"', urlAfterRedirects: '"+this.urlAfterRedirects+"', state: "+this.state+", shouldActivate: "+this.shouldActivate+")"},t}(Ln),Gn=function(e){function t(t,n,r,i){var o=e.call(this,t,n)||this;return o.urlAfterRedirects=r,o.state=i,o}return Object(N.c)(t,e),t.prototype.toString=function(){return"ResolveStart(id: "+this.id+", url: '"+this.url+"', urlAfterRedirects: '"+this.urlAfterRedirects+"', state: "+this.state+")"},t}(Ln),Hn=function(e){function t(t,n,r,i){var o=e.call(this,t,n)||this;return o.urlAfterRedirects=r,o.state=i,o}return Object(N.c)(t,e),t.prototype.toString=function(){return"ResolveEnd(id: "+this.id+", url: '"+this.url+"', urlAfterRedirects: '"+this.urlAfterRedirects+"', state: "+this.state+")"},t}(Ln),$n=function(){function e(e){this.route=e}return e.prototype.toString=function(){return"RouteConfigLoadStart(path: "+this.route.path+")"},e}(),zn=function(){function e(e){this.route=e}return e.prototype.toString=function(){return"RouteConfigLoadEnd(path: "+this.route.path+")"},e}(),Qn=function(){function e(e){this.snapshot=e}return e.prototype.toString=function(){return"ChildActivationStart(path: '"+(this.snapshot.routeConfig&&this.snapshot.routeConfig.path||"")+"')"},e}(),Wn=function(){function e(e){this.snapshot=e}return e.prototype.toString=function(){return"ChildActivationEnd(path: '"+(this.snapshot.routeConfig&&this.snapshot.routeConfig.path||"")+"')"},e}(),qn=function(){function e(e){this.snapshot=e}return e.prototype.toString=function(){return"ActivationStart(path: '"+(this.snapshot.routeConfig&&this.snapshot.routeConfig.path||"")+"')"},e}(),Jn=function(){function e(e){this.snapshot=e}return e.prototype.toString=function(){return"ActivationEnd(path: '"+(this.snapshot.routeConfig&&this.snapshot.routeConfig.path||"")+"')"},e}(),Yn=function(){function e(e,t,n){this.routerEvent=e,this.position=t,this.anchor=n}return e.prototype.toString=function(){return"Scroll(anchor: '"+this.anchor+"', position: '"+(this.position?this.position[0]+", "+this.position[1]:null)+"')"},e}(),Zn=function(){return function(){}}(),Xn="primary",er=function(){function e(e){this.params=e||{}}return e.prototype.has=function(e){return this.params.hasOwnProperty(e)},e.prototype.get=function(e){if(this.has(e)){var t=this.params[e];return Array.isArray(t)?t[0]:t}return null},e.prototype.getAll=function(e){if(this.has(e)){var t=this.params[e];return Array.isArray(t)?t:[t]}return[]},Object.defineProperty(e.prototype,"keys",{get:function(){return Object.keys(this.params)},enumerable:!0,configurable:!0}),e}();function tr(e){return new er(e)}var nr="ngNavigationCancelingError";function rr(e){var t=Error("NavigationCancelingError: "+e);return t[nr]=!0,t}function ir(e,t,n){var r=n.path.split("/");if(r.length>e.length)return null;if("full"===n.pathMatch&&(t.hasChildren()||r.length0?e[e.length-1]:null}function dr(e,t){for(var n in e)e.hasOwnProperty(n)&&t(e[n],n)}function hr(e){return Object(r.Ab)(e)?e:Object(r.Bb)(e)?Object(we.a)(Promise.resolve(e)):Object(_e.a)(e)}function yr(e,t,n){return n?function(e,t){return cr(e,t)}(e.queryParams,t.queryParams)&&function e(t,n){if(!vr(t.segments,n.segments))return!1;if(t.numberOfChildren!==n.numberOfChildren)return!1;for(var r in n.children){if(!t.children[r])return!1;if(!e(t.children[r],n.children[r]))return!1}return!0}(e.root,t.root):function(e,t){return Object.keys(t).length<=Object.keys(e).length&&Object.keys(t).every(function(n){return t[n]===e[n]})}(e.queryParams,t.queryParams)&&function e(t,n){return function t(n,r,i){if(n.segments.length>i.length)return!!vr(l=n.segments.slice(0,i.length),i)&&!r.hasChildren();if(n.segments.length===i.length){if(!vr(n.segments,i))return!1;for(var o in r.children){if(!n.children[o])return!1;if(!e(n.children[o],r.children[o]))return!1}return!0}var l=i.slice(0,n.segments.length),u=i.slice(n.segments.length);return!!vr(n.segments,l)&&!!n.children[Xn]&&t(n.children[Xn],r,u)}(t,n,n.segments)}(e.root,t.root)}var br=function(){function e(e,t,n){this.root=e,this.queryParams=t,this.fragment=n}return Object.defineProperty(e.prototype,"queryParamMap",{get:function(){return this._queryParamMap||(this._queryParamMap=tr(this.queryParams)),this._queryParamMap},enumerable:!0,configurable:!0}),e.prototype.toString=function(){return Or.serialize(this)},e}(),mr=function(){function e(e,t){var n=this;this.segments=e,this.children=t,this.parent=null,dr(t,function(e,t){return e.parent=n})}return e.prototype.hasChildren=function(){return this.numberOfChildren>0},Object.defineProperty(e.prototype,"numberOfChildren",{get:function(){return Object.keys(this.children).length},enumerable:!0,configurable:!0}),e.prototype.toString=function(){return Ar(this)},e}(),gr=function(){function e(e,t){this.path=e,this.parameters=t}return Object.defineProperty(e.prototype,"parameterMap",{get:function(){return this._parameterMap||(this._parameterMap=tr(this.parameters)),this._parameterMap},enumerable:!0,configurable:!0}),e.prototype.toString=function(){return Er(this)},e}();function vr(e,t){return e.length===t.length&&e.every(function(e,n){return e.path===t[n].path})}function kr(e,t){var n=[];return dr(e.children,function(e,r){r===Xn&&(n=n.concat(t(e,r)))}),dr(e.children,function(e,r){r!==Xn&&(n=n.concat(t(e,r)))}),n}var _r=function(){return function(){}}(),wr=function(){function e(){}return e.prototype.parse=function(e){var t=new Lr(e);return new br(t.parseRootSegment(),t.parseQueryParams(),t.parseFragment())},e.prototype.serialize=function(e){var t,n;return"/"+function e(t,n){if(!t.hasChildren())return Ar(t);if(n){var r=t.children[Xn]?e(t.children[Xn],!1):"",i=[];return dr(t.children,function(t,n){n!==Xn&&i.push(n+":"+e(t,!1))}),i.length>0?r+"("+i.join("//")+")":r}var o=kr(t,function(n,r){return r===Xn?[e(t.children[Xn],!1)]:[r+":"+e(n,!1)]});return Ar(t)+"/("+o.join("//")+")"}(e.root,!0)+(t=e.queryParams,(n=Object.keys(t).map(function(e){var n=t[e];return Array.isArray(n)?n.map(function(t){return Tr(e)+"="+Tr(t)}).join("&"):Tr(e)+"="+Tr(n)})).length?"?"+n.join("&"):"")+("string"==typeof e.fragment?"#"+encodeURI(e.fragment):"")},e}(),Or=new wr;function Ar(e){return e.segments.map(function(e){return Er(e)}).join("/")}function Cr(e){return encodeURIComponent(e).replace(/%40/g,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",")}function Tr(e){return Cr(e).replace(/%3B/gi,";")}function xr(e){return Cr(e).replace(/\(/g,"%28").replace(/\)/g,"%29").replace(/%26/gi,"&")}function Sr(e){return decodeURIComponent(e)}function Mr(e){return Sr(e.replace(/\+/g,"%20"))}function Er(e){return""+xr(e.path)+(t=e.parameters,Object.keys(t).map(function(e){return";"+xr(e)+"="+xr(t[e])}).join(""));var t}var Pr=/^[^\/()?;=#]+/;function Ir(e){var t=e.match(Pr);return t?t[0]:""}var jr=/^[^=?&#]+/,Rr=/^[^?&#]+/,Lr=function(){function e(e){this.url=e,this.remaining=e}return e.prototype.parseRootSegment=function(){return this.consumeOptional("/"),""===this.remaining||this.peekStartsWith("?")||this.peekStartsWith("#")?new mr([],{}):new mr([],this.parseChildren())},e.prototype.parseQueryParams=function(){var e={};if(this.consumeOptional("?"))do{this.parseQueryParam(e)}while(this.consumeOptional("&"));return e},e.prototype.parseFragment=function(){return this.consumeOptional("#")?decodeURIComponent(this.remaining):null},e.prototype.parseChildren=function(){if(""===this.remaining)return{};this.consumeOptional("/");var e=[];for(this.peekStartsWith("(")||e.push(this.parseSegment());this.peekStartsWith("/")&&!this.peekStartsWith("//")&&!this.peekStartsWith("/(");)this.capture("/"),e.push(this.parseSegment());var t={};this.peekStartsWith("/(")&&(this.capture("/"),t=this.parseParens(!0));var n={};return this.peekStartsWith("(")&&(n=this.parseParens(!1)),(e.length>0||Object.keys(t).length>0)&&(n[Xn]=new mr(e,t)),n},e.prototype.parseSegment=function(){var e=Ir(this.remaining);if(""===e&&this.peekStartsWith(";"))throw new Error("Empty path url segment cannot have parameters: '"+this.remaining+"'.");return this.capture(e),new gr(Sr(e),this.parseMatrixParams())},e.prototype.parseMatrixParams=function(){for(var e={};this.consumeOptional(";");)this.parseParam(e);return e},e.prototype.parseParam=function(e){var t=Ir(this.remaining);if(t){this.capture(t);var n="";if(this.consumeOptional("=")){var r=Ir(this.remaining);r&&this.capture(n=r)}e[Sr(t)]=Sr(n)}},e.prototype.parseQueryParam=function(e){var t,n=(t=this.remaining.match(jr))?t[0]:"";if(n){this.capture(n);var r="";if(this.consumeOptional("=")){var i=function(e){var t=e.match(Rr);return t?t[0]:""}(this.remaining);i&&this.capture(r=i)}var o=Mr(n),l=Mr(r);if(e.hasOwnProperty(o)){var u=e[o];Array.isArray(u)||(e[o]=u=[u]),u.push(l)}else e[o]=l}},e.prototype.parseParens=function(e){var t={};for(this.capture("(");!this.consumeOptional(")")&&this.remaining.length>0;){var n=Ir(this.remaining),r=this.remaining[n.length];if("/"!==r&&")"!==r&&";"!==r)throw new Error("Cannot parse url '"+this.url+"'");var i=void 0;n.indexOf(":")>-1?(i=n.substr(0,n.indexOf(":")),this.capture(i),this.capture(":")):e&&(i=Xn);var o=this.parseChildren();t[i]=1===Object.keys(o).length?o[Xn]:new mr([],o),this.consumeOptional("//")}return t},e.prototype.peekStartsWith=function(e){return this.remaining.startsWith(e)},e.prototype.consumeOptional=function(e){return!!this.peekStartsWith(e)&&(this.remaining=this.remaining.substring(e.length),!0)},e.prototype.capture=function(e){if(!this.consumeOptional(e))throw new Error('Expected "'+e+'".')},e}(),Nr=function(){function e(e){this._root=e}return Object.defineProperty(e.prototype,"root",{get:function(){return this._root.value},enumerable:!0,configurable:!0}),e.prototype.parent=function(e){var t=this.pathFromRoot(e);return t.length>1?t[t.length-2]:null},e.prototype.children=function(e){var t=Dr(e,this._root);return t?t.children.map(function(e){return e.value}):[]},e.prototype.firstChild=function(e){var t=Dr(e,this._root);return t&&t.children.length>0?t.children[0].value:null},e.prototype.siblings=function(e){var t=Ur(e,this._root);return t.length<2?[]:t[t.length-2].children.map(function(e){return e.value}).filter(function(t){return t!==e})},e.prototype.pathFromRoot=function(e){return Ur(e,this._root).map(function(e){return e.value})},e}();function Dr(e,t){var n,r;if(e===t.value)return t;try{for(var i=Object(N.h)(t.children),o=i.next();!o.done;o=i.next()){var l=Dr(e,o.value);if(l)return l}}catch(u){n={error:u}}finally{try{o&&!o.done&&(r=i.return)&&r.call(i)}finally{if(n)throw n.error}}return null}function Ur(e,t){var n,r;if(e===t.value)return[t];try{for(var i=Object(N.h)(t.children),o=i.next();!o.done;o=i.next()){var l=Ur(e,o.value);if(l.length)return l.unshift(t),l}}catch(u){n={error:u}}finally{try{o&&!o.done&&(r=i.return)&&r.call(i)}finally{if(n)throw n.error}}return[]}var Fr=function(){function e(e,t){this.value=e,this.children=t}return e.prototype.toString=function(){return"TreeNode("+this.value+")"},e}();function Kr(e){var t={};return e&&e.children.forEach(function(e){return t[e.value.outlet]=e}),t}var Br=function(e){function t(t,n){var r=e.call(this,t)||this;return r.snapshot=n,Qr(r,t),r}return Object(N.c)(t,e),t.prototype.toString=function(){return this.snapshot.toString()},t}(Nr);function Vr(e,t){var n=function(e,t){var n=new $r([],{},{},"",{},Xn,t,null,e.root,-1,{});return new zr("",new Fr(n,[]))}(e,t),r=new Oe.a([new gr("",{})]),i=new Oe.a({}),o=new Oe.a({}),l=new Oe.a({}),u=new Oe.a(""),a=new Gr(r,i,l,u,o,Xn,t,n.root);return a.snapshot=n.root,new Br(new Fr(a,[]),n)}var Gr=function(){function e(e,t,n,r,i,o,l,u){this.url=e,this.params=t,this.queryParams=n,this.fragment=r,this.data=i,this.outlet=o,this.component=l,this._futureSnapshot=u}return Object.defineProperty(e.prototype,"routeConfig",{get:function(){return this._futureSnapshot.routeConfig},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"root",{get:function(){return this._routerState.root},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"parent",{get:function(){return this._routerState.parent(this)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"firstChild",{get:function(){return this._routerState.firstChild(this)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"children",{get:function(){return this._routerState.children(this)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"pathFromRoot",{get:function(){return this._routerState.pathFromRoot(this)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"paramMap",{get:function(){return this._paramMap||(this._paramMap=this.params.pipe(Object(Fe.a)(function(e){return tr(e)}))),this._paramMap},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"queryParamMap",{get:function(){return this._queryParamMap||(this._queryParamMap=this.queryParams.pipe(Object(Fe.a)(function(e){return tr(e)}))),this._queryParamMap},enumerable:!0,configurable:!0}),e.prototype.toString=function(){return this.snapshot?this.snapshot.toString():"Future("+this._futureSnapshot+")"},e}();function Hr(e,t){void 0===t&&(t="emptyOnly");var n=e.pathFromRoot,r=0;if("always"!==t)for(r=n.length-1;r>=1;){var i=n[r],o=n[r-1];if(i.routeConfig&&""===i.routeConfig.path)r--;else{if(o.component)break;r--}}return function(e){return e.reduce(function(e,t){return{params:Object(N.a)({},e.params,t.params),data:Object(N.a)({},e.data,t.data),resolve:Object(N.a)({},e.resolve,t._resolvedData)}},{params:{},data:{},resolve:{}})}(n.slice(r))}var $r=function(){function e(e,t,n,r,i,o,l,u,a,s,c){this.url=e,this.params=t,this.queryParams=n,this.fragment=r,this.data=i,this.outlet=o,this.component=l,this.routeConfig=u,this._urlSegment=a,this._lastPathIndex=s,this._resolve=c}return Object.defineProperty(e.prototype,"root",{get:function(){return this._routerState.root},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"parent",{get:function(){return this._routerState.parent(this)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"firstChild",{get:function(){return this._routerState.firstChild(this)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"children",{get:function(){return this._routerState.children(this)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"pathFromRoot",{get:function(){return this._routerState.pathFromRoot(this)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"paramMap",{get:function(){return this._paramMap||(this._paramMap=tr(this.params)),this._paramMap},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"queryParamMap",{get:function(){return this._queryParamMap||(this._queryParamMap=tr(this.queryParams)),this._queryParamMap},enumerable:!0,configurable:!0}),e.prototype.toString=function(){return"Route(url:'"+this.url.map(function(e){return e.toString()}).join("/")+"', path:'"+(this.routeConfig?this.routeConfig.path:"")+"')"},e}(),zr=function(e){function t(t,n){var r=e.call(this,n)||this;return r.url=t,Qr(r,n),r}return Object(N.c)(t,e),t.prototype.toString=function(){return Wr(this._root)},t}(Nr);function Qr(e,t){t.value._routerState=e,t.children.forEach(function(t){return Qr(e,t)})}function Wr(e){var t=e.children.length>0?" { "+e.children.map(Wr).join(", ")+" } ":"";return""+e.value+t}function qr(e){if(e.snapshot){var t=e.snapshot,n=e._futureSnapshot;e.snapshot=n,cr(t.queryParams,n.queryParams)||e.queryParams.next(n.queryParams),t.fragment!==n.fragment&&e.fragment.next(n.fragment),cr(t.params,n.params)||e.params.next(n.params),function(e,t){if(e.length!==t.length)return!1;for(var n=0;n0&&Yr(n[0]))throw new Error("Root segment cannot have matrix parameters");var r=n.find(function(e){return"object"==typeof e&&null!=e&&e.outlets});if(r&&r!==fr(n))throw new Error("{outlets:{}} has to be the last command")}return e.prototype.toRoot=function(){return this.isAbsolute&&1===this.commands.length&&"/"==this.commands[0]},e}(),ei=function(){return function(e,t,n){this.segmentGroup=e,this.processChildren=t,this.index=n}}();function ti(e){return"object"==typeof e&&null!=e&&e.outlets?e.outlets[Xn]:""+e}function ni(e,t,n){if(e||(e=new mr([],{})),0===e.segments.length&&e.hasChildren())return ri(e,t,n);var r=function(e,t,n){for(var r=0,i=t,o={match:!1,pathIndex:0,commandIndex:0};i=n.length)return o;var l=e.segments[i],u=ti(n[r]),a=r0&&void 0===u)break;if(u&&a&&"object"==typeof a&&void 0===a.outlets){if(!ui(u,a,l))return o;r+=2}else{if(!ui(u,{},l))return o;r++}i++}return{match:!0,pathIndex:i,commandIndex:r}}(e,t,n),i=n.slice(r.commandIndex);if(r.match&&r.pathIndex0?new mr([],((r={})[Xn]=e,r)):e;return new br(i,t,n)},e.prototype.expandSegmentGroup=function(e,t,n,r){return 0===n.segments.length&&n.hasChildren()?this.expandChildren(e,t,n).pipe(Object(Fe.a)(function(e){return new mr([],e)})):this.expandSegment(e,n,t,n.segments,r,!0)},e.prototype.expandChildren=function(e,t,n){var r=this;return function(n,i){if(0===Object.keys(n).length)return Object(_e.a)({});var o=[],l=[],u={};return dr(n,function(n,i){var a,s,c=(a=i,s=n,r.expandSegmentGroup(e,t,s,a)).pipe(Object(Fe.a)(function(e){return u[i]=e}));i===Xn?o.push(c):l.push(c)}),_e.a.apply(null,o.concat(l)).pipe(Be(),nt(),Object(Fe.a)(function(){return u}))}(n.children)},e.prototype.expandSegment=function(e,t,n,r,i,o){var l=this;return _e.a.apply(void 0,Object(N.g)(n)).pipe(Object(Fe.a)(function(u){return l.expandSegmentAgainstRoute(e,t,n,u,r,i,o).pipe(Object(rt.a)(function(e){if(e instanceof fi)return Object(_e.a)(null);throw e}))}),Be(),ot(function(e){return!!e}),Object(rt.a)(function(e,n){if(e instanceof Te||"EmptyError"===e.name){if(l.noLeftoversInUrl(t,r,i))return Object(_e.a)(new mr([],{}));throw new fi(t)}throw e}))},e.prototype.noLeftoversInUrl=function(e,t,n){return 0===t.length&&!e.children[n]},e.prototype.expandSegmentAgainstRoute=function(e,t,n,r,i,o,l){return _i(r)!==o?hi(t):void 0===r.redirectTo?this.matchSegmentAgainstRoute(e,t,r,i):l&&this.allowRedirects?this.expandSegmentAgainstRouteUsingRedirect(e,t,n,r,i,o):hi(t)},e.prototype.expandSegmentAgainstRouteUsingRedirect=function(e,t,n,r,i,o){return"**"===r.path?this.expandWildCardWithParamsAgainstRouteUsingRedirect(e,n,r,o):this.expandRegularSegmentAgainstRouteUsingRedirect(e,t,n,r,i,o)},e.prototype.expandWildCardWithParamsAgainstRouteUsingRedirect=function(e,t,n,r){var i=this,o=this.applyRedirectCommands([],n.redirectTo,{});return n.redirectTo.startsWith("/")?yi(o):this.lineralizeSegments(n,o).pipe(Object(lt.a)(function(n){var o=new mr(n,{});return i.expandSegment(e,o,t,n,r,!1)}))},e.prototype.expandRegularSegmentAgainstRouteUsingRedirect=function(e,t,n,r,i,o){var l=this,u=gi(t,r,i),a=u.consumedSegments,s=u.lastChild,c=u.positionalParamSegments;if(!u.matched)return hi(t);var p=this.applyRedirectCommands(a,r.redirectTo,c);return r.redirectTo.startsWith("/")?yi(p):this.lineralizeSegments(r,p).pipe(Object(lt.a)(function(r){return l.expandSegment(e,t,n,r.concat(i.slice(s)),o,!1)}))},e.prototype.matchSegmentAgainstRoute=function(e,t,n,r){var i=this;if("**"===n.path)return n.loadChildren?this.configLoader.load(e.injector,n).pipe(Object(Fe.a)(function(e){return n._loadedConfig=e,new mr(r,{})})):Object(_e.a)(new mr(r,{}));var o=gi(t,n,r),l=o.consumedSegments,u=o.lastChild;if(!o.matched)return hi(t);var a=r.slice(u);return this.getChildConfig(e,n,r).pipe(Object(lt.a)(function(e){var n=e.module,r=e.routes,o=function(e,t,n,r){return n.length>0&&function(e,t,n){return r.some(function(n){return ki(e,t,n)&&_i(n)!==Xn})}(e,n)?{segmentGroup:vi(new mr(t,function(e,t){var n,r,i={};i[Xn]=t;try{for(var o=Object(N.h)(e),l=o.next();!l.done;l=o.next()){var u=l.value;""===u.path&&_i(u)!==Xn&&(i[_i(u)]=new mr([],{}))}}catch(a){n={error:a}}finally{try{l&&!l.done&&(r=o.return)&&r.call(o)}finally{if(n)throw n.error}}return i}(r,new mr(n,e.children)))),slicedSegments:[]}:0===n.length&&function(e,t,n){return r.some(function(n){return ki(e,t,n)})}(e,n)?{segmentGroup:vi(new mr(e.segments,function(e,t,n,r){var i,o,l={};try{for(var u=Object(N.h)(n),a=u.next();!a.done;a=u.next()){var s=a.value;ki(e,t,s)&&!r[_i(s)]&&(l[_i(s)]=new mr([],{}))}}catch(c){i={error:c}}finally{try{a&&!a.done&&(o=u.return)&&o.call(u)}finally{if(i)throw i.error}}return Object(N.a)({},r,l)}(e,n,r,e.children))),slicedSegments:n}:{segmentGroup:e,slicedSegments:n}}(t,l,a,r),u=o.segmentGroup,s=o.slicedSegments;return 0===s.length&&u.hasChildren()?i.expandChildren(n,r,u).pipe(Object(Fe.a)(function(e){return new mr(l,e)})):0===r.length&&0===s.length?Object(_e.a)(new mr(l,{})):i.expandSegment(n,u,r,s,Xn,!0).pipe(Object(Fe.a)(function(e){return new mr(l.concat(e.segments),e.children)}))}))},e.prototype.getChildConfig=function(e,t,n){var r=this;return t.children?Object(_e.a)(new or(t.children,e)):t.loadChildren?void 0!==t._loadedConfig?Object(_e.a)(t._loadedConfig):function(e,t,n){var r,i=t.canLoad;return i&&0!==i.length?Object(we.a)(i).pipe(Object(Fe.a)(function(r){var i,o=e.get(r);if(function(e){return e&&ci(e.canLoad)}(o))i=o.canLoad(t,n);else{if(!ci(o))throw new Error("Invalid CanLoad guard");i=o(t,n)}return hr(i)})).pipe(Be(),(r=function(e){return!0===e},function(e){return e.lift(new ut(r,void 0,e))})):Object(_e.a)(!0)}(e.injector,t,n).pipe(Object(lt.a)(function(n){return n?r.configLoader.load(e.injector,t).pipe(Object(Fe.a)(function(e){return t._loadedConfig=e,e})):function(e){return new Ae.a(function(t){return t.error(rr("Cannot load children because the guard of the route \"path: '"+e.path+"'\" returned false"))})}(t)})):Object(_e.a)(new or([],e))},e.prototype.lineralizeSegments=function(e,t){for(var n=[],r=t.root;;){if(n=n.concat(r.segments),0===r.numberOfChildren)return Object(_e.a)(n);if(r.numberOfChildren>1||!r.children[Xn])return bi(e.redirectTo);r=r.children[Xn]}},e.prototype.applyRedirectCommands=function(e,t,n){return this.applyRedirectCreatreUrlTree(t,this.urlSerializer.parse(t),e,n)},e.prototype.applyRedirectCreatreUrlTree=function(e,t,n,r){var i=this.createSegmentGroup(e,t.root,n,r);return new br(i,this.createQueryParams(t.queryParams,this.urlTree.queryParams),t.fragment)},e.prototype.createQueryParams=function(e,t){var n={};return dr(e,function(e,r){if("string"==typeof e&&e.startsWith(":")){var i=e.substring(1);n[r]=t[i]}else n[r]=e}),n},e.prototype.createSegmentGroup=function(e,t,n,r){var i=this,o=this.createSegments(e,t.segments,n,r),l={};return dr(t.children,function(t,o){l[o]=i.createSegmentGroup(e,t,n,r)}),new mr(o,l)},e.prototype.createSegments=function(e,t,n,r){var i=this;return t.map(function(t){return t.path.startsWith(":")?i.findPosParam(e,t,r):i.findOrReturn(t,n)})},e.prototype.findPosParam=function(e,t,n){var r=n[t.path.substring(1)];if(!r)throw new Error("Cannot redirect to '"+e+"'. Cannot find '"+t.path+"'.");return r},e.prototype.findOrReturn=function(e,t){var n,r,i=0;try{for(var o=Object(N.h)(t),l=o.next();!l.done;l=o.next()){var u=l.value;if(u.path===e.path)return t.splice(i),u;i++}}catch(a){n={error:a}}finally{try{l&&!l.done&&(r=o.return)&&r.call(o)}finally{if(n)throw n.error}}return e},e}();function gi(e,t,n){if(""===t.path)return"full"===t.pathMatch&&(e.hasChildren()||n.length>0)?{matched:!1,consumedSegments:[],lastChild:0,positionalParamSegments:{}}:{matched:!0,consumedSegments:[],lastChild:0,positionalParamSegments:{}};var r=(t.matcher||ir)(n,e,t);return r?{matched:!0,consumedSegments:r.consumed,lastChild:r.consumed.length,positionalParamSegments:r.posParams}:{matched:!1,consumedSegments:[],lastChild:0,positionalParamSegments:{}}}function vi(e){if(1===e.numberOfChildren&&e.children[Xn]){var t=e.children[Xn];return new mr(e.segments.concat(t.segments),t.children)}return e}function ki(e,t,n){return(!(e.hasChildren()||t.length>0)||"full"!==n.pathMatch)&&""===n.path&&void 0!==n.redirectTo}function _i(e){return e.outlet||Xn}var wi=function(){return function(e){this.path=e,this.route=this.path[this.path.length-1]}}(),Oi=function(){return function(e,t){this.component=e,this.route=t}}();function Ai(e,t,n){var r=function(e){if(!e)return null;for(var t=e.parent;t;t=t.parent){var n=t.routeConfig;if(n&&n._loadedConfig)return n._loadedConfig}return null}(t);return(r?r.module.injector:n).get(e)}function Ci(e,t,n,r,i){void 0===i&&(i={canDeactivateChecks:[],canActivateChecks:[]});var o=Kr(t);return e.children.forEach(function(e){!function(e,t,n,r,i){void 0===i&&(i={canDeactivateChecks:[],canActivateChecks:[]});var o=e.value,l=t?t.value:null,u=n?n.getContext(e.value.outlet):null;if(l&&o.routeConfig===l.routeConfig){var a=function(e,t,n){if("function"==typeof n)return n(e,t);switch(n){case"pathParamsChange":return!vr(e.url,t.url);case"pathParamsOrQueryParamsChange":return!vr(e.url,t.url)||!cr(e.queryParams,t.queryParams);case"always":return!0;case"paramsOrQueryParamsChange":return!Jr(e,t)||!cr(e.queryParams,t.queryParams);case"paramsChange":default:return!Jr(e,t)}}(l,o,o.routeConfig.runGuardsAndResolvers);a?i.canActivateChecks.push(new wi(r)):(o.data=l.data,o._resolvedData=l._resolvedData),Ci(e,t,o.component?u?u.children:null:n,r,i),a&&i.canDeactivateChecks.push(new Oi(u&&u.outlet&&u.outlet.component||null,l))}else l&&Ti(t,u,i),i.canActivateChecks.push(new wi(r)),Ci(e,null,o.component?u?u.children:null:n,r,i)}(e,o[e.value.outlet],n,r.concat([e.value]),i),delete o[e.value.outlet]}),dr(o,function(e,t){return Ti(e,n.getContext(t),i)}),i}function Ti(e,t,n){var r=Kr(e),i=e.value;dr(r,function(e,r){Ti(e,i.component?t?t.children.getContext(r):null:t,n)}),n.canDeactivateChecks.push(new Oi(i.component&&t&&t.outlet&&t.outlet.isActivated?t.outlet.component:null,i))}var xi=Symbol("INITIAL_VALUE");function Si(){return Object(st.a)(function(e){return je.apply(void 0,Object(N.g)(e.map(function(e){return e.pipe(Object(it.a)(1),pt(xi))}))).pipe(Object(ft.a)(function(e,t){var n=!1;return t.reduce(function(e,r,i){if(e!==xi)return e;if(r===xi&&(n=!0),!n){if(!1===r)return r;if(i===t.length-1||pi(r))return r}return e},e)},xi),Object(Ve.a)(function(e){return e!==xi}),Object(Fe.a)(function(e){return pi(e)?e:!0===e}),Object(it.a)(1))})}function Mi(e,t){return null!==e&&t&&t(new qn(e)),Object(_e.a)(!0)}function Ei(e,t){return null!==e&&t&&t(new Qn(e)),Object(_e.a)(!0)}function Pi(e,t,n){var r=t.routeConfig?t.routeConfig.canActivate:null;if(!r||0===r.length)return Object(_e.a)(!0);var i=r.map(function(r){return De(function(){var i,o=Ai(r,t,n);if(function(e){return e&&ci(e.canActivate)}(o))i=hr(o.canActivate(t,e));else{if(!ci(o))throw new Error("Invalid CanActivate guard");i=hr(o(t,e))}return i.pipe(ot())})});return Object(_e.a)(i).pipe(Si())}function Ii(e,t,n){var r=t[t.length-1],i=t.slice(0,t.length-1).reverse().map(function(e){return function(e){var t=e.routeConfig?e.routeConfig.canActivateChild:null;return t&&0!==t.length?{node:e,guards:t}:null}(e)}).filter(function(e){return null!==e}).map(function(t){return De(function(){var i=t.guards.map(function(i){var o,l=Ai(i,t.node,n);if(function(e){return e&&ci(e.canActivateChild)}(l))o=hr(l.canActivateChild(r,e));else{if(!ci(l))throw new Error("Invalid CanActivateChild guard");o=hr(l(r,e))}return o.pipe(ot())});return Object(_e.a)(i).pipe(Si())})});return Object(_e.a)(i).pipe(Si())}var ji=function(){return function(){}}(),Ri=function(){function e(e,t,n,r,i,o){this.rootComponentType=e,this.config=t,this.urlTree=n,this.url=r,this.paramsInheritanceStrategy=i,this.relativeLinkResolution=o}return e.prototype.recognize=function(){try{var e=Di(this.urlTree.root,[],[],this.config,this.relativeLinkResolution).segmentGroup,t=this.processSegmentGroup(this.config,e,Xn),n=new $r([],Object.freeze({}),Object.freeze(Object(N.a)({},this.urlTree.queryParams)),this.urlTree.fragment,{},Xn,this.rootComponentType,null,this.urlTree.root,-1,{}),r=new Fr(n,t),i=new zr(this.url,r);return this.inheritParamsAndData(i._root),Object(_e.a)(i)}catch(o){return new Ae.a(function(e){return e.error(o)})}},e.prototype.inheritParamsAndData=function(e){var t=this,n=e.value,r=Hr(n,this.paramsInheritanceStrategy);n.params=Object.freeze(r.params),n.data=Object.freeze(r.data),e.children.forEach(function(e){return t.inheritParamsAndData(e)})},e.prototype.processSegmentGroup=function(e,t,n){return 0===t.segments.length&&t.hasChildren()?this.processChildren(e,t):this.processSegment(e,t,t.segments,n)},e.prototype.processChildren=function(e,t){var n,r=this,i=kr(t,function(t,n){return r.processSegmentGroup(e,t,n)});return n={},i.forEach(function(e){var t=n[e.value.outlet];if(t){var r=t.url.map(function(e){return e.toString()}).join("/"),i=e.value.url.map(function(e){return e.toString()}).join("/");throw new Error("Two segments cannot have the same outlet name: '"+r+"' and '"+i+"'.")}n[e.value.outlet]=e.value}),i.sort(function(e,t){return e.value.outlet===Xn?-1:t.value.outlet===Xn?1:e.value.outlet.localeCompare(t.value.outlet)}),i},e.prototype.processSegment=function(e,t,n,r){var i,o;try{for(var l=Object(N.h)(e),u=l.next();!u.done;u=l.next()){var a=u.value;try{return this.processSegmentAgainstRoute(a,t,n,r)}catch(s){if(!(s instanceof ji))throw s}}}catch(c){i={error:c}}finally{try{u&&!u.done&&(o=l.return)&&o.call(l)}finally{if(i)throw i.error}}if(this.noLeftoversInUrl(t,n,r))return[];throw new ji},e.prototype.noLeftoversInUrl=function(e,t,n){return 0===t.length&&!e.children[n]},e.prototype.processSegmentAgainstRoute=function(e,t,n,r){if(e.redirectTo)throw new ji;if((e.outlet||Xn)!==r)throw new ji;var i,o=[],l=[];if("**"===e.path){var u=n.length>0?fr(n).parameters:{};i=new $r(n,u,Object.freeze(Object(N.a)({},this.urlTree.queryParams)),this.urlTree.fragment,Ki(e),r,e.component,e,Li(t),Ni(t)+n.length,Bi(e))}else{var a=function(e,t,n){if(""===t.path){if("full"===t.pathMatch&&(e.hasChildren()||n.length>0))throw new ji;return{consumedSegments:[],lastChild:0,parameters:{}}}var r=(t.matcher||ir)(n,e,t);if(!r)throw new ji;var i={};dr(r.posParams,function(e,t){i[t]=e.path});var o=r.consumed.length>0?Object(N.a)({},i,r.consumed[r.consumed.length-1].parameters):i;return{consumedSegments:r.consumed,lastChild:r.consumed.length,parameters:o}}(t,e,n);o=a.consumedSegments,l=n.slice(a.lastChild),i=new $r(o,a.parameters,Object.freeze(Object(N.a)({},this.urlTree.queryParams)),this.urlTree.fragment,Ki(e),r,e.component,e,Li(t),Ni(t)+o.length,Bi(e))}var s=function(e){return e.children?e.children:e.loadChildren?e._loadedConfig.routes:[]}(e),c=Di(t,o,l,s,this.relativeLinkResolution),p=c.segmentGroup,f=c.slicedSegments;if(0===f.length&&p.hasChildren()){var d=this.processChildren(s,p);return[new Fr(i,d)]}if(0===s.length&&0===f.length)return[new Fr(i,[])];var h=this.processSegment(s,p,f,Xn);return[new Fr(i,h)]},e}();function Li(e){for(var t=e;t._sourceSegment;)t=t._sourceSegment;return t}function Ni(e){for(var t=e,n=t._segmentIndexShift?t._segmentIndexShift:0;t._sourceSegment;)n+=(t=t._sourceSegment)._segmentIndexShift?t._segmentIndexShift:0;return n-1}function Di(e,t,n,r,i){if(n.length>0&&function(e,t,n){return r.some(function(n){return Ui(e,t,n)&&Fi(n)!==Xn})}(e,n)){var o=new mr(t,function(e,t,n,r){var i,o,l={};l[Xn]=r,r._sourceSegment=e,r._segmentIndexShift=t.length;try{for(var u=Object(N.h)(n),a=u.next();!a.done;a=u.next()){var s=a.value;if(""===s.path&&Fi(s)!==Xn){var c=new mr([],{});c._sourceSegment=e,c._segmentIndexShift=t.length,l[Fi(s)]=c}}}catch(p){i={error:p}}finally{try{a&&!a.done&&(o=u.return)&&o.call(u)}finally{if(i)throw i.error}}return l}(e,t,r,new mr(n,e.children)));return o._sourceSegment=e,o._segmentIndexShift=t.length,{segmentGroup:o,slicedSegments:[]}}if(0===n.length&&function(e,t,n){return r.some(function(n){return Ui(e,t,n)})}(e,n)){var l=new mr(e.segments,function(e,t,n,r,i,o){var l,u,a={};try{for(var s=Object(N.h)(r),c=s.next();!c.done;c=s.next()){var p=c.value;if(Ui(e,n,p)&&!i[Fi(p)]){var f=new mr([],{});f._sourceSegment=e,f._segmentIndexShift="legacy"===o?e.segments.length:t.length,a[Fi(p)]=f}}}catch(d){l={error:d}}finally{try{c&&!c.done&&(u=s.return)&&u.call(s)}finally{if(l)throw l.error}}return Object(N.a)({},i,a)}(e,t,n,r,e.children,i));return l._sourceSegment=e,l._segmentIndexShift=t.length,{segmentGroup:l,slicedSegments:n}}var u=new mr(e.segments,e.children);return u._sourceSegment=e,u._segmentIndexShift=t.length,{segmentGroup:u,slicedSegments:n}}function Ui(e,t,n){return(!(e.hasChildren()||t.length>0)||"full"!==n.pathMatch)&&""===n.path&&void 0===n.redirectTo}function Fi(e){return e.outlet||Xn}function Ki(e){return e.data||{}}function Bi(e){return e.resolve||{}}function Vi(e,t,n,r){var i=Ai(e,t,r);return hr(i.resolve?i.resolve(t,n):i(t,n))}function Gi(e){return function(t){return t.pipe(Object(st.a)(function(t){var n=e(t);return n?Object(we.a)(n).pipe(Object(Fe.a)(function(){return t})):Object(we.a)([t])}))}}var Hi=function(){return function(){}}(),$i=function(){function e(){}return e.prototype.shouldDetach=function(e){return!1},e.prototype.store=function(e,t){},e.prototype.shouldAttach=function(e){return!1},e.prototype.retrieve=function(e){return null},e.prototype.shouldReuseRoute=function(e,t){return e.routeConfig===t.routeConfig},e}(),zi=new r.q("ROUTES"),Qi=function(){function e(e,t,n,r){this.loader=e,this.compiler=t,this.onLoadStartListener=n,this.onLoadEndListener=r}return e.prototype.load=function(e,t){var n=this;return this.onLoadStartListener&&this.onLoadStartListener(t),this.loadModuleFactory(t.loadChildren).pipe(Object(Fe.a)(function(r){n.onLoadEndListener&&n.onLoadEndListener(t);var i=r.create(e);return new or(pr(i.injector.get(zi)).map(sr),i)}))},e.prototype.loadModuleFactory=function(e){var t=this;return"string"==typeof e?Object(we.a)(this.loader.load(e)):hr(e()).pipe(Object(lt.a)(function(e){return e instanceof r.w?Object(_e.a)(e):Object(we.a)(t.compiler.compileModuleAsync(e))}))},e}(),Wi=function(){return function(){}}(),qi=function(){function e(){}return e.prototype.shouldProcessUrl=function(e){return!0},e.prototype.extract=function(e){return e},e.prototype.merge=function(e,t){return e},e}();function Ji(e){throw e}function Yi(e,t,n){return t.parse("/")}function Zi(e,t){return Object(_e.a)(null)}var Xi=function(){function e(e,t,n,i,o,l,u,a){var s=this;this.rootComponentType=e,this.urlSerializer=t,this.rootContexts=n,this.location=i,this.config=a,this.lastSuccessfulNavigation=null,this.currentNavigation=null,this.navigationId=0,this.isNgZoneEnabled=!1,this.events=new Ue.a,this.errorHandler=Ji,this.malformedUriErrorHandler=Yi,this.navigated=!1,this.lastSuccessfulId=-1,this.hooks={beforePreactivation:Zi,afterPreactivation:Zi},this.urlHandlingStrategy=new qi,this.routeReuseStrategy=new $i,this.onSameUrlNavigation="ignore",this.paramsInheritanceStrategy="emptyOnly",this.urlUpdateStrategy="deferred",this.relativeLinkResolution="legacy",this.ngModule=o.get(r.y),this.console=o.get(r.db);var c=o.get(r.A);this.isNgZoneEnabled=c instanceof r.A,this.resetConfig(a),this.currentUrlTree=new br(new mr([],{}),{},null),this.rawUrlTree=this.currentUrlTree,this.browserUrlTree=this.currentUrlTree,this.configLoader=new Qi(l,u,function(e){return s.triggerEvent(new $n(e))},function(e){return s.triggerEvent(new zn(e))}),this.routerState=Vr(this.currentUrlTree,this.rootComponentType),this.transitions=new Oe.a({id:0,currentUrlTree:this.currentUrlTree,currentRawUrl:this.currentUrlTree,extractedUrl:this.urlHandlingStrategy.extract(this.currentUrlTree),urlAfterRedirects:this.urlHandlingStrategy.extract(this.currentUrlTree),rawUrl:this.currentUrlTree,extras:{},resolve:null,reject:null,promise:Promise.resolve(!0),source:"imperative",restoredState:null,currentSnapshot:this.routerState.snapshot,targetSnapshot:null,currentRouterState:this.routerState,targetRouterState:null,guards:{canActivateChecks:[],canDeactivateChecks:[]},guardsResult:null}),this.navigations=this.setupNavigations(this.transitions),this.processNavigations()}return e.prototype.setupNavigations=function(e){var t=this,n=this.events;return e.pipe(Object(Ve.a)(function(e){return 0!==e.id}),Object(Fe.a)(function(e){return Object(N.a)({},e,{extractedUrl:t.urlHandlingStrategy.extract(e.rawUrl)})}),Object(st.a)(function(e){var r,i,o,l,u=!1,a=!1;return Object(_e.a)(e).pipe(gt(function(e){t.currentNavigation={id:e.id,initialUrl:e.currentRawUrl,extractedUrl:e.extractedUrl,trigger:e.source,extras:e.extras,previousNavigation:t.lastSuccessfulNavigation?Object(N.a)({},t.lastSuccessfulNavigation,{previousNavigation:null}):null}}),Object(st.a)(function(e){var r,i,o,l,u=!t.navigated||e.extractedUrl.toString()!==t.browserUrlTree.toString();if(("reload"===t.onSameUrlNavigation||u)&&t.urlHandlingStrategy.shouldProcessUrl(e.rawUrl))return Object(_e.a)(e).pipe(Object(st.a)(function(e){var r=t.transitions.getValue();return n.next(new Nn(e.id,t.serializeUrl(e.extractedUrl),e.source,e.restoredState)),r!==t.transitions.getValue()?Ne.a:[e]}),Object(st.a)(function(e){return Promise.resolve(e)}),(r=t.ngModule.injector,i=t.configLoader,o=t.urlSerializer,l=t.config,function(e){return e.pipe(Object(st.a)(function(e){return function(t,n,r,i,o){return new mi(t,n,r,e.extractedUrl,o).apply()}(r,i,o,0,l).pipe(Object(Fe.a)(function(t){return Object(N.a)({},e,{urlAfterRedirects:t})}))}))}),gt(function(e){t.currentNavigation=Object(N.a)({},t.currentNavigation,{finalUrl:e.urlAfterRedirects})}),function(e,n,r,i,o){return function(r){return r.pipe(Object(lt.a)(function(r){return function(e,t,n,r,i,o){return void 0===i&&(i="emptyOnly"),void 0===o&&(o="legacy"),new Ri(e,t,n,r,i,o).recognize()}(e,n,r.urlAfterRedirects,(l=r.urlAfterRedirects,t.serializeUrl(l)),i,o).pipe(Object(Fe.a)(function(e){return Object(N.a)({},r,{targetSnapshot:e})}));var l}))}}(t.rootComponentType,t.config,0,t.paramsInheritanceStrategy,t.relativeLinkResolution),gt(function(e){"eager"===t.urlUpdateStrategy&&(e.extras.skipLocationChange||t.setBrowserUrl(e.urlAfterRedirects,!!e.extras.replaceUrl,e.id,e.extras.state),t.browserUrlTree=e.urlAfterRedirects)}),gt(function(e){var r=new Kn(e.id,t.serializeUrl(e.extractedUrl),t.serializeUrl(e.urlAfterRedirects),e.targetSnapshot);n.next(r)}));if(u&&t.rawUrlTree&&t.urlHandlingStrategy.shouldProcessUrl(t.rawUrlTree)){var a=e.extractedUrl,s=e.source,c=e.restoredState,p=e.extras,f=new Nn(e.id,t.serializeUrl(a),s,c);n.next(f);var d=Vr(a,t.rootComponentType).snapshot;return Object(_e.a)(Object(N.a)({},e,{targetSnapshot:d,urlAfterRedirects:a,extras:Object(N.a)({},p,{skipLocationChange:!1,replaceUrl:!1})}))}return t.rawUrlTree=e.rawUrl,t.browserUrlTree=e.urlAfterRedirects,e.resolve(null),Ne.a}),Gi(function(e){var n=e.extras;return t.hooks.beforePreactivation(e.targetSnapshot,{navigationId:e.id,appliedUrlTree:e.extractedUrl,rawUrlTree:e.rawUrl,skipLocationChange:!!n.skipLocationChange,replaceUrl:!!n.replaceUrl})}),gt(function(e){var n=new Bn(e.id,t.serializeUrl(e.extractedUrl),t.serializeUrl(e.urlAfterRedirects),e.targetSnapshot);t.triggerEvent(n)}),Object(Fe.a)(function(e){return Object(N.a)({},e,{guards:(n=e.targetSnapshot,r=e.currentSnapshot,i=t.rootContexts,o=n._root,Ci(o,r?r._root:null,i,[o.value]))});var n,r,i,o}),function(e,t){return function(n){return n.pipe(Object(lt.a)(function(n){var r=n.targetSnapshot,i=n.currentSnapshot,o=n.guards,l=o.canActivateChecks,u=o.canDeactivateChecks;return 0===u.length&&0===l.length?Object(_e.a)(Object(N.a)({},n,{guardsResult:!0})):function(e,t,n,r){return Object(we.a)(e).pipe(Object(lt.a)(function(e){return function(e,t,n,r,i){var o=t&&t.routeConfig?t.routeConfig.canDeactivate:null;if(!o||0===o.length)return Object(_e.a)(!0);var l=o.map(function(o){var l,u=Ai(o,t,i);if(function(e){return e&&ci(e.canDeactivate)}(u))l=hr(u.canDeactivate(e,t,n,r));else{if(!ci(u))throw new Error("Invalid CanDeactivate guard");l=hr(u(e,t,n,r))}return l.pipe(ot())});return Object(_e.a)(l).pipe(Si())}(e.component,e.route,n,t,r)}),ot(function(e){return!0!==e},!0))}(u,r,i,e).pipe(Object(lt.a)(function(n){return n&&"boolean"==typeof n?function(e,t,n,r){return Object(we.a)(t).pipe(Object(dt.a)(function(t){return Object(we.a)([Ei(t.route.parent,r),Mi(t.route,r),Ii(e,t.path,n),Pi(e,t.route,n)]).pipe(Be(),ot(function(e){return!0!==e},!0))}),ot(function(e){return!0!==e},!0))}(r,l,e,t):Object(_e.a)(n)}),Object(Fe.a)(function(e){return Object(N.a)({},n,{guardsResult:e})}))}))}}(t.ngModule.injector,function(e){return t.triggerEvent(e)}),gt(function(e){if(pi(e.guardsResult)){var n=rr('Redirecting to "'+t.serializeUrl(e.guardsResult)+'"');throw n.url=e.guardsResult,n}}),gt(function(e){var n=new Vn(e.id,t.serializeUrl(e.extractedUrl),t.serializeUrl(e.urlAfterRedirects),e.targetSnapshot,!!e.guardsResult);t.triggerEvent(n)}),Object(Ve.a)(function(e){if(!e.guardsResult){t.resetUrlToCurrentUrlTree();var r=new Un(e.id,t.serializeUrl(e.extractedUrl),"");return n.next(r),e.resolve(!1),!1}return!0}),Gi(function(e){if(e.guards.canActivateChecks.length)return Object(_e.a)(e).pipe(gt(function(e){var n=new Gn(e.id,t.serializeUrl(e.extractedUrl),t.serializeUrl(e.urlAfterRedirects),e.targetSnapshot);t.triggerEvent(n)}),(n=t.paramsInheritanceStrategy,r=t.ngModule.injector,function(e){return e.pipe(Object(lt.a)(function(e){var t=e.targetSnapshot,i=e.guards.canActivateChecks;return i.length?Object(we.a)(i).pipe(Object(dt.a)(function(e){return function(e,n,r,i){return function(e,t,n,r){var i=Object.keys(e);if(0===i.length)return Object(_e.a)({});if(1===i.length){var o=i[0];return Vi(e[o],t,n,r).pipe(Object(Fe.a)(function(e){var t;return(t={})[o]=e,t}))}var l={};return Object(we.a)(i).pipe(Object(lt.a)(function(i){return Vi(e[i],t,n,r).pipe(Object(Fe.a)(function(e){return l[i]=e,e}))})).pipe(nt(),Object(Fe.a)(function(){return l}))}(e._resolve,e,t,i).pipe(Object(Fe.a)(function(t){return e._resolvedData=t,e.data=Object(N.a)({},e.data,Hr(e,r).resolve),null}))}(e.route,0,n,r)}),yt(function(e,t){return e}),Object(Fe.a)(function(t){return e})):Object(_e.a)(e)}))}),gt(function(e){var n=new Hn(e.id,t.serializeUrl(e.extractedUrl),t.serializeUrl(e.urlAfterRedirects),e.targetSnapshot);t.triggerEvent(n)}));var n,r}),Gi(function(e){var n=e.extras;return t.hooks.afterPreactivation(e.targetSnapshot,{navigationId:e.id,appliedUrlTree:e.extractedUrl,rawUrlTree:e.rawUrl,skipLocationChange:!!n.skipLocationChange,replaceUrl:!!n.replaceUrl})}),Object(Fe.a)(function(e){var n,r,i,o=(i=function e(t,n,r){if(r&&t.shouldReuseRoute(n.value,r.value.snapshot)){(a=r.value)._futureSnapshot=n.value;var i=function(t,n,r){return n.children.map(function(n){var i,o;try{for(var l=Object(N.h)(r.children),u=l.next();!u.done;u=l.next()){var a=u.value;if(t.shouldReuseRoute(a.value.snapshot,n.value))return e(t,n,a)}}catch(s){i={error:s}}finally{try{u&&!u.done&&(o=l.return)&&o.call(l)}finally{if(i)throw i.error}}return e(t,n)})}(t,n,r);return new Fr(a,i)}var o=t.retrieve(n.value);if(o){var l=o.route;return function e(t,n){if(t.value.routeConfig!==n.value.routeConfig)throw new Error("Cannot reattach ActivatedRouteSnapshot created from a different route");if(t.children.length!==n.children.length)throw new Error("Cannot reattach ActivatedRouteSnapshot with a different number of children");n.value._futureSnapshot=t.value;for(var r=0;ru;){if(a-=u,!(l=l.parent))throw new Error("Invalid number of '../'");u=l.segments.length}return new ei(l,!1,u-a)}()}(o,0,e),u=l.processChildren?ri(l.segmentGroup,l.index,o.commands):ni(l.segmentGroup,l.index,o.commands);return Zr(l.segmentGroup,u,t,r,i)}(s,this.currentUrlTree,e,p,c)},e.prototype.navigateByUrl=function(e,t){void 0===t&&(t={skipLocationChange:!1}),Object(r.Y)()&&this.isNgZoneEnabled&&!r.A.isInAngularZone()&&this.console.warn("Navigation triggered outside Angular zone, did you forget to call 'ngZone.run()'?");var n=pi(e)?e:this.parseUrl(e),i=this.urlHandlingStrategy.merge(n,this.rawUrlTree);return this.scheduleNavigation(i,"imperative",null,t)},e.prototype.navigate=function(e,t){return void 0===t&&(t={skipLocationChange:!1}),function(e){for(var t=0;t0}var Pl,Il=n("jWEn"),jl=function(){return Pl||(e=n("9RND"),Pl={version:e.version,firmwareVersion:e.firmwareVersion,deviceProtocolVersion:e.deviceProtocolVersion,moduleProtocolVersion:e.moduleProtocolVersion,userConfigVersion:e.userConfigVersion,hardwareConfigVersion:e.hardwareConfigVersion}),Pl;var e},Rl=function(e,t){return!!e&&Il.gte(e,t)},Ll=function(){return{moduleId:-1,key:""}},Nl={userConfiguration:new $o.UserConfiguration,lastEditedKey:Ll()};function Dl(e,t){switch(void 0===e&&(e=Nl),t.type){case yl.ApplyUserConfigurationFromFile:case yl.LoadResetUserConfiguration:case yl.LoadUserConfigSuccess:var n=t.payload,r=Object.assign(new $o.UserConfiguration,N.a({},e.userConfiguration,n,{keymaps:n.keymaps.sort(function(e,t){return e.name.localeCompare(t.name)}),macros:n.macros.sort(function(e,t){return e.name.localeCompare(t.name)})}));return N.a({},e,{userConfiguration:r});case c.ResetPcMouseSpeedSettings:return N.a({},e,{userConfiguration:Object.assign(new $o.UserConfiguration,N.a({},e.userConfiguration,{mouseMoveInitialSpeed:4,mouseMoveAcceleration:68,mouseMoveDeceleratedSpeed:8,mouseMoveBaseSpeed:32,mouseMoveAcceleratedSpeed:64,mouseScrollInitialSpeed:20,mouseScrollAcceleration:20,mouseScrollDeceleratedSpeed:10,mouseScrollBaseSpeed:20,mouseScrollAcceleratedSpeed:50}))});case c.ResetMacMouseSpeedSettings:return N.a({},e,{userConfiguration:Object.assign(new $o.UserConfiguration,N.a({},e.userConfiguration,{mouseMoveInitialSpeed:8,mouseMoveAcceleration:180,mouseMoveDeceleratedSpeed:80,mouseMoveBaseSpeed:112,mouseMoveAcceleratedSpeed:160,mouseScrollInitialSpeed:10,mouseScrollAcceleration:10,mouseScrollDeceleratedSpeed:7,mouseScrollBaseSpeed:10,mouseScrollAcceleratedSpeed:12}))});case zo.Add:case zo.Duplicate:var i=new $o.Keymap(t.payload);return i.abbreviation=function(e,t){for(var n="23456789ABCDEFGHIJKLMNOPQRSTUVWXYZ".split(""),r=0;e.some(function(e){return e.abbreviation===t});)if(t=t.substring(0,t.length-1)+n[r],++r>n.length){r=0;var i=n.indexOf(t.substr(0,1)),o=n.indexOf(t.substr(1,1));++o>n.length&&(o=0,i++),t=n[i]+n[o]+n[r]}return t}(e.userConfiguration.keymaps,i.abbreviation),i.name=Kl(e.userConfiguration.keymaps,i.name),i.isDefault=0===e.userConfiguration.keymaps.length,(r=Object.assign(new $o.UserConfiguration,e.userConfiguration)).keymaps=Vl(e.userConfiguration.keymaps,i),N.a({},e,{userConfiguration:r});case zo.EditName:var o=t.payload;if(!El(o.name))break;var l=o.name.trim(),u=null;if(e.userConfiguration.keymaps.some(function(e){return e.abbreviation===o.abbr&&(u=e),e.name===l&&e.abbreviation!==o.abbr}))break;var a=Object.assign(new $o.Keymap,u,{name:l});return(r=Object.assign(new $o.UserConfiguration,e.userConfiguration)).keymaps=Vl(e.userConfiguration.keymaps,a,function(e){return e.abbreviation!==a.abbreviation}),N.a({},e,{userConfiguration:r});case zo.EditAbbr:var s=t.payload,p=s.newAbbr.toUpperCase(),f=e.userConfiguration.keymaps.some(function(e){return e.name!==s.name&&e.abbreviation===p});return(r=Object.assign(new $o.UserConfiguration,e.userConfiguration)).keymaps=e.userConfiguration.keymaps.map(function(e){return e=Object.assign(new $o.Keymap,e),f||e.abbreviation!==s.abbr?e=e.renameKeymap(s.abbr,s.newAbbr):e.abbreviation=p,e}),N.a({},e,{userConfiguration:r});case zo.SetDefault:var d=t.payload;return(r=Object.assign(new $o.UserConfiguration,e.userConfiguration)).keymaps=e.userConfiguration.keymaps.map(function(e){return(e.abbreviation===d||e.isDefault)&&((e=Object.assign(new $o.Keymap,e)).isDefault=e.abbreviation===d),e}),N.a({},e,{userConfiguration:r});case zo.Remove:var h,y=t.payload,b=e.userConfiguration.keymaps.filter(function(e){return e.abbreviation!==y||(h=e.isDefault,!1)});return h&&b.length>0&&(b[0]=Object.assign(new $o.Keymap,b[0],{isDefault:!0})),(r=Object.assign(new $o.UserConfiguration,e.userConfiguration)).keymaps=b.map(function(e){return(e=Object.assign(new $o.Keymap,e)).layers=Gl(e.layers,"keymapAbbreviation",y),e}),N.a({},e,{userConfiguration:r});case zo.SaveKey:var m=(q=t.payload).key,g=q.layer,v=q.module,k=q.keyAction,_=k.action,w=q.keymap,O=_ instanceof $o.SwitchLayerAction,A=_ instanceof $o.SwitchKeymapAction,C=w.layers[g].modules[v].keyActions[m],T=C instanceof $o.SwitchLayerAction;return(r=Object.assign(new $o.UserConfiguration,e.userConfiguration)).keymaps=e.userConfiguration.keymaps.map(function(e){return A&&e.abbreviation===_.keymapAbbreviation?e:((k.remapOnAllKeymap||e.abbreviation===w.abbreviation)&&(e.layers=e.layers.map(function(e,t){if(k.remapOnAllLayer||t===g||O){var n=$o.KeyActionHelper.createKeyAction(_);if(O)if(0===t||t-1===_.layer)Hl(e,v,m,n);else{var r=e.modules[v].keyActions[m];r&&r instanceof $o.SwitchLayerAction&&Hl(e,v,m,null)}else Hl(e,v,m,n)}else T&&t-1===C.layer&&Hl(e,v,m,null);return e})),e)}),N.a({},e,{userConfiguration:r,lastEditedKey:{key:"key-"+(m+1),moduleId:v}});case zo.CheckMacro:var x=t.payload;return(r=Object.assign(new $o.UserConfiguration,e.userConfiguration)).keymaps=e.userConfiguration.keymaps.map(function(e){return(e=Object.assign(new $o.Keymap,e)).layers=Gl(e.layers,"_macroId",x),e}),N.a({},e,{userConfiguration:r});case ol.Add:return(S=new $o.Macro).id=Bl(e.userConfiguration.macros),S.name=Kl(e.userConfiguration.macros,"New macro"),S.isLooped=!1,S.isPrivate=!0,S.macroActions=[],(r=Object.assign(new $o.UserConfiguration,e.userConfiguration)).macros=Vl(e.userConfiguration.macros,S),N.a({},e,{userConfiguration:r});case ol.Duplicate:var S;return(S=new $o.Macro(q=t.payload)).name=Kl(e.userConfiguration.macros,S.name),S.id=Bl(e.userConfiguration.macros),(r=Object.assign(new $o.UserConfiguration,e.userConfiguration)).macros=Vl(e.userConfiguration.macros,S),N.a({},e,{userConfiguration:r});case ol.EditName:var M=t.payload;if(!El(M.name))break;var E=M.name.trim(),P=null;if(e.userConfiguration.macros.some(function(e){return e.id===M.id&&(P=e),e.id!==M.id&&e.name===E}))break;var I=Object.assign(new $o.Macro,P,{name:E});return(r=Object.assign(new $o.UserConfiguration,e.userConfiguration)).macros=Vl(e.userConfiguration.macros,I,function(e){return e.id!==I.id}),N.a({},e,{userConfiguration:r});case ol.Remove:var j=t.payload;(r=Object.assign(new $o.UserConfiguration,e.userConfiguration)).macros=e.userConfiguration.macros.filter(function(e){return e.id!==j});for(var R=0;Rt&&(t=e.id)}),t+1}function Vl(e,t,n){void 0===n&&(n=function(){return!0});for(var r=[],i=!1,o=0,l=e;o0&&(r.push(t),i=!0),n(u)&&r.push(u)}return i||r.push(t),r}function Gl(e,t,n){for(var r=[],i=0;i1&&(r.undoableNotification=null),r;case fu.UndoLastSuccess:case fu.DismissUndoNotification:return N.a({},e,{undoableNotification:null});case yl.LoadUserConfigSuccess:case yl.SaveUserConfigSuccess:return N.a({},e,{prevUserConfig:t.payload,configLoading:!1});case yl.LoadConfigFromDevice:case yl.LoadUserConfig:return N.a({},e,{configLoading:!0});case fu.LoadHardwareConfigurationSuccess:return N.a({},e,{hardwareConfig:t.payload});case c.ConnectionStateChanged:var i=t.payload;return i&&!0===i.connected?e:N.a({},e,{hardwareConfig:null});case fu.PrivilegeWhatWillThisDo:return N.a({},e,{privilegeWhatWillThisDoClicked:!0});case fu.SetupPermissionError:return N.a({},e,{permissionError:t.payload});case c.SetPrivilegeOnLinux:return N.a({},e,{permissionError:null});case fu.StartKeypressCapturing:return N.a({},e,{keypressCapturing:!0});case fu.StopKeypressCapturing:return N.a({},e,{keypressCapturing:!1});default:return e}}var Eu={showButton:!1,text:null,showProgress:!1},Pu=function(e){return e.standard="xterm-standard",e.error="xterm-error",e}({}),Iu={connected:!0,hasPermission:!0,bootloaderActive:!1,zeroInterfaceAvailable:!0,udevRuleInfo:$o.UdevRulesInfo.Unknown,saveToKeyboard:Eu,savingToKeyboard:!1,updatingFirmware:!1,firmwareUpdateFinished:!1,modules:{leftModuleInfo:{firmwareVersion:"",moduleProtocolVersion:""},rightModuleInfo:{firmwareVersion:""}},log:[{message:"",cssClass:Pu.standard}],restoringUserConfiguration:!1,hasBackupUserConfiguration:!1,halvesInfo:{isLeftHalfConnected:!0,areHalvesMerged:!1}};function ju(e,t){switch(void 0===e&&(e=Iu),t.type){case c.ConnectionStateChanged:return N.a({},e,{connected:(n=t.payload).connected,hasPermission:n.hasPermission,zeroInterfaceAvailable:n.zeroInterfaceAvailable,bootloaderActive:n.bootloaderActive,udevRuleInfo:n.udevRulesInfo,halvesInfo:n.halvesInfo});case c.SavingConfiguration:return N.a({},e,{savingToKeyboard:!0});case c.ShowSaveToKeyboardButton:return N.a({},e,{saveToKeyboard:{showButton:!0,text:"Save to keyboard",action:new h}});case c.SaveConfiguration:return N.a({},e,{saveToKeyboard:{showButton:!0,text:"Saving",showProgress:!0}});case c.SaveToKeyboardSuccess:return N.a({},e,{saveToKeyboard:{showButton:!0,text:"Saved!",action:null},restoringUserConfiguration:!1});case c.SaveToKeyboardFailed:return N.a({},e,{saveToKeyboard:{showButton:!0,text:"Save to keyboard",action:new h}});case c.HideSaveToKeyboardButton:return N.a({},e,{saveToKeyboard:Eu});case c.UpdateFirmwareWith:case c.UpdateFirmware:return N.a({},e,{updatingFirmware:!0,firmwareUpdateFinished:!1,firmwareUpdateFailed:!1,firmwareUpdateSuccess:!1,log:[{message:"Start flashing firmware",cssClass:Pu.standard}]});case c.UpdateFirmwareSuccess:return N.a({},e,{updatingFirmware:!1,firmwareUpdateFinished:!0,firmwareUpdateSuccess:!0,modules:t.payload});case c.UpdateFirmwareFailed:var n;return N.a({},e,{updatingFirmware:!1,firmwareUpdateFinished:!0,firmwareUpdateFailed:!0,modules:(n=t.payload).modules,log:e.log.concat([{message:n.error.message,cssClass:Pu.error}])});case fu.ElectronMainLogReceived:if(!e.updatingFirmware)return e;var r=t.payload;return r.message.indexOf("UHK Device not found:")>-1?e:N.a({},e,{log:e.log.concat([{message:r.message,cssClass:"error"===r.level?Pu.error:Pu.standard}])});case c.ModulesInfoLoaded:return N.a({},e,{modules:t.payload});case c.ResetUserConfiguration:case c.RestoreConfigurationFromBackup:return N.a({},e,{restoringUserConfiguration:!0});case c.HasBackupUserConfiguration:return N.a({},e,{hasBackupUserConfiguration:t.payload});case c.RestoreConfigurationFromBackupSuccess:return N.a({},e,{hasBackupUserConfiguration:!1});case c.RecoveryDevice:return N.a({},e,{updatingFirmware:!0,log:[{message:"",cssClass:Pu.standard}]});default:return e}}var Ru=function(e){return e[e.Linux=0]="Linux",e[e.Mac=1]="Mac",e[e.Windows=2]="Windows",e}({}),Lu=function(e){return e.userConfiguration},Nu=Object(L.v)(Lu,function(e){return e.userConfiguration}),Du=Object(L.v)(Lu,function(e){return e.userConfiguration.keymaps}),Uu=Object(L.v)(Lu,Ul),Fu=Object(L.v)(Lu,function(e){return void 0===e.selectedKeymapAbbr?Ul(e):e.userConfiguration.keymaps.find(function(t){return t.abbreviation===e.selectedKeymapAbbr})}),Ku=Object(L.v)(Lu,function(e){return e.userConfiguration.macros}),Bu=Object(L.v)(Lu,function(e){if(!isNaN(e.selectedMacroId))return e.userConfiguration.macros.find(function(t){return t.id===e.selectedMacroId})}),Vu=Object(L.v)(Lu,function(e){return e.userConfiguration.keymaps.length>1}),Gu=(Object(L.v)(Lu,function(e){return e.userConfiguration.macros.length>0}),Object(L.v)(Lu,function(e){return e.userConfiguration.macros.reduce(Fl,new Map)})),Hu=Object(L.v)(Lu,function(e){return e.lastEditedKey}),$u=function(e){return e.app},zu=Object(L.v)($u,function(e){return e.commandLineArgs.addons}),Qu=Object(L.v)($u,function(e){return e.undoableNotification}),Wu=Object(L.v)($u,function(e){return e.prevUserConfig}),qu=Object(L.v)($u,function(e){return e.runningInElectron}),Ju=Object(L.v)($u,function(e){return e.hardwareConfig&&e.hardwareConfig.isIso?xu.ISO:xu.ANSI}),Yu=Object(L.v)($u,function(e){return!e.runningInElectron||!!e.hardwareConfig}),Zu=Object(L.v)($u,function(e){return e.agentVersionInfo||{}}),Xu=Object(L.v)($u,function(e){if(e.runningInElectron)switch(e.platform){case"darwin":return Ru.Mac;case"win32":return Ru.Windows;default:return Ru.Linux}var t=navigator.platform.toLowerCase();return t.indexOf("mac")>-1?Ru.Mac:t.indexOf("win")>-1?Ru.Windows:Ru.Linux}),ea=Object(L.v)($u,function(e){return e.keypressCapturing}),ta=Object(L.v)($u,function(e){if(!e.osVersion||"win32"!==e.platform)return!1;var t=e.osVersion.split("."),n=+t[0];return n<6||6===n&&+t[1]<2}),na=function(e){return e.contributors},ra=Object(L.v)(ta,function(e){return!e}),ia=function(e){return e.appUpdate},oa=Object(L.v)(ia,function(e){return e.updateDownloaded&&!e.doNotUpdateApp}),la=Object(L.v)(ia,function(e){return e.updateInfo}),ua=function(e){return e.autoUpdateSettings},aa=Object(L.v)(ua,function(e){return{checkForUpdateOnStartUp:e.checkForUpdateOnStartUp,usePreReleaseUpdate:e.usePreReleaseUpdate}}),sa=Object(L.v)(ua,function(e){return e.checkingForUpdate}),ca=function(e){return e.device},pa=Object(L.v)(qu,ca,$u,function(e,t,n){return!e||("linux"===n.platform?t.connected&&(t.zeroInterfaceAvailable||t.updatingFirmware):t.connected)}),fa=Object(L.v)(ca,function(e){return e.udevRuleInfo===$o.UdevRulesInfo.Ok}),da=Object(L.v)(ca,function(e){return e.connected&&!e.zeroInterfaceAvailable?{header:"Cannot find your UHK",subtitle:"Please reconnect it!"}:{header:"Cannot find your UHK",subtitle:"Please plug it in!"}}),ha=Object(L.v)(ca,function(e){return e.saveToKeyboard}),ya=Object(L.v)(qu,ha,function(e,t){return e?t:Eu}),ba=Object(L.v)(ca,function(e){return e.updatingFirmware}),ma=Object(L.v)(ca,function(e){return e.log}),ga=Object(L.v)(qu,ca,function(e,t){return!e||t.updatingFirmware}),va=Object(L.v)(ca,function(e){return e.modules}),ka=Object(L.v)(ca,function(e){return{restoringUserConfiguration:e.restoringUserConfiguration,hasBackupUserConfiguration:e.hasBackupUserConfiguration}}),_a=Object(L.v)(ca,function(e){return e.hasBackupUserConfiguration}),wa=Object(L.v)(ca,function(e){return e.bootloaderActive}),Oa=Object(L.v)(ca,function(e){return e.firmwareUpdateFailed}),Aa=Object(L.v)(ca,function(e){return e.firmwareUpdateSuccess}),Ca=Object(L.v)(ca,function(e){return e.udevRuleInfo===$o.UdevRulesInfo.Different}),Ta=Object(L.v)(ca,function(e){return e.halvesInfo}),xa=Object(L.v)($u,Ca,function(e,t){var n=!!e.permissionError;return{permissionSetupFailed:n,updateUdevRules:t,showWhatWillThisDo:!e.privilegeWhatWillThisDoClicked&&!n,showWhatWillThisDoContent:e.privilegeWhatWillThisDoClicked||n}}),Sa=Object(L.v)(zu,qu,ba,Nu,_a,function(e,t,n,r,i){return{showAddonMenu:e,runInElectron:t,updatingFirmware:n,deviceName:r.deviceName,keymaps:r.keymaps,macros:r.macros,restoreUserConfiguration:i}}),Ma=function(e){return e.router},Ea=Object(L.v)(va,function(e){return Rl(e.rightModuleInfo.firmwareVersion,"8.4.3")}),Pa=Object(L.v)(va,function(e){return Rl(e.rightModuleInfo.firmwareVersion,"8.4.3")}),Ia=Object(L.v)(va,function(e){return Rl(e.rightModuleInfo.userConfigVersion,"4.1.1")}),ja=function(){function e(e){var t=this;this.store=e,this.showUpdateAvailableSubscription=e.select(oa).subscribe(function(e){return t.showUpdateAvailable=e}),this.updateInfo$=e.select(la),this.deviceConfigurationLoaded$=e.select(Yu),this.runningInElectron$=e.select(qu),this.saveToKeyboardStateSubscription=e.select(ya).subscribe(function(e){return t.saveToKeyboardState=e}),this.keypressCapturingSubscription=e.select(ea).subscribe(function(e){return t.keypressCapturing=e})}return e.prototype.ngOnDestroy=function(){this.saveToKeyboardStateSubscription.unsubscribe(),this.keypressCapturingSubscription.unsubscribe(),this.showUpdateAvailableSubscription.unsubscribe()},e.prototype.onKeyDown=function(e){this.saveToKeyboardState.showButton&&e.ctrlKey&&"s"===e.key&&!e.defaultPrevented&&!this.keypressCapturing&&(this.clickedOnProgressButton(this.saveToKeyboardState.action),e.preventDefault()),e.shiftKey&&e.ctrlKey&&e.metaKey&&"|"===e.key&&!e.defaultPrevented&&(this.enableUsbStackTest(),e.preventDefault())},e.prototype.updateApp=function(){this.store.dispatch(new l)},e.prototype.doNotUpdateApp=function(){this.store.dispatch(new u)},e.prototype.clickedOnProgressButton=function(e){return this.store.dispatch(e)},e.prototype.enableUsbStackTest=function(){this.store.dispatch(new j)},e}(),Ra=r.sb({encapsulation:2,styles:[],data:{}});function La(e){return r.Qb(0,[(e()(),r.ub(0,16777216,null,null,1,"router-outlet",[],null,null,null,null,null)),r.tb(1,212992,null,0,lo,[oo,r.P,r.j,[8,null],r.h],null,null)],function(e,t){e(t,1,0)},null)}function Na(e){return r.Qb(0,[(e()(),r.ub(0,0,null,null,1,"ng-component",[],null,null,null,La,Ra)),r.tb(1,49152,null,0,Zn,[],null,null)],null,null)}var Da=r.qb("ng-component",Zn,Na,{},{},[]),Ua=function(){function e(){}return e.prototype.getAllStyles=function(e){return window.getComputedStyle(e)},e.prototype.getStyle=function(e,t){return this.getAllStyles(e)[t]},e.prototype.isStaticPositioned=function(e){return"static"===(this.getStyle(e,"position")||"static")},e.prototype.offsetParent=function(e){for(var t=e.offsetParent||document.documentElement;t&&t!==document.documentElement&&this.isStaticPositioned(t);)t=t.offsetParent;return t||document.documentElement},e.prototype.position=function(e,t){var n;void 0===t&&(t=!0);var r={width:0,height:0,top:0,bottom:0,left:0,right:0};if("fixed"===this.getStyle(e,"position"))n={top:(n=e.getBoundingClientRect()).top,bottom:n.bottom,left:n.left,right:n.right,height:n.height,width:n.width};else{var i=this.offsetParent(e);n=this.offset(e,!1),i!==document.documentElement&&(r=this.offset(i,!1)),r.top+=i.clientTop,r.left+=i.clientLeft}return n.top-=r.top,n.bottom-=r.top,n.left-=r.left,n.right-=r.left,t&&(n.top=Math.round(n.top),n.bottom=Math.round(n.bottom),n.left=Math.round(n.left),n.right=Math.round(n.right)),n},e.prototype.offset=function(e,t){void 0===t&&(t=!0);var n=e.getBoundingClientRect(),r=window.pageYOffset-document.documentElement.clientTop,i=window.pageXOffset-document.documentElement.clientLeft,o={height:n.height||e.offsetHeight,width:n.width||e.offsetWidth,top:n.top+r,bottom:n.bottom+r,left:n.left+i,right:n.right+i};return t&&(o.height=Math.round(o.height),o.width=Math.round(o.width),o.top=Math.round(o.top),o.bottom=Math.round(o.bottom),o.left=Math.round(o.left),o.right=Math.round(o.right)),o},e.prototype.positionElements=function(e,t,n,r){var i=n.split("-"),o=i[0],l=void 0===o?"top":o,u=i[1],a=void 0===u?"center":u,s=r?this.offset(e,!1):this.position(e,!1),c=this.getAllStyles(t),p=parseFloat(c.marginTop),f=parseFloat(c.marginBottom),d=parseFloat(c.marginLeft),h=parseFloat(c.marginRight),y=0,b=0;switch(l){case"top":y=s.top-(t.offsetHeight+p+f);break;case"bottom":y=s.top+s.height;break;case"left":b=s.left-(t.offsetWidth+d+h);break;case"right":b=s.left+s.width}switch(a){case"top":y=s.top;break;case"bottom":y=s.top+s.height-t.offsetHeight;break;case"left":b=s.left;break;case"right":b=s.left+s.width-t.offsetWidth;break;case"center":"top"===l||"bottom"===l?b=s.left+s.width/2-t.offsetWidth/2:y=s.top+s.height/2-t.offsetHeight/2}t.style.transform="translate("+Math.round(b)+"px, "+Math.round(y)+"px)";var m=t.getBoundingClientRect(),g=document.documentElement,v=window.innerHeight||g.clientHeight,k=window.innerWidth||g.clientWidth;return m.left>=0&&m.top>=0&&m.right<=k&&m.bottom<=v},e}();new Ua;var Fa=function(){return function(){this.confirmText="Confirm",this.cancelText="Cancel",this.confirmButtonType="success",this.cancelButtonType="default",this.placement="top",this.hideConfirmButton=!1,this.hideCancelButton=!1,this.popoverClass="",this.appendToBody=!1,this.reverseButtonOrder=!1,this.closeOnOutsideClick=!0}}(),Ka=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Object(N.c)(t,e),t}(Fa),Ba=function(){function e(e){this.options=e}return e.prototype.ngAfterViewInit=function(){this.options.onAfterViewInit()},e}(),Va=function(){function e(e,t,n,i,o,l){this.viewContainerRef=e,this.elm=t,this.defaultOptions=n,this.cfr=i,this.position=o,this.renderer=l,this.isDisabled=!1,this.isOpen=!1,this.isOpenChange=new r.m(!0),this.confirm=new r.m,this.cancel=new r.m,this.eventListeners=[]}return e.prototype.ngOnInit=function(){this.isOpenChange.emit(!1)},e.prototype.ngOnChanges=function(e){e.isOpen&&(!0===e.isOpen.currentValue?this.showPopover():this.hidePopover())},e.prototype.ngOnDestroy=function(){this.hidePopover()},e.prototype.onConfirm=function(e){this.confirm.emit(e),this.hidePopover()},e.prototype.onCancel=function(e){this.cancel.emit(e),this.hidePopover()},e.prototype.togglePopover=function(){this.popover?this.hidePopover():this.showPopover()},e.prototype.onDocumentClick=function(e){var t=void 0!==this.closeOnOutsideClick?this.closeOnOutsideClick:this.defaultOptions.closeOnOutsideClick;this.popover&&!this.elm.nativeElement.contains(e.target)&&!this.popover.location.nativeElement.contains(e.target)&&t&&this.hidePopover()},e.prototype.showPopover=function(){var e=this;if(!this.popover&&!this.isDisabled){setTimeout(function(){e.eventListeners=[e.renderer.listen("document","click",function(t){return e.onDocumentClick(t)}),e.renderer.listen("document","touchend",function(t){return e.onDocumentClick(t)}),e.renderer.listen("window","resize",function(){return e.positionPopover()})]});var t=new Ka;Object.assign(t,this.defaultOptions,{onConfirm:function(t){e.onConfirm(t)},onCancel:function(t){e.onCancel(t)},onAfterViewInit:function(){e.positionPopover()}}),["confirmText","cancelText","placement","confirmButtonType","cancelButtonType","focusButton","hideConfirmButton","hideCancelButton","popoverClass","appendToBody","customTemplate","reverseButtonOrder","popoverTitle","popoverMessage"].forEach(function(n){void 0!==e[n]&&(t[n]=e[n])});var n=this.cfr.resolveComponentFactory(Ba),i=r.r.create([{provide:Ka,useValue:t}],this.viewContainerRef.parentInjector);this.popover=this.viewContainerRef.createComponent(n,this.viewContainerRef.length,i),t.appendToBody&&document.body.appendChild(this.popover.location.nativeElement),this.isOpenChange.emit(!0)}},e.prototype.positionPopover=function(){if(this.popover){var e=this.popover.location.nativeElement.children[0],t=this.position.positionElements(this.elm.nativeElement,e,this.placement||this.defaultOptions.placement,this.appendToBody||this.defaultOptions.appendToBody);this.renderer.setStyle(e,"top",t.top+"px"),this.renderer.setStyle(e,"left",t.left+"px")}},e.prototype.hidePopover=function(){this.popover&&(this.popover.destroy(),delete this.popover,this.isOpenChange.emit(!1),this.eventListeners.forEach(function(e){return e()}),this.eventListeners=[])},e}(),Ga=function(){function e(e){this.elm=e}return e.prototype.ngOnChanges=function(e){e.mwlFocus&&!0===this.mwlFocus&&this.elm.nativeElement.focus()},e}(),Ha=new r.q("confirmation popover user options");function $a(e){var t=new Fa;return Object.assign(t,e),t}var za=function(){function e(){}return e.forRoot=function(t){return void 0===t&&(t={}),{ngModule:e,providers:[{provide:Ha,useValue:t},{provide:Fa,useFactory:$a,deps:[Ha]},Ua]}},e}(),Qa=r.sb({encapsulation:0,styles:[".popover[_ngcontent-%COMP%] {\n display: block;\n }\n .bs-popover-top[_ngcontent-%COMP%] .arrow[_ngcontent-%COMP%], .bs-popover-bottom[_ngcontent-%COMP%] .arrow[_ngcontent-%COMP%] {\n left: 50%;\n }\n .bs-popover-left[_ngcontent-%COMP%] .arrow[_ngcontent-%COMP%], .bs-popover-right[_ngcontent-%COMP%] .arrow[_ngcontent-%COMP%] {\n top: 50%;\n }\n .btn[_ngcontent-%COMP%] {\n transition: none;\n }\n .confirm-btns[_ngcontent-%COMP%] {\n display: flex;\n justify-content: space-around;\n }\n .confirm-btn-container[_ngcontent-%COMP%] {\n flex-basis: 50%;\n }\n .confirm-btn-container[_ngcontent-%COMP%]:not(:first-child) {\n margin-left: 4px;\n }\n .confirm-btn-container[_ngcontent-%COMP%]:not(:last-child) {\n margin-right: 4px;\n }\n .confirm-btns-reversed[_ngcontent-%COMP%] {\n flex-direction: row-reverse;\n }\n .confirm-btns-reversed[_ngcontent-%COMP%] .confirm-btn-container[_ngcontent-%COMP%]:not(:first-child) {\n margin-right: 4px;\n margin-left: 0;\n }\n .confirm-btns-reversed[_ngcontent-%COMP%] .confirm-btn-container[_ngcontent-%COMP%]:not(:last-child) {\n margin-right: 0;\n margin-left: 4px;\n }"],data:{}});function Wa(e){return r.Qb(0,[(e()(),r.ub(0,0,null,null,5,"div",[["class","confirm-btn-container"]],null,null,null,null,null)),(e()(),r.Ob(-1,null,["\n "])),(e()(),r.ub(2,0,null,null,2,"button",[["type","button"]],[[8,"className",0],[8,"innerHTML",1]],[[null,"click"]],function(e,t,n){var r=!0;return"click"===t&&(r=!1!==e.parent.context.options.onCancel({clickEvent:n})&&r),r},null,null)),r.tb(3,540672,null,0,Ga,[r.k],{mwlFocus:[0,"mwlFocus"]},null),(e()(),r.Ob(-1,null,["\n "])),(e()(),r.Ob(-1,null,["\n "]))],function(e,t){e(t,3,0,"cancel"===t.parent.context.options.focusButton)},function(e,t){e(t,2,0,"btn btn-block btn-"+t.parent.context.options.cancelButtonType,t.parent.context.options.cancelText)})}function qa(e){return r.Qb(0,[(e()(),r.ub(0,0,null,null,5,"div",[["class","confirm-btn-container"]],null,null,null,null,null)),(e()(),r.Ob(-1,null,["\n "])),(e()(),r.ub(2,0,null,null,2,"button",[["type","button"]],[[8,"className",0],[8,"innerHTML",1]],[[null,"click"]],function(e,t,n){var r=!0;return"click"===t&&(r=!1!==e.parent.context.options.onConfirm({clickEvent:n})&&r),r},null,null)),r.tb(3,540672,null,0,Ga,[r.k],{mwlFocus:[0,"mwlFocus"]},null),(e()(),r.Ob(-1,null,["\n "])),(e()(),r.Ob(-1,null,["\n "]))],function(e,t){e(t,3,0,"confirm"===t.parent.context.options.focusButton)},function(e,t){e(t,2,0,"btn btn-block btn-"+t.parent.context.options.confirmButtonType,t.parent.context.options.confirmText)})}function Ja(e){return r.Qb(0,[(e()(),r.Ob(-1,null,["\n "])),(e()(),r.ub(1,0,null,null,22,"div",[],null,null,null,null,null)),r.Lb(512,null,Z,X,[r.t,r.u,r.k,r.E]),r.tb(3,278528,null,0,ee,[Z],{ngClass:[0,"ngClass"]},null),r.Hb(4,5),(e()(),r.Ob(-1,null,["\n "])),(e()(),r.ub(6,0,null,null,0,"div",[["class","popover-arrow arrow"]],null,null,null,null,null)),(e()(),r.Ob(-1,null,["\n "])),(e()(),r.ub(8,0,null,null,0,"h3",[["class","popover-title popover-header"]],[[8,"innerHTML",1]],null,null,null,null)),(e()(),r.Ob(-1,null,["\n "])),(e()(),r.ub(10,0,null,null,12,"div",[["class","popover-content popover-body"]],null,null,null,null,null)),(e()(),r.Ob(-1,null,["\n "])),(e()(),r.ub(12,0,null,null,0,"p",[],[[8,"innerHTML",1]],null,null,null,null)),(e()(),r.Ob(-1,null,["\n "])),(e()(),r.ub(14,0,null,null,7,"div",[["class","confirm-btns"]],[[2,"confirm-btns-reversed",null]],null,null,null,null)),(e()(),r.Ob(-1,null,["\n "])),(e()(),r.jb(16777216,null,null,1,null,Wa)),r.tb(17,16384,null,0,ie,[r.P,r.M],{ngIf:[0,"ngIf"]},null),(e()(),r.Ob(-1,null,["\n "])),(e()(),r.jb(16777216,null,null,1,null,qa)),r.tb(20,16384,null,0,ie,[r.P,r.M],{ngIf:[0,"ngIf"]},null),(e()(),r.Ob(-1,null,["\n "])),(e()(),r.Ob(-1,null,["\n "])),(e()(),r.Ob(-1,null,["\n "])),(e()(),r.Ob(-1,null,["\n "]))],function(e,t){var n=e(t,4,0,"popover",t.context.options.placement,"popover-"+t.context.options.placement,"bs-popover-"+t.context.options.placement,t.context.options.popoverClass);e(t,3,0,n),e(t,17,0,!t.context.options.hideCancelButton),e(t,20,0,!t.context.options.hideConfirmButton)},function(e,t){e(t,8,0,t.context.options.popoverTitle),e(t,12,0,t.context.options.popoverMessage),e(t,14,0,t.context.options.reverseButtonOrder)})}function Ya(e){return r.Qb(0,[(e()(),r.Ob(-1,null,["\n "]))],null,null)}function Za(e){return r.Qb(0,[(e()(),r.Ob(-1,null,["\n "])),(e()(),r.jb(0,[["defaultTemplate",2]],null,0,null,Ja)),(e()(),r.Ob(-1,null,["\n "])),(e()(),r.jb(16777216,null,null,2,null,Ya)),r.tb(4,540672,null,0,pe,[r.P],{ngTemplateOutletContext:[0,"ngTemplateOutletContext"],ngTemplateOutlet:[1,"ngTemplateOutlet"]},null),r.Jb(5,{options:0}),(e()(),r.Ob(-1,null,["\n "]))],function(e,t){var n=t.component,i=e(t,5,0,n.options);e(t,4,0,i,n.options.customTemplate||r.Gb(t,1))},null)}function Xa(e){return r.Qb(0,[(e()(),r.ub(0,0,null,null,1,"mwl-confirmation-popover-window",[],null,null,null,Za,Qa)),r.tb(1,4243456,null,0,Ba,[Ka],null,null)],null,null)}var es=r.qb("mwl-confirmation-popover-window",Ba,Xa,{},{},[]),ts=function(){return function(){this.rotateLogo=!1}}(),ns=r.sb({encapsulation:0,styles:[[".uhk-message-wrapper[_ngcontent-%COMP%]{display:flex;height:100%;align-items:center;justify-content:center}.agent-logo[_ngcontent-%COMP%]{padding:2em}.message[_ngcontent-%COMP%]{display:flex;flex-direction:column}.message[_ngcontent-%COMP%] > h2[_ngcontent-%COMP%]{margin-top:10px}.spin-logo[_ngcontent-%COMP%]{-webkit-animation:2s ease-in-out infinite spin;animation:2s ease-in-out infinite spin}@-webkit-keyframes spin{0%{transform:rotate(0)}100%,50%{transform:rotate(360deg)}}@keyframes spin{0%{transform:rotate(0)}100%,50%{transform:rotate(360deg)}}"]],data:{}});function rs(e){return r.Qb(2,[(e()(),r.ub(0,0,null,null,15,"span",[["class","uhk-message-wrapper"]],null,null,null,null,null)),(e()(),r.Ob(-1,null,["\n "])),(e()(),r.ub(2,0,null,null,3,"img",[["class","agent-logo spin-logo"],["src","assets/images/agent-icon.png"]],null,null,null,null,null)),r.Lb(512,null,Z,X,[r.t,r.u,r.k,r.E]),r.tb(4,278528,null,0,ee,[Z],{klass:[0,"klass"],ngClass:[1,"ngClass"]},null),r.Jb(5,{"spin-logo":0}),(e()(),r.Ob(-1,null,["\n "])),(e()(),r.ub(7,0,null,null,7,"div",[["class","messages"]],null,null,null,null,null)),(e()(),r.Ob(-1,null,["\n "])),(e()(),r.ub(9,0,null,null,1,"h1",[],null,null,null,null,null)),(e()(),r.Ob(10,null,[" "," "])),(e()(),r.Ob(-1,null,["\n "])),(e()(),r.ub(12,0,null,null,1,"h2",[],null,null,null,null,null)),(e()(),r.Ob(13,null,[" "," "])),(e()(),r.Ob(-1,null,["\n "])),(e()(),r.Ob(-1,null,["\n"])),(e()(),r.Ob(-1,null,["\n"]))],function(e,t){var n=e(t,5,0,t.component.rotateLogo);e(t,4,0,"agent-logo spin-logo",n)},function(e,t){var n=t.component;e(t,10,0,n.header),e(t,13,0,n.subtitle)})}var is=function(){function e(e){var t=this;this.store=e,this.stateSubscription=this.store.select(da).subscribe(function(e){return t.state=e})}return e.prototype.ngOnDestroy=function(){this.stateSubscription.unsubscribe()},e}(),os=r.sb({encapsulation:2,styles:[],data:{}});function ls(e){return r.Qb(0,[(e()(),r.ub(0,0,null,null,1,"uhk-message",[],null,null,null,rs,ns)),r.tb(1,49152,null,0,ts,[],{header:[0,"header"],subtitle:[1,"subtitle"]},null),(e()(),r.Ob(-1,null,["\n"]))],function(e,t){var n=t.component;e(t,1,0,n.state.header,n.state.subtitle)},null)}function us(e){return r.Qb(0,[(e()(),r.ub(0,0,null,null,1,"missing-device",[],null,null,null,ls,os)),r.tb(1,180224,null,0,is,[L.m],null,null)],null,null)}var as=r.qb("missing-device",is,us,{},{},[]),ss=new r.q("WindowToken","undefined"!=typeof window&&window.document?{providedIn:"root",factory:function(){return window}}:void 0),cs=function(){function e(e,t){this.document=e,this.window=t,this.config={},this.copySubject=new Ue.a,this.copyResponse$=this.copySubject.asObservable()}return e.prototype.configure=function(e){this.config=e},Object.defineProperty(e.prototype,"isSupported",{get:function(){return!!this.document.queryCommandSupported&&!!this.document.queryCommandSupported("copy")&&!!this.window},enumerable:!0,configurable:!0}),e.prototype.isTargetValid=function(e){if(e instanceof HTMLInputElement||e instanceof HTMLTextAreaElement){if(e.hasAttribute("disabled"))throw new Error('Invalid "target" attribute. Please use "readonly" instead of "disabled" attribute');return!0}throw new Error("Target should be input or textarea")},e.prototype.copyFromInputElement=function(e){try{this.selectTarget(e);var t=this.copyText();return this.clearSelection(e,this.window),t&&this.isCopySuccessInIE11()}catch(n){return!1}},e.prototype.isCopySuccessInIE11=function(){var e=this.window.clipboardData;return!(e&&e.getData&&!e.getData("Text"))},e.prototype.copyFromContent=function(e,t){if(void 0===t&&(t=this.window.document.body),this.tempTextArea&&!t.contains(this.tempTextArea)&&this.destroy(this.tempTextArea.parentElement),!this.tempTextArea){this.tempTextArea=this.createTempTextArea(this.document,this.window);try{t.appendChild(this.tempTextArea)}catch(r){throw new Error("Container should be a Dom element")}}this.tempTextArea.value=e;var n=this.copyFromInputElement(this.tempTextArea);return this.config.cleanUpAfterCopy&&this.destroy(this.tempTextArea.parentElement),n},e.prototype.destroy=function(e){void 0===e&&(e=this.window.document.body),this.tempTextArea&&(e.removeChild(this.tempTextArea),this.tempTextArea=void 0)},e.prototype.selectTarget=function(e){return e.select(),e.setSelectionRange(0,e.value.length),e.value.length},e.prototype.copyText=function(){return this.document.execCommand("copy")},e.prototype.clearSelection=function(e,t){e&&e.focus(),t.getSelection().removeAllRanges()},e.prototype.createTempTextArea=function(e,t){var n,r="rtl"===e.documentElement.getAttribute("dir");return(n=e.createElement("textarea")).style.fontSize="12pt",n.style.border="0",n.style.padding="0",n.style.margin="0",n.style.position="absolute",n.style[r?"right":"left"]="-9999px",n.style.top=(t.pageYOffset||e.documentElement.scrollTop)+"px",n.setAttribute("readonly",""),n},e.prototype.pushCopyReponse=function(e){this.copySubject.next(e)},e.ngInjectableDef=Object(r.T)({factory:function(){return new e(Object(r.X)(me),Object(r.X)(ss,8))},token:e,providedIn:"root"}),e}(),ps=function(){function e(e){this.clipboardSrv=e,this.cbOnSuccess=new r.m,this.cbOnError=new r.m}return e.prototype.ngOnInit=function(){},e.prototype.ngOnDestroy=function(){this.clipboardSrv.destroy(this.container)},e.prototype.onClick=function(e){this.clipboardSrv.isSupported?this.targetElm&&this.clipboardSrv.isTargetValid(this.targetElm)?this.handleResult(this.clipboardSrv.copyFromInputElement(this.targetElm),this.targetElm.value,e):this.cbContent&&this.handleResult(this.clipboardSrv.copyFromContent(this.cbContent,this.container),this.cbContent,e):this.handleResult(!1,void 0,e)},e.prototype.handleResult=function(e,t,n){var r={isSuccess:e,event:n};e?(r=Object.assign(r,{content:t,successMessage:this.cbSuccessMsg}),this.cbOnSuccess.emit(r)):this.cbOnError.emit(r),this.clipboardSrv.pushCopyReponse(r)},e}(),fs=function(){return function(){}}(),ds=$.fn.tooltip.Constructor.DEFAULTS.whiteList;ds.div.push("style");var hs=function(){function e(e,t){this.elementRef=e,this.sanitizer=t}return e.prototype.ngAfterContentInit=function(){this.init()},e.prototype.ngOnChanges=function(e){e.title&&this.fixTitle()},e.prototype.init=function(){jQuery(this.elementRef.nativeElement).tooltip({placement:this.placement,html:this.html,template:this.getCustomTemplate(),title:this.title})},e.prototype.fixTitle=function(){jQuery(this.elementRef.nativeElement).tooltip({placement:this.placement,html:this.html,template:this.getCustomTemplate(),title:this.title,whiteList:ds}),jQuery(this.elementRef.nativeElement).attr("title",this.title).tooltip("fixTitle")},e.prototype.getCustomTemplate=function(){var e="",t="";return this.maxWidth&&(e='style="width: '+this.maxWidth+'px;"',t='style="max-width: '+this.maxWidth+'px;"'),'

\n
\n
\n
"},e}(),ys=function(){return function(){this.command='cat </etc/udev/rules.d/50-uhk60.rules\n# Ultimate Hacking Keyboard rules\n# These are the udev rules for accessing the USB interfaces of the UHK as non-root users.\n# Copy this file to /etc/udev/rules.d and physically reconnect the UHK afterwards.\nSUBSYSTEM=="input", GROUP="input", MODE="0666"\nSUBSYSTEMS=="usb", ATTRS{idVendor}=="1d50", ATTRS{idProduct}=="612[0-7]", TAG+="uaccess"\nKERNEL=="hidraw*", ATTRS{idVendor}=="1d50", ATTRS{idProduct}=="612[0-7]", TAG+="uaccess"\nEOF\nudevadm trigger\nudevadm settle'}}(),bs=r.sb({encapsulation:2,styles:[],data:{}});function ms(e){return r.Qb(2,[(e()(),r.ub(0,0,null,null,13,"ol",[],null,null,null,null,null)),(e()(),r.Ob(-1,null,["\n "])),(e()(),r.ub(2,0,null,null,1,"li",[],null,null,null,null,null)),(e()(),r.Ob(-1,null,["Open a terminal."])),(e()(),r.Ob(-1,null,["\n "])),(e()(),r.ub(5,0,null,null,4,"li",[],null,null,null,null,null)),(e()(),r.Ob(-1,null,["Run "])),(e()(),r.ub(7,0,null,null,1,"code",[],null,null,null,null,null)),(e()(),r.Ob(-1,null,["su"])),(e()(),r.Ob(-1,null,[" to become root."])),(e()(),r.Ob(-1,null,["\n "])),(e()(),r.ub(11,0,null,null,1,"li",[],null,null,null,null,null)),(e()(),r.Ob(-1,null,["Paste the following script:"])),(e()(),r.Ob(-1,null,["\n"])),(e()(),r.Ob(-1,null,["\n\n"])),(e()(),r.ub(15,0,null,null,9,"div",[["class","copy-container"]],null,null,null,null,null)),(e()(),r.Ob(-1,null,["\n "])),(e()(),r.ub(17,0,null,null,2,"span",[["class","fa fa-2x fa-copy"],["data-placement","top"],["data-toggle","tooltip"],["ngxClipboard",""],["title","Copy to clipboard"]],[[1,"data-placement",0]],[[null,"click"]],function(e,t,n){var i=!0;return"click"===t&&(i=!1!==r.Gb(e,18).onClick(n.target)&&i),i},null,null)),r.tb(18,212992,null,0,ps,[cs],{targetElm:[0,"targetElm"],cbContent:[1,"cbContent"]},null),r.tb(19,1589248,null,0,hs,[r.k,On],{title:[0,"title"]},null),(e()(),r.Ob(-1,null,["\n "])),(e()(),r.ub(21,0,null,null,2,"pre",[],null,null,null,null,null)),(e()(),r.ub(22,0,null,null,1,"code",[],null,null,null,null,null)),(e()(),r.Ob(23,null,["",""])),(e()(),r.Ob(-1,null,["\n"])),(e()(),r.Ob(-1,null,["\n"]))],function(e,t){e(t,18,0,"",t.component.command),e(t,19,0,"Copy to clipboard")},function(e,t){var n=t.component;e(t,17,0,r.Gb(t,19).placement),e(t,23,0,n.command)})}var gs=function(){function e(e,t){this.store=e,this.cdRef=t}return e.prototype.ngOnInit=function(){var e=this;this.stateSubscription=this.store.select(xa).subscribe(function(t){e.state=t,e.cdRef.markForCheck()})},e.prototype.ngOnDestroy=function(){this.stateSubscription&&this.stateSubscription.unsubscribe()},e.prototype.setUpPermissions=function(){this.store.dispatch(new p)},e.prototype.whatWillThisDo=function(){this.store.dispatch(new wu)},e.prototype.retry=function(){this.store.dispatch(new Au)},e}(),vs=r.sb({encapsulation:0,styles:[[".privilege-checker-wrapper[_ngcontent-%COMP%]{height:100%;display:flex;flex-direction:column;align-items:center;justify-content:center}uhk-message[_ngcontent-%COMP%]{max-width:50%}.privilege-error[_ngcontent-%COMP%]{-webkit-animation:2s error-fade-in;animation:2s error-fade-in}@-webkit-keyframes error-fade-in{0%{color:#fff;background-color:red}100%{color:inherit;background-color:inherit}}@keyframes error-fade-in{0%{color:#fff;background-color:red}100%{color:inherit;background-color:inherit}}"]],data:{}});function ks(e){return r.Qb(0,[(e()(),r.ub(0,0,null,null,1,"div",[],null,null,null,null,null)),(e()(),r.Ob(-1,null,["\n You seem to have an old udev rule file installed. New Agent versions require and updated udev rule file to find your UHK.\n "]))],null,null)}function _s(e){return r.Qb(0,[(e()(),r.ub(0,0,null,null,1,"span",[],null,null,null,null,null)),(e()(),r.Ob(-1,null,["Set up permissions"]))],null,null)}function ws(e){return r.Qb(0,[(e()(),r.ub(0,0,null,null,1,"span",[],null,null,null,null,null)),(e()(),r.Ob(-1,null,["Update udev rule file"]))],null,null)}function Os(e){return r.Qb(0,[(e()(),r.ub(0,0,null,null,1,"a",[["class","link-inline"]],null,[[null,"click"]],function(e,t,n){var r=!0;return"click"===t&&(r=!1!==e.component.whatWillThisDo()&&r),r},null,null)),(e()(),r.Ob(-1,null,["What will this do?\n "]))],null,null)}function As(e){return r.Qb(0,[(e()(),r.ub(0,0,[["privilegeError",1]],null,4,"p",[["class","privilege-error"]],null,null,null,null,null)),(e()(),r.Ob(-1,null,["\n Agent wasn't able to set up permissions via PolicyKit. This is most likely because the\n "])),(e()(),r.ub(2,0,null,null,1,"code",[],null,null,null,null,null)),(e()(),r.Ob(-1,null,["polkit"])),(e()(),r.Ob(-1,null,[" package is not installed on your system.\n "]))],null,null)}function Cs(e){return r.Qb(0,[(e()(),r.ub(0,0,null,null,4,"div",[],null,null,null,null,null)),(e()(),r.Ob(-1,null,["\n If you want to set up permissions manually:\n "])),(e()(),r.ub(2,0,null,null,1,"udev-rules",[],null,null,null,ms,bs)),r.tb(3,49152,null,0,ys,[],null,null),(e()(),r.Ob(-1,null,["\n "]))],null,null)}function Ts(e){return r.Qb(2,[(e()(),r.ub(0,0,null,null,31,"div",[["class","privilege-checker-wrapper"]],null,null,null,null,null)),(e()(),r.Ob(-1,null,["\n "])),(e()(),r.ub(2,0,null,null,1,"uhk-message",[["header","Cannot talk to your UHK"],["subtitle","Your UHK has been detected, but its permissions are not set up yet, so Agent can't talk to it."]],null,null,null,rs,ns)),r.tb(3,49152,null,0,ts,[],{header:[0,"header"],subtitle:[1,"subtitle"]},null),(e()(),r.Ob(-1,null,["\n\n "])),(e()(),r.jb(16777216,null,null,1,null,ks)),r.tb(6,16384,null,0,ie,[r.P,r.M],{ngIf:[0,"ngIf"]},null),(e()(),r.Ob(-1,null,["\n\n "])),(e()(),r.ub(8,0,null,null,7,"button",[["class","btn btn-default btn-lg btn-primary mt-10"]],null,[[null,"click"]],function(e,t,n){var r=!0;return"click"===t&&(r=!1!==e.component.setUpPermissions()&&r),r},null,null)),(e()(),r.Ob(-1,null,["\n "])),(e()(),r.jb(16777216,null,null,1,null,_s)),r.tb(11,16384,null,0,ie,[r.P,r.M],{ngIf:[0,"ngIf"]},null),(e()(),r.Ob(-1,null,["\n "])),(e()(),r.jb(16777216,null,null,1,null,ws)),r.tb(14,16384,null,0,ie,[r.P,r.M],{ngIf:[0,"ngIf"]},null),(e()(),r.Ob(-1,null,["\n "])),(e()(),r.Ob(-1,null,["\n\n "])),(e()(),r.ub(17,0,null,null,13,"div",[["class","mt-10"]],null,null,null,null,null)),(e()(),r.Ob(-1,null,["\n "])),(e()(),r.jb(16777216,null,null,1,null,Os)),r.tb(20,16384,null,0,ie,[r.P,r.M],{ngIf:[0,"ngIf"]},null),(e()(),r.Ob(-1,null,["\n\n "])),(e()(),r.ub(22,0,null,null,7,"div",[],null,null,null,null,null)),(e()(),r.Ob(-1,null,["\n "])),(e()(),r.jb(16777216,null,null,1,null,As)),r.tb(25,16384,null,0,ie,[r.P,r.M],{ngIf:[0,"ngIf"]},null),(e()(),r.Ob(-1,null,["\n\n "])),(e()(),r.jb(16777216,null,null,1,null,Cs)),r.tb(28,16384,null,0,ie,[r.P,r.M],{ngIf:[0,"ngIf"]},null),(e()(),r.Ob(-1,null,["\n "])),(e()(),r.Ob(-1,null,["\n "])),(e()(),r.Ob(-1,null,["\n"])),(e()(),r.Ob(-1,null,["\n"]))],function(e,t){var n=t.component;e(t,3,0,"Cannot talk to your UHK","Your UHK has been detected, but its permissions are not set up yet, so Agent can't talk to it."),e(t,6,0,n.state.updateUdevRules),e(t,11,0,!n.state.updateUdevRules),e(t,14,0,n.state.updateUdevRules),e(t,20,0,n.state.showWhatWillThisDo),e(t,25,0,n.state.permissionSetupFailed),e(t,28,0,n.state.showWhatWillThisDoContent)},null)}function xs(e){return r.Qb(0,[(e()(),r.ub(0,0,null,null,1,"privilege-checker",[],null,null,null,Ts,vs)),r.tb(1,245760,null,0,gs,[L.m,r.h],null,null)],function(e,t){e(t,1,0)},null)}var Ss=r.qb("privilege-checker",gs,xs,{},{},[]),Ms=function(){return function(){}}(),Es=r.sb({encapsulation:2,styles:[],data:{}});function Ps(e){return r.Qb(0,[(e()(),r.Ob(-1,null,["\n "])),(e()(),r.ub(1,0,null,null,1,"uhk-message",[["header","Loading keyboard configuration..."],["subtitle","Hang tight!"]],null,null,null,rs,ns)),r.tb(2,49152,null,0,ts,[],{header:[0,"header"],subtitle:[1,"subtitle"],rotateLogo:[2,"rotateLogo"]},null),(e()(),r.Ob(-1,null,["\n "]))],function(e,t){e(t,2,0,"Loading keyboard configuration...","Hang tight!",!0)},null)}function Is(e){return r.Qb(0,[(e()(),r.ub(0,0,null,null,1,"loading-device",[],null,null,null,Ps,Es)),r.tb(1,49152,null,0,Ms,[],null,null)],null,null)}var js=r.qb("loading-device",Ms,Is,{},{},[]),Rs=function(){function e(){this.logs=[]}return e.prototype.ngOnChanges=function(e){e.logs&&this.scrollToTheEnd()},e.prototype.getClipboardContent=function(){return this.logs.reduce(function(e,t){return e+t.message+"\n"},"")},e.prototype.scrollToTheEnd=function(){var e=this;setTimeout(function(){e.divElement&&e.divElement.nativeElement&&(e.divElement.nativeElement.scrollTop=e.divElement.nativeElement.scrollHeight)})},e}(),Ls=r.sb({encapsulation:0,styles:[['[_nghost-%COMP%]{display:flex;flex-direction:column;align-items:stretch;width:100%;height:100%}.x-term-container[_ngcontent-%COMP%]{display:flex;flex:1;flex-direction:column;align-items:stretch;position:relative}.x-term-wrapper[_ngcontent-%COMP%]{background-color:#000;overflow:auto;position:absolute;top:0;left:0;width:100%;height:100%}.copy-container-wrapper[_ngcontent-%COMP%]{position:absolute;top:2px;right:14px}.xterm-standard[_ngcontent-%COMP%]{color:#fff}.xterm-error[_ngcontent-%COMP%]{color:red}ul[_ngcontent-%COMP%] li[_ngcontent-%COMP%]{padding-left:5px}ul[_ngcontent-%COMP%] li[_ngcontent-%COMP%] span[_ngcontent-%COMP%]:before{content:"$ "}']],data:{}});function Ns(e){return r.Qb(0,[(e()(),r.ub(0,0,null,null,4,"li",[],null,null,null,null,null)),r.Lb(512,null,Z,X,[r.t,r.u,r.k,r.E]),r.tb(2,278528,null,0,ee,[Z],{ngClass:[0,"ngClass"]},null),(e()(),r.ub(3,0,null,null,1,"span",[],null,null,null,null,null)),(e()(),r.Ob(4,null,["",""]))],function(e,t){e(t,2,0,t.context.$implicit.cssClass)},function(e,t){e(t,4,0,t.context.$implicit.message)})}function Ds(e){return r.Qb(2,[r.Mb(671088640,1,{divElement:0}),(e()(),r.ub(1,0,null,null,20,"div",[["class","x-term-container"]],null,null,null,null,null)),(e()(),r.Ob(-1,null,["\n "])),(e()(),r.ub(3,0,[[1,0],["scrollMe",1]],null,7,"div",[["class","x-term-wrapper"]],null,null,null,null,null)),(e()(),r.Ob(-1,null,["\n "])),(e()(),r.ub(5,0,null,null,4,"ul",[["class","list-unstyled"]],null,null,null,null,null)),(e()(),r.Ob(-1,null,["\n "])),(e()(),r.jb(16777216,null,null,1,null,Ns)),r.tb(8,278528,null,0,ne,[r.P,r.M,r.t],{ngForOf:[0,"ngForOf"]},null),(e()(),r.Ob(-1,null,["\n "])),(e()(),r.Ob(-1,null,["\n "])),(e()(),r.Ob(-1,null,["\n "])),(e()(),r.ub(12,0,null,null,8,"div",[["class","copy-container-wrapper"]],null,null,null,null,null)),(e()(),r.Ob(-1,null,["\n "])),(e()(),r.ub(14,0,null,null,5,"div",[["class","copy-container"]],null,null,null,null,null)),(e()(),r.Ob(-1,null,["\n "])),(e()(),r.ub(16,0,null,null,2,"span",[["class","fa fa-2x fa-copy"],["data-placement","top"],["data-toggle","tooltip"],["ngxClipboard",""],["title","Copy to clipboard"]],[[1,"data-placement",0]],[[null,"click"]],function(e,t,n){var i=!0;return"click"===t&&(i=!1!==r.Gb(e,17).onClick(n.target)&&i),i},null,null)),r.tb(17,212992,null,0,ps,[cs],{targetElm:[0,"targetElm"],cbContent:[1,"cbContent"]},null),r.tb(18,1589248,null,0,hs,[r.k,On],{title:[0,"title"]},null),(e()(),r.Ob(-1,null,["\n "])),(e()(),r.Ob(-1,null,["\n "])),(e()(),r.Ob(-1,null,["\n"])),(e()(),r.Ob(-1,null,["\n"]))],function(e,t){var n=t.component;e(t,8,0,n.logs),e(t,17,0,"",n.getClipboardContent()),e(t,18,0,"Copy to clipboard")},function(e,t){e(t,16,0,r.Gb(t,18).placement)})}var Us=function(){function e(e){this.store=e}return e.prototype.ngOnInit=function(){this.flashFirmwareButtonDisbabled$=this.store.select(ga),this.updatingFirmware$=this.store.select(ba),this.xtermLog$=this.store.select(ma)},e.prototype.onRecoveryDevice=function(){this.store.dispatch(new I)},e.prototype.onClose=function(){this.store.dispatch(new R)},e}(),Fs=r.sb({encapsulation:0,styles:[["[_nghost-%COMP%]{overflow-y:auto;display:block;height:100%;width:100%}[_nghost-%COMP%] p[_ngcontent-%COMP%]{margin:1.5rem 0}"]],data:{}});function Ks(e){return r.Qb(2,[(e()(),r.ub(0,0,null,null,39,"div",[["class","full-height"]],null,null,null,null,null)),(e()(),r.Ob(-1,null,["\n "])),(e()(),r.ub(2,0,null,null,36,"div",[["class","flex-container"]],null,null,null,null,null)),(e()(),r.Ob(-1,null,["\n "])),(e()(),r.ub(4,0,null,null,23,"div",[],null,null,null,null,null)),(e()(),r.Ob(-1,null,["\n\n "])),(e()(),r.ub(6,0,null,null,6,"h1",[],null,null,null,null,null)),(e()(),r.Ob(-1,null,["\n "])),(e()(),r.ub(8,0,null,null,0,"i",[["class","fa fa-wrench"]],null,null,null,null,null)),(e()(),r.Ob(-1,null,["\n "])),(e()(),r.ub(10,0,null,null,1,"span",[],null,null,null,null,null)),(e()(),r.Ob(-1,null,["Fix device"])),(e()(),r.Ob(-1,null,["\n "])),(e()(),r.Ob(-1,null,["\n "])),(e()(),r.ub(14,0,null,null,1,"p",[],null,null,null,null,null)),(e()(),r.Ob(-1,null,["\n Your device seems to be broken. No worries, Agent can fix it.\n "])),(e()(),r.Ob(-1,null,["\n "])),(e()(),r.ub(17,0,null,null,9,"p",[],null,null,null,null,null)),(e()(),r.Ob(-1,null,["\n "])),(e()(),r.ub(19,0,null,null,2,"button",[["class","btn btn-primary"],["type","button"]],[[8,"disabled",0]],[[null,"click"]],function(e,t,n){var r=!0;return"click"===t&&(r=!1!==e.component.onRecoveryDevice()&&r),r},null,null)),r.Ib(131072,ye,[r.h]),(e()(),r.Ob(-1,null,["Fix device\n "])),(e()(),r.Ob(-1,null,["\n "])),(e()(),r.ub(23,0,null,null,2,"button",[["class","btn btn-default"],["type","button"]],[[8,"disabled",0]],[[null,"click"]],function(e,t,n){var r=!0;return"click"===t&&(r=!1!==e.component.onClose()&&r),r},null,null)),r.Ib(131072,ye,[r.h]),(e()(),r.Ob(-1,null,["Close\n "])),(e()(),r.Ob(-1,null,["\n "])),(e()(),r.Ob(-1,null,["\n "])),(e()(),r.Ob(-1,null,["\n "])),(e()(),r.ub(29,0,null,null,5,"div",[["class","flex-grow"]],null,null,null,null,null)),(e()(),r.Ob(-1,null,["\n "])),(e()(),r.ub(31,0,null,null,2,"xterm",[],null,null,null,Ds,Ls)),r.tb(32,573440,null,0,Rs,[],{logs:[0,"logs"]},null),r.Ib(131072,ye,[r.h]),(e()(),r.Ob(-1,null,["\n "])),(e()(),r.Ob(-1,null,["\n "])),(e()(),r.ub(36,0,null,null,1,"div",[["class","flex-footer"]],null,null,null,null,null)),(e()(),r.Ob(-1,null,["\n "])),(e()(),r.Ob(-1,null,["\n "])),(e()(),r.Ob(-1,null,["\n"])),(e()(),r.Ob(-1,null,["\n"]))],function(e,t){var n=t.component;e(t,32,0,r.Pb(t,32,0,r.Gb(t,33).transform(n.xtermLog$)))},function(e,t){var n=t.component;e(t,19,0,r.Pb(t,19,0,r.Gb(t,20).transform(n.flashFirmwareButtonDisbabled$))),e(t,23,0,r.Pb(t,23,0,r.Gb(t,24).transform(n.updatingFirmware$)))})}function Bs(e){return r.Qb(0,[(e()(),r.ub(0,0,null,null,1,"device-recovery-mode",[["class","container-fluid"]],null,null,null,Ks,Fs)),r.tb(1,114688,null,0,Us,[L.m],null,null)],function(e,t){e(t,1,0)},null)}var Vs=r.qb("device-recovery-mode",Us,Bs,{},{},[]),Gs=function(){function e(){}return e.prototype.onActivate=function(e,t){t.scrollIntoView()},e}(),Hs=r.sb({encapsulation:0,styles:["[_nghost-%COMP%]{height:100%; width:100%}"],data:{}});function $s(e){return r.Qb(0,[(e()(),r.ub(0,0,null,null,4,"div",[["class","split split-horizontal main-page-content"]],null,null,null,null,null)),(e()(),r.Ob(-1,null,["\n "])),(e()(),r.ub(2,16777216,[["outlet",1]],null,1,"router-outlet",[],null,[[null,"activate"]],function(e,t,n){var i=!0;return"activate"===t&&(i=!1!==e.component.onActivate(n,r.Gb(e,2))&&i),i},null,null)),r.tb(3,212992,null,0,lo,[oo,r.P,r.j,[8,null],r.h],null,{activateEvents:"activate"}),(e()(),r.Ob(-1,null,["\n"])),(e()(),r.Ob(-1,null,["\n"]))],function(e,t){e(t,3,0)},null)}function zs(e){return r.Qb(0,[(e()(),r.ub(0,0,null,null,1,"main-page",[],null,null,null,$s,Hs)),r.tb(1,49152,null,0,Gs,[],null,null)],null,null)}var Qs=r.qb("main-page",Gs,zs,{},{},[]),Ws=function(){function e(){this.label="Select file",this.fileChanged=new r.m}return e.prototype.changeFile=function(e){var t=e.srcElement.files;if(0!==t.length){var n=new FileReader;n.onloadend=(function(){var t=new Uint8Array(n.result);(e.target||e.srcElement||e.currentTarget).value=null,this.fileChanged.emit({filename:e.srcElement.value,data:Array.from(t)})}).bind(this),n.readAsArrayBuffer(t[0])}},e}(),qs=r.sb({encapsulation:2,styles:[],data:{}});function Js(e){return r.Qb(2,[(e()(),r.ub(0,0,null,null,3,"label",[["class","btn btn-primary btn-file"]],[[2,"disabled",null]],null,null,null,null)),(e()(),r.Ob(1,null,["\n ","\n "])),(e()(),r.ub(2,0,[["inputControl",1]],null,0,"input",[["type","file"]],[[8,"accept",0],[8,"disabled",0]],[[null,"change"]],function(e,t,n){var r=!0;return"change"===t&&(r=!1!==e.component.changeFile(n)&&r),r},null,null)),(e()(),r.Ob(-1,null,["\n"])),(e()(),r.Ob(-1,null,["\n"]))],null,function(e,t){var n=t.component;e(t,0,0,n.disabled),e(t,1,0,n.label),e(t,2,0,n.accept,n.disabled)})}var Ys=function(){function e(e){this.store=e}return e.prototype.resetUserConfiguration=function(){this.store.dispatch(new k)},e.prototype.saveConfigurationInJSONFormat=function(){this.store.dispatch(new kl)},e.prototype.saveConfigurationInBINFormat=function(){this.store.dispatch(new _l)},e.prototype.exportUserConfiguration=function(e){e.shiftKey?this.saveConfigurationInBINFormat():this.saveConfigurationInJSONFormat()},e.prototype.changeFile=function(e){this.store.dispatch(new Cl(e))},e}(),Zs=r.sb({encapsulation:0,styles:[["[_nghost-%COMP%]{overflow-y:auto;display:block;height:100%;width:100%}[_nghost-%COMP%] p[_ngcontent-%COMP%]{margin:1.5rem 0}"]],data:{}});function Xs(e){return r.Qb(0,[(e()(),r.ub(0,0,null,null,6,"h1",[],null,null,null,null,null)),(e()(),r.Ob(-1,null,["\n "])),(e()(),r.ub(2,0,null,null,0,"i",[["class","fa fa-sliders"]],null,null,null,null,null)),(e()(),r.Ob(-1,null,["\n "])),(e()(),r.ub(4,0,null,null,1,"span",[],null,null,null,null,null)),(e()(),r.Ob(-1,null,["Device configuration"])),(e()(),r.Ob(-1,null,["\n"])),(e()(),r.Ob(-1,null,["\n\n"])),(e()(),r.ub(8,0,null,null,1,"p",[],null,null,null,null,null)),(e()(),r.Ob(-1,null,["\n The device configuration contains all the keymaps, macros, and settings that are stored on the device.\n"])),(e()(),r.Ob(-1,null,["\n\n"])),(e()(),r.ub(11,0,null,null,21,"ul",[["class","list-unstyled btn-list"]],null,null,null,null,null)),(e()(),r.Ob(-1,null,["\n "])),(e()(),r.ub(13,0,null,null,4,"li",[],null,null,null,null,null)),(e()(),r.Ob(-1,null,["\n "])),(e()(),r.ub(15,0,null,null,1,"button",[["class","btn btn-primary"]],null,[[null,"click"]],function(e,t,n){var r=!0;return"click"===t&&(r=!1!==e.component.exportUserConfiguration(n)&&r),r},null,null)),(e()(),r.Ob(-1,null,["Export device configuration\n "])),(e()(),r.Ob(-1,null,["\n "])),(e()(),r.Ob(-1,null,["\n "])),(e()(),r.ub(19,0,null,null,5,"li",[],null,null,null,null,null)),(e()(),r.Ob(-1,null,["\n "])),(e()(),r.ub(21,0,null,null,2,"file-upload",[["label","Import device configuration"]],null,[[null,"fileChanged"]],function(e,t,n){var r=!0;return"fileChanged"===t&&(r=!1!==e.component.changeFile(n)&&r),r},Js,qs)),r.tb(22,49152,null,0,Ws,[],{label:[0,"label"]},{fileChanged:"fileChanged"}),(e()(),r.Ob(-1,null,["\n "])),(e()(),r.Ob(-1,null,["\n "])),(e()(),r.Ob(-1,null,["\n "])),(e()(),r.ub(26,0,null,null,5,"li",[],null,null,null,null,null)),(e()(),r.Ob(-1,null,["\n "])),(e()(),r.ub(28,16777216,null,null,2,"button",[["cancelText","No"],["class","btn btn-danger"],["confirmText","Yes"],["mwlConfirmationPopover",""],["placement","bottom"],["popoverTitle","Are you sure?"]],null,[[null,"confirm"],[null,"click"]],function(e,t,n){var i=!0,o=e.component;return"click"===t&&(i=!1!==r.Gb(e,29).togglePopover()&&i),"confirm"===t&&(i=!1!==o.resetUserConfiguration()&&i),i},null,null)),r.tb(29,737280,null,0,Va,[r.P,r.k,Fa,r.j,Ua,r.E],{popoverTitle:[0,"popoverTitle"],confirmText:[1,"confirmText"],cancelText:[2,"cancelText"],placement:[3,"placement"]},{confirm:"confirm"}),(e()(),r.Ob(-1,null,["Reset device configuration\n "])),(e()(),r.Ob(-1,null,["\n "])),(e()(),r.Ob(-1,null,["\n"])),(e()(),r.Ob(-1,null,["\n"]))],function(e,t){e(t,22,0,"Import device configuration"),e(t,29,0,"Are you sure?","Yes","No","bottom")},null)}function ec(e){return r.Qb(0,[(e()(),r.ub(0,0,null,null,1,"device-settings",[["class","container-fluid"]],null,null,null,Xs,Zs)),r.tb(1,49152,null,0,Ys,[L.m],null,null)],null,null)}var tc=r.qb("device-settings",Ys,ec,{},{},[]),nc=function(){function e(){}return e.prototype.ngOnInit=function(){},e}(),rc=r.sb({encapsulation:0,styles:[["[_nghost-%COMP%]{display:flex;align-items:center}.action--edit[_ngcontent-%COMP%]:hover{color:#337ab7;cursor:pointer}.action--trash[_ngcontent-%COMP%]:hover{color:#d9534f;cursor:pointer}"]],data:{}});function ic(e){return r.Qb(0,[(e()(),r.ub(0,0,null,null,0,"span",[["aria-hidden","true"],["class","glyphicon glyphicon-option-vertical"]],null,null,null,null,null))],null,null)}function oc(e){return r.Qb(0,[(e()(),r.ub(0,0,null,null,0,"i",[["class","fa fa-square"]],null,null,null,null,null))],null,null)}function lc(e){return r.Qb(0,[(e()(),r.ub(0,0,null,null,0,"i",[["class","fa fa-hand-pointer-o"]],null,null,null,null,null))],null,null)}function uc(e){return r.Qb(0,[(e()(),r.ub(0,0,null,null,0,"i",[["class","fa fa-hand-rock-o"]],null,null,null,null,null))],null,null)}function ac(e){return r.Qb(0,[(e()(),r.ub(0,0,null,null,0,"i",[["class","fa fa-hand-paper-o"]],null,null,null,null,null))],null,null)}function sc(e){return r.Qb(0,[(e()(),r.ub(0,0,null,null,0,"i",[["class","fa fa-mouse-pointer"]],null,null,null,null,null))],null,null)}function cc(e){return r.Qb(0,[(e()(),r.ub(0,0,null,null,0,"i",[["class","fa fa-clock-o"]],null,null,null,null,null))],null,null)}function pc(e){return r.Qb(0,[(e()(),r.ub(0,0,null,null,0,"i",[["class","fa fa-font"]],null,null,null,null,null))],null,null)}function fc(e){return r.Qb(0,[(e()(),r.ub(0,0,null,null,0,"i",[["class","glyphicon glyphicon-trash action--trash"]],null,null,null,null,null))],null,null)}function dc(e){return r.Qb(0,[(e()(),r.ub(0,0,null,null,0,"i",[["class","glyphicon glyphicon-pencil action--edit"]],null,null,null,null,null))],null,null)}function hc(e){return r.Qb(0,[(e()(),r.ub(0,0,null,null,0,"i",[["class","fa fa-question-circle"]],null,null,null,null,null))],null,null)}function yc(e){return r.Qb(2,[(e()(),r.ub(0,0,null,null,35,"div",[],null,null,null,null,null)),r.tb(1,16384,null,0,ae,[],{ngSwitch:[0,"ngSwitch"]},null),(e()(),r.Ob(-1,null,["\n "])),(e()(),r.jb(16777216,null,null,1,null,ic)),r.tb(4,278528,null,0,se,[r.P,r.M,ae],{ngSwitchCase:[0,"ngSwitchCase"]},null),(e()(),r.Ob(-1,null,["\n "])),(e()(),r.jb(16777216,null,null,1,null,oc)),r.tb(7,278528,null,0,se,[r.P,r.M,ae],{ngSwitchCase:[0,"ngSwitchCase"]},null),(e()(),r.Ob(-1,null,["\n "])),(e()(),r.jb(16777216,null,null,1,null,lc)),r.tb(10,278528,null,0,se,[r.P,r.M,ae],{ngSwitchCase:[0,"ngSwitchCase"]},null),(e()(),r.Ob(-1,null,["\n "])),(e()(),r.jb(16777216,null,null,1,null,uc)),r.tb(13,278528,null,0,se,[r.P,r.M,ae],{ngSwitchCase:[0,"ngSwitchCase"]},null),(e()(),r.Ob(-1,null,["\n "])),(e()(),r.jb(16777216,null,null,1,null,ac)),r.tb(16,278528,null,0,se,[r.P,r.M,ae],{ngSwitchCase:[0,"ngSwitchCase"]},null),(e()(),r.Ob(-1,null,["\n "])),(e()(),r.jb(16777216,null,null,1,null,sc)),r.tb(19,278528,null,0,se,[r.P,r.M,ae],{ngSwitchCase:[0,"ngSwitchCase"]},null),(e()(),r.Ob(-1,null,["\n "])),(e()(),r.jb(16777216,null,null,1,null,cc)),r.tb(22,278528,null,0,se,[r.P,r.M,ae],{ngSwitchCase:[0,"ngSwitchCase"]},null),(e()(),r.Ob(-1,null,["\n "])),(e()(),r.jb(16777216,null,null,1,null,pc)),r.tb(25,278528,null,0,se,[r.P,r.M,ae],{ngSwitchCase:[0,"ngSwitchCase"]},null),(e()(),r.Ob(-1,null,["\n "])),(e()(),r.jb(16777216,null,null,1,null,fc)),r.tb(28,278528,null,0,se,[r.P,r.M,ae],{ngSwitchCase:[0,"ngSwitchCase"]},null),(e()(),r.Ob(-1,null,["\n "])),(e()(),r.jb(16777216,null,null,1,null,dc)),r.tb(31,278528,null,0,se,[r.P,r.M,ae],{ngSwitchCase:[0,"ngSwitchCase"]},null),(e()(),r.Ob(-1,null,["\n "])),(e()(),r.jb(16777216,null,null,1,null,hc)),r.tb(34,278528,null,0,se,[r.P,r.M,ae],{ngSwitchCase:[0,"ngSwitchCase"]},null),(e()(),r.Ob(-1,null,["\n"]))],function(e,t){e(t,1,0,t.component.name),e(t,4,0,"option-vertical"),e(t,7,0,"square"),e(t,10,0,"hand-pointer"),e(t,13,0,"hand-rock"),e(t,16,0,"hand-paper"),e(t,19,0,"mouse-pointer"),e(t,22,0,"clock"),e(t,25,0,"font"),e(t,28,0,"trash"),e(t,31,0,"pencil"),e(t,34,0,"question-circle")},null)}var bc=n("6foH"),mc=function(){function e(){}return e.prototype.to=function(e){return String(parseFloat(parseFloat(String(e)).toFixed(2)))},e.prototype.from=function(e){return parseFloat(e)},e}(),gc=function(){function e(e,t){var n=this;this.el=e,this.renderer=t,this.config={},this.change=new r.m(!0),this.update=new r.m(!0),this.slide=new r.m(!0),this.set=new r.m(!0),this.start=new r.m(!0),this.end=new r.m(!0),this.onChange=Function.prototype,this.onTouched=Function.prototype,this.eventHandler=function(e,t,r,i){var o=n.toValues(t),l=!1;void 0!==n.value?(Array.isArray(o)&&n.value[r]!=o[r]&&(l=!0),Array.isArray(o)||n.value==o||(l=!0),l&&(e.emit(o),n.onChange(o)),Array.isArray(o)?n.value[r]=o[r]:n.value=o):n.value=o},this.defaultKeyHandler=function(e){var t,r,i=n.slider.steps(),o=parseInt(e.target.getAttribute("data-handle")),l=1,u=1,a=0;switch(e.which){case 34:u=n.config.pageSteps;case 40:case 37:l=-1,a=i[o][0],e.preventDefault();break;case 33:u=n.config.pageSteps;case 38:case 39:a=i[o][1],e.preventDefault()}t=l*u*a,Array.isArray(n.value)?(r=[].concat(n.value))[o]=r[o]+t:r=n.value+t,n.slider.set(r)}}return e.prototype.ngOnInit=function(){var e=this,t=JSON.parse(JSON.stringify({behaviour:this.behaviour,connect:this.connect,limit:this.limit,start:void 0!==this.formControl?this.formControl.value:this.ngModel,step:this.step,pageSteps:this.pageSteps,keyboard:this.keyboard,onKeydown:this.onKeydown,range:this.range||this.config.range||{min:this.min,max:this.max},tooltips:this.tooltips,snap:this.snap,animate:this.animate}));if(t.tooltips=this.tooltips||this.config.tooltips,t.format=this.format||this.config.format||new mc,this.slider=Object(bc.create)(this.el.nativeElement.querySelector("div"),Object.assign(this.config,t)),this.handles=[].slice.call(this.el.nativeElement.querySelectorAll(".noUi-handle")),this.config.keyboard){void 0===this.config.pageSteps&&(this.config.pageSteps=10);for(var n=function(e){e.setAttribute("tabindex",0),e.addEventListener("click",function(){e.focus()}),e.addEventListener("keydown",void 0===r.config.onKeydown?r.defaultKeyHandler:r.config.onKeydown)},r=this,i=0,o=this.handles;ie?{max:{max:e,actual:t.value}}:null}},e.required=function(e){return jc(e.value)?{required:!0}:null},e.requiredTrue=function(e){return!0===e.value?null:{required:!0}},e.email=function(e){return jc(e.value)?null:Lc.test(e.value)?null:{email:!0}},e.minLength=function(e){return function(t){if(jc(t.value))return null;var n=t.value?t.value.length:0;return ne?{maxlength:{requiredLength:e,actualLength:n}}:null}},e.pattern=function(t){return t?("string"==typeof t?(r="","^"!==t.charAt(0)&&(r+="^"),r+=t,"$"!==t.charAt(t.length-1)&&(r+="$"),n=new RegExp(r)):(r=t.toString(),n=t),function(e){if(jc(e.value))return null;var t=e.value;return n.test(t)?null:{pattern:{requiredPattern:r,actualValue:t}}}):e.nullValidator;var n,r},e.nullValidator=function(e){return null},e.compose=function(e){if(!e)return null;var t=e.filter(Dc);return 0==t.length?null:function(e){return Fc(function(e,n){return t.map(function(t){return t(e)})}(e))}},e.composeAsync=function(e){if(!e)return null;var t=e.filter(Dc);return 0==t.length?null:function(e){return function(){for(var e=[],t=0;t=0;--t)if(this._accessors[t][1]===e)return void this._accessors.splice(t,1)},e.prototype.select=function(e){var t=this;this._accessors.forEach(function(n){t._isSameGroup(n,e)&&n[1]!==e&&n[1].fireUncheck(e.value)})},e.prototype._isSameGroup=function(e,t){return!!e[0].control&&e[0]._parent===t._control._parent&&e[1].name===t.name},e}(),Hc=function(){function e(e,t,n,r){this._renderer=e,this._elementRef=t,this._registry=n,this._injector=r,this.onChange=function(){},this.onTouched=function(){}}return e.prototype.ngOnInit=function(){this._control=this._injector.get(Mc),this._checkName(),this._registry.add(this._control,this)},e.prototype.ngOnDestroy=function(){this._registry.remove(this)},e.prototype.writeValue=function(e){this._state=e===this.value,this._renderer.setProperty(this._elementRef.nativeElement,"checked",this._state)},e.prototype.registerOnChange=function(e){var t=this;this._fn=e,this.onChange=function(){e(t.value),t._registry.select(t)}},e.prototype.fireUncheck=function(e){this.writeValue(e)},e.prototype.registerOnTouched=function(e){this.onTouched=e},e.prototype.setDisabledState=function(e){this._renderer.setProperty(this._elementRef.nativeElement,"disabled",e)},e.prototype._checkName=function(){this.name&&this.formControlName&&this.name!==this.formControlName&&this._throwNameError(),!this.name&&this.formControlName&&(this.name=this.formControlName)},e.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 ')},e}(),$c=function(){function e(e,t){this._renderer=e,this._elementRef=t,this.onChange=function(e){},this.onTouched=function(){}}return e.prototype.writeValue=function(e){this._renderer.setProperty(this._elementRef.nativeElement,"value",parseFloat(e))},e.prototype.registerOnChange=function(e){this.onChange=function(t){e(""==t?null:parseFloat(t))}},e.prototype.registerOnTouched=function(e){this.onTouched=e},e.prototype.setDisabledState=function(e){this._renderer.setProperty(this._elementRef.nativeElement,"disabled",e)},e}(),zc='\n
\n
\n \n
\n
\n\n In your class:\n\n this.myGroup = new FormGroup({\n person: new FormGroup({ firstName: new FormControl() })\n });',Qc='\n
\n
\n \n
\n
';function Wc(e,t){return null==e?""+t:(t&&"object"==typeof t&&(t="Object"),(e+": "+t).slice(0,50))}var qc=function(){function e(e,t){this._renderer=e,this._elementRef=t,this._optionMap=new Map,this._idCounter=0,this.onChange=function(e){},this.onTouched=function(){},this._compareWith=r.Cb}return Object.defineProperty(e.prototype,"compareWith",{set:function(e){if("function"!=typeof e)throw new Error("compareWith must be a function, but received "+JSON.stringify(e));this._compareWith=e},enumerable:!0,configurable:!0}),e.prototype.writeValue=function(e){this.value=e;var t=this._getOptionId(e);null==t&&this._renderer.setProperty(this._elementRef.nativeElement,"selectedIndex",-1);var n=Wc(t,e);this._renderer.setProperty(this._elementRef.nativeElement,"value",n)},e.prototype.registerOnChange=function(e){var t=this;this.onChange=function(n){t.value=t._getOptionValue(n),e(t.value)}},e.prototype.registerOnTouched=function(e){this.onTouched=e},e.prototype.setDisabledState=function(e){this._renderer.setProperty(this._elementRef.nativeElement,"disabled",e)},e.prototype._registerOption=function(){return(this._idCounter++).toString()},e.prototype._getOptionId=function(e){var t,n;try{for(var r=Object(N.h)(Array.from(this._optionMap.keys())),i=r.next();!i.done;i=r.next()){var o=i.value;if(this._compareWith(this._optionMap.get(o),e))return o}}catch(l){t={error:l}}finally{try{i&&!i.done&&(n=r.return)&&n.call(r)}finally{if(t)throw t.error}}return null},e.prototype._getOptionValue=function(e){var t=function(e){return e.split(":")[0]}(e);return this._optionMap.has(t)?this._optionMap.get(t):e},e}(),Jc=function(){function e(e,t,n){this._element=e,this._renderer=t,this._select=n,this._select&&(this.id=this._select._registerOption())}return Object.defineProperty(e.prototype,"ngValue",{set:function(e){null!=this._select&&(this._select._optionMap.set(this.id,e),this._setElementValue(Wc(this.id,e)),this._select.writeValue(this._select.value))},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"value",{set:function(e){this._setElementValue(e),this._select&&this._select.writeValue(this._select.value)},enumerable:!0,configurable:!0}),e.prototype._setElementValue=function(e){this._renderer.setProperty(this._element.nativeElement,"value",e)},e.prototype.ngOnDestroy=function(){this._select&&(this._select._optionMap.delete(this.id),this._select.writeValue(this._select.value))},e}();function Yc(e,t){return null==e?""+t:("string"==typeof t&&(t="'"+t+"'"),t&&"object"==typeof t&&(t="Object"),(e+": "+t).slice(0,50))}var Zc=function(){function e(e,t){this._renderer=e,this._elementRef=t,this._optionMap=new Map,this._idCounter=0,this.onChange=function(e){},this.onTouched=function(){},this._compareWith=r.Cb}return Object.defineProperty(e.prototype,"compareWith",{set:function(e){if("function"!=typeof e)throw new Error("compareWith must be a function, but received "+JSON.stringify(e));this._compareWith=e},enumerable:!0,configurable:!0}),e.prototype.writeValue=function(e){var t,n=this;if(this.value=e,Array.isArray(e)){var r=e.map(function(e){return n._getOptionId(e)});t=function(e,t){e._setSelected(r.indexOf(t.toString())>-1)}}else t=function(e,t){e._setSelected(!1)};this._optionMap.forEach(t)},e.prototype.registerOnChange=function(e){var t=this;this.onChange=function(n){var r=[];if(n.hasOwnProperty("selectedOptions"))for(var i=n.selectedOptions,o=0;o1?"path: '"+e.path.join(" -> ")+"'":e.path[0]?"name: '"+e.path+"'":"unspecified name attribute",new Error(t+" "+n)}function ip(e){return null!=e?Nc.compose(e.map(Kc)):null}function op(e){return null!=e?Nc.composeAsync(e.map(Bc)):null}var lp=[Oc,$c,Vc,qc,Zc,Hc];function up(e){var t=sp(e)?e.validators:e;return Array.isArray(t)?ip(t):t||null}function ap(e,t){var n=sp(t)?t.asyncValidators:e;return Array.isArray(n)?op(n):n||null}function sp(e){return null!=e&&!Array.isArray(e)&&"object"==typeof e}var cp=function(){function e(e,t){this.validator=e,this.asyncValidator=t,this._onCollectionChange=function(){},this.pristine=!0,this.touched=!1,this._onDisabledChange=[]}return Object.defineProperty(e.prototype,"parent",{get:function(){return this._parent},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"valid",{get:function(){return"VALID"===this.status},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"invalid",{get:function(){return"INVALID"===this.status},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"pending",{get:function(){return"PENDING"==this.status},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"disabled",{get:function(){return"DISABLED"===this.status},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"enabled",{get:function(){return"DISABLED"!==this.status},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"dirty",{get:function(){return!this.pristine},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"untouched",{get:function(){return!this.touched},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"updateOn",{get:function(){return this._updateOn?this._updateOn:this.parent?this.parent.updateOn:"change"},enumerable:!0,configurable:!0}),e.prototype.setValidators=function(e){this.validator=up(e)},e.prototype.setAsyncValidators=function(e){this.asyncValidator=ap(e)},e.prototype.clearValidators=function(){this.validator=null},e.prototype.clearAsyncValidators=function(){this.asyncValidator=null},e.prototype.markAsTouched=function(e){void 0===e&&(e={}),this.touched=!0,this._parent&&!e.onlySelf&&this._parent.markAsTouched(e)},e.prototype.markAllAsTouched=function(){this.markAsTouched({onlySelf:!0}),this._forEachChild(function(e){return e.markAllAsTouched()})},e.prototype.markAsUntouched=function(e){void 0===e&&(e={}),this.touched=!1,this._pendingTouched=!1,this._forEachChild(function(e){e.markAsUntouched({onlySelf:!0})}),this._parent&&!e.onlySelf&&this._parent._updateTouched(e)},e.prototype.markAsDirty=function(e){void 0===e&&(e={}),this.pristine=!1,this._parent&&!e.onlySelf&&this._parent.markAsDirty(e)},e.prototype.markAsPristine=function(e){void 0===e&&(e={}),this.pristine=!0,this._pendingDirty=!1,this._forEachChild(function(e){e.markAsPristine({onlySelf:!0})}),this._parent&&!e.onlySelf&&this._parent._updatePristine(e)},e.prototype.markAsPending=function(e){void 0===e&&(e={}),this.status="PENDING",!1!==e.emitEvent&&this.statusChanges.emit(this.status),this._parent&&!e.onlySelf&&this._parent.markAsPending(e)},e.prototype.disable=function(e){void 0===e&&(e={});var t=this._parentMarkedDirty(e.onlySelf);this.status="DISABLED",this.errors=null,this._forEachChild(function(t){t.disable(Object(N.a)({},e,{onlySelf:!0}))}),this._updateValue(),!1!==e.emitEvent&&(this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._updateAncestors(Object(N.a)({},e,{skipPristineCheck:t})),this._onDisabledChange.forEach(function(e){return e(!0)})},e.prototype.enable=function(e){void 0===e&&(e={});var t=this._parentMarkedDirty(e.onlySelf);this.status="VALID",this._forEachChild(function(t){t.enable(Object(N.a)({},e,{onlySelf:!0}))}),this.updateValueAndValidity({onlySelf:!0,emitEvent:e.emitEvent}),this._updateAncestors(Object(N.a)({},e,{skipPristineCheck:t})),this._onDisabledChange.forEach(function(e){return e(!1)})},e.prototype._updateAncestors=function(e){this._parent&&!e.onlySelf&&(this._parent.updateValueAndValidity(e),e.skipPristineCheck||this._parent._updatePristine(),this._parent._updateTouched())},e.prototype.setParent=function(e){this._parent=e},e.prototype.updateValueAndValidity=function(e){void 0===e&&(e={}),this._setInitialStatus(),this._updateValue(),this.enabled&&(this._cancelExistingSubscription(),this.errors=this._runValidator(),this.status=this._calculateStatus(),"VALID"!==this.status&&"PENDING"!==this.status||this._runAsyncValidator(e.emitEvent)),!1!==e.emitEvent&&(this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._parent&&!e.onlySelf&&this._parent.updateValueAndValidity(e)},e.prototype._updateTreeValidity=function(e){void 0===e&&(e={emitEvent:!0}),this._forEachChild(function(t){return t._updateTreeValidity(e)}),this.updateValueAndValidity({onlySelf:!0,emitEvent:e.emitEvent})},e.prototype._setInitialStatus=function(){this.status=this._allControlsDisabled()?"DISABLED":"VALID"},e.prototype._runValidator=function(){return this.validator?this.validator(this):null},e.prototype._runAsyncValidator=function(e){var t=this;if(this.asyncValidator){this.status="PENDING";var n=Uc(this.asyncValidator(this));this._asyncValidationSubscription=n.subscribe(function(n){return t.setErrors(n,{emitEvent:e})})}},e.prototype._cancelExistingSubscription=function(){this._asyncValidationSubscription&&this._asyncValidationSubscription.unsubscribe()},e.prototype.setErrors=function(e,t){void 0===t&&(t={}),this.errors=e,this._updateControlsErrors(!1!==t.emitEvent)},e.prototype.get=function(e){return function(e,t,n){return null==t?null:(t instanceof Array||(t=t.split(".")),t instanceof Array&&0===t.length?null:t.reduce(function(e,t){return e instanceof fp?e.controls.hasOwnProperty(t)?e.controls[t]:null:e instanceof dp&&e.at(t)||null},e))}(this,e)},e.prototype.getError=function(e,t){var n=t?this.get(t):this;return n&&n.errors?n.errors[e]:null},e.prototype.hasError=function(e,t){return!!this.getError(e,t)},Object.defineProperty(e.prototype,"root",{get:function(){for(var e=this;e._parent;)e=e._parent;return e},enumerable:!0,configurable:!0}),e.prototype._updateControlsErrors=function(e){this.status=this._calculateStatus(),e&&this.statusChanges.emit(this.status),this._parent&&this._parent._updateControlsErrors(e)},e.prototype._initObservables=function(){this.valueChanges=new r.m,this.statusChanges=new r.m},e.prototype._calculateStatus=function(){return this._allControlsDisabled()?"DISABLED":this.errors?"INVALID":this._anyControlsHaveStatus("PENDING")?"PENDING":this._anyControlsHaveStatus("INVALID")?"INVALID":"VALID"},e.prototype._anyControlsHaveStatus=function(e){return this._anyControls(function(t){return t.status===e})},e.prototype._anyControlsDirty=function(){return this._anyControls(function(e){return e.dirty})},e.prototype._anyControlsTouched=function(){return this._anyControls(function(e){return e.touched})},e.prototype._updatePristine=function(e){void 0===e&&(e={}),this.pristine=!this._anyControlsDirty(),this._parent&&!e.onlySelf&&this._parent._updatePristine(e)},e.prototype._updateTouched=function(e){void 0===e&&(e={}),this.touched=this._anyControlsTouched(),this._parent&&!e.onlySelf&&this._parent._updateTouched(e)},e.prototype._isBoxedValue=function(e){return"object"==typeof e&&null!==e&&2===Object.keys(e).length&&"value"in e&&"disabled"in e},e.prototype._registerOnCollectionChange=function(e){this._onCollectionChange=e},e.prototype._setUpdateStrategy=function(e){sp(e)&&null!=e.updateOn&&(this._updateOn=e.updateOn)},e.prototype._parentMarkedDirty=function(e){return!e&&this._parent&&this._parent.dirty&&!this._parent._anyControlsDirty()},e}(),pp=function(e){function t(t,n,r){void 0===t&&(t=null);var i=e.call(this,up(n),ap(r,n))||this;return i._onChange=[],i._applyFormState(t),i._setUpdateStrategy(n),i.updateValueAndValidity({onlySelf:!0,emitEvent:!1}),i._initObservables(),i}return Object(N.c)(t,e),t.prototype.setValue=function(e,t){var n=this;void 0===t&&(t={}),this.value=this._pendingValue=e,this._onChange.length&&!1!==t.emitModelToViewChange&&this._onChange.forEach(function(e){return e(n.value,!1!==t.emitViewToModelChange)}),this.updateValueAndValidity(t)},t.prototype.patchValue=function(e,t){void 0===t&&(t={}),this.setValue(e,t)},t.prototype.reset=function(e,t){void 0===e&&(e=null),void 0===t&&(t={}),this._applyFormState(e),this.markAsPristine(t),this.markAsUntouched(t),this.setValue(this.value,t),this._pendingChange=!1},t.prototype._updateValue=function(){},t.prototype._anyControls=function(e){return!1},t.prototype._allControlsDisabled=function(){return this.disabled},t.prototype.registerOnChange=function(e){this._onChange.push(e)},t.prototype._clearChangeFns=function(){this._onChange=[],this._onDisabledChange=[],this._onCollectionChange=function(){}},t.prototype.registerOnDisabledChange=function(e){this._onDisabledChange.push(e)},t.prototype._forEachChild=function(e){},t.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))},t.prototype._applyFormState=function(e){this._isBoxedValue(e)?(this.value=this._pendingValue=e.value,e.disabled?this.disable({onlySelf:!0,emitEvent:!1}):this.enable({onlySelf:!0,emitEvent:!1})):this.value=this._pendingValue=e},t}(cp),fp=function(e){function t(t,n,r){var i=e.call(this,up(n),ap(r,n))||this;return i.controls=t,i._initObservables(),i._setUpdateStrategy(n),i._setUpControls(),i.updateValueAndValidity({onlySelf:!0,emitEvent:!1}),i}return Object(N.c)(t,e),t.prototype.registerControl=function(e,t){return this.controls[e]?this.controls[e]:(this.controls[e]=t,t.setParent(this),t._registerOnCollectionChange(this._onCollectionChange),t)},t.prototype.addControl=function(e,t){this.registerControl(e,t),this.updateValueAndValidity(),this._onCollectionChange()},t.prototype.removeControl=function(e){this.controls[e]&&this.controls[e]._registerOnCollectionChange(function(){}),delete this.controls[e],this.updateValueAndValidity(),this._onCollectionChange()},t.prototype.setControl=function(e,t){this.controls[e]&&this.controls[e]._registerOnCollectionChange(function(){}),delete this.controls[e],t&&this.registerControl(e,t),this.updateValueAndValidity(),this._onCollectionChange()},t.prototype.contains=function(e){return this.controls.hasOwnProperty(e)&&this.controls[e].enabled},t.prototype.setValue=function(e,t){var n=this;void 0===t&&(t={}),this._checkAllValuesPresent(e),Object.keys(e).forEach(function(r){n._throwIfControlMissing(r),n.controls[r].setValue(e[r],{onlySelf:!0,emitEvent:t.emitEvent})}),this.updateValueAndValidity(t)},t.prototype.patchValue=function(e,t){var n=this;void 0===t&&(t={}),Object.keys(e).forEach(function(r){n.controls[r]&&n.controls[r].patchValue(e[r],{onlySelf:!0,emitEvent:t.emitEvent})}),this.updateValueAndValidity(t)},t.prototype.reset=function(e,t){void 0===e&&(e={}),void 0===t&&(t={}),this._forEachChild(function(n,r){n.reset(e[r],{onlySelf:!0,emitEvent:t.emitEvent})}),this._updatePristine(t),this._updateTouched(t),this.updateValueAndValidity(t)},t.prototype.getRawValue=function(){return this._reduceChildren({},function(e,t,n){return e[n]=t instanceof pp?t.value:t.getRawValue(),e})},t.prototype._syncPendingControls=function(){var e=this._reduceChildren(!1,function(e,t){return!!t._syncPendingControls()||e});return e&&this.updateValueAndValidity({onlySelf:!0}),e},t.prototype._throwIfControlMissing=function(e){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[e])throw new Error("Cannot find form control with name: "+e+".")},t.prototype._forEachChild=function(e){var t=this;Object.keys(this.controls).forEach(function(n){return e(t.controls[n],n)})},t.prototype._setUpControls=function(){var e=this;this._forEachChild(function(t){t.setParent(e),t._registerOnCollectionChange(e._onCollectionChange)})},t.prototype._updateValue=function(){this.value=this._reduceValue()},t.prototype._anyControls=function(e){var t=this,n=!1;return this._forEachChild(function(r,i){n=n||t.contains(i)&&e(r)}),n},t.prototype._reduceValue=function(){var e=this;return this._reduceChildren({},function(t,n,r){return(n.enabled||e.disabled)&&(t[r]=n.value),t})},t.prototype._reduceChildren=function(e,t){var n=e;return this._forEachChild(function(e,r){n=t(n,e,r)}),n},t.prototype._allControlsDisabled=function(){var e,t;try{for(var n=Object(N.h)(Object.keys(this.controls)),r=n.next();!r.done;r=n.next())if(this.controls[r.value].enabled)return!1}catch(i){e={error:i}}finally{try{r&&!r.done&&(t=n.return)&&t.call(n)}finally{if(e)throw e.error}}return Object.keys(this.controls).length>0||this.disabled},t.prototype._checkAllValuesPresent=function(e){this._forEachChild(function(t,n){if(void 0===e[n])throw new Error("Must supply a value for form control with name: '"+n+"'.")})},t}(cp),dp=function(e){function t(t,n,r){var i=e.call(this,up(n),ap(r,n))||this;return i.controls=t,i._initObservables(),i._setUpdateStrategy(n),i._setUpControls(),i.updateValueAndValidity({onlySelf:!0,emitEvent:!1}),i}return Object(N.c)(t,e),t.prototype.at=function(e){return this.controls[e]},t.prototype.push=function(e){this.controls.push(e),this._registerControl(e),this.updateValueAndValidity(),this._onCollectionChange()},t.prototype.insert=function(e,t){this.controls.splice(e,0,t),this._registerControl(t),this.updateValueAndValidity()},t.prototype.removeAt=function(e){this.controls[e]&&this.controls[e]._registerOnCollectionChange(function(){}),this.controls.splice(e,1),this.updateValueAndValidity()},t.prototype.setControl=function(e,t){this.controls[e]&&this.controls[e]._registerOnCollectionChange(function(){}),this.controls.splice(e,1),t&&(this.controls.splice(e,0,t),this._registerControl(t)),this.updateValueAndValidity(),this._onCollectionChange()},Object.defineProperty(t.prototype,"length",{get:function(){return this.controls.length},enumerable:!0,configurable:!0}),t.prototype.setValue=function(e,t){var n=this;void 0===t&&(t={}),this._checkAllValuesPresent(e),e.forEach(function(e,r){n._throwIfControlMissing(r),n.at(r).setValue(e,{onlySelf:!0,emitEvent:t.emitEvent})}),this.updateValueAndValidity(t)},t.prototype.patchValue=function(e,t){var n=this;void 0===t&&(t={}),e.forEach(function(e,r){n.at(r)&&n.at(r).patchValue(e,{onlySelf:!0,emitEvent:t.emitEvent})}),this.updateValueAndValidity(t)},t.prototype.reset=function(e,t){void 0===e&&(e=[]),void 0===t&&(t={}),this._forEachChild(function(n,r){n.reset(e[r],{onlySelf:!0,emitEvent:t.emitEvent})}),this._updatePristine(t),this._updateTouched(t),this.updateValueAndValidity(t)},t.prototype.getRawValue=function(){return this.controls.map(function(e){return e instanceof pp?e.value:e.getRawValue()})},t.prototype.clear=function(){this.controls.length<1||(this._forEachChild(function(e){return e._registerOnCollectionChange(function(){})}),this.controls.splice(0),this.updateValueAndValidity())},t.prototype._syncPendingControls=function(){var e=this.controls.reduce(function(e,t){return!!t._syncPendingControls()||e},!1);return e&&this.updateValueAndValidity({onlySelf:!0}),e},t.prototype._throwIfControlMissing=function(e){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(e))throw new Error("Cannot find form control at index "+e)},t.prototype._forEachChild=function(e){this.controls.forEach(function(t,n){e(t,n)})},t.prototype._updateValue=function(){var e=this;this.value=this.controls.filter(function(t){return t.enabled||e.disabled}).map(function(e){return e.value})},t.prototype._anyControls=function(e){return this.controls.some(function(t){return t.enabled&&e(t)})},t.prototype._setUpControls=function(){var e=this;this._forEachChild(function(t){return e._registerControl(t)})},t.prototype._checkAllValuesPresent=function(e){this._forEachChild(function(t,n){if(void 0===e[n])throw new Error("Must supply a value for form control at index: "+n+".")})},t.prototype._allControlsDisabled=function(){var e,t;try{for(var n=Object(N.h)(this.controls),r=n.next();!r.done;r=n.next())if(r.value.enabled)return!1}catch(i){e={error:i}}finally{try{r&&!r.done&&(t=n.return)&&t.call(n)}finally{if(e)throw e.error}}return this.controls.length>0||this.disabled},t.prototype._registerControl=function(e){e.setParent(this),e._registerOnCollectionChange(this._onCollectionChange)},t}(cp),hp=function(){return Promise.resolve(null)}(),yp=function(e){function t(t,n){var i=e.call(this)||this;return i.submitted=!1,i._directives=[],i.ngSubmit=new r.m,i.form=new fp({},ip(t),op(n)),i}return Object(N.c)(t,e),t.prototype.ngAfterViewInit=function(){this._setUpdateStrategy()},Object.defineProperty(t.prototype,"formDirective",{get:function(){return this},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"control",{get:function(){return this.form},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"path",{get:function(){return[]},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"controls",{get:function(){return this.form.controls},enumerable:!0,configurable:!0}),t.prototype.addControl=function(e){var t=this;hp.then(function(){var n=t._findContainer(e.path);e.control=n.registerControl(e.name,e.control),tp(e.control,e),e.control.updateValueAndValidity({emitEvent:!1}),t._directives.push(e)})},t.prototype.getControl=function(e){return this.form.get(e.path)},t.prototype.removeControl=function(e){var t=this;hp.then(function(){var n,r,i=t._findContainer(e.path);i&&i.removeControl(e.name),(r=(n=t._directives).indexOf(e))>-1&&n.splice(r,1)})},t.prototype.addFormGroup=function(e){var t=this;hp.then(function(){var n=t._findContainer(e.path),r=new fp({});(function(e,t){null==e&&rp(t,"Cannot find control with"),e.validator=Nc.compose([e.validator,t.validator]),e.asyncValidator=Nc.composeAsync([e.asyncValidator,t.asyncValidator])})(r,e),n.registerControl(e.name,r),r.updateValueAndValidity({emitEvent:!1})})},t.prototype.removeFormGroup=function(e){var t=this;hp.then(function(){var n=t._findContainer(e.path);n&&n.removeControl(e.name)})},t.prototype.getFormGroup=function(e){return this.form.get(e.path)},t.prototype.updateModel=function(e,t){var n=this;hp.then(function(){n.form.get(e.path).setValue(t)})},t.prototype.setValue=function(e){this.control.setValue(e)},t.prototype.onSubmit=function(e){return this.submitted=!0,t=this._directives,this.form._syncPendingControls(),t.forEach(function(e){var t=e.control;"submit"===t.updateOn&&t._pendingChange&&(e.viewToModelUpdate(t._pendingValue),t._pendingChange=!1)}),this.ngSubmit.emit(e),!1;var t},t.prototype.onReset=function(){this.resetForm()},t.prototype.resetForm=function(e){void 0===e&&(e=void 0),this.form.reset(e),this.submitted=!1},t.prototype._setUpdateStrategy=function(){this.options&&null!=this.options.updateOn&&(this.form._updateOn=this.options.updateOn)},t.prototype._findContainer=function(e){return e.pop(),e.length?this.form.get(e):this.form},t}(xc),bp=function(){function e(){}return e.modelParentException=function(){throw new Error('\n ngModel cannot be used to register form controls with a parent formGroup directive. Try using\n formGroup\'s partner directive "formControlName" instead. Example:\n\n \n
\n \n
\n\n In your class:\n\n this.myGroup = new FormGroup({\n firstName: new FormControl()\n });\n\n Or, if you\'d like to avoid registering this form control, indicate that it\'s standalone in ngModelOptions:\n\n Example:\n\n \n
\n \n \n
\n ')},e.formGroupNameException=function(){throw new Error("\n ngModel cannot be used to register form controls with a parent formGroupName or formArrayName directive.\n\n Option 1: Use formControlName instead of ngModel (reactive strategy):\n\n "+zc+"\n\n Option 2: Update ngModel's parent be ngModelGroup (template-driven strategy):\n\n "+Qc)},e.missingNameException=function(){throw new Error('If ngModel is used within a form tag, either the name attribute must be set or the form\n control must be defined as \'standalone\' in ngModelOptions.\n\n Example 1: \n Example 2: ')},e.modelGroupParentException=function(){throw new Error("\n ngModelGroup cannot be used with a parent formGroup directive.\n\n Option 1: Use formGroupName instead of ngModelGroup (reactive strategy):\n\n "+zc+"\n\n Option 2: Use a regular form tag instead of the formGroup directive (template-driven strategy):\n\n "+Qc)},e.ngFormWarning=function(){console.warn("\n It looks like you're using 'ngForm'.\n\n Support for using the 'ngForm' element selector has been deprecated in Angular v6 and will be removed\n in Angular v9.\n\n Use 'ng-form' instead.\n\n Before:\n \n\n After:\n \n ")},e}(),mp=new r.q("NgFormSelectorWarning"),gp=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Object(N.c)(t,e),t.prototype.ngOnInit=function(){this._checkParentType(),this.formDirective.addFormGroup(this)},t.prototype.ngOnDestroy=function(){this.formDirective&&this.formDirective.removeFormGroup(this)},Object.defineProperty(t.prototype,"control",{get:function(){return this.formDirective.getFormGroup(this)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"path",{get:function(){return ep(this.name,this._parent)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"formDirective",{get:function(){return this._parent?this._parent.formDirective:null},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"validator",{get:function(){return ip(this._validators)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"asyncValidator",{get:function(){return op(this._asyncValidators)},enumerable:!0,configurable:!0}),t.prototype._checkParentType=function(){},t}(xc),vp=function(e){function t(t,n,r){var i=e.call(this)||this;return i._parent=t,i._validators=n,i._asyncValidators=r,i}var n;return Object(N.c)(t,e),n=t,t.prototype._checkParentType=function(){this._parent instanceof n||this._parent instanceof yp||bp.modelGroupParentException()},t}(gp),kp=function(){return Promise.resolve(null)}(),_p=function(e){function t(t,n,i,o){var l=e.call(this)||this;return l.control=new pp,l._registered=!1,l.update=new r.m,l._parent=t,l._rawValidators=n||[],l._rawAsyncValidators=i||[],l.valueAccessor=function(e,t){if(!t)return null;Array.isArray(t)||rp(e,"Value accessor was not provided as an array for form control with");var n=void 0,r=void 0,i=void 0;return t.forEach(function(t){var o;t.constructor===Cc?n=t:(o=t,lp.some(function(e){return o.constructor===e})?(r&&rp(e,"More than one built-in value accessor matches form control with"),r=t):(i&&rp(e,"More than one custom value accessor matches form control with"),i=t))}),i||r||n||(rp(e,"No valid value accessor for form control with"),null)}(l,o),l}return Object(N.c)(t,e),t.prototype.ngOnChanges=function(e){this._checkForErrors(),this._registered||this._setUpControl(),"isDisabled"in e&&this._updateDisabled(e),function(e,t){if(!e.hasOwnProperty("model"))return!1;var n=e.model;return!!n.isFirstChange()||!Object(r.Cb)(t,n.currentValue)}(e,this.viewModel)&&(this._updateValue(this.model),this.viewModel=this.model)},t.prototype.ngOnDestroy=function(){this.formDirective&&this.formDirective.removeControl(this)},Object.defineProperty(t.prototype,"path",{get:function(){return this._parent?ep(this.name,this._parent):[this.name]},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"formDirective",{get:function(){return this._parent?this._parent.formDirective:null},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"validator",{get:function(){return ip(this._rawValidators)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"asyncValidator",{get:function(){return op(this._rawAsyncValidators)},enumerable:!0,configurable:!0}),t.prototype.viewToModelUpdate=function(e){this.viewModel=e,this.update.emit(e)},t.prototype._setUpControl=function(){this._setUpdateStrategy(),this._isStandalone()?this._setUpStandalone():this.formDirective.addControl(this),this._registered=!0},t.prototype._setUpdateStrategy=function(){this.options&&null!=this.options.updateOn&&(this.control._updateOn=this.options.updateOn)},t.prototype._isStandalone=function(){return!this._parent||!(!this.options||!this.options.standalone)},t.prototype._setUpStandalone=function(){tp(this.control,this),this.control.updateValueAndValidity({emitEvent:!1})},t.prototype._checkForErrors=function(){this._isStandalone()||this._checkParentType(),this._checkName()},t.prototype._checkParentType=function(){!(this._parent instanceof vp)&&this._parent instanceof gp?bp.formGroupNameException():this._parent instanceof vp||this._parent instanceof yp||bp.modelParentException()},t.prototype._checkName=function(){this.options&&this.options.name&&(this.name=this.options.name),this._isStandalone()||this.name||bp.missingNameException()},t.prototype._updateValue=function(e){var t=this;kp.then(function(){t.control.setValue(e,{emitViewToModelChange:!1})})},t.prototype._updateDisabled=function(e){var t=this,n=e.isDisabled.currentValue,r=""===n||n&&"false"!==n;kp.then(function(){r&&!t.control.disabled?t.control.disable():!r&&t.control.disabled&&t.control.enable()})},t}(Mc),wp=function(){return function(){}}(),Op=function(){function e(){}return e.prototype.ngOnChanges=function(e){"maxlength"in e&&(this._createValidator(),this._onChange&&this._onChange())},e.prototype.validate=function(e){return null!=this.maxlength?this._validator(e):null},e.prototype.registerOnValidatorChange=function(e){this._onChange=e},e.prototype._createValidator=function(){this._validator=Nc.maxLength(parseInt(this.maxlength,10))},e}(),Ap=function(){return function(){}}(),Cp=function(){function e(){}var t;return t=e,e.withConfig=function(e){return{ngModule:t,providers:[{provide:mp,useValue:e.warnOnDeprecatedNgFormSelector}]}},e}(),Tp=r.sb({encapsulation:0,styles:["[_nghost-%COMP%] {\n display: block;\n margin-top: 1rem;\n margin-bottom: 1rem;\n }"],data:{}});function xp(e){return r.Qb(0,[(e()(),r.ub(0,0,null,null,0,"div",[],[[1,"disabled",0]],null,null,null,null))],null,function(e,t){e(t,0,0,!!t.component.disabled||void 0)})}var Sp=n("Gi3i"),Mp=n("ad02"),Ep=function(){function e(){this.onChange=new r.m,this.changeDebounceTime=300,this.propagateChange=function(){}}return e.prototype.ngAfterViewInit=function(){this.pips&&this.slider.slider.pips(this.pips),this.slider.slider.target.querySelector(".noUi-tooltip").style.display="none",this.slider.slider.on("start",function(){this.target.querySelector(".noUi-tooltip").style.display="block"}),this.slider.slider.on("end",function(){this.target.querySelector(".noUi-tooltip").style.display="none"})},e.prototype.ngOnDestroy=function(){this.changeObserver$&&this.changeObserver$.complete()},e.prototype.writeValue=function(e){this.value=e||this.min},e.prototype.registerOnChange=function(e){this.propagateChange=e},e.prototype.registerOnTouched=function(){},e.prototype.onSliderChange=function(e){var t=this;this.changeObserver$?this.changeObserver$.next(e):Ae.a.create(function(e){t.changeObserver$=e}).pipe(Object(Sp.a)(this.changeDebounceTime),Object(Mp.a)()).subscribe(this.propagateChange)},e}(),Pp=r.sb({encapsulation:0,styles:[["[_nghost-%COMP%] label[_ngcontent-%COMP%]{display:block;font-weight:400}[_nghost-%COMP%] label[_ngcontent-%COMP%] icon[_ngcontent-%COMP%]{display:inline-block}[_nghost-%COMP%] .slider-wrapper[_ngcontent-%COMP%]{display:flex;flex-direction:row;padding-left:1.6rem}[_nghost-%COMP%] .slider-container[_ngcontent-%COMP%]{width:80%}[_nghost-%COMP%] .slider-value[_ngcontent-%COMP%]{width:20%}[_nghost-%COMP%] .value-indicator[_ngcontent-%COMP%]{margin:1rem 1rem 1rem 3rem;vertical-align:middle}"]],data:{}});function Ip(e){return r.Qb(0,[(e()(),r.ub(0,0,null,null,2,"icon",[["data-placement","bottom"],["data-toggle","tooltip"],["html","true"],["name","question-circle"]],[[1,"data-placement",0]],null,null,yc,rc)),r.tb(1,114688,null,0,nc,[],{name:[0,"name"]},null),r.tb(2,1589248,null,0,hs,[r.k,On],{title:[0,"title"],html:[1,"html"]},null)],function(e,t){var n=t.component;e(t,1,0,"question-circle"),e(t,2,0,n.tooltip,"true")},function(e,t){e(t,0,0,r.Gb(t,2).placement)})}function jp(e){return r.Qb(0,[(e()(),r.ub(0,0,null,null,6,"label",[],null,null,null,null,null)),(e()(),r.Ob(-1,null,["\n "])),(e()(),r.ub(2,0,null,null,0,"span",[],[[8,"innerHTML",1]],null,null,null,null)),(e()(),r.Ob(-1,null,["\n "])),(e()(),r.jb(16777216,null,null,1,null,Ip)),r.tb(5,16384,null,0,ie,[r.P,r.M],{ngIf:[0,"ngIf"]},null),(e()(),r.Ob(-1,null,["\n"]))],function(e,t){e(t,5,0,t.component.tooltip)},function(e,t){e(t,2,0,t.component.label)})}function Rp(e){return r.Qb(0,[r.Mb(671088640,1,{slider:0}),(e()(),r.jb(16777216,null,null,1,null,jp)),r.tb(2,16384,null,0,ie,[r.P,r.M],{ngIf:[0,"ngIf"]},null),(e()(),r.Ob(-1,null,["\n"])),(e()(),r.ub(4,0,null,null,17,"div",[["class","slider-wrapper"]],null,null,null,null,null)),(e()(),r.Ob(-1,null,["\n "])),(e()(),r.ub(6,0,null,null,8,"div",[["class","slider-container"]],null,null,null,null,null)),(e()(),r.Ob(-1,null,["\n "])),(e()(),r.ub(8,0,null,null,5,"nouislider",[],[[2,"ng2-nouislider",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]],[[null,"ngModelChange"]],function(e,t,n){var r=!0,i=e.component;return"ngModelChange"===t&&(r=!1!==(i.value=n)&&r),"ngModelChange"===t&&(r=!1!==i.onSliderChange(n)&&r),r},xp,Tp)),r.tb(9,638976,[[1,4]],0,gc,[r.k,r.E],{min:[0,"min"],max:[1,"max"],step:[2,"step"],ngModel:[3,"ngModel"],keyboard:[4,"keyboard"],tooltips:[5,"tooltips"]},null),r.Lb(1024,null,wc,function(e){return[e]},[gc]),r.tb(11,671744,null,0,_p,[[8,null],[8,null],[8,null],[6,wc]],{model:[0,"model"]},{update:"ngModelChange"}),r.Lb(2048,null,Mc,null,[_p]),r.tb(13,16384,null,0,Pc,[[4,Mc]],null,null),(e()(),r.Ob(-1,null,["\n "])),(e()(),r.Ob(-1,null,["\n "])),(e()(),r.ub(16,0,null,null,4,"div",[["class","slider-value"]],null,null,null,null,null)),(e()(),r.Ob(-1,null,["\n "])),(e()(),r.ub(18,0,null,null,1,"div",[["class","value-indicator"]],null,null,null,null,null)),(e()(),r.Ob(19,null,[""," ",""])),(e()(),r.Ob(-1,null,["\n "])),(e()(),r.Ob(-1,null,["\n"]))],function(e,t){var n=t.component;e(t,2,0,n.label),e(t,9,0,n.min,n.max,n.step,n.value,!0,!0),e(t,11,0,n.value)},function(e,t){var n=t.component;e(t,8,0,!0,r.Gb(t,13).ngClassUntouched,r.Gb(t,13).ngClassTouched,r.Gb(t,13).ngClassPristine,r.Gb(t,13).ngClassDirty,r.Gb(t,13).ngClassValid,r.Gb(t,13).ngClassInvalid,r.Gb(t,13).ngClassPending),e(t,19,0,n.value,n.valueUnit)})}var Lp=25,Np=function(){function e(e){this.store=e,this.moveProps=[{prop:"mouseMoveInitialSpeed",title:"Initial speed",tooltip:"When mouse movement begins, this is the starting speed.",valueUnit:"px/s",value:0},{prop:"mouseMoveBaseSpeed",title:"Base speed",tooltip:"This speed is reached after the initial moving speed sufficiently ramps up.",valueUnit:"px/s",value:0},{prop:"mouseMoveAcceleration",title:"Acceleration",tooltip:"The rate of acceleration from the initial movement speed to the base speed.",valueUnit:"px/s\xb2",value:0},{prop:"mouseMoveDeceleratedSpeed",title:"Decelerated speed",tooltip:"This speed is used while moving with the decelerate key pressed.",valueUnit:"px/s",value:0},{prop:"mouseMoveAcceleratedSpeed",title:"Accelerated speed",tooltip:"This speed is used while moving with the accelerate key pressed.",valueUnit:"px/s",value:0}],this.scrollProps=[{prop:"mouseScrollInitialSpeed",title:"Initial speed",tooltip:"When mouse scrolling begins, this is the starting speed.",valueUnit:"pulse/s",value:0},{prop:"mouseScrollBaseSpeed",title:"Base speed",tooltip:"This speed is reached after the initial scrolling speed sufficiently ramps up.",valueUnit:"pulse/s",value:0},{prop:"mouseScrollAcceleration",title:"Acceleration",tooltip:"The rate of acceleration from the initial scrolling speed to the base speed.",valueUnit:"pulse/s\xb2",value:0},{prop:"mouseScrollDeceleratedSpeed",title:"Decelerated speed",tooltip:"This speed is used while scrolling with the decelerate key pressed.",valueUnit:"pulse/s",value:0},{prop:"mouseScrollAcceleratedSpeed",title:"Accelerated speed",tooltip:"This speed is used while scrolling with the accelerate key pressed.",valueUnit:"pulse/s",value:0}],this.sliderPips={mode:"positions",values:[0,50,100],density:6,stepped:!0},this.moveSettings={min:Lp,max:6375,step:Lp},this.scrollSettings={min:1,max:255,step:1}}return e.prototype.ngOnInit=function(){var e=this;this.userConfig$=this.store.select(Nu),this.userConfigSubscription=this.userConfig$.subscribe(function(t){e.moveProps.forEach(function(e){e.value=t[e.prop]*Lp||0}),e.scrollProps.forEach(function(e){e.value=t[e.prop]||0})})},e.prototype.ngOnDestroy=function(){this.userConfigSubscription&&this.userConfigSubscription.unsubscribe()},e.prototype.onSetPropertyValue=function(e,t){this.store.dispatch(new Al({propertyName:e,value:-1!==e.indexOf("mouseMove")?t/Lp:t}))},e.prototype.resetToPcDefault=function(){this.store.dispatch(new T)},e.prototype.resetToMacDefault=function(){this.store.dispatch(new x)},e}(),Dp=r.sb({encapsulation:0,styles:[["[_nghost-%COMP%]{overflow-y:auto;display:block;height:100%;width:100%}[_nghost-%COMP%] label[_ngcontent-%COMP%]{display:block;font-weight:400}[_nghost-%COMP%] label[_ngcontent-%COMP%] icon[_ngcontent-%COMP%]{display:inline-block}[_nghost-%COMP%] .mouse-speed-reset-button[_ngcontent-%COMP%]{margin-bottom:2rem;margin-right:1em}[_nghost-%COMP%] .mouse-speed-setting[_ngcontent-%COMP%]{margin-bottom:6rem}[_nghost-%COMP%] .mouse-speed-setting[_ngcontent-%COMP%] + h3[_ngcontent-%COMP%]{margin-top:2rem}[_nghost-%COMP%] .placeholder[_ngcontent-%COMP%]{height:3rem}"]],data:{}});function Up(e){return r.Qb(0,[(e()(),r.ub(0,0,null,null,11,"div",[["class","row mouse-speed-setting"]],null,null,null,null,null)),(e()(),r.Ob(-1,null,["\n "])),(e()(),r.ub(2,0,null,null,8,"div",[["class","col-xs-12 col-md-6"]],null,null,null,null,null)),(e()(),r.Ob(-1,null,["\n "])),(e()(),r.ub(4,0,null,null,5,"slider-wrapper",[],[[2,"ng-untouched",null],[2,"ng-touched",null],[2,"ng-pristine",null],[2,"ng-dirty",null],[2,"ng-valid",null],[2,"ng-invalid",null],[2,"ng-pending",null]],[[null,"ngModelChange"]],function(e,t,n){var r=!0,i=e.component;return"ngModelChange"===t&&(r=!1!==(e.context.$implicit.value=n)&&r),"ngModelChange"===t&&(r=!1!==i.onSetPropertyValue(e.context.$implicit.prop,n)&&r),r},Rp,Pp)),r.tb(5,4374528,null,0,Ep,[],{label:[0,"label"],tooltip:[1,"tooltip"],min:[2,"min"],max:[3,"max"],step:[4,"step"],pips:[5,"pips"],valueUnit:[6,"valueUnit"]},null),r.Lb(1024,null,wc,function(e){return[e]},[Ep]),r.tb(7,671744,null,0,_p,[[8,null],[8,null],[8,null],[6,wc]],{model:[0,"model"]},{update:"ngModelChange"}),r.Lb(2048,null,Mc,null,[_p]),r.tb(9,16384,null,0,Pc,[[4,Mc]],null,null),(e()(),r.Ob(-1,null,["\n "])),(e()(),r.Ob(-1,null,["\n"]))],function(e,t){var n=t.component;e(t,5,0,t.context.$implicit.title,t.context.$implicit.tooltip,n.moveSettings.min,n.moveSettings.max,n.moveSettings.step,n.sliderPips,t.context.$implicit.valueUnit),e(t,7,0,t.context.$implicit.value)},function(e,t){e(t,4,0,r.Gb(t,9).ngClassUntouched,r.Gb(t,9).ngClassTouched,r.Gb(t,9).ngClassPristine,r.Gb(t,9).ngClassDirty,r.Gb(t,9).ngClassValid,r.Gb(t,9).ngClassInvalid,r.Gb(t,9).ngClassPending)})}function Fp(e){return r.Qb(0,[(e()(),r.ub(0,0,null,null,11,"div",[["class","row mouse-speed-setting"]],null,null,null,null,null)),(e()(),r.Ob(-1,null,["\n "])),(e()(),r.ub(2,0,null,null,8,"div",[["class","col-xs-12 col-md-6"]],null,null,null,null,null)),(e()(),r.Ob(-1,null,["\n "])),(e()(),r.ub(4,0,null,null,5,"slider-wrapper",[],[[2,"ng-untouched",null],[2,"ng-touched",null],[2,"ng-pristine",null],[2,"ng-dirty",null],[2,"ng-valid",null],[2,"ng-invalid",null],[2,"ng-pending",null]],[[null,"ngModelChange"]],function(e,t,n){var r=!0,i=e.component;return"ngModelChange"===t&&(r=!1!==(e.context.$implicit.value=n)&&r),"ngModelChange"===t&&(r=!1!==i.onSetPropertyValue(e.context.$implicit.prop,n)&&r),r},Rp,Pp)),r.tb(5,4374528,null,0,Ep,[],{label:[0,"label"],tooltip:[1,"tooltip"],min:[2,"min"],max:[3,"max"],step:[4,"step"],pips:[5,"pips"],valueUnit:[6,"valueUnit"]},null),r.Lb(1024,null,wc,function(e){return[e]},[Ep]),r.tb(7,671744,null,0,_p,[[8,null],[8,null],[8,null],[6,wc]],{model:[0,"model"]},{update:"ngModelChange"}),r.Lb(2048,null,Mc,null,[_p]),r.tb(9,16384,null,0,Pc,[[4,Mc]],null,null),(e()(),r.Ob(-1,null,["\n "])),(e()(),r.Ob(-1,null,["\n"]))],function(e,t){var n=t.component;e(t,5,0,t.context.$implicit.title,t.context.$implicit.tooltip,n.scrollSettings.min,n.scrollSettings.max,n.scrollSettings.step,n.sliderPips,t.context.$implicit.valueUnit),e(t,7,0,t.context.$implicit.value)},function(e,t){e(t,4,0,r.Gb(t,9).ngClassUntouched,r.Gb(t,9).ngClassTouched,r.Gb(t,9).ngClassPristine,r.Gb(t,9).ngClassDirty,r.Gb(t,9).ngClassValid,r.Gb(t,9).ngClassInvalid,r.Gb(t,9).ngClassPending)})}function Kp(e){return r.Qb(0,[(e()(),r.ub(0,0,null,null,6,"h1",[],null,null,null,null,null)),(e()(),r.Ob(-1,null,["\n "])),(e()(),r.ub(2,0,null,null,0,"i",[["class","fa fa-sliders"]],null,null,null,null,null)),(e()(),r.Ob(-1,null,["\n "])),(e()(),r.ub(4,0,null,null,1,"span",[],null,null,null,null,null)),(e()(),r.Ob(-1,null,["Mouse speed"])),(e()(),r.Ob(-1,null,["\n"])),(e()(),r.Ob(-1,null,["\n"])),(e()(),r.ub(8,16777216,null,null,2,"button",[["cancelText","No"],["class","btn btn-danger mouse-speed-reset-button"],["confirmText","Yes"],["mwlConfirmationPopover",""],["placement","bottom"],["popoverTitle","Are you sure?"]],null,[[null,"confirm"],[null,"click"]],function(e,t,n){var i=!0,o=e.component;return"click"===t&&(i=!1!==r.Gb(e,9).togglePopover()&&i),"confirm"===t&&(i=!1!==o.resetToPcDefault()&&i),i},null,null)),r.tb(9,737280,null,0,Va,[r.P,r.k,Fa,r.j,Ua,r.E],{popoverTitle:[0,"popoverTitle"],confirmText:[1,"confirmText"],cancelText:[2,"cancelText"],placement:[3,"placement"]},{confirm:"confirm"}),(e()(),r.Ob(-1,null,["Reset PC default speeds\n"])),(e()(),r.Ob(-1,null,["\n"])),(e()(),r.ub(12,16777216,null,null,2,"button",[["cancelText","No"],["class","btn btn-danger mouse-speed-reset-button"],["confirmText","Yes"],["mwlConfirmationPopover",""],["placement","bottom"],["popoverTitle","Are you sure?"]],null,[[null,"confirm"],[null,"click"]],function(e,t,n){var i=!0,o=e.component;return"click"===t&&(i=!1!==r.Gb(e,13).togglePopover()&&i),"confirm"===t&&(i=!1!==o.resetToMacDefault()&&i),i},null,null)),r.tb(13,737280,null,0,Va,[r.P,r.k,Fa,r.j,Ua,r.E],{popoverTitle:[0,"popoverTitle"],confirmText:[1,"confirmText"],cancelText:[2,"cancelText"],placement:[3,"placement"]},{confirm:"confirm"}),(e()(),r.Ob(-1,null,["Reset Mac default speeds\n"])),(e()(),r.Ob(-1,null,["\n\n"])),(e()(),r.ub(16,0,null,null,1,"h3",[],null,null,null,null,null)),(e()(),r.Ob(-1,null,["Mouse pointer speed"])),(e()(),r.Ob(-1,null,["\n"])),(e()(),r.jb(16777216,null,null,1,null,Up)),r.tb(20,278528,null,0,ne,[r.P,r.M,r.t],{ngForOf:[0,"ngForOf"]},null),(e()(),r.Ob(-1,null,["\n"])),(e()(),r.ub(22,0,null,null,1,"h3",[],null,null,null,null,null)),(e()(),r.Ob(-1,null,["Mouse scroll speed"])),(e()(),r.Ob(-1,null,["\n"])),(e()(),r.jb(16777216,null,null,1,null,Fp)),r.tb(26,278528,null,0,ne,[r.P,r.M,r.t],{ngForOf:[0,"ngForOf"]},null),(e()(),r.Ob(-1,null,["\n"])),(e()(),r.Ob(-1,null,["\n"])),(e()(),r.ub(29,0,null,null,0,"div",[["class","placeholder"]],null,null,null,null,null)),(e()(),r.Ob(-1,null,["\n"]))],function(e,t){var n=t.component;e(t,9,0,"Are you sure?","Yes","No","bottom"),e(t,13,0,"Are you sure?","Yes","No","bottom"),e(t,20,0,n.moveProps),e(t,26,0,n.scrollProps)},null)}function Bp(e){return r.Qb(0,[(e()(),r.ub(0,0,null,null,1,"device-mouse-speed",[["class","container-fluid"]],null,null,null,Kp,Dp)),r.tb(1,245760,null,0,Np,[L.m],null,null)],function(e,t){e(t,1,0)},null)}var Vp=r.qb("device-mouse-speed",Np,Bp,{},{},[]),Gp=function(){function e(e){this.store=e,this.iconsAndLayerTextsBrightness=0,this.alphanumericSegmentsBrightness=0,this.keyBacklightBrightness=0,this.sliderPips={mode:"positions",values:[0,50,100],density:6,stepped:!0}}return e.prototype.ngOnInit=function(){var e=this;this.userConfig$=this.store.select(Nu),this.userConfigSubscription=this.userConfig$.subscribe(function(t){e.iconsAndLayerTextsBrightness=t.iconsAndLayerTextsBrightness,e.alphanumericSegmentsBrightness=t.alphanumericSegmentsBrightness,e.keyBacklightBrightness=t.keyBacklightBrightness})},e.prototype.ngOnDestroy=function(){this.userConfigSubscription.unsubscribe()},e.prototype.onSetPropertyValue=function(e,t){this.store.dispatch(new Al({propertyName:e,value:t}))},e}(),Hp=r.sb({encapsulation:0,styles:[["[_nghost-%COMP%]{display:block;height:100%;width:100%}[_nghost-%COMP%] label[_ngcontent-%COMP%]{display:block;font-weight:400}[_nghost-%COMP%] .led-setting[_ngcontent-%COMP%]{margin-bottom:6rem}"]],data:{}});function $p(e){return r.Qb(0,[(e()(),r.ub(0,0,null,null,6,"h1",[],null,null,null,null,null)),(e()(),r.Ob(-1,null,["\n "])),(e()(),r.ub(2,0,null,null,0,"i",[["class","fa fa-sliders"]],null,null,null,null,null)),(e()(),r.Ob(-1,null,["\n "])),(e()(),r.ub(4,0,null,null,1,"span",[],null,null,null,null,null)),(e()(),r.Ob(-1,null,["LED brightness"])),(e()(),r.Ob(-1,null,["\n"])),(e()(),r.Ob(-1,null,["\n"])),(e()(),r.ub(8,0,null,null,11,"div",[["class","row led-setting"]],null,null,null,null,null)),(e()(),r.Ob(-1,null,["\n "])),(e()(),r.ub(10,0,null,null,8,"div",[["class","col-xs-12 col-md-6"]],null,null,null,null,null)),(e()(),r.Ob(-1,null,["\n "])),(e()(),r.ub(12,0,null,null,5,"slider-wrapper",[["label","LED display icon and layer texts brightness"]],[[2,"ng-untouched",null],[2,"ng-touched",null],[2,"ng-pristine",null],[2,"ng-dirty",null],[2,"ng-valid",null],[2,"ng-invalid",null],[2,"ng-pending",null]],[[null,"ngModelChange"]],function(e,t,n){var r=!0,i=e.component;return"ngModelChange"===t&&(r=!1!==(i.iconsAndLayerTextsBrightness=n)&&r),"ngModelChange"===t&&(r=!1!==i.onSetPropertyValue("iconsAndLayerTextsBrightness",n)&&r),r},Rp,Pp)),r.tb(13,4374528,null,0,Ep,[],{label:[0,"label"],min:[1,"min"],max:[2,"max"],step:[3,"step"],pips:[4,"pips"]},null),r.Lb(1024,null,wc,function(e){return[e]},[Ep]),r.tb(15,671744,null,0,_p,[[8,null],[8,null],[8,null],[6,wc]],{model:[0,"model"]},{update:"ngModelChange"}),r.Lb(2048,null,Mc,null,[_p]),r.tb(17,16384,null,0,Pc,[[4,Mc]],null,null),(e()(),r.Ob(-1,null,["\n "])),(e()(),r.Ob(-1,null,["\n"])),(e()(),r.Ob(-1,null,["\n"])),(e()(),r.ub(21,0,null,null,11,"div",[["class","row led-setting"]],null,null,null,null,null)),(e()(),r.Ob(-1,null,["\n "])),(e()(),r.ub(23,0,null,null,8,"div",[["class","col-xs-12 col-md-6"]],null,null,null,null,null)),(e()(),r.Ob(-1,null,["\n "])),(e()(),r.ub(25,0,null,null,5,"slider-wrapper",[["label","LED display alphanumeric segments brightness"]],[[2,"ng-untouched",null],[2,"ng-touched",null],[2,"ng-pristine",null],[2,"ng-dirty",null],[2,"ng-valid",null],[2,"ng-invalid",null],[2,"ng-pending",null]],[[null,"ngModelChange"]],function(e,t,n){var r=!0,i=e.component;return"ngModelChange"===t&&(r=!1!==(i.alphanumericSegmentsBrightness=n)&&r),"ngModelChange"===t&&(r=!1!==i.onSetPropertyValue("alphanumericSegmentsBrightness",n)&&r),r},Rp,Pp)),r.tb(26,4374528,null,0,Ep,[],{label:[0,"label"],min:[1,"min"],max:[2,"max"],step:[3,"step"],pips:[4,"pips"]},null),r.Lb(1024,null,wc,function(e){return[e]},[Ep]),r.tb(28,671744,null,0,_p,[[8,null],[8,null],[8,null],[6,wc]],{model:[0,"model"]},{update:"ngModelChange"}),r.Lb(2048,null,Mc,null,[_p]),r.tb(30,16384,null,0,Pc,[[4,Mc]],null,null),(e()(),r.Ob(-1,null,["\n "])),(e()(),r.Ob(-1,null,["\n"])),(e()(),r.Ob(-1,null,["\n"])),(e()(),r.ub(34,0,null,null,11,"div",[["class","row led-setting"]],null,null,null,null,null)),(e()(),r.Ob(-1,null,["\n "])),(e()(),r.ub(36,0,null,null,8,"div",[["class","col-xs-12 col-md-6"]],null,null,null,null,null)),(e()(),r.Ob(-1,null,["\n "])),(e()(),r.ub(38,0,null,null,5,"slider-wrapper",[["label","Key backlight brightness Please note that current UHK versions are not backlit."]],[[2,"ng-untouched",null],[2,"ng-touched",null],[2,"ng-pristine",null],[2,"ng-dirty",null],[2,"ng-valid",null],[2,"ng-invalid",null],[2,"ng-pending",null]],[[null,"ngModelChange"]],function(e,t,n){var r=!0,i=e.component;return"ngModelChange"===t&&(r=!1!==(i.keyBacklightBrightness=n)&&r),"ngModelChange"===t&&(r=!1!==i.onSetPropertyValue("keyBacklightBrightness",n)&&r),r},Rp,Pp)),r.tb(39,4374528,null,0,Ep,[],{label:[0,"label"],min:[1,"min"],max:[2,"max"],step:[3,"step"],pips:[4,"pips"]},null),r.Lb(1024,null,wc,function(e){return[e]},[Ep]),r.tb(41,671744,null,0,_p,[[8,null],[8,null],[8,null],[6,wc]],{model:[0,"model"]},{update:"ngModelChange"}),r.Lb(2048,null,Mc,null,[_p]),r.tb(43,16384,null,0,Pc,[[4,Mc]],null,null),(e()(),r.Ob(-1,null,["\n "])),(e()(),r.Ob(-1,null,["\n"])),(e()(),r.Ob(-1,null,["\n"]))],function(e,t){var n=t.component;e(t,13,0,"LED display icon and layer texts brightness",0,255,1,n.sliderPips),e(t,15,0,n.iconsAndLayerTextsBrightness),e(t,26,0,"LED display alphanumeric segments brightness",0,255,1,n.sliderPips),e(t,28,0,n.alphanumericSegmentsBrightness),e(t,39,0,"Key backlight brightness Please note that current UHK versions are not backlit.",0,255,1,n.sliderPips),e(t,41,0,n.keyBacklightBrightness)},function(e,t){e(t,12,0,r.Gb(t,17).ngClassUntouched,r.Gb(t,17).ngClassTouched,r.Gb(t,17).ngClassPristine,r.Gb(t,17).ngClassDirty,r.Gb(t,17).ngClassValid,r.Gb(t,17).ngClassInvalid,r.Gb(t,17).ngClassPending),e(t,25,0,r.Gb(t,30).ngClassUntouched,r.Gb(t,30).ngClassTouched,r.Gb(t,30).ngClassPristine,r.Gb(t,30).ngClassDirty,r.Gb(t,30).ngClassValid,r.Gb(t,30).ngClassInvalid,r.Gb(t,30).ngClassPending),e(t,38,0,r.Gb(t,43).ngClassUntouched,r.Gb(t,43).ngClassTouched,r.Gb(t,43).ngClassPristine,r.Gb(t,43).ngClassDirty,r.Gb(t,43).ngClassValid,r.Gb(t,43).ngClassInvalid,r.Gb(t,43).ngClassPending)})}function zp(e){return r.Qb(0,[(e()(),r.ub(0,0,null,null,1,"device-led-brightness",[["class","container-fluid"]],null,null,null,$p,Hp)),r.tb(1,245760,null,0,Gp,[L.m],null,null)],function(e,t){e(t,1,0)},null)}var Qp=r.qb("device-led-brightness",Gp,zp,{},{},[]),Wp=function(){function e(e,t){this.el=e,this.store=t}return e.prototype.onClick=function(e){this.openUrl(e)},e.prototype.onAuxClick=function(e){this.openUrl(e)},e.prototype.openUrl=function(e){e.preventDefault(),e.stopPropagation();var t=this.el.nativeElement;t.href&&this.store.dispatch(new _u(t.href))},e}(),qp=function(){function e(e){var t=this;this.store=e,this.subscription=new _t.a,this.flashFirmwareButtonDisbabled$=e.select(ga),this.xtermLog$=e.select(ma),this.getAgentVersionInfo$=e.select(Zu),this.subscription.add(e.select(va).subscribe(function(e){t.hardwareModules=e})),this.runningOnNotSupportedWindows$=e.select(ta),this.firmwareUpgradeAllowed$=e.select(ra),this.subscription.add(e.select(Oa).subscribe(function(e){t.firmwareUpgradeFailed=e,t.scrollToTheEndOfTheLogs()})),this.subscription.add(e.select(Aa).subscribe(function(e){t.firmwareUpgradeSuccess=e,t.scrollToTheEndOfTheLogs()})),this.firmwareGithubIssueUrl=$o.Constants.FIRMWARE_GITHUB_ISSUE_URL}return e.prototype.ngOnDestroy=function(){this.subscription.unsubscribe()},e.prototype.onUpdateFirmware=function(){this.store.dispatch(new _)},e.prototype.changeFile=function(e){this.store.dispatch(new w(e.data))},e.prototype.scrollToTheEndOfTheLogs=function(){this.xtermRef&&this.xtermRef.scrollToTheEnd()},e}(),Jp=r.sb({encapsulation:0,styles:[["[_nghost-%COMP%]{overflow-y:auto;display:block;height:100vh;min-height:100%;width:100%}.link-github[_ngcontent-%COMP%]{cursor:pointer}"]],data:{}});function Yp(e){return r.Qb(0,[(e()(),r.ub(0,0,null,null,1,"p",[],null,null,null,null,null)),(e()(),r.Ob(-1,null,["Firmware update doesn't work on Windows 7, Windows Vista,\n and Windows XP. Use Windows 10, Windows 8, Linux, or OSX instead."]))],null,null)}function Zp(e){return r.Qb(0,[(e()(),r.ub(0,0,null,null,10,"p",[],null,null,null,null,null)),(e()(),r.Ob(-1,null,["\n "])),(e()(),r.ub(2,0,null,null,3,"button",[["class","btn btn-primary"]],[[8,"disabled",0]],[[null,"click"]],function(e,t,n){var r=!0;return"click"===t&&(r=!1!==e.component.onUpdateFirmware()&&r),r},null,null)),r.Ib(131072,ye,[r.h]),(e()(),r.Ob(4,null,["\n Flash firmware "," (bundled with Agent)\n "])),r.Ib(131072,ye,[r.h]),(e()(),r.Ob(-1,null,["\n "])),(e()(),r.ub(7,0,null,null,2,"file-upload",[["accept",".tar.bz2"],["label","Choose firmware file and flash it"]],null,[[null,"fileChanged"]],function(e,t,n){var r=!0;return"fileChanged"===t&&(r=!1!==e.component.changeFile(n)&&r),r},Js,qs)),r.tb(8,49152,null,0,Ws,[],{label:[0,"label"],disabled:[1,"disabled"],accept:[2,"accept"]},{fileChanged:"fileChanged"}),r.Ib(131072,ye,[r.h]),(e()(),r.Ob(-1,null,["\n "]))],function(e,t){var n=t.component;e(t,8,0,"Choose firmware file and flash it",r.Pb(t,8,1,r.Gb(t,9).transform(n.flashFirmwareButtonDisbabled$)),".tar.bz2")},function(e,t){var n=t.component;e(t,2,0,r.Pb(t,2,0,r.Gb(t,3).transform(n.flashFirmwareButtonDisbabled$))),e(t,4,0,r.Pb(t,4,0,r.Gb(t,5).transform(n.getAgentVersionInfo$)).firmwareVersion)})}function Xp(e){return r.Qb(0,[(e()(),r.ub(0,0,null,null,11,"div",[["class","alert alert-danger"],["role","alert"]],null,null,null,null,null)),(e()(),r.Ob(-1,null,["\n "])),(e()(),r.ub(2,0,null,null,1,"p",[],null,null,null,null,null)),(e()(),r.Ob(-1,null,["Firmware update failed. Disconnect every USB device from your computer (including USB hubs, KVM switches, USB dongles, and everything else), then connect only your UHK and retry."])),(e()(),r.Ob(-1,null,["\n\n "])),(e()(),r.ub(5,0,null,null,5,"p",[],null,null,null,null,null)),(e()(),r.Ob(-1,null,["If you've tried the above and the update still keeps failing, please "])),(e()(),r.ub(7,0,null,null,2,"a",[["class","link-github"],["externalUrl",""]],[[8,"href",4]],[[null,"click"],[null,"auxclick"]],function(e,t,n){var i=!0;return"click"===t&&(i=!1!==r.Gb(e,8).onClick(n)&&i),"auxclick"===t&&(i=!1!==r.Gb(e,8).onAuxClick(n)&&i),i},null,null)),r.tb(8,16384,null,0,Wp,[r.k,L.m],null,null),(e()(),r.Ob(-1,null,["create a GitHub issue"])),(e()(),r.Ob(-1,null,[", and attach the update log."])),(e()(),r.Ob(-1,null,["\n "]))],null,function(e,t){e(t,7,0,t.component.firmwareGithubIssueUrl)})}function ef(e){return r.Qb(0,[(e()(),r.ub(0,0,null,null,4,"div",[["class","alert alert-success"],["role","alert"]],null,null,null,null,null)),(e()(),r.Ob(-1,null,["\n "])),(e()(),r.ub(2,0,null,null,1,"p",[],null,null,null,null,null)),(e()(),r.Ob(-1,null,["Firmware update succeeded."])),(e()(),r.Ob(-1,null,["\n "]))],null,null)}function tf(e){return r.Qb(0,[(e()(),r.ub(0,0,null,null,5,"div",[["class","flex-grow"]],null,null,null,null,null)),(e()(),r.Ob(-1,null,["\n "])),(e()(),r.ub(2,0,null,null,2,"xterm",[],null,null,null,Ds,Ls)),r.tb(3,573440,[[1,4]],0,Rs,[],{logs:[0,"logs"]},null),r.Ib(131072,ye,[r.h]),(e()(),r.Ob(-1,null,["\n "]))],function(e,t){var n=t.component;e(t,3,0,r.Pb(t,3,0,r.Gb(t,4).transform(n.xtermLog$)))},null)}function nf(e){return r.Qb(0,[r.Mb(671088640,1,{xtermRef:0}),(e()(),r.ub(1,0,null,null,41,"div",[["class","full-height"]],null,null,null,null,null)),(e()(),r.Ob(-1,null,["\n "])),(e()(),r.ub(3,0,null,null,38,"div",[["class","flex-container"]],null,null,null,null,null)),(e()(),r.Ob(-1,null,["\n "])),(e()(),r.ub(5,0,null,null,28,"div",[],null,null,null,null,null)),(e()(),r.Ob(-1,null,["\n\n "])),(e()(),r.ub(7,0,null,null,6,"h1",[],null,null,null,null,null)),(e()(),r.Ob(-1,null,["\n "])),(e()(),r.ub(9,0,null,null,0,"i",[["class","fa fa-sliders"]],null,null,null,null,null)),(e()(),r.Ob(-1,null,["\n "])),(e()(),r.ub(11,0,null,null,1,"span",[],null,null,null,null,null)),(e()(),r.Ob(-1,null,["Firmware"])),(e()(),r.Ob(-1,null,["\n "])),(e()(),r.Ob(-1,null,["\n\n "])),(e()(),r.ub(15,0,null,null,3,"p",[],null,null,null,null,null)),(e()(),r.Ob(16,null,["\n Firmware "," is running on the left keyboard half."])),(e()(),r.ub(17,0,null,null,0,"br",[],null,null,null,null,null)),(e()(),r.Ob(18,null,["\n Firmware "," is running on the right keyboard half.\n "])),(e()(),r.Ob(-1,null,["\n\n "])),(e()(),r.jb(16777216,null,null,2,null,Yp)),r.tb(21,16384,null,0,ie,[r.P,r.M],{ngIf:[0,"ngIf"]},null),r.Ib(131072,ye,[r.h]),(e()(),r.Ob(-1,null,["\n\n "])),(e()(),r.jb(16777216,null,null,2,null,Zp)),r.tb(25,16384,null,0,ie,[r.P,r.M],{ngIf:[0,"ngIf"]},null),r.Ib(131072,ye,[r.h]),(e()(),r.Ob(-1,null,["\n\n "])),(e()(),r.jb(16777216,null,null,1,null,Xp)),r.tb(29,16384,null,0,ie,[r.P,r.M],{ngIf:[0,"ngIf"]},null),(e()(),r.Ob(-1,null,["\n\n "])),(e()(),r.jb(16777216,null,null,1,null,ef)),r.tb(32,16384,null,0,ie,[r.P,r.M],{ngIf:[0,"ngIf"]},null),(e()(),r.Ob(-1,null,["\n "])),(e()(),r.Ob(-1,null,["\n\n "])),(e()(),r.jb(16777216,null,null,2,null,tf)),r.tb(36,16384,null,0,ie,[r.P,r.M],{ngIf:[0,"ngIf"]},null),r.Ib(131072,ye,[r.h]),(e()(),r.Ob(-1,null,["\n "])),(e()(),r.ub(39,0,null,null,1,"div",[["class","flex-footer"]],null,null,null,null,null)),(e()(),r.Ob(-1,null,["\n "])),(e()(),r.Ob(-1,null,["\n "])),(e()(),r.Ob(-1,null,["\n"])),(e()(),r.Ob(-1,null,["\n"]))],function(e,t){var n=t.component;e(t,21,0,r.Pb(t,21,0,r.Gb(t,22).transform(n.runningOnNotSupportedWindows$))),e(t,25,0,r.Pb(t,25,0,r.Gb(t,26).transform(n.firmwareUpgradeAllowed$))),e(t,29,0,n.firmwareUpgradeFailed),e(t,32,0,n.firmwareUpgradeSuccess),e(t,36,0,r.Pb(t,36,0,r.Gb(t,37).transform(n.firmwareUpgradeAllowed$)))},function(e,t){var n=t.component;e(t,16,0,n.hardwareModules.leftModuleInfo.firmwareVersion),e(t,18,0,n.hardwareModules.rightModuleInfo.firmwareVersion)})}function rf(e){return r.Qb(0,[(e()(),r.ub(0,0,null,null,1,"device-firmware",[["class","container-fluid"]],null,null,null,nf,Jp)),r.tb(1,180224,null,0,qp,[L.m],null,null)],null,null)}var of=r.qb("device-firmware",qp,rf,{},{},[]),lf=function(){function e(e,t){this.store=e,this.cdRef=t}return e.prototype.ngOnDestroy=function(){this.stateSubscription&&this.stateSubscription.unsubscribe()},e.prototype.ngOnInit=function(){var e=this;this.stateSubscription=this.store.select(ka).subscribe(function(t){e.state=t,e.cdRef.markForCheck()})},e.prototype.resetUserConfiguration=function(){this.store.dispatch(new k)},e.prototype.restoreUserConfiguration=function(){this.store.dispatch(new M)},e}(),uf=r.sb({encapsulation:0,styles:[["[_nghost-%COMP%]{overflow-y:auto;display:block;height:100%;width:100%}[_nghost-%COMP%] p[_ngcontent-%COMP%]{margin:1.5rem 0}"]],data:{}});function af(e){return r.Qb(0,[(e()(),r.ub(0,0,null,null,1,"button",[["class","btn btn-primary"]],[[8,"disabled",0]],[[null,"click"]],function(e,t,n){var r=!0;return"click"===t&&(r=!1!==e.component.restoreUserConfiguration()&&r),r},null,null)),(e()(),r.Ob(-1,null,[" Restore the last valid device configuration\n"]))],null,function(e,t){e(t,0,0,t.component.state.restoringUserConfiguration)})}function sf(e){return r.Qb(0,[(e()(),r.ub(0,0,null,null,1,"button",[["class","btn btn-danger"]],[[8,"disabled",0]],[[null,"click"]],function(e,t,n){var r=!0;return"click"===t&&(r=!1!==e.component.resetUserConfiguration()&&r),r},null,null)),(e()(),r.Ob(-1,null,["Reset device configuration\n"]))],null,function(e,t){e(t,0,0,t.component.state.restoringUserConfiguration)})}function cf(e){return r.Qb(0,[(e()(),r.ub(0,0,null,null,6,"h1",[],null,null,null,null,null)),(e()(),r.Ob(-1,null,["\n "])),(e()(),r.ub(2,0,null,null,0,"i",[["class","fa fa-exclamation-circle"]],null,null,null,null,null)),(e()(),r.Ob(-1,null,["\n "])),(e()(),r.ub(4,0,null,null,1,"span",[],null,null,null,null,null)),(e()(),r.Ob(-1,null,["Fix configuration"])),(e()(),r.Ob(-1,null,["\n"])),(e()(),r.Ob(-1,null,["\n\n"])),(e()(),r.ub(8,0,null,null,1,"p",[],null,null,null,null,null)),(e()(),r.Ob(-1,null,["\n Your on-board device configuration is invalid.\n"])),(e()(),r.Ob(-1,null,["\n"])),(e()(),r.jb(16777216,null,null,1,null,af)),r.tb(12,16384,null,0,ie,[r.P,r.M],{ngIf:[0,"ngIf"]},null),(e()(),r.Ob(-1,null,["\n\n"])),(e()(),r.jb(16777216,null,null,1,null,sf)),r.tb(15,16384,null,0,ie,[r.P,r.M],{ngIf:[0,"ngIf"]},null),(e()(),r.Ob(-1,null,["\n"]))],function(e,t){var n=t.component;e(t,12,0,n.state.hasBackupUserConfiguration),e(t,15,0,!n.state.hasBackupUserConfiguration)},null)}function pf(e){return r.Qb(0,[(e()(),r.ub(0,0,null,null,1,"restore-configuration",[["class","container-fluid"]],null,null,null,cf,uf)),r.tb(1,245760,null,0,lf,[L.m,r.h],null,null)],function(e,t){e(t,1,0)},null)}var ff=r.qb("restore-configuration",lf,pf,{},{},[]),df=function(){function e(){this.close=new r.m,this.undo=new r.m}return e.prototype.ngOnChanges=function(e){if(e.notification){var t=e.notification.currentValue;t?(this.text=t.message,this.undoable=!!t.extra):this.text=null}},e.prototype.clickOnClose=function(){this.close.emit()},e.prototype.clickOnUndo=function(){this.undo.emit(this.notification.extra)},e}(),hf=r.sb({encapsulation:0,styles:[[".alert[_ngcontent-%COMP%]{padding:5px 10px 5px 5px;margin-bottom:.25em;margin-top:-2em}.alert[_ngcontent-%COMP%] .close[_ngcontent-%COMP%]{right:-5px}.alert[_ngcontent-%COMP%] .undo-button[_ngcontent-%COMP%]{cursor:pointer}"]],data:{animation:[{type:7,name:"slideInOut",definitions:[{type:1,expr:":enter",animation:[{type:6,styles:{transform:"translateX(100%)"},offset:null},{type:4,styles:{type:6,styles:{transform:"translateX(0)"},offset:null},timings:"400ms ease-in-out"}],options:null},{type:1,expr:":leave",animation:[{type:6,styles:{transform:"translateX(0)"},offset:null},{type:4,styles:{type:6,styles:{transform:"translateX(100%)"},offset:null},timings:"400ms ease-in-out"}],options:null}],options:{}}]}});function yf(e){return r.Qb(0,[(e()(),r.ub(0,0,null,null,1,"a",[["class","undo-button"]],null,[[null,"click"]],function(e,t,n){var r=!0;return"click"===t&&(r=!1!==e.component.clickOnUndo()&&r),r},null,null)),(e()(),r.Ob(-1,null,["Undo"]))],null,null)}function bf(e){return r.Qb(0,[(e()(),r.ub(0,0,null,null,10,"div",[["class","alert alert-warning alert-dismissible"],["role","alert"]],[[24,"@slideInOut",0]],null,null,null,null)),(e()(),r.Ob(-1,null,["\n "])),(e()(),r.ub(2,0,null,null,4,"button",[["aria-label","Close"],["class","close"],["type","button"]],null,[[null,"click"]],function(e,t,n){var r=!0;return"click"===t&&(r=!1!==e.component.clickOnClose()&&r),r},null,null)),(e()(),r.Ob(-1,null,["\n "])),(e()(),r.ub(4,0,null,null,1,"span",[["aria-hidden","true"]],null,null,null,null,null)),(e()(),r.Ob(-1,null,["\xd7"])),(e()(),r.Ob(-1,null,["\n "])),(e()(),r.Ob(7,null,["\n ","\n "])),(e()(),r.jb(16777216,null,null,1,null,yf)),r.tb(9,16384,null,0,ie,[r.P,r.M],{ngIf:[0,"ngIf"]},null),(e()(),r.Ob(-1,null,["\n "]))],function(e,t){e(t,9,0,t.component.undoable)},function(e,t){var n=t.component;e(t,0,0,void 0),e(t,7,0,n.text)})}function mf(e){return r.Qb(2,[(e()(),r.ub(0,0,null,null,4,"div",[["class","pull-right"]],null,null,null,null,null)),(e()(),r.Ob(-1,null,["\n "])),(e()(),r.jb(16777216,null,null,1,null,bf)),r.tb(3,16384,null,0,ie,[r.P,r.M],{ngIf:[0,"ngIf"]},null),(e()(),r.Ob(-1,null,["\n"])),(e()(),r.Ob(-1,null,["\n"]))],function(e,t){e(t,3,0,t.component.text)},null)}var gf=function(){function e(e){this.store=e,this.undoableNotification$=this.store.select(Qu)}return e.prototype.onUndoLastNotification=function(e){this.store.dispatch(new mu(e))},e.prototype.onDismissLastNotification=function(){this.store.dispatch(new gu)},e}(),vf=r.sb({encapsulation:2,styles:[],data:{}});function kf(e){return r.Qb(2,[(e()(),r.ub(0,0,null,null,3,"div",[],null,null,null,null,null)),(e()(),r.Ob(-1,null,["\n "])),r.Fb(null,0),(e()(),r.Ob(-1,null,["\n"])),(e()(),r.Ob(-1,null,["\n"])),(e()(),r.ub(5,0,null,null,9,"div",[["class","row"]],null,null,null,null,null)),(e()(),r.Ob(-1,null,["\n "])),(e()(),r.ub(7,0,null,null,6,"div",[["class","col-xs-12"]],null,null,null,null,null)),(e()(),r.Ob(-1,null,["\n "])),(e()(),r.ub(9,0,null,null,3,"undoable-notifier",[],null,[[null,"close"],[null,"undo"]],function(e,t,n){var r=!0,i=e.component;return"close"===t&&(r=!1!==i.onDismissLastNotification()&&r),"undo"===t&&(r=!1!==i.onUndoLastNotification(n)&&r),r},mf,hf)),r.tb(10,573440,null,0,df,[],{notification:[0,"notification"]},{close:"close",undo:"undo"}),r.Ib(131072,ye,[r.h]),(e()(),r.Ob(-1,null,["\n "])),(e()(),r.Ob(-1,null,["\n "])),(e()(),r.Ob(-1,null,["\n"])),(e()(),r.Ob(-1,null,["\n\n"]))],function(e,t){var n=t.component;e(t,10,0,r.Pb(t,10,0,r.Gb(t,11).transform(n.undoableNotification$)))},null)}var _f=function(){function e(e,t){this.elementRef=e,this.renderer=t}return e.prototype.onFocus=function(){this.originalValue=this.elementRef.nativeElement.value},e.prototype.onEscape=function(){this.renderer.setProperty(this.elementRef.nativeElement,"value",this.originalValue),this.elementRef.nativeElement.blur()},e}(),wf='Delete keymap',Of=function(){function e(e,t){this.store=e,this.renderer=t,this.downloadClick=new r.m,this.trashTitle=wf}return e.prototype.ngOnChanges=function(e){e.keymap&&(this.setKeymapTitle(),this.setName(),this.setAbbreviation()),e.deletable&&this.setTrashTitle()},e.prototype.windowResize=function(){this.calculateHeaderTextWidth(this.keymap.name)},e.prototype.setDefault=function(){this.keymap.isDefault||this.store.dispatch(new Zo(this.keymap.abbreviation))},e.prototype.removeKeymap=function(){this.deletable&&this.store.dispatch(new Xo(this.keymap.abbreviation))},e.prototype.duplicateKeymap=function(){this.store.dispatch(new Wo(this.keymap))},e.prototype.editKeymapName=function(e){El(e)?this.store.dispatch(new Jo({abbr:this.keymap.abbreviation,name:e})):this.setName()},e.prototype.editKeymapAbbr=function(e){var t=new RegExp(/^[a-zA-Z\d]+$/g);e.length<1||e.length>3||!t.test(e)?this.setAbbreviation():(e=e.toUpperCase(),this.store.dispatch(new qo({name:this.keymap.name,abbr:this.keymap.abbreviation,newAbbr:e})))},e.prototype.setKeymapTitle=function(){this.starTitle=this.keymap.isDefault?"This is the default keymap which gets activated when powering the keyboard.":"Makes this keymap the default keymap which gets activated when powering the keyboard."},e.prototype.setTrashTitle=function(){this.trashTitle=this.deletable?wf:'The last keymap cannot be deleted.'},e.prototype.onDownloadIconClick=function(){this.downloadClick.emit()},e.prototype.calculateHeaderTextWidth=function(e){var t=this.keymapName.nativeElement,n=t.parentElement.offsetWidth-530,r=Sl(window.getComputedStyle(t),e);this.renderer.setStyle(t,"width",Math.min(n,r)+"px")},e.prototype.setName=function(){this.renderer.setProperty(this.keymapName.nativeElement,"value",this.keymap.name),this.calculateHeaderTextWidth(this.keymap.name)},e.prototype.setAbbreviation=function(){this.renderer.setProperty(this.keymapAbbr.nativeElement,"value",this.keymap.abbreviation)},e}(),Af=r.sb({encapsulation:0,styles:[["[_nghost-%COMP%]{display:block}.keymap__is-default.fa-star-o[_ngcontent-%COMP%]{cursor:pointer}.keymap__is-default.fa-star-o[_ngcontent-%COMP%]:hover{color:#337ab7}.keymap__remove[_ngcontent-%COMP%]{font-size:.75em;top:8px}.keymap__remove[_ngcontent-%COMP%]:not(.disabled):hover{cursor:pointer;color:#900}.keymap__remove.disabled[_ngcontent-%COMP%]{opacity:.25}.keymap__duplicate[_ngcontent-%COMP%]{font-size:.75em;top:7px;margin-right:15px;position:relative}.keymap__duplicate[_ngcontent-%COMP%]:hover{cursor:pointer;color:#337ab7}.keymap__download[_ngcontent-%COMP%]{top:10px;font-size:.8em;position:relative;margin-right:10px}.keymap__download[_ngcontent-%COMP%]:hover{cursor:pointer;color:#337ab7}.pane-title[_ngcontent-%COMP%]{margin-bottom:1em}.pane-title__abbrev[_ngcontent-%COMP%], .pane-title__name[_ngcontent-%COMP%]{border:none;border-bottom:2px dotted #999;padding:0;margin:0 .25rem}.pane-title__abbrev[_ngcontent-%COMP%]:focus, .pane-title__name[_ngcontent-%COMP%]:focus{box-shadow:0 0 0 1px #ccc,0 0 5px 0 #ccc;border-color:transparent}.pane-title__name[_ngcontent-%COMP%]{width:290px;text-overflow:ellipsis}.pane-title__abbrev[_ngcontent-%COMP%]{width:90px;text-align:center}"]],data:{}});function Cf(e){return r.Qb(2,[r.Mb(402653184,1,{keymapName:0}),r.Mb(402653184,2,{keymapAbbr:0}),(e()(),r.ub(2,0,null,null,29,"uhk-header",[],null,null,null,kf,vf)),r.tb(3,49152,null,0,gf,[L.m],null,null),(e()(),r.Ob(-1,0,["\n "])),(e()(),r.ub(5,0,null,0,25,"div",[["class","row"]],null,null,null,null,null)),(e()(),r.Ob(-1,null,["\n "])),(e()(),r.ub(7,0,null,null,22,"h1",[["class","col-xs-12 pane-title"]],null,null,null,null,null)),(e()(),r.Ob(-1,null,["\n "])),(e()(),r.ub(9,0,null,null,0,"i",[["class","fa fa-keyboard-o"]],null,null,null,null,null)),(e()(),r.Ob(-1,null,["\n "])),(e()(),r.ub(11,0,[[1,0],["name",1]],null,1,"input",[["cancelable",""],["class","keymap__name pane-title__name"],["type","text"]],null,[[null,"change"],[null,"keyup.enter"],[null,"keyup"],[null,"focus"],[null,"keyup.escape"]],function(e,t,n){var i=!0,o=e.component;return"focus"===t&&(i=!1!==r.Gb(e,12).onFocus()&&i),"keyup.escape"===t&&(i=!1!==r.Gb(e,12).onEscape()&&i),"change"===t&&(i=!1!==o.editKeymapName(n.target.value)&&i),"keyup.enter"===t&&(i=!1!==r.Gb(e,11).blur()&&i),"keyup"===t&&(i=!1!==o.calculateHeaderTextWidth(n.target.value)&&i),i},null,null)),r.tb(12,16384,null,0,_f,[r.k,r.E],null,null),(e()(),r.Ob(-1,null,[" keymap\n ("])),(e()(),r.ub(14,0,[[2,0],["abbr",1]],null,1,"input",[["cancelable",""],["class","keymap__abbrev pane-title__abbrev"],["type","text"]],[[1,"maxLength",0]],[[null,"change"],[null,"keyup.enter"],[null,"focus"],[null,"keyup.escape"]],function(e,t,n){var i=!0,o=e.component;return"focus"===t&&(i=!1!==r.Gb(e,15).onFocus()&&i),"keyup.escape"===t&&(i=!1!==r.Gb(e,15).onEscape()&&i),"change"===t&&(i=!1!==o.editKeymapAbbr(n.target.value)&&i),"keyup.enter"===t&&(i=!1!==r.Gb(e,14).blur()&&i),i},null,null)),r.tb(15,16384,null,0,_f,[r.k,r.E],null,null),(e()(),r.Ob(-1,null,[")\n "])),(e()(),r.ub(17,0,null,null,4,"i",[["class","fa keymap__is-default"],["data-placement","bottom"],["data-toggle","tooltip"]],[[1,"data-placement",0]],[[null,"click"]],function(e,t,n){var r=!0;return"click"===t&&(r=!1!==e.component.setDefault()&&r),r},null,null)),r.Lb(512,null,Z,X,[r.t,r.u,r.k,r.E]),r.tb(19,278528,null,0,ee,[Z],{klass:[0,"klass"],ngClass:[1,"ngClass"]},null),r.Jb(20,{"fa-star-o":0,"fa-star":1}),r.tb(21,1589248,null,0,hs,[r.k,On],{title:[0,"title"]},null),(e()(),r.Ob(-1,null,["\n "])),(e()(),r.ub(23,0,null,null,1,"i",[["class","glyphicon glyphicon-trash keymap__remove pull-right"],["data-placement","bottom"],["data-toggle","tooltip"],["html","true"]],[[2,"disabled",null],[1,"data-placement",0]],[[null,"click"]],function(e,t,n){var r=!0;return"click"===t&&(r=!1!==e.component.removeKeymap()&&r),r},null,null)),r.tb(24,1589248,null,0,hs,[r.k,On],{title:[0,"title"],html:[1,"html"]},null),(e()(),r.Ob(-1,null,["\n "])),(e()(),r.ub(26,0,null,null,1,"i",[["class","fa fa-files-o keymap__duplicate pull-right"],["data-placement","bottom"],["data-toggle","tooltip"],["title","Duplicate keymap"]],[[1,"data-placement",0]],[[null,"click"]],function(e,t,n){var r=!0;return"click"===t&&(r=!1!==e.component.duplicateKeymap()&&r),r},null,null)),r.tb(27,1589248,null,0,hs,[r.k,On],{title:[0,"title"]},null),(e()(),r.Ob(-1,null,["\n "])),(e()(),r.Ob(-1,null,["\n "])),(e()(),r.Ob(-1,null,["\n "])),(e()(),r.Ob(-1,0,["\n"])),(e()(),r.Ob(-1,null,["\n"]))],function(e,t){var n=t.component,r=e(t,20,0,!n.keymap.isDefault,n.keymap.isDefault);e(t,19,0,"fa keymap__is-default",r),e(t,21,0,n.starTitle),e(t,24,0,n.trashTitle,"true"),e(t,27,0,"Duplicate keymap")},function(e,t){var n=t.component;e(t,14,0,3),e(t,17,0,r.Gb(t,21).placement),e(t,23,0,!n.deletable,r.Gb(t,24).placement),e(t,26,0,r.Gb(t,27).placement)})}var Tf=function(){function e(){this.select=new r.m,this.buttons=["Base","Mod","Fn","Mouse"],this.current=0}return e.prototype.selectLayer=function(e){this.current!==e&&(this.select.emit({oldIndex:this.current,index:e}),this.current=e)},e}(),xf=r.sb({encapsulation:0,styles:[["[_nghost-%COMP%]{display:block}.disabled[_nghost-%COMP%] button[_ngcontent-%COMP%]{cursor:no-drop;background:rgba(204,204,204,.43);pointer-events:none}.disabled[_nghost-%COMP%] button.btn-primary[_ngcontent-%COMP%]{background:#7c7c7c;border-color:#7c7c7c}.uhk__layer-switcher--wrapper[_ngcontent-%COMP%]{position:relative;margin-bottom:2rem}.uhk__layer-switcher--wrapper[_ngcontent-%COMP%]:before{content:attr(data-title);display:inline-block;position:absolute;bottom:.55em;right:100%;font-size:18px;padding-right:.45em;margin:0}"]],data:{}});function Sf(e){return r.Qb(0,[(e()(),r.ub(0,0,null,null,1,"button",[["class","btn btn-default"],["type","button"]],[[2,"btn-primary",null]],[[null,"click"]],function(e,t,n){var r=!0;return"click"===t&&(r=!1!==e.component.selectLayer(e.context.index)&&r),r},null,null)),(e()(),r.Ob(1,null,["\n ","\n "]))],null,function(e,t){e(t,0,0,t.context.index===t.component.current),e(t,1,0,t.context.$implicit)})}function Mf(e){return r.Qb(0,[(e()(),r.ub(0,0,null,null,7,"div",[["class","text-center"]],null,null,null,null,null)),(e()(),r.Ob(-1,null,["\n "])),(e()(),r.ub(2,0,null,null,4,"span",[["class","uhk__layer-switcher--wrapper btn-group btn-group-lg"],["data-title","Layers: "],["role","group"]],null,null,null,null,null)),(e()(),r.Ob(-1,null,["\n "])),(e()(),r.jb(16777216,null,null,1,null,Sf)),r.tb(5,278528,null,0,ne,[r.P,r.M,r.t],{ngForOf:[0,"ngForOf"]},null),(e()(),r.Ob(-1,null,["\n "])),(e()(),r.Ob(-1,null,["\n"]))],function(e,t){e(t,5,0,t.component.buttons)},null)}var Ef={font:"12px Helvetica"},Pf=function(){function e(){this.textIndent=16}return e.prototype.ngOnInit=function(){this.viewBox=[0,0,this.width,this.height].join(" "),this.textY=this.height/2-2},e.prototype.ngOnChanges=function(e){e.text&&this.calculateTextPosition()},e.prototype.calculateTextPosition=function(){var e=Sl(Ef,this.text)+this.textIndent,t=Math.max(0,(this.width-e)/2);this.transform="translate("+t+",0)"},e}(),If=r.sb({encapsulation:0,styles:[["text[_ngcontent-%COMP%]{dominant-baseline:text-bottom}"]],data:{}});function jf(e){return r.Qb(2,[(e()(),r.ub(0,0,null,null,15,":svg:svg",[],[[1,"viewBox",0],[1,"width",0],[1,"height",0],[1,"y",0]],null,null,null,null)),(e()(),r.Ob(-1,null,["\n "])),(e()(),r.ub(2,0,null,null,12,":svg:g",[],[[1,"transform",0]],null,null,null,null)),(e()(),r.Ob(-1,null,["\n "])),(e()(),r.ub(4,0,null,null,6,":svg:svg",[["height","12"],["viewBox","0 0 14 14"],["width","12"],["x","2"]],[[1,"y",0]],null,null,null,null)),(e()(),r.Ob(-1,null,["\n "])),(e()(),r.ub(6,0,null,null,0,":svg:ellipse",[["cx","7"],["cy","7"],["fill-opacity","0"],["rx","6.5"],["ry","6.5"],["stroke","#fff"],["stroke-width","1"]],null,null,null,null,null)),(e()(),r.Ob(-1,null,["\n "])),(e()(),r.ub(8,0,null,null,1,":svg:text",[["alignment-baseline","middle"],["font-family","Helvetica"],["font-size","12"],["stroke-width","0"],["text-anchor","start"],["x","4"],["y","7.8"]],null,null,null,null,null)),(e()(),r.Ob(-1,null,["2\n "])),(e()(),r.Ob(-1,null,["\n "])),(e()(),r.Ob(-1,null,["\n "])),(e()(),r.ub(12,0,null,null,1,":svg:text",[["alignment-baseline","middle"],["font-size","12"],["text-anchor","start"]],[[1,"y",0],[1,"x",0]],null,null,null,null)),(e()(),r.Ob(13,null,["\n ","\n "])),(e()(),r.Ob(-1,null,["\n "])),(e()(),r.Ob(-1,null,["\n"])),(e()(),r.Ob(-1,null,["\n"]))],null,function(e,t){var n=t.component;e(t,0,0,n.viewBox,n.width,n.height,n.y),e(t,2,0,n.transform),e(t,4,0,n.textY/3.5),e(t,12,0,n.textY,n.textIndent),e(t,13,0,n.text)})}var Rf=function(e,t){return e>2.4*t},Lf=function(){function e(){}return e.prototype.ngOnChanges=function(e){this.calculatePositions()},e.prototype.calculatePositions=function(){var e=0;this.secondaryText&&Rf(this.width,this.height)&&(e=5),this.svgWidth=this.width/2.075,this.svgHeight=this.height/3,this.svgX=(this.width-this.svgWidth)/2,this.secondaryHeight=this.height/4,this.secondaryTextY=this.height-this.secondaryHeight-1-e},e}(),Nf=r.sb({encapsulation:2,styles:[],data:{}});function Df(e){return r.Qb(0,[(e()(),r.ub(0,0,null,null,2,":svg:g",[["svg-secondary-role",""]],null,null,null,jf,If)),r.tb(1,638976,null,0,Pf,[],{height:[0,"height"],width:[1,"width"],y:[2,"y"],text:[3,"text"]},null),(e()(),r.Ob(-1,null,["\n"]))],function(e,t){var n=t.component;e(t,1,0,20,n.width,n.secondaryTextY,n.secondaryText)},null)}function Uf(e){return r.Qb(2,[(e()(),r.ub(0,0,null,null,1,":svg:use",[],[[1,":xlink:href",0],[1,"width",0],[1,"height",0],[1,"x",0],[1,"y",0]],null,null,null,null)),(e()(),r.Ob(-1,null,["\n"])),(e()(),r.Ob(-1,null,["\n"])),(e()(),r.jb(16777216,null,null,1,null,Df)),r.tb(4,16384,null,0,ie,[r.P,r.M],{ngIf:[0,"ngIf"]},null),(e()(),r.Ob(-1,null,["\n"]))],function(e,t){e(t,4,0,t.component.secondaryText)},function(e,t){var n=t.component;e(t,0,0,n.icon,n.svgWidth,n.svgHeight,n.svgX,n.svgHeight)})}var Ff=function(){function e(){}return e.prototype.ngOnChanges=function(e){this.calculatePositions()},e.prototype.calculatePositions=function(){var e=0,t=0;this.secondaryText&&Rf(this.width,this.height)&&(e=this.height/5,t=5),this.textX=this.width/2,this.textY=this.height/2-e,this.secondaryHeight=this.height/4,this.secondaryTextY=this.height-this.secondaryHeight-1-t},e}(),Kf=r.sb({encapsulation:2,styles:[],data:{}});function Bf(e){return r.Qb(0,[(e()(),r.ub(0,0,null,null,2,":svg:g",[["svg-secondary-role",""]],null,null,null,jf,If)),r.tb(1,638976,null,0,Pf,[],{height:[0,"height"],width:[1,"width"],y:[2,"y"],text:[3,"text"]},null),(e()(),r.Ob(-1,null,["\n"]))],function(e,t){var n=t.component;e(t,1,0,20,n.width,n.secondaryTextY,n.secondaryText)},null)}function Vf(e){return r.Qb(2,[(e()(),r.ub(0,0,null,null,1,":svg:text",[["alignment-baseline","middle"],["text-anchor","middle"]],[[1,"x",0],[1,"y",0]],null,null,null,null)),(e()(),r.Ob(1,null,["\n ","\n"])),(e()(),r.Ob(-1,null,["\n"])),(e()(),r.jb(16777216,null,null,1,null,Bf)),r.tb(4,16384,null,0,ie,[r.P,r.M],{ngIf:[0,"ngIf"]},null),(e()(),r.Ob(-1,null,["\n"]))],function(e,t){e(t,4,0,t.component.secondaryText)},function(e,t){var n=t.component;e(t,0,0,n.textX,n.textY),e(t,1,0,n.text)})}var Gf=function(){function e(){this.spanYs=[]}return e.prototype.ngOnChanges=function(e){this.calculatePositions()},e.prototype.calculatePositions=function(){var e=0;this.secondaryHeight=0;var t=this.height;this.secondaryText&&(e=0,this.secondaryHeight=this.height/4,t-=this.secondaryHeight),this.textY=t/2,this.spanX=this.width/2,this.spanYs=[];for(var n=0;n"]),this.basicScanCodeTextMap.set(56,["/","?"]),this.basicScanCodeTextMap.set(57,["Caps Lock"]),this.basicScanCodeTextMap.set(58,["F1"]),this.basicScanCodeTextMap.set(59,["F2"]),this.basicScanCodeTextMap.set(60,["F3"]),this.basicScanCodeTextMap.set(61,["F4"]),this.basicScanCodeTextMap.set(62,["F5"]),this.basicScanCodeTextMap.set(63,["F6"]),this.basicScanCodeTextMap.set(64,["F7"]),this.basicScanCodeTextMap.set(65,["F8"]),this.basicScanCodeTextMap.set(66,["F9"]),this.basicScanCodeTextMap.set(67,["F10"]),this.basicScanCodeTextMap.set(68,["F11"]),this.basicScanCodeTextMap.set(69,["F12"]),this.basicScanCodeTextMap.set(70,["PrtScn","SysRq"]),this.basicScanCodeTextMap.set(71,["ScrLk"]),this.basicScanCodeTextMap.set(72,["Pause"]),this.basicScanCodeTextMap.set(73,["Insert"]),this.basicScanCodeTextMap.set(74,["Home"]),this.basicScanCodeTextMap.set(75,["PgUp"]),this.basicScanCodeTextMap.set(76,["Del"]),this.basicScanCodeTextMap.set(77,["End"]),this.basicScanCodeTextMap.set(78,["PgDn"]),this.basicScanCodeTextMap.set(79,["Right Arrow"]),this.basicScanCodeTextMap.set(80,["Left Arrow"]),this.basicScanCodeTextMap.set(81,["Down Arrow"]),this.basicScanCodeTextMap.set(82,["Up Arrow"]),this.basicScanCodeTextMap.set(83,["NumLk"]),this.basicScanCodeTextMap.set(84,["/"]),this.basicScanCodeTextMap.set(85,["*"]),this.basicScanCodeTextMap.set(86,["-"]),this.basicScanCodeTextMap.set(87,["+"]),this.basicScanCodeTextMap.set(88,[this.getOsSpecificText("Enter")]),this.basicScanCodeTextMap.set(89,["end","1"]),this.basicScanCodeTextMap.set(90,["2"]),this.basicScanCodeTextMap.set(91,["pgdn","3"]),this.basicScanCodeTextMap.set(92,["4"]),this.basicScanCodeTextMap.set(93,["5"]),this.basicScanCodeTextMap.set(94,["6"]),this.basicScanCodeTextMap.set(95,["home","7"]),this.basicScanCodeTextMap.set(96,["8"]),this.basicScanCodeTextMap.set(97,["pgup","9"]),this.basicScanCodeTextMap.set(98,["Insert","0"]),this.basicScanCodeTextMap.set(99,["Del","."]),this.basicScanCodeTextMap.set(100,["ISO key","|"]),this.basicScanCodeTextMap.set(101,["Menu"]),this.basicScanCodeTextMap.set(104,["F13"]),this.basicScanCodeTextMap.set(105,["F14"]),this.basicScanCodeTextMap.set(106,["F15"]),this.basicScanCodeTextMap.set(107,["F16"]),this.basicScanCodeTextMap.set(108,["F17"]),this.basicScanCodeTextMap.set(109,["F18"]),this.basicScanCodeTextMap.set(110,["F19"]),this.basicScanCodeTextMap.set(111,["F20"]),this.basicScanCodeTextMap.set(112,["F21"]),this.basicScanCodeTextMap.set(113,["F22"]),this.basicScanCodeTextMap.set(114,["F23"]),this.basicScanCodeTextMap.set(115,["F24"]),this.basicScanCodeTextMap.set(135,["Int1"]),this.basicScanCodeTextMap.set(136,["Int2"]),this.basicScanCodeTextMap.set(137,["Int3"]),this.basicScanCodeTextMap.set(144,["Lang1"]),this.basicScanCodeTextMap.set(145,["Lang2"]),this.basicScanCodeTextMap.set(176,["00"]),this.basicScanCodeTextMap.set(177,["000"]),this.mediaScanCodeTextMap=new Map,this.mediaScanCodeTextMap.set(176,["Play"]),this.mediaScanCodeTextMap.set(177,["Pause"]),this.mediaScanCodeTextMap.set(181,["Next"]),this.mediaScanCodeTextMap.set(182,["Prev"]),this.mediaScanCodeTextMap.set(183,["Stop"]),this.mediaScanCodeTextMap.set(184,["Eject"]),this.mediaScanCodeTextMap.set(205,["Pause","Play"]),this.mediaScanCodeTextMap.set(226,["Mute"]),this.mediaScanCodeTextMap.set(233,["Vol +"]),this.mediaScanCodeTextMap.set(234,["Vol -"]),this.mediaScanCodeTextMap.set(394,["Launch Email Client"]),this.mediaScanCodeTextMap.set(402,["Launch Calculator"]),this.mediaScanCodeTextMap.set(548,["Hist -"]),this.mediaScanCodeTextMap.set(549,["Hist +"]),this.systemScanCodeTextMap=new Map,this.systemScanCodeTextMap.set(129,["Power Down"]),this.systemScanCodeTextMap.set(130,["Sleep"]),this.systemScanCodeTextMap.set(131,["Wake Up"])},e.prototype.initScancodeIcons=function(){this.basicScancodeIcons=new Map,this.basicScancodeIcons.set(42,"icon-kbd__backspace"),this.basicScancodeIcons.set(57,"icon-kbd__caps-lock"),this.basicScancodeIcons.set(79,"icon-kbd__mod--arrow-right"),this.basicScancodeIcons.set(80,"icon-kbd__mod--arrow-left"),this.basicScancodeIcons.set(81,"icon-kbd__mod--arrow-down"),this.basicScancodeIcons.set(82,"icon-kbd__mod--arrow-up"),this.basicScancodeIcons.set(101,"icon-kbd__mod--menu"),this.mediaScancodeIcons=new Map,this.mediaScancodeIcons.set(176,"icon-kbd__media--play"),this.mediaScancodeIcons.set(177,"icon-kbd__media--pause"),this.mediaScancodeIcons.set(181,"icon-kbd__media--next"),this.mediaScancodeIcons.set(182,"icon-kbd__media--prev"),this.mediaScancodeIcons.set(184,"icon-kbd__fn--eject"),this.mediaScancodeIcons.set(205,"icon-kbd__play-pause"),this.mediaScancodeIcons.set(226,"icon-kbd__media--mute"),this.mediaScancodeIcons.set(233,"icon-kbd__media--vol-up"),this.mediaScancodeIcons.set(234,"icon-kbd__media--vol-down"),this.mediaScancodeIcons.set(394,"icon-kbd__media--email-client"),this.mediaScancodeIcons.set(402,"icon-kbd__media--calculator"),this.systemScancodeIcons=new Map,this.systemScancodeIcons.set(129,"icon-kbd__system_power_down"),this.systemScancodeIcons.set(130,"icon-kbd__system_sleep"),this.systemScancodeIcons.set(131,"icon-kbd__system_wake_up")},e.prototype.initNameToFileNames=function(){this.nameToFileName=new Map,this.nameToFileName.set("toggle","icon-kbd__fn--toggle"),this.nameToFileName.set("double-tap","icon-kbd__fn--double-tap"),this.nameToFileName.set("switch-keymap","icon-kbd__mod--switch-keymap"),this.nameToFileName.set("macro","icon-icon__macro"),this.nameToFileName.set("shift","icon-kbd__default--modifier-shift"),this.operatingSystem===Ru.Mac?(this.nameToFileName.set("option","icon-kbd__default--modifier-option"),this.nameToFileName.set("command","icon-kbd__default--modifier-command")):this.operatingSystem===Ru.Windows&&this.nameToFileName.set("command","icon-kbd__default--modifier-windows"),this.nameToFileName.set("mouse","icon-kbd__mouse"),this.nameToFileName.set("left-arrow","icon-kbd__mod--arrow-left"),this.nameToFileName.set("right-arrow","icon-kbd__mod--arrow-right"),this.nameToFileName.set("down-arrow","icon-kbd__mod--arrow-down"),this.nameToFileName.set("up-arrow","icon-kbd__mod--arrow-up"),this.nameToFileName.set("scroll-left","icon-kbd__mouse--scroll-left"),this.nameToFileName.set("scroll-right","icon-kbd__mouse--scroll-right"),this.nameToFileName.set("scroll-down","icon-kbd__mouse--scroll-down"),this.nameToFileName.set("scroll-up","icon-kbd__mouse--scroll-up")},e.prototype.initSecondaryRoleTexts=function(){this.secondaryRoleTexts=new Map,this.secondaryRoleTexts.set(0,"LCtrl"),this.secondaryRoleTexts.set(1,"LShift"),this.secondaryRoleTexts.set(2,"LAlt"),this.secondaryRoleTexts.set(3,"LSuper"),this.secondaryRoleTexts.set(4,"RCtrl"),this.secondaryRoleTexts.set(5,"RShift"),this.secondaryRoleTexts.set(6,"RAlt"),this.secondaryRoleTexts.set(7,"RSuper"),this.secondaryRoleTexts.set(8,"Mod"),this.secondaryRoleTexts.set(9,"Fn"),this.secondaryRoleTexts.set(10,"Mouse")},e}(),qf=function(){return function(){this.width=0,this.height=0,this.x=0,this.y=0,this.disabled=!0}}(),Jf=function(){function e(e){this.mapper=e,this.modifierIconNames={},this.textContainer=new qf,this.modifierContainer=new qf,this.shift=new qf,this.control=new qf,this.option=new qf,this.command=new qf}return e.prototype.ngOnChanges=function(){this.calculatePositions()},e.prototype.calculatePositions=function(){var e=0,t=0;this.thisSecondaryRoleText=this.secondaryText,this.subComponentSecondaryRoleText=null;var n=this.width<1.8*this.height,r=Rf(this.width,this.height);if(this.secondaryText&&r&&(e=this.height/5,t=5),this.keystrokeAction.hasScancode()){var i,o=this.keystrokeAction.scancode;this.labelSource=this.mapper.scanCodeToSvgImagePath(o,this.keystrokeAction.type),this.labelSource?this.labelType="icon":(i=this.mapper.scanCodeToText(o,this.keystrokeAction.type))&&(this.secondaryText&&2===i.length?r||n?(this.labelSource=i[0],this.labelType="one-line"):(this.labelSource=i,this.labelType="two-line",this.thisSecondaryRoleText=null,this.subComponentSecondaryRoleText=this.secondaryText):1===i.length?(this.labelSource=i[0],this.labelType="one-line"):(this.labelSource=i,this.labelType="two-line"))}else this.labelType="empty";this.shift.disabled=!this.keystrokeAction.isActive($o.KeyModifiers.leftShift|$o.KeyModifiers.rightShift),this.control.disabled=!this.keystrokeAction.isActive($o.KeyModifiers.leftCtrl|$o.KeyModifiers.rightCtrl),this.option.disabled=!this.keystrokeAction.isActive($o.KeyModifiers.leftAlt|$o.KeyModifiers.rightAlt),this.command.disabled=!this.keystrokeAction.isActive($o.KeyModifiers.leftGui|$o.KeyModifiers.rightGui),this.secondaryHeight=this.secondaryText?this.height/4:0,this.secondaryTextY=this.height-this.secondaryHeight-1-t,this.viewBox=[0,0,this.width,this.height].join(" "),this.modifierIconNames.shift=this.mapper.getIcon("shift"),this.modifierIconNames.option=this.mapper.getIcon("option"),this.modifierIconNames.command=this.mapper.getIcon("command"),this.textContainer.y=0;var l=this.height/this.width;if(this.secondaryTextWidth=this.width,n){var u=this.width/4,a=this.height,s=(p=.8)*l*u,c=p*a;this.modifierContainer.width=this.width,this.modifierContainer.height=this.height/5,this.modifierContainer.y=this.height-this.modifierContainer.height-this.secondaryHeight,this.shift.width=s,this.shift.height=c,this.shift.x=(u-s)/2,this.shift.y=(a-c)/2,this.control.width=s,this.control.height=c,this.control.x=this.shift.x+u,this.control.y=this.shift.y,this.option.width=s,this.option.height=c,this.option.x=this.control.x+u,this.option.y=this.shift.y,this.command.width=s,this.command.height=c,this.command.x=this.option.x+u,this.command.y=this.shift.y,this.textContainer.y=-this.modifierContainer.height/2-this.secondaryHeight/2}else{this.modifierContainer.width=this.width/4,this.modifierContainer.height=this.height,this.modifierContainer.x=this.width-this.modifierContainer.width;var p,f=Math.min(this.modifierContainer.width/2,this.modifierContainer.height/2);c=(p=.8)*this.height*(f/this.modifierContainer.height),this.shift.width=s=p*this.width*(f/this.modifierContainer.width),this.shift.height=c,this.shift.x=this.width/4-s/2,this.shift.y=this.height/4-c/2,this.control.width=s,this.control.height=c,this.control.x=this.shift.x+this.width/2,this.control.y=this.shift.y,this.option.width=s,this.option.height=c,this.option.x=this.shift.x,this.option.y=this.shift.y+this.height/2,this.command.width=s,this.command.height=c,this.command.x=this.option.x+this.width/2,this.command.y=this.option.y,this.textContainer.x=-this.modifierContainer.width/2,this.secondaryTextWidth=this.width-this.modifierContainer.width}this.textContainer.y-=e,this.textContainer.width=this.width,this.textContainer.height=this.height},e}(),Yf=r.sb({encapsulation:0,styles:[[".disabled[_ngcontent-%COMP%]{fill:gray}text[_ngcontent-%COMP%]{font-size:100px}"]],data:{}});function Zf(e){return r.Qb(0,[(e()(),r.ub(0,0,null,null,2,":svg:g",[["svg-single-icon-key",""]],null,null,null,Uf,Nf)),r.tb(1,573440,null,0,Lf,[],{width:[0,"width"],height:[1,"height"],icon:[2,"icon"]},null),(e()(),r.Ob(-1,null,["\n "]))],function(e,t){var n=t.component;e(t,1,0,n.width,n.height,n.labelSource)},null)}function Xf(e){return r.Qb(0,[(e()(),r.ub(0,0,null,null,2,":svg:g",[["svg-one-line-text-key",""]],null,null,null,Vf,Kf)),r.tb(1,573440,null,0,Ff,[],{height:[0,"height"],width:[1,"width"],text:[2,"text"]},null),(e()(),r.Ob(-1,null,["\n "]))],function(e,t){var n=t.component;e(t,1,0,n.height,n.width,n.labelSource)},null)}function ed(e){return r.Qb(0,[(e()(),r.ub(0,0,null,null,2,":svg:g",[["svg-two-line-text-key",""]],null,null,null,Qf,Hf)),r.tb(1,573440,null,0,Gf,[],{height:[0,"height"],width:[1,"width"],texts:[2,"texts"],secondaryText:[3,"secondaryText"]},null),(e()(),r.Ob(-1,null,["\n "]))],function(e,t){var n=t.component;e(t,1,0,n.height,n.width,n.labelSource,n.subComponentSecondaryRoleText)},null)}function td(e){return r.Qb(0,[(e()(),r.ub(0,0,null,null,0,":svg:use",[],[[1,":xlink:href",0]],null,null,null,null))],null,function(e,t){e(t,0,0,t.component.modifierIconNames.option)})}function nd(e){return r.Qb(0,[(e()(),r.ub(0,0,null,null,1,":svg:text",[["alignment-baseline","middle"],["text-anchor","middle"],["x","50"],["y","55"]],null,null,null,null,null)),(e()(),r.Ob(-1,null,["A"]))],null,null)}function rd(e){return r.Qb(0,[(e()(),r.ub(0,0,null,null,0,":svg:use",[],[[1,":xlink:href",0]],null,null,null,null))],null,function(e,t){e(t,0,0,t.component.modifierIconNames.command)})}function id(e){return r.Qb(0,[(e()(),r.ub(0,0,null,null,1,":svg:text",[["alignment-baseline","middle"],["text-anchor","middle"],["x","50"],["y","55"]],null,null,null,null,null)),(e()(),r.Ob(-1,null,["S"]))],null,null)}function od(e){return r.Qb(0,[(e()(),r.ub(0,0,null,null,2,":svg:g",[["svg-secondary-role",""]],null,null,null,jf,If)),r.tb(1,638976,null,0,Pf,[],{height:[0,"height"],width:[1,"width"],y:[2,"y"],text:[3,"text"]},null),(e()(),r.Ob(-1,null,["\n"]))],function(e,t){var n=t.component;e(t,1,0,20,n.secondaryTextWidth,n.secondaryTextY,n.thisSecondaryRoleText)},null)}function ld(e){return r.Qb(2,[(e()(),r.ub(0,0,null,null,11,":svg:svg",[],[[1,"viewBox",0],[1,"width",0],[1,"height",0],[1,"x",0],[1,"y",0]],null,null,null,null)),r.tb(1,16384,null,0,ae,[],{ngSwitch:[0,"ngSwitch"]},null),(e()(),r.Ob(-1,null,["\n "])),(e()(),r.jb(16777216,null,null,1,null,Zf)),r.tb(4,278528,null,0,se,[r.P,r.M,ae],{ngSwitchCase:[0,"ngSwitchCase"]},null),(e()(),r.Ob(-1,null,["\n "])),(e()(),r.jb(16777216,null,null,1,null,Xf)),r.tb(7,278528,null,0,se,[r.P,r.M,ae],{ngSwitchCase:[0,"ngSwitchCase"]},null),(e()(),r.Ob(-1,null,["\n "])),(e()(),r.jb(16777216,null,null,1,null,ed)),r.tb(10,278528,null,0,se,[r.P,r.M,ae],{ngSwitchCase:[0,"ngSwitchCase"]},null),(e()(),r.Ob(-1,null,["\n"])),(e()(),r.Ob(-1,null,["\n"])),(e()(),r.ub(13,0,null,null,30,":svg:svg",[["preserveAspectRatio","none"]],[[1,"viewBox",0],[1,"width",0],[1,"height",0],[1,"x",0],[1,"y",0]],null,null,null,null)),(e()(),r.Ob(-1,null,["\n "])),(e()(),r.ub(15,0,null,null,3,":svg:svg",[["preserveAspectRatio","none"],["viewBox","0 0 100 100"]],[[1,"width",0],[1,"height",0],[1,"x",0],[1,"y",0],[2,"disabled",null]],null,null,null,null)),(e()(),r.Ob(-1,null,["\n "])),(e()(),r.ub(17,0,null,null,0,":svg:use",[],[[1,":xlink:href",0]],null,null,null,null)),(e()(),r.Ob(-1,null,["\n "])),(e()(),r.Ob(-1,null,["\n "])),(e()(),r.ub(20,0,null,null,4,":svg:svg",[["preserveAspectRatio","none"],["viewBox","0 0 100 100"]],[[1,"width",0],[1,"height",0],[1,"x",0],[1,"y",0],[2,"disabled",null]],null,null,null,null)),(e()(),r.Ob(-1,null,["\n "])),(e()(),r.ub(22,0,null,null,1,":svg:text",[["alignment-baseline","middle"],["text-anchor","middle"],["x","50"],["y","55"]],null,null,null,null,null)),(e()(),r.Ob(-1,null,["C"])),(e()(),r.Ob(-1,null,["\n "])),(e()(),r.Ob(-1,null,["\n "])),(e()(),r.ub(26,0,null,null,7,":svg:svg",[["preserveAspectRatio","none"],["viewBox","0 0 100 100"]],[[1,"width",0],[1,"height",0],[1,"x",0],[1,"y",0],[2,"disabled",null]],null,null,null,null)),(e()(),r.Ob(-1,null,["\n "])),(e()(),r.jb(16777216,null,null,1,null,td)),r.tb(29,16384,null,0,ie,[r.P,r.M],{ngIf:[0,"ngIf"]},null),(e()(),r.Ob(-1,null,["\n "])),(e()(),r.jb(16777216,null,null,1,null,nd)),r.tb(32,16384,null,0,ie,[r.P,r.M],{ngIf:[0,"ngIf"]},null),(e()(),r.Ob(-1,null,["\n "])),(e()(),r.Ob(-1,null,["\n "])),(e()(),r.ub(35,0,null,null,7,":svg:svg",[["preserveAspectRatio","none"],["viewBox","0 0 100 100"]],[[1,"width",0],[1,"height",0],[1,"x",0],[1,"y",0],[2,"disabled",null]],null,null,null,null)),(e()(),r.Ob(-1,null,["\n "])),(e()(),r.jb(16777216,null,null,1,null,rd)),r.tb(38,16384,null,0,ie,[r.P,r.M],{ngIf:[0,"ngIf"]},null),(e()(),r.Ob(-1,null,["\n "])),(e()(),r.jb(16777216,null,null,1,null,id)),r.tb(41,16384,null,0,ie,[r.P,r.M],{ngIf:[0,"ngIf"]},null),(e()(),r.Ob(-1,null,["\n "])),(e()(),r.Ob(-1,null,["\n"])),(e()(),r.Ob(-1,null,["\n"])),(e()(),r.jb(16777216,null,null,1,null,od)),r.tb(46,16384,null,0,ie,[r.P,r.M],{ngIf:[0,"ngIf"]},null),(e()(),r.Ob(-1,null,["\n"]))],function(e,t){var n=t.component;e(t,1,0,n.labelType),e(t,4,0,"icon"),e(t,7,0,"one-line"),e(t,10,0,"two-line"),e(t,29,0,n.modifierIconNames.option),e(t,32,0,!n.modifierIconNames.option),e(t,38,0,n.modifierIconNames.command),e(t,41,0,!n.modifierIconNames.command),e(t,46,0,n.thisSecondaryRoleText)},function(e,t){var n=t.component;e(t,0,0,n.viewBox,n.textContainer.width,n.textContainer.height,n.textContainer.x,n.textContainer.y),e(t,13,0,n.viewBox,n.modifierContainer.width,n.modifierContainer.height,n.modifierContainer.x,n.modifierContainer.y),e(t,15,0,n.shift.width,n.shift.height,n.shift.x,n.shift.y,n.shift.disabled),e(t,17,0,n.modifierIconNames.shift),e(t,20,0,n.control.width,n.control.height,n.control.x,n.control.y,n.control.disabled),e(t,26,0,n.option.width,n.option.height,n.option.x,n.option.y,n.option.disabled),e(t,35,0,n.command.width,n.command.height,n.command.x,n.command.y,n.command.disabled)})}var ud=function(){function e(){}return e.prototype.ngOnChanges=function(e){this.calculatePositions()},e.prototype.calculatePositions=function(){var e=0,t=0;this.secondaryText&&Rf(this.width,this.height)&&(e=this.height/5,t=5),this.useWidth=this.width/3,this.useHeight=this.height/3,this.useX=this.width>2*this.height?.6*this.width:this.width/3,this.useY=this.width>2*this.height?this.height/3:this.height/2,this.textY=(this.width>2*this.height?this.height/2:this.height/3)-e,this.textAnchor=this.width>2*this.height?"end":"middle",this.textX=this.width>2*this.height?.6*this.width:this.width/2,this.secondaryHeight=this.height/4,this.secondaryTextY=this.height-this.secondaryHeight-1-t},e}(),ad=r.sb({encapsulation:2,styles:[],data:{}});function sd(e){return r.Qb(0,[(e()(),r.ub(0,0,null,null,2,":svg:g",[["svg-secondary-role",""]],null,null,null,jf,If)),r.tb(1,638976,null,0,Pf,[],{height:[0,"height"],width:[1,"width"],y:[2,"y"],text:[3,"text"]},null),(e()(),r.Ob(-1,null,["\n "]))],function(e,t){var n=t.component;e(t,1,0,20,n.width,n.secondaryTextY,n.secondaryText)},null)}function cd(e){return r.Qb(2,[(e()(),r.ub(0,0,null,null,1,":svg:text",[["alignment-baseline","middle"]],[[1,"x",0],[1,"y",0],[1,"text-anchor",0]],null,null,null,null)),(e()(),r.Ob(1,null,["\n ","\n"])),(e()(),r.Ob(-1,null,["\n"])),(e()(),r.ub(3,0,null,null,1,":svg:use",[],[[1,":xlink:href",0],[1,"width",0],[1,"height",0],[1,"x",0],[1,"y",0]],null,null,null,null)),(e()(),r.Ob(-1,null,["\n"])),(e()(),r.Ob(-1,null,["\n "])),(e()(),r.jb(16777216,null,null,1,null,sd)),r.tb(7,16384,null,0,ie,[r.P,r.M],{ngIf:[0,"ngIf"]},null),(e()(),r.Ob(-1,null,["\n"]))],function(e,t){e(t,7,0,t.component.secondaryText)},function(e,t){var n=t.component;e(t,0,0,n.textX,n.textY,n.textAnchor),e(t,1,0,n.text),e(t,3,0,n.icon,n.useWidth,n.useHeight,n.useX,n.useY)})}var pd=function(){function e(){}return e.prototype.ngOnChanges=function(e){this.calculatePositions()},e.prototype.calculatePositions=function(){var e=0;this.secondaryText&&Rf(this.width,this.height)&&(e=5);var t=this.width>1.8*this.height;for(this.useWidth=this.width/3,this.useHeight=this.height/3,t?(this.textWidth=.65*this.width,this.useX=0,this.useY=this.height/3,this.spanX=.6*this.width):(this.textWidth=.95*this.width,this.useX=this.width/3,this.useY=this.height/10,this.spanX=this.width/2),this.secondaryText?(this.secondaryHeight=this.height/4,this.secondaryTextY=this.height-this.secondaryHeight-1-e):(this.secondaryHeight=0,this.secondaryTextY=0),this.fontSize=19,this.text1="",this.text2="";this.fontSize>10&&!this.isFullTextVisible();)this.calculateTexts(t),this.fontSize--},e.prototype.calculateTexts=function(e){if(this.text){this.text1=this.getText(0),this.text2=this.getText(this.text1.length);var t=this.fontSize,n=this.text2?1:0;this.textY=e?(this.height-this.secondaryHeight)/2-.5*n*t:(this.height-this.secondaryHeight+this.useHeight)/2-.5*n*t,this.text1Y=0,this.text2Y=this.text1Y+1.2*n*t}},e.prototype.getText=function(e){for(var t={font:this.fontSize+"px Helvetica"},n="",r=0,i=e;ithis.textWidth)break;n=l}}if(r>0&&r-1?(this.pressedAltLocation=-1,e.preventDefault()):e.keyCode===Dd.Key.Shift&&this.pressedShiftLocation>-1?(this.pressedShiftLocation=-1,e.preventDefault()):this.scanCodePressed?(e.preventDefault(),this.scanCodePressed=!1):this.recording&&(e.preventDefault(),this.saveScanCode())},e.prototype.onKeyDown=function(e){var t=e.keyCode;this.recording?(e.preventDefault(),this.captureService.hasMap(t)?(this.pressedShiftLocation>-1&&this.captureService.setModifier(1===this.pressedShiftLocation,Dd.Key.Shift),this.pressedAltLocation>-1&&this.captureService.setModifier(1===this.pressedAltLocation,Dd.Key.Alt),this.saveScanCode(this.captureService.getMap(t)),this.scanCodePressed=!0):this.captureService.setModifier(1===e.location,t)):(e.keyCode===Dd.Key.Shift&&(this.pressedShiftLocation=e.location),e.keyCode===Dd.Key.Alt&&(this.pressedAltLocation=e.location))},e.prototype.onFocusOut=function(){this.reset()},e.prototype.ngOnChanges=function(e){e.keyAction&&this.setLabels(),e.blink&&e.blink.currentValue&&this.blinkSvgRec()},e.prototype.onRecordingAnimationDone=function(){this.recordAnimation=this.recording&&"inactive"===this.recordAnimation?"active":"inactive"},e.prototype.reset=function(){this.recording=!1,this.captureService.initModifiers(),this.shiftPressed=!1,this.altPressed=!1,this.store.dispatch(new Tu)},e.prototype.saveScanCode=function(e){void 0===e&&(e=0);var t=this.captureService.getModifiers(!0),n=this.captureService.getModifiers(!1);this.capture.emit({captured:{code:e,left:t,right:n},shiftPressed:this.shiftPressed,altPressed:this.altPressed}),this.reset()},e.prototype.setLabels=function(){if(this.labelType=Fd.OneLineText,this.labelSource=void 0,this.secondaryText=void 0,this.keyAction)if(this.keyAction instanceof $o.KeystrokeAction){var e=void 0;if(this.secondaryText=this.mapper.getSecondaryRoleText((n=this.keyAction).secondaryRoleAction),!n.hasActiveModifier()&&n.hasScancode()){var t=n.scancode;e=this.mapper.scanCodeToText(t,n.type),this.mapper.hasScancodeIcon(t,n.type)?(this.labelSource=this.mapper.scanCodeToSvgImagePath(t,n.type),this.labelType=Fd.SingleIcon):void 0!==e&&(1===e.length?(this.labelSource=e[0],this.labelType=Fd.OneLineText):(this.labelSource=e,this.labelType=Fd.TwoLineText))}else if(n.hasOnlyOneActiveModifier()&&!n.hasScancode())switch(n.modifierMask){case $o.KeyModifiers.leftCtrl:case $o.KeyModifiers.rightCtrl:this.labelSource=["Ctrl"];break;case $o.KeyModifiers.leftShift:case $o.KeyModifiers.rightShift:this.labelSource=["Shift"];break;case $o.KeyModifiers.leftAlt:case $o.KeyModifiers.rightAlt:this.labelSource=[this.mapper.getOsSpecificText("Alt")];break;case $o.KeyModifiers.leftGui:case $o.KeyModifiers.rightGui:this.mapper.getOperatingSystem()===Ru.Windows?(this.labelSource=this.mapper.getIcon("command"),this.labelType=Fd.SingleIcon):this.labelSource=[this.mapper.getOsSpecificText("Super")];break;default:this.labelSource=["Undefined"]}else this.labelType=Fd.KeystrokeKey,this.labelSource=this.keyAction}else if(this.keyAction instanceof $o.SwitchLayerAction){switch(e=void 0,(n=this.keyAction).layer){case $o.LayerName.mod:e="Mod";break;case $o.LayerName.fn:e="Fn";break;case $o.LayerName.mouse:e="Mouse"}n.switchLayerMode===$o.SwitchLayerMode.toggle?(this.labelType=Fd.TextIcon,this.labelSource={text:e,icon:this.mapper.getIcon("toggle")}):n.switchLayerMode===$o.SwitchLayerMode.holdAndDoubleTapToggle?(this.labelType=Fd.TextIcon,this.labelSource={text:e,icon:this.mapper.getIcon("double-tap")}):(this.labelType=Fd.OneLineText,this.labelSource=e)}else if(this.keyAction instanceof $o.SwitchKeymapAction){var n=this.keyAction;this.labelType=Fd.SwitchKeymap,this.labelSource=n.keymapAbbreviation}else if(this.keyAction instanceof $o.PlayMacroAction){var r=this.macroMap.get((n=this.keyAction).macroId);this.labelType=Fd.IconText,this.labelSource={icon:this.mapper.getIcon("macro"),text:r.name}}else this.keyAction instanceof $o.MouseAction?(this.labelType=Fd.MouseKey,this.labelSource=this.keyAction):this.labelSource=void 0},e.prototype.blinkSvgRec=function(){var e=this;this.svgRec&&(this.svgRec.nativeElement.classList.remove("blink"),setTimeout(function(){e.svgRec&&e.svgRec.nativeElement.classList.add("blink")},10))},e}(),Bd=r.sb({encapsulation:0,styles:[["[_nghost-%COMP%]{cursor:pointer;outline:0}[_nghost-%COMP%]:hover{fill:#494949}.svg-rec[_ngcontent-%COMP%]{transition-timing-function:ease-out;transition:.2s}.svg-rec.active[_ngcontent-%COMP%]{fill:#4099e5;transition-timing-function:ease-in;transition:0s}.svg-rec.blink[_ngcontent-%COMP%]{-webkit-animation:1s ease-out blinkingRec;animation:1s ease-out blinkingRec}@-webkit-keyframes blinkingRec{0%{fill:#fff}100%{fill:#333}}@keyframes blinkingRec{0%{fill:#fff}100%{fill:#333}}"]],data:{animation:[{type:7,name:"recording",definitions:[{type:0,name:"inactive",styles:{type:6,styles:{fill:"rgba(204, 0, 0, 1)"},offset:null},options:void 0},{type:0,name:"active",styles:{type:6,styles:{fill:"rgba(204, 0, 0, 0.6)"},offset:null},options:void 0},{type:1,expr:"inactive <=> active",animation:{type:4,styles:null,timings:"600ms ease-in-out"},options:null}],options:{}}]}});function Vd(e){return r.Qb(0,[(e()(),r.Ob(-1,null,["\n "])),(e()(),r.ub(1,0,null,null,0,":svg:circle",[],[[24,"@recording",0],[1,"cx",0],[1,"cy",0],[1,"r",0],[1,"fill",0]],[[null,"@recording.done"]],function(e,t,n){var r=!0;return"@recording.done"===t&&(r=!1!==e.component.onRecordingAnimationDone()&&r),r},null,null)),(e()(),r.Ob(-1,null,["\n"]))],null,function(e,t){var n=t.component;e(t,1,0,n.recordAnimation,n.width/2,n.height/2,10,"#c00")})}function Gd(e){return r.Qb(0,[(e()(),r.ub(0,0,null,null,2,":svg:g",[["svg-keystroke-key",""]],null,null,null,ld,Yf)),r.tb(1,573440,null,0,Jf,[Wf],{height:[0,"height"],width:[1,"width"],keystrokeAction:[2,"keystrokeAction"],secondaryText:[3,"secondaryText"]},null),(e()(),r.Ob(-1,null,["\n "]))],function(e,t){var n=t.component;e(t,1,0,n.height,n.width,n.labelSource,n.secondaryText)},null)}function Hd(e){return r.Qb(0,[(e()(),r.ub(0,0,null,null,2,":svg:g",[["svg-one-line-text-key",""]],null,null,null,Vf,Kf)),r.tb(1,573440,null,0,Ff,[],{height:[0,"height"],width:[1,"width"],text:[2,"text"],secondaryText:[3,"secondaryText"]},null),(e()(),r.Ob(-1,null,["\n "]))],function(e,t){var n=t.component;e(t,1,0,n.height,n.width,n.labelSource,n.secondaryText)},null)}function $d(e){return r.Qb(0,[(e()(),r.ub(0,0,null,null,2,":svg:g",[["svg-two-line-text-key",""]],null,null,null,Qf,Hf)),r.tb(1,573440,null,0,Gf,[],{height:[0,"height"],width:[1,"width"],texts:[2,"texts"],secondaryText:[3,"secondaryText"]},null),(e()(),r.Ob(-1,null,["\n "]))],function(e,t){var n=t.component;e(t,1,0,n.height,n.width,n.labelSource,n.secondaryText)},null)}function zd(e){return r.Qb(0,[(e()(),r.ub(0,0,null,null,2,":svg:g",[["svg-text-icon-key",""]],null,null,null,cd,ad)),r.tb(1,573440,null,0,ud,[],{width:[0,"width"],height:[1,"height"],text:[2,"text"],icon:[3,"icon"],secondaryText:[4,"secondaryText"]},null),(e()(),r.Ob(-1,null,["\n "]))],function(e,t){var n=t.component;e(t,1,0,n.width,n.height,n.labelSource.text,n.labelSource.icon,n.secondaryText)},null)}function Qd(e){return r.Qb(0,[(e()(),r.ub(0,0,null,null,2,":svg:g",[["svg-icon-text-key",""]],null,null,null,hd,fd)),r.tb(1,573440,null,0,pd,[],{width:[0,"width"],height:[1,"height"],icon:[2,"icon"],text:[3,"text"],secondaryText:[4,"secondaryText"]},null),(e()(),r.Ob(-1,null,["\n "]))],function(e,t){var n=t.component;e(t,1,0,n.width,n.height,n.labelSource.icon,n.labelSource.text,n.secondaryText)},null)}function Wd(e){return r.Qb(0,[(e()(),r.ub(0,0,null,null,2,":svg:g",[["svg-single-icon-key",""]],null,null,null,Uf,Nf)),r.tb(1,573440,null,0,Lf,[],{width:[0,"width"],height:[1,"height"],icon:[2,"icon"],secondaryText:[3,"secondaryText"]},null),(e()(),r.Ob(-1,null,["\n "]))],function(e,t){var n=t.component;e(t,1,0,n.width,n.height,n.labelSource,n.secondaryText)},null)}function qd(e){return r.Qb(0,[(e()(),r.ub(0,0,null,null,2,":svg:g",[["svg-switch-keymap-key",""]],null,null,null,md,bd)),r.tb(1,114688,null,0,yd,[Wf],{width:[0,"width"],height:[1,"height"],abbreviation:[2,"abbreviation"]},null),(e()(),r.Ob(-1,null,["\n "]))],function(e,t){var n=t.component;e(t,1,0,n.width,n.height,n.labelSource)},null)}function Jd(e){return r.Qb(0,[(e()(),r.ub(0,0,null,null,4,":svg:svg",[],[[1,"viewBox",0],[1,"width",0],[1,"height",0]],null,null,null,null)),(e()(),r.Ob(-1,null,["\n "])),(e()(),r.ub(2,0,null,null,1,":svg:g",[["svg-mouse-key",""]],null,null,null,Nd,Pd)),r.tb(3,573440,null,0,Ed,[],{mouseAction:[0,"mouseAction"]},null),(e()(),r.Ob(-1,null,["\n "]))],function(e,t){e(t,3,0,t.component.labelSource)},function(e,t){var n=t.component;e(t,0,0,"0 0 100 100",n.width,n.height)})}function Yd(e){return r.Qb(0,[(e()(),r.Ob(-1,null,["\n "])),(e()(),r.ub(1,0,null,null,26,":svg:g",[],[[1,"font-size",0],[1,"font-family",0],[1,"fill",0]],null,null,null,null)),r.tb(2,16384,null,0,ae,[],{ngSwitch:[0,"ngSwitch"]},null),(e()(),r.Ob(-1,null,["\n "])),(e()(),r.jb(16777216,null,null,1,null,Gd)),r.tb(5,278528,null,0,se,[r.P,r.M,ae],{ngSwitchCase:[0,"ngSwitchCase"]},null),(e()(),r.Ob(-1,null,["\n "])),(e()(),r.jb(16777216,null,null,1,null,Hd)),r.tb(8,278528,null,0,se,[r.P,r.M,ae],{ngSwitchCase:[0,"ngSwitchCase"]},null),(e()(),r.Ob(-1,null,["\n "])),(e()(),r.jb(16777216,null,null,1,null,$d)),r.tb(11,278528,null,0,se,[r.P,r.M,ae],{ngSwitchCase:[0,"ngSwitchCase"]},null),(e()(),r.Ob(-1,null,["\n "])),(e()(),r.jb(16777216,null,null,1,null,zd)),r.tb(14,278528,null,0,se,[r.P,r.M,ae],{ngSwitchCase:[0,"ngSwitchCase"]},null),(e()(),r.Ob(-1,null,["\n "])),(e()(),r.jb(16777216,null,null,1,null,Qd)),r.tb(17,278528,null,0,se,[r.P,r.M,ae],{ngSwitchCase:[0,"ngSwitchCase"]},null),(e()(),r.Ob(-1,null,["\n "])),(e()(),r.jb(16777216,null,null,1,null,Wd)),r.tb(20,278528,null,0,se,[r.P,r.M,ae],{ngSwitchCase:[0,"ngSwitchCase"]},null),(e()(),r.Ob(-1,null,["\n "])),(e()(),r.jb(16777216,null,null,1,null,qd)),r.tb(23,278528,null,0,se,[r.P,r.M,ae],{ngSwitchCase:[0,"ngSwitchCase"]},null),(e()(),r.Ob(-1,null,["\n "])),(e()(),r.jb(16777216,null,null,1,null,Jd)),r.tb(26,278528,null,0,se,[r.P,r.M,ae],{ngSwitchCase:[0,"ngSwitchCase"]},null),(e()(),r.Ob(-1,null,["\n "])),(e()(),r.Ob(-1,null,["\n"]))],function(e,t){var n=t.component;e(t,2,0,n.labelType),e(t,5,0,n.enumLabelTypes.KeystrokeKey),e(t,8,0,n.enumLabelTypes.OneLineText),e(t,11,0,n.enumLabelTypes.TwoLineText),e(t,14,0,n.enumLabelTypes.TextIcon),e(t,17,0,n.enumLabelTypes.IconText),e(t,20,0,n.enumLabelTypes.SingleIcon),e(t,23,0,n.enumLabelTypes.SwitchKeymap),e(t,26,0,n.enumLabelTypes.MouseKey)},function(e,t){e(t,1,0,19,"Helvetica","white")})}function Zd(e){return r.Qb(2,[r.Mb(671088640,1,{svgRec:0}),(e()(),r.ub(1,0,[[1,0],["svgRec",1]],null,0,":svg:rect",[["class","svg-rec"]],[[2,"active",null],[8,"id",0],[1,"rx",0],[1,"ry",0],[1,"height",0],[1,"width",0]],null,null,null,null)),(e()(),r.Ob(-1,null,["\n"])),(e()(),r.jb(16777216,null,null,1,null,Vd)),r.tb(4,16384,null,0,ie,[r.P,r.M],{ngIf:[0,"ngIf"]},null),(e()(),r.Ob(-1,null,["\n"])),(e()(),r.jb(16777216,null,null,1,null,Yd)),r.tb(7,16384,null,0,ie,[r.P,r.M],{ngIf:[0,"ngIf"]},null),(e()(),r.Ob(-1,null,["\n"]))],function(e,t){var n=t.component;e(t,4,0,n.recording),e(t,7,0,!n.recording)},function(e,t){var n=t.component;e(t,1,0,n.active,n.id,n.rx,n.ry,n.height,n.width)})}var Xd=function(){function e(e){this.sanitizer=e}return e.prototype.transform=function(e){return this.sanitizer.bypassSecurityTrustStyle(e)},e}(),eh=function(){function e(e){var t=this;this.store=e,this.keyClick=new r.m,this.keyHover=new r.m,this.capture=new r.m,this.keyboardKeys=[],this.macroMapSubscription=e.select(Gu).subscribe(function(e){return t.macroMap=e})}return e.prototype.ngOnDestroy=function(){this.macroMapSubscription.unsubscribe()},e.prototype.onKeyClick=function(e,t){this.keyClick.emit(N.a({},t,{keyId:e}))},e.prototype.onKeyHover=function(e,t,n){this.keyHover.emit({index:e,event:t,over:n})},e.prototype.onCapture=function(e,t){this.capture.emit(N.a({},t,{keyId:e}))},e.prototype.keyboardKeysTrackBy=function(e,t){return""+e},e}(),th=r.sb({encapsulation:0,styles:[["[_nghost-%COMP%]{position:relative}"]],data:{}});function nh(e){return r.Qb(0,[(e()(),r.ub(0,0,null,null,1,":svg:path",[],[[1,"d",0],[1,"style",2]],null,null,null,null)),r.Kb(1,1)],null,function(e,t){var n=t.context.$implicit.$.d,i=r.Pb(t,0,1,e(t,1,0,r.Gb(t.parent,0),t.context.$implicit.$.style));e(t,0,0,n,i)})}function rh(e){return r.Qb(0,[(e()(),r.ub(0,0,null,null,1,":svg:g",[["svg-keyboard-key",""],["tabindex","-1"]],[[1,"transform",0],[1,"fill",0]],[[null,"keyClick"],[null,"capture"],[null,"mouseenter"],[null,"mouseleave"],[null,"click"],[null,"mousedown"],["document","keyup"],["document","keydown"],[null,"focusout"]],function(e,t,n){var i=!0,o=e.component;return"click"===t&&(i=!1!==r.Gb(e,1).onClick(n)&&i),"mousedown"===t&&(i=!1!==r.Gb(e,1).onMouseDown(n)&&i),"document:keyup"===t&&(i=!1!==r.Gb(e,1).onKeyUp(n)&&i),"document:keydown"===t&&(i=!1!==r.Gb(e,1).onKeyDown(n)&&i),"focusout"===t&&(i=!1!==r.Gb(e,1).onFocusOut()&&i),"keyClick"===t&&(i=!1!==o.onKeyClick(e.parent.context.index,n)&&i),"capture"===t&&(i=!1!==o.onCapture(e.parent.context.index,n)&&i),"mouseenter"===t&&(i=!1!==o.onKeyHover(e.parent.context.index,n,!0)&&i),"mouseleave"===t&&(i=!1!==o.onKeyHover(e.parent.context.index,n,!1)&&i),i},Zd,Bd)),r.tb(1,573440,null,0,Kd,[Wf,L.m,r.k,Ud],{id:[0,"id"],rx:[1,"rx"],ry:[2,"ry"],height:[3,"height"],width:[4,"width"],keyAction:[5,"keyAction"],capturingEnabled:[6,"capturingEnabled"],active:[7,"active"],macroMap:[8,"macroMap"],blink:[9,"blink"]},{keyClick:"keyClick",capture:"capture"})],function(e,t){var n=t.component;e(t,1,0,t.parent.context.$implicit.id,t.parent.context.$implicit.rx,t.parent.context.$implicit.ry,t.parent.context.$implicit.height,t.parent.context.$implicit.width,n.keyActions[t.parent.context.index],n.capturingEnabled,n.selected&&t.parent.context.index==n.selectedKey.keyId,n.macroMap,n.lastEdited&&n.lastEditedKeyId===t.parent.context.$implicit.id)},function(e,t){e(t,0,0,"translate("+t.parent.context.$implicit.x+" "+t.parent.context.$implicit.y+")",t.parent.context.$implicit.fill)})}function ih(e){return r.Qb(0,[(e()(),r.ub(0,0,null,null,4,null,null,null,null,null,null,null)),(e()(),r.Ob(-1,null,["\n "])),(e()(),r.jb(16777216,null,null,1,null,rh)),r.tb(3,16384,null,0,ie,[r.P,r.M],{ngIf:[0,"ngIf"]},null),(e()(),r.Ob(-1,null,["\n"]))],function(e,t){e(t,3,0,t.context.$implicit)},null)}function oh(e){return r.Qb(2,[r.Ib(0,Xd,[On]),(e()(),r.jb(16777216,null,null,1,null,nh)),r.tb(2,278528,null,0,ne,[r.P,r.M,r.t],{ngForOf:[0,"ngForOf"]},null),(e()(),r.Ob(-1,null,["\n"])),(e()(),r.jb(16777216,null,null,1,null,ih)),r.tb(5,278528,null,0,ne,[r.P,r.M,r.t],{ngForOf:[0,"ngForOf"],ngForTrackBy:[1,"ngForTrackBy"]},null),(e()(),r.Ob(-1,null,["\n"]))],function(e,t){var n=t.component;e(t,2,0,n.coverages),e(t,5,0,n.keyboardKeys,n.keyboardKeysTrackBy)},null)}var lh=function(){function e(e){this.el=e}return e.prototype.ngOnInit=function(){},e.prototype.ngAfterViewInit=function(){this.el.nativeElement.focus()},e}(),uh=function(){function e(e){this.cdr=e,this.placeholder="No editable content",this.editing=!1,this.textChange=function(){}}return Object.defineProperty(e.prototype,"isSaveDisabled",{get:function(){return!this.text||0===this.text.trim().length},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"displayText",{get:function(){return this.text&&this.text.replace(/\n/g,"
")},enumerable:!0,configurable:!0}),e.prototype.writeValue=function(e){this.text!==e&&(this.text=e,this.cdr.markForCheck())},e.prototype.registerOnChange=function(e){this.textChange=e},e.prototype.registerOnTouched=function(e){},e.prototype.saveText=function(){this.originalText=null,this.editing=!1,this.textChange(this.text)},e.prototype.editText=function(){this.originalText=this.text,this.editing=!0},e.prototype.cancelEditText=function(){this.text=this.originalText,this.editing=!1},e.prototype.keydownEnter=function(){this.isSaveDisabled||this.saveText()},Object.defineProperty(e.prototype,"showPlaceholder",{get:function(){return!this.editing&&!this.text},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"showText",{get:function(){return!this.editing&&!!this.text},enumerable:!0,configurable:!0}),e}(),ah=r.sb({encapsulation:0,styles:[["[_nghost-%COMP%]{margin-top:.5em}[_nghost-%COMP%] span.placeholder[_ngcontent-%COMP%]{color:gray;display:inline-block}[_nghost-%COMP%] span.placeholder[_ngcontent-%COMP%] .glyphicon[_ngcontent-%COMP%]{color:#000}[_nghost-%COMP%] span.editable[_ngcontent-%COMP%], [_nghost-%COMP%] span.placeholder[_ngcontent-%COMP%]{cursor:pointer}[_nghost-%COMP%] textarea.text-editor[_ngcontent-%COMP%]{display:block;width:100%}[_nghost-%COMP%] .buttons[_ngcontent-%COMP%]{margin-top:.5em}"]],data:{}});function sh(e){return r.Qb(0,[(e()(),r.ub(0,0,null,null,4,"span",[["class","placeholder"]],null,null,null,null,null)),(e()(),r.Ob(-1,null,["\n "])),(e()(),r.ub(2,0,null,null,1,"span",[],null,[[null,"click"]],function(e,t,n){var r=!0;return"click"===t&&(r=!1!==e.component.editText()&&r),r},null,null)),(e()(),r.Ob(3,null,["",""])),(e()(),r.Ob(-1,null,["\n "]))],null,function(e,t){e(t,3,0,t.component.placeholder)})}function ch(e){return r.Qb(0,[(e()(),r.ub(0,0,null,null,3,"span",[["class","editable"]],null,null,null,null,null)),(e()(),r.Ob(-1,null,["\n "])),(e()(),r.ub(2,0,null,null,0,"span",[],[[8,"innerHTML",1]],[[null,"click"]],function(e,t,n){var r=!0;return"click"===t&&(r=!1!==e.component.editText()&&r),r},null,null)),(e()(),r.Ob(-1,null,["\n "]))],null,function(e,t){e(t,2,0,t.component.displayText)})}function ph(e){return r.Qb(0,[(e()(),r.ub(0,0,null,null,18,"div",[],null,null,null,null,null)),(e()(),r.Ob(-1,null,["\n "])),(e()(),r.ub(2,0,null,null,6,"textarea",[["autofocus",""],["class","text-editor"]],[[2,"ng-untouched",null],[2,"ng-touched",null],[2,"ng-pristine",null],[2,"ng-dirty",null],[2,"ng-valid",null],[2,"ng-invalid",null],[2,"ng-pending",null]],[[null,"ngModelChange"],[null,"keydown.escape"],[null,"keydown.control.enter"],[null,"keydown.alt.enter"],[null,"input"],[null,"blur"],[null,"compositionstart"],[null,"compositionend"]],function(e,t,n){var i=!0,o=e.component;return"input"===t&&(i=!1!==r.Gb(e,3)._handleInput(n.target.value)&&i),"blur"===t&&(i=!1!==r.Gb(e,3).onTouched()&&i),"compositionstart"===t&&(i=!1!==r.Gb(e,3)._compositionStart()&&i),"compositionend"===t&&(i=!1!==r.Gb(e,3)._compositionEnd(n.target.value)&&i),"ngModelChange"===t&&(i=!1!==(o.text=n)&&i),"keydown.escape"===t&&(i=!1!==o.cancelEditText()&&i),"keydown.control.enter"===t&&(i=!1!==o.keydownEnter()&&i),"keydown.alt.enter"===t&&(i=!1!==o.keydownEnter()&&i),i},null,null)),r.tb(3,16384,null,0,Cc,[r.E,r.k,[2,Ac]],null,null),r.Lb(1024,null,wc,function(e){return[e]},[Cc]),r.tb(5,671744,null,0,_p,[[8,null],[8,null],[8,null],[6,wc]],{model:[0,"model"]},{update:"ngModelChange"}),r.Lb(2048,null,Mc,null,[_p]),r.tb(7,16384,null,0,Pc,[[4,Mc]],null,null),r.tb(8,4276224,null,0,lh,[r.k],null,null),(e()(),r.Ob(-1,null,["\n "])),(e()(),r.ub(10,0,null,null,7,"div",[["class","pull-right buttons"]],null,null,null,null,null)),(e()(),r.Ob(-1,null,["\n "])),(e()(),r.ub(12,0,null,null,1,"button",[["class","btn btn-danger"]],null,[[null,"click"]],function(e,t,n){var r=!0;return"click"===t&&(r=!1!==e.component.cancelEditText()&&r),r},null,null)),(e()(),r.Ob(-1,null,["\n Cancel\n "])),(e()(),r.Ob(-1,null,["\n "])),(e()(),r.ub(15,0,null,null,1,"button",[["class","btn btn-primary"]],[[8,"disabled",0]],[[null,"click"]],function(e,t,n){var r=!0;return"click"===t&&(r=!1!==e.component.saveText()&&r),r},null,null)),(e()(),r.Ob(-1,null,["\n Update description\n "])),(e()(),r.Ob(-1,null,["\n "])),(e()(),r.Ob(-1,null,["\n"]))],function(e,t){e(t,5,0,t.component.text),e(t,8,0)},function(e,t){var n=t.component;e(t,2,0,r.Gb(t,7).ngClassUntouched,r.Gb(t,7).ngClassTouched,r.Gb(t,7).ngClassPristine,r.Gb(t,7).ngClassDirty,r.Gb(t,7).ngClassValid,r.Gb(t,7).ngClassInvalid,r.Gb(t,7).ngClassPending),e(t,15,0,n.isSaveDisabled)})}function fh(e){return r.Qb(2,[(e()(),r.ub(0,0,null,null,7,"div",[["class","text-center"]],null,null,null,null,null)),(e()(),r.Ob(-1,null,["\n "])),(e()(),r.jb(16777216,null,null,1,null,sh)),r.tb(3,16384,null,0,ie,[r.P,r.M],{ngIf:[0,"ngIf"]},null),(e()(),r.Ob(-1,null,["\n\n "])),(e()(),r.jb(16777216,null,null,1,null,ch)),r.tb(6,16384,null,0,ie,[r.P,r.M],{ngIf:[0,"ngIf"]},null),(e()(),r.Ob(-1,null,["\n"])),(e()(),r.Ob(-1,null,["\n\n"])),(e()(),r.jb(16777216,null,null,1,null,ph)),r.tb(10,16384,null,0,ie,[r.P,r.M],{ngIf:[0,"ngIf"]},null),(e()(),r.Ob(-1,null,["\n"]))],function(e,t){var n=t.component;e(t,3,0,n.showPlaceholder),e(t,6,0,n.showText),e(t,10,0,n.editing)},null)}var dh=function(){return function(e){var t,n=e.rect.map(function(e){return e.$});this.keyboardKeys=[];for(var r=0;r *",animation:{type:4,styles:null,timings:500},options:null}],options:{}},{type:7,name:"fadeKeyboard",definitions:[{type:0,name:"visible",styles:{type:6,styles:{opacity:1},offset:null},options:void 0},{type:0,name:"invisible",styles:{type:6,styles:{opacity:0},offset:null},options:void 0},{type:1,expr:"visible => invisible",animation:{type:4,styles:null,timings:500},options:null},{type:1,expr:"invisible => visible",animation:{type:4,styles:null,timings:500},options:null}],options:{}},{type:7,name:"fadeSeparator",definitions:[{type:0,name:"visible",styles:{type:6,styles:{opacity:1},offset:null},options:void 0},{type:0,name:"invisible",styles:{type:6,styles:{opacity:0},offset:null},options:void 0},{type:1,expr:"visible => invisible",animation:{type:4,styles:null,timings:"200ms"},options:null},{type:1,expr:"invisible => visible",animation:{type:4,styles:null,timings:"200ms 500ms"},options:null}],options:{}},{type:7,name:"moveDescription",definitions:[{type:0,name:"down",styles:{type:6,styles:{"margin-top":"0.5em"},offset:null},options:void 0},{type:0,name:"up",styles:{type:6,styles:{"margin-top":"-6.5%"},offset:null},options:void 0},{type:1,expr:"down => up",animation:{type:4,styles:null,timings:500},options:null},{type:1,expr:"up => down",animation:{type:4,styles:null,timings:500},options:null}],options:{}}]}});function mh(e){return r.Qb(0,[(e()(),r.ub(0,0,null,null,1,":svg:g",[["svg-module",""]],[[1,"transform",0],[24,"@split",0],[24,"@fadeKeyboard",0]],[[null,"keyClick"],[null,"keyHover"],[null,"capture"]],function(e,t,n){var r=!0,i=e.component;return"keyClick"===t&&(r=!1!==i.onKeyClick(e.context.index,n)&&r),"keyHover"===t&&(r=!1!==i.onKeyHover(n.index,n.event,n.over,e.context.index)&&r),"capture"===t&&(r=!1!==i.onCapture(e.context.index,n)&&r),r},oh,th)),r.tb(1,180224,null,0,eh,[L.m],{coverages:[0,"coverages"],keyboardKeys:[1,"keyboardKeys"],keyActions:[2,"keyActions"],selectedKey:[3,"selectedKey"],selected:[4,"selected"],capturingEnabled:[5,"capturingEnabled"],lastEdited:[6,"lastEdited"],lastEditedKeyId:[7,"lastEditedKeyId"]},{keyClick:"keyClick",keyHover:"keyHover",capture:"capture"})],function(e,t){var n=t.component;e(t,1,0,t.context.$implicit.coverages,t.context.$implicit.keyboardKeys,n.moduleConfig[t.context.index].keyActions,n.selectedKey,(null==n.selectedKey?null:n.selectedKey.moduleId)===t.context.index,n.capturingEnabled,(null==n.lastEditedKey?null:n.lastEditedKey.moduleId)===t.context.index,null==n.lastEditedKey?null:n.lastEditedKey.key)},function(e,t){var n=t.component;e(t,0,0,t.context.$implicit.attributes.transform,n.moduleAnimationStates[t.context.index],n.moduleVisibilityAnimationStates[t.context.index])})}function gh(e){return r.Qb(0,[(e()(),r.ub(0,0,null,null,5,"editable-text",[["placeholder","No description provided for this keymap."]],[[24,"@moveDescription",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]],[[null,"ngModelChange"]],function(e,t,n){var r=!0;return"ngModelChange"===t&&(r=!1!==e.component.descriptionChanged.emit(n)&&r),r},fh,ah)),r.tb(1,49152,null,0,uh,[r.h],{placeholder:[0,"placeholder"]},null),r.Lb(1024,null,wc,function(e){return[e]},[uh]),r.tb(3,671744,null,0,_p,[[8,null],[8,null],[8,null],[6,wc]],{model:[0,"model"]},{update:"ngModelChange"}),r.Lb(2048,null,Mc,null,[_p]),r.tb(5,16384,null,0,Pc,[[4,Mc]],null,null)],function(e,t){var n=t.component;e(t,1,0,"No description provided for this keymap."),e(t,3,0,n.description)},function(e,t){e(t,0,0,t.component.descriptionAnimation,r.Gb(t,5).ngClassUntouched,r.Gb(t,5).ngClassTouched,r.Gb(t,5).ngClassPristine,r.Gb(t,5).ngClassDirty,r.Gb(t,5).ngClassValid,r.Gb(t,5).ngClassInvalid,r.Gb(t,5).ngClassPending)})}function vh(e){return r.Qb(2,[(e()(),r.ub(0,0,null,null,6,":svg:svg",[["height","100%"],["width","100%"],["xmlns","http://www.w3.org/2000/svg"]],[[1,"viewBox",0]],null,null,null,null)),(e()(),r.Ob(-1,null,["\n "])),(e()(),r.jb(16777216,null,null,1,null,mh)),r.tb(3,278528,null,0,ne,[r.P,r.M,r.t],{ngForOf:[0,"ngForOf"]},null),(e()(),r.Ob(-1,null,["\n\n "])),(e()(),r.ub(5,0,null,null,0,":svg:path",[],[[24,"@fadeSeparator",0],[1,"d",0],[1,"style",2]],null,null,null,null)),(e()(),r.Ob(-1,null,["\n"])),(e()(),r.Ob(-1,null,["\n"])),(e()(),r.jb(16777216,null,null,1,null,gh)),r.tb(9,16384,null,0,ie,[r.P,r.M],{ngIf:[0,"ngIf"]},null),(e()(),r.Ob(-1,null,["\n"]))],function(e,t){var n=t.component;e(t,3,0,n.modules),e(t,9,0,n.showDescription)},function(e,t){var n=t.component;e(t,0,0,n.viewBox),e(t,5,0,n.separatorAnimation,n.separator.d,n.separatorStyle)})}var kh=function(){function e(){this.keyboardLayout=xu.ANSI,this.keyClick=new r.m,this.keyHover=new r.m,this.capture=new r.m,this.descriptionChanged=new r.m}return e.prototype.ngOnChanges=function(e){e.layers&&(this.layerAnimationState=this.layers.map(function(){return"initOut"}),this.layerAnimationState[this.currentLayer]="init");var t=e.currentLayer;if(t)if(e.layers);else{var n=t.isFirstChange()?t.currentValue:t.previousValue;this.onLayerChange(n,t.currentValue)}},e.prototype.trackKeyboard=function(e){return e},e.prototype.onLayerChange=function(e,t){t>e?(this.layerAnimationState[e]="leftOut",this.layerAnimationState[t]="leftIn"):(this.layerAnimationState[e]="rightOut",this.layerAnimationState[t]="rightIn")},e}(),_h=r.sb({encapsulation:0,styles:[["svg-keyboard[_ngcontent-%COMP%]{width:99%;max-width:1400px;position:absolute;left:0;transform:translateX(-101%);-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}"]],data:{animation:[{type:7,name:"layerState",definitions:[{type:0,name:"init",styles:{type:6,styles:{transform:"translateX(-50%)",left:"50%"},offset:null},options:void 0},{type:0,name:"initOut",styles:{type:6,styles:{transform:"translateX(0)",left:"101%"},offset:null},options:void 0},{type:0,name:"leftIn, rightIn",styles:{type:6,styles:{transform:"translateX(-50%)",left:"50%"},offset:null},options:void 0},{type:0,name:"leftOut",styles:{type:6,styles:{transform:"translateX(-101%)",left:"0"},offset:null},options:void 0},{type:0,name:"rightOut",styles:{type:6,styles:{transform:"translateX(0)",left:"101%"},offset:null},options:void 0},{type:1,expr:"initOut => leftIn, leftOut => leftIn, rightOut => leftIn",animation:[{type:4,styles:{type:5,steps:[{type:6,styles:{transform:"translateX(0%)",left:"101%",offset:0},offset:null},{type:6,styles:{transform:"translateX(-50%)",left:"50%",offset:1},offset:null}]},timings:"400ms ease-out"}],options:null},{type:1,expr:"init => leftOut, leftIn => leftOut, rightIn => leftOut",animation:[{type:4,styles:{type:5,steps:[{type:6,styles:{transform:"translateX(-50%)",left:"50%",offset:0},offset:null},{type:6,styles:{transform:"translateX(-101%)",left:"0%",offset:1},offset:null}]},timings:"400ms ease-out"}],options:null},{type:1,expr:"* => rightIn",animation:[{type:4,styles:{type:5,steps:[{type:6,styles:{transform:"translateX(-101%)",left:"0%",offset:0},offset:null},{type:6,styles:{transform:"translateX(-50%)",left:"50%",offset:1},offset:null}]},timings:"400ms ease-out"}],options:null},{type:1,expr:"* => rightOut",animation:[{type:4,styles:{type:5,steps:[{type:6,styles:{transform:"translateX(-50%)",left:"50%",offset:0},offset:null},{type:6,styles:{transform:"translateX(0%)",left:"101%",offset:1},offset:null}]},timings:"400ms ease-out"}],options:null},{type:1,expr:":leave",animation:[{type:4,styles:{type:5,steps:[{type:6,styles:{opacity:1,offset:0},offset:null},{type:6,styles:{opacity:0,offset:1},offset:null}]},timings:"2000ms ease-out"}],options:null}],options:{}}]}});function wh(e){return r.Qb(0,[(e()(),r.ub(0,0,null,null,2,"svg-keyboard",[["oncontextmenu","return false;"]],[[24,"@layerState",0]],[[null,"keyClick"],[null,"keyHover"],[null,"capture"],[null,"descriptionChanged"]],function(e,t,n){var r=!0,i=e.component;return"keyClick"===t&&(r=!1!==i.keyClick.emit(n)&&r),"keyHover"===t&&(r=!1!==i.keyHover.emit(n)&&r),"capture"===t&&(r=!1!==i.capture.emit(n)&&r),"descriptionChanged"===t&&(r=!1!==i.descriptionChanged.emit(n)&&r),r},vh,bh)),r.tb(1,638976,null,0,yh,[hh,On],{moduleConfig:[0,"moduleConfig"],capturingEnabled:[1,"capturingEnabled"],selectedKey:[2,"selectedKey"],selected:[3,"selected"],halvesInfo:[4,"halvesInfo"],keyboardLayout:[5,"keyboardLayout"],description:[6,"description"],showDescription:[7,"showDescription"],lastEditedKey:[8,"lastEditedKey"]},{keyClick:"keyClick",keyHover:"keyHover",capture:"capture",descriptionChanged:"descriptionChanged"}),(e()(),r.Ob(-1,null,["\n"]))],function(e,t){var n=t.component;e(t,1,0,t.context.$implicit.modules,n.capturingEnabled,n.selectedKey,(null==n.selectedKey?null:n.selectedKey.layerId)===t.context.index,n.halvesInfo,n.keyboardLayout,n.description,!0,n.lastEditedKey)},function(e,t){e(t,0,0,t.component.layerAnimationState[t.context.index])})}function Oh(e){return r.Qb(2,[(e()(),r.jb(16777216,null,null,1,null,wh)),r.tb(1,278528,null,0,ne,[r.P,r.M,r.t],{ngForOf:[0,"ngForOf"],ngForTrackBy:[1,"ngForTrackBy"]},null),(e()(),r.Ob(-1,null,["\n"]))],function(e,t){var n=t.component;e(t,1,0,n.layers,n.trackKeyboard)},null)}var Ah=n("p0ib"),Ch=n("S1nX");function Th(e,t,n){return 0===n?[t]:(e.push(t),e)}function xh(){return yt(Th,[])}var Sh=n("LvDl"),Mh=n("oxjq"),Eh=Mh,Ph=function(){function e(e,t,n,r,i){void 0===i&&(i=null),this.value=e,this.text=t,this.disabled=n,this.data=r,this._parent=i,this.type="option",this.cacheRenderedText=null}return Object.defineProperty(e.prototype,"parent",{get:function(){return this._parent},enumerable:!0,configurable:!0}),e.prototype.renderText=function(e,t){return this.cacheHighlightText===t&&null!==this.cacheRenderedText||(this.cacheHighlightText=t,this.cacheRenderedText=e.bypassSecurityTrustHtml(this.cacheHighlightText?(this.text+"").replace(new RegExp(Eh(this.cacheHighlightText),"gi"),"$&"):this.text)),this.cacheRenderedText},e}(),Ih=function(){function e(e,t){void 0===t&&(t=[]),this.label=e,this.options=t,this.type="optgroup",this.filter(function(){return!0})}return e.prototype.filter=function(e){this.optionsFiltered=this.options.filter(function(t){return e(t)})},e}(),jh=function(){return function(e){this.template=e}}(),Rh=Sh,Lh=Mh,Nh=new r.q("NGX_SELECT_OPTIONS"),Dh=function(e){return e[e.first=0]="first",e[e.previous=1]="previous",e[e.next=2]="next",e[e.last=3]="last",e[e.firstSelected=4]="firstSelected",e[e.firstIfOptionActiveInvisible=5]="firstIfOptionActiveInvisible",e}({});function Uh(e,t){return t in e}var Fh=function(){function e(e,t,n,i){var o,l=this;this.sanitizer=t,this.cd=n,this.optionValueField="id",this.optionTextField="text",this.optGroupLabelField="label",this.optGroupOptionsField="options",this.multiple=!1,this.allowClear=!1,this.placeholder="",this.noAutoComplete=!1,this.disabled=!1,this.defaultValue=[],this.autoSelectSingleOption=!1,this.autoClearSearch=!1,this.noResultsFound="No results found",this.size="default",this.autoActiveOnMouseEnter=!0,this.isFocused=!1,this.keepSelectMenuOpened=!1,this.keyCodeToRemoveSelected="Delete",this.keyCodeToOptionsOpen=["Enter","NumpadEnter"],this.keyCodeToOptionsClose="Escape",this.keyCodeToOptionsSelect=["Enter","NumpadEnter"],this.keyCodeToNavigateFirst="ArrowLeft",this.keyCodeToNavigatePrevious="ArrowUp",this.keyCodeToNavigateNext="ArrowDown",this.keyCodeToNavigateLast="ArrowRight",this.typed=new r.m,this.focus=new r.m,this.blur=new r.m,this.open=new r.m,this.close=new r.m,this.select=new r.m,this.remove=new r.m,this.navigated=new r.m,this.selectionChanges=new r.m,this.optionsOpened=!1,this.actualValue=[],this.subjOptions=new Oe.a([]),this.subjSearchText=new Oe.a(""),this.subjOptionsSelected=new Oe.a([]),this.subjExternalValue=new Oe.a([]),this.subjDefaultValue=new Oe.a([]),this.subjRegisterOnChange=new Ue.a,this._focusToInput=!1,this.onChange=function(e){return e},this.onTouched=function(){return null},Object.assign(this,i),this.itemsDiffer=e.find([]).create(null),this.defaultValueDiffer=e.find([]).create(null),this.typed.subscribe(function(e){return l.subjSearchText.next(e)}),this.subjOptionsSelected.subscribe(function(e){return l.selectionChanges.emit(e)});var u=je(Object(Ah.a)(this.subjExternalValue.pipe(Object(Fe.a)(function(e){return o=null===e?[]:[].concat(e)})),this.subjOptionsSelected.pipe(Object(Fe.a)(function(e){return e.map(function(e){return e.value})}))),this.subjDefaultValue).pipe(Object(Fe.a)(function(e){var t=Object(N.f)(e,2),n=t[0],r=t[1],i=Rh.isEqual(n,r)?[]:n;return i.length?i:r}),Object(Mp.a)(function(e,t){return Rh.isEqual(e,t)}),Object(Ch.a)());je(u,this.subjRegisterOnChange).pipe(Object(Fe.a)(function(e){return Object(N.f)(e,1)[0]})).subscribe(function(e){l.actualValue=e,Rh.isEqual(e,o)||(o=e,l.onChange(l.multiple?e:e.length?e[0]:null))}),je(this.subjOptions.pipe(Object(lt.a)(function(e){return Object(we.a)(e).pipe(Object(lt.a)(function(e){return e instanceof Ph?Object(_e.a)(e):e instanceof Ih?Object(we.a)(e.options):Ne.a}),xh())})),u).pipe(Object(Fe.a)(function(e){var t=Object(N.f)(e,2),n=t[0],r=[];if(t[1].forEach(function(e){var t=n.find(function(t){return t.value===e});t&&r.push(t)}),l.keepSelectedItems){var i=r.map(function(e){return e.value}),o=l.subjOptionsSelected.value.filter(function(e){return-1===i.indexOf(e.value)});r.push.apply(r,Object(N.g)(o))}Rh.isEqual(r,l.subjOptionsSelected.value)||(l.subjOptionsSelected.next(r),l.cd.markForCheck())})).subscribe(),je(this.subjOptions,this.subjOptionsSelected,this.subjSearchText).pipe(Object(Fe.a)(function(e){var t=Object(N.f)(e,3),n=t[1];return l.optionsFiltered=l.filterOptions(t[2],t[0],n).map(function(e){return e instanceof Ph?e.highlightedText=l.highlightOption(e):e instanceof Ih&&e.options.map(function(e){return e.highlightedText=l.highlightOption(e),e}),e}),l.cacheOptionsFilteredFlat=null,l.navigateOption(Dh.firstIfOptionActiveInvisible),l.cd.markForCheck(),n}),Object(lt.a)(function(e){return l.optionsFilteredFlat().pipe(Object(Ve.a)(function(t){return l.autoSelectSingleOption&&1===t.length&&!e.length}))})).subscribe(function(e){l.subjOptionsSelected.next(e),l.cd.markForCheck()})}return Object.defineProperty(e.prototype,"inputText",{get:function(){return this.inputElRef&&this.inputElRef.nativeElement?this.inputElRef.nativeElement.value:""},enumerable:!0,configurable:!0}),e.prototype.setFormControlSize=function(e,t){return void 0===e&&(e={}),void 0===t&&(t=!0),Object.assign(t?{"form-control-sm input-sm":"small"===this.size,"form-control-lg input-lg":"large"===this.size}:{},e)},e.prototype.setBtnSize=function(){return{"btn-sm":"small"===this.size,"btn-lg":"large"===this.size}},Object.defineProperty(e.prototype,"optionsSelected",{get:function(){return this.subjOptionsSelected.value},enumerable:!0,configurable:!0}),e.prototype.mainClicked=function(e){e.clickedSelectComponent=this,this.isFocused||(this.isFocused=!0,this.focus.emit())},e.prototype.documentClick=function(e){e.clickedSelectComponent!==this&&(this.optionsOpened&&(this.optionsClose(),this.cd.detectChanges()),this.isFocused&&(this.isFocused=!1,this.blur.emit()))},e.prototype.optionsFilteredFlat=function(){var e=this;return this.cacheOptionsFilteredFlat?Object(_e.a)(this.cacheOptionsFilteredFlat):Object(we.a)(this.optionsFiltered).pipe(Object(lt.a)(function(e){return e instanceof Ph?Object(_e.a)(e):e instanceof Ih?Object(we.a)(e.optionsFiltered):Ne.a}),Object(Ve.a)(function(e){return!e.disabled}),xh(),gt(function(t){return e.cacheOptionsFilteredFlat=t}))},e.prototype.navigateOption=function(e){var t=this;this.optionsFilteredFlat().pipe(Object(Fe.a)(function(n){var r,i={index:-1,activeOption:null,filteredOptionList:n};switch(e){case Dh.first:i.index=0;break;case Dh.previous:r=n.indexOf(t.optionActive)-1,i.index=r>=0?r:n.length-1;break;case Dh.next:r=n.indexOf(t.optionActive)+1,i.index=r0?o:0}return i.activeOption=n[i.index],i})).subscribe(function(e){return t.optionActivate(e)})},e.prototype.ngDoCheck=function(){this.itemsDiffer.diff(this.items)&&this.subjOptions.next(this.buildOptions(this.items));var e=this.defaultValue?[].concat(this.defaultValue):[];this.defaultValueDiffer.diff(e)&&this.subjDefaultValue.next(e)},e.prototype.ngAfterContentChecked=function(){if(this._focusToInput&&this.checkInputVisibility()&&this.inputElRef&&this.inputElRef.nativeElement!==document.activeElement&&(this._focusToInput=!1,this.inputElRef.nativeElement.focus()),this.choiceMenuElRef){var e=this.choiceMenuElRef.nativeElement.querySelector("a.ngx-select__item_active.active");e&&e.offsetHeight>0&&this.ensureVisibleElement(e)}},e.prototype.canClearNotMultiple=function(){return this.allowClear&&!!this.subjOptionsSelected.value.length&&(!this.subjDefaultValue.value.length||this.subjDefaultValue.value[0]!==this.actualValue[0])},e.prototype.focusToInput=function(){this._focusToInput=!0},e.prototype.inputKeyDown=function(e){var t=[].concat(this.keyCodeToOptionsSelect,this.keyCodeToNavigateFirst,this.keyCodeToNavigatePrevious,this.keyCodeToNavigateNext,this.keyCodeToNavigateLast),n=[].concat(this.keyCodeToOptionsOpen,this.keyCodeToRemoveSelected);if(this.optionsOpened&&-1!==t.indexOf(e.code))switch(e.preventDefault(),e.stopPropagation(),e.code){case[].concat(this.keyCodeToOptionsSelect).indexOf(e.code)+1&&e.code:this.optionSelect(this.optionActive),this.navigateOption(Dh.next);break;case this.keyCodeToNavigateFirst:this.navigateOption(Dh.first);break;case this.keyCodeToNavigatePrevious:this.navigateOption(Dh.previous);break;case this.keyCodeToNavigateLast:this.navigateOption(Dh.last);break;case this.keyCodeToNavigateNext:this.navigateOption(Dh.next)}else if(!this.optionsOpened&&-1!==n.indexOf(e.code))switch(e.preventDefault(),e.stopPropagation(),e.code){case[].concat(this.keyCodeToOptionsOpen).indexOf(e.code)+1&&e.code:this.optionsOpen();break;case this.keyCodeToRemoveSelected:this.optionRemove(this.subjOptionsSelected.value[this.subjOptionsSelected.value.length-1],e)}},e.prototype.trackByOption=function(e,t){return t instanceof Ph?t.value:t instanceof Ih?t.label:t},e.prototype.checkInputVisibility=function(){return!0===this.multiple||this.optionsOpened&&!this.noAutoComplete},e.prototype.inputKeyUp=function(e,t){void 0===e&&(e=""),t.code===this.keyCodeToOptionsClose?this.optionsClose():this.optionsOpened&&-1===["ArrowDown","ArrowUp","ArrowLeft","ArrowDown"].indexOf(t.code)?this.typed.emit(e):!this.optionsOpened&&e&&this.optionsOpen(e)},e.prototype.inputClick=function(e){void 0===e&&(e=""),this.optionsOpened||this.optionsOpen(e)},e.prototype.sanitize=function(e){return e?this.sanitizer.bypassSecurityTrustHtml(e):null},e.prototype.highlightOption=function(e){return e.renderText(this.sanitizer,this.inputElRef?this.inputElRef.nativeElement.value:"")},e.prototype.optionSelect=function(e,t){void 0===t&&(t=null),t&&(t.preventDefault(),t.stopPropagation()),e&&!e.disabled&&(this.subjOptionsSelected.next((this.multiple?this.subjOptionsSelected.value:[]).concat([e])),this.select.emit(e.value),this.keepSelectMenuOpened||this.optionsClose(),this.onTouched())},e.prototype.optionRemove=function(e,t){!this.disabled&&e&&(t.stopPropagation(),this.subjOptionsSelected.next((this.multiple?this.subjOptionsSelected.value:[]).filter(function(t){return t!==e})),this.remove.emit(e.value))},e.prototype.optionActivate=function(e){this.optionActive===e.activeOption||e.activeOption&&e.activeOption.disabled||(this.optionActive&&(this.optionActive.active=!1),this.optionActive=e.activeOption,this.optionActive&&(this.optionActive.active=!0),this.navigated.emit(e),this.cd.detectChanges())},e.prototype.onMouseEnter=function(e){var t=this;document.onmousemove=function(){t.autoActiveOnMouseEnter&&t.optionActivate(e)}},e.prototype.filterOptions=function(e,t,n){var r=this,i=new RegExp(Lh(e),"i"),o=function(t){return r.searchCallback?r.searchCallback(e,t):(!e||i.test(t.text))&&(!r.multiple||-1===n.indexOf(t))};return t.filter(function(e){if(e instanceof Ph)return o(e);if(e instanceof Ih){var t=e;return t.filter(function(e){return o(e)}),t.optionsFiltered.length}})},e.prototype.ensureVisibleElement=function(e){if(this.choiceMenuElRef&&this.cacheElementOffsetTop!==e.offsetTop){this.cacheElementOffsetTop=e.offsetTop;var t=this.choiceMenuElRef.nativeElement;this.cacheElementOffsetTopt.scrollTop+t.clientHeight&&(t.scrollTop=this.cacheElementOffsetTop+e.offsetHeight-t.clientHeight)}},e.prototype.optionsOpen=function(e){void 0===e&&(e=""),this.disabled||(this.optionsOpened=!0,this.subjSearchText.next(e),this.navigateOption(!this.multiple&&this.subjOptionsSelected.value.length?Dh.firstSelected:Dh.first),this.focusToInput(),this.open.emit(),this.cd.markForCheck())},e.prototype.optionsClose=function(){this.optionsOpened=!1,this.close.emit(),this.autoClearSearch&&this.multiple&&this.inputElRef&&(this.inputElRef.nativeElement.value=null)},e.prototype.buildOptions=function(e){var t=this,n=[];return Array.isArray(e)&&e.forEach(function(e){if("object"==typeof e&&null!==e&&Uh(e,t.optGroupLabelField)&&Uh(e,t.optGroupOptionsField)&&Array.isArray(e[t.optGroupOptionsField])){var r=new Ih(e[t.optGroupLabelField]);e[t.optGroupOptionsField].forEach(function(e){var n=t.buildOption(e,r);n&&r.options.push(n)}),n.push(r)}else{var i=t.buildOption(e,null);i&&n.push(i)}}),n},e.prototype.buildOption=function(e,t){var n,r,i;if("string"==typeof e||"number"==typeof e)n=r=e,i=!1;else{if("object"!=typeof e||null===e||!Uh(e,this.optionValueField)&&!Uh(e,this.optionTextField))return null;n=Uh(e,this.optionValueField)?e[this.optionValueField]:e[this.optionTextField],r=Uh(e,this.optionTextField)?e[this.optionTextField]:e[this.optionValueField],i=!!Uh(e,"disabled")&&e.disabled}return new Ph(n,r,i,e,t)},e.prototype.writeValue=function(e){this.subjExternalValue.next(e)},e.prototype.registerOnChange=function(e){this.onChange=e,this.subjRegisterOnChange.next()},e.prototype.registerOnTouched=function(e){this.onTouched=e},e.prototype.setDisabledState=function(e){this.disabled=e,this.cd.markForCheck()},Object(N.b)([Object(r.o)("document:focusin",["$event"]),Object(r.o)("document:click",["$event"]),Object(N.d)("design:type",Function),Object(N.d)("design:paramtypes",[Object]),Object(N.d)("design:returntype",void 0)],e.prototype,"documentClick",null),e}(),Kh=function(){function e(){}var t;return t=e,e.forRoot=function(e){return{ngModule:t,providers:[{provide:Nh,useValue:e}]}},e}(),Bh=r.sb({encapsulation:0,styles:['.ngx-select_multiple[_ngcontent-%COMP%]{height:auto;padding:3px 3px 0}.ngx-select_multiple[_ngcontent-%COMP%] .ngx-select__search[_ngcontent-%COMP%]{background-color:transparent!important;border:none;outline:0;box-shadow:none;height:1.6666em;padding:0;margin-bottom:3px}.ngx-select__disabled[_ngcontent-%COMP%]{background-color:#eceeef;border-radius:4px;position:absolute;width:100%;height:100%;z-index:5;opacity:.6;top:0;left:0;cursor:not-allowed}.ngx-select__toggle[_ngcontent-%COMP%]{outline:0;position:relative;text-align:left!important;color:#333;background-color:#fff;border-color:#ccc;display:inline-flex;align-items:stretch;justify-content:space-between}.ngx-select__toggle[_ngcontent-%COMP%]:hover{color:#333;background-color:#e6e6e6;border-color:#adadad}.ngx-select__toggle-buttons[_ngcontent-%COMP%]{flex-shrink:0;display:flex;align-items:center}.ngx-select__toggle-caret[_ngcontent-%COMP%]{position:absolute;height:10px;top:50%;right:10px;margin-top:-2px}.ngx-select__placeholder[_ngcontent-%COMP%]{float:left;max-width:100%;text-overflow:ellipsis;overflow:hidden}.ngx-select__clear[_ngcontent-%COMP%]{margin-right:10px;padding:0;border:none}.ngx-select_multiple[_ngcontent-%COMP%] .ngx-select__clear[_ngcontent-%COMP%]{line-height:initial;margin-left:5px;margin-right:0;color:#000;opacity:.5}.ngx-select__clear-icon[_ngcontent-%COMP%]{display:inline-block;font-size:inherit;cursor:pointer;position:relative;width:1em;height:.75em;padding:0}.ngx-select__clear-icon[_ngcontent-%COMP%]:after, .ngx-select__clear-icon[_ngcontent-%COMP%]:before{content:"";position:absolute;border-top:3px solid;width:100%;top:50%;left:0;margin-top:-1px}.ngx-select__clear-icon[_ngcontent-%COMP%]:before{-webkit-transform:rotate(45deg);transform:rotate(45deg)}.ngx-select__clear-icon[_ngcontent-%COMP%]:after{-webkit-transform:rotate(-45deg);transform:rotate(-45deg)}.ngx-select__choices[_ngcontent-%COMP%]{width:100%;height:auto;max-height:200px;overflow-x:hidden;margin-top:0;position:absolute}.ngx-select_multiple[_ngcontent-%COMP%] .ngx-select__choices[_ngcontent-%COMP%]{margin-top:1px}.ngx-select__item[_ngcontent-%COMP%]{display:block;padding:3px 20px;clear:both;font-weight:400;line-height:1.42857143;white-space:nowrap;cursor:pointer;text-decoration:none}.ngx-select__item_disabled[_ngcontent-%COMP%], .ngx-select__item_no-found[_ngcontent-%COMP%]{cursor:default}.ngx-select__item_active[_ngcontent-%COMP%]{color:#fff;outline:0;background-color:#428bca}.ngx-select__selected-plural[_ngcontent-%COMP%], .ngx-select__selected-single[_ngcontent-%COMP%]{display:inline-flex;align-items:center;overflow:hidden}.ngx-select__selected-plural[_ngcontent-%COMP%] span[_ngcontent-%COMP%], .ngx-select__selected-single[_ngcontent-%COMP%] span[_ngcontent-%COMP%]{overflow:hidden;text-overflow:ellipsis}.ngx-select__selected-plural[_ngcontent-%COMP%]{outline:0;margin:0 3px 3px 0}.input-group[_ngcontent-%COMP%] > .dropdown[_ngcontent-%COMP%]{position:static}'],data:{}});function Vh(e){return r.Qb(0,[(e()(),r.ub(0,0,null,null,3,"span",[["class","ngx-select__placeholder text-muted"]],null,null,null,null,null)),(e()(),r.Ob(-1,null,["\n "])),(e()(),r.ub(2,0,null,null,0,"span",[],[[8,"innerHTML",1]],null,null,null,null)),(e()(),r.Ob(-1,null,["\n "]))],null,function(e,t){e(t,2,0,t.component.placeholder)})}function Gh(e){return r.Qb(0,[(e()(),r.ub(0,0,null,null,9,"span",[["class","ngx-select__selected-single pull-left float-left"]],null,null,null,null,null)),r.Lb(512,null,Z,X,[r.t,r.u,r.k,r.E]),r.tb(2,278528,null,0,ee,[Z],{klass:[0,"klass"],ngClass:[1,"ngClass"]},null),r.Jb(3,{"ngx-select__allow-clear":0}),(e()(),r.Ob(-1,null,["\n "])),(e()(),r.ub(5,16777216,null,null,3,null,null,null,null,null,null,null)),r.tb(6,540672,null,0,pe,[r.P],{ngTemplateOutletContext:[0,"ngTemplateOutletContext"],ngTemplateOutlet:[1,"ngTemplateOutlet"]},null),r.Jb(7,{$implicit:0,index:1,text:2}),(e()(),r.Ob(-1,null,["\n "])),(e()(),r.Ob(-1,null,["\n "]))],function(e,t){var n=t.component,i=e(t,3,0,n.allowClear);e(t,2,0,"ngx-select__selected-single pull-left float-left",i);var o=e(t,7,0,n.optionsSelected[0],0,n.sanitize(n.optionsSelected[0].text));e(t,6,0,o,n.templateSelectedOption||r.Gb(t.parent.parent,30))},null)}function Hh(e){return r.Qb(0,[(e()(),r.ub(0,0,null,null,5,"a",[["class","ngx-select__clear btn btn-sm btn-link"]],null,[[null,"click"]],function(e,t,n){var r=!0,i=e.component;return"click"===t&&(r=!1!==i.optionRemove(i.optionsSelected[0],n)&&r),r},null,null)),r.Lb(512,null,Z,X,[r.t,r.u,r.k,r.E]),r.tb(2,278528,null,0,ee,[Z],{klass:[0,"klass"],ngClass:[1,"ngClass"]},null),(e()(),r.Ob(-1,null,["\n "])),(e()(),r.ub(4,0,null,null,0,"i",[["class","ngx-select__clear-icon"]],null,null,null,null,null)),(e()(),r.Ob(-1,null,["\n "]))],function(e,t){e(t,2,0,"ngx-select__clear btn btn-sm btn-link",t.component.setBtnSize())},null)}function $h(e){return r.Qb(0,[(e()(),r.ub(0,0,null,null,22,"div",[["class","ngx-select__selected"]],null,null,null,null,null)),(e()(),r.Ob(-1,null,["\n "])),(e()(),r.ub(2,0,null,null,19,"div",[["class","ngx-select__toggle btn form-control"]],null,[[null,"click"]],function(e,t,n){var r=!0;return"click"===t&&(r=!1!==e.component.optionsOpen()&&r),r},null,null)),r.Lb(512,null,Z,X,[r.t,r.u,r.k,r.E]),r.tb(4,278528,null,0,ee,[Z],{klass:[0,"klass"],ngClass:[1,"ngClass"]},null),(e()(),r.Ob(-1,null,["\n\n "])),(e()(),r.jb(16777216,null,null,1,null,Vh)),r.tb(7,16384,null,0,ie,[r.P,r.M],{ngIf:[0,"ngIf"]},null),(e()(),r.Ob(-1,null,["\n "])),(e()(),r.jb(16777216,null,null,1,null,Gh)),r.tb(10,16384,null,0,ie,[r.P,r.M],{ngIf:[0,"ngIf"]},null),(e()(),r.Ob(-1,null,["\n "])),(e()(),r.ub(12,0,null,null,8,"span",[["class","ngx-select__toggle-buttons"]],null,null,null,null,null)),(e()(),r.Ob(-1,null,["\n "])),(e()(),r.jb(16777216,null,null,1,null,Hh)),r.tb(15,16384,null,0,ie,[r.P,r.M],{ngIf:[0,"ngIf"]},null),(e()(),r.Ob(-1,null,["\n "])),(e()(),r.ub(17,0,null,null,0,"i",[["class","dropdown-toggle"]],null,null,null,null,null)),(e()(),r.Ob(-1,null,["\n "])),(e()(),r.ub(19,0,null,null,0,"i",[["class","ngx-select__toggle-caret caret"]],null,null,null,null,null)),(e()(),r.Ob(-1,null,["\n "])),(e()(),r.Ob(-1,null,["\n "])),(e()(),r.Ob(-1,null,["\n "]))],function(e,t){var n=t.component;e(t,4,0,"ngx-select__toggle btn form-control",n.setFormControlSize(n.setBtnSize())),e(t,7,0,!n.optionsSelected.length),e(t,10,0,n.optionsSelected.length),e(t,15,0,n.canClearNotMultiple())},null)}function zh(e){return r.Qb(0,[(e()(),r.ub(0,0,null,null,18,"span",[],null,null,null,null,null)),(e()(),r.Ob(-1,null,["\n "])),(e()(),r.ub(2,0,null,null,15,"span",[["class","ngx-select__selected-plural btn btn-default btn-secondary btn-xs"],["tabindex","-1"]],null,[[null,"click"]],function(e,t,n){var r=!0;return"click"===t&&(r=!1!==n.stopPropagation()&&r),r},null,null)),r.Lb(512,null,Z,X,[r.t,r.u,r.k,r.E]),r.tb(4,278528,null,0,ee,[Z],{klass:[0,"klass"],ngClass:[1,"ngClass"]},null),(e()(),r.Ob(-1,null,["\n\n "])),(e()(),r.ub(6,16777216,null,null,3,null,null,null,null,null,null,null)),r.tb(7,540672,null,0,pe,[r.P],{ngTemplateOutletContext:[0,"ngTemplateOutletContext"],ngTemplateOutlet:[1,"ngTemplateOutlet"]},null),r.Jb(8,{$implicit:0,index:1,text:2}),(e()(),r.Ob(-1,null,["\n "])),(e()(),r.Ob(-1,null,["\n\n "])),(e()(),r.ub(11,0,null,null,5,"a",[["class","ngx-select__clear btn btn-sm btn-link pull-right float-right"]],null,[[null,"click"]],function(e,t,n){var r=!0;return"click"===t&&(r=!1!==e.component.optionRemove(e.context.$implicit,n)&&r),r},null,null)),r.Lb(512,null,Z,X,[r.t,r.u,r.k,r.E]),r.tb(13,278528,null,0,ee,[Z],{klass:[0,"klass"],ngClass:[1,"ngClass"]},null),(e()(),r.Ob(-1,null,["\n "])),(e()(),r.ub(15,0,null,null,0,"i",[["class","ngx-select__clear-icon"]],null,null,null,null,null)),(e()(),r.Ob(-1,null,["\n "])),(e()(),r.Ob(-1,null,["\n "])),(e()(),r.Ob(-1,null,["\n "]))],function(e,t){var n=t.component;e(t,4,0,"ngx-select__selected-plural btn btn-default btn-secondary btn-xs",n.setBtnSize());var i=e(t,8,0,t.context.$implicit,t.context.index,n.sanitize(t.context.$implicit.text));e(t,7,0,i,n.templateSelectedOption||r.Gb(t.parent.parent,30)),e(t,13,0,"ngx-select__clear btn btn-sm btn-link pull-right float-right",n.setBtnSize())},null)}function Qh(e){return r.Qb(0,[(e()(),r.ub(0,0,null,null,4,"div",[["class","ngx-select__selected"]],null,[[null,"click"]],function(e,t,n){var r=!0,i=e.component;return"click"===t&&(r=!1!==i.inputClick(i.inputElRef&&i.inputElRef.value)&&r),r},null,null)),(e()(),r.Ob(-1,null,["\n "])),(e()(),r.jb(16777216,null,null,1,null,zh)),r.tb(3,278528,null,0,ne,[r.P,r.M,r.t],{ngForOf:[0,"ngForOf"],ngForTrackBy:[1,"ngForTrackBy"]},null),(e()(),r.Ob(-1,null,["\n "]))],function(e,t){var n=t.component;e(t,3,0,n.optionsSelected,n.trackByOption)},null)}function Wh(e){return r.Qb(0,[(e()(),r.ub(0,0,[[2,0],["input",1]],null,2,"input",[["autocapitalize","off"],["autocomplete","off"],["autocorrect","off"],["class","ngx-select__search form-control"],["role","combobox"],["spellcheck","false"],["type","text"]],[[8,"tabIndex",0],[8,"disabled",0],[8,"placeholder",0]],[[null,"keyup"],[null,"click"]],function(e,t,n){var i=!0,o=e.component;return"keyup"===t&&(i=!1!==o.inputKeyUp(r.Gb(e,0).value,n)&&i),"click"===t&&(i=!1!==o.inputClick(r.Gb(e,0).value)&&i),i},null,null)),r.Lb(512,null,Z,X,[r.t,r.u,r.k,r.E]),r.tb(2,278528,null,0,ee,[Z],{klass:[0,"klass"],ngClass:[1,"ngClass"]},null)],function(e,t){e(t,2,0,"ngx-select__search form-control",t.component.setFormControlSize())},function(e,t){var n=t.component;e(t,0,0,!1===n.multiple?-1:0,n.disabled,n.optionsSelected.length?"":n.placeholder)})}function qh(e){return r.Qb(0,[(e()(),r.ub(0,0,null,null,0,"div",[["class","divider dropdown-divider"]],null,null,null,null,null))],null,null)}function Jh(e){return r.Qb(0,[(e()(),r.ub(0,0,null,null,1,"div",[["class","dropdown-header"]],null,null,null,null,null)),(e()(),r.Ob(1,null,["",""]))],null,function(e,t){e(t,1,0,t.parent.context.$implicit.label)})}function Yh(e){return r.Qb(0,[(e()(),r.ub(0,0,[["choiceItem",1]],null,8,"a",[["class","ngx-select__item dropdown-item"],["href","#"]],null,[[null,"mouseenter"],[null,"click"]],function(e,t,n){var r=!0,i=e.component;return"mouseenter"===t&&(r=!1!==i.onMouseEnter({activeOption:e.context.$implicit,filteredOptionList:i.optionsFiltered,index:i.optionsFiltered.indexOf(e.context.$implicit)})&&r),"click"===t&&(r=!1!==i.optionSelect(e.context.$implicit,n)&&r),r},null,null)),r.Lb(512,null,Z,X,[r.t,r.u,r.k,r.E]),r.tb(2,278528,null,0,ee,[Z],{klass:[0,"klass"],ngClass:[1,"ngClass"]},null),r.Jb(3,{"ngx-select__item_active active":0,"ngx-select__item_disabled disabled":1}),(e()(),r.Ob(-1,null,["\n "])),(e()(),r.ub(5,16777216,null,null,2,null,null,null,null,null,null,null)),r.tb(6,540672,null,0,pe,[r.P],{ngTemplateOutletContext:[0,"ngTemplateOutletContext"],ngTemplateOutlet:[1,"ngTemplateOutlet"]},null),r.Jb(7,{$implicit:0,text:1,index:2,subIndex:3}),(e()(),r.Ob(-1,null,["\n "]))],function(e,t){var n=t.component,i=e(t,3,0,t.context.$implicit.active,t.context.$implicit.disabled);e(t,2,0,"ngx-select__item dropdown-item",i);var o=e(t,7,0,t.context.$implicit,t.context.$implicit.highlightedText,t.parent.context.index,t.context.index);e(t,6,0,o,n.templateOption||r.Gb(t.parent.parent.parent,30))},null)}function Zh(e){return r.Qb(0,[(e()(),r.ub(0,0,null,null,11,"li",[["class","ngx-select__item-group"],["role","menuitem"]],null,null,null,null,null)),(e()(),r.Ob(-1,null,["\n "])),(e()(),r.jb(16777216,null,null,1,null,qh)),r.tb(3,16384,null,0,ie,[r.P,r.M],{ngIf:[0,"ngIf"]},null),(e()(),r.Ob(-1,null,["\n "])),(e()(),r.jb(16777216,null,null,1,null,Jh)),r.tb(6,16384,null,0,ie,[r.P,r.M],{ngIf:[0,"ngIf"]},null),(e()(),r.Ob(-1,null,["\n\n "])),(e()(),r.jb(16777216,null,null,2,null,Yh)),r.tb(9,278528,null,0,ne,[r.P,r.M,r.t],{ngForOf:[0,"ngForOf"],ngForTrackBy:[1,"ngForTrackBy"]},null),r.Hb(10,1),(e()(),r.Ob(-1,null,["\n "]))],function(e,t){var n=t.component;e(t,3,0,"optgroup"===t.context.$implicit.type&&t.context.index>0),e(t,6,0,"optgroup"===t.context.$implicit.type);var r=t.context.$implicit.optionsFiltered||e(t,10,0,t.context.$implicit);e(t,9,0,r,n.trackByOption)},null)}function Xh(e){return r.Qb(0,[(e()(),r.ub(0,0,null,null,5,"li",[["class","ngx-select__item ngx-select__item_no-found dropdown-header"]],null,null,null,null,null)),(e()(),r.Ob(-1,null,["\n "])),(e()(),r.ub(2,16777216,null,null,2,null,null,null,null,null,null,null)),r.tb(3,540672,null,0,pe,[r.P],{ngTemplateOutletContext:[0,"ngTemplateOutletContext"],ngTemplateOutlet:[1,"ngTemplateOutlet"]},null),r.Jb(4,{$implicit:0}),(e()(),r.Ob(-1,null,["\n "]))],function(e,t){var n=t.component,i=e(t,4,0,n.inputText);e(t,3,0,i,n.templateOptionNotFound||r.Gb(t.parent.parent,32))},null)}function ey(e){return r.Qb(0,[(e()(),r.ub(0,0,[[3,0],["choiceMenu",1]],null,7,"ul",[["class","ngx-select__choices dropdown-menu"],["role","menu"]],[[2,"show",null]],null,null,null,null)),(e()(),r.Ob(-1,null,["\n "])),(e()(),r.jb(16777216,null,null,1,null,Zh)),r.tb(3,278528,null,0,ne,[r.P,r.M,r.t],{ngForOf:[0,"ngForOf"],ngForTrackBy:[1,"ngForTrackBy"]},null),(e()(),r.Ob(-1,null,["\n "])),(e()(),r.jb(16777216,null,null,1,null,Xh)),r.tb(6,16384,null,0,ie,[r.P,r.M],{ngIf:[0,"ngIf"]},null),(e()(),r.Ob(-1,null,["\n "]))],function(e,t){var n=t.component;e(t,3,0,n.optionsFiltered,n.trackByOption),e(t,6,0,!n.optionsFiltered.length)},function(e,t){var n=t.component;e(t,0,0,n.optionsOpened&&n.subjOptions.value.length)})}function ty(e){return r.Qb(0,[(e()(),r.Ob(-1,null,["\n "])),(e()(),r.ub(1,0,null,null,0,"span",[],[[8,"innerHTML",1]],null,null,null,null)),(e()(),r.Ob(-1,null,["\n "]))],null,function(e,t){e(t,1,0,t.context.text)})}function ny(e){return r.Qb(0,[(e()(),r.Ob(0,null,["\n ","\n "]))],null,function(e,t){e(t,0,0,t.component.noResultsFound)})}function ry(e){return r.Qb(2,[r.Mb(402653184,1,{mainElRef:0}),r.Mb(671088640,2,{inputElRef:0}),r.Mb(671088640,3,{choiceMenuElRef:0}),(e()(),r.ub(3,0,[[1,0],["main",1]],null,30,"div",[["class","ngx-select dropdown"]],[[8,"tabIndex",0]],[[null,"click"],[null,"focusin"],[null,"focus"],[null,"keydown"]],function(e,t,n){var r=!0,i=e.component;return"click"===t&&(r=!1!==i.mainClicked(n)&&r),"focusin"===t&&(r=!1!==i.mainClicked(n)&&r),"focus"===t&&(r=!1!==i.focusToInput()&&r),"keydown"===t&&(r=!1!==i.inputKeyDown(n)&&r),r},null,null)),r.Lb(512,null,Z,X,[r.t,r.u,r.k,r.E]),r.tb(5,278528,null,0,ee,[Z],{klass:[0,"klass"],ngClass:[1,"ngClass"]},null),r.Jb(6,{"ngx-select_multiple form-control":0,"open show":1}),(e()(),r.Ob(-1,null,["\n "])),(e()(),r.ub(8,0,null,null,3,"div",[],null,null,null,null,null)),r.Lb(512,null,Z,X,[r.t,r.u,r.k,r.E]),r.tb(10,278528,null,0,ee,[Z],{ngClass:[0,"ngClass"]},null),r.Jb(11,{"ngx-select__disabled":0}),(e()(),r.Ob(-1,null,["\n\n "])),(e()(),r.Ob(-1,null,["\n "])),(e()(),r.jb(16777216,null,null,1,null,$h)),r.tb(15,16384,null,0,ie,[r.P,r.M],{ngIf:[0,"ngIf"]},null),(e()(),r.Ob(-1,null,["\n\n "])),(e()(),r.Ob(-1,null,["\n "])),(e()(),r.jb(16777216,null,null,1,null,Qh)),r.tb(19,16384,null,0,ie,[r.P,r.M],{ngIf:[0,"ngIf"]},null),(e()(),r.Ob(-1,null,["\n\n "])),(e()(),r.Ob(-1,null,["\n "])),(e()(),r.jb(16777216,null,null,1,null,Wh)),r.tb(23,16384,null,0,ie,[r.P,r.M],{ngIf:[0,"ngIf"]},null),(e()(),r.Ob(-1,null,["\n\n "])),(e()(),r.Ob(-1,null,["\n "])),(e()(),r.jb(16777216,null,null,1,null,ey)),r.tb(27,16384,null,0,ie,[r.P,r.M],{ngIf:[0,"ngIf"]},null),(e()(),r.Ob(-1,null,["\n\n "])),(e()(),r.Ob(-1,null,["\n "])),(e()(),r.jb(0,[["defaultTemplateOption",2]],null,0,null,ty)),(e()(),r.Ob(-1,null,["\n\n "])),(e()(),r.jb(0,[["defaultTemplateOptionNotFound",2]],null,0,null,ny)),(e()(),r.Ob(-1,null,["\n\n"])),(e()(),r.Ob(-1,null,["\n"]))],function(e,t){var n=t.component,r=n.setFormControlSize(e(t,6,0,!0===n.multiple,n.optionsOpened&&n.optionsFiltered.length),!0===n.multiple);e(t,5,0,"ngx-select dropdown",r);var i=e(t,11,0,n.disabled);e(t,10,0,i),e(t,15,0,!1===n.multiple&&(!n.optionsOpened||n.noAutoComplete)),e(t,19,0,!0===n.multiple),e(t,23,0,n.checkInputVisibility()),e(t,27,0,n.isFocused)},function(e,t){e(t,3,0,t.component.disabled?-1:0)})}var iy=function(){function e(e,t){this.captureService=e,this.store=t,this.isLink=!1,this.captureText="Capture keystroke",this.capture=new r.m,this.record=!1,this.captureService.initModifiers(),this.captureService.populateMapping(),this.scanCodePressed=!1}return e.prototype.onKeyUp=function(e){this.scanCodePressed?(e.preventDefault(),e.stopPropagation(),this.scanCodePressed=!1):this.record&&!this.first&&(e.preventDefault(),e.stopPropagation(),this.saveScanCode())},e.prototype.onKeyDown=function(e){var t=e.keyCode;this.record?(e.preventDefault(),e.stopPropagation(),this.first=!1,this.captureService.hasMap(t)?(this.saveScanCode(this.captureService.getMap(t)),this.scanCodePressed=!0):this.captureService.setModifier(1===e.location,t)):t===Dd.Key.Enter&&(this.record=!0,this.first=!0,this.store.dispatch(new Cu))},e.prototype.onFocusOut=function(){this.record=!1,this.reset()},e.prototype.start=function(){this.record=!0,this.store.dispatch(new Cu)},e.prototype.saveScanCode=function(e){this.record=!1;var t=this.captureService.getModifiers(!0),n=this.captureService.getModifiers(!1);this.capture.emit({code:e,left:t,right:n}),this.reset()},e.prototype.reset=function(){this.first=!1,this.captureService.initModifiers(),this.store.dispatch(new Tu)},e}(),oy=r.sb({encapsulation:0,styles:[[".link--capture-keystroke[_ngcontent-%COMP%]{padding:7px 0;text-decoration:none;border:0;width:100%}.link--capture-keystroke[_ngcontent-%COMP%]:focus{outline:0}.btn--capture-keystroke[_ngcontent-%COMP%]{display:inline-block;margin:0 0 0 .25rem}.fa-circle[_ngcontent-%COMP%]{color:#c00}"]],data:{}});function ly(e){return r.Qb(0,[(e()(),r.Ob(0,null,["\n","\n"]))],null,function(e,t){e(t,0,0,t.component.captureText)})}function uy(e){return r.Qb(0,[(e()(),r.Ob(-1,null,["\nCapturing ...\n"]))],null,null)}function ay(e){return r.Qb(2,[(e()(),r.ub(0,0,null,null,12,"button",[["type","button"]],null,[[null,"click"]],function(e,t,n){var r=!0;return"click"===t&&(r=!1!==e.component.start()&&r),r},null,null)),r.Lb(512,null,Z,X,[r.t,r.u,r.k,r.E]),r.tb(2,278528,null,0,ee,[Z],{ngClass:[0,"ngClass"]},null),r.Jb(3,{"btn btn-sm btn--capture-keystroke":0,"btn-link link--capture-keystroke":1,"btn-default":2,"btn-info":3}),(e()(),r.Ob(-1,null,["\n"])),(e()(),r.ub(5,0,null,null,0,"i",[["class","fa fa-circle"]],null,null,null,null,null)),(e()(),r.Ob(-1,null,["\n\n"])),(e()(),r.jb(16777216,null,null,1,null,ly)),r.tb(8,16384,null,0,ie,[r.P,r.M],{ngIf:[0,"ngIf"]},null),(e()(),r.Ob(-1,null,["\n\n"])),(e()(),r.jb(16777216,null,null,1,null,uy)),r.tb(11,16384,null,0,ie,[r.P,r.M],{ngIf:[0,"ngIf"]},null),(e()(),r.Ob(-1,null,["\n"]))],function(e,t){var n=t.component,r=e(t,3,0,!n.isLink,n.isLink,!n.record&&!n.isLink,n.record&&!n.isLink);e(t,2,0,r),e(t,8,0,!n.record),e(t,11,0,n.record)},null)}var sy=function(){function e(){this.validAction=new r.m}return e.prototype.remapInfoChanged=function(e){},e}(),cy=function(e){function t(t,n){var i=e.call(this)||this;return i.mapper=t,i.cdRef=n,i.keyActionChange=new r.m,i.secondaryRoleGroups=[],i.leftModifiers=t.getLeftKeyModifiers(),i.rightModifiers=t.getRightKeyModifiers(),i.scanCodeGroups=[{id:"0",text:"None"}],i.scanCodeGroups=i.scanCodeGroups.concat($o.SCANCODES),i.selectedScancodeOption=i.scanCodeGroups[0],i.selectedSecondaryRoleIndex=-1,i}return N.c(t,e),t.prototype.ngOnChanges=function(e){e.showLayerSwitcherInSecondaryRoles&&this.fillSecondaryRoles(),this.fromKeyAction(this.defaultKeyAction),this.keyActionChanged(!1)},t.prototype.keyActionValid=function(e){return e||(e=this.toKeyAction()),!!e&&(e.scancode>0||e.modifierMask>0)},t.prototype.onKeysCapture=function(e){this.selectedScancodeOption=e.code?this.findScancodeOptionByScancode(e.code,$o.KeystrokeType.basic):this.scanCodeGroups[0],this.leftModifiers=e.left,this.rightModifiers=e.right,this.keyActionChanged()},t.prototype.fromKeyAction=function(e){if(!(e instanceof $o.KeystrokeAction))return!1;var t=e;this.selectedScancodeOption=this.findScancodeOptionByScancode(t.scancode||0,t.type);for(var n=0,r=this.leftModifiers;n0;for(var i=0,o=this.rightModifiers;i0}return this.selectedSecondaryRoleIndex=void 0!==t.secondaryRoleAction?this.mapper.modifierMapper(t.secondaryRoleAction):-1,!0},t.prototype.toKeyAction=function(){var e=new $o.KeystrokeAction,t=this.toScancodeTypePair(this.selectedScancodeOption);if(e.scancode=t[0],e.type="media"===t[1]?e.scancode>255?$o.KeystrokeType.longMedia:$o.KeystrokeType.shortMedia:$o.KeystrokeType[t[1]],e.modifierMask=Ml(this.leftModifiers,this.rightModifiers),e.secondaryRoleAction=-1===this.selectedSecondaryRoleIndex?void 0:this.mapper.modifierMapper(this.selectedSecondaryRoleIndex),this.keyActionValid(e))return e},t.prototype.toggleModifier=function(e){e.checked=!e.checked,this.keyActionChanged()},t.prototype.onSecondaryRoleChange=function(e){this.selectedSecondaryRoleIndex=+e,this.keyActionChanged()},t.prototype.onScancodeChange=function(e){this.selectedScancodeOption=this.findScancodeOptionById(e),this.keyActionChanged()},t.prototype.modifiersTrackBy=function(e,t){return""+t.value+t.checked},t.prototype.remapInfoChanged=function(e){this.remapInfo=e;var t=this.toKeyAction();this.calculateRemapOnAllLayerWarningVisibility(t),this.cdRef.markForCheck()},t.prototype.findScancodeOptionBy=function(e){for(var t,n=this.scanCodeGroups.slice();n.length>0;){var r=n.shift();if(e(r)){t=r;break}r.children&&n.push.apply(n,r.children)}return t},t.prototype.findScancodeOptionById=function(e){return this.findScancodeOptionBy(function(t){return t.id===e})},t.prototype.findScancodeOptionByScancode=function(e,t){var n=t===$o.KeystrokeType.shortMedia||t===$o.KeystrokeType.longMedia?"media":$o.KeystrokeType[t];return this.findScancodeOptionBy(function(t){var r=t.additional;return!(!r||r.scancode!==e||r.type!==n)||!(r&&void 0!==r.scancode||+t.id!==e)})},t.prototype.toScancodeTypePair=function(e){return e?(e.additional?(t=e.additional.scancode,n=e.additional.type||"basic"):n="basic",void 0===t&&(t=+e.id),[t,n]):[0,"basic"];var t,n},t.prototype.keyActionChanged=function(e){void 0===e&&(e=!0);var t=this.toKeyAction();this.validAction.emit(this.keyActionValid(t)),this.calculateRemapOnAllLayerWarningVisibility(t),e&&this.keyActionChange.emit(t)},t.prototype.calculateRemapOnAllLayerWarningVisibility=function(e){this.warningVisible=this.allowRemapOnAllKeymapWarning&&this.remapInfo&&!this.remapInfo.remapOnAllLayer&&e&&!e.hasScancode()&&e.hasOnlyOneActiveModifier()},t.prototype.fillSecondaryRoles=function(){var e;this.secondaryRoleGroups=$o.SECONDARY_ROLES.filter((e=this.showLayerSwitcherInSecondaryRoles,function(t){return e?t:"Layer switcher"!==t.text}))},t}(sy),py=r.sb({encapsulation:0,styles:[["[_nghost-%COMP%]{display:flex;flex-direction:column;position:relative}[_nghost-%COMP%] .scancode-options[_ngcontent-%COMP%]{margin-bottom:10px;margin-top:2px}[_nghost-%COMP%] .scancode-options[_ngcontent-%COMP%] > b[_ngcontent-%COMP%]{position:relative;top:2px}[_nghost-%COMP%] .scancode-options[_ngcontent-%COMP%] icon[_ngcontent-%COMP%]{display:inline-block}[_nghost-%COMP%] .modifier-options[_ngcontent-%COMP%] > b[_ngcontent-%COMP%]{position:relative;top:-9px;margin-right:4px}[_nghost-%COMP%] .modifier-options[_ngcontent-%COMP%] .btn-toolbar[_ngcontent-%COMP%]{display:inline-block}[_nghost-%COMP%] .long-press-container[_ngcontent-%COMP%]{display:flex;margin-top:3rem}[_nghost-%COMP%] .long-press-container[_ngcontent-%COMP%] > b[_ngcontent-%COMP%]{margin-right:.6em;align-items:center;display:flex}[_nghost-%COMP%] .long-press-container[_ngcontent-%COMP%] .secondary-role[_ngcontent-%COMP%]{width:135px}[_nghost-%COMP%] .long-press-container[_ngcontent-%COMP%] icon[_ngcontent-%COMP%]{margin-left:.6em}[_nghost-%COMP%] .setting-label.disabled[_ngcontent-%COMP%]{color:#999}[_nghost-%COMP%] .disabled-state--text[_ngcontent-%COMP%]{display:none;position:absolute;top:50%;margin-top:-4rem;color:#31708f;padding-right:40px}[_nghost-%COMP%] .disabled-state--text[_ngcontent-%COMP%] .fa[_ngcontent-%COMP%]{font-size:2.6rem;float:left;padding:1rem 1.5rem 2rem}.disabled[_nghost-%COMP%] .long-press-container[_ngcontent-%COMP%], .disabled[_nghost-%COMP%] .modifier-options[_ngcontent-%COMP%], .disabled[_nghost-%COMP%] .scancode-options[_ngcontent-%COMP%]{visibility:hidden}.disabled[_nghost-%COMP%] .disabled-state--text[_ngcontent-%COMP%]{display:block}[_nghost-%COMP%] .scancode-container[_ngcontent-%COMP%]{display:inline-block;width:200px}[_nghost-%COMP%] .secondary-role-groups-container[_ngcontent-%COMP%]{display:inline-block;width:140px}[_nghost-%COMP%] .remap-warning[_ngcontent-%COMP%]{margin-top:10px;margin-bottom:0;padding-top:5px;padding-bottom:5px}"]],data:{}});function fy(e){return r.Qb(0,[(e()(),r.Ob(-1,null,["\n "])),(e()(),r.ub(1,0,null,null,10,"span",[],null,null,null,null,null)),r.Lb(512,null,Z,X,[r.t,r.u,r.k,r.E]),r.tb(3,278528,null,0,ee,[Z],{ngClass:[0,"ngClass"]},null),r.Jb(4,{"indent-dropdown-item":0}),(e()(),r.Ob(-1,null,["\n "])),(e()(),r.ub(6,0,null,null,1,"span",[],null,null,null,null,null)),(e()(),r.Ob(7,null,["",""])),(e()(),r.Ob(-1,null,["\n "])),(e()(),r.ub(9,0,null,null,1,"span",[["class","scancode--searchterm"]],null,null,null,null,null)),(e()(),r.Ob(10,null,["\n ","\n "])),(e()(),r.Ob(-1,null,["\n "])),(e()(),r.Ob(-1,null,["\n "]))],function(e,t){var n=e(t,4,0,"0"!==t.context.$implicit.data.id);e(t,3,0,n)},function(e,t){e(t,7,0,t.context.$implicit.text),e(t,10,0,null==t.context.$implicit.data.additional?null:t.context.$implicit.data.additional.explanation)})}function dy(e){return r.Qb(0,[(e()(),r.ub(0,0,null,null,1,"button",[["class","btn btn-default"],["type","button"]],[[2,"btn-primary",null]],[[null,"click"]],function(e,t,n){var r=!0;return"click"===t&&(r=!1!==e.component.toggleModifier(e.context.$implicit)&&r),r},null,null)),(e()(),r.Ob(1,null,["\n ","\n "]))],null,function(e,t){e(t,0,0,t.context.$implicit.checked),e(t,1,0,t.context.$implicit.text)})}function hy(e){return r.Qb(0,[(e()(),r.ub(0,0,null,null,1,"button",[["class","btn btn-default"],["type","button"]],[[2,"btn-primary",null]],[[null,"click"]],function(e,t,n){var r=!0;return"click"===t&&(r=!1!==e.component.toggleModifier(e.context.$implicit)&&r),r},null,null)),(e()(),r.Ob(1,null,["\n ","\n "]))],null,function(e,t){e(t,0,0,t.context.$implicit.checked),e(t,1,0,t.context.$implicit.text)})}function yy(e){return r.Qb(0,[(e()(),r.Ob(-1,null,["\n "])),(e()(),r.ub(1,0,null,null,10,"span",[],null,null,null,null,null)),r.Lb(512,null,Z,X,[r.t,r.u,r.k,r.E]),r.tb(3,278528,null,0,ee,[Z],{ngClass:[0,"ngClass"]},null),r.Jb(4,{"indent-dropdown-item":0}),(e()(),r.Ob(-1,null,["\n "])),(e()(),r.ub(6,0,null,null,1,"span",[],null,null,null,null,null)),(e()(),r.Ob(7,null,["",""])),(e()(),r.Ob(-1,null,["\n "])),(e()(),r.ub(9,0,null,null,1,"span",[["class","scancode--searchterm"]],null,null,null,null,null)),(e()(),r.Ob(10,null,["\n ","\n "])),(e()(),r.Ob(-1,null,["\n "])),(e()(),r.Ob(-1,null,["\n "]))],function(e,t){var n=e(t,4,0,"-1"!==t.context.$implicit.data.id);e(t,3,0,n)},function(e,t){e(t,7,0,t.context.$implicit.text),e(t,10,0,null==t.context.$implicit.data.additional?null:t.context.$implicit.data.additional.explanation)})}function by(e){return r.Qb(0,[(e()(),r.ub(0,0,null,null,25,"div",[["class","long-press-container"]],null,null,null,null,null)),(e()(),r.Ob(-1,null,["\n "])),(e()(),r.ub(2,0,null,null,1,"b",[["class","setting-label"]],null,null,null,null,null)),(e()(),r.Ob(-1,null,["Secondary role:"])),(e()(),r.Ob(-1,null,["\n "])),(e()(),r.ub(5,0,null,null,15,"div",[["class","secondary-role-groups-container"]],null,null,null,null,null)),(e()(),r.Ob(-1,null,["\n "])),(e()(),r.ub(7,0,null,null,12,"ngx-select",[["optGroupLabelField","text"],["optGroupOptionsField","children"],["optionTextField","text"],["optionValueField","id"],["size","small"]],[[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,"select"],["document","focusin"],["document","click"]],function(e,t,n){var i=!0,o=e.component;return"document:focusin"===t&&(i=!1!==r.Gb(e,8).documentClick(n)&&i),"document:click"===t&&(i=!1!==r.Gb(e,8).documentClick(n)&&i),"select"===t&&(i=!1!==o.onSecondaryRoleChange(n)&&i),i},ry,Bh)),r.tb(8,2408448,null,3,Fh,[r.t,On,r.h,[2,Nh]],{items:[0,"items"],optionValueField:[1,"optionValueField"],optionTextField:[2,"optionTextField"],optGroupLabelField:[3,"optGroupLabelField"],optGroupOptionsField:[4,"optGroupOptionsField"],size:[5,"size"],autoActiveOnMouseEnter:[6,"autoActiveOnMouseEnter"]},{select:"select"}),r.Mb(335544320,4,{templateOption:0}),r.Mb(335544320,5,{templateSelectedOption:0}),r.Mb(335544320,6,{templateOptionNotFound:0}),r.Lb(1024,null,wc,function(e){return[e]},[Fh]),r.tb(13,671744,null,0,_p,[[8,null],[8,null],[8,null],[6,wc]],{model:[0,"model"]},null),r.Lb(2048,null,Mc,null,[_p]),r.tb(15,16384,null,0,Pc,[[4,Mc]],null,null),(e()(),r.Ob(-1,null,["\n\n "])),(e()(),r.jb(0,[[4,2]],null,1,null,yy)),r.tb(18,16384,null,0,jh,[r.M],null,null),(e()(),r.Ob(-1,null,["\n\n "])),(e()(),r.Ob(-1,null,["\n "])),(e()(),r.Ob(-1,null,["\n "])),(e()(),r.ub(22,0,null,null,2,"icon",[["data-placement","bottom"],["data-toggle","tooltip"],["html","true"],["maxWidth","620"],["name","question-circle"],["title","

The secondary role activates when another key gets pressed while holding this key.

\n

Let's say that the scancode is Escape and the secondary role is Mouse. Then:

\n
    \n
  • Tap this key to trigger Escape. (Primary role)
  • \n
  • Hold this key and press another key to activate the relevant key of the Mouse layer. (Secondary role)
  • \n
\n

The secondary role can be any layer or modifier.

"]],[[1,"data-placement",0]],null,null,yc,rc)),r.tb(23,114688,null,0,nc,[],{name:[0,"name"]},null),r.tb(24,1589248,null,0,hs,[r.k,On],{title:[0,"title"],html:[1,"html"],maxWidth:[2,"maxWidth"]},null),(e()(),r.Ob(-1,null,["\n"]))],function(e,t){var n=t.component;e(t,8,0,n.secondaryRoleGroups,"id","text","text","children","small",!1),e(t,13,0,n.selectedSecondaryRoleIndex.toString()),e(t,23,0,"question-circle"),e(t,24,0,"

The secondary role activates when another key gets pressed while holding this key.

\n

Let's say that the scancode is Escape and the secondary role is Mouse. Then:

\n
    \n
  • Tap this key to trigger Escape. (Primary role)
  • \n
  • Hold this key and press another key to activate the relevant key of the Mouse layer. (Secondary role)
  • \n
\n

The secondary role can be any layer or modifier.

","true","620")},function(e,t){e(t,7,0,r.Gb(t,15).ngClassUntouched,r.Gb(t,15).ngClassTouched,r.Gb(t,15).ngClassPristine,r.Gb(t,15).ngClassDirty,r.Gb(t,15).ngClassValid,r.Gb(t,15).ngClassInvalid,r.Gb(t,15).ngClassPending),e(t,22,0,r.Gb(t,24).placement)})}function my(e){return r.Qb(0,[(e()(),r.ub(0,0,null,null,4,"div",[["class","alert alert-warning remap-warning"],["role","alert"]],null,null,null,null,null)),(e()(),r.Ob(-1,null,["\n You're about to remap a modifier key only on this layer. You probably want to remap it on all layers. If so, check\n the "])),(e()(),r.ub(2,0,null,null,1,"strong",[],null,null,null,null,null)),(e()(),r.Ob(-1,null,["Remap on all layers"])),(e()(),r.Ob(-1,null,[" checkbox below.\n"]))],null,null)}function gy(e){return r.Qb(2,[(e()(),r.ub(0,0,null,null,28,"div",[["class","scancode-options"]],null,null,null,null,null)),(e()(),r.Ob(-1,null,["\n "])),(e()(),r.ub(2,0,null,null,1,"b",[["class","setting-label"]],null,null,null,null,null)),(e()(),r.Ob(-1,null,["Scancode:"])),(e()(),r.Ob(-1,null,["\n "])),(e()(),r.ub(5,0,null,null,15,"div",[["class","scancode-container"]],null,null,null,null,null)),(e()(),r.Ob(-1,null,["\n "])),(e()(),r.ub(7,0,null,null,12,"ngx-select",[["optGroupLabelField","text"],["optGroupOptionsField","children"],["optionTextField","text"],["optionValueField","id"],["size","small"]],[[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,"select"],["document","focusin"],["document","click"]],function(e,t,n){var i=!0,o=e.component;return"document:focusin"===t&&(i=!1!==r.Gb(e,8).documentClick(n)&&i),"document:click"===t&&(i=!1!==r.Gb(e,8).documentClick(n)&&i),"select"===t&&(i=!1!==o.onScancodeChange(n)&&i),i},ry,Bh)),r.tb(8,2408448,null,3,Fh,[r.t,On,r.h,[2,Nh]],{items:[0,"items"],optionValueField:[1,"optionValueField"],optionTextField:[2,"optionTextField"],optGroupLabelField:[3,"optGroupLabelField"],optGroupOptionsField:[4,"optGroupOptionsField"],size:[5,"size"],autoActiveOnMouseEnter:[6,"autoActiveOnMouseEnter"]},{select:"select"}),r.Mb(335544320,1,{templateOption:0}),r.Mb(335544320,2,{templateSelectedOption:0}),r.Mb(335544320,3,{templateOptionNotFound:0}),r.Lb(1024,null,wc,function(e){return[e]},[Fh]),r.tb(13,671744,null,0,_p,[[8,null],[8,null],[8,null],[6,wc]],{model:[0,"model"]},null),r.Lb(2048,null,Mc,null,[_p]),r.tb(15,16384,null,0,Pc,[[4,Mc]],null,null),(e()(),r.Ob(-1,null,["\n\n "])),(e()(),r.jb(0,[[1,2]],null,1,null,fy)),r.tb(18,16384,null,0,jh,[r.M],null,null),(e()(),r.Ob(-1,null,["\n\n "])),(e()(),r.Ob(-1,null,["\n "])),(e()(),r.Ob(-1,null,["\n "])),(e()(),r.ub(22,0,null,null,2,"icon",[["data-placement","bottom"],["data-toggle","tooltip"],["html","true"],["maxWidth","330"],["name","question-circle"],["title","

Looking for a non-US character? Just pick the character of the desired key according to the US layout.

\n

Let's say you're a German user and want to map the \xd6 character. You can see that on US keyboards this is the semicolon key, so choose semicolon in this dropdown.

"]],[[1,"data-placement",0]],null,null,yc,rc)),r.tb(23,114688,null,0,nc,[],{name:[0,"name"]},null),r.tb(24,1589248,null,0,hs,[r.k,On],{title:[0,"title"],html:[1,"html"],maxWidth:[2,"maxWidth"]},null),(e()(),r.Ob(-1,null,["\n "])),(e()(),r.ub(26,0,null,null,1,"capture-keystroke-button",[["tabindex","0"]],null,[[null,"capture"],[null,"keyup"],[null,"keydown"],[null,"focusout"]],function(e,t,n){var i=!0,o=e.component;return"keyup"===t&&(i=!1!==r.Gb(e,27).onKeyUp(n)&&i),"keydown"===t&&(i=!1!==r.Gb(e,27).onKeyDown(n)&&i),"focusout"===t&&(i=!1!==r.Gb(e,27).onFocusOut()&&i),"capture"===t&&(i=!1!==o.onKeysCapture(n)&&i),i},ay,oy)),r.tb(27,49152,null,0,iy,[Ud,L.m],null,{capture:"capture"}),(e()(),r.Ob(-1,null,["\n"])),(e()(),r.Ob(-1,null,["\n"])),(e()(),r.ub(30,0,null,null,19,"div",[["class","modifier-options"]],null,null,null,null,null)),(e()(),r.Ob(-1,null,["\n "])),(e()(),r.ub(32,0,null,null,1,"b",[["class","setting-label"]],null,null,null,null,null)),(e()(),r.Ob(-1,null,["Modifiers:"])),(e()(),r.Ob(-1,null,["\n "])),(e()(),r.ub(35,0,null,null,13,"div",[["class","btn-toolbar modifiers"]],null,null,null,null,null)),(e()(),r.Ob(-1,null,["\n "])),(e()(),r.ub(37,0,null,null,4,"div",[["class","btn-group btn-group-sm modifiers__left"]],null,null,null,null,null)),(e()(),r.Ob(-1,null,["\n "])),(e()(),r.jb(16777216,null,null,1,null,dy)),r.tb(40,278528,null,0,ne,[r.P,r.M,r.t],{ngForOf:[0,"ngForOf"],ngForTrackBy:[1,"ngForTrackBy"]},null),(e()(),r.Ob(-1,null,["\n "])),(e()(),r.Ob(-1,null,["\n "])),(e()(),r.ub(43,0,null,null,4,"div",[["class","btn-group btn-group-sm modifiers__right"]],null,null,null,null,null)),(e()(),r.Ob(-1,null,["\n "])),(e()(),r.jb(16777216,null,null,1,null,hy)),r.tb(46,278528,null,0,ne,[r.P,r.M,r.t],{ngForOf:[0,"ngForOf"],ngForTrackBy:[1,"ngForTrackBy"]},null),(e()(),r.Ob(-1,null,["\n "])),(e()(),r.Ob(-1,null,["\n "])),(e()(),r.Ob(-1,null,["\n"])),(e()(),r.Ob(-1,null,["\n"])),(e()(),r.jb(16777216,null,null,1,null,by)),r.tb(52,16384,null,0,ie,[r.P,r.M],{ngIf:[0,"ngIf"]},null),(e()(),r.Ob(-1,null,["\n\n"])),(e()(),r.jb(16777216,null,null,1,null,my)),r.tb(55,16384,null,0,ie,[r.P,r.M],{ngIf:[0,"ngIf"]},null),(e()(),r.Ob(-1,null,["\n\n"])),(e()(),r.ub(57,0,null,null,9,"div",[["class","disabled-state--text"]],null,null,null,null,null)),(e()(),r.Ob(-1,null,["\n "])),(e()(),r.ub(59,0,null,null,0,"i",[["class","fa fa-info-circle"]],null,null,null,null,null)),(e()(),r.Ob(-1,null,["\n When a key is configured as layer switcher key, you can't assign other functions to it.\n To assign a scancode to the key, set the "])),(e()(),r.ub(61,0,null,null,1,"em",[],null,null,null,null,null)),(e()(),r.Ob(-1,null,["Layer action"])),(e()(),r.Ob(-1,null,[" to "])),(e()(),r.ub(64,0,null,null,1,"em",[],null,null,null,null,null)),(e()(),r.Ob(-1,null,["None"])),(e()(),r.Ob(-1,null,[".\n"])),(e()(),r.Ob(-1,null,["\n"]))],function(e,t){var n=t.component;e(t,8,0,n.scanCodeGroups,"id","text","text","children","small",!1),e(t,13,0,null==n.selectedScancodeOption?null:n.selectedScancodeOption.id),e(t,23,0,"question-circle"),e(t,24,0,"

Looking for a non-US character? Just pick the character of the desired key according to the US layout.

\n

Let's say you're a German user and want to map the \xd6 character. You can see that on US keyboards this is the semicolon key, so choose semicolon in this dropdown.

","true","330"),e(t,40,0,n.leftModifiers,n.modifiersTrackBy),e(t,46,0,n.rightModifiers,n.modifiersTrackBy),e(t,52,0,n.secondaryRoleEnabled),e(t,55,0,n.warningVisible)},function(e,t){e(t,7,0,r.Gb(t,15).ngClassUntouched,r.Gb(t,15).ngClassTouched,r.Gb(t,15).ngClassPristine,r.Gb(t,15).ngClassDirty,r.Gb(t,15).ngClassValid,r.Gb(t,15).ngClassInvalid,r.Gb(t,15).ngClassPending),e(t,22,0,r.Gb(t,24).placement)})}var vy=function(e){function t(){var t=e.call(this)||this;return t.toggleData=[{id:"active",text:"Activate"},{id:"toggle",text:"Toggle"}],t.layerData=[{id:0,text:"Mod"},{id:1,text:"Fn"},{id:2,text:"Mouse"}],t.toggle="active",t.layer=$o.LayerName.mod,t}return N.c(t,e),t.prototype.ngOnChanges=function(e){e.defaultKeyAction&&this.fromKeyAction(this.defaultKeyAction),e.currentLayer&&(this.isNotBase=this.currentLayer>0),this.validAction.emit(!this.isNotBase)},t.prototype.keyActionValid=function(){return!this.isNotBase},t.prototype.fromKeyAction=function(e){if(!(e instanceof $o.SwitchLayerAction))return!1;var t=e;switch(t.switchLayerMode){case $o.SwitchLayerMode.holdAndDoubleTapToggle:this.toggle="active",this.lockLayerWhenDoubleTapping=!0;break;case $o.SwitchLayerMode.hold:this.toggle="active",this.lockLayerWhenDoubleTapping=!1;break;default:this.toggle="toggle",this.lockLayerWhenDoubleTapping=!1}return this.layer=t.layer,!0},t.prototype.toKeyAction=function(){var e=new $o.SwitchLayerAction;if(e.switchLayerMode="toggle"===this.toggle?$o.SwitchLayerMode.toggle:!this.allowLayerDoubleTap||this.lockLayerWhenDoubleTapping?$o.SwitchLayerMode.holdAndDoubleTapToggle:$o.SwitchLayerMode.hold,e.layer=this.layer,!this.keyActionValid())throw new Error("KeyAction is invalid!");return e},t.prototype.toggleChanged=function(e){this.toggle=e},t.prototype.layerChanged=function(e){this.layer=+e},t}(sy),ky=r.sb({encapsulation:0,styles:[["[_nghost-%COMP%]{display:flex;margin:0 -5px}.no-base[_nghost-%COMP%]{justify-content:center}[_nghost-%COMP%] > select[_ngcontent-%COMP%], [_nghost-%COMP%] > span[_ngcontent-%COMP%]{margin:0 5px;display:flex;align-items:center}select[_ngcontent-%COMP%]{background-color:#fff;border:1px solid #aaa;border-radius:4px;padding:4px 20px 4px 8px}"]],data:{}});function _y(e){return r.Qb(0,[(e()(),r.ub(0,0,null,null,3,"option",[],[[8,"selected",0]],null,null,null,null)),r.tb(1,147456,null,0,Jc,[r.k,r.E,[8,null]],{value:[0,"value"]},null),r.tb(2,147456,null,0,Xc,[r.k,r.E,[8,null]],{value:[0,"value"]},null),(e()(),r.Ob(3,null,["\n ","\n "]))],function(e,t){e(t,1,0,t.context.$implicit.id),e(t,2,0,t.context.$implicit.id)},function(e,t){e(t,0,0,t.component.toggle===t.context.$implicit.id),e(t,3,0,t.context.$implicit.text)})}function wy(e){return r.Qb(0,[(e()(),r.ub(0,0,null,null,3,"option",[],[[8,"selected",0]],null,null,null,null)),r.tb(1,147456,null,0,Jc,[r.k,r.E,[8,null]],{value:[0,"value"]},null),r.tb(2,147456,null,0,Xc,[r.k,r.E,[8,null]],{value:[0,"value"]},null),(e()(),r.Ob(3,null,["\n ","\n "]))],function(e,t){e(t,1,0,t.context.$implicit.id),e(t,2,0,t.context.$implicit.id)},function(e,t){e(t,0,0,t.component.layer===t.context.$implicit.id),e(t,3,0,t.context.$implicit.text)})}function Oy(e){return r.Qb(0,[(e()(),r.Ob(-1,null,["layer by tapping this key."]))],null,null)}function Ay(e){return r.Qb(0,[(e()(),r.Ob(-1,null,["layer by holding this key."]))],null,null)}function Cy(e){return r.Qb(0,[(e()(),r.ub(0,0,null,null,14,"div",[],null,null,null,null,null)),(e()(),r.Ob(-1,null,["\n "])),(e()(),r.ub(2,0,null,null,11,"div",[["class","checkbox"]],null,null,null,null,null)),(e()(),r.Ob(-1,null,["\n "])),(e()(),r.ub(4,0,null,null,8,"label",[],null,null,null,null,null)),(e()(),r.Ob(-1,null,["\n "])),(e()(),r.ub(6,0,null,null,5,"input",[["type","checkbox"]],[[2,"ng-untouched",null],[2,"ng-touched",null],[2,"ng-pristine",null],[2,"ng-dirty",null],[2,"ng-valid",null],[2,"ng-invalid",null],[2,"ng-pending",null]],[[null,"ngModelChange"],[null,"change"],[null,"blur"]],function(e,t,n){var i=!0,o=e.component;return"change"===t&&(i=!1!==r.Gb(e,7).onChange(n.target.checked)&&i),"blur"===t&&(i=!1!==r.Gb(e,7).onTouched()&&i),"ngModelChange"===t&&(i=!1!==(o.lockLayerWhenDoubleTapping=n)&&i),i},null,null)),r.tb(7,16384,null,0,Oc,[r.E,r.k],null,null),r.Lb(1024,null,wc,function(e){return[e]},[Oc]),r.tb(9,671744,null,0,_p,[[8,null],[8,null],[8,null],[6,wc]],{model:[0,"model"]},{update:"ngModelChange"}),r.Lb(2048,null,Mc,null,[_p]),r.tb(11,16384,null,0,Pc,[[4,Mc]],null,null),(e()(),r.Ob(-1,null,[" Lock layer when double tapping this key.\n "])),(e()(),r.Ob(-1,null,["\n "])),(e()(),r.Ob(-1,null,["\n "]))],function(e,t){e(t,9,0,t.component.lockLayerWhenDoubleTapping)},function(e,t){e(t,6,0,r.Gb(t,11).ngClassUntouched,r.Gb(t,11).ngClassTouched,r.Gb(t,11).ngClassPristine,r.Gb(t,11).ngClassDirty,r.Gb(t,11).ngClassValid,r.Gb(t,11).ngClassInvalid,r.Gb(t,11).ngClassPending)})}function Ty(e){return r.Qb(0,[(e()(),r.Ob(-1,null,["\n "])),(e()(),r.ub(1,0,null,null,32,"div",[],null,null,null,null,null)),(e()(),r.Ob(-1,null,["\n "])),(e()(),r.ub(3,0,null,null,26,"div",[],null,null,null,null,null)),(e()(),r.Ob(-1,null,["\n "])),(e()(),r.ub(5,0,null,null,4,"select",[],null,[[null,"change"]],function(e,t,n){var r=!0;return"change"===t&&(r=!1!==e.component.toggleChanged(n.target.value)&&r),r},null,null)),(e()(),r.Ob(-1,null,["\n "])),(e()(),r.jb(16777216,null,null,1,null,_y)),r.tb(8,278528,null,0,ne,[r.P,r.M,r.t],{ngForOf:[0,"ngForOf"]},null),(e()(),r.Ob(-1,null,["\n "])),(e()(),r.Ob(-1,null,["\n "])),(e()(),r.ub(11,0,null,null,1,"span",[],null,null,null,null,null)),(e()(),r.Ob(-1,null,["the"])),(e()(),r.Ob(-1,null,["\n "])),(e()(),r.ub(14,0,null,null,4,"select",[],null,[[null,"change"]],function(e,t,n){var r=!0;return"change"===t&&(r=!1!==e.component.layerChanged(n.target.value)&&r),r},null,null)),(e()(),r.Ob(-1,null,["\n "])),(e()(),r.jb(16777216,null,null,1,null,wy)),r.tb(17,278528,null,0,ne,[r.P,r.M,r.t],{ngForOf:[0,"ngForOf"]},null),(e()(),r.Ob(-1,null,["\n "])),(e()(),r.Ob(-1,null,["\n "])),(e()(),r.ub(20,0,null,null,8,"span",[],null,null,null,null,null)),r.tb(21,16384,null,0,ae,[],{ngSwitch:[0,"ngSwitch"]},null),(e()(),r.Ob(-1,null,["\n "])),(e()(),r.jb(16777216,null,null,1,null,Oy)),r.tb(24,278528,null,0,se,[r.P,r.M,ae],{ngSwitchCase:[0,"ngSwitchCase"]},null),(e()(),r.Ob(-1,null,["\n "])),(e()(),r.jb(16777216,null,null,1,null,Ay)),r.tb(27,16384,null,0,ce,[r.P,r.M,ae],null,null),(e()(),r.Ob(-1,null,["\n "])),(e()(),r.Ob(-1,null,["\n "])),(e()(),r.Ob(-1,null,["\n "])),(e()(),r.jb(16777216,null,null,1,null,Cy)),r.tb(32,16384,null,0,ie,[r.P,r.M],{ngIf:[0,"ngIf"]},null),(e()(),r.Ob(-1,null,["\n "])),(e()(),r.Ob(-1,null,["\n"]))],function(e,t){var n=t.component;e(t,8,0,n.toggleData),e(t,17,0,n.layerData),e(t,21,0,n.toggle),e(t,24,0,"toggle"),e(t,32,0,"active"===n.toggle&&n.allowLayerDoubleTap)},null)}function xy(e){return r.Qb(0,[(e()(),r.Ob(-1,null,["\n "])),(e()(),r.ub(1,0,null,null,1,"span",[],null,null,null,null,null)),(e()(),r.Ob(-1,null,[" Layer switching is only possible from the base layer. "])),(e()(),r.Ob(-1,null,["\n"]))],null,null)}function Sy(e){return r.Qb(2,[(e()(),r.jb(16777216,null,null,1,null,Ty)),r.tb(1,16384,null,0,ie,[r.P,r.M],{ngIf:[0,"ngIf"]},null),(e()(),r.Ob(-1,null,["\n"])),(e()(),r.jb(16777216,null,null,1,null,xy)),r.tb(4,16384,null,0,ie,[r.P,r.M],{ngIf:[0,"ngIf"]},null),(e()(),r.Ob(-1,null,["\n"]))],function(e,t){var n=t.component;e(t,1,0,!n.isNotBase),e(t,4,0,n.isNotBase)},null)}var My=function(e){function t(){var t=e.call(this)||this;return t.MouseActionParam=$o.MouseActionParam,t.selectedPageIndex=0,t.pages=["Move","Scroll","Click","Speed"],t}return N.c(t,e),t.prototype.ngOnChanges=function(){this.fromKeyAction(this.defaultKeyAction),this.validAction.emit(this.keyActionValid())},t.prototype.keyActionValid=function(){return void 0!==this.mouseActionParam},t.prototype.fromKeyAction=function(e){if(!(e instanceof $o.MouseAction))return!1;var t=e;switch(this.mouseActionParam=t.mouseAction,t.mouseAction===$o.MouseActionParam.moveUp&&(this.selectedPageIndex=0),t.mouseAction){case $o.MouseActionParam.moveDown:case $o.MouseActionParam.moveUp:case $o.MouseActionParam.moveLeft:case $o.MouseActionParam.moveRight:this.selectedPageIndex=0;break;case $o.MouseActionParam.scrollDown:case $o.MouseActionParam.scrollUp:case $o.MouseActionParam.scrollLeft:case $o.MouseActionParam.scrollRight:this.selectedPageIndex=1;break;case $o.MouseActionParam.leftClick:case $o.MouseActionParam.middleClick:case $o.MouseActionParam.rightClick:case $o.MouseActionParam.button4:case $o.MouseActionParam.button5:case $o.MouseActionParam.button6:case $o.MouseActionParam.button7:case $o.MouseActionParam.button8:this.selectedPageIndex=2;break;case $o.MouseActionParam.decelerate:case $o.MouseActionParam.accelerate:this.selectedPageIndex=3;break;default:return!1}return!0},t.prototype.toKeyAction=function(){var e=new $o.MouseAction;return e.mouseAction=this.mouseActionParam,e},t.prototype.changePage=function(e){e<-1||e>3?console.error("Invalid index error: "+e):(this.selectedPageIndex=e,this.mouseActionParam=void 0,this.validAction.emit(!1))},t.prototype.setMouseActionParam=function(e){this.mouseActionParam=e,this.validAction.emit(!0)},t}(sy),Ey=r.sb({encapsulation:0,styles:[['[_nghost-%COMP%]{display:flex}.popover-content[_nghost-%COMP%]{padding:10px;display:flex;align-items:center}[_nghost-%COMP%] .mouse-action[_ngcontent-%COMP%] .nav[_ngcontent-%COMP%]{border-right:1px solid #ccc}[_nghost-%COMP%] .mouse-action[_ngcontent-%COMP%] .nav[_ngcontent-%COMP%] li[_ngcontent-%COMP%] a[_ngcontent-%COMP%]{border-top-right-radius:0;border-bottom-right-radius:0}[_nghost-%COMP%] .mouse-action[_ngcontent-%COMP%] .nav[_ngcontent-%COMP%] li[_ngcontent-%COMP%] a.selected[_ngcontent-%COMP%]{font-style:italic}[_nghost-%COMP%] .mouse-action[_ngcontent-%COMP%] .nav[_ngcontent-%COMP%] li.active[_ngcontent-%COMP%] a.selected[_ngcontent-%COMP%]{font-style:normal}[_nghost-%COMP%] .mouse-action[_ngcontent-%COMP%] .nav[_ngcontent-%COMP%] li.active[_ngcontent-%COMP%] a[_ngcontent-%COMP%]:after{content:"";display:block;position:absolute;width:0;height:0;top:0;right:-4rem;border-color:transparent transparent transparent #337ab7;border-style:solid;border-width:2rem}[_nghost-%COMP%] .details[_ngcontent-%COMP%] .btn-placeholder[_ngcontent-%COMP%]{visibility:hidden}.mouse__config--click[_ngcontent-%COMP%] .additional-keys[_ngcontent-%COMP%]{display:inline-block;margin-top:1rem}.mouse__config--click[_ngcontent-%COMP%] .additional-keys[_ngcontent-%COMP%] .btn-group[_ngcontent-%COMP%]:first-child .btn[_ngcontent-%COMP%]{border-bottom-left-radius:0;border-bottom-right-radius:0}.mouse__config--click[_ngcontent-%COMP%] .additional-keys[_ngcontent-%COMP%] .btn-group[_ngcontent-%COMP%]:last-child .btn[_ngcontent-%COMP%]{border-top:0;border-top-left-radius:0;border-top-right-radius:0}.mouse__config--click[_ngcontent-%COMP%] .additional-keys[_ngcontent-%COMP%] .btn-group[_ngcontent-%COMP%]:last-child .btn[_ngcontent-%COMP%]:last-child{right:1px}.mouse__config--speed[_ngcontent-%COMP%] .btn-default[_ngcontent-%COMP%]{font-size:25px;line-height:22px;padding-top:4px;padding-bottom:4px}.mouse__config--speed[_ngcontent-%COMP%] .btn-default[_ngcontent-%COMP%] span[_ngcontent-%COMP%]{font-size:13px;display:block;text-align:center}']],data:{}});function Py(e){return r.Qb(0,[(e()(),r.ub(0,0,null,null,4,"li",[],[[2,"active",null]],[[null,"click"]],function(e,t,n){var r=!0;return"click"===t&&(r=!1!==e.component.changePage(e.context.index)&&r),r},null,null)),(e()(),r.Ob(-1,null,["\n "])),(e()(),r.ub(2,0,null,null,1,"a",[],null,null,null,null,null)),(e()(),r.Ob(3,null,[" ",""])),(e()(),r.Ob(-1,null,["\n "]))],null,function(e,t){e(t,0,0,t.component.selectedPageIndex===t.context.index),e(t,3,0,t.context.$implicit)})}function Iy(e){return r.Qb(0,[(e()(),r.ub(0,0,null,null,35,"div",[["class","mouse__config mouse__config--move text-center"]],null,null,null,null,null)),(e()(),r.Ob(-1,null,["\n "])),(e()(),r.ub(2,0,null,null,6,"div",[["class","row"]],null,null,null,null,null)),(e()(),r.Ob(-1,null,["\n "])),(e()(),r.ub(4,0,null,null,3,"button",[["class","btn btn-default btn-lg"],["type","button"]],[[2,"btn-primary",null]],[[null,"click"]],function(e,t,n){var r=!0,i=e.component;return"click"===t&&(r=!1!==i.setMouseActionParam(i.MouseActionParam.moveUp)&&r),r},null,null)),(e()(),r.Ob(-1,null,["\n "])),(e()(),r.ub(6,0,null,null,0,"i",[["class","fa fa-arrow-up"]],null,null,null,null,null)),(e()(),r.Ob(-1,null,["\n "])),(e()(),r.Ob(-1,null,["\n "])),(e()(),r.Ob(-1,null,["\n "])),(e()(),r.ub(10,0,null,null,16,"div",[["class","row"]],null,null,null,null,null)),(e()(),r.Ob(-1,null,["\n "])),(e()(),r.ub(12,0,null,null,3,"button",[["class","btn btn-default btn-lg"],["type","button"]],[[2,"btn-primary",null]],[[null,"click"]],function(e,t,n){var r=!0,i=e.component;return"click"===t&&(r=!1!==i.setMouseActionParam(i.MouseActionParam.moveLeft)&&r),r},null,null)),(e()(),r.Ob(-1,null,["\n "])),(e()(),r.ub(14,0,null,null,0,"i",[["class","fa fa-arrow-left"]],null,null,null,null,null)),(e()(),r.Ob(-1,null,["\n "])),(e()(),r.Ob(-1,null,["\n "])),(e()(),r.ub(17,0,null,null,3,"button",[["class","btn btn-default btn-lg btn-placeholder"],["type","button"]],null,null,null,null,null)),(e()(),r.Ob(-1,null,["\n "])),(e()(),r.ub(19,0,null,null,0,"i",[["class","fa fa-square"]],null,null,null,null,null)),(e()(),r.Ob(-1,null,["\n "])),(e()(),r.Ob(-1,null,["\n "])),(e()(),r.ub(22,0,null,null,3,"button",[["class","btn btn-default btn-lg"],["type","button"]],[[2,"btn-primary",null]],[[null,"click"]],function(e,t,n){var r=!0,i=e.component;return"click"===t&&(r=!1!==i.setMouseActionParam(i.MouseActionParam.moveRight)&&r),r},null,null)),(e()(),r.Ob(-1,null,["\n "])),(e()(),r.ub(24,0,null,null,0,"i",[["class","fa fa-arrow-right"]],null,null,null,null,null)),(e()(),r.Ob(-1,null,["\n "])),(e()(),r.Ob(-1,null,["\n "])),(e()(),r.Ob(-1,null,["\n "])),(e()(),r.ub(28,0,null,null,6,"div",[["class","row"]],null,null,null,null,null)),(e()(),r.Ob(-1,null,["\n "])),(e()(),r.ub(30,0,null,null,3,"button",[["class","btn btn-default btn-lg"],["type","button"]],[[2,"btn-primary",null]],[[null,"click"]],function(e,t,n){var r=!0,i=e.component;return"click"===t&&(r=!1!==i.setMouseActionParam(i.MouseActionParam.moveDown)&&r),r},null,null)),(e()(),r.Ob(-1,null,["\n "])),(e()(),r.ub(32,0,null,null,0,"i",[["class","fa fa-arrow-down"]],null,null,null,null,null)),(e()(),r.Ob(-1,null,["\n "])),(e()(),r.Ob(-1,null,["\n "])),(e()(),r.Ob(-1,null,["\n "]))],null,function(e,t){var n=t.component;e(t,4,0,n.mouseActionParam===n.MouseActionParam.moveUp),e(t,12,0,n.mouseActionParam===n.MouseActionParam.moveLeft),e(t,22,0,n.mouseActionParam===n.MouseActionParam.moveRight),e(t,30,0,n.mouseActionParam===n.MouseActionParam.moveDown)})}function jy(e){return r.Qb(0,[(e()(),r.ub(0,0,null,null,35,"div",[["class","mouse__config mouse__config--scroll text-center"]],null,null,null,null,null)),(e()(),r.Ob(-1,null,["\n "])),(e()(),r.ub(2,0,null,null,6,"div",[["class","row"]],null,null,null,null,null)),(e()(),r.Ob(-1,null,["\n "])),(e()(),r.ub(4,0,null,null,3,"button",[["class","btn btn-default btn-lg"],["type","button"]],[[2,"btn-primary",null]],[[null,"click"]],function(e,t,n){var r=!0,i=e.component;return"click"===t&&(r=!1!==i.setMouseActionParam(i.MouseActionParam.scrollUp)&&r),r},null,null)),(e()(),r.Ob(-1,null,["\n "])),(e()(),r.ub(6,0,null,null,0,"i",[["class","fa fa-angle-double-up"]],null,null,null,null,null)),(e()(),r.Ob(-1,null,["\n "])),(e()(),r.Ob(-1,null,["\n "])),(e()(),r.Ob(-1,null,["\n "])),(e()(),r.ub(10,0,null,null,16,"div",[["class","row"]],null,null,null,null,null)),(e()(),r.Ob(-1,null,["\n "])),(e()(),r.ub(12,0,null,null,3,"button",[["class","btn btn-default btn-lg"],["type","button"]],[[2,"btn-primary",null]],[[null,"click"]],function(e,t,n){var r=!0,i=e.component;return"click"===t&&(r=!1!==i.setMouseActionParam(i.MouseActionParam.scrollLeft)&&r),r},null,null)),(e()(),r.Ob(-1,null,["\n "])),(e()(),r.ub(14,0,null,null,0,"i",[["class","fa fa-angle-double-left"]],null,null,null,null,null)),(e()(),r.Ob(-1,null,["\n "])),(e()(),r.Ob(-1,null,["\n "])),(e()(),r.ub(17,0,null,null,3,"button",[["class","btn btn-default btn-lg btn-placeholder"],["type","button"]],null,null,null,null,null)),(e()(),r.Ob(-1,null,["\n "])),(e()(),r.ub(19,0,null,null,0,"i",[["class","fa fa-square"]],null,null,null,null,null)),(e()(),r.Ob(-1,null,["\n "])),(e()(),r.Ob(-1,null,["\n "])),(e()(),r.ub(22,0,null,null,3,"button",[["class","btn btn-default btn-lg"],["type","button"]],[[2,"btn-primary",null]],[[null,"click"]],function(e,t,n){var r=!0,i=e.component;return"click"===t&&(r=!1!==i.setMouseActionParam(i.MouseActionParam.scrollRight)&&r),r},null,null)),(e()(),r.Ob(-1,null,["\n "])),(e()(),r.ub(24,0,null,null,0,"i",[["class","fa fa-angle-double-right"]],null,null,null,null,null)),(e()(),r.Ob(-1,null,["\n "])),(e()(),r.Ob(-1,null,["\n "])),(e()(),r.Ob(-1,null,["\n "])),(e()(),r.ub(28,0,null,null,6,"div",[["class","row"]],null,null,null,null,null)),(e()(),r.Ob(-1,null,["\n "])),(e()(),r.ub(30,0,null,null,3,"button",[["class","btn btn-default btn-lg"],["type","button"]],[[2,"btn-primary",null]],[[null,"click"]],function(e,t,n){var r=!0,i=e.component;return"click"===t&&(r=!1!==i.setMouseActionParam(i.MouseActionParam.scrollDown)&&r),r},null,null)),(e()(),r.Ob(-1,null,["\n "])),(e()(),r.ub(32,0,null,null,0,"i",[["class","fa fa-angle-double-down"]],null,null,null,null,null)),(e()(),r.Ob(-1,null,["\n "])),(e()(),r.Ob(-1,null,["\n "])),(e()(),r.Ob(-1,null,["\n "]))],null,function(e,t){var n=t.component;e(t,4,0,n.mouseActionParam===n.MouseActionParam.scrollUp),e(t,12,0,n.mouseActionParam===n.MouseActionParam.scrollLeft),e(t,22,0,n.mouseActionParam===n.MouseActionParam.scrollRight),e(t,30,0,n.mouseActionParam===n.MouseActionParam.scrollDown)})}function Ry(e){return r.Qb(0,[(e()(),r.ub(0,0,null,null,22,"div",[["class","additional-keys"]],null,null,null,null,null)),(e()(),r.Ob(-1,null,["\n "])),(e()(),r.ub(2,0,null,null,10,"div",[["class","btn-group col-xs-12"],["role","group"]],null,null,null,null,null)),(e()(),r.Ob(-1,null,["\n "])),(e()(),r.ub(4,0,null,null,1,"button",[["class","btn btn-default col-xs-4"],["type","button"]],[[2,"btn-primary",null]],[[null,"click"]],function(e,t,n){var r=!0,i=e.component;return"click"===t&&(r=!1!==i.setMouseActionParam(i.MouseActionParam.button4)&&r),r},null,null)),(e()(),r.Ob(-1,null,["Button 4"])),(e()(),r.Ob(-1,null,["\n "])),(e()(),r.ub(7,0,null,null,1,"button",[["class","btn btn-default col-xs-4"],["type","button"]],[[2,"btn-primary",null]],[[null,"click"]],function(e,t,n){var r=!0,i=e.component;return"click"===t&&(r=!1!==i.setMouseActionParam(i.MouseActionParam.button5)&&r),r},null,null)),(e()(),r.Ob(-1,null,["Button 5"])),(e()(),r.Ob(-1,null,["\n "])),(e()(),r.ub(10,0,null,null,1,"button",[["class","btn btn-default col-xs-4"],["type","button"]],[[2,"btn-primary",null]],[[null,"click"]],function(e,t,n){var r=!0,i=e.component;return"click"===t&&(r=!1!==i.setMouseActionParam(i.MouseActionParam.button6)&&r),r},null,null)),(e()(),r.Ob(-1,null,["Button 6"])),(e()(),r.Ob(-1,null,["\n "])),(e()(),r.Ob(-1,null,["\n "])),(e()(),r.ub(14,0,null,null,7,"div",[["class","btn-group col-xs-12"],["role","group"]],null,null,null,null,null)),(e()(),r.Ob(-1,null,["\n "])),(e()(),r.ub(16,0,null,null,1,"button",[["class","btn btn-default col-xs-6"],["type","button"]],[[2,"btn-primary",null]],[[null,"click"]],function(e,t,n){var r=!0,i=e.component;return"click"===t&&(r=!1!==i.setMouseActionParam(i.MouseActionParam.button7)&&r),r},null,null)),(e()(),r.Ob(-1,null,["Button 7"])),(e()(),r.Ob(-1,null,["\n "])),(e()(),r.ub(19,0,null,null,1,"button",[["class","btn btn-default col-xs-6"],["type","button"]],[[2,"btn-primary",null]],[[null,"click"]],function(e,t,n){var r=!0,i=e.component;return"click"===t&&(r=!1!==i.setMouseActionParam(i.MouseActionParam.button8)&&r),r},null,null)),(e()(),r.Ob(-1,null,["Button 8"])),(e()(),r.Ob(-1,null,["\n "])),(e()(),r.Ob(-1,null,["\n "]))],null,function(e,t){var n=t.component;e(t,4,0,n.mouseActionParam===n.MouseActionParam.button4),e(t,7,0,n.mouseActionParam===n.MouseActionParam.button5),e(t,10,0,n.mouseActionParam===n.MouseActionParam.button6),e(t,16,0,n.mouseActionParam===n.MouseActionParam.button7),e(t,19,0,n.mouseActionParam===n.MouseActionParam.button8)})}function Ly(e){return r.Qb(0,[(e()(),r.ub(0,0,null,null,16,"div",[["class","mouse__config mouse__config--click"]],null,null,null,null,null)),(e()(),r.Ob(-1,null,["\n "])),(e()(),r.ub(2,0,null,null,10,"div",[["class","btn-group col-xs-12"],["role","group"]],null,null,null,null,null)),(e()(),r.Ob(-1,null,["\n "])),(e()(),r.ub(4,0,null,null,1,"button",[["class","btn btn-default col-xs-4"],["type","button"]],[[2,"btn-primary",null]],[[null,"click"]],function(e,t,n){var r=!0,i=e.component;return"click"===t&&(r=!1!==i.setMouseActionParam(i.MouseActionParam.leftClick)&&r),r},null,null)),(e()(),r.Ob(-1,null,["Left"])),(e()(),r.Ob(-1,null,["\n "])),(e()(),r.ub(7,0,null,null,1,"button",[["class","btn btn-default col-xs-4"],["type","button"]],[[2,"btn-primary",null]],[[null,"click"]],function(e,t,n){var r=!0,i=e.component;return"click"===t&&(r=!1!==i.setMouseActionParam(i.MouseActionParam.middleClick)&&r),r},null,null)),(e()(),r.Ob(-1,null,["Middle"])),(e()(),r.Ob(-1,null,["\n "])),(e()(),r.ub(10,0,null,null,1,"button",[["class","btn btn-default col-xs-4"],["type","button"]],[[2,"btn-primary",null]],[[null,"click"]],function(e,t,n){var r=!0,i=e.component;return"click"===t&&(r=!1!==i.setMouseActionParam(i.MouseActionParam.rightClick)&&r),r},null,null)),(e()(),r.Ob(-1,null,["Right"])),(e()(),r.Ob(-1,null,["\n "])),(e()(),r.Ob(-1,null,["\n "])),(e()(),r.jb(16777216,null,null,1,null,Ry)),r.tb(15,16384,null,0,ie,[r.P,r.M],{ngIf:[0,"ngIf"]},null),(e()(),r.Ob(-1,null,["\n "]))],function(e,t){e(t,15,0,t.component.extraMouseButtonsSupported)},function(e,t){var n=t.component;e(t,4,0,n.mouseActionParam===n.MouseActionParam.leftClick),e(t,7,0,n.mouseActionParam===n.MouseActionParam.middleClick),e(t,10,0,n.mouseActionParam===n.MouseActionParam.rightClick)})}function Ny(e){return r.Qb(0,[(e()(),r.ub(0,0,null,null,22,"div",[["class","mouse__config mouse__config--speed text-center"]],null,null,null,null,null)),(e()(),r.Ob(-1,null,["\n "])),(e()(),r.ub(2,0,null,null,4,"div",[["class","help-text--mouse-speed text-left"]],null,null,null,null,null)),(e()(),r.Ob(-1,null,["\n "])),(e()(),r.ub(4,0,null,null,1,"p",[],null,null,null,null,null)),(e()(),r.Ob(-1,null,["Press this key along with mouse movement/scrolling to accelerate/decelerate its speed."])),(e()(),r.Ob(-1,null,["\n "])),(e()(),r.Ob(-1,null,["\n "])),(e()(),r.ub(8,0,null,null,13,"div",[["class","btn-group btn-group-lg"],["role","group"]],null,null,null,null,null)),(e()(),r.Ob(-1,null,["\n "])),(e()(),r.ub(10,0,null,null,4,"button",[["class","btn btn-default"]],[[2,"btn-primary",null]],[[null,"click"]],function(e,t,n){var r=!0,i=e.component;return"click"===t&&(r=!1!==i.setMouseActionParam(i.MouseActionParam.decelerate)&&r),r},null,null)),(e()(),r.Ob(-1,null,["\n -\n "])),(e()(),r.ub(12,0,null,null,1,"span",[],null,null,null,null,null)),(e()(),r.Ob(-1,null,["Decelerate"])),(e()(),r.Ob(-1,null,["\n "])),(e()(),r.Ob(-1,null,["\n "])),(e()(),r.ub(16,0,null,null,4,"button",[["class","btn btn-default"]],[[2,"btn-primary",null]],[[null,"click"]],function(e,t,n){var r=!0,i=e.component;return"click"===t&&(r=!1!==i.setMouseActionParam(i.MouseActionParam.accelerate)&&r),r},null,null)),(e()(),r.Ob(-1,null,["\n +\n "])),(e()(),r.ub(18,0,null,null,1,"span",[],null,null,null,null,null)),(e()(),r.Ob(-1,null,["Accelerate"])),(e()(),r.Ob(-1,null,["\n "])),(e()(),r.Ob(-1,null,["\n "])),(e()(),r.Ob(-1,null,["\n "]))],null,function(e,t){var n=t.component;e(t,10,0,n.mouseActionParam===n.MouseActionParam.decelerate),e(t,16,0,n.mouseActionParam===n.MouseActionParam.accelerate)})}function Dy(e){return r.Qb(0,[(e()(),r.ub(0,0,null,null,1,"div",[],null,null,null,null,null)),(e()(),r.Ob(-1,null,["\n "]))],null,null)}function Uy(e){return r.Qb(2,[(e()(),r.ub(0,0,null,null,7,"div",[["class","mouse-action col-sm-4"]],null,null,null,null,null)),(e()(),r.Ob(-1,null,["\n "])),(e()(),r.ub(2,0,null,null,4,"ul",[["class","nav nav-pills nav-stacked"]],null,null,null,null,null)),(e()(),r.Ob(-1,null,["\n "])),(e()(),r.jb(16777216,null,null,1,null,Py)),r.tb(5,278528,null,0,ne,[r.P,r.M,r.t],{ngForOf:[0,"ngForOf"]},null),(e()(),r.Ob(-1,null,["\n "])),(e()(),r.Ob(-1,null,["\n"])),(e()(),r.Ob(-1,null,["\n"])),(e()(),r.ub(9,0,null,null,17,"div",[["class","details col-sm-8"]],null,null,null,null,null)),r.tb(10,16384,null,0,ae,[],{ngSwitch:[0,"ngSwitch"]},null),(e()(),r.Ob(-1,null,["\n "])),(e()(),r.jb(16777216,null,null,1,null,Iy)),r.tb(13,278528,null,0,se,[r.P,r.M,ae],{ngSwitchCase:[0,"ngSwitchCase"]},null),(e()(),r.Ob(-1,null,["\n "])),(e()(),r.jb(16777216,null,null,1,null,jy)),r.tb(16,278528,null,0,se,[r.P,r.M,ae],{ngSwitchCase:[0,"ngSwitchCase"]},null),(e()(),r.Ob(-1,null,["\n "])),(e()(),r.jb(16777216,null,null,1,null,Ly)),r.tb(19,278528,null,0,se,[r.P,r.M,ae],{ngSwitchCase:[0,"ngSwitchCase"]},null),(e()(),r.Ob(-1,null,["\n "])),(e()(),r.jb(16777216,null,null,1,null,Ny)),r.tb(22,278528,null,0,se,[r.P,r.M,ae],{ngSwitchCase:[0,"ngSwitchCase"]},null),(e()(),r.Ob(-1,null,["\n "])),(e()(),r.jb(16777216,null,null,1,null,Dy)),r.tb(25,16384,null,0,ce,[r.P,r.M,ae],null,null),(e()(),r.Ob(-1,null,["\n"])),(e()(),r.Ob(-1,null,["\n"]))],function(e,t){var n=t.component;e(t,5,0,n.pages),e(t,10,0,n.selectedPageIndex),e(t,13,0,0),e(t,16,0,1),e(t,19,0,2),e(t,22,0,3)},null)}var Fy=['[_nghost-%COMP%]{display:block;width:100%}.action--editor[_ngcontent-%COMP%]{padding-top:0;padding-bottom:0;border-radius:0;border:0}.nav[_ngcontent-%COMP%]{padding-bottom:1rem}.nav[_ngcontent-%COMP%] li[_ngcontent-%COMP%] a[_ngcontent-%COMP%]{border-top-right-radius:0;border-bottom-right-radius:0;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.nav[_ngcontent-%COMP%] li[_ngcontent-%COMP%] a.selected[_ngcontent-%COMP%]{font-style:italic}.nav[_ngcontent-%COMP%] li[_ngcontent-%COMP%] a[_ngcontent-%COMP%]:hover{cursor:pointer}.nav[_ngcontent-%COMP%] li.active[_ngcontent-%COMP%]{z-index:2}.nav[_ngcontent-%COMP%] li.active[_ngcontent-%COMP%] a.selected[_ngcontent-%COMP%]{font-style:normal}.nav[_ngcontent-%COMP%] li.active[_ngcontent-%COMP%] a[_ngcontent-%COMP%]:after{content:"";display:block;position:absolute;width:0;height:0;top:0;right:-4rem;border-color:transparent transparent transparent #337ab7;border-style:solid;border-width:2rem}.editor__tab-links[_ngcontent-%COMP%], .editor__tabs[_ngcontent-%COMP%]{padding-top:1rem}.editor__tabs[_ngcontent-%COMP%]{border-left:1px solid #ddd;margin-left:-1.6rem;padding-left:3rem}.editor__actions[_ngcontent-%COMP%]{float:right}.editor__actions-container[_ngcontent-%COMP%]{background:#f5f5f5;border-top:1px solid #ddd;border-bottom:1px solid #ddd;padding:1rem 1.5rem}.flex-button-wrapper[_ngcontent-%COMP%]{display:flex;flex-direction:row-reverse}.flex-button[_ngcontent-%COMP%]{align-self:flex-end}'],Ky=function(){return function(){var e=this;this.valid=new r.m,this.validate=function(){return e.valid.emit(e.isMacroValid())}}}(),By=/[^\x00-\x7F]/g,Vy=function(e){function t(){var t=e.call(this)||this;return t.isMacroValid=function(){return!!t.input.nativeElement.value},t.init=function(){t.macroAction||(t.macroAction=new $o.TextMacroAction)},t}return N.c(t,e),t.prototype.ngOnInit=function(){this.init()},t.prototype.ngAfterViewInit=function(){this.input.nativeElement.focus()},t.prototype.onTextChange=function(){this.init(),this.macroAction.text=this.input.nativeElement.value},t.prototype.onKeydown=function(e){new RegExp(By).test(e.key)&&(e.preventDefault(),e.stopPropagation())},t.prototype.onPaste=function(e){e.preventDefault();var t=this.input.nativeElement,n=e.clipboardData.getData("text/plain"),r=n&&n.replace(By,"")||"";if(0!==r.length){var i=t.value||"",o=i.substr(0,t.selectionStart),l=t.selectionEnd,u=i.substr(t.selectionEnd);t.value=o+r+u,t.selectionStart=t.selectionEnd=l+r.length-(0===l?0:1),this.macroAction.text=t.value}},t}(Ky),Gy=r.sb({encapsulation:0,styles:[["[_nghost-%COMP%]{display:flex;flex-direction:column;position:relative}.macro__text-input[_ngcontent-%COMP%]{width:100%;min-height:10rem;margin-bottom:1rem}"]],data:{}});function Hy(e){return r.Qb(0,[r.Mb(671088640,1,{input:0}),(e()(),r.ub(1,0,null,null,7,"div",[],null,null,null,null,null)),(e()(),r.Ob(-1,null,["\n "])),(e()(),r.ub(3,0,null,null,1,"h4",[],null,null,null,null,null)),(e()(),r.Ob(-1,null,["Type text"])),(e()(),r.Ob(-1,null,["\n "])),(e()(),r.ub(6,0,[[1,0],["macroTextInput",1]],null,1,"textarea",[["class","macro__text-input"],["name","macro-text"]],null,[[null,"keydown"],[null,"change"],[null,"keyup"],[null,"paste"]],function(e,t,n){var r=!0,i=e.component;return"keydown"===t&&(r=!1!==i.onKeydown(n)&&r),"change"===t&&(r=!1!==i.onTextChange()&&r),"keyup"===t&&(r=!1!==i.validate()&&r),"paste"===t&&(r=!1!==i.onPaste(n)&&r),r},null,null)),(e()(),r.Ob(7,null,["",""])),(e()(),r.Ob(-1,null,["\n"])),(e()(),r.Ob(-1,null,["\n"]))],null,function(e,t){var n=t.component;e(t,7,0,null==n.macroAction?null:n.macroAction.text)})}var $y=function(e){function t(){var t=e.call(this)||this;return t.keymapOptions=[],t}return N.c(t,e),t.prototype.ngOnChanges=function(e){e.keymaps&&(this.keymapOptions=this.keymaps.map(function(e){return{id:e.abbreviation,text:e.name}}),this.keymaps.length>0&&(this.selectedKeymap=this.keymaps[0])),this.fromKeyAction(this.defaultKeyAction),this.validAction.emit(!0)},t.prototype.onChange=function(e){this.selectedKeymap="-1"===e?void 0:this.keymaps.find(function(t){return t.abbreviation===e})},t.prototype.keyActionValid=function(){return!!this.selectedKeymap},t.prototype.fromKeyAction=function(e){if(!(e instanceof $o.SwitchKeymapAction))return!1;var t=e;this.selectedKeymap=this.keymaps.find(function(e){return e.abbreviation===t.keymapAbbreviation})},t.prototype.toKeyAction=function(){if(!this.keyActionValid())throw new Error("KeyAction is not valid. No selected keymap!");var e=new $o.SwitchKeymapAction;return e.keymapAbbreviation=this.selectedKeymap.abbreviation,e},t}(sy),zy=function(e){function t(t){var n=e.call(this)||this;return n.subscription=t.select(Ku).subscribe(function(e){return n.macros=e}),n.macroOptions=[],n.selectedMacroIndex=0,n}return N.c(t,e),t.prototype.ngOnInit=function(){this.macroOptions=this.macros.map(function(e,t){return{id:t.toString(),text:e.name}})},t.prototype.ngOnChanges=function(){this.fromKeyAction(this.defaultKeyAction),this.validAction.emit(!0)},t.prototype.onChange=function(e){this.selectedMacroIndex=+e},t.prototype.keyActionValid=function(){return this.selectedMacroIndex>=0},t.prototype.fromKeyAction=function(e){if(!(e instanceof $o.PlayMacroAction))return!1;var t=e;return this.selectedMacroIndex=this.macros.findIndex(function(e){return t.macroId===e.id}),!0},t.prototype.toKeyAction=function(){if(!this.keyActionValid())throw new Error("KeyAction is not valid. No selected macro!");var e=new $o.PlayMacroAction;return e.macroId=this.macros[this.selectedMacroIndex].id,e},t.prototype.ngOnDestroy=function(){this.subscription.unsubscribe()},t}(sy),Qy=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return N.c(t,e),t.prototype.ngOnInit=function(){this.validAction.emit(!0)},t.prototype.keyActionValid=function(){return!0},t.prototype.fromKeyAction=function(){return!1},t.prototype.toKeyAction=function(){},t}(sy),Wy=function(e){return e[e.Tap=0]="Tap",e[e.Press=1]="Press",e[e.Release=2]="Release",e}({}),qy=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.TabName=Wy,t.isMacroValid=function(){var e=t.getKeyMacroAction();return!!e.scancode||!!e.modifierMask},t}return N.c(t,e),t.prototype.ngOnInit=function(){this.macroAction||(this.macroAction=new $o.KeyMacroAction),this.defaultKeyAction=new $o.KeystrokeAction(this.macroAction),this.selectTab(this.getTabName(this.macroAction))},t.prototype.selectTab=function(e){this.activeTab=e,this.validate()},t.prototype.getTabName=function(e){return e.action?e.action===$o.MacroKeySubAction.press?Wy.Press:e.action===$o.MacroKeySubAction.release?Wy.Release:void 0:Wy.Tap},t.prototype.getActionType=function(e){switch(e){case Wy.Tap:return $o.MacroKeySubAction.tap;case Wy.Press:return $o.MacroKeySubAction.press;case Wy.Release:return $o.MacroKeySubAction.release;default:throw new Error("Invalid tab type")}},t.prototype.getKeyMacroAction=function(){var e=new $o.KeyMacroAction(this.keypressTab.toKeyAction());return e.action=this.getActionType(this.activeTab),e},t}(Ky),Jy=r.sb({encapsulation:0,styles:[Fy,[".macro-key__container[_ngcontent-%COMP%]{padding:0}.macro-key__types[_ngcontent-%COMP%]{margin-left:0;padding:0 0 1rem}.macro-key__action[_ngcontent-%COMP%]{padding-left:3rem;padding-bottom:1rem}.macro-key__action-container[_ngcontent-%COMP%]{margin-top:-1rem;padding-top:1rem;border-left:1px solid #ddd}.fa[_ngcontent-%COMP%]{min-width:14px}"]],data:{}});function Yy(e){return r.Qb(0,[(e()(),r.ub(0,0,null,null,1,"h4",[],null,null,null,null,null)),(e()(),r.Ob(-1,null,["Tap key"]))],null,null)}function Zy(e){return r.Qb(0,[(e()(),r.ub(0,0,null,null,1,"h4",[],null,null,null,null,null)),(e()(),r.Ob(-1,null,["Press key"]))],null,null)}function Xy(e){return r.Qb(0,[(e()(),r.ub(0,0,null,null,1,"h4",[],null,null,null,null,null)),(e()(),r.Ob(-1,null,["Release key"]))],null,null)}function eb(e){return r.Qb(0,[r.Mb(402653184,1,{keypressTab:0}),(e()(),r.ub(1,0,null,null,58,"div",[["class","col-xs-12 macro-key__container"]],null,null,null,null,null)),(e()(),r.Ob(-1,null,["\n "])),(e()(),r.ub(3,0,null,null,37,"div",[["class","col-xs-3 macro-key__types"]],null,null,null,null,null)),(e()(),r.Ob(-1,null,["\n "])),(e()(),r.ub(5,0,null,null,34,"ul",[["class","nav nav-pills nav-stacked"]],null,null,null,null,null)),(e()(),r.Ob(-1,null,["\n "])),(e()(),r.ub(7,0,[["keyMove",1]],null,9,"li",[],[[2,"active",null]],[[null,"click"]],function(e,t,n){var r=!0,i=e.component;return"click"===t&&(r=!1!==i.selectTab(i.TabName.Tap)&&r),r},null,null)),(e()(),r.Ob(-1,null,["\n "])),(e()(),r.ub(9,0,null,null,6,"a",[],null,null,null,null,null)),(e()(),r.Ob(-1,null,["\n "])),(e()(),r.ub(11,0,null,null,0,"i",[["class","fa fa-hand-pointer-o"]],null,null,null,null,null)),(e()(),r.Ob(-1,null,["\n "])),(e()(),r.ub(13,0,null,null,1,"span",[],null,null,null,null,null)),(e()(),r.Ob(-1,null,["Tap key"])),(e()(),r.Ob(-1,null,["\n "])),(e()(),r.Ob(-1,null,["\n "])),(e()(),r.Ob(-1,null,["\n "])),(e()(),r.ub(18,0,[["keyHold",1]],null,9,"li",[],[[2,"active",null]],[[null,"click"]],function(e,t,n){var r=!0,i=e.component;return"click"===t&&(r=!1!==i.selectTab(i.TabName.Press)&&r),r},null,null)),(e()(),r.Ob(-1,null,["\n "])),(e()(),r.ub(20,0,null,null,6,"a",[],null,null,null,null,null)),(e()(),r.Ob(-1,null,["\n "])),(e()(),r.ub(22,0,null,null,0,"i",[["class","fa fa-hand-rock-o"]],null,null,null,null,null)),(e()(),r.Ob(-1,null,["\n "])),(e()(),r.ub(24,0,null,null,1,"span",[],null,null,null,null,null)),(e()(),r.Ob(-1,null,["Press key"])),(e()(),r.Ob(-1,null,["\n "])),(e()(),r.Ob(-1,null,["\n "])),(e()(),r.Ob(-1,null,["\n "])),(e()(),r.ub(29,0,[["keyRelease",1]],null,9,"li",[],[[2,"active",null]],[[null,"click"]],function(e,t,n){var r=!0,i=e.component;return"click"===t&&(r=!1!==i.selectTab(i.TabName.Release)&&r),r},null,null)),(e()(),r.Ob(-1,null,["\n "])),(e()(),r.ub(31,0,null,null,6,"a",[],null,null,null,null,null)),(e()(),r.Ob(-1,null,["\n "])),(e()(),r.ub(33,0,null,null,0,"i",[["class","fa fa-hand-paper-o"]],null,null,null,null,null)),(e()(),r.Ob(-1,null,["\n "])),(e()(),r.ub(35,0,null,null,1,"span",[],null,null,null,null,null)),(e()(),r.Ob(-1,null,["Release key"])),(e()(),r.Ob(-1,null,["\n "])),(e()(),r.Ob(-1,null,["\n "])),(e()(),r.Ob(-1,null,["\n "])),(e()(),r.Ob(-1,null,["\n "])),(e()(),r.Ob(-1,null,["\n "])),(e()(),r.ub(42,0,null,null,16,"div",[["class","col-xs-9 macro-key__action-container"]],null,null,null,null,null)),(e()(),r.Ob(-1,null,["\n "])),(e()(),r.ub(44,0,null,null,13,"div",[["class","macro-key__action"]],null,null,null,null,null)),(e()(),r.Ob(-1,null,["\n "])),(e()(),r.jb(16777216,null,null,1,null,Yy)),r.tb(47,16384,null,0,ie,[r.P,r.M],{ngIf:[0,"ngIf"]},null),(e()(),r.Ob(-1,null,["\n "])),(e()(),r.jb(16777216,null,null,1,null,Zy)),r.tb(50,16384,null,0,ie,[r.P,r.M],{ngIf:[0,"ngIf"]},null),(e()(),r.Ob(-1,null,["\n "])),(e()(),r.jb(16777216,null,null,1,null,Xy)),r.tb(53,16384,null,0,ie,[r.P,r.M],{ngIf:[0,"ngIf"]},null),(e()(),r.Ob(-1,null,["\n "])),(e()(),r.ub(55,0,null,null,1,"keypress-tab",[],null,[[null,"validAction"]],function(e,t,n){var r=!0;return"validAction"===t&&(r=!1!==e.component.validate()&&r),r},gy,py)),r.tb(56,573440,[[1,4],["keypressTab",4]],0,cy,[Wf,r.h],{defaultKeyAction:[0,"defaultKeyAction"],secondaryRoleEnabled:[1,"secondaryRoleEnabled"]},{validAction:"validAction"}),(e()(),r.Ob(-1,null,["\n "])),(e()(),r.Ob(-1,null,["\n "])),(e()(),r.Ob(-1,null,["\n"])),(e()(),r.Ob(-1,null,["\n"]))],function(e,t){var n=t.component;e(t,47,0,n.activeTab===n.TabName.Tap),e(t,50,0,n.activeTab===n.TabName.Press),e(t,53,0,n.activeTab===n.TabName.Release),e(t,56,0,n.defaultKeyAction,!1)},function(e,t){var n=t.component;e(t,7,0,n.activeTab===n.TabName.Tap),e(t,18,0,n.activeTab===n.TabName.Press),e(t,29,0,n.activeTab===n.TabName.Release)})}var tb=function(e){return e[e.Move=0]="Move",e[e.Scroll=1]="Scroll",e[e.Click=2]="Click",e[e.Hold=3]="Hold",e[e.Release=4]="Release",e}({}),nb=function(e){function t(){var t=e.call(this)||this;return t.MouseButtons=$o.MouseButtons,t.TabName=tb,t.isMacroValid=function(){switch(t.macroAction.constructor){case $o.MoveMouseMacroAction:case $o.ScrollMouseMacroAction:var e=t.macroAction,n=e.x,r=e.y;return null!=n&&null!=r&&(0!==n||0!==r)&&n<1e4&&n>-1e4&&r<1e4&&r>-1e4;case $o.MouseButtonMacroAction:return!!t.macroAction.mouseButtonsMask;default:return!0}},t.buttonLabels=["Left","Middle","Right"],t.selectedButtons=Array(t.buttonLabels.length).fill(!1),t}return N.c(t,e),t.prototype.ngOnInit=function(){this.macroAction||(this.macroAction=new $o.MouseButtonMacroAction,this.macroAction.action=$o.MacroMouseSubAction.click);var e=this.getTabName(this.macroAction);this.selectTab(e),[tb.Click,tb.Hold,tb.Release].includes(this.activeTab)&&(this.selectedButtons=this.macroAction.getMouseButtons())},t.prototype.ngOnChanges=function(){this.ngOnInit()},t.prototype.selectTab=function(e){if(this.activeTab=e,e!==this.getTabName(this.macroAction)){switch(this.selectedButtons=[],e){case tb.Scroll:this.macroAction=new $o.ScrollMouseMacroAction;break;case tb.Move:this.macroAction=new $o.MoveMouseMacroAction;break;default:this.macroAction=new $o.MouseButtonMacroAction,this.macroAction.action=this.getAction(e)}this.validate()}},t.prototype.setMouseClick=function(e){this.selectedButtons[e]=!this.selectedButtons[e],this.macroAction.setMouseButtons(this.selectedButtons),this.validate()},t.prototype.hasButton=function(e){return this.selectedButtons[e]},t.prototype.getAction=function(e){switch(e){case tb.Click:return $o.MacroMouseSubAction.click;case tb.Hold:return $o.MacroMouseSubAction.hold;case tb.Release:return $o.MacroMouseSubAction.release;default:throw new Error("Invalid tab name: "+tb[e])}},t.prototype.getTabName=function(e){if(e instanceof $o.MouseButtonMacroAction){if(!e.action||e.isOnlyClickAction())return tb.Click;if(e.isOnlyHoldAction())return tb.Hold;if(e.isOnlyReleaseAction())return tb.Release}else{if(e instanceof $o.MoveMouseMacroAction)return tb.Move;if(e instanceof $o.ScrollMouseMacroAction)return tb.Scroll}return tb.Move},t}(Ky),rb=r.sb({encapsulation:0,styles:[Fy,[".macro-mouse__container[_ngcontent-%COMP%]{padding:0}.macro-mouse__types[_ngcontent-%COMP%]{border-right:1px solid #ddd;border-left:0;margin-top:-1rem;margin-left:0;padding:1rem 0}.macro-mouse__actions[_ngcontent-%COMP%]{padding-left:3rem;padding-bottom:1rem}.fa[_ngcontent-%COMP%]{min-width:14px}.form-horizontal[_ngcontent-%COMP%] .form-group[_ngcontent-%COMP%]{margin:0 0 .5rem}.form-horizontal[_ngcontent-%COMP%] label[_ngcontent-%COMP%]{display:inline-block;margin-right:.5rem}.form-horizontal[_ngcontent-%COMP%] .form-control[_ngcontent-%COMP%]{display:inline-block;width:10ch}"]],data:{}});function ib(e){return r.Qb(0,[(e()(),r.ub(0,0,[["tab",1]],null,39,"div",[],null,null,null,null,null)),(e()(),r.Ob(-1,null,["\n "])),(e()(),r.ub(2,0,null,null,1,"h4",[],null,null,null,null,null)),(e()(),r.Ob(-1,null,["Move mouse pointer"])),(e()(),r.Ob(-1,null,["\n "])),(e()(),r.ub(5,0,null,null,33,"div",[["class","form-horizontal"]],null,null,null,null,null)),(e()(),r.Ob(-1,null,["\n "])),(e()(),r.ub(7,0,null,null,14,"div",[["class","form-group"]],null,null,null,null,null)),(e()(),r.Ob(-1,null,["\n "])),(e()(),r.ub(9,0,null,null,1,"label",[["for","move-mouse-x"]],null,null,null,null,null)),(e()(),r.Ob(-1,null,["X:"])),(e()(),r.Ob(-1,null,["\n "])),(e()(),r.ub(12,0,null,null,8,"input",[["class","form-control"],["id","move-mouse-x"],["max","9999"],["maxlength","4"],["min","-9999"],["type","number"]],[[1,"maxlength",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]],[[null,"ngModelChange"],[null,"keyup"],[null,"input"],[null,"blur"],[null,"compositionstart"],[null,"compositionend"],[null,"change"]],function(e,t,n){var i=!0,o=e.component;return"input"===t&&(i=!1!==r.Gb(e,13)._handleInput(n.target.value)&&i),"blur"===t&&(i=!1!==r.Gb(e,13).onTouched()&&i),"compositionstart"===t&&(i=!1!==r.Gb(e,13)._compositionStart()&&i),"compositionend"===t&&(i=!1!==r.Gb(e,13)._compositionEnd(n.target.value)&&i),"change"===t&&(i=!1!==r.Gb(e,14).onChange(n.target.value)&&i),"input"===t&&(i=!1!==r.Gb(e,14).onChange(n.target.value)&&i),"blur"===t&&(i=!1!==r.Gb(e,14).onTouched()&&i),"ngModelChange"===t&&(i=!1!==(o.macroAction.x=n)&&i),"keyup"===t&&(i=!1!==o.validate()&&i),i},null,null)),r.tb(13,16384,null,0,Cc,[r.E,r.k,[2,Ac]],null,null),r.tb(14,16384,null,0,Vc,[r.E,r.k],null,null),r.tb(15,540672,null,0,Op,[],{maxlength:[0,"maxlength"]},null),r.Lb(1024,null,Rc,function(e){return[e]},[Op]),r.Lb(1024,null,wc,function(e,t){return[e,t]},[Cc,Vc]),r.tb(18,671744,null,0,_p,[[8,null],[6,Rc],[8,null],[6,wc]],{model:[0,"model"]},{update:"ngModelChange"}),r.Lb(2048,null,Mc,null,[_p]),r.tb(20,16384,null,0,Pc,[[4,Mc]],null,null),(e()(),r.Ob(-1,null,[" pixels\n "])),(e()(),r.Ob(-1,null,["\n "])),(e()(),r.ub(23,0,null,null,14,"div",[["class","form-group"]],null,null,null,null,null)),(e()(),r.Ob(-1,null,["\n "])),(e()(),r.ub(25,0,null,null,1,"label",[["for","move-mouse-y"]],null,null,null,null,null)),(e()(),r.Ob(-1,null,["Y:"])),(e()(),r.Ob(-1,null,["\n "])),(e()(),r.ub(28,0,null,null,8,"input",[["class","form-control"],["id","move-mouse-y"],["max","9999"],["maxlength","4"],["min","-9999"],["type","number"]],[[1,"maxlength",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]],[[null,"ngModelChange"],[null,"keyup"],[null,"input"],[null,"blur"],[null,"compositionstart"],[null,"compositionend"],[null,"change"]],function(e,t,n){var i=!0,o=e.component;return"input"===t&&(i=!1!==r.Gb(e,29)._handleInput(n.target.value)&&i),"blur"===t&&(i=!1!==r.Gb(e,29).onTouched()&&i),"compositionstart"===t&&(i=!1!==r.Gb(e,29)._compositionStart()&&i),"compositionend"===t&&(i=!1!==r.Gb(e,29)._compositionEnd(n.target.value)&&i),"change"===t&&(i=!1!==r.Gb(e,30).onChange(n.target.value)&&i),"input"===t&&(i=!1!==r.Gb(e,30).onChange(n.target.value)&&i),"blur"===t&&(i=!1!==r.Gb(e,30).onTouched()&&i),"ngModelChange"===t&&(i=!1!==(o.macroAction.y=n)&&i),"keyup"===t&&(i=!1!==o.validate()&&i),i},null,null)),r.tb(29,16384,null,0,Cc,[r.E,r.k,[2,Ac]],null,null),r.tb(30,16384,null,0,Vc,[r.E,r.k],null,null),r.tb(31,540672,null,0,Op,[],{maxlength:[0,"maxlength"]},null),r.Lb(1024,null,Rc,function(e){return[e]},[Op]),r.Lb(1024,null,wc,function(e,t){return[e,t]},[Cc,Vc]),r.tb(34,671744,null,0,_p,[[8,null],[6,Rc],[8,null],[6,wc]],{model:[0,"model"]},{update:"ngModelChange"}),r.Lb(2048,null,Mc,null,[_p]),r.tb(36,16384,null,0,Pc,[[4,Mc]],null,null),(e()(),r.Ob(-1,null,[" pixels\n "])),(e()(),r.Ob(-1,null,["\n "])),(e()(),r.Ob(-1,null,["\n "]))],function(e,t){var n=t.component;e(t,15,0,"4"),e(t,18,0,n.macroAction.x),e(t,31,0,"4"),e(t,34,0,n.macroAction.y)},function(e,t){e(t,12,0,r.Gb(t,15).maxlength?r.Gb(t,15).maxlength:null,r.Gb(t,20).ngClassUntouched,r.Gb(t,20).ngClassTouched,r.Gb(t,20).ngClassPristine,r.Gb(t,20).ngClassDirty,r.Gb(t,20).ngClassValid,r.Gb(t,20).ngClassInvalid,r.Gb(t,20).ngClassPending),e(t,28,0,r.Gb(t,31).maxlength?r.Gb(t,31).maxlength:null,r.Gb(t,36).ngClassUntouched,r.Gb(t,36).ngClassTouched,r.Gb(t,36).ngClassPristine,r.Gb(t,36).ngClassDirty,r.Gb(t,36).ngClassValid,r.Gb(t,36).ngClassInvalid,r.Gb(t,36).ngClassPending)})}function ob(e){return r.Qb(0,[(e()(),r.ub(0,0,[["tab",1]],null,39,"div",[],null,null,null,null,null)),(e()(),r.Ob(-1,null,["\n "])),(e()(),r.ub(2,0,null,null,1,"h4",[],null,null,null,null,null)),(e()(),r.Ob(-1,null,["Scroll with mouse"])),(e()(),r.Ob(-1,null,["\n "])),(e()(),r.ub(5,0,null,null,33,"div",[["class","form-horizontal"]],null,null,null,null,null)),(e()(),r.Ob(-1,null,["\n "])),(e()(),r.ub(7,0,null,null,14,"div",[["class","form-group"]],null,null,null,null,null)),(e()(),r.Ob(-1,null,["\n "])),(e()(),r.ub(9,0,null,null,1,"label",[["for","scroll-mouse-x"]],null,null,null,null,null)),(e()(),r.Ob(-1,null,["X:"])),(e()(),r.Ob(-1,null,["\n "])),(e()(),r.ub(12,0,null,null,8,"input",[["class","form-control"],["id","scroll-mouse-x"],["max","9999"],["maxlength","4"],["min","-9999"],["type","number"]],[[1,"maxlength",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]],[[null,"ngModelChange"],[null,"keyup"],[null,"input"],[null,"blur"],[null,"compositionstart"],[null,"compositionend"],[null,"change"]],function(e,t,n){var i=!0,o=e.component;return"input"===t&&(i=!1!==r.Gb(e,13)._handleInput(n.target.value)&&i),"blur"===t&&(i=!1!==r.Gb(e,13).onTouched()&&i),"compositionstart"===t&&(i=!1!==r.Gb(e,13)._compositionStart()&&i),"compositionend"===t&&(i=!1!==r.Gb(e,13)._compositionEnd(n.target.value)&&i),"change"===t&&(i=!1!==r.Gb(e,14).onChange(n.target.value)&&i),"input"===t&&(i=!1!==r.Gb(e,14).onChange(n.target.value)&&i),"blur"===t&&(i=!1!==r.Gb(e,14).onTouched()&&i),"ngModelChange"===t&&(i=!1!==(o.macroAction.x=n)&&i),"keyup"===t&&(i=!1!==o.validate()&&i),i},null,null)),r.tb(13,16384,null,0,Cc,[r.E,r.k,[2,Ac]],null,null),r.tb(14,16384,null,0,Vc,[r.E,r.k],null,null),r.tb(15,540672,null,0,Op,[],{maxlength:[0,"maxlength"]},null),r.Lb(1024,null,Rc,function(e){return[e]},[Op]),r.Lb(1024,null,wc,function(e,t){return[e,t]},[Cc,Vc]),r.tb(18,671744,null,0,_p,[[8,null],[6,Rc],[8,null],[6,wc]],{model:[0,"model"]},{update:"ngModelChange"}),r.Lb(2048,null,Mc,null,[_p]),r.tb(20,16384,null,0,Pc,[[4,Mc]],null,null),(e()(),r.Ob(-1,null,[" pixels\n "])),(e()(),r.Ob(-1,null,["\n "])),(e()(),r.ub(23,0,null,null,14,"div",[["class","form-group"]],null,null,null,null,null)),(e()(),r.Ob(-1,null,["\n "])),(e()(),r.ub(25,0,null,null,1,"label",[["for","scroll-mouse-y"]],null,null,null,null,null)),(e()(),r.Ob(-1,null,["Y:"])),(e()(),r.Ob(-1,null,["\n "])),(e()(),r.ub(28,0,null,null,8,"input",[["class","form-control"],["id","scroll-mouse-y"],["max","9999"],["maxlength","4"],["min","-9999"],["type","number"]],[[1,"maxlength",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]],[[null,"ngModelChange"],[null,"keyup"],[null,"input"],[null,"blur"],[null,"compositionstart"],[null,"compositionend"],[null,"change"]],function(e,t,n){var i=!0,o=e.component;return"input"===t&&(i=!1!==r.Gb(e,29)._handleInput(n.target.value)&&i),"blur"===t&&(i=!1!==r.Gb(e,29).onTouched()&&i),"compositionstart"===t&&(i=!1!==r.Gb(e,29)._compositionStart()&&i),"compositionend"===t&&(i=!1!==r.Gb(e,29)._compositionEnd(n.target.value)&&i),"change"===t&&(i=!1!==r.Gb(e,30).onChange(n.target.value)&&i),"input"===t&&(i=!1!==r.Gb(e,30).onChange(n.target.value)&&i),"blur"===t&&(i=!1!==r.Gb(e,30).onTouched()&&i),"ngModelChange"===t&&(i=!1!==(o.macroAction.y=n)&&i),"keyup"===t&&(i=!1!==o.validate()&&i),i},null,null)),r.tb(29,16384,null,0,Cc,[r.E,r.k,[2,Ac]],null,null),r.tb(30,16384,null,0,Vc,[r.E,r.k],null,null),r.tb(31,540672,null,0,Op,[],{maxlength:[0,"maxlength"]},null),r.Lb(1024,null,Rc,function(e){return[e]},[Op]),r.Lb(1024,null,wc,function(e,t){return[e,t]},[Cc,Vc]),r.tb(34,671744,null,0,_p,[[8,null],[6,Rc],[8,null],[6,wc]],{model:[0,"model"]},{update:"ngModelChange"}),r.Lb(2048,null,Mc,null,[_p]),r.tb(36,16384,null,0,Pc,[[4,Mc]],null,null),(e()(),r.Ob(-1,null,[" pixels\n "])),(e()(),r.Ob(-1,null,["\n "])),(e()(),r.Ob(-1,null,["\n "]))],function(e,t){var n=t.component;e(t,15,0,"4"),e(t,18,0,n.macroAction.x),e(t,31,0,"4"),e(t,34,0,n.macroAction.y)},function(e,t){e(t,12,0,r.Gb(t,15).maxlength?r.Gb(t,15).maxlength:null,r.Gb(t,20).ngClassUntouched,r.Gb(t,20).ngClassTouched,r.Gb(t,20).ngClassPristine,r.Gb(t,20).ngClassDirty,r.Gb(t,20).ngClassValid,r.Gb(t,20).ngClassInvalid,r.Gb(t,20).ngClassPending),e(t,28,0,r.Gb(t,31).maxlength?r.Gb(t,31).maxlength:null,r.Gb(t,36).ngClassUntouched,r.Gb(t,36).ngClassTouched,r.Gb(t,36).ngClassPristine,r.Gb(t,36).ngClassDirty,r.Gb(t,36).ngClassValid,r.Gb(t,36).ngClassInvalid,r.Gb(t,36).ngClassPending)})}function lb(e){return r.Qb(0,[(e()(),r.ub(0,0,null,null,1,"h4",[],null,null,null,null,null)),(e()(),r.Ob(-1,null,["Click mouse button"]))],null,null)}function ub(e){return r.Qb(0,[(e()(),r.ub(0,0,null,null,1,"h4",[],null,null,null,null,null)),(e()(),r.Ob(-1,null,["Hold mouse button"]))],null,null)}function ab(e){return r.Qb(0,[(e()(),r.ub(0,0,null,null,1,"h4",[],null,null,null,null,null)),(e()(),r.Ob(-1,null,["Release mouse button"]))],null,null)}function sb(e){return r.Qb(0,[(e()(),r.ub(0,0,[["tab",1]],null,22,"div",[],null,null,null,null,null)),(e()(),r.Ob(-1,null,["\n "])),(e()(),r.jb(16777216,null,null,1,null,lb)),r.tb(3,16384,null,0,ie,[r.P,r.M],{ngIf:[0,"ngIf"]},null),(e()(),r.Ob(-1,null,["\n "])),(e()(),r.jb(16777216,null,null,1,null,ub)),r.tb(6,16384,null,0,ie,[r.P,r.M],{ngIf:[0,"ngIf"]},null),(e()(),r.Ob(-1,null,["\n "])),(e()(),r.jb(16777216,null,null,1,null,ab)),r.tb(9,16384,null,0,ie,[r.P,r.M],{ngIf:[0,"ngIf"]},null),(e()(),r.Ob(-1,null,["\n "])),(e()(),r.ub(11,0,null,null,10,"div",[["class","btn-group"]],null,null,null,null,null)),(e()(),r.Ob(-1,null,["\n "])),(e()(),r.ub(13,0,null,null,1,"button",[["class","btn btn-default"]],[[2,"btn-primary",null]],[[null,"click"]],function(e,t,n){var r=!0,i=e.component;return"click"===t&&(r=!1!==i.setMouseClick(i.MouseButtons.Left)&&r),r},null,null)),(e()(),r.Ob(-1,null,["Left\n "])),(e()(),r.Ob(-1,null,["\n "])),(e()(),r.ub(16,0,null,null,1,"button",[["class","btn btn-default"]],[[2,"btn-primary",null]],[[null,"click"]],function(e,t,n){var r=!0,i=e.component;return"click"===t&&(r=!1!==i.setMouseClick(i.MouseButtons.Middle)&&r),r},null,null)),(e()(),r.Ob(-1,null,["Middle\n "])),(e()(),r.Ob(-1,null,["\n "])),(e()(),r.ub(19,0,null,null,1,"button",[["class","btn btn-default"]],[[2,"btn-primary",null]],[[null,"click"]],function(e,t,n){var r=!0,i=e.component;return"click"===t&&(r=!1!==i.setMouseClick(i.MouseButtons.Right)&&r),r},null,null)),(e()(),r.Ob(-1,null,["Right\n "])),(e()(),r.Ob(-1,null,["\n "])),(e()(),r.Ob(-1,null,["\n "]))],function(e,t){var n=t.component;e(t,3,0,n.activeTab===n.TabName.Click),e(t,6,0,n.activeTab===n.TabName.Hold),e(t,9,0,n.activeTab===n.TabName.Release)},function(e,t){var n=t.component;e(t,13,0,n.hasButton(n.MouseButtons.Left)),e(t,16,0,n.hasButton(n.MouseButtons.Middle)),e(t,19,0,n.hasButton(n.MouseButtons.Right))})}function cb(e){return r.Qb(0,[(e()(),r.ub(0,0,null,null,75,"div",[["class","col-xs-12 macro-mouse__container"]],null,null,null,null,null)),(e()(),r.Ob(-1,null,["\n "])),(e()(),r.ub(2,0,null,null,59,"div",[["class","col-xs-3 macro-mouse__types"]],null,null,null,null,null)),(e()(),r.Ob(-1,null,["\n "])),(e()(),r.ub(4,0,null,null,56,"ul",[["class","nav nav-pills nav-stacked"]],null,null,null,null,null)),(e()(),r.Ob(-1,null,["\n "])),(e()(),r.ub(6,0,[["mouseMove",1]],null,9,"li",[],[[2,"active",null]],[[null,"click"]],function(e,t,n){var r=!0,i=e.component;return"click"===t&&(r=!1!==i.selectTab(i.TabName.Move)&&r),r},null,null)),(e()(),r.Ob(-1,null,["\n "])),(e()(),r.ub(8,0,null,null,6,"a",[],null,null,null,null,null)),(e()(),r.Ob(-1,null,["\n "])),(e()(),r.ub(10,0,null,null,0,"i",[["class","fa fa-arrows"]],null,null,null,null,null)),(e()(),r.Ob(-1,null,["\n "])),(e()(),r.ub(12,0,null,null,1,"span",[],null,null,null,null,null)),(e()(),r.Ob(-1,null,["Move pointer"])),(e()(),r.Ob(-1,null,["\n "])),(e()(),r.Ob(-1,null,["\n "])),(e()(),r.Ob(-1,null,["\n "])),(e()(),r.ub(17,0,[["mouseScroll",1]],null,9,"li",[],[[2,"active",null]],[[null,"click"]],function(e,t,n){var r=!0,i=e.component;return"click"===t&&(r=!1!==i.selectTab(i.TabName.Scroll)&&r),r},null,null)),(e()(),r.Ob(-1,null,["\n "])),(e()(),r.ub(19,0,null,null,6,"a",[],null,null,null,null,null)),(e()(),r.Ob(-1,null,["\n "])),(e()(),r.ub(21,0,null,null,0,"i",[["class","fa fa-arrows-v"]],null,null,null,null,null)),(e()(),r.Ob(-1,null,["\n "])),(e()(),r.ub(23,0,null,null,1,"span",[],null,null,null,null,null)),(e()(),r.Ob(-1,null,["Scroll"])),(e()(),r.Ob(-1,null,["\n "])),(e()(),r.Ob(-1,null,["\n "])),(e()(),r.Ob(-1,null,["\n "])),(e()(),r.ub(28,0,[["mouseClick",1]],null,9,"li",[],[[2,"active",null]],[[null,"click"]],function(e,t,n){var r=!0,i=e.component;return"click"===t&&(r=!1!==i.selectTab(i.TabName.Click)&&r),r},null,null)),(e()(),r.Ob(-1,null,["\n "])),(e()(),r.ub(30,0,null,null,6,"a",[],null,null,null,null,null)),(e()(),r.Ob(-1,null,["\n "])),(e()(),r.ub(32,0,null,null,0,"i",[["class","fa fa-mouse-pointer"]],null,null,null,null,null)),(e()(),r.Ob(-1,null,["\n "])),(e()(),r.ub(34,0,null,null,1,"span",[],null,null,null,null,null)),(e()(),r.Ob(-1,null,["Click button"])),(e()(),r.Ob(-1,null,["\n "])),(e()(),r.Ob(-1,null,["\n "])),(e()(),r.Ob(-1,null,["\n "])),(e()(),r.ub(39,0,[["mouseHold",1]],null,9,"li",[],[[2,"active",null]],[[null,"click"]],function(e,t,n){var r=!0,i=e.component;return"click"===t&&(r=!1!==i.selectTab(i.TabName.Hold)&&r),r},null,null)),(e()(),r.Ob(-1,null,["\n "])),(e()(),r.ub(41,0,null,null,6,"a",[],null,null,null,null,null)),(e()(),r.Ob(-1,null,["\n "])),(e()(),r.ub(43,0,null,null,0,"i",[["class","fa fa-hand-rock-o"]],null,null,null,null,null)),(e()(),r.Ob(-1,null,["\n "])),(e()(),r.ub(45,0,null,null,1,"span",[],null,null,null,null,null)),(e()(),r.Ob(-1,null,["Hold button"])),(e()(),r.Ob(-1,null,["\n "])),(e()(),r.Ob(-1,null,["\n "])),(e()(),r.Ob(-1,null,["\n "])),(e()(),r.ub(50,0,[["mouseRelease",1]],null,9,"li",[],[[2,"active",null]],[[null,"click"]],function(e,t,n){var r=!0,i=e.component;return"click"===t&&(r=!1!==i.selectTab(i.TabName.Release)&&r),r},null,null)),(e()(),r.Ob(-1,null,["\n "])),(e()(),r.ub(52,0,null,null,6,"a",[],null,null,null,null,null)),(e()(),r.Ob(-1,null,["\n "])),(e()(),r.ub(54,0,null,null,0,"i",[["class","fa fa-hand-paper-o"]],null,null,null,null,null)),(e()(),r.Ob(-1,null,["\n "])),(e()(),r.ub(56,0,null,null,1,"span",[],null,null,null,null,null)),(e()(),r.Ob(-1,null,["Release button"])),(e()(),r.Ob(-1,null,["\n "])),(e()(),r.Ob(-1,null,["\n "])),(e()(),r.Ob(-1,null,["\n "])),(e()(),r.Ob(-1,null,["\n "])),(e()(),r.Ob(-1,null,["\n "])),(e()(),r.ub(63,0,null,null,11,"div",[["class","col-xs-9 macro-mouse__actions"]],null,null,null,null,null)),r.tb(64,16384,null,0,ae,[],{ngSwitch:[0,"ngSwitch"]},null),(e()(),r.Ob(-1,null,["\n "])),(e()(),r.jb(16777216,null,null,1,null,ib)),r.tb(67,278528,null,0,se,[r.P,r.M,ae],{ngSwitchCase:[0,"ngSwitchCase"]},null),(e()(),r.Ob(-1,null,["\n "])),(e()(),r.jb(16777216,null,null,1,null,ob)),r.tb(70,278528,null,0,se,[r.P,r.M,ae],{ngSwitchCase:[0,"ngSwitchCase"]},null),(e()(),r.Ob(-1,null,["\n "])),(e()(),r.jb(16777216,null,null,1,null,sb)),r.tb(73,16384,null,0,ie,[r.P,r.M],{ngIf:[0,"ngIf"]},null),(e()(),r.Ob(-1,null,["\n "])),(e()(),r.Ob(-1,null,["\n"])),(e()(),r.Ob(-1,null,["\n"]))],function(e,t){var n=t.component;e(t,64,0,n.activeTab),e(t,67,0,n.TabName.Move),e(t,70,0,n.TabName.Scroll),e(t,73,0,n.activeTab===n.TabName.Click||n.activeTab===n.TabName.Hold||n.activeTab===n.TabName.Release)},function(e,t){var n=t.component;e(t,6,0,n.activeTab===n.TabName.Move),e(t,17,0,n.activeTab===n.TabName.Scroll),e(t,28,0,n.activeTab===n.TabName.Click),e(t,39,0,n.activeTab===n.TabName.Hold),e(t,50,0,n.activeTab===n.TabName.Release)})}var pb=function(e){function t(){var t=e.call(this)||this;return t.presets=[.1,.5,1,5,10],t.isMacroValid=function(){return 0!==t.macroAction.delay},t}return N.c(t,e),Object.defineProperty(t.prototype,"delay",{get:function(){return this._delay},set:function(e){this._delay=e,this.validate()},enumerable:!0,configurable:!0}),t.prototype.ngOnInit=function(){this.macroAction||(this.macroAction=new $o.DelayMacroAction),this.delay=this.macroAction.delay>0?this.macroAction.delay/1e3:.5},t.prototype.setDelay=function(e){this._delay=e,this.macroAction.delay=1e3*this._delay,this.validate()},t}(Ky),fb=r.sb({encapsulation:0,styles:[["[_nghost-%COMP%]{display:flex;flex-direction:column;position:relative}.macro-delay__presets[_ngcontent-%COMP%]{margin-top:1rem}.macro-delay__presets[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{margin-right:.25rem;margin-bottom:.25rem}.form-group[_ngcontent-%COMP%]{margin-bottom:0}.form-control[_ngcontent-%COMP%]{width:16ch;display:inline-block}"]],data:{}});function db(e){return r.Qb(0,[(e()(),r.ub(0,0,null,null,1,"button",[["class","btn btn-sm btn-default"]],null,[[null,"click"]],function(e,t,n){var r=!0;return"click"===t&&(r=!1!==e.component.setDelay(e.context.$implicit)&&r),r},null,null)),(e()(),r.Ob(1,null,["","s\n "]))],null,function(e,t){e(t,1,0,t.context.$implicit)})}function hb(e){return r.Qb(2,[(e()(),r.ub(0,0,null,null,39,"div",[["class","macro-delay"]],null,null,null,null,null)),(e()(),r.Ob(-1,null,["\n "])),(e()(),r.ub(2,0,null,null,7,"div",[["class","row"]],null,null,null,null,null)),(e()(),r.Ob(-1,null,["\n "])),(e()(),r.ub(4,0,null,null,4,"div",[["class","col-xs-12"]],null,null,null,null,null)),(e()(),r.Ob(-1,null,["\n "])),(e()(),r.ub(6,0,null,null,1,"h4",[],null,null,null,null,null)),(e()(),r.Ob(-1,null,["Delay"])),(e()(),r.Ob(-1,null,["\n "])),(e()(),r.Ob(-1,null,["\n "])),(e()(),r.Ob(-1,null,["\n "])),(e()(),r.ub(11,0,null,null,15,"div",[["class","row"]],null,null,null,null,null)),(e()(),r.Ob(-1,null,["\n "])),(e()(),r.ub(13,0,null,null,12,"div",[["class","col-xs-12"]],null,null,null,null,null)),(e()(),r.Ob(-1,null,["\n "])),(e()(),r.ub(15,0,null,null,9,"div",[["class","form-group"]],null,null,null,null,null)),(e()(),r.Ob(-1,null,["\n "])),(e()(),r.ub(17,0,[["macroDelayInput",1]],null,6,"input",[["class","form-control"],["max","1000"],["min","0"],["placeholder","Delay amount"],["step","0.1"],["type","number"]],[[2,"ng-untouched",null],[2,"ng-touched",null],[2,"ng-pristine",null],[2,"ng-dirty",null],[2,"ng-valid",null],[2,"ng-invalid",null],[2,"ng-pending",null]],[[null,"ngModelChange"],[null,"input"],[null,"blur"],[null,"compositionstart"],[null,"compositionend"],[null,"change"]],function(e,t,n){var i=!0,o=e.component;return"input"===t&&(i=!1!==r.Gb(e,18)._handleInput(n.target.value)&&i),"blur"===t&&(i=!1!==r.Gb(e,18).onTouched()&&i),"compositionstart"===t&&(i=!1!==r.Gb(e,18)._compositionStart()&&i),"compositionend"===t&&(i=!1!==r.Gb(e,18)._compositionEnd(n.target.value)&&i),"change"===t&&(i=!1!==r.Gb(e,19).onChange(n.target.value)&&i),"input"===t&&(i=!1!==r.Gb(e,19).onChange(n.target.value)&&i),"blur"===t&&(i=!1!==r.Gb(e,19).onTouched()&&i),"ngModelChange"===t&&(i=!1!==o.setDelay(r.Gb(e,17).value)&&i),i},null,null)),r.tb(18,16384,null,0,Cc,[r.E,r.k,[2,Ac]],null,null),r.tb(19,16384,null,0,Vc,[r.E,r.k],null,null),r.Lb(1024,null,wc,function(e,t){return[e,t]},[Cc,Vc]),r.tb(21,671744,null,0,_p,[[8,null],[8,null],[8,null],[6,wc]],{model:[0,"model"]},{update:"ngModelChange"}),r.Lb(2048,null,Mc,null,[_p]),r.tb(23,16384,null,0,Pc,[[4,Mc]],null,null),(e()(),r.Ob(-1,null,["\n seconds\n "])),(e()(),r.Ob(-1,null,["\n "])),(e()(),r.Ob(-1,null,["\n "])),(e()(),r.Ob(-1,null,["\n "])),(e()(),r.ub(28,0,null,null,10,"div",[["class","row macro-delay__presets"]],null,null,null,null,null)),(e()(),r.Ob(-1,null,["\n "])),(e()(),r.ub(30,0,null,null,7,"div",[["class","col-xs-12"]],null,null,null,null,null)),(e()(),r.Ob(-1,null,["\n "])),(e()(),r.ub(32,0,null,null,1,"h6",[],null,null,null,null,null)),(e()(),r.Ob(-1,null,["Choose a preset"])),(e()(),r.Ob(-1,null,["\n "])),(e()(),r.jb(16777216,null,null,1,null,db)),r.tb(36,278528,null,0,ne,[r.P,r.M,r.t],{ngForOf:[0,"ngForOf"]},null),(e()(),r.Ob(-1,null,["\n "])),(e()(),r.Ob(-1,null,["\n "])),(e()(),r.Ob(-1,null,["\n"])),(e()(),r.Ob(-1,null,["\n"]))],function(e,t){var n=t.component;e(t,21,0,n.delay),e(t,36,0,n.presets)},function(e,t){e(t,17,0,r.Gb(t,23).ngClassUntouched,r.Gb(t,23).ngClassTouched,r.Gb(t,23).ngClassPristine,r.Gb(t,23).ngClassDirty,r.Gb(t,23).ngClassValid,r.Gb(t,23).ngClassInvalid,r.Gb(t,23).ngClassPending)})}var yb=function(e){return e[e.Keypress=0]="Keypress",e[e.Text=1]="Text",e[e.Mouse=2]="Mouse",e[e.Delay=3]="Delay",e}({}),bb=function(){function e(){var e=this;this.save=new r.m,this.cancel=new r.m,this.TabName=yb,this.isSelectedMacroValid=!1,this.onValid=function(t){return e.isSelectedMacroValid=t}}return e.prototype.ngOnInit=function(){this.updateEditableMacroAction();var e=this.getTabName(this.editableMacroAction);this.activeTab=e},e.prototype.ngOnChanges=function(){this.ngOnInit()},e.prototype.onCancelClick=function(){this.cancel.emit()},e.prototype.onSaveClick=function(){try{var e=this.selectedTab instanceof qy?this.selectedTab.getKeyMacroAction():this.selectedTab.macroAction;this.save.emit(e)}catch(t){console.error(t)}},e.prototype.selectTab=function(e){this.activeTab=e,e===this.getTabName(this.macroAction)?this.updateEditableMacroAction():(this.editableMacroAction=void 0,this.isSelectedMacroValid=!1)},e.prototype.getTabName=function(e){return e instanceof $o.DelayMacroAction?yb.Delay:e instanceof $o.TextMacroAction?yb.Text:e instanceof $o.KeyMacroAction?yb.Keypress:e instanceof $o.MouseButtonMacroAction||e instanceof $o.MoveMouseMacroAction||e instanceof $o.ScrollMouseMacroAction?yb.Mouse:void 0},e.prototype.updateEditableMacroAction=function(){var e=this.macroAction?this.macroAction:new $o.TextMacroAction;this.editableMacroAction=$o.MacroActionHelper.createMacroAction(e)},e}(),mb=r.sb({encapsulation:0,styles:[Fy],data:{}});function gb(e){return r.Qb(0,[(e()(),r.ub(0,0,null,null,1,"macro-text-tab",[["class","macro__text"]],null,[[null,"valid"]],function(e,t,n){var r=!0;return"valid"===t&&(r=!1!==e.component.onValid(n)&&r),r},Hy,Gy)),r.tb(1,4308992,[[1,4],["tab",4]],0,Vy,[],{macroAction:[0,"macroAction"]},{valid:"valid"})],function(e,t){e(t,1,0,t.component.editableMacroAction)},null)}function vb(e){return r.Qb(0,[(e()(),r.ub(0,0,null,null,1,"macro-key-tab",[["class","macro__mouse"]],null,[[null,"valid"]],function(e,t,n){var r=!0;return"valid"===t&&(r=!1!==e.component.onValid(n)&&r),r},eb,Jy)),r.tb(1,114688,[[1,4],["tab",4]],0,qy,[],{macroAction:[0,"macroAction"]},{valid:"valid"})],function(e,t){e(t,1,0,t.component.editableMacroAction)},null)}function kb(e){return r.Qb(0,[(e()(),r.ub(0,0,null,null,1,"macro-mouse-tab",[["class","macro__mouse"]],null,[[null,"valid"]],function(e,t,n){var r=!0;return"valid"===t&&(r=!1!==e.component.onValid(n)&&r),r},cb,rb)),r.tb(1,638976,[[1,4],["tab",4]],0,nb,[],{macroAction:[0,"macroAction"]},{valid:"valid"})],function(e,t){e(t,1,0,t.component.editableMacroAction)},null)}function _b(e){return r.Qb(0,[(e()(),r.ub(0,0,null,null,1,"macro-delay-tab",[["class","macro__delay"]],null,[[null,"valid"]],function(e,t,n){var r=!0;return"valid"===t&&(r=!1!==e.component.onValid(n)&&r),r},hb,fb)),r.tb(1,114688,[[1,4],["tab",4]],0,pb,[],{macroAction:[0,"macroAction"]},{valid:"valid"})],function(e,t){e(t,1,0,t.component.editableMacroAction)},null)}function wb(e){return r.Qb(0,[r.Mb(671088640,1,{selectedTab:0}),(e()(),r.ub(1,0,null,null,85,"div",[["class","action--editor"]],null,null,null,null,null)),(e()(),r.Ob(-1,null,["\n "])),(e()(),r.ub(3,0,null,null,67,"div",[["class","row"]],null,null,null,null,null)),(e()(),r.Ob(-1,null,["\n "])),(e()(),r.ub(5,0,null,null,48,"div",[["class","col-lg-3 editor__tab-links"]],null,null,null,null,null)),(e()(),r.Ob(-1,null,["\n "])),(e()(),r.ub(7,0,null,null,45,"ul",[["class","nav nav-pills nav-stacked"]],null,null,null,null,null)),(e()(),r.Ob(-1,null,["\n "])),(e()(),r.ub(9,0,[["macroText",1]],null,9,"li",[],[[2,"active",null]],[[null,"click"]],function(e,t,n){var r=!0,i=e.component;return"click"===t&&(r=!1!==i.selectTab(i.TabName.Text)&&r),r},null,null)),(e()(),r.Ob(-1,null,["\n "])),(e()(),r.ub(11,0,null,null,6,"a",[],null,null,null,null,null)),(e()(),r.Ob(-1,null,["\n "])),(e()(),r.ub(13,0,null,null,0,"i",[["class","fa fa-font"]],null,null,null,null,null)),(e()(),r.Ob(-1,null,["\n "])),(e()(),r.ub(15,0,null,null,1,"span",[],null,null,null,null,null)),(e()(),r.Ob(-1,null,["Type text"])),(e()(),r.Ob(-1,null,["\n "])),(e()(),r.Ob(-1,null,["\n "])),(e()(),r.Ob(-1,null,["\n "])),(e()(),r.ub(20,0,[["macroKeypress",1]],null,9,"li",[],[[2,"active",null]],[[null,"click"]],function(e,t,n){var r=!0,i=e.component;return"click"===t&&(r=!1!==i.selectTab(i.TabName.Keypress)&&r),r},null,null)),(e()(),r.Ob(-1,null,["\n "])),(e()(),r.ub(22,0,null,null,6,"a",[],null,null,null,null,null)),(e()(),r.Ob(-1,null,["\n "])),(e()(),r.ub(24,0,null,null,0,"i",[["class","fa fa-keyboard-o"]],null,null,null,null,null)),(e()(),r.Ob(-1,null,["\n "])),(e()(),r.ub(26,0,null,null,1,"span",[],null,null,null,null,null)),(e()(),r.Ob(-1,null,["Key action"])),(e()(),r.Ob(-1,null,["\n "])),(e()(),r.Ob(-1,null,["\n "])),(e()(),r.Ob(-1,null,["\n "])),(e()(),r.ub(31,0,[["macroMouse",1]],null,9,"li",[],[[2,"active",null]],[[null,"click"]],function(e,t,n){var r=!0,i=e.component;return"click"===t&&(r=!1!==i.selectTab(i.TabName.Mouse)&&r),r},null,null)),(e()(),r.Ob(-1,null,["\n "])),(e()(),r.ub(33,0,null,null,6,"a",[],null,null,null,null,null)),(e()(),r.Ob(-1,null,["\n "])),(e()(),r.ub(35,0,null,null,0,"i",[["class","fa fa-mouse-pointer"]],null,null,null,null,null)),(e()(),r.Ob(-1,null,["\n "])),(e()(),r.ub(37,0,null,null,1,"span",[],null,null,null,null,null)),(e()(),r.Ob(-1,null,["Mouse action"])),(e()(),r.Ob(-1,null,["\n "])),(e()(),r.Ob(-1,null,["\n "])),(e()(),r.Ob(-1,null,["\n "])),(e()(),r.ub(42,0,[["macroDelay",1]],null,9,"li",[],[[2,"active",null]],[[null,"click"]],function(e,t,n){var r=!0,i=e.component;return"click"===t&&(r=!1!==i.selectTab(i.TabName.Delay)&&r),r},null,null)),(e()(),r.Ob(-1,null,["\n "])),(e()(),r.ub(44,0,null,null,6,"a",[],null,null,null,null,null)),(e()(),r.Ob(-1,null,["\n "])),(e()(),r.ub(46,0,null,null,0,"i",[["class","fa fa-clock-o"]],null,null,null,null,null)),(e()(),r.Ob(-1,null,["\n "])),(e()(),r.ub(48,0,null,null,1,"span",[],null,null,null,null,null)),(e()(),r.Ob(-1,null,["Delay"])),(e()(),r.Ob(-1,null,["\n "])),(e()(),r.Ob(-1,null,["\n "])),(e()(),r.Ob(-1,null,["\n "])),(e()(),r.Ob(-1,null,["\n "])),(e()(),r.Ob(-1,null,["\n "])),(e()(),r.ub(55,0,null,null,14,"div",[["class","col-xs-12 col-lg-9 editor__tabs"]],null,null,null,null,null)),r.tb(56,16384,null,0,ae,[],{ngSwitch:[0,"ngSwitch"]},null),(e()(),r.Ob(-1,null,["\n "])),(e()(),r.jb(16777216,null,null,1,null,gb)),r.tb(59,278528,null,0,se,[r.P,r.M,ae],{ngSwitchCase:[0,"ngSwitchCase"]},null),(e()(),r.Ob(-1,null,["\n "])),(e()(),r.jb(16777216,null,null,1,null,vb)),r.tb(62,278528,null,0,se,[r.P,r.M,ae],{ngSwitchCase:[0,"ngSwitchCase"]},null),(e()(),r.Ob(-1,null,["\n "])),(e()(),r.jb(16777216,null,null,1,null,kb)),r.tb(65,278528,null,0,se,[r.P,r.M,ae],{ngSwitchCase:[0,"ngSwitchCase"]},null),(e()(),r.Ob(-1,null,["\n "])),(e()(),r.jb(16777216,null,null,1,null,_b)),r.tb(68,278528,null,0,se,[r.P,r.M,ae],{ngSwitchCase:[0,"ngSwitchCase"]},null),(e()(),r.Ob(-1,null,["\n "])),(e()(),r.Ob(-1,null,["\n "])),(e()(),r.Ob(-1,null,["\n "])),(e()(),r.ub(72,0,null,null,13,"div",[["class","row"]],null,null,null,null,null)),(e()(),r.Ob(-1,null,["\n "])),(e()(),r.ub(74,0,null,null,10,"div",[["class","col-xs-12 flex-button-wrapper editor__actions-container"]],null,null,null,null,null)),(e()(),r.Ob(-1,null,["\n "])),(e()(),r.ub(76,0,null,null,7,"div",[["class","editor__actions"]],null,null,null,null,null)),(e()(),r.Ob(-1,null,["\n "])),(e()(),r.ub(78,0,null,null,1,"button",[["class","btn btn-sm btn-default flex-button"],["type","button"]],null,[[null,"click"]],function(e,t,n){var r=!0;return"click"===t&&(r=!1!==e.component.onCancelClick()&&r),r},null,null)),(e()(),r.Ob(-1,null,[" Cancel "])),(e()(),r.Ob(-1,null,["\n "])),(e()(),r.ub(81,0,null,null,1,"button",[["class","btn btn-sm btn-primary flex-button"],["type","button"]],[[8,"disabled",0]],[[null,"click"]],function(e,t,n){var r=!0;return"click"===t&&(r=!1!==e.component.onSaveClick()&&r),r},null,null)),(e()(),r.Ob(-1,null,[" Save "])),(e()(),r.Ob(-1,null,["\n "])),(e()(),r.Ob(-1,null,["\n "])),(e()(),r.Ob(-1,null,["\n "])),(e()(),r.Ob(-1,null,["\n"])),(e()(),r.Ob(-1,null,["\n"]))],function(e,t){var n=t.component;e(t,56,0,n.activeTab),e(t,59,0,n.TabName.Text),e(t,62,0,n.TabName.Keypress),e(t,65,0,n.TabName.Mouse),e(t,68,0,n.TabName.Delay)},function(e,t){var n=t.component;e(t,9,0,n.activeTab===n.TabName.Text),e(t,20,0,n.activeTab===n.TabName.Keypress),e(t,31,0,n.activeTab===n.TabName.Mouse),e(t,42,0,n.activeTab===n.TabName.Delay),e(t,81,0,!n.isSelectedMacroValid)})}var Ob=function(){function e(e){this.mapper=e,this.save=new r.m,this.cancel=new r.m,this.edit=new r.m,this.delete=new r.m,this.newItem=!1,this.overflow="hidden"}return e.prototype.ngOnInit=function(){this.updateView(),this.macroAction||(this.editing=!0,this.newItem=!0,this.overflow="visible")},e.prototype.ngOnChanges=function(e){e.macroAction&&this.updateView()},e.prototype.saveEditedAction=function(e){this.macroAction=e,this.editing=!1,this.overflow="hidden",this.updateView(),this.save.emit(e)},e.prototype.editAction=function(){this.editable&&!this.editing?(this.editing=!0,this.edit.emit(),this.setOverflow("visible")):this.cancelEdit()},e.prototype.cancelEdit=function(){this.editing=!1,this.overflow="hidden",this.cancel.emit()},e.prototype.deleteAction=function(){this.delete.emit()},e.prototype.updateView=function(){if(this.macroAction)if(this.macroAction instanceof $o.DelayMacroAction)this.iconName="clock",this.title="Delay of "+((e=this.macroAction).delay>0?e.delay/1e3:0)+"s";else if(this.macroAction instanceof $o.TextMacroAction){var e=this.macroAction;this.iconName="font",this.title="Write text: "+e.text}else this.macroAction instanceof $o.KeyMacroAction?this.setKeyActionContent(e=this.macroAction):this.macroAction instanceof $o.MouseButtonMacroAction?this.setMouseButtonActionContent(e=this.macroAction):this.macroAction instanceof $o.MoveMouseMacroAction||this.macroAction instanceof $o.ScrollMouseMacroAction?this.setMouseMoveScrollActionContent(this.macroAction):this.title=this.macroAction.constructor.name;else this.title="New macro action"},e.prototype.setKeyActionContent=function(e){if(e.hasScancode()||e.hasModifiers()){if(e.isTapAction()?(this.iconName="hand-pointer",this.title="Tap key: "):e.isPressAction()?(this.iconName="hand-rock",this.title="Press key: "):e.isReleaseAction()&&(this.iconName="hand-paper",this.title="Release key: "),e.hasScancode()){var t=(this.mapper.scanCodeToText(e.scancode,e.type)||["Unknown"]).join(" ");t&&(this.title+=t)}if(e.hasModifiers())for(var n=$o.KeyModifiers.leftCtrl;n<=$o.KeyModifiers.rightGui;n<<=1)e.isModifierActive(n)&&(this.title+=" "+this.mapper.getOsSpecificModifierTextByValue(n))}else this.title="Invalid keypress"},e.prototype.setMouseMoveScrollActionContent=function(e){var t,n;e instanceof $o.MoveMouseMacroAction?(this.iconName="mouse-pointer",this.title="Move pointer",t=this.macroAction):(this.iconName="mouse-pointer",this.title="Scroll",t=this.macroAction),0!==Math.abs(t.x)&&(this.title+=" by "+Math.abs(t.x)+"px "+(t.x>0?"rightward":"leftward"),n=!0),0!==Math.abs(t.y)&&(this.title+=" "+(n?"and":"by")+" "+Math.abs(t.y)+"px "+(t.y>0?"downward":"upward"))},e.prototype.setMouseButtonActionContent=function(e){e.isOnlyClickAction()?(this.iconName="mouse-pointer",this.title="Click mouse button: "):e.isOnlyHoldAction()?(this.iconName="hand-rock",this.title="Hold mouse button: "):e.isOnlyReleaseAction()&&(this.iconName="hand-paper",this.title="Release mouse button: ");var t=e.getMouseButtons(),n=[];t.forEach(function(e,t){e&&$o.MouseButtons[t]&&n.push($o.MouseButtons[t])}),this.title+=n.join(", ")},e.prototype.setOverflow=function(e){var t=this;setTimeout(function(){t.overflow=e},600)},e}(),Ab=r.sb({encapsulation:0,styles:[["[_nghost-%COMP%]{overflow:visible;display:block}.macro-item[_nghost-%COMP%]:first-of-type .list-group-item[_ngcontent-%COMP%]{border-radius:4px 4px 0 0}.macro-item[_nghost-%COMP%]:last-of-type .list-group-item[_ngcontent-%COMP%]{border-bottom:0}.gu-transit[_nghost-%COMP%]{opacity:.2}.gu-transit[_nghost-%COMP%] .list-group-item[_ngcontent-%COMP%]{background:#f5f5f5}.action--item[_ngcontent-%COMP%]{display:flex;flex-shrink:0;border:0;border-bottom:1px solid #ddd;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.action--item[_ngcontent-%COMP%] icon[_ngcontent-%COMP%]{margin:0 5px}.action--item[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]{display:flex;flex:1}.action--item[_ngcontent-%COMP%]:first-child{border-radius:0}.action--item.is-editing[_ngcontent-%COMP%]{background:#f5f5f5}.action--item--wrap[_ngcontent-%COMP%]{justify-content:space-between}.action--item--wrap.pointer[_ngcontent-%COMP%]:hover{cursor:pointer;color:#337ab7}.action--title[_ngcontent-%COMP%]{display:flex;flex:1}.action--movable[_ngcontent-%COMP%]:hover{cursor:move}.list-group-item[_ngcontent-%COMP%]{margin-bottom:0}.macro-action-editor__container[_ngcontent-%COMP%]{padding-top:0;padding-bottom:0;border-radius:0;border:none;overflow:hidden}"]],data:{animation:[{type:7,name:"toggler",definitions:[{type:0,name:"inactive",styles:{type:6,styles:{height:"0px"},offset:null},options:void 0},{type:0,name:"active",styles:{type:6,styles:{height:"*"},offset:null},options:void 0},{type:1,expr:"inactive <=> active",animation:{type:4,styles:null,timings:"500ms ease-out"},options:null}],options:{}}]}});function Cb(e){return r.Qb(0,[(e()(),r.ub(0,0,null,null,0,"span",[["aria-hidden","true"],["class","glyphicon glyphicon-option-vertical action--movable"]],null,null,null,null,null))],null,null)}function Tb(e){return r.Qb(0,[(e()(),r.ub(0,0,null,null,1,"icon",[["name","pencil"]],null,null,null,yc,rc)),r.tb(1,114688,null,0,nc,[],{name:[0,"name"]},null)],function(e,t){e(t,1,0,"pencil")},null)}function xb(e){return r.Qb(0,[(e()(),r.ub(0,0,null,null,1,"icon",[["name","trash"]],null,[[null,"click"]],function(e,t,n){var r=!0;return"click"===t&&(r=!1!==e.component.deleteAction()&&r),r},yc,rc)),r.tb(1,114688,null,0,nc,[],{name:[0,"name"]},null)],function(e,t){e(t,1,0,"trash")},null)}function Sb(e){return r.Qb(0,[(e()(),r.ub(0,0,null,null,2,"macro-action-editor",[["class","macro-action-editor"]],null,[[null,"cancel"],[null,"save"]],function(e,t,n){var r=!0,i=e.component;return"cancel"===t&&(r=!1!==i.cancelEdit()&&r),"save"===t&&(r=!1!==i.saveEditedAction(n)&&r),r},wb,mb)),r.tb(1,638976,null,0,bb,[],{macroAction:[0,"macroAction"]},{save:"save",cancel:"cancel"}),(e()(),r.Ob(-1,null,["\n "]))],function(e,t){e(t,1,0,t.component.macroAction)},null)}function Mb(e){return r.Qb(0,[(e()(),r.ub(0,0,null,null,19,"div",[["class","list-group-item action--item"]],[[2,"is-editing",null]],null,null,null,null)),(e()(),r.Ob(-1,null,["\n "])),(e()(),r.jb(16777216,null,null,1,null,Cb)),r.tb(3,16384,null,0,ie,[r.P,r.M],{ngIf:[0,"ngIf"]},null),(e()(),r.Ob(-1,null,["\n "])),(e()(),r.ub(5,0,null,null,10,"div",[["class","action--item--wrap"]],[[2,"pointer",null]],[[null,"click"]],function(e,t,n){var r=!0;return"click"===t&&(r=!1!==e.component.editAction()&&r),r},null,null)),(e()(),r.Ob(-1,null,["\n "])),(e()(),r.ub(7,0,null,null,1,"icon",[],null,null,null,yc,rc)),r.tb(8,114688,null,0,nc,[],{name:[0,"name"]},null),(e()(),r.Ob(-1,null,["\n "])),(e()(),r.ub(10,0,null,null,1,"div",[["class","action--title"]],null,null,null,null,null)),(e()(),r.Ob(11,null,["",""])),(e()(),r.Ob(-1,null,["\n "])),(e()(),r.jb(16777216,null,null,1,null,Tb)),r.tb(14,16384,null,0,ie,[r.P,r.M],{ngIf:[0,"ngIf"]},null),(e()(),r.Ob(-1,null,["\n "])),(e()(),r.Ob(-1,null,["\n "])),(e()(),r.jb(16777216,null,null,1,null,xb)),r.tb(18,16384,null,0,ie,[r.P,r.M],{ngIf:[0,"ngIf"]},null),(e()(),r.Ob(-1,null,["\n"])),(e()(),r.Ob(-1,null,["\n"])),(e()(),r.ub(21,0,null,null,4,"div",[["class","list-group-item macro-action-editor__container"]],[[24,"@toggler",0],[4,"overflow",null]],null,null,null,null)),(e()(),r.Ob(-1,null,["\n "])),(e()(),r.jb(16777216,null,null,1,null,Sb)),r.tb(24,16384,null,0,ie,[r.P,r.M],{ngIf:[0,"ngIf"]},null),(e()(),r.Ob(-1,null,["\n"])),(e()(),r.Ob(-1,null,["\n"]))],function(e,t){var n=t.component;e(t,3,0,n.movable),e(t,8,0,n.iconName),e(t,14,0,n.editable&&n.macroAction&&!n.editing),e(t,18,0,n.deletable),e(t,24,0,n.editable||n.newItem)},function(e,t){var n=t.component;e(t,0,0,n.editing),e(t,5,0,n.editable),e(t,11,0,n.title),e(t,21,0,n.editable&&n.editing||n.newItem?"active":"inactive",n.overflow)})}var Eb=r.sb({encapsulation:0,styles:[["[_nghost-%COMP%]{display:flex;flex-direction:column}[_nghost-%COMP%] > span[_ngcontent-%COMP%]{text-align:center}[_nghost-%COMP%] .macro-selector[_ngcontent-%COMP%]{display:flex;margin-top:2px}[_nghost-%COMP%] .macro-selector[_ngcontent-%COMP%] b[_ngcontent-%COMP%]{display:flex;align-items:center;margin-right:7px}[_nghost-%COMP%] .macro-selector[_ngcontent-%COMP%] ngx-select[_ngcontent-%COMP%]{flex:1}[_nghost-%COMP%] .macro-action-container[_ngcontent-%COMP%]{display:flex;flex-direction:column;min-height:200px;max-height:300px;margin:20px 0;overflow-x:hidden;overflow-y:auto;border-radius:4px;border:1px solid #ddd}[_nghost-%COMP%] .macro-action-container[_ngcontent-%COMP%] .list-group[_ngcontent-%COMP%]{margin-bottom:0;border:0}"]],data:{}});function Pb(e){return r.Qb(0,[(e()(),r.Ob(-1,null,["\n "])),(e()(),r.ub(1,0,null,null,1,"span",[],null,null,null,null,null)),(e()(),r.Ob(-1,null,[" No macros are available to choose from. Create a macro first! "])),(e()(),r.Ob(-1,null,["\n"]))],null,null)}function Ib(e){return r.Qb(0,[(e()(),r.ub(0,0,null,null,2,"p",[],null,null,null,null,null)),(e()(),r.ub(1,0,null,null,1,"i",[],null,null,null,null,null)),(e()(),r.Ob(-1,null,["Please note that macro playback is not implemented yet. You can bind macros, but they won't have any effect until firmware support is implemented. We're working on this."]))],null,null)}function jb(e){return r.Qb(0,[(e()(),r.Ob(-1,null,["\n "])),(e()(),r.ub(1,0,null,null,10,"span",[],null,null,null,null,null)),r.Lb(512,null,Z,X,[r.t,r.u,r.k,r.E]),r.tb(3,278528,null,0,ee,[Z],{ngClass:[0,"ngClass"]},null),r.Jb(4,{"indent-dropdown-item":0}),(e()(),r.Ob(-1,null,["\n "])),(e()(),r.ub(6,0,null,null,1,"span",[],null,null,null,null,null)),(e()(),r.Ob(7,null,["",""])),(e()(),r.Ob(-1,null,["\n "])),(e()(),r.ub(9,0,null,null,1,"span",[["class","scancode--searchterm"]],null,null,null,null,null)),(e()(),r.Ob(10,null,["\n ","\n "])),(e()(),r.Ob(-1,null,["\n "])),(e()(),r.Ob(-1,null,["\n "]))],function(e,t){var n=e(t,4,0,"-1"!==t.context.$implicit.data.id);e(t,3,0,n)},function(e,t){e(t,7,0,t.context.$implicit.text),e(t,10,0,null==t.context.$implicit.data.additional?null:t.context.$implicit.data.additional.explanation)})}function Rb(e){return r.Qb(0,[(e()(),r.ub(0,0,null,null,2,"macro-item",[["class","macro-item"]],null,null,null,Mb,Ab)),r.tb(1,638976,null,0,Ob,[Wf],{macroAction:[0,"macroAction"],editable:[1,"editable"]},null),(e()(),r.Ob(-1,null,["\n "]))],function(e,t){e(t,1,0,t.context.$implicit,!1)},null)}function Lb(e){return r.Qb(0,[(e()(),r.Ob(-1,null,["\n "])),(e()(),r.jb(16777216,null,null,1,null,Ib)),r.tb(2,16384,null,0,ie,[r.P,r.M],{ngIf:[0,"ngIf"]},null),(e()(),r.Ob(-1,null,["\n "])),(e()(),r.ub(4,0,null,null,18,"div",[["class","macro-selector"]],null,null,null,null,null)),(e()(),r.Ob(-1,null,["\n "])),(e()(),r.ub(6,0,null,null,1,"b",[],null,null,null,null,null)),(e()(),r.Ob(-1,null,[" Play macro: "])),(e()(),r.Ob(-1,null,["\n "])),(e()(),r.ub(9,0,null,null,12,"ngx-select",[["optionTextField","text"],["optionValueField","id"],["size","small"]],[[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,"select"],["document","focusin"],["document","click"]],function(e,t,n){var i=!0,o=e.component;return"document:focusin"===t&&(i=!1!==r.Gb(e,10).documentClick(n)&&i),"document:click"===t&&(i=!1!==r.Gb(e,10).documentClick(n)&&i),"select"===t&&(i=!1!==o.onChange(n)&&i),i},ry,Bh)),r.tb(10,2408448,null,3,Fh,[r.t,On,r.h,[2,Nh]],{items:[0,"items"],optionValueField:[1,"optionValueField"],optionTextField:[2,"optionTextField"],size:[3,"size"],autoActiveOnMouseEnter:[4,"autoActiveOnMouseEnter"]},{select:"select"}),r.Mb(335544320,1,{templateOption:0}),r.Mb(335544320,2,{templateSelectedOption:0}),r.Mb(335544320,3,{templateOptionNotFound:0}),r.Lb(1024,null,wc,function(e){return[e]},[Fh]),r.tb(15,671744,null,0,_p,[[8,null],[8,null],[8,null],[6,wc]],{model:[0,"model"]},null),r.Lb(2048,null,Mc,null,[_p]),r.tb(17,16384,null,0,Pc,[[4,Mc]],null,null),(e()(),r.Ob(-1,null,["\n\n "])),(e()(),r.jb(0,[[1,2]],null,1,null,jb)),r.tb(20,16384,null,0,jh,[r.M],null,null),(e()(),r.Ob(-1,null,["\n "])),(e()(),r.Ob(-1,null,["\n "])),(e()(),r.Ob(-1,null,["\n "])),(e()(),r.ub(24,0,null,null,7,"div",[["class","macro-action-container"]],null,null,null,null,null)),(e()(),r.Ob(-1,null,["\n "])),(e()(),r.ub(26,0,null,null,4,"div",[["class","list-group"]],null,null,null,null,null)),(e()(),r.Ob(-1,null,["\n "])),(e()(),r.jb(16777216,null,null,1,null,Rb)),r.tb(29,278528,null,0,ne,[r.P,r.M,r.t],{ngForOf:[0,"ngForOf"]},null),(e()(),r.Ob(-1,null,["\n "])),(e()(),r.Ob(-1,null,["\n "])),(e()(),r.Ob(-1,null,["\n"]))],function(e,t){var n=t.component;e(t,2,0,!n.macroPlaybackSupported),e(t,10,0,n.macroOptions,"id","text","small",!1),e(t,15,0,null==n.macroOptions[n.selectedMacroIndex]?null:n.macroOptions[n.selectedMacroIndex].id),e(t,29,0,n.macros[n.selectedMacroIndex].macroActions)},function(e,t){e(t,9,0,r.Gb(t,17).ngClassUntouched,r.Gb(t,17).ngClassTouched,r.Gb(t,17).ngClassPristine,r.Gb(t,17).ngClassDirty,r.Gb(t,17).ngClassValid,r.Gb(t,17).ngClassInvalid,r.Gb(t,17).ngClassPending)})}function Nb(e){return r.Qb(2,[(e()(),r.jb(16777216,null,null,1,null,Pb)),r.tb(1,16384,null,0,ie,[r.P,r.M],{ngIf:[0,"ngIf"]},null),(e()(),r.Ob(-1,null,["\n"])),(e()(),r.jb(16777216,null,null,1,null,Lb)),r.tb(4,16384,null,0,ie,[r.P,r.M],{ngIf:[0,"ngIf"]},null),(e()(),r.Ob(-1,null,["\n"]))],function(e,t){var n=t.component;e(t,1,0,0===n.macroOptions.length),e(t,4,0,n.macroOptions.length>0)},null)}var Db=r.sb({encapsulation:0,styles:[["[_nghost-%COMP%]{display:flex;flex-direction:column}[_nghost-%COMP%] > span[_ngcontent-%COMP%]{text-align:center}[_nghost-%COMP%] > div[_ngcontent-%COMP%]{display:flex;margin-top:2px}[_nghost-%COMP%] > div[_ngcontent-%COMP%] b[_ngcontent-%COMP%]{display:flex;align-items:center;margin-right:7px}[_nghost-%COMP%] > div[_ngcontent-%COMP%] ngx-select[_ngcontent-%COMP%]{flex:1}[_nghost-%COMP%] > div[_ngcontent-%COMP%]:last-child{margin-top:10px}[_nghost-%COMP%] > div[_ngcontent-%COMP%]:last-child img[_ngcontent-%COMP%]{max-height:100%;max-width:100%}.empty[_ngcontent-%COMP%]{display:flex}.empty[_ngcontent-%COMP%] img[_ngcontent-%COMP%]{display:flex;width:100%;height:100%;position:relative}"]],data:{}});function Ub(e){return r.Qb(0,[(e()(),r.Ob(-1,null,["\n "])),(e()(),r.ub(1,0,null,null,1,"span",[],null,null,null,null,null)),(e()(),r.Ob(-1,null,[" No keymaps are available to choose from. Create a keymap first! "])),(e()(),r.Ob(-1,null,["\n"]))],null,null)}function Fb(e){return r.Qb(0,[(e()(),r.Ob(-1,null,["\n "])),(e()(),r.ub(1,0,null,null,10,"span",[],null,null,null,null,null)),r.Lb(512,null,Z,X,[r.t,r.u,r.k,r.E]),r.tb(3,278528,null,0,ee,[Z],{ngClass:[0,"ngClass"]},null),r.Jb(4,{"indent-dropdown-item":0}),(e()(),r.Ob(-1,null,["\n "])),(e()(),r.ub(6,0,null,null,1,"span",[],null,null,null,null,null)),(e()(),r.Ob(7,null,["",""])),(e()(),r.Ob(-1,null,["\n "])),(e()(),r.ub(9,0,null,null,1,"span",[["class","scancode--searchterm"]],null,null,null,null,null)),(e()(),r.Ob(10,null,["\n ","\n "])),(e()(),r.Ob(-1,null,["\n "])),(e()(),r.Ob(-1,null,["\n "]))],function(e,t){var n=e(t,4,0,"-1"!==t.context.$implicit.data.id);e(t,3,0,n)},function(e,t){e(t,7,0,t.context.$implicit.text),e(t,10,0,null==t.context.$implicit.data.additional?null:t.context.$implicit.data.additional.explanation)})}function Kb(e){return r.Qb(0,[(e()(),r.ub(0,0,null,null,3,"div",[["class","empty"]],null,null,null,null,null)),(e()(),r.Ob(-1,null,["\n "])),(e()(),r.ub(2,0,null,null,0,"img",[["src","assets/images/base-layer--blank.svg"]],null,null,null,null,null)),(e()(),r.Ob(-1,null,["\n "]))],null,null)}function Bb(e){return r.Qb(0,[(e()(),r.ub(0,0,null,null,2,"svg-keyboard",[],null,null,null,vh,bh)),r.tb(1,638976,null,0,yh,[hh,On],{moduleConfig:[0,"moduleConfig"]},null),(e()(),r.Ob(-1,null,["\n "]))],function(e,t){e(t,1,0,t.component.selectedKeymap.layers[0].modules)},null)}function Vb(e){return r.Qb(0,[(e()(),r.Ob(-1,null,["\n "])),(e()(),r.ub(1,0,null,null,18,"div",[],null,null,null,null,null)),(e()(),r.Ob(-1,null,["\n "])),(e()(),r.ub(3,0,null,null,1,"b",[],null,null,null,null,null)),(e()(),r.Ob(-1,null,["Switch to keymap:"])),(e()(),r.Ob(-1,null,["\n "])),(e()(),r.ub(6,0,null,null,12,"ngx-select",[["optionTextField","text"],["optionValueField","id"],["size","small"]],[[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,"select"],["document","focusin"],["document","click"]],function(e,t,n){var i=!0,o=e.component;return"document:focusin"===t&&(i=!1!==r.Gb(e,7).documentClick(n)&&i),"document:click"===t&&(i=!1!==r.Gb(e,7).documentClick(n)&&i),"select"===t&&(i=!1!==o.onChange(n)&&i),i},ry,Bh)),r.tb(7,2408448,null,3,Fh,[r.t,On,r.h,[2,Nh]],{items:[0,"items"],optionValueField:[1,"optionValueField"],optionTextField:[2,"optionTextField"],size:[3,"size"],autoActiveOnMouseEnter:[4,"autoActiveOnMouseEnter"]},{select:"select"}),r.Mb(335544320,1,{templateOption:0}),r.Mb(335544320,2,{templateSelectedOption:0}),r.Mb(335544320,3,{templateOptionNotFound:0}),r.Lb(1024,null,wc,function(e){return[e]},[Fh]),r.tb(12,671744,null,0,_p,[[8,null],[8,null],[8,null],[6,wc]],{model:[0,"model"]},null),r.Lb(2048,null,Mc,null,[_p]),r.tb(14,16384,null,0,Pc,[[4,Mc]],null,null),(e()(),r.Ob(-1,null,["\n\n "])),(e()(),r.jb(0,[[1,2]],null,1,null,Fb)),r.tb(17,16384,null,0,jh,[r.M],null,null),(e()(),r.Ob(-1,null,["\n "])),(e()(),r.Ob(-1,null,["\n "])),(e()(),r.Ob(-1,null,["\n "])),(e()(),r.ub(21,0,null,null,7,"div",[],null,null,null,null,null)),(e()(),r.Ob(-1,null,["\n "])),(e()(),r.jb(16777216,null,null,1,null,Kb)),r.tb(24,16384,null,0,ie,[r.P,r.M],{ngIf:[0,"ngIf"]},null),(e()(),r.Ob(-1,null,["\n "])),(e()(),r.jb(16777216,null,null,1,null,Bb)),r.tb(27,16384,null,0,ie,[r.P,r.M],{ngIf:[0,"ngIf"]},null),(e()(),r.Ob(-1,null,["\n "])),(e()(),r.Ob(-1,null,["\n"]))],function(e,t){var n=t.component;e(t,7,0,n.keymapOptions,"id","text","small",!1),e(t,12,0,(null==n.selectedKeymap?null:n.selectedKeymap.abbreviation)||-1),e(t,24,0,!(null!=n.selectedKeymap&&n.selectedKeymap.abbreviation)),e(t,27,0,null==n.selectedKeymap?null:n.selectedKeymap.abbreviation)},function(e,t){e(t,6,0,r.Gb(t,14).ngClassUntouched,r.Gb(t,14).ngClassTouched,r.Gb(t,14).ngClassPristine,r.Gb(t,14).ngClassDirty,r.Gb(t,14).ngClassValid,r.Gb(t,14).ngClassInvalid,r.Gb(t,14).ngClassPending)})}function Gb(e){return r.Qb(2,[(e()(),r.jb(16777216,null,null,1,null,Ub)),r.tb(1,16384,null,0,ie,[r.P,r.M],{ngIf:[0,"ngIf"]},null),(e()(),r.Ob(-1,null,["\n"])),(e()(),r.jb(16777216,null,null,1,null,Vb)),r.tb(4,16384,null,0,ie,[r.P,r.M],{ngIf:[0,"ngIf"]},null),(e()(),r.Ob(-1,null,["\n"]))],function(e,t){var n=t.component;e(t,1,0,0===n.keymapOptions.length),e(t,4,0,n.keymapOptions.length>0)},null)}var Hb=r.sb({encapsulation:0,styles:[["[_nghost-%COMP%]{display:flex;justify-content:center;padding:2rem 0}"]],data:{}});function $b(e){return r.Qb(2,[(e()(),r.Ob(-1,null,["This key is unassigned and has no functionality."]))],null,null)}function zb(){for(var e=[],t=0;te+this.wrapPosition.width,this.leftArrow?n=this.keyPosition.left:this.rightArrow?n=this.keyPosition.left-t.offsetWidth+this.keyPosition.width:n-=t.offsetWidth/2,this.topPosition=this.keyPosition.top+this.keyPosition.height+7+window.scrollY,this.leftPosition=n},e}(),qb=r.sb({encapsulation:0,styles:[['.popover[_ngcontent-%COMP%]{display:flex;flex-direction:column;padding:0;max-width:568px;width:100%;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.popover.leftArrow[_ngcontent-%COMP%] .arrowCustom[_ngcontent-%COMP%]{transform:none;left:22px}.popover.rightArrow[_ngcontent-%COMP%] .arrowCustom[_ngcontent-%COMP%]{transform:none;right:22px;left:auto}.popover[_ngcontent-%COMP%] > .container-fluid[_ngcontent-%COMP%]{overflow:hidden}.nav-tabs[_ngcontent-%COMP%] > li[_ngcontent-%COMP%]{overflow:hidden;cursor:pointer}.nav-tabs[_ngcontent-%COMP%] > li.disabled[_ngcontent-%COMP%]{cursor:not-allowed}.arrowCustom[_ngcontent-%COMP%]{position:absolute;top:-16px;left:50%;transform:translateX(-50%);width:41px;height:16px}.arrowCustom[_ngcontent-%COMP%]:before{content:"";width:0;height:0;border-left:21px solid transparent;border-right:21px solid transparent;border-bottom:17px solid rgba(0,0,0,.2);display:block;position:absolute;top:-1px}.arrowCustom[_ngcontent-%COMP%]:after{content:"";width:0;height:0;border-left:20px solid transparent;border-right:20px solid transparent;border-bottom:16px solid #f7f7f7;display:block;position:absolute;top:0}.popover-action[_ngcontent-%COMP%]{padding:8px 14px;margin:0;font-size:14px;background-color:#f7f7f7;border-top:1px solid #ebebeb;border-radius:0 0 5px 5px}.popover-title.menu-tabs[_ngcontent-%COMP%]{padding:.5rem .5rem 0;display:block}.popover-title.menu-tabs[_ngcontent-%COMP%] .nav-tabs[_ngcontent-%COMP%]{position:relative;top:1px;display:flex}.popover-title.menu-tabs[_ngcontent-%COMP%] .nav-tabs[_ngcontent-%COMP%] .menu-tabs--item[_ngcontent-%COMP%]{display:flex;align-items:center}.popover-title.menu-tabs[_ngcontent-%COMP%] .nav-tabs[_ngcontent-%COMP%] .menu-tabs--item[_ngcontent-%COMP%] i[_ngcontent-%COMP%]{margin-right:.25em}.popover-content[_ngcontent-%COMP%]{padding:10px 24px}.pr-10[_ngcontent-%COMP%]{padding-right:10px}.popover-overlay[_ngcontent-%COMP%]{position:fixed;width:100%;height:0;top:0;left:0;z-index:1050;background:rgba(0,0,0,0);transition:background .2s ease-out,height 0s .2s linear}.popover-overlay.display[_ngcontent-%COMP%]{height:100%;background:rgba(0,0,0,.2);transition:background .2s ease-out}.popover-action-form[_ngcontent-%COMP%]{margin-top:4px}.popover-action-form[_ngcontent-%COMP%] label[_ngcontent-%COMP%]{margin-right:5px}.popover-action-form[_ngcontent-%COMP%] label.disabled[_ngcontent-%COMP%]{cursor:not-allowed;color:#959595}']],data:{animation:[{type:7,name:"popover",definitions:[{type:0,name:"closed",styles:{type:6,styles:{transform:"translateY(30px)",visibility:"hidden",opacity:0},offset:null},options:void 0},{type:0,name:"opened",styles:{type:6,styles:{transform:"translateY(0)",visibility:"visible",opacity:1},offset:null},options:void 0},{type:1,expr:"opened => closed",animation:[{type:4,styles:{type:5,steps:[{type:6,styles:{transform:"translateY(0)",visibility:"visible",opacity:1,offset:0},offset:null},{type:6,styles:{transform:"translateY(30px)",visibility:"hidden",opacity:0,offset:1},offset:null}]},timings:"200ms ease-out"}],options:null},{type:1,expr:"closed => opened",animation:[{type:6,styles:{visibility:"visible"},offset:null},{type:4,styles:{type:5,steps:[{type:6,styles:{transform:"translateY(30px)",opacity:0,offset:0},offset:null},{type:6,styles:{transform:"translateY(0)",opacity:1,offset:1},offset:null}]},timings:"200ms ease-out"}],options:null}],options:{}}]}});function Jb(e){return r.Qb(0,[(e()(),r.ub(0,0,null,null,11,"li",[],[[2,"active",null],[2,"disabled",null]],[[null,"click"]],function(e,t,n){var r=!0;return"click"===t&&(r=!1!==e.component.selectTab(e.context.$implicit)&&r),r},null,null)),(e()(),r.Ob(-1,null,["\n "])),(e()(),r.ub(2,0,null,null,8,"a",[["class","menu-tabs--item"]],null,null,null,null,null)),(e()(),r.Ob(-1,null,["\n "])),(e()(),r.ub(4,0,null,null,2,"i",[["class","fa"]],null,null,null,null,null)),r.Lb(512,null,Z,X,[r.t,r.u,r.k,r.E]),r.tb(6,278528,null,0,ee,[Z],{klass:[0,"klass"],ngClass:[1,"ngClass"]},null),(e()(),r.Ob(-1,null,["\n "])),(e()(),r.ub(8,0,null,null,1,"span",[],null,null,null,null,null)),(e()(),r.Ob(9,null,["",""])),(e()(),r.Ob(-1,null,["\n "])),(e()(),r.Ob(-1,null,["\n "]))],function(e,t){e(t,6,0,"fa",t.context.$implicit.icon)},function(e,t){e(t,0,0,t.component.activeTab===t.context.$implicit.tabName,t.context.$implicit.disabled),e(t,9,0,t.context.$implicit.text)})}function Yb(e){return r.Qb(0,[(e()(),r.ub(0,0,null,null,1,"keypress-tab",[["class","popover-content pr-10"]],null,[[null,"validAction"],[null,"keyActionChange"]],function(e,t,n){var r=!0,i=e.component;return"validAction"===t&&(r=!1!==i.setKeyActionValidState(n)&&r),"keyActionChange"===t&&(r=!1!==i.keystrokeActionChange(n)&&r),r},gy,py)),r.tb(1,573440,[[1,4],["tab",4]],0,cy,[Wf,r.h],{defaultKeyAction:[0,"defaultKeyAction"],secondaryRoleEnabled:[1,"secondaryRoleEnabled"],allowRemapOnAllKeymapWarning:[2,"allowRemapOnAllKeymapWarning"],remapInfo:[3,"remapInfo"],showLayerSwitcherInSecondaryRoles:[4,"showLayerSwitcherInSecondaryRoles"]},{validAction:"validAction",keyActionChange:"keyActionChange"})],function(e,t){var n=t.component;e(t,1,0,n.shadowKeyAction,!0,!0,n.remapInfo,0===n.currentLayer)},null)}function Zb(e){return r.Qb(0,[(e()(),r.ub(0,0,null,null,1,"layer-tab",[["class","popover-content"]],[[2,"no-base",null]],[[null,"validAction"]],function(e,t,n){var r=!0;return"validAction"===t&&(r=!1!==e.component.setKeyActionValidState(n)&&r),r},Sy,ky)),r.tb(1,573440,[[1,4],["tab",4]],0,vy,[],{defaultKeyAction:[0,"defaultKeyAction"],currentLayer:[1,"currentLayer"],allowLayerDoubleTap:[2,"allowLayerDoubleTap"]},{validAction:"validAction"})],function(e,t){var n=t.component;e(t,1,0,n.defaultKeyAction,n.currentLayer,n.allowLayerDoubleTap)},function(e,t){e(t,0,0,r.Gb(t,1).isNotBase)})}function Xb(e){return r.Qb(0,[(e()(),r.ub(0,0,null,null,2,"mouse-tab",[["class","popover-content"]],null,[[null,"validAction"]],function(e,t,n){var r=!0;return"validAction"===t&&(r=!1!==e.component.setKeyActionValidState(n)&&r),r},Uy,Ey)),r.tb(1,573440,[[1,4],["tab",4]],0,My,[],{defaultKeyAction:[0,"defaultKeyAction"],extraMouseButtonsSupported:[1,"extraMouseButtonsSupported"]},{validAction:"validAction"}),r.Ib(131072,ye,[r.h])],function(e,t){var n=t.component;e(t,1,0,n.defaultKeyAction,r.Pb(t,1,1,r.Gb(t,2).transform(n.extraMouseButtonsSupported$)))},null)}function em(e){return r.Qb(0,[(e()(),r.ub(0,0,null,null,2,"macro-tab",[["class","popover-content"]],null,[[null,"validAction"]],function(e,t,n){var r=!0;return"validAction"===t&&(r=!1!==e.component.setKeyActionValidState(n)&&r),r},Nb,Eb)),r.tb(1,770048,[[1,4],["tab",4]],0,zy,[L.m],{defaultKeyAction:[0,"defaultKeyAction"],macroPlaybackSupported:[1,"macroPlaybackSupported"]},{validAction:"validAction"}),r.Ib(131072,ye,[r.h])],function(e,t){var n=t.component;e(t,1,0,n.defaultKeyAction,r.Pb(t,1,1,r.Gb(t,2).transform(n.macroPlaybackSupported$)))},null)}function tm(e){return r.Qb(0,[(e()(),r.ub(0,0,null,null,2,"keymap-tab",[["class","popover-content"]],null,[[null,"validAction"]],function(e,t,n){var r=!0;return"validAction"===t&&(r=!1!==e.component.setKeyActionValidState(n)&&r),r},Gb,Db)),r.tb(1,573440,[[1,4],["tab",4]],0,$y,[],{defaultKeyAction:[0,"defaultKeyAction"],keymaps:[1,"keymaps"]},{validAction:"validAction"}),r.Ib(131072,ye,[r.h])],function(e,t){var n=t.component;e(t,1,0,n.defaultKeyAction,r.Pb(t,1,1,r.Gb(t,2).transform(n.keymaps$)))},null)}function nm(e){return r.Qb(0,[(e()(),r.ub(0,0,null,null,1,"none-tab",[["class","popover-content"]],null,[[null,"validAction"]],function(e,t,n){var r=!0;return"validAction"===t&&(r=!1!==e.component.setKeyActionValidState(n)&&r),r},$b,Hb)),r.tb(1,114688,[[1,4],["tab",4]],0,Qy,[],null,{validAction:"validAction"})],function(e,t){e(t,1,0)},null)}function rm(e){return r.Qb(2,[r.Mb(671088640,1,{selectedTab:0}),r.Mb(671088640,2,{popoverHost:0}),(e()(),r.ub(2,0,[[2,0],["popover",1]],null,92,"div",[["class","popover"]],[[24,"@popover",0],[4,"top","px"],[4,"left","px"]],null,null,null,null)),r.Lb(512,null,Z,X,[r.t,r.u,r.k,r.E]),r.tb(4,278528,null,0,ee,[Z],{klass:[0,"klass"],ngClass:[1,"ngClass"]},null),r.Jb(5,{leftArrow:0,rightArrow:1}),(e()(),r.Ob(-1,null,["\n "])),(e()(),r.ub(7,0,null,null,0,"div",[["class","arrowCustom"]],null,null,null,null,null)),(e()(),r.Ob(-1,null,["\n "])),(e()(),r.ub(9,0,null,null,7,"div",[["class","popover-title menu-tabs"]],null,null,null,null,null)),(e()(),r.Ob(-1,null,["\n "])),(e()(),r.ub(11,0,null,null,4,"ul",[["class","nav nav-tabs popover-menu"]],null,null,null,null,null)),(e()(),r.Ob(-1,null,["\n "])),(e()(),r.jb(16777216,null,null,1,null,Jb)),r.tb(14,278528,null,0,ne,[r.P,r.M,r.t],{ngForOf:[0,"ngForOf"],ngForTrackBy:[1,"ngForTrackBy"]},null),(e()(),r.Ob(-1,null,["\n "])),(e()(),r.Ob(-1,null,["\n "])),(e()(),r.Ob(-1,null,["\n "])),(e()(),r.ub(18,0,null,null,20,"div",[],null,null,null,null,null)),r.tb(19,16384,null,0,ae,[],{ngSwitch:[0,"ngSwitch"]},null),(e()(),r.Ob(-1,null,["\n "])),(e()(),r.jb(16777216,null,null,1,null,Yb)),r.tb(22,278528,null,0,se,[r.P,r.M,ae],{ngSwitchCase:[0,"ngSwitchCase"]},null),(e()(),r.Ob(-1,null,["\n "])),(e()(),r.jb(16777216,null,null,1,null,Zb)),r.tb(25,278528,null,0,se,[r.P,r.M,ae],{ngSwitchCase:[0,"ngSwitchCase"]},null),(e()(),r.Ob(-1,null,["\n "])),(e()(),r.jb(16777216,null,null,1,null,Xb)),r.tb(28,278528,null,0,se,[r.P,r.M,ae],{ngSwitchCase:[0,"ngSwitchCase"]},null),(e()(),r.Ob(-1,null,["\n "])),(e()(),r.jb(16777216,null,null,1,null,em)),r.tb(31,278528,null,0,se,[r.P,r.M,ae],{ngSwitchCase:[0,"ngSwitchCase"]},null),(e()(),r.Ob(-1,null,["\n "])),(e()(),r.jb(16777216,null,null,1,null,tm)),r.tb(34,278528,null,0,se,[r.P,r.M,ae],{ngSwitchCase:[0,"ngSwitchCase"]},null),(e()(),r.Ob(-1,null,["\n "])),(e()(),r.jb(16777216,null,null,1,null,nm)),r.tb(37,278528,null,0,se,[r.P,r.M,ae],{ngSwitchCase:[0,"ngSwitchCase"]},null),(e()(),r.Ob(-1,null,["\n "])),(e()(),r.Ob(-1,null,["\n "])),(e()(),r.ub(40,0,null,null,53,"div",[["class","popover-action"]],null,null,null,null,null)),(e()(),r.Ob(-1,null,["\n "])),(e()(),r.ub(42,0,null,null,41,"form",[["class","form-inline d-inline-block popover-action-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(e,t,n){var i=!0;return"submit"===t&&(i=!1!==r.Gb(e,44).onSubmit(n)&&i),"reset"===t&&(i=!1!==r.Gb(e,44).onReset()&&i),i},null,null)),r.tb(43,16384,null,0,wp,[],null,null),r.tb(44,4210688,null,0,yp,[[8,null],[8,null]],null,null),r.Lb(2048,null,xc,null,[yp]),r.tb(46,16384,null,0,Ic,[[4,xc]],null,null),(e()(),r.Ob(-1,null,["\n "])),(e()(),r.ub(48,0,null,null,11,"div",[["class","checkbox"]],null,null,null,null,null)),(e()(),r.Ob(-1,null,["\n "])),(e()(),r.ub(50,0,null,null,8,"label",[],null,null,null,null,null)),(e()(),r.Ob(-1,null,["\n "])),(e()(),r.ub(52,0,null,null,5,"input",[["name","remapOnAllKeymap"],["type","checkbox"]],[[2,"ng-untouched",null],[2,"ng-touched",null],[2,"ng-pristine",null],[2,"ng-dirty",null],[2,"ng-valid",null],[2,"ng-invalid",null],[2,"ng-pending",null]],[[null,"ngModelChange"],[null,"change"],[null,"blur"]],function(e,t,n){var i=!0,o=e.component;return"change"===t&&(i=!1!==r.Gb(e,53).onChange(n.target.checked)&&i),"blur"===t&&(i=!1!==r.Gb(e,53).onTouched()&&i),"ngModelChange"===t&&(i=!1!==(o.remapInfo.remapOnAllKeymap=n)&&i),i},null,null)),r.tb(53,16384,null,0,Oc,[r.E,r.k],null,null),r.Lb(1024,null,wc,function(e){return[e]},[Oc]),r.tb(55,671744,null,0,_p,[[2,xc],[8,null],[8,null],[6,wc]],{name:[0,"name"],model:[1,"model"]},{update:"ngModelChange"}),r.Lb(2048,null,Mc,null,[_p]),r.tb(57,16384,null,0,Pc,[[4,Mc]],null,null),(e()(),r.Ob(-1,null,[" Remap on all keymaps\n "])),(e()(),r.Ob(-1,null,["\n "])),(e()(),r.Ob(-1,null,["\n "])),(e()(),r.ub(61,0,null,null,14,"div",[["class","checkbox"]],null,null,null,null,null)),(e()(),r.Ob(-1,null,["\n "])),(e()(),r.ub(63,0,null,null,11,"label",[],null,null,null,null,null)),r.Lb(512,null,Z,X,[r.t,r.u,r.k,r.E]),r.tb(65,278528,null,0,ee,[Z],{ngClass:[0,"ngClass"]},null),r.Jb(66,{disabled:0}),(e()(),r.Ob(-1,null,["\n "])),(e()(),r.ub(68,0,null,null,5,"input",[["name","remapOnAllLayer"],["type","checkbox"]],[[2,"ng-untouched",null],[2,"ng-touched",null],[2,"ng-pristine",null],[2,"ng-dirty",null],[2,"ng-valid",null],[2,"ng-invalid",null],[2,"ng-pending",null]],[[null,"ngModelChange"],[null,"change"],[null,"blur"]],function(e,t,n){var i=!0,o=e.component;return"change"===t&&(i=!1!==r.Gb(e,69).onChange(n.target.checked)&&i),"blur"===t&&(i=!1!==r.Gb(e,69).onTouched()&&i),"ngModelChange"===t&&(i=!1!==(o.remapInfo.remapOnAllLayer=n)&&i),"ngModelChange"===t&&(i=!1!==o.remapInfoChange()&&i),i},null,null)),r.tb(69,16384,null,0,Oc,[r.E,r.k],null,null),r.Lb(1024,null,wc,function(e){return[e]},[Oc]),r.tb(71,671744,null,0,_p,[[2,xc],[8,null],[8,null],[6,wc]],{name:[0,"name"],isDisabled:[1,"isDisabled"],model:[2,"model"]},{update:"ngModelChange"}),r.Lb(2048,null,Mc,null,[_p]),r.tb(73,16384,null,0,Pc,[[4,Mc]],null,null),(e()(),r.Ob(-1,null,[" Remap on all layers\n "])),(e()(),r.Ob(-1,null,["\n "])),(e()(),r.Ob(-1,null,["\n "])),(e()(),r.ub(77,0,null,null,5,"div",[["class","d-inline-block"]],null,null,null,null,null)),(e()(),r.Ob(-1,null,["\n "])),(e()(),r.ub(79,0,null,null,2,"icon",[["data-placement","bottom"],["data-toggle","tooltip"],["html","true"],["maxWidth","525"],["name","question-circle"],["title","
    \n
  • Default behavior: Remap the key on the the current layer of the current keymap.
  • \n
  • Remap on all keymaps: Remap key on the current layer of all keymaps.
  • \n
  • Remap on all layers: Remap key on all layers of the current keymap.
  • \n
  • Remap on all keymaps + Remap on all layers: Remap key on all layers of all keymaps.
  • \n
"]],[[1,"data-placement",0]],null,null,yc,rc)),r.tb(80,114688,null,0,nc,[],{name:[0,"name"]},null),r.tb(81,1589248,null,0,hs,[r.k,On],{title:[0,"title"],html:[1,"html"],maxWidth:[2,"maxWidth"]},null),(e()(),r.Ob(-1,null,["\n "])),(e()(),r.Ob(-1,null,["\n "])),(e()(),r.Ob(-1,null,["\n\n "])),(e()(),r.ub(85,0,null,null,7,"div",[["class","d-inline-block pull-right"]],null,null,null,null,null)),(e()(),r.Ob(-1,null,["\n "])),(e()(),r.ub(87,0,null,null,1,"button",[["class","btn btn-sm btn-default"],["type","button"]],null,[[null,"click"]],function(e,t,n){var r=!0;return"click"===t&&(r=!1!==e.component.onCancelClick()&&r),r},null,null)),(e()(),r.Ob(-1,null,[" Cancel"])),(e()(),r.Ob(-1,null,["\n "])),(e()(),r.ub(90,0,null,null,1,"button",[["class","btn btn-sm btn-primary"],["type","button"]],[[2,"disabled",null]],[[null,"click"]],function(e,t,n){var r=!0;return"click"===t&&(r=!1!==e.component.onRemapKey()&&r),r},null,null)),(e()(),r.Ob(-1,null,[" Remap key\n "])),(e()(),r.Ob(-1,null,["\n "])),(e()(),r.Ob(-1,null,["\n "])),(e()(),r.Ob(-1,null,["\n"])),(e()(),r.Ob(-1,null,["\n"])),(e()(),r.ub(96,0,null,null,0,"div",[["class","popover-overlay"]],[[2,"display",null]],[[null,"click"]],function(e,t,n){var r=!0;return"click"===t&&(r=!1!==e.component.onOverlay()&&r),r},null,null)),(e()(),r.Ob(-1,null,["\n"]))],function(e,t){var n=t.component,r=e(t,5,0,n.leftArrow,n.rightArrow);e(t,4,0,"popover",r),e(t,14,0,n.tabHeaders,n.trackTabHeader),e(t,19,0,n.activeTab),e(t,22,0,n.tabName.Keypress),e(t,25,0,n.tabName.Layer),e(t,28,0,n.tabName.Mouse),e(t,31,0,n.tabName.Macro),e(t,34,0,n.tabName.Keymap),e(t,37,0,n.tabName.None),e(t,55,0,"remapOnAllKeymap",n.remapInfo.remapOnAllKeymap);var i=e(t,66,0,n.disableRemapOnAllLayer);e(t,65,0,i),e(t,71,0,"remapOnAllLayer",n.disableRemapOnAllLayer,n.remapInfo.remapOnAllLayer),e(t,80,0,"question-circle"),e(t,81,0,"
    \n
  • Default behavior: Remap the key on the the current layer of the current keymap.
  • \n
  • Remap on all keymaps: Remap key on the current layer of all keymaps.
  • \n
  • Remap on all layers: Remap key on all layers of the current keymap.
  • \n
  • Remap on all keymaps + Remap on all layers: Remap key on all layers of all keymaps.
  • \n
","true","525")},function(e,t){var n=t.component;e(t,2,0,n.animationState,n.topPosition,n.leftPosition),e(t,42,0,r.Gb(t,46).ngClassUntouched,r.Gb(t,46).ngClassTouched,r.Gb(t,46).ngClassPristine,r.Gb(t,46).ngClassDirty,r.Gb(t,46).ngClassValid,r.Gb(t,46).ngClassInvalid,r.Gb(t,46).ngClassPending),e(t,52,0,r.Gb(t,57).ngClassUntouched,r.Gb(t,57).ngClassTouched,r.Gb(t,57).ngClassPristine,r.Gb(t,57).ngClassDirty,r.Gb(t,57).ngClassValid,r.Gb(t,57).ngClassInvalid,r.Gb(t,57).ngClassPending),e(t,68,0,r.Gb(t,73).ngClassUntouched,r.Gb(t,73).ngClassTouched,r.Gb(t,73).ngClassPristine,r.Gb(t,73).ngClassDirty,r.Gb(t,73).ngClassValid,r.Gb(t,73).ngClassInvalid,r.Gb(t,73).ngClassPending),e(t,79,0,r.Gb(t,81).placement),e(t,90,0,!n.keyActionValid),e(t,96,0,n.visible)})}var im=function(){function e(e,t,n){this.store=e,this.mapper=t,this.element=n,this.popoverEnabled=!0,this.tooltipEnabled=!1,this.descriptionChanged=new r.m,this.currentLayer=0,this.remapInfo={remapOnAllKeymap:!1,remapOnAllLayer:!1},this.keyEditConfig={moduleId:void 0,keyId:void 0},this.tooltipData={posTop:0,posLeft:0,content:Object(_e.a)([]),show:!1}}return Object.defineProperty(e.prototype,"space",{get:function(){return this.popoverEnabled},enumerable:!0,configurable:!0}),e.prototype.onResize=function(){this.wrapHost&&(this.wrapPosition=this.wrapHost.getBoundingClientRect()),this.keyElement&&(this.keyPosition=this.keyElement.getBoundingClientRect())},e.prototype.ngOnInit=function(){this.wrapHost=this.element.nativeElement,this.wrapPosition=this.wrapHost.getBoundingClientRect()},e.prototype.ngOnChanges=function(e){e.keymap&&(this.popoverShown=!1,this.layers=this.keymap.layers)},e.prototype.onKeyClick=function(e){if(!this.popoverShown&&this.popoverEnabled){this.keyEditConfig={moduleId:e.moduleId,keyId:e.keyId},this.selectedKey={layerId:this.currentLayer,moduleId:e.moduleId,keyId:e.keyId};var t=this.layers[this.currentLayer].modules[e.moduleId].keyActions[e.keyId];this.keyElement=e.keyTarget,this.remapInfo={remapOnAllKeymap:e.shiftPressed,remapOnAllLayer:e.altPressed},this.showPopover(t)}},e.prototype.onKeyHover=function(e){this.tooltipEnabled&&(e.over?this.showTooltip(this.layers[this.currentLayer].modules[e.moduleId].keyActions[e.keyId],e.event):this.hideTooltip())},e.prototype.onCapture=function(e){var t=new $o.KeystrokeAction;t.scancode=e.captured.code,t.modifierMask=Ml(e.captured.left,e.captured.right),this.store.dispatch(new Yo({keymap:this.keymap,layer:this.currentLayer,module:e.moduleId,key:e.keyId,keyAction:{remapOnAllKeymap:e.shiftPressed,remapOnAllLayer:e.altPressed,action:t}}))},e.prototype.onRemap=function(e){this.store.dispatch(new Yo({keymap:this.keymap,layer:this.currentLayer,module:this.keyEditConfig.moduleId,key:this.keyEditConfig.keyId,keyAction:e})),this.hidePopover()},e.prototype.showPopover=function(e){this.keyPosition=this.keyElement.getBoundingClientRect(),this.popoverInitKeyAction=e,this.popoverShown=!0,this.popover.nativeElement.focus()},e.prototype.showTooltip=function(e,t){if(void 0!==e){var n=t.target,r=n.getBoundingClientRect(),i=this.tooltipData.posLeft,o=this.tooltipData.posTop;"g"===n.tagName&&(i=r.left+r.width/2,o=r.top+r.height),this.tooltipData={posLeft:i,posTop:o,content:this.getKeyActionContent(e),show:!0}}},e.prototype.hideTooltip=function(){this.tooltipData.show=!1},e.prototype.hidePopover=function(){this.popoverShown=!1,this.selectedKey=void 0,this.popoverInitKeyAction=null},e.prototype.selectLayer=function(e){this.currentLayer=e},e.prototype.getSelectedLayer=function(){return this.currentLayer},e.prototype.onDescriptionChanged=function(e){this.descriptionChanged.emit({description:e,abbr:this.keymap.abbreviation})},e.prototype.getKeyActionContent=function(e){if(e instanceof $o.KeystrokeAction){var t=e;if((o=[]).push({name:"Action type",value:"Keystroke"}),t.hasScancode()){var n=t.scancode.toString(),r=(this.mapper.scanCodeToText(t.scancode,t.type)||[]).join(", ");r.length>0&&(n+=" ("+r+")"),o.push({name:"Scancode",value:n})}return t.hasActiveModifier()&&o.push({name:"Modifiers",value:t.getModifierList().join(", ")}),t.hasSecondaryRoleAction()&&o.push({name:"Secondary role",value:$o.SecondaryRoleAction[t.secondaryRoleAction]}),Object(_e.a)(o)}if(e instanceof $o.MouseAction){var i=e,o=[{name:"Action type",value:"Mouse"},{name:"Action",value:Object($o.camelCaseToSentence)($o.MouseActionParam[i.mouseAction])}];return Object(_e.a)(o)}if(e instanceof $o.PlayMacroAction){var l=e;return this.store.select(Ku).pipe(Object(Fe.a)(function(e){return e.find(function(e){return e.id===l.macroId}).name}),Object(Fe.a)(function(e){return[{name:"Action type",value:"Play macro"},{name:"Macro name",value:e}]}))}if(e instanceof $o.SwitchKeymapAction){var u=e;return this.store.select(Du).pipe(Object(Fe.a)(function(e){return e.find(function(e){return e.abbreviation===u.keymapAbbreviation}).name}),Object(Fe.a)(function(e){return[{name:"Action type",value:"Switch keymap"},{name:"Keymap",value:e}]}))}if(e instanceof $o.SwitchLayerAction){var a=e;return o=[{name:"Action type",value:"Switch layer"},{name:"Layer",value:Object($o.capitalizeFirstLetter)($o.LayerName[a.layer])},{name:"Toogle",value:a.switchLayerMode===$o.SwitchLayerMode.toggle?"On":"Off"}],Object(_e.a)(o)}return Object(_e.a)([])},e}(),om=r.sb({encapsulation:0,styles:[["[_nghost-%COMP%]{width:100%;display:block}.space[_nghost-%COMP%]{margin-bottom:405px}keyboard-slider[_ngcontent-%COMP%]{display:block;position:relative;height:500px;margin-top:30px}.tooltip[_ngcontent-%COMP%]{position:fixed;transform:translate(-50%,-6px);display:none}.tooltip-inner[_ngcontent-%COMP%]{background:#fff;color:#000;box-shadow:0 1px 5px #000;text-align:left}.tooltip-inner[_ngcontent-%COMP%] p[_ngcontent-%COMP%]{margin-bottom:2px}.tooltip-inner[_ngcontent-%COMP%] p[_ngcontent-%COMP%]:last-of-type{margin-bottom:0}.tooltip.bottom[_ngcontent-%COMP%] .tooltip-arrow[_ngcontent-%COMP%]{border-bottom-color:#fff;top:1px}.tooltip.in[_ngcontent-%COMP%]{display:block;opacity:1}"]],data:{}});function lm(e){return r.Qb(0,[(e()(),r.ub(0,0,null,null,1,"p",[],null,null,null,null,null)),(e()(),r.Ob(1,null,["\n ",": ","\n "]))],null,function(e,t){e(t,1,0,t.context.$implicit.name,t.context.$implicit.value)})}function um(e){return r.Qb(0,[(e()(),r.Ob(-1,null,["\n "])),(e()(),r.ub(1,0,null,null,1,"layers",[],[[2,"disabled",null]],[[null,"select"]],function(e,t,n){var r=!0;return"select"===t&&(r=!1!==e.component.selectLayer(n.index)&&r),r},Mf,xf)),r.tb(2,49152,null,0,Tf,[],{current:[0,"current"]},{select:"select"}),(e()(),r.Ob(-1,null,["\n "])),(e()(),r.ub(4,0,null,null,1,"keyboard-slider",[],null,[[null,"keyClick"],[null,"keyHover"],[null,"capture"],[null,"descriptionChanged"]],function(e,t,n){var r=!0,i=e.component;return"keyClick"===t&&(r=!1!==i.onKeyClick(n)&&r),"keyHover"===t&&(r=!1!==i.onKeyHover(n)&&r),"capture"===t&&(r=!1!==i.onCapture(n)&&r),"descriptionChanged"===t&&(r=!1!==i.onDescriptionChanged(n)&&r),r},Oh,_h)),r.tb(5,573440,null,0,kh,[],{layers:[0,"layers"],currentLayer:[1,"currentLayer"],capturingEnabled:[2,"capturingEnabled"],halvesInfo:[3,"halvesInfo"],selectedKey:[4,"selectedKey"],keyboardLayout:[5,"keyboardLayout"],description:[6,"description"],lastEditedKey:[7,"lastEditedKey"]},{keyClick:"keyClick",keyHover:"keyHover",capture:"capture",descriptionChanged:"descriptionChanged"}),(e()(),r.Ob(-1,null,["\n\n "])),(e()(),r.ub(7,0,[[1,0]],null,1,"popover",[["tabindex","0"]],null,[[null,"cancel"],[null,"remap"],[null,"keydown.escape"],["document","keydown.control.enter"]],function(e,t,n){var i=!0,o=e.component;return"keydown.escape"===t&&(i=!1!==r.Gb(e,8).onEscape()&&i),"document:keydown.control.enter"===t&&(i=!1!==r.Gb(e,8).onKeyDown(n)&&i),"cancel"===t&&(i=!1!==o.hidePopover()&&i),"remap"===t&&(i=!1!==o.onRemap(n)&&i),i},rm,qb)),r.tb(8,573440,null,0,Wb,[L.m,r.h],{defaultKeyAction:[0,"defaultKeyAction"],currentKeymap:[1,"currentKeymap"],currentLayer:[2,"currentLayer"],keyPosition:[3,"keyPosition"],wrapPosition:[4,"wrapPosition"],visible:[5,"visible"],allowLayerDoubleTap:[6,"allowLayerDoubleTap"],remapInfo:[7,"remapInfo"]},{cancel:"cancel",remap:"remap"}),(e()(),r.Ob(-1,null,["\n\n "])),(e()(),r.ub(10,0,null,null,10,"div",[["class","tooltip bottom"]],[[2,"in",null],[4,"top","px"],[4,"left","px"]],null,null,null,null)),(e()(),r.Ob(-1,null,["\n "])),(e()(),r.ub(12,0,null,null,0,"div",[["class","tooltip-arrow"]],null,null,null,null,null)),(e()(),r.Ob(-1,null,["\n "])),(e()(),r.ub(14,0,null,null,5,"div",[["class","tooltip-inner"]],null,null,null,null,null)),(e()(),r.Ob(-1,null,["\n "])),(e()(),r.jb(16777216,null,null,2,null,lm)),r.tb(17,278528,null,0,ne,[r.P,r.M,r.t],{ngForOf:[0,"ngForOf"]},null),r.Ib(131072,ye,[r.h]),(e()(),r.Ob(-1,null,["\n "])),(e()(),r.Ob(-1,null,["\n "])),(e()(),r.Ob(-1,null,["\n"]))],function(e,t){var n=t.component;e(t,2,0,n.currentLayer),e(t,5,0,n.layers,n.currentLayer,n.popoverEnabled,n.halvesInfo,n.selectedKey,n.keyboardLayout,n.keymap.description,n.lastEditedKey),e(t,8,0,n.popoverInitKeyAction,n.keymap,n.currentLayer,n.keyPosition,n.wrapPosition,n.popoverShown,n.allowLayerDoubleTap,n.remapInfo),e(t,17,0,r.Pb(t,17,0,r.Gb(t,18).transform(n.tooltipData.content)))},function(e,t){var n=t.component;e(t,1,0,n.popoverShown),e(t,10,0,n.tooltipData.show,n.tooltipData.posTop,n.tooltipData.posLeft)})}function am(e){return r.Qb(2,[r.Mb(671088640,1,{popover:0}),(e()(),r.jb(16777216,null,null,1,null,um)),r.tb(2,16384,null,0,ie,[r.P,r.M],{ngIf:[0,"ngIf"]},null),(e()(),r.Ob(-1,null,["\n"]))],function(e,t){e(t,2,0,t.component.layers)},null)}var sm=n("FYXD"),cm=n("JEAp"),pm=function(){function e(e,t,n){var r=this;this.store=e,this.cdRef=n,this.routeSubscription=t.params.pipe(Object(sm.a)("abbr")).subscribe(function(t){return e.dispatch(new il(t))}),this.keymap$=e.select(Fu),this.keymapSubscription=this.keymap$.subscribe(function(e){r.keymap=e,r.cdRef.markForCheck()}),this.deletable$=e.select(Vu),this.keyboardLayout$=e.select(Ju),this.allowLayerDoubleTap$=e.select(Pa),this.lastEditedKey$=e.select(Hu),this.halvesInfo$=e.select(Ta)}return e.prototype.ngOnDestroy=function(){this.routeSubscription.unsubscribe(),this.keymapSubscription.unsubscribe()},e.prototype.downloadKeymap=function(){var e=this,t=this.keymap$.pipe(Object(st.a)(function(t){return e.toExportableJSON(t)}),Object(Fe.a)(function(e){return JSON.stringify(e)}));this.keymap$.pipe(zb(t),ot()).subscribe(function(e){var t=e[1],n=e[0].name+"_keymap.json";Object(cm.saveAs)(new Blob([t],{type:"application/json"}),n)})},e.prototype.descriptionChanged=function(e){this.store.dispatch(new rl(e))},e.prototype.toExportableJSON=function(e){return this.store.select(Nu).pipe(ot(),Object(Fe.a)(function(t){return{site:"https://ultimatehackingkeyboard.com",description:"Ultimate Hacking Keyboard keymap",keyboardModel:"UHK60",userConfigMajorVersion:t.userConfigMajorVersion,userConfigMinorVersion:t.userConfigMinorVersion,userConfigPatchVersion:t.userConfigPatchVersion,objectType:"keymap",objectValue:e.toJsonObject()}}))},e}(),fm=r.sb({encapsulation:0,styles:[["[_nghost-%COMP%]{width:100%;display:block}.not-found[_ngcontent-%COMP%]{margin-top:30px;font-size:16px;text-align:center}"]],data:{}});function dm(e){return r.Qb(0,[(e()(),r.Ob(-1,null,["\n "])),(e()(),r.ub(1,0,null,null,2,"keymap-header",[],null,[[null,"downloadClick"],["window","resize"]],function(e,t,n){var i=!0,o=e.component;return"window:resize"===t&&(i=!1!==r.Gb(e,2).windowResize()&&i),"downloadClick"===t&&(i=!1!==o.downloadKeymap()&&i),i},Cf,Af)),r.tb(2,573440,null,0,Of,[L.m,r.E],{keymap:[0,"keymap"],deletable:[1,"deletable"]},{downloadClick:"downloadClick"}),r.Ib(131072,ye,[r.h]),(e()(),r.Ob(-1,null,["\n "])),(e()(),r.ub(5,0,null,null,5,"svg-keyboard-wrap",[],[[2,"space",null]],[[null,"descriptionChanged"],["window","resize"]],function(e,t,n){var i=!0,o=e.component;return"window:resize"===t&&(i=!1!==r.Gb(e,6).onResize()&&i),"descriptionChanged"===t&&(i=!1!==o.descriptionChanged(n)&&i),i},am,om)),r.tb(6,638976,null,0,im,[L.m,Wf,r.k],{keymap:[0,"keymap"],halvesInfo:[1,"halvesInfo"],keyboardLayout:[2,"keyboardLayout"],allowLayerDoubleTap:[3,"allowLayerDoubleTap"],lastEditedKey:[4,"lastEditedKey"]},{descriptionChanged:"descriptionChanged"}),r.Ib(131072,ye,[r.h]),r.Ib(131072,ye,[r.h]),r.Ib(131072,ye,[r.h]),r.Ib(131072,ye,[r.h]),(e()(),r.Ob(-1,null,["\n"]))],function(e,t){var n=t.component;e(t,2,0,n.keymap,r.Pb(t,2,1,r.Gb(t,3).transform(n.deletable$))),e(t,6,0,n.keymap,r.Pb(t,6,1,r.Gb(t,7).transform(n.halvesInfo$)),r.Pb(t,6,2,r.Gb(t,8).transform(n.keyboardLayout$)),r.Pb(t,6,3,r.Gb(t,9).transform(n.allowLayerDoubleTap$)),r.Pb(t,6,4,r.Gb(t,10).transform(n.lastEditedKey$)))},function(e,t){e(t,5,0,r.Gb(t,6).space)})}function hm(e){return r.Qb(0,[(e()(),r.ub(0,0,null,null,1,"div",[["class","not-found"]],null,null,null,null,null)),(e()(),r.Ob(-1,null,["\n Sorry, there is no keymap with this abbreviation.\n"]))],null,null)}function ym(e){return r.Qb(2,[(e()(),r.jb(16777216,null,null,1,null,dm)),r.tb(1,16384,null,0,ie,[r.P,r.M],{ngIf:[0,"ngIf"]},null),(e()(),r.Ob(-1,null,["\n\n"])),(e()(),r.jb(16777216,null,null,1,null,hm)),r.tb(4,16384,null,0,ie,[r.P,r.M],{ngIf:[0,"ngIf"]},null),(e()(),r.Ob(-1,null,["\n"]))],function(e,t){var n=t.component;e(t,1,0,n.keymap),e(t,4,0,!n.keymap)},null)}function bm(e){return r.Qb(0,[(e()(),r.ub(0,0,null,null,1,"keymap-edit",[["class","container-fluid"]],null,null,null,ym,fm)),r.tb(1,180224,null,0,pm,[L.m,Gr,r.h],null,null)],null,null)}var mm=r.qb("keymap-edit",pm,bm,{},{},[]),gm=n("S5bw"),vm=n("xlPZ"),km=n("yGWI"),_m=function(){function e(e){var t;this.store=e,this.presetsAll$=e.select(function(e){return e.presetKeymaps}),this.filterExpression$=new Oe.a(""),this.presets$=this.presetsAll$.pipe(zb(this.filterExpression$,function(e,t){return e.filter(function(e){return e.name.toLocaleLowerCase().includes(t)})}),(t=new gm.a(1,void 0,void 0),function(e){return Object(vm.a)(function(){return t},void 0)(e)}),Object(km.a)())}return e.prototype.filterKeyboards=function(e){this.filterExpression$.next(e)},e.prototype.addKeymap=function(e){this.store.dispatch(new Qo(e))},e}(),wm=r.sb({encapsulation:0,styles:[["[_nghost-%COMP%]{overflow-y:auto;display:block;height:100%}.uhk__layer-switcher--wrapper[_ngcontent-%COMP%]{position:relative}.uhk__layer-switcher--wrapper[_ngcontent-%COMP%]:before{content:attr(data-title);display:inline-block;position:absolute;bottom:-.3em;right:100%;font-size:2.4rem;padding-right:.25em;margin:0}.keymap__search[_ngcontent-%COMP%]{margin-top:10px}.keymap__search[_ngcontent-%COMP%] .input-group[_ngcontent-%COMP%]{width:100%;max-width:350px;float:left}.keymap__search_amount[_ngcontent-%COMP%]{float:left;margin:7px 0 0 20px}.keymap__description[_ngcontent-%COMP%]{margin-bottom:20px}.keymap__list[_ngcontent-%COMP%]{margin-top:40px}.keymap__list_item[_ngcontent-%COMP%]{margin-bottom:50px}.keymap__list[_ngcontent-%COMP%] .btn-group-lg[_ngcontent-%COMP%]{margin:30px 0 0;width:100%;text-align:center}.keymap__list[_ngcontent-%COMP%] .btn-group-lg[_ngcontent-%COMP%] .btn[_ngcontent-%COMP%]{float:none;padding-left:50px;padding-right:50px}"]],data:{}});function Om(e){return r.Qb(0,[(e()(),r.ub(0,0,[["keyboard",1]],null,17,"div",[["class","keymap__list_item"]],null,null,null,null,null)),(e()(),r.Ob(-1,null,["\n "])),(e()(),r.ub(2,0,null,null,1,"h2",[],null,null,null,null,null)),(e()(),r.Ob(3,null,["",""])),(e()(),r.Ob(-1,null,["\n "])),(e()(),r.ub(5,0,null,null,1,"p",[["class","keymap__description"]],null,null,null,null,null)),(e()(),r.Ob(6,null,["\n ","\n "])),(e()(),r.Ob(-1,null,["\n "])),(e()(),r.ub(8,0,null,null,2,"svg-keyboard-wrap",[],[[2,"space",null]],[["window","resize"]],function(e,t,n){var i=!0;return"window:resize"===t&&(i=!1!==r.Gb(e,9).onResize()&&i),i},am,om)),r.tb(9,638976,null,0,im,[L.m,Wf,r.k],{keymap:[0,"keymap"],popoverEnabled:[1,"popoverEnabled"],tooltipEnabled:[2,"tooltipEnabled"]},null),(e()(),r.Ob(-1,null,["\n "])),(e()(),r.Ob(-1,null,["\n "])),(e()(),r.ub(12,0,null,null,4,"div",[["class","btn-group btn-group-lg"]],null,null,null,null,null)),(e()(),r.Ob(-1,null,["\n "])),(e()(),r.ub(14,0,null,null,1,"button",[["class","btn btn-default"]],null,[[null,"click"]],function(e,t,n){var r=!0;return"click"===t&&(r=!1!==e.component.addKeymap(e.context.$implicit)&&r),r},null,null)),(e()(),r.Ob(-1,null,["Add keymap"])),(e()(),r.Ob(-1,null,["\n "])),(e()(),r.Ob(-1,null,["\n "]))],function(e,t){e(t,9,0,t.context.$implicit,!1,!0)},function(e,t){e(t,3,0,t.context.$implicit.name),e(t,6,0,t.context.$implicit.description),e(t,8,0,r.Gb(t,9).space)})}function Am(e){return r.Qb(0,[(e()(),r.ub(0,0,null,null,1,"div",[],null,null,null,null,null)),(e()(),r.Ob(-1,null,["\n Sorry, no keyboard found under this search query.\n"]))],null,null)}function Cm(e){return r.Qb(2,[(e()(),r.ub(0,0,null,null,6,"h1",[],null,null,null,null,null)),(e()(),r.Ob(-1,null,["\n "])),(e()(),r.ub(2,0,null,null,0,"i",[["class","fa fa-keyboard-o"]],null,null,null,null,null)),(e()(),r.Ob(-1,null,["\n "])),(e()(),r.ub(4,0,null,null,1,"span",[],null,null,null,null,null)),(e()(),r.Ob(-1,null,["Add new keymap"])),(e()(),r.Ob(-1,null,["\n"])),(e()(),r.Ob(-1,null,["\n"])),(e()(),r.ub(8,0,null,null,16,"div",[["class","keymap__search clearfix"]],null,null,null,null,null)),(e()(),r.Ob(-1,null,["\n "])),(e()(),r.ub(10,0,null,null,8,"div",[["class","input-group"]],null,null,null,null,null)),(e()(),r.Ob(-1,null,["\n "])),(e()(),r.ub(12,0,null,null,3,"span",[["class","input-group-addon"],["id","sizing-addon1"]],null,null,null,null,null)),(e()(),r.Ob(-1,null,["\n "])),(e()(),r.ub(14,0,null,null,0,"i",[["class","fa fa-search"]],null,null,null,null,null)),(e()(),r.Ob(-1,null,["\n "])),(e()(),r.Ob(-1,null,["\n "])),(e()(),r.ub(17,0,null,null,0,"input",[["class","form-control"],["placeholder","Search ..."],["type","text"]],null,[[null,"input"]],function(e,t,n){var r=!0;return"input"===t&&(r=!1!==e.component.filterKeyboards(n.target.value)&&r),r},null,null)),(e()(),r.Ob(-1,null,["\n "])),(e()(),r.Ob(-1,null,["\n "])),(e()(),r.ub(20,0,null,null,3,"div",[["class","keymap__search_amount"]],null,null,null,null,null)),(e()(),r.Ob(21,null,["\n "," / "," keymaps shown\n "])),r.Ib(131072,ye,[r.h]),r.Ib(131072,ye,[r.h]),(e()(),r.Ob(-1,null,["\n"])),(e()(),r.Ob(-1,null,["\n"])),(e()(),r.ub(26,0,null,null,5,"div",[["class","keymap__list"]],null,null,null,null,null)),(e()(),r.Ob(-1,null,["\n "])),(e()(),r.jb(16777216,null,null,2,null,Om)),r.tb(29,278528,null,0,ne,[r.P,r.M,r.t],{ngForOf:[0,"ngForOf"]},null),r.Ib(131072,ye,[r.h]),(e()(),r.Ob(-1,null,["\n"])),(e()(),r.Ob(-1,null,["\n"])),(e()(),r.jb(16777216,null,null,2,null,Am)),r.tb(34,16384,null,0,ie,[r.P,r.M],{ngIf:[0,"ngIf"]},null),r.Ib(131072,ye,[r.h])],function(e,t){var n=t.component;e(t,29,0,r.Pb(t,29,0,r.Gb(t,30).transform(n.presets$))),e(t,34,0,0===r.Pb(t,34,0,r.Gb(t,35).transform(n.presets$)).length)},function(e,t){var n=t.component;e(t,21,0,r.Pb(t,21,0,r.Gb(t,22).transform(n.presets$)).length,r.Pb(t,21,1,r.Gb(t,23).transform(n.presetsAll$)).length)})}function Tm(e){return r.Qb(0,[(e()(),r.ub(0,0,null,null,1,"keymap-add",[["class","container-fluid"]],null,null,null,Cm,wm)),r.tb(1,49152,null,0,_m,[L.m],null,null)],null,null)}var xm=r.qb("keymap-add",_m,Tm,{},{},[]),Sm=function(){return function(){}}(),Mm=r.sb({encapsulation:0,styles:[[".not-found[_ngcontent-%COMP%]{margin-top:30px;font-size:16px;text-align:center}"]],data:{}});function Em(e){return r.Qb(0,[(e()(),r.ub(0,0,null,null,11,"div",[["class","container-fluid"]],null,null,null,null,null)),(e()(),r.Ob(-1,null,["\n "])),(e()(),r.ub(2,0,null,null,5,"uhk-header",[],null,null,null,kf,vf)),r.tb(3,49152,null,0,gf,[L.m],null,null),(e()(),r.Ob(-1,0,["\n "])),(e()(),r.ub(5,0,null,0,1,"h1",[],null,null,null,null,null)),(e()(),r.Ob(-1,null,["\xa0"])),(e()(),r.Ob(-1,0,["\n "])),(e()(),r.Ob(-1,null,["\n "])),(e()(),r.ub(9,0,null,null,1,"div",[["class","not-found"]],null,null,null,null,null)),(e()(),r.Ob(-1,null,["\n You don't have any macros. Try to add one!\n "])),(e()(),r.Ob(-1,null,["\n"])),(e()(),r.Ob(-1,null,["\n"]))],null,null)}function Pm(e){return r.Qb(0,[(e()(),r.ub(0,0,null,null,1,"macro-not-found",[],null,null,null,Em,Mm)),r.tb(1,49152,null,0,Sm,[],null,null)],null,null)}var Im=r.qb("macro-not-found",Sm,Pm,{},{},[]),jm=function(){function e(e,t){this.store=e,this.renderer=t}return e.prototype.ngOnChanges=function(e){this.isNew&&this.setFocusOnName(),e.macro&&this.setName()},e.prototype.ngAfterViewInit=function(){this.isNew&&this.setFocusOnName()},e.prototype.windowResize=function(){this.calculateHeaderTextWidth(this.macro.name)},e.prototype.removeMacro=function(){this.store.dispatch(new al(this.macro.id))},e.prototype.duplicateMacro=function(){this.store.dispatch(new ll(this.macro))},e.prototype.editMacroName=function(e){El(e)?this.store.dispatch(new sl({id:this.macro.id,name:e})):this.setName()},e.prototype.calculateHeaderTextWidth=function(e){var t=this.macroName.nativeElement,n=.8*t.parentElement.offsetWidth,r=Sl(window.getComputedStyle(t),e);this.renderer.setStyle(t,"width",Math.min(n,r)+"px")},e.prototype.setFocusOnName=function(){this.macroName.nativeElement.select()},e.prototype.setName=function(){this.renderer.setProperty(this.macroName.nativeElement,"value",this.macro.name),this.calculateHeaderTextWidth(this.macro.name)},e}(),Rm=r.sb({encapsulation:0,styles:[[".macro__remove[_ngcontent-%COMP%]{font-size:.75em;top:8px}.macro__remove[_ngcontent-%COMP%]:hover{cursor:pointer;color:#900}.macro__duplicate[_ngcontent-%COMP%]{font-size:.75em;top:7px;margin-right:15px;position:relative}.macro__duplicate[_ngcontent-%COMP%]:hover{cursor:pointer;color:#337ab7}.pane-title[_ngcontent-%COMP%]{margin-bottom:1em}.pane-title__name[_ngcontent-%COMP%]{border:none;border-bottom:2px dotted #999;padding:0;margin:0 .25rem;text-overflow:ellipsis}.pane-title__name[_ngcontent-%COMP%]:focus{box-shadow:0 0 0 1px #ccc,0 0 5px 0 #ccc;border-color:transparent}"]],data:{}});function Lm(e){return r.Qb(2,[r.Mb(402653184,1,{macroName:0}),(e()(),r.ub(1,0,null,null,19,"uhk-header",[],null,null,null,kf,vf)),r.tb(2,49152,null,0,gf,[L.m],null,null),(e()(),r.Ob(-1,0,["\n "])),(e()(),r.ub(4,0,null,0,15,"div",[["class","row"]],null,null,null,null,null)),(e()(),r.Ob(-1,null,["\n "])),(e()(),r.ub(6,0,null,null,12,"h1",[["class","col-xs-12 pane-title"]],null,null,null,null,null)),(e()(),r.Ob(-1,null,["\n "])),(e()(),r.ub(8,0,null,null,0,"i",[["class","fa fa-play"]],null,null,null,null,null)),(e()(),r.Ob(-1,null,["\n "])),(e()(),r.ub(10,0,[[1,0],["macroName",1]],null,1,"input",[["cancelable",""],["class","pane-title__name"],["type","text"]],null,[[null,"change"],[null,"keyup.enter"],[null,"keyup"],[null,"focus"],[null,"keyup.escape"]],function(e,t,n){var i=!0,o=e.component;return"focus"===t&&(i=!1!==r.Gb(e,11).onFocus()&&i),"keyup.escape"===t&&(i=!1!==r.Gb(e,11).onEscape()&&i),"change"===t&&(i=!1!==o.editMacroName(n.target.value)&&i),"keyup.enter"===t&&(i=!1!==r.Gb(e,10).blur()&&i),"keyup"===t&&(i=!1!==o.calculateHeaderTextWidth(n.target.value)&&i),i},null,null)),r.tb(11,16384,null,0,_f,[r.k,r.E],null,null),(e()(),r.Ob(-1,null,["\n "])),(e()(),r.ub(13,0,null,null,1,"i",[["class","glyphicon glyphicon-trash macro__remove pull-right"],["data-original-title","Delete macro"],["data-placement","bottom"],["data-toggle","tooltip"],["html","true"],["title",""]],[[1,"data-placement",0]],[[null,"click"]],function(e,t,n){var r=!0;return"click"===t&&(r=!1!==e.component.removeMacro()&&r),r},null,null)),r.tb(14,1589248,null,0,hs,[r.k,On],{title:[0,"title"],html:[1,"html"]},null),(e()(),r.Ob(-1,null,["\n "])),(e()(),r.ub(16,0,null,null,1,"i",[["class","fa fa-files-o macro__duplicate pull-right"],["data-original-title","Duplicate macro"],["data-placement","bottom"],["data-toggle","tooltip"],["title",""]],[[1,"data-placement",0]],[[null,"click"]],function(e,t,n){var r=!0;return"click"===t&&(r=!1!==e.component.duplicateMacro()&&r),r},null,null)),r.tb(17,1589248,null,0,hs,[r.k,On],{title:[0,"title"]},null),(e()(),r.Ob(-1,null,["\n "])),(e()(),r.Ob(-1,null,["\n "])),(e()(),r.Ob(-1,0,["\n"])),(e()(),r.Ob(-1,null,["\n"]))],function(e,t){e(t,14,0,"","true"),e(t,17,0,"")},function(e,t){e(t,13,0,r.Gb(t,14).placement),e(t,16,0,r.Gb(t,17).placement)})}var Nm=n("YS7c"),Dm=n.n(Nm),Um=function(){return function(e,t,n){this.name=e,this.drake=t,this.options=n,this.initEvents=!1}}(),Fm={Cancel:"cancel",Cloned:"cloned",Drag:"drag",DragEnd:"dragend",Drop:"drop",Out:"out",Over:"over",Remove:"remove",Shadow:"shadow",DropModel:"dropModel",RemoveModel:"removeModel"},Km=Object.keys(Fm).map(function(e){return Fm[e]}),Bm=Dm.a||Nm,Vm=function(){return function(e){void 0===e&&(e=Bm),this.build=e}}(),Gm=function(e,t,n){return function(r){return r.pipe(Object(Ve.a)(function(n){return n.event===e&&(void 0===t||n.name===t)}),Object(Fe.a)(function(e){return n(e.name,e.args)}))}},Hm=function(e,t){var n=Object(N.f)(t,3);return{name:e,el:n[0],container:n[1],source:n[2]}},$m=function(){function e(e){void 0===e&&(e=null);var t=this;this.drakeFactory=e,this.dispatch$=new Ue.a,this.drag=function(e){return t.dispatch$.pipe(Gm(Fm.Drag,e,function(e,t){var n=Object(N.f)(t,2);return{name:e,el:n[0],source:n[1]}}))},this.dragend=function(e){return t.dispatch$.pipe(Gm(Fm.DragEnd,e,function(e,t){return{name:e,el:Object(N.f)(t,1)[0]}}))},this.drop=function(e){return t.dispatch$.pipe(Gm(Fm.Drop,e,function(e,t){var n=Object(N.f)(t,4);return{name:e,el:n[0],target:n[1],source:n[2],sibling:n[3]}}))},this.elContainerSource=function(e){return function(n){return t.dispatch$.pipe(Gm(e,n,Hm))}},this.cancel=this.elContainerSource(Fm.Cancel),this.remove=this.elContainerSource(Fm.Remove),this.shadow=this.elContainerSource(Fm.Shadow),this.over=this.elContainerSource(Fm.Over),this.out=this.elContainerSource(Fm.Out),this.cloned=function(e){return t.dispatch$.pipe(Gm(Fm.Cloned,e,function(e,t){var n=Object(N.f)(t,3);return{name:e,clone:n[0],original:n[1],cloneType:n[2]}}))},this.dropModel=function(e){return t.dispatch$.pipe(Gm(Fm.DropModel,e,function(e,t){var n=Object(N.f)(t,9);return{name:e,el:n[0],target:n[1],source:n[2],sibling:n[3],item:n[4],sourceModel:n[5],targetModel:n[6],sourceIndex:n[7],targetIndex:n[8]}}))},this.removeModel=function(e){return t.dispatch$.pipe(Gm(Fm.RemoveModel,e,function(e,t){var n=Object(N.f)(t,6);return{name:e,el:n[0],container:n[1],source:n[2],item:n[3],sourceModel:n[4],sourceIndex:n[5]}}))},this.groups={},null===this.drakeFactory&&(this.drakeFactory=new Vm)}return e.prototype.add=function(e){if(this.find(e.name))throw new Error('Group named: "'+e.name+'" already exists.');return this.groups[e.name]=e,this.handleModels(e),this.setupEvents(e),e},e.prototype.find=function(e){return this.groups[e]},e.prototype.destroy=function(e){var t=this.find(e);t&&(t.drake&&t.drake.destroy(),delete this.groups[e])},e.prototype.createGroup=function(e,t){return this.add(new Um(e,this.drakeFactory.build([],t),t))},e.prototype.handleModels=function(e){var t,n,r,i=this,o=e.name,l=e.drake,u=e.options;l.on("remove",function(e,t,r){if(l.models){var u=l.models[l.containers.indexOf(r)],a=(u=u.slice(0)).splice(n,1)[0];i.dispatch$.next({event:Fm.RemoveModel,name:o,args:[e,t,r,a,u,n]})}}),l.on("drag",function(e,r){l.models&&(t=e,n=i.domIndexOf(e,r))}),l.on("drop",function(e,a,s,c){if(l.models&&a){r=i.domIndexOf(e,a);var p,f=l.models[l.containers.indexOf(s)],d=l.models[l.containers.indexOf(a)];if(a===s)p=(f=f.slice(0)).splice(n,1)[0],f.splice(r,0,p),d=f;else{var h=t!==e;if(p=f[n],h){if(!u.copyItem)throw new Error("If you have enabled `copy` on a group, you must provide a `copyItem` function.");p=u.copyItem(p)}if(h||(f=f.slice(0)).splice(n,1),(d=d.slice(0)).splice(r,0,p),h)try{a.removeChild(e)}catch(y){}}i.dispatch$.next({event:Fm.DropModel,name:o,args:[e,a,s,c,p,f,d,n,r]})}})},e.prototype.setupEvents=function(e){var t=this;if(!e.initEvents){e.initEvents=!0;var n=e.name;Km.forEach(function(r){e.drake.on(r,function(){for(var e=[],i=0;i active",animation:{type:4,styles:null,timings:"500ms ease-out"},options:null}],options:{}},{type:7,name:"togglerNew",definitions:[{type:0,name:"void",styles:{type:6,styles:{height:"0px"},offset:null},options:void 0},{type:0,name:"active",styles:{type:6,styles:{height:"*"},offset:null},options:void 0},{type:1,expr:":enter",animation:{type:4,styles:null,timings:"500ms ease-out"},options:null},{type:1,expr:":leave",animation:{type:4,styles:null,timings:"500ms ease-out"},options:null}],options:{}}]}});function Jm(e){return r.Qb(0,[(e()(),r.ub(0,0,null,null,2,"p",[],null,null,null,null,null)),(e()(),r.ub(1,0,null,null,1,"i",[],null,null,null,null,null)),(e()(),r.Ob(-1,null,["Please note that macro playback is not implemented yet. You can create macros, but they won't have any effect until firmware support is implemented. We're working on this."]))],null,null)}function Ym(e){return r.Qb(0,[(e()(),r.ub(0,0,null,null,1,"macro-item",[["class","macro-item"]],[[1,"data-index",0]],[[null,"save"],[null,"edit"],[null,"cancel"],[null,"delete"]],function(e,t,n){var r=!0,i=e.component;return"save"===t&&(r=!1!==i.saveAction(n,e.context.index)&&r),"edit"===t&&(r=!1!==i.editAction(e.context.index)&&r),"cancel"===t&&(r=!1!==i.cancelAction()&&r),"delete"===t&&(r=!1!==i.deleteAction(e.context.$implicit,e.context.index)&&r),r},Mb,Ab)),r.tb(1,638976,[[1,4]],0,Ob,[Wf],{macroAction:[0,"macroAction"],editable:[1,"editable"],deletable:[2,"deletable"],movable:[3,"movable"]},{save:"save",cancel:"cancel",edit:"edit",delete:"delete"})],function(e,t){e(t,1,0,t.context.$implicit,!0,!0,!0)},function(e,t){e(t,0,0,t.context.index)})}function Zm(e){return r.Qb(0,[(e()(),r.ub(0,0,null,null,1,"macro-item",[["class","macro-item"]],[[24,"@togglerNew",0]],[[null,"save"],[null,"cancel"]],function(e,t,n){var r=!0,i=e.component;return"save"===t&&(r=!1!==i.addNewAction(n)&&r),"cancel"===t&&(r=!1!==i.hideNewAction()&&r),r},Mb,Ab)),r.tb(1,638976,[[1,4]],0,Ob,[Wf],{macroAction:[0,"macroAction"],editable:[1,"editable"],deletable:[2,"deletable"],movable:[3,"movable"]},{save:"save",cancel:"cancel"})],function(e,t){e(t,1,0,t.component.newMacro,!0,!1,!1)},function(e,t){e(t,0,0,t.component.showNew?"active":"inactive")})}function Xm(e){return r.Qb(0,[r.Mb(671088640,1,{macroItems:1}),(e()(),r.ub(1,0,null,null,37,"div",[["class","row list-container"]],null,null,null,null,null)),(e()(),r.Ob(-1,null,["\n "])),(e()(),r.ub(3,0,null,null,34,"div",[["class","col-xs-10 col-xs-offset-1 list-group"]],null,null,null,null,null)),(e()(),r.Ob(-1,null,["\n "])),(e()(),r.jb(16777216,null,null,1,null,Jm)),r.tb(6,16384,null,0,ie,[r.P,r.M],{ngIf:[0,"ngIf"]},null),(e()(),r.Ob(-1,null,["\n "])),(e()(),r.ub(8,0,null,null,8,"div",[["class","macro-actions-container"]],null,[[null,"dragulaModelChange"]],function(e,t,n){var r=!0;return"dragulaModelChange"===t&&(r=!1!==(e.component.macro.macroActions=n)&&r),r},null,null)),r.tb(9,671744,null,0,zm,[r.k,$m],{dragula:[0,"dragula"],dragulaModel:[1,"dragulaModel"]},{dragulaModelChange:"dragulaModelChange"}),(e()(),r.Ob(-1,null,["\n "])),(e()(),r.jb(16777216,null,null,1,null,Ym)),r.tb(12,278528,null,0,ne,[r.P,r.M,r.t],{ngForOf:[0,"ngForOf"]},null),(e()(),r.Ob(-1,null,["\n\n "])),(e()(),r.jb(16777216,null,null,1,null,Zm)),r.tb(15,16384,null,0,ie,[r.P,r.M],{ngIf:[0,"ngIf"]},null),(e()(),r.Ob(-1,null,["\n "])),(e()(),r.Ob(-1,null,["\n "])),(e()(),r.ub(18,0,null,null,18,"div",[["class","list-group add-new__action-container"]],[[24,"@toggler",0]],null,null,null,null)),(e()(),r.Ob(-1,null,["\n "])),(e()(),r.ub(20,0,null,null,15,"div",[["class","list-group-item action--item add-new__action-item no-reorder clearfix"]],null,null,null,null,null)),(e()(),r.Ob(-1,null,["\n "])),(e()(),r.ub(22,0,null,null,6,"span",[["class","add-new__action-item--link"]],null,[[null,"click"]],function(e,t,n){var r=!0;return"click"===t&&(r=!1!==e.component.showNewAction()&&r),r},null,null)),(e()(),r.Ob(-1,null,["\n "])),(e()(),r.ub(24,0,null,null,3,"button",[["class","btn btn-link"],["type","button"]],null,null,null,null,null)),(e()(),r.Ob(-1,null,["\n "])),(e()(),r.ub(26,0,null,null,0,"i",[["class","fa fa-plus"]],null,null,null,null,null)),(e()(),r.Ob(-1,null,[" Add macro action\n "])),(e()(),r.Ob(-1,null,["\n "])),(e()(),r.Ob(-1,null,["\n "])),(e()(),r.ub(30,0,null,null,4,"span",[["class","add-new__action-item--link"]],null,null,null,null,null)),(e()(),r.Ob(-1,null,["\n "])),(e()(),r.ub(32,0,null,null,1,"capture-keystroke-button",[["captureText","Add captured keystroke"],["isLink","true"]],null,[[null,"capture"],[null,"keyup"],[null,"keydown"],[null,"focusout"]],function(e,t,n){var i=!0,o=e.component;return"keyup"===t&&(i=!1!==r.Gb(e,33).onKeyUp(n)&&i),"keydown"===t&&(i=!1!==r.Gb(e,33).onKeyDown(n)&&i),"focusout"===t&&(i=!1!==r.Gb(e,33).onFocusOut()&&i),"capture"===t&&(i=!1!==o.onKeysCapture(n)&&i),i},ay,oy)),r.tb(33,49152,null,0,iy,[Ud,L.m],{isLink:[0,"isLink"],captureText:[1,"captureText"]},{capture:"capture"}),(e()(),r.Ob(-1,null,["\n "])),(e()(),r.Ob(-1,null,["\n "])),(e()(),r.Ob(-1,null,["\n "])),(e()(),r.Ob(-1,null,["\n "])),(e()(),r.Ob(-1,null,["\n"])),(e()(),r.Ob(-1,null,["\n"]))],function(e,t){var n=t.component;e(t,6,0,!n.macroPlaybackSupported),e(t,9,0,"macroActions",n.macro.macroActions),e(t,12,0,n.macro.macroActions),e(t,15,0,n.showNew),e(t,33,0,"true","Add captured keystroke")},function(e,t){e(t,18,0,t.component.showNew?"inactive":"active")})}var eg=function(){function e(e,t){var n=this;this.store=e,this.route=t,this.routeSubscription=t.params.pipe(Object(sm.a)("id")).subscribe(function(t){return e.dispatch(new cl(+t))}),this.selectedMacroSubscription=e.select(Bu).subscribe(function(e){n.macro=e}),this.isNew="new"===this.route.snapshot.params.empty,this.macroPlaybackSupported$=this.store.select(Ea)}return e.prototype.ngOnDestroy=function(){this.selectedMacroSubscription.unsubscribe(),this.routeSubscription.unsubscribe()},e.prototype.addAction=function(e,t){this.store.dispatch(new pl({id:e,action:t}))},e.prototype.editAction=function(e,t,n){this.store.dispatch(new fl({id:e,index:t,action:n}))},e.prototype.deleteAction=function(e,t,n){this.store.dispatch(new dl({id:e,index:t,action:n}))},e.prototype.reorderAction=function(e,t,n){this.store.dispatch(new hl({id:e,oldIndex:t,newIndex:n}))},e}(),tg=r.sb({encapsulation:0,styles:[["[_nghost-%COMP%]{width:100%;height:100%;display:block}.not-found[_ngcontent-%COMP%]{margin-top:30px;font-size:16px;text-align:center}"]],data:{}});function ng(e){return r.Qb(0,[(e()(),r.Ob(-1,null,["\n "])),(e()(),r.ub(1,0,null,null,1,"macro-header",[],null,[["window","resize"]],function(e,t,n){var i=!0;return"window:resize"===t&&(i=!1!==r.Gb(e,2).windowResize()&&i),i},Lm,Rm)),r.tb(2,4767744,null,0,jm,[L.m,r.E],{macro:[0,"macro"],isNew:[1,"isNew"]},null),(e()(),r.Ob(-1,null,["\n "])),(e()(),r.ub(4,0,null,null,3,"macro-list",[],null,[[null,"add"],[null,"edit"],[null,"delete"],[null,"reorder"]],function(e,t,n){var r=!0,i=e.component;return"add"===t&&(r=!1!==i.addAction(n.macroId,n.action)&&r),"edit"===t&&(r=!1!==i.editAction(n.macroId,n.index,n.action)&&r),"delete"===t&&(r=!1!==i.deleteAction(n.macroId,n.index,n.action)&&r),"reorder"===t&&(r=!1!==i.reorderAction(n.macroId,n.oldIndex,n.newIndex)&&r),r},Xm,qm)),r.Lb(8704,null,$m,$m,[[2,Vm]]),r.tb(6,49152,null,0,Wm,[Wf,$m],{macro:[0,"macro"],macroPlaybackSupported:[1,"macroPlaybackSupported"]},{add:"add",edit:"edit",delete:"delete",reorder:"reorder"}),r.Ib(131072,ye,[r.h]),(e()(),r.Ob(-1,null,["\n"]))],function(e,t){var n=t.component;e(t,2,0,n.macro,n.isNew),e(t,6,0,n.macro,r.Pb(t,6,1,r.Gb(t,7).transform(n.macroPlaybackSupported$)))},null)}function rg(e){return r.Qb(0,[(e()(),r.ub(0,0,null,null,1,"div",[["class","not-found"]],null,null,null,null,null)),(e()(),r.Ob(1,null,["\n There is no macro with id ",".\n"]))],null,function(e,t){e(t,1,0,t.component.macroId)})}function ig(e){return r.Qb(0,[(e()(),r.jb(16777216,null,null,1,null,ng)),r.tb(1,16384,null,0,ie,[r.P,r.M],{ngIf:[0,"ngIf"]},null),(e()(),r.Ob(-1,null,["\n\n"])),(e()(),r.jb(16777216,null,null,1,null,rg)),r.tb(4,16384,null,0,ie,[r.P,r.M],{ngIf:[0,"ngIf"]},null),(e()(),r.Ob(-1,null,["\n"]))],function(e,t){var n=t.component;e(t,1,0,n.macro),e(t,4,0,!n.macro)},null)}function og(e){return r.Qb(0,[(e()(),r.ub(0,0,null,null,1,"macro-edit",[["class","container-fluid"]],null,null,null,ig,tg)),r.tb(1,180224,null,0,eg,[L.m,Gr],null,null)],null,null)}var lg=r.qb("macro-edit",eg,og,{},{},[]),ug=function(){return function(e){this.name$=e.params.pipe(Object(sm.a)("name"))}}(),ag=r.sb({encapsulation:0,styles:[["[_nghost-%COMP%]{width:100%;height:100%;display:block}"]],data:{}});function sg(e){return r.Qb(0,[(e()(),r.ub(0,0,null,null,10,"div",[["class","row"]],null,null,null,null,null)),(e()(),r.Ob(-1,null,["\n "])),(e()(),r.ub(2,0,null,null,7,"h1",[["class","col-xs-12 pane-title"]],null,null,null,null,null)),(e()(),r.Ob(-1,null,["\n "])),(e()(),r.ub(4,0,null,null,0,"i",[["class","fa fa-puzzle-piece"]],null,null,null,null,null)),(e()(),r.Ob(-1,null,["\n "])),(e()(),r.ub(6,0,null,null,2,"span",[["class","macro__name pane-title__name"]],null,null,null,null,null)),(e()(),r.Ob(7,null,["",""])),r.Ib(131072,ye,[r.h]),(e()(),r.Ob(-1,null,["\n "])),(e()(),r.Ob(-1,null,["\n"])),(e()(),r.Ob(-1,null,["\nTo be done..."]))],null,function(e,t){var n=t.component;e(t,7,0,r.Pb(t,7,0,r.Gb(t,8).transform(n.name$)))})}function cg(e){return r.Qb(0,[(e()(),r.ub(0,0,null,null,1,"add-on",[["class","container-fluid"]],null,null,null,sg,ag)),r.tb(1,49152,null,0,ug,[Gr],null,null)],null,null)}var pg=r.qb("add-on",ug,cg,{},{},[]),fg=function(){function e(){this.toggleCheckForUpdateOnStartUp=new r.m,this.checkForUpdate=new r.m}return e.prototype.emitCheckForUpdateOnStartUp=function(e){this.toggleCheckForUpdateOnStartUp.emit(e)},e.prototype.emitCheckForUpdate=function(e){this.checkForUpdate.emit(e.shiftKey)},e}(),dg=r.sb({encapsulation:2,styles:[],data:{}});function hg(e){return r.Qb(0,[(e()(),r.ub(0,0,null,null,0,"span",[["class","fa fa-spinner fa-spin"]],null,null,null,null,null))],null,null)}function yg(e){return r.Qb(2,[(e()(),r.ub(0,0,null,null,18,"div",[["class","row"]],null,null,null,null,null)),(e()(),r.Ob(-1,null,["\n "])),(e()(),r.ub(2,0,null,null,15,"div",[["class","col-xs-12"]],null,null,null,null,null)),(e()(),r.Ob(-1,null,["\n "])),(e()(),r.ub(4,0,null,null,6,"div",[["class","checkbox"]],null,null,null,null,null)),(e()(),r.Ob(-1,null,["\n "])),(e()(),r.ub(6,0,null,null,3,"label",[],null,null,null,null,null)),(e()(),r.Ob(-1,null,["\n "])),(e()(),r.ub(8,0,null,null,0,"input",[["type","checkbox"]],[[8,"checked",0]],[[null,"change"]],function(e,t,n){var r=!0;return"change"===t&&(r=!1!==e.component.emitCheckForUpdateOnStartUp(n.target.checked)&&r),r},null,null)),(e()(),r.Ob(-1,null,[" Automatically check for update on\n application start\n "])),(e()(),r.Ob(-1,null,["\n "])),(e()(),r.Ob(-1,null,["\n\n "])),(e()(),r.ub(12,0,null,null,4,"button",[["class","btn btn-link"]],null,[[null,"click"]],function(e,t,n){var r=!0;return"click"===t&&(r=!1!==e.component.emitCheckForUpdate(n)&&r),r},null,null)),(e()(),r.Ob(-1,null,["\n Check for update\n "])),(e()(),r.jb(16777216,null,null,1,null,hg)),r.tb(15,16384,null,0,ie,[r.P,r.M],{ngIf:[0,"ngIf"]},null),(e()(),r.Ob(-1,null,["\n "])),(e()(),r.Ob(-1,null,["\n "])),(e()(),r.Ob(-1,null,["\n"])),(e()(),r.Ob(-1,null,["\n"]))],function(e,t){e(t,15,0,t.component.checkingForUpdate)},function(e,t){e(t,8,0,t.component.settings.checkForUpdateOnStartUp)})}var bg=function(){function e(e){this.store=e,this.autoUpdateSettings$=e.select(aa),this.checkingForUpdate$=e.select(sa)}return e.prototype.toogleCheckForUpdateOnStartUp=function(e){this.store.dispatch(new ru(e))},e.prototype.checkForUpdate=function(e){this.store.dispatch(new iu(e))},e}(),mg=r.sb({encapsulation:0,styles:[["[_nghost-%COMP%]{width:100%;height:100%;display:block}"]],data:{}});function gg(e){return r.Qb(0,[(e()(),r.ub(0,0,null,null,9,"div",[["class","row"]],null,null,null,null,null)),(e()(),r.Ob(-1,null,["\n "])),(e()(),r.ub(2,0,null,null,6,"h1",[["class","col-xs-12 pane-title"]],null,null,null,null,null)),(e()(),r.Ob(-1,null,["\n "])),(e()(),r.ub(4,0,null,null,0,"i",[["class","fa fa-gear"]],null,null,null,null,null)),(e()(),r.Ob(-1,null,["\n "])),(e()(),r.ub(6,0,null,null,1,"span",[["class","macro__name pane-title__name"]],null,null,null,null,null)),(e()(),r.Ob(-1,null,["Settings"])),(e()(),r.Ob(-1,null,["\n "])),(e()(),r.Ob(-1,null,["\n"])),(e()(),r.Ob(-1,null,["\n"])),(e()(),r.ub(11,0,null,null,4,"auto-update-settings",[],null,[[null,"toggleCheckForUpdateOnStartUp"],[null,"checkForUpdate"]],function(e,t,n){var r=!0,i=e.component;return"toggleCheckForUpdateOnStartUp"===t&&(r=!1!==i.toogleCheckForUpdateOnStartUp(n)&&r),"checkForUpdate"===t&&(r=!1!==i.checkForUpdate(n)&&r),r},yg,dg)),r.tb(12,49152,null,0,fg,[],{settings:[0,"settings"],checkingForUpdate:[1,"checkingForUpdate"]},{toggleCheckForUpdateOnStartUp:"toggleCheckForUpdateOnStartUp",checkForUpdate:"checkForUpdate"}),r.Ib(131072,ye,[r.h]),r.Ib(131072,ye,[r.h]),(e()(),r.Ob(-1,null,["\n"])),(e()(),r.Ob(-1,null,["\n"]))],function(e,t){var n=t.component;e(t,12,0,r.Pb(t,12,0,r.Gb(t,13).transform(n.autoUpdateSettings$)),r.Pb(t,12,1,r.Gb(t,14).transform(n.checkingForUpdate$)))},null)}function vg(e){return r.Qb(0,[(e()(),r.ub(0,0,null,null,1,"settings",[["class","container-fluid"]],null,null,null,gg,mg)),r.tb(1,49152,null,0,bg,[L.m],null,null)],null,null)}var kg=r.qb("settings",bg,vg,{},{},[]),_g=function(){return function(){}}(),wg=r.sb({encapsulation:0,styles:[["[_nghost-%COMP%]{width:100%;height:100%;display:block}"]],data:{}});function Og(e){return r.Qb(2,[(e()(),r.ub(0,0,null,null,9,"div",[["class","row"]],null,null,null,null,null)),(e()(),r.Ob(-1,null,["\n "])),(e()(),r.ub(2,0,null,null,6,"h1",[["class","col-xs-12 pane-title"]],null,null,null,null,null)),(e()(),r.Ob(-1,null,["\n "])),(e()(),r.ub(4,0,null,null,0,"i",[["class","fa fa-question-circle"]],null,null,null,null,null)),(e()(),r.Ob(-1,null,["\n "])),(e()(),r.ub(6,0,null,null,1,"span",[["class","macro__name pane-title__name"]],null,null,null,null,null)),(e()(),r.Ob(-1,null,["Help"])),(e()(),r.Ob(-1,null,["\n "])),(e()(),r.Ob(-1,null,["\n"])),(e()(),r.Ob(-1,null,["\n\n"])),(e()(),r.ub(11,0,null,null,8,"div",[["class","row"]],null,null,null,null,null)),(e()(),r.Ob(-1,null,["\n "])),(e()(),r.ub(13,0,null,null,5,"div",[["class","col-xs-12"]],null,null,null,null,null)),(e()(),r.Ob(-1,null,["\n Any questions? Try searching our "])),(e()(),r.ub(15,0,null,null,2,"a",[["externalUrl",""],["href","https://ultimatehackingkeyboard.com/knowledgebase"]],null,[[null,"click"],[null,"auxclick"]],function(e,t,n){var i=!0;return"click"===t&&(i=!1!==r.Gb(e,16).onClick(n)&&i),"auxclick"===t&&(i=!1!==r.Gb(e,16).onAuxClick(n)&&i),i},null,null)),r.tb(16,16384,null,0,Wp,[r.k,L.m],null,null),(e()(),r.Ob(-1,null,["knowledgebase"])),(e()(),r.Ob(-1,null,["!\n "])),(e()(),r.Ob(-1,null,["\n"])),(e()(),r.Ob(-1,null,["\n\n"])),(e()(),r.ub(21,0,null,null,35,"div",[["class","row"]],null,null,null,null,null)),(e()(),r.Ob(-1,null,["\n "])),(e()(),r.ub(23,0,null,null,32,"div",[["class","col-xs-12"]],null,null,null,null,null)),(e()(),r.Ob(-1,null,["\n "])),(e()(),r.ub(25,0,null,null,1,"h3",[],null,null,null,null,null)),(e()(),r.Ob(-1,null,["Keyboard shortcuts"])),(e()(),r.Ob(-1,null,["\n "])),(e()(),r.ub(28,0,null,null,26,"ul",[],null,null,null,null,null)),(e()(),r.Ob(-1,null,["\n "])),(e()(),r.ub(30,0,null,null,6,"li",[],null,null,null,null,null)),(e()(),r.ub(31,0,null,null,1,"kbd",[],null,null,null,null,null)),(e()(),r.Ob(-1,null,["Ctrl"])),(e()(),r.Ob(-1,null,[" + "])),(e()(),r.ub(34,0,null,null,1,"kbd",[],null,null,null,null,null)),(e()(),r.Ob(-1,null,["Enter"])),(e()(),r.Ob(-1,null,[": Remap key"])),(e()(),r.Ob(-1,null,["\n "])),(e()(),r.ub(38,0,null,null,6,"li",[],null,null,null,null,null)),(e()(),r.ub(39,0,null,null,1,"kbd",[],null,null,null,null,null)),(e()(),r.Ob(-1,null,["Ctrl"])),(e()(),r.Ob(-1,null,[" + "])),(e()(),r.ub(42,0,null,null,1,"kbd",[],null,null,null,null,null)),(e()(),r.Ob(-1,null,["S"])),(e()(),r.Ob(-1,null,[": Save to keyboard"])),(e()(),r.Ob(-1,null,["\n "])),(e()(),r.ub(46,0,null,null,1,"li",[],null,null,null,null,null)),(e()(),r.Ob(-1,null,["Right click on a key: Capture key"])),(e()(),r.Ob(-1,null,["\n "])),(e()(),r.ub(49,0,null,null,1,"li",[],null,null,null,null,null)),(e()(),r.Ob(-1,null,["Hold Shift while clicking on a key: Remap on all keymaps"])),(e()(),r.Ob(-1,null,["\n "])),(e()(),r.ub(52,0,null,null,1,"li",[],null,null,null,null,null)),(e()(),r.Ob(-1,null,["Hold Alt while clicking on a key: Remap on all layers"])),(e()(),r.Ob(-1,null,["\n "])),(e()(),r.Ob(-1,null,["\n "])),(e()(),r.Ob(-1,null,["\n"])),(e()(),r.Ob(-1,null,["\n"]))],null,null)}function Ag(e){return r.Qb(0,[(e()(),r.ub(0,0,null,null,1,"help-page",[["class","container-fluid"]],null,null,null,Og,wg)),r.tb(1,49152,null,0,_g,[],null,null)],null,null)}var Cg=r.qb("help-page",_g,Ag,{},{},[]),Tg=function(){function e(e){this.store=e}return Object.defineProperty(e.prototype,"name",{get:function(){return this.contributor.login},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"avatarUrl",{get:function(){return this.contributor.avatar_url},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"profileUrl",{get:function(){return this.contributor.html_url},enumerable:!0,configurable:!0}),e.prototype.ngAfterViewInit=function(){this.badge.nativeElement.src=URL.createObjectURL(this.contributor.avatar)},e}(),xg=r.sb({encapsulation:0,styles:[["[_nghost-%COMP%] img[_ngcontent-%COMP%]{width:36px;height:36px;border-radius:3px;margin-right:5px}"]],data:{}});function Sg(e){return r.Qb(0,[r.Mb(671088640,1,{badge:0}),(e()(),r.ub(1,0,[[1,0],["badge",1]],null,0,"img",[],[[8,"alt",0]],null,null,null,null)),(e()(),r.Ob(-1,null,["\n"])),(e()(),r.ub(3,0,null,null,2,"a",[["externalUrl",""]],[[8,"href",4]],[[null,"click"],[null,"auxclick"]],function(e,t,n){var i=!0;return"click"===t&&(i=!1!==r.Gb(e,4).onClick(n)&&i),"auxclick"===t&&(i=!1!==r.Gb(e,4).onAuxClick(n)&&i),i},null,null)),r.tb(4,16384,null,0,Wp,[r.k,L.m],null,null),(e()(),r.Ob(5,null,["",""])),(e()(),r.Ob(-1,null,["\n"]))],null,function(e,t){var n=t.component;e(t,1,0,r.yb(1,"",n.name," on GitHub")),e(t,3,0,n.profileUrl),e(t,5,0,n.name)})}var Mg=function(){function e(e){this.store=e,this.version=jl().version,this.agentGithubUrl=$o.Constants.AGENT_GITHUB_URL,this.agentContributorsUrl=$o.Constants.AGENT_CONTRIBUTORS_GITHUB_PAGE_URL}return e.prototype.ngOnInit=function(){this.state$=this.store.select(na),this.store.dispatch(new Jl)},e}(),Eg=r.sb({encapsulation:0,styles:[["[_nghost-%COMP%]{overflow-y:auto;display:block;height:100%;width:100%}.link-github[_ngcontent-%COMP%]{cursor:pointer}contributor-badge[_ngcontent-%COMP%]{display:block;margin:.5em auto;min-width:12em}"]],data:{}});function Pg(e){return r.Qb(0,[(e()(),r.ub(0,0,null,null,1,"contributor-badge",[["class","col-xs-2 text-left"]],null,null,null,Sg,xg)),r.tb(1,4243456,null,0,Tg,[L.m],{contributor:[0,"contributor"]},null)],function(e,t){e(t,1,0,t.context.$implicit)},null)}function Ig(e){return r.Qb(0,[(e()(),r.ub(0,0,null,null,10,"div",[],null,null,null,null,null)),(e()(),r.Ob(-1,null,["\n "])),(e()(),r.ub(2,0,null,null,7,"div",[["class","form-group row"]],null,null,null,null,null)),(e()(),r.Ob(-1,null,["\n "])),(e()(),r.ub(4,0,null,null,4,"div",[["class","col-xs-8 col-xs-offset-2"]],null,null,null,null,null)),(e()(),r.Ob(-1,null,["\n "])),(e()(),r.jb(16777216,null,null,1,null,Pg)),r.tb(7,278528,null,0,ne,[r.P,r.M,r.t],{ngForOf:[0,"ngForOf"]},null),(e()(),r.Ob(-1,null,["\n "])),(e()(),r.Ob(-1,null,["\n "])),(e()(),r.Ob(-1,null,["\n "]))],function(e,t){e(t,7,0,t.parent.context.ngIf.contributors)},null)}function jg(e){return r.Qb(0,[(e()(),r.Ob(-1,null,["\n "])),(e()(),r.ub(1,0,null,null,1,"div",[["class","form-group"]],null,null,null,null,null)),(e()(),r.Ob(-1,null,["\n Loading...\n "])),(e()(),r.Ob(-1,null,["\n "]))],null,null)}function Rg(e){return r.Qb(0,[(e()(),r.ub(0,0,null,null,1,"div",[["class","form-group"]],null,null,null,null,null)),(e()(),r.Ob(-1,null,["\n Loading...\n "]))],null,null)}function Lg(e){return r.Qb(0,[(e()(),r.ub(0,0,null,null,5,"div",[["class","form-group"]],null,null,null,null,null)),(e()(),r.Ob(-1,null,["\n We experienced a problem while fetching contributor list. "])),(e()(),r.ub(2,0,null,null,2,"a",[["externalUrl",""]],[[8,"href",4]],[[null,"click"],[null,"auxclick"]],function(e,t,n){var i=!0;return"click"===t&&(i=!1!==r.Gb(e,3).onClick(n)&&i),"auxclick"===t&&(i=!1!==r.Gb(e,3).onAuxClick(n)&&i),i},null,null)),r.tb(3,16384,null,0,Wp,[r.k,L.m],null,null),(e()(),r.Ob(-1,null,["Check Contributors page on GitHub!"])),(e()(),r.Ob(-1,null,["\n "]))],null,function(e,t){e(t,2,0,t.component.agentContributorsUrl)})}function Ng(e){return r.Qb(0,[(e()(),r.Ob(-1,null,["\n "])),(e()(),r.jb(16777216,null,null,1,null,Rg)),r.tb(2,16384,null,0,ie,[r.P,r.M],{ngIf:[0,"ngIf"]},null),(e()(),r.Ob(-1,null,["\n "])),(e()(),r.jb(16777216,null,null,1,null,Lg)),r.tb(5,16384,null,0,ie,[r.P,r.M],{ngIf:[0,"ngIf"]},null),(e()(),r.Ob(-1,null,["\n "]))],function(e,t){e(t,2,0,!t.parent.context.ngIf.error),e(t,5,0,t.parent.context.ngIf.error)},null)}function Dg(e){return r.Qb(0,[(e()(),r.ub(0,0,null,null,11,null,null,null,null,null,null,null)),(e()(),r.Ob(-1,null,["\n "])),(e()(),r.ub(2,0,null,null,1,"div",[["class","form-group"]],null,null,null,null,null)),(e()(),r.Ob(-1,null,["\n Created by Ultimate Gadget Laboratories and its awesome contributors:\n "])),(e()(),r.Ob(-1,null,["\n "])),(e()(),r.jb(16777216,null,null,1,null,Ig)),r.tb(6,16384,null,0,ie,[r.P,r.M],{ngIf:[0,"ngIf"],ngIfElse:[1,"ngIfElse"]},null),(e()(),r.Ob(-1,null,["\n "])),(e()(),r.jb(0,[["loading",2]],null,0,null,jg)),(e()(),r.Ob(-1,null,["\n "])),(e()(),r.jb(0,[["loading",2]],null,0,null,Ng)),(e()(),r.Ob(-1,null,["\n "]))],function(e,t){e(t,6,0,!t.context.ngIf.isLoading&&!t.context.ngIf.error,r.Gb(t,10))},null)}function Ug(e){return r.Qb(0,[(e()(),r.ub(0,0,null,null,6,"div",[["class","row"]],null,null,null,null,null)),(e()(),r.Ob(-1,null,["\n "])),(e()(),r.ub(2,0,null,null,3,"h1",[["class","col-xs-12 text-center"]],null,null,null,null,null)),(e()(),r.Ob(-1,null,["\n "])),(e()(),r.ub(4,0,null,null,0,"i",[["class","uhk-icon wide uhk-icon-full-agent-icon"]],null,null,null,null,null)),(e()(),r.Ob(-1,null,["\n "])),(e()(),r.Ob(-1,null,["\n"])),(e()(),r.Ob(-1,null,["\n"])),(e()(),r.ub(8,0,null,null,27,"div",[],null,null,null,null,null)),(e()(),r.Ob(-1,null,["\n "])),(e()(),r.ub(10,0,null,null,24,"div",[["class","col-xs-12 text-center"]],null,null,null,null,null)),(e()(),r.Ob(-1,null,["\n "])),(e()(),r.ub(12,0,null,null,1,"div",[["class","form-group"]],null,null,null,null,null)),(e()(),r.Ob(-1,null,["\n The configurator of the Ultimate Hacking Keyboard\n "])),(e()(),r.Ob(-1,null,["\n "])),(e()(),r.ub(15,0,null,null,11,"div",[["class","form-group"]],null,null,null,null,null)),(e()(),r.Ob(-1,null,["\n "])),(e()(),r.ub(17,0,null,null,4,"div",[],null,null,null,null,null)),(e()(),r.Ob(-1,null,["\n Agent version: "])),(e()(),r.ub(19,0,null,null,1,"span",[["class","text-bold"]],null,null,null,null,null)),(e()(),r.Ob(20,null,["",""])),(e()(),r.Ob(-1,null,["\n "])),(e()(),r.Ob(-1,null,["\n "])),(e()(),r.ub(23,0,null,null,2,"a",[["class","link-github"],["externalUrl",""]],[[8,"href",4]],[[null,"click"],[null,"auxclick"]],function(e,t,n){var i=!0;return"click"===t&&(i=!1!==r.Gb(e,24).onClick(n)&&i),"auxclick"===t&&(i=!1!==r.Gb(e,24).onAuxClick(n)&&i),i},null,null)),r.tb(24,16384,null,0,Wp,[r.k,L.m],null,null),(e()(),r.Ob(-1,null,["Agent on GitHub"])),(e()(),r.Ob(-1,null,["\n "])),(e()(),r.Ob(-1,null,["\n "])),(e()(),r.jb(16777216,null,null,2,null,Dg)),r.tb(29,16384,null,0,ie,[r.P,r.M],{ngIf:[0,"ngIf"]},null),r.Ib(131072,ye,[r.h]),(e()(),r.Ob(-1,null,["\n "])),(e()(),r.ub(32,0,null,null,1,"div",[["class","form-group"]],null,null,null,null,null)),(e()(),r.Ob(-1,null,["May the UHK be with you!"])),(e()(),r.Ob(-1,null,["\n "])),(e()(),r.Ob(-1,null,["\n"])),(e()(),r.Ob(-1,null,["\n"]))],function(e,t){var n=t.component;e(t,29,0,r.Pb(t,29,0,r.Gb(t,30).transform(n.state$)))},function(e,t){var n=t.component;e(t,20,0,n.version),e(t,23,0,n.agentGithubUrl)})}function Fg(e){return r.Qb(0,[(e()(),r.ub(0,0,null,null,1,"about-page",[["class","container-fluid"]],null,null,null,Ug,Eg)),r.tb(1,114688,null,0,Mg,[L.m],null,null)],function(e,t){e(t,1,0)},null)}var Kg=r.qb("about-page",Mg,Fg,{},{},[]),Bg=function(){return function(){this.updateApp=new r.m,this.doNotUpdateApp=new r.m}}(),Vg=r.sb({encapsulation:0,styles:[[".app-update-available-wrapper[_ngcontent-%COMP%]{margin:0;padding-top:5px;padding-bottom:5px;background-color:#428bca;color:#fff;text-align:center;border-radius:0;border-width:0}.app-update-available-wrapper[_ngcontent-%COMP%] .btn-link[_ngcontent-%COMP%]{color:#fff}.app-update-available-wrapper[_ngcontent-%COMP%] .btn-link.underline[_ngcontent-%COMP%]{text-decoration:underline}"]],data:{}});function Gg(e){return r.Qb(0,[(e()(),r.ub(0,0,null,null,1,"span",[],null,null,null,null,null)),(e()(),r.Ob(-1,null,["pre-"]))],null,null)}function Hg(e){return r.Qb(2,[(e()(),r.ub(0,0,null,null,13,"div",[["class","app-update-available-wrapper"],["role","alert"]],null,null,null,null,null)),(e()(),r.Ob(1,null,["\n Agent "," has been "])),(e()(),r.jb(16777216,null,null,1,null,Gg)),r.tb(3,16384,null,0,ie,[r.P,r.M],{ngIf:[0,"ngIf"]},null),(e()(),r.Ob(-1,null,["released.\n\n "])),(e()(),r.ub(5,0,null,null,1,"button",[["class","btn btn-link underline"],["type","button"]],null,[[null,"click"]],function(e,t,n){var r=!0;return"click"===t&&(r=!1!==e.component.updateApp.emit()&&r),r},null,null)),(e()(),r.Ob(-1,null,["Update now!"])),(e()(),r.Ob(-1,null,["\n\n "])),(e()(),r.ub(8,0,null,null,4,"button",[["aria-label","Close"],["class","btn btn-link pull-right"],["data-dismiss","alert"],["type","button"]],null,[[null,"click"]],function(e,t,n){var r=!0;return"click"===t&&(r=!1!==e.component.doNotUpdateApp.emit()&&r),r},null,null)),(e()(),r.Ob(-1,null,["\n "])),(e()(),r.ub(10,0,null,null,1,"span",[["aria-hidden","true"]],null,null,null,null,null)),(e()(),r.Ob(-1,null,["\xd7"])),(e()(),r.Ob(-1,null,["\n "])),(e()(),r.Ob(-1,null,["\n"])),(e()(),r.Ob(-1,null,["\n"]))],function(e,t){e(t,3,0,t.component.updateInfo.isPrerelease)},function(e,t){e(t,1,0,t.component.updateInfo.version)})}var $g=function(e){},zg=function(){function e(e,t){this._cdRef=e,this._renderer=t,this.maxParentWidthPercent=1,this._onChanged=$g,this._onTouched=$g}return Object.defineProperty(e.prototype,"model",{get:function(){return this._model},set:function(e){this._model!==e&&(this._model=e)},enumerable:!0,configurable:!0}),e.prototype.registerOnChange=function(e){this._onChanged=e},e.prototype.registerOnTouched=function(e){this._onTouched=e},e.prototype.setDisabledState=function(e){this.disabled!==e&&(this.disabled=e,this._cdRef.markForCheck())},e.prototype.windowResize=function(){this.calculateTextWidth(this._model)},e.prototype.writeValue=function(e){this.model!==e&&(this._model=e,this._originalModel=e,this.calculateTextWidth(this._model),this._cdRef.markForCheck())},e.prototype.focus=function(){this._onTouched(this)},e.prototype.blur=function(){if(!El(this._model)||this._model.trim()===this._originalModel)return this._model=this._originalModel,this.calculateTextWidth(this._model),void this._cdRef.markForCheck();this._originalModel=this._model,this._onChanged(this._model)},e.prototype.keyEnter=function(e){e.target.blur()},e.prototype.calculateTextWidth=function(e){var t=this.inputControl.nativeElement,n=t.parentElement.parentElement.offsetWidth*this.maxParentWidthPercent,r=Sl(window.getComputedStyle(t),e);this._renderer.setStyle(t,"width",Math.min(n,r)+"px")},e}(),Qg=r.sb({encapsulation:2,styles:[],data:{}});function Wg(e){return r.Qb(2,[r.Mb(402653184,1,{inputControl:0}),(e()(),r.ub(1,0,[[1,0],["inputControl",1]],null,6,"input",[["cancelable",""],["type","text"]],[[8,"className",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]],[[null,"ngModelChange"],[null,"blur"],[null,"focus"],[null,"keyup.enter"],[null,"keyup"],[null,"input"],[null,"compositionstart"],[null,"compositionend"],[null,"keyup.escape"]],function(e,t,n){var i=!0,o=e.component;return"input"===t&&(i=!1!==r.Gb(e,2)._handleInput(n.target.value)&&i),"blur"===t&&(i=!1!==r.Gb(e,2).onTouched()&&i),"compositionstart"===t&&(i=!1!==r.Gb(e,2)._compositionStart()&&i),"compositionend"===t&&(i=!1!==r.Gb(e,2)._compositionEnd(n.target.value)&&i),"focus"===t&&(i=!1!==r.Gb(e,7).onFocus()&&i),"keyup.escape"===t&&(i=!1!==r.Gb(e,7).onEscape()&&i),"ngModelChange"===t&&(i=!1!==(o.model=n)&&i),"blur"===t&&(i=!1!==o.blur()&&i),"focus"===t&&(i=!1!==o.focus()&&i),"keyup.enter"===t&&(i=!1!==o.keyEnter(n)&&i),"keyup"===t&&(i=!1!==o.calculateTextWidth(n.target.value)&&i),i},null,null)),r.tb(2,16384,null,0,Cc,[r.E,r.k,[2,Ac]],null,null),r.Lb(1024,null,wc,function(e){return[e]},[Cc]),r.tb(4,671744,null,0,_p,[[8,null],[8,null],[8,null],[6,wc]],{isDisabled:[0,"isDisabled"],model:[1,"model"]},{update:"ngModelChange"}),r.Lb(2048,null,Mc,null,[_p]),r.tb(6,16384,null,0,Pc,[[4,Mc]],null,null),r.tb(7,16384,null,0,_f,[r.k,r.E],null,null),(e()(),r.Ob(-1,null,["\n"]))],function(e,t){var n=t.component;e(t,4,0,n.disabled,n.model)},function(e,t){e(t,1,0,t.component.css,r.Gb(t,6).ngClassUntouched,r.Gb(t,6).ngClassTouched,r.Gb(t,6).ngClassPristine,r.Gb(t,6).ngClassDirty,r.Gb(t,6).ngClassValid,r.Gb(t,6).ngClassInvalid,r.Gb(t,6).ngClassPending)})}var qg=function(){function e(e,t,n){this.store=e,this.renderer=t,this.cdRef=n,this.animation={device:"active",configuration:"active",keymap:"active",macro:"active",addon:"active"}}return e.prototype.ngOnInit=function(){var e=this;this.stateSubscription=this.store.select(Sa).subscribe(function(t){e.state=t,e.cdRef.markForCheck()})},e.prototype.ngOnDestroy=function(){this.stateSubscription&&this.stateSubscription.unsubscribe()},e.prototype.toggleHide=function(e,t){if(!this.state.updatingFirmware){var n=!1;e.target.classList.contains("fa-chevron-down")?(n=!0,this.animation[t]="active"):this.animation[t]="inactive",n?(this.renderer.addClass(e.target,"fa-chevron-up"),this.renderer.removeClass(e.target,"fa-chevron-down")):(this.renderer.removeClass(e.target,"fa-chevron-up"),this.renderer.addClass(e.target,"fa-chevron-down"))}},e.prototype.addMacro=function(){this.store.dispatch(new ul)},e.prototype.editDeviceName=function(e){this.store.dispatch(new Ol(e))},e}(),Jg=r.sb({encapsulation:0,styles:[["[_nghost-%COMP%]{background-color:#f5f5f5;border-right:1px solid #ccc;position:fixed;overflow-y:auto;top:0;width:250px;height:100%;transition-timing-function:ease-out;transition:.5s;margin-top:0}.update-panel-visible[_nghost-%COMP%]{transition-timing-function:ease-in;transition:.5s;margin-top:45px}a[_ngcontent-%COMP%]{color:#333}a.disabled[_ngcontent-%COMP%]{opacity:.65}ul[_ngcontent-%COMP%]{padding:0;margin:0}ul[_ngcontent-%COMP%] li[_ngcontent-%COMP%]{list-style:none;padding:0}ul[_ngcontent-%COMP%] ul[_ngcontent-%COMP%]{overflow:hidden}.sidebar__level-0[_ngcontent-%COMP%]{padding:.5rem 1rem 0}.sidebar__level-1[_ngcontent-%COMP%]{padding:.5rem 1rem .5rem 2rem}.sidebar__level-0[_ngcontent-%COMP%], .sidebar__level-1[_ngcontent-%COMP%]{font-size:2rem;line-height:3rem;cursor:default}.sidebar__level-0[_ngcontent-%COMP%]:hover .fa-chevron-down[_ngcontent-%COMP%], .sidebar__level-0[_ngcontent-%COMP%]:hover .fa-chevron-up[_ngcontent-%COMP%], .sidebar__level-1[_ngcontent-%COMP%]:hover .fa-chevron-down[_ngcontent-%COMP%], .sidebar__level-1[_ngcontent-%COMP%]:hover .fa-chevron-up[_ngcontent-%COMP%]{display:inline-block}.sidebar__level-0--item[_ngcontent-%COMP%], .sidebar__level-1--item[_ngcontent-%COMP%]{margin-top:0}.sidebar__level-0--item[_ngcontent-%COMP%]:nth-child(1), .sidebar__level-1--item[_ngcontent-%COMP%]:nth-child(1){margin:0}.sidebar__level-0[_ngcontent-%COMP%] .fa-chevron-down[_ngcontent-%COMP%], .sidebar__level-0[_ngcontent-%COMP%] .fa-chevron-up[_ngcontent-%COMP%], .sidebar__level-1[_ngcontent-%COMP%] .fa-chevron-down[_ngcontent-%COMP%], .sidebar__level-1[_ngcontent-%COMP%] .fa-chevron-up[_ngcontent-%COMP%]{margin-right:1rem;font-size:1.5rem;position:relative;top:.5rem;display:none;cursor:pointer}.sidebar__level-0[_ngcontent-%COMP%] .uhk-icon-agent-icon[_ngcontent-%COMP%], .sidebar__level-1[_ngcontent-%COMP%] .uhk-icon-agent-icon[_ngcontent-%COMP%]{margin-left:-3px}.sidebar__level-2--item[_ngcontent-%COMP%]{padding:0 20px 0 0;position:relative}.sidebar__level-2--item.active[_ngcontent-%COMP%]{background-color:#555;color:#fff}.sidebar__level-2--item.active[_ngcontent-%COMP%] .fa-star[_ngcontent-%COMP%]{color:#fff}.sidebar__level-2--item.active[_ngcontent-%COMP%]:hover{background-color:#555}.sidebar__level-2--item[_ngcontent-%COMP%]:hover{cursor:pointer}.sidebar__level-2--item[_ngcontent-%COMP%] .fa.pull-right[_ngcontent-%COMP%]{position:relative;top:2px}.sidebar__level-2--item[_ngcontent-%COMP%] .fa-star[_ngcontent-%COMP%]{color:#666}.sidebar__level-2--item[_ngcontent-%COMP%] a[_ngcontent-%COMP%]{display:block;width:100%;padding:0 15px 0 30px}.sidebar__level-2--item[_ngcontent-%COMP%] a[_ngcontent-%COMP%]:focus, .sidebar__level-2--item[_ngcontent-%COMP%] a[_ngcontent-%COMP%]:hover{text-decoration:none}.sidebar__level-2--item[_ngcontent-%COMP%] a.disabled[_ngcontent-%COMP%]{opacity:.65}.sidebar__level-0[_ngcontent-%COMP%]:hover, .sidebar__level-1[_ngcontent-%COMP%]:hover, .sidebar__level-2[_ngcontent-%COMP%]:hover{background-color:rgba(0,0,0,.05)}.sidebar__level-0.active[_ngcontent-%COMP%], .sidebar__level-1.active[_ngcontent-%COMP%], .sidebar__level-2.active[_ngcontent-%COMP%]{background-color:rgba(0,0,0,.18)}.sidebar__fav[_ngcontent-%COMP%]{position:absolute;right:19px;top:3px}.menu--bottom[_ngcontent-%COMP%]{position:absolute;bottom:0;left:0;width:100%}.menu--bottom[_ngcontent-%COMP%] .sidebar__level-1[_ngcontent-%COMP%]{display:block;padding:1rem;cursor:pointer}.menu--bottom[_ngcontent-%COMP%] .sidebar__level-1[_ngcontent-%COMP%]:hover{text-decoration:none}"]],data:{animation:[{type:7,name:"toggler",definitions:[{type:0,name:"inactive",styles:{type:6,styles:{height:"0px"},offset:null},options:void 0},{type:0,name:"active",styles:{type:6,styles:{height:"*"},offset:null},options:void 0},{type:1,expr:"inactive <=> active",animation:{type:4,styles:null,timings:"500ms ease-out"},options:null}],options:{}}]}});function Yg(e){return r.Qb(0,[(e()(),r.ub(0,0,null,null,13,"li",[["class","sidebar__level-2--item"]],null,null,null,null,null)),(e()(),r.Ob(-1,null,["\n "])),(e()(),r.ub(2,0,null,null,10,"div",[["class","sidebar__level-2"]],null,null,null,null,null)),r.tb(3,1720320,null,2,ro,[Xi,r.k,r.E,[2,eo],[2,to]],{routerLinkActive:[0,"routerLinkActive"]},null),r.Mb(603979776,1,{links:1}),r.Mb(603979776,2,{linksWithHrefs:1}),r.Hb(6,1),(e()(),r.Ob(-1,null,["\n "])),(e()(),r.ub(8,0,null,null,3,"a",[],[[2,"disabled",null],[1,"target",0],[8,"href",4]],[[null,"click"]],function(e,t,n){var i=!0;return"click"===t&&(i=!1!==r.Gb(e,9).onClick(n.button,n.ctrlKey,n.metaKey,n.shiftKey)&&i),i},null,null)),r.tb(9,671744,[[2,4]],0,to,[Xi,Gr,F],{routerLink:[0,"routerLink"]},null),r.Hb(10,1),(e()(),r.Ob(-1,null,["Mouse speed"])),(e()(),r.Ob(-1,null,["\n "])),(e()(),r.Ob(-1,null,["\n "]))],function(e,t){var n=e(t,6,0,"active");e(t,3,0,n);var r=e(t,10,0,"/device/mouse-speed");e(t,9,0,r)},function(e,t){e(t,8,0,t.component.state.updatingFirmware,r.Gb(t,9).target,r.Gb(t,9).href)})}function Zg(e){return r.Qb(0,[(e()(),r.ub(0,0,null,null,13,"li",[["class","sidebar__level-2--item"]],null,null,null,null,null)),(e()(),r.Ob(-1,null,["\n "])),(e()(),r.ub(2,0,null,null,10,"div",[["class","sidebar__level-2"]],null,null,null,null,null)),r.tb(3,1720320,null,2,ro,[Xi,r.k,r.E,[2,eo],[2,to]],{routerLinkActive:[0,"routerLinkActive"]},null),r.Mb(603979776,3,{links:1}),r.Mb(603979776,4,{linksWithHrefs:1}),r.Hb(6,1),(e()(),r.Ob(-1,null,["\n "])),(e()(),r.ub(8,0,null,null,3,"a",[],[[2,"disabled",null],[1,"target",0],[8,"href",4]],[[null,"click"]],function(e,t,n){var i=!0;return"click"===t&&(i=!1!==r.Gb(e,9).onClick(n.button,n.ctrlKey,n.metaKey,n.shiftKey)&&i),i},null,null)),r.tb(9,671744,[[4,4]],0,to,[Xi,Gr,F],{routerLink:[0,"routerLink"]},null),r.Hb(10,1),(e()(),r.Ob(-1,null,["LED brightness"])),(e()(),r.Ob(-1,null,["\n "])),(e()(),r.Ob(-1,null,["\n "]))],function(e,t){var n=e(t,6,0,"active");e(t,3,0,n);var r=e(t,10,0,"/device/led-brightness");e(t,9,0,r)},function(e,t){e(t,8,0,t.component.state.updatingFirmware,r.Gb(t,9).target,r.Gb(t,9).href)})}function Xg(e){return r.Qb(0,[(e()(),r.ub(0,0,null,null,13,"li",[["class","sidebar__level-2--item"]],null,null,null,null,null)),(e()(),r.Ob(-1,null,["\n "])),(e()(),r.ub(2,0,null,null,10,"div",[["class","sidebar__level-2"]],null,null,null,null,null)),r.tb(3,1720320,null,2,ro,[Xi,r.k,r.E,[2,eo],[2,to]],{routerLinkActive:[0,"routerLinkActive"]},null),r.Mb(603979776,5,{links:1}),r.Mb(603979776,6,{linksWithHrefs:1}),r.Hb(6,1),(e()(),r.Ob(-1,null,["\n "])),(e()(),r.ub(8,0,null,null,3,"a",[],[[2,"disabled",null],[1,"target",0],[8,"href",4]],[[null,"click"]],function(e,t,n){var i=!0;return"click"===t&&(i=!1!==r.Gb(e,9).onClick(n.button,n.ctrlKey,n.metaKey,n.shiftKey)&&i),i},null,null)),r.tb(9,671744,[[6,4]],0,to,[Xi,Gr,F],{routerLink:[0,"routerLink"]},null),r.Hb(10,1),(e()(),r.Ob(-1,null,["Configuration"])),(e()(),r.Ob(-1,null,["\n "])),(e()(),r.Ob(-1,null,["\n "]))],function(e,t){var n=e(t,6,0,"active");e(t,3,0,n);var r=e(t,10,0,"/device/configuration");e(t,9,0,r)},function(e,t){e(t,8,0,t.component.state.updatingFirmware,r.Gb(t,9).target,r.Gb(t,9).href)})}function ev(e){return r.Qb(0,[(e()(),r.ub(0,0,null,null,13,"li",[["class","sidebar__level-2--item"]],null,null,null,null,null)),(e()(),r.Ob(-1,null,["\n "])),(e()(),r.ub(2,0,null,null,10,"div",[["class","sidebar__level-2"]],null,null,null,null,null)),r.tb(3,1720320,null,2,ro,[Xi,r.k,r.E,[2,eo],[2,to]],{routerLinkActive:[0,"routerLinkActive"]},null),r.Mb(603979776,7,{links:1}),r.Mb(603979776,8,{linksWithHrefs:1}),r.Hb(6,1),(e()(),r.Ob(-1,null,["\n "])),(e()(),r.ub(8,0,null,null,3,"a",[],[[1,"target",0],[8,"href",4]],[[null,"click"]],function(e,t,n){var i=!0;return"click"===t&&(i=!1!==r.Gb(e,9).onClick(n.button,n.ctrlKey,n.metaKey,n.shiftKey)&&i),i},null,null)),r.tb(9,671744,[[8,4]],0,to,[Xi,Gr,F],{routerLink:[0,"routerLink"]},null),r.Hb(10,1),(e()(),r.Ob(-1,null,["Fix configuration"])),(e()(),r.Ob(-1,null,["\n "])),(e()(),r.Ob(-1,null,["\n "]))],function(e,t){var n=e(t,6,0,"active");e(t,3,0,n);var r=e(t,10,0,"/device/restore-user-configuration");e(t,9,0,r)},function(e,t){e(t,8,0,r.Gb(t,9).target,r.Gb(t,9).href)})}function tv(e){return r.Qb(0,[(e()(),r.ub(0,0,null,null,1,"i",[["class","fa fa-star sidebar__fav"],["data-placement","bottom"],["data-toggle","tooltip"],["title","This is the default keymap which gets activated when powering the keyboard."]],[[1,"data-placement",0]],null,null,null,null)),r.tb(1,1589248,null,0,hs,[r.k,On],{title:[0,"title"]},null)],function(e,t){e(t,1,0,"This is the default keymap which gets activated when powering the keyboard.")},function(e,t){e(t,0,0,r.Gb(t,1).placement)})}function nv(e){return r.Qb(0,[(e()(),r.ub(0,0,null,null,16,"li",[["class","sidebar__level-2--item"]],null,null,null,null,null)),(e()(),r.Ob(-1,null,["\n "])),(e()(),r.ub(2,0,null,null,13,"div",[["class","sidebar__level-2"]],null,null,null,null,null)),r.tb(3,1720320,null,2,ro,[Xi,r.k,r.E,[2,eo],[2,to]],{routerLinkActive:[0,"routerLinkActive"]},null),r.Mb(603979776,11,{links:1}),r.Mb(603979776,12,{linksWithHrefs:1}),r.Hb(6,1),(e()(),r.Ob(-1,null,["\n "])),(e()(),r.ub(8,0,null,null,3,"a",[],[[2,"disabled",null],[1,"target",0],[8,"href",4]],[[null,"click"]],function(e,t,n){var i=!0;return"click"===t&&(i=!1!==r.Gb(e,9).onClick(n.button,n.ctrlKey,n.metaKey,n.shiftKey)&&i),i},null,null)),r.tb(9,671744,[[12,4]],0,to,[Xi,Gr,F],{routerLink:[0,"routerLink"]},null),r.Hb(10,2),(e()(),r.Ob(11,null,["",""])),(e()(),r.Ob(-1,null,["\n "])),(e()(),r.jb(16777216,null,null,1,null,tv)),r.tb(14,16384,null,0,ie,[r.P,r.M],{ngIf:[0,"ngIf"]},null),(e()(),r.Ob(-1,null,["\n "])),(e()(),r.Ob(-1,null,["\n "]))],function(e,t){var n=e(t,6,0,"active");e(t,3,0,n);var r=e(t,10,0,"/keymap",t.context.$implicit.abbreviation);e(t,9,0,r),e(t,14,0,t.context.$implicit.isDefault)},function(e,t){e(t,8,0,t.component.state.updatingFirmware,r.Gb(t,9).target,r.Gb(t,9).href),e(t,11,0,t.context.$implicit.name)})}function rv(e){return r.Qb(0,[(e()(),r.ub(0,0,null,null,15,"li",[["class","sidebar__level-1--item"]],null,null,null,null,null)),(e()(),r.Ob(-1,null,["\n "])),(e()(),r.ub(2,0,null,null,6,"div",[["class","sidebar__level-1"]],null,null,null,null,null)),(e()(),r.Ob(-1,null,["\n "])),(e()(),r.ub(4,0,null,null,0,"i",[["class","fa fa-keyboard-o"]],null,null,null,null,null)),(e()(),r.Ob(-1,null,[" Keymaps\n "])),(e()(),r.Ob(-1,null,["\n "])),(e()(),r.ub(7,0,null,null,0,"i",[["class","fa fa-chevron-up pull-right"]],null,[[null,"click"]],function(e,t,n){var r=!0;return"click"===t&&(r=!1!==e.component.toggleHide(n,"keymap")&&r),r},null,null)),(e()(),r.Ob(-1,null,["\n "])),(e()(),r.Ob(-1,null,["\n "])),(e()(),r.ub(10,0,null,null,4,"ul",[],[[24,"@toggler",0]],null,null,null,null)),(e()(),r.Ob(-1,null,["\n "])),(e()(),r.jb(16777216,null,null,1,null,nv)),r.tb(13,278528,null,0,ne,[r.P,r.M,r.t],{ngForOf:[0,"ngForOf"]},null),(e()(),r.Ob(-1,null,["\n "])),(e()(),r.Ob(-1,null,["\n "]))],function(e,t){e(t,13,0,t.component.state.keymaps)},function(e,t){e(t,10,0,t.component.animation.keymap)})}function iv(e){return r.Qb(0,[(e()(),r.ub(0,0,null,null,13,"li",[["class","sidebar__level-2--item"]],null,null,null,null,null)),(e()(),r.Ob(-1,null,["\n "])),(e()(),r.ub(2,0,null,null,10,"div",[["class","sidebar__level-2"]],null,null,null,null,null)),r.tb(3,1720320,null,2,ro,[Xi,r.k,r.E,[2,eo],[2,to]],{routerLinkActive:[0,"routerLinkActive"]},null),r.Mb(603979776,13,{links:1}),r.Mb(603979776,14,{linksWithHrefs:1}),r.Hb(6,1),(e()(),r.Ob(-1,null,["\n "])),(e()(),r.ub(8,0,null,null,3,"a",[],[[2,"disabled",null],[1,"target",0],[8,"href",4]],[[null,"click"]],function(e,t,n){var i=!0;return"click"===t&&(i=!1!==r.Gb(e,9).onClick(n.button,n.ctrlKey,n.metaKey,n.shiftKey)&&i),i},null,null)),r.tb(9,671744,[[14,4]],0,to,[Xi,Gr,F],{routerLink:[0,"routerLink"]},null),r.Hb(10,2),(e()(),r.Ob(11,null,["",""])),(e()(),r.Ob(-1,null,["\n "])),(e()(),r.Ob(-1,null,["\n "]))],function(e,t){var n=e(t,6,0,"active");e(t,3,0,n);var r=e(t,10,0,"/macro",t.context.$implicit.id);e(t,9,0,r)},function(e,t){e(t,8,0,t.component.state.updatingFirmware,r.Gb(t,9).target,r.Gb(t,9).href),e(t,11,0,t.context.$implicit.name)})}function ov(e){return r.Qb(0,[(e()(),r.ub(0,0,null,null,19,"li",[["class","sidebar__level-1--item"]],null,null,null,null,null)),(e()(),r.Ob(-1,null,["\n "])),(e()(),r.ub(2,0,null,null,10,"div",[["class","sidebar__level-1"]],null,null,null,null,null)),(e()(),r.Ob(-1,null,["\n "])),(e()(),r.ub(4,0,null,null,0,"i",[["class","fa fa-play"]],null,null,null,null,null)),(e()(),r.Ob(-1,null,[" Macros\n "])),(e()(),r.ub(6,0,null,null,3,"a",[["class","btn btn-default pull-right btn-sm"]],[[2,"disabled",null]],[[null,"click"]],function(e,t,n){var r=!0;return"click"===t&&(r=!1!==e.component.addMacro()&&r),r},null,null)),(e()(),r.Ob(-1,null,["\n "])),(e()(),r.ub(8,0,null,null,0,"i",[["class","fa fa-plus"]],null,null,null,null,null)),(e()(),r.Ob(-1,null,["\n "])),(e()(),r.Ob(-1,null,["\n "])),(e()(),r.ub(11,0,null,null,0,"i",[["class","fa fa-chevron-up pull-right"]],null,[[null,"click"]],function(e,t,n){var r=!0;return"click"===t&&(r=!1!==e.component.toggleHide(n,"macro")&&r),r},null,null)),(e()(),r.Ob(-1,null,["\n "])),(e()(),r.Ob(-1,null,["\n "])),(e()(),r.ub(14,0,null,null,4,"ul",[],[[24,"@toggler",0]],null,null,null,null)),(e()(),r.Ob(-1,null,["\n "])),(e()(),r.jb(16777216,null,null,1,null,iv)),r.tb(17,278528,null,0,ne,[r.P,r.M,r.t],{ngForOf:[0,"ngForOf"]},null),(e()(),r.Ob(-1,null,["\n "])),(e()(),r.Ob(-1,null,["\n "]))],function(e,t){e(t,17,0,t.component.state.macros)},function(e,t){var n=t.component;e(t,6,0,n.state.updatingFirmware),e(t,14,0,n.animation.macro)})}function lv(e){return r.Qb(0,[(e()(),r.ub(0,0,null,null,71,"li",[["class","sidebar__level-1--item"]],null,null,null,null,null)),(e()(),r.Ob(-1,null,["\n "])),(e()(),r.ub(2,0,null,null,5,"div",[["class","sidebar__level-1"]],null,null,null,null,null)),(e()(),r.Ob(-1,null,["\n "])),(e()(),r.ub(4,0,null,null,0,"i",[["class","fa fa-puzzle-piece"]],null,null,null,null,null)),(e()(),r.Ob(-1,null,[" Add-on modules\n "])),(e()(),r.ub(6,0,null,null,0,"i",[["class","fa fa-chevron-up pull-right"]],null,[[null,"click"]],function(e,t,n){var r=!0;return"click"===t&&(r=!1!==e.component.toggleHide(n,"addon")&&r),r},null,null)),(e()(),r.Ob(-1,null,["\n "])),(e()(),r.Ob(-1,null,["\n "])),(e()(),r.ub(9,0,null,null,61,"ul",[],[[24,"@toggler",0]],null,null,null,null)),(e()(),r.Ob(-1,null,["\n "])),(e()(),r.ub(11,0,null,null,13,"li",[["class","sidebar__level-2--item"],["data-abbrev",""],["data-name","Key cluster"]],null,null,null,null,null)),(e()(),r.Ob(-1,null,["\n "])),(e()(),r.ub(13,0,null,null,10,"div",[["class","sidebar__level-2"]],null,null,null,null,null)),r.tb(14,1720320,null,2,ro,[Xi,r.k,r.E,[2,eo],[2,to]],{routerLinkActive:[0,"routerLinkActive"]},null),r.Mb(603979776,15,{links:1}),r.Mb(603979776,16,{linksWithHrefs:1}),r.Hb(17,1),(e()(),r.Ob(-1,null,["\n "])),(e()(),r.ub(19,0,null,null,3,"a",[],[[2,"disabled",null],[1,"target",0],[8,"href",4]],[[null,"click"]],function(e,t,n){var i=!0;return"click"===t&&(i=!1!==r.Gb(e,20).onClick(n.button,n.ctrlKey,n.metaKey,n.shiftKey)&&i),i},null,null)),r.tb(20,671744,[[16,4]],0,to,[Xi,Gr,F],{routerLink:[0,"routerLink"]},null),r.Hb(21,2),(e()(),r.Ob(-1,null,["Key cluster"])),(e()(),r.Ob(-1,null,["\n "])),(e()(),r.Ob(-1,null,["\n "])),(e()(),r.Ob(-1,null,["\n "])),(e()(),r.ub(26,0,null,null,13,"li",[["class","sidebar__level-2--item"],["data-abbrev",""],["data-name","Trackball"]],null,null,null,null,null)),(e()(),r.Ob(-1,null,["\n "])),(e()(),r.ub(28,0,null,null,10,"div",[["class","sidebar__level-2"]],null,null,null,null,null)),r.tb(29,1720320,null,2,ro,[Xi,r.k,r.E,[2,eo],[2,to]],{routerLinkActive:[0,"routerLinkActive"]},null),r.Mb(603979776,17,{links:1}),r.Mb(603979776,18,{linksWithHrefs:1}),r.Hb(32,1),(e()(),r.Ob(-1,null,["\n "])),(e()(),r.ub(34,0,null,null,3,"a",[],[[2,"disabled",null],[1,"target",0],[8,"href",4]],[[null,"click"]],function(e,t,n){var i=!0;return"click"===t&&(i=!1!==r.Gb(e,35).onClick(n.button,n.ctrlKey,n.metaKey,n.shiftKey)&&i),i},null,null)),r.tb(35,671744,[[18,4]],0,to,[Xi,Gr,F],{routerLink:[0,"routerLink"]},null),r.Hb(36,2),(e()(),r.Ob(-1,null,["Trackball"])),(e()(),r.Ob(-1,null,["\n "])),(e()(),r.Ob(-1,null,["\n "])),(e()(),r.Ob(-1,null,["\n "])),(e()(),r.ub(41,0,null,null,13,"li",[["class","sidebar__level-2--item"],["data-abbrev",""],["data-name","Toucpad"]],null,null,null,null,null)),(e()(),r.Ob(-1,null,["\n "])),(e()(),r.ub(43,0,null,null,10,"div",[["class","sidebar__level-2"]],null,null,null,null,null)),r.tb(44,1720320,null,2,ro,[Xi,r.k,r.E,[2,eo],[2,to]],{routerLinkActive:[0,"routerLinkActive"]},null),r.Mb(603979776,19,{links:1}),r.Mb(603979776,20,{linksWithHrefs:1}),r.Hb(47,1),(e()(),r.Ob(-1,null,["\n "])),(e()(),r.ub(49,0,null,null,3,"a",[],[[2,"disabled",null],[1,"target",0],[8,"href",4]],[[null,"click"]],function(e,t,n){var i=!0;return"click"===t&&(i=!1!==r.Gb(e,50).onClick(n.button,n.ctrlKey,n.metaKey,n.shiftKey)&&i),i},null,null)),r.tb(50,671744,[[20,4]],0,to,[Xi,Gr,F],{routerLink:[0,"routerLink"]},null),r.Hb(51,2),(e()(),r.Ob(-1,null,["Touchpad"])),(e()(),r.Ob(-1,null,["\n "])),(e()(),r.Ob(-1,null,["\n "])),(e()(),r.Ob(-1,null,["\n "])),(e()(),r.ub(56,0,null,null,13,"li",[["class","sidebar__level-2--item"],["data-abbrev",""],["data-name","Trackpoint"]],null,null,null,null,null)),(e()(),r.Ob(-1,null,["\n "])),(e()(),r.ub(58,0,null,null,10,"div",[["class","sidebar__level-2"]],null,null,null,null,null)),r.tb(59,1720320,null,2,ro,[Xi,r.k,r.E,[2,eo],[2,to]],{routerLinkActive:[0,"routerLinkActive"]},null),r.Mb(603979776,21,{links:1}),r.Mb(603979776,22,{linksWithHrefs:1}),r.Hb(62,1),(e()(),r.Ob(-1,null,["\n "])),(e()(),r.ub(64,0,null,null,3,"a",[],[[2,"disabled",null],[1,"target",0],[8,"href",4]],[[null,"click"]],function(e,t,n){var i=!0;return"click"===t&&(i=!1!==r.Gb(e,65).onClick(n.button,n.ctrlKey,n.metaKey,n.shiftKey)&&i),i},null,null)),r.tb(65,671744,[[22,4]],0,to,[Xi,Gr,F],{routerLink:[0,"routerLink"]},null),r.Hb(66,2),(e()(),r.Ob(-1,null,["Trackpoint"])),(e()(),r.Ob(-1,null,["\n "])),(e()(),r.Ob(-1,null,["\n "])),(e()(),r.Ob(-1,null,["\n "])),(e()(),r.Ob(-1,null,["\n "]))],function(e,t){var n=e(t,17,0,"active");e(t,14,0,n);var r=e(t,21,0,"/add-on","Key cluster");e(t,20,0,r);var i=e(t,32,0,"active");e(t,29,0,i);var o=e(t,36,0,"/add-on","Trackball");e(t,35,0,o);var l=e(t,47,0,"active");e(t,44,0,l);var u=e(t,51,0,"/add-on","Touchpad");e(t,50,0,u);var a=e(t,62,0,"active");e(t,59,0,a);var s=e(t,66,0,"/add-on","Trackpoint");e(t,65,0,s)},function(e,t){var n=t.component;e(t,9,0,n.animation.addon),e(t,19,0,n.state.updatingFirmware,r.Gb(t,20).target,r.Gb(t,20).href),e(t,34,0,n.state.updatingFirmware,r.Gb(t,35).target,r.Gb(t,35).href),e(t,49,0,n.state.updatingFirmware,r.Gb(t,50).target,r.Gb(t,50).href),e(t,64,0,n.state.updatingFirmware,r.Gb(t,65).target,r.Gb(t,65).href)})}function uv(e){return r.Qb(2,[(e()(),r.ub(0,0,null,null,132,"ul",[["class","menu--top"]],null,null,null,null,null)),(e()(),r.Ob(-1,null,["\n "])),(e()(),r.ub(2,0,null,null,67,"li",[["class","sidebar__level-0--item"]],null,null,null,null,null)),(e()(),r.Ob(-1,null,["\n "])),(e()(),r.ub(4,0,null,null,12,"div",[["class","sidebar__level-0"]],null,null,null,null,null)),(e()(),r.Ob(-1,null,["\n "])),(e()(),r.ub(6,0,null,null,0,"i",[["class","uhk-icon uhk-icon-0401-usb-stick rotate-right"]],null,null,null,null,null)),(e()(),r.Ob(-1,null,["\n "])),(e()(),r.ub(8,0,null,null,5,"auto-grow-input",[],[[2,"ng-untouched",null],[2,"ng-touched",null],[2,"ng-pristine",null],[2,"ng-dirty",null],[2,"ng-valid",null],[2,"ng-invalid",null],[2,"ng-pending",null]],[[null,"ngModelChange"],["window","resize"]],function(e,t,n){var i=!0,o=e.component;return"window:resize"===t&&(i=!1!==r.Gb(e,9).windowResize()&&i),"ngModelChange"===t&&(i=!1!==o.editDeviceName(n)&&i),i},Wg,Qg)),r.tb(9,49152,null,0,zg,[r.h,r.E],{maxParentWidthPercent:[0,"maxParentWidthPercent"],css:[1,"css"]},null),r.Lb(1024,null,wc,function(e){return[e]},[zg]),r.tb(11,671744,null,0,_p,[[8,null],[8,null],[8,null],[6,wc]],{isDisabled:[0,"isDisabled"],model:[1,"model"]},{update:"ngModelChange"}),r.Lb(2048,null,Mc,null,[_p]),r.tb(13,16384,null,0,Pc,[[4,Mc]],null,null),(e()(),r.Ob(-1,null,["\n "])),(e()(),r.ub(15,0,null,null,0,"i",[["class","fa fa-chevron-up pull-right"]],null,[[null,"click"]],function(e,t,n){var r=!0;return"click"===t&&(r=!1!==e.component.toggleHide(n,"device")&&r),r},null,null)),(e()(),r.Ob(-1,null,["\n "])),(e()(),r.Ob(-1,null,["\n "])),(e()(),r.ub(18,0,null,null,50,"ul",[],[[24,"@toggler",0]],null,null,null,null)),(e()(),r.Ob(-1,null,["\n "])),(e()(),r.ub(20,0,null,null,38,"li",[["class","sidebar__level-1--item"]],null,null,null,null,null)),(e()(),r.Ob(-1,null,["\n "])),(e()(),r.ub(22,0,null,null,5,"div",[["class","sidebar__level-1"]],null,null,null,null,null)),(e()(),r.Ob(-1,null,["\n "])),(e()(),r.ub(24,0,null,null,0,"i",[["class","fa fa-sliders"]],null,null,null,null,null)),(e()(),r.Ob(-1,null,[" Device\n "])),(e()(),r.ub(26,0,null,null,0,"i",[["class","fa fa-chevron-up pull-right"]],null,[[null,"click"]],function(e,t,n){var r=!0;return"click"===t&&(r=!1!==e.component.toggleHide(n,"configuration")&&r),r},null,null)),(e()(),r.Ob(-1,null,["\n "])),(e()(),r.Ob(-1,null,["\n "])),(e()(),r.ub(29,0,null,null,28,"ul",[],[[24,"@toggler",0]],null,null,null,null)),(e()(),r.Ob(-1,null,["\n "])),(e()(),r.jb(16777216,null,null,1,null,Yg)),r.tb(32,16384,null,0,ie,[r.P,r.M],{ngIf:[0,"ngIf"]},null),(e()(),r.Ob(-1,null,["\n "])),(e()(),r.jb(16777216,null,null,1,null,Zg)),r.tb(35,16384,null,0,ie,[r.P,r.M],{ngIf:[0,"ngIf"]},null),(e()(),r.Ob(-1,null,["\n "])),(e()(),r.jb(16777216,null,null,1,null,Xg)),r.tb(38,16384,null,0,ie,[r.P,r.M],{ngIf:[0,"ngIf"]},null),(e()(),r.Ob(-1,null,["\n "])),(e()(),r.jb(16777216,null,null,1,null,ev)),r.tb(41,16384,null,0,ie,[r.P,r.M],{ngIf:[0,"ngIf"]},null),(e()(),r.Ob(-1,null,["\n "])),(e()(),r.ub(43,0,null,null,13,"li",[["class","sidebar__level-2--item"]],null,null,null,null,null)),(e()(),r.Ob(-1,null,["\n "])),(e()(),r.ub(45,0,null,null,10,"div",[["class","sidebar__level-2"]],null,null,null,null,null)),r.tb(46,1720320,null,2,ro,[Xi,r.k,r.E,[2,eo],[2,to]],{routerLinkActive:[0,"routerLinkActive"]},null),r.Mb(603979776,9,{links:1}),r.Mb(603979776,10,{linksWithHrefs:1}),r.Hb(49,1),(e()(),r.Ob(-1,null,["\n "])),(e()(),r.ub(51,0,null,null,3,"a",[],[[2,"disabled",null],[1,"target",0],[8,"href",4]],[[null,"click"]],function(e,t,n){var i=!0;return"click"===t&&(i=!1!==r.Gb(e,52).onClick(n.button,n.ctrlKey,n.metaKey,n.shiftKey)&&i),i},null,null)),r.tb(52,671744,[[10,4]],0,to,[Xi,Gr,F],{routerLink:[0,"routerLink"]},null),r.Hb(53,1),(e()(),r.Ob(-1,null,["Firmware"])),(e()(),r.Ob(-1,null,["\n "])),(e()(),r.Ob(-1,null,["\n "])),(e()(),r.Ob(-1,null,["\n "])),(e()(),r.Ob(-1,null,["\n "])),(e()(),r.Ob(-1,null,["\n "])),(e()(),r.jb(16777216,null,null,1,null,rv)),r.tb(61,16384,null,0,ie,[r.P,r.M],{ngIf:[0,"ngIf"]},null),(e()(),r.Ob(-1,null,["\n "])),(e()(),r.jb(16777216,null,null,1,null,ov)),r.tb(64,16384,null,0,ie,[r.P,r.M],{ngIf:[0,"ngIf"]},null),(e()(),r.Ob(-1,null,["\n "])),(e()(),r.jb(16777216,null,null,1,null,lv)),r.tb(67,16384,null,0,ie,[r.P,r.M],{ngIf:[0,"ngIf"]},null),(e()(),r.Ob(-1,null,["\n "])),(e()(),r.Ob(-1,null,["\n "])),(e()(),r.Ob(-1,null,["\n "])),(e()(),r.ub(71,0,null,null,60,"li",[["class","sidebar__level-0--item"]],null,null,null,null,null)),r.tb(72,1720320,null,2,ro,[Xi,r.k,r.E,[2,eo],[2,to]],{routerLinkActive:[0,"routerLinkActive"]},null),r.Mb(603979776,23,{links:1}),r.Mb(603979776,24,{linksWithHrefs:1}),r.Hb(75,1),(e()(),r.Ob(-1,null,["\n "])),(e()(),r.ub(77,0,null,null,5,"div",[["class","sidebar__level-0"]],null,null,null,null,null)),(e()(),r.Ob(-1,null,["\n "])),(e()(),r.ub(79,0,null,null,0,"i",[["class","uhk-icon uhk-icon-pure-agent-icon"]],null,null,null,null,null)),(e()(),r.Ob(-1,null,[" Agent\n "])),(e()(),r.ub(81,0,null,null,0,"i",[["class","fa fa-chevron-up pull-right"]],null,[[null,"click"]],function(e,t,n){var r=!0;return"click"===t&&(r=!1!==e.component.toggleHide(n,"agent")&&r),r},null,null)),(e()(),r.Ob(-1,null,["\n "])),(e()(),r.Ob(-1,null,["\n "])),(e()(),r.ub(84,0,null,null,46,"ul",[],[[24,"@toggler",0]],null,null,null,null)),(e()(),r.Ob(-1,null,["\n "])),(e()(),r.ub(86,0,null,null,13,"li",[["class","sidebar__level-2--item"]],null,null,null,null,null)),(e()(),r.Ob(-1,null,["\n "])),(e()(),r.ub(88,0,null,null,10,"div",[["class","sidebar__level-2"]],null,null,null,null,null)),r.tb(89,1720320,null,2,ro,[Xi,r.k,r.E,[2,eo],[2,to]],{routerLinkActive:[0,"routerLinkActive"]},null),r.Mb(603979776,25,{links:1}),r.Mb(603979776,26,{linksWithHrefs:1}),r.Hb(92,1),(e()(),r.Ob(-1,null,["\n "])),(e()(),r.ub(94,0,null,null,3,"a",[],[[2,"disabled",null],[1,"target",0],[8,"href",4]],[[null,"click"]],function(e,t,n){var i=!0;return"click"===t&&(i=!1!==r.Gb(e,95).onClick(n.button,n.ctrlKey,n.metaKey,n.shiftKey)&&i),i},null,null)),r.tb(95,671744,[[26,4],[24,4]],0,to,[Xi,Gr,F],{routerLink:[0,"routerLink"]},null),r.Hb(96,1),(e()(),r.Ob(-1,null,["Settings"])),(e()(),r.Ob(-1,null,["\n "])),(e()(),r.Ob(-1,null,["\n "])),(e()(),r.Ob(-1,null,["\n "])),(e()(),r.ub(101,0,null,null,13,"li",[["class","sidebar__level-2--item"]],null,null,null,null,null)),(e()(),r.Ob(-1,null,["\n "])),(e()(),r.ub(103,0,null,null,10,"div",[["class","sidebar__level-2"]],null,null,null,null,null)),r.tb(104,1720320,null,2,ro,[Xi,r.k,r.E,[2,eo],[2,to]],{routerLinkActive:[0,"routerLinkActive"]},null),r.Mb(603979776,27,{links:1}),r.Mb(603979776,28,{linksWithHrefs:1}),r.Hb(107,1),(e()(),r.Ob(-1,null,["\n "])),(e()(),r.ub(109,0,null,null,3,"a",[],[[2,"disabled",null],[1,"target",0],[8,"href",4]],[[null,"click"]],function(e,t,n){var i=!0;return"click"===t&&(i=!1!==r.Gb(e,110).onClick(n.button,n.ctrlKey,n.metaKey,n.shiftKey)&&i),i},null,null)),r.tb(110,671744,[[28,4],[24,4]],0,to,[Xi,Gr,F],{routerLink:[0,"routerLink"]},null),r.Hb(111,1),(e()(),r.Ob(-1,null,["Help"])),(e()(),r.Ob(-1,null,["\n "])),(e()(),r.Ob(-1,null,["\n "])),(e()(),r.Ob(-1,null,["\n "])),(e()(),r.ub(116,0,null,null,13,"li",[["class","sidebar__level-2--item"]],null,null,null,null,null)),(e()(),r.Ob(-1,null,["\n "])),(e()(),r.ub(118,0,null,null,10,"div",[["class","sidebar__level-2"]],null,null,null,null,null)),r.tb(119,1720320,null,2,ro,[Xi,r.k,r.E,[2,eo],[2,to]],{routerLinkActive:[0,"routerLinkActive"]},null),r.Mb(603979776,29,{links:1}),r.Mb(603979776,30,{linksWithHrefs:1}),r.Hb(122,1),(e()(),r.Ob(-1,null,["\n "])),(e()(),r.ub(124,0,null,null,3,"a",[],[[2,"disabled",null],[1,"target",0],[8,"href",4]],[[null,"click"]],function(e,t,n){var i=!0;return"click"===t&&(i=!1!==r.Gb(e,125).onClick(n.button,n.ctrlKey,n.metaKey,n.shiftKey)&&i),i},null,null)),r.tb(125,671744,[[30,4],[24,4]],0,to,[Xi,Gr,F],{routerLink:[0,"routerLink"]},null),r.Hb(126,1),(e()(),r.Ob(-1,null,["About"])),(e()(),r.Ob(-1,null,["\n "])),(e()(),r.Ob(-1,null,["\n "])),(e()(),r.Ob(-1,null,["\n "])),(e()(),r.Ob(-1,null,["\n "])),(e()(),r.Ob(-1,null,["\n"])),(e()(),r.Ob(-1,null,["\n"]))],function(e,t){var n=t.component;e(t,9,0,.65,"side-menu-pane-title__name"),e(t,11,0,n.state.restoreUserConfiguration||n.state.updatingFirmware,n.state.deviceName),e(t,32,0,!n.state.restoreUserConfiguration),e(t,35,0,!n.state.restoreUserConfiguration),e(t,38,0,!n.state.restoreUserConfiguration),e(t,41,0,n.state.restoreUserConfiguration);var r=e(t,49,0,"active");e(t,46,0,r);var i=e(t,53,0,"/device/firmware");e(t,52,0,i),e(t,61,0,!n.state.restoreUserConfiguration),e(t,64,0,!n.state.restoreUserConfiguration),e(t,67,0,n.state.showAddonMenu);var o=e(t,75,0,"active");e(t,72,0,o);var l=e(t,92,0,"active");e(t,89,0,l);var u=e(t,96,0,"/settings");e(t,95,0,u);var a=e(t,107,0,"active");e(t,104,0,a);var s=e(t,111,0,"/help");e(t,110,0,s);var c=e(t,122,0,"active");e(t,119,0,c);var p=e(t,126,0,"/about");e(t,125,0,p)},function(e,t){var n=t.component;e(t,8,0,r.Gb(t,13).ngClassUntouched,r.Gb(t,13).ngClassTouched,r.Gb(t,13).ngClassPristine,r.Gb(t,13).ngClassDirty,r.Gb(t,13).ngClassValid,r.Gb(t,13).ngClassInvalid,r.Gb(t,13).ngClassPending),e(t,18,0,n.animation.device),e(t,29,0,n.animation.configuration),e(t,51,0,n.state.updatingFirmware,r.Gb(t,52).target,r.Gb(t,52).href),e(t,84,0,n.animation.agent),e(t,94,0,n.state.updatingFirmware,r.Gb(t,95).target,r.Gb(t,95).href),e(t,109,0,n.state.updatingFirmware,r.Gb(t,110).target,r.Gb(t,110).href),e(t,124,0,n.state.updatingFirmware,r.Gb(t,125).target,r.Gb(t,125).href)})}var av=function(){function e(){this.state=Eu,this.clicked=new r.m}return e.prototype.onClicked=function(){this.clicked.emit(this.state.action)},e}(),sv=r.sb({encapsulation:0,styles:[["button[_ngcontent-%COMP%]{min-width:150px}"]],data:{}});function cv(e){return r.Qb(0,[(e()(),r.ub(0,0,null,null,0,"i",[["class","fa fa-spin fa-spinner"]],null,null,null,null,null))],null,null)}function pv(e){return r.Qb(2,[(e()(),r.ub(0,0,null,null,4,"button",[["class","btn btn-primary"]],[[8,"disabled",0]],[[null,"click"]],function(e,t,n){var r=!0;return"click"===t&&(r=!1!==e.component.onClicked()&&r),r},null,null)),(e()(),r.Ob(-1,null,["\n "])),(e()(),r.jb(16777216,null,null,1,null,cv)),r.tb(3,16384,null,0,ie,[r.P,r.M],{ngIf:[0,"ngIf"]},null),(e()(),r.Ob(4,null,[" ","\n"])),(e()(),r.Ob(-1,null,["\n"]))],function(e,t){e(t,3,0,t.component.state.showProgress)},function(e,t){var n=t.component;e(t,0,0,n.state.showProgress),e(t,4,0,n.state.text)})}var fv=function(e){this.template=null,Object.assign(this,e),void 0===e.id&&(this.id="ID_"+(new Date).getTime())},dv=function(){function e(){this.actionStream=new Ue.a,this.actionQueue=[],this.isActionInProgress=!1}return e.prototype.push=function(e){this.actionQueue.push(e),this.tryToRunNextAction()},e.prototype.continue=function(){this.isActionInProgress=!1,this.tryToRunNextAction()},e.prototype.tryToRunNextAction=function(){this.isActionInProgress||0===this.actionQueue.length||(this.isActionInProgress=!0,this.actionStream.next(this.actionQueue.shift()))},e}(),hv=function(e){void 0===e&&(e={}),this.animations={enabled:!0,hide:{easing:"ease",offset:50,preset:"fade",speed:300},overlap:150,shift:{easing:"ease",speed:300},show:{easing:"ease",preset:"slide",speed:300}},this.behaviour={autoHide:7e3,onClick:!1,onMouseover:"pauseAutoHide",showDismissButton:!0,stacking:4},this.position={horizontal:{distance:12,position:"left"},vertical:{distance:12,gap:10,position:"bottom"}},this.theme="material",void 0!==e.theme&&(this.theme=e.theme),void 0!==e.animations&&(void 0!==e.animations.enabled&&(this.animations.enabled=e.animations.enabled),void 0!==e.animations.overlap&&(this.animations.overlap=e.animations.overlap),void 0!==e.animations.hide&&Object.assign(this.animations.hide,e.animations.hide),void 0!==e.animations.shift&&Object.assign(this.animations.shift,e.animations.shift),void 0!==e.animations.show&&Object.assign(this.animations.show,e.animations.show)),void 0!==e.behaviour&&Object.assign(this.behaviour,e.behaviour),void 0!==e.position&&(void 0!==e.position.horizontal&&Object.assign(this.position.horizontal,e.position.horizontal),void 0!==e.position.vertical&&Object.assign(this.position.vertical,e.position.vertical))},yv=function(){function e(e,t){this.queueService=e,this.config=t}return e.prototype.getConfig=function(){return this.config},e.prototype.show=function(e){this.queueService.push({payload:e,type:"SHOW"})},e.prototype.hide=function(e){this.queueService.push({payload:e,type:"HIDE"})},e.prototype.hideNewest=function(){this.queueService.push({type:"HIDE_NEWEST"})},e.prototype.hideOldest=function(){this.queueService.push({type:"HIDE_OLDEST"})},e.prototype.hideAll=function(){this.queueService.push({type:"HIDE_ALL"})},e.prototype.notify=function(e,t,n){var r={message:t,type:e};void 0!==n&&(r.id=n),this.show(r)},e}(),bv=function(){function e(e,t,n){this.changeDetector=e,this.queueService=t,this.config=n.getConfig(),this.notifications=[]}return e.prototype.ngOnInit=function(){var e=this;this.queueServiceSubscription=this.queueService.actionStream.subscribe(function(t){e.handleAction(t).then(function(){e.queueService.continue()})})},e.prototype.ngOnDestroy=function(){this.queueServiceSubscription&&this.queueServiceSubscription.unsubscribe()},e.prototype.identifyNotification=function(e,t){return t.id},e.prototype.onNotificationDismiss=function(e){this.queueService.push({payload:e,type:"HIDE"})},e.prototype.onNotificationReady=function(e){var t=this.notifications[this.notifications.length-1];t.component=e,this.continueHandleShowAction(t)},e.prototype.handleAction=function(e){switch(e.type){case"SHOW":return this.handleShowAction(e);case"HIDE":return this.handleHideAction(e);case"HIDE_OLDEST":return this.handleHideOldestAction(e);case"HIDE_NEWEST":return this.handleHideNewestAction(e);case"HIDE_ALL":return this.handleHideAllAction(e);default:return new Promise(function(e,t){e()})}},e.prototype.handleShowAction=function(e){var t=this;return new Promise(function(n,r){t.tempPromiseResolver=n,t.addNotificationToList(new fv(e.payload))})},e.prototype.continueHandleShowAction=function(e){var t=this,n=this.notifications.length;if(1===n)e.component.show().then(this.tempPromiseResolver);else if(!1===this.config.behaviour.stacking||this.config.behaviour.stacking<2)this.notifications[0].component.hide().then(function(){t.removeNotificationFromList(t.notifications[0]),e.component.show().then(t.tempPromiseResolver)});else{var r=[];if(n>this.config.behaviour.stacking){var i=this.notifications.slice(1,n-1);this.config.animations.enabled?!1!==this.config.animations.overlap&&this.config.animations.overlap>0?(r.push(this.notifications[0].component.hide()),setTimeout(function(){r.push(t.shiftNotifications(i,e.component.getHeight(),!0))},this.config.animations.hide.speed-this.config.animations.overlap),setTimeout(function(){r.push(e.component.show())},this.config.animations.hide.speed+this.config.animations.shift.speed-this.config.animations.overlap)):r.push(new Promise(function(n,r){t.notifications[0].component.hide().then(function(){t.shiftNotifications(i,e.component.getHeight(),!0).then(function(){e.component.show().then(n)})})})):(r.push(this.notifications[0].component.hide()),r.push(this.shiftNotifications(i,e.component.getHeight(),!0)),r.push(e.component.show()))}else{var o=this.notifications.slice(0,n-1);this.config.animations.enabled?!1!==this.config.animations.overlap&&this.config.animations.overlap>0?(r.push(this.shiftNotifications(o,e.component.getHeight(),!0)),setTimeout(function(){r.push(e.component.show())},this.config.animations.shift.speed-this.config.animations.overlap)):r.push(new Promise(function(n,r){t.shiftNotifications(o,e.component.getHeight(),!0).then(function(){e.component.show().then(n)})})):(r.push(this.shiftNotifications(o,e.component.getHeight(),!0)),r.push(e.component.show()))}Promise.all(r).then(function(){n>t.config.behaviour.stacking&&t.removeNotificationFromList(t.notifications[0]),t.tempPromiseResolver()})}},e.prototype.handleHideAction=function(e){var t=this;return new Promise(function(n,r){var i=[],o=t.findNotificationById(e.payload);if(void 0!==o){var l=t.findNotificationIndexById(e.payload);if(void 0!==l){var u=t.notifications.slice(0,l);u.length>0?t.config.animations.enabled&&t.config.animations.hide.speed>0?!1!==t.config.animations.overlap&&t.config.animations.overlap>0?(i.push(o.component.hide()),setTimeout(function(){i.push(t.shiftNotifications(u,o.component.getHeight(),!1))},t.config.animations.hide.speed-t.config.animations.overlap)):o.component.hide().then(function(){i.push(t.shiftNotifications(u,o.component.getHeight(),!1))}):(i.push(o.component.hide()),i.push(t.shiftNotifications(u,o.component.getHeight(),!1))):i.push(o.component.hide()),Promise.all(i).then(function(){t.removeNotificationFromList(o),n()})}else n()}else n()})},e.prototype.handleHideOldestAction=function(e){return 0===this.notifications.length?new Promise(function(e,t){e()}):(e.payload=this.notifications[0].id,this.handleHideAction(e))},e.prototype.handleHideNewestAction=function(e){return 0===this.notifications.length?new Promise(function(e,t){e()}):(e.payload=this.notifications[this.notifications.length-1].id,this.handleHideAction(e))},e.prototype.handleHideAllAction=function(e){var t=this;return new Promise(function(e,n){var r=t.notifications.length;if(0!==r)if(t.config.animations.enabled&&t.config.animations.hide.speed>0&&!1!==t.config.animations.hide.offset&&t.config.animations.hide.offset>0)for(var i=function(n){setTimeout(function(){t.notifications[n].component.hide().then(function(){("top"===t.config.position.vertical.position&&0===n||"bottom"===t.config.position.vertical.position&&n===r-1)&&(t.removeAllNotificationsFromList(),e())})},t.config.animations.hide.offset*("top"===t.config.position.vertical.position?r-1:n))},o=r-1;o>=0;o--)i(o);else{var l=[];for(o=r-1;o>=0;o--)l.push(t.notifications[o].component.hide());Promise.all(l).then(function(){t.removeAllNotificationsFromList(),e()})}else e()})},e.prototype.shiftNotifications=function(e,t,n){return new Promise(function(r,i){if(0!==e.length){for(var o=[],l=e.length-1;l>=0;l--)o.push(e[l].component.shift(t,n));Promise.all(o).then(r)}else r()})},e.prototype.addNotificationToList=function(e){this.notifications.push(e),this.changeDetector.markForCheck()},e.prototype.removeNotificationFromList=function(e){this.notifications=this.notifications.filter(function(t){return t.component!==e.component}),this.changeDetector.markForCheck()},e.prototype.removeAllNotificationsFromList=function(){this.notifications=[],this.changeDetector.markForCheck()},e.prototype.findNotificationById=function(e){return this.notifications.find(function(t){return t.id===e})},e.prototype.findNotificationIndexById=function(e){var t=this.notifications.findIndex(function(t){return t.id===e});return-1!==t?t:void 0},e}(),mv={hide:function(){return{from:{opacity:"1"},to:{opacity:"0"}}},show:function(){return{from:{opacity:"0"},to:{opacity:"1"}}}},gv={hide:function(e){var t,n,r=e.component.getConfig(),i=e.component.getShift();return"left"===r.position.horizontal.position?(t={transform:"translate3d( 0, "+i+"px, 0 )"},n={transform:"translate3d( calc( -100% - "+r.position.horizontal.distance+"px - 10px ), "+i+"px, 0 )"}):"right"===r.position.horizontal.position?(t={transform:"translate3d( 0, "+i+"px, 0 )"},n={transform:"translate3d( calc( 100% + "+r.position.horizontal.distance+"px + 10px ), "+i+"px, 0 )"}):(t={transform:"translate3d( -50%, "+i+"px, 0 )"},n={transform:"translate3d( -50%, "+("top"===r.position.vertical.position?"calc( -100% - "+r.position.horizontal.distance+"px - 10px )":"calc( 100% + "+r.position.horizontal.distance+"px + 10px )")+", 0 )"}),{from:t,to:n}},show:function(e){var t,n,r=e.component.getConfig();return"left"===r.position.horizontal.position?(t={transform:"translate3d( calc( -100% - "+r.position.horizontal.distance+"px - 10px ), 0, 0 )"},n={transform:"translate3d( 0, 0, 0 )"}):"right"===r.position.horizontal.position?(t={transform:"translate3d( calc( 100% + "+r.position.horizontal.distance+"px + 10px ), 0, 0 )"},n={transform:"translate3d( 0, 0, 0 )"}):(t={transform:"translate3d( -50%, "+("top"===r.position.vertical.position?"calc( -100% - "+r.position.horizontal.distance+"px - 10px )":"calc( 100% + "+r.position.horizontal.distance+"px + 10px )")+", 0 )"},n={transform:"translate3d( -50%, 0, 0 )"}),{from:t,to:n}}},vv=function(){function e(){this.animationPresets={fade:mv,slide:gv}}return e.prototype.getAnimationData=function(e,t){var n,r,i;return"show"===e?(n=this.animationPresets[t.component.getConfig().animations.show.preset].show(t),r=t.component.getConfig().animations.show.speed,i=t.component.getConfig().animations.show.easing):(n=this.animationPresets[t.component.getConfig().animations.hide.preset].hide(t),r=t.component.getConfig().animations.hide.speed,i=t.component.getConfig().animations.hide.easing),{keyframes:[n.from,n.to],options:{duration:r,easing:i,fill:"forwards"}}},e}(),kv=function(){function e(){this.now=0,this.remaining=0}return e.prototype.start=function(e){var t=this;return new Promise(function(n,r){t.remaining=e,t.finishPromiseResolver=n,t.continue()})},e.prototype.pause=function(){clearTimeout(this.timerId),this.remaining-=(new Date).getTime()-this.now},e.prototype.continue=function(){var e=this;this.now=(new Date).getTime(),this.timerId=window.setTimeout(function(){e.finish()},this.remaining)},e.prototype.stop=function(){clearTimeout(this.timerId),this.remaining=0},e.prototype.finish=function(){this.finishPromiseResolver()},e}(),_v=function(){function e(e,t,n,i,o){this.config=n.getConfig(),this.ready=new r.m,this.dismiss=new r.m,this.timerService=i,this.animationService=o,this.renderer=t,this.element=e.nativeElement,this.elementShift=0}return e.prototype.ngAfterViewInit=function(){this.setup(),this.elementHeight=this.element.offsetHeight,this.elementWidth=this.element.offsetWidth,this.ready.emit(this)},e.prototype.getConfig=function(){return this.config},e.prototype.getHeight=function(){return this.elementHeight},e.prototype.getWidth=function(){return this.elementWidth},e.prototype.getShift=function(){return this.elementShift},e.prototype.show=function(){var e=this;return new Promise(function(t,n){if(e.config.animations.enabled&&e.config.animations.show.speed>0){for(var r=e.animationService.getAnimationData("show",e.notification),i=Object.keys(r.keyframes[0]),o=i.length-1;o>=0;o--)e.renderer.setStyle(e.element,i[o],r.keyframes[0][i[o]]);e.renderer.setStyle(e.element,"visibility","visible"),e.element.animate(r.keyframes,r.options).onfinish=function(){e.startAutoHideTimer(),t()}}else e.renderer.setStyle(e.element,"visibility","visible"),e.startAutoHideTimer(),t()})},e.prototype.hide=function(){var e=this;return new Promise(function(t,n){if(e.stopAutoHideTimer(),e.config.animations.enabled&&e.config.animations.hide.speed>0){var r=e.animationService.getAnimationData("hide",e.notification);e.element.animate(r.keyframes,r.options).onfinish=function(){t()}}else t()})},e.prototype.shift=function(e,t){var n=this;return new Promise(function(r,i){var o;o="top"===n.config.position.vertical.position&&t||"bottom"===n.config.position.vertical.position&&!t?n.elementShift+e+n.config.position.vertical.gap:n.elementShift-e-n.config.position.vertical.gap;var l="middle"===n.config.position.horizontal.position?"-50%":"0";if(n.config.animations.enabled&&n.config.animations.shift.speed>0){var u={keyframes:[{transform:"translate3d( "+l+", "+n.elementShift+"px, 0 )"},{transform:"translate3d( "+l+", "+o+"px, 0 )"}],options:{duration:n.config.animations.shift.speed,easing:n.config.animations.shift.easing,fill:"forwards"}};n.elementShift=o,n.element.animate(u.keyframes,u.options).onfinish=function(){r()}}else n.renderer.setStyle(n.element,"transform","translate3d( "+l+", "+o+"px, 0 )"),n.elementShift=o,r()})},e.prototype.onClickDismiss=function(){this.dismiss.emit(this.notification.id)},e.prototype.onNotificationMouseover=function(){"pauseAutoHide"===this.config.behaviour.onMouseover?this.pauseAutoHideTimer():"resetAutoHide"===this.config.behaviour.onMouseover&&this.stopAutoHideTimer()},e.prototype.onNotificationMouseout=function(){"pauseAutoHide"===this.config.behaviour.onMouseover?this.continueAutoHideTimer():"resetAutoHide"===this.config.behaviour.onMouseover&&this.startAutoHideTimer()},e.prototype.onNotificationClick=function(){"hide"===this.config.behaviour.onClick&&this.onClickDismiss()},e.prototype.startAutoHideTimer=function(){var e=this;!1!==this.config.behaviour.autoHide&&this.config.behaviour.autoHide>0&&this.timerService.start(this.config.behaviour.autoHide).then(function(){e.onClickDismiss()})},e.prototype.pauseAutoHideTimer=function(){!1!==this.config.behaviour.autoHide&&this.config.behaviour.autoHide>0&&this.timerService.pause()},e.prototype.continueAutoHideTimer=function(){!1!==this.config.behaviour.autoHide&&this.config.behaviour.autoHide>0&&this.timerService.continue()},e.prototype.stopAutoHideTimer=function(){!1!==this.config.behaviour.autoHide&&this.config.behaviour.autoHide>0&&this.timerService.stop()},e.prototype.setup=function(){"left"===this.config.position.horizontal.position?this.renderer.setStyle(this.element,"left",this.config.position.horizontal.distance+"px"):"right"===this.config.position.horizontal.position?this.renderer.setStyle(this.element,"right",this.config.position.horizontal.distance+"px"):(this.renderer.setStyle(this.element,"left","50%"),this.renderer.setStyle(this.element,"transform","translate3d( -50%, 0, 0 )")),this.renderer.setStyle(this.element,"top"===this.config.position.vertical.position?"top":"bottom",this.config.position.vertical.distance+"px"),this.renderer.addClass(this.element,"notifier__notification--"+this.notification.type),this.renderer.addClass(this.element,"notifier__notification--"+this.config.theme)},e}(),wv=new r.q("[angular-notifier] Notifier Options"),Ov=new r.q("[anuglar-notifier] Notifier Config");function Av(e){return new hv(e)}var Cv=function(){function e(){}return e.withConfig=function(t){return void 0===t&&(t={}),{ngModule:e,providers:[{provide:wv,useValue:t},{deps:[wv],provide:Ov,useFactory:Av}]}},e}(),Tv=r.sb({encapsulation:2,styles:[],data:{}});function xv(e){return r.Qb(0,[(e()(),r.ub(0,0,null,null,3,"li",[["class","notifier__container-list"]],null,null,null,null,null)),(e()(),r.ub(1,0,null,null,2,"notifier-notification",[["class","notifier__notification"]],null,[[null,"dismiss"],[null,"ready"],[null,"click"],[null,"mouseout"],[null,"mouseover"]],function(e,t,n){var i=!0,o=e.component;return"click"===t&&(i=!1!==r.Gb(e,3).onNotificationClick()&&i),"mouseout"===t&&(i=!1!==r.Gb(e,3).onNotificationMouseout()&&i),"mouseover"===t&&(i=!1!==r.Gb(e,3).onNotificationMouseover()&&i),"dismiss"===t&&(i=!1!==o.onNotificationDismiss(n)&&i),"ready"===t&&(i=!1!==o.onNotificationReady(n)&&i),i},jv,Mv)),r.Lb(512,null,kv,kv,[]),r.tb(3,4243456,null,0,_v,[r.k,r.E,yv,kv,vv],{notification:[0,"notification"]},{ready:"ready",dismiss:"dismiss"})],function(e,t){e(t,3,0,t.context.$implicit)},null)}function Sv(e){return r.Qb(2,[(e()(),r.ub(0,0,null,null,2,"ul",[],null,null,null,null,null)),(e()(),r.jb(16777216,null,null,1,null,xv)),r.tb(2,278528,null,0,ne,[r.P,r.M,r.t],{ngForOf:[0,"ngForOf"],ngForTrackBy:[1,"ngForTrackBy"]},null)],function(e,t){var n=t.component;e(t,2,0,n.notifications,n.identifyNotification)},null)}var Mv=r.sb({encapsulation:2,styles:[],data:{}});function Ev(e){return r.Qb(0,[(e()(),r.ub(0,16777216,null,null,2,null,null,null,null,null,null,null)),r.tb(1,540672,null,0,pe,[r.P],{ngTemplateOutletContext:[0,"ngTemplateOutletContext"],ngTemplateOutlet:[1,"ngTemplateOutlet"]},null),r.Jb(2,{notification:0}),(e()(),r.jb(0,null,null,0))],function(e,t){var n=t.component,r=e(t,2,0,n.notification);e(t,1,0,r,n.notification.template)},null)}function Pv(e){return r.Qb(0,[(e()(),r.ub(0,0,null,null,2,"button",[["class","notifier__notification-button"],["title","dismiss"],["type","button"]],null,[[null,"click"]],function(e,t,n){var r=!0;return"click"===t&&(r=!1!==e.component.onClickDismiss()&&r),r},null,null)),(e()(),r.ub(1,0,null,null,1,":svg:svg",[["class","notifier__notification-button-icon"],["height","20"],["viewBox","0 0 24 24"],["width","20"]],null,null,null,null,null)),(e()(),r.ub(2,0,null,null,0,":svg:path",[["d","M19 6.41L17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z"]],null,null,null,null,null))],null,null)}function Iv(e){return r.Qb(0,[(e()(),r.ub(0,0,null,null,1,"p",[["class","notifier__notification-message"]],null,null,null,null,null)),(e()(),r.Ob(1,null,["",""])),(e()(),r.jb(16777216,null,null,1,null,Pv)),r.tb(3,16384,null,0,ie,[r.P,r.M],{ngIf:[0,"ngIf"]},null),(e()(),r.jb(0,null,null,0))],function(e,t){e(t,3,0,t.component.config.behaviour.showDismissButton)},function(e,t){e(t,1,0,t.component.notification.message)})}function jv(e){return r.Qb(2,[(e()(),r.jb(16777216,null,null,1,null,Ev)),r.tb(1,16384,null,0,ie,[r.P,r.M],{ngIf:[0,"ngIf"],ngIfElse:[1,"ngIfElse"]},null),(e()(),r.jb(0,[["predefinedNotification",2]],null,0,null,Iv))],function(e,t){e(t,1,0,t.component.notification.template,r.Gb(t,2))},null)}var Rv=r.sb({encapsulation:2,styles:[["main-app{min-height:100%;height:100%;width:100%;display:block;position:relative}.save-to-keyboard-button{position:fixed;bottom:15px;right:15px}"]],data:{animation:[{type:7,name:"showSaveToKeyboardButton",definitions:[{type:1,expr:":enter",animation:[{type:6,styles:{transform:"translateY(100%)"},offset:null},{type:4,styles:{type:6,styles:{transform:"translateY(0)"},offset:null},timings:"400ms ease-in-out"}],options:null},{type:1,expr:":leave",animation:[{type:6,styles:{transform:"translateY(0)"},offset:null},{type:4,styles:{type:6,styles:{transform:"translateY(100%)"},offset:null},timings:"400ms ease-in-out"}],options:null}],options:{}},{type:7,name:"updateAvailable",definitions:[{type:1,expr:":enter",animation:[{type:6,styles:{transform:"translateY(-45px)"},offset:null},{type:4,styles:{type:6,styles:{transform:"translateY(0)"},offset:null},timings:"500ms ease-out"}],options:null},{type:1,expr:":leave",animation:[{type:6,styles:{transform:"translateY(0)"},offset:null},{type:4,styles:{type:6,styles:{transform:"translateY(-45px)"},offset:null},timings:"500ms ease-out"}],options:null}],options:{}}]}});function Lv(e){return r.Qb(0,[(e()(),r.ub(0,0,null,null,3,"app-update-available",[],[[24,"@updateAvailable",0]],[[null,"updateApp"],[null,"doNotUpdateApp"]],function(e,t,n){var r=!0,i=e.component;return"updateApp"===t&&(r=!1!==i.updateApp()&&r),"doNotUpdateApp"===t&&(r=!1!==i.doNotUpdateApp()&&r),r},Hg,Vg)),r.tb(1,49152,null,0,Bg,[],{updateInfo:[0,"updateInfo"]},{updateApp:"updateApp",doNotUpdateApp:"doNotUpdateApp"}),r.Ib(131072,ye,[r.h]),(e()(),r.Ob(-1,null,["\n"]))],function(e,t){var n=t.component;e(t,1,0,r.Pb(t,1,0,r.Gb(t,2).transform(n.updateInfo$)))},function(e,t){e(t,0,0,void 0)})}function Nv(e){return r.Qb(0,[(e()(),r.ub(0,0,null,null,1,"side-menu",[],[[2,"update-panel-visible",null]],null,null,uv,Jg)),r.tb(1,245760,null,0,qg,[L.m,r.E,r.h],null,null)],function(e,t){e(t,1,0)},function(e,t){e(t,0,0,t.component.showUpdateAvailable)})}function Dv(e){return r.Qb(0,[(e()(),r.ub(0,0,null,null,1,"progress-button",[["class","save-to-keyboard-button"]],[[24,"@showSaveToKeyboardButton",0]],[[null,"clicked"]],function(e,t,n){var r=!0;return"clicked"===t&&(r=!1!==e.component.clickedOnProgressButton(n)&&r),r},pv,sv)),r.tb(1,49152,null,0,av,[],{state:[0,"state"]},{clicked:"clicked"})],function(e,t){e(t,1,0,t.component.saveToKeyboardState)},function(e,t){e(t,0,0,void 0)})}function Uv(e){return r.Qb(0,[(e()(),r.jb(16777216,null,null,1,null,Lv)),r.tb(1,16384,null,0,ie,[r.P,r.M],{ngIf:[0,"ngIf"]},null),(e()(),r.Ob(-1,null,["\n\n"])),(e()(),r.jb(16777216,null,null,2,null,Nv)),r.tb(4,16384,null,0,ie,[r.P,r.M],{ngIf:[0,"ngIf"]},null),r.Ib(131072,ye,[r.h]),(e()(),r.Ob(-1,null,["\n"])),(e()(),r.ub(7,0,null,null,4,"div",[["class","main-content"],["id","main-content"]],[[2,"update-panel-visible",null]],null,null,null,null)),(e()(),r.Ob(-1,null,["\n "])),(e()(),r.ub(9,16777216,null,null,1,"router-outlet",[],null,null,null,null,null)),r.tb(10,212992,null,0,lo,[oo,r.P,r.j,[8,null],r.h],null,null),(e()(),r.Ob(-1,null,["\n"])),(e()(),r.Ob(-1,null,["\n"])),(e()(),r.ub(13,0,null,null,1,"notifier-container",[["class","notifier__container"]],null,null,null,Sv,Tv)),r.tb(14,245760,null,0,bv,[r.h,dv,yv],null,null),(e()(),r.Ob(-1,null,["\n"])),(e()(),r.jb(16777216,null,null,1,null,Dv)),r.tb(17,16384,null,0,ie,[r.P,r.M],{ngIf:[0,"ngIf"]},null),(e()(),r.Ob(-1,null,["\n"]))],function(e,t){var n=t.component;e(t,1,0,n.showUpdateAvailable),e(t,4,0,r.Pb(t,4,0,r.Gb(t,5).transform(n.deviceConfigurationLoaded$))),e(t,10,0),e(t,14,0),e(t,17,0,n.saveToKeyboardState.showButton)},function(e,t){e(t,7,0,t.component.showUpdateAvailable)})}function Fv(e){return r.Qb(0,[(e()(),r.ub(0,0,null,null,1,"main-app",[],null,[["document","keydown"]],function(e,t,n){var i=!0;return"document:keydown"===t&&(i=!1!==r.Gb(e,1).onKeyDown(n)&&i),i},Uv,Rv)),r.tb(1,180224,null,0,ja,[L.m],null,null)],null,null)}var Kv=r.qb("main-app",ja,Fv,{},{},[]),Bv=function(){return function(){}}(),Vv=function(){return function(){}}(),Gv="*";function Hv(e,t){return void 0===t&&(t=null),{type:2,steps:e,options:t}}function $v(e){return{type:6,styles:e,offset:null}}function zv(e){Promise.resolve(null).then(e)}var Qv=function(){function e(e,t){void 0===e&&(e=0),void 0===t&&(t=0),this._onDoneFns=[],this._onStartFns=[],this._onDestroyFns=[],this._started=!1,this._destroyed=!1,this._finished=!1,this.parentPlayer=null,this.totalTime=e+t}return e.prototype._onFinish=function(){this._finished||(this._finished=!0,this._onDoneFns.forEach(function(e){return e()}),this._onDoneFns=[])},e.prototype.onStart=function(e){this._onStartFns.push(e)},e.prototype.onDone=function(e){this._onDoneFns.push(e)},e.prototype.onDestroy=function(e){this._onDestroyFns.push(e)},e.prototype.hasStarted=function(){return this._started},e.prototype.init=function(){},e.prototype.play=function(){this.hasStarted()||(this._onStart(),this.triggerMicrotask()),this._started=!0},e.prototype.triggerMicrotask=function(){var e=this;zv(function(){return e._onFinish()})},e.prototype._onStart=function(){this._onStartFns.forEach(function(e){return e()}),this._onStartFns=[]},e.prototype.pause=function(){},e.prototype.restart=function(){},e.prototype.finish=function(){this._onFinish()},e.prototype.destroy=function(){this._destroyed||(this._destroyed=!0,this.hasStarted()||this._onStart(),this.finish(),this._onDestroyFns.forEach(function(e){return e()}),this._onDestroyFns=[])},e.prototype.reset=function(){},e.prototype.setPosition=function(e){},e.prototype.getPosition=function(){return 0},e.prototype.triggerCallback=function(e){var t="start"==e?this._onStartFns:this._onDoneFns;t.forEach(function(e){return e()}),t.length=0},e}(),Wv=function(){function e(e){var t=this;this._onDoneFns=[],this._onStartFns=[],this._finished=!1,this._started=!1,this._destroyed=!1,this._onDestroyFns=[],this.parentPlayer=null,this.totalTime=0,this.players=e;var n=0,r=0,i=0,o=this.players.length;0==o?zv(function(){return t._onFinish()}):this.players.forEach(function(e){e.onDone(function(){++n==o&&t._onFinish()}),e.onDestroy(function(){++r==o&&t._onDestroy()}),e.onStart(function(){++i==o&&t._onStart()})}),this.totalTime=this.players.reduce(function(e,t){return Math.max(e,t.totalTime)},0)}return e.prototype._onFinish=function(){this._finished||(this._finished=!0,this._onDoneFns.forEach(function(e){return e()}),this._onDoneFns=[])},e.prototype.init=function(){this.players.forEach(function(e){return e.init()})},e.prototype.onStart=function(e){this._onStartFns.push(e)},e.prototype._onStart=function(){this.hasStarted()||(this._started=!0,this._onStartFns.forEach(function(e){return e()}),this._onStartFns=[])},e.prototype.onDone=function(e){this._onDoneFns.push(e)},e.prototype.onDestroy=function(e){this._onDestroyFns.push(e)},e.prototype.hasStarted=function(){return this._started},e.prototype.play=function(){this.parentPlayer||this.init(),this._onStart(),this.players.forEach(function(e){return e.play()})},e.prototype.pause=function(){this.players.forEach(function(e){return e.pause()})},e.prototype.restart=function(){this.players.forEach(function(e){return e.restart()})},e.prototype.finish=function(){this._onFinish(),this.players.forEach(function(e){return e.finish()})},e.prototype.destroy=function(){this._onDestroy()},e.prototype._onDestroy=function(){this._destroyed||(this._destroyed=!0,this._onFinish(),this.players.forEach(function(e){return e.destroy()}),this._onDestroyFns.forEach(function(e){return e()}),this._onDestroyFns=[])},e.prototype.reset=function(){this.players.forEach(function(e){return e.reset()}),this._destroyed=!1,this._finished=!1,this._started=!1},e.prototype.setPosition=function(e){var t=e*this.totalTime;this.players.forEach(function(e){var n=e.totalTime?Math.min(1,t/e.totalTime):1;e.setPosition(n)})},e.prototype.getPosition=function(){var e=0;return this.players.forEach(function(t){var n=t.getPosition();e=Math.min(n,e)}),e},e.prototype.beforeDestroy=function(){this.players.forEach(function(e){e.beforeDestroy&&e.beforeDestroy()})},e.prototype.triggerCallback=function(e){var t="start"==e?this._onStartFns:this._onDoneFns;t.forEach(function(e){return e()}),t.length=0},e}(),qv="!";function Jv(){return"undefined"!=typeof process}function Yv(e){switch(e.length){case 0:return new Qv;case 1:return e[0];default:return new Wv(e)}}function Zv(e,t,n,r,i,o){void 0===i&&(i={}),void 0===o&&(o={});var l=[],u=[],a=-1,s=null;if(r.forEach(function(e){var n=e.offset,r=n==a,c=r&&s||{};Object.keys(e).forEach(function(n){var r=n,u=e[n];if("offset"!==n)switch(r=t.normalizePropertyName(r,l),u){case qv:u=i[n];break;case Gv:u=o[n];break;default:u=t.normalizeStyleValue(n,r,u,l)}c[r]=u}),r||u.push(c),s=c,a=n}),l.length)throw new Error("Unable to animate due to the following errors:\n - "+l.join("\n - "));return u}function Xv(e,t,n,r){switch(t){case"start":e.onStart(function(){return r(n&&ek(n,"start",e))});break;case"done":e.onDone(function(){return r(n&&ek(n,"done",e))});break;case"destroy":e.onDestroy(function(){return r(n&&ek(n,"destroy",e))})}}function ek(e,t,n){var r=n.totalTime,i=tk(e.element,e.triggerName,e.fromState,e.toState,t||e.phaseName,null==r?e.totalTime:r,!!n.disabled),o=e._data;return null!=o&&(i._data=o),i}function tk(e,t,n,r,i,o,l){return void 0===i&&(i=""),void 0===o&&(o=0),{element:e,triggerName:t,fromState:n,toState:r,phaseName:i,totalTime:o,disabled:!!l}}function nk(e,t,n){var r;return e instanceof Map?(r=e.get(t))||e.set(t,r=n):(r=e[t])||(r=e[t]=n),r}function rk(e){var t=e.indexOf(":");return[e.substring(1,t),e.substr(t+1)]}var ik=function(e,t){return!1},ok=function(e,t){return!1},lk=function(e,t,n){return[]},uk=Jv();(uk||"undefined"!=typeof Element)&&(ik=function(e,t){return e.contains(t)},ok=function(){if(uk||Element.prototype.matches)return function(e,t){return e.matches(t)};var e=Element.prototype,t=e.matchesSelector||e.mozMatchesSelector||e.msMatchesSelector||e.oMatchesSelector||e.webkitMatchesSelector;return t?function(e,n){return t.apply(e,[n])}:ok}(),lk=function(e,t,n){var r=[];if(n)r.push.apply(r,Object(N.g)(e.querySelectorAll(t)));else{var i=e.querySelector(t);i&&r.push(i)}return r});var ak=null,sk=!1;function ck(e){ak||(ak=("undefined"!=typeof document?document.body:null)||{},sk=!!ak.style&&"WebkitAppearance"in ak.style);var t=!0;return ak.style&&!function(e){return"ebkit"==e.substring(1,6)}(e)&&!(t=e in ak.style)&&sk&&(t="Webkit"+e.charAt(0).toUpperCase()+e.substr(1)in ak.style),t}var pk=ok,fk=ik,dk=lk;function hk(e){var t={};return Object.keys(e).forEach(function(n){var r=n.replace(/([a-z])([A-Z])/g,"$1-$2");t[r]=e[n]}),t}var yk=function(){function e(){}return e.prototype.validateStyleProperty=function(e){return ck(e)},e.prototype.matchesElement=function(e,t){return pk(e,t)},e.prototype.containsElement=function(e,t){return fk(e,t)},e.prototype.query=function(e,t,n){return dk(e,t,n)},e.prototype.computeStyle=function(e,t,n){return n||""},e.prototype.animate=function(e,t,n,r,i,o,l){return void 0===o&&(o=[]),new Qv(n,r)},e}(),bk=function(){function e(){}return e.NOOP=new yk,e}(),mk=1e3;function gk(e){if("number"==typeof e)return e;var t=e.match(/^(-?[\.\d]+)(m?s)/);return!t||t.length<2?0:vk(parseFloat(t[1]),t[2])}function vk(e,t){switch(t){case"s":return e*mk;default:return e}}function kk(e,t,n){return e.hasOwnProperty("duration")?e:function(e,t,n){var r,i=0,o="";if("string"==typeof e){var l=e.match(/^(-?[\.\d]+)(m?s)(?:\s+(-?[\.\d]+)(m?s))?(?:\s+([-a-z]+(?:\(.+?\))?))?$/i);if(null===l)return t.push('The provided timing value "'+e+'" is invalid.'),{duration:0,delay:0,easing:""};r=vk(parseFloat(l[1]),l[2]);var u=l[3];null!=u&&(i=vk(parseFloat(u),l[4]));var a=l[5];a&&(o=a)}else r=e;if(!n){var s=!1,c=t.length;r<0&&(t.push("Duration values below 0 are not allowed for this animation step."),s=!0),i<0&&(t.push("Delay values below 0 are not allowed for this animation step."),s=!0),s&&t.splice(c,0,'The provided timing value "'+e+'" is invalid.')}return{duration:r,delay:i,easing:o}}(e,t,n)}function _k(e,t){return void 0===t&&(t={}),Object.keys(e).forEach(function(n){t[n]=e[n]}),t}function wk(e,t,n){if(void 0===n&&(n={}),t)for(var r in e)n[r]=e[r];else _k(e,n);return n}function Ok(e,t,n){return n?t+":"+n+";":""}function Ak(e){for(var t="",n=0;n *";case":leave":return"* => void";case":increment":return function(e,t){return parseFloat(t)>parseFloat(e)};case":decrement":return function(e,t){return parseFloat(t) *"}}(e,n);if("function"==typeof r)return void t.push(r);e=r}var i=e.match(/^(\*|[-\w]+)\s*()\s*(\*|[-\w]+)$/);if(null==i||i.length<4)return n.push('The provided transition expression "'+e+'" is not supported'),t;var o=i[1],l=i[2],u=i[3];t.push(Bk(o,u)),"<"!=l[0]||o==Uk&&u==Uk||t.push(Bk(u,o))}(e,i,r)}):i.push(n),i),animation:o,queryCount:t.queryCount,depCount:t.depCount,options:Qk(e.options)}},e.prototype.visitSequence=function(e,t){var n=this;return{type:2,steps:e.steps.map(function(e){return Nk(n,e,t)}),options:Qk(e.options)}},e.prototype.visitGroup=function(e,t){var n=this,r=t.currentTime,i=0,o=e.steps.map(function(e){t.currentTime=r;var o=Nk(n,e,t);return i=Math.max(i,t.currentTime),o});return t.currentTime=i,{type:3,steps:o,options:Qk(e.options)}},e.prototype.visitAnimate=function(e,t){var n,r=function(e,t){var n=null;if(e.hasOwnProperty("duration"))n=e;else if("number"==typeof e)return Wk(kk(e,t).duration,0,"");var r=e;if(r.split(/\s+/).some(function(e){return"{"==e.charAt(0)&&"{"==e.charAt(1)})){var i=Wk(0,0,"");return i.dynamic=!0,i.strValue=r,i}return Wk((n=n||kk(r,t)).duration,n.delay,n.easing)}(e.timings,t.errors);t.currentAnimateTimings=r;var i=e.styles?e.styles:$v({});if(5==i.type)n=this.visitKeyframes(i,t);else{var o=e.styles,l=!1;if(!o){l=!0;var u={};r.easing&&(u.easing=r.easing),o=$v(u)}t.currentTime+=r.duration+r.delay;var a=this.visitStyle(o,t);a.isEmptyStep=l,n=a}return t.currentAnimateTimings=null,{type:4,timings:r,style:n,options:null}},e.prototype.visitStyle=function(e,t){var n=this._makeStyleAst(e,t);return this._validateStyleAst(n,t),n},e.prototype._makeStyleAst=function(e,t){var n=[];Array.isArray(e.styles)?e.styles.forEach(function(e){"string"==typeof e?e==Gv?n.push(e):t.errors.push("The provided style string value "+e+" is not allowed."):n.push(e)}):n.push(e.styles);var r=!1,i=null;return n.forEach(function(e){if(zk(e)){var t=e,n=t.easing;if(n&&(i=n,delete t.easing),!r)for(var o in t)if(t[o].toString().indexOf("{{")>=0){r=!0;break}}}),{type:6,styles:n,easing:i,offset:e.offset,containsDynamicStyles:r,options:null}},e.prototype._validateStyleAst=function(e,t){var n=this,r=t.currentAnimateTimings,i=t.currentTime,o=t.currentTime;r&&o>0&&(o-=r.duration+r.delay),e.styles.forEach(function(e){"string"!=typeof e&&Object.keys(e).forEach(function(r){if(n._driver.validateStyleProperty(r)){var l,u,a,s=t.collectedStyles[t.currentQuerySelector],c=s[r],p=!0;c&&(o!=i&&o>=c.startTime&&i<=c.endTime&&(t.errors.push('The CSS property "'+r+'" 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 "'+i+'ms"'),p=!1),o=c.startTime),p&&(s[r]={startTime:o,endTime:i}),t.options&&(l=t.errors,u=t.options.params||{},(a=Mk(e[r])).length&&a.forEach(function(e){u.hasOwnProperty(e)||l.push("Unable to resolve the local animation param "+e+" in the given list of values")}))}else t.errors.push('The provided animation property "'+r+'" is not a supported CSS property for animations')})})},e.prototype.visitKeyframes=function(e,t){var n=this,r={type:5,styles:[],options:null};if(!t.currentAnimateTimings)return t.errors.push("keyframes() must be placed inside of a call to animate()"),r;var i=0,o=[],l=!1,u=!1,a=0,s=e.steps.map(function(e){var r=n._makeStyleAst(e,t),s=null!=r.offset?r.offset:function(e){if("string"==typeof e)return null;var t=null;if(Array.isArray(e))e.forEach(function(e){if(zk(e)&&e.hasOwnProperty("offset")){var n=e;t=parseFloat(n.offset),delete n.offset}});else if(zk(e)&&e.hasOwnProperty("offset")){var n=e;t=parseFloat(n.offset),delete n.offset}return t}(r.styles),c=0;return null!=s&&(i++,c=r.offset=s),u=u||c<0||c>1,l=l||c0&&i0?i==f?1:p*i:o[i],u=l*y;t.currentTime=d+h.delay+u,h.duration=u,n._validateStyleAst(e,t),e.offset=l,r.styles.push(e)}),r},e.prototype.visitReference=function(e,t){return{type:8,animation:Nk(this,xk(e.animation),t),options:Qk(e.options)}},e.prototype.visitAnimateChild=function(e,t){return t.depCount++,{type:9,options:Qk(e.options)}},e.prototype.visitAnimateRef=function(e,t){return{type:10,animation:this.visitReference(e.animation,t),options:Qk(e.options)}},e.prototype.visitQuery=function(e,t){var n=t.currentQuerySelector,r=e.options||{};t.queryCount++,t.currentQuery=e;var i=Object(N.f)(function(e){var t=!!e.split(/\s*,\s*/).find(function(e){return":self"==e});return t&&(e=e.replace(Vk,"")),[e=e.replace(/@\*/g,".ng-trigger").replace(/@\w+/g,function(e){return".ng-trigger-"+e.substr(1)}).replace(/:animating/g,".ng-animating"),t]}(e.selector),2),o=i[0],l=i[1];t.currentQuerySelector=n.length?n+" "+o:o,nk(t.collectedStyles,t.currentQuerySelector,{});var u=Nk(this,xk(e.animation),t);return t.currentQuery=null,t.currentQuerySelector=n,{type:11,selector:o,limit:r.limit||0,optional:!!r.optional,includeSelf:l,animation:u,originalSelector:e.selector,options:Qk(e.options)}},e.prototype.visitStagger=function(e,t){t.currentQuery||t.errors.push("stagger() can only be used inside of query()");var n="full"===e.timings?{duration:0,delay:0,easing:"full"}:kk(e.timings,t.errors,!0);return{type:12,animation:Nk(this,xk(e.animation),t),timings:n,options:null}},e}(),$k=function(){return function(e){this.errors=e,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 zk(e){return!Array.isArray(e)&&"object"==typeof e}function Qk(e){var t;return e?(e=_k(e)).params&&(e.params=(t=e.params)?_k(t):null):e={},e}function Wk(e,t,n){return{duration:e,delay:t,easing:n}}function qk(e,t,n,r,i,o,l,u){return void 0===l&&(l=null),void 0===u&&(u=!1),{type:1,element:e,keyframes:t,preStyleProps:n,postStyleProps:r,duration:i,delay:o,totalTime:i+o,easing:l,subTimeline:u}}var Jk=function(){function e(){this._map=new Map}return e.prototype.consume=function(e){var t=this._map.get(e);return t?this._map.delete(e):t=[],t},e.prototype.append=function(e,t){var n=this._map.get(e);n||this._map.set(e,n=[]),n.push.apply(n,Object(N.g)(t))},e.prototype.has=function(e){return this._map.has(e)},e.prototype.clear=function(){this._map.clear()},e}(),Yk=new RegExp(":enter","g"),Zk=new RegExp(":leave","g");function Xk(e,t,n,r,i,o,l,u,a,s){return void 0===o&&(o={}),void 0===l&&(l={}),void 0===s&&(s=[]),(new e_).buildKeyframes(e,t,n,r,i,o,l,u,a,s)}var e_=function(){function e(){}return e.prototype.buildKeyframes=function(e,t,n,r,i,o,l,u,a,s){void 0===s&&(s=[]),a=a||new Jk;var c=new n_(e,t,a,r,i,s,[]);c.options=u,c.currentTimeline.setStyles([o],null,c.errors,u),Nk(this,n,c);var p=c.timelines.filter(function(e){return e.containsAnimation()});if(p.length&&Object.keys(l).length){var f=p[p.length-1];f.allowOnlyTimelineStyles()||f.setStyles([l],null,c.errors,u)}return p.length?p.map(function(e){return e.buildKeyframes()}):[qk(t,[],[],[],0,0,"",!1)]},e.prototype.visitTrigger=function(e,t){},e.prototype.visitState=function(e,t){},e.prototype.visitTransition=function(e,t){},e.prototype.visitAnimateChild=function(e,t){var n=t.subInstructions.consume(t.element);if(n){var r=t.createSubContext(e.options),i=t.currentTimeline.currentTime,o=this._visitSubInstructions(n,r,r.options);i!=o&&t.transformIntoNewTimeline(o)}t.previousNode=e},e.prototype.visitAnimateRef=function(e,t){var n=t.createSubContext(e.options);n.transformIntoNewTimeline(),this.visitReference(e.animation,n),t.transformIntoNewTimeline(n.currentTimeline.currentTime),t.previousNode=e},e.prototype._visitSubInstructions=function(e,t,n){var r=t.currentTimeline.currentTime,i=null!=n.duration?gk(n.duration):null,o=null!=n.delay?gk(n.delay):null;return 0!==i&&e.forEach(function(e){var n=t.appendInstructionToTimeline(e,i,o);r=Math.max(r,n.duration+n.delay)}),r},e.prototype.visitReference=function(e,t){t.updateOptions(e.options,!0),Nk(this,e.animation,t),t.previousNode=e},e.prototype.visitSequence=function(e,t){var n=this,r=t.subContextCount,i=t,o=e.options;if(o&&(o.params||o.delay)&&((i=t.createSubContext(o)).transformIntoNewTimeline(),null!=o.delay)){6==i.previousNode.type&&(i.currentTimeline.snapshotCurrentStyles(),i.previousNode=t_);var l=gk(o.delay);i.delayNextStep(l)}e.steps.length&&(e.steps.forEach(function(e){return Nk(n,e,i)}),i.currentTimeline.applyStylesToKeyframe(),i.subContextCount>r&&i.transformIntoNewTimeline()),t.previousNode=e},e.prototype.visitGroup=function(e,t){var n=this,r=[],i=t.currentTimeline.currentTime,o=e.options&&e.options.delay?gk(e.options.delay):0;e.steps.forEach(function(l){var u=t.createSubContext(e.options);o&&u.delayNextStep(o),Nk(n,l,u),i=Math.max(i,u.currentTimeline.currentTime),r.push(u.currentTimeline)}),r.forEach(function(e){return t.currentTimeline.mergeTimelineCollectedStyles(e)}),t.transformIntoNewTimeline(i),t.previousNode=e},e.prototype._visitTiming=function(e,t){if(e.dynamic){var n=e.strValue;return kk(t.params?Ek(n,t.params,t.errors):n,t.errors)}return{duration:e.duration,delay:e.delay,easing:e.easing}},e.prototype.visitAnimate=function(e,t){var n=t.currentAnimateTimings=this._visitTiming(e.timings,t),r=t.currentTimeline;n.delay&&(t.incrementTime(n.delay),r.snapshotCurrentStyles());var i=e.style;5==i.type?this.visitKeyframes(i,t):(t.incrementTime(n.duration),this.visitStyle(i,t),r.applyStylesToKeyframe()),t.currentAnimateTimings=null,t.previousNode=e},e.prototype.visitStyle=function(e,t){var n=t.currentTimeline,r=t.currentAnimateTimings;!r&&n.getCurrentStyleProperties().length&&n.forwardFrame();var i=r&&r.easing||e.easing;e.isEmptyStep?n.applyEmptyStep(i):n.setStyles(e.styles,i,t.errors,t.options),t.previousNode=e},e.prototype.visitKeyframes=function(e,t){var n=t.currentAnimateTimings,r=t.currentTimeline.duration,i=n.duration,o=t.createSubContext().currentTimeline;o.easing=n.easing,e.styles.forEach(function(e){o.forwardTime((e.offset||0)*i),o.setStyles(e.styles,e.easing,t.errors,t.options),o.applyStylesToKeyframe()}),t.currentTimeline.mergeTimelineCollectedStyles(o),t.transformIntoNewTimeline(r+i),t.previousNode=e},e.prototype.visitQuery=function(e,t){var n=this,r=t.currentTimeline.currentTime,i=e.options||{},o=i.delay?gk(i.delay):0;o&&(6===t.previousNode.type||0==r&&t.currentTimeline.getCurrentStyleProperties().length)&&(t.currentTimeline.snapshotCurrentStyles(),t.previousNode=t_);var l=r,u=t.invokeQuery(e.selector,e.originalSelector,e.limit,e.includeSelf,!!i.optional,t.errors);t.currentQueryTotal=u.length;var a=null;u.forEach(function(r,i){t.currentQueryIndex=i;var u=t.createSubContext(e.options,r);o&&u.delayNextStep(o),r===t.element&&(a=u.currentTimeline),Nk(n,e.animation,u),u.currentTimeline.applyStylesToKeyframe(),l=Math.max(l,u.currentTimeline.currentTime)}),t.currentQueryIndex=0,t.currentQueryTotal=0,t.transformIntoNewTimeline(l),a&&(t.currentTimeline.mergeTimelineCollectedStyles(a),t.currentTimeline.snapshotCurrentStyles()),t.previousNode=e},e.prototype.visitStagger=function(e,t){var n=t.parentContext,r=t.currentTimeline,i=e.timings,o=Math.abs(i.duration),l=o*(t.currentQueryTotal-1),u=o*t.currentQueryIndex;switch(i.duration<0?"reverse":i.easing){case"reverse":u=l-u;break;case"full":u=n.currentStaggerTime}var a=t.currentTimeline;u&&a.delayNextStep(u);var s=a.currentTime;Nk(this,e.animation,t),t.previousNode=e,n.currentStaggerTime=r.currentTime-s+(r.startTime-n.currentTimeline.startTime)},e}(),t_={},n_=function(){function e(e,t,n,r,i,o,l,u){this._driver=e,this.element=t,this.subInstructions=n,this._enterClassName=r,this._leaveClassName=i,this.errors=o,this.timelines=l,this.parentContext=null,this.currentAnimateTimings=null,this.previousNode=t_,this.subContextCount=0,this.options={},this.currentQueryIndex=0,this.currentQueryTotal=0,this.currentStaggerTime=0,this.currentTimeline=u||new r_(this._driver,t,0),l.push(this.currentTimeline)}return Object.defineProperty(e.prototype,"params",{get:function(){return this.options.params},enumerable:!0,configurable:!0}),e.prototype.updateOptions=function(e,t){var n=this;if(e){var r=e,i=this.options;null!=r.duration&&(i.duration=gk(r.duration)),null!=r.delay&&(i.delay=gk(r.delay));var o=r.params;if(o){var l=i.params;l||(l=this.options.params={}),Object.keys(o).forEach(function(e){t&&l.hasOwnProperty(e)||(l[e]=Ek(o[e],l,n.errors))})}}},e.prototype._copyOptions=function(){var e={};if(this.options){var t=this.options.params;if(t){var n=e.params={};Object.keys(t).forEach(function(e){n[e]=t[e]})}}return e},e.prototype.createSubContext=function(t,n,r){void 0===t&&(t=null);var i=n||this.element,o=new e(this._driver,i,this.subInstructions,this._enterClassName,this._leaveClassName,this.errors,this.timelines,this.currentTimeline.fork(i,r||0));return o.previousNode=this.previousNode,o.currentAnimateTimings=this.currentAnimateTimings,o.options=this._copyOptions(),o.updateOptions(t),o.currentQueryIndex=this.currentQueryIndex,o.currentQueryTotal=this.currentQueryTotal,o.parentContext=this,this.subContextCount++,o},e.prototype.transformIntoNewTimeline=function(e){return this.previousNode=t_,this.currentTimeline=this.currentTimeline.fork(this.element,e),this.timelines.push(this.currentTimeline),this.currentTimeline},e.prototype.appendInstructionToTimeline=function(e,t,n){var r={duration:null!=t?t:e.duration,delay:this.currentTimeline.currentTime+(null!=n?n:0)+e.delay,easing:""},i=new i_(this._driver,e.element,e.keyframes,e.preStyleProps,e.postStyleProps,r,e.stretchStartingKeyframe);return this.timelines.push(i),r},e.prototype.incrementTime=function(e){this.currentTimeline.forwardTime(this.currentTimeline.duration+e)},e.prototype.delayNextStep=function(e){e>0&&this.currentTimeline.delayNextStep(e)},e.prototype.invokeQuery=function(e,t,n,r,i,o){var l=[];if(r&&l.push(this.element),e.length>0){e=(e=e.replace(Yk,"."+this._enterClassName)).replace(Zk,"."+this._leaveClassName);var u=this._driver.query(this.element,e,1!=n);0!==n&&(u=n<0?u.slice(u.length+n,u.length):u.slice(0,n)),l.push.apply(l,Object(N.g)(u))}return i||0!=l.length||o.push('`query("'+t+'")` returned zero elements. (Use `query("'+t+'", { optional: true })` if you wish to allow this.)'),l},e}(),r_=function(){function e(e,t,n,r){this._driver=e,this.element=t,this.startTime=n,this._elementTimelineStylesLookup=r,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(t),this._globalTimelineStyles||(this._globalTimelineStyles=this._localTimelineStyles,this._elementTimelineStylesLookup.set(t,this._localTimelineStyles)),this._loadKeyframe()}return e.prototype.containsAnimation=function(){switch(this._keyframes.size){case 0:return!1;case 1:return this.getCurrentStyleProperties().length>0;default:return!0}},e.prototype.getCurrentStyleProperties=function(){return Object.keys(this._currentKeyframe)},Object.defineProperty(e.prototype,"currentTime",{get:function(){return this.startTime+this.duration},enumerable:!0,configurable:!0}),e.prototype.delayNextStep=function(e){var t=1==this._keyframes.size&&Object.keys(this._pendingStyles).length;this.duration||t?(this.forwardTime(this.currentTime+e),t&&this.snapshotCurrentStyles()):this.startTime+=e},e.prototype.fork=function(t,n){return this.applyStylesToKeyframe(),new e(this._driver,t,n||this.currentTime,this._elementTimelineStylesLookup)},e.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))},e.prototype.forwardFrame=function(){this.duration+=1,this._loadKeyframe()},e.prototype.forwardTime=function(e){this.applyStylesToKeyframe(),this.duration=e,this._loadKeyframe()},e.prototype._updateStyle=function(e,t){this._localTimelineStyles[e]=t,this._globalTimelineStyles[e]=t,this._styleSummary[e]={time:this.currentTime,value:t}},e.prototype.allowOnlyTimelineStyles=function(){return this._currentEmptyStepKeyframe!==this._currentKeyframe},e.prototype.applyEmptyStep=function(e){var t=this;e&&(this._previousKeyframe.easing=e),Object.keys(this._globalTimelineStyles).forEach(function(e){t._backFill[e]=t._globalTimelineStyles[e]||Gv,t._currentKeyframe[e]=Gv}),this._currentEmptyStepKeyframe=this._currentKeyframe},e.prototype.setStyles=function(e,t,n,r){var i=this;t&&(this._previousKeyframe.easing=t);var o=r&&r.params||{},l=function(e,t){var n,r={};return e.forEach(function(e){"*"===e?(n=n||Object.keys(t)).forEach(function(e){r[e]=Gv}):wk(e,!1,r)}),r}(e,this._globalTimelineStyles);Object.keys(l).forEach(function(e){var t=Ek(l[e],o,n);i._pendingStyles[e]=t,i._localTimelineStyles.hasOwnProperty(e)||(i._backFill[e]=i._globalTimelineStyles.hasOwnProperty(e)?i._globalTimelineStyles[e]:Gv),i._updateStyle(e,t)})},e.prototype.applyStylesToKeyframe=function(){var e=this,t=this._pendingStyles,n=Object.keys(t);0!=n.length&&(this._pendingStyles={},n.forEach(function(n){e._currentKeyframe[n]=t[n]}),Object.keys(this._localTimelineStyles).forEach(function(t){e._currentKeyframe.hasOwnProperty(t)||(e._currentKeyframe[t]=e._localTimelineStyles[t])}))},e.prototype.snapshotCurrentStyles=function(){var e=this;Object.keys(this._localTimelineStyles).forEach(function(t){var n=e._localTimelineStyles[t];e._pendingStyles[t]=n,e._updateStyle(t,n)})},e.prototype.getFinalKeyframe=function(){return this._keyframes.get(this.duration)},Object.defineProperty(e.prototype,"properties",{get:function(){var e=[];for(var t in this._currentKeyframe)e.push(t);return e},enumerable:!0,configurable:!0}),e.prototype.mergeTimelineCollectedStyles=function(e){var t=this;Object.keys(e._styleSummary).forEach(function(n){var r=t._styleSummary[n],i=e._styleSummary[n];(!r||i.time>r.time)&&t._updateStyle(n,i.value)})},e.prototype.buildKeyframes=function(){var e=this;this.applyStylesToKeyframe();var t=new Set,n=new Set,r=1===this._keyframes.size&&0===this.duration,i=[];this._keyframes.forEach(function(o,l){var u=wk(o,!0);Object.keys(u).forEach(function(e){var r=u[e];r==qv?t.add(e):r==Gv&&n.add(e)}),r||(u.offset=l/e.duration),i.push(u)});var o=t.size?Pk(t.values()):[],l=n.size?Pk(n.values()):[];if(r){var u=i[0],a=_k(u);u.offset=0,a.offset=1,i=[u,a]}return qk(this.element,i,o,l,this.duration,this.startTime,this.easing,!1)},e}(),i_=function(e){function t(t,n,r,i,o,l,u){void 0===u&&(u=!1);var a=e.call(this,t,n,l.delay)||this;return a.element=n,a.keyframes=r,a.preStyleProps=i,a.postStyleProps=o,a._stretchStartingKeyframe=u,a.timings={duration:l.duration,delay:l.delay,easing:l.easing},a}return Object(N.c)(t,e),t.prototype.containsAnimation=function(){return this.keyframes.length>1},t.prototype.buildKeyframes=function(){var e=this.keyframes,t=this.timings,n=t.delay,r=t.duration,i=t.easing;if(this._stretchStartingKeyframe&&n){var o=[],l=r+n,u=n/l,a=wk(e[0],!1);a.offset=0,o.push(a);var s=wk(e[0],!1);s.offset=o_(u),o.push(s);for(var c=e.length-1,p=1;p<=c;p++){var f=wk(e[p],!1);f.offset=o_((n+f.offset*r)/l),o.push(f)}r=l,n=0,i="",e=o}return qk(this.element,e,this.preStyleProps,this.postStyleProps,r,n,i,!0)},t}(r_);function o_(e,t){void 0===t&&(t=3);var n=Math.pow(10,t-1);return Math.round(e*n)/n}var l_=function(){return function(){}}(),u_=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Object(N.c)(t,e),t.prototype.normalizePropertyName=function(e,t){return jk(e)},t.prototype.normalizeStyleValue=function(e,t,n,r){var i="",o=n.toString().trim();if(a_[t]&&0!==n&&"0"!==n)if("number"==typeof n)i="px";else{var l=n.match(/^[+-]?[\d\.]+([a-z]*)$/);l&&0==l[1].length&&r.push("Please provide a CSS unit value for "+e+":"+n)}return o+i},t}(l_),a_=function(){return e="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(","),t={},e.forEach(function(e){return t[e]=!0}),t;var e,t}();function s_(e,t,n,r,i,o,l,u,a,s,c,p,f){return{type:0,element:e,triggerName:t,isRemovalTransition:i,fromState:n,fromStyles:o,toState:r,toStyles:l,timelines:u,queriedElements:a,preStyleProps:s,postStyleProps:c,totalTime:p,errors:f}}var c_={},p_=function(){function e(e,t,n){this._triggerName=e,this.ast=t,this._stateStyles=n}return e.prototype.match=function(e,t,n,r){return function(e,t,n,r,i){return e.some(function(e){return e(t,n,r,i)})}(this.ast.matchers,e,t,n,r)},e.prototype.buildStyles=function(e,t,n){var r=this._stateStyles["*"],i=this._stateStyles[e],o=r?r.buildStyles(t,n):{};return i?i.buildStyles(t,n):o},e.prototype.build=function(e,t,n,r,i,o,l,u,a,s){var c=[],p=this.ast.options&&this.ast.options.params||c_,f=this.buildStyles(n,l&&l.params||c_,c),d=u&&u.params||c_,h=this.buildStyles(r,d,c),y=new Set,b=new Map,m=new Map,g="void"===r,v={params:Object(N.a)({},p,d)},k=s?[]:Xk(e,t,this.ast.animation,i,o,f,h,v,a,c),_=0;if(k.forEach(function(e){_=Math.max(e.duration+e.delay,_)}),c.length)return s_(t,this._triggerName,n,r,g,f,h,[],[],b,m,_,c);k.forEach(function(e){var n=e.element,r=nk(b,n,{});e.preStyleProps.forEach(function(e){return r[e]=!0});var i=nk(m,n,{});e.postStyleProps.forEach(function(e){return i[e]=!0}),n!==t&&y.add(n)});var w=Pk(y.values());return s_(t,this._triggerName,n,r,g,f,h,k,w,b,m,_)},e}(),f_=function(){function e(e,t){this.styles=e,this.defaultParams=t}return e.prototype.buildStyles=function(e,t){var n={},r=_k(this.defaultParams);return Object.keys(e).forEach(function(t){var n=e[t];null!=n&&(r[t]=n)}),this.styles.styles.forEach(function(e){if("string"!=typeof e){var i=e;Object.keys(i).forEach(function(e){var o=i[e];o.length>1&&(o=Ek(o,r,t)),n[e]=o})}}),n},e}(),d_=function(){function e(e,t){var n=this;this.name=e,this.ast=t,this.transitionFactories=[],this.states={},t.states.forEach(function(e){n.states[e.name]=new f_(e.style,e.options&&e.options.params||{})}),h_(this.states,"true","1"),h_(this.states,"false","0"),t.transitions.forEach(function(t){n.transitionFactories.push(new p_(e,t,n.states))}),this.fallbackTransition=new p_(e,{type:1,animation:{type:2,steps:[],options:null},matchers:[function(e,t){return!0}],options:null,queryCount:0,depCount:0},this.states)}return Object.defineProperty(e.prototype,"containsQueries",{get:function(){return this.ast.queryCount>0},enumerable:!0,configurable:!0}),e.prototype.matchTransition=function(e,t,n,r){return this.transitionFactories.find(function(i){return i.match(e,t,n,r)})||null},e.prototype.matchStyles=function(e,t,n){return this.fallbackTransition.buildStyles(e,t,n)},e}();function h_(e,t,n){e.hasOwnProperty(t)?e.hasOwnProperty(n)||(e[n]=e[t]):e.hasOwnProperty(n)&&(e[t]=e[n])}var y_=new Jk,b_=function(){function e(e,t,n){this.bodyNode=e,this._driver=t,this._normalizer=n,this._animations={},this._playersById={},this.players=[]}return e.prototype.register=function(e,t){var n=[],r=Gk(this._driver,t,n);if(n.length)throw new Error("Unable to build the animation due to the following errors: "+n.join("\n"));this._animations[e]=r},e.prototype._buildPlayer=function(e,t,n){var r=e.element,i=Zv(0,this._normalizer,0,e.keyframes,t,n);return this._driver.animate(r,i,e.duration,e.delay,e.easing,[],!0)},e.prototype.create=function(e,t,n){var r=this;void 0===n&&(n={});var i,o=[],l=this._animations[e],u=new Map;if(l?(i=Xk(this._driver,t,l,"ng-enter","ng-leave",{},{},n,y_,o)).forEach(function(e){var t=nk(u,e.element,{});e.postStyleProps.forEach(function(e){return t[e]=null})}):(o.push("The requested animation doesn't exist or has already been destroyed"),i=[]),o.length)throw new Error("Unable to create the animation due to the following errors: "+o.join("\n"));u.forEach(function(e,t){Object.keys(e).forEach(function(n){e[n]=r._driver.computeStyle(t,n,Gv)})});var a=Yv(i.map(function(e){var t=u.get(e.element);return r._buildPlayer(e,{},t)}));return this._playersById[e]=a,a.onDestroy(function(){return r.destroy(e)}),this.players.push(a),a},e.prototype.destroy=function(e){var t=this._getPlayer(e);t.destroy(),delete this._playersById[e];var n=this.players.indexOf(t);n>=0&&this.players.splice(n,1)},e.prototype._getPlayer=function(e){var t=this._playersById[e];if(!t)throw new Error("Unable to find the timeline player referenced by "+e);return t},e.prototype.listen=function(e,t,n,r){var i=tk(t,"","","");return Xv(this._getPlayer(e),n,i,r),function(){}},e.prototype.command=function(e,t,n,r){if("register"!=n)if("create"!=n){var i=this._getPlayer(e);switch(n){case"play":i.play();break;case"pause":i.pause();break;case"reset":i.reset();break;case"restart":i.restart();break;case"finish":i.finish();break;case"init":i.init();break;case"setPosition":i.setPosition(parseFloat(r[0]));break;case"destroy":this.destroy(e)}}else this.create(e,t,r[0]||{});else this.register(e,r[0])},e}(),m_=[],g_={namespaceId:"",setForRemoval:!1,setForMove:!1,hasAnimation:!1,removedBeforeQueried:!1},v_={namespaceId:"",setForMove:!1,setForRemoval:!1,hasAnimation:!1,removedBeforeQueried:!0},k_="__ng_removed",__=function(){function e(e,t){void 0===t&&(t=""),this.namespaceId=t;var n=e&&e.hasOwnProperty("value");if(this.value=function(e){return null!=e?e:null}(n?e.value:e),n){var r=_k(e);delete r.value,this.options=r}else this.options={};this.options.params||(this.options.params={})}return Object.defineProperty(e.prototype,"params",{get:function(){return this.options.params},enumerable:!0,configurable:!0}),e.prototype.absorbOptions=function(e){var t=e.params;if(t){var n=this.options.params;Object.keys(t).forEach(function(e){null==n[e]&&(n[e]=t[e])})}},e}(),w_=new __("void"),O_=function(){function e(e,t,n){this.id=e,this.hostElement=t,this._engine=n,this.players=[],this._triggers={},this._queue=[],this._elementListeners=new Map,this._hostClassName="ng-tns-"+e,P_(t,this._hostClassName)}return e.prototype.listen=function(e,t,n,r){var i,o=this;if(!this._triggers.hasOwnProperty(t))throw new Error('Unable to listen on the animation trigger event "'+n+'" because the animation trigger "'+t+"\" doesn't exist!");if(null==n||0==n.length)throw new Error('Unable to listen on the animation trigger "'+t+'" because the provided event is undefined!');if("start"!=(i=n)&&"done"!=i)throw new Error('The provided animation trigger event "'+n+'" for the animation trigger "'+t+'" is not supported!');var l=nk(this._elementListeners,e,[]),u={name:t,phase:n,callback:r};l.push(u);var a=nk(this._engine.statesByElement,e,{});return a.hasOwnProperty(t)||(P_(e,"ng-trigger"),P_(e,"ng-trigger-"+t),a[t]=w_),function(){o._engine.afterFlush(function(){var e=l.indexOf(u);e>=0&&l.splice(e,1),o._triggers[t]||delete a[t]})}},e.prototype.register=function(e,t){return!this._triggers[e]&&(this._triggers[e]=t,!0)},e.prototype._getTrigger=function(e){var t=this._triggers[e];if(!t)throw new Error('The provided animation trigger "'+e+'" has not been registered!');return t},e.prototype.trigger=function(e,t,n,r){var i=this;void 0===r&&(r=!0);var o=this._getTrigger(t),l=new C_(this.id,t,e),u=this._engine.statesByElement.get(e);u||(P_(e,"ng-trigger"),P_(e,"ng-trigger-"+t),this._engine.statesByElement.set(e,u={}));var a=u[t],s=new __(n,this.id);if(!(n&&n.hasOwnProperty("value"))&&a&&s.absorbOptions(a.options),u[t]=s,a||(a=w_),"void"===s.value||a.value!==s.value){var c=nk(this._engine.playersByElement,e,[]);c.forEach(function(e){e.namespaceId==i.id&&e.triggerName==t&&e.queued&&e.destroy()});var p=o.matchTransition(a.value,s.value,e,s.params),f=!1;if(!p){if(!r)return;p=o.fallbackTransition,f=!0}return this._engine.totalQueuedPlayers++,this._queue.push({element:e,triggerName:t,transition:p,fromState:a,toState:s,player:l,isFallbackTransition:f}),f||(P_(e,"ng-animate-queued"),l.onStart(function(){I_(e,"ng-animate-queued")})),l.onDone(function(){var t=i.players.indexOf(l);t>=0&&i.players.splice(t,1);var n=i._engine.playersByElement.get(e);if(n){var r=n.indexOf(l);r>=0&&n.splice(r,1)}}),this.players.push(l),c.push(l),l}if(!function(e,t){var n=Object.keys(e),r=Object.keys(t);if(n.length!=r.length)return!1;for(var i=0;i=0){for(var r=!1,i=n;i>=0;i--)if(this.driver.containsElement(this._namespaceList[i].hostElement,t)){this._namespaceList.splice(i+1,0,e),r=!0;break}r||this._namespaceList.splice(0,0,e)}else this._namespaceList.push(e);return this.namespacesByHostElement.set(t,e),e},e.prototype.register=function(e,t){var n=this._namespaceLookup[e];return n||(n=this.createNamespace(e,t)),n},e.prototype.registerTrigger=function(e,t,n){var r=this._namespaceLookup[e];r&&r.register(t,n)&&this.totalAnimations++},e.prototype.destroy=function(e,t){var n=this;if(e){var r=this._fetchNamespace(e);this.afterFlush(function(){n.namespacesByHostElement.delete(r.hostElement),delete n._namespaceLookup[e];var t=n._namespaceList.indexOf(r);t>=0&&n._namespaceList.splice(t,1)}),this.afterFlushAnimationsDone(function(){return r.destroy(t)})}},e.prototype._fetchNamespace=function(e){return this._namespaceLookup[e]},e.prototype.fetchNamespacesByElement=function(e){var t=new Set,n=this.statesByElement.get(e);if(n)for(var r=Object.keys(n),i=0;i=0&&this.collectedLeaveElements.splice(o,1)}if(e){var l=this._fetchNamespace(e);l&&l.insertNode(t,n)}r&&this.collectEnterElement(t)}},e.prototype.collectEnterElement=function(e){this.collectedEnterElements.push(e)},e.prototype.markElementAsDisabled=function(e,t){t?this.disabledNodes.has(e)||(this.disabledNodes.add(e),P_(e,"ng-animate-disabled")):this.disabledNodes.has(e)&&(this.disabledNodes.delete(e),I_(e,"ng-animate-disabled"))},e.prototype.removeNode=function(e,t,n,r){if(T_(t)){var i=e?this._fetchNamespace(e):null;if(i?i.removeNode(t,r):this.markElementAsRemoved(e,t,!1,r),n){var o=this.namespacesByHostElement.get(t);o&&o.id!==e&&o.removeNode(t,r)}}else this._onRemovalComplete(t,r)},e.prototype.markElementAsRemoved=function(e,t,n,r){this.collectedLeaveElements.push(t),t[k_]={namespaceId:e,setForRemoval:r,hasAnimation:n,removedBeforeQueried:!1}},e.prototype.listen=function(e,t,n,r,i){return T_(t)?this._fetchNamespace(e).listen(t,n,r,i):function(){}},e.prototype._buildInstruction=function(e,t,n,r,i){return e.transition.build(this.driver,e.element,e.fromState.value,e.toState.value,n,r,e.fromState.options,e.toState.options,t,i)},e.prototype.destroyInnerAnimations=function(e){var t=this,n=this.driver.query(e,".ng-trigger",!0);n.forEach(function(e){return t.destroyActiveAnimationsForElement(e)}),0!=this.playersByQueriedElement.size&&(n=this.driver.query(e,".ng-animating",!0)).forEach(function(e){return t.finishActiveQueriedAnimationOnElement(e)})},e.prototype.destroyActiveAnimationsForElement=function(e){var t=this.playersByElement.get(e);t&&t.forEach(function(e){e.queued?e.markedForDestroy=!0:e.destroy()})},e.prototype.finishActiveQueriedAnimationOnElement=function(e){var t=this.playersByQueriedElement.get(e);t&&t.forEach(function(e){return e.finish()})},e.prototype.whenRenderingDone=function(){var e=this;return new Promise(function(t){if(e.players.length)return Yv(e.players).onDone(function(){return t()});t()})},e.prototype.processLeaveNode=function(e){var t=this,n=e[k_];if(n&&n.setForRemoval){if(e[k_]=g_,n.namespaceId){this.destroyInnerAnimations(e);var r=this._fetchNamespace(n.namespaceId);r&&r.clearElementCache(e)}this._onRemovalComplete(e,n.setForRemoval)}this.driver.matchesElement(e,".ng-animate-disabled")&&this.markElementAsDisabled(e,!1),this.driver.query(e,".ng-animate-disabled",!0).forEach(function(e){t.markElementAsDisabled(e,!1)})},e.prototype.flush=function(e){var t=this;void 0===e&&(e=-1);var n=[];if(this.newHostElements.size&&(this.newHostElements.forEach(function(e,n){return t._balanceNamespaceList(e,n)}),this.newHostElements.clear()),this.totalAnimations&&this.collectedEnterElements.length)for(var r=0;r=0;A--)this._namespaceList[A].drainQueuedTransitions(t).forEach(function(e){var t=e.player,o=e.element;if(w.push(t),n.collectedEnterElements.length){var c=o[k_];if(c&&c.setForMove)return void t.destroy()}var f=!p||!n.driver.containsElement(p,o),d=k.get(o),y=h.get(o),b=n._buildInstruction(e,r,y,d,f);if(b.errors&&b.errors.length)O.push(b);else{if(f)return t.onStart(function(){return Tk(o,b.fromStyles)}),t.onDestroy(function(){return Ck(o,b.toStyles)}),void i.push(t);if(e.isFallbackTransition)return t.onStart(function(){return Tk(o,b.fromStyles)}),t.onDestroy(function(){return Ck(o,b.toStyles)}),void i.push(t);b.timelines.forEach(function(e){return e.stretchStartingKeyframe=!0}),r.append(o,b.timelines),l.push({instruction:b,player:t,element:o}),b.queriedElements.forEach(function(e){return nk(u,e,[]).push(t)}),b.preStyleProps.forEach(function(e,t){var n=Object.keys(e);if(n.length){var r=a.get(t);r||a.set(t,r=new Set),n.forEach(function(e){return r.add(e)})}}),b.postStyleProps.forEach(function(e,t){var n=Object.keys(e),r=s.get(t);r||s.set(t,r=new Set),n.forEach(function(e){return r.add(e)})})}});if(O.length){var C=[];O.forEach(function(e){C.push("@"+e.triggerName+" has failed due to:\n"),e.errors.forEach(function(e){return C.push("- "+e+"\n")})}),w.forEach(function(e){return e.destroy()}),this.reportError(C)}var T=new Map,x=new Map;l.forEach(function(e){var t=e.element;r.has(t)&&(x.set(t,t),n._beforeAnimationBuild(e.player.namespaceId,e.instruction,T))}),i.forEach(function(e){var t=e.element;n._getPreviousPlayers(t,!1,e.namespaceId,e.triggerName,null).forEach(function(e){nk(T,t,[]).push(e),e.destroy()})});var S=b.filter(function(e){return R_(e,a,s)}),M=new Map;S_(M,this.driver,g,s,Gv).forEach(function(e){R_(e,a,s)&&S.push(e)});var E=new Map;d.forEach(function(e,t){S_(E,n.driver,new Set(e),a,qv)}),S.forEach(function(e){var t=M.get(e),n=E.get(e);M.set(e,Object(N.a)({},t,n))});var P=[],I=[],j={};l.forEach(function(e){var t=e.element,l=e.player,u=e.instruction;if(r.has(t)){if(c.has(t))return l.onDestroy(function(){return Ck(t,u.toStyles)}),l.disabled=!0,l.overrideTotalTime(u.totalTime),void i.push(l);var a=j;if(x.size>1){for(var s=t,p=[];s=s.parentNode;){var f=x.get(s);if(f){a=f;break}p.push(s)}p.forEach(function(e){return x.set(e,a)})}var d=n._buildAnimation(l.namespaceId,u,T,o,E,M);if(l.setRealPlayer(d),a===j)P.push(l);else{var h=n.playersByElement.get(a);h&&h.length&&(l.parentPlayer=Yv(h)),i.push(l)}}else Tk(t,u.fromStyles),l.onDestroy(function(){return Ck(t,u.toStyles)}),I.push(l),c.has(t)&&i.push(l)}),I.forEach(function(e){var t=o.get(e.element);if(t&&t.length){var n=Yv(t);e.setRealPlayer(n)}}),i.forEach(function(e){e.parentPlayer?e.syncPlayerEvents(e.parentPlayer):e.destroy()});for(var R=0;R0?this.driver.animate(e.element,t,e.duration,e.delay,e.easing,n):new Qv(e.duration,e.delay)},e}(),C_=function(){function e(e,t,n){this.namespaceId=e,this.triggerName=t,this.element=n,this._player=new Qv,this._containsRealPlayer=!1,this._queuedCallbacks={},this.destroyed=!1,this.markedForDestroy=!1,this.disabled=!1,this.queued=!0,this.totalTime=0}return e.prototype.setRealPlayer=function(e){var t=this;this._containsRealPlayer||(this._player=e,Object.keys(this._queuedCallbacks).forEach(function(n){t._queuedCallbacks[n].forEach(function(t){return Xv(e,n,void 0,t)})}),this._queuedCallbacks={},this._containsRealPlayer=!0,this.overrideTotalTime(e.totalTime),this.queued=!1)},e.prototype.getRealPlayer=function(){return this._player},e.prototype.overrideTotalTime=function(e){this.totalTime=e},e.prototype.syncPlayerEvents=function(e){var t=this,n=this._player;n.triggerCallback&&e.onStart(function(){return n.triggerCallback("start")}),e.onDone(function(){return t.finish()}),e.onDestroy(function(){return t.destroy()})},e.prototype._queueEvent=function(e,t){nk(this._queuedCallbacks,e,[]).push(t)},e.prototype.onDone=function(e){this.queued&&this._queueEvent("done",e),this._player.onDone(e)},e.prototype.onStart=function(e){this.queued&&this._queueEvent("start",e),this._player.onStart(e)},e.prototype.onDestroy=function(e){this.queued&&this._queueEvent("destroy",e),this._player.onDestroy(e)},e.prototype.init=function(){this._player.init()},e.prototype.hasStarted=function(){return!this.queued&&this._player.hasStarted()},e.prototype.play=function(){!this.queued&&this._player.play()},e.prototype.pause=function(){!this.queued&&this._player.pause()},e.prototype.restart=function(){!this.queued&&this._player.restart()},e.prototype.finish=function(){this._player.finish()},e.prototype.destroy=function(){this.destroyed=!0,this._player.destroy()},e.prototype.reset=function(){!this.queued&&this._player.reset()},e.prototype.setPosition=function(e){this.queued||this._player.setPosition(e)},e.prototype.getPosition=function(){return this.queued?0:this._player.getPosition()},e.prototype.triggerCallback=function(e){var t=this._player;t.triggerCallback&&t.triggerCallback(e)},e}();function T_(e){return e&&1===e.nodeType}function x_(e,t){var n=e.style.display;return e.style.display=null!=t?t:"none",n}function S_(e,t,n,r,i){var o=[];n.forEach(function(e){return o.push(x_(e))});var l=[];r.forEach(function(n,r){var o={};n.forEach(function(e){var n=o[e]=t.computeStyle(r,e,i);n&&0!=n.length||(r[k_]=v_,l.push(r))}),e.set(r,o)});var u=0;return n.forEach(function(e){return x_(e,o[u++])}),l}function M_(e,t){var n=new Map;if(e.forEach(function(e){return n.set(e,[])}),0==t.length)return n;var r=new Set(t),i=new Map;return t.forEach(function(e){var t=function e(t){if(!t)return 1;var o=i.get(t);if(o)return o;var l=t.parentNode;return o=n.has(l)?l:r.has(l)?1:e(l),i.set(t,o),o}(e);1!==t&&n.get(t).push(e)}),n}var E_="$$classes";function P_(e,t){if(e.classList)e.classList.add(t);else{var n=e[E_];n||(n=e[E_]={}),n[t]=!0}}function I_(e,t){if(e.classList)e.classList.remove(t);else{var n=e[E_];n&&delete n[t]}}function j_(e,t,n){Yv(n).onDone(function(){return e.processLeaveNode(t)})}function R_(e,t,n){var r=n.get(e);if(!r)return!1;var i=t.get(e);return i?r.forEach(function(e){return i.add(e)}):t.set(e,r),n.delete(e),!0}var L_=function(){function e(e,t,n){var r=this;this.bodyNode=e,this._driver=t,this._triggerCache={},this.onRemovalComplete=function(e,t){},this._transitionEngine=new A_(e,t,n),this._timelineEngine=new b_(e,t,n),this._transitionEngine.onRemovalComplete=function(e,t){return r.onRemovalComplete(e,t)}}return e.prototype.registerTrigger=function(e,t,n,r,i){var o=e+"-"+r,l=this._triggerCache[o];if(!l){var u=[],a=Gk(this._driver,i,u);if(u.length)throw new Error('The animation trigger "'+r+'" has failed to build due to the following errors:\n - '+u.join("\n - "));l=function(e,t){return new d_(e,t)}(r,a),this._triggerCache[o]=l}this._transitionEngine.registerTrigger(t,r,l)},e.prototype.register=function(e,t){this._transitionEngine.register(e,t)},e.prototype.destroy=function(e,t){this._transitionEngine.destroy(e,t)},e.prototype.onInsert=function(e,t,n,r){this._transitionEngine.insertNode(e,t,n,r)},e.prototype.onRemove=function(e,t,n,r){this._transitionEngine.removeNode(e,t,r||!1,n)},e.prototype.disableAnimations=function(e,t){this._transitionEngine.markElementAsDisabled(e,t)},e.prototype.process=function(e,t,n,r){if("@"==n.charAt(0)){var i=Object(N.f)(rk(n),2);this._timelineEngine.command(i[0],t,i[1],r)}else this._transitionEngine.trigger(e,t,n,r)},e.prototype.listen=function(e,t,n,r,i){if("@"==n.charAt(0)){var o=Object(N.f)(rk(n),2);return this._timelineEngine.listen(o[0],t,o[1],i)}return this._transitionEngine.listen(e,t,n,r,i)},e.prototype.flush=function(e){void 0===e&&(e=-1),this._transitionEngine.flush(e)},Object.defineProperty(e.prototype,"players",{get:function(){return this._transitionEngine.players.concat(this._timelineEngine.players)},enumerable:!0,configurable:!0}),e.prototype.whenRenderingDone=function(){return this._transitionEngine.whenRenderingDone()},e}();function N_(e,t){var n=null,r=null;return Array.isArray(t)&&t.length?(n=U_(t[0]),t.length>1&&(r=U_(t[t.length-1]))):t&&(n=U_(t)),n||r?new D_(e,n,r):null}var D_=function(){function e(t,n,r){this._element=t,this._startStyles=n,this._endStyles=r,this._state=0;var i=e.initialStylesByElement.get(t);i||e.initialStylesByElement.set(t,i={}),this._initialStyles=i}return e.prototype.start=function(){this._state<1&&(this._startStyles&&Ck(this._element,this._startStyles,this._initialStyles),this._state=1)},e.prototype.finish=function(){this.start(),this._state<2&&(Ck(this._element,this._initialStyles),this._endStyles&&(Ck(this._element,this._endStyles),this._endStyles=null),this._state=1)},e.prototype.destroy=function(){this.finish(),this._state<3&&(e.initialStylesByElement.delete(this._element),this._startStyles&&(Tk(this._element,this._startStyles),this._endStyles=null),this._endStyles&&(Tk(this._element,this._endStyles),this._endStyles=null),Ck(this._element,this._initialStyles),this._state=3)},e.initialStylesByElement=new WeakMap,e}();function U_(e){for(var t=null,n=Object.keys(e),r=0;r=this._delay&&n>=this._duration&&this.finish()},e.prototype.finish=function(){this._finished||(this._finished=!0,this._onDoneFn(),z_(this._element,this._eventFn,!0))},e.prototype.destroy=function(){var e,t,n,r;this._destroyed||(this._destroyed=!0,this.finish(),t=this._name,(r=$_(n=W_(e=this._element,"").split(","),t))>=0&&(n.splice(r,1),Q_(e,"",n.join(","))))},e}();function G_(e,t,n){Q_(e,"PlayState",n,H_(e,t))}function H_(e,t){var n=W_(e,"");return n.indexOf(",")>0?$_(n.split(","),t):$_([n],t)}function $_(e,t){for(var n=0;n=0)return n;return-1}function z_(e,t,n){n?e.removeEventListener(B_,t):e.addEventListener(B_,t)}function Q_(e,t,n,r){var i=K_+t;if(null!=r){var o=e.style[i];if(o.length){var l=o.split(",");l[r]=n,n=l.join(",")}}e.style[i]=n}function W_(e,t){return e.style[K_+t]}var q_="linear",J_=function(){function e(e,t,n,r,i,o,l,u){this.element=e,this.keyframes=t,this.animationName=n,this._duration=r,this._delay=i,this._finalStyles=l,this._specialStyles=u,this._onDoneFns=[],this._onStartFns=[],this._onDestroyFns=[],this._started=!1,this.currentSnapshot={},this._state=0,this.easing=o||q_,this.totalTime=r+i,this._buildStyler()}return e.prototype.onStart=function(e){this._onStartFns.push(e)},e.prototype.onDone=function(e){this._onDoneFns.push(e)},e.prototype.onDestroy=function(e){this._onDestroyFns.push(e)},e.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(e){return e()}),this._onDestroyFns=[])},e.prototype._flushDoneFns=function(){this._onDoneFns.forEach(function(e){return e()}),this._onDoneFns=[]},e.prototype._flushStartFns=function(){this._onStartFns.forEach(function(e){return e()}),this._onStartFns=[]},e.prototype.finish=function(){this.init(),this._state>=3||(this._state=3,this._styler.finish(),this._flushStartFns(),this._specialStyles&&this._specialStyles.finish(),this._flushDoneFns())},e.prototype.setPosition=function(e){this._styler.setPosition(e)},e.prototype.getPosition=function(){return this._styler.getPosition()},e.prototype.hasStarted=function(){return this._state>=2},e.prototype.init=function(){this._state>=1||(this._state=1,this._styler.apply(),this._delay&&this._styler.pause())},e.prototype.play=function(){this.init(),this.hasStarted()||(this._flushStartFns(),this._state=2,this._specialStyles&&this._specialStyles.start()),this._styler.resume()},e.prototype.pause=function(){this.init(),this._styler.pause()},e.prototype.restart=function(){this.reset(),this.play()},e.prototype.reset=function(){this._styler.destroy(),this._buildStyler(),this._styler.apply()},e.prototype._buildStyler=function(){var e=this;this._styler=new V_(this.element,this.animationName,this._duration,this._delay,this.easing,"forwards",function(){return e.finish()})},e.prototype.triggerCallback=function(e){var t="start"==e?this._onStartFns:this._onDoneFns;t.forEach(function(e){return e()}),t.length=0},e.prototype.beforeDestroy=function(){var e=this;this.init();var t={};if(this.hasStarted()){var n=this._state>=3;Object.keys(this._finalStyles).forEach(function(r){"offset"!=r&&(t[r]=n?e._finalStyles[r]:Dk(e.element,r))})}this.currentSnapshot=t},e}(),Y_=function(e){function t(t,n){var r=e.call(this)||this;return r.element=t,r._startingStyles={},r.__initialized=!1,r._styles=hk(n),r}return Object(N.c)(t,e),t.prototype.init=function(){var t=this;!this.__initialized&&this._startingStyles&&(this.__initialized=!0,Object.keys(this._styles).forEach(function(e){t._startingStyles[e]=t.element.style[e]}),e.prototype.init.call(this))},t.prototype.play=function(){var t=this;this._startingStyles&&(this.init(),Object.keys(this._styles).forEach(function(e){return t.element.style.setProperty(e,t._styles[e])}),e.prototype.play.call(this))},t.prototype.destroy=function(){var t=this;this._startingStyles&&(Object.keys(this._startingStyles).forEach(function(e){var n=t._startingStyles[e];n?t.element.style.setProperty(e,n):t.element.style.removeProperty(e)}),this._startingStyles=null,e.prototype.destroy.call(this))},t}(Qv),Z_=function(){function e(){this._count=0,this._head=document.querySelector("head"),this._warningIssued=!1}return e.prototype.validateStyleProperty=function(e){return ck(e)},e.prototype.matchesElement=function(e,t){return pk(e,t)},e.prototype.containsElement=function(e,t){return fk(e,t)},e.prototype.query=function(e,t,n){return dk(e,t,n)},e.prototype.computeStyle=function(e,t,n){return window.getComputedStyle(e)[t]},e.prototype.buildKeyframeElement=function(e,t,n){n=n.map(function(e){return hk(e)});var r="@keyframes "+t+" {\n",i="";n.forEach(function(e){i=" ";var t=parseFloat(e.offset);r+=""+i+100*t+"% {\n",i+=" ",Object.keys(e).forEach(function(t){var n=e[t];switch(t){case"offset":return;case"easing":return void(n&&(r+=i+"animation-timing-function: "+n+";\n"));default:return void(r+=""+i+t+": "+n+";\n")}}),r+=i+"}\n"}),r+="}\n";var o=document.createElement("style");return o.innerHTML=r,o},e.prototype.animate=function(e,t,n,r,i,o,l){void 0===o&&(o=[]),l&&this._notifyFaultyScrubber();var u=o.filter(function(e){return e instanceof J_}),a={};Rk(n,r)&&u.forEach(function(e){var t=e.currentSnapshot;Object.keys(t).forEach(function(e){return a[e]=t[e]})});var s=function(e){var t={};return e&&(Array.isArray(e)?e:[e]).forEach(function(e){Object.keys(e).forEach(function(n){"offset"!=n&&"easing"!=n&&(t[n]=e[n])})}),t}(t=Lk(e,t,a));if(0==n)return new Y_(e,s);var c="gen_css_kf_"+this._count++,p=this.buildKeyframeElement(e,c,t);document.querySelector("head").appendChild(p);var f=N_(e,t),d=new J_(e,t,c,n,r,i,s,f);return d.onDestroy(function(){var e;(e=p).parentNode.removeChild(e)}),d},e.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)},e}(),X_=function(){function e(e,t,n,r){this.element=e,this.keyframes=t,this.options=n,this._specialStyles=r,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 e.prototype._onFinish=function(){this._finished||(this._finished=!0,this._onDoneFns.forEach(function(e){return e()}),this._onDoneFns=[])},e.prototype.init=function(){this._buildPlayer(),this._preparePlayerBeforeStart()},e.prototype._buildPlayer=function(){var e=this;if(!this._initialized){this._initialized=!0;var t=this.keyframes;this.domPlayer=this._triggerWebAnimation(this.element,t,this.options),this._finalKeyframe=t.length?t[t.length-1]:{},this.domPlayer.addEventListener("finish",function(){return e._onFinish()})}},e.prototype._preparePlayerBeforeStart=function(){this._delay?this._resetDomPlayerState():this.domPlayer.pause()},e.prototype._triggerWebAnimation=function(e,t,n){return e.animate(t,n)},e.prototype.onStart=function(e){this._onStartFns.push(e)},e.prototype.onDone=function(e){this._onDoneFns.push(e)},e.prototype.onDestroy=function(e){this._onDestroyFns.push(e)},e.prototype.play=function(){this._buildPlayer(),this.hasStarted()||(this._onStartFns.forEach(function(e){return e()}),this._onStartFns=[],this._started=!0,this._specialStyles&&this._specialStyles.start()),this.domPlayer.play()},e.prototype.pause=function(){this.init(),this.domPlayer.pause()},e.prototype.finish=function(){this.init(),this._specialStyles&&this._specialStyles.finish(),this._onFinish(),this.domPlayer.finish()},e.prototype.reset=function(){this._resetDomPlayerState(),this._destroyed=!1,this._finished=!1,this._started=!1},e.prototype._resetDomPlayerState=function(){this.domPlayer&&this.domPlayer.cancel()},e.prototype.restart=function(){this.reset(),this.play()},e.prototype.hasStarted=function(){return this._started},e.prototype.destroy=function(){this._destroyed||(this._destroyed=!0,this._resetDomPlayerState(),this._onFinish(),this._specialStyles&&this._specialStyles.destroy(),this._onDestroyFns.forEach(function(e){return e()}),this._onDestroyFns=[])},e.prototype.setPosition=function(e){this.domPlayer.currentTime=e*this.time},e.prototype.getPosition=function(){return this.domPlayer.currentTime/this.time},Object.defineProperty(e.prototype,"totalTime",{get:function(){return this._delay+this._duration},enumerable:!0,configurable:!0}),e.prototype.beforeDestroy=function(){var e=this,t={};this.hasStarted()&&Object.keys(this._finalKeyframe).forEach(function(n){"offset"!=n&&(t[n]=e._finished?e._finalKeyframe[n]:Dk(e.element,n))}),this.currentSnapshot=t},e.prototype.triggerCallback=function(e){var t="start"==e?this._onStartFns:this._onDoneFns;t.forEach(function(e){return e()}),t.length=0},e}(),ew=function(){function e(){this._isNativeImpl=/\{\s*\[native\s+code\]\s*\}/.test(tw().toString()),this._cssKeyframesDriver=new Z_}return e.prototype.validateStyleProperty=function(e){return ck(e)},e.prototype.matchesElement=function(e,t){return pk(e,t)},e.prototype.containsElement=function(e,t){return fk(e,t)},e.prototype.query=function(e,t,n){return dk(e,t,n)},e.prototype.computeStyle=function(e,t,n){return window.getComputedStyle(e)[t]},e.prototype.overrideWebAnimationsSupport=function(e){this._isNativeImpl=e},e.prototype.animate=function(e,t,n,r,i,o,l){if(void 0===o&&(o=[]),!l&&!this._isNativeImpl)return this._cssKeyframesDriver.animate(e,t,n,r,i,o);var u={duration:n,delay:r,fill:0==r?"both":"forwards"};i&&(u.easing=i);var a={},s=o.filter(function(e){return e instanceof X_});Rk(n,r)&&s.forEach(function(e){var t=e.currentSnapshot;Object.keys(t).forEach(function(e){return a[e]=t[e]})});var c=N_(e,t=Lk(e,t=t.map(function(e){return wk(e,!1)}),a));return new X_(e,t,u,c)},e}();function tw(){return"undefined"!=typeof window&&void 0!==window.document&&Element.prototype.animate||{}}var nw=function(e){function t(t,n){var i=e.call(this)||this;return i._nextAnimationId=0,i._renderer=t.createRenderer(n.body,{id:"0",encapsulation:r.Q.None,styles:[],data:{animation:[]}}),i}return Object(N.c)(t,e),t.prototype.build=function(e){var t=this._nextAnimationId.toString();this._nextAnimationId++;var n=Array.isArray(e)?Hv(e):e;return ow(this._renderer,null,t,"register",[n]),new rw(t,this._renderer)},t}(Bv),rw=function(e){function t(t,n){var r=e.call(this)||this;return r._id=t,r._renderer=n,r}return Object(N.c)(t,e),t.prototype.create=function(e,t){return new iw(this._id,e,t||{},this._renderer)},t}(Vv),iw=function(){function e(e,t,n,r){this.id=e,this.element=t,this._renderer=r,this.parentPlayer=null,this._started=!1,this.totalTime=0,this._command("create",n)}return e.prototype._listen=function(e,t){return this._renderer.listen(this.element,"@@"+this.id+":"+e,t)},e.prototype._command=function(e){for(var t=[],n=1;n=0&&e0){var r=e.slice(0,n),i=r.toLowerCase(),o=e.slice(n+1).trim();t.maybeSetNormalizedName(r,i),t.headers.has(i)?t.headers.get(i).push(o):t.headers.set(i,[o])}})}:function(){t.headers=new Map,Object.keys(e).forEach(function(n){var r=e[n],i=n.toLowerCase();"string"==typeof r&&(r=[r]),r.length>0&&(t.headers.set(i,r),t.maybeSetNormalizedName(n,i))})}:this.headers=new Map}return e.prototype.has=function(e){return this.init(),this.headers.has(e.toLowerCase())},e.prototype.get=function(e){this.init();var t=this.headers.get(e.toLowerCase());return t&&t.length>0?t[0]:null},e.prototype.keys=function(){return this.init(),Array.from(this.normalizedNames.values())},e.prototype.getAll=function(e){return this.init(),this.headers.get(e.toLowerCase())||null},e.prototype.append=function(e,t){return this.clone({name:e,value:t,op:"a"})},e.prototype.set=function(e,t){return this.clone({name:e,value:t,op:"s"})},e.prototype.delete=function(e,t){return this.clone({name:e,value:t,op:"d"})},e.prototype.maybeSetNormalizedName=function(e,t){this.normalizedNames.has(t)||this.normalizedNames.set(t,e)},e.prototype.init=function(){var t=this;this.lazyInit&&(this.lazyInit instanceof e?this.copyFrom(this.lazyInit):this.lazyInit(),this.lazyInit=null,this.lazyUpdate&&(this.lazyUpdate.forEach(function(e){return t.applyUpdate(e)}),this.lazyUpdate=null))},e.prototype.copyFrom=function(e){var t=this;e.init(),Array.from(e.headers.keys()).forEach(function(n){t.headers.set(n,e.headers.get(n)),t.normalizedNames.set(n,e.normalizedNames.get(n))})},e.prototype.clone=function(t){var n=new e;return n.lazyInit=this.lazyInit&&this.lazyInit instanceof e?this.lazyInit:this,n.lazyUpdate=(this.lazyUpdate||[]).concat([t]),n},e.prototype.applyUpdate=function(e){var t=e.name.toLowerCase();switch(e.op){case"a":case"s":var n=e.value;if("string"==typeof n&&(n=[n]),0===n.length)return;this.maybeSetNormalizedName(e.name,t);var r=("a"===e.op?this.headers.get(t):void 0)||[];r.push.apply(r,Object(N.g)(n)),this.headers.set(t,r);break;case"d":var i=e.value;if(i){var o=this.headers.get(t);if(!o)return;0===(o=o.filter(function(e){return-1===i.indexOf(e)})).length?(this.headers.delete(t),this.normalizedNames.delete(t)):this.headers.set(t,o)}else this.headers.delete(t),this.normalizedNames.delete(t)}},e.prototype.forEach=function(e){var t=this;this.init(),Array.from(this.normalizedNames.keys()).forEach(function(n){return e(t.normalizedNames.get(n),t.headers.get(n))})},e}(),gw=function(){function e(){}return e.prototype.encodeKey=function(e){return vw(e)},e.prototype.encodeValue=function(e){return vw(e)},e.prototype.decodeKey=function(e){return decodeURIComponent(e)},e.prototype.decodeValue=function(e){return decodeURIComponent(e)},e}();function vw(e){return encodeURIComponent(e).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 kw=function(){function e(e){var t,n,r,i=this;if(void 0===e&&(e={}),this.updates=null,this.cloneFrom=null,this.encoder=e.encoder||new gw,e.fromString){if(e.fromObject)throw new Error("Cannot specify both fromString and fromObject.");this.map=(t=e.fromString,n=this.encoder,r=new Map,t.length>0&&t.split("&").forEach(function(e){var t=e.indexOf("="),i=Object(N.f)(-1==t?[n.decodeKey(e),""]:[n.decodeKey(e.slice(0,t)),n.decodeValue(e.slice(t+1))],2),o=i[0],l=i[1],u=r.get(o)||[];u.push(l),r.set(o,u)}),r)}else e.fromObject?(this.map=new Map,Object.keys(e.fromObject).forEach(function(t){var n=e.fromObject[t];i.map.set(t,Array.isArray(n)?n:[n])})):this.map=null}return e.prototype.has=function(e){return this.init(),this.map.has(e)},e.prototype.get=function(e){this.init();var t=this.map.get(e);return t?t[0]:null},e.prototype.getAll=function(e){return this.init(),this.map.get(e)||null},e.prototype.keys=function(){return this.init(),Array.from(this.map.keys())},e.prototype.append=function(e,t){return this.clone({param:e,value:t,op:"a"})},e.prototype.set=function(e,t){return this.clone({param:e,value:t,op:"s"})},e.prototype.delete=function(e,t){return this.clone({param:e,value:t,op:"d"})},e.prototype.toString=function(){var e=this;return this.init(),this.keys().map(function(t){var n=e.encoder.encodeKey(t);return e.map.get(t).map(function(t){return n+"="+e.encoder.encodeValue(t)}).join("&")}).join("&")},e.prototype.clone=function(t){var n=new e({encoder:this.encoder});return n.cloneFrom=this.cloneFrom||this,n.updates=(this.updates||[]).concat([t]),n},e.prototype.init=function(){var e=this;null===this.map&&(this.map=new Map),null!==this.cloneFrom&&(this.cloneFrom.init(),this.cloneFrom.keys().forEach(function(t){return e.map.set(t,e.cloneFrom.map.get(t))}),this.updates.forEach(function(t){switch(t.op){case"a":case"s":var n=("a"===t.op?e.map.get(t.param):void 0)||[];n.push(t.value),e.map.set(t.param,n);break;case"d":if(void 0===t.value){e.map.delete(t.param);break}var r=e.map.get(t.param)||[],i=r.indexOf(t.value);-1!==i&&r.splice(i,1),r.length>0?e.map.set(t.param,r):e.map.delete(t.param)}}),this.cloneFrom=this.updates=null)},e}();function _w(e){return"undefined"!=typeof ArrayBuffer&&e instanceof ArrayBuffer}function ww(e){return"undefined"!=typeof Blob&&e instanceof Blob}function Ow(e){return"undefined"!=typeof FormData&&e instanceof FormData}var Aw=function(){function e(e,t,n,r){var i;if(this.url=t,this.body=null,this.reportProgress=!1,this.withCredentials=!1,this.responseType="json",this.method=e.toUpperCase(),function(e){switch(e){case"DELETE":case"GET":case"HEAD":case"OPTIONS":case"JSONP":return!1;default:return!0}}(this.method)||r?(this.body=void 0!==n?n:null,i=r):i=n,i&&(this.reportProgress=!!i.reportProgress,this.withCredentials=!!i.withCredentials,i.responseType&&(this.responseType=i.responseType),i.headers&&(this.headers=i.headers),i.params&&(this.params=i.params)),this.headers||(this.headers=new mw),this.params){var o=this.params.toString();if(0===o.length)this.urlWithParams=t;else{var l=t.indexOf("?");this.urlWithParams=t+(-1===l?"?":l=200&&this.status<300}}(),xw=function(e){function t(t){void 0===t&&(t={});var n=e.call(this,t)||this;return n.type=Cw.ResponseHeader,n}return Object(N.c)(t,e),t.prototype.clone=function(e){return void 0===e&&(e={}),new t({headers:e.headers||this.headers,status:void 0!==e.status?e.status:this.status,statusText:e.statusText||this.statusText,url:e.url||this.url||void 0})},t}(Tw),Sw=function(e){function t(t){void 0===t&&(t={});var n=e.call(this,t)||this;return n.type=Cw.Response,n.body=void 0!==t.body?t.body:null,n}return Object(N.c)(t,e),t.prototype.clone=function(e){return void 0===e&&(e={}),new t({body:void 0!==e.body?e.body:this.body,headers:e.headers||this.headers,status:void 0!==e.status?e.status:this.status,statusText:e.statusText||this.statusText,url:e.url||this.url||void 0})},t}(Tw),Mw=function(e){function t(t){var n=e.call(this,t,0,"Unknown Error")||this;return n.name="HttpErrorResponse",n.ok=!1,n.message=n.status>=200&&n.status<300?"Http failure during parsing for "+(t.url||"(unknown url)"):"Http failure response for "+(t.url||"(unknown url)")+": "+t.status+" "+t.statusText,n.error=t.error||null,n}return Object(N.c)(t,e),t}(Tw);function Ew(e,t){return{body:t,headers:e.headers,observe:e.observe,params:e.params,reportProgress:e.reportProgress,responseType:e.responseType,withCredentials:e.withCredentials}}var Pw=function(){function e(e){this.handler=e}return e.prototype.request=function(e,t,n){var r,i=this;if(void 0===n&&(n={}),e instanceof Aw)r=e;else{var o;o=n.headers instanceof mw?n.headers:new mw(n.headers);var l=void 0;n.params&&(l=n.params instanceof kw?n.params:new kw({fromObject:n.params})),r=new Aw(e,t,void 0!==n.body?n.body:null,{headers:o,params:l,reportProgress:n.reportProgress,responseType:n.responseType||"json",withCredentials:n.withCredentials})}var u=Object(_e.a)(r).pipe(Object(dt.a)(function(e){return i.handler.handle(e)}));if(e instanceof Aw||"events"===n.observe)return u;var a=u.pipe(Object(Ve.a)(function(e){return e instanceof Sw}));switch(n.observe||"body"){case"body":switch(r.responseType){case"arraybuffer":return a.pipe(Object(Fe.a)(function(e){if(null!==e.body&&!(e.body instanceof ArrayBuffer))throw new Error("Response is not an ArrayBuffer.");return e.body}));case"blob":return a.pipe(Object(Fe.a)(function(e){if(null!==e.body&&!(e.body instanceof Blob))throw new Error("Response is not a Blob.");return e.body}));case"text":return a.pipe(Object(Fe.a)(function(e){if(null!==e.body&&"string"!=typeof e.body)throw new Error("Response is not a string.");return e.body}));case"json":default:return a.pipe(Object(Fe.a)(function(e){return e.body}))}case"response":return a;default:throw new Error("Unreachable: unhandled observe type "+n.observe+"}")}},e.prototype.delete=function(e,t){return void 0===t&&(t={}),this.request("DELETE",e,t)},e.prototype.get=function(e,t){return void 0===t&&(t={}),this.request("GET",e,t)},e.prototype.head=function(e,t){return void 0===t&&(t={}),this.request("HEAD",e,t)},e.prototype.jsonp=function(e,t){return this.request("JSONP",e,{params:(new kw).append(t,"JSONP_CALLBACK"),observe:"body",responseType:"json"})},e.prototype.options=function(e,t){return void 0===t&&(t={}),this.request("OPTIONS",e,t)},e.prototype.patch=function(e,t,n){return void 0===n&&(n={}),this.request("PATCH",e,Ew(n,t))},e.prototype.post=function(e,t,n){return void 0===n&&(n={}),this.request("POST",e,Ew(n,t))},e.prototype.put=function(e,t,n){return void 0===n&&(n={}),this.request("PUT",e,Ew(n,t))},e}(),Iw=function(){function e(e,t){this.next=e,this.interceptor=t}return e.prototype.handle=function(e){return this.interceptor.intercept(e,this.next)},e}(),jw=new r.q("HTTP_INTERCEPTORS"),Rw=function(){function e(){}return e.prototype.intercept=function(e,t){return t.handle(e)},e}(),Lw=/^\)\]\}',?\n/,Nw=function(){return function(){}}(),Dw=function(){function e(){}return e.prototype.build=function(){return new XMLHttpRequest},e}(),Uw=function(){function e(e){this.xhrFactory=e}return e.prototype.handle=function(e){var t=this;if("JSONP"===e.method)throw new Error("Attempted to construct Jsonp request without JsonpClientModule installed.");return new Ae.a(function(n){var r=t.xhrFactory.build();if(r.open(e.method,e.urlWithParams),e.withCredentials&&(r.withCredentials=!0),e.headers.forEach(function(e,t){return r.setRequestHeader(e,t.join(","))}),e.headers.has("Accept")||r.setRequestHeader("Accept","application/json, text/plain, */*"),!e.headers.has("Content-Type")){var i=e.detectContentTypeHeader();null!==i&&r.setRequestHeader("Content-Type",i)}if(e.responseType){var o=e.responseType.toLowerCase();r.responseType="json"!==o?o:"text"}var l=e.serializeBody(),u=null,a=function(){if(null!==u)return u;var t=1223===r.status?204:r.status,n=r.statusText||"OK",i=new mw(r.getAllResponseHeaders()),o=function(e){return"responseURL"in e&&e.responseURL?e.responseURL:/^X-Request-URL:/m.test(e.getAllResponseHeaders())?e.getResponseHeader("X-Request-URL"):null}(r)||e.url;return u=new xw({headers:i,status:t,statusText:n,url:o})},s=function(){var t=a(),i=t.headers,o=t.status,l=t.statusText,u=t.url,s=null;204!==o&&(s=void 0===r.response?r.responseText:r.response),0===o&&(o=s?200:0);var c=o>=200&&o<300;if("json"===e.responseType&&"string"==typeof s){var p=s;s=s.replace(Lw,"");try{s=""!==s?JSON.parse(s):null}catch(f){s=p,c&&(c=!1,s={error:f,text:s})}}c?(n.next(new Sw({body:s,headers:i,status:o,statusText:l,url:u||void 0})),n.complete()):n.error(new Mw({error:s,headers:i,status:o,statusText:l,url:u||void 0}))},c=function(e){var t=a().url,i=new Mw({error:e,status:r.status||0,statusText:r.statusText||"Unknown Error",url:t||void 0});n.error(i)},p=!1,f=function(t){p||(n.next(a()),p=!0);var i={type:Cw.DownloadProgress,loaded:t.loaded};t.lengthComputable&&(i.total=t.total),"text"===e.responseType&&r.responseText&&(i.partialText=r.responseText),n.next(i)},d=function(e){var t={type:Cw.UploadProgress,loaded:e.loaded};e.lengthComputable&&(t.total=e.total),n.next(t)};return r.addEventListener("load",s),r.addEventListener("error",c),e.reportProgress&&(r.addEventListener("progress",f),null!==l&&r.upload&&r.upload.addEventListener("progress",d)),r.send(l),n.next({type:Cw.Sent}),function(){r.removeEventListener("error",c),r.removeEventListener("load",s),e.reportProgress&&(r.removeEventListener("progress",f),null!==l&&r.upload&&r.upload.removeEventListener("progress",d)),r.abort()}})},e}(),Fw=new r.q("XSRF_COOKIE_NAME"),Kw=new r.q("XSRF_HEADER_NAME"),Bw=function(){return function(){}}(),Vw=function(){function e(e,t,n){this.doc=e,this.platform=t,this.cookieName=n,this.lastCookieString="",this.lastToken=null,this.parseCount=0}return e.prototype.getToken=function(){if("server"===this.platform)return null;var e=this.doc.cookie||"";return e!==this.lastCookieString&&(this.parseCount++,this.lastToken=Y(e,this.cookieName),this.lastCookieString=e),this.lastToken},e}(),Gw=function(){function e(e,t){this.tokenService=e,this.headerName=t}return e.prototype.intercept=function(e,t){var n=e.url.toLowerCase();if("GET"===e.method||"HEAD"===e.method||n.startsWith("http://")||n.startsWith("https://"))return t.handle(e);var r=this.tokenService.getToken();return null===r||e.headers.has(this.headerName)||(e=e.clone({headers:e.headers.set(this.headerName,r)})),t.handle(e)},e}(),Hw=function(){function e(e,t){this.backend=e,this.injector=t,this.chain=null}return e.prototype.handle=function(e){if(null===this.chain){var t=this.injector.get(jw,[]);this.chain=t.reduceRight(function(e,t){return new Iw(e,t)},this.backend)}return this.chain.handle(e)},e}(),$w=function(){function e(){}var t;return t=e,e.disable=function(){return{ngModule:t,providers:[{provide:Gw,useClass:Rw}]}},e.withOptions=function(e){return void 0===e&&(e={}),{ngModule:t,providers:[e.cookieName?{provide:Fw,useValue:e.cookieName}:[],e.headerName?{provide:Kw,useValue:e.headerName}:[]]}},e}(),zw=function(){return function(){}}(),Qw=function(){function e(e,t){this.store=e,this.router=t}return e.prototype.canActivate=function(){var e=this;return this.store.select(Uu).pipe(gt(function(t){t&&e.router.navigate(["/keymap",t.abbreviation])}),Object(st.a)(function(){return Object(_e.a)(!1)}))},e}(),Ww=function(){function e(e,t){this.store=e,this.router=t}return e.prototype.canActivate=function(){var e=this;return this.store.select(Ku).pipe(Object(Fe.a)(function(t){var n=t.length>0;return n&&e.router.navigate(["/macro",t[0].id]),!n}))},e}(),qw=function(){function e(e,t){this.store=e,this.router=t}return e.prototype.canActivate=function(){var e=this;return this.store.select(pa).pipe(gt(function(t){t&&e.router.navigate(["/"])}),Object(Fe.a)(function(e){return!e}))},e}(),Jw=function(){function e(e,t){this.store=e,this.router=t}return e.prototype.canActivate=function(){var e=this;return this.store.select(pa).pipe(gt(function(t){t||e.router.navigate(["/detection"])}))},e}(),Yw=function(){function e(e,t){this.store=e,this.router=t}return e.prototype.canActivate=function(){var e=this;return this.store.select(fa).pipe(gt(function(t){t&&e.router.navigate(["/detection"])}),Object(Fe.a)(function(e){return!e}))},e}(),Zw=function(){function e(e,t){this.store=e,this.router=t}return e.prototype.canActivate=function(){var e=this;return this.store.select(fa).pipe(gt(function(t){t||e.router.navigate(["/privilege"])}))},e}(),Xw=function(){function e(e,t){this.store=e,this.router=t}return e.prototype.canActivate=function(){var e=this;return this.store.select(Yu).pipe(gt(function(t){t||e.router.navigate(["/loading"])}))},e}(),eO=function(){function e(e,t){this.store=e,this.router=t}return e.prototype.canActivate=function(){var e=this;return this.store.select(Yu).pipe(gt(function(t){t&&e.router.navigate(["/"])}),Object(Fe.a)(function(e){return!e}))},e}(),tO=function(){function e(e,t){this.store=e,this.router=t}return e.prototype.canActivate=function(){var e=this;return this.store.select(wa).pipe(gt(function(t){t||e.router.navigate(["/"])}))},e}(),nO=n("A5yv"),rO=function(){return function(){}}(),iO=n("60iU"),oO=function(){function e(){}return e.prototype.call=function(e,t){return t.subscribe(new lO(e))},e}(),lO=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return N.c(t,e),t.prototype._next=function(e){},t}(Ge.a),uO=function(){function e(){}return e.prototype.call=function(e,t){return t.subscribe(new aO(e))},e}(),aO=function(e){function t(t){return e.call(this,t)||this}return N.c(t,e),t.prototype._next=function(e){this.destination.next(iO.a.createNext(e))},t.prototype._error=function(e){var t=this.destination;t.next(iO.a.createError(e)),t.complete()},t.prototype._complete=function(){var e=this.destination;e.next(iO.a.createComplete()),e.complete()},t}(Ge.a);function sO(e,t,n,r){return function(i){return i.lift(new cO(e,t,n,r))}}var cO=function(){function e(e,t,n,r){this.keySelector=e,this.elementSelector=t,this.durationSelector=n,this.subjectSelector=r}return e.prototype.call=function(e,t){return t.subscribe(new pO(e,this.keySelector,this.elementSelector,this.durationSelector,this.subjectSelector))},e}(),pO=function(e){function t(t,n,r,i,o){var l=e.call(this,t)||this;return l.keySelector=n,l.elementSelector=r,l.durationSelector=i,l.subjectSelector=o,l.groups=null,l.attemptedToUnsubscribe=!1,l.count=0,l}return N.c(t,e),t.prototype._next=function(e){var t;try{t=this.keySelector(e)}catch(n){return void this.error(n)}this._group(e,t)},t.prototype._group=function(e,t){var n=this.groups;n||(n=this.groups=new Map);var r,i=n.get(t);if(this.elementSelector)try{r=this.elementSelector(e)}catch(u){this.error(u)}else r=e;if(!i){i=this.subjectSelector?this.subjectSelector():new Ue.a,n.set(t,i);var o=new dO(t,i,this);if(this.destination.next(o),this.durationSelector){var l=void 0;try{l=this.durationSelector(new dO(t,i))}catch(u){return void this.error(u)}this.add(l.subscribe(new fO(t,i,this)))}}i.closed||i.next(r)},t.prototype._error=function(e){var t=this.groups;t&&(t.forEach(function(t,n){t.error(e)}),t.clear()),this.destination.error(e)},t.prototype._complete=function(){var e=this.groups;e&&(e.forEach(function(e,t){e.complete()}),e.clear()),this.destination.complete()},t.prototype.removeGroup=function(e){this.groups.delete(e)},t.prototype.unsubscribe=function(){this.closed||(this.attemptedToUnsubscribe=!0,0===this.count&&e.prototype.unsubscribe.call(this))},t}(Ge.a),fO=function(e){function t(t,n,r){var i=e.call(this,n)||this;return i.key=t,i.group=n,i.parent=r,i}return N.c(t,e),t.prototype._next=function(e){this.complete()},t.prototype._unsubscribe=function(){var e=this.parent,t=this.key;this.key=this.parent=null,e&&e.removeGroup(t)},t}(Ge.a),dO=function(e){function t(t,n,r){var i=e.call(this)||this;return i.key=t,i.groupSubject=n,i.refCountSubscription=r,i}return N.c(t,e),t.prototype._subscribe=function(e){var t=new _t.a,n=this.refCountSubscription,r=this.groupSubject;return n&&!n.closed&&t.add(new hO(n)),t.add(r.subscribe(e)),t},t}(Ae.a),hO=function(e){function t(t){var n=e.call(this)||this;return n.parent=t,t.count++,n}return N.c(t,e),t.prototype.unsubscribe=function(){var t=this.parent;t.closed||this.closed||(e.prototype.unsubscribe.call(this),t.count-=1,0===t.count&&t.attemptedToUnsubscribe&&t.unsubscribe())},t}(_t.a),yO=n("rPjj"),bO=function(){function e(e){this.project=e}return e.prototype.call=function(e,t){return t.subscribe(new mO(e,this.project))},e}(),mO=function(e){function t(t,n){var r=e.call(this,t)||this;return r.project=n,r.hasSubscription=!1,r.hasCompleted=!1,r.index=0,r}return N.c(t,e),t.prototype._next=function(e){this.hasSubscription||this.tryNext(e)},t.prototype.tryNext=function(e){var t,n=this.index++;try{t=this.project(e,n)}catch(r){return void this.destination.error(r)}this.hasSubscription=!0,this._innerSub(t,e,n)},t.prototype._innerSub=function(e,t,n){var r=new yO.a(this,void 0,void 0);this.destination.add(r),Object(Ee.a)(this,e,t,n,r)},t.prototype._complete=function(){this.hasCompleted=!0,this.hasSubscription||this.destination.complete(),this.unsubscribe()},t.prototype.notifyNext=function(e,t,n,r,i){this.destination.next(t)},t.prototype.notifyError=function(e){this.destination.error(e)},t.prototype.notifyComplete=function(e){this.destination.remove(e),this.hasSubscription=!1,this.hasCompleted&&this.destination.complete()},t}(Me.a),gO=function(){function e(){}return e.prototype.call=function(e,t){return t.subscribe(new vO(e))},e}(),vO=function(e){function t(t){return e.call(this,t)||this}return N.c(t,e),t.prototype._next=function(e){e.observe(this.destination)},t}(Ge.a),kO="__@ngrx/effects_create__";function _O(e){return Object.getOwnPropertyNames(e).filter(function(t){return e[t]&&e[t].hasOwnProperty(kO)}).map(function(t){var n=e[t][kO];return Object(N.a)({propertyName:t},n)})}function wO(e){return Object.getPrototypeOf(e)}var OO="__@ngrx/effects__";function AO(e){var t=void 0===e?{}:e,n=t.dispatch,r=void 0===n||n,i=t.resubscribeOnError,o=void 0===i||i;return function(e,t){var n,i,l;n=[{propertyName:t,dispatch:r,resubscribeOnError:o}],l=(i=e.constructor).hasOwnProperty(OO)?i[OO]:Object.defineProperty(i,OO,{value:[]})[OO],Array.prototype.push.apply(l,n)}}function CO(e){return Object(L.t)(TO,wO)(e)}function TO(e){return e.constructor.hasOwnProperty(OO)?e.constructor[OO]:[]}var xO=function(e){function t(t){var n=e.call(this)||this;return t&&(n.source=t),n}var n;return Object(N.c)(t,e),n=t,t.prototype.lift=function(e){var t=new n;return t.source=this,t.operator=e,t},t}(Ae.a);function SO(){for(var e=[],t=0;t=0}function tA(e){var t=e.index,n=e.period,r=e.subscriber;if(r.next(t),!r.closed){if(-1===n)return r.complete();e.index=t+1,this.schedule(e,n)}}var nA=function(){function e(e,t,n,r,i,o,l){var u=this;this.actions$=e,this.router=t,this.appRendererService=n,this.deviceRendererService=r,this.store=i,this.dataStorageRepository=o,this.defaultUserConfigurationService=l,this.deviceConnectionStateChange$=this.actions$.pipe(SO(c.ConnectionStateChanged),Object(Mo.a)(this.store.select(Ma),this.store.select(pa)),gt(function(e){var t=e[1],n=e[0].payload;if(!t.state||!t.state.url.startsWith("/device/firmware"))return u.router.navigate(n.hasPermission?n.bootloaderActive?["/recovery-device"]:n.connected&&n.zeroInterfaceAvailable?["/"]:["/detection"]:["/privilege"])}),Object(Mp.a)(function(e,t){var n=e[0],r=t[0];return e[2]===t[2]&&n.payload.hasPermission===r.payload.hasPermission&&n.payload.zeroInterfaceAvailable===r.payload.zeroInterfaceAvailable}),Object(st.a)(function(e){var t=e[0].payload;return e[2]&&t.hasPermission&&t.zeroInterfaceAvailable?Object(_e.a)(new bl):Ne.a})),this.setPrivilegeOnLinux$=this.actions$.pipe(SO(c.SetPrivilegeOnLinux),gt(function(){u.deviceRendererService.setPrivilegeOnLinux()})),this.setPrivilegeOnLinuxReply$=this.actions$.pipe(SO(c.SetPrivilegeOnLinuxReply),Object(Fe.a)(function(e){return e.payload}),Object(st.a)(function(e){return e.success?(u.appRendererService.getAppStartInfo(),Ne.a):Object(_e.a)(new Ou(e.error))})),this.saveConfiguration$=this.actions$.pipe(SO(c.SaveConfiguration),Object(Mo.a)(this.store),gt(function(e){var t=e[1];setTimeout(function(){return u.sendUserConfigToKeyboard(t.userConfiguration.userConfiguration,t.app.hardwareConfig)},100)}),Object(st.a)(function(){return Ne.a})),this.saveConfigurationReply$=this.actions$.pipe(SO(c.SaveConfigurationReply),Object(Fe.a)(function(e){return e.payload}),Object(lt.a)(function(e){return e.success?[new m]:[new hu({type:$o.NotificationType.Error,message:e.error.message}),new g]})),this.autoHideSaveToKeyboardButton$=this.actions$.pipe(SO(c.SaveToKeyboardSuccess),Object(Mo.a)(this.store),Object(st.a)(function(e){var t=e[1];return function(e,t,n){void 0===e&&(e=0);var r=-1;return eA(void 0)?r=Number(void 0)<1?1:Number(void 0):Object(xe.a)(void 0)&&(n=void 0),Object(xe.a)(n)||(n=XO.a),new Ae.a(function(t){var i=eA(e)?e:+e-n.now();return n.schedule(tA,i,{index:0,period:r,subscriber:t})})}(1e3).pipe(Object(lt.a)(function(){var e=[new v];return t.device.hasBackupUserConfiguration&&(e.push(new P),u.router.navigate(["/"])),e}))})),this.resetMouseSpeedSettings$=this.actions$.pipe(SO(c.ResetPcMouseSpeedSettings,c.ResetMacMouseSpeedSettings),Object(Mo.a)(this.store.select(Nu)),Object(Fe.a)(function(e){return new wl(e[1])})),this.resetUserConfiguration$=this.actions$.pipe(SO(c.ResetUserConfiguration),Object(st.a)(function(){var e=u.defaultUserConfigurationService.getDefault();return Object(_e.a)(new wl(e))})),this.saveResetUserConfigurationToDevice$=this.actions$.pipe(SO(yl.LoadResetUserConfiguration,yl.ApplyUserConfigurationFromFile),Object(Fe.a)(function(e){return e.payload}),Object(st.a)(function(e){return u.dataStorageRepository.saveConfig(e),Object(_e.a)(new h)})),this.updateFirmware$=this.actions$.pipe(SO(c.UpdateFirmware),gt(function(){return u.deviceRendererService.updateFirmware({versionInformation:jl()})})),this.updateFirmwareWith$=this.actions$.pipe(SO(c.UpdateFirmwareWith),Object(Fe.a)(function(e){return e.payload}),gt(function(e){return u.deviceRendererService.updateFirmware({versionInformation:jl(),firmware:e})})),this.updateFirmwareReply$=this.actions$.pipe(SO(c.UpdateFirmwareReply),Object(Fe.a)(function(e){return e.payload}),Object(st.a)(function(e){return e.success?Object(_e.a)(new A(e.modules)):Object(_e.a)(new C({error:e.error,modules:e.modules}))})),this.restoreUserConfiguration$=this.actions$.pipe(SO(c.RestoreConfigurationFromBackup),Object(Fe.a)(function(){return new h})),this.recoveryDevice$=this.actions$.pipe(SO(c.RecoveryDevice),gt(function(){return u.deviceRendererService.recoveryDevice()})),this.enableUsbStackTest$=this.actions$.pipe(SO(c.EnableUsbStackTest),gt(function(){return u.deviceRendererService.enableUsbStackTest()})),this.startConnectionPoller$=this.actions$.pipe(SO(c.StartConnectionPoller),gt(function(){return u.deviceRendererService.startConnectionPoller()}))}return e.prototype.sendUserConfigToKeyboard=function(e,t){this.deviceRendererService.saveUserConfiguration({uniqueId:t&&t.uniqueId,configuration:e.toJsonObject()})},N.b([AO(),N.d("design:type",Ae.a)],e.prototype,"deviceConnectionStateChange$",void 0),N.b([AO({dispatch:!1}),N.d("design:type",Ae.a)],e.prototype,"setPrivilegeOnLinux$",void 0),N.b([AO(),N.d("design:type",Ae.a)],e.prototype,"setPrivilegeOnLinuxReply$",void 0),N.b([AO({dispatch:!1}),N.d("design:type",Ae.a)],e.prototype,"saveConfiguration$",void 0),N.b([AO(),N.d("design:type",Ae.a)],e.prototype,"saveConfigurationReply$",void 0),N.b([AO(),N.d("design:type",Ae.a)],e.prototype,"autoHideSaveToKeyboardButton$",void 0),N.b([AO(),N.d("design:type",Ae.a)],e.prototype,"resetMouseSpeedSettings$",void 0),N.b([AO(),N.d("design:type",Ae.a)],e.prototype,"resetUserConfiguration$",void 0),N.b([AO(),N.d("design:type",Object)],e.prototype,"saveResetUserConfigurationToDevice$",void 0),N.b([AO({dispatch:!1}),N.d("design:type",Object)],e.prototype,"updateFirmware$",void 0),N.b([AO({dispatch:!1}),N.d("design:type",Object)],e.prototype,"updateFirmwareWith$",void 0),N.b([AO(),N.d("design:type",Object)],e.prototype,"updateFirmwareReply$",void 0),N.b([AO(),N.d("design:type",Object)],e.prototype,"restoreUserConfiguration$",void 0),N.b([AO({dispatch:!1}),N.d("design:type",Object)],e.prototype,"recoveryDevice$",void 0),N.b([AO({dispatch:!1}),N.d("design:type",Object)],e.prototype,"enableUsbStackTest$",void 0),N.b([AO({dispatch:!1}),N.d("design:type",Object)],e.prototype,"startConnectionPoller$",void 0),e}(),rA=function(){function e(e,t,n){var r=this;this.store=e,this.actions$=t,this.http=n,this.getContributors$=this.actions$.pipe(SO(ql.GetAgentContributors),Object(Mo.a)(this.store.select(na)),Object(Fe.a)(function(e){var t=e[1];return 0===t.contributors.length?new Yl:new Zl(t.contributors)})),this.fetchContributors$=this.actions$.pipe(SO(ql.FetchAgentContributors),Object(lt.a)(function(){return r.http.get($o.Constants.AGENT_CONTRIBUTORS_GITHUB_API_URL)}),Object(st.a)(function(e){return Object(we.a)(e).pipe(Object(lt.a)(function(e){return r.http.get(e.avatar_url,{responseType:"blob"})},function(e,t){return e.avatar=t,e}),yt(function(e,t){return e.concat([t])},[]))}),Object(Fe.a)(function(e){return e=e.sort(function(e,t){return t.contributions-e.contributions}),new Zl(e)}),Object(rt.a)(function(e){return Object(_e.a)(new Xl(e))}))}return N.b([AO(),N.d("design:type",Ae.a)],e.prototype,"getContributors$",void 0),N.b([AO(),N.d("design:type",Ae.a)],e.prototype,"fetchContributors$",void 0),e}(),iA=r.rb(i,[ja],function(e){return r.Db([r.Eb(512,r.j,r.cb,[[8,[Da,es,as,Ss,js,Vs,Qs,tc,Vp,Qp,of,ff,mm,xm,Im,lg,pg,kg,Cg,Kg,Kv]],[3,r.j],r.y]),r.Eb(5120,r.v,r.ob,[[3,r.v]]),r.Eb(4608,q,J,[r.v,[2,W]]),r.Eb(5120,r.kb,r.pb,[r.A]),r.Eb(5120,r.c,r.lb,[]),r.Eb(5120,r.t,r.mb,[]),r.Eb(5120,r.u,r.nb,[]),r.Eb(4608,On,An,[me]),r.Eb(6144,r.H,null,[On]),r.Eb(4608,bn,gn,[]),r.Eb(5120,Vt,function(e,t,n,r,i,o,l,u){return[new hn(e,t,n),new wn(r),new vn(i,o,l,u)]},[me,r.A,r.C,me,me,bn,r.db,[2,mn]]),r.Eb(4608,Gt,Gt,[Vt,r.A]),r.Eb(135680,zt,zt,[me]),r.Eb(4608,Xt,Xt,[Gt,zt,r.c]),r.Eb(5120,bk,cw,[]),r.Eb(5120,l_,pw,[]),r.Eb(4608,L_,sw,[me,bk,l_]),r.Eb(5120,r.F,fw,[Xt,L_,r.A]),r.Eb(6144,$t,null,[zt]),r.Eb(4608,r.N,r.N,[r.A]),r.Eb(4608,Bv,nw,[r.F,me]),r.Eb(4608,Gc,Gc,[]),r.Eb(4608,vv,vv,[]),r.Eb(4608,Bw,Vw,[me,r.C,Fw]),r.Eb(4608,Gw,Gw,[Bw,Kw]),r.Eb(5120,jw,function(e){return[e]},[Gw]),r.Eb(4608,$m,$m,[[2,Vm]]),r.Eb(5120,Gr,Ao,[Xi]),r.Eb(4608,co,co,[]),r.Eb(6144,ao,null,[co]),r.Eb(135680,po,po,[Xi,r.x,r.i,r.r,ao]),r.Eb(4608,so,so,[]),r.Eb(5120,fo,vo,[Xi,ve,ho]),r.Eb(5120,So,xo,[Co]),r.Eb(5120,r.b,function(e){return[e]},[So]),r.Eb(5120,Fa,$a,[Ha]),r.Eb(4608,Ua,Ua,[]),r.Eb(4608,hh,hh,[]),r.Eb(4608,Wf,Wf,[L.m]),r.Eb(4608,Qw,Qw,[L.m,Xi]),r.Eb(4608,Ww,Ww,[L.m,Xi]),r.Eb(4608,Ud,Ud,[Wf]),r.Eb(4608,qw,qw,[L.m,Xi]),r.Eb(4608,Jw,Jw,[L.m,Xi]),r.Eb(4608,Yw,Yw,[L.m,Xi]),r.Eb(4608,Zw,Zw,[L.m,Xi]),r.Eb(4608,Xw,Xw,[L.m,Xi]),r.Eb(4608,eO,eO,[L.m,Xi]),r.Eb(4608,tO,tO,[L.m,Xi]),r.Eb(135680,L.k,L.k,[L.a,L.i,L.j,L.d]),r.Eb(5120,nO.c,nO.d,[nO.j,nO.g]),r.Eb(1073742336,be,be,[]),r.Eb(1024,r.l,jn,[]),r.Eb(1024,r.z,function(){return[mo()]},[]),r.Eb(512,Co,Co,[r.r]),r.Eb(1024,r.d,function(e,t){return[(n=e,Ft("probe",Bt),Ft("coreTokens",Object(N.a)({},Kt,(n||[]).reduce(function(e,t){return e[t.name]=t.token,e},{}))),function(){return Bt}),To(t)];var n},[[2,r.z],Co]),r.Eb(512,r.e,r.e,[[2,r.d]]),r.Eb(131584,r.g,r.g,[r.A,r.db,r.r,r.l,r.j,r.e]),r.Eb(1073742336,r.f,r.f,[r.g]),r.Eb(1073742336,Rn,Rn,[[3,Rn]]),r.Eb(1073742336,hw,hw,[]),r.Eb(1073742336,Ap,Ap,[]),r.Eb(1073742336,Cp,Cp,[]),r.Eb(1073742336,Qm,Qm,[]),r.Eb(1024,yo,_o,[[3,Xi]]),r.Eb(512,_r,wr,[]),r.Eb(512,oo,oo,[]),r.Eb(256,ho,{useHash:!0},[]),r.Eb(1024,F,ko,[D,[2,K],ho]),r.Eb(512,B,B,[F,D]),r.Eb(512,r.i,r.i,[]),r.Eb(512,r.x,r.K,[r.i,[2,r.L]]),r.Eb(1024,zi,function(){return[[{path:"detection",component:is,canActivate:[qw,Zw]},{path:"privilege",component:gs,canActivate:[Yw]},{path:"loading",component:Ms,canActivate:[eO]},{path:"recovery-device",component:Us,canActivate:[tO]},{path:"",component:Gs,canActivate:[Jw,Xw],children:[{path:"device",children:[{path:"",redirectTo:"configuration",pathMatch:"full"},{path:"configuration",component:Ys},{path:"mouse-speed",component:Np},{path:"led-brightness",component:Gp},{path:"firmware",component:qp},{path:"restore-user-configuration",component:lf}]},{path:"",redirectTo:"keymap",pathMatch:"full"},{path:"keymap",component:pm,canActivate:[Qw]},{path:"keymap/add",component:_m},{path:"keymap/:abbr",component:pm},{path:"macro",component:Sm,canActivate:[Ww]},{path:"macro/:id",component:eg},{path:"macro/:id/:empty",component:eg},{path:"add-on/:name",component:ug},{path:"settings",component:bg},{path:"help",component:_g},{path:"about",component:Mg}]}]]},[]),r.Eb(1024,Xi,Oo,[r.g,_r,oo,B,r.r,r.x,r.i,zi,ho,[2,Wi],[2,Hi]]),r.Eb(1073742336,go,go,[[2,yo],[2,Xi]]),r.Eb(1073742336,Kh,Kh,[]),r.Eb(1073742336,vc,vc,[]),r.Eb(1073742336,Cv,Cv,[]),r.Eb(1073742336,za,za,[]),r.Eb(1073742336,fs,fs,[]),r.Eb(1073742336,$w,$w,[]),r.Eb(1073742336,zw,zw,[]),r.Eb(1073742336,rO,rO,[]),r.Eb(131584,L.a,L.a,[]),r.Eb(131584,nO.l,nO.l,[]),r.Eb(2048,L.h,null,[nO.l]),r.Eb(256,L.y,void 0,[]),r.Eb(1024,L.d,L.G,[L.y]),r.Eb(256,L.A,{userConfiguration:Dl,presetKeymaps:zl,autoUpdateSettings:pu,app:Mu,router:jo,appUpdate:Wl,device:ju,contributors:tu},[]),r.Eb(2048,L.B,null,[L.A]),r.Eb(1024,L.c,L.F,[r.r,L.A,L.B]),r.Eb(256,L.z,L.s,[]),r.Eb(256,L.D,void 0,[]),r.Eb(1024,L.r,L.x,[L.D]),r.Eb(1024,L.E,L.I,[L.r]),r.Eb(1024,L.e,function(e,t){return[L.K(e),L.J(t)]},[L.E,L.E]),r.Eb(256,L.q,[],[]),r.Eb(1024,L.C,L.H,[L.e,L.q]),r.Eb(1024,L.f,L.u,[L.z,L.C]),r.Eb(131584,L.g,L.g,[L.h,L.d,L.c,L.f]),r.Eb(2048,L.i,null,[L.g]),r.Eb(131584,L.j,L.j,[]),r.Eb(1024,nO.j,nO.e,[]),r.Eb(256,nO.h,{maxAge:10},[]),r.Eb(1024,nO.g,nO.i,[nO.h]),r.Eb(512,nO.k,nO.k,[nO.j,nO.g,nO.l]),r.Eb(512,nO.a,nO.a,[nO.l,L.a,L.i,nO.k,L.j,r.l,L.d,nO.g]),r.Eb(1024,L.l,nO.f,[nO.a]),r.Eb(512,L.m,L.m,[L.l,L.a,L.g]),r.Eb(1073742336,L.o,L.o,[L.a,L.i,L.j,L.m]),r.Eb(512,Ro,Lo,[]),r.Eb(256,Uo,{},[]),r.Eb(1024,Fo,Bo,[Uo]),r.Eb(1073742336,Go,Go,[L.m,Xi,Ro,r.l,Fo]),r.Eb(1073742336,nO.b,nO.b,[]),r.Eb(512,EO,EO,[r.l,L.m]),r.Eb(131584,jO,jO,[EO,L.m]),r.Eb(512,xO,xO,[L.j]),r.Eb(512,dv,dv,[]),r.Eb(256,wv,{behaviour:{autoHide:!1},position:{horizontal:{position:"right",distance:12},vertical:{position:"top",distance:12,gap:10}}},[]),r.Eb(1024,Ov,Av,[wv]),r.Eb(512,yv,yv,[dv,Ov]),r.Eb(512,DO,DO,[]),r.Eb(512,UO,UO,[L.m,r.A,DO]),r.Eb(512,FO.LogService,FO.LogService,[]),r.Eb(512,KO,KO,[L.m,r.A,DO,FO.LogService]),r.Eb(512,BO,BO,[xO,yv,UO,KO,FO.LogService,L.m]),r.Eb(512,VO,VO,[xO,UO,FO.LogService]),r.Eb(512,GO,GO,[]),r.Eb(512,HO,HO,[]),r.Eb(512,$O,$O,[L.m,r.A,DO,FO.LogService]),r.Eb(512,zO,zO,[xO,GO,L.m,HO,$O,FO.LogService,Xi]),r.Eb(512,JO,JO,[xO,Xi,L.m]),r.Eb(512,YO,YO,[xO,Xi,L.m]),r.Eb(512,ZO,ZO,[xO,GO,L.m]),r.Eb(512,nA,nA,[xO,Xi,KO,$O,L.m,GO,HO]),r.Eb(512,Dw,Dw,[]),r.Eb(2048,Nw,null,[Dw]),r.Eb(512,Uw,Uw,[Nw]),r.Eb(2048,bw,null,[Uw]),r.Eb(512,yw,Hw,[bw,r.r]),r.Eb(512,Pw,Pw,[yw]),r.Eb(512,rA,rA,[L.m,xO,Pw]),r.Eb(1024,IO,NO,[BO,VO,zO,JO,YO,ZO,nA,rA]),r.Eb(1073742336,LO,LO,[EO,jO,L.m,IO,[2,L.o],[2,L.n]]),r.Eb(1073742336,i,i,[]),r.Eb(256,r.bb,!0,[]),r.Eb(256,dw,"BrowserAnimations",[]),r.Eb(256,Fw,"XSRF-TOKEN",[]),r.Eb(256,Kw,"X-XSRF-TOKEN",[]),r.Eb(256,Nh,{keepSelectedItems:!0,optionValueField:"id",optionTextField:"text"},[]),r.Eb(256,Ha,{confirmButtonType:"danger"},[])])});Object(r.U)(),In().bootstrapModuleFactory(iA,{preserveWhitespaces:!0})},mChF:function(e,t,n){"use strict";function r(e){return e}n.d(t,"a",function(){return r})},mZXl:function(e,t,n){"use strict";n.d(t,"b",function(){return l}),n.d(t,"a",function(){return a});var r=n("mrSG"),i=n("FFOo"),o=n("60iU");function l(e,t){return void 0===t&&(t=0),function(n){return n.lift(new u(e,t))}}var u=function(){function e(e,t){void 0===t&&(t=0),this.scheduler=e,this.delay=t}return e.prototype.call=function(e,t){return t.subscribe(new a(e,this.scheduler,this.delay))},e}(),a=function(e){function t(t,n,r){void 0===r&&(r=0);var i=e.call(this,t)||this;return i.scheduler=n,i.delay=r,i}return r.c(t,e),t.dispatch=function(e){e.notification.observe(e.destination),this.unsubscribe()},t.prototype.scheduleMessage=function(e){this.destination.add(this.scheduler.schedule(t.dispatch,this.delay,new s(e,this.destination)))},t.prototype._next=function(e){this.scheduleMessage(o.a.createNext(e))},t.prototype._error=function(e){this.scheduleMessage(o.a.createError(e)),this.unsubscribe()},t.prototype._complete=function(){this.scheduleMessage(o.a.createComplete()),this.unsubscribe()},t}(i.a),s=function(){return function(e,t){this.notification=e,this.destination=t}}()},mrSG:function(e,t,n){"use strict";n.d(t,"c",function(){return i}),n.d(t,"a",function(){return o}),n.d(t,"b",function(){return l}),n.d(t,"e",function(){return u}),n.d(t,"d",function(){return a}),n.d(t,"h",function(){return s}),n.d(t,"f",function(){return c}),n.d(t,"g",function(){return p});var r=function(e,t){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(e,t)};function i(e,t){function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}var o=function(){return(o=Object.assign||function(e){for(var t,n=1,r=arguments.length;n=0;u--)(i=e[u])&&(l=(o<3?i(l):o>3?i(t,n,l):i(t,n))||l);return o>3&&l&&Object.defineProperty(t,n,l),l}function u(e,t){return function(n,r){t(n,r,e)}}function a(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)}function s(e){var t="function"==typeof Symbol&&e[Symbol.iterator],n=0;return t?t.call(e):{next:function(){return e&&n>=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}}}function c(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,i,o=n.call(e),l=[];try{for(;(void 0===t||t-- >0)&&!(r=o.next()).done;)l.push(r.value)}catch(u){i={error:u}}finally{try{r&&!r.done&&(n=o.return)&&n.call(o)}finally{if(i)throw i.error}}return l}function p(){for(var e=[],t=0;to.Helper.createMacroAction(e)))}fromJsonObject(e){return this.isLooped=e.isLooped,this.isPrivate=e.isPrivate,this.name=e.name,this.macroActions=e.macroActions.map(e=>o.Helper.createMacroAction(e)),this}fromBinary(e){this.isLooped=e.readBoolean(),this.isPrivate=e.readBoolean(),this.name=e.readString();const t=e.readCompactLength();this.macroActions=[];for(let n=0;ne.toJsonObject())}}toBinary(e){e.writeBoolean(this.isLooped),e.writeBoolean(this.isPrivate),e.writeString(this.name),e.writeArray(this.macroActions)}toString(){return``}}r.__decorate([i.assertUInt8,r.__metadata("design:type",Number)],l.prototype,"id",void 0),t.Macro=l},mz7f:function(e,t){e.exports=function e(t){Object.freeze(t);var n="function"==typeof t,r=Object.prototype.hasOwnProperty;return Object.getOwnPropertyNames(t).forEach(function(i){!r.call(t,i)||n&&("caller"===i||"callee"===i||"arguments"===i)||null===t[i]||"object"!=typeof t[i]&&"function"!=typeof t[i]||Object.isFrozen(t[i])||e(t[i])}),t}},n6yW:function(e,t,n){"use strict";var r={},i="(?:^|\\s)",o="(?:\\s|$)";function l(e){var t=r[e];return t?t.lastIndex=0:r[e]=t=new RegExp(i+e+o,"g"),t}e.exports={add:function(e,t){var n=e.className;n.length?l(t).test(n)||(e.className+=" "+t):e.className=t},rm:function(e,t){e.className=e.className.replace(l(t)," ").trim()}}},nkY7:function(e,t,n){"use strict";function r(e){return e&&"function"==typeof e.schedule}n.d(t,"a",function(){return r})},nsO7:function(e,t,n){(function(e){var r;(function(){var i,o=200,l="Expected a function",u="__lodash_placeholder__",a=1,s=2,c=4,p=1,f=2,d=1,h=2,y=4,b=8,m=16,g=32,v=64,k=128,_=256,w=512,O=800,A=16,C=1/0,T=9007199254740991,x=17976931348623157e292,S=NaN,M=4294967295,E=M-1,P=M>>>1,I=[["ary",k],["bind",d],["bindKey",h],["curry",b],["curryRight",m],["flip",w],["partial",g],["partialRight",v],["rearg",_]],j="[object Arguments]",R="[object Array]",L="[object AsyncFunction]",N="[object Boolean]",D="[object Date]",U="[object DOMException]",F="[object Error]",K="[object Function]",B="[object GeneratorFunction]",V="[object Map]",G="[object Number]",H="[object Null]",$="[object Object]",z="[object Proxy]",Q="[object RegExp]",W="[object Set]",q="[object String]",J="[object Symbol]",Y="[object Undefined]",Z="[object WeakMap]",X="[object ArrayBuffer]",ee="[object DataView]",te="[object Float32Array]",ne="[object Float64Array]",re="[object Int8Array]",ie="[object Int16Array]",oe="[object Int32Array]",le="[object Uint8Array]",ue="[object Uint8ClampedArray]",ae="[object Uint16Array]",se="[object Uint32Array]",ce=/\b__p \+= '';/g,pe=/\b(__p \+=) '' \+/g,fe=/(__e\(.*?\)|\b__t\)) \+\n'';/g,de=/&(?:amp|lt|gt|quot|#39);/g,he=/[&<>"']/g,ye=RegExp(de.source),be=RegExp(he.source),me=/<%-([\s\S]+?)%>/g,ge=/<%([\s\S]+?)%>/g,ve=/<%=([\s\S]+?)%>/g,ke=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,_e=/^\w*$/,we=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,Oe=/[\\^$.*+?()[\]{}|]/g,Ae=RegExp(Oe.source),Ce=/^\s+|\s+$/g,Te=/^\s+/,xe=/\s+$/,Se=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,Me=/\{\n\/\* \[wrapped with (.+)\] \*/,Ee=/,? & /,Pe=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,Ie=/\\(\\)?/g,je=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,Re=/\w*$/,Le=/^[-+]0x[0-9a-f]+$/i,Ne=/^0b[01]+$/i,De=/^\[object .+?Constructor\]$/,Ue=/^0o[0-7]+$/i,Fe=/^(?:0|[1-9]\d*)$/,Ke=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,Be=/($^)/,Ve=/['\n\r\u2028\u2029\\]/g,Ge="\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff",He="\\xac\\xb1\\xd7\\xf7\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf\\u2000-\\u206f \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",$e="["+He+"]",ze="["+Ge+"]",Qe="\\d+",We="[a-z\\xdf-\\xf6\\xf8-\\xff]",qe="[^\\ud800-\\udfff"+He+Qe+"\\u2700-\\u27bfa-z\\xdf-\\xf6\\xf8-\\xffA-Z\\xc0-\\xd6\\xd8-\\xde]",Je="\\ud83c[\\udffb-\\udfff]",Ye="[^\\ud800-\\udfff]",Ze="(?:\\ud83c[\\udde6-\\uddff]){2}",Xe="[\\ud800-\\udbff][\\udc00-\\udfff]",et="[A-Z\\xc0-\\xd6\\xd8-\\xde]",tt="(?:"+We+"|"+qe+")",nt="(?:"+et+"|"+qe+")",rt="(?:"+ze+"|"+Je+")?",it="[\\ufe0e\\ufe0f]?"+rt+"(?:\\u200d(?:"+[Ye,Ze,Xe].join("|")+")[\\ufe0e\\ufe0f]?"+rt+")*",ot="(?:"+["[\\u2700-\\u27bf]",Ze,Xe].join("|")+")"+it,lt="(?:"+[Ye+ze+"?",ze,Ze,Xe,"[\\ud800-\\udfff]"].join("|")+")",ut=RegExp("['\u2019]","g"),at=RegExp(ze,"g"),st=RegExp(Je+"(?="+Je+")|"+lt+it,"g"),ct=RegExp([et+"?"+We+"+(?:['\u2019](?:d|ll|m|re|s|t|ve))?(?="+[$e,et,"$"].join("|")+")",nt+"+(?:['\u2019](?:D|LL|M|RE|S|T|VE))?(?="+[$e,et+tt,"$"].join("|")+")",et+"?"+tt+"+(?:['\u2019](?:d|ll|m|re|s|t|ve))?",et+"+(?:['\u2019](?:D|LL|M|RE|S|T|VE))?","\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])","\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",Qe,ot].join("|"),"g"),pt=RegExp("[\\u200d\\ud800-\\udfff"+Ge+"\\ufe0e\\ufe0f]"),ft=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,dt=["Array","Buffer","DataView","Date","Error","Float32Array","Float64Array","Function","Int8Array","Int16Array","Int32Array","Map","Math","Object","Promise","RegExp","Set","String","Symbol","TypeError","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","WeakMap","_","clearTimeout","isFinite","parseInt","setTimeout"],ht=-1,yt={};yt[te]=yt[ne]=yt[re]=yt[ie]=yt[oe]=yt[le]=yt[ue]=yt[ae]=yt[se]=!0,yt[j]=yt[R]=yt[X]=yt[N]=yt[ee]=yt[D]=yt[F]=yt[K]=yt[V]=yt[G]=yt[$]=yt[Q]=yt[W]=yt[q]=yt[Z]=!1;var bt={};bt[j]=bt[R]=bt[X]=bt[ee]=bt[N]=bt[D]=bt[te]=bt[ne]=bt[re]=bt[ie]=bt[oe]=bt[V]=bt[G]=bt[$]=bt[Q]=bt[W]=bt[q]=bt[J]=bt[le]=bt[ue]=bt[ae]=bt[se]=!0,bt[F]=bt[K]=bt[Z]=!1;var mt={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},gt=parseFloat,vt=parseInt,kt="object"==typeof global&&global&&global.Object===Object&&global,_t="object"==typeof self&&self&&self.Object===Object&&self,wt=kt||_t||Function("return this")(),Ot=t&&!t.nodeType&&t,At=Ot&&"object"==typeof e&&e&&!e.nodeType&&e,Ct=At&&At.exports===Ot,Tt=Ct&&kt.process,xt=function(){try{return At&&At.require&&At.require("util").types||Tt&&Tt.binding&&Tt.binding("util")}catch(e){}}(),St=xt&&xt.isArrayBuffer,Mt=xt&&xt.isDate,Et=xt&&xt.isMap,Pt=xt&&xt.isRegExp,It=xt&&xt.isSet,jt=xt&&xt.isTypedArray;function Rt(e,t,n){switch(n.length){case 0:return e.call(t);case 1:return e.call(t,n[0]);case 2:return e.call(t,n[0],n[1]);case 3:return e.call(t,n[0],n[1],n[2])}return e.apply(t,n)}function Lt(e,t,n,r){for(var i=-1,o=null==e?0:e.length;++i-1}function Kt(e,t,n){for(var r=-1,i=null==e?0:e.length;++r-1;);return n}function sn(e,t){for(var n=e.length;n--&&qt(t,e[n],0)>-1;);return n}var cn=en({"\xc0":"A","\xc1":"A","\xc2":"A","\xc3":"A","\xc4":"A","\xc5":"A","\xe0":"a","\xe1":"a","\xe2":"a","\xe3":"a","\xe4":"a","\xe5":"a","\xc7":"C","\xe7":"c","\xd0":"D","\xf0":"d","\xc8":"E","\xc9":"E","\xca":"E","\xcb":"E","\xe8":"e","\xe9":"e","\xea":"e","\xeb":"e","\xcc":"I","\xcd":"I","\xce":"I","\xcf":"I","\xec":"i","\xed":"i","\xee":"i","\xef":"i","\xd1":"N","\xf1":"n","\xd2":"O","\xd3":"O","\xd4":"O","\xd5":"O","\xd6":"O","\xd8":"O","\xf2":"o","\xf3":"o","\xf4":"o","\xf5":"o","\xf6":"o","\xf8":"o","\xd9":"U","\xda":"U","\xdb":"U","\xdc":"U","\xf9":"u","\xfa":"u","\xfb":"u","\xfc":"u","\xdd":"Y","\xfd":"y","\xff":"y","\xc6":"Ae","\xe6":"ae","\xde":"Th","\xfe":"th","\xdf":"ss","\u0100":"A","\u0102":"A","\u0104":"A","\u0101":"a","\u0103":"a","\u0105":"a","\u0106":"C","\u0108":"C","\u010a":"C","\u010c":"C","\u0107":"c","\u0109":"c","\u010b":"c","\u010d":"c","\u010e":"D","\u0110":"D","\u010f":"d","\u0111":"d","\u0112":"E","\u0114":"E","\u0116":"E","\u0118":"E","\u011a":"E","\u0113":"e","\u0115":"e","\u0117":"e","\u0119":"e","\u011b":"e","\u011c":"G","\u011e":"G","\u0120":"G","\u0122":"G","\u011d":"g","\u011f":"g","\u0121":"g","\u0123":"g","\u0124":"H","\u0126":"H","\u0125":"h","\u0127":"h","\u0128":"I","\u012a":"I","\u012c":"I","\u012e":"I","\u0130":"I","\u0129":"i","\u012b":"i","\u012d":"i","\u012f":"i","\u0131":"i","\u0134":"J","\u0135":"j","\u0136":"K","\u0137":"k","\u0138":"k","\u0139":"L","\u013b":"L","\u013d":"L","\u013f":"L","\u0141":"L","\u013a":"l","\u013c":"l","\u013e":"l","\u0140":"l","\u0142":"l","\u0143":"N","\u0145":"N","\u0147":"N","\u014a":"N","\u0144":"n","\u0146":"n","\u0148":"n","\u014b":"n","\u014c":"O","\u014e":"O","\u0150":"O","\u014d":"o","\u014f":"o","\u0151":"o","\u0154":"R","\u0156":"R","\u0158":"R","\u0155":"r","\u0157":"r","\u0159":"r","\u015a":"S","\u015c":"S","\u015e":"S","\u0160":"S","\u015b":"s","\u015d":"s","\u015f":"s","\u0161":"s","\u0162":"T","\u0164":"T","\u0166":"T","\u0163":"t","\u0165":"t","\u0167":"t","\u0168":"U","\u016a":"U","\u016c":"U","\u016e":"U","\u0170":"U","\u0172":"U","\u0169":"u","\u016b":"u","\u016d":"u","\u016f":"u","\u0171":"u","\u0173":"u","\u0174":"W","\u0175":"w","\u0176":"Y","\u0177":"y","\u0178":"Y","\u0179":"Z","\u017b":"Z","\u017d":"Z","\u017a":"z","\u017c":"z","\u017e":"z","\u0132":"IJ","\u0133":"ij","\u0152":"Oe","\u0153":"oe","\u0149":"'n",\u017f:"s"}),pn=en({"&":"&","<":"<",">":">",'"':""","'":"'"});function fn(e){return"\\"+mt[e]}function dn(e){return pt.test(e)}function hn(e){var t=-1,n=Array(e.size);return e.forEach(function(e,r){n[++t]=[r,e]}),n}function yn(e,t){return function(n){return e(t(n))}}function bn(e,t){for(var n=-1,r=e.length,i=0,o=[];++n",""":'"',"'":"'"}),wn=function e(t){var n,r=(t=null==t?wt:wn.defaults(wt.Object(),t,wn.pick(wt,dt))).Array,Ge=t.Date,He=t.Error,$e=t.Function,ze=t.Math,Qe=t.Object,We=t.RegExp,qe=t.String,Je=t.TypeError,Ye=r.prototype,Ze=Qe.prototype,Xe=t["__core-js_shared__"],et=$e.prototype.toString,tt=Ze.hasOwnProperty,nt=0,rt=(n=/[^.]+$/.exec(Xe&&Xe.keys&&Xe.keys.IE_PROTO||""))?"Symbol(src)_1."+n:"",it=Ze.toString,ot=et.call(Qe),lt=wt._,st=We("^"+et.call(tt).replace(Oe,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),pt=Ct?t.Buffer:i,mt=t.Symbol,kt=t.Uint8Array,_t=pt?pt.allocUnsafe:i,Ot=yn(Qe.getPrototypeOf,Qe),At=Qe.create,Tt=Ze.propertyIsEnumerable,xt=Ye.splice,zt=mt?mt.isConcatSpreadable:i,en=mt?mt.iterator:i,On=mt?mt.toStringTag:i,An=function(){try{var e=Oo(Qe,"defineProperty");return e({},"",{}),e}catch(t){}}(),Cn=t.clearTimeout!==wt.clearTimeout&&t.clearTimeout,Tn=Ge&&Ge.now!==wt.Date.now&&Ge.now,xn=t.setTimeout!==wt.setTimeout&&t.setTimeout,Sn=ze.ceil,Mn=ze.floor,En=Qe.getOwnPropertySymbols,Pn=pt?pt.isBuffer:i,In=t.isFinite,jn=Ye.join,Rn=yn(Qe.keys,Qe),Ln=ze.max,Nn=ze.min,Dn=Ge.now,Un=t.parseInt,Fn=ze.random,Kn=Ye.reverse,Bn=Oo(t,"DataView"),Vn=Oo(t,"Map"),Gn=Oo(t,"Promise"),Hn=Oo(t,"Set"),$n=Oo(t,"WeakMap"),zn=Oo(Qe,"create"),Qn=$n&&new $n,Wn={},qn=qo(Bn),Jn=qo(Vn),Yn=qo(Gn),Zn=qo(Hn),Xn=qo($n),er=mt?mt.prototype:i,tr=er?er.valueOf:i,nr=er?er.toString:i;function rr(e){if(fu(e)&&!tu(e)&&!(e instanceof ur)){if(e instanceof lr)return e;if(tt.call(e,"__wrapped__"))return Jo(e)}return new lr(e)}var ir=function(){function e(){}return function(t){if(!pu(t))return{};if(At)return At(t);e.prototype=t;var n=new e;return e.prototype=i,n}}();function or(){}function lr(e,t){this.__wrapped__=e,this.__actions__=[],this.__chain__=!!t,this.__index__=0,this.__values__=i}function ur(e){this.__wrapped__=e,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=M,this.__views__=[]}function ar(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t=t?e:t)),e}function Or(e,t,n,r,o,l){var u,p=t&a,f=t&s,d=t&c;if(n&&(u=o?n(e,r,o,l):n(e)),u!==i)return u;if(!pu(e))return e;var h=tu(e);if(h){if(u=function(e){var t=e.length,n=new e.constructor(t);return t&&"string"==typeof e[0]&&tt.call(e,"index")&&(n.index=e.index,n.input=e.input),n}(e),!p)return Ki(e,u)}else{var y=To(e),b=y==K||y==B;if(ou(e))return Ri(e,p);if(y==$||y==j||b&&!o){if(u=f||b?{}:So(e),!p)return f?function(e,t){return Bi(e,Co(e),t)}(e,function(t,n){return t&&Bi(e,Gu(e),t)}(u)):function(e,t){return Bi(e,Ao(e),t)}(e,vr(u,e))}else{if(!bt[y])return o?e:{};u=function(e,t,n){var r=e.constructor;switch(t){case X:return Li(e);case N:case D:return new r(+e);case ee:return function(e,t){var n=t?Li(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.byteLength)}(e,n);case te:case ne:case re:case ie:case oe:case le:case ue:case ae:case se:return Ni(e,n);case V:return new r;case G:case q:return new r(e);case Q:return function(e){var t=new e.constructor(e.source,Re.exec(e));return t.lastIndex=e.lastIndex,t}(e);case W:return new r;case J:return tr?Qe(tr.call(e)):{}}}(e,y,p)}}l||(l=new fr);var m=l.get(e);if(m)return m;l.set(e,u),mu(e)?e.forEach(function(r){u.add(Or(r,t,n,r,e,l))}):du(e)&&e.forEach(function(r,i){u.set(i,Or(r,t,n,i,e,l))});var g=h?i:(d?f?bo:yo:f?Gu:Vu)(e);return Nt(g||e,function(r,i){g&&(r=e[i=r]),br(u,i,Or(r,t,n,i,e,l))}),u}function Ar(e,t,n){var r=n.length;if(null==e)return!r;for(e=Qe(e);r--;){var o=n[r],l=e[o];if(l===i&&!(o in e)||!(0,t[o])(l))return!1}return!0}function Cr(e,t,n){if("function"!=typeof e)throw new Je(l);return Vo(function(){e.apply(i,n)},t)}function Tr(e,t,n,r){var i=-1,l=Ft,u=!0,a=e.length,s=[],c=t.length;if(!a)return s;n&&(t=Bt(t,on(n))),r?(l=Kt,u=!1):t.length>=o&&(l=un,u=!1,t=new pr(t));e:for(;++i-1},sr.prototype.set=function(e,t){var n=this.__data__,r=mr(n,e);return r<0?(++this.size,n.push([e,t])):n[r][1]=t,this},cr.prototype.clear=function(){this.size=0,this.__data__={hash:new ar,map:new(Vn||sr),string:new ar}},cr.prototype.delete=function(e){var t=_o(this,e).delete(e);return this.size-=t?1:0,t},cr.prototype.get=function(e){return _o(this,e).get(e)},cr.prototype.has=function(e){return _o(this,e).has(e)},cr.prototype.set=function(e,t){var n=_o(this,e),r=n.size;return n.set(e,t),this.size+=n.size==r?0:1,this},pr.prototype.add=pr.prototype.push=function(e){return this.__data__.set(e,"__lodash_hash_undefined__"),this},pr.prototype.has=function(e){return this.__data__.has(e)},fr.prototype.clear=function(){this.__data__=new sr,this.size=0},fr.prototype.delete=function(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n},fr.prototype.get=function(e){return this.__data__.get(e)},fr.prototype.has=function(e){return this.__data__.has(e)},fr.prototype.set=function(e,t){var n=this.__data__;if(n instanceof sr){var r=n.__data__;if(!Vn||r.length0&&n(u)?t>1?Ir(u,t-1,n,r,i):Vt(i,u):r||(i[i.length]=u)}return i}var jr=$i(),Rr=$i(!0);function Lr(e,t){return e&&jr(e,t,Vu)}function Nr(e,t){return e&&Rr(e,t,Vu)}function Dr(e,t){return Ut(t,function(t){return au(e[t])})}function Ur(e,t){for(var n=0,r=(t=Ei(t,e)).length;null!=e&&nt}function Vr(e,t){return null!=e&&tt.call(e,t)}function Gr(e,t){return null!=e&&t in Qe(e)}function Hr(e,t,n){for(var o=n?Kt:Ft,l=e[0].length,u=e.length,a=u,s=r(u),c=1/0,p=[];a--;){var f=e[a];a&&t&&(f=Bt(f,on(t))),c=Nn(f.length,c),s[a]=!n&&(t||l>=120&&f.length>=120)?new pr(a&&f):i}f=e[0];var d=-1,h=s[0];e:for(;++d=u?a:a*("desc"==n[r]?-1:1)}return e.index-t.index}(e,t,n)});r--;)e[r]=e[r].value;return e}(Xr(e,function(e,n,i){return{criteria:Bt(t,function(t){return t(e)}),index:++r,value:e}}))}function oi(e,t,n){for(var r=-1,i=t.length,o={};++r-1;)u!==e&&xt.call(u,a,1),xt.call(e,a,1);return e}function ui(e,t){for(var n=e?t.length:0,r=n-1;n--;){var i=t[n];if(n==r||i!==o){var o=i;Eo(i)?xt.call(e,i,1):wi(e,i)}}return e}function ai(e,t){return e+Mn(Fn()*(t-e+1))}function si(e,t){var n="";if(!e||t<1||t>T)return n;do{t%2&&(n+=e),(t=Mn(t/2))&&(e+=e)}while(t);return n}function ci(e,t){return Go(Uo(e,t,ha),e+"")}function pi(e,t,n,r){if(!pu(e))return e;for(var o=-1,l=(t=Ei(t,e)).length,u=l-1,a=e;null!=a&&++oo?0:o+t),(n=n>o?o:n)<0&&(n+=o),o=t>n?0:n-t>>>0,t>>>=0;for(var l=r(o);++i>>1,l=e[o];null!==l&&!vu(l)&&(n?l<=t:l=o){var c=t?null:lo(e);if(c)return mn(c);u=!1,i=un,s=new pr}else s=t?[]:a;e:for(;++r=r?e:hi(e,t,n)}var ji=Cn||function(e){return wt.clearTimeout(e)};function Ri(e,t){if(t)return e.slice();var n=e.length,r=_t?_t(n):new e.constructor(n);return e.copy(r),r}function Li(e){var t=new e.constructor(e.byteLength);return new kt(t).set(new kt(e)),t}function Ni(e,t){var n=t?Li(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.length)}function Di(e,t){if(e!==t){var n=e!==i,r=null===e,o=e==e,l=vu(e),u=t!==i,a=null===t,s=t==t,c=vu(t);if(!a&&!c&&!l&&e>t||l&&u&&s&&!a&&!c||r&&u&&s||!n&&s||!o)return 1;if(!r&&!l&&!c&&e1?n[o-1]:i,u=o>2?n[2]:i;for(l=e.length>3&&"function"==typeof l?(o--,l):i,u&&Po(n[0],n[1],u)&&(l=o<3?i:l,o=1),t=Qe(t);++r-1?o[l?t[u]:u]:i}}function Ji(e){return ho(function(t){var n=t.length,r=n,o=lr.prototype.thru;for(e&&t.reverse();r--;){var u=t[r];if("function"!=typeof u)throw new Je(l);if(o&&!a&&"wrapper"==go(u))var a=new lr([],!0)}for(r=a?r:n;++r1&&b.reverse(),f&&ca))return!1;var c=l.get(e);if(c&&l.get(t))return c==t;var d=-1,h=!0,y=n&f?new pr:i;for(l.set(e,t),l.set(t,e);++d-1&&e%1==0&&e1?"& ":"")+t[r],t=t.join(n>2?", ":" "),e.replace(Se,"{\n/* [wrapped with "+t+"] */\n")}(r,function(e,t){return Nt(I,function(n){var r="_."+n[0];t&n[1]&&!Ft(e,r)&&e.push(r)}),e.sort()}(function(e){var t=e.match(Me);return t?t[1].split(Ee):[]}(r),n)))}function $o(e){var t=0,n=0;return function(){var r=Dn(),o=A-(r-n);if(n=r,o>0){if(++t>=O)return arguments[0]}else t=0;return e.apply(i,arguments)}}function zo(e,t){var n=-1,r=e.length,o=r-1;for(t=t===i?r:t;++n1?e[t-1]:i;return n="function"==typeof n?(e.pop(),n):i,bl(e,n)});function Ol(e){var t=rr(e);return t.__chain__=!0,t}function Al(e,t){return t(e)}var Cl=ho(function(e){var t=e.length,n=t?e[0]:0,r=this.__wrapped__,o=function(t){return _r(t,e)};return!(t>1||this.__actions__.length)&&r instanceof ur&&Eo(n)?((r=r.slice(n,+n+(t?1:0))).__actions__.push({func:Al,args:[o],thisArg:i}),new lr(r,this.__chain__).thru(function(e){return t&&!e.length&&e.push(i),e})):this.thru(o)}),Tl=Vi(function(e,t,n){tt.call(e,n)?++e[n]:kr(e,n,1)}),xl=qi(el),Sl=qi(tl);function Ml(e,t){return(tu(e)?Nt:xr)(e,ko(t,3))}function El(e,t){return(tu(e)?function(e,t){for(var n=null==e?0:e.length;n--&&!1!==t(e[n],n,e););return e}:Sr)(e,ko(t,3))}var Pl=Vi(function(e,t,n){tt.call(e,n)?e[n].push(t):kr(e,n,[t])}),Il=ci(function(e,t,n){var i=-1,o="function"==typeof t,l=ru(e)?r(e.length):[];return xr(e,function(e){l[++i]=o?Rt(t,e,n):$r(e,t,n)}),l}),jl=Vi(function(e,t,n){kr(e,n,t)});function Rl(e,t){return(tu(e)?Bt:Xr)(e,ko(t,3))}var Ll=Vi(function(e,t,n){e[n?0:1].push(t)},function(){return[[],[]]}),Nl=ci(function(e,t){if(null==e)return[];var n=t.length;return n>1&&Po(e,t[0],t[1])?t=[]:n>2&&Po(t[0],t[1],t[2])&&(t=[t[0]]),ii(e,Ir(t,1),[])}),Dl=Tn||function(){return wt.Date.now()};function Ul(e,t,n){return t=n?i:t,ao(e,k,i,i,i,i,t=e&&null==t?e.length:t)}function Fl(e,t){var n;if("function"!=typeof t)throw new Je(l);return e=Cu(e),function(){return--e>0&&(n=t.apply(this,arguments)),e<=1&&(t=i),n}}var Kl=ci(function(e,t,n){var r=d;if(n.length){var i=bn(n,vo(Kl));r|=g}return ao(e,r,t,n,i)}),Bl=ci(function(e,t,n){var r=d|h;if(n.length){var i=bn(n,vo(Bl));r|=g}return ao(t,r,e,n,i)});function Vl(e,t,n){var r,o,u,a,s,c,p=0,f=!1,d=!1,h=!0;if("function"!=typeof e)throw new Je(l);function y(t){var n=r,l=o;return r=o=i,p=t,a=e.apply(l,n)}function b(e){var n=e-c;return c===i||n>=t||n<0||d&&e-p>=u}function m(){var e=Dl();if(b(e))return g(e);s=Vo(m,function(e){var n=t-(e-c);return d?Nn(n,u-(e-p)):n}(e))}function g(e){return s=i,h&&r?y(e):(r=o=i,a)}function v(){var e=Dl(),n=b(e);if(r=arguments,o=this,c=e,n){if(s===i)return function(e){return p=e,s=Vo(m,t),f?y(e):a}(c);if(d)return ji(s),s=Vo(m,t),y(c)}return s===i&&(s=Vo(m,t)),a}return t=xu(t)||0,pu(n)&&(f=!!n.leading,u=(d="maxWait"in n)?Ln(xu(n.maxWait)||0,t):u,h="trailing"in n?!!n.trailing:h),v.cancel=function(){s!==i&&ji(s),p=0,r=c=o=s=i},v.flush=function(){return s===i?a:g(Dl())},v}var Gl=ci(function(e,t){return Cr(e,1,t)}),Hl=ci(function(e,t,n){return Cr(e,xu(t)||0,n)});function $l(e,t){if("function"!=typeof e||null!=t&&"function"!=typeof t)throw new Je(l);var n=function(){var r=arguments,i=t?t.apply(this,r):r[0],o=n.cache;if(o.has(i))return o.get(i);var l=e.apply(this,r);return n.cache=o.set(i,l)||o,l};return n.cache=new($l.Cache||cr),n}function zl(e){if("function"!=typeof e)throw new Je(l);return function(){var t=arguments;switch(t.length){case 0:return!e.call(this);case 1:return!e.call(this,t[0]);case 2:return!e.call(this,t[0],t[1]);case 3:return!e.call(this,t[0],t[1],t[2])}return!e.apply(this,t)}}$l.Cache=cr;var Ql=Pi(function(e,t){var n=(t=1==t.length&&tu(t[0])?Bt(t[0],on(ko())):Bt(Ir(t,1),on(ko()))).length;return ci(function(r){for(var i=-1,o=Nn(r.length,n);++i=t}),eu=zr(function(){return arguments}())?zr:function(e){return fu(e)&&tt.call(e,"callee")&&!Tt.call(e,"callee")},tu=r.isArray,nu=St?on(St):function(e){return fu(e)&&Kr(e)==X};function ru(e){return null!=e&&cu(e.length)&&!au(e)}function iu(e){return fu(e)&&ru(e)}var ou=Pn||xa,lu=Mt?on(Mt):function(e){return fu(e)&&Kr(e)==D};function uu(e){if(!fu(e))return!1;var t=Kr(e);return t==F||t==U||"string"==typeof e.message&&"string"==typeof e.name&&!yu(e)}function au(e){if(!pu(e))return!1;var t=Kr(e);return t==K||t==B||t==L||t==z}function su(e){return"number"==typeof e&&e==Cu(e)}function cu(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=T}function pu(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}function fu(e){return null!=e&&"object"==typeof e}var du=Et?on(Et):function(e){return fu(e)&&To(e)==V};function hu(e){return"number"==typeof e||fu(e)&&Kr(e)==G}function yu(e){if(!fu(e)||Kr(e)!=$)return!1;var t=Ot(e);if(null===t)return!0;var n=tt.call(t,"constructor")&&t.constructor;return"function"==typeof n&&n instanceof n&&et.call(n)==ot}var bu=Pt?on(Pt):function(e){return fu(e)&&Kr(e)==Q},mu=It?on(It):function(e){return fu(e)&&To(e)==W};function gu(e){return"string"==typeof e||!tu(e)&&fu(e)&&Kr(e)==q}function vu(e){return"symbol"==typeof e||fu(e)&&Kr(e)==J}var ku=jt?on(jt):function(e){return fu(e)&&cu(e.length)&&!!yt[Kr(e)]},_u=ro(Zr),wu=ro(function(e,t){return e<=t});function Ou(e){if(!e)return[];if(ru(e))return gu(e)?kn(e):Ki(e);if(en&&e[en])return function(e){for(var t,n=[];!(t=e.next()).done;)n.push(t.value);return n}(e[en]());var t=To(e);return(t==V?hn:t==W?mn:Yu)(e)}function Au(e){return e?(e=xu(e))===C||e===-C?(e<0?-1:1)*x:e==e?e:0:0===e?e:0}function Cu(e){var t=Au(e),n=t%1;return t==t?n?t-n:t:0}function Tu(e){return e?wr(Cu(e),0,M):0}function xu(e){if("number"==typeof e)return e;if(vu(e))return S;if(pu(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=pu(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=e.replace(Ce,"");var n=Ne.test(e);return n||Ue.test(e)?vt(e.slice(2),n?2:8):Le.test(e)?S:+e}function Su(e){return Bi(e,Gu(e))}function Mu(e){return null==e?"":ki(e)}var Eu=Gi(function(e,t){if(Lo(t)||ru(t))Bi(t,Vu(t),e);else for(var n in t)tt.call(t,n)&&br(e,n,t[n])}),Pu=Gi(function(e,t){Bi(t,Gu(t),e)}),Iu=Gi(function(e,t,n,r){Bi(t,Gu(t),e,r)}),ju=Gi(function(e,t,n,r){Bi(t,Vu(t),e,r)}),Ru=ho(_r),Lu=ci(function(e,t){e=Qe(e);var n=-1,r=t.length,o=r>2?t[2]:i;for(o&&Po(t[0],t[1],o)&&(r=1);++n1),t}),Bi(e,bo(e),n),r&&(n=Or(n,a|s|c,po));for(var i=t.length;i--;)wi(n,t[i]);return n}),Qu=ho(function(e,t){return null==e?{}:function(e,t){return oi(e,t,function(t,n){return Uu(e,n)})}(e,t)});function Wu(e,t){if(null==e)return{};var n=Bt(bo(e),function(e){return[e]});return t=ko(t),oi(e,n,function(e,n){return t(e,n[0])})}var qu=uo(Vu),Ju=uo(Gu);function Yu(e){return null==e?[]:ln(e,Vu(e))}var Zu=Qi(function(e,t,n){return t=t.toLowerCase(),e+(n?Xu(t):t)});function Xu(e){return ua(Mu(e).toLowerCase())}function ea(e){return(e=Mu(e))&&e.replace(Ke,cn).replace(at,"")}var ta=Qi(function(e,t,n){return e+(n?"-":"")+t.toLowerCase()}),na=Qi(function(e,t,n){return e+(n?" ":"")+t.toLowerCase()}),ra=zi("toLowerCase"),ia=Qi(function(e,t,n){return e+(n?"_":"")+t.toLowerCase()}),oa=Qi(function(e,t,n){return e+(n?" ":"")+ua(t)}),la=Qi(function(e,t,n){return e+(n?" ":"")+t.toUpperCase()}),ua=zi("toUpperCase");function aa(e,t,n){return e=Mu(e),(t=n?i:t)===i?function(e){return ft.test(e)}(e)?function(e){return e.match(ct)||[]}(e):function(e){return e.match(Pe)||[]}(e):e.match(t)||[]}var sa=ci(function(e,t){try{return Rt(e,i,t)}catch(n){return uu(n)?n:new He(n)}}),ca=ho(function(e,t){return Nt(t,function(t){t=Wo(t),kr(e,t,Kl(e[t],e))}),e});function pa(e){return function(){return e}}var fa=Ji(),da=Ji(!0);function ha(e){return e}function ya(e){return Jr("function"==typeof e?e:Or(e,a))}var ba=ci(function(e,t){return function(n){return $r(n,e,t)}}),ma=ci(function(e,t){return function(n){return $r(e,n,t)}});function ga(e,t,n){var r=Vu(t),i=Dr(t,r);null!=n||pu(t)&&(i.length||!r.length)||(n=t,t=e,e=this,i=Dr(t,Vu(t)));var o=!(pu(n)&&"chain"in n&&!n.chain),l=au(e);return Nt(i,function(n){var r=t[n];e[n]=r,l&&(e.prototype[n]=function(){var t=this.__chain__;if(o||t){var n=e(this.__wrapped__),i=n.__actions__=Ki(this.__actions__);return i.push({func:r,args:arguments,thisArg:e}),n.__chain__=t,n}return r.apply(e,Vt([this.value()],arguments))})}),e}function va(){}var ka=eo(Bt),_a=eo(Dt),wa=eo($t);function Oa(e){return Io(e)?Xt(Wo(e)):function(e){return function(t){return Ur(t,e)}}(e)}var Aa=no(),Ca=no(!0);function Ta(){return[]}function xa(){return!1}var Sa,Ma=Xi(function(e,t){return e+t},0),Ea=oo("ceil"),Pa=Xi(function(e,t){return e/t},1),Ia=oo("floor"),ja=Xi(function(e,t){return e*t},1),Ra=oo("round"),La=Xi(function(e,t){return e-t},0);return rr.after=function(e,t){if("function"!=typeof t)throw new Je(l);return e=Cu(e),function(){if(--e<1)return t.apply(this,arguments)}},rr.ary=Ul,rr.assign=Eu,rr.assignIn=Pu,rr.assignInWith=Iu,rr.assignWith=ju,rr.at=Ru,rr.before=Fl,rr.bind=Kl,rr.bindAll=ca,rr.bindKey=Bl,rr.castArray=function(){if(!arguments.length)return[];var e=arguments[0];return tu(e)?e:[e]},rr.chain=Ol,rr.chunk=function(e,t,n){t=(n?Po(e,t,n):t===i)?1:Ln(Cu(t),0);var o=null==e?0:e.length;if(!o||t<1)return[];for(var l=0,u=0,a=r(Sn(o/t));lo?0:o+n),(r=r===i||r>o?o:Cu(r))<0&&(r+=o),r=n>r?0:Tu(r);n>>0)?(e=Mu(e))&&("string"==typeof t||null!=t&&!bu(t))&&!(t=ki(t))&&dn(e)?Ii(kn(e),0,n):e.split(t,n):[]},rr.spread=function(e,t){if("function"!=typeof e)throw new Je(l);return t=null==t?0:Ln(Cu(t),0),ci(function(n){var r=n[t],i=Ii(n,0,t);return r&&Vt(i,r),Rt(e,this,i)})},rr.tail=function(e){var t=null==e?0:e.length;return t?hi(e,1,t):[]},rr.take=function(e,t,n){return e&&e.length?hi(e,0,(t=n||t===i?1:Cu(t))<0?0:t):[]},rr.takeRight=function(e,t,n){var r=null==e?0:e.length;return r?hi(e,(t=r-(t=n||t===i?1:Cu(t)))<0?0:t,r):[]},rr.takeRightWhile=function(e,t){return e&&e.length?Ai(e,ko(t,3),!1,!0):[]},rr.takeWhile=function(e,t){return e&&e.length?Ai(e,ko(t,3)):[]},rr.tap=function(e,t){return t(e),e},rr.throttle=function(e,t,n){var r=!0,i=!0;if("function"!=typeof e)throw new Je(l);return pu(n)&&(r="leading"in n?!!n.leading:r,i="trailing"in n?!!n.trailing:i),Vl(e,t,{leading:r,maxWait:t,trailing:i})},rr.thru=Al,rr.toArray=Ou,rr.toPairs=qu,rr.toPairsIn=Ju,rr.toPath=function(e){return tu(e)?Bt(e,Wo):vu(e)?[e]:Ki(Qo(Mu(e)))},rr.toPlainObject=Su,rr.transform=function(e,t,n){var r=tu(e),i=r||ou(e)||ku(e);if(t=ko(t,4),null==n){var o=e&&e.constructor;n=i?r?new o:[]:pu(e)&&au(o)?ir(Ot(e)):{}}return(i?Nt:Lr)(e,function(e,r,i){return t(n,e,r,i)}),n},rr.unary=function(e){return Ul(e,1)},rr.union=fl,rr.unionBy=dl,rr.unionWith=hl,rr.uniq=function(e){return e&&e.length?_i(e):[]},rr.uniqBy=function(e,t){return e&&e.length?_i(e,ko(t,2)):[]},rr.uniqWith=function(e,t){return t="function"==typeof t?t:i,e&&e.length?_i(e,i,t):[]},rr.unset=function(e,t){return null==e||wi(e,t)},rr.unzip=yl,rr.unzipWith=bl,rr.update=function(e,t,n){return null==e?e:Oi(e,t,Mi(n))},rr.updateWith=function(e,t,n,r){return r="function"==typeof r?r:i,null==e?e:Oi(e,t,Mi(n),r)},rr.values=Yu,rr.valuesIn=function(e){return null==e?[]:ln(e,Gu(e))},rr.without=ml,rr.words=aa,rr.wrap=function(e,t){return Wl(Mi(t),e)},rr.xor=gl,rr.xorBy=vl,rr.xorWith=kl,rr.zip=_l,rr.zipObject=function(e,t){return xi(e||[],t||[],br)},rr.zipObjectDeep=function(e,t){return xi(e||[],t||[],pi)},rr.zipWith=wl,rr.entries=qu,rr.entriesIn=Ju,rr.extend=Pu,rr.extendWith=Iu,ga(rr,rr),rr.add=Ma,rr.attempt=sa,rr.camelCase=Zu,rr.capitalize=Xu,rr.ceil=Ea,rr.clamp=function(e,t,n){return n===i&&(n=t,t=i),n!==i&&(n=(n=xu(n))==n?n:0),t!==i&&(t=(t=xu(t))==t?t:0),wr(xu(e),t,n)},rr.clone=function(e){return Or(e,c)},rr.cloneDeep=function(e){return Or(e,a|c)},rr.cloneDeepWith=function(e,t){return Or(e,a|c,t="function"==typeof t?t:i)},rr.cloneWith=function(e,t){return Or(e,c,t="function"==typeof t?t:i)},rr.conformsTo=function(e,t){return null==t||Ar(e,t,Vu(t))},rr.deburr=ea,rr.defaultTo=function(e,t){return null==e||e!=e?t:e},rr.divide=Pa,rr.endsWith=function(e,t,n){e=Mu(e),t=ki(t);var r=e.length,o=n=n===i?r:wr(Cu(n),0,r);return(n-=t.length)>=0&&e.slice(n,o)==t},rr.eq=Yl,rr.escape=function(e){return(e=Mu(e))&&be.test(e)?e.replace(he,pn):e},rr.escapeRegExp=function(e){return(e=Mu(e))&&Ae.test(e)?e.replace(Oe,"\\$&"):e},rr.every=function(e,t,n){var r=tu(e)?Dt:Mr;return n&&Po(e,t,n)&&(t=i),r(e,ko(t,3))},rr.find=xl,rr.findIndex=el,rr.findKey=function(e,t){return Qt(e,ko(t,3),Lr)},rr.findLast=Sl,rr.findLastIndex=tl,rr.findLastKey=function(e,t){return Qt(e,ko(t,3),Nr)},rr.floor=Ia,rr.forEach=Ml,rr.forEachRight=El,rr.forIn=function(e,t){return null==e?e:jr(e,ko(t,3),Gu)},rr.forInRight=function(e,t){return null==e?e:Rr(e,ko(t,3),Gu)},rr.forOwn=function(e,t){return e&&Lr(e,ko(t,3))},rr.forOwnRight=function(e,t){return e&&Nr(e,ko(t,3))},rr.get=Du,rr.gt=Zl,rr.gte=Xl,rr.has=function(e,t){return null!=e&&xo(e,t,Vr)},rr.hasIn=Uu,rr.head=rl,rr.identity=ha,rr.includes=function(e,t,n,r){e=ru(e)?e:Yu(e),n=n&&!r?Cu(n):0;var i=e.length;return n<0&&(n=Ln(i+n,0)),gu(e)?n<=i&&e.indexOf(t,n)>-1:!!i&&qt(e,t,n)>-1},rr.indexOf=function(e,t,n){var r=null==e?0:e.length;if(!r)return-1;var i=null==n?0:Cu(n);return i<0&&(i=Ln(r+i,0)),qt(e,t,i)},rr.inRange=function(e,t,n){return t=Au(t),n===i?(n=t,t=0):n=Au(n),function(e,t,n){return e>=Nn(t,n)&&e=-T&&e<=T},rr.isSet=mu,rr.isString=gu,rr.isSymbol=vu,rr.isTypedArray=ku,rr.isUndefined=function(e){return e===i},rr.isWeakMap=function(e){return fu(e)&&To(e)==Z},rr.isWeakSet=function(e){return fu(e)&&"[object WeakSet]"==Kr(e)},rr.join=function(e,t){return null==e?"":jn.call(e,t)},rr.kebabCase=ta,rr.last=ul,rr.lastIndexOf=function(e,t,n){var r=null==e?0:e.length;if(!r)return-1;var o=r;return n!==i&&(o=(o=Cu(n))<0?Ln(r+o,0):Nn(o,r-1)),t==t?function(e,t,n){for(var r=n+1;r--;)if(e[r]===t)return r;return r}(e,t,o):Wt(e,Yt,o,!0)},rr.lowerCase=na,rr.lowerFirst=ra,rr.lt=_u,rr.lte=wu,rr.max=function(e){return e&&e.length?Er(e,ha,Br):i},rr.maxBy=function(e,t){return e&&e.length?Er(e,ko(t,2),Br):i},rr.mean=function(e){return Zt(e,ha)},rr.meanBy=function(e,t){return Zt(e,ko(t,2))},rr.min=function(e){return e&&e.length?Er(e,ha,Zr):i},rr.minBy=function(e,t){return e&&e.length?Er(e,ko(t,2),Zr):i},rr.stubArray=Ta,rr.stubFalse=xa,rr.stubObject=function(){return{}},rr.stubString=function(){return""},rr.stubTrue=function(){return!0},rr.multiply=ja,rr.nth=function(e,t){return e&&e.length?ri(e,Cu(t)):i},rr.noConflict=function(){return wt._===this&&(wt._=lt),this},rr.noop=va,rr.now=Dl,rr.pad=function(e,t,n){e=Mu(e);var r=(t=Cu(t))?vn(e):0;if(!t||r>=t)return e;var i=(t-r)/2;return to(Mn(i),n)+e+to(Sn(i),n)},rr.padEnd=function(e,t,n){e=Mu(e);var r=(t=Cu(t))?vn(e):0;return t&&rt){var r=e;e=t,t=r}if(n||e%1||t%1){var o=Fn();return Nn(e+o*(t-e+gt("1e-"+((o+"").length-1))),t)}return ai(e,t)},rr.reduce=function(e,t,n){var r=tu(e)?Gt:tn,i=arguments.length<3;return r(e,ko(t,4),n,i,xr)},rr.reduceRight=function(e,t,n){var r=tu(e)?Ht:tn,i=arguments.length<3;return r(e,ko(t,4),n,i,Sr)},rr.repeat=function(e,t,n){return t=(n?Po(e,t,n):t===i)?1:Cu(t),si(Mu(e),t)},rr.replace=function(){var e=arguments,t=Mu(e[0]);return e.length<3?t:t.replace(e[1],e[2])},rr.result=function(e,t,n){var r=-1,o=(t=Ei(t,e)).length;for(o||(o=1,e=i);++rT)return[];var n=M,r=Nn(e,M);t=ko(t),e-=M;for(var i=rn(r,t);++n=l)return e;var a=n-vn(r);if(a<1)return r;var s=u?Ii(u,0,a).join(""):e.slice(0,a);if(o===i)return s+r;if(u&&(a+=s.length-a),bu(o)){if(e.slice(a).search(o)){var c,p=s;for(o.global||(o=We(o.source,Mu(Re.exec(o))+"g")),o.lastIndex=0;c=o.exec(p);)var f=c.index;s=s.slice(0,f===i?a:f)}}else if(e.indexOf(ki(o),a)!=a){var d=s.lastIndexOf(o);d>-1&&(s=s.slice(0,d))}return s+r},rr.unescape=function(e){return(e=Mu(e))&&ye.test(e)?e.replace(de,_n):e},rr.uniqueId=function(e){var t=++nt;return Mu(e)+t},rr.upperCase=la,rr.upperFirst=ua,rr.each=Ml,rr.eachRight=El,rr.first=rl,ga(rr,(Sa={},Lr(rr,function(e,t){tt.call(rr.prototype,t)||(Sa[t]=e)}),Sa),{chain:!1}),rr.VERSION="4.17.15",Nt(["bind","bindKey","curry","curryRight","partial","partialRight"],function(e){rr[e].placeholder=rr}),Nt(["drop","take"],function(e,t){ur.prototype[e]=function(n){n=n===i?1:Ln(Cu(n),0);var r=this.__filtered__&&!t?new ur(this):this.clone();return r.__filtered__?r.__takeCount__=Nn(n,r.__takeCount__):r.__views__.push({size:Nn(n,M),type:e+(r.__dir__<0?"Right":"")}),r},ur.prototype[e+"Right"]=function(t){return this.reverse()[e](t).reverse()}}),Nt(["filter","map","takeWhile"],function(e,t){var n=t+1,r=1==n||3==n;ur.prototype[e]=function(e){var t=this.clone();return t.__iteratees__.push({iteratee:ko(e,3),type:n}),t.__filtered__=t.__filtered__||r,t}}),Nt(["head","last"],function(e,t){var n="take"+(t?"Right":"");ur.prototype[e]=function(){return this[n](1).value()[0]}}),Nt(["initial","tail"],function(e,t){var n="drop"+(t?"":"Right");ur.prototype[e]=function(){return this.__filtered__?new ur(this):this[n](1)}}),ur.prototype.compact=function(){return this.filter(ha)},ur.prototype.find=function(e){return this.filter(e).head()},ur.prototype.findLast=function(e){return this.reverse().find(e)},ur.prototype.invokeMap=ci(function(e,t){return"function"==typeof e?new ur(this):this.map(function(n){return $r(n,e,t)})}),ur.prototype.reject=function(e){return this.filter(zl(ko(e)))},ur.prototype.slice=function(e,t){e=Cu(e);var n=this;return n.__filtered__&&(e>0||t<0)?new ur(n):(e<0?n=n.takeRight(-e):e&&(n=n.drop(e)),t!==i&&(n=(t=Cu(t))<0?n.dropRight(-t):n.take(t-e)),n)},ur.prototype.takeRightWhile=function(e){return this.reverse().takeWhile(e).reverse()},ur.prototype.toArray=function(){return this.take(M)},Lr(ur.prototype,function(e,t){var n=/^(?:filter|find|map|reject)|While$/.test(t),r=/^(?:head|last)$/.test(t),o=rr[r?"take"+("last"==t?"Right":""):t],l=r||/^find/.test(t);o&&(rr.prototype[t]=function(){var t=this.__wrapped__,u=r?[1]:arguments,a=t instanceof ur,s=u[0],c=a||tu(t),p=function(e){var t=o.apply(rr,Vt([e],u));return r&&f?t[0]:t};c&&n&&"function"==typeof s&&1!=s.length&&(a=c=!1);var f=this.__chain__,d=!!this.__actions__.length,h=l&&!f,y=a&&!d;if(!l&&c){t=y?t:new ur(this);var b=e.apply(t,u);return b.__actions__.push({func:Al,args:[p],thisArg:i}),new lr(b,f)}return h&&y?e.apply(this,u):(b=this.thru(p),h?r?b.value()[0]:b.value():b)})}),Nt(["pop","push","shift","sort","splice","unshift"],function(e){var t=Ye[e],n=/^(?:push|sort|unshift)$/.test(e)?"tap":"thru",r=/^(?:pop|shift)$/.test(e);rr.prototype[e]=function(){var e=arguments;if(r&&!this.__chain__){var i=this.value();return t.apply(tu(i)?i:[],e)}return this[n](function(n){return t.apply(tu(n)?n:[],e)})}}),Lr(ur.prototype,function(e,t){var n=rr[t];if(n){var r=n.name+"";tt.call(Wn,r)||(Wn[r]=[]),Wn[r].push({name:t,func:n})}}),Wn[Yi(i,h).name]=[{name:"wrapper",func:i}],ur.prototype.clone=function(){var e=new ur(this.__wrapped__);return e.__actions__=Ki(this.__actions__),e.__dir__=this.__dir__,e.__filtered__=this.__filtered__,e.__iteratees__=Ki(this.__iteratees__),e.__takeCount__=this.__takeCount__,e.__views__=Ki(this.__views__),e},ur.prototype.reverse=function(){if(this.__filtered__){var e=new ur(this);e.__dir__=-1,e.__filtered__=!0}else(e=this.clone()).__dir__*=-1;return e},ur.prototype.value=function(){var e=this.__wrapped__.value(),t=this.__dir__,n=tu(e),r=t<0,i=n?e.length:0,o=function(e,t,n){for(var r=-1,i=n.length;++r=this.__values__.length;return{done:e,value:e?i:this.__values__[this.__index__++]}},rr.prototype.plant=function(e){for(var t,n=this;n instanceof or;){var r=Jo(n);r.__index__=0,r.__values__=i,t?o.__wrapped__=r:t=r;var o=r;n=n.__wrapped__}return o.__wrapped__=e,t},rr.prototype.reverse=function(){var e=this.__wrapped__;if(e instanceof ur){var t=e;return this.__actions__.length&&(t=new ur(this)),(t=t.reverse()).__actions__.push({func:Al,args:[pl],thisArg:i}),new lr(t,this.__chain__)}return this.thru(pl)},rr.prototype.toJSON=rr.prototype.valueOf=rr.prototype.value=function(){return Ci(this.__wrapped__,this.__actions__)},rr.prototype.first=rr.prototype.head,en&&(rr.prototype[en]=function(){return this}),rr}();wt._=wn,(r=(function(){return wn}).call(t,n,t,e))===i||(e.exports=r)}).call(this)}).call(this,n("YuTi")(e))},ny24:function(e,t,n){"use strict";n.d(t,"a",function(){return l});var r=n("mrSG"),i=n("MGBS"),o=n("zotm");function l(e){return function(t){return t.lift(new u(e))}}var u=function(){function e(e){this.notifier=e}return e.prototype.call=function(e,t){var n=new a(e),r=Object(o.a)(n,this.notifier);return r&&!n.seenValue?(n.add(r),t.subscribe(n)):n},e}(),a=function(e){function t(t){var n=e.call(this,t)||this;return n.seenValue=!1,n}return r.c(t,e),t.prototype.notifyNext=function(e,t,n,r,i){this.seenValue=!0,this.complete()},t.prototype.notifyComplete=function(){},t}(i.a)},omOa:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n("mz7f");t.storeFreeze=function(e){return function(t,n){r(t=t||{}),n.payload&&r(n.payload);var i=e(t,n);return r(i),i}}},oxjq:function(e,t,n){"use strict";var r=/[|\\{}()[\]^$+*?.]/g;e.exports=function(e){if("string"!=typeof e)throw new TypeError("Expected a string");return e.replace(r,"\\$&")}},p0ib:function(e,t,n){"use strict";n.d(t,"a",function(){return u});var r=n("6blF"),i=n("nkY7"),o=n("Zn8D"),l=n("IUTb");function u(){for(var e=[],t=0;t1&&"number"==typeof e[e.length-1]&&(n=e.pop())):"number"==typeof a&&(n=e.pop()),null===u&&1===e.length&&e[0]instanceof r.a?e[0]:Object(o.a)(n)(Object(l.a)(e,u))}},p2JS:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n("2QPq"),i=n("Mfn/");class o{fromJsonObject(e){return this.id=e.id,this.pointerMode=e.pointerMode,this.deceleratedPointerSpeedMultiplier=e.deceleratedPointerSpeedMultiplier,this.basePointerSpeedMultiplier=e.basePointerSpeedMultiplier,this.acceleratedPointerSpeedMultiplier=e.acceleratedPointerSpeedMultiplier,this.angularShift=e.angularShift,this.modLayerPointerFunction=e.modLayerPointerFunction,this.fnLayerPointerFunction=e.fnLayerPointerFunction,this.mouseLayerPointerFunction=e.mouseLayerPointerFunction,this}fromBinary(e){return this.id=e.readUInt8(),this.pointerMode=e.readInt8(),this.deceleratedPointerSpeedMultiplier=e.readUInt8(),this.basePointerSpeedMultiplier=e.readUInt8(),this.acceleratedPointerSpeedMultiplier=e.readUInt8(),this.angularShift=e.readUInt16(),this.modLayerPointerFunction=e.readUInt8(),this.fnLayerPointerFunction=e.readUInt8(),this.mouseLayerPointerFunction=e.readUInt8(),this}toJsonObject(){return{id:this.id,pointerMode:this.pointerMode,deceleratedPointerSpeedMultiplier:this.deceleratedPointerSpeedMultiplier,basePointerSpeedMultiplier:this.basePointerSpeedMultiplier,acceleratedPointerSpeedMultiplier:this.acceleratedPointerSpeedMultiplier,angularShift:this.angularShift,modeLayerPointerFunction:this.modLayerPointerFunction,fnLayerPointerFunction:this.fnLayerPointerFunction,mouseLayerPointerFunction:this.mouseLayerPointerFunction}}toBinary(e){e.writeUInt8(this.id),e.writeUInt8(this.pointerMode),e.writeUInt8(this.deceleratedPointerSpeedMultiplier),e.writeUInt8(this.basePointerSpeedMultiplier),e.writeUInt8(this.acceleratedPointerSpeedMultiplier),e.writeUInt16(this.angularShift),e.writeUInt8(this.modLayerPointerFunction),e.writeUInt8(this.fnLayerPointerFunction),e.writeUInt8(this.mouseLayerPointerFunction)}toString(){return``}}r.__decorate([i.assertUInt8,r.__metadata("design:type",Number)],o.prototype,"id",void 0),r.__decorate([i.assertUInt8,r.__metadata("design:type",Number)],o.prototype,"pointerMode",void 0),r.__decorate([i.assertUInt8,r.__metadata("design:type",Number)],o.prototype,"deceleratedPointerSpeedMultiplier",void 0),r.__decorate([i.assertUInt8,r.__metadata("design:type",Number)],o.prototype,"basePointerSpeedMultiplier",void 0),r.__decorate([i.assertUInt8,r.__metadata("design:type",Number)],o.prototype,"acceleratedPointerSpeedMultiplier",void 0),r.__decorate([i.assertUInt16,r.__metadata("design:type",Number)],o.prototype,"angularShift",void 0),r.__decorate([i.assertUInt8,r.__metadata("design:type",Number)],o.prototype,"modLayerPointerFunction",void 0),r.__decorate([i.assertUInt8,r.__metadata("design:type",Number)],o.prototype,"fnLayerPointerFunction",void 0),r.__decorate([i.assertUInt8,r.__metadata("design:type",Number)],o.prototype,"mouseLayerPointerFunction",void 0),t.ModuleConfiguration=o},psW0:function(e,t,n){"use strict";n.d(t,"a",function(){return s});var r=n("mrSG"),i=n("zotm"),o=n("MGBS"),l=n("rPjj"),u=n("67Y/"),a=n("0/uQ");function s(e,t,n){return void 0===n&&(n=Number.POSITIVE_INFINITY),"function"==typeof t?function(r){return r.pipe(s(function(n,r){return Object(a.a)(e(n,r)).pipe(Object(u.a)(function(e,i){return t(n,e,r,i)}))},n))}:("number"==typeof t&&(n=t),function(t){return t.lift(new c(e,n))})}var c=function(){function e(e,t){void 0===t&&(t=Number.POSITIVE_INFINITY),this.project=e,this.concurrent=t}return e.prototype.call=function(e,t){return t.subscribe(new p(e,this.project,this.concurrent))},e}(),p=function(e){function t(t,n,r){void 0===r&&(r=Number.POSITIVE_INFINITY);var i=e.call(this,t)||this;return i.project=n,i.concurrent=r,i.hasCompleted=!1,i.buffer=[],i.active=0,i.index=0,i}return r.c(t,e),t.prototype._next=function(e){this.active0?this._next(t.shift()):0===this.active&&this.hasCompleted&&this.destination.complete()},t}(o.a)},pugT:function(e,t,n){"use strict";var r=n("isby"),i=n("McSo"),o=n("2Bdj");function l(e){return Error.call(this),this.message=e?e.length+" errors occurred during unsubscription:\n"+e.map(function(e,t){return t+1+") "+e.toString()}).join("\n "):"",this.name="UnsubscriptionError",this.errors=e,this}l.prototype=Object.create(Error.prototype);var u=l;n.d(t,"a",function(){return a});var a=function(){function e(e){this.closed=!1,this._parentOrParents=null,this._subscriptions=null,e&&(this._unsubscribe=e)}var t;return e.prototype.unsubscribe=function(){var t;if(!this.closed){var n=this._parentOrParents,l=this._unsubscribe,a=this._subscriptions;if(this.closed=!0,this._parentOrParents=null,this._subscriptions=null,n instanceof e)n.remove(this);else if(null!==n)for(var c=0;co.KeyActionHelper.createKeyAction(e)))}fromJsonObject(e,t){return this.id=e.id,this.keyActions=e.keyActions.map(e=>o.KeyActionHelper.createKeyAction(e,t)),this}fromBinary(e,t){this.id=e.readUInt8();const n=e.readCompactLength();this.keyActions=[];for(let r=0;r!t||!e&&(t instanceof o.PlayMacroAction||t instanceof o.SwitchKeymapAction)?null:t.toJsonObject(e))}}toBinary(e,t){e.writeUInt8(this.id);const n=new o.NoneAction;e.writeArray(this.keyActions,(e,r)=>{r?r.toBinary(e,t):n.toBinary(e)})}toString(){return``}renameKeymap(e,t){let n,r=!1;if(this.keyActions.forEach((i,o)=>{if(!i)return;const l=i.renameKeymap(e,t);l!==i&&(r||(n=this.keyActions.slice(),r=!0),n[o]=l)}),r){const e=Object.assign(new l,this);return e.keyActions=n,e}return this}}r.__decorate([i.assertUInt8,r.__metadata("design:type",Number)],l.prototype,"id",void 0),t.Module=l},rBfm:function(e,t,n){"use strict";var r;Object.defineProperty(t,"__esModule",{value:!0}),function(e){e[e.KeyMacroAction=0]="KeyMacroAction",e[e.LastKeyMacroAction=63]="LastKeyMacroAction",e[e.MouseButtonMacroAction=64]="MouseButtonMacroAction",e[e.LastMouseButtonMacroAction=66]="LastMouseButtonMacroAction",e[e.MoveMouseMacroAction=67]="MoveMouseMacroAction",e[e.ScrollMouseMacroAction=68]="ScrollMouseMacroAction",e[e.DelayMacroAction=69]="DelayMacroAction",e[e.TextMacroAction=70]="TextMacroAction"}(r=t.MacroActionId||(t.MacroActionId={})),function(e){e[e.tap=0]="tap",e[e.press=1]="press",e[e.release=2]="release"}(t.MacroKeySubAction||(t.MacroKeySubAction={})),function(e){e[e.click=0]="click",e[e.hold=1]="hold",e[e.release=2]="release"}(t.MacroMouseSubAction||(t.MacroMouseSubAction={})),t.macroActionType={KeyMacroAction:"key",MouseButtonMacroAction:"mouseButton",MoveMouseMacroAction:"moveMouse",ScrollMouseMacroAction:"scrollMouse",DelayMacroAction:"delay",TextMacroAction:"text"},t.MacroAction=class{assertMacroActionType(e){const n=this.getName();if(e.macroActionType!==t.macroActionType[n])throw`Invalid ${n}.macroActionType: ${e.macroActionType}`}readAndAssertMacroActionId(e){const t=this.getName(),n=e.readUInt8(),i=r[t];if(i===r.KeyMacroAction){if(nr.LastKeyMacroAction)throw`Invalid ${t} first byte: ${n}`}else if(i===r.MouseButtonMacroAction){if(nr.LastMouseButtonMacroAction)throw`Invalid ${t} first byte: ${n}`}else if(n!==i)throw`Invalid ${t} first byte: ${n}`;return n}}},rPjj:function(e,t,n){"use strict";n.d(t,"a",function(){return i});var r=n("mrSG"),i=function(e){function t(t,n,r){var i=e.call(this)||this;return i.parent=t,i.outerValue=n,i.outerIndex=r,i.index=0,i}return r.c(t,e),t.prototype._next=function(e){this.parent.notifyNext(this.outerValue,e,this.outerIndex,this.index++,this)},t.prototype._error=function(e){this.parent.notifyError(e,this),this.unsubscribe()},t.prototype._complete=function(){this.parent.notifyComplete(this),this.unsubscribe()},t}(n("FFOo").a)},reFP:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n("Ji2o");t.getHardwareConfigFromDeviceResponse=e=>{const t=JSON.parse(e),n=new r.HardwareConfiguration;if(n.fromBinary(r.UhkBuffer.fromArray(t)),"FTY"===n.signature)throw Error("The device is in factory reset mode. Power-cycle the device to use it with Agent!");if("UHK"!==n.signature)throw Error("Please power cycle your keyboard (Invalid hardware configuration: Invalid signature)");return n},t.getUserConfigFromDeviceResponse=e=>{const t=JSON.parse(e),n=new r.UserConfiguration;if(n.fromBinary(r.UhkBuffer.fromArray(t)),n.userConfigMajorVersion>0)return n;throw Error("Invalid user configuration")},t.mapObjectToUserConfigBinaryBuffer=e=>{const t=new r.UserConfiguration;t.fromJsonObject(e);const n=new r.UhkBuffer;return t.toBinary(n),n.getBufferContent()}},s9zn:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n("APMd"),i=n("TEuf");class o{constructor(e){e&&(this.name=e.name,this.description=e.description,this.abbreviation=e.abbreviation,this.isDefault=e.isDefault,this.layers=e.layers.map(e=>new r.Layer(e)))}fromJsonObject(e,t){return this.isDefault=e.isDefault,this.abbreviation=e.abbreviation,this.name=e.name,this.description=e.description,this.layers=e.layers.map(e=>(new r.Layer).fromJsonObject(e,t)),this.normalize(),this}fromBinary(e,t){return this.abbreviation=e.readString(),this.isDefault=e.readBoolean(),this.name=e.readString(),this.description=e.readString(),this.layers=e.readArray(e=>(new r.Layer).fromBinary(e,t)),this.normalize(),this}toJsonObject(e){return{isDefault:this.isDefault,abbreviation:this.abbreviation,name:this.name,description:this.description,layers:this.layers.map(t=>t.toJsonObject(e))}}toBinary(e,t){e.writeString(this.abbreviation),e.writeBoolean(this.isDefault),e.writeString(this.name),e.writeString(this.description),e.writeArray(this.layers,(e,n)=>{n.toBinary(e,t)})}toString(){return``}renameKeymap(e,t){let n,r=!1;if(this.layers.forEach((i,o)=>{const l=i.renameKeymap(e,t);l!==i&&(r||(n=this.layers.slice(),r=!0),n[o]=l)}),r){const e=Object.assign(new o,this);return e.layers=n,e}return this}normalize(){if(!(this.layers.length<1))for(let e=0;eo)throw new RangeError('The value "'+e+'" is invalid for option "size"');var t=new Uint8Array(e);return t.__proto__=u.prototype,t}function u(e,t,n){if("number"==typeof e){if("string"==typeof t)throw new TypeError('The "string" argument must be of type string. Received type number');return c(e)}return a(e,t,n)}function a(e,t,n){if("string"==typeof e)return function(e,t){if("string"==typeof t&&""!==t||(t="utf8"),!u.isEncoding(t))throw new TypeError("Unknown encoding: "+t);var n=0|d(e,t),r=l(n),i=r.write(e,t);return i!==n&&(r=r.slice(0,i)),r}(e,t);if(ArrayBuffer.isView(e))return p(e);if(null==e)throw TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof e);if(K(e,ArrayBuffer)||e&&K(e.buffer,ArrayBuffer))return function(e,t,n){if(t<0||e.byteLength=o)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+o.toString(16)+" bytes");return 0|e}function d(e,t){if(u.isBuffer(e))return e.length;if(ArrayBuffer.isView(e)||K(e,ArrayBuffer))return e.byteLength;if("string"!=typeof e)throw new TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof e);var n=e.length,r=arguments.length>2&&!0===arguments[2];if(!r&&0===n)return 0;for(var i=!1;;)switch(t){case"ascii":case"latin1":case"binary":return n;case"utf8":case"utf-8":return D(e).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*n;case"hex":return n>>>1;case"base64":return U(e).length;default:if(i)return r?-1:D(e).length;t=(""+t).toLowerCase(),i=!0}}function h(e,t,n){var r=!1;if((void 0===t||t<0)&&(t=0),t>this.length)return"";if((void 0===n||n>this.length)&&(n=this.length),n<=0)return"";if((n>>>=0)<=(t>>>=0))return"";for(e||(e="utf8");;)switch(e){case"hex":return M(this,t,n);case"utf8":case"utf-8":return C(this,t,n);case"ascii":return x(this,t,n);case"latin1":case"binary":return S(this,t,n);case"base64":return A(this,t,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return E(this,t,n);default:if(r)throw new TypeError("Unknown encoding: "+e);e=(e+"").toLowerCase(),r=!0}}function y(e,t,n){var r=e[t];e[t]=e[n],e[n]=r}function b(e,t,n,r,i){if(0===e.length)return-1;if("string"==typeof n?(r=n,n=0):n>2147483647?n=2147483647:n<-2147483648&&(n=-2147483648),B(n=+n)&&(n=i?0:e.length-1),n<0&&(n=e.length+n),n>=e.length){if(i)return-1;n=e.length-1}else if(n<0){if(!i)return-1;n=0}if("string"==typeof t&&(t=u.from(t,r)),u.isBuffer(t))return 0===t.length?-1:m(e,t,n,r,i);if("number"==typeof t)return t&=255,"function"==typeof Uint8Array.prototype.indexOf?i?Uint8Array.prototype.indexOf.call(e,t,n):Uint8Array.prototype.lastIndexOf.call(e,t,n):m(e,[t],n,r,i);throw new TypeError("val must be string, number or Buffer")}function m(e,t,n,r,i){var o,l=1,u=e.length,a=t.length;if(void 0!==r&&("ucs2"===(r=String(r).toLowerCase())||"ucs-2"===r||"utf16le"===r||"utf-16le"===r)){if(e.length<2||t.length<2)return-1;l=2,u/=2,a/=2,n/=2}function s(e,t){return 1===l?e[t]:e.readUInt16BE(t*l)}if(i){var c=-1;for(o=n;ou&&(n=u-a),o=n;o>=0;o--){for(var p=!0,f=0;fi&&(r=i):r=i;var o=t.length;r>o/2&&(r=o/2);for(var l=0;l>8,i.push(n%256),i.push(r);return i}(t,e.length-n),e,n,r)}function A(e,t,n){return r.fromByteArray(0===t&&n===e.length?e:e.slice(t,n))}function C(e,t,n){n=Math.min(e.length,n);for(var r=[],i=t;i239?4:s>223?3:s>191?2:1;if(i+p<=n)switch(p){case 1:s<128&&(c=s);break;case 2:128==(192&(o=e[i+1]))&&(a=(31&s)<<6|63&o)>127&&(c=a);break;case 3:l=e[i+2],128==(192&(o=e[i+1]))&&128==(192&l)&&(a=(15&s)<<12|(63&o)<<6|63&l)>2047&&(a<55296||a>57343)&&(c=a);break;case 4:l=e[i+2],u=e[i+3],128==(192&(o=e[i+1]))&&128==(192&l)&&128==(192&u)&&(a=(15&s)<<18|(63&o)<<12|(63&l)<<6|63&u)>65535&&a<1114112&&(c=a)}null===c?(c=65533,p=1):c>65535&&(r.push((c-=65536)>>>10&1023|55296),c=56320|1023&c),r.push(c),i+=p}return function(e){var t=e.length;if(t<=T)return String.fromCharCode.apply(String,e);for(var n="",r=0;rn&&(e+=" ... "),""},u.prototype.compare=function(e,t,n,r,i){if(K(e,Uint8Array)&&(e=u.from(e,e.offset,e.byteLength)),!u.isBuffer(e))throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof e);if(void 0===t&&(t=0),void 0===n&&(n=e?e.length:0),void 0===r&&(r=0),void 0===i&&(i=this.length),t<0||n>e.length||r<0||i>this.length)throw new RangeError("out of range index");if(r>=i&&t>=n)return 0;if(r>=i)return-1;if(t>=n)return 1;if(this===e)return 0;for(var o=(i>>>=0)-(r>>>=0),l=(n>>>=0)-(t>>>=0),a=Math.min(o,l),s=this.slice(r,i),c=e.slice(t,n),p=0;p>>=0,isFinite(n)?(n>>>=0,void 0===r&&(r="utf8")):(r=n,n=void 0)}var i=this.length-t;if((void 0===n||n>i)&&(n=i),e.length>0&&(n<0||t<0)||t>this.length)throw new RangeError("Attempt to write outside buffer bounds");r||(r="utf8");for(var o=!1;;)switch(r){case"hex":return g(this,e,t,n);case"utf8":case"utf-8":return v(this,e,t,n);case"ascii":return k(this,e,t,n);case"latin1":case"binary":return _(this,e,t,n);case"base64":return w(this,e,t,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return O(this,e,t,n);default:if(o)throw new TypeError("Unknown encoding: "+r);r=(""+r).toLowerCase(),o=!0}},u.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};var T=4096;function x(e,t,n){var r="";n=Math.min(e.length,n);for(var i=t;ii)&&(n=i);for(var o="",l=t;ln)throw new RangeError("Trying to access beyond buffer length")}function I(e,t,n,r,i,o){if(!u.isBuffer(e))throw new TypeError('"buffer" argument must be a Buffer instance');if(t>i||te.length)throw new RangeError("Index out of range")}function j(e,t,n,r,i,o){if(n+r>e.length)throw new RangeError("Index out of range");if(n<0)throw new RangeError("Index out of range")}function R(e,t,n,r,o){return t=+t,n>>>=0,o||j(e,0,n,4),i.write(e,t,n,r,23,4),n+4}function L(e,t,n,r,o){return t=+t,n>>>=0,o||j(e,0,n,8),i.write(e,t,n,r,52,8),n+8}u.prototype.slice=function(e,t){var n=this.length;(e=~~e)<0?(e+=n)<0&&(e=0):e>n&&(e=n),(t=void 0===t?n:~~t)<0?(t+=n)<0&&(t=0):t>n&&(t=n),t>>=0,t>>>=0,n||P(e,t,this.length);for(var r=this[e],i=1,o=0;++o>>=0,t>>>=0,n||P(e,t,this.length);for(var r=this[e+--t],i=1;t>0&&(i*=256);)r+=this[e+--t]*i;return r},u.prototype.readUInt8=function(e,t){return e>>>=0,t||P(e,1,this.length),this[e]},u.prototype.readUInt16LE=function(e,t){return e>>>=0,t||P(e,2,this.length),this[e]|this[e+1]<<8},u.prototype.readUInt16BE=function(e,t){return e>>>=0,t||P(e,2,this.length),this[e]<<8|this[e+1]},u.prototype.readUInt32LE=function(e,t){return e>>>=0,t||P(e,4,this.length),(this[e]|this[e+1]<<8|this[e+2]<<16)+16777216*this[e+3]},u.prototype.readUInt32BE=function(e,t){return e>>>=0,t||P(e,4,this.length),16777216*this[e]+(this[e+1]<<16|this[e+2]<<8|this[e+3])},u.prototype.readIntLE=function(e,t,n){e>>>=0,t>>>=0,n||P(e,t,this.length);for(var r=this[e],i=1,o=0;++o=(i*=128)&&(r-=Math.pow(2,8*t)),r},u.prototype.readIntBE=function(e,t,n){e>>>=0,t>>>=0,n||P(e,t,this.length);for(var r=t,i=1,o=this[e+--r];r>0&&(i*=256);)o+=this[e+--r]*i;return o>=(i*=128)&&(o-=Math.pow(2,8*t)),o},u.prototype.readInt8=function(e,t){return e>>>=0,t||P(e,1,this.length),128&this[e]?-1*(255-this[e]+1):this[e]},u.prototype.readInt16LE=function(e,t){e>>>=0,t||P(e,2,this.length);var n=this[e]|this[e+1]<<8;return 32768&n?4294901760|n:n},u.prototype.readInt16BE=function(e,t){e>>>=0,t||P(e,2,this.length);var n=this[e+1]|this[e]<<8;return 32768&n?4294901760|n:n},u.prototype.readInt32LE=function(e,t){return e>>>=0,t||P(e,4,this.length),this[e]|this[e+1]<<8|this[e+2]<<16|this[e+3]<<24},u.prototype.readInt32BE=function(e,t){return e>>>=0,t||P(e,4,this.length),this[e]<<24|this[e+1]<<16|this[e+2]<<8|this[e+3]},u.prototype.readFloatLE=function(e,t){return e>>>=0,t||P(e,4,this.length),i.read(this,e,!0,23,4)},u.prototype.readFloatBE=function(e,t){return e>>>=0,t||P(e,4,this.length),i.read(this,e,!1,23,4)},u.prototype.readDoubleLE=function(e,t){return e>>>=0,t||P(e,8,this.length),i.read(this,e,!0,52,8)},u.prototype.readDoubleBE=function(e,t){return e>>>=0,t||P(e,8,this.length),i.read(this,e,!1,52,8)},u.prototype.writeUIntLE=function(e,t,n,r){e=+e,t>>>=0,n>>>=0,r||I(this,e,t,n,Math.pow(2,8*n)-1,0);var i=1,o=0;for(this[t]=255&e;++o>>=0,n>>>=0,r||I(this,e,t,n,Math.pow(2,8*n)-1,0);var i=n-1,o=1;for(this[t+i]=255&e;--i>=0&&(o*=256);)this[t+i]=e/o&255;return t+n},u.prototype.writeUInt8=function(e,t,n){return e=+e,t>>>=0,n||I(this,e,t,1,255,0),this[t]=255&e,t+1},u.prototype.writeUInt16LE=function(e,t,n){return e=+e,t>>>=0,n||I(this,e,t,2,65535,0),this[t]=255&e,this[t+1]=e>>>8,t+2},u.prototype.writeUInt16BE=function(e,t,n){return e=+e,t>>>=0,n||I(this,e,t,2,65535,0),this[t]=e>>>8,this[t+1]=255&e,t+2},u.prototype.writeUInt32LE=function(e,t,n){return e=+e,t>>>=0,n||I(this,e,t,4,4294967295,0),this[t+3]=e>>>24,this[t+2]=e>>>16,this[t+1]=e>>>8,this[t]=255&e,t+4},u.prototype.writeUInt32BE=function(e,t,n){return e=+e,t>>>=0,n||I(this,e,t,4,4294967295,0),this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e,t+4},u.prototype.writeIntLE=function(e,t,n,r){if(e=+e,t>>>=0,!r){var i=Math.pow(2,8*n-1);I(this,e,t,n,i-1,-i)}var o=0,l=1,u=0;for(this[t]=255&e;++o>0)-u&255;return t+n},u.prototype.writeIntBE=function(e,t,n,r){if(e=+e,t>>>=0,!r){var i=Math.pow(2,8*n-1);I(this,e,t,n,i-1,-i)}var o=n-1,l=1,u=0;for(this[t+o]=255&e;--o>=0&&(l*=256);)e<0&&0===u&&0!==this[t+o+1]&&(u=1),this[t+o]=(e/l>>0)-u&255;return t+n},u.prototype.writeInt8=function(e,t,n){return e=+e,t>>>=0,n||I(this,e,t,1,127,-128),e<0&&(e=255+e+1),this[t]=255&e,t+1},u.prototype.writeInt16LE=function(e,t,n){return e=+e,t>>>=0,n||I(this,e,t,2,32767,-32768),this[t]=255&e,this[t+1]=e>>>8,t+2},u.prototype.writeInt16BE=function(e,t,n){return e=+e,t>>>=0,n||I(this,e,t,2,32767,-32768),this[t]=e>>>8,this[t+1]=255&e,t+2},u.prototype.writeInt32LE=function(e,t,n){return e=+e,t>>>=0,n||I(this,e,t,4,2147483647,-2147483648),this[t]=255&e,this[t+1]=e>>>8,this[t+2]=e>>>16,this[t+3]=e>>>24,t+4},u.prototype.writeInt32BE=function(e,t,n){return e=+e,t>>>=0,n||I(this,e,t,4,2147483647,-2147483648),e<0&&(e=4294967295+e+1),this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e,t+4},u.prototype.writeFloatLE=function(e,t,n){return R(this,e,t,!0,n)},u.prototype.writeFloatBE=function(e,t,n){return R(this,e,t,!1,n)},u.prototype.writeDoubleLE=function(e,t,n){return L(this,e,t,!0,n)},u.prototype.writeDoubleBE=function(e,t,n){return L(this,e,t,!1,n)},u.prototype.copy=function(e,t,n,r){if(!u.isBuffer(e))throw new TypeError("argument should be a Buffer");if(n||(n=0),r||0===r||(r=this.length),t>=e.length&&(t=e.length),t||(t=0),r>0&&r=this.length)throw new RangeError("Index out of range");if(r<0)throw new RangeError("sourceEnd out of bounds");r>this.length&&(r=this.length),e.length-t=0;--o)e[o+t]=this[o+n];else Uint8Array.prototype.set.call(e,this.subarray(n,r),t);return i},u.prototype.fill=function(e,t,n,r){if("string"==typeof e){if("string"==typeof t?(r=t,t=0,n=this.length):"string"==typeof n&&(r=n,n=this.length),void 0!==r&&"string"!=typeof r)throw new TypeError("encoding must be a string");if("string"==typeof r&&!u.isEncoding(r))throw new TypeError("Unknown encoding: "+r);if(1===e.length){var i=e.charCodeAt(0);("utf8"===r&&i<128||"latin1"===r)&&(e=i)}}else"number"==typeof e&&(e&=255);if(t<0||this.length>>=0,n=void 0===n?this.length:n>>>0,e||(e=0),"number"==typeof e)for(o=t;o55295&&n<57344){if(!i){if(n>56319){(t-=3)>-1&&o.push(239,191,189);continue}if(l+1===r){(t-=3)>-1&&o.push(239,191,189);continue}i=n;continue}if(n<56320){(t-=3)>-1&&o.push(239,191,189),i=n;continue}n=65536+(i-55296<<10|n-56320)}else i&&(t-=3)>-1&&o.push(239,191,189);if(i=null,n<128){if((t-=1)<0)break;o.push(n)}else if(n<2048){if((t-=2)<0)break;o.push(n>>6|192,63&n|128)}else if(n<65536){if((t-=3)<0)break;o.push(n>>12|224,n>>6&63|128,63&n|128)}else{if(!(n<1114112))throw new Error("Invalid code point");if((t-=4)<0)break;o.push(n>>18|240,n>>12&63|128,n>>6&63|128,63&n|128)}}return o}function U(e){return r.toByteArray(function(e){if((e=(e=e.split("=")[0]).trim().replace(N,"")).length<2)return"";for(;e.length%4!=0;)e+="=";return e}(e))}function F(e,t,n,r){for(var i=0;i=t.length||i>=e.length);++i)t[i+n]=e[i];return i}function K(e,t){return e instanceof t||null!=e&&null!=e.constructor&&null!=e.constructor.name&&e.constructor.name===t.name}function B(e){return e!=e}},uMaO:function(e,t,n){"use strict";n.d(t,"a",function(){return i});var r=n("mrSG"),i=function(e){function t(t,n){var r=e.call(this)||this;return r.subject=t,r.subscriber=n,r.closed=!1,r}return r.c(t,e),t.prototype.unsubscribe=function(){if(!this.closed){this.closed=!0;var e=this.subject,t=e.observers;if(this.subject=null,t&&0!==t.length&&!e.isStopped&&!e.closed){var n=t.indexOf(this.subscriber);-1!==n&&t.splice(n,1)}}},t}(n("pugT").a)},ucu2:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n("2QPq");r.__exportStar(n("M3cR"),t),r.__exportStar(n("x3zx"),t),r.__exportStar(n("WM0l"),t),r.__exportStar(n("Ji2o"),t)},uz7o:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e){e.Default="default",e.Success="success",e.Error="error",e.Warning="warning",e.Info="info",e.Undoable="undoable"}(t.NotificationType||(t.NotificationType={}))},"wCQ+":function(e){e.exports=JSON.parse('{"isDefault":false,"abbreviation":"QTY","name":"QWERTY","description":"Maecenas sem dui, ullamcorper consequat pellentesque ut, mattis at velit. Duis scelerisque eleifend gravida. Aenean at mauris rhoncus, dictum mi vitae, semper eros. Quisque maximus est elit, at condimentum ligula consectetur vel. Aenean lorem felis, molestie id ex suscipit, sagittis mollis dui. Phasellus in felis in libero bibendum ornare. Duis vestibulum dolor sed diam tempor vulputate. Curabitur scelerisque pretium ipsum. Phasellus non orci vestibulum, vehicula lectus sit amet, lacinia velit. Class aptent taciti sociosqu ad litora torquent per conubia nostra, per inceptos himenaeos. In diam lacus, cursus at pretium vel, ullamcorper at ante.","layers":[{"modules":[{"id":0,"pointerRole":"move","keyActions":[{"keyActionType":"keystroke","type":"basic","scancode":36},{"keyActionType":"keystroke","type":"basic","scancode":37},{"keyActionType":"keystroke","type":"basic","scancode":38},{"keyActionType":"keystroke","type":"basic","scancode":39},{"keyActionType":"keystroke","type":"basic","scancode":45},{"keyActionType":"keystroke","type":"basic","scancode":46},{"keyActionType":"keystroke","type":"basic","scancode":42},{"keyActionType":"keystroke","type":"basic","scancode":24},{"keyActionType":"keystroke","type":"basic","scancode":12},{"keyActionType":"keystroke","type":"basic","scancode":18},{"keyActionType":"keystroke","type":"basic","scancode":19},{"keyActionType":"keystroke","type":"basic","scancode":47},{"keyActionType":"keystroke","type":"basic","scancode":48},{"keyActionType":"keystroke","type":"basic","scancode":49},{"keyActionType":"keystroke","type":"basic","scancode":28},{"keyActionType":"keystroke","type":"basic","scancode":13},{"keyActionType":"keystroke","type":"basic","scancode":14},{"keyActionType":"keystroke","type":"basic","scancode":15},{"keyActionType":"keystroke","type":"basic","scancode":51},{"keyActionType":"keystroke","type":"basic","scancode":52},{"keyActionType":"keystroke","type":"basic","scancode":40},{"keyActionType":"keystroke","type":"basic","scancode":11},{"keyActionType":"keystroke","type":"basic","scancode":17},{"keyActionType":"keystroke","type":"basic","scancode":16},{"keyActionType":"keystroke","type":"basic","scancode":54},{"keyActionType":"keystroke","type":"basic","scancode":55},{"keyActionType":"keystroke","type":"basic","scancode":56},{"keyActionType":"keystroke","type":"basic","modifierMask":32},null,{"keyActionType":"keystroke","type":"basic","scancode":44},{"keyActionType":"switchLayer","layer":"mod","toggle":false},{"keyActionType":"switchLayer","layer":"fn","toggle":false},{"keyActionType":"keystroke","type":"basic","modifierMask":64},{"keyActionType":"keystroke","type":"basic","modifierMask":128},{"keyActionType":"keystroke","type":"basic","modifierMask":16}]},{"id":1,"pointerRole":"move","keyActions":[{"keyActionType":"keystroke","type":"basic","scancode":53},{"keyActionType":"keystroke","type":"basic","scancode":30},{"keyActionType":"keystroke","type":"basic","scancode":31},{"keyActionType":"keystroke","type":"basic","scancode":32},{"keyActionType":"keystroke","type":"basic","scancode":33},{"keyActionType":"keystroke","type":"basic","scancode":34},{"keyActionType":"keystroke","type":"basic","scancode":35},{"keyActionType":"keystroke","type":"basic","scancode":43},{"keyActionType":"keystroke","type":"basic","scancode":20},{"keyActionType":"keystroke","type":"basic","scancode":26},{"keyActionType":"keystroke","type":"basic","scancode":8},{"keyActionType":"keystroke","type":"basic","scancode":21},null,{"keyActionType":"keystroke","type":"basic","scancode":23},{"keyActionType":"switchLayer","layer":"mouse","toggle":false},{"keyActionType":"keystroke","type":"basic","scancode":4},{"keyActionType":"keystroke","type":"basic","scancode":22},{"keyActionType":"keystroke","type":"basic","scancode":7},{"keyActionType":"keystroke","type":"basic","scancode":9},null,{"keyActionType":"keystroke","type":"basic","scancode":10},{"keyActionType":"keystroke","type":"basic","modifierMask":2},null,{"keyActionType":"keystroke","type":"basic","scancode":29},{"keyActionType":"keystroke","type":"basic","scancode":27},{"keyActionType":"keystroke","type":"basic","scancode":6},{"keyActionType":"keystroke","type":"basic","scancode":25},{"keyActionType":"keystroke","type":"basic","scancode":5},{"keyActionType":"keystroke","type":"basic","modifierMask":1},{"keyActionType":"keystroke","type":"basic","modifierMask":8},{"keyActionType":"keystroke","type":"basic","modifierMask":4},{"keyActionType":"switchLayer","layer":"fn","toggle":false},{"keyActionType":"keystroke","type":"basic","scancode":44},{"keyActionType":"switchLayer","layer":"mod","toggle":false},null]},{"id":2,"pointerRole":"scroll","keyActions":[]}]},{"modules":[{"id":0,"pointerRole":"none","keyActions":[null,null,null,null,null,null,null,{"keyActionType":"keystroke","type":"basic","scancode":74},{"keyActionType":"keystroke","type":"basic","scancode":82},{"keyActionType":"keystroke","type":"basic","scancode":77},null,null,null,null,{"keyActionType":"keystroke","type":"basic","scancode":75},{"keyActionType":"keystroke","type":"basic","scancode":80},{"keyActionType":"keystroke","type":"basic","scancode":81},{"keyActionType":"keystroke","type":"basic","scancode":79},null,null,null,{"keyActionType":"keystroke","type":"basic","scancode":78},null,null,null,null,{"keyActionType":"keystroke","type":"basic","scancode":118},{"keyActionType":"keystroke","type":"basic","modifierMask":32},null,null,{"keyActionType":"switchLayer","layer":"mod","toggle":false},{"keyActionType":"switchLayer","layer":"fn","toggle":false},{"keyActionType":"keystroke","type":"basic","modifierMask":64},{"keyActionType":"keystroke","type":"basic","modifierMask":128},{"keyActionType":"keystroke","type":"basic","modifierMask":16}]},{"id":1,"pointerRole":"none","keyActions":[null,null,null,null,null,null,null,null,null,null,null,null,null,null,{"keyActionType":"switchLayer","layer":"mouse","toggle":false},null,null,null,null,null,null,{"keyActionType":"keystroke","type":"basic","modifierMask":2},null,null,null,null,null,null,{"keyActionType":"keystroke","type":"basic","modifierMask":1},{"keyActionType":"keystroke","type":"basic","modifierMask":8},{"keyActionType":"keystroke","type":"basic","modifierMask":4},{"keyActionType":"switchLayer","layer":"fn","toggle":false},null,{"keyActionType":"switchLayer","layer":"mod","toggle":false},null]}]},{"modules":[{"id":0,"pointerRole":"move","keyActions":[null,null,null,null,null,null,null,{"keyActionType":"keystroke","type":"media","scancode":176},{"keyActionType":"keystroke","type":"media","scancode":233},{"keyActionType":"keystroke","type":"media","scancode":183},null,null,null,null,null,{"keyActionType":"keystroke","type":"media","scancode":182},{"keyActionType":"keystroke","type":"media","scancode":234},{"keyActionType":"keystroke","type":"media","scancode":181},null,null,null,null,null,null,{"keyActionType":"keystroke","type":"media","scancode":226},null,null,{"keyActionType":"keystroke","type":"basic","modifierMask":32},null,null,{"keyActionType":"switchLayer","layer":"mod","toggle":false},{"keyActionType":"switchLayer","layer":"fn","toggle":false},{"keyActionType":"keystroke","type":"basic","modifierMask":64},{"keyActionType":"keystroke","type":"basic","modifierMask":128},{"keyActionType":"keystroke","type":"basic","modifierMask":16}]},{"id":1,"pointerRole":"scroll","keyActions":[null,null,null,null,null,null,null,null,null,null,null,null,null,null,{"keyActionType":"switchLayer","layer":"mouse","toggle":false},null,null,null,null,null,null,{"keyActionType":"keystroke","type":"basic","modifierMask":2},null,null,null,null,null,null,{"keyActionType":"keystroke","type":"basic","modifierMask":1},{"keyActionType":"keystroke","type":"basic","modifierMask":8},{"keyActionType":"keystroke","type":"basic","modifierMask":4},{"keyActionType":"switchLayer","layer":"fn","toggle":false},null,{"keyActionType":"switchLayer","layer":"mod","toggle":false},null]}]},{"modules":[{"id":0,"pointerRole":"move","keyActions":[null,null,null,null,null,null,null,null,{"keyActionType":"mouse","mouseAction":"moveUp"},null,null,null,null,null,{"keyActionType":"mouse","mouseAction":"scrollUp"},{"keyActionType":"mouse","mouseAction":"moveLeft"},{"keyActionType":"mouse","mouseAction":"moveDown"},{"keyActionType":"mouse","mouseAction":"moveRight"},null,null,null,{"keyActionType":"mouse","mouseAction":"scrollDown"},null,null,null,null,null,null,null,null,{"keyActionType":"switchLayer","layer":"mod","toggle":false},{"keyActionType":"switchLayer","layer":"fn","toggle":false},{"keyActionType":"keystroke","type":"basic","modifierMask":64},{"keyActionType":"keystroke","type":"basic","modifierMask":128},{"keyActionType":"keystroke","type":"basic","modifierMask":16}]},{"id":1,"pointerRole":"move","keyActions":[null,null,null,null,null,null,null,null,null,null,null,null,null,null,{"keyActionType":"switchLayer","layer":"mouse","toggle":false},null,{"keyActionType":"mouse","mouseAction":"rightClick"},{"keyActionType":"mouse","mouseAction":"middleClick"},{"keyActionType":"mouse","mouseAction":"leftClick"},null,null,null,null,null,null,null,null,null,{"keyActionType":"keystroke","type":"basic","modifierMask":1},{"keyActionType":"keystroke","type":"basic","modifierMask":8},{"keyActionType":"keystroke","type":"basic","modifierMask":4},{"keyActionType":"switchLayer","layer":"fn","toggle":false},{"keyActionType":"mouse","mouseAction":"decelerate"},{"keyActionType":"switchLayer","layer":"mod","toggle":false},null]}]}]}')},wEuk:function(e,t){e.exports={svg:{$:{xmlns:"http://www.w3.org/2000/svg",version:"1.1",width:"744.094488189",height:"1052.36220472"},rect:[{$:{id:"key-1",x:"-446.27197",y:"678.38013",ry:"3.5107117",width:"63.014999",height:"63.014999",style:"fill:#333"}},{$:{id:"key-2",x:"-379.92999",y:"678.38013",ry:"3.5107117",width:"63.014999",height:"63.014999",style:"fill:#333"}},{$:{id:"key-3",x:"-313.58899",y:"678.38013",ry:"3.5107117",width:"63.014999",height:"63.014999",style:"fill:#333"}},{$:{id:"key-4",x:"-247.24799",y:"678.38013",ry:"3.5107117",width:"63.014999",height:"63.014999",style:"fill:#333"}},{$:{id:"key-5",x:"-180.90698",y:"678.38013",ry:"3.5107117",width:"63.014999",height:"63.014999",style:"fill:#333"}},{$:{id:"key-6",x:"-114.56499",y:"678.38013",ry:"3.5107117",width:"63.014999",height:"63.014999",style:"fill:#333"}},{$:{id:"key-7",x:"-48.223999",y:"678.38013",ry:"3.5107117",width:"63.014999",height:"63.014999",style:"fill:#333"}},{$:{id:"key-8",x:"-446.27197",y:"744.89612",ry:"3.5107117",width:"96.728996",height:"63.014999",style:"fill:#333"}},{$:{id:"key-9",x:"-346.21698",y:"744.89612",ry:"3.5107117",width:"63.014999",height:"63.014999",style:"fill:#333"}},{$:{id:"key-10",x:"-279.87601",y:"744.89612",ry:"3.5107117",width:"63.014999",height:"63.014999",style:"fill:#333"}},{$:{id:"key-11",x:"-213.535",y:"744.89612",ry:"3.5107117",width:"63.014999",height:"63.014999",style:"fill:#333"}},{$:{id:"key-12",x:"-147.19299",y:"744.89612",ry:"3.5107117",width:"63.014999",height:"63.014999",style:"fill:#333"}},{$:{id:"key-14",x:"-80.852005",y:"744.89612",ry:"3.5107117",width:"63.014999",height:"63.014999",style:"fill:#333"}},{$:{id:"key-15",x:"-446.27197",y:"811.41315",ry:"3.5107117",width:"115.108",height:"63.014999",style:"fill:#333"}},{$:{id:"key-16",x:"-328.18799",y:"811.41315",ry:"3.5107117",width:"63.014999",height:"63.014999",style:"fill:#333"}},{$:{id:"key-17",x:"-262.19598",y:"811.41315",ry:"3.5107117",width:"63.014999",height:"63.014999",style:"fill:#333"}},{$:{id:"key-18",x:"-196.20499",y:"811.41315",ry:"3.5107117",width:"63.014999",height:"63.014999",style:"fill:#333"}},{$:{id:"key-19",x:"-130.21399",y:"811.41315",ry:"3.5107117",width:"63.014999",height:"63.014999",style:"fill:#333"}},{$:{id:"key-21",x:"-64.222992",y:"811.41315",ry:"3.5107117",width:"63.014999",height:"63.014999",style:"fill:#333"}},{$:{id:"key-22",x:"-446.27197",y:"877.92914",ry:"3.5107117",width:"146.686",height:"63.014999",style:"fill:#333"}},{$:{id:"key-24",x:"-296.26001",y:"877.92914",ry:"3.5107117",width:"63.014999",height:"63.014999",style:"fill:#333"}},{$:{id:"key-25",x:"-230.02377",y:"877.92914",ry:"3.5107117",width:"63.014999",height:"63.014999",style:"fill:#333"}},{$:{id:"key-26",x:"-163.78757",y:"877.92914",ry:"3.5107117",width:"63.014999",height:"63.014999",style:"fill:#333"}},{$:{id:"key-27",x:"-97.551331",y:"877.92914",ry:"3.5107117",width:"63.014999",height:"63.014999",style:"fill:#333"}},{$:{id:"key-28",x:"-31.315111",y:"877.92914",ry:"3.5107117",width:"63.014999",height:"63.014999",style:"fill:#333"}},{$:{id:"key-29",x:"-446.27197",y:"944.44714",ry:"3.5107117",width:"80.029999",height:"63.014999",style:"fill:#333"}},{$:{id:"key-30",x:"-363.79099",y:"944.44714",ry:"3.5107117",width:"80.029999",height:"63.014999",style:"fill:#333"}},{$:{id:"key-31",x:"-281.311",y:"944.44714",ry:"3.5107117",width:"80.029999",height:"63.014999",style:"fill:#333"}},{$:{id:"key-32",x:"-198.83099",y:"944.44714",ry:"3.5107117",width:"80.029999",height:"63.014999",style:"fill:#333"}},{$:{id:"key-33",x:"-116.351",y:"1011.1872",ry:"3.6962967",width:"115.108",height:"41.174999",style:"fill:#333"}},{$:{id:"key-34",x:"-116.351",y:"944.44714",ry:"3.5107117",width:"115.108",height:"63.014999",style:"fill:#333"}}],path:[{$:{d:"M -94.51036,646.84101 C -94.11496,648.67469 -92.68469,649.80097 -91.0281,649.78029 L 13.023181,649.78029 C 14.001631,649.78029 14.794821,650.57349 14.794821,651.55194 L 14.794821,651.55868 14.794821,673.23866 C 14.794821,674.21746 14.001631,675.01093 13.023181,675.01093 L -444.52338,675.01093 C -447.45834,675.01093 -449.83652,677.38911 -449.83652,680.32407 L -449.83652,1005.8729 C -449.83652,1008.8079 -447.45834,1011.1861 -444.52338,1011.1861 L -120.57683,1011.1861 C -119.59838,1011.1861 -118.80518,1011.9795 -118.80518,1012.9583 L -118.80518,1050.5832 -118.80518,1050.5899 C -118.80518,1051.5684 -119.59838,1052.3616 -120.57683,1052.3616 L -464.45746,1052.3616 C -469.36122,1052.166 -473.26634,1048.3775 -473.2955,1043.5236 L -473.2955,658.54868 C -473.28473,654.0371 -470.24793,650.61741 -466.01444,649.84887 L -114.09291,586.86646 C -109.10971,586.16157 -104.69185,589.2677 -103.81746,594.05779 -100.59959,612.36858 -97.46095,630.10521 -94.51036,646.84101 Z",style:"fill:#333"}}]}}},x3zx:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n("2QPq");r.__exportStar(n("uz7o"),t),r.__exportStar(n("q3/1"),t),r.__exportStar(n("hRLZ"),t)},x7X3:function(e){e.exports=JSON.parse('{"isDefault":false,"abbreviation":"DVR","name":"DVR","description":"Pellentesque habitant morbi tristique senectus et netus et malesuada fames ac turpis egestas. Aenean dictum sollicitudin massa, ut lacinia ipsum. Ut bibendum ipsum ac pulvinar vehicula. Lorem ipsum dolor sit amet, consectetur adipiscing elit. Etiam feugiat lobortis lacus, id viverra nisl varius eu. Aliquam vitae eros a augue fermentum ultricies. Nam tempus dui sed ante ultricies bibendum. In ligula velit, aliquet a felis vitae, gravida tincidunt ante. Proin euismod velit odio, at pretium lacus porta egestas. Suspendisse aliquam, lacus accumsan dapibus elementum, orci felis egestas leo, non vulputate lorem turpis nec risus. Curabitur id volutpat orci. Sed aliquet finibus iaculis. In venenatis neque ac dolor posuere, vel vestibulum augue posuere.","layers":[{"modules":[{"id":0,"pointerRole":"move","keyActions":[null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null]},{"id":1,"pointerRole":"move","keyActions":[null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null]}]},{"modules":[{"id":0,"pointerRole":"move","keyActions":[null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null]},{"id":1,"pointerRole":"move","keyActions":[null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null]}]},{"modules":[{"id":0,"pointerRole":"move","keyActions":[null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null]},{"id":1,"pointerRole":"move","keyActions":[null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null]}]},{"modules":[{"id":0,"pointerRole":"move","keyActions":[null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null]},{"id":1,"pointerRole":"move","keyActions":[null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null]}]}]}')},xTla:function(e,t,n){"use strict";n.d(t,"a",function(){return r});var r="function"==typeof Symbol&&Symbol.observable||"@@observable"},xlPZ:function(e,t,n){"use strict";var r=n("mrSG"),i=n("K9Ia"),o=n("6blF"),l=(n("FFOo"),n("pugT")),u=n("yGWI"),a=function(e){function t(t,n){var r=e.call(this)||this;return r.source=t,r.subjectFactory=n,r._refCount=0,r._isComplete=!1,r}return r.c(t,e),t.prototype._subscribe=function(e){return this.getSubject().subscribe(e)},t.prototype.getSubject=function(){var e=this._subject;return e&&!e.isStopped||(this._subject=this.subjectFactory()),this._subject},t.prototype.connect=function(){var e=this._connection;return e||(this._isComplete=!1,(e=this._connection=new l.a).add(this.source.subscribe(new c(this.getSubject(),this))),e.closed&&(this._connection=null,e=l.a.EMPTY)),e},t.prototype.refCount=function(){return Object(u.a)()(this)},t}(o.a).prototype,s={operator:{value:null},_refCount:{value:0,writable:!0},_subject:{value:null,writable:!0},_connection:{value:null,writable:!0},_subscribe:{value:a._subscribe},_isComplete:{value:a._isComplete,writable:!0},getSubject:{value:a.getSubject},connect:{value:a.connect},refCount:{value:a.refCount}},c=function(e){function t(t,n){var r=e.call(this,t)||this;return r.connectable=n,r}return r.c(t,e),t.prototype._error=function(t){this._unsubscribe(),e.prototype._error.call(this,t)},t.prototype._complete=function(){this.connectable._isComplete=!0,this._unsubscribe(),e.prototype._complete.call(this)},t.prototype._unsubscribe=function(){var e=this.connectable;if(e){this.connectable=null;var t=e._connection;e._refCount=0,e._subject=null,e._connection=null,t&&t.unsubscribe()}},t}(i.b);function p(e,t){return function(n){var r;if(r="function"==typeof e?e:function(){return e},"function"==typeof t)return n.lift(new f(r,t));var i=Object.create(n,s);return i.source=n,i.subjectFactory=r,i}}n.d(t,"a",function(){return p});var f=function(){function e(e,t){this.subjectFactory=e,this.selector=t}return e.prototype.call=function(e,t){var n=this.selector,r=this.subjectFactory(),i=n(r).subscribe(e);return i.add(t.subscribe(r)),i},e}()},xpud:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e){for(var n in e)t.hasOwnProperty(n)||(t[n]=e[n])}(n("omOa"))},y3By:function(e,t,n){"use strict";n.d(t,"a",function(){return i}),n.d(t,"b",function(){return o});var r=n("+umK");function i(){for(var e=[],t=0;t0&&(e=P.apply(null,Object(r.g)(t,[e]))),function(t,n){var r=e(t);return function(e,t){return r(e=void 0===e?n:e,t)}}}var j=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Object(r.c)(t,e),t}(l.a),R=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Object(r.c)(t,e),t}(b),L="@ngrx/store/update-reducers",N=function(e){function t(t,n,r,i){var o=e.call(this,i(r,n))||this;return o.dispatcher=t,o.initialState=n,o.reducers=r,o.reducerFactory=i,o}return Object(r.c)(t,e),t.prototype.addFeature=function(e){this.addFeatures([e])},t.prototype.addFeatures=function(e){var t=e.reduce(function(e,t){var n=t.reducers,i=t.reducerFactory,o=t.metaReducers,l=t.initialState,u=t.key,a="function"==typeof n?function(e){var t=Array.isArray(e)&&e.length>0?P.apply(void 0,Object(r.g)(e)):function(e){return e};return function(e,n){return e=t(e),function(t,r){return e(t=void 0===t?n:t,r)}}}(o)(n,l):I(i,o)(n,l);return e[u]=a,e},{});this.addReducers(t)},t.prototype.removeFeature=function(e){this.removeFeatures([e])},t.prototype.removeFeatures=function(e){this.removeReducers(e.map(function(e){return e.key}))},t.prototype.addReducer=function(e,t){var n;this.addReducers(((n={})[e]=t,n))},t.prototype.addReducers=function(e){this.reducers=Object(r.a)({},this.reducers,e),this.updateReducers(Object.keys(e))},t.prototype.removeReducer=function(e){this.removeReducers([e])},t.prototype.removeReducers=function(e){var t=this;e.forEach(function(e){var n,r;t.reducers=(n=t.reducers,r=e,Object.keys(n).filter(function(e){return e!==r}).reduce(function(e,t){var r;return Object.assign(e,((r={})[t]=n[t],r))},{}))}),this.updateReducers(e)},t.prototype.updateReducers=function(e){this.next(this.reducerFactory(this.reducers,this.initialState)),this.dispatcher.next({type:L,features:e})},t.prototype.ngOnDestroy=function(){this.complete()},t}(o.a),D=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Object(r.c)(t,e),t.prototype.ngOnDestroy=function(){this.complete()},t}(u.a),U=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Object(r.c)(t,e),t}(l.a),F=function(e){function t(t,n,r,i){var o=e.call(this,i)||this,l={state:i},u=t.pipe(Object(s.b)(a.a)).pipe(Object(c.a)(n)).pipe(Object(p.a)(K,l));return o.stateSubscription=u.subscribe(function(e){var t=e.action;o.next(e.state),r.next(t)}),o}return Object(r.c)(t,e),t.prototype.ngOnDestroy=function(){this.stateSubscription.unsubscribe(),this.complete()},t.INIT=y,t}(o.a);function K(e,t){void 0===e&&(e={state:void 0});var n=Object(r.f)(t,2),i=n[0];return{state:(0,n[1])(e.state,i),action:i}}var B=function(e){function t(t,n,r){var i=e.call(this)||this;return i.actionsObserver=n,i.reducerManager=r,i.source=t,i}var n;return Object(r.c)(t,e),n=t,t.prototype.select=function(e){for(var t=[],n=1;n1)this.connection=null;else{var n=this.connection,r=e._connection;this.connection=null,!r||n&&r!==n||r.unsubscribe()}}else this.connection=null},t}(i.a)},ySaW:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n("SACm"),i=n("RGrK"),o=n("anzk"),l=n("NS47"),u=n("KQti"),a=n("9ixT"),s=n("hT0y"),c=n("88NP"),p=n("DFZA");class f{static createKeyAction(e,t){return e instanceof i.KeyAction?f.fromKeyAction(e):e instanceof r.UhkBuffer?f.fromUhkBuffer(e,t):f.fromJSONObject(e,t)}static fromUhkBuffer(e,t){const n=e.readUInt8();if(e.backtrack(),n>=i.KeyActionId.KeystrokeAction&&n0?e.prototype.schedule.call(this,t,n):(this.delay=n,this.state=t,this.scheduler.flush(this),this)},t.prototype.execute=function(t,n){return n>0||this.closed?e.prototype.execute.call(this,t,n):this._execute(t,n)},t.prototype.requestAsyncId=function(t,n,r){return void 0===r&&(r=0),null!==r&&r>0||null===r&&this.delay>0?e.prototype.requestAsyncId.call(this,t,n,r):t.flush(this)},t}(n("h9Dq").a),o=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return r.c(t,e),t}(n("CS9Q").a);n.d(t,"a",function(){return l});var l=new o(i)},zotm:function(e,t,n){"use strict";n.d(t,"a",function(){return l});var r=n("rPjj"),i=n("Fxb1"),o=n("6blF");function l(e,t,n,l,u){if(void 0===u&&(u=new r.a(e,n,l)),!u.closed)return t instanceof o.a?t.subscribe(u):Object(i.a)(t)(u)}}},[[0,0]]]); \ No newline at end of file diff --git a/polyfills-es5.f6e4f7f783ff74a1064c.js b/polyfills-es5.f6e4f7f783ff74a1064c.js new file mode 100644 index 00000000..d93f799c --- /dev/null +++ b/polyfills-es5.f6e4f7f783ff74a1064c.js @@ -0,0 +1 @@ +(window.webpackJsonp=window.webpackJsonp||[]).push([[3],{"+5Eg":function(t,n,r){var e=r("wA6s"),o=r("6XUM"),i=r("M7Xk").onFreeze,u=r("cZY6"),c=r("rG8t"),a=Object.seal;e({target:"Object",stat:!0,forced:c(function(){a(1)}),sham:!u},{seal:function(t){return a&&o(t)?a(i(t)):t}})},"+IJR":function(t,n,r){r("wA6s")({target:"Number",stat:!0},{isNaN:function(t){return t!=t}})},"/AsP":function(t,n,r){var e=r("yIiL"),o=r("SDMg"),i=e("keys");t.exports=function(t){return i[t]||(i[t]=o(t))}},"/Ybd":function(t,n,r){var e=r("T69T"),o=r("XdSI"),i=r("F26l"),u=r("LdO1"),c=Object.defineProperty;n.f=e?c:function(t,n,r){if(i(t),n=u(n,!0),i(r),o)try{return c(t,n,r)}catch(e){}if("get"in r||"set"in r)throw TypeError("Accessors not supported");return"value"in r&&(t[n]=r.value),t}},"0Ds2":function(t,n,r){var e=r("m41k")("match");t.exports=function(t){var n=/./;try{"/./"[t](n)}catch(r){try{return n[e]=!1,"/./"[t](n)}catch(o){}}return!1}},1:function(t,n,r){t.exports=r("mRIq")},"149L":function(t,n,r){var e=r("Ew/G");t.exports=e("document","documentElement")},"1p6F":function(t,n,r){var e=r("6XUM"),o=r("ezU2"),i=r("m41k")("match");t.exports=function(t){var n;return e(t)&&(void 0!==(n=t[i])?!!n:"RegExp"==o(t))}},"2MGJ":function(t,n,r){var e=r("ocAm"),o=r("yIiL"),i=r("HEFl"),u=r("OG5q"),c=r("Fqhe"),a=r("uxAC"),s=r("XH/I"),f=s.get,l=s.enforce,p=String(a).split("toString");o("inspectSource",function(t){return a.call(t)}),(t.exports=function(t,n,r,o){var a=!!o&&!!o.unsafe,s=!!o&&!!o.enumerable,f=!!o&&!!o.noTargetGet;"function"==typeof r&&("string"!=typeof n||u(r,"name")||i(r,"name",n),l(r).source=p.join("string"==typeof n?n:"")),t!==e?(a?!f&&t[n]&&(s=!0):delete t[n],s?t[n]=r:i(t,n,r)):s?t[n]=r:c(n,r)})(Function.prototype,"toString",function(){return"function"==typeof this&&f(this).source||a.call(this)})},"2RDa":function(t,n,r){var e=r("F26l"),o=r("5y2d"),i=r("aAjO"),u=r("yQMY"),c=r("149L"),a=r("qx7X"),s=r("/AsP")("IE_PROTO"),f=function(){},l=function(){var t,n=a("iframe"),r=i.length;for(n.style.display="none",c.appendChild(n),n.src=String("javascript:"),(t=n.contentWindow.document).open(),t.write("