@ukpc-lib/react 0.1.7 → 0.1.8
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.
- package/dist/components/GlobalMenu/index.d.ts +1 -1
- package/dist/components/index.cjs +4 -4
- package/dist/components/index.js +739 -739
- package/dist/{index-60dc34b2.js → interceptor.const-3d8c3adc.js} +11 -1
- package/dist/{index-e55ba232.cjs → interceptor.const-abe41a95.cjs} +2 -2
- package/dist/share/index.cjs +23 -23
- package/dist/share/index.js +108 -113
- package/package.json +1 -1
- package/web-components-bundle/global-menu/index.cjs +8 -8
- package/web-components-bundle/global-menu/index.js +815 -813
- /package/dist/{index.css → interceptor.css} +0 -0
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import "./
|
|
1
|
+
import "./interceptor.css";
|
|
2
2
|
import * as El from "react";
|
|
3
3
|
import Ae, { createContext as Lu, forwardRef as Bu, useRef as Ma, useEffect as Ml, useState as Fl, useLayoutEffect as Zs, useSyncExternalStore as ju, isValidElement as Oa, cloneElement as Hs } from "react";
|
|
4
4
|
import { createPortal as Uu } from "react-dom";
|
|
@@ -11590,9 +11590,17 @@ const Ks = {
|
|
|
11590
11590
|
color: Da.textPrimary
|
|
11591
11591
|
}
|
|
11592
11592
|
});
|
|
11593
|
+
}, Kc = {
|
|
11594
|
+
TOKEN_MALFORMED: "token_malformed",
|
|
11595
|
+
TOKEN_EXPIRED: "token_expired"
|
|
11596
|
+
}, qc = (m) => {
|
|
11597
|
+
window.location.href = `${m}/authentication/login?callbackUrl=${window.location.href}`;
|
|
11598
|
+
}, ef = (m) => {
|
|
11599
|
+
window.location.href = `${m}/authentication/logout?callbackUrl=${window.location.href}`;
|
|
11593
11600
|
};
|
|
11594
11601
|
export {
|
|
11595
11602
|
Gc as C,
|
|
11603
|
+
Kc as E,
|
|
11596
11604
|
xr as P,
|
|
11597
11605
|
Xc as Q,
|
|
11598
11606
|
Iu as R,
|
|
@@ -11601,6 +11609,8 @@ export {
|
|
|
11601
11609
|
Qc as b,
|
|
11602
11610
|
fc as c,
|
|
11603
11611
|
Vn as d,
|
|
11612
|
+
qc as e,
|
|
11604
11613
|
Wu as g,
|
|
11614
|
+
ef as l,
|
|
11605
11615
|
Jc as p
|
|
11606
11616
|
};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
var
|
|
1
|
+
var Hc=require("./interceptor.css");const ce=require("react"),_u=require("react-dom"),Ht=require("react/jsx-runtime");function Fu(m){const v=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(m){for(const k in m)if(k!=="default"){const C=Object.getOwnPropertyDescriptor(m,k);Object.defineProperty(v,k,C.get?C:{enumerable:!0,get:()=>m[k]})}}return v.default=m,Object.freeze(v)}const kl=Fu(ce);function vu(m){return m&&m.__esModule&&Object.prototype.hasOwnProperty.call(m,"default")?m.default:m}var _o={};/**
|
|
2
2
|
* @license React
|
|
3
3
|
* react-dom-server-legacy.browser.production.min.js
|
|
4
4
|
*
|
|
@@ -126,4 +126,4 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
126
126
|
* content-type
|
|
127
127
|
* Copyright(c) 2015 Douglas Christopher Wilson
|
|
128
128
|
* MIT Licensed
|
|
129
|
-
*/var lu=/; *([!#$%&'*+.^_`|~0-9A-Za-z-]+) *= *("(?:[\u000b\u0020\u0021\u0023-\u005b\u005d-\u007e\u0080-\u00ff]|\\[\u000b\u0020-\u00ff])*"|[!#$%&'*+.^_`|~0-9A-Za-z-]+) */g,ac=/\\([\u000b\u0020-\u00ff])/g,ic=/^[!#$%&'*+.^_`|~0-9A-Za-z-]+\/[!#$%&'*+.^_`|~0-9A-Za-z-]+$/,lc=sc;function sc(m){if(!m)throw new TypeError("argument string is required");var v=typeof m=="object"?uc(m):m;if(typeof v!="string")throw new TypeError("argument string is required to be a string");var k=v.indexOf(";"),C=k!==-1?v.slice(0,k).trim():v.trim();if(!ic.test(C))throw new TypeError("invalid media type");var u=new cc(C.toLowerCase());if(k!==-1){var _,U,z;for(lu.lastIndex=k;U=lu.exec(v);){if(U.index!==k)throw new TypeError("invalid parameter format");k+=U[0].length,_=U[1].toLowerCase(),z=U[2],z.charCodeAt(0)===34&&(z=z.slice(1,-1),z.indexOf("\\")!==-1&&(z=z.replace(ac,"$1"))),u.parameters[_]=z}if(k!==v.length)throw new TypeError("invalid parameter format")}return u}function uc(m){var v;if(typeof m.getHeader=="function"?v=m.getHeader("content-type"):typeof m.headers=="object"&&(v=m.headers&&m.headers["content-type"]),typeof v!="string")throw new TypeError("content-type header is missing from object");return v}function cc(m){this.parameters=Object.create(null),this.type=m}var Fa=new Map,xu=function(v){return v.cloneNode(!0)},su=function(){return window.location.protocol==="file:"},ku=function(v,k,C){var u=new XMLHttpRequest;u.onreadystatechange=function(){try{if(!/\.svg/i.test(v)&&u.readyState===2){var _=u.getResponseHeader("Content-Type");if(!_)throw new Error("Content type not found");var U=lc(_).type;if(!(U==="image/svg+xml"||U==="text/plain"))throw new Error("Invalid content type: ".concat(U))}if(u.readyState===4){if(u.status===404||u.responseXML===null)throw new Error(su()?"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: "+v);if(u.status===200||su()&&u.status===0)C(null,u);else throw new Error("There was a problem injecting the SVG: "+u.status+" "+u.statusText)}}catch(z){if(u.abort(),z instanceof Error)C(z,u);else throw z}},u.open("GET",v),u.withCredentials=k,u.overrideMimeType&&u.overrideMimeType("text/xml"),u.send()},Vn={},uu=function(v,k){Vn[v]=Vn[v]||[],Vn[v].push(k)},fc=function(v){for(var k=function(U,z){setTimeout(function(){if(Array.isArray(Vn[v])){var T=Fa.get(v),P=Vn[v][U];T instanceof SVGSVGElement&&P(null,xu(T)),T instanceof Error&&P(T),U===Vn[v].length-1&&delete Vn[v]}},0)},C=0,u=Vn[v].length;C<u;C++)k(C)},dc=function(v,k,C){if(Fa.has(v)){var u=Fa.get(v);if(u===void 0){uu(v,C);return}if(u instanceof SVGSVGElement){C(null,xu(u));return}}Fa.set(v,void 0),uu(v,C),ku(v,k,function(_,U){var z;_?Fa.set(v,_):((z=U.responseXML)===null||z===void 0?void 0:z.documentElement)instanceof SVGSVGElement&&Fa.set(v,U.responseXML.documentElement),fc(v)})},pc=function(v,k,C){ku(v,k,function(u,_){var U;u?C(u):((U=_.responseXML)===null||U===void 0?void 0:U.documentElement)instanceof SVGSVGElement&&C(null,_.responseXML.documentElement)})},hc=0,vc=function(){return++hc},Wr=[],cu={},gc="http://www.w3.org/2000/svg",Ms="http://www.w3.org/1999/xlink",fu=function(v,k,C,u,_,U,z){var T=v.getAttribute("data-src")||v.getAttribute("src");if(!T){z(new Error("Invalid data-src or src attribute"));return}if(Wr.indexOf(v)!==-1){Wr.splice(Wr.indexOf(v),1),v=null;return}Wr.push(v),v.setAttribute("src","");var P=u?dc:pc;P(T,_,function(K,F){if(!F){Wr.splice(Wr.indexOf(v),1),v=null,z(K);return}var J=v.getAttribute("id");J&&F.setAttribute("id",J);var ye=v.getAttribute("title");ye&&F.setAttribute("title",ye);var te=v.getAttribute("width");te&&F.setAttribute("width",te);var q=v.getAttribute("height");q&&F.setAttribute("height",q);var L=Array.from(new Set(Ds(Ds(Ds([],(F.getAttribute("class")||"").split(" "),!0),["injected-svg"],!1),(v.getAttribute("class")||"").split(" "),!0))).join(" ").trim();F.setAttribute("class",L);var I=v.getAttribute("style");I&&F.setAttribute("style",I),F.setAttribute("data-src",T);var Q=[].filter.call(v.attributes,function(Ie){return/^data-\w[\w-]*$/.test(Ie.name)});if(Array.prototype.forEach.call(Q,function(Ie){Ie.name&&Ie.value&&F.setAttribute(Ie.name,Ie.value)}),C){var Y={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"]},ee,H,ve,ne,ue;Object.keys(Y).forEach(function(Ie){ee=Ie,ve=Y[Ie],H=F.querySelectorAll(ee+"[id]");for(var Ue=function(de,fe){ne=H[de].id,ue=ne+"-"+vc();var ie;Array.prototype.forEach.call(ve,function(Fe){ie=F.querySelectorAll("["+Fe+'*="'+ne+'"]');for(var Ne=0,mt=ie.length;Ne<mt;Ne++){var Pt=ie[Ne].getAttribute(Fe);Pt&&!Pt.match(new RegExp('url\\("?#'+ne+'"?\\)'))||ie[Ne].setAttribute(Fe,"url(#"+ue+")")}});for(var oe=F.querySelectorAll("[*|href]"),me=[],we=0,xe=oe.length;we<xe;we++){var ke=oe[we].getAttributeNS(Ms,"href");ke&&ke.toString()==="#"+H[de].id&&me.push(oe[we])}for(var Ae=0,re=me.length;Ae<re;Ae++)me[Ae].setAttributeNS(Ms,"href","#"+ue);H[de].id=ue},V=0,G=H.length;V<G;V++)Ue(V)})}F.removeAttribute("xmlns:a");for(var se=F.querySelectorAll("script"),Pe=[],_e,Re,Be=0,Le=se.length;Be<Le;Be++)Re=se[Be].getAttribute("type"),(!Re||Re==="application/ecmascript"||Re==="application/javascript"||Re==="text/javascript")&&(_e=se[Be].innerText||se[Be].textContent,_e&&Pe.push(_e),F.removeChild(se[Be]));if(Pe.length>0&&(k==="always"||k==="once"&&!cu[T])){for(var qe=0,Ge=Pe.length;qe<Ge;qe++)new Function(Pe[qe])(window);cu[T]=!0}var $e=F.querySelectorAll("style");if(Array.prototype.forEach.call($e,function(Ie){Ie.textContent+=""}),F.setAttribute("xmlns",gc),F.setAttribute("xmlns:xlink",Ms),U(F),!v.parentNode){Wr.splice(Wr.indexOf(v),1),v=null,z(new Error("Parent node is null"));return}v.parentNode.replaceChild(F,v),Wr.splice(Wr.indexOf(v),1),v=null,z(null,F)})},mc=function(v,k){var C=k===void 0?{}:k,u=C.afterAll,_=u===void 0?function(){}:u,U=C.afterEach,z=U===void 0?function(){}:U,T=C.beforeEach,P=T===void 0?function(){}:T,K=C.cacheRequests,F=K===void 0?!0:K,J=C.evalScripts,ye=J===void 0?"never":J,te=C.httpRequestWithCredentials,q=te===void 0?!1:te,L=C.renumerateIRIElements,I=L===void 0?!0:L;if(v&&"length"in v)for(var Q=0,Y=0,ee=v.length;Y<ee;Y++)fu(v[Y],ye,I,F,q,P,function(H,ve){z(H,ve),v&&"length"in v&&v.length===++Q&&_(Q)});else v?fu(v,ye,I,F,q,P,function(H,ve){z(H,ve),_(1),v=null}):_(0)},yc=function(v){var k=(v==null?void 0:v.ownerDocument)||document;return k.defaultView||window},Sc=function(v,k){for(var C in v)if(!(C in k))return!0;for(var u in k)if(v[u]!==k[u])return!0;return!1},bc=["afterInjection","beforeInjection","desc","evalScripts","fallback","httpRequestWithCredentials","loading","renumerateIRIElements","src","title","useRequestCache","wrapper"],Rl="http://www.w3.org/2000/svg",du="http://www.w3.org/1999/xlink",Vs=function(m){oc(v,m);function v(){for(var C,u=arguments.length,_=new Array(u),U=0;U<u;U++)_[U]=arguments[U];return C=m.call.apply(m,[this].concat(_))||this,C.initialState={hasError:!1,isLoading:!0},C.state=C.initialState,C._isMounted=!1,C.reactWrapper=void 0,C.nonReactWrapper=void 0,C.refCallback=function(z){C.reactWrapper=z},C}var k=v.prototype;return k.renderSVG=function(){var u=this;if(this.reactWrapper instanceof yc(this.reactWrapper).Node){var _=this.props,U=_.desc,z=_.evalScripts,T=_.httpRequestWithCredentials,P=_.renumerateIRIElements,K=_.src,F=_.title,J=_.useRequestCache,ye=this.props.onError,te=this.props.beforeInjection,q=this.props.afterInjection,L=this.props.wrapper,I,Q;L==="svg"?(I=document.createElementNS(Rl,L),I.setAttribute("xmlns",Rl),I.setAttribute("xmlns:xlink",du),Q=document.createElementNS(Rl,L)):(I=document.createElement(L),Q=document.createElement(L)),I.appendChild(Q),Q.dataset.src=K,this.nonReactWrapper=this.reactWrapper.appendChild(I);var Y=function(ne){if(u.removeSVG(),!u._isMounted){ye(ne);return}u.setState(function(){return{hasError:!0,isLoading:!1}},function(){ye(ne)})},ee=function(ne,ue){if(ne){Y(ne);return}u._isMounted&&u.setState(function(){return{isLoading:!1}},function(){try{q(ue)}catch(se){Y(se)}})},H=function(ne){if(ne.setAttribute("role","img"),U){var ue=ne.querySelector(":scope > desc");ue&&ne.removeChild(ue);var se=document.createElement("desc");se.innerHTML=U,ne.prepend(se)}if(F){var Pe=ne.querySelector(":scope > title");Pe&&ne.removeChild(Pe);var _e=document.createElement("title");_e.innerHTML=F,ne.prepend(_e)}try{te(ne)}catch(Re){Y(Re)}};mc(Q,{afterEach:ee,beforeEach:H,cacheRequests:J,evalScripts:z,httpRequestWithCredentials:T,renumerateIRIElements:P})}},k.removeSVG=function(){var u;(u=this.nonReactWrapper)!=null&&u.parentNode&&(this.nonReactWrapper.parentNode.removeChild(this.nonReactWrapper),this.nonReactWrapper=null)},k.componentDidMount=function(){this._isMounted=!0,this.renderSVG()},k.componentDidUpdate=function(u){var _=this;Sc(Fi({},u),this.props)&&this.setState(function(){return _.initialState},function(){_.removeSVG(),_.renderSVG()})},k.componentWillUnmount=function(){this._isMounted=!1,this.removeSVG()},k.render=function(){var u=this.props;u.afterInjection,u.beforeInjection,u.desc,u.evalScripts;var _=u.fallback;u.httpRequestWithCredentials;var U=u.loading;u.renumerateIRIElements,u.src,u.title,u.useRequestCache;var z=u.wrapper,T=wu(u,bc),P=z;return kl.createElement(P,Fi({},T,{ref:this.refCallback},z==="svg"?{xmlns:Rl,xmlnsXlink:du}:{}),this.state.isLoading&&U&&kl.createElement(U,null),this.state.hasError&&_&&kl.createElement(_,null))},v}(kl.Component);Vs.defaultProps={afterInjection:function(){},beforeInjection:function(){},desc:"",evalScripts:"never",fallback:null,httpRequestWithCredentials:!1,loading:null,onError:function(){},renumerateIRIElements:!0,title:"",useRequestCache:!0,wrapper:"div"};Vs.propTypes={afterInjection:at.func,beforeInjection:at.func,desc:at.string,evalScripts:at.oneOf(["always","once","never"]),fallback:at.oneOfType([at.func,at.object,at.string]),httpRequestWithCredentials:at.bool,loading:at.oneOfType([at.func,at.object,at.string]),onError:at.func,renumerateIRIElements:at.bool,src:at.string.isRequired,title:at.string,useRequestCache:at.bool,wrapper:at.oneOf(["div","span","svg"])};function Eu(m){var v,k,C="";if(typeof m=="string"||typeof m=="number")C+=m;else if(typeof m=="object")if(Array.isArray(m)){var u=m.length;for(v=0;v<u;v++)m[v]&&(k=Eu(m[v]))&&(C&&(C+=" "),C+=k)}else for(k in m)m[k]&&(C&&(C+=" "),C+=k);return C}function yn(){for(var m,v,k=0,C="",u=arguments.length;k<u;k++)(m=arguments[k])&&(v=Eu(m))&&(C&&(C+=" "),C+=v);return C}const Oi=m=>typeof m=="number"&&!isNaN(m),Oo=m=>typeof m=="string",Zt=m=>typeof m=="function",Al=m=>Oo(m)||Zt(m)?m:null,Hs=m=>ce.isValidElement(m)||Oo(m)||Zt(m)||Oi(m);function wc(m,v,k){k===void 0&&(k=300);const{scrollHeight:C,style:u}=m;requestAnimationFrame(()=>{u.minHeight="initial",u.height=C+"px",u.transition=`all ${k}ms`,requestAnimationFrame(()=>{u.height="0",u.padding="0",u.margin="0",setTimeout(v,k)})})}function Fl(m){let{enter:v,exit:k,appendPosition:C=!1,collapse:u=!0,collapseDuration:_=300}=m;return function(U){let{children:z,position:T,preventExitTransition:P,done:K,nodeRef:F,isIn:J,playToast:ye}=U;const te=C?`${v}--${T}`:v,q=C?`${k}--${T}`:k,L=ce.useRef(0);return ce.useLayoutEffect(()=>{const I=F.current,Q=te.split(" "),Y=ee=>{ee.target===F.current&&(ye(),I.removeEventListener("animationend",Y),I.removeEventListener("animationcancel",Y),L.current===0&&ee.type!=="animationcancel"&&I.classList.remove(...Q))};I.classList.add(...Q),I.addEventListener("animationend",Y),I.addEventListener("animationcancel",Y)},[]),ce.useEffect(()=>{const I=F.current,Q=()=>{I.removeEventListener("animationend",Q),u?wc(I,K,_):K()};J||(P?Q():(L.current=1,I.className+=` ${q}`,I.addEventListener("animationend",Q)))},[J]),ce.createElement(ce.Fragment,null,z)}}function pu(m,v){return m!=null?{content:m.content,containerId:m.props.containerId,id:m.props.toastId,theme:m.props.theme,type:m.props.type,data:m.props.data||{},isLoading:m.props.isLoading,icon:m.props.icon,status:v}:{}}const It=new Map;let Di=[];const $s=new Set,xc=m=>$s.forEach(v=>v(m)),Tu=()=>It.size>0;function Cu(m,v){var k;if(v)return!((k=It.get(v))==null||!k.isToastActive(m));let C=!1;return It.forEach(u=>{u.isToastActive(m)&&(C=!0)}),C}function Ru(m,v){Hs(m)&&(Tu()||Di.push({content:m,options:v}),It.forEach(k=>{k.buildToast(m,v)}))}function hu(m,v){It.forEach(k=>{v!=null&&v!=null&&v.containerId?(v==null?void 0:v.containerId)===k.id&&k.toggle(m,v==null?void 0:v.id):k.toggle(m,v==null?void 0:v.id)})}function kc(m){const{subscribe:v,getSnapshot:k,setProps:C}=ce.useRef(function(_){const U=_.containerId||1;return{subscribe(z){const T=function(K,F,J){let ye=1,te=0,q=[],L=[],I=[],Q=F;const Y=new Map,ee=new Set,H=()=>{I=Array.from(Y.values()),ee.forEach(ue=>ue())},ve=ue=>{L=ue==null?[]:L.filter(se=>se!==ue),H()},ne=ue=>{const{toastId:se,onOpen:Pe,updateId:_e,children:Re}=ue.props,Be=_e==null;ue.staleId&&Y.delete(ue.staleId),Y.set(se,ue),L=[...L,ue.props.toastId].filter(Le=>Le!==ue.staleId),H(),J(pu(ue,Be?"added":"updated")),Be&&Zt(Pe)&&Pe(ce.isValidElement(Re)&&Re.props)};return{id:K,props:Q,observe:ue=>(ee.add(ue),()=>ee.delete(ue)),toggle:(ue,se)=>{Y.forEach(Pe=>{se!=null&&se!==Pe.props.toastId||Zt(Pe.toggle)&&Pe.toggle(ue)})},removeToast:ve,toasts:Y,clearQueue:()=>{te-=q.length,q=[]},buildToast:(ue,se)=>{if((ae=>{let{containerId:de,toastId:fe,updateId:ie}=ae;const oe=de?de!==K:K!==1,me=Y.has(fe)&&ie==null;return oe||me})(se))return;const{toastId:Pe,updateId:_e,data:Re,staleId:Be,delay:Le}=se,qe=()=>{ve(Pe)},Ge=_e==null;Ge&&te++;const $e={...Q,style:Q.toastStyle,key:ye++,...Object.fromEntries(Object.entries(se).filter(ae=>{let[de,fe]=ae;return fe!=null})),toastId:Pe,updateId:_e,data:Re,closeToast:qe,isIn:!1,className:Al(se.className||Q.toastClassName),bodyClassName:Al(se.bodyClassName||Q.bodyClassName),progressClassName:Al(se.progressClassName||Q.progressClassName),autoClose:!se.isLoading&&(Ie=se.autoClose,Ue=Q.autoClose,Ie===!1||Oi(Ie)&&Ie>0?Ie:Ue),deleteToast(){const ae=Y.get(Pe),{onClose:de,children:fe}=ae.props;Zt(de)&&de(ce.isValidElement(fe)&&fe.props),J(pu(ae,"removed")),Y.delete(Pe),te--,te<0&&(te=0),q.length>0?ne(q.shift()):H()}};var Ie,Ue;$e.closeButton=Q.closeButton,se.closeButton===!1||Hs(se.closeButton)?$e.closeButton=se.closeButton:se.closeButton===!0&&($e.closeButton=!Hs(Q.closeButton)||Q.closeButton);let V=ue;ce.isValidElement(ue)&&!Oo(ue.type)?V=ce.cloneElement(ue,{closeToast:qe,toastProps:$e,data:Re}):Zt(ue)&&(V=ue({closeToast:qe,toastProps:$e,data:Re}));const G={content:V,props:$e,staleId:Be};Q.limit&&Q.limit>0&&te>Q.limit&&Ge?q.push(G):Oi(Le)?setTimeout(()=>{ne(G)},Le):ne(G)},setProps(ue){Q=ue},setToggle:(ue,se)=>{Y.get(ue).toggle=se},isToastActive:ue=>L.some(se=>se===ue),getSnapshot:()=>Q.newestOnTop?I.reverse():I}}(U,_,xc);It.set(U,T);const P=T.observe(z);return Di.forEach(K=>Ru(K.content,K.options)),Di=[],()=>{P(),It.delete(U)}},setProps(z){var T;(T=It.get(U))==null||T.setProps(z)},getSnapshot(){var z;return(z=It.get(U))==null?void 0:z.getSnapshot()}}}(m)).current;C(m);const u=ce.useSyncExternalStore(v,k,k);return{getToastToRender:function(_){if(!u)return[];const U=new Map;return u.forEach(z=>{const{position:T}=z.props;U.has(T)||U.set(T,[]),U.get(T).push(z)}),Array.from(U,z=>_(z[0],z[1]))},isToastActive:Cu,count:u==null?void 0:u.length}}function Ec(m){const[v,k]=ce.useState(!1),[C,u]=ce.useState(!1),_=ce.useRef(null),U=ce.useRef({start:0,delta:0,removalDistance:0,canCloseOnClick:!0,canDrag:!1,didMove:!1}).current,{autoClose:z,pauseOnHover:T,closeToast:P,onClick:K,closeOnClick:F}=m;var J,ye;function te(){k(!0)}function q(){k(!1)}function L(Y){const ee=_.current;U.canDrag&&ee&&(U.didMove=!0,v&&q(),U.delta=m.draggableDirection==="x"?Y.clientX-U.start:Y.clientY-U.start,U.start!==Y.clientX&&(U.canCloseOnClick=!1),ee.style.transform=`translate3d(${m.draggableDirection==="x"?`${U.delta}px, var(--y)`:`0, calc(${U.delta}px + var(--y))`},0)`,ee.style.opacity=""+(1-Math.abs(U.delta/U.removalDistance)))}function I(){document.removeEventListener("pointermove",L),document.removeEventListener("pointerup",I);const Y=_.current;if(U.canDrag&&U.didMove&&Y){if(U.canDrag=!1,Math.abs(U.delta)>U.removalDistance)return u(!0),m.closeToast(),void m.collapseAll();Y.style.transition="transform 0.2s, opacity 0.2s",Y.style.removeProperty("transform"),Y.style.removeProperty("opacity")}}(ye=It.get((J={id:m.toastId,containerId:m.containerId,fn:k}).containerId||1))==null||ye.setToggle(J.id,J.fn),ce.useEffect(()=>{if(m.pauseOnFocusLoss)return document.hasFocus()||q(),window.addEventListener("focus",te),window.addEventListener("blur",q),()=>{window.removeEventListener("focus",te),window.removeEventListener("blur",q)}},[m.pauseOnFocusLoss]);const Q={onPointerDown:function(Y){if(m.draggable===!0||m.draggable===Y.pointerType){U.didMove=!1,document.addEventListener("pointermove",L),document.addEventListener("pointerup",I);const ee=_.current;U.canCloseOnClick=!0,U.canDrag=!0,ee.style.transition="none",m.draggableDirection==="x"?(U.start=Y.clientX,U.removalDistance=ee.offsetWidth*(m.draggablePercent/100)):(U.start=Y.clientY,U.removalDistance=ee.offsetHeight*(m.draggablePercent===80?1.5*m.draggablePercent:m.draggablePercent)/100)}},onPointerUp:function(Y){const{top:ee,bottom:H,left:ve,right:ne}=_.current.getBoundingClientRect();Y.nativeEvent.type!=="touchend"&&m.pauseOnHover&&Y.clientX>=ve&&Y.clientX<=ne&&Y.clientY>=ee&&Y.clientY<=H?q():te()}};return z&&T&&(Q.onMouseEnter=q,m.stacked||(Q.onMouseLeave=te)),F&&(Q.onClick=Y=>{K&&K(Y),U.canCloseOnClick&&P()}),{playToast:te,pauseToast:q,isRunning:v,preventExitTransition:C,toastRef:_,eventHandlers:Q}}function Tc(m){let{delay:v,isRunning:k,closeToast:C,type:u="default",hide:_,className:U,style:z,controlledProgress:T,progress:P,rtl:K,isIn:F,theme:J}=m;const ye=_||T&&P===0,te={...z,animationDuration:`${v}ms`,animationPlayState:k?"running":"paused"};T&&(te.transform=`scaleX(${P})`);const q=yn("Toastify__progress-bar",T?"Toastify__progress-bar--controlled":"Toastify__progress-bar--animated",`Toastify__progress-bar-theme--${J}`,`Toastify__progress-bar--${u}`,{"Toastify__progress-bar--rtl":K}),L=Zt(U)?U({rtl:K,type:u,defaultClassName:q}):yn(q,U),I={[T&&P>=1?"onTransitionEnd":"onAnimationEnd"]:T&&P<1?null:()=>{F&&C()}};return ce.createElement("div",{className:"Toastify__progress-bar--wrp","data-hidden":ye},ce.createElement("div",{className:`Toastify__progress-bar--bg Toastify__progress-bar-theme--${J} Toastify__progress-bar--${u}`}),ce.createElement("div",{role:"progressbar","aria-hidden":ye?"true":"false","aria-label":"notification timer",className:L,style:te,...I}))}let Cc=1;const Iu=()=>""+Cc++;function Rc(m){return m&&(Oo(m.toastId)||Oi(m.toastId))?m.toastId:Iu()}function _i(m,v){return Ru(m,v),v.toastId}function _l(m,v){return{...v,type:v&&v.type||m,toastId:Rc(v)}}function Il(m){return(v,k)=>_i(v,_l(m,k))}function Ye(m,v){return _i(m,_l("default",v))}Ye.loading=(m,v)=>_i(m,_l("default",{isLoading:!0,autoClose:!1,closeOnClick:!1,closeButton:!1,draggable:!1,...v})),Ye.promise=function(m,v,k){let C,{pending:u,error:_,success:U}=v;u&&(C=Oo(u)?Ye.loading(u,k):Ye.loading(u.render,{...k,...u}));const z={isLoading:null,autoClose:null,closeOnClick:null,closeButton:null,draggable:null},T=(K,F,J)=>{if(F==null)return void Ye.dismiss(C);const ye={type:K,...z,...k,data:J},te=Oo(F)?{render:F}:F;return C?Ye.update(C,{...ye,...te}):Ye(te.render,{...ye,...te}),J},P=Zt(m)?m():m;return P.then(K=>T("success",U,K)).catch(K=>T("error",_,K)),P},Ye.success=Il("success"),Ye.info=Il("info"),Ye.error=Il("error"),Ye.warning=Il("warning"),Ye.warn=Ye.warning,Ye.dark=(m,v)=>_i(m,_l("default",{theme:"dark",...v})),Ye.dismiss=function(m){(function(v){var k;if(Tu()){if(v==null||Oo(k=v)||Oi(k))It.forEach(u=>{u.removeToast(v)});else if(v&&("containerId"in v||"id"in v)){var C;(C=It.get(v.containerId))!=null&&C.removeToast(v.id)||It.forEach(u=>{u.removeToast(v.id)})}}else Di=Di.filter(u=>v!=null&&u.options.toastId!==v)})(m)},Ye.clearWaitingQueue=function(m){m===void 0&&(m={}),It.forEach(v=>{!v.props.limit||m.containerId&&v.id!==m.containerId||v.clearQueue()})},Ye.isActive=Cu,Ye.update=function(m,v){v===void 0&&(v={});const k=((C,u)=>{var _;let{containerId:U}=u;return(_=It.get(U||1))==null?void 0:_.toasts.get(C)})(m,v);if(k){const{props:C,content:u}=k,_={delay:100,...C,...v,toastId:v.toastId||m,updateId:Iu()};_.toastId!==m&&(_.staleId=m);const U=_.render||u;delete _.render,_i(U,_)}},Ye.done=m=>{Ye.update(m,{progress:1})},Ye.onChange=function(m){return $s.add(m),()=>{$s.delete(m)}},Ye.play=m=>hu(!0,m),Ye.pause=m=>hu(!1,m);const Ic=typeof window<"u"?ce.useLayoutEffect:ce.useEffect,Pl=m=>{let{theme:v,type:k,isLoading:C,...u}=m;return ce.createElement("svg",{viewBox:"0 0 24 24",width:"100%",height:"100%",fill:v==="colored"?"currentColor":`var(--toastify-icon-color-${k})`,...u})},Ls={info:function(m){return ce.createElement(Pl,{...m},ce.createElement("path",{d:"M12 0a12 12 0 1012 12A12.013 12.013 0 0012 0zm.25 5a1.5 1.5 0 11-1.5 1.5 1.5 1.5 0 011.5-1.5zm2.25 13.5h-4a1 1 0 010-2h.75a.25.25 0 00.25-.25v-4.5a.25.25 0 00-.25-.25h-.75a1 1 0 010-2h1a2 2 0 012 2v4.75a.25.25 0 00.25.25h.75a1 1 0 110 2z"}))},warning:function(m){return ce.createElement(Pl,{...m},ce.createElement("path",{d:"M23.32 17.191L15.438 2.184C14.728.833 13.416 0 11.996 0c-1.42 0-2.733.833-3.443 2.184L.533 17.448a4.744 4.744 0 000 4.368C1.243 23.167 2.555 24 3.975 24h16.05C22.22 24 24 22.044 24 19.632c0-.904-.251-1.746-.68-2.44zm-9.622 1.46c0 1.033-.724 1.823-1.698 1.823s-1.698-.79-1.698-1.822v-.043c0-1.028.724-1.822 1.698-1.822s1.698.79 1.698 1.822v.043zm.039-12.285l-.84 8.06c-.057.581-.408.943-.897.943-.49 0-.84-.367-.896-.942l-.84-8.065c-.057-.624.25-1.095.779-1.095h1.91c.528.005.84.476.784 1.1z"}))},success:function(m){return ce.createElement(Pl,{...m},ce.createElement("path",{d:"M12 0a12 12 0 1012 12A12.014 12.014 0 0012 0zm6.927 8.2l-6.845 9.289a1.011 1.011 0 01-1.43.188l-4.888-3.908a1 1 0 111.25-1.562l4.076 3.261 6.227-8.451a1 1 0 111.61 1.183z"}))},error:function(m){return ce.createElement(Pl,{...m},ce.createElement("path",{d:"M11.983 0a12.206 12.206 0 00-8.51 3.653A11.8 11.8 0 000 12.207 11.779 11.779 0 0011.8 24h.214A12.111 12.111 0 0024 11.791 11.766 11.766 0 0011.983 0zM10.5 16.542a1.476 1.476 0 011.449-1.53h.027a1.527 1.527 0 011.523 1.47 1.475 1.475 0 01-1.449 1.53h-.027a1.529 1.529 0 01-1.523-1.47zM11 12.5v-6a1 1 0 012 0v6a1 1 0 11-2 0z"}))},spinner:function(){return ce.createElement("div",{className:"Toastify__spinner"})}},Pc=m=>{const{isRunning:v,preventExitTransition:k,toastRef:C,eventHandlers:u,playToast:_}=Ec(m),{closeButton:U,children:z,autoClose:T,onClick:P,type:K,hideProgressBar:F,closeToast:J,transition:ye,position:te,className:q,style:L,bodyClassName:I,bodyStyle:Q,progressClassName:Y,progressStyle:ee,updateId:H,role:ve,progress:ne,rtl:ue,toastId:se,deleteToast:Pe,isIn:_e,isLoading:Re,closeOnClick:Be,theme:Le}=m,qe=yn("Toastify__toast",`Toastify__toast-theme--${Le}`,`Toastify__toast--${K}`,{"Toastify__toast--rtl":ue},{"Toastify__toast--close-on-click":Be}),Ge=Zt(q)?q({rtl:ue,position:te,type:K,defaultClassName:qe}):yn(qe,q),$e=function(G){let{theme:ae,type:de,isLoading:fe,icon:ie}=G,oe=null;const me={theme:ae,type:de};return ie===!1||(Zt(ie)?oe=ie({...me,isLoading:fe}):ce.isValidElement(ie)?oe=ce.cloneElement(ie,me):fe?oe=Ls.spinner():(we=>we in Ls)(de)&&(oe=Ls[de](me))),oe}(m),Ie=!!ne||!T,Ue={closeToast:J,type:K,theme:Le};let V=null;return U===!1||(V=Zt(U)?U(Ue):ce.isValidElement(U)?ce.cloneElement(U,Ue):function(G){let{closeToast:ae,theme:de,ariaLabel:fe="close"}=G;return ce.createElement("button",{className:`Toastify__close-button Toastify__close-button--${de}`,type:"button",onClick:ie=>{ie.stopPropagation(),ae(ie)},"aria-label":fe},ce.createElement("svg",{"aria-hidden":"true",viewBox:"0 0 14 16"},ce.createElement("path",{fillRule:"evenodd",d:"M7.71 8.23l3.75 3.75-1.48 1.48-3.75-3.75-3.75 3.75L1 11.98l3.75-3.75L1 4.48 2.48 3l3.75 3.75L9.98 3l1.48 1.48-3.75 3.75z"})))}(Ue)),ce.createElement(ye,{isIn:_e,done:Pe,position:te,preventExitTransition:k,nodeRef:C,playToast:_},ce.createElement("div",{id:se,onClick:P,"data-in":_e,className:Ge,...u,style:L,ref:C},ce.createElement("div",{..._e&&{role:ve},className:Zt(I)?I({type:K}):yn("Toastify__toast-body",I),style:Q},$e!=null&&ce.createElement("div",{className:yn("Toastify__toast-icon",{"Toastify--animate-icon Toastify__zoom-enter":!Re})},$e),ce.createElement("div",null,z)),V,ce.createElement(Tc,{...H&&!Ie?{key:`pb-${H}`}:{},rtl:ue,theme:Le,delay:T,isRunning:v,isIn:_e,closeToast:J,hide:F,type:K,style:ee,className:Y,controlledProgress:Ie,progress:ne||0})))},Ol=function(m,v){return v===void 0&&(v=!1),{enter:`Toastify--animate Toastify__${m}-enter`,exit:`Toastify--animate Toastify__${m}-exit`,appendPosition:v}},Ac=Fl(Ol("bounce",!0));Fl(Ol("slide",!0));Fl(Ol("zoom"));Fl(Ol("flip"));const _c={position:"top-right",transition:Ac,autoClose:5e3,closeButton:!0,pauseOnHover:!0,pauseOnFocusLoss:!0,draggable:"touch",draggablePercent:80,draggableDirection:"x",role:"alert",theme:"light"};function Fc(m){let v={..._c,...m};const k=m.stacked,[C,u]=ce.useState(!0),_=ce.useRef(null),{getToastToRender:U,isToastActive:z,count:T}=kc(v),{className:P,style:K,rtl:F,containerId:J}=v;function ye(q){const L=yn("Toastify__toast-container",`Toastify__toast-container--${q}`,{"Toastify__toast-container--rtl":F});return Zt(P)?P({position:q,rtl:F,defaultClassName:L}):yn(L,Al(P))}function te(){k&&(u(!0),Ye.play())}return Ic(()=>{if(k){var q;const L=_.current.querySelectorAll('[data-in="true"]'),I=12,Q=(q=v.position)==null?void 0:q.includes("top");let Y=0,ee=0;Array.from(L).reverse().forEach((H,ve)=>{const ne=H;ne.classList.add("Toastify__toast--stacked"),ve>0&&(ne.dataset.collapsed=`${C}`),ne.dataset.pos||(ne.dataset.pos=Q?"top":"bot");const ue=Y*(C?.2:1)+(C?0:I*ve);ne.style.setProperty("--y",`${Q?ue:-1*ue}px`),ne.style.setProperty("--g",`${I}`),ne.style.setProperty("--s",""+(1-(C?ee:0))),Y+=ne.offsetHeight,ee+=.025})}},[C,T,k]),ce.createElement("div",{ref:_,className:"Toastify",id:J,onMouseEnter:()=>{k&&(u(!1),Ye.pause())},onMouseLeave:te},U((q,L)=>{const I=L.length?{...K}:{...K,pointerEvents:"none"};return ce.createElement("div",{className:ye(q),style:I,key:`container-${q}`},L.map(Q=>{let{content:Y,props:ee}=Q;return ce.createElement(Pc,{...ee,stacked:k,collapseAll:te,isIn:z(ee.toastId,ee.containerId),style:ee.style,key:`toast-${ee.key}`},Y)}))}))}const Oa={primary:"#93D500",secondary:"#007BFF",textPrimary:"#000000",textSecondary:"#101010",priText:"#009D4F",lightPrimary:"#E8F5E9",darkPrimary:"#2E7D32",lightSecondary:"#E8F5E9",darkSecondary:"#339790",danger:"#E01B00",darkDanger:"#BE1700",warning:"#FFB600",success:"#009D4F",error:"#E9645B",successChip:"#F4FBE5",errorChip:"#E01B001A",warningChip:"#FFB8001A",secondaryChip:"#E5F2FF",appBarColor:"#000000",white:"#FFFFFF",grey100:"#FAFAFA",grey200:"#EEEEEE",grey300:"#DDDDDD",grey400:"#C5C5C5",grey600:"#85858A",gold100:"#FFFBE6",gold200:"#FFF1B8",gold300:"#FFE58F",gold600:"#FAAD14",gold700:"#D48806",outlinedButton:"#009D4F",containedButtonString:"#000000",pink:"#E81F76"};function Oc(){return Ht.jsxs("svg",{width:"22",height:"22",viewBox:"0 0 22 22",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[Ht.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M11 1C16.5222 1 21 5.47676 21 11C21 16.5222 16.5222 21 11 21C5.47676 21 1 16.5222 1 11C1 5.47676 5.47676 1 11 1Z",stroke:"#E01B00",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"}),Ht.jsx("path",{d:"M10.9942 6.89636V11.6737",stroke:"#E01B00",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"}),Ht.jsx("path",{d:"M10.9941 15.1038H11.0049",stroke:"#E01B00",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})]})}function Dc(){return Ht.jsxs("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[Ht.jsx("rect",{width:"24",height:"24",rx:"12",fill:"#009D4F"}),Ht.jsx("path",{d:"M7.25244 12L10.4174 15.165L16.7474 8.83496",stroke:"white",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})]})}function Mc(){return Ht.jsxs("svg",{width:"22",height:"22",viewBox:"0 0 22 22",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[Ht.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M11 1C16.5222 1 21 5.47676 21 11C21 16.5222 16.5222 21 11 21C5.47676 21 1 16.5222 1 11C1 5.47676 5.47676 1 11 1Z",stroke:"#faad14",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"}),Ht.jsx("path",{d:"M10.9942 6.89636V11.6737",stroke:"#faad14",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"}),Ht.jsx("path",{d:"M10.9941 15.1038H11.0049",stroke:"#faad14",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})]})}const Ys={paddingLeft:"16px",borderLeft:"2px solid",boxShadow:"none",fontFamily:"inherit"},Lc=m=>{Ye.success(m,{icon:Ht.jsx(Dc,{}),bodyStyle:{},position:"bottom-right",style:{...Ys,background:Oa.lightPrimary,borderColor:Oa.success,color:Oa.success}})},jc=m=>{Ye.error(m,{icon:Ht.jsx(Oc,{}),position:"bottom-right",style:{...Ys,background:"#F7E4E1",borderColor:Oa.danger,color:Oa.danger}})},Bc=m=>{Ye.error(m,{icon:Ht.jsx(Mc,{}),position:"bottom-right",style:{...Ys,background:"#FFF1B8",borderColor:"#faad14",color:Oa.textPrimary}})};exports.C=nc;exports.PropTypes=fr;exports.Q=Fc;exports.ReactSVG=Vs;exports._extends=Fi;exports._objectWithoutPropertiesLoose=wu;exports.clsx=yn;exports.getDefaultExportFromCjs=vu;exports.pushError=jc;exports.pushSuccess=Lc;exports.pushWarning=Bc;
|
|
129
|
+
*/var lu=/; *([!#$%&'*+.^_`|~0-9A-Za-z-]+) *= *("(?:[\u000b\u0020\u0021\u0023-\u005b\u005d-\u007e\u0080-\u00ff]|\\[\u000b\u0020-\u00ff])*"|[!#$%&'*+.^_`|~0-9A-Za-z-]+) */g,ac=/\\([\u000b\u0020-\u00ff])/g,ic=/^[!#$%&'*+.^_`|~0-9A-Za-z-]+\/[!#$%&'*+.^_`|~0-9A-Za-z-]+$/,lc=sc;function sc(m){if(!m)throw new TypeError("argument string is required");var v=typeof m=="object"?uc(m):m;if(typeof v!="string")throw new TypeError("argument string is required to be a string");var k=v.indexOf(";"),C=k!==-1?v.slice(0,k).trim():v.trim();if(!ic.test(C))throw new TypeError("invalid media type");var u=new cc(C.toLowerCase());if(k!==-1){var _,U,z;for(lu.lastIndex=k;U=lu.exec(v);){if(U.index!==k)throw new TypeError("invalid parameter format");k+=U[0].length,_=U[1].toLowerCase(),z=U[2],z.charCodeAt(0)===34&&(z=z.slice(1,-1),z.indexOf("\\")!==-1&&(z=z.replace(ac,"$1"))),u.parameters[_]=z}if(k!==v.length)throw new TypeError("invalid parameter format")}return u}function uc(m){var v;if(typeof m.getHeader=="function"?v=m.getHeader("content-type"):typeof m.headers=="object"&&(v=m.headers&&m.headers["content-type"]),typeof v!="string")throw new TypeError("content-type header is missing from object");return v}function cc(m){this.parameters=Object.create(null),this.type=m}var Fa=new Map,xu=function(v){return v.cloneNode(!0)},su=function(){return window.location.protocol==="file:"},ku=function(v,k,C){var u=new XMLHttpRequest;u.onreadystatechange=function(){try{if(!/\.svg/i.test(v)&&u.readyState===2){var _=u.getResponseHeader("Content-Type");if(!_)throw new Error("Content type not found");var U=lc(_).type;if(!(U==="image/svg+xml"||U==="text/plain"))throw new Error("Invalid content type: ".concat(U))}if(u.readyState===4){if(u.status===404||u.responseXML===null)throw new Error(su()?"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: "+v);if(u.status===200||su()&&u.status===0)C(null,u);else throw new Error("There was a problem injecting the SVG: "+u.status+" "+u.statusText)}}catch(z){if(u.abort(),z instanceof Error)C(z,u);else throw z}},u.open("GET",v),u.withCredentials=k,u.overrideMimeType&&u.overrideMimeType("text/xml"),u.send()},Vn={},uu=function(v,k){Vn[v]=Vn[v]||[],Vn[v].push(k)},fc=function(v){for(var k=function(U,z){setTimeout(function(){if(Array.isArray(Vn[v])){var T=Fa.get(v),P=Vn[v][U];T instanceof SVGSVGElement&&P(null,xu(T)),T instanceof Error&&P(T),U===Vn[v].length-1&&delete Vn[v]}},0)},C=0,u=Vn[v].length;C<u;C++)k(C)},dc=function(v,k,C){if(Fa.has(v)){var u=Fa.get(v);if(u===void 0){uu(v,C);return}if(u instanceof SVGSVGElement){C(null,xu(u));return}}Fa.set(v,void 0),uu(v,C),ku(v,k,function(_,U){var z;_?Fa.set(v,_):((z=U.responseXML)===null||z===void 0?void 0:z.documentElement)instanceof SVGSVGElement&&Fa.set(v,U.responseXML.documentElement),fc(v)})},pc=function(v,k,C){ku(v,k,function(u,_){var U;u?C(u):((U=_.responseXML)===null||U===void 0?void 0:U.documentElement)instanceof SVGSVGElement&&C(null,_.responseXML.documentElement)})},hc=0,vc=function(){return++hc},Wr=[],cu={},gc="http://www.w3.org/2000/svg",Ms="http://www.w3.org/1999/xlink",fu=function(v,k,C,u,_,U,z){var T=v.getAttribute("data-src")||v.getAttribute("src");if(!T){z(new Error("Invalid data-src or src attribute"));return}if(Wr.indexOf(v)!==-1){Wr.splice(Wr.indexOf(v),1),v=null;return}Wr.push(v),v.setAttribute("src","");var P=u?dc:pc;P(T,_,function(K,F){if(!F){Wr.splice(Wr.indexOf(v),1),v=null,z(K);return}var J=v.getAttribute("id");J&&F.setAttribute("id",J);var ye=v.getAttribute("title");ye&&F.setAttribute("title",ye);var te=v.getAttribute("width");te&&F.setAttribute("width",te);var q=v.getAttribute("height");q&&F.setAttribute("height",q);var L=Array.from(new Set(Ds(Ds(Ds([],(F.getAttribute("class")||"").split(" "),!0),["injected-svg"],!1),(v.getAttribute("class")||"").split(" "),!0))).join(" ").trim();F.setAttribute("class",L);var I=v.getAttribute("style");I&&F.setAttribute("style",I),F.setAttribute("data-src",T);var Q=[].filter.call(v.attributes,function(Ie){return/^data-\w[\w-]*$/.test(Ie.name)});if(Array.prototype.forEach.call(Q,function(Ie){Ie.name&&Ie.value&&F.setAttribute(Ie.name,Ie.value)}),C){var Y={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"]},ee,H,ve,ne,ue;Object.keys(Y).forEach(function(Ie){ee=Ie,ve=Y[Ie],H=F.querySelectorAll(ee+"[id]");for(var Ue=function(de,fe){ne=H[de].id,ue=ne+"-"+vc();var ie;Array.prototype.forEach.call(ve,function(Fe){ie=F.querySelectorAll("["+Fe+'*="'+ne+'"]');for(var Ne=0,mt=ie.length;Ne<mt;Ne++){var Pt=ie[Ne].getAttribute(Fe);Pt&&!Pt.match(new RegExp('url\\("?#'+ne+'"?\\)'))||ie[Ne].setAttribute(Fe,"url(#"+ue+")")}});for(var oe=F.querySelectorAll("[*|href]"),me=[],we=0,xe=oe.length;we<xe;we++){var ke=oe[we].getAttributeNS(Ms,"href");ke&&ke.toString()==="#"+H[de].id&&me.push(oe[we])}for(var Ae=0,re=me.length;Ae<re;Ae++)me[Ae].setAttributeNS(Ms,"href","#"+ue);H[de].id=ue},V=0,G=H.length;V<G;V++)Ue(V)})}F.removeAttribute("xmlns:a");for(var se=F.querySelectorAll("script"),Pe=[],_e,Re,Be=0,Le=se.length;Be<Le;Be++)Re=se[Be].getAttribute("type"),(!Re||Re==="application/ecmascript"||Re==="application/javascript"||Re==="text/javascript")&&(_e=se[Be].innerText||se[Be].textContent,_e&&Pe.push(_e),F.removeChild(se[Be]));if(Pe.length>0&&(k==="always"||k==="once"&&!cu[T])){for(var qe=0,Ge=Pe.length;qe<Ge;qe++)new Function(Pe[qe])(window);cu[T]=!0}var $e=F.querySelectorAll("style");if(Array.prototype.forEach.call($e,function(Ie){Ie.textContent+=""}),F.setAttribute("xmlns",gc),F.setAttribute("xmlns:xlink",Ms),U(F),!v.parentNode){Wr.splice(Wr.indexOf(v),1),v=null,z(new Error("Parent node is null"));return}v.parentNode.replaceChild(F,v),Wr.splice(Wr.indexOf(v),1),v=null,z(null,F)})},mc=function(v,k){var C=k===void 0?{}:k,u=C.afterAll,_=u===void 0?function(){}:u,U=C.afterEach,z=U===void 0?function(){}:U,T=C.beforeEach,P=T===void 0?function(){}:T,K=C.cacheRequests,F=K===void 0?!0:K,J=C.evalScripts,ye=J===void 0?"never":J,te=C.httpRequestWithCredentials,q=te===void 0?!1:te,L=C.renumerateIRIElements,I=L===void 0?!0:L;if(v&&"length"in v)for(var Q=0,Y=0,ee=v.length;Y<ee;Y++)fu(v[Y],ye,I,F,q,P,function(H,ve){z(H,ve),v&&"length"in v&&v.length===++Q&&_(Q)});else v?fu(v,ye,I,F,q,P,function(H,ve){z(H,ve),_(1),v=null}):_(0)},yc=function(v){var k=(v==null?void 0:v.ownerDocument)||document;return k.defaultView||window},Sc=function(v,k){for(var C in v)if(!(C in k))return!0;for(var u in k)if(v[u]!==k[u])return!0;return!1},bc=["afterInjection","beforeInjection","desc","evalScripts","fallback","httpRequestWithCredentials","loading","renumerateIRIElements","src","title","useRequestCache","wrapper"],Rl="http://www.w3.org/2000/svg",du="http://www.w3.org/1999/xlink",Vs=function(m){oc(v,m);function v(){for(var C,u=arguments.length,_=new Array(u),U=0;U<u;U++)_[U]=arguments[U];return C=m.call.apply(m,[this].concat(_))||this,C.initialState={hasError:!1,isLoading:!0},C.state=C.initialState,C._isMounted=!1,C.reactWrapper=void 0,C.nonReactWrapper=void 0,C.refCallback=function(z){C.reactWrapper=z},C}var k=v.prototype;return k.renderSVG=function(){var u=this;if(this.reactWrapper instanceof yc(this.reactWrapper).Node){var _=this.props,U=_.desc,z=_.evalScripts,T=_.httpRequestWithCredentials,P=_.renumerateIRIElements,K=_.src,F=_.title,J=_.useRequestCache,ye=this.props.onError,te=this.props.beforeInjection,q=this.props.afterInjection,L=this.props.wrapper,I,Q;L==="svg"?(I=document.createElementNS(Rl,L),I.setAttribute("xmlns",Rl),I.setAttribute("xmlns:xlink",du),Q=document.createElementNS(Rl,L)):(I=document.createElement(L),Q=document.createElement(L)),I.appendChild(Q),Q.dataset.src=K,this.nonReactWrapper=this.reactWrapper.appendChild(I);var Y=function(ne){if(u.removeSVG(),!u._isMounted){ye(ne);return}u.setState(function(){return{hasError:!0,isLoading:!1}},function(){ye(ne)})},ee=function(ne,ue){if(ne){Y(ne);return}u._isMounted&&u.setState(function(){return{isLoading:!1}},function(){try{q(ue)}catch(se){Y(se)}})},H=function(ne){if(ne.setAttribute("role","img"),U){var ue=ne.querySelector(":scope > desc");ue&&ne.removeChild(ue);var se=document.createElement("desc");se.innerHTML=U,ne.prepend(se)}if(F){var Pe=ne.querySelector(":scope > title");Pe&&ne.removeChild(Pe);var _e=document.createElement("title");_e.innerHTML=F,ne.prepend(_e)}try{te(ne)}catch(Re){Y(Re)}};mc(Q,{afterEach:ee,beforeEach:H,cacheRequests:J,evalScripts:z,httpRequestWithCredentials:T,renumerateIRIElements:P})}},k.removeSVG=function(){var u;(u=this.nonReactWrapper)!=null&&u.parentNode&&(this.nonReactWrapper.parentNode.removeChild(this.nonReactWrapper),this.nonReactWrapper=null)},k.componentDidMount=function(){this._isMounted=!0,this.renderSVG()},k.componentDidUpdate=function(u){var _=this;Sc(Fi({},u),this.props)&&this.setState(function(){return _.initialState},function(){_.removeSVG(),_.renderSVG()})},k.componentWillUnmount=function(){this._isMounted=!1,this.removeSVG()},k.render=function(){var u=this.props;u.afterInjection,u.beforeInjection,u.desc,u.evalScripts;var _=u.fallback;u.httpRequestWithCredentials;var U=u.loading;u.renumerateIRIElements,u.src,u.title,u.useRequestCache;var z=u.wrapper,T=wu(u,bc),P=z;return kl.createElement(P,Fi({},T,{ref:this.refCallback},z==="svg"?{xmlns:Rl,xmlnsXlink:du}:{}),this.state.isLoading&&U&&kl.createElement(U,null),this.state.hasError&&_&&kl.createElement(_,null))},v}(kl.Component);Vs.defaultProps={afterInjection:function(){},beforeInjection:function(){},desc:"",evalScripts:"never",fallback:null,httpRequestWithCredentials:!1,loading:null,onError:function(){},renumerateIRIElements:!0,title:"",useRequestCache:!0,wrapper:"div"};Vs.propTypes={afterInjection:at.func,beforeInjection:at.func,desc:at.string,evalScripts:at.oneOf(["always","once","never"]),fallback:at.oneOfType([at.func,at.object,at.string]),httpRequestWithCredentials:at.bool,loading:at.oneOfType([at.func,at.object,at.string]),onError:at.func,renumerateIRIElements:at.bool,src:at.string.isRequired,title:at.string,useRequestCache:at.bool,wrapper:at.oneOf(["div","span","svg"])};function Eu(m){var v,k,C="";if(typeof m=="string"||typeof m=="number")C+=m;else if(typeof m=="object")if(Array.isArray(m)){var u=m.length;for(v=0;v<u;v++)m[v]&&(k=Eu(m[v]))&&(C&&(C+=" "),C+=k)}else for(k in m)m[k]&&(C&&(C+=" "),C+=k);return C}function yn(){for(var m,v,k=0,C="",u=arguments.length;k<u;k++)(m=arguments[k])&&(v=Eu(m))&&(C&&(C+=" "),C+=v);return C}const Oi=m=>typeof m=="number"&&!isNaN(m),Oo=m=>typeof m=="string",Zt=m=>typeof m=="function",Al=m=>Oo(m)||Zt(m)?m:null,Hs=m=>ce.isValidElement(m)||Oo(m)||Zt(m)||Oi(m);function wc(m,v,k){k===void 0&&(k=300);const{scrollHeight:C,style:u}=m;requestAnimationFrame(()=>{u.minHeight="initial",u.height=C+"px",u.transition=`all ${k}ms`,requestAnimationFrame(()=>{u.height="0",u.padding="0",u.margin="0",setTimeout(v,k)})})}function Fl(m){let{enter:v,exit:k,appendPosition:C=!1,collapse:u=!0,collapseDuration:_=300}=m;return function(U){let{children:z,position:T,preventExitTransition:P,done:K,nodeRef:F,isIn:J,playToast:ye}=U;const te=C?`${v}--${T}`:v,q=C?`${k}--${T}`:k,L=ce.useRef(0);return ce.useLayoutEffect(()=>{const I=F.current,Q=te.split(" "),Y=ee=>{ee.target===F.current&&(ye(),I.removeEventListener("animationend",Y),I.removeEventListener("animationcancel",Y),L.current===0&&ee.type!=="animationcancel"&&I.classList.remove(...Q))};I.classList.add(...Q),I.addEventListener("animationend",Y),I.addEventListener("animationcancel",Y)},[]),ce.useEffect(()=>{const I=F.current,Q=()=>{I.removeEventListener("animationend",Q),u?wc(I,K,_):K()};J||(P?Q():(L.current=1,I.className+=` ${q}`,I.addEventListener("animationend",Q)))},[J]),ce.createElement(ce.Fragment,null,z)}}function pu(m,v){return m!=null?{content:m.content,containerId:m.props.containerId,id:m.props.toastId,theme:m.props.theme,type:m.props.type,data:m.props.data||{},isLoading:m.props.isLoading,icon:m.props.icon,status:v}:{}}const It=new Map;let Di=[];const $s=new Set,xc=m=>$s.forEach(v=>v(m)),Tu=()=>It.size>0;function Cu(m,v){var k;if(v)return!((k=It.get(v))==null||!k.isToastActive(m));let C=!1;return It.forEach(u=>{u.isToastActive(m)&&(C=!0)}),C}function Ru(m,v){Hs(m)&&(Tu()||Di.push({content:m,options:v}),It.forEach(k=>{k.buildToast(m,v)}))}function hu(m,v){It.forEach(k=>{v!=null&&v!=null&&v.containerId?(v==null?void 0:v.containerId)===k.id&&k.toggle(m,v==null?void 0:v.id):k.toggle(m,v==null?void 0:v.id)})}function kc(m){const{subscribe:v,getSnapshot:k,setProps:C}=ce.useRef(function(_){const U=_.containerId||1;return{subscribe(z){const T=function(K,F,J){let ye=1,te=0,q=[],L=[],I=[],Q=F;const Y=new Map,ee=new Set,H=()=>{I=Array.from(Y.values()),ee.forEach(ue=>ue())},ve=ue=>{L=ue==null?[]:L.filter(se=>se!==ue),H()},ne=ue=>{const{toastId:se,onOpen:Pe,updateId:_e,children:Re}=ue.props,Be=_e==null;ue.staleId&&Y.delete(ue.staleId),Y.set(se,ue),L=[...L,ue.props.toastId].filter(Le=>Le!==ue.staleId),H(),J(pu(ue,Be?"added":"updated")),Be&&Zt(Pe)&&Pe(ce.isValidElement(Re)&&Re.props)};return{id:K,props:Q,observe:ue=>(ee.add(ue),()=>ee.delete(ue)),toggle:(ue,se)=>{Y.forEach(Pe=>{se!=null&&se!==Pe.props.toastId||Zt(Pe.toggle)&&Pe.toggle(ue)})},removeToast:ve,toasts:Y,clearQueue:()=>{te-=q.length,q=[]},buildToast:(ue,se)=>{if((ae=>{let{containerId:de,toastId:fe,updateId:ie}=ae;const oe=de?de!==K:K!==1,me=Y.has(fe)&&ie==null;return oe||me})(se))return;const{toastId:Pe,updateId:_e,data:Re,staleId:Be,delay:Le}=se,qe=()=>{ve(Pe)},Ge=_e==null;Ge&&te++;const $e={...Q,style:Q.toastStyle,key:ye++,...Object.fromEntries(Object.entries(se).filter(ae=>{let[de,fe]=ae;return fe!=null})),toastId:Pe,updateId:_e,data:Re,closeToast:qe,isIn:!1,className:Al(se.className||Q.toastClassName),bodyClassName:Al(se.bodyClassName||Q.bodyClassName),progressClassName:Al(se.progressClassName||Q.progressClassName),autoClose:!se.isLoading&&(Ie=se.autoClose,Ue=Q.autoClose,Ie===!1||Oi(Ie)&&Ie>0?Ie:Ue),deleteToast(){const ae=Y.get(Pe),{onClose:de,children:fe}=ae.props;Zt(de)&&de(ce.isValidElement(fe)&&fe.props),J(pu(ae,"removed")),Y.delete(Pe),te--,te<0&&(te=0),q.length>0?ne(q.shift()):H()}};var Ie,Ue;$e.closeButton=Q.closeButton,se.closeButton===!1||Hs(se.closeButton)?$e.closeButton=se.closeButton:se.closeButton===!0&&($e.closeButton=!Hs(Q.closeButton)||Q.closeButton);let V=ue;ce.isValidElement(ue)&&!Oo(ue.type)?V=ce.cloneElement(ue,{closeToast:qe,toastProps:$e,data:Re}):Zt(ue)&&(V=ue({closeToast:qe,toastProps:$e,data:Re}));const G={content:V,props:$e,staleId:Be};Q.limit&&Q.limit>0&&te>Q.limit&&Ge?q.push(G):Oi(Le)?setTimeout(()=>{ne(G)},Le):ne(G)},setProps(ue){Q=ue},setToggle:(ue,se)=>{Y.get(ue).toggle=se},isToastActive:ue=>L.some(se=>se===ue),getSnapshot:()=>Q.newestOnTop?I.reverse():I}}(U,_,xc);It.set(U,T);const P=T.observe(z);return Di.forEach(K=>Ru(K.content,K.options)),Di=[],()=>{P(),It.delete(U)}},setProps(z){var T;(T=It.get(U))==null||T.setProps(z)},getSnapshot(){var z;return(z=It.get(U))==null?void 0:z.getSnapshot()}}}(m)).current;C(m);const u=ce.useSyncExternalStore(v,k,k);return{getToastToRender:function(_){if(!u)return[];const U=new Map;return u.forEach(z=>{const{position:T}=z.props;U.has(T)||U.set(T,[]),U.get(T).push(z)}),Array.from(U,z=>_(z[0],z[1]))},isToastActive:Cu,count:u==null?void 0:u.length}}function Ec(m){const[v,k]=ce.useState(!1),[C,u]=ce.useState(!1),_=ce.useRef(null),U=ce.useRef({start:0,delta:0,removalDistance:0,canCloseOnClick:!0,canDrag:!1,didMove:!1}).current,{autoClose:z,pauseOnHover:T,closeToast:P,onClick:K,closeOnClick:F}=m;var J,ye;function te(){k(!0)}function q(){k(!1)}function L(Y){const ee=_.current;U.canDrag&&ee&&(U.didMove=!0,v&&q(),U.delta=m.draggableDirection==="x"?Y.clientX-U.start:Y.clientY-U.start,U.start!==Y.clientX&&(U.canCloseOnClick=!1),ee.style.transform=`translate3d(${m.draggableDirection==="x"?`${U.delta}px, var(--y)`:`0, calc(${U.delta}px + var(--y))`},0)`,ee.style.opacity=""+(1-Math.abs(U.delta/U.removalDistance)))}function I(){document.removeEventListener("pointermove",L),document.removeEventListener("pointerup",I);const Y=_.current;if(U.canDrag&&U.didMove&&Y){if(U.canDrag=!1,Math.abs(U.delta)>U.removalDistance)return u(!0),m.closeToast(),void m.collapseAll();Y.style.transition="transform 0.2s, opacity 0.2s",Y.style.removeProperty("transform"),Y.style.removeProperty("opacity")}}(ye=It.get((J={id:m.toastId,containerId:m.containerId,fn:k}).containerId||1))==null||ye.setToggle(J.id,J.fn),ce.useEffect(()=>{if(m.pauseOnFocusLoss)return document.hasFocus()||q(),window.addEventListener("focus",te),window.addEventListener("blur",q),()=>{window.removeEventListener("focus",te),window.removeEventListener("blur",q)}},[m.pauseOnFocusLoss]);const Q={onPointerDown:function(Y){if(m.draggable===!0||m.draggable===Y.pointerType){U.didMove=!1,document.addEventListener("pointermove",L),document.addEventListener("pointerup",I);const ee=_.current;U.canCloseOnClick=!0,U.canDrag=!0,ee.style.transition="none",m.draggableDirection==="x"?(U.start=Y.clientX,U.removalDistance=ee.offsetWidth*(m.draggablePercent/100)):(U.start=Y.clientY,U.removalDistance=ee.offsetHeight*(m.draggablePercent===80?1.5*m.draggablePercent:m.draggablePercent)/100)}},onPointerUp:function(Y){const{top:ee,bottom:H,left:ve,right:ne}=_.current.getBoundingClientRect();Y.nativeEvent.type!=="touchend"&&m.pauseOnHover&&Y.clientX>=ve&&Y.clientX<=ne&&Y.clientY>=ee&&Y.clientY<=H?q():te()}};return z&&T&&(Q.onMouseEnter=q,m.stacked||(Q.onMouseLeave=te)),F&&(Q.onClick=Y=>{K&&K(Y),U.canCloseOnClick&&P()}),{playToast:te,pauseToast:q,isRunning:v,preventExitTransition:C,toastRef:_,eventHandlers:Q}}function Tc(m){let{delay:v,isRunning:k,closeToast:C,type:u="default",hide:_,className:U,style:z,controlledProgress:T,progress:P,rtl:K,isIn:F,theme:J}=m;const ye=_||T&&P===0,te={...z,animationDuration:`${v}ms`,animationPlayState:k?"running":"paused"};T&&(te.transform=`scaleX(${P})`);const q=yn("Toastify__progress-bar",T?"Toastify__progress-bar--controlled":"Toastify__progress-bar--animated",`Toastify__progress-bar-theme--${J}`,`Toastify__progress-bar--${u}`,{"Toastify__progress-bar--rtl":K}),L=Zt(U)?U({rtl:K,type:u,defaultClassName:q}):yn(q,U),I={[T&&P>=1?"onTransitionEnd":"onAnimationEnd"]:T&&P<1?null:()=>{F&&C()}};return ce.createElement("div",{className:"Toastify__progress-bar--wrp","data-hidden":ye},ce.createElement("div",{className:`Toastify__progress-bar--bg Toastify__progress-bar-theme--${J} Toastify__progress-bar--${u}`}),ce.createElement("div",{role:"progressbar","aria-hidden":ye?"true":"false","aria-label":"notification timer",className:L,style:te,...I}))}let Cc=1;const Iu=()=>""+Cc++;function Rc(m){return m&&(Oo(m.toastId)||Oi(m.toastId))?m.toastId:Iu()}function _i(m,v){return Ru(m,v),v.toastId}function _l(m,v){return{...v,type:v&&v.type||m,toastId:Rc(v)}}function Il(m){return(v,k)=>_i(v,_l(m,k))}function Ye(m,v){return _i(m,_l("default",v))}Ye.loading=(m,v)=>_i(m,_l("default",{isLoading:!0,autoClose:!1,closeOnClick:!1,closeButton:!1,draggable:!1,...v})),Ye.promise=function(m,v,k){let C,{pending:u,error:_,success:U}=v;u&&(C=Oo(u)?Ye.loading(u,k):Ye.loading(u.render,{...k,...u}));const z={isLoading:null,autoClose:null,closeOnClick:null,closeButton:null,draggable:null},T=(K,F,J)=>{if(F==null)return void Ye.dismiss(C);const ye={type:K,...z,...k,data:J},te=Oo(F)?{render:F}:F;return C?Ye.update(C,{...ye,...te}):Ye(te.render,{...ye,...te}),J},P=Zt(m)?m():m;return P.then(K=>T("success",U,K)).catch(K=>T("error",_,K)),P},Ye.success=Il("success"),Ye.info=Il("info"),Ye.error=Il("error"),Ye.warning=Il("warning"),Ye.warn=Ye.warning,Ye.dark=(m,v)=>_i(m,_l("default",{theme:"dark",...v})),Ye.dismiss=function(m){(function(v){var k;if(Tu()){if(v==null||Oo(k=v)||Oi(k))It.forEach(u=>{u.removeToast(v)});else if(v&&("containerId"in v||"id"in v)){var C;(C=It.get(v.containerId))!=null&&C.removeToast(v.id)||It.forEach(u=>{u.removeToast(v.id)})}}else Di=Di.filter(u=>v!=null&&u.options.toastId!==v)})(m)},Ye.clearWaitingQueue=function(m){m===void 0&&(m={}),It.forEach(v=>{!v.props.limit||m.containerId&&v.id!==m.containerId||v.clearQueue()})},Ye.isActive=Cu,Ye.update=function(m,v){v===void 0&&(v={});const k=((C,u)=>{var _;let{containerId:U}=u;return(_=It.get(U||1))==null?void 0:_.toasts.get(C)})(m,v);if(k){const{props:C,content:u}=k,_={delay:100,...C,...v,toastId:v.toastId||m,updateId:Iu()};_.toastId!==m&&(_.staleId=m);const U=_.render||u;delete _.render,_i(U,_)}},Ye.done=m=>{Ye.update(m,{progress:1})},Ye.onChange=function(m){return $s.add(m),()=>{$s.delete(m)}},Ye.play=m=>hu(!0,m),Ye.pause=m=>hu(!1,m);const Ic=typeof window<"u"?ce.useLayoutEffect:ce.useEffect,Pl=m=>{let{theme:v,type:k,isLoading:C,...u}=m;return ce.createElement("svg",{viewBox:"0 0 24 24",width:"100%",height:"100%",fill:v==="colored"?"currentColor":`var(--toastify-icon-color-${k})`,...u})},Ls={info:function(m){return ce.createElement(Pl,{...m},ce.createElement("path",{d:"M12 0a12 12 0 1012 12A12.013 12.013 0 0012 0zm.25 5a1.5 1.5 0 11-1.5 1.5 1.5 1.5 0 011.5-1.5zm2.25 13.5h-4a1 1 0 010-2h.75a.25.25 0 00.25-.25v-4.5a.25.25 0 00-.25-.25h-.75a1 1 0 010-2h1a2 2 0 012 2v4.75a.25.25 0 00.25.25h.75a1 1 0 110 2z"}))},warning:function(m){return ce.createElement(Pl,{...m},ce.createElement("path",{d:"M23.32 17.191L15.438 2.184C14.728.833 13.416 0 11.996 0c-1.42 0-2.733.833-3.443 2.184L.533 17.448a4.744 4.744 0 000 4.368C1.243 23.167 2.555 24 3.975 24h16.05C22.22 24 24 22.044 24 19.632c0-.904-.251-1.746-.68-2.44zm-9.622 1.46c0 1.033-.724 1.823-1.698 1.823s-1.698-.79-1.698-1.822v-.043c0-1.028.724-1.822 1.698-1.822s1.698.79 1.698 1.822v.043zm.039-12.285l-.84 8.06c-.057.581-.408.943-.897.943-.49 0-.84-.367-.896-.942l-.84-8.065c-.057-.624.25-1.095.779-1.095h1.91c.528.005.84.476.784 1.1z"}))},success:function(m){return ce.createElement(Pl,{...m},ce.createElement("path",{d:"M12 0a12 12 0 1012 12A12.014 12.014 0 0012 0zm6.927 8.2l-6.845 9.289a1.011 1.011 0 01-1.43.188l-4.888-3.908a1 1 0 111.25-1.562l4.076 3.261 6.227-8.451a1 1 0 111.61 1.183z"}))},error:function(m){return ce.createElement(Pl,{...m},ce.createElement("path",{d:"M11.983 0a12.206 12.206 0 00-8.51 3.653A11.8 11.8 0 000 12.207 11.779 11.779 0 0011.8 24h.214A12.111 12.111 0 0024 11.791 11.766 11.766 0 0011.983 0zM10.5 16.542a1.476 1.476 0 011.449-1.53h.027a1.527 1.527 0 011.523 1.47 1.475 1.475 0 01-1.449 1.53h-.027a1.529 1.529 0 01-1.523-1.47zM11 12.5v-6a1 1 0 012 0v6a1 1 0 11-2 0z"}))},spinner:function(){return ce.createElement("div",{className:"Toastify__spinner"})}},Pc=m=>{const{isRunning:v,preventExitTransition:k,toastRef:C,eventHandlers:u,playToast:_}=Ec(m),{closeButton:U,children:z,autoClose:T,onClick:P,type:K,hideProgressBar:F,closeToast:J,transition:ye,position:te,className:q,style:L,bodyClassName:I,bodyStyle:Q,progressClassName:Y,progressStyle:ee,updateId:H,role:ve,progress:ne,rtl:ue,toastId:se,deleteToast:Pe,isIn:_e,isLoading:Re,closeOnClick:Be,theme:Le}=m,qe=yn("Toastify__toast",`Toastify__toast-theme--${Le}`,`Toastify__toast--${K}`,{"Toastify__toast--rtl":ue},{"Toastify__toast--close-on-click":Be}),Ge=Zt(q)?q({rtl:ue,position:te,type:K,defaultClassName:qe}):yn(qe,q),$e=function(G){let{theme:ae,type:de,isLoading:fe,icon:ie}=G,oe=null;const me={theme:ae,type:de};return ie===!1||(Zt(ie)?oe=ie({...me,isLoading:fe}):ce.isValidElement(ie)?oe=ce.cloneElement(ie,me):fe?oe=Ls.spinner():(we=>we in Ls)(de)&&(oe=Ls[de](me))),oe}(m),Ie=!!ne||!T,Ue={closeToast:J,type:K,theme:Le};let V=null;return U===!1||(V=Zt(U)?U(Ue):ce.isValidElement(U)?ce.cloneElement(U,Ue):function(G){let{closeToast:ae,theme:de,ariaLabel:fe="close"}=G;return ce.createElement("button",{className:`Toastify__close-button Toastify__close-button--${de}`,type:"button",onClick:ie=>{ie.stopPropagation(),ae(ie)},"aria-label":fe},ce.createElement("svg",{"aria-hidden":"true",viewBox:"0 0 14 16"},ce.createElement("path",{fillRule:"evenodd",d:"M7.71 8.23l3.75 3.75-1.48 1.48-3.75-3.75-3.75 3.75L1 11.98l3.75-3.75L1 4.48 2.48 3l3.75 3.75L9.98 3l1.48 1.48-3.75 3.75z"})))}(Ue)),ce.createElement(ye,{isIn:_e,done:Pe,position:te,preventExitTransition:k,nodeRef:C,playToast:_},ce.createElement("div",{id:se,onClick:P,"data-in":_e,className:Ge,...u,style:L,ref:C},ce.createElement("div",{..._e&&{role:ve},className:Zt(I)?I({type:K}):yn("Toastify__toast-body",I),style:Q},$e!=null&&ce.createElement("div",{className:yn("Toastify__toast-icon",{"Toastify--animate-icon Toastify__zoom-enter":!Re})},$e),ce.createElement("div",null,z)),V,ce.createElement(Tc,{...H&&!Ie?{key:`pb-${H}`}:{},rtl:ue,theme:Le,delay:T,isRunning:v,isIn:_e,closeToast:J,hide:F,type:K,style:ee,className:Y,controlledProgress:Ie,progress:ne||0})))},Ol=function(m,v){return v===void 0&&(v=!1),{enter:`Toastify--animate Toastify__${m}-enter`,exit:`Toastify--animate Toastify__${m}-exit`,appendPosition:v}},Ac=Fl(Ol("bounce",!0));Fl(Ol("slide",!0));Fl(Ol("zoom"));Fl(Ol("flip"));const _c={position:"top-right",transition:Ac,autoClose:5e3,closeButton:!0,pauseOnHover:!0,pauseOnFocusLoss:!0,draggable:"touch",draggablePercent:80,draggableDirection:"x",role:"alert",theme:"light"};function Fc(m){let v={..._c,...m};const k=m.stacked,[C,u]=ce.useState(!0),_=ce.useRef(null),{getToastToRender:U,isToastActive:z,count:T}=kc(v),{className:P,style:K,rtl:F,containerId:J}=v;function ye(q){const L=yn("Toastify__toast-container",`Toastify__toast-container--${q}`,{"Toastify__toast-container--rtl":F});return Zt(P)?P({position:q,rtl:F,defaultClassName:L}):yn(L,Al(P))}function te(){k&&(u(!0),Ye.play())}return Ic(()=>{if(k){var q;const L=_.current.querySelectorAll('[data-in="true"]'),I=12,Q=(q=v.position)==null?void 0:q.includes("top");let Y=0,ee=0;Array.from(L).reverse().forEach((H,ve)=>{const ne=H;ne.classList.add("Toastify__toast--stacked"),ve>0&&(ne.dataset.collapsed=`${C}`),ne.dataset.pos||(ne.dataset.pos=Q?"top":"bot");const ue=Y*(C?.2:1)+(C?0:I*ve);ne.style.setProperty("--y",`${Q?ue:-1*ue}px`),ne.style.setProperty("--g",`${I}`),ne.style.setProperty("--s",""+(1-(C?ee:0))),Y+=ne.offsetHeight,ee+=.025})}},[C,T,k]),ce.createElement("div",{ref:_,className:"Toastify",id:J,onMouseEnter:()=>{k&&(u(!1),Ye.pause())},onMouseLeave:te},U((q,L)=>{const I=L.length?{...K}:{...K,pointerEvents:"none"};return ce.createElement("div",{className:ye(q),style:I,key:`container-${q}`},L.map(Q=>{let{content:Y,props:ee}=Q;return ce.createElement(Pc,{...ee,stacked:k,collapseAll:te,isIn:z(ee.toastId,ee.containerId),style:ee.style,key:`toast-${ee.key}`},Y)}))}))}const Oa={primary:"#93D500",secondary:"#007BFF",textPrimary:"#000000",textSecondary:"#101010",priText:"#009D4F",lightPrimary:"#E8F5E9",darkPrimary:"#2E7D32",lightSecondary:"#E8F5E9",darkSecondary:"#339790",danger:"#E01B00",darkDanger:"#BE1700",warning:"#FFB600",success:"#009D4F",error:"#E9645B",successChip:"#F4FBE5",errorChip:"#E01B001A",warningChip:"#FFB8001A",secondaryChip:"#E5F2FF",appBarColor:"#000000",white:"#FFFFFF",grey100:"#FAFAFA",grey200:"#EEEEEE",grey300:"#DDDDDD",grey400:"#C5C5C5",grey600:"#85858A",gold100:"#FFFBE6",gold200:"#FFF1B8",gold300:"#FFE58F",gold600:"#FAAD14",gold700:"#D48806",outlinedButton:"#009D4F",containedButtonString:"#000000",pink:"#E81F76"};function Oc(){return Ht.jsxs("svg",{width:"22",height:"22",viewBox:"0 0 22 22",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[Ht.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M11 1C16.5222 1 21 5.47676 21 11C21 16.5222 16.5222 21 11 21C5.47676 21 1 16.5222 1 11C1 5.47676 5.47676 1 11 1Z",stroke:"#E01B00",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"}),Ht.jsx("path",{d:"M10.9942 6.89636V11.6737",stroke:"#E01B00",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"}),Ht.jsx("path",{d:"M10.9941 15.1038H11.0049",stroke:"#E01B00",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})]})}function Dc(){return Ht.jsxs("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[Ht.jsx("rect",{width:"24",height:"24",rx:"12",fill:"#009D4F"}),Ht.jsx("path",{d:"M7.25244 12L10.4174 15.165L16.7474 8.83496",stroke:"white",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})]})}function Mc(){return Ht.jsxs("svg",{width:"22",height:"22",viewBox:"0 0 22 22",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[Ht.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M11 1C16.5222 1 21 5.47676 21 11C21 16.5222 16.5222 21 11 21C5.47676 21 1 16.5222 1 11C1 5.47676 5.47676 1 11 1Z",stroke:"#faad14",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"}),Ht.jsx("path",{d:"M10.9942 6.89636V11.6737",stroke:"#faad14",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"}),Ht.jsx("path",{d:"M10.9941 15.1038H11.0049",stroke:"#faad14",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})]})}const Ys={paddingLeft:"16px",borderLeft:"2px solid",boxShadow:"none",fontFamily:"inherit"},Lc=m=>{Ye.success(m,{icon:Ht.jsx(Dc,{}),bodyStyle:{},position:"bottom-right",style:{...Ys,background:Oa.lightPrimary,borderColor:Oa.success,color:Oa.success}})},jc=m=>{Ye.error(m,{icon:Ht.jsx(Oc,{}),position:"bottom-right",style:{...Ys,background:"#F7E4E1",borderColor:Oa.danger,color:Oa.danger}})},Bc=m=>{Ye.error(m,{icon:Ht.jsx(Mc,{}),position:"bottom-right",style:{...Ys,background:"#FFF1B8",borderColor:"#faad14",color:Oa.textPrimary}})},Uc={TOKEN_MALFORMED:"token_malformed",TOKEN_EXPIRED:"token_expired"},Wc=m=>{window.location.href=`${m}/authentication/login?callbackUrl=${window.location.href}`},zc=m=>{window.location.href=`${m}/authentication/logout?callbackUrl=${window.location.href}`};exports.C=nc;exports.ERROR_MESSAGE=Uc;exports.PropTypes=fr;exports.Q=Fc;exports.ReactSVG=Vs;exports._extends=Fi;exports._objectWithoutPropertiesLoose=wu;exports.clsx=yn;exports.getDefaultExportFromCjs=vu;exports.login=Wc;exports.logout=zc;exports.pushError=jc;exports.pushSuccess=Lc;exports.pushWarning=Bc;
|