@payloadcms/ui 3.0.0-beta.50 → 3.0.0-beta.52
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/elements/Table/DefaultCell/fields/index.d.ts +4 -4
- package/dist/exports/client/{CodeEditor-LQX4VBTA.js → CodeEditor-UTZFZWZG.js} +14 -2
- package/dist/exports/client/{CodeEditor-LQX4VBTA.js.map → CodeEditor-UTZFZWZG.js.map} +2 -1
- package/dist/exports/client/DatePicker-CBQPW5J5.js +30 -0
- package/dist/exports/client/{DatePicker-AXHBRRH5.js.map → DatePicker-CBQPW5J5.js.map} +2 -1
- package/dist/exports/client/{chunk-S57FL4TE.js → chunk-5LKBKI4T.js} +13 -1
- package/dist/exports/client/{chunk-S57FL4TE.js.map → chunk-5LKBKI4T.js.map} +1 -0
- package/dist/exports/client/{chunk-3YOZFV77.js → chunk-DODCWLCH.js} +14 -2
- package/dist/exports/client/{chunk-3YOZFV77.js.map → chunk-DODCWLCH.js.map} +2 -1
- package/dist/exports/client/{chunk-TLG7P5PN.js → chunk-QJ5EJH4V.js} +13 -1
- package/dist/exports/client/{chunk-TLG7P5PN.js.map → chunk-QJ5EJH4V.js.map} +2 -1
- package/dist/exports/client/index.js +18 -6
- package/dist/exports/client/index.js.map +4 -3
- package/dist/fields/Array/index.d.ts +1 -2
- package/dist/fields/Array/index.d.ts.map +1 -1
- package/dist/fields/Array/index.js +2 -3
- package/dist/fields/Array/index.js.map +1 -1
- package/dist/fields/Blocks/index.d.ts +2 -3
- package/dist/fields/Blocks/index.d.ts.map +1 -1
- package/dist/fields/Blocks/index.js +5 -5
- package/dist/fields/Blocks/index.js.map +1 -1
- package/dist/fields/Collapsible/index.d.ts +0 -2
- package/dist/fields/Collapsible/index.d.ts.map +1 -1
- package/dist/fields/Collapsible/index.js.map +1 -1
- package/dist/fields/Group/index.d.ts +0 -2
- package/dist/fields/Group/index.d.ts.map +1 -1
- package/dist/fields/Group/index.js.map +1 -1
- package/dist/fields/Tabs/index.d.ts +0 -2
- package/dist/fields/Tabs/index.d.ts.map +1 -1
- package/dist/fields/Tabs/index.js +2 -2
- package/dist/fields/Tabs/index.js.map +1 -1
- package/package.json +5 -5
- package/dist/exports/client/DatePicker-AXHBRRH5.js +0 -18
|
@@ -1,2 +1,14 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
// Workaround for react-datepicker and other cjs dependencies potentially inserting require("react") statements
|
|
3
|
+
import * as requireReact from 'react';
|
|
4
|
+
import * as requireReactDom from 'react-dom';
|
|
5
|
+
|
|
6
|
+
function require(m) {
|
|
7
|
+
if (m === 'react') return requireReact;
|
|
8
|
+
if (m === 'react-dom') return requireReactDom;
|
|
9
|
+
throw new Error(`Unknown module ${m}`);
|
|
10
|
+
}
|
|
11
|
+
// Workaround end
|
|
12
|
+
|
|
1
13
|
var h=Object.create;var e=Object.defineProperty;var i=Object.getOwnPropertyDescriptor;var j=Object.getOwnPropertyNames;var k=Object.getPrototypeOf,l=Object.prototype.hasOwnProperty;var m=(a=>typeof require<"u"?require:typeof Proxy<"u"?new Proxy(a,{get:(b,c)=>(typeof require<"u"?require:b)[c]}):a)(function(a){if(typeof require<"u")return require.apply(this,arguments);throw Error('Dynamic require of "'+a+'" is not supported')});var n=(a,b)=>()=>(a&&(b=a(a=0)),b);var o=(a,b)=>()=>(b||a((b={exports:{}}).exports,b),b.exports),p=(a,b)=>{for(var c in b)e(a,c,{get:b[c],enumerable:!0})},g=(a,b,c,f)=>{if(b&&typeof b=="object"||typeof b=="function")for(let d of j(b))!l.call(a,d)&&d!==c&&e(a,d,{get:()=>b[d],enumerable:!(f=i(b,d))||f.enumerable});return a};var q=(a,b,c)=>(c=a!=null?h(k(a)):{},g(b||!a||!a.__esModule?e(c,"default",{value:a,enumerable:!0}):c,a)),r=a=>g(e({},"__esModule",{value:!0}),a);export{m as a,n as b,o as c,p as d,q as e,r as f};
|
|
2
|
-
//# sourceMappingURL=chunk-
|
|
14
|
+
//# sourceMappingURL=chunk-5LKBKI4T.js.map
|
|
@@ -1,2 +1,14 @@
|
|
|
1
|
-
import{b as lt,c as vt}from"./chunk-S57FL4TE.js";var zt=vt((wo,jt)=>{"use strict";var an="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED";jt.exports=an});var $t=vt((xo,It)=>{"use strict";var cn=zt();function _t(){}function Ht(){}Ht.resetWarningCache=_t;It.exports=function(){function t(o,i,r,s,a,c){if(c!==cn){var l=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw l.name="Invariant Violation",l}}t.isRequired=t;function e(){return t}var n={array:t,bigint:t,bool:t,func:t,number:t,object:t,string:t,symbol:t,any:t,arrayOf:e,element:t,elementType:t,instanceOf:e,node:t,objectOf:e,oneOf:e,oneOfType:e,shape:e,exact:e,checkPropTypes:Ht,resetWarningCache:_t};return n.PropTypes=n,n}});var ln=vt((Co,qt)=>{qt.exports=$t()();var vo,bo});function $(t){return Kt(t)?(t.nodeName||"").toLowerCase():"#document"}function k(t){var e;return(t==null||(e=t.ownerDocument)==null?void 0:e.defaultView)||window}function H(t){var e;return(e=(Kt(t)?t.ownerDocument:t.document)||window.document)==null?void 0:e.documentElement}function Kt(t){return t instanceof Node||t instanceof k(t).Node}function I(t){return t instanceof Element||t instanceof k(t).Element}function _(t){return t instanceof HTMLElement||t instanceof k(t).HTMLElement}function Xt(t){return typeof ShadowRoot>"u"?!1:t instanceof ShadowRoot||t instanceof k(t).ShadowRoot}function tt(t){let{overflow:e,overflowX:n,overflowY:o,display:i}=D(t);return/auto|scroll|overlay|hidden|clip/.test(e+o+n)&&!["inline","contents"].includes(i)}function Yt(t){return["table","td","th"].includes($(t))}function ut(t){let e=dt(),n=D(t);return n.transform!=="none"||n.perspective!=="none"||(n.containerType?n.containerType!=="normal":!1)||!e&&(n.backdropFilter?n.backdropFilter!=="none":!1)||!e&&(n.filter?n.filter!=="none":!1)||["transform","perspective","filter"].some(o=>(n.willChange||"").includes(o))||["paint","layout","strict","content"].some(o=>(n.contain||"").includes(o))}function Jt(t){let e=Y(t);for(;_(e)&&!ot(e);){if(ut(e))return e;e=Y(e)}return null}function dt(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}function ot(t){return["html","body","#document"].includes($(t))}function D(t){return k(t).getComputedStyle(t)}function it(t){return I(t)?{scrollLeft:t.scrollLeft,scrollTop:t.scrollTop}:{scrollLeft:t.pageXOffset,scrollTop:t.pageYOffset}}function Y(t){if($(t)==="html")return t;let e=t.assignedSlot||t.parentNode||Xt(t)&&t.host||H(t);return Xt(e)?e.host:e}function Ut(t){let e=Y(t);return ot(e)?t.ownerDocument?t.ownerDocument.body:t.body:_(e)&&tt(e)?e:Ut(e)}function J(t,e,n){var o;e===void 0&&(e=[]),n===void 0&&(n=!0);let i=Ut(t),r=i===((o=t.ownerDocument)==null?void 0:o.body),s=k(i);return r?e.concat(s,s.visualViewport||[],tt(i)?i:[],s.frameElement&&n?J(s.frameElement):[]):e.concat(i,J(i,[],n))}var Ct=lt(()=>{});function mt(t,e,n){return T(t,N(e,n))}function B(t,e){return typeof t=="function"?t(e):t}function E(t){return t.split("-")[0]}function V(t){return t.split("-")[1]}function ht(t){return t==="x"?"y":"x"}function gt(t){return t==="y"?"height":"width"}function K(t){return["top","bottom"].includes(E(t))?"y":"x"}function pt(t){return ht(K(t))}function Tt(t,e,n){n===void 0&&(n=!1);let o=V(t),i=pt(t),r=gt(i),s=i==="x"?o===(n?"end":"start")?"right":"left":o==="start"?"bottom":"top";return e.reference[r]>e.floating[r]&&(s=st(s)),[s,st(s)]}function Gt(t){let e=st(t);return[rt(t),e,rt(e)]}function rt(t){return t.replace(/start|end/g,e=>un[e])}function dn(t,e,n){let o=["left","right"],i=["right","left"],r=["top","bottom"],s=["bottom","top"];switch(t){case"top":case"bottom":return n?e?i:o:e?o:i;case"left":case"right":return e?r:s;default:return[]}}function Zt(t,e,n,o){let i=V(t),r=dn(E(t),n==="start",o);return i&&(r=r.map(s=>s+"-"+i),e&&(r=r.concat(r.map(rt)))),r}function st(t){return t.replace(/left|right|bottom|top/g,e=>fn[e])}function mn(t){return{top:0,right:0,bottom:0,left:0,...t}}function yt(t){return typeof t!="number"?mn(t):{top:t,right:t,bottom:t,left:t}}function X(t){return{...t,top:t.y,left:t.x,right:t.x+t.width,bottom:t.y+t.height}}var At,Qt,Pt,N,T,at,ct,q,fn,un,wt=lt(()=>{At=["top","right","bottom","left"],Qt=["start","end"],Pt=At.reduce((t,e)=>t.concat(e,e+"-"+Qt[0],e+"-"+Qt[1]),[]),N=Math.min,T=Math.max,at=Math.round,ct=Math.floor,q=t=>({x:t,y:t}),fn={left:"right",right:"left",bottom:"top",top:"bottom"},un={start:"end",end:"start"}});function te(t,e,n){let{reference:o,floating:i}=t,r=K(e),s=pt(e),a=gt(s),c=E(e),l=r==="y",d=o.x+o.width/2-i.width/2,f=o.y+o.height/2-i.height/2,m=o[a]/2-i[a]/2,u;switch(c){case"top":u={x:d,y:o.y-i.height};break;case"bottom":u={x:d,y:o.y+o.height};break;case"right":u={x:o.x+o.width,y:f};break;case"left":u={x:o.x-i.width,y:f};break;default:u={x:o.x,y:o.y}}switch(V(e)){case"start":u[s]-=m*(n&&l?-1:1);break;case"end":u[s]+=m*(n&&l?-1:1);break}return u}async function U(t,e){var n;e===void 0&&(e={});let{x:o,y:i,platform:r,rects:s,elements:a,strategy:c}=t,{boundary:l="clippingAncestors",rootBoundary:d="viewport",elementContext:f="floating",altBoundary:m=!1,padding:u=0}=B(e,t),h=yt(u),p=a[m?f==="floating"?"reference":"floating":f],y=X(await r.getClippingRect({element:(n=await(r.isElement==null?void 0:r.isElement(p)))==null||n?p:p.contextElement||await(r.getDocumentElement==null?void 0:r.getDocumentElement(a.floating)),boundary:l,rootBoundary:d,strategy:c})),w=f==="floating"?{...s.floating,x:o,y:i}:s.reference,x=await(r.getOffsetParent==null?void 0:r.getOffsetParent(a.floating)),b=await(r.isElement==null?void 0:r.isElement(x))?await(r.getScale==null?void 0:r.getScale(x))||{x:1,y:1}:{x:1,y:1},v=X(r.convertOffsetParentRelativeRectToViewportRelativeRect?await r.convertOffsetParentRelativeRectToViewportRelativeRect({elements:a,rect:w,offsetParent:x,strategy:c}):w);return{top:(y.top-v.top+h.top)/b.y,bottom:(v.bottom-y.bottom+h.bottom)/b.y,left:(y.left-v.left+h.left)/b.x,right:(v.right-y.right+h.right)/b.x}}function hn(t,e,n){return(t?[...n.filter(i=>V(i)===t),...n.filter(i=>V(i)!==t)]:n.filter(i=>E(i)===i)).filter(i=>t?V(i)===t||(e?rt(i)!==i:!1):!0)}function ee(t,e){return{top:t.top-e.height,right:t.right-e.width,bottom:t.bottom-e.height,left:t.left-e.width}}function ne(t){return At.some(e=>t[e]>=0)}function ce(t){let e=N(...t.map(r=>r.left)),n=N(...t.map(r=>r.top)),o=T(...t.map(r=>r.right)),i=T(...t.map(r=>r.bottom));return{x:e,y:n,width:o-e,height:i-n}}function gn(t){let e=t.slice().sort((i,r)=>i.y-r.y),n=[],o=null;for(let i=0;i<e.length;i++){let r=e[i];!o||r.y-o.y>o.height/2?n.push([r]):n[n.length-1].push(r),o=r}return n.map(i=>X(ce(i)))}async function pn(t,e){let{placement:n,platform:o,elements:i}=t,r=await(o.isRTL==null?void 0:o.isRTL(i.floating)),s=E(n),a=V(n),c=K(n)==="y",l=["left","top"].includes(s)?-1:1,d=r&&c?-1:1,f=B(e,t),{mainAxis:m,crossAxis:u,alignmentAxis:h}=typeof f=="number"?{mainAxis:f,crossAxis:0,alignmentAxis:null}:{mainAxis:0,crossAxis:0,alignmentAxis:null,...f};return a&&typeof h=="number"&&(u=a==="end"?h*-1:h),c?{x:u*d,y:m*l}:{x:m*l,y:u*d}}var oe,ie,re,se,ae,le,yn,fe,ue,de,Ot=lt(()=>{wt();wt();oe=async(t,e,n)=>{let{placement:o="bottom",strategy:i="absolute",middleware:r=[],platform:s}=n,a=r.filter(Boolean),c=await(s.isRTL==null?void 0:s.isRTL(e)),l=await s.getElementRects({reference:t,floating:e,strategy:i}),{x:d,y:f}=te(l,o,c),m=o,u={},h=0;for(let g=0;g<a.length;g++){let{name:p,fn:y}=a[g],{x:w,y:x,data:b,reset:v}=await y({x:d,y:f,initialPlacement:o,placement:m,strategy:i,middlewareData:u,rects:l,platform:s,elements:{reference:t,floating:e}});d=w??d,f=x??f,u={...u,[p]:{...u[p],...b}},v&&h<=50&&(h++,typeof v=="object"&&(v.placement&&(m=v.placement),v.rects&&(l=v.rects===!0?await s.getElementRects({reference:t,floating:e,strategy:i}):v.rects),{x:d,y:f}=te(l,m,c)),g=-1)}return{x:d,y:f,placement:m,strategy:i,middlewareData:u}};ie=t=>({name:"arrow",options:t,async fn(e){let{x:n,y:o,placement:i,rects:r,platform:s,elements:a,middlewareData:c}=e,{element:l,padding:d=0}=B(t,e)||{};if(l==null)return{};let f=yt(d),m={x:n,y:o},u=pt(i),h=gt(u),g=await s.getDimensions(l),p=u==="y",y=p?"top":"left",w=p?"bottom":"right",x=p?"clientHeight":"clientWidth",b=r.reference[h]+r.reference[u]-m[u]-r.floating[h],v=m[u]-r.reference[u],C=await(s.getOffsetParent==null?void 0:s.getOffsetParent(l)),P=C?C[x]:0;(!P||!await(s.isElement==null?void 0:s.isElement(C)))&&(P=a.floating[x]||r.floating[h]);let M=b/2-v/2,F=P/2-g[h]/2-1,A=N(f[y],F),S=N(f[w],F),O=A,j=P-g[h]-S,R=P/2-g[h]/2+M,L=mt(O,R,j),W=!c.arrow&&V(i)!=null&&R!==L&&r.reference[h]/2-(R<O?A:S)-g[h]/2<0,z=W?R<O?R-O:R-j:0;return{[u]:m[u]+z,data:{[u]:L,centerOffset:R-L-z,...W&&{alignmentOffset:z}},reset:W}}});re=function(t){return t===void 0&&(t={}),{name:"autoPlacement",options:t,async fn(e){var n,o,i;let{rects:r,middlewareData:s,placement:a,platform:c,elements:l}=e,{crossAxis:d=!1,alignment:f,allowedPlacements:m=Pt,autoAlignment:u=!0,...h}=B(t,e),g=f!==void 0||m===Pt?hn(f||null,u,m):m,p=await U(e,h),y=((n=s.autoPlacement)==null?void 0:n.index)||0,w=g[y];if(w==null)return{};let x=Tt(w,r,await(c.isRTL==null?void 0:c.isRTL(l.floating)));if(a!==w)return{reset:{placement:g[0]}};let b=[p[E(w)],p[x[0]],p[x[1]]],v=[...((o=s.autoPlacement)==null?void 0:o.overflows)||[],{placement:w,overflows:b}],C=g[y+1];if(C)return{data:{index:y+1,overflows:v},reset:{placement:C}};let P=v.map(A=>{let S=V(A.placement);return[A.placement,S&&d?A.overflows.slice(0,2).reduce((O,j)=>O+j,0):A.overflows[0],A.overflows]}).sort((A,S)=>A[1]-S[1]),F=((i=P.filter(A=>A[2].slice(0,V(A[0])?2:3).every(S=>S<=0))[0])==null?void 0:i[0])||P[0][0];return F!==a?{data:{index:y+1,overflows:v},reset:{placement:F}}:{}}}},se=function(t){return t===void 0&&(t={}),{name:"flip",options:t,async fn(e){var n,o;let{placement:i,middlewareData:r,rects:s,initialPlacement:a,platform:c,elements:l}=e,{mainAxis:d=!0,crossAxis:f=!0,fallbackPlacements:m,fallbackStrategy:u="bestFit",fallbackAxisSideDirection:h="none",flipAlignment:g=!0,...p}=B(t,e);if((n=r.arrow)!=null&&n.alignmentOffset)return{};let y=E(i),w=E(a)===a,x=await(c.isRTL==null?void 0:c.isRTL(l.floating)),b=m||(w||!g?[st(a)]:Gt(a));!m&&h!=="none"&&b.push(...Zt(a,g,h,x));let v=[a,...b],C=await U(e,p),P=[],M=((o=r.flip)==null?void 0:o.overflows)||[];if(d&&P.push(C[y]),f){let O=Tt(i,s,x);P.push(C[O[0]],C[O[1]])}if(M=[...M,{placement:i,overflows:P}],!P.every(O=>O<=0)){var F,A;let O=(((F=r.flip)==null?void 0:F.index)||0)+1,j=v[O];if(j)return{data:{index:O,overflows:M},reset:{placement:j}};let R=(A=M.filter(L=>L.overflows[0]<=0).sort((L,W)=>L.overflows[1]-W.overflows[1])[0])==null?void 0:A.placement;if(!R)switch(u){case"bestFit":{var S;let L=(S=M.map(W=>[W.placement,W.overflows.filter(z=>z>0).reduce((z,xt)=>z+xt,0)]).sort((W,z)=>W[1]-z[1])[0])==null?void 0:S[0];L&&(R=L);break}case"initialPlacement":R=a;break}if(i!==R)return{reset:{placement:R}}}return{}}}};ae=function(t){return t===void 0&&(t={}),{name:"hide",options:t,async fn(e){let{rects:n}=e,{strategy:o="referenceHidden",...i}=B(t,e);switch(o){case"referenceHidden":{let r=await U(e,{...i,elementContext:"reference"}),s=ee(r,n.reference);return{data:{referenceHiddenOffsets:s,referenceHidden:ne(s)}}}case"escaped":{let r=await U(e,{...i,altBoundary:!0}),s=ee(r,n.floating);return{data:{escapedOffsets:s,escaped:ne(s)}}}default:return{}}}}};le=function(t){return t===void 0&&(t={}),{name:"inline",options:t,async fn(e){let{placement:n,elements:o,rects:i,platform:r,strategy:s}=e,{padding:a=2,x:c,y:l}=B(t,e),d=Array.from(await(r.getClientRects==null?void 0:r.getClientRects(o.reference))||[]),f=gn(d),m=X(ce(d)),u=yt(a);function h(){if(f.length===2&&f[0].left>f[1].right&&c!=null&&l!=null)return f.find(p=>c>p.left-u.left&&c<p.right+u.right&&l>p.top-u.top&&l<p.bottom+u.bottom)||m;if(f.length>=2){if(K(n)==="y"){let A=f[0],S=f[f.length-1],O=E(n)==="top",j=A.top,R=S.bottom,L=O?A.left:S.left,W=O?A.right:S.right,z=W-L,xt=R-j;return{top:j,bottom:R,left:L,right:W,width:z,height:xt,x:L,y:j}}let p=E(n)==="left",y=T(...f.map(A=>A.right)),w=N(...f.map(A=>A.left)),x=f.filter(A=>p?A.left===w:A.right===y),b=x[0].top,v=x[x.length-1].bottom,C=w,P=y,M=P-C,F=v-b;return{top:b,bottom:v,left:C,right:P,width:M,height:F,x:C,y:b}}return m}let g=await r.getElementRects({reference:{getBoundingClientRect:h},floating:o.floating,strategy:s});return i.reference.x!==g.reference.x||i.reference.y!==g.reference.y||i.reference.width!==g.reference.width||i.reference.height!==g.reference.height?{reset:{rects:g}}:{}}}};yn=function(t){return t===void 0&&(t=0),{name:"offset",options:t,async fn(e){var n,o;let{x:i,y:r,placement:s,middlewareData:a}=e,c=await pn(e,t);return s===((n=a.offset)==null?void 0:n.placement)&&(o=a.arrow)!=null&&o.alignmentOffset?{}:{x:i+c.x,y:r+c.y,data:{...c,placement:s}}}}},fe=function(t){return t===void 0&&(t={}),{name:"shift",options:t,async fn(e){let{x:n,y:o,placement:i}=e,{mainAxis:r=!0,crossAxis:s=!1,limiter:a={fn:p=>{let{x:y,y:w}=p;return{x:y,y:w}}},...c}=B(t,e),l={x:n,y:o},d=await U(e,c),f=K(E(i)),m=ht(f),u=l[m],h=l[f];if(r){let p=m==="y"?"top":"left",y=m==="y"?"bottom":"right",w=u+d[p],x=u-d[y];u=mt(w,u,x)}if(s){let p=f==="y"?"top":"left",y=f==="y"?"bottom":"right",w=h+d[p],x=h-d[y];h=mt(w,h,x)}let g=a.fn({...e,[m]:u,[f]:h});return{...g,data:{x:g.x-n,y:g.y-o}}}}},ue=function(t){return t===void 0&&(t={}),{options:t,fn(e){let{x:n,y:o,placement:i,rects:r,middlewareData:s}=e,{offset:a=0,mainAxis:c=!0,crossAxis:l=!0}=B(t,e),d={x:n,y:o},f=K(i),m=ht(f),u=d[m],h=d[f],g=B(a,e),p=typeof g=="number"?{mainAxis:g,crossAxis:0}:{mainAxis:0,crossAxis:0,...g};if(c){let x=m==="y"?"height":"width",b=r.reference[m]-r.floating[x]+p.mainAxis,v=r.reference[m]+r.reference[x]-p.mainAxis;u<b?u=b:u>v&&(u=v)}if(l){var y,w;let x=m==="y"?"width":"height",b=["top","left"].includes(E(i)),v=r.reference[f]-r.floating[x]+(b&&((y=s.offset)==null?void 0:y[f])||0)+(b?0:p.crossAxis),C=r.reference[f]+r.reference[x]+(b?0:((w=s.offset)==null?void 0:w[f])||0)-(b?p.crossAxis:0);h<v?h=v:h>C&&(h=C)}return{[m]:u,[f]:h}}}},de=function(t){return t===void 0&&(t={}),{name:"size",options:t,async fn(e){let{placement:n,rects:o,platform:i,elements:r}=e,{apply:s=()=>{},...a}=B(t,e),c=await U(e,a),l=E(n),d=V(n),f=K(n)==="y",{width:m,height:u}=o.floating,h,g;l==="top"||l==="bottom"?(h=l,g=d===(await(i.isRTL==null?void 0:i.isRTL(r.floating))?"start":"end")?"left":"right"):(g=l,h=d==="end"?"top":"bottom");let p=u-c[h],y=m-c[g],w=!e.middlewareData.shift,x=p,b=y;if(f){let C=m-c.left-c.right;b=d||w?N(y,C):C}else{let C=u-c.top-c.bottom;x=d||w?N(p,C):C}if(w&&!d){let C=T(c.left,0),P=T(c.right,0),M=T(c.top,0),F=T(c.bottom,0);f?b=m-2*(C!==0||P!==0?C+P:T(c.left,c.right)):x=u-2*(M!==0||F!==0?M+F:T(c.top,c.bottom))}await s({...e,availableWidth:b,availableHeight:x});let v=await i.getDimensions(r.floating);return m!==v.width||u!==v.height?{reset:{rects:!0}}:{}}}}});function ge(t){let e=D(t),n=parseFloat(e.width)||0,o=parseFloat(e.height)||0,i=_(t),r=i?t.offsetWidth:n,s=i?t.offsetHeight:o,a=at(n)!==r||at(o)!==s;return a&&(n=r,o=s),{width:n,height:o,$:a}}function Rt(t){return I(t)?t:t.contextElement}function et(t){let e=Rt(t);if(!_(e))return q(1);let n=e.getBoundingClientRect(),{width:o,height:i,$:r}=ge(e),s=(r?at(n.width):n.width)/o,a=(r?at(n.height):n.height)/i;return(!s||!Number.isFinite(s))&&(s=1),(!a||!Number.isFinite(a))&&(a=1),{x:s,y:a}}function pe(t){let e=k(t);return!dt()||!e.visualViewport?wn:{x:e.visualViewport.offsetLeft,y:e.visualViewport.offsetTop}}function xn(t,e,n){return e===void 0&&(e=!1),!n||e&&n!==k(t)?!1:e}function Q(t,e,n,o){e===void 0&&(e=!1),n===void 0&&(n=!1);let i=t.getBoundingClientRect(),r=Rt(t),s=q(1);e&&(o?I(o)&&(s=et(o)):s=et(t));let a=xn(r,n,o)?pe(r):q(0),c=(i.left+a.x)/s.x,l=(i.top+a.y)/s.y,d=i.width/s.x,f=i.height/s.y;if(r){let m=k(r),u=o&&I(o)?k(o):o,h=m,g=h.frameElement;for(;g&&o&&u!==h;){let p=et(g),y=g.getBoundingClientRect(),w=D(g),x=y.left+(g.clientLeft+parseFloat(w.paddingLeft))*p.x,b=y.top+(g.clientTop+parseFloat(w.paddingTop))*p.y;c*=p.x,l*=p.y,d*=p.x,f*=p.y,c+=x,l+=b,h=k(g),g=h.frameElement}}return X({width:d,height:f,x:c,y:l})}function ye(t){return vn.some(e=>{try{return t.matches(e)}catch{return!1}})}function bn(t){let{elements:e,rect:n,offsetParent:o,strategy:i}=t,r=i==="fixed",s=H(o),a=e?ye(e.floating):!1;if(o===s||a&&r)return n;let c={scrollLeft:0,scrollTop:0},l=q(1),d=q(0),f=_(o);if((f||!f&&!r)&&(($(o)!=="body"||tt(s))&&(c=it(o)),_(o))){let m=Q(o);l=et(o),d.x=m.x+o.clientLeft,d.y=m.y+o.clientTop}return{width:n.width*l.x,height:n.height*l.y,x:n.x*l.x-c.scrollLeft*l.x+d.x,y:n.y*l.y-c.scrollTop*l.y+d.y}}function Cn(t){return Array.from(t.getClientRects())}function we(t){return Q(H(t)).left+it(t).scrollLeft}function An(t){let e=H(t),n=it(t),o=t.ownerDocument.body,i=T(e.scrollWidth,e.clientWidth,o.scrollWidth,o.clientWidth),r=T(e.scrollHeight,e.clientHeight,o.scrollHeight,o.clientHeight),s=-n.scrollLeft+we(t),a=-n.scrollTop;return D(o).direction==="rtl"&&(s+=T(e.clientWidth,o.clientWidth)-i),{width:i,height:r,x:s,y:a}}function Pn(t,e){let n=k(t),o=H(t),i=n.visualViewport,r=o.clientWidth,s=o.clientHeight,a=0,c=0;if(i){r=i.width,s=i.height;let l=dt();(!l||l&&e==="fixed")&&(a=i.offsetLeft,c=i.offsetTop)}return{width:r,height:s,x:a,y:c}}function Tn(t,e){let n=Q(t,!0,e==="fixed"),o=n.top+t.clientTop,i=n.left+t.clientLeft,r=_(t)?et(t):q(1),s=t.clientWidth*r.x,a=t.clientHeight*r.y,c=i*r.x,l=o*r.y;return{width:s,height:a,x:c,y:l}}function me(t,e,n){let o;if(e==="viewport")o=Pn(t,n);else if(e==="document")o=An(H(t));else if(I(e))o=Tn(e,n);else{let i=pe(t);o={...e,x:e.x-i.x,y:e.y-i.y}}return X(o)}function xe(t,e){let n=Y(t);return n===e||!I(n)||ot(n)?!1:D(n).position==="fixed"||xe(n,e)}function On(t,e){let n=e.get(t);if(n)return n;let o=J(t,[],!1).filter(a=>I(a)&&$(a)!=="body"),i=null,r=D(t).position==="fixed",s=r?Y(t):t;for(;I(s)&&!ot(s);){let a=D(s),c=ut(s);!c&&a.position==="fixed"&&(i=null),(r?!c&&!i:!c&&a.position==="static"&&!!i&&["absolute","fixed"].includes(i.position)||tt(s)&&!c&&xe(t,s))?o=o.filter(d=>d!==s):i=a,s=Y(s)}return e.set(t,o),o}function Rn(t){let{element:e,boundary:n,rootBoundary:o,strategy:i}=t,s=[...n==="clippingAncestors"?On(e,this._c):[].concat(n),o],a=s[0],c=s.reduce((l,d)=>{let f=me(e,d,i);return l.top=T(f.top,l.top),l.right=N(f.right,l.right),l.bottom=N(f.bottom,l.bottom),l.left=T(f.left,l.left),l},me(e,a,i));return{width:c.right-c.left,height:c.bottom-c.top,x:c.left,y:c.top}}function Sn(t){let{width:e,height:n}=ge(t);return{width:e,height:n}}function Ln(t,e,n){let o=_(e),i=H(e),r=n==="fixed",s=Q(t,!0,r,e),a={scrollLeft:0,scrollTop:0},c=q(0);if(o||!o&&!r)if(($(e)!=="body"||tt(i))&&(a=it(e)),o){let f=Q(e,!0,r,e);c.x=f.x+e.clientLeft,c.y=f.y+e.clientTop}else i&&(c.x=we(i));let l=s.left+a.scrollLeft-c.x,d=s.top+a.scrollTop-c.y;return{x:l,y:d,width:s.width,height:s.height}}function he(t,e){return!_(t)||D(t).position==="fixed"?null:e?e(t):t.offsetParent}function ve(t,e){let n=k(t);if(!_(t)||ye(t))return n;let o=he(t,e);for(;o&&Yt(o)&&D(o).position==="static";)o=he(o,e);return o&&($(o)==="html"||$(o)==="body"&&D(o).position==="static"&&!ut(o))?n:o||Jt(t)||n}function En(t){return D(t).direction==="rtl"}function Fn(t,e){let n=null,o,i=H(t);function r(){var a;clearTimeout(o),(a=n)==null||a.disconnect(),n=null}function s(a,c){a===void 0&&(a=!1),c===void 0&&(c=1),r();let{left:l,top:d,width:f,height:m}=t.getBoundingClientRect();if(a||e(),!f||!m)return;let u=ct(d),h=ct(i.clientWidth-(l+f)),g=ct(i.clientHeight-(d+m)),p=ct(l),w={rootMargin:-u+"px "+-h+"px "+-g+"px "+-p+"px",threshold:T(0,N(1,c))||1},x=!0;function b(v){let C=v[0].intersectionRatio;if(C!==c){if(!x)return s();C?s(!1,C):o=setTimeout(()=>{s(!1,1e-7)},100)}x=!1}try{n=new IntersectionObserver(b,{...w,root:i.ownerDocument})}catch{n=new IntersectionObserver(b,w)}n.observe(t)}return s(!0),r}function Eo(t,e,n,o){o===void 0&&(o={});let{ancestorScroll:i=!0,ancestorResize:r=!0,elementResize:s=typeof ResizeObserver=="function",layoutShift:a=typeof IntersectionObserver=="function",animationFrame:c=!1}=o,l=Rt(t),d=i||r?[...l?J(l):[],...J(e)]:[];d.forEach(y=>{i&&y.addEventListener("scroll",n,{passive:!0}),r&&y.addEventListener("resize",n)});let f=l&&a?Fn(l,n):null,m=-1,u=null;s&&(u=new ResizeObserver(y=>{let[w]=y;w&&w.target===l&&u&&(u.unobserve(e),cancelAnimationFrame(m),m=requestAnimationFrame(()=>{var x;(x=u)==null||x.observe(e)})),n()}),l&&!c&&u.observe(l),u.observe(e));let h,g=c?Q(t):null;c&&p();function p(){let y=Q(t);g&&(y.x!==g.x||y.y!==g.y||y.width!==g.width||y.height!==g.height)&&n(),g=y,h=requestAnimationFrame(p)}return n(),()=>{var y;d.forEach(w=>{i&&w.removeEventListener("scroll",n),r&&w.removeEventListener("resize",n)}),f?.(),(y=u)==null||y.disconnect(),u=null,c&&cancelAnimationFrame(h)}}var wn,vn,kn,Mn,Mo,Fo,Wo,Do,No,Bo,Vo,jo,zo,Wn=lt(()=>{Ot();Ot();wt();Ct();Ct();wn=q(0);vn=[":popover-open",":modal"];kn=async function(t){let e=this.getOffsetParent||ve,n=this.getDimensions;return{reference:Ln(t.reference,await e(t.floating),t.strategy),floating:{x:0,y:0,...await n(t.floating)}}};Mn={convertOffsetParentRelativeRectToViewportRelativeRect:bn,getDocumentElement:H,getClippingRect:Rn,getOffsetParent:ve,getElementRects:kn,getClientRects:Cn,getDimensions:Sn,getScale:et,isElement:I,isRTL:En};Mo=re,Fo=fe,Wo=se,Do=de,No=ae,Bo=ie,Vo=le,jo=ue,zo=(t,e,n)=>{let o=new Map,i={platform:Mn,...n},r={...i.platform,_c:o};return oe(t,e,{...i,platform:r})}});import bt from"react";var Nn=({className:t})=>bt.createElement("svg",{className:[t,"icon icon--x"].filter(Boolean).join(" "),height:"25",viewBox:"0 0 25 25",width:"25",xmlns:"http://www.w3.org/2000/svg"},bt.createElement("line",{className:"stroke",x1:"8.74612",x2:"16.3973",y1:"16.347",y2:"8.69584"}),bt.createElement("line",{className:"stroke",x1:"8.6027",x2:"16.2539",y1:"8.69585",y2:"16.3471"}));import{usePathname as be,useRouter as Ce}from"next/navigation.js";import Ae,{createContext as Pe,useCallback as Te,useContext as Oe,useEffect as Re}from"react";var St=Pe({clearRouteCache:()=>{}}),zn=({children:t})=>{let e=be(),n=Ce(),o=Te(()=>{n.refresh()},[n]);return Re(()=>{o()},[e,o]),Ae.createElement(St.Provider,{value:{clearRouteCache:o}},t)},Lt=()=>Oe(St);import{importDateFNSLocale as tn,t as en}from"@payloadcms/translations";var Se={lessThanXSeconds:{one:"less than a second",other:"less than {{count}} seconds"},xSeconds:{one:"1 second",other:"{{count}} seconds"},halfAMinute:"half a minute",lessThanXMinutes:{one:"less than a minute",other:"less than {{count}} minutes"},xMinutes:{one:"1 minute",other:"{{count}} minutes"},aboutXHours:{one:"about 1 hour",other:"about {{count}} hours"},xHours:{one:"1 hour",other:"{{count}} hours"},xDays:{one:"1 day",other:"{{count}} days"},aboutXWeeks:{one:"about 1 week",other:"about {{count}} weeks"},xWeeks:{one:"1 week",other:"{{count}} weeks"},aboutXMonths:{one:"about 1 month",other:"about {{count}} months"},xMonths:{one:"1 month",other:"{{count}} months"},aboutXYears:{one:"about 1 year",other:"about {{count}} years"},xYears:{one:"1 year",other:"{{count}} years"},overXYears:{one:"over 1 year",other:"over {{count}} years"},almostXYears:{one:"almost 1 year",other:"almost {{count}} years"}},kt=(t,e,n)=>{let o,i=Se[t];return typeof i=="string"?o=i:e===1?o=i.one:o=i.other.replace("{{count}}",e.toString()),n?.addSuffix?n.comparison&&n.comparison>0?"in "+o:o+" ago":o};function ft(t){return(e={})=>{let n=e.width?String(e.width):t.defaultWidth;return t.formats[n]||t.formats[t.defaultWidth]}}var Le={full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},ke={full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},Ee={full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},Et={date:ft({formats:Le,defaultWidth:"full"}),time:ft({formats:ke,defaultWidth:"full"}),dateTime:ft({formats:Ee,defaultWidth:"full"})};var Me={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"},Mt=(t,e,n,o)=>Me[t];function G(t){return(e,n)=>{let o=n?.context?String(n.context):"standalone",i;if(o==="formatting"&&t.formattingValues){let s=t.defaultFormattingWidth||t.defaultWidth,a=n?.width?String(n.width):s;i=t.formattingValues[a]||t.formattingValues[s]}else{let s=t.defaultWidth,a=n?.width?String(n.width):t.defaultWidth;i=t.values[a]||t.values[s]}let r=t.argumentCallback?t.argumentCallback(e):e;return i[r]}}var Fe={narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},We={narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},De={narrow:["J","F","M","A","M","J","J","A","S","O","N","D"],abbreviated:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],wide:["January","February","March","April","May","June","July","August","September","October","November","December"]},Ne={narrow:["S","M","T","W","T","F","S"],short:["Su","Mo","Tu","We","Th","Fr","Sa"],abbreviated:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],wide:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"]},Be={narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"}},Ve={narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"}},je=(t,e)=>{let n=Number(t),o=n%100;if(o>20||o<10)switch(o%10){case 1:return n+"st";case 2:return n+"nd";case 3:return n+"rd"}return n+"th"},Ft={ordinalNumber:je,era:G({values:Fe,defaultWidth:"wide"}),quarter:G({values:We,defaultWidth:"wide",argumentCallback:t=>t-1}),month:G({values:De,defaultWidth:"wide"}),day:G({values:Ne,defaultWidth:"wide"}),dayPeriod:G({values:Be,defaultWidth:"wide",formattingValues:Ve,defaultFormattingWidth:"wide"})};function Z(t){return(e,n={})=>{let o=n.width,i=o&&t.matchPatterns[o]||t.matchPatterns[t.defaultMatchWidth],r=e.match(i);if(!r)return null;let s=r[0],a=o&&t.parsePatterns[o]||t.parsePatterns[t.defaultParseWidth],c=Array.isArray(a)?_e(a,f=>f.test(s)):ze(a,f=>f.test(s)),l;l=t.valueCallback?t.valueCallback(c):c,l=n.valueCallback?n.valueCallback(l):l;let d=e.slice(s.length);return{value:l,rest:d}}}function ze(t,e){for(let n in t)if(Object.prototype.hasOwnProperty.call(t,n)&&e(t[n]))return n}function _e(t,e){for(let n=0;n<t.length;n++)if(e(t[n]))return n}function Wt(t){return(e,n={})=>{let o=e.match(t.matchPattern);if(!o)return null;let i=o[0],r=e.match(t.parsePattern);if(!r)return null;let s=t.valueCallback?t.valueCallback(r[0]):r[0];s=n.valueCallback?n.valueCallback(s):s;let a=e.slice(i.length);return{value:s,rest:a}}}var He=/^(\d+)(th|st|nd|rd)?/i,Ie=/\d+/i,$e={narrow:/^(b|a)/i,abbreviated:/^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i,wide:/^(before christ|before common era|anno domini|common era)/i},qe={any:[/^b/i,/^(a|c)/i]},Xe={narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},Ke={any:[/1/i,/2/i,/3/i,/4/i]},Ye={narrow:/^[jfmasond]/i,abbreviated:/^(jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec)/i,wide:/^(january|february|march|april|may|june|july|august|september|october|november|december)/i},Je={narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ja/i,/^f/i,/^mar/i,/^ap/i,/^may/i,/^jun/i,/^jul/i,/^au/i,/^s/i,/^o/i,/^n/i,/^d/i]},Ue={narrow:/^[smtwf]/i,short:/^(su|mo|tu|we|th|fr|sa)/i,abbreviated:/^(sun|mon|tue|wed|thu|fri|sat)/i,wide:/^(sunday|monday|tuesday|wednesday|thursday|friday|saturday)/i},Qe={narrow:[/^s/i,/^m/i,/^t/i,/^w/i,/^t/i,/^f/i,/^s/i],any:[/^su/i,/^m/i,/^tu/i,/^w/i,/^th/i,/^f/i,/^sa/i]},Ge={narrow:/^(a|p|mi|n|(in the|at) (morning|afternoon|evening|night))/i,any:/^([ap]\.?\s?m\.?|midnight|noon|(in the|at) (morning|afternoon|evening|night))/i},Ze={any:{am:/^a/i,pm:/^p/i,midnight:/^mi/i,noon:/^no/i,morning:/morning/i,afternoon:/afternoon/i,evening:/evening/i,night:/night/i}},Dt={ordinalNumber:Wt({matchPattern:He,parsePattern:Ie,valueCallback:t=>parseInt(t,10)}),era:Z({matchPatterns:$e,defaultMatchWidth:"wide",parsePatterns:qe,defaultParseWidth:"any"}),quarter:Z({matchPatterns:Xe,defaultMatchWidth:"wide",parsePatterns:Ke,defaultParseWidth:"any",valueCallback:t=>t+1}),month:Z({matchPatterns:Ye,defaultMatchWidth:"wide",parsePatterns:Je,defaultParseWidth:"any"}),day:Z({matchPatterns:Ue,defaultMatchWidth:"wide",parsePatterns:Qe,defaultParseWidth:"any"}),dayPeriod:Z({matchPatterns:Ge,defaultMatchWidth:"any",parsePatterns:Ze,defaultParseWidth:"any"})};var Nt={code:"en-US",formatDistance:kt,formatLong:Et,formatRelative:Mt,localize:Ft,match:Dt,options:{weekStartsOn:0,firstWeekContainsDate:1}};import Bt,{createContext as nn,useContext as on,useEffect as rn,useState as sn}from"react";var Vt=nn({i18n:{dateFNS:Nt,dateFNSKey:"en-US",fallbackLanguage:"en",language:"en",t:t=>t,translations:{}},languageOptions:void 0,switchLanguage:void 0,t:t=>{}}),uo=({children:t,dateFNSKey:e,fallbackLang:n,language:o,languageOptions:i,switchLanguageServerAction:r,translations:s})=>{let{clearRouteCache:a}=Lt(),[c,l]=sn(),d=(m,u)=>en({key:m,translations:s,vars:u}),f=Bt.useCallback(async m=>{try{await r(m),a()}catch(u){console.error(`Error loading language: "${m}"`,u)}},[r,a]);return rn(()=>{(async()=>{let u=await tn(e);l(u)})()},[e]),Bt.createElement(Vt.Provider,{value:{i18n:{dateFNS:c,dateFNSKey:e,fallbackLanguage:n,language:o,t:d,translations:s},languageOptions:i,switchLanguage:f,t:d}},t)},mo=()=>on(Vt);import nt from"react";var po=()=>nt.createElement("svg",{className:"icon icon--calendar",viewBox:"0 0 25 25",xmlns:"http://www.w3.org/2000/svg"},nt.createElement("rect",{className:"stroke",height:"14",width:"16",x:"4.5",y:"6.11401"}),nt.createElement("line",{className:"stroke",x1:"8.625",x2:"8.625",y1:"8.02026",y2:"3.70776"}),nt.createElement("line",{className:"stroke",x1:"16.375",x2:"16.375",y1:"8.02026",y2:"3.70776"}),nt.createElement("line",{className:"stroke",x1:"4.5",x2:"20.5",y1:"11.114",y2:"11.114"}));export{ln as a,Nn as b,Nt as c,zn as d,Lt as e,uo as f,mo as g,$ as h,k as i,I as j,_ as k,Xt as l,ot as m,D as n,Y as o,J as p,Ct as q,ct as r,wt as s,U as t,yn as u,Mn as v,Eo as w,Mo as x,Fo as y,Wo as z,Do as A,No as B,Bo as C,Vo as D,jo as E,zo as F,Wn as G,po as H};
|
|
2
|
-
|
|
1
|
+
"use client";
|
|
2
|
+
// Workaround for react-datepicker and other cjs dependencies potentially inserting require("react") statements
|
|
3
|
+
import * as requireReact from 'react';
|
|
4
|
+
import * as requireReactDom from 'react-dom';
|
|
5
|
+
|
|
6
|
+
function require(m) {
|
|
7
|
+
if (m === 'react') return requireReact;
|
|
8
|
+
if (m === 'react-dom') return requireReactDom;
|
|
9
|
+
throw new Error(`Unknown module ${m}`);
|
|
10
|
+
}
|
|
11
|
+
// Workaround end
|
|
12
|
+
|
|
13
|
+
import{b as lt,c as vt}from"./chunk-5LKBKI4T.js";var zt=vt((wo,jt)=>{"use strict";var an="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED";jt.exports=an});var $t=vt((xo,It)=>{"use strict";var cn=zt();function _t(){}function Ht(){}Ht.resetWarningCache=_t;It.exports=function(){function t(o,i,r,s,a,c){if(c!==cn){var l=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw l.name="Invariant Violation",l}}t.isRequired=t;function e(){return t}var n={array:t,bigint:t,bool:t,func:t,number:t,object:t,string:t,symbol:t,any:t,arrayOf:e,element:t,elementType:t,instanceOf:e,node:t,objectOf:e,oneOf:e,oneOfType:e,shape:e,exact:e,checkPropTypes:Ht,resetWarningCache:_t};return n.PropTypes=n,n}});var ln=vt((Co,qt)=>{qt.exports=$t()();var vo,bo});function $(t){return Kt(t)?(t.nodeName||"").toLowerCase():"#document"}function k(t){var e;return(t==null||(e=t.ownerDocument)==null?void 0:e.defaultView)||window}function H(t){var e;return(e=(Kt(t)?t.ownerDocument:t.document)||window.document)==null?void 0:e.documentElement}function Kt(t){return t instanceof Node||t instanceof k(t).Node}function I(t){return t instanceof Element||t instanceof k(t).Element}function _(t){return t instanceof HTMLElement||t instanceof k(t).HTMLElement}function Xt(t){return typeof ShadowRoot>"u"?!1:t instanceof ShadowRoot||t instanceof k(t).ShadowRoot}function tt(t){let{overflow:e,overflowX:n,overflowY:o,display:i}=D(t);return/auto|scroll|overlay|hidden|clip/.test(e+o+n)&&!["inline","contents"].includes(i)}function Yt(t){return["table","td","th"].includes($(t))}function ut(t){let e=dt(),n=D(t);return n.transform!=="none"||n.perspective!=="none"||(n.containerType?n.containerType!=="normal":!1)||!e&&(n.backdropFilter?n.backdropFilter!=="none":!1)||!e&&(n.filter?n.filter!=="none":!1)||["transform","perspective","filter"].some(o=>(n.willChange||"").includes(o))||["paint","layout","strict","content"].some(o=>(n.contain||"").includes(o))}function Jt(t){let e=Y(t);for(;_(e)&&!ot(e);){if(ut(e))return e;e=Y(e)}return null}function dt(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}function ot(t){return["html","body","#document"].includes($(t))}function D(t){return k(t).getComputedStyle(t)}function it(t){return I(t)?{scrollLeft:t.scrollLeft,scrollTop:t.scrollTop}:{scrollLeft:t.pageXOffset,scrollTop:t.pageYOffset}}function Y(t){if($(t)==="html")return t;let e=t.assignedSlot||t.parentNode||Xt(t)&&t.host||H(t);return Xt(e)?e.host:e}function Ut(t){let e=Y(t);return ot(e)?t.ownerDocument?t.ownerDocument.body:t.body:_(e)&&tt(e)?e:Ut(e)}function J(t,e,n){var o;e===void 0&&(e=[]),n===void 0&&(n=!0);let i=Ut(t),r=i===((o=t.ownerDocument)==null?void 0:o.body),s=k(i);return r?e.concat(s,s.visualViewport||[],tt(i)?i:[],s.frameElement&&n?J(s.frameElement):[]):e.concat(i,J(i,[],n))}var Ct=lt(()=>{});function mt(t,e,n){return T(t,N(e,n))}function B(t,e){return typeof t=="function"?t(e):t}function E(t){return t.split("-")[0]}function V(t){return t.split("-")[1]}function ht(t){return t==="x"?"y":"x"}function gt(t){return t==="y"?"height":"width"}function K(t){return["top","bottom"].includes(E(t))?"y":"x"}function pt(t){return ht(K(t))}function Tt(t,e,n){n===void 0&&(n=!1);let o=V(t),i=pt(t),r=gt(i),s=i==="x"?o===(n?"end":"start")?"right":"left":o==="start"?"bottom":"top";return e.reference[r]>e.floating[r]&&(s=st(s)),[s,st(s)]}function Gt(t){let e=st(t);return[rt(t),e,rt(e)]}function rt(t){return t.replace(/start|end/g,e=>un[e])}function dn(t,e,n){let o=["left","right"],i=["right","left"],r=["top","bottom"],s=["bottom","top"];switch(t){case"top":case"bottom":return n?e?i:o:e?o:i;case"left":case"right":return e?r:s;default:return[]}}function Zt(t,e,n,o){let i=V(t),r=dn(E(t),n==="start",o);return i&&(r=r.map(s=>s+"-"+i),e&&(r=r.concat(r.map(rt)))),r}function st(t){return t.replace(/left|right|bottom|top/g,e=>fn[e])}function mn(t){return{top:0,right:0,bottom:0,left:0,...t}}function yt(t){return typeof t!="number"?mn(t):{top:t,right:t,bottom:t,left:t}}function X(t){return{...t,top:t.y,left:t.x,right:t.x+t.width,bottom:t.y+t.height}}var At,Qt,Pt,N,T,at,ct,q,fn,un,wt=lt(()=>{At=["top","right","bottom","left"],Qt=["start","end"],Pt=At.reduce((t,e)=>t.concat(e,e+"-"+Qt[0],e+"-"+Qt[1]),[]),N=Math.min,T=Math.max,at=Math.round,ct=Math.floor,q=t=>({x:t,y:t}),fn={left:"right",right:"left",bottom:"top",top:"bottom"},un={start:"end",end:"start"}});function te(t,e,n){let{reference:o,floating:i}=t,r=K(e),s=pt(e),a=gt(s),c=E(e),l=r==="y",d=o.x+o.width/2-i.width/2,f=o.y+o.height/2-i.height/2,m=o[a]/2-i[a]/2,u;switch(c){case"top":u={x:d,y:o.y-i.height};break;case"bottom":u={x:d,y:o.y+o.height};break;case"right":u={x:o.x+o.width,y:f};break;case"left":u={x:o.x-i.width,y:f};break;default:u={x:o.x,y:o.y}}switch(V(e)){case"start":u[s]-=m*(n&&l?-1:1);break;case"end":u[s]+=m*(n&&l?-1:1);break}return u}async function U(t,e){var n;e===void 0&&(e={});let{x:o,y:i,platform:r,rects:s,elements:a,strategy:c}=t,{boundary:l="clippingAncestors",rootBoundary:d="viewport",elementContext:f="floating",altBoundary:m=!1,padding:u=0}=B(e,t),h=yt(u),p=a[m?f==="floating"?"reference":"floating":f],y=X(await r.getClippingRect({element:(n=await(r.isElement==null?void 0:r.isElement(p)))==null||n?p:p.contextElement||await(r.getDocumentElement==null?void 0:r.getDocumentElement(a.floating)),boundary:l,rootBoundary:d,strategy:c})),w=f==="floating"?{...s.floating,x:o,y:i}:s.reference,x=await(r.getOffsetParent==null?void 0:r.getOffsetParent(a.floating)),b=await(r.isElement==null?void 0:r.isElement(x))?await(r.getScale==null?void 0:r.getScale(x))||{x:1,y:1}:{x:1,y:1},v=X(r.convertOffsetParentRelativeRectToViewportRelativeRect?await r.convertOffsetParentRelativeRectToViewportRelativeRect({elements:a,rect:w,offsetParent:x,strategy:c}):w);return{top:(y.top-v.top+h.top)/b.y,bottom:(v.bottom-y.bottom+h.bottom)/b.y,left:(y.left-v.left+h.left)/b.x,right:(v.right-y.right+h.right)/b.x}}function hn(t,e,n){return(t?[...n.filter(i=>V(i)===t),...n.filter(i=>V(i)!==t)]:n.filter(i=>E(i)===i)).filter(i=>t?V(i)===t||(e?rt(i)!==i:!1):!0)}function ee(t,e){return{top:t.top-e.height,right:t.right-e.width,bottom:t.bottom-e.height,left:t.left-e.width}}function ne(t){return At.some(e=>t[e]>=0)}function ce(t){let e=N(...t.map(r=>r.left)),n=N(...t.map(r=>r.top)),o=T(...t.map(r=>r.right)),i=T(...t.map(r=>r.bottom));return{x:e,y:n,width:o-e,height:i-n}}function gn(t){let e=t.slice().sort((i,r)=>i.y-r.y),n=[],o=null;for(let i=0;i<e.length;i++){let r=e[i];!o||r.y-o.y>o.height/2?n.push([r]):n[n.length-1].push(r),o=r}return n.map(i=>X(ce(i)))}async function pn(t,e){let{placement:n,platform:o,elements:i}=t,r=await(o.isRTL==null?void 0:o.isRTL(i.floating)),s=E(n),a=V(n),c=K(n)==="y",l=["left","top"].includes(s)?-1:1,d=r&&c?-1:1,f=B(e,t),{mainAxis:m,crossAxis:u,alignmentAxis:h}=typeof f=="number"?{mainAxis:f,crossAxis:0,alignmentAxis:null}:{mainAxis:0,crossAxis:0,alignmentAxis:null,...f};return a&&typeof h=="number"&&(u=a==="end"?h*-1:h),c?{x:u*d,y:m*l}:{x:m*l,y:u*d}}var oe,ie,re,se,ae,le,yn,fe,ue,de,Ot=lt(()=>{wt();wt();oe=async(t,e,n)=>{let{placement:o="bottom",strategy:i="absolute",middleware:r=[],platform:s}=n,a=r.filter(Boolean),c=await(s.isRTL==null?void 0:s.isRTL(e)),l=await s.getElementRects({reference:t,floating:e,strategy:i}),{x:d,y:f}=te(l,o,c),m=o,u={},h=0;for(let g=0;g<a.length;g++){let{name:p,fn:y}=a[g],{x:w,y:x,data:b,reset:v}=await y({x:d,y:f,initialPlacement:o,placement:m,strategy:i,middlewareData:u,rects:l,platform:s,elements:{reference:t,floating:e}});d=w??d,f=x??f,u={...u,[p]:{...u[p],...b}},v&&h<=50&&(h++,typeof v=="object"&&(v.placement&&(m=v.placement),v.rects&&(l=v.rects===!0?await s.getElementRects({reference:t,floating:e,strategy:i}):v.rects),{x:d,y:f}=te(l,m,c)),g=-1)}return{x:d,y:f,placement:m,strategy:i,middlewareData:u}};ie=t=>({name:"arrow",options:t,async fn(e){let{x:n,y:o,placement:i,rects:r,platform:s,elements:a,middlewareData:c}=e,{element:l,padding:d=0}=B(t,e)||{};if(l==null)return{};let f=yt(d),m={x:n,y:o},u=pt(i),h=gt(u),g=await s.getDimensions(l),p=u==="y",y=p?"top":"left",w=p?"bottom":"right",x=p?"clientHeight":"clientWidth",b=r.reference[h]+r.reference[u]-m[u]-r.floating[h],v=m[u]-r.reference[u],C=await(s.getOffsetParent==null?void 0:s.getOffsetParent(l)),P=C?C[x]:0;(!P||!await(s.isElement==null?void 0:s.isElement(C)))&&(P=a.floating[x]||r.floating[h]);let M=b/2-v/2,F=P/2-g[h]/2-1,A=N(f[y],F),S=N(f[w],F),O=A,j=P-g[h]-S,R=P/2-g[h]/2+M,L=mt(O,R,j),W=!c.arrow&&V(i)!=null&&R!==L&&r.reference[h]/2-(R<O?A:S)-g[h]/2<0,z=W?R<O?R-O:R-j:0;return{[u]:m[u]+z,data:{[u]:L,centerOffset:R-L-z,...W&&{alignmentOffset:z}},reset:W}}});re=function(t){return t===void 0&&(t={}),{name:"autoPlacement",options:t,async fn(e){var n,o,i;let{rects:r,middlewareData:s,placement:a,platform:c,elements:l}=e,{crossAxis:d=!1,alignment:f,allowedPlacements:m=Pt,autoAlignment:u=!0,...h}=B(t,e),g=f!==void 0||m===Pt?hn(f||null,u,m):m,p=await U(e,h),y=((n=s.autoPlacement)==null?void 0:n.index)||0,w=g[y];if(w==null)return{};let x=Tt(w,r,await(c.isRTL==null?void 0:c.isRTL(l.floating)));if(a!==w)return{reset:{placement:g[0]}};let b=[p[E(w)],p[x[0]],p[x[1]]],v=[...((o=s.autoPlacement)==null?void 0:o.overflows)||[],{placement:w,overflows:b}],C=g[y+1];if(C)return{data:{index:y+1,overflows:v},reset:{placement:C}};let P=v.map(A=>{let S=V(A.placement);return[A.placement,S&&d?A.overflows.slice(0,2).reduce((O,j)=>O+j,0):A.overflows[0],A.overflows]}).sort((A,S)=>A[1]-S[1]),F=((i=P.filter(A=>A[2].slice(0,V(A[0])?2:3).every(S=>S<=0))[0])==null?void 0:i[0])||P[0][0];return F!==a?{data:{index:y+1,overflows:v},reset:{placement:F}}:{}}}},se=function(t){return t===void 0&&(t={}),{name:"flip",options:t,async fn(e){var n,o;let{placement:i,middlewareData:r,rects:s,initialPlacement:a,platform:c,elements:l}=e,{mainAxis:d=!0,crossAxis:f=!0,fallbackPlacements:m,fallbackStrategy:u="bestFit",fallbackAxisSideDirection:h="none",flipAlignment:g=!0,...p}=B(t,e);if((n=r.arrow)!=null&&n.alignmentOffset)return{};let y=E(i),w=E(a)===a,x=await(c.isRTL==null?void 0:c.isRTL(l.floating)),b=m||(w||!g?[st(a)]:Gt(a));!m&&h!=="none"&&b.push(...Zt(a,g,h,x));let v=[a,...b],C=await U(e,p),P=[],M=((o=r.flip)==null?void 0:o.overflows)||[];if(d&&P.push(C[y]),f){let O=Tt(i,s,x);P.push(C[O[0]],C[O[1]])}if(M=[...M,{placement:i,overflows:P}],!P.every(O=>O<=0)){var F,A;let O=(((F=r.flip)==null?void 0:F.index)||0)+1,j=v[O];if(j)return{data:{index:O,overflows:M},reset:{placement:j}};let R=(A=M.filter(L=>L.overflows[0]<=0).sort((L,W)=>L.overflows[1]-W.overflows[1])[0])==null?void 0:A.placement;if(!R)switch(u){case"bestFit":{var S;let L=(S=M.map(W=>[W.placement,W.overflows.filter(z=>z>0).reduce((z,xt)=>z+xt,0)]).sort((W,z)=>W[1]-z[1])[0])==null?void 0:S[0];L&&(R=L);break}case"initialPlacement":R=a;break}if(i!==R)return{reset:{placement:R}}}return{}}}};ae=function(t){return t===void 0&&(t={}),{name:"hide",options:t,async fn(e){let{rects:n}=e,{strategy:o="referenceHidden",...i}=B(t,e);switch(o){case"referenceHidden":{let r=await U(e,{...i,elementContext:"reference"}),s=ee(r,n.reference);return{data:{referenceHiddenOffsets:s,referenceHidden:ne(s)}}}case"escaped":{let r=await U(e,{...i,altBoundary:!0}),s=ee(r,n.floating);return{data:{escapedOffsets:s,escaped:ne(s)}}}default:return{}}}}};le=function(t){return t===void 0&&(t={}),{name:"inline",options:t,async fn(e){let{placement:n,elements:o,rects:i,platform:r,strategy:s}=e,{padding:a=2,x:c,y:l}=B(t,e),d=Array.from(await(r.getClientRects==null?void 0:r.getClientRects(o.reference))||[]),f=gn(d),m=X(ce(d)),u=yt(a);function h(){if(f.length===2&&f[0].left>f[1].right&&c!=null&&l!=null)return f.find(p=>c>p.left-u.left&&c<p.right+u.right&&l>p.top-u.top&&l<p.bottom+u.bottom)||m;if(f.length>=2){if(K(n)==="y"){let A=f[0],S=f[f.length-1],O=E(n)==="top",j=A.top,R=S.bottom,L=O?A.left:S.left,W=O?A.right:S.right,z=W-L,xt=R-j;return{top:j,bottom:R,left:L,right:W,width:z,height:xt,x:L,y:j}}let p=E(n)==="left",y=T(...f.map(A=>A.right)),w=N(...f.map(A=>A.left)),x=f.filter(A=>p?A.left===w:A.right===y),b=x[0].top,v=x[x.length-1].bottom,C=w,P=y,M=P-C,F=v-b;return{top:b,bottom:v,left:C,right:P,width:M,height:F,x:C,y:b}}return m}let g=await r.getElementRects({reference:{getBoundingClientRect:h},floating:o.floating,strategy:s});return i.reference.x!==g.reference.x||i.reference.y!==g.reference.y||i.reference.width!==g.reference.width||i.reference.height!==g.reference.height?{reset:{rects:g}}:{}}}};yn=function(t){return t===void 0&&(t=0),{name:"offset",options:t,async fn(e){var n,o;let{x:i,y:r,placement:s,middlewareData:a}=e,c=await pn(e,t);return s===((n=a.offset)==null?void 0:n.placement)&&(o=a.arrow)!=null&&o.alignmentOffset?{}:{x:i+c.x,y:r+c.y,data:{...c,placement:s}}}}},fe=function(t){return t===void 0&&(t={}),{name:"shift",options:t,async fn(e){let{x:n,y:o,placement:i}=e,{mainAxis:r=!0,crossAxis:s=!1,limiter:a={fn:p=>{let{x:y,y:w}=p;return{x:y,y:w}}},...c}=B(t,e),l={x:n,y:o},d=await U(e,c),f=K(E(i)),m=ht(f),u=l[m],h=l[f];if(r){let p=m==="y"?"top":"left",y=m==="y"?"bottom":"right",w=u+d[p],x=u-d[y];u=mt(w,u,x)}if(s){let p=f==="y"?"top":"left",y=f==="y"?"bottom":"right",w=h+d[p],x=h-d[y];h=mt(w,h,x)}let g=a.fn({...e,[m]:u,[f]:h});return{...g,data:{x:g.x-n,y:g.y-o}}}}},ue=function(t){return t===void 0&&(t={}),{options:t,fn(e){let{x:n,y:o,placement:i,rects:r,middlewareData:s}=e,{offset:a=0,mainAxis:c=!0,crossAxis:l=!0}=B(t,e),d={x:n,y:o},f=K(i),m=ht(f),u=d[m],h=d[f],g=B(a,e),p=typeof g=="number"?{mainAxis:g,crossAxis:0}:{mainAxis:0,crossAxis:0,...g};if(c){let x=m==="y"?"height":"width",b=r.reference[m]-r.floating[x]+p.mainAxis,v=r.reference[m]+r.reference[x]-p.mainAxis;u<b?u=b:u>v&&(u=v)}if(l){var y,w;let x=m==="y"?"width":"height",b=["top","left"].includes(E(i)),v=r.reference[f]-r.floating[x]+(b&&((y=s.offset)==null?void 0:y[f])||0)+(b?0:p.crossAxis),C=r.reference[f]+r.reference[x]+(b?0:((w=s.offset)==null?void 0:w[f])||0)-(b?p.crossAxis:0);h<v?h=v:h>C&&(h=C)}return{[m]:u,[f]:h}}}},de=function(t){return t===void 0&&(t={}),{name:"size",options:t,async fn(e){let{placement:n,rects:o,platform:i,elements:r}=e,{apply:s=()=>{},...a}=B(t,e),c=await U(e,a),l=E(n),d=V(n),f=K(n)==="y",{width:m,height:u}=o.floating,h,g;l==="top"||l==="bottom"?(h=l,g=d===(await(i.isRTL==null?void 0:i.isRTL(r.floating))?"start":"end")?"left":"right"):(g=l,h=d==="end"?"top":"bottom");let p=u-c[h],y=m-c[g],w=!e.middlewareData.shift,x=p,b=y;if(f){let C=m-c.left-c.right;b=d||w?N(y,C):C}else{let C=u-c.top-c.bottom;x=d||w?N(p,C):C}if(w&&!d){let C=T(c.left,0),P=T(c.right,0),M=T(c.top,0),F=T(c.bottom,0);f?b=m-2*(C!==0||P!==0?C+P:T(c.left,c.right)):x=u-2*(M!==0||F!==0?M+F:T(c.top,c.bottom))}await s({...e,availableWidth:b,availableHeight:x});let v=await i.getDimensions(r.floating);return m!==v.width||u!==v.height?{reset:{rects:!0}}:{}}}}});function ge(t){let e=D(t),n=parseFloat(e.width)||0,o=parseFloat(e.height)||0,i=_(t),r=i?t.offsetWidth:n,s=i?t.offsetHeight:o,a=at(n)!==r||at(o)!==s;return a&&(n=r,o=s),{width:n,height:o,$:a}}function Rt(t){return I(t)?t:t.contextElement}function et(t){let e=Rt(t);if(!_(e))return q(1);let n=e.getBoundingClientRect(),{width:o,height:i,$:r}=ge(e),s=(r?at(n.width):n.width)/o,a=(r?at(n.height):n.height)/i;return(!s||!Number.isFinite(s))&&(s=1),(!a||!Number.isFinite(a))&&(a=1),{x:s,y:a}}function pe(t){let e=k(t);return!dt()||!e.visualViewport?wn:{x:e.visualViewport.offsetLeft,y:e.visualViewport.offsetTop}}function xn(t,e,n){return e===void 0&&(e=!1),!n||e&&n!==k(t)?!1:e}function Q(t,e,n,o){e===void 0&&(e=!1),n===void 0&&(n=!1);let i=t.getBoundingClientRect(),r=Rt(t),s=q(1);e&&(o?I(o)&&(s=et(o)):s=et(t));let a=xn(r,n,o)?pe(r):q(0),c=(i.left+a.x)/s.x,l=(i.top+a.y)/s.y,d=i.width/s.x,f=i.height/s.y;if(r){let m=k(r),u=o&&I(o)?k(o):o,h=m,g=h.frameElement;for(;g&&o&&u!==h;){let p=et(g),y=g.getBoundingClientRect(),w=D(g),x=y.left+(g.clientLeft+parseFloat(w.paddingLeft))*p.x,b=y.top+(g.clientTop+parseFloat(w.paddingTop))*p.y;c*=p.x,l*=p.y,d*=p.x,f*=p.y,c+=x,l+=b,h=k(g),g=h.frameElement}}return X({width:d,height:f,x:c,y:l})}function ye(t){return vn.some(e=>{try{return t.matches(e)}catch{return!1}})}function bn(t){let{elements:e,rect:n,offsetParent:o,strategy:i}=t,r=i==="fixed",s=H(o),a=e?ye(e.floating):!1;if(o===s||a&&r)return n;let c={scrollLeft:0,scrollTop:0},l=q(1),d=q(0),f=_(o);if((f||!f&&!r)&&(($(o)!=="body"||tt(s))&&(c=it(o)),_(o))){let m=Q(o);l=et(o),d.x=m.x+o.clientLeft,d.y=m.y+o.clientTop}return{width:n.width*l.x,height:n.height*l.y,x:n.x*l.x-c.scrollLeft*l.x+d.x,y:n.y*l.y-c.scrollTop*l.y+d.y}}function Cn(t){return Array.from(t.getClientRects())}function we(t){return Q(H(t)).left+it(t).scrollLeft}function An(t){let e=H(t),n=it(t),o=t.ownerDocument.body,i=T(e.scrollWidth,e.clientWidth,o.scrollWidth,o.clientWidth),r=T(e.scrollHeight,e.clientHeight,o.scrollHeight,o.clientHeight),s=-n.scrollLeft+we(t),a=-n.scrollTop;return D(o).direction==="rtl"&&(s+=T(e.clientWidth,o.clientWidth)-i),{width:i,height:r,x:s,y:a}}function Pn(t,e){let n=k(t),o=H(t),i=n.visualViewport,r=o.clientWidth,s=o.clientHeight,a=0,c=0;if(i){r=i.width,s=i.height;let l=dt();(!l||l&&e==="fixed")&&(a=i.offsetLeft,c=i.offsetTop)}return{width:r,height:s,x:a,y:c}}function Tn(t,e){let n=Q(t,!0,e==="fixed"),o=n.top+t.clientTop,i=n.left+t.clientLeft,r=_(t)?et(t):q(1),s=t.clientWidth*r.x,a=t.clientHeight*r.y,c=i*r.x,l=o*r.y;return{width:s,height:a,x:c,y:l}}function me(t,e,n){let o;if(e==="viewport")o=Pn(t,n);else if(e==="document")o=An(H(t));else if(I(e))o=Tn(e,n);else{let i=pe(t);o={...e,x:e.x-i.x,y:e.y-i.y}}return X(o)}function xe(t,e){let n=Y(t);return n===e||!I(n)||ot(n)?!1:D(n).position==="fixed"||xe(n,e)}function On(t,e){let n=e.get(t);if(n)return n;let o=J(t,[],!1).filter(a=>I(a)&&$(a)!=="body"),i=null,r=D(t).position==="fixed",s=r?Y(t):t;for(;I(s)&&!ot(s);){let a=D(s),c=ut(s);!c&&a.position==="fixed"&&(i=null),(r?!c&&!i:!c&&a.position==="static"&&!!i&&["absolute","fixed"].includes(i.position)||tt(s)&&!c&&xe(t,s))?o=o.filter(d=>d!==s):i=a,s=Y(s)}return e.set(t,o),o}function Rn(t){let{element:e,boundary:n,rootBoundary:o,strategy:i}=t,s=[...n==="clippingAncestors"?On(e,this._c):[].concat(n),o],a=s[0],c=s.reduce((l,d)=>{let f=me(e,d,i);return l.top=T(f.top,l.top),l.right=N(f.right,l.right),l.bottom=N(f.bottom,l.bottom),l.left=T(f.left,l.left),l},me(e,a,i));return{width:c.right-c.left,height:c.bottom-c.top,x:c.left,y:c.top}}function Sn(t){let{width:e,height:n}=ge(t);return{width:e,height:n}}function Ln(t,e,n){let o=_(e),i=H(e),r=n==="fixed",s=Q(t,!0,r,e),a={scrollLeft:0,scrollTop:0},c=q(0);if(o||!o&&!r)if(($(e)!=="body"||tt(i))&&(a=it(e)),o){let f=Q(e,!0,r,e);c.x=f.x+e.clientLeft,c.y=f.y+e.clientTop}else i&&(c.x=we(i));let l=s.left+a.scrollLeft-c.x,d=s.top+a.scrollTop-c.y;return{x:l,y:d,width:s.width,height:s.height}}function he(t,e){return!_(t)||D(t).position==="fixed"?null:e?e(t):t.offsetParent}function ve(t,e){let n=k(t);if(!_(t)||ye(t))return n;let o=he(t,e);for(;o&&Yt(o)&&D(o).position==="static";)o=he(o,e);return o&&($(o)==="html"||$(o)==="body"&&D(o).position==="static"&&!ut(o))?n:o||Jt(t)||n}function En(t){return D(t).direction==="rtl"}function Fn(t,e){let n=null,o,i=H(t);function r(){var a;clearTimeout(o),(a=n)==null||a.disconnect(),n=null}function s(a,c){a===void 0&&(a=!1),c===void 0&&(c=1),r();let{left:l,top:d,width:f,height:m}=t.getBoundingClientRect();if(a||e(),!f||!m)return;let u=ct(d),h=ct(i.clientWidth-(l+f)),g=ct(i.clientHeight-(d+m)),p=ct(l),w={rootMargin:-u+"px "+-h+"px "+-g+"px "+-p+"px",threshold:T(0,N(1,c))||1},x=!0;function b(v){let C=v[0].intersectionRatio;if(C!==c){if(!x)return s();C?s(!1,C):o=setTimeout(()=>{s(!1,1e-7)},100)}x=!1}try{n=new IntersectionObserver(b,{...w,root:i.ownerDocument})}catch{n=new IntersectionObserver(b,w)}n.observe(t)}return s(!0),r}function Eo(t,e,n,o){o===void 0&&(o={});let{ancestorScroll:i=!0,ancestorResize:r=!0,elementResize:s=typeof ResizeObserver=="function",layoutShift:a=typeof IntersectionObserver=="function",animationFrame:c=!1}=o,l=Rt(t),d=i||r?[...l?J(l):[],...J(e)]:[];d.forEach(y=>{i&&y.addEventListener("scroll",n,{passive:!0}),r&&y.addEventListener("resize",n)});let f=l&&a?Fn(l,n):null,m=-1,u=null;s&&(u=new ResizeObserver(y=>{let[w]=y;w&&w.target===l&&u&&(u.unobserve(e),cancelAnimationFrame(m),m=requestAnimationFrame(()=>{var x;(x=u)==null||x.observe(e)})),n()}),l&&!c&&u.observe(l),u.observe(e));let h,g=c?Q(t):null;c&&p();function p(){let y=Q(t);g&&(y.x!==g.x||y.y!==g.y||y.width!==g.width||y.height!==g.height)&&n(),g=y,h=requestAnimationFrame(p)}return n(),()=>{var y;d.forEach(w=>{i&&w.removeEventListener("scroll",n),r&&w.removeEventListener("resize",n)}),f?.(),(y=u)==null||y.disconnect(),u=null,c&&cancelAnimationFrame(h)}}var wn,vn,kn,Mn,Mo,Fo,Wo,Do,No,Bo,Vo,jo,zo,Wn=lt(()=>{Ot();Ot();wt();Ct();Ct();wn=q(0);vn=[":popover-open",":modal"];kn=async function(t){let e=this.getOffsetParent||ve,n=this.getDimensions;return{reference:Ln(t.reference,await e(t.floating),t.strategy),floating:{x:0,y:0,...await n(t.floating)}}};Mn={convertOffsetParentRelativeRectToViewportRelativeRect:bn,getDocumentElement:H,getClippingRect:Rn,getOffsetParent:ve,getElementRects:kn,getClientRects:Cn,getDimensions:Sn,getScale:et,isElement:I,isRTL:En};Mo=re,Fo=fe,Wo=se,Do=de,No=ae,Bo=ie,Vo=le,jo=ue,zo=(t,e,n)=>{let o=new Map,i={platform:Mn,...n},r={...i.platform,_c:o};return oe(t,e,{...i,platform:r})}});import bt from"react";var Nn=({className:t})=>bt.createElement("svg",{className:[t,"icon icon--x"].filter(Boolean).join(" "),height:"25",viewBox:"0 0 25 25",width:"25",xmlns:"http://www.w3.org/2000/svg"},bt.createElement("line",{className:"stroke",x1:"8.74612",x2:"16.3973",y1:"16.347",y2:"8.69584"}),bt.createElement("line",{className:"stroke",x1:"8.6027",x2:"16.2539",y1:"8.69585",y2:"16.3471"}));import{usePathname as be,useRouter as Ce}from"next/navigation.js";import Ae,{createContext as Pe,useCallback as Te,useContext as Oe,useEffect as Re}from"react";var St=Pe({clearRouteCache:()=>{}}),zn=({children:t})=>{let e=be(),n=Ce(),o=Te(()=>{n.refresh()},[n]);return Re(()=>{o()},[e,o]),Ae.createElement(St.Provider,{value:{clearRouteCache:o}},t)},Lt=()=>Oe(St);import{importDateFNSLocale as tn,t as en}from"@payloadcms/translations";var Se={lessThanXSeconds:{one:"less than a second",other:"less than {{count}} seconds"},xSeconds:{one:"1 second",other:"{{count}} seconds"},halfAMinute:"half a minute",lessThanXMinutes:{one:"less than a minute",other:"less than {{count}} minutes"},xMinutes:{one:"1 minute",other:"{{count}} minutes"},aboutXHours:{one:"about 1 hour",other:"about {{count}} hours"},xHours:{one:"1 hour",other:"{{count}} hours"},xDays:{one:"1 day",other:"{{count}} days"},aboutXWeeks:{one:"about 1 week",other:"about {{count}} weeks"},xWeeks:{one:"1 week",other:"{{count}} weeks"},aboutXMonths:{one:"about 1 month",other:"about {{count}} months"},xMonths:{one:"1 month",other:"{{count}} months"},aboutXYears:{one:"about 1 year",other:"about {{count}} years"},xYears:{one:"1 year",other:"{{count}} years"},overXYears:{one:"over 1 year",other:"over {{count}} years"},almostXYears:{one:"almost 1 year",other:"almost {{count}} years"}},kt=(t,e,n)=>{let o,i=Se[t];return typeof i=="string"?o=i:e===1?o=i.one:o=i.other.replace("{{count}}",e.toString()),n?.addSuffix?n.comparison&&n.comparison>0?"in "+o:o+" ago":o};function ft(t){return(e={})=>{let n=e.width?String(e.width):t.defaultWidth;return t.formats[n]||t.formats[t.defaultWidth]}}var Le={full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},ke={full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},Ee={full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},Et={date:ft({formats:Le,defaultWidth:"full"}),time:ft({formats:ke,defaultWidth:"full"}),dateTime:ft({formats:Ee,defaultWidth:"full"})};var Me={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"},Mt=(t,e,n,o)=>Me[t];function G(t){return(e,n)=>{let o=n?.context?String(n.context):"standalone",i;if(o==="formatting"&&t.formattingValues){let s=t.defaultFormattingWidth||t.defaultWidth,a=n?.width?String(n.width):s;i=t.formattingValues[a]||t.formattingValues[s]}else{let s=t.defaultWidth,a=n?.width?String(n.width):t.defaultWidth;i=t.values[a]||t.values[s]}let r=t.argumentCallback?t.argumentCallback(e):e;return i[r]}}var Fe={narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},We={narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},De={narrow:["J","F","M","A","M","J","J","A","S","O","N","D"],abbreviated:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],wide:["January","February","March","April","May","June","July","August","September","October","November","December"]},Ne={narrow:["S","M","T","W","T","F","S"],short:["Su","Mo","Tu","We","Th","Fr","Sa"],abbreviated:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],wide:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"]},Be={narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"}},Ve={narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"}},je=(t,e)=>{let n=Number(t),o=n%100;if(o>20||o<10)switch(o%10){case 1:return n+"st";case 2:return n+"nd";case 3:return n+"rd"}return n+"th"},Ft={ordinalNumber:je,era:G({values:Fe,defaultWidth:"wide"}),quarter:G({values:We,defaultWidth:"wide",argumentCallback:t=>t-1}),month:G({values:De,defaultWidth:"wide"}),day:G({values:Ne,defaultWidth:"wide"}),dayPeriod:G({values:Be,defaultWidth:"wide",formattingValues:Ve,defaultFormattingWidth:"wide"})};function Z(t){return(e,n={})=>{let o=n.width,i=o&&t.matchPatterns[o]||t.matchPatterns[t.defaultMatchWidth],r=e.match(i);if(!r)return null;let s=r[0],a=o&&t.parsePatterns[o]||t.parsePatterns[t.defaultParseWidth],c=Array.isArray(a)?_e(a,f=>f.test(s)):ze(a,f=>f.test(s)),l;l=t.valueCallback?t.valueCallback(c):c,l=n.valueCallback?n.valueCallback(l):l;let d=e.slice(s.length);return{value:l,rest:d}}}function ze(t,e){for(let n in t)if(Object.prototype.hasOwnProperty.call(t,n)&&e(t[n]))return n}function _e(t,e){for(let n=0;n<t.length;n++)if(e(t[n]))return n}function Wt(t){return(e,n={})=>{let o=e.match(t.matchPattern);if(!o)return null;let i=o[0],r=e.match(t.parsePattern);if(!r)return null;let s=t.valueCallback?t.valueCallback(r[0]):r[0];s=n.valueCallback?n.valueCallback(s):s;let a=e.slice(i.length);return{value:s,rest:a}}}var He=/^(\d+)(th|st|nd|rd)?/i,Ie=/\d+/i,$e={narrow:/^(b|a)/i,abbreviated:/^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i,wide:/^(before christ|before common era|anno domini|common era)/i},qe={any:[/^b/i,/^(a|c)/i]},Xe={narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},Ke={any:[/1/i,/2/i,/3/i,/4/i]},Ye={narrow:/^[jfmasond]/i,abbreviated:/^(jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec)/i,wide:/^(january|february|march|april|may|june|july|august|september|october|november|december)/i},Je={narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ja/i,/^f/i,/^mar/i,/^ap/i,/^may/i,/^jun/i,/^jul/i,/^au/i,/^s/i,/^o/i,/^n/i,/^d/i]},Ue={narrow:/^[smtwf]/i,short:/^(su|mo|tu|we|th|fr|sa)/i,abbreviated:/^(sun|mon|tue|wed|thu|fri|sat)/i,wide:/^(sunday|monday|tuesday|wednesday|thursday|friday|saturday)/i},Qe={narrow:[/^s/i,/^m/i,/^t/i,/^w/i,/^t/i,/^f/i,/^s/i],any:[/^su/i,/^m/i,/^tu/i,/^w/i,/^th/i,/^f/i,/^sa/i]},Ge={narrow:/^(a|p|mi|n|(in the|at) (morning|afternoon|evening|night))/i,any:/^([ap]\.?\s?m\.?|midnight|noon|(in the|at) (morning|afternoon|evening|night))/i},Ze={any:{am:/^a/i,pm:/^p/i,midnight:/^mi/i,noon:/^no/i,morning:/morning/i,afternoon:/afternoon/i,evening:/evening/i,night:/night/i}},Dt={ordinalNumber:Wt({matchPattern:He,parsePattern:Ie,valueCallback:t=>parseInt(t,10)}),era:Z({matchPatterns:$e,defaultMatchWidth:"wide",parsePatterns:qe,defaultParseWidth:"any"}),quarter:Z({matchPatterns:Xe,defaultMatchWidth:"wide",parsePatterns:Ke,defaultParseWidth:"any",valueCallback:t=>t+1}),month:Z({matchPatterns:Ye,defaultMatchWidth:"wide",parsePatterns:Je,defaultParseWidth:"any"}),day:Z({matchPatterns:Ue,defaultMatchWidth:"wide",parsePatterns:Qe,defaultParseWidth:"any"}),dayPeriod:Z({matchPatterns:Ge,defaultMatchWidth:"any",parsePatterns:Ze,defaultParseWidth:"any"})};var Nt={code:"en-US",formatDistance:kt,formatLong:Et,formatRelative:Mt,localize:Ft,match:Dt,options:{weekStartsOn:0,firstWeekContainsDate:1}};import Bt,{createContext as nn,useContext as on,useEffect as rn,useState as sn}from"react";var Vt=nn({i18n:{dateFNS:Nt,dateFNSKey:"en-US",fallbackLanguage:"en",language:"en",t:t=>t,translations:{}},languageOptions:void 0,switchLanguage:void 0,t:t=>{}}),uo=({children:t,dateFNSKey:e,fallbackLang:n,language:o,languageOptions:i,switchLanguageServerAction:r,translations:s})=>{let{clearRouteCache:a}=Lt(),[c,l]=sn(),d=(m,u)=>en({key:m,translations:s,vars:u}),f=Bt.useCallback(async m=>{try{await r(m),a()}catch(u){console.error(`Error loading language: "${m}"`,u)}},[r,a]);return rn(()=>{(async()=>{let u=await tn(e);l(u)})()},[e]),Bt.createElement(Vt.Provider,{value:{i18n:{dateFNS:c,dateFNSKey:e,fallbackLanguage:n,language:o,t:d,translations:s},languageOptions:i,switchLanguage:f,t:d}},t)},mo=()=>on(Vt);import nt from"react";var po=()=>nt.createElement("svg",{className:"icon icon--calendar",viewBox:"0 0 25 25",xmlns:"http://www.w3.org/2000/svg"},nt.createElement("rect",{className:"stroke",height:"14",width:"16",x:"4.5",y:"6.11401"}),nt.createElement("line",{className:"stroke",x1:"8.625",x2:"8.625",y1:"8.02026",y2:"3.70776"}),nt.createElement("line",{className:"stroke",x1:"16.375",x2:"16.375",y1:"8.02026",y2:"3.70776"}),nt.createElement("line",{className:"stroke",x1:"4.5",x2:"20.5",y1:"11.114",y2:"11.114"}));export{ln as a,Nn as b,Nt as c,zn as d,Lt as e,uo as f,mo as g,$ as h,k as i,I as j,_ as k,Xt as l,ot as m,D as n,Y as o,J as p,Ct as q,ct as r,wt as s,U as t,yn as u,Mn as v,Eo as w,Mo as x,Fo as y,Wo as z,Do as A,No as B,Bo as C,Vo as D,jo as E,zo as F,Wn as G,po as H};
|
|
14
|
+
//# sourceMappingURL=chunk-DODCWLCH.js.map
|