diff --git a/tgui/public/tgui-panel.bundle.js b/tgui/public/tgui-panel.bundle.js index 4b312d7ee10d..21a5bd338c6e 100644 --- a/tgui/public/tgui-panel.bundle.js +++ b/tgui/public/tgui-panel.bundle.js @@ -1,30 +1,30 @@ -(function(){(function(){var xn={96376:function(S,e,t){"use strict";e.__esModule=!0,e.createPopper=void 0,e.popperGenerator=g;var n=i(t(74758)),r=i(t(28811)),o=i(t(98309)),a=i(t(44896)),u=i(t(33118)),s=i(t(10579)),c=i(t(56500)),h=i(t(17633));e.detectOverflow=h.default;var d=t(75573);function i(p){return p&&p.__esModule?p:{default:p}}var f={placement:"bottom",modifiers:[],strategy:"absolute"};function l(){for(var p=arguments.length,m=new Array(p),C=0;C0&&(0,r.round)(i.width)/c.offsetWidth||1,l=c.offsetHeight>0&&(0,r.round)(i.height)/c.offsetHeight||1);var g=(0,n.isElement)(c)?(0,o.default)(c):window,v=g.visualViewport,p=!(0,a.default)()&&d,m=(i.left+(p&&v?v.offsetLeft:0))/f,C=(i.top+(p&&v?v.offsetTop:0))/l,I=i.width/f,A=i.height/l;return{width:I,height:A,top:C,right:m+I,bottom:C+A,left:m,x:m,y:C}}},49035:function(S,e,t){"use strict";e.__esModule=!0,e.default=A;var n=t(46206),r=p(t(87991)),o=p(t(79752)),a=p(t(98309)),u=p(t(44896)),s=p(t(40600)),c=p(t(16599)),h=t(75573),d=p(t(37786)),i=p(t(57819)),f=p(t(4206)),l=p(t(12972)),g=p(t(81666)),v=t(63618);function p(T){return T&&T.__esModule?T:{default:T}}function m(T,E){var y=(0,d.default)(T,!1,E==="fixed");return y.top=y.top+T.clientTop,y.left=y.left+T.clientLeft,y.bottom=y.top+T.clientHeight,y.right=y.left+T.clientWidth,y.width=T.clientWidth,y.height=T.clientHeight,y.x=y.left,y.y=y.top,y}function C(T,E,y){return E===n.viewport?(0,g.default)((0,r.default)(T,y)):(0,h.isElement)(E)?m(E,y):(0,g.default)((0,o.default)((0,s.default)(T)))}function I(T){var E=(0,a.default)((0,i.default)(T)),y=["absolute","fixed"].indexOf((0,c.default)(T).position)>=0,b=y&&(0,h.isHTMLElement)(T)?(0,u.default)(T):T;return(0,h.isElement)(b)?E.filter(function(N){return(0,h.isElement)(N)&&(0,f.default)(N,b)&&(0,l.default)(N)!=="body"}):[]}function A(T,E,y,b){var N=E==="clippingParents"?I(T):[].concat(E),M=[].concat(N,[y]),R=M[0],w=M.reduce(function(B,x){var j=C(T,x,b);return B.top=(0,v.max)(j.top,B.top),B.right=(0,v.min)(j.right,B.right),B.bottom=(0,v.min)(j.bottom,B.bottom),B.left=(0,v.max)(j.left,B.left),B},C(T,R,b));return w.width=w.right-w.left,w.height=w.bottom-w.top,w.x=w.left,w.y=w.top,w}},74758:function(S,e,t){"use strict";e.__esModule=!0,e.default=f;var n=d(t(37786)),r=d(t(13390)),o=d(t(12972)),a=t(75573),u=d(t(79697)),s=d(t(40600)),c=d(t(10798)),h=t(63618);function d(l){return l&&l.__esModule?l:{default:l}}function i(l){var g=l.getBoundingClientRect(),v=(0,h.round)(g.width)/l.offsetWidth||1,p=(0,h.round)(g.height)/l.offsetHeight||1;return v!==1||p!==1}function f(l,g,v){v===void 0&&(v=!1);var p=(0,a.isHTMLElement)(g),m=(0,a.isHTMLElement)(g)&&i(g),C=(0,s.default)(g),I=(0,n.default)(l,m,v),A={scrollLeft:0,scrollTop:0},T={x:0,y:0};return(p||!p&&!v)&&(((0,o.default)(g)!=="body"||(0,c.default)(C))&&(A=(0,r.default)(g)),(0,a.isHTMLElement)(g)?(T=(0,n.default)(g,!0),T.x+=g.clientLeft,T.y+=g.clientTop):C&&(T.x=(0,u.default)(C))),{x:I.left+A.scrollLeft-T.x,y:I.top+A.scrollTop-T.y,width:I.width,height:I.height}}},16599:function(S,e,t){"use strict";e.__esModule=!0,e.default=o;var n=r(t(95115));function r(a){return a&&a.__esModule?a:{default:a}}function o(a){return(0,n.default)(a).getComputedStyle(a)}},40600:function(S,e,t){"use strict";e.__esModule=!0,e.default=r;var n=t(75573);function r(o){return(((0,n.isElement)(o)?o.ownerDocument:o.document)||window.document).documentElement}},79752:function(S,e,t){"use strict";e.__esModule=!0,e.default=c;var n=s(t(40600)),r=s(t(16599)),o=s(t(79697)),a=s(t(43750)),u=t(63618);function s(h){return h&&h.__esModule?h:{default:h}}function c(h){var d,i=(0,n.default)(h),f=(0,a.default)(h),l=(d=h.ownerDocument)==null?void 0:d.body,g=(0,u.max)(i.scrollWidth,i.clientWidth,l?l.scrollWidth:0,l?l.clientWidth:0),v=(0,u.max)(i.scrollHeight,i.clientHeight,l?l.scrollHeight:0,l?l.clientHeight:0),p=-f.scrollLeft+(0,o.default)(h),m=-f.scrollTop;return(0,r.default)(l||i).direction==="rtl"&&(p+=(0,u.max)(i.clientWidth,l?l.clientWidth:0)-g),{width:g,height:v,x:p,y:m}}},3073:function(S,e){"use strict";e.__esModule=!0,e.default=t;function t(n){return{scrollLeft:n.scrollLeft,scrollTop:n.scrollTop}}},28811:function(S,e,t){"use strict";e.__esModule=!0,e.default=o;var n=r(t(37786));function r(a){return a&&a.__esModule?a:{default:a}}function o(a){var u=(0,n.default)(a),s=a.offsetWidth,c=a.offsetHeight;return Math.abs(u.width-s)<=1&&(s=u.width),Math.abs(u.height-c)<=1&&(c=u.height),{x:a.offsetLeft,y:a.offsetTop,width:s,height:c}}},12972:function(S,e){"use strict";e.__esModule=!0,e.default=t;function t(n){return n?(n.nodeName||"").toLowerCase():null}},13390:function(S,e,t){"use strict";e.__esModule=!0,e.default=s;var n=u(t(43750)),r=u(t(95115)),o=t(75573),a=u(t(3073));function u(c){return c&&c.__esModule?c:{default:c}}function s(c){return c===(0,r.default)(c)||!(0,o.isHTMLElement)(c)?(0,n.default)(c):(0,a.default)(c)}},44896:function(S,e,t){"use strict";e.__esModule=!0,e.default=f;var n=h(t(95115)),r=h(t(12972)),o=h(t(16599)),a=t(75573),u=h(t(87031)),s=h(t(57819)),c=h(t(35366));function h(l){return l&&l.__esModule?l:{default:l}}function d(l){return!(0,a.isHTMLElement)(l)||(0,o.default)(l).position==="fixed"?null:l.offsetParent}function i(l){var g=/firefox/i.test((0,c.default)()),v=/Trident/i.test((0,c.default)());if(v&&(0,a.isHTMLElement)(l)){var p=(0,o.default)(l);if(p.position==="fixed")return null}var m=(0,s.default)(l);for((0,a.isShadowRoot)(m)&&(m=m.host);(0,a.isHTMLElement)(m)&&["html","body"].indexOf((0,r.default)(m))<0;){var C=(0,o.default)(m);if(C.transform!=="none"||C.perspective!=="none"||C.contain==="paint"||["transform","perspective"].indexOf(C.willChange)!==-1||g&&C.willChange==="filter"||g&&C.filter&&C.filter!=="none")return m;m=m.parentNode}return null}function f(l){for(var g=(0,n.default)(l),v=d(l);v&&(0,u.default)(v)&&(0,o.default)(v).position==="static";)v=d(v);return v&&((0,r.default)(v)==="html"||(0,r.default)(v)==="body"&&(0,o.default)(v).position==="static")?g:v||i(l)||g}},57819:function(S,e,t){"use strict";e.__esModule=!0,e.default=u;var n=a(t(12972)),r=a(t(40600)),o=t(75573);function a(s){return s&&s.__esModule?s:{default:s}}function u(s){return(0,n.default)(s)==="html"?s:s.assignedSlot||s.parentNode||((0,o.isShadowRoot)(s)?s.host:null)||(0,r.default)(s)}},24426:function(S,e,t){"use strict";e.__esModule=!0,e.default=s;var n=u(t(57819)),r=u(t(10798)),o=u(t(12972)),a=t(75573);function u(c){return c&&c.__esModule?c:{default:c}}function s(c){return["html","body","#document"].indexOf((0,o.default)(c))>=0?c.ownerDocument.body:(0,a.isHTMLElement)(c)&&(0,r.default)(c)?c:s((0,n.default)(c))}},87991:function(S,e,t){"use strict";e.__esModule=!0,e.default=s;var n=u(t(95115)),r=u(t(40600)),o=u(t(79697)),a=u(t(89331));function u(c){return c&&c.__esModule?c:{default:c}}function s(c,h){var d=(0,n.default)(c),i=(0,r.default)(c),f=d.visualViewport,l=i.clientWidth,g=i.clientHeight,v=0,p=0;if(f){l=f.width,g=f.height;var m=(0,a.default)();(m||!m&&h==="fixed")&&(v=f.offsetLeft,p=f.offsetTop)}return{width:l,height:g,x:v+(0,o.default)(c),y:p}}},95115:function(S,e){"use strict";e.__esModule=!0,e.default=t;function t(n){if(n==null)return window;if(n.toString()!=="[object Window]"){var r=n.ownerDocument;return r&&r.defaultView||window}return n}},43750:function(S,e,t){"use strict";e.__esModule=!0,e.default=o;var n=r(t(95115));function r(a){return a&&a.__esModule?a:{default:a}}function o(a){var u=(0,n.default)(a),s=u.pageXOffset,c=u.pageYOffset;return{scrollLeft:s,scrollTop:c}}},79697:function(S,e,t){"use strict";e.__esModule=!0,e.default=u;var n=a(t(37786)),r=a(t(40600)),o=a(t(43750));function a(s){return s&&s.__esModule?s:{default:s}}function u(s){return(0,n.default)((0,r.default)(s)).left+(0,o.default)(s).scrollLeft}},75573:function(S,e,t){"use strict";e.__esModule=!0,e.isElement=o,e.isHTMLElement=a,e.isShadowRoot=u;var n=r(t(95115));function r(s){return s&&s.__esModule?s:{default:s}}function o(s){var c=(0,n.default)(s).Element;return s instanceof c||s instanceof Element}function a(s){var c=(0,n.default)(s).HTMLElement;return s instanceof c||s instanceof HTMLElement}function u(s){if(typeof ShadowRoot=="undefined")return!1;var c=(0,n.default)(s).ShadowRoot;return s instanceof c||s instanceof ShadowRoot}},89331:function(S,e,t){"use strict";e.__esModule=!0,e.default=o;var n=r(t(35366));function r(a){return a&&a.__esModule?a:{default:a}}function o(){return!/^((?!chrome|android).)*safari/i.test((0,n.default)())}},10798:function(S,e,t){"use strict";e.__esModule=!0,e.default=o;var n=r(t(16599));function r(a){return a&&a.__esModule?a:{default:a}}function o(a){var u=(0,n.default)(a),s=u.overflow,c=u.overflowX,h=u.overflowY;return/auto|scroll|overlay|hidden/.test(s+h+c)}},87031:function(S,e,t){"use strict";e.__esModule=!0,e.default=o;var n=r(t(12972));function r(a){return a&&a.__esModule?a:{default:a}}function o(a){return["table","td","th"].indexOf((0,n.default)(a))>=0}},98309:function(S,e,t){"use strict";e.__esModule=!0,e.default=s;var n=u(t(24426)),r=u(t(57819)),o=u(t(95115)),a=u(t(10798));function u(c){return c&&c.__esModule?c:{default:c}}function s(c,h){var d;h===void 0&&(h=[]);var i=(0,n.default)(c),f=i===((d=c.ownerDocument)==null?void 0:d.body),l=(0,o.default)(i),g=f?[l].concat(l.visualViewport||[],(0,a.default)(i)?i:[]):i,v=h.concat(g);return f?v:v.concat(s((0,r.default)(g)))}},46206:function(S,e){"use strict";e.__esModule=!0,e.write=e.viewport=e.variationPlacements=e.top=e.start=e.right=e.reference=e.read=e.popper=e.placements=e.modifierPhases=e.main=e.left=e.end=e.clippingParents=e.bottom=e.beforeWrite=e.beforeRead=e.beforeMain=e.basePlacements=e.auto=e.afterWrite=e.afterRead=e.afterMain=void 0;var t=e.top="top",n=e.bottom="bottom",r=e.right="right",o=e.left="left",a=e.auto="auto",u=e.basePlacements=[t,n,r,o],s=e.start="start",c=e.end="end",h=e.clippingParents="clippingParents",d=e.viewport="viewport",i=e.popper="popper",f=e.reference="reference",l=e.variationPlacements=u.reduce(function(N,M){return N.concat([M+"-"+s,M+"-"+c])},[]),g=e.placements=[].concat(u,[a]).reduce(function(N,M){return N.concat([M,M+"-"+s,M+"-"+c])},[]),v=e.beforeRead="beforeRead",p=e.read="read",m=e.afterRead="afterRead",C=e.beforeMain="beforeMain",I=e.main="main",A=e.afterMain="afterMain",T=e.beforeWrite="beforeWrite",E=e.write="write",y=e.afterWrite="afterWrite",b=e.modifierPhases=[v,p,m,C,I,A,T,E,y]},95996:function(S,e,t){"use strict";e.__esModule=!0;var n={popperGenerator:!0,detectOverflow:!0,createPopperBase:!0,createPopper:!0,createPopperLite:!0};e.popperGenerator=e.detectOverflow=e.createPopperLite=e.createPopperBase=e.createPopper=void 0;var r=t(46206);Object.keys(r).forEach(function(c){c==="default"||c==="__esModule"||Object.prototype.hasOwnProperty.call(n,c)||c in e&&e[c]===r[c]||(e[c]=r[c])});var o=t(39805);Object.keys(o).forEach(function(c){c==="default"||c==="__esModule"||Object.prototype.hasOwnProperty.call(n,c)||c in e&&e[c]===o[c]||(e[c]=o[c])});var a=t(96376);e.popperGenerator=a.popperGenerator,e.detectOverflow=a.detectOverflow,e.createPopperBase=a.createPopper;var u=t(83312);e.createPopper=u.createPopper;var s=t(2473);e.createPopperLite=s.createPopper},19975:function(S,e,t){"use strict";e.__esModule=!0,e.default=void 0;var n=o(t(12972)),r=t(75573);function o(c){return c&&c.__esModule?c:{default:c}}function a(c){var h=c.state;Object.keys(h.elements).forEach(function(d){var i=h.styles[d]||{},f=h.attributes[d]||{},l=h.elements[d];!(0,r.isHTMLElement)(l)||!(0,n.default)(l)||(Object.assign(l.style,i),Object.keys(f).forEach(function(g){var v=f[g];v===!1?l.removeAttribute(g):l.setAttribute(g,v===!0?"":v)}))})}function u(c){var h=c.state,d={popper:{position:h.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(h.elements.popper.style,d.popper),h.styles=d,h.elements.arrow&&Object.assign(h.elements.arrow.style,d.arrow),function(){Object.keys(h.elements).forEach(function(i){var f=h.elements[i],l=h.attributes[i]||{},g=Object.keys(h.styles.hasOwnProperty(i)?h.styles[i]:d[i]),v=g.reduce(function(p,m){return p[m]="",p},{});!(0,r.isHTMLElement)(f)||!(0,n.default)(f)||(Object.assign(f.style,v),Object.keys(l).forEach(function(p){f.removeAttribute(p)}))})}}var s=e.default={name:"applyStyles",enabled:!0,phase:"write",fn:a,effect:u,requires:["computeStyles"]}},52744:function(S,e,t){"use strict";e.__esModule=!0,e.default=void 0;var n=i(t(83104)),r=i(t(28811)),o=i(t(4206)),a=i(t(44896)),u=i(t(41199)),s=t(28595),c=i(t(43286)),h=i(t(81447)),d=t(46206);function i(p){return p&&p.__esModule?p:{default:p}}var f=function(){function p(m,C){return m=typeof m=="function"?m(Object.assign({},C.rects,{placement:C.placement})):m,(0,c.default)(typeof m!="number"?m:(0,h.default)(m,d.basePlacements))}return p}();function l(p){var m,C=p.state,I=p.name,A=p.options,T=C.elements.arrow,E=C.modifiersData.popperOffsets,y=(0,n.default)(C.placement),b=(0,u.default)(y),N=[d.left,d.right].indexOf(y)>=0,M=N?"height":"width";if(!(!T||!E)){var R=f(A.padding,C),w=(0,r.default)(T),B=b==="y"?d.top:d.left,x=b==="y"?d.bottom:d.right,j=C.rects.reference[M]+C.rects.reference[b]-E[b]-C.rects.popper[M],$=E[b]-C.rects.reference[b],G=(0,a.default)(T),D=G?b==="y"?G.clientHeight||0:G.clientWidth||0:0,V=j/2-$/2,U=R[B],Y=D-w[M]-R[x],K=D/2-w[M]/2+V,H=(0,s.within)(U,K,Y),tt=b;C.modifiersData[I]=(m={},m[tt]=H,m.centerOffset=H-K,m)}}function g(p){var m=p.state,C=p.options,I=C.element,A=I===void 0?"[data-popper-arrow]":I;A!=null&&(typeof A=="string"&&(A=m.elements.popper.querySelector(A),!A)||(0,o.default)(m.elements.popper,A)&&(m.elements.arrow=A))}var v=e.default={name:"arrow",enabled:!0,phase:"main",fn:l,effect:g,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]}},59894:function(S,e,t){"use strict";e.__esModule=!0,e.default=void 0,e.mapToStyles=l;var n=t(46206),r=d(t(44896)),o=d(t(95115)),a=d(t(40600)),u=d(t(16599)),s=d(t(83104)),c=d(t(45)),h=t(63618);function d(p){return p&&p.__esModule?p:{default:p}}var i={top:"auto",right:"auto",bottom:"auto",left:"auto"};function f(p,m){var C=p.x,I=p.y,A=m.devicePixelRatio||1;return{x:(0,h.round)(C*A)/A||0,y:(0,h.round)(I*A)/A||0}}function l(p){var m,C=p.popper,I=p.popperRect,A=p.placement,T=p.variation,E=p.offsets,y=p.position,b=p.gpuAcceleration,N=p.adaptive,M=p.roundOffsets,R=p.isFixed,w=E.x,B=w===void 0?0:w,x=E.y,j=x===void 0?0:x,$=typeof M=="function"?M({x:B,y:j}):{x:B,y:j};B=$.x,j=$.y;var G=E.hasOwnProperty("x"),D=E.hasOwnProperty("y"),V=n.left,U=n.top,Y=window;if(N){var K=(0,r.default)(C),H="clientHeight",tt="clientWidth";if(K===(0,o.default)(C)&&(K=(0,a.default)(C),(0,u.default)(K).position!=="static"&&y==="absolute"&&(H="scrollHeight",tt="scrollWidth")),K=K,A===n.top||(A===n.left||A===n.right)&&T===n.end){U=n.bottom;var ut=R&&K===Y&&Y.visualViewport?Y.visualViewport.height:K[H];j-=ut-I.height,j*=b?1:-1}if(A===n.left||(A===n.top||A===n.bottom)&&T===n.end){V=n.right;var rt=R&&K===Y&&Y.visualViewport?Y.visualViewport.width:K[tt];B-=rt-I.width,B*=b?1:-1}}var k=Object.assign({position:y},N&&i),Q=M===!0?f({x:B,y:j},(0,o.default)(C)):{x:B,y:j};if(B=Q.x,j=Q.y,b){var nt;return Object.assign({},k,(nt={},nt[U]=D?"0":"",nt[V]=G?"0":"",nt.transform=(Y.devicePixelRatio||1)<=1?"translate("+B+"px, "+j+"px)":"translate3d("+B+"px, "+j+"px, 0)",nt))}return Object.assign({},k,(m={},m[U]=D?j+"px":"",m[V]=G?B+"px":"",m.transform="",m))}function g(p){var m=p.state,C=p.options,I=C.gpuAcceleration,A=I===void 0?!0:I,T=C.adaptive,E=T===void 0?!0:T,y=C.roundOffsets,b=y===void 0?!0:y,N={placement:(0,s.default)(m.placement),variation:(0,c.default)(m.placement),popper:m.elements.popper,popperRect:m.rects.popper,gpuAcceleration:A,isFixed:m.options.strategy==="fixed"};m.modifiersData.popperOffsets!=null&&(m.styles.popper=Object.assign({},m.styles.popper,l(Object.assign({},N,{offsets:m.modifiersData.popperOffsets,position:m.options.strategy,adaptive:E,roundOffsets:b})))),m.modifiersData.arrow!=null&&(m.styles.arrow=Object.assign({},m.styles.arrow,l(Object.assign({},N,{offsets:m.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:b})))),m.attributes.popper=Object.assign({},m.attributes.popper,{"data-popper-placement":m.placement})}var v=e.default={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:g,data:{}}},36692:function(S,e,t){"use strict";e.__esModule=!0,e.default=void 0;var n=r(t(95115));function r(s){return s&&s.__esModule?s:{default:s}}var o={passive:!0};function a(s){var c=s.state,h=s.instance,d=s.options,i=d.scroll,f=i===void 0?!0:i,l=d.resize,g=l===void 0?!0:l,v=(0,n.default)(c.elements.popper),p=[].concat(c.scrollParents.reference,c.scrollParents.popper);return f&&p.forEach(function(m){m.addEventListener("scroll",h.update,o)}),g&&v.addEventListener("resize",h.update,o),function(){f&&p.forEach(function(m){m.removeEventListener("scroll",h.update,o)}),g&&v.removeEventListener("resize",h.update,o)}}var u=e.default={name:"eventListeners",enabled:!0,phase:"write",fn:function(){function s(){}return s}(),effect:a,data:{}}},23798:function(S,e,t){"use strict";e.__esModule=!0,e.default=void 0;var n=h(t(71376)),r=h(t(83104)),o=h(t(86459)),a=h(t(17633)),u=h(t(9041)),s=t(46206),c=h(t(45));function h(l){return l&&l.__esModule?l:{default:l}}function d(l){if((0,r.default)(l)===s.auto)return[];var g=(0,n.default)(l);return[(0,o.default)(l),g,(0,o.default)(g)]}function i(l){var g=l.state,v=l.options,p=l.name;if(!g.modifiersData[p]._skip){for(var m=v.mainAxis,C=m===void 0?!0:m,I=v.altAxis,A=I===void 0?!0:I,T=v.fallbackPlacements,E=v.padding,y=v.boundary,b=v.rootBoundary,N=v.altBoundary,M=v.flipVariations,R=M===void 0?!0:M,w=v.allowedAutoPlacements,B=g.options.placement,x=(0,r.default)(B),j=x===B,$=T||(j||!R?[(0,n.default)(B)]:d(B)),G=[B].concat($).reduce(function(dt,X){return dt.concat((0,r.default)(X)===s.auto?(0,u.default)(g,{placement:X,boundary:y,rootBoundary:b,padding:E,flipVariations:R,allowedAutoPlacements:w}):X)},[]),D=g.rects.reference,V=g.rects.popper,U=new Map,Y=!0,K=G[0],H=0;H=0,Q=k?"width":"height",nt=(0,a.default)(g,{placement:tt,boundary:y,rootBoundary:b,altBoundary:N,padding:E}),lt=k?rt?s.right:s.left:rt?s.bottom:s.top;D[Q]>V[Q]&&(lt=(0,n.default)(lt));var at=(0,n.default)(lt),mt=[];if(C&&mt.push(nt[ut]<=0),A&&mt.push(nt[lt]<=0,nt[at]<=0),mt.every(function(dt){return dt})){K=tt,Y=!1;break}U.set(tt,mt)}if(Y)for(var At=R?3:1,Nt=function(){function dt(X){var q=G.find(function(et){var ft=U.get(et);if(ft)return ft.slice(0,X).every(function(gt){return gt})});if(q)return K=q,"break"}return dt}(),Pt=At;Pt>0;Pt--){var ht=Nt(Pt);if(ht==="break")break}g.placement!==K&&(g.modifiersData[p]._skip=!0,g.placement=K,g.reset=!0)}}var f=e.default={name:"flip",enabled:!0,phase:"main",fn:i,requiresIfExists:["offset"],data:{_skip:!1}}},83761:function(S,e,t){"use strict";e.__esModule=!0,e.default=void 0;var n=t(46206),r=o(t(17633));function o(h){return h&&h.__esModule?h:{default:h}}function a(h,d,i){return i===void 0&&(i={x:0,y:0}),{top:h.top-d.height-i.y,right:h.right-d.width+i.x,bottom:h.bottom-d.height+i.y,left:h.left-d.width-i.x}}function u(h){return[n.top,n.right,n.bottom,n.left].some(function(d){return h[d]>=0})}function s(h){var d=h.state,i=h.name,f=d.rects.reference,l=d.rects.popper,g=d.modifiersData.preventOverflow,v=(0,r.default)(d,{elementContext:"reference"}),p=(0,r.default)(d,{altBoundary:!0}),m=a(v,f),C=a(p,l,g),I=u(m),A=u(C);d.modifiersData[i]={referenceClippingOffsets:m,popperEscapeOffsets:C,isReferenceHidden:I,hasPopperEscaped:A},d.attributes.popper=Object.assign({},d.attributes.popper,{"data-popper-reference-hidden":I,"data-popper-escaped":A})}var c=e.default={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:s}},39805:function(S,e,t){"use strict";e.__esModule=!0,e.preventOverflow=e.popperOffsets=e.offset=e.hide=e.flip=e.eventListeners=e.computeStyles=e.arrow=e.applyStyles=void 0;var n=i(t(19975));e.applyStyles=n.default;var r=i(t(52744));e.arrow=r.default;var o=i(t(59894));e.computeStyles=o.default;var a=i(t(36692));e.eventListeners=a.default;var u=i(t(23798));e.flip=u.default;var s=i(t(83761));e.hide=s.default;var c=i(t(61410));e.offset=c.default;var h=i(t(40107));e.popperOffsets=h.default;var d=i(t(75137));e.preventOverflow=d.default;function i(f){return f&&f.__esModule?f:{default:f}}},61410:function(S,e,t){"use strict";e.__esModule=!0,e.default=void 0,e.distanceAndSkiddingToXY=a;var n=o(t(83104)),r=t(46206);function o(c){return c&&c.__esModule?c:{default:c}}function a(c,h,d){var i=(0,n.default)(c),f=[r.left,r.top].indexOf(i)>=0?-1:1,l=typeof d=="function"?d(Object.assign({},h,{placement:c})):d,g=l[0],v=l[1];return g=g||0,v=(v||0)*f,[r.left,r.right].indexOf(i)>=0?{x:v,y:g}:{x:g,y:v}}function u(c){var h=c.state,d=c.options,i=c.name,f=d.offset,l=f===void 0?[0,0]:f,g=r.placements.reduce(function(C,I){return C[I]=a(I,h.rects,l),C},{}),v=g[h.placement],p=v.x,m=v.y;h.modifiersData.popperOffsets!=null&&(h.modifiersData.popperOffsets.x+=p,h.modifiersData.popperOffsets.y+=m),h.modifiersData[i]=g}var s=e.default={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:u}},40107:function(S,e,t){"use strict";e.__esModule=!0,e.default=void 0;var n=r(t(89951));function r(u){return u&&u.__esModule?u:{default:u}}function o(u){var s=u.state,c=u.name;s.modifiersData[c]=(0,n.default)({reference:s.rects.reference,element:s.rects.popper,strategy:"absolute",placement:s.placement})}var a=e.default={name:"popperOffsets",enabled:!0,phase:"read",fn:o,data:{}}},75137:function(S,e,t){"use strict";e.__esModule=!0,e.default=void 0;var n=t(46206),r=l(t(83104)),o=l(t(41199)),a=l(t(28066)),u=t(28595),s=l(t(28811)),c=l(t(44896)),h=l(t(17633)),d=l(t(45)),i=l(t(34780)),f=t(63618);function l(p){return p&&p.__esModule?p:{default:p}}function g(p){var m=p.state,C=p.options,I=p.name,A=C.mainAxis,T=A===void 0?!0:A,E=C.altAxis,y=E===void 0?!1:E,b=C.boundary,N=C.rootBoundary,M=C.altBoundary,R=C.padding,w=C.tether,B=w===void 0?!0:w,x=C.tetherOffset,j=x===void 0?0:x,$=(0,h.default)(m,{boundary:b,rootBoundary:N,padding:R,altBoundary:M}),G=(0,r.default)(m.placement),D=(0,d.default)(m.placement),V=!D,U=(0,o.default)(G),Y=(0,a.default)(U),K=m.modifiersData.popperOffsets,H=m.rects.reference,tt=m.rects.popper,ut=typeof j=="function"?j(Object.assign({},m.rects,{placement:m.placement})):j,rt=typeof ut=="number"?{mainAxis:ut,altAxis:ut}:Object.assign({mainAxis:0,altAxis:0},ut),k=m.modifiersData.offset?m.modifiersData.offset[m.placement]:null,Q={x:0,y:0};if(K){if(T){var nt,lt=U==="y"?n.top:n.left,at=U==="y"?n.bottom:n.right,mt=U==="y"?"height":"width",At=K[U],Nt=At+$[lt],Pt=At-$[at],ht=B?-tt[mt]/2:0,dt=D===n.start?H[mt]:tt[mt],X=D===n.start?-tt[mt]:-H[mt],q=m.elements.arrow,et=B&&q?(0,s.default)(q):{width:0,height:0},ft=m.modifiersData["arrow#persistent"]?m.modifiersData["arrow#persistent"].padding:(0,i.default)(),gt=ft[lt],ot=ft[at],vt=(0,u.within)(0,H[mt],et[mt]),It=V?H[mt]/2-ht-vt-gt-rt.mainAxis:dt-vt-gt-rt.mainAxis,Z=V?-H[mt]/2+ht+vt+ot+rt.mainAxis:X+vt+ot+rt.mainAxis,st=m.elements.arrow&&(0,c.default)(m.elements.arrow),yt=st?U==="y"?st.clientTop||0:st.clientLeft||0:0,Tt=(nt=k==null?void 0:k[U])!=null?nt:0,Dt=At+It-Tt-yt,jt=At+Z-Tt,Ct=(0,u.within)(B?(0,f.min)(Nt,Dt):Nt,At,B?(0,f.max)(Pt,jt):Pt);K[U]=Ct,Q[U]=Ct-At}if(y){var ct,pt=U==="x"?n.top:n.left,bt=U==="x"?n.bottom:n.right,St=K[Y],Ot=Y==="y"?"height":"width",Ft=St+$[pt],Vt=St-$[bt],$t=[n.top,n.left].indexOf(G)!==-1,Wt=(ct=k==null?void 0:k[Y])!=null?ct:0,Gt=$t?Ft:St-H[Ot]-tt[Ot]-Wt+rt.altAxis,Ht=$t?St+H[Ot]+tt[Ot]-Wt-rt.altAxis:Vt,Jt=B&&$t?(0,u.withinMaxClamp)(Gt,St,Ht):(0,u.within)(B?Gt:Ft,St,B?Ht:Vt);K[Y]=Jt,Q[Y]=Jt-St}m.modifiersData[I]=Q}}var v=e.default={name:"preventOverflow",enabled:!0,phase:"main",fn:g,requiresIfExists:["offset"]}},2473:function(S,e,t){"use strict";e.__esModule=!0,e.defaultModifiers=e.createPopper=void 0;var n=t(96376);e.popperGenerator=n.popperGenerator,e.detectOverflow=n.detectOverflow;var r=s(t(36692)),o=s(t(40107)),a=s(t(59894)),u=s(t(19975));function s(d){return d&&d.__esModule?d:{default:d}}var c=e.defaultModifiers=[r.default,o.default,a.default,u.default],h=e.createPopper=(0,n.popperGenerator)({defaultModifiers:c})},83312:function(S,e,t){"use strict";e.__esModule=!0;var n={createPopper:!0,createPopperLite:!0,defaultModifiers:!0,popperGenerator:!0,detectOverflow:!0};e.defaultModifiers=e.createPopperLite=e.createPopper=void 0;var r=t(96376);e.popperGenerator=r.popperGenerator,e.detectOverflow=r.detectOverflow;var o=v(t(36692)),a=v(t(40107)),u=v(t(59894)),s=v(t(19975)),c=v(t(61410)),h=v(t(23798)),d=v(t(75137)),i=v(t(52744)),f=v(t(83761)),l=t(2473);e.createPopperLite=l.createPopper;var g=t(39805);Object.keys(g).forEach(function(C){C==="default"||C==="__esModule"||Object.prototype.hasOwnProperty.call(n,C)||C in e&&e[C]===g[C]||(e[C]=g[C])});function v(C){return C&&C.__esModule?C:{default:C}}var p=e.defaultModifiers=[o.default,a.default,u.default,s.default,c.default,h.default,d.default,i.default,f.default],m=e.createPopperLite=e.createPopper=(0,r.popperGenerator)({defaultModifiers:p})},9041:function(S,e,t){"use strict";e.__esModule=!0,e.default=s;var n=u(t(45)),r=t(46206),o=u(t(17633)),a=u(t(83104));function u(c){return c&&c.__esModule?c:{default:c}}function s(c,h){h===void 0&&(h={});var d=h,i=d.placement,f=d.boundary,l=d.rootBoundary,g=d.padding,v=d.flipVariations,p=d.allowedAutoPlacements,m=p===void 0?r.placements:p,C=(0,n.default)(i),I=C?v?r.variationPlacements:r.variationPlacements.filter(function(E){return(0,n.default)(E)===C}):r.basePlacements,A=I.filter(function(E){return m.indexOf(E)>=0});A.length===0&&(A=I);var T=A.reduce(function(E,y){return E[y]=(0,o.default)(c,{placement:y,boundary:f,rootBoundary:l,padding:g})[(0,a.default)(y)],E},{});return Object.keys(T).sort(function(E,y){return T[E]-T[y]})}},89951:function(S,e,t){"use strict";e.__esModule=!0,e.default=s;var n=u(t(83104)),r=u(t(45)),o=u(t(41199)),a=t(46206);function u(c){return c&&c.__esModule?c:{default:c}}function s(c){var h=c.reference,d=c.element,i=c.placement,f=i?(0,n.default)(i):null,l=i?(0,r.default)(i):null,g=h.x+h.width/2-d.width/2,v=h.y+h.height/2-d.height/2,p;switch(f){case a.top:p={x:g,y:h.y-d.height};break;case a.bottom:p={x:g,y:h.y+h.height};break;case a.right:p={x:h.x+h.width,y:v};break;case a.left:p={x:h.x-d.width,y:v};break;default:p={x:h.x,y:h.y}}var m=f?(0,o.default)(f):null;if(m!=null){var C=m==="y"?"height":"width";switch(l){case a.start:p[m]=p[m]-(h[C]/2-d[C]/2);break;case a.end:p[m]=p[m]+(h[C]/2-d[C]/2);break;default:}}return p}},10579:function(S,e){"use strict";e.__esModule=!0,e.default=t;function t(n){var r;return function(){return r||(r=new Promise(function(o){Promise.resolve().then(function(){r=void 0,o(n())})})),r}}},17633:function(S,e,t){"use strict";e.__esModule=!0,e.default=f;var n=i(t(49035)),r=i(t(40600)),o=i(t(37786)),a=i(t(89951)),u=i(t(81666)),s=t(46206),c=t(75573),h=i(t(43286)),d=i(t(81447));function i(l){return l&&l.__esModule?l:{default:l}}function f(l,g){g===void 0&&(g={});var v=g,p=v.placement,m=p===void 0?l.placement:p,C=v.strategy,I=C===void 0?l.strategy:C,A=v.boundary,T=A===void 0?s.clippingParents:A,E=v.rootBoundary,y=E===void 0?s.viewport:E,b=v.elementContext,N=b===void 0?s.popper:b,M=v.altBoundary,R=M===void 0?!1:M,w=v.padding,B=w===void 0?0:w,x=(0,h.default)(typeof B!="number"?B:(0,d.default)(B,s.basePlacements)),j=N===s.popper?s.reference:s.popper,$=l.rects.popper,G=l.elements[R?j:N],D=(0,n.default)((0,c.isElement)(G)?G:G.contextElement||(0,r.default)(l.elements.popper),T,y,I),V=(0,o.default)(l.elements.reference),U=(0,a.default)({reference:V,element:$,strategy:"absolute",placement:m}),Y=(0,u.default)(Object.assign({},$,U)),K=N===s.popper?Y:V,H={top:D.top-K.top+x.top,bottom:K.bottom-D.bottom+x.bottom,left:D.left-K.left+x.left,right:K.right-D.right+x.right},tt=l.modifiersData.offset;if(N===s.popper&&tt){var ut=tt[m];Object.keys(H).forEach(function(rt){var k=[s.right,s.bottom].indexOf(rt)>=0?1:-1,Q=[s.top,s.bottom].indexOf(rt)>=0?"y":"x";H[rt]+=ut[Q]*k})}return H}},81447:function(S,e){"use strict";e.__esModule=!0,e.default=t;function t(n,r){return r.reduce(function(o,a){return o[a]=n,o},{})}},28066:function(S,e){"use strict";e.__esModule=!0,e.default=t;function t(n){return n==="x"?"y":"x"}},83104:function(S,e,t){"use strict";e.__esModule=!0,e.default=r;var n=t(46206);function r(o){return o.split("-")[0]}},34780:function(S,e){"use strict";e.__esModule=!0,e.default=t;function t(){return{top:0,right:0,bottom:0,left:0}}},41199:function(S,e){"use strict";e.__esModule=!0,e.default=t;function t(n){return["top","bottom"].indexOf(n)>=0?"x":"y"}},71376:function(S,e){"use strict";e.__esModule=!0,e.default=n;var t={left:"right",right:"left",bottom:"top",top:"bottom"};function n(r){return r.replace(/left|right|bottom|top/g,function(o){return t[o]})}},86459:function(S,e){"use strict";e.__esModule=!0,e.default=n;var t={start:"end",end:"start"};function n(r){return r.replace(/start|end/g,function(o){return t[o]})}},45:function(S,e){"use strict";e.__esModule=!0,e.default=t;function t(n){return n.split("-")[1]}},63618:function(S,e){"use strict";e.__esModule=!0,e.round=e.min=e.max=void 0;var t=e.max=Math.max,n=e.min=Math.min,r=e.round=Math.round},56500:function(S,e){"use strict";e.__esModule=!0,e.default=t;function t(n){var r=n.reduce(function(o,a){var u=o[a.name];return o[a.name]=u?Object.assign({},u,a,{options:Object.assign({},u.options,a.options),data:Object.assign({},u.data,a.data)}):a,o},{});return Object.keys(r).map(function(o){return r[o]})}},43286:function(S,e,t){"use strict";e.__esModule=!0,e.default=o;var n=r(t(34780));function r(a){return a&&a.__esModule?a:{default:a}}function o(a){return Object.assign({},(0,n.default)(),a)}},33118:function(S,e,t){"use strict";e.__esModule=!0,e.default=o;var n=t(46206);function r(a){var u=new Map,s=new Set,c=[];a.forEach(function(d){u.set(d.name,d)});function h(d){s.add(d.name);var i=[].concat(d.requires||[],d.requiresIfExists||[]);i.forEach(function(f){if(!s.has(f)){var l=u.get(f);l&&h(l)}}),c.push(d)}return a.forEach(function(d){s.has(d.name)||h(d)}),c}function o(a){var u=r(a);return n.modifierPhases.reduce(function(s,c){return s.concat(u.filter(function(h){return h.phase===c}))},[])}},81666:function(S,e){"use strict";e.__esModule=!0,e.default=t;function t(n){return Object.assign({},n,{left:n.x,top:n.y,right:n.x+n.width,bottom:n.y+n.height})}},35366:function(S,e){"use strict";e.__esModule=!0,e.default=t;function t(){var n=navigator.userAgentData;return n!=null&&n.brands&&Array.isArray(n.brands)?n.brands.map(function(r){return r.brand+"/"+r.version}).join(" "):navigator.userAgent}},28595:function(S,e,t){"use strict";e.__esModule=!0,e.within=r,e.withinMaxClamp=o;var n=t(63618);function r(a,u,s){return(0,n.max)(a,(0,n.min)(u,s))}function o(a,u,s){var c=r(a,u,s);return c>s?s:c}},22734:function(S){"use strict";/*! @license DOMPurify 2.5.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.5.0/LICENSE */(function(e,t){S.exports=t()})(void 0,function(){"use strict";function e(Z){"@babel/helpers - typeof";return e=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(st){return typeof st}:function(st){return st&&typeof Symbol=="function"&&st.constructor===Symbol&&st!==Symbol.prototype?"symbol":typeof st},e(Z)}function t(Z,st){return t=Object.setPrototypeOf||function(){function yt(Tt,Dt){return Tt.__proto__=Dt,Tt}return yt}(),t(Z,st)}function n(){if(typeof Reflect=="undefined"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(Z){return!1}}function r(Z,st,yt){return n()?r=Reflect.construct:r=function(){function Tt(Dt,jt,Ct){var ct=[null];ct.push.apply(ct,jt);var pt=Function.bind.apply(Dt,ct),bt=new pt;return Ct&&t(bt,Ct.prototype),bt}return Tt}(),r.apply(null,arguments)}function o(Z){return a(Z)||u(Z)||s(Z)||h()}function a(Z){if(Array.isArray(Z))return c(Z)}function u(Z){if(typeof Symbol!="undefined"&&Z[Symbol.iterator]!=null||Z["@@iterator"]!=null)return Array.from(Z)}function s(Z,st){if(Z){if(typeof Z=="string")return c(Z,st);var yt=Object.prototype.toString.call(Z).slice(8,-1);if(yt==="Object"&&Z.constructor&&(yt=Z.constructor.name),yt==="Map"||yt==="Set")return Array.from(Z);if(yt==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(yt))return c(Z,st)}}function c(Z,st){(st==null||st>Z.length)&&(st=Z.length);for(var yt=0,Tt=new Array(st);yt1?yt-1:0),Dt=1;Dt/gm),Nt=p(/\${[\w\W]*}/gm),Pt=p(/^data-[\-\w.\u00B7-\uFFFF]/),ht=p(/^aria-[\-\w]+$/),dt=p(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|cid|xmpp):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),X=p(/^(?:\w+script|data):/i),q=p(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),et=p(/^html$/i),ft=p(/^[a-z][.\w]*(-[.\w]+)+$/i),gt=function(){function Z(){return typeof window=="undefined"?null:window}return Z}(),ot=function(){function Z(st,yt){if(e(st)!=="object"||typeof st.createPolicy!="function")return null;var Tt=null,Dt="data-tt-policy-suffix";yt.currentScript&&yt.currentScript.hasAttribute(Dt)&&(Tt=yt.currentScript.getAttribute(Dt));var jt="dompurify"+(Tt?"#"+Tt:"");try{return st.createPolicy(jt,{createHTML:function(){function Ct(ct){return ct}return Ct}(),createScriptURL:function(){function Ct(ct){return ct}return Ct}()})}catch(Ct){return null}}return Z}();function vt(){var Z=arguments.length>0&&arguments[0]!==void 0?arguments[0]:gt(),st=function(){function O(P){return vt(P)}return O}();if(st.version="2.5.0",st.removed=[],!Z||!Z.document||Z.document.nodeType!==9)return st.isSupported=!1,st;var yt=Z.document,Tt=Z.document,Dt=Z.DocumentFragment,jt=Z.HTMLTemplateElement,Ct=Z.Node,ct=Z.Element,pt=Z.NodeFilter,bt=Z.NamedNodeMap,St=bt===void 0?Z.NamedNodeMap||Z.MozNamedAttrMap:bt,Ot=Z.HTMLFormElement,Ft=Z.DOMParser,Vt=Z.trustedTypes,$t=ct.prototype,Wt=U($t,"cloneNode"),Gt=U($t,"nextSibling"),Ht=U($t,"childNodes"),Jt=U($t,"parentNode");if(typeof jt=="function"){var Le=Tt.createElement("template");Le.content&&Le.content.ownerDocument&&(Tt=Le.content.ownerDocument)}var qt=ot(Vt,yt),Pe=qt?qt.createHTML(""):"",Ne=Tt,me=Ne.implementation,ye=Ne.createNodeIterator,an=Ne.createDocumentFragment,un=Ne.getElementsByTagName,Tn=yt.importNode,Ye={};try{Ye=V(Tt).documentMode?Tt.documentMode:{}}catch(O){}var re={};st.isSupported=typeof Jt=="function"&&me&&me.createHTMLDocument!==void 0&&Ye!==9;var Ke=mt,He=At,Be=Nt,sn=Pt,In=ht,cn=X,ln=q,On=ft,Se=dt,zt=null,te=D({},[].concat(o(Y),o(K),o(H),o(ut),o(k))),Yt=null,Ee=D({},[].concat(o(Q),o(nt),o(lt),o(at))),kt=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}})),le=null,Ce=null,We=!0,ze=!0,fn=!1,dn=!0,be=!1,De=!0,fe=!1,Fe=!1,xe=!1,de=!1,Xt=!1,Ve=!1,vn=!0,ke=!1,hn="user-content-",ue=!0,Me=!1,Te={},Ie=null,Xe=D({},["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"]),Qe=null,pn=D({},["audio","video","img","source","image","track"]),je=null,gn=D({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),ee="http://www.w3.org/1998/Math/MathML",Ue="http://www.w3.org/2000/svg",se="http://www.w3.org/1999/xhtml",Oe=se,Ze=!1,Je=null,An=D({},[ee,Ue,se],N),ce,Pn=["application/xhtml+xml","text/html"],mn="text/html",Qt,Ae=null,Nn=Tt.createElement("form"),yn=function(){function O(P){return P instanceof RegExp||P instanceof Function}return O}(),_e=function(){function O(P){Ae&&Ae===P||((!P||e(P)!=="object")&&(P={}),P=V(P),ce=Pn.indexOf(P.PARSER_MEDIA_TYPE)===-1?ce=mn:ce=P.PARSER_MEDIA_TYPE,Qt=ce==="application/xhtml+xml"?N:b,zt="ALLOWED_TAGS"in P?D({},P.ALLOWED_TAGS,Qt):te,Yt="ALLOWED_ATTR"in P?D({},P.ALLOWED_ATTR,Qt):Ee,Je="ALLOWED_NAMESPACES"in P?D({},P.ALLOWED_NAMESPACES,N):An,je="ADD_URI_SAFE_ATTR"in P?D(V(gn),P.ADD_URI_SAFE_ATTR,Qt):gn,Qe="ADD_DATA_URI_TAGS"in P?D(V(pn),P.ADD_DATA_URI_TAGS,Qt):pn,Ie="FORBID_CONTENTS"in P?D({},P.FORBID_CONTENTS,Qt):Xe,le="FORBID_TAGS"in P?D({},P.FORBID_TAGS,Qt):{},Ce="FORBID_ATTR"in P?D({},P.FORBID_ATTR,Qt):{},Te="USE_PROFILES"in P?P.USE_PROFILES:!1,We=P.ALLOW_ARIA_ATTR!==!1,ze=P.ALLOW_DATA_ATTR!==!1,fn=P.ALLOW_UNKNOWN_PROTOCOLS||!1,dn=P.ALLOW_SELF_CLOSE_IN_ATTR!==!1,be=P.SAFE_FOR_TEMPLATES||!1,De=P.SAFE_FOR_XML!==!1,fe=P.WHOLE_DOCUMENT||!1,de=P.RETURN_DOM||!1,Xt=P.RETURN_DOM_FRAGMENT||!1,Ve=P.RETURN_TRUSTED_TYPE||!1,xe=P.FORCE_BODY||!1,vn=P.SANITIZE_DOM!==!1,ke=P.SANITIZE_NAMED_PROPS||!1,ue=P.KEEP_CONTENT!==!1,Me=P.IN_PLACE||!1,Se=P.ALLOWED_URI_REGEXP||Se,Oe=P.NAMESPACE||se,kt=P.CUSTOM_ELEMENT_HANDLING||{},P.CUSTOM_ELEMENT_HANDLING&&yn(P.CUSTOM_ELEMENT_HANDLING.tagNameCheck)&&(kt.tagNameCheck=P.CUSTOM_ELEMENT_HANDLING.tagNameCheck),P.CUSTOM_ELEMENT_HANDLING&&yn(P.CUSTOM_ELEMENT_HANDLING.attributeNameCheck)&&(kt.attributeNameCheck=P.CUSTOM_ELEMENT_HANDLING.attributeNameCheck),P.CUSTOM_ELEMENT_HANDLING&&typeof P.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements=="boolean"&&(kt.allowCustomizedBuiltInElements=P.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements),be&&(ze=!1),Xt&&(de=!0),Te&&(zt=D({},o(k)),Yt=[],Te.html===!0&&(D(zt,Y),D(Yt,Q)),Te.svg===!0&&(D(zt,K),D(Yt,nt),D(Yt,at)),Te.svgFilters===!0&&(D(zt,H),D(Yt,nt),D(Yt,at)),Te.mathMl===!0&&(D(zt,ut),D(Yt,lt),D(Yt,at))),P.ADD_TAGS&&(zt===te&&(zt=V(zt)),D(zt,P.ADD_TAGS,Qt)),P.ADD_ATTR&&(Yt===Ee&&(Yt=V(Yt)),D(Yt,P.ADD_ATTR,Qt)),P.ADD_URI_SAFE_ATTR&&D(je,P.ADD_URI_SAFE_ATTR,Qt),P.FORBID_CONTENTS&&(Ie===Xe&&(Ie=V(Ie)),D(Ie,P.FORBID_CONTENTS,Qt)),ue&&(zt["#text"]=!0),fe&&D(zt,["html","head","body"]),zt.table&&(D(zt,["tbody"]),delete le.tbody),v&&v(P),Ae=P)}return O}(),Sn=D({},["mi","mo","mn","ms","mtext"]),oe=D({},["foreignobject","desc","title","annotation-xml"]),$e=D({},["title","style","font","a","script"]),Re=D({},K);D(Re,H),D(Re,tt);var qe=D({},ut);D(qe,rt);var Mn=function(){function O(P){var L=Jt(P);(!L||!L.tagName)&&(L={namespaceURI:Oe,tagName:"template"});var F=b(P.tagName),W=b(L.tagName);return Je[P.namespaceURI]?P.namespaceURI===Ue?L.namespaceURI===se?F==="svg":L.namespaceURI===ee?F==="svg"&&(W==="annotation-xml"||Sn[W]):!!Re[F]:P.namespaceURI===ee?L.namespaceURI===se?F==="math":L.namespaceURI===Ue?F==="math"&&oe[W]:!!qe[F]:P.namespaceURI===se?L.namespaceURI===Ue&&!oe[W]||L.namespaceURI===ee&&!Sn[W]?!1:!qe[F]&&($e[F]||!Re[F]):!!(ce==="application/xhtml+xml"&&Je[P.namespaceURI]):!1}return O}(),ne=function(){function O(P){y(st.removed,{element:P});try{P.parentNode.removeChild(P)}catch(L){try{P.outerHTML=Pe}catch(F){P.remove()}}}return O}(),Ge=function(){function O(P,L){try{y(st.removed,{attribute:L.getAttributeNode(P),from:L})}catch(F){y(st.removed,{attribute:null,from:L})}if(L.removeAttribute(P),P==="is"&&!Yt[P])if(de||Xt)try{ne(L)}catch(F){}else try{L.setAttribute(P,"")}catch(F){}}return O}(),En=function(){function O(P){var L,F;if(xe)P=""+P;else{var W=M(P,/^[\r\n\t ]+/);F=W&&W[0]}ce==="application/xhtml+xml"&&Oe===se&&(P=''+P+"");var J=qt?qt.createHTML(P):P;if(Oe===se)try{L=new Ft().parseFromString(J,ce)}catch(it){}if(!L||!L.documentElement){L=me.createDocument(Oe,"template",null);try{L.documentElement.innerHTML=Ze?Pe:J}catch(it){}}var _=L.body||L.documentElement;return P&&F&&_.insertBefore(Tt.createTextNode(F),_.childNodes[0]||null),Oe===se?un.call(L,fe?"html":"body")[0]:fe?L.documentElement:_}return O}(),we=function(){function O(P){return ye.call(P.ownerDocument||P,P,pt.SHOW_ELEMENT|pt.SHOW_COMMENT|pt.SHOW_TEXT|pt.SHOW_PROCESSING_INSTRUCTION|pt.SHOW_CDATA_SECTION,null,!1)}return O}(),Rn=function(){function O(P){return P instanceof Ot&&(typeof P.nodeName!="string"||typeof P.textContent!="string"||typeof P.removeChild!="function"||!(P.attributes instanceof St)||typeof P.removeAttribute!="function"||typeof P.setAttribute!="function"||typeof P.namespaceURI!="string"||typeof P.insertBefore!="function"||typeof P.hasChildNodes!="function")}return O}(),he=function(){function O(P){return e(Ct)==="object"?P instanceof Ct:P&&e(P)==="object"&&typeof P.nodeType=="number"&&typeof P.nodeName=="string"}return O}(),ae=function(){function O(P,L,F){re[P]&&T(re[P],function(W){W.call(st,L,F,Ae)})}return O}(),Cn=function(){function O(P){var L;if(ae("beforeSanitizeElements",P,null),Rn(P)||x(/[\u0080-\uFFFF]/,P.nodeName))return ne(P),!0;var F=Qt(P.nodeName);if(ae("uponSanitizeElement",P,{tagName:F,allowedTags:zt}),P.hasChildNodes()&&!he(P.firstElementChild)&&(!he(P.content)||!he(P.content.firstElementChild))&&x(/<[/\w]/g,P.innerHTML)&&x(/<[/\w]/g,P.textContent)||F==="select"&&x(/