@swisspost/design-system-components 1.6.0 → 1.6.2

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.
Files changed (129) hide show
  1. package/dist/cjs/{index-b619e205.js → index-e7618bb3.js} +16 -6
  2. package/dist/cjs/index-e7618bb3.js.map +1 -0
  3. package/dist/cjs/index.cjs.js +9 -9
  4. package/dist/cjs/loader.cjs.js +1 -1
  5. package/dist/cjs/package-041a8597.js +7 -0
  6. package/dist/cjs/package-041a8597.js.map +1 -0
  7. package/dist/cjs/post-accordion.cjs.entry.js +2 -2
  8. package/dist/cjs/{post-alert-c037e6a3.js → post-alert-1fb90f2d.js} +4 -4
  9. package/dist/cjs/{post-alert-c037e6a3.js.map → post-alert-1fb90f2d.js.map} +1 -1
  10. package/dist/cjs/post-alert.cjs.entry.js +3 -3
  11. package/dist/cjs/{post-collapsible-7c9d23a2.js → post-collapsible-e46002bb.js} +3 -3
  12. package/dist/cjs/{post-collapsible-7c9d23a2.js.map → post-collapsible-e46002bb.js.map} +1 -1
  13. package/dist/cjs/post-collapsible.cjs.entry.js +3 -3
  14. package/dist/cjs/post-components.cjs.js +2 -2
  15. package/dist/cjs/post-components.cjs.js.map +1 -1
  16. package/dist/cjs/{post-icon-f418f76a.js → post-icon-91f6603a.js} +3 -3
  17. package/dist/cjs/{post-icon-f418f76a.js.map → post-icon-91f6603a.js.map} +1 -1
  18. package/dist/cjs/post-icon.cjs.entry.js +3 -3
  19. package/dist/cjs/{post-tab-header-e08c2a42.js → post-tab-header-a3845fe5.js} +3 -3
  20. package/dist/cjs/{post-tab-header-e08c2a42.js.map → post-tab-header-a3845fe5.js.map} +1 -1
  21. package/dist/cjs/post-tab-header.cjs.entry.js +3 -3
  22. package/dist/cjs/{post-tab-panel-721f7f32.js → post-tab-panel-b7326ff8.js} +3 -3
  23. package/dist/cjs/{post-tab-panel-721f7f32.js.map → post-tab-panel-b7326ff8.js.map} +1 -1
  24. package/dist/cjs/post-tab-panel.cjs.entry.js +3 -3
  25. package/dist/cjs/{post-tabs-4bcc867b.js → post-tabs-384a1fab.js} +3 -3
  26. package/dist/cjs/{post-tabs-4bcc867b.js.map → post-tabs-384a1fab.js.map} +1 -1
  27. package/dist/cjs/post-tabs.cjs.entry.js +3 -3
  28. package/dist/cjs/{post-tooltip-261c5cda.js → post-tooltip-2becc97a.js} +90 -18
  29. package/dist/cjs/post-tooltip-2becc97a.js.map +1 -0
  30. package/dist/cjs/post-tooltip.cjs.entry.js +3 -3
  31. package/dist/collection/collection-manifest.json +1 -1
  32. package/dist/collection/components/post-alert/post-alert.css +1 -1
  33. package/dist/collection/components/post-tooltip/post-tooltip.css +1 -1
  34. package/dist/collection/components/post-tooltip/post-tooltip.js +1 -1
  35. package/dist/components/package.js +1 -1
  36. package/dist/components/post-alert2.js +1 -1
  37. package/dist/components/post-alert2.js.map +1 -1
  38. package/dist/components/post-tooltip2.js +87 -15
  39. package/dist/components/post-tooltip2.js.map +1 -1
  40. package/dist/docs.json +5 -5
  41. package/dist/esm/{index-4eff5fc5.js → index-08d62a75.js} +16 -6
  42. package/dist/esm/index-08d62a75.js.map +1 -0
  43. package/dist/esm/index.js +9 -9
  44. package/dist/esm/loader.js +2 -2
  45. package/dist/esm/package-a962a93d.js +5 -0
  46. package/dist/esm/package-a962a93d.js.map +1 -0
  47. package/dist/esm/post-accordion.entry.js +2 -2
  48. package/dist/esm/{post-alert-5dd43c8b.js → post-alert-46926902.js} +4 -4
  49. package/dist/esm/{post-alert-5dd43c8b.js.map → post-alert-46926902.js.map} +1 -1
  50. package/dist/esm/post-alert.entry.js +3 -3
  51. package/dist/esm/{post-collapsible-26dc2340.js → post-collapsible-f1b6592d.js} +3 -3
  52. package/dist/esm/{post-collapsible-26dc2340.js.map → post-collapsible-f1b6592d.js.map} +1 -1
  53. package/dist/esm/post-collapsible.entry.js +3 -3
  54. package/dist/esm/post-components.js +3 -3
  55. package/dist/esm/post-components.js.map +1 -1
  56. package/dist/esm/{post-icon-fb0eb8aa.js → post-icon-fb627697.js} +3 -3
  57. package/dist/esm/{post-icon-fb0eb8aa.js.map → post-icon-fb627697.js.map} +1 -1
  58. package/dist/esm/post-icon.entry.js +3 -3
  59. package/dist/esm/{post-tab-header-deebc551.js → post-tab-header-84b12382.js} +3 -3
  60. package/dist/esm/{post-tab-header-deebc551.js.map → post-tab-header-84b12382.js.map} +1 -1
  61. package/dist/esm/post-tab-header.entry.js +3 -3
  62. package/dist/esm/{post-tab-panel-4b820f71.js → post-tab-panel-216c0b6e.js} +3 -3
  63. package/dist/esm/{post-tab-panel-4b820f71.js.map → post-tab-panel-216c0b6e.js.map} +1 -1
  64. package/dist/esm/post-tab-panel.entry.js +3 -3
  65. package/dist/esm/{post-tabs-2d8d6a33.js → post-tabs-e235d663.js} +3 -3
  66. package/dist/esm/{post-tabs-2d8d6a33.js.map → post-tabs-e235d663.js.map} +1 -1
  67. package/dist/esm/post-tabs.entry.js +3 -3
  68. package/dist/esm/{post-tooltip-811309c5.js → post-tooltip-47f2146d.js} +90 -18
  69. package/dist/esm/post-tooltip-47f2146d.js.map +1 -0
  70. package/dist/esm/post-tooltip.entry.js +3 -3
  71. package/dist/post-components/index.esm.js +1 -1
  72. package/dist/post-components/{p-332eef46.js → p-03fe58da.js} +2 -2
  73. package/dist/post-components/p-151b55c0.entry.js +2 -0
  74. package/dist/post-components/{p-574acdb0.js → p-21549a50.js} +2 -2
  75. package/dist/post-components/p-4cb18ddf.js +9 -0
  76. package/dist/post-components/p-4cb18ddf.js.map +1 -0
  77. package/dist/post-components/p-4e24f13b.entry.js +2 -0
  78. package/dist/post-components/{p-1a8a8ef2.js → p-57b48dff.js} +2 -2
  79. package/dist/post-components/{p-c6b73d6e.js → p-57fdeeab.js} +2 -2
  80. package/dist/post-components/{p-c6b73d6e.js.map → p-57fdeeab.js.map} +1 -1
  81. package/dist/post-components/p-58cc7b5a.entry.js +2 -0
  82. package/dist/post-components/p-6cafa644.entry.js +2 -0
  83. package/dist/post-components/p-7f370d77.entry.js +2 -0
  84. package/dist/post-components/p-7f4eba57.js +2 -0
  85. package/dist/post-components/p-8c006e7d.js +3 -0
  86. package/dist/post-components/p-8c006e7d.js.map +1 -0
  87. package/dist/post-components/p-aee47e1a.entry.js +2 -0
  88. package/dist/post-components/{p-97000cb6.js → p-b5e1fd89.js} +2 -2
  89. package/dist/post-components/{p-e9dc9039.entry.js → p-ce907090.entry.js} +2 -2
  90. package/dist/post-components/p-d13111f2.js +2 -0
  91. package/dist/post-components/p-f35c2075.entry.js +2 -0
  92. package/dist/post-components/post-components.esm.js +1 -1
  93. package/dist/post-components/post-components.esm.js.map +1 -1
  94. package/package.json +15 -15
  95. package/dist/cjs/index-b619e205.js.map +0 -1
  96. package/dist/cjs/package-7c4db872.js +0 -7
  97. package/dist/cjs/package-7c4db872.js.map +0 -1
  98. package/dist/cjs/post-tooltip-261c5cda.js.map +0 -1
  99. package/dist/esm/index-4eff5fc5.js.map +0 -1
  100. package/dist/esm/package-3bbdb32c.js +0 -5
  101. package/dist/esm/package-3bbdb32c.js.map +0 -1
  102. package/dist/esm/post-tooltip-811309c5.js.map +0 -1
  103. package/dist/post-components/p-01e8dfe6.js +0 -9
  104. package/dist/post-components/p-01e8dfe6.js.map +0 -1
  105. package/dist/post-components/p-0a49c1a3.entry.js +0 -2
  106. package/dist/post-components/p-27092ac3.entry.js +0 -2
  107. package/dist/post-components/p-541142fd.js +0 -2
  108. package/dist/post-components/p-66460e3f.entry.js +0 -2
  109. package/dist/post-components/p-810ee105.entry.js +0 -2
  110. package/dist/post-components/p-939df031.entry.js +0 -2
  111. package/dist/post-components/p-94b3f291.entry.js +0 -2
  112. package/dist/post-components/p-a7649277.js +0 -3
  113. package/dist/post-components/p-a7649277.js.map +0 -1
  114. package/dist/post-components/p-abd149b3.entry.js +0 -2
  115. package/dist/post-components/p-d4fb9f16.js +0 -2
  116. /package/dist/post-components/{p-332eef46.js.map → p-03fe58da.js.map} +0 -0
  117. /package/dist/post-components/{p-0a49c1a3.entry.js.map → p-151b55c0.entry.js.map} +0 -0
  118. /package/dist/post-components/{p-574acdb0.js.map → p-21549a50.js.map} +0 -0
  119. /package/dist/post-components/{p-27092ac3.entry.js.map → p-4e24f13b.entry.js.map} +0 -0
  120. /package/dist/post-components/{p-1a8a8ef2.js.map → p-57b48dff.js.map} +0 -0
  121. /package/dist/post-components/{p-541142fd.js.map → p-58cc7b5a.entry.js.map} +0 -0
  122. /package/dist/post-components/{p-66460e3f.entry.js.map → p-6cafa644.entry.js.map} +0 -0
  123. /package/dist/post-components/{p-810ee105.entry.js.map → p-7f370d77.entry.js.map} +0 -0
  124. /package/dist/post-components/{p-d4fb9f16.js.map → p-7f4eba57.js.map} +0 -0
  125. /package/dist/post-components/{p-939df031.entry.js.map → p-aee47e1a.entry.js.map} +0 -0
  126. /package/dist/post-components/{p-97000cb6.js.map → p-b5e1fd89.js.map} +0 -0
  127. /package/dist/post-components/{p-e9dc9039.entry.js.map → p-ce907090.entry.js.map} +0 -0
  128. /package/dist/post-components/{p-94b3f291.entry.js.map → p-d13111f2.js.map} +0 -0
  129. /package/dist/post-components/{p-abd149b3.entry.js.map → p-f35c2075.entry.js.map} +0 -0
