@unchainedshop/admin-ui 4.0.11 → 4.0.13

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (86) hide show
  1. package/README.md +1 -1
  2. package/dist/express.d.ts +1 -7
  3. package/dist/express.js +9 -9
  4. package/dist/fastify.d.ts +1 -6
  5. package/dist/fastify.js +5 -6
  6. package/dist/generateImageHandler.d.ts +4 -3
  7. package/dist/generateImageHandler.js +2 -6
  8. package/dist/index.d.ts +3 -3
  9. package/dist/index.js +21 -5
  10. package/dist/utils.d.ts +10 -0
  11. package/out/403/index.html +2 -2
  12. package/out/404/index.html +2 -2
  13. package/out/404.html +2 -2
  14. package/out/423/index.html +2 -2
  15. package/out/500/index.html +2 -2
  16. package/out/_next/static/{K-CrOGD443zyh7c6f3pNZ → VfAuif9Gz8EDlt3a2r4DY}/_buildManifest.js +1 -1
  17. package/out/_next/static/chunks/1992-688842cb5a8dc27a.js +1 -0
  18. package/out/_next/static/chunks/pages/_app-f1a903d318cde6de.js +20 -0
  19. package/out/_next/static/chunks/pages/index-d152ef3eb4c2cdb0.js +1 -0
  20. package/out/_next/static/chunks/pages/index.old-ca9913252213f8e7.js +1 -0
  21. package/out/_next/static/chunks/pages/log-in-ab07b5daea724e34.js +1 -0
  22. package/out/_next/static/css/{81a0dabe196c7c51.css → 15e6d4853207616b.css} +1 -1
  23. package/out/_offline/index.html +2 -2
  24. package/out/account/forgot-password/index.html +2 -2
  25. package/out/account/index.html +2 -2
  26. package/out/assortments/AssortmentDetailPage/index.html +2 -2
  27. package/out/assortments/index.html +2 -2
  28. package/out/assortments/new/index.html +2 -2
  29. package/out/country/CountryDetailPage/index.html +2 -2
  30. package/out/country/index.html +2 -2
  31. package/out/country/new/index.html +2 -2
  32. package/out/currency/CurrencyDetailPage/index.html +2 -2
  33. package/out/currency/index.html +2 -2
  34. package/out/currency/new/index.html +2 -2
  35. package/out/delivery-provider/DeliveryProviderDetailPage/index.html +2 -2
  36. package/out/delivery-provider/index.html +2 -2
  37. package/out/delivery-provider/new/index.html +2 -2
  38. package/out/enrollments/EnrollmentDetailPage/index.html +2 -2
  39. package/out/enrollments/index.html +2 -2
  40. package/out/events/EventDetailPage/index.html +2 -2
  41. package/out/events/index.html +2 -2
  42. package/out/external/index.html +2 -2
  43. package/out/filters/FilterDetailPage/index.html +2 -2
  44. package/out/filters/index.html +2 -2
  45. package/out/filters/new/index.html +2 -2
  46. package/out/index.html +2 -2
  47. package/out/index.old/index.html +2 -2
  48. package/out/language/LanguageDetailPage/index.html +2 -2
  49. package/out/language/index.html +2 -2
  50. package/out/language/new/index.html +2 -2
  51. package/out/log-in/index.html +2 -2
  52. package/out/orders/OrderDetailPage/index.html +2 -2
  53. package/out/orders/index.html +2 -2
  54. package/out/payment-provider/PaymentProviderDetailPage/index.html +2 -2
  55. package/out/payment-provider/index.html +2 -2
  56. package/out/payment-provider/new/index.html +2 -2
  57. package/out/products/ProductDetailPage/index.html +2 -2
  58. package/out/products/index.html +2 -2
  59. package/out/products/new/index.html +2 -2
  60. package/out/quotations/QuotationDetailPage/index.html +2 -2
  61. package/out/quotations/index.html +2 -2
  62. package/out/reset-password/index.html +2 -2
  63. package/out/sign-up/index.html +2 -2
  64. package/out/tokens/TokenDetailPage/index.html +2 -2
  65. package/out/tokens/index.html +2 -2
  66. package/out/users/UserDetailPage/index.html +2 -2
  67. package/out/users/index.html +2 -2
  68. package/out/users/new/index.html +2 -2
  69. package/out/verify-email/index.html +2 -2
  70. package/out/warehousing-provider/WarehousingProviderDetailPage/index.html +2 -2
  71. package/out/warehousing-provider/index.html +2 -2
  72. package/out/warehousing-provider/new/index.html +2 -2
  73. package/out/works/WorkDetailPage/index.html +2 -2
  74. package/out/works/index.html +2 -2
  75. package/out/works/management/index.html +2 -2
  76. package/package.json +17 -21
  77. package/dist/types.d.ts +0 -6
  78. package/dist/types.js +0 -2
  79. package/out/_next/static/chunks/1992-6cf6cd6aad213191.js +0 -1
  80. package/out/_next/static/chunks/pages/_app-dd71174e68d4fcef.js +0 -20
  81. package/out/_next/static/chunks/pages/index-43b0d7b964b1c176.js +0 -1
  82. package/out/_next/static/chunks/pages/index.old-bca419033104c6c7.js +0 -1
  83. package/out/_next/static/chunks/pages/log-in-ec525d25028ee8df.js +0 -1
  84. /package/out/_next/static/{K-CrOGD443zyh7c6f3pNZ → VfAuif9Gz8EDlt3a2r4DY}/_ssgManifest.js +0 -0
  85. /package/out/_next/static/chunks/{5671-4381658e735df1f6.js → 5671-e0cb07e96c9d3f37.js} +0 -0
  86. /package/out/_next/static/chunks/{main-ce22bce11b25ace0.js → main-b12018dbe4e28149.js} +0 -0
@@ -1 +0,0 @@
1
- "use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[1992],{21162:(t,e,n)=>{n.d(e,{A:()=>o});var i=n(14232);let o=i.forwardRef(function(t,e){let{title:n,titleId:o,...r}=t;return i.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true","data-slot":"icon",ref:e,"aria-labelledby":o},r),n?i.createElement("title",{id:o},n):null,i.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M19.5 14.25v-2.625a3.375 3.375 0 0 0-3.375-3.375h-1.5A1.125 1.125 0 0 1 13.5 7.125v-1.5a3.375 3.375 0 0 0-3.375-3.375H8.25m0 12.75h7.5m-7.5 3H12M10.5 2.25H5.625c-.621 0-1.125.504-1.125 1.125v17.25c0 .621.504 1.125 1.125 1.125h12.75c.621 0 1.125-.504 1.125-1.125V11.25a9 9 0 0 0-9-9Z"}))})},59454:(t,e,n)=>{n.d(e,{A:()=>o});var i=n(14232);let o=i.forwardRef(function(t,e){let{title:n,titleId:o,...r}=t;return i.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true","data-slot":"icon",ref:e,"aria-labelledby":o},r),n?i.createElement("title",{id:o},n):null,i.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"m16.862 4.487 1.687-1.688a1.875 1.875 0 1 1 2.652 2.652L10.582 16.07a4.5 4.5 0 0 1-1.897 1.13L6 18l.8-2.685a4.5 4.5 0 0 1 1.13-1.897l8.932-8.931Zm0 0L19.5 7.125M18 14v4.75A2.25 2.25 0 0 1 15.75 21H5.25A2.25 2.25 0 0 1 3 18.75V8.25A2.25 2.25 0 0 1 5.25 6H10"}))})},80400:(t,e,n)=>{n.d(e,{ll:()=>R,rD:()=>q,__:()=>k,UU:()=>A,cY:()=>E,BN:()=>C,Ej:()=>V});var i=n(81040);function o(t,e,n){let o,{reference:r,floating:l}=t,a=(0,i.TV)(e),c=(0,i.Dz)(e),f=(0,i.sq)(c),u=(0,i.C0)(e),s="y"===a,d=r.x+r.width/2-l.width/2,h=r.y+r.height/2-l.height/2,p=r[f]/2-l[f]/2;switch(u){case"top":o={x:d,y:r.y-l.height};break;case"bottom":o={x:d,y:r.y+r.height};break;case"right":o={x:r.x+r.width,y:h};break;case"left":o={x:r.x-l.width,y:h};break;default:o={x:r.x,y:r.y}}switch((0,i.Sg)(e)){case"start":o[c]-=p*(n&&s?-1:1);break;case"end":o[c]+=p*(n&&s?-1:1)}return o}let r=async(t,e,n)=>{let{placement:i="bottom",strategy:r="absolute",middleware:l=[],platform:a}=n,c=l.filter(Boolean),f=await (null==a.isRTL?void 0:a.isRTL(e)),u=await a.getElementRects({reference:t,floating:e,strategy:r}),{x:s,y:d}=o(u,i,f),h=i,p={},m=0;for(let n=0;n<c.length;n++){let{name:l,fn:g}=c[n],{x:v,y:w,data:x,reset:y}=await g({x:s,y:d,initialPlacement:i,placement:h,strategy:r,middlewareData:p,rects:u,platform:a,elements:{reference:t,floating:e}});s=null!=v?v:s,d=null!=w?w:d,p={...p,[l]:{...p[l],...x}},y&&m<=50&&(m++,"object"==typeof y&&(y.placement&&(h=y.placement),y.rects&&(u=!0===y.rects?await a.getElementRects({reference:t,floating:e,strategy:r}):y.rects),{x:s,y:d}=o(u,h,f)),n=-1)}return{x:s,y:d,placement:h,strategy:r,middlewareData:p}};async function l(t,e){var n;void 0===e&&(e={});let{x:o,y:r,platform:l,rects:a,elements:c,strategy:f}=t,{boundary:u="clippingAncestors",rootBoundary:s="viewport",elementContext:d="floating",altBoundary:h=!1,padding:p=0}=(0,i._3)(e,t),m=(0,i.nI)(p),g=c[h?"floating"===d?"reference":"floating":d],v=(0,i.B1)(await l.getClippingRect({element:null==(n=await (null==l.isElement?void 0:l.isElement(g)))||n?g:g.contextElement||await (null==l.getDocumentElement?void 0:l.getDocumentElement(c.floating)),boundary:u,rootBoundary:s,strategy:f})),w="floating"===d?{x:o,y:r,width:a.floating.width,height:a.floating.height}:a.reference,x=await (null==l.getOffsetParent?void 0:l.getOffsetParent(c.floating)),y=await (null==l.isElement?void 0:l.isElement(x))&&await (null==l.getScale?void 0:l.getScale(x))||{x:1,y:1},b=(0,i.B1)(l.convertOffsetParentRelativeRectToViewportRelativeRect?await l.convertOffsetParentRelativeRectToViewportRelativeRect({elements:c,rect:w,offsetParent:x,strategy:f}):w);return{top:(v.top-b.top+m.top)/y.y,bottom:(b.bottom-v.bottom+m.bottom)/y.y,left:(v.left-b.left+m.left)/y.x,right:(b.right-v.right+m.right)/y.x}}async function a(t,e){let{placement:n,platform:o,elements:r}=t,l=await (null==o.isRTL?void 0:o.isRTL(r.floating)),a=(0,i.C0)(n),c=(0,i.Sg)(n),f="y"===(0,i.TV)(n),u=["left","top"].includes(a)?-1:1,s=l&&f?-1:1,d=(0,i._3)(e,t),{mainAxis:h,crossAxis:p,alignmentAxis:m}="number"==typeof d?{mainAxis:d,crossAxis:0,alignmentAxis:null}:{mainAxis:d.mainAxis||0,crossAxis:d.crossAxis||0,alignmentAxis:d.alignmentAxis};return c&&"number"==typeof m&&(p="end"===c?-1*m:m),f?{x:p*s,y:h*u}:{x:h*u,y:p*s}}var c=n(84974);function f(t){let e=(0,c.L9)(t),n=parseFloat(e.width)||0,o=parseFloat(e.height)||0,r=(0,c.sb)(t),l=r?t.offsetWidth:n,a=r?t.offsetHeight:o,f=(0,i.LI)(n)!==l||(0,i.LI)(o)!==a;return f&&(n=l,o=a),{width:n,height:o,$:f}}function u(t){return(0,c.vq)(t)?t:t.contextElement}function s(t){let e=u(t);if(!(0,c.sb)(e))return(0,i.Jx)(1);let n=e.getBoundingClientRect(),{width:o,height:r,$:l}=f(e),a=(l?(0,i.LI)(n.width):n.width)/o,s=(l?(0,i.LI)(n.height):n.height)/r;return a&&Number.isFinite(a)||(a=1),s&&Number.isFinite(s)||(s=1),{x:a,y:s}}let d=(0,i.Jx)(0);function h(t){let e=(0,c.zk)(t);return(0,c.Tc)()&&e.visualViewport?{x:e.visualViewport.offsetLeft,y:e.visualViewport.offsetTop}:d}function p(t,e,n,o){var r;void 0===e&&(e=!1),void 0===n&&(n=!1);let l=t.getBoundingClientRect(),a=u(t),f=(0,i.Jx)(1);e&&(o?(0,c.vq)(o)&&(f=s(o)):f=s(t));let d=(void 0===(r=n)&&(r=!1),o&&(!r||o===(0,c.zk)(a))&&r)?h(a):(0,i.Jx)(0),p=(l.left+d.x)/f.x,m=(l.top+d.y)/f.y,g=l.width/f.x,v=l.height/f.y;if(a){let t=(0,c.zk)(a),e=o&&(0,c.vq)(o)?(0,c.zk)(o):o,n=t,i=(0,c._m)(n);for(;i&&o&&e!==n;){let t=s(i),e=i.getBoundingClientRect(),o=(0,c.L9)(i),r=e.left+(i.clientLeft+parseFloat(o.paddingLeft))*t.x,l=e.top+(i.clientTop+parseFloat(o.paddingTop))*t.y;p*=t.x,m*=t.y,g*=t.x,v*=t.y,p+=r,m+=l,n=(0,c.zk)(i),i=(0,c._m)(n)}}return(0,i.B1)({width:g,height:v,x:p,y:m})}function m(t,e){let n=(0,c.CP)(t).scrollLeft;return e?e.left+n:p((0,c.ep)(t)).left+n}function g(t,e,n){void 0===n&&(n=!1);let i=t.getBoundingClientRect();return{x:i.left+e.scrollLeft-(n?0:m(t,i)),y:i.top+e.scrollTop}}function v(t,e,n){let o;if("viewport"===e)o=function(t,e){let n=(0,c.zk)(t),i=(0,c.ep)(t),o=n.visualViewport,r=i.clientWidth,l=i.clientHeight,a=0,f=0;if(o){r=o.width,l=o.height;let t=(0,c.Tc)();(!t||t&&"fixed"===e)&&(a=o.offsetLeft,f=o.offsetTop)}return{width:r,height:l,x:a,y:f}}(t,n);else if("document"===e)o=function(t){let e=(0,c.ep)(t),n=(0,c.CP)(t),o=t.ownerDocument.body,r=(0,i.T9)(e.scrollWidth,e.clientWidth,o.scrollWidth,o.clientWidth),l=(0,i.T9)(e.scrollHeight,e.clientHeight,o.scrollHeight,o.clientHeight),a=-n.scrollLeft+m(t),f=-n.scrollTop;return"rtl"===(0,c.L9)(o).direction&&(a+=(0,i.T9)(e.clientWidth,o.clientWidth)-r),{width:r,height:l,x:a,y:f}}((0,c.ep)(t));else if((0,c.vq)(e))o=function(t,e){let n=p(t,!0,"fixed"===e),o=n.top+t.clientTop,r=n.left+t.clientLeft,l=(0,c.sb)(t)?s(t):(0,i.Jx)(1),a=t.clientWidth*l.x,f=t.clientHeight*l.y;return{width:a,height:f,x:r*l.x,y:o*l.y}}(e,n);else{let n=h(t);o={x:e.x-n.x,y:e.y-n.y,width:e.width,height:e.height}}return(0,i.B1)(o)}function w(t){return"static"===(0,c.L9)(t).position}function x(t,e){if(!(0,c.sb)(t)||"fixed"===(0,c.L9)(t).position)return null;if(e)return e(t);let n=t.offsetParent;return(0,c.ep)(t)===n&&(n=n.ownerDocument.body),n}function y(t,e){let n=(0,c.zk)(t);if((0,c.Tf)(t))return n;if(!(0,c.sb)(t)){let e=(0,c.$4)(t);for(;e&&!(0,c.eu)(e);){if((0,c.vq)(e)&&!w(e))return e;e=(0,c.$4)(e)}return n}let i=x(t,e);for(;i&&(0,c.Lv)(i)&&w(i);)i=x(i,e);return i&&(0,c.eu)(i)&&w(i)&&!(0,c.sQ)(i)?n:i||(0,c.gJ)(t)||n}let b=async function(t){let e=this.getOffsetParent||y,n=this.getDimensions,o=await n(t.floating);return{reference:function(t,e,n){let o=(0,c.sb)(e),r=(0,c.ep)(e),l="fixed"===n,a=p(t,!0,l,e),f={scrollLeft:0,scrollTop:0},u=(0,i.Jx)(0);if(o||!o&&!l)if(("body"!==(0,c.mq)(e)||(0,c.ZU)(r))&&(f=(0,c.CP)(e)),o){let t=p(e,!0,l,e);u.x=t.x+e.clientLeft,u.y=t.y+e.clientTop}else r&&(u.x=m(r));l&&!o&&r&&(u.x=m(r));let s=!r||o||l?(0,i.Jx)(0):g(r,f);return{x:a.left+f.scrollLeft-u.x-s.x,y:a.top+f.scrollTop-u.y-s.y,width:a.width,height:a.height}}(t.reference,await e(t.floating),t.strategy),floating:{x:0,y:0,width:o.width,height:o.height}}},T={convertOffsetParentRelativeRectToViewportRelativeRect:function(t){let{elements:e,rect:n,offsetParent:o,strategy:r}=t,l="fixed"===r,a=(0,c.ep)(o),f=!!e&&(0,c.Tf)(e.floating);if(o===a||f&&l)return n;let u={scrollLeft:0,scrollTop:0},d=(0,i.Jx)(1),h=(0,i.Jx)(0),m=(0,c.sb)(o);if((m||!m&&!l)&&(("body"!==(0,c.mq)(o)||(0,c.ZU)(a))&&(u=(0,c.CP)(o)),(0,c.sb)(o))){let t=p(o);d=s(o),h.x=t.x+o.clientLeft,h.y=t.y+o.clientTop}let v=!a||m||l?(0,i.Jx)(0):g(a,u,!0);return{width:n.width*d.x,height:n.height*d.y,x:n.x*d.x-u.scrollLeft*d.x+h.x+v.x,y:n.y*d.y-u.scrollTop*d.y+h.y+v.y}},getDocumentElement:c.ep,getClippingRect:function(t){let{element:e,boundary:n,rootBoundary:o,strategy:r}=t,l=[..."clippingAncestors"===n?(0,c.Tf)(e)?[]:function(t,e){let n=e.get(t);if(n)return n;let i=(0,c.v9)(t,[],!1).filter(t=>(0,c.vq)(t)&&"body"!==(0,c.mq)(t)),o=null,r="fixed"===(0,c.L9)(t).position,l=r?(0,c.$4)(t):t;for(;(0,c.vq)(l)&&!(0,c.eu)(l);){let e=(0,c.L9)(l),n=(0,c.sQ)(l);n||"fixed"!==e.position||(o=null),(r?!n&&!o:!n&&"static"===e.position&&!!o&&["absolute","fixed"].includes(o.position)||(0,c.ZU)(l)&&!n&&function t(e,n){let i=(0,c.$4)(e);return!(i===n||!(0,c.vq)(i)||(0,c.eu)(i))&&("fixed"===(0,c.L9)(i).position||t(i,n))}(t,l))?i=i.filter(t=>t!==l):o=e,l=(0,c.$4)(l)}return e.set(t,i),i}(e,this._c):[].concat(n),o],a=l[0],f=l.reduce((t,n)=>{let o=v(e,n,r);return t.top=(0,i.T9)(o.top,t.top),t.right=(0,i.jk)(o.right,t.right),t.bottom=(0,i.jk)(o.bottom,t.bottom),t.left=(0,i.T9)(o.left,t.left),t},v(e,a,r));return{width:f.right-f.left,height:f.bottom-f.top,x:f.left,y:f.top}},getOffsetParent:y,getElementRects:b,getClientRects:function(t){return Array.from(t.getClientRects())},getDimensions:function(t){let{width:e,height:n}=f(t);return{width:e,height:n}},getScale:s,isElement:c.vq,isRTL:function(t){return"rtl"===(0,c.L9)(t).direction}};function L(t,e){return t.x===e.x&&t.y===e.y&&t.width===e.width&&t.height===e.height}function R(t,e,n,o){let r;void 0===o&&(o={});let{ancestorScroll:l=!0,ancestorResize:a=!0,elementResize:f="function"==typeof ResizeObserver,layoutShift:s="function"==typeof IntersectionObserver,animationFrame:d=!1}=o,h=u(t),m=l||a?[...h?(0,c.v9)(h):[],...(0,c.v9)(e)]:[];m.forEach(t=>{l&&t.addEventListener("scroll",n,{passive:!0}),a&&t.addEventListener("resize",n)});let g=h&&s?function(t,e){let n,o=null,r=(0,c.ep)(t);function l(){var t;clearTimeout(n),null==(t=o)||t.disconnect(),o=null}return!function a(c,f){void 0===c&&(c=!1),void 0===f&&(f=1),l();let u=t.getBoundingClientRect(),{left:s,top:d,width:h,height:p}=u;if(c||e(),!h||!p)return;let m=(0,i.RI)(d),g=(0,i.RI)(r.clientWidth-(s+h)),v={rootMargin:-m+"px "+-g+"px "+-(0,i.RI)(r.clientHeight-(d+p))+"px "+-(0,i.RI)(s)+"px",threshold:(0,i.T9)(0,(0,i.jk)(1,f))||1},w=!0;function x(e){let i=e[0].intersectionRatio;if(i!==f){if(!w)return a();i?a(!1,i):n=setTimeout(()=>{a(!1,1e-7)},1e3)}1!==i||L(u,t.getBoundingClientRect())||a(),w=!1}try{o=new IntersectionObserver(x,{...v,root:r.ownerDocument})}catch(t){o=new IntersectionObserver(x,v)}o.observe(t)}(!0),l}(h,n):null,v=-1,w=null;f&&(w=new ResizeObserver(t=>{let[i]=t;i&&i.target===h&&w&&(w.unobserve(e),cancelAnimationFrame(v),v=requestAnimationFrame(()=>{var t;null==(t=w)||t.observe(e)})),n()}),h&&!d&&w.observe(h),w.observe(e));let x=d?p(t):null;return d&&function e(){let i=p(t);x&&!L(x,i)&&n(),x=i,r=requestAnimationFrame(e)}(),n(),()=>{var t;m.forEach(t=>{l&&t.removeEventListener("scroll",n),a&&t.removeEventListener("resize",n)}),null==g||g(),null==(t=w)||t.disconnect(),w=null,d&&cancelAnimationFrame(r)}}let k=l,E=function(t){return void 0===t&&(t=0),{name:"offset",options:t,async fn(e){var n,i;let{x:o,y:r,placement:l,middlewareData:c}=e,f=await a(e,t);return l===(null==(n=c.offset)?void 0:n.placement)&&null!=(i=c.arrow)&&i.alignmentOffset?{}:{x:o+f.x,y:r+f.y,data:{...f,placement:l}}}}},C=function(t){return void 0===t&&(t={}),{name:"shift",options:t,async fn(e){let{x:n,y:o,placement:r}=e,{mainAxis:a=!0,crossAxis:c=!1,limiter:f={fn:t=>{let{x:e,y:n}=t;return{x:e,y:n}}},...u}=(0,i._3)(t,e),s={x:n,y:o},d=await l(e,u),h=(0,i.TV)((0,i.C0)(r)),p=(0,i.PG)(h),m=s[p],g=s[h];if(a){let t="y"===p?"top":"left",e="y"===p?"bottom":"right",n=m+d[t],o=m-d[e];m=(0,i.qE)(n,m,o)}if(c){let t="y"===h?"top":"left",e="y"===h?"bottom":"right",n=g+d[t],o=g-d[e];g=(0,i.qE)(n,g,o)}let v=f.fn({...e,[p]:m,[h]:g});return{...v,data:{x:v.x-n,y:v.y-o,enabled:{[p]:a,[h]:c}}}}}},A=function(t){return void 0===t&&(t={}),{name:"flip",options:t,async fn(e){var n,o,r,a,c;let{placement:f,middlewareData:u,rects:s,initialPlacement:d,platform:h,elements:p}=e,{mainAxis:m=!0,crossAxis:g=!0,fallbackPlacements:v,fallbackStrategy:w="bestFit",fallbackAxisSideDirection:x="none",flipAlignment:y=!0,...b}=(0,i._3)(t,e);if(null!=(n=u.arrow)&&n.alignmentOffset)return{};let T=(0,i.C0)(f),L=(0,i.TV)(d),R=(0,i.C0)(d)===d,k=await (null==h.isRTL?void 0:h.isRTL(p.floating)),E=v||(R||!y?[(0,i.bV)(d)]:(0,i.WJ)(d)),C="none"!==x;!v&&C&&E.push(...(0,i.lP)(d,y,x,k));let A=[d,...E],V=await l(e,b),q=[],D=(null==(o=u.flip)?void 0:o.overflows)||[];if(m&&q.push(V[T]),g){let t=(0,i.w7)(f,s,k);q.push(V[t[0]],V[t[1]])}if(D=[...D,{placement:f,overflows:q}],!q.every(t=>t<=0)){let t=((null==(r=u.flip)?void 0:r.index)||0)+1,e=A[t];if(e&&("alignment"!==g||L===(0,i.TV)(e)||D.every(t=>t.overflows[0]>0&&(0,i.TV)(t.placement)===L)))return{data:{index:t,overflows:D},reset:{placement:e}};let n=null==(a=D.filter(t=>t.overflows[0]<=0).sort((t,e)=>t.overflows[1]-e.overflows[1])[0])?void 0:a.placement;if(!n)switch(w){case"bestFit":{let t=null==(c=D.filter(t=>{if(C){let e=(0,i.TV)(t.placement);return e===L||"y"===e}return!0}).map(t=>[t.placement,t.overflows.filter(t=>t>0).reduce((t,e)=>t+e,0)]).sort((t,e)=>t[1]-e[1])[0])?void 0:c[0];t&&(n=t);break}case"initialPlacement":n=d}if(f!==n)return{reset:{placement:n}}}return{}}}},V=function(t){return void 0===t&&(t={}),{name:"size",options:t,async fn(e){var n,o;let r,a,{placement:c,rects:f,platform:u,elements:s}=e,{apply:d=()=>{},...h}=(0,i._3)(t,e),p=await l(e,h),m=(0,i.C0)(c),g=(0,i.Sg)(c),v="y"===(0,i.TV)(c),{width:w,height:x}=f.floating;"top"===m||"bottom"===m?(r=m,a=g===(await (null==u.isRTL?void 0:u.isRTL(s.floating))?"start":"end")?"left":"right"):(a=m,r="end"===g?"top":"bottom");let y=x-p.top-p.bottom,b=w-p.left-p.right,T=(0,i.jk)(x-p[r],y),L=(0,i.jk)(w-p[a],b),R=!e.middlewareData.shift,k=T,E=L;if(null!=(n=e.middlewareData.shift)&&n.enabled.x&&(E=b),null!=(o=e.middlewareData.shift)&&o.enabled.y&&(k=y),R&&!g){let t=(0,i.T9)(p.left,0),e=(0,i.T9)(p.right,0),n=(0,i.T9)(p.top,0),o=(0,i.T9)(p.bottom,0);v?E=w-2*(0!==t||0!==e?t+e:(0,i.T9)(p.left,p.right)):k=x-2*(0!==n||0!==o?n+o:(0,i.T9)(p.top,p.bottom))}await d({...e,availableWidth:E,availableHeight:k});let C=await u.getDimensions(s.floating);return w!==C.width||x!==C.height?{reset:{rects:!0}}:{}}}},q=(t,e,n)=>{let i=new Map,o={platform:T,...n},l={...o.platform,_c:i};return r(t,e,{...o,platform:l})}},81040:(t,e,n)=>{n.d(e,{B1:()=>R,C0:()=>d,Dz:()=>v,Jx:()=>a,LI:()=>r,PG:()=>p,RI:()=>l,Sg:()=>h,T9:()=>o,TV:()=>g,WJ:()=>x,_3:()=>s,bV:()=>T,jk:()=>i,lP:()=>b,nI:()=>L,qE:()=>u,sq:()=>m,w7:()=>w});let i=Math.min,o=Math.max,r=Math.round,l=Math.floor,a=t=>({x:t,y:t}),c={left:"right",right:"left",bottom:"top",top:"bottom"},f={start:"end",end:"start"};function u(t,e,n){return o(t,i(e,n))}function s(t,e){return"function"==typeof t?t(e):t}function d(t){return t.split("-")[0]}function h(t){return t.split("-")[1]}function p(t){return"x"===t?"y":"x"}function m(t){return"y"===t?"height":"width"}function g(t){return["top","bottom"].includes(d(t))?"y":"x"}function v(t){return p(g(t))}function w(t,e,n){void 0===n&&(n=!1);let i=h(t),o=v(t),r=m(o),l="x"===o?i===(n?"end":"start")?"right":"left":"start"===i?"bottom":"top";return e.reference[r]>e.floating[r]&&(l=T(l)),[l,T(l)]}function x(t){let e=T(t);return[y(t),e,y(e)]}function y(t){return t.replace(/start|end/g,t=>f[t])}function b(t,e,n,i){let o=h(t),r=function(t,e,n){let i=["left","right"],o=["right","left"];switch(t){case"top":case"bottom":if(n)return e?o:i;return e?i:o;case"left":case"right":return e?["top","bottom"]:["bottom","top"];default:return[]}}(d(t),"start"===n,i);return o&&(r=r.map(t=>t+"-"+o),e&&(r=r.concat(r.map(y)))),r}function T(t){return t.replace(/left|right|bottom|top/g,t=>c[t])}function L(t){return"number"!=typeof t?{top:0,right:0,bottom:0,left:0,...t}:{top:t,right:t,bottom:t,left:t}}function R(t){let{x:e,y:n,width:i,height:o}=t;return{width:i,height:o,top:n,left:e,right:e+i,bottom:n+o,x:e,y:n}}},84974:(t,e,n)=>{function i(){return"undefined"!=typeof window}function o(t){return a(t)?(t.nodeName||"").toLowerCase():"#document"}function r(t){var e;return(null==t||null==(e=t.ownerDocument)?void 0:e.defaultView)||window}function l(t){var e;return null==(e=(a(t)?t.ownerDocument:t.document)||window.document)?void 0:e.documentElement}function a(t){return!!i()&&(t instanceof Node||t instanceof r(t).Node)}function c(t){return!!i()&&(t instanceof Element||t instanceof r(t).Element)}function f(t){return!!i()&&(t instanceof HTMLElement||t instanceof r(t).HTMLElement)}function u(t){return!!i()&&"undefined"!=typeof ShadowRoot&&(t instanceof ShadowRoot||t instanceof r(t).ShadowRoot)}function s(t){let{overflow:e,overflowX:n,overflowY:i,display:o}=w(t);return/auto|scroll|overlay|hidden|clip/.test(e+i+n)&&!["inline","contents"].includes(o)}function d(t){return["table","td","th"].includes(o(t))}function h(t){return[":popover-open",":modal"].some(e=>{try{return t.matches(e)}catch(t){return!1}})}function p(t){let e=g(),n=c(t)?w(t):t;return["transform","translate","scale","rotate","perspective"].some(t=>!!n[t]&&"none"!==n[t])||!!n.containerType&&"normal"!==n.containerType||!e&&!!n.backdropFilter&&"none"!==n.backdropFilter||!e&&!!n.filter&&"none"!==n.filter||["transform","translate","scale","rotate","perspective","filter"].some(t=>(n.willChange||"").includes(t))||["paint","layout","strict","content"].some(t=>(n.contain||"").includes(t))}function m(t){let e=y(t);for(;f(e)&&!v(e);){if(p(e))return e;if(h(e))break;e=y(e)}return null}function g(){return"undefined"!=typeof CSS&&!!CSS.supports&&CSS.supports("-webkit-backdrop-filter","none")}function v(t){return["html","body","#document"].includes(o(t))}function w(t){return r(t).getComputedStyle(t)}function x(t){return c(t)?{scrollLeft:t.scrollLeft,scrollTop:t.scrollTop}:{scrollLeft:t.scrollX,scrollTop:t.scrollY}}function y(t){if("html"===o(t))return t;let e=t.assignedSlot||t.parentNode||u(t)&&t.host||l(t);return u(e)?e.host:e}function b(t){return t.parent&&Object.getPrototypeOf(t.parent)?t.frameElement:null}n.d(e,{$4:()=>y,CP:()=>x,L9:()=>w,Lv:()=>d,Tc:()=>g,Tf:()=>h,ZU:()=>s,_m:()=>b,ep:()=>l,eu:()=>v,gJ:()=>m,mq:()=>o,sQ:()=>p,sb:()=>f,v9:()=>function t(e,n,i){var o;void 0===n&&(n=[]),void 0===i&&(i=!0);let l=function t(e){let n=y(e);return v(n)?e.ownerDocument?e.ownerDocument.body:e.body:f(n)&&s(n)?n:t(n)}(e),a=l===(null==(o=e.ownerDocument)?void 0:o.body),c=r(l);if(a){let e=b(c);return n.concat(c,c.visualViewport||[],s(l)?l:[],e&&i?t(e):[])}return n.concat(l,t(l,[],i))},vq:()=>c,zk:()=>r})}}]);