@teipublisher/pb-components 3.0.0-next-4.19 → 3.0.0-next-4.20
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +7 -0
- package/dist/pb-components-bundle.js +2 -2
- package/package.json +1 -1
- package/src/pb-navigation.js +3 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,10 @@
|
|
|
1
|
+
# [3.0.0-next-4.20](https://github.com/eeditiones/tei-publisher-components/compare/v3.0.0-next-4.19...v3.0.0-next-4.20) (2026-05-20)
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
### Features
|
|
5
|
+
|
|
6
|
+
* **pb-navigation:** make pb-navigation themable ([6ce5a99](https://github.com/eeditiones/tei-publisher-components/commit/6ce5a9951d2a87b53712c85b5b568c0e61d83a59))
|
|
7
|
+
|
|
1
8
|
# [3.0.0-next-4.19](https://github.com/eeditiones/tei-publisher-components/compare/v3.0.0-next-4.18...v3.0.0-next-4.19) (2026-05-20)
|
|
2
9
|
|
|
3
10
|
|
|
@@ -130,7 +130,7 @@ import{x as e,i as t,a as n,p as s,w as r,c as o,b as a,E as l,m as c,B as d}fro
|
|
|
130
130
|
border-color: #999;
|
|
131
131
|
color: #999;
|
|
132
132
|
}
|
|
133
|
-
`}customElements.define("pb-demo-snippet",re);const oe="3.0.0-next-4.19";class ae extends n{static get properties(){return Object.assign({version:{type:String,reflect:!0}},super.properties)}constructor(){super(),this.version=oe}render(){return e`<span>${this.version?this.version:"unknown"}</span>`}createRenderRoot(){return this}}customElements.define("pb-version",ae);var le="top",ce="bottom",de="right",pe="left",ue="auto",he=[le,ce,de,pe],ge="start",fe="end",me="clippingParents",be="viewport",ye="popper",ve="reference",_e=he.reduce(function(e,t){return e.concat([t+"-"+ge,t+"-"+fe])},[]),we=[].concat(he,[ue]).reduce(function(e,t){return e.concat([t,t+"-"+ge,t+"-"+fe])},[]),xe=["beforeRead","read","afterRead","beforeMain","main","afterMain","beforeWrite","write","afterWrite"];function ke(e){return e?(e.nodeName||"").toLowerCase():null}function Ae(e){if(null==e)return window;if("[object Window]"!==e.toString()){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function Se(e){return e instanceof Ae(e).Element||e instanceof Element}function Oe(e){return e instanceof Ae(e).HTMLElement||e instanceof HTMLElement}function Ee(e){return"undefined"!=typeof ShadowRoot&&(e instanceof Ae(e).ShadowRoot||e instanceof ShadowRoot)}function $e(e){var t=e.state;Object.keys(t.elements).forEach(function(e){var i=t.styles[e]||{},n=t.attributes[e]||{},s=t.elements[e];Oe(s)&&ke(s)&&(Object.assign(s.style,i),Object.keys(n).forEach(function(e){var t=n[e];!1===t?s.removeAttribute(e):s.setAttribute(e,!0===t?"":t)}))})}function Ce(e){var t=e.state,i={popper:{position:t.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(t.elements.popper.style,i.popper),t.styles=i,t.elements.arrow&&Object.assign(t.elements.arrow.style,i.arrow),function(){Object.keys(t.elements).forEach(function(e){var n=t.elements[e],s=t.attributes[e]||{},r=Object.keys(t.styles.hasOwnProperty(e)?t.styles[e]:i[e]).reduce(function(e,t){return e[t]="",e},{});Oe(n)&&ke(n)&&(Object.assign(n.style,r),Object.keys(s).forEach(function(e){n.removeAttribute(e)}))})}}var Te={name:"applyStyles",enabled:!0,phase:"write",fn:$e,effect:Ce,requires:["computeStyles"]};function Ie(e){return e.split("-")[0]}var Le=Math.max,Re=Math.min,je=Math.round;function Ne(){var e=navigator.userAgentData;return null!=e&&e.brands&&Array.isArray(e.brands)?e.brands.map(function(e){return e.brand+"/"+e.version}).join(" "):navigator.userAgent}function Pe(){return!/^((?!chrome|android).)*safari/i.test(Ne())}function De(e,t,i){void 0===t&&(t=!1),void 0===i&&(i=!1);var n=e.getBoundingClientRect(),s=1,r=1;t&&Oe(e)&&(s=e.offsetWidth>0&&je(n.width)/e.offsetWidth||1,r=e.offsetHeight>0&&je(n.height)/e.offsetHeight||1);var o=(Se(e)?Ae(e):window).visualViewport,a=!Pe()&&i,l=(n.left+(a&&o?o.offsetLeft:0))/s,c=(n.top+(a&&o?o.offsetTop:0))/r,d=n.width/s,p=n.height/r;return{width:d,height:p,top:c,right:l+d,bottom:c+p,left:l,x:l,y:c}}function Fe(e){var t=De(e),i=e.offsetWidth,n=e.offsetHeight;return Math.abs(t.width-i)<=1&&(i=t.width),Math.abs(t.height-n)<=1&&(n=t.height),{x:e.offsetLeft,y:e.offsetTop,width:i,height:n}}function Be(e,t){var i=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(i&&Ee(i)){var n=t;do{if(n&&e.isSameNode(n))return!0;n=n.parentNode||n.host}while(n)}return!1}function Me(e){return Ae(e).getComputedStyle(e)}function qe(e){return["table","td","th"].indexOf(ke(e))>=0}function ze(e){return((Se(e)?e.ownerDocument:e.document)||window.document).documentElement}function Ue(e){return"html"===ke(e)?e:e.assignedSlot||e.parentNode||(Ee(e)?e.host:null)||ze(e)}function He(e){return Oe(e)&&"fixed"!==Me(e).position?e.offsetParent:null}function Ve(e){var t=/firefox/i.test(Ne());if(/Trident/i.test(Ne())&&Oe(e)&&"fixed"===Me(e).position)return null;var i=Ue(e);for(Ee(i)&&(i=i.host);Oe(i)&&["html","body"].indexOf(ke(i))<0;){var n=Me(i);if("none"!==n.transform||"none"!==n.perspective||"paint"===n.contain||-1!==["transform","perspective"].indexOf(n.willChange)||t&&"filter"===n.willChange||t&&n.filter&&"none"!==n.filter)return i;i=i.parentNode}return null}function We(e){for(var t=Ae(e),i=He(e);i&&qe(i)&&"static"===Me(i).position;)i=He(i);return i&&("html"===ke(i)||"body"===ke(i)&&"static"===Me(i).position)?t:i||Ve(e)||t}function Ge(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function Ye(e,t,i){return Le(e,Re(t,i))}function Qe(e,t,i){var n=Ye(e,t,i);return n>i?i:n}function Ke(){return{top:0,right:0,bottom:0,left:0}}function Je(e){return Object.assign({},Ke(),e)}function Ze(e,t){return t.reduce(function(t,i){return t[i]=e,t},{})}var Xe=function(e,t){return Je("number"!=typeof(e="function"==typeof e?e(Object.assign({},t.rects,{placement:t.placement})):e)?e:Ze(e,he))};function et(e){var t,i=e.state,n=e.name,s=e.options,r=i.elements.arrow,o=i.modifiersData.popperOffsets,a=Ie(i.placement),l=Ge(a),c=[pe,de].indexOf(a)>=0?"height":"width";if(r&&o){var d=Xe(s.padding,i),p=Fe(r),u="y"===l?le:pe,h="y"===l?ce:de,g=i.rects.reference[c]+i.rects.reference[l]-o[l]-i.rects.popper[c],f=o[l]-i.rects.reference[l],m=We(r),b=m?"y"===l?m.clientHeight||0:m.clientWidth||0:0,y=g/2-f/2,v=d[u],_=b-p[c]-d[h],w=b/2-p[c]/2+y,x=Ye(v,w,_),k=l;i.modifiersData[n]=((t={})[k]=x,t.centerOffset=x-w,t)}}function tt(e){var t=e.state,i=e.options.element,n=void 0===i?"[data-popper-arrow]":i;null!=n&&("string"!=typeof n||(n=t.elements.popper.querySelector(n)))&&Be(t.elements.popper,n)&&(t.elements.arrow=n)}function it(e){return e.split("-")[1]}var nt={top:"auto",right:"auto",bottom:"auto",left:"auto"};function st(e,t){var i=e.x,n=e.y,s=t.devicePixelRatio||1;return{x:je(i*s)/s||0,y:je(n*s)/s||0}}function rt(e){var t,i=e.popper,n=e.popperRect,s=e.placement,r=e.variation,o=e.offsets,a=e.position,l=e.gpuAcceleration,c=e.adaptive,d=e.roundOffsets,p=e.isFixed,u=o.x,h=void 0===u?0:u,g=o.y,f=void 0===g?0:g,m="function"==typeof d?d({x:h,y:f}):{x:h,y:f};h=m.x,f=m.y;var b=o.hasOwnProperty("x"),y=o.hasOwnProperty("y"),v=pe,_=le,w=window;if(c){var x=We(i),k="clientHeight",A="clientWidth";if(x===Ae(i)&&"static"!==Me(x=ze(i)).position&&"absolute"===a&&(k="scrollHeight",A="scrollWidth"),s===le||(s===pe||s===de)&&r===fe)_=ce,f-=(p&&x===w&&w.visualViewport?w.visualViewport.height:x[k])-n.height,f*=l?1:-1;if(s===pe||(s===le||s===ce)&&r===fe)v=de,h-=(p&&x===w&&w.visualViewport?w.visualViewport.width:x[A])-n.width,h*=l?1:-1}var S,O=Object.assign({position:a},c&&nt),E=!0===d?st({x:h,y:f},Ae(i)):{x:h,y:f};return h=E.x,f=E.y,l?Object.assign({},O,((S={})[_]=y?"0":"",S[v]=b?"0":"",S.transform=(w.devicePixelRatio||1)<=1?"translate("+h+"px, "+f+"px)":"translate3d("+h+"px, "+f+"px, 0)",S)):Object.assign({},O,((t={})[_]=y?f+"px":"",t[v]=b?h+"px":"",t.transform="",t))}function ot(e){var t=e.state,i=e.options,n=i.gpuAcceleration,s=void 0===n||n,r=i.adaptive,o=void 0===r||r,a=i.roundOffsets,l=void 0===a||a,c={placement:Ie(t.placement),variation:it(t.placement),popper:t.elements.popper,popperRect:t.rects.popper,gpuAcceleration:s,isFixed:"fixed"===t.options.strategy};null!=t.modifiersData.popperOffsets&&(t.styles.popper=Object.assign({},t.styles.popper,rt(Object.assign({},c,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:o,roundOffsets:l})))),null!=t.modifiersData.arrow&&(t.styles.arrow=Object.assign({},t.styles.arrow,rt(Object.assign({},c,{offsets:t.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:l})))),t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-placement":t.placement})}var at={passive:!0};function lt(e){var t=e.state,i=e.instance,n=e.options,s=n.scroll,r=void 0===s||s,o=n.resize,a=void 0===o||o,l=Ae(t.elements.popper),c=[].concat(t.scrollParents.reference,t.scrollParents.popper);return r&&c.forEach(function(e){e.addEventListener("scroll",i.update,at)}),a&&l.addEventListener("resize",i.update,at),function(){r&&c.forEach(function(e){e.removeEventListener("scroll",i.update,at)}),a&&l.removeEventListener("resize",i.update,at)}}var ct={left:"right",right:"left",bottom:"top",top:"bottom"};function dt(e){return e.replace(/left|right|bottom|top/g,function(e){return ct[e]})}var pt={start:"end",end:"start"};function ut(e){return e.replace(/start|end/g,function(e){return pt[e]})}function ht(e){var t=Ae(e);return{scrollLeft:t.pageXOffset,scrollTop:t.pageYOffset}}function gt(e){return De(ze(e)).left+ht(e).scrollLeft}function ft(e,t){var i=Ae(e),n=ze(e),s=i.visualViewport,r=n.clientWidth,o=n.clientHeight,a=0,l=0;if(s){r=s.width,o=s.height;var c=Pe();(c||!c&&"fixed"===t)&&(a=s.offsetLeft,l=s.offsetTop)}return{width:r,height:o,x:a+gt(e),y:l}}function mt(e){var t,i=ze(e),n=ht(e),s=null==(t=e.ownerDocument)?void 0:t.body,r=Le(i.scrollWidth,i.clientWidth,s?s.scrollWidth:0,s?s.clientWidth:0),o=Le(i.scrollHeight,i.clientHeight,s?s.scrollHeight:0,s?s.clientHeight:0),a=-n.scrollLeft+gt(e),l=-n.scrollTop;return"rtl"===Me(s||i).direction&&(a+=Le(i.clientWidth,s?s.clientWidth:0)-r),{width:r,height:o,x:a,y:l}}function bt(e){var t=Me(e),i=t.overflow,n=t.overflowX,s=t.overflowY;return/auto|scroll|overlay|hidden/.test(i+s+n)}function yt(e){return["html","body","#document"].indexOf(ke(e))>=0?e.ownerDocument.body:Oe(e)&&bt(e)?e:yt(Ue(e))}function vt(e,t){var i;void 0===t&&(t=[]);var n=yt(e),s=n===(null==(i=e.ownerDocument)?void 0:i.body),r=Ae(n),o=s?[r].concat(r.visualViewport||[],bt(n)?n:[]):n,a=t.concat(o);return s?a:a.concat(vt(Ue(o)))}function _t(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function wt(e,t){var i=De(e,!1,"fixed"===t);return i.top=i.top+e.clientTop,i.left=i.left+e.clientLeft,i.bottom=i.top+e.clientHeight,i.right=i.left+e.clientWidth,i.width=e.clientWidth,i.height=e.clientHeight,i.x=i.left,i.y=i.top,i}function xt(e,t,i){return t===be?_t(ft(e,i)):Se(t)?wt(t,i):_t(mt(ze(e)))}function kt(e){var t=vt(Ue(e)),i=["absolute","fixed"].indexOf(Me(e).position)>=0&&Oe(e)?We(e):e;return Se(i)?t.filter(function(e){return Se(e)&&Be(e,i)&&"body"!==ke(e)}):[]}function At(e,t,i,n){var s="clippingParents"===t?kt(e):[].concat(t),r=[].concat(s,[i]),o=r[0],a=r.reduce(function(t,i){var s=xt(e,i,n);return t.top=Le(s.top,t.top),t.right=Re(s.right,t.right),t.bottom=Re(s.bottom,t.bottom),t.left=Le(s.left,t.left),t},xt(e,o,n));return a.width=a.right-a.left,a.height=a.bottom-a.top,a.x=a.left,a.y=a.top,a}function St(e){var t,i=e.reference,n=e.element,s=e.placement,r=s?Ie(s):null,o=s?it(s):null,a=i.x+i.width/2-n.width/2,l=i.y+i.height/2-n.height/2;switch(r){case le:t={x:a,y:i.y-n.height};break;case ce:t={x:a,y:i.y+i.height};break;case de:t={x:i.x+i.width,y:l};break;case pe:t={x:i.x-n.width,y:l};break;default:t={x:i.x,y:i.y}}var c=r?Ge(r):null;if(null!=c){var d="y"===c?"height":"width";switch(o){case ge:t[c]=t[c]-(i[d]/2-n[d]/2);break;case fe:t[c]=t[c]+(i[d]/2-n[d]/2)}}return t}function Ot(e,t){void 0===t&&(t={});var i=t,n=i.placement,s=void 0===n?e.placement:n,r=i.strategy,o=void 0===r?e.strategy:r,a=i.boundary,l=void 0===a?me:a,c=i.rootBoundary,d=void 0===c?be:c,p=i.elementContext,u=void 0===p?ye:p,h=i.altBoundary,g=void 0!==h&&h,f=i.padding,m=void 0===f?0:f,b=Je("number"!=typeof m?m:Ze(m,he)),y=u===ye?ve:ye,v=e.rects.popper,_=e.elements[g?y:u],w=At(Se(_)?_:_.contextElement||ze(e.elements.popper),l,d,o),x=De(e.elements.reference),k=St({reference:x,element:v,placement:s}),A=_t(Object.assign({},v,k)),S=u===ye?A:x,O={top:w.top-S.top+b.top,bottom:S.bottom-w.bottom+b.bottom,left:w.left-S.left+b.left,right:S.right-w.right+b.right},E=e.modifiersData.offset;if(u===ye&&E){var $=E[s];Object.keys(O).forEach(function(e){var t=[de,ce].indexOf(e)>=0?1:-1,i=[le,ce].indexOf(e)>=0?"y":"x";O[e]+=$[i]*t})}return O}function Et(e,t){void 0===t&&(t={});var i=t,n=i.placement,s=i.boundary,r=i.rootBoundary,o=i.padding,a=i.flipVariations,l=i.allowedAutoPlacements,c=void 0===l?we:l,d=it(n),p=d?a?_e:_e.filter(function(e){return it(e)===d}):he,u=p.filter(function(e){return c.indexOf(e)>=0});0===u.length&&(u=p);var h=u.reduce(function(t,i){return t[i]=Ot(e,{placement:i,boundary:s,rootBoundary:r,padding:o})[Ie(i)],t},{});return Object.keys(h).sort(function(e,t){return h[e]-h[t]})}function $t(e){if(Ie(e)===ue)return[];var t=dt(e);return[ut(e),t,ut(t)]}function Ct(e){var t=e.state,i=e.options,n=e.name;if(!t.modifiersData[n]._skip){for(var s=i.mainAxis,r=void 0===s||s,o=i.altAxis,a=void 0===o||o,l=i.fallbackPlacements,c=i.padding,d=i.boundary,p=i.rootBoundary,u=i.altBoundary,h=i.flipVariations,g=void 0===h||h,f=i.allowedAutoPlacements,m=t.options.placement,b=Ie(m),y=l||(b===m||!g?[dt(m)]:$t(m)),v=[m].concat(y).reduce(function(e,i){return e.concat(Ie(i)===ue?Et(t,{placement:i,boundary:d,rootBoundary:p,padding:c,flipVariations:g,allowedAutoPlacements:f}):i)},[]),_=t.rects.reference,w=t.rects.popper,x=new Map,k=!0,A=v[0],S=0;S<v.length;S++){var O=v[S],E=Ie(O),$=it(O)===ge,C=[le,ce].indexOf(E)>=0,T=C?"width":"height",I=Ot(t,{placement:O,boundary:d,rootBoundary:p,altBoundary:u,padding:c}),L=C?$?de:pe:$?ce:le;_[T]>w[T]&&(L=dt(L));var R=dt(L),j=[];if(r&&j.push(I[E]<=0),a&&j.push(I[L]<=0,I[R]<=0),j.every(function(e){return e})){A=O,k=!1;break}x.set(O,j)}if(k)for(var N=function(e){var t=v.find(function(t){var i=x.get(t);if(i)return i.slice(0,e).every(function(e){return e})});if(t)return A=t,"break"},P=g?3:1;P>0;P--){if("break"===N(P))break}t.placement!==A&&(t.modifiersData[n]._skip=!0,t.placement=A,t.reset=!0)}}function Tt(e,t,i){return void 0===i&&(i={x:0,y:0}),{top:e.top-t.height-i.y,right:e.right-t.width+i.x,bottom:e.bottom-t.height+i.y,left:e.left-t.width-i.x}}function It(e){return[le,de,ce,pe].some(function(t){return e[t]>=0})}function Lt(e){var t=e.state,i=e.name,n=t.rects.reference,s=t.rects.popper,r=t.modifiersData.preventOverflow,o=Ot(t,{elementContext:"reference"}),a=Ot(t,{altBoundary:!0}),l=Tt(o,n),c=Tt(a,s,r),d=It(l),p=It(c);t.modifiersData[i]={referenceClippingOffsets:l,popperEscapeOffsets:c,isReferenceHidden:d,hasPopperEscaped:p},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":d,"data-popper-escaped":p})}function Rt(e,t,i){var n=Ie(e),s=[pe,le].indexOf(n)>=0?-1:1,r="function"==typeof i?i(Object.assign({},t,{placement:e})):i,o=r[0],a=r[1];return o=o||0,a=(a||0)*s,[pe,de].indexOf(n)>=0?{x:a,y:o}:{x:o,y:a}}function jt(e){var t=e.state,i=e.options,n=e.name,s=i.offset,r=void 0===s?[0,0]:s,o=we.reduce(function(e,i){return e[i]=Rt(i,t.rects,r),e},{}),a=o[t.placement],l=a.x,c=a.y;null!=t.modifiersData.popperOffsets&&(t.modifiersData.popperOffsets.x+=l,t.modifiersData.popperOffsets.y+=c),t.modifiersData[n]=o}function Nt(e){var t=e.state,i=e.name;t.modifiersData[i]=St({reference:t.rects.reference,element:t.rects.popper,placement:t.placement})}function Pt(e){return"x"===e?"y":"x"}function Dt(e){var t=e.state,i=e.options,n=e.name,s=i.mainAxis,r=void 0===s||s,o=i.altAxis,a=void 0!==o&&o,l=i.boundary,c=i.rootBoundary,d=i.altBoundary,p=i.padding,u=i.tether,h=void 0===u||u,g=i.tetherOffset,f=void 0===g?0:g,m=Ot(t,{boundary:l,rootBoundary:c,padding:p,altBoundary:d}),b=Ie(t.placement),y=it(t.placement),v=!y,_=Ge(b),w=Pt(_),x=t.modifiersData.popperOffsets,k=t.rects.reference,A=t.rects.popper,S="function"==typeof f?f(Object.assign({},t.rects,{placement:t.placement})):f,O="number"==typeof S?{mainAxis:S,altAxis:S}:Object.assign({mainAxis:0,altAxis:0},S),E=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,$={x:0,y:0};if(x){if(r){var C,T="y"===_?le:pe,I="y"===_?ce:de,L="y"===_?"height":"width",R=x[_],j=R+m[T],N=R-m[I],P=h?-A[L]/2:0,D=y===ge?k[L]:A[L],F=y===ge?-A[L]:-k[L],B=t.elements.arrow,M=h&&B?Fe(B):{width:0,height:0},q=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:Ke(),z=q[T],U=q[I],H=Ye(0,k[L],M[L]),V=v?k[L]/2-P-H-z-O.mainAxis:D-H-z-O.mainAxis,W=v?-k[L]/2+P+H+U+O.mainAxis:F+H+U+O.mainAxis,G=t.elements.arrow&&We(t.elements.arrow),Y=G?"y"===_?G.clientTop||0:G.clientLeft||0:0,Q=null!=(C=null==E?void 0:E[_])?C:0,K=R+W-Q,J=Ye(h?Re(j,R+V-Q-Y):j,R,h?Le(N,K):N);x[_]=J,$[_]=J-R}if(a){var Z,X="x"===_?le:pe,ee="x"===_?ce:de,te=x[w],ie="y"===w?"height":"width",ne=te+m[X],se=te-m[ee],re=-1!==[le,pe].indexOf(b),oe=null!=(Z=null==E?void 0:E[w])?Z:0,ae=re?ne:te-k[ie]-A[ie]-oe+O.altAxis,ue=re?te+k[ie]+A[ie]-oe-O.altAxis:se,he=h&&re?Qe(ae,te,ue):Ye(h?ae:ne,te,h?ue:se);x[w]=he,$[w]=he-te}t.modifiersData[n]=$}}function Ft(e){return{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}}function Bt(e){return e!==Ae(e)&&Oe(e)?Ft(e):ht(e)}function Mt(e){var t=e.getBoundingClientRect(),i=je(t.width)/e.offsetWidth||1,n=je(t.height)/e.offsetHeight||1;return 1!==i||1!==n}function qt(e,t,i){void 0===i&&(i=!1);var n=Oe(t),s=Oe(t)&&Mt(t),r=ze(t),o=De(e,s,i),a={scrollLeft:0,scrollTop:0},l={x:0,y:0};return(n||!n&&!i)&&(("body"!==ke(t)||bt(r))&&(a=Bt(t)),Oe(t)?((l=De(t,!0)).x+=t.clientLeft,l.y+=t.clientTop):r&&(l.x=gt(r))),{x:o.left+a.scrollLeft-l.x,y:o.top+a.scrollTop-l.y,width:o.width,height:o.height}}function zt(e){var t=new Map,i=new Set,n=[];function s(e){i.add(e.name),[].concat(e.requires||[],e.requiresIfExists||[]).forEach(function(e){if(!i.has(e)){var n=t.get(e);n&&s(n)}}),n.push(e)}return e.forEach(function(e){t.set(e.name,e)}),e.forEach(function(e){i.has(e.name)||s(e)}),n}function Ut(e){var t=zt(e);return xe.reduce(function(e,i){return e.concat(t.filter(function(e){return e.phase===i}))},[])}function Ht(e){var t;return function(){return t||(t=new Promise(function(i){Promise.resolve().then(function(){t=void 0,i(e())})})),t}}function Vt(e){var t=e.reduce(function(e,t){var i=e[t.name];return e[t.name]=i?Object.assign({},i,t,{options:Object.assign({},i.options,t.options),data:Object.assign({},i.data,t.data)}):t,e},{});return Object.keys(t).map(function(e){return t[e]})}var Wt={placement:"bottom",modifiers:[],strategy:"absolute"};function Gt(){for(var e=arguments.length,t=new Array(e),i=0;i<e;i++)t[i]=arguments[i];return!t.some(function(e){return!(e&&"function"==typeof e.getBoundingClientRect)})}function Yt(e){void 0===e&&(e={});var t=e,i=t.defaultModifiers,n=void 0===i?[]:i,s=t.defaultOptions,r=void 0===s?Wt:s;return function(e,t,i){void 0===i&&(i=r);var s={placement:"bottom",orderedModifiers:[],options:Object.assign({},Wt,r),modifiersData:{},elements:{reference:e,popper:t},attributes:{},styles:{}},o=[],a=!1,l={state:s,setOptions:function(i){var o="function"==typeof i?i(s.options):i;d(),s.options=Object.assign({},r,s.options,o),s.scrollParents={reference:Se(e)?vt(e):e.contextElement?vt(e.contextElement):[],popper:vt(t)};var a=Ut(Vt([].concat(n,s.options.modifiers)));return s.orderedModifiers=a.filter(function(e){return e.enabled}),c(),l.update()},forceUpdate:function(){if(!a){var e=s.elements,t=e.reference,i=e.popper;if(Gt(t,i)){s.rects={reference:qt(t,We(i),"fixed"===s.options.strategy),popper:Fe(i)},s.reset=!1,s.placement=s.options.placement,s.orderedModifiers.forEach(function(e){return s.modifiersData[e.name]=Object.assign({},e.data)});for(var n=0;n<s.orderedModifiers.length;n++)if(!0!==s.reset){var r=s.orderedModifiers[n],o=r.fn,c=r.options,d=void 0===c?{}:c,p=r.name;"function"==typeof o&&(s=o({state:s,options:d,name:p,instance:l})||s)}else s.reset=!1,n=-1}}},update:Ht(function(){return new Promise(function(e){l.forceUpdate(),e(s)})}),destroy:function(){d(),a=!0}};if(!Gt(e,t))return l;function c(){s.orderedModifiers.forEach(function(e){var t=e.name,i=e.options,n=void 0===i?{}:i,r=e.effect;if("function"==typeof r){var a=r({state:s,name:t,instance:l,options:n}),c=function(){};o.push(a||c)}})}function d(){o.forEach(function(e){return e()}),o=[]}return l.setOptions(i).then(function(e){!a&&i.onFirstUpdate&&i.onFirstUpdate(e)}),l}}var Qt=Yt({defaultModifiers:[{name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:lt,data:{}},{name:"popperOffsets",enabled:!0,phase:"read",fn:Nt,data:{}},{name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:ot,data:{}},Te,{name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:jt},{name:"flip",enabled:!0,phase:"main",fn:Ct,requiresIfExists:["offset"],data:{_skip:!1}},{name:"preventOverflow",enabled:!0,phase:"main",fn:Dt,requiresIfExists:["offset"]},{name:"arrow",enabled:!0,phase:"main",fn:et,effect:tt,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]},{name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:Lt}]}),Kt="tippy-box",Jt="tippy-content",Zt="tippy-backdrop",Xt="tippy-arrow",ei="tippy-svg-arrow",ti={passive:!0,capture:!0},ii=function(){return document.body};function ni(e,t,i){if(Array.isArray(e)){var n=e[t];return n??(Array.isArray(i)?i[t]:i)}return e}function si(e,t){var i={}.toString.call(e);return 0===i.indexOf("[object")&&i.indexOf(t+"]")>-1}function ri(e,t){return"function"==typeof e?e.apply(void 0,t):e}function oi(e,t){return 0===t?e:function(n){clearTimeout(i),i=setTimeout(function(){e(n)},t)};var i}function ai(e){return e.split(/\s+/).filter(Boolean)}function li(e){return[].concat(e)}function ci(e,t){-1===e.indexOf(t)&&e.push(t)}function di(e){return e.filter(function(t,i){return e.indexOf(t)===i})}function pi(e){return e.split("-")[0]}function ui(e){return[].slice.call(e)}function hi(e){return Object.keys(e).reduce(function(t,i){return void 0!==e[i]&&(t[i]=e[i]),t},{})}function gi(){return document.createElement("div")}function fi(e){return["Element","Fragment"].some(function(t){return si(e,t)})}function mi(e){return si(e,"NodeList")}function bi(e){return si(e,"MouseEvent")}function yi(e){return!(!e||!e._tippy||e._tippy.reference!==e)}function vi(e){return fi(e)?[e]:mi(e)?ui(e):Array.isArray(e)?e:ui(document.querySelectorAll(e))}function _i(e,t){e.forEach(function(e){e&&(e.style.transitionDuration=t+"ms")})}function wi(e,t){e.forEach(function(e){e&&e.setAttribute("data-state",t)})}function xi(e){var t,i=li(e)[0];return null!=i&&null!=(t=i.ownerDocument)&&t.body?i.ownerDocument:document}function ki(e,t){var i=t.clientX,n=t.clientY;return e.every(function(e){var t=e.popperRect,s=e.popperState,r=e.props.interactiveBorder,o=pi(s.placement),a=s.modifiersData.offset;if(!a)return!0;var l="bottom"===o?a.top.y:0,c="top"===o?a.bottom.y:0,d="right"===o?a.left.x:0,p="left"===o?a.right.x:0,u=t.top-n+l>r,h=n-t.bottom-c>r,g=t.left-i+d>r,f=i-t.right-p>r;return u||h||g||f})}function Ai(e,t,i){var n=t+"EventListener";["transitionend","webkitTransitionEnd"].forEach(function(t){e[n](t,i)})}function Si(e,t){for(var i=t;i;){var n;if(e.contains(i))return!0;i=null==i.getRootNode||null==(n=i.getRootNode())?void 0:n.host}return!1}var Oi={isTouch:!1},Ei=0;function $i(){Oi.isTouch||(Oi.isTouch=!0,window.performance&&document.addEventListener("mousemove",Ci))}function Ci(){var e=performance.now();e-Ei<20&&(Oi.isTouch=!1,document.removeEventListener("mousemove",Ci)),Ei=e}function Ti(){var e=document.activeElement;if(yi(e)){var t=e._tippy;e.blur&&!t.state.isVisible&&e.blur()}}function Ii(){document.addEventListener("touchstart",$i,ti),window.addEventListener("blur",Ti)}var Li=!!("undefined"!=typeof window&&"undefined"!=typeof document)&&!!window.msCrypto,Ri={animateFill:!1,followCursor:!1,inlinePositioning:!1,sticky:!1},ji={allowHTML:!1,animation:"fade",arrow:!0,content:"",inertia:!1,maxWidth:350,role:"tooltip",theme:"",zIndex:9999},Ni=Object.assign({appendTo:ii,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},Ri,ji),Pi=Object.keys(Ni),Di=function(e){Object.keys(e).forEach(function(t){Ni[t]=e[t]})};function Fi(e){var t=(e.plugins||[]).reduce(function(t,i){var n,s=i.name,r=i.defaultValue;s&&(t[s]=void 0!==e[s]?e[s]:null!=(n=Ni[s])?n:r);return t},{});return Object.assign({},e,t)}function Bi(e,t){var i=(t?Object.keys(Fi(Object.assign({},Ni,{plugins:t}))):Pi).reduce(function(t,i){var n=(e.getAttribute("data-tippy-"+i)||"").trim();if(!n)return t;if("content"===i)t[i]=n;else try{t[i]=JSON.parse(n)}catch(e){t[i]=n}return t},{});return i}function Mi(e,t){var i=Object.assign({},t,{content:ri(t.content,[e])},t.ignoreAttributes?{}:Bi(e,t.plugins));return i.aria=Object.assign({},Ni.aria,i.aria),i.aria={expanded:"auto"===i.aria.expanded?t.interactive:i.aria.expanded,content:"auto"===i.aria.content?t.interactive?null:"describedby":i.aria.content},i}var qi=function(){return"innerHTML"};function zi(e,t){e[qi()]=t}function Ui(e){var t=gi();return!0===e?t.className=Xt:(t.className=ei,fi(e)?t.appendChild(e):zi(t,e)),t}function Hi(e,t){fi(t.content)?(zi(e,""),e.appendChild(t.content)):"function"!=typeof t.content&&(t.allowHTML?zi(e,t.content):e.textContent=t.content)}function Vi(e){var t=e.firstElementChild,i=ui(t.children);return{box:t,content:i.find(function(e){return e.classList.contains(Jt)}),arrow:i.find(function(e){return e.classList.contains(Xt)||e.classList.contains(ei)}),backdrop:i.find(function(e){return e.classList.contains(Zt)})}}function Wi(e){var t=gi(),i=gi();i.className=Kt,i.setAttribute("data-state","hidden"),i.setAttribute("tabindex","-1");var n=gi();function s(i,n){var s=Vi(t),r=s.box,o=s.content,a=s.arrow;n.theme?r.setAttribute("data-theme",n.theme):r.removeAttribute("data-theme"),"string"==typeof n.animation?r.setAttribute("data-animation",n.animation):r.removeAttribute("data-animation"),n.inertia?r.setAttribute("data-inertia",""):r.removeAttribute("data-inertia"),r.style.maxWidth="number"==typeof n.maxWidth?n.maxWidth+"px":n.maxWidth,n.role?r.setAttribute("role",n.role):r.removeAttribute("role"),i.content===n.content&&i.allowHTML===n.allowHTML||Hi(o,e.props),n.arrow?a?i.arrow!==n.arrow&&(r.removeChild(a),r.appendChild(Ui(n.arrow))):r.appendChild(Ui(n.arrow)):a&&r.removeChild(a)}return n.className=Jt,n.setAttribute("data-state","hidden"),Hi(n,e.props),t.appendChild(i),i.appendChild(n),s(e.props,e.props),{popper:t,onUpdate:s}}Wi.$$tippy=!0;var Gi=1,Yi=[],Qi=[];function Ki(e,t){var i,n,s,r,o,a,l,c=Mi(e,Object.assign({},Ni,Fi(hi(t)))),d=!1,p=!1,u=!1,h=!1,g=[],f=oi(K,c.interactiveDebounce),m=Gi++,b=null,y=di(c.plugins),v={isEnabled:!0,isVisible:!1,isDestroyed:!1,isMounted:!1,isShown:!1},_={id:m,reference:e,popper:gi(),popperInstance:b,props:c,state:v,plugins:y,clearDelayTimeouts:le,setProps:ce,setContent:de,show:pe,hide:ue,hideWithInteractivity:he,enable:oe,disable:ae,unmount:ge,destroy:fe};if(!c.render)return _;var w=c.render(_),x=w.popper,k=w.onUpdate;x.setAttribute("data-tippy-root",""),x.id="tippy-"+_.id,_.popper=x,e._tippy=_,x._tippy=_;var A=y.map(function(e){return e.fn(_)}),S=e.hasAttribute("aria-expanded");return G(),P(),R(),j("onCreate",[_]),c.showOnCreate&&se(),x.addEventListener("mouseenter",function(){_.props.interactive&&_.state.isVisible&&_.clearDelayTimeouts()}),x.addEventListener("mouseleave",function(){_.props.interactive&&_.props.trigger.indexOf("mouseenter")>=0&&T().addEventListener("mousemove",f)}),_;function O(){var e=_.props.touch;return Array.isArray(e)?e:[e,0]}function E(){return"hold"===O()[0]}function $(){var e;return!(null==(e=_.props.render)||!e.$$tippy)}function C(){return l||e}function T(){var e=C().parentNode;return e?xi(e):document}function I(){return Vi(x)}function L(e){return _.state.isMounted&&!_.state.isVisible||Oi.isTouch||r&&"focus"===r.type?0:ni(_.props.delay,e?0:1,Ni.delay)}function R(e){void 0===e&&(e=!1),x.style.pointerEvents=_.props.interactive&&!e?"":"none",x.style.zIndex=""+_.props.zIndex}function j(e,t,i){var n;(void 0===i&&(i=!0),A.forEach(function(i){i[e]&&i[e].apply(i,t)}),i)&&(n=_.props)[e].apply(n,t)}function N(){var t=_.props.aria;if(t.content){var i="aria-"+t.content,n=x.id;li(_.props.triggerTarget||e).forEach(function(e){var t=e.getAttribute(i);if(_.state.isVisible)e.setAttribute(i,t?t+" "+n:n);else{var s=t&&t.replace(n,"").trim();s?e.setAttribute(i,s):e.removeAttribute(i)}})}}function P(){!S&&_.props.aria.expanded&&li(_.props.triggerTarget||e).forEach(function(e){_.props.interactive?e.setAttribute("aria-expanded",_.state.isVisible&&e===C()?"true":"false"):e.removeAttribute("aria-expanded")})}function D(){T().removeEventListener("mousemove",f),Yi=Yi.filter(function(e){return e!==f})}function F(t){if(!Oi.isTouch||!u&&"mousedown"!==t.type){var i=t.composedPath&&t.composedPath()[0]||t.target;if(!_.props.interactive||!Si(x,i)){if(li(_.props.triggerTarget||e).some(function(e){return Si(e,i)})){if(Oi.isTouch)return;if(_.state.isVisible&&_.props.trigger.indexOf("click")>=0)return}else j("onClickOutside",[_,t]);!0===_.props.hideOnClick&&(_.clearDelayTimeouts(),_.hide(),p=!0,setTimeout(function(){p=!1}),_.state.isMounted||z())}}}function B(){u=!0}function M(){u=!1}function q(){var e=T();e.addEventListener("mousedown",F,!0),e.addEventListener("touchend",F,ti),e.addEventListener("touchstart",M,ti),e.addEventListener("touchmove",B,ti)}function z(){var e=T();e.removeEventListener("mousedown",F,!0),e.removeEventListener("touchend",F,ti),e.removeEventListener("touchstart",M,ti),e.removeEventListener("touchmove",B,ti)}function U(e,t){V(e,function(){!_.state.isVisible&&x.parentNode&&x.parentNode.contains(x)&&t()})}function H(e,t){V(e,t)}function V(e,t){var i=I().box;function n(e){e.target===i&&(Ai(i,"remove",n),t())}if(0===e)return t();Ai(i,"remove",o),Ai(i,"add",n),o=n}function W(t,i,n){void 0===n&&(n=!1),li(_.props.triggerTarget||e).forEach(function(e){e.addEventListener(t,i,n),g.push({node:e,eventType:t,handler:i,options:n})})}function G(){E()&&(W("touchstart",Q,{passive:!0}),W("touchend",J,{passive:!0})),ai(_.props.trigger).forEach(function(e){if("manual"!==e)switch(W(e,Q),e){case"mouseenter":W("mouseleave",J);break;case"focus":W(Li?"focusout":"blur",Z);break;case"focusin":W("focusout",Z)}})}function Y(){g.forEach(function(e){var t=e.node,i=e.eventType,n=e.handler,s=e.options;t.removeEventListener(i,n,s)}),g=[]}function Q(e){var t,i=!1;if(_.state.isEnabled&&!X(e)&&!p){var n="focus"===(null==(t=r)?void 0:t.type);r=e,l=e.currentTarget,P(),!_.state.isVisible&&bi(e)&&Yi.forEach(function(t){return t(e)}),"click"===e.type&&(_.props.trigger.indexOf("mouseenter")<0||d)&&!1!==_.props.hideOnClick&&_.state.isVisible?i=!0:se(e),"click"===e.type&&(d=!i),i&&!n&&re(e)}}function K(e){var t=e.target,i=C().contains(t)||x.contains(t);if("mousemove"!==e.type||!i){var n=ne().concat(x).map(function(e){var t,i=null==(t=e._tippy.popperInstance)?void 0:t.state;return i?{popperRect:e.getBoundingClientRect(),popperState:i,props:c}:null}).filter(Boolean);ki(n,e)&&(D(),re(e))}}function J(e){X(e)||_.props.trigger.indexOf("click")>=0&&d||(_.props.interactive?_.hideWithInteractivity(e):re(e))}function Z(e){_.props.trigger.indexOf("focusin")<0&&e.target!==C()||_.props.interactive&&e.relatedTarget&&x.contains(e.relatedTarget)||re(e)}function X(e){return!!Oi.isTouch&&E()!==e.type.indexOf("touch")>=0}function ee(){te();var t=_.props,i=t.popperOptions,n=t.placement,s=t.offset,r=t.getReferenceClientRect,o=t.moveTransition,l=$()?Vi(x).arrow:null,c=r?{getBoundingClientRect:r,contextElement:r.contextElement||C()}:e,d={name:"$$tippy",enabled:!0,phase:"beforeWrite",requires:["computeStyles"],fn:function(e){var t=e.state;if($()){var i=I().box;["placement","reference-hidden","escaped"].forEach(function(e){"placement"===e?i.setAttribute("data-placement",t.placement):t.attributes.popper["data-popper-"+e]?i.setAttribute("data-"+e,""):i.removeAttribute("data-"+e)}),t.attributes.popper={}}}},p=[{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:!o}},d];$()&&l&&p.push({name:"arrow",options:{element:l,padding:3}}),p.push.apply(p,(null==i?void 0:i.modifiers)||[]),_.popperInstance=Qt(c,x,Object.assign({},i,{placement:n,onFirstUpdate:a,modifiers:p}))}function te(){_.popperInstance&&(_.popperInstance.destroy(),_.popperInstance=null)}function ie(){var e,t=_.props.appendTo,i=C();(e=_.props.interactive&&t===ii||"parent"===t?i.parentNode:ri(t,[i])).contains(x)||e.appendChild(x),_.state.isMounted=!0,ee()}function ne(){return ui(x.querySelectorAll("[data-tippy-root]"))}function se(e){_.clearDelayTimeouts(),e&&j("onTrigger",[_,e]),q();var t=L(!0),n=O(),s=n[0],r=n[1];Oi.isTouch&&"hold"===s&&r&&(t=r),t?i=setTimeout(function(){_.show()},t):_.show()}function re(e){if(_.clearDelayTimeouts(),j("onUntrigger",[_,e]),_.state.isVisible){if(!(_.props.trigger.indexOf("mouseenter")>=0&&_.props.trigger.indexOf("click")>=0&&["mouseleave","mousemove"].indexOf(e.type)>=0&&d)){var t=L(!1);t?n=setTimeout(function(){_.state.isVisible&&_.hide()},t):s=requestAnimationFrame(function(){_.hide()})}}else z()}function oe(){_.state.isEnabled=!0}function ae(){_.hide(),_.state.isEnabled=!1}function le(){clearTimeout(i),clearTimeout(n),cancelAnimationFrame(s)}function ce(t){if(!_.state.isDestroyed){j("onBeforeUpdate",[_,t]),Y();var i=_.props,n=Mi(e,Object.assign({},i,hi(t),{ignoreAttributes:!0}));_.props=n,G(),i.interactiveDebounce!==n.interactiveDebounce&&(D(),f=oi(K,n.interactiveDebounce)),i.triggerTarget&&!n.triggerTarget?li(i.triggerTarget).forEach(function(e){e.removeAttribute("aria-expanded")}):n.triggerTarget&&e.removeAttribute("aria-expanded"),P(),R(),k&&k(i,n),_.popperInstance&&(ee(),ne().forEach(function(e){requestAnimationFrame(e._tippy.popperInstance.forceUpdate)})),j("onAfterUpdate",[_,t])}}function de(e){_.setProps({content:e})}function pe(){var e=_.state.isVisible,t=_.state.isDestroyed,i=!_.state.isEnabled,n=Oi.isTouch&&!_.props.touch,s=ni(_.props.duration,0,Ni.duration);if(!(e||t||i||n||C().hasAttribute("disabled")||(j("onShow",[_],!1),!1===_.props.onShow(_)))){if(_.state.isVisible=!0,$()&&(x.style.visibility="visible"),R(),q(),_.state.isMounted||(x.style.transition="none"),$()){var r=I();_i([r.box,r.content],0)}a=function(){var e;if(_.state.isVisible&&!h){if(h=!0,x.offsetHeight,x.style.transition=_.props.moveTransition,$()&&_.props.animation){var t=I(),i=t.box,n=t.content;_i([i,n],s),wi([i,n],"visible")}N(),P(),ci(Qi,_),null==(e=_.popperInstance)||e.forceUpdate(),j("onMount",[_]),_.props.animation&&$()&&H(s,function(){_.state.isShown=!0,j("onShown",[_])})}},ie()}}function ue(){var e=!_.state.isVisible,t=_.state.isDestroyed,i=!_.state.isEnabled,n=ni(_.props.duration,1,Ni.duration);if(!(e||t||i)&&(j("onHide",[_],!1),!1!==_.props.onHide(_))){if(_.state.isVisible=!1,_.state.isShown=!1,h=!1,d=!1,$()&&(x.style.visibility="hidden"),D(),z(),R(!0),$()){var s=I(),r=s.box,o=s.content;_.props.animation&&(_i([r,o],n),wi([r,o],"hidden"))}N(),P(),_.props.animation?$()&&U(n,_.unmount):_.unmount()}}function he(e){T().addEventListener("mousemove",f),ci(Yi,f),f(e)}function ge(){_.state.isVisible&&_.hide(),_.state.isMounted&&(te(),ne().forEach(function(e){e._tippy.unmount()}),x.parentNode&&x.parentNode.removeChild(x),Qi=Qi.filter(function(e){return e!==_}),_.state.isMounted=!1,j("onHidden",[_]))}function fe(){_.state.isDestroyed||(_.clearDelayTimeouts(),_.unmount(),Y(),delete e._tippy,_.state.isDestroyed=!0,j("onDestroy",[_]))}}function Ji(e,t){void 0===t&&(t={});var i=Ni.plugins.concat(t.plugins||[]);Ii();var n=Object.assign({},t,{plugins:i}),s=vi(e).reduce(function(e,t){var i=t&&Ki(t,n);return i&&e.push(i),e},[]);return fi(e)?s[0]:s}function Zi(e){return e.replace(/(?:^\w|[A-Z]|\b\w)/g,(e,t)=>0===+e?"":0===t?e.toLowerCase():e.toUpperCase()).replace("-","")}Ji.defaultProps=Ni,Ji.setDefaultProps=Di,Ji.currentInput=Oi,Object.assign({},Te,{effect:function(e){var t=e.state,i={popper:{position:t.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};Object.assign(t.elements.popper.style,i.popper),t.styles=i,t.elements.arrow&&Object.assign(t.elements.arrow.style,i.arrow)}}),Ji.setDefaultProps({render:Wi});const Xi='\n .tippy-box[data-animation=fade][data-state=hidden] {\n opacity: 0\n }\n\n .tippy-iOS {\n cursor: pointer!important;\n -webkit-tap-highlight-color: transparent\n }\n\n [data-tippy-root] {\n max-width: calc(100vw - 10px)\n }\n\n .tippy-box {\n position: relative;\n background-color: #333;\n color: #fff;\n border-radius: 4px;\n font-size: clamp(\n calc(var(--pb-popover-font-size, 1rem) * var(--pb-min-zoom, 0.5)), \n calc(var(--pb-popover-font-size, 1rem) * var(--pb-zoom-factor)), \n calc(var(--pb-popover-font-size, 1rem) * var(--pb-max-zoom, 3.0))\n );\n line-height: calc(var(--pb-popover-line-height, 1.5) * var(--pb-zoom-factor));\n\n text-align: left;\n font-style: normal;\n font-weight: normal;\n outline: 0;\n transition-property: transform, visibility, opacity;\n }\n\n .tippy-box[data-placement^=top]>.tippy-arrow {\n bottom: 0\n }\n\n .tippy-box[data-placement^=top]>.tippy-arrow:before {\n bottom: -7px;\n left: 0;\n border-width: 8px 8px 0;\n border-top-color: initial;\n transform-origin: center top\n }\n\n .tippy-box[data-placement^=bottom]>.tippy-arrow {\n top: 0\n }\n\n .tippy-box[data-placement^=bottom]>.tippy-arrow:before {\n top: -7px;\n left: 0;\n border-width: 0 8px 8px;\n border-bottom-color: initial;\n transform-origin: center bottom\n }\n\n .tippy-box[data-placement^=left]>.tippy-arrow {\n right: 0\n }\n\n .tippy-box[data-placement^=left]>.tippy-arrow:before {\n border-width: 8px 0 8px 8px;\n border-left-color: initial;\n right: -7px;\n transform-origin: center left\n }\n\n .tippy-box[data-placement^=right]>.tippy-arrow {\n left: 0\n }\n\n .tippy-box[data-placement^=right]>.tippy-arrow:before {\n left: -7px;\n border-width: 8px 8px 8px 0;\n border-right-color: initial;\n transform-origin: center right\n }\n\n .tippy-box[data-inertia][data-state=visible] {\n transition-timing-function: cubic-bezier(.54, 1.5, .38, 1.11)\n }\n\n .tippy-arrow {\n width: 16px;\n height: 16px;\n color: #333\n }\n\n .tippy-arrow:before {\n content: "";\n position: absolute;\n border-color: transparent;\n border-style: solid\n }\n\n .tippy-content {\n position: relative;\n padding: 5px 9px;\n z-index: 1;\n overflow: auto;\n max-height: var(--pb-popover-max-height, calc(100vh - 60px));\n min-height: var(--pb-popover-min-height, auto);\n max-width: var(--pb-popover-max-width, auto);\n min-width: var(--pb-popover-min-width, auto);\n color: var(--pb-popover-color);\n }\n',en='\n .tippy-box[data-theme~=light-border] {\n background-color: #fff;\n background-clip: padding-box;\n border: 1px solid rgba(0, 8, 16, .15);\n color: #333;\n box-shadow: 0 4px 14px -2px rgba(0, 8, 16, .08)\n }\n\n .tippy-box[data-theme~=light-border]>.tippy-backdrop {\n background-color: #fff\n }\n\n .tippy-box[data-theme~=light-border]>.tippy-arrow:after, .tippy-box[data-theme~=light-border]>.tippy-svg-arrow:after {\n content: "";\n position: absolute;\n z-index: -1\n }\n\n .tippy-box[data-theme~=light-border]>.tippy-arrow:after {\n border-color: transparent;\n border-style: solid\n }\n\n .tippy-box[data-theme~=light-border][data-placement^=top]>.tippy-arrow:before {\n border-top-color: #fff\n }\n\n .tippy-box[data-theme~=light-border][data-placement^=top]>.tippy-arrow:after {\n border-top-color: rgba(0, 8, 16, .2);\n border-width: 7px 7px 0;\n top: 17px;\n left: 1px\n }\n\n .tippy-box[data-theme~=light-border][data-placement^=top]>.tippy-svg-arrow>svg {\n top: 16px\n }\n\n .tippy-box[data-theme~=light-border][data-placement^=top]>.tippy-svg-arrow:after {\n top: 17px\n }\n\n .tippy-box[data-theme~=light-border][data-placement^=bottom]>.tippy-arrow:before {\n border-bottom-color: #fff;\n bottom: 16px\n }\n\n .tippy-box[data-theme~=light-border][data-placement^=bottom]>.tippy-arrow:after {\n border-bottom-color: rgba(0, 8, 16, .2);\n border-width: 0 7px 7px;\n bottom: 17px;\n left: 1px\n }\n\n .tippy-box[data-theme~=light-border][data-placement^=bottom]>.tippy-svg-arrow>svg {\n bottom: 16px\n }\n\n .tippy-box[data-theme~=light-border][data-placement^=bottom]>.tippy-svg-arrow:after {\n bottom: 17px\n }\n\n .tippy-box[data-theme~=light-border][data-placement^=left]>.tippy-arrow:before {\n border-left-color: #fff\n }\n\n .tippy-box[data-theme~=light-border][data-placement^=left]>.tippy-arrow:after {\n border-left-color: rgba(0, 8, 16, .2);\n border-width: 7px 0 7px 7px;\n left: 17px;\n top: 1px\n }\n\n .tippy-box[data-theme~=light-border][data-placement^=left]>.tippy-svg-arrow>svg {\n left: 11px\n }\n\n .tippy-box[data-theme~=light-border][data-placement^=left]>.tippy-svg-arrow:after {\n left: 12px\n }\n\n .tippy-box[data-theme~=light-border][data-placement^=right]>.tippy-arrow:before {\n border-right-color: #fff;\n right: 16px\n }\n\n .tippy-box[data-theme~=light-border][data-placement^=right]>.tippy-arrow:after {\n border-width: 7px 7px 7px 0;\n right: 17px;\n top: 1px;\n border-right-color: rgba(0, 8, 16, .2)\n }\n\n .tippy-box[data-theme~=light-border][data-placement^=right]>.tippy-svg-arrow>svg {\n right: 11px\n }\n\n .tippy-box[data-theme~=light-border][data-placement^=right]>.tippy-svg-arrow:after {\n right: 12px\n }\n\n .tippy-box[data-theme~=light-border]>.tippy-svg-arrow {\n fill: #fff\n }\n\n .tippy-box[data-theme~=light-border]>.tippy-svg-arrow:after {\n background-image: url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTYiIGhlaWdodD0iNiIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj48cGF0aCBkPSJNMCA2czEuNzk2LS4wMTMgNC42Ny0zLjYxNUM1Ljg1MS45IDYuOTMuMDA2IDggMGMxLjA3LS4wMDYgMi4xNDguODg3IDMuMzQzIDIuMzg1QzE0LjIzMyA2LjAwNSAxNiA2IDE2IDZIMHoiIGZpbGw9InJnYmEoMCwgOCwgMTYsIDAuMikiLz48L3N2Zz4=);\n background-size: 16px 6px;\n width: 16px;\n height: 6px\n }\n',tn="\n .tippy-box[data-theme~=light] {\n color: #26323d;\n box-shadow: 0 0 20px 4px rgba(154, 161, 177, .15), 0 4px 80px -8px rgba(36, 40, 47, .25), 0 4px 4px -2px rgba(91, 94, 105, .15);\n background-color: #fff\n }\n\n .tippy-box[data-theme~=light][data-placement^=top]>.tippy-arrow:before {\n border-top-color: #fff\n }\n\n .tippy-box[data-theme~=light][data-placement^=bottom]>.tippy-arrow:before {\n border-bottom-color: #fff\n }\n\n .tippy-box[data-theme~=light][data-placement^=left]>.tippy-arrow:before {\n border-left-color: #fff\n }\n\n .tippy-box[data-theme~=light][data-placement^=right]>.tippy-arrow:before {\n border-right-color: #fff\n }\n\n .tippy-box[data-theme~=light]>.tippy-backdrop {\n background-color: #fff\n }\n\n .tippy-box[data-theme~=light]>.tippy-svg-arrow {\n fill: #fff\n }",nn="\n .tippy-box[data-theme~=material] {\n background-color: #505355;\n font-weight: 600\n }\n\n .tippy-box[data-theme~=material][data-placement^=top]>.tippy-arrow:before {\n border-top-color: #505355\n }\n\n .tippy-box[data-theme~=material][data-placement^=bottom]>.tippy-arrow:before {\n border-bottom-color: #505355\n }\n\n .tippy-box[data-theme~=material][data-placement^=left]>.tippy-arrow:before {\n border-left-color: #505355\n }\n\n .tippy-box[data-theme~=material][data-placement^=right]>.tippy-arrow:before {\n border-right-color: #505355\n }\n\n .tippy-box[data-theme~=material]>.tippy-backdrop {\n background-color: #505355\n }\n\n .tippy-box[data-theme~=material]>.tippy-svg-arrow {\n fill: #505355\n }\n",sn="\n .tippy-box[data-theme~=translucent] {\n background-color: rgba(0, 0, 0, .7)\n }\n\n .tippy-box[data-theme~=translucent]>.tippy-arrow {\n width: 14px;\n height: 14px\n }\n\n .tippy-box[data-theme~=translucent][data-placement^=top]>.tippy-arrow:before {\n border-width: 7px 7px 0;\n border-top-color: rgba(0, 0, 0, .7)\n }\n\n .tippy-box[data-theme~=translucent][data-placement^=bottom]>.tippy-arrow:before {\n border-width: 0 7px 7px;\n border-bottom-color: rgba(0, 0, 0, .7)\n }\n\n .tippy-box[data-theme~=translucent][data-placement^=left]>.tippy-arrow:before {\n border-width: 7px 0 7px 7px;\n border-left-color: rgba(0, 0, 0, .7)\n }\n\n .tippy-box[data-theme~=translucent][data-placement^=right]>.tippy-arrow:before {\n border-width: 7px 7px 7px 0;\n border-right-color: rgba(0, 0, 0, .7)\n }\n\n .tippy-box[data-theme~=translucent]>.tippy-backdrop {\n background-color: rgba(0, 0, 0, .7)\n }\n\n .tippy-box[data-theme~=translucent]>.tippy-svg-arrow {\n fill: rgba(0, 0, 0, .7)\n }\n";var rn=Object.freeze({__proto__:null,base:Xi,camelize:Zi,light:tn,lightBorder:en,material:nn,translucent:sn});function on(e,t,i){if(!e.querySelector(`#pb-popover-${t}`)){const n=e.nodeType===Node.DOCUMENT_NODE?document.head:e;g.log("Loading tippy styles for theme %s into %o",t,n);const s=document.createElement("style");s.type="text/css",s.id=`pb-popover-${t}`,s.innerHTML=i,n.appendChild(s)}}function an(e,t){if(on(e,"base",Xi),t&&"none"!==t){const i=Zi(t),n=rn[i];n&&on(e,i,n)}}class ln extends(s(n)){static get properties(){return Object.assign(Object.assign({},super.properties),{},{for:{type:String},theme:{type:String},placement:{type:String},fallbackPlacement:{type:String,attribute:"fallback-placement"},persistent:{type:Boolean},trigger:{type:String},touch:{type:String},popupClass:{type:String,attribute:"popup-class"},remote:{type:String},stopPropagation:{type:Boolean,attribute:"stop-propagation"}})}constructor(){super(),this.persistent=!1,this.trigger=null,this.for=null,this.theme=null,this.placement=null,this.touch=null,this.fallbackPlacement=null,this.popupClass=null,this.stopPropagation=!1,this._tippy=null,this._content=null}render(){return this.for?e`<div class="hidden"><slot></slot></div>`:e`<span id="link" part="trigger" class="${this.persistent?"persistent":""}"
|
|
133
|
+
`}customElements.define("pb-demo-snippet",re);const oe="3.0.0-next-4.20";class ae extends n{static get properties(){return Object.assign({version:{type:String,reflect:!0}},super.properties)}constructor(){super(),this.version=oe}render(){return e`<span>${this.version?this.version:"unknown"}</span>`}createRenderRoot(){return this}}customElements.define("pb-version",ae);var le="top",ce="bottom",de="right",pe="left",ue="auto",he=[le,ce,de,pe],ge="start",fe="end",me="clippingParents",be="viewport",ye="popper",ve="reference",_e=he.reduce(function(e,t){return e.concat([t+"-"+ge,t+"-"+fe])},[]),we=[].concat(he,[ue]).reduce(function(e,t){return e.concat([t,t+"-"+ge,t+"-"+fe])},[]),xe=["beforeRead","read","afterRead","beforeMain","main","afterMain","beforeWrite","write","afterWrite"];function ke(e){return e?(e.nodeName||"").toLowerCase():null}function Ae(e){if(null==e)return window;if("[object Window]"!==e.toString()){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function Se(e){return e instanceof Ae(e).Element||e instanceof Element}function Oe(e){return e instanceof Ae(e).HTMLElement||e instanceof HTMLElement}function Ee(e){return"undefined"!=typeof ShadowRoot&&(e instanceof Ae(e).ShadowRoot||e instanceof ShadowRoot)}function $e(e){var t=e.state;Object.keys(t.elements).forEach(function(e){var i=t.styles[e]||{},n=t.attributes[e]||{},s=t.elements[e];Oe(s)&&ke(s)&&(Object.assign(s.style,i),Object.keys(n).forEach(function(e){var t=n[e];!1===t?s.removeAttribute(e):s.setAttribute(e,!0===t?"":t)}))})}function Ce(e){var t=e.state,i={popper:{position:t.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(t.elements.popper.style,i.popper),t.styles=i,t.elements.arrow&&Object.assign(t.elements.arrow.style,i.arrow),function(){Object.keys(t.elements).forEach(function(e){var n=t.elements[e],s=t.attributes[e]||{},r=Object.keys(t.styles.hasOwnProperty(e)?t.styles[e]:i[e]).reduce(function(e,t){return e[t]="",e},{});Oe(n)&&ke(n)&&(Object.assign(n.style,r),Object.keys(s).forEach(function(e){n.removeAttribute(e)}))})}}var Te={name:"applyStyles",enabled:!0,phase:"write",fn:$e,effect:Ce,requires:["computeStyles"]};function Ie(e){return e.split("-")[0]}var Le=Math.max,Re=Math.min,je=Math.round;function Ne(){var e=navigator.userAgentData;return null!=e&&e.brands&&Array.isArray(e.brands)?e.brands.map(function(e){return e.brand+"/"+e.version}).join(" "):navigator.userAgent}function Pe(){return!/^((?!chrome|android).)*safari/i.test(Ne())}function De(e,t,i){void 0===t&&(t=!1),void 0===i&&(i=!1);var n=e.getBoundingClientRect(),s=1,r=1;t&&Oe(e)&&(s=e.offsetWidth>0&&je(n.width)/e.offsetWidth||1,r=e.offsetHeight>0&&je(n.height)/e.offsetHeight||1);var o=(Se(e)?Ae(e):window).visualViewport,a=!Pe()&&i,l=(n.left+(a&&o?o.offsetLeft:0))/s,c=(n.top+(a&&o?o.offsetTop:0))/r,d=n.width/s,p=n.height/r;return{width:d,height:p,top:c,right:l+d,bottom:c+p,left:l,x:l,y:c}}function Fe(e){var t=De(e),i=e.offsetWidth,n=e.offsetHeight;return Math.abs(t.width-i)<=1&&(i=t.width),Math.abs(t.height-n)<=1&&(n=t.height),{x:e.offsetLeft,y:e.offsetTop,width:i,height:n}}function Be(e,t){var i=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(i&&Ee(i)){var n=t;do{if(n&&e.isSameNode(n))return!0;n=n.parentNode||n.host}while(n)}return!1}function Me(e){return Ae(e).getComputedStyle(e)}function qe(e){return["table","td","th"].indexOf(ke(e))>=0}function ze(e){return((Se(e)?e.ownerDocument:e.document)||window.document).documentElement}function Ue(e){return"html"===ke(e)?e:e.assignedSlot||e.parentNode||(Ee(e)?e.host:null)||ze(e)}function He(e){return Oe(e)&&"fixed"!==Me(e).position?e.offsetParent:null}function Ve(e){var t=/firefox/i.test(Ne());if(/Trident/i.test(Ne())&&Oe(e)&&"fixed"===Me(e).position)return null;var i=Ue(e);for(Ee(i)&&(i=i.host);Oe(i)&&["html","body"].indexOf(ke(i))<0;){var n=Me(i);if("none"!==n.transform||"none"!==n.perspective||"paint"===n.contain||-1!==["transform","perspective"].indexOf(n.willChange)||t&&"filter"===n.willChange||t&&n.filter&&"none"!==n.filter)return i;i=i.parentNode}return null}function We(e){for(var t=Ae(e),i=He(e);i&&qe(i)&&"static"===Me(i).position;)i=He(i);return i&&("html"===ke(i)||"body"===ke(i)&&"static"===Me(i).position)?t:i||Ve(e)||t}function Ge(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function Ye(e,t,i){return Le(e,Re(t,i))}function Qe(e,t,i){var n=Ye(e,t,i);return n>i?i:n}function Ke(){return{top:0,right:0,bottom:0,left:0}}function Je(e){return Object.assign({},Ke(),e)}function Ze(e,t){return t.reduce(function(t,i){return t[i]=e,t},{})}var Xe=function(e,t){return Je("number"!=typeof(e="function"==typeof e?e(Object.assign({},t.rects,{placement:t.placement})):e)?e:Ze(e,he))};function et(e){var t,i=e.state,n=e.name,s=e.options,r=i.elements.arrow,o=i.modifiersData.popperOffsets,a=Ie(i.placement),l=Ge(a),c=[pe,de].indexOf(a)>=0?"height":"width";if(r&&o){var d=Xe(s.padding,i),p=Fe(r),u="y"===l?le:pe,h="y"===l?ce:de,g=i.rects.reference[c]+i.rects.reference[l]-o[l]-i.rects.popper[c],f=o[l]-i.rects.reference[l],m=We(r),b=m?"y"===l?m.clientHeight||0:m.clientWidth||0:0,y=g/2-f/2,v=d[u],_=b-p[c]-d[h],w=b/2-p[c]/2+y,x=Ye(v,w,_),k=l;i.modifiersData[n]=((t={})[k]=x,t.centerOffset=x-w,t)}}function tt(e){var t=e.state,i=e.options.element,n=void 0===i?"[data-popper-arrow]":i;null!=n&&("string"!=typeof n||(n=t.elements.popper.querySelector(n)))&&Be(t.elements.popper,n)&&(t.elements.arrow=n)}function it(e){return e.split("-")[1]}var nt={top:"auto",right:"auto",bottom:"auto",left:"auto"};function st(e,t){var i=e.x,n=e.y,s=t.devicePixelRatio||1;return{x:je(i*s)/s||0,y:je(n*s)/s||0}}function rt(e){var t,i=e.popper,n=e.popperRect,s=e.placement,r=e.variation,o=e.offsets,a=e.position,l=e.gpuAcceleration,c=e.adaptive,d=e.roundOffsets,p=e.isFixed,u=o.x,h=void 0===u?0:u,g=o.y,f=void 0===g?0:g,m="function"==typeof d?d({x:h,y:f}):{x:h,y:f};h=m.x,f=m.y;var b=o.hasOwnProperty("x"),y=o.hasOwnProperty("y"),v=pe,_=le,w=window;if(c){var x=We(i),k="clientHeight",A="clientWidth";if(x===Ae(i)&&"static"!==Me(x=ze(i)).position&&"absolute"===a&&(k="scrollHeight",A="scrollWidth"),s===le||(s===pe||s===de)&&r===fe)_=ce,f-=(p&&x===w&&w.visualViewport?w.visualViewport.height:x[k])-n.height,f*=l?1:-1;if(s===pe||(s===le||s===ce)&&r===fe)v=de,h-=(p&&x===w&&w.visualViewport?w.visualViewport.width:x[A])-n.width,h*=l?1:-1}var S,O=Object.assign({position:a},c&&nt),E=!0===d?st({x:h,y:f},Ae(i)):{x:h,y:f};return h=E.x,f=E.y,l?Object.assign({},O,((S={})[_]=y?"0":"",S[v]=b?"0":"",S.transform=(w.devicePixelRatio||1)<=1?"translate("+h+"px, "+f+"px)":"translate3d("+h+"px, "+f+"px, 0)",S)):Object.assign({},O,((t={})[_]=y?f+"px":"",t[v]=b?h+"px":"",t.transform="",t))}function ot(e){var t=e.state,i=e.options,n=i.gpuAcceleration,s=void 0===n||n,r=i.adaptive,o=void 0===r||r,a=i.roundOffsets,l=void 0===a||a,c={placement:Ie(t.placement),variation:it(t.placement),popper:t.elements.popper,popperRect:t.rects.popper,gpuAcceleration:s,isFixed:"fixed"===t.options.strategy};null!=t.modifiersData.popperOffsets&&(t.styles.popper=Object.assign({},t.styles.popper,rt(Object.assign({},c,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:o,roundOffsets:l})))),null!=t.modifiersData.arrow&&(t.styles.arrow=Object.assign({},t.styles.arrow,rt(Object.assign({},c,{offsets:t.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:l})))),t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-placement":t.placement})}var at={passive:!0};function lt(e){var t=e.state,i=e.instance,n=e.options,s=n.scroll,r=void 0===s||s,o=n.resize,a=void 0===o||o,l=Ae(t.elements.popper),c=[].concat(t.scrollParents.reference,t.scrollParents.popper);return r&&c.forEach(function(e){e.addEventListener("scroll",i.update,at)}),a&&l.addEventListener("resize",i.update,at),function(){r&&c.forEach(function(e){e.removeEventListener("scroll",i.update,at)}),a&&l.removeEventListener("resize",i.update,at)}}var ct={left:"right",right:"left",bottom:"top",top:"bottom"};function dt(e){return e.replace(/left|right|bottom|top/g,function(e){return ct[e]})}var pt={start:"end",end:"start"};function ut(e){return e.replace(/start|end/g,function(e){return pt[e]})}function ht(e){var t=Ae(e);return{scrollLeft:t.pageXOffset,scrollTop:t.pageYOffset}}function gt(e){return De(ze(e)).left+ht(e).scrollLeft}function ft(e,t){var i=Ae(e),n=ze(e),s=i.visualViewport,r=n.clientWidth,o=n.clientHeight,a=0,l=0;if(s){r=s.width,o=s.height;var c=Pe();(c||!c&&"fixed"===t)&&(a=s.offsetLeft,l=s.offsetTop)}return{width:r,height:o,x:a+gt(e),y:l}}function mt(e){var t,i=ze(e),n=ht(e),s=null==(t=e.ownerDocument)?void 0:t.body,r=Le(i.scrollWidth,i.clientWidth,s?s.scrollWidth:0,s?s.clientWidth:0),o=Le(i.scrollHeight,i.clientHeight,s?s.scrollHeight:0,s?s.clientHeight:0),a=-n.scrollLeft+gt(e),l=-n.scrollTop;return"rtl"===Me(s||i).direction&&(a+=Le(i.clientWidth,s?s.clientWidth:0)-r),{width:r,height:o,x:a,y:l}}function bt(e){var t=Me(e),i=t.overflow,n=t.overflowX,s=t.overflowY;return/auto|scroll|overlay|hidden/.test(i+s+n)}function yt(e){return["html","body","#document"].indexOf(ke(e))>=0?e.ownerDocument.body:Oe(e)&&bt(e)?e:yt(Ue(e))}function vt(e,t){var i;void 0===t&&(t=[]);var n=yt(e),s=n===(null==(i=e.ownerDocument)?void 0:i.body),r=Ae(n),o=s?[r].concat(r.visualViewport||[],bt(n)?n:[]):n,a=t.concat(o);return s?a:a.concat(vt(Ue(o)))}function _t(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function wt(e,t){var i=De(e,!1,"fixed"===t);return i.top=i.top+e.clientTop,i.left=i.left+e.clientLeft,i.bottom=i.top+e.clientHeight,i.right=i.left+e.clientWidth,i.width=e.clientWidth,i.height=e.clientHeight,i.x=i.left,i.y=i.top,i}function xt(e,t,i){return t===be?_t(ft(e,i)):Se(t)?wt(t,i):_t(mt(ze(e)))}function kt(e){var t=vt(Ue(e)),i=["absolute","fixed"].indexOf(Me(e).position)>=0&&Oe(e)?We(e):e;return Se(i)?t.filter(function(e){return Se(e)&&Be(e,i)&&"body"!==ke(e)}):[]}function At(e,t,i,n){var s="clippingParents"===t?kt(e):[].concat(t),r=[].concat(s,[i]),o=r[0],a=r.reduce(function(t,i){var s=xt(e,i,n);return t.top=Le(s.top,t.top),t.right=Re(s.right,t.right),t.bottom=Re(s.bottom,t.bottom),t.left=Le(s.left,t.left),t},xt(e,o,n));return a.width=a.right-a.left,a.height=a.bottom-a.top,a.x=a.left,a.y=a.top,a}function St(e){var t,i=e.reference,n=e.element,s=e.placement,r=s?Ie(s):null,o=s?it(s):null,a=i.x+i.width/2-n.width/2,l=i.y+i.height/2-n.height/2;switch(r){case le:t={x:a,y:i.y-n.height};break;case ce:t={x:a,y:i.y+i.height};break;case de:t={x:i.x+i.width,y:l};break;case pe:t={x:i.x-n.width,y:l};break;default:t={x:i.x,y:i.y}}var c=r?Ge(r):null;if(null!=c){var d="y"===c?"height":"width";switch(o){case ge:t[c]=t[c]-(i[d]/2-n[d]/2);break;case fe:t[c]=t[c]+(i[d]/2-n[d]/2)}}return t}function Ot(e,t){void 0===t&&(t={});var i=t,n=i.placement,s=void 0===n?e.placement:n,r=i.strategy,o=void 0===r?e.strategy:r,a=i.boundary,l=void 0===a?me:a,c=i.rootBoundary,d=void 0===c?be:c,p=i.elementContext,u=void 0===p?ye:p,h=i.altBoundary,g=void 0!==h&&h,f=i.padding,m=void 0===f?0:f,b=Je("number"!=typeof m?m:Ze(m,he)),y=u===ye?ve:ye,v=e.rects.popper,_=e.elements[g?y:u],w=At(Se(_)?_:_.contextElement||ze(e.elements.popper),l,d,o),x=De(e.elements.reference),k=St({reference:x,element:v,placement:s}),A=_t(Object.assign({},v,k)),S=u===ye?A:x,O={top:w.top-S.top+b.top,bottom:S.bottom-w.bottom+b.bottom,left:w.left-S.left+b.left,right:S.right-w.right+b.right},E=e.modifiersData.offset;if(u===ye&&E){var $=E[s];Object.keys(O).forEach(function(e){var t=[de,ce].indexOf(e)>=0?1:-1,i=[le,ce].indexOf(e)>=0?"y":"x";O[e]+=$[i]*t})}return O}function Et(e,t){void 0===t&&(t={});var i=t,n=i.placement,s=i.boundary,r=i.rootBoundary,o=i.padding,a=i.flipVariations,l=i.allowedAutoPlacements,c=void 0===l?we:l,d=it(n),p=d?a?_e:_e.filter(function(e){return it(e)===d}):he,u=p.filter(function(e){return c.indexOf(e)>=0});0===u.length&&(u=p);var h=u.reduce(function(t,i){return t[i]=Ot(e,{placement:i,boundary:s,rootBoundary:r,padding:o})[Ie(i)],t},{});return Object.keys(h).sort(function(e,t){return h[e]-h[t]})}function $t(e){if(Ie(e)===ue)return[];var t=dt(e);return[ut(e),t,ut(t)]}function Ct(e){var t=e.state,i=e.options,n=e.name;if(!t.modifiersData[n]._skip){for(var s=i.mainAxis,r=void 0===s||s,o=i.altAxis,a=void 0===o||o,l=i.fallbackPlacements,c=i.padding,d=i.boundary,p=i.rootBoundary,u=i.altBoundary,h=i.flipVariations,g=void 0===h||h,f=i.allowedAutoPlacements,m=t.options.placement,b=Ie(m),y=l||(b===m||!g?[dt(m)]:$t(m)),v=[m].concat(y).reduce(function(e,i){return e.concat(Ie(i)===ue?Et(t,{placement:i,boundary:d,rootBoundary:p,padding:c,flipVariations:g,allowedAutoPlacements:f}):i)},[]),_=t.rects.reference,w=t.rects.popper,x=new Map,k=!0,A=v[0],S=0;S<v.length;S++){var O=v[S],E=Ie(O),$=it(O)===ge,C=[le,ce].indexOf(E)>=0,T=C?"width":"height",I=Ot(t,{placement:O,boundary:d,rootBoundary:p,altBoundary:u,padding:c}),L=C?$?de:pe:$?ce:le;_[T]>w[T]&&(L=dt(L));var R=dt(L),j=[];if(r&&j.push(I[E]<=0),a&&j.push(I[L]<=0,I[R]<=0),j.every(function(e){return e})){A=O,k=!1;break}x.set(O,j)}if(k)for(var N=function(e){var t=v.find(function(t){var i=x.get(t);if(i)return i.slice(0,e).every(function(e){return e})});if(t)return A=t,"break"},P=g?3:1;P>0;P--){if("break"===N(P))break}t.placement!==A&&(t.modifiersData[n]._skip=!0,t.placement=A,t.reset=!0)}}function Tt(e,t,i){return void 0===i&&(i={x:0,y:0}),{top:e.top-t.height-i.y,right:e.right-t.width+i.x,bottom:e.bottom-t.height+i.y,left:e.left-t.width-i.x}}function It(e){return[le,de,ce,pe].some(function(t){return e[t]>=0})}function Lt(e){var t=e.state,i=e.name,n=t.rects.reference,s=t.rects.popper,r=t.modifiersData.preventOverflow,o=Ot(t,{elementContext:"reference"}),a=Ot(t,{altBoundary:!0}),l=Tt(o,n),c=Tt(a,s,r),d=It(l),p=It(c);t.modifiersData[i]={referenceClippingOffsets:l,popperEscapeOffsets:c,isReferenceHidden:d,hasPopperEscaped:p},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":d,"data-popper-escaped":p})}function Rt(e,t,i){var n=Ie(e),s=[pe,le].indexOf(n)>=0?-1:1,r="function"==typeof i?i(Object.assign({},t,{placement:e})):i,o=r[0],a=r[1];return o=o||0,a=(a||0)*s,[pe,de].indexOf(n)>=0?{x:a,y:o}:{x:o,y:a}}function jt(e){var t=e.state,i=e.options,n=e.name,s=i.offset,r=void 0===s?[0,0]:s,o=we.reduce(function(e,i){return e[i]=Rt(i,t.rects,r),e},{}),a=o[t.placement],l=a.x,c=a.y;null!=t.modifiersData.popperOffsets&&(t.modifiersData.popperOffsets.x+=l,t.modifiersData.popperOffsets.y+=c),t.modifiersData[n]=o}function Nt(e){var t=e.state,i=e.name;t.modifiersData[i]=St({reference:t.rects.reference,element:t.rects.popper,placement:t.placement})}function Pt(e){return"x"===e?"y":"x"}function Dt(e){var t=e.state,i=e.options,n=e.name,s=i.mainAxis,r=void 0===s||s,o=i.altAxis,a=void 0!==o&&o,l=i.boundary,c=i.rootBoundary,d=i.altBoundary,p=i.padding,u=i.tether,h=void 0===u||u,g=i.tetherOffset,f=void 0===g?0:g,m=Ot(t,{boundary:l,rootBoundary:c,padding:p,altBoundary:d}),b=Ie(t.placement),y=it(t.placement),v=!y,_=Ge(b),w=Pt(_),x=t.modifiersData.popperOffsets,k=t.rects.reference,A=t.rects.popper,S="function"==typeof f?f(Object.assign({},t.rects,{placement:t.placement})):f,O="number"==typeof S?{mainAxis:S,altAxis:S}:Object.assign({mainAxis:0,altAxis:0},S),E=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,$={x:0,y:0};if(x){if(r){var C,T="y"===_?le:pe,I="y"===_?ce:de,L="y"===_?"height":"width",R=x[_],j=R+m[T],N=R-m[I],P=h?-A[L]/2:0,D=y===ge?k[L]:A[L],F=y===ge?-A[L]:-k[L],B=t.elements.arrow,M=h&&B?Fe(B):{width:0,height:0},q=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:Ke(),z=q[T],U=q[I],H=Ye(0,k[L],M[L]),V=v?k[L]/2-P-H-z-O.mainAxis:D-H-z-O.mainAxis,W=v?-k[L]/2+P+H+U+O.mainAxis:F+H+U+O.mainAxis,G=t.elements.arrow&&We(t.elements.arrow),Y=G?"y"===_?G.clientTop||0:G.clientLeft||0:0,Q=null!=(C=null==E?void 0:E[_])?C:0,K=R+W-Q,J=Ye(h?Re(j,R+V-Q-Y):j,R,h?Le(N,K):N);x[_]=J,$[_]=J-R}if(a){var Z,X="x"===_?le:pe,ee="x"===_?ce:de,te=x[w],ie="y"===w?"height":"width",ne=te+m[X],se=te-m[ee],re=-1!==[le,pe].indexOf(b),oe=null!=(Z=null==E?void 0:E[w])?Z:0,ae=re?ne:te-k[ie]-A[ie]-oe+O.altAxis,ue=re?te+k[ie]+A[ie]-oe-O.altAxis:se,he=h&&re?Qe(ae,te,ue):Ye(h?ae:ne,te,h?ue:se);x[w]=he,$[w]=he-te}t.modifiersData[n]=$}}function Ft(e){return{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}}function Bt(e){return e!==Ae(e)&&Oe(e)?Ft(e):ht(e)}function Mt(e){var t=e.getBoundingClientRect(),i=je(t.width)/e.offsetWidth||1,n=je(t.height)/e.offsetHeight||1;return 1!==i||1!==n}function qt(e,t,i){void 0===i&&(i=!1);var n=Oe(t),s=Oe(t)&&Mt(t),r=ze(t),o=De(e,s,i),a={scrollLeft:0,scrollTop:0},l={x:0,y:0};return(n||!n&&!i)&&(("body"!==ke(t)||bt(r))&&(a=Bt(t)),Oe(t)?((l=De(t,!0)).x+=t.clientLeft,l.y+=t.clientTop):r&&(l.x=gt(r))),{x:o.left+a.scrollLeft-l.x,y:o.top+a.scrollTop-l.y,width:o.width,height:o.height}}function zt(e){var t=new Map,i=new Set,n=[];function s(e){i.add(e.name),[].concat(e.requires||[],e.requiresIfExists||[]).forEach(function(e){if(!i.has(e)){var n=t.get(e);n&&s(n)}}),n.push(e)}return e.forEach(function(e){t.set(e.name,e)}),e.forEach(function(e){i.has(e.name)||s(e)}),n}function Ut(e){var t=zt(e);return xe.reduce(function(e,i){return e.concat(t.filter(function(e){return e.phase===i}))},[])}function Ht(e){var t;return function(){return t||(t=new Promise(function(i){Promise.resolve().then(function(){t=void 0,i(e())})})),t}}function Vt(e){var t=e.reduce(function(e,t){var i=e[t.name];return e[t.name]=i?Object.assign({},i,t,{options:Object.assign({},i.options,t.options),data:Object.assign({},i.data,t.data)}):t,e},{});return Object.keys(t).map(function(e){return t[e]})}var Wt={placement:"bottom",modifiers:[],strategy:"absolute"};function Gt(){for(var e=arguments.length,t=new Array(e),i=0;i<e;i++)t[i]=arguments[i];return!t.some(function(e){return!(e&&"function"==typeof e.getBoundingClientRect)})}function Yt(e){void 0===e&&(e={});var t=e,i=t.defaultModifiers,n=void 0===i?[]:i,s=t.defaultOptions,r=void 0===s?Wt:s;return function(e,t,i){void 0===i&&(i=r);var s={placement:"bottom",orderedModifiers:[],options:Object.assign({},Wt,r),modifiersData:{},elements:{reference:e,popper:t},attributes:{},styles:{}},o=[],a=!1,l={state:s,setOptions:function(i){var o="function"==typeof i?i(s.options):i;d(),s.options=Object.assign({},r,s.options,o),s.scrollParents={reference:Se(e)?vt(e):e.contextElement?vt(e.contextElement):[],popper:vt(t)};var a=Ut(Vt([].concat(n,s.options.modifiers)));return s.orderedModifiers=a.filter(function(e){return e.enabled}),c(),l.update()},forceUpdate:function(){if(!a){var e=s.elements,t=e.reference,i=e.popper;if(Gt(t,i)){s.rects={reference:qt(t,We(i),"fixed"===s.options.strategy),popper:Fe(i)},s.reset=!1,s.placement=s.options.placement,s.orderedModifiers.forEach(function(e){return s.modifiersData[e.name]=Object.assign({},e.data)});for(var n=0;n<s.orderedModifiers.length;n++)if(!0!==s.reset){var r=s.orderedModifiers[n],o=r.fn,c=r.options,d=void 0===c?{}:c,p=r.name;"function"==typeof o&&(s=o({state:s,options:d,name:p,instance:l})||s)}else s.reset=!1,n=-1}}},update:Ht(function(){return new Promise(function(e){l.forceUpdate(),e(s)})}),destroy:function(){d(),a=!0}};if(!Gt(e,t))return l;function c(){s.orderedModifiers.forEach(function(e){var t=e.name,i=e.options,n=void 0===i?{}:i,r=e.effect;if("function"==typeof r){var a=r({state:s,name:t,instance:l,options:n}),c=function(){};o.push(a||c)}})}function d(){o.forEach(function(e){return e()}),o=[]}return l.setOptions(i).then(function(e){!a&&i.onFirstUpdate&&i.onFirstUpdate(e)}),l}}var Qt=Yt({defaultModifiers:[{name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:lt,data:{}},{name:"popperOffsets",enabled:!0,phase:"read",fn:Nt,data:{}},{name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:ot,data:{}},Te,{name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:jt},{name:"flip",enabled:!0,phase:"main",fn:Ct,requiresIfExists:["offset"],data:{_skip:!1}},{name:"preventOverflow",enabled:!0,phase:"main",fn:Dt,requiresIfExists:["offset"]},{name:"arrow",enabled:!0,phase:"main",fn:et,effect:tt,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]},{name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:Lt}]}),Kt="tippy-box",Jt="tippy-content",Zt="tippy-backdrop",Xt="tippy-arrow",ei="tippy-svg-arrow",ti={passive:!0,capture:!0},ii=function(){return document.body};function ni(e,t,i){if(Array.isArray(e)){var n=e[t];return n??(Array.isArray(i)?i[t]:i)}return e}function si(e,t){var i={}.toString.call(e);return 0===i.indexOf("[object")&&i.indexOf(t+"]")>-1}function ri(e,t){return"function"==typeof e?e.apply(void 0,t):e}function oi(e,t){return 0===t?e:function(n){clearTimeout(i),i=setTimeout(function(){e(n)},t)};var i}function ai(e){return e.split(/\s+/).filter(Boolean)}function li(e){return[].concat(e)}function ci(e,t){-1===e.indexOf(t)&&e.push(t)}function di(e){return e.filter(function(t,i){return e.indexOf(t)===i})}function pi(e){return e.split("-")[0]}function ui(e){return[].slice.call(e)}function hi(e){return Object.keys(e).reduce(function(t,i){return void 0!==e[i]&&(t[i]=e[i]),t},{})}function gi(){return document.createElement("div")}function fi(e){return["Element","Fragment"].some(function(t){return si(e,t)})}function mi(e){return si(e,"NodeList")}function bi(e){return si(e,"MouseEvent")}function yi(e){return!(!e||!e._tippy||e._tippy.reference!==e)}function vi(e){return fi(e)?[e]:mi(e)?ui(e):Array.isArray(e)?e:ui(document.querySelectorAll(e))}function _i(e,t){e.forEach(function(e){e&&(e.style.transitionDuration=t+"ms")})}function wi(e,t){e.forEach(function(e){e&&e.setAttribute("data-state",t)})}function xi(e){var t,i=li(e)[0];return null!=i&&null!=(t=i.ownerDocument)&&t.body?i.ownerDocument:document}function ki(e,t){var i=t.clientX,n=t.clientY;return e.every(function(e){var t=e.popperRect,s=e.popperState,r=e.props.interactiveBorder,o=pi(s.placement),a=s.modifiersData.offset;if(!a)return!0;var l="bottom"===o?a.top.y:0,c="top"===o?a.bottom.y:0,d="right"===o?a.left.x:0,p="left"===o?a.right.x:0,u=t.top-n+l>r,h=n-t.bottom-c>r,g=t.left-i+d>r,f=i-t.right-p>r;return u||h||g||f})}function Ai(e,t,i){var n=t+"EventListener";["transitionend","webkitTransitionEnd"].forEach(function(t){e[n](t,i)})}function Si(e,t){for(var i=t;i;){var n;if(e.contains(i))return!0;i=null==i.getRootNode||null==(n=i.getRootNode())?void 0:n.host}return!1}var Oi={isTouch:!1},Ei=0;function $i(){Oi.isTouch||(Oi.isTouch=!0,window.performance&&document.addEventListener("mousemove",Ci))}function Ci(){var e=performance.now();e-Ei<20&&(Oi.isTouch=!1,document.removeEventListener("mousemove",Ci)),Ei=e}function Ti(){var e=document.activeElement;if(yi(e)){var t=e._tippy;e.blur&&!t.state.isVisible&&e.blur()}}function Ii(){document.addEventListener("touchstart",$i,ti),window.addEventListener("blur",Ti)}var Li=!!("undefined"!=typeof window&&"undefined"!=typeof document)&&!!window.msCrypto,Ri={animateFill:!1,followCursor:!1,inlinePositioning:!1,sticky:!1},ji={allowHTML:!1,animation:"fade",arrow:!0,content:"",inertia:!1,maxWidth:350,role:"tooltip",theme:"",zIndex:9999},Ni=Object.assign({appendTo:ii,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},Ri,ji),Pi=Object.keys(Ni),Di=function(e){Object.keys(e).forEach(function(t){Ni[t]=e[t]})};function Fi(e){var t=(e.plugins||[]).reduce(function(t,i){var n,s=i.name,r=i.defaultValue;s&&(t[s]=void 0!==e[s]?e[s]:null!=(n=Ni[s])?n:r);return t},{});return Object.assign({},e,t)}function Bi(e,t){var i=(t?Object.keys(Fi(Object.assign({},Ni,{plugins:t}))):Pi).reduce(function(t,i){var n=(e.getAttribute("data-tippy-"+i)||"").trim();if(!n)return t;if("content"===i)t[i]=n;else try{t[i]=JSON.parse(n)}catch(e){t[i]=n}return t},{});return i}function Mi(e,t){var i=Object.assign({},t,{content:ri(t.content,[e])},t.ignoreAttributes?{}:Bi(e,t.plugins));return i.aria=Object.assign({},Ni.aria,i.aria),i.aria={expanded:"auto"===i.aria.expanded?t.interactive:i.aria.expanded,content:"auto"===i.aria.content?t.interactive?null:"describedby":i.aria.content},i}var qi=function(){return"innerHTML"};function zi(e,t){e[qi()]=t}function Ui(e){var t=gi();return!0===e?t.className=Xt:(t.className=ei,fi(e)?t.appendChild(e):zi(t,e)),t}function Hi(e,t){fi(t.content)?(zi(e,""),e.appendChild(t.content)):"function"!=typeof t.content&&(t.allowHTML?zi(e,t.content):e.textContent=t.content)}function Vi(e){var t=e.firstElementChild,i=ui(t.children);return{box:t,content:i.find(function(e){return e.classList.contains(Jt)}),arrow:i.find(function(e){return e.classList.contains(Xt)||e.classList.contains(ei)}),backdrop:i.find(function(e){return e.classList.contains(Zt)})}}function Wi(e){var t=gi(),i=gi();i.className=Kt,i.setAttribute("data-state","hidden"),i.setAttribute("tabindex","-1");var n=gi();function s(i,n){var s=Vi(t),r=s.box,o=s.content,a=s.arrow;n.theme?r.setAttribute("data-theme",n.theme):r.removeAttribute("data-theme"),"string"==typeof n.animation?r.setAttribute("data-animation",n.animation):r.removeAttribute("data-animation"),n.inertia?r.setAttribute("data-inertia",""):r.removeAttribute("data-inertia"),r.style.maxWidth="number"==typeof n.maxWidth?n.maxWidth+"px":n.maxWidth,n.role?r.setAttribute("role",n.role):r.removeAttribute("role"),i.content===n.content&&i.allowHTML===n.allowHTML||Hi(o,e.props),n.arrow?a?i.arrow!==n.arrow&&(r.removeChild(a),r.appendChild(Ui(n.arrow))):r.appendChild(Ui(n.arrow)):a&&r.removeChild(a)}return n.className=Jt,n.setAttribute("data-state","hidden"),Hi(n,e.props),t.appendChild(i),i.appendChild(n),s(e.props,e.props),{popper:t,onUpdate:s}}Wi.$$tippy=!0;var Gi=1,Yi=[],Qi=[];function Ki(e,t){var i,n,s,r,o,a,l,c=Mi(e,Object.assign({},Ni,Fi(hi(t)))),d=!1,p=!1,u=!1,h=!1,g=[],f=oi(K,c.interactiveDebounce),m=Gi++,b=null,y=di(c.plugins),v={isEnabled:!0,isVisible:!1,isDestroyed:!1,isMounted:!1,isShown:!1},_={id:m,reference:e,popper:gi(),popperInstance:b,props:c,state:v,plugins:y,clearDelayTimeouts:le,setProps:ce,setContent:de,show:pe,hide:ue,hideWithInteractivity:he,enable:oe,disable:ae,unmount:ge,destroy:fe};if(!c.render)return _;var w=c.render(_),x=w.popper,k=w.onUpdate;x.setAttribute("data-tippy-root",""),x.id="tippy-"+_.id,_.popper=x,e._tippy=_,x._tippy=_;var A=y.map(function(e){return e.fn(_)}),S=e.hasAttribute("aria-expanded");return G(),P(),R(),j("onCreate",[_]),c.showOnCreate&&se(),x.addEventListener("mouseenter",function(){_.props.interactive&&_.state.isVisible&&_.clearDelayTimeouts()}),x.addEventListener("mouseleave",function(){_.props.interactive&&_.props.trigger.indexOf("mouseenter")>=0&&T().addEventListener("mousemove",f)}),_;function O(){var e=_.props.touch;return Array.isArray(e)?e:[e,0]}function E(){return"hold"===O()[0]}function $(){var e;return!(null==(e=_.props.render)||!e.$$tippy)}function C(){return l||e}function T(){var e=C().parentNode;return e?xi(e):document}function I(){return Vi(x)}function L(e){return _.state.isMounted&&!_.state.isVisible||Oi.isTouch||r&&"focus"===r.type?0:ni(_.props.delay,e?0:1,Ni.delay)}function R(e){void 0===e&&(e=!1),x.style.pointerEvents=_.props.interactive&&!e?"":"none",x.style.zIndex=""+_.props.zIndex}function j(e,t,i){var n;(void 0===i&&(i=!0),A.forEach(function(i){i[e]&&i[e].apply(i,t)}),i)&&(n=_.props)[e].apply(n,t)}function N(){var t=_.props.aria;if(t.content){var i="aria-"+t.content,n=x.id;li(_.props.triggerTarget||e).forEach(function(e){var t=e.getAttribute(i);if(_.state.isVisible)e.setAttribute(i,t?t+" "+n:n);else{var s=t&&t.replace(n,"").trim();s?e.setAttribute(i,s):e.removeAttribute(i)}})}}function P(){!S&&_.props.aria.expanded&&li(_.props.triggerTarget||e).forEach(function(e){_.props.interactive?e.setAttribute("aria-expanded",_.state.isVisible&&e===C()?"true":"false"):e.removeAttribute("aria-expanded")})}function D(){T().removeEventListener("mousemove",f),Yi=Yi.filter(function(e){return e!==f})}function F(t){if(!Oi.isTouch||!u&&"mousedown"!==t.type){var i=t.composedPath&&t.composedPath()[0]||t.target;if(!_.props.interactive||!Si(x,i)){if(li(_.props.triggerTarget||e).some(function(e){return Si(e,i)})){if(Oi.isTouch)return;if(_.state.isVisible&&_.props.trigger.indexOf("click")>=0)return}else j("onClickOutside",[_,t]);!0===_.props.hideOnClick&&(_.clearDelayTimeouts(),_.hide(),p=!0,setTimeout(function(){p=!1}),_.state.isMounted||z())}}}function B(){u=!0}function M(){u=!1}function q(){var e=T();e.addEventListener("mousedown",F,!0),e.addEventListener("touchend",F,ti),e.addEventListener("touchstart",M,ti),e.addEventListener("touchmove",B,ti)}function z(){var e=T();e.removeEventListener("mousedown",F,!0),e.removeEventListener("touchend",F,ti),e.removeEventListener("touchstart",M,ti),e.removeEventListener("touchmove",B,ti)}function U(e,t){V(e,function(){!_.state.isVisible&&x.parentNode&&x.parentNode.contains(x)&&t()})}function H(e,t){V(e,t)}function V(e,t){var i=I().box;function n(e){e.target===i&&(Ai(i,"remove",n),t())}if(0===e)return t();Ai(i,"remove",o),Ai(i,"add",n),o=n}function W(t,i,n){void 0===n&&(n=!1),li(_.props.triggerTarget||e).forEach(function(e){e.addEventListener(t,i,n),g.push({node:e,eventType:t,handler:i,options:n})})}function G(){E()&&(W("touchstart",Q,{passive:!0}),W("touchend",J,{passive:!0})),ai(_.props.trigger).forEach(function(e){if("manual"!==e)switch(W(e,Q),e){case"mouseenter":W("mouseleave",J);break;case"focus":W(Li?"focusout":"blur",Z);break;case"focusin":W("focusout",Z)}})}function Y(){g.forEach(function(e){var t=e.node,i=e.eventType,n=e.handler,s=e.options;t.removeEventListener(i,n,s)}),g=[]}function Q(e){var t,i=!1;if(_.state.isEnabled&&!X(e)&&!p){var n="focus"===(null==(t=r)?void 0:t.type);r=e,l=e.currentTarget,P(),!_.state.isVisible&&bi(e)&&Yi.forEach(function(t){return t(e)}),"click"===e.type&&(_.props.trigger.indexOf("mouseenter")<0||d)&&!1!==_.props.hideOnClick&&_.state.isVisible?i=!0:se(e),"click"===e.type&&(d=!i),i&&!n&&re(e)}}function K(e){var t=e.target,i=C().contains(t)||x.contains(t);if("mousemove"!==e.type||!i){var n=ne().concat(x).map(function(e){var t,i=null==(t=e._tippy.popperInstance)?void 0:t.state;return i?{popperRect:e.getBoundingClientRect(),popperState:i,props:c}:null}).filter(Boolean);ki(n,e)&&(D(),re(e))}}function J(e){X(e)||_.props.trigger.indexOf("click")>=0&&d||(_.props.interactive?_.hideWithInteractivity(e):re(e))}function Z(e){_.props.trigger.indexOf("focusin")<0&&e.target!==C()||_.props.interactive&&e.relatedTarget&&x.contains(e.relatedTarget)||re(e)}function X(e){return!!Oi.isTouch&&E()!==e.type.indexOf("touch")>=0}function ee(){te();var t=_.props,i=t.popperOptions,n=t.placement,s=t.offset,r=t.getReferenceClientRect,o=t.moveTransition,l=$()?Vi(x).arrow:null,c=r?{getBoundingClientRect:r,contextElement:r.contextElement||C()}:e,d={name:"$$tippy",enabled:!0,phase:"beforeWrite",requires:["computeStyles"],fn:function(e){var t=e.state;if($()){var i=I().box;["placement","reference-hidden","escaped"].forEach(function(e){"placement"===e?i.setAttribute("data-placement",t.placement):t.attributes.popper["data-popper-"+e]?i.setAttribute("data-"+e,""):i.removeAttribute("data-"+e)}),t.attributes.popper={}}}},p=[{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:!o}},d];$()&&l&&p.push({name:"arrow",options:{element:l,padding:3}}),p.push.apply(p,(null==i?void 0:i.modifiers)||[]),_.popperInstance=Qt(c,x,Object.assign({},i,{placement:n,onFirstUpdate:a,modifiers:p}))}function te(){_.popperInstance&&(_.popperInstance.destroy(),_.popperInstance=null)}function ie(){var e,t=_.props.appendTo,i=C();(e=_.props.interactive&&t===ii||"parent"===t?i.parentNode:ri(t,[i])).contains(x)||e.appendChild(x),_.state.isMounted=!0,ee()}function ne(){return ui(x.querySelectorAll("[data-tippy-root]"))}function se(e){_.clearDelayTimeouts(),e&&j("onTrigger",[_,e]),q();var t=L(!0),n=O(),s=n[0],r=n[1];Oi.isTouch&&"hold"===s&&r&&(t=r),t?i=setTimeout(function(){_.show()},t):_.show()}function re(e){if(_.clearDelayTimeouts(),j("onUntrigger",[_,e]),_.state.isVisible){if(!(_.props.trigger.indexOf("mouseenter")>=0&&_.props.trigger.indexOf("click")>=0&&["mouseleave","mousemove"].indexOf(e.type)>=0&&d)){var t=L(!1);t?n=setTimeout(function(){_.state.isVisible&&_.hide()},t):s=requestAnimationFrame(function(){_.hide()})}}else z()}function oe(){_.state.isEnabled=!0}function ae(){_.hide(),_.state.isEnabled=!1}function le(){clearTimeout(i),clearTimeout(n),cancelAnimationFrame(s)}function ce(t){if(!_.state.isDestroyed){j("onBeforeUpdate",[_,t]),Y();var i=_.props,n=Mi(e,Object.assign({},i,hi(t),{ignoreAttributes:!0}));_.props=n,G(),i.interactiveDebounce!==n.interactiveDebounce&&(D(),f=oi(K,n.interactiveDebounce)),i.triggerTarget&&!n.triggerTarget?li(i.triggerTarget).forEach(function(e){e.removeAttribute("aria-expanded")}):n.triggerTarget&&e.removeAttribute("aria-expanded"),P(),R(),k&&k(i,n),_.popperInstance&&(ee(),ne().forEach(function(e){requestAnimationFrame(e._tippy.popperInstance.forceUpdate)})),j("onAfterUpdate",[_,t])}}function de(e){_.setProps({content:e})}function pe(){var e=_.state.isVisible,t=_.state.isDestroyed,i=!_.state.isEnabled,n=Oi.isTouch&&!_.props.touch,s=ni(_.props.duration,0,Ni.duration);if(!(e||t||i||n||C().hasAttribute("disabled")||(j("onShow",[_],!1),!1===_.props.onShow(_)))){if(_.state.isVisible=!0,$()&&(x.style.visibility="visible"),R(),q(),_.state.isMounted||(x.style.transition="none"),$()){var r=I();_i([r.box,r.content],0)}a=function(){var e;if(_.state.isVisible&&!h){if(h=!0,x.offsetHeight,x.style.transition=_.props.moveTransition,$()&&_.props.animation){var t=I(),i=t.box,n=t.content;_i([i,n],s),wi([i,n],"visible")}N(),P(),ci(Qi,_),null==(e=_.popperInstance)||e.forceUpdate(),j("onMount",[_]),_.props.animation&&$()&&H(s,function(){_.state.isShown=!0,j("onShown",[_])})}},ie()}}function ue(){var e=!_.state.isVisible,t=_.state.isDestroyed,i=!_.state.isEnabled,n=ni(_.props.duration,1,Ni.duration);if(!(e||t||i)&&(j("onHide",[_],!1),!1!==_.props.onHide(_))){if(_.state.isVisible=!1,_.state.isShown=!1,h=!1,d=!1,$()&&(x.style.visibility="hidden"),D(),z(),R(!0),$()){var s=I(),r=s.box,o=s.content;_.props.animation&&(_i([r,o],n),wi([r,o],"hidden"))}N(),P(),_.props.animation?$()&&U(n,_.unmount):_.unmount()}}function he(e){T().addEventListener("mousemove",f),ci(Yi,f),f(e)}function ge(){_.state.isVisible&&_.hide(),_.state.isMounted&&(te(),ne().forEach(function(e){e._tippy.unmount()}),x.parentNode&&x.parentNode.removeChild(x),Qi=Qi.filter(function(e){return e!==_}),_.state.isMounted=!1,j("onHidden",[_]))}function fe(){_.state.isDestroyed||(_.clearDelayTimeouts(),_.unmount(),Y(),delete e._tippy,_.state.isDestroyed=!0,j("onDestroy",[_]))}}function Ji(e,t){void 0===t&&(t={});var i=Ni.plugins.concat(t.plugins||[]);Ii();var n=Object.assign({},t,{plugins:i}),s=vi(e).reduce(function(e,t){var i=t&&Ki(t,n);return i&&e.push(i),e},[]);return fi(e)?s[0]:s}function Zi(e){return e.replace(/(?:^\w|[A-Z]|\b\w)/g,(e,t)=>0===+e?"":0===t?e.toLowerCase():e.toUpperCase()).replace("-","")}Ji.defaultProps=Ni,Ji.setDefaultProps=Di,Ji.currentInput=Oi,Object.assign({},Te,{effect:function(e){var t=e.state,i={popper:{position:t.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};Object.assign(t.elements.popper.style,i.popper),t.styles=i,t.elements.arrow&&Object.assign(t.elements.arrow.style,i.arrow)}}),Ji.setDefaultProps({render:Wi});const Xi='\n .tippy-box[data-animation=fade][data-state=hidden] {\n opacity: 0\n }\n\n .tippy-iOS {\n cursor: pointer!important;\n -webkit-tap-highlight-color: transparent\n }\n\n [data-tippy-root] {\n max-width: calc(100vw - 10px)\n }\n\n .tippy-box {\n position: relative;\n background-color: #333;\n color: #fff;\n border-radius: 4px;\n font-size: clamp(\n calc(var(--pb-popover-font-size, 1rem) * var(--pb-min-zoom, 0.5)), \n calc(var(--pb-popover-font-size, 1rem) * var(--pb-zoom-factor)), \n calc(var(--pb-popover-font-size, 1rem) * var(--pb-max-zoom, 3.0))\n );\n line-height: calc(var(--pb-popover-line-height, 1.5) * var(--pb-zoom-factor));\n\n text-align: left;\n font-style: normal;\n font-weight: normal;\n outline: 0;\n transition-property: transform, visibility, opacity;\n }\n\n .tippy-box[data-placement^=top]>.tippy-arrow {\n bottom: 0\n }\n\n .tippy-box[data-placement^=top]>.tippy-arrow:before {\n bottom: -7px;\n left: 0;\n border-width: 8px 8px 0;\n border-top-color: initial;\n transform-origin: center top\n }\n\n .tippy-box[data-placement^=bottom]>.tippy-arrow {\n top: 0\n }\n\n .tippy-box[data-placement^=bottom]>.tippy-arrow:before {\n top: -7px;\n left: 0;\n border-width: 0 8px 8px;\n border-bottom-color: initial;\n transform-origin: center bottom\n }\n\n .tippy-box[data-placement^=left]>.tippy-arrow {\n right: 0\n }\n\n .tippy-box[data-placement^=left]>.tippy-arrow:before {\n border-width: 8px 0 8px 8px;\n border-left-color: initial;\n right: -7px;\n transform-origin: center left\n }\n\n .tippy-box[data-placement^=right]>.tippy-arrow {\n left: 0\n }\n\n .tippy-box[data-placement^=right]>.tippy-arrow:before {\n left: -7px;\n border-width: 8px 8px 8px 0;\n border-right-color: initial;\n transform-origin: center right\n }\n\n .tippy-box[data-inertia][data-state=visible] {\n transition-timing-function: cubic-bezier(.54, 1.5, .38, 1.11)\n }\n\n .tippy-arrow {\n width: 16px;\n height: 16px;\n color: #333\n }\n\n .tippy-arrow:before {\n content: "";\n position: absolute;\n border-color: transparent;\n border-style: solid\n }\n\n .tippy-content {\n position: relative;\n padding: 5px 9px;\n z-index: 1;\n overflow: auto;\n max-height: var(--pb-popover-max-height, calc(100vh - 60px));\n min-height: var(--pb-popover-min-height, auto);\n max-width: var(--pb-popover-max-width, auto);\n min-width: var(--pb-popover-min-width, auto);\n color: var(--pb-popover-color);\n }\n',en='\n .tippy-box[data-theme~=light-border] {\n background-color: #fff;\n background-clip: padding-box;\n border: 1px solid rgba(0, 8, 16, .15);\n color: #333;\n box-shadow: 0 4px 14px -2px rgba(0, 8, 16, .08)\n }\n\n .tippy-box[data-theme~=light-border]>.tippy-backdrop {\n background-color: #fff\n }\n\n .tippy-box[data-theme~=light-border]>.tippy-arrow:after, .tippy-box[data-theme~=light-border]>.tippy-svg-arrow:after {\n content: "";\n position: absolute;\n z-index: -1\n }\n\n .tippy-box[data-theme~=light-border]>.tippy-arrow:after {\n border-color: transparent;\n border-style: solid\n }\n\n .tippy-box[data-theme~=light-border][data-placement^=top]>.tippy-arrow:before {\n border-top-color: #fff\n }\n\n .tippy-box[data-theme~=light-border][data-placement^=top]>.tippy-arrow:after {\n border-top-color: rgba(0, 8, 16, .2);\n border-width: 7px 7px 0;\n top: 17px;\n left: 1px\n }\n\n .tippy-box[data-theme~=light-border][data-placement^=top]>.tippy-svg-arrow>svg {\n top: 16px\n }\n\n .tippy-box[data-theme~=light-border][data-placement^=top]>.tippy-svg-arrow:after {\n top: 17px\n }\n\n .tippy-box[data-theme~=light-border][data-placement^=bottom]>.tippy-arrow:before {\n border-bottom-color: #fff;\n bottom: 16px\n }\n\n .tippy-box[data-theme~=light-border][data-placement^=bottom]>.tippy-arrow:after {\n border-bottom-color: rgba(0, 8, 16, .2);\n border-width: 0 7px 7px;\n bottom: 17px;\n left: 1px\n }\n\n .tippy-box[data-theme~=light-border][data-placement^=bottom]>.tippy-svg-arrow>svg {\n bottom: 16px\n }\n\n .tippy-box[data-theme~=light-border][data-placement^=bottom]>.tippy-svg-arrow:after {\n bottom: 17px\n }\n\n .tippy-box[data-theme~=light-border][data-placement^=left]>.tippy-arrow:before {\n border-left-color: #fff\n }\n\n .tippy-box[data-theme~=light-border][data-placement^=left]>.tippy-arrow:after {\n border-left-color: rgba(0, 8, 16, .2);\n border-width: 7px 0 7px 7px;\n left: 17px;\n top: 1px\n }\n\n .tippy-box[data-theme~=light-border][data-placement^=left]>.tippy-svg-arrow>svg {\n left: 11px\n }\n\n .tippy-box[data-theme~=light-border][data-placement^=left]>.tippy-svg-arrow:after {\n left: 12px\n }\n\n .tippy-box[data-theme~=light-border][data-placement^=right]>.tippy-arrow:before {\n border-right-color: #fff;\n right: 16px\n }\n\n .tippy-box[data-theme~=light-border][data-placement^=right]>.tippy-arrow:after {\n border-width: 7px 7px 7px 0;\n right: 17px;\n top: 1px;\n border-right-color: rgba(0, 8, 16, .2)\n }\n\n .tippy-box[data-theme~=light-border][data-placement^=right]>.tippy-svg-arrow>svg {\n right: 11px\n }\n\n .tippy-box[data-theme~=light-border][data-placement^=right]>.tippy-svg-arrow:after {\n right: 12px\n }\n\n .tippy-box[data-theme~=light-border]>.tippy-svg-arrow {\n fill: #fff\n }\n\n .tippy-box[data-theme~=light-border]>.tippy-svg-arrow:after {\n background-image: url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTYiIGhlaWdodD0iNiIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj48cGF0aCBkPSJNMCA2czEuNzk2LS4wMTMgNC42Ny0zLjYxNUM1Ljg1MS45IDYuOTMuMDA2IDggMGMxLjA3LS4wMDYgMi4xNDguODg3IDMuMzQzIDIuMzg1QzE0LjIzMyA2LjAwNSAxNiA2IDE2IDZIMHoiIGZpbGw9InJnYmEoMCwgOCwgMTYsIDAuMikiLz48L3N2Zz4=);\n background-size: 16px 6px;\n width: 16px;\n height: 6px\n }\n',tn="\n .tippy-box[data-theme~=light] {\n color: #26323d;\n box-shadow: 0 0 20px 4px rgba(154, 161, 177, .15), 0 4px 80px -8px rgba(36, 40, 47, .25), 0 4px 4px -2px rgba(91, 94, 105, .15);\n background-color: #fff\n }\n\n .tippy-box[data-theme~=light][data-placement^=top]>.tippy-arrow:before {\n border-top-color: #fff\n }\n\n .tippy-box[data-theme~=light][data-placement^=bottom]>.tippy-arrow:before {\n border-bottom-color: #fff\n }\n\n .tippy-box[data-theme~=light][data-placement^=left]>.tippy-arrow:before {\n border-left-color: #fff\n }\n\n .tippy-box[data-theme~=light][data-placement^=right]>.tippy-arrow:before {\n border-right-color: #fff\n }\n\n .tippy-box[data-theme~=light]>.tippy-backdrop {\n background-color: #fff\n }\n\n .tippy-box[data-theme~=light]>.tippy-svg-arrow {\n fill: #fff\n }",nn="\n .tippy-box[data-theme~=material] {\n background-color: #505355;\n font-weight: 600\n }\n\n .tippy-box[data-theme~=material][data-placement^=top]>.tippy-arrow:before {\n border-top-color: #505355\n }\n\n .tippy-box[data-theme~=material][data-placement^=bottom]>.tippy-arrow:before {\n border-bottom-color: #505355\n }\n\n .tippy-box[data-theme~=material][data-placement^=left]>.tippy-arrow:before {\n border-left-color: #505355\n }\n\n .tippy-box[data-theme~=material][data-placement^=right]>.tippy-arrow:before {\n border-right-color: #505355\n }\n\n .tippy-box[data-theme~=material]>.tippy-backdrop {\n background-color: #505355\n }\n\n .tippy-box[data-theme~=material]>.tippy-svg-arrow {\n fill: #505355\n }\n",sn="\n .tippy-box[data-theme~=translucent] {\n background-color: rgba(0, 0, 0, .7)\n }\n\n .tippy-box[data-theme~=translucent]>.tippy-arrow {\n width: 14px;\n height: 14px\n }\n\n .tippy-box[data-theme~=translucent][data-placement^=top]>.tippy-arrow:before {\n border-width: 7px 7px 0;\n border-top-color: rgba(0, 0, 0, .7)\n }\n\n .tippy-box[data-theme~=translucent][data-placement^=bottom]>.tippy-arrow:before {\n border-width: 0 7px 7px;\n border-bottom-color: rgba(0, 0, 0, .7)\n }\n\n .tippy-box[data-theme~=translucent][data-placement^=left]>.tippy-arrow:before {\n border-width: 7px 0 7px 7px;\n border-left-color: rgba(0, 0, 0, .7)\n }\n\n .tippy-box[data-theme~=translucent][data-placement^=right]>.tippy-arrow:before {\n border-width: 7px 7px 7px 0;\n border-right-color: rgba(0, 0, 0, .7)\n }\n\n .tippy-box[data-theme~=translucent]>.tippy-backdrop {\n background-color: rgba(0, 0, 0, .7)\n }\n\n .tippy-box[data-theme~=translucent]>.tippy-svg-arrow {\n fill: rgba(0, 0, 0, .7)\n }\n";var rn=Object.freeze({__proto__:null,base:Xi,camelize:Zi,light:tn,lightBorder:en,material:nn,translucent:sn});function on(e,t,i){if(!e.querySelector(`#pb-popover-${t}`)){const n=e.nodeType===Node.DOCUMENT_NODE?document.head:e;g.log("Loading tippy styles for theme %s into %o",t,n);const s=document.createElement("style");s.type="text/css",s.id=`pb-popover-${t}`,s.innerHTML=i,n.appendChild(s)}}function an(e,t){if(on(e,"base",Xi),t&&"none"!==t){const i=Zi(t),n=rn[i];n&&on(e,i,n)}}class ln extends(s(n)){static get properties(){return Object.assign(Object.assign({},super.properties),{},{for:{type:String},theme:{type:String},placement:{type:String},fallbackPlacement:{type:String,attribute:"fallback-placement"},persistent:{type:Boolean},trigger:{type:String},touch:{type:String},popupClass:{type:String,attribute:"popup-class"},remote:{type:String},stopPropagation:{type:Boolean,attribute:"stop-propagation"}})}constructor(){super(),this.persistent=!1,this.trigger=null,this.for=null,this.theme=null,this.placement=null,this.touch=null,this.fallbackPlacement=null,this.popupClass=null,this.stopPropagation=!1,this._tippy=null,this._content=null}render(){return this.for?e`<div class="hidden"><slot></slot></div>`:e`<span id="link" part="trigger" class="${this.persistent?"persistent":""}"
|
|
134
134
|
><slot name="default"><slot></slot></slot></span
|
|
135
135
|
><span class="hidden"><slot name="alternate"></slot></span>`}disconnectedCallback(){super.disconnectedCallback(),this._tippy&&this._tippy.destroy(),this._observer&&this._observer.disconnect()}_checkCSSProperties(){if(this.theme||"none"===this.theme||(this.theme=ee(this,"--pb-popover-theme","none")),this.placement||(this.placement=ee(this,"--pb-popover-placement","auto")),this.fallbackPlacement||(this.fallbackPlacement=ee(this,"--pb-popover-fallback-placement",null)),this.persistent||(this.persistent=ee(this,"--pb-popover-persistent",!1)),this.trigger||(this.trigger=ee(this,"--pb-popover-trigger",null)),!this.touch){const e=ee(this,"--pb-popover-touch","hold");this.touch="true"===e||e}}_injectStyles(){this._checkCSSProperties(),an(this.getRootNode(),this.theme)}_getContent(){if(this._content)return this._content;const e=this._getSlot();if(e){const t=document.createElement("div");return e.assignedNodes().forEach(e=>{t.appendChild(e.content?e.content.cloneNode(!0):e.cloneNode(!0))}),this._content=t,t}return null}_getSlot(){return this.for?this.shadowRoot.querySelector("slot"):this.shadowRoot.querySelector("[name=alternate]")}_registerMutationObserver(){const e=this._getSlot();this._observer=new MutationObserver(()=>{this.alternate=this._getContent(),g.log("alternate changed"),this.emitTo("pb-popover-changed",this.alternate)}),this._observer.observe(this,{subtree:!0,childList:!0,characterData:!0}),e&&e.assignedNodes().forEach(e=>{this._observer.observe(e.content?e.content:e,{subtree:!0,childList:!0,characterData:!0})})}get alternate(){return this._getContent()}set alternate(e){this._content=e,this._tippy&&this._tippy.setContent(this._content)}command(e,t){"disable"===e&&(this.disabled=t,this._tippy&&(t?this._tippy.disable():this._tippy.enable()))}firstUpdated(){super.firstUpdated(),this._injectStyles(),this._registerMutationObserver(),this.trigger||(this.trigger=this.persistent?"click":"mouseenter");const e=this.getRootNode();let t;if(this.for?(t=e.getElementById(this.for),t||g.error("<pb-popover> target element %s not found",this.for)):t=this.shadowRoot.getElementById("link"),t){const i={allowHTML:!0,appendTo:e.nodeType===Node.DOCUMENT_NODE?document.body:e,placement:this.placement,interactive:!0,ignoreAttributes:!0,boundary:"viewport",maxWidth:"none",touch:this.touch,hideOnClick:!1,trigger:this.trigger};if(this.stopPropagation&&(i.onTrigger=(e,t)=>{t.stopPropagation()}),this.persistent&&(i.onClickOutside=(e,t)=>{e.hideWithInteractivity(t)}),this.theme&&"none"!==this.theme&&(i.theme=this.theme),this.fallbackPlacement){const e=this.fallbackPlacement.split(" ");i.popperOptions={modifiers:[{name:"flip",options:{fallbackPlacements:e}}]}}this.popupClass&&(i.onCreate=e=>{e.popper.classList.add(this.popupClass)}),i.onShow=e=>{this.remote?this._loadRemoteContent():e.setContent(this._getContent()),this.emitTo("pb-popover-show",{source:this,popup:e})},this._tippy=Ji(t,i)}}async _loadRemoteContent(){const e=this.toAbsoluteURL(this.remote);try{const t=await fetch(e,{method:"GET",mode:"cors",credentials:"same-origin"}),i=await t.text();this.alternate=i}catch(e){g.error("<pb-popover> Error retrieving remote content: %o",e)}}static get styles(){return[t`
|
|
136
136
|
:host {
|
|
@@ -435,7 +435,7 @@ import{x as e,i as t,a as n,p as s,w as r,c as o,b as a,E as l,m as c,B as d}fro
|
|
|
435
435
|
.hidden {
|
|
436
436
|
display: none !important;
|
|
437
437
|
}
|
|
438
|
-
`}getURL(e){if(this.static)return`collections/${this.collection?`${this.collection}/`:""}${e.start||"1"}.html`;const t=super.getURL(e);return this.collection?`${t}/${this.collection}`:t}prepareParameters(e){return(e=this._paramsFromSubforms(e)).sort=this.sortBy,this.filter&&(e.filter=this.filter,e.browse=this.filterBy),this.facets&&(e=Object.assign(e,this.facets)),e}_paramsFromSubforms(e){return this.subforms&&document.querySelectorAll(this.subforms).forEach(t=>{t.serializeForm&&Object.assign(e,t.serializeForm())}),e}getSelected(){const e=[];return this.container?document.querySelectorAll(this.container).forEach(t=>t.querySelectorAll('.document-select input[type="checkbox"]:checked').forEach(t=>{e.push(t.value)})):this.querySelectorAll('.document-select input[type="checkbox"]:checked').forEach(t=>{e.push(t.value)}),e}_filter(){const e=this.shadowRoot.getElementById("filterString"),t=this.shadowRoot.getElementById("filterSelect"),i=e?e.value:this.filter,n=t?t.value:this.filterBy;void 0!==i&&(g.log("<pb-browse-docs> Filter by %s",i),this.filter=i,v.commit(this,{filter:i,filterBy:n}),this.load())}_filterChanged(e){const t=(null==e?void 0:e.target)??this.shadowRoot.getElementById("filterSelect"),i=t?t.value:null;if(i&&i!==this.filterBy){g.log("<pb-browse-docs> Filtering on %s",i),this.filterBy=i;const e=this.shadowRoot.getElementById("filterString");e&&(e.requestParams={field:this.filterBy})}}_sort(e){const t=(null==e?void 0:e.target)??this.shadowRoot.getElementById("sortSelect"),i=t?t.value:null;i&&i!==this.sortBy&&(g.log("<pb-browse-docs> Sorting by %s",i),this.sortBy=i,v.commit(this,{sort:i}),this.load())}_facets(e){e.detail&&e.detail.params&&(v.clearParametersMatching(this,/^(all-|facet-).*/),this.facets=e.detail.params,this.start=1,v.commit(this,e.detail.params)),this.load()}_onLoad(e){window.scrollTo(0,0);const t=e.querySelector("[data-root]"),i=t&&t.getAttribute("data-root"),n=t&&t.classList.contains("writable");this.emitTo("pb-collection",{writable:n,collection:i}),document.querySelectorAll("[can-write]").forEach(e=>{e.disabled=!n}),e.querySelectorAll("[data-collection]").forEach(e=>{e.addEventListener("click",t=>{t.preventDefault(),this.collection=e.getAttribute("data-collection"),this.start=1,v.commit(this,{collection:this.collection}),g.log("<pb-browse-docs> loading collection %s",this.collection),this.load()})})}_handleDelete(e,t){const i=this.shadowRoot.getElementById("deleteDialog"),n=this.getSelected();n.length>0&&(this._selected=n,i.openDialog())}_confirmDelete(){if(!this._file&&!this._selected)return;let e;e=this._selected?this._selected:[this._file],g.log("<pb-browse-docs> Deleting %o",this._file);const t={action:"delete","docs[]":e};this._file=null,this._selected=null,this.load(t)}_loggedIn(e,t){return null!=e&&(!this.group||!!t&&t.indexOf(this.group)>-1)}_canModify(e){return e?"":"hidden"}_handleAutocompleteInput(e){const t=e.detail||{},i=t.value??t.text??"";this.filter=i}_handleAutocompleteSelected(e){const t=e.detail||{},i=t.value??t.text??"";this.filter=i,this._filter()}_handleEnter(e){const t=e.key||e.code||e.keyCode;"Enter"!==t&&"NumpadEnter"!==t&&13!==t||this._filter()}}customElements.define("pb-browse-docs",vn);class _n extends yn{static get properties(){return Object.assign(Object.assign({},super.properties),{},{collection:{type:String},static:{type:Boolean}})}constructor(){super(),this.collection=null,this.static=!1}connectedCallback(){super.connectedCallback(),r("pb-page-ready",()=>{this.collection=v.state.collection,v.subscribe(this,e=>{this.collection=e.collection})})}getURL(e){if(this.static)return`collections/${this.collection?`${this.collection}/`:""}${e.start||"1"}.html`;const t=super.getURL(e);return this.collection?`${t}/${this.collection}`:t}_onLoad(e){window.scrollTo(0,0);const t=e.querySelector("[data-root]"),i=t&&t.getAttribute("data-root"),n=t&&t.classList.contains("writable");this.emitTo("pb-collection",{writable:n,collection:i}),document.querySelectorAll("[can-write]").forEach(e=>{e.disabled=!n}),e.querySelectorAll("[data-collection]").forEach(e=>{e.addEventListener("click",t=>{t.preventDefault(),this.collection=e.getAttribute("data-collection"),this.start=1,this.history&&v.commit(this,{collection:this.collection}),g.log("<pb-browse> loading collection %s",this.collection),this.emitTo("pb-search-resubmit")})})}}customElements.define("pb-browse",_n);class wn extends(s(n)){static get properties(){return Object.assign(Object.assign({},super.properties),{},{path:{type:String,reflect:!0},rootPath:{type:String,attribute:"root-path"},odd:{type:String,reflect:!0},view:{type:String,reflect:!0},disableHistory:{type:Boolean,attribute:"disable-history"},sourceView:{type:String,attribute:"source-view"}})}constructor(){super(),this.path=null,this.rootPath="",this.disableHistory=!1,this._emitScheduled=!1,this._lastEventKey=null}connectedCallback(){super.connectedCallback(),this.disableHistory||(v.state.path&&!this.path&&(this.path=v.state.path),this.view=v.state.view||this.view,this.odd=v.state.odd||this.odd),this._lastEventKey=this._computeEventKey()}attributeChangedCallback(e,t,i){super.attributeChangedCallback(e,t,i),t!==i&&(this._emitScheduled||(this._emitScheduled=!0,setTimeout(()=>{this._emitScheduled=!1;const e=this._computeEventKey();e!==this._lastEventKey&&(this.emitTo("pb-document",this),this._lastEventKey=e)},0)))}_computeEventKey(){return JSON.stringify({path:this.path||"",rootPath:this.rootPath||"",odd:this.odd||"",view:this.view||"",sourceView:this.sourceView||""})}getFileName(){return this.path.replace(/^.*?([^\/]+)$/,"$1")}getCollection(){return this.path.replace(/^(.*?)\/[^\/]+$/,"$1")}getFullPath(){return`${this.rootPath}/${this.path}`}}customElements.define("pb-document",wn);class xn extends(w(s(n))){static get properties(){return Object.assign(Object.assign({},super.properties),{},{direction:{type:String},keyboard:{type:String},rendition:{type:String}})}constructor(){super(),this.direction="forward",this.disabled=!0}connectedCallback(){super.connectedCallback(),this.keyboard&&(this.hotkeys={next:this.keyboard}),this.subscribeTo("pb-update",this._update.bind(this)),this.registerHotkey("next",()=>{window.document.activeElement&&window.document.activeElement!==window.document.body||this.emitTo("pb-navigate",{direction:this.direction})}),this.signalReady()}_update(e){"forward"===this.direction?e.detail.data.next?this.disabled=!1:this.disabled=!0:e.detail.data.previous?this.disabled=!1:this.disabled=!0}_handleClick(){this.emitTo("pb-navigate",{direction:this.direction})}render(){return e`
|
|
438
|
+
`}getURL(e){if(this.static)return`collections/${this.collection?`${this.collection}/`:""}${e.start||"1"}.html`;const t=super.getURL(e);return this.collection?`${t}/${this.collection}`:t}prepareParameters(e){return(e=this._paramsFromSubforms(e)).sort=this.sortBy,this.filter&&(e.filter=this.filter,e.browse=this.filterBy),this.facets&&(e=Object.assign(e,this.facets)),e}_paramsFromSubforms(e){return this.subforms&&document.querySelectorAll(this.subforms).forEach(t=>{t.serializeForm&&Object.assign(e,t.serializeForm())}),e}getSelected(){const e=[];return this.container?document.querySelectorAll(this.container).forEach(t=>t.querySelectorAll('.document-select input[type="checkbox"]:checked').forEach(t=>{e.push(t.value)})):this.querySelectorAll('.document-select input[type="checkbox"]:checked').forEach(t=>{e.push(t.value)}),e}_filter(){const e=this.shadowRoot.getElementById("filterString"),t=this.shadowRoot.getElementById("filterSelect"),i=e?e.value:this.filter,n=t?t.value:this.filterBy;void 0!==i&&(g.log("<pb-browse-docs> Filter by %s",i),this.filter=i,v.commit(this,{filter:i,filterBy:n}),this.load())}_filterChanged(e){const t=(null==e?void 0:e.target)??this.shadowRoot.getElementById("filterSelect"),i=t?t.value:null;if(i&&i!==this.filterBy){g.log("<pb-browse-docs> Filtering on %s",i),this.filterBy=i;const e=this.shadowRoot.getElementById("filterString");e&&(e.requestParams={field:this.filterBy})}}_sort(e){const t=(null==e?void 0:e.target)??this.shadowRoot.getElementById("sortSelect"),i=t?t.value:null;i&&i!==this.sortBy&&(g.log("<pb-browse-docs> Sorting by %s",i),this.sortBy=i,v.commit(this,{sort:i}),this.load())}_facets(e){e.detail&&e.detail.params&&(v.clearParametersMatching(this,/^(all-|facet-).*/),this.facets=e.detail.params,this.start=1,v.commit(this,e.detail.params)),this.load()}_onLoad(e){window.scrollTo(0,0);const t=e.querySelector("[data-root]"),i=t&&t.getAttribute("data-root"),n=t&&t.classList.contains("writable");this.emitTo("pb-collection",{writable:n,collection:i}),document.querySelectorAll("[can-write]").forEach(e=>{e.disabled=!n}),e.querySelectorAll("[data-collection]").forEach(e=>{e.addEventListener("click",t=>{t.preventDefault(),this.collection=e.getAttribute("data-collection"),this.start=1,v.commit(this,{collection:this.collection}),g.log("<pb-browse-docs> loading collection %s",this.collection),this.load()})})}_handleDelete(e,t){const i=this.shadowRoot.getElementById("deleteDialog"),n=this.getSelected();n.length>0&&(this._selected=n,i.openDialog())}_confirmDelete(){if(!this._file&&!this._selected)return;let e;e=this._selected?this._selected:[this._file],g.log("<pb-browse-docs> Deleting %o",this._file);const t={action:"delete","docs[]":e};this._file=null,this._selected=null,this.load(t)}_loggedIn(e,t){return null!=e&&(!this.group||!!t&&t.indexOf(this.group)>-1)}_canModify(e){return e?"":"hidden"}_handleAutocompleteInput(e){const t=e.detail||{},i=t.value??t.text??"";this.filter=i}_handleAutocompleteSelected(e){const t=e.detail||{},i=t.value??t.text??"";this.filter=i,this._filter()}_handleEnter(e){const t=e.key||e.code||e.keyCode;"Enter"!==t&&"NumpadEnter"!==t&&13!==t||this._filter()}}customElements.define("pb-browse-docs",vn);class _n extends yn{static get properties(){return Object.assign(Object.assign({},super.properties),{},{collection:{type:String},static:{type:Boolean}})}constructor(){super(),this.collection=null,this.static=!1}connectedCallback(){super.connectedCallback(),r("pb-page-ready",()=>{this.collection=v.state.collection,v.subscribe(this,e=>{this.collection=e.collection})})}getURL(e){if(this.static)return`collections/${this.collection?`${this.collection}/`:""}${e.start||"1"}.html`;const t=super.getURL(e);return this.collection?`${t}/${this.collection}`:t}_onLoad(e){window.scrollTo(0,0);const t=e.querySelector("[data-root]"),i=t&&t.getAttribute("data-root"),n=t&&t.classList.contains("writable");this.emitTo("pb-collection",{writable:n,collection:i}),document.querySelectorAll("[can-write]").forEach(e=>{e.disabled=!n}),e.querySelectorAll("[data-collection]").forEach(e=>{e.addEventListener("click",t=>{t.preventDefault(),this.collection=e.getAttribute("data-collection"),this.start=1,this.history&&v.commit(this,{collection:this.collection}),g.log("<pb-browse> loading collection %s",this.collection),this.emitTo("pb-search-resubmit")})})}}customElements.define("pb-browse",_n);class wn extends(s(n)){static get properties(){return Object.assign(Object.assign({},super.properties),{},{path:{type:String,reflect:!0},rootPath:{type:String,attribute:"root-path"},odd:{type:String,reflect:!0},view:{type:String,reflect:!0},disableHistory:{type:Boolean,attribute:"disable-history"},sourceView:{type:String,attribute:"source-view"}})}constructor(){super(),this.path=null,this.rootPath="",this.disableHistory=!1,this._emitScheduled=!1,this._lastEventKey=null}connectedCallback(){super.connectedCallback(),this.disableHistory||(v.state.path&&!this.path&&(this.path=v.state.path),this.view=v.state.view||this.view,this.odd=v.state.odd||this.odd),this._lastEventKey=this._computeEventKey()}attributeChangedCallback(e,t,i){super.attributeChangedCallback(e,t,i),t!==i&&(this._emitScheduled||(this._emitScheduled=!0,setTimeout(()=>{this._emitScheduled=!1;const e=this._computeEventKey();e!==this._lastEventKey&&(this.emitTo("pb-document",this),this._lastEventKey=e)},0)))}_computeEventKey(){return JSON.stringify({path:this.path||"",rootPath:this.rootPath||"",odd:this.odd||"",view:this.view||"",sourceView:this.sourceView||""})}getFileName(){return this.path.replace(/^.*?([^\/]+)$/,"$1")}getCollection(){return this.path.replace(/^(.*?)\/[^\/]+$/,"$1")}getFullPath(){return`${this.rootPath}/${this.path}`}}customElements.define("pb-document",wn);class xn extends(w(m(s(n)))){static get properties(){return Object.assign(Object.assign({},super.properties),{},{direction:{type:String},keyboard:{type:String},rendition:{type:String}})}constructor(){super(),this.direction="forward",this.disabled=!0}connectedCallback(){super.connectedCallback(),this.keyboard&&(this.hotkeys={next:this.keyboard}),this.subscribeTo("pb-update",this._update.bind(this)),this.registerHotkey("next",()=>{window.document.activeElement&&window.document.activeElement!==window.document.body||this.emitTo("pb-navigate",{direction:this.direction})}),this.signalReady()}_update(e){"forward"===this.direction?e.detail.data.next?this.disabled=!1:this.disabled=!0:e.detail.data.previous?this.disabled=!1:this.disabled=!0}_handleClick(){this.emitTo("pb-navigate",{direction:this.direction})}render(){return e`
|
|
439
439
|
<button id="button" @click="${this._handleClick}" type="button"><slot></slot></button>
|
|
440
440
|
`}static get styles(){return t`
|
|
441
441
|
:host {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@teipublisher/pb-components",
|
|
3
|
-
"version": "3.0.0-next-4.
|
|
3
|
+
"version": "3.0.0-next-4.20",
|
|
4
4
|
"description": "Collection of webcomponents underlying TEI Publisher",
|
|
5
5
|
"repository": "https://github.com/eeditiones/tei-publisher-components.git",
|
|
6
6
|
"main": "index.html",
|
package/src/pb-navigation.js
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { LitElement, html, css } from 'lit';
|
|
2
2
|
import { pbMixin } from './pb-mixin.js';
|
|
3
3
|
import { pbHotkeys } from './pb-hotkeys.js';
|
|
4
|
+
import { themableMixin } from './theming.js';
|
|
4
5
|
|
|
5
6
|
/**
|
|
6
7
|
* Navigate backward/forward in a document. This component does not implement any functionality itself.
|
|
@@ -11,7 +12,8 @@ import { pbHotkeys } from './pb-hotkeys.js';
|
|
|
11
12
|
* @fires pb-navigate - Fire event indicating that listening components should navigate in the given direction
|
|
12
13
|
* @fires pb-update - When received, updates the state of navigation buttons (disables when no forward/backward navigation possible)
|
|
13
14
|
*/
|
|
14
|
-
|
|
15
|
+
|
|
16
|
+
export class PbNavigation extends pbHotkeys(themableMixin(pbMixin(LitElement))) {
|
|
15
17
|
static get properties() {
|
|
16
18
|
return {
|
|
17
19
|
...super.properties,
|