@@ -1,9 +0,0 @@
1
- import{r as t,h as e,H as n,g as r}from"./p-a7649277.js";import{v as o}from"./p-541142fd.js";import{c as i}from"./p-1339f8cd.js";const a=Math.min;const s=Math.max;const l=Math.round;const u=Math.floor;const c=t=>({x:t,y:t});const f={left:"right",right:"left",bottom:"top",top:"bottom"};const d={start:"end",end:"start"};function p(t,e,n){return s(t,a(e,n))}function b(t,e){return typeof t==="function"?t(e):t}function v(t){return t.split("-")[0]}function m(t){return t.split("-")[1]}function g(t){return t==="x"?"y":"x"}function h(t){return t==="y"?"height":"width"}function x(t){return["top","bottom"].includes(v(t))?"y":"x"}function y(t){return g(x(t))}function w(t,e,n){if(n===void 0){n=false}const r=m(t);const o=y(t);const i=h(o);let a=o==="x"?r===(n?"end":"start")?"right":"left":r==="start"?"bottom":"top";if(e.reference[i]>e.floating[i]){a=E(a)}return[a,E(a)]}function S(t){const e=E(t);return[A(t),e,A(e)]}function A(t){return t.replace(/start|end/g,(t=>d[t]))}function O(t,e,n){const r=["left","right"];const o=["right","left"];const i=["top","bottom"];const a=["bottom","top"];switch(t){case"top":case"bottom":if(n)return e?o:r;return e?r:o;case"left":case"right":return e?i:a;default:return[]}}function k(t,e,n,r){const o=m(t);let i=O(v(t),n==="start",r);if(o){i=i.map((t=>t+"-"+o));if(e){i=i.concat(i.map(A))}}return i}function E(t){return t.replace(/left|right|bottom|top/g,(t=>f[t]))}function M(t){return{top:0,right:0,bottom:0,left:0,...t}}function T(t){return typeof t!=="number"?M(t):{top:t,right:t,bottom:t,left:t}}function P(t){return{...t,top:t.y,left:t.x,right:t.x+t.width,bottom:t.y+t.height}}function I(t,e,n){let{reference:r,floating:o}=t;const i=x(e);const a=y(e);const s=h(a);const l=v(e);const u=i==="y";const c=r.x+r.width/2-o.width/2;const f=r.y+r.height/2-o.height/2;const d=r[s]/2-o[s]/2;let p;switch(l){case"top":p={x:c,y:r.y-o.height};break;case"bottom":p={x:c,y:r.y+r.height};break;case"right":p={x:r.x+r.width,y:f};break;case"left":p={x:r.x-o.width,y:f};break;default:p={x:r.x,y:r.y}}switch(m(e)){case"start":p[a]-=d*(n&&u?-1:1);break;case"end":p[a]+=d*(n&&u?-1:1);break}return p}const B=async(t,e,n)=>{const{placement:r="bottom",strategy:o="absolute",middleware:i=[],platform:a}=n;const s=i.filter(Boolean);const l=await(a.isRTL==null?void 0:a.isRTL(e));let u=await a.getElementRects({reference:t,floating:e,strategy:o});let{x:c,y:f}=I(u,r,l);let d=r;let p={};let b=0;for(let n=0;n<s.length;n++){const{name:i,fn:v}=s[n];const{x:m,y:g,data:h,reset:x}=await v({x:c,y:f,initialPlacement:r,placement:d,strategy:o,middlewareData:p,rects:u,platform:a,elements:{reference:t,floating:e}});c=m!=null?m:c;f=g!=null?g:f;p={...p,[i]:{...p[i],...h}};if(x&&b<=50){b++;if(typeof x==="object"){if(x.placement){d=x.placement}if(x.rects){u=x.rects===true?await a.getElementRects({reference:t,floating:e,strategy:o}):x.rects}({x:c,y:f}=I(u,d,l))}n=-1;continue}}return{x:c,y:f,placement:d,strategy:o,middlewareData:p}};async function C(t,e){var n;if(e===void 0){e={}}const{x:r,y:o,platform:i,rects:a,elements:s,strategy:l}=t;const{boundary:u="clippingAncestors",rootBoundary:c="viewport",elementContext:f="floating",altBoundary:d=false,padding:p=0}=b(e,t);const v=T(p);const m=f==="floating"?"reference":"floating";const g=s[d?m:f];const h=P(await i.getClippingRect({element:((n=await(i.isElement==null?void 0:i.isElement(g)))!=null?n:true)?g:g.contextElement||await(i.getDocumentElement==null?void 0:i.getDocumentElement(s.floating)),boundary:u,rootBoundary:c,strategy:l}));const x=f==="floating"?{...a.floating,x:r,y:o}:a.reference;const y=await(i.getOffsetParent==null?void 0:i.getOffsetParent(s.floating));const w=await(i.isElement==null?void 0:i.isElement(y))?await(i.getScale==null?void 0:i.getScale(y))||{x:1,y:1}:{x:1,y:1};const S=P(i.convertOffsetParentRelativeRectToViewportRelativeRect?await i.convertOffsetParentRelativeRectToViewportRelativeRect({rect:x,offsetParent:y,strategy:l}):x);return{top:(h.top-S.top+v.top)/w.y,bottom:(S.bottom-h.bottom+v.bottom)/w.y,left:(h.left-S.left+v.left)/w.x,right:(S.right-h.right+v.right)/w.x}}const W=t=>({name:"arrow",options:t,async fn(e){const{x:n,y:r,placement:o,rects:i,platform:s,elements:l}=e;const{element:u,padding:c=0}=b(t,e)||{};if(u==null){return{}}const f=T(c);const d={x:n,y:r};const v=y(o);const g=h(v);const x=await s.getDimensions(u);const w=v==="y";const S=w?"top":"left";const A=w?"bottom":"right";const O=w?"clientHeight":"clientWidth";const k=i.reference[g]+i.reference[v]-d[v]-i.floating[g];const E=d[v]-i.reference[v];const M=await(s.getOffsetParent==null?void 0:s.getOffsetParent(u));let P=M?M[O]:0;if(!P||!await(s.isElement==null?void 0:s.isElement(M))){P=l.floating[O]||i.floating[g]}const I=k/2-E/2;const B=P/2-x[g]/2-1;const C=a(f[S],B);const W=a(f[A],B);const R=C;const F=P-x[g]-W;const j=P/2-x[g]/2+I;const L=p(R,j,F);const $=m(o)!=null&&j!=L&&i.reference[g]/2-(j<R?C:W)-x[g]/2<0;const D=$?j<R?R-j:F-j:0;return{[v]:d[v]-D,data:{[v]:L,centerOffset:j-L+D}}}});const R=function(t){if(t===void 0){t={}}return{name:"flip",options:t,async fn(e){var n;const{placement:r,middlewareData:o,rects:i,initialPlacement:a,platform:s,elements:l}=e;const{mainAxis:u=true,crossAxis:c=true,fallbackPlacements:f,fallbackStrategy:d="bestFit",fallbackAxisSideDirection:p="none",flipAlignment:m=true,...g}=b(t,e);const h=v(r);const x=v(a)===a;const y=await(s.isRTL==null?void 0:s.isRTL(l.floating));const A=f||(x||!m?[E(a)]:S(a));if(!f&&p!=="none"){A.push(...k(a,m,p,y))}const O=[a,...A];const M=await C(e,g);const T=[];let P=((n=o.flip)==null?void 0:n.overflows)||[];if(u){T.push(M[h])}if(c){const t=w(r,i,y);T.push(M[t[0]],M[t[1]])}P=[...P,{placement:r,overflows:T}];if(!T.every((t=>t<=0))){var I,B;const t=(((I=o.flip)==null?void 0:I.index)||0)+1;const e=O[t];if(e){return{data:{index:t,overflows:P},reset:{placement:e}}}let n=(B=P.filter((t=>t.overflows[0]<=0)).sort(((t,e)=>t.overflows[1]-e.overflows[1]))[0])==null?void 0:B.placement;if(!n){switch(d){case"bestFit":{var W;const t=(W=P.map((t=>[t.placement,t.overflows.filter((t=>t>0)).reduce(((t,e)=>t+e),0)])).sort(((t,e)=>t[1]-e[1]))[0])==null?void 0:W[0];if(t){n=t}break}case"initialPlacement":n=a;break}}if(r!==n){return{reset:{placement:n}}}}return{}}}};function F(t){const e=a(...t.map((t=>t.left)));const n=a(...t.map((t=>t.top)));const r=s(...t.map((t=>t.right)));const o=s(...t.map((t=>t.bottom)));return{x:e,y:n,width:r-e,height:o-n}}function j(t){const e=t.slice().sort(((t,e)=>t.y-e.y));const n=[];let r=null;for(let t=0;t<e.length;t++){const o=e[t];if(!r||o.y-r.y>r.height/2){n.push([o])}else{n[n.length-1].push(o)}r=o}return n.map((t=>P(F(t))))}const L=function(t){if(t===void 0){t={}}return{name:"inline",options:t,async fn(e){const{placement:n,elements:r,rects:o,platform:i,strategy:l}=e;const{padding:u=2,x:c,y:f}=b(t,e);const d=Array.from(await(i.getClientRects==null?void 0:i.getClientRects(r.reference))||[]);const p=j(d);const m=P(F(d));const g=T(u);function h(){if(p.length===2&&p[0].left>p[1].right&&c!=null&&f!=null){return p.find((t=>c>t.left-g.left&&c<t.right+g.right&&f>t.top-g.top&&f<t.bottom+g.bottom))||m}if(p.length>=2){if(x(n)==="y"){const t=p[0];const e=p[p.length-1];const r=v(n)==="top";const o=t.top;const i=e.bottom;const a=r?t.left:e.left;const s=r?t.right:e.right;const l=s-a;const u=i-o;return{top:o,bottom:i,left:a,right:s,width:l,height:u,x:a,y:o}}const t=v(n)==="left";const e=s(...p.map((t=>t.right)));const r=a(...p.map((t=>t.left)));const o=p.filter((n=>t?n.left===r:n.right===e));const i=o[0].top;const l=o[o.length-1].bottom;const u=r;const c=e;const f=c-u;const d=l-i;return{top:i,bottom:l,left:u,right:c,width:f,height:d,x:u,y:i}}return m}const y=await i.getElementRects({reference:{getBoundingClientRect:h},floating:r.floating,strategy:l});if(o.reference.x!==y.reference.x||o.reference.y!==y.reference.y||o.reference.width!==y.reference.width||o.reference.height!==y.reference.height){return{reset:{rects:y}}}return{}}}};async function $(t,e){const{placement:n,platform:r,elements:o}=t;const i=await(r.isRTL==null?void 0:r.isRTL(o.floating));const a=v(n);const s=m(n);const l=x(n)==="y";const u=["left","top"].includes(a)?-1:1;const c=i&&l?-1:1;const f=b(e,t);let{mainAxis:d,crossAxis:p,alignmentAxis:g}=typeof f==="number"?{mainAxis:f,crossAxis:0,alignmentAxis:null}:{mainAxis:0,crossAxis:0,alignmentAxis:null,...f};if(s&&typeof g==="number"){p=s==="end"?g*-1:g}return l?{x:p*c,y:d*u}:{x:d*u,y:p*c}}const D=function(t){if(t===void 0){t=0}return{name:"offset",options:t,async fn(e){const{x:n,y:r}=e;const o=await $(e,t);return{x:n+o.x,y:r+o.y,data:o}}}};const Z=function(t){if(t===void 0){t={}}return{name:"shift",options:t,async fn(e){const{x:n,y:r,placement:o}=e;const{mainAxis:i=true,crossAxis:a=false,limiter:s={fn:t=>{let{x:e,y:n}=t;return{x:e,y:n}}},...l}=b(t,e);const u={x:n,y:r};const c=await C(e,l);const f=x(v(o));const d=g(f);let m=u[d];let h=u[f];if(i){const t=d==="y"?"top":"left";const e=d==="y"?"bottom":"right";const n=m+c[t];const r=m-c[e];m=p(n,m,r)}if(a){const t=f==="y"?"top":"left";const e=f==="y"?"bottom":"right";const n=h+c[t];const r=h-c[e];h=p(n,h,r)}const y=s.fn({...e,[d]:m,[f]:h});return{...y,data:{x:y.x-n,y:y.y-r}}}}};function N(t){if(X(t)){return(t.nodeName||"").toLowerCase()}return"#document"}function H(t){var e;return(t==null?void 0:(e=t.ownerDocument)==null?void 0:e.defaultView)||window}function G(t){var e;return(e=(X(t)?t.ownerDocument:t.document)||window.document)==null?void 0:e.documentElement}function X(t){return t instanceof Node||t instanceof H(t).Node}function z(t){return t instanceof Element||t instanceof H(t).Element}function K(t){return t instanceof HTMLElement||t instanceof H(t).HTMLElement}function q(t){if(typeof ShadowRoot==="undefined"){return false}return t instanceof ShadowRoot||t instanceof H(t).ShadowRoot}function V(t){const{overflow:e,overflowX:n,overflowY:r,display:o}=tt(t);return/auto|scroll|overlay|hidden|clip/.test(e+r+n)&&!["inline","contents"].includes(o)}function _(t){return["table","td","th"].includes(N(t))}function J(t){const e=Y();const n=tt(t);return n.transform!=="none"||n.perspective!=="none"||(n.containerType?n.containerType!=="normal":false)||!e&&(n.backdropFilter?n.backdropFilter!=="none":false)||!e&&(n.filter?n.filter!=="none":false)||["transform","perspective","filter"].some((t=>(n.willChange||"").includes(t)))||["paint","layout","strict","content"].some((t=>(n.contain||"").includes(t)))}function U(t){let e=nt(t);while(K(e)&&!Q(e)){if(J(e)){return e}else{e=nt(e)}}return null}function Y(){if(typeof CSS==="undefined"||!CSS.supports)return false;return CSS.supports("-webkit-backdrop-filter","none")}function Q(t){return["html","body","#document"].includes(N(t))}function tt(t){return H(t).getComputedStyle(t)}function et(t){if(z(t)){return{scrollLeft:t.scrollLeft,scrollTop:t.scrollTop}}return{scrollLeft:t.pageXOffset,scrollTop:t.pageYOffset}}function nt(t){if(N(t)==="html"){return t}const e=t.assignedSlot||t.parentNode||q(t)&&t.host||G(t);return q(e)?e.host:e}function rt(t){const e=nt(t);if(Q(e)){return t.ownerDocument?t.ownerDocument.body:t.body}if(K(e)&&V(e)){return e}return rt(e)}function ot(t,e){var n;if(e===void 0){e=[]}const r=rt(t);const o=r===((n=t.ownerDocument)==null?void 0:n.body);const i=H(r);if(o){return e.concat(i,i.visualViewport||[],V(r)?r:[])}return e.concat(r,ot(r))}function it(t){const e=tt(t);let n=parseFloat(e.width)||0;let r=parseFloat(e.height)||0;const o=K(t);const i=o?t.offsetWidth:n;const a=o?t.offsetHeight:r;const s=l(n)!==i||l(r)!==a;if(s){n=i;r=a}return{width:n,height:r,$:s}}function at(t){return!z(t)?t.contextElement:t}function st(t){const e=at(t);if(!K(e)){return c(1)}const n=e.getBoundingClientRect();const{width:r,height:o,$:i}=it(e);let a=(i?l(n.width):n.width)/r;let s=(i?l(n.height):n.height)/o;if(!a||!Number.isFinite(a)){a=1}if(!s||!Number.isFinite(s)){s=1}return{x:a,y:s}}const lt=c(0);function ut(t){const e=H(t);if(!Y()||!e.visualViewport){return lt}return{x:e.visualViewport.offsetLeft,y:e.visualViewport.offsetTop}}function ct(t,e,n){if(e===void 0){e=false}if(!n||e&&n!==H(t)){return false}return e}function ft(t,e,n,r){if(e===void 0){e=false}if(n===void 0){n=false}const o=t.getBoundingClientRect();const i=at(t);let a=c(1);if(e){if(r){if(z(r)){a=st(r)}}else{a=st(t)}}const s=ct(i,n,r)?ut(i):c(0);let l=(o.left+s.x)/a.x;let u=(o.top+s.y)/a.y;let f=o.width/a.x;let d=o.height/a.y;if(i){const t=H(i);const e=r&&z(r)?H(r):r;let n=t.frameElement;while(n&&r&&e!==t){const t=st(n);const e=n.getBoundingClientRect();const r=tt(n);const o=e.left+(n.clientLeft+parseFloat(r.paddingLeft))*t.x;const i=e.top+(n.clientTop+parseFloat(r.paddingTop))*t.y;l*=t.x;u*=t.y;f*=t.x;d*=t.y;l+=o;u+=i;n=H(n).frameElement}}return P({width:f,height:d,x:l,y:u})}function dt(t){let{rect:e,offsetParent:n,strategy:r}=t;const o=K(n);const i=G(n);if(n===i){return e}let a={scrollLeft:0,scrollTop:0};let s=c(1);const l=c(0);if(o||!o&&r!=="fixed"){if(N(n)!=="body"||V(i)){a=et(n)}if(K(n)){const t=ft(n);s=st(n);l.x=t.x+n.clientLeft;l.y=t.y+n.clientTop}}return{width:e.width*s.x,height:e.height*s.y,x:e.x*s.x-a.scrollLeft*s.x+l.x,y:e.y*s.y-a.scrollTop*s.y+l.y}}function pt(t){return Array.from(t.getClientRects())}function bt(t){return ft(G(t)).left+et(t).scrollLeft}function vt(t){const e=G(t);const n=et(t);const r=t.ownerDocument.body;const o=s(e.scrollWidth,e.clientWidth,r.scrollWidth,r.clientWidth);const i=s(e.scrollHeight,e.clientHeight,r.scrollHeight,r.clientHeight);let a=-n.scrollLeft+bt(t);const l=-n.scrollTop;if(tt(r).direction==="rtl"){a+=s(e.clientWidth,r.clientWidth)-o}return{width:o,height:i,x:a,y:l}}function mt(t,e){const n=H(t);const r=G(t);const o=n.visualViewport;let i=r.clientWidth;let a=r.clientHeight;let s=0;let l=0;if(o){i=o.width;a=o.height;const t=Y();if(!t||t&&e==="fixed"){s=o.offsetLeft;l=o.offsetTop}}return{width:i,height:a,x:s,y:l}}function gt(t,e){const n=ft(t,true,e==="fixed");const r=n.top+t.clientTop;const o=n.left+t.clientLeft;const i=K(t)?st(t):c(1);const a=t.clientWidth*i.x;const s=t.clientHeight*i.y;const l=o*i.x;const u=r*i.y;return{width:a,height:s,x:l,y:u}}function ht(t,e,n){let r;if(e==="viewport"){r=mt(t,n)}else if(e==="document"){r=vt(G(t))}else if(z(e)){r=gt(e,n)}else{const n=ut(t);r={...e,x:e.x-n.x,y:e.y-n.y}}return P(r)}function xt(t,e){const n=nt(t);if(n===e||!z(n)||Q(n)){return false}return tt(n).position==="fixed"||xt(n,e)}function yt(t,e){const n=e.get(t);if(n){return n}let r=ot(t).filter((t=>z(t)&&N(t)!=="body"));let o=null;const i=tt(t).position==="fixed";let a=i?nt(t):t;while(z(a)&&!Q(a)){const e=tt(a);const n=J(a);if(!n&&e.position==="fixed"){o=null}const s=i?!n&&!o:!n&&e.position==="static"&&!!o&&["absolute","fixed"].includes(o.position)||V(a)&&!n&&xt(t,a);if(s){r=r.filter((t=>t!==a))}else{o=e}a=nt(a)}e.set(t,r);return r}function wt(t){let{element:e,boundary:n,rootBoundary:r,strategy:o}=t;const i=n==="clippingAncestors"?yt(e,this._c):[].concat(n);const l=[...i,r];const u=l[0];const c=l.reduce(((t,n)=>{const r=ht(e,n,o);t.top=s(r.top,t.top);t.right=a(r.right,t.right);t.bottom=a(r.bottom,t.bottom);t.left=s(r.left,t.left);return t}),ht(e,u,o));return{width:c.right-c.left,height:c.bottom-c.top,x:c.left,y:c.top}}function St(t){return it(t)}function At(t,e,n){const r=K(e);const o=G(e);const i=n==="fixed";const a=ft(t,true,i,e);let s={scrollLeft:0,scrollTop:0};const l=c(0);if(r||!r&&!i){if(N(e)!=="body"||V(o)){s=et(e)}if(r){const t=ft(e,true,i,e);l.x=t.x+e.clientLeft;l.y=t.y+e.clientTop}else if(o){l.x=bt(o)}}return{x:a.left+s.scrollLeft-l.x,y:a.top+s.scrollTop-l.y,width:a.width,height:a.height}}function Ot(t,e){if(!K(t)||tt(t).position==="fixed"){return null}if(e){return e(t)}return t.offsetParent}function kt(t,e){const n=H(t);if(!K(t)){return n}let r=Ot(t,e);while(r&&_(r)&&tt(r).position==="static"){r=Ot(r,e)}if(r&&(N(r)==="html"||N(r)==="body"&&tt(r).position==="static"&&!J(r))){return n}return r||U(t)||n}const Et=async function(t){let{reference:e,floating:n,strategy:r}=t;const o=this.getOffsetParent||kt;const i=this.getDimensions;return{reference:At(e,await o(n),r),floating:{x:0,y:0,...await i(n)}}};function Mt(t){return tt(t).direction==="rtl"}const Tt={convertOffsetParentRelativeRectToViewportRelativeRect:dt,getDocumentElement:G,getClippingRect:wt,getOffsetParent:kt,getElementRects:Et,getClientRects:pt,getDimensions:St,getScale:st,isElement:z,isRTL:Mt};function Pt(t,e){let n=null;let r;const o=G(t);function i(){clearTimeout(r);n&&n.disconnect();n=null}function l(c,f){if(c===void 0){c=false}if(f===void 0){f=1}i();const{left:d,top:p,width:b,height:v}=t.getBoundingClientRect();if(!c){e()}if(!b||!v){return}const m=u(p);const g=u(o.clientWidth-(d+b));const h=u(o.clientHeight-(p+v));const x=u(d);const y=-m+"px "+-g+"px "+-h+"px "+-x+"px";const w={rootMargin:y,threshold:s(0,a(1,f))||1};let S=true;function A(t){const e=t[0].intersectionRatio;if(e!==f){if(!S){return l()}if(!e){r=setTimeout((()=>{l(false,1e-7)}),100)}else{l(false,e)}}S=false}try{n=new IntersectionObserver(A,{...w,root:o.ownerDocument})}catch(t){n=new IntersectionObserver(A,w)}n.observe(t)}l(true);return i}function It(t,e,n,r){if(r===void 0){r={}}const{ancestorScroll:o=true,ancestorResize:i=true,elementResize:a=typeof ResizeObserver==="function",layoutShift:s=typeof IntersectionObserver==="function",animationFrame:l=false}=r;const u=at(t);const c=o||i?[...u?ot(u):[],...ot(e)]:[];c.forEach((t=>{o&&t.addEventListener("scroll",n,{passive:true});i&&t.addEventListener("resize",n)}));const f=u&&s?Pt(u,n):null;let d=-1;let p=null;if(a){p=new ResizeObserver((t=>{let[r]=t;if(r&&r.target===u&&p){p.unobserve(e);cancelAnimationFrame(d);d=requestAnimationFrame((()=>{p&&p.observe(e)}))}n()}));if(u&&!l){p.observe(u)}p.observe(e)}let b;let v=l?ft(t):null;if(l){m()}function m(){const e=ft(t);if(v&&(e.x!==v.x||e.y!==v.y||e.width!==v.width||e.height!==v.height)){n()}v=e;b=requestAnimationFrame(m)}n();return()=>{c.forEach((t=>{o&&t.removeEventListener("scroll",n);i&&t.removeEventListener("resize",n)}));f&&f();p&&p.disconnect();p=null;if(l){cancelAnimationFrame(b)}}}const Bt=(t,e,n)=>{const r=new Map;const o={platform:Tt,...n};const i={...o.platform,_c:r};return B(t,e,{...o,platform:i})};function Ct(t){if(!t){return[]}if(Array.isArray(t)){return t}if(t.nodeType!==undefined){return[t]}if(typeof t==="string"){t=document.querySelectorAll(t)}if(t.length!==undefined){return[].slice.call(t,0)}throw new TypeError("unexpected input "+String(t))}function Wt(t){var e=t.context,n=t.label,r=n===undefined?"context-to-element":n,o=t.resolveDocument,i=t.defaultToDocument;var a=Ct(e)[0];if(o&&a&&a.nodeType===Node.DOCUMENT_NODE){a=a.documentElement}if(!a&&i){return document.documentElement}if(!a){throw new TypeError(r+" requires valid options.context")}if(a.nodeType!==Node.ELEMENT_NODE&&a.nodeType!==Node.DOCUMENT_FRAGMENT_NODE){throw new TypeError(r+" requires options.context to be an Element")}return a}function Rt(){var t=arguments.length>0&&arguments[0]!==undefined?arguments[0]:{},e=t.context;var n=[];var r=Wt({label:"get/parents",context:e});while(r){n.push(r);r=r.parentNode;if(r&&r.nodeType!==Node.ELEMENT_NODE){r=null}}return n}var Ft=["matches","webkitMatchesSelector","mozMatchesSelector","msMatchesSelector"];var jt=null;function Lt(t){Ft.some((function(e){if(!t[e]){return false}jt=e;return true}))}function $t(t,e){if(!jt){Lt(t)}return t[jt](e)}var Dt=typeof globalThis!=="undefined"?globalThis:typeof window!=="undefined"?window:typeof global!=="undefined"?global:typeof self!=="undefined"?self:{};function Zt(t,e,n){return n={path:e,exports:{},require:function(t,e){return Nt()}},t(n,n.exports),n.exports}function Nt(){throw new Error("Dynamic requires are not currently supported by @rollup/plugin-commonjs")}var Ht=Zt((function(t,e){(function(){var n={function:true,object:true};var r=n[typeof window]&&window||this;var o=r;var i=n["object"]&&e;var a=n["object"]&&t&&!t.nodeType&&t;var s=i&&a&&typeof Dt=="object"&&Dt;if(s&&(s.global===s||s.window===s||s.self===s)){r=s}var l=Math.pow(2,53)-1;var u=/\bOpera/;var c=this;var f=Object.prototype;var d=f.hasOwnProperty;var p=f.toString;function b(t){t=String(t);return t.charAt(0).toUpperCase()+t.slice(1)}function v(t,e,n){var r={"10.0":"10",6.4:"10 Technical Preview",6.3:"8.1",6.2:"8",6.1:"Server 2008 R2 / 7","6.0":"Server 2008 / Vista",5.2:"Server 2003 / XP 64-bit",5.1:"XP",5.01:"2000 SP1","5.0":"2000","4.0":"NT","4.90":"ME"};if(e&&n&&/^Win/i.test(t)&&!/^Windows Phone /i.test(t)&&(r=r[/[\d.]+$/.exec(t)])){t="Windows "+r}t=String(t);if(e&&n){t=t.replace(RegExp(e,"i"),n)}t=g(t.replace(/ ce$/i," CE").replace(/\bhpw/i,"web").replace(/\bMacintosh\b/,"Mac OS").replace(/_PowerPC\b/i," OS").replace(/\b(OS X) [^ \d]+/i,"$1").replace(/\bMac (OS X)\b/,"$1").replace(/\/(\d)/," $1").replace(/_/g,".").replace(/(?: BePC|[ .]*fc[ \d.]+)$/i,"").replace(/\bx86\.64\b/gi,"x86_64").replace(/\b(Windows Phone) OS\b/,"$1").replace(/\b(Chrome OS \w+) [\d.]+\b/,"$1").split(" on ")[0]);return t}function m(t,e){var n=-1,r=t?t.length:0;if(typeof r=="number"&&r>-1&&r<=l){while(++n<r){e(t[n],n,t)}}else{h(t,e)}}function g(t){t=A(t);return/^(?:webOS|i(?:OS|P))/.test(t)?t:b(t)}function h(t,e){for(var n in t){if(d.call(t,n)){e(t[n],n,t)}}}function x(t){return t==null?b(t):p.call(t).slice(8,-1)}function y(t,e){var n=t!=null?typeof t[e]:"number";return!/^(?:boolean|number|string|undefined)$/.test(n)&&(n=="object"?!!t[e]:true)}function w(t){return String(t).replace(/([ -])(?!$)/g,"$1?")}function S(t,e){var n=null;m(t,(function(r,o){n=e(n,r,o,t)}));return n}function A(t){return String(t).replace(/^ +| +$/g,"")}function O(t){var e=r;var n=t&&typeof t=="object"&&x(t)!="String";if(n){e=t;t=null}var i=e.navigator||{};var a=i.userAgent||"";t||(t=a);var s=n||c==o;var l=n?!!i.likeChrome:/\bChrome\b/.test(t)&&!/internal|\n/i.test(p.toString());var f="Object",d=n?f:"ScriptBridgingProxyObject",b=n?f:"Environment",m=n&&e.java?"JavaPackage":x(e.java),k=n?f:"RuntimeObject";var E=/\bJava/.test(m)&&e.java;var M=E&&x(e.environment)==b;var T=E?"a":"α";var P=E?"b":"β";var I=e.document||{};var B=e.operamini||e.opera;var C=u.test(C=n&&B?B["[[Class]]"]:x(B))?C:B=null;var W;var R=t;var F=[];var j=null;var L=t==a;var $=L&&B&&typeof B.version=="function"&&B.version();var D;var Z=z([{label:"EdgeHTML",pattern:"Edge"},"Trident",{label:"WebKit",pattern:"AppleWebKit"},"iCab","Presto","NetFront","Tasman","KHTML","Gecko"]);var N=q(["Adobe AIR","Arora","Avant Browser","Breach","Camino","Epiphany","Fennec","Flock","Galeon","GreenBrowser","iCab","Iceweasel","K-Meleon","Konqueror","Lunascape","Maxthon",{label:"Microsoft Edge",pattern:"Edge"},"Midori","Nook Browser","PaleMoon","PhantomJS","Raven","Rekonq","RockMelt","SeaMonkey",{label:"Silk",pattern:"(?:Cloud9|Silk-Accelerated)"},"Sleipnir","SlimBrowser",{label:"SRWare Iron",pattern:"Iron"},"Sunrise","Swiftfox","WebPositive","Opera Mini",{label:"Opera Mini",pattern:"OPiOS"},"Opera",{label:"Opera",pattern:"OPR"},"Chrome",{label:"Chrome Mobile",pattern:"(?:CriOS|CrMo)"},{label:"Firefox",pattern:"(?:Firefox|Minefield)"},{label:"Firefox for iOS",pattern:"FxiOS"},{label:"IE",pattern:"IEMobile"},{label:"IE",pattern:"MSIE"},"Safari"]);var H=_([{label:"BlackBerry",pattern:"BB10"},"BlackBerry",{label:"Galaxy S",pattern:"GT-I9000"},{label:"Galaxy S2",pattern:"GT-I9100"},{label:"Galaxy S3",pattern:"GT-I9300"},{label:"Galaxy S4",pattern:"GT-I9500"},"Google TV","Lumia","iPad","iPod","iPhone","Kindle",{label:"Kindle Fire",pattern:"(?:Cloud9|Silk-Accelerated)"},"Nexus","Nook","PlayBook","PlayStation 3","PlayStation 4","PlayStation Vita","TouchPad","Transformer",{label:"Wii U",pattern:"WiiU"},"Wii","Xbox One",{label:"Xbox 360",pattern:"Xbox"},"Xoom"]);var G=K({Apple:{iPad:1,iPhone:1,iPod:1},Archos:{},Amazon:{Kindle:1,"Kindle Fire":1},Asus:{Transformer:1},"Barnes & Noble":{Nook:1},BlackBerry:{PlayBook:1},Google:{"Google TV":1,Nexus:1},HP:{TouchPad:1},HTC:{},LG:{},Microsoft:{Xbox:1,"Xbox One":1},Motorola:{Xoom:1},Nintendo:{"Wii U":1,Wii:1},Nokia:{Lumia:1},Samsung:{"Galaxy S":1,"Galaxy S2":1,"Galaxy S3":1,"Galaxy S4":1},Sony:{"PlayStation 4":1,"PlayStation 3":1,"PlayStation Vita":1}});var X=V(["Windows Phone","Android","CentOS",{label:"Chrome OS",pattern:"CrOS"},"Debian","Fedora","FreeBSD","Gentoo","Haiku","Kubuntu","Linux Mint","OpenBSD","Red Hat","SuSE","Ubuntu","Xubuntu","Cygwin","Symbian OS","hpwOS","webOS ","webOS","Tablet OS","Linux","Mac OS X","Macintosh","Mac","Windows 98;","Windows "]);function z(e){return S(e,(function(e,n){return e||RegExp("\\b"+(n.pattern||w(n))+"\\b","i").exec(t)&&(n.label||n)}))}function K(e){return S(e,(function(e,n,r){return e||(n[H]||n[/^[a-z]+(?: +[a-z]+\b)*/i.exec(H)]||RegExp("\\b"+w(r)+"(?:\\b|\\w*\\d)","i").exec(t))&&r}))}function q(e){return S(e,(function(e,n){return e||RegExp("\\b"+(n.pattern||w(n))+"\\b","i").exec(t)&&(n.label||n)}))}function V(e){return S(e,(function(e,n){var r=n.pattern||w(n);if(!e&&(e=RegExp("\\b"+r+"(?:/[\\d.]+|[ \\w.]*)","i").exec(t))){e=v(e,r,n.label||n)}return e}))}function _(e){return S(e,(function(e,n){var r=n.pattern||w(n);if(!e&&(e=RegExp("\\b"+r+" *\\d+[.\\w_]*","i").exec(t)||RegExp("\\b"+r+"(?:; *(?:[a-z]+[_-])?[a-z]+\\d+|[^ ();-]*)","i").exec(t))){if((e=String(n.label&&!RegExp(r,"i").test(n.label)?n.label:e).split("/"))[1]&&!/[\d.]+/.test(e[0])){e[0]+=" "+e[1]}n=n.label||n;e=g(e[0].replace(RegExp(r,"i"),n).replace(RegExp("; *(?:"+n+"[_-])?","i")," ").replace(RegExp("("+n+")[-_.]?(\\w)","i"),"$1 $2"))}return e}))}function J(e){return S(e,(function(e,n){return e||(RegExp(n+"(?:-[\\d.]+/|(?: for [\\w-]+)?[ /-])([\\d.]+[^ ();/_-]*)","i").exec(t)||0)[1]||null}))}function U(){return this.description||""}Z&&(Z=[Z]);if(G&&!H){H=_([G])}if(W=/\bGoogle TV\b/.exec(H)){H=W[0]}if(/\bSimulator\b/i.test(t)){H=(H?H+" ":"")+"Simulator"}if(N=="Opera Mini"&&/\bOPiOS\b/.test(t)){F.push("running in Turbo/Uncompressed mode")}if(N=="IE"&&/\blike iPhone OS\b/.test(t)){W=O(t.replace(/like iPhone OS/,""));G=W.manufacturer;H=W.product}else if(/^iP/.test(H)){N||(N="Safari");X="iOS"+((W=/ OS ([\d_]+)/i.exec(t))?" "+W[1].replace(/_/g,"."):"")}else if(N=="Konqueror"&&!/buntu/i.test(X)){X="Kubuntu"}else if(G&&G!="Google"&&(/Chrome/.test(N)&&!/\bMobile Safari\b/i.test(t)||/\bVita\b/.test(H))||/\bAndroid\b/.test(X)&&/^Chrome/.test(N)&&/\bVersion\//i.test(t)){N="Android Browser";X=/\bAndroid\b/.test(X)?X:"Android"}else if(N=="Silk"){if(!/\bMobi/i.test(t)){X="Android";F.unshift("desktop mode")}if(/Accelerated *= *true/i.test(t)){F.unshift("accelerated")}}else if(N=="PaleMoon"&&(W=/\bFirefox\/([\d.]+)\b/.exec(t))){F.push("identifying as Firefox "+W[1])}else if(N=="Firefox"&&(W=/\b(Mobile|Tablet|TV)\b/i.exec(t))){X||(X="Firefox OS");H||(H=W[1])}else if(!N||(W=!/\bMinefield\b/i.test(t)&&/\b(?:Firefox|Safari)\b/.exec(N))){if(N&&!H&&/[\/,]|^[^(]+?\)/.test(t.slice(t.indexOf(W+"/")+8))){N=null}if((W=H||G||X)&&(H||G||/\b(?:Android|Symbian OS|Tablet OS|webOS)\b/.test(X))){N=/[a-z]+(?: Hat)?/i.exec(/\bAndroid\b/.test(X)?X:W)+" Browser"}}if(!$){$=J(["(?:Cloud9|CriOS|CrMo|Edge|FxiOS|IEMobile|Iron|Opera ?Mini|OPiOS|OPR|Raven|Silk(?!/[\\d.]+$))","Version",w(N),"(?:Firefox|Minefield|NetFront)"])}if(W=Z=="iCab"&&parseFloat($)>3&&"WebKit"||/\bOpera\b/.test(N)&&(/\bOPR\b/.test(t)?"Blink":"Presto")||/\b(?:Midori|Nook|Safari)\b/i.test(t)&&!/^(?:Trident|EdgeHTML)$/.test(Z)&&"WebKit"||!Z&&/\bMSIE\b/i.test(t)&&(X=="Mac OS"?"Tasman":"Trident")||Z=="WebKit"&&/\bPlayStation\b(?! Vita\b)/i.test(N)&&"NetFront"){Z=[W]}if(N=="IE"&&(W=(/; *(?:XBLWP|ZuneWP)(\d+)/i.exec(t)||0)[1])){N+=" Mobile";X="Windows Phone "+(/\+$/.test(W)?W:W+".x");F.unshift("desktop mode")}else if(/\bWPDesktop\b/i.test(t)){N="IE Mobile";X="Windows Phone 8.x";F.unshift("desktop mode");$||($=(/\brv:([\d.]+)/.exec(t)||0)[1])}else if(N!="IE"&&Z=="Trident"&&(W=/\brv:([\d.]+)/.exec(t))){if(N){F.push("identifying as "+N+($?" "+$:""))}N="IE";$=W[1]}if(L){if(y(e,"global")){if(E){W=E.lang.System;R=W.getProperty("os.arch");X=X||W.getProperty("os.name")+" "+W.getProperty("os.version")}if(s&&y(e,"system")&&(W=[e.system])[0]){X||(X=W[0].os||null);try{W[1]=e.require("ringo/engine").version;$=W[1].join(".");N="RingoJS"}catch(t){if(W[0].global.system==e.system){N="Narwhal"}}}else if(typeof e.process=="object"&&!e.process.browser&&(W=e.process)){N="Node.js";R=W.arch;X=W.platform;$=/[\d.]+/.exec(W.version)[0]}else if(M){N="Rhino"}}else if(x(W=e.runtime)==d){N="Adobe AIR";X=W.flash.system.Capabilities.os}else if(x(W=e.phantom)==k){N="PhantomJS";$=(W=W.version||null)&&W.major+"."+W.minor+"."+W.patch}else if(typeof I.documentMode=="number"&&(W=/\bTrident\/(\d+)/i.exec(t))){$=[$,I.documentMode];if((W=+W[1]+4)!=$[1]){F.push("IE "+$[1]+" mode");Z&&(Z[1]="");$[1]=W}$=N=="IE"?String($[1].toFixed(1)):$[0]}X=X&&g(X)}if($&&(W=/(?:[ab]|dp|pre|[ab]\d+pre)(?:\d+\+?)?$/i.exec($)||/(?:alpha|beta)(?: ?\d)?/i.exec(t+";"+(L&&i.appMinorVersion))||/\bMinefield\b/i.test(t)&&"a")){j=/b/i.test(W)?"beta":"alpha";$=$.replace(RegExp(W+"\\+?$"),"")+(j=="beta"?P:T)+(/\d+\+?/.exec(W)||"")}if(N=="Fennec"||N=="Firefox"&&/\b(?:Android|Firefox OS)\b/.test(X)){N="Firefox Mobile"}else if(N=="Maxthon"&&$){$=$.replace(/\.[\d.]+/,".x")}else if(/\bXbox\b/i.test(H)){X=null;if(H=="Xbox 360"&&/\bIEMobile\b/.test(t)){F.unshift("mobile mode")}}else if((/^(?:Chrome|IE|Opera)$/.test(N)||N&&!H&&!/Browser|Mobi/.test(N))&&(X=="Windows CE"||/Mobi/i.test(t))){N+=" Mobile"}else if(N=="IE"&&L&&e.external===null){F.unshift("platform preview")}else if((/\bBlackBerry\b/.test(H)||/\bBB10\b/.test(t))&&(W=(RegExp(H.replace(/ +/g," *")+"/([.\\d]+)","i").exec(t)||0)[1]||$)){W=[W,/BB10/.test(t)];X=(W[1]?(H=null,G="BlackBerry"):"Device Software")+" "+W[0];$=null}else if(this!=h&&H!="Wii"&&(L&&B||/Opera/.test(N)&&/\b(?:MSIE|Firefox)\b/i.test(t)||N=="Firefox"&&/\bOS X (?:\d+\.){2,}/.test(X)||N=="IE"&&(X&&!/^Win/.test(X)&&$>5.5||/\bWindows XP\b/.test(X)&&$>8||$==8&&!/\bTrident\b/.test(t)))&&!u.test(W=O.call(h,t.replace(u,"")+";"))&&W.name){W="ing as "+W.name+((W=W.version)?" "+W:"");if(u.test(N)){if(/\bIE\b/.test(W)&&X=="Mac OS"){X=null}W="identify"+W}else{W="mask"+W;if(C){N=g(C.replace(/([a-z])([A-Z])/g,"$1 $2"))}else{N="Opera"}if(/\bIE\b/.test(W)){X=null}if(!L){$=null}}Z=["Presto"];F.push(W)}if(W=(/\bAppleWebKit\/([\d.]+\+?)/i.exec(t)||0)[1]){W=[parseFloat(W.replace(/\.(\d)$/,".0$1")),W];if(N=="Safari"&&W[1].slice(-1)=="+"){N="WebKit Nightly";j="alpha";$=W[1].slice(0,-1)}else if($==W[1]||$==(W[2]=(/\bSafari\/([\d.]+\+?)/i.exec(t)||0)[1])){$=null}W[1]=(/\bChrome\/([\d.]+)/i.exec(t)||0)[1];if(W[0]==537.36&&W[2]==537.36&&parseFloat(W[1])>=28&&Z=="WebKit"){Z=["Blink"]}if(!L||!l&&!W[1]){Z&&(Z[1]="like Safari");W=(W=W[0],W<400?1:W<500?2:W<526?3:W<533?4:W<534?"4+":W<535?5:W<537?6:W<538?7:W<601?8:"8")}else{Z&&(Z[1]="like Chrome");W=W[1]||(W=W[0],W<530?1:W<532?2:W<532.05?3:W<533?4:W<534.03?5:W<534.07?6:W<534.1?7:W<534.13?8:W<534.16?9:W<534.24?10:W<534.3?11:W<535.01?12:W<535.02?"13+":W<535.07?15:W<535.11?16:W<535.19?17:W<536.05?18:W<536.1?19:W<537.01?20:W<537.11?"21+":W<537.13?23:W<537.18?24:W<537.24?25:W<537.36?26:Z!="Blink"?"27":"28")}Z&&(Z[1]+=" "+(W+=typeof W=="number"?".x":/[.+]/.test(W)?"":"+"));if(N=="Safari"&&(!$||parseInt($)>45)){$=W}}if(N=="Opera"&&(W=/\bzbov|zvav$/.exec(X))){N+=" ";F.unshift("desktop mode");if(W=="zvav"){N+="Mini";$=null}else{N+="Mobile"}X=X.replace(RegExp(" *"+W+"$"),"")}else if(N=="Safari"&&/\bChrome\b/.exec(Z&&Z[1])){F.unshift("desktop mode");N="Chrome Mobile";$=null;if(/\bOS X\b/.test(X)){G="Apple";X="iOS 4.3+"}else{X=null}}if($&&$.indexOf(W=/[\d.]+$/.exec(X))==0&&t.indexOf("/"+W+"-")>-1){X=A(X.replace(W,""))}if(Z&&!/\b(?:Avant|Nook)\b/.test(N)&&(/Browser|Lunascape|Maxthon/.test(N)||N!="Safari"&&/^iOS/.test(X)&&/\bSafari\b/.test(Z[1])||/^(?:Adobe|Arora|Breach|Midori|Opera|Phantom|Rekonq|Rock|Sleipnir|Web)/.test(N)&&Z[1])){(W=Z[Z.length-1])&&F.push(W)}if(F.length){F=["("+F.join("; ")+")"]}if(G&&H&&H.indexOf(G)<0){F.push("on "+G)}if(H){F.push((/^on /.test(F[F.length-1])?"":"on ")+H)}if(X){W=/ ([\d.+]+)$/.exec(X);D=W&&X.charAt(X.length-W[0].length-1)=="/";X={architecture:32,family:W&&!D?X.replace(W[0],""):X,version:W?W[1]:null,toString:function(){var t=this.version;return this.family+(t&&!D?" "+t:"")+(this.architecture==64?" 64-bit":"")}}}if((W=/\b(?:AMD|IA|Win|WOW|x86_|x)64\b/i.exec(R))&&!/\bi686\b/i.test(R)){if(X){X.architecture=64;X.family=X.family.replace(RegExp(" *"+W),"")}if(N&&(/\bWOW64\b/i.test(t)||L&&/\w(?:86|32)$/.test(i.cpuClass||i.platform)&&!/\bWin64; x64\b/i.test(t))){F.unshift("32-bit")}}else if(X&&/^OS X/.test(X.family)&&N=="Chrome"&&parseFloat($)>=39){X.architecture=64}t||(t=null);var Y={};Y.description=t;Y.layout=Z&&Z[0];Y.manufacturer=G;Y.name=N;Y.prerelease=j;Y.product=H;Y.ua=t;Y.version=N&&$;Y.os=X||{architecture:null,family:null,version:null,toString:function(){return"null"}};Y.parse=O;Y.toString=U;if(Y.version){F.unshift($)}if(Y.name){F.unshift(N)}if(X&&N&&!(X==String(X).split(" ")[0]&&(X==N.split(" ")[0]||H))){F.push(H?"("+X+")":"on "+X)}if(F.length){Y.description=F.join(" ")}return Y}var k=O();if(i&&a){h(k,(function(t,e){i[e]=t}))}else{r.platform=k}}).call(Dt)}));var Gt=JSON.parse(JSON.stringify(Ht));var Xt=Gt.os.family||"";var zt=Xt==="Android";var Kt=Xt.slice(0,7)==="Windows";var qt=Xt==="OS X";var Vt=Xt==="iOS";var _t=Gt.layout==="Blink";var Jt=Gt.layout==="Gecko";var Ut=Gt.layout==="Trident";var Yt=Gt.layout==="EdgeHTML";var Qt=Gt.layout==="WebKit";var te=parseFloat(Gt.version);var ee=Math.floor(te);Gt.majorVersion=ee;Gt.is={ANDROID:zt,WINDOWS:Kt,OSX:qt,IOS:Vt,BLINK:_t,GECKO:Jt,TRIDENT:Ut,EDGE:Yt,WEBKIT:Qt,IE9:Ut&&ee===9,IE10:Ut&&ee===10,IE11:Ut&&ee===11};function ne(){var t={activeElement:document.activeElement,windowScrollTop:window.scrollTop,windowScrollLeft:window.scrollLeft,bodyScrollTop:document.body.scrollTop,bodyScrollLeft:document.body.scrollLeft};var e=document.createElement("iframe");e.setAttribute("style","position:absolute; position:fixed; top:0; left:-2px; width:1px; height:1px; overflow:hidden;");e.setAttribute("aria-live","off");e.setAttribute("aria-busy","true");e.setAttribute("aria-hidden","true");document.body.appendChild(e);var n=e.contentWindow;var r=n.document;r.open();r.close();var o=r.createElement("div");r.body.appendChild(o);t.iframe=e;t.wrapper=o;t.window=n;t.document=r;return t}function re(t,e){t.wrapper.innerHTML="";var n=typeof e.element==="string"?t.document.createElement(e.element):e.element(t.wrapper,t.document);var r=e.mutate&&e.mutate(n,t.wrapper,t.document);if(!r&&r!==false){r=n}!n.parentNode&&t.wrapper.appendChild(n);r&&r.focus&&r.focus();return e.validate?e.validate(n,r,t.document):t.document.activeElement===r}function oe(t){if(t.activeElement===document.body){document.activeElement&&document.activeElement.blur&&document.activeElement.blur();if(Gt.is.IE10){document.body.focus()}}else{t.activeElement&&t.activeElement.focus&&t.activeElement.focus()}document.body.removeChild(t.iframe);window.scrollTop=t.windowScrollTop;window.scrollLeft=t.windowScrollLeft;document.body.scrollTop=t.bodyScrollTop;document.body.scrollLeft=t.bodyScrollLeft}function ie(t){var e=ne();var n={};Object.keys(t).map((function(r){n[r]=re(e,t[r])}));oe(e);return n}var ae="1.4.1";function se(t){var e=void 0;try{e=window.localStorage&&window.localStorage.getItem(t);e=e?JSON.parse(e):{}}catch(t){e={}}return e}function le(t,e){if(!document.hasFocus()){try{window.localStorage&&window.localStorage.removeItem(t)}catch(t){}return}try{window.localStorage&&window.localStorage.setItem(t,JSON.stringify(e))}catch(t){}}var ue=typeof window!=="undefined"&&window.navigator.userAgent||"";var ce="ally-supports-cache";var fe=se(ce);if(fe.userAgent!==ue||fe.version!==ae){fe={}}fe.userAgent=ue;fe.version=ae;const de={get:function t(){return fe},set:function t(e){Object.keys(e).forEach((function(t){fe[t]=e[t]}));fe.time=(new Date).toISOString();le(ce,fe)}};function pe(){var t=void 0;try{document.querySelector("html >>> :first-child");t=">>>"}catch(e){try{document.querySelector("html /deep/ :first-child");t="/deep/"}catch(e){t=""}}return t}const be="data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7";const ve={element:"div",mutate:function t(e){e.innerHTML='<map name="image-map-tabindex-test">'+'<area shape="rect" coords="63,19,144,45"></map>'+'<img usemap="#image-map-tabindex-test" tabindex="-1" alt="" src="'+be+'">';return e.querySelector("area")}};const me={element:"div",mutate:function t(e){e.innerHTML='<map name="image-map-tabindex-test">'+'<area href="#void" tabindex="-1" shape="rect" coords="63,19,144,45"></map>'+'<img usemap="#image-map-tabindex-test" alt="" src="'+be+'">';return false},validate:function t(e,n,r){if(Gt.is.GECKO){return true}var o=e.querySelector("area");o.focus();return r.activeElement===o}};const ge={element:"div",mutate:function t(e){e.innerHTML='<map name="image-map-area-href-test">'+'<area shape="rect" coords="63,19,144,45"></map>'+'<img usemap="#image-map-area-href-test" alt="" src="'+be+'">';return e.querySelector("area")},validate:function t(e,n,r){if(Gt.is.GECKO){return true}return r.activeElement===n}};const he={name:"can-focus-audio-without-controls",element:"audio",mutate:function t(e){try{e.setAttribute("src",be)}catch(t){}}};const xe="data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///ZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZ";const ye={element:"div",mutate:function t(e){e.innerHTML='<map name="broken-image-map-test"><area href="#void" shape="rect" coords="63,19,144,45"></map>'+'<img usemap="#broken-image-map-test" alt="" src="'+xe+'">';return e.querySelector("area")}};const we={element:"div",mutate:function t(e){e.setAttribute("tabindex","-1");e.setAttribute("style","display: -webkit-flex; display: -ms-flexbox; display: flex;");e.innerHTML='<span style="display: block;">hello</span>';return e.querySelector("span")}};const Se={element:"fieldset",mutate:function t(e){e.setAttribute("tabindex",0);e.setAttribute("disabled","disabled")}};const Ae={element:"fieldset",mutate:function t(e){e.innerHTML="<legend>legend</legend><p>content</p>"}};const Oe={element:"span",mutate:function t(e){e.setAttribute("style","display: -webkit-flex; display: -ms-flexbox; display: flex;");e.innerHTML='<span style="display: block;">hello</span>'}};const ke={element:"form",mutate:function t(e){e.setAttribute("tabindex",0);e.setAttribute("disabled","disabled")}};const Ee={element:"a",mutate:function t(e){e.href="#void";e.innerHTML='<img ismap src="'+be+'" alt="">';return e.querySelector("img")}};const Me={element:"div",mutate:function t(e){e.innerHTML='<map name="image-map-tabindex-test"><area href="#void" shape="rect" coords="63,19,144,45"></map>'+'<img usemap="#image-map-tabindex-test" tabindex="-1" alt="" '+'src="'+be+'">';return e.querySelector("img")}};const Te={element:function t(e,n){var r=n.createElement("iframe");e.appendChild(r);var o=r.contentWindow.document;o.open();o.close();return r},mutate:function t(e){e.style.visibility="hidden";var n=e.contentWindow.document;var r=n.createElement("input");n.body.appendChild(r);return r},validate:function t(e){var n=e.contentWindow.document;var r=n.querySelector("input");return n.activeElement===r}};var Pe=!Gt.is.WEBKIT;function Ie(){return Pe}const Be={element:"div",mutate:function t(e){e.setAttribute("tabindex","invalid-value")}};const Ce={element:"label",mutate:function t(e){e.setAttribute("tabindex","-1")},validate:function t(e,n,r){e.focus();return r.activeElement===e}};const We="data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHhtb"+"G5zOnhsaW5rPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5L3hsaW5rIiBpZD0ic3ZnIj48dGV4dCB4PSIxMCIgeT0iMjAiIGlkPSJ"+"zdmctbGluay10ZXh0Ij50ZXh0PC90ZXh0Pjwvc3ZnPg==";const Re={element:"object",mutate:function t(e){e.setAttribute("type","image/svg+xml");e.setAttribute("data",We);e.setAttribute("width","200");e.setAttribute("height","50");e.style.visibility="hidden"}};const Fe={name:"can-focus-object-svg",element:"object",mutate:function t(e){e.setAttribute("type","image/svg+xml");e.setAttribute("data",We);e.setAttribute("width","200");e.setAttribute("height","50")},validate:function t(e,n,r){if(Gt.is.GECKO){return true}return r.activeElement===e}};var je=!Gt.is.IE9;function Le(){return je}const $e={element:"div",mutate:function t(e){e.innerHTML='<map name="focus-redirect-img-usemap"><area href="#void" shape="rect" coords="63,19,144,45"></map>'+'<img usemap="#focus-redirect-img-usemap" alt="" '+'src="'+be+'">';return e.querySelector("img")},validate:function t(e,n,r){var o=e.querySelector("area");return r.activeElement===o}};const De={element:"fieldset",mutate:function t(e){e.innerHTML='<legend>legend</legend><input tabindex="-1"><input tabindex="0">';return false},validate:function t(e,n,r){var o=e.querySelector('input[tabindex="-1"]');var i=e.querySelector('input[tabindex="0"]');e.focus();e.querySelector("legend").focus();return r.activeElement===o&&"focusable"||r.activeElement===i&&"tabbable"||""}};const Ze={element:"div",mutate:function t(e){e.setAttribute("style","width: 100px; height: 50px; overflow: auto;");e.innerHTML='<div style="width: 500px; height: 40px;">scrollable content</div>';return e.querySelector("div")}};const Ne={element:"div",mutate:function t(e){e.setAttribute("style","width: 100px; height: 50px;");e.innerHTML='<div style="width: 500px; height: 40px;">scrollable content</div>'}};const He={element:"div",mutate:function t(e){e.setAttribute("style","width: 100px; height: 50px; overflow: auto;");e.innerHTML='<div style="width: 500px; height: 40px;">scrollable content</div>'}};const Ge={element:"details",mutate:function t(e){e.innerHTML="<summary>foo</summary><p>content</p>";return e.firstElementChild}};function Xe(){var t=document.createElement("div");t.innerHTML='<svg><foreignObject width="30" height="30">\n <input type="text"/>\n </foreignObject></svg>';return t.firstChild.firstChild}function ze(t){var e=t.ownerSVGElement||t.nodeName.toLowerCase()==="svg";if(!e){return false}var n=Xe();t.appendChild(n);var r=n.querySelector("input");r.focus();r.disabled=true;t.removeChild(n);return true}function Ke(t){return'<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">'+t+"</svg>"}function qe(t){if(t.focus){return}try{HTMLElement.prototype.focus.call(t)}catch(e){ze(t)}}function Ve(t,e,n){qe(e);return n.activeElement===e}const _e={element:"div",mutate:function t(e){e.innerHTML=Ke('<text focusable="true">a</text>');return e.querySelector("text")},validate:Ve};const Je={element:"div",mutate:function t(e){e.innerHTML=Ke('<text tabindex="0">a</text>');return e.querySelector("text")},validate:Ve};const Ue={element:"div",mutate:function t(e){e.innerHTML=Ke('<text tabindex="-1">a</text>');return e.querySelector("text")},validate:Ve};const Ye={element:"div",mutate:function t(e){e.innerHTML=Ke(['<g id="ally-test-target"><a xlink:href="#void"><text>link</text></a></g>','<use xlink:href="#ally-test-target" x="0" y="0" tabindex="-1" />'].join(""));return e.querySelector("use")},validate:Ve};const Qe={element:"div",mutate:function t(e){e.innerHTML=Ke('<foreignObject tabindex="-1"><input type="text" /></foreignObject>');return e.querySelector("foreignObject")||e.getElementsByTagName("foreignObject")[0]},validate:Ve};var tn=Boolean(Gt.is.GECKO&&typeof SVGElement!=="undefined"&&SVGElement.prototype.focus);function en(){return tn}const nn={element:"div",mutate:function t(e){e.innerHTML=Ke("");return e.firstChild},validate:Ve};const rn={element:"div",mutate:function t(e){e.setAttribute("tabindex","3x")}};const on={element:"table",mutate:function t(e,n,r){var o=r.createDocumentFragment();o.innerHTML="<tr><td>cell</td></tr>";e.appendChild(o)}};const an={element:"video",mutate:function t(e){try{e.setAttribute("src",be)}catch(t){}}};var sn=Gt.is.GECKO||Gt.is.TRIDENT||Gt.is.EDGE;function ln(){return sn}var un={cssShadowPiercingDeepCombinator:pe,focusInZeroDimensionObject:Ie,focusObjectSwf:Le,focusSvgInIframe:en,tabsequenceAreaAtImgPosition:ln};var cn={focusAreaImgTabindex:ve,focusAreaTabindex:me,focusAreaWithoutHref:ge,focusAudioWithoutControls:he,focusBrokenImageMap:ye,focusChildrenOfFocusableFlexbox:we,focusFieldsetDisabled:Se,focusFieldset:Ae,focusFlexboxContainer:Oe,focusFormDisabled:ke,focusImgIsmap:Ee,focusImgUsemapTabindex:Me,focusInHiddenIframe:Te,focusInvalidTabindex:Be,focusLabelTabindex:Ce,focusObjectSvg:Fe,focusObjectSvgHidden:Re,focusRedirectImgUsemap:$e,focusRedirectLegend:De,focusScrollBody:Ze,focusScrollContainerWithoutOverflow:Ne,focusScrollContainer:He,focusSummary:Ge,focusSvgFocusableAttribute:_e,focusSvgTabindexAttribute:Je,focusSvgNegativeTabindexAttribute:Ue,focusSvgUseTabindex:Ye,focusSvgForeignobjectTabindex:Qe,focusSvg:nn,focusTabindexTrailingCharacters:rn,focusTable:on,focusVideoWithoutControls:an};function fn(){var t=ie(cn);Object.keys(un).forEach((function(e){t[e]=un[e]()}));return t}var dn=null;function pn(){if(dn){return dn}dn=de.get();if(!dn.time){de.set(fn());dn=de.get()}return dn}var bn=void 0;var vn=/^\s*(-|\+)?[0-9]+\s*$/;var mn=/^\s*(-|\+)?[0-9]+.*$/;function gn(t){if(!bn){bn=pn()}var e=bn.focusTabindexTrailingCharacters?mn:vn;var n=Wt({label:"is/valid-tabindex",resolveDocument:true,context:t});var r=n.hasAttribute("tabindex");var o=n.hasAttribute("tabIndex");if(!r&&!o){return false}var i=n.ownerSVGElement||n.nodeName.toLowerCase()==="svg";if(i&&!bn.focusSvgTabindexAttribute){return false}if(bn.focusInvalidTabindex){return true}var a=n.getAttribute(r?"tabindex":"tabIndex");if(a==="-32768"){return false}return Boolean(a&&e.test(a))}function hn(t){if(!gn(t)){return null}var e=t.hasAttribute("tabindex");var n=e?"tabindex":"tabIndex";var r=parseInt(t.getAttribute(n),10);return isNaN(r)?-1:r}function xn(t){var e=t.webkitUserModify||"";return Boolean(e&&e.indexOf("write")!==-1)}function yn(t){return[t.getPropertyValue("overflow"),t.getPropertyValue("overflow-x"),t.getPropertyValue("overflow-y")].some((function(t){return t==="auto"||t==="scroll"}))}function wn(t){return t.display.indexOf("flex")>-1}function Sn(t,e,n,r){if(e!=="div"&&e!=="span"){return false}if(n&&n!=="div"&&n!=="span"&&!yn(r)){return false}return t.offsetHeight<t.scrollHeight||t.offsetWidth<t.scrollWidth}var An=void 0;function On(){var t=arguments.length>0&&arguments[0]!==undefined?arguments[0]:{},e=t.context,n=t.except,r=n===undefined?{flexbox:false,scrollable:false,shadow:false}:n;if(!An){An=pn()}var o=Wt({label:"is/focus-relevant",resolveDocument:true,context:e});if(!r.shadow&&o.shadowRoot){return true}var i=o.nodeName.toLowerCase();if(i==="input"&&o.type==="hidden"){return false}if(i==="input"||i==="select"||i==="button"||i==="textarea"){return true}if(i==="legend"&&An.focusRedirectLegend){return true}if(i==="label"){return true}if(i==="area"){return true}if(i==="a"&&o.hasAttribute("href")){return true}if(i==="object"&&o.hasAttribute("usemap")){return false}if(i==="object"){var a=o.getAttribute("type");if(!An.focusObjectSvg&&a==="image/svg+xml"){return false}else if(!An.focusObjectSwf&&a==="application/x-shockwave-flash"){return false}}if(i==="iframe"||i==="object"){return true}if(i==="embed"||i==="keygen"){return true}if(o.hasAttribute("contenteditable")){return true}if(i==="audio"&&(An.focusAudioWithoutControls||o.hasAttribute("controls"))){return true}if(i==="video"&&(An.focusVideoWithoutControls||o.hasAttribute("controls"))){return true}if(An.focusSummary&&i==="summary"){return true}var s=gn(o);if(i==="img"&&o.hasAttribute("usemap")){return s&&An.focusImgUsemapTabindex||An.focusRedirectImgUsemap}if(An.focusTable&&(i==="table"||i==="td")){return true}if(An.focusFieldset&&i==="fieldset"){return true}var l=i==="svg";var u=o.ownerSVGElement;var c=o.getAttribute("focusable");var f=hn(o);if(i==="use"&&f!==null&&!An.focusSvgUseTabindex){return false}if(i==="foreignobject"){return f!==null&&An.focusSvgForeignobjectTabindex}if($t(o,"svg a")&&o.hasAttribute("xlink:href")){return true}if((l||u)&&o.focus&&!An.focusSvgNegativeTabindexAttribute&&f<0){return false}if(l){return s||An.focusSvg||An.focusSvgInIframe||Boolean(An.focusSvgFocusableAttribute&&c&&c==="true")}if(u){if(An.focusSvgTabindexAttribute&&s){return true}if(An.focusSvgFocusableAttribute){return c==="true"}}if(s){return true}var d=window.getComputedStyle(o,null);if(xn(d)){return true}if(An.focusImgIsmap&&i==="img"&&o.hasAttribute("ismap")){var p=Rt({context:o}).some((function(t){return t.nodeName.toLowerCase()==="a"&&t.hasAttribute("href")}));if(p){return true}}if(!r.scrollable&&An.focusScrollContainer){if(An.focusScrollContainerWithoutOverflow){if(Sn(o,i)){return true}}else if(yn(d)){return true}}if(!r.flexbox&&An.focusFlexboxContainer&&wn(d)){return true}var b=o.parentElement;if(!r.scrollable&&b){var v=b.nodeName.toLowerCase();var m=window.getComputedStyle(b,null);if(An.focusScrollBody&&Sn(b,i,v,m)){return true}if(An.focusChildrenOfFocusableFlexbox){if(wn(m)){return true}}}return false}On.except=function(){var t=arguments.length>0&&arguments[0]!==undefined?arguments[0]:{};var e=function e(n){return On({context:n,except:t})};e.rules=On;return e};var kn=On.except({});function En(t,e){if(t.findIndex){return t.findIndex(e)}var n=t.length;if(n===0){return-1}for(var r=0;r<n;r++){if(e(t[r],r,t)){return r}}return-1}function Mn(t){try{return t.contentDocument||t.contentWindow&&t.contentWindow.document||t.getSVGDocument&&t.getSVGDocument()||null}catch(t){return null}}function Tn(t){if(!t){return document}if(t.nodeType===Node.DOCUMENT_NODE){return t}return t.ownerDocument||document}function Pn(t){var e=Tn(t);return e.defaultView||window}var In=void 0;function Bn(t){if(typeof In!=="string"){var e=pe();if(e){In=", html "+e+" "}}if(!In){return t}return t+In+t.replace(/\s*,\s*/g,",").split(",").join(In)}var Cn=void 0;function Wn(t){if(!Cn){Cn=Bn("object, iframe")}if(t._frameElement!==undefined){return t._frameElement}t._frameElement=null;var e=t.parent.document.querySelectorAll(Cn);[].some.call(e,(function(e){var n=Mn(e);if(n!==t.document){return false}t._frameElement=e;return true}));return t._frameElement}function Rn(t){var e=Pn(t);if(!e.parent||e.parent===e){return null}try{return e.frameElement||Wn(e)}catch(t){return null}}var Fn=/^(area)$/;function jn(t,e){return window.getComputedStyle(t,null).getPropertyValue(e)}function Ln(t){return t.some((function(t){return jn(t,"display")==="none"}))}function $n(t){var e=En(t,(function(t){var e=jn(t,"visibility");return e==="hidden"||e==="collapse"}));if(e===-1){return false}var n=En(t,(function(t){return jn(t,"visibility")==="visible"}));if(n===-1){return true}if(e<n){return true}return false}function Dn(t){var e=1;if(t[0].nodeName.toLowerCase()==="summary"){e=2}return t.slice(e).some((function(t){return t.nodeName.toLowerCase()==="details"&&t.open===false}))}function Zn(){var t=arguments.length>0&&arguments[0]!==undefined?arguments[0]:{},e=t.context,n=t.except,r=n===undefined?{notRendered:false,cssDisplay:false,cssVisibility:false,detailsElement:false,browsingContext:false}:n;var o=Wt({label:"is/visible",resolveDocument:true,context:e});var i=o.nodeName.toLowerCase();if(!r.notRendered&&Fn.test(i)){return true}var a=Rt({context:o});var s=i==="audio"&&!o.hasAttribute("controls");if(!r.cssDisplay&&Ln(s?a.slice(1):a)){return false}if(!r.cssVisibility&&$n(a)){return false}if(!r.detailsElement&&Dn(a)){return false}if(!r.browsingContext){var l=Rn(o);var u=Zn.except(r);if(l&&!u(l)){return false}}return true}Zn.except=function(){var t=arguments.length>0&&arguments[0]!==undefined?arguments[0]:{};var e=function e(n){return Zn({context:n,except:t})};e.rules=Zn;return e};var Nn=Zn.except({});var Hn=Zt((function(t,e){(function(e,n){{t.exports=n(e)}})(typeof Dt!="undefined"?Dt:Dt,(function(t){if(t.CSS&&t.CSS.escape){return t.CSS.escape}var e=function(t){if(arguments.length==0){throw new TypeError("`CSS.escape` requires an argument.")}var e=String(t);var n=e.length;var r=-1;var o;var i="";var a=e.charCodeAt(0);while(++r<n){o=e.charCodeAt(r);if(o==0){i+="�";continue}if(o>=1&&o<=31||o==127||r==0&&o>=48&&o<=57||r==1&&o>=48&&o<=57&&a==45){i+="\\"+o.toString(16)+" ";continue}if(r==0&&n==1&&o==45){i+="\\"+e.charAt(r);continue}if(o>=128||o==45||o==95||o>=48&&o<=57||o>=65&&o<=90||o>=97&&o<=122){i+=e.charAt(r);continue}i+="\\"+e.charAt(r)}return i};if(!t.CSS){t.CSS={}}t.CSS.escape=e;return e}))}));function Gn(t){var e=t.parentElement;if(!e.name||e.nodeName.toLowerCase()!=="map"){return null}var n=Tn(t);return n.querySelector('img[usemap="#'+Hn(e.name)+'"]')||null}var Xn=void 0;function zn(t){if(!Xn){Xn=pn()}var e=Wt({label:"is/valid-area",context:t});var n=e.nodeName.toLowerCase();if(n!=="area"){return false}var r=e.hasAttribute("tabindex");if(!Xn.focusAreaTabindex&&r){return false}var o=Gn(e);if(!o||!Nn(o)){return false}if(!Xn.focusBrokenImageMap&&(!o.complete||!o.naturalHeight||o.offsetWidth<=0||o.offsetHeight<=0)){return false}if(!Xn.focusAreaWithoutHref&&!e.href){return Xn.focusAreaTabindex&&r||Xn.focusAreaImgTabindex&&o.hasAttribute("tabindex")}var i=Rt({context:o}).slice(1).some((function(t){var e=t.nodeName.toLowerCase();return e==="button"||e==="a"}));if(i){return false}return true}var Kn=void 0;var qn=void 0;var Vn={input:true,select:true,textarea:true,button:true,fieldset:true,form:true};function _n(t){if(!Kn){Kn=pn();if(Kn.focusFieldsetDisabled){delete Vn.fieldset}if(Kn.focusFormDisabled){delete Vn.form}qn=new RegExp("^("+Object.keys(Vn).join("|")+")$")}var e=Wt({label:"is/native-disabled-supported",context:t});var n=e.nodeName.toLowerCase();return Boolean(qn.test(n))}var Jn=void 0;function Un(t){var e=t.nodeName.toLowerCase();return e==="fieldset"&&t.disabled}function Yn(t){var e=t.nodeName.toLowerCase();return e==="form"&&t.disabled}function Qn(t){if(!Jn){Jn=pn()}var e=Wt({label:"is/disabled",context:t});if(e.hasAttribute("data-ally-disabled")){return true}if(!_n(e)){return false}if(e.disabled){return true}var n=Rt({context:e});if(n.some(Un)){return true}if(!Jn.focusFormDisabled&&n.some(Yn)){return true}return false}function tr(){var t=arguments.length>0&&arguments[0]!==undefined?arguments[0]:{},e=t.context,n=t.except,r=n===undefined?{onlyFocusableBrowsingContext:false,visible:false}:n;var o=Wt({label:"is/only-tabbable",resolveDocument:true,context:e});if(!r.visible&&!Nn(o)){return false}if(!r.onlyFocusableBrowsingContext&&(Gt.is.GECKO||Gt.is.TRIDENT||Gt.is.EDGE)){var i=Rn(o);if(i){if(hn(i)<0){return false}}}var a=o.nodeName.toLowerCase();var s=hn(o);if(a==="label"&&Gt.is.GECKO){return s!==null&&s>=0}if(Gt.is.GECKO&&o.ownerSVGElement&&!o.focus){if(a==="a"&&o.hasAttribute("xlink:href")){if(Gt.is.GECKO){return true}}}return false}tr.except=function(){var t=arguments.length>0&&arguments[0]!==undefined?arguments[0]:{};var e=function e(n){return tr({context:n,except:t})};e.rules=tr;return e};var er=tr.except({});var nr=void 0;function rr(t){var e=t.nodeName.toLowerCase();if(e==="embed"||e==="keygen"){return true}var n=hn(t);if(t.shadowRoot&&n===null){return true}if(e==="label"){return!nr.focusLabelTabindex||n===null}if(e==="legend"){return n===null}if(nr.focusSvgFocusableAttribute&&(t.ownerSVGElement||e==="svg")){var r=t.getAttribute("focusable");return r&&r==="false"}if(e==="img"&&t.hasAttribute("usemap")){return n===null||!nr.focusImgUsemapTabindex}if(e==="area"){return!zn(t)}return false}function or(){var t=arguments.length>0&&arguments[0]!==undefined?arguments[0]:{},e=t.context,n=t.except,r=n===undefined?{disabled:false,visible:false,onlyTabbable:false}:n;if(!nr){nr=pn()}var o=er.rules.except({onlyFocusableBrowsingContext:true,visible:r.visible});var i=Wt({label:"is/focusable",resolveDocument:true,context:e});var a=kn.rules({context:i,except:r});if(!a||rr(i)){return false}if(!r.disabled&&Qn(i)){return false}if(!r.onlyTabbable&&o(i)){return false}if(!r.visible){var s={context:i,except:{}};if(nr.focusInHiddenIframe){s.except.browsingContext=true}if(nr.focusObjectSvgHidden){var l=i.nodeName.toLowerCase();if(l==="object"){s.except.cssVisibility=true}}if(!Nn.rules(s)){return false}}var u=Rn(i);if(u){var c=u.nodeName.toLowerCase();if(c==="object"&&!nr.focusInZeroDimensionObject){if(!u.offsetWidth||!u.offsetHeight){return false}}}var f=i.nodeName.toLowerCase();if(f==="svg"&&nr.focusSvgInIframe&&!u&&i.getAttribute("tabindex")===null){return false}return true}or.except=function(){var t=arguments.length>0&&arguments[0]!==undefined?arguments[0]:{};var e=function e(n){return or({context:n,except:t})};e.rules=or;return e};var ir=or.except({});(()=>{var t=class extends Event{constructor(t,{oldState:e="",newState:n="",...r}={}){super(t,r);this.oldState=String(e||""),this.newState=String(n||"")}},e=new WeakMap;function n(n,r,o){e.set(n,setTimeout((()=>{e.has(n)&&n.dispatchEvent(new t("toggle",{cancelable:!1,oldState:r,newState:o}))}),0))}var r=globalThis.ShadowRoot||function(){},o=globalThis.HTMLDialogElement||function(){},i=new WeakMap,a=new WeakMap,s=new WeakMap;function l(t){return s.get(t)||"hidden"}var u=new WeakMap;function c(t){let e=t.popoverTargetElement;if(!e)return;let n=l(e);t.popoverTargetAction==="show"&&n==="showing"||t.popoverTargetAction==="hide"&&n==="hidden"||(n==="showing"?O(e,!0,!0):f(e,!1)&&(u.set(e,t),A(e)))}function f(t,e){return!(t.popover!=="auto"&&t.popover!=="manual"||!t.isConnected||e&&l(t)!=="showing"||!e&&l(t)!=="hidden"||t instanceof o&&t.hasAttribute("open")||document.fullscreenElement===t)}function d(t){return t?Array.from(a.get(t.ownerDocument)||[]).indexOf(t)+1:0}function p(t){let e=m(t),n=g(t);return d(e)>d(n)?e:n}function b(t){let e=a.get(t);for(let t of e||[])if(!t.isConnected)e.delete(t);else return t;return null}function v(t){return typeof t.getRootNode=="function"?t.getRootNode():t.parentNode?v(t.parentNode):t}function m(t){for(;t;){if(t instanceof HTMLElement&&t.popover==="auto"&&s.get(t)==="showing")return t;if(t=t.parentElement||v(t),t instanceof r&&(t=t.host),t instanceof Document)return}}function g(t){for(;t;){let e=t.popoverTargetElement;if(e)return e;if(t=t.parentElement||v(t),t instanceof r&&(t=t.host),t instanceof Document)return}}function h(t){let e=new Map,n=0,r=t.ownerDocument;for(let t of a.get(r)||[])e.set(t,n),n+=1;e.set(t,n),n+=1;let o=null;function i(t){let n=m(t);if(n===null)return null;let r=e.get(n);(o===null||e.get(o)<r)&&(o=n)}return i(t?.parentElement),o}function x(t){return t.hidden||(t instanceof HTMLButtonElement||t instanceof HTMLInputElement||t instanceof HTMLSelectElement||t instanceof HTMLTextAreaElement||t instanceof HTMLOptGroupElement||t instanceof HTMLOptionElement||t instanceof HTMLFieldSetElement)&&t.disabled||t instanceof HTMLInputElement&&t.type==="hidden"||t instanceof HTMLAnchorElement&&t.href===""?!1:t.tabIndex!==-1}function y(t){if(t.shadowRoot&&t.shadowRoot.delegatesFocus!==!0)return null;let e=t;e.shadowRoot&&(e=e.shadowRoot);let n=e.querySelector("[autofocus]");if(n)return n;let r=t.ownerDocument.createTreeWalker(e,NodeFilter.SHOW_ELEMENT),o=r.currentNode;for(;o;){if(x(o))return o;o=r.nextNode()}}function w(t){y(t)?.focus()}var S=new WeakMap;function A(e){if(!f(e,!1))return;let r=e.ownerDocument;if(!e.dispatchEvent(new t("beforetoggle",{cancelable:!0,oldState:"closed",newState:"open"}))||!f(e,!1))return;let o=!1;if(e.popover==="auto"){let t=e.getAttribute("popover"),n=h(e)||r;if(E(n,!1,!0),t!==e.getAttribute("popover")||!f(e,!1))return}b(r)||(o=!0),S.delete(e);let l=r.activeElement;e.classList.add(":popover-open"),s.set(e,"showing"),i.has(r)||i.set(r,new Set),i.get(r).add(e),w(e),e.popover==="auto"&&(a.has(r)||a.set(r,new Set),a.get(r).add(e),I(u.get(e),!0)),o&&l&&e.popover==="auto"&&S.set(e,l),n(e,"closed","open")}function O(e,r=!1,o=!1){if(!f(e,!0))return;let l=e.ownerDocument;if(e.popover==="auto"&&(E(e,r,o),!f(e,!0))||(I(u.get(e),!1),u.delete(e),o&&(e.dispatchEvent(new t("beforetoggle",{oldState:"open",newState:"closed"})),!f(e,!0))))return;i.get(l)?.delete(e),a.get(l)?.delete(e),e.classList.remove(":popover-open"),s.set(e,"hidden"),o&&n(e,"open","closed");let c=S.get(e);c&&(S.delete(e),r&&c.focus())}function k(t,e=!1,n=!1){let r=b(t);for(;r;)O(r,e,n),r=b(t)}function E(t,e,n){let r=t.ownerDocument||t;if(t instanceof Document)return k(r,e,n);let o=null,i=!1;for(let e of a.get(r)||[])if(e===t)i=!0;else if(i){o=e;break}if(!i)return k(r,e,n);for(;o&&l(o)==="showing"&&a.get(r)?.size;)O(o,e,n)}var M=new WeakMap;function T(t){if(!t.isTrusted)return;let e=t.composedPath()[0];if(!e)return;let n=e.ownerDocument;if(!b(n))return;let r=p(e);if(r&&t.type==="pointerdown")M.set(n,r);else if(t.type==="pointerup"){let t=M.get(n)===r;M.delete(n),t&&E(r||n,!1,!0)}}var P=new WeakMap;function I(t,e=!1){if(!t)return;P.has(t)||P.set(t,t.getAttribute("aria-expanded"));let n=t.popoverTargetElement;if(n&&n.popover==="auto")t.setAttribute("aria-expanded",String(e));else{let e=P.get(t);e?t.setAttribute("aria-expanded",e):t.removeAttribute("aria-expanded")}}var B=globalThis.ShadowRoot||function(){};function C(){return typeof HTMLElement<"u"&&typeof HTMLElement.prototype=="object"&&"popover"in HTMLElement.prototype}function W(t,e,n){let r=t[e];Object.defineProperty(t,e,{value(t){return r.call(this,n(t))}})}var R=/(^|[^\\]):popover-open\b/g;function F(){window.ToggleEvent=window.ToggleEvent||t;function e(t){return t?.includes(":popover-open")&&(t=t.replace(R,"$1.\\:popover-open")),t}W(Document.prototype,"querySelector",e),W(Document.prototype,"querySelectorAll",e),W(Element.prototype,"querySelector",e),W(Element.prototype,"querySelectorAll",e),W(Element.prototype,"matches",e),W(Element.prototype,"closest",e),W(DocumentFragment.prototype,"querySelectorAll",e),W(DocumentFragment.prototype,"querySelectorAll",e),Object.defineProperties(HTMLElement.prototype,{popover:{enumerable:!0,configurable:!0,get(){if(!this.hasAttribute("popover"))return null;let t=(this.getAttribute("popover")||"").toLowerCase();return t===""||t=="auto"?"auto":"manual"},set(t){this.setAttribute("popover",t)}},showPopover:{enumerable:!0,configurable:!0,value(){A(this)}},hidePopover:{enumerable:!0,configurable:!0,value(){O(this,!0,!0)}},togglePopover:{enumerable:!0,configurable:!0,value(t){s.get(this)==="showing"&&t===void 0||t===!1?O(this,!0,!0):(t===void 0||t===!0)&&A(this)}}});let n=new WeakMap;function r(t){Object.defineProperties(t.prototype,{popoverTargetElement:{enumerable:!0,configurable:!0,set(t){if(t===null)this.removeAttribute("popovertarget"),n.delete(this);else if(t instanceof Element)this.setAttribute("popovertarget",""),n.set(this,t);else throw new TypeError("popoverTargetElement must be an element or null")},get(){if(this.localName!=="button"&&this.localName!=="input"||this.localName==="input"&&this.type!=="reset"&&this.type!=="image"&&this.type!=="button"||this.disabled||this.form&&this.type==="submit")return null;let t=n.get(this);if(t&&t.isConnected)return t;if(t&&!t.isConnected)return n.delete(this),null;let e=v(this),r=this.getAttribute("popovertarget");return(e instanceof Document||e instanceof B)&&r&&e.getElementById(r)||null}},popoverTargetAction:{enumerable:!0,configurable:!0,get(){let t=(this.getAttribute("popovertargetaction")||"").toLowerCase();return t==="show"||t==="hide"?t:"toggle"},set(t){this.setAttribute("popovertargetaction",t)}}})}r(HTMLButtonElement),r(HTMLInputElement);let o=t=>{if(!t.isTrusted)return;let e=t.composedPath()[0];if(!(e instanceof Element)||e?.shadowRoot)return;let n=v(e);if(!(n instanceof B||n instanceof Document))return;let r=e.closest("[popovertargetaction],[popovertarget]");if(r){c(r);return}},i=t=>{let e=t.key,n=t.target;n&&(e==="Escape"||e==="Esc")&&E(n.ownerDocument,!0,!0)};(t=>{t.addEventListener("click",o),t.addEventListener("keydown",i),t.addEventListener("pointerdown",T),t.addEventListener("pointerup",T)})(document)}C()||F()})();
2
- /*!
3
- * long-press-event - v@version@
4
- * Pure JavaScript long-press-event
5
- * https://github.com/john-doherty/long-press-event
6
- * @author John Doherty <www.johndoherty.info>
7
- * @license MIT
8
- */(function(t,e){var n=null;var r="PointerEvent"in t||t.navigator&&"msPointerEnabled"in t.navigator;var o="ontouchstart"in t||navigator.MaxTouchPoints>0||navigator.msMaxTouchPoints>0;var i=r?"pointerdown":o?"touchstart":"mousedown";var a=r?"pointerup":o?"touchend":"mouseup";var s=r?"pointermove":o?"touchmove":"mousemove";var l=r?"pointerleave":o?"touchleave":"mouseleave";var u=0;var c=0;var f=10;var d=10;if(typeof t.CustomEvent!=="function"){t.CustomEvent=function(t,n){n=n||{bubbles:false,cancelable:false,detail:undefined};var r=e.createEvent("CustomEvent");r.initCustomEvent(t,n.bubbles,n.cancelable,n.detail);return r};t.CustomEvent.prototype=t.Event.prototype}t.requestAnimFrame=function(){return t.requestAnimationFrame||t.webkitRequestAnimationFrame||t.mozRequestAnimationFrame||t.oRequestAnimationFrame||t.msRequestAnimationFrame||function(e){t.setTimeout(e,1e3/60)}}();function p(e,n){if(!t.requestAnimationFrame&&!t.webkitRequestAnimationFrame&&!(t.mozRequestAnimationFrame&&t.mozCancelRequestAnimationFrame)&&!t.oRequestAnimationFrame&&!t.msRequestAnimationFrame)return t.setTimeout(e,n);var r=(new Date).getTime();var o={};var i=function(){var t=(new Date).getTime();var a=t-r;if(a>=n){e.call()}else{o.value=requestAnimFrame(i)}};o.value=requestAnimFrame(i);return o}function b(e){if(e){t.cancelAnimationFrame?t.cancelAnimationFrame(e.value):t.webkitCancelAnimationFrame?t.webkitCancelAnimationFrame(e.value):t.webkitCancelRequestAnimationFrame?t.webkitCancelRequestAnimationFrame(e.value):t.mozCancelRequestAnimationFrame?t.mozCancelRequestAnimationFrame(e.value):t.oCancelRequestAnimationFrame?t.oCancelRequestAnimationFrame(e.value):t.msCancelRequestAnimationFrame?t.msCancelRequestAnimationFrame(e.value):clearTimeout(e)}}function v(t){h();t=m(t);var n=this.dispatchEvent(new CustomEvent("long-press",{bubbles:true,cancelable:true,detail:{clientX:t.clientX,clientY:t.clientY,offsetX:t.offsetX,offsetY:t.offsetY,pageX:t.pageX,pageY:t.pageY},clientX:t.clientX,clientY:t.clientY,offsetX:t.offsetX,offsetY:t.offsetY,pageX:t.pageX,pageY:t.pageY,screenX:t.screenX,screenY:t.screenY}));if(!n){e.addEventListener("click",(function t(n){e.removeEventListener("click",t,true);x(n)}),true)}}function m(t){if(t.changedTouches!==undefined){return t.changedTouches[0]}return t}function g(t){h();var e=t.target;var r=parseInt(S(e,"data-long-press-delay","1500"),10);n=p(v.bind(e,t),r)}function h(t){b(n);n=null}function x(t){t.stopImmediatePropagation();t.preventDefault();t.stopPropagation()}function y(t){u=t.clientX;c=t.clientY;g(t)}function w(t){var e=Math.abs(u-t.clientX);var n=Math.abs(c-t.clientY);if(e>=f||n>=d){h()}}function S(t,n,r){while(t&&t!==e.documentElement){var o=t.getAttribute(n);if(o){return o}t=t.parentNode}return r}e.addEventListener(a,h,true);e.addEventListener(l,h,true);e.addEventListener(s,w,true);e.addEventListener("wheel",h,true);e.addEventListener("scroll",h,true);e.addEventListener(i,y,true)})(window,document);const ar=["primary","yellow"];const sr=":host,.bg-yellow{--post-bg-opacity: 1;background-color:rgba(var(--post-bg-rgb), var(--post-bg-opacity)) !important;color:var(--post-contrast-color) !important}.bg-yellow{--post-contrast-color: #000;--post-contrast-color-inverted: #fff;--post-gray-10: hsl(0, 0%, 90%);--post-gray-20: hsl(0, 0%, 80%);--post-gray-40: hsl(0, 0%, 60%);--post-gray-60: hsl(0, 0%, 40%);--post-gray-80: hsl(0, 0%, 20%);--post-yellow: #fc0;--post-light: #faf9f8;--post-gray: #f4f3f1;--post-dark: hsl(0, 0%, 20%);--post-primary: hsl(0, 0%, 20%);--post-white: #fff;--post-black: #000;--post-success: #2c911c;--post-info: #cce4ee;--post-warning: #f49e00;--post-danger: #a51728;--post-nightblue: #004976;--post-nightblue-bright: #0076a8;--post-petrol: #006d68;--post-petrol-bright: #00968f;--post-coral: #9e2a2f;--post-coral-bright: #e03c31;--post-olive: #716135;--post-olive-bright: #aa9d2e;--post-purple: #80276c;--post-purple-bright: #c5299b;--post-aubergine: #523178;--post-aubergine-bright: #7566a0;--post-contrast-color-rgb: 0, 0, 0;--post-contrast-color-inverted-rgb: 255, 255, 255;--post-gray-10-rgb: 230, 230, 230;--post-gray-20-rgb: 204, 204, 204;--post-gray-40-rgb: 153, 153, 153;--post-gray-60-rgb: 102, 102, 102;--post-gray-80-rgb: 51, 51, 51;--post-yellow-rgb: 255, 204, 0;--post-light-rgb: 250, 249, 248;--post-gray-rgb: 244, 243, 241;--post-dark-rgb: 51, 51, 51;--post-primary-rgb: 51, 51, 51;--post-white-rgb: 255, 255, 255;--post-black-rgb: 0, 0, 0;--post-success-rgb: 44, 145, 28;--post-info-rgb: 204, 228, 238;--post-warning-rgb: 244, 158, 0;--post-danger-rgb: 165, 23, 40;--post-nightblue-rgb: 0, 73, 118;--post-nightblue-bright-rgb: 0, 118, 168;--post-petrol-rgb: 0, 109, 104;--post-petrol-bright-rgb: 0, 150, 143;--post-coral-rgb: 158, 42, 47;--post-coral-bright-rgb: 224, 60, 49;--post-olive-rgb: 113, 97, 53;--post-olive-bright-rgb: 170, 157, 46;--post-purple-rgb: 128, 39, 108;--post-purple-bright-rgb: 197, 41, 155;--post-aubergine-rgb: 82, 49, 120;--post-aubergine-bright-rgb: 117, 102, 160}:host{--post-contrast-color: #fff;--post-contrast-color-inverted: #000;--post-dark: #faf9f8;--post-light: hsl(0, 0%, 20%);--post-gray-80: hsl(0, 0%, 90%);--post-gray-60: hsl(0, 0%, 80%);--post-gray-40: hsl(0, 0%, 60%);--post-gray-20: hsl(0, 0%, 40%);--post-gray-10: hsl(0, 0%, 20%);--post-contrast-color-rgb: 255, 255, 255;--post-contrast-color-inverted-rgb: 0, 0, 0;--post-dark-rgb: 250, 249, 248;--post-light-rgb: 51, 51, 51;--post-gray-80-rgb: 230, 230, 230;--post-gray-60-rgb: 204, 204, 204;--post-gray-40-rgb: 153, 153, 153;--post-gray-20-rgb: 102, 102, 102;--post-gray-10-rgb: 51, 51, 51}@layer polyfill{[popover]{position:fixed;z-index:2147483647;inset:0;padding:.25em;width:fit-content;height:fit-content;border-width:initial;border-color:initial;border-image:initial;border-style:solid;background-color:canvas;color:canvastext;overflow:auto;margin:auto}[popover]:not(.\\:popover-open){display:none}[popover]:is(dialog[open]){display:revert}[anchor].\\:popover-open{inset:auto}@supports selector([popover]:open){[popover]:not(.\\:popover-open,dialog[open]){display:revert}[anchor]:is(:open){inset:auto}}@supports selector([popover]:popover-open){[popover]:not(.\\:popover-open,dialog[open]){display:revert}[anchor]:is(:popover-open){inset:auto}}@supports not (background-color: canvas){[popover]{background-color:white;color:black}}@supports(width: -moz-fit-content){[popover]{width:-moz-fit-content;height:-moz-fit-content}}@supports not (inset: 0){[popover]{top:0;left:0;right:0;bottom:0}}}:host{--post-bg-rgb: 51, 51, 51}div{position:absolute;z-index:1070;width:max-content;max-width:30ch;margin:0;padding:.25rem .5rem;color:inherit;background-color:inherit;border-color:rgba(0,0,0,0);border-radius:4px;overflow:visible;pointer-events:none}.arrow{position:absolute;width:.7071067812rem;aspect-ratio:1/1;background-color:inherit;rotate:45deg;pointer-events:none;z-index:-1;border-right:2px solid rgba(0,0,0,0);border-bottom:2px solid rgba(0,0,0,0)}.bg-yellow{--post-bg-rgb: 255, 204, 0}";const lr={top:"bottom",right:"left",bottom:"top",left:"right"};const ur=class{validateBackgroundColor(t=this.backgroundColor){i(t,ar,`The post-tooltip "background-color" prop should contain one of those values: ${ar.join(", ")}`);if(t==="yellow"){this.tooltipClasses="bg-yellow"}else{this.tooltipClasses="bg-primary"}}constructor(e){t(this,e);this.tooltipClasses=undefined;this.backgroundColor="primary";this.placement="top";this.localShowTooltip=t=>this.show(t.target);this.localHideTooltip=this.hide.bind(this);this.localToggleTooltip=this.toggle.bind(this)}componentWillLoad(){this.validateBackgroundColor();document.body.appendChild(this.host)}connectedCallback(){if(!this.host.id){throw new Error("No id set: <post-tooltip> must have an id, linking it to it's target element using the data-tooltip-target attribute.")}if(!this.triggers){throw new Error(`No trigger found for <post-tooltip id="${this.host.id}">, please add the 'data-tooltip-target="${this.host.id}" attribute to the trigger element.`)}this.triggers.forEach((t=>this.patchPopoverTargetActionInterest(t)))}disconnectedCallback(){this.triggers.forEach((t=>{t.removeEventListener("mouseenter",this.localShowTooltip);t.removeEventListener("mouseleave",this.localHideTooltip);t.removeEventListener("focus",this.localShowTooltip);t.removeEventListener("blur",this.localHideTooltip);t.removeEventListener("long-press",this.localShowTooltip)}));if(this.tooltipRef)this.tooltipRef.removeEventListener("beforetoggle",this.localToggleTooltip);if(typeof this.clearAutoUpdate==="function")this.clearAutoUpdate()}componentDidLoad(){if(!this.host.id||!this.triggers)return false;this.tooltipRef.setAttribute("popover","");this.tooltipRef.addEventListener("beforetoggle",this.handleToggle.bind(this))}async show(t){this.eventTarget=t;this.tooltipRef.showPopover()}async hide(){this.eventTarget=null;this.tooltipRef.hidePopover()}async toggle(t,e){this.eventTarget=t;this.tooltipRef.togglePopover(e)}get triggers(){return document.querySelectorAll(`[data-tooltip-target="${this.host.id}"]`)}patchPopoverTargetActionInterest(t){t.addEventListener("mouseenter",this.localShowTooltip);t.addEventListener("mouseleave",this.localHideTooltip);t.addEventListener("focus",this.localShowTooltip);t.addEventListener("blur",this.localHideTooltip);t.addEventListener("long-press",this.localShowTooltip);const e=t.getAttribute("aria-describedby");if(!(e===null||e===void 0?void 0:e.includes(this.host.id))){const n=e?`${e} ${this.host.id}`:this.host.id;t.setAttribute("aria-describedby",n)}if(!ir(t)){t.setAttribute("tabindex","0")}}handleToggle(t){const e=t.newState==="open";if(e){this.startAutoupdates()}else{if(typeof this.clearAutoUpdate==="function")this.clearAutoUpdate()}}startAutoupdates(){this.clearAutoUpdate=It(this.eventTarget,this.tooltipRef,this.positionTooltip.bind(this))}async positionTooltip(){const{x:t,y:e,middlewareData:n,placement:r}=await Bt(this.eventTarget,this.tooltipRef,{placement:this.placement||"top",middleware:[R(),L(),Z({padding:8}),D(12),W({element:this.arrowRef,padding:8})]});this.tooltipRef.style.left=`${t}px`;this.tooltipRef.style.top=`${e}px`;const o=r.split("-")[0];const{x:i,y:a}=n.arrow;const s=lr[o];Object.assign(this.arrowRef.style,{top:a?`${a}px`:"",left:i?`${i}px`:"",[s]:`${-this.arrowRef.offsetWidth/2}px`})}render(){return e(n,{"data-version":o},e("div",{role:"tooltip",tabindex:"-1",class:this.tooltipClasses,ref:t=>this.tooltipRef=t},e("span",{class:"arrow",ref:t=>{this.arrowRef=t}}),e("slot",null)))}get host(){return r(this)}static get watchers(){return{backgroundColor:["validateBackgroundColor"]}}};ur.style=sr;export{ur as P};
9
- //# sourceMappingURL=p-01e8dfe6.js.map