@dbp-topics/dispatch
Version:
[GitHub Repository](https://github.com/digital-blueprint/dispatch-frontend) | [npmjs package](https://www.npmjs.com/package/@dbp-topics/dispatch) | [Unpkg CDN](https://unpkg.com/browse/@dbp-topics/dispatch/) | [Dispatch Bundle](https://github.com/digital-
102 lines (97 loc) • 94.1 kB
JavaScript
let e,t,i,n,r,s,o,a,d,l,c,u,p,h,f,b,m,g,v,y,w,x,$,S,q,O,k,L,T,I,A,E=e=>e;function R(){return R=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var i=arguments[t];for(var n in i)Object.prototype.hasOwnProperty.call(i,n)&&(e[n]=i[n])}return e},R.apply(this,arguments)}
/*!
* License: LGPL-2.1-or-later
* Dependencies:
*
* @webcomponents/scoped-custom-element-registry: BSD-3-Clause
* @dbp-toolkit/app-shell: LGPL-2.1-or-later
* @dbp-toolkit/language-select: LGPL-2.1-or-later
* @dbp-toolkit/common: LGPL-2.1-or-later
* @dbp-toolkit/auth: LGPL-2.1-or-later
* event-target-shim: MIT
* @dbp-toolkit/notification: LGPL-2.1-or-later
* @dbp-toolkit/theme-switcher: LGPL-2.1-or-later
* path-to-regexp: MIT
* universal-router: MIT
* generateUrls: MIT
* @dbp-toolkit/matomo: LGPL-2.1-or-later
* @tugraz/web-components: LGPL-2.1-or-later
* @babel/runtime: MIT
* i18next: MIT
* @lit/reactive-element: BSD-3-Clause
* lit-html: BSD-3-Clause
* lit-element: BSD-3-Clause
* @open-wc/dedupe-mixin: MIT
* @open-wc/scoped-elements: MIT
* @popperjs/core: MIT
* tippy.js: MIT
* @dbp-toolkit/tooltip: LGPL-2.1-or-later
*/import{D as C,c as _,A as D,I as j,P as M,g as V,a as z,M as N,b as W}from"./shared/styles.c9ce8bd4.es.js";import{S as P,D as H,I as F,i as B,g as U,b as G,f as Y,n as X,y as J,M as Z,L as K,q as Q,l as ee,d as te,r as ie,t as ne,u as re,v as se,w as oe,x as ae,o as de,z as le,k as ce}from"./shared/notification.431b7aff.es.js";import{FileSource as ue}from"./shared/file-source.7dcfb7c2.es.js";import"./shared/file-sink.a4f3cd03.es.js";import{T as pe}from"./shared/dbp-file-handling-lit-element.c8c0eb51.es.js";import{R as he}from"./shared/resource-select.22699b80.es.js";import"./shared/jsonld.f5d0f523.es.js";import"./shared/_commonjsHelpers.e3705ba7.es.js";var fe={element:"dbp-show-requests",module_src:"dbp-show-requests.js",routing_name:"show-requests",name:{de:"Versandaufträge anzeigen",en:"Show Requests"},short_name:{de:"Versandaufträge anzeigen",en:"Show dispatch orders"},description:{de:"Zeigt eine Liste aller Versandaufträge.",en:"Shows a list of all dispatch orders."},subscribe:"lang,entry-point-url,auth,html-overrides,nextcloud-web-app-password-url,nextcloud-webdav-url,nextcloud-name,nextcloud-file-url,file-handling-enabled-targets"},be="top",me="bottom",ge="right",ve="left",ye=[be,me,ge,ve],we=ye.reduce((function(e,t){return e.concat([t+"-start",t+"-end"])}),[]),xe=[].concat(ye,["auto"]).reduce((function(e,t){return e.concat([t,t+"-start",t+"-end"])}),[]),$e=["beforeRead","read","afterRead","beforeMain","main","afterMain","beforeWrite","write","afterWrite"];function Se(e){return e?(e.nodeName||"").toLowerCase():null}function qe(e){if(null==e)return window;if("[object Window]"!==e.toString()){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function Oe(e){return e instanceof qe(e).Element||e instanceof Element}function ke(e){return e instanceof qe(e).HTMLElement||e instanceof HTMLElement}function Le(e){return"undefined"!=typeof ShadowRoot&&(e instanceof qe(e).ShadowRoot||e instanceof ShadowRoot)}var Te={name:"applyStyles",enabled:!0,phase:"write",fn:function(e){var t=e.state;Object.keys(t.elements).forEach((function(e){var i=t.styles[e]||{},n=t.attributes[e]||{},r=t.elements[e];ke(r)&&Se(r)&&(Object.assign(r.style,i),Object.keys(n).forEach((function(e){var t=n[e];!1===t?r.removeAttribute(e):r.setAttribute(e,!0===t?"":t)})))}))},effect:function(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],r=t.attributes[e]||{},s=Object.keys(t.styles.hasOwnProperty(e)?t.styles[e]:i[e]).reduce((function(e,t){return e[t]="",e}),{});ke(n)&&Se(n)&&(Object.assign(n.style,s),Object.keys(r).forEach((function(e){n.removeAttribute(e)})))}))}},requires:["computeStyles"]};function Ie(e){return e.split("-")[0]}var Ae=Math.max,Ee=Math.min,Re=Math.round;function Ce(){var e=navigator.userAgentData;return null!=e&&e.brands?e.brands.map((function(e){return e.brand+"/"+e.version})).join(" "):navigator.userAgent}function _e(){return!/^((?!chrome|android).)*safari/i.test(Ce())}function De(e,t,i){void 0===t&&(t=!1),void 0===i&&(i=!1);var n=e.getBoundingClientRect(),r=1,s=1;t&&ke(e)&&(r=e.offsetWidth>0&&Re(n.width)/e.offsetWidth||1,s=e.offsetHeight>0&&Re(n.height)/e.offsetHeight||1);var o=(Oe(e)?qe(e):window).visualViewport,a=!_e()&&i,d=(n.left+(a&&o?o.offsetLeft:0))/r,l=(n.top+(a&&o?o.offsetTop:0))/s,c=n.width/r,u=n.height/s;return{width:c,height:u,top:l,right:d+c,bottom:l+u,left:d,x:d,y:l}}function je(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 Me(e,t){var i=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(i&&Le(i)){var n=t;do{if(n&&e.isSameNode(n))return!0;n=n.parentNode||n.host}while(n)}return!1}function Ve(e){return qe(e).getComputedStyle(e)}function ze(e){return["table","td","th"].indexOf(Se(e))>=0}function Ne(e){return((Oe(e)?e.ownerDocument:e.document)||window.document).documentElement}function We(e){return"html"===Se(e)?e:e.assignedSlot||e.parentNode||(Le(e)?e.host:null)||Ne(e)}function Pe(e){return ke(e)&&"fixed"!==Ve(e).position?e.offsetParent:null}function He(e){for(var t=qe(e),i=Pe(e);i&&ze(i)&&"static"===Ve(i).position;)i=Pe(i);return i&&("html"===Se(i)||"body"===Se(i)&&"static"===Ve(i).position)?t:i||function(e){var t=/firefox/i.test(Ce());if(/Trident/i.test(Ce())&&ke(e)&&"fixed"===Ve(e).position)return null;var i=We(e);for(Le(i)&&(i=i.host);ke(i)&&["html","body"].indexOf(Se(i))<0;){var n=Ve(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}(e)||t}function Fe(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function Be(e,t,i){return Ae(e,Ee(t,i))}function Ue(e){return Object.assign({},{top:0,right:0,bottom:0,left:0},e)}function Ge(e,t){return t.reduce((function(t,i){return t[i]=e,t}),{})}var Ye={name:"arrow",enabled:!0,phase:"main",fn:function(e){var t,i=e.state,n=e.name,r=e.options,s=i.elements.arrow,o=i.modifiersData.popperOffsets,a=Ie(i.placement),d=Fe(a),l=[ve,ge].indexOf(a)>=0?"height":"width";if(s&&o){var c=function(e,t){return Ue("number"!=typeof(e="function"==typeof e?e(Object.assign({},t.rects,{placement:t.placement})):e)?e:Ge(e,ye))}(r.padding,i),u=je(s),p="y"===d?be:ve,h="y"===d?me:ge,f=i.rects.reference[l]+i.rects.reference[d]-o[d]-i.rects.popper[l],b=o[d]-i.rects.reference[d],m=He(s),g=m?"y"===d?m.clientHeight||0:m.clientWidth||0:0,v=f/2-b/2,y=c[p],w=g-u[l]-c[h],x=g/2-u[l]/2+v,$=Be(y,x,w),S=d;i.modifiersData[n]=((t={})[S]=$,t.centerOffset=$-x,t)}},effect:function(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)))&&Me(t.elements.popper,n)&&(t.elements.arrow=n)},requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function Xe(e){return e.split("-")[1]}var Je={top:"auto",right:"auto",bottom:"auto",left:"auto"};function Ze(e){var t,i=e.popper,n=e.popperRect,r=e.placement,s=e.variation,o=e.offsets,a=e.position,d=e.gpuAcceleration,l=e.adaptive,c=e.roundOffsets,u=e.isFixed,p=o.x,h=void 0===p?0:p,f=o.y,b=void 0===f?0:f,m="function"==typeof c?c({x:h,y:b}):{x:h,y:b};h=m.x,b=m.y;var g=o.hasOwnProperty("x"),v=o.hasOwnProperty("y"),y=ve,w=be,x=window;if(l){var $=He(i),S="clientHeight",q="clientWidth";if($===qe(i)&&"static"!==Ve($=Ne(i)).position&&"absolute"===a&&(S="scrollHeight",q="scrollWidth"),r===be||(r===ve||r===ge)&&"end"===s)w=me,b-=(u&&$===x&&x.visualViewport?x.visualViewport.height:$[S])-n.height,b*=d?1:-1;if(r===ve||(r===be||r===me)&&"end"===s)y=ge,h-=(u&&$===x&&x.visualViewport?x.visualViewport.width:$[q])-n.width,h*=d?1:-1}var O,k=Object.assign({position:a},l&&Je),L=!0===c?function(e){var t=e.x,i=e.y,n=window.devicePixelRatio||1;return{x:Re(t*n)/n||0,y:Re(i*n)/n||0}}({x:h,y:b}):{x:h,y:b};return h=L.x,b=L.y,d?Object.assign({},k,((O={})[w]=v?"0":"",O[y]=g?"0":"",O.transform=(x.devicePixelRatio||1)<=1?"translate("+h+"px, "+b+"px)":"translate3d("+h+"px, "+b+"px, 0)",O)):Object.assign({},k,((t={})[w]=v?b+"px":"",t[y]=g?h+"px":"",t.transform="",t))}var Ke={passive:!0};var Qe={left:"right",right:"left",bottom:"top",top:"bottom"};function et(e){return e.replace(/left|right|bottom|top/g,(function(e){return Qe[e]}))}var tt={start:"end",end:"start"};function it(e){return e.replace(/start|end/g,(function(e){return tt[e]}))}function nt(e){var t=qe(e);return{scrollLeft:t.pageXOffset,scrollTop:t.pageYOffset}}function rt(e){return De(Ne(e)).left+nt(e).scrollLeft}function st(e){var t=Ve(e),i=t.overflow,n=t.overflowX,r=t.overflowY;return/auto|scroll|overlay|hidden/.test(i+r+n)}function ot(e){return["html","body","#document"].indexOf(Se(e))>=0?e.ownerDocument.body:ke(e)&&st(e)?e:ot(We(e))}function at(e,t){var i;void 0===t&&(t=[]);var n=ot(e),r=n===(null==(i=e.ownerDocument)?void 0:i.body),s=qe(n),o=r?[s].concat(s.visualViewport||[],st(n)?n:[]):n,a=t.concat(o);return r?a:a.concat(at(We(o)))}function dt(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function lt(e,t,i){return"viewport"===t?dt(function(e,t){var i=qe(e),n=Ne(e),r=i.visualViewport,s=n.clientWidth,o=n.clientHeight,a=0,d=0;if(r){s=r.width,o=r.height;var l=_e();(l||!l&&"fixed"===t)&&(a=r.offsetLeft,d=r.offsetTop)}return{width:s,height:o,x:a+rt(e),y:d}}(e,i)):Oe(t)?function(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}(t,i):dt(function(e){var t,i=Ne(e),n=nt(e),r=null==(t=e.ownerDocument)?void 0:t.body,s=Ae(i.scrollWidth,i.clientWidth,r?r.scrollWidth:0,r?r.clientWidth:0),o=Ae(i.scrollHeight,i.clientHeight,r?r.scrollHeight:0,r?r.clientHeight:0),a=-n.scrollLeft+rt(e),d=-n.scrollTop;return"rtl"===Ve(r||i).direction&&(a+=Ae(i.clientWidth,r?r.clientWidth:0)-s),{width:s,height:o,x:a,y:d}}(Ne(e)))}function ct(e,t,i,n){var r="clippingParents"===t?function(e){var t=at(We(e)),i=["absolute","fixed"].indexOf(Ve(e).position)>=0&&ke(e)?He(e):e;return Oe(i)?t.filter((function(e){return Oe(e)&&Me(e,i)&&"body"!==Se(e)})):[]}(e):[].concat(t),s=[].concat(r,[i]),o=s[0],a=s.reduce((function(t,i){var r=lt(e,i,n);return t.top=Ae(r.top,t.top),t.right=Ee(r.right,t.right),t.bottom=Ee(r.bottom,t.bottom),t.left=Ae(r.left,t.left),t}),lt(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 ut(e){var t,i=e.reference,n=e.element,r=e.placement,s=r?Ie(r):null,o=r?Xe(r):null,a=i.x+i.width/2-n.width/2,d=i.y+i.height/2-n.height/2;switch(s){case be:t={x:a,y:i.y-n.height};break;case me:t={x:a,y:i.y+i.height};break;case ge:t={x:i.x+i.width,y:d};break;case ve:t={x:i.x-n.width,y:d};break;default:t={x:i.x,y:i.y}}var l=s?Fe(s):null;if(null!=l){var c="y"===l?"height":"width";switch(o){case"start":t[l]=t[l]-(i[c]/2-n[c]/2);break;case"end":t[l]=t[l]+(i[c]/2-n[c]/2)}}return t}function pt(e,t){void 0===t&&(t={});var i=t,n=i.placement,r=void 0===n?e.placement:n,s=i.strategy,o=void 0===s?e.strategy:s,a=i.boundary,d=void 0===a?"clippingParents":a,l=i.rootBoundary,c=void 0===l?"viewport":l,u=i.elementContext,p=void 0===u?"popper":u,h=i.altBoundary,f=void 0!==h&&h,b=i.padding,m=void 0===b?0:b,g=Ue("number"!=typeof m?m:Ge(m,ye)),v="popper"===p?"reference":"popper",y=e.rects.popper,w=e.elements[f?v:p],x=ct(Oe(w)?w:w.contextElement||Ne(e.elements.popper),d,c,o),$=De(e.elements.reference),S=ut({reference:$,element:y,strategy:"absolute",placement:r}),q=dt(Object.assign({},y,S)),O="popper"===p?q:$,k={top:x.top-O.top+g.top,bottom:O.bottom-x.bottom+g.bottom,left:x.left-O.left+g.left,right:O.right-x.right+g.right},L=e.modifiersData.offset;if("popper"===p&&L){var T=L[r];Object.keys(k).forEach((function(e){var t=[ge,me].indexOf(e)>=0?1:-1,i=[be,me].indexOf(e)>=0?"y":"x";k[e]+=T[i]*t}))}return k}function ht(e,t){void 0===t&&(t={});var i=t,n=i.placement,r=i.boundary,s=i.rootBoundary,o=i.padding,a=i.flipVariations,d=i.allowedAutoPlacements,l=void 0===d?xe:d,c=Xe(n),u=c?a?we:we.filter((function(e){return Xe(e)===c})):ye,p=u.filter((function(e){return l.indexOf(e)>=0}));0===p.length&&(p=u);var h=p.reduce((function(t,i){return t[i]=pt(e,{placement:i,boundary:r,rootBoundary:s,padding:o})[Ie(i)],t}),{});return Object.keys(h).sort((function(e,t){return h[e]-h[t]}))}var ft={name:"flip",enabled:!0,phase:"main",fn:function(e){var t=e.state,i=e.options,n=e.name;if(!t.modifiersData[n]._skip){for(var r=i.mainAxis,s=void 0===r||r,o=i.altAxis,a=void 0===o||o,d=i.fallbackPlacements,l=i.padding,c=i.boundary,u=i.rootBoundary,p=i.altBoundary,h=i.flipVariations,f=void 0===h||h,b=i.allowedAutoPlacements,m=t.options.placement,g=Ie(m),v=d||(g===m||!f?[et(m)]:function(e){if("auto"===Ie(e))return[];var t=et(e);return[it(e),t,it(t)]}(m)),y=[m].concat(v).reduce((function(e,i){return e.concat("auto"===Ie(i)?ht(t,{placement:i,boundary:c,rootBoundary:u,padding:l,flipVariations:f,allowedAutoPlacements:b}):i)}),[]),w=t.rects.reference,x=t.rects.popper,$=new Map,S=!0,q=y[0],O=0;O<y.length;O++){var k=y[O],L=Ie(k),T="start"===Xe(k),I=[be,me].indexOf(L)>=0,A=I?"width":"height",E=pt(t,{placement:k,boundary:c,rootBoundary:u,altBoundary:p,padding:l}),R=I?T?ge:ve:T?me:be;w[A]>x[A]&&(R=et(R));var C=et(R),_=[];if(s&&_.push(E[L]<=0),a&&_.push(E[R]<=0,E[C]<=0),_.every((function(e){return e}))){q=k,S=!1;break}$.set(k,_)}if(S)for(var D=function(e){var t=y.find((function(t){var i=$.get(t);if(i)return i.slice(0,e).every((function(e){return e}))}));if(t)return q=t,"break"},j=f?3:1;j>0;j--){if("break"===D(j))break}t.placement!==q&&(t.modifiersData[n]._skip=!0,t.placement=q,t.reset=!0)}},requiresIfExists:["offset"],data:{_skip:!1}};function bt(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 mt(e){return[be,ge,me,ve].some((function(t){return e[t]>=0}))}var gt={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:function(e){var t=e.state,i=e.name,n=t.rects.reference,r=t.rects.popper,s=t.modifiersData.preventOverflow,o=pt(t,{elementContext:"reference"}),a=pt(t,{altBoundary:!0}),d=bt(o,n),l=bt(a,r,s),c=mt(d),u=mt(l);t.modifiersData[i]={referenceClippingOffsets:d,popperEscapeOffsets:l,isReferenceHidden:c,hasPopperEscaped:u},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":c,"data-popper-escaped":u})}};var vt={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:function(e){var t=e.state,i=e.options,n=e.name,r=i.offset,s=void 0===r?[0,0]:r,o=xe.reduce((function(e,i){return e[i]=function(e,t,i){var n=Ie(e),r=[ve,be].indexOf(n)>=0?-1:1,s="function"==typeof i?i(Object.assign({},t,{placement:e})):i,o=s[0],a=s[1];return o=o||0,a=(a||0)*r,[ve,ge].indexOf(n)>=0?{x:a,y:o}:{x:o,y:a}}(i,t.rects,s),e}),{}),a=o[t.placement],d=a.x,l=a.y;null!=t.modifiersData.popperOffsets&&(t.modifiersData.popperOffsets.x+=d,t.modifiersData.popperOffsets.y+=l),t.modifiersData[n]=o}};var yt={name:"popperOffsets",enabled:!0,phase:"read",fn:function(e){var t=e.state,i=e.name;t.modifiersData[i]=ut({reference:t.rects.reference,element:t.rects.popper,strategy:"absolute",placement:t.placement})},data:{}};var wt={name:"preventOverflow",enabled:!0,phase:"main",fn:function(e){var t=e.state,i=e.options,n=e.name,r=i.mainAxis,s=void 0===r||r,o=i.altAxis,a=void 0!==o&&o,d=i.boundary,l=i.rootBoundary,c=i.altBoundary,u=i.padding,p=i.tether,h=void 0===p||p,f=i.tetherOffset,b=void 0===f?0:f,m=pt(t,{boundary:d,rootBoundary:l,padding:u,altBoundary:c}),g=Ie(t.placement),v=Xe(t.placement),y=!v,w=Fe(g),x="x"===w?"y":"x",$=t.modifiersData.popperOffsets,S=t.rects.reference,q=t.rects.popper,O="function"==typeof b?b(Object.assign({},t.rects,{placement:t.placement})):b,k="number"==typeof O?{mainAxis:O,altAxis:O}:Object.assign({mainAxis:0,altAxis:0},O),L=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,T={x:0,y:0};if($){if(s){var I,A="y"===w?be:ve,E="y"===w?me:ge,R="y"===w?"height":"width",C=$[w],_=C+m[A],D=C-m[E],j=h?-q[R]/2:0,M="start"===v?S[R]:q[R],V="start"===v?-q[R]:-S[R],z=t.elements.arrow,N=h&&z?je(z):{width:0,height:0},W=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:{top:0,right:0,bottom:0,left:0},P=W[A],H=W[E],F=Be(0,S[R],N[R]),B=y?S[R]/2-j-F-P-k.mainAxis:M-F-P-k.mainAxis,U=y?-S[R]/2+j+F+H+k.mainAxis:V+F+H+k.mainAxis,G=t.elements.arrow&&He(t.elements.arrow),Y=G?"y"===w?G.clientTop||0:G.clientLeft||0:0,X=null!=(I=null==L?void 0:L[w])?I:0,J=C+U-X,Z=Be(h?Ee(_,C+B-X-Y):_,C,h?Ae(D,J):D);$[w]=Z,T[w]=Z-C}if(a){var K,Q="x"===w?be:ve,ee="x"===w?me:ge,te=$[x],ie="y"===x?"height":"width",ne=te+m[Q],re=te-m[ee],se=-1!==[be,ve].indexOf(g),oe=null!=(K=null==L?void 0:L[x])?K:0,ae=se?ne:te-S[ie]-q[ie]-oe+k.altAxis,de=se?te+S[ie]+q[ie]-oe-k.altAxis:re,le=h&&se?function(e,t,i){var n=Be(e,t,i);return n>i?i:n}(ae,te,de):Be(h?ae:ne,te,h?de:re);$[x]=le,T[x]=le-te}t.modifiersData[n]=T}},requiresIfExists:["offset"]};function xt(e,t,i){void 0===i&&(i=!1);var n,r=ke(t),s=ke(t)&&function(e){var t=e.getBoundingClientRect(),i=Re(t.width)/e.offsetWidth||1,n=Re(t.height)/e.offsetHeight||1;return 1!==i||1!==n}(t),o=Ne(t),a=De(e,s,i),d={scrollLeft:0,scrollTop:0},l={x:0,y:0};return(r||!r&&!i)&&(("body"!==Se(t)||st(o))&&(d=(n=t)!==qe(n)&&ke(n)?function(e){return{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}}(n):nt(n)),ke(t)?((l=De(t,!0)).x+=t.clientLeft,l.y+=t.clientTop):o&&(l.x=rt(o))),{x:a.left+d.scrollLeft-l.x,y:a.top+d.scrollTop-l.y,width:a.width,height:a.height}}function $t(e){var t=new Map,i=new Set,n=[];function r(e){i.add(e.name),[].concat(e.requires||[],e.requiresIfExists||[]).forEach((function(e){if(!i.has(e)){var n=t.get(e);n&&r(n)}})),n.push(e)}return e.forEach((function(e){t.set(e.name,e)})),e.forEach((function(e){i.has(e.name)||r(e)})),n}var St={placement:"bottom",modifiers:[],strategy:"absolute"};function qt(){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 Ot(e){void 0===e&&(e={});var t=e,i=t.defaultModifiers,n=void 0===i?[]:i,r=t.defaultOptions,s=void 0===r?St:r;return function(e,t,i){void 0===i&&(i=s);var r,o,a={placement:"bottom",orderedModifiers:[],options:Object.assign({},St,s),modifiersData:{},elements:{reference:e,popper:t},attributes:{},styles:{}},d=[],l=!1,c={state:a,setOptions:function(i){var r="function"==typeof i?i(a.options):i;u(),a.options=Object.assign({},s,a.options,r),a.scrollParents={reference:Oe(e)?at(e):e.contextElement?at(e.contextElement):[],popper:at(t)};var o,l,p=function(e){var t=$t(e);return $e.reduce((function(e,i){return e.concat(t.filter((function(e){return e.phase===i})))}),[])}((o=[].concat(n,a.options.modifiers),l=o.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}),{}),Object.keys(l).map((function(e){return l[e]}))));return a.orderedModifiers=p.filter((function(e){return e.enabled})),a.orderedModifiers.forEach((function(e){var t=e.name,i=e.options,n=void 0===i?{}:i,r=e.effect;if("function"==typeof r){var s=r({state:a,name:t,instance:c,options:n}),o=function(){};d.push(s||o)}})),c.update()},forceUpdate:function(){if(!l){var e=a.elements,t=e.reference,i=e.popper;if(qt(t,i)){a.rects={reference:xt(t,He(i),"fixed"===a.options.strategy),popper:je(i)},a.reset=!1,a.placement=a.options.placement,a.orderedModifiers.forEach((function(e){return a.modifiersData[e.name]=Object.assign({},e.data)}));for(var n=0;n<a.orderedModifiers.length;n++)if(!0!==a.reset){var r=a.orderedModifiers[n],s=r.fn,o=r.options,d=void 0===o?{}:o,u=r.name;"function"==typeof s&&(a=s({state:a,options:d,name:u,instance:c})||a)}else a.reset=!1,n=-1}}},update:(r=function(){return new Promise((function(e){c.forceUpdate(),e(a)}))},function(){return o||(o=new Promise((function(e){Promise.resolve().then((function(){o=void 0,e(r())}))}))),o}),destroy:function(){u(),l=!0}};if(!qt(e,t))return c;function u(){d.forEach((function(e){return e()})),d=[]}return c.setOptions(i).then((function(e){!l&&i.onFirstUpdate&&i.onFirstUpdate(e)})),c}}var kt=Ot({defaultModifiers:[{name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:function(e){var t=e.state,i=e.instance,n=e.options,r=n.scroll,s=void 0===r||r,o=n.resize,a=void 0===o||o,d=qe(t.elements.popper),l=[].concat(t.scrollParents.reference,t.scrollParents.popper);return s&&l.forEach((function(e){e.addEventListener("scroll",i.update,Ke)})),a&&d.addEventListener("resize",i.update,Ke),function(){s&&l.forEach((function(e){e.removeEventListener("scroll",i.update,Ke)})),a&&d.removeEventListener("resize",i.update,Ke)}},data:{}},yt,{name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:function(e){var t=e.state,i=e.options,n=i.gpuAcceleration,r=void 0===n||n,s=i.adaptive,o=void 0===s||s,a=i.roundOffsets,d=void 0===a||a,l={placement:Ie(t.placement),variation:Xe(t.placement),popper:t.elements.popper,popperRect:t.rects.popper,gpuAcceleration:r,isFixed:"fixed"===t.options.strategy};null!=t.modifiersData.popperOffsets&&(t.styles.popper=Object.assign({},t.styles.popper,Ze(Object.assign({},l,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:o,roundOffsets:d})))),null!=t.modifiersData.arrow&&(t.styles.arrow=Object.assign({},t.styles.arrow,Ze(Object.assign({},l,{offsets:t.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:d})))),t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-placement":t.placement})},data:{}},Te,vt,ft,wt,Ye,gt]}),Lt={passive:!0,capture:!0},Tt=function(){return document.body};function It(e,t,i){if(Array.isArray(e)){var n=e[t];return null==n?Array.isArray(i)?i[t]:i:n}return e}function At(e,t){var i={}.toString.call(e);return 0===i.indexOf("[object")&&i.indexOf(t+"]")>-1}function Et(e,t){return"function"==typeof e?e.apply(void 0,t):e}function Rt(e,t){return 0===t?e:function(n){clearTimeout(i),i=setTimeout((function(){e(n)}),t)};var i}function Ct(e){return[].concat(e)}function _t(e,t){-1===e.indexOf(t)&&e.push(t)}function Dt(e){return[].slice.call(e)}function jt(e){return Object.keys(e).reduce((function(t,i){return void 0!==e[i]&&(t[i]=e[i]),t}),{})}function Mt(){return document.createElement("div")}function Vt(e){return["Element","Fragment"].some((function(t){return At(e,t)}))}function zt(e){return Vt(e)?[e]:function(e){return At(e,"NodeList")}(e)?Dt(e):Array.isArray(e)?e:Dt(document.querySelectorAll(e))}function Nt(e,t){e.forEach((function(e){e&&(e.style.transitionDuration=t+"ms")}))}function Wt(e,t){e.forEach((function(e){e&&e.setAttribute("data-state",t)}))}function Pt(e,t,i){var n=t+"EventListener";["transitionend","webkitTransitionEnd"].forEach((function(t){e[n](t,i)}))}function Ht(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 Ft={isTouch:!1},Bt=0;function Ut(){Ft.isTouch||(Ft.isTouch=!0,window.performance&&document.addEventListener("mousemove",Gt))}function Gt(){var e=performance.now();e-Bt<20&&(Ft.isTouch=!1,document.removeEventListener("mousemove",Gt)),Bt=e}function Yt(){var e,t=document.activeElement;if((e=t)&&e._tippy&&e._tippy.reference===e){var i=t._tippy;t.blur&&!i.state.isVisible&&t.blur()}}var Xt=!!("undefined"!=typeof window&&"undefined"!=typeof document)&&!!window.msCrypto,Jt=Object.assign({appendTo:Tt,aria:{content:"auto",expanded:"auto"},delay:0,duration:[300,250],getReferenceClientRect:null,hideOnClick:!0,ignoreAttributes:!1,interactive:!1,interactiveBorder:2,interactiveDebounce:0,moveTransition:"",offset:[0,10],onAfterUpdate:function(){},onBeforeUpdate:function(){},onCreate:function(){},onDestroy:function(){},onHidden:function(){},onHide:function(){},onMount:function(){},onShow:function(){},onShown:function(){},onTrigger:function(){},onUntrigger:function(){},onClickOutside:function(){},placement:"top",plugins:[],popperOptions:{},render:null,showOnCreate:!1,touch:!0,trigger:"mouseenter focus",triggerTarget:null},{animateFill:!1,followCursor:!1,inlinePositioning:!1,sticky:!1},{allowHTML:!1,animation:"fade",arrow:!0,content:"",inertia:!1,maxWidth:350,role:"tooltip",theme:"",zIndex:9999}),Zt=Object.keys(Jt);function Kt(e){var t=(e.plugins||[]).reduce((function(t,i){var n,r=i.name,s=i.defaultValue;r&&(t[r]=void 0!==e[r]?e[r]:null!=(n=Jt[r])?n:s);return t}),{});return Object.assign({},e,t)}function Qt(e,t){var i=Object.assign({},t,{content:Et(t.content,[e])},t.ignoreAttributes?{}:function(e,t){return(t?Object.keys(Kt(Object.assign({},Jt,{plugins:t}))):Zt).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}),{})}(e,t.plugins));return i.aria=Object.assign({},Jt.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}function ei(e,t){e.innerHTML=t}function ti(e){var t=Mt();return!0===e?t.className="tippy-arrow":(t.className="tippy-svg-arrow",Vt(e)?t.appendChild(e):ei(t,e)),t}function ii(e,t){Vt(t.content)?(ei(e,""),e.appendChild(t.content)):"function"!=typeof t.content&&(t.allowHTML?ei(e,t.content):e.textContent=t.content)}function ni(e){var t=e.firstElementChild,i=Dt(t.children);return{box:t,content:i.find((function(e){return e.classList.contains("tippy-content")})),arrow:i.find((function(e){return e.classList.contains("tippy-arrow")||e.classList.contains("tippy-svg-arrow")})),backdrop:i.find((function(e){return e.classList.contains("tippy-backdrop")}))}}function ri(e){var t=Mt(),i=Mt();i.className="tippy-box",i.setAttribute("data-state","hidden"),i.setAttribute("tabindex","-1");var n=Mt();function r(i,n){var r=ni(t),s=r.box,o=r.content,a=r.arrow;n.theme?s.setAttribute("data-theme",n.theme):s.removeAttribute("data-theme"),"string"==typeof n.animation?s.setAttribute("data-animation",n.animation):s.removeAttribute("data-animation"),n.inertia?s.setAttribute("data-inertia",""):s.removeAttribute("data-inertia"),s.style.maxWidth="number"==typeof n.maxWidth?n.maxWidth+"px":n.maxWidth,n.role?s.setAttribute("role",n.role):s.removeAttribute("role"),i.content===n.content&&i.allowHTML===n.allowHTML||ii(o,e.props),n.arrow?a?i.arrow!==n.arrow&&(s.removeChild(a),s.appendChild(ti(n.arrow))):s.appendChild(ti(n.arrow)):a&&s.removeChild(a)}return n.className="tippy-content",n.setAttribute("data-state","hidden"),ii(n,e.props),t.appendChild(i),i.appendChild(n),r(e.props,e.props),{popper:t,onUpdate:r}}ri.$$tippy=!0;var si=1,oi=[],ai=[];function di(e,t){var i,n,r,s,o,a,d,l,c=Qt(e,Object.assign({},Jt,Kt(jt(t)))),u=!1,p=!1,h=!1,f=!1,b=[],m=Rt(G,c.interactiveDebounce),g=si++,v=(l=c.plugins).filter((function(e,t){return l.indexOf(e)===t})),y={id:g,reference:e,popper:Mt(),popperInstance:null,props:c,state:{isEnabled:!0,isVisible:!1,isDestroyed:!1,isMounted:!1,isShown:!1},plugins:v,clearDelayTimeouts:function(){clearTimeout(i),clearTimeout(n),cancelAnimationFrame(r)},setProps:function(t){if(y.state.isDestroyed)return;C("onBeforeUpdate",[y,t]),B();var i=y.props,n=Qt(e,Object.assign({},i,jt(t),{ignoreAttributes:!0}));y.props=n,F(),i.interactiveDebounce!==n.interactiveDebounce&&(j(),m=Rt(G,n.interactiveDebounce));i.triggerTarget&&!n.triggerTarget?Ct(i.triggerTarget).forEach((function(e){e.removeAttribute("aria-expanded")})):n.triggerTarget&&e.removeAttribute("aria-expanded");D(),R(),$&&$(i,n);y.popperInstance&&(Z(),Q().forEach((function(e){requestAnimationFrame(e._tippy.popperInstance.forceUpdate)})));C("onAfterUpdate",[y,t])},setContent:function(e){y.setProps({content:e})},show:function(){var e=y.state.isVisible,t=y.state.isDestroyed,i=!y.state.isEnabled,n=Ft.isTouch&&!y.props.touch,r=It(y.props.duration,0,Jt.duration);if(e||t||i||n)return;if(T().hasAttribute("disabled"))return;if(C("onShow",[y],!1),!1===y.props.onShow(y))return;y.state.isVisible=!0,L()&&(x.style.visibility="visible");R(),N(),y.state.isMounted||(x.style.transition="none");if(L()){var s=A(),o=s.box,d=s.content;Nt([o,d],0)}a=function(){var e;if(y.state.isVisible&&!f){if(f=!0,x.offsetHeight,x.style.transition=y.props.moveTransition,L()&&y.props.animation){var t=A(),i=t.box,n=t.content;Nt([i,n],r),Wt([i,n],"visible")}_(),D(),_t(ai,y),null==(e=y.popperInstance)||e.forceUpdate(),C("onMount",[y]),y.props.animation&&L()&&function(e,t){P(e,t)}(r,(function(){y.state.isShown=!0,C("onShown",[y])}))}},function(){var e,t=y.props.appendTo,i=T();e=y.props.interactive&&t===Tt||"parent"===t?i.parentNode:Et(t,[i]);e.contains(x)||e.appendChild(x);y.state.isMounted=!0,Z()}()},hide:function(){var e=!y.state.isVisible,t=y.state.isDestroyed,i=!y.state.isEnabled,n=It(y.props.duration,1,Jt.duration);if(e||t||i)return;if(C("onHide",[y],!1),!1===y.props.onHide(y))return;y.state.isVisible=!1,y.state.isShown=!1,f=!1,u=!1,L()&&(x.style.visibility="hidden");if(j(),W(),R(!0),L()){var r=A(),s=r.box,o=r.content;y.props.animation&&(Nt([s,o],n),Wt([s,o],"hidden"))}_(),D(),y.props.animation?L()&&function(e,t){P(e,(function(){!y.state.isVisible&&x.parentNode&&x.parentNode.contains(x)&&t()}))}(n,y.unmount):y.unmount()},hideWithInteractivity:function(e){I().addEventListener("mousemove",m),_t(oi,m),m(e)},enable:function(){y.state.isEnabled=!0},disable:function(){y.hide(),y.state.isEnabled=!1},unmount:function(){y.state.isVisible&&y.hide();if(!y.state.isMounted)return;K(),Q().forEach((function(e){e._tippy.unmount()})),x.parentNode&&x.parentNode.removeChild(x);ai=ai.filter((function(e){return e!==y})),y.state.isMounted=!1,C("onHidden",[y])},destroy:function(){if(y.state.isDestroyed)return;y.clearDelayTimeouts(),y.unmount(),B(),delete e._tippy,y.state.isDestroyed=!0,C("onDestroy",[y])}};if(!c.render)return y;var w=c.render(y),x=w.popper,$=w.onUpdate;x.setAttribute("data-tippy-root",""),x.id="tippy-"+y.id,y.popper=x,e._tippy=y,x._tippy=y;var S=v.map((function(e){return e.fn(y)})),q=e.hasAttribute("aria-expanded");return F(),D(),R(),C("onCreate",[y]),c.showOnCreate&&ee(),x.addEventListener("mouseenter",(function(){y.props.interactive&&y.state.isVisible&&y.clearDelayTimeouts()})),x.addEventListener("mouseleave",(function(){y.props.interactive&&y.props.trigger.indexOf("mouseenter")>=0&&I().addEventListener("mousemove",m)})),y;function O(){var e=y.props.touch;return Array.isArray(e)?e:[e,0]}function k(){return"hold"===O()[0]}function L(){var e;return!(null==(e=y.props.render)||!e.$$tippy)}function T(){return d||e}function I(){var e=T().parentNode;return e?function(e){var t,i=Ct(e)[0];return null!=i&&null!=(t=i.ownerDocument)&&t.body?i.ownerDocument:document}(e):document}function A(){return ni(x)}function E(e){return y.state.isMounted&&!y.state.isVisible||Ft.isTouch||s&&"focus"===s.type?0:It(y.props.delay,e?0:1,Jt.delay)}function R(e){void 0===e&&(e=!1),x.style.pointerEvents=y.props.interactive&&!e?"":"none",x.style.zIndex=""+y.props.zIndex}function C(e,t,i){var n;(void 0===i&&(i=!0),S.forEach((function(i){i[e]&&i[e].apply(i,t)})),i)&&(n=y.props)[e].apply(n,t)}function _(){var t=y.props.aria;if(t.content){var i="aria-"+t.content,n=x.id;Ct(y.props.triggerTarget||e).forEach((function(e){var t=e.getAttribute(i);if(y.state.isVisible)e.setAttribute(i,t?t+" "+n:n);else{var r=t&&t.replace(n,"").trim();r?e.setAttribute(i,r):e.removeAttribute(i)}}))}}function D(){!q&&y.props.aria.expanded&&Ct(y.props.triggerTarget||e).forEach((function(e){y.props.interactive?e.setAttribute("aria-expanded",y.state.isVisible&&e===T()?"true":"false"):e.removeAttribute("aria-expanded")}))}function j(){I().removeEventListener("mousemove",m),oi=oi.filter((function(e){return e!==m}))}function M(t){if(!Ft.isTouch||!h&&"mousedown"!==t.type){var i=t.composedPath&&t.composedPath()[0]||t.target;if(!y.props.interactive||!Ht(x,i)){if(Ct(y.props.triggerTarget||e).some((function(e){return Ht(e,i)}))){if(Ft.isTouch)return;if(y.state.isVisible&&y.props.trigger.indexOf("click")>=0)return}else C("onClickOutside",[y,t]);!0===y.props.hideOnClick&&(y.clearDelayTimeouts(),y.hide(),p=!0,setTimeout((function(){p=!1})),y.state.isMounted||W())}}}function V(){h=!0}function z(){h=!1}function N(){var e=I();e.addEventListener("mousedown",M,!0),e.addEventListener("touchend",M,Lt),e.addEventListener("touchstart",z,Lt),e.addEventListener("touchmove",V,Lt)}function W(){var e=I();e.removeEventListener("mousedown",M,!0),e.removeEventListener("touchend",M,Lt),e.removeEventListener("touchstart",z,Lt),e.removeEventListener("touchmove",V,Lt)}function P(e,t){var i=A().box;function n(e){e.target===i&&(Pt(i,"remove",n),t())}if(0===e)return t();Pt(i,"remove",o),Pt(i,"add",n),o=n}function H(t,i,n){void 0===n&&(n=!1),Ct(y.props.triggerTarget||e).forEach((function(e){e.addEventListener(t,i,n),b.push({node:e,eventType:t,handler:i,options:n})}))}function F(){var e;k()&&(H("touchstart",U,{passive:!0}),H("touchend",Y,{passive:!0})),(e=y.props.trigger,e.split(/\s+/).filter(Boolean)).forEach((function(e){if("manual"!==e)switch(H(e,U),e){case"mouseenter":H("mouseleave",Y);break;case"focus":H(Xt?"focusout":"blur",X);break;case"focusin":H("focusout",X)}}))}function B(){b.forEach((function(e){var t=e.node,i=e.eventType,n=e.handler,r=e.options;t.removeEventListener(i,n,r)})),b=[]}function U(e){var t,i=!1;if(y.state.isEnabled&&!J(e)&&!p){var n="focus"===(null==(t=s)?void 0:t.type);s=e,d=e.currentTarget,D(),!y.state.isVisible&&At(e,"MouseEvent")&&oi.forEach((function(t){return t(e)})),"click"===e.type&&(y.props.trigger.indexOf("mouseenter")<0||u)&&!1!==y.props.hideOnClick&&y.state.isVisible?i=!0:ee(e),"click"===e.type&&(u=!i),i&&!n&&te(e)}}function G(e){var t=e.target,i=T().contains(t)||x.contains(t);if("mousemove"!==e.type||!i){var n=Q().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);(function(e,t){var i=t.clientX,n=t.clientY;return e.every((function(e){var t=e.popperRect,r=e.popperState,s=e.props.interactiveBorder,o=r.placement.split("-")[0],a=r.modifiersData.offset;if(!a)return!0;var d="bottom"===o?a.top.y:0,l="top"===o?a.bottom.y:0,c="right"===o?a.left.x:0,u="left"===o?a.right.x:0,p=t.top-n+d>s,h=n-t.bottom-l>s,f=t.left-i+c>s,b=i-t.right-u>s;return p||h||f||b}))})(n,e)&&(j(),te(e))}}function Y(e){J(e)||y.props.trigger.indexOf("click")>=0&&u||(y.props.interactive?y.hideWithInteractivity(e):te(e))}function X(e){y.props.trigger.indexOf("focusin")<0&&e.target!==T()||y.props.interactive&&e.relatedTarget&&x.contains(e.relatedTarget)||te(e)}function J(e){return!!Ft.isTouch&&k()!==e.type.indexOf("touch")>=0}function Z(){K();var t=y.props,i=t.popperOptions,n=t.placement,r=t.offset,s=t.getReferenceClientRect,o=t.moveTransition,d=L()?ni(x).arrow:null,l=s?{getBoundingClientRect:s,contextElement:s.contextElement||T()}:e,c={name:"$$tippy",enabled:!0,phase:"beforeWrite",requires:["computeStyles"],fn:function(e){var t=e.state;if(L()){var i=A().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={}}}},u=[{name:"offset",options:{offset:r}},{name:"preventOverflow",options:{padding:{top:2,bottom:2,left:5,right:5}}},{name:"flip",options:{padding:5}},{name:"computeStyles",options:{adaptive:!o}},c];L()&&d&&u.push({name:"arrow",options:{element:d,padding:3}}),u.push.apply(u,(null==i?void 0:i.modifiers)||[]),y.popperInstance=kt(l,x,Object.assign({},i,{placement:n,onFirstUpdate:a,modifiers:u}))}function K(){y.popperInstance&&(y.popperInstance.destroy(),y.popperInstance=null)}function Q(){return Dt(x.querySelectorAll("[data-tippy-root]"))}function ee(e){y.clearDelayTimeouts(),e&&C("onTrigger",[y,e]),N();var t=E(!0),n=O(),r=n[0],s=n[1];Ft.isTouch&&"hold"===r&&s&&(t=s),t?i=setTimeout((function(){y.show()}),t):y.show()}function te(e){if(y.clearDelayTimeouts(),C("onUntrigger",[y,e]),y.state.isVisible){if(!(y.props.trigger.indexOf("mouseenter")>=0&&y.props.trigger.indexOf("click")>=0&&["mouseleave","mousemove"].indexOf(e.type)>=0&&u)){var t=E(!1);t?n=setTimeout((function(){y.state.isVisible&&y.hide()}),t):r=requestAnimationFrame((function(){y.hide()}))}}else W()}}function li(e,t){void 0===t&&(t={});var i=Jt.plugins.concat(t.plugins||[]);document.addEventListener("touchstart",Ut,Lt),window.addEventListener("blur",Yt);var n=Object.assign({},t,{plugins:i}),r=zt(e).reduce((function(e,t){var i=t&&di(t,n);return i&&e.push(i),e}),[]);return Vt(e)?r[0]:r}li.defaultProps=Jt,li.setDefaultProps=function(e){Object.keys(e).forEach((function(t){Jt[t]=e[t]}))},li.currentInput=Ft,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)}}),li.setDefaultProps({render:ri});class ci extends(P(H)){constructor(){super(),this.textContent="missing text.",this.interactive=!1}static get scopedElements(){return{"dbp-icon":F}}static get properties(){return R({},super.properties,{textContent:{type:String,attribute:"text-content"},interactive:{type:Boolean,attribute:!0}})}firstUpdated(){this.setOrUpdateTippy()}setOrUpdateTippy(){this._("#info-tooltip-icon")&&(this._("#info-tooltip-icon")._tippy?this._("#info-tooltip-icon")._tippy.setProps({content:this.textContent,appendTo:this.shadowRoot,interactive:this.interactive,allowHTML:!!this.interactive,hideOnClick:!this.interactive}):li(this._("#info-tooltip-icon"),{content:this.textContent,appendTo:this.shadowRoot,interactive:this.interactive,allowHTML:!!this.interactive,hideOnClick:!this.interactive}))}static get styles(){return B(e||(e=E`
${0}
${0}
${0}
.info-icon {
display: inline;
opacity: 0.7;
font-size: 18px;
padding: 4.5px 7px;
}
a {
text-decoration-line: underline;
text-decoration-style: dotted;
}
.tippy-box {
background-color: var(--dbp-content-surface);
color: var(--dbp-on-content-surface);
}
.tippy-arrow {
color: var(--dbp-content);
}
`),U(),G(!1),Y())}render(){const e=X("shared/tippy.e012f5144451ed83.css");return this.setOrUpdateTippy(),J(t||(t=E`
<link rel="stylesheet" href="${0}" />
<div class="info-icon" id="info-tooltip-icon">
<dbp-icon name="information-circle"></dbp-icon>
</div>
`),e)}}class ui extends(P(H)){constructor(){super(),this.textContent="missing text.",this.iconName=""}static get scopedElements(){return{"dbp-icon":F}}static get properties(){return R({},super.properties,{textContent:{type:String,attribute:"text-content"},iconName:{type:String,attribute:"icon-name"}})}firstUpdated(){this.setOrUpdateTippy()}setOrUpdateTippy(){this._("#tooltip-icon")&&(this._("#tooltip-icon")._tippy?this._("#tooltip-icon")._tippy.setProps({content:this.textContent,appendTo:this.shadowRoot}):li(this._("#tooltip-icon"),{content:this.textContent,appendTo:this.shadowRoot}))}static get styles(){return B(_t3||E`
${0}
${0}
${0}
.tooltip-icon {
display: inline;
color: var(--dbp-content);
}
`,U(),G(!1),Y())}render(){const e=X("shared/tippy.e012f5144451ed83.css");return this.setOrUpdateTippy(),J(_t4||E`
<link rel="stylesheet" href="${0}" />
<div class="tooltip-icon">
${0}
</div>
`,e,this.iconName?J(_t5||E`
<dbp-icon name="${0}" id="tooltip-icon"></dbp-icon>
`,this.iconName):J(_t6||E`
<!-- https://www.svgrepo.com/svg/89416/skull -->
<svg
xmlns="http://www.w3.org/2000/svg"
width="16"
height="16"
fill="currentColor"
id="tooltip-icon"
x="0"
y="0"
viewBox="0 0 360 360"
xml:space="preserve">
<g>
<path
d="M180,0C97.157,0,30,67.157,30,150v109.667h0.016c0.337,13.559,7.045,22.475,19.879,26.753L105,305v30
c0,13.75,11.25,25,25,25h100c13.75,0,25-11.25,25-25v-30l55.051-18.668c12.834-4.278,19.597-13.106,19.934-26.665H330V150
C330,67.157,262.843,0,180,0z M300,258.063l-54.635,18.526L225,283.495V305v25h-90v-25v-21.544l-20.415-6.884L60,258.168V150
c0-32.053,12.482-62.188,35.147-84.853C117.813,42.482,147.947,30,180,30s62.188,12.482,84.853,35.147
C287.518,87.813,300,117.947,300,150V258.063z" />
<path
d="M160,281c0,11.046,8.954,20,20,20s20-8.954,20-20s-20-40-20-40S160,269.954,160,281z" />
<path
d="M125,161c-24.854,0-45,20.146-45,45s20.146,45,45,45s45-20.146,45-45S149.854,161,125,161z M125,221c-8.271,0-15-6.729-15-15s6.729-15,15-15s15,6.729,15,15S133.271,221,125,221z" />
<path
d="M190,206c0,24.854,20.146,45,45,45s45-20.146,45-45s-20.147-45-45-45S190,181.146,190,206z M250,206c0,8.271-6.729,15-15,15s-15-6.729-15-15s6.729-15,15-15S250,197.729,250,206z" />
</g>
</svg>
`))}}class pi extends(P(C)){constructor(){super(),this._i18n=_(),this.lang=this._i18n.language,this.activity=new D(fe),this.entryPointUrl="",this.loading=!1,this._initialFetchDone=!1,this.requestList=[],this.showListView=!0,this.showDetailsView=!1,this.currentItem={},this.currentItem.files=[],this.currentItem.recipients=[],this.currentRecipient={},this.subject="",this.mayWrite=!1,this.mayRead=!1,this.organizationSet=!1,this.currentItem.senderGivenName="",this.currentItem.senderFamilyName="",this.currentItem.senderAddressCountry="",this.currentItem.senderPostalCode="",this.currentItem.senderAddressLocality="",this.currentItem.senderStreetAddress="",this.currentItem.senderBuildingNumber="",this.fileHandlingEnabledTargets="local",this.nextcloudWebAppPasswordURL="",this.nextcloudWebDavURL="",this.nextcloudName="",this.nextcloudFileURL="",this.nextcloudAuthInfo="",this.dispatchRequestsTable=null,this.totalNumberOfItems=0,this.rowsSelected=!1,this.boundSelectHandler=this.selectAllFiles.bind(this),this.initateOpenAdditionalMenu=!1,this.initateOpenAdditionalSearchMenu=!1,this.boundCloseAdditionalSearchMenuHandler=this.hideAdditionalSearchMenu.bind(this),this.boundPressEnterAndSubmitSearchHandler=this.pressEnterAndSubmitSearch.bind(this)}static get scopedElements(){return{"dbp-icon":F,"dbp-mini-spinner":Z,"dbp-loading-button":K,"dbp-icon-button":Q,"dbp-inline-notification":j,"dbp-file-source":ue,"dbp-person-select":M,"dbp-resource-select":he,"dbp-info-tooltip":ci}}static get properties(){return R({},super.properties,{lang:{type:String},entryPointUrl:{type:String,attribute:"entry-point-url"},loading:{type:Boolean,attribute:!1},initialRequestsLoading:{type:Boolean,attribute:!1},requestList:{type:Array,attribute:!1},showListView:{type:Boolean,attribute:!1},showDetailsView:{type:Boolean,attribute:!1},currentItem:{type:Object,attribute:!1},currentRecipient:{type:Object,attribute:!1},totalNumberOfItems:{type:Number,attribute:!1},subject:{type:String,attribute:!1},organizationSet:{type:Boolean,attribute:!1},mayWrite:{type:Boolean,attribute:!1},mayRead:{type:Boolean,attribute:!1},rowsSelected:{type:Boolean,attribute:!1},fileHandlingEnabledTargets:{type:String,attribute:"file-handling-enabled-targets"},nextcloudWebAppPasswordURL:{type:String,attribute:"nextcloud-web-app-password-url"},nextcloudWebDavURL:{type:String,attribute:"nextcloud-webdav-url"},nextcloudName:{type:String,attribute:"nextcloud-name"},nextcloudFileURL:{type:String,attribute:"nextcloud-file-url"},nextcloudAuthInfo:{type:String,attribute:"nextcloud-auth-info"}})}update(e){e.forEach(((e,t)=>{if("lang"===t)this._i18n.changeLanguage(this.lang),this.dispatchRequestsTable&&this.dispatchRequestsTable.setLocale(this.lang)})),super.update(e)}disconnectedCallback(){this.dispatchRequestsTable.off("rowClick"),this.dispatchRequestsTable.off("dataLoaded"),this.dispatchRequestsTable.off("pageLoaded"),document.removeEventListener("keyup",this.boundPressEnterAndSubmitSearchHandler),super.disconnectedCallback()}connectedCallback(){super.connectedCallback(),this._loginStatus="",this._loginState=[],this._loginCalled=!1,this.updateComplete.then((()=>{let e=this._(".tabulator-paginator");const t=this._i18n,i=this;this.dispatchRequestsTable=new pe(this._("#dispatch-requests-table"),{layout:"fitColumns",placeholder:t.t("show-requests.no-table-data"),selectable:!0,selectablePersistence:!1,responsiveLayout:"collapse",responsiveLayoutCollapseStartOpen:!1,pagination:"local",paginationSize:10,paginationSizeSelector:!0,paginationElement:e,columnHeaderVertAlign:"bottom",columnDefaults:{vertAlign:"middle",hozAlign:"left",resizable:!1},columns:[{title:'<label id="select_all_wrapper" class="button-container select-all-icon"><input type="checkbox" id="select_all" name="select_all" value="select_all"><span class="checkmark" id="select_all_checkmark"></span></label>',field:"type",hozAlign:"center",width:40,headerSort:!1,responsive:0,widthGrow:1,headerClick:e=>{i.checkAllSelected()?(this.dispatchRequestsTable.deselectRow(),this._("#select_all").checked=!1,this.rowsSelected=!1):(i.dispatchRequestsTable.selectRow("visible"),this._("#select_all").checked=!0,this.rowsSelected=!0),e.preventDefault()}},{title:t.t("show-requests.table-header-details"),field:"details",hozAlign:"center",width:60,headerSort:!1,responsive:0,widthGrow:1,formatter:"responsiveCollapse"},{title:t.t("show-requests.table-header-date-created"),field:"dateCreated",responsive:3,widthGrow:1,minWidth:160,sorter:(e,t)=>Date.parse(e)-Date.parse(t),formatter:function(e){const t=Date.parse(e.getValue()),i=new Date(t),n=i.getFullYear(),r=("0"+(i.getMonth()+1)).slice(-2);return("0"+i.getDate()).slice(-2)+"."+r+"."+n+" "+("0"+i.getHours()).slice(-2)+":"+("0"+i.getMinutes()).slice(-2)}},{title:t.t("show-requests.table-header-subject"),field:"subject",responsive:1,widthGrow:3,minWidth:150,formatter:"html"},{title:"Status",field:"status",responsive:2,widthGrow:1,minWidth:120},{title:t.t("show-requests.table-header-files"),field:"files",responsive:8,minWidth:800,formatter:function(e){return e.getValue()}},{title:t.t("show-requests.table-header-recipients"),field:"recipients",responsive:8,minWidth:800,formatter:function(e){return e.getValue()}},{title:t.t("show-requests.date-submitted"),field:"dateSubmitted",responsive:8,minwidth:150,formatter:function(e){return e.getValue()}},{title:t.t("show-requests.table-header-id"),field:"requestId",responsive:8,minWidth:150,formatter:function(e){return e.getValue()}},{title:"",field:"controls",minWidth:140,widthGrow:1,headerSort:!1,responsive:0,formatter:e=>e.getValue()}],langs:{en:{columns:{dateCreated:"Date created",subject:"Subject",files:"Files",recipients:"Recipients",dateSubmitted:"Date submitted",requestId:"Request-ID"},pagination:{page_size:"Page size",page_size_title:"Page size",first:'<span class="mobile-hidden">First</span>',first_title:"First Page",last:'<span class="mobile-hidden">Last</span>',last_title:"Last Page",prev:'<span class="mobile-hidden">Prev</span>',prev_title:"Prev Page",next:'<span class="mobile-hidden">Next</span>',next_title:"Next Page"}},de:{columns:{dateCreated:"Erstelldatum",subject:"Betreff",files:"Angehängte Dateien",recipients:"Empfänger",dateSubmitted:"Freigabedatum",requestId:"Auftrags-ID"},pagination:{page_size:"Einträge pro Seite",page_size_title:"Einträge pro Seite",first:'<span class="mobile-hidden">Erste</span>',first_title:"Erste Seite",last:'<span class="mobile-hidden">Letzte</span>',last_title:"Letzte Seite",prev:'<span class="mobile-hidden">Vorherige</span>',prev_title:"Vorherige Seite",next:'<span class="mobile-hidden">Nächste</span>',next_title:"Nächste Seite"}}},initialSort:[{column:"dateCreated",dir:"desc"}]}),this.dispatchRequestsTable.on("rowClick",this.rowClickFunction.bind(this)),this.dispatchRequestsTable.on("dataLoaded",this.dataLoadedFunction.bind(this)),this.dispatchRequestsTable.on("pageLoaded",this.pageLoadedFunction.bind(this)),document.addEventListener("keyup",this.boundPressEnterAndSubmitSearchHandler)}))}pageLoadedFunction(e){this._("#select_all").checked=!1}dataLoadedFunction(e){if(null!==this.dispatchRequestsTable){const e=this;setTimeout((function(){e._(".tabulator-responsive-collapse-toggle-open")&&e._a(".tabulator-responsive-collapse-toggle-open").forEach((t=>t.addEventListener("click",e.toggleCollapse.bind(e)))),e._(".tabulator-responsive-collapse-toggle-close")&&e._a(".tabulator-responsive-collapse-toggle-close").forEach((t=>t.addEventListener("click",e.toggleCollapse.bind(e))))}),0)}}toggleCollapse(e){const t=this.dispatchRequestsTable;console.log(e),setTimeout((function(){t.redraw()}),0)}rowClickFunction(e,t){null!==this.dispatchRequestsTable&&this.dispatchRequestsTable.getSelectedRows().length===this.dispatchReque