UNPKG

@digital-blueprint/cabinet-app

Version:

[GitHub Repository](https://github.com/digital-blueprint/cabinet-app) | [npmjs package](https://www.npmjs.com/package/@digital-blueprint/cabinet-app) | [Unpkg CDN](https://unpkg.com/browse/@digital-blueprint/cabinet-app/) | [Cabinet Bundle](https://github

106 lines (99 loc) 86.4 kB
let e,t,i,n,r,s,o,a,d,c,l,u,p,h,f,b,m,g,v,y,w,x,$,O,S,q=e=>e;function L(){return L=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},L.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 * @digital-blueprint/esign-app: LGPL-2.1-or-later * @digital-blueprint/annotpdf: MIT * @digital-blueprint/dispatch-app: LGPL-2.1-or-later * @popperjs/core: MIT * tippy.js: MIT * @dbp-toolkit/tooltip: LGPL-2.1-or-later */import{D as T,c as R,A,I as E,C as k,P as I,g as D,a as C,M as _,n as j}from"./shared/package.Cgv0elFC.es.js";import{S as M,D as V,I as z,i as W,g as N,a as P,d as H,r as B,x as F,M as U,L as G,l as Y,s as X,k as J,b as Z,m as K,n as Q,u as ee,p as te,e as ie,j as ne}from"./shared/micromodal.es.D5OmY0js.es.js";import{F as re,R as se,T as oe}from"./shared/resource-select.D6M77q7n.es.js";import"./shared/notification.CFCZBGs5.es.js";import"./shared/i18n.CeL5U4y2.es.js";import"./shared/translated.pH7MBJAU.es.js";import"./shared/__node-resolve_empty.CAW0VbeZ.es.js";var ae={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,lang-dir,entry-point-url,auth,html-overrides,nextcloud-web-app-password-url,nextcloud-webdav-url,nextcloud-name,nextcloud-file-url,file-handling-enabled-targets"},de="top",ce="bottom",le="right",ue="left",pe="auto",he=[de,ce,le,ue],fe="start",be="end",me="clippingParents",ge="viewport",ve="popper",ye="reference",we=he.reduce((function(e,t){return e.concat([t+"-"+fe,t+"-"+be])}),[]),xe=[].concat(he,[pe]).reduce((function(e,t){return e.concat([t,t+"-"+fe,t+"-"+be])}),[]),$e=["beforeRead","read","afterRead","beforeMain","main","afterMain","beforeWrite","write","afterWrite"];function Oe(e){return e?(e.nodeName||"").toLowerCase():null}function Se(e){if(null==e)return window;if("[object Window]"!==e.toString()){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function qe(e){return e instanceof Se(e).Element||e instanceof Element}function Le(e){return e instanceof Se(e).HTMLElement||e instanceof HTMLElement}function Te(e){return"undefined"!=typeof ShadowRoot&&(e instanceof Se(e).ShadowRoot||e instanceof ShadowRoot)}var Re={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];Le(r)&&Oe(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}),{});Le(n)&&Oe(n)&&(Object.assign(n.style,s),Object.keys(r).forEach((function(e){n.removeAttribute(e)})))}))}},requires:["computeStyles"]};function Ae(e){return e.split("-")[0]}var Ee=Math.max,ke=Math.min,Ie=Math.round;function De(){var e=navigator.userAgentData;return null!=e&&e.brands&&Array.isArray(e.brands)?e.brands.map((function(e){return e.brand+"/"+e.version})).join(" "):navigator.userAgent}function Ce(){return!/^((?!chrome|android).)*safari/i.test(De())}function _e(e,t,i){void 0===t&&(t=!1),void 0===i&&(i=!1);var n=e.getBoundingClientRect(),r=1,s=1;t&&Le(e)&&(r=e.offsetWidth>0&&Ie(n.width)/e.offsetWidth||1,s=e.offsetHeight>0&&Ie(n.height)/e.offsetHeight||1);var o=(qe(e)?Se(e):window).visualViewport,a=!Ce()&&i,d=(n.left+(a&&o?o.offsetLeft:0))/r,c=(n.top+(a&&o?o.offsetTop:0))/s,l=n.width/r,u=n.height/s;return{width:l,height:u,top:c,right:d+l,bottom:c+u,left:d,x:d,y:c}}function je(e){var t=_e(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&&Te(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 Se(e).getComputedStyle(e)}function ze(e){return["table","td","th"].indexOf(Oe(e))>=0}function We(e){return((qe(e)?e.ownerDocument:e.document)||window.document).documentElement}function Ne(e){return"html"===Oe(e)?e:e.assignedSlot||e.parentNode||(Te(e)?e.host:null)||We(e)}function Pe(e){return Le(e)&&"fixed"!==Ve(e).position?e.offsetParent:null}function He(e){for(var t=Se(e),i=Pe(e);i&&ze(i)&&"static"===Ve(i).position;)i=Pe(i);return i&&("html"===Oe(i)||"body"===Oe(i)&&"static"===Ve(i).position)?t:i||function(e){var t=/firefox/i.test(De());if(/Trident/i.test(De())&&Le(e)&&"fixed"===Ve(e).position)return null;var i=Ne(e);for(Te(i)&&(i=i.host);Le(i)&&["html","body"].indexOf(Oe(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 Be(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function Fe(e,t,i){return Ee(e,ke(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=Ae(i.placement),d=Be(a),c=[ue,le].indexOf(a)>=0?"height":"width";if(s&&o){var l=function(e,t){return Ue("number"!=typeof(e="function"==typeof e?e(Object.assign({},t.rects,{placement:t.placement})):e)?e:Ge(e,he))}(r.padding,i),u=je(s),p="y"===d?de:ue,h="y"===d?ce:le,f=i.rects.reference[c]+i.rects.reference[d]-o[d]-i.rects.popper[c],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=l[p],w=g-u[c]-l[h],x=g/2-u[c]/2+v,$=Fe(y,x,w),O=d;i.modifiersData[n]=((t={})[O]=$,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,c=e.adaptive,l=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 l?l({x:h,y:b}):{x:h,y:b};h=m.x,b=m.y;var g=o.hasOwnProperty("x"),v=o.hasOwnProperty("y"),y=ue,w=de,x=window;if(c){var $=He(i),O="clientHeight",S="clientWidth";if($===Se(i)&&"static"!==Ve($=We(i)).position&&"absolute"===a&&(O="scrollHeight",S="scrollWidth"),r===de||(r===ue||r===le)&&s===be)w=ce,b-=(u&&$===x&&x.visualViewport?x.visualViewport.height:$[O])-n.height,b*=d?1:-1;if(r===ue||(r===de||r===ce)&&s===be)y=le,h-=(u&&$===x&&x.visualViewport?x.visualViewport.width:$[S])-n.width,h*=d?1:-1}var q,L=Object.assign({position:a},c&&Je),T=!0===l?function(e,t){var i=e.x,n=e.y,r=t.devicePixelRatio||1;return{x:Ie(i*r)/r||0,y:Ie(n*r)/r||0}}({x:h,y:b},Se(i)):{x:h,y:b};return h=T.x,b=T.y,d?Object.assign({},L,((q={})[w]=v?"0":"",q[y]=g?"0":"",q.transform=(x.devicePixelRatio||1)<=1?"translate("+h+"px, "+b+"px)":"translate3d("+h+"px, "+b+"px, 0)",q)):Object.assign({},L,((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=Se(e);return{scrollLeft:t.pageXOffset,scrollTop:t.pageYOffset}}function rt(e){return _e(We(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(Oe(e))>=0?e.ownerDocument.body:Le(e)&&st(e)?e:ot(Ne(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=Se(n),o=r?[s].concat(s.visualViewport||[],st(n)?n:[]):n,a=t.concat(o);return r?a:a.concat(at(Ne(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 ct(e,t,i){return t===ge?dt(function(e,t){var i=Se(e),n=We(e),r=i.visualViewport,s=n.clientWidth,o=n.clientHeight,a=0,d=0;if(r){s=r.width,o=r.height;var c=Ce();(c||!c&&"fixed"===t)&&(a=r.offsetLeft,d=r.offsetTop)}return{width:s,height:o,x:a+rt(e),y:d}}(e,i)):qe(t)?function(e,t){var i=_e(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=We(e),n=nt(e),r=null==(t=e.ownerDocument)?void 0:t.body,s=Ee(i.scrollWidth,i.clientWidth,r?r.scrollWidth:0,r?r.clientWidth:0),o=Ee(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+=Ee(i.clientWidth,r?r.clientWidth:0)-s),{width:s,height:o,x:a,y:d}}(We(e)))}function lt(e,t,i,n){var r="clippingParents"===t?function(e){var t=at(Ne(e)),i=["absolute","fixed"].indexOf(Ve(e).position)>=0&&Le(e)?He(e):e;return qe(i)?t.filter((function(e){return qe(e)&&Me(e,i)&&"body"!==Oe(e)})):[]}(e):[].concat(t),s=[].concat(r,[i]),o=s[0],a=s.reduce((function(t,i){var r=ct(e,i,n);return t.top=Ee(r.top,t.top),t.right=ke(r.right,t.right),t.bottom=ke(r.bottom,t.bottom),t.left=Ee(r.left,t.left),t}),ct(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?Ae(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 de:t={x:a,y:i.y-n.height};break;case ce:t={x:a,y:i.y+i.height};break;case le:t={x:i.x+i.width,y:d};break;case ue:t={x:i.x-n.width,y:d};break;default:t={x:i.x,y:i.y}}var c=s?Be(s):null;if(null!=c){var l="y"===c?"height":"width";switch(o){case fe:t[c]=t[c]-(i[l]/2-n[l]/2);break;case be:t[c]=t[c]+(i[l]/2-n[l]/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?me:a,c=i.rootBoundary,l=void 0===c?ge:c,u=i.elementContext,p=void 0===u?ve: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,he)),v=p===ve?ye:ve,y=e.rects.popper,w=e.elements[f?v:p],x=lt(qe(w)?w:w.contextElement||We(e.elements.popper),d,l,o),$=_e(e.elements.reference),O=ut({reference:$,element:y,strategy:"absolute",placement:r}),S=dt(Object.assign({},y,O)),q=p===ve?S:$,L={top:x.top-q.top+g.top,bottom:q.bottom-x.bottom+g.bottom,left:x.left-q.left+g.left,right:q.right-x.right+g.right},T=e.modifiersData.offset;if(p===ve&&T){var R=T[r];Object.keys(L).forEach((function(e){var t=[le,ce].indexOf(e)>=0?1:-1,i=[de,ce].indexOf(e)>=0?"y":"x";L[e]+=R[i]*t}))}return L}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,c=void 0===d?xe:d,l=Xe(n),u=l?a?we:we.filter((function(e){return Xe(e)===l})):he,p=u.filter((function(e){return c.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})[Ae(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,c=i.padding,l=i.boundary,u=i.rootBoundary,p=i.altBoundary,h=i.flipVariations,f=void 0===h||h,b=i.allowedAutoPlacements,m=t.options.placement,g=Ae(m),v=d||(g===m||!f?[et(m)]:function(e){if(Ae(e)===pe)return[];var t=et(e);return[it(e),t,it(t)]}(m)),y=[m].concat(v).reduce((function(e,i){return e.concat(Ae(i)===pe?ht(t,{placement:i,boundary:l,rootBoundary:u,padding:c,flipVariations:f,allowedAutoPlacements:b}):i)}),[]),w=t.rects.reference,x=t.rects.popper,$=new Map,O=!0,S=y[0],q=0;q<y.length;q++){var L=y[q],T=Ae(L),R=Xe(L)===fe,A=[de,ce].indexOf(T)>=0,E=A?"width":"height",k=pt(t,{placement:L,boundary:l,rootBoundary:u,altBoundary:p,padding:c}),I=A?R?le:ue:R?ce:de;w[E]>x[E]&&(I=et(I));var D=et(I),C=[];if(s&&C.push(k[T]<=0),a&&C.push(k[I]<=0,k[D]<=0),C.every((function(e){return e}))){S=L,O=!1;break}$.set(L,C)}if(O)for(var _=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 S=t,"break"},j=f?3:1;j>0;j--){if("break"===_(j))break}t.placement!==S&&(t.modifiersData[n]._skip=!0,t.placement=S,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[de,le,ce,ue].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),c=bt(a,r,s),l=mt(d),u=mt(c);t.modifiersData[i]={referenceClippingOffsets:d,popperEscapeOffsets:c,isReferenceHidden:l,hasPopperEscaped:u},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":l,"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=Ae(e),r=[ue,de].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,[ue,le].indexOf(n)>=0?{x:a,y:o}:{x:o,y:a}}(i,t.rects,s),e}),{}),a=o[t.placement],d=a.x,c=a.y;null!=t.modifiersData.popperOffsets&&(t.modifiersData.popperOffsets.x+=d,t.modifiersData.popperOffsets.y+=c),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,c=i.rootBoundary,l=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:c,padding:u,altBoundary:l}),g=Ae(t.placement),v=Xe(t.placement),y=!v,w=Be(g),x="x"===w?"y":"x",$=t.modifiersData.popperOffsets,O=t.rects.reference,S=t.rects.popper,q="function"==typeof b?b(Object.assign({},t.rects,{placement:t.placement})):b,L="number"==typeof q?{mainAxis:q,altAxis:q}:Object.assign({mainAxis:0,altAxis:0},q),T=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,R={x:0,y:0};if($){if(s){var A,E="y"===w?de:ue,k="y"===w?ce:le,I="y"===w?"height":"width",D=$[w],C=D+m[E],_=D-m[k],j=h?-S[I]/2:0,M=v===fe?O[I]:S[I],V=v===fe?-S[I]:-O[I],z=t.elements.arrow,W=h&&z?je(z):{width:0,height:0},N=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:{top:0,right:0,bottom:0,left:0},P=N[E],H=N[k],B=Fe(0,O[I],W[I]),F=y?O[I]/2-j-B-P-L.mainAxis:M-B-P-L.mainAxis,U=y?-O[I]/2+j+B+H+L.mainAxis:V+B+H+L.mainAxis,G=t.elements.arrow&&He(t.elements.arrow),Y=G?"y"===w?G.clientTop||0:G.clientLeft||0:0,X=null!=(A=null==T?void 0:T[w])?A:0,J=D+U-X,Z=Fe(h?ke(C,D+F-X-Y):C,D,h?Ee(_,J):_);$[w]=Z,R[w]=Z-D}if(a){var K,Q="x"===w?de:ue,ee="x"===w?ce:le,te=$[x],ie="y"===x?"height":"width",ne=te+m[Q],re=te-m[ee],se=-1!==[de,ue].indexOf(g),oe=null!=(K=null==T?void 0:T[x])?K:0,ae=se?ne:te-O[ie]-S[ie]-oe+L.altAxis,pe=se?te+O[ie]+S[ie]-oe-L.altAxis:re,he=h&&se?function(e,t,i){var n=Fe(e,t,i);return n>i?i:n}(ae,te,pe):Fe(h?ae:ne,te,h?pe:re);$[x]=he,R[x]=he-te}t.modifiersData[n]=R}},requiresIfExists:["offset"]};function xt(e,t,i){void 0===i&&(i=!1);var n,r=Le(t),s=Le(t)&&function(e){var t=e.getBoundingClientRect(),i=Ie(t.width)/e.offsetWidth||1,n=Ie(t.height)/e.offsetHeight||1;return 1!==i||1!==n}(t),o=We(t),a=_e(e,s,i),d={scrollLeft:0,scrollTop:0},c={x:0,y:0};return(r||!r&&!i)&&(("body"!==Oe(t)||st(o))&&(d=(n=t)!==Se(n)&&Le(n)?function(e){return{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}}(n):nt(n)),Le(t)?((c=_e(t,!0)).x+=t.clientLeft,c.y+=t.clientTop):o&&(c.x=rt(o))),{x:a.left+d.scrollLeft-c.x,y:a.top+d.scrollTop-c.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 Ot={placement:"bottom",modifiers:[],strategy:"absolute"};function St(){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 qt(e){void 0===e&&(e={});var t=e,i=t.defaultModifiers,n=void 0===i?[]:i,r=t.defaultOptions,s=void 0===r?Ot:r;return function(e,t,i){void 0===i&&(i=s);var r,o,a={placement:"bottom",orderedModifiers:[],options:Object.assign({},Ot,s),modifiersData:{},elements:{reference:e,popper:t},attributes:{},styles:{}},d=[],c=!1,l={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:qe(e)?at(e):e.contextElement?at(e.contextElement):[],popper:at(t)};var o,c,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),c=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(c).map((function(e){return c[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:l,options:n}),o=function(){};d.push(s||o)}})),l.update()},forceUpdate:function(){if(!c){var e=a.elements,t=e.reference,i=e.popper;if(St(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:l})||a)}else a.reset=!1,n=-1}}},update:(r=function(){return new Promise((function(e){l.forceUpdate(),e(a)}))},function(){return o||(o=new Promise((function(e){Promise.resolve().then((function(){o=void 0,e(r())}))}))),o}),destroy:function(){u(),c=!0}};if(!St(e,t))return l;function u(){d.forEach((function(e){return e()})),d=[]}return l.setOptions(i).then((function(e){!c&&i.onFirstUpdate&&i.onFirstUpdate(e)})),l}}var Lt=qt({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=Se(t.elements.popper),c=[].concat(t.scrollParents.reference,t.scrollParents.popper);return s&&c.forEach((function(e){e.addEventListener("scroll",i.update,Ke)})),a&&d.addEventListener("resize",i.update,Ke),function(){s&&c.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,c={placement:Ae(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({},c,{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({},c,{offsets:t.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:d})))),t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-placement":t.placement})},data:{}},Re,vt,ft,wt,Ye,gt]}),Tt="tippy-content",Rt="tippy-backdrop",At="tippy-arrow",Et="tippy-svg-arrow",kt={passive:!0,capture:!0},It=function(){return document.body};function Dt(e,t,i){if(Array.isArray(e)){var n=e[t];return null==n?Array.isArray(i)?i[t]:i:n}return e}function Ct(e,t){var i={}.toString.call(e);return 0===i.indexOf("[object")&&i.indexOf(t+"]")>-1}function _t(e,t){return"function"==typeof e?e.apply(void 0,t):e}function jt(e,t){return 0===t?e:function(n){clearTimeout(i),i=setTimeout((function(){e(n)}),t)};var i}function Mt(e){return[].concat(e)}function Vt(e,t){-1===e.indexOf(t)&&e.push(t)}function zt(e){return[].slice.call(e)}function Wt(e){return Object.keys(e).reduce((function(t,i){return void 0!==e[i]&&(t[i]=e[i]),t}),{})}function Nt(){return document.createElement("div")}function Pt(e){return["Element","Fragment"].some((function(t){return Ct(e,t)}))}function Ht(e){return Pt(e)?[e]:function(e){return Ct(e,"NodeList")}(e)?zt(e):Array.isArray(e)?e:zt(document.querySelectorAll(e))}function Bt(e,t){e.forEach((function(e){e&&(e.style.transitionDuration=t+"ms")}))}function Ft(e,t){e.forEach((function(e){e&&e.setAttribute("data-state",t)}))}function Ut(e,t,i){var n=t+"EventListener";["transitionend","webkitTransitionEnd"].forEach((function(t){e[n](t,i)}))}function Gt(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 Yt={isTouch:!1},Xt=0;function Jt(){Yt.isTouch||(Yt.isTouch=!0,window.performance&&document.addEventListener("mousemove",Zt))}function Zt(){var e=performance.now();e-Xt<20&&(Yt.isTouch=!1,document.removeEventListener("mousemove",Zt)),Xt=e}function Kt(){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 Qt=!!("undefined"!=typeof window&&"undefined"!=typeof document)&&!!window.msCrypto,ei=Object.assign({appendTo:It,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}),ti=Object.keys(ei);function ii(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=ei[r])?n:s);return t}),{});return Object.assign({},e,t)}function ni(e,t){var i=Object.assign({},t,{content:_t(t.content,[e])},t.ignoreAttributes?{}:function(e,t){return(t?Object.keys(ii(Object.assign({},ei,{plugins:t}))):ti).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({},ei.aria,i.aria),i.aria={expanded:"auto"===i.aria.expanded?t.interactive:i.aria.expanded,content:"auto"===i.aria.content?t.interactive?null:"describedby":i.aria.content},i}var ri=function(){return"innerHTML"};function si(e,t){e[ri()]=t}function oi(e){var t=Nt();return!0===e?t.className=At:(t.className=Et,Pt(e)?t.appendChild(e):si(t,e)),t}function ai(e,t){Pt(t.content)?(si(e,""),e.appendChild(t.content)):"function"!=typeof t.content&&(t.allowHTML?si(e,t.content):e.textContent=t.content)}function di(e){var t=e.firstElementChild,i=zt(t.children);return{box:t,content:i.find((function(e){return e.classList.contains(Tt)})),arrow:i.find((function(e){return e.classList.contains(At)||e.classList.contains(Et)})),backdrop:i.find((function(e){return e.classList.contains(Rt)}))}}function ci(e){var t=Nt(),i=Nt();i.className="tippy-box",i.setAttribute("data-state","hidden"),i.setAttribute("tabindex","-1");var n=Nt();function r(i,n){var r=di(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||ai(o,e.props),n.arrow?a?i.arrow!==n.arrow&&(s.removeChild(a),s.appendChild(oi(n.arrow))):s.appendChild(oi(n.arrow)):a&&s.removeChild(a)}return n.className=Tt,n.setAttribute("data-state","hidden"),ai(n,e.props),t.appendChild(i),i.appendChild(n),r(e.props,e.props),{popper:t,onUpdate:r}}ci.$$tippy=!0;var li=1,ui=[],pi=[];function hi(e,t){var i,n,r,s,o,a,d,c,l=ni(e,Object.assign({},ei,ii(Wt(t)))),u=!1,p=!1,h=!1,f=!1,b=[],m=jt(G,l.interactiveDebounce),g=li++,v=(c=l.plugins).filter((function(e,t){return c.indexOf(e)===t})),y={id:g,reference:e,popper:Nt(),popperInstance:null,props:l,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;D("onBeforeUpdate",[y,t]),F();var i=y.props,n=ni(e,Object.assign({},i,Wt(t),{ignoreAttributes:!0}));y.props=n,B(),i.interactiveDebounce!==n.interactiveDebounce&&(j(),m=jt(G,n.interactiveDebounce));i.triggerTarget&&!n.triggerTarget?Mt(i.triggerTarget).forEach((function(e){e.removeAttribute("aria-expanded")})):n.triggerTarget&&e.removeAttribute("aria-expanded");_(),I(),$&&$(i,n);y.popperInstance&&(Z(),Q().forEach((function(e){requestAnimationFrame(e._tippy.popperInstance.forceUpdate)})));D("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=Yt.isTouch&&!y.props.touch,r=Dt(y.props.duration,0,ei.duration);if(e||t||i||n)return;if(R().hasAttribute("disabled"))return;if(D("onShow",[y],!1),!1===y.props.onShow(y))return;y.state.isVisible=!0,T()&&(x.style.visibility="visible");I(),W(),y.state.isMounted||(x.style.transition="none");if(T()){var s=E();Bt([s.box,s.content],0)}a=function(){var e;if(y.state.isVisible&&!f){if(f=!0,x.offsetHeight,x.style.transition=y.props.moveTransition,T()&&y.props.animation){var t=E(),i=t.box,n=t.content;Bt([i,n],r),Ft([i,n],"visible")}C(),_(),Vt(pi,y),null==(e=y.popperInstance)||e.forceUpdate(),D("onMount",[y]),y.props.animation&&T()&&function(e,t){P(e,t)}(r,(function(){y.state.isShown=!0,D("onShown",[y])}))}},function(){var e,t=y.props.appendTo,i=R();e=y.props.interactive&&t===It||"parent"===t?i.parentNode:_t(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=Dt(y.props.duration,1,ei.duration);if(e||t||i)return;if(D("onHide",[y],!1),!1===y.props.onHide(y))return;y.state.isVisible=!1,y.state.isShown=!1,f=!1,u=!1,T()&&(x.style.visibility="hidden");if(j(),N(),I(!0),T()){var r=E(),s=r.box,o=r.content;y.props.animation&&(Bt([s,o],n),Ft([s,o],"hidden"))}C(),_(),y.props.animation?T()&&function(e,t){P(e,(function(){!y.state.isVisible&&x.parentNode&&x.parentNode.contains(x)&&t()}))}(n,y.unmount):y.unmount()},hideWithInteractivity:function(e){A().addEventListener("mousemove",m),Vt(ui,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);pi=pi.filter((function(e){return e!==y})),y.state.isMounted=!1,D("onHidden",[y])},destroy:function(){if(y.state.isDestroyed)return;y.clearDelayTimeouts(),y.unmount(),F(),delete e._tippy,y.state.isDestroyed=!0,D("onDestroy",[y])}};if(!l.render)return y;var w=l.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 O=v.map((function(e){return e.fn(y)})),S=e.hasAttribute("aria-expanded");return B(),_(),I(),D("onCreate",[y]),l.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&&A().addEventListener("mousemove",m)})),y;function q(){var e=y.props.touch;return Array.isArray(e)?e:[e,0]}function L(){return"hold"===q()[0]}function T(){var e;return!(null==(e=y.props.render)||!e.$$tippy)}function R(){return d||e}function A(){var e=R().parentNode;return e?function(e){var t,i=Mt(e)[0];return null!=i&&null!=(t=i.ownerDocument)&&t.body?i.ownerDocument:document}(e):document}function E(){return di(x)}function k(e){return y.state.isMounted&&!y.state.isVisible||Yt.isTouch||s&&"focus"===s.type?0:Dt(y.props.delay,e?0:1,ei.delay)}function I(e){void 0===e&&(e=!1),x.style.pointerEvents=y.props.interactive&&!e?"":"none",x.style.zIndex=""+y.props.zIndex}function D(e,t,i){var n;(void 0===i&&(i=!0),O.forEach((function(i){i[e]&&i[e].apply(i,t)})),i)&&(n=y.props)[e].apply(n,t)}function C(){var t=y.props.aria;if(t.content){var i="aria-"+t.content,n=x.id;Mt(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 _(){!S&&y.props.aria.expanded&&Mt(y.props.triggerTarget||e).forEach((function(e){y.props.interactive?e.setAttribute("aria-expanded",y.state.isVisible&&e===R()?"true":"false"):e.removeAttribute("aria-expanded")}))}function j(){A().removeEventListener("mousemove",m),ui=ui.filter((function(e){return e!==m}))}function M(t){if(!Yt.isTouch||!h&&"mousedown"!==t.type){var i=t.composedPath&&t.composedPath()[0]||t.target;if(!y.props.interactive||!Gt(x,i)){if(Mt(y.props.triggerTarget||e).some((function(e){return Gt(e,i)}))){if(Yt.isTouch)return;if(y.state.isVisible&&y.props.trigger.indexOf("click")>=0)return}else D("onClickOutside",[y,t]);!0===y.props.hideOnClick&&(y.clearDelayTimeouts(),y.hide(),p=!0,setTimeout((function(){p=!1})),y.state.isMounted||N())}}}function V(){h=!0}function z(){h=!1}function W(){var e=A();e.addEventListener("mousedown",M,!0),e.addEventListener("touchend",M,kt),e.addEventListener("touchstart",z,kt),e.addEventListener("touchmove",V,kt)}function N(){var e=A();e.removeEventListener("mousedown",M,!0),e.removeEventListener("touchend",M,kt),e.removeEventListener("touchstart",z,kt),e.removeEventListener("touchmove",V,kt)}function P(e,t){var i=E().box;function n(e){e.target===i&&(Ut(i,"remove",n),t())}if(0===e)return t();Ut(i,"remove",o),Ut(i,"add",n),o=n}function H(t,i,n){void 0===n&&(n=!1),Mt(y.props.triggerTarget||e).forEach((function(e){e.addEventListener(t,i,n),b.push({node:e,eventType:t,handler:i,options:n})}))}function B(){var e;L()&&(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(Qt?"focusout":"blur",X);break;case"focusin":H("focusout",X)}}))}function F(){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,_(),!y.state.isVisible&&Ct(e,"MouseEvent")&&ui.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=R().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:l}: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,c="top"===o?a.bottom.y:0,l="right"===o?a.left.x:0,u="left"===o?a.right.x:0,p=t.top-n+d>s,h=n-t.bottom-c>s,f=t.left-i+l>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!==R()||y.props.interactive&&e.relatedTarget&&x.contains(e.relatedTarget)||te(e)}function J(e){return!!Yt.isTouch&&L()!==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=T()?di(x).arrow:null,c=s?{getBoundingClientRect:s,contextElement:s.contextElement||R()}:e,l={name:"$$tippy",enabled:!0,phase:"beforeWrite",requires:["computeStyles"],fn:function(e){var t=e.state;if(T()){var i=E().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}},l];T()&&d&&u.push({name:"arrow",options:{element:d,padding:3}}),u.push.apply(u,(null==i?void 0:i.modifiers)||[]),y.popperInstance=Lt(c,x,Object.assign({},i,{placement:n,onFirstUpdate:a,modifiers:u}))}function K(){y.popperInstance&&(y.popperInstance.destroy(),y.popperInstance=null)}function Q(){return zt(x.querySelectorAll("[data-tippy-root]"))}function ee(e){y.clearDelayTimeouts(),e&&D("onTrigger",[y,e]),W();var t=k(!0),n=q(),r=n[0],s=n[1];Yt.isTouch&&"hold"===r&&s&&(t=s),t?i=setTimeout((function(){y.show()}),t):y.show()}function te(e){if(y.clearDelayTimeouts(),D("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=k(!1);t?n=setTimeout((function(){y.state.isVisible&&y.hide()}),t):r=requestAnimationFrame((function(){y.hide()}))}}else N()}}function fi(e,t){void 0===t&&(t={});var i=ei.plugins.concat(t.plugins||[]);document.addEventListener("touchstart",Jt,kt),window.addEventListener("blur",Kt);var n=Object.assign({},t,{plugins:i}),r=Ht(e).reduce((function(e,t){var i=t&&hi(t,n);return i&&e.push(i),e}),[]);return Pt(e)?r[0]:r}fi.defaultProps=ei,fi.setDefaultProps=function(e){Object.keys(e).forEach((function(t){ei[t]=e[t]}))},fi.currentInput=Yt,Object.assign({},Re,{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)}}),fi.setDefaultProps({render:ci});var bi="shared/tippy.e012f5144451ed83.css";class mi extends(M(V)){constructor(){super(),this.textContent="missing text.",this.interactive=!1}static get scopedElements(){return{"dbp-icon":z}}static get properties(){return L({},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}):fi(this._("#info-tooltip-icon"),{content:this.textContent,appendTo:this.shadowRoot,interactive:this.interactive,allowHTML:!!this.interactive,hideOnClick:!this.interactive}))}static get styles(){return W(e||(e=q` ${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); } `),N(),P(!1),H())}render(){const e=B(bi);return this.setOrUpdateTippy(),F(t||(t=q` <link rel="stylesheet" href="${0}" /> <div class="info-icon" id="info-tooltip-icon"> <dbp-icon name="information-circle"></dbp-icon> </div> `),e)}}class gi extends(M(V)){constructor(){super(),this.textContent="missing text.",this.iconName=""}static get scopedElements(){return{"dbp-icon":z}}static get properties(){return L({},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}):fi(this._("#tooltip-icon"),{content:this.textContent,appendTo:this.shadowRoot}))}static get styles(){return W(i||(i=q` ${0} ${0} ${0} .tooltip-icon { display: inline; color: var(--dbp-content); } .tippy-box { background-color: var(--dbp-content-surface); color: var(--dbp-on-content-surface); } .tippy-arrow { color: var(--dbp-content); } `),N(),P(!1),H())}render(){const e=B(bi);return this.setOrUpdateTippy(),F(n||(n=q` <link rel="stylesheet" href="${0}" /> <div class="tooltip-icon"> ${0} </div> `),e,this.iconName?F(r||(r=q` <dbp-icon name="${0}" id="tooltip-icon"></dbp-icon> `),this.iconName):F(s||(s=q` <!-- 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 vi extends(M(T)){constructor(){super(),this._i18n=R(),this.lang=this._i18n.language,this.activity=new A(ae),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.mayReadAddress=!1,this.mayReadMetadata=!1,this.organizationSet=!1,this.addFileViaButton=!1,this.currentItem.senderOrganizationName="",this.currentItem.senderFullName="",this.currentItem.senderAddressCountry="",this.currentItem.senderPostalCode="",this.currentItem.senderAddressLocality="",this.currentItem.senderStreetAddress="",this.currentItem.senderBuildingNumber="",this.lastModifiedName="",this.expanded=!1,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),this.langDir=void 0,this.loadingTranslations=!1,this.tableLoading=!1}static get scopedElements(){return{"dbp-icon":z,"dbp-mini-spinner":U,"dbp-loading-button":G,"dbp-icon-button":Y,"dbp-inline-notification":E,"dbp-file-source":re,"dbp-person-select":k,"dbp-resource-select":se,"dbp-info-tooltip":mi,"dbp-tooltip":gi,"dbp-pdf-viewer":I}}static get properties(){return L({},super.properties,{lang:{type:String},entryPointUrl:{type:String,attribute:"entry-point-url"},loading:{type:Boolean,attribute:!1},initialRequestsLoading:{type:Boolean,attribute:!1},tableLoading:{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},mayReadMetadata:{type:Boolean,attribute:!1},rowsSelected:{type:Boolean,attribute:!1},lastModifiedName:{type:String,attribute:!1},expanded:{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"},langDir:{type:String,attribute:"lang-dir"}})}update(e){e.forEach(((e,t)=>{if("lang"===t)this._i18n.changeLanguage(this.lang),this.dispatchRequestsTable&&(this.dispatchRequestsTable.setLocale(this.lang),this.expanded=!1)})),super.update(e)}disconnectedCallback(){this.dispatchRequestsTable.off("rowClick"),this.dispatchRequestsTable.off("dataLoaded"),this.dispatchRequestsTable.off("pageLoaded"),document.removeEventListener("keyup",this.boundPressEnterAndSubmitSearchHandler),super.disconnectedCallback()}connectedCallback(){if(super.connectedCallback(),this._loginStatus="",this._loginState=[],this._loginCalled=!1,this.langDir){this.loadingTranslations=!0;const e=this;X(this._i18n,this).then((()=>{e.loadingTranslations=!1,e.requestUpdate()}))}else this.loadingTranslations=!1;this.updateComplete.then((()=>{let e=this._(".tabulator-paginator");const t=this._i18n,i=this;this.dispatchRequestsTable=new oe(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:1,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-gz"),field:"gz",responsive:2,widthGrow:3,minWidth:100,formatter:"html"},{title:t.t("show-requests.table-header-subject"),field:"subject",responsive:3,widthGrow:3,minWidth:100,formatter:"html"},{title:"Status",field:"status",responsive:2,widthGrow:1,minWidth:120,formatter:"html"},{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:1,formatter:e=>e.getValue()}],langs:{en:{columns:{dateCreated:"Date created",subject:"Subject",gz:"Reference number",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",gz:"Geschäftszahl",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.pageLoaded