stoobly-agent 0.34.1__py3-none-any.whl → 0.34.3__py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (116) hide show
  1. stoobly_agent/__init__.py +1 -1
  2. stoobly_agent/app/cli/config_cli.py +19 -4
  3. stoobly_agent/app/cli/helpers/openapi_endpoint_adapter.py +4 -0
  4. stoobly_agent/app/proxy/mitmproxy/request_facade.py +15 -4
  5. stoobly_agent/app/proxy/mock/eval_fixtures_service.py +13 -5
  6. stoobly_agent/app/settings/__init__.py +4 -0
  7. stoobly_agent/app/settings/url_rule.py +6 -0
  8. stoobly_agent/cli.py +1 -1
  9. stoobly_agent/config/schema.yml +2 -0
  10. stoobly_agent/public/{1-es2015.cb071776436f10954db5.js → 1-es2015.bb4492eeabe1fe937ada.js} +1 -1
  11. stoobly_agent/public/{1-es5.cb071776436f10954db5.js → 1-es5.bb4492eeabe1fe937ada.js} +1 -1
  12. stoobly_agent/public/{10-es2015.bb1702aaf3968a2cb521.js → 10-es2015.56da22458086513ba0c7.js} +1 -1
  13. stoobly_agent/public/{10-es5.bb1702aaf3968a2cb521.js → 10-es5.56da22458086513ba0c7.js} +1 -1
  14. stoobly_agent/public/{12-es2015.591ec692afb8f8d13842.js → 12-es2015.be58ed0ef449008b932e.js} +1 -1
  15. stoobly_agent/public/{12-es5.591ec692afb8f8d13842.js → 12-es5.be58ed0ef449008b932e.js} +1 -1
  16. stoobly_agent/public/{13-es2015.f381e7d6ff361b669e12.js → 13-es2015.220b4a1adf4cacb294e5.js} +1 -1
  17. stoobly_agent/public/{13-es5.f381e7d6ff361b669e12.js → 13-es5.220b4a1adf4cacb294e5.js} +1 -1
  18. stoobly_agent/public/{14-es2015.1ffb225a16d6292dbddd.js → 14-es2015.b6619d7742671d2a37fb.js} +1 -1
  19. stoobly_agent/public/{14-es5.1ffb225a16d6292dbddd.js → 14-es5.b6619d7742671d2a37fb.js} +1 -1
  20. stoobly_agent/public/{15-es2015.2cf39bcaeb0ea2c52297.js → 15-es2015.d8855701408b0e1d7a3e.js} +1 -1
  21. stoobly_agent/public/{15-es5.2cf39bcaeb0ea2c52297.js → 15-es5.d8855701408b0e1d7a3e.js} +1 -1
  22. stoobly_agent/public/{16-es2015.0e9422b274e642f95e41.js → 16-es2015.98fa59c2c96d2caac3c3.js} +1 -1
  23. stoobly_agent/public/{16-es5.0e9422b274e642f95e41.js → 16-es5.98fa59c2c96d2caac3c3.js} +1 -1
  24. stoobly_agent/public/{17-es2015.7fb08367a22d1e34aed7.js → 17-es2015.7f60b56d1fd66d4d5544.js} +1 -1
  25. stoobly_agent/public/{17-es5.7fb08367a22d1e34aed7.js → 17-es5.7f60b56d1fd66d4d5544.js} +1 -1
  26. stoobly_agent/public/{18-es2015.5caa4789d1c335e628f2.js → 18-es2015.10cdd5c608b10d90d19a.js} +1 -1
  27. stoobly_agent/public/{18-es5.5caa4789d1c335e628f2.js → 18-es5.10cdd5c608b10d90d19a.js} +1 -1
  28. stoobly_agent/public/{19-es2015.8049aef58c329c500f9b.js → 19-es2015.78ec0e9fd228b5104712.js} +1 -1
  29. stoobly_agent/public/{19-es5.8049aef58c329c500f9b.js → 19-es5.78ec0e9fd228b5104712.js} +1 -1
  30. stoobly_agent/public/{2-es5.8f184ac63348ba447b1f.js → 2-es2015.51eb8544ea9a21f2874c.js} +1 -1
  31. stoobly_agent/public/{2-es2015.8f184ac63348ba447b1f.js → 2-es5.51eb8544ea9a21f2874c.js} +1 -1
  32. stoobly_agent/public/{22-es2015.df183804415330639987.js → 22-es2015.1e96ef651f96d51191e2.js} +1 -1
  33. stoobly_agent/public/{22-es5.df183804415330639987.js → 22-es5.1e96ef651f96d51191e2.js} +1 -1
  34. stoobly_agent/public/{23-es2015.0da63b056fabde91bb0b.js → 23-es2015.6d3052555b4fac38f16d.js} +1 -1
  35. stoobly_agent/public/{23-es5.0da63b056fabde91bb0b.js → 23-es5.6d3052555b4fac38f16d.js} +1 -1
  36. stoobly_agent/public/{28-es2015.9fe030e9d3b0e52239aa.js → 28-es2015.a2bf42f38e4dd771ccea.js} +1 -1
  37. stoobly_agent/public/{28-es5.9fe030e9d3b0e52239aa.js → 28-es5.a2bf42f38e4dd771ccea.js} +1 -1
  38. stoobly_agent/public/{29-es2015.9b440f22de725732e5ab.js → 29-es2015.18b515f07c88753c7eb6.js} +1 -1
  39. stoobly_agent/public/{29-es5.9b440f22de725732e5ab.js → 29-es5.18b515f07c88753c7eb6.js} +1 -1
  40. stoobly_agent/public/{30-es2015.6ad2a5126b0a27c1e7c6.js → 30-es2015.d4d3dc4101400cadf3f3.js} +1 -1
  41. stoobly_agent/public/{30-es5.6ad2a5126b0a27c1e7c6.js → 30-es5.d4d3dc4101400cadf3f3.js} +1 -1
  42. stoobly_agent/public/{31-es2015.f4291150f35d54ff19ca.js → 31-es2015.e3ea815f75c19c217b7d.js} +1 -1
  43. stoobly_agent/public/{31-es5.f4291150f35d54ff19ca.js → 31-es5.e3ea815f75c19c217b7d.js} +1 -1
  44. stoobly_agent/public/{32-es2015.c8f6ccb43bdba0adf199.js → 32-es2015.57553995bff0ae518501.js} +1 -1
  45. stoobly_agent/public/{32-es5.c8f6ccb43bdba0adf199.js → 32-es5.57553995bff0ae518501.js} +1 -1
  46. stoobly_agent/public/{33-es2015.f985e93402ebf86322ef.js → 33-es2015.da5ba1e5baa164921198.js} +1 -1
  47. stoobly_agent/public/{33-es5.f985e93402ebf86322ef.js → 33-es5.da5ba1e5baa164921198.js} +1 -1
  48. stoobly_agent/public/{34-es2015.0e1961fb3cf649a52d49.js → 34-es2015.87acbb95cfb824650157.js} +1 -1
  49. stoobly_agent/public/{34-es5.0e1961fb3cf649a52d49.js → 34-es5.87acbb95cfb824650157.js} +1 -1
  50. stoobly_agent/public/{35-es2015.a4ae56a89c0324397624.js → 35-es2015.61a7ae8da93df94fab06.js} +1 -1
  51. stoobly_agent/public/{35-es5.a4ae56a89c0324397624.js → 35-es5.61a7ae8da93df94fab06.js} +1 -1
  52. stoobly_agent/public/{36-es2015.b8fdd25590a79c820119.js → 36-es2015.e3a104020eeec02cb8c4.js} +1 -1
  53. stoobly_agent/public/{36-es5.b8fdd25590a79c820119.js → 36-es5.e3a104020eeec02cb8c4.js} +1 -1
  54. stoobly_agent/public/{37-es2015.6567a0ce4cf87ad7287b.js → 37-es2015.3b472e6cf303201bbf2c.js} +1 -1
  55. stoobly_agent/public/{37-es5.6567a0ce4cf87ad7287b.js → 37-es5.3b472e6cf303201bbf2c.js} +1 -1
  56. stoobly_agent/public/{38-es2015.6f6d751bff41d84d727a.js → 38-es2015.39dbf43d46cdc94f78c6.js} +1 -1
  57. stoobly_agent/public/{38-es5.6f6d751bff41d84d727a.js → 38-es5.39dbf43d46cdc94f78c6.js} +1 -1
  58. stoobly_agent/public/{39-es2015.47f63177e7d4509a22fa.js → 39-es2015.e5475ea4fb6ec5c60741.js} +1 -1
  59. stoobly_agent/public/{39-es5.47f63177e7d4509a22fa.js → 39-es5.e5475ea4fb6ec5c60741.js} +1 -1
  60. stoobly_agent/public/{4-es2015.182e1ce1811ef67571fb.js → 4-es2015.f8ac5475bf103969b2d2.js} +1 -1
  61. stoobly_agent/public/{4-es5.182e1ce1811ef67571fb.js → 4-es5.f8ac5475bf103969b2d2.js} +1 -1
  62. stoobly_agent/public/{40-es2015.5333067cdc4077c7495a.js → 40-es2015.47b2873a8439717af6a7.js} +1 -1
  63. stoobly_agent/public/{40-es5.5333067cdc4077c7495a.js → 40-es5.47b2873a8439717af6a7.js} +1 -1
  64. stoobly_agent/public/{41-es2015.7a2434380c81c11ff2c5.js → 41-es2015.69f2771002745c066976.js} +1 -1
  65. stoobly_agent/public/{41-es5.7a2434380c81c11ff2c5.js → 41-es5.69f2771002745c066976.js} +1 -1
  66. stoobly_agent/public/{42-es2015.5dde662fe1e3b4e4bdd1.js → 42-es2015.b590b92ede890155dcd6.js} +1 -1
  67. stoobly_agent/public/{42-es5.5dde662fe1e3b4e4bdd1.js → 42-es5.b590b92ede890155dcd6.js} +1 -1
  68. stoobly_agent/public/{43-es2015.608e917d689b9bb762cb.js → 43-es2015.ad1d956bffba561ba64c.js} +1 -1
  69. stoobly_agent/public/{43-es5.608e917d689b9bb762cb.js → 43-es5.ad1d956bffba561ba64c.js} +1 -1
  70. stoobly_agent/public/{44-es2015.2ae5fea15b5e8c2681d3.js → 44-es2015.3ef2c17996ed5be95ced.js} +1 -1
  71. stoobly_agent/public/44-es5.3ef2c17996ed5be95ced.js +1 -0
  72. stoobly_agent/public/{45-es2015.e46f228c795174428515.js → 45-es2015.3d65d27e0a7085e96356.js} +1 -1
  73. stoobly_agent/public/{45-es5.e46f228c795174428515.js → 45-es5.3d65d27e0a7085e96356.js} +1 -1
  74. stoobly_agent/public/{46-es2015.22a0d8e0b4bbfb513741.js → 46-es2015.e4f0a5b127eae13c27c0.js} +1 -1
  75. stoobly_agent/public/{46-es5.22a0d8e0b4bbfb513741.js → 46-es5.e4f0a5b127eae13c27c0.js} +1 -1
  76. stoobly_agent/public/{47-es2015.3878e5d1d692107748f3.js → 47-es2015.c7d45334a70131f133b5.js} +1 -1
  77. stoobly_agent/public/{47-es5.3878e5d1d692107748f3.js → 47-es5.c7d45334a70131f133b5.js} +1 -1
  78. stoobly_agent/public/{5-es2015.aba7173be56fc19b4b6f.js → 5-es2015.90ea7bd4439d9749e052.js} +1 -1
  79. stoobly_agent/public/{5-es5.aba7173be56fc19b4b6f.js → 5-es5.90ea7bd4439d9749e052.js} +1 -1
  80. stoobly_agent/public/{7-es2015.9b9ab4adf24d13bdc2f8.js → 7-es2015.c359dbb640e2af507221.js} +1 -1
  81. stoobly_agent/public/{7-es5.9b9ab4adf24d13bdc2f8.js → 7-es5.c359dbb640e2af507221.js} +1 -1
  82. stoobly_agent/public/{8-es2015.cdd7dce2a24aaf9d974f.js → 8-es2015.b901639e2aeff1358c3d.js} +1 -1
  83. stoobly_agent/public/{8-es5.cdd7dce2a24aaf9d974f.js → 8-es5.b901639e2aeff1358c3d.js} +1 -1
  84. stoobly_agent/public/{9-es2015.cdde98f2537997afbf0f.js → 9-es2015.cfc1101139d6ae75731b.js} +1 -1
  85. stoobly_agent/public/{9-es5.cdde98f2537997afbf0f.js → 9-es5.cfc1101139d6ae75731b.js} +1 -1
  86. stoobly_agent/public/index.html +2 -2
  87. stoobly_agent/public/main-es2015.ccd46ac1b6638ddf2066.js +1 -0
  88. stoobly_agent/public/main-es5.ccd46ac1b6638ddf2066.js +1 -0
  89. stoobly_agent/public/runtime-es2015.08e65883d390cd16c15b.js +1 -0
  90. stoobly_agent/public/runtime-es5.08e65883d390cd16c15b.js +1 -0
  91. stoobly_agent/public/{styles.ca104d947fbb2eebbeca.css → styles.ab281309cf423b2cdcb0.css} +1 -1
  92. stoobly_agent/test/app/cli/config/rewrite_test.py +9 -2
  93. stoobly_agent/test/app/cli/helpers/openapi_endpoint_adapter_additional_props_test.py +0 -24
  94. stoobly_agent/test/app/cli/helpers/openapi_endpoint_adapter_missing_info_test.py +0 -26
  95. stoobly_agent/test/app/cli/helpers/openapi_endpoint_adapter_missing_oauth2_scopes_test.py +0 -26
  96. stoobly_agent/test/app/cli/helpers/openapi_endpoint_adapter_missing_servers_test.py +0 -26
  97. stoobly_agent/test/app/cli/helpers/openapi_endpoint_adapter_test.py +0 -139
  98. stoobly_agent/test/app/models/schemas/.stoobly/db/VERSION +1 -1
  99. stoobly_agent/test/app/proxy/mitmproxy/request_facade_test.py +27 -0
  100. stoobly_agent/test/app/proxy/mock/eval_fixtures_service_test.py +5 -1
  101. {stoobly_agent-0.34.1.dist-info → stoobly_agent-0.34.3.dist-info}/METADATA +1 -1
  102. {stoobly_agent-0.34.1.dist-info → stoobly_agent-0.34.3.dist-info}/RECORD +111 -111
  103. stoobly_agent/public/44-es5.2ae5fea15b5e8c2681d3.js +0 -1
  104. stoobly_agent/public/main-es2015.081bbd2709f22e95933e.js +0 -1
  105. stoobly_agent/public/main-es5.081bbd2709f22e95933e.js +0 -1
  106. stoobly_agent/public/runtime-es2015.362e49d383fb724f5414.js +0 -1
  107. stoobly_agent/public/runtime-es5.362e49d383fb724f5414.js +0 -1
  108. /stoobly_agent/public/{0-es2015.a7e60cafc0868f87a771.js → 0-es2015.c7c5a6d51b98cb85b9fc.js} +0 -0
  109. /stoobly_agent/public/{0-es5.a7e60cafc0868f87a771.js → 0-es5.c7c5a6d51b98cb85b9fc.js} +0 -0
  110. /stoobly_agent/public/{20-es2015.473486aabfa4d4a6431b.js → 20-es2015.90544c488f1f0900bab4.js} +0 -0
  111. /stoobly_agent/public/{20-es5.473486aabfa4d4a6431b.js → 20-es5.90544c488f1f0900bab4.js} +0 -0
  112. /stoobly_agent/public/{common-es2015.6f230354b12587f9be81.js → common-es2015.388805227aa99c527fba.js} +0 -0
  113. /stoobly_agent/public/{common-es5.6f230354b12587f9be81.js → common-es5.388805227aa99c527fba.js} +0 -0
  114. {stoobly_agent-0.34.1.dist-info → stoobly_agent-0.34.3.dist-info}/LICENSE +0 -0
  115. {stoobly_agent-0.34.1.dist-info → stoobly_agent-0.34.3.dist-info}/WHEEL +0 -0
  116. {stoobly_agent-0.34.1.dist-info → stoobly_agent-0.34.3.dist-info}/entry_points.txt +0 -0
@@ -1 +1 @@
1
- !function(){function t(t){return function(t){if(Array.isArray(t))return e(t)}(t)||function(t){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(t))return Array.from(t)}(t)||function(t,r){if(!t)return;if("string"==typeof t)return e(t,r);var n=Object.prototype.toString.call(t).slice(8,-1);"Object"===n&&t.constructor&&(n=t.constructor.name);if("Map"===n||"Set"===n)return Array.from(t);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return e(t,r)}(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function e(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}function r(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&n(t,e)}function n(t,e){return(n=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function i(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch(t){return!1}}();return function(){var r,n=s(t);if(e){var i=s(this).constructor;r=Reflect.construct(n,arguments,i)}else r=n.apply(this,arguments);return o(this,r)}}function o(t,e){return!e||"object"!=typeof e&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function s(t){return(s=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}function u(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}function a(t,e,r){return e&&u(t.prototype,e),r&&u(t,r),t}function c(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(window.webpackJsonp=window.webpackJsonp||[]).push([[14],{"6W+F":function(t,e){e.__esModule=!0,e.default={body:'<path opacity=".3" d="M4 8h16v11H4z" fill="currentColor"/><path d="M20 6h-4V4c0-1.11-.89-2-2-2h-4c-1.11 0-2 .89-2 2v2H4c-1.11 0-1.99.89-1.99 2L2 19c0 1.11.89 2 2 2h16c1.11 0 2-.89 2-2V8c0-1.11-.89-2-2-2zM10 4h4v2h-4V4zm10 15H4V8h16v11z" fill="currentColor"/>',width:24,height:24}},OcYv:function(t,e){e.__esModule=!0,e.default={body:'<path opacity=".3" d="M16.11 6.77c-.53 2.6-2.62 4.43-5.28 4.43c-1.56 0-2.96-.62-3.97-1.63C6.3 10.96 6 12.47 6 14c0 3.31 2.69 6 6 6s6-2.69 6-6c0-2.56-.66-5.03-1.89-7.23zm-4.22 11.22c-1.37 0-2.49-1.08-2.49-2.42c0-1.25.81-2.13 2.17-2.41c1.37-.28 2.78-.93 3.57-1.99c.3 1 .46 2.05.46 3.12c0 2.04-1.66 3.7-3.71 3.7z" fill="currentColor"/><path d="M11.57 13.16c-1.36.28-2.17 1.16-2.17 2.41c0 1.34 1.11 2.42 2.49 2.42c2.05 0 3.71-1.66 3.71-3.71c0-1.07-.15-2.12-.46-3.12c-.79 1.07-2.2 1.72-3.57 2zM13.5.67s.74 2.65.74 4.8c0 2.06-1.35 3.73-3.41 3.73c-2.07 0-3.63-1.67-3.63-3.73l.03-.36C5.21 7.51 4 10.62 4 14c0 4.42 3.58 8 8 8s8-3.58 8-8C20 8.61 17.41 3.8 13.5.67zM12 20c-3.31 0-6-2.69-6-6c0-1.53.3-3.04.86-4.43a5.582 5.582 0 0 0 3.97 1.63c2.66 0 4.75-1.83 5.28-4.43A14.77 14.77 0 0 1 18 14c0 3.31-2.69 6-6 6z" fill="currentColor"/>',width:24,height:24}},UTQ3:function(e,n,o){"use strict";o.d(n,"a",function(){return M}),o.d(n,"b",function(){return j}),o.d(n,"c",function(){return E}),o.d(n,"d",function(){return w}),o.d(n,"e",function(){return R}),o.d(n,"f",function(){return x});var s,u=o("8Y7J"),h=o("xUpK"),l=o.n(h),f=o("kScs"),v=o("GJmQ"),d=o("lJxs"),p=function t(e){c(this,t),this.sourceId=e},y=function(t){return t.FACEBOOK="facebook",t.GOOGLE="google",t.TWITTER="twitter",t.INSTAGRAM="instagram",t.VKONTAKTE="vkontakte",t.SKYPE="skype",t.GRAVATAR="gravatar",t.GITHUB="github",t.CUSTOM="custom",t.INITIALS="initials",t.VALUE="value",t}({}),g=function(){function t(e){c(this,t),this.sourceId=e,this.sourceType=y.FACEBOOK}return a(t,[{key:"getAvatar",value:function(t){return"https://graph.facebook.com/".concat(this.sourceId,"/picture?width=").concat(t,"&height=").concat(t)}}]),t}(),b=function(){function t(e){c(this,t),this.sourceId=e,this.sourceType=y.TWITTER}return a(t,[{key:"getAvatar",value:function(t){var e=this.getImageSize(t);return"https://twitter.com/".concat(this.sourceId,"/profile_image?size=").concat(e)}},{key:"getImageSize",value:function(t){return t<=24?"mini":t<=48?"normal":t<=73?"bigger":"original"}}]),t}(),A=function(t){r(n,t);var e=i(n);function n(t){var r;return c(this,n),(r=e.call(this,t)).sourceType=y.GOOGLE,r}return a(n,[{key:"getAvatar",value:function(){return"https://picasaweb.google.com/data/entry/api/user/".concat(this.sourceId,"?alt=json")}},{key:"processResponse",value:function(t,e){var r=t.entry.gphoto$thumbnail.$t;return r?r.replace("s64","s"+e):null}}]),n}(p),S=function(t){r(n,t);var e=i(n);function n(t){var r;return c(this,n),(r=e.call(this,t)).sourceType=y.INSTAGRAM,r}return a(n,[{key:"getAvatar",value:function(){return"https://www.instagram.com/".concat(this.sourceId,"/?__a=1")}},{key:"processResponse",value:function(t,e){return"".concat(t.graphql.user.profile_pic_url_hd,"&s=").concat(e)}}]),n}(p),I=function(){function t(e){c(this,t),this.sourceId=e,this.sourceType=y.CUSTOM}return a(t,[{key:"getAvatar",value:function(){return this.sourceId}}]),t}(),m=function(){function t(e){c(this,t),this.sourceId=e,this.sourceType=y.INITIALS}return a(t,[{key:"getAvatar",value:function(t){return this.getInitials(this.sourceId,t)}},{key:"getInitials",value:function(t,e){if(!(t=t.trim()))return"";var r=t.split(" ");return this.constructInitials(e&&e<r.length?r.slice(0,e):r)}},{key:"constructInitials",value:function(t){return t&&t.length?t.filter(function(t){return t&&t.length>0}).map(function(t){return t[0].toUpperCase()}).join(""):""}}]),t}(),_=function(){function t(e){c(this,t),this.value=e,this.sourceType=y.GRAVATAR,this.sourceId=e.match("^[a-f0-9]{32}$")?e:f.Md5.hashStr(e).toString()}return a(t,[{key:"getAvatar",value:function(t){var e=l()()?2*t:t;return"https://secure.gravatar.com/avatar/".concat(this.sourceId,"?s=").concat(e,"&d=404")}}]),t}(),k=function(){function t(e){c(this,t),this.sourceId=e,this.sourceType=y.SKYPE}return a(t,[{key:"getAvatar",value:function(){return"https://api.skype.com/users/".concat(this.sourceId,"/profile/avatar")}}]),t}(),T=function(){function t(e){c(this,t),this.sourceId=e,this.sourceType=y.VALUE}return a(t,[{key:"getAvatar",value:function(){return this.sourceId}}]),t}(),C=function(t){r(n,t);var e=i(n);function n(t){var r;return c(this,n),(r=e.call(this,t)).sourceType=y.VKONTAKTE,r}return a(n,[{key:"getAvatar",value:function(t){var e=this.getImageSize(t);return"https://api.vk.com/method/users.get?user_id=".concat(this.sourceId,"&v=5.8&fields=").concat(e)}},{key:"processResponse",value:function(t){var e=Object.keys(t.response[0]).pop();return e&&t.response[0][e]||null}},{key:"getImageSize",value:function(t){return t<=50?"photo_50":t<=100?"photo_100":t<=200?"photo_200":"photo_max"}}]),n}(p),O=function(t){r(n,t);var e=i(n);function n(t){var r;return c(this,n),(r=e.call(this,t)).sourceType=y.GITHUB,r}return a(n,[{key:"getAvatar",value:function(){return"https://api.github.com/users/"+this.sourceId}},{key:"processResponse",value:function(t,e){return e?"".concat(t.avatar_url,"&s=").concat(e):t.avatar_url}}]),n}(p),w=function(){function t(){c(this,t),this.sources={},this.sources[y.FACEBOOK]=g,this.sources[y.TWITTER]=b,this.sources[y.GOOGLE]=A,this.sources[y.INSTAGRAM]=S,this.sources[y.SKYPE]=k,this.sources[y.GRAVATAR]=_,this.sources[y.CUSTOM]=I,this.sources[y.INITIALS]=m,this.sources[y.VALUE]=T,this.sources[y.VKONTAKTE]=C,this.sources[y.GITHUB]=O}return a(t,[{key:"newInstance",value:function(t,e){return new this.sources[t](e)}}]),t}(),x=new u.s("avatar.config"),R=function(){function e(t){c(this,e),this.userConfig=t}return a(e,[{key:"getAvatarSources",value:function(e){if(this.userConfig&&this.userConfig.sourcePriorityOrder&&this.userConfig.sourcePriorityOrder.length){var r=t(new Set(this.userConfig.sourcePriorityOrder)).filter(function(t){return e.includes(t)});return[].concat(t(r),t(e.filter(function(t){return!r.includes(t)})))}return e}},{key:"getAvatarColors",value:function(t){return this.userConfig&&this.userConfig.colors&&this.userConfig.colors.length&&this.userConfig.colors||t}}]),e}(),z=[y.FACEBOOK,y.GOOGLE,y.TWITTER,y.INSTAGRAM,y.VKONTAKTE,y.SKYPE,y.GRAVATAR,y.GITHUB,y.CUSTOM,y.INITIALS,y.VALUE],L=["#1abc9c","#3498db","#f1c40f","#8e44ad","#e74c3c","#d35400","#2c3e50","#7f8c8d"],E=function(){function t(e,r){c(this,t),this.http=e,this.avatarConfigService=r,this.avatarSources=z,this.avatarColors=L,this.failedSources=new Map,this.overrideAvatarSources(),this.overrideAvatarColors()}return a(t,[{key:"fetchAvatar",value:function(t){return this.http.get(t)}},{key:"getRandomColor",value:function(t){if(!t)return"transparent";var e=this.calculateAsciiCode(t);return this.avatarColors[e%this.avatarColors.length]}},{key:"compareSources",value:function(t,e){return this.getSourcePriority(t)-this.getSourcePriority(e)}},{key:"isSource",value:function(t){return this.avatarSources.includes(t)}},{key:"isTextAvatar",value:function(t){return[y.INITIALS,y.VALUE].includes(t)}},{key:"buildSourceKey",value:function(t){return t.sourceType+"-"+t.sourceId}},{key:"sourceHasFailedBefore",value:function(t){return this.failedSources.has(this.buildSourceKey(t))}},{key:"markSourceAsFailed",value:function(t){this.failedSources.set(this.buildSourceKey(t),t)}},{key:"overrideAvatarSources",value:function(){this.avatarSources=this.avatarConfigService.getAvatarSources(z)}},{key:"overrideAvatarColors",value:function(){this.avatarColors=this.avatarConfigService.getAvatarColors(L)}},{key:"calculateAsciiCode",value:function(t){return t.split("").map(function(t){return t.charCodeAt(0)}).reduce(function(t,e){return t+e})}},{key:"getSourcePriority",value:function(t){return this.avatarSources.indexOf(t)}}]),t}(),M=function(){function t(e,r){c(this,t),this.sourceFactory=e,this.avatarService=r,this.round=!0,this.size=50,this.textSizeRatio=3,this.fgColor="#FFF",this.style={},this.cornerRadius=0,this.clickOnAvatar=new u.o,this.isAlive=!0,this.avatarSrc=null,this.avatarText=null,this.avatarStyle={},this.hostStyle={},this.currentIndex=-1,this.sources=[]}return a(t,[{key:"onAvatarClicked",value:function(){this.clickOnAvatar.emit(this.sources[this.currentIndex])}},{key:"ngOnChanges",value:function(t){for(var e in t)if(this.avatarService.isSource(e)){var r=y[e.toUpperCase()],n=t[e].currentValue;n&&"string"==typeof n?this.addSource(r,n):this.removeSource(r)}this.initializeAvatar()}},{key:"fetchAvatarSource",value:function(){var t=this.sources[this.currentIndex];t&&this.avatarService.markSourceAsFailed(t);var e=this.findNextSource();e&&(this.avatarService.isTextAvatar(e.sourceType)?(this.buildTextAvatar(e),this.avatarSrc=null):this.buildImageAvatar(e))}},{key:"findNextSource",value:function(){for(;++this.currentIndex<this.sources.length;){var t=this.sources[this.currentIndex];if(t&&!this.avatarService.sourceHasFailedBefore(t))return t}return null}},{key:"ngOnDestroy",value:function(){this.isAlive=!1}},{key:"initializeAvatar",value:function(){this.currentIndex=-1,this.sources.length>0&&(this.sortAvatarSources(),this.fetchAvatarSource(),this.hostStyle={width:this.size+"px",height:this.size+"px"})}},{key:"sortAvatarSources",value:function(){var t=this;this.sources.sort(function(e,r){return t.avatarService.compareSources(e.sourceType,r.sourceType)})}},{key:"buildTextAvatar",value:function(t){this.avatarText=t.getAvatar(this.initialsSize),this.avatarStyle=this.getInitialsStyle(t.sourceId)}},{key:"buildImageAvatar",value:function(t){this.avatarStyle=this.getImageStyle(),t instanceof p?this.fetchAndProcessAsyncAvatar(t):this.avatarSrc=t.getAvatar(this.size)}},{key:"getInitialsStyle",value:function(t){return Object.assign({textAlign:"center",borderRadius:this.round?"100%":this.cornerRadius+"px",border:this.borderColor?"1px solid "+this.borderColor:"",textTransform:"uppercase",color:this.fgColor,backgroundColor:this.bgColor?this.bgColor:this.avatarService.getRandomColor(t),font:Math.floor(this.size/this.textSizeRatio)+"px Helvetica, Arial, sans-serif",lineHeight:this.size+"px"},this.style)}},{key:"getImageStyle",value:function(){return Object.assign({maxWidth:"100%",borderRadius:this.round?"50%":this.cornerRadius+"px",border:this.borderColor?"1px solid "+this.borderColor:"",width:this.size,height:this.size},this.style)}},{key:"fetchAndProcessAsyncAvatar",value:function(t){var e=this;this.avatarService.sourceHasFailedBefore(t)||this.avatarService.fetchAvatar(t.getAvatar(this.size)).pipe(Object(v.a)(function(){return e.isAlive}),Object(d.a)(function(r){return t.processResponse(r,e.size)})).subscribe(function(t){return e.avatarSrc=t},function(t){e.fetchAvatarSource()})}},{key:"addSource",value:function(t,e){var r=this.sources.find(function(e){return e.sourceType===t});r?r.sourceId=e:this.sources.push(this.sourceFactory.newInstance(t,e))}},{key:"removeSource",value:function(t){this.sources=this.sources.filter(function(e){return e.sourceType!==t})}}]),t}(),j=s=function(){function t(){c(this,t)}return a(t,null,[{key:"forRoot",value:function(t){return{ngModule:s,providers:[{provide:x,useValue:t||{}}]}}}]),t}()},kScs:function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=function(){function t(){this._state=new Int32Array(4),this._buffer=new ArrayBuffer(68),this._buffer8=new Uint8Array(this._buffer,0,68),this._buffer32=new Uint32Array(this._buffer,0,17),this.start()}return t.hashStr=function(t,e){return void 0===e&&(e=!1),this.onePassHasher.start().appendStr(t).end(e)},t.hashAsciiStr=function(t,e){return void 0===e&&(e=!1),this.onePassHasher.start().appendAsciiStr(t).end(e)},t._hex=function(e){var r,n,i,o,s=t.hexChars,u=t.hexOut;for(o=0;o<4;o+=1)for(n=8*o,r=e[o],i=0;i<8;i+=2)u[n+1+i]=s.charAt(15&r),u[n+0+i]=s.charAt(15&(r>>>=4)),r>>>=4;return u.join("")},t._md5cycle=function(t,e){var r=t[0],n=t[1],i=t[2],o=t[3];n=((n+=((i=((i+=((o=((o+=((r=((r+=(n&i|~n&o)+e[0]-680876936|0)<<7|r>>>25)+n|0)&n|~r&i)+e[1]-389564586|0)<<12|o>>>20)+r|0)&r|~o&n)+e[2]+606105819|0)<<17|i>>>15)+o|0)&o|~i&r)+e[3]-1044525330|0)<<22|n>>>10)+i|0,n=((n+=((i=((i+=((o=((o+=((r=((r+=(n&i|~n&o)+e[4]-176418897|0)<<7|r>>>25)+n|0)&n|~r&i)+e[5]+1200080426|0)<<12|o>>>20)+r|0)&r|~o&n)+e[6]-1473231341|0)<<17|i>>>15)+o|0)&o|~i&r)+e[7]-45705983|0)<<22|n>>>10)+i|0,n=((n+=((i=((i+=((o=((o+=((r=((r+=(n&i|~n&o)+e[8]+1770035416|0)<<7|r>>>25)+n|0)&n|~r&i)+e[9]-1958414417|0)<<12|o>>>20)+r|0)&r|~o&n)+e[10]-42063|0)<<17|i>>>15)+o|0)&o|~i&r)+e[11]-1990404162|0)<<22|n>>>10)+i|0,n=((n+=((i=((i+=((o=((o+=((r=((r+=(n&i|~n&o)+e[12]+1804603682|0)<<7|r>>>25)+n|0)&n|~r&i)+e[13]-40341101|0)<<12|o>>>20)+r|0)&r|~o&n)+e[14]-1502002290|0)<<17|i>>>15)+o|0)&o|~i&r)+e[15]+1236535329|0)<<22|n>>>10)+i|0,n=((n+=((i=((i+=((o=((o+=((r=((r+=(n&o|i&~o)+e[1]-165796510|0)<<5|r>>>27)+n|0)&i|n&~i)+e[6]-1069501632|0)<<9|o>>>23)+r|0)&n|r&~n)+e[11]+643717713|0)<<14|i>>>18)+o|0)&r|o&~r)+e[0]-373897302|0)<<20|n>>>12)+i|0,n=((n+=((i=((i+=((o=((o+=((r=((r+=(n&o|i&~o)+e[5]-701558691|0)<<5|r>>>27)+n|0)&i|n&~i)+e[10]+38016083|0)<<9|o>>>23)+r|0)&n|r&~n)+e[15]-660478335|0)<<14|i>>>18)+o|0)&r|o&~r)+e[4]-405537848|0)<<20|n>>>12)+i|0,n=((n+=((i=((i+=((o=((o+=((r=((r+=(n&o|i&~o)+e[9]+568446438|0)<<5|r>>>27)+n|0)&i|n&~i)+e[14]-1019803690|0)<<9|o>>>23)+r|0)&n|r&~n)+e[3]-187363961|0)<<14|i>>>18)+o|0)&r|o&~r)+e[8]+1163531501|0)<<20|n>>>12)+i|0,n=((n+=((i=((i+=((o=((o+=((r=((r+=(n&o|i&~o)+e[13]-1444681467|0)<<5|r>>>27)+n|0)&i|n&~i)+e[2]-51403784|0)<<9|o>>>23)+r|0)&n|r&~n)+e[7]+1735328473|0)<<14|i>>>18)+o|0)&r|o&~r)+e[12]-1926607734|0)<<20|n>>>12)+i|0,n=((n+=((i=((i+=((o=((o+=((r=((r+=(n^i^o)+e[5]-378558|0)<<4|r>>>28)+n|0)^n^i)+e[8]-2022574463|0)<<11|o>>>21)+r|0)^r^n)+e[11]+1839030562|0)<<16|i>>>16)+o|0)^o^r)+e[14]-35309556|0)<<23|n>>>9)+i|0,n=((n+=((i=((i+=((o=((o+=((r=((r+=(n^i^o)+e[1]-1530992060|0)<<4|r>>>28)+n|0)^n^i)+e[4]+1272893353|0)<<11|o>>>21)+r|0)^r^n)+e[7]-155497632|0)<<16|i>>>16)+o|0)^o^r)+e[10]-1094730640|0)<<23|n>>>9)+i|0,n=((n+=((i=((i+=((o=((o+=((r=((r+=(n^i^o)+e[13]+681279174|0)<<4|r>>>28)+n|0)^n^i)+e[0]-358537222|0)<<11|o>>>21)+r|0)^r^n)+e[3]-722521979|0)<<16|i>>>16)+o|0)^o^r)+e[6]+76029189|0)<<23|n>>>9)+i|0,n=((n+=((i=((i+=((o=((o+=((r=((r+=(n^i^o)+e[9]-640364487|0)<<4|r>>>28)+n|0)^n^i)+e[12]-421815835|0)<<11|o>>>21)+r|0)^r^n)+e[15]+530742520|0)<<16|i>>>16)+o|0)^o^r)+e[2]-995338651|0)<<23|n>>>9)+i|0,n=((n+=((o=((o+=(n^((r=((r+=(i^(n|~o))+e[0]-198630844|0)<<6|r>>>26)+n|0)|~i))+e[7]+1126891415|0)<<10|o>>>22)+r|0)^((i=((i+=(r^(o|~n))+e[14]-1416354905|0)<<15|i>>>17)+o|0)|~r))+e[5]-57434055|0)<<21|n>>>11)+i|0,n=((n+=((o=((o+=(n^((r=((r+=(i^(n|~o))+e[12]+1700485571|0)<<6|r>>>26)+n|0)|~i))+e[3]-1894986606|0)<<10|o>>>22)+r|0)^((i=((i+=(r^(o|~n))+e[10]-1051523|0)<<15|i>>>17)+o|0)|~r))+e[1]-2054922799|0)<<21|n>>>11)+i|0,n=((n+=((o=((o+=(n^((r=((r+=(i^(n|~o))+e[8]+1873313359|0)<<6|r>>>26)+n|0)|~i))+e[15]-30611744|0)<<10|o>>>22)+r|0)^((i=((i+=(r^(o|~n))+e[6]-1560198380|0)<<15|i>>>17)+o|0)|~r))+e[13]+1309151649|0)<<21|n>>>11)+i|0,n=((n+=((o=((o+=(n^((r=((r+=(i^(n|~o))+e[4]-145523070|0)<<6|r>>>26)+n|0)|~i))+e[11]-1120210379|0)<<10|o>>>22)+r|0)^((i=((i+=(r^(o|~n))+e[2]+718787259|0)<<15|i>>>17)+o|0)|~r))+e[9]-343485551|0)<<21|n>>>11)+i|0,t[0]=r+t[0]|0,t[1]=n+t[1]|0,t[2]=i+t[2]|0,t[3]=o+t[3]|0},t.prototype.start=function(){return this._dataLength=0,this._bufferLength=0,this._state.set(t.stateIdentity),this},t.prototype.appendStr=function(e){var r,n,i=this._buffer8,o=this._buffer32,s=this._bufferLength;for(n=0;n<e.length;n+=1){if((r=e.charCodeAt(n))<128)i[s++]=r;else if(r<2048)i[s++]=192+(r>>>6),i[s++]=63&r|128;else if(r<55296||r>56319)i[s++]=224+(r>>>12),i[s++]=r>>>6&63|128,i[s++]=63&r|128;else{if((r=1024*(r-55296)+(e.charCodeAt(++n)-56320)+65536)>1114111)throw new Error("Unicode standard supports code points up to U+10FFFF");i[s++]=240+(r>>>18),i[s++]=r>>>12&63|128,i[s++]=r>>>6&63|128,i[s++]=63&r|128}s>=64&&(this._dataLength+=64,t._md5cycle(this._state,o),s-=64,o[0]=o[16])}return this._bufferLength=s,this},t.prototype.appendAsciiStr=function(e){for(var r,n=this._buffer8,i=this._buffer32,o=this._bufferLength,s=0;;){for(r=Math.min(e.length-s,64-o);r--;)n[o++]=e.charCodeAt(s++);if(o<64)break;this._dataLength+=64,t._md5cycle(this._state,i),o=0}return this._bufferLength=o,this},t.prototype.appendByteArray=function(e){for(var r,n=this._buffer8,i=this._buffer32,o=this._bufferLength,s=0;;){for(r=Math.min(e.length-s,64-o);r--;)n[o++]=e[s++];if(o<64)break;this._dataLength+=64,t._md5cycle(this._state,i),o=0}return this._bufferLength=o,this},t.prototype.getState=function(){var t=this._state;return{buffer:String.fromCharCode.apply(null,this._buffer8),buflen:this._bufferLength,length:this._dataLength,state:[t[0],t[1],t[2],t[3]]}},t.prototype.setState=function(t){var e,r=t.buffer,n=t.state,i=this._state;for(this._dataLength=t.length,this._bufferLength=t.buflen,i[0]=n[0],i[1]=n[1],i[2]=n[2],i[3]=n[3],e=0;e<r.length;e+=1)this._buffer8[e]=r.charCodeAt(e)},t.prototype.end=function(e){void 0===e&&(e=!1);var r,n=this._bufferLength,i=this._buffer8,o=this._buffer32,s=1+(n>>2);if(this._dataLength+=n,i[n]=128,i[n+1]=i[n+2]=i[n+3]=0,o.set(t.buffer32Identity.subarray(s),s),n>55&&(t._md5cycle(this._state,o),o.set(t.buffer32Identity)),(r=8*this._dataLength)<=4294967295)o[14]=r;else{var u=r.toString(16).match(/(.*?)(.{0,8})$/);if(null===u)return;var a=parseInt(u[2],16),c=parseInt(u[1],16)||0;o[14]=a,o[15]=c}return t._md5cycle(this._state,o),e?this._state:t._hex(this._state)},t.stateIdentity=new Int32Array([1732584193,-271733879,-1732584194,271733878]),t.buffer32Identity=new Int32Array([0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0]),t.hexChars="0123456789abcdef",t.hexOut=[],t.onePassHasher=new t,t}();e.Md5=n,"5d41402abc4b2a76b9719d911017c592"!==n.hashStr("hello")&&console.error("Md5 self test failed.")},tx0H:function(t,e,r){"use strict";r.d(e,"a",function(){return o}),r.d(e,"b",function(){return c});var n=r("8Y7J"),i=(r("UTQ3"),r("SVse")),o=(r("IheW"),n.yb({encapsulation:0,styles:["[_nghost-%COMP%] {\n border-radius: '50%';\n }"],data:{}}));function s(t){return n.bc(0,[(t()(),n.Ab(0,0,null,null,1,"img",[["class","avatar-content"]],[[8,"src",4],[8,"width",0],[8,"height",0]],[[null,"error"]],function(t,e,r){var n=!0;return"error"===e&&(n=!1!==t.component.fetchAvatarSource()&&n),n},null,null)),n.zb(1,278528,null,0,i.q,[n.l,n.v,n.G],{ngStyle:[0,"ngStyle"]},null)],function(t,e){t(e,1,0,e.component.avatarStyle)},function(t,e){var r=e.component;t(e,0,0,r.avatarSrc,r.size,r.size)})}function u(t){return n.bc(0,[(t()(),n.Ab(0,0,null,null,2,"div",[["class","avatar-content"]],null,null,null,null,null)),n.zb(1,278528,null,0,i.q,[n.l,n.v,n.G],{ngStyle:[0,"ngStyle"]},null),(t()(),n.Yb(2,null,[" "," "]))],function(t,e){t(e,1,0,e.component.avatarStyle)},function(t,e){t(e,2,0,e.component.avatarText)})}function a(t){return n.bc(0,[(t()(),n.jb(16777216,null,null,1,null,u)),n.zb(1,16384,null,0,i.n,[n.R,n.O],{ngIf:[0,"ngIf"]},null),(t()(),n.jb(0,null,null,0))],function(t,e){t(e,1,0,e.component.avatarText)},null)}function c(t){return n.bc(0,[(t()(),n.Ab(0,0,null,null,4,"div",[["class","avatar-container"]],null,[[null,"click"]],function(t,e,r){var n=!0;return"click"===e&&(n=!1!==t.component.onAvatarClicked()&&n),n},null,null)),n.zb(1,278528,null,0,i.q,[n.l,n.v,n.G],{ngStyle:[0,"ngStyle"]},null),(t()(),n.jb(16777216,null,null,1,null,s)),n.zb(3,16384,null,0,i.n,[n.R,n.O],{ngIf:[0,"ngIf"],ngIfElse:[1,"ngIfElse"]},null),(t()(),n.jb(0,[["textAvatar",2]],null,0,null,a))],function(t,e){var r=e.component;t(e,1,0,r.hostStyle),t(e,3,0,r.avatarSrc,n.Ob(e,4))},null)}},xUpK:function(t,e){t.exports=function(){if("undefined"!=typeof window&&null!==window){if(window.devicePixelRatio>1.25)return!0;if(window.matchMedia&&window.matchMedia("(-webkit-min-device-pixel-ratio: 1.25), (min--moz-device-pixel-ratio: 1.25), (-o-min-device-pixel-ratio: 5/4), (min-resolution: 1.25dppx)").matches)return!0}return!1}}}])}();
1
+ !function(){function t(t){return function(t){if(Array.isArray(t))return e(t)}(t)||function(t){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(t))return Array.from(t)}(t)||function(t,r){if(!t)return;if("string"==typeof t)return e(t,r);var n=Object.prototype.toString.call(t).slice(8,-1);"Object"===n&&t.constructor&&(n=t.constructor.name);if("Map"===n||"Set"===n)return Array.from(t);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return e(t,r)}(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function e(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}function r(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&n(t,e)}function n(t,e){return(n=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function i(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch(t){return!1}}();return function(){var r,n=s(t);if(e){var i=s(this).constructor;r=Reflect.construct(n,arguments,i)}else r=n.apply(this,arguments);return o(this,r)}}function o(t,e){return!e||"object"!=typeof e&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function s(t){return(s=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}function u(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}function a(t,e,r){return e&&u(t.prototype,e),r&&u(t,r),t}function c(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(window.webpackJsonp=window.webpackJsonp||[]).push([[14],{"6W+F":function(t,e){e.__esModule=!0,e.default={body:'<path opacity=".3" d="M4 8h16v11H4z" fill="currentColor"/><path d="M20 6h-4V4c0-1.11-.89-2-2-2h-4c-1.11 0-2 .89-2 2v2H4c-1.11 0-1.99.89-1.99 2L2 19c0 1.11.89 2 2 2h16c1.11 0 2-.89 2-2V8c0-1.11-.89-2-2-2zM10 4h4v2h-4V4zm10 15H4V8h16v11z" fill="currentColor"/>',width:24,height:24}},OcYv:function(t,e){e.__esModule=!0,e.default={body:'<path opacity=".3" d="M16.11 6.77c-.53 2.6-2.62 4.43-5.28 4.43c-1.56 0-2.96-.62-3.97-1.63C6.3 10.96 6 12.47 6 14c0 3.31 2.69 6 6 6s6-2.69 6-6c0-2.56-.66-5.03-1.89-7.23zm-4.22 11.22c-1.37 0-2.49-1.08-2.49-2.42c0-1.25.81-2.13 2.17-2.41c1.37-.28 2.78-.93 3.57-1.99c.3 1 .46 2.05.46 3.12c0 2.04-1.66 3.7-3.71 3.7z" fill="currentColor"/><path d="M11.57 13.16c-1.36.28-2.17 1.16-2.17 2.41c0 1.34 1.11 2.42 2.49 2.42c2.05 0 3.71-1.66 3.71-3.71c0-1.07-.15-2.12-.46-3.12c-.79 1.07-2.2 1.72-3.57 2zM13.5.67s.74 2.65.74 4.8c0 2.06-1.35 3.73-3.41 3.73c-2.07 0-3.63-1.67-3.63-3.73l.03-.36C5.21 7.51 4 10.62 4 14c0 4.42 3.58 8 8 8s8-3.58 8-8C20 8.61 17.41 3.8 13.5.67zM12 20c-3.31 0-6-2.69-6-6c0-1.53.3-3.04.86-4.43a5.582 5.582 0 0 0 3.97 1.63c2.66 0 4.75-1.83 5.28-4.43A14.77 14.77 0 0 1 18 14c0 3.31-2.69 6-6 6z" fill="currentColor"/>',width:24,height:24}},UTQ3:function(e,n,o){"use strict";o.d(n,"a",function(){return M}),o.d(n,"b",function(){return j}),o.d(n,"c",function(){return E}),o.d(n,"d",function(){return w}),o.d(n,"e",function(){return R}),o.d(n,"f",function(){return x});var s,u=o("8Y7J"),h=o("xUpK"),l=o.n(h),f=o("kScs"),v=o("GJmQ"),d=o("lJxs"),p=function t(e){c(this,t),this.sourceId=e},y=function(t){return t.FACEBOOK="facebook",t.GOOGLE="google",t.TWITTER="twitter",t.INSTAGRAM="instagram",t.VKONTAKTE="vkontakte",t.SKYPE="skype",t.GRAVATAR="gravatar",t.GITHUB="github",t.CUSTOM="custom",t.INITIALS="initials",t.VALUE="value",t}({}),g=function(){function t(e){c(this,t),this.sourceId=e,this.sourceType=y.FACEBOOK}return a(t,[{key:"getAvatar",value:function(t){return"https://graph.facebook.com/".concat(this.sourceId,"/picture?width=").concat(t,"&height=").concat(t)}}]),t}(),b=function(){function t(e){c(this,t),this.sourceId=e,this.sourceType=y.TWITTER}return a(t,[{key:"getAvatar",value:function(t){var e=this.getImageSize(t);return"https://twitter.com/".concat(this.sourceId,"/profile_image?size=").concat(e)}},{key:"getImageSize",value:function(t){return t<=24?"mini":t<=48?"normal":t<=73?"bigger":"original"}}]),t}(),A=function(t){r(n,t);var e=i(n);function n(t){var r;return c(this,n),(r=e.call(this,t)).sourceType=y.GOOGLE,r}return a(n,[{key:"getAvatar",value:function(){return"https://picasaweb.google.com/data/entry/api/user/".concat(this.sourceId,"?alt=json")}},{key:"processResponse",value:function(t,e){var r=t.entry.gphoto$thumbnail.$t;return r?r.replace("s64","s"+e):null}}]),n}(p),S=function(t){r(n,t);var e=i(n);function n(t){var r;return c(this,n),(r=e.call(this,t)).sourceType=y.INSTAGRAM,r}return a(n,[{key:"getAvatar",value:function(){return"https://www.instagram.com/".concat(this.sourceId,"/?__a=1")}},{key:"processResponse",value:function(t,e){return"".concat(t.graphql.user.profile_pic_url_hd,"&s=").concat(e)}}]),n}(p),I=function(){function t(e){c(this,t),this.sourceId=e,this.sourceType=y.CUSTOM}return a(t,[{key:"getAvatar",value:function(){return this.sourceId}}]),t}(),m=function(){function t(e){c(this,t),this.sourceId=e,this.sourceType=y.INITIALS}return a(t,[{key:"getAvatar",value:function(t){return this.getInitials(this.sourceId,t)}},{key:"getInitials",value:function(t,e){if(!(t=t.trim()))return"";var r=t.split(" ");return this.constructInitials(e&&e<r.length?r.slice(0,e):r)}},{key:"constructInitials",value:function(t){return t&&t.length?t.filter(function(t){return t&&t.length>0}).map(function(t){return t[0].toUpperCase()}).join(""):""}}]),t}(),_=function(){function t(e){c(this,t),this.value=e,this.sourceType=y.GRAVATAR,this.sourceId=e.match("^[a-f0-9]{32}$")?e:f.Md5.hashStr(e).toString()}return a(t,[{key:"getAvatar",value:function(t){var e=l()()?2*t:t;return"https://secure.gravatar.com/avatar/".concat(this.sourceId,"?s=").concat(e,"&d=404")}}]),t}(),k=function(){function t(e){c(this,t),this.sourceId=e,this.sourceType=y.SKYPE}return a(t,[{key:"getAvatar",value:function(){return"https://api.skype.com/users/".concat(this.sourceId,"/profile/avatar")}}]),t}(),T=function(){function t(e){c(this,t),this.sourceId=e,this.sourceType=y.VALUE}return a(t,[{key:"getAvatar",value:function(){return this.sourceId}}]),t}(),C=function(t){r(n,t);var e=i(n);function n(t){var r;return c(this,n),(r=e.call(this,t)).sourceType=y.VKONTAKTE,r}return a(n,[{key:"getAvatar",value:function(t){var e=this.getImageSize(t);return"https://api.vk.com/method/users.get?user_id=".concat(this.sourceId,"&v=5.8&fields=").concat(e)}},{key:"processResponse",value:function(t){var e=Object.keys(t.response[0]).pop();return e&&t.response[0][e]||null}},{key:"getImageSize",value:function(t){return t<=50?"photo_50":t<=100?"photo_100":t<=200?"photo_200":"photo_max"}}]),n}(p),O=function(t){r(n,t);var e=i(n);function n(t){var r;return c(this,n),(r=e.call(this,t)).sourceType=y.GITHUB,r}return a(n,[{key:"getAvatar",value:function(){return"https://api.github.com/users/"+this.sourceId}},{key:"processResponse",value:function(t,e){return e?"".concat(t.avatar_url,"&s=").concat(e):t.avatar_url}}]),n}(p),w=function(){function t(){c(this,t),this.sources={},this.sources[y.FACEBOOK]=g,this.sources[y.TWITTER]=b,this.sources[y.GOOGLE]=A,this.sources[y.INSTAGRAM]=S,this.sources[y.SKYPE]=k,this.sources[y.GRAVATAR]=_,this.sources[y.CUSTOM]=I,this.sources[y.INITIALS]=m,this.sources[y.VALUE]=T,this.sources[y.VKONTAKTE]=C,this.sources[y.GITHUB]=O}return a(t,[{key:"newInstance",value:function(t,e){return new this.sources[t](e)}}]),t}(),x=new u.s("avatar.config"),R=function(){function e(t){c(this,e),this.userConfig=t}return a(e,[{key:"getAvatarSources",value:function(e){if(this.userConfig&&this.userConfig.sourcePriorityOrder&&this.userConfig.sourcePriorityOrder.length){var r=t(new Set(this.userConfig.sourcePriorityOrder)).filter(function(t){return e.includes(t)});return[].concat(t(r),t(e.filter(function(t){return!r.includes(t)})))}return e}},{key:"getAvatarColors",value:function(t){return this.userConfig&&this.userConfig.colors&&this.userConfig.colors.length&&this.userConfig.colors||t}}]),e}(),z=[y.FACEBOOK,y.GOOGLE,y.TWITTER,y.INSTAGRAM,y.VKONTAKTE,y.SKYPE,y.GRAVATAR,y.GITHUB,y.CUSTOM,y.INITIALS,y.VALUE],L=["#1abc9c","#3498db","#f1c40f","#8e44ad","#e74c3c","#d35400","#2c3e50","#7f8c8d"],E=function(){function t(e,r){c(this,t),this.http=e,this.avatarConfigService=r,this.avatarSources=z,this.avatarColors=L,this.failedSources=new Map,this.overrideAvatarSources(),this.overrideAvatarColors()}return a(t,[{key:"fetchAvatar",value:function(t){return this.http.get(t)}},{key:"getRandomColor",value:function(t){if(!t)return"transparent";var e=this.calculateAsciiCode(t);return this.avatarColors[e%this.avatarColors.length]}},{key:"compareSources",value:function(t,e){return this.getSourcePriority(t)-this.getSourcePriority(e)}},{key:"isSource",value:function(t){return this.avatarSources.includes(t)}},{key:"isTextAvatar",value:function(t){return[y.INITIALS,y.VALUE].includes(t)}},{key:"buildSourceKey",value:function(t){return t.sourceType+"-"+t.sourceId}},{key:"sourceHasFailedBefore",value:function(t){return this.failedSources.has(this.buildSourceKey(t))}},{key:"markSourceAsFailed",value:function(t){this.failedSources.set(this.buildSourceKey(t),t)}},{key:"overrideAvatarSources",value:function(){this.avatarSources=this.avatarConfigService.getAvatarSources(z)}},{key:"overrideAvatarColors",value:function(){this.avatarColors=this.avatarConfigService.getAvatarColors(L)}},{key:"calculateAsciiCode",value:function(t){return t.split("").map(function(t){return t.charCodeAt(0)}).reduce(function(t,e){return t+e})}},{key:"getSourcePriority",value:function(t){return this.avatarSources.indexOf(t)}}]),t}(),M=function(){function t(e,r){c(this,t),this.sourceFactory=e,this.avatarService=r,this.round=!0,this.size=50,this.textSizeRatio=3,this.fgColor="#FFF",this.style={},this.cornerRadius=0,this.clickOnAvatar=new u.o,this.isAlive=!0,this.avatarSrc=null,this.avatarText=null,this.avatarStyle={},this.hostStyle={},this.currentIndex=-1,this.sources=[]}return a(t,[{key:"onAvatarClicked",value:function(){this.clickOnAvatar.emit(this.sources[this.currentIndex])}},{key:"ngOnChanges",value:function(t){for(var e in t)if(this.avatarService.isSource(e)){var r=y[e.toUpperCase()],n=t[e].currentValue;n&&"string"==typeof n?this.addSource(r,n):this.removeSource(r)}this.initializeAvatar()}},{key:"fetchAvatarSource",value:function(){var t=this.sources[this.currentIndex];t&&this.avatarService.markSourceAsFailed(t);var e=this.findNextSource();e&&(this.avatarService.isTextAvatar(e.sourceType)?(this.buildTextAvatar(e),this.avatarSrc=null):this.buildImageAvatar(e))}},{key:"findNextSource",value:function(){for(;++this.currentIndex<this.sources.length;){var t=this.sources[this.currentIndex];if(t&&!this.avatarService.sourceHasFailedBefore(t))return t}return null}},{key:"ngOnDestroy",value:function(){this.isAlive=!1}},{key:"initializeAvatar",value:function(){this.currentIndex=-1,this.sources.length>0&&(this.sortAvatarSources(),this.fetchAvatarSource(),this.hostStyle={width:this.size+"px",height:this.size+"px"})}},{key:"sortAvatarSources",value:function(){var t=this;this.sources.sort(function(e,r){return t.avatarService.compareSources(e.sourceType,r.sourceType)})}},{key:"buildTextAvatar",value:function(t){this.avatarText=t.getAvatar(this.initialsSize),this.avatarStyle=this.getInitialsStyle(t.sourceId)}},{key:"buildImageAvatar",value:function(t){this.avatarStyle=this.getImageStyle(),t instanceof p?this.fetchAndProcessAsyncAvatar(t):this.avatarSrc=t.getAvatar(this.size)}},{key:"getInitialsStyle",value:function(t){return Object.assign({textAlign:"center",borderRadius:this.round?"100%":this.cornerRadius+"px",border:this.borderColor?"1px solid "+this.borderColor:"",textTransform:"uppercase",color:this.fgColor,backgroundColor:this.bgColor?this.bgColor:this.avatarService.getRandomColor(t),font:Math.floor(this.size/this.textSizeRatio)+"px Helvetica, Arial, sans-serif",lineHeight:this.size+"px"},this.style)}},{key:"getImageStyle",value:function(){return Object.assign({maxWidth:"100%",borderRadius:this.round?"50%":this.cornerRadius+"px",border:this.borderColor?"1px solid "+this.borderColor:"",width:this.size,height:this.size},this.style)}},{key:"fetchAndProcessAsyncAvatar",value:function(t){var e=this;this.avatarService.sourceHasFailedBefore(t)||this.avatarService.fetchAvatar(t.getAvatar(this.size)).pipe(Object(v.a)(function(){return e.isAlive}),Object(d.a)(function(r){return t.processResponse(r,e.size)})).subscribe(function(t){return e.avatarSrc=t},function(t){e.fetchAvatarSource()})}},{key:"addSource",value:function(t,e){var r=this.sources.find(function(e){return e.sourceType===t});r?r.sourceId=e:this.sources.push(this.sourceFactory.newInstance(t,e))}},{key:"removeSource",value:function(t){this.sources=this.sources.filter(function(e){return e.sourceType!==t})}}]),t}(),j=s=function(){function t(){c(this,t)}return a(t,null,[{key:"forRoot",value:function(t){return{ngModule:s,providers:[{provide:x,useValue:t||{}}]}}}]),t}()},kScs:function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=function(){function t(){this._state=new Int32Array(4),this._buffer=new ArrayBuffer(68),this._buffer8=new Uint8Array(this._buffer,0,68),this._buffer32=new Uint32Array(this._buffer,0,17),this.start()}return t.hashStr=function(t,e){return void 0===e&&(e=!1),this.onePassHasher.start().appendStr(t).end(e)},t.hashAsciiStr=function(t,e){return void 0===e&&(e=!1),this.onePassHasher.start().appendAsciiStr(t).end(e)},t._hex=function(e){var r,n,i,o,s=t.hexChars,u=t.hexOut;for(o=0;o<4;o+=1)for(n=8*o,r=e[o],i=0;i<8;i+=2)u[n+1+i]=s.charAt(15&r),u[n+0+i]=s.charAt(15&(r>>>=4)),r>>>=4;return u.join("")},t._md5cycle=function(t,e){var r=t[0],n=t[1],i=t[2],o=t[3];n=((n+=((i=((i+=((o=((o+=((r=((r+=(n&i|~n&o)+e[0]-680876936|0)<<7|r>>>25)+n|0)&n|~r&i)+e[1]-389564586|0)<<12|o>>>20)+r|0)&r|~o&n)+e[2]+606105819|0)<<17|i>>>15)+o|0)&o|~i&r)+e[3]-1044525330|0)<<22|n>>>10)+i|0,n=((n+=((i=((i+=((o=((o+=((r=((r+=(n&i|~n&o)+e[4]-176418897|0)<<7|r>>>25)+n|0)&n|~r&i)+e[5]+1200080426|0)<<12|o>>>20)+r|0)&r|~o&n)+e[6]-1473231341|0)<<17|i>>>15)+o|0)&o|~i&r)+e[7]-45705983|0)<<22|n>>>10)+i|0,n=((n+=((i=((i+=((o=((o+=((r=((r+=(n&i|~n&o)+e[8]+1770035416|0)<<7|r>>>25)+n|0)&n|~r&i)+e[9]-1958414417|0)<<12|o>>>20)+r|0)&r|~o&n)+e[10]-42063|0)<<17|i>>>15)+o|0)&o|~i&r)+e[11]-1990404162|0)<<22|n>>>10)+i|0,n=((n+=((i=((i+=((o=((o+=((r=((r+=(n&i|~n&o)+e[12]+1804603682|0)<<7|r>>>25)+n|0)&n|~r&i)+e[13]-40341101|0)<<12|o>>>20)+r|0)&r|~o&n)+e[14]-1502002290|0)<<17|i>>>15)+o|0)&o|~i&r)+e[15]+1236535329|0)<<22|n>>>10)+i|0,n=((n+=((i=((i+=((o=((o+=((r=((r+=(n&o|i&~o)+e[1]-165796510|0)<<5|r>>>27)+n|0)&i|n&~i)+e[6]-1069501632|0)<<9|o>>>23)+r|0)&n|r&~n)+e[11]+643717713|0)<<14|i>>>18)+o|0)&r|o&~r)+e[0]-373897302|0)<<20|n>>>12)+i|0,n=((n+=((i=((i+=((o=((o+=((r=((r+=(n&o|i&~o)+e[5]-701558691|0)<<5|r>>>27)+n|0)&i|n&~i)+e[10]+38016083|0)<<9|o>>>23)+r|0)&n|r&~n)+e[15]-660478335|0)<<14|i>>>18)+o|0)&r|o&~r)+e[4]-405537848|0)<<20|n>>>12)+i|0,n=((n+=((i=((i+=((o=((o+=((r=((r+=(n&o|i&~o)+e[9]+568446438|0)<<5|r>>>27)+n|0)&i|n&~i)+e[14]-1019803690|0)<<9|o>>>23)+r|0)&n|r&~n)+e[3]-187363961|0)<<14|i>>>18)+o|0)&r|o&~r)+e[8]+1163531501|0)<<20|n>>>12)+i|0,n=((n+=((i=((i+=((o=((o+=((r=((r+=(n&o|i&~o)+e[13]-1444681467|0)<<5|r>>>27)+n|0)&i|n&~i)+e[2]-51403784|0)<<9|o>>>23)+r|0)&n|r&~n)+e[7]+1735328473|0)<<14|i>>>18)+o|0)&r|o&~r)+e[12]-1926607734|0)<<20|n>>>12)+i|0,n=((n+=((i=((i+=((o=((o+=((r=((r+=(n^i^o)+e[5]-378558|0)<<4|r>>>28)+n|0)^n^i)+e[8]-2022574463|0)<<11|o>>>21)+r|0)^r^n)+e[11]+1839030562|0)<<16|i>>>16)+o|0)^o^r)+e[14]-35309556|0)<<23|n>>>9)+i|0,n=((n+=((i=((i+=((o=((o+=((r=((r+=(n^i^o)+e[1]-1530992060|0)<<4|r>>>28)+n|0)^n^i)+e[4]+1272893353|0)<<11|o>>>21)+r|0)^r^n)+e[7]-155497632|0)<<16|i>>>16)+o|0)^o^r)+e[10]-1094730640|0)<<23|n>>>9)+i|0,n=((n+=((i=((i+=((o=((o+=((r=((r+=(n^i^o)+e[13]+681279174|0)<<4|r>>>28)+n|0)^n^i)+e[0]-358537222|0)<<11|o>>>21)+r|0)^r^n)+e[3]-722521979|0)<<16|i>>>16)+o|0)^o^r)+e[6]+76029189|0)<<23|n>>>9)+i|0,n=((n+=((i=((i+=((o=((o+=((r=((r+=(n^i^o)+e[9]-640364487|0)<<4|r>>>28)+n|0)^n^i)+e[12]-421815835|0)<<11|o>>>21)+r|0)^r^n)+e[15]+530742520|0)<<16|i>>>16)+o|0)^o^r)+e[2]-995338651|0)<<23|n>>>9)+i|0,n=((n+=((o=((o+=(n^((r=((r+=(i^(n|~o))+e[0]-198630844|0)<<6|r>>>26)+n|0)|~i))+e[7]+1126891415|0)<<10|o>>>22)+r|0)^((i=((i+=(r^(o|~n))+e[14]-1416354905|0)<<15|i>>>17)+o|0)|~r))+e[5]-57434055|0)<<21|n>>>11)+i|0,n=((n+=((o=((o+=(n^((r=((r+=(i^(n|~o))+e[12]+1700485571|0)<<6|r>>>26)+n|0)|~i))+e[3]-1894986606|0)<<10|o>>>22)+r|0)^((i=((i+=(r^(o|~n))+e[10]-1051523|0)<<15|i>>>17)+o|0)|~r))+e[1]-2054922799|0)<<21|n>>>11)+i|0,n=((n+=((o=((o+=(n^((r=((r+=(i^(n|~o))+e[8]+1873313359|0)<<6|r>>>26)+n|0)|~i))+e[15]-30611744|0)<<10|o>>>22)+r|0)^((i=((i+=(r^(o|~n))+e[6]-1560198380|0)<<15|i>>>17)+o|0)|~r))+e[13]+1309151649|0)<<21|n>>>11)+i|0,n=((n+=((o=((o+=(n^((r=((r+=(i^(n|~o))+e[4]-145523070|0)<<6|r>>>26)+n|0)|~i))+e[11]-1120210379|0)<<10|o>>>22)+r|0)^((i=((i+=(r^(o|~n))+e[2]+718787259|0)<<15|i>>>17)+o|0)|~r))+e[9]-343485551|0)<<21|n>>>11)+i|0,t[0]=r+t[0]|0,t[1]=n+t[1]|0,t[2]=i+t[2]|0,t[3]=o+t[3]|0},t.prototype.start=function(){return this._dataLength=0,this._bufferLength=0,this._state.set(t.stateIdentity),this},t.prototype.appendStr=function(e){var r,n,i=this._buffer8,o=this._buffer32,s=this._bufferLength;for(n=0;n<e.length;n+=1){if((r=e.charCodeAt(n))<128)i[s++]=r;else if(r<2048)i[s++]=192+(r>>>6),i[s++]=63&r|128;else if(r<55296||r>56319)i[s++]=224+(r>>>12),i[s++]=r>>>6&63|128,i[s++]=63&r|128;else{if((r=1024*(r-55296)+(e.charCodeAt(++n)-56320)+65536)>1114111)throw new Error("Unicode standard supports code points up to U+10FFFF");i[s++]=240+(r>>>18),i[s++]=r>>>12&63|128,i[s++]=r>>>6&63|128,i[s++]=63&r|128}s>=64&&(this._dataLength+=64,t._md5cycle(this._state,o),s-=64,o[0]=o[16])}return this._bufferLength=s,this},t.prototype.appendAsciiStr=function(e){for(var r,n=this._buffer8,i=this._buffer32,o=this._bufferLength,s=0;;){for(r=Math.min(e.length-s,64-o);r--;)n[o++]=e.charCodeAt(s++);if(o<64)break;this._dataLength+=64,t._md5cycle(this._state,i),o=0}return this._bufferLength=o,this},t.prototype.appendByteArray=function(e){for(var r,n=this._buffer8,i=this._buffer32,o=this._bufferLength,s=0;;){for(r=Math.min(e.length-s,64-o);r--;)n[o++]=e[s++];if(o<64)break;this._dataLength+=64,t._md5cycle(this._state,i),o=0}return this._bufferLength=o,this},t.prototype.getState=function(){var t=this._state;return{buffer:String.fromCharCode.apply(null,this._buffer8),buflen:this._bufferLength,length:this._dataLength,state:[t[0],t[1],t[2],t[3]]}},t.prototype.setState=function(t){var e,r=t.buffer,n=t.state,i=this._state;for(this._dataLength=t.length,this._bufferLength=t.buflen,i[0]=n[0],i[1]=n[1],i[2]=n[2],i[3]=n[3],e=0;e<r.length;e+=1)this._buffer8[e]=r.charCodeAt(e)},t.prototype.end=function(e){void 0===e&&(e=!1);var r,n=this._bufferLength,i=this._buffer8,o=this._buffer32,s=1+(n>>2);if(this._dataLength+=n,i[n]=128,i[n+1]=i[n+2]=i[n+3]=0,o.set(t.buffer32Identity.subarray(s),s),n>55&&(t._md5cycle(this._state,o),o.set(t.buffer32Identity)),(r=8*this._dataLength)<=4294967295)o[14]=r;else{var u=r.toString(16).match(/(.*?)(.{0,8})$/);if(null===u)return;var a=parseInt(u[2],16),c=parseInt(u[1],16)||0;o[14]=a,o[15]=c}return t._md5cycle(this._state,o),e?this._state:t._hex(this._state)},t.stateIdentity=new Int32Array([1732584193,-271733879,-1732584194,271733878]),t.buffer32Identity=new Int32Array([0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0]),t.hexChars="0123456789abcdef",t.hexOut=[],t.onePassHasher=new t,t}();e.Md5=n,"5d41402abc4b2a76b9719d911017c592"!==n.hashStr("hello")&&console.error("Md5 self test failed.")},tx0H:function(t,e,r){"use strict";r.d(e,"a",function(){return o}),r.d(e,"b",function(){return c});var n=r("8Y7J"),i=(r("UTQ3"),r("SVse")),o=(r("IheW"),n.yb({encapsulation:0,styles:["[_nghost-%COMP%] {\n border-radius: '50%';\n }"],data:{}}));function s(t){return n.bc(0,[(t()(),n.Ab(0,0,null,null,1,"img",[["class","avatar-content"]],[[8,"src",4],[8,"width",0],[8,"height",0]],[[null,"error"]],function(t,e,r){var n=!0;return"error"===e&&(n=!1!==t.component.fetchAvatarSource()&&n),n},null,null)),n.zb(1,278528,null,0,i.r,[n.l,n.v,n.G],{ngStyle:[0,"ngStyle"]},null)],function(t,e){t(e,1,0,e.component.avatarStyle)},function(t,e){var r=e.component;t(e,0,0,r.avatarSrc,r.size,r.size)})}function u(t){return n.bc(0,[(t()(),n.Ab(0,0,null,null,2,"div",[["class","avatar-content"]],null,null,null,null,null)),n.zb(1,278528,null,0,i.r,[n.l,n.v,n.G],{ngStyle:[0,"ngStyle"]},null),(t()(),n.Yb(2,null,[" "," "]))],function(t,e){t(e,1,0,e.component.avatarStyle)},function(t,e){t(e,2,0,e.component.avatarText)})}function a(t){return n.bc(0,[(t()(),n.jb(16777216,null,null,1,null,u)),n.zb(1,16384,null,0,i.o,[n.R,n.O],{ngIf:[0,"ngIf"]},null),(t()(),n.jb(0,null,null,0))],function(t,e){t(e,1,0,e.component.avatarText)},null)}function c(t){return n.bc(0,[(t()(),n.Ab(0,0,null,null,4,"div",[["class","avatar-container"]],null,[[null,"click"]],function(t,e,r){var n=!0;return"click"===e&&(n=!1!==t.component.onAvatarClicked()&&n),n},null,null)),n.zb(1,278528,null,0,i.r,[n.l,n.v,n.G],{ngStyle:[0,"ngStyle"]},null),(t()(),n.jb(16777216,null,null,1,null,s)),n.zb(3,16384,null,0,i.o,[n.R,n.O],{ngIf:[0,"ngIf"],ngIfElse:[1,"ngIfElse"]},null),(t()(),n.jb(0,[["textAvatar",2]],null,0,null,a))],function(t,e){var r=e.component;t(e,1,0,r.hostStyle),t(e,3,0,r.avatarSrc,n.Ob(e,4))},null)}},xUpK:function(t,e){t.exports=function(){if("undefined"!=typeof window&&null!==window){if(window.devicePixelRatio>1.25)return!0;if(window.matchMedia&&window.matchMedia("(-webkit-min-device-pixel-ratio: 1.25), (min--moz-device-pixel-ratio: 1.25), (-o-min-device-pixel-ratio: 5/4), (min-resolution: 1.25dppx)").matches)return!0}return!1}}}])}();