(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[5658],{40725:function(e,t){"use strict";/*! * content-type * Copyright(c) 2015 Douglas Christopher Wilson * MIT Licensed */ var r=/; *([!#$%&'*+.^_`|~0-9A-Za-z-]+) *= *("(?:[\u000b\u0020\u0021\u0023-\u005b\u005d-\u007e\u0080-\u00ff]|\\[\u000b\u0020-\u00ff])*"|[!#$%&'*+.^_`|~0-9A-Za-z-]+) */g,n=/\\([\u000b\u0020-\u00ff])/g,i=/^[!#$%&'*+.^_`|~0-9A-Za-z-]+\/[!#$%&'*+.^_`|~0-9A-Za-z-]+$/;function o(e){this.parameters=Object.create(null),this.type=e}t.Q=function(e){if(!e)throw TypeError("argument string is required");var t,a,s,c="object"==typeof e?function(e){var t;if("function"==typeof e.getHeader?t=e.getHeader("content-type"):"object"==typeof e.headers&&(t=e.headers&&e.headers["content-type"]),"string"!=typeof t)throw TypeError("content-type header is missing from object");return t}(e):e;if("string"!=typeof c)throw TypeError("argument string is required to be a string");var l=c.indexOf(";"),u=-1!==l?c.slice(0,l).trim():c.trim();if(!i.test(u))throw TypeError("invalid media type");var p=new o(u.toLowerCase());if(-1!==l){for(r.lastIndex=l;a=r.exec(c);){if(a.index!==l)throw TypeError("invalid parameter format");l+=a[0].length,t=a[1].toLowerCase(),34===(s=a[2]).charCodeAt(0)&&-1!==(s=s.slice(1,-1)).indexOf("\\")&&(s=s.replace(n,"$1")),p.parameters[t]=s}if(l!==c.length)throw TypeError("invalid parameter format")}return p}},74049:function(e,t,r){"use strict";var n=r(60444);function i(){}function o(){}o.resetWarningCache=i,e.exports=function(){function e(e,t,r,i,o,a){if(a!==n){var s=Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw s.name="Invariant Violation",s}}function t(){return e}e.isRequired=e;var r={array:e,bigint:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:o,resetWarningCache:i};return r.PropTypes=r,r}},40507:function(e,t,r){e.exports=r(74049)()},60444:function(e){"use strict";e.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},25658:function(e,t,r){"use strict";r.d(t,{Q:function(){return T}});var n=r(40574),i=r(51163),o=r(25542),a=r(96583),s=r(40725),c=new Map,l=function(e){return e.cloneNode(!0)},u=function(){return"file:"===window.location.protocol},p=function(e,t,r){var n=new XMLHttpRequest;n.onreadystatechange=function(){try{if(!/\.svg/i.test(e)&&2===n.readyState){var t=n.getResponseHeader("Content-Type");if(!t)throw Error("Content type not found");var i=(0,s.Q)(t).type;if(!("image/svg+xml"===i||"text/plain"===i))throw Error("Invalid content type: ".concat(i))}if(4===n.readyState){if(404===n.status||null===n.responseXML)throw Error(u()?"Note: SVG injection ajax calls do not work locally without adjusting security settings in your browser. Or consider using a local webserver.":"Unable to load SVG file: "+e);if(200===n.status||u()&&0===n.status)r(null,n);else throw Error("There was a problem injecting the SVG: "+n.status+" "+n.statusText)}}catch(o){if(n.abort(),o instanceof Error)r(o,n);else throw o}},n.open("GET",e),n.withCredentials=t,n.overrideMimeType&&n.overrideMimeType("text/xml"),n.send()},f={},d=function(e,t){f[e]=f[e]||[],f[e].push(t)},h=function(e){for(var t=function(t,r){setTimeout(function(){if(Array.isArray(f[e])){var r=c.get(e),n=f[e][t];r instanceof SVGSVGElement&&n(null,l(r)),r instanceof Error&&n(r),t===f[e].length-1&&delete f[e]}},0)},r=0,n=f[e].length;r0&&("always"===t||"once"===t&&!b[c])){for(var q=0,O=T.length;q desc");t&&e.removeChild(t);var r=document.createElement("desc");r.innerHTML=o,e.prepend(r)}if(u){var n=e.querySelector(":scope > title");n&&e.removeChild(n);var i=document.createElement("title");i.innerHTML=u,e.prepend(i)}try{d(e)}catch(a){m(a)}},cacheRequests:p,evalScripts:a,httpRequestWithCredentials:s,renumerateIRIElements:c})}},s.removeSVG=function(){var e;null!=(e=this.nonReactWrapper)&&e.parentNode&&(this.nonReactWrapper.parentNode.removeChild(this.nonReactWrapper),this.nonReactWrapper=null)},s.componentDidMount=function(){this._isMounted=!0,this.renderSVG()},s.componentDidUpdate=function(e){var t=this;C((0,i.Z)({},e),this.props)&&this.setState(function(){return t.initialState},function(){t.removeSVG(),t.renderSVG()})},s.componentWillUnmount=function(){this._isMounted=!1,this.removeSVG()},s.render=function(){var e=this.props;e.afterInjection,e.beforeInjection,e.desc,e.evalScripts;var t=e.fallback;e.httpRequestWithCredentials;var r=e.loading;e.renumerateIRIElements,e.src,e.title,e.useRequestCache;var o=e.wrapper,a=(0,n.Z)(e,R);return x.createElement(o,(0,i.Z)({},a,{ref:this.refCallback},"svg"===o?{xmlns:k,xmlnsXlink:I}:{}),this.state.isLoading&&r&&x.createElement(r,null),this.state.hasError&&t&&x.createElement(t,null))},t}(x.Component);T.defaultProps={afterInjection:function(){},beforeInjection:function(){},desc:"",evalScripts:"never",fallback:null,httpRequestWithCredentials:!1,loading:null,onError:function(){},renumerateIRIElements:!0,title:"",useRequestCache:!0,wrapper:"div"},T.propTypes={afterInjection:S.func,beforeInjection:S.func,desc:S.string,evalScripts:S.oneOf(["always","once","never"]),fallback:S.oneOfType([S.func,S.object,S.string]),httpRequestWithCredentials:S.bool,loading:S.oneOfType([S.func,S.object,S.string]),onError:S.func,renumerateIRIElements:S.bool,src:S.string.isRequired,title:S.string,useRequestCache:S.bool,wrapper:S.oneOf(["div","span","svg"])}}}]);