"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[7260],{9684:function(e,t){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-\u007e\u0080-\u00ff]+$/,i=/^[!#$%&'*+.^_`|~0-9A-Za-z-]+$/,o=/\\([\u000b\u0020-\u00ff])/g,a=/([\\"])/g,s=/^[!#$%&'*+.^_`|~0-9A-Za-z-]+\/[!#$%&'*+.^_`|~0-9A-Za-z-]+$/;function l(e){var t=String(e);if(i.test(t))return t;if(t.length>0&&!n.test(t))throw new TypeError("invalid parameter value");return'"'+t.replace(a,"\\$1")+'"'}function u(e){this.parameters=Object.create(null),this.type=e}t.Q=function(e){if(!e)throw new TypeError("argument string is required");var t="object"===typeof e?function(e){var t;"function"===typeof e.getHeader?t=e.getHeader("content-type"):"object"===typeof e.headers&&(t=e.headers&&e.headers["content-type"]);if("string"!==typeof t)throw new TypeError("content-type header is missing from object");return t}(e):e;if("string"!==typeof t)throw new TypeError("argument string is required to be a string");var n=t.indexOf(";"),i=-1!==n?t.slice(0,n).trim():t.trim();if(!s.test(i))throw new TypeError("invalid media type");var a=new u(i.toLowerCase());if(-1!==n){var l,c,f;for(r.lastIndex=n;c=r.exec(t);){if(c.index!==n)throw new TypeError("invalid parameter format");n+=c[0].length,l=c[1].toLowerCase(),34===(f=c[2]).charCodeAt(0)&&-1!==(f=f.slice(1,-1)).indexOf("\\")&&(f=f.replace(o,"$1")),a.parameters[l]=f}if(n!==t.length)throw new TypeError("invalid parameter format")}return a}},37260:function(e,t,r){r.d(t,{Q:function(){return R}});var n=r(22985),i=r(24552),o=r(59141),a=r(491),s=r(9684),l=new Map,u=function(e){return e.cloneNode(!0)},c=function(){return"file:"===window.location.protocol},f=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 new Error("Content type not found");var i=(0,s.Q)(t).type;if("image/svg+xml"!==i&&"text/plain"!==i)throw new Error("Invalid content type: ".concat(i))}if(4===n.readyState){if(404===n.status||null===n.responseXML)throw new Error(c()?"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||c()&&0===n.status))throw new Error("There was a problem injecting the SVG: "+n.status+" "+n.statusText);r(null,n)}}catch(o){if(n.abort(),!(o instanceof Error))throw o;r(o,n)}},n.open("GET",e),n.withCredentials=t,n.overrideMimeType&&n.overrideMimeType("text/xml"),n.send()},p={},d=function(e,t){p[e]=p[e]||[],p[e].push(t)},h=function(e,t,r){if(l.has(e)){var n=l.get(e);if(void 0===n)return void d(e,r);if(n instanceof SVGSVGElement)return void r(null,u(n))}l.set(e,void 0),d(e,r),f(e,t,(function(t,r){var n;t?l.set(e,t):(null===(n=r.responseXML)||void 0===n?void 0:n.documentElement)instanceof SVGSVGElement&&l.set(e,r.responseXML.documentElement),function(e){for(var t=function(t,r){setTimeout((function(){if(Array.isArray(p[e])){var r=l.get(e),n=p[e][t];r instanceof SVGSVGElement&&n(null,u(r)),r instanceof Error&&n(r),t===p[e].length-1&&delete p[e]}}),0)},r=0,n=p[e].length;r<n;r++)t(r)}(e)}))},v=function(e,t,r){f(e,t,(function(e,t){var n;e?r(e):(null===(n=t.responseXML)||void 0===n?void 0:n.documentElement)instanceof SVGSVGElement&&r(null,t.responseXML.documentElement)}))},m=0,g=[],w={},b="http://www.w3.org/1999/xlink",y=function(e,t,r,n,i,o,s){var l=e.getAttribute("data-src")||e.getAttribute("src");if(l){if(-1!==g.indexOf(e))return g.splice(g.indexOf(e),1),void(e=null);g.push(e),e.setAttribute("src",""),(n?h:v)(l,i,(function(n,i){if(!i)return g.splice(g.indexOf(e),1),e=null,void s(n);var u=e.getAttribute("id");u&&i.setAttribute("id",u);var c=e.getAttribute("title");c&&i.setAttribute("title",c);var f=e.getAttribute("width");f&&i.setAttribute("width",f);var p=e.getAttribute("height");p&&i.setAttribute("height",p);var d=Array.from(new Set((0,a.__spreadArray)((0,a.__spreadArray)((0,a.__spreadArray)([],(i.getAttribute("class")||"").split(" "),!0),["injected-svg"],!1),(e.getAttribute("class")||"").split(" "),!0))).join(" ").trim();i.setAttribute("class",d);var h=e.getAttribute("style");h&&i.setAttribute("style",h),i.setAttribute("data-src",l);var v=[].filter.call(e.attributes,(function(e){return/^data-\w[\w-]*$/.test(e.name)}));if(Array.prototype.forEach.call(v,(function(e){e.name&&e.value&&i.setAttribute(e.name,e.value)})),r){var y,E,A,S,x,C={clipPath:["clip-path"],"color-profile":["color-profile"],cursor:["cursor"],filter:["filter"],linearGradient:["fill","stroke"],marker:["marker","marker-start","marker-mid","marker-end"],mask:["mask"],path:[],pattern:["fill","stroke"],radialGradient:["fill","stroke"]};Object.keys(C).forEach((function(e){y=e,A=C[e];for(var t=function(e,t){var r;S=E[e].id,x=S+"-"+ ++m,Array.prototype.forEach.call(A,(function(e){for(var t=0,n=(r=i.querySelectorAll("["+e+'*="'+S+'"]')).length;t<n;t++){var o=r[t].getAttribute(e);o&&!o.match(new RegExp('url\\("?#'+S+'"?\\)'))||r[t].setAttribute(e,"url(#"+x+")")}}));for(var n=i.querySelectorAll("[*|href]"),o=[],a=0,s=n.length;a<s;a++){var l=n[a].getAttributeNS(b,"href");l&&l.toString()==="#"+E[e].id&&o.push(n[a])}for(var u=0,c=o.length;u<c;u++)o[u].setAttributeNS(b,"href","#"+x);E[e].id=x},r=0,n=(E=i.querySelectorAll(y+"[id]")).length;r<n;r++)t(r)}))}i.removeAttribute("xmlns:a");for(var R,k,I=i.querySelectorAll("script"),j=[],q=0,G=I.length;q<G;q++)(k=I[q].getAttribute("type"))&&"application/ecmascript"!==k&&"application/javascript"!==k&&"text/javascript"!==k||((R=I[q].innerText||I[q].textContent)&&j.push(R),i.removeChild(I[q]));if(j.length>0&&("always"===t||"once"===t&&!w[l])){for(var T=0,_=j.length;T<_;T++)new Function(j[T])(window);w[l]=!0}var V=i.querySelectorAll("style");if(Array.prototype.forEach.call(V,(function(e){e.textContent+=""})),i.setAttribute("xmlns","http://www.w3.org/2000/svg"),i.setAttribute("xmlns:xlink",b),o(i),!e.parentNode)return g.splice(g.indexOf(e),1),e=null,void s(new Error("Parent node is null"));e.parentNode.replaceChild(i,e),g.splice(g.indexOf(e),1),e=null,s(null,i)}))}else s(new Error("Invalid data-src or src attribute"))},E=r(7862),A=r(29901),S=["afterInjection","beforeInjection","desc","evalScripts","fallback","httpRequestWithCredentials","loading","renumerateIRIElements","src","title","useRequestCache","wrapper"],x="http://www.w3.org/2000/svg",C="http://www.w3.org/1999/xlink",R=function(e){function t(){for(var t,r=arguments.length,n=new Array(r),i=0;i<r;i++)n[i]=arguments[i];return(t=e.call.apply(e,[this].concat(n))||this).initialState={hasError:!1,isLoading:!0},t.state=t.initialState,t._isMounted=!1,t.reactWrapper=void 0,t.nonReactWrapper=void 0,t.refCallback=function(e){t.reactWrapper=e},t}(0,o.Z)(t,e);var r=t.prototype;return r.renderSVG=function(){var e,t=this;if(this.reactWrapper instanceof(e=this.reactWrapper,((null==e?void 0:e.ownerDocument)||document).defaultView||window).Node){var r,n,i=this.props,o=i.desc,a=i.evalScripts,s=i.httpRequestWithCredentials,l=i.renumerateIRIElements,u=i.src,c=i.title,f=i.useRequestCache,p=this.props.onError,d=this.props.beforeInjection,h=this.props.afterInjection,v=this.props.wrapper;"svg"===v?((r=document.createElementNS(x,v)).setAttribute("xmlns",x),r.setAttribute("xmlns:xlink",C),n=document.createElementNS(x,v)):(r=document.createElement(v),n=document.createElement(v)),r.appendChild(n),n.dataset.src=u,this.nonReactWrapper=this.reactWrapper.appendChild(r);var m=function(e){t.removeSVG(),t._isMounted?t.setState((function(){return{hasError:!0,isLoading:!1}}),(function(){p(e)})):p(e)};!function(e,t){var r=void 0===t?{}:t,n=r.afterAll,i=void 0===n?function(){}:n,o=r.afterEach,a=void 0===o?function(){}:o,s=r.beforeEach,l=void 0===s?function(){}:s,u=r.cacheRequests,c=void 0===u||u,f=r.evalScripts,p=void 0===f?"never":f,d=r.httpRequestWithCredentials,h=void 0!==d&&d,v=r.renumerateIRIElements,m=void 0===v||v;if(e&&"length"in e)for(var g=0,w=0,b=e.length;w<b;w++)y(e[w],p,m,c,h,l,(function(t,r){a(t,r),e&&"length"in e&&e.length===++g&&i(g)}));else e?y(e,p,m,c,h,l,(function(t,r){a(t,r),i(1),e=null})):i(0)}(n,{afterEach:function(e,r){e?m(e):t._isMounted&&t.setState((function(){return{isLoading:!1}}),(function(){try{h(r)}catch(e){m(e)}}))},beforeEach:function(e){if(e.setAttribute("role","img"),o){var t=e.querySelector(":scope > desc");t&&e.removeChild(t);var r=document.createElement("desc");r.innerHTML=o,e.prepend(r)}if(c){var n=e.querySelector(":scope > title");n&&e.removeChild(n);var i=document.createElement("title");i.innerHTML=c,e.prepend(i)}try{d(e)}catch(a){m(a)}},cacheRequests:f,evalScripts:a,httpRequestWithCredentials:s,renumerateIRIElements:l})}},r.removeSVG=function(){var e;null!=(e=this.nonReactWrapper)&&e.parentNode&&(this.nonReactWrapper.parentNode.removeChild(this.nonReactWrapper),this.nonReactWrapper=null)},r.componentDidMount=function(){this._isMounted=!0,this.renderSVG()},r.componentDidUpdate=function(e){var t=this;(function(e,t){for(var r in e)if(!(r in t))return!0;for(var n in t)if(e[n]!==t[n])return!0;return!1})((0,i.Z)({},e),this.props)&&this.setState((function(){return t.initialState}),(function(){t.removeSVG(),t.renderSVG()}))},r.componentWillUnmount=function(){this._isMounted=!1,this.removeSVG()},r.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,S),s=o;return A.createElement(s,(0,i.Z)({},a,{ref:this.refCallback},"svg"===o?{xmlns:x,xmlnsXlink:C}:{}),this.state.isLoading&&r&&A.createElement(r,null),this.state.hasError&&t&&A.createElement(t,null))},t}(A.Component);R.defaultProps={afterInjection:function(){},beforeInjection:function(){},desc:"",evalScripts:"never",fallback:null,httpRequestWithCredentials:!1,loading:null,onError:function(){},renumerateIRIElements:!0,title:"",useRequestCache:!0,wrapper:"div"},R.propTypes={afterInjection:E.func,beforeInjection:E.func,desc:E.string,evalScripts:E.oneOf(["always","once","never"]),fallback:E.oneOfType([E.func,E.object,E.string]),httpRequestWithCredentials:E.bool,loading:E.oneOfType([E.func,E.object,E.string]),onError:E.func,renumerateIRIElements:E.bool,src:E.string.isRequired,title:E.string,useRequestCache:E.bool,wrapper:E.oneOf(["div","span","svg"])}}}]);