tocco-widget-bundle 0.1.63 → 0.1.64

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/sso-login.js CHANGED
@@ -56,4 +56,4 @@ object-assign
56
56
  * LICENSE file in the root directory of this source tree.
57
57
  */var n="function"==typeof Symbol&&Symbol.for,r=n?Symbol.for("react.element"):60103,o=n?Symbol.for("react.portal"):60106,i=n?Symbol.for("react.fragment"):60107,a=n?Symbol.for("react.strict_mode"):60108,s=n?Symbol.for("react.profiler"):60114,c=n?Symbol.for("react.provider"):60109,u=n?Symbol.for("react.context"):60110,l=n?Symbol.for("react.async_mode"):60111,f=n?Symbol.for("react.concurrent_mode"):60111,d=n?Symbol.for("react.forward_ref"):60112,p=n?Symbol.for("react.suspense"):60113,h=n?Symbol.for("react.suspense_list"):60120,m=n?Symbol.for("react.memo"):60115,g=n?Symbol.for("react.lazy"):60116,v=n?Symbol.for("react.block"):60121,y=n?Symbol.for("react.fundamental"):60117,b=n?Symbol.for("react.responder"):60118,w=n?Symbol.for("react.scope"):60119;function x(e){if("object"==typeof e&&null!==e){var t=e.$$typeof;switch(t){case r:switch(e=e.type){case l:case f:case i:case s:case a:case p:return e;default:switch(e=e&&e.$$typeof){case u:case d:case g:case m:case c:return e;default:return t}}case o:return t}}}function O(e){return x(e)===f}t.AsyncMode=l,t.ConcurrentMode=f,t.ContextConsumer=u,t.ContextProvider=c,t.Element=r,t.ForwardRef=d,t.Fragment=i,t.Lazy=g,t.Memo=m,t.Portal=o,t.Profiler=s,t.StrictMode=a,t.Suspense=p,t.isAsyncMode=function(e){return O(e)||x(e)===l},t.isConcurrentMode=O,t.isContextConsumer=function(e){return x(e)===u},t.isContextProvider=function(e){return x(e)===c},t.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===r},t.isForwardRef=function(e){return x(e)===d},t.isFragment=function(e){return x(e)===i},t.isLazy=function(e){return x(e)===g},t.isMemo=function(e){return x(e)===m},t.isPortal=function(e){return x(e)===o},t.isProfiler=function(e){return x(e)===s},t.isStrictMode=function(e){return x(e)===a},t.isSuspense=function(e){return x(e)===p},t.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===i||e===f||e===s||e===a||e===p||e===h||"object"==typeof e&&null!==e&&(e.$$typeof===g||e.$$typeof===m||e.$$typeof===c||e.$$typeof===u||e.$$typeof===d||e.$$typeof===y||e.$$typeof===b||e.$$typeof===w||e.$$typeof===v)},t.typeOf=x},51976:(e,t,n)=>{"use strict";e.exports=n(9734)},32654:(e,t,n)=>{"use strict";n.d(t,{D:()=>be});var r=n(1024),o=n(30314);function i(e){if(null==e)return window;if("[object Window]"!==e.toString()){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function a(e){return e instanceof i(e).Element||e instanceof Element}function s(e){return e instanceof i(e).HTMLElement||e instanceof HTMLElement}function c(e){return"undefined"!=typeof ShadowRoot&&(e instanceof i(e).ShadowRoot||e instanceof ShadowRoot)}var u=Math.max,l=Math.min,f=Math.round;function d(e,t){void 0===t&&(t=!1);var n=e.getBoundingClientRect(),r=1,o=1;if(s(e)&&t){var i=e.offsetHeight,a=e.offsetWidth;a>0&&(r=f(n.width)/a||1),i>0&&(o=f(n.height)/i||1)}return{width:n.width/r,height:n.height/o,top:n.top/o,right:n.right/r,bottom:n.bottom/o,left:n.left/r,x:n.left/r,y:n.top/o}}function p(e){var t=i(e);return{scrollLeft:t.pageXOffset,scrollTop:t.pageYOffset}}function h(e){return e?(e.nodeName||"").toLowerCase():null}function m(e){return((a(e)?e.ownerDocument:e.document)||window.document).documentElement}function g(e){return d(m(e)).left+p(e).scrollLeft}function v(e){return i(e).getComputedStyle(e)}function y(e){var t=v(e),n=t.overflow,r=t.overflowX,o=t.overflowY;return/auto|scroll|overlay|hidden/.test(n+o+r)}function b(e,t,n){void 0===n&&(n=!1);var r,o,a=s(t),c=s(t)&&function(e){var t=e.getBoundingClientRect(),n=f(t.width)/e.offsetWidth||1,r=f(t.height)/e.offsetHeight||1;return 1!==n||1!==r}(t),u=m(t),l=d(e,c),v={scrollLeft:0,scrollTop:0},b={x:0,y:0};return(a||!a&&!n)&&(("body"!==h(t)||y(u))&&(v=(r=t)!==i(r)&&s(r)?{scrollLeft:(o=r).scrollLeft,scrollTop:o.scrollTop}:p(r)),s(t)?((b=d(t,!0)).x+=t.clientLeft,b.y+=t.clientTop):u&&(b.x=g(u))),{x:l.left+v.scrollLeft-b.x,y:l.top+v.scrollTop-b.y,width:l.width,height:l.height}}function w(e){var t=d(e),n=e.offsetWidth,r=e.offsetHeight;return Math.abs(t.width-n)<=1&&(n=t.width),Math.abs(t.height-r)<=1&&(r=t.height),{x:e.offsetLeft,y:e.offsetTop,width:n,height:r}}function x(e){return"html"===h(e)?e:e.assignedSlot||e.parentNode||(c(e)?e.host:null)||m(e)}function O(e){return["html","body","#document"].indexOf(h(e))>=0?e.ownerDocument.body:s(e)&&y(e)?e:O(x(e))}function E(e,t){var n;void 0===t&&(t=[]);var r=O(e),o=r===(null==(n=e.ownerDocument)?void 0:n.body),a=i(r),s=o?[a].concat(a.visualViewport||[],y(r)?r:[]):r,c=t.concat(s);return o?c:c.concat(E(x(s)))}function S(e){return["table","td","th"].indexOf(h(e))>=0}function k(e){return s(e)&&"fixed"!==v(e).position?e.offsetParent:null}function P(e){for(var t=i(e),n=k(e);n&&S(n)&&"static"===v(n).position;)n=k(n);return n&&("html"===h(n)||"body"===h(n)&&"static"===v(n).position)?t:n||function(e){var t=-1!==navigator.userAgent.toLowerCase().indexOf("firefox");if(-1!==navigator.userAgent.indexOf("Trident")&&s(e)&&"fixed"===v(e).position)return null;var n=x(e);for(c(n)&&(n=n.host);s(n)&&["html","body"].indexOf(h(n))<0;){var r=v(n);if("none"!==r.transform||"none"!==r.perspective||"paint"===r.contain||-1!==["transform","perspective"].indexOf(r.willChange)||t&&"filter"===r.willChange||t&&r.filter&&"none"!==r.filter)return n;n=n.parentNode}return null}(e)||t}var j="top",T="bottom",C="right",_="left",A="auto",Z=[j,T,C,_],N="start",M="end",R="viewport",D="popper",I=Z.reduce((function(e,t){return e.concat([t+"-"+N,t+"-"+M])}),[]),L=[].concat(Z,[A]).reduce((function(e,t){return e.concat([t,t+"-"+N,t+"-"+M])}),[]),F=["beforeRead","read","afterRead","beforeMain","main","afterMain","beforeWrite","write","afterWrite"];function H(e){var t=new Map,n=new Set,r=[];function o(e){n.add(e.name),[].concat(e.requires||[],e.requiresIfExists||[]).forEach((function(e){if(!n.has(e)){var r=t.get(e);r&&o(r)}})),r.push(e)}return e.forEach((function(e){t.set(e.name,e)})),e.forEach((function(e){n.has(e.name)||o(e)})),r}var W={placement:"bottom",modifiers:[],strategy:"absolute"};function B(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return!t.some((function(e){return!(e&&"function"==typeof e.getBoundingClientRect)}))}function U(e){void 0===e&&(e={});var t=e,n=t.defaultModifiers,r=void 0===n?[]:n,o=t.defaultOptions,i=void 0===o?W:o;return function(e,t,n){void 0===n&&(n=i);var o,s,c={placement:"bottom",orderedModifiers:[],options:Object.assign({},W,i),modifiersData:{},elements:{reference:e,popper:t},attributes:{},styles:{}},u=[],l=!1,f={state:c,setOptions:function(n){var o="function"==typeof n?n(c.options):n;d(),c.options=Object.assign({},i,c.options,o),c.scrollParents={reference:a(e)?E(e):e.contextElement?E(e.contextElement):[],popper:E(t)};var s=function(e){var t=H(e);return F.reduce((function(e,n){return e.concat(t.filter((function(e){return e.phase===n})))}),[])}(function(e){var t=e.reduce((function(e,t){var n=e[t.name];return e[t.name]=n?Object.assign({},n,t,{options:Object.assign({},n.options,t.options),data:Object.assign({},n.data,t.data)}):t,e}),{});return Object.keys(t).map((function(e){return t[e]}))}([].concat(r,c.options.modifiers)));return c.orderedModifiers=s.filter((function(e){return e.enabled})),c.orderedModifiers.forEach((function(e){var t=e.name,n=e.options,r=void 0===n?{}:n,o=e.effect;if("function"==typeof o){var i=o({state:c,name:t,instance:f,options:r}),a=function(){};u.push(i||a)}})),f.update()},forceUpdate:function(){if(!l){var e=c.elements,t=e.reference,n=e.popper;if(B(t,n)){c.rects={reference:b(t,P(n),"fixed"===c.options.strategy),popper:w(n)},c.reset=!1,c.placement=c.options.placement,c.orderedModifiers.forEach((function(e){return c.modifiersData[e.name]=Object.assign({},e.data)}));for(var r=0;r<c.orderedModifiers.length;r++)if(!0!==c.reset){var o=c.orderedModifiers[r],i=o.fn,a=o.options,s=void 0===a?{}:a,u=o.name;"function"==typeof i&&(c=i({state:c,options:s,name:u,instance:f})||c)}else c.reset=!1,r=-1}}},update:(o=function(){return new Promise((function(e){f.forceUpdate(),e(c)}))},function(){return s||(s=new Promise((function(e){Promise.resolve().then((function(){s=void 0,e(o())}))}))),s}),destroy:function(){d(),l=!0}};if(!B(e,t))return f;function d(){u.forEach((function(e){return e()})),u=[]}return f.setOptions(n).then((function(e){!l&&n.onFirstUpdate&&n.onFirstUpdate(e)})),f}}var z={passive:!0};function G(e){return e.split("-")[0]}function q(e){return e.split("-")[1]}function $(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function V(e){var t,n=e.reference,r=e.element,o=e.placement,i=o?G(o):null,a=o?q(o):null,s=n.x+n.width/2-r.width/2,c=n.y+n.height/2-r.height/2;switch(i){case j:t={x:s,y:n.y-r.height};break;case T:t={x:s,y:n.y+n.height};break;case C:t={x:n.x+n.width,y:c};break;case _:t={x:n.x-r.width,y:c};break;default:t={x:n.x,y:n.y}}var u=i?$(i):null;if(null!=u){var l="y"===u?"height":"width";switch(a){case N:t[u]=t[u]-(n[l]/2-r[l]/2);break;case M:t[u]=t[u]+(n[l]/2-r[l]/2)}}return t}var Y={top:"auto",right:"auto",bottom:"auto",left:"auto"};function X(e){var t,n=e.popper,r=e.popperRect,o=e.placement,a=e.variation,s=e.offsets,c=e.position,u=e.gpuAcceleration,l=e.adaptive,d=e.roundOffsets,p=e.isFixed,h=s.x,g=void 0===h?0:h,y=s.y,b=void 0===y?0:y,w="function"==typeof d?d({x:g,y:b}):{x:g,y:b};g=w.x,b=w.y;var x=s.hasOwnProperty("x"),O=s.hasOwnProperty("y"),E=_,S=j,k=window;if(l){var A=P(n),Z="clientHeight",N="clientWidth";if(A===i(n)&&"static"!==v(A=m(n)).position&&"absolute"===c&&(Z="scrollHeight",N="scrollWidth"),A=A,o===j||(o===_||o===C)&&a===M)S=T,b-=(p&&A===k&&k.visualViewport?k.visualViewport.height:A[Z])-r.height,b*=u?1:-1;if(o===_||(o===j||o===T)&&a===M)E=C,g-=(p&&A===k&&k.visualViewport?k.visualViewport.width:A[N])-r.width,g*=u?1:-1}var R,D=Object.assign({position:c},l&&Y),I=!0===d?function(e){var t=e.x,n=e.y,r=window.devicePixelRatio||1;return{x:f(t*r)/r||0,y:f(n*r)/r||0}}({x:g,y:b}):{x:g,y:b};return g=I.x,b=I.y,u?Object.assign({},D,((R={})[S]=O?"0":"",R[E]=x?"0":"",R.transform=(k.devicePixelRatio||1)<=1?"translate("+g+"px, "+b+"px)":"translate3d("+g+"px, "+b+"px, 0)",R)):Object.assign({},D,((t={})[S]=O?b+"px":"",t[E]=x?g+"px":"",t.transform="",t))}const K={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:function(e){var t=e.state,n=e.options,r=e.name,o=n.offset,i=void 0===o?[0,0]:o,a=L.reduce((function(e,n){return e[n]=function(e,t,n){var r=G(e),o=[_,j].indexOf(r)>=0?-1:1,i="function"==typeof n?n(Object.assign({},t,{placement:e})):n,a=i[0],s=i[1];return a=a||0,s=(s||0)*o,[_,C].indexOf(r)>=0?{x:s,y:a}:{x:a,y:s}}(n,t.rects,i),e}),{}),s=a[t.placement],c=s.x,u=s.y;null!=t.modifiersData.popperOffsets&&(t.modifiersData.popperOffsets.x+=c,t.modifiersData.popperOffsets.y+=u),t.modifiersData[r]=a}};var J={left:"right",right:"left",bottom:"top",top:"bottom"};function Q(e){return e.replace(/left|right|bottom|top/g,(function(e){return J[e]}))}var ee={start:"end",end:"start"};function te(e){return e.replace(/start|end/g,(function(e){return ee[e]}))}function ne(e,t){var n=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(n&&c(n)){var r=t;do{if(r&&e.isSameNode(r))return!0;r=r.parentNode||r.host}while(r)}return!1}function re(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function oe(e,t){return t===R?re(function(e){var t=i(e),n=m(e),r=t.visualViewport,o=n.clientWidth,a=n.clientHeight,s=0,c=0;return r&&(o=r.width,a=r.height,/^((?!chrome|android).)*safari/i.test(navigator.userAgent)||(s=r.offsetLeft,c=r.offsetTop)),{width:o,height:a,x:s+g(e),y:c}}(e)):a(t)?function(e){var t=d(e);return t.top=t.top+e.clientTop,t.left=t.left+e.clientLeft,t.bottom=t.top+e.clientHeight,t.right=t.left+e.clientWidth,t.width=e.clientWidth,t.height=e.clientHeight,t.x=t.left,t.y=t.top,t}(t):re(function(e){var t,n=m(e),r=p(e),o=null==(t=e.ownerDocument)?void 0:t.body,i=u(n.scrollWidth,n.clientWidth,o?o.scrollWidth:0,o?o.clientWidth:0),a=u(n.scrollHeight,n.clientHeight,o?o.scrollHeight:0,o?o.clientHeight:0),s=-r.scrollLeft+g(e),c=-r.scrollTop;return"rtl"===v(o||n).direction&&(s+=u(n.clientWidth,o?o.clientWidth:0)-i),{width:i,height:a,x:s,y:c}}(m(e)))}function ie(e,t,n){var r="clippingParents"===t?function(e){var t=E(x(e)),n=["absolute","fixed"].indexOf(v(e).position)>=0&&s(e)?P(e):e;return a(n)?t.filter((function(e){return a(e)&&ne(e,n)&&"body"!==h(e)})):[]}(e):[].concat(t),o=[].concat(r,[n]),i=o[0],c=o.reduce((function(t,n){var r=oe(e,n);return t.top=u(r.top,t.top),t.right=l(r.right,t.right),t.bottom=l(r.bottom,t.bottom),t.left=u(r.left,t.left),t}),oe(e,i));return c.width=c.right-c.left,c.height=c.bottom-c.top,c.x=c.left,c.y=c.top,c}function ae(e){return Object.assign({},{top:0,right:0,bottom:0,left:0},e)}function se(e,t){return t.reduce((function(t,n){return t[n]=e,t}),{})}function ce(e,t){void 0===t&&(t={});var n=t,r=n.placement,o=void 0===r?e.placement:r,i=n.boundary,s=void 0===i?"clippingParents":i,c=n.rootBoundary,u=void 0===c?R:c,l=n.elementContext,f=void 0===l?D:l,p=n.altBoundary,h=void 0!==p&&p,g=n.padding,v=void 0===g?0:g,y=ae("number"!=typeof v?v:se(v,Z)),b=f===D?"reference":D,w=e.rects.popper,x=e.elements[h?b:f],O=ie(a(x)?x:x.contextElement||m(e.elements.popper),s,u),E=d(e.elements.reference),S=V({reference:E,element:w,strategy:"absolute",placement:o}),k=re(Object.assign({},w,S)),P=f===D?k:E,_={top:O.top-P.top+y.top,bottom:P.bottom-O.bottom+y.bottom,left:O.left-P.left+y.left,right:P.right-O.right+y.right},A=e.modifiersData.offset;if(f===D&&A){var N=A[o];Object.keys(_).forEach((function(e){var t=[C,T].indexOf(e)>=0?1:-1,n=[j,T].indexOf(e)>=0?"y":"x";_[e]+=N[n]*t}))}return _}function ue(e,t,n){return u(e,l(t,n))}const le={name:"preventOverflow",enabled:!0,phase:"main",fn:function(e){var t=e.state,n=e.options,r=e.name,o=n.mainAxis,i=void 0===o||o,a=n.altAxis,s=void 0!==a&&a,c=n.boundary,f=n.rootBoundary,d=n.altBoundary,p=n.padding,h=n.tether,m=void 0===h||h,g=n.tetherOffset,v=void 0===g?0:g,y=ce(t,{boundary:c,rootBoundary:f,padding:p,altBoundary:d}),b=G(t.placement),x=q(t.placement),O=!x,E=$(b),S="x"===E?"y":"x",k=t.modifiersData.popperOffsets,A=t.rects.reference,Z=t.rects.popper,M="function"==typeof v?v(Object.assign({},t.rects,{placement:t.placement})):v,R="number"==typeof M?{mainAxis:M,altAxis:M}:Object.assign({mainAxis:0,altAxis:0},M),D=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,I={x:0,y:0};if(k){if(i){var L,F="y"===E?j:_,H="y"===E?T:C,W="y"===E?"height":"width",B=k[E],U=B+y[F],z=B-y[H],V=m?-Z[W]/2:0,Y=x===N?A[W]:Z[W],X=x===N?-Z[W]:-A[W],K=t.elements.arrow,J=m&&K?w(K):{width:0,height:0},Q=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:{top:0,right:0,bottom:0,left:0},ee=Q[F],te=Q[H],ne=ue(0,A[W],J[W]),re=O?A[W]/2-V-ne-ee-R.mainAxis:Y-ne-ee-R.mainAxis,oe=O?-A[W]/2+V+ne+te+R.mainAxis:X+ne+te+R.mainAxis,ie=t.elements.arrow&&P(t.elements.arrow),ae=ie?"y"===E?ie.clientTop||0:ie.clientLeft||0:0,se=null!=(L=null==D?void 0:D[E])?L:0,le=B+oe-se,fe=ue(m?l(U,B+re-se-ae):U,B,m?u(z,le):z);k[E]=fe,I[E]=fe-B}if(s){var de,pe="x"===E?j:_,he="x"===E?T:C,me=k[S],ge="y"===S?"height":"width",ve=me+y[pe],ye=me-y[he],be=-1!==[j,_].indexOf(b),we=null!=(de=null==D?void 0:D[S])?de:0,xe=be?ve:me-A[ge]-Z[ge]-we+R.altAxis,Oe=be?me+A[ge]+Z[ge]-we-R.altAxis:ye,Ee=m&&be?function(e,t,n){var r=ue(e,t,n);return r>n?n:r}(xe,me,Oe):ue(m?xe:ve,me,m?Oe:ye);k[S]=Ee,I[S]=Ee-me}t.modifiersData[r]=I}},requiresIfExists:["offset"]};const fe={name:"arrow",enabled:!0,phase:"main",fn:function(e){var t,n=e.state,r=e.name,o=e.options,i=n.elements.arrow,a=n.modifiersData.popperOffsets,s=G(n.placement),c=$(s),u=[_,C].indexOf(s)>=0?"height":"width";if(i&&a){var l=function(e,t){return ae("number"!=typeof(e="function"==typeof e?e(Object.assign({},t.rects,{placement:t.placement})):e)?e:se(e,Z))}(o.padding,n),f=w(i),d="y"===c?j:_,p="y"===c?T:C,h=n.rects.reference[u]+n.rects.reference[c]-a[c]-n.rects.popper[u],m=a[c]-n.rects.reference[c],g=P(i),v=g?"y"===c?g.clientHeight||0:g.clientWidth||0:0,y=h/2-m/2,b=l[d],x=v-f[u]-l[p],O=v/2-f[u]/2+y,E=ue(b,O,x),S=c;n.modifiersData[r]=((t={})[S]=E,t.centerOffset=E-O,t)}},effect:function(e){var t=e.state,n=e.options.element,r=void 0===n?"[data-popper-arrow]":n;null!=r&&("string"!=typeof r||(r=t.elements.popper.querySelector(r)))&&ne(t.elements.popper,r)&&(t.elements.arrow=r)},requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function de(e,t,n){return void 0===n&&(n={x:0,y:0}),{top:e.top-t.height-n.y,right:e.right-t.width+n.x,bottom:e.bottom-t.height+n.y,left:e.left-t.width-n.x}}function pe(e){return[j,C,T,_].some((function(t){return e[t]>=0}))}var he=U({defaultModifiers:[{name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:function(e){var t=e.state,n=e.instance,r=e.options,o=r.scroll,a=void 0===o||o,s=r.resize,c=void 0===s||s,u=i(t.elements.popper),l=[].concat(t.scrollParents.reference,t.scrollParents.popper);return a&&l.forEach((function(e){e.addEventListener("scroll",n.update,z)})),c&&u.addEventListener("resize",n.update,z),function(){a&&l.forEach((function(e){e.removeEventListener("scroll",n.update,z)})),c&&u.removeEventListener("resize",n.update,z)}},data:{}},{name:"popperOffsets",enabled:!0,phase:"read",fn:function(e){var t=e.state,n=e.name;t.modifiersData[n]=V({reference:t.rects.reference,element:t.rects.popper,strategy:"absolute",placement:t.placement})},data:{}},{name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:function(e){var t=e.state,n=e.options,r=n.gpuAcceleration,o=void 0===r||r,i=n.adaptive,a=void 0===i||i,s=n.roundOffsets,c=void 0===s||s,u={placement:G(t.placement),variation:q(t.placement),popper:t.elements.popper,popperRect:t.rects.popper,gpuAcceleration:o,isFixed:"fixed"===t.options.strategy};null!=t.modifiersData.popperOffsets&&(t.styles.popper=Object.assign({},t.styles.popper,X(Object.assign({},u,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:a,roundOffsets:c})))),null!=t.modifiersData.arrow&&(t.styles.arrow=Object.assign({},t.styles.arrow,X(Object.assign({},u,{offsets:t.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:c})))),t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-placement":t.placement})},data:{}},{name:"applyStyles",enabled:!0,phase:"write",fn:function(e){var t=e.state;Object.keys(t.elements).forEach((function(e){var n=t.styles[e]||{},r=t.attributes[e]||{},o=t.elements[e];s(o)&&h(o)&&(Object.assign(o.style,n),Object.keys(r).forEach((function(e){var t=r[e];!1===t?o.removeAttribute(e):o.setAttribute(e,!0===t?"":t)})))}))},effect:function(e){var t=e.state,n={popper:{position:t.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(t.elements.popper.style,n.popper),t.styles=n,t.elements.arrow&&Object.assign(t.elements.arrow.style,n.arrow),function(){Object.keys(t.elements).forEach((function(e){var r=t.elements[e],o=t.attributes[e]||{},i=Object.keys(t.styles.hasOwnProperty(e)?t.styles[e]:n[e]).reduce((function(e,t){return e[t]="",e}),{});s(r)&&h(r)&&(Object.assign(r.style,i),Object.keys(o).forEach((function(e){r.removeAttribute(e)})))}))}},requires:["computeStyles"]},K,{name:"flip",enabled:!0,phase:"main",fn:function(e){var t=e.state,n=e.options,r=e.name;if(!t.modifiersData[r]._skip){for(var o=n.mainAxis,i=void 0===o||o,a=n.altAxis,s=void 0===a||a,c=n.fallbackPlacements,u=n.padding,l=n.boundary,f=n.rootBoundary,d=n.altBoundary,p=n.flipVariations,h=void 0===p||p,m=n.allowedAutoPlacements,g=t.options.placement,v=G(g),y=c||(v===g||!h?[Q(g)]:function(e){if(G(e)===A)return[];var t=Q(e);return[te(e),t,te(t)]}(g)),b=[g].concat(y).reduce((function(e,n){return e.concat(G(n)===A?function(e,t){void 0===t&&(t={});var n=t,r=n.placement,o=n.boundary,i=n.rootBoundary,a=n.padding,s=n.flipVariations,c=n.allowedAutoPlacements,u=void 0===c?L:c,l=q(r),f=l?s?I:I.filter((function(e){return q(e)===l})):Z,d=f.filter((function(e){return u.indexOf(e)>=0}));0===d.length&&(d=f);var p=d.reduce((function(t,n){return t[n]=ce(e,{placement:n,boundary:o,rootBoundary:i,padding:a})[G(n)],t}),{});return Object.keys(p).sort((function(e,t){return p[e]-p[t]}))}(t,{placement:n,boundary:l,rootBoundary:f,padding:u,flipVariations:h,allowedAutoPlacements:m}):n)}),[]),w=t.rects.reference,x=t.rects.popper,O=new Map,E=!0,S=b[0],k=0;k<b.length;k++){var P=b[k],M=G(P),R=q(P)===N,D=[j,T].indexOf(M)>=0,F=D?"width":"height",H=ce(t,{placement:P,boundary:l,rootBoundary:f,altBoundary:d,padding:u}),W=D?R?C:_:R?T:j;w[F]>x[F]&&(W=Q(W));var B=Q(W),U=[];if(i&&U.push(H[M]<=0),s&&U.push(H[W]<=0,H[B]<=0),U.every((function(e){return e}))){S=P,E=!1;break}O.set(P,U)}if(E)for(var z=function(e){var t=b.find((function(t){var n=O.get(t);if(n)return n.slice(0,e).every((function(e){return e}))}));if(t)return S=t,"break"},$=h?3:1;$>0;$--){if("break"===z($))break}t.placement!==S&&(t.modifiersData[r]._skip=!0,t.placement=S,t.reset=!0)}},requiresIfExists:["offset"],data:{_skip:!1}},le,fe,{name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:function(e){var t=e.state,n=e.name,r=t.rects.reference,o=t.rects.popper,i=t.modifiersData.preventOverflow,a=ce(t,{elementContext:"reference"}),s=ce(t,{altBoundary:!0}),c=de(a,r),u=de(s,o,i),l=pe(c),f=pe(u);t.modifiersData[n]={referenceClippingOffsets:c,popperEscapeOffsets:u,isReferenceHidden:l,hasPopperEscaped:f},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":l,"data-popper-escaped":f})}}]}),me=n(98836),ge=n.n(me),ve=n(87568),ye=[],be=function(e,t,n){void 0===n&&(n={});var i=r.useRef(null),a={onFirstUpdate:n.onFirstUpdate,placement:n.placement||"bottom",strategy:n.strategy||"absolute",modifiers:n.modifiers||ye},s=r.useState({styles:{popper:{position:a.strategy,left:"0",top:"0"},arrow:{position:"absolute"}},attributes:{}}),c=s[0],u=s[1],l=r.useMemo((function(){return{name:"updateState",enabled:!0,phase:"write",fn:function(e){var t=e.state,n=Object.keys(t.elements);o.flushSync((function(){u({styles:(0,ve.sq)(n.map((function(e){return[e,t.styles[e]||{}]}))),attributes:(0,ve.sq)(n.map((function(e){return[e,t.attributes[e]]})))})}))},requires:["computeStyles"]}}),[]),f=r.useMemo((function(){var e={onFirstUpdate:a.onFirstUpdate,placement:a.placement,strategy:a.strategy,modifiers:[].concat(a.modifiers,[l,{name:"applyStyles",enabled:!1}])};return ge()(i.current,e)?i.current||e:(i.current=e,e)}),[a.onFirstUpdate,a.placement,a.strategy,a.modifiers,l]),d=r.useRef();return(0,ve.LI)((function(){d.current&&d.current.setOptions(f)}),[f]),(0,ve.LI)((function(){if(null!=e&&null!=t){var r=(n.createPopper||he)(e,t,f);return d.current=r,function(){r.destroy(),d.current=null}}}),[e,t,n.createPopper]),{state:d.current?d.current.state:null,styles:c.styles,attributes:c.attributes,update:d.current?d.current.update:null,forceUpdate:d.current?d.current.forceUpdate:null}}},87568:(e,t,n)=>{"use strict";n.d(t,{LI:()=>i,sq:()=>o});var r=n(1024),o=function(e){return e.reduce((function(e,t){var n=t[0],r=t[1];return e[n]=r,e}),{})},i="undefined"!=typeof window&&window.document&&window.document.createElement?r.useLayoutEffect:r.useEffect},13508:(e,t,n)=>{"use strict";n.d(t,{c:()=>Q});var r=n(8486),o=n(3640),i=n(89178),a=n(91411),s=n(56315),c=n(68957),u=n(1024),l=n(30314);Math.min,Math.max;const f=["top","right","bottom","left"];f.reduce(((e,t)=>e.concat(t,t+"-start",t+"-end")),[]);function d(e){return e&&e.document&&e.location&&e.alert&&e.setInterval}function p(e){if(null==e)return window;if(!d(e)){const t=e.ownerDocument;return t&&t.defaultView||window}return e}function h(e){return p(e).getComputedStyle(e)}function m(e){return d(e)?"":e?(e.nodeName||"").toLowerCase():""}function g(){const e=navigator.userAgentData;return null!=e&&e.brands?e.brands.map((e=>e.brand+"/"+e.version)).join(" "):navigator.userAgent}function v(e){return e instanceof p(e).HTMLElement}function y(e){return e instanceof p(e).Element}function b(e){return"undefined"!=typeof ShadowRoot&&(e instanceof p(e).ShadowRoot||e instanceof ShadowRoot)}function w(e){const{overflow:t,overflowX:n,overflowY:r,display:o}=h(e);return/auto|scroll|overlay|hidden/.test(t+r+n)&&!["inline","contents"].includes(o)}function x(){return!/^((?!chrome|android).)*safari/i.test(g())}function O(e){return["html","body","#document"].includes(m(e))}Math.min,Math.max;const E=Math.round;function S(e,t,n){var r,o,i,a;void 0===t&&(t=!1),void 0===n&&(n=!1);const s=e.getBoundingClientRect();let c=1,u=1;t&&v(e)&&(c=e.offsetWidth>0&&E(s.width)/e.offsetWidth||1,u=e.offsetHeight>0&&E(s.height)/e.offsetHeight||1);const l=y(e)?p(e):window,f=!x()&&n,d=(s.left+(f&&null!=(r=null==(o=l.visualViewport)?void 0:o.offsetLeft)?r:0))/c,h=(s.top+(f&&null!=(i=null==(a=l.visualViewport)?void 0:a.offsetTop)?i:0))/u,m=s.width/c,g=s.height/u;return{width:m,height:g,top:h,right:d+m,bottom:h+g,left:d,x:d,y:h}}function k(e){return(t=e,(t instanceof p(t).Node?e.ownerDocument:e.document)||window.document).documentElement;var t}function P(e){return"html"===m(e)?e:e.assignedSlot||e.parentNode||(b(e)?e.host:null)||k(e)}function j(e){const t=P(e);return O(t)?e.ownerDocument.body:v(t)&&w(t)?t:j(t)}function T(e,t){var n;void 0===t&&(t=[]);const r=j(e),o=r===(null==(n=e.ownerDocument)?void 0:n.body),i=p(r),a=o?[i].concat(i.visualViewport||[],w(r)?r:[]):r,s=t.concat(a);return o?s:s.concat(T(a))}var C=n(6919),_=["className","clearValue","cx","getStyles","getValue","hasValue","isMulti","isRtl","options","selectOption","selectProps","setValue","theme"],A=function(){};var Z=function(e){e.className,e.clearValue,e.cx,e.getStyles,e.getValue,e.hasValue,e.isMulti,e.isRtl,e.options,e.selectOption,e.selectProps,e.setValue,e.theme;var t=(0,s.Z)(e,_);return(0,r.Z)({},t)};var N={get passive(){return!0}},M="undefined"!=typeof window?window:{};M.addEventListener&&M.removeEventListener&&(M.addEventListener("p",A,N),M.removeEventListener("p",A,!1));var R=function(e){return"auto"===e?"bottom":e},D=(0,u.createContext)(null),I=function(e){var t=e.children,n=e.className,r=e.cx,a=e.getStyles,s=e.innerProps;return(0,i.tZ)("div",(0,o.Z)({css:a("noOptionsMessage",e),className:r({"menu-notice":!0,"menu-notice--no-options":!0},n)},s),t)};I.defaultProps={children:"No options"};var L=function(e){var t=e.children,n=e.className,r=e.cx,a=e.getStyles,s=e.innerProps;return(0,i.tZ)("div",(0,o.Z)({css:a("loadingMessage",e),className:r({"menu-notice":!0,"menu-notice--loading":!0},n)},s),t)};L.defaultProps={children:"Loading..."};var F,H=["size"];var W={name:"8mmkcg",styles:"display:inline-block;fill:currentColor;line-height:1;stroke:currentColor;stroke-width:0"},B=function(e){var t=e.size,n=(0,s.Z)(e,H);return(0,i.tZ)("svg",(0,o.Z)({height:t,width:t,viewBox:"0 0 20 20","aria-hidden":"true",focusable:"false",css:W},n))},U=function(e){return(0,i.tZ)(B,(0,o.Z)({size:20},e),(0,i.tZ)("path",{d:"M14.348 14.849c-0.469 0.469-1.229 0.469-1.697 0l-2.651-3.030-2.651 3.029c-0.469 0.469-1.229 0.469-1.697 0-0.469-0.469-0.469-1.229 0-1.697l2.758-3.15-2.759-3.152c-0.469-0.469-0.469-1.228 0-1.697s1.228-0.469 1.697 0l2.652 3.031 2.651-3.031c0.469-0.469 1.228-0.469 1.697 0s0.469 1.229 0 1.697l-2.758 3.152 2.758 3.15c0.469 0.469 0.469 1.229 0 1.698z"}))},z=function(e){return(0,i.tZ)(B,(0,o.Z)({size:20},e),(0,i.tZ)("path",{d:"M4.516 7.548c0.436-0.446 1.043-0.481 1.576 0l3.908 3.747 3.908-3.747c0.533-0.481 1.141-0.446 1.574 0 0.436 0.445 0.408 1.197 0 1.615-0.406 0.418-4.695 4.502-4.695 4.502-0.217 0.223-0.502 0.335-0.787 0.335s-0.57-0.112-0.789-0.335c0 0-4.287-4.084-4.695-4.502s-0.436-1.17 0-1.615z"}))},G=(0,i.F4)(F||(F=(0,a.Z)(["\n 0%, 80%, 100% { opacity: 0; }\n 40% { opacity: 1; }\n"]))),q=function(e){var t=e.delay,n=e.offset;return(0,i.tZ)("span",{css:(0,i.iv)({animation:"".concat(G," 1s ease-in-out ").concat(t,"ms infinite;"),backgroundColor:"currentColor",borderRadius:"1em",display:"inline-block",marginLeft:n?"1em":void 0,height:"1em",verticalAlign:"top",width:"1em"},"","")})},$=function(e){var t=e.className,n=e.cx,r=e.getStyles,a=e.innerProps,s=e.isRtl;return(0,i.tZ)("div",(0,o.Z)({css:r("loadingIndicator",e),className:n({indicator:!0,"loading-indicator":!0},t)},a),(0,i.tZ)(q,{delay:0,offset:s}),(0,i.tZ)(q,{delay:160,offset:!0}),(0,i.tZ)(q,{delay:320,offset:!s}))};$.defaultProps={size:4};var V=["data"],Y=["innerRef","isDisabled","isHidden","inputClassName"],X={gridArea:"1 / 2",font:"inherit",minWidth:"2px",border:0,margin:0,outline:0,padding:0},K=((0,r.Z)({content:'attr(data-value) " "',visibility:"hidden",whiteSpace:"pre"},X),function(e){return(0,r.Z)({label:"input",color:"inherit",background:0,opacity:e?0:1,width:"100%"},X)}),J=function(e){var t=e.children,n=e.innerProps;return(0,i.tZ)("div",n,t)};var Q={ClearIndicator:function(e){var t=e.children,n=e.className,r=e.cx,a=e.getStyles,s=e.innerProps;return(0,i.tZ)("div",(0,o.Z)({css:a("clearIndicator",e),className:r({indicator:!0,"clear-indicator":!0},n)},s),t||(0,i.tZ)(U,null))},Control:function(e){var t=e.children,n=e.cx,r=e.getStyles,a=e.className,s=e.isDisabled,c=e.isFocused,u=e.innerRef,l=e.innerProps,f=e.menuIsOpen;return(0,i.tZ)("div",(0,o.Z)({ref:u,css:r("control",e),className:n({control:!0,"control--is-disabled":s,"control--is-focused":c,"control--menu-is-open":f},a)},l),t)},DropdownIndicator:function(e){var t=e.children,n=e.className,r=e.cx,a=e.getStyles,s=e.innerProps;return(0,i.tZ)("div",(0,o.Z)({css:a("dropdownIndicator",e),className:r({indicator:!0,"dropdown-indicator":!0},n)},s),t||(0,i.tZ)(z,null))},DownChevron:z,CrossIcon:U,Group:function(e){var t=e.children,n=e.className,r=e.cx,a=e.getStyles,s=e.Heading,c=e.headingProps,u=e.innerProps,l=e.label,f=e.theme,d=e.selectProps;return(0,i.tZ)("div",(0,o.Z)({css:a("group",e),className:r({group:!0},n)},u),(0,i.tZ)(s,(0,o.Z)({},c,{selectProps:d,theme:f,getStyles:a,cx:r}),l),(0,i.tZ)("div",null,t))},GroupHeading:function(e){var t=e.getStyles,n=e.cx,r=e.className,a=Z(e);a.data;var c=(0,s.Z)(a,V);return(0,i.tZ)("div",(0,o.Z)({css:t("groupHeading",e),className:n({"group-heading":!0},r)},c))},IndicatorsContainer:function(e){var t=e.children,n=e.className,r=e.cx,a=e.innerProps,s=e.getStyles;return(0,i.tZ)("div",(0,o.Z)({css:s("indicatorsContainer",e),className:r({indicators:!0},n)},a),t)},IndicatorSeparator:function(e){var t=e.className,n=e.cx,r=e.getStyles,a=e.innerProps;return(0,i.tZ)("span",(0,o.Z)({},a,{css:r("indicatorSeparator",e),className:n({"indicator-separator":!0},t)}))},Input:function(e){var t=e.className,n=e.cx,r=e.getStyles,a=e.value,c=Z(e),u=c.innerRef,l=c.isDisabled,f=c.isHidden,d=c.inputClassName,p=(0,s.Z)(c,Y);return(0,i.tZ)("div",{className:n({"input-container":!0},t),css:r("input",e),"data-value":a||""},(0,i.tZ)("input",(0,o.Z)({className:n({input:!0},d),ref:u,style:K(f),disabled:l},p)))},LoadingIndicator:$,Menu:function(e){var t=e.children,n=e.className,r=e.cx,a=e.getStyles,s=e.innerRef,c=e.innerProps;return(0,i.tZ)("div",(0,o.Z)({css:a("menu",e),className:r({menu:!0},n),ref:s},c),t)},MenuList:function(e){var t=e.children,n=e.className,r=e.cx,a=e.getStyles,s=e.innerProps,c=e.innerRef,u=e.isMulti;return(0,i.tZ)("div",(0,o.Z)({css:a("menuList",e),className:r({"menu-list":!0,"menu-list--is-multi":u},n),ref:c},s),t)},MenuPortal:function(e){var t=e.appendTo,n=e.children,r=e.className,a=e.controlElement,s=e.cx,f=e.innerProps,d=e.menuPlacement,p=e.menuPosition,h=e.getStyles,m=(0,u.useRef)(null),g=(0,u.useRef)(null),v=(0,u.useState)(R(d)),b=(0,c.Z)(v,2),w=b[0],x=b[1],O=(0,u.useMemo)((function(){return{setPortalPlacement:x}}),[]),E=(0,u.useState)(null),k=(0,c.Z)(E,2),P=k[0],j=k[1],_=(0,u.useCallback)((function(){if(a){var e=function(e){var t=e.getBoundingClientRect();return{bottom:t.bottom,height:t.height,left:t.left,right:t.right,top:t.top,width:t.width}}(a),t="fixed"===p?0:window.pageYOffset,n=e[w]+t;n===(null==P?void 0:P.offset)&&e.left===(null==P?void 0:P.rect.left)&&e.width===(null==P?void 0:P.rect.width)||j({offset:n,rect:e})}}),[a,p,w,null==P?void 0:P.offset,null==P?void 0:P.rect.left,null==P?void 0:P.rect.width]);(0,C.Z)((function(){_()}),[_]);var A=(0,u.useCallback)((function(){"function"==typeof g.current&&(g.current(),g.current=null),a&&m.current&&(g.current=function(e,t,n,r){void 0===r&&(r={});const{ancestorScroll:o=!0,ancestorResize:i=!0,elementResize:a=!0,animationFrame:s=!1}=r,c=o&&!s,u=c||i?[...y(e)?T(e):[],...T(t)]:[];u.forEach((e=>{c&&e.addEventListener("scroll",n,{passive:!0}),i&&e.addEventListener("resize",n)}));let l,f=null;if(a){let r=!0;f=new ResizeObserver((()=>{r||n(),r=!1})),y(e)&&!s&&f.observe(e),f.observe(t)}let d=s?S(e):null;return s&&function t(){const r=S(e);!d||r.x===d.x&&r.y===d.y&&r.width===d.width&&r.height===d.height||n(),d=r,l=requestAnimationFrame(t)}(),n(),()=>{var e;u.forEach((e=>{c&&e.removeEventListener("scroll",n),i&&e.removeEventListener("resize",n)})),null==(e=f)||e.disconnect(),f=null,s&&cancelAnimationFrame(l)}}(a,m.current,_,{elementResize:"ResizeObserver"in window}))}),[a,_]);(0,C.Z)((function(){A()}),[A]);var Z=(0,u.useCallback)((function(e){m.current=e,A()}),[A]);if(!t&&"fixed"!==p||!P)return null;var N=(0,i.tZ)("div",(0,o.Z)({ref:Z,css:h("menuPortal",{offset:P.offset,position:p,rect:P.rect}),className:s({"menu-portal":!0},r)},f),n);return(0,i.tZ)(D.Provider,{value:O},t?(0,l.createPortal)(N,t):N)},LoadingMessage:L,NoOptionsMessage:I,MultiValue:function(e){var t=e.children,n=e.className,o=e.components,a=e.cx,s=e.data,c=e.getStyles,u=e.innerProps,l=e.isDisabled,f=e.removeProps,d=e.selectProps,p=o.Container,h=o.Label,m=o.Remove;return(0,i.tZ)(i.ms,null,(function(o){var g=o.css,v=o.cx;return(0,i.tZ)(p,{data:s,innerProps:(0,r.Z)({className:v(g(c("multiValue",e)),a({"multi-value":!0,"multi-value--is-disabled":l},n))},u),selectProps:d},(0,i.tZ)(h,{data:s,innerProps:{className:v(g(c("multiValueLabel",e)),a({"multi-value__label":!0},n))},selectProps:d},t),(0,i.tZ)(m,{data:s,innerProps:(0,r.Z)({className:v(g(c("multiValueRemove",e)),a({"multi-value__remove":!0},n)),"aria-label":"Remove ".concat(t||"option")},f),selectProps:d}))}))},MultiValueContainer:J,MultiValueLabel:J,MultiValueRemove:function(e){var t=e.children,n=e.innerProps;return(0,i.tZ)("div",(0,o.Z)({role:"button"},n),t||(0,i.tZ)(U,{size:14}))},Option:function(e){var t=e.children,n=e.className,r=e.cx,a=e.getStyles,s=e.isDisabled,c=e.isFocused,u=e.isSelected,l=e.innerRef,f=e.innerProps;return(0,i.tZ)("div",(0,o.Z)({css:a("option",e),className:r({option:!0,"option--is-disabled":s,"option--is-focused":c,"option--is-selected":u},n),ref:l,"aria-disabled":s},f),t)},Placeholder:function(e){var t=e.children,n=e.className,r=e.cx,a=e.getStyles,s=e.innerProps;return(0,i.tZ)("div",(0,o.Z)({css:a("placeholder",e),className:r({placeholder:!0},n)},s),t)},SelectContainer:function(e){var t=e.children,n=e.className,r=e.cx,a=e.getStyles,s=e.innerProps,c=e.isDisabled,u=e.isRtl;return(0,i.tZ)("div",(0,o.Z)({css:a("container",e),className:r({"--is-disabled":c,"--is-rtl":u},n)},s),t)},SingleValue:function(e){var t=e.children,n=e.className,r=e.cx,a=e.getStyles,s=e.isDisabled,c=e.innerProps;return(0,i.tZ)("div",(0,o.Z)({css:a("singleValue",e),className:r({"single-value":!0,"single-value--is-disabled":s},n)},c),t)},ValueContainer:function(e){var t=e.children,n=e.className,r=e.cx,a=e.innerProps,s=e.isMulti,c=e.getStyles,u=e.hasValue;return(0,i.tZ)("div",(0,o.Z)({css:c("valueContainer",e),className:r({"value-container":!0,"value-container--is-multi":s,"value-container--has-value":u},n)},a),t)}}},83109:function(e,t){var n,r,o;/*! tether 1.4.7 */r=[],n=function(){"use strict";var e=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}();function t(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}var n=void 0;void 0===n&&(n={modules:[]});var r=null;function o(e){var t=e.getBoundingClientRect(),n={};for(var r in t)n[r]=t[r];try{if(e.ownerDocument!==document){var i=e.ownerDocument.defaultView.frameElement;if(i){var a=o(i);n.top+=a.top,n.bottom+=a.top,n.left+=a.left,n.right+=a.left}}}catch(e){}return n}function i(e){var t=(getComputedStyle(e)||{}).position,n=[];if("fixed"===t)return[e];for(var r=e;(r=r.parentNode)&&r&&1===r.nodeType;){var o=void 0;try{o=getComputedStyle(r)}catch(e){}if(null==o)return n.push(r),n;var i=o,a=i.overflow,s=i.overflowX,c=i.overflowY;/(auto|scroll|overlay)/.test(a+c+s)&&("absolute"!==t||["relative","absolute","fixed"].indexOf(o.position)>=0)&&n.push(r)}return n.push(e.ownerDocument.body),e.ownerDocument!==document&&n.push(e.ownerDocument.defaultView),n}var a,s=(a=0,function(){return++a}),c={},u=function(){var e=r;e&&document.body.contains(e)||((e=document.createElement("div")).setAttribute("data-tether-id",s()),m(e.style,{top:0,left:0,position:"absolute"}),document.body.appendChild(e),r=e);var t=e.getAttribute("data-tether-id");return void 0===c[t]&&(c[t]=o(e),E((function(){delete c[t]}))),c[t]};function l(){r&&document.body.removeChild(r),r=null}function f(e){var t=void 0;e===document?(t=document,e=document.documentElement):t=e.ownerDocument;var n=t.documentElement,r=o(e),i=u();return r.top-=i.top,r.left-=i.left,void 0===r.width&&(r.width=document.body.scrollWidth-r.left-r.right),void 0===r.height&&(r.height=document.body.scrollHeight-r.top-r.bottom),r.top=r.top-n.clientTop,r.left=r.left-n.clientLeft,r.right=t.body.clientWidth-r.width-r.left,r.bottom=t.body.clientHeight-r.height-r.top,r}function d(e){return e.offsetParent||document.documentElement}var p=null;function h(){if(p)return p;var e=document.createElement("div");e.style.width="100%",e.style.height="200px";var t=document.createElement("div");m(t.style,{position:"absolute",top:0,left:0,pointerEvents:"none",visibility:"hidden",width:"200px",height:"150px",overflow:"hidden"}),t.appendChild(e),document.body.appendChild(t);var n=e.offsetWidth;t.style.overflow="scroll";var r=e.offsetWidth;n===r&&(r=t.clientWidth),document.body.removeChild(t);var o=n-r;return p={width:o,height:o}}function m(){var e=arguments.length<=0||void 0===arguments[0]?{}:arguments[0],t=[];return Array.prototype.push.apply(t,arguments),t.slice(1).forEach((function(t){if(t)for(var n in t)({}).hasOwnProperty.call(t,n)&&(e[n]=t[n])})),e}function g(e,t){if(void 0!==e.classList)t.split(" ").forEach((function(t){t.trim()&&e.classList.remove(t)}));else{var n=new RegExp("(^| )"+t.split(" ").join("|")+"( |$)","gi"),r=b(e).replace(n," ");w(e,r)}}function v(e,t){if(void 0!==e.classList)t.split(" ").forEach((function(t){t.trim()&&e.classList.add(t)}));else{g(e,t);var n=b(e)+" "+t;w(e,n)}}function y(e,t){if(void 0!==e.classList)return e.classList.contains(t);var n=b(e);return new RegExp("(^| )"+t+"( |$)","gi").test(n)}function b(e){return e.className instanceof e.ownerDocument.defaultView.SVGAnimatedString?e.className.baseVal:e.className}function w(e,t){e.setAttribute("class",t)}function x(e,t,n){n.forEach((function(n){-1===t.indexOf(n)&&y(e,n)&&g(e,n)})),t.forEach((function(t){y(e,t)||v(e,t)}))}var O=[],E=function(e){O.push(e)},S=function(){for(var e=void 0;e=O.pop();)e()},k=function(){function n(){t(this,n)}return e(n,[{key:"on",value:function(e,t,n){var r=!(arguments.length<=3||void 0===arguments[3])&&arguments[3];void 0===this.bindings&&(this.bindings={}),void 0===this.bindings[e]&&(this.bindings[e]=[]),this.bindings[e].push({handler:t,ctx:n,once:r})}},{key:"once",value:function(e,t,n){this.on(e,t,n,!0)}},{key:"off",value:function(e,t){if(void 0!==this.bindings&&void 0!==this.bindings[e])if(void 0===t)delete this.bindings[e];else for(var n=0;n<this.bindings[e].length;)this.bindings[e][n].handler===t?this.bindings[e].splice(n,1):++n}},{key:"trigger",value:function(e){if(void 0!==this.bindings&&this.bindings[e]){for(var t=0,n=arguments.length,r=Array(n>1?n-1:0),o=1;o<n;o++)r[o-1]=arguments[o];for(;t<this.bindings[e].length;){var i=this.bindings[e][t],a=i.handler,s=i.ctx,c=i.once,u=s;void 0===u&&(u=this),a.apply(u,r),c?this.bindings[e].splice(t,1):++t}}}}]),n}();n.Utils={getActualBoundingClientRect:o,getScrollParents:i,getBounds:f,getOffsetParent:d,extend:m,addClass:v,removeClass:g,hasClass:y,updateClasses:x,defer:E,flush:S,uniqueId:s,Evented:k,getScrollBarSize:h,removeUtilElements:l};var P=function(){function e(e,t){var n=[],r=!0,o=!1,i=void 0;try{for(var a,s=e[Symbol.iterator]();!(r=(a=s.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch(e){o=!0,i=e}finally{try{!r&&s.return&&s.return()}finally{if(o)throw i}}return n}return function(t,n){if(Array.isArray(t))return t;if(Symbol.iterator in Object(t))return e(t,n);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),j=(e=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),function(e,t,n){for(var r=!0;r;){var o=e,i=t,a=n;r=!1,null===o&&(o=Function.prototype);var s=Object.getOwnPropertyDescriptor(o,i);if(void 0!==s){if("value"in s)return s.value;var c=s.get;if(void 0===c)return;return c.call(a)}var u=Object.getPrototypeOf(o);if(null===u)return;e=u,t=i,n=a,r=!0,s=u=void 0}});function t(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function T(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}if(void 0===n)throw new Error("You must include the utils.js file before tether.js");var i=(K=n.Utils).getScrollParents,d=(f=K.getBounds,K.getOffsetParent),v=(m=K.extend,K.addClass),g=K.removeClass,h=(x=K.updateClasses,E=K.defer,S=K.flush,K.getScrollBarSize),l=K.removeUtilElements;function C(e,t){var n=arguments.length<=2||void 0===arguments[2]?1:arguments[2];return e+n>=t&&t>=e-n}var _,A,Z,N,M=function(){if("undefined"==typeof document)return"";for(var e=document.createElement("div"),t=["transform","WebkitTransform","OTransform","MozTransform","msTransform"],n=0;n<t.length;++n){var r=t[n];if(void 0!==e.style[r])return r}}(),R=[],D=function(){R.forEach((function(e){e.position(!1)})),S()};function I(){return"object"==typeof performance&&"function"==typeof performance.now?performance.now():+new Date}_=null,A=null,Z=null,N=function e(){if(void 0!==A&&A>16)return A=Math.min(A-16,250),void(Z=setTimeout(e,250));void 0!==_&&I()-_<10||(null!=Z&&(clearTimeout(Z),Z=null),_=I(),D(),A=I()-_)},"undefined"!=typeof window&&void 0!==window.addEventListener&&["resize","scroll","touchmove"].forEach((function(e){window.addEventListener(e,N)}));var L={center:"center",left:"right",right:"left"},F={middle:"middle",top:"bottom",bottom:"top"},H={top:0,left:0,middle:"50%",center:"50%",bottom:"100%",right:"100%"},W=function(e,t){var n=e.left,r=e.top;return"auto"===n&&(n=L[t.left]),"auto"===r&&(r=F[t.top]),{left:n,top:r}},B=function(e){var t=e.left,n=e.top;return void 0!==H[e.left]&&(t=H[e.left]),void 0!==H[e.top]&&(n=H[e.top]),{left:t,top:n}};function U(){for(var e={top:0,left:0},t=arguments.length,n=Array(t),r=0;r<t;r++)n[r]=arguments[r];return n.forEach((function(t){var n=t.top,r=t.left;"string"==typeof n&&(n=parseFloat(n,10)),"string"==typeof r&&(r=parseFloat(r,10)),e.top+=n,e.left+=r})),e}function z(e,t){return"string"==typeof e.left&&-1!==e.left.indexOf("%")&&(e.left=parseFloat(e.left,10)/100*t.width),"string"==typeof e.top&&-1!==e.top.indexOf("%")&&(e.top=parseFloat(e.top,10)/100*t.height),e}var G=function(e){var t=e.split(" "),n=P(t,2);return{top:n[0],left:n[1]}},q=G,$=function(r){function o(e){var r=this;t(this,o),j(Object.getPrototypeOf(o.prototype),"constructor",this).call(this),this.position=this.position.bind(this),R.push(this),this.history=[],this.setOptions(e,!1),n.modules.forEach((function(e){void 0!==e.initialize&&e.initialize.call(r)})),this.position()}return T(o,r),e(o,[{key:"getClass",value:function(){var e=arguments.length<=0||void 0===arguments[0]?"":arguments[0],t=this.options.classes;return void 0!==t&&t[e]?this.options.classes[e]:this.options.classPrefix?this.options.classPrefix+"-"+e:e}},{key:"setOptions",value:function(e){var t=this,n=arguments.length<=1||void 0===arguments[1]||arguments[1],r={offset:"0 0",targetOffset:"0 0",targetAttachment:"auto auto",classPrefix:"tether"};this.options=m(r,e);var o=this.options,a=o.element,s=o.target,c=o.targetModifier;if(this.element=a,this.target=s,this.targetModifier=c,"viewport"===this.target?(this.target=document.body,this.targetModifier="visible"):"scroll-handle"===this.target&&(this.target=document.body,this.targetModifier="scroll-handle"),["element","target"].forEach((function(e){if(void 0===t[e])throw new Error("Tether Error: Both element and target must be defined");void 0!==t[e].jquery?t[e]=t[e][0]:"string"==typeof t[e]&&(t[e]=document.querySelector(t[e]))})),v(this.element,this.getClass("element")),!1!==this.options.addTargetClasses&&v(this.target,this.getClass("target")),!this.options.attachment)throw new Error("Tether Error: You must provide an attachment");this.targetAttachment=q(this.options.targetAttachment),this.attachment=q(this.options.attachment),this.offset=G(this.options.offset),this.targetOffset=G(this.options.targetOffset),void 0!==this.scrollParents&&this.disable(),"scroll-handle"===this.targetModifier?this.scrollParents=[this.target]:this.scrollParents=i(this.target),!1!==this.options.enabled&&this.enable(n)}},{key:"getTargetBounds",value:function(){if(void 0===this.targetModifier)return f(this.target);if("visible"===this.targetModifier)return this.target===document.body?{top:pageYOffset,left:pageXOffset,height:innerHeight,width:innerWidth}:((i={height:(e=f(this.target)).height,width:e.width,top:e.top,left:e.left}).height=Math.min(i.height,e.height-(pageYOffset-e.top)),i.height=Math.min(i.height,e.height-(e.top+e.height-(pageYOffset+innerHeight))),i.height=Math.min(innerHeight,i.height),i.height-=2,i.width=Math.min(i.width,e.width-(pageXOffset-e.left)),i.width=Math.min(i.width,e.width-(e.left+e.width-(pageXOffset+innerWidth))),i.width=Math.min(innerWidth,i.width),i.width-=2,i.top<pageYOffset&&(i.top=pageYOffset),i.left<pageXOffset&&(i.left=pageXOffset),i);if("scroll-handle"===this.targetModifier){var e=void 0,t=this.target;t===document.body?(t=document.documentElement,e={left:pageXOffset,top:pageYOffset,height:innerHeight,width:innerWidth}):e=f(t);var n=getComputedStyle(t),r=0;(t.scrollWidth>t.clientWidth||[n.overflow,n.overflowX].indexOf("scroll")>=0||this.target!==document.body)&&(r=15);var o=e.height-parseFloat(n.borderTopWidth)-parseFloat(n.borderBottomWidth)-r,i={width:15,height:.975*o*(o/t.scrollHeight),left:e.left+e.width-parseFloat(n.borderLeftWidth)-15},a=0;o<408&&this.target===document.body&&(a=-11e-5*Math.pow(o,2)-.00727*o+22.58),this.target!==document.body&&(i.height=Math.max(i.height,24));var s=this.target.scrollTop/(t.scrollHeight-o);return i.top=s*(o-i.height-a)+e.top+parseFloat(n.borderTopWidth),this.target===document.body&&(i.height=Math.max(i.height,24)),i}}},{key:"clearCache",value:function(){this._cache={}}},{key:"cache",value:function(e,t){return void 0===this._cache&&(this._cache={}),void 0===this._cache[e]&&(this._cache[e]=t.call(this)),this._cache[e]}},{key:"enable",value:function(){var e=this,t=arguments.length<=0||void 0===arguments[0]||arguments[0];!1!==this.options.addTargetClasses&&v(this.target,this.getClass("enabled")),v(this.element,this.getClass("enabled")),this.enabled=!0,this.scrollParents.forEach((function(t){t!==e.target.ownerDocument&&t.addEventListener("scroll",e.position)})),t&&this.position()}},{key:"disable",value:function(){var e=this;g(this.target,this.getClass("enabled")),g(this.element,this.getClass("enabled")),this.enabled=!1,void 0!==this.scrollParents&&this.scrollParents.forEach((function(t){t.removeEventListener("scroll",e.position)}))}},{key:"destroy",value:function(){var e=this;this.disable(),R.forEach((function(t,n){t===e&&R.splice(n,1)})),0===R.length&&l()}},{key:"updateAttachClasses",value:function(e,t){var n=this;e=e||this.attachment,t=t||this.targetAttachment;var r=["left","top","bottom","right","middle","center"];void 0!==this._addAttachClasses&&this._addAttachClasses.length&&this._addAttachClasses.splice(0,this._addAttachClasses.length),void 0===this._addAttachClasses&&(this._addAttachClasses=[]);var o=this._addAttachClasses;e.top&&o.push(this.getClass("element-attached")+"-"+e.top),e.left&&o.push(this.getClass("element-attached")+"-"+e.left),t.top&&o.push(this.getClass("target-attached")+"-"+t.top),t.left&&o.push(this.getClass("target-attached")+"-"+t.left);var i=[];r.forEach((function(e){i.push(n.getClass("element-attached")+"-"+e),i.push(n.getClass("target-attached")+"-"+e)})),E((function(){void 0!==n._addAttachClasses&&(x(n.element,n._addAttachClasses,i),!1!==n.options.addTargetClasses&&x(n.target,n._addAttachClasses,i),delete n._addAttachClasses)}))}},{key:"position",value:function(){var e=this,t=arguments.length<=0||void 0===arguments[0]||arguments[0];if(this.enabled){this.clearCache();var r=W(this.targetAttachment,this.attachment);this.updateAttachClasses(this.attachment,r);var o=this.cache("element-bounds",(function(){return f(e.element)})),i=o.width,a=o.height;if(0===i&&0===a&&void 0!==this.lastSize){var s=this.lastSize;i=s.width,a=s.height}else this.lastSize={width:i,height:a};var c=this.cache("target-bounds",(function(){return e.getTargetBounds()})),u=c,l=z(B(this.attachment),{width:i,height:a}),p=z(B(r),u),m=z(this.offset,{width:i,height:a}),g=z(this.targetOffset,u);l=U(l,m),p=U(p,g);for(var v=c.left+p.left-l.left,y=c.top+p.top-l.top,b=0;b<n.modules.length;++b){var w=n.modules[b].position.call(this,{left:v,top:y,targetAttachment:r,targetPos:c,elementPos:o,offset:l,targetOffset:p,manualOffset:m,manualTargetOffset:g,scrollbarSize:k,attachment:this.attachment});if(!1===w)return!1;void 0!==w&&"object"==typeof w&&(y=w.top,v=w.left)}var x={page:{top:y,left:v},viewport:{top:y-pageYOffset,bottom:pageYOffset-y-a+innerHeight,left:v-pageXOffset,right:pageXOffset-v-i+innerWidth}},O=this.target.ownerDocument,E=O.defaultView,k=void 0;return E.innerHeight>O.documentElement.clientHeight&&(k=this.cache("scrollbar-size",h),x.viewport.bottom-=k.height),E.innerWidth>O.documentElement.clientWidth&&(k=this.cache("scrollbar-size",h),x.viewport.right-=k.width),-1!==["","static"].indexOf(O.body.style.position)&&-1!==["","static"].indexOf(O.body.parentElement.style.position)||(x.page.bottom=O.body.scrollHeight-y-a,x.page.right=O.body.scrollWidth-v-i),void 0!==this.options.optimizations&&!1!==this.options.optimizations.moveElement&&void 0===this.targetModifier&&function(){var t=e.cache("target-offsetparent",(function(){return d(e.target)})),n=e.cache("target-offsetparent-bounds",(function(){return f(t)})),r=getComputedStyle(t),o=n,i={};if(["Top","Left","Bottom","Right"].forEach((function(e){i[e.toLowerCase()]=parseFloat(r["border"+e+"Width"])})),n.right=O.body.scrollWidth-n.left-o.width+i.right,n.bottom=O.body.scrollHeight-n.top-o.height+i.bottom,x.page.top>=n.top+i.top&&x.page.bottom>=n.bottom&&x.page.left>=n.left+i.left&&x.page.right>=n.right){var a=t.scrollTop,s=t.scrollLeft;x.offset={top:x.page.top-n.top+a-i.top,left:x.page.left-n.left+s-i.left}}}(),this.move(x),this.history.unshift(x),this.history.length>3&&this.history.pop(),t&&S(),!0}}},{key:"move",value:function(e){var t=this;if(void 0!==this.element.parentNode){var n={};for(var r in e)for(var o in n[r]={},e[r]){for(var i=!1,a=0;a<this.history.length;++a){var s=this.history[a];if(void 0!==s[r]&&!C(s[r][o],e[r][o])){i=!0;break}}i||(n[r][o]=!0)}var c={top:"",left:"",right:"",bottom:""},u=function(e,n){if(!1!==(void 0!==t.options.optimizations?t.options.optimizations.gpu:null)){var r=void 0,o=void 0;e.top?(c.top=0,r=n.top):(c.bottom=0,r=-n.bottom),e.left?(c.left=0,o=n.left):(c.right=0,o=-n.right),"number"==typeof window.devicePixelRatio&&devicePixelRatio%1==0&&(o=Math.round(o*devicePixelRatio)/devicePixelRatio,r=Math.round(r*devicePixelRatio)/devicePixelRatio),c[M]="translateX("+o+"px) translateY("+r+"px)","msTransform"!==M&&(c[M]+=" translateZ(0)")}else e.top?c.top=n.top+"px":c.bottom=n.bottom+"px",e.left?c.left=n.left+"px":c.right=n.right+"px"},l=!1;if((n.page.top||n.page.bottom)&&(n.page.left||n.page.right)?(c.position="absolute",u(n.page,e.page)):(n.viewport.top||n.viewport.bottom)&&(n.viewport.left||n.viewport.right)?(c.position="fixed",u(n.viewport,e.viewport)):void 0!==n.offset&&n.offset.top&&n.offset.left?function(){c.position="absolute";var r=t.cache("target-offsetparent",(function(){return d(t.target)}));d(t.element)!==r&&E((function(){t.element.parentNode.removeChild(t.element),r.appendChild(t.element)})),u(n.offset,e.offset),l=!0}():(c.position="absolute",u({top:!0,left:!0},e.page)),!l)if(this.options.bodyElement)this.element.parentNode!==this.options.bodyElement&&this.options.bodyElement.appendChild(this.element);else{for(var f=function(e){var t=e.ownerDocument;return(t.fullscreenElement||t.webkitFullscreenElement||t.mozFullScreenElement||t.msFullscreenElement)===e},p=!0,h=this.element.parentNode;h&&1===h.nodeType&&"BODY"!==h.tagName&&!f(h);){if("static"!==getComputedStyle(h).position){p=!1;break}h=h.parentNode}p||(this.element.parentNode.removeChild(this.element),this.element.ownerDocument.body.appendChild(this.element))}var g={},v=!1;for(var o in c){var y=c[o];this.element.style[o]!==y&&(v=!0,g[o]=y)}v&&E((function(){m(t.element.style,g),t.trigger("repositioned")}))}}}]),o}(k);$.modules=[],n.position=D;var V=m($,n);P=function(){function e(e,t){var n=[],r=!0,o=!1,i=void 0;try{for(var a,s=e[Symbol.iterator]();!(r=(a=s.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch(e){o=!0,i=e}finally{try{!r&&s.return&&s.return()}finally{if(o)throw i}}return n}return function(t,n){if(Array.isArray(t))return t;if(Symbol.iterator in Object(t))return e(t,n);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),f=(K=n.Utils).getBounds;var m=K.extend,Y=(x=K.updateClasses,E=K.defer,["left","top","right","bottom"]);function X(e,t){return"scrollParent"===t?t=e.scrollParents[0]:"window"===t&&(t=[pageXOffset,pageYOffset,innerWidth+pageXOffset,innerHeight+pageYOffset]),t===document&&(t=t.documentElement),void 0!==t.nodeType&&function(){var e=t,n=f(t),r=n,o=getComputedStyle(t);if(t=[r.left,r.top,n.width+r.left,n.height+r.top],e.ownerDocument!==document){var i=e.ownerDocument.defaultView;t[0]+=i.pageXOffset,t[1]+=i.pageYOffset,t[2]+=i.pageXOffset,t[3]+=i.pageYOffset}Y.forEach((function(e,n){"Top"===(e=e[0].toUpperCase()+e.substr(1))||"Left"===e?t[n]+=parseFloat(o["border"+e+"Width"]):t[n]-=parseFloat(o["border"+e+"Width"])}))}(),t}n.modules.push({position:function(e){var t=this,n=e.top,r=e.left,o=e.targetAttachment;if(!this.options.constraints)return!0;var i=this.cache("element-bounds",(function(){return f(t.element)})),a=i.height,s=i.width;if(0===s&&0===a&&void 0!==this.lastSize){var c=this.lastSize;s=c.width,a=c.height}var u=this.cache("target-bounds",(function(){return t.getTargetBounds()})),l=u.height,d=u.width,p=[this.getClass("pinned"),this.getClass("out-of-bounds")];this.options.constraints.forEach((function(e){var t=e.outOfBoundsClass,n=e.pinnedClass;t&&p.push(t),n&&p.push(n)})),p.forEach((function(e){["left","top","right","bottom"].forEach((function(t){p.push(e+"-"+t)}))}));var h=[],g=m({},o),v=m({},this.attachment);return this.options.constraints.forEach((function(e){var i=e.to,c=e.attachment,u=e.pin;void 0===c&&(c="");var f=void 0,p=void 0;if(c.indexOf(" ")>=0){var m=c.split(" "),y=P(m,2);p=y[0],f=y[1]}else f=p=c;var b=X(t,i);"target"!==p&&"both"!==p||(n<b[1]&&"top"===g.top&&(n+=l,g.top="bottom"),n+a>b[3]&&"bottom"===g.top&&(n-=l,g.top="top")),"together"===p&&("top"===g.top&&("bottom"===v.top&&n<b[1]?(n+=l,g.top="bottom",n+=a,v.top="top"):"top"===v.top&&n+a>b[3]&&n-(a-l)>=b[1]&&(n-=a-l,g.top="bottom",v.top="bottom")),"bottom"===g.top&&("top"===v.top&&n+a>b[3]?(n-=l,g.top="top",n-=a,v.top="bottom"):"bottom"===v.top&&n<b[1]&&n+(2*a-l)<=b[3]&&(n+=a-l,g.top="top",v.top="top")),"middle"===g.top&&(n+a>b[3]&&"top"===v.top?(n-=a,v.top="bottom"):n<b[1]&&"bottom"===v.top&&(n+=a,v.top="top"))),"target"!==f&&"both"!==f||(r<b[0]&&"left"===g.left&&(r+=d,g.left="right"),r+s>b[2]&&"right"===g.left&&(r-=d,g.left="left")),"together"===f&&(r<b[0]&&"left"===g.left?"right"===v.left?(r+=d,g.left="right",r+=s,v.left="left"):"left"===v.left&&(r+=d,g.left="right",r-=s,v.left="right"):r+s>b[2]&&"right"===g.left?"left"===v.left?(r-=d,g.left="left",r-=s,v.left="right"):"right"===v.left&&(r-=d,g.left="left",r+=s,v.left="left"):"center"===g.left&&(r+s>b[2]&&"left"===v.left?(r-=s,v.left="right"):r<b[0]&&"right"===v.left&&(r+=s,v.left="left"))),"element"!==p&&"both"!==p||(n<b[1]&&"bottom"===v.top&&(n+=a,v.top="top"),n+a>b[3]&&"top"===v.top&&(n-=a,v.top="bottom")),"element"!==f&&"both"!==f||(r<b[0]&&("right"===v.left?(r+=s,v.left="left"):"center"===v.left&&(r+=s/2,v.left="left")),r+s>b[2]&&("left"===v.left?(r-=s,v.left="right"):"center"===v.left&&(r-=s/2,v.left="right"))),"string"==typeof u?u=u.split(",").map((function(e){return e.trim()})):!0===u&&(u=["top","left","right","bottom"]),u=u||[];var w,x,O=[],E=[];n<b[1]&&(u.indexOf("top")>=0?(n=b[1],O.push("top")):E.push("top")),n+a>b[3]&&(u.indexOf("bottom")>=0?(n=b[3]-a,O.push("bottom")):E.push("bottom")),r<b[0]&&(u.indexOf("left")>=0?(r=b[0],O.push("left")):E.push("left")),r+s>b[2]&&(u.indexOf("right")>=0?(r=b[2]-s,O.push("right")):E.push("right")),O.length&&(w=void 0,w=void 0!==t.options.pinnedClass?t.options.pinnedClass:t.getClass("pinned"),h.push(w),O.forEach((function(e){h.push(w+"-"+e)}))),E.length&&(x=void 0,x=void 0!==t.options.outOfBoundsClass?t.options.outOfBoundsClass:t.getClass("out-of-bounds"),h.push(x),E.forEach((function(e){h.push(x+"-"+e)}))),(O.indexOf("left")>=0||O.indexOf("right")>=0)&&(v.left=g.left=!1),(O.indexOf("top")>=0||O.indexOf("bottom")>=0)&&(v.top=g.top=!1),g.top===o.top&&g.left===o.left&&v.top===t.attachment.top&&v.left===t.attachment.left||(t.updateAttachClasses(v,g),t.trigger("update",{attachment:v,targetAttachment:g}))})),E((function(){!1!==t.options.addTargetClasses&&x(t.target,h,p),x(t.element,h,p)})),{top:n,left:r}}});var K,f=(K=n.Utils).getBounds,x=K.updateClasses;return E=K.defer,n.modules.push({position:function(e){var t=this,n=e.top,r=e.left,o=this.cache("element-bounds",(function(){return f(t.element)})),i=o.height,a=o.width,s=this.getTargetBounds(),c=n+i,u=r+a,l=[];n<=s.bottom&&c>=s.top&&["left","right"].forEach((function(e){var t=s[e];t!==r&&t!==u||l.push(e)})),r<=s.right&&u>=s.left&&["top","bottom"].forEach((function(e){var t=s[e];t!==n&&t!==c||l.push(e)}));var d=[],p=[],h=["left","top","right","bottom"];return d.push(this.getClass("abutted")),h.forEach((function(e){d.push(t.getClass("abutted")+"-"+e)})),l.length&&p.push(this.getClass("abutted")),l.forEach((function(e){p.push(t.getClass("abutted")+"-"+e)})),E((function(){!1!==t.options.addTargetClasses&&x(t.target,p,d),x(t.element,p,d)})),!0}}),P=function(){function e(e,t){var n=[],r=!0,o=!1,i=void 0;try{for(var a,s=e[Symbol.iterator]();!(r=(a=s.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch(e){o=!0,i=e}finally{try{!r&&s.return&&s.return()}finally{if(o)throw i}}return n}return function(t,n){if(Array.isArray(t))return t;if(Symbol.iterator in Object(t))return e(t,n);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),n.modules.push({position:function(e){var t=e.top,n=e.left;if(this.options.shift){var r=this.options.shift;"function"==typeof this.options.shift&&(r=this.options.shift.call(this,{top:t,left:n}));var o=void 0,i=void 0;if("string"==typeof r){(r=r.split(" "))[1]=r[1]||r[0];var a=P(r,2);o=a[0],i=a[1],o=parseFloat(o,10),i=parseFloat(i,10)}else o=r.top,i=r.left;return{top:t+=o,left:n+=i}}}}),V},void 0===(o="function"==typeof n?n.apply(t,r):n)||(e.exports=o)},6919:(e,t,n)=>{"use strict";n.d(t,{Z:()=>o});var r=n(1024);const o=r.useLayoutEffect},13615:function(e){
58
58
  /*! @license DOMPurify 2.4.0 | (c) Cure53 and other contributors | Released under the Apache license 2.0 and Mozilla Public License 2.0 | github.com/cure53/DOMPurify/blob/2.4.0/LICENSE */
59
- e.exports=function(){"use strict";function e(t){return e="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},e(t)}function t(e,n){return t=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},t(e,n)}function n(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}function r(e,o,i){return r=n()?Reflect.construct:function(e,n,r){var o=[null];o.push.apply(o,n);var i=new(Function.bind.apply(e,o));return r&&t(i,r.prototype),i},r.apply(null,arguments)}function o(e){return i(e)||a(e)||s(e)||u()}function i(e){if(Array.isArray(e))return c(e)}function a(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}function s(e,t){if(e){if("string"==typeof e)return c(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?c(e,t):void 0}}function c(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function u(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var l=Object.hasOwnProperty,f=Object.setPrototypeOf,d=Object.isFrozen,p=Object.getPrototypeOf,h=Object.getOwnPropertyDescriptor,m=Object.freeze,g=Object.seal,v=Object.create,y="undefined"!=typeof Reflect&&Reflect,b=y.apply,w=y.construct;b||(b=function(e,t,n){return e.apply(t,n)}),m||(m=function(e){return e}),g||(g=function(e){return e}),w||(w=function(e,t){return r(e,o(t))});var x=A(Array.prototype.forEach),O=A(Array.prototype.pop),E=A(Array.prototype.push),S=A(String.prototype.toLowerCase),k=A(String.prototype.match),P=A(String.prototype.replace),j=A(String.prototype.indexOf),T=A(String.prototype.trim),C=A(RegExp.prototype.test),_=Z(TypeError);function A(e){return function(t){for(var n=arguments.length,r=new Array(n>1?n-1:0),o=1;o<n;o++)r[o-1]=arguments[o];return b(e,t,r)}}function Z(e){return function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return w(e,n)}}function N(e,t,n){n=n||S,f&&f(e,null);for(var r=t.length;r--;){var o=t[r];if("string"==typeof o){var i=n(o);i!==o&&(d(t)||(t[r]=i),o=i)}e[o]=!0}return e}function M(e){var t,n=v(null);for(t in e)b(l,e,[t])&&(n[t]=e[t]);return n}function R(e,t){for(;null!==e;){var n=h(e,t);if(n){if(n.get)return A(n.get);if("function"==typeof n.value)return A(n.value)}e=p(e)}function r(e){return console.warn("fallback value for",e),null}return r}var D=m(["a","abbr","acronym","address","area","article","aside","audio","b","bdi","bdo","big","blink","blockquote","body","br","button","canvas","caption","center","cite","code","col","colgroup","content","data","datalist","dd","decorator","del","details","dfn","dialog","dir","div","dl","dt","element","em","fieldset","figcaption","figure","font","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","img","input","ins","kbd","label","legend","li","main","map","mark","marquee","menu","menuitem","meter","nav","nobr","ol","optgroup","option","output","p","picture","pre","progress","q","rp","rt","ruby","s","samp","section","select","shadow","small","source","spacer","span","strike","strong","style","sub","summary","sup","table","tbody","td","template","textarea","tfoot","th","thead","time","tr","track","tt","u","ul","var","video","wbr"]),I=m(["svg","a","altglyph","altglyphdef","altglyphitem","animatecolor","animatemotion","animatetransform","circle","clippath","defs","desc","ellipse","filter","font","g","glyph","glyphref","hkern","image","line","lineargradient","marker","mask","metadata","mpath","path","pattern","polygon","polyline","radialgradient","rect","stop","style","switch","symbol","text","textpath","title","tref","tspan","view","vkern"]),L=m(["feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence"]),F=m(["animate","color-profile","cursor","discard","fedropshadow","font-face","font-face-format","font-face-name","font-face-src","font-face-uri","foreignobject","hatch","hatchpath","mesh","meshgradient","meshpatch","meshrow","missing-glyph","script","set","solidcolor","unknown","use"]),H=m(["math","menclose","merror","mfenced","mfrac","mglyph","mi","mlabeledtr","mmultiscripts","mn","mo","mover","mpadded","mphantom","mroot","mrow","ms","mspace","msqrt","mstyle","msub","msup","msubsup","mtable","mtd","mtext","mtr","munder","munderover"]),W=m(["maction","maligngroup","malignmark","mlongdiv","mscarries","mscarry","msgroup","mstack","msline","msrow","semantics","annotation","annotation-xml","mprescripts","none"]),B=m(["#text"]),U=m(["accept","action","align","alt","autocapitalize","autocomplete","autopictureinpicture","autoplay","background","bgcolor","border","capture","cellpadding","cellspacing","checked","cite","class","clear","color","cols","colspan","controls","controlslist","coords","crossorigin","datetime","decoding","default","dir","disabled","disablepictureinpicture","disableremoteplayback","download","draggable","enctype","enterkeyhint","face","for","headers","height","hidden","high","href","hreflang","id","inputmode","integrity","ismap","kind","label","lang","list","loading","loop","low","max","maxlength","media","method","min","minlength","multiple","muted","name","nonce","noshade","novalidate","nowrap","open","optimum","pattern","placeholder","playsinline","poster","preload","pubdate","radiogroup","readonly","rel","required","rev","reversed","role","rows","rowspan","spellcheck","scope","selected","shape","size","sizes","span","srclang","start","src","srcset","step","style","summary","tabindex","title","translate","type","usemap","valign","value","width","xmlns","slot"]),z=m(["accent-height","accumulate","additive","alignment-baseline","ascent","attributename","attributetype","azimuth","basefrequency","baseline-shift","begin","bias","by","class","clip","clippathunits","clip-path","clip-rule","color","color-interpolation","color-interpolation-filters","color-profile","color-rendering","cx","cy","d","dx","dy","diffuseconstant","direction","display","divisor","dur","edgemode","elevation","end","fill","fill-opacity","fill-rule","filter","filterunits","flood-color","flood-opacity","font-family","font-size","font-size-adjust","font-stretch","font-style","font-variant","font-weight","fx","fy","g1","g2","glyph-name","glyphref","gradientunits","gradienttransform","height","href","id","image-rendering","in","in2","k","k1","k2","k3","k4","kerning","keypoints","keysplines","keytimes","lang","lengthadjust","letter-spacing","kernelmatrix","kernelunitlength","lighting-color","local","marker-end","marker-mid","marker-start","markerheight","markerunits","markerwidth","maskcontentunits","maskunits","max","mask","media","method","mode","min","name","numoctaves","offset","operator","opacity","order","orient","orientation","origin","overflow","paint-order","path","pathlength","patterncontentunits","patterntransform","patternunits","points","preservealpha","preserveaspectratio","primitiveunits","r","rx","ry","radius","refx","refy","repeatcount","repeatdur","restart","result","rotate","scale","seed","shape-rendering","specularconstant","specularexponent","spreadmethod","startoffset","stddeviation","stitchtiles","stop-color","stop-opacity","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke","stroke-width","style","surfacescale","systemlanguage","tabindex","targetx","targety","transform","transform-origin","text-anchor","text-decoration","text-rendering","textlength","type","u1","u2","unicode","values","viewbox","visibility","version","vert-adv-y","vert-origin-x","vert-origin-y","width","word-spacing","wrap","writing-mode","xchannelselector","ychannelselector","x","x1","x2","xmlns","y","y1","y2","z","zoomandpan"]),G=m(["accent","accentunder","align","bevelled","close","columnsalign","columnlines","columnspan","denomalign","depth","dir","display","displaystyle","encoding","fence","frame","height","href","id","largeop","length","linethickness","lspace","lquote","mathbackground","mathcolor","mathsize","mathvariant","maxsize","minsize","movablelimits","notation","numalign","open","rowalign","rowlines","rowspacing","rowspan","rspace","rquote","scriptlevel","scriptminsize","scriptsizemultiplier","selection","separator","separators","stretchy","subscriptshift","supscriptshift","symmetric","voffset","width","xmlns"]),q=m(["xlink:href","xml:id","xlink:title","xml:space","xmlns:xlink"]),$=g(/\{\{[\w\W]*|[\w\W]*\}\}/gm),V=g(/<%[\w\W]*|[\w\W]*%>/gm),Y=g(/^data-[\-\w.\u00B7-\uFFFF]/),X=g(/^aria-[\-\w]+$/),K=g(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|cid|xmpp):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),J=g(/^(?:\w+script|data):/i),Q=g(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),ee=g(/^html$/i),te=function(){return"undefined"==typeof window?null:window},ne=function(t,n){if("object"!==e(t)||"function"!=typeof t.createPolicy)return null;var r=null,o="data-tt-policy-suffix";n.currentScript&&n.currentScript.hasAttribute(o)&&(r=n.currentScript.getAttribute(o));var i="dompurify"+(r?"#"+r:"");try{return t.createPolicy(i,{createHTML:function(e){return e},createScriptURL:function(e){return e}})}catch(e){return console.warn("TrustedTypes policy "+i+" could not be created."),null}};function re(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:te(),n=function(e){return re(e)};if(n.version="2.4.0",n.removed=[],!t||!t.document||9!==t.document.nodeType)return n.isSupported=!1,n;var r=t.document,i=t.document,a=t.DocumentFragment,s=t.HTMLTemplateElement,c=t.Node,u=t.Element,l=t.NodeFilter,f=t.NamedNodeMap,d=void 0===f?t.NamedNodeMap||t.MozNamedAttrMap:f,p=t.HTMLFormElement,h=t.DOMParser,g=t.trustedTypes,v=u.prototype,y=R(v,"cloneNode"),b=R(v,"nextSibling"),w=R(v,"childNodes"),A=R(v,"parentNode");if("function"==typeof s){var Z=i.createElement("template");Z.content&&Z.content.ownerDocument&&(i=Z.content.ownerDocument)}var oe=ne(g,r),ie=oe?oe.createHTML(""):"",ae=i,se=ae.implementation,ce=ae.createNodeIterator,ue=ae.createDocumentFragment,le=ae.getElementsByTagName,fe=r.importNode,de={};try{de=M(i).documentMode?i.documentMode:{}}catch(e){}var pe={};n.isSupported="function"==typeof A&&se&&void 0!==se.createHTMLDocument&&9!==de;var he,me,ge=$,ve=V,ye=Y,be=X,we=J,xe=Q,Oe=K,Ee=null,Se=N({},[].concat(o(D),o(I),o(L),o(H),o(B))),ke=null,Pe=N({},[].concat(o(U),o(z),o(G),o(q))),je=Object.seal(Object.create(null,{tagNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},allowCustomizedBuiltInElements:{writable:!0,configurable:!1,enumerable:!0,value:!1}})),Te=null,Ce=null,_e=!0,Ae=!0,Ze=!1,Ne=!1,Me=!1,Re=!1,De=!1,Ie=!1,Le=!1,Fe=!1,He=!0,We=!1,Be="user-content-",Ue=!0,ze=!1,Ge={},qe=null,$e=N({},["annotation-xml","audio","colgroup","desc","foreignobject","head","iframe","math","mi","mn","mo","ms","mtext","noembed","noframes","noscript","plaintext","script","style","svg","template","thead","title","video","xmp"]),Ve=null,Ye=N({},["audio","video","img","source","image","track"]),Xe=null,Ke=N({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),Je="http://www.w3.org/1998/Math/MathML",Qe="http://www.w3.org/2000/svg",et="http://www.w3.org/1999/xhtml",tt=et,nt=!1,rt=["application/xhtml+xml","text/html"],ot="text/html",it=null,at=i.createElement("form"),st=function(e){return e instanceof RegExp||e instanceof Function},ct=function(t){it&&it===t||(t&&"object"===e(t)||(t={}),t=M(t),he=he=-1===rt.indexOf(t.PARSER_MEDIA_TYPE)?ot:t.PARSER_MEDIA_TYPE,me="application/xhtml+xml"===he?function(e){return e}:S,Ee="ALLOWED_TAGS"in t?N({},t.ALLOWED_TAGS,me):Se,ke="ALLOWED_ATTR"in t?N({},t.ALLOWED_ATTR,me):Pe,Xe="ADD_URI_SAFE_ATTR"in t?N(M(Ke),t.ADD_URI_SAFE_ATTR,me):Ke,Ve="ADD_DATA_URI_TAGS"in t?N(M(Ye),t.ADD_DATA_URI_TAGS,me):Ye,qe="FORBID_CONTENTS"in t?N({},t.FORBID_CONTENTS,me):$e,Te="FORBID_TAGS"in t?N({},t.FORBID_TAGS,me):{},Ce="FORBID_ATTR"in t?N({},t.FORBID_ATTR,me):{},Ge="USE_PROFILES"in t&&t.USE_PROFILES,_e=!1!==t.ALLOW_ARIA_ATTR,Ae=!1!==t.ALLOW_DATA_ATTR,Ze=t.ALLOW_UNKNOWN_PROTOCOLS||!1,Ne=t.SAFE_FOR_TEMPLATES||!1,Me=t.WHOLE_DOCUMENT||!1,Ie=t.RETURN_DOM||!1,Le=t.RETURN_DOM_FRAGMENT||!1,Fe=t.RETURN_TRUSTED_TYPE||!1,De=t.FORCE_BODY||!1,He=!1!==t.SANITIZE_DOM,We=t.SANITIZE_NAMED_PROPS||!1,Ue=!1!==t.KEEP_CONTENT,ze=t.IN_PLACE||!1,Oe=t.ALLOWED_URI_REGEXP||Oe,tt=t.NAMESPACE||et,t.CUSTOM_ELEMENT_HANDLING&&st(t.CUSTOM_ELEMENT_HANDLING.tagNameCheck)&&(je.tagNameCheck=t.CUSTOM_ELEMENT_HANDLING.tagNameCheck),t.CUSTOM_ELEMENT_HANDLING&&st(t.CUSTOM_ELEMENT_HANDLING.attributeNameCheck)&&(je.attributeNameCheck=t.CUSTOM_ELEMENT_HANDLING.attributeNameCheck),t.CUSTOM_ELEMENT_HANDLING&&"boolean"==typeof t.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements&&(je.allowCustomizedBuiltInElements=t.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements),Ne&&(Ae=!1),Le&&(Ie=!0),Ge&&(Ee=N({},o(B)),ke=[],!0===Ge.html&&(N(Ee,D),N(ke,U)),!0===Ge.svg&&(N(Ee,I),N(ke,z),N(ke,q)),!0===Ge.svgFilters&&(N(Ee,L),N(ke,z),N(ke,q)),!0===Ge.mathMl&&(N(Ee,H),N(ke,G),N(ke,q))),t.ADD_TAGS&&(Ee===Se&&(Ee=M(Ee)),N(Ee,t.ADD_TAGS,me)),t.ADD_ATTR&&(ke===Pe&&(ke=M(ke)),N(ke,t.ADD_ATTR,me)),t.ADD_URI_SAFE_ATTR&&N(Xe,t.ADD_URI_SAFE_ATTR,me),t.FORBID_CONTENTS&&(qe===$e&&(qe=M(qe)),N(qe,t.FORBID_CONTENTS,me)),Ue&&(Ee["#text"]=!0),Me&&N(Ee,["html","head","body"]),Ee.table&&(N(Ee,["tbody"]),delete Te.tbody),m&&m(t),it=t)},ut=N({},["mi","mo","mn","ms","mtext"]),lt=N({},["foreignobject","desc","title","annotation-xml"]),ft=N({},["title","style","font","a","script"]),dt=N({},I);N(dt,L),N(dt,F);var pt=N({},H);N(pt,W);var ht=function(e){var t=A(e);t&&t.tagName||(t={namespaceURI:et,tagName:"template"});var n=S(e.tagName),r=S(t.tagName);return e.namespaceURI===Qe?t.namespaceURI===et?"svg"===n:t.namespaceURI===Je?"svg"===n&&("annotation-xml"===r||ut[r]):Boolean(dt[n]):e.namespaceURI===Je?t.namespaceURI===et?"math"===n:t.namespaceURI===Qe?"math"===n&&lt[r]:Boolean(pt[n]):e.namespaceURI===et&&!(t.namespaceURI===Qe&&!lt[r])&&!(t.namespaceURI===Je&&!ut[r])&&!pt[n]&&(ft[n]||!dt[n])},mt=function(e){E(n.removed,{element:e});try{e.parentNode.removeChild(e)}catch(t){try{e.outerHTML=ie}catch(t){e.remove()}}},gt=function(e,t){try{E(n.removed,{attribute:t.getAttributeNode(e),from:t})}catch(e){E(n.removed,{attribute:null,from:t})}if(t.removeAttribute(e),"is"===e&&!ke[e])if(Ie||Le)try{mt(t)}catch(e){}else try{t.setAttribute(e,"")}catch(e){}},vt=function(e){var t,n;if(De)e="<remove></remove>"+e;else{var r=k(e,/^[\r\n\t ]+/);n=r&&r[0]}"application/xhtml+xml"===he&&(e='<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>'+e+"</body></html>");var o=oe?oe.createHTML(e):e;if(tt===et)try{t=(new h).parseFromString(o,he)}catch(e){}if(!t||!t.documentElement){t=se.createDocument(tt,"template",null);try{t.documentElement.innerHTML=nt?"":o}catch(e){}}var a=t.body||t.documentElement;return e&&n&&a.insertBefore(i.createTextNode(n),a.childNodes[0]||null),tt===et?le.call(t,Me?"html":"body")[0]:Me?t.documentElement:a},yt=function(e){return ce.call(e.ownerDocument||e,e,l.SHOW_ELEMENT|l.SHOW_COMMENT|l.SHOW_TEXT,null,!1)},bt=function(e){return e instanceof p&&("string"!=typeof e.nodeName||"string"!=typeof e.textContent||"function"!=typeof e.removeChild||!(e.attributes instanceof d)||"function"!=typeof e.removeAttribute||"function"!=typeof e.setAttribute||"string"!=typeof e.namespaceURI||"function"!=typeof e.insertBefore)},wt=function(t){return"object"===e(c)?t instanceof c:t&&"object"===e(t)&&"number"==typeof t.nodeType&&"string"==typeof t.nodeName},xt=function(e,t,r){pe[e]&&x(pe[e],(function(e){e.call(n,t,r,it)}))},Ot=function(e){var t;if(xt("beforeSanitizeElements",e,null),bt(e))return mt(e),!0;if(C(/[\u0080-\uFFFF]/,e.nodeName))return mt(e),!0;var r=me(e.nodeName);if(xt("uponSanitizeElement",e,{tagName:r,allowedTags:Ee}),e.hasChildNodes()&&!wt(e.firstElementChild)&&(!wt(e.content)||!wt(e.content.firstElementChild))&&C(/<[/\w]/g,e.innerHTML)&&C(/<[/\w]/g,e.textContent))return mt(e),!0;if("select"===r&&C(/<template/i,e.innerHTML))return mt(e),!0;if(!Ee[r]||Te[r]){if(!Te[r]&&St(r)){if(je.tagNameCheck instanceof RegExp&&C(je.tagNameCheck,r))return!1;if(je.tagNameCheck instanceof Function&&je.tagNameCheck(r))return!1}if(Ue&&!qe[r]){var o=A(e)||e.parentNode,i=w(e)||e.childNodes;if(i&&o)for(var a=i.length-1;a>=0;--a)o.insertBefore(y(i[a],!0),b(e))}return mt(e),!0}return e instanceof u&&!ht(e)?(mt(e),!0):"noscript"!==r&&"noembed"!==r||!C(/<\/no(script|embed)/i,e.innerHTML)?(Ne&&3===e.nodeType&&(t=e.textContent,t=P(t,ge," "),t=P(t,ve," "),e.textContent!==t&&(E(n.removed,{element:e.cloneNode()}),e.textContent=t)),xt("afterSanitizeElements",e,null),!1):(mt(e),!0)},Et=function(e,t,n){if(He&&("id"===t||"name"===t)&&(n in i||n in at))return!1;if(Ae&&!Ce[t]&&C(ye,t));else if(_e&&C(be,t));else if(!ke[t]||Ce[t]){if(!(St(e)&&(je.tagNameCheck instanceof RegExp&&C(je.tagNameCheck,e)||je.tagNameCheck instanceof Function&&je.tagNameCheck(e))&&(je.attributeNameCheck instanceof RegExp&&C(je.attributeNameCheck,t)||je.attributeNameCheck instanceof Function&&je.attributeNameCheck(t))||"is"===t&&je.allowCustomizedBuiltInElements&&(je.tagNameCheck instanceof RegExp&&C(je.tagNameCheck,n)||je.tagNameCheck instanceof Function&&je.tagNameCheck(n))))return!1}else if(Xe[t]);else if(C(Oe,P(n,xe,"")));else if("src"!==t&&"xlink:href"!==t&&"href"!==t||"script"===e||0!==j(n,"data:")||!Ve[e])if(Ze&&!C(we,P(n,xe,"")));else if(n)return!1;return!0},St=function(e){return e.indexOf("-")>0},kt=function(t){var r,o,i,a;xt("beforeSanitizeAttributes",t,null);var s=t.attributes;if(s){var c={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:ke};for(a=s.length;a--;){var u=r=s[a],l=u.name,f=u.namespaceURI;if(o="value"===l?r.value:T(r.value),i=me(l),c.attrName=i,c.attrValue=o,c.keepAttr=!0,c.forceKeepAttr=void 0,xt("uponSanitizeAttribute",t,c),o=c.attrValue,!c.forceKeepAttr&&(gt(l,t),c.keepAttr))if(C(/\/>/i,o))gt(l,t);else{Ne&&(o=P(o,ge," "),o=P(o,ve," "));var d=me(t.nodeName);if(Et(d,i,o)){if(!We||"id"!==i&&"name"!==i||(gt(l,t),o=Be+o),oe&&"object"===e(g)&&"function"==typeof g.getAttributeType)if(f);else switch(g.getAttributeType(d,i)){case"TrustedHTML":o=oe.createHTML(o);break;case"TrustedScriptURL":o=oe.createScriptURL(o)}try{f?t.setAttributeNS(f,l,o):t.setAttribute(l,o),O(n.removed)}catch(e){}}}}xt("afterSanitizeAttributes",t,null)}},Pt=function e(t){var n,r=yt(t);for(xt("beforeSanitizeShadowDOM",t,null);n=r.nextNode();)xt("uponSanitizeShadowNode",n,null),Ot(n)||(n.content instanceof a&&e(n.content),kt(n));xt("afterSanitizeShadowDOM",t,null)};return n.sanitize=function(o){var i,s,u,l,f,d=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if((nt=!o)&&(o="\x3c!--\x3e"),"string"!=typeof o&&!wt(o)){if("function"!=typeof o.toString)throw _("toString is not a function");if("string"!=typeof(o=o.toString()))throw _("dirty is not a string, aborting")}if(!n.isSupported){if("object"===e(t.toStaticHTML)||"function"==typeof t.toStaticHTML){if("string"==typeof o)return t.toStaticHTML(o);if(wt(o))return t.toStaticHTML(o.outerHTML)}return o}if(Re||ct(d),n.removed=[],"string"==typeof o&&(ze=!1),ze){if(o.nodeName){var p=me(o.nodeName);if(!Ee[p]||Te[p])throw _("root node is forbidden and cannot be sanitized in-place")}}else if(o instanceof c)1===(s=(i=vt("\x3c!----\x3e")).ownerDocument.importNode(o,!0)).nodeType&&"BODY"===s.nodeName||"HTML"===s.nodeName?i=s:i.appendChild(s);else{if(!Ie&&!Ne&&!Me&&-1===o.indexOf("<"))return oe&&Fe?oe.createHTML(o):o;if(!(i=vt(o)))return Ie?null:Fe?ie:""}i&&De&&mt(i.firstChild);for(var h=yt(ze?o:i);u=h.nextNode();)3===u.nodeType&&u===l||Ot(u)||(u.content instanceof a&&Pt(u.content),kt(u),l=u);if(l=null,ze)return o;if(Ie){if(Le)for(f=ue.call(i.ownerDocument);i.firstChild;)f.appendChild(i.firstChild);else f=i;return ke.shadowroot&&(f=fe.call(r,f,!0)),f}var m=Me?i.outerHTML:i.innerHTML;return Me&&Ee["!doctype"]&&i.ownerDocument&&i.ownerDocument.doctype&&i.ownerDocument.doctype.name&&C(ee,i.ownerDocument.doctype.name)&&(m="<!DOCTYPE "+i.ownerDocument.doctype.name+">\n"+m),Ne&&(m=P(m,ge," "),m=P(m,ve," ")),oe&&Fe?oe.createHTML(m):m},n.setConfig=function(e){ct(e),Re=!0},n.clearConfig=function(){it=null,Re=!1},n.isValidAttribute=function(e,t,n){it||ct({});var r=me(e),o=me(t);return Et(r,o,n)},n.addHook=function(e,t){"function"==typeof t&&(pe[e]=pe[e]||[],E(pe[e],t))},n.removeHook=function(e){if(pe[e])return O(pe[e])},n.removeHooks=function(e){pe[e]&&(pe[e]=[])},n.removeAllHooks=function(){pe={}},n}return re()}()},1024:e=>{"use strict";e.exports=t},30314:t=>{"use strict";t.exports=e},71298:e=>{e.exports=function(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e},e.exports.__esModule=!0,e.exports.default=e.exports},38088:e=>{e.exports=function(e){return e&&e.__esModule?e:{default:e}},e.exports.__esModule=!0,e.exports.default=e.exports},87462:(e,t,n)=>{"use strict";function r(){return r=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},r.apply(this,arguments)}n.d(t,{Z:()=>r})},88911:(e,t,n)=>{"use strict";function r(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}n.d(t,{Z:()=>r})},83029:(e,t,n)=>{"use strict";function r(e){if(Array.isArray(e))return e}n.d(t,{Z:()=>r})},46927:(e,t,n)=>{"use strict";function r(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}n.d(t,{Z:()=>r})},3640:(e,t,n)=>{"use strict";function r(){return r=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},r.apply(this,arguments)}n.d(t,{Z:()=>r})},56265:(e,t,n)=>{"use strict";function r(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}n.d(t,{Z:()=>r})},8486:(e,t,n)=>{"use strict";n.d(t,{Z:()=>i});var r=n(46927);function o(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function i(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?o(Object(n),!0).forEach((function(t){(0,r.Z)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):o(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}},56315:(e,t,n)=>{"use strict";function r(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}n.d(t,{Z:()=>r})},68957:(e,t,n)=>{"use strict";n.d(t,{Z:()=>a});var r=n(83029);var o=n(61917),i=n(56265);function a(e,t){return(0,r.Z)(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i=[],a=!0,s=!1;try{for(n=n.call(e);!(a=(r=n.next()).done)&&(i.push(r.value),!t||i.length!==t);a=!0);}catch(e){s=!0,o=e}finally{try{a||null==n.return||n.return()}finally{if(s)throw o}}return i}}(e,t)||(0,o.Z)(e,t)||(0,i.Z)()}},91411:(e,t,n)=>{"use strict";function r(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}n.d(t,{Z:()=>r})},73891:(e,t,n)=>{"use strict";function r(e){return r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},r(e)}n.d(t,{Z:()=>r})},61917:(e,t,n)=>{"use strict";n.d(t,{Z:()=>o});var r=n(88911);function o(e,t){if(e){if("string"==typeof e)return(0,r.Z)(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?(0,r.Z)(e,t):void 0}}}},i={};function a(e){var t=i[e];if(void 0!==t)return t.exports;var n=i[e]={id:e,loaded:!1,exports:{}};return o[e].call(n.exports,n,n.exports,a),n.loaded=!0,n.exports}a.m=o,a.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return a.d(t,{a:t}),t},a.d=(e,t)=>{for(var n in t)a.o(t,n)&&!a.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},a.f={},a.e=e=>Promise.all(Object.keys(a.f).reduce(((t,n)=>(a.f[n](e,t),t)),[])),a.u=e=>"chunk-"+({198:"vendor-fontawesome",614:"vendor-icons",802:"html-editor"}[e]||e)+"."+{198:"c39ed1574da117141ef6",614:"d648b0f5987dc373190b",802:"76e3d070bcb73210b761",817:"5758e51444b678849e3d",909:"f0934a9b9f58a57b1c62"}[e]+".js",a.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),a.hmd=e=>((e=Object.create(e)).children||(e.children=[]),Object.defineProperty(e,"exports",{enumerable:!0,set:()=>{throw new Error("ES Modules may not assign module.exports or exports.*, Use ESM export syntax, instead: "+e.id)}}),e),a.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),n={},r="tocco-widget-bundle:",a.l=(e,t,o,i)=>{if(n[e])n[e].push(t);else{var s,c;if(void 0!==o)for(var u=document.getElementsByTagName("script"),l=0;l<u.length;l++){var f=u[l];if(f.getAttribute("src")==e||f.getAttribute("data-webpack")==r+o){s=f;break}}s||(c=!0,(s=document.createElement("script")).charset="utf-8",s.timeout=120,a.nc&&s.setAttribute("nonce",a.nc),s.setAttribute("data-webpack",r+o),s.src=e),n[e]=[t];var d=(t,r)=>{s.onerror=s.onload=null,clearTimeout(p);var o=n[e];if(delete n[e],s.parentNode&&s.parentNode.removeChild(s),o&&o.forEach((e=>e(r))),t)return t(r)},p=setTimeout(d.bind(null,void 0,{type:"timeout",target:s}),12e4);s.onerror=d.bind(null,s.onerror),s.onload=d.bind(null,s.onload),c&&document.head.appendChild(s)}},a.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},a.nmd=e=>(e.paths=[],e.children||(e.children=[]),e),a.j=820,a.p="/",(()=>{var e={820:0};a.f.j=(t,n)=>{var r=a.o(e,t)?e[t]:void 0;if(0!==r)if(r)n.push(r[2]);else{var o=new Promise(((n,o)=>r=e[t]=[n,o]));n.push(r[2]=o);var i=a.p+a.u(t),s=new Error;a.l(i,(n=>{if(a.o(e,t)&&(0!==(r=e[t])&&(e[t]=void 0),r)){var o=n&&("load"===n.type?"missing":n.type),i=n&&n.target&&n.target.src;s.message="Loading chunk "+t+" failed.\n("+o+": "+i+")",s.name="ChunkLoadError",s.type=o,s.request=i,r[1](s)}}),"chunk-"+t,t)}};var t=(t,n)=>{var r,o,[i,s,c]=n,u=0;if(i.some((t=>0!==e[t]))){for(r in s)a.o(s,r)&&(a.m[r]=s[r]);if(c)c(a)}for(t&&t(n);u<i.length;u++)o=i[u],a.o(e,o)&&e[o]&&e[o][0](),e[o]=0},n=self.webpackChunktocco_widget_bundle=self.webpackChunktocco_widget_bundle||[];n.forEach(t.bind(null,0)),n.push=t.bind(null,n.push.bind(n))})(),a.nc=void 0;var s={};return(()=>{"use strict";a.r(s);var e=a(55954),t=a(45697),n=a.n(t),r=a(22731),o=a(45430),i=a(98773);const c={propTypes:n().shape({embedType:n().oneOf(i.Nc),widgetConfigKey:function(e,t,n){if("widget"===e.embedType&&!e[t])return new Error("Prop `"+t+"` is missing for `"+n+"`. Validation failed.")}})};var u,l=a(23369),f=a(50558),d=a(1024),p=a(88162),h=a(319),m=a.n(h),g=a(54061),v=a.n(g),y=function(e,t,n){var r="widget"===l.Z.getEmbedType(),o=l.Z.getBackendUrl(),i=encodeURIComponent("".concat(o,"/nice2/sso-callback")),a=encodeURIComponent(window.location.href),s="provider=".concat(n.unique_id),c="&sourceUri=".concat(a),u=r?"&redirectUri=".concat(i):"",f="".concat(o).concat(e,"?").concat(s).concat(c).concat(u),d=window.open(f,n.label,function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:200,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:200,n={height:e,width:t,left:window.screen.width/2-t/2,top:window.screen.height/2-e/2,resizable:1,scrollbars:1,status:1};return v()(n,(function(e,t,n){return[].concat(m()(e),["".concat(n,"=").concat(t)])}),[]).join(",")}(650,500));window.ssoPopUpCallback=function(e){d.close(),t(e)}},b=a(28655),w=a.n(b),x=a(27361),O=a.n(x),E=a(58804),S=a(58129),k=a(7281),P=a(88601),j=a(58664);const T=(0,E.ZP)(S.Z)(u||(u=w()(["\n && {\n margin-right: 0;\n flex: 1;\n font-size: ",";\n justify-content: center;\n border-radius: ",";\n ","\n span {\n margin-left: 0.5em;\n padding: 0.9rem 0;\n }\n }\n"])),k.Z.font(1.3),P.Z.radii("large"),(function(e){return(0,j.al)((0,j.du)(e,{bg:e.primaryColor,fg:e.secondaryColor||"".concat(O()(e.theme,"colors.paper"),", ").concat(O()(e.theme,"colors.text"))}))}));var C=a(85893);const _=function(e){var t=e.provider,n=e.loginCompleted,r=e.loginEndpoint;return(0,C.jsxs)(T,{primaryColor:t.button_primary_color,secondaryColor:t.button_secondary_color,onClick:function(){y(r,n,t)},children:[t.button_icon&&(0,C.jsx)(p.Z,{position:"prepend",icon:t.button_icon}),(0,C.jsx)("span",{children:t.button_label})]})};var A,Z=E.ZP.div.withConfig({displayName:"StyledButtonContainer"})(A||(A=w()(["\n width: 100%;\n margin-top: 3rem;\n display: grid;\n grid-gap: 1rem;\n grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));\n\n @media (max-width: 1024px) {\n margin-top: 1.5rem;\n }\n"]))),N=a(35997);const M=function(e){var t=e.autoLogin,n=e.providers,r=e.loginEndpoint,o=e.loginCompleted,i=N.Z.usePrevious(n);(0,d.useEffect)((function(){if(t&&(!i||0===i.length)&&n.length>0){var e=n.find((function(e){return e.unique_id===t}));e&&y(r,o,e)}}),[i,n,t,r,o])};const R=function(e){var t=e.loadProviders,n=e.autoLogin,r=e.providers,o=void 0===r?[]:r,i=e.loginEndpoint,a=e.loginCompleted;(0,d.useEffect)((function(){t()}),[t]),M({autoLogin:n,providers:o,loginEndpoint:i,loginCompleted:a});var s=o.map((function(e,t){return(0,C.jsx)(_,{provider:e,loginEndpoint:i,loginCompleted:a},t)}));return(0,C.jsx)(Z,{children:s})},D=R;var I="root/LOAD_PROVIDERS",L="root/SET_PROVIDERS",F="root/LOGIN_COMPLETED",H={loadProviders:function(){return{type:I}},loginCompleted:function(e){return{type:F,payload:{result:e}}}};const W=(0,f.connect)((function(e){return{providers:e.ssoLogin.providers,loginEndpoint:e.input.ssoLoginEndpoint,autoLogin:e.input.autoLogin}}),H)(D);var B=a(59713),U=a.n(B),z=a(81770),G=U()({},L,z.Z.singleTransferReducer("providers")),q={providers:[]};var $=a(87757),V=a.n($),Y=a(34857),X=a(63094),K=a(21913),J=a(54159),Q=a(75354);function ee(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function te(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?ee(Object(n),!0).forEach((function(t){U()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ee(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var ne=function(e){return e.data.map((function(e){return v()(e.paths,(function(e,t,n){return te(te({},e),{},U()({},n,t.value))}),{})}))},re=V().mark(fe),oe=V().mark(de),ie=V().mark(pe),ae=V().mark(he),se=V().mark(me),ce=V().mark(ge),ue=function(e){return e.intl},le=function(e){return e.input};function fe(){var e,t,n;return V().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.next=2,(0,Y.Ys)(ue);case 2:return e=r.sent,t={paths:["unique_id","label","button_primary_color","button_secondary_color","button_icon","button_label"],conditions:{locale:e.locale,active:!0}},r.next=6,(0,Y.RE)(X.Z.fetchEntities,"Openid_provider",t,{method:"GET"},ne);case 6:return n=r.sent,r.next=9,(0,Y.gz)({type:L,payload:{providers:n}});case 9:case"end":return r.stop()}}),re)}function de(){return V().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,(0,Y.RE)(J.Z.executeRequest,"login",{method:"GET",headers:new Headers({"X-Business-Unit":l.Z.getBusinessUnit()})});case 2:case"end":return e.stop()}}),oe)}function pe(){var e,t,n,r;return V().wrap((function(o){for(;;)switch(o.prev=o.next){case 0:return o.next=2,(0,Y.RE)(Q.Z.fromQueryString,window.location.search);case 2:return e=o.sent,t=e._redirect_url,o.next=6,(0,Y.Ys)(le);case 6:return n=o.sent,r=n.redirectUrl,o.abrupt("return",t||r);case 9:case"end":return o.stop()}}),ie)}function he(){var e;return V().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,(0,Y.RE)(pe);case 2:(e=t.sent)&&(window.location.href=e);case 4:case"end":return t.stop()}}),ae)}function me(e){var t,n,i;return V().wrap((function(a){for(;;)switch(a.prev=a.next){case 0:return t=e.payload.result,a.next=3,(0,Y.Ys)(le);case 3:return n=a.sent,i=n.appContext,a.next=7,(0,Y.RE)(r.Z.hasInvalidCache);case 7:if(!a.sent){a.next=13;break}return a.next=11,(0,Y.RE)(K.Z.clearAll);case 11:a.next=15;break;case 13:return a.next=15,(0,Y.RE)(K.Z.clearShortTerm);case 15:if("widget"!==(null==i?void 0:i.embedType)){a.next=24;break}if(null==t||!t.successful){a.next=23;break}return a.next=19,(0,Y.RE)(de);case 19:return a.next=21,(0,Y.RE)(he);case 21:a.next=24;break;case 23:null!=t&&t.registration;case 24:return a.next=26,(0,Y.gz)(o.Z.fireExternalEvent("loginCompleted",t));case 26:case"end":return a.stop()}}),se)}function ge(){return V().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,(0,Y.$6)([(0,Y.Fm)(I,fe),(0,Y.Fm)(F,me)]);case 2:case"end":return e.stop()}}),ce)}const ve={ssoLogin:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:q,t=arguments.length>1?arguments[1]:void 0,n=G[t.type];return n?n(e,t):e}};var ye,be=[ge],we="sso-login",xe=["loginCompleted"],Oe=function(t,n,i,a){l.Z.setInputEnvs(n);var s=ye||(ye=(0,C.jsx)(W,{})),c=e.Z.createStore(ve,be,n,we);return o.Z.addToStore(c,(function(t){return e.Z.getEvents(xe,t.input)})),r.Z.addToStore(c),e.Z.createApp(we,s,c,{input:n,events:i,actions:[],publicPath:a,textResourceModules:["component","common",we]})},Ee=function(t){return e.Z.useApp({initApp:Oe,props:t,packageName:we,externalEvents:xe}).component};Ee.propTypes={ssoLoginEndpoint:n().string.isRequired,locale:n().string,autoLogin:n().bool,appContext:c.propTypes,businessUnit:n().string,redirectUrl:n().string};var Se=e.Z.createBundleableApp(we,Oe,Ee);e.Z.registerAppInRegistry(Se.name,Se.init)})(),s})()));
59
+ e.exports=function(){"use strict";function e(t){return e="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},e(t)}function t(e,n){return t=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},t(e,n)}function n(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}function r(e,o,i){return r=n()?Reflect.construct:function(e,n,r){var o=[null];o.push.apply(o,n);var i=new(Function.bind.apply(e,o));return r&&t(i,r.prototype),i},r.apply(null,arguments)}function o(e){return i(e)||a(e)||s(e)||u()}function i(e){if(Array.isArray(e))return c(e)}function a(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}function s(e,t){if(e){if("string"==typeof e)return c(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?c(e,t):void 0}}function c(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function u(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var l=Object.hasOwnProperty,f=Object.setPrototypeOf,d=Object.isFrozen,p=Object.getPrototypeOf,h=Object.getOwnPropertyDescriptor,m=Object.freeze,g=Object.seal,v=Object.create,y="undefined"!=typeof Reflect&&Reflect,b=y.apply,w=y.construct;b||(b=function(e,t,n){return e.apply(t,n)}),m||(m=function(e){return e}),g||(g=function(e){return e}),w||(w=function(e,t){return r(e,o(t))});var x=A(Array.prototype.forEach),O=A(Array.prototype.pop),E=A(Array.prototype.push),S=A(String.prototype.toLowerCase),k=A(String.prototype.match),P=A(String.prototype.replace),j=A(String.prototype.indexOf),T=A(String.prototype.trim),C=A(RegExp.prototype.test),_=Z(TypeError);function A(e){return function(t){for(var n=arguments.length,r=new Array(n>1?n-1:0),o=1;o<n;o++)r[o-1]=arguments[o];return b(e,t,r)}}function Z(e){return function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return w(e,n)}}function N(e,t,n){n=n||S,f&&f(e,null);for(var r=t.length;r--;){var o=t[r];if("string"==typeof o){var i=n(o);i!==o&&(d(t)||(t[r]=i),o=i)}e[o]=!0}return e}function M(e){var t,n=v(null);for(t in e)b(l,e,[t])&&(n[t]=e[t]);return n}function R(e,t){for(;null!==e;){var n=h(e,t);if(n){if(n.get)return A(n.get);if("function"==typeof n.value)return A(n.value)}e=p(e)}function r(e){return console.warn("fallback value for",e),null}return r}var D=m(["a","abbr","acronym","address","area","article","aside","audio","b","bdi","bdo","big","blink","blockquote","body","br","button","canvas","caption","center","cite","code","col","colgroup","content","data","datalist","dd","decorator","del","details","dfn","dialog","dir","div","dl","dt","element","em","fieldset","figcaption","figure","font","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","img","input","ins","kbd","label","legend","li","main","map","mark","marquee","menu","menuitem","meter","nav","nobr","ol","optgroup","option","output","p","picture","pre","progress","q","rp","rt","ruby","s","samp","section","select","shadow","small","source","spacer","span","strike","strong","style","sub","summary","sup","table","tbody","td","template","textarea","tfoot","th","thead","time","tr","track","tt","u","ul","var","video","wbr"]),I=m(["svg","a","altglyph","altglyphdef","altglyphitem","animatecolor","animatemotion","animatetransform","circle","clippath","defs","desc","ellipse","filter","font","g","glyph","glyphref","hkern","image","line","lineargradient","marker","mask","metadata","mpath","path","pattern","polygon","polyline","radialgradient","rect","stop","style","switch","symbol","text","textpath","title","tref","tspan","view","vkern"]),L=m(["feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence"]),F=m(["animate","color-profile","cursor","discard","fedropshadow","font-face","font-face-format","font-face-name","font-face-src","font-face-uri","foreignobject","hatch","hatchpath","mesh","meshgradient","meshpatch","meshrow","missing-glyph","script","set","solidcolor","unknown","use"]),H=m(["math","menclose","merror","mfenced","mfrac","mglyph","mi","mlabeledtr","mmultiscripts","mn","mo","mover","mpadded","mphantom","mroot","mrow","ms","mspace","msqrt","mstyle","msub","msup","msubsup","mtable","mtd","mtext","mtr","munder","munderover"]),W=m(["maction","maligngroup","malignmark","mlongdiv","mscarries","mscarry","msgroup","mstack","msline","msrow","semantics","annotation","annotation-xml","mprescripts","none"]),B=m(["#text"]),U=m(["accept","action","align","alt","autocapitalize","autocomplete","autopictureinpicture","autoplay","background","bgcolor","border","capture","cellpadding","cellspacing","checked","cite","class","clear","color","cols","colspan","controls","controlslist","coords","crossorigin","datetime","decoding","default","dir","disabled","disablepictureinpicture","disableremoteplayback","download","draggable","enctype","enterkeyhint","face","for","headers","height","hidden","high","href","hreflang","id","inputmode","integrity","ismap","kind","label","lang","list","loading","loop","low","max","maxlength","media","method","min","minlength","multiple","muted","name","nonce","noshade","novalidate","nowrap","open","optimum","pattern","placeholder","playsinline","poster","preload","pubdate","radiogroup","readonly","rel","required","rev","reversed","role","rows","rowspan","spellcheck","scope","selected","shape","size","sizes","span","srclang","start","src","srcset","step","style","summary","tabindex","title","translate","type","usemap","valign","value","width","xmlns","slot"]),z=m(["accent-height","accumulate","additive","alignment-baseline","ascent","attributename","attributetype","azimuth","basefrequency","baseline-shift","begin","bias","by","class","clip","clippathunits","clip-path","clip-rule","color","color-interpolation","color-interpolation-filters","color-profile","color-rendering","cx","cy","d","dx","dy","diffuseconstant","direction","display","divisor","dur","edgemode","elevation","end","fill","fill-opacity","fill-rule","filter","filterunits","flood-color","flood-opacity","font-family","font-size","font-size-adjust","font-stretch","font-style","font-variant","font-weight","fx","fy","g1","g2","glyph-name","glyphref","gradientunits","gradienttransform","height","href","id","image-rendering","in","in2","k","k1","k2","k3","k4","kerning","keypoints","keysplines","keytimes","lang","lengthadjust","letter-spacing","kernelmatrix","kernelunitlength","lighting-color","local","marker-end","marker-mid","marker-start","markerheight","markerunits","markerwidth","maskcontentunits","maskunits","max","mask","media","method","mode","min","name","numoctaves","offset","operator","opacity","order","orient","orientation","origin","overflow","paint-order","path","pathlength","patterncontentunits","patterntransform","patternunits","points","preservealpha","preserveaspectratio","primitiveunits","r","rx","ry","radius","refx","refy","repeatcount","repeatdur","restart","result","rotate","scale","seed","shape-rendering","specularconstant","specularexponent","spreadmethod","startoffset","stddeviation","stitchtiles","stop-color","stop-opacity","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke","stroke-width","style","surfacescale","systemlanguage","tabindex","targetx","targety","transform","transform-origin","text-anchor","text-decoration","text-rendering","textlength","type","u1","u2","unicode","values","viewbox","visibility","version","vert-adv-y","vert-origin-x","vert-origin-y","width","word-spacing","wrap","writing-mode","xchannelselector","ychannelselector","x","x1","x2","xmlns","y","y1","y2","z","zoomandpan"]),G=m(["accent","accentunder","align","bevelled","close","columnsalign","columnlines","columnspan","denomalign","depth","dir","display","displaystyle","encoding","fence","frame","height","href","id","largeop","length","linethickness","lspace","lquote","mathbackground","mathcolor","mathsize","mathvariant","maxsize","minsize","movablelimits","notation","numalign","open","rowalign","rowlines","rowspacing","rowspan","rspace","rquote","scriptlevel","scriptminsize","scriptsizemultiplier","selection","separator","separators","stretchy","subscriptshift","supscriptshift","symmetric","voffset","width","xmlns"]),q=m(["xlink:href","xml:id","xlink:title","xml:space","xmlns:xlink"]),$=g(/\{\{[\w\W]*|[\w\W]*\}\}/gm),V=g(/<%[\w\W]*|[\w\W]*%>/gm),Y=g(/^data-[\-\w.\u00B7-\uFFFF]/),X=g(/^aria-[\-\w]+$/),K=g(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|cid|xmpp):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),J=g(/^(?:\w+script|data):/i),Q=g(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),ee=g(/^html$/i),te=function(){return"undefined"==typeof window?null:window},ne=function(t,n){if("object"!==e(t)||"function"!=typeof t.createPolicy)return null;var r=null,o="data-tt-policy-suffix";n.currentScript&&n.currentScript.hasAttribute(o)&&(r=n.currentScript.getAttribute(o));var i="dompurify"+(r?"#"+r:"");try{return t.createPolicy(i,{createHTML:function(e){return e},createScriptURL:function(e){return e}})}catch(e){return console.warn("TrustedTypes policy "+i+" could not be created."),null}};function re(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:te(),n=function(e){return re(e)};if(n.version="2.4.0",n.removed=[],!t||!t.document||9!==t.document.nodeType)return n.isSupported=!1,n;var r=t.document,i=t.document,a=t.DocumentFragment,s=t.HTMLTemplateElement,c=t.Node,u=t.Element,l=t.NodeFilter,f=t.NamedNodeMap,d=void 0===f?t.NamedNodeMap||t.MozNamedAttrMap:f,p=t.HTMLFormElement,h=t.DOMParser,g=t.trustedTypes,v=u.prototype,y=R(v,"cloneNode"),b=R(v,"nextSibling"),w=R(v,"childNodes"),A=R(v,"parentNode");if("function"==typeof s){var Z=i.createElement("template");Z.content&&Z.content.ownerDocument&&(i=Z.content.ownerDocument)}var oe=ne(g,r),ie=oe?oe.createHTML(""):"",ae=i,se=ae.implementation,ce=ae.createNodeIterator,ue=ae.createDocumentFragment,le=ae.getElementsByTagName,fe=r.importNode,de={};try{de=M(i).documentMode?i.documentMode:{}}catch(e){}var pe={};n.isSupported="function"==typeof A&&se&&void 0!==se.createHTMLDocument&&9!==de;var he,me,ge=$,ve=V,ye=Y,be=X,we=J,xe=Q,Oe=K,Ee=null,Se=N({},[].concat(o(D),o(I),o(L),o(H),o(B))),ke=null,Pe=N({},[].concat(o(U),o(z),o(G),o(q))),je=Object.seal(Object.create(null,{tagNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},allowCustomizedBuiltInElements:{writable:!0,configurable:!1,enumerable:!0,value:!1}})),Te=null,Ce=null,_e=!0,Ae=!0,Ze=!1,Ne=!1,Me=!1,Re=!1,De=!1,Ie=!1,Le=!1,Fe=!1,He=!0,We=!1,Be="user-content-",Ue=!0,ze=!1,Ge={},qe=null,$e=N({},["annotation-xml","audio","colgroup","desc","foreignobject","head","iframe","math","mi","mn","mo","ms","mtext","noembed","noframes","noscript","plaintext","script","style","svg","template","thead","title","video","xmp"]),Ve=null,Ye=N({},["audio","video","img","source","image","track"]),Xe=null,Ke=N({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),Je="http://www.w3.org/1998/Math/MathML",Qe="http://www.w3.org/2000/svg",et="http://www.w3.org/1999/xhtml",tt=et,nt=!1,rt=["application/xhtml+xml","text/html"],ot="text/html",it=null,at=i.createElement("form"),st=function(e){return e instanceof RegExp||e instanceof Function},ct=function(t){it&&it===t||(t&&"object"===e(t)||(t={}),t=M(t),he=he=-1===rt.indexOf(t.PARSER_MEDIA_TYPE)?ot:t.PARSER_MEDIA_TYPE,me="application/xhtml+xml"===he?function(e){return e}:S,Ee="ALLOWED_TAGS"in t?N({},t.ALLOWED_TAGS,me):Se,ke="ALLOWED_ATTR"in t?N({},t.ALLOWED_ATTR,me):Pe,Xe="ADD_URI_SAFE_ATTR"in t?N(M(Ke),t.ADD_URI_SAFE_ATTR,me):Ke,Ve="ADD_DATA_URI_TAGS"in t?N(M(Ye),t.ADD_DATA_URI_TAGS,me):Ye,qe="FORBID_CONTENTS"in t?N({},t.FORBID_CONTENTS,me):$e,Te="FORBID_TAGS"in t?N({},t.FORBID_TAGS,me):{},Ce="FORBID_ATTR"in t?N({},t.FORBID_ATTR,me):{},Ge="USE_PROFILES"in t&&t.USE_PROFILES,_e=!1!==t.ALLOW_ARIA_ATTR,Ae=!1!==t.ALLOW_DATA_ATTR,Ze=t.ALLOW_UNKNOWN_PROTOCOLS||!1,Ne=t.SAFE_FOR_TEMPLATES||!1,Me=t.WHOLE_DOCUMENT||!1,Ie=t.RETURN_DOM||!1,Le=t.RETURN_DOM_FRAGMENT||!1,Fe=t.RETURN_TRUSTED_TYPE||!1,De=t.FORCE_BODY||!1,He=!1!==t.SANITIZE_DOM,We=t.SANITIZE_NAMED_PROPS||!1,Ue=!1!==t.KEEP_CONTENT,ze=t.IN_PLACE||!1,Oe=t.ALLOWED_URI_REGEXP||Oe,tt=t.NAMESPACE||et,t.CUSTOM_ELEMENT_HANDLING&&st(t.CUSTOM_ELEMENT_HANDLING.tagNameCheck)&&(je.tagNameCheck=t.CUSTOM_ELEMENT_HANDLING.tagNameCheck),t.CUSTOM_ELEMENT_HANDLING&&st(t.CUSTOM_ELEMENT_HANDLING.attributeNameCheck)&&(je.attributeNameCheck=t.CUSTOM_ELEMENT_HANDLING.attributeNameCheck),t.CUSTOM_ELEMENT_HANDLING&&"boolean"==typeof t.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements&&(je.allowCustomizedBuiltInElements=t.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements),Ne&&(Ae=!1),Le&&(Ie=!0),Ge&&(Ee=N({},o(B)),ke=[],!0===Ge.html&&(N(Ee,D),N(ke,U)),!0===Ge.svg&&(N(Ee,I),N(ke,z),N(ke,q)),!0===Ge.svgFilters&&(N(Ee,L),N(ke,z),N(ke,q)),!0===Ge.mathMl&&(N(Ee,H),N(ke,G),N(ke,q))),t.ADD_TAGS&&(Ee===Se&&(Ee=M(Ee)),N(Ee,t.ADD_TAGS,me)),t.ADD_ATTR&&(ke===Pe&&(ke=M(ke)),N(ke,t.ADD_ATTR,me)),t.ADD_URI_SAFE_ATTR&&N(Xe,t.ADD_URI_SAFE_ATTR,me),t.FORBID_CONTENTS&&(qe===$e&&(qe=M(qe)),N(qe,t.FORBID_CONTENTS,me)),Ue&&(Ee["#text"]=!0),Me&&N(Ee,["html","head","body"]),Ee.table&&(N(Ee,["tbody"]),delete Te.tbody),m&&m(t),it=t)},ut=N({},["mi","mo","mn","ms","mtext"]),lt=N({},["foreignobject","desc","title","annotation-xml"]),ft=N({},["title","style","font","a","script"]),dt=N({},I);N(dt,L),N(dt,F);var pt=N({},H);N(pt,W);var ht=function(e){var t=A(e);t&&t.tagName||(t={namespaceURI:et,tagName:"template"});var n=S(e.tagName),r=S(t.tagName);return e.namespaceURI===Qe?t.namespaceURI===et?"svg"===n:t.namespaceURI===Je?"svg"===n&&("annotation-xml"===r||ut[r]):Boolean(dt[n]):e.namespaceURI===Je?t.namespaceURI===et?"math"===n:t.namespaceURI===Qe?"math"===n&&lt[r]:Boolean(pt[n]):e.namespaceURI===et&&!(t.namespaceURI===Qe&&!lt[r])&&!(t.namespaceURI===Je&&!ut[r])&&!pt[n]&&(ft[n]||!dt[n])},mt=function(e){E(n.removed,{element:e});try{e.parentNode.removeChild(e)}catch(t){try{e.outerHTML=ie}catch(t){e.remove()}}},gt=function(e,t){try{E(n.removed,{attribute:t.getAttributeNode(e),from:t})}catch(e){E(n.removed,{attribute:null,from:t})}if(t.removeAttribute(e),"is"===e&&!ke[e])if(Ie||Le)try{mt(t)}catch(e){}else try{t.setAttribute(e,"")}catch(e){}},vt=function(e){var t,n;if(De)e="<remove></remove>"+e;else{var r=k(e,/^[\r\n\t ]+/);n=r&&r[0]}"application/xhtml+xml"===he&&(e='<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>'+e+"</body></html>");var o=oe?oe.createHTML(e):e;if(tt===et)try{t=(new h).parseFromString(o,he)}catch(e){}if(!t||!t.documentElement){t=se.createDocument(tt,"template",null);try{t.documentElement.innerHTML=nt?"":o}catch(e){}}var a=t.body||t.documentElement;return e&&n&&a.insertBefore(i.createTextNode(n),a.childNodes[0]||null),tt===et?le.call(t,Me?"html":"body")[0]:Me?t.documentElement:a},yt=function(e){return ce.call(e.ownerDocument||e,e,l.SHOW_ELEMENT|l.SHOW_COMMENT|l.SHOW_TEXT,null,!1)},bt=function(e){return e instanceof p&&("string"!=typeof e.nodeName||"string"!=typeof e.textContent||"function"!=typeof e.removeChild||!(e.attributes instanceof d)||"function"!=typeof e.removeAttribute||"function"!=typeof e.setAttribute||"string"!=typeof e.namespaceURI||"function"!=typeof e.insertBefore)},wt=function(t){return"object"===e(c)?t instanceof c:t&&"object"===e(t)&&"number"==typeof t.nodeType&&"string"==typeof t.nodeName},xt=function(e,t,r){pe[e]&&x(pe[e],(function(e){e.call(n,t,r,it)}))},Ot=function(e){var t;if(xt("beforeSanitizeElements",e,null),bt(e))return mt(e),!0;if(C(/[\u0080-\uFFFF]/,e.nodeName))return mt(e),!0;var r=me(e.nodeName);if(xt("uponSanitizeElement",e,{tagName:r,allowedTags:Ee}),e.hasChildNodes()&&!wt(e.firstElementChild)&&(!wt(e.content)||!wt(e.content.firstElementChild))&&C(/<[/\w]/g,e.innerHTML)&&C(/<[/\w]/g,e.textContent))return mt(e),!0;if("select"===r&&C(/<template/i,e.innerHTML))return mt(e),!0;if(!Ee[r]||Te[r]){if(!Te[r]&&St(r)){if(je.tagNameCheck instanceof RegExp&&C(je.tagNameCheck,r))return!1;if(je.tagNameCheck instanceof Function&&je.tagNameCheck(r))return!1}if(Ue&&!qe[r]){var o=A(e)||e.parentNode,i=w(e)||e.childNodes;if(i&&o)for(var a=i.length-1;a>=0;--a)o.insertBefore(y(i[a],!0),b(e))}return mt(e),!0}return e instanceof u&&!ht(e)?(mt(e),!0):"noscript"!==r&&"noembed"!==r||!C(/<\/no(script|embed)/i,e.innerHTML)?(Ne&&3===e.nodeType&&(t=e.textContent,t=P(t,ge," "),t=P(t,ve," "),e.textContent!==t&&(E(n.removed,{element:e.cloneNode()}),e.textContent=t)),xt("afterSanitizeElements",e,null),!1):(mt(e),!0)},Et=function(e,t,n){if(He&&("id"===t||"name"===t)&&(n in i||n in at))return!1;if(Ae&&!Ce[t]&&C(ye,t));else if(_e&&C(be,t));else if(!ke[t]||Ce[t]){if(!(St(e)&&(je.tagNameCheck instanceof RegExp&&C(je.tagNameCheck,e)||je.tagNameCheck instanceof Function&&je.tagNameCheck(e))&&(je.attributeNameCheck instanceof RegExp&&C(je.attributeNameCheck,t)||je.attributeNameCheck instanceof Function&&je.attributeNameCheck(t))||"is"===t&&je.allowCustomizedBuiltInElements&&(je.tagNameCheck instanceof RegExp&&C(je.tagNameCheck,n)||je.tagNameCheck instanceof Function&&je.tagNameCheck(n))))return!1}else if(Xe[t]);else if(C(Oe,P(n,xe,"")));else if("src"!==t&&"xlink:href"!==t&&"href"!==t||"script"===e||0!==j(n,"data:")||!Ve[e])if(Ze&&!C(we,P(n,xe,"")));else if(n)return!1;return!0},St=function(e){return e.indexOf("-")>0},kt=function(t){var r,o,i,a;xt("beforeSanitizeAttributes",t,null);var s=t.attributes;if(s){var c={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:ke};for(a=s.length;a--;){var u=r=s[a],l=u.name,f=u.namespaceURI;if(o="value"===l?r.value:T(r.value),i=me(l),c.attrName=i,c.attrValue=o,c.keepAttr=!0,c.forceKeepAttr=void 0,xt("uponSanitizeAttribute",t,c),o=c.attrValue,!c.forceKeepAttr&&(gt(l,t),c.keepAttr))if(C(/\/>/i,o))gt(l,t);else{Ne&&(o=P(o,ge," "),o=P(o,ve," "));var d=me(t.nodeName);if(Et(d,i,o)){if(!We||"id"!==i&&"name"!==i||(gt(l,t),o=Be+o),oe&&"object"===e(g)&&"function"==typeof g.getAttributeType)if(f);else switch(g.getAttributeType(d,i)){case"TrustedHTML":o=oe.createHTML(o);break;case"TrustedScriptURL":o=oe.createScriptURL(o)}try{f?t.setAttributeNS(f,l,o):t.setAttribute(l,o),O(n.removed)}catch(e){}}}}xt("afterSanitizeAttributes",t,null)}},Pt=function e(t){var n,r=yt(t);for(xt("beforeSanitizeShadowDOM",t,null);n=r.nextNode();)xt("uponSanitizeShadowNode",n,null),Ot(n)||(n.content instanceof a&&e(n.content),kt(n));xt("afterSanitizeShadowDOM",t,null)};return n.sanitize=function(o){var i,s,u,l,f,d=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if((nt=!o)&&(o="\x3c!--\x3e"),"string"!=typeof o&&!wt(o)){if("function"!=typeof o.toString)throw _("toString is not a function");if("string"!=typeof(o=o.toString()))throw _("dirty is not a string, aborting")}if(!n.isSupported){if("object"===e(t.toStaticHTML)||"function"==typeof t.toStaticHTML){if("string"==typeof o)return t.toStaticHTML(o);if(wt(o))return t.toStaticHTML(o.outerHTML)}return o}if(Re||ct(d),n.removed=[],"string"==typeof o&&(ze=!1),ze){if(o.nodeName){var p=me(o.nodeName);if(!Ee[p]||Te[p])throw _("root node is forbidden and cannot be sanitized in-place")}}else if(o instanceof c)1===(s=(i=vt("\x3c!----\x3e")).ownerDocument.importNode(o,!0)).nodeType&&"BODY"===s.nodeName||"HTML"===s.nodeName?i=s:i.appendChild(s);else{if(!Ie&&!Ne&&!Me&&-1===o.indexOf("<"))return oe&&Fe?oe.createHTML(o):o;if(!(i=vt(o)))return Ie?null:Fe?ie:""}i&&De&&mt(i.firstChild);for(var h=yt(ze?o:i);u=h.nextNode();)3===u.nodeType&&u===l||Ot(u)||(u.content instanceof a&&Pt(u.content),kt(u),l=u);if(l=null,ze)return o;if(Ie){if(Le)for(f=ue.call(i.ownerDocument);i.firstChild;)f.appendChild(i.firstChild);else f=i;return ke.shadowroot&&(f=fe.call(r,f,!0)),f}var m=Me?i.outerHTML:i.innerHTML;return Me&&Ee["!doctype"]&&i.ownerDocument&&i.ownerDocument.doctype&&i.ownerDocument.doctype.name&&C(ee,i.ownerDocument.doctype.name)&&(m="<!DOCTYPE "+i.ownerDocument.doctype.name+">\n"+m),Ne&&(m=P(m,ge," "),m=P(m,ve," ")),oe&&Fe?oe.createHTML(m):m},n.setConfig=function(e){ct(e),Re=!0},n.clearConfig=function(){it=null,Re=!1},n.isValidAttribute=function(e,t,n){it||ct({});var r=me(e),o=me(t);return Et(r,o,n)},n.addHook=function(e,t){"function"==typeof t&&(pe[e]=pe[e]||[],E(pe[e],t))},n.removeHook=function(e){if(pe[e])return O(pe[e])},n.removeHooks=function(e){pe[e]&&(pe[e]=[])},n.removeAllHooks=function(){pe={}},n}return re()}()},1024:e=>{"use strict";e.exports=t},30314:t=>{"use strict";t.exports=e},71298:e=>{e.exports=function(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e},e.exports.__esModule=!0,e.exports.default=e.exports},38088:e=>{e.exports=function(e){return e&&e.__esModule?e:{default:e}},e.exports.__esModule=!0,e.exports.default=e.exports},87462:(e,t,n)=>{"use strict";function r(){return r=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},r.apply(this,arguments)}n.d(t,{Z:()=>r})},88911:(e,t,n)=>{"use strict";function r(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}n.d(t,{Z:()=>r})},83029:(e,t,n)=>{"use strict";function r(e){if(Array.isArray(e))return e}n.d(t,{Z:()=>r})},46927:(e,t,n)=>{"use strict";function r(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}n.d(t,{Z:()=>r})},3640:(e,t,n)=>{"use strict";function r(){return r=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},r.apply(this,arguments)}n.d(t,{Z:()=>r})},56265:(e,t,n)=>{"use strict";function r(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}n.d(t,{Z:()=>r})},8486:(e,t,n)=>{"use strict";n.d(t,{Z:()=>i});var r=n(46927);function o(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function i(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?o(Object(n),!0).forEach((function(t){(0,r.Z)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):o(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}},56315:(e,t,n)=>{"use strict";function r(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}n.d(t,{Z:()=>r})},68957:(e,t,n)=>{"use strict";n.d(t,{Z:()=>a});var r=n(83029);var o=n(61917),i=n(56265);function a(e,t){return(0,r.Z)(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i=[],a=!0,s=!1;try{for(n=n.call(e);!(a=(r=n.next()).done)&&(i.push(r.value),!t||i.length!==t);a=!0);}catch(e){s=!0,o=e}finally{try{a||null==n.return||n.return()}finally{if(s)throw o}}return i}}(e,t)||(0,o.Z)(e,t)||(0,i.Z)()}},91411:(e,t,n)=>{"use strict";function r(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}n.d(t,{Z:()=>r})},73891:(e,t,n)=>{"use strict";function r(e){return r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},r(e)}n.d(t,{Z:()=>r})},61917:(e,t,n)=>{"use strict";n.d(t,{Z:()=>o});var r=n(88911);function o(e,t){if(e){if("string"==typeof e)return(0,r.Z)(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?(0,r.Z)(e,t):void 0}}}},i={};function a(e){var t=i[e];if(void 0!==t)return t.exports;var n=i[e]={id:e,loaded:!1,exports:{}};return o[e].call(n.exports,n,n.exports,a),n.loaded=!0,n.exports}a.m=o,a.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return a.d(t,{a:t}),t},a.d=(e,t)=>{for(var n in t)a.o(t,n)&&!a.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},a.f={},a.e=e=>Promise.all(Object.keys(a.f).reduce(((t,n)=>(a.f[n](e,t),t)),[])),a.u=e=>"chunk-"+({198:"vendor-fontawesome",614:"vendor-icons",802:"html-editor"}[e]||e)+"."+{198:"c39ed1574da117141ef6",614:"7d29e13c3ade9223282b",802:"76e3d070bcb73210b761",817:"5758e51444b678849e3d",909:"f0934a9b9f58a57b1c62"}[e]+".js",a.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),a.hmd=e=>((e=Object.create(e)).children||(e.children=[]),Object.defineProperty(e,"exports",{enumerable:!0,set:()=>{throw new Error("ES Modules may not assign module.exports or exports.*, Use ESM export syntax, instead: "+e.id)}}),e),a.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),n={},r="tocco-widget-bundle:",a.l=(e,t,o,i)=>{if(n[e])n[e].push(t);else{var s,c;if(void 0!==o)for(var u=document.getElementsByTagName("script"),l=0;l<u.length;l++){var f=u[l];if(f.getAttribute("src")==e||f.getAttribute("data-webpack")==r+o){s=f;break}}s||(c=!0,(s=document.createElement("script")).charset="utf-8",s.timeout=120,a.nc&&s.setAttribute("nonce",a.nc),s.setAttribute("data-webpack",r+o),s.src=e),n[e]=[t];var d=(t,r)=>{s.onerror=s.onload=null,clearTimeout(p);var o=n[e];if(delete n[e],s.parentNode&&s.parentNode.removeChild(s),o&&o.forEach((e=>e(r))),t)return t(r)},p=setTimeout(d.bind(null,void 0,{type:"timeout",target:s}),12e4);s.onerror=d.bind(null,s.onerror),s.onload=d.bind(null,s.onload),c&&document.head.appendChild(s)}},a.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},a.nmd=e=>(e.paths=[],e.children||(e.children=[]),e),a.j=820,a.p="/",(()=>{var e={820:0};a.f.j=(t,n)=>{var r=a.o(e,t)?e[t]:void 0;if(0!==r)if(r)n.push(r[2]);else{var o=new Promise(((n,o)=>r=e[t]=[n,o]));n.push(r[2]=o);var i=a.p+a.u(t),s=new Error;a.l(i,(n=>{if(a.o(e,t)&&(0!==(r=e[t])&&(e[t]=void 0),r)){var o=n&&("load"===n.type?"missing":n.type),i=n&&n.target&&n.target.src;s.message="Loading chunk "+t+" failed.\n("+o+": "+i+")",s.name="ChunkLoadError",s.type=o,s.request=i,r[1](s)}}),"chunk-"+t,t)}};var t=(t,n)=>{var r,o,[i,s,c]=n,u=0;if(i.some((t=>0!==e[t]))){for(r in s)a.o(s,r)&&(a.m[r]=s[r]);if(c)c(a)}for(t&&t(n);u<i.length;u++)o=i[u],a.o(e,o)&&e[o]&&e[o][0](),e[o]=0},n=self.webpackChunktocco_widget_bundle=self.webpackChunktocco_widget_bundle||[];n.forEach(t.bind(null,0)),n.push=t.bind(null,n.push.bind(n))})(),a.nc=void 0;var s={};return(()=>{"use strict";a.r(s);var e=a(55954),t=a(45697),n=a.n(t),r=a(22731),o=a(45430),i=a(98773);const c={propTypes:n().shape({embedType:n().oneOf(i.Nc),widgetConfigKey:function(e,t,n){if("widget"===e.embedType&&!e[t])return new Error("Prop `"+t+"` is missing for `"+n+"`. Validation failed.")}})};var u,l=a(23369),f=a(50558),d=a(1024),p=a(88162),h=a(319),m=a.n(h),g=a(54061),v=a.n(g),y=function(e,t,n){var r="widget"===l.Z.getEmbedType(),o=l.Z.getBackendUrl(),i=encodeURIComponent("".concat(o,"/nice2/sso-callback")),a=encodeURIComponent(window.location.href),s="provider=".concat(n.unique_id),c="&sourceUri=".concat(a),u=r?"&redirectUri=".concat(i):"",f="".concat(o).concat(e,"?").concat(s).concat(c).concat(u),d=window.open(f,n.label,function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:200,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:200,n={height:e,width:t,left:window.screen.width/2-t/2,top:window.screen.height/2-e/2,resizable:1,scrollbars:1,status:1};return v()(n,(function(e,t,n){return[].concat(m()(e),["".concat(n,"=").concat(t)])}),[]).join(",")}(650,500));window.ssoPopUpCallback=function(e){d.close(),t(e)}},b=a(28655),w=a.n(b),x=a(27361),O=a.n(x),E=a(58804),S=a(58129),k=a(7281),P=a(88601),j=a(58664);const T=(0,E.ZP)(S.Z)(u||(u=w()(["\n && {\n margin-right: 0;\n flex: 1;\n font-size: ",";\n justify-content: center;\n border-radius: ",";\n ","\n span {\n margin-left: 0.5em;\n padding: 0.9rem 0;\n }\n }\n"])),k.Z.font(1.3),P.Z.radii("large"),(function(e){return(0,j.al)((0,j.du)(e,{bg:e.primaryColor,fg:e.secondaryColor||"".concat(O()(e.theme,"colors.paper"),", ").concat(O()(e.theme,"colors.text"))}))}));var C=a(85893);const _=function(e){var t=e.provider,n=e.loginCompleted,r=e.loginEndpoint;return(0,C.jsxs)(T,{primaryColor:t.button_primary_color,secondaryColor:t.button_secondary_color,onClick:function(){y(r,n,t)},children:[t.button_icon&&(0,C.jsx)(p.Z,{position:"prepend",icon:t.button_icon}),(0,C.jsx)("span",{children:t.button_label})]})};var A,Z=E.ZP.div.withConfig({displayName:"StyledButtonContainer"})(A||(A=w()(["\n width: 100%;\n margin-top: 3rem;\n display: grid;\n grid-gap: 1rem;\n grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));\n\n @media (max-width: 1024px) {\n margin-top: 1.5rem;\n }\n"]))),N=a(35997);const M=function(e){var t=e.autoLogin,n=e.providers,r=e.loginEndpoint,o=e.loginCompleted,i=N.Z.usePrevious(n);(0,d.useEffect)((function(){if(t&&(!i||0===i.length)&&n.length>0){var e=n.find((function(e){return e.unique_id===t}));e&&y(r,o,e)}}),[i,n,t,r,o])};const R=function(e){var t=e.loadProviders,n=e.autoLogin,r=e.providers,o=void 0===r?[]:r,i=e.loginEndpoint,a=e.loginCompleted;(0,d.useEffect)((function(){t()}),[t]),M({autoLogin:n,providers:o,loginEndpoint:i,loginCompleted:a});var s=o.map((function(e,t){return(0,C.jsx)(_,{provider:e,loginEndpoint:i,loginCompleted:a},t)}));return(0,C.jsx)(Z,{children:s})},D=R;var I="root/LOAD_PROVIDERS",L="root/SET_PROVIDERS",F="root/LOGIN_COMPLETED",H={loadProviders:function(){return{type:I}},loginCompleted:function(e){return{type:F,payload:{result:e}}}};const W=(0,f.connect)((function(e){return{providers:e.ssoLogin.providers,loginEndpoint:e.input.ssoLoginEndpoint,autoLogin:e.input.autoLogin}}),H)(D);var B=a(59713),U=a.n(B),z=a(81770),G=U()({},L,z.Z.singleTransferReducer("providers")),q={providers:[]};var $=a(87757),V=a.n($),Y=a(34857),X=a(63094),K=a(21913),J=a(54159),Q=a(75354);function ee(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function te(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?ee(Object(n),!0).forEach((function(t){U()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ee(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var ne=function(e){return e.data.map((function(e){return v()(e.paths,(function(e,t,n){return te(te({},e),{},U()({},n,t.value))}),{})}))},re=V().mark(fe),oe=V().mark(de),ie=V().mark(pe),ae=V().mark(he),se=V().mark(me),ce=V().mark(ge),ue=function(e){return e.intl},le=function(e){return e.input};function fe(){var e,t,n;return V().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.next=2,(0,Y.Ys)(ue);case 2:return e=r.sent,t={paths:["unique_id","label","button_primary_color","button_secondary_color","button_icon","button_label"],conditions:{locale:e.locale,active:!0}},r.next=6,(0,Y.RE)(X.Z.fetchEntities,"Openid_provider",t,{method:"GET"},ne);case 6:return n=r.sent,r.next=9,(0,Y.gz)({type:L,payload:{providers:n}});case 9:case"end":return r.stop()}}),re)}function de(){return V().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,(0,Y.RE)(J.Z.executeRequest,"login",{method:"GET",headers:new Headers({"X-Business-Unit":l.Z.getBusinessUnit()})});case 2:case"end":return e.stop()}}),oe)}function pe(){var e,t,n,r;return V().wrap((function(o){for(;;)switch(o.prev=o.next){case 0:return o.next=2,(0,Y.RE)(Q.Z.fromQueryString,window.location.search);case 2:return e=o.sent,t=e._redirect_url,o.next=6,(0,Y.Ys)(le);case 6:return n=o.sent,r=n.redirectUrl,o.abrupt("return",t||r);case 9:case"end":return o.stop()}}),ie)}function he(){var e;return V().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,(0,Y.RE)(pe);case 2:(e=t.sent)&&(window.location.href=e);case 4:case"end":return t.stop()}}),ae)}function me(e){var t,n,i;return V().wrap((function(a){for(;;)switch(a.prev=a.next){case 0:return t=e.payload.result,a.next=3,(0,Y.Ys)(le);case 3:return n=a.sent,i=n.appContext,a.next=7,(0,Y.RE)(r.Z.hasInvalidCache);case 7:if(!a.sent){a.next=13;break}return a.next=11,(0,Y.RE)(K.Z.clearAll);case 11:a.next=15;break;case 13:return a.next=15,(0,Y.RE)(K.Z.clearShortTerm);case 15:if("widget"!==(null==i?void 0:i.embedType)){a.next=24;break}if(null==t||!t.successful){a.next=23;break}return a.next=19,(0,Y.RE)(de);case 19:return a.next=21,(0,Y.RE)(he);case 21:a.next=24;break;case 23:null!=t&&t.registration;case 24:return a.next=26,(0,Y.gz)(o.Z.fireExternalEvent("loginCompleted",t));case 26:case"end":return a.stop()}}),se)}function ge(){return V().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,(0,Y.$6)([(0,Y.Fm)(I,fe),(0,Y.Fm)(F,me)]);case 2:case"end":return e.stop()}}),ce)}const ve={ssoLogin:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:q,t=arguments.length>1?arguments[1]:void 0,n=G[t.type];return n?n(e,t):e}};var ye,be=[ge],we="sso-login",xe=["loginCompleted"],Oe=function(t,n,i,a){l.Z.setInputEnvs(n);var s=ye||(ye=(0,C.jsx)(W,{})),c=e.Z.createStore(ve,be,n,we);return o.Z.addToStore(c,(function(t){return e.Z.getEvents(xe,t.input)})),r.Z.addToStore(c),e.Z.createApp(we,s,c,{input:n,events:i,actions:[],publicPath:a,textResourceModules:["component","common",we]})},Ee=function(t){return e.Z.useApp({initApp:Oe,props:t,packageName:we,externalEvents:xe}).component};Ee.propTypes={ssoLoginEndpoint:n().string.isRequired,locale:n().string,autoLogin:n().bool,appContext:c.propTypes,businessUnit:n().string,redirectUrl:n().string};var Se=e.Z.createBundleableApp(we,Oe,Ee);e.Z.registerAppInRegistry(Se.name,Se.init)})(),s})()));