(globalThis["TURBOPACK_remote_chunk_loading_global_wx-next-web"]||(globalThis["TURBOPACK_remote_chunk_loading_global_wx-next-web"]=[])).push(["object"==typeof document?document.currentScript:void 0,698900,843265,e=>{"use strict";var t,n=e.i(247865),r=e.i(543836),o=e.i(942928),a=e.i(271359);function i(e){let t=n.useRef(e);return n.useEffect(()=>{t.current=e}),n.useMemo(()=>(...e)=>t.current?.(...e),[])}(0,Object.defineProperty)(i,"name",{value:"useCallbackRef",configurable:!0}),e.s(["useCallbackRef",0,i],843265);var u=e.i(902875),c=Object.defineProperty,s=(e,t)=>c(e,"name",{value:t,configurable:!0}),l="dismissableLayer.update",d=n.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set,dismissableSurfaces:new Set}),f=n.forwardRef(s(function(e,c){let{disableOutsidePointerEvents:f=!1,deferPointerDownOutside:v=!1,onEscapeKeyDown:p,onPointerDownOutside:y,onFocusOutside:E,onInteractOutside:g,onDismiss:w,...C}=e,S=n.useContext(d),[k,L]=n.useState(null),P=k?.ownerDocument??globalThis?.document,[,R]=n.useState({}),O=(0,a.useComposedRefs)(c,L),T=Array.from(S.layers),[A]=[...S.layersWithOutsidePointerEventsDisabled].slice(-1),D=A?T.indexOf(A):-1,M=k?T.indexOf(k):-1,x=S.layersWithOutsidePointerEventsDisabled.size>0,N=M>=D,F=n.useRef(!1),_=m(e=>{y?.(e),g?.(e),e.defaultPrevented||w?.()},{ownerDocument:P,deferPointerDownOutside:v,isDeferredPointerDownOutsideRef:F,dismissableSurfaces:S.dismissableSurfaces,shouldHandlePointerDownOutside:n.useCallback(e=>{if(!(e instanceof Node))return!1;let t=[...S.branches].some(t=>t.contains(e));return N&&!t},[S.branches,N])}),I=h(e=>{if(v&&F.current)return;let t=e.target;![...S.branches].some(e=>e.contains(t))&&(E?.(e),g?.(e),e.defaultPrevented||w?.())},P),W=!!k&&M===T.length-1,j=i(e=>{"Escape"===e.key&&(p?.(e),!e.defaultPrevented&&w&&(e.preventDefault(),w()))});return n.useEffect(()=>{if(W)return P.addEventListener("keydown",j,{capture:!0}),()=>P.removeEventListener("keydown",j,{capture:!0})},[P,W,j]),n.useEffect(()=>{if(k)return f&&(0===S.layersWithOutsidePointerEventsDisabled.size&&(t=P.body.style.pointerEvents,P.body.style.pointerEvents="none"),S.layersWithOutsidePointerEventsDisabled.add(k)),S.layers.add(k),b(),()=>{f&&(S.layersWithOutsidePointerEventsDisabled.delete(k),0===S.layersWithOutsidePointerEventsDisabled.size&&(P.body.style.pointerEvents=t))}},[k,P,f,S]),n.useEffect(()=>()=>{k&&(S.layers.delete(k),S.layersWithOutsidePointerEventsDisabled.delete(k),b())},[k,S]),n.useEffect(()=>{let e=s(()=>R({}),"handleUpdate");return document.addEventListener(l,e),()=>document.removeEventListener(l,e)},[]),(0,u.jsx)(o.Primitive.div,{...C,ref:O,style:{pointerEvents:x?N?"auto":"none":void 0,...e.style},onFocusCapture:(0,r.composeEventHandlers)(e.onFocusCapture,I.onFocusCapture),onBlurCapture:(0,r.composeEventHandlers)(e.onBlurCapture,I.onBlurCapture),onPointerDownCapture:(0,r.composeEventHandlers)(e.onPointerDownCapture,_.onPointerDownCapture)})},"DismissableLayer"));function v(){let e=n.useContext(d),[t,r]=n.useState(null);return n.useEffect(()=>{if(t)return e.dismissableSurfaces.add(t),()=>{e.dismissableSurfaces.delete(t)}},[t,e.dismissableSurfaces]),r}s(v,"useDismissableLayerSurface");var p=s(()=>!0,"IS_TRUE");function m(e,t){let{ownerDocument:r=globalThis?.document,deferPointerDownOutside:o=!1,isDeferredPointerDownOutsideRef:a,dismissableSurfaces:u,shouldHandlePointerDownOutside:c=p}=t,l=i(e),d=n.useRef(!1),f=n.useRef(!1),v=n.useRef(new Map),m=n.useRef(()=>{});return n.useEffect(()=>{function e(){f.current=!1,a.current=!1,v.current.clear()}function t(){return Array.from(v.current.values()).some(Boolean)}function n(e){if(!f.current)return;let t=e.target;t instanceof Node&&[...u].some(e=>e.contains(t))||v.current.set(e.type,!0),"click"===e.type&&window.setTimeout(()=>{f.current&&m.current()},0)}function i(e){f.current&&v.current.set(e.type,!1)}s(e,"resetOutsideInteraction"),s(t,"isOutsideInteractionIntercepted"),s(n,"handleInteractionCapture"),s(i,"handleInteractionBubble");let p=s(n=>{if(n.target&&!d.current){let i=function(){r.removeEventListener("click",m.current);let n=t();e(),n||y("dismissableLayer.pointerDownOutside",l,u,{discrete:!0})};if(s(i,"handleAndDispatchPointerDownOutsideEvent"),!c(n.target)){r.removeEventListener("click",m.current),e(),d.current=!1;return}let u={originalEvent:n};f.current=!0,a.current=o&&0===n.button,v.current.clear(),o&&0===n.button?(r.removeEventListener("click",m.current),m.current=i,r.addEventListener("click",m.current,{once:!0})):i()}else r.removeEventListener("click",m.current),e();d.current=!1},"handlePointerDown"),h=["pointerup","mousedown","mouseup","touchstart","touchend","click"];for(let e of h)r.addEventListener(e,n,!0),r.addEventListener(e,i);let b=window.setTimeout(()=>{r.addEventListener("pointerdown",p)},0);return()=>{for(let e of(window.clearTimeout(b),r.removeEventListener("pointerdown",p),r.removeEventListener("click",m.current),h))r.removeEventListener(e,n,!0),r.removeEventListener(e,i)}},[r,l,o,a,u,c]),{onPointerDownCapture:s(()=>d.current=!0,"onPointerDownCapture")}}function h(e,t=globalThis?.document){let r=i(e),o=n.useRef(!1);return n.useEffect(()=>{let e=s(e=>{e.target&&!o.current&&y("dismissableLayer.focusOutside",r,{originalEvent:e},{discrete:!1})},"handleFocus");return t.addEventListener("focusin",e),()=>t.removeEventListener("focusin",e)},[t,r]),{onFocusCapture:s(()=>o.current=!0,"onFocusCapture"),onBlurCapture:s(()=>o.current=!1,"onBlurCapture")}}function b(){let e=new CustomEvent(l);document.dispatchEvent(e)}function y(e,t,n,{discrete:r}){let a=n.originalEvent.target,i=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:n});t&&a.addEventListener(e,t,{once:!0}),r?(0,o.dispatchDiscreteCustomEvent)(a,i):a.dispatchEvent(i)}s(m,"usePointerDownOutside"),s(h,"useFocusOutside"),s(b,"dispatchUpdate"),s(y,"handleAndDispatchCustomEvent"),e.s(["DismissableLayer",0,f,"useDismissableLayerSurface",0,v],698900)},235453,e=>{"use strict";var t=e.i(247865),n=Object.defineProperty,r=(e,t)=>n(e,"name",{value:t,configurable:!0}),o=0,a=null;function i(){t.useEffect(()=>{a||(a={start:u(),end:u()});let{start:e,end:t}=a;return document.body.firstElementChild!==e&&document.body.insertAdjacentElement("afterbegin",e),document.body.lastElementChild!==t&&document.body.insertAdjacentElement("beforeend",t),o++,()=>{1===o&&(a?.start.remove(),a?.end.remove(),a=null),o=Math.max(0,o-1)}},[])}function u(){let e=document.createElement("span");return e.setAttribute("data-radix-focus-guard",""),e.tabIndex=0,e.style.outline="none",e.style.opacity="0",e.style.position="fixed",e.style.pointerEvents="none",e}r(function(e){return i(),e.children},"FocusGuards"),r(i,"useFocusGuards"),r(u,"createFocusGuard"),e.s(["useFocusGuards",0,i])},546504,778469,e=>{"use strict";var t=e.i(247865),n=e.i(271359),r=e.i(942928),o=e.i(843265),a=e.i(902875),i=Object.defineProperty,u=(e,t)=>i(e,"name",{value:t,configurable:!0}),c="focusScope.autoFocusOnMount",s="focusScope.autoFocusOnUnmount",l={bubbles:!1,cancelable:!0},d=t.forwardRef(u(function(e,i){let{loop:d=!1,trapped:m=!1,onMountAutoFocus:h,onUnmountAutoFocus:b,...g}=e,[w,S]=t.useState(null),k=(0,o.useCallbackRef)(h),L=(0,o.useCallbackRef)(b),P=t.useRef(null),R=(0,n.useComposedRefs)(i,S),O=t.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;t.useEffect(()=>{if(m){let e=function(e){if(O.paused||!w)return;let t=e.target;w.contains(t)?P.current=t:y(P.current,{select:!0})},t=function(e){if(O.paused||!w)return;let t=e.relatedTarget;null!==t&&(w.contains(t)||y(P.current,{select:!0}))},n=function(e){if(document.activeElement===document.body)for(let t of e)t.removedNodes.length>0&&y(w)};u(e,"handleFocusIn"),u(t,"handleFocusOut"),u(n,"handleMutations"),document.addEventListener("focusin",e),document.addEventListener("focusout",t);let r=new MutationObserver(n);return w&&r.observe(w,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",e),document.removeEventListener("focusout",t),r.disconnect()}}},[m,w,O.paused]),t.useEffect(()=>{if(w){E.add(O);let e=document.activeElement;if(!w.contains(e)){let t=new CustomEvent(c,l);w.addEventListener(c,k),w.dispatchEvent(t),t.defaultPrevented||(f(C(p(w)),{select:!0}),document.activeElement===e&&y(w))}return()=>{w.removeEventListener(c,k),setTimeout(()=>{let t=new CustomEvent(s,l);w.addEventListener(s,L),w.dispatchEvent(t),t.defaultPrevented||y(e??document.body,{select:!0}),w.removeEventListener(s,L),E.remove(O)},0)}}},[w,k,L,O]);let T=t.useCallback(e=>{if(!d&&!m||O.paused)return;let t="Tab"===e.key&&!e.altKey&&!e.ctrlKey&&!e.metaKey,n=document.activeElement;if(t&&n){let t=e.currentTarget,[r,o]=v(t);r&&o?e.shiftKey||n!==o?e.shiftKey&&n===r&&(e.preventDefault(),d&&y(o,{select:!0})):(e.preventDefault(),d&&y(r,{select:!0})):n===t&&e.preventDefault()}},[d,m,O.paused]);return(0,a.jsx)(r.Primitive.div,{tabIndex:-1,...g,ref:R,onKeyDown:T})},"FocusScope"));function f(e,{select:t=!1}={}){let n=document.activeElement;for(let r of e)if(y(r,{select:t}),document.activeElement!==n)return}function v(e){let t=p(e);return[m(t,e),m(t.reverse(),e)]}function p(e){let t=[],n=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:u(e=>{let t="INPUT"===e.tagName&&"hidden"===e.type;return e.disabled||e.hidden||t?NodeFilter.FILTER_SKIP:e.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP},"acceptNode")});for(;n.nextNode();)t.push(n.currentNode);return t}function m(e,t){let n="function"==typeof t.checkVisibility&&t.checkVisibility({checkVisibilityCSS:!0});for(let r of e)if(!(n?!r.checkVisibility({checkVisibilityCSS:!0}):h(r,{upTo:t})))return r}function h(e,{upTo:t}){if("hidden"===getComputedStyle(e).visibility)return!0;for(;e&&(void 0===t||e!==t);){if("none"===getComputedStyle(e).display)return!0;e=e.parentElement}return!1}function b(e){return e instanceof HTMLInputElement&&"select"in e}function y(e,{select:t=!1}={}){if(e&&e.focus){let n=document.activeElement;e.focus({preventScroll:!0}),e!==n&&b(e)&&t&&e.select()}}u(f,"focusFirst"),u(v,"getTabbableEdges"),u(p,"getTabbableCandidates"),u(m,"findVisible"),u(h,"isHidden"),u(b,"isSelectableInput"),u(y,"focus");var E=g();function g(){let e=[];return{add(t){let n=e[0];t!==n&&n?.pause(),(e=w(e,t)).unshift(t)},remove(t){e=w(e,t),e[0]?.resume()}}}function w(e,t){let n=[...e],r=n.indexOf(t);return -1!==r&&n.splice(r,1),n}function C(e){return e.filter(e=>"A"!==e.tagName)}u(g,"createFocusScopesStack"),u(w,"arrayRemove"),u(C,"removeLinks"),e.s(["FocusScope",0,d],546504);var S=e.i(352825),k=e.i(714035),L=Object.defineProperty,P=t.forwardRef(L(function(e,n){let{container:o,...i}=e,[u,c]=t.useState(!1);(0,k.useLayoutEffect)(()=>c(!0),[]);let s=o||u&&globalThis?.document?.body;return s?S.createPortal((0,a.jsx)(r.Primitive.div,{...i,ref:n}),s):null},"name",{value:"Portal",configurable:!0}));e.s(["Portal",0,P],778469)},73772,e=>{"use strict";var t=new WeakMap,n=new WeakMap,r={},o=0,a=function(e){return e&&(e.host||a(e.parentNode))},i=function(e,i,u,c){var s=(Array.isArray(e)?e:[e]).map(function(e){if(i.contains(e))return e;var t=a(e);return t&&i.contains(t)?t:(console.error("aria-hidden",e,"in not contained inside",i,". Doing nothing"),null)}).filter(function(e){return!!e});r[u]||(r[u]=new WeakMap);var l=r[u],d=[],f=new Set,v=new Set(s),p=function(e){!e||f.has(e)||(f.add(e),p(e.parentNode))};s.forEach(p);var m=function(e){!e||v.has(e)||Array.prototype.forEach.call(e.children,function(e){if(f.has(e))m(e);else try{var r=e.getAttribute(c),o=null!==r&&"false"!==r,a=(t.get(e)||0)+1,i=(l.get(e)||0)+1;t.set(e,a),l.set(e,i),d.push(e),1===a&&o&&n.set(e,!0),1===i&&e.setAttribute(u,"true"),o||e.setAttribute(c,"true")}catch(t){console.error("aria-hidden: cannot operate on ",e,t)}})};return m(i),f.clear(),o++,function(){d.forEach(function(e){var r=t.get(e)-1,o=l.get(e)-1;t.set(e,r),l.set(e,o),r||(n.has(e)||e.removeAttribute(c),n.delete(e)),o||e.removeAttribute(u)}),--o||(t=new WeakMap,t=new WeakMap,n=new WeakMap,r={})}};e.s(["hideOthers",0,function(e,t,n){void 0===n&&(n="data-aria-hidden");var r=Array.from(Array.isArray(e)?e:[e]),o=t||("u"{"use strict";var t,n,r,o,a,i,u,c=function(){return(c=Object.assign||function(e){for(var t,n=1,r=arguments.length;nt.indexOf(r)&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var o=0,r=Object.getOwnPropertySymbols(e);ot.indexOf(r[o])&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n}var l=("function"==typeof SuppressedError&&SuppressedError,e.i(247865)),d="right-scroll-bar-position",f="width-before-scroll-bar";function v(e,t){return"function"==typeof e?e(t):e&&(e.current=t),e}var p="u">typeof window?l.useLayoutEffect:l.useEffect,m=new WeakMap,h=(void 0===t&&(t={}),(void 0===n&&(n=function(e){return e}),r=[],o=!1,a={read:function(){if(o)throw Error("Sidecar: could not `read` from an `assigned` medium. `read` could be used only with `useMedium`.");return r.length?r[r.length-1]:null},useMedium:function(e){var t=n(e,o);return r.push(t),function(){r=r.filter(function(e){return e!==t})}},assignSyncMedium:function(e){for(o=!0;r.length;){var t=r;r=[],t.forEach(e)}r={push:function(t){return e(t)},filter:function(){return r}}},assignMedium:function(e){o=!0;var t=[];if(r.length){var n=r;r=[],n.forEach(e),t=r}var a=function(){var n=t;t=[],n.forEach(e)},i=function(){return Promise.resolve().then(a)};i(),r={push:function(e){t.push(e),i()},filter:function(e){return t=t.filter(e),r}}}}).options=c({async:!0,ssr:!1},t),a),b=function(){},y=l.forwardRef(function(e,t){var n,r,o,a,i=l.useRef(null),u=l.useState({onScrollCapture:b,onWheelCapture:b,onTouchMoveCapture:b}),d=u[0],f=u[1],y=e.forwardProps,E=e.children,g=e.className,w=e.removeScrollBar,C=e.enabled,S=e.shards,k=e.sideCar,L=e.noRelative,P=e.noIsolation,R=e.inert,O=e.allowPinchZoom,T=e.as,A=e.gapMode,D=s(e,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noRelative","noIsolation","inert","allowPinchZoom","as","gapMode"]),M=(n=[i,t],r=function(e){return n.forEach(function(t){return v(t,e)})},(o=(0,l.useState)(function(){return{value:null,callback:r,facade:{get current(){return o.value},set current(value){var e=o.value;e!==value&&(o.value=value,o.callback(value,e))}}}})[0]).callback=r,a=o.facade,p(function(){var e=m.get(a);if(e){var t=new Set(e),r=new Set(n),o=a.current;t.forEach(function(e){r.has(e)||v(e,null)}),r.forEach(function(e){t.has(e)||v(e,o)})}m.set(a,n)},[n]),a),x=c(c({},D),d);return l.createElement(l.Fragment,null,C&&l.createElement(k,{sideCar:h,removeScrollBar:w,shards:S,noRelative:L,noIsolation:P,inert:R,setCallbacks:f,allowPinchZoom:!!O,lockRef:i,gapMode:A}),y?l.cloneElement(l.Children.only(E),c(c({},x),{ref:M})):l.createElement(void 0===T?"div":T,c({},x,{className:g,ref:M}),E))});y.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1},y.classNames={fullWidth:f,zeroRight:d};var E=function(e){var t=e.sideCar,n=s(e,["sideCar"]);if(!t)throw Error("Sidecar: please provide `sideCar` property to import the right car");var r=t.read();if(!r)throw Error("Sidecar medium not found");return l.createElement(r,c({},n))};E.isSideCarExport=!0;var g=function(){var e=0,t=null;return{add:function(n){if(0==e&&(t=function(){if(!document)return null;var e=document.createElement("style");e.type="text/css";var t=u||("u">typeof __webpack_nonce__?__webpack_nonce__:void 0);return t&&e.setAttribute("nonce",t),e}())){var r,o;(r=t).styleSheet?r.styleSheet.cssText=n:r.appendChild(document.createTextNode(n)),o=t,(document.head||document.getElementsByTagName("head")[0]).appendChild(o)}e++},remove:function(){--e||!t||(t.parentNode&&t.parentNode.removeChild(t),t=null)}}},w=function(){var e=g();return function(t,n){l.useEffect(function(){return e.add(t),function(){e.remove()}},[t&&n])}},C=function(){var e=w();return function(t){return e(t.styles,t.dynamic),null}},S={left:0,top:0,right:0,gap:0},k=function(e){return parseInt(e||"",10)||0},L=function(e){var t=window.getComputedStyle(document.body),n=t["padding"===e?"paddingLeft":"marginLeft"],r=t["padding"===e?"paddingTop":"marginTop"],o=t["padding"===e?"paddingRight":"marginRight"];return[k(n),k(r),k(o)]},P=function(e){if(void 0===e&&(e="margin"),"u"