14 lines
93 KiB
JavaScript
14 lines
93 KiB
JavaScript
var t="top",e="bottom",n="right",i="left",s=[t,e,n,i],o=s.reduce((function(t,e){return t.concat([e+"-start",e+"-end"])}),[]),r=[].concat(s,["auto"]).reduce((function(t,e){return t.concat([e,e+"-start",e+"-end"])}),[]),a=["beforeRead","read","afterRead","beforeMain","main","afterMain","beforeWrite","write","afterWrite"];function l(t){return t?(t.nodeName||"").toLowerCase():null}function c(t){if(null==t)return window;if("[object Window]"!==t.toString()){var e=t.ownerDocument;return e&&e.defaultView||window}return t}function d(t){return t instanceof c(t).Element||t instanceof Element}function u(t){return t instanceof c(t).HTMLElement||t instanceof HTMLElement}function h(t){return"undefined"!=typeof ShadowRoot&&(t instanceof c(t).ShadowRoot||t instanceof ShadowRoot)}var p={name:"applyStyles",enabled:!0,phase:"write",fn:function(t){var e=t.state;Object.keys(e.elements).forEach((function(t){var n=e.styles[t]||{},i=e.attributes[t]||{},s=e.elements[t];u(s)&&l(s)&&(Object.assign(s.style,n),Object.keys(i).forEach((function(t){var e=i[t];!1===e?s.removeAttribute(t):s.setAttribute(t,!0===e?"":e)})))}))},effect:function(t){var e=t.state,n={popper:{position:e.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(e.elements.popper.style,n.popper),e.styles=n,e.elements.arrow&&Object.assign(e.elements.arrow.style,n.arrow),function(){Object.keys(e.elements).forEach((function(t){var i=e.elements[t],s=e.attributes[t]||{},o=Object.keys(e.styles.hasOwnProperty(t)?e.styles[t]:n[t]).reduce((function(t,e){return t[e]="",t}),{});u(i)&&l(i)&&(Object.assign(i.style,o),Object.keys(s).forEach((function(t){i.removeAttribute(t)})))}))}},requires:["computeStyles"]};function f(t){return t.split("-")[0]}function m(t){var e=t.getBoundingClientRect();return{width:e.width,height:e.height,top:e.top,right:e.right,bottom:e.bottom,left:e.left,x:e.left,y:e.top}}function g(t){var e=m(t),n=t.offsetWidth,i=t.offsetHeight;return Math.abs(e.width-n)<=1&&(n=e.width),Math.abs(e.height-i)<=1&&(i=e.height),{x:t.offsetLeft,y:t.offsetTop,width:n,height:i}}function _(t,e){var n=e.getRootNode&&e.getRootNode();if(t.contains(e))return!0;if(n&&h(n)){var i=e;do{if(i&&t.isSameNode(i))return!0;i=i.parentNode||i.host}while(i)}return!1}function b(t){return c(t).getComputedStyle(t)}function v(t){return["table","td","th"].indexOf(l(t))>=0}function y(t){return((d(t)?t.ownerDocument:t.document)||window.document).documentElement}function w(t){return"html"===l(t)?t:t.assignedSlot||t.parentNode||(h(t)?t.host:null)||y(t)}function E(t){return u(t)&&"fixed"!==b(t).position?t.offsetParent:null}function T(t){for(var e=c(t),n=E(t);n&&v(n)&&"static"===b(n).position;)n=E(n);return n&&("html"===l(n)||"body"===l(n)&&"static"===b(n).position)?e:n||function(t){for(var e=-1!==navigator.userAgent.toLowerCase().indexOf("firefox"),n=w(t);u(n)&&["html","body"].indexOf(l(n))<0;){var i=b(n);if("none"!==i.transform||"none"!==i.perspective||"paint"===i.contain||-1!==["transform","perspective"].indexOf(i.willChange)||e&&"filter"===i.willChange||e&&i.filter&&"none"!==i.filter)return n;n=n.parentNode}return null}(t)||e}function A(t){return["top","bottom"].indexOf(t)>=0?"x":"y"}var O=Math.max,L=Math.min,x=Math.round;function D(t,e,n){return O(t,L(e,n))}function k(t){return Object.assign({},{top:0,right:0,bottom:0,left:0},t)}function C(t,e){return e.reduce((function(e,n){return e[n]=t,e}),{})}var S={name:"arrow",enabled:!0,phase:"main",fn:function(o){var r,a=o.state,l=o.name,c=o.options,d=a.elements.arrow,u=a.modifiersData.popperOffsets,h=f(a.placement),p=A(h),m=[i,n].indexOf(h)>=0?"height":"width";if(d&&u){var _=function(t,e){return k("number"!=typeof(t="function"==typeof t?t(Object.assign({},e.rects,{placement:e.placement})):t)?t:C(t,s))}(c.padding,a),b=g(d),v="y"===p?t:i,y="y"===p?e:n,w=a.rects.reference[m]+a.rects.reference[p]-u[p]-a.rects.popper[m],E=u[p]-a.rects.reference[p],O=T(d),L=O?"y"===p?O.clientHeight||0:O.clientWidth||0:0,x=w/2-E/2,S=_[v],N=L-b[m]-_[y],j=L/2-b[m]/2+x,I=D(S,j,N),P=p;a.modifiersData[l]=((r={})[P]=I,r.centerOffset=I-j,r)}},effect:function(t){var e=t.state,n=t.options.element,i=void 0===n?"[data-popper-arrow]":n;null!=i&&("string"!=typeof i||(i=e.elements.popper.querySelector(i)))&&_(e.elements.popper,i)&&(e.elements.arrow=i)},requires:["popperOffsets"],requiresIfExists:["preventOverflow"]},N={top:"auto",right:"auto",bottom:"auto",left:"auto"};function j(s){var o,r=s.popper,a=s.popperRect,l=s.placement,d=s.offsets,u=s.position,h=s.gpuAcceleration,p=s.adaptive,f=s.roundOffsets,m=!0===f?function(t){var e=t.x,n=t.y,i=window.devicePixelRatio||1;return{x:x(x(e*i)/i)||0,y:x(x(n*i)/i)||0}}(d):"function"==typeof f?f(d):d,g=m.x,_=void 0===g?0:g,v=m.y,w=void 0===v?0:v,E=d.hasOwnProperty("x"),A=d.hasOwnProperty("y"),O=i,L=t,D=window;if(p){var k=T(r),C="clientHeight",S="clientWidth";k===c(r)&&"static"!==b(k=y(r)).position&&(C="scrollHeight",S="scrollWidth"),k=k,l===t&&(L=e,w-=k[C]-a.height,w*=h?1:-1),l===i&&(O=n,_-=k[S]-a.width,_*=h?1:-1)}var j,I=Object.assign({position:u},p&&N);return h?Object.assign({},I,((j={})[L]=A?"0":"",j[O]=E?"0":"",j.transform=(D.devicePixelRatio||1)<2?"translate("+_+"px, "+w+"px)":"translate3d("+_+"px, "+w+"px, 0)",j)):Object.assign({},I,((o={})[L]=A?w+"px":"",o[O]=E?_+"px":"",o.transform="",o))}var I={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:function(t){var e=t.state,n=t.options,i=n.gpuAcceleration,s=void 0===i||i,o=n.adaptive,r=void 0===o||o,a=n.roundOffsets,l=void 0===a||a,c={placement:f(e.placement),popper:e.elements.popper,popperRect:e.rects.popper,gpuAcceleration:s};null!=e.modifiersData.popperOffsets&&(e.styles.popper=Object.assign({},e.styles.popper,j(Object.assign({},c,{offsets:e.modifiersData.popperOffsets,position:e.options.strategy,adaptive:r,roundOffsets:l})))),null!=e.modifiersData.arrow&&(e.styles.arrow=Object.assign({},e.styles.arrow,j(Object.assign({},c,{offsets:e.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:l})))),e.attributes.popper=Object.assign({},e.attributes.popper,{"data-popper-placement":e.placement})},data:{}},P={passive:!0};var M={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:function(t){var e=t.state,n=t.instance,i=t.options,s=i.scroll,o=void 0===s||s,r=i.resize,a=void 0===r||r,l=c(e.elements.popper),d=[].concat(e.scrollParents.reference,e.scrollParents.popper);return o&&d.forEach((function(t){t.addEventListener("scroll",n.update,P)})),a&&l.addEventListener("resize",n.update,P),function(){o&&d.forEach((function(t){t.removeEventListener("scroll",n.update,P)})),a&&l.removeEventListener("resize",n.update,P)}},data:{}},H={left:"right",right:"left",bottom:"top",top:"bottom"};function R(t){return t.replace(/left|right|bottom|top/g,(function(t){return H[t]}))}var B={start:"end",end:"start"};function $(t){return t.replace(/start|end/g,(function(t){return B[t]}))}function W(t){var e=c(t);return{scrollLeft:e.pageXOffset,scrollTop:e.pageYOffset}}function U(t){return m(y(t)).left+W(t).scrollLeft}function V(t){var e=b(t),n=e.overflow,i=e.overflowX,s=e.overflowY;return/auto|scroll|overlay|hidden/.test(n+s+i)}function z(t){return["html","body","#document"].indexOf(l(t))>=0?t.ownerDocument.body:u(t)&&V(t)?t:z(w(t))}function F(t,e){var n;void 0===e&&(e=[]);var i=z(t),s=i===(null==(n=t.ownerDocument)?void 0:n.body),o=c(i),r=s?[o].concat(o.visualViewport||[],V(i)?i:[]):i,a=e.concat(r);return s?a:a.concat(F(w(r)))}function q(t){return Object.assign({},t,{left:t.x,top:t.y,right:t.x+t.width,bottom:t.y+t.height})}function Y(t,e){return"viewport"===e?q(function(t){var e=c(t),n=y(t),i=e.visualViewport,s=n.clientWidth,o=n.clientHeight,r=0,a=0;return i&&(s=i.width,o=i.height,/^((?!chrome|android).)*safari/i.test(navigator.userAgent)||(r=i.offsetLeft,a=i.offsetTop)),{width:s,height:o,x:r+U(t),y:a}}(t)):u(e)?function(t){var e=m(t);return e.top=e.top+t.clientTop,e.left=e.left+t.clientLeft,e.bottom=e.top+t.clientHeight,e.right=e.left+t.clientWidth,e.width=t.clientWidth,e.height=t.clientHeight,e.x=e.left,e.y=e.top,e}(e):q(function(t){var e,n=y(t),i=W(t),s=null==(e=t.ownerDocument)?void 0:e.body,o=O(n.scrollWidth,n.clientWidth,s?s.scrollWidth:0,s?s.clientWidth:0),r=O(n.scrollHeight,n.clientHeight,s?s.scrollHeight:0,s?s.clientHeight:0),a=-i.scrollLeft+U(t),l=-i.scrollTop;return"rtl"===b(s||n).direction&&(a+=O(n.clientWidth,s?s.clientWidth:0)-o),{width:o,height:r,x:a,y:l}}(y(t)))}function K(t,e,n){var i="clippingParents"===e?function(t){var e=F(w(t)),n=["absolute","fixed"].indexOf(b(t).position)>=0&&u(t)?T(t):t;return d(n)?e.filter((function(t){return d(t)&&_(t,n)&&"body"!==l(t)})):[]}(t):[].concat(e),s=[].concat(i,[n]),o=s[0],r=s.reduce((function(e,n){var i=Y(t,n);return e.top=O(i.top,e.top),e.right=L(i.right,e.right),e.bottom=L(i.bottom,e.bottom),e.left=O(i.left,e.left),e}),Y(t,o));return r.width=r.right-r.left,r.height=r.bottom-r.top,r.x=r.left,r.y=r.top,r}function X(t){return t.split("-")[1]}function Q(s){var o,r=s.reference,a=s.element,l=s.placement,c=l?f(l):null,d=l?X(l):null,u=r.x+r.width/2-a.width/2,h=r.y+r.height/2-a.height/2;switch(c){case t:o={x:u,y:r.y-a.height};break;case e:o={x:u,y:r.y+r.height};break;case n:o={x:r.x+r.width,y:h};break;case i:o={x:r.x-a.width,y:h};break;default:o={x:r.x,y:r.y}}var p=c?A(c):null;if(null!=p){var m="y"===p?"height":"width";switch(d){case"start":o[p]=o[p]-(r[m]/2-a[m]/2);break;case"end":o[p]=o[p]+(r[m]/2-a[m]/2)}}return o}function G(i,o){void 0===o&&(o={});var r=o,a=r.placement,l=void 0===a?i.placement:a,c=r.boundary,u=void 0===c?"clippingParents":c,h=r.rootBoundary,p=void 0===h?"viewport":h,f=r.elementContext,g=void 0===f?"popper":f,_=r.altBoundary,b=void 0!==_&&_,v=r.padding,w=void 0===v?0:v,E=k("number"!=typeof w?w:C(w,s)),T="popper"===g?"reference":"popper",A=i.elements.reference,O=i.rects.popper,L=i.elements[b?T:g],x=K(d(L)?L:L.contextElement||y(i.elements.popper),u,p),D=m(A),S=Q({reference:D,element:O,strategy:"absolute",placement:l}),N=q(Object.assign({},O,S)),j="popper"===g?N:D,I={top:x.top-j.top+E.top,bottom:j.bottom-x.bottom+E.bottom,left:x.left-j.left+E.left,right:j.right-x.right+E.right},P=i.modifiersData.offset;if("popper"===g&&P){var M=P[l];Object.keys(I).forEach((function(i){var s=[n,e].indexOf(i)>=0?1:-1,o=[t,e].indexOf(i)>=0?"y":"x";I[i]+=M[o]*s}))}return I}function J(t,e){void 0===e&&(e={});var n=e,i=n.placement,a=n.boundary,l=n.rootBoundary,c=n.padding,d=n.flipVariations,u=n.allowedAutoPlacements,h=void 0===u?r:u,p=X(i),m=p?d?o:o.filter((function(t){return X(t)===p})):s,g=m.filter((function(t){return h.indexOf(t)>=0}));0===g.length&&(g=m);var _=g.reduce((function(e,n){return e[n]=G(t,{placement:n,boundary:a,rootBoundary:l,padding:c})[f(n)],e}),{});return Object.keys(_).sort((function(t,e){return _[t]-_[e]}))}var Z={name:"flip",enabled:!0,phase:"main",fn:function(s){var o=s.state,r=s.options,a=s.name;if(!o.modifiersData[a]._skip){for(var l=r.mainAxis,c=void 0===l||l,d=r.altAxis,u=void 0===d||d,h=r.fallbackPlacements,p=r.padding,m=r.boundary,g=r.rootBoundary,_=r.altBoundary,b=r.flipVariations,v=void 0===b||b,y=r.allowedAutoPlacements,w=o.options.placement,E=f(w),T=h||(E===w||!v?[R(w)]:function(t){if("auto"===f(t))return[];var e=R(t);return[$(t),e,$(e)]}(w)),A=[w].concat(T).reduce((function(t,e){return t.concat("auto"===f(e)?J(o,{placement:e,boundary:m,rootBoundary:g,padding:p,flipVariations:v,allowedAutoPlacements:y}):e)}),[]),O=o.rects.reference,L=o.rects.popper,x=new Map,D=!0,k=A[0],C=0;C<A.length;C++){var S=A[C],N=f(S),j="start"===X(S),I=[t,e].indexOf(N)>=0,P=I?"width":"height",M=G(o,{placement:S,boundary:m,rootBoundary:g,altBoundary:_,padding:p}),H=I?j?n:i:j?e:t;O[P]>L[P]&&(H=R(H));var B=R(H),W=[];if(c&&W.push(M[N]<=0),u&&W.push(M[H]<=0,M[B]<=0),W.every((function(t){return t}))){k=S,D=!1;break}x.set(S,W)}if(D)for(var U=function(t){var e=A.find((function(e){var n=x.get(e);if(n)return n.slice(0,t).every((function(t){return t}))}));if(e)return k=e,"break"},V=v?3:1;V>0;V--){if("break"===U(V))break}o.placement!==k&&(o.modifiersData[a]._skip=!0,o.placement=k,o.reset=!0)}},requiresIfExists:["offset"],data:{_skip:!1}};function tt(t,e,n){return void 0===n&&(n={x:0,y:0}),{top:t.top-e.height-n.y,right:t.right-e.width+n.x,bottom:t.bottom-e.height+n.y,left:t.left-e.width-n.x}}function et(s){return[t,n,e,i].some((function(t){return s[t]>=0}))}var nt={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:function(t){var e=t.state,n=t.name,i=e.rects.reference,s=e.rects.popper,o=e.modifiersData.preventOverflow,r=G(e,{elementContext:"reference"}),a=G(e,{altBoundary:!0}),l=tt(r,i),c=tt(a,s,o),d=et(l),u=et(c);e.modifiersData[n]={referenceClippingOffsets:l,popperEscapeOffsets:c,isReferenceHidden:d,hasPopperEscaped:u},e.attributes.popper=Object.assign({},e.attributes.popper,{"data-popper-reference-hidden":d,"data-popper-escaped":u})}};var it={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:function(e){var s=e.state,o=e.options,a=e.name,l=o.offset,c=void 0===l?[0,0]:l,d=r.reduce((function(e,o){return e[o]=function(e,s,o){var r=f(e),a=[i,t].indexOf(r)>=0?-1:1,l="function"==typeof o?o(Object.assign({},s,{placement:e})):o,c=l[0],d=l[1];return c=c||0,d=(d||0)*a,[i,n].indexOf(r)>=0?{x:d,y:c}:{x:c,y:d}}(o,s.rects,c),e}),{}),u=d[s.placement],h=u.x,p=u.y;null!=s.modifiersData.popperOffsets&&(s.modifiersData.popperOffsets.x+=h,s.modifiersData.popperOffsets.y+=p),s.modifiersData[a]=d}};var st={name:"popperOffsets",enabled:!0,phase:"read",fn:function(t){var e=t.state,n=t.name;e.modifiersData[n]=Q({reference:e.rects.reference,element:e.rects.popper,strategy:"absolute",placement:e.placement})},data:{}};var ot={name:"preventOverflow",enabled:!0,phase:"main",fn:function(s){var o=s.state,r=s.options,a=s.name,l=r.mainAxis,c=void 0===l||l,d=r.altAxis,u=void 0!==d&&d,h=r.boundary,p=r.rootBoundary,m=r.altBoundary,_=r.padding,b=r.tether,v=void 0===b||b,y=r.tetherOffset,w=void 0===y?0:y,E=G(o,{boundary:h,rootBoundary:p,padding:_,altBoundary:m}),x=f(o.placement),k=X(o.placement),C=!k,S=A(x),N="x"===S?"y":"x",j=o.modifiersData.popperOffsets,I=o.rects.reference,P=o.rects.popper,M="function"==typeof w?w(Object.assign({},o.rects,{placement:o.placement})):w,H={x:0,y:0};if(j){if(c||u){var R="y"===S?t:i,B="y"===S?e:n,$="y"===S?"height":"width",W=j[S],U=j[S]+E[R],V=j[S]-E[B],z=v?-P[$]/2:0,F="start"===k?I[$]:P[$],q="start"===k?-P[$]:-I[$],Y=o.elements.arrow,K=v&&Y?g(Y):{width:0,height:0},Q=o.modifiersData["arrow#persistent"]?o.modifiersData["arrow#persistent"].padding:{top:0,right:0,bottom:0,left:0},J=Q[R],Z=Q[B],tt=D(0,I[$],K[$]),et=C?I[$]/2-z-tt-J-M:F-tt-J-M,nt=C?-I[$]/2+z+tt+Z+M:q+tt+Z+M,it=o.elements.arrow&&T(o.elements.arrow),st=it?"y"===S?it.clientTop||0:it.clientLeft||0:0,ot=o.modifiersData.offset?o.modifiersData.offset[o.placement][S]:0,rt=j[S]+et-ot-st,at=j[S]+nt-ot;if(c){var lt=D(v?L(U,rt):U,W,v?O(V,at):V);j[S]=lt,H[S]=lt-W}if(u){var ct="x"===S?t:i,dt="x"===S?e:n,ut=j[N],ht=ut+E[ct],pt=ut-E[dt],ft=D(v?L(ht,rt):ht,ut,v?O(pt,at):pt);j[N]=ft,H[N]=ft-ut}}o.modifiersData[a]=H}},requiresIfExists:["offset"]};function rt(t,e,n){void 0===n&&(n=!1);var i,s,o=y(e),r=m(t),a=u(e),d={scrollLeft:0,scrollTop:0},h={x:0,y:0};return(a||!a&&!n)&&(("body"!==l(e)||V(o))&&(d=(i=e)!==c(i)&&u(i)?{scrollLeft:(s=i).scrollLeft,scrollTop:s.scrollTop}:W(i)),u(e)?((h=m(e)).x+=e.clientLeft,h.y+=e.clientTop):o&&(h.x=U(o))),{x:r.left+d.scrollLeft-h.x,y:r.top+d.scrollTop-h.y,width:r.width,height:r.height}}function at(t){var e=new Map,n=new Set,i=[];function s(t){n.add(t.name),[].concat(t.requires||[],t.requiresIfExists||[]).forEach((function(t){if(!n.has(t)){var i=e.get(t);i&&s(i)}})),i.push(t)}return t.forEach((function(t){e.set(t.name,t)})),t.forEach((function(t){n.has(t.name)||s(t)})),i}var lt={placement:"bottom",modifiers:[],strategy:"absolute"};function ct(){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];return!e.some((function(t){return!(t&&"function"==typeof t.getBoundingClientRect)}))}function dt(t){void 0===t&&(t={});var e=t,n=e.defaultModifiers,i=void 0===n?[]:n,s=e.defaultOptions,o=void 0===s?lt:s;return function(t,e,n){void 0===n&&(n=o);var s,r,l={placement:"bottom",orderedModifiers:[],options:Object.assign({},lt,o),modifiersData:{},elements:{reference:t,popper:e},attributes:{},styles:{}},c=[],u=!1,h={state:l,setOptions:function(n){p(),l.options=Object.assign({},o,l.options,n),l.scrollParents={reference:d(t)?F(t):t.contextElement?F(t.contextElement):[],popper:F(e)};var s,r,u=function(t){var e=at(t);return a.reduce((function(t,n){return t.concat(e.filter((function(t){return t.phase===n})))}),[])}((s=[].concat(i,l.options.modifiers),r=s.reduce((function(t,e){var n=t[e.name];return t[e.name]=n?Object.assign({},n,e,{options:Object.assign({},n.options,e.options),data:Object.assign({},n.data,e.data)}):e,t}),{}),Object.keys(r).map((function(t){return r[t]}))));return l.orderedModifiers=u.filter((function(t){return t.enabled})),l.orderedModifiers.forEach((function(t){var e=t.name,n=t.options,i=void 0===n?{}:n,s=t.effect;if("function"==typeof s){var o=s({state:l,name:e,instance:h,options:i}),r=function(){};c.push(o||r)}})),h.update()},forceUpdate:function(){if(!u){var t=l.elements,e=t.reference,n=t.popper;if(ct(e,n)){l.rects={reference:rt(e,T(n),"fixed"===l.options.strategy),popper:g(n)},l.reset=!1,l.placement=l.options.placement,l.orderedModifiers.forEach((function(t){return l.modifiersData[t.name]=Object.assign({},t.data)}));for(var i=0;i<l.orderedModifiers.length;i++)if(!0!==l.reset){var s=l.orderedModifiers[i],o=s.fn,r=s.options,a=void 0===r?{}:r,c=s.name;"function"==typeof o&&(l=o({state:l,options:a,name:c,instance:h})||l)}else l.reset=!1,i=-1}}},update:(s=function(){return new Promise((function(t){h.forceUpdate(),t(l)}))},function(){return r||(r=new Promise((function(t){Promise.resolve().then((function(){r=void 0,t(s())}))}))),r}),destroy:function(){p(),u=!0}};if(!ct(t,e))return h;function p(){c.forEach((function(t){return t()})),c=[]}return h.setOptions(n).then((function(t){!u&&n.onFirstUpdate&&n.onFirstUpdate(t)})),h}}var ut=dt(),ht=dt({defaultModifiers:[M,st,I,p]}),pt=dt({defaultModifiers:[M,st,I,p,it,Z,ot,S,nt]}),ft=Object.freeze({__proto__:null,popperGenerator:dt,detectOverflow:G,createPopperBase:ut,createPopper:pt,createPopperLite:ht,top:t,bottom:e,right:n,left:i,auto:"auto",basePlacements:s,start:"start",end:"end",clippingParents:"clippingParents",viewport:"viewport",popper:"popper",reference:"reference",variationPlacements:o,placements:r,beforeRead:"beforeRead",read:"read",afterRead:"afterRead",beforeMain:"beforeMain",main:"main",afterMain:"afterMain",beforeWrite:"beforeWrite",write:"write",afterWrite:"afterWrite",modifierPhases:a,applyStyles:p,arrow:S,computeStyles:I,eventListeners:M,flip:Z,hide:nt,offset:it,popperOffsets:st,preventOverflow:ot});
|
|
/*!
|
|
* Bootstrap v5.0.0 (https://getbootstrap.com/)
|
|
* Copyright 2011-2021 The Bootstrap Authors (https://github.com/twbs/bootstrap/graphs/contributors)
|
|
* Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE)
|
|
*/
|
|
const mt=t=>{do{t+=Math.floor(1e6*Math.random())}while(document.getElementById(t));return t},gt=t=>{let e=t.getAttribute("data-bs-target");if(!e||"#"===e){let n=t.getAttribute("href");if(!n||!n.includes("#")&&!n.startsWith("."))return null;n.includes("#")&&!n.startsWith("#")&&(n=`#${n.split("#")[1]}`),e=n&&"#"!==n?n.trim():null}return e},_t=t=>{const e=gt(t);return e&&document.querySelector(e)?e:null},bt=t=>{const e=gt(t);return e?document.querySelector(e):null},vt=t=>{if(!t)return 0;let{transitionDuration:e,transitionDelay:n}=window.getComputedStyle(t);const i=Number.parseFloat(e),s=Number.parseFloat(n);return i||s?(e=e.split(",")[0],n=n.split(",")[0],1e3*(Number.parseFloat(e)+Number.parseFloat(n))):0},yt=t=>{t.dispatchEvent(new Event("transitionend"))},wt=t=>(t[0]||t).nodeType,Et=(t,e)=>{let n=!1;const i=e+5;t.addEventListener("transitionend",(function e(){n=!0,t.removeEventListener("transitionend",e)})),setTimeout((()=>{n||yt(t)}),i)},Tt=(t,e,n)=>{Object.keys(n).forEach((i=>{const s=n[i],o=e[i],r=o&&wt(o)?"element":null==(a=o)?`${a}`:{}.toString.call(a).match(/\s([a-z]+)/i)[1].toLowerCase();var a;if(!new RegExp(s).test(r))throw new TypeError(`${t.toUpperCase()}: Option "${i}" provided type "${r}" but expected type "${s}".`)}))},At=t=>{if(!t)return!1;if(t.style&&t.parentNode&&t.parentNode.style){const e=getComputedStyle(t),n=getComputedStyle(t.parentNode);return"none"!==e.display&&"none"!==n.display&&"hidden"!==e.visibility}return!1},Ot=t=>!t||t.nodeType!==Node.ELEMENT_NODE||(!!t.classList.contains("disabled")||(void 0!==t.disabled?t.disabled:t.hasAttribute("disabled")&&"false"!==t.getAttribute("disabled"))),Lt=t=>{if(!document.documentElement.attachShadow)return null;if("function"==typeof t.getRootNode){const e=t.getRootNode();return e instanceof ShadowRoot?e:null}return t instanceof ShadowRoot?t:t.parentNode?Lt(t.parentNode):null},xt=()=>{},Dt=t=>t.offsetHeight,kt=()=>{const{jQuery:t}=window;return t&&!document.body.hasAttribute("data-bs-no-jquery")?t:null},Ct=()=>"rtl"===document.documentElement.dir,St=(t,e)=>{var n;n=()=>{const n=kt();if(n){const i=n.fn[t];n.fn[t]=e.jQueryInterface,n.fn[t].Constructor=e,n.fn[t].noConflict=()=>(n.fn[t]=i,e.jQueryInterface)}},"loading"===document.readyState?document.addEventListener("DOMContentLoaded",n):n()},Nt=t=>{"function"==typeof t&&t()},jt=new Map;var It={set(t,e,n){jt.has(t)||jt.set(t,new Map);const i=jt.get(t);i.has(e)||0===i.size?i.set(e,n):console.error(`Bootstrap doesn't allow more than one instance per element. Bound instance: ${Array.from(i.keys())[0]}.`)},get:(t,e)=>jt.has(t)&&jt.get(t).get(e)||null,remove(t,e){if(!jt.has(t))return;const n=jt.get(t);n.delete(e),0===n.size&&jt.delete(t)}};const Pt=/[^.]*(?=\..*)\.|.*/,Mt=/\..*/,Ht=/::\d+$/,Rt={};let Bt=1;const $t={mouseenter:"mouseover",mouseleave:"mouseout"},Wt=/^(mouseenter|mouseleave)/i,Ut=new Set(["click","dblclick","mouseup","mousedown","contextmenu","mousewheel","DOMMouseScroll","mouseover","mouseout","mousemove","selectstart","selectend","keydown","keypress","keyup","orientationchange","touchstart","touchmove","touchend","touchcancel","pointerdown","pointermove","pointerup","pointerleave","pointercancel","gesturestart","gesturechange","gestureend","focus","blur","change","reset","select","submit","focusin","focusout","load","unload","beforeunload","resize","move","DOMContentLoaded","readystatechange","error","abort","scroll"]);function Vt(t,e){return e&&`${e}::${Bt++}`||t.uidEvent||Bt++}function zt(t){const e=Vt(t);return t.uidEvent=e,Rt[e]=Rt[e]||{},Rt[e]}function Ft(t,e,n=null){const i=Object.keys(t);for(let s=0,o=i.length;s<o;s++){const o=t[i[s]];if(o.originalHandler===e&&o.delegationSelector===n)return o}return null}function qt(t,e,n){const i="string"==typeof e,s=i?n:e;let o=Xt(t);return Ut.has(o)||(o=t),[i,s,o]}function Yt(t,e,n,i,s){if("string"!=typeof e||!t)return;if(n||(n=i,i=null),Wt.test(e)){const t=t=>function(e){if(!e.relatedTarget||e.relatedTarget!==e.delegateTarget&&!e.delegateTarget.contains(e.relatedTarget))return t.call(this,e)};i?i=t(i):n=t(n)}const[o,r,a]=qt(e,n,i),l=zt(t),c=l[a]||(l[a]={}),d=Ft(c,r,o?n:null);if(d)return void(d.oneOff=d.oneOff&&s);const u=Vt(r,e.replace(Pt,"")),h=o?function(t,e,n){return function i(s){const o=t.querySelectorAll(e);for(let{target:r}=s;r&&r!==this;r=r.parentNode)for(let a=o.length;a--;)if(o[a]===r)return s.delegateTarget=r,i.oneOff&&Qt.off(t,s.type,e,n),n.apply(r,[s]);return null}}(t,n,i):function(t,e){return function n(i){return i.delegateTarget=t,n.oneOff&&Qt.off(t,i.type,e),e.apply(t,[i])}}(t,n);h.delegationSelector=o?n:null,h.originalHandler=r,h.oneOff=s,h.uidEvent=u,c[u]=h,t.addEventListener(a,h,o)}function Kt(t,e,n,i,s){const o=Ft(e[n],i,s);o&&(t.removeEventListener(n,o,Boolean(s)),delete e[n][o.uidEvent])}function Xt(t){return t=t.replace(Mt,""),$t[t]||t}const Qt={on(t,e,n,i){Yt(t,e,n,i,!1)},one(t,e,n,i){Yt(t,e,n,i,!0)},off(t,e,n,i){if("string"!=typeof e||!t)return;const[s,o,r]=qt(e,n,i),a=r!==e,l=zt(t),c=e.startsWith(".");if(void 0!==o){if(!l||!l[r])return;return void Kt(t,l,r,o,s?n:null)}c&&Object.keys(l).forEach((n=>{!function(t,e,n,i){const s=e[n]||{};Object.keys(s).forEach((o=>{if(o.includes(i)){const i=s[o];Kt(t,e,n,i.originalHandler,i.delegationSelector)}}))}(t,l,n,e.slice(1))}));const d=l[r]||{};Object.keys(d).forEach((n=>{const i=n.replace(Ht,"");if(!a||e.includes(i)){const e=d[n];Kt(t,l,r,e.originalHandler,e.delegationSelector)}}))},trigger(t,e,n){if("string"!=typeof e||!t)return null;const i=kt(),s=Xt(e),o=e!==s,r=Ut.has(s);let a,l=!0,c=!0,d=!1,u=null;return o&&i&&(a=i.Event(e,n),i(t).trigger(a),l=!a.isPropagationStopped(),c=!a.isImmediatePropagationStopped(),d=a.isDefaultPrevented()),r?(u=document.createEvent("HTMLEvents"),u.initEvent(s,l,!0)):u=new CustomEvent(e,{bubbles:l,cancelable:!0}),void 0!==n&&Object.keys(n).forEach((t=>{Object.defineProperty(u,t,{get:()=>n[t]})})),d&&u.preventDefault(),c&&t.dispatchEvent(u),u.defaultPrevented&&void 0!==a&&a.preventDefault(),u}};class Gt{constructor(t){(t="string"==typeof t?document.querySelector(t):t)&&(this._element=t,It.set(this._element,this.constructor.DATA_KEY,this))}dispose(){It.remove(this._element,this.constructor.DATA_KEY),Qt.off(this._element,`.${this.constructor.DATA_KEY}`),this._element=null}static getInstance(t){return It.get(t,this.DATA_KEY)}static get VERSION(){return"5.0.0"}}class Jt extends Gt{static get DATA_KEY(){return"bs.alert"}close(t){const e=t?this._getRootElement(t):this._element,n=this._triggerCloseEvent(e);null===n||n.defaultPrevented||this._removeElement(e)}_getRootElement(t){return bt(t)||t.closest(".alert")}_triggerCloseEvent(t){return Qt.trigger(t,"close.bs.alert")}_removeElement(t){if(t.classList.remove("show"),!t.classList.contains("fade"))return void this._destroyElement(t);const e=vt(t);Qt.one(t,"transitionend",(()=>this._destroyElement(t))),Et(t,e)}_destroyElement(t){t.parentNode&&t.parentNode.removeChild(t),Qt.trigger(t,"closed.bs.alert")}static jQueryInterface(t){return this.each((function(){let e=It.get(this,"bs.alert");e||(e=new Jt(this)),"close"===t&&e[t](this)}))}static handleDismiss(t){return function(e){e&&e.preventDefault(),t.close(this)}}}Qt.on(document,"click.bs.alert.data-api",'[data-bs-dismiss="alert"]',Jt.handleDismiss(new Jt)),St("alert",Jt);class Zt extends Gt{static get DATA_KEY(){return"bs.button"}toggle(){this._element.setAttribute("aria-pressed",this._element.classList.toggle("active"))}static jQueryInterface(t){return this.each((function(){let e=It.get(this,"bs.button");e||(e=new Zt(this)),"toggle"===t&&e[t]()}))}}function te(t){return"true"===t||"false"!==t&&(t===Number(t).toString()?Number(t):""===t||"null"===t?null:t)}function ee(t){return t.replace(/[A-Z]/g,(t=>`-${t.toLowerCase()}`))}Qt.on(document,"click.bs.button.data-api",'[data-bs-toggle="button"]',(t=>{t.preventDefault();const e=t.target.closest('[data-bs-toggle="button"]');let n=It.get(e,"bs.button");n||(n=new Zt(e)),n.toggle()})),St("button",Zt);const ne={setDataAttribute(t,e,n){t.setAttribute(`data-bs-${ee(e)}`,n)},removeDataAttribute(t,e){t.removeAttribute(`data-bs-${ee(e)}`)},getDataAttributes(t){if(!t)return{};const e={};return Object.keys(t.dataset).filter((t=>t.startsWith("bs"))).forEach((n=>{let i=n.replace(/^bs/,"");i=i.charAt(0).toLowerCase()+i.slice(1,i.length),e[i]=te(t.dataset[n])})),e},getDataAttribute:(t,e)=>te(t.getAttribute(`data-bs-${ee(e)}`)),offset(t){const e=t.getBoundingClientRect();return{top:e.top+document.body.scrollTop,left:e.left+document.body.scrollLeft}},position:t=>({top:t.offsetTop,left:t.offsetLeft})},ie={find:(t,e=document.documentElement)=>[].concat(...Element.prototype.querySelectorAll.call(e,t)),findOne:(t,e=document.documentElement)=>Element.prototype.querySelector.call(e,t),children:(t,e)=>[].concat(...t.children).filter((t=>t.matches(e))),parents(t,e){const n=[];let i=t.parentNode;for(;i&&i.nodeType===Node.ELEMENT_NODE&&3!==i.nodeType;)i.matches(e)&&n.push(i),i=i.parentNode;return n},prev(t,e){let n=t.previousElementSibling;for(;n;){if(n.matches(e))return[n];n=n.previousElementSibling}return[]},next(t,e){let n=t.nextElementSibling;for(;n;){if(n.matches(e))return[n];n=n.nextElementSibling}return[]}},se={interval:5e3,keyboard:!0,slide:!1,pause:"hover",wrap:!0,touch:!0},oe={interval:"(number|boolean)",keyboard:"boolean",slide:"(boolean|string)",pause:"(string|boolean)",wrap:"boolean",touch:"boolean"},re="next",ae="prev",le="left",ce="right";class de extends Gt{constructor(t,e){super(t),this._items=null,this._interval=null,this._activeElement=null,this._isPaused=!1,this._isSliding=!1,this.touchTimeout=null,this.touchStartX=0,this.touchDeltaX=0,this._config=this._getConfig(e),this._indicatorsElement=ie.findOne(".carousel-indicators",this._element),this._touchSupported="ontouchstart"in document.documentElement||navigator.maxTouchPoints>0,this._pointerEvent=Boolean(window.PointerEvent),this._addEventListeners()}static get Default(){return se}static get DATA_KEY(){return"bs.carousel"}next(){this._isSliding||this._slide(re)}nextWhenVisible(){!document.hidden&&At(this._element)&&this.next()}prev(){this._isSliding||this._slide(ae)}pause(t){t||(this._isPaused=!0),ie.findOne(".carousel-item-next, .carousel-item-prev",this._element)&&(yt(this._element),this.cycle(!0)),clearInterval(this._interval),this._interval=null}cycle(t){t||(this._isPaused=!1),this._interval&&(clearInterval(this._interval),this._interval=null),this._config&&this._config.interval&&!this._isPaused&&(this._updateInterval(),this._interval=setInterval((document.visibilityState?this.nextWhenVisible:this.next).bind(this),this._config.interval))}to(t){this._activeElement=ie.findOne(".active.carousel-item",this._element);const e=this._getItemIndex(this._activeElement);if(t>this._items.length-1||t<0)return;if(this._isSliding)return void Qt.one(this._element,"slid.bs.carousel",(()=>this.to(t)));if(e===t)return this.pause(),void this.cycle();const n=t>e?re:ae;this._slide(n,this._items[t])}dispose(){this._items=null,this._config=null,this._interval=null,this._isPaused=null,this._isSliding=null,this._activeElement=null,this._indicatorsElement=null,super.dispose()}_getConfig(t){return t={...se,...t},Tt("carousel",t,oe),t}_handleSwipe(){const t=Math.abs(this.touchDeltaX);if(t<=40)return;const e=t/this.touchDeltaX;this.touchDeltaX=0,e&&this._slide(e>0?ce:le)}_addEventListeners(){this._config.keyboard&&Qt.on(this._element,"keydown.bs.carousel",(t=>this._keydown(t))),"hover"===this._config.pause&&(Qt.on(this._element,"mouseenter.bs.carousel",(t=>this.pause(t))),Qt.on(this._element,"mouseleave.bs.carousel",(t=>this.cycle(t)))),this._config.touch&&this._touchSupported&&this._addTouchEventListeners()}_addTouchEventListeners(){const t=t=>{!this._pointerEvent||"pen"!==t.pointerType&&"touch"!==t.pointerType?this._pointerEvent||(this.touchStartX=t.touches[0].clientX):this.touchStartX=t.clientX},e=t=>{this.touchDeltaX=t.touches&&t.touches.length>1?0:t.touches[0].clientX-this.touchStartX},n=t=>{!this._pointerEvent||"pen"!==t.pointerType&&"touch"!==t.pointerType||(this.touchDeltaX=t.clientX-this.touchStartX),this._handleSwipe(),"hover"===this._config.pause&&(this.pause(),this.touchTimeout&&clearTimeout(this.touchTimeout),this.touchTimeout=setTimeout((t=>this.cycle(t)),500+this._config.interval))};ie.find(".carousel-item img",this._element).forEach((t=>{Qt.on(t,"dragstart.bs.carousel",(t=>t.preventDefault()))})),this._pointerEvent?(Qt.on(this._element,"pointerdown.bs.carousel",(e=>t(e))),Qt.on(this._element,"pointerup.bs.carousel",(t=>n(t))),this._element.classList.add("pointer-event")):(Qt.on(this._element,"touchstart.bs.carousel",(e=>t(e))),Qt.on(this._element,"touchmove.bs.carousel",(t=>e(t))),Qt.on(this._element,"touchend.bs.carousel",(t=>n(t))))}_keydown(t){/input|textarea/i.test(t.target.tagName)||("ArrowLeft"===t.key?(t.preventDefault(),this._slide(ce)):"ArrowRight"===t.key&&(t.preventDefault(),this._slide(le)))}_getItemIndex(t){return this._items=t&&t.parentNode?ie.find(".carousel-item",t.parentNode):[],this._items.indexOf(t)}_getItemByOrder(t,e){const n=t===re,i=t===ae,s=this._getItemIndex(e),o=this._items.length-1;if((i&&0===s||n&&s===o)&&!this._config.wrap)return e;const r=(s+(i?-1:1))%this._items.length;return-1===r?this._items[this._items.length-1]:this._items[r]}_triggerSlideEvent(t,e){const n=this._getItemIndex(t),i=this._getItemIndex(ie.findOne(".active.carousel-item",this._element));return Qt.trigger(this._element,"slide.bs.carousel",{relatedTarget:t,direction:e,from:i,to:n})}_setActiveIndicatorElement(t){if(this._indicatorsElement){const e=ie.findOne(".active",this._indicatorsElement);e.classList.remove("active"),e.removeAttribute("aria-current");const n=ie.find("[data-bs-target]",this._indicatorsElement);for(let e=0;e<n.length;e++)if(Number.parseInt(n[e].getAttribute("data-bs-slide-to"),10)===this._getItemIndex(t)){n[e].classList.add("active"),n[e].setAttribute("aria-current","true");break}}}_updateInterval(){const t=this._activeElement||ie.findOne(".active.carousel-item",this._element);if(!t)return;const e=Number.parseInt(t.getAttribute("data-bs-interval"),10);e?(this._config.defaultInterval=this._config.defaultInterval||this._config.interval,this._config.interval=e):this._config.interval=this._config.defaultInterval||this._config.interval}_slide(t,e){const n=this._directionToOrder(t),i=ie.findOne(".active.carousel-item",this._element),s=this._getItemIndex(i),o=e||this._getItemByOrder(n,i),r=this._getItemIndex(o),a=Boolean(this._interval),l=n===re,c=l?"carousel-item-start":"carousel-item-end",d=l?"carousel-item-next":"carousel-item-prev",u=this._orderToDirection(n);if(o&&o.classList.contains("active"))return void(this._isSliding=!1);if(!this._triggerSlideEvent(o,u).defaultPrevented&&i&&o){if(this._isSliding=!0,a&&this.pause(),this._setActiveIndicatorElement(o),this._activeElement=o,this._element.classList.contains("slide")){o.classList.add(d),Dt(o),i.classList.add(c),o.classList.add(c);const t=vt(i);Qt.one(i,"transitionend",(()=>{o.classList.remove(c,d),o.classList.add("active"),i.classList.remove("active",d,c),this._isSliding=!1,setTimeout((()=>{Qt.trigger(this._element,"slid.bs.carousel",{relatedTarget:o,direction:u,from:s,to:r})}),0)})),Et(i,t)}else i.classList.remove("active"),o.classList.add("active"),this._isSliding=!1,Qt.trigger(this._element,"slid.bs.carousel",{relatedTarget:o,direction:u,from:s,to:r});a&&this.cycle()}}_directionToOrder(t){return[ce,le].includes(t)?Ct()?t===le?ae:re:t===le?re:ae:t}_orderToDirection(t){return[re,ae].includes(t)?Ct()?t===ae?le:ce:t===ae?ce:le:t}static carouselInterface(t,e){let n=It.get(t,"bs.carousel"),i={...se,...ne.getDataAttributes(t)};"object"==typeof e&&(i={...i,...e});const s="string"==typeof e?e:i.slide;if(n||(n=new de(t,i)),"number"==typeof e)n.to(e);else if("string"==typeof s){if(void 0===n[s])throw new TypeError(`No method named "${s}"`);n[s]()}else i.interval&&i.ride&&(n.pause(),n.cycle())}static jQueryInterface(t){return this.each((function(){de.carouselInterface(this,t)}))}static dataApiClickHandler(t){const e=bt(this);if(!e||!e.classList.contains("carousel"))return;const n={...ne.getDataAttributes(e),...ne.getDataAttributes(this)},i=this.getAttribute("data-bs-slide-to");i&&(n.interval=!1),de.carouselInterface(e,n),i&&It.get(e,"bs.carousel").to(i),t.preventDefault()}}Qt.on(document,"click.bs.carousel.data-api","[data-bs-slide], [data-bs-slide-to]",de.dataApiClickHandler),Qt.on(window,"load.bs.carousel.data-api",(()=>{const t=ie.find('[data-bs-ride="carousel"]');for(let e=0,n=t.length;e<n;e++)de.carouselInterface(t[e],It.get(t[e],"bs.carousel"))})),St("carousel",de);const ue={toggle:!0,parent:""},he={toggle:"boolean",parent:"(string|element)"};class pe extends Gt{constructor(t,e){super(t),this._isTransitioning=!1,this._config=this._getConfig(e),this._triggerArray=ie.find(`[data-bs-toggle="collapse"][href="#${this._element.id}"],[data-bs-toggle="collapse"][data-bs-target="#${this._element.id}"]`);const n=ie.find('[data-bs-toggle="collapse"]');for(let t=0,e=n.length;t<e;t++){const e=n[t],i=_t(e),s=ie.find(i).filter((t=>t===this._element));null!==i&&s.length&&(this._selector=i,this._triggerArray.push(e))}this._parent=this._config.parent?this._getParent():null,this._config.parent||this._addAriaAndCollapsedClass(this._element,this._triggerArray),this._config.toggle&&this.toggle()}static get Default(){return ue}static get DATA_KEY(){return"bs.collapse"}toggle(){this._element.classList.contains("show")?this.hide():this.show()}show(){if(this._isTransitioning||this._element.classList.contains("show"))return;let t,e;this._parent&&(t=ie.find(".show, .collapsing",this._parent).filter((t=>"string"==typeof this._config.parent?t.getAttribute("data-bs-parent")===this._config.parent:t.classList.contains("collapse"))),0===t.length&&(t=null));const n=ie.findOne(this._selector);if(t){const i=t.find((t=>n!==t));if(e=i?It.get(i,"bs.collapse"):null,e&&e._isTransitioning)return}if(Qt.trigger(this._element,"show.bs.collapse").defaultPrevented)return;t&&t.forEach((t=>{n!==t&&pe.collapseInterface(t,"hide"),e||It.set(t,"bs.collapse",null)}));const i=this._getDimension();this._element.classList.remove("collapse"),this._element.classList.add("collapsing"),this._element.style[i]=0,this._triggerArray.length&&this._triggerArray.forEach((t=>{t.classList.remove("collapsed"),t.setAttribute("aria-expanded",!0)})),this.setTransitioning(!0);const s=`scroll${i[0].toUpperCase()+i.slice(1)}`,o=vt(this._element);Qt.one(this._element,"transitionend",(()=>{this._element.classList.remove("collapsing"),this._element.classList.add("collapse","show"),this._element.style[i]="",this.setTransitioning(!1),Qt.trigger(this._element,"shown.bs.collapse")})),Et(this._element,o),this._element.style[i]=`${this._element[s]}px`}hide(){if(this._isTransitioning||!this._element.classList.contains("show"))return;if(Qt.trigger(this._element,"hide.bs.collapse").defaultPrevented)return;const t=this._getDimension();this._element.style[t]=`${this._element.getBoundingClientRect()[t]}px`,Dt(this._element),this._element.classList.add("collapsing"),this._element.classList.remove("collapse","show");const e=this._triggerArray.length;if(e>0)for(let t=0;t<e;t++){const e=this._triggerArray[t],n=bt(e);n&&!n.classList.contains("show")&&(e.classList.add("collapsed"),e.setAttribute("aria-expanded",!1))}this.setTransitioning(!0);this._element.style[t]="";const n=vt(this._element);Qt.one(this._element,"transitionend",(()=>{this.setTransitioning(!1),this._element.classList.remove("collapsing"),this._element.classList.add("collapse"),Qt.trigger(this._element,"hidden.bs.collapse")})),Et(this._element,n)}setTransitioning(t){this._isTransitioning=t}dispose(){super.dispose(),this._config=null,this._parent=null,this._triggerArray=null,this._isTransitioning=null}_getConfig(t){return(t={...ue,...t}).toggle=Boolean(t.toggle),Tt("collapse",t,he),t}_getDimension(){return this._element.classList.contains("width")?"width":"height"}_getParent(){let{parent:t}=this._config;wt(t)?void 0===t.jquery&&void 0===t[0]||(t=t[0]):t=ie.findOne(t);const e=`[data-bs-toggle="collapse"][data-bs-parent="${t}"]`;return ie.find(e,t).forEach((t=>{const e=bt(t);this._addAriaAndCollapsedClass(e,[t])})),t}_addAriaAndCollapsedClass(t,e){if(!t||!e.length)return;const n=t.classList.contains("show");e.forEach((t=>{n?t.classList.remove("collapsed"):t.classList.add("collapsed"),t.setAttribute("aria-expanded",n)}))}static collapseInterface(t,e){let n=It.get(t,"bs.collapse");const i={...ue,...ne.getDataAttributes(t),..."object"==typeof e&&e?e:{}};if(!n&&i.toggle&&"string"==typeof e&&/show|hide/.test(e)&&(i.toggle=!1),n||(n=new pe(t,i)),"string"==typeof e){if(void 0===n[e])throw new TypeError(`No method named "${e}"`);n[e]()}}static jQueryInterface(t){return this.each((function(){pe.collapseInterface(this,t)}))}}Qt.on(document,"click.bs.collapse.data-api",'[data-bs-toggle="collapse"]',(function(t){("A"===t.target.tagName||t.delegateTarget&&"A"===t.delegateTarget.tagName)&&t.preventDefault();const e=ne.getDataAttributes(this),n=_t(this);ie.find(n).forEach((t=>{const n=It.get(t,"bs.collapse");let i;n?(null===n._parent&&"string"==typeof e.parent&&(n._config.parent=e.parent,n._parent=n._getParent()),i="toggle"):i=e,pe.collapseInterface(t,i)}))})),St("collapse",pe);const fe=new RegExp("ArrowUp|ArrowDown|Escape"),me=Ct()?"top-end":"top-start",ge=Ct()?"top-start":"top-end",_e=Ct()?"bottom-end":"bottom-start",be=Ct()?"bottom-start":"bottom-end",ve=Ct()?"left-start":"right-start",ye=Ct()?"right-start":"left-start",we={offset:[0,2],boundary:"clippingParents",reference:"toggle",display:"dynamic",popperConfig:null,autoClose:!0},Ee={offset:"(array|string|function)",boundary:"(string|element)",reference:"(string|element|object)",display:"string",popperConfig:"(null|object|function)",autoClose:"(boolean|string)"};class Te extends Gt{constructor(t,e){super(t),this._popper=null,this._config=this._getConfig(e),this._menu=this._getMenuElement(),this._inNavbar=this._detectNavbar(),this._addEventListeners()}static get Default(){return we}static get DefaultType(){return Ee}static get DATA_KEY(){return"bs.dropdown"}toggle(){if(Ot(this._element))return;this._element.classList.contains("show")?this.hide():this.show()}show(){if(Ot(this._element)||this._menu.classList.contains("show"))return;const t=Te.getParentFromElement(this._element),e={relatedTarget:this._element};if(!Qt.trigger(this._element,"show.bs.dropdown",e).defaultPrevented){if(this._inNavbar)ne.setDataAttribute(this._menu,"popper","none");else{if(void 0===ft)throw new TypeError("Bootstrap's dropdowns require Popper (https://popper.js.org)");let e=this._element;"parent"===this._config.reference?e=t:wt(this._config.reference)?(e=this._config.reference,void 0!==this._config.reference.jquery&&(e=this._config.reference[0])):"object"==typeof this._config.reference&&(e=this._config.reference);const n=this._getPopperConfig(),i=n.modifiers.find((t=>"applyStyles"===t.name&&!1===t.enabled));this._popper=pt(e,this._menu,n),i&&ne.setDataAttribute(this._menu,"popper","static")}"ontouchstart"in document.documentElement&&!t.closest(".navbar-nav")&&[].concat(...document.body.children).forEach((t=>Qt.on(t,"mouseover",xt))),this._element.focus(),this._element.setAttribute("aria-expanded",!0),this._menu.classList.toggle("show"),this._element.classList.toggle("show"),Qt.trigger(this._element,"shown.bs.dropdown",e)}}hide(){if(Ot(this._element)||!this._menu.classList.contains("show"))return;const t={relatedTarget:this._element};this._completeHide(t)}dispose(){this._menu=null,this._popper&&(this._popper.destroy(),this._popper=null),super.dispose()}update(){this._inNavbar=this._detectNavbar(),this._popper&&this._popper.update()}_addEventListeners(){Qt.on(this._element,"click.bs.dropdown",(t=>{t.preventDefault(),this.toggle()}))}_completeHide(t){Qt.trigger(this._element,"hide.bs.dropdown",t).defaultPrevented||("ontouchstart"in document.documentElement&&[].concat(...document.body.children).forEach((t=>Qt.off(t,"mouseover",xt))),this._popper&&this._popper.destroy(),this._menu.classList.remove("show"),this._element.classList.remove("show"),this._element.setAttribute("aria-expanded","false"),ne.removeDataAttribute(this._menu,"popper"),Qt.trigger(this._element,"hidden.bs.dropdown",t))}_getConfig(t){if(t={...this.constructor.Default,...ne.getDataAttributes(this._element),...t},Tt("dropdown",t,this.constructor.DefaultType),"object"==typeof t.reference&&!wt(t.reference)&&"function"!=typeof t.reference.getBoundingClientRect)throw new TypeError(`${"dropdown".toUpperCase()}: Option "reference" provided type "object" without a required "getBoundingClientRect" method.`);return t}_getMenuElement(){return ie.next(this._element,".dropdown-menu")[0]}_getPlacement(){const t=this._element.parentNode;if(t.classList.contains("dropend"))return ve;if(t.classList.contains("dropstart"))return ye;const e="end"===getComputedStyle(this._menu).getPropertyValue("--bs-position").trim();return t.classList.contains("dropup")?e?ge:me:e?be:_e}_detectNavbar(){return null!==this._element.closest(".navbar")}_getOffset(){const{offset:t}=this._config;return"string"==typeof t?t.split(",").map((t=>Number.parseInt(t,10))):"function"==typeof t?e=>t(e,this._element):t}_getPopperConfig(){const t={placement:this._getPlacement(),modifiers:[{name:"preventOverflow",options:{boundary:this._config.boundary}},{name:"offset",options:{offset:this._getOffset()}}]};return"static"===this._config.display&&(t.modifiers=[{name:"applyStyles",enabled:!1}]),{...t,..."function"==typeof this._config.popperConfig?this._config.popperConfig(t):this._config.popperConfig}}_selectMenuItem(t){const e=ie.find(".dropdown-menu .dropdown-item:not(.disabled):not(:disabled)",this._menu).filter(At);if(!e.length)return;let n=e.indexOf(t.target);"ArrowUp"===t.key&&n>0&&n--,"ArrowDown"===t.key&&n<e.length-1&&n++,n=-1===n?0:n,e[n].focus()}static dropdownInterface(t,e){let n=It.get(t,"bs.dropdown");if(n||(n=new Te(t,"object"==typeof e?e:null)),"string"==typeof e){if(void 0===n[e])throw new TypeError(`No method named "${e}"`);n[e]()}}static jQueryInterface(t){return this.each((function(){Te.dropdownInterface(this,t)}))}static clearMenus(t){if(t){if(2===t.button||"keyup"===t.type&&"Tab"!==t.key)return;if(/input|select|option|textarea|form/i.test(t.target.tagName))return}const e=ie.find('[data-bs-toggle="dropdown"]');for(let n=0,i=e.length;n<i;n++){const i=It.get(e[n],"bs.dropdown");if(!i||!1===i._config.autoClose)continue;if(!i._element.classList.contains("show"))continue;const s={relatedTarget:i._element};if(t){const e=t.composedPath(),n=e.includes(i._menu);if(e.includes(i._element)||"inside"===i._config.autoClose&&!n||"outside"===i._config.autoClose&&n)continue;if("keyup"===t.type&&"Tab"===t.key&&i._menu.contains(t.target))continue;"click"===t.type&&(s.clickEvent=t)}i._completeHide(s)}}static getParentFromElement(t){return bt(t)||t.parentNode}static dataApiKeydownHandler(t){if(/input|textarea/i.test(t.target.tagName)?"Space"===t.key||"Escape"!==t.key&&("ArrowDown"!==t.key&&"ArrowUp"!==t.key||t.target.closest(".dropdown-menu")):!fe.test(t.key))return;const e=this.classList.contains("show");if(!e&&"Escape"===t.key)return;if(t.preventDefault(),t.stopPropagation(),Ot(this))return;const n=()=>this.matches('[data-bs-toggle="dropdown"]')?this:ie.prev(this,'[data-bs-toggle="dropdown"]')[0];if("Escape"===t.key)return n().focus(),void Te.clearMenus();e||"ArrowUp"!==t.key&&"ArrowDown"!==t.key?e&&"Space"!==t.key?Te.getInstance(n())._selectMenuItem(t):Te.clearMenus():n().click()}}Qt.on(document,"keydown.bs.dropdown.data-api",'[data-bs-toggle="dropdown"]',Te.dataApiKeydownHandler),Qt.on(document,"keydown.bs.dropdown.data-api",".dropdown-menu",Te.dataApiKeydownHandler),Qt.on(document,"click.bs.dropdown.data-api",Te.clearMenus),Qt.on(document,"keyup.bs.dropdown.data-api",Te.clearMenus),Qt.on(document,"click.bs.dropdown.data-api",'[data-bs-toggle="dropdown"]',(function(t){t.preventDefault(),Te.dropdownInterface(this)})),St("dropdown",Te);const Ae=()=>{const t=document.documentElement.clientWidth;return Math.abs(window.innerWidth-t)},Oe=(t=Ae())=>{Le(),xe("body","paddingRight",(e=>e+t)),xe(".fixed-top, .fixed-bottom, .is-fixed, .sticky-top","paddingRight",(e=>e+t)),xe(".sticky-top","marginRight",(e=>e-t))},Le=()=>{const t=document.body.style.overflow;t&&ne.setDataAttribute(document.body,"overflow",t),document.body.style.overflow="hidden"},xe=(t,e,n)=>{const i=Ae();ie.find(t).forEach((t=>{if(t!==document.body&&window.innerWidth>t.clientWidth+i)return;const s=t.style[e],o=window.getComputedStyle(t)[e];ne.setDataAttribute(t,e,s),t.style[e]=`${n(Number.parseFloat(o))}px`}))},De=()=>{ke("body","overflow"),ke("body","paddingRight"),ke(".fixed-top, .fixed-bottom, .is-fixed, .sticky-top","paddingRight"),ke(".sticky-top","marginRight")},ke=(t,e)=>{ie.find(t).forEach((t=>{const n=ne.getDataAttribute(t,e);void 0===n?t.style.removeProperty(e):(ne.removeDataAttribute(t,e),t.style[e]=n)}))},Ce={isVisible:!0,isAnimated:!1,rootElement:document.body,clickCallback:null},Se={isVisible:"boolean",isAnimated:"boolean",rootElement:"element",clickCallback:"(function|null)"};class Ne{constructor(t){this._config=this._getConfig(t),this._isAppended=!1,this._element=null}show(t){this._config.isVisible?(this._append(),this._config.isAnimated&&Dt(this._getElement()),this._getElement().classList.add("show"),this._emulateAnimation((()=>{Nt(t)}))):Nt(t)}hide(t){this._config.isVisible?(this._getElement().classList.remove("show"),this._emulateAnimation((()=>{this.dispose(),Nt(t)}))):Nt(t)}_getElement(){if(!this._element){const t=document.createElement("div");t.className="modal-backdrop",this._config.isAnimated&&t.classList.add("fade"),this._element=t}return this._element}_getConfig(t){return t={...Ce,..."object"==typeof t?t:{}},Tt("backdrop",t,Se),t}_append(){this._isAppended||(this._config.rootElement.appendChild(this._getElement()),Qt.on(this._getElement(),"mousedown.bs.backdrop",(()=>{Nt(this._config.clickCallback)})),this._isAppended=!0)}dispose(){this._isAppended&&(Qt.off(this._element,"mousedown.bs.backdrop"),this._getElement().parentNode.removeChild(this._element),this._isAppended=!1)}_emulateAnimation(t){if(!this._config.isAnimated)return void Nt(t);const e=vt(this._getElement());Qt.one(this._getElement(),"transitionend",(()=>Nt(t))),Et(this._getElement(),e)}}const je={backdrop:!0,keyboard:!0,focus:!0},Ie={backdrop:"(boolean|string)",keyboard:"boolean",focus:"boolean"};class Pe extends Gt{constructor(t,e){super(t),this._config=this._getConfig(e),this._dialog=ie.findOne(".modal-dialog",this._element),this._backdrop=this._initializeBackDrop(),this._isShown=!1,this._ignoreBackdropClick=!1,this._isTransitioning=!1}static get Default(){return je}static get DATA_KEY(){return"bs.modal"}toggle(t){return this._isShown?this.hide():this.show(t)}show(t){if(this._isShown||this._isTransitioning)return;this._isAnimated()&&(this._isTransitioning=!0);const e=Qt.trigger(this._element,"show.bs.modal",{relatedTarget:t});this._isShown||e.defaultPrevented||(this._isShown=!0,Oe(),document.body.classList.add("modal-open"),this._adjustDialog(),this._setEscapeEvent(),this._setResizeEvent(),Qt.on(this._element,"click.dismiss.bs.modal",'[data-bs-dismiss="modal"]',(t=>this.hide(t))),Qt.on(this._dialog,"mousedown.dismiss.bs.modal",(()=>{Qt.one(this._element,"mouseup.dismiss.bs.modal",(t=>{t.target===this._element&&(this._ignoreBackdropClick=!0)}))})),this._showBackdrop((()=>this._showElement(t))))}hide(t){if(t&&t.preventDefault(),!this._isShown||this._isTransitioning)return;if(Qt.trigger(this._element,"hide.bs.modal").defaultPrevented)return;this._isShown=!1;const e=this._isAnimated();if(e&&(this._isTransitioning=!0),this._setEscapeEvent(),this._setResizeEvent(),Qt.off(document,"focusin.bs.modal"),this._element.classList.remove("show"),Qt.off(this._element,"click.dismiss.bs.modal"),Qt.off(this._dialog,"mousedown.dismiss.bs.modal"),e){const t=vt(this._element);Qt.one(this._element,"transitionend",(t=>this._hideModal(t))),Et(this._element,t)}else this._hideModal()}dispose(){[window,this._dialog].forEach((t=>Qt.off(t,".bs.modal"))),super.dispose(),Qt.off(document,"focusin.bs.modal"),this._config=null,this._dialog=null,this._backdrop.dispose(),this._backdrop=null,this._isShown=null,this._ignoreBackdropClick=null,this._isTransitioning=null}handleUpdate(){this._adjustDialog()}_initializeBackDrop(){return new Ne({isVisible:Boolean(this._config.backdrop),isAnimated:this._isAnimated()})}_getConfig(t){return t={...je,...ne.getDataAttributes(this._element),...t},Tt("modal",t,Ie),t}_showElement(t){const e=this._isAnimated(),n=ie.findOne(".modal-body",this._dialog);this._element.parentNode&&this._element.parentNode.nodeType===Node.ELEMENT_NODE||document.body.appendChild(this._element),this._element.style.display="block",this._element.removeAttribute("aria-hidden"),this._element.setAttribute("aria-modal",!0),this._element.setAttribute("role","dialog"),this._element.scrollTop=0,n&&(n.scrollTop=0),e&&Dt(this._element),this._element.classList.add("show"),this._config.focus&&this._enforceFocus();const i=()=>{this._config.focus&&this._element.focus(),this._isTransitioning=!1,Qt.trigger(this._element,"shown.bs.modal",{relatedTarget:t})};if(e){const t=vt(this._dialog);Qt.one(this._dialog,"transitionend",i),Et(this._dialog,t)}else i()}_enforceFocus(){Qt.off(document,"focusin.bs.modal"),Qt.on(document,"focusin.bs.modal",(t=>{document===t.target||this._element===t.target||this._element.contains(t.target)||this._element.focus()}))}_setEscapeEvent(){this._isShown?Qt.on(this._element,"keydown.dismiss.bs.modal",(t=>{this._config.keyboard&&"Escape"===t.key?(t.preventDefault(),this.hide()):this._config.keyboard||"Escape"!==t.key||this._triggerBackdropTransition()})):Qt.off(this._element,"keydown.dismiss.bs.modal")}_setResizeEvent(){this._isShown?Qt.on(window,"resize.bs.modal",(()=>this._adjustDialog())):Qt.off(window,"resize.bs.modal")}_hideModal(){this._element.style.display="none",this._element.setAttribute("aria-hidden",!0),this._element.removeAttribute("aria-modal"),this._element.removeAttribute("role"),this._isTransitioning=!1,this._backdrop.hide((()=>{document.body.classList.remove("modal-open"),this._resetAdjustments(),De(),Qt.trigger(this._element,"hidden.bs.modal")}))}_showBackdrop(t){Qt.on(this._element,"click.dismiss.bs.modal",(t=>{this._ignoreBackdropClick?this._ignoreBackdropClick=!1:t.target===t.currentTarget&&(!0===this._config.backdrop?this.hide():"static"===this._config.backdrop&&this._triggerBackdropTransition())})),this._backdrop.show(t)}_isAnimated(){return this._element.classList.contains("fade")}_triggerBackdropTransition(){if(Qt.trigger(this._element,"hidePrevented.bs.modal").defaultPrevented)return;const t=this._element.scrollHeight>document.documentElement.clientHeight;t||(this._element.style.overflowY="hidden"),this._element.classList.add("modal-static");const e=vt(this._dialog);Qt.off(this._element,"transitionend"),Qt.one(this._element,"transitionend",(()=>{this._element.classList.remove("modal-static"),t||(Qt.one(this._element,"transitionend",(()=>{this._element.style.overflowY=""})),Et(this._element,e))})),Et(this._element,e),this._element.focus()}_adjustDialog(){const t=this._element.scrollHeight>document.documentElement.clientHeight,e=Ae(),n=e>0;(!n&&t&&!Ct()||n&&!t&&Ct())&&(this._element.style.paddingLeft=`${e}px`),(n&&!t&&!Ct()||!n&&t&&Ct())&&(this._element.style.paddingRight=`${e}px`)}_resetAdjustments(){this._element.style.paddingLeft="",this._element.style.paddingRight=""}static jQueryInterface(t,e){return this.each((function(){const n=Pe.getInstance(this)||new Pe(this,"object"==typeof t?t:{});if("string"==typeof t){if(void 0===n[t])throw new TypeError(`No method named "${t}"`);n[t](e)}}))}}Qt.on(document,"click.bs.modal.data-api",'[data-bs-toggle="modal"]',(function(t){const e=bt(this);["A","AREA"].includes(this.tagName)&&t.preventDefault(),Qt.one(e,"show.bs.modal",(t=>{t.defaultPrevented||Qt.one(e,"hidden.bs.modal",(()=>{At(this)&&this.focus()}))}));(Pe.getInstance(e)||new Pe(e)).toggle(this)})),St("modal",Pe);const Me={backdrop:!0,keyboard:!0,scroll:!1},He={backdrop:"boolean",keyboard:"boolean",scroll:"boolean"};class Re extends Gt{constructor(t,e){super(t),this._config=this._getConfig(e),this._isShown=!1,this._backdrop=this._initializeBackDrop(),this._addEventListeners()}static get Default(){return Me}static get DATA_KEY(){return"bs.offcanvas"}toggle(t){return this._isShown?this.hide():this.show(t)}show(t){if(this._isShown)return;if(Qt.trigger(this._element,"show.bs.offcanvas",{relatedTarget:t}).defaultPrevented)return;this._isShown=!0,this._element.style.visibility="visible",this._backdrop.show(),this._config.scroll||(Oe(),this._enforceFocusOnElement(this._element)),this._element.removeAttribute("aria-hidden"),this._element.setAttribute("aria-modal",!0),this._element.setAttribute("role","dialog"),this._element.classList.add("show");const e=vt(this._element);Qt.one(this._element,"transitionend",(()=>{Qt.trigger(this._element,"shown.bs.offcanvas",{relatedTarget:t})})),Et(this._element,e)}hide(){if(!this._isShown)return;if(Qt.trigger(this._element,"hide.bs.offcanvas").defaultPrevented)return;Qt.off(document,"focusin.bs.offcanvas"),this._element.blur(),this._isShown=!1,this._element.classList.remove("show"),this._backdrop.hide();const t=vt(this._element);Qt.one(this._element,"transitionend",(()=>{this._element.setAttribute("aria-hidden",!0),this._element.removeAttribute("aria-modal"),this._element.removeAttribute("role"),this._element.style.visibility="hidden",this._config.scroll||De(),Qt.trigger(this._element,"hidden.bs.offcanvas")})),Et(this._element,t)}dispose(){this._backdrop.dispose(),super.dispose(),Qt.off(document,"focusin.bs.offcanvas"),this._config=null,this._backdrop=null}_getConfig(t){return t={...Me,...ne.getDataAttributes(this._element),..."object"==typeof t?t:{}},Tt("offcanvas",t,He),t}_initializeBackDrop(){return new Ne({isVisible:this._config.backdrop,isAnimated:!0,rootElement:this._element.parentNode,clickCallback:()=>this.hide()})}_enforceFocusOnElement(t){Qt.off(document,"focusin.bs.offcanvas"),Qt.on(document,"focusin.bs.offcanvas",(e=>{document===e.target||t===e.target||t.contains(e.target)||t.focus()})),t.focus()}_addEventListeners(){Qt.on(this._element,"click.dismiss.bs.offcanvas",'[data-bs-dismiss="offcanvas"]',(()=>this.hide())),Qt.on(this._element,"keydown.dismiss.bs.offcanvas",(t=>{this._config.keyboard&&"Escape"===t.key&&this.hide()}))}static jQueryInterface(t){return this.each((function(){const e=It.get(this,"bs.offcanvas")||new Re(this,"object"==typeof t?t:{});if("string"==typeof t){if(void 0===e[t]||t.startsWith("_")||"constructor"===t)throw new TypeError(`No method named "${t}"`);e[t](this)}}))}}Qt.on(document,"click.bs.offcanvas.data-api",'[data-bs-toggle="offcanvas"]',(function(t){const e=bt(this);if(["A","AREA"].includes(this.tagName)&&t.preventDefault(),Ot(this))return;Qt.one(e,"hidden.bs.offcanvas",(()=>{At(this)&&this.focus()}));const n=ie.findOne(".offcanvas.show");n&&n!==e&&Re.getInstance(n).hide();(It.get(e,"bs.offcanvas")||new Re(e)).toggle(this)})),Qt.on(window,"load.bs.offcanvas.data-api",(()=>{ie.find(".offcanvas.show").forEach((t=>(It.get(t,"bs.offcanvas")||new Re(t)).show()))})),St("offcanvas",Re);const Be=new Set(["background","cite","href","itemtype","longdesc","poster","src","xlink:href"]),$e=/^(?:(?:https?|mailto|ftp|tel|file):|[^#&/:?]*(?:[#/?]|$))/i,We=/^data:(?:image\/(?:bmp|gif|jpeg|jpg|png|tiff|webp)|video\/(?:mpeg|mp4|ogg|webm)|audio\/(?:mp3|oga|ogg|opus));base64,[\d+/a-z]+=*$/i,Ue=(t,e)=>{const n=t.nodeName.toLowerCase();if(e.includes(n))return!Be.has(n)||Boolean($e.test(t.nodeValue)||We.test(t.nodeValue));const i=e.filter((t=>t instanceof RegExp));for(let t=0,e=i.length;t<e;t++)if(i[t].test(n))return!0;return!1},Ve={"*":["class","dir","id","lang","role",/^aria-[\w-]*$/i],a:["target","href","title","rel"],area:[],b:[],br:[],col:[],code:[],div:[],em:[],hr:[],h1:[],h2:[],h3:[],h4:[],h5:[],h6:[],i:[],img:["src","srcset","alt","title","width","height"],li:[],ol:[],p:[],pre:[],s:[],small:[],span:[],sub:[],sup:[],strong:[],u:[],ul:[]};function ze(t,e,n){if(!t.length)return t;if(n&&"function"==typeof n)return n(t);const i=(new window.DOMParser).parseFromString(t,"text/html"),s=Object.keys(e),o=[].concat(...i.body.querySelectorAll("*"));for(let t=0,n=o.length;t<n;t++){const n=o[t],i=n.nodeName.toLowerCase();if(!s.includes(i)){n.parentNode.removeChild(n);continue}const r=[].concat(...n.attributes),a=[].concat(e["*"]||[],e[i]||[]);r.forEach((t=>{Ue(t,a)||n.removeAttribute(t.nodeName)}))}return i.body.innerHTML}const Fe=new RegExp("(^|\\s)bs-tooltip\\S+","g"),qe=new Set(["sanitize","allowList","sanitizeFn"]),Ye={animation:"boolean",template:"string",title:"(string|element|function)",trigger:"string",delay:"(number|object)",html:"boolean",selector:"(string|boolean)",placement:"(string|function)",offset:"(array|string|function)",container:"(string|element|boolean)",fallbackPlacements:"array",boundary:"(string|element)",customClass:"(string|function)",sanitize:"boolean",sanitizeFn:"(null|function)",allowList:"object",popperConfig:"(null|object|function)"},Ke={AUTO:"auto",TOP:"top",RIGHT:Ct()?"left":"right",BOTTOM:"bottom",LEFT:Ct()?"right":"left"},Xe={animation:!0,template:'<div class="tooltip" role="tooltip"><div class="tooltip-arrow"></div><div class="tooltip-inner"></div></div>',trigger:"hover focus",title:"",delay:0,html:!1,selector:!1,placement:"top",offset:[0,0],container:!1,fallbackPlacements:["top","right","bottom","left"],boundary:"clippingParents",customClass:"",sanitize:!0,sanitizeFn:null,allowList:Ve,popperConfig:null},Qe={HIDE:"hide.bs.tooltip",HIDDEN:"hidden.bs.tooltip",SHOW:"show.bs.tooltip",SHOWN:"shown.bs.tooltip",INSERTED:"inserted.bs.tooltip",CLICK:"click.bs.tooltip",FOCUSIN:"focusin.bs.tooltip",FOCUSOUT:"focusout.bs.tooltip",MOUSEENTER:"mouseenter.bs.tooltip",MOUSELEAVE:"mouseleave.bs.tooltip"};class Ge extends Gt{constructor(t,e){if(void 0===ft)throw new TypeError("Bootstrap's tooltips require Popper (https://popper.js.org)");super(t),this._isEnabled=!0,this._timeout=0,this._hoverState="",this._activeTrigger={},this._popper=null,this.config=this._getConfig(e),this.tip=null,this._setListeners()}static get Default(){return Xe}static get NAME(){return"tooltip"}static get DATA_KEY(){return"bs.tooltip"}static get Event(){return Qe}static get EVENT_KEY(){return".bs.tooltip"}static get DefaultType(){return Ye}enable(){this._isEnabled=!0}disable(){this._isEnabled=!1}toggleEnabled(){this._isEnabled=!this._isEnabled}toggle(t){if(this._isEnabled)if(t){const e=this._initializeOnDelegatedTarget(t);e._activeTrigger.click=!e._activeTrigger.click,e._isWithActiveTrigger()?e._enter(null,e):e._leave(null,e)}else{if(this.getTipElement().classList.contains("show"))return void this._leave(null,this);this._enter(null,this)}}dispose(){clearTimeout(this._timeout),Qt.off(this._element.closest(".modal"),"hide.bs.modal",this._hideModalHandler),this.tip&&this.tip.parentNode&&this.tip.parentNode.removeChild(this.tip),this._isEnabled=null,this._timeout=null,this._hoverState=null,this._activeTrigger=null,this._popper&&this._popper.destroy(),this._popper=null,this.config=null,this.tip=null,super.dispose()}show(){if("none"===this._element.style.display)throw new Error("Please use show on visible elements");if(!this.isWithContent()||!this._isEnabled)return;const t=Qt.trigger(this._element,this.constructor.Event.SHOW),e=Lt(this._element),n=null===e?this._element.ownerDocument.documentElement.contains(this._element):e.contains(this._element);if(t.defaultPrevented||!n)return;const i=this.getTipElement(),s=mt(this.constructor.NAME);i.setAttribute("id",s),this._element.setAttribute("aria-describedby",s),this.setContent(),this.config.animation&&i.classList.add("fade");const o="function"==typeof this.config.placement?this.config.placement.call(this,i,this._element):this.config.placement,r=this._getAttachment(o);this._addAttachmentClass(r);const a=this._getContainer();It.set(i,this.constructor.DATA_KEY,this),this._element.ownerDocument.documentElement.contains(this.tip)||(a.appendChild(i),Qt.trigger(this._element,this.constructor.Event.INSERTED)),this._popper?this._popper.update():this._popper=pt(this._element,i,this._getPopperConfig(r)),i.classList.add("show");const l="function"==typeof this.config.customClass?this.config.customClass():this.config.customClass;l&&i.classList.add(...l.split(" ")),"ontouchstart"in document.documentElement&&[].concat(...document.body.children).forEach((t=>{Qt.on(t,"mouseover",xt)}));const c=()=>{const t=this._hoverState;this._hoverState=null,Qt.trigger(this._element,this.constructor.Event.SHOWN),"out"===t&&this._leave(null,this)};if(this.tip.classList.contains("fade")){const t=vt(this.tip);Qt.one(this.tip,"transitionend",c),Et(this.tip,t)}else c()}hide(){if(!this._popper)return;const t=this.getTipElement(),e=()=>{this._isWithActiveTrigger()||("show"!==this._hoverState&&t.parentNode&&t.parentNode.removeChild(t),this._cleanTipClass(),this._element.removeAttribute("aria-describedby"),Qt.trigger(this._element,this.constructor.Event.HIDDEN),this._popper&&(this._popper.destroy(),this._popper=null))};if(!Qt.trigger(this._element,this.constructor.Event.HIDE).defaultPrevented){if(t.classList.remove("show"),"ontouchstart"in document.documentElement&&[].concat(...document.body.children).forEach((t=>Qt.off(t,"mouseover",xt))),this._activeTrigger.click=!1,this._activeTrigger.focus=!1,this._activeTrigger.hover=!1,this.tip.classList.contains("fade")){const n=vt(t);Qt.one(t,"transitionend",e),Et(t,n)}else e();this._hoverState=""}}update(){null!==this._popper&&this._popper.update()}isWithContent(){return Boolean(this.getTitle())}getTipElement(){if(this.tip)return this.tip;const t=document.createElement("div");return t.innerHTML=this.config.template,this.tip=t.children[0],this.tip}setContent(){const t=this.getTipElement();this.setElementContent(ie.findOne(".tooltip-inner",t),this.getTitle()),t.classList.remove("fade","show")}setElementContent(t,e){if(null!==t)return"object"==typeof e&&wt(e)?(e.jquery&&(e=e[0]),void(this.config.html?e.parentNode!==t&&(t.innerHTML="",t.appendChild(e)):t.textContent=e.textContent)):void(this.config.html?(this.config.sanitize&&(e=ze(e,this.config.allowList,this.config.sanitizeFn)),t.innerHTML=e):t.textContent=e)}getTitle(){let t=this._element.getAttribute("data-bs-original-title");return t||(t="function"==typeof this.config.title?this.config.title.call(this._element):this.config.title),t}updateAttachment(t){return"right"===t?"end":"left"===t?"start":t}_initializeOnDelegatedTarget(t,e){const n=this.constructor.DATA_KEY;return(e=e||It.get(t.delegateTarget,n))||(e=new this.constructor(t.delegateTarget,this._getDelegateConfig()),It.set(t.delegateTarget,n,e)),e}_getOffset(){const{offset:t}=this.config;return"string"==typeof t?t.split(",").map((t=>Number.parseInt(t,10))):"function"==typeof t?e=>t(e,this._element):t}_getPopperConfig(t){const e={placement:t,modifiers:[{name:"flip",options:{fallbackPlacements:this.config.fallbackPlacements}},{name:"offset",options:{offset:this._getOffset()}},{name:"preventOverflow",options:{boundary:this.config.boundary}},{name:"arrow",options:{element:`.${this.constructor.NAME}-arrow`}},{name:"onChange",enabled:!0,phase:"afterWrite",fn:t=>this._handlePopperPlacementChange(t)}],onFirstUpdate:t=>{t.options.placement!==t.placement&&this._handlePopperPlacementChange(t)}};return{...e,..."function"==typeof this.config.popperConfig?this.config.popperConfig(e):this.config.popperConfig}}_addAttachmentClass(t){this.getTipElement().classList.add(`bs-tooltip-${this.updateAttachment(t)}`)}_getContainer(){return!1===this.config.container?document.body:wt(this.config.container)?this.config.container:ie.findOne(this.config.container)}_getAttachment(t){return Ke[t.toUpperCase()]}_setListeners(){this.config.trigger.split(" ").forEach((t=>{if("click"===t)Qt.on(this._element,this.constructor.Event.CLICK,this.config.selector,(t=>this.toggle(t)));else if("manual"!==t){const e="hover"===t?this.constructor.Event.MOUSEENTER:this.constructor.Event.FOCUSIN,n="hover"===t?this.constructor.Event.MOUSELEAVE:this.constructor.Event.FOCUSOUT;Qt.on(this._element,e,this.config.selector,(t=>this._enter(t))),Qt.on(this._element,n,this.config.selector,(t=>this._leave(t)))}})),this._hideModalHandler=()=>{this._element&&this.hide()},Qt.on(this._element.closest(".modal"),"hide.bs.modal",this._hideModalHandler),this.config.selector?this.config={...this.config,trigger:"manual",selector:""}:this._fixTitle()}_fixTitle(){const t=this._element.getAttribute("title"),e=typeof this._element.getAttribute("data-bs-original-title");(t||"string"!==e)&&(this._element.setAttribute("data-bs-original-title",t||""),!t||this._element.getAttribute("aria-label")||this._element.textContent||this._element.setAttribute("aria-label",t),this._element.setAttribute("title",""))}_enter(t,e){e=this._initializeOnDelegatedTarget(t,e),t&&(e._activeTrigger["focusin"===t.type?"focus":"hover"]=!0),e.getTipElement().classList.contains("show")||"show"===e._hoverState?e._hoverState="show":(clearTimeout(e._timeout),e._hoverState="show",e.config.delay&&e.config.delay.show?e._timeout=setTimeout((()=>{"show"===e._hoverState&&e.show()}),e.config.delay.show):e.show())}_leave(t,e){e=this._initializeOnDelegatedTarget(t,e),t&&(e._activeTrigger["focusout"===t.type?"focus":"hover"]=e._element.contains(t.relatedTarget)),e._isWithActiveTrigger()||(clearTimeout(e._timeout),e._hoverState="out",e.config.delay&&e.config.delay.hide?e._timeout=setTimeout((()=>{"out"===e._hoverState&&e.hide()}),e.config.delay.hide):e.hide())}_isWithActiveTrigger(){for(const t in this._activeTrigger)if(this._activeTrigger[t])return!0;return!1}_getConfig(t){const e=ne.getDataAttributes(this._element);return Object.keys(e).forEach((t=>{qe.has(t)&&delete e[t]})),t&&"object"==typeof t.container&&t.container.jquery&&(t.container=t.container[0]),"number"==typeof(t={...this.constructor.Default,...e,..."object"==typeof t&&t?t:{}}).delay&&(t.delay={show:t.delay,hide:t.delay}),"number"==typeof t.title&&(t.title=t.title.toString()),"number"==typeof t.content&&(t.content=t.content.toString()),Tt("tooltip",t,this.constructor.DefaultType),t.sanitize&&(t.template=ze(t.template,t.allowList,t.sanitizeFn)),t}_getDelegateConfig(){const t={};if(this.config)for(const e in this.config)this.constructor.Default[e]!==this.config[e]&&(t[e]=this.config[e]);return t}_cleanTipClass(){const t=this.getTipElement(),e=t.getAttribute("class").match(Fe);null!==e&&e.length>0&&e.map((t=>t.trim())).forEach((e=>t.classList.remove(e)))}_handlePopperPlacementChange(t){const{state:e}=t;e&&(this.tip=e.elements.popper,this._cleanTipClass(),this._addAttachmentClass(this._getAttachment(e.placement)))}static jQueryInterface(t){return this.each((function(){let e=It.get(this,"bs.tooltip");const n="object"==typeof t&&t;if((e||!/dispose|hide/.test(t))&&(e||(e=new Ge(this,n)),"string"==typeof t)){if(void 0===e[t])throw new TypeError(`No method named "${t}"`);e[t]()}}))}}St("tooltip",Ge);const Je=new RegExp("(^|\\s)bs-popover\\S+","g"),Ze={...Ge.Default,placement:"right",offset:[0,8],trigger:"click",content:"",template:'<div class="popover" role="tooltip"><div class="popover-arrow"></div><h3 class="popover-header"></h3><div class="popover-body"></div></div>'},tn={...Ge.DefaultType,content:"(string|element|function)"},en={HIDE:"hide.bs.popover",HIDDEN:"hidden.bs.popover",SHOW:"show.bs.popover",SHOWN:"shown.bs.popover",INSERTED:"inserted.bs.popover",CLICK:"click.bs.popover",FOCUSIN:"focusin.bs.popover",FOCUSOUT:"focusout.bs.popover",MOUSEENTER:"mouseenter.bs.popover",MOUSELEAVE:"mouseleave.bs.popover"};class nn extends Ge{static get Default(){return Ze}static get NAME(){return"popover"}static get DATA_KEY(){return"bs.popover"}static get Event(){return en}static get EVENT_KEY(){return".bs.popover"}static get DefaultType(){return tn}isWithContent(){return this.getTitle()||this._getContent()}setContent(){const t=this.getTipElement();this.setElementContent(ie.findOne(".popover-header",t),this.getTitle());let e=this._getContent();"function"==typeof e&&(e=e.call(this._element)),this.setElementContent(ie.findOne(".popover-body",t),e),t.classList.remove("fade","show")}_addAttachmentClass(t){this.getTipElement().classList.add(`bs-popover-${this.updateAttachment(t)}`)}_getContent(){return this._element.getAttribute("data-bs-content")||this.config.content}_cleanTipClass(){const t=this.getTipElement(),e=t.getAttribute("class").match(Je);null!==e&&e.length>0&&e.map((t=>t.trim())).forEach((e=>t.classList.remove(e)))}static jQueryInterface(t){return this.each((function(){let e=It.get(this,"bs.popover");const n="object"==typeof t?t:null;if((e||!/dispose|hide/.test(t))&&(e||(e=new nn(this,n),It.set(this,"bs.popover",e)),"string"==typeof t)){if(void 0===e[t])throw new TypeError(`No method named "${t}"`);e[t]()}}))}}St("popover",nn);const sn={offset:10,method:"auto",target:""},on={offset:"number",method:"string",target:"(string|element)"};class rn extends Gt{constructor(t,e){super(t),this._scrollElement="BODY"===this._element.tagName?window:this._element,this._config=this._getConfig(e),this._selector=`${this._config.target} .nav-link, ${this._config.target} .list-group-item, ${this._config.target} .dropdown-item`,this._offsets=[],this._targets=[],this._activeTarget=null,this._scrollHeight=0,Qt.on(this._scrollElement,"scroll.bs.scrollspy",(()=>this._process())),this.refresh(),this._process()}static get Default(){return sn}static get DATA_KEY(){return"bs.scrollspy"}refresh(){const t=this._scrollElement===this._scrollElement.window?"offset":"position",e="auto"===this._config.method?t:this._config.method,n="position"===e?this._getScrollTop():0;this._offsets=[],this._targets=[],this._scrollHeight=this._getScrollHeight();ie.find(this._selector).map((t=>{const i=_t(t),s=i?ie.findOne(i):null;if(s){const t=s.getBoundingClientRect();if(t.width||t.height)return[ne[e](s).top+n,i]}return null})).filter((t=>t)).sort(((t,e)=>t[0]-e[0])).forEach((t=>{this._offsets.push(t[0]),this._targets.push(t[1])}))}dispose(){super.dispose(),Qt.off(this._scrollElement,".bs.scrollspy"),this._scrollElement=null,this._config=null,this._selector=null,this._offsets=null,this._targets=null,this._activeTarget=null,this._scrollHeight=null}_getConfig(t){if("string"!=typeof(t={...sn,...ne.getDataAttributes(this._element),..."object"==typeof t&&t?t:{}}).target&&wt(t.target)){let{id:e}=t.target;e||(e=mt("scrollspy"),t.target.id=e),t.target=`#${e}`}return Tt("scrollspy",t,on),t}_getScrollTop(){return this._scrollElement===window?this._scrollElement.pageYOffset:this._scrollElement.scrollTop}_getScrollHeight(){return this._scrollElement.scrollHeight||Math.max(document.body.scrollHeight,document.documentElement.scrollHeight)}_getOffsetHeight(){return this._scrollElement===window?window.innerHeight:this._scrollElement.getBoundingClientRect().height}_process(){const t=this._getScrollTop()+this._config.offset,e=this._getScrollHeight(),n=this._config.offset+e-this._getOffsetHeight();if(this._scrollHeight!==e&&this.refresh(),t>=n){const t=this._targets[this._targets.length-1];this._activeTarget!==t&&this._activate(t)}else{if(this._activeTarget&&t<this._offsets[0]&&this._offsets[0]>0)return this._activeTarget=null,void this._clear();for(let e=this._offsets.length;e--;){this._activeTarget!==this._targets[e]&&t>=this._offsets[e]&&(void 0===this._offsets[e+1]||t<this._offsets[e+1])&&this._activate(this._targets[e])}}}_activate(t){this._activeTarget=t,this._clear();const e=this._selector.split(",").map((e=>`${e}[data-bs-target="${t}"],${e}[href="${t}"]`)),n=ie.findOne(e.join(","));n.classList.contains("dropdown-item")?(ie.findOne(".dropdown-toggle",n.closest(".dropdown")).classList.add("active"),n.classList.add("active")):(n.classList.add("active"),ie.parents(n,".nav, .list-group").forEach((t=>{ie.prev(t,".nav-link, .list-group-item").forEach((t=>t.classList.add("active"))),ie.prev(t,".nav-item").forEach((t=>{ie.children(t,".nav-link").forEach((t=>t.classList.add("active")))}))}))),Qt.trigger(this._scrollElement,"activate.bs.scrollspy",{relatedTarget:t})}_clear(){ie.find(this._selector).filter((t=>t.classList.contains("active"))).forEach((t=>t.classList.remove("active")))}static jQueryInterface(t){return this.each((function(){const e=rn.getInstance(this)||new rn(this,"object"==typeof t?t:{});if("string"==typeof t){if(void 0===e[t])throw new TypeError(`No method named "${t}"`);e[t]()}}))}}Qt.on(window,"load.bs.scrollspy.data-api",(()=>{ie.find('[data-bs-spy="scroll"]').forEach((t=>new rn(t)))})),St("scrollspy",rn);class an extends Gt{static get DATA_KEY(){return"bs.tab"}show(){if(this._element.parentNode&&this._element.parentNode.nodeType===Node.ELEMENT_NODE&&this._element.classList.contains("active"))return;let t;const e=bt(this._element),n=this._element.closest(".nav, .list-group");if(n){const e="UL"===n.nodeName||"OL"===n.nodeName?":scope > li > .active":".active";t=ie.find(e,n),t=t[t.length-1]}const i=t?Qt.trigger(t,"hide.bs.tab",{relatedTarget:this._element}):null;if(Qt.trigger(this._element,"show.bs.tab",{relatedTarget:t}).defaultPrevented||null!==i&&i.defaultPrevented)return;this._activate(this._element,n);const s=()=>{Qt.trigger(t,"hidden.bs.tab",{relatedTarget:this._element}),Qt.trigger(this._element,"shown.bs.tab",{relatedTarget:t})};e?this._activate(e,e.parentNode,s):s()}_activate(t,e,n){const i=(!e||"UL"!==e.nodeName&&"OL"!==e.nodeName?ie.children(e,".active"):ie.find(":scope > li > .active",e))[0],s=n&&i&&i.classList.contains("fade"),o=()=>this._transitionComplete(t,i,n);if(i&&s){const t=vt(i);i.classList.remove("show"),Qt.one(i,"transitionend",o),Et(i,t)}else o()}_transitionComplete(t,e,n){if(e){e.classList.remove("active");const t=ie.findOne(":scope > .dropdown-menu .active",e.parentNode);t&&t.classList.remove("active"),"tab"===e.getAttribute("role")&&e.setAttribute("aria-selected",!1)}t.classList.add("active"),"tab"===t.getAttribute("role")&&t.setAttribute("aria-selected",!0),Dt(t),t.classList.contains("fade")&&t.classList.add("show");let i=t.parentNode;if(i&&"LI"===i.nodeName&&(i=i.parentNode),i&&i.classList.contains("dropdown-menu")){const e=t.closest(".dropdown");e&&ie.find(".dropdown-toggle",e).forEach((t=>t.classList.add("active"))),t.setAttribute("aria-expanded",!0)}n&&n()}static jQueryInterface(t){return this.each((function(){const e=It.get(this,"bs.tab")||new an(this);if("string"==typeof t){if(void 0===e[t])throw new TypeError(`No method named "${t}"`);e[t]()}}))}}Qt.on(document,"click.bs.tab.data-api",'[data-bs-toggle="tab"], [data-bs-toggle="pill"], [data-bs-toggle="list"]',(function(t){if(["A","AREA"].includes(this.tagName)&&t.preventDefault(),Ot(this))return;(It.get(this,"bs.tab")||new an(this)).show()})),St("tab",an);const ln={animation:"boolean",autohide:"boolean",delay:"number"},cn={animation:!0,autohide:!0,delay:5e3};class dn extends Gt{constructor(t,e){super(t),this._config=this._getConfig(e),this._timeout=null,this._setListeners()}static get DefaultType(){return ln}static get Default(){return cn}static get DATA_KEY(){return"bs.toast"}show(){if(Qt.trigger(this._element,"show.bs.toast").defaultPrevented)return;this._clearTimeout(),this._config.animation&&this._element.classList.add("fade");const t=()=>{this._element.classList.remove("showing"),this._element.classList.add("show"),Qt.trigger(this._element,"shown.bs.toast"),this._config.autohide&&(this._timeout=setTimeout((()=>{this.hide()}),this._config.delay))};if(this._element.classList.remove("hide"),Dt(this._element),this._element.classList.add("showing"),this._config.animation){const e=vt(this._element);Qt.one(this._element,"transitionend",t),Et(this._element,e)}else t()}hide(){if(!this._element.classList.contains("show"))return;if(Qt.trigger(this._element,"hide.bs.toast").defaultPrevented)return;const t=()=>{this._element.classList.add("hide"),Qt.trigger(this._element,"hidden.bs.toast")};if(this._element.classList.remove("show"),this._config.animation){const e=vt(this._element);Qt.one(this._element,"transitionend",t),Et(this._element,e)}else t()}dispose(){this._clearTimeout(),this._element.classList.contains("show")&&this._element.classList.remove("show"),super.dispose(),this._config=null}_getConfig(t){return t={...cn,...ne.getDataAttributes(this._element),..."object"==typeof t&&t?t:{}},Tt("toast",t,this.constructor.DefaultType),t}_setListeners(){Qt.on(this._element,"click.dismiss.bs.toast",'[data-bs-dismiss="toast"]',(()=>this.hide()))}_clearTimeout(){clearTimeout(this._timeout),this._timeout=null}static jQueryInterface(t){return this.each((function(){let e=It.get(this,"bs.toast");if(e||(e=new dn(this,"object"==typeof t&&t)),"string"==typeof t){if(void 0===e[t])throw new TypeError(`No method named "${t}"`);e[t](this)}}))}}St("toast",dn);
|
|
/**!
|
|
* tippy.js v6.3.1
|
|
* (c) 2017-2021 atomiks
|
|
* MIT License
|
|
*/
|
|
var un={passive:!0,capture:!0};function hn(t,e,n){if(Array.isArray(t)){var i=t[e];return null==i?Array.isArray(n)?n[e]:n:i}return t}function pn(t,e){var n={}.toString.call(t);return 0===n.indexOf("[object")&&n.indexOf(e+"]")>-1}function fn(t,e){return"function"==typeof t?t.apply(void 0,e):t}function mn(t,e){return 0===e?t:function(i){clearTimeout(n),n=setTimeout((function(){t(i)}),e)};var n}function gn(t){return[].concat(t)}function _n(t,e){-1===t.indexOf(e)&&t.push(e)}function bn(t){return[].slice.call(t)}function vn(){return document.createElement("div")}function yn(t){return["Element","Fragment"].some((function(e){return pn(t,e)}))}function wn(t){return yn(t)?[t]:function(t){return pn(t,"NodeList")}(t)?bn(t):Array.isArray(t)?t:bn(document.querySelectorAll(t))}function En(t,e){t.forEach((function(t){t&&(t.style.transitionDuration=e+"ms")}))}function Tn(t,e){t.forEach((function(t){t&&t.setAttribute("data-state",e)}))}function An(t,e,n){var i=e+"EventListener";["transitionend","webkitTransitionEnd"].forEach((function(e){t[i](e,n)}))}var On={isTouch:!1},Ln=0;function xn(){On.isTouch||(On.isTouch=!0,window.performance&&document.addEventListener("mousemove",Dn))}function Dn(){var t=performance.now();t-Ln<20&&(On.isTouch=!1,document.removeEventListener("mousemove",Dn)),Ln=t}function kn(){var t,e=document.activeElement;if((t=e)&&t._tippy&&t._tippy.reference===t){var n=e._tippy;e.blur&&!n.state.isVisible&&e.blur()}}var Cn="undefined"!=typeof window&&"undefined"!=typeof document?navigator.userAgent:"",Sn=/MSIE |Trident\//.test(Cn),Nn=Object.assign({appendTo:function(){return document.body},aria:{content:"auto",expanded:"auto"},delay:0,duration:[300,250],getReferenceClientRect:null,hideOnClick:!0,ignoreAttributes:!1,interactive:!1,interactiveBorder:2,interactiveDebounce:0,moveTransition:"",offset:[0,10],onAfterUpdate:function(){},onBeforeUpdate:function(){},onCreate:function(){},onDestroy:function(){},onHidden:function(){},onHide:function(){},onMount:function(){},onShow:function(){},onShown:function(){},onTrigger:function(){},onUntrigger:function(){},onClickOutside:function(){},placement:"top",plugins:[],popperOptions:{},render:null,showOnCreate:!1,touch:!0,trigger:"mouseenter focus",triggerTarget:null},{animateFill:!1,followCursor:!1,inlinePositioning:!1,sticky:!1},{},{allowHTML:!1,animation:"fade",arrow:!0,content:"",inertia:!1,maxWidth:350,role:"tooltip",theme:"",zIndex:9999}),jn=Object.keys(Nn);function In(t){var e=(t.plugins||[]).reduce((function(e,n){var i=n.name,s=n.defaultValue;return i&&(e[i]=void 0!==t[i]?t[i]:s),e}),{});return Object.assign({},t,{},e)}function Pn(t,e){var n=Object.assign({},e,{content:fn(e.content,[t])},e.ignoreAttributes?{}:function(t,e){return(e?Object.keys(In(Object.assign({},Nn,{plugins:e}))):jn).reduce((function(e,n){var i=(t.getAttribute("data-tippy-"+n)||"").trim();if(!i)return e;if("content"===n)e[n]=i;else try{e[n]=JSON.parse(i)}catch(t){e[n]=i}return e}),{})}(t,e.plugins));return n.aria=Object.assign({},Nn.aria,{},n.aria),n.aria={expanded:"auto"===n.aria.expanded?e.interactive:n.aria.expanded,content:"auto"===n.aria.content?e.interactive?null:"describedby":n.aria.content},n}function Mn(t,e){t.innerHTML=e}function Hn(t){var e=vn();return!0===t?e.className="tippy-arrow":(e.className="tippy-svg-arrow",yn(t)?e.appendChild(t):Mn(e,t)),e}function Rn(t,e){yn(e.content)?(Mn(t,""),t.appendChild(e.content)):"function"!=typeof e.content&&(e.allowHTML?Mn(t,e.content):t.textContent=e.content)}function Bn(t){var e=t.firstElementChild,n=bn(e.children);return{box:e,content:n.find((function(t){return t.classList.contains("tippy-content")})),arrow:n.find((function(t){return t.classList.contains("tippy-arrow")||t.classList.contains("tippy-svg-arrow")})),backdrop:n.find((function(t){return t.classList.contains("tippy-backdrop")}))}}function $n(t){var e=vn(),n=vn();n.className="tippy-box",n.setAttribute("data-state","hidden"),n.setAttribute("tabindex","-1");var i=vn();function s(n,i){var s=Bn(e),o=s.box,r=s.content,a=s.arrow;i.theme?o.setAttribute("data-theme",i.theme):o.removeAttribute("data-theme"),"string"==typeof i.animation?o.setAttribute("data-animation",i.animation):o.removeAttribute("data-animation"),i.inertia?o.setAttribute("data-inertia",""):o.removeAttribute("data-inertia"),o.style.maxWidth="number"==typeof i.maxWidth?i.maxWidth+"px":i.maxWidth,i.role?o.setAttribute("role",i.role):o.removeAttribute("role"),n.content===i.content&&n.allowHTML===i.allowHTML||Rn(r,t.props),i.arrow?a?n.arrow!==i.arrow&&(o.removeChild(a),o.appendChild(Hn(i.arrow))):o.appendChild(Hn(i.arrow)):a&&o.removeChild(a)}return i.className="tippy-content",i.setAttribute("data-state","hidden"),Rn(i,t.props),e.appendChild(n),n.appendChild(i),s(t.props,t.props),{popper:e,onUpdate:s}}$n.$$tippy=!0;var Wn=1,Un=[],Vn=[];function zn(t,e){var n,i,s,o,r,a,l,c,d,u=Pn(t,Object.assign({},Nn,{},In((n=e,Object.keys(n).reduce((function(t,e){return void 0!==n[e]&&(t[e]=n[e]),t}),{}))))),h=!1,p=!1,f=!1,m=!1,g=[],_=mn(K,u.interactiveDebounce),b=Wn++,v=(d=u.plugins).filter((function(t,e){return d.indexOf(t)===e})),y={id:b,reference:t,popper:vn(),popperInstance:null,props:u,state:{isEnabled:!0,isVisible:!1,isDestroyed:!1,isMounted:!1,isShown:!1},plugins:v,clearDelayTimeouts:function(){clearTimeout(i),clearTimeout(s),cancelAnimationFrame(o)},setProps:function(e){if(y.state.isDestroyed)return;I("onBeforeUpdate",[y,e]),q();var n=y.props,i=Pn(t,Object.assign({},y.props,{},e,{ignoreAttributes:!0}));y.props=i,F(),n.interactiveDebounce!==i.interactiveDebounce&&(H(),_=mn(K,i.interactiveDebounce));n.triggerTarget&&!i.triggerTarget?gn(n.triggerTarget).forEach((function(t){t.removeAttribute("aria-expanded")})):i.triggerTarget&&t.removeAttribute("aria-expanded");M(),j(),T&&T(n,i);y.popperInstance&&(J(),tt().forEach((function(t){requestAnimationFrame(t._tippy.popperInstance.forceUpdate)})));I("onAfterUpdate",[y,e])},setContent:function(t){y.setProps({content:t})},show:function(){var t=y.state.isVisible,e=y.state.isDestroyed,n=!y.state.isEnabled,i=On.isTouch&&!y.props.touch,s=hn(y.props.duration,0,Nn.duration);if(t||e||n||i)return;if(k().hasAttribute("disabled"))return;if(I("onShow",[y],!1),!1===y.props.onShow(y))return;y.state.isVisible=!0,D()&&(E.style.visibility="visible");j(),W(),y.state.isMounted||(E.style.transition="none");if(D()){var o=S(),r=o.box,a=o.content;En([r,a],0)}l=function(){var t;if(y.state.isVisible&&!m){if(m=!0,E.offsetHeight,E.style.transition=y.props.moveTransition,D()&&y.props.animation){var e=S(),n=e.box,i=e.content;En([n,i],s),Tn([n,i],"visible")}P(),M(),_n(Vn,y),null==(t=y.popperInstance)||t.forceUpdate(),y.state.isMounted=!0,I("onMount",[y]),y.props.animation&&D()&&function(t,e){V(t,e)}(s,(function(){y.state.isShown=!0,I("onShown",[y])}))}},function(){var t,e=y.props.appendTo,n=k();t=y.props.interactive&&e===Nn.appendTo||"parent"===e?n.parentNode:fn(e,[n]);t.contains(E)||t.appendChild(E);J()}()},hide:function(){var t=!y.state.isVisible,e=y.state.isDestroyed,n=!y.state.isEnabled,i=hn(y.props.duration,1,Nn.duration);if(t||e||n)return;if(I("onHide",[y],!1),!1===y.props.onHide(y))return;y.state.isVisible=!1,y.state.isShown=!1,m=!1,h=!1,D()&&(E.style.visibility="hidden");if(H(),U(),j(),D()){var s=S(),o=s.box,r=s.content;y.props.animation&&(En([o,r],i),Tn([o,r],"hidden"))}P(),M(),y.props.animation?D()&&function(t,e){V(t,(function(){!y.state.isVisible&&E.parentNode&&E.parentNode.contains(E)&&e()}))}(i,y.unmount):y.unmount()},hideWithInteractivity:function(t){C().addEventListener("mousemove",_),_n(Un,_),_(t)},enable:function(){y.state.isEnabled=!0},disable:function(){y.hide(),y.state.isEnabled=!1},unmount:function(){y.state.isVisible&&y.hide();if(!y.state.isMounted)return;Z(),tt().forEach((function(t){t._tippy.unmount()})),E.parentNode&&E.parentNode.removeChild(E);Vn=Vn.filter((function(t){return t!==y})),y.state.isMounted=!1,I("onHidden",[y])},destroy:function(){if(y.state.isDestroyed)return;y.clearDelayTimeouts(),y.unmount(),q(),delete t._tippy,y.state.isDestroyed=!0,I("onDestroy",[y])}};if(!u.render)return y;var w=u.render(y),E=w.popper,T=w.onUpdate;E.setAttribute("data-tippy-root",""),E.id="tippy-"+y.id,y.popper=E,t._tippy=y,E._tippy=y;var A=v.map((function(t){return t.fn(y)})),O=t.hasAttribute("aria-expanded");return F(),M(),j(),I("onCreate",[y]),u.showOnCreate&&et(),E.addEventListener("mouseenter",(function(){y.props.interactive&&y.state.isVisible&&y.clearDelayTimeouts()})),E.addEventListener("mouseleave",(function(t){y.props.interactive&&y.props.trigger.indexOf("mouseenter")>=0&&(C().addEventListener("mousemove",_),_(t))})),y;function L(){var t=y.props.touch;return Array.isArray(t)?t:[t,0]}function x(){return"hold"===L()[0]}function D(){var t;return!!(null==(t=y.props.render)?void 0:t.$$tippy)}function k(){return c||t}function C(){var t,e,n=k().parentNode;return n?(null==(e=gn(n)[0])||null==(t=e.ownerDocument)?void 0:t.body)?e.ownerDocument:document:document}function S(){return Bn(E)}function N(t){return y.state.isMounted&&!y.state.isVisible||On.isTouch||r&&"focus"===r.type?0:hn(y.props.delay,t?0:1,Nn.delay)}function j(){E.style.pointerEvents=y.props.interactive&&y.state.isVisible?"":"none",E.style.zIndex=""+y.props.zIndex}function I(t,e,n){var i;(void 0===n&&(n=!0),A.forEach((function(n){n[t]&&n[t].apply(void 0,e)})),n)&&(i=y.props)[t].apply(i,e)}function P(){var e=y.props.aria;if(e.content){var n="aria-"+e.content,i=E.id;gn(y.props.triggerTarget||t).forEach((function(t){var e=t.getAttribute(n);if(y.state.isVisible)t.setAttribute(n,e?e+" "+i:i);else{var s=e&&e.replace(i,"").trim();s?t.setAttribute(n,s):t.removeAttribute(n)}}))}}function M(){!O&&y.props.aria.expanded&&gn(y.props.triggerTarget||t).forEach((function(t){y.props.interactive?t.setAttribute("aria-expanded",y.state.isVisible&&t===k()?"true":"false"):t.removeAttribute("aria-expanded")}))}function H(){C().removeEventListener("mousemove",_),Un=Un.filter((function(t){return t!==_}))}function R(t){if(!(On.isTouch&&(f||"mousedown"===t.type)||y.props.interactive&&E.contains(t.target))){if(k().contains(t.target)){if(On.isTouch)return;if(y.state.isVisible&&y.props.trigger.indexOf("click")>=0)return}else I("onClickOutside",[y,t]);!0===y.props.hideOnClick&&(y.clearDelayTimeouts(),y.hide(),p=!0,setTimeout((function(){p=!1})),y.state.isMounted||U())}}function B(){f=!0}function $(){f=!1}function W(){var t=C();t.addEventListener("mousedown",R,!0),t.addEventListener("touchend",R,un),t.addEventListener("touchstart",$,un),t.addEventListener("touchmove",B,un)}function U(){var t=C();t.removeEventListener("mousedown",R,!0),t.removeEventListener("touchend",R,un),t.removeEventListener("touchstart",$,un),t.removeEventListener("touchmove",B,un)}function V(t,e){var n=S().box;function i(t){t.target===n&&(An(n,"remove",i),e())}if(0===t)return e();An(n,"remove",a),An(n,"add",i),a=i}function z(e,n,i){void 0===i&&(i=!1),gn(y.props.triggerTarget||t).forEach((function(t){t.addEventListener(e,n,i),g.push({node:t,eventType:e,handler:n,options:i})}))}function F(){var t;x()&&(z("touchstart",Y,{passive:!0}),z("touchend",X,{passive:!0})),(t=y.props.trigger,t.split(/\s+/).filter(Boolean)).forEach((function(t){if("manual"!==t)switch(z(t,Y),t){case"mouseenter":z("mouseleave",X);break;case"focus":z(Sn?"focusout":"blur",Q);break;case"focusin":z("focusout",Q)}}))}function q(){g.forEach((function(t){var e=t.node,n=t.eventType,i=t.handler,s=t.options;e.removeEventListener(n,i,s)})),g=[]}function Y(t){var e,n=!1;if(y.state.isEnabled&&!G(t)&&!p){var i="focus"===(null==(e=r)?void 0:e.type);r=t,c=t.currentTarget,M(),!y.state.isVisible&&pn(t,"MouseEvent")&&Un.forEach((function(e){return e(t)})),"click"===t.type&&(y.props.trigger.indexOf("mouseenter")<0||h)&&!1!==y.props.hideOnClick&&y.state.isVisible?n=!0:et(t),"click"===t.type&&(h=!n),n&&!i&&nt(t)}}function K(t){var e=t.target,n=k().contains(e)||E.contains(e);"mousemove"===t.type&&n||function(t,e){var n=e.clientX,i=e.clientY;return t.every((function(t){var e=t.popperRect,s=t.popperState,o=t.props.interactiveBorder,r=s.placement.split("-")[0],a=s.modifiersData.offset;if(!a)return!0;var l="bottom"===r?a.top.y:0,c="top"===r?a.bottom.y:0,d="right"===r?a.left.x:0,u="left"===r?a.right.x:0,h=e.top-i+l>o,p=i-e.bottom-c>o,f=e.left-n+d>o,m=n-e.right-u>o;return h||p||f||m}))}(tt().concat(E).map((function(t){var e,n=null==(e=t._tippy.popperInstance)?void 0:e.state;return n?{popperRect:t.getBoundingClientRect(),popperState:n,props:u}:null})).filter(Boolean),t)&&(H(),nt(t))}function X(t){G(t)||y.props.trigger.indexOf("click")>=0&&h||(y.props.interactive?y.hideWithInteractivity(t):nt(t))}function Q(t){y.props.trigger.indexOf("focusin")<0&&t.target!==k()||y.props.interactive&&t.relatedTarget&&E.contains(t.relatedTarget)||nt(t)}function G(t){return!!On.isTouch&&x()!==t.type.indexOf("touch")>=0}function J(){Z();var e=y.props,n=e.popperOptions,i=e.placement,s=e.offset,o=e.getReferenceClientRect,r=e.moveTransition,a=D()?Bn(E).arrow:null,c=o?{getBoundingClientRect:o,contextElement:o.contextElement||k()}:t,d=[{name:"offset",options:{offset:s}},{name:"preventOverflow",options:{padding:{top:2,bottom:2,left:5,right:5}}},{name:"flip",options:{padding:5}},{name:"computeStyles",options:{adaptive:!r}},{name:"$$tippy",enabled:!0,phase:"beforeWrite",requires:["computeStyles"],fn:function(t){var e=t.state;if(D()){var n=S().box;["placement","reference-hidden","escaped"].forEach((function(t){"placement"===t?n.setAttribute("data-placement",e.placement):e.attributes.popper["data-popper-"+t]?n.setAttribute("data-"+t,""):n.removeAttribute("data-"+t)})),e.attributes.popper={}}}}];D()&&a&&d.push({name:"arrow",options:{element:a,padding:3}}),d.push.apply(d,(null==n?void 0:n.modifiers)||[]),y.popperInstance=pt(c,E,Object.assign({},n,{placement:i,onFirstUpdate:l,modifiers:d}))}function Z(){y.popperInstance&&(y.popperInstance.destroy(),y.popperInstance=null)}function tt(){return bn(E.querySelectorAll("[data-tippy-root]"))}function et(t){y.clearDelayTimeouts(),t&&I("onTrigger",[y,t]),W();var e=N(!0),n=L(),s=n[0],o=n[1];On.isTouch&&"hold"===s&&o&&(e=o),e?i=setTimeout((function(){y.show()}),e):y.show()}function nt(t){if(y.clearDelayTimeouts(),I("onUntrigger",[y,t]),y.state.isVisible){if(!(y.props.trigger.indexOf("mouseenter")>=0&&y.props.trigger.indexOf("click")>=0&&["mouseleave","mousemove"].indexOf(t.type)>=0&&h)){var e=N(!1);e?s=setTimeout((function(){y.state.isVisible&&y.hide()}),e):o=requestAnimationFrame((function(){y.hide()}))}}else U()}}function Fn(t,e){void 0===e&&(e={});var n=Nn.plugins.concat(e.plugins||[]);document.addEventListener("touchstart",xn,un),window.addEventListener("blur",kn);var i=Object.assign({},e,{plugins:n}),s=wn(t).reduce((function(t,e){var n=e&&zn(e,i);return n&&t.push(n),t}),[]);return yn(t)?s[0]:s}Fn.defaultProps=Nn,Fn.setDefaultProps=function(t){Object.keys(t).forEach((function(e){Nn[e]=t[e]}))},Fn.currentInput=On,Object.assign({},p,{effect:function(t){var e=t.state,n={popper:{position:e.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};Object.assign(e.elements.popper.style,n.popper),e.styles=n,e.elements.arrow&&Object.assign(e.elements.arrow.style,n.arrow)}}),Fn.setDefaultProps({render:$n});Fn(".mytooltip",{allowHTML:!0,theme:"light-border",content:t=>t.querySelector(".mytooltip-content").innerHTML}),window.App=class{static copyToClipboard(t){let e=t.parentNode.getElementsByTagName("code")[0].innerText;if(navigator.clipboard){navigator.clipboard.writeText(e);let n=t.innerHTML;t.innerHTML="✅",setTimeout((()=>t.innerHTML=n),1e3)}}};
|