(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,751625,(e,t,n)=>{e.e,t.exports=function(){"use strict";var e="minute",t=/[+-]\d\d(?::?\d\d)?/g,n=/([+-]|\d\d)/g;return function(r,o,i){var l=o.prototype;i.utc=function(e){var t={date:e,utc:!0,args:arguments};return new o(t)},l.utc=function(t){var n=i(this.toDate(),{locale:this.$L,utc:!0});return t?n.add(this.utcOffset(),e):n},l.local=function(){return i(this.toDate(),{locale:this.$L,utc:!1})};var a=l.parse;l.parse=function(e){e.utc&&(this.$u=!0),this.$utils().u(e.$offset)||(this.$offset=e.$offset),a.call(this,e)};var s=l.init;l.init=function(){if(this.$u){var e=this.$d;this.$y=e.getUTCFullYear(),this.$M=e.getUTCMonth(),this.$D=e.getUTCDate(),this.$W=e.getUTCDay(),this.$H=e.getUTCHours(),this.$m=e.getUTCMinutes(),this.$s=e.getUTCSeconds(),this.$ms=e.getUTCMilliseconds()}else s.call(this)};var u=l.utcOffset;l.utcOffset=function(r,o){var i=this.$utils().u;if(i(r))return this.$u?0:i(this.$offset)?u.call(this):this.$offset;if("string"==typeof r&&null===(r=function(e){void 0===e&&(e="");var r=e.match(t);if(!r)return null;var o=(""+r[0]).match(n)||["-",0,0],i=o[0],l=60*o[1]+ +o[2];return 0===l?0:"+"===i?l:-l}(r)))return this;var l=16>=Math.abs(r)?60*r:r;if(0===l)return this.utc(o);var a=this.clone();if(o)return a.$offset=l,a.$u=!1,a;var s=this.$u?this.toDate().getTimezoneOffset():-1*this.utcOffset();return(a=this.local().add(l+s,e)).$offset=l,a.$x.$localOffset=s,a};var c=l.format;l.format=function(e){var t=e||(this.$u?"YYYY-MM-DDTHH:mm:ss[Z]":"");return c.call(this,t)},l.valueOf=function(){var e=this.$utils().u(this.$offset)?0:this.$offset+(this.$x.$localOffset||this.$d.getTimezoneOffset());return this.$d.valueOf()-6e4*e},l.isUTC=function(){return!!this.$u},l.toISOString=function(){return this.toDate().toISOString()},l.toString=function(){return this.toDate().toUTCString()};var d=l.toDate;l.toDate=function(e){return"s"===e&&this.$offset?i(this.format("YYYY-MM-DD HH:mm:ss:SSS")).toDate():d.call(this)};var f=l.diff;l.diff=function(e,t,n){if(e&&this.$u===e.$u)return f.call(this,e,t,n);var r=this.local(),o=i(e).local();return f.call(r,o,t,n)}}}()},630367,(e,t,n)=>{e.e,t.exports=function(){"use strict";var e={year:0,month:1,day:2,hour:3,minute:4,second:5},t={};return function(n,r,o){var i,l=function(e,n,r){void 0===r&&(r={});var o,i,l,a,s=new Date(e);return(void 0===(o=r)&&(o={}),(a=t[l=n+"|"+(i=o.timeZoneName||"short")])||(a=new Intl.DateTimeFormat("en-US",{hour12:!1,timeZone:n,year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit",second:"2-digit",timeZoneName:i}),t[l]=a),a).formatToParts(s)},a=function(t,n){for(var r=l(t,n),i=[],a=0;a=0&&(i[d]=parseInt(c,10))}var f=i[3],p=i[0]+"-"+i[1]+"-"+i[2]+" "+(24===f?0:f)+":"+i[4]+":"+i[5]+":000",m=+t;return(o.utc(p).valueOf()-(m-=m%1e3))/6e4},s=r.prototype;s.tz=function(e,t){void 0===e&&(e=i);var n,r=this.utcOffset(),l=this.toDate(),a=l.toLocaleString("en-US",{timeZone:e}),s=Math.round((l-new Date(a))/1e3/60),u=-(15*Math.round(l.getTimezoneOffset()/15))-s;if(Number(u)){if(n=o(a,{locale:this.$L}).$set("millisecond",this.$ms).utcOffset(u,!0),t){var c=n.utcOffset();n=n.add(r-c,"minute")}}else n=this.utcOffset(0,t);return n.$x.$timezone=e,n},s.offsetName=function(e){var t=this.$x.$timezone||o.tz.guess(),n=l(this.valueOf(),t,{timeZoneName:e}).find(function(e){return"timezonename"===e.type.toLowerCase()});return n&&n.value};var u=s.startOf;s.startOf=function(e,t){if(!this.$x||!this.$x.$timezone)return u.call(this,e,t);var n=o(this.format("YYYY-MM-DD HH:mm:ss:SSS"),{locale:this.$L});return u.call(n,e,t).tz(this.$x.$timezone,!0)},o.tz=function(e,t,n){var r=n&&t,l=n||t||i,s=a(+o(),l);if("string"!=typeof e)return o(e).tz(l);var u=function(e,t,n){var r=e-60*t*1e3,o=a(r,n);if(t===o)return[r,t];var i=a(r-=60*(o-t)*1e3,n);return o===i?[r,o]:[e-60*Math.min(o,i)*1e3,Math.max(o,i)]}(o.utc(e,r).valueOf(),s,l),c=u[0],d=u[1],f=o(c).utcOffset(d);return f.$x.$timezone=l,f},o.tz.guess=function(){return Intl.DateTimeFormat().resolvedOptions().timeZone},o.tz.setDefault=function(e){i=e}}}()},157884,e=>{"use strict";var t=e.i(676315),n=e.i(630367),r=e.i(751625),o=e.i(736893),i=e.i(751992);t.default.extend(r.default),t.default.extend(n.default),e.s(["default",0,()=>{let{userProfile:{timezone:e}}=(0,i.useAppContext)();return{formatTime:(0,o.useCallback)((n,r)=>t.default.unix(n).tz(e).format(r),[e]),formatDate:(0,o.useCallback)((n,r)=>(0,t.default)(n).tz(e).format(r),[e])}}])},650714,e=>{"use strict";var t=e.i(736893),n=e.i(519574);e.s(["useEventListener",0,function(e,r,o,i){let l=(0,n.useLatestValue)(o);(0,t.useEffect)(()=>{function t(e){l.current(e)}return(e=null!=e?e:window).addEventListener(r,t,i),()=>e.removeEventListener(r,t,i)},[e,r,i])}])},340617,e=>{"use strict";let t;var n=e.i(360538),r=((t=r||{})[t.None=1]="None",t[t.Focusable=2]="Focusable",t[t.Hidden=4]="Hidden",t);let o=(0,n.forwardRefWithAs)(function(e,t){var r;let{features:o=1,...i}=e,l={ref:t,"aria-hidden":(2&o)==2||(null!=(r=i["aria-hidden"])?r:void 0),hidden:(4&o)==4||void 0,style:{position:"fixed",top:1,left:1,width:1,height:0,padding:0,margin:-1,overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",borderWidth:"0",...(4&o)==4&&(2&o)!=2&&{display:"none"}}};return(0,n.useRender)()({ourProps:l,theirProps:i,slot:{},defaultTag:"span",name:"Hidden"})});e.s(["Hidden",0,o,"HiddenFeatures",0,r])},287036,e=>{"use strict";var t=e.i(736893),n=e.i(88206);e.s(["useWatch",0,function(e,r){let o=(0,t.useRef)([]),i=(0,n.useEvent)(e);(0,t.useEffect)(()=>{let e=[...o.current];for(let[t,n]of r.entries())if(o.current[t]!==n){let t=i(r,e);return o.current=r,t}},[i,...r])}])},719600,e=>{"use strict";var t=e.i(314608),n=e.i(278650);let r=[];function o(){"loading"!==document.readyState&&((()=>{function e(e){if(!t.isHTMLorSVGElement(e.target)||e.target===document.body||r[0]===e.target)return;let o=e.target;o=o.closest(n.focusableSelector),r.unshift(null!=o?o:e.target),(r=r.filter(e=>null!=e&&e.isConnected)).splice(10)}window.addEventListener("click",e,{capture:!0}),window.addEventListener("mousedown",e,{capture:!0}),window.addEventListener("focus",e,{capture:!0}),document.body.addEventListener("click",e,{capture:!0}),document.body.addEventListener("mousedown",e,{capture:!0}),document.body.addEventListener("focus",e,{capture:!0})})(),document.removeEventListener("DOMContentLoaded",o))}"u">typeof window&&"u">typeof document&&(document.addEventListener("DOMContentLoaded",o),o()),e.s(["history",()=>r],719600)},204114,434963,e=>{"use strict";var t=e.i(470045),n=e.i(650714),r=e.i(887463);e.s(["useEscape",0,function(e){let o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"u">typeof document?document.defaultView:null,i=arguments.length>2?arguments[2]:void 0,l=(0,r.useIsTopLayer)(e,"escape");(0,n.useEventListener)(o,"keydown",e=>{l&&(e.defaultPrevented||e.key===t.Keys.Escape&&i(e))})}],204114);var o=e.i(736893),i=e.i(637759);e.s(["useIsTouchDevice",0,function(){var e;let[t]=(0,o.useState)(()=>"u">typeof window&&"function"==typeof window.matchMedia?window.matchMedia("(pointer: coarse)"):null),[n,r]=(0,o.useState)(null!=(e=null==t?void 0:t.matches)&&e);return(0,i.useIsoMorphicEffect)(()=>{if(t)return t.addEventListener("change",e),()=>t.removeEventListener("change",e);function e(e){r(e.matches)}},[t]),n}],434963)},875120,e=>{"use strict";var t=e.i(736893),n=e.i(340617),r=e.i(314608),o=e.i(64123),i=e.i(88206);let l=(0,t.createContext)(null);function a(){var e;let n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;return null!=(e=(0,t.useContext)(l))?e:n}e.s(["MainTreeProvider",0,function(e){let{children:i,node:s}=e,[u,c]=(0,t.useState)(null),d=a(null!=s?s:u);return t.default.createElement(l.Provider,{value:d},i,null===d&&t.default.createElement(n.Hidden,{features:n.HiddenFeatures.Hidden,ref:e=>{var t,n;if(e){for(let i of null!=(n=null==(t=(0,o.getOwnerDocument)(e))?void 0:t.querySelectorAll("html > *, body > *"))?n:[])if(i!==document.body&&i!==document.head&&r.isElement(i)&&null!=i&&i.contains(e)){c(i);break}}}}))},"useMainTreeNode",0,a,"useRootContainers",0,function(){let{defaultContainers:e=[],portals:t,mainTreeNode:n}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},l=(0,i.useEvent)(()=>{var i,l;let a=(0,o.getOwnerDocument)(n),s=[];for(let t of e)null!==t&&(r.isElement(t)?s.push(t):"current"in t&&r.isElement(t.current)&&s.push(t.current));if(null!=t&&t.current)for(let e of t.current)s.push(e);for(let e of null!=(i=null==a?void 0:a.querySelectorAll("html > *, body > *"))?i:[])e!==document.body&&e!==document.head&&r.isElement(e)&&"headlessui-portal-root"!==e.id&&(n&&(e.contains(n)||e.contains(null==(l=null==n?void 0:n.getRootNode())?void 0:l.host))||s.some(t=>e.contains(t))||s.push(e));return s});return{resolveContainers:l,contains:(0,i.useEvent)(e=>l().some(t=>t.contains(e)))}}])},62350,e=>{"use strict";var t=e.i(736893);let n=(0,t.createContext)(()=>{});e.s(["CloseProvider",0,function(e){let{value:r,children:o}=e;return t.default.createElement(n.Provider,{value:r},o)}])},275934,e=>{"use strict";let t;var n=e.i(736893),r=e.i(770276),o=((t=o||{})[t.Forwards=0]="Forwards",t[t.Backwards=1]="Backwards",t);e.s(["Direction",0,o,"useTabDirection",0,function(){let e=(0,n.useRef)(0);return(0,r.useWindowEvent)(!0,"keydown",t=>{"Tab"===t.key&&(e.current=+!!t.shiftKey)},!0),e}])},490106,e=>{"use strict";let t,n,r;var o=e.i(736893),i=e.i(204114),l=e.i(88206),a=e.i(767104),s=e.i(434963),u=e.i(637759),c=e.i(918031),d=e.i(602874),f=e.i(22091),p=e.i(875120),m=e.i(479936),v=e.i(619687),h=e.i(749744),g=e.i(983877),E=e.i(62350),b=e.i(324798),w=e.i(307352),x=e.i(242904),y=e.i(154260),T=e.i(621621),D=e.i(360538),C=e.i(134874),F=e.i(704903),S=e.i(650714),k=e.i(100326),M=e.i(887463),$=e.i(196163),R=e.i(275934),L=e.i(287036),I=e.i(340617),P=e.i(719600),O=e.i(314608),N=e.i(278650),H=e.i(722301),A=e.i(64123);function j(e){if(!e)return new Set;if("function"==typeof e)return new Set(e());let t=new Set;for(let n of e.current)O.isElement(n.current)&&t.add(n.current);return t}var z=((t=z||{})[t.None=0]="None",t[t.InitialFocus=1]="InitialFocus",t[t.TabLock=2]="TabLock",t[t.FocusLock=4]="FocusLock",t[t.RestoreFocus=8]="RestoreFocus",t[t.AutoFocus=16]="AutoFocus",t);let B=Object.assign((0,D.forwardRefWithAs)(function(e,t){let n=(0,o.useRef)(null),r=(0,g.useSyncRefs)(n,t),{initialFocus:i,initialFocusFallback:a,containers:s,features:u=15,...c}=e;(0,v.useServerHandoffComplete)()||(u=0);let d=(0,f.useOwnerDocument)(n.current);!function(e,t){let{ownerDocument:n}=t,r=!!(8&e),i=function(){let e=!(arguments.length>0)||void 0===arguments[0]||arguments[0],t=(0,o.useRef)(P.history.slice());return(0,L.useWatch)((e,n)=>{let[r]=e,[o]=n;!0===o&&!1===r&&(0,H.microTask)(()=>{t.current.splice(0)}),!1===o&&!0===r&&(t.current=P.history.slice())},[e,P.history,t]),(0,l.useEvent)(()=>{var e;return null!=(e=t.current.find(e=>null!=e&&e.isConnected))?e:null})}(r);(0,L.useWatch)(()=>{r||(0,A.isActiveElement)(null==n?void 0:n.body)&&(0,N.focusElement)(i())},[r]),(0,$.useOnUnmount)(()=>{r&&(0,N.focusElement)(i())})}(u,{ownerDocument:d});let p=function(e,t){let{ownerDocument:n,container:r,initialFocus:i,initialFocusFallback:l}=t,a=(0,o.useRef)(null),s=(0,M.useIsTopLayer)(!!(1&e),"focus-trap#initial-focus"),u=(0,k.useIsMounted)();return(0,L.useWatch)(()=>{if(0===e)return;if(!s){null!=l&&l.current&&(0,N.focusElement)(l.current);return}let t=r.current;t&&(0,H.microTask)(()=>{if(!u.current)return;let r=null==n?void 0:n.activeElement;if(null!=i&&i.current){if((null==i?void 0:i.current)===r){a.current=r;return}}else if(t.contains(r)){a.current=r;return}if(null!=i&&i.current)(0,N.focusElement)(i.current);else{if(16&e){if((0,N.focusIn)(t,N.Focus.First|N.Focus.AutoFocus)!==N.FocusResult.Error)return}else if((0,N.focusIn)(t,N.Focus.First)!==N.FocusResult.Error)return;if(null!=l&&l.current&&((0,N.focusElement)(l.current),(null==n?void 0:n.activeElement)===l.current))return;console.warn("There are no focusable elements inside the ")}a.current=null==n?void 0:n.activeElement})},[l,s,e]),a}(u,{ownerDocument:d,container:n,initialFocus:i,initialFocusFallback:a});!function(e,t){let{ownerDocument:n,container:r,containers:o,previousActiveElement:i}=t,l=(0,k.useIsMounted)(),a=!!(4&e);(0,S.useEventListener)(null==n?void 0:n.defaultView,"focus",e=>{if(!a||!l.current)return;let t=j(o);O.isHTMLElement(r.current)&&t.add(r.current);let n=i.current;if(!n)return;let s=e.target;O.isHTMLElement(s)?W(t,s)?(i.current=s,(0,N.focusElement)(s)):(e.preventDefault(),e.stopPropagation(),(0,N.focusElement)(n)):(0,N.focusElement)(i.current)},!0)}(u,{ownerDocument:d,container:n,containers:s,previousActiveElement:p});let m=(0,R.useTabDirection)(),h=(0,l.useEvent)(e=>{if(!O.isHTMLElement(n.current))return;let t=n.current;(0,T.match)(m.current,{[R.Direction.Forwards]:()=>{(0,N.focusIn)(t,N.Focus.First,{skipElements:[e.relatedTarget,a]})},[R.Direction.Backwards]:()=>{(0,N.focusIn)(t,N.Focus.Last,{skipElements:[e.relatedTarget,a]})}})}),E=(0,M.useIsTopLayer)(!!(2&u),"focus-trap#tab-lock"),b=(0,F.useDisposables)(),w=(0,o.useRef)(!1),x=(0,D.useRender)();return o.default.createElement(o.default.Fragment,null,E&&o.default.createElement(I.Hidden,{as:"button",type:"button","data-headlessui-focus-guard":!0,onFocus:h,features:I.HiddenFeatures.Focusable}),x({ourProps:{ref:r,onKeyDown(e){"Tab"==e.key&&(w.current=!0,b.requestAnimationFrame(()=>{w.current=!1}))},onBlur(e){if(!(4&u))return;let t=j(s);O.isHTMLElement(n.current)&&t.add(n.current);let r=e.relatedTarget;O.isHTMLorSVGElement(r)&&"true"!==r.dataset.headlessuiFocusGuard&&(W(t,r)||(w.current?(0,N.focusIn)(n.current,(0,T.match)(m.current,{[R.Direction.Forwards]:()=>N.Focus.Next,[R.Direction.Backwards]:()=>N.Focus.Previous})|N.Focus.WrapAround,{relativeTo:e.target}):O.isHTMLorSVGElement(e.target)&&(0,N.focusElement)(e.target)))}},theirProps:c,defaultTag:"div",name:"FocusTrap"}),E&&o.default.createElement(I.Hidden,{as:"button",type:"button","data-headlessui-focus-guard":!0,onFocus:h,features:I.HiddenFeatures.Focusable}))}),{features:z});function W(e,t){for(let n of e)if(n.contains(t))return!0;return!1}var U=e.i(872116),Y=e.i(434362),V=((n=V||{})[n.Open=0]="Open",n[n.Closed=1]="Closed",n),_=((r=_||{})[r.SetTitleId=0]="SetTitleId",r);let G={0:(e,t)=>e.titleId===t.id?e:{...e,titleId:t.id}},Z=(0,o.createContext)(null);function K(e){let t=(0,o.useContext)(Z);if(null===t){let t=Error(`<${e} /> is missing a parent component.`);throw Error.captureStackTrace&&Error.captureStackTrace(t,K),t}return t}function q(e,t){return(0,T.match)(t.type,G,e,t)}Z.displayName="DialogContext";let Q=(0,D.forwardRefWithAs)(function(e,t){let n=(0,o.useId)(),{id:r=`headlessui-dialog-${n}`,open:T,onClose:F,initialFocus:S,role:k="dialog",autoFocus:M=!0,__demoMode:$=!1,unmount:R=!1,...L}=e,I=(0,o.useRef)(!1);k="dialog"===k||"alertdialog"===k?k:(I.current||(I.current=!0,console.warn(`Invalid role [${k}] passed to . Only \`dialog\` and and \`alertdialog\` are supported. Using \`dialog\` instead.`)),"dialog");let P=(0,b.useOpenClosed)();void 0===T&&null!==P&&(T=(P&b.State.Open)===b.State.Open);let O=(0,o.useRef)(null),N=(0,g.useSyncRefs)(O,t),H=(0,f.useOwnerDocument)(O.current),A=+!T,[j,W]=(0,o.useReducer)(q,{titleId:null,descriptionId:null,panelRef:(0,o.createRef)()}),Y=(0,l.useEvent)(()=>F(!1)),V=(0,l.useEvent)(e=>W({type:0,id:e})),_=!!(0,v.useServerHandoffComplete)()&&0===A,[G,K]=(0,U.useNestedPortals)(),Q=(0,p.useMainTreeNode)(),{resolveContainers:ee}=(0,p.useRootContainers)({mainTreeNode:Q,portals:G,defaultContainers:[{get current(){var et;return null!=(et=j.panelRef.current)?et:O.current}}]}),en=null!==P&&(P&b.State.Closing)===b.State.Closing;(0,a.useInertOthers)(!$&&!en&&_,{allowed:(0,l.useEvent)(()=>{var e,t;return[null!=(t=null==(e=O.current)?void 0:e.closest("[data-headlessui-portal]"))?t:null]}),disallowed:(0,l.useEvent)(()=>{var e;return[null!=(e=null==Q?void 0:Q.closest("body > *:not(#headlessui-portal-root)"))?e:null]})});let er=x.stackMachines.get(null);(0,u.useIsoMorphicEffect)(()=>{if(_)return er.actions.push(r),()=>er.actions.pop(r)},[er,r,_]);let eo=(0,y.useSlice)(er,(0,o.useCallback)(e=>er.selectors.isTop(e,r),[er,r]));(0,d.useOutsideClick)(eo,ee,e=>{e.preventDefault(),Y()}),(0,i.useEscape)(eo,null==H?void 0:H.defaultView,e=>{e.preventDefault(),e.stopPropagation(),document.activeElement&&"blur"in document.activeElement&&"function"==typeof document.activeElement.blur&&document.activeElement.blur(),Y()}),(0,m.useScrollLock)(!$&&!en&&_,H,ee),(0,c.useOnDisappear)(_,O,Y);let[ei,el]=(0,C.useDescriptions)(),ea=(0,o.useMemo)(()=>[{dialogState:A,close:Y,setTitleId:V,unmount:R},j],[A,Y,V,R,j]),es=(0,h.useSlot)({open:0===A}),eu={ref:N,id:r,role:k,tabIndex:-1,"aria-modal":$?void 0:0===A||void 0,"aria-labelledby":j.titleId,"aria-describedby":ei,unmount:R},ec=!(0,s.useIsTouchDevice)(),ed=z.None;_&&!$&&(ed|=z.RestoreFocus,ed|=z.TabLock,M&&(ed|=z.AutoFocus),ec&&(ed|=z.InitialFocus));let ef=(0,D.useRender)();return o.default.createElement(b.ResetOpenClosedProvider,null,o.default.createElement(w.ForcePortalRoot,{force:!0},o.default.createElement(U.Portal,null,o.default.createElement(Z.Provider,{value:ea},o.default.createElement(U.PortalGroup,{target:O},o.default.createElement(w.ForcePortalRoot,{force:!1},o.default.createElement(el,{slot:es},o.default.createElement(K,null,o.default.createElement(B,{initialFocus:S,initialFocusFallback:O,containers:ee,features:ed},o.default.createElement(E.CloseProvider,{value:Y},ef({ourProps:eu,theirProps:L,slot:es,defaultTag:X,features:J,visible:0===A,name:"Dialog"})))))))))))}),X="div",J=D.RenderFeatures.RenderStrategy|D.RenderFeatures.Static,ee=(0,D.forwardRefWithAs)(function(e,t){let{transition:n=!1,open:r,...i}=e,l=(0,b.useOpenClosed)(),a=e.hasOwnProperty("open")||null!==l,s=e.hasOwnProperty("onClose");if(!a&&!s)throw Error("You have to provide an `open` and an `onClose` prop to the `Dialog` component.");if(!a)throw Error("You provided an `onClose` prop to the `Dialog`, but forgot an `open` prop.");if(!s)throw Error("You provided an `open` prop to the `Dialog`, but forgot an `onClose` prop.");if(!l&&"boolean"!=typeof e.open)throw Error(`You provided an \`open\` prop to the \`Dialog\`, but the value is not a boolean. Received: ${e.open}`);if("function"!=typeof e.onClose)throw Error(`You provided an \`onClose\` prop to the \`Dialog\`, but the value is not a function. Received: ${e.onClose}`);return(void 0!==r||n)&&!i.static?o.default.createElement(p.MainTreeProvider,null,o.default.createElement(Y.Transition,{show:r,transition:n,unmount:i.unmount},o.default.createElement(Q,{ref:t,...i}))):o.default.createElement(p.MainTreeProvider,null,o.default.createElement(Q,{ref:t,open:r,...i}))}),et=(0,D.forwardRefWithAs)(function(e,t){let n=(0,o.useId)(),{id:r=`headlessui-dialog-panel-${n}`,transition:i=!1,...a}=e,[{dialogState:s,unmount:u},c]=K("Dialog.Panel"),d=(0,g.useSyncRefs)(t,c.panelRef),f=(0,h.useSlot)({open:0===s}),p=(0,l.useEvent)(e=>{e.stopPropagation()}),m=i?Y.TransitionChild:o.Fragment,v=(0,D.useRender)();return o.default.createElement(m,{...i?{unmount:u}:{}},v({ourProps:{ref:d,id:r,onClick:p},theirProps:a,slot:f,defaultTag:"div",name:"Dialog.Panel"}))}),en=(0,D.forwardRefWithAs)(function(e,t){let{transition:n=!1,...r}=e,[{dialogState:i,unmount:l}]=K("Dialog.Backdrop"),a=(0,h.useSlot)({open:0===i}),s=n?Y.TransitionChild:o.Fragment,u=(0,D.useRender)();return o.default.createElement(s,{...n?{unmount:l}:{}},u({ourProps:{ref:t,"aria-hidden":!0},theirProps:r,slot:a,defaultTag:"div",name:"Dialog.Backdrop"}))}),er=(0,D.forwardRefWithAs)(function(e,t){let n=(0,o.useId)(),{id:r=`headlessui-dialog-title-${n}`,...i}=e,[{dialogState:l,setTitleId:a}]=K("Dialog.Title"),s=(0,g.useSyncRefs)(t);(0,o.useEffect)(()=>(a(r),()=>a(null)),[r,a]);let u=(0,h.useSlot)({open:0===l});return(0,D.useRender)()({ourProps:{ref:s,id:r},theirProps:i,slot:u,defaultTag:"h2",name:"Dialog.Title"})}),eo=(C.Description,Object.assign(ee,{Panel:et,Title:er,Description:C.Description}));e.s(["Dialog",0,eo,"DialogBackdrop",0,en,"DialogPanel",0,et,"DialogTitle",0,er],490106)},807324,e=>{"use strict";var t=e.i(736893);function n(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return Object.keys(e).reduce((t,n)=>{if(n.startsWith("inkscape:")||n.startsWith("sodipodi:")||n.startsWith("xmlns:inkscape")||n.startsWith("xmlns:sodipodi")||n.startsWith("xmlns:svg")||"data-name"===n)return t;let r=e[n];if(void 0===r||"xmlnsInkscape"===(n=(n=n.replace(/(-\w)/g,e=>e[1].toUpperCase())).replace(/(:\w)/g,e=>e[1].toUpperCase()))||"xmlnsSodipodi"===n||"xmlnsSvg"===n||"dataName"===n)return t;switch(n){case"class":t.className=r,delete t.class;break;case"style":t.style=r.split(";").reduce((e,t)=>{let n=t?.split(":");return n[0]&&n[1]&&(e[n[0].replace(/(-\w)/g,e=>e[1].toUpperCase())]=n[1]),e},{});break;default:t[n]=r}return t},{})}let r=e=>{let{ref:r,...o}=e,{data:i,className:l,onClick:a,style:s,...u}=o;return function e(r,o,i){return i?t.createElement(r.name,{key:o,...n(r.attributes),...i},(r.children||[]).map((t,n)=>e(t,`${o}-${r.name}-${n}`))):t.createElement(r.name,{key:o,...n(r.attributes)},(r.children||[]).map((t,n)=>e(t,`${o}-${r.name}-${n}`)))}(i.icon,`svg-${i.name}`,{className:l,onClick:a,style:s,"data-icon":i.name,"aria-hidden":"true",...u,ref:r})};r.displayName="IconBase",e.s(["default",0,r],807324)},421850,e=>{"use strict";var t=e.i(220365),n=e.i(339548);let r=(0,n.createContext)({setShowAccountSettingModal:t.noop,setShowApiBasedExtensionModal:t.noop,setShowModerationSettingModal:t.noop,setShowExternalDataToolModal:t.noop,setShowPricingModal:t.noop,setShowAnnotationFullModal:t.noop,setShowModelModal:t.noop,setShowExternalKnowledgeAPIModal:t.noop,setShowModelLoadBalancingModal:t.noop,setShowOpeningModal:t.noop,setShowUpdatePluginModal:t.noop,setShowEducationExpireNoticeModal:t.noop,setShowTriggerEventsLimitModal:t.noop});e.s(["ModalContext",0,r,"useModalContext",0,()=>(0,n.useContext)(r),"useModalContextSelector",0,e=>(0,n.useContextSelector)(r,e)])},21151,e=>{"use strict";var t=e.i(835240),n=e.i(490106),r=e.i(434362),o=e.i(220365),i=e.i(736893),l=e.i(935139);e.s(["default",0,function(e){let{className:a,wrapperClassName:s,containerClassName:u,isShow:c,onClose:d=o.noop,title:f,description:p,children:m,closable:v=!1,overflowVisible:h=!1,highPriority:g=!1,overlayOpacity:E=!1,clickOutsideNotClose:b=!1}=e;return(0,t.jsx)(r.Transition,{appear:!0,show:c,as:i.Fragment,children:(0,t.jsxs)(n.Dialog,{as:"div",className:(0,l.cn)("relative",g?"z-[1100]":"z-[60]",s),onClose:b?o.noop:d,children:[(0,t.jsx)(r.TransitionChild,{children:(0,t.jsx)("div",{className:(0,l.cn)("fixed inset-0",E?"bg-workflow-canvas-canvas-overlay":"bg-background-overlay","duration-300 ease-in data-[closed]:opacity-0","data-[enter]:opacity-100","data-[leave]:opacity-0")})}),(0,t.jsx)("div",{className:"fixed inset-0 overflow-y-auto",onClick:e=>{e.preventDefault(),e.stopPropagation()},children:(0,t.jsx)("div",{className:(0,l.cn)("flex min-h-full items-center justify-center p-4 text-center",u),children:(0,t.jsx)(r.TransitionChild,{children:(0,t.jsxs)(n.DialogPanel,{className:(0,l.cn)("relative w-full max-w-[480px] rounded-2xl bg-components-panel-bg p-6 text-left align-middle shadow-xl transition-all",h?"overflow-visible":"overflow-hidden","duration-100 ease-in data-[closed]:scale-95 data-[closed]:opacity-0","data-[enter]:scale-100 data-[enter]:opacity-100","data-[enter]:scale-95 data-[leave]:opacity-0",a),children:[!!f&&(0,t.jsx)(n.DialogTitle,{as:"h3",className:"text-text-primary title-2xl-semi-bold",children:f}),!!p&&(0,t.jsx)("div",{className:"mt-2 text-text-secondary body-md-regular",children:p}),v&&(0,t.jsx)("div",{className:"absolute right-6 top-6 z-10 flex h-5 w-5 items-center justify-center rounded-2xl hover:cursor-pointer hover:bg-state-base-hover",children:(0,t.jsx)("span",{className:"i-ri-close-line h-4 w-4 text-text-tertiary",onClick:e=>{e.stopPropagation(),d()},"data-testid":"modal-close-button"})}),m]})})})})]})})}])},84148,484402,791764,e=>{"use strict";let t,n;var r=e.i(736893),o=((t=o||{})[t.Left=0]="Left",t[t.Right=2]="Right",t);e.s(["MouseButton",0,o],484402);var i=e.i(658551),l=e.i(88206);e.s(["useHandleToggle",0,function(e){let t=(0,r.useRef)(null);return{onPointerDown:(0,l.useEvent)(n=>{t.current=n.pointerType,(0,i.isDisabledReactIssue7711)(n.currentTarget)||"mouse"!==n.pointerType||n.button!==o.Left||(n.preventDefault(),e(n))}),onClick:(0,l.useEvent)(n=>{"mouse"!==t.current&&((0,i.isDisabledReactIssue7711)(n.currentTarget)||e(n))})}}],84148);var a=e.i(314608),s=e.i(618266),u=((n=u||{})[n.Ignore=0]="Ignore",n[n.Select=1]="Select",n[n.Close=2]="Close",n);e.s(["Action",0,{Ignore:{kind:0},Select:e=>({kind:1,target:e}),Close:{kind:2}},"useQuickRelease",0,function(e,t){let{trigger:n,action:o,close:i,select:l}=t,u=(0,r.useRef)(null),c=(0,r.useRef)(null),d=(0,r.useRef)(null);(0,s.useDocumentEvent)(e&&null!==n,"pointerdown",e=>{a.isNode(null==e?void 0:e.target)&&null!=n&&n.contains(e.target)&&(c.current=e.x,d.current=e.y,u.current=e.timeStamp)}),(0,s.useDocumentEvent)(e&&null!==n,"pointerup",e=>{var t,n;let r=u.current;if(null===r||(u.current=null,!a.isHTMLorSVGElement(e.target))||5>Math.abs(e.x-(null!=(t=c.current)?t:e.x))&&5>Math.abs(e.y-(null!=(n=d.current)?n:e.y)))return;let s=o(e);switch(s.kind){case 0:return;case 1:e.timeStamp-r>200&&(l(s.target),i());break;case 2:i()}},{capture:!0})}],791764)},318605,e=>{"use strict";var t=e.i(736893),n=e.i(314608);let r=/([\u2700-\u27BF]|[\uE000-\uF8FF]|\uD83C[\uDC00-\uDFFF]|\uD83D[\uDC00-\uDFFF]|[\u2011-\u26FF]|\uD83E[\uDD10-\uDDFF])/g;function o(e){var t,o;let i=null!=(t=e.innerText)?t:"",l=e.cloneNode(!0);if(!n.isHTMLElement(l))return i;let a=!1;for(let e of l.querySelectorAll('[hidden],[aria-hidden],[role="img"]'))e.remove(),a=!0;let s=a?null!=(o=l.innerText)?o:"":i;return r.test(s)&&(s=s.replace(r,"")),s}var i=e.i(88206);e.s(["useTextValue",0,function(e){let n=(0,t.useRef)(""),r=(0,t.useRef)("");return(0,i.useEvent)(()=>{let t=e.current;if(!t)return"";let i=t.innerText;if(n.current===i)return r.current;let l=(function(e){let t=e.getAttribute("aria-label");if("string"==typeof t)return t.trim();let n=e.getAttribute("aria-labelledby");if(n){let e=n.split(" ").map(e=>{let t=document.getElementById(e);if(t){let e=t.getAttribute("aria-label");return"string"==typeof e?e.trim():o(t).trim()}return null}).filter(Boolean);if(e.length>0)return e.join(", ")}return o(e).trim()})(t).trim().toLowerCase();return n.current=i,r.current=l,l})}],318605)},259416,e=>{"use strict";var t=e.i(736893);function n(e){return[e.screenX,e.screenY]}e.s(["useTrackedPointer",0,function(){let e=(0,t.useRef)([-1,-1]);return{wasMoved(t){let r=n(t);return(e.current[0]!==r[0]||e.current[1]!==r[1])&&(e.current=r,!0)},update(t){e.current=n(t)}}}])},566136,e=>{"use strict";let t;var n=((t=n||{})[t.First=0]="First",t[t.Previous=1]="Previous",t[t.Next=2]="Next",t[t.Last=3]="Last",t[t.Specific=4]="Specific",t[t.Nothing=5]="Nothing",t);e.s(["Focus",0,n,"calculateActiveIndex",0,function(e,t){let n=t.resolveItems();if(n.length<=0)return null;let r=t.resolveActiveIndex(),o=null!=r?r:-1;switch(e.focus){case 0:for(let e=0;e=0;--e)if(!t.resolveDisabled(n[e],e,n))return e;return r;case 2:for(let e=o+1;e=0;--e)if(!t.resolveDisabled(n[e],e,n))return e;return r;case 4:for(let r=0;r{"use strict";var t=e.i(736893);let n=(0,t.createContext)(void 0);e.s(["useProvidedId",0,function(){return(0,t.useContext)(n)}])},282595,77793,e=>{"use strict";var t=e.i(736893),n=e.i(88206),r=e.i(637759),o=e.i(749744),i=e.i(983877),l=e.i(437627),a=e.i(807406),s=e.i(314608),u=e.i(360538);let c=(0,t.createContext)(null);function d(){let e=(0,t.useContext)(c);if(null===e){let e=Error("You used a