@getcredify/credify-insurance-widget 1.39.0 → 1.41.0
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/README.md +69 -3
- package/dist/api-RBpxlUxA.js +51 -0
- package/dist/components/ProductChooser.d.ts +5 -0
- package/dist/components/ScreenShareButton.d.ts +4 -0
- package/dist/components/Widget.d.ts +13 -0
- package/dist/components/WidgetErrorFallback.d.ts +11 -0
- package/dist/components/index.d.ts +9 -0
- package/dist/credify-insurance-widget.css +1 -1
- package/dist/dob-calendar-RIJ5S6YU-CPTnehH2.js +2933 -0
- package/dist/fixtures-ijbZ16Zg-CD1k11fg.js +276 -0
- package/dist/iframe/assets/dob-calendar-RIJ5S6YU-D1-0B2xV.css +1 -0
- package/dist/iframe/assets/dob-calendar-RIJ5S6YU-DkeMmMY0.js +1 -0
- package/dist/iframe/assets/fixtures-ijbZ16Zg-Bj-DhqkB.js +1 -0
- package/dist/iframe/assets/iframe-CfQAC0Hv.js +494 -0
- package/dist/iframe/assets/iframe-DFqQdMHv.css +1 -0
- package/dist/iframe/assets/mockJump-CL8w249w-D4zKPVys.js +1 -0
- package/dist/iframe/assets/zipCities-CU_i9iT--B1AIvNRh.js +1 -0
- package/dist/iframe/iframe.html +2 -2
- package/dist/index.d.ts +76 -0
- package/dist/index.es.js +6 -26301
- package/dist/index.umd.js +436 -107
- package/dist/internal/IframeWidgetController.d.ts +6 -0
- package/dist/internal/WidgetController.d.ts +6 -0
- package/dist/internal/configureKit.d.ts +4 -0
- package/dist/internal/ensureFont.d.ts +2 -0
- package/dist/mock/config.d.ts +30 -0
- package/dist/mock/installMockFetch.d.ts +6 -0
- package/dist/mockJump-CL8w249w-KvYoZQMN.js +19 -0
- package/dist/utils/api.d.ts +24 -0
- package/dist/utils/events.d.ts +126 -0
- package/dist/utils/har/recorder.d.ts +32 -0
- package/dist/utils/har/types.d.ts +70 -0
- package/dist/utils/product.d.ts +30 -0
- package/dist/utils/resumeLink.d.ts +35 -0
- package/dist/utils/sentry/devEnvironment.d.ts +10 -0
- package/dist/utils/sentry/init.d.ts +33 -0
- package/dist/utils/sentry/redact.d.ts +50 -0
- package/dist/utils/sentry/reportQuoteFailure.d.ts +31 -0
- package/dist/utils/sentry/reportSideEffectFailure.d.ts +2 -0
- package/dist/utils/storage.d.ts +8 -0
- package/dist/utils/support/bland.d.ts +50 -0
- package/dist/utils/support/cobrowse.d.ts +37 -0
- package/dist/utils/support/config.d.ts +34 -0
- package/dist/utils/support/index.d.ts +27 -0
- package/dist/utils/support/loader.d.ts +13 -0
- package/dist/utils/testMode.d.ts +11 -0
- package/dist/widget-BEY4lY4B.js +27319 -0
- package/dist/zipCities-CU_i9iT--DNeFQLgu.js +3330 -0
- package/package.json +8 -4
- package/dist/backend-xPum4ql0.js +0 -387
- package/dist/backend-xPum4ql0.js.map +0 -1
- package/dist/iframe/assets/backend-CY4n4nTm.js +0 -2
- package/dist/iframe/assets/backend-CY4n4nTm.js.map +0 -1
- package/dist/iframe/assets/iframe-XjjiskMA.js +0 -164
- package/dist/iframe/assets/iframe-XjjiskMA.js.map +0 -1
- package/dist/iframe/assets/iframe-m4vqnMx_.css +0 -1
- package/dist/index.es.js.map +0 -1
- package/dist/index.umd.js.map +0 -1
|
@@ -1,164 +0,0 @@
|
|
|
1
|
-
(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const o of document.querySelectorAll('link[rel="modulepreload"]'))i(o);new MutationObserver(o=>{for(const s of o)if(s.type==="childList")for(const c of s.addedNodes)c.tagName==="LINK"&&c.rel==="modulepreload"&&i(c)}).observe(document,{childList:!0,subtree:!0});function n(o){const s={};return o.integrity&&(s.integrity=o.integrity),o.referrerPolicy&&(s.referrerPolicy=o.referrerPolicy),o.crossOrigin==="use-credentials"?s.credentials="include":o.crossOrigin==="anonymous"?s.credentials="omit":s.credentials="same-origin",s}function i(o){if(o.ep)return;o.ep=!0;const s=n(o);fetch(o.href,s)}})();function sE(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var gp={exports:{}},os={};/**
|
|
2
|
-
* @license React
|
|
3
|
-
* react-jsx-runtime.production.js
|
|
4
|
-
*
|
|
5
|
-
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
6
|
-
*
|
|
7
|
-
* This source code is licensed under the MIT license found in the
|
|
8
|
-
* LICENSE file in the root directory of this source tree.
|
|
9
|
-
*/var $_;function pA(){if($_)return os;$_=1;var e=Symbol.for("react.transitional.element"),t=Symbol.for("react.fragment");function n(i,o,s){var c=null;if(s!==void 0&&(c=""+s),o.key!==void 0&&(c=""+o.key),"key"in o){s={};for(var d in o)d!=="key"&&(s[d]=o[d])}else s=o;return o=s.ref,{$$typeof:e,type:i,key:c,ref:o!==void 0?o:null,props:s}}return os.Fragment=t,os.jsx=n,os.jsxs=n,os}var D_;function hA(){return D_||(D_=1,gp.exports=pA()),gp.exports}var v=hA(),bp={exports:{}},Ve={};/**
|
|
10
|
-
* @license React
|
|
11
|
-
* react.production.js
|
|
12
|
-
*
|
|
13
|
-
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
14
|
-
*
|
|
15
|
-
* This source code is licensed under the MIT license found in the
|
|
16
|
-
* LICENSE file in the root directory of this source tree.
|
|
17
|
-
*/var x_;function yA(){if(x_)return Ve;x_=1;var e=Symbol.for("react.transitional.element"),t=Symbol.for("react.portal"),n=Symbol.for("react.fragment"),i=Symbol.for("react.strict_mode"),o=Symbol.for("react.profiler"),s=Symbol.for("react.consumer"),c=Symbol.for("react.context"),d=Symbol.for("react.forward_ref"),m=Symbol.for("react.suspense"),h=Symbol.for("react.memo"),y=Symbol.for("react.lazy"),g=Symbol.for("react.activity"),E=Symbol.iterator;function S(C){return C===null||typeof C!="object"?null:(C=E&&C[E]||C["@@iterator"],typeof C=="function"?C:null)}var $={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},x=Object.assign,w={};function R(C,U,W){this.props=C,this.context=U,this.refs=w,this.updater=W||$}R.prototype.isReactComponent={},R.prototype.setState=function(C,U){if(typeof C!="object"&&typeof C!="function"&&C!=null)throw Error("takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,C,U,"setState")},R.prototype.forceUpdate=function(C){this.updater.enqueueForceUpdate(this,C,"forceUpdate")};function F(){}F.prototype=R.prototype;function A(C,U,W){this.props=C,this.context=U,this.refs=w,this.updater=W||$}var L=A.prototype=new F;L.constructor=A,x(L,R.prototype),L.isPureReactComponent=!0;var M=Array.isArray;function Z(){}var V={H:null,A:null,T:null,S:null},fe=Object.prototype.hasOwnProperty;function ne(C,U,W){var Y=W.ref;return{$$typeof:e,type:C,key:U,ref:Y!==void 0?Y:null,props:W}}function pe(C,U){return ne(C.type,U,C.props)}function J(C){return typeof C=="object"&&C!==null&&C.$$typeof===e}function ye(C){var U={"=":"=0",":":"=2"};return"$"+C.replace(/[=:]/g,function(W){return U[W]})}var Ae=/\/+/g;function j(C,U){return typeof C=="object"&&C!==null&&C.key!=null?ye(""+C.key):U.toString(36)}function de(C){switch(C.status){case"fulfilled":return C.value;case"rejected":throw C.reason;default:switch(typeof C.status=="string"?C.then(Z,Z):(C.status="pending",C.then(function(U){C.status==="pending"&&(C.status="fulfilled",C.value=U)},function(U){C.status==="pending"&&(C.status="rejected",C.reason=U)})),C.status){case"fulfilled":return C.value;case"rejected":throw C.reason}}throw C}function O(C,U,W,Y,te){var z=typeof C;(z==="undefined"||z==="boolean")&&(C=null);var T=!1;if(C===null)T=!0;else switch(z){case"bigint":case"string":case"number":T=!0;break;case"object":switch(C.$$typeof){case e:case t:T=!0;break;case y:return T=C._init,O(T(C._payload),U,W,Y,te)}}if(T)return te=te(C),T=Y===""?"."+j(C,0):Y,M(te)?(W="",T!=null&&(W=T.replace(Ae,"$&/")+"/"),O(te,U,W,"",function(ge){return ge})):te!=null&&(J(te)&&(te=pe(te,W+(te.key==null||C&&C.key===te.key?"":(""+te.key).replace(Ae,"$&/")+"/")+T)),U.push(te)),1;T=0;var N=Y===""?".":Y+":";if(M(C))for(var ie=0;ie<C.length;ie++)Y=C[ie],z=N+j(Y,ie),T+=O(Y,U,W,z,te);else if(ie=S(C),typeof ie=="function")for(C=ie.call(C),ie=0;!(Y=C.next()).done;)Y=Y.value,z=N+j(Y,ie++),T+=O(Y,U,W,z,te);else if(z==="object"){if(typeof C.then=="function")return O(de(C),U,W,Y,te);throw U=String(C),Error("Objects are not valid as a React child (found: "+(U==="[object Object]"?"object with keys {"+Object.keys(C).join(", ")+"}":U)+"). If you meant to render a collection of children, use an array instead.")}return T}function B(C,U,W){if(C==null)return C;var Y=[],te=0;return O(C,Y,"","",function(z){return U.call(W,z,te++)}),Y}function X(C){if(C._status===-1){var U=C._result;U=U(),U.then(function(W){(C._status===0||C._status===-1)&&(C._status=1,C._result=W)},function(W){(C._status===0||C._status===-1)&&(C._status=2,C._result=W)}),C._status===-1&&(C._status=0,C._result=U)}if(C._status===1)return C._result.default;throw C._result}var I=typeof reportError=="function"?reportError:function(C){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var U=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof C=="object"&&C!==null&&typeof C.message=="string"?String(C.message):String(C),error:C});if(!window.dispatchEvent(U))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",C);return}console.error(C)},G={map:B,forEach:function(C,U,W){B(C,function(){U.apply(this,arguments)},W)},count:function(C){var U=0;return B(C,function(){U++}),U},toArray:function(C){return B(C,function(U){return U})||[]},only:function(C){if(!J(C))throw Error("React.Children.only expected to receive a single React element child.");return C}};return Ve.Activity=g,Ve.Children=G,Ve.Component=R,Ve.Fragment=n,Ve.Profiler=o,Ve.PureComponent=A,Ve.StrictMode=i,Ve.Suspense=m,Ve.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=V,Ve.__COMPILER_RUNTIME={__proto__:null,c:function(C){return V.H.useMemoCache(C)}},Ve.cache=function(C){return function(){return C.apply(null,arguments)}},Ve.cacheSignal=function(){return null},Ve.cloneElement=function(C,U,W){if(C==null)throw Error("The argument must be a React element, but you passed "+C+".");var Y=x({},C.props),te=C.key;if(U!=null)for(z in U.key!==void 0&&(te=""+U.key),U)!fe.call(U,z)||z==="key"||z==="__self"||z==="__source"||z==="ref"&&U.ref===void 0||(Y[z]=U[z]);var z=arguments.length-2;if(z===1)Y.children=W;else if(1<z){for(var T=Array(z),N=0;N<z;N++)T[N]=arguments[N+2];Y.children=T}return ne(C.type,te,Y)},Ve.createContext=function(C){return C={$$typeof:c,_currentValue:C,_currentValue2:C,_threadCount:0,Provider:null,Consumer:null},C.Provider=C,C.Consumer={$$typeof:s,_context:C},C},Ve.createElement=function(C,U,W){var Y,te={},z=null;if(U!=null)for(Y in U.key!==void 0&&(z=""+U.key),U)fe.call(U,Y)&&Y!=="key"&&Y!=="__self"&&Y!=="__source"&&(te[Y]=U[Y]);var T=arguments.length-2;if(T===1)te.children=W;else if(1<T){for(var N=Array(T),ie=0;ie<T;ie++)N[ie]=arguments[ie+2];te.children=N}if(C&&C.defaultProps)for(Y in T=C.defaultProps,T)te[Y]===void 0&&(te[Y]=T[Y]);return ne(C,z,te)},Ve.createRef=function(){return{current:null}},Ve.forwardRef=function(C){return{$$typeof:d,render:C}},Ve.isValidElement=J,Ve.lazy=function(C){return{$$typeof:y,_payload:{_status:-1,_result:C},_init:X}},Ve.memo=function(C,U){return{$$typeof:h,type:C,compare:U===void 0?null:U}},Ve.startTransition=function(C){var U=V.T,W={};V.T=W;try{var Y=C(),te=V.S;te!==null&&te(W,Y),typeof Y=="object"&&Y!==null&&typeof Y.then=="function"&&Y.then(Z,I)}catch(z){I(z)}finally{U!==null&&W.types!==null&&(U.types=W.types),V.T=U}},Ve.unstable_useCacheRefresh=function(){return V.H.useCacheRefresh()},Ve.use=function(C){return V.H.use(C)},Ve.useActionState=function(C,U,W){return V.H.useActionState(C,U,W)},Ve.useCallback=function(C,U){return V.H.useCallback(C,U)},Ve.useContext=function(C){return V.H.useContext(C)},Ve.useDebugValue=function(){},Ve.useDeferredValue=function(C,U){return V.H.useDeferredValue(C,U)},Ve.useEffect=function(C,U){return V.H.useEffect(C,U)},Ve.useEffectEvent=function(C){return V.H.useEffectEvent(C)},Ve.useId=function(){return V.H.useId()},Ve.useImperativeHandle=function(C,U,W){return V.H.useImperativeHandle(C,U,W)},Ve.useInsertionEffect=function(C,U){return V.H.useInsertionEffect(C,U)},Ve.useLayoutEffect=function(C,U){return V.H.useLayoutEffect(C,U)},Ve.useMemo=function(C,U){return V.H.useMemo(C,U)},Ve.useOptimistic=function(C,U){return V.H.useOptimistic(C,U)},Ve.useReducer=function(C,U,W){return V.H.useReducer(C,U,W)},Ve.useRef=function(C){return V.H.useRef(C)},Ve.useState=function(C){return V.H.useState(C)},Ve.useSyncExternalStore=function(C,U,W){return V.H.useSyncExternalStore(C,U,W)},Ve.useTransition=function(){return V.H.useTransition()},Ve.version="19.2.7",Ve}var C_;function $0(){return C_||(C_=1,bp.exports=yA()),bp.exports}var b=$0();const ve=sE(b);var vp={exports:{}},ls={},_p={exports:{}},Ep={};/**
|
|
18
|
-
* @license React
|
|
19
|
-
* scheduler.production.js
|
|
20
|
-
*
|
|
21
|
-
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
22
|
-
*
|
|
23
|
-
* This source code is licensed under the MIT license found in the
|
|
24
|
-
* LICENSE file in the root directory of this source tree.
|
|
25
|
-
*/var A_;function gA(){return A_||(A_=1,(function(e){function t(O,B){var X=O.length;O.push(B);e:for(;0<X;){var I=X-1>>>1,G=O[I];if(0<o(G,B))O[I]=B,O[X]=G,X=I;else break e}}function n(O){return O.length===0?null:O[0]}function i(O){if(O.length===0)return null;var B=O[0],X=O.pop();if(X!==B){O[0]=X;e:for(var I=0,G=O.length,C=G>>>1;I<C;){var U=2*(I+1)-1,W=O[U],Y=U+1,te=O[Y];if(0>o(W,X))Y<G&&0>o(te,W)?(O[I]=te,O[Y]=X,I=Y):(O[I]=W,O[U]=X,I=U);else if(Y<G&&0>o(te,X))O[I]=te,O[Y]=X,I=Y;else break e}}return B}function o(O,B){var X=O.sortIndex-B.sortIndex;return X!==0?X:O.id-B.id}if(e.unstable_now=void 0,typeof performance=="object"&&typeof performance.now=="function"){var s=performance;e.unstable_now=function(){return s.now()}}else{var c=Date,d=c.now();e.unstable_now=function(){return c.now()-d}}var m=[],h=[],y=1,g=null,E=3,S=!1,$=!1,x=!1,w=!1,R=typeof setTimeout=="function"?setTimeout:null,F=typeof clearTimeout=="function"?clearTimeout:null,A=typeof setImmediate<"u"?setImmediate:null;function L(O){for(var B=n(h);B!==null;){if(B.callback===null)i(h);else if(B.startTime<=O)i(h),B.sortIndex=B.expirationTime,t(m,B);else break;B=n(h)}}function M(O){if(x=!1,L(O),!$)if(n(m)!==null)$=!0,Z||(Z=!0,ye());else{var B=n(h);B!==null&&de(M,B.startTime-O)}}var Z=!1,V=-1,fe=5,ne=-1;function pe(){return w?!0:!(e.unstable_now()-ne<fe)}function J(){if(w=!1,Z){var O=e.unstable_now();ne=O;var B=!0;try{e:{$=!1,x&&(x=!1,F(V),V=-1),S=!0;var X=E;try{t:{for(L(O),g=n(m);g!==null&&!(g.expirationTime>O&&pe());){var I=g.callback;if(typeof I=="function"){g.callback=null,E=g.priorityLevel;var G=I(g.expirationTime<=O);if(O=e.unstable_now(),typeof G=="function"){g.callback=G,L(O),B=!0;break t}g===n(m)&&i(m),L(O)}else i(m);g=n(m)}if(g!==null)B=!0;else{var C=n(h);C!==null&&de(M,C.startTime-O),B=!1}}break e}finally{g=null,E=X,S=!1}B=void 0}}finally{B?ye():Z=!1}}}var ye;if(typeof A=="function")ye=function(){A(J)};else if(typeof MessageChannel<"u"){var Ae=new MessageChannel,j=Ae.port2;Ae.port1.onmessage=J,ye=function(){j.postMessage(null)}}else ye=function(){R(J,0)};function de(O,B){V=R(function(){O(e.unstable_now())},B)}e.unstable_IdlePriority=5,e.unstable_ImmediatePriority=1,e.unstable_LowPriority=4,e.unstable_NormalPriority=3,e.unstable_Profiling=null,e.unstable_UserBlockingPriority=2,e.unstable_cancelCallback=function(O){O.callback=null},e.unstable_forceFrameRate=function(O){0>O||125<O?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):fe=0<O?Math.floor(1e3/O):5},e.unstable_getCurrentPriorityLevel=function(){return E},e.unstable_next=function(O){switch(E){case 1:case 2:case 3:var B=3;break;default:B=E}var X=E;E=B;try{return O()}finally{E=X}},e.unstable_requestPaint=function(){w=!0},e.unstable_runWithPriority=function(O,B){switch(O){case 1:case 2:case 3:case 4:case 5:break;default:O=3}var X=E;E=O;try{return B()}finally{E=X}},e.unstable_scheduleCallback=function(O,B,X){var I=e.unstable_now();switch(typeof X=="object"&&X!==null?(X=X.delay,X=typeof X=="number"&&0<X?I+X:I):X=I,O){case 1:var G=-1;break;case 2:G=250;break;case 5:G=1073741823;break;case 4:G=1e4;break;default:G=5e3}return G=X+G,O={id:y++,callback:B,priorityLevel:O,startTime:X,expirationTime:G,sortIndex:-1},X>I?(O.sortIndex=X,t(h,O),n(m)===null&&O===n(h)&&(x?(F(V),V=-1):x=!0,de(M,X-I))):(O.sortIndex=G,t(m,O),$||S||($=!0,Z||(Z=!0,ye()))),O},e.unstable_shouldYield=pe,e.unstable_wrapCallback=function(O){var B=E;return function(){var X=E;E=B;try{return O.apply(this,arguments)}finally{E=X}}}})(Ep)),Ep}var w_;function bA(){return w_||(w_=1,_p.exports=gA()),_p.exports}var Sp={exports:{}},on={};/**
|
|
26
|
-
* @license React
|
|
27
|
-
* react-dom.production.js
|
|
28
|
-
*
|
|
29
|
-
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
30
|
-
*
|
|
31
|
-
* This source code is licensed under the MIT license found in the
|
|
32
|
-
* LICENSE file in the root directory of this source tree.
|
|
33
|
-
*/var T_;function vA(){if(T_)return on;T_=1;var e=$0();function t(m){var h="https://react.dev/errors/"+m;if(1<arguments.length){h+="?args[]="+encodeURIComponent(arguments[1]);for(var y=2;y<arguments.length;y++)h+="&args[]="+encodeURIComponent(arguments[y])}return"Minified React error #"+m+"; visit "+h+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function n(){}var i={d:{f:n,r:function(){throw Error(t(522))},D:n,C:n,L:n,m:n,X:n,S:n,M:n},p:0,findDOMNode:null},o=Symbol.for("react.portal");function s(m,h,y){var g=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:o,key:g==null?null:""+g,children:m,containerInfo:h,implementation:y}}var c=e.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;function d(m,h){if(m==="font")return"";if(typeof h=="string")return h==="use-credentials"?h:""}return on.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=i,on.createPortal=function(m,h){var y=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!h||h.nodeType!==1&&h.nodeType!==9&&h.nodeType!==11)throw Error(t(299));return s(m,h,null,y)},on.flushSync=function(m){var h=c.T,y=i.p;try{if(c.T=null,i.p=2,m)return m()}finally{c.T=h,i.p=y,i.d.f()}},on.preconnect=function(m,h){typeof m=="string"&&(h?(h=h.crossOrigin,h=typeof h=="string"?h==="use-credentials"?h:"":void 0):h=null,i.d.C(m,h))},on.prefetchDNS=function(m){typeof m=="string"&&i.d.D(m)},on.preinit=function(m,h){if(typeof m=="string"&&h&&typeof h.as=="string"){var y=h.as,g=d(y,h.crossOrigin),E=typeof h.integrity=="string"?h.integrity:void 0,S=typeof h.fetchPriority=="string"?h.fetchPriority:void 0;y==="style"?i.d.S(m,typeof h.precedence=="string"?h.precedence:void 0,{crossOrigin:g,integrity:E,fetchPriority:S}):y==="script"&&i.d.X(m,{crossOrigin:g,integrity:E,fetchPriority:S,nonce:typeof h.nonce=="string"?h.nonce:void 0})}},on.preinitModule=function(m,h){if(typeof m=="string")if(typeof h=="object"&&h!==null){if(h.as==null||h.as==="script"){var y=d(h.as,h.crossOrigin);i.d.M(m,{crossOrigin:y,integrity:typeof h.integrity=="string"?h.integrity:void 0,nonce:typeof h.nonce=="string"?h.nonce:void 0})}}else h==null&&i.d.M(m)},on.preload=function(m,h){if(typeof m=="string"&&typeof h=="object"&&h!==null&&typeof h.as=="string"){var y=h.as,g=d(y,h.crossOrigin);i.d.L(m,y,{crossOrigin:g,integrity:typeof h.integrity=="string"?h.integrity:void 0,nonce:typeof h.nonce=="string"?h.nonce:void 0,type:typeof h.type=="string"?h.type:void 0,fetchPriority:typeof h.fetchPriority=="string"?h.fetchPriority:void 0,referrerPolicy:typeof h.referrerPolicy=="string"?h.referrerPolicy:void 0,imageSrcSet:typeof h.imageSrcSet=="string"?h.imageSrcSet:void 0,imageSizes:typeof h.imageSizes=="string"?h.imageSizes:void 0,media:typeof h.media=="string"?h.media:void 0})}},on.preloadModule=function(m,h){if(typeof m=="string")if(h){var y=d(h.as,h.crossOrigin);i.d.m(m,{as:typeof h.as=="string"&&h.as!=="script"?h.as:void 0,crossOrigin:y,integrity:typeof h.integrity=="string"?h.integrity:void 0})}else i.d.m(m)},on.requestFormReset=function(m){i.d.r(m)},on.unstable_batchedUpdates=function(m,h){return m(h)},on.useFormState=function(m,h,y){return c.H.useFormState(m,h,y)},on.useFormStatus=function(){return c.H.useHostTransitionStatus()},on.version="19.2.7",on}var N_;function uE(){if(N_)return Sp.exports;N_=1;function e(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(e)}catch(t){console.error(t)}}return e(),Sp.exports=vA(),Sp.exports}/**
|
|
34
|
-
* @license React
|
|
35
|
-
* react-dom-client.production.js
|
|
36
|
-
*
|
|
37
|
-
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
38
|
-
*
|
|
39
|
-
* This source code is licensed under the MIT license found in the
|
|
40
|
-
* LICENSE file in the root directory of this source tree.
|
|
41
|
-
*/var M_;function _A(){if(M_)return ls;M_=1;var e=bA(),t=$0(),n=uE();function i(r){var a="https://react.dev/errors/"+r;if(1<arguments.length){a+="?args[]="+encodeURIComponent(arguments[1]);for(var l=2;l<arguments.length;l++)a+="&args[]="+encodeURIComponent(arguments[l])}return"Minified React error #"+r+"; visit "+a+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function o(r){return!(!r||r.nodeType!==1&&r.nodeType!==9&&r.nodeType!==11)}function s(r){var a=r,l=r;if(r.alternate)for(;a.return;)a=a.return;else{r=a;do a=r,(a.flags&4098)!==0&&(l=a.return),r=a.return;while(r)}return a.tag===3?l:null}function c(r){if(r.tag===13){var a=r.memoizedState;if(a===null&&(r=r.alternate,r!==null&&(a=r.memoizedState)),a!==null)return a.dehydrated}return null}function d(r){if(r.tag===31){var a=r.memoizedState;if(a===null&&(r=r.alternate,r!==null&&(a=r.memoizedState)),a!==null)return a.dehydrated}return null}function m(r){if(s(r)!==r)throw Error(i(188))}function h(r){var a=r.alternate;if(!a){if(a=s(r),a===null)throw Error(i(188));return a!==r?null:r}for(var l=r,u=a;;){var f=l.return;if(f===null)break;var p=f.alternate;if(p===null){if(u=f.return,u!==null){l=u;continue}break}if(f.child===p.child){for(p=f.child;p;){if(p===l)return m(f),r;if(p===u)return m(f),a;p=p.sibling}throw Error(i(188))}if(l.return!==u.return)l=f,u=p;else{for(var _=!1,D=f.child;D;){if(D===l){_=!0,l=f,u=p;break}if(D===u){_=!0,u=f,l=p;break}D=D.sibling}if(!_){for(D=p.child;D;){if(D===l){_=!0,l=p,u=f;break}if(D===u){_=!0,u=p,l=f;break}D=D.sibling}if(!_)throw Error(i(189))}}if(l.alternate!==u)throw Error(i(190))}if(l.tag!==3)throw Error(i(188));return l.stateNode.current===l?r:a}function y(r){var a=r.tag;if(a===5||a===26||a===27||a===6)return r;for(r=r.child;r!==null;){if(a=y(r),a!==null)return a;r=r.sibling}return null}var g=Object.assign,E=Symbol.for("react.element"),S=Symbol.for("react.transitional.element"),$=Symbol.for("react.portal"),x=Symbol.for("react.fragment"),w=Symbol.for("react.strict_mode"),R=Symbol.for("react.profiler"),F=Symbol.for("react.consumer"),A=Symbol.for("react.context"),L=Symbol.for("react.forward_ref"),M=Symbol.for("react.suspense"),Z=Symbol.for("react.suspense_list"),V=Symbol.for("react.memo"),fe=Symbol.for("react.lazy"),ne=Symbol.for("react.activity"),pe=Symbol.for("react.memo_cache_sentinel"),J=Symbol.iterator;function ye(r){return r===null||typeof r!="object"?null:(r=J&&r[J]||r["@@iterator"],typeof r=="function"?r:null)}var Ae=Symbol.for("react.client.reference");function j(r){if(r==null)return null;if(typeof r=="function")return r.$$typeof===Ae?null:r.displayName||r.name||null;if(typeof r=="string")return r;switch(r){case x:return"Fragment";case R:return"Profiler";case w:return"StrictMode";case M:return"Suspense";case Z:return"SuspenseList";case ne:return"Activity"}if(typeof r=="object")switch(r.$$typeof){case $:return"Portal";case A:return r.displayName||"Context";case F:return(r._context.displayName||"Context")+".Consumer";case L:var a=r.render;return r=r.displayName,r||(r=a.displayName||a.name||"",r=r!==""?"ForwardRef("+r+")":"ForwardRef"),r;case V:return a=r.displayName||null,a!==null?a:j(r.type)||"Memo";case fe:a=r._payload,r=r._init;try{return j(r(a))}catch{}}return null}var de=Array.isArray,O=t.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,B=n.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,X={pending:!1,data:null,method:null,action:null},I=[],G=-1;function C(r){return{current:r}}function U(r){0>G||(r.current=I[G],I[G]=null,G--)}function W(r,a){G++,I[G]=r.current,r.current=a}var Y=C(null),te=C(null),z=C(null),T=C(null);function N(r,a){switch(W(z,a),W(te,r),W(Y,null),a.nodeType){case 9:case 11:r=(r=a.documentElement)&&(r=r.namespaceURI)?Zv(r):0;break;default:if(r=a.tagName,a=a.namespaceURI)a=Zv(a),r=Yv(a,r);else switch(r){case"svg":r=1;break;case"math":r=2;break;default:r=0}}U(Y),W(Y,r)}function ie(){U(Y),U(te),U(z)}function ge(r){r.memoizedState!==null&&W(T,r);var a=Y.current,l=Yv(a,r.type);a!==l&&(W(te,r),W(Y,l))}function Se(r){te.current===r&&(U(Y),U(te)),T.current===r&&(U(T),ns._currentValue=X)}var he,we;function Fe(r){if(he===void 0)try{throw Error()}catch(l){var a=l.stack.trim().match(/\n( *(at )?)/);he=a&&a[1]||"",we=-1<l.stack.indexOf(`
|
|
42
|
-
at`)?" (<anonymous>)":-1<l.stack.indexOf("@")?"@unknown:0:0":""}return`
|
|
43
|
-
`+he+r+we}var me=!1;function $e(r,a){if(!r||me)return"";me=!0;var l=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{var u={DetermineComponentFrameRoot:function(){try{if(a){var ce=function(){throw Error()};if(Object.defineProperty(ce.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(ce,[])}catch(ee){var Q=ee}Reflect.construct(r,[],ce)}else{try{ce.call()}catch(ee){Q=ee}r.call(ce.prototype)}}else{try{throw Error()}catch(ee){Q=ee}(ce=r())&&typeof ce.catch=="function"&&ce.catch(function(){})}}catch(ee){if(ee&&Q&&typeof ee.stack=="string")return[ee.stack,Q.stack]}return[null,null]}};u.DetermineComponentFrameRoot.displayName="DetermineComponentFrameRoot";var f=Object.getOwnPropertyDescriptor(u.DetermineComponentFrameRoot,"name");f&&f.configurable&&Object.defineProperty(u.DetermineComponentFrameRoot,"name",{value:"DetermineComponentFrameRoot"});var p=u.DetermineComponentFrameRoot(),_=p[0],D=p[1];if(_&&D){var k=_.split(`
|
|
44
|
-
`),K=D.split(`
|
|
45
|
-
`);for(f=u=0;u<k.length&&!k[u].includes("DetermineComponentFrameRoot");)u++;for(;f<K.length&&!K[f].includes("DetermineComponentFrameRoot");)f++;if(u===k.length||f===K.length)for(u=k.length-1,f=K.length-1;1<=u&&0<=f&&k[u]!==K[f];)f--;for(;1<=u&&0<=f;u--,f--)if(k[u]!==K[f]){if(u!==1||f!==1)do if(u--,f--,0>f||k[u]!==K[f]){var ae=`
|
|
46
|
-
`+k[u].replace(" at new "," at ");return r.displayName&&ae.includes("<anonymous>")&&(ae=ae.replace("<anonymous>",r.displayName)),ae}while(1<=u&&0<=f);break}}}finally{me=!1,Error.prepareStackTrace=l}return(l=r?r.displayName||r.name:"")?Fe(l):""}function se(r,a){switch(r.tag){case 26:case 27:case 5:return Fe(r.type);case 16:return Fe("Lazy");case 13:return r.child!==a&&a!==null?Fe("Suspense Fallback"):Fe("Suspense");case 19:return Fe("SuspenseList");case 0:case 15:return $e(r.type,!1);case 11:return $e(r.type.render,!1);case 1:return $e(r.type,!0);case 31:return Fe("Activity");default:return""}}function _e(r){try{var a="",l=null;do a+=se(r,l),l=r,r=r.return;while(r);return a}catch(u){return`
|
|
47
|
-
Error generating stack: `+u.message+`
|
|
48
|
-
`+u.stack}}var be=Object.prototype.hasOwnProperty,Ce=e.unstable_scheduleCallback,xe=e.unstable_cancelCallback,Ne=e.unstable_shouldYield,re=e.unstable_requestPaint,oe=e.unstable_now,De=e.unstable_getCurrentPriorityLevel,Ee=e.unstable_ImmediatePriority,Te=e.unstable_UserBlockingPriority,Re=e.unstable_NormalPriority,ke=e.unstable_LowPriority,qe=e.unstable_IdlePriority,Ue=e.log,ze=e.unstable_setDisableYieldValue,tt=null,rt=null;function Tt(r){if(typeof Ue=="function"&&ze(r),rt&&typeof rt.setStrictMode=="function")try{rt.setStrictMode(tt,r)}catch{}}var Ye=Math.clz32?Math.clz32:Nn,Hn=Math.log,ml=Math.LN2;function Nn(r){return r>>>=0,r===0?32:31-(Hn(r)/ml|0)|0}var gr=256,Mn=262144,ri=4194304;function Vn(r){var a=r&42;if(a!==0)return a;switch(r&-r){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:return 64;case 128:return 128;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:return r&261888;case 262144:case 524288:case 1048576:case 2097152:return r&3932160;case 4194304:case 8388608:case 16777216:case 33554432:return r&62914560;case 67108864:return 67108864;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 0;default:return r}}function pl(r,a,l){var u=r.pendingLanes;if(u===0)return 0;var f=0,p=r.suspendedLanes,_=r.pingedLanes;r=r.warmLanes;var D=u&134217727;return D!==0?(u=D&~p,u!==0?f=Vn(u):(_&=D,_!==0?f=Vn(_):l||(l=D&~r,l!==0&&(f=Vn(l))))):(D=u&~p,D!==0?f=Vn(D):_!==0?f=Vn(_):l||(l=u&~r,l!==0&&(f=Vn(l)))),f===0?0:a!==0&&a!==f&&(a&p)===0&&(p=f&-f,l=a&-a,p>=l||p===32&&(l&4194048)!==0)?a:f}function Rn(r,a){return(r.pendingLanes&~(r.suspendedLanes&~r.pingedLanes)&a)===0}function hl(r,a){switch(r){case 1:case 2:case 4:case 8:case 64:return a+250;case 16:case 32:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return a+5e3;case 4194304:case 8388608:case 16777216:case 33554432:return-1;case 67108864:case 134217728:case 268435456:case 536870912:case 1073741824:return-1;default:return-1}}function Qi(){var r=ri;return ri<<=1,(ri&62914560)===0&&(ri=4194304),r}function ua(r){for(var a=[],l=0;31>l;l++)a.push(r);return a}function br(r,a){r.pendingLanes|=a,a!==268435456&&(r.suspendedLanes=0,r.pingedLanes=0,r.warmLanes=0)}function eu(r,a,l,u,f,p){var _=r.pendingLanes;r.pendingLanes=l,r.suspendedLanes=0,r.pingedLanes=0,r.warmLanes=0,r.expiredLanes&=l,r.entangledLanes&=l,r.errorRecoveryDisabledLanes&=l,r.shellSuspendCounter=0;var D=r.entanglements,k=r.expirationTimes,K=r.hiddenUpdates;for(l=_&~l;0<l;){var ae=31-Ye(l),ce=1<<ae;D[ae]=0,k[ae]=-1;var Q=K[ae];if(Q!==null)for(K[ae]=null,ae=0;ae<Q.length;ae++){var ee=Q[ae];ee!==null&&(ee.lane&=-536870913)}l&=~ce}u!==0&&tu(r,u,0),p!==0&&f===0&&r.tag!==0&&(r.suspendedLanes|=p&~(_&~a))}function tu(r,a,l){r.pendingLanes|=a,r.suspendedLanes&=~a;var u=31-Ye(a);r.entangledLanes|=a,r.entanglements[u]=r.entanglements[u]|1073741824|l&261930}function nu(r,a){var l=r.entangledLanes|=a;for(r=r.entanglements;l;){var u=31-Ye(l),f=1<<u;f&a|r[u]&a&&(r[u]|=a),l&=~f}}function Tr(r,a){var l=a&-a;return l=(l&42)!==0?1:dr(l),(l&(r.suspendedLanes|a))!==0?0:l}function dr(r){switch(r){case 2:r=1;break;case 8:r=4;break;case 32:r=16;break;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:r=128;break;case 268435456:r=134217728;break;default:r=0}return r}function yl(r){return r&=-r,2<r?8<r?(r&134217727)!==0?32:268435456:8:2}function My(){var r=B.p;return r!==0?r:(r=window.event,r===void 0?32:y_(r.type))}function Ry(r,a){var l=B.p;try{return B.p=r,a()}finally{B.p=l}}var ca=Math.random().toString(36).slice(2),Qt="__reactFiber$"+ca,yn="__reactProps$"+ca,Ji="__reactContainer$"+ca,sf="__reactEvents$"+ca,rC="__reactListeners$"+ca,aC="__reactHandles$"+ca,Oy="__reactResources$"+ca,gl="__reactMarker$"+ca;function uf(r){delete r[Qt],delete r[yn],delete r[sf],delete r[rC],delete r[aC]}function Xi(r){var a=r[Qt];if(a)return a;for(var l=r.parentNode;l;){if(a=l[Ji]||l[Qt]){if(l=a.alternate,a.child!==null||l!==null&&l.child!==null)for(r=e_(r);r!==null;){if(l=r[Qt])return l;r=e_(r)}return a}r=l,l=r.parentNode}return null}function eo(r){if(r=r[Qt]||r[Ji]){var a=r.tag;if(a===5||a===6||a===13||a===31||a===26||a===27||a===3)return r}return null}function bl(r){var a=r.tag;if(a===5||a===26||a===27||a===6)return r.stateNode;throw Error(i(33))}function to(r){var a=r[Oy];return a||(a=r[Oy]={hoistableStyles:new Map,hoistableScripts:new Map}),a}function Kt(r){r[gl]=!0}var ky=new Set,By={};function ai(r,a){no(r,a),no(r+"Capture",a)}function no(r,a){for(By[r]=a,r=0;r<a.length;r++)ky.add(a[r])}var iC=RegExp("^[:A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD][:A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD\\-.0-9\\u00B7\\u0300-\\u036F\\u203F-\\u2040]*$"),Ly={},Py={};function oC(r){return be.call(Py,r)?!0:be.call(Ly,r)?!1:iC.test(r)?Py[r]=!0:(Ly[r]=!0,!1)}function ru(r,a,l){if(oC(a))if(l===null)r.removeAttribute(a);else{switch(typeof l){case"undefined":case"function":case"symbol":r.removeAttribute(a);return;case"boolean":var u=a.toLowerCase().slice(0,5);if(u!=="data-"&&u!=="aria-"){r.removeAttribute(a);return}}r.setAttribute(a,""+l)}}function au(r,a,l){if(l===null)r.removeAttribute(a);else{switch(typeof l){case"undefined":case"function":case"symbol":case"boolean":r.removeAttribute(a);return}r.setAttribute(a,""+l)}}function Nr(r,a,l,u){if(u===null)r.removeAttribute(l);else{switch(typeof u){case"undefined":case"function":case"symbol":case"boolean":r.removeAttribute(l);return}r.setAttributeNS(a,l,""+u)}}function Gn(r){switch(typeof r){case"bigint":case"boolean":case"number":case"string":case"undefined":return r;case"object":return r;default:return""}}function Fy(r){var a=r.type;return(r=r.nodeName)&&r.toLowerCase()==="input"&&(a==="checkbox"||a==="radio")}function lC(r,a,l){var u=Object.getOwnPropertyDescriptor(r.constructor.prototype,a);if(!r.hasOwnProperty(a)&&typeof u<"u"&&typeof u.get=="function"&&typeof u.set=="function"){var f=u.get,p=u.set;return Object.defineProperty(r,a,{configurable:!0,get:function(){return f.call(this)},set:function(_){l=""+_,p.call(this,_)}}),Object.defineProperty(r,a,{enumerable:u.enumerable}),{getValue:function(){return l},setValue:function(_){l=""+_},stopTracking:function(){r._valueTracker=null,delete r[a]}}}}function cf(r){if(!r._valueTracker){var a=Fy(r)?"checked":"value";r._valueTracker=lC(r,a,""+r[a])}}function Iy(r){if(!r)return!1;var a=r._valueTracker;if(!a)return!0;var l=a.getValue(),u="";return r&&(u=Fy(r)?r.checked?"true":"false":r.value),r=u,r!==l?(a.setValue(r),!0):!1}function iu(r){if(r=r||(typeof document<"u"?document:void 0),typeof r>"u")return null;try{return r.activeElement||r.body}catch{return r.body}}var sC=/[\n"\\]/g;function Zn(r){return r.replace(sC,function(a){return"\\"+a.charCodeAt(0).toString(16)+" "})}function df(r,a,l,u,f,p,_,D){r.name="",_!=null&&typeof _!="function"&&typeof _!="symbol"&&typeof _!="boolean"?r.type=_:r.removeAttribute("type"),a!=null?_==="number"?(a===0&&r.value===""||r.value!=a)&&(r.value=""+Gn(a)):r.value!==""+Gn(a)&&(r.value=""+Gn(a)):_!=="submit"&&_!=="reset"||r.removeAttribute("value"),a!=null?ff(r,_,Gn(a)):l!=null?ff(r,_,Gn(l)):u!=null&&r.removeAttribute("value"),f==null&&p!=null&&(r.defaultChecked=!!p),f!=null&&(r.checked=f&&typeof f!="function"&&typeof f!="symbol"),D!=null&&typeof D!="function"&&typeof D!="symbol"&&typeof D!="boolean"?r.name=""+Gn(D):r.removeAttribute("name")}function jy(r,a,l,u,f,p,_,D){if(p!=null&&typeof p!="function"&&typeof p!="symbol"&&typeof p!="boolean"&&(r.type=p),a!=null||l!=null){if(!(p!=="submit"&&p!=="reset"||a!=null)){cf(r);return}l=l!=null?""+Gn(l):"",a=a!=null?""+Gn(a):l,D||a===r.value||(r.value=a),r.defaultValue=a}u=u??f,u=typeof u!="function"&&typeof u!="symbol"&&!!u,r.checked=D?r.checked:!!u,r.defaultChecked=!!u,_!=null&&typeof _!="function"&&typeof _!="symbol"&&typeof _!="boolean"&&(r.name=_),cf(r)}function ff(r,a,l){a==="number"&&iu(r.ownerDocument)===r||r.defaultValue===""+l||(r.defaultValue=""+l)}function ro(r,a,l,u){if(r=r.options,a){a={};for(var f=0;f<l.length;f++)a["$"+l[f]]=!0;for(l=0;l<r.length;l++)f=a.hasOwnProperty("$"+r[l].value),r[l].selected!==f&&(r[l].selected=f),f&&u&&(r[l].defaultSelected=!0)}else{for(l=""+Gn(l),a=null,f=0;f<r.length;f++){if(r[f].value===l){r[f].selected=!0,u&&(r[f].defaultSelected=!0);return}a!==null||r[f].disabled||(a=r[f])}a!==null&&(a.selected=!0)}}function zy(r,a,l){if(a!=null&&(a=""+Gn(a),a!==r.value&&(r.value=a),l==null)){r.defaultValue!==a&&(r.defaultValue=a);return}r.defaultValue=l!=null?""+Gn(l):""}function Uy(r,a,l,u){if(a==null){if(u!=null){if(l!=null)throw Error(i(92));if(de(u)){if(1<u.length)throw Error(i(93));u=u[0]}l=u}l==null&&(l=""),a=l}l=Gn(a),r.defaultValue=l,u=r.textContent,u===l&&u!==""&&u!==null&&(r.value=u),cf(r)}function ao(r,a){if(a){var l=r.firstChild;if(l&&l===r.lastChild&&l.nodeType===3){l.nodeValue=a;return}}r.textContent=a}var uC=new Set("animationIterationCount aspectRatio borderImageOutset borderImageSlice borderImageWidth boxFlex boxFlexGroup boxOrdinalGroup columnCount columns flex flexGrow flexPositive flexShrink flexNegative flexOrder gridArea gridRow gridRowEnd gridRowSpan gridRowStart gridColumn gridColumnEnd gridColumnSpan gridColumnStart fontWeight lineClamp lineHeight opacity order orphans scale tabSize widows zIndex zoom fillOpacity floodOpacity stopOpacity strokeDasharray strokeDashoffset strokeMiterlimit strokeOpacity strokeWidth MozAnimationIterationCount MozBoxFlex MozBoxFlexGroup MozLineClamp msAnimationIterationCount msFlex msZoom msFlexGrow msFlexNegative msFlexOrder msFlexPositive msFlexShrink msGridColumn msGridColumnSpan msGridRow msGridRowSpan WebkitAnimationIterationCount WebkitBoxFlex WebKitBoxFlexGroup WebkitBoxOrdinalGroup WebkitColumnCount WebkitColumns WebkitFlex WebkitFlexGrow WebkitFlexPositive WebkitFlexShrink WebkitLineClamp".split(" "));function Hy(r,a,l){var u=a.indexOf("--")===0;l==null||typeof l=="boolean"||l===""?u?r.setProperty(a,""):a==="float"?r.cssFloat="":r[a]="":u?r.setProperty(a,l):typeof l!="number"||l===0||uC.has(a)?a==="float"?r.cssFloat=l:r[a]=(""+l).trim():r[a]=l+"px"}function Vy(r,a,l){if(a!=null&&typeof a!="object")throw Error(i(62));if(r=r.style,l!=null){for(var u in l)!l.hasOwnProperty(u)||a!=null&&a.hasOwnProperty(u)||(u.indexOf("--")===0?r.setProperty(u,""):u==="float"?r.cssFloat="":r[u]="");for(var f in a)u=a[f],a.hasOwnProperty(f)&&l[f]!==u&&Hy(r,f,u)}else for(var p in a)a.hasOwnProperty(p)&&Hy(r,p,a[p])}function mf(r){if(r.indexOf("-")===-1)return!1;switch(r){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var cC=new Map([["acceptCharset","accept-charset"],["htmlFor","for"],["httpEquiv","http-equiv"],["crossOrigin","crossorigin"],["accentHeight","accent-height"],["alignmentBaseline","alignment-baseline"],["arabicForm","arabic-form"],["baselineShift","baseline-shift"],["capHeight","cap-height"],["clipPath","clip-path"],["clipRule","clip-rule"],["colorInterpolation","color-interpolation"],["colorInterpolationFilters","color-interpolation-filters"],["colorProfile","color-profile"],["colorRendering","color-rendering"],["dominantBaseline","dominant-baseline"],["enableBackground","enable-background"],["fillOpacity","fill-opacity"],["fillRule","fill-rule"],["floodColor","flood-color"],["floodOpacity","flood-opacity"],["fontFamily","font-family"],["fontSize","font-size"],["fontSizeAdjust","font-size-adjust"],["fontStretch","font-stretch"],["fontStyle","font-style"],["fontVariant","font-variant"],["fontWeight","font-weight"],["glyphName","glyph-name"],["glyphOrientationHorizontal","glyph-orientation-horizontal"],["glyphOrientationVertical","glyph-orientation-vertical"],["horizAdvX","horiz-adv-x"],["horizOriginX","horiz-origin-x"],["imageRendering","image-rendering"],["letterSpacing","letter-spacing"],["lightingColor","lighting-color"],["markerEnd","marker-end"],["markerMid","marker-mid"],["markerStart","marker-start"],["overlinePosition","overline-position"],["overlineThickness","overline-thickness"],["paintOrder","paint-order"],["panose-1","panose-1"],["pointerEvents","pointer-events"],["renderingIntent","rendering-intent"],["shapeRendering","shape-rendering"],["stopColor","stop-color"],["stopOpacity","stop-opacity"],["strikethroughPosition","strikethrough-position"],["strikethroughThickness","strikethrough-thickness"],["strokeDasharray","stroke-dasharray"],["strokeDashoffset","stroke-dashoffset"],["strokeLinecap","stroke-linecap"],["strokeLinejoin","stroke-linejoin"],["strokeMiterlimit","stroke-miterlimit"],["strokeOpacity","stroke-opacity"],["strokeWidth","stroke-width"],["textAnchor","text-anchor"],["textDecoration","text-decoration"],["textRendering","text-rendering"],["transformOrigin","transform-origin"],["underlinePosition","underline-position"],["underlineThickness","underline-thickness"],["unicodeBidi","unicode-bidi"],["unicodeRange","unicode-range"],["unitsPerEm","units-per-em"],["vAlphabetic","v-alphabetic"],["vHanging","v-hanging"],["vIdeographic","v-ideographic"],["vMathematical","v-mathematical"],["vectorEffect","vector-effect"],["vertAdvY","vert-adv-y"],["vertOriginX","vert-origin-x"],["vertOriginY","vert-origin-y"],["wordSpacing","word-spacing"],["writingMode","writing-mode"],["xmlnsXlink","xmlns:xlink"],["xHeight","x-height"]]),dC=/^[\u0000-\u001F ]*j[\r\n\t]*a[\r\n\t]*v[\r\n\t]*a[\r\n\t]*s[\r\n\t]*c[\r\n\t]*r[\r\n\t]*i[\r\n\t]*p[\r\n\t]*t[\r\n\t]*:/i;function ou(r){return dC.test(""+r)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":r}function Mr(){}var pf=null;function hf(r){return r=r.target||r.srcElement||window,r.correspondingUseElement&&(r=r.correspondingUseElement),r.nodeType===3?r.parentNode:r}var io=null,oo=null;function Gy(r){var a=eo(r);if(a&&(r=a.stateNode)){var l=r[yn]||null;e:switch(r=a.stateNode,a.type){case"input":if(df(r,l.value,l.defaultValue,l.defaultValue,l.checked,l.defaultChecked,l.type,l.name),a=l.name,l.type==="radio"&&a!=null){for(l=r;l.parentNode;)l=l.parentNode;for(l=l.querySelectorAll('input[name="'+Zn(""+a)+'"][type="radio"]'),a=0;a<l.length;a++){var u=l[a];if(u!==r&&u.form===r.form){var f=u[yn]||null;if(!f)throw Error(i(90));df(u,f.value,f.defaultValue,f.defaultValue,f.checked,f.defaultChecked,f.type,f.name)}}for(a=0;a<l.length;a++)u=l[a],u.form===r.form&&Iy(u)}break e;case"textarea":zy(r,l.value,l.defaultValue);break e;case"select":a=l.value,a!=null&&ro(r,!!l.multiple,a,!1)}}}var yf=!1;function Zy(r,a,l){if(yf)return r(a,l);yf=!0;try{var u=r(a);return u}finally{if(yf=!1,(io!==null||oo!==null)&&(Yu(),io&&(a=io,r=oo,oo=io=null,Gy(a),r)))for(a=0;a<r.length;a++)Gy(r[a])}}function vl(r,a){var l=r.stateNode;if(l===null)return null;var u=l[yn]||null;if(u===null)return null;l=u[a];e:switch(a){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(u=!u.disabled)||(r=r.type,u=!(r==="button"||r==="input"||r==="select"||r==="textarea")),r=!u;break e;default:r=!1}if(r)return null;if(l&&typeof l!="function")throw Error(i(231,a,typeof l));return l}var Rr=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),gf=!1;if(Rr)try{var _l={};Object.defineProperty(_l,"passive",{get:function(){gf=!0}}),window.addEventListener("test",_l,_l),window.removeEventListener("test",_l,_l)}catch{gf=!1}var da=null,bf=null,lu=null;function Yy(){if(lu)return lu;var r,a=bf,l=a.length,u,f="value"in da?da.value:da.textContent,p=f.length;for(r=0;r<l&&a[r]===f[r];r++);var _=l-r;for(u=1;u<=_&&a[l-u]===f[p-u];u++);return lu=f.slice(r,1<u?1-u:void 0)}function su(r){var a=r.keyCode;return"charCode"in r?(r=r.charCode,r===0&&a===13&&(r=13)):r=a,r===10&&(r=13),32<=r||r===13?r:0}function uu(){return!0}function qy(){return!1}function gn(r){function a(l,u,f,p,_){this._reactName=l,this._targetInst=f,this.type=u,this.nativeEvent=p,this.target=_,this.currentTarget=null;for(var D in r)r.hasOwnProperty(D)&&(l=r[D],this[D]=l?l(p):p[D]);return this.isDefaultPrevented=(p.defaultPrevented!=null?p.defaultPrevented:p.returnValue===!1)?uu:qy,this.isPropagationStopped=qy,this}return g(a.prototype,{preventDefault:function(){this.defaultPrevented=!0;var l=this.nativeEvent;l&&(l.preventDefault?l.preventDefault():typeof l.returnValue!="unknown"&&(l.returnValue=!1),this.isDefaultPrevented=uu)},stopPropagation:function(){var l=this.nativeEvent;l&&(l.stopPropagation?l.stopPropagation():typeof l.cancelBubble!="unknown"&&(l.cancelBubble=!0),this.isPropagationStopped=uu)},persist:function(){},isPersistent:uu}),a}var ii={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(r){return r.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},cu=gn(ii),El=g({},ii,{view:0,detail:0}),fC=gn(El),vf,_f,Sl,du=g({},El,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:Sf,button:0,buttons:0,relatedTarget:function(r){return r.relatedTarget===void 0?r.fromElement===r.srcElement?r.toElement:r.fromElement:r.relatedTarget},movementX:function(r){return"movementX"in r?r.movementX:(r!==Sl&&(Sl&&r.type==="mousemove"?(vf=r.screenX-Sl.screenX,_f=r.screenY-Sl.screenY):_f=vf=0,Sl=r),vf)},movementY:function(r){return"movementY"in r?r.movementY:_f}}),Ky=gn(du),mC=g({},du,{dataTransfer:0}),pC=gn(mC),hC=g({},El,{relatedTarget:0}),Ef=gn(hC),yC=g({},ii,{animationName:0,elapsedTime:0,pseudoElement:0}),gC=gn(yC),bC=g({},ii,{clipboardData:function(r){return"clipboardData"in r?r.clipboardData:window.clipboardData}}),vC=gn(bC),_C=g({},ii,{data:0}),Wy=gn(_C),EC={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},SC={8:"Backspace",9:"Tab",12:"Clear",13:"Enter",16:"Shift",17:"Control",18:"Alt",19:"Pause",20:"CapsLock",27:"Escape",32:" ",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"ArrowLeft",38:"ArrowUp",39:"ArrowRight",40:"ArrowDown",45:"Insert",46:"Delete",112:"F1",113:"F2",114:"F3",115:"F4",116:"F5",117:"F6",118:"F7",119:"F8",120:"F9",121:"F10",122:"F11",123:"F12",144:"NumLock",145:"ScrollLock",224:"Meta"},$C={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function DC(r){var a=this.nativeEvent;return a.getModifierState?a.getModifierState(r):(r=$C[r])?!!a[r]:!1}function Sf(){return DC}var xC=g({},El,{key:function(r){if(r.key){var a=EC[r.key]||r.key;if(a!=="Unidentified")return a}return r.type==="keypress"?(r=su(r),r===13?"Enter":String.fromCharCode(r)):r.type==="keydown"||r.type==="keyup"?SC[r.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:Sf,charCode:function(r){return r.type==="keypress"?su(r):0},keyCode:function(r){return r.type==="keydown"||r.type==="keyup"?r.keyCode:0},which:function(r){return r.type==="keypress"?su(r):r.type==="keydown"||r.type==="keyup"?r.keyCode:0}}),CC=gn(xC),AC=g({},du,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),Qy=gn(AC),wC=g({},El,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:Sf}),TC=gn(wC),NC=g({},ii,{propertyName:0,elapsedTime:0,pseudoElement:0}),MC=gn(NC),RC=g({},du,{deltaX:function(r){return"deltaX"in r?r.deltaX:"wheelDeltaX"in r?-r.wheelDeltaX:0},deltaY:function(r){return"deltaY"in r?r.deltaY:"wheelDeltaY"in r?-r.wheelDeltaY:"wheelDelta"in r?-r.wheelDelta:0},deltaZ:0,deltaMode:0}),OC=gn(RC),kC=g({},ii,{newState:0,oldState:0}),BC=gn(kC),LC=[9,13,27,32],$f=Rr&&"CompositionEvent"in window,$l=null;Rr&&"documentMode"in document&&($l=document.documentMode);var PC=Rr&&"TextEvent"in window&&!$l,Jy=Rr&&(!$f||$l&&8<$l&&11>=$l),Xy=" ",eg=!1;function tg(r,a){switch(r){case"keyup":return LC.indexOf(a.keyCode)!==-1;case"keydown":return a.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function ng(r){return r=r.detail,typeof r=="object"&&"data"in r?r.data:null}var lo=!1;function FC(r,a){switch(r){case"compositionend":return ng(a);case"keypress":return a.which!==32?null:(eg=!0,Xy);case"textInput":return r=a.data,r===Xy&&eg?null:r;default:return null}}function IC(r,a){if(lo)return r==="compositionend"||!$f&&tg(r,a)?(r=Yy(),lu=bf=da=null,lo=!1,r):null;switch(r){case"paste":return null;case"keypress":if(!(a.ctrlKey||a.altKey||a.metaKey)||a.ctrlKey&&a.altKey){if(a.char&&1<a.char.length)return a.char;if(a.which)return String.fromCharCode(a.which)}return null;case"compositionend":return Jy&&a.locale!=="ko"?null:a.data;default:return null}}var jC={color:!0,date:!0,datetime:!0,"datetime-local":!0,email:!0,month:!0,number:!0,password:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0};function rg(r){var a=r&&r.nodeName&&r.nodeName.toLowerCase();return a==="input"?!!jC[r.type]:a==="textarea"}function ag(r,a,l,u){io?oo?oo.push(u):oo=[u]:io=u,a=ec(a,"onChange"),0<a.length&&(l=new cu("onChange","change",null,l,u),r.push({event:l,listeners:a}))}var Dl=null,xl=null;function zC(r){jv(r,0)}function fu(r){var a=bl(r);if(Iy(a))return r}function ig(r,a){if(r==="change")return a}var og=!1;if(Rr){var Df;if(Rr){var xf="oninput"in document;if(!xf){var lg=document.createElement("div");lg.setAttribute("oninput","return;"),xf=typeof lg.oninput=="function"}Df=xf}else Df=!1;og=Df&&(!document.documentMode||9<document.documentMode)}function sg(){Dl&&(Dl.detachEvent("onpropertychange",ug),xl=Dl=null)}function ug(r){if(r.propertyName==="value"&&fu(xl)){var a=[];ag(a,xl,r,hf(r)),Zy(zC,a)}}function UC(r,a,l){r==="focusin"?(sg(),Dl=a,xl=l,Dl.attachEvent("onpropertychange",ug)):r==="focusout"&&sg()}function HC(r){if(r==="selectionchange"||r==="keyup"||r==="keydown")return fu(xl)}function VC(r,a){if(r==="click")return fu(a)}function GC(r,a){if(r==="input"||r==="change")return fu(a)}function ZC(r,a){return r===a&&(r!==0||1/r===1/a)||r!==r&&a!==a}var On=typeof Object.is=="function"?Object.is:ZC;function Cl(r,a){if(On(r,a))return!0;if(typeof r!="object"||r===null||typeof a!="object"||a===null)return!1;var l=Object.keys(r),u=Object.keys(a);if(l.length!==u.length)return!1;for(u=0;u<l.length;u++){var f=l[u];if(!be.call(a,f)||!On(r[f],a[f]))return!1}return!0}function cg(r){for(;r&&r.firstChild;)r=r.firstChild;return r}function dg(r,a){var l=cg(r);r=0;for(var u;l;){if(l.nodeType===3){if(u=r+l.textContent.length,r<=a&&u>=a)return{node:l,offset:a-r};r=u}e:{for(;l;){if(l.nextSibling){l=l.nextSibling;break e}l=l.parentNode}l=void 0}l=cg(l)}}function fg(r,a){return r&&a?r===a?!0:r&&r.nodeType===3?!1:a&&a.nodeType===3?fg(r,a.parentNode):"contains"in r?r.contains(a):r.compareDocumentPosition?!!(r.compareDocumentPosition(a)&16):!1:!1}function mg(r){r=r!=null&&r.ownerDocument!=null&&r.ownerDocument.defaultView!=null?r.ownerDocument.defaultView:window;for(var a=iu(r.document);a instanceof r.HTMLIFrameElement;){try{var l=typeof a.contentWindow.location.href=="string"}catch{l=!1}if(l)r=a.contentWindow;else break;a=iu(r.document)}return a}function Cf(r){var a=r&&r.nodeName&&r.nodeName.toLowerCase();return a&&(a==="input"&&(r.type==="text"||r.type==="search"||r.type==="tel"||r.type==="url"||r.type==="password")||a==="textarea"||r.contentEditable==="true")}var YC=Rr&&"documentMode"in document&&11>=document.documentMode,so=null,Af=null,Al=null,wf=!1;function pg(r,a,l){var u=l.window===l?l.document:l.nodeType===9?l:l.ownerDocument;wf||so==null||so!==iu(u)||(u=so,"selectionStart"in u&&Cf(u)?u={start:u.selectionStart,end:u.selectionEnd}:(u=(u.ownerDocument&&u.ownerDocument.defaultView||window).getSelection(),u={anchorNode:u.anchorNode,anchorOffset:u.anchorOffset,focusNode:u.focusNode,focusOffset:u.focusOffset}),Al&&Cl(Al,u)||(Al=u,u=ec(Af,"onSelect"),0<u.length&&(a=new cu("onSelect","select",null,a,l),r.push({event:a,listeners:u}),a.target=so)))}function oi(r,a){var l={};return l[r.toLowerCase()]=a.toLowerCase(),l["Webkit"+r]="webkit"+a,l["Moz"+r]="moz"+a,l}var uo={animationend:oi("Animation","AnimationEnd"),animationiteration:oi("Animation","AnimationIteration"),animationstart:oi("Animation","AnimationStart"),transitionrun:oi("Transition","TransitionRun"),transitionstart:oi("Transition","TransitionStart"),transitioncancel:oi("Transition","TransitionCancel"),transitionend:oi("Transition","TransitionEnd")},Tf={},hg={};Rr&&(hg=document.createElement("div").style,"AnimationEvent"in window||(delete uo.animationend.animation,delete uo.animationiteration.animation,delete uo.animationstart.animation),"TransitionEvent"in window||delete uo.transitionend.transition);function li(r){if(Tf[r])return Tf[r];if(!uo[r])return r;var a=uo[r],l;for(l in a)if(a.hasOwnProperty(l)&&l in hg)return Tf[r]=a[l];return r}var yg=li("animationend"),gg=li("animationiteration"),bg=li("animationstart"),qC=li("transitionrun"),KC=li("transitionstart"),WC=li("transitioncancel"),vg=li("transitionend"),_g=new Map,Nf="abort auxClick beforeToggle cancel canPlay canPlayThrough click close contextMenu copy cut drag dragEnd dragEnter dragExit dragLeave dragOver dragStart drop durationChange emptied encrypted ended error gotPointerCapture input invalid keyDown keyPress keyUp load loadedData loadedMetadata loadStart lostPointerCapture mouseDown mouseMove mouseOut mouseOver mouseUp paste pause play playing pointerCancel pointerDown pointerMove pointerOut pointerOver pointerUp progress rateChange reset resize seeked seeking stalled submit suspend timeUpdate touchCancel touchEnd touchStart volumeChange scroll toggle touchMove waiting wheel".split(" ");Nf.push("scrollEnd");function fr(r,a){_g.set(r,a),ai(a,[r])}var mu=typeof reportError=="function"?reportError:function(r){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var a=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof r=="object"&&r!==null&&typeof r.message=="string"?String(r.message):String(r),error:r});if(!window.dispatchEvent(a))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",r);return}console.error(r)},Yn=[],co=0,Mf=0;function pu(){for(var r=co,a=Mf=co=0;a<r;){var l=Yn[a];Yn[a++]=null;var u=Yn[a];Yn[a++]=null;var f=Yn[a];Yn[a++]=null;var p=Yn[a];if(Yn[a++]=null,u!==null&&f!==null){var _=u.pending;_===null?f.next=f:(f.next=_.next,_.next=f),u.pending=f}p!==0&&Eg(l,f,p)}}function hu(r,a,l,u){Yn[co++]=r,Yn[co++]=a,Yn[co++]=l,Yn[co++]=u,Mf|=u,r.lanes|=u,r=r.alternate,r!==null&&(r.lanes|=u)}function Rf(r,a,l,u){return hu(r,a,l,u),yu(r)}function si(r,a){return hu(r,null,null,a),yu(r)}function Eg(r,a,l){r.lanes|=l;var u=r.alternate;u!==null&&(u.lanes|=l);for(var f=!1,p=r.return;p!==null;)p.childLanes|=l,u=p.alternate,u!==null&&(u.childLanes|=l),p.tag===22&&(r=p.stateNode,r===null||r._visibility&1||(f=!0)),r=p,p=p.return;return r.tag===3?(p=r.stateNode,f&&a!==null&&(f=31-Ye(l),r=p.hiddenUpdates,u=r[f],u===null?r[f]=[a]:u.push(a),a.lane=l|536870912),p):null}function yu(r){if(50<Kl)throw Kl=0,zm=null,Error(i(185));for(var a=r.return;a!==null;)r=a,a=r.return;return r.tag===3?r.stateNode:null}var fo={};function QC(r,a,l,u){this.tag=r,this.key=l,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.refCleanup=this.ref=null,this.pendingProps=a,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=u,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function kn(r,a,l,u){return new QC(r,a,l,u)}function Of(r){return r=r.prototype,!(!r||!r.isReactComponent)}function Or(r,a){var l=r.alternate;return l===null?(l=kn(r.tag,a,r.key,r.mode),l.elementType=r.elementType,l.type=r.type,l.stateNode=r.stateNode,l.alternate=r,r.alternate=l):(l.pendingProps=a,l.type=r.type,l.flags=0,l.subtreeFlags=0,l.deletions=null),l.flags=r.flags&65011712,l.childLanes=r.childLanes,l.lanes=r.lanes,l.child=r.child,l.memoizedProps=r.memoizedProps,l.memoizedState=r.memoizedState,l.updateQueue=r.updateQueue,a=r.dependencies,l.dependencies=a===null?null:{lanes:a.lanes,firstContext:a.firstContext},l.sibling=r.sibling,l.index=r.index,l.ref=r.ref,l.refCleanup=r.refCleanup,l}function Sg(r,a){r.flags&=65011714;var l=r.alternate;return l===null?(r.childLanes=0,r.lanes=a,r.child=null,r.subtreeFlags=0,r.memoizedProps=null,r.memoizedState=null,r.updateQueue=null,r.dependencies=null,r.stateNode=null):(r.childLanes=l.childLanes,r.lanes=l.lanes,r.child=l.child,r.subtreeFlags=0,r.deletions=null,r.memoizedProps=l.memoizedProps,r.memoizedState=l.memoizedState,r.updateQueue=l.updateQueue,r.type=l.type,a=l.dependencies,r.dependencies=a===null?null:{lanes:a.lanes,firstContext:a.firstContext}),r}function gu(r,a,l,u,f,p){var _=0;if(u=r,typeof r=="function")Of(r)&&(_=1);else if(typeof r=="string")_=nA(r,l,Y.current)?26:r==="html"||r==="head"||r==="body"?27:5;else e:switch(r){case ne:return r=kn(31,l,a,f),r.elementType=ne,r.lanes=p,r;case x:return ui(l.children,f,p,a);case w:_=8,f|=24;break;case R:return r=kn(12,l,a,f|2),r.elementType=R,r.lanes=p,r;case M:return r=kn(13,l,a,f),r.elementType=M,r.lanes=p,r;case Z:return r=kn(19,l,a,f),r.elementType=Z,r.lanes=p,r;default:if(typeof r=="object"&&r!==null)switch(r.$$typeof){case A:_=10;break e;case F:_=9;break e;case L:_=11;break e;case V:_=14;break e;case fe:_=16,u=null;break e}_=29,l=Error(i(130,r===null?"null":typeof r,"")),u=null}return a=kn(_,l,a,f),a.elementType=r,a.type=u,a.lanes=p,a}function ui(r,a,l,u){return r=kn(7,r,u,a),r.lanes=l,r}function kf(r,a,l){return r=kn(6,r,null,a),r.lanes=l,r}function $g(r){var a=kn(18,null,null,0);return a.stateNode=r,a}function Bf(r,a,l){return a=kn(4,r.children!==null?r.children:[],r.key,a),a.lanes=l,a.stateNode={containerInfo:r.containerInfo,pendingChildren:null,implementation:r.implementation},a}var Dg=new WeakMap;function qn(r,a){if(typeof r=="object"&&r!==null){var l=Dg.get(r);return l!==void 0?l:(a={value:r,source:a,stack:_e(a)},Dg.set(r,a),a)}return{value:r,source:a,stack:_e(a)}}var mo=[],po=0,bu=null,wl=0,Kn=[],Wn=0,fa=null,vr=1,_r="";function kr(r,a){mo[po++]=wl,mo[po++]=bu,bu=r,wl=a}function xg(r,a,l){Kn[Wn++]=vr,Kn[Wn++]=_r,Kn[Wn++]=fa,fa=r;var u=vr;r=_r;var f=32-Ye(u)-1;u&=~(1<<f),l+=1;var p=32-Ye(a)+f;if(30<p){var _=f-f%5;p=(u&(1<<_)-1).toString(32),u>>=_,f-=_,vr=1<<32-Ye(a)+f|l<<f|u,_r=p+r}else vr=1<<p|l<<f|u,_r=r}function Lf(r){r.return!==null&&(kr(r,1),xg(r,1,0))}function Pf(r){for(;r===bu;)bu=mo[--po],mo[po]=null,wl=mo[--po],mo[po]=null;for(;r===fa;)fa=Kn[--Wn],Kn[Wn]=null,_r=Kn[--Wn],Kn[Wn]=null,vr=Kn[--Wn],Kn[Wn]=null}function Cg(r,a){Kn[Wn++]=vr,Kn[Wn++]=_r,Kn[Wn++]=fa,vr=a.id,_r=a.overflow,fa=r}var Jt=null,$t=null,et=!1,ma=null,Qn=!1,Ff=Error(i(519));function pa(r){var a=Error(i(418,1<arguments.length&&arguments[1]!==void 0&&arguments[1]?"text":"HTML",""));throw Tl(qn(a,r)),Ff}function Ag(r){var a=r.stateNode,l=r.type,u=r.memoizedProps;switch(a[Qt]=r,a[yn]=u,l){case"dialog":Qe("cancel",a),Qe("close",a);break;case"iframe":case"object":case"embed":Qe("load",a);break;case"video":case"audio":for(l=0;l<Ql.length;l++)Qe(Ql[l],a);break;case"source":Qe("error",a);break;case"img":case"image":case"link":Qe("error",a),Qe("load",a);break;case"details":Qe("toggle",a);break;case"input":Qe("invalid",a),jy(a,u.value,u.defaultValue,u.checked,u.defaultChecked,u.type,u.name,!0);break;case"select":Qe("invalid",a);break;case"textarea":Qe("invalid",a),Uy(a,u.value,u.defaultValue,u.children)}l=u.children,typeof l!="string"&&typeof l!="number"&&typeof l!="bigint"||a.textContent===""+l||u.suppressHydrationWarning===!0||Vv(a.textContent,l)?(u.popover!=null&&(Qe("beforetoggle",a),Qe("toggle",a)),u.onScroll!=null&&Qe("scroll",a),u.onScrollEnd!=null&&Qe("scrollend",a),u.onClick!=null&&(a.onclick=Mr),a=!0):a=!1,a||pa(r,!0)}function wg(r){for(Jt=r.return;Jt;)switch(Jt.tag){case 5:case 31:case 13:Qn=!1;return;case 27:case 3:Qn=!0;return;default:Jt=Jt.return}}function ho(r){if(r!==Jt)return!1;if(!et)return wg(r),et=!0,!1;var a=r.tag,l;if((l=a!==3&&a!==27)&&((l=a===5)&&(l=r.type,l=!(l!=="form"&&l!=="button")||np(r.type,r.memoizedProps)),l=!l),l&&$t&&pa(r),wg(r),a===13){if(r=r.memoizedState,r=r!==null?r.dehydrated:null,!r)throw Error(i(317));$t=Xv(r)}else if(a===31){if(r=r.memoizedState,r=r!==null?r.dehydrated:null,!r)throw Error(i(317));$t=Xv(r)}else a===27?(a=$t,wa(r.type)?(r=lp,lp=null,$t=r):$t=a):$t=Jt?Xn(r.stateNode.nextSibling):null;return!0}function ci(){$t=Jt=null,et=!1}function If(){var r=ma;return r!==null&&(En===null?En=r:En.push.apply(En,r),ma=null),r}function Tl(r){ma===null?ma=[r]:ma.push(r)}var jf=C(null),di=null,Br=null;function ha(r,a,l){W(jf,a._currentValue),a._currentValue=l}function Lr(r){r._currentValue=jf.current,U(jf)}function zf(r,a,l){for(;r!==null;){var u=r.alternate;if((r.childLanes&a)!==a?(r.childLanes|=a,u!==null&&(u.childLanes|=a)):u!==null&&(u.childLanes&a)!==a&&(u.childLanes|=a),r===l)break;r=r.return}}function Uf(r,a,l,u){var f=r.child;for(f!==null&&(f.return=r);f!==null;){var p=f.dependencies;if(p!==null){var _=f.child;p=p.firstContext;e:for(;p!==null;){var D=p;p=f;for(var k=0;k<a.length;k++)if(D.context===a[k]){p.lanes|=l,D=p.alternate,D!==null&&(D.lanes|=l),zf(p.return,l,r),u||(_=null);break e}p=D.next}}else if(f.tag===18){if(_=f.return,_===null)throw Error(i(341));_.lanes|=l,p=_.alternate,p!==null&&(p.lanes|=l),zf(_,l,r),_=null}else _=f.child;if(_!==null)_.return=f;else for(_=f;_!==null;){if(_===r){_=null;break}if(f=_.sibling,f!==null){f.return=_.return,_=f;break}_=_.return}f=_}}function yo(r,a,l,u){r=null;for(var f=a,p=!1;f!==null;){if(!p){if((f.flags&524288)!==0)p=!0;else if((f.flags&262144)!==0)break}if(f.tag===10){var _=f.alternate;if(_===null)throw Error(i(387));if(_=_.memoizedProps,_!==null){var D=f.type;On(f.pendingProps.value,_.value)||(r!==null?r.push(D):r=[D])}}else if(f===T.current){if(_=f.alternate,_===null)throw Error(i(387));_.memoizedState.memoizedState!==f.memoizedState.memoizedState&&(r!==null?r.push(ns):r=[ns])}f=f.return}r!==null&&Uf(a,r,l,u),a.flags|=262144}function vu(r){for(r=r.firstContext;r!==null;){if(!On(r.context._currentValue,r.memoizedValue))return!0;r=r.next}return!1}function fi(r){di=r,Br=null,r=r.dependencies,r!==null&&(r.firstContext=null)}function Xt(r){return Tg(di,r)}function _u(r,a){return di===null&&fi(r),Tg(r,a)}function Tg(r,a){var l=a._currentValue;if(a={context:a,memoizedValue:l,next:null},Br===null){if(r===null)throw Error(i(308));Br=a,r.dependencies={lanes:0,firstContext:a},r.flags|=524288}else Br=Br.next=a;return l}var JC=typeof AbortController<"u"?AbortController:function(){var r=[],a=this.signal={aborted:!1,addEventListener:function(l,u){r.push(u)}};this.abort=function(){a.aborted=!0,r.forEach(function(l){return l()})}},XC=e.unstable_scheduleCallback,e6=e.unstable_NormalPriority,It={$$typeof:A,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function Hf(){return{controller:new JC,data:new Map,refCount:0}}function Nl(r){r.refCount--,r.refCount===0&&XC(e6,function(){r.controller.abort()})}var Ml=null,Vf=0,go=0,bo=null;function t6(r,a){if(Ml===null){var l=Ml=[];Vf=0,go=Ym(),bo={status:"pending",value:void 0,then:function(u){l.push(u)}}}return Vf++,a.then(Ng,Ng),a}function Ng(){if(--Vf===0&&Ml!==null){bo!==null&&(bo.status="fulfilled");var r=Ml;Ml=null,go=0,bo=null;for(var a=0;a<r.length;a++)(0,r[a])()}}function n6(r,a){var l=[],u={status:"pending",value:null,reason:null,then:function(f){l.push(f)}};return r.then(function(){u.status="fulfilled",u.value=a;for(var f=0;f<l.length;f++)(0,l[f])(a)},function(f){for(u.status="rejected",u.reason=f,f=0;f<l.length;f++)(0,l[f])(void 0)}),u}var Mg=O.S;O.S=function(r,a){pv=oe(),typeof a=="object"&&a!==null&&typeof a.then=="function"&&t6(r,a),Mg!==null&&Mg(r,a)};var mi=C(null);function Gf(){var r=mi.current;return r!==null?r:vt.pooledCache}function Eu(r,a){a===null?W(mi,mi.current):W(mi,a.pool)}function Rg(){var r=Gf();return r===null?null:{parent:It._currentValue,pool:r}}var vo=Error(i(460)),Zf=Error(i(474)),Su=Error(i(542)),$u={then:function(){}};function Og(r){return r=r.status,r==="fulfilled"||r==="rejected"}function kg(r,a,l){switch(l=r[l],l===void 0?r.push(a):l!==a&&(a.then(Mr,Mr),a=l),a.status){case"fulfilled":return a.value;case"rejected":throw r=a.reason,Lg(r),r;default:if(typeof a.status=="string")a.then(Mr,Mr);else{if(r=vt,r!==null&&100<r.shellSuspendCounter)throw Error(i(482));r=a,r.status="pending",r.then(function(u){if(a.status==="pending"){var f=a;f.status="fulfilled",f.value=u}},function(u){if(a.status==="pending"){var f=a;f.status="rejected",f.reason=u}})}switch(a.status){case"fulfilled":return a.value;case"rejected":throw r=a.reason,Lg(r),r}throw hi=a,vo}}function pi(r){try{var a=r._init;return a(r._payload)}catch(l){throw l!==null&&typeof l=="object"&&typeof l.then=="function"?(hi=l,vo):l}}var hi=null;function Bg(){if(hi===null)throw Error(i(459));var r=hi;return hi=null,r}function Lg(r){if(r===vo||r===Su)throw Error(i(483))}var _o=null,Rl=0;function Du(r){var a=Rl;return Rl+=1,_o===null&&(_o=[]),kg(_o,r,a)}function Ol(r,a){a=a.props.ref,r.ref=a!==void 0?a:null}function xu(r,a){throw a.$$typeof===E?Error(i(525)):(r=Object.prototype.toString.call(a),Error(i(31,r==="[object Object]"?"object with keys {"+Object.keys(a).join(", ")+"}":r)))}function Pg(r){function a(H,P){if(r){var q=H.deletions;q===null?(H.deletions=[P],H.flags|=16):q.push(P)}}function l(H,P){if(!r)return null;for(;P!==null;)a(H,P),P=P.sibling;return null}function u(H){for(var P=new Map;H!==null;)H.key!==null?P.set(H.key,H):P.set(H.index,H),H=H.sibling;return P}function f(H,P){return H=Or(H,P),H.index=0,H.sibling=null,H}function p(H,P,q){return H.index=q,r?(q=H.alternate,q!==null?(q=q.index,q<P?(H.flags|=67108866,P):q):(H.flags|=67108866,P)):(H.flags|=1048576,P)}function _(H){return r&&H.alternate===null&&(H.flags|=67108866),H}function D(H,P,q,le){return P===null||P.tag!==6?(P=kf(q,H.mode,le),P.return=H,P):(P=f(P,q),P.return=H,P)}function k(H,P,q,le){var Be=q.type;return Be===x?ae(H,P,q.props.children,le,q.key):P!==null&&(P.elementType===Be||typeof Be=="object"&&Be!==null&&Be.$$typeof===fe&&pi(Be)===P.type)?(P=f(P,q.props),Ol(P,q),P.return=H,P):(P=gu(q.type,q.key,q.props,null,H.mode,le),Ol(P,q),P.return=H,P)}function K(H,P,q,le){return P===null||P.tag!==4||P.stateNode.containerInfo!==q.containerInfo||P.stateNode.implementation!==q.implementation?(P=Bf(q,H.mode,le),P.return=H,P):(P=f(P,q.children||[]),P.return=H,P)}function ae(H,P,q,le,Be){return P===null||P.tag!==7?(P=ui(q,H.mode,le,Be),P.return=H,P):(P=f(P,q),P.return=H,P)}function ce(H,P,q){if(typeof P=="string"&&P!==""||typeof P=="number"||typeof P=="bigint")return P=kf(""+P,H.mode,q),P.return=H,P;if(typeof P=="object"&&P!==null){switch(P.$$typeof){case S:return q=gu(P.type,P.key,P.props,null,H.mode,q),Ol(q,P),q.return=H,q;case $:return P=Bf(P,H.mode,q),P.return=H,P;case fe:return P=pi(P),ce(H,P,q)}if(de(P)||ye(P))return P=ui(P,H.mode,q,null),P.return=H,P;if(typeof P.then=="function")return ce(H,Du(P),q);if(P.$$typeof===A)return ce(H,_u(H,P),q);xu(H,P)}return null}function Q(H,P,q,le){var Be=P!==null?P.key:null;if(typeof q=="string"&&q!==""||typeof q=="number"||typeof q=="bigint")return Be!==null?null:D(H,P,""+q,le);if(typeof q=="object"&&q!==null){switch(q.$$typeof){case S:return q.key===Be?k(H,P,q,le):null;case $:return q.key===Be?K(H,P,q,le):null;case fe:return q=pi(q),Q(H,P,q,le)}if(de(q)||ye(q))return Be!==null?null:ae(H,P,q,le,null);if(typeof q.then=="function")return Q(H,P,Du(q),le);if(q.$$typeof===A)return Q(H,P,_u(H,q),le);xu(H,q)}return null}function ee(H,P,q,le,Be){if(typeof le=="string"&&le!==""||typeof le=="number"||typeof le=="bigint")return H=H.get(q)||null,D(P,H,""+le,Be);if(typeof le=="object"&&le!==null){switch(le.$$typeof){case S:return H=H.get(le.key===null?q:le.key)||null,k(P,H,le,Be);case $:return H=H.get(le.key===null?q:le.key)||null,K(P,H,le,Be);case fe:return le=pi(le),ee(H,P,q,le,Be)}if(de(le)||ye(le))return H=H.get(q)||null,ae(P,H,le,Be,null);if(typeof le.then=="function")return ee(H,P,q,Du(le),Be);if(le.$$typeof===A)return ee(H,P,q,_u(P,le),Be);xu(P,le)}return null}function Me(H,P,q,le){for(var Be=null,at=null,Oe=P,Ze=P=0,Xe=null;Oe!==null&&Ze<q.length;Ze++){Oe.index>Ze?(Xe=Oe,Oe=null):Xe=Oe.sibling;var it=Q(H,Oe,q[Ze],le);if(it===null){Oe===null&&(Oe=Xe);break}r&&Oe&&it.alternate===null&&a(H,Oe),P=p(it,P,Ze),at===null?Be=it:at.sibling=it,at=it,Oe=Xe}if(Ze===q.length)return l(H,Oe),et&&kr(H,Ze),Be;if(Oe===null){for(;Ze<q.length;Ze++)Oe=ce(H,q[Ze],le),Oe!==null&&(P=p(Oe,P,Ze),at===null?Be=Oe:at.sibling=Oe,at=Oe);return et&&kr(H,Ze),Be}for(Oe=u(Oe);Ze<q.length;Ze++)Xe=ee(Oe,H,Ze,q[Ze],le),Xe!==null&&(r&&Xe.alternate!==null&&Oe.delete(Xe.key===null?Ze:Xe.key),P=p(Xe,P,Ze),at===null?Be=Xe:at.sibling=Xe,at=Xe);return r&&Oe.forEach(function(Oa){return a(H,Oa)}),et&&kr(H,Ze),Be}function Ie(H,P,q,le){if(q==null)throw Error(i(151));for(var Be=null,at=null,Oe=P,Ze=P=0,Xe=null,it=q.next();Oe!==null&&!it.done;Ze++,it=q.next()){Oe.index>Ze?(Xe=Oe,Oe=null):Xe=Oe.sibling;var Oa=Q(H,Oe,it.value,le);if(Oa===null){Oe===null&&(Oe=Xe);break}r&&Oe&&Oa.alternate===null&&a(H,Oe),P=p(Oa,P,Ze),at===null?Be=Oa:at.sibling=Oa,at=Oa,Oe=Xe}if(it.done)return l(H,Oe),et&&kr(H,Ze),Be;if(Oe===null){for(;!it.done;Ze++,it=q.next())it=ce(H,it.value,le),it!==null&&(P=p(it,P,Ze),at===null?Be=it:at.sibling=it,at=it);return et&&kr(H,Ze),Be}for(Oe=u(Oe);!it.done;Ze++,it=q.next())it=ee(Oe,H,Ze,it.value,le),it!==null&&(r&&it.alternate!==null&&Oe.delete(it.key===null?Ze:it.key),P=p(it,P,Ze),at===null?Be=it:at.sibling=it,at=it);return r&&Oe.forEach(function(mA){return a(H,mA)}),et&&kr(H,Ze),Be}function gt(H,P,q,le){if(typeof q=="object"&&q!==null&&q.type===x&&q.key===null&&(q=q.props.children),typeof q=="object"&&q!==null){switch(q.$$typeof){case S:e:{for(var Be=q.key;P!==null;){if(P.key===Be){if(Be=q.type,Be===x){if(P.tag===7){l(H,P.sibling),le=f(P,q.props.children),le.return=H,H=le;break e}}else if(P.elementType===Be||typeof Be=="object"&&Be!==null&&Be.$$typeof===fe&&pi(Be)===P.type){l(H,P.sibling),le=f(P,q.props),Ol(le,q),le.return=H,H=le;break e}l(H,P);break}else a(H,P);P=P.sibling}q.type===x?(le=ui(q.props.children,H.mode,le,q.key),le.return=H,H=le):(le=gu(q.type,q.key,q.props,null,H.mode,le),Ol(le,q),le.return=H,H=le)}return _(H);case $:e:{for(Be=q.key;P!==null;){if(P.key===Be)if(P.tag===4&&P.stateNode.containerInfo===q.containerInfo&&P.stateNode.implementation===q.implementation){l(H,P.sibling),le=f(P,q.children||[]),le.return=H,H=le;break e}else{l(H,P);break}else a(H,P);P=P.sibling}le=Bf(q,H.mode,le),le.return=H,H=le}return _(H);case fe:return q=pi(q),gt(H,P,q,le)}if(de(q))return Me(H,P,q,le);if(ye(q)){if(Be=ye(q),typeof Be!="function")throw Error(i(150));return q=Be.call(q),Ie(H,P,q,le)}if(typeof q.then=="function")return gt(H,P,Du(q),le);if(q.$$typeof===A)return gt(H,P,_u(H,q),le);xu(H,q)}return typeof q=="string"&&q!==""||typeof q=="number"||typeof q=="bigint"?(q=""+q,P!==null&&P.tag===6?(l(H,P.sibling),le=f(P,q),le.return=H,H=le):(l(H,P),le=kf(q,H.mode,le),le.return=H,H=le),_(H)):l(H,P)}return function(H,P,q,le){try{Rl=0;var Be=gt(H,P,q,le);return _o=null,Be}catch(Oe){if(Oe===vo||Oe===Su)throw Oe;var at=kn(29,Oe,null,H.mode);return at.lanes=le,at.return=H,at}finally{}}}var yi=Pg(!0),Fg=Pg(!1),ya=!1;function Yf(r){r.updateQueue={baseState:r.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function qf(r,a){r=r.updateQueue,a.updateQueue===r&&(a.updateQueue={baseState:r.baseState,firstBaseUpdate:r.firstBaseUpdate,lastBaseUpdate:r.lastBaseUpdate,shared:r.shared,callbacks:null})}function ga(r){return{lane:r,tag:0,payload:null,callback:null,next:null}}function ba(r,a,l){var u=r.updateQueue;if(u===null)return null;if(u=u.shared,(lt&2)!==0){var f=u.pending;return f===null?a.next=a:(a.next=f.next,f.next=a),u.pending=a,a=yu(r),Eg(r,null,l),a}return hu(r,u,a,l),yu(r)}function kl(r,a,l){if(a=a.updateQueue,a!==null&&(a=a.shared,(l&4194048)!==0)){var u=a.lanes;u&=r.pendingLanes,l|=u,a.lanes=l,nu(r,l)}}function Kf(r,a){var l=r.updateQueue,u=r.alternate;if(u!==null&&(u=u.updateQueue,l===u)){var f=null,p=null;if(l=l.firstBaseUpdate,l!==null){do{var _={lane:l.lane,tag:l.tag,payload:l.payload,callback:null,next:null};p===null?f=p=_:p=p.next=_,l=l.next}while(l!==null);p===null?f=p=a:p=p.next=a}else f=p=a;l={baseState:u.baseState,firstBaseUpdate:f,lastBaseUpdate:p,shared:u.shared,callbacks:u.callbacks},r.updateQueue=l;return}r=l.lastBaseUpdate,r===null?l.firstBaseUpdate=a:r.next=a,l.lastBaseUpdate=a}var Wf=!1;function Bl(){if(Wf){var r=bo;if(r!==null)throw r}}function Ll(r,a,l,u){Wf=!1;var f=r.updateQueue;ya=!1;var p=f.firstBaseUpdate,_=f.lastBaseUpdate,D=f.shared.pending;if(D!==null){f.shared.pending=null;var k=D,K=k.next;k.next=null,_===null?p=K:_.next=K,_=k;var ae=r.alternate;ae!==null&&(ae=ae.updateQueue,D=ae.lastBaseUpdate,D!==_&&(D===null?ae.firstBaseUpdate=K:D.next=K,ae.lastBaseUpdate=k))}if(p!==null){var ce=f.baseState;_=0,ae=K=k=null,D=p;do{var Q=D.lane&-536870913,ee=Q!==D.lane;if(ee?(Je&Q)===Q:(u&Q)===Q){Q!==0&&Q===go&&(Wf=!0),ae!==null&&(ae=ae.next={lane:0,tag:D.tag,payload:D.payload,callback:null,next:null});e:{var Me=r,Ie=D;Q=a;var gt=l;switch(Ie.tag){case 1:if(Me=Ie.payload,typeof Me=="function"){ce=Me.call(gt,ce,Q);break e}ce=Me;break e;case 3:Me.flags=Me.flags&-65537|128;case 0:if(Me=Ie.payload,Q=typeof Me=="function"?Me.call(gt,ce,Q):Me,Q==null)break e;ce=g({},ce,Q);break e;case 2:ya=!0}}Q=D.callback,Q!==null&&(r.flags|=64,ee&&(r.flags|=8192),ee=f.callbacks,ee===null?f.callbacks=[Q]:ee.push(Q))}else ee={lane:Q,tag:D.tag,payload:D.payload,callback:D.callback,next:null},ae===null?(K=ae=ee,k=ce):ae=ae.next=ee,_|=Q;if(D=D.next,D===null){if(D=f.shared.pending,D===null)break;ee=D,D=ee.next,ee.next=null,f.lastBaseUpdate=ee,f.shared.pending=null}}while(!0);ae===null&&(k=ce),f.baseState=k,f.firstBaseUpdate=K,f.lastBaseUpdate=ae,p===null&&(f.shared.lanes=0),$a|=_,r.lanes=_,r.memoizedState=ce}}function Ig(r,a){if(typeof r!="function")throw Error(i(191,r));r.call(a)}function jg(r,a){var l=r.callbacks;if(l!==null)for(r.callbacks=null,r=0;r<l.length;r++)Ig(l[r],a)}var Eo=C(null),Cu=C(0);function zg(r,a){r=Gr,W(Cu,r),W(Eo,a),Gr=r|a.baseLanes}function Qf(){W(Cu,Gr),W(Eo,Eo.current)}function Jf(){Gr=Cu.current,U(Eo),U(Cu)}var Bn=C(null),Jn=null;function va(r){var a=r.alternate;W(Lt,Lt.current&1),W(Bn,r),Jn===null&&(a===null||Eo.current!==null||a.memoizedState!==null)&&(Jn=r)}function Xf(r){W(Lt,Lt.current),W(Bn,r),Jn===null&&(Jn=r)}function Ug(r){r.tag===22?(W(Lt,Lt.current),W(Bn,r),Jn===null&&(Jn=r)):_a()}function _a(){W(Lt,Lt.current),W(Bn,Bn.current)}function Ln(r){U(Bn),Jn===r&&(Jn=null),U(Lt)}var Lt=C(0);function Au(r){for(var a=r;a!==null;){if(a.tag===13){var l=a.memoizedState;if(l!==null&&(l=l.dehydrated,l===null||ip(l)||op(l)))return a}else if(a.tag===19&&(a.memoizedProps.revealOrder==="forwards"||a.memoizedProps.revealOrder==="backwards"||a.memoizedProps.revealOrder==="unstable_legacy-backwards"||a.memoizedProps.revealOrder==="together")){if((a.flags&128)!==0)return a}else if(a.child!==null){a.child.return=a,a=a.child;continue}if(a===r)break;for(;a.sibling===null;){if(a.return===null||a.return===r)return null;a=a.return}a.sibling.return=a.return,a=a.sibling}return null}var Pr=0,Ge=null,ht=null,jt=null,wu=!1,So=!1,gi=!1,Tu=0,Pl=0,$o=null,r6=0;function Nt(){throw Error(i(321))}function em(r,a){if(a===null)return!1;for(var l=0;l<a.length&&l<r.length;l++)if(!On(r[l],a[l]))return!1;return!0}function tm(r,a,l,u,f,p){return Pr=p,Ge=a,a.memoizedState=null,a.updateQueue=null,a.lanes=0,O.H=r===null||r.memoizedState===null?xb:ym,gi=!1,p=l(u,f),gi=!1,So&&(p=Vg(a,l,u,f)),Hg(r),p}function Hg(r){O.H=jl;var a=ht!==null&&ht.next!==null;if(Pr=0,jt=ht=Ge=null,wu=!1,Pl=0,$o=null,a)throw Error(i(300));r===null||zt||(r=r.dependencies,r!==null&&vu(r)&&(zt=!0))}function Vg(r,a,l,u){Ge=r;var f=0;do{if(So&&($o=null),Pl=0,So=!1,25<=f)throw Error(i(301));if(f+=1,jt=ht=null,r.updateQueue!=null){var p=r.updateQueue;p.lastEffect=null,p.events=null,p.stores=null,p.memoCache!=null&&(p.memoCache.index=0)}O.H=Cb,p=a(l,u)}while(So);return p}function a6(){var r=O.H,a=r.useState()[0];return a=typeof a.then=="function"?Fl(a):a,r=r.useState()[0],(ht!==null?ht.memoizedState:null)!==r&&(Ge.flags|=1024),a}function nm(){var r=Tu!==0;return Tu=0,r}function rm(r,a,l){a.updateQueue=r.updateQueue,a.flags&=-2053,r.lanes&=~l}function am(r){if(wu){for(r=r.memoizedState;r!==null;){var a=r.queue;a!==null&&(a.pending=null),r=r.next}wu=!1}Pr=0,jt=ht=Ge=null,So=!1,Pl=Tu=0,$o=null}function cn(){var r={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return jt===null?Ge.memoizedState=jt=r:jt=jt.next=r,jt}function Pt(){if(ht===null){var r=Ge.alternate;r=r!==null?r.memoizedState:null}else r=ht.next;var a=jt===null?Ge.memoizedState:jt.next;if(a!==null)jt=a,ht=r;else{if(r===null)throw Ge.alternate===null?Error(i(467)):Error(i(310));ht=r,r={memoizedState:ht.memoizedState,baseState:ht.baseState,baseQueue:ht.baseQueue,queue:ht.queue,next:null},jt===null?Ge.memoizedState=jt=r:jt=jt.next=r}return jt}function Nu(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function Fl(r){var a=Pl;return Pl+=1,$o===null&&($o=[]),r=kg($o,r,a),a=Ge,(jt===null?a.memoizedState:jt.next)===null&&(a=a.alternate,O.H=a===null||a.memoizedState===null?xb:ym),r}function Mu(r){if(r!==null&&typeof r=="object"){if(typeof r.then=="function")return Fl(r);if(r.$$typeof===A)return Xt(r)}throw Error(i(438,String(r)))}function im(r){var a=null,l=Ge.updateQueue;if(l!==null&&(a=l.memoCache),a==null){var u=Ge.alternate;u!==null&&(u=u.updateQueue,u!==null&&(u=u.memoCache,u!=null&&(a={data:u.data.map(function(f){return f.slice()}),index:0})))}if(a==null&&(a={data:[],index:0}),l===null&&(l=Nu(),Ge.updateQueue=l),l.memoCache=a,l=a.data[a.index],l===void 0)for(l=a.data[a.index]=Array(r),u=0;u<r;u++)l[u]=pe;return a.index++,l}function Fr(r,a){return typeof a=="function"?a(r):a}function Ru(r){var a=Pt();return om(a,ht,r)}function om(r,a,l){var u=r.queue;if(u===null)throw Error(i(311));u.lastRenderedReducer=l;var f=r.baseQueue,p=u.pending;if(p!==null){if(f!==null){var _=f.next;f.next=p.next,p.next=_}a.baseQueue=f=p,u.pending=null}if(p=r.baseState,f===null)r.memoizedState=p;else{a=f.next;var D=_=null,k=null,K=a,ae=!1;do{var ce=K.lane&-536870913;if(ce!==K.lane?(Je&ce)===ce:(Pr&ce)===ce){var Q=K.revertLane;if(Q===0)k!==null&&(k=k.next={lane:0,revertLane:0,gesture:null,action:K.action,hasEagerState:K.hasEagerState,eagerState:K.eagerState,next:null}),ce===go&&(ae=!0);else if((Pr&Q)===Q){K=K.next,Q===go&&(ae=!0);continue}else ce={lane:0,revertLane:K.revertLane,gesture:null,action:K.action,hasEagerState:K.hasEagerState,eagerState:K.eagerState,next:null},k===null?(D=k=ce,_=p):k=k.next=ce,Ge.lanes|=Q,$a|=Q;ce=K.action,gi&&l(p,ce),p=K.hasEagerState?K.eagerState:l(p,ce)}else Q={lane:ce,revertLane:K.revertLane,gesture:K.gesture,action:K.action,hasEagerState:K.hasEagerState,eagerState:K.eagerState,next:null},k===null?(D=k=Q,_=p):k=k.next=Q,Ge.lanes|=ce,$a|=ce;K=K.next}while(K!==null&&K!==a);if(k===null?_=p:k.next=D,!On(p,r.memoizedState)&&(zt=!0,ae&&(l=bo,l!==null)))throw l;r.memoizedState=p,r.baseState=_,r.baseQueue=k,u.lastRenderedState=p}return f===null&&(u.lanes=0),[r.memoizedState,u.dispatch]}function lm(r){var a=Pt(),l=a.queue;if(l===null)throw Error(i(311));l.lastRenderedReducer=r;var u=l.dispatch,f=l.pending,p=a.memoizedState;if(f!==null){l.pending=null;var _=f=f.next;do p=r(p,_.action),_=_.next;while(_!==f);On(p,a.memoizedState)||(zt=!0),a.memoizedState=p,a.baseQueue===null&&(a.baseState=p),l.lastRenderedState=p}return[p,u]}function Gg(r,a,l){var u=Ge,f=Pt(),p=et;if(p){if(l===void 0)throw Error(i(407));l=l()}else l=a();var _=!On((ht||f).memoizedState,l);if(_&&(f.memoizedState=l,zt=!0),f=f.queue,cm(qg.bind(null,u,f,r),[r]),f.getSnapshot!==a||_||jt!==null&&jt.memoizedState.tag&1){if(u.flags|=2048,Do(9,{destroy:void 0},Yg.bind(null,u,f,l,a),null),vt===null)throw Error(i(349));p||(Pr&127)!==0||Zg(u,a,l)}return l}function Zg(r,a,l){r.flags|=16384,r={getSnapshot:a,value:l},a=Ge.updateQueue,a===null?(a=Nu(),Ge.updateQueue=a,a.stores=[r]):(l=a.stores,l===null?a.stores=[r]:l.push(r))}function Yg(r,a,l,u){a.value=l,a.getSnapshot=u,Kg(a)&&Wg(r)}function qg(r,a,l){return l(function(){Kg(a)&&Wg(r)})}function Kg(r){var a=r.getSnapshot;r=r.value;try{var l=a();return!On(r,l)}catch{return!0}}function Wg(r){var a=si(r,2);a!==null&&Sn(a,r,2)}function sm(r){var a=cn();if(typeof r=="function"){var l=r;if(r=l(),gi){Tt(!0);try{l()}finally{Tt(!1)}}}return a.memoizedState=a.baseState=r,a.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:Fr,lastRenderedState:r},a}function Qg(r,a,l,u){return r.baseState=l,om(r,ht,typeof u=="function"?u:Fr)}function i6(r,a,l,u,f){if(Bu(r))throw Error(i(485));if(r=a.action,r!==null){var p={payload:f,action:r,next:null,isTransition:!0,status:"pending",value:null,reason:null,listeners:[],then:function(_){p.listeners.push(_)}};O.T!==null?l(!0):p.isTransition=!1,u(p),l=a.pending,l===null?(p.next=a.pending=p,Jg(a,p)):(p.next=l.next,a.pending=l.next=p)}}function Jg(r,a){var l=a.action,u=a.payload,f=r.state;if(a.isTransition){var p=O.T,_={};O.T=_;try{var D=l(f,u),k=O.S;k!==null&&k(_,D),Xg(r,a,D)}catch(K){um(r,a,K)}finally{p!==null&&_.types!==null&&(p.types=_.types),O.T=p}}else try{p=l(f,u),Xg(r,a,p)}catch(K){um(r,a,K)}}function Xg(r,a,l){l!==null&&typeof l=="object"&&typeof l.then=="function"?l.then(function(u){eb(r,a,u)},function(u){return um(r,a,u)}):eb(r,a,l)}function eb(r,a,l){a.status="fulfilled",a.value=l,tb(a),r.state=l,a=r.pending,a!==null&&(l=a.next,l===a?r.pending=null:(l=l.next,a.next=l,Jg(r,l)))}function um(r,a,l){var u=r.pending;if(r.pending=null,u!==null){u=u.next;do a.status="rejected",a.reason=l,tb(a),a=a.next;while(a!==u)}r.action=null}function tb(r){r=r.listeners;for(var a=0;a<r.length;a++)(0,r[a])()}function nb(r,a){return a}function rb(r,a){if(et){var l=vt.formState;if(l!==null){e:{var u=Ge;if(et){if($t){t:{for(var f=$t,p=Qn;f.nodeType!==8;){if(!p){f=null;break t}if(f=Xn(f.nextSibling),f===null){f=null;break t}}p=f.data,f=p==="F!"||p==="F"?f:null}if(f){$t=Xn(f.nextSibling),u=f.data==="F!";break e}}pa(u)}u=!1}u&&(a=l[0])}}return l=cn(),l.memoizedState=l.baseState=a,u={pending:null,lanes:0,dispatch:null,lastRenderedReducer:nb,lastRenderedState:a},l.queue=u,l=Sb.bind(null,Ge,u),u.dispatch=l,u=sm(!1),p=hm.bind(null,Ge,!1,u.queue),u=cn(),f={state:a,dispatch:null,action:r,pending:null},u.queue=f,l=i6.bind(null,Ge,f,p,l),f.dispatch=l,u.memoizedState=r,[a,l,!1]}function ab(r){var a=Pt();return ib(a,ht,r)}function ib(r,a,l){if(a=om(r,a,nb)[0],r=Ru(Fr)[0],typeof a=="object"&&a!==null&&typeof a.then=="function")try{var u=Fl(a)}catch(_){throw _===vo?Su:_}else u=a;a=Pt();var f=a.queue,p=f.dispatch;return l!==a.memoizedState&&(Ge.flags|=2048,Do(9,{destroy:void 0},o6.bind(null,f,l),null)),[u,p,r]}function o6(r,a){r.action=a}function ob(r){var a=Pt(),l=ht;if(l!==null)return ib(a,l,r);Pt(),a=a.memoizedState,l=Pt();var u=l.queue.dispatch;return l.memoizedState=r,[a,u,!1]}function Do(r,a,l,u){return r={tag:r,create:l,deps:u,inst:a,next:null},a=Ge.updateQueue,a===null&&(a=Nu(),Ge.updateQueue=a),l=a.lastEffect,l===null?a.lastEffect=r.next=r:(u=l.next,l.next=r,r.next=u,a.lastEffect=r),r}function lb(){return Pt().memoizedState}function Ou(r,a,l,u){var f=cn();Ge.flags|=r,f.memoizedState=Do(1|a,{destroy:void 0},l,u===void 0?null:u)}function ku(r,a,l,u){var f=Pt();u=u===void 0?null:u;var p=f.memoizedState.inst;ht!==null&&u!==null&&em(u,ht.memoizedState.deps)?f.memoizedState=Do(a,p,l,u):(Ge.flags|=r,f.memoizedState=Do(1|a,p,l,u))}function sb(r,a){Ou(8390656,8,r,a)}function cm(r,a){ku(2048,8,r,a)}function l6(r){Ge.flags|=4;var a=Ge.updateQueue;if(a===null)a=Nu(),Ge.updateQueue=a,a.events=[r];else{var l=a.events;l===null?a.events=[r]:l.push(r)}}function ub(r){var a=Pt().memoizedState;return l6({ref:a,nextImpl:r}),function(){if((lt&2)!==0)throw Error(i(440));return a.impl.apply(void 0,arguments)}}function cb(r,a){return ku(4,2,r,a)}function db(r,a){return ku(4,4,r,a)}function fb(r,a){if(typeof a=="function"){r=r();var l=a(r);return function(){typeof l=="function"?l():a(null)}}if(a!=null)return r=r(),a.current=r,function(){a.current=null}}function mb(r,a,l){l=l!=null?l.concat([r]):null,ku(4,4,fb.bind(null,a,r),l)}function dm(){}function pb(r,a){var l=Pt();a=a===void 0?null:a;var u=l.memoizedState;return a!==null&&em(a,u[1])?u[0]:(l.memoizedState=[r,a],r)}function hb(r,a){var l=Pt();a=a===void 0?null:a;var u=l.memoizedState;if(a!==null&&em(a,u[1]))return u[0];if(u=r(),gi){Tt(!0);try{r()}finally{Tt(!1)}}return l.memoizedState=[u,a],u}function fm(r,a,l){return l===void 0||(Pr&1073741824)!==0&&(Je&261930)===0?r.memoizedState=a:(r.memoizedState=l,r=yv(),Ge.lanes|=r,$a|=r,l)}function yb(r,a,l,u){return On(l,a)?l:Eo.current!==null?(r=fm(r,l,u),On(r,a)||(zt=!0),r):(Pr&42)===0||(Pr&1073741824)!==0&&(Je&261930)===0?(zt=!0,r.memoizedState=l):(r=yv(),Ge.lanes|=r,$a|=r,a)}function gb(r,a,l,u,f){var p=B.p;B.p=p!==0&&8>p?p:8;var _=O.T,D={};O.T=D,hm(r,!1,a,l);try{var k=f(),K=O.S;if(K!==null&&K(D,k),k!==null&&typeof k=="object"&&typeof k.then=="function"){var ae=n6(k,u);Il(r,a,ae,In(r))}else Il(r,a,u,In(r))}catch(ce){Il(r,a,{then:function(){},status:"rejected",reason:ce},In())}finally{B.p=p,_!==null&&D.types!==null&&(_.types=D.types),O.T=_}}function s6(){}function mm(r,a,l,u){if(r.tag!==5)throw Error(i(476));var f=bb(r).queue;gb(r,f,a,X,l===null?s6:function(){return vb(r),l(u)})}function bb(r){var a=r.memoizedState;if(a!==null)return a;a={memoizedState:X,baseState:X,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Fr,lastRenderedState:X},next:null};var l={};return a.next={memoizedState:l,baseState:l,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Fr,lastRenderedState:l},next:null},r.memoizedState=a,r=r.alternate,r!==null&&(r.memoizedState=a),a}function vb(r){var a=bb(r);a.next===null&&(a=r.alternate.memoizedState),Il(r,a.next.queue,{},In())}function pm(){return Xt(ns)}function _b(){return Pt().memoizedState}function Eb(){return Pt().memoizedState}function u6(r){for(var a=r.return;a!==null;){switch(a.tag){case 24:case 3:var l=In();r=ga(l);var u=ba(a,r,l);u!==null&&(Sn(u,a,l),kl(u,a,l)),a={cache:Hf()},r.payload=a;return}a=a.return}}function c6(r,a,l){var u=In();l={lane:u,revertLane:0,gesture:null,action:l,hasEagerState:!1,eagerState:null,next:null},Bu(r)?$b(a,l):(l=Rf(r,a,l,u),l!==null&&(Sn(l,r,u),Db(l,a,u)))}function Sb(r,a,l){var u=In();Il(r,a,l,u)}function Il(r,a,l,u){var f={lane:u,revertLane:0,gesture:null,action:l,hasEagerState:!1,eagerState:null,next:null};if(Bu(r))$b(a,f);else{var p=r.alternate;if(r.lanes===0&&(p===null||p.lanes===0)&&(p=a.lastRenderedReducer,p!==null))try{var _=a.lastRenderedState,D=p(_,l);if(f.hasEagerState=!0,f.eagerState=D,On(D,_))return hu(r,a,f,0),vt===null&&pu(),!1}catch{}finally{}if(l=Rf(r,a,f,u),l!==null)return Sn(l,r,u),Db(l,a,u),!0}return!1}function hm(r,a,l,u){if(u={lane:2,revertLane:Ym(),gesture:null,action:u,hasEagerState:!1,eagerState:null,next:null},Bu(r)){if(a)throw Error(i(479))}else a=Rf(r,l,u,2),a!==null&&Sn(a,r,2)}function Bu(r){var a=r.alternate;return r===Ge||a!==null&&a===Ge}function $b(r,a){So=wu=!0;var l=r.pending;l===null?a.next=a:(a.next=l.next,l.next=a),r.pending=a}function Db(r,a,l){if((l&4194048)!==0){var u=a.lanes;u&=r.pendingLanes,l|=u,a.lanes=l,nu(r,l)}}var jl={readContext:Xt,use:Mu,useCallback:Nt,useContext:Nt,useEffect:Nt,useImperativeHandle:Nt,useLayoutEffect:Nt,useInsertionEffect:Nt,useMemo:Nt,useReducer:Nt,useRef:Nt,useState:Nt,useDebugValue:Nt,useDeferredValue:Nt,useTransition:Nt,useSyncExternalStore:Nt,useId:Nt,useHostTransitionStatus:Nt,useFormState:Nt,useActionState:Nt,useOptimistic:Nt,useMemoCache:Nt,useCacheRefresh:Nt};jl.useEffectEvent=Nt;var xb={readContext:Xt,use:Mu,useCallback:function(r,a){return cn().memoizedState=[r,a===void 0?null:a],r},useContext:Xt,useEffect:sb,useImperativeHandle:function(r,a,l){l=l!=null?l.concat([r]):null,Ou(4194308,4,fb.bind(null,a,r),l)},useLayoutEffect:function(r,a){return Ou(4194308,4,r,a)},useInsertionEffect:function(r,a){Ou(4,2,r,a)},useMemo:function(r,a){var l=cn();a=a===void 0?null:a;var u=r();if(gi){Tt(!0);try{r()}finally{Tt(!1)}}return l.memoizedState=[u,a],u},useReducer:function(r,a,l){var u=cn();if(l!==void 0){var f=l(a);if(gi){Tt(!0);try{l(a)}finally{Tt(!1)}}}else f=a;return u.memoizedState=u.baseState=f,r={pending:null,lanes:0,dispatch:null,lastRenderedReducer:r,lastRenderedState:f},u.queue=r,r=r.dispatch=c6.bind(null,Ge,r),[u.memoizedState,r]},useRef:function(r){var a=cn();return r={current:r},a.memoizedState=r},useState:function(r){r=sm(r);var a=r.queue,l=Sb.bind(null,Ge,a);return a.dispatch=l,[r.memoizedState,l]},useDebugValue:dm,useDeferredValue:function(r,a){var l=cn();return fm(l,r,a)},useTransition:function(){var r=sm(!1);return r=gb.bind(null,Ge,r.queue,!0,!1),cn().memoizedState=r,[!1,r]},useSyncExternalStore:function(r,a,l){var u=Ge,f=cn();if(et){if(l===void 0)throw Error(i(407));l=l()}else{if(l=a(),vt===null)throw Error(i(349));(Je&127)!==0||Zg(u,a,l)}f.memoizedState=l;var p={value:l,getSnapshot:a};return f.queue=p,sb(qg.bind(null,u,p,r),[r]),u.flags|=2048,Do(9,{destroy:void 0},Yg.bind(null,u,p,l,a),null),l},useId:function(){var r=cn(),a=vt.identifierPrefix;if(et){var l=_r,u=vr;l=(u&~(1<<32-Ye(u)-1)).toString(32)+l,a="_"+a+"R_"+l,l=Tu++,0<l&&(a+="H"+l.toString(32)),a+="_"}else l=r6++,a="_"+a+"r_"+l.toString(32)+"_";return r.memoizedState=a},useHostTransitionStatus:pm,useFormState:rb,useActionState:rb,useOptimistic:function(r){var a=cn();a.memoizedState=a.baseState=r;var l={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return a.queue=l,a=hm.bind(null,Ge,!0,l),l.dispatch=a,[r,a]},useMemoCache:im,useCacheRefresh:function(){return cn().memoizedState=u6.bind(null,Ge)},useEffectEvent:function(r){var a=cn(),l={impl:r};return a.memoizedState=l,function(){if((lt&2)!==0)throw Error(i(440));return l.impl.apply(void 0,arguments)}}},ym={readContext:Xt,use:Mu,useCallback:pb,useContext:Xt,useEffect:cm,useImperativeHandle:mb,useInsertionEffect:cb,useLayoutEffect:db,useMemo:hb,useReducer:Ru,useRef:lb,useState:function(){return Ru(Fr)},useDebugValue:dm,useDeferredValue:function(r,a){var l=Pt();return yb(l,ht.memoizedState,r,a)},useTransition:function(){var r=Ru(Fr)[0],a=Pt().memoizedState;return[typeof r=="boolean"?r:Fl(r),a]},useSyncExternalStore:Gg,useId:_b,useHostTransitionStatus:pm,useFormState:ab,useActionState:ab,useOptimistic:function(r,a){var l=Pt();return Qg(l,ht,r,a)},useMemoCache:im,useCacheRefresh:Eb};ym.useEffectEvent=ub;var Cb={readContext:Xt,use:Mu,useCallback:pb,useContext:Xt,useEffect:cm,useImperativeHandle:mb,useInsertionEffect:cb,useLayoutEffect:db,useMemo:hb,useReducer:lm,useRef:lb,useState:function(){return lm(Fr)},useDebugValue:dm,useDeferredValue:function(r,a){var l=Pt();return ht===null?fm(l,r,a):yb(l,ht.memoizedState,r,a)},useTransition:function(){var r=lm(Fr)[0],a=Pt().memoizedState;return[typeof r=="boolean"?r:Fl(r),a]},useSyncExternalStore:Gg,useId:_b,useHostTransitionStatus:pm,useFormState:ob,useActionState:ob,useOptimistic:function(r,a){var l=Pt();return ht!==null?Qg(l,ht,r,a):(l.baseState=r,[r,l.queue.dispatch])},useMemoCache:im,useCacheRefresh:Eb};Cb.useEffectEvent=ub;function gm(r,a,l,u){a=r.memoizedState,l=l(u,a),l=l==null?a:g({},a,l),r.memoizedState=l,r.lanes===0&&(r.updateQueue.baseState=l)}var bm={enqueueSetState:function(r,a,l){r=r._reactInternals;var u=In(),f=ga(u);f.payload=a,l!=null&&(f.callback=l),a=ba(r,f,u),a!==null&&(Sn(a,r,u),kl(a,r,u))},enqueueReplaceState:function(r,a,l){r=r._reactInternals;var u=In(),f=ga(u);f.tag=1,f.payload=a,l!=null&&(f.callback=l),a=ba(r,f,u),a!==null&&(Sn(a,r,u),kl(a,r,u))},enqueueForceUpdate:function(r,a){r=r._reactInternals;var l=In(),u=ga(l);u.tag=2,a!=null&&(u.callback=a),a=ba(r,u,l),a!==null&&(Sn(a,r,l),kl(a,r,l))}};function Ab(r,a,l,u,f,p,_){return r=r.stateNode,typeof r.shouldComponentUpdate=="function"?r.shouldComponentUpdate(u,p,_):a.prototype&&a.prototype.isPureReactComponent?!Cl(l,u)||!Cl(f,p):!0}function wb(r,a,l,u){r=a.state,typeof a.componentWillReceiveProps=="function"&&a.componentWillReceiveProps(l,u),typeof a.UNSAFE_componentWillReceiveProps=="function"&&a.UNSAFE_componentWillReceiveProps(l,u),a.state!==r&&bm.enqueueReplaceState(a,a.state,null)}function bi(r,a){var l=a;if("ref"in a){l={};for(var u in a)u!=="ref"&&(l[u]=a[u])}if(r=r.defaultProps){l===a&&(l=g({},l));for(var f in r)l[f]===void 0&&(l[f]=r[f])}return l}function Tb(r){mu(r)}function Nb(r){console.error(r)}function Mb(r){mu(r)}function Lu(r,a){try{var l=r.onUncaughtError;l(a.value,{componentStack:a.stack})}catch(u){setTimeout(function(){throw u})}}function Rb(r,a,l){try{var u=r.onCaughtError;u(l.value,{componentStack:l.stack,errorBoundary:a.tag===1?a.stateNode:null})}catch(f){setTimeout(function(){throw f})}}function vm(r,a,l){return l=ga(l),l.tag=3,l.payload={element:null},l.callback=function(){Lu(r,a)},l}function Ob(r){return r=ga(r),r.tag=3,r}function kb(r,a,l,u){var f=l.type.getDerivedStateFromError;if(typeof f=="function"){var p=u.value;r.payload=function(){return f(p)},r.callback=function(){Rb(a,l,u)}}var _=l.stateNode;_!==null&&typeof _.componentDidCatch=="function"&&(r.callback=function(){Rb(a,l,u),typeof f!="function"&&(Da===null?Da=new Set([this]):Da.add(this));var D=u.stack;this.componentDidCatch(u.value,{componentStack:D!==null?D:""})})}function d6(r,a,l,u,f){if(l.flags|=32768,u!==null&&typeof u=="object"&&typeof u.then=="function"){if(a=l.alternate,a!==null&&yo(a,l,f,!0),l=Bn.current,l!==null){switch(l.tag){case 31:case 13:return Jn===null?qu():l.alternate===null&&Mt===0&&(Mt=3),l.flags&=-257,l.flags|=65536,l.lanes=f,u===$u?l.flags|=16384:(a=l.updateQueue,a===null?l.updateQueue=new Set([u]):a.add(u),Vm(r,u,f)),!1;case 22:return l.flags|=65536,u===$u?l.flags|=16384:(a=l.updateQueue,a===null?(a={transitions:null,markerInstances:null,retryQueue:new Set([u])},l.updateQueue=a):(l=a.retryQueue,l===null?a.retryQueue=new Set([u]):l.add(u)),Vm(r,u,f)),!1}throw Error(i(435,l.tag))}return Vm(r,u,f),qu(),!1}if(et)return a=Bn.current,a!==null?((a.flags&65536)===0&&(a.flags|=256),a.flags|=65536,a.lanes=f,u!==Ff&&(r=Error(i(422),{cause:u}),Tl(qn(r,l)))):(u!==Ff&&(a=Error(i(423),{cause:u}),Tl(qn(a,l))),r=r.current.alternate,r.flags|=65536,f&=-f,r.lanes|=f,u=qn(u,l),f=vm(r.stateNode,u,f),Kf(r,f),Mt!==4&&(Mt=2)),!1;var p=Error(i(520),{cause:u});if(p=qn(p,l),ql===null?ql=[p]:ql.push(p),Mt!==4&&(Mt=2),a===null)return!0;u=qn(u,l),l=a;do{switch(l.tag){case 3:return l.flags|=65536,r=f&-f,l.lanes|=r,r=vm(l.stateNode,u,r),Kf(l,r),!1;case 1:if(a=l.type,p=l.stateNode,(l.flags&128)===0&&(typeof a.getDerivedStateFromError=="function"||p!==null&&typeof p.componentDidCatch=="function"&&(Da===null||!Da.has(p))))return l.flags|=65536,f&=-f,l.lanes|=f,f=Ob(f),kb(f,r,l,u),Kf(l,f),!1}l=l.return}while(l!==null);return!1}var _m=Error(i(461)),zt=!1;function en(r,a,l,u){a.child=r===null?Fg(a,null,l,u):yi(a,r.child,l,u)}function Bb(r,a,l,u,f){l=l.render;var p=a.ref;if("ref"in u){var _={};for(var D in u)D!=="ref"&&(_[D]=u[D])}else _=u;return fi(a),u=tm(r,a,l,_,p,f),D=nm(),r!==null&&!zt?(rm(r,a,f),Ir(r,a,f)):(et&&D&&Lf(a),a.flags|=1,en(r,a,u,f),a.child)}function Lb(r,a,l,u,f){if(r===null){var p=l.type;return typeof p=="function"&&!Of(p)&&p.defaultProps===void 0&&l.compare===null?(a.tag=15,a.type=p,Pb(r,a,p,u,f)):(r=gu(l.type,null,u,a,a.mode,f),r.ref=a.ref,r.return=a,a.child=r)}if(p=r.child,!wm(r,f)){var _=p.memoizedProps;if(l=l.compare,l=l!==null?l:Cl,l(_,u)&&r.ref===a.ref)return Ir(r,a,f)}return a.flags|=1,r=Or(p,u),r.ref=a.ref,r.return=a,a.child=r}function Pb(r,a,l,u,f){if(r!==null){var p=r.memoizedProps;if(Cl(p,u)&&r.ref===a.ref)if(zt=!1,a.pendingProps=u=p,wm(r,f))(r.flags&131072)!==0&&(zt=!0);else return a.lanes=r.lanes,Ir(r,a,f)}return Em(r,a,l,u,f)}function Fb(r,a,l,u){var f=u.children,p=r!==null?r.memoizedState:null;if(r===null&&a.stateNode===null&&(a.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),u.mode==="hidden"){if((a.flags&128)!==0){if(p=p!==null?p.baseLanes|l:l,r!==null){for(u=a.child=r.child,f=0;u!==null;)f=f|u.lanes|u.childLanes,u=u.sibling;u=f&~p}else u=0,a.child=null;return Ib(r,a,p,l,u)}if((l&536870912)!==0)a.memoizedState={baseLanes:0,cachePool:null},r!==null&&Eu(a,p!==null?p.cachePool:null),p!==null?zg(a,p):Qf(),Ug(a);else return u=a.lanes=536870912,Ib(r,a,p!==null?p.baseLanes|l:l,l,u)}else p!==null?(Eu(a,p.cachePool),zg(a,p),_a(),a.memoizedState=null):(r!==null&&Eu(a,null),Qf(),_a());return en(r,a,f,l),a.child}function zl(r,a){return r!==null&&r.tag===22||a.stateNode!==null||(a.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),a.sibling}function Ib(r,a,l,u,f){var p=Gf();return p=p===null?null:{parent:It._currentValue,pool:p},a.memoizedState={baseLanes:l,cachePool:p},r!==null&&Eu(a,null),Qf(),Ug(a),r!==null&&yo(r,a,u,!0),a.childLanes=f,null}function Pu(r,a){return a=Iu({mode:a.mode,children:a.children},r.mode),a.ref=r.ref,r.child=a,a.return=r,a}function jb(r,a,l){return yi(a,r.child,null,l),r=Pu(a,a.pendingProps),r.flags|=2,Ln(a),a.memoizedState=null,r}function f6(r,a,l){var u=a.pendingProps,f=(a.flags&128)!==0;if(a.flags&=-129,r===null){if(et){if(u.mode==="hidden")return r=Pu(a,u),a.lanes=536870912,zl(null,r);if(Xf(a),(r=$t)?(r=Jv(r,Qn),r=r!==null&&r.data==="&"?r:null,r!==null&&(a.memoizedState={dehydrated:r,treeContext:fa!==null?{id:vr,overflow:_r}:null,retryLane:536870912,hydrationErrors:null},l=$g(r),l.return=a,a.child=l,Jt=a,$t=null)):r=null,r===null)throw pa(a);return a.lanes=536870912,null}return Pu(a,u)}var p=r.memoizedState;if(p!==null){var _=p.dehydrated;if(Xf(a),f)if(a.flags&256)a.flags&=-257,a=jb(r,a,l);else if(a.memoizedState!==null)a.child=r.child,a.flags|=128,a=null;else throw Error(i(558));else if(zt||yo(r,a,l,!1),f=(l&r.childLanes)!==0,zt||f){if(u=vt,u!==null&&(_=Tr(u,l),_!==0&&_!==p.retryLane))throw p.retryLane=_,si(r,_),Sn(u,r,_),_m;qu(),a=jb(r,a,l)}else r=p.treeContext,$t=Xn(_.nextSibling),Jt=a,et=!0,ma=null,Qn=!1,r!==null&&Cg(a,r),a=Pu(a,u),a.flags|=4096;return a}return r=Or(r.child,{mode:u.mode,children:u.children}),r.ref=a.ref,a.child=r,r.return=a,r}function Fu(r,a){var l=a.ref;if(l===null)r!==null&&r.ref!==null&&(a.flags|=4194816);else{if(typeof l!="function"&&typeof l!="object")throw Error(i(284));(r===null||r.ref!==l)&&(a.flags|=4194816)}}function Em(r,a,l,u,f){return fi(a),l=tm(r,a,l,u,void 0,f),u=nm(),r!==null&&!zt?(rm(r,a,f),Ir(r,a,f)):(et&&u&&Lf(a),a.flags|=1,en(r,a,l,f),a.child)}function zb(r,a,l,u,f,p){return fi(a),a.updateQueue=null,l=Vg(a,u,l,f),Hg(r),u=nm(),r!==null&&!zt?(rm(r,a,p),Ir(r,a,p)):(et&&u&&Lf(a),a.flags|=1,en(r,a,l,p),a.child)}function Ub(r,a,l,u,f){if(fi(a),a.stateNode===null){var p=fo,_=l.contextType;typeof _=="object"&&_!==null&&(p=Xt(_)),p=new l(u,p),a.memoizedState=p.state!==null&&p.state!==void 0?p.state:null,p.updater=bm,a.stateNode=p,p._reactInternals=a,p=a.stateNode,p.props=u,p.state=a.memoizedState,p.refs={},Yf(a),_=l.contextType,p.context=typeof _=="object"&&_!==null?Xt(_):fo,p.state=a.memoizedState,_=l.getDerivedStateFromProps,typeof _=="function"&&(gm(a,l,_,u),p.state=a.memoizedState),typeof l.getDerivedStateFromProps=="function"||typeof p.getSnapshotBeforeUpdate=="function"||typeof p.UNSAFE_componentWillMount!="function"&&typeof p.componentWillMount!="function"||(_=p.state,typeof p.componentWillMount=="function"&&p.componentWillMount(),typeof p.UNSAFE_componentWillMount=="function"&&p.UNSAFE_componentWillMount(),_!==p.state&&bm.enqueueReplaceState(p,p.state,null),Ll(a,u,p,f),Bl(),p.state=a.memoizedState),typeof p.componentDidMount=="function"&&(a.flags|=4194308),u=!0}else if(r===null){p=a.stateNode;var D=a.memoizedProps,k=bi(l,D);p.props=k;var K=p.context,ae=l.contextType;_=fo,typeof ae=="object"&&ae!==null&&(_=Xt(ae));var ce=l.getDerivedStateFromProps;ae=typeof ce=="function"||typeof p.getSnapshotBeforeUpdate=="function",D=a.pendingProps!==D,ae||typeof p.UNSAFE_componentWillReceiveProps!="function"&&typeof p.componentWillReceiveProps!="function"||(D||K!==_)&&wb(a,p,u,_),ya=!1;var Q=a.memoizedState;p.state=Q,Ll(a,u,p,f),Bl(),K=a.memoizedState,D||Q!==K||ya?(typeof ce=="function"&&(gm(a,l,ce,u),K=a.memoizedState),(k=ya||Ab(a,l,k,u,Q,K,_))?(ae||typeof p.UNSAFE_componentWillMount!="function"&&typeof p.componentWillMount!="function"||(typeof p.componentWillMount=="function"&&p.componentWillMount(),typeof p.UNSAFE_componentWillMount=="function"&&p.UNSAFE_componentWillMount()),typeof p.componentDidMount=="function"&&(a.flags|=4194308)):(typeof p.componentDidMount=="function"&&(a.flags|=4194308),a.memoizedProps=u,a.memoizedState=K),p.props=u,p.state=K,p.context=_,u=k):(typeof p.componentDidMount=="function"&&(a.flags|=4194308),u=!1)}else{p=a.stateNode,qf(r,a),_=a.memoizedProps,ae=bi(l,_),p.props=ae,ce=a.pendingProps,Q=p.context,K=l.contextType,k=fo,typeof K=="object"&&K!==null&&(k=Xt(K)),D=l.getDerivedStateFromProps,(K=typeof D=="function"||typeof p.getSnapshotBeforeUpdate=="function")||typeof p.UNSAFE_componentWillReceiveProps!="function"&&typeof p.componentWillReceiveProps!="function"||(_!==ce||Q!==k)&&wb(a,p,u,k),ya=!1,Q=a.memoizedState,p.state=Q,Ll(a,u,p,f),Bl();var ee=a.memoizedState;_!==ce||Q!==ee||ya||r!==null&&r.dependencies!==null&&vu(r.dependencies)?(typeof D=="function"&&(gm(a,l,D,u),ee=a.memoizedState),(ae=ya||Ab(a,l,ae,u,Q,ee,k)||r!==null&&r.dependencies!==null&&vu(r.dependencies))?(K||typeof p.UNSAFE_componentWillUpdate!="function"&&typeof p.componentWillUpdate!="function"||(typeof p.componentWillUpdate=="function"&&p.componentWillUpdate(u,ee,k),typeof p.UNSAFE_componentWillUpdate=="function"&&p.UNSAFE_componentWillUpdate(u,ee,k)),typeof p.componentDidUpdate=="function"&&(a.flags|=4),typeof p.getSnapshotBeforeUpdate=="function"&&(a.flags|=1024)):(typeof p.componentDidUpdate!="function"||_===r.memoizedProps&&Q===r.memoizedState||(a.flags|=4),typeof p.getSnapshotBeforeUpdate!="function"||_===r.memoizedProps&&Q===r.memoizedState||(a.flags|=1024),a.memoizedProps=u,a.memoizedState=ee),p.props=u,p.state=ee,p.context=k,u=ae):(typeof p.componentDidUpdate!="function"||_===r.memoizedProps&&Q===r.memoizedState||(a.flags|=4),typeof p.getSnapshotBeforeUpdate!="function"||_===r.memoizedProps&&Q===r.memoizedState||(a.flags|=1024),u=!1)}return p=u,Fu(r,a),u=(a.flags&128)!==0,p||u?(p=a.stateNode,l=u&&typeof l.getDerivedStateFromError!="function"?null:p.render(),a.flags|=1,r!==null&&u?(a.child=yi(a,r.child,null,f),a.child=yi(a,null,l,f)):en(r,a,l,f),a.memoizedState=p.state,r=a.child):r=Ir(r,a,f),r}function Hb(r,a,l,u){return ci(),a.flags|=256,en(r,a,l,u),a.child}var Sm={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null};function $m(r){return{baseLanes:r,cachePool:Rg()}}function Dm(r,a,l){return r=r!==null?r.childLanes&~l:0,a&&(r|=Fn),r}function Vb(r,a,l){var u=a.pendingProps,f=!1,p=(a.flags&128)!==0,_;if((_=p)||(_=r!==null&&r.memoizedState===null?!1:(Lt.current&2)!==0),_&&(f=!0,a.flags&=-129),_=(a.flags&32)!==0,a.flags&=-33,r===null){if(et){if(f?va(a):_a(),(r=$t)?(r=Jv(r,Qn),r=r!==null&&r.data!=="&"?r:null,r!==null&&(a.memoizedState={dehydrated:r,treeContext:fa!==null?{id:vr,overflow:_r}:null,retryLane:536870912,hydrationErrors:null},l=$g(r),l.return=a,a.child=l,Jt=a,$t=null)):r=null,r===null)throw pa(a);return op(r)?a.lanes=32:a.lanes=536870912,null}var D=u.children;return u=u.fallback,f?(_a(),f=a.mode,D=Iu({mode:"hidden",children:D},f),u=ui(u,f,l,null),D.return=a,u.return=a,D.sibling=u,a.child=D,u=a.child,u.memoizedState=$m(l),u.childLanes=Dm(r,_,l),a.memoizedState=Sm,zl(null,u)):(va(a),xm(a,D))}var k=r.memoizedState;if(k!==null&&(D=k.dehydrated,D!==null)){if(p)a.flags&256?(va(a),a.flags&=-257,a=Cm(r,a,l)):a.memoizedState!==null?(_a(),a.child=r.child,a.flags|=128,a=null):(_a(),D=u.fallback,f=a.mode,u=Iu({mode:"visible",children:u.children},f),D=ui(D,f,l,null),D.flags|=2,u.return=a,D.return=a,u.sibling=D,a.child=u,yi(a,r.child,null,l),u=a.child,u.memoizedState=$m(l),u.childLanes=Dm(r,_,l),a.memoizedState=Sm,a=zl(null,u));else if(va(a),op(D)){if(_=D.nextSibling&&D.nextSibling.dataset,_)var K=_.dgst;_=K,u=Error(i(419)),u.stack="",u.digest=_,Tl({value:u,source:null,stack:null}),a=Cm(r,a,l)}else if(zt||yo(r,a,l,!1),_=(l&r.childLanes)!==0,zt||_){if(_=vt,_!==null&&(u=Tr(_,l),u!==0&&u!==k.retryLane))throw k.retryLane=u,si(r,u),Sn(_,r,u),_m;ip(D)||qu(),a=Cm(r,a,l)}else ip(D)?(a.flags|=192,a.child=r.child,a=null):(r=k.treeContext,$t=Xn(D.nextSibling),Jt=a,et=!0,ma=null,Qn=!1,r!==null&&Cg(a,r),a=xm(a,u.children),a.flags|=4096);return a}return f?(_a(),D=u.fallback,f=a.mode,k=r.child,K=k.sibling,u=Or(k,{mode:"hidden",children:u.children}),u.subtreeFlags=k.subtreeFlags&65011712,K!==null?D=Or(K,D):(D=ui(D,f,l,null),D.flags|=2),D.return=a,u.return=a,u.sibling=D,a.child=u,zl(null,u),u=a.child,D=r.child.memoizedState,D===null?D=$m(l):(f=D.cachePool,f!==null?(k=It._currentValue,f=f.parent!==k?{parent:k,pool:k}:f):f=Rg(),D={baseLanes:D.baseLanes|l,cachePool:f}),u.memoizedState=D,u.childLanes=Dm(r,_,l),a.memoizedState=Sm,zl(r.child,u)):(va(a),l=r.child,r=l.sibling,l=Or(l,{mode:"visible",children:u.children}),l.return=a,l.sibling=null,r!==null&&(_=a.deletions,_===null?(a.deletions=[r],a.flags|=16):_.push(r)),a.child=l,a.memoizedState=null,l)}function xm(r,a){return a=Iu({mode:"visible",children:a},r.mode),a.return=r,r.child=a}function Iu(r,a){return r=kn(22,r,null,a),r.lanes=0,r}function Cm(r,a,l){return yi(a,r.child,null,l),r=xm(a,a.pendingProps.children),r.flags|=2,a.memoizedState=null,r}function Gb(r,a,l){r.lanes|=a;var u=r.alternate;u!==null&&(u.lanes|=a),zf(r.return,a,l)}function Am(r,a,l,u,f,p){var _=r.memoizedState;_===null?r.memoizedState={isBackwards:a,rendering:null,renderingStartTime:0,last:u,tail:l,tailMode:f,treeForkCount:p}:(_.isBackwards=a,_.rendering=null,_.renderingStartTime=0,_.last=u,_.tail=l,_.tailMode=f,_.treeForkCount=p)}function Zb(r,a,l){var u=a.pendingProps,f=u.revealOrder,p=u.tail;u=u.children;var _=Lt.current,D=(_&2)!==0;if(D?(_=_&1|2,a.flags|=128):_&=1,W(Lt,_),en(r,a,u,l),u=et?wl:0,!D&&r!==null&&(r.flags&128)!==0)e:for(r=a.child;r!==null;){if(r.tag===13)r.memoizedState!==null&&Gb(r,l,a);else if(r.tag===19)Gb(r,l,a);else if(r.child!==null){r.child.return=r,r=r.child;continue}if(r===a)break e;for(;r.sibling===null;){if(r.return===null||r.return===a)break e;r=r.return}r.sibling.return=r.return,r=r.sibling}switch(f){case"forwards":for(l=a.child,f=null;l!==null;)r=l.alternate,r!==null&&Au(r)===null&&(f=l),l=l.sibling;l=f,l===null?(f=a.child,a.child=null):(f=l.sibling,l.sibling=null),Am(a,!1,f,l,p,u);break;case"backwards":case"unstable_legacy-backwards":for(l=null,f=a.child,a.child=null;f!==null;){if(r=f.alternate,r!==null&&Au(r)===null){a.child=f;break}r=f.sibling,f.sibling=l,l=f,f=r}Am(a,!0,l,null,p,u);break;case"together":Am(a,!1,null,null,void 0,u);break;default:a.memoizedState=null}return a.child}function Ir(r,a,l){if(r!==null&&(a.dependencies=r.dependencies),$a|=a.lanes,(l&a.childLanes)===0)if(r!==null){if(yo(r,a,l,!1),(l&a.childLanes)===0)return null}else return null;if(r!==null&&a.child!==r.child)throw Error(i(153));if(a.child!==null){for(r=a.child,l=Or(r,r.pendingProps),a.child=l,l.return=a;r.sibling!==null;)r=r.sibling,l=l.sibling=Or(r,r.pendingProps),l.return=a;l.sibling=null}return a.child}function wm(r,a){return(r.lanes&a)!==0?!0:(r=r.dependencies,!!(r!==null&&vu(r)))}function m6(r,a,l){switch(a.tag){case 3:N(a,a.stateNode.containerInfo),ha(a,It,r.memoizedState.cache),ci();break;case 27:case 5:ge(a);break;case 4:N(a,a.stateNode.containerInfo);break;case 10:ha(a,a.type,a.memoizedProps.value);break;case 31:if(a.memoizedState!==null)return a.flags|=128,Xf(a),null;break;case 13:var u=a.memoizedState;if(u!==null)return u.dehydrated!==null?(va(a),a.flags|=128,null):(l&a.child.childLanes)!==0?Vb(r,a,l):(va(a),r=Ir(r,a,l),r!==null?r.sibling:null);va(a);break;case 19:var f=(r.flags&128)!==0;if(u=(l&a.childLanes)!==0,u||(yo(r,a,l,!1),u=(l&a.childLanes)!==0),f){if(u)return Zb(r,a,l);a.flags|=128}if(f=a.memoizedState,f!==null&&(f.rendering=null,f.tail=null,f.lastEffect=null),W(Lt,Lt.current),u)break;return null;case 22:return a.lanes=0,Fb(r,a,l,a.pendingProps);case 24:ha(a,It,r.memoizedState.cache)}return Ir(r,a,l)}function Yb(r,a,l){if(r!==null)if(r.memoizedProps!==a.pendingProps)zt=!0;else{if(!wm(r,l)&&(a.flags&128)===0)return zt=!1,m6(r,a,l);zt=(r.flags&131072)!==0}else zt=!1,et&&(a.flags&1048576)!==0&&xg(a,wl,a.index);switch(a.lanes=0,a.tag){case 16:e:{var u=a.pendingProps;if(r=pi(a.elementType),a.type=r,typeof r=="function")Of(r)?(u=bi(r,u),a.tag=1,a=Ub(null,a,r,u,l)):(a.tag=0,a=Em(null,a,r,u,l));else{if(r!=null){var f=r.$$typeof;if(f===L){a.tag=11,a=Bb(null,a,r,u,l);break e}else if(f===V){a.tag=14,a=Lb(null,a,r,u,l);break e}}throw a=j(r)||r,Error(i(306,a,""))}}return a;case 0:return Em(r,a,a.type,a.pendingProps,l);case 1:return u=a.type,f=bi(u,a.pendingProps),Ub(r,a,u,f,l);case 3:e:{if(N(a,a.stateNode.containerInfo),r===null)throw Error(i(387));u=a.pendingProps;var p=a.memoizedState;f=p.element,qf(r,a),Ll(a,u,null,l);var _=a.memoizedState;if(u=_.cache,ha(a,It,u),u!==p.cache&&Uf(a,[It],l,!0),Bl(),u=_.element,p.isDehydrated)if(p={element:u,isDehydrated:!1,cache:_.cache},a.updateQueue.baseState=p,a.memoizedState=p,a.flags&256){a=Hb(r,a,u,l);break e}else if(u!==f){f=qn(Error(i(424)),a),Tl(f),a=Hb(r,a,u,l);break e}else{switch(r=a.stateNode.containerInfo,r.nodeType){case 9:r=r.body;break;default:r=r.nodeName==="HTML"?r.ownerDocument.body:r}for($t=Xn(r.firstChild),Jt=a,et=!0,ma=null,Qn=!0,l=Fg(a,null,u,l),a.child=l;l;)l.flags=l.flags&-3|4096,l=l.sibling}else{if(ci(),u===f){a=Ir(r,a,l);break e}en(r,a,u,l)}a=a.child}return a;case 26:return Fu(r,a),r===null?(l=a_(a.type,null,a.pendingProps,null))?a.memoizedState=l:et||(l=a.type,r=a.pendingProps,u=tc(z.current).createElement(l),u[Qt]=a,u[yn]=r,tn(u,l,r),Kt(u),a.stateNode=u):a.memoizedState=a_(a.type,r.memoizedProps,a.pendingProps,r.memoizedState),null;case 27:return ge(a),r===null&&et&&(u=a.stateNode=t_(a.type,a.pendingProps,z.current),Jt=a,Qn=!0,f=$t,wa(a.type)?(lp=f,$t=Xn(u.firstChild)):$t=f),en(r,a,a.pendingProps.children,l),Fu(r,a),r===null&&(a.flags|=4194304),a.child;case 5:return r===null&&et&&((f=u=$t)&&(u=H6(u,a.type,a.pendingProps,Qn),u!==null?(a.stateNode=u,Jt=a,$t=Xn(u.firstChild),Qn=!1,f=!0):f=!1),f||pa(a)),ge(a),f=a.type,p=a.pendingProps,_=r!==null?r.memoizedProps:null,u=p.children,np(f,p)?u=null:_!==null&&np(f,_)&&(a.flags|=32),a.memoizedState!==null&&(f=tm(r,a,a6,null,null,l),ns._currentValue=f),Fu(r,a),en(r,a,u,l),a.child;case 6:return r===null&&et&&((r=l=$t)&&(l=V6(l,a.pendingProps,Qn),l!==null?(a.stateNode=l,Jt=a,$t=null,r=!0):r=!1),r||pa(a)),null;case 13:return Vb(r,a,l);case 4:return N(a,a.stateNode.containerInfo),u=a.pendingProps,r===null?a.child=yi(a,null,u,l):en(r,a,u,l),a.child;case 11:return Bb(r,a,a.type,a.pendingProps,l);case 7:return en(r,a,a.pendingProps,l),a.child;case 8:return en(r,a,a.pendingProps.children,l),a.child;case 12:return en(r,a,a.pendingProps.children,l),a.child;case 10:return u=a.pendingProps,ha(a,a.type,u.value),en(r,a,u.children,l),a.child;case 9:return f=a.type._context,u=a.pendingProps.children,fi(a),f=Xt(f),u=u(f),a.flags|=1,en(r,a,u,l),a.child;case 14:return Lb(r,a,a.type,a.pendingProps,l);case 15:return Pb(r,a,a.type,a.pendingProps,l);case 19:return Zb(r,a,l);case 31:return f6(r,a,l);case 22:return Fb(r,a,l,a.pendingProps);case 24:return fi(a),u=Xt(It),r===null?(f=Gf(),f===null&&(f=vt,p=Hf(),f.pooledCache=p,p.refCount++,p!==null&&(f.pooledCacheLanes|=l),f=p),a.memoizedState={parent:u,cache:f},Yf(a),ha(a,It,f)):((r.lanes&l)!==0&&(qf(r,a),Ll(a,null,null,l),Bl()),f=r.memoizedState,p=a.memoizedState,f.parent!==u?(f={parent:u,cache:u},a.memoizedState=f,a.lanes===0&&(a.memoizedState=a.updateQueue.baseState=f),ha(a,It,u)):(u=p.cache,ha(a,It,u),u!==f.cache&&Uf(a,[It],l,!0))),en(r,a,a.pendingProps.children,l),a.child;case 29:throw a.pendingProps}throw Error(i(156,a.tag))}function jr(r){r.flags|=4}function Tm(r,a,l,u,f){if((a=(r.mode&32)!==0)&&(a=!1),a){if(r.flags|=16777216,(f&335544128)===f)if(r.stateNode.complete)r.flags|=8192;else if(_v())r.flags|=8192;else throw hi=$u,Zf}else r.flags&=-16777217}function qb(r,a){if(a.type!=="stylesheet"||(a.state.loading&4)!==0)r.flags&=-16777217;else if(r.flags|=16777216,!u_(a))if(_v())r.flags|=8192;else throw hi=$u,Zf}function ju(r,a){a!==null&&(r.flags|=4),r.flags&16384&&(a=r.tag!==22?Qi():536870912,r.lanes|=a,wo|=a)}function Ul(r,a){if(!et)switch(r.tailMode){case"hidden":a=r.tail;for(var l=null;a!==null;)a.alternate!==null&&(l=a),a=a.sibling;l===null?r.tail=null:l.sibling=null;break;case"collapsed":l=r.tail;for(var u=null;l!==null;)l.alternate!==null&&(u=l),l=l.sibling;u===null?a||r.tail===null?r.tail=null:r.tail.sibling=null:u.sibling=null}}function Dt(r){var a=r.alternate!==null&&r.alternate.child===r.child,l=0,u=0;if(a)for(var f=r.child;f!==null;)l|=f.lanes|f.childLanes,u|=f.subtreeFlags&65011712,u|=f.flags&65011712,f.return=r,f=f.sibling;else for(f=r.child;f!==null;)l|=f.lanes|f.childLanes,u|=f.subtreeFlags,u|=f.flags,f.return=r,f=f.sibling;return r.subtreeFlags|=u,r.childLanes=l,a}function p6(r,a,l){var u=a.pendingProps;switch(Pf(a),a.tag){case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return Dt(a),null;case 1:return Dt(a),null;case 3:return l=a.stateNode,u=null,r!==null&&(u=r.memoizedState.cache),a.memoizedState.cache!==u&&(a.flags|=2048),Lr(It),ie(),l.pendingContext&&(l.context=l.pendingContext,l.pendingContext=null),(r===null||r.child===null)&&(ho(a)?jr(a):r===null||r.memoizedState.isDehydrated&&(a.flags&256)===0||(a.flags|=1024,If())),Dt(a),null;case 26:var f=a.type,p=a.memoizedState;return r===null?(jr(a),p!==null?(Dt(a),qb(a,p)):(Dt(a),Tm(a,f,null,u,l))):p?p!==r.memoizedState?(jr(a),Dt(a),qb(a,p)):(Dt(a),a.flags&=-16777217):(r=r.memoizedProps,r!==u&&jr(a),Dt(a),Tm(a,f,r,u,l)),null;case 27:if(Se(a),l=z.current,f=a.type,r!==null&&a.stateNode!=null)r.memoizedProps!==u&&jr(a);else{if(!u){if(a.stateNode===null)throw Error(i(166));return Dt(a),null}r=Y.current,ho(a)?Ag(a):(r=t_(f,u,l),a.stateNode=r,jr(a))}return Dt(a),null;case 5:if(Se(a),f=a.type,r!==null&&a.stateNode!=null)r.memoizedProps!==u&&jr(a);else{if(!u){if(a.stateNode===null)throw Error(i(166));return Dt(a),null}if(p=Y.current,ho(a))Ag(a);else{var _=tc(z.current);switch(p){case 1:p=_.createElementNS("http://www.w3.org/2000/svg",f);break;case 2:p=_.createElementNS("http://www.w3.org/1998/Math/MathML",f);break;default:switch(f){case"svg":p=_.createElementNS("http://www.w3.org/2000/svg",f);break;case"math":p=_.createElementNS("http://www.w3.org/1998/Math/MathML",f);break;case"script":p=_.createElement("div"),p.innerHTML="<script><\/script>",p=p.removeChild(p.firstChild);break;case"select":p=typeof u.is=="string"?_.createElement("select",{is:u.is}):_.createElement("select"),u.multiple?p.multiple=!0:u.size&&(p.size=u.size);break;default:p=typeof u.is=="string"?_.createElement(f,{is:u.is}):_.createElement(f)}}p[Qt]=a,p[yn]=u;e:for(_=a.child;_!==null;){if(_.tag===5||_.tag===6)p.appendChild(_.stateNode);else if(_.tag!==4&&_.tag!==27&&_.child!==null){_.child.return=_,_=_.child;continue}if(_===a)break e;for(;_.sibling===null;){if(_.return===null||_.return===a)break e;_=_.return}_.sibling.return=_.return,_=_.sibling}a.stateNode=p;e:switch(tn(p,f,u),f){case"button":case"input":case"select":case"textarea":u=!!u.autoFocus;break e;case"img":u=!0;break e;default:u=!1}u&&jr(a)}}return Dt(a),Tm(a,a.type,r===null?null:r.memoizedProps,a.pendingProps,l),null;case 6:if(r&&a.stateNode!=null)r.memoizedProps!==u&&jr(a);else{if(typeof u!="string"&&a.stateNode===null)throw Error(i(166));if(r=z.current,ho(a)){if(r=a.stateNode,l=a.memoizedProps,u=null,f=Jt,f!==null)switch(f.tag){case 27:case 5:u=f.memoizedProps}r[Qt]=a,r=!!(r.nodeValue===l||u!==null&&u.suppressHydrationWarning===!0||Vv(r.nodeValue,l)),r||pa(a,!0)}else r=tc(r).createTextNode(u),r[Qt]=a,a.stateNode=r}return Dt(a),null;case 31:if(l=a.memoizedState,r===null||r.memoizedState!==null){if(u=ho(a),l!==null){if(r===null){if(!u)throw Error(i(318));if(r=a.memoizedState,r=r!==null?r.dehydrated:null,!r)throw Error(i(557));r[Qt]=a}else ci(),(a.flags&128)===0&&(a.memoizedState=null),a.flags|=4;Dt(a),r=!1}else l=If(),r!==null&&r.memoizedState!==null&&(r.memoizedState.hydrationErrors=l),r=!0;if(!r)return a.flags&256?(Ln(a),a):(Ln(a),null);if((a.flags&128)!==0)throw Error(i(558))}return Dt(a),null;case 13:if(u=a.memoizedState,r===null||r.memoizedState!==null&&r.memoizedState.dehydrated!==null){if(f=ho(a),u!==null&&u.dehydrated!==null){if(r===null){if(!f)throw Error(i(318));if(f=a.memoizedState,f=f!==null?f.dehydrated:null,!f)throw Error(i(317));f[Qt]=a}else ci(),(a.flags&128)===0&&(a.memoizedState=null),a.flags|=4;Dt(a),f=!1}else f=If(),r!==null&&r.memoizedState!==null&&(r.memoizedState.hydrationErrors=f),f=!0;if(!f)return a.flags&256?(Ln(a),a):(Ln(a),null)}return Ln(a),(a.flags&128)!==0?(a.lanes=l,a):(l=u!==null,r=r!==null&&r.memoizedState!==null,l&&(u=a.child,f=null,u.alternate!==null&&u.alternate.memoizedState!==null&&u.alternate.memoizedState.cachePool!==null&&(f=u.alternate.memoizedState.cachePool.pool),p=null,u.memoizedState!==null&&u.memoizedState.cachePool!==null&&(p=u.memoizedState.cachePool.pool),p!==f&&(u.flags|=2048)),l!==r&&l&&(a.child.flags|=8192),ju(a,a.updateQueue),Dt(a),null);case 4:return ie(),r===null&&Qm(a.stateNode.containerInfo),Dt(a),null;case 10:return Lr(a.type),Dt(a),null;case 19:if(U(Lt),u=a.memoizedState,u===null)return Dt(a),null;if(f=(a.flags&128)!==0,p=u.rendering,p===null)if(f)Ul(u,!1);else{if(Mt!==0||r!==null&&(r.flags&128)!==0)for(r=a.child;r!==null;){if(p=Au(r),p!==null){for(a.flags|=128,Ul(u,!1),r=p.updateQueue,a.updateQueue=r,ju(a,r),a.subtreeFlags=0,r=l,l=a.child;l!==null;)Sg(l,r),l=l.sibling;return W(Lt,Lt.current&1|2),et&&kr(a,u.treeForkCount),a.child}r=r.sibling}u.tail!==null&&oe()>Gu&&(a.flags|=128,f=!0,Ul(u,!1),a.lanes=4194304)}else{if(!f)if(r=Au(p),r!==null){if(a.flags|=128,f=!0,r=r.updateQueue,a.updateQueue=r,ju(a,r),Ul(u,!0),u.tail===null&&u.tailMode==="hidden"&&!p.alternate&&!et)return Dt(a),null}else 2*oe()-u.renderingStartTime>Gu&&l!==536870912&&(a.flags|=128,f=!0,Ul(u,!1),a.lanes=4194304);u.isBackwards?(p.sibling=a.child,a.child=p):(r=u.last,r!==null?r.sibling=p:a.child=p,u.last=p)}return u.tail!==null?(r=u.tail,u.rendering=r,u.tail=r.sibling,u.renderingStartTime=oe(),r.sibling=null,l=Lt.current,W(Lt,f?l&1|2:l&1),et&&kr(a,u.treeForkCount),r):(Dt(a),null);case 22:case 23:return Ln(a),Jf(),u=a.memoizedState!==null,r!==null?r.memoizedState!==null!==u&&(a.flags|=8192):u&&(a.flags|=8192),u?(l&536870912)!==0&&(a.flags&128)===0&&(Dt(a),a.subtreeFlags&6&&(a.flags|=8192)):Dt(a),l=a.updateQueue,l!==null&&ju(a,l.retryQueue),l=null,r!==null&&r.memoizedState!==null&&r.memoizedState.cachePool!==null&&(l=r.memoizedState.cachePool.pool),u=null,a.memoizedState!==null&&a.memoizedState.cachePool!==null&&(u=a.memoizedState.cachePool.pool),u!==l&&(a.flags|=2048),r!==null&&U(mi),null;case 24:return l=null,r!==null&&(l=r.memoizedState.cache),a.memoizedState.cache!==l&&(a.flags|=2048),Lr(It),Dt(a),null;case 25:return null;case 30:return null}throw Error(i(156,a.tag))}function h6(r,a){switch(Pf(a),a.tag){case 1:return r=a.flags,r&65536?(a.flags=r&-65537|128,a):null;case 3:return Lr(It),ie(),r=a.flags,(r&65536)!==0&&(r&128)===0?(a.flags=r&-65537|128,a):null;case 26:case 27:case 5:return Se(a),null;case 31:if(a.memoizedState!==null){if(Ln(a),a.alternate===null)throw Error(i(340));ci()}return r=a.flags,r&65536?(a.flags=r&-65537|128,a):null;case 13:if(Ln(a),r=a.memoizedState,r!==null&&r.dehydrated!==null){if(a.alternate===null)throw Error(i(340));ci()}return r=a.flags,r&65536?(a.flags=r&-65537|128,a):null;case 19:return U(Lt),null;case 4:return ie(),null;case 10:return Lr(a.type),null;case 22:case 23:return Ln(a),Jf(),r!==null&&U(mi),r=a.flags,r&65536?(a.flags=r&-65537|128,a):null;case 24:return Lr(It),null;case 25:return null;default:return null}}function Kb(r,a){switch(Pf(a),a.tag){case 3:Lr(It),ie();break;case 26:case 27:case 5:Se(a);break;case 4:ie();break;case 31:a.memoizedState!==null&&Ln(a);break;case 13:Ln(a);break;case 19:U(Lt);break;case 10:Lr(a.type);break;case 22:case 23:Ln(a),Jf(),r!==null&&U(mi);break;case 24:Lr(It)}}function Hl(r,a){try{var l=a.updateQueue,u=l!==null?l.lastEffect:null;if(u!==null){var f=u.next;l=f;do{if((l.tag&r)===r){u=void 0;var p=l.create,_=l.inst;u=p(),_.destroy=u}l=l.next}while(l!==f)}}catch(D){ft(a,a.return,D)}}function Ea(r,a,l){try{var u=a.updateQueue,f=u!==null?u.lastEffect:null;if(f!==null){var p=f.next;u=p;do{if((u.tag&r)===r){var _=u.inst,D=_.destroy;if(D!==void 0){_.destroy=void 0,f=a;var k=l,K=D;try{K()}catch(ae){ft(f,k,ae)}}}u=u.next}while(u!==p)}}catch(ae){ft(a,a.return,ae)}}function Wb(r){var a=r.updateQueue;if(a!==null){var l=r.stateNode;try{jg(a,l)}catch(u){ft(r,r.return,u)}}}function Qb(r,a,l){l.props=bi(r.type,r.memoizedProps),l.state=r.memoizedState;try{l.componentWillUnmount()}catch(u){ft(r,a,u)}}function Vl(r,a){try{var l=r.ref;if(l!==null){switch(r.tag){case 26:case 27:case 5:var u=r.stateNode;break;case 30:u=r.stateNode;break;default:u=r.stateNode}typeof l=="function"?r.refCleanup=l(u):l.current=u}}catch(f){ft(r,a,f)}}function Er(r,a){var l=r.ref,u=r.refCleanup;if(l!==null)if(typeof u=="function")try{u()}catch(f){ft(r,a,f)}finally{r.refCleanup=null,r=r.alternate,r!=null&&(r.refCleanup=null)}else if(typeof l=="function")try{l(null)}catch(f){ft(r,a,f)}else l.current=null}function Jb(r){var a=r.type,l=r.memoizedProps,u=r.stateNode;try{e:switch(a){case"button":case"input":case"select":case"textarea":l.autoFocus&&u.focus();break e;case"img":l.src?u.src=l.src:l.srcSet&&(u.srcset=l.srcSet)}}catch(f){ft(r,r.return,f)}}function Nm(r,a,l){try{var u=r.stateNode;P6(u,r.type,l,a),u[yn]=a}catch(f){ft(r,r.return,f)}}function Xb(r){return r.tag===5||r.tag===3||r.tag===26||r.tag===27&&wa(r.type)||r.tag===4}function Mm(r){e:for(;;){for(;r.sibling===null;){if(r.return===null||Xb(r.return))return null;r=r.return}for(r.sibling.return=r.return,r=r.sibling;r.tag!==5&&r.tag!==6&&r.tag!==18;){if(r.tag===27&&wa(r.type)||r.flags&2||r.child===null||r.tag===4)continue e;r.child.return=r,r=r.child}if(!(r.flags&2))return r.stateNode}}function Rm(r,a,l){var u=r.tag;if(u===5||u===6)r=r.stateNode,a?(l.nodeType===9?l.body:l.nodeName==="HTML"?l.ownerDocument.body:l).insertBefore(r,a):(a=l.nodeType===9?l.body:l.nodeName==="HTML"?l.ownerDocument.body:l,a.appendChild(r),l=l._reactRootContainer,l!=null||a.onclick!==null||(a.onclick=Mr));else if(u!==4&&(u===27&&wa(r.type)&&(l=r.stateNode,a=null),r=r.child,r!==null))for(Rm(r,a,l),r=r.sibling;r!==null;)Rm(r,a,l),r=r.sibling}function zu(r,a,l){var u=r.tag;if(u===5||u===6)r=r.stateNode,a?l.insertBefore(r,a):l.appendChild(r);else if(u!==4&&(u===27&&wa(r.type)&&(l=r.stateNode),r=r.child,r!==null))for(zu(r,a,l),r=r.sibling;r!==null;)zu(r,a,l),r=r.sibling}function ev(r){var a=r.stateNode,l=r.memoizedProps;try{for(var u=r.type,f=a.attributes;f.length;)a.removeAttributeNode(f[0]);tn(a,u,l),a[Qt]=r,a[yn]=l}catch(p){ft(r,r.return,p)}}var zr=!1,Ut=!1,Om=!1,tv=typeof WeakSet=="function"?WeakSet:Set,Wt=null;function y6(r,a){if(r=r.containerInfo,ep=sc,r=mg(r),Cf(r)){if("selectionStart"in r)var l={start:r.selectionStart,end:r.selectionEnd};else e:{l=(l=r.ownerDocument)&&l.defaultView||window;var u=l.getSelection&&l.getSelection();if(u&&u.rangeCount!==0){l=u.anchorNode;var f=u.anchorOffset,p=u.focusNode;u=u.focusOffset;try{l.nodeType,p.nodeType}catch{l=null;break e}var _=0,D=-1,k=-1,K=0,ae=0,ce=r,Q=null;t:for(;;){for(var ee;ce!==l||f!==0&&ce.nodeType!==3||(D=_+f),ce!==p||u!==0&&ce.nodeType!==3||(k=_+u),ce.nodeType===3&&(_+=ce.nodeValue.length),(ee=ce.firstChild)!==null;)Q=ce,ce=ee;for(;;){if(ce===r)break t;if(Q===l&&++K===f&&(D=_),Q===p&&++ae===u&&(k=_),(ee=ce.nextSibling)!==null)break;ce=Q,Q=ce.parentNode}ce=ee}l=D===-1||k===-1?null:{start:D,end:k}}else l=null}l=l||{start:0,end:0}}else l=null;for(tp={focusedElem:r,selectionRange:l},sc=!1,Wt=a;Wt!==null;)if(a=Wt,r=a.child,(a.subtreeFlags&1028)!==0&&r!==null)r.return=a,Wt=r;else for(;Wt!==null;){switch(a=Wt,p=a.alternate,r=a.flags,a.tag){case 0:if((r&4)!==0&&(r=a.updateQueue,r=r!==null?r.events:null,r!==null))for(l=0;l<r.length;l++)f=r[l],f.ref.impl=f.nextImpl;break;case 11:case 15:break;case 1:if((r&1024)!==0&&p!==null){r=void 0,l=a,f=p.memoizedProps,p=p.memoizedState,u=l.stateNode;try{var Me=bi(l.type,f);r=u.getSnapshotBeforeUpdate(Me,p),u.__reactInternalSnapshotBeforeUpdate=r}catch(Ie){ft(l,l.return,Ie)}}break;case 3:if((r&1024)!==0){if(r=a.stateNode.containerInfo,l=r.nodeType,l===9)ap(r);else if(l===1)switch(r.nodeName){case"HEAD":case"HTML":case"BODY":ap(r);break;default:r.textContent=""}}break;case 5:case 26:case 27:case 6:case 4:case 17:break;default:if((r&1024)!==0)throw Error(i(163))}if(r=a.sibling,r!==null){r.return=a.return,Wt=r;break}Wt=a.return}}function nv(r,a,l){var u=l.flags;switch(l.tag){case 0:case 11:case 15:Hr(r,l),u&4&&Hl(5,l);break;case 1:if(Hr(r,l),u&4)if(r=l.stateNode,a===null)try{r.componentDidMount()}catch(_){ft(l,l.return,_)}else{var f=bi(l.type,a.memoizedProps);a=a.memoizedState;try{r.componentDidUpdate(f,a,r.__reactInternalSnapshotBeforeUpdate)}catch(_){ft(l,l.return,_)}}u&64&&Wb(l),u&512&&Vl(l,l.return);break;case 3:if(Hr(r,l),u&64&&(r=l.updateQueue,r!==null)){if(a=null,l.child!==null)switch(l.child.tag){case 27:case 5:a=l.child.stateNode;break;case 1:a=l.child.stateNode}try{jg(r,a)}catch(_){ft(l,l.return,_)}}break;case 27:a===null&&u&4&&ev(l);case 26:case 5:Hr(r,l),a===null&&u&4&&Jb(l),u&512&&Vl(l,l.return);break;case 12:Hr(r,l);break;case 31:Hr(r,l),u&4&&iv(r,l);break;case 13:Hr(r,l),u&4&&ov(r,l),u&64&&(r=l.memoizedState,r!==null&&(r=r.dehydrated,r!==null&&(l=x6.bind(null,l),G6(r,l))));break;case 22:if(u=l.memoizedState!==null||zr,!u){a=a!==null&&a.memoizedState!==null||Ut,f=zr;var p=Ut;zr=u,(Ut=a)&&!p?Vr(r,l,(l.subtreeFlags&8772)!==0):Hr(r,l),zr=f,Ut=p}break;case 30:break;default:Hr(r,l)}}function rv(r){var a=r.alternate;a!==null&&(r.alternate=null,rv(a)),r.child=null,r.deletions=null,r.sibling=null,r.tag===5&&(a=r.stateNode,a!==null&&uf(a)),r.stateNode=null,r.return=null,r.dependencies=null,r.memoizedProps=null,r.memoizedState=null,r.pendingProps=null,r.stateNode=null,r.updateQueue=null}var xt=null,bn=!1;function Ur(r,a,l){for(l=l.child;l!==null;)av(r,a,l),l=l.sibling}function av(r,a,l){if(rt&&typeof rt.onCommitFiberUnmount=="function")try{rt.onCommitFiberUnmount(tt,l)}catch{}switch(l.tag){case 26:Ut||Er(l,a),Ur(r,a,l),l.memoizedState?l.memoizedState.count--:l.stateNode&&(l=l.stateNode,l.parentNode.removeChild(l));break;case 27:Ut||Er(l,a);var u=xt,f=bn;wa(l.type)&&(xt=l.stateNode,bn=!1),Ur(r,a,l),Xl(l.stateNode),xt=u,bn=f;break;case 5:Ut||Er(l,a);case 6:if(u=xt,f=bn,xt=null,Ur(r,a,l),xt=u,bn=f,xt!==null)if(bn)try{(xt.nodeType===9?xt.body:xt.nodeName==="HTML"?xt.ownerDocument.body:xt).removeChild(l.stateNode)}catch(p){ft(l,a,p)}else try{xt.removeChild(l.stateNode)}catch(p){ft(l,a,p)}break;case 18:xt!==null&&(bn?(r=xt,Wv(r.nodeType===9?r.body:r.nodeName==="HTML"?r.ownerDocument.body:r,l.stateNode),Lo(r)):Wv(xt,l.stateNode));break;case 4:u=xt,f=bn,xt=l.stateNode.containerInfo,bn=!0,Ur(r,a,l),xt=u,bn=f;break;case 0:case 11:case 14:case 15:Ea(2,l,a),Ut||Ea(4,l,a),Ur(r,a,l);break;case 1:Ut||(Er(l,a),u=l.stateNode,typeof u.componentWillUnmount=="function"&&Qb(l,a,u)),Ur(r,a,l);break;case 21:Ur(r,a,l);break;case 22:Ut=(u=Ut)||l.memoizedState!==null,Ur(r,a,l),Ut=u;break;default:Ur(r,a,l)}}function iv(r,a){if(a.memoizedState===null&&(r=a.alternate,r!==null&&(r=r.memoizedState,r!==null))){r=r.dehydrated;try{Lo(r)}catch(l){ft(a,a.return,l)}}}function ov(r,a){if(a.memoizedState===null&&(r=a.alternate,r!==null&&(r=r.memoizedState,r!==null&&(r=r.dehydrated,r!==null))))try{Lo(r)}catch(l){ft(a,a.return,l)}}function g6(r){switch(r.tag){case 31:case 13:case 19:var a=r.stateNode;return a===null&&(a=r.stateNode=new tv),a;case 22:return r=r.stateNode,a=r._retryCache,a===null&&(a=r._retryCache=new tv),a;default:throw Error(i(435,r.tag))}}function Uu(r,a){var l=g6(r);a.forEach(function(u){if(!l.has(u)){l.add(u);var f=C6.bind(null,r,u);u.then(f,f)}})}function vn(r,a){var l=a.deletions;if(l!==null)for(var u=0;u<l.length;u++){var f=l[u],p=r,_=a,D=_;e:for(;D!==null;){switch(D.tag){case 27:if(wa(D.type)){xt=D.stateNode,bn=!1;break e}break;case 5:xt=D.stateNode,bn=!1;break e;case 3:case 4:xt=D.stateNode.containerInfo,bn=!0;break e}D=D.return}if(xt===null)throw Error(i(160));av(p,_,f),xt=null,bn=!1,p=f.alternate,p!==null&&(p.return=null),f.return=null}if(a.subtreeFlags&13886)for(a=a.child;a!==null;)lv(a,r),a=a.sibling}var mr=null;function lv(r,a){var l=r.alternate,u=r.flags;switch(r.tag){case 0:case 11:case 14:case 15:vn(a,r),_n(r),u&4&&(Ea(3,r,r.return),Hl(3,r),Ea(5,r,r.return));break;case 1:vn(a,r),_n(r),u&512&&(Ut||l===null||Er(l,l.return)),u&64&&zr&&(r=r.updateQueue,r!==null&&(u=r.callbacks,u!==null&&(l=r.shared.hiddenCallbacks,r.shared.hiddenCallbacks=l===null?u:l.concat(u))));break;case 26:var f=mr;if(vn(a,r),_n(r),u&512&&(Ut||l===null||Er(l,l.return)),u&4){var p=l!==null?l.memoizedState:null;if(u=r.memoizedState,l===null)if(u===null)if(r.stateNode===null){e:{u=r.type,l=r.memoizedProps,f=f.ownerDocument||f;t:switch(u){case"title":p=f.getElementsByTagName("title")[0],(!p||p[gl]||p[Qt]||p.namespaceURI==="http://www.w3.org/2000/svg"||p.hasAttribute("itemprop"))&&(p=f.createElement(u),f.head.insertBefore(p,f.querySelector("head > title"))),tn(p,u,l),p[Qt]=r,Kt(p),u=p;break e;case"link":var _=l_("link","href",f).get(u+(l.href||""));if(_){for(var D=0;D<_.length;D++)if(p=_[D],p.getAttribute("href")===(l.href==null||l.href===""?null:l.href)&&p.getAttribute("rel")===(l.rel==null?null:l.rel)&&p.getAttribute("title")===(l.title==null?null:l.title)&&p.getAttribute("crossorigin")===(l.crossOrigin==null?null:l.crossOrigin)){_.splice(D,1);break t}}p=f.createElement(u),tn(p,u,l),f.head.appendChild(p);break;case"meta":if(_=l_("meta","content",f).get(u+(l.content||""))){for(D=0;D<_.length;D++)if(p=_[D],p.getAttribute("content")===(l.content==null?null:""+l.content)&&p.getAttribute("name")===(l.name==null?null:l.name)&&p.getAttribute("property")===(l.property==null?null:l.property)&&p.getAttribute("http-equiv")===(l.httpEquiv==null?null:l.httpEquiv)&&p.getAttribute("charset")===(l.charSet==null?null:l.charSet)){_.splice(D,1);break t}}p=f.createElement(u),tn(p,u,l),f.head.appendChild(p);break;default:throw Error(i(468,u))}p[Qt]=r,Kt(p),u=p}r.stateNode=u}else s_(f,r.type,r.stateNode);else r.stateNode=o_(f,u,r.memoizedProps);else p!==u?(p===null?l.stateNode!==null&&(l=l.stateNode,l.parentNode.removeChild(l)):p.count--,u===null?s_(f,r.type,r.stateNode):o_(f,u,r.memoizedProps)):u===null&&r.stateNode!==null&&Nm(r,r.memoizedProps,l.memoizedProps)}break;case 27:vn(a,r),_n(r),u&512&&(Ut||l===null||Er(l,l.return)),l!==null&&u&4&&Nm(r,r.memoizedProps,l.memoizedProps);break;case 5:if(vn(a,r),_n(r),u&512&&(Ut||l===null||Er(l,l.return)),r.flags&32){f=r.stateNode;try{ao(f,"")}catch(Me){ft(r,r.return,Me)}}u&4&&r.stateNode!=null&&(f=r.memoizedProps,Nm(r,f,l!==null?l.memoizedProps:f)),u&1024&&(Om=!0);break;case 6:if(vn(a,r),_n(r),u&4){if(r.stateNode===null)throw Error(i(162));u=r.memoizedProps,l=r.stateNode;try{l.nodeValue=u}catch(Me){ft(r,r.return,Me)}}break;case 3:if(ac=null,f=mr,mr=nc(a.containerInfo),vn(a,r),mr=f,_n(r),u&4&&l!==null&&l.memoizedState.isDehydrated)try{Lo(a.containerInfo)}catch(Me){ft(r,r.return,Me)}Om&&(Om=!1,sv(r));break;case 4:u=mr,mr=nc(r.stateNode.containerInfo),vn(a,r),_n(r),mr=u;break;case 12:vn(a,r),_n(r);break;case 31:vn(a,r),_n(r),u&4&&(u=r.updateQueue,u!==null&&(r.updateQueue=null,Uu(r,u)));break;case 13:vn(a,r),_n(r),r.child.flags&8192&&r.memoizedState!==null!=(l!==null&&l.memoizedState!==null)&&(Vu=oe()),u&4&&(u=r.updateQueue,u!==null&&(r.updateQueue=null,Uu(r,u)));break;case 22:f=r.memoizedState!==null;var k=l!==null&&l.memoizedState!==null,K=zr,ae=Ut;if(zr=K||f,Ut=ae||k,vn(a,r),Ut=ae,zr=K,_n(r),u&8192)e:for(a=r.stateNode,a._visibility=f?a._visibility&-2:a._visibility|1,f&&(l===null||k||zr||Ut||vi(r)),l=null,a=r;;){if(a.tag===5||a.tag===26){if(l===null){k=l=a;try{if(p=k.stateNode,f)_=p.style,typeof _.setProperty=="function"?_.setProperty("display","none","important"):_.display="none";else{D=k.stateNode;var ce=k.memoizedProps.style,Q=ce!=null&&ce.hasOwnProperty("display")?ce.display:null;D.style.display=Q==null||typeof Q=="boolean"?"":(""+Q).trim()}}catch(Me){ft(k,k.return,Me)}}}else if(a.tag===6){if(l===null){k=a;try{k.stateNode.nodeValue=f?"":k.memoizedProps}catch(Me){ft(k,k.return,Me)}}}else if(a.tag===18){if(l===null){k=a;try{var ee=k.stateNode;f?Qv(ee,!0):Qv(k.stateNode,!1)}catch(Me){ft(k,k.return,Me)}}}else if((a.tag!==22&&a.tag!==23||a.memoizedState===null||a===r)&&a.child!==null){a.child.return=a,a=a.child;continue}if(a===r)break e;for(;a.sibling===null;){if(a.return===null||a.return===r)break e;l===a&&(l=null),a=a.return}l===a&&(l=null),a.sibling.return=a.return,a=a.sibling}u&4&&(u=r.updateQueue,u!==null&&(l=u.retryQueue,l!==null&&(u.retryQueue=null,Uu(r,l))));break;case 19:vn(a,r),_n(r),u&4&&(u=r.updateQueue,u!==null&&(r.updateQueue=null,Uu(r,u)));break;case 30:break;case 21:break;default:vn(a,r),_n(r)}}function _n(r){var a=r.flags;if(a&2){try{for(var l,u=r.return;u!==null;){if(Xb(u)){l=u;break}u=u.return}if(l==null)throw Error(i(160));switch(l.tag){case 27:var f=l.stateNode,p=Mm(r);zu(r,p,f);break;case 5:var _=l.stateNode;l.flags&32&&(ao(_,""),l.flags&=-33);var D=Mm(r);zu(r,D,_);break;case 3:case 4:var k=l.stateNode.containerInfo,K=Mm(r);Rm(r,K,k);break;default:throw Error(i(161))}}catch(ae){ft(r,r.return,ae)}r.flags&=-3}a&4096&&(r.flags&=-4097)}function sv(r){if(r.subtreeFlags&1024)for(r=r.child;r!==null;){var a=r;sv(a),a.tag===5&&a.flags&1024&&a.stateNode.reset(),r=r.sibling}}function Hr(r,a){if(a.subtreeFlags&8772)for(a=a.child;a!==null;)nv(r,a.alternate,a),a=a.sibling}function vi(r){for(r=r.child;r!==null;){var a=r;switch(a.tag){case 0:case 11:case 14:case 15:Ea(4,a,a.return),vi(a);break;case 1:Er(a,a.return);var l=a.stateNode;typeof l.componentWillUnmount=="function"&&Qb(a,a.return,l),vi(a);break;case 27:Xl(a.stateNode);case 26:case 5:Er(a,a.return),vi(a);break;case 22:a.memoizedState===null&&vi(a);break;case 30:vi(a);break;default:vi(a)}r=r.sibling}}function Vr(r,a,l){for(l=l&&(a.subtreeFlags&8772)!==0,a=a.child;a!==null;){var u=a.alternate,f=r,p=a,_=p.flags;switch(p.tag){case 0:case 11:case 15:Vr(f,p,l),Hl(4,p);break;case 1:if(Vr(f,p,l),u=p,f=u.stateNode,typeof f.componentDidMount=="function")try{f.componentDidMount()}catch(K){ft(u,u.return,K)}if(u=p,f=u.updateQueue,f!==null){var D=u.stateNode;try{var k=f.shared.hiddenCallbacks;if(k!==null)for(f.shared.hiddenCallbacks=null,f=0;f<k.length;f++)Ig(k[f],D)}catch(K){ft(u,u.return,K)}}l&&_&64&&Wb(p),Vl(p,p.return);break;case 27:ev(p);case 26:case 5:Vr(f,p,l),l&&u===null&&_&4&&Jb(p),Vl(p,p.return);break;case 12:Vr(f,p,l);break;case 31:Vr(f,p,l),l&&_&4&&iv(f,p);break;case 13:Vr(f,p,l),l&&_&4&&ov(f,p);break;case 22:p.memoizedState===null&&Vr(f,p,l),Vl(p,p.return);break;case 30:break;default:Vr(f,p,l)}a=a.sibling}}function km(r,a){var l=null;r!==null&&r.memoizedState!==null&&r.memoizedState.cachePool!==null&&(l=r.memoizedState.cachePool.pool),r=null,a.memoizedState!==null&&a.memoizedState.cachePool!==null&&(r=a.memoizedState.cachePool.pool),r!==l&&(r!=null&&r.refCount++,l!=null&&Nl(l))}function Bm(r,a){r=null,a.alternate!==null&&(r=a.alternate.memoizedState.cache),a=a.memoizedState.cache,a!==r&&(a.refCount++,r!=null&&Nl(r))}function pr(r,a,l,u){if(a.subtreeFlags&10256)for(a=a.child;a!==null;)uv(r,a,l,u),a=a.sibling}function uv(r,a,l,u){var f=a.flags;switch(a.tag){case 0:case 11:case 15:pr(r,a,l,u),f&2048&&Hl(9,a);break;case 1:pr(r,a,l,u);break;case 3:pr(r,a,l,u),f&2048&&(r=null,a.alternate!==null&&(r=a.alternate.memoizedState.cache),a=a.memoizedState.cache,a!==r&&(a.refCount++,r!=null&&Nl(r)));break;case 12:if(f&2048){pr(r,a,l,u),r=a.stateNode;try{var p=a.memoizedProps,_=p.id,D=p.onPostCommit;typeof D=="function"&&D(_,a.alternate===null?"mount":"update",r.passiveEffectDuration,-0)}catch(k){ft(a,a.return,k)}}else pr(r,a,l,u);break;case 31:pr(r,a,l,u);break;case 13:pr(r,a,l,u);break;case 23:break;case 22:p=a.stateNode,_=a.alternate,a.memoizedState!==null?p._visibility&2?pr(r,a,l,u):Gl(r,a):p._visibility&2?pr(r,a,l,u):(p._visibility|=2,xo(r,a,l,u,(a.subtreeFlags&10256)!==0||!1)),f&2048&&km(_,a);break;case 24:pr(r,a,l,u),f&2048&&Bm(a.alternate,a);break;default:pr(r,a,l,u)}}function xo(r,a,l,u,f){for(f=f&&((a.subtreeFlags&10256)!==0||!1),a=a.child;a!==null;){var p=r,_=a,D=l,k=u,K=_.flags;switch(_.tag){case 0:case 11:case 15:xo(p,_,D,k,f),Hl(8,_);break;case 23:break;case 22:var ae=_.stateNode;_.memoizedState!==null?ae._visibility&2?xo(p,_,D,k,f):Gl(p,_):(ae._visibility|=2,xo(p,_,D,k,f)),f&&K&2048&&km(_.alternate,_);break;case 24:xo(p,_,D,k,f),f&&K&2048&&Bm(_.alternate,_);break;default:xo(p,_,D,k,f)}a=a.sibling}}function Gl(r,a){if(a.subtreeFlags&10256)for(a=a.child;a!==null;){var l=r,u=a,f=u.flags;switch(u.tag){case 22:Gl(l,u),f&2048&&km(u.alternate,u);break;case 24:Gl(l,u),f&2048&&Bm(u.alternate,u);break;default:Gl(l,u)}a=a.sibling}}var Zl=8192;function Co(r,a,l){if(r.subtreeFlags&Zl)for(r=r.child;r!==null;)cv(r,a,l),r=r.sibling}function cv(r,a,l){switch(r.tag){case 26:Co(r,a,l),r.flags&Zl&&r.memoizedState!==null&&rA(l,mr,r.memoizedState,r.memoizedProps);break;case 5:Co(r,a,l);break;case 3:case 4:var u=mr;mr=nc(r.stateNode.containerInfo),Co(r,a,l),mr=u;break;case 22:r.memoizedState===null&&(u=r.alternate,u!==null&&u.memoizedState!==null?(u=Zl,Zl=16777216,Co(r,a,l),Zl=u):Co(r,a,l));break;default:Co(r,a,l)}}function dv(r){var a=r.alternate;if(a!==null&&(r=a.child,r!==null)){a.child=null;do a=r.sibling,r.sibling=null,r=a;while(r!==null)}}function Yl(r){var a=r.deletions;if((r.flags&16)!==0){if(a!==null)for(var l=0;l<a.length;l++){var u=a[l];Wt=u,mv(u,r)}dv(r)}if(r.subtreeFlags&10256)for(r=r.child;r!==null;)fv(r),r=r.sibling}function fv(r){switch(r.tag){case 0:case 11:case 15:Yl(r),r.flags&2048&&Ea(9,r,r.return);break;case 3:Yl(r);break;case 12:Yl(r);break;case 22:var a=r.stateNode;r.memoizedState!==null&&a._visibility&2&&(r.return===null||r.return.tag!==13)?(a._visibility&=-3,Hu(r)):Yl(r);break;default:Yl(r)}}function Hu(r){var a=r.deletions;if((r.flags&16)!==0){if(a!==null)for(var l=0;l<a.length;l++){var u=a[l];Wt=u,mv(u,r)}dv(r)}for(r=r.child;r!==null;){switch(a=r,a.tag){case 0:case 11:case 15:Ea(8,a,a.return),Hu(a);break;case 22:l=a.stateNode,l._visibility&2&&(l._visibility&=-3,Hu(a));break;default:Hu(a)}r=r.sibling}}function mv(r,a){for(;Wt!==null;){var l=Wt;switch(l.tag){case 0:case 11:case 15:Ea(8,l,a);break;case 23:case 22:if(l.memoizedState!==null&&l.memoizedState.cachePool!==null){var u=l.memoizedState.cachePool.pool;u!=null&&u.refCount++}break;case 24:Nl(l.memoizedState.cache)}if(u=l.child,u!==null)u.return=l,Wt=u;else e:for(l=r;Wt!==null;){u=Wt;var f=u.sibling,p=u.return;if(rv(u),u===l){Wt=null;break e}if(f!==null){f.return=p,Wt=f;break e}Wt=p}}}var b6={getCacheForType:function(r){var a=Xt(It),l=a.data.get(r);return l===void 0&&(l=r(),a.data.set(r,l)),l},cacheSignal:function(){return Xt(It).controller.signal}},v6=typeof WeakMap=="function"?WeakMap:Map,lt=0,vt=null,We=null,Je=0,dt=0,Pn=null,Sa=!1,Ao=!1,Lm=!1,Gr=0,Mt=0,$a=0,_i=0,Pm=0,Fn=0,wo=0,ql=null,En=null,Fm=!1,Vu=0,pv=0,Gu=1/0,Zu=null,Da=null,Gt=0,xa=null,To=null,Zr=0,Im=0,jm=null,hv=null,Kl=0,zm=null;function In(){return(lt&2)!==0&&Je!==0?Je&-Je:O.T!==null?Ym():My()}function yv(){if(Fn===0)if((Je&536870912)===0||et){var r=Mn;Mn<<=1,(Mn&3932160)===0&&(Mn=262144),Fn=r}else Fn=536870912;return r=Bn.current,r!==null&&(r.flags|=32),Fn}function Sn(r,a,l){(r===vt&&(dt===2||dt===9)||r.cancelPendingCommit!==null)&&(No(r,0),Ca(r,Je,Fn,!1)),br(r,l),((lt&2)===0||r!==vt)&&(r===vt&&((lt&2)===0&&(_i|=l),Mt===4&&Ca(r,Je,Fn,!1)),Sr(r))}function gv(r,a,l){if((lt&6)!==0)throw Error(i(327));var u=!l&&(a&127)===0&&(a&r.expiredLanes)===0||Rn(r,a),f=u?S6(r,a):Hm(r,a,!0),p=u;do{if(f===0){Ao&&!u&&Ca(r,a,0,!1);break}else{if(l=r.current.alternate,p&&!_6(l)){f=Hm(r,a,!1),p=!1;continue}if(f===2){if(p=a,r.errorRecoveryDisabledLanes&p)var _=0;else _=r.pendingLanes&-536870913,_=_!==0?_:_&536870912?536870912:0;if(_!==0){a=_;e:{var D=r;f=ql;var k=D.current.memoizedState.isDehydrated;if(k&&(No(D,_).flags|=256),_=Hm(D,_,!1),_!==2){if(Lm&&!k){D.errorRecoveryDisabledLanes|=p,_i|=p,f=4;break e}p=En,En=f,p!==null&&(En===null?En=p:En.push.apply(En,p))}f=_}if(p=!1,f!==2)continue}}if(f===1){No(r,0),Ca(r,a,0,!0);break}e:{switch(u=r,p=f,p){case 0:case 1:throw Error(i(345));case 4:if((a&4194048)!==a)break;case 6:Ca(u,a,Fn,!Sa);break e;case 2:En=null;break;case 3:case 5:break;default:throw Error(i(329))}if((a&62914560)===a&&(f=Vu+300-oe(),10<f)){if(Ca(u,a,Fn,!Sa),pl(u,0,!0)!==0)break e;Zr=a,u.timeoutHandle=qv(bv.bind(null,u,l,En,Zu,Fm,a,Fn,_i,wo,Sa,p,"Throttled",-0,0),f);break e}bv(u,l,En,Zu,Fm,a,Fn,_i,wo,Sa,p,null,-0,0)}}break}while(!0);Sr(r)}function bv(r,a,l,u,f,p,_,D,k,K,ae,ce,Q,ee){if(r.timeoutHandle=-1,ce=a.subtreeFlags,ce&8192||(ce&16785408)===16785408){ce={stylesheets:null,count:0,imgCount:0,imgBytes:0,suspenseyImages:[],waitingForImages:!0,waitingForViewTransition:!1,unsuspend:Mr},cv(a,p,ce);var Me=(p&62914560)===p?Vu-oe():(p&4194048)===p?pv-oe():0;if(Me=aA(ce,Me),Me!==null){Zr=p,r.cancelPendingCommit=Me(Cv.bind(null,r,a,p,l,u,f,_,D,k,ae,ce,null,Q,ee)),Ca(r,p,_,!K);return}}Cv(r,a,p,l,u,f,_,D,k)}function _6(r){for(var a=r;;){var l=a.tag;if((l===0||l===11||l===15)&&a.flags&16384&&(l=a.updateQueue,l!==null&&(l=l.stores,l!==null)))for(var u=0;u<l.length;u++){var f=l[u],p=f.getSnapshot;f=f.value;try{if(!On(p(),f))return!1}catch{return!1}}if(l=a.child,a.subtreeFlags&16384&&l!==null)l.return=a,a=l;else{if(a===r)break;for(;a.sibling===null;){if(a.return===null||a.return===r)return!0;a=a.return}a.sibling.return=a.return,a=a.sibling}}return!0}function Ca(r,a,l,u){a&=~Pm,a&=~_i,r.suspendedLanes|=a,r.pingedLanes&=~a,u&&(r.warmLanes|=a),u=r.expirationTimes;for(var f=a;0<f;){var p=31-Ye(f),_=1<<p;u[p]=-1,f&=~_}l!==0&&tu(r,l,a)}function Yu(){return(lt&6)===0?(Wl(0),!1):!0}function Um(){if(We!==null){if(dt===0)var r=We.return;else r=We,Br=di=null,am(r),_o=null,Rl=0,r=We;for(;r!==null;)Kb(r.alternate,r),r=r.return;We=null}}function No(r,a){var l=r.timeoutHandle;l!==-1&&(r.timeoutHandle=-1,j6(l)),l=r.cancelPendingCommit,l!==null&&(r.cancelPendingCommit=null,l()),Zr=0,Um(),vt=r,We=l=Or(r.current,null),Je=a,dt=0,Pn=null,Sa=!1,Ao=Rn(r,a),Lm=!1,wo=Fn=Pm=_i=$a=Mt=0,En=ql=null,Fm=!1,(a&8)!==0&&(a|=a&32);var u=r.entangledLanes;if(u!==0)for(r=r.entanglements,u&=a;0<u;){var f=31-Ye(u),p=1<<f;a|=r[f],u&=~p}return Gr=a,pu(),l}function vv(r,a){Ge=null,O.H=jl,a===vo||a===Su?(a=Bg(),dt=3):a===Zf?(a=Bg(),dt=4):dt=a===_m?8:a!==null&&typeof a=="object"&&typeof a.then=="function"?6:1,Pn=a,We===null&&(Mt=1,Lu(r,qn(a,r.current)))}function _v(){var r=Bn.current;return r===null?!0:(Je&4194048)===Je?Jn===null:(Je&62914560)===Je||(Je&536870912)!==0?r===Jn:!1}function Ev(){var r=O.H;return O.H=jl,r===null?jl:r}function Sv(){var r=O.A;return O.A=b6,r}function qu(){Mt=4,Sa||(Je&4194048)!==Je&&Bn.current!==null||(Ao=!0),($a&134217727)===0&&(_i&134217727)===0||vt===null||Ca(vt,Je,Fn,!1)}function Hm(r,a,l){var u=lt;lt|=2;var f=Ev(),p=Sv();(vt!==r||Je!==a)&&(Zu=null,No(r,a)),a=!1;var _=Mt;e:do try{if(dt!==0&&We!==null){var D=We,k=Pn;switch(dt){case 8:Um(),_=6;break e;case 3:case 2:case 9:case 6:Bn.current===null&&(a=!0);var K=dt;if(dt=0,Pn=null,Mo(r,D,k,K),l&&Ao){_=0;break e}break;default:K=dt,dt=0,Pn=null,Mo(r,D,k,K)}}E6(),_=Mt;break}catch(ae){vv(r,ae)}while(!0);return a&&r.shellSuspendCounter++,Br=di=null,lt=u,O.H=f,O.A=p,We===null&&(vt=null,Je=0,pu()),_}function E6(){for(;We!==null;)$v(We)}function S6(r,a){var l=lt;lt|=2;var u=Ev(),f=Sv();vt!==r||Je!==a?(Zu=null,Gu=oe()+500,No(r,a)):Ao=Rn(r,a);e:do try{if(dt!==0&&We!==null){a=We;var p=Pn;t:switch(dt){case 1:dt=0,Pn=null,Mo(r,a,p,1);break;case 2:case 9:if(Og(p)){dt=0,Pn=null,Dv(a);break}a=function(){dt!==2&&dt!==9||vt!==r||(dt=7),Sr(r)},p.then(a,a);break e;case 3:dt=7;break e;case 4:dt=5;break e;case 7:Og(p)?(dt=0,Pn=null,Dv(a)):(dt=0,Pn=null,Mo(r,a,p,7));break;case 5:var _=null;switch(We.tag){case 26:_=We.memoizedState;case 5:case 27:var D=We;if(_?u_(_):D.stateNode.complete){dt=0,Pn=null;var k=D.sibling;if(k!==null)We=k;else{var K=D.return;K!==null?(We=K,Ku(K)):We=null}break t}}dt=0,Pn=null,Mo(r,a,p,5);break;case 6:dt=0,Pn=null,Mo(r,a,p,6);break;case 8:Um(),Mt=6;break e;default:throw Error(i(462))}}$6();break}catch(ae){vv(r,ae)}while(!0);return Br=di=null,O.H=u,O.A=f,lt=l,We!==null?0:(vt=null,Je=0,pu(),Mt)}function $6(){for(;We!==null&&!Ne();)$v(We)}function $v(r){var a=Yb(r.alternate,r,Gr);r.memoizedProps=r.pendingProps,a===null?Ku(r):We=a}function Dv(r){var a=r,l=a.alternate;switch(a.tag){case 15:case 0:a=zb(l,a,a.pendingProps,a.type,void 0,Je);break;case 11:a=zb(l,a,a.pendingProps,a.type.render,a.ref,Je);break;case 5:am(a);default:Kb(l,a),a=We=Sg(a,Gr),a=Yb(l,a,Gr)}r.memoizedProps=r.pendingProps,a===null?Ku(r):We=a}function Mo(r,a,l,u){Br=di=null,am(a),_o=null,Rl=0;var f=a.return;try{if(d6(r,f,a,l,Je)){Mt=1,Lu(r,qn(l,r.current)),We=null;return}}catch(p){if(f!==null)throw We=f,p;Mt=1,Lu(r,qn(l,r.current)),We=null;return}a.flags&32768?(et||u===1?r=!0:Ao||(Je&536870912)!==0?r=!1:(Sa=r=!0,(u===2||u===9||u===3||u===6)&&(u=Bn.current,u!==null&&u.tag===13&&(u.flags|=16384))),xv(a,r)):Ku(a)}function Ku(r){var a=r;do{if((a.flags&32768)!==0){xv(a,Sa);return}r=a.return;var l=p6(a.alternate,a,Gr);if(l!==null){We=l;return}if(a=a.sibling,a!==null){We=a;return}We=a=r}while(a!==null);Mt===0&&(Mt=5)}function xv(r,a){do{var l=h6(r.alternate,r);if(l!==null){l.flags&=32767,We=l;return}if(l=r.return,l!==null&&(l.flags|=32768,l.subtreeFlags=0,l.deletions=null),!a&&(r=r.sibling,r!==null)){We=r;return}We=r=l}while(r!==null);Mt=6,We=null}function Cv(r,a,l,u,f,p,_,D,k){r.cancelPendingCommit=null;do Wu();while(Gt!==0);if((lt&6)!==0)throw Error(i(327));if(a!==null){if(a===r.current)throw Error(i(177));if(p=a.lanes|a.childLanes,p|=Mf,eu(r,l,p,_,D,k),r===vt&&(We=vt=null,Je=0),To=a,xa=r,Zr=l,Im=p,jm=f,hv=u,(a.subtreeFlags&10256)!==0||(a.flags&10256)!==0?(r.callbackNode=null,r.callbackPriority=0,A6(Re,function(){return Mv(),null})):(r.callbackNode=null,r.callbackPriority=0),u=(a.flags&13878)!==0,(a.subtreeFlags&13878)!==0||u){u=O.T,O.T=null,f=B.p,B.p=2,_=lt,lt|=4;try{y6(r,a,l)}finally{lt=_,B.p=f,O.T=u}}Gt=1,Av(),wv(),Tv()}}function Av(){if(Gt===1){Gt=0;var r=xa,a=To,l=(a.flags&13878)!==0;if((a.subtreeFlags&13878)!==0||l){l=O.T,O.T=null;var u=B.p;B.p=2;var f=lt;lt|=4;try{lv(a,r);var p=tp,_=mg(r.containerInfo),D=p.focusedElem,k=p.selectionRange;if(_!==D&&D&&D.ownerDocument&&fg(D.ownerDocument.documentElement,D)){if(k!==null&&Cf(D)){var K=k.start,ae=k.end;if(ae===void 0&&(ae=K),"selectionStart"in D)D.selectionStart=K,D.selectionEnd=Math.min(ae,D.value.length);else{var ce=D.ownerDocument||document,Q=ce&&ce.defaultView||window;if(Q.getSelection){var ee=Q.getSelection(),Me=D.textContent.length,Ie=Math.min(k.start,Me),gt=k.end===void 0?Ie:Math.min(k.end,Me);!ee.extend&&Ie>gt&&(_=gt,gt=Ie,Ie=_);var H=dg(D,Ie),P=dg(D,gt);if(H&&P&&(ee.rangeCount!==1||ee.anchorNode!==H.node||ee.anchorOffset!==H.offset||ee.focusNode!==P.node||ee.focusOffset!==P.offset)){var q=ce.createRange();q.setStart(H.node,H.offset),ee.removeAllRanges(),Ie>gt?(ee.addRange(q),ee.extend(P.node,P.offset)):(q.setEnd(P.node,P.offset),ee.addRange(q))}}}}for(ce=[],ee=D;ee=ee.parentNode;)ee.nodeType===1&&ce.push({element:ee,left:ee.scrollLeft,top:ee.scrollTop});for(typeof D.focus=="function"&&D.focus(),D=0;D<ce.length;D++){var le=ce[D];le.element.scrollLeft=le.left,le.element.scrollTop=le.top}}sc=!!ep,tp=ep=null}finally{lt=f,B.p=u,O.T=l}}r.current=a,Gt=2}}function wv(){if(Gt===2){Gt=0;var r=xa,a=To,l=(a.flags&8772)!==0;if((a.subtreeFlags&8772)!==0||l){l=O.T,O.T=null;var u=B.p;B.p=2;var f=lt;lt|=4;try{nv(r,a.alternate,a)}finally{lt=f,B.p=u,O.T=l}}Gt=3}}function Tv(){if(Gt===4||Gt===3){Gt=0,re();var r=xa,a=To,l=Zr,u=hv;(a.subtreeFlags&10256)!==0||(a.flags&10256)!==0?Gt=5:(Gt=0,To=xa=null,Nv(r,r.pendingLanes));var f=r.pendingLanes;if(f===0&&(Da=null),yl(l),a=a.stateNode,rt&&typeof rt.onCommitFiberRoot=="function")try{rt.onCommitFiberRoot(tt,a,void 0,(a.current.flags&128)===128)}catch{}if(u!==null){a=O.T,f=B.p,B.p=2,O.T=null;try{for(var p=r.onRecoverableError,_=0;_<u.length;_++){var D=u[_];p(D.value,{componentStack:D.stack})}}finally{O.T=a,B.p=f}}(Zr&3)!==0&&Wu(),Sr(r),f=r.pendingLanes,(l&261930)!==0&&(f&42)!==0?r===zm?Kl++:(Kl=0,zm=r):Kl=0,Wl(0)}}function Nv(r,a){(r.pooledCacheLanes&=a)===0&&(a=r.pooledCache,a!=null&&(r.pooledCache=null,Nl(a)))}function Wu(){return Av(),wv(),Tv(),Mv()}function Mv(){if(Gt!==5)return!1;var r=xa,a=Im;Im=0;var l=yl(Zr),u=O.T,f=B.p;try{B.p=32>l?32:l,O.T=null,l=jm,jm=null;var p=xa,_=Zr;if(Gt=0,To=xa=null,Zr=0,(lt&6)!==0)throw Error(i(331));var D=lt;if(lt|=4,fv(p.current),uv(p,p.current,_,l),lt=D,Wl(0,!1),rt&&typeof rt.onPostCommitFiberRoot=="function")try{rt.onPostCommitFiberRoot(tt,p)}catch{}return!0}finally{B.p=f,O.T=u,Nv(r,a)}}function Rv(r,a,l){a=qn(l,a),a=vm(r.stateNode,a,2),r=ba(r,a,2),r!==null&&(br(r,2),Sr(r))}function ft(r,a,l){if(r.tag===3)Rv(r,r,l);else for(;a!==null;){if(a.tag===3){Rv(a,r,l);break}else if(a.tag===1){var u=a.stateNode;if(typeof a.type.getDerivedStateFromError=="function"||typeof u.componentDidCatch=="function"&&(Da===null||!Da.has(u))){r=qn(l,r),l=Ob(2),u=ba(a,l,2),u!==null&&(kb(l,u,a,r),br(u,2),Sr(u));break}}a=a.return}}function Vm(r,a,l){var u=r.pingCache;if(u===null){u=r.pingCache=new v6;var f=new Set;u.set(a,f)}else f=u.get(a),f===void 0&&(f=new Set,u.set(a,f));f.has(l)||(Lm=!0,f.add(l),r=D6.bind(null,r,a,l),a.then(r,r))}function D6(r,a,l){var u=r.pingCache;u!==null&&u.delete(a),r.pingedLanes|=r.suspendedLanes&l,r.warmLanes&=~l,vt===r&&(Je&l)===l&&(Mt===4||Mt===3&&(Je&62914560)===Je&&300>oe()-Vu?(lt&2)===0&&No(r,0):Pm|=l,wo===Je&&(wo=0)),Sr(r)}function Ov(r,a){a===0&&(a=Qi()),r=si(r,a),r!==null&&(br(r,a),Sr(r))}function x6(r){var a=r.memoizedState,l=0;a!==null&&(l=a.retryLane),Ov(r,l)}function C6(r,a){var l=0;switch(r.tag){case 31:case 13:var u=r.stateNode,f=r.memoizedState;f!==null&&(l=f.retryLane);break;case 19:u=r.stateNode;break;case 22:u=r.stateNode._retryCache;break;default:throw Error(i(314))}u!==null&&u.delete(a),Ov(r,l)}function A6(r,a){return Ce(r,a)}var Qu=null,Ro=null,Gm=!1,Ju=!1,Zm=!1,Aa=0;function Sr(r){r!==Ro&&r.next===null&&(Ro===null?Qu=Ro=r:Ro=Ro.next=r),Ju=!0,Gm||(Gm=!0,T6())}function Wl(r,a){if(!Zm&&Ju){Zm=!0;do for(var l=!1,u=Qu;u!==null;){if(r!==0){var f=u.pendingLanes;if(f===0)var p=0;else{var _=u.suspendedLanes,D=u.pingedLanes;p=(1<<31-Ye(42|r)+1)-1,p&=f&~(_&~D),p=p&201326741?p&201326741|1:p?p|2:0}p!==0&&(l=!0,Pv(u,p))}else p=Je,p=pl(u,u===vt?p:0,u.cancelPendingCommit!==null||u.timeoutHandle!==-1),(p&3)===0||Rn(u,p)||(l=!0,Pv(u,p));u=u.next}while(l);Zm=!1}}function w6(){kv()}function kv(){Ju=Gm=!1;var r=0;Aa!==0&&I6()&&(r=Aa);for(var a=oe(),l=null,u=Qu;u!==null;){var f=u.next,p=Bv(u,a);p===0?(u.next=null,l===null?Qu=f:l.next=f,f===null&&(Ro=l)):(l=u,(r!==0||(p&3)!==0)&&(Ju=!0)),u=f}Gt!==0&&Gt!==5||Wl(r),Aa!==0&&(Aa=0)}function Bv(r,a){for(var l=r.suspendedLanes,u=r.pingedLanes,f=r.expirationTimes,p=r.pendingLanes&-62914561;0<p;){var _=31-Ye(p),D=1<<_,k=f[_];k===-1?((D&l)===0||(D&u)!==0)&&(f[_]=hl(D,a)):k<=a&&(r.expiredLanes|=D),p&=~D}if(a=vt,l=Je,l=pl(r,r===a?l:0,r.cancelPendingCommit!==null||r.timeoutHandle!==-1),u=r.callbackNode,l===0||r===a&&(dt===2||dt===9)||r.cancelPendingCommit!==null)return u!==null&&u!==null&&xe(u),r.callbackNode=null,r.callbackPriority=0;if((l&3)===0||Rn(r,l)){if(a=l&-l,a===r.callbackPriority)return a;switch(u!==null&&xe(u),yl(l)){case 2:case 8:l=Te;break;case 32:l=Re;break;case 268435456:l=qe;break;default:l=Re}return u=Lv.bind(null,r),l=Ce(l,u),r.callbackPriority=a,r.callbackNode=l,a}return u!==null&&u!==null&&xe(u),r.callbackPriority=2,r.callbackNode=null,2}function Lv(r,a){if(Gt!==0&&Gt!==5)return r.callbackNode=null,r.callbackPriority=0,null;var l=r.callbackNode;if(Wu()&&r.callbackNode!==l)return null;var u=Je;return u=pl(r,r===vt?u:0,r.cancelPendingCommit!==null||r.timeoutHandle!==-1),u===0?null:(gv(r,u,a),Bv(r,oe()),r.callbackNode!=null&&r.callbackNode===l?Lv.bind(null,r):null)}function Pv(r,a){if(Wu())return null;gv(r,a,!0)}function T6(){z6(function(){(lt&6)!==0?Ce(Ee,w6):kv()})}function Ym(){if(Aa===0){var r=go;r===0&&(r=gr,gr<<=1,(gr&261888)===0&&(gr=256)),Aa=r}return Aa}function Fv(r){return r==null||typeof r=="symbol"||typeof r=="boolean"?null:typeof r=="function"?r:ou(""+r)}function Iv(r,a){var l=a.ownerDocument.createElement("input");return l.name=a.name,l.value=a.value,r.id&&l.setAttribute("form",r.id),a.parentNode.insertBefore(l,a),r=new FormData(r),l.parentNode.removeChild(l),r}function N6(r,a,l,u,f){if(a==="submit"&&l&&l.stateNode===f){var p=Fv((f[yn]||null).action),_=u.submitter;_&&(a=(a=_[yn]||null)?Fv(a.formAction):_.getAttribute("formAction"),a!==null&&(p=a,_=null));var D=new cu("action","action",null,u,f);r.push({event:D,listeners:[{instance:null,listener:function(){if(u.defaultPrevented){if(Aa!==0){var k=_?Iv(f,_):new FormData(f);mm(l,{pending:!0,data:k,method:f.method,action:p},null,k)}}else typeof p=="function"&&(D.preventDefault(),k=_?Iv(f,_):new FormData(f),mm(l,{pending:!0,data:k,method:f.method,action:p},p,k))},currentTarget:f}]})}}for(var qm=0;qm<Nf.length;qm++){var Km=Nf[qm],M6=Km.toLowerCase(),R6=Km[0].toUpperCase()+Km.slice(1);fr(M6,"on"+R6)}fr(yg,"onAnimationEnd"),fr(gg,"onAnimationIteration"),fr(bg,"onAnimationStart"),fr("dblclick","onDoubleClick"),fr("focusin","onFocus"),fr("focusout","onBlur"),fr(qC,"onTransitionRun"),fr(KC,"onTransitionStart"),fr(WC,"onTransitionCancel"),fr(vg,"onTransitionEnd"),no("onMouseEnter",["mouseout","mouseover"]),no("onMouseLeave",["mouseout","mouseover"]),no("onPointerEnter",["pointerout","pointerover"]),no("onPointerLeave",["pointerout","pointerover"]),ai("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),ai("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),ai("onBeforeInput",["compositionend","keypress","textInput","paste"]),ai("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),ai("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),ai("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var Ql="abort canplay canplaythrough durationchange emptied encrypted ended error loadeddata loadedmetadata loadstart pause play playing progress ratechange resize seeked seeking stalled suspend timeupdate volumechange waiting".split(" "),O6=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(Ql));function jv(r,a){a=(a&4)!==0;for(var l=0;l<r.length;l++){var u=r[l],f=u.event;u=u.listeners;e:{var p=void 0;if(a)for(var _=u.length-1;0<=_;_--){var D=u[_],k=D.instance,K=D.currentTarget;if(D=D.listener,k!==p&&f.isPropagationStopped())break e;p=D,f.currentTarget=K;try{p(f)}catch(ae){mu(ae)}f.currentTarget=null,p=k}else for(_=0;_<u.length;_++){if(D=u[_],k=D.instance,K=D.currentTarget,D=D.listener,k!==p&&f.isPropagationStopped())break e;p=D,f.currentTarget=K;try{p(f)}catch(ae){mu(ae)}f.currentTarget=null,p=k}}}}function Qe(r,a){var l=a[sf];l===void 0&&(l=a[sf]=new Set);var u=r+"__bubble";l.has(u)||(zv(a,r,2,!1),l.add(u))}function Wm(r,a,l){var u=0;a&&(u|=4),zv(l,r,u,a)}var Xu="_reactListening"+Math.random().toString(36).slice(2);function Qm(r){if(!r[Xu]){r[Xu]=!0,ky.forEach(function(l){l!=="selectionchange"&&(O6.has(l)||Wm(l,!1,r),Wm(l,!0,r))});var a=r.nodeType===9?r:r.ownerDocument;a===null||a[Xu]||(a[Xu]=!0,Wm("selectionchange",!1,a))}}function zv(r,a,l,u){switch(y_(a)){case 2:var f=lA;break;case 8:f=sA;break;default:f=fp}l=f.bind(null,a,l,r),f=void 0,!gf||a!=="touchstart"&&a!=="touchmove"&&a!=="wheel"||(f=!0),u?f!==void 0?r.addEventListener(a,l,{capture:!0,passive:f}):r.addEventListener(a,l,!0):f!==void 0?r.addEventListener(a,l,{passive:f}):r.addEventListener(a,l,!1)}function Jm(r,a,l,u,f){var p=u;if((a&1)===0&&(a&2)===0&&u!==null)e:for(;;){if(u===null)return;var _=u.tag;if(_===3||_===4){var D=u.stateNode.containerInfo;if(D===f)break;if(_===4)for(_=u.return;_!==null;){var k=_.tag;if((k===3||k===4)&&_.stateNode.containerInfo===f)return;_=_.return}for(;D!==null;){if(_=Xi(D),_===null)return;if(k=_.tag,k===5||k===6||k===26||k===27){u=p=_;continue e}D=D.parentNode}}u=u.return}Zy(function(){var K=p,ae=hf(l),ce=[];e:{var Q=_g.get(r);if(Q!==void 0){var ee=cu,Me=r;switch(r){case"keypress":if(su(l)===0)break e;case"keydown":case"keyup":ee=CC;break;case"focusin":Me="focus",ee=Ef;break;case"focusout":Me="blur",ee=Ef;break;case"beforeblur":case"afterblur":ee=Ef;break;case"click":if(l.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":ee=Ky;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":ee=pC;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":ee=TC;break;case yg:case gg:case bg:ee=gC;break;case vg:ee=MC;break;case"scroll":case"scrollend":ee=fC;break;case"wheel":ee=OC;break;case"copy":case"cut":case"paste":ee=vC;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":ee=Qy;break;case"toggle":case"beforetoggle":ee=BC}var Ie=(a&4)!==0,gt=!Ie&&(r==="scroll"||r==="scrollend"),H=Ie?Q!==null?Q+"Capture":null:Q;Ie=[];for(var P=K,q;P!==null;){var le=P;if(q=le.stateNode,le=le.tag,le!==5&&le!==26&&le!==27||q===null||H===null||(le=vl(P,H),le!=null&&Ie.push(Jl(P,le,q))),gt)break;P=P.return}0<Ie.length&&(Q=new ee(Q,Me,null,l,ae),ce.push({event:Q,listeners:Ie}))}}if((a&7)===0){e:{if(Q=r==="mouseover"||r==="pointerover",ee=r==="mouseout"||r==="pointerout",Q&&l!==pf&&(Me=l.relatedTarget||l.fromElement)&&(Xi(Me)||Me[Ji]))break e;if((ee||Q)&&(Q=ae.window===ae?ae:(Q=ae.ownerDocument)?Q.defaultView||Q.parentWindow:window,ee?(Me=l.relatedTarget||l.toElement,ee=K,Me=Me?Xi(Me):null,Me!==null&&(gt=s(Me),Ie=Me.tag,Me!==gt||Ie!==5&&Ie!==27&&Ie!==6)&&(Me=null)):(ee=null,Me=K),ee!==Me)){if(Ie=Ky,le="onMouseLeave",H="onMouseEnter",P="mouse",(r==="pointerout"||r==="pointerover")&&(Ie=Qy,le="onPointerLeave",H="onPointerEnter",P="pointer"),gt=ee==null?Q:bl(ee),q=Me==null?Q:bl(Me),Q=new Ie(le,P+"leave",ee,l,ae),Q.target=gt,Q.relatedTarget=q,le=null,Xi(ae)===K&&(Ie=new Ie(H,P+"enter",Me,l,ae),Ie.target=q,Ie.relatedTarget=gt,le=Ie),gt=le,ee&&Me)t:{for(Ie=k6,H=ee,P=Me,q=0,le=H;le;le=Ie(le))q++;le=0;for(var Be=P;Be;Be=Ie(Be))le++;for(;0<q-le;)H=Ie(H),q--;for(;0<le-q;)P=Ie(P),le--;for(;q--;){if(H===P||P!==null&&H===P.alternate){Ie=H;break t}H=Ie(H),P=Ie(P)}Ie=null}else Ie=null;ee!==null&&Uv(ce,Q,ee,Ie,!1),Me!==null&>!==null&&Uv(ce,gt,Me,Ie,!0)}}e:{if(Q=K?bl(K):window,ee=Q.nodeName&&Q.nodeName.toLowerCase(),ee==="select"||ee==="input"&&Q.type==="file")var at=ig;else if(rg(Q))if(og)at=GC;else{at=HC;var Oe=UC}else ee=Q.nodeName,!ee||ee.toLowerCase()!=="input"||Q.type!=="checkbox"&&Q.type!=="radio"?K&&mf(K.elementType)&&(at=ig):at=VC;if(at&&(at=at(r,K))){ag(ce,at,l,ae);break e}Oe&&Oe(r,Q,K),r==="focusout"&&K&&Q.type==="number"&&K.memoizedProps.value!=null&&ff(Q,"number",Q.value)}switch(Oe=K?bl(K):window,r){case"focusin":(rg(Oe)||Oe.contentEditable==="true")&&(so=Oe,Af=K,Al=null);break;case"focusout":Al=Af=so=null;break;case"mousedown":wf=!0;break;case"contextmenu":case"mouseup":case"dragend":wf=!1,pg(ce,l,ae);break;case"selectionchange":if(YC)break;case"keydown":case"keyup":pg(ce,l,ae)}var Ze;if($f)e:{switch(r){case"compositionstart":var Xe="onCompositionStart";break e;case"compositionend":Xe="onCompositionEnd";break e;case"compositionupdate":Xe="onCompositionUpdate";break e}Xe=void 0}else lo?tg(r,l)&&(Xe="onCompositionEnd"):r==="keydown"&&l.keyCode===229&&(Xe="onCompositionStart");Xe&&(Jy&&l.locale!=="ko"&&(lo||Xe!=="onCompositionStart"?Xe==="onCompositionEnd"&&lo&&(Ze=Yy()):(da=ae,bf="value"in da?da.value:da.textContent,lo=!0)),Oe=ec(K,Xe),0<Oe.length&&(Xe=new Wy(Xe,r,null,l,ae),ce.push({event:Xe,listeners:Oe}),Ze?Xe.data=Ze:(Ze=ng(l),Ze!==null&&(Xe.data=Ze)))),(Ze=PC?FC(r,l):IC(r,l))&&(Xe=ec(K,"onBeforeInput"),0<Xe.length&&(Oe=new Wy("onBeforeInput","beforeinput",null,l,ae),ce.push({event:Oe,listeners:Xe}),Oe.data=Ze)),N6(ce,r,K,l,ae)}jv(ce,a)})}function Jl(r,a,l){return{instance:r,listener:a,currentTarget:l}}function ec(r,a){for(var l=a+"Capture",u=[];r!==null;){var f=r,p=f.stateNode;if(f=f.tag,f!==5&&f!==26&&f!==27||p===null||(f=vl(r,l),f!=null&&u.unshift(Jl(r,f,p)),f=vl(r,a),f!=null&&u.push(Jl(r,f,p))),r.tag===3)return u;r=r.return}return[]}function k6(r){if(r===null)return null;do r=r.return;while(r&&r.tag!==5&&r.tag!==27);return r||null}function Uv(r,a,l,u,f){for(var p=a._reactName,_=[];l!==null&&l!==u;){var D=l,k=D.alternate,K=D.stateNode;if(D=D.tag,k!==null&&k===u)break;D!==5&&D!==26&&D!==27||K===null||(k=K,f?(K=vl(l,p),K!=null&&_.unshift(Jl(l,K,k))):f||(K=vl(l,p),K!=null&&_.push(Jl(l,K,k)))),l=l.return}_.length!==0&&r.push({event:a,listeners:_})}var B6=/\r\n?/g,L6=/\u0000|\uFFFD/g;function Hv(r){return(typeof r=="string"?r:""+r).replace(B6,`
|
|
49
|
-
`).replace(L6,"")}function Vv(r,a){return a=Hv(a),Hv(r)===a}function yt(r,a,l,u,f,p){switch(l){case"children":typeof u=="string"?a==="body"||a==="textarea"&&u===""||ao(r,u):(typeof u=="number"||typeof u=="bigint")&&a!=="body"&&ao(r,""+u);break;case"className":au(r,"class",u);break;case"tabIndex":au(r,"tabindex",u);break;case"dir":case"role":case"viewBox":case"width":case"height":au(r,l,u);break;case"style":Vy(r,u,p);break;case"data":if(a!=="object"){au(r,"data",u);break}case"src":case"href":if(u===""&&(a!=="a"||l!=="href")){r.removeAttribute(l);break}if(u==null||typeof u=="function"||typeof u=="symbol"||typeof u=="boolean"){r.removeAttribute(l);break}u=ou(""+u),r.setAttribute(l,u);break;case"action":case"formAction":if(typeof u=="function"){r.setAttribute(l,"javascript:throw new Error('A React form was unexpectedly submitted. If you called form.submit() manually, consider using form.requestSubmit() instead. If you\\'re trying to use event.stopPropagation() in a submit event handler, consider also calling event.preventDefault().')");break}else typeof p=="function"&&(l==="formAction"?(a!=="input"&&yt(r,a,"name",f.name,f,null),yt(r,a,"formEncType",f.formEncType,f,null),yt(r,a,"formMethod",f.formMethod,f,null),yt(r,a,"formTarget",f.formTarget,f,null)):(yt(r,a,"encType",f.encType,f,null),yt(r,a,"method",f.method,f,null),yt(r,a,"target",f.target,f,null)));if(u==null||typeof u=="symbol"||typeof u=="boolean"){r.removeAttribute(l);break}u=ou(""+u),r.setAttribute(l,u);break;case"onClick":u!=null&&(r.onclick=Mr);break;case"onScroll":u!=null&&Qe("scroll",r);break;case"onScrollEnd":u!=null&&Qe("scrollend",r);break;case"dangerouslySetInnerHTML":if(u!=null){if(typeof u!="object"||!("__html"in u))throw Error(i(61));if(l=u.__html,l!=null){if(f.children!=null)throw Error(i(60));r.innerHTML=l}}break;case"multiple":r.multiple=u&&typeof u!="function"&&typeof u!="symbol";break;case"muted":r.muted=u&&typeof u!="function"&&typeof u!="symbol";break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":break;case"autoFocus":break;case"xlinkHref":if(u==null||typeof u=="function"||typeof u=="boolean"||typeof u=="symbol"){r.removeAttribute("xlink:href");break}l=ou(""+u),r.setAttributeNS("http://www.w3.org/1999/xlink","xlink:href",l);break;case"contentEditable":case"spellCheck":case"draggable":case"value":case"autoReverse":case"externalResourcesRequired":case"focusable":case"preserveAlpha":u!=null&&typeof u!="function"&&typeof u!="symbol"?r.setAttribute(l,""+u):r.removeAttribute(l);break;case"inert":case"allowFullScreen":case"async":case"autoPlay":case"controls":case"default":case"defer":case"disabled":case"disablePictureInPicture":case"disableRemotePlayback":case"formNoValidate":case"hidden":case"loop":case"noModule":case"noValidate":case"open":case"playsInline":case"readOnly":case"required":case"reversed":case"scoped":case"seamless":case"itemScope":u&&typeof u!="function"&&typeof u!="symbol"?r.setAttribute(l,""):r.removeAttribute(l);break;case"capture":case"download":u===!0?r.setAttribute(l,""):u!==!1&&u!=null&&typeof u!="function"&&typeof u!="symbol"?r.setAttribute(l,u):r.removeAttribute(l);break;case"cols":case"rows":case"size":case"span":u!=null&&typeof u!="function"&&typeof u!="symbol"&&!isNaN(u)&&1<=u?r.setAttribute(l,u):r.removeAttribute(l);break;case"rowSpan":case"start":u==null||typeof u=="function"||typeof u=="symbol"||isNaN(u)?r.removeAttribute(l):r.setAttribute(l,u);break;case"popover":Qe("beforetoggle",r),Qe("toggle",r),ru(r,"popover",u);break;case"xlinkActuate":Nr(r,"http://www.w3.org/1999/xlink","xlink:actuate",u);break;case"xlinkArcrole":Nr(r,"http://www.w3.org/1999/xlink","xlink:arcrole",u);break;case"xlinkRole":Nr(r,"http://www.w3.org/1999/xlink","xlink:role",u);break;case"xlinkShow":Nr(r,"http://www.w3.org/1999/xlink","xlink:show",u);break;case"xlinkTitle":Nr(r,"http://www.w3.org/1999/xlink","xlink:title",u);break;case"xlinkType":Nr(r,"http://www.w3.org/1999/xlink","xlink:type",u);break;case"xmlBase":Nr(r,"http://www.w3.org/XML/1998/namespace","xml:base",u);break;case"xmlLang":Nr(r,"http://www.w3.org/XML/1998/namespace","xml:lang",u);break;case"xmlSpace":Nr(r,"http://www.w3.org/XML/1998/namespace","xml:space",u);break;case"is":ru(r,"is",u);break;case"innerText":case"textContent":break;default:(!(2<l.length)||l[0]!=="o"&&l[0]!=="O"||l[1]!=="n"&&l[1]!=="N")&&(l=cC.get(l)||l,ru(r,l,u))}}function Xm(r,a,l,u,f,p){switch(l){case"style":Vy(r,u,p);break;case"dangerouslySetInnerHTML":if(u!=null){if(typeof u!="object"||!("__html"in u))throw Error(i(61));if(l=u.__html,l!=null){if(f.children!=null)throw Error(i(60));r.innerHTML=l}}break;case"children":typeof u=="string"?ao(r,u):(typeof u=="number"||typeof u=="bigint")&&ao(r,""+u);break;case"onScroll":u!=null&&Qe("scroll",r);break;case"onScrollEnd":u!=null&&Qe("scrollend",r);break;case"onClick":u!=null&&(r.onclick=Mr);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"innerHTML":case"ref":break;case"innerText":case"textContent":break;default:if(!By.hasOwnProperty(l))e:{if(l[0]==="o"&&l[1]==="n"&&(f=l.endsWith("Capture"),a=l.slice(2,f?l.length-7:void 0),p=r[yn]||null,p=p!=null?p[l]:null,typeof p=="function"&&r.removeEventListener(a,p,f),typeof u=="function")){typeof p!="function"&&p!==null&&(l in r?r[l]=null:r.hasAttribute(l)&&r.removeAttribute(l)),r.addEventListener(a,u,f);break e}l in r?r[l]=u:u===!0?r.setAttribute(l,""):ru(r,l,u)}}}function tn(r,a,l){switch(a){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"img":Qe("error",r),Qe("load",r);var u=!1,f=!1,p;for(p in l)if(l.hasOwnProperty(p)){var _=l[p];if(_!=null)switch(p){case"src":u=!0;break;case"srcSet":f=!0;break;case"children":case"dangerouslySetInnerHTML":throw Error(i(137,a));default:yt(r,a,p,_,l,null)}}f&&yt(r,a,"srcSet",l.srcSet,l,null),u&&yt(r,a,"src",l.src,l,null);return;case"input":Qe("invalid",r);var D=p=_=f=null,k=null,K=null;for(u in l)if(l.hasOwnProperty(u)){var ae=l[u];if(ae!=null)switch(u){case"name":f=ae;break;case"type":_=ae;break;case"checked":k=ae;break;case"defaultChecked":K=ae;break;case"value":p=ae;break;case"defaultValue":D=ae;break;case"children":case"dangerouslySetInnerHTML":if(ae!=null)throw Error(i(137,a));break;default:yt(r,a,u,ae,l,null)}}jy(r,p,D,k,K,_,f,!1);return;case"select":Qe("invalid",r),u=_=p=null;for(f in l)if(l.hasOwnProperty(f)&&(D=l[f],D!=null))switch(f){case"value":p=D;break;case"defaultValue":_=D;break;case"multiple":u=D;default:yt(r,a,f,D,l,null)}a=p,l=_,r.multiple=!!u,a!=null?ro(r,!!u,a,!1):l!=null&&ro(r,!!u,l,!0);return;case"textarea":Qe("invalid",r),p=f=u=null;for(_ in l)if(l.hasOwnProperty(_)&&(D=l[_],D!=null))switch(_){case"value":u=D;break;case"defaultValue":f=D;break;case"children":p=D;break;case"dangerouslySetInnerHTML":if(D!=null)throw Error(i(91));break;default:yt(r,a,_,D,l,null)}Uy(r,u,f,p);return;case"option":for(k in l)if(l.hasOwnProperty(k)&&(u=l[k],u!=null))switch(k){case"selected":r.selected=u&&typeof u!="function"&&typeof u!="symbol";break;default:yt(r,a,k,u,l,null)}return;case"dialog":Qe("beforetoggle",r),Qe("toggle",r),Qe("cancel",r),Qe("close",r);break;case"iframe":case"object":Qe("load",r);break;case"video":case"audio":for(u=0;u<Ql.length;u++)Qe(Ql[u],r);break;case"image":Qe("error",r),Qe("load",r);break;case"details":Qe("toggle",r);break;case"embed":case"source":case"link":Qe("error",r),Qe("load",r);case"area":case"base":case"br":case"col":case"hr":case"keygen":case"meta":case"param":case"track":case"wbr":case"menuitem":for(K in l)if(l.hasOwnProperty(K)&&(u=l[K],u!=null))switch(K){case"children":case"dangerouslySetInnerHTML":throw Error(i(137,a));default:yt(r,a,K,u,l,null)}return;default:if(mf(a)){for(ae in l)l.hasOwnProperty(ae)&&(u=l[ae],u!==void 0&&Xm(r,a,ae,u,l,void 0));return}}for(D in l)l.hasOwnProperty(D)&&(u=l[D],u!=null&&yt(r,a,D,u,l,null))}function P6(r,a,l,u){switch(a){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"input":var f=null,p=null,_=null,D=null,k=null,K=null,ae=null;for(ee in l){var ce=l[ee];if(l.hasOwnProperty(ee)&&ce!=null)switch(ee){case"checked":break;case"value":break;case"defaultValue":k=ce;default:u.hasOwnProperty(ee)||yt(r,a,ee,null,u,ce)}}for(var Q in u){var ee=u[Q];if(ce=l[Q],u.hasOwnProperty(Q)&&(ee!=null||ce!=null))switch(Q){case"type":p=ee;break;case"name":f=ee;break;case"checked":K=ee;break;case"defaultChecked":ae=ee;break;case"value":_=ee;break;case"defaultValue":D=ee;break;case"children":case"dangerouslySetInnerHTML":if(ee!=null)throw Error(i(137,a));break;default:ee!==ce&&yt(r,a,Q,ee,u,ce)}}df(r,_,D,k,K,ae,p,f);return;case"select":ee=_=D=Q=null;for(p in l)if(k=l[p],l.hasOwnProperty(p)&&k!=null)switch(p){case"value":break;case"multiple":ee=k;default:u.hasOwnProperty(p)||yt(r,a,p,null,u,k)}for(f in u)if(p=u[f],k=l[f],u.hasOwnProperty(f)&&(p!=null||k!=null))switch(f){case"value":Q=p;break;case"defaultValue":D=p;break;case"multiple":_=p;default:p!==k&&yt(r,a,f,p,u,k)}a=D,l=_,u=ee,Q!=null?ro(r,!!l,Q,!1):!!u!=!!l&&(a!=null?ro(r,!!l,a,!0):ro(r,!!l,l?[]:"",!1));return;case"textarea":ee=Q=null;for(D in l)if(f=l[D],l.hasOwnProperty(D)&&f!=null&&!u.hasOwnProperty(D))switch(D){case"value":break;case"children":break;default:yt(r,a,D,null,u,f)}for(_ in u)if(f=u[_],p=l[_],u.hasOwnProperty(_)&&(f!=null||p!=null))switch(_){case"value":Q=f;break;case"defaultValue":ee=f;break;case"children":break;case"dangerouslySetInnerHTML":if(f!=null)throw Error(i(91));break;default:f!==p&&yt(r,a,_,f,u,p)}zy(r,Q,ee);return;case"option":for(var Me in l)if(Q=l[Me],l.hasOwnProperty(Me)&&Q!=null&&!u.hasOwnProperty(Me))switch(Me){case"selected":r.selected=!1;break;default:yt(r,a,Me,null,u,Q)}for(k in u)if(Q=u[k],ee=l[k],u.hasOwnProperty(k)&&Q!==ee&&(Q!=null||ee!=null))switch(k){case"selected":r.selected=Q&&typeof Q!="function"&&typeof Q!="symbol";break;default:yt(r,a,k,Q,u,ee)}return;case"img":case"link":case"area":case"base":case"br":case"col":case"embed":case"hr":case"keygen":case"meta":case"param":case"source":case"track":case"wbr":case"menuitem":for(var Ie in l)Q=l[Ie],l.hasOwnProperty(Ie)&&Q!=null&&!u.hasOwnProperty(Ie)&&yt(r,a,Ie,null,u,Q);for(K in u)if(Q=u[K],ee=l[K],u.hasOwnProperty(K)&&Q!==ee&&(Q!=null||ee!=null))switch(K){case"children":case"dangerouslySetInnerHTML":if(Q!=null)throw Error(i(137,a));break;default:yt(r,a,K,Q,u,ee)}return;default:if(mf(a)){for(var gt in l)Q=l[gt],l.hasOwnProperty(gt)&&Q!==void 0&&!u.hasOwnProperty(gt)&&Xm(r,a,gt,void 0,u,Q);for(ae in u)Q=u[ae],ee=l[ae],!u.hasOwnProperty(ae)||Q===ee||Q===void 0&&ee===void 0||Xm(r,a,ae,Q,u,ee);return}}for(var H in l)Q=l[H],l.hasOwnProperty(H)&&Q!=null&&!u.hasOwnProperty(H)&&yt(r,a,H,null,u,Q);for(ce in u)Q=u[ce],ee=l[ce],!u.hasOwnProperty(ce)||Q===ee||Q==null&&ee==null||yt(r,a,ce,Q,u,ee)}function Gv(r){switch(r){case"css":case"script":case"font":case"img":case"image":case"input":case"link":return!0;default:return!1}}function F6(){if(typeof performance.getEntriesByType=="function"){for(var r=0,a=0,l=performance.getEntriesByType("resource"),u=0;u<l.length;u++){var f=l[u],p=f.transferSize,_=f.initiatorType,D=f.duration;if(p&&D&&Gv(_)){for(_=0,D=f.responseEnd,u+=1;u<l.length;u++){var k=l[u],K=k.startTime;if(K>D)break;var ae=k.transferSize,ce=k.initiatorType;ae&&Gv(ce)&&(k=k.responseEnd,_+=ae*(k<D?1:(D-K)/(k-K)))}if(--u,a+=8*(p+_)/(f.duration/1e3),r++,10<r)break}}if(0<r)return a/r/1e6}return navigator.connection&&(r=navigator.connection.downlink,typeof r=="number")?r:5}var ep=null,tp=null;function tc(r){return r.nodeType===9?r:r.ownerDocument}function Zv(r){switch(r){case"http://www.w3.org/2000/svg":return 1;case"http://www.w3.org/1998/Math/MathML":return 2;default:return 0}}function Yv(r,a){if(r===0)switch(a){case"svg":return 1;case"math":return 2;default:return 0}return r===1&&a==="foreignObject"?0:r}function np(r,a){return r==="textarea"||r==="noscript"||typeof a.children=="string"||typeof a.children=="number"||typeof a.children=="bigint"||typeof a.dangerouslySetInnerHTML=="object"&&a.dangerouslySetInnerHTML!==null&&a.dangerouslySetInnerHTML.__html!=null}var rp=null;function I6(){var r=window.event;return r&&r.type==="popstate"?r===rp?!1:(rp=r,!0):(rp=null,!1)}var qv=typeof setTimeout=="function"?setTimeout:void 0,j6=typeof clearTimeout=="function"?clearTimeout:void 0,Kv=typeof Promise=="function"?Promise:void 0,z6=typeof queueMicrotask=="function"?queueMicrotask:typeof Kv<"u"?function(r){return Kv.resolve(null).then(r).catch(U6)}:qv;function U6(r){setTimeout(function(){throw r})}function wa(r){return r==="head"}function Wv(r,a){var l=a,u=0;do{var f=l.nextSibling;if(r.removeChild(l),f&&f.nodeType===8)if(l=f.data,l==="/$"||l==="/&"){if(u===0){r.removeChild(f),Lo(a);return}u--}else if(l==="$"||l==="$?"||l==="$~"||l==="$!"||l==="&")u++;else if(l==="html")Xl(r.ownerDocument.documentElement);else if(l==="head"){l=r.ownerDocument.head,Xl(l);for(var p=l.firstChild;p;){var _=p.nextSibling,D=p.nodeName;p[gl]||D==="SCRIPT"||D==="STYLE"||D==="LINK"&&p.rel.toLowerCase()==="stylesheet"||l.removeChild(p),p=_}}else l==="body"&&Xl(r.ownerDocument.body);l=f}while(l);Lo(a)}function Qv(r,a){var l=r;r=0;do{var u=l.nextSibling;if(l.nodeType===1?a?(l._stashedDisplay=l.style.display,l.style.display="none"):(l.style.display=l._stashedDisplay||"",l.getAttribute("style")===""&&l.removeAttribute("style")):l.nodeType===3&&(a?(l._stashedText=l.nodeValue,l.nodeValue=""):l.nodeValue=l._stashedText||""),u&&u.nodeType===8)if(l=u.data,l==="/$"){if(r===0)break;r--}else l!=="$"&&l!=="$?"&&l!=="$~"&&l!=="$!"||r++;l=u}while(l)}function ap(r){var a=r.firstChild;for(a&&a.nodeType===10&&(a=a.nextSibling);a;){var l=a;switch(a=a.nextSibling,l.nodeName){case"HTML":case"HEAD":case"BODY":ap(l),uf(l);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if(l.rel.toLowerCase()==="stylesheet")continue}r.removeChild(l)}}function H6(r,a,l,u){for(;r.nodeType===1;){var f=l;if(r.nodeName.toLowerCase()!==a.toLowerCase()){if(!u&&(r.nodeName!=="INPUT"||r.type!=="hidden"))break}else if(u){if(!r[gl])switch(a){case"meta":if(!r.hasAttribute("itemprop"))break;return r;case"link":if(p=r.getAttribute("rel"),p==="stylesheet"&&r.hasAttribute("data-precedence"))break;if(p!==f.rel||r.getAttribute("href")!==(f.href==null||f.href===""?null:f.href)||r.getAttribute("crossorigin")!==(f.crossOrigin==null?null:f.crossOrigin)||r.getAttribute("title")!==(f.title==null?null:f.title))break;return r;case"style":if(r.hasAttribute("data-precedence"))break;return r;case"script":if(p=r.getAttribute("src"),(p!==(f.src==null?null:f.src)||r.getAttribute("type")!==(f.type==null?null:f.type)||r.getAttribute("crossorigin")!==(f.crossOrigin==null?null:f.crossOrigin))&&p&&r.hasAttribute("async")&&!r.hasAttribute("itemprop"))break;return r;default:return r}}else if(a==="input"&&r.type==="hidden"){var p=f.name==null?null:""+f.name;if(f.type==="hidden"&&r.getAttribute("name")===p)return r}else return r;if(r=Xn(r.nextSibling),r===null)break}return null}function V6(r,a,l){if(a==="")return null;for(;r.nodeType!==3;)if((r.nodeType!==1||r.nodeName!=="INPUT"||r.type!=="hidden")&&!l||(r=Xn(r.nextSibling),r===null))return null;return r}function Jv(r,a){for(;r.nodeType!==8;)if((r.nodeType!==1||r.nodeName!=="INPUT"||r.type!=="hidden")&&!a||(r=Xn(r.nextSibling),r===null))return null;return r}function ip(r){return r.data==="$?"||r.data==="$~"}function op(r){return r.data==="$!"||r.data==="$?"&&r.ownerDocument.readyState!=="loading"}function G6(r,a){var l=r.ownerDocument;if(r.data==="$~")r._reactRetry=a;else if(r.data!=="$?"||l.readyState!=="loading")a();else{var u=function(){a(),l.removeEventListener("DOMContentLoaded",u)};l.addEventListener("DOMContentLoaded",u),r._reactRetry=u}}function Xn(r){for(;r!=null;r=r.nextSibling){var a=r.nodeType;if(a===1||a===3)break;if(a===8){if(a=r.data,a==="$"||a==="$!"||a==="$?"||a==="$~"||a==="&"||a==="F!"||a==="F")break;if(a==="/$"||a==="/&")return null}}return r}var lp=null;function Xv(r){r=r.nextSibling;for(var a=0;r;){if(r.nodeType===8){var l=r.data;if(l==="/$"||l==="/&"){if(a===0)return Xn(r.nextSibling);a--}else l!=="$"&&l!=="$!"&&l!=="$?"&&l!=="$~"&&l!=="&"||a++}r=r.nextSibling}return null}function e_(r){r=r.previousSibling;for(var a=0;r;){if(r.nodeType===8){var l=r.data;if(l==="$"||l==="$!"||l==="$?"||l==="$~"||l==="&"){if(a===0)return r;a--}else l!=="/$"&&l!=="/&"||a++}r=r.previousSibling}return null}function t_(r,a,l){switch(a=tc(l),r){case"html":if(r=a.documentElement,!r)throw Error(i(452));return r;case"head":if(r=a.head,!r)throw Error(i(453));return r;case"body":if(r=a.body,!r)throw Error(i(454));return r;default:throw Error(i(451))}}function Xl(r){for(var a=r.attributes;a.length;)r.removeAttributeNode(a[0]);uf(r)}var er=new Map,n_=new Set;function nc(r){return typeof r.getRootNode=="function"?r.getRootNode():r.nodeType===9?r:r.ownerDocument}var Yr=B.d;B.d={f:Z6,r:Y6,D:q6,C:K6,L:W6,m:Q6,X:X6,S:J6,M:eA};function Z6(){var r=Yr.f(),a=Yu();return r||a}function Y6(r){var a=eo(r);a!==null&&a.tag===5&&a.type==="form"?vb(a):Yr.r(r)}var Oo=typeof document>"u"?null:document;function r_(r,a,l){var u=Oo;if(u&&typeof a=="string"&&a){var f=Zn(a);f='link[rel="'+r+'"][href="'+f+'"]',typeof l=="string"&&(f+='[crossorigin="'+l+'"]'),n_.has(f)||(n_.add(f),r={rel:r,crossOrigin:l,href:a},u.querySelector(f)===null&&(a=u.createElement("link"),tn(a,"link",r),Kt(a),u.head.appendChild(a)))}}function q6(r){Yr.D(r),r_("dns-prefetch",r,null)}function K6(r,a){Yr.C(r,a),r_("preconnect",r,a)}function W6(r,a,l){Yr.L(r,a,l);var u=Oo;if(u&&r&&a){var f='link[rel="preload"][as="'+Zn(a)+'"]';a==="image"&&l&&l.imageSrcSet?(f+='[imagesrcset="'+Zn(l.imageSrcSet)+'"]',typeof l.imageSizes=="string"&&(f+='[imagesizes="'+Zn(l.imageSizes)+'"]')):f+='[href="'+Zn(r)+'"]';var p=f;switch(a){case"style":p=ko(r);break;case"script":p=Bo(r)}er.has(p)||(r=g({rel:"preload",href:a==="image"&&l&&l.imageSrcSet?void 0:r,as:a},l),er.set(p,r),u.querySelector(f)!==null||a==="style"&&u.querySelector(es(p))||a==="script"&&u.querySelector(ts(p))||(a=u.createElement("link"),tn(a,"link",r),Kt(a),u.head.appendChild(a)))}}function Q6(r,a){Yr.m(r,a);var l=Oo;if(l&&r){var u=a&&typeof a.as=="string"?a.as:"script",f='link[rel="modulepreload"][as="'+Zn(u)+'"][href="'+Zn(r)+'"]',p=f;switch(u){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":p=Bo(r)}if(!er.has(p)&&(r=g({rel:"modulepreload",href:r},a),er.set(p,r),l.querySelector(f)===null)){switch(u){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(l.querySelector(ts(p)))return}u=l.createElement("link"),tn(u,"link",r),Kt(u),l.head.appendChild(u)}}}function J6(r,a,l){Yr.S(r,a,l);var u=Oo;if(u&&r){var f=to(u).hoistableStyles,p=ko(r);a=a||"default";var _=f.get(p);if(!_){var D={loading:0,preload:null};if(_=u.querySelector(es(p)))D.loading=5;else{r=g({rel:"stylesheet",href:r,"data-precedence":a},l),(l=er.get(p))&&sp(r,l);var k=_=u.createElement("link");Kt(k),tn(k,"link",r),k._p=new Promise(function(K,ae){k.onload=K,k.onerror=ae}),k.addEventListener("load",function(){D.loading|=1}),k.addEventListener("error",function(){D.loading|=2}),D.loading|=4,rc(_,a,u)}_={type:"stylesheet",instance:_,count:1,state:D},f.set(p,_)}}}function X6(r,a){Yr.X(r,a);var l=Oo;if(l&&r){var u=to(l).hoistableScripts,f=Bo(r),p=u.get(f);p||(p=l.querySelector(ts(f)),p||(r=g({src:r,async:!0},a),(a=er.get(f))&&up(r,a),p=l.createElement("script"),Kt(p),tn(p,"link",r),l.head.appendChild(p)),p={type:"script",instance:p,count:1,state:null},u.set(f,p))}}function eA(r,a){Yr.M(r,a);var l=Oo;if(l&&r){var u=to(l).hoistableScripts,f=Bo(r),p=u.get(f);p||(p=l.querySelector(ts(f)),p||(r=g({src:r,async:!0,type:"module"},a),(a=er.get(f))&&up(r,a),p=l.createElement("script"),Kt(p),tn(p,"link",r),l.head.appendChild(p)),p={type:"script",instance:p,count:1,state:null},u.set(f,p))}}function a_(r,a,l,u){var f=(f=z.current)?nc(f):null;if(!f)throw Error(i(446));switch(r){case"meta":case"title":return null;case"style":return typeof l.precedence=="string"&&typeof l.href=="string"?(a=ko(l.href),l=to(f).hoistableStyles,u=l.get(a),u||(u={type:"style",instance:null,count:0,state:null},l.set(a,u)),u):{type:"void",instance:null,count:0,state:null};case"link":if(l.rel==="stylesheet"&&typeof l.href=="string"&&typeof l.precedence=="string"){r=ko(l.href);var p=to(f).hoistableStyles,_=p.get(r);if(_||(f=f.ownerDocument||f,_={type:"stylesheet",instance:null,count:0,state:{loading:0,preload:null}},p.set(r,_),(p=f.querySelector(es(r)))&&!p._p&&(_.instance=p,_.state.loading=5),er.has(r)||(l={rel:"preload",as:"style",href:l.href,crossOrigin:l.crossOrigin,integrity:l.integrity,media:l.media,hrefLang:l.hrefLang,referrerPolicy:l.referrerPolicy},er.set(r,l),p||tA(f,r,l,_.state))),a&&u===null)throw Error(i(528,""));return _}if(a&&u!==null)throw Error(i(529,""));return null;case"script":return a=l.async,l=l.src,typeof l=="string"&&a&&typeof a!="function"&&typeof a!="symbol"?(a=Bo(l),l=to(f).hoistableScripts,u=l.get(a),u||(u={type:"script",instance:null,count:0,state:null},l.set(a,u)),u):{type:"void",instance:null,count:0,state:null};default:throw Error(i(444,r))}}function ko(r){return'href="'+Zn(r)+'"'}function es(r){return'link[rel="stylesheet"]['+r+"]"}function i_(r){return g({},r,{"data-precedence":r.precedence,precedence:null})}function tA(r,a,l,u){r.querySelector('link[rel="preload"][as="style"]['+a+"]")?u.loading=1:(a=r.createElement("link"),u.preload=a,a.addEventListener("load",function(){return u.loading|=1}),a.addEventListener("error",function(){return u.loading|=2}),tn(a,"link",l),Kt(a),r.head.appendChild(a))}function Bo(r){return'[src="'+Zn(r)+'"]'}function ts(r){return"script[async]"+r}function o_(r,a,l){if(a.count++,a.instance===null)switch(a.type){case"style":var u=r.querySelector('style[data-href~="'+Zn(l.href)+'"]');if(u)return a.instance=u,Kt(u),u;var f=g({},l,{"data-href":l.href,"data-precedence":l.precedence,href:null,precedence:null});return u=(r.ownerDocument||r).createElement("style"),Kt(u),tn(u,"style",f),rc(u,l.precedence,r),a.instance=u;case"stylesheet":f=ko(l.href);var p=r.querySelector(es(f));if(p)return a.state.loading|=4,a.instance=p,Kt(p),p;u=i_(l),(f=er.get(f))&&sp(u,f),p=(r.ownerDocument||r).createElement("link"),Kt(p);var _=p;return _._p=new Promise(function(D,k){_.onload=D,_.onerror=k}),tn(p,"link",u),a.state.loading|=4,rc(p,l.precedence,r),a.instance=p;case"script":return p=Bo(l.src),(f=r.querySelector(ts(p)))?(a.instance=f,Kt(f),f):(u=l,(f=er.get(p))&&(u=g({},l),up(u,f)),r=r.ownerDocument||r,f=r.createElement("script"),Kt(f),tn(f,"link",u),r.head.appendChild(f),a.instance=f);case"void":return null;default:throw Error(i(443,a.type))}else a.type==="stylesheet"&&(a.state.loading&4)===0&&(u=a.instance,a.state.loading|=4,rc(u,l.precedence,r));return a.instance}function rc(r,a,l){for(var u=l.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),f=u.length?u[u.length-1]:null,p=f,_=0;_<u.length;_++){var D=u[_];if(D.dataset.precedence===a)p=D;else if(p!==f)break}p?p.parentNode.insertBefore(r,p.nextSibling):(a=l.nodeType===9?l.head:l,a.insertBefore(r,a.firstChild))}function sp(r,a){r.crossOrigin==null&&(r.crossOrigin=a.crossOrigin),r.referrerPolicy==null&&(r.referrerPolicy=a.referrerPolicy),r.title==null&&(r.title=a.title)}function up(r,a){r.crossOrigin==null&&(r.crossOrigin=a.crossOrigin),r.referrerPolicy==null&&(r.referrerPolicy=a.referrerPolicy),r.integrity==null&&(r.integrity=a.integrity)}var ac=null;function l_(r,a,l){if(ac===null){var u=new Map,f=ac=new Map;f.set(l,u)}else f=ac,u=f.get(l),u||(u=new Map,f.set(l,u));if(u.has(r))return u;for(u.set(r,null),l=l.getElementsByTagName(r),f=0;f<l.length;f++){var p=l[f];if(!(p[gl]||p[Qt]||r==="link"&&p.getAttribute("rel")==="stylesheet")&&p.namespaceURI!=="http://www.w3.org/2000/svg"){var _=p.getAttribute(a)||"";_=r+_;var D=u.get(_);D?D.push(p):u.set(_,[p])}}return u}function s_(r,a,l){r=r.ownerDocument||r,r.head.insertBefore(l,a==="title"?r.querySelector("head > title"):null)}function nA(r,a,l){if(l===1||a.itemProp!=null)return!1;switch(r){case"meta":case"title":return!0;case"style":if(typeof a.precedence!="string"||typeof a.href!="string"||a.href==="")break;return!0;case"link":if(typeof a.rel!="string"||typeof a.href!="string"||a.href===""||a.onLoad||a.onError)break;switch(a.rel){case"stylesheet":return r=a.disabled,typeof a.precedence=="string"&&r==null;default:return!0}case"script":if(a.async&&typeof a.async!="function"&&typeof a.async!="symbol"&&!a.onLoad&&!a.onError&&a.src&&typeof a.src=="string")return!0}return!1}function u_(r){return!(r.type==="stylesheet"&&(r.state.loading&3)===0)}function rA(r,a,l,u){if(l.type==="stylesheet"&&(typeof u.media!="string"||matchMedia(u.media).matches!==!1)&&(l.state.loading&4)===0){if(l.instance===null){var f=ko(u.href),p=a.querySelector(es(f));if(p){a=p._p,a!==null&&typeof a=="object"&&typeof a.then=="function"&&(r.count++,r=ic.bind(r),a.then(r,r)),l.state.loading|=4,l.instance=p,Kt(p);return}p=a.ownerDocument||a,u=i_(u),(f=er.get(f))&&sp(u,f),p=p.createElement("link"),Kt(p);var _=p;_._p=new Promise(function(D,k){_.onload=D,_.onerror=k}),tn(p,"link",u),l.instance=p}r.stylesheets===null&&(r.stylesheets=new Map),r.stylesheets.set(l,a),(a=l.state.preload)&&(l.state.loading&3)===0&&(r.count++,l=ic.bind(r),a.addEventListener("load",l),a.addEventListener("error",l))}}var cp=0;function aA(r,a){return r.stylesheets&&r.count===0&&lc(r,r.stylesheets),0<r.count||0<r.imgCount?function(l){var u=setTimeout(function(){if(r.stylesheets&&lc(r,r.stylesheets),r.unsuspend){var p=r.unsuspend;r.unsuspend=null,p()}},6e4+a);0<r.imgBytes&&cp===0&&(cp=62500*F6());var f=setTimeout(function(){if(r.waitingForImages=!1,r.count===0&&(r.stylesheets&&lc(r,r.stylesheets),r.unsuspend)){var p=r.unsuspend;r.unsuspend=null,p()}},(r.imgBytes>cp?50:800)+a);return r.unsuspend=l,function(){r.unsuspend=null,clearTimeout(u),clearTimeout(f)}}:null}function ic(){if(this.count--,this.count===0&&(this.imgCount===0||!this.waitingForImages)){if(this.stylesheets)lc(this,this.stylesheets);else if(this.unsuspend){var r=this.unsuspend;this.unsuspend=null,r()}}}var oc=null;function lc(r,a){r.stylesheets=null,r.unsuspend!==null&&(r.count++,oc=new Map,a.forEach(iA,r),oc=null,ic.call(r))}function iA(r,a){if(!(a.state.loading&4)){var l=oc.get(r);if(l)var u=l.get(null);else{l=new Map,oc.set(r,l);for(var f=r.querySelectorAll("link[data-precedence],style[data-precedence]"),p=0;p<f.length;p++){var _=f[p];(_.nodeName==="LINK"||_.getAttribute("media")!=="not all")&&(l.set(_.dataset.precedence,_),u=_)}u&&l.set(null,u)}f=a.instance,_=f.getAttribute("data-precedence"),p=l.get(_)||u,p===u&&l.set(null,f),l.set(_,f),this.count++,u=ic.bind(this),f.addEventListener("load",u),f.addEventListener("error",u),p?p.parentNode.insertBefore(f,p.nextSibling):(r=r.nodeType===9?r.head:r,r.insertBefore(f,r.firstChild)),a.state.loading|=4}}var ns={$$typeof:A,Provider:null,Consumer:null,_currentValue:X,_currentValue2:X,_threadCount:0};function oA(r,a,l,u,f,p,_,D,k){this.tag=1,this.containerInfo=r,this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.next=this.pendingContext=this.context=this.cancelPendingCommit=null,this.callbackPriority=0,this.expirationTimes=ua(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=ua(0),this.hiddenUpdates=ua(null),this.identifierPrefix=u,this.onUncaughtError=f,this.onCaughtError=p,this.onRecoverableError=_,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=k,this.incompleteTransitions=new Map}function c_(r,a,l,u,f,p,_,D,k,K,ae,ce){return r=new oA(r,a,l,_,k,K,ae,ce,D),a=1,p===!0&&(a|=24),p=kn(3,null,null,a),r.current=p,p.stateNode=r,a=Hf(),a.refCount++,r.pooledCache=a,a.refCount++,p.memoizedState={element:u,isDehydrated:l,cache:a},Yf(p),r}function d_(r){return r?(r=fo,r):fo}function f_(r,a,l,u,f,p){f=d_(f),u.context===null?u.context=f:u.pendingContext=f,u=ga(a),u.payload={element:l},p=p===void 0?null:p,p!==null&&(u.callback=p),l=ba(r,u,a),l!==null&&(Sn(l,r,a),kl(l,r,a))}function m_(r,a){if(r=r.memoizedState,r!==null&&r.dehydrated!==null){var l=r.retryLane;r.retryLane=l!==0&&l<a?l:a}}function dp(r,a){m_(r,a),(r=r.alternate)&&m_(r,a)}function p_(r){if(r.tag===13||r.tag===31){var a=si(r,67108864);a!==null&&Sn(a,r,67108864),dp(r,67108864)}}function h_(r){if(r.tag===13||r.tag===31){var a=In();a=dr(a);var l=si(r,a);l!==null&&Sn(l,r,a),dp(r,a)}}var sc=!0;function lA(r,a,l,u){var f=O.T;O.T=null;var p=B.p;try{B.p=2,fp(r,a,l,u)}finally{B.p=p,O.T=f}}function sA(r,a,l,u){var f=O.T;O.T=null;var p=B.p;try{B.p=8,fp(r,a,l,u)}finally{B.p=p,O.T=f}}function fp(r,a,l,u){if(sc){var f=mp(u);if(f===null)Jm(r,a,u,uc,l),g_(r,u);else if(cA(f,r,a,l,u))u.stopPropagation();else if(g_(r,u),a&4&&-1<uA.indexOf(r)){for(;f!==null;){var p=eo(f);if(p!==null)switch(p.tag){case 3:if(p=p.stateNode,p.current.memoizedState.isDehydrated){var _=Vn(p.pendingLanes);if(_!==0){var D=p;for(D.pendingLanes|=2,D.entangledLanes|=2;_;){var k=1<<31-Ye(_);D.entanglements[1]|=k,_&=~k}Sr(p),(lt&6)===0&&(Gu=oe()+500,Wl(0))}}break;case 31:case 13:D=si(p,2),D!==null&&Sn(D,p,2),Yu(),dp(p,2)}if(p=mp(u),p===null&&Jm(r,a,u,uc,l),p===f)break;f=p}f!==null&&u.stopPropagation()}else Jm(r,a,u,null,l)}}function mp(r){return r=hf(r),pp(r)}var uc=null;function pp(r){if(uc=null,r=Xi(r),r!==null){var a=s(r);if(a===null)r=null;else{var l=a.tag;if(l===13){if(r=c(a),r!==null)return r;r=null}else if(l===31){if(r=d(a),r!==null)return r;r=null}else if(l===3){if(a.stateNode.current.memoizedState.isDehydrated)return a.tag===3?a.stateNode.containerInfo:null;r=null}else a!==r&&(r=null)}}return uc=r,null}function y_(r){switch(r){case"beforetoggle":case"cancel":case"click":case"close":case"contextmenu":case"copy":case"cut":case"auxclick":case"dblclick":case"dragend":case"dragstart":case"drop":case"focusin":case"focusout":case"input":case"invalid":case"keydown":case"keypress":case"keyup":case"mousedown":case"mouseup":case"paste":case"pause":case"play":case"pointercancel":case"pointerdown":case"pointerup":case"ratechange":case"reset":case"resize":case"seeked":case"submit":case"toggle":case"touchcancel":case"touchend":case"touchstart":case"volumechange":case"change":case"selectionchange":case"textInput":case"compositionstart":case"compositionend":case"compositionupdate":case"beforeblur":case"afterblur":case"beforeinput":case"blur":case"fullscreenchange":case"focus":case"hashchange":case"popstate":case"select":case"selectstart":return 2;case"drag":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"mousemove":case"mouseout":case"mouseover":case"pointermove":case"pointerout":case"pointerover":case"scroll":case"touchmove":case"wheel":case"mouseenter":case"mouseleave":case"pointerenter":case"pointerleave":return 8;case"message":switch(De()){case Ee:return 2;case Te:return 8;case Re:case ke:return 32;case qe:return 268435456;default:return 32}default:return 32}}var hp=!1,Ta=null,Na=null,Ma=null,rs=new Map,as=new Map,Ra=[],uA="mousedown mouseup touchcancel touchend touchstart auxclick dblclick pointercancel pointerdown pointerup dragend dragstart drop compositionend compositionstart keydown keypress keyup input textInput copy cut paste click change contextmenu reset".split(" ");function g_(r,a){switch(r){case"focusin":case"focusout":Ta=null;break;case"dragenter":case"dragleave":Na=null;break;case"mouseover":case"mouseout":Ma=null;break;case"pointerover":case"pointerout":rs.delete(a.pointerId);break;case"gotpointercapture":case"lostpointercapture":as.delete(a.pointerId)}}function is(r,a,l,u,f,p){return r===null||r.nativeEvent!==p?(r={blockedOn:a,domEventName:l,eventSystemFlags:u,nativeEvent:p,targetContainers:[f]},a!==null&&(a=eo(a),a!==null&&p_(a)),r):(r.eventSystemFlags|=u,a=r.targetContainers,f!==null&&a.indexOf(f)===-1&&a.push(f),r)}function cA(r,a,l,u,f){switch(a){case"focusin":return Ta=is(Ta,r,a,l,u,f),!0;case"dragenter":return Na=is(Na,r,a,l,u,f),!0;case"mouseover":return Ma=is(Ma,r,a,l,u,f),!0;case"pointerover":var p=f.pointerId;return rs.set(p,is(rs.get(p)||null,r,a,l,u,f)),!0;case"gotpointercapture":return p=f.pointerId,as.set(p,is(as.get(p)||null,r,a,l,u,f)),!0}return!1}function b_(r){var a=Xi(r.target);if(a!==null){var l=s(a);if(l!==null){if(a=l.tag,a===13){if(a=c(l),a!==null){r.blockedOn=a,Ry(r.priority,function(){h_(l)});return}}else if(a===31){if(a=d(l),a!==null){r.blockedOn=a,Ry(r.priority,function(){h_(l)});return}}else if(a===3&&l.stateNode.current.memoizedState.isDehydrated){r.blockedOn=l.tag===3?l.stateNode.containerInfo:null;return}}}r.blockedOn=null}function cc(r){if(r.blockedOn!==null)return!1;for(var a=r.targetContainers;0<a.length;){var l=mp(r.nativeEvent);if(l===null){l=r.nativeEvent;var u=new l.constructor(l.type,l);pf=u,l.target.dispatchEvent(u),pf=null}else return a=eo(l),a!==null&&p_(a),r.blockedOn=l,!1;a.shift()}return!0}function v_(r,a,l){cc(r)&&l.delete(a)}function dA(){hp=!1,Ta!==null&&cc(Ta)&&(Ta=null),Na!==null&&cc(Na)&&(Na=null),Ma!==null&&cc(Ma)&&(Ma=null),rs.forEach(v_),as.forEach(v_)}function dc(r,a){r.blockedOn===a&&(r.blockedOn=null,hp||(hp=!0,e.unstable_scheduleCallback(e.unstable_NormalPriority,dA)))}var fc=null;function __(r){fc!==r&&(fc=r,e.unstable_scheduleCallback(e.unstable_NormalPriority,function(){fc===r&&(fc=null);for(var a=0;a<r.length;a+=3){var l=r[a],u=r[a+1],f=r[a+2];if(typeof u!="function"){if(pp(u||l)===null)continue;break}var p=eo(l);p!==null&&(r.splice(a,3),a-=3,mm(p,{pending:!0,data:f,method:l.method,action:u},u,f))}}))}function Lo(r){function a(k){return dc(k,r)}Ta!==null&&dc(Ta,r),Na!==null&&dc(Na,r),Ma!==null&&dc(Ma,r),rs.forEach(a),as.forEach(a);for(var l=0;l<Ra.length;l++){var u=Ra[l];u.blockedOn===r&&(u.blockedOn=null)}for(;0<Ra.length&&(l=Ra[0],l.blockedOn===null);)b_(l),l.blockedOn===null&&Ra.shift();if(l=(r.ownerDocument||r).$$reactFormReplay,l!=null)for(u=0;u<l.length;u+=3){var f=l[u],p=l[u+1],_=f[yn]||null;if(typeof p=="function")_||__(l);else if(_){var D=null;if(p&&p.hasAttribute("formAction")){if(f=p,_=p[yn]||null)D=_.formAction;else if(pp(f)!==null)continue}else D=_.action;typeof D=="function"?l[u+1]=D:(l.splice(u,3),u-=3),__(l)}}}function E_(){function r(p){p.canIntercept&&p.info==="react-transition"&&p.intercept({handler:function(){return new Promise(function(_){return f=_})},focusReset:"manual",scroll:"manual"})}function a(){f!==null&&(f(),f=null),u||setTimeout(l,20)}function l(){if(!u&&!navigation.transition){var p=navigation.currentEntry;p&&p.url!=null&&navigation.navigate(p.url,{state:p.getState(),info:"react-transition",history:"replace"})}}if(typeof navigation=="object"){var u=!1,f=null;return navigation.addEventListener("navigate",r),navigation.addEventListener("navigatesuccess",a),navigation.addEventListener("navigateerror",a),setTimeout(l,100),function(){u=!0,navigation.removeEventListener("navigate",r),navigation.removeEventListener("navigatesuccess",a),navigation.removeEventListener("navigateerror",a),f!==null&&(f(),f=null)}}}function yp(r){this._internalRoot=r}mc.prototype.render=yp.prototype.render=function(r){var a=this._internalRoot;if(a===null)throw Error(i(409));var l=a.current,u=In();f_(l,u,r,a,null,null)},mc.prototype.unmount=yp.prototype.unmount=function(){var r=this._internalRoot;if(r!==null){this._internalRoot=null;var a=r.containerInfo;f_(r.current,2,null,r,null,null),Yu(),a[Ji]=null}};function mc(r){this._internalRoot=r}mc.prototype.unstable_scheduleHydration=function(r){if(r){var a=My();r={blockedOn:null,target:r,priority:a};for(var l=0;l<Ra.length&&a!==0&&a<Ra[l].priority;l++);Ra.splice(l,0,r),l===0&&b_(r)}};var S_=t.version;if(S_!=="19.2.7")throw Error(i(527,S_,"19.2.7"));B.findDOMNode=function(r){var a=r._reactInternals;if(a===void 0)throw typeof r.render=="function"?Error(i(188)):(r=Object.keys(r).join(","),Error(i(268,r)));return r=h(a),r=r!==null?y(r):null,r=r===null?null:r.stateNode,r};var fA={bundleType:0,version:"19.2.7",rendererPackageName:"react-dom",currentDispatcherRef:O,reconcilerVersion:"19.2.7"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var pc=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!pc.isDisabled&&pc.supportsFiber)try{tt=pc.inject(fA),rt=pc}catch{}}return ls.createRoot=function(r,a){if(!o(r))throw Error(i(299));var l=!1,u="",f=Tb,p=Nb,_=Mb;return a!=null&&(a.unstable_strictMode===!0&&(l=!0),a.identifierPrefix!==void 0&&(u=a.identifierPrefix),a.onUncaughtError!==void 0&&(f=a.onUncaughtError),a.onCaughtError!==void 0&&(p=a.onCaughtError),a.onRecoverableError!==void 0&&(_=a.onRecoverableError)),a=c_(r,1,!1,null,null,l,u,null,f,p,_,E_),r[Ji]=a.current,Qm(r),new yp(a)},ls.hydrateRoot=function(r,a,l){if(!o(r))throw Error(i(299));var u=!1,f="",p=Tb,_=Nb,D=Mb,k=null;return l!=null&&(l.unstable_strictMode===!0&&(u=!0),l.identifierPrefix!==void 0&&(f=l.identifierPrefix),l.onUncaughtError!==void 0&&(p=l.onUncaughtError),l.onCaughtError!==void 0&&(_=l.onCaughtError),l.onRecoverableError!==void 0&&(D=l.onRecoverableError),l.formState!==void 0&&(k=l.formState)),a=c_(r,1,!0,a,l??null,u,f,k,p,_,D,E_),a.context=d_(null),l=a.current,u=In(),u=dr(u),f=ga(u),f.callback=null,ba(l,f,u),l=u,a.current.lanes=l,br(a,l),Sr(a),r[Ji]=a.current,Qm(r),new mc(a)},ls.version="19.2.7",ls}var R_;function EA(){if(R_)return vp.exports;R_=1;function e(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(e)}catch(t){console.error(t)}}return e(),vp.exports=_A(),vp.exports}var SA=EA();const bt=typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__,Ga="8.55.2",st=globalThis;function Md(e,t,n){const i=n||st,o=i.__SENTRY__=i.__SENTRY__||{},s=o[Ga]=o[Ga]||{};return s[e]||(s[e]=t())}const Hi=typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__,$A="Sentry Logger ",gh=["debug","info","warn","error","log","assert","trace"],nd={};function Vi(e){if(!("console"in st))return e();const t=st.console,n={},i=Object.keys(nd);i.forEach(o=>{const s=nd[o];n[o]=t[o],t[o]=s});try{return e()}finally{i.forEach(o=>{t[o]=n[o]})}}function DA(){let e=!1;const t={enable:()=>{e=!0},disable:()=>{e=!1},isEnabled:()=>e};return Hi?gh.forEach(n=>{t[n]=(...i)=>{e&&Vi(()=>{st.console[n](`${$A}[${n}]:`,...i)})}}):gh.forEach(n=>{t[n]=()=>{}}),t}const je=Md("logger",DA),cE=50,Ni="?",O_=/\(error: (.*)\)/,k_=/captureMessage|captureException/;function dE(...e){const t=e.sort((n,i)=>n[0]-i[0]).map(n=>n[1]);return(n,i=0,o=0)=>{const s=[],c=n.split(`
|
|
50
|
-
`);for(let d=i;d<c.length;d++){const m=c[d];if(m.length>1024)continue;const h=O_.test(m)?m.replace(O_,"$1"):m;if(!h.match(/\S*Error: /)){for(const y of t){const g=y(h);if(g){s.push(g);break}}if(s.length>=cE+o)break}}return CA(s.slice(o))}}function xA(e){return Array.isArray(e)?dE(...e):e}function CA(e){if(!e.length)return[];const t=Array.from(e);return/sentryWrapped/.test(hc(t).function||"")&&t.pop(),t.reverse(),k_.test(hc(t).function||"")&&(t.pop(),k_.test(hc(t).function||"")&&t.pop()),t.slice(0,cE).map(n=>({...n,filename:n.filename||hc(t).filename,function:n.function||Ni}))}function hc(e){return e[e.length-1]||{}}const $p="<anonymous>";function Wa(e){try{return!e||typeof e!="function"?$p:e.name||$p}catch{return $p}}function B_(e){const t=e.exception;if(t){const n=[];try{return t.values.forEach(i=>{i.stacktrace.frames&&n.push(...i.stacktrace.frames)}),n}catch{return}}}const jc={},L_={};function Gi(e,t){jc[e]=jc[e]||[],jc[e].push(t)}function Zi(e,t){if(!L_[e]){L_[e]=!0;try{t()}catch(n){Hi&&je.error(`Error while instrumenting ${e}`,n)}}}function yr(e,t){const n=e&&jc[e];if(n)for(const i of n)try{i(t)}catch(o){Hi&&je.error(`Error while triggering instrumentation handler.
|
|
51
|
-
Type: ${e}
|
|
52
|
-
Name: ${Wa(i)}
|
|
53
|
-
Error:`,o)}}let Dp=null;function AA(e){const t="error";Gi(t,e),Zi(t,wA)}function wA(){Dp=st.onerror,st.onerror=function(e,t,n,i,o){return yr("error",{column:i,error:o,line:n,msg:e,url:t}),Dp?Dp.apply(this,arguments):!1},st.onerror.__SENTRY_INSTRUMENTED__=!0}let xp=null;function TA(e){const t="unhandledrejection";Gi(t,e),Zi(t,NA)}function NA(){xp=st.onunhandledrejection,st.onunhandledrejection=function(e){return yr("unhandledrejection",e),xp?xp.apply(this,arguments):!0},st.onunhandledrejection.__SENTRY_INSTRUMENTED__=!0}function Rd(){return D0(st),st}function D0(e){const t=e.__SENTRY__=e.__SENTRY__||{};return t.version=t.version||Ga,t[Ga]=t[Ga]||{}}const fE=Object.prototype.toString;function Od(e){switch(fE.call(e)){case"[object Error]":case"[object Exception]":case"[object DOMException]":case"[object WebAssembly.Exception]":return!0;default:return Mi(e,Error)}}function sl(e,t){return fE.call(e)===`[object ${t}]`}function mE(e){return sl(e,"ErrorEvent")}function P_(e){return sl(e,"DOMError")}function MA(e){return sl(e,"DOMException")}function aa(e){return sl(e,"String")}function x0(e){return typeof e=="object"&&e!==null&&"__sentry_template_string__"in e&&"__sentry_template_values__"in e}function C0(e){return e===null||x0(e)||typeof e!="object"&&typeof e!="function"}function Xo(e){return sl(e,"Object")}function kd(e){return typeof Event<"u"&&Mi(e,Event)}function RA(e){return typeof Element<"u"&&Mi(e,Element)}function OA(e){return sl(e,"RegExp")}function Bd(e){return!!(e&&e.then&&typeof e.then=="function")}function kA(e){return Xo(e)&&"nativeEvent"in e&&"preventDefault"in e&&"stopPropagation"in e}function Mi(e,t){try{return e instanceof t}catch{return!1}}function pE(e){return!!(typeof e=="object"&&e!==null&&(e.__isVue||e._isVue))}const A0=st,BA=80;function hE(e,t={}){if(!e)return"<unknown>";try{let n=e;const i=5,o=[];let s=0,c=0;const d=" > ",m=d.length;let h;const y=Array.isArray(t)?t:t.keyAttrs,g=!Array.isArray(t)&&t.maxStringLength||BA;for(;n&&s++<i&&(h=LA(n,y),!(h==="html"||s>1&&c+o.length*m+h.length>=g));)o.push(h),c+=h.length,n=n.parentNode;return o.reverse().join(d)}catch{return"<unknown>"}}function LA(e,t){const n=e,i=[];if(!n||!n.tagName)return"";if(A0.HTMLElement&&n instanceof HTMLElement&&n.dataset){if(n.dataset.sentryComponent)return n.dataset.sentryComponent;if(n.dataset.sentryElement)return n.dataset.sentryElement}i.push(n.tagName.toLowerCase());const o=t&&t.length?t.filter(c=>n.getAttribute(c)).map(c=>[c,n.getAttribute(c)]):null;if(o&&o.length)o.forEach(c=>{i.push(`[${c[0]}="${c[1]}"]`)});else{n.id&&i.push(`#${n.id}`);const c=n.className;if(c&&aa(c)){const d=c.split(/\s+/);for(const m of d)i.push(`.${m}`)}}const s=["aria-label","type","name","title","alt"];for(const c of s){const d=n.getAttribute(c);d&&i.push(`[${c}="${d}"]`)}return i.join("")}function PA(){try{return A0.document.location.href}catch{return""}}function FA(e){if(!A0.HTMLElement)return null;let t=e;const n=5;for(let i=0;i<n;i++){if(!t)return null;if(t instanceof HTMLElement){if(t.dataset.sentryComponent)return t.dataset.sentryComponent;if(t.dataset.sentryElement)return t.dataset.sentryElement}t=t.parentNode}return null}function Go(e,t=0){return typeof e!="string"||t===0||e.length<=t?e:`${e.slice(0,t)}...`}function F_(e,t){if(!Array.isArray(e))return"";const n=[];for(let i=0;i<e.length;i++){const o=e[i];try{pE(o)?n.push("[VueViewModel]"):n.push(String(o))}catch{n.push("[value cannot be serialized]")}}return n.join(t)}function IA(e,t,n=!1){return aa(e)?OA(t)?t.test(e):aa(t)?n?e===t:e.includes(t):!1:!1}function Ld(e,t=[],n=!1){return t.some(i=>IA(e,i,n))}function zn(e,t,n){if(!(t in e))return;const i=e[t],o=n(i);typeof o=="function"&&yE(o,i);try{e[t]=o}catch{Hi&&je.log(`Failed to replace method "${t}" in object`,e)}}function Ri(e,t,n){try{Object.defineProperty(e,t,{value:n,writable:!0,configurable:!0})}catch{Hi&&je.log(`Failed to add non-enumerable property "${t}" to object`,e)}}function yE(e,t){try{const n=t.prototype||{};e.prototype=t.prototype=n,Ri(e,"__sentry_original__",t)}catch{}}function w0(e){return e.__sentry_original__}function gE(e){if(Od(e))return{message:e.message,name:e.name,stack:e.stack,...j_(e)};if(kd(e)){const t={type:e.type,target:I_(e.target),currentTarget:I_(e.currentTarget),...j_(e)};return typeof CustomEvent<"u"&&Mi(e,CustomEvent)&&(t.detail=e.detail),t}else return e}function I_(e){try{return RA(e)?hE(e):Object.prototype.toString.call(e)}catch{return"<unknown>"}}function j_(e){if(typeof e=="object"&&e!==null){const t={};for(const n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t}else return{}}function jA(e,t=40){const n=Object.keys(gE(e));n.sort();const i=n[0];if(!i)return"[object has no keys]";if(i.length>=t)return Go(i,t);for(let o=n.length;o>0;o--){const s=n.slice(0,o).join(", ");if(!(s.length>t))return o===n.length?s:Go(s,t)}return""}function ir(e){return bh(e,new Map)}function bh(e,t){if(zA(e)){const n=t.get(e);if(n!==void 0)return n;const i={};t.set(e,i);for(const o of Object.getOwnPropertyNames(e))typeof e[o]<"u"&&(i[o]=bh(e[o],t));return i}if(Array.isArray(e)){const n=t.get(e);if(n!==void 0)return n;const i=[];return t.set(e,i),e.forEach(o=>{i.push(bh(o,t))}),i}return e}function zA(e){if(!Xo(e))return!1;try{const t=Object.getPrototypeOf(e).constructor.name;return!t||t==="Object"}catch{return!0}}const bE=1e3;function Us(){return Date.now()/bE}function UA(){const{performance:e}=st;if(!e||!e.now)return Us;const t=Date.now()-e.now(),n=e.timeOrigin==null?t:e.timeOrigin;return()=>(n+e.now())/bE}const ia=UA();(()=>{const{performance:e}=st;if(!e||!e.now)return;const t=3600*1e3,n=e.now(),i=Date.now(),o=e.timeOrigin?Math.abs(e.timeOrigin+n-i):t,s=o<t,c=e.timing&&e.timing.navigationStart,m=typeof c=="number"?Math.abs(c+n-i):t,h=m<t;return s||h?o<=m?e.timeOrigin:c:i})();function lr(){const e=st,t=e.crypto||e.msCrypto;let n=()=>Math.random()*16;try{if(t&&t.randomUUID)return t.randomUUID().replace(/-/g,"");t&&t.getRandomValues&&(n=()=>{const i=new Uint8Array(1);return t.getRandomValues(i),i[0]})}catch{}return("10000000100040008000"+1e11).replace(/[018]/g,i=>(i^(n()&15)>>i/4).toString(16))}function vE(e){return e.exception&&e.exception.values?e.exception.values[0]:void 0}function Pa(e){const{message:t,event_id:n}=e;if(t)return t;const i=vE(e);return i?i.type&&i.value?`${i.type}: ${i.value}`:i.type||i.value||n||"<unknown>":n||"<unknown>"}function vh(e,t,n){const i=e.exception=e.exception||{},o=i.values=i.values||[],s=o[0]=o[0]||{};s.value||(s.value=t||""),s.type||(s.type="Error")}function el(e,t){const n=vE(e);if(!n)return;const i={type:"generic",handled:!0},o=n.mechanism;if(n.mechanism={...i,...o,...t},t&&"data"in t){const s={...o&&o.data,...t.data};n.mechanism.data=s}}function z_(e){if(HA(e))return!0;try{Ri(e,"__sentry_captured__",!0)}catch{}return!1}function HA(e){try{return e.__sentry_captured__}catch{}}var Wr;(function(e){e[e.PENDING=0]="PENDING";const n=1;e[e.RESOLVED=n]="RESOLVED";const i=2;e[e.REJECTED=i]="REJECTED"})(Wr||(Wr={}));function Oi(e){return new rr(t=>{t(e)})}function rd(e){return new rr((t,n)=>{n(e)})}class rr{constructor(t){rr.prototype.__init.call(this),rr.prototype.__init2.call(this),rr.prototype.__init3.call(this),rr.prototype.__init4.call(this),this._state=Wr.PENDING,this._handlers=[];try{t(this._resolve,this._reject)}catch(n){this._reject(n)}}then(t,n){return new rr((i,o)=>{this._handlers.push([!1,s=>{if(!t)i(s);else try{i(t(s))}catch(c){o(c)}},s=>{if(!n)o(s);else try{i(n(s))}catch(c){o(c)}}]),this._executeHandlers()})}catch(t){return this.then(n=>n,t)}finally(t){return new rr((n,i)=>{let o,s;return this.then(c=>{s=!1,o=c,t&&t()},c=>{s=!0,o=c,t&&t()}).then(()=>{if(s){i(o);return}n(o)})})}__init(){this._resolve=t=>{this._setResult(Wr.RESOLVED,t)}}__init2(){this._reject=t=>{this._setResult(Wr.REJECTED,t)}}__init3(){this._setResult=(t,n)=>{if(this._state===Wr.PENDING){if(Bd(n)){n.then(this._resolve,this._reject);return}this._state=t,this._value=n,this._executeHandlers()}}}__init4(){this._executeHandlers=()=>{if(this._state===Wr.PENDING)return;const t=this._handlers.slice();this._handlers=[],t.forEach(n=>{n[0]||(this._state===Wr.RESOLVED&&n[1](this._value),this._state===Wr.REJECTED&&n[2](this._value),n[0]=!0)})}}}function VA(e){const t=ia(),n={sid:lr(),init:!0,timestamp:t,started:t,duration:0,status:"ok",errors:0,ignoreDuration:!1,toJSON:()=>ZA(n)};return e&&tl(n,e),n}function tl(e,t={}){if(t.user&&(!e.ipAddress&&t.user.ip_address&&(e.ipAddress=t.user.ip_address),!e.did&&!t.did&&(e.did=t.user.id||t.user.email||t.user.username)),e.timestamp=t.timestamp||ia(),t.abnormal_mechanism&&(e.abnormal_mechanism=t.abnormal_mechanism),t.ignoreDuration&&(e.ignoreDuration=t.ignoreDuration),t.sid&&(e.sid=t.sid.length===32?t.sid:lr()),t.init!==void 0&&(e.init=t.init),!e.did&&t.did&&(e.did=`${t.did}`),typeof t.started=="number"&&(e.started=t.started),e.ignoreDuration)e.duration=void 0;else if(typeof t.duration=="number")e.duration=t.duration;else{const n=e.timestamp-e.started;e.duration=n>=0?n:0}t.release&&(e.release=t.release),t.environment&&(e.environment=t.environment),!e.ipAddress&&t.ipAddress&&(e.ipAddress=t.ipAddress),!e.userAgent&&t.userAgent&&(e.userAgent=t.userAgent),typeof t.errors=="number"&&(e.errors=t.errors),t.status&&(e.status=t.status)}function GA(e,t){let n={};e.status==="ok"&&(n={status:"exited"}),tl(e,n)}function ZA(e){return ir({sid:`${e.sid}`,init:e.init,started:new Date(e.started*1e3).toISOString(),timestamp:new Date(e.timestamp*1e3).toISOString(),status:e.status,errors:e.errors,did:typeof e.did=="number"||typeof e.did=="string"?`${e.did}`:void 0,duration:e.duration,abnormal_mechanism:e.abnormal_mechanism,attrs:{release:e.release,environment:e.environment,ip_address:e.ipAddress,user_agent:e.userAgent}})}function U_(){return lr()}function _h(){return lr().substring(16)}function Pd(e,t,n=2){if(!t||typeof t!="object"||n<=0)return t;if(e&&t&&Object.keys(t).length===0)return e;const i={...e};for(const o in t)Object.prototype.hasOwnProperty.call(t,o)&&(i[o]=Pd(i[o],t[o],n-1));return i}const Eh="_sentrySpan";function H_(e,t){t?Ri(e,Eh,t):delete e[Eh]}function V_(e){return e[Eh]}const YA=100;class T0{constructor(){this._notifyingListeners=!1,this._scopeListeners=[],this._eventProcessors=[],this._breadcrumbs=[],this._attachments=[],this._user={},this._tags={},this._extra={},this._contexts={},this._sdkProcessingMetadata={},this._propagationContext={traceId:U_(),spanId:_h()}}clone(){const t=new T0;return t._breadcrumbs=[...this._breadcrumbs],t._tags={...this._tags},t._extra={...this._extra},t._contexts={...this._contexts},this._contexts.flags&&(t._contexts.flags={values:[...this._contexts.flags.values]}),t._user=this._user,t._level=this._level,t._session=this._session,t._transactionName=this._transactionName,t._fingerprint=this._fingerprint,t._eventProcessors=[...this._eventProcessors],t._requestSession=this._requestSession,t._attachments=[...this._attachments],t._sdkProcessingMetadata={...this._sdkProcessingMetadata},t._propagationContext={...this._propagationContext},t._client=this._client,t._lastEventId=this._lastEventId,H_(t,V_(this)),t}setClient(t){this._client=t}setLastEventId(t){this._lastEventId=t}getClient(){return this._client}lastEventId(){return this._lastEventId}addScopeListener(t){this._scopeListeners.push(t)}addEventProcessor(t){return this._eventProcessors.push(t),this}setUser(t){return this._user=t||{email:void 0,id:void 0,ip_address:void 0,username:void 0},this._session&&tl(this._session,{user:t}),this._notifyScopeListeners(),this}getUser(){return this._user}getRequestSession(){return this._requestSession}setRequestSession(t){return this._requestSession=t,this}setTags(t){return this._tags={...this._tags,...t},this._notifyScopeListeners(),this}setTag(t,n){return this._tags={...this._tags,[t]:n},this._notifyScopeListeners(),this}setExtras(t){return this._extra={...this._extra,...t},this._notifyScopeListeners(),this}setExtra(t,n){return this._extra={...this._extra,[t]:n},this._notifyScopeListeners(),this}setFingerprint(t){return this._fingerprint=t,this._notifyScopeListeners(),this}setLevel(t){return this._level=t,this._notifyScopeListeners(),this}setTransactionName(t){return this._transactionName=t,this._notifyScopeListeners(),this}setContext(t,n){return n===null?delete this._contexts[t]:this._contexts[t]=n,this._notifyScopeListeners(),this}setSession(t){return t?this._session=t:delete this._session,this._notifyScopeListeners(),this}getSession(){return this._session}update(t){if(!t)return this;const n=typeof t=="function"?t(this):t,[i,o]=n instanceof Qa?[n.getScopeData(),n.getRequestSession()]:Xo(n)?[t,t.requestSession]:[],{tags:s,extra:c,user:d,contexts:m,level:h,fingerprint:y=[],propagationContext:g}=i||{};return this._tags={...this._tags,...s},this._extra={...this._extra,...c},this._contexts={...this._contexts,...m},d&&Object.keys(d).length&&(this._user=d),h&&(this._level=h),y.length&&(this._fingerprint=y),g&&(this._propagationContext=g),o&&(this._requestSession=o),this}clear(){return this._breadcrumbs=[],this._tags={},this._extra={},this._user={},this._contexts={},this._level=void 0,this._transactionName=void 0,this._fingerprint=void 0,this._requestSession=void 0,this._session=void 0,H_(this,void 0),this._attachments=[],this.setPropagationContext({traceId:U_()}),this._notifyScopeListeners(),this}addBreadcrumb(t,n){const i=typeof n=="number"?n:YA;if(i<=0)return this;const o={timestamp:Us(),...t};return this._breadcrumbs.push(o),this._breadcrumbs.length>i&&(this._breadcrumbs=this._breadcrumbs.slice(-i),this._client&&this._client.recordDroppedEvent("buffer_overflow","log_item")),this._notifyScopeListeners(),this}getLastBreadcrumb(){return this._breadcrumbs[this._breadcrumbs.length-1]}clearBreadcrumbs(){return this._breadcrumbs=[],this._notifyScopeListeners(),this}addAttachment(t){return this._attachments.push(t),this}clearAttachments(){return this._attachments=[],this}getScopeData(){return{breadcrumbs:this._breadcrumbs,attachments:this._attachments,contexts:this._contexts,tags:this._tags,extra:this._extra,user:this._user,level:this._level,fingerprint:this._fingerprint||[],eventProcessors:this._eventProcessors,propagationContext:this._propagationContext,sdkProcessingMetadata:this._sdkProcessingMetadata,transactionName:this._transactionName,span:V_(this)}}setSDKProcessingMetadata(t){return this._sdkProcessingMetadata=Pd(this._sdkProcessingMetadata,t,2),this}setPropagationContext(t){return this._propagationContext={spanId:_h(),...t},this}getPropagationContext(){return this._propagationContext}captureException(t,n){const i=n&&n.event_id?n.event_id:lr();if(!this._client)return je.warn("No client configured on scope - will not capture exception!"),i;const o=new Error("Sentry syntheticException");return this._client.captureException(t,{originalException:t,syntheticException:o,...n,event_id:i},this),i}captureMessage(t,n,i){const o=i&&i.event_id?i.event_id:lr();if(!this._client)return je.warn("No client configured on scope - will not capture message!"),o;const s=new Error(t);return this._client.captureMessage(t,n,{originalException:t,syntheticException:s,...i,event_id:o},this),o}captureEvent(t,n){const i=n&&n.event_id?n.event_id:lr();return this._client?(this._client.captureEvent(t,{...n,event_id:i},this),i):(je.warn("No client configured on scope - will not capture event!"),i)}_notifyScopeListeners(){this._notifyingListeners||(this._notifyingListeners=!0,this._scopeListeners.forEach(t=>{t(this)}),this._notifyingListeners=!1)}}const Qa=T0;function qA(){return Md("defaultCurrentScope",()=>new Qa)}function KA(){return Md("defaultIsolationScope",()=>new Qa)}class WA{constructor(t,n){let i;t?i=t:i=new Qa;let o;n?o=n:o=new Qa,this._stack=[{scope:i}],this._isolationScope=o}withScope(t){const n=this._pushScope();let i;try{i=t(n)}catch(o){throw this._popScope(),o}return Bd(i)?i.then(o=>(this._popScope(),o),o=>{throw this._popScope(),o}):(this._popScope(),i)}getClient(){return this.getStackTop().client}getScope(){return this.getStackTop().scope}getIsolationScope(){return this._isolationScope}getStackTop(){return this._stack[this._stack.length-1]}_pushScope(){const t=this.getScope().clone();return this._stack.push({client:this.getClient(),scope:t}),t}_popScope(){return this._stack.length<=1?!1:!!this._stack.pop()}}function nl(){const e=Rd(),t=D0(e);return t.stack=t.stack||new WA(qA(),KA())}function QA(e){return nl().withScope(e)}function JA(e,t){const n=nl();return n.withScope(()=>(n.getStackTop().scope=e,t(e)))}function G_(e){return nl().withScope(()=>e(nl().getIsolationScope()))}function XA(){return{withIsolationScope:G_,withScope:QA,withSetScope:JA,withSetIsolationScope:(e,t)=>G_(t),getCurrentScope:()=>nl().getScope(),getIsolationScope:()=>nl().getIsolationScope()}}function N0(e){const t=D0(e);return t.acs?t.acs:XA()}function wr(){const e=Rd();return N0(e).getCurrentScope()}function Yi(){const e=Rd();return N0(e).getIsolationScope()}function ew(){return Md("globalScope",()=>new Qa)}function M0(...e){const t=Rd(),n=N0(t);if(e.length===2){const[i,o]=e;return i?n.withSetScope(i,o):n.withScope(o)}return n.withScope(e[0])}function Yt(){return wr().getClient()}function tw(e){const t=e.getPropagationContext(),{traceId:n,spanId:i,parentSpanId:o}=t;return ir({trace_id:n,span_id:i,parent_span_id:o})}const nw="_sentryMetrics";function rw(e){const t=e[nw];if(!t)return;const n={};for(const[,[i,o]]of t)(n[i]||(n[i]=[])).push(ir(o));return n}const aw="sentry.source",iw="sentry.sample_rate",ow="sentry.op",lw="sentry.origin",sw=0,uw=1,cw="sentry-",dw=/^sentry-/;function fw(e){const t=mw(e);if(!t)return;const n=Object.entries(t).reduce((i,[o,s])=>{if(o.match(dw)){const c=o.slice(cw.length);i[c]=s}return i},{});if(Object.keys(n).length>0)return n}function mw(e){if(!(!e||!aa(e)&&!Array.isArray(e)))return Array.isArray(e)?e.reduce((t,n)=>{const i=Z_(n);return Object.entries(i).forEach(([o,s])=>{t[o]=s}),t},{}):Z_(e)}function Z_(e){return e.split(",").map(t=>t.split("=").map(n=>decodeURIComponent(n.trim()))).reduce((t,[n,i])=>(n&&i&&(t[n]=i),t),{})}const pw=1;let Y_=!1;function hw(e){const{spanId:t,traceId:n,isRemote:i}=e.spanContext(),o=i?t:R0(e).parent_span_id,s=i?_h():t;return ir({parent_span_id:o,span_id:s,trace_id:n})}function q_(e){return typeof e=="number"?K_(e):Array.isArray(e)?e[0]+e[1]/1e9:e instanceof Date?K_(e.getTime()):ia()}function K_(e){return e>9999999999?e/1e3:e}function R0(e){if(gw(e))return e.getSpanJSON();try{const{spanId:t,traceId:n}=e.spanContext();if(yw(e)){const{attributes:i,startTime:o,name:s,endTime:c,parentSpanId:d,status:m}=e;return ir({span_id:t,trace_id:n,data:i,description:s,parent_span_id:d,start_timestamp:q_(o),timestamp:q_(c)||void 0,status:vw(m),op:i[ow],origin:i[lw],_metrics_summary:rw(e)})}return{span_id:t,trace_id:n}}catch{return{}}}function yw(e){const t=e;return!!t.attributes&&!!t.startTime&&!!t.name&&!!t.endTime&&!!t.status}function gw(e){return typeof e.getSpanJSON=="function"}function bw(e){const{traceFlags:t}=e.spanContext();return t===pw}function vw(e){if(!(!e||e.code===sw))return e.code===uw?"ok":e.message||"unknown_error"}const _w="_sentryRootSpan";function _E(e){return e[_w]||e}function Ew(){Y_||(Vi(()=>{console.warn("[Sentry] Deprecation warning: Returning null from `beforeSendSpan` will be disallowed from SDK version 9.0.0 onwards. The callback will only support mutating spans. To drop certain spans, configure the respective integrations directly.")}),Y_=!0)}function Sw(e){if(typeof __SENTRY_TRACING__=="boolean"&&!__SENTRY_TRACING__)return!1;const t=Yt(),n=t&&t.getOptions();return!!n&&(n.enableTracing||"tracesSampleRate"in n||"tracesSampler"in n)}const O0="production",$w="_frozenDsc";function EE(e,t){const n=t.getOptions(),{publicKey:i}=t.getDsn()||{},o=ir({environment:n.environment||O0,release:n.release,public_key:i,trace_id:e});return t.emit("createDsc",o),o}function Dw(e,t){const n=t.getPropagationContext();return n.dsc||EE(n.traceId,e)}function xw(e){const t=Yt();if(!t)return{};const n=_E(e),i=n[$w];if(i)return i;const o=n.spanContext().traceState,s=o&&o.get("sentry.dsc"),c=s&&fw(s);if(c)return c;const d=EE(e.spanContext().traceId,t),m=R0(n),h=m.data||{},y=h[iw];y!=null&&(d.sample_rate=`${y}`);const g=h[aw],E=m.description;return g!=="url"&&E&&(d.transaction=E),Sw()&&(d.sampled=String(bw(n))),t.emit("createDsc",d,n),d}function Cw(e){if(typeof e=="boolean")return Number(e);const t=typeof e=="string"?parseFloat(e):e;if(typeof t!="number"||isNaN(t)||t<0||t>1){bt&&je.warn(`[Tracing] Given sample rate is invalid. Sample rate must be a boolean or a number between 0 and 1. Got ${JSON.stringify(e)} of type ${JSON.stringify(typeof e)}.`);return}return t}const Aw=/^(?:(\w+):)\/\/(?:(\w+)(?::(\w+)?)?@)([\w.-]+)(?::(\d+))?\/(.+)/;function ww(e){return e==="http"||e==="https"}function Hs(e,t=!1){const{host:n,path:i,pass:o,port:s,projectId:c,protocol:d,publicKey:m}=e;return`${d}://${m}${t&&o?`:${o}`:""}@${n}${s?`:${s}`:""}/${i&&`${i}/`}${c}`}function Tw(e){const t=Aw.exec(e);if(!t){Vi(()=>{console.error(`Invalid Sentry Dsn: ${e}`)});return}const[n,i,o="",s="",c="",d=""]=t.slice(1);let m="",h=d;const y=h.split("/");if(y.length>1&&(m=y.slice(0,-1).join("/"),h=y.pop()),h){const g=h.match(/^\d+/);g&&(h=g[0])}return SE({host:s,pass:o,path:m,projectId:h,port:c,protocol:n,publicKey:i})}function SE(e){return{protocol:e.protocol,publicKey:e.publicKey||"",pass:e.pass||"",host:e.host,port:e.port||"",path:e.path||"",projectId:e.projectId}}function Nw(e){if(!Hi)return!0;const{port:t,projectId:n,protocol:i}=e;return["protocol","publicKey","host","projectId"].find(c=>e[c]?!1:(je.error(`Invalid Sentry Dsn: ${c} missing`),!0))?!1:n.match(/^\d+$/)?ww(i)?t&&isNaN(parseInt(t,10))?(je.error(`Invalid Sentry Dsn: Invalid port ${t}`),!1):!0:(je.error(`Invalid Sentry Dsn: Invalid protocol ${i}`),!1):(je.error(`Invalid Sentry Dsn: Invalid projectId ${n}`),!1)}function $E(e){const t=typeof e=="string"?Tw(e):SE(e);if(!(!t||!Nw(t)))return t}function Mw(){const e=typeof WeakSet=="function",t=e?new WeakSet:[];function n(o){if(e)return t.has(o)?!0:(t.add(o),!1);for(let s=0;s<t.length;s++)if(t[s]===o)return!0;return t.push(o),!1}function i(o){if(e)t.delete(o);else for(let s=0;s<t.length;s++)if(t[s]===o){t.splice(s,1);break}}return[n,i]}function Qr(e,t=100,n=1/0){try{return Sh("",e,t,n)}catch(i){return{ERROR:`**non-serializable** (${i})`}}}function DE(e,t=3,n=100*1024){const i=Qr(e,t);return Bw(i)>n?DE(e,t-1,n):i}function Sh(e,t,n=1/0,i=1/0,o=Mw()){const[s,c]=o;if(t==null||["boolean","string"].includes(typeof t)||typeof t=="number"&&Number.isFinite(t))return t;const d=Rw(e,t);if(!d.startsWith("[object "))return d;if(t.__sentry_skip_normalization__)return t;const m=typeof t.__sentry_override_normalization_depth__=="number"?t.__sentry_override_normalization_depth__:n;if(m===0)return d.replace("object ","");if(s(t))return"[Circular ~]";const h=t;if(h&&typeof h.toJSON=="function")try{const S=h.toJSON();return Sh("",S,m-1,i,o)}catch{}const y=Array.isArray(t)?[]:{};let g=0;const E=gE(t);for(const S in E){if(!Object.prototype.hasOwnProperty.call(E,S))continue;if(g>=i){y[S]="[MaxProperties ~]";break}const $=E[S];y[S]=Sh(S,$,m-1,i,o),g++}return c(t),y}function Rw(e,t){try{if(e==="domain"&&t&&typeof t=="object"&&t._events)return"[Domain]";if(e==="domainEmitter")return"[DomainEmitter]";if(typeof global<"u"&&t===global)return"[Global]";if(typeof window<"u"&&t===window)return"[Window]";if(typeof document<"u"&&t===document)return"[Document]";if(pE(t))return"[VueViewModel]";if(kA(t))return"[SyntheticEvent]";if(typeof t=="number"&&!Number.isFinite(t))return`[${t}]`;if(typeof t=="function")return`[Function: ${Wa(t)}]`;if(typeof t=="symbol")return`[${String(t)}]`;if(typeof t=="bigint")return`[BigInt: ${String(t)}]`;const n=Ow(t);return/^HTML(\w*)Element$/.test(n)?`[HTMLElement: ${n}]`:`[object ${n}]`}catch(n){return`**non-serializable** (${n})`}}function Ow(e){const t=Object.getPrototypeOf(e);return t?t.constructor.name:"null prototype"}function kw(e){return~-encodeURI(e).split(/%..|./).length}function Bw(e){return kw(JSON.stringify(e))}function Vs(e,t=[]){return[e,t]}function Lw(e,t){const[n,i]=e;return[n,[...i,t]]}function W_(e,t){const n=e[1];for(const i of n){const o=i[0].type;if(t(i,o))return!0}return!1}function $h(e){return st.__SENTRY__&&st.__SENTRY__.encodePolyfill?st.__SENTRY__.encodePolyfill(e):new TextEncoder().encode(e)}function Pw(e){const[t,n]=e;let i=JSON.stringify(t);function o(s){typeof i=="string"?i=typeof s=="string"?i+s:[$h(i),s]:i.push(typeof s=="string"?$h(s):s)}for(const s of n){const[c,d]=s;if(o(`
|
|
54
|
-
${JSON.stringify(c)}
|
|
55
|
-
`),typeof d=="string"||d instanceof Uint8Array)o(d);else{let m;try{m=JSON.stringify(d)}catch{m=JSON.stringify(Qr(d))}o(m)}}return typeof i=="string"?i:Fw(i)}function Fw(e){const t=e.reduce((o,s)=>o+s.length,0),n=new Uint8Array(t);let i=0;for(const o of e)n.set(o,i),i+=o.length;return n}function Iw(e){const t=typeof e.data=="string"?$h(e.data):e.data;return[ir({type:"attachment",length:t.length,filename:e.filename,content_type:e.contentType,attachment_type:e.attachmentType}),t]}const jw={session:"session",sessions:"session",attachment:"attachment",transaction:"transaction",event:"error",client_report:"internal",user_report:"default",profile:"profile",profile_chunk:"profile",replay_event:"replay",replay_recording:"replay",check_in:"monitor",feedback:"feedback",span:"span",statsd:"metric_bucket",raw_security:"security"};function Q_(e){return jw[e]}function xE(e){if(!e||!e.sdk)return;const{name:t,version:n}=e.sdk;return{name:t,version:n}}function zw(e,t,n,i){const o=e.sdkProcessingMetadata&&e.sdkProcessingMetadata.dynamicSamplingContext;return{event_id:e.event_id,sent_at:new Date().toISOString(),...t&&{sdk:t},...!!n&&i&&{dsn:Hs(i)},...o&&{trace:ir({...o})}}}function Uw(e,t){return t&&(e.sdk=e.sdk||{},e.sdk.name=e.sdk.name||t.name,e.sdk.version=e.sdk.version||t.version,e.sdk.integrations=[...e.sdk.integrations||[],...t.integrations||[]],e.sdk.packages=[...e.sdk.packages||[],...t.packages||[]]),e}function Hw(e,t,n,i){const o=xE(n),s={sent_at:new Date().toISOString(),...o&&{sdk:o},...!!i&&t&&{dsn:Hs(t)}},c="aggregates"in e?[{type:"sessions"},e]:[{type:"session"},e.toJSON()];return Vs(s,[c])}function Vw(e,t,n,i){const o=xE(n),s=e.type&&e.type!=="replay_event"?e.type:"event";Uw(e,n&&n.sdk);const c=zw(e,o,i,t);return delete e.sdkProcessingMetadata,Vs(c,[[{type:s},e]])}function Dh(e,t,n,i=0){return new rr((o,s)=>{const c=e[i];if(t===null||typeof c!="function")o(t);else{const d=c({...t},n);bt&&c.id&&d===null&&je.log(`Event processor "${c.id}" dropped event`),Bd(d)?d.then(m=>Dh(e,m,n,i+1).then(o)).then(null,s):Dh(e,d,n,i+1).then(o).then(null,s)}})}let yc,J_,gc;function Gw(e){const t=st._sentryDebugIds;if(!t)return{};const n=Object.keys(t);return gc&&n.length===J_||(J_=n.length,gc=n.reduce((i,o)=>{yc||(yc={});const s=yc[o];if(s)i[s[0]]=s[1];else{const c=e(o);for(let d=c.length-1;d>=0;d--){const m=c[d],h=m&&m.filename,y=t[o];if(h&&y){i[h]=y,yc[o]=[h,y];break}}}return i},{})),gc}function Zw(e,t){const{fingerprint:n,span:i,breadcrumbs:o,sdkProcessingMetadata:s}=t;Yw(e,t),i&&Ww(e,i),Qw(e,n),qw(e,o),Kw(e,s)}function X_(e,t){const{extra:n,tags:i,user:o,contexts:s,level:c,sdkProcessingMetadata:d,breadcrumbs:m,fingerprint:h,eventProcessors:y,attachments:g,propagationContext:E,transactionName:S,span:$}=t;bc(e,"extra",n),bc(e,"tags",i),bc(e,"user",o),bc(e,"contexts",s),e.sdkProcessingMetadata=Pd(e.sdkProcessingMetadata,d,2),c&&(e.level=c),S&&(e.transactionName=S),$&&(e.span=$),m.length&&(e.breadcrumbs=[...e.breadcrumbs,...m]),h.length&&(e.fingerprint=[...e.fingerprint,...h]),y.length&&(e.eventProcessors=[...e.eventProcessors,...y]),g.length&&(e.attachments=[...e.attachments,...g]),e.propagationContext={...e.propagationContext,...E}}function bc(e,t,n){e[t]=Pd(e[t],n,1)}function Yw(e,t){const{extra:n,tags:i,user:o,contexts:s,level:c,transactionName:d}=t,m=ir(n);m&&Object.keys(m).length&&(e.extra={...m,...e.extra});const h=ir(i);h&&Object.keys(h).length&&(e.tags={...h,...e.tags});const y=ir(o);y&&Object.keys(y).length&&(e.user={...y,...e.user});const g=ir(s);g&&Object.keys(g).length&&(e.contexts={...g,...e.contexts}),c&&(e.level=c),d&&e.type!=="transaction"&&(e.transaction=d)}function qw(e,t){const n=[...e.breadcrumbs||[],...t];e.breadcrumbs=n.length?n:void 0}function Kw(e,t){e.sdkProcessingMetadata={...e.sdkProcessingMetadata,...t}}function Ww(e,t){e.contexts={trace:hw(t),...e.contexts},e.sdkProcessingMetadata={dynamicSamplingContext:xw(t),...e.sdkProcessingMetadata};const n=_E(t),i=R0(n).description;i&&!e.transaction&&e.type==="transaction"&&(e.transaction=i)}function Qw(e,t){e.fingerprint=e.fingerprint?Array.isArray(e.fingerprint)?e.fingerprint:[e.fingerprint]:[],t&&(e.fingerprint=e.fingerprint.concat(t)),e.fingerprint&&!e.fingerprint.length&&delete e.fingerprint}function Jw(e,t,n,i,o,s){const{normalizeDepth:c=3,normalizeMaxBreadth:d=1e3}=e,m={...t,event_id:t.event_id||n.event_id||lr(),timestamp:t.timestamp||Us()},h=n.integrations||e.integrations.map(w=>w.name);Xw(m,e),nT(m,h),o&&o.emit("applyFrameMetadata",t),t.type===void 0&&eT(m,e.stackParser);const y=aT(i,n.captureContext);n.mechanism&&el(m,n.mechanism);const g=o?o.getEventProcessors():[],E=ew().getScopeData();if(s){const w=s.getScopeData();X_(E,w)}if(y){const w=y.getScopeData();X_(E,w)}const S=[...n.attachments||[],...E.attachments];S.length&&(n.attachments=S),Zw(m,E);const $=[...g,...E.eventProcessors];return Dh($,m,n).then(w=>(w&&tT(w),typeof c=="number"&&c>0?rT(w,c,d):w))}function Xw(e,t){const{environment:n,release:i,dist:o,maxValueLength:s=250}=t;e.environment=e.environment||n||O0,!e.release&&i&&(e.release=i),!e.dist&&o&&(e.dist=o),e.message&&(e.message=Go(e.message,s));const c=e.exception&&e.exception.values&&e.exception.values[0];c&&c.value&&(c.value=Go(c.value,s));const d=e.request;d&&d.url&&(d.url=Go(d.url,s))}function eT(e,t){const n=Gw(t);try{e.exception.values.forEach(i=>{i.stacktrace.frames.forEach(o=>{n&&o.filename&&(o.debug_id=n[o.filename])})})}catch{}}function tT(e){const t={};try{e.exception.values.forEach(i=>{i.stacktrace.frames.forEach(o=>{o.debug_id&&(o.abs_path?t[o.abs_path]=o.debug_id:o.filename&&(t[o.filename]=o.debug_id),delete o.debug_id)})})}catch{}if(Object.keys(t).length===0)return;e.debug_meta=e.debug_meta||{},e.debug_meta.images=e.debug_meta.images||[];const n=e.debug_meta.images;Object.entries(t).forEach(([i,o])=>{n.push({type:"sourcemap",code_file:i,debug_id:o})})}function nT(e,t){t.length>0&&(e.sdk=e.sdk||{},e.sdk.integrations=[...e.sdk.integrations||[],...t])}function rT(e,t,n){if(!e)return null;const i={...e,...e.breadcrumbs&&{breadcrumbs:e.breadcrumbs.map(o=>({...o,...o.data&&{data:Qr(o.data,t,n)}}))},...e.user&&{user:Qr(e.user,t,n)},...e.contexts&&{contexts:Qr(e.contexts,t,n)},...e.extra&&{extra:Qr(e.extra,t,n)}};return e.contexts&&e.contexts.trace&&i.contexts&&(i.contexts.trace=e.contexts.trace,e.contexts.trace.data&&(i.contexts.trace.data=Qr(e.contexts.trace.data,t,n))),e.spans&&(i.spans=e.spans.map(o=>({...o,...o.data&&{data:Qr(o.data,t,n)}}))),e.contexts&&e.contexts.flags&&i.contexts&&(i.contexts.flags=Qr(e.contexts.flags,3,n)),i}function aT(e,t){if(!t)return e;const n=e?e.clone():new Qa;return n.update(t),n}function iT(e){if(e)return oT(e)?{captureContext:e}:sT(e)?{captureContext:e}:e}function oT(e){return e instanceof Qa||typeof e=="function"}const lT=["user","level","extra","contexts","tags","fingerprint","requestSession","propagationContext"];function sT(e){return Object.keys(e).some(t=>lT.includes(t))}function ul(e,t){return wr().captureException(e,iT(t))}function CE(e,t){return wr().captureEvent(e,t)}function uT(e,t){Yi().setContext(e,t)}function cT(){return Yi().lastEventId()}function e4(e){const t=Yt(),n=Yi(),i=wr(),{release:o,environment:s=O0}=t&&t.getOptions()||{},{userAgent:c}=st.navigator||{},d=VA({release:o,environment:s,user:i.getUser()||n.getUser(),...c&&{userAgent:c},...e}),m=n.getSession();return m&&m.status==="ok"&&tl(m,{status:"exited"}),AE(),n.setSession(d),i.setSession(d),d}function AE(){const e=Yi(),t=wr(),n=t.getSession()||e.getSession();n&&GA(n),wE(),e.setSession(),t.setSession()}function wE(){const e=Yi(),t=wr(),n=Yt(),i=t.getSession()||e.getSession();i&&n&&n.captureSession(i)}function t4(e=!1){if(e){AE();return}wE()}const dT="7";function TE(e){const t=e.protocol?`${e.protocol}:`:"",n=e.port?`:${e.port}`:"";return`${t}//${e.host}${n}${e.path?`/${e.path}`:""}/api/`}function fT(e){return`${TE(e)}${e.projectId}/envelope/`}function mT(e,t){const n={sentry_version:dT};return e.publicKey&&(n.sentry_key=e.publicKey),t&&(n.sentry_client=`${t.name}/${t.version}`),new URLSearchParams(n).toString()}function pT(e,t,n){return t||`${fT(e)}?${mT(e,n)}`}function hT(e,t){const n=$E(e);if(!n)return"";const i=`${TE(n)}embed/error-page/`;let o=`dsn=${Hs(n)}`;for(const s in t)if(s!=="dsn"&&s!=="onClose")if(s==="user"){const c=t.user;if(!c)continue;c.name&&(o+=`&name=${encodeURIComponent(c.name)}`),c.email&&(o+=`&email=${encodeURIComponent(c.email)}`)}else o+=`&${encodeURIComponent(s)}=${encodeURIComponent(t[s])}`;return`${i}?${o}`}const n4=[];function yT(e){const t={};return e.forEach(n=>{const{name:i}=n,o=t[i];o&&!o.isDefaultInstance&&n.isDefaultInstance||(t[i]=n)}),Object.values(t)}function gT(e){const t=e.defaultIntegrations||[],n=e.integrations;t.forEach(c=>{c.isDefaultInstance=!0});let i;if(Array.isArray(n))i=[...t,...n];else if(typeof n=="function"){const c=n(t);i=Array.isArray(c)?c:[c]}else i=t;const o=yT(i),s=o.findIndex(c=>c.name==="Debug");if(s>-1){const[c]=o.splice(s,1);o.push(c)}return o}function bT(e,t){const n={};return t.forEach(i=>{i&&NE(e,i,n)}),n}function r4(e,t){for(const n of t)n&&n.afterAllSetup&&n.afterAllSetup(e)}function NE(e,t,n){if(n[t.name]){bt&&je.log(`Integration skipped because it was already installed: ${t.name}`);return}if(n[t.name]=t,n4.indexOf(t.name)===-1&&typeof t.setupOnce=="function"&&(t.setupOnce(),n4.push(t.name)),t.setup&&typeof t.setup=="function"&&t.setup(e),typeof t.preprocessEvent=="function"){const i=t.preprocessEvent.bind(t);e.on("preprocessEvent",(o,s)=>i(o,s,e))}if(typeof t.processEvent=="function"){const i=t.processEvent.bind(t),o=Object.assign((s,c)=>i(s,c,e),{id:t.name});e.addEventProcessor(o)}bt&&je.log(`Integration installed: ${t.name}`)}function vT(e){const t=Yt();if(!t){bt&&je.warn(`Cannot add integration "${e.name}" because no SDK Client is available.`);return}t.addIntegration(e)}function _T(e,t,n){const i=[{type:"client_report"},{timestamp:Us(),discarded_events:e}];return Vs(t?{dsn:t}:{},[i])}class hr extends Error{constructor(t,n="warn"){super(t),this.message=t,this.logLevel=n}}const a4="Not capturing exception because it's already been captured.";class ET{constructor(t){if(this._options=t,this._integrations={},this._numProcessing=0,this._outcomes={},this._hooks={},this._eventProcessors=[],t.dsn?this._dsn=$E(t.dsn):bt&&je.warn("No DSN provided, client will not send events."),this._dsn){const o=pT(this._dsn,t.tunnel,t._metadata?t._metadata.sdk:void 0);this._transport=t.transport({tunnel:this._options.tunnel,recordDroppedEvent:this.recordDroppedEvent.bind(this),...t.transportOptions,url:o})}const i=["enableTracing","tracesSampleRate","tracesSampler"].find(o=>o in t&&t[o]==null);i&&Vi(()=>{console.warn(`[Sentry] Deprecation warning: \`${i}\` is set to undefined, which leads to tracing being enabled. In v9, a value of \`undefined\` will result in tracing being disabled.`)})}captureException(t,n,i){const o=lr();if(z_(t))return bt&&je.log(a4),o;const s={event_id:o,...n};return this._process(this.eventFromException(t,s).then(c=>this._captureEvent(c,s,i))),s.event_id}captureMessage(t,n,i,o){const s={event_id:lr(),...i},c=x0(t)?t:String(t),d=C0(t)?this.eventFromMessage(c,n,s):this.eventFromException(t,s);return this._process(d.then(m=>this._captureEvent(m,s,o))),s.event_id}captureEvent(t,n,i){const o=lr();if(n&&n.originalException&&z_(n.originalException))return bt&&je.log(a4),o;const s={event_id:o,...n},d=(t.sdkProcessingMetadata||{}).capturedSpanScope;return this._process(this._captureEvent(t,s,d||i)),s.event_id}captureSession(t){typeof t.release!="string"?bt&&je.warn("Discarded session because of missing or non-string release"):(this.sendSession(t),tl(t,{init:!1}))}getDsn(){return this._dsn}getOptions(){return this._options}getSdkMetadata(){return this._options._metadata}getTransport(){return this._transport}flush(t){const n=this._transport;return n?(this.emit("flush"),this._isClientDoneProcessing(t).then(i=>n.flush(t).then(o=>i&&o))):Oi(!0)}close(t){return this.flush(t).then(n=>(this.getOptions().enabled=!1,this.emit("close"),n))}getEventProcessors(){return this._eventProcessors}addEventProcessor(t){this._eventProcessors.push(t)}init(){(this._isEnabled()||this._options.integrations.some(({name:t})=>t.startsWith("Spotlight")))&&this._setupIntegrations()}getIntegrationByName(t){return this._integrations[t]}addIntegration(t){const n=this._integrations[t.name];NE(this,t,this._integrations),n||r4(this,[t])}sendEvent(t,n={}){this.emit("beforeSendEvent",t,n);let i=Vw(t,this._dsn,this._options._metadata,this._options.tunnel);for(const s of n.attachments||[])i=Lw(i,Iw(s));const o=this.sendEnvelope(i);o&&o.then(s=>this.emit("afterSendEvent",t,s),null)}sendSession(t){const n=Hw(t,this._dsn,this._options._metadata,this._options.tunnel);this.sendEnvelope(n)}recordDroppedEvent(t,n,i){if(this._options.sendClientReports){const o=typeof i=="number"?i:1,s=`${t}:${n}`;bt&&je.log(`Recording outcome: "${s}"${o>1?` (${o} times)`:""}`),this._outcomes[s]=(this._outcomes[s]||0)+o}}on(t,n){const i=this._hooks[t]=this._hooks[t]||[];return i.push(n),()=>{const o=i.indexOf(n);o>-1&&i.splice(o,1)}}emit(t,...n){const i=this._hooks[t];i&&i.forEach(o=>o(...n))}sendEnvelope(t){return this.emit("beforeEnvelope",t),this._isEnabled()&&this._transport?this._transport.send(t).then(null,n=>(bt&&je.error("Error while sending envelope:",n),n)):(bt&&je.error("Transport disabled"),Oi({}))}_setupIntegrations(){const{integrations:t}=this._options;this._integrations=bT(this,t),r4(this,t)}_updateSessionFromEvent(t,n){let i=n.level==="fatal",o=!1;const s=n.exception&&n.exception.values;if(s){o=!0;for(const m of s){const h=m.mechanism;if(h&&h.handled===!1){i=!0;break}}}const c=t.status==="ok";(c&&t.errors===0||c&&i)&&(tl(t,{...i&&{status:"crashed"},errors:t.errors||Number(o||i)}),this.captureSession(t))}_isClientDoneProcessing(t){return new rr(n=>{let i=0;const o=1,s=setInterval(()=>{this._numProcessing==0?(clearInterval(s),n(!0)):(i+=o,t&&i>=t&&(clearInterval(s),n(!1)))},o)})}_isEnabled(){return this.getOptions().enabled!==!1&&this._transport!==void 0}_prepareEvent(t,n,i=wr(),o=Yi()){const s=this.getOptions(),c=Object.keys(this._integrations);return!n.integrations&&c.length>0&&(n.integrations=c),this.emit("preprocessEvent",t,n),t.type||o.setLastEventId(t.event_id||n.event_id),Jw(s,t,n,i,this,o).then(d=>{if(d===null)return d;d.contexts={trace:tw(i),...d.contexts};const m=Dw(this,i);return d.sdkProcessingMetadata={dynamicSamplingContext:m,...d.sdkProcessingMetadata},d})}_captureEvent(t,n={},i){return this._processEvent(t,n,i).then(o=>o.event_id,o=>{bt&&(o instanceof hr&&o.logLevel==="log"?je.log(o.message):je.warn(o))})}_processEvent(t,n,i){const o=this.getOptions(),{sampleRate:s}=o,c=RE(t),d=ME(t),m=t.type||"error",h=`before send for type \`${m}\``,y=typeof s>"u"?void 0:Cw(s);if(d&&typeof y=="number"&&Math.random()>y)return this.recordDroppedEvent("sample_rate","error",t),rd(new hr(`Discarding event because it's not included in the random sample (sampling rate = ${s})`,"log"));const g=m==="replay_event"?"replay":m,S=(t.sdkProcessingMetadata||{}).capturedSpanIsolationScope;return this._prepareEvent(t,n,i,S).then($=>{if($===null)throw this.recordDroppedEvent("event_processor",g,t),new hr("An event processor returned `null`, will not send event.","log");if(n.data&&n.data.__sentry__===!0)return $;const w=$T(this,o,$,n);return ST(w,h)}).then($=>{if($===null){if(this.recordDroppedEvent("before_send",g,t),c){const F=1+(t.spans||[]).length;this.recordDroppedEvent("before_send","span",F)}throw new hr(`${h} returned \`null\`, will not send event.`,"log")}const x=i&&i.getSession();if(!c&&x&&this._updateSessionFromEvent(x,$),c){const R=$.sdkProcessingMetadata&&$.sdkProcessingMetadata.spanCountBeforeProcessing||0,F=$.spans?$.spans.length:0,A=R-F;A>0&&this.recordDroppedEvent("before_send","span",A)}const w=$.transaction_info;if(c&&w&&$.transaction!==t.transaction){const R="custom";$.transaction_info={...w,source:R}}return this.sendEvent($,n),$}).then(null,$=>{throw $ instanceof hr?$:(this.captureException($,{data:{__sentry__:!0},originalException:$}),new hr(`Event processing pipeline threw an error, original event will not be sent. Details have been sent as a new event.
|
|
56
|
-
Reason: ${$}`))})}_process(t){this._numProcessing++,t.then(n=>(this._numProcessing--,n),n=>(this._numProcessing--,n))}_clearOutcomes(){const t=this._outcomes;return this._outcomes={},Object.entries(t).map(([n,i])=>{const[o,s]=n.split(":");return{reason:o,category:s,quantity:i}})}_flushOutcomes(){bt&&je.log("Flushing outcomes...");const t=this._clearOutcomes();if(t.length===0){bt&&je.log("No outcomes to send");return}if(!this._dsn){bt&&je.log("No dsn provided, will not send outcomes");return}bt&&je.log("Sending outcomes:",t);const n=_T(t,this._options.tunnel&&Hs(this._dsn));this.sendEnvelope(n)}}function ST(e,t){const n=`${t} must return \`null\` or a valid event.`;if(Bd(e))return e.then(i=>{if(!Xo(i)&&i!==null)throw new hr(n);return i},i=>{throw new hr(`${t} rejected with ${i}`)});if(!Xo(e)&&e!==null)throw new hr(n);return e}function $T(e,t,n,i){const{beforeSend:o,beforeSendTransaction:s,beforeSendSpan:c}=t;if(ME(n)&&o)return o(n,i);if(RE(n)){if(n.spans&&c){const d=[];for(const m of n.spans){const h=c(m);h?d.push(h):(Ew(),e.recordDroppedEvent("before_send","span"))}n.spans=d}if(s){if(n.spans){const d=n.spans.length;n.sdkProcessingMetadata={...n.sdkProcessingMetadata,spanCountBeforeProcessing:d}}return s(n,i)}}return n}function ME(e){return e.type===void 0}function RE(e){return e.type==="transaction"}function DT(e,t){t.debug===!0&&(bt?je.enable():Vi(()=>{console.warn("[Sentry] Cannot initialize SDK with `debug` option using a non-debug bundle.")})),wr().update(t.initialScope);const i=new e(t);return xT(i),i.init(),i}function xT(e){wr().setClient(e)}function CT(e){const t=[];function n(){return e===void 0||t.length<e}function i(c){return t.splice(t.indexOf(c),1)[0]||Promise.resolve(void 0)}function o(c){if(!n())return rd(new hr("Not adding Promise because buffer limit was reached."));const d=c();return t.indexOf(d)===-1&&t.push(d),d.then(()=>i(d)).then(null,()=>i(d).then(null,()=>{})),d}function s(c){return new rr((d,m)=>{let h=t.length;if(!h)return d(!0);const y=setTimeout(()=>{c&&c>0&&d(!1)},c);t.forEach(g=>{Oi(g).then(()=>{--h||(clearTimeout(y),d(!0))},m)})})}return{$:t,add:o,drain:s}}const AT=60*1e3;function wT(e,t=Date.now()){const n=parseInt(`${e}`,10);if(!isNaN(n))return n*1e3;const i=Date.parse(`${e}`);return isNaN(i)?AT:i-t}function TT(e,t){return e[t]||e.all||0}function NT(e,t,n=Date.now()){return TT(e,t)>n}function MT(e,{statusCode:t,headers:n},i=Date.now()){const o={...e},s=n&&n["x-sentry-rate-limits"],c=n&&n["retry-after"];if(s)for(const d of s.trim().split(",")){const[m,h,,,y]=d.split(":",5),g=parseInt(m,10),E=(isNaN(g)?60:g)*1e3;if(!h)o.all=i+E;else for(const S of h.split(";"))S==="metric_bucket"?(!y||y.split(";").includes("custom"))&&(o[S]=i+E):o[S]=i+E}else c?o.all=i+wT(c,i):t===429&&(o.all=i+60*1e3);return o}const RT=64;function OT(e,t,n=CT(e.bufferSize||RT)){let i={};const o=c=>n.drain(c);function s(c){const d=[];if(W_(c,(g,E)=>{const S=Q_(E);if(NT(i,S)){const $=i4(g,E);e.recordDroppedEvent("ratelimit_backoff",S,$)}else d.push(g)}),d.length===0)return Oi({});const m=Vs(c[0],d),h=g=>{W_(m,(E,S)=>{const $=i4(E,S);e.recordDroppedEvent(g,Q_(S),$)})},y=()=>t({body:Pw(m)}).then(g=>(g.statusCode!==void 0&&(g.statusCode<200||g.statusCode>=300)&&bt&&je.warn(`Sentry responded with status code ${g.statusCode} to sent event.`),i=MT(i,g),g),g=>{throw h("network_error"),g});return n.add(y).then(g=>g,g=>{if(g instanceof hr)return bt&&je.error("Skipped sending event because buffer is full."),h("queue_overflow"),Oi({});throw g})}return{send:s,flush:o}}function i4(e,t){if(!(t!=="event"&&t!=="transaction"))return Array.isArray(e)?e[1]:void 0}function OE(e,t,n=[t],i="npm"){const o=e._metadata||{};o.sdk||(o.sdk={name:`sentry.javascript.${t}`,packages:n.map(s=>({name:`${i}:@sentry/${s}`,version:Ga})),version:Ga}),e._metadata=o}const kT=100;function ki(e,t){const n=Yt(),i=Yi();if(!n)return;const{beforeBreadcrumb:o=null,maxBreadcrumbs:s=kT}=n.getOptions();if(s<=0)return;const d={timestamp:Us(),...e},m=o?Vi(()=>o(d,t)):d;m!==null&&(n.emit&&n.emit("beforeAddBreadcrumb",m,t),i.addBreadcrumb(m,s))}let o4;const BT="FunctionToString",l4=new WeakMap,LT=(()=>({name:BT,setupOnce(){o4=Function.prototype.toString;try{Function.prototype.toString=function(...e){const t=w0(this),n=l4.has(Yt())&&t!==void 0?t:this;return o4.apply(n,e)}}catch{}},setup(e){l4.set(e,!0)}})),PT=LT,FT=[/^Script error\.?$/,/^Javascript error: Script error\.? on line 0$/,/^ResizeObserver loop completed with undelivered notifications.$/,/^Cannot redefine property: googletag$/,/^Can't find variable: gmo$/,"undefined is not an object (evaluating 'a.L')",`can't redefine non-configurable property "solana"`,"vv().getRestrictions is not a function. (In 'vv().getRestrictions(1,a)', 'vv().getRestrictions' is undefined)","Can't find variable: _AutofillCallbackHandler",/^Non-Error promise rejection captured with value: Object Not Found Matching Id:\d+, MethodName:simulateEvent, ParamCount:\d+$/,/^Java exception was raised during method invocation$/],IT="InboundFilters",jT=((e={})=>({name:IT,processEvent(t,n,i){const o=i.getOptions(),s=UT(e,o);return HT(t,s)?null:t}})),zT=jT;function UT(e={},t={}){return{allowUrls:[...e.allowUrls||[],...t.allowUrls||[]],denyUrls:[...e.denyUrls||[],...t.denyUrls||[]],ignoreErrors:[...e.ignoreErrors||[],...t.ignoreErrors||[],...e.disableErrorDefaults?[]:FT],ignoreTransactions:[...e.ignoreTransactions||[],...t.ignoreTransactions||[]],ignoreInternal:e.ignoreInternal!==void 0?e.ignoreInternal:!0}}function HT(e,t){return t.ignoreInternal&&KT(e)?(bt&&je.warn(`Event dropped due to being internal Sentry Error.
|
|
57
|
-
Event: ${Pa(e)}`),!0):VT(e,t.ignoreErrors)?(bt&&je.warn(`Event dropped due to being matched by \`ignoreErrors\` option.
|
|
58
|
-
Event: ${Pa(e)}`),!0):QT(e)?(bt&&je.warn(`Event dropped due to not having an error message, error type or stacktrace.
|
|
59
|
-
Event: ${Pa(e)}`),!0):GT(e,t.ignoreTransactions)?(bt&&je.warn(`Event dropped due to being matched by \`ignoreTransactions\` option.
|
|
60
|
-
Event: ${Pa(e)}`),!0):ZT(e,t.denyUrls)?(bt&&je.warn(`Event dropped due to being matched by \`denyUrls\` option.
|
|
61
|
-
Event: ${Pa(e)}.
|
|
62
|
-
Url: ${ad(e)}`),!0):YT(e,t.allowUrls)?!1:(bt&&je.warn(`Event dropped due to not being matched by \`allowUrls\` option.
|
|
63
|
-
Event: ${Pa(e)}.
|
|
64
|
-
Url: ${ad(e)}`),!0)}function VT(e,t){return e.type||!t||!t.length?!1:qT(e).some(n=>Ld(n,t))}function GT(e,t){if(e.type!=="transaction"||!t||!t.length)return!1;const n=e.transaction;return n?Ld(n,t):!1}function ZT(e,t){if(!t||!t.length)return!1;const n=ad(e);return n?Ld(n,t):!1}function YT(e,t){if(!t||!t.length)return!0;const n=ad(e);return n?Ld(n,t):!0}function qT(e){const t=[];e.message&&t.push(e.message);let n;try{n=e.exception.values[e.exception.values.length-1]}catch{}return n&&n.value&&(t.push(n.value),n.type&&t.push(`${n.type}: ${n.value}`)),t}function KT(e){try{return e.exception.values[0].type==="SentryError"}catch{}return!1}function WT(e=[]){for(let t=e.length-1;t>=0;t--){const n=e[t];if(n&&n.filename!=="<anonymous>"&&n.filename!=="[native code]")return n.filename||null}return null}function ad(e){try{let t;try{t=e.exception.values[0].stacktrace.frames}catch{}return t?WT(t):null}catch{return bt&&je.error(`Cannot extract url for event ${Pa(e)}`),null}}function QT(e){return e.type||!e.exception||!e.exception.values||e.exception.values.length===0?!1:!e.message&&!e.exception.values.some(t=>t.stacktrace||t.type&&t.type!=="Error"||t.value)}function JT(e,t,n=250,i,o,s,c){if(!s.exception||!s.exception.values||!c||!Mi(c.originalException,Error))return;const d=s.exception.values.length>0?s.exception.values[s.exception.values.length-1]:void 0;d&&(s.exception.values=XT(xh(e,t,o,c.originalException,i,s.exception.values,d,0),n))}function xh(e,t,n,i,o,s,c,d){if(s.length>=n+1)return s;let m=[...s];if(Mi(i[o],Error)){s4(c,d);const h=e(t,i[o]),y=m.length;u4(h,o,y,d),m=xh(e,t,n,i[o],o,[h,...m],h,y)}return Array.isArray(i.errors)&&i.errors.forEach((h,y)=>{if(Mi(h,Error)){s4(c,d);const g=e(t,h),E=m.length;u4(g,`errors[${y}]`,E,d),m=xh(e,t,n,h,o,[g,...m],g,E)}}),m}function s4(e,t){e.mechanism=e.mechanism||{type:"generic",handled:!0},e.mechanism={...e.mechanism,...e.type==="AggregateError"&&{is_exception_group:!0},exception_id:t}}function u4(e,t,n,i){e.mechanism=e.mechanism||{type:"generic",handled:!0},e.mechanism={...e.mechanism,type:"chained",source:t,exception_id:n,parent_id:i}}function XT(e,t){return e.map(n=>(n.value&&(n.value=Go(n.value,t)),n))}function Cp(e){if(!e)return{};const t=e.match(/^(([^:/?#]+):)?(\/\/([^/?#]*))?([^?#]*)(\?([^#]*))?(#(.*))?$/);if(!t)return{};const n=t[6]||"",i=t[8]||"";return{host:t[4],path:t[5],protocol:t[2],search:n,hash:i,relative:t[5]+n+i}}function e9(e){const t="console";Gi(t,e),Zi(t,t9)}function t9(){"console"in st&&gh.forEach(function(e){e in st.console&&zn(st.console,e,function(t){return nd[e]=t,function(...n){yr("console",{args:n,level:e});const o=nd[e];o&&o.apply(st.console,n)}})})}function n9(e){return e==="warn"?"warning":["fatal","error","warning","log","info","debug"].includes(e)?e:"log"}const r9="Dedupe",a9=(()=>{let e;return{name:r9,processEvent(t){if(t.type)return t;try{if(o9(t,e))return bt&&je.warn("Event dropped due to being a duplicate of previously captured event."),null}catch{}return e=t}}}),i9=a9;function o9(e,t){return t?!!(l9(e,t)||s9(e,t)):!1}function l9(e,t){const n=e.message,i=t.message;return!(!n&&!i||n&&!i||!n&&i||n!==i||!BE(e,t)||!kE(e,t))}function s9(e,t){const n=c4(t),i=c4(e);return!(!n||!i||n.type!==i.type||n.value!==i.value||!BE(e,t)||!kE(e,t))}function kE(e,t){let n=B_(e),i=B_(t);if(!n&&!i)return!0;if(n&&!i||!n&&i||(n=n,i=i,i.length!==n.length))return!1;for(let o=0;o<i.length;o++){const s=i[o],c=n[o];if(s.filename!==c.filename||s.lineno!==c.lineno||s.colno!==c.colno||s.function!==c.function)return!1}return!0}function BE(e,t){let n=e.fingerprint,i=t.fingerprint;if(!n&&!i)return!0;if(n&&!i||!n&&i)return!1;n=n,i=i;try{return n.join("")===i.join("")}catch{return!1}}function c4(e){return e.exception&&e.exception.values&&e.exception.values[0]}function LE(e){if(e!==void 0)return e>=400&&e<500?"warning":e>=500?"error":void 0}const Ch=st;function PE(){if(!("fetch"in Ch))return!1;try{return new Headers,new Request("http://www.example.com"),new Response,!0}catch{return!1}}function Ah(e){return e&&/^function\s+\w+\(\)\s+\{\s+\[native code\]\s+\}$/.test(e.toString())}function u9(){if(typeof EdgeRuntime=="string")return!0;if(!PE())return!1;if(Ah(Ch.fetch))return!0;let e=!1;const t=Ch.document;if(t&&typeof t.createElement=="function")try{const n=t.createElement("iframe");n.hidden=!0,t.head.appendChild(n),n.contentWindow&&n.contentWindow.fetch&&(e=Ah(n.contentWindow.fetch)),t.head.removeChild(n)}catch(n){Hi&&je.warn("Could not create sandbox iframe for pure fetch check, bailing to window.fetch: ",n)}return e}function c9(e,t){const n="fetch";Gi(n,e),Zi(n,()=>d9(void 0,t))}function d9(e,t=!1){t&&!u9()||zn(st,"fetch",function(n){return function(...i){const o=new Error,{method:s,url:c}=f9(i),d={args:i,fetchData:{method:s,url:c},startTimestamp:ia()*1e3,virtualError:o};return yr("fetch",{...d}),n.apply(st,i).then(async m=>(yr("fetch",{...d,endTimestamp:ia()*1e3,response:m}),m),m=>{throw yr("fetch",{...d,endTimestamp:ia()*1e3,error:m}),Od(m)&&m.stack===void 0&&(m.stack=o.stack,Ri(m,"framesToPop",1)),m})}})}function wh(e,t){return!!e&&typeof e=="object"&&!!e[t]}function d4(e){return typeof e=="string"?e:e?wh(e,"url")?e.url:e.toString?e.toString():"":""}function f9(e){if(e.length===0)return{method:"GET",url:""};if(e.length===2){const[n,i]=e;return{url:d4(n),method:wh(i,"method")?String(i.method).toUpperCase():"GET"}}const t=e[0];return{url:d4(t),method:wh(t,"method")?String(t.method).toUpperCase():"GET"}}function m9(){return"npm"}const vc=st;function p9(){const e=vc.chrome,t=e&&e.app&&e.app.runtime,n="history"in vc&&!!vc.history.pushState&&!!vc.history.replaceState;return!t&&n}const Ke=st;let Th=0;function FE(){return Th>0}function h9(){Th++,setTimeout(()=>{Th--})}function rl(e,t={}){function n(o){return typeof o=="function"}if(!n(e))return e;try{const o=e.__sentry_wrapped__;if(o)return typeof o=="function"?o:e;if(w0(e))return e}catch{return e}const i=function(...o){try{const s=o.map(c=>rl(c,t));return e.apply(this,s)}catch(s){throw h9(),M0(c=>{c.addEventProcessor(d=>(t.mechanism&&(vh(d,void 0),el(d,t.mechanism)),d.extra={...d.extra,arguments:o},d)),ul(s)}),s}};try{for(const o in e)Object.prototype.hasOwnProperty.call(e,o)&&(i[o]=e[o])}catch{}yE(i,e),Ri(e,"__sentry_wrapped__",i);try{Object.getOwnPropertyDescriptor(i,"name").configurable&&Object.defineProperty(i,"name",{get(){return e.name}})}catch{}return i}const Za=typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__;function k0(e,t){const n=B0(e,t),i={type:_9(t),value:E9(t)};return n.length&&(i.stacktrace={frames:n}),i.type===void 0&&i.value===""&&(i.value="Unrecoverable error caught"),i}function y9(e,t,n,i){const o=Yt(),s=o&&o.getOptions().normalizeDepth,c=C9(t),d={__serialized__:DE(t,s)};if(c)return{exception:{values:[k0(e,c)]},extra:d};const m={exception:{values:[{type:kd(t)?t.constructor.name:i?"UnhandledRejection":"Error",value:D9(t,{isUnhandledRejection:i})}]},extra:d};if(n){const h=B0(e,n);h.length&&(m.exception.values[0].stacktrace={frames:h})}return m}function Ap(e,t){return{exception:{values:[k0(e,t)]}}}function B0(e,t){const n=t.stacktrace||t.stack||"",i=b9(t),o=v9(t);try{return e(n,i,o)}catch{}return[]}const g9=/Minified React error #\d+;/i;function b9(e){return e&&g9.test(e.message)?1:0}function v9(e){return typeof e.framesToPop=="number"?e.framesToPop:0}function IE(e){return typeof WebAssembly<"u"&&typeof WebAssembly.Exception<"u"?e instanceof WebAssembly.Exception:!1}function _9(e){const t=e&&e.name;return!t&&IE(e)?e.message&&Array.isArray(e.message)&&e.message.length==2?e.message[0]:"WebAssembly.Exception":t}function E9(e){const t=e&&e.message;return t?t.error&&typeof t.error.message=="string"?t.error.message:IE(e)&&Array.isArray(e.message)&&e.message.length==2?e.message[1]:t:"No error message"}function S9(e,t,n,i){const o=n&&n.syntheticException||void 0,s=L0(e,t,o,i);return el(s),s.level="error",n&&n.event_id&&(s.event_id=n.event_id),Oi(s)}function $9(e,t,n="info",i,o){const s=i&&i.syntheticException||void 0,c=Nh(e,t,s,o);return c.level=n,i&&i.event_id&&(c.event_id=i.event_id),Oi(c)}function L0(e,t,n,i,o){let s;if(mE(t)&&t.error)return Ap(e,t.error);if(P_(t)||MA(t)){const c=t;if("stack"in t)s=Ap(e,t);else{const d=c.name||(P_(c)?"DOMError":"DOMException"),m=c.message?`${d}: ${c.message}`:d;s=Nh(e,m,n,i),vh(s,m)}return"code"in c&&(s.tags={...s.tags,"DOMException.code":`${c.code}`}),s}return Od(t)?Ap(e,t):Xo(t)||kd(t)?(s=y9(e,t,n,o),el(s,{synthetic:!0}),s):(s=Nh(e,t,n,i),vh(s,`${t}`),el(s,{synthetic:!0}),s)}function Nh(e,t,n,i){const o={};if(i&&n){const s=B0(e,n);s.length&&(o.exception={values:[{value:t,stacktrace:{frames:s}}]}),el(o,{synthetic:!0})}if(x0(t)){const{__sentry_template_string__:s,__sentry_template_values__:c}=t;return o.logentry={message:s,params:c},o}return o.message=t,o}function D9(e,{isUnhandledRejection:t}){const n=jA(e),i=t?"promise rejection":"exception";return mE(e)?`Event \`ErrorEvent\` captured as ${i} with message \`${e.message}\``:kd(e)?`Event \`${x9(e)}\` (type=${e.type}) captured as ${i}`:`Object captured as ${i} with keys: ${n}`}function x9(e){try{const t=Object.getPrototypeOf(e);return t?t.constructor.name:void 0}catch{}}function C9(e){for(const t in e)if(Object.prototype.hasOwnProperty.call(e,t)){const n=e[t];if(n instanceof Error)return n}}function A9(e,{metadata:t,tunnel:n,dsn:i}){const o={event_id:e.event_id,sent_at:new Date().toISOString(),...t&&t.sdk&&{sdk:{name:t.sdk.name,version:t.sdk.version}},...!!n&&!!i&&{dsn:Hs(i)}},s=w9(e);return Vs(o,[s])}function w9(e){return[{type:"user_report"},e]}class T9 extends ET{constructor(t){const n={parentSpanIsAlwaysRootSpan:!0,...t},i=Ke.SENTRY_SDK_SOURCE||m9();OE(n,"browser",["browser"],i),super(n),n.sendClientReports&&Ke.document&&Ke.document.addEventListener("visibilitychange",()=>{Ke.document.visibilityState==="hidden"&&this._flushOutcomes()})}eventFromException(t,n){return S9(this._options.stackParser,t,n,this._options.attachStacktrace)}eventFromMessage(t,n="info",i){return $9(this._options.stackParser,t,n,i,this._options.attachStacktrace)}captureUserFeedback(t){if(!this._isEnabled()){Za&&je.warn("SDK not enabled, will not capture user feedback.");return}const n=A9(t,{metadata:this.getSdkMetadata(),dsn:this.getDsn(),tunnel:this.getOptions().tunnel});this.sendEnvelope(n)}_prepareEvent(t,n,i){return t.platform=t.platform||"javascript",super._prepareEvent(t,n,i)}}const N9=typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__,fn=st,M9=1e3;let f4,Mh,Rh;function R9(e){Gi("dom",e),Zi("dom",O9)}function O9(){if(!fn.document)return;const e=yr.bind(null,"dom"),t=m4(e,!0);fn.document.addEventListener("click",t,!1),fn.document.addEventListener("keypress",t,!1),["EventTarget","Node"].forEach(n=>{const o=fn[n],s=o&&o.prototype;!s||!s.hasOwnProperty||!s.hasOwnProperty("addEventListener")||(zn(s,"addEventListener",function(c){return function(d,m,h){if(d==="click"||d=="keypress")try{const y=this.__sentry_instrumentation_handlers__=this.__sentry_instrumentation_handlers__||{},g=y[d]=y[d]||{refCount:0};if(!g.handler){const E=m4(e);g.handler=E,c.call(this,d,E,h)}g.refCount++}catch{}return c.call(this,d,m,h)}}),zn(s,"removeEventListener",function(c){return function(d,m,h){if(d==="click"||d=="keypress")try{const y=this.__sentry_instrumentation_handlers__||{},g=y[d];g&&(g.refCount--,g.refCount<=0&&(c.call(this,d,g.handler,h),g.handler=void 0,delete y[d]),Object.keys(y).length===0&&delete this.__sentry_instrumentation_handlers__)}catch{}return c.call(this,d,m,h)}}))})}function k9(e){if(e.type!==Mh)return!1;try{if(!e.target||e.target._sentryId!==Rh)return!1}catch{}return!0}function B9(e,t){return e!=="keypress"?!1:!t||!t.tagName?!0:!(t.tagName==="INPUT"||t.tagName==="TEXTAREA"||t.isContentEditable)}function m4(e,t=!1){return n=>{if(!n||n._sentryCaptured)return;const i=L9(n);if(B9(n.type,i))return;Ri(n,"_sentryCaptured",!0),i&&!i._sentryId&&Ri(i,"_sentryId",lr());const o=n.type==="keypress"?"input":n.type;k9(n)||(e({event:n,name:o,global:t}),Mh=n.type,Rh=i?i._sentryId:void 0),clearTimeout(f4),f4=fn.setTimeout(()=>{Rh=void 0,Mh=void 0},M9)}}function L9(e){try{return e.target}catch{return null}}let _c;function jE(e){const t="history";Gi(t,e),Zi(t,P9)}function P9(){if(!p9())return;const e=fn.onpopstate;fn.onpopstate=function(...n){const i=fn.location.href,o=_c;if(_c=i,yr("history",{from:o,to:i}),e)try{return e.apply(this,n)}catch{}};function t(n){return function(...i){const o=i.length>2?i[2]:void 0;if(o){const s=_c,c=String(o);_c=c,yr("history",{from:s,to:c})}return n.apply(this,i)}}zn(fn.history,"pushState",t),zn(fn.history,"replaceState",t)}const zc={};function F9(e){const t=zc[e];if(t)return t;let n=fn[e];if(Ah(n))return zc[e]=n.bind(fn);const i=fn.document;if(i&&typeof i.createElement=="function")try{const o=i.createElement("iframe");o.hidden=!0,i.head.appendChild(o);const s=o.contentWindow;s&&s[e]&&(n=s[e]),i.head.removeChild(o)}catch(o){N9&&je.warn(`Could not create sandbox iframe for ${e} check, bailing to window.${e}: `,o)}return n&&(zc[e]=n.bind(fn))}function p4(e){zc[e]=void 0}const hs="__sentry_xhr_v3__";function I9(e){Gi("xhr",e),Zi("xhr",j9)}function j9(){if(!fn.XMLHttpRequest)return;const e=XMLHttpRequest.prototype;e.open=new Proxy(e.open,{apply(t,n,i){const o=new Error,s=ia()*1e3,c=aa(i[0])?i[0].toUpperCase():void 0,d=z9(i[1]);if(!c||!d)return t.apply(n,i);n[hs]={method:c,url:d,request_headers:{}},c==="POST"&&d.match(/sentry_key/)&&(n.__sentry_own_request__=!0);const m=()=>{const h=n[hs];if(h&&n.readyState===4){try{h.status_code=n.status}catch{}const y={endTimestamp:ia()*1e3,startTimestamp:s,xhr:n,virtualError:o};yr("xhr",y)}};return"onreadystatechange"in n&&typeof n.onreadystatechange=="function"?n.onreadystatechange=new Proxy(n.onreadystatechange,{apply(h,y,g){return m(),h.apply(y,g)}}):n.addEventListener("readystatechange",m),n.setRequestHeader=new Proxy(n.setRequestHeader,{apply(h,y,g){const[E,S]=g,$=y[hs];return $&&aa(E)&&aa(S)&&($.request_headers[E.toLowerCase()]=S),h.apply(y,g)}}),t.apply(n,i)}}),e.send=new Proxy(e.send,{apply(t,n,i){const o=n[hs];if(!o)return t.apply(n,i);i[0]!==void 0&&(o.body=i[0]);const s={startTimestamp:ia()*1e3,xhr:n};return yr("xhr",s),t.apply(n,i)}})}function z9(e){if(aa(e))return e;try{return e.toString()}catch{}}function U9(e,t=F9("fetch")){let n=0,i=0;function o(s){const c=s.body.length;n+=c,i++;const d={body:s.body,method:"POST",referrerPolicy:"origin",headers:e.headers,keepalive:n<=6e4&&i<15,...e.fetchOptions};if(!t)return p4("fetch"),rd("No fetch implementation available");try{return t(e.url,d).then(m=>(n-=c,i--,{statusCode:m.status,headers:{"x-sentry-rate-limits":m.headers.get("X-Sentry-Rate-Limits"),"retry-after":m.headers.get("Retry-After")}}))}catch(m){return p4("fetch"),n-=c,i--,rd(m)}}return OT(e,o)}const H9=30,V9=50;function Oh(e,t,n,i){const o={filename:e,function:t==="<anonymous>"?Ni:t,in_app:!0};return n!==void 0&&(o.lineno=n),i!==void 0&&(o.colno=i),o}const G9=/^\s*at (\S+?)(?::(\d+))(?::(\d+))\s*$/i,Z9=/^\s*at (?:(.+?\)(?: \[.+\])?|.*?) ?\((?:address at )?)?(?:async )?((?:<anonymous>|[-a-z]+:|.*bundle|\/)?.*?)(?::(\d+))?(?::(\d+))?\)?\s*$/i,Y9=/\((\S*)(?::(\d+))(?::(\d+))\)/,q9=e=>{const t=G9.exec(e);if(t){const[,i,o,s]=t;return Oh(i,Ni,+o,+s)}const n=Z9.exec(e);if(n){if(n[2]&&n[2].indexOf("eval")===0){const c=Y9.exec(n[2]);c&&(n[2]=c[1],n[3]=c[2],n[4]=c[3])}const[o,s]=zE(n[1]||Ni,n[2]);return Oh(s,o,n[3]?+n[3]:void 0,n[4]?+n[4]:void 0)}},K9=[H9,q9],W9=/^\s*(.*?)(?:\((.*?)\))?(?:^|@)?((?:[-a-z]+)?:\/.*?|\[native code\]|[^@]*(?:bundle|\d+\.js)|\/[\w\-. /=]+)(?::(\d+))?(?::(\d+))?\s*$/i,Q9=/(\S+) line (\d+)(?: > eval line \d+)* > eval/i,J9=e=>{const t=W9.exec(e);if(t){if(t[3]&&t[3].indexOf(" > eval")>-1){const s=Q9.exec(t[3]);s&&(t[1]=t[1]||"eval",t[3]=s[1],t[4]=s[2],t[5]="")}let i=t[3],o=t[1]||Ni;return[o,i]=zE(o,i),Oh(i,o,t[4]?+t[4]:void 0,t[5]?+t[5]:void 0)}},X9=[V9,J9],e7=[K9,X9],t7=dE(...e7),zE=(e,t)=>{const n=e.indexOf("safari-extension")!==-1,i=e.indexOf("safari-web-extension")!==-1;return n||i?[e.indexOf("@")!==-1?e.split("@")[0]:Ni,n?`safari-extension:${t}`:`safari-web-extension:${t}`]:[e,t]},Ec=1024,n7="Breadcrumbs",r7=((e={})=>{const t={console:!0,dom:!0,fetch:!0,history:!0,sentry:!0,xhr:!0,...e};return{name:n7,setup(n){t.console&&e9(l7(n)),t.dom&&R9(o7(n,t.dom)),t.xhr&&I9(s7(n)),t.fetch&&c9(u7(n)),t.history&&jE(c7(n)),t.sentry&&n.on("beforeSendEvent",i7(n))}}}),a7=r7;function i7(e){return function(n){Yt()===e&&ki({category:`sentry.${n.type==="transaction"?"transaction":"event"}`,event_id:n.event_id,level:n.level,message:Pa(n)},{event:n})}}function o7(e,t){return function(i){if(Yt()!==e)return;let o,s,c=typeof t=="object"?t.serializeAttribute:void 0,d=typeof t=="object"&&typeof t.maxStringLength=="number"?t.maxStringLength:void 0;d&&d>Ec&&(Za&&je.warn(`\`dom.maxStringLength\` cannot exceed ${Ec}, but a value of ${d} was configured. Sentry will use ${Ec} instead.`),d=Ec),typeof c=="string"&&(c=[c]);try{const h=i.event,y=d7(h)?h.target:h;o=hE(y,{keyAttrs:c,maxStringLength:d}),s=FA(y)}catch{o="<unknown>"}if(o.length===0)return;const m={category:`ui.${i.name}`,message:o};s&&(m.data={"ui.component_name":s}),ki(m,{event:i.event,name:i.name,global:i.global})}}function l7(e){return function(n){if(Yt()!==e)return;const i={category:"console",data:{arguments:n.args,logger:"console"},level:n9(n.level),message:F_(n.args," ")};if(n.level==="assert")if(n.args[0]===!1)i.message=`Assertion failed: ${F_(n.args.slice(1)," ")||"console.assert"}`,i.data.arguments=n.args.slice(1);else return;ki(i,{input:n.args,level:n.level})}}function s7(e){return function(n){if(Yt()!==e)return;const{startTimestamp:i,endTimestamp:o}=n,s=n.xhr[hs];if(!i||!o||!s)return;const{method:c,url:d,status_code:m,body:h}=s,y={method:c,url:d,status_code:m},g={xhr:n.xhr,input:h,startTimestamp:i,endTimestamp:o},E=LE(m);ki({category:"xhr",data:y,type:"http",level:E},g)}}function u7(e){return function(n){if(Yt()!==e)return;const{startTimestamp:i,endTimestamp:o}=n;if(o&&!(n.fetchData.url.match(/sentry_key/)&&n.fetchData.method==="POST"))if(n.error){const s=n.fetchData,c={data:n.error,input:n.args,startTimestamp:i,endTimestamp:o};ki({category:"fetch",data:s,level:"error",type:"http"},c)}else{const s=n.response,c={...n.fetchData,status_code:s&&s.status},d={input:n.args,response:s,startTimestamp:i,endTimestamp:o},m=LE(c.status_code);ki({category:"fetch",data:c,type:"http",level:m},d)}}}function c7(e){return function(n){if(Yt()!==e)return;let i=n.from,o=n.to;const s=Cp(Ke.location.href);let c=i?Cp(i):void 0;const d=Cp(o);(!c||!c.path)&&(c=s),s.protocol===d.protocol&&s.host===d.host&&(o=d.relative),s.protocol===c.protocol&&s.host===c.host&&(i=c.relative),ki({category:"navigation",data:{from:i,to:o}})}}function d7(e){return!!e&&!!e.target}const f7=["EventTarget","Window","Node","ApplicationCache","AudioTrackList","BroadcastChannel","ChannelMergerNode","CryptoOperation","EventSource","FileReader","HTMLUnknownElement","IDBDatabase","IDBRequest","IDBTransaction","KeyOperation","MediaController","MessagePort","ModalWindow","Notification","SVGElementInstance","Screen","SharedWorker","TextTrack","TextTrackCue","TextTrackList","WebSocket","WebSocketWorker","Worker","XMLHttpRequest","XMLHttpRequestEventTarget","XMLHttpRequestUpload"],m7="BrowserApiErrors",p7=((e={})=>{const t={XMLHttpRequest:!0,eventTarget:!0,requestAnimationFrame:!0,setInterval:!0,setTimeout:!0,...e};return{name:m7,setupOnce(){t.setTimeout&&zn(Ke,"setTimeout",h4),t.setInterval&&zn(Ke,"setInterval",h4),t.requestAnimationFrame&&zn(Ke,"requestAnimationFrame",y7),t.XMLHttpRequest&&"XMLHttpRequest"in Ke&&zn(XMLHttpRequest.prototype,"send",g7);const n=t.eventTarget;n&&(Array.isArray(n)?n:f7).forEach(b7)}}}),h7=p7;function h4(e){return function(...t){const n=t[0];return t[0]=rl(n,{mechanism:{data:{function:Wa(e)},handled:!1,type:"instrument"}}),e.apply(this,t)}}function y7(e){return function(t){return e.apply(this,[rl(t,{mechanism:{data:{function:"requestAnimationFrame",handler:Wa(e)},handled:!1,type:"instrument"}})])}}function g7(e){return function(...t){const n=this;return["onload","onerror","onprogress","onreadystatechange"].forEach(o=>{o in n&&typeof n[o]=="function"&&zn(n,o,function(s){const c={mechanism:{data:{function:o,handler:Wa(s)},handled:!1,type:"instrument"}},d=w0(s);return d&&(c.mechanism.data.handler=Wa(d)),rl(s,c)})}),e.apply(this,t)}}function b7(e){const n=Ke[e],i=n&&n.prototype;!i||!i.hasOwnProperty||!i.hasOwnProperty("addEventListener")||(zn(i,"addEventListener",function(o){return function(s,c,d){try{v7(c)&&(c.handleEvent=rl(c.handleEvent,{mechanism:{data:{function:"handleEvent",handler:Wa(c),target:e},handled:!1,type:"instrument"}}))}catch{}return o.apply(this,[s,rl(c,{mechanism:{data:{function:"addEventListener",handler:Wa(c),target:e},handled:!1,type:"instrument"}}),d])}}),zn(i,"removeEventListener",function(o){return function(s,c,d){try{const m=c.__sentry_wrapped__;m&&o.call(this,s,m,d)}catch{}return o.call(this,s,c,d)}}))}function v7(e){return typeof e.handleEvent=="function"}const _7=()=>({name:"BrowserSession",setupOnce(){if(typeof Ke.document>"u"){Za&&je.warn("Using the `browserSessionIntegration` in non-browser environments is not supported.");return}e4({ignoreDuration:!0}),t4(),jE(({from:e,to:t})=>{e!==void 0&&e!==t&&(e4({ignoreDuration:!0}),t4())})}}),E7="GlobalHandlers",S7=((e={})=>{const t={onerror:!0,onunhandledrejection:!0,...e};return{name:E7,setupOnce(){Error.stackTraceLimit=50},setup(n){t.onerror&&(D7(n),y4("onerror")),t.onunhandledrejection&&(x7(n),y4("onunhandledrejection"))}}}),$7=S7;function D7(e){AA(t=>{const{stackParser:n,attachStacktrace:i}=UE();if(Yt()!==e||FE())return;const{msg:o,url:s,line:c,column:d,error:m}=t,h=w7(L0(n,m||o,void 0,i,!1),s,c,d);h.level="error",CE(h,{originalException:m,mechanism:{handled:!1,type:"onerror"}})})}function x7(e){TA(t=>{const{stackParser:n,attachStacktrace:i}=UE();if(Yt()!==e||FE())return;const o=C7(t),s=C0(o)?A7(o):L0(n,o,void 0,i,!0);s.level="error",CE(s,{originalException:o,mechanism:{handled:!1,type:"onunhandledrejection"}})})}function C7(e){if(C0(e))return e;try{if("reason"in e)return e.reason;if("detail"in e&&"reason"in e.detail)return e.detail.reason}catch{}return e}function A7(e){return{exception:{values:[{type:"UnhandledRejection",value:`Non-Error promise rejection captured with value: ${String(e)}`}]}}}function w7(e,t,n,i){const o=e.exception=e.exception||{},s=o.values=o.values||[],c=s[0]=s[0]||{},d=c.stacktrace=c.stacktrace||{},m=d.frames=d.frames||[],h=i,y=n,g=aa(t)&&t.length>0?t:PA();return m.length===0&&m.push({colno:h,filename:g,function:Ni,in_app:!0,lineno:y}),e}function y4(e){Za&&je.log(`Global Handler attached: ${e}`)}function UE(){const e=Yt();return e&&e.getOptions()||{stackParser:()=>[],attachStacktrace:!1}}const T7=()=>({name:"HttpContext",preprocessEvent(e){if(!Ke.navigator&&!Ke.location&&!Ke.document)return;const t=e.request&&e.request.url||Ke.location&&Ke.location.href,{referrer:n}=Ke.document||{},{userAgent:i}=Ke.navigator||{},o={...e.request&&e.request.headers,...n&&{Referer:n},...i&&{"User-Agent":i}},s={...e.request,...t&&{url:t},headers:o};e.request=s}}),N7="cause",M7=5,R7="LinkedErrors",O7=((e={})=>{const t=e.limit||M7,n=e.key||N7;return{name:R7,preprocessEvent(i,o,s){const c=s.getOptions();JT(k0,c.stackParser,c.maxValueLength,n,t,i,o)}}}),k7=O7;function B7(e){const t=[zT(),PT(),h7(),a7(),$7(),k7(),i9(),T7()];return e.autoSessionTracking!==!1&&t.push(_7()),t}function L7(e={}){const t={defaultIntegrations:B7(e),release:typeof __SENTRY_RELEASE__=="string"?__SENTRY_RELEASE__:Ke.SENTRY_RELEASE&&Ke.SENTRY_RELEASE.id?Ke.SENTRY_RELEASE.id:void 0,autoSessionTracking:!0,sendClientReports:!0};return e.defaultIntegrations==null&&delete e.defaultIntegrations,{...t,...e}}function P7(){const e=typeof Ke.window<"u"&&Ke;if(!e)return!1;const t=e.chrome?"chrome":"browser",n=e[t],i=n&&n.runtime&&n.runtime.id,o=Ke.location&&Ke.location.href||"",s=["chrome-extension:","moz-extension:","ms-browser-extension:","safari-web-extension:"],c=!!i&&Ke===Ke.top&&s.some(m=>o.startsWith(`${m}//`)),d=typeof e.nw<"u";return!!i&&!c&&!d}function F7(e={}){const t=L7(e);if(!t.skipBrowserExtensionCheck&&P7()){Vi(()=>{console.error("[Sentry] You cannot run Sentry this way in a browser extension, check: https://docs.sentry.io/platforms/javascript/best-practices/browser-extensions/")});return}Za&&(PE()||je.warn("No Fetch API detected. The Sentry SDK requires a Fetch API compatible environment to send events. Please add a Fetch API polyfill."));const n={...t,stackParser:xA(t.stackParser||t7),integrations:gT(t),transport:t.transport||U9};return DT(T9,n)}function g4(e={}){if(!Ke.document){Za&&je.error("Global document not defined in showReportDialog call");return}const t=wr(),n=t.getClient(),i=n&&n.getDsn();if(!i){Za&&je.error("DSN not configured for showReportDialog call");return}if(t&&(e.user={...t.getUser(),...e.user}),!e.eventId){const d=cT();d&&(e.eventId=d)}const o=Ke.document.createElement("script");o.async=!0,o.crossOrigin="anonymous",o.src=hT(i,e),e.onLoad&&(o.onload=e.onLoad);const{onClose:s}=e;if(s){const d=m=>{if(m.data==="__sentry_reportdialog_closed__")try{s()}finally{Ke.removeEventListener("message",d)}};Ke.addEventListener("message",d)}const c=Ke.document.head||Ke.document.body;c?c.appendChild(o):Za&&je.error("Not injecting report dialog. No injection point found in HTML")}const I7={replayIntegration:"replay",replayCanvasIntegration:"replay-canvas",feedbackIntegration:"feedback",feedbackModalIntegration:"feedback-modal",feedbackScreenshotIntegration:"feedback-screenshot",captureConsoleIntegration:"captureconsole",contextLinesIntegration:"contextlines",linkedErrorsIntegration:"linkederrors",debugIntegration:"debug",dedupeIntegration:"dedupe",extraErrorDataIntegration:"extraerrordata",httpClientIntegration:"httpclient",reportingObserverIntegration:"reportingobserver",rewriteFramesIntegration:"rewriteframes",sessionTimingIntegration:"sessiontiming",browserProfilingIntegration:"browserprofiling",moduleMetadataIntegration:"modulemetadata"},b4=Ke;async function j7(e,t){const n=I7[e],i=b4.Sentry=b4.Sentry||{},o=i[e];if(typeof o=="function"&&!("_isShim"in o))return o;const s=z7(n),c=Ke.document.createElement("script");c.src=s,c.crossOrigin="anonymous",c.referrerPolicy="origin";const d=new Promise((g,E)=>{c.addEventListener("load",()=>g()),c.addEventListener("error",E)}),m=Ke.document.currentScript,h=Ke.document.body||Ke.document.head||m&&m.parentElement;if(h)h.appendChild(c);else throw new Error(`Could not find parent element to insert lazy-loaded ${e} script`);try{await d}catch{throw new Error(`Error when loading integration: ${e}`)}const y=i[e];if(typeof y!="function")throw new Error(`Could not load integration: ${e}`);return y}function z7(e){const t=Yt(),n=t&&t.getOptions(),i=n&&n.cdnBaseUrl||"https://browser.sentry-cdn.com";return new URL(`/${Ga}/${e}.min.js`,i).toString()}function U7(e){const t={...e};return OE(t,"react"),uT("react",{version:b.version}),F7(t)}function H7(e){const t=e.match(/^([^.]+)/);return t!==null&&parseInt(t[0])>=17}function V7(e,t){const n=new WeakSet;function i(o,s){if(!n.has(o)){if(o.cause)return n.add(o),i(o.cause,s);o.cause=s}}i(e,t)}function G7(e,{componentStack:t},n){if(H7(b.version)&&Od(e)&&t){const i=new Error(e.message);i.name=`React ErrorBoundary ${e.name}`,i.stack=t,V7(e,i)}return ul(e,{...n,captureContext:{contexts:{react:{componentStack:t}}}})}var wp={exports:{}},ut={};/** @license React v16.13.1
|
|
65
|
-
* react-is.production.min.js
|
|
66
|
-
*
|
|
67
|
-
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
68
|
-
*
|
|
69
|
-
* This source code is licensed under the MIT license found in the
|
|
70
|
-
* LICENSE file in the root directory of this source tree.
|
|
71
|
-
*/var v4;function Z7(){if(v4)return ut;v4=1;var e=typeof Symbol=="function"&&Symbol.for,t=e?Symbol.for("react.element"):60103,n=e?Symbol.for("react.portal"):60106,i=e?Symbol.for("react.fragment"):60107,o=e?Symbol.for("react.strict_mode"):60108,s=e?Symbol.for("react.profiler"):60114,c=e?Symbol.for("react.provider"):60109,d=e?Symbol.for("react.context"):60110,m=e?Symbol.for("react.async_mode"):60111,h=e?Symbol.for("react.concurrent_mode"):60111,y=e?Symbol.for("react.forward_ref"):60112,g=e?Symbol.for("react.suspense"):60113,E=e?Symbol.for("react.suspense_list"):60120,S=e?Symbol.for("react.memo"):60115,$=e?Symbol.for("react.lazy"):60116,x=e?Symbol.for("react.block"):60121,w=e?Symbol.for("react.fundamental"):60117,R=e?Symbol.for("react.responder"):60118,F=e?Symbol.for("react.scope"):60119;function A(M){if(typeof M=="object"&&M!==null){var Z=M.$$typeof;switch(Z){case t:switch(M=M.type,M){case m:case h:case i:case s:case o:case g:return M;default:switch(M=M&&M.$$typeof,M){case d:case y:case $:case S:case c:return M;default:return Z}}case n:return Z}}}function L(M){return A(M)===h}return ut.AsyncMode=m,ut.ConcurrentMode=h,ut.ContextConsumer=d,ut.ContextProvider=c,ut.Element=t,ut.ForwardRef=y,ut.Fragment=i,ut.Lazy=$,ut.Memo=S,ut.Portal=n,ut.Profiler=s,ut.StrictMode=o,ut.Suspense=g,ut.isAsyncMode=function(M){return L(M)||A(M)===m},ut.isConcurrentMode=L,ut.isContextConsumer=function(M){return A(M)===d},ut.isContextProvider=function(M){return A(M)===c},ut.isElement=function(M){return typeof M=="object"&&M!==null&&M.$$typeof===t},ut.isForwardRef=function(M){return A(M)===y},ut.isFragment=function(M){return A(M)===i},ut.isLazy=function(M){return A(M)===$},ut.isMemo=function(M){return A(M)===S},ut.isPortal=function(M){return A(M)===n},ut.isProfiler=function(M){return A(M)===s},ut.isStrictMode=function(M){return A(M)===o},ut.isSuspense=function(M){return A(M)===g},ut.isValidElementType=function(M){return typeof M=="string"||typeof M=="function"||M===i||M===h||M===s||M===o||M===g||M===E||typeof M=="object"&&M!==null&&(M.$$typeof===$||M.$$typeof===S||M.$$typeof===c||M.$$typeof===d||M.$$typeof===y||M.$$typeof===w||M.$$typeof===R||M.$$typeof===F||M.$$typeof===x)},ut.typeOf=A,ut}var _4;function Y7(){return _4||(_4=1,wp.exports=Z7()),wp.exports}var Tp,E4;function q7(){if(E4)return Tp;E4=1;var e=Y7(),t={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},n={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},i={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},o={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},s={};s[e.ForwardRef]=i,s[e.Memo]=o;function c($){return e.isMemo($)?o:s[$.$$typeof]||t}var d=Object.defineProperty,m=Object.getOwnPropertyNames,h=Object.getOwnPropertySymbols,y=Object.getOwnPropertyDescriptor,g=Object.getPrototypeOf,E=Object.prototype;function S($,x,w){if(typeof x!="string"){if(E){var R=g(x);R&&R!==E&&S($,R,w)}var F=m(x);h&&(F=F.concat(h(x)));for(var A=c($),L=c(x),M=0;M<F.length;++M){var Z=F[M];if(!n[Z]&&!(w&&w[Z])&&!(L&&L[Z])&&!(A&&A[Z])){var V=y(x,Z);try{d($,Z,V)}catch{}}}}return $}return Tp=S,Tp}q7();const K7=typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__,S4={componentStack:null,error:null,eventId:null};class P0 extends b.Component{constructor(t){super(t),P0.prototype.__init.call(this),this.state=S4,this._openFallbackReportDialog=!0;const n=Yt();n&&t.showDialog&&(this._openFallbackReportDialog=!1,this._cleanupHook=n.on("afterSendEvent",i=>{!i.type&&this._lastEventId&&i.event_id===this._lastEventId&&g4({...t.dialogOptions,eventId:this._lastEventId})}))}componentDidCatch(t,n){const{componentStack:i}=n,o=i??void 0,{beforeCapture:s,onError:c,showDialog:d,dialogOptions:m}=this.props;M0(h=>{s&&s(h,t,o);const y=this.props.handled!=null?this.props.handled:!!this.props.fallback,g=G7(t,n,{mechanism:{handled:y}});c&&c(t,o,g),d&&(this._lastEventId=g,this._openFallbackReportDialog&&g4({...m,eventId:g})),this.setState({error:t,componentStack:i,eventId:g})})}componentDidMount(){const{onMount:t}=this.props;t&&t()}componentWillUnmount(){const{error:t,componentStack:n,eventId:i}=this.state,{onUnmount:o}=this.props;o&&o(t,n,i),this._cleanupHook&&(this._cleanupHook(),this._cleanupHook=void 0)}__init(){this.resetErrorBoundary=()=>{const{onReset:t}=this.props,{error:n,componentStack:i,eventId:o}=this.state;t&&t(n,i,o),this.setState(S4)}}render(){const{fallback:t,children:n}=this.props,i=this.state;if(i.error){let o;return typeof t=="function"?o=b.createElement(t,{error:i.error,componentStack:i.componentStack,resetError:this.resetErrorBoundary,eventId:i.eventId}):o=t,b.isValidElement(o)?o:(t&&K7&&je.warn("fallback did not produce a valid ReactElement"),null)}return typeof n=="function"?n():n}}function Un({id:e,label:t,hint:n,error:i,required:o,className:s,children:c}){const d=e.replace(/[^a-zA-Z0-9_-]+/g,"-").replace(/^-+|-+$/g,"").toLowerCase(),m=["form-field",d?`form-field--${d}`:null,s].filter(Boolean).join(" ");return v.jsxs("div",{className:m,"data-field-id":e,children:[v.jsxs("label",{htmlFor:e,className:"form-label form-field__label",children:[t,o&&v.jsxs(v.Fragment,{children:[v.jsxs("span",{className:"text-red-600","aria-hidden":"true",children:[" ","*"]}),v.jsx("span",{className:"sr-only",children:" required"})]})]}),c,n&&v.jsx("p",{id:`${e}-hint`,className:"form-field__hint mt-1 text-sm text-slate-500",children:n}),i&&v.jsx("p",{id:`${e}-error`,className:"form-field__error mt-1 text-sm text-red-600",children:i})]})}function Uc({id:e,label:t,hint:n,error:i,required:o,className:s,...c}){return v.jsx(Un,{id:e,label:t,hint:n,error:i,required:o,className:s,children:v.jsx("input",{id:e,className:`form-input ${i?"input-error":""}`,"aria-invalid":!!i,"aria-describedby":[n?`${e}-hint`:null,i?`${e}-error`:null].filter(Boolean).join(" ")||void 0,required:o,...c,type:"text"})})}function $4(e,t){if(!e)return"";const n=parseInt(e,10);if(isNaN(n))return"";const i=n.toLocaleString("en-US");return t?`$${i}`:i}function W7({id:e,label:t,hint:n,error:i,required:o,className:s,value:c,onChange:d,onKeyDown:m,isCurrency:h=!1,maxDigits:y,...g}){const[E,S]=b.useState(""),$=b.useRef(null);b.useEffect(()=>{if(c==null||c===""){S("");return}const R=String(c).replace(/\D/g,"");S($4(R,h))},[c,h]);const x=R=>{let F=R.target.value.replace(/\D/g,"");y!==void 0&&(F=F.slice(0,y)),S($4(F,h));const A={...R,currentTarget:{...R.currentTarget,value:F},target:{...R.target,value:F}};d?.(A)},w=R=>{if(["-","+",".","e","E"].includes(R.key)){R.preventDefault();return}if(y!==void 0&&/^\d$/.test(R.key)&&R.currentTarget.value.replace(/\D/g,"").length>=y){R.preventDefault();return}m?.(R)};return v.jsx(Un,{id:e,label:t,hint:n,error:i,required:o,className:s,children:v.jsx("input",{ref:$,id:e,type:"text",inputMode:"numeric",className:`form-input ${i?"input-error":""}`,"aria-invalid":!!i,"aria-describedby":[n?`${e}-hint`:null,i?`${e}-error`:null].filter(Boolean).join(" ")||void 0,required:o,value:E,onChange:x,onKeyDown:w,...g})})}function D4(e){return e.length<=3?e:e.length<=5?`${e.slice(0,3)}-${e.slice(3)}`:`${e.slice(0,3)}-${e.slice(3,5)}-${e.slice(5,9)}`}function Q7({id:e,label:t,hint:n,error:i,required:o,className:s,value:c="",onChange:d,...m}){const[h,y]=b.useState(""),g=b.useRef(null);b.useEffect(()=>{const S=c.replace(/\D/g,"").slice(0,9);y(D4(S))},[c]);const E=S=>{const $=S.target.value,x=S.target.selectionStart??0,w=$.replace(/\D/g,"").slice(0,9),R=D4(w);y(R);const F={...S,currentTarget:{...S.currentTarget,value:R},target:{...S.target,value:R}};d?.(F),setTimeout(()=>{if(g.current){const A=$.slice(0,x).replace(/\D/g,"").length;let L=A;A>5?L+=2:A>3&&(L+=1),g.current.setSelectionRange(L,L)}},0)};return v.jsx(Un,{id:e,label:t,hint:n,error:i,required:o,className:s,children:v.jsx("input",{ref:g,id:e,type:"text",inputMode:"numeric",className:`form-input ${i?"input-error":""}`,"aria-invalid":!!i,"aria-describedby":[n?`${e}-hint`:null,i?`${e}-error`:null].filter(Boolean).join(" ")||void 0,required:o,maxLength:11,placeholder:"XXX-XX-XXXX",autoComplete:"off",value:h,onChange:E,...m})})}function Np({id:e,label:t,hint:n,error:i,required:o,className:s,...c}){return v.jsx(Un,{id:e,label:t,hint:n,error:i,required:o,className:s,children:v.jsx("input",{id:e,type:"number",className:`form-input ${i?"input-error":""}`,"aria-invalid":!!i,"aria-describedby":[n?`${e}-hint`:null,i?`${e}-error`:null].filter(Boolean).join(" ")||void 0,required:o,...c})})}function J7({id:e,label:t,hint:n,error:i,required:o,className:s,...c}){return v.jsx(Un,{id:e,label:t,hint:n,error:i,required:o,className:s,children:v.jsx("input",{id:e,type:"email",className:`form-input ${i?"input-error":""}`,inputMode:"email",autoComplete:"email",required:o,"aria-invalid":!!i,"aria-describedby":[n?`${e}-hint`:null,i?`${e}-error`:null].filter(Boolean).join(" ")||void 0,...c})})}function Mp(e){const t=e.replace(/\D/g,"");if(t.length===10)return`(${t.slice(0,3)}) ${t.slice(3,6)} - ${t.slice(6)}`;if(t.length>10){const n=t.slice(0,10);return`(${n.slice(0,3)}) ${n.slice(3,6)} - ${n.slice(6)}`}return t.length>=6?`(${t.slice(0,3)}) ${t.slice(3,6)} - ${t.slice(6)}`:t.length>=3?`(${t.slice(0,3)}) ${t.slice(3)}`:t.length>0?`(${t}`:t}function Rp(e){return e.replace(/\D/g,"")}function HE({id:e,label:t,hint:n,error:i,required:o,className:s,value:c="",onChange:d,...m}){const[h,y]=b.useState(""),g=b.useRef(null),E=b.useRef(0);b.useEffect(()=>{if(!c){y("");return}let $=Rp(c);$.length===11&&$.startsWith("1")&&($=$.slice(1));const x=$.slice(0,10);y(Mp(x))},[c]);const S=$=>{const x=$.target,w=x.value;E.current=x.selectionStart||0;const F=Rp(w).slice(0,10),A=Mp(F);y(A);const L=F.length===10?`+1${F}`:F,M={...$,currentTarget:{...$.currentTarget,value:L},target:{...$.target,value:L}};d?.(M),setTimeout(()=>{if(g.current){const Z=w.slice(0,E.current),V=Rp(Z),fe=Mp(V),ne=Math.min(fe.length,A.length);g.current.setSelectionRange(ne,ne)}},0)};return v.jsx(Un,{id:e,label:t,hint:n,error:i,required:o,className:s,children:v.jsxs("div",{className:`tel-input-wrapper flex items-center border rounded-lg transition-colors w-full relative ${i?"border-red-500 error":"border-[var(--accent-color)] focus-within:border-[var(--primary-color)]"}`,children:[v.jsx("label",{htmlFor:e,className:"px-3 py-3 text-slate-700 font-medium border-r border-[var(--accent-color)] bg-slate-50 flex-shrink-0 relative z-0 rounded-l-lg",children:"+1"}),v.jsx("input",{ref:g,id:e,type:"tel",className:`flex-1 px-4 py-3 border-0 rounded-r-lg outline-none bg-transparent text-[var(--text-primary)] text-base ${i?"input-error":""}`,inputMode:"tel",autoComplete:"tel",required:o,"aria-invalid":!!i,"aria-describedby":[n?`${e}-hint`:null,i?`${e}-error`:null].filter(Boolean).join(" ")||void 0,value:h,onChange:S,...m})]})})}function X7({id:e,label:t,hint:n,error:i,required:o,className:s,...c}){return v.jsx(Un,{id:e,label:t,hint:n,error:i,required:o,className:s,children:v.jsx("input",{id:e,type:"url",className:`form-input ${i?"input-error":""}`,inputMode:"url",autoComplete:"url",required:o,"aria-invalid":!!i,"aria-describedby":[n?`${e}-hint`:null,i?`${e}-error`:null].filter(Boolean).join(" ")||void 0,...c})})}function eN({id:e,label:t,hint:n,error:i,required:o,className:s,...c}){return v.jsx(Un,{id:e,label:t,hint:n,error:i,required:o,className:s,children:v.jsx("input",{id:e,type:"password",className:`form-input ${i?"input-error":""}`,autoComplete:"current-password",required:o,"aria-invalid":!!i,"aria-describedby":[n?`${e}-hint`:null,i?`${e}-error`:null].filter(Boolean).join(" ")||void 0,...c})})}function tN({id:e,label:t,hint:n,error:i,required:o,className:s,rows:c=4,...d}){return v.jsx(Un,{id:e,label:t,hint:n,error:i,required:o,className:s,children:v.jsx("textarea",{id:e,rows:c,className:`form-input ${i?"input-error":""}`,"aria-invalid":!!i,"aria-describedby":[n?`${e}-hint`:null,i?`${e}-error`:null].filter(Boolean).join(" ")||void 0,required:o,...d})})}function Fd(...e){return(...t)=>{for(let n of e)typeof n=="function"&&n(...t)}}const ct=typeof document<"u"?ve.useLayoutEffect:()=>{},VE={prefix:String(Math.round(Math.random()*1e10)),current:0},GE=ve.createContext(VE),nN=ve.createContext(!1);let Op=new WeakMap;function rN(e=!1){let t=b.useContext(GE),n=b.useRef(null);if(n.current===null&&!e){let i=ve.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED?.ReactCurrentOwner?.current;if(i){let o=Op.get(i);o==null?Op.set(i,{id:t.current,state:i.memoizedState}):i.memoizedState!==o.state&&(t.current=o.id,Op.delete(i))}n.current=++t.current}return n.current}function aN(e){let t=b.useContext(GE),n=rN(!!e),i=`react-aria${t.prefix}`;return e||`${i}-${n}`}function iN(e){let t=ve.useId(),[n]=b.useState(F0()),i=n?"react-aria":`react-aria${VE.prefix}`;return e||`${i}-${t}`}const oN=typeof ve.useId=="function"?iN:aN;function lN(){return!1}function sN(){return!0}function uN(e){return()=>{}}function F0(){return typeof ve.useSyncExternalStore=="function"?ve.useSyncExternalStore(uN,lN,sN):b.useContext(nN)}function cN(e){let[t,n]=b.useState(e),i=b.useRef(t),o=b.useRef(null),s=b.useRef(()=>{if(!o.current)return;let d=o.current.next();if(d.done){o.current=null;return}i.current===d.value?s.current():n(d.value)});ct(()=>{i.current=t,o.current&&s.current()});let c=b.useCallback(d=>{o.current=d(i.current),s.current()},[s]);return[t,c]}let dN=!!(typeof window<"u"&&window.document&&window.document.createElement),Zo=new Map,ys;typeof FinalizationRegistry<"u"&&(ys=new FinalizationRegistry(e=>{Zo.delete(e)}));function Ar(e){let[t,n]=b.useState(e),i=b.useRef(null),o=oN(t),s=b.useRef(null);if(ys&&ys.register(s,o),dN){const c=Zo.get(o);c&&!c.includes(i)?c.push(i):Zo.set(o,[i])}return ct(()=>{let c=o;return()=>{ys&&ys.unregister(s),Zo.delete(c)}},[o]),b.useEffect(()=>{let c=i.current;return c&&n(c),()=>{c&&(i.current=null)}}),o}function fN(e,t){if(e===t)return e;let n=Zo.get(e);if(n)return n.forEach(o=>o.current=t),t;let i=Zo.get(t);return i?(i.forEach(o=>o.current=e),e):t}function id(e=[]){let t=Ar(),[n,i]=cN(t),o=b.useCallback(()=>{i(function*(){yield t,yield document.getElementById(t)?t:void 0})},[t,i]);return ct(o,[t,o,...e]),n}function I0(...e){return e.length===1&&e[0]?e[0]:t=>{let n=!1;const i=e.map(o=>{const s=x4(o,t);return n||=typeof s=="function",s});if(n)return()=>{i.forEach((o,s)=>{typeof o=="function"?o():x4(e[s],null)})}}}function x4(e,t){if(typeof e=="function")return e(t);e!=null&&(e.current=t)}function ZE(e){var t,n,i="";if(typeof e=="string"||typeof e=="number")i+=e;else if(typeof e=="object")if(Array.isArray(e)){var o=e.length;for(t=0;t<o;t++)e[t]&&(n=ZE(e[t]))&&(i&&(i+=" "),i+=n)}else for(n in e)e[n]&&(i&&(i+=" "),i+=n);return i}function mN(){for(var e,t,n=0,i="",o=arguments.length;n<o;n++)(e=arguments[n])&&(t=ZE(e))&&(i&&(i+=" "),i+=t);return i}function pt(...e){let t={...e[0]};for(let n=1;n<e.length;n++){let i=e[n];for(let o in i){let s=t[o],c=i[o];typeof s=="function"&&typeof c=="function"&&o[0]==="o"&&o[1]==="n"&&o.charCodeAt(2)>=65&&o.charCodeAt(2)<=90?t[o]=Fd(s,c):(o==="className"||o==="UNSAFE_className")&&typeof s=="string"&&typeof c=="string"?t[o]=mN(s,c):o==="id"&&s&&c?t.id=fN(s,c):o==="ref"&&s&&c?t.ref=I0(s,c):t[o]=c!==void 0?c:s}}return t}function YE(e){const t=b.useRef(null),n=b.useRef(void 0),i=b.useCallback(o=>{if(typeof e=="function"){const s=e,c=s(o);return()=>{typeof c=="function"?c():s(null)}}else if(e)return e.current=o,()=>{e.current=null}},[e]);return b.useMemo(()=>({get current(){return t.current},set current(o){t.current=o,n.current&&(n.current(),n.current=void 0),o!=null&&(n.current=i(o))}}),[i])}const kh=Symbol("default");function Id({values:e,children:t}){for(let[n,i]of e)t=ve.createElement(n.Provider,{value:i},t);return t}function la(e){let{className:t,style:n,children:i,defaultClassName:o,defaultChildren:s,defaultStyle:c,values:d,render:m}=e;return b.useMemo(()=>{let h,y,g;return typeof t=="function"?h=t({...d,defaultClassName:o}):h=t,typeof n=="function"?y=n({...d,defaultStyle:c||{}}):y=n,typeof i=="function"?g=i({...d,defaultChildren:s}):i==null?g=s:g=i,{className:h??o,style:y||c?{...c,...y}:void 0,children:g??s,"data-rac":"",render:m?E=>m(E,d):void 0}},[t,n,i,o,s,c,d,m])}function od(e,t){let n=b.useContext(e);if(t===null)return null;if(n&&typeof n=="object"&&"slots"in n&&n.slots){let i=t||kh;if(!n.slots[i]){let o=new Intl.ListFormat().format(Object.keys(n.slots).map(c=>`"${c}"`)),s=t?`Invalid slot "${t}".`:"A slot prop is required.";throw new Error(`${s} Valid slot names are ${o}.`)}return n.slots[i]}return n}function sa(e,t,n){let i=od(n,e.slot)||{},{ref:o,...s}=i,c=YE(b.useMemo(()=>I0(t,o),[t,o])),d=pt(s,e);return"style"in s&&s.style&&"style"in e&&e.style&&(typeof s.style=="function"||typeof e.style=="function"?d.style=m=>{let h=typeof s.style=="function"?s.style(m):s.style,y={...m.defaultStyle,...h},g=typeof e.style=="function"?e.style({...m,defaultStyle:y}):e.style;return{...y,...g}}:d.style={...s.style,...e.style}),[d,c]}function pN(e=!0){let[t,n]=b.useState(e),i=b.useRef(!1),o=b.useCallback(s=>{i.current=!0,n(!!s)},[]);return ct(()=>{i.current||n(!1)},[]),[o,t]}function hN(e){const t=/^(data-.*)$/;let n={};for(const i in e)t.test(i)||(n[i]=e[i]);return n}function yN(e,t,n){let{render:i,...o}=t,s=b.useRef(null),c=b.useMemo(()=>I0(n,s),[n,s]);ct(()=>{},[e,i]);let d={...o,ref:c};return i?i(d,void 0):ve.createElement(e,d)}const C4={},wn=new Proxy({},{get(e,t){if(typeof t!="string")return;let n=C4[t];return n||(n=b.forwardRef(yN.bind(null,t)),C4[t]=n),n}}),nt=e=>e?.ownerDocument??document,hn=e=>e&&"window"in e&&e.window===e?e:nt(e).defaultView||window;function gN(e){return e!==null&&typeof e=="object"&&"nodeType"in e&&typeof e.nodeType=="number"}function bN(e){return gN(e)&&e.nodeType===Node.DOCUMENT_FRAGMENT_NODE&&"host"in e}let vN=!1;function Xr(){return vN}function ot(e,t){if(!Xr())return t&&e?e.contains(t):!1;if(!e||!t)return!1;let n=t;for(;n!==null;){if(n===e)return!0;n.tagName==="SLOT"&&n.assignedSlot?n=n.assignedSlot.parentNode:bN(n)?n=n.host:n=n.parentNode}return!1}const St=(e=document)=>{if(!Xr())return e.activeElement;let t=e.activeElement;for(;t&&"shadowRoot"in t&&t.shadowRoot?.activeElement;)t=t.shadowRoot.activeElement;return t};function Pe(e){if(Xr()&&e.target instanceof Element&&e.target.shadowRoot){if("composedPath"in e)return e.composedPath()[0]??null;if("composedPath"in e.nativeEvent)return e.nativeEvent.composedPath()[0]??null}return e.target}function j0(e){if(!e)return!1;let t=e.getRootNode(),n=hn(e);if(!(t instanceof n.Document||t instanceof n.ShadowRoot))return!1;let i=t.activeElement;return i!=null&&e.contains(i)}function Bi(e){if(_N())e.focus({preventScroll:!0});else{let t=EN(e);e.focus(),SN(t)}}let Sc=null;function _N(){if(Sc==null){Sc=!1;try{document.createElement("div").focus({get preventScroll(){return Sc=!0,!0}})}catch{}}return Sc}function EN(e){let t=e.parentNode,n=[],i=document.scrollingElement||document.documentElement;for(;t instanceof HTMLElement&&t!==i;)(t.offsetHeight<t.scrollHeight||t.offsetWidth<t.scrollWidth)&&n.push({element:t,scrollTop:t.scrollTop,scrollLeft:t.scrollLeft}),t=t.parentNode;return i instanceof HTMLElement&&n.push({element:i,scrollTop:i.scrollTop,scrollLeft:i.scrollLeft}),n}function SN(e){for(let{element:t,scrollTop:n,scrollLeft:i}of e)t.scrollTop=n,t.scrollLeft=i}const $N=typeof Element<"u"&&"checkVisibility"in Element.prototype;function DN(e){const t=hn(e);if(!(e instanceof t.HTMLElement)&&!(e instanceof t.SVGElement))return!1;let{display:n,visibility:i}=e.style,o=n!=="none"&&i!=="hidden"&&i!=="collapse";if(o){const{getComputedStyle:s}=hn(e);let{display:c,visibility:d}=s(e);o=c!=="none"&&d!=="hidden"&&d!=="collapse"}return o}function xN(e,t){return!e.hasAttribute("hidden")&&!e.hasAttribute("data-react-aria-prevent-focus")&&(e.nodeName==="DETAILS"&&t&&t.nodeName!=="SUMMARY"?e.hasAttribute("open"):!0)}function z0(e,t){return $N?e.checkVisibility({visibilityProperty:!0})&&!e.closest("[data-react-aria-prevent-focus]"):e.nodeName!=="#comment"&&DN(e)&&xN(e,t)&&(!e.parentElement||z0(e.parentElement,e))}const U0=["input:not([disabled]):not([type=hidden])","select:not([disabled])","textarea:not([disabled])","button:not([disabled])","a[href]","area[href]","summary","iframe","object","embed","audio[controls]","video[controls]",'[contenteditable]:not([contenteditable^="false"])',"permission"],CN=U0.join(":not([hidden]),")+",[tabindex]:not([disabled]):not([hidden])";U0.push('[tabindex]:not([tabindex="-1"]):not([disabled])');const AN=U0.join(':not([hidden]):not([tabindex="-1"]),');function qE(e,t){return e.matches(CN)&&!KE(e)&&(t?.skipVisibilityCheck||z0(e))}function wN(e){return e.matches(AN)&&z0(e)&&!KE(e)}function KE(e){let t=e;for(;t!=null;){if(t instanceof hn(t).HTMLElement&&t.inert)return!0;t=t.parentElement}return!1}function H0(e){let t=e;return t.nativeEvent=e,t.isDefaultPrevented=()=>t.defaultPrevented,t.isPropagationStopped=()=>t.cancelBubble,t.persist=()=>{},t}function WE(e,t){Object.defineProperty(e,"target",{value:t}),Object.defineProperty(e,"currentTarget",{value:t})}function QE(e){let t=b.useRef({isFocused:!1,observer:null});return ct(()=>{const n=t.current;return()=>{n.observer&&(n.observer.disconnect(),n.observer=null)}},[]),b.useCallback(n=>{let i=Pe(n);if(i instanceof HTMLButtonElement||i instanceof HTMLInputElement||i instanceof HTMLTextAreaElement||i instanceof HTMLSelectElement){t.current.isFocused=!0;let o=i,s=c=>{if(t.current.isFocused=!1,o.disabled){let d=H0(c);e?.(d)}t.current.observer&&(t.current.observer.disconnect(),t.current.observer=null)};o.addEventListener("focusout",s,{once:!0}),t.current.observer=new MutationObserver(()=>{if(t.current.isFocused&&o.disabled){t.current.observer?.disconnect();let c=o===St()?null:St();o.dispatchEvent(new FocusEvent("blur",{relatedTarget:c})),o.dispatchEvent(new FocusEvent("focusout",{bubbles:!0,relatedTarget:c}))}}),t.current.observer.observe(o,{attributes:!0,attributeFilter:["disabled"]})}},[e])}let ld=!1;function TN(e){for(;e&&!qE(e,{skipVisibilityCheck:!0});)e=e.parentElement;let t=hn(e),n=t.document.activeElement;if(!n||n===e)return;ld=!0;let i=!1,o=y=>{(Pe(y)===n||i)&&y.stopImmediatePropagation()},s=y=>{(Pe(y)===n||i)&&(y.stopImmediatePropagation(),!e&&!i&&(i=!0,Bi(n),m()))},c=y=>{(Pe(y)===e||i)&&y.stopImmediatePropagation()},d=y=>{(Pe(y)===e||i)&&(y.stopImmediatePropagation(),i||(i=!0,Bi(n),m()))};t.addEventListener("blur",o,!0),t.addEventListener("focusout",s,!0),t.addEventListener("focusin",d,!0),t.addEventListener("focus",c,!0);let m=()=>{cancelAnimationFrame(h),t.removeEventListener("blur",o,!0),t.removeEventListener("focusout",s,!0),t.removeEventListener("focusin",d,!0),t.removeEventListener("focus",c,!0),ld=!1,i=!1},h=requestAnimationFrame(m);return m}function jd(e){if(typeof window>"u"||window.navigator==null)return!1;let t=window.navigator.userAgentData?.brands;return Array.isArray(t)&&t.some(n=>e.test(n.brand))||e.test(window.navigator.userAgent)}function V0(e){return typeof window<"u"&&window.navigator!=null?e.test(window.navigator.userAgentData?.platform||window.navigator.platform):!1}function Ja(e){let t=null;return()=>(t==null&&(t=e()),t)}const al=Ja(function(){return V0(/^Mac/i)}),NN=Ja(function(){return V0(/^iPhone/i)}),JE=Ja(function(){return V0(/^iPad/i)||al()&&navigator.maxTouchPoints>1}),Gs=Ja(function(){return NN()||JE()}),XE=Ja(function(){return jd(/AppleWebKit/i)&&!eS()}),eS=Ja(function(){return jd(/Chrome/i)}),G0=Ja(function(){return jd(/Android/i)}),MN=Ja(function(){return jd(/Firefox/i)});function tS(e){return e.pointerType===""&&e.isTrusted?!0:G0()&&e.pointerType?e.type==="click"&&e.buttons===1:e.detail===0&&!e.pointerType}function RN(e){return!G0()&&e.width===0&&e.height===0||e.width===1&&e.height===1&&e.pressure===0&&e.detail===0&&e.pointerType==="mouse"}function Li(e,t,n=!0){let{metaKey:i,ctrlKey:o,altKey:s,shiftKey:c}=t;MN()&&window.event?.type?.startsWith("key")&&e.target==="_blank"&&(al()?i=!0:o=!0);let d=XE()&&al()&&!JE()?new KeyboardEvent("keydown",{keyIdentifier:"Enter",metaKey:i,ctrlKey:o,altKey:s,shiftKey:c}):new MouseEvent("click",{metaKey:i,ctrlKey:o,altKey:s,shiftKey:c,detail:1,bubbles:!0,cancelable:!0});Li.isOpening=n,Bi(e),e.dispatchEvent(d),Li.isOpening=!1}Li.isOpening=!1;let qi=null;const Bh=new Set;let Ss=new Map,Pi=!1,Lh=!1;const ON={Tab:!0,Escape:!0};function zd(e,t){for(let n of Bh)n(e,t)}function kN(e){return!(e.metaKey||!al()&&e.altKey||e.ctrlKey||e.key==="Control"||e.key==="Shift"||e.key==="Meta")}function sd(e){Pi=!0,!Li.isOpening&&kN(e)&&(qi="keyboard",zd("keyboard",e))}function Yo(e){qi="pointer","pointerType"in e&&e.pointerType,(e.type==="mousedown"||e.type==="pointerdown")&&(Pi=!0,zd("pointer",e))}function nS(e){!Li.isOpening&&tS(e)&&(Pi=!0,qi="virtual")}function rS(e){let t=hn(Pe(e)),n=nt(Pe(e));Pe(e)===t||Pe(e)===n||ld||!e.isTrusted||(!Pi&&!Lh&&(qi="virtual",zd("virtual",e)),Pi=!1,Lh=!1)}function aS(){ld||(Pi=!1,Lh=!0)}function Ph(e){if(typeof window>"u"||typeof document>"u")return;const t=hn(e),n=nt(e);if(Ss.get(t))return;let i=t.HTMLElement.prototype.focus;Reflect.defineProperty(t.HTMLElement.prototype,"focus",{configurable:!0,writable:!0,value:function(){Pi=!0,i.apply(this,arguments)}}),n.addEventListener("keydown",sd,!0),n.addEventListener("keyup",sd,!0),n.addEventListener("click",nS,!0),t.addEventListener("focus",rS,!0),t.addEventListener("blur",aS,!1),typeof PointerEvent<"u"&&(n.addEventListener("pointerdown",Yo,!0),n.addEventListener("pointermove",Yo,!0),n.addEventListener("pointerup",Yo,!0)),t.addEventListener("beforeunload",()=>{iS(e)},{once:!0}),Ss.set(t,{focus:i})}const iS=(e,t)=>{const n=hn(e),i=nt(e);t&&i.removeEventListener("DOMContentLoaded",t),Ss.has(n)&&(Reflect.defineProperty(n.HTMLElement.prototype,"focus",{configurable:!0,writable:!0,value:Ss.get(n).focus}),i.removeEventListener("keydown",sd,!0),i.removeEventListener("keyup",sd,!0),i.removeEventListener("click",nS,!0),n.removeEventListener("focus",rS,!0),n.removeEventListener("blur",aS,!1),typeof PointerEvent<"u"&&(i.removeEventListener("pointerdown",Yo,!0),i.removeEventListener("pointermove",Yo,!0),i.removeEventListener("pointerup",Yo,!0)),Ss.delete(n))};function BN(e){const t=nt(e);let n;return t.readyState!=="loading"?Ph(e):(n=()=>{Ph(e)},t.addEventListener("DOMContentLoaded",n)),()=>iS(e,n)}typeof document<"u"&&BN();function Fh(){return qi!=="pointer"}function Ud(){return qi}function LN(e){qi=e,zd(e,null)}const PN=new Set(["checkbox","radio","range","color","file","image","button","submit","reset"]);function FN(e,t,n){let i=n?Pe(n):void 0,o=nt(i),s=hn(i);const c=typeof s<"u"?s.HTMLInputElement:HTMLInputElement,d=typeof s<"u"?s.HTMLTextAreaElement:HTMLTextAreaElement,m=typeof s<"u"?s.HTMLElement:HTMLElement,h=typeof s<"u"?s.KeyboardEvent:KeyboardEvent;let y=St(o);return e=e||y instanceof c&&!PN.has(y.type)||y instanceof d||y instanceof m&&y.isContentEditable,!(e&&t==="keyboard"&&n instanceof h&&!ON[n.key])}function IN(e,t,n){Ph(),b.useEffect(()=>{if(n?.enabled===!1)return;let i=(o,s)=>{FN(!!n?.isTextInput,o,s)&&e(Fh())};return Bh.add(i),()=>{Bh.delete(i)}},t)}const jN=new Set(["checkbox","radio","range","color","file","image","button","submit","reset"]);function kp(e){return e instanceof HTMLInputElement&&!jN.has(e.type)||e instanceof HTMLTextAreaElement||e instanceof HTMLElement&&e.isContentEditable}const zN=ve.useInsertionEffect??ct;function Zt(e){const t=b.useRef(null);return zN(()=>{t.current=e},[e]),b.useCallback((...n)=>{const i=t.current;return i?.(...n)},[])}function Bp(e,t,n,i){let o=Zt(n),s=n==null;b.useEffect(()=>{if(s||!e.current)return;let c=e.current;return c.addEventListener(t,o,i),()=>{c.removeEventListener(t,o,i)}},[e,t,i,s])}function Zs(e,t){let{id:n,"aria-label":i,"aria-labelledby":o}=e;return n=Ar(n),o&&i?o=[...new Set([n,...o.trim().split(/\s+/)])].join(" "):o&&(o=o.trim().split(/\s+/).join(" ")),!i&&!o&&t&&(i=t),{id:n,"aria-label":i,"aria-labelledby":o}}const UN=new Set(["Arab","Syrc","Samr","Mand","Thaa","Mend","Nkoo","Adlm","Rohg","Hebr"]),HN=new Set(["ae","ar","arc","bcc","bqi","ckb","dv","fa","glk","he","ku","mzn","nqo","pnb","ps","sd","ug","ur","yi"]);function VN(e){if(Intl.Locale){let n=new Intl.Locale(e).maximize(),i=typeof n.getTextInfo=="function"?n.getTextInfo():n.textInfo;if(i)return i.direction==="rtl";if(n.script)return UN.has(n.script)}let t=e.split("-")[0];return HN.has(t)}const oS=Symbol.for("react-aria.i18n.locale");function lS(){let e=typeof window<"u"&&window[oS]||typeof navigator<"u"&&(navigator.language||navigator.userLanguage)||"en-US";try{Intl.DateTimeFormat.supportedLocalesOf([e])}catch{e="en-US"}return{locale:e,direction:VN(e)?"rtl":"ltr"}}let Ih=lS(),gs=new Set;function A4(){Ih=lS();for(let e of gs)e(Ih)}function GN(){let e=F0(),[t,n]=b.useState(Ih);return b.useEffect(()=>(gs.size===0&&window.addEventListener("languagechange",A4),gs.add(n),()=>{gs.delete(n),gs.size===0&&window.removeEventListener("languagechange",A4)}),[]),e?{locale:typeof window<"u"&&window[oS]||"en-US",direction:"ltr"}:t}const ZN=ve.createContext(null);function sn(){let e=GN();return b.useContext(ZN)||e}const YN=Symbol.for("react-aria.i18n.locale"),qN=Symbol.for("react-aria.i18n.strings");let $c;class Ki{constructor(t,n="en-US"){this.strings=Object.fromEntries(Object.entries(t).filter(([,i])=>i)),this.defaultLocale=n}getStringForLocale(t,n){let o=this.getStringsForLocale(n)[t];if(!o)throw new Error(`Could not find intl message ${t} in ${n} locale`);return o}getStringsForLocale(t){let n=this.strings[t];return n||(n=KN(t,this.strings,this.defaultLocale),this.strings[t]=n),n}static getGlobalDictionaryForPackage(t){if(typeof window>"u")return null;let n=window[YN];if($c===void 0){let o=window[qN];if(!o)return null;$c={};for(let s in o)$c[s]=new Ki({[n]:o[s]},n)}let i=$c?.[t];if(!i)throw new Error(`Strings for package "${t}" were not included by LocalizedStringProvider. Please add it to the list passed to createLocalizedStringDictionary.`);return i}}function KN(e,t,n="en-US"){if(t[e])return t[e];let i=WN(e);if(t[i])return t[i];for(let o in t)if(o.startsWith(i+"-"))return t[o];return t[n]}function WN(e){return Intl.Locale?new Intl.Locale(e).language:e.split("-")[0]}const w4=new Map,T4=new Map;class sS{constructor(t,n){this.locale=t,this.strings=n}format(t,n){let i=this.strings.getStringForLocale(t,this.locale);return typeof i=="function"?i(n,this):i}plural(t,n,i="cardinal"){let o=n["="+t];if(o)return typeof o=="function"?o():o;let s=this.locale+":"+i,c=w4.get(s);c||(c=new Intl.PluralRules(this.locale,{type:i}),w4.set(s,c));let d=c.select(t);return o=n[d]||n.other,typeof o=="function"?o():o}number(t){let n=T4.get(this.locale);return n||(n=new Intl.NumberFormat(this.locale),T4.set(this.locale,n)),n.format(t)}select(t,n){let i=t[n]||t.other;return typeof i=="function"?i():i}}const N4=new WeakMap;function QN(e){let t=N4.get(e);return t||(t=new Ki(e),N4.set(e,t)),t}function uS(e,t){return t&&Ki.getGlobalDictionaryForPackage(t)||QN(e)}function Xa(e,t){let{locale:n}=sn(),i=uS(e,t);return b.useMemo(()=>new sS(n,i),[n,i])}const JN=typeof document<"u"?ve.useInsertionEffect??ve.useLayoutEffect:()=>{};function ws(e,t,n){let[i,o]=b.useState(e||t),s=b.useRef(i),c=b.useRef(e!==void 0),d=e!==void 0;b.useEffect(()=>{c.current,c.current=d},[d]);let m=d?e:i;JN(()=>{s.current=m});let[,h]=b.useReducer(()=>({}),{}),y=b.useCallback((g,...E)=>{let S=typeof g=="function"?g(s.current):g;Object.is(s.current,S)||(s.current=S,o(S),h(),n?.(S,...E))},[n]);return[m,y]}let za=new Map,jh=new Set;function M4(){if(typeof window>"u")return;function e(i){return"propertyName"in i}let t=i=>{let o=Pe(i);if(!e(i)||!o)return;let s=za.get(o);s||(s=new Set,za.set(o,s),o.addEventListener("transitioncancel",n,{once:!0})),s.add(i.propertyName)},n=i=>{let o=Pe(i);if(!e(i)||!o)return;let s=za.get(o);if(s&&(s.delete(i.propertyName),s.size===0&&(o.removeEventListener("transitioncancel",n),za.delete(o)),za.size===0)){for(let c of jh)c();jh.clear()}};document.body.addEventListener("transitionrun",t),document.body.addEventListener("transitionend",n)}typeof document<"u"&&(document.readyState!=="loading"?M4():document.addEventListener("DOMContentLoaded",M4));function XN(){for(const[e]of za)"isConnected"in e&&!e.isConnected&&za.delete(e)}function cS(e){requestAnimationFrame(()=>{XN(),za.size===0?e():jh.add(e)})}function Ts(e){if(!e.isConnected)return;const t=nt(e);if(Ud()==="virtual"){let n=St(t);cS(()=>{const i=St(t);(i===n||i===t.body)&&e.isConnected&&Bi(e)})}else Bi(e)}function dS(e){let{isDisabled:t,onFocus:n,onBlur:i,onFocusChange:o}=e;const s=b.useCallback(m=>{if(Pe(m)===m.currentTarget)return i&&i(m),o&&o(!1),!0},[i,o]),c=QE(s),d=b.useCallback(m=>{let h=Pe(m);const y=nt(h),g=y?St(y):St();h===m.currentTarget&&h===g&&(n&&n(m),o&&o(!0),c(m))},[o,n,c]);return{focusProps:{onFocus:!t&&(n||o||i)?d:void 0,onBlur:!t&&(i||o)?s:void 0}}}function R4(e){if(!e)return;let t=!0;return n=>{let i={...n,preventDefault(){n.preventDefault()},isDefaultPrevented(){return n.isDefaultPrevented()},stopPropagation(){t=!0},continuePropagation(){t=!1,typeof n.continuePropagation=="function"&&n.continuePropagation()},isPropagationStopped(){return t}};e(i),t&&n.stopPropagation()}}function e8(e){return{keyboardProps:e.isDisabled?{}:{onKeyDown:R4(e.onKeyDown),onKeyUp:R4(e.onKeyUp)}}}function fS(e,t){ct(()=>{if(e&&e.ref&&t)return e.ref.current=t.current,()=>{e.ref&&(e.ref.current=null)}})}let t8=ve.createContext(null);function n8(e){let t=b.useContext(t8)||{};fS(t,e);let{ref:n,...i}=t;return i}function r8(e,t){let{focusProps:n}=dS(e),{keyboardProps:i}=e8(e),o=pt(n,i),s=n8(t),c=e.isDisabled?{}:s,d=b.useRef(e.autoFocus);b.useEffect(()=>{d.current&&t.current&&Ts(t.current),d.current=!1},[t]);let m=e.excludeFromTabOrder?-1:0;return e.isDisabled&&(m=void 0),{focusableProps:pt({...o,tabIndex:m},c)}}typeof HTMLTemplateElement<"u"&&(Object.defineProperty(HTMLTemplateElement.prototype,"firstChild",{configurable:!0,enumerable:!0,get:function(){return this.content.firstChild}}),Object.defineProperty(HTMLTemplateElement.prototype,"appendChild",{configurable:!0,enumerable:!0,value:function(e){return this.content.appendChild(e)}}),Object.defineProperty(HTMLTemplateElement.prototype,"removeChild",{configurable:!0,enumerable:!0,value:function(e){return this.content.removeChild(e)}}),Object.defineProperty(HTMLTemplateElement.prototype,"insertBefore",{configurable:!0,enumerable:!0,value:function(e,t){return this.content.insertBefore(e,t)}}));const mS=b.createContext(!1);function pS(e){let t=(n,i)=>b.useContext(mS)?null:e(n,i);return t.displayName=e.displayName||e.name,b.forwardRef(t)}function a8(){return b.useContext(mS)}var hS=uE();const i8=sE(hS),o8=new Set(["id"]),l8=new Set(["aria-label","aria-labelledby","aria-describedby","aria-details"]),s8=new Set(["href","hrefLang","target","rel","download","ping","referrerPolicy"]),u8=new Set(["dir","lang","hidden","inert","translate"]),O4=new Set(["onClick","onAuxClick","onContextMenu","onDoubleClick","onMouseDown","onMouseEnter","onMouseLeave","onMouseMove","onMouseOut","onMouseOver","onMouseUp","onTouchCancel","onTouchEnd","onTouchMove","onTouchStart","onPointerDown","onPointerMove","onPointerUp","onPointerCancel","onPointerEnter","onPointerLeave","onPointerOver","onPointerOut","onGotPointerCapture","onLostPointerCapture","onScroll","onWheel","onAnimationStart","onAnimationEnd","onAnimationIteration","onTransitionCancel","onTransitionEnd","onTransitionRun","onTransitionStart"]),c8=/^(data-.*)$/;function un(e,t={}){let{labelable:n,isLink:i,global:o,events:s=o,propNames:c}=t,d={};for(const m in e)Object.prototype.hasOwnProperty.call(e,m)&&(o8.has(m)||n&&l8.has(m)||i&&s8.has(m)||o&&u8.has(m)||s&&(O4.has(m)||m.endsWith("Capture")&&O4.has(m.slice(0,-7)))||c?.has(m)||c8.test(m))&&(d[m]=e[m]);return d}let Ho="default",zh="",Hc=new WeakMap;function d8(e){if(Gs()){if(Ho==="default"){const t=nt(e);zh=t.documentElement.style.webkitUserSelect,t.documentElement.style.webkitUserSelect="none"}Ho="disabled"}else if(e instanceof HTMLElement||e instanceof SVGElement){let t="userSelect"in e.style?"userSelect":"webkitUserSelect";Hc.set(e,e.style[t]),e.style[t]="none"}}function k4(e){if(Gs()){if(Ho!=="disabled")return;Ho="restoring",setTimeout(()=>{cS(()=>{if(Ho==="restoring"){const t=nt(e);t.documentElement.style.webkitUserSelect==="none"&&(t.documentElement.style.webkitUserSelect=zh||""),zh="",Ho="default"}})},300)}else if((e instanceof HTMLElement||e instanceof SVGElement)&&e&&Hc.has(e)){let t=Hc.get(e),n="userSelect"in e.style?"userSelect":"webkitUserSelect";e.style[n]==="none"&&(e.style[n]=t),e.getAttribute("style")===""&&e.removeAttribute("style"),Hc.delete(e)}}function B4(e){return e?.defaultView?.__webpack_nonce__||globalThis.__webpack_nonce__||void 0}let Lp=new WeakMap;function yS(e){let t=e??(typeof document<"u"?document:void 0);if(!t)return B4(t);if(Lp.has(t))return Lp.get(t);let n=t.querySelector('meta[property="csp-nonce"]'),i=n&&n instanceof hn(n).HTMLMetaElement&&(n.nonce||n.content)||B4(t)||void 0;return i!==void 0&&Lp.set(t,i),i}const Z0=ve.createContext({register:()=>{}});Z0.displayName="PressResponderContext";function Hd(){let e=b.useRef(new Map),t=b.useCallback((o,s,c,d)=>{let m=d?.once?(...h)=>{e.current.delete(c),c(...h)}:c;e.current.set(c,{type:s,eventTarget:o,fn:m,options:d}),o.addEventListener(s,m,d)},[]),n=b.useCallback((o,s,c,d)=>{let m=e.current.get(c)?.fn||c;o.removeEventListener(s,m,d),e.current.delete(c)},[]),i=b.useCallback(()=>{e.current.forEach((o,s)=>{n(o.eventTarget,o.type,s,o.options)})},[n]);return b.useEffect(()=>i,[i]),{addGlobalListener:t,removeGlobalListener:n,removeAllGlobalListeners:i}}function f8(e){let t=b.useContext(Z0);if(t){let{register:n,ref:i,...o}=t;e=pt(o,e),n()}return fS(t,e.ref),e}class Dc{#e;constructor(t,n,i,o){this.#e=!0;const c=(o?.target??i.currentTarget)?.getBoundingClientRect();let d,m=0,h,y=null;i.clientX!=null&&i.clientY!=null&&(h=i.clientX,y=i.clientY),c&&(h!=null&&y!=null?(d=h-c.left,m=y-c.top):(d=c.width/2,m=c.height/2)),this.type=t,this.pointerType=n,this.target=i.currentTarget,this.shiftKey=i.shiftKey,this.metaKey=i.metaKey,this.ctrlKey=i.ctrlKey,this.altKey=i.altKey,this.x=d,this.y=m,this.key=i.key}continuePropagation(){this.#e=!1}get shouldStopPropagation(){return this.#e}}const L4=Symbol("linkClicked"),P4="react-aria-pressable-style",F4="data-react-aria-pressable";function Y0(e){let{onPress:t,onPressChange:n,onPressStart:i,onPressEnd:o,onPressUp:s,onClick:c,isDisabled:d,isPressed:m,preventFocusOnPress:h,shouldCancelOnPointerExit:y,allowTextSelectionOnPress:g,ref:E,...S}=f8(e),[$,x]=b.useState(!1),w=b.useRef({isPressed:!1,ignoreEmulatedMouseEvents:!1,didFirePressStart:!1,isTriggeringEvent:!1,activePointerId:null,target:null,isOverTarget:!1,pointerType:null,disposables:[]}),{addGlobalListener:R,removeAllGlobalListeners:F}=Hd(),A=b.useCallback((j,de)=>{let O=w.current;if(d||O.didFirePressStart)return!1;let B=!0;if(O.isTriggeringEvent=!0,i){let X=new Dc("pressstart",de,j);i(X),B=X.shouldStopPropagation}return n&&n(!0),O.isTriggeringEvent=!1,O.didFirePressStart=!0,x(!0),B},[d,i,n]),L=b.useCallback((j,de,O=!0)=>{let B=w.current;if(!B.didFirePressStart)return!1;B.didFirePressStart=!1,B.isTriggeringEvent=!0;let X=!0;if(o){let I=new Dc("pressend",de,j);o(I),X=I.shouldStopPropagation}if(n&&n(!1),x(!1),t&&O&&!d){let I=new Dc("press",de,j);t(I),X&&=I.shouldStopPropagation}return B.isTriggeringEvent=!1,X},[d,o,n,t]),M=Zt(L),Z=b.useCallback((j,de)=>{let O=w.current;if(d)return!1;if(s){O.isTriggeringEvent=!0;let B=new Dc("pressup",de,j);return s(B),O.isTriggeringEvent=!1,B.shouldStopPropagation}return!0},[d,s]),V=Zt(Z),fe=b.useCallback(j=>{let de=w.current;if(de.isPressed&&de.target){de.didFirePressStart&&de.pointerType!=null&&L(Ei(de.target,j),de.pointerType,!1),de.isPressed=!1,de.isOverTarget=!1,de.activePointerId=null,de.pointerType=null,F(),g||k4(de.target);for(let O of de.disposables)O();de.disposables=[]}},[g,F,L]),ne=Zt(fe);b.useEffect(()=>{d&&w.current.isPressed&&ne({currentTarget:w.current.target,shiftKey:!1,ctrlKey:!1,metaKey:!1,altKey:!1})},[d]);let pe=b.useCallback(j=>{y&&fe(j)},[y,fe]),J=b.useCallback(j=>{d||c?.(j)},[d,c]),ye=b.useCallback((j,de)=>{if(!d&&c){let O=new MouseEvent("click",j);WE(O,de),c(H0(O))}},[d,c]),Ae=b.useMemo(()=>{let j=w.current,de={onKeyDown(B){if(Pp(B.nativeEvent,B.currentTarget)&&ot(B.currentTarget,Pe(B))){I4(Pe(B),B.key)&&B.preventDefault();let X=!0;!j.isPressed&&!B.repeat&&(j.target=B.currentTarget,j.isPressed=!0,j.pointerType="keyboard",X=A(B,"keyboard"));let I=B.currentTarget,G=C=>{Pp(C,I)&&!C.repeat&&ot(I,Pe(C))&&j.target&&V(Ei(j.target,C),"keyboard")};R(nt(B.currentTarget),"keyup",Fd(G,O),!0),X&&B.stopPropagation(),B.metaKey&&al()&&j.metaKeyEvents?.set(B.key,B.nativeEvent)}else B.key==="Meta"&&(j.metaKeyEvents=new Map)},onClick(B){if(!(B&&!ot(B.currentTarget,Pe(B)))&&B&&B.button===0&&!j.isTriggeringEvent&&!Li.isOpening){let X=!0;if(d&&B.preventDefault(),!j.ignoreEmulatedMouseEvents&&!j.isPressed&&(j.pointerType==="virtual"||tS(B.nativeEvent))){let I=A(B,"virtual"),G=V(B,"virtual"),C=M(B,"virtual");J(B),X=I&&G&&C}else if(j.isPressed&&j.pointerType!=="keyboard"){let I=j.pointerType||B.nativeEvent.pointerType||"virtual",G=V(Ei(B.currentTarget,B),I),C=M(Ei(B.currentTarget,B),I,!0);X=G&&C,j.isOverTarget=!1,J(B),ne(B)}j.ignoreEmulatedMouseEvents=!1,X&&B.stopPropagation()}}},O=B=>{if(j.isPressed&&j.target&&Pp(B,j.target)){I4(Pe(B),B.key)&&B.preventDefault();let X=Pe(B),I=ot(j.target,X);M(Ei(j.target,B),"keyboard",I),I&&ye(B,j.target),F(),B.key!=="Enter"&&q0(j.target)&&ot(j.target,X)&&!B[L4]&&(B[L4]=!0,Li(j.target,B,!1)),j.isPressed=!1,j.metaKeyEvents?.delete(B.key)}else if(B.key==="Meta"&&j.metaKeyEvents?.size){let X=j.metaKeyEvents;j.metaKeyEvents=void 0;for(let I of X.values())j.target?.dispatchEvent(new KeyboardEvent("keyup",I))}};if(typeof PointerEvent<"u"){de.onPointerDown=I=>{if(I.button!==0||!ot(I.currentTarget,Pe(I)))return;if(RN(I.nativeEvent)){j.pointerType="virtual";return}j.pointerType=I.pointerType;let G=!0;if(!j.isPressed){j.isPressed=!0,j.isOverTarget=!0,j.activePointerId=I.pointerId,j.target=I.currentTarget,g||d8(j.target),G=A(I,j.pointerType);let C=Pe(I);"releasePointerCapture"in C&&("hasPointerCapture"in C?C.hasPointerCapture(I.pointerId)&&C.releasePointerCapture(I.pointerId):C.releasePointerCapture(I.pointerId)),R(nt(I.currentTarget),"pointerup",B,!1),R(nt(I.currentTarget),"pointercancel",X,!1)}G&&I.stopPropagation()},de.onMouseDown=I=>{if(ot(I.currentTarget,Pe(I))&&I.button===0){if(h){let G=TN(I.target);G&&j.disposables.push(G)}I.stopPropagation()}},de.onPointerUp=I=>{!ot(I.currentTarget,Pe(I))||j.pointerType==="virtual"||I.button===0&&!j.isPressed&&V(I,j.pointerType||I.pointerType)},de.onPointerEnter=I=>{I.pointerId===j.activePointerId&&j.target&&!j.isOverTarget&&j.pointerType!=null&&(j.isOverTarget=!0,A(Ei(j.target,I),j.pointerType))},de.onPointerLeave=I=>{I.pointerId===j.activePointerId&&j.target&&j.isOverTarget&&j.pointerType!=null&&(j.isOverTarget=!1,M(Ei(j.target,I),j.pointerType,!1),pe(I))};let B=I=>{if(I.pointerId===j.activePointerId&&j.isPressed&&I.button===0&&j.target){if(ot(j.target,Pe(I))&&j.pointerType!=null){let G=!1,C=setTimeout(()=>{j.isPressed&&j.target instanceof HTMLElement&&(G?ne(I):(Bi(j.target),j.target.click()))},80);R(I.currentTarget,"click",()=>G=!0,!0),j.disposables.push(()=>clearTimeout(C))}else ne(I);j.isOverTarget=!1}},X=I=>{ne(I)};de.onDragStart=I=>{ot(I.currentTarget,Pe(I))&&ne(I)}}return de},[R,d,h,F,g,pe,A,J,ye]);return b.useEffect(()=>{if(!E)return;const j=nt(E.current);if(!j||!j.head||j.getElementById(P4))return;const de=j.createElement("style");de.id=P4;let O=yS(j);O&&(de.nonce=O),de.textContent=`
|
|
72
|
-
@layer {
|
|
73
|
-
[${F4}] {
|
|
74
|
-
touch-action: pan-x pan-y pinch-zoom;
|
|
75
|
-
}
|
|
76
|
-
}
|
|
77
|
-
`.trim(),j.head.prepend(de)},[E]),b.useEffect(()=>{let j=w.current;return()=>{g||k4(j.target??void 0);for(let de of j.disposables)de();j.disposables=[]}},[g]),{isPressed:m||$,pressProps:pt(S,Ae,{[F4]:!0})}}function q0(e){return e.tagName==="A"&&e.hasAttribute("href")}function Pp(e,t){const{key:n,code:i}=e,o=t,s=o.getAttribute("role");return(n==="Enter"||n===" "||n==="Spacebar"||i==="Space")&&!(o instanceof hn(o).HTMLInputElement&&!gS(o,n)||o instanceof hn(o).HTMLTextAreaElement||o.isContentEditable)&&!((s==="link"||!s&&q0(o))&&n!=="Enter")}function Ei(e,t){let n=t.clientX,i=t.clientY;return{currentTarget:e,shiftKey:t.shiftKey,ctrlKey:t.ctrlKey,metaKey:t.metaKey,altKey:t.altKey,clientX:n,clientY:i,key:t.key}}function m8(e){return e instanceof HTMLInputElement?!1:e instanceof HTMLButtonElement?e.type!=="submit"&&e.type!=="reset":!q0(e)}function I4(e,t){return e instanceof HTMLInputElement?!gS(e,t):m8(e)}const p8=new Set(["checkbox","radio","range","color","file","image","button","submit","reset"]);function gS(e,t){return e.type==="checkbox"||e.type==="radio"?t===" ":p8.has(e.type)}function Ys(e){let{isDisabled:t,onBlurWithin:n,onFocusWithin:i,onFocusWithinChange:o}=e,s=b.useRef({isFocusWithin:!1}),{addGlobalListener:c,removeAllGlobalListeners:d}=Hd(),m=b.useCallback(g=>{ot(g.currentTarget,Pe(g))&&s.current.isFocusWithin&&!ot(g.currentTarget,g.relatedTarget)&&(s.current.isFocusWithin=!1,d(),n&&n(g),o&&o(!1))},[n,o,s,d]),h=QE(m),y=b.useCallback(g=>{if(!ot(g.currentTarget,Pe(g)))return;let E=Pe(g);const S=nt(E),$=St(S);if(!s.current.isFocusWithin&&$===E){i&&i(g),o&&o(!0),s.current.isFocusWithin=!0,h(g);let x=g.currentTarget;c(S,"focus",w=>{let R=Pe(w);if(s.current.isFocusWithin&&!ot(x,R)){let F=new S.defaultView.FocusEvent("blur",{relatedTarget:R});WE(F,x);let A=H0(F);m(A)}},{capture:!0})}},[i,o,h,c,m]);return t?{focusWithinProps:{onFocus:void 0,onBlur:void 0}}:{focusWithinProps:{onFocus:y,onBlur:m}}}function cl(e={}){let{autoFocus:t=!1,isTextInput:n,within:i}=e,o=b.useRef({isFocused:!1,isFocusVisible:t||Fh()}),[s,c]=b.useState(!1),[d,m]=b.useState(()=>o.current.isFocused&&o.current.isFocusVisible),h=b.useCallback(()=>m(o.current.isFocused&&o.current.isFocusVisible),[]),y=b.useCallback(S=>{o.current.isFocused=S,o.current.isFocusVisible=Fh(),c(S),h()},[h]);IN(S=>{o.current.isFocusVisible=S,h()},[n,s],{enabled:s,isTextInput:n});let{focusProps:g}=dS({isDisabled:i,onFocusChange:y}),{focusWithinProps:E}=Ys({isDisabled:!i,onFocusWithinChange:y});return{isFocused:s,isFocusVisible:d,focusProps:i?E:g}}let Uh=!1,xc=0;function h8(){Uh=!0,setTimeout(()=>{Uh=!1},500)}function j4(e){e.pointerType==="touch"&&h8()}function y8(){let e=nt(null);if(!(typeof e>"u"))return xc===0&&typeof PointerEvent<"u"&&e.addEventListener("pointerup",j4),xc++,()=>{xc--,!(xc>0)&&typeof PointerEvent<"u"&&e.removeEventListener("pointerup",j4)}}function qs(e){let{onHoverStart:t,onHoverChange:n,onHoverEnd:i,isDisabled:o}=e,[s,c]=b.useState(!1),d=b.useRef({isHovered:!1,ignoreEmulatedMouseEvents:!1,pointerType:"",target:null}).current;b.useEffect(y8,[]);let{addGlobalListener:m,removeAllGlobalListeners:h}=Hd(),{hoverProps:y,triggerHoverEnd:g}=b.useMemo(()=>{let E=(x,w)=>{if(d.pointerType=w,o||w==="touch"||d.isHovered||!ot(x.currentTarget,Pe(x)))return;d.isHovered=!0;let R=x.currentTarget;d.target=R,m(nt(Pe(x)),"pointerover",F=>{d.isHovered&&d.target&&!ot(d.target,Pe(F))&&S(F,F.pointerType)},{capture:!0}),t&&t({type:"hoverstart",target:R,pointerType:w}),n&&n(!0),c(!0)},S=(x,w)=>{let R=d.target;d.pointerType="",d.target=null,!(w==="touch"||!d.isHovered||!R)&&(d.isHovered=!1,h(),i&&i({type:"hoverend",target:R,pointerType:w}),n&&n(!1),c(!1))},$={};return typeof PointerEvent<"u"&&($.onPointerEnter=x=>{Uh&&x.pointerType==="mouse"||E(x,x.pointerType)},$.onPointerLeave=x=>{!o&&ot(x.currentTarget,Pe(x))&&S(x,x.pointerType)}),{hoverProps:$,triggerHoverEnd:S}},[t,n,i,o,d,m,h]);return b.useEffect(()=>{o&&g({currentTarget:d.target},d.pointerType)},[o]),{hoverProps:y,isHovered:s}}const bS=b.createContext({});function g8(e){let{id:t,label:n,"aria-labelledby":i,"aria-label":o,labelElementType:s="label"}=e;t=Ar(t);let c=Ar(),d={};n&&(i=i?`${c} ${i}`:c,d={id:c,htmlFor:s==="label"?t:void 0});let m=Zs({id:t,"aria-label":o,"aria-labelledby":i});return{labelProps:d,fieldProps:m}}let Fp=new Map,Hh=!1;try{Hh=new Intl.NumberFormat("de-DE",{signDisplay:"exceptZero"}).resolvedOptions().signDisplay==="exceptZero"}catch{}let ud=!1;try{ud=new Intl.NumberFormat("de-DE",{style:"unit",unit:"degree"}).resolvedOptions().style==="unit"}catch{}const vS={degree:{narrow:{default:"°","ja-JP":" 度","zh-TW":"度","sl-SI":" °"}}};class Vh{constructor(t,n={}){this.numberFormatter=b8(t,n),this.options=n}format(t){let n="";if(!Hh&&this.options.signDisplay!=null?n=v8(this.numberFormatter,this.options.signDisplay,t):n=this.numberFormatter.format(t),this.options.style==="unit"&&!ud){let{unit:i,unitDisplay:o="short",locale:s}=this.resolvedOptions();if(!i)return n;let c=vS[i]?.[o];n+=c[s]||c.default}return n}formatToParts(t){return this.numberFormatter.formatToParts(t)}formatRange(t,n){if(typeof this.numberFormatter.formatRange=="function")return this.numberFormatter.formatRange(t,n);if(n<t)throw new RangeError("End date must be >= start date");return`${this.format(t)} – ${this.format(n)}`}formatRangeToParts(t,n){if(typeof this.numberFormatter.formatRangeToParts=="function")return this.numberFormatter.formatRangeToParts(t,n);if(n<t)throw new RangeError("End date must be >= start date");let i=this.numberFormatter.formatToParts(t),o=this.numberFormatter.formatToParts(n);return[...i.map(s=>({...s,source:"startRange"})),{type:"literal",value:" – ",source:"shared"},...o.map(s=>({...s,source:"endRange"}))]}resolvedOptions(){let t=this.numberFormatter.resolvedOptions();return!Hh&&this.options.signDisplay!=null&&(t={...t,signDisplay:this.options.signDisplay}),!ud&&this.options.style==="unit"&&(t={...t,style:"unit",unit:this.options.unit,unitDisplay:this.options.unitDisplay}),t}}function b8(e,t={}){let{numberingSystem:n}=t;if(n&&e.includes("-nu-")&&(e.includes("-u-")||(e+="-u-"),e+=`-nu-${n}`),t.style==="unit"&&!ud){let{unit:s,unitDisplay:c="short"}=t;if(!s)throw new Error('unit option must be provided with style: "unit"');if(!vS[s]?.[c])throw new Error(`Unsupported unit ${s} with unitDisplay = ${c}`);t={...t,style:"decimal"}}let i=e+(t?Object.entries(t).sort((s,c)=>s[0]<c[0]?-1:1).join():"");if(Fp.has(i))return Fp.get(i);let o=new Intl.NumberFormat(e,t);return Fp.set(i,o),o}function v8(e,t,n){if(t==="auto")return e.format(n);if(t==="never")return e.format(Math.abs(n));{let i=!1;if(t==="always"?i=n>0||Object.is(n,0):t==="exceptZero"&&(Object.is(n,-0)||Object.is(n,0)?n=Math.abs(n):i=n>0),i){let o=e.format(-n),s=e.format(n),c=o.replace(s,"").replace(/\u200e|\u061C/,"");return[...c].length!==1&&console.warn("@react-aria/i18n polyfill for NumberFormat signDisplay: Unsupported case"),o.replace(s,"!!!").replace(c,"+").replace("!!!",s)}else return e.format(n)}}const _8=new RegExp("^.*\\(.*\\).*$"),E8=["latn","arab","hanidec","deva","beng","fullwide"];class _S{constructor(t,n={}){this.locale=t,this.options=n}parse(t){return Ip(this.locale,this.options,t).parse(t)}isValidPartialNumber(t,n,i){return Ip(this.locale,this.options,t).isValidPartialNumber(t,n,i)}getNumberingSystem(t){return Ip(this.locale,this.options,t).options.numberingSystem}}const z4=new Map;function Ip(e,t,n){let i=U4(e,t);if(!e.includes("-nu-")&&!i.isValidPartialNumber(n)){for(let o of E8)if(o!==i.options.numberingSystem){let s=U4(e+(e.includes("-u-")?"-nu-":"-u-nu-")+o,t);if(s.isValidPartialNumber(n))return s}}return i}function U4(e,t){let n=e+(t?Object.entries(t).sort((o,s)=>o[0]<s[0]?-1:1).join():""),i=z4.get(n);return i||(i=new S8(e,t),z4.set(n,i)),i}class S8{constructor(t,n={}){this.locale=t,n.roundingIncrement!==1&&n.roundingIncrement!=null&&(n.maximumFractionDigits==null&&n.minimumFractionDigits==null?(n.maximumFractionDigits=0,n.minimumFractionDigits=0):n.maximumFractionDigits==null?n.maximumFractionDigits=n.minimumFractionDigits:n.minimumFractionDigits==null&&(n.minimumFractionDigits=n.maximumFractionDigits)),this.formatter=new Intl.NumberFormat(t,n),this.options=this.formatter.resolvedOptions(),this.symbols=$8(t,this.formatter,this.options,n),this.options.style==="percent"&&((this.options.minimumFractionDigits??0)>18||(this.options.maximumFractionDigits??0)>18)&&console.warn("NumberParser cannot handle percentages with greater than 18 decimal places, please reduce the number in your options.")}parse(t){let n=this.formatter.resolvedOptions().useGrouping,i=this.sanitize(t);if(!n&&this.symbols.group&&i.includes(this.symbols.group))return NaN;if(this.symbols.group&&(i=i.replaceAll(this.symbols.group,"")),this.symbols.decimal&&(i=i.replace(this.symbols.decimal,".")),this.symbols.minusSign&&(i=i.replace(this.symbols.minusSign,"-")),i=i.replace(this.symbols.numeral,this.symbols.index),this.options.style==="percent"){let s=i.indexOf("-");i=i.replace("-",""),i=i.replace("+","");let c=i.indexOf(".");c===-1&&(c=i.length),i=i.replace(".",""),c-2===0?i=`0.${i}`:c-2===-1?i=`0.0${i}`:c-2===-2?i="0.00":i=`${i.slice(0,c-2)}.${i.slice(c-2)}`,s>-1&&(i=`-${i}`)}let o=i?+i:NaN;if(isNaN(o))return NaN;if(this.options.style==="percent"){let s={...this.options,style:"decimal",minimumFractionDigits:Math.min((this.options.minimumFractionDigits??0)+2,20),maximumFractionDigits:Math.min((this.options.maximumFractionDigits??0)+2,20)};return new _S(this.locale,s).parse(new Vh(this.locale,s).format(o))}return this.options.currencySign==="accounting"&&_8.test(t)&&(o=-1*o),o}sanitize(t){let n=this.formatter.resolvedOptions().useGrouping;return this.symbols.noNumeralUnits.length>0&&this.symbols.noNumeralUnits.find(i=>i.unit===t)?this.symbols.noNumeralUnits.find(i=>i.unit===t).value.toString():(t=t.replace(this.symbols.literals,""),this.symbols.minusSign&&(t=t.replace("-",this.symbols.minusSign)),this.options.numberingSystem==="arab"&&(this.symbols.decimal&&(t=ka(t,",",this.symbols.decimal),t=ka(t,"،",this.symbols.decimal)),this.symbols.group&&n&&(t=ka(t,".",this.symbols.group))),this.symbols.group==="’"&&t.includes("'")&&n&&(t=ka(t,"'",this.symbols.group)),this.symbols.group==="'"&&t.includes("’")&&n&&(t=ka(t,"’",this.symbols.group)),this.options.locale==="fr-FR"&&this.symbols.group&&n&&(t=ka(t," ",this.symbols.group),t=ka(t,/\u00A0/g,this.symbols.group)),t)}isValidPartialNumber(t,n=-1/0,i=1/0){let o=this.formatter.resolvedOptions().useGrouping;return t=this.sanitize(t),this.symbols.minusSign&&t.startsWith(this.symbols.minusSign)&&n<0?t=t.slice(this.symbols.minusSign.length):this.symbols.plusSign&&t.startsWith(this.symbols.plusSign)&&i>0&&(t=t.slice(this.symbols.plusSign.length)),this.symbols.decimal&&t.indexOf(this.symbols.decimal)>-1&&this.options.maximumFractionDigits===0?!1:(this.symbols.group&&o&&(t=ka(t,this.symbols.group,"")),t=t.replace(this.symbols.numeral,""),this.symbols.decimal&&(t=t.replace(this.symbols.decimal,"")),t.length===0)}}const H4=new Set(["decimal","fraction","integer","minusSign","plusSign","group"]),V4=[0,4,2,1,11,20,3,7,100,21,.1,1.1];function $8(e,t,n,i){let o=new Intl.NumberFormat(e,{...n,minimumSignificantDigits:1,maximumSignificantDigits:21,roundingIncrement:1,roundingPriority:"auto",roundingMode:"halfExpand",useGrouping:!0}),s=o.formatToParts(-10000.111),c=o.formatToParts(10000.111),d=V4.map(Z=>o.formatToParts(Z)),m=d.map((Z,V)=>{let fe=Z.find(ne=>ne.type==="unit");return fe&&!Z.some(ne=>ne.type==="integer"||ne.type==="fraction")?{unit:fe.value,value:V4[V]}:null}).filter(Z=>!!Z),h=s.find(Z=>Z.type==="minusSign")?.value??"-",y=c.find(Z=>Z.type==="plusSign")?.value;!y&&(i?.signDisplay==="exceptZero"||i?.signDisplay==="always")&&(y="+");let E=new Intl.NumberFormat(e,{...n,minimumFractionDigits:2,maximumFractionDigits:2}).formatToParts(.001).find(Z=>Z.type==="decimal")?.value,S=s.find(Z=>Z.type==="group")?.value,$=s.filter(Z=>!H4.has(Z.type)).map(Z=>G4(Z.value)),x=d.flatMap(Z=>Z.filter(V=>!H4.has(V.type)).map(V=>G4(V.value))),w=[...new Set([...$,...x])].sort((Z,V)=>V.length-Z.length),R=w.length===0?new RegExp("\\p{White_Space}|\\p{Cf}","gu"):new RegExp(`${w.join("|")}|\\p{White_Space}|\\p{Cf}`,"gu"),F=[...new Intl.NumberFormat(n.locale,{useGrouping:!1}).format(9876543210)].reverse(),A=new Map(F.map((Z,V)=>[Z,V])),L=new RegExp(`[${F.join("")}]`,"g");return{minusSign:h,plusSign:y,decimal:E,group:S,literals:R,numeral:L,numerals:F,index:Z=>String(A.get(Z)),noNumeralUnits:m}}function ka(e,t,n){return e.replaceAll?e.replaceAll(t,n):e.split(t).join(n)}function G4(e){return e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}function Gh(e,t=-1/0,n=1/0){return Math.min(Math.max(e,t),n)}const D8=b.createContext(null),ES=7e3;let Fa=null;function Ns(e,t="assertive",n=ES){Fa?Fa.announce(e,t,n):(Fa=new C8,(typeof IS_REACT_ACT_ENVIRONMENT=="boolean"?IS_REACT_ACT_ENVIRONMENT:typeof jest<"u")?Fa.announce(e,t,n):setTimeout(()=>{Fa?.isAttached()&&Fa?.announce(e,t,n)},100))}function x8(e){Fa&&Fa.clear(e)}class C8{constructor(){this.node=null,this.assertiveLog=null,this.politeLog=null,typeof document<"u"&&(this.node=document.createElement("div"),this.node.dataset.liveAnnouncer="true",Object.assign(this.node.style,{border:0,clip:"rect(0 0 0 0)",clipPath:"inset(50%)",height:"1px",margin:"-1px",overflow:"hidden",padding:0,position:"absolute",width:"1px",whiteSpace:"nowrap"}),this.assertiveLog=this.createLog("assertive"),this.node.appendChild(this.assertiveLog),this.politeLog=this.createLog("polite"),this.node.appendChild(this.politeLog),document.body.prepend(this.node))}isAttached(){return this.node?.isConnected}createLog(t){let n=document.createElement("div");return n.setAttribute("role","log"),n.setAttribute("aria-live",t),n.setAttribute("aria-relevant","additions"),n}destroy(){this.node&&(document.body.removeChild(this.node),this.node=null)}announce(t,n="assertive",i=ES){if(!this.node)return;let o=document.createElement("div");typeof t=="object"?(o.setAttribute("role","img"),o.setAttribute("aria-labelledby",t["aria-labelledby"])):o.textContent=t,n==="assertive"?this.assertiveLog?.appendChild(o):this.politeLog?.appendChild(o),t!==""&&setTimeout(()=>{o.remove()},i)}clear(t){this.node&&((!t||t==="assertive")&&this.assertiveLog&&(this.assertiveLog.innerHTML=""),(!t||t==="polite")&&this.politeLog&&(this.politeLog.innerHTML=""))}}function A8(e,t){let{elementType:n="button",isDisabled:i,onPress:o,onPressStart:s,onPressEnd:c,onPressUp:d,onPressChange:m,preventFocusOnPress:h,allowFocusWhenDisabled:y,onClick:g,href:E,target:S,rel:$,type:x="button"}=e,w;n==="button"?w={type:x,disabled:i,form:e.form,formAction:e.formAction,formEncType:e.formEncType,formMethod:e.formMethod,formNoValidate:e.formNoValidate,formTarget:e.formTarget,name:e.name,value:e.value}:w={role:"button",href:n==="a"&&!i?E:void 0,target:n==="a"?S:void 0,type:n==="input"?x:void 0,disabled:n==="input"?i:void 0,"aria-disabled":!i||n==="input"?void 0:i,rel:n==="a"?$:void 0};let{pressProps:R,isPressed:F}=Y0({onPressStart:s,onPressEnd:c,onPressChange:m,onPress:o,onPressUp:d,onClick:g,isDisabled:i,preventFocusOnPress:h,ref:t}),{focusableProps:A}=r8(e,t);y&&(A.tabIndex=i?-1:A.tabIndex);let L=pt(A,R,un(e,{labelable:!0}));return{isPressed:F,buttonProps:pt(w,L,{"aria-haspopup":e["aria-haspopup"],"aria-expanded":e["aria-expanded"],"aria-controls":e["aria-controls"],"aria-pressed":e["aria-pressed"],"aria-current":e["aria-current"],"aria-disabled":e["aria-disabled"]})}}const Ks=b.createContext({}),jp=pS(function(t,n){[t,n]=sa(t,n,Ks);let i=t,{isPending:o}=i,{buttonProps:s,isPressed:c}=A8(t,n);s=T8(s,o);let{focusProps:d,isFocused:m,isFocusVisible:h}=cl(t),{hoverProps:y,isHovered:g}=qs({...t,isDisabled:t.isDisabled||o}),E={isHovered:g,isPressed:(i.isPressed||c)&&!o,isFocused:m,isFocusVisible:h,isDisabled:t.isDisabled||!1,isPending:o??!1},S=la({...t,values:E,defaultClassName:"react-aria-Button"}),$=Ar(s.id),x=Ar(),w=s["aria-labelledby"];o&&(w?w=`${w} ${x}`:s["aria-label"]&&(w=`${$} ${x}`));let R=b.useRef(o);b.useEffect(()=>{let A={"aria-labelledby":w||$};(!R.current&&m&&o||R.current&&m&&!o)&&Ns(A,"assertive"),R.current=o},[o,m,w,$]);let F=un(t,{global:!0});return delete F.onClick,ve.createElement(wn.button,{...pt(F,S,s,d,y),type:s.type==="submit"&&o?"button":s.type,id:$,ref:n,"aria-labelledby":w,slot:t.slot||void 0,"aria-disabled":o?"true":s["aria-disabled"],"data-disabled":t.isDisabled||void 0,"data-pressed":E.isPressed||void 0,"data-hovered":g||void 0,"data-focused":m||void 0,"data-pending":o||void 0,"data-focus-visible":h||void 0},ve.createElement(D8.Provider,{value:{id:x}},S.children))}),w8=/Focus|Blur|Hover|Pointer(Enter|Leave|Over|Out)|Mouse(Enter|Leave|Over|Out)/;function T8(e,t){if(t){for(const n in e)n.startsWith("on")&&!w8.test(n)&&(e[n]=void 0);e.href=void 0,e.target=void 0}return e}const K0=b.createContext({}),N8=b.forwardRef(function(t,n){[t,n]=sa(t,n,K0);let{children:i,level:o=3,className:s,...c}=t,d=wn[`h${o}`];return ve.createElement(d,{...c,ref:n,className:s??"react-aria-Heading"},i)}),W0=b.createContext({});var SS={};SS={dateRange:e=>`${e.startDate} إلى ${e.endDate}`,dateSelected:e=>`${e.date} المحدد`,finishRangeSelectionPrompt:"انقر لإنهاء عملية تحديد نطاق التاريخ",maximumDate:"آخر تاريخ متاح",minimumDate:"أول تاريخ متاح",next:"التالي",previous:"السابق",selectedDateDescription:e=>`تاريخ محدد: ${e.date}`,selectedRangeDescription:e=>`المدى الزمني المحدد: ${e.dateRange}`,startRangeSelectionPrompt:"انقر لبدء عملية تحديد نطاق التاريخ",todayDate:e=>`اليوم، ${e.date}`,todayDateSelected:e=>`اليوم، ${e.date} محدد`};var $S={};$S={dateRange:e=>`${e.startDate} до ${e.endDate}`,dateSelected:e=>`Избрано е ${e.date}`,finishRangeSelectionPrompt:"Натиснете, за да довършите избора на времеви интервал",maximumDate:"Последна налична дата",minimumDate:"Първа налична дата",next:"Напред",previous:"Назад",selectedDateDescription:e=>`Избрана дата: ${e.date}`,selectedRangeDescription:e=>`Избран диапазон: ${e.dateRange}`,startRangeSelectionPrompt:"Натиснете, за да пристъпите към избора на времеви интервал",todayDate:e=>`Днес, ${e.date}`,todayDateSelected:e=>`Днес, ${e.date} са избрани`};var DS={};DS={dateRange:e=>`${e.startDate} až ${e.endDate}`,dateSelected:e=>`Vybráno ${e.date}`,finishRangeSelectionPrompt:"Kliknutím dokončíte výběr rozsahu dat",maximumDate:"Poslední dostupné datum",minimumDate:"První dostupné datum",next:"Další",previous:"Předchozí",selectedDateDescription:e=>`Vybrané datum: ${e.date}`,selectedRangeDescription:e=>`Vybrané období: ${e.dateRange}`,startRangeSelectionPrompt:"Kliknutím zahájíte výběr rozsahu dat",todayDate:e=>`Dnes, ${e.date}`,todayDateSelected:e=>`Dnes, vybráno ${e.date}`};var xS={};xS={dateRange:e=>`${e.startDate} til ${e.endDate}`,dateSelected:e=>`${e.date} valgt`,finishRangeSelectionPrompt:"Klik for at fuldføre valg af datoområde",maximumDate:"Sidste ledige dato",minimumDate:"Første ledige dato",next:"Næste",previous:"Forrige",selectedDateDescription:e=>`Valgt dato: ${e.date}`,selectedRangeDescription:e=>`Valgt interval: ${e.dateRange}`,startRangeSelectionPrompt:"Klik for at starte valg af datoområde",todayDate:e=>`I dag, ${e.date}`,todayDateSelected:e=>`I dag, ${e.date} valgt`};var CS={};CS={dateRange:e=>`${e.startDate} bis ${e.endDate}`,dateSelected:e=>`${e.date} ausgewählt`,finishRangeSelectionPrompt:"Klicken, um die Auswahl des Datumsbereichs zu beenden",maximumDate:"Letztes verfügbares Datum",minimumDate:"Erstes verfügbares Datum",next:"Weiter",previous:"Zurück",selectedDateDescription:e=>`Ausgewähltes Datum: ${e.date}`,selectedRangeDescription:e=>`Ausgewählter Bereich: ${e.dateRange}`,startRangeSelectionPrompt:"Klicken, um die Auswahl des Datumsbereichs zu beginnen",todayDate:e=>`Heute, ${e.date}`,todayDateSelected:e=>`Heute, ${e.date} ausgewählt`};var AS={};AS={dateRange:e=>`${e.startDate} έως ${e.endDate}`,dateSelected:e=>`Επιλέχθηκε ${e.date}`,finishRangeSelectionPrompt:"Κάντε κλικ για να ολοκληρώσετε την επιλογή εύρους ημερομηνιών",maximumDate:"Τελευταία διαθέσιμη ημερομηνία",minimumDate:"Πρώτη διαθέσιμη ημερομηνία",next:"Επόμενο",previous:"Προηγούμενο",selectedDateDescription:e=>`Επιλεγμένη ημερομηνία: ${e.date}`,selectedRangeDescription:e=>`Επιλεγμένο εύρος: ${e.dateRange}`,startRangeSelectionPrompt:"Κάντε κλικ για να ξεκινήσετε την επιλογή εύρους ημερομηνιών",todayDate:e=>`Σήμερα, ${e.date}`,todayDateSelected:e=>`Σήμερα, επιλέχτηκε ${e.date}`};var wS={};wS={previous:"Previous",next:"Next",selectedDateDescription:e=>`Selected Date: ${e.date}`,selectedRangeDescription:e=>`Selected Range: ${e.dateRange}`,todayDate:e=>`Today, ${e.date}`,todayDateSelected:e=>`Today, ${e.date} selected`,dateSelected:e=>`${e.date} selected`,startRangeSelectionPrompt:"Click to start selecting date range",finishRangeSelectionPrompt:"Click to finish selecting date range",minimumDate:"First available date",maximumDate:"Last available date",dateRange:e=>`${e.startDate} to ${e.endDate}`};var TS={};TS={dateRange:e=>`${e.startDate} a ${e.endDate}`,dateSelected:e=>`${e.date} seleccionado`,finishRangeSelectionPrompt:"Haga clic para terminar de seleccionar rango de fechas",maximumDate:"Última fecha disponible",minimumDate:"Primera fecha disponible",next:"Siguiente",previous:"Anterior",selectedDateDescription:e=>`Fecha seleccionada: ${e.date}`,selectedRangeDescription:e=>`Intervalo seleccionado: ${e.dateRange}`,startRangeSelectionPrompt:"Haga clic para comenzar a seleccionar un rango de fechas",todayDate:e=>`Hoy, ${e.date}`,todayDateSelected:e=>`Hoy, ${e.date} seleccionado`};var NS={};NS={dateRange:e=>`${e.startDate} kuni ${e.endDate}`,dateSelected:e=>`${e.date} valitud`,finishRangeSelectionPrompt:"Klõpsake kuupäevavahemiku valimise lõpetamiseks",maximumDate:"Viimane saadaolev kuupäev",minimumDate:"Esimene saadaolev kuupäev",next:"Järgmine",previous:"Eelmine",selectedDateDescription:e=>`Valitud kuupäev: ${e.date}`,selectedRangeDescription:e=>`Valitud vahemik: ${e.dateRange}`,startRangeSelectionPrompt:"Klõpsake kuupäevavahemiku valimiseks",todayDate:e=>`Täna, ${e.date}`,todayDateSelected:e=>`Täna, ${e.date} valitud`};var MS={};MS={dateRange:e=>`${e.startDate} – ${e.endDate}`,dateSelected:e=>`${e.date} valittu`,finishRangeSelectionPrompt:"Lopeta päivämääräalueen valinta napsauttamalla tätä.",maximumDate:"Viimeinen varattavissa oleva päivämäärä",minimumDate:"Ensimmäinen varattavissa oleva päivämäärä",next:"Seuraava",previous:"Edellinen",selectedDateDescription:e=>`Valittu päivämäärä: ${e.date}`,selectedRangeDescription:e=>`Valittu aikaväli: ${e.dateRange}`,startRangeSelectionPrompt:"Aloita päivämääräalueen valinta napsauttamalla tätä.",todayDate:e=>`Tänään, ${e.date}`,todayDateSelected:e=>`Tänään, ${e.date} valittu`};var RS={};RS={dateRange:e=>`${e.startDate} à ${e.endDate}`,dateSelected:e=>`${e.date} sélectionné`,finishRangeSelectionPrompt:"Cliquer pour finir de sélectionner la plage de dates",maximumDate:"Dernière date disponible",minimumDate:"Première date disponible",next:"Suivant",previous:"Précédent",selectedDateDescription:e=>`Date sélectionnée : ${e.date}`,selectedRangeDescription:e=>`Plage sélectionnée : ${e.dateRange}`,startRangeSelectionPrompt:"Cliquer pour commencer à sélectionner la plage de dates",todayDate:e=>`Aujourd'hui, ${e.date}`,todayDateSelected:e=>`Aujourd’hui, ${e.date} sélectionné`};var OS={};OS={dateRange:e=>`${e.startDate} עד ${e.endDate}`,dateSelected:e=>`${e.date} נבחר`,finishRangeSelectionPrompt:"חץ כדי לסיים את בחירת טווח התאריכים",maximumDate:"תאריך פנוי אחרון",minimumDate:"תאריך פנוי ראשון",next:"הבא",previous:"הקודם",selectedDateDescription:e=>`תאריך נבחר: ${e.date}`,selectedRangeDescription:e=>`טווח נבחר: ${e.dateRange}`,startRangeSelectionPrompt:"לחץ כדי להתחיל בבחירת טווח התאריכים",todayDate:e=>`היום, ${e.date}`,todayDateSelected:e=>`היום, ${e.date} נבחר`};var kS={};kS={dateRange:e=>`${e.startDate} do ${e.endDate}`,dateSelected:e=>`${e.date} odabran`,finishRangeSelectionPrompt:"Kliknite da dovršite raspon odabranih datuma",maximumDate:"Posljednji raspoloživi datum",minimumDate:"Prvi raspoloživi datum",next:"Sljedeći",previous:"Prethodni",selectedDateDescription:e=>`Odabrani datum: ${e.date}`,selectedRangeDescription:e=>`Odabrani raspon: ${e.dateRange}`,startRangeSelectionPrompt:"Kliknite da započnete raspon odabranih datuma",todayDate:e=>`Danas, ${e.date}`,todayDateSelected:e=>`Danas, odabran ${e.date}`};var BS={};BS={dateRange:e=>`${e.startDate}–${e.endDate}`,dateSelected:e=>`${e.date} kiválasztva`,finishRangeSelectionPrompt:"Kattintson a dátumtartomány kijelölésének befejezéséhez",maximumDate:"Utolsó elérhető dátum",minimumDate:"Az első elérhető dátum",next:"Következő",previous:"Előző",selectedDateDescription:e=>`Kijelölt dátum: ${e.date}`,selectedRangeDescription:e=>`Kijelölt tartomány: ${e.dateRange}`,startRangeSelectionPrompt:"Kattintson a dátumtartomány kijelölésének indításához",todayDate:e=>`Ma, ${e.date}`,todayDateSelected:e=>`Ma, ${e.date} kijelölve`};var LS={};LS={dateRange:e=>`Da ${e.startDate} a ${e.endDate}`,dateSelected:e=>`${e.date} selezionata`,finishRangeSelectionPrompt:"Fai clic per completare la selezione dell’intervallo di date",maximumDate:"Ultima data disponibile",minimumDate:"Prima data disponibile",next:"Successivo",previous:"Precedente",selectedDateDescription:e=>`Data selezionata: ${e.date}`,selectedRangeDescription:e=>`Intervallo selezionato: ${e.dateRange}`,startRangeSelectionPrompt:"Fai clic per selezionare l’intervallo di date",todayDate:e=>`Oggi, ${e.date}`,todayDateSelected:e=>`Oggi, ${e.date} selezionata`};var PS={};PS={dateRange:e=>`${e.startDate} から ${e.endDate}`,dateSelected:e=>`${e.date} を選択`,finishRangeSelectionPrompt:"クリックして日付範囲の選択を終了",maximumDate:"最終利用可能日",minimumDate:"最初の利用可能日",next:"次へ",previous:"前へ",selectedDateDescription:e=>`選択した日付 : ${e.date}`,selectedRangeDescription:e=>`選択範囲 : ${e.dateRange}`,startRangeSelectionPrompt:"クリックして日付範囲の選択を開始",todayDate:e=>`本日、${e.date}`,todayDateSelected:e=>`本日、${e.date} を選択`};var FS={};FS={dateRange:e=>`${e.startDate} ~ ${e.endDate}`,dateSelected:e=>`${e.date} 선택됨`,finishRangeSelectionPrompt:"날짜 범위 선택을 완료하려면 클릭하십시오.",maximumDate:"마지막으로 사용 가능한 일자",minimumDate:"처음으로 사용 가능한 일자",next:"다음",previous:"이전",selectedDateDescription:e=>`선택 일자: ${e.date}`,selectedRangeDescription:e=>`선택 범위: ${e.dateRange}`,startRangeSelectionPrompt:"날짜 범위 선택을 시작하려면 클릭하십시오.",todayDate:e=>`오늘, ${e.date}`,todayDateSelected:e=>`오늘, ${e.date} 선택됨`};var IS={};IS={dateRange:e=>`Nuo ${e.startDate} iki ${e.endDate}`,dateSelected:e=>`Pasirinkta ${e.date}`,finishRangeSelectionPrompt:"Spustelėkite, kad baigtumėte pasirinkti datų intervalą",maximumDate:"Paskutinė galima data",minimumDate:"Pirmoji galima data",next:"Paskesnis",previous:"Ankstesnis",selectedDateDescription:e=>`Pasirinkta data: ${e.date}`,selectedRangeDescription:e=>`Pasirinktas intervalas: ${e.dateRange}`,startRangeSelectionPrompt:"Spustelėkite, kad pradėtumėte pasirinkti datų intervalą",todayDate:e=>`Šiandien, ${e.date}`,todayDateSelected:e=>`Šiandien, pasirinkta ${e.date}`};var jS={};jS={dateRange:e=>`No ${e.startDate} līdz ${e.endDate}`,dateSelected:e=>`Atlasīts: ${e.date}`,finishRangeSelectionPrompt:"Noklikšķiniet, lai pabeigtu datumu diapazona atlasi",maximumDate:"Pēdējais pieejamais datums",minimumDate:"Pirmais pieejamais datums",next:"Tālāk",previous:"Atpakaļ",selectedDateDescription:e=>`Atlasītais datums: ${e.date}`,selectedRangeDescription:e=>`Atlasītais diapazons: ${e.dateRange}`,startRangeSelectionPrompt:"Noklikšķiniet, lai sāktu datumu diapazona atlasi",todayDate:e=>`Šodien, ${e.date}`,todayDateSelected:e=>`Atlasīta šodiena, ${e.date}`};var zS={};zS={dateRange:e=>`${e.startDate} til ${e.endDate}`,dateSelected:e=>`${e.date} valgt`,finishRangeSelectionPrompt:"Klikk for å fullføre valg av datoområde",maximumDate:"Siste tilgjengelige dato",minimumDate:"Første tilgjengelige dato",next:"Neste",previous:"Forrige",selectedDateDescription:e=>`Valgt dato: ${e.date}`,selectedRangeDescription:e=>`Valgt område: ${e.dateRange}`,startRangeSelectionPrompt:"Klikk for å starte valg av datoområde",todayDate:e=>`I dag, ${e.date}`,todayDateSelected:e=>`I dag, ${e.date} valgt`};var US={};US={dateRange:e=>`${e.startDate} tot ${e.endDate}`,dateSelected:e=>`${e.date} geselecteerd`,finishRangeSelectionPrompt:"Klik om de selectie van het datumbereik te voltooien",maximumDate:"Laatste beschikbare datum",minimumDate:"Eerste beschikbare datum",next:"Volgende",previous:"Vorige",selectedDateDescription:e=>`Geselecteerde datum: ${e.date}`,selectedRangeDescription:e=>`Geselecteerd bereik: ${e.dateRange}`,startRangeSelectionPrompt:"Klik om het datumbereik te selecteren",todayDate:e=>`Vandaag, ${e.date}`,todayDateSelected:e=>`Vandaag, ${e.date} geselecteerd`};var HS={};HS={dateRange:e=>`${e.startDate} do ${e.endDate}`,dateSelected:e=>`Wybrano ${e.date}`,finishRangeSelectionPrompt:"Kliknij, aby zakończyć wybór zakresu dat",maximumDate:"Ostatnia dostępna data",minimumDate:"Pierwsza dostępna data",next:"Dalej",previous:"Wstecz",selectedDateDescription:e=>`Wybrana data: ${e.date}`,selectedRangeDescription:e=>`Wybrany zakres: ${e.dateRange}`,startRangeSelectionPrompt:"Kliknij, aby rozpocząć wybór zakresu dat",todayDate:e=>`Dzisiaj, ${e.date}`,todayDateSelected:e=>`Dzisiaj wybrano ${e.date}`};var VS={};VS={dateRange:e=>`${e.startDate} a ${e.endDate}`,dateSelected:e=>`${e.date} selecionado`,finishRangeSelectionPrompt:"Clique para concluir a seleção do intervalo de datas",maximumDate:"Última data disponível",minimumDate:"Primeira data disponível",next:"Próximo",previous:"Anterior",selectedDateDescription:e=>`Data selecionada: ${e.date}`,selectedRangeDescription:e=>`Intervalo selecionado: ${e.dateRange}`,startRangeSelectionPrompt:"Clique para iniciar a seleção do intervalo de datas",todayDate:e=>`Hoje, ${e.date}`,todayDateSelected:e=>`Hoje, ${e.date} selecionado`};var GS={};GS={dateRange:e=>`${e.startDate} a ${e.endDate}`,dateSelected:e=>`${e.date} selecionado`,finishRangeSelectionPrompt:"Clique para terminar de selecionar o intervalo de datas",maximumDate:"Última data disponível",minimumDate:"Primeira data disponível",next:"Próximo",previous:"Anterior",selectedDateDescription:e=>`Data selecionada: ${e.date}`,selectedRangeDescription:e=>`Intervalo selecionado: ${e.dateRange}`,startRangeSelectionPrompt:"Clique para começar a selecionar o intervalo de datas",todayDate:e=>`Hoje, ${e.date}`,todayDateSelected:e=>`Hoje, ${e.date} selecionado`};var ZS={};ZS={dateRange:e=>`De la ${e.startDate} până la ${e.endDate}`,dateSelected:e=>`${e.date} selectată`,finishRangeSelectionPrompt:"Apăsaţi pentru a finaliza selecţia razei pentru dată",maximumDate:"Ultima dată disponibilă",minimumDate:"Prima dată disponibilă",next:"Următorul",previous:"Înainte",selectedDateDescription:e=>`Dată selectată: ${e.date}`,selectedRangeDescription:e=>`Interval selectat: ${e.dateRange}`,startRangeSelectionPrompt:"Apăsaţi pentru a începe selecţia razei pentru dată",todayDate:e=>`Astăzi, ${e.date}`,todayDateSelected:e=>`Azi, ${e.date} selectată`};var YS={};YS={dateRange:e=>`С ${e.startDate} по ${e.endDate}`,dateSelected:e=>`Выбрано ${e.date}`,finishRangeSelectionPrompt:"Щелкните, чтобы завершить выбор диапазона дат",maximumDate:"Последняя доступная дата",minimumDate:"Первая доступная дата",next:"Далее",previous:"Назад",selectedDateDescription:e=>`Выбранная дата: ${e.date}`,selectedRangeDescription:e=>`Выбранный диапазон: ${e.dateRange}`,startRangeSelectionPrompt:"Щелкните, чтобы начать выбор диапазона дат",todayDate:e=>`Сегодня, ${e.date}`,todayDateSelected:e=>`Сегодня, выбрано ${e.date}`};var qS={};qS={dateRange:e=>`Od ${e.startDate} do ${e.endDate}`,dateSelected:e=>`Vybratý dátum ${e.date}`,finishRangeSelectionPrompt:"Kliknutím dokončíte výber rozsahu dátumov",maximumDate:"Posledný dostupný dátum",minimumDate:"Prvý dostupný dátum",next:"Nasledujúce",previous:"Predchádzajúce",selectedDateDescription:e=>`Vybratý dátum: ${e.date}`,selectedRangeDescription:e=>`Vybratý rozsah: ${e.dateRange}`,startRangeSelectionPrompt:"Kliknutím spustíte výber rozsahu dátumov",todayDate:e=>`Dnes ${e.date}`,todayDateSelected:e=>`Vybratý dnešný dátum ${e.date}`};var KS={};KS={dateRange:e=>`${e.startDate} do ${e.endDate}`,dateSelected:e=>`${e.date} izbrano`,finishRangeSelectionPrompt:"Kliknite za dokončanje izbire datumskega obsega",maximumDate:"Zadnji razpoložljivi datum",minimumDate:"Prvi razpoložljivi datum",next:"Naprej",previous:"Nazaj",selectedDateDescription:e=>`Izbrani datum: ${e.date}`,selectedRangeDescription:e=>`Izbrano območje: ${e.dateRange}`,startRangeSelectionPrompt:"Kliknite za začetek izbire datumskega obsega",todayDate:e=>`Danes, ${e.date}`,todayDateSelected:e=>`Danes, ${e.date} izbrano`};var WS={};WS={dateRange:e=>`${e.startDate} do ${e.endDate}`,dateSelected:e=>`${e.date} izabran`,finishRangeSelectionPrompt:"Kliknite da dovršite opseg izabranih datuma",maximumDate:"Zadnji raspoloživi datum",minimumDate:"Prvi raspoloživi datum",next:"Sledeći",previous:"Prethodni",selectedDateDescription:e=>`Izabrani datum: ${e.date}`,selectedRangeDescription:e=>`Izabrani period: ${e.dateRange}`,startRangeSelectionPrompt:"Kliknite da započnete opseg izabranih datuma",todayDate:e=>`Danas, ${e.date}`,todayDateSelected:e=>`Danas, izabran ${e.date}`};var QS={};QS={dateRange:e=>`${e.startDate} till ${e.endDate}`,dateSelected:e=>`${e.date} har valts`,finishRangeSelectionPrompt:"Klicka för att avsluta val av datumintervall",maximumDate:"Sista tillgängliga datum",minimumDate:"Första tillgängliga datum",next:"Nästa",previous:"Föregående",selectedDateDescription:e=>`Valt datum: ${e.date}`,selectedRangeDescription:e=>`Valt intervall: ${e.dateRange}`,startRangeSelectionPrompt:"Klicka för att välja datumintervall",todayDate:e=>`Idag, ${e.date}`,todayDateSelected:e=>`Idag, ${e.date} har valts`};var JS={};JS={dateRange:e=>`${e.startDate} - ${e.endDate}`,dateSelected:e=>`${e.date} seçildi`,finishRangeSelectionPrompt:"Tarih aralığı seçimini tamamlamak için tıklayın",maximumDate:"Son müsait tarih",minimumDate:"İlk müsait tarih",next:"Sonraki",previous:"Önceki",selectedDateDescription:e=>`Seçilen Tarih: ${e.date}`,selectedRangeDescription:e=>`Seçilen Aralık: ${e.dateRange}`,startRangeSelectionPrompt:"Tarih aralığı seçimini başlatmak için tıklayın",todayDate:e=>`Bugün, ${e.date}`,todayDateSelected:e=>`Bugün, ${e.date} seçildi`};var XS={};XS={dateRange:e=>`${e.startDate} — ${e.endDate}`,dateSelected:e=>`Вибрано ${e.date}`,finishRangeSelectionPrompt:"Натисніть, щоб завершити вибір діапазону дат",maximumDate:"Остання доступна дата",minimumDate:"Перша доступна дата",next:"Наступний",previous:"Попередній",selectedDateDescription:e=>`Вибрана дата: ${e.date}`,selectedRangeDescription:e=>`Вибраний діапазон: ${e.dateRange}`,startRangeSelectionPrompt:"Натисніть, щоб почати вибір діапазону дат",todayDate:e=>`Сьогодні, ${e.date}`,todayDateSelected:e=>`Сьогодні, вибрано ${e.date}`};var e$={};e$={dateRange:e=>`${e.startDate} 至 ${e.endDate}`,dateSelected:e=>`已选择 ${e.date}`,finishRangeSelectionPrompt:"单击以完成选择日期范围",maximumDate:"最后一个可用日期",minimumDate:"第一个可用日期",next:"下一页",previous:"上一页",selectedDateDescription:e=>`选定的日期:${e.date}`,selectedRangeDescription:e=>`选定的范围:${e.dateRange}`,startRangeSelectionPrompt:"单击以开始选择日期范围",todayDate:e=>`今天,即 ${e.date}`,todayDateSelected:e=>`已选择今天,即 ${e.date}`};var t$={};t$={dateRange:e=>`${e.startDate} 至 ${e.endDate}`,dateSelected:e=>`已選取 ${e.date}`,finishRangeSelectionPrompt:"按一下以完成選取日期範圍",maximumDate:"最後一個可用日期",minimumDate:"第一個可用日期",next:"下一頁",previous:"上一頁",selectedDateDescription:e=>`選定的日期:${e.date}`,selectedRangeDescription:e=>`選定的範圍:${e.dateRange}`,startRangeSelectionPrompt:"按一下以開始選取日期範圍",todayDate:e=>`今天,${e.date}`,todayDateSelected:e=>`已選取今天,${e.date}`};var Ws={};Ws={"ar-AE":SS,"bg-BG":$S,"cs-CZ":DS,"da-DK":xS,"de-DE":CS,"el-GR":AS,"en-US":wS,"es-ES":TS,"et-EE":NS,"fi-FI":MS,"fr-FR":RS,"he-IL":OS,"hr-HR":kS,"hu-HU":BS,"it-IT":LS,"ja-JP":PS,"ko-KR":FS,"lt-LT":IS,"lv-LV":jS,"nb-NO":zS,"nl-NL":US,"pl-PL":HS,"pt-BR":VS,"pt-PT":GS,"ro-RO":ZS,"ru-RU":YS,"sk-SK":qS,"sl-SI":KS,"sr-SP":WS,"sv-SE":QS,"tr-TR":JS,"uk-UA":XS,"zh-CN":e$,"zh-TW":t$};function n$(e,t){let n=b.useRef(null);return e&&n.current&&t(e,n.current)&&(e=n.current),n.current=e,e}function qo(e,t){return e-t*Math.floor(e/t)}const r$=1721426;function Ci(e,t,n,i){t=Qs(e,t);let o=t-1,s=-2;return n<=2?s=0:Ha(t)&&(s=-1),r$-1+365*o+Math.floor(o/4)-Math.floor(o/100)+Math.floor(o/400)+Math.floor((367*n-362)/12+s+i)}function Ha(e){return e%4===0&&(e%100!==0||e%400===0)}function Qs(e,t){return e==="BC"?1-t:t}function Vd(e){let t="AD";return e<=0&&(t="BC",e=1-e),[t,e]}const M8={standard:[31,28,31,30,31,30,31,31,30,31,30,31],leapyear:[31,29,31,30,31,30,31,31,30,31,30,31]};class pn{fromJulianDay(t){let n=t,i=n-r$,o=Math.floor(i/146097),s=qo(i,146097),c=Math.floor(s/36524),d=qo(s,36524),m=Math.floor(d/1461),h=qo(d,1461),y=Math.floor(h/365),g=o*400+c*100+m*4+y+(c!==4&&y!==4?1:0),[E,S]=Vd(g),$=n-Ci(E,S,1,1),x=2;n<Ci(E,S,3,1)?x=0:Ha(S)&&(x=1);let w=Math.floor((($+x)*12+373)/367),R=n-Ci(E,S,w,1)+1;return new Ot(E,S,w,R)}toJulianDay(t){return Ci(t.era,t.year,t.month,t.day)}getDaysInMonth(t){return M8[Ha(t.year)?"leapyear":"standard"][t.month-1]}getMonthsInYear(t){return 12}getDaysInYear(t){return Ha(t.year)?366:365}getMaximumMonthsInYear(){return 12}getMaximumDaysInMonth(){return 31}getYearsInEra(t){return 9999}getEras(){return["BC","AD"]}isInverseEra(t){return t.era==="BC"}balanceDate(t){t.year<=0&&(t.era=t.era==="BC"?"AD":"BC",t.year=1-t.year)}constructor(){this.identifier="gregory"}}const R8={"001":1,AD:1,AE:6,AF:6,AI:1,AL:1,AM:1,AN:1,AR:1,AT:1,AU:1,AX:1,AZ:1,BA:1,BE:1,BG:1,BH:6,BM:1,BN:1,BY:1,CH:1,CL:1,CM:1,CN:1,CR:1,CY:1,CZ:1,DE:1,DJ:6,DK:1,DZ:6,EC:1,EE:1,EG:6,ES:1,FI:1,FJ:1,FO:1,FR:1,GB:1,GE:1,GF:1,GP:1,GR:1,HR:1,HU:1,IE:1,IQ:6,IR:6,IS:1,IT:1,JO:6,KG:1,KW:6,KZ:1,LB:1,LI:1,LK:1,LT:1,LU:1,LV:1,LY:6,MC:1,MD:1,ME:1,MK:1,MN:1,MQ:1,MV:5,MY:1,NL:1,NO:1,NZ:1,OM:6,PL:1,QA:6,RE:1,RO:1,RS:1,RU:1,SD:6,SE:1,SI:1,SK:1,SM:1,SY:6,TJ:1,TM:1,TR:1,UA:1,UY:1,UZ:1,VA:1,VN:1,XK:1};function Ct(e,t){return t=Et(t,e.calendar),e.era===t.era&&e.year===t.year&&e.month===t.month&&e.day===t.day}function O8(e,t){return t=Et(t,e.calendar),e=Fi(e),t=Fi(t),e.era===t.era&&e.year===t.year&&e.month===t.month}function k8(e,t){return t=Et(t,e.calendar),e=Zh(e),t=Zh(t),e.era===t.era&&e.year===t.year}function B8(e,t){return Gd(e.calendar,t.calendar)&&Ct(e,t)}function Gd(e,t){return e.isEqual?.(t)??t.isEqual?.(e)??e.identifier===t.identifier}function a$(e,t){return Ct(e,J0(t))}const L8={sun:0,mon:1,tue:2,wed:3,thu:4,fri:5,sat:6};function Q0(e,t,n){let i=e.calendar.toJulianDay(e),o=n?L8[n]:j8(t),s=Math.ceil(i+1-o)%7;return s<0&&(s+=7),s}function i$(e){return ta(Date.now(),e)}function J0(e){return mn(i$(e))}function o$(e,t){return e.calendar.toJulianDay(e)-t.calendar.toJulianDay(t)}function l$(e,t){return Z4(e)-Z4(t)}function Z4(e){return e.hour*36e5+e.minute*6e4+e.second*1e3+e.millisecond}let zp=null,P8=!1;function Zd(){return zp==null&&(zp=new Intl.DateTimeFormat().resolvedOptions().timeZone),zp}function s$(){return P8}function Fi(e){return e.subtract({days:e.day-1})}function cd(e){return e.add({days:e.calendar.getDaysInMonth(e)-e.day})}function Zh(e){return Fi(e.subtract({months:e.month-1}))}function Ms(e,t,n){let i=Q0(e,t,n);return e.subtract({days:i})}function F8(e,t,n){return Ms(e,t,n).add({days:6})}const Y4=new Map,Up=new Map;function I8(e){if(Intl.Locale){let n=Y4.get(e);return n||(n=new Intl.Locale(e).maximize().region,n&&Y4.set(e,n)),n}let t=e.split("-")[1];return t==="u"?void 0:t}function j8(e){let t=Up.get(e);if(!t){if(Intl.Locale){let i=new Intl.Locale(e);if("getWeekInfo"in i&&(t=i.getWeekInfo(),t))return Up.set(e,t),t.firstDay}let n=I8(e);if(e.includes("-fw-")){let i=e.split("-fw-")[1].split("-")[0];i==="mon"?t={firstDay:1}:i==="tue"?t={firstDay:2}:i==="wed"?t={firstDay:3}:i==="thu"?t={firstDay:4}:i==="fri"?t={firstDay:5}:i==="sat"?t={firstDay:6}:t={firstDay:0}}else e.includes("-ca-iso8601")?t={firstDay:1}:t={firstDay:n&&R8[n]||0};Up.set(e,t)}return t.firstDay}function z8(e,t,n){let i=e.calendar.getDaysInMonth(e);return Math.ceil((Q0(Fi(e),t,n)+i)/7)}function u$(e,t){return e&&t?e.compare(t)<=0?e:t:e||t}function c$(e,t){return e&&t?e.compare(t)>=0?e:t:e||t}function il(e){e=Et(e,new pn);let t=Qs(e.era,e.year);return d$(t,e.month,e.day,e.hour,e.minute,e.second,e.millisecond)}function d$(e,t,n,i,o,s,c){let d=new Date;return d.setUTCHours(i,o,s,c),d.setUTCFullYear(e,t-1,n),d.getTime()}function Yh(e,t){if(t==="UTC")return 0;if(e>0&&t===Zd()&&!s$())return new Date(e).getTimezoneOffset()*-6e4;let{year:n,month:i,day:o,hour:s,minute:c,second:d}=f$(e,t);return d$(n,i,o,s,c,d,0)-Math.floor(e/1e3)*1e3}const q4=new Map;function f$(e,t){let n=q4.get(t);n||(n=new Intl.DateTimeFormat("en-US",{timeZone:t,hour12:!1,era:"short",year:"numeric",month:"numeric",day:"numeric",hour:"numeric",minute:"numeric",second:"numeric"}),q4.set(t,n));let i=n.formatToParts(new Date(e)),o={};for(let s of i)s.type!=="literal"&&(o[s.type]=s.value);return{year:o.era==="BC"||o.era==="B"?-o.year+1:+o.year,month:+o.month,day:+o.day,hour:o.hour==="24"?0:+o.hour,minute:+o.minute,second:+o.second}}const K4=864e5;function U8(e,t,n,i){return(n===i?[n]:[n,i]).filter(s=>H8(e,t,s))}function H8(e,t,n){let i=f$(n,t);return e.year===i.year&&e.month===i.month&&e.day===i.day&&e.hour===i.hour&&e.minute===i.minute&&e.second===i.second}function ea(e,t,n="compatible"){let i=oa(e);if(t==="UTC")return il(i);if(t===Zd()&&n==="compatible"&&!s$()){i=Et(i,new pn);let m=new Date,h=Qs(i.era,i.year);return m.setFullYear(h,i.month-1,i.day),m.setHours(i.hour,i.minute,i.second,i.millisecond),m.getTime()}let o=il(i),s=Yh(o-K4,t),c=Yh(o+K4,t),d=U8(i,t,o-s,o-c);if(d.length===1)return d[0];if(d.length>1)switch(n){case"compatible":case"earlier":return d[0];case"later":return d[d.length-1];case"reject":throw new RangeError("Multiple possible absolute times found")}switch(n){case"earlier":return Math.min(o-s,o-c);case"compatible":case"later":return Math.max(o-s,o-c);case"reject":throw new RangeError("No such absolute time found")}}function m$(e,t,n="compatible"){return new Date(ea(e,t,n))}function ta(e,t){let n=Yh(e,t),i=new Date(e+n),o=i.getUTCFullYear(),s=i.getUTCMonth()+1,c=i.getUTCDate(),d=i.getUTCHours(),m=i.getUTCMinutes(),h=i.getUTCSeconds(),y=i.getUTCMilliseconds();return new ks(o<1?"BC":"AD",o<1?-o+1:o,s,c,t,n,d,m,h,y)}function mn(e){return new Ot(e.calendar,e.era,e.year,e.month,e.day)}function oa(e,t){let n=0,i=0,o=0,s=0;if("timeZone"in e)({hour:n,minute:i,second:o,millisecond:s}=e);else if("hour"in e&&!t)return e;return t&&({hour:n,minute:i,second:o,millisecond:s}=t),new Os(e.calendar,e.era,e.year,e.month,e.day,n,i,o,s)}function Et(e,t){if(Gd(e.calendar,t))return e;let n=t.fromJulianDay(e.calendar.toJulianDay(e)),i=e.copy();return i.calendar=t,i.era=n.era,i.year=n.year,i.month=n.month,i.day=n.day,Ii(i),i}function V8(e,t,n){if(e instanceof ks)return e.timeZone===t?e:p$(e,t);let i=ea(e,t,n);return ta(i,t)}function G8(e){let t=il(e)-e.offset;return new Date(t)}function p$(e,t){let n=il(e)-e.offset;return Et(ta(n,t),e.calendar)}function Z8(e){return p$(e,Zd())}const ss=36e5;function Yd(e,t){let n=e.copy(),i="hour"in n?b$(n,t):0;qh(n,t.years||0),n.calendar.balanceYearMonth&&n.calendar.balanceYearMonth(n,e),n.month+=t.months||0,Kh(n),h$(n),n.day+=(t.weeks||0)*7,n.day+=t.days||0,n.day+=i,Y8(n),n.calendar.balanceDate&&n.calendar.balanceDate(n),n.year<1&&(n.year=1,n.month=1,n.day=1);let o=n.calendar.getYearsInEra(n);if(n.year>o){let c=n.calendar.isInverseEra?.(n);n.year=o,n.month=c?1:n.calendar.getMonthsInYear(n),n.day=c?1:n.calendar.getDaysInMonth(n)}n.month<1&&(n.month=1,n.day=1);let s=n.calendar.getMonthsInYear(n);return n.month>s&&(n.month=s,n.day=n.calendar.getDaysInMonth(n)),n.day=Math.max(1,Math.min(n.calendar.getDaysInMonth(n),n.day)),n}function qh(e,t){e.calendar.isInverseEra?.(e)&&(t=-t),e.year+=t}function Kh(e){for(;e.month<1;)qh(e,-1),e.month+=e.calendar.getMonthsInYear(e);let t=0;for(;e.month>(t=e.calendar.getMonthsInYear(e));)e.month-=t,qh(e,1)}function Y8(e){for(;e.day<1;)e.month--,Kh(e),e.day+=e.calendar.getDaysInMonth(e);for(;e.day>e.calendar.getDaysInMonth(e);)e.day-=e.calendar.getDaysInMonth(e),e.month++,Kh(e)}function h$(e){e.month=Math.max(1,Math.min(e.calendar.getMonthsInYear(e),e.month)),e.day=Math.max(1,Math.min(e.calendar.getDaysInMonth(e),e.day))}function Ii(e){e.calendar.constrainDate&&e.calendar.constrainDate(e),e.year=Math.max(1,Math.min(e.calendar.getYearsInEra(e),e.year)),h$(e)}function X0(e){let t={};for(let n in e)typeof e[n]=="number"&&(t[n]=-e[n]);return t}function y$(e,t){return Yd(e,X0(t))}function ey(e,t){let n=e.copy();return t.era!=null&&(n.era=t.era),t.year!=null&&(n.year=t.year),t.month!=null&&(n.month=t.month),t.day!=null&&(n.day=t.day),Ii(n),n}function Rs(e,t){let n=e.copy();return t.hour!=null&&(n.hour=t.hour),t.minute!=null&&(n.minute=t.minute),t.second!=null&&(n.second=t.second),t.millisecond!=null&&(n.millisecond=t.millisecond),g$(n),n}function q8(e){e.second+=Math.floor(e.millisecond/1e3),e.millisecond=Cc(e.millisecond,1e3),e.minute+=Math.floor(e.second/60),e.second=Cc(e.second,60),e.hour+=Math.floor(e.minute/60),e.minute=Cc(e.minute,60);let t=Math.floor(e.hour/24);return e.hour=Cc(e.hour,24),t}function g$(e){e.millisecond=Math.max(0,Math.min(e.millisecond,1e3)),e.second=Math.max(0,Math.min(e.second,59)),e.minute=Math.max(0,Math.min(e.minute,59)),e.hour=Math.max(0,Math.min(e.hour,23))}function Cc(e,t){let n=e%t;return n<0&&(n+=t),n}function b$(e,t){return e.hour+=t.hours||0,e.minute+=t.minutes||0,e.second+=t.seconds||0,e.millisecond+=t.milliseconds||0,q8(e)}function v$(e,t){let n=e.copy();return b$(n,t),n}function K8(e,t){return v$(e,X0(t))}function ty(e,t,n,i){let o=e.copy();switch(t){case"era":{let s=e.calendar.getEras(),c=s.indexOf(e.era);if(c<0)throw new Error("Invalid era: "+e.era);c=na(c,n,0,s.length-1,i?.round),o.era=s[c],Ii(o);break}case"year":o.calendar.isInverseEra?.(o)&&(n=-n),o.year=na(e.year,n,-1/0,9999,i?.round),o.year===-1/0&&(o.year=1),o.calendar.balanceYearMonth&&o.calendar.balanceYearMonth(o,e);break;case"month":o.month=na(e.month,n,1,e.calendar.getMonthsInYear(e),i?.round);break;case"day":o.day=na(e.day,n,1,e.calendar.getDaysInMonth(e),i?.round);break;default:throw new Error("Unsupported field "+t)}return e.calendar.balanceDate&&e.calendar.balanceDate(o),Ii(o),o}function ny(e,t,n,i){let o=e.copy();switch(t){case"hour":{let s=e.hour,c=0,d=23;if(i?.hourCycle===12){let m=s>=12;c=m?12:0,d=m?23:11}o.hour=na(s,n,c,d,i?.round);break}case"minute":o.minute=na(e.minute,n,0,59,i?.round);break;case"second":o.second=na(e.second,n,0,59,i?.round);break;case"millisecond":o.millisecond=na(e.millisecond,n,0,999,i?.round);break;default:throw new Error("Unsupported field "+t)}return o}function na(e,t,n,i,o=!1){if(o){e+=Math.sign(t),e<n&&(e=i);let s=Math.abs(t);t>0?e=Math.ceil(e/s)*s:e=Math.floor(e/s)*s,e>i&&(e=n)}else e+=t,e<n?e=i-(n-e-1):e>i&&(e=n+(e-i-1));return e}function _$(e,t){let n;if(t.years!=null&&t.years!==0||t.months!=null&&t.months!==0||t.weeks!=null&&t.weeks!==0||t.days!=null&&t.days!==0){let o=Yd(oa(e),{years:t.years,months:t.months,weeks:t.weeks,days:t.days});n=ea(o,e.timeZone)}else n=il(e)-e.offset;n+=t.milliseconds||0,n+=(t.seconds||0)*1e3,n+=(t.minutes||0)*6e4,n+=(t.hours||0)*36e5;let i=ta(n,e.timeZone);return Et(i,e.calendar)}function W8(e,t){return _$(e,X0(t))}function Q8(e,t,n,i){switch(t){case"hour":{let o=0,s=23;if(i?.hourCycle===12){let $=e.hour>=12;o=$?12:0,s=$?23:11}let c=oa(e),d=Et(Rs(c,{hour:o}),new pn),m=[ea(d,e.timeZone,"earlier"),ea(d,e.timeZone,"later")].filter($=>ta($,e.timeZone).day===d.day)[0],h=Et(Rs(c,{hour:s}),new pn),y=[ea(h,e.timeZone,"earlier"),ea(h,e.timeZone,"later")].filter($=>ta($,e.timeZone).day===h.day).pop(),g=il(e)-e.offset,E=Math.floor(g/ss),S=g%ss;return g=na(E,n,Math.floor(m/ss),Math.floor(y/ss),i?.round)*ss+S,Et(ta(g,e.timeZone),e.calendar)}case"minute":case"second":case"millisecond":return ny(e,t,n,i);case"era":case"year":case"month":case"day":{let o=ty(oa(e),t,n,i),s=ea(o,e.timeZone);return Et(ta(s,e.timeZone),e.calendar)}default:throw new Error("Unsupported field "+t)}}function J8(e,t,n){let i=oa(e),o=Rs(ey(i,t),t);if(o.compare(i)===0)return e;let s=ea(o,e.timeZone,n);return Et(ta(s,e.timeZone),e.calendar)}const X8=/^([+-]\d{6}|\d{4})-(\d{2})-(\d{2})$/,eM=/^([+-]\d{6}|\d{4})-(\d{2})-(\d{2})(?:T(\d{2}))?(?::(\d{2}))?(?::(\d{2}))?(\.\d+)?$/,E$=/^([+-]\d{6}|\d{4})-(\d{2})-(\d{2})(?:T(\d{2}))?(?::(\d{2}))?(?::(\d{2}))?(\.\d+)?(?:(?:([+-]\d{2})(?::?(\d{2}))?)|Z)$/;function S$(e){let t=e.match(X8);if(!t)throw E$.test(e)?new Error(`Invalid ISO 8601 date string: ${e}. Use parseAbsolute() instead.`):new Error("Invalid ISO 8601 date string: "+e);let n=new Ot(xr(t[1],0,9999),xr(t[2],1,12),1);return n.day=xr(t[3],1,n.calendar.getDaysInMonth(n)),n}function tM(e){let t=e.match(eM);if(!t)throw E$.test(e)?new Error(`Invalid ISO 8601 date time string: ${e}. Use parseAbsolute() instead.`):new Error("Invalid ISO 8601 date time string: "+e);let n=xr(t[1],-9999,9999),i=n<1?"BC":"AD",o=new Os(i,n<1?-n+1:n,xr(t[2],1,12),1,t[4]?xr(t[4],0,23):0,t[5]?xr(t[5],0,59):0,t[6]?xr(t[6],0,59):0,t[7]?xr(t[7],0,1/0)*1e3:0);return o.day=xr(t[3],0,o.calendar.getDaysInMonth(o)),o}function xr(e,t,n){let i=Number(e);if(i<t||i>n)throw new RangeError(`Value out of range: ${t} <= ${i} <= ${n}`);return i}function $$(e){return`${String(e.hour).padStart(2,"0")}:${String(e.minute).padStart(2,"0")}:${String(e.second).padStart(2,"0")}${e.millisecond?String(e.millisecond/1e3).slice(1):""}`}function D$(e){let t=Et(e,new pn),n;return t.era==="BC"?n=t.year===1?"0000":"-"+String(Math.abs(1-t.year)).padStart(6,"00"):n=String(t.year).padStart(4,"0"),`${n}-${String(t.month).padStart(2,"0")}-${String(t.day).padStart(2,"0")}`}function x$(e){return`${D$(e)}T${$$(e)}`}function nM(e){let t=Math.sign(e)<0?"-":"+";e=Math.abs(e);let n=Math.floor(e/36e5),i=Math.floor(e%36e5/6e4),o=Math.floor(e%36e5%6e4/1e3),s=`${t}${String(n).padStart(2,"0")}:${String(i).padStart(2,"0")}`;return o!==0&&(s+=`:${String(o).padStart(2,"0")}`),s}function rM(e){return`${x$(e)}${nM(e.offset)}[${e.timeZone}]`}function ry(e){let t=typeof e[0]=="object"?e.shift():new pn,n;if(typeof e[0]=="string")n=e.shift();else{let c=t.getEras();n=c[c.length-1]}let i=e.shift(),o=e.shift(),s=e.shift();return[t,n,i,o,s]}class Ot{#e;constructor(...t){let[n,i,o,s,c]=ry(t);this.calendar=n,this.era=i,this.year=o,this.month=s,this.day=c,Ii(this)}copy(){return this.era?new Ot(this.calendar,this.era,this.year,this.month,this.day):new Ot(this.calendar,this.year,this.month,this.day)}add(t){return Yd(this,t)}subtract(t){return y$(this,t)}set(t){return ey(this,t)}cycle(t,n,i){return ty(this,t,n,i)}toDate(t){return m$(this,t)}toString(){return D$(this)}compare(t){return o$(this,t)}}class ay{#e;constructor(t=0,n=0,i=0,o=0){this.hour=t,this.minute=n,this.second=i,this.millisecond=o,g$(this)}copy(){return new ay(this.hour,this.minute,this.second,this.millisecond)}add(t){return v$(this,t)}subtract(t){return K8(this,t)}set(t){return Rs(this,t)}cycle(t,n,i){return ny(this,t,n,i)}toString(){return $$(this)}compare(t){return l$(this,t)}}class Os{#e;constructor(...t){let[n,i,o,s,c]=ry(t);this.calendar=n,this.era=i,this.year=o,this.month=s,this.day=c,this.hour=t.shift()||0,this.minute=t.shift()||0,this.second=t.shift()||0,this.millisecond=t.shift()||0,Ii(this)}copy(){return this.era?new Os(this.calendar,this.era,this.year,this.month,this.day,this.hour,this.minute,this.second,this.millisecond):new Os(this.calendar,this.year,this.month,this.day,this.hour,this.minute,this.second,this.millisecond)}add(t){return Yd(this,t)}subtract(t){return y$(this,t)}set(t){return ey(Rs(this,t),t)}cycle(t,n,i){switch(t){case"era":case"year":case"month":case"day":return ty(this,t,n,i);default:return ny(this,t,n,i)}}toDate(t,n){return m$(this,t,n)}toString(){return x$(this)}compare(t){let n=o$(this,t);return n===0?l$(this,oa(t)):n}}class ks{#e;constructor(...t){let[n,i,o,s,c]=ry(t),d=t.shift(),m=t.shift();this.calendar=n,this.era=i,this.year=o,this.month=s,this.day=c,this.timeZone=d,this.offset=m,this.hour=t.shift()||0,this.minute=t.shift()||0,this.second=t.shift()||0,this.millisecond=t.shift()||0,Ii(this)}copy(){return this.era?new ks(this.calendar,this.era,this.year,this.month,this.day,this.timeZone,this.offset,this.hour,this.minute,this.second,this.millisecond):new ks(this.calendar,this.year,this.month,this.day,this.timeZone,this.offset,this.hour,this.minute,this.second,this.millisecond)}add(t){return _$(this,t)}subtract(t){return W8(this,t)}set(t,n){return J8(this,t,n)}cycle(t,n,i){return Q8(this,t,n,i)}toDate(){return G8(this)}toString(){return rM(this)}toAbsoluteString(){return this.toDate().toISOString()}compare(t){return this.toDate().getTime()-V8(t,this.timeZone).toDate().getTime()}}const Ko=[[1868,9,8],[1912,7,30],[1926,12,25],[1989,1,8],[2019,5,1]],aM=[[1912,7,29],[1926,12,24],[1989,1,7],[2019,4,30]],Vc=[1867,1911,1925,1988,2018],Ia=["meiji","taisho","showa","heisei","reiwa"];function W4(e){const t=Ko.findIndex(([n,i,o])=>e.year<n||e.year===n&&e.month<i||e.year===n&&e.month===i&&e.day<o);return t===-1?Ko.length-1:t===0?0:t-1}function Hp(e){let t=Vc[Ia.indexOf(e.era)];if(!t)throw new Error("Unknown era: "+e.era);return new Ot(e.year+t,e.month,e.day)}class iM extends pn{fromJulianDay(t){let n=super.fromJulianDay(t),i=W4(n);return new Ot(this,Ia[i],n.year-Vc[i],n.month,n.day)}toJulianDay(t){return super.toJulianDay(Hp(t))}balanceDate(t){let n=Hp(t),i=W4(n);Ia[i]!==t.era&&(t.era=Ia[i],t.year=n.year-Vc[i]),this.constrainDate(t)}constrainDate(t){let n=Ia.indexOf(t.era),i=aM[n];if(i!=null){let[o,s,c]=i,d=o-Vc[n];t.year=Math.max(1,Math.min(d,t.year)),t.year===d&&(t.month=Math.min(s,t.month),t.month===s&&(t.day=Math.min(c,t.day)))}if(t.year===1&&n>=0){let[,o,s]=Ko[n];t.month=Math.max(o,t.month),t.month===o&&(t.day=Math.max(s,t.day))}}getEras(){return Ia}getYearsInEra(t){let n=Ia.indexOf(t.era),i=Ko[n],o=Ko[n+1];if(o==null)return 9999-i[0]+1;let s=o[0]-i[0];return(t.month<o[1]||t.month===o[1]&&t.day<o[2])&&s++,s}getDaysInMonth(t){return super.getDaysInMonth(Hp(t))}getMinimumMonthInYear(t){let n=Q4(t);return n?n[1]:1}getMinimumDayInMonth(t){let n=Q4(t);return n&&t.month===n[1]?n[2]:1}constructor(...t){super(...t),this.identifier="japanese"}}function Q4(e){if(e.year===1){let t=Ia.indexOf(e.era);return Ko[t]}}const C$=-543;class oM extends pn{fromJulianDay(t){let n=super.fromJulianDay(t),i=Qs(n.era,n.year);return new Ot(this,i-C$,n.month,n.day)}toJulianDay(t){return super.toJulianDay(J4(t))}getEras(){return["BE"]}getDaysInMonth(t){return super.getDaysInMonth(J4(t))}balanceDate(){}constructor(...t){super(...t),this.identifier="buddhist"}}function J4(e){let[t,n]=Vd(e.year+C$);return new Ot(t,n,e.month,e.day)}const dd=1911;function A$(e){return e.era==="minguo"?e.year+dd:1-e.year+dd}function X4(e){let t=e-dd;return t>0?["minguo",t]:["before_minguo",1-t]}class lM extends pn{fromJulianDay(t){let n=super.fromJulianDay(t),i=Qs(n.era,n.year),[o,s]=X4(i);return new Ot(this,o,s,n.month,n.day)}toJulianDay(t){return super.toJulianDay(e1(t))}getEras(){return["before_minguo","minguo"]}balanceDate(t){let[n,i]=X4(A$(t));t.era=n,t.year=i}isInverseEra(t){return t.era==="before_minguo"}getDaysInMonth(t){return super.getDaysInMonth(e1(t))}getYearsInEra(t){return t.era==="before_minguo"?9999:9999-dd}constructor(...t){super(...t),this.identifier="roc"}}function e1(e){let[t,n]=Vd(A$(e));return new Ot(t,n,e.month,e.day)}const t1=1948320,n1=[0,31,62,93,124,155,186,216,246,276,306,336];class sM{fromJulianDay(t){let n=t-t1,i=1+Math.floor((33*n+3)/12053),o=365*(i-1)+Math.floor((8*i+21)/33),s=n-o,c=s<216?Math.floor(s/31):Math.floor((s-6)/30),d=s-n1[c]+1;return new Ot(this,i,c+1,d)}toJulianDay(t){let n=t1-1+365*(t.year-1)+Math.floor((8*t.year+21)/33);return n+=n1[t.month-1],n+=t.day,n}getMonthsInYear(){return 12}getDaysInMonth(t){return t.month<=6?31:t.month<=11||qo(25*t.year+11,33)<8?30:29}getMaximumMonthsInYear(){return 12}getMaximumDaysInMonth(){return 31}getEras(){return["AP"]}getYearsInEra(){return 9377}constructor(){this.identifier="persian"}}const Vp=78,r1=80;class uM extends pn{fromJulianDay(t){let n=super.fromJulianDay(t),i=n.year-Vp,o=t-Ci(n.era,n.year,1,1),s;o<r1?(i--,s=Ha(n.year-1)?31:30,o+=s+155+90+10):(s=Ha(n.year)?31:30,o-=r1);let c,d;if(o<s)c=1,d=o+1;else{let m=o-s;m<155?(c=Math.floor(m/31)+2,d=m%31+1):(m-=155,c=Math.floor(m/30)+7,d=m%30+1)}return new Ot(this,i,c,d)}toJulianDay(t){let n=t.year+Vp,[i,o]=Vd(n),s,c;return Ha(o)?(s=31,c=Ci(i,o,3,21)):(s=30,c=Ci(i,o,3,22)),t.month===1?c+t.day-1:(c+=s+Math.min(t.month-2,5)*31,t.month>=8&&(c+=(t.month-7)*30),c+=t.day-1,c)}getDaysInMonth(t){return t.month===1&&Ha(t.year+Vp)||t.month>=2&&t.month<=6?31:30}getYearsInEra(){return 9919}getEras(){return["saka"]}balanceDate(){}constructor(...t){super(...t),this.identifier="indian"}}const fd=1948440,a1=1948439,nr=1300,Po=1600,cM=460322;function md(e,t,n,i){return i+Math.ceil(29.5*(n-1))+(t-1)*354+Math.floor((3+11*t)/30)+e-1}function w$(e,t,n){let i=Math.floor((30*(n-t)+10646)/10631),o=Math.min(12,Math.ceil((n-(29+md(t,i,1,1)))/29.5)+1),s=n-md(t,i,o,1)+1;return new Ot(e,i,o,s)}function i1(e){return(14+11*e)%30<11}class iy{fromJulianDay(t){return w$(this,fd,t)}toJulianDay(t){return md(fd,t.year,t.month,t.day)}getDaysInMonth(t){let n=29+t.month%2;return t.month===12&&i1(t.year)&&n++,n}getMonthsInYear(){return 12}getDaysInYear(t){return i1(t.year)?355:354}getMaximumMonthsInYear(){return 12}getMaximumDaysInMonth(){return 30}getYearsInEra(){return 9665}getEras(){return["AH"]}constructor(){this.identifier="islamic-civil"}}class dM extends iy{fromJulianDay(t){return w$(this,a1,t)}toJulianDay(t){return md(a1,t.year,t.month,t.day)}constructor(...t){super(...t),this.identifier="islamic-tbla"}}const fM="qgpUDckO1AbqBmwDrQpVBakGkgepC9QF2gpcBS0NlQZKB1QLagutBa4ETwoXBYsGpQbVCtYCWwmdBE0KJg2VDawFtgm6AlsKKwWVCsoG6Qr0AnYJtgJWCcoKpAvSC9kF3AJtCU0FpQpSC6ULtAW2CVcFlwJLBaMGUgdlC2oFqworBZUMSg2lDcoF1gpXCasESwmlClILagt1BXYCtwhbBFUFqQW0BdoJ3QRuAjYJqgpUDbIN1QXaAlsJqwRVCkkLZAtxC7QFtQpVCiUNkg7JDtQG6QprCasEkwpJDaQNsg25CroEWworBZUKKgtVC1wFvQQ9Ah0JlQpKC1oLbQW2AjsJmwRVBqkGVAdqC2wFrQpVBSkLkgupC9QF2gpaBasKlQVJB2QHqgu1BbYCVgpNDiULUgtqC60FrgIvCZcESwalBqwG1gpdBZ0ETQoWDZUNqgW1BdoCWwmtBJUFygbkBuoK9QS2AlYJqgpUC9IL2QXqAm0JrQSVCkoLpQuyBbUJ1gSXCkcFkwZJB1ULagVrCisFiwpGDaMNygXWCtsEawJLCaUKUgtpC3UFdgG3CFsCKwVlBbQF2gntBG0BtgimClINqQ3UBdoKWwmrBFMGKQdiB6kLsgW1ClUFJQuSDckO0gbpCmsFqwRVCikNVA2qDbUJugQ7CpsETQqqCtUK2gJdCV4ELgqaDFUNsga5BroEXQotBZUKUguoC7QLuQXaAloJSgukDdEO6AZqC20FNQWVBkoNqA3UDdoGWwWdAisGFQtKC5ULqgWuCi4JjwwnBZUGqgbWCl0FnQI=";let Wh,Wo;function Gc(e){return cM+Wo[e-nr]}function bs(e,t){let n=e-nr,i=1<<11-(t-1);return(Wh[n]&i)===0?29:30}function o1(e,t){let n=Gc(e);for(let i=1;i<t;i++)n+=bs(e,i);return n}function l1(e){return Wo[e+1-nr]-Wo[e-nr]}class mM extends iy{constructor(){if(super(),this.identifier="islamic-umalqura",Wh||(Wh=new Uint16Array(Uint8Array.from(atob(fM),t=>t.charCodeAt(0)).buffer)),!Wo){Wo=new Uint32Array(Po-nr+1);let t=0;for(let n=nr;n<=Po;n++){Wo[n-nr]=t;for(let i=1;i<=12;i++)t+=bs(n,i)}}}fromJulianDay(t){let n=t-fd,i=Gc(nr),o=Gc(Po);if(n<i||n>o)return super.fromJulianDay(t);{let s=nr-1,c=1,d=1;for(;d>0;){s++,d=n-Gc(s)+1;let m=l1(s);if(d===m){c=12;break}else if(d<m){let h=bs(s,c);for(c=1;d>h;)d-=h,c++,h=bs(s,c);break}}return new Ot(this,s,c,n-o1(s,c)+1)}}toJulianDay(t){return t.year<nr||t.year>Po?super.toJulianDay(t):fd+o1(t.year,t.month)+(t.day-1)}getDaysInMonth(t){return t.year<nr||t.year>Po?super.getDaysInMonth(t):bs(t.year,t.month)}getDaysInYear(t){return t.year<nr||t.year>Po?super.getDaysInYear(t):l1(t.year)}}const s1=347997,T$=1080,N$=24*T$,pM=29,hM=12*T$+793,yM=pM*N$+hM;function Di(e){return qo(e*7+1,19)<7}function Zc(e){let t=Math.floor((235*e-234)/19),n=12084+13753*t,i=t*29+Math.floor(n/25920);return qo(3*(i+1),7)<3&&(i+=1),i}function gM(e){let t=Zc(e-1),n=Zc(e);return Zc(e+1)-n===356?2:n-t===382?1:0}function $s(e){return Zc(e)+gM(e)}function M$(e){return $s(e+1)-$s(e)}function bM(e){let t=M$(e);switch(t>380&&(t-=30),t){case 353:return 0;case 354:return 1;case 355:return 2}}function Ac(e,t){if(t>=6&&!Di(e)&&t++,t===4||t===7||t===9||t===11||t===13)return 29;let n=bM(e);return t===2?n===2?30:29:t===3?n===0?29:30:t===6?Di(e)?30:0:30}class vM{fromJulianDay(t){let n=t-s1,i=n*N$/yM,o=Math.floor((19*i+234)/235)+1,s=$s(o),c=Math.floor(n-s);for(;c<1;)o--,s=$s(o),c=Math.floor(n-s);let d=1,m=0;for(;m<c;)m+=Ac(o,d),d++;d--,m-=Ac(o,d);let h=c-m;return new Ot(this,o,d,h)}toJulianDay(t){let n=$s(t.year);for(let i=1;i<t.month;i++)n+=Ac(t.year,i);return n+t.day+s1}getDaysInMonth(t){return Ac(t.year,t.month)}getMonthsInYear(t){return Di(t.year)?13:12}getDaysInYear(t){return M$(t.year)}getMaximumMonthsInYear(){return 13}getMaximumDaysInMonth(){return 30}getYearsInEra(){return 9999}getEras(){return["AM"]}balanceYearMonth(t,n){n.year!==t.year&&(Di(n.year)&&!Di(t.year)&&n.month>6?t.month--:!Di(n.year)&&Di(t.year)&&n.month>6&&t.month++)}constructor(){this.identifier="hebrew"}}const Qh=1723856,u1=1824665,Jh=5500;function pd(e,t,n,i){return e+365*t+Math.floor(t/4)+30*(n-1)+i-1}function oy(e,t){let n=Math.floor(4*(t-e)/1461),i=1+Math.floor((t-pd(e,n,1,1))/30),o=t+1-pd(e,n,i,1);return[n,i,o]}function R$(e){return Math.floor(e%4/3)}function O$(e,t){return t%13!==0?30:R$(e)+5}class ly{fromJulianDay(t){let[n,i,o]=oy(Qh,t),s="AM";return n<=0&&(s="AA",n+=Jh),new Ot(this,s,n,i,o)}toJulianDay(t){let n=t.year;return t.era==="AA"&&(n-=Jh),pd(Qh,n,t.month,t.day)}getDaysInMonth(t){return O$(t.year,t.month)}getMonthsInYear(){return 13}getDaysInYear(t){return 365+R$(t.year)}getMaximumMonthsInYear(){return 13}getMaximumDaysInMonth(){return 30}getYearsInEra(t){return t.era==="AA"?9999:9991}getEras(){return["AA","AM"]}constructor(){this.identifier="ethiopic"}}class _M extends ly{fromJulianDay(t){let[n,i,o]=oy(Qh,t);return n+=Jh,new Ot(this,"AA",n,i,o)}getEras(){return["AA"]}getYearsInEra(){return 9999}constructor(...t){super(...t),this.identifier="ethioaa"}}class EM extends ly{fromJulianDay(t){let[n,i,o]=oy(u1,t),s="CE";return n<=0&&(s="BCE",n=1-n),new Ot(this,s,n,i,o)}toJulianDay(t){let n=t.year;return t.era==="BCE"&&(n=1-n),pd(u1,n,t.month,t.day)}getDaysInMonth(t){let n=t.year;return t.era==="BCE"&&(n=1-n),O$(n,t.month)}isInverseEra(t){return t.era==="BCE"}balanceDate(t){t.year<=0&&(t.era=t.era==="BCE"?"CE":"BCE",t.year=1-t.year)}getEras(){return["BCE","CE"]}getYearsInEra(t){return t.era==="BCE"?9999:9715}constructor(...t){super(...t),this.identifier="coptic"}}function k$(e){switch(e){case"buddhist":return new oM;case"ethiopic":return new ly;case"ethioaa":return new _M;case"coptic":return new EM;case"hebrew":return new vM;case"indian":return new uM;case"islamic-civil":return new iy;case"islamic-tbla":return new dM;case"islamic-umalqura":return new mM;case"japanese":return new iM;case"persian":return new sM;case"roc":return new lM;case"gregory":default:return new pn}}let Gp=new Map;class ra{constructor(t,n={}){this.formatter=B$(t,n),this.options=n}format(t){return this.formatter.format(t)}formatToParts(t){return this.formatter.formatToParts(t)}formatRange(t,n){if(typeof this.formatter.formatRange=="function")return this.formatter.formatRange(t,n);if(n<t)throw new RangeError("End date must be >= start date");return`${this.formatter.format(t)} – ${this.formatter.format(n)}`}formatRangeToParts(t,n){if(typeof this.formatter.formatRangeToParts=="function")return this.formatter.formatRangeToParts(t,n);if(n<t)throw new RangeError("End date must be >= start date");let i=this.formatter.formatToParts(t),o=this.formatter.formatToParts(n);return[...i.map(s=>({...s,source:"startRange"})),{type:"literal",value:" – ",source:"shared"},...o.map(s=>({...s,source:"endRange"}))]}resolvedOptions(){let t=this.formatter.resolvedOptions();return DM()&&(this.resolvedHourCycle||(this.resolvedHourCycle=xM(t.locale,this.options)),t.hourCycle=this.resolvedHourCycle,t.hour12=this.resolvedHourCycle==="h11"||this.resolvedHourCycle==="h12"),t.calendar==="ethiopic-amete-alem"&&(t.calendar="ethioaa"),t}}const SM={true:{ja:"h11"},false:{}};function B$(e,t={}){if(typeof t.hour12=="boolean"&&$M()){t={...t};let o=SM[String(t.hour12)][e.split("-")[0]],s=t.hour12?"h12":"h23";t.hourCycle=o??s,delete t.hour12}let n=e+(t?Object.entries(t).sort((o,s)=>o[0]<s[0]?-1:1).join():"");if(Gp.has(n))return Gp.get(n);let i=new Intl.DateTimeFormat(e,t);return Gp.set(n,i),i}let Zp=null;function $M(){return Zp==null&&(Zp=new Intl.DateTimeFormat("en-US",{hour:"numeric",hour12:!1}).format(new Date(2020,2,3,0))==="24"),Zp}let Yp=null;function DM(){return Yp==null&&(Yp=new Intl.DateTimeFormat("fr",{hour:"numeric",hour12:!1}).resolvedOptions().hourCycle==="h12"),Yp}function xM(e,t){if(!t.timeStyle&&!t.hour)return;e=e.replace(/(-u-)?-nu-[a-zA-Z0-9]+/,""),e+=(e.includes("-u-")?"":"-u")+"-nu-latn";let n=B$(e,{...t,timeZone:void 0}),i=parseInt(n.formatToParts(new Date(2020,2,3,0)).find(s=>s.type==="hour").value,10),o=parseInt(n.formatToParts(new Date(2020,2,3,23)).find(s=>s.type==="hour").value,10);if(i===0&&o===23)return"h23";if(i===24&&o===23)return"h24";if(i===0&&o===11)return"h11";if(i===12&&o===11)return"h12";throw new Error("Unexpected hour cycle result")}function or(e){e=n$(e??{},CM);let{locale:t}=sn();return b.useMemo(()=>new ra(t,e),[t,e])}function CM(e,t){if(e===t)return!0;let n=Object.keys(e),i=Object.keys(t);if(n.length!==i.length)return!1;for(let o of n)if(t[o]!==e[o])return!1;return!0}function L$(e){return e&&e.__esModule?e.default:e}const sy=new WeakMap;function Bs(e){return e?.calendar.identifier==="gregory"&&e.era==="BC"?"short":void 0}function AM(e){let t=Xa(L$(Ws),"@react-aria/calendar"),n,i;"highlightedRange"in e?{start:n,end:i}=e.highlightedRange||{}:(n=Array.isArray(e.value)?e.value[0]:e.value??void 0,i=Array.isArray(e.value)?e.value.at(-1):e.value??void 0);let o=or({weekday:"long",month:"long",year:"numeric",day:"numeric",era:Bs(n)||Bs(i),timeZone:e.timeZone}),{locale:s}=sn(),c=b.useMemo(()=>new Intl.ListFormat(s),[s]),d="anchorDate"in e?e.anchorDate:null;return b.useMemo(()=>{if(!d&&n&&i){if(Ct(n,i)){let m=o.format(n.toDate(e.timeZone));return t.format("selectedDateDescription",{date:m})}else if("highlightedRange"in e){let m=e0(o,t,n,i,e.timeZone);return t.format("selectedRangeDescription",{dateRange:m})}else if(Array.isArray(e.value)){let m=e.value.map(y=>o.format(y.toDate(e.timeZone))),h=c.format(m);return t.format("selectedDateDescription",{date:h})}}return""},[n,i,d,e,t,o,c])}function Xh(e,t,n,i){let o=Xa(L$(Ws),"@react-aria/calendar"),s=Bs(e)||Bs(t),c=or({month:"long",year:"numeric",era:s,calendar:e.calendar.identifier,timeZone:n}),d=or({month:"long",year:"numeric",day:"numeric",era:s,calendar:e.calendar.identifier,timeZone:n});return b.useMemo(()=>{if(Ct(e,Fi(e))){let m=e,h=t;if(e.calendar.getFormattableMonth&&(m=e.calendar.getFormattableMonth(e)),t.calendar.getFormattableMonth&&(h=t.calendar.getFormattableMonth(t)),Ct(t,cd(e)))return c.format(m.toDate(n));if(Ct(t,cd(t)))return i?e0(c,o,m,h,n):c.formatRange(m.toDate(n),h.toDate(n))}return i?e0(d,o,e,t,n):d.formatRange(e.toDate(n),t.toDate(n))},[e,t,c,d,o,n,i])}function e0(e,t,n,i,o){let s=e.formatRangeToParts(n.toDate(o),i.toDate(o)),c=-1;for(let h=0;h<s.length;h++){let y=s[h];if(y.source==="shared"&&y.type==="literal")c=h;else if(y.source==="endRange")break}let d="",m="";for(let h=0;h<s.length;h++)h<c?d+=s[h].value:h>c&&(m+=s[h].value);return t.format("dateRange",{startDate:d,endDate:m})}function c1(e,t){const n=b.useRef(!0),i=b.useRef(null);let o=Zt(e);b.useEffect(()=>(n.current=!0,()=>{n.current=!1}),[]),b.useEffect(()=>{let s=i.current;n.current?n.current=!1:(!s||t.some((c,d)=>!Object.is(c,s[d])))&&o(),i.current=t},t)}function wM(e){return e&&e.__esModule?e.default:e}function TM(e,t){let n=Xa(wM(Ws),"@react-aria/calendar"),i=un(e),o=Xh(t.visibleRange.start,t.visibleRange.end,t.timeZone,!1),s=Xh(t.visibleRange.start,t.visibleRange.end,t.timeZone,!0);c1(()=>{t.isFocused||Ns(s)},[s]);let c=AM(t);c1(()=>{c&&Ns(c,"polite",4e3)},[c]);let d=id([!!e.errorMessage,e.isInvalid,e.validationState]);sy.set(t,{ariaLabel:e["aria-label"],ariaLabelledBy:e["aria-labelledby"],errorMessageId:d,selectedDateDescription:c});let[m,h]=b.useState(!1),y=e.isDisabled||t.isNextVisibleRangeInvalid();y&&m&&(h(!1),t.setFocused(!0));let[g,E]=b.useState(!1),S=e.isDisabled||t.isPreviousVisibleRangeInvalid();S&&g&&(E(!1),t.setFocused(!0));let $=Zs({id:e.id,"aria-label":[e["aria-label"],s].filter(Boolean).join(", "),"aria-labelledby":e["aria-labelledby"]});return{calendarProps:pt(i,$,{role:"application","aria-details":e["aria-details"]||void 0,"aria-describedby":e["aria-describedby"]||void 0}),nextButtonProps:{onPress:()=>t.focusNextPage(),"aria-label":n.format("next"),isDisabled:y,onFocusChange:h},prevButtonProps:{onPress:()=>t.focusPreviousPage(),"aria-label":n.format("previous"),isDisabled:S,onFocusChange:E},errorMessageProps:{id:d},title:o}}function NM(e,t){return TM(e,t)}function MM(e,t){let{startDate:n=t.visibleRange.start,endDate:i=t.visibleRange.end,firstDayOfWeek:o}=e,{direction:s}=sn(),c=x=>{switch(x.key){case"Enter":case" ":x.preventDefault(),t.selectFocusedDate();break;case"PageUp":x.preventDefault(),x.stopPropagation(),t.focusPreviousSection(x.shiftKey);break;case"PageDown":x.preventDefault(),x.stopPropagation(),t.focusNextSection(x.shiftKey);break;case"End":x.preventDefault(),x.stopPropagation(),t.focusSectionEnd();break;case"Home":x.preventDefault(),x.stopPropagation(),t.focusSectionStart();break;case"ArrowLeft":x.preventDefault(),x.stopPropagation(),s==="rtl"?t.focusNextDay():t.focusPreviousDay();break;case"ArrowUp":x.preventDefault(),x.stopPropagation(),t.focusPreviousRow();break;case"ArrowRight":x.preventDefault(),x.stopPropagation(),s==="rtl"?t.focusPreviousDay():t.focusNextDay();break;case"ArrowDown":x.preventDefault(),x.stopPropagation(),t.focusNextRow();break;case"Escape":"setAnchorDate"in t&&(x.preventDefault(),t.setAnchorDate(null));break}},d=Xh(n,i,t.timeZone,!0),{ariaLabel:m,ariaLabelledBy:h}=sy.get(t),y=Zs({"aria-label":[m,d].filter(Boolean).join(", "),"aria-labelledby":h}),g=or({weekday:e.weekdayStyle||"narrow",timeZone:t.timeZone}),{locale:E}=sn(),S=b.useMemo(()=>{let x=t.visibleDuration.days&&t.visibleDuration.days<7,w=x?n:Ms(J0(t.timeZone),E,o),R=x?t.visibleDuration.days:7;return[...new Array(R).keys()].map(F=>{let L=w.add({days:F}).toDate(t.timeZone);return g.format(L)})},[E,t.timeZone,g,o,n,t.visibleDuration.days]),$=t.getWeeksInMonth(n);return{gridProps:pt(y,{role:"grid","aria-readonly":t.isReadOnly||void 0,"aria-disabled":t.isDisabled||void 0,"aria-multiselectable":"highlightedRange"in t||t.selectionMode==="multiple"||void 0,onKeyDown:c,onFocus:()=>t.setFocused(!0),onBlur:()=>t.setFocused(!1)}),headerProps:{"aria-hidden":!0},weekDays:S,weeksInMonth:$}}function hd(e,t){if(!e)return!1;let n=window.getComputedStyle(e),i=document.scrollingElement||document.documentElement,o=/(auto|scroll)/.test(n.overflow+n.overflowX+n.overflowY);return e===i&&n.overflow!=="hidden"&&(o=!0),o&&t&&(o=e.scrollHeight!==e.clientHeight||e.scrollWidth!==e.clientWidth),o}function qd(e,t){let n=e;for(hd(n,t)&&(n=n.parentElement);n&&!hd(n,t);)n=n.parentElement;return n||document.scrollingElement||document.documentElement}function qp(e,t){let n=[],i=document.scrollingElement||document.documentElement;for(;e&&(hd(e,t)&&n.push(e),e!==i);)e=e.parentElement;return n}function Kp(e,t,n={}){let{block:i="nearest",inline:o="nearest"}=n;if(e===t)return;let s=e.scrollTop,c=e.scrollLeft,d=t.getBoundingClientRect(),m=e.getBoundingClientRect(),h=window.getComputedStyle(t),y=window.getComputedStyle(e),g=document.scrollingElement||document.documentElement,E=e===g,S=e===g?0:m.top,$=e===g?e.clientHeight:m.bottom,x=e===g?0:m.left,w=e===g?e.clientWidth:m.right,R=parseFloat(h.scrollMarginTop)||0,F=parseFloat(h.scrollMarginBottom)||0,A=parseFloat(h.scrollMarginLeft)||0,L=parseFloat(h.scrollMarginRight)||0,M=parseFloat(y.scrollPaddingTop)||0,Z=parseFloat(y.scrollPaddingBottom)||0,V=parseFloat(y.scrollPaddingLeft)||0,fe=parseFloat(y.scrollPaddingRight)||0,ne=parseFloat(y.borderTopWidth)||0,pe=parseFloat(y.borderBottomWidth)||0,J=parseFloat(y.borderLeftWidth)||0,ye=parseFloat(y.borderRightWidth)||0,Ae=d.top-R,j=d.bottom+F,de=d.left-A,O=d.right+L,B=e===g?0:J+ye,X=e===g?0:ne+pe,I=e===g?0:e.offsetWidth-e.clientWidth-B,G=e===g?0:e.offsetHeight-e.clientHeight-X,C=S+(E?0:ne)+M,U=$-(E?0:pe)-Z-G,W=x+(E?0:J)+V,Y=w-(E?0:ye)-fe;y.direction==="rtl"&&!Gs()?W+=I:Y-=I;let te=Ae<C||j>U,z=de<W||O>Y;if(te&&i==="start")s+=Ae-C;else if(te&&i==="center")s+=(Ae+j)/2-(C+U)/2;else if(te&&i==="end")s+=j-U;else if(te&&i==="nearest"){let T=Ae-C,N=j-U;s+=Math.abs(T)<=Math.abs(N)?T:N}if(z&&o==="start")c+=de-W;else if(z&&o==="center")c+=(de+O)/2-(W+Y)/2;else if(z&&o==="end")c+=O-Y;else if(z&&o==="nearest"){let T=de-W,N=O-Y;c+=Math.abs(T)<=Math.abs(N)?T:N}e.scrollTo({left:c,top:s})}function P$(e,t={}){let{containingElement:n}=t;if(e&&e.isConnected){let i=document.scrollingElement||document.documentElement;if(window.getComputedStyle(i).overflow==="hidden"){let{left:s,top:c}=e.getBoundingClientRect(),d=qp(e,!0);for(let y of d)Kp(y,e);let{left:m,top:h}=e.getBoundingClientRect();if(Math.abs(s-m)>1||Math.abs(c-h)>1){d=n?qp(n,!0):[];for(let y of d)Kp(y,n,{block:"center",inline:"center"});for(let y of qp(e,!0))Kp(y,e)}}else{let{left:s,top:c}=e.getBoundingClientRect();e?.scrollIntoView?.({block:"nearest"});let{left:d,top:m}=e.getBoundingClientRect();(Math.abs(s-d)>1||Math.abs(c-m)>1)&&(n?.scrollIntoView?.({block:"center",inline:"center"}),e.scrollIntoView?.({block:"nearest"}))}}}let RM=0;const Wp=new Map;function uy(e){let[t,n]=b.useState();return ct(()=>{if(!e)return;let i=Wp.get(e);if(i)n(i.element.id);else{let o=`react-aria-description-${RM++}`;n(o);let s=document.createElement("div");s.id=o,s.style.display="none",s.textContent=e,document.body.appendChild(s),i={refCount:0,element:s},Wp.set(e,i)}return i.refCount++,()=>{i&&--i.refCount===0&&(i.element.remove(),Wp.delete(e))}},[e]),{"aria-describedby":e?t:void 0}}function OM(e){return e&&e.__esModule?e.default:e}function kM(e,t,n){let{date:i,isDisabled:o}=e,{errorMessageId:s,selectedDateDescription:c}=sy.get(t),d=Xa(OM(Ws),"@react-aria/calendar"),m=or({weekday:"long",day:"numeric",month:"long",year:"numeric",era:Bs(i),timeZone:t.timeZone}),h=t.isCellFocused(i)&&!e.isOutsideMonth;o=o||t.isCellDisabled(i)||!!e.isOutsideMonth;let y=t.isCellUnavailable(i),g=!o&&!y,E=t.isSelected(i)&&g,S=!1;t.isValueInvalid&&("highlightedRange"in t?S=!t.anchorDate&&t.highlightedRange!=null&&i.compare(t.highlightedRange.start)>=0&&i.compare(t.highlightedRange.end)<=0:Array.isArray(t.value)?S=t.value.some(J=>Ct(J,i)):t.value&&(S=Ct(t.value,i))),S&&!o&&(E=!0),i=n$(i,B8);let $=b.useMemo(()=>i.toDate(t.timeZone),[i,t.timeZone]),x=a$(i,t.timeZone),w=b.useMemo(()=>{let J="";return"highlightedRange"in t&&t.value&&!t.anchorDate&&(Ct(i,t.value.start)||Ct(i,t.value.end))&&(J=c+", "),J+=m.format($),x?J=d.format(E?"todayDateSelected":"todayDate",{date:J}):E&&(J=d.format("dateSelected",{date:J})),t.minValue&&Ct(i,t.minValue)?J+=", "+d.format("minimumDate"):t.maxValue&&Ct(i,t.maxValue)&&(J+=", "+d.format("maximumDate")),J},[m,$,d,E,x,i,t,c]),R="";"anchorDate"in t&&h&&!t.isReadOnly&&g&&(t.anchorDate?R=d.format("finishRangeSelectionPrompt"):R=d.format("startRangeSelectionPrompt"));let F=uy(R),A=b.useRef(!1),L=b.useRef(!1),M=b.useRef(void 0),{pressProps:Z,isPressed:V}=Y0({shouldCancelOnPointerExit:"anchorDate"in t&&!!t.anchorDate,preventFocusOnPress:!0,isDisabled:!g||t.isReadOnly,onPressStart(J){if(t.isReadOnly){t.setFocusedDate(i),t.setFocused(!0);return}if("highlightedRange"in t&&!t.anchorDate&&(J.pointerType==="mouse"||J.pointerType==="touch")){if(t.highlightedRange&&!S){if(Ct(i,t.highlightedRange.start)){t.setAnchorDate(t.highlightedRange.end),t.setFocusedDate(i),t.setFocused(!0),t.setDragging(!0),L.current=!0;return}else if(Ct(i,t.highlightedRange.end)){t.setAnchorDate(t.highlightedRange.start),t.setFocusedDate(i),t.setFocused(!0),t.setDragging(!0),L.current=!0;return}}let ye=()=>{t.setDragging(!0),M.current=void 0,t.selectDate(i),t.setFocusedDate(i),t.setFocused(!0),A.current=!0};J.pointerType==="touch"?M.current=setTimeout(ye,200):ye()}},onPressEnd(){L.current=!1,A.current=!1,clearTimeout(M.current),M.current=void 0},onPress(){!("anchorDate"in t)&&!t.isReadOnly&&(t.selectDate(i),t.setFocusedDate(i),t.setFocused(!0))},onPressUp(J){t.isReadOnly||("anchorDate"in t&&M.current&&(t.selectDate(i),t.setFocusedDate(i),t.setFocused(!0)),"anchorDate"in t&&(L.current?t.setAnchorDate(i):t.anchorDate&&!A.current?(t.selectDate(i),t.setFocusedDate(i),t.setFocused(!0)):J.pointerType==="keyboard"&&!t.anchorDate?(t.selectDate(i),t.focusNearestAvailableDate(i)):J.pointerType==="virtual"&&(t.selectDate(i),t.setFocusedDate(i),t.setFocused(!0))))}}),fe;o||(fe=Ct(i,t.focusedDate)?0:-1),b.useEffect(()=>{h&&n.current&&(Bi(n.current),Ud()!=="pointer"&&St()===n.current&&P$(n.current,{containingElement:qd(n.current)}))},[h,n]);let ne=or({day:"numeric",timeZone:t.timeZone,calendar:i.calendar.identifier}),pe=b.useMemo(()=>ne.formatToParts($).find(J=>J.type==="day").value,[ne,$]);return{cellProps:{role:"gridcell","aria-disabled":!g||void 0,"aria-selected":E||void 0,"aria-invalid":S||void 0},buttonProps:pt(Z,{onFocus(){o||(t.setFocusedDate(i),t.setFocused(!0))},tabIndex:fe,role:"button","aria-disabled":!g||void 0,"aria-label":w,"aria-invalid":S||void 0,"aria-describedby":[S?s:void 0,F["aria-describedby"]].filter(Boolean).join(" ")||void 0,onPointerEnter(J){"highlightDate"in t&&(J.pointerType!=="touch"||t.isDragging)&&g&&t.highlightDate(i)},onPointerDown(J){let ye=Pe(J);ye instanceof HTMLElement&&"releasePointerCapture"in ye&&("hasPointerCapture"in ye?ye.hasPointerCapture(J.pointerId)&&ye.releasePointerCapture(J.pointerId):ye.releasePointerCapture(J.pointerId))},onContextMenu(J){J.preventDefault()}}),isPressed:V,isFocused:h,isSelected:E,isDisabled:o,isUnavailable:y,isOutsideVisibleRange:i.compare(t.visibleRange.start)<0||i.compare(t.visibleRange.end)>0,isInvalid:S,formattedDate:pe}}function BM(e,t){let n=or({month:e.format||"short",calendar:t.focusedDate.calendar.identifier,timeZone:t.timeZone}),i=[],o=t.focusedDate.calendar.getMonthsInYear(t.focusedDate);for(let d=1;d<=o;d++){let m=t.focusedDate.set({month:d}),h=m.calendar.getFormattableMonth?m.calendar.getFormattableMonth(m):m;i.push({id:d,date:m,formatted:n.format(h.toDate(t.timeZone))})}let{locale:s}=sn();return{"aria-label":b.useMemo(()=>new Intl.DisplayNames(s,{type:"dateTimeField"}).of("month"),[s]),value:t.focusedDate.month,onChange:d=>{d!=null&&t.setFocusedDate(i[Number(d)-1].date)},items:i}}function LM(e,t){let n=or({year:e.format?.year||"numeric",era:e.format?.era||(t.focusedDate.calendar.identifier==="gregory"&&t.focusedDate.era==="BC"?"short":void 0),calendar:t.focusedDate.calendar.identifier,timeZone:t.timeZone}),i=e.visibleYears||20,o=t.focusedDate.subtract({years:Math.floor(i/2)}),s=t.focusedDate.add({years:Math.ceil(i/2)-1});t.maxValue&&s.compare(t.maxValue)>0&&(s=mn(t.maxValue),o=s.subtract({years:i-1})),t.minValue&&o.compare(t.minValue)<0&&(o=mn(t.minValue),s=o.add({years:i-1}),t.maxValue&&s.compare(t.maxValue)>0&&(s=mn(t.maxValue)));let c=[],d=o,m=0;for(;d.compare(s)<=0;)k8(d,t.focusedDate)&&(m=c.length),c.push({id:c.length,date:d,formatted:n.format(d.toDate(t.timeZone))}),d=d.add({years:1});let{locale:h}=sn();return{"aria-label":b.useMemo(()=>new Intl.DisplayNames(h,{type:"dateTimeField"}).of("year"),[h]),value:m,onChange:g=>{g!=null&&t.setFocusedDate(c[g].date)},items:c}}function wc(e,t,n){return t!=null&&e.compare(t)<0||n!=null&&e.compare(n)>0}function d1(e,t,n,i,o){let s={};for(let d in t)s[d]=Math.floor(t[d]/2),s[d]>0&&t[d]%2===0&&s[d]--;let c=Ai(e,t,n).subtract(s);return Ls(e,c,t,n,i,o)}function Ai(e,t,n,i,o){let s=e;return t.years?s=Zh(e):t.months?s=Fi(e):(t.weeks||t.days&&t.days>7)&&(s=Ms(e,n)),Ls(e,s,t,n,i,o)}function t0(e,t,n,i,o){let s={...t};s.days?s.days--:s.weeks?s.weeks--:s.months?s.months--:s.years&&s.years--;let c=Ai(e,t,n).subtract(s);return Ls(e,c,t,n,i,o)}function Ls(e,t,n,i,o,s){if(o&&e.compare(o)>=0){let c=c$(t,Ai(mn(o),n,i));c&&(t=c)}if(s&&e.compare(s)<=0){let c=u$(t,t0(mn(s),n,i));c&&(t=c)}return t}function qr(e,t,n){if(t){let i=c$(e,mn(t));i&&(e=i)}if(n){let i=u$(e,mn(n));i&&(e=i)}return e}function PM(e,t,n){if(!n)return e;for(;e.compare(t)>=0&&n(e);)e=e.subtract({days:1});return e.compare(t)>=0?e:null}function FM(e,t){return e===t?!0:e.days===t.days&&e.weeks===t.weeks&&e.months===t.months&&e.years===t.years}function IM(e){let t=b.useMemo(()=>new ra(e.locale),[e.locale]),n=b.useMemo(()=>t.resolvedOptions(),[t]),{locale:i,createCalendar:o,visibleDuration:s={months:1},minValue:c,maxValue:d,selectionAlignment:m,isDateUnavailable:h,pageBehavior:y="visible",selectionMode:g="single",firstDayOfWeek:E,weeksInMonth:S}=e,$=b.useMemo(()=>o(n.calendar),[o,n.calendar]),[x,w]=ws(e.value,e.defaultValue??null,e.onChange),R=b.useMemo(()=>Array.isArray(x)?x.map(Y=>Et(mn(Y),$)):x?Et(mn(x),$):null,[x,$]),F=b.useMemo(()=>{let Y=Array.isArray(x)?x[0]:x;return Y&&"timeZone"in Y?Y.timeZone:n.timeZone},[x,n.timeZone]),A=b.useMemo(()=>e.focusedValue?qr(Et(mn(e.focusedValue),$),c,d):void 0,[e.focusedValue,$,c,d]),L=b.useMemo(()=>e.defaultFocusedValue?qr(Et(mn(e.defaultFocusedValue),$),c,d):qr(R?Array.isArray(R)?R[0]:R:Et(J0(F),$),c,d),[e.defaultFocusedValue,R,F,$,c,d]),[M,Z]=ws(A,L,e.onFocusChange),V=()=>{switch(m){case"start":return Ai(M,s,i,c,d);case"end":return t0(M,s,i,c,d);case"center":default:return d1(M,s,i,c,d)}},[fe,ne]=b.useState(V),[pe,J]=b.useState(e.autoFocus||!1),[ye,Ae]=b.useState(s);FM(s,ye)||(Ae(s),ne(V()));let j=b.useMemo(()=>{let Y={...s};return Y.days?Y.days--:Y.days=-1,fe.add(Y)},[fe,s]),[de,O]=b.useState($);if(!Gd($,de)){let Y=Et(M,$);ne(d1(Y,s,i,c,d)),Z(Y),O($)}wc(M,c,d)?Z(qr(M,c,d)):M.compare(fe)<0?ne(t0(M,s,i,c,d)):M.compare(j)>0&&ne(Ai(M,s,i,c,d));function B(Y){Y=qr(Y,c,d),Z(Y)}function X(Y){let te=qr(Y,c,d),z=PM(te,fe,h);if(!z)return null;let T=Array.isArray(x)?x[0]:x,N=Et(z,T?.calendar||new pn);return T&&"hour"in T?T.set(N):N}function I(Y){if(!e.isDisabled&&!e.isReadOnly){if(Y===null){w(g==="multiple"?[]:null);return}if(Array.isArray(Y))w(Y.map(X).filter(Boolean));else{let te=X(Y);te&&w(te)}}}let G=b.useMemo(()=>R?Array.isArray(R)?R.some(Y=>h?.(Y)||wc(Y,c,d)):h?.(R)||wc(R,c,d):!1,[R,h,c,d]),C=e.isInvalid||e.validationState==="invalid"||G,U=C?"invalid":null,W=b.useMemo(()=>y==="visible"?s:Qp(s),[y,s]);return{isDisabled:e.isDisabled??!1,isReadOnly:e.isReadOnly??!1,value:R,setValue:I,selectionMode:g,visibleDuration:s,visibleRange:{start:fe,end:j},minValue:c,maxValue:d,focusedDate:M,timeZone:F,validationState:U,isValueInvalid:C,setFocusedDate(Y){B(Y)},focusNextDay(){B(M.add({days:1}))},focusPreviousDay(){B(M.subtract({days:1}))},focusNextRow(){s.days?this.focusNextPage():(s.weeks||s.months||s.years)&&B(M.add({weeks:1}))},focusPreviousRow(){s.days?this.focusPreviousPage():(s.weeks||s.months||s.years)&&B(M.subtract({weeks:1}))},focusNextPage(){let Y=fe.add(W);Z(qr(M.add(W),c,d)),ne(Ai(Ls(M,Y,W,i,c,d),W,i))},focusPreviousPage(){let Y=fe.subtract(W);Z(qr(M.subtract(W),c,d)),ne(Ai(Ls(M,Y,W,i,c,d),W,i))},focusSectionStart(){s.days?B(fe):s.weeks?B(Ms(M,i)):(s.months||s.years)&&B(Fi(M))},focusSectionEnd(){s.days?B(j):s.weeks?B(F8(M,i)):(s.months||s.years)&&B(cd(M))},focusNextSection(Y){if(!Y&&!s.days){B(M.add(Qp(s)));return}s.days?this.focusNextPage():s.weeks?B(M.add({months:1})):(s.months||s.years)&&B(M.add({years:1}))},focusPreviousSection(Y){if(!Y&&!s.days){B(M.subtract(Qp(s)));return}s.days?this.focusPreviousPage():s.weeks?B(M.subtract({months:1})):(s.months||s.years)&&B(M.subtract({years:1}))},selectFocusedDate(){h&&h(M)||this.selectDate(M)},selectDate(Y){if(!(e.isDisabled||e.isReadOnly))if(g==="multiple"&&Y!=null){let te=X(Y);if(!te)return;let z=[];Array.isArray(x)?z=x:x!=null&&(z=[x]);let T=z.findIndex(ie=>Ct(ie,te)),N=T>=0?z.slice(0,T).concat(z.slice(T+1)):[...z,te];w(N)}else I(Y)},isFocused:pe,setFocused:J,isInvalid(Y){return wc(Y,c,d)},isSelected(Y){return!R||this.isCellDisabled(Y)||this.isCellUnavailable(Y)?!1:Array.isArray(R)?R.some(te=>Ct(te,Y)):Ct(Y,R)},isCellFocused(Y){return pe&&M&&Ct(Y,M)},isCellDisabled(Y){return e.isDisabled||Y.compare(fe)<0||Y.compare(j)>0||this.isInvalid(Y)},isCellUnavailable(Y){return e.isDateUnavailable?e.isDateUnavailable(Y):!1},isPreviousVisibleRangeInvalid(){let Y=fe.subtract({days:1});return Ct(Y,fe)||this.isInvalid(Y)},isNextVisibleRangeInvalid(){let Y=j.add({days:1});return Ct(Y,j)||this.isInvalid(Y)},getDatesInWeek(Y,te=fe){let z=te.add({weeks:Y}),T=[],N=s.days&&s.days<7?s.days:7;if(N===7){z=Ms(z,i,E);let ie=Q0(z,i,E);for(let ge=0;ge<ie;ge++)T.push(null)}for(;T.length<N;){T.push(z);let ie=z.add({days:1});if(Ct(z,ie))break;z=ie}for(;T.length<N;)T.push(null);return T},getWeeksInMonth(Y=fe){let te=S||z8(Y,i,E);return(s.weeks||s.days)&&(te=s.weeks??0,s.days&&(te+=Math.ceil(s.days/7))),te}}}function Qp(e){let t={...e};for(let n in e)t[n]=1;return t}const f1={border:0,clip:"rect(0 0 0 0)",clipPath:"inset(50%)",height:"1px",margin:"-1px",overflow:"hidden",padding:0,position:"absolute",width:"1px",whiteSpace:"nowrap"};function F$(e={}){let{style:t,isFocusable:n}=e,[i,o]=b.useState(!1),{focusWithinProps:s}=Ys({isDisabled:!n,onFocusWithinChange:d=>o(d)}),c=b.useMemo(()=>i?t:t?{...f1,...t}:f1,[i]);return{visuallyHiddenProps:{...s,style:c}}}function n0(e){let{children:t,elementType:n="div",isFocusable:i,style:o,...s}=e,{visuallyHiddenProps:c}=F$(e);return ve.createElement(n,pt(s,c),t)}const yd=b.createContext(null),jM=b.createContext(null),dl=b.createContext(null),Js=b.createContext(null),zM=b.forwardRef(function(t,n){[t,n]=sa(t,n,yd);let{locale:i}=sn(),o=IM({...t,locale:i,createCalendar:t.createCalendar||k$}),{calendarProps:s,prevButtonProps:c,nextButtonProps:d,errorMessageProps:m,title:h}=NM(t,o),y=la({...t,values:{state:o,isDisabled:t.isDisabled||!1,isInvalid:o.isValueInvalid},defaultClassName:"react-aria-Calendar"}),g=un(t,{global:!0});return ve.createElement(wn.div,{...pt(g,y,s),ref:n,slot:t.slot||void 0,"data-disabled":t.isDisabled||void 0,"data-invalid":o.isValueInvalid||void 0},ve.createElement(Id,{values:[[Ks,{slots:{previous:c,next:d}}],[K0,{"aria-hidden":!0,level:2,children:h}],[dl,o],[yd,t],[W0,{slots:{errorMessage:m}}]]},ve.createElement(n0,null,ve.createElement("h2",null,s["aria-label"])),y.children,ve.createElement(n0,null,ve.createElement("button",{"aria-label":d["aria-label"],disabled:d.isDisabled,onClick:()=>o.focusNextPage(),tabIndex:-1}))))}),Kd=b.createContext(null),UM=b.forwardRef(function(t,n){let i=b.useContext(dl),o=b.useContext(Js),s=od(yd),c=od(jM),d=i??o,m=d.visibleRange.start;t.offset&&(m=m.add(t.offset));let h=s?.firstDayOfWeek??c?.firstDayOfWeek,{gridProps:y,headerProps:g,weekDays:E,weeksInMonth:S}=MM({startDate:m,endDate:cd(m),weekdayStyle:t.weekdayStyle,firstDayOfWeek:h},d),$=un(t,{global:!0});return ve.createElement(Kd.Provider,{value:{headerProps:g,weekDays:E,startDate:m,weeksInMonth:S}},ve.createElement(wn.table,{render:t.render,...pt($,y),ref:n,style:t.style,cellPadding:0,className:t.className??"react-aria-CalendarGrid"},typeof t.children!="function"?t.children:ve.createElement(ve.Fragment,null,ve.createElement(I$,null,x=>ve.createElement(j$,null,x)),ve.createElement(z$,null,t.children))))});function HM(e,t){let{children:n,style:i,className:o}=e,{headerProps:s,weekDays:c}=b.useContext(Kd),d=un(e,{global:!0});return ve.createElement(wn.thead,{render:e.render,...pt(d,s),ref:t,style:i,className:o??"react-aria-CalendarGridHeader"},ve.createElement("tr",null,c.map((m,h)=>ve.cloneElement(n(m),{key:h}))))}const I$=b.forwardRef(HM);function VM(e,t){let{children:n,style:i,className:o}=e,s=un(e,{global:!0});return ve.createElement(wn.th,{render:e.render,...s,ref:t,style:i,className:o||"react-aria-CalendarHeaderCell"},n)}const j$=b.forwardRef(VM);function GM(e,t){let{children:n,style:i,className:o}=e,s=b.useContext(dl),c=b.useContext(Js),d=s??c,{startDate:m,weeksInMonth:h}=b.useContext(Kd),y=un(e,{global:!0});return ve.createElement(wn.tbody,{render:e.render,...y,ref:t,style:i,className:o??"react-aria-CalendarGridBody"},[...new Array(h).keys()].map(g=>ve.createElement("tr",{key:g},d.getDatesInWeek(g,m).map((E,S)=>E?ve.cloneElement(n(E),{key:S}):ve.createElement("td",{key:S})))))}const z$=b.forwardRef(GM),ZM=b.forwardRef(function({date:t,...n},i){let o=b.useContext(dl),s=b.useContext(Js),c=o??s,{startDate:d}=b.useContext(Kd)??{startDate:c.visibleRange.start},m=c.visibleDuration.days||c.visibleDuration.weeks?!1:!O8(d,t),h=a$(t,c.timeZone),y=b.useRef(null),{cellProps:g,buttonProps:E,...S}=kM({date:t,isOutsideMonth:m},c,y),{hoverProps:$,isHovered:x}=qs({...n,isDisabled:S.isDisabled||S.isUnavailable}),{focusProps:w,isFocusVisible:R}=cl();R&&=S.isFocused;let F=!1,A=!1;"highlightedRange"in c&&c.highlightedRange&&(F=Ct(t,c.highlightedRange.start),A=Ct(t,c.highlightedRange.end));let L=la({...n,defaultChildren:S.formattedDate,defaultClassName:"react-aria-CalendarCell",values:{date:t,isHovered:x,isOutsideMonth:m,isFocusVisible:R,isSelectionStart:F,isSelectionEnd:A,isToday:h,...S}}),M={"data-focused":S.isFocused||void 0,"data-hovered":x||void 0,"data-pressed":S.isPressed||void 0,"data-unavailable":S.isUnavailable||void 0,"data-disabled":S.isDisabled||void 0,"data-focus-visible":R||void 0,"data-outside-visible-range":S.isOutsideVisibleRange||void 0,"data-outside-month":m||void 0,"data-selected":S.isSelected||void 0,"data-selection-start":F||void 0,"data-selection-end":A||void 0,"data-invalid":S.isInvalid||void 0,"data-today":h||void 0},Z=un(n,{global:!0});return ve.createElement("td",{...g,ref:i},ve.createElement(wn.div,{...pt(Z,E,w,$,M,L),ref:y}))});function YM(e){let t=ve.useContext(dl),n=ve.useContext(Js),o=LM(e,t||n);return e.children(o)}function qM(e){let t=ve.useContext(dl),n=ve.useContext(Js),o=BM(e,t||n);return e.children(o)}const KM=b.createContext(null),U$={badInput:!1,customError:!1,patternMismatch:!1,rangeOverflow:!1,rangeUnderflow:!1,stepMismatch:!1,tooLong:!1,tooShort:!1,typeMismatch:!1,valueMissing:!1,valid:!0},H$={...U$,customError:!0,valid:!1},us={isInvalid:!1,validationDetails:U$,validationErrors:[]},WM=b.createContext({}),r0="__reactAriaFormValidationState";function V$(e){if(e[r0]){let{realtimeValidation:t,displayValidation:n,updateValidation:i,resetValidation:o,commitValidation:s}=e[r0];return{realtimeValidation:t,displayValidation:n,updateValidation:i,resetValidation:o,commitValidation:s}}return QM(e)}function QM(e){let{isInvalid:t,validationState:n,name:i,value:o,builtinValidation:s,validate:c,validationBehavior:d="aria"}=e;n&&(t||=n==="invalid");let m=t!==void 0?{isInvalid:t,validationErrors:[],validationDetails:H$}:null,h=b.useMemo(()=>{if(!c||o==null)return null;let pe=JM(c,o);return m1(pe)},[c,o]);s?.validationDetails.valid&&(s=void 0);let y=b.useContext(WM),g=b.useMemo(()=>i?Array.isArray(i)?i.flatMap(pe=>a0(y[pe])):a0(y[i]):[],[y,i]),[E,S]=b.useState(y),[$,x]=b.useState(!1);y!==E&&(S(y),x(!1));let w=b.useMemo(()=>m1($?[]:g),[$,g]),R=b.useRef(us),[F,A]=b.useState(us),L=b.useRef(us),M=()=>{if(!Z)return;V(!1);let pe=h||s||R.current;Jp(pe,L.current)||(L.current=pe,A(pe))},[Z,V]=b.useState(!1);return b.useEffect(M),{realtimeValidation:m||w||h||s||us,displayValidation:d==="native"?m||w||F:m||w||h||s||F,updateValidation(pe){d==="aria"&&!Jp(F,pe)?A(pe):R.current=pe},resetValidation(){let pe=us;Jp(pe,L.current)||(L.current=pe,A(pe)),d==="native"&&V(!1),x(!0)},commitValidation(){d==="native"&&V(!0),x(!0)}}}function a0(e){return e?Array.isArray(e)?e:[e]:[]}function JM(e,t){if(typeof e=="function"){let n=e(t);if(n&&typeof n!="boolean")return a0(n)}return[]}function m1(e){return e.length?{isInvalid:!0,validationErrors:e,validationDetails:H$}:null}function Jp(e,t){return e===t?!0:!!e&&!!t&&e.isInvalid===t.isInvalid&&e.validationErrors.length===t.validationErrors.length&&e.validationErrors.every((n,i)=>n===t.validationErrors[i])&&Object.entries(e.validationDetails).every(([n,i])=>t.validationDetails[n]===i)}const XM=b.createContext(null);function G$(e){let{description:t,errorMessage:n,isInvalid:i,validationState:o}=e,{labelProps:s,fieldProps:c}=g8(e),d=id([!!t,!!n,i,o]),m=id([!!t,!!n,i,o]);return c=pt(c,{"aria-describedby":[d,m,e["aria-describedby"]].filter(Boolean).join(" ")||void 0}),{labelProps:s,fieldProps:c,descriptionProps:{id:d},errorMessageProps:{id:m}}}function eR(e,t,n){let i=Zt(o=>{n&&!o.defaultPrevented&&n(t)});b.useEffect(()=>{let o=e?.current?.form;return o?.addEventListener("reset",i),()=>{o?.removeEventListener("reset",i)}},[e])}function tR(e,t,n){let{validationBehavior:i,focus:o}=e;ct(()=>{if(i==="native"&&n?.current&&"setCustomValidity"in n.current&&!n.current.disabled){let h=t.realtimeValidation.isInvalid?t.realtimeValidation.validationErrors.join(" ")||"Invalid value.":"";n.current.setCustomValidity(h),n.current.hasAttribute("title")||(n.current.title=""),t.realtimeValidation.isInvalid||t.updateValidation(rR(n.current))}});let s=b.useRef(!1),c=Zt(()=>{s.current||t.resetValidation()}),d=Zt(h=>{t.displayValidation.isInvalid||t.commitValidation();let y=n?.current?.form;!h.defaultPrevented&&n&&y&&aR(y)===n.current&&(o?o():n.current?.focus(),LN("keyboard")),h.preventDefault()}),m=Zt(()=>{t.commitValidation()});b.useEffect(()=>{let h=n?.current;if(!h)return;let y=h.form,g=y?.reset;return y&&(y.reset=()=>{s.current=!window.event||window.event.type==="message"&&Pe(window.event)instanceof MessagePort,g?.call(y),s.current=!1}),h.addEventListener("invalid",d),h.addEventListener("change",m),y?.addEventListener("reset",c),()=>{h.removeEventListener("invalid",d),h.removeEventListener("change",m),y?.removeEventListener("reset",c),y&&(y.reset=g)}},[n,i])}function nR(e){let t=e.validity;return{badInput:t.badInput,customError:t.customError,patternMismatch:t.patternMismatch,rangeOverflow:t.rangeOverflow,rangeUnderflow:t.rangeUnderflow,stepMismatch:t.stepMismatch,tooLong:t.tooLong,tooShort:t.tooShort,typeMismatch:t.typeMismatch,valueMissing:t.valueMissing,valid:t.valid}}function rR(e){return{isInvalid:!e.validity.valid,validationDetails:nR(e),validationErrors:e.validationMessage?[e.validationMessage]:[]}}function aR(e){for(let t=0;t<e.elements.length;t++){let n=e.elements[t];if(n.validity?.valid===!1)return n}return null}const Wd=b.createContext({}),Z$=b.forwardRef(function(t,n){[t,n]=sa(t,n,Wd);let{isDisabled:i,isInvalid:o,isReadOnly:s,onHoverStart:c,onHoverChange:d,onHoverEnd:m,...h}=t;i??=!!t["aria-disabled"]&&t["aria-disabled"]!=="false",o??=!!t["aria-invalid"]&&t["aria-invalid"]!=="false";let{hoverProps:y,isHovered:g}=qs({onHoverStart:c,onHoverChange:d,onHoverEnd:m,isDisabled:i}),{isFocused:E,isFocusVisible:S,focusProps:$}=cl({within:!0}),x=la({...t,values:{isHovered:g,isFocusWithin:E,isFocusVisible:S,isDisabled:i,isInvalid:o},defaultClassName:"react-aria-Group"});return ve.createElement(wn.div,{...pt(h,$,y),...x,ref:n,role:t.role??"group",slot:t.slot??void 0,"data-focus-within":E||void 0,"data-hovered":g||void 0,"data-focus-visible":S||void 0,"data-disabled":i||void 0,"data-invalid":o||void 0,"data-readonly":s||void 0},x.children)}),Y$=b.createContext({});let iR=e=>{let{onHoverStart:t,onHoverChange:n,onHoverEnd:i,...o}=e;return o};const oR=pS(function(t,n){[t,n]=sa(t,n,Y$);let{hoverProps:i,isHovered:o}=qs({...t,isDisabled:t.disabled}),{isFocused:s,isFocusVisible:c,focusProps:d}=cl({isTextInput:!0,autoFocus:t.autoFocus}),m=!!t["aria-invalid"]&&t["aria-invalid"]!=="false",h=la({...t,values:{isHovered:o,isFocused:s,isFocusVisible:c,isDisabled:t.disabled||!1,isInvalid:m},defaultClassName:"react-aria-Input"});return ve.createElement(wn.input,{...pt(iR(t),d,i),...h,ref:n,"data-focused":s||void 0,"data-disabled":t.disabled||void 0,"data-hovered":o||void 0,"data-focus-visible":c||void 0,"data-invalid":m||void 0})});var q$={};q$={Empty:"فارغ"};var K$={};K$={Empty:"Изпразни"};var W$={};W$={Empty:"Prázdné"};var Q$={};Q$={Empty:"Tom"};var J$={};J$={Empty:"Leer"};var X$={};X$={Empty:"Άδειο"};var eD={};eD={Empty:"Empty"};var tD={};tD={Empty:"Vacío"};var nD={};nD={Empty:"Tühjenda"};var rD={};rD={Empty:"Tyhjä"};var aD={};aD={Empty:"Vide"};var iD={};iD={Empty:"ריק"};var oD={};oD={Empty:"Prazno"};var lD={};lD={Empty:"Üres"};var sD={};sD={Empty:"Vuoto"};var uD={};uD={Empty:"空"};var cD={};cD={Empty:"비어 있음"};var dD={};dD={Empty:"Tuščias"};var fD={};fD={Empty:"Tukšs"};var mD={};mD={Empty:"Tom"};var pD={};pD={Empty:"Leeg"};var hD={};hD={Empty:"Pusty"};var yD={};yD={Empty:"Vazio"};var gD={};gD={Empty:"Vazio"};var bD={};bD={Empty:"Gol"};var vD={};vD={Empty:"Не заполнено"};var _D={};_D={Empty:"Prázdne"};var ED={};ED={Empty:"Prazen"};var SD={};SD={Empty:"Prazno"};var $D={};$D={Empty:"Tomt"};var DD={};DD={Empty:"Boş"};var xD={};xD={Empty:"Пусто"};var CD={};CD={Empty:"空"};var AD={};AD={Empty:"空白"};var wD={};wD={"ar-AE":q$,"bg-BG":K$,"cs-CZ":W$,"da-DK":Q$,"de-DE":J$,"el-GR":X$,"en-US":eD,"es-ES":tD,"et-EE":nD,"fi-FI":rD,"fr-FR":aD,"he-IL":iD,"hr-HR":oD,"hu-HU":lD,"it-IT":sD,"ja-JP":uD,"ko-KR":cD,"lt-LT":dD,"lv-LV":fD,"nb-NO":mD,"nl-NL":pD,"pl-PL":hD,"pt-BR":yD,"pt-PT":gD,"ro-RO":bD,"ru-RU":vD,"sk-SK":_D,"sl-SI":ED,"sr-SP":SD,"sv-SE":$D,"tr-TR":DD,"uk-UA":xD,"zh-CN":CD,"zh-TW":AD};function lR(e){return e&&e.__esModule?e.default:e}const p1=()=>{};function sR(e){const t=b.useRef(void 0);let{value:n,textValue:i,minValue:o,maxValue:s,isDisabled:c,isReadOnly:d,isRequired:m,onIncrement:h,onIncrementPage:y,onDecrement:g,onDecrementPage:E,onDecrementToMin:S,onIncrementToMax:$}=e;const x=Xa(lR(wD),"@react-aria/spinbutton");let w=b.useRef(!1);const R=b.useCallback(()=>{clearTimeout(t.current),w.current=!1},[]),F=Zt(()=>{R()});b.useEffect(()=>()=>F(),[]);let A=W=>{if(!(W.ctrlKey||W.metaKey||W.shiftKey||W.altKey||d||W.nativeEvent.isComposing))switch(W.key){case"PageUp":if(y){W.preventDefault(),y?.();break}case"ArrowUp":case"Up":h&&(W.preventDefault(),h?.());break;case"PageDown":if(E){W.preventDefault(),E?.();break}case"ArrowDown":case"Down":g&&(W.preventDefault(),g?.());break;case"Home":S&&(W.preventDefault(),S?.());break;case"End":$&&(W.preventDefault(),$?.());break}},L=b.useRef(!1),M=()=>{L.current=!0},Z=()=>{L.current=!1},V=i===""?x.format("Empty"):(i||`${n}`).replace("-","−");b.useEffect(()=>{L.current&&(x8("assertive"),Ns(V,"assertive"))},[V]);let fe=b.useCallback(()=>{R()},[R]);const ne=Zt(h??p1),pe=Zt(g??p1),J=Zt(()=>{(s===void 0||isNaN(s)||n===void 0||isNaN(n)||n<s)&&(ne(),ye(60))}),ye=Zt(W=>{F(),w.current=!0,t.current=window.setTimeout(J,W)}),Ae=Zt(()=>{(o===void 0||isNaN(o)||n===void 0||isNaN(n)||n>o)&&(pe(),j(60))}),j=Zt(W=>{F(),w.current=!0,t.current=window.setTimeout(Ae,W)});let de=W=>{W.preventDefault()},{addGlobalListener:O,removeAllGlobalListeners:B}=Hd(),X=b.useRef(!1),[I,G]=b.useState(null);b.useEffect(()=>{I==="touch"?ye(600):I?ye(400):I||F()},[I]);let[C,U]=b.useState(null);return b.useEffect(()=>{C==="touch"?j(600):C?j(400):C||F()},[C]),{spinButtonProps:{role:"spinbutton","aria-valuenow":n!==void 0&&!isNaN(n)?n:void 0,"aria-valuetext":V,"aria-valuemin":o,"aria-valuemax":s,"aria-disabled":c||void 0,"aria-readonly":d||void 0,"aria-required":m||void 0,onKeyDown:A,onFocus:M,onBlur:Z},incrementButtonProps:{onPressStart:W=>{R(),W.pointerType!=="touch"?(h?.(),G("mouse")):(O(window,"pointercancel",fe,{capture:!0}),X.current=!1,G("touch")),O(window,"contextmenu",de)},onPressUp:W=>{R(),W.pointerType==="touch"&&(X.current=!0),B(),G(null)},onPressEnd:W=>{R(),W.pointerType==="touch"&&!w.current&&X.current&&h?.(),X.current=!1,G(null)},onFocus:M,onBlur:Z},decrementButtonProps:{onPressStart:W=>{R(),W.pointerType!=="touch"?(g?.(),U("mouse")):(O(window,"pointercancel",fe,{capture:!0}),X.current=!1,U("touch"))},onPressUp:W=>{R(),W.pointerType==="touch"&&(X.current=!0),B(),U(null)},onPressEnd:W=>{R(),W.pointerType==="touch"&&!w.current&&X.current&&g?.(),X.current=!1,U(null)},onFocus:M,onBlur:Z}}}class uR{constructor(t,n,i,o){this._walkerStack=[],this._currentSetFor=new Set,this._acceptNode=c=>{if(c.nodeType===Node.ELEMENT_NODE){const d=c.shadowRoot;if(d){const m=this._doc.createTreeWalker(d,this.whatToShow,{acceptNode:this._acceptNode});return this._walkerStack.unshift(m),NodeFilter.FILTER_ACCEPT}else{if(typeof this.filter=="function")return this.filter(c);if(this.filter?.acceptNode)return this.filter.acceptNode(c);if(this.filter===null)return NodeFilter.FILTER_ACCEPT}}return NodeFilter.FILTER_SKIP},this._doc=t,this.root=n,this.filter=o??null,this.whatToShow=i??NodeFilter.SHOW_ALL,this._currentNode=n,this._walkerStack.unshift(t.createTreeWalker(n,i,this._acceptNode));const s=n.shadowRoot;if(s){const c=this._doc.createTreeWalker(s,this.whatToShow,{acceptNode:this._acceptNode});this._walkerStack.unshift(c)}}get currentNode(){return this._currentNode}set currentNode(t){if(!ot(this.root,t))throw new Error("Cannot set currentNode to a node that is not contained by the root node.");const n=[];let i=t,o=t;for(this._currentNode=t;i&&i!==this.root;)if(i.nodeType===Node.DOCUMENT_FRAGMENT_NODE){const c=i,d=this._doc.createTreeWalker(c,this.whatToShow,{acceptNode:this._acceptNode});n.push(d),d.currentNode=o,this._currentSetFor.add(d),i=o=c.host}else i=i.parentNode;const s=this._doc.createTreeWalker(this.root,this.whatToShow,{acceptNode:this._acceptNode});n.push(s),s.currentNode=o,this._currentSetFor.add(s),this._walkerStack=n}get doc(){return this._doc}firstChild(){let t=this.currentNode,n=this.nextNode();return ot(t,n)?(n&&(this.currentNode=n),n):(this.currentNode=t,null)}lastChild(){let n=this._walkerStack[0].lastChild();return n&&(this.currentNode=n),n}nextNode(){const t=this._walkerStack[0].nextNode();if(t){if(t.shadowRoot){let i;if(typeof this.filter=="function"?i=this.filter(t):this.filter?.acceptNode&&(i=this.filter.acceptNode(t)),i===NodeFilter.FILTER_ACCEPT)return this.currentNode=t,t;let o=this.nextNode();return o&&(this.currentNode=o),o}return t&&(this.currentNode=t),t}else if(this._walkerStack.length>1){this._walkerStack.shift();let n=this.nextNode();return n&&(this.currentNode=n),n}else return null}previousNode(){const t=this._walkerStack[0];if(t.currentNode===t.root){if(this._currentSetFor.has(t))if(this._currentSetFor.delete(t),this._walkerStack.length>1){this._walkerStack.shift();let i=this.previousNode();return i&&(this.currentNode=i),i}else return null;return null}const n=t.previousNode();if(n){if(n.shadowRoot){let o;if(typeof this.filter=="function"?o=this.filter(n):this.filter?.acceptNode&&(o=this.filter.acceptNode(n)),o===NodeFilter.FILTER_ACCEPT)return n&&(this.currentNode=n),n;let s=this.lastChild();return s&&(this.currentNode=s),s}return n&&(this.currentNode=n),n}else if(this._walkerStack.length>1){this._walkerStack.shift();let i=this.previousNode();return i&&(this.currentNode=i),i}else return null}nextSibling(){return null}previousSibling(){return null}parentNode(){return null}}function TD(e,t,n,i){return Xr()?new uR(e,t,n,i):e.createTreeWalker(t,n,i)}const h1=ve.createContext(null),i0="react-aria-focus-scope-restore";let _t=null;function cR(e){let{children:t,contain:n,restoreFocus:i,autoFocus:o}=e,s=b.useRef(null),c=b.useRef(null),d=b.useRef([]),{parentNode:m}=b.useContext(h1)||{},h=b.useMemo(()=>new l0({scopeRef:d}),[d]);ct(()=>{let E=m||Vt.root;if(Vt.getTreeNode(E.scopeRef)&&_t&&!gd(_t,E.scopeRef)){let S=Vt.getTreeNode(_t);S&&(E=S)}E.addChild(h),Vt.addNode(h)},[h,m]),ct(()=>{let E=Vt.getTreeNode(d);E&&(E.contain=!!n)},[n]),ct(()=>{let E=s.current?.nextSibling,S=[],$=x=>x.stopPropagation();for(;E&&E!==c.current;)S.push(E),E.addEventListener(i0,$),E=E.nextSibling;return d.current=S,()=>{for(let x of S)x.removeEventListener(i0,$)}},[t]),gR(d,i,n),pR(d,n),bR(d,i,n),yR(d,o),b.useEffect(()=>{const E=St(nt(d.current?d.current[0]:void 0));let S=null;if(ur(E,d.current)){for(let $ of Vt.traverse())$.scopeRef&&ur(E,$.scopeRef.current)&&(S=$);S===Vt.getTreeNode(d)&&(_t=S.scopeRef)}},[d]),ct(()=>()=>{let E=Vt.getTreeNode(d)?.parent?.scopeRef??null;(d===_t||gd(d,_t))&&(!E||Vt.getTreeNode(E))&&(_t=E),Vt.removeTreeNode(d)},[d]);let y=b.useMemo(()=>dR(d),[]),g=b.useMemo(()=>({focusManager:y,parentNode:h}),[h,y]);return ve.createElement(h1.Provider,{value:g},ve.createElement("span",{"data-focus-scope-start":!0,hidden:!0,ref:s}),t,ve.createElement("span",{"data-focus-scope-end":!0,hidden:!0,ref:c}))}function dR(e){return{focusNext(t={}){let n=e.current,{from:i,tabbable:o,wrap:s,accept:c}=t,d=i||St(nt(n[0]??void 0)),m=n[0].previousElementSibling,h=wi(n),y=An(h,{tabbable:o,accept:c},n);y.currentNode=ur(d,n)?d:m;let g=y.nextNode();return!g&&s&&(y.currentNode=m,g=y.nextNode()),g&&Cn(g,!0),g},focusPrevious(t={}){let n=e.current,{from:i,tabbable:o,wrap:s,accept:c}=t,d=i||St(nt(n[0]??void 0)),m=n[n.length-1].nextElementSibling,h=wi(n),y=An(h,{tabbable:o,accept:c},n);y.currentNode=ur(d,n)?d:m;let g=y.previousNode();return!g&&s&&(y.currentNode=m,g=y.previousNode()),g&&Cn(g,!0),g},focusFirst(t={}){let n=e.current,{tabbable:i,accept:o}=t,s=wi(n),c=An(s,{tabbable:i,accept:o},n);c.currentNode=n[0].previousElementSibling;let d=c.nextNode();return d&&Cn(d,!0),d},focusLast(t={}){let n=e.current,{tabbable:i,accept:o}=t,s=wi(n),c=An(s,{tabbable:i,accept:o},n);c.currentNode=n[n.length-1].nextElementSibling;let d=c.previousNode();return d&&Cn(d,!0),d}}}function wi(e){return e[0].parentElement}function vs(e){let t=Vt.getTreeNode(_t);for(;t&&t.scopeRef!==e;){if(t.contain)return!1;t=t.parent}return!0}function fR(e){if(!e.form)return Array.from(nt(e).querySelectorAll(`input[type="radio"][name="${CSS.escape(e.name)}"]`)).filter(i=>!i.form);const t=e.form.elements.namedItem(e.name);let n=hn(e);return t instanceof n.RadioNodeList?Array.from(t).filter(i=>i instanceof n.HTMLInputElement):t instanceof n.HTMLInputElement?[t]:[]}function mR(e){if(e.checked)return!0;const t=fR(e);return t.length>0&&!t.some(n=>n.checked)}function pR(e,t){let n=b.useRef(void 0),i=b.useRef(void 0);ct(()=>{let o=e.current;if(!t){i.current&&(cancelAnimationFrame(i.current),i.current=void 0);return}const s=nt(o?o[0]:void 0);let c=h=>{if(h.key!=="Tab"||h.altKey||h.ctrlKey||h.metaKey||!vs(e)||h.isComposing)return;let y=St(s),g=e.current;if(!g||!ur(y,g))return;let E=wi(g),S=An(E,{tabbable:!0},g);if(!y)return;S.currentNode=y;let $=h.shiftKey?S.previousNode():S.nextNode();$||(S.currentNode=h.shiftKey?g[g.length-1].nextElementSibling:g[0].previousElementSibling,$=h.shiftKey?S.previousNode():S.nextNode()),h.preventDefault(),$&&(Cn($,!0),$ instanceof hn($).HTMLInputElement&&$.select())},d=h=>{(!_t||gd(_t,e))&&ur(Pe(h),e.current)?(_t=e,n.current=Pe(h)):vs(e)&&!Va(Pe(h),e)?n.current?n.current.focus():_t&&_t.current&&o0(_t.current):vs(e)&&(n.current=Pe(h))},m=h=>{i.current&&cancelAnimationFrame(i.current),i.current=requestAnimationFrame(()=>{let y=Ud(),g=(y==="virtual"||y===null)&&G0()&&eS(),E=St(s);if(!g&&E&&vs(e)&&!Va(E,e)){_t=e;let S=Pe(h);S&&S.isConnected?(n.current=S,n.current?.focus()):_t.current&&o0(_t.current)}})};return s.addEventListener("keydown",c,!1),s.addEventListener("focusin",d,!1),o?.forEach(h=>h.addEventListener("focusin",d,!1)),o?.forEach(h=>h.addEventListener("focusout",m,!1)),()=>{s.removeEventListener("keydown",c,!1),s.removeEventListener("focusin",d,!1),o?.forEach(h=>h.removeEventListener("focusin",d,!1)),o?.forEach(h=>h.removeEventListener("focusout",m,!1))}},[e,t]),ct(()=>()=>{i.current&&cancelAnimationFrame(i.current)},[i])}function ND(e){return Va(e)}function ur(e,t){return!e||!t?!1:t.some(n=>ot(n,e))}function Va(e,t=null){if(e instanceof Element&&e.closest("[data-react-aria-top-layer]"))return!0;for(let{scopeRef:n}of Vt.traverse(Vt.getTreeNode(t)))if(n&&ur(e,n.current))return!0;return!1}function hR(e){return Va(e,_t)}function gd(e,t){let n=Vt.getTreeNode(t)?.parent;for(;n;){if(n.scopeRef===e)return!0;n=n.parent}return!1}function Cn(e,t=!1){if(e!=null&&!t)try{Ts(e)}catch{}else if(e!=null)try{e.focus()}catch{}}function MD(e,t=!0){let n=e[0].previousElementSibling,i=wi(e),o=An(i,{tabbable:t},e);o.currentNode=n;let s=o.nextNode();return t&&!s&&(i=wi(e),o=An(i,{tabbable:!1},e),o.currentNode=n,s=o.nextNode()),s}function o0(e,t=!0){Cn(MD(e,t))}function yR(e,t){const n=ve.useRef(t);b.useEffect(()=>{if(n.current){_t=e;const i=nt(e.current?e.current[0]:void 0);!ur(St(i),_t.current)&&e.current&&o0(e.current)}n.current=!1},[e])}function gR(e,t,n){ct(()=>{if(t||n)return;let i=e.current;const o=nt(i?i[0]:void 0);let s=c=>{let d=Pe(c);ur(d,e.current)?_t=e:ND(d)||(_t=null)};return o.addEventListener("focusin",s,!1),i?.forEach(c=>c.addEventListener("focusin",s,!1)),()=>{o.removeEventListener("focusin",s,!1),i?.forEach(c=>c.removeEventListener("focusin",s,!1))}},[e,t,n])}function y1(e){let t=Vt.getTreeNode(_t);for(;t&&t.scopeRef!==e;){if(t.nodeToRestore)return!1;t=t.parent}return t?.scopeRef===e}function bR(e,t,n){const i=b.useRef(typeof document<"u"?St(nt(e.current?e.current[0]:void 0)):null);ct(()=>{let o=e.current;const s=nt(o?o[0]:void 0);if(!t||n)return;let c=()=>{(!_t||gd(_t,e))&&ur(St(s),e.current)&&(_t=e)};return s.addEventListener("focusin",c,!1),o?.forEach(d=>d.addEventListener("focusin",c,!1)),()=>{s.removeEventListener("focusin",c,!1),o?.forEach(d=>d.removeEventListener("focusin",c,!1))}},[e,n]),ct(()=>{const o=nt(e.current?e.current[0]:void 0);if(!t)return;let s=c=>{if(c.key!=="Tab"||c.altKey||c.ctrlKey||c.metaKey||!vs(e)||c.isComposing)return;let d=o.activeElement;if(!Va(d,e)||!y1(e))return;let m=Vt.getTreeNode(e);if(!m)return;let h=m.nodeToRestore,y=An(o.body,{tabbable:!0});y.currentNode=d;let g=c.shiftKey?y.previousNode():y.nextNode();if((!h||!h.isConnected||h===o.body)&&(h=void 0,m.nodeToRestore=void 0),(!g||!Va(g,e))&&h){y.currentNode=h;do g=c.shiftKey?y.previousNode():y.nextNode();while(Va(g,e));c.preventDefault(),c.stopPropagation(),g?Cn(g,!0):ND(h)?Cn(h,!0):d.blur()}};return n||o.addEventListener("keydown",s,!0),()=>{n||o.removeEventListener("keydown",s,!0)}},[e,t,n]),ct(()=>{const o=nt(e.current?e.current[0]:void 0);if(!t)return;let s=Vt.getTreeNode(e);if(s)return s.nodeToRestore=i.current??void 0,()=>{let c=Vt.getTreeNode(e);if(!c)return;let d=c.nodeToRestore,m=St(o);if(t&&d&&(m&&Va(m,e)||m===o.body&&y1(e))){let h=Vt.clone();requestAnimationFrame(()=>{if(o.activeElement===o.body){let y=h.getTreeNode(e);for(;y;){if(y.nodeToRestore&&y.nodeToRestore.isConnected){g1(y.nodeToRestore);return}y=y.parent}for(y=h.getTreeNode(e);y;){if(y.scopeRef&&y.scopeRef.current&&Vt.getTreeNode(y.scopeRef)){let g=MD(y.scopeRef.current,!0);g1(g);return}y=y.parent}}})}}},[e,t])}function g1(e){e.dispatchEvent(new CustomEvent(i0,{bubbles:!0,cancelable:!0}))&&Cn(e)}function An(e,t,n){let i=t?.tabbable?wN:qE,o=e?.nodeType===Node.ELEMENT_NODE?e:null,s=nt(o),c=TD(s,e||s,NodeFilter.SHOW_ELEMENT,{acceptNode(d){return ot(t?.from,d)||t?.tabbable&&d.tagName==="INPUT"&&d.getAttribute("type")==="radio"&&(!mR(d)||c.currentNode.tagName==="INPUT"&&c.currentNode.type==="radio"&&c.currentNode.name===d.name)?NodeFilter.FILTER_REJECT:i(d)&&(!n||ur(d,n))&&(!t?.accept||t.accept(d))?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});return t?.from&&(c.currentNode=t.from),c}function cy(e,t={}){return{focusNext(n={}){let i=e.current;if(!i)return null;let{from:o,tabbable:s=t.tabbable,wrap:c=t.wrap,accept:d=t.accept}=n,m=o||St(nt(i)),h=An(i,{tabbable:s,accept:d});ot(i,m)&&(h.currentNode=m);let y=h.nextNode();return!y&&c&&(h.currentNode=i,y=h.nextNode()),y&&Cn(y,!0),y},focusPrevious(n=t){let i=e.current;if(!i)return null;let{from:o,tabbable:s=t.tabbable,wrap:c=t.wrap,accept:d=t.accept}=n,m=o||St(nt(i)),h=An(i,{tabbable:s,accept:d});if(ot(i,m))h.currentNode=m;else{let g=Xp(h);return g&&Cn(g,!0),g??null}let y=h.previousNode();if(!y&&c){h.currentNode=i;let g=Xp(h);if(!g)return null;y=g}return y&&Cn(y,!0),y??null},focusFirst(n=t){let i=e.current;if(!i)return null;let{tabbable:o=t.tabbable,accept:s=t.accept}=n,d=An(i,{tabbable:o,accept:s}).nextNode();return d&&Cn(d,!0),d},focusLast(n=t){let i=e.current;if(!i)return null;let{tabbable:o=t.tabbable,accept:s=t.accept}=n,c=An(i,{tabbable:o,accept:s}),d=Xp(c);return d&&Cn(d,!0),d??null}}}function Xp(e){let t,n;do n=e.lastChild(),n&&(t=n);while(n);return t}class dy{constructor(){this.fastMap=new Map,this.root=new l0({scopeRef:null}),this.fastMap.set(null,this.root)}get size(){return this.fastMap.size}getTreeNode(t){return this.fastMap.get(t)}addTreeNode(t,n,i){let o=this.fastMap.get(n??null);if(!o)return;let s=new l0({scopeRef:t});o.addChild(s),s.parent=o,this.fastMap.set(t,s),i&&(s.nodeToRestore=i)}addNode(t){this.fastMap.set(t.scopeRef,t)}removeTreeNode(t){if(t===null)return;let n=this.fastMap.get(t);if(!n)return;let i=n.parent;for(let s of this.traverse())s!==n&&n.nodeToRestore&&s.nodeToRestore&&n.scopeRef&&n.scopeRef.current&&ur(s.nodeToRestore,n.scopeRef.current)&&(s.nodeToRestore=n.nodeToRestore);let o=n.children;i&&(i.removeChild(n),o.size>0&&o.forEach(s=>i&&i.addChild(s))),this.fastMap.delete(n.scopeRef)}*traverse(t=this.root){if(t.scopeRef!=null&&(yield t),t.children.size>0)for(let n of t.children)yield*this.traverse(n)}clone(){let t=new dy;for(let n of this.traverse())t.addTreeNode(n.scopeRef,n.parent?.scopeRef??null,n.nodeToRestore);return t}}class l0{constructor(t){this.children=new Set,this.contain=!1,this.scopeRef=t.scopeRef}addChild(t){this.children.add(t),t.parent=this}removeChild(t){this.children.delete(t),t.parent=void 0}}let Vt=new dy,eh=new Map;function vR(e){let{locale:t}=sn(),n=t+(e?Object.entries(e).sort((o,s)=>o[0]<s[0]?-1:1).join():"");if(eh.has(n))return eh.get(n);let i=new Intl.Collator(t,e);return eh.set(n,i),i}const _R=b.createContext({placement:"bottom"}),ER=typeof HTMLElement<"u"&&"inert"in HTMLElement.prototype;function b1(e){return e.dataset.liveAnnouncer==="true"||e.dataset.reactAriaTopLayer!==void 0}let cs=new WeakMap,xn=[];function SR(e,t){let n=hn(e?.[0]),i=t instanceof n.Element?{root:t}:t,o=i?.root??document.body,s=i?.shouldUseInert&&ER,c=new Set(e),d=new Set,m=w=>s&&w instanceof n.HTMLElement?w.inert:w.getAttribute("aria-hidden")==="true",h=(w,R)=>{s&&w instanceof n.HTMLElement?w.inert=R:R?w.setAttribute("aria-hidden","true"):(w.removeAttribute("aria-hidden"),w instanceof n.HTMLElement&&(w.inert=!1))},y=new Set;if(Xr())for(let w of e){let R=w;for(;R&&R!==o;){let F=R.getRootNode();"shadowRoot"in F&&y.add(F.shadowRoot),R=F.parentNode}}let g=w=>{for(let L of w.querySelectorAll("[data-live-announcer], [data-react-aria-top-layer]"))c.add(L);let R=L=>{if(d.has(L)||c.has(L)||L.parentElement&&d.has(L.parentElement)&&L.parentElement.getAttribute("role")!=="row")return NodeFilter.FILTER_REJECT;for(let M of c)if(ot(L,M))return NodeFilter.FILTER_SKIP;return NodeFilter.FILTER_ACCEPT},F=TD(nt(w),w,NodeFilter.SHOW_ELEMENT,{acceptNode:R}),A=R(w);if(A===NodeFilter.FILTER_ACCEPT&&E(w),A!==NodeFilter.FILTER_REJECT){let L=F.nextNode();for(;L!=null;)E(L),L=F.nextNode()}},E=w=>{let R=cs.get(w)??0;m(w)&&R===0||(R===0&&h(w,!0),d.add(w),cs.set(w,R+1))};xn.length&&xn[xn.length-1].disconnect(),g(o);let S=new MutationObserver(w=>{for(let R of w)if(R.type==="childList"){if(R.target.isConnected&&![...c,...d].some(F=>ot(F,R.target)))for(let F of R.addedNodes)(F instanceof HTMLElement||F instanceof SVGElement)&&b1(F)?c.add(F):F instanceof Element&&g(F);if(Xr()){for(let F of y)if(!F.isConnected){S.disconnect();break}}}});S.observe(o,{childList:!0,subtree:!0});let $=new Set;if(Xr())for(let w of y){let R=new MutationObserver(F=>{for(let A of F)if(A.type==="childList"){if(A.target.isConnected&&![...c,...d].some(L=>ot(L,A.target)))for(let L of A.addedNodes)(L instanceof HTMLElement||L instanceof SVGElement)&&b1(L)?c.add(L):L instanceof Element&&g(L);if(Xr()){for(let L of y)if(!L.isConnected){S.disconnect();break}}}});R.observe(w,{childList:!0,subtree:!0}),$.add(R)}let x={visibleNodes:c,hiddenNodes:d,observe(){S.observe(o,{childList:!0,subtree:!0})},disconnect(){S.disconnect()}};return xn.push(x),()=>{if(S.disconnect(),Xr())for(let w of $)w.disconnect();for(let w of d){let R=cs.get(w);R!=null&&(R===1?(h(w,!1),cs.delete(w)):cs.set(w,R-1))}x===xn[xn.length-1]?(xn.pop(),xn.length&&xn[xn.length-1].observe()):xn.splice(xn.indexOf(x),1)}}function $R(e){let t=xn[xn.length-1];if(t&&!t.visibleNodes.has(e))return t.visibleNodes.add(e),()=>{t.visibleNodes.delete(e)}}const ar={top:"top",bottom:"top",left:"left",right:"left"},bd={top:"bottom",bottom:"top",left:"right",right:"left"},DR={top:"left",left:"top"},s0={top:"height",left:"width"},RD={width:"totalWidth",height:"totalHeight"},Tc={};let xR=()=>typeof document<"u"?window.visualViewport:null;function v1(e,t){let n=0,i=0,o=0,s=0,c=0,d=0,m={},h=(t?.scale??1)>1;if(e.tagName==="BODY"||e.tagName==="HTML"){let y=document.documentElement;o=y.clientWidth,s=y.clientHeight,n=t?.width??o,i=t?.height??s,m.top=y.scrollTop||e.scrollTop,m.left=y.scrollLeft||e.scrollLeft,t&&(c=t.offsetTop,d=t.offsetLeft)}else({width:n,height:i,top:c,left:d}=Ps(e,!1)),m.top=e.scrollTop,m.left=e.scrollLeft,o=n,s=i;return XE()&&(e.tagName==="BODY"||e.tagName==="HTML")&&h&&(m.top=0,m.left=0,c=t?.pageTop??0,d=t?.pageLeft??0),{width:n,height:i,totalWidth:o,totalHeight:s,scroll:m,top:c,left:d}}function CR(e){return{top:e.scrollTop,left:e.scrollLeft,width:e.scrollWidth,height:e.scrollHeight}}function _1(e,t,n,i,o,s,c){let d=o.scroll[e]??0,m=i[s0[e]],h=c[e]+i.scroll[ar[e]]+s,y=c[e]+i.scroll[ar[e]]+m-s,g=t-d+i.scroll[ar[e]]+c[e]-i[ar[e]],E=t-d+n+i.scroll[ar[e]]+c[e]-i[ar[e]];return g<h?h-g:E>y?Math.max(y-E,h-g):0}function AR(e){let t=window.getComputedStyle(e);return{top:parseInt(t.marginTop,10)||0,bottom:parseInt(t.marginBottom,10)||0,left:parseInt(t.marginLeft,10)||0,right:parseInt(t.marginRight,10)||0}}function E1(e){if(Tc[e])return Tc[e];let[t,n]=e.split(" "),i=ar[t]||"right",o=DR[i];ar[n]||(n="center");let s=s0[i],c=s0[o];return Tc[e]={placement:t,crossPlacement:n,axis:i,crossAxis:o,size:s,crossSize:c},Tc[e]}function th(e,t,n,i,o,s,c,d,m,h,y){let{placement:g,crossPlacement:E,axis:S,crossAxis:$,size:x,crossSize:w}=i,R={};R[$]=e[$]??0,E==="center"?R[$]+=((e[w]??0)-(n[w]??0))/2:E!==$&&(R[$]+=(e[w]??0)-(n[w]??0)),R[$]+=s;const F=e[$]-n[w]+m+h,A=e[$]+e[w]-m-h;if(R[$]=Gh(R[$],F,A),g===S){let L=d?y[x]:y[RD[x]];R[bd[S]]=Math.floor(L-e[S]+o)}else R[S]=Math.floor(e[S]+e[x]+o);return R}function wR(e,t,n,i,o,s,c,d,m,h,y){let g=(e.top!=null?e.top:m[RD.height]-(e.bottom??0)-c)-(m.scroll.top??0),E=h?n.top:0,S={top:Math.max(t.top+E,(y?.offsetTop??t.top)+E),bottom:Math.min(t.top+t.height+E,(y?.offsetTop??0)+(y?.height??0))};return d!=="top"?Math.max(0,S.bottom-g-((o.top??0)+(o.bottom??0)+s)):Math.max(0,g+c-S.top-((o.top??0)+(o.bottom??0)+s))}function S1(e,t,n,i,o,s,c,d){let{placement:m,axis:h,size:y}=s;return m===h?Math.max(0,n[h]-(c.scroll[h]??0)-(e[h]+(d?t[h]:0))-(i[h]??0)-i[bd[h]]-o):Math.max(0,e[y]+e[h]+(d?t[h]:0)-n[h]-n[y]+(c.scroll[h]??0)-(i[h]??0)-i[bd[h]]-o)}function TR(e,t,n,i,o,s,c,d,m,h,y,g,E,S,$,x,w,R){let F=E1(e),{size:A,crossAxis:L,crossSize:M,placement:Z,crossPlacement:V}=F,fe=th(t,d,n,F,y,g,h,E,$,x,m),ne=y,pe=S1(d,h,t,o,s+y,F,m,w);if(c&&n[A]>pe){let te=E1(`${bd[Z]} ${V}`),z=th(t,d,n,te,y,g,h,E,$,x,m);S1(d,h,t,o,s+y,te,m,w)>pe&&(F=te,fe=z,ne=y)}let J="bottom";F.axis==="top"?F.placement==="top"?J="top":F.placement==="bottom"&&(J="bottom"):F.crossAxis==="top"&&(F.crossPlacement==="top"?J="bottom":F.crossPlacement==="bottom"&&(J="top"));let ye=_1(L,fe[L],n[M],d,m,s,h);fe[L]+=ye;let Ae=wR(fe,d,h,E,o,s,n.height,J,m,w,R);S&&S<Ae&&(Ae=S),n.height=Math.min(n.height,Ae),fe=th(t,d,n,F,ne,g,h,E,$,x,m),ye=_1(L,fe[L],n[M],d,m,s,h),fe[L]+=ye;let j={},de=t[L]-fe[L]-o[ar[L]],O=de+.5*t[M];const B=$/2+x,X=ar[L]==="left"?(o.left??0)+(o.right??0):(o.top??0)+(o.bottom??0),I=n[M]-X-$/2-x,G=t[L]+$/2-(fe[L]+o[ar[L]]),C=t[L]+t[M]-$/2-(fe[L]+o[ar[L]]),U=Gh(O,G,C);j[L]=Gh(U,B,I),{placement:Z,crossPlacement:V}=F,$?de=j[L]:V==="right"?de+=t[M]:V==="center"&&(de+=t[M]/2);let W=Z==="left"||Z==="top"?n[A]:0,Y={x:Z==="top"||Z==="bottom"?de:W,y:Z==="left"||Z==="right"?de:W};return{position:fe,maxHeight:Ae,arrowOffsetLeft:j.left,arrowOffsetTop:j.top,placement:Z,triggerAnchorPoint:Y}}function NR(e){let{placement:t,targetNode:n,overlayNode:i,scrollNode:o,padding:s,shouldFlip:c,boundaryElement:d,offset:m,crossOffset:h,maxHeight:y,arrowSize:g=0,arrowBoundaryOffset:E=0,targetRect:S}=e,$=xR(),x=i instanceof HTMLElement?MR(i):document.documentElement,w=x===document.documentElement;const R=window.getComputedStyle(x).position;let F=!!R&&R!=="static",A=w?Ps(n,!1,S):$1(n,x,!1,S);if(!w){let{marginTop:J,marginLeft:ye}=window.getComputedStyle(n);A.top+=parseInt(J,10)||0,A.left+=parseInt(ye,10)||0}let L=Ps(i,!0),M=AR(i);L.width+=(M.left??0)+(M.right??0),L.height+=(M.top??0)+(M.bottom??0);let Z=CR(o),V=v1(d,$),fe=v1(x,$),ne;if((d.tagName==="BODY"||d.tagName==="HTML")&&!w){let J=Qd(x,!1);ne={top:-(J.top-V.top),left:-(J.left-V.left),width:0,height:0}}else(d.tagName==="BODY"||d.tagName==="HTML")&&w?ne={top:0,left:0,width:0,height:0}:ne=$1(d,x,!1);let pe=ot(d,x);return TR(t,A,L,Z,M,s,c,V,fe,ne,m,h,F,y,g,E,pe,$)}function Qd(e,t){let{top:n,left:i,width:o,height:s}=e.getBoundingClientRect();return t&&e instanceof e.ownerDocument.defaultView.HTMLElement&&(o=e.offsetWidth,s=e.offsetHeight),{top:n,left:i,width:o,height:s}}function Ps(e,t,n){let{top:i,left:o,width:s,height:c}=n||Qd(e,t),{scrollTop:d,scrollLeft:m,clientTop:h,clientLeft:y}=document.documentElement;return{top:i+d-h,left:o+m-y,width:s,height:c}}function $1(e,t,n,i){let o=window.getComputedStyle(e),s;if(o.position==="fixed")s=i||Qd(e,n);else{s=Ps(e,n,i);let c=Ps(t,n),d=window.getComputedStyle(t);c.top+=(parseInt(d.borderTopWidth,10)||0)-t.scrollTop,c.left+=(parseInt(d.borderLeftWidth,10)||0)-t.scrollLeft,s.top-=c.top,s.left-=c.left}return s.top-=parseInt(o.marginTop,10)||0,s.left-=parseInt(o.marginLeft,10)||0,s}function MR(e){let t=e.offsetParent;if(t&&t===document.body&&window.getComputedStyle(t).position==="static"&&!D1(t)&&(t=document.documentElement),t==null)for(t=e.parentElement;t&&!D1(t);)t=t.parentElement;return t||document.documentElement}function D1(e){let t=window.getComputedStyle(e);return t.transform!=="none"||/transform|perspective/.test(t.willChange)||t.filter!=="none"||t.contain==="paint"||"backdropFilter"in t&&t.backdropFilter!=="none"||"WebkitBackdropFilter"in t&&t.WebkitBackdropFilter!=="none"}const RR=new WeakMap;function OR(e){let{triggerRef:t,isOpen:n,onClose:i}=e;b.useEffect(()=>{if(!n||i===null)return;let o=s=>{let c=Pe(s);if(!t.current||c instanceof Node&&!ot(c,t.current)||c instanceof HTMLInputElement||c instanceof HTMLTextAreaElement)return;let d=i||RR.get(t.current);d&&d()};return window.addEventListener("scroll",o,!0),()=>{window.removeEventListener("scroll",o,!0)}},[n,i,t])}function kR(){return typeof window.ResizeObserver<"u"}function u0(e){const{ref:t,box:n,onResize:i}=e;let o=Zt(i);b.useEffect(()=>{let s=t?.current;if(s)if(kR()){const c=new window.ResizeObserver(d=>{d.length&&o()});return c.observe(s,{box:n}),()=>{s&&c.unobserve(s)}}else return window.addEventListener("resize",o,!1),()=>{window.removeEventListener("resize",o,!1)}},[t,n])}let Si=typeof document<"u"?window.visualViewport:null;function BR(e){let{direction:t}=sn(),{arrowSize:n,targetRef:i,overlayRef:o,arrowRef:s,scrollRef:c=o,placement:d="bottom",containerPadding:m=12,shouldFlip:h=!0,boundaryElement:y=typeof document<"u"?document.body:null,offset:g=0,crossOffset:E=0,shouldUpdatePosition:S=!0,isOpen:$=!0,onClose:x,maxHeight:w,arrowBoundaryOffset:R=0,getTargetRect:F}=e,[A,L]=b.useState(null),M=[S,d,o.current,i.current,s?.current,c.current,m,h,y,g,E,$,t,w,R,n],Z=b.useRef(Si?.scale);b.useEffect(()=>{$&&(Z.current=Si?.scale)},[$]);let V=b.useCallback(()=>{if(S===!1||!$||!o.current||!i.current||!y||Si?.scale!==Z.current)return;let pe=null;if(c.current&&j0(c.current)){let j=St()?.getBoundingClientRect(),de=c.current.getBoundingClientRect();pe={type:"top",offset:(j?.top??0)-de.top},pe.offset>de.height/2&&(pe.type="bottom",pe.offset=(j?.bottom??0)-de.bottom)}let J=o.current;!w&&o.current&&(J.style.top="0px",J.style.bottom="",J.style.maxHeight=(window.visualViewport?.height??window.innerHeight)+"px");let ye=NR({placement:PR(d,t),overlayNode:o.current,targetNode:i.current,scrollNode:c.current||o.current,padding:m,shouldFlip:h,boundaryElement:y,offset:g,crossOffset:E,maxHeight:w,arrowSize:n??(s?.current?Qd(s.current,!0).width:0),arrowBoundaryOffset:R,targetRect:F?.(i.current)});if(!ye.position)return;J.style.top="",J.style.bottom="",J.style.left="",J.style.right="",Object.keys(ye.position).forEach(j=>J.style[j]=ye.position[j]+"px"),J.style.maxHeight=ye.maxHeight!=null?ye.maxHeight+"px":"";let Ae=St();if(pe&&Ae&&c.current){let j=Ae.getBoundingClientRect(),de=c.current.getBoundingClientRect(),O=j[pe.type]-de[pe.type];c.current.scrollTop+=O-pe.offset}L(ye)},M);ct(V,M),LR(V),u0({ref:o,onResize:V}),u0({ref:i,onResize:V});let fe=b.useRef(!1);ct(()=>{let pe,J=()=>{fe.current=!0,clearTimeout(pe),pe=setTimeout(()=>{fe.current=!1},500),V()},ye=()=>{fe.current&&J()};return Si?.addEventListener("resize",J),Si?.addEventListener("scroll",ye),()=>{Si?.removeEventListener("resize",J),Si?.removeEventListener("scroll",ye)}},[V]);let ne=b.useCallback(()=>{fe.current||x?.()},[x,fe]);return OR({triggerRef:i,isOpen:$,onClose:x&&ne}),{overlayProps:{style:{position:A?"absolute":"fixed",top:A?void 0:0,left:A?void 0:0,zIndex:1e5,...A?.position,maxHeight:A?.maxHeight??"100vh"}},placement:A?.placement??null,triggerAnchorPoint:A?.triggerAnchorPoint??null,arrowProps:{"aria-hidden":"true",role:"presentation",style:{left:A?.arrowOffsetLeft,top:A?.arrowOffsetTop}},updatePosition:V}}function LR(e){ct(()=>(window.addEventListener("resize",e,!1),()=>{window.removeEventListener("resize",e,!1)}),[e])}function PR(e,t){return t==="rtl"?e.replace("start","right").replace("end","left"):e.replace("start","left").replace("end","right")}function FR(e){let{ref:t,onInteractOutside:n,isDisabled:i,onInteractOutsideStart:o}=e,s=b.useRef({isPointerDown:!1,ignoreEmulatedMouseEvents:!1}),c=Zt(m=>{n&&x1(m,t)&&(o&&o(m),s.current.isPointerDown=!0)}),d=Zt(m=>{n&&n(m)});b.useEffect(()=>{let m=s.current;if(i)return;const h=t.current,y=nt(h);if(typeof PointerEvent<"u"){let g=E=>{m.isPointerDown&&x1(E,t)&&d(E),m.isPointerDown=!1};return y.addEventListener("pointerdown",c,!0),y.addEventListener("click",g,!0),()=>{y.removeEventListener("pointerdown",c,!0),y.removeEventListener("click",g,!0)}}},[t,i])}function x1(e,t){if(e.button>0)return!1;let n=Pe(e);if(n){const i=n.ownerDocument;if(!i||!ot(i.documentElement,n)||n.closest("[data-react-aria-top-layer]"))return!1}return t.current?!e.composedPath().includes(t.current):!1}const $r=[];function IR(e,t){let{onClose:n,shouldCloseOnBlur:i,isOpen:o,isDismissable:s=!1,isKeyboardDismissDisabled:c=!1,shouldCloseOnInteractOutside:d}=e,m=b.useRef(void 0);b.useEffect(()=>{if(o&&!$r.includes(t))return $r.push(t),()=>{let $=$r.indexOf(t);$>=0&&$r.splice($,1)}},[o,t]);let h=()=>{$r[$r.length-1]===t&&n&&n()},y=$=>{const x=$r[$r.length-1];m.current=x,(!d||d(Pe($)))&&x===t&&$.stopPropagation()},g=$=>{(!d||d(Pe($)))&&($r[$r.length-1]===t&&$.stopPropagation(),m.current===t&&h()),m.current=void 0},E=$=>{$.key==="Escape"&&!c&&!$.nativeEvent.isComposing&&($.stopPropagation(),$.preventDefault(),h())};FR({ref:t,onInteractOutside:s&&o?g:void 0,onInteractOutsideStart:y});let{focusWithinProps:S}=Ys({isDisabled:!i,onBlurWithin:$=>{!$.relatedTarget||hR($.relatedTarget)||(!d||d($.relatedTarget))&&n?.()}});return{overlayProps:{onKeyDown:E,...S},underlayProps:{}}}const Ds=typeof document<"u"&&window.visualViewport;let Nc=0,nh;function jR(e={}){let{isDisabled:t}=e;ct(()=>{if(!t)return Nc++,Nc===1&&(Gs()?nh=UR():nh=zR()),()=>{Nc--,Nc===0&&nh()}},[t])}function zR(){let e=window.innerWidth-document.documentElement.clientWidth;return Fd(e>0&&("scrollbarGutter"in document.documentElement.style?Yc(document.documentElement,"scrollbarGutter","stable"):Yc(document.documentElement,"paddingRight",`${e}px`)),Yc(document.documentElement,"overflow","hidden"))}function UR(){let e=Yc(document.documentElement,"overflow","hidden"),t,n=!1,i=y=>{let g=Pe(y);t=hd(g)?g:qd(g,!0),n=!1;let E=g.ownerDocument.defaultView.getSelection();E&&!E.isCollapsed&&E.containsNode(g,!0)&&(n=!0),y.composedPath().some(S=>S instanceof HTMLInputElement&&S.type==="range")&&(n=!0),"selectionStart"in g&&"selectionEnd"in g&&g.selectionStart<g.selectionEnd&&g.ownerDocument.activeElement===g&&(n=!0)},o=document.createElement("style"),s=yS();s&&(o.nonce=s),o.textContent=`
|
|
78
|
-
@layer {
|
|
79
|
-
* {
|
|
80
|
-
overscroll-behavior: contain;
|
|
81
|
-
}
|
|
82
|
-
}`.trim(),document.head.prepend(o);let c=y=>{if(!(y.touches.length===2||n)){if(!t||t===document.documentElement||t===document.body){y.preventDefault();return}t.scrollHeight===t.clientHeight&&t.scrollWidth===t.clientWidth&&y.preventDefault()}},d=y=>{let g=Pe(y),E=y.relatedTarget;E&&kp(E)?(E.focus({preventScroll:!0}),C1(E,kp(g))):E||g.parentElement?.closest("[tabindex]")?.focus({preventScroll:!0})},m=HTMLElement.prototype.focus;HTMLElement.prototype.focus=function(y){let g=St(),E=g!=null&&kp(g);m.call(this,{...y,preventScroll:!0}),(!y||!y.preventScroll)&&C1(this,E)};let h=Fd(rh(document,"touchstart",i,{passive:!1,capture:!0}),rh(document,"touchmove",c,{passive:!1,capture:!0}),rh(document,"blur",d,!0));return()=>{e(),h(),o.remove(),HTMLElement.prototype.focus=m}}function Yc(e,t,n){let i=e.style[t];return e.style[t]=n,()=>{e.style[t]=i}}function rh(e,t,n,i){return e.addEventListener(t,n,i),()=>{e.removeEventListener(t,n,i)}}function C1(e,t){t||!Ds?A1(e):Ds.addEventListener("resize",()=>A1(e),{once:!0})}function A1(e){let t=document.scrollingElement||document.documentElement,n=e;for(;n&&n!==t;){let i=qd(n);if(i!==document.documentElement&&i!==document.body&&i!==n){let o=i.getBoundingClientRect(),s=n.getBoundingClientRect();if(s.top<o.top||s.bottom>o.top+n.clientHeight){let c=o.bottom;Ds&&(c=Math.min(c,Ds.offsetTop+Ds.height));let d=s.top-o.top-((c-o.top)/2-s.height/2);i.scrollTo({top:Math.max(0,Math.min(i.scrollHeight-i.clientHeight,i.scrollTop+d)),behavior:"smooth"})}}n=i.parentElement}}function HR(e,t){let{triggerRef:n,popoverRef:i,groupRef:o,isNonModal:s,isKeyboardDismissDisabled:c,shouldCloseOnInteractOutside:d,...m}=e,h=m.trigger==="SubmenuTrigger",{overlayProps:y,underlayProps:g}=IR({isOpen:t.isOpen,onClose:t.close,shouldCloseOnBlur:!0,isDismissable:!s||h,isKeyboardDismissDisabled:c,shouldCloseOnInteractOutside:d},o??i),{overlayProps:E,arrowProps:S,placement:$,triggerAnchorPoint:x}=BR({...m,targetRef:n,overlayRef:i,isOpen:t.isOpen,onClose:s&&!h?t.close:null});return jR({isDisabled:s||!t.isOpen}),b.useEffect(()=>{if(t.isOpen&&i.current)return s?$R(o?.current??i.current):SR([o?.current??i.current],{shouldUseInert:!0})},[s,t.isOpen,i,o]),{popoverProps:pt(y,E),arrowProps:S,underlayProps:g,placement:$,triggerAnchorPoint:x}}var OD={};OD={dismiss:"تجاهل"};var kD={};kD={dismiss:"Отхвърляне"};var BD={};BD={dismiss:"Odstranit"};var LD={};LD={dismiss:"Luk"};var PD={};PD={dismiss:"Schließen"};var FD={};FD={dismiss:"Απόρριψη"};var ID={};ID={dismiss:"Dismiss"};var jD={};jD={dismiss:"Descartar"};var zD={};zD={dismiss:"Lõpeta"};var UD={};UD={dismiss:"Hylkää"};var HD={};HD={dismiss:"Rejeter"};var VD={};VD={dismiss:"התעלם"};var GD={};GD={dismiss:"Odbaci"};var ZD={};ZD={dismiss:"Elutasítás"};var YD={};YD={dismiss:"Ignora"};var qD={};qD={dismiss:"閉じる"};var KD={};KD={dismiss:"무시"};var WD={};WD={dismiss:"Atmesti"};var QD={};QD={dismiss:"Nerādīt"};var JD={};JD={dismiss:"Lukk"};var XD={};XD={dismiss:"Negeren"};var e2={};e2={dismiss:"Zignoruj"};var t2={};t2={dismiss:"Descartar"};var n2={};n2={dismiss:"Dispensar"};var r2={};r2={dismiss:"Revocare"};var a2={};a2={dismiss:"Пропустить"};var i2={};i2={dismiss:"Zrušiť"};var o2={};o2={dismiss:"Opusti"};var l2={};l2={dismiss:"Odbaci"};var s2={};s2={dismiss:"Avvisa"};var u2={};u2={dismiss:"Kapat"};var c2={};c2={dismiss:"Скасувати"};var d2={};d2={dismiss:"取消"};var f2={};f2={dismiss:"關閉"};var m2={};m2={"ar-AE":OD,"bg-BG":kD,"cs-CZ":BD,"da-DK":LD,"de-DE":PD,"el-GR":FD,"en-US":ID,"es-ES":jD,"et-EE":zD,"fi-FI":UD,"fr-FR":HD,"he-IL":VD,"hr-HR":GD,"hu-HU":ZD,"it-IT":YD,"ja-JP":qD,"ko-KR":KD,"lt-LT":WD,"lv-LV":QD,"nb-NO":JD,"nl-NL":XD,"pl-PL":e2,"pt-BR":t2,"pt-PT":n2,"ro-RO":r2,"ru-RU":a2,"sk-SK":i2,"sl-SI":o2,"sr-SP":l2,"sv-SE":s2,"tr-TR":u2,"uk-UA":c2,"zh-CN":d2,"zh-TW":f2};function VR(e){return e&&e.__esModule?e.default:e}function w1(e){let{onDismiss:t,...n}=e,i=Xa(VR(m2),"@react-aria/overlays"),o=Zs(n,i.format("dismiss")),s=()=>{t&&t()};return ve.createElement(n0,null,ve.createElement("button",{...o,tabIndex:-1,onClick:s,style:{width:1,height:1}}))}function GR({children:e}){let t=b.useMemo(()=>({register:()=>{}}),[]);return ve.createElement(Z0.Provider,{value:t},e)}const ZR=b.createContext({});function YR(){return b.useContext(ZR)??{}}const p2=ve.createContext(null);function T1(e){let t=F0(),{portalContainer:n=t?null:document.body,isExiting:i}=e,[o,s]=b.useState(!1),c=b.useMemo(()=>({contain:o,setContain:s}),[o,s]),{getContainer:d}=YR();if(!e.portalContainer&&d&&(n=d()),!n)return null;let m=e.children;return e.disableFocusManagement||(m=ve.createElement(cR,{restoreFocus:!0,contain:(e.shouldContainFocus||o)&&!i},m)),m=ve.createElement(p2.Provider,{value:c},ve.createElement(GR,null,m)),i8.createPortal(m,n)}function qR(){let t=b.useContext(p2)?.setContain;ct(()=>{t?.(!0)},[t])}function h2(e){let[t,n]=ws(e.isOpen,e.defaultOpen||!1,e.onOpenChange);const i=b.useCallback(()=>{n(!0)},[n]),o=b.useCallback(()=>{n(!1)},[n]),s=b.useCallback(()=>{n(!t)},[n,t]);return{isOpen:t,setOpen:n,open:i,close:o,toggle:s}}function KR(e,t=!0){let[n,i]=b.useState(!0),o=n&&t;return ct(()=>{if(o&&e.current&&"getAnimations"in e.current)for(let s of e.current.getAnimations())s instanceof CSSTransition&&s.cancel()},[e,o]),y2(e,o,b.useCallback(()=>i(!1),[])),o}function WR(e,t){let[n,i]=b.useState(t?"open":"closed");switch(n){case"open":t||i("exiting");break;case"closed":case"exiting":t&&i("open");break}let o=n==="exiting";return y2(e,o,b.useCallback(()=>{i(s=>s==="exiting"?"closed":s)},[])),o}function y2(e,t,n){ct(()=>{if(t&&e.current){if(!("getAnimations"in e.current)){n();return}let i=e.current.getAnimations();if(i.length===0){n();return}let o=!1;return Promise.allSettled(i.map(s=>s.finished)).then(()=>{o||hS.flushSync(()=>{n()})}),()=>{o=!0}}},[e,t,n])}const g2=b.createContext(null),N1=b.createContext(null),QR=b.forwardRef(function(t,n){[t,n]=sa(t,n,g2);let i=b.useContext(fy),o=h2(t),s=t.isOpen!=null||t.defaultOpen!=null||!i?o:i,c=WR(n,s.isOpen)||t.isExiting||!1,d=a8(),{direction:m}=sn();if(d){let h=t.children;return typeof h=="function"&&(h=h({trigger:t.trigger||null,placement:"bottom",isEntering:!1,isExiting:!1,defaultChildren:null})),ve.createElement(ve.Fragment,null,h)}return s&&!s.isOpen&&!c?null:ve.createElement(JR,{...t,triggerRef:t.triggerRef,state:s,popoverRef:n,isExiting:c,dir:m})});function JR({state:e,isExiting:t,UNSTABLE_portalContainer:n,clearContexts:i,...o}){let s=b.useRef(null),c=b.useRef(null),d=b.useContext(N1),m=d&&o.trigger==="SubmenuTrigger",{popoverProps:h,underlayProps:y,arrowProps:g,placement:E,triggerAnchorPoint:S}=HR({...o,offset:o.offset??8,arrowRef:s,groupRef:m?d:c},e),$=o.popoverRef,x=KR($,!!E)||o.isEntering||!1,w=la({...o,defaultClassName:"react-aria-Popover",values:{trigger:o.trigger||null,placement:E,isEntering:x,isExiting:t}}),R=!o.isNonModal||o.trigger==="SubmenuTrigger",[F,A]=b.useState(!1);ct(()=>{$.current&&A(R&&!$.current.querySelector("[role=dialog]"))},[$,R]),b.useEffect(()=>{F&&(o.trigger!=="SubmenuTrigger"||Ud()!=="pointer")&&$.current&&!j0($.current)&&Ts($.current)},[F,$,o.trigger]);let L=b.useMemo(()=>{let pe=w.children;if(i)for(let J of i)pe=ve.createElement(J.Provider,{value:null},pe);return pe},[w.children,i]),[M,Z]=b.useState(null),V=b.useCallback(()=>{o.triggerRef.current&&Z(o.triggerRef.current.getBoundingClientRect().width+"px")},[o.triggerRef]);ct(V,[V]),u0({ref:w.style?.["--trigger-width"]?void 0:o.triggerRef,onResize:V});let fe={...h.style,"--trigger-anchor-point":S?`${S.x}px ${S.y}px`:void 0,...w.style,"--trigger-width":w.style?.["--trigger-width"]||M},ne=ve.createElement(wn.div,{...pt(un(o,{global:!0}),h),...w,role:F?"dialog":void 0,tabIndex:F?-1:void 0,"aria-label":o["aria-label"],"aria-labelledby":o["aria-labelledby"],ref:$,slot:o.slot||void 0,style:fe,dir:o.dir,"data-trigger":o.trigger,"data-placement":E,"data-entering":x||void 0,"data-exiting":t||void 0},!o.isNonModal&&ve.createElement(w1,{onDismiss:e.close}),ve.createElement(_R.Provider,{value:{...g,placement:E,ref:s}},L),ve.createElement(w1,{onDismiss:e.close}));return m?ve.createElement(T1,{...o,shouldContainFocus:F,isExiting:t,portalContainer:n??d?.current??void 0},ne):ve.createElement(T1,{...o,shouldContainFocus:F,isExiting:t,portalContainer:n},!o.isNonModal&&e.isOpen&&ve.createElement("div",{"data-testid":"underlay",...y,style:{position:"fixed",inset:0}}),ve.createElement("div",{ref:c,style:{display:"contents"}},ve.createElement(N1.Provider,{value:c},ne)))}function XR(e,t){let{role:n="dialog"}=e,i=id();i=e["aria-label"]?void 0:i;let o=b.useRef(!1);return b.useEffect(()=>{if(t.current&&!j0(t.current)){Ts(t.current);let s=setTimeout(()=>{(St()===t.current||St()===document.body)&&(o.current=!0,t.current&&(t.current.blur(),Ts(t.current)),o.current=!1)},500);return()=>{clearTimeout(s)}}},[t]),qR(),b.useRef(!1),b.useEffect(()=>{}),{dialogProps:{...un(e,{labelable:!0}),role:n,tabIndex:-1,"aria-labelledby":e["aria-labelledby"]||i,onBlur:s=>{o.current&&s.stopPropagation()}},titleProps:{id:i}}}const b2=b.createContext(null),fy=b.createContext(null),eO=b.forwardRef(function(t,n){let i=t["aria-labelledby"];[t,n]=sa(t,n,b2);let{dialogProps:o,titleProps:s}=XR({...t,"aria-labelledby":i},n),c=b.useContext(fy);!o["aria-label"]&&!o["aria-labelledby"]&&t["aria-labelledby"]&&(o["aria-labelledby"]=t["aria-labelledby"]);let d=la({defaultClassName:"react-aria-Dialog",className:t.className,style:t.style,children:t.children,values:{close:c?.close||(()=>{})}}),m=un(t,{global:!0});return ve.createElement(wn.section,{...pt(m,d,o),render:t.render,ref:n,slot:t.slot||void 0},ve.createElement(Id,{values:[[K0,{slots:{[kh]:{},title:{...s,level:2}}}],[Ks,{slots:{[kh]:{},close:{onPress:()=>c?.close()}}}]]},d.children))});function tO(e){let t=vR({usage:"search",...e}),n=b.useCallback((s,c)=>c.length===0?!0:(s=s.normalize("NFC"),c=c.normalize("NFC"),t.compare(s.slice(0,c.length),c)===0),[t]),i=b.useCallback((s,c)=>c.length===0?!0:(s=s.normalize("NFC"),c=c.normalize("NFC"),t.compare(s.slice(-c.length),c)===0),[t]),o=b.useCallback((s,c)=>{if(c.length===0)return!0;s=s.normalize("NFC"),c=c.normalize("NFC");let d=0,m=c.length;for(;d+m<=s.length;d++){let h=s.slice(d,d+m);if(t.compare(c,h)===0)return!0}return!1},[t]);return b.useMemo(()=>({startsWith:n,endsWith:i,contains:o}),[n,i,o])}const nO=["day","month","year"],rO={hour:1,minute:2,second:3};function aO(e,t){let{autoComplete:n,isDisabled:i,name:o}=e,{visuallyHiddenProps:s}=F$({style:{position:"fixed",top:0,left:0}}),c=60;t.granularity==="second"?c=1:t.granularity==="hour"&&(c=3600);let d="";t.value&&(t.granularity==="day"?d=mn(t.value).toString():d=oa("timeZone"in t.value?Z8(t.value):t.value).toString());let m=t.granularity==="day"?"date":"datetime-local",h=["hour","minute","second"],y=0;return h.includes(t.granularity)&&(y=rO[t.granularity],h=h.slice(0,y)),{containerProps:{...s,"aria-hidden":!0,"data-react-aria-prevent-focus":!0,"data-a11y-ignore":"aria-hidden-focus"},inputProps:{tabIndex:-1,autoComplete:n,disabled:i,type:m,form:"",name:o,step:c,value:d,onChange:g=>{let E=Pe(g).value.toString();if(E)try{let S=tM(E);if(t.granularity==="day"&&(S=S$(E)),"setSegment"in t)for(let $ in S)nO.includes($)&&t.setSegment($,S[$]),h.includes($)&&t.setSegment($,S[$]);t.setValue(S)}catch{}}}}}function iO(e){let{state:t}=e,{containerProps:n,inputProps:i}=aO({...e},t);return ve.createElement("div",{...n,"data-testid":"hidden-dateinput-container"},ve.createElement("input",i))}var v2={};v2={calendar:"التقويم",day:"يوم",dayPeriod:"ص/م",endDate:"تاريخ الانتهاء",era:"العصر",hour:"الساعات",minute:"الدقائق",month:"الشهر",second:"الثواني",selectedDateDescription:e=>`تاريخ محدد: ${e.date}`,selectedRangeDescription:e=>`المدى الزمني المحدد: ${e.startDate} إلى ${e.endDate}`,selectedTimeDescription:e=>`الوقت المحدد: ${e.time}`,startDate:"تاريخ البدء",timeZoneName:"التوقيت",weekday:"اليوم",year:"السنة"};var _2={};_2={calendar:"Календар",day:"ден",dayPeriod:"пр.об./сл.об.",endDate:"Крайна дата",era:"ера",hour:"час",minute:"минута",month:"месец",second:"секунда",selectedDateDescription:e=>`Избрана дата: ${e.date}`,selectedRangeDescription:e=>`Избран диапазон: ${e.startDate} до ${e.endDate}`,selectedTimeDescription:e=>`Избрано време: ${e.time}`,startDate:"Начална дата",timeZoneName:"часова зона",weekday:"ден от седмицата",year:"година"};var E2={};E2={calendar:"Kalendář",day:"den",dayPeriod:"část dne",endDate:"Konečné datum",era:"letopočet",hour:"hodina",minute:"minuta",month:"měsíc",second:"sekunda",selectedDateDescription:e=>`Vybrané datum: ${e.date}`,selectedRangeDescription:e=>`Vybrané období: ${e.startDate} až ${e.endDate}`,selectedTimeDescription:e=>`Vybraný čas: ${e.time}`,startDate:"Počáteční datum",timeZoneName:"časové pásmo",weekday:"den v týdnu",year:"rok"};var S2={};S2={calendar:"Kalender",day:"dag",dayPeriod:"AM/PM",endDate:"Slutdato",era:"æra",hour:"time",minute:"minut",month:"måned",second:"sekund",selectedDateDescription:e=>`Valgt dato: ${e.date}`,selectedRangeDescription:e=>`Valgt interval: ${e.startDate} til ${e.endDate}`,selectedTimeDescription:e=>`Valgt tidspunkt: ${e.time}`,startDate:"Startdato",timeZoneName:"tidszone",weekday:"ugedag",year:"år"};var $2={};$2={calendar:"Kalender",day:"Tag",dayPeriod:"Tageshälfte",endDate:"Enddatum",era:"Epoche",hour:"Stunde",minute:"Minute",month:"Monat",second:"Sekunde",selectedDateDescription:e=>`Ausgewähltes Datum: ${e.date}`,selectedRangeDescription:e=>`Ausgewählter Bereich: ${e.startDate} bis ${e.endDate}`,selectedTimeDescription:e=>`Ausgewählte Zeit: ${e.time}`,startDate:"Startdatum",timeZoneName:"Zeitzone",weekday:"Wochentag",year:"Jahr"};var D2={};D2={calendar:"Ημερολόγιο",day:"ημέρα",dayPeriod:"π.μ./μ.μ.",endDate:"Ημερομηνία λήξης",era:"περίοδος",hour:"ώρα",minute:"λεπτό",month:"μήνας",second:"δευτερόλεπτο",selectedDateDescription:e=>`Επιλεγμένη ημερομηνία: ${e.date}`,selectedRangeDescription:e=>`Επιλεγμένο εύρος: ${e.startDate} έως ${e.endDate}`,selectedTimeDescription:e=>`Επιλεγμένη ώρα: ${e.time}`,startDate:"Ημερομηνία έναρξης",timeZoneName:"ζώνη ώρας",weekday:"καθημερινή",year:"έτος"};var x2={};x2={era:"era",year:"year",month:"month",day:"day",hour:"hour",minute:"minute",second:"second",dayPeriod:"AM/PM",calendar:"Calendar",startDate:"Start Date",endDate:"End Date",weekday:"day of the week",timeZoneName:"time zone",selectedDateDescription:e=>`Selected Date: ${e.date}`,selectedRangeDescription:e=>`Selected Range: ${e.startDate} to ${e.endDate}`,selectedTimeDescription:e=>`Selected Time: ${e.time}`};var C2={};C2={calendar:"Calendario",day:"día",dayPeriod:"a. m./p. m.",endDate:"Fecha final",era:"era",hour:"hora",minute:"minuto",month:"mes",second:"segundo",selectedDateDescription:e=>`Fecha seleccionada: ${e.date}`,selectedRangeDescription:e=>`Rango seleccionado: ${e.startDate} a ${e.endDate}`,selectedTimeDescription:e=>`Hora seleccionada: ${e.time}`,startDate:"Fecha de inicio",timeZoneName:"zona horaria",weekday:"día de la semana",year:"año"};var A2={};A2={calendar:"Kalender",day:"päev",dayPeriod:"enne/pärast lõunat",endDate:"Lõppkuupäev",era:"ajastu",hour:"tund",minute:"minut",month:"kuu",second:"sekund",selectedDateDescription:e=>`Valitud kuupäev: ${e.date}`,selectedRangeDescription:e=>`Valitud vahemik: ${e.startDate} kuni ${e.endDate}`,selectedTimeDescription:e=>`Valitud aeg: ${e.time}`,startDate:"Alguskuupäev",timeZoneName:"ajavöönd",weekday:"nädalapäev",year:"aasta"};var w2={};w2={calendar:"Kalenteri",day:"päivä",dayPeriod:"vuorokaudenaika",endDate:"Päättymispäivä",era:"aikakausi",hour:"tunti",minute:"minuutti",month:"kuukausi",second:"sekunti",selectedDateDescription:e=>`Valittu päivämäärä: ${e.date}`,selectedRangeDescription:e=>`Valittu aikaväli: ${e.startDate} – ${e.endDate}`,selectedTimeDescription:e=>`Valittu aika: ${e.time}`,startDate:"Alkamispäivä",timeZoneName:"aikavyöhyke",weekday:"viikonpäivä",year:"vuosi"};var T2={};T2={calendar:"Calendrier",day:"jour",dayPeriod:"cadran",endDate:"Date de fin",era:"ère",hour:"heure",minute:"minute",month:"mois",second:"seconde",selectedDateDescription:e=>`Date sélectionnée : ${e.date}`,selectedRangeDescription:e=>`Plage sélectionnée : ${e.startDate} au ${e.endDate}`,selectedTimeDescription:e=>`Heure choisie : ${e.time}`,startDate:"Date de début",timeZoneName:"fuseau horaire",weekday:"jour de la semaine",year:"année"};var N2={};N2={calendar:"לוח שנה",day:"יום",dayPeriod:"לפנה״צ/אחה״צ",endDate:"תאריך סיום",era:"תקופה",hour:"שעה",minute:"דקה",month:"חודש",second:"שנייה",selectedDateDescription:e=>`תאריך נבחר: ${e.date}`,selectedRangeDescription:e=>`טווח נבחר: ${e.startDate} עד ${e.endDate}`,selectedTimeDescription:e=>`זמן נבחר: ${e.time}`,startDate:"תאריך התחלה",timeZoneName:"אזור זמן",weekday:"יום בשבוע",year:"שנה"};var M2={};M2={calendar:"Kalendar",day:"dan",dayPeriod:"AM/PM",endDate:"Datum završetka",era:"era",hour:"sat",minute:"minuta",month:"mjesec",second:"sekunda",selectedDateDescription:e=>`Odabrani datum: ${e.date}`,selectedRangeDescription:e=>`Odabrani raspon: ${e.startDate} do ${e.endDate}`,selectedTimeDescription:e=>`Odabrano vrijeme: ${e.time}`,startDate:"Datum početka",timeZoneName:"vremenska zona",weekday:"dan u tjednu",year:"godina"};var R2={};R2={calendar:"Naptár",day:"nap",dayPeriod:"napszak",endDate:"Befejező dátum",era:"éra",hour:"óra",minute:"perc",month:"hónap",second:"másodperc",selectedDateDescription:e=>`Kijelölt dátum: ${e.date}`,selectedRangeDescription:e=>`Kijelölt tartomány: ${e.startDate}–${e.endDate}`,selectedTimeDescription:e=>`Kijelölt idő: ${e.time}`,startDate:"Kezdő dátum",timeZoneName:"időzóna",weekday:"hét napja",year:"év"};var O2={};O2={calendar:"Calendario",day:"giorno",dayPeriod:"AM/PM",endDate:"Data finale",era:"era",hour:"ora",minute:"minuto",month:"mese",second:"secondo",selectedDateDescription:e=>`Data selezionata: ${e.date}`,selectedRangeDescription:e=>`Intervallo selezionato: da ${e.startDate} a ${e.endDate}`,selectedTimeDescription:e=>`Ora selezionata: ${e.time}`,startDate:"Data iniziale",timeZoneName:"fuso orario",weekday:"giorno della settimana",year:"anno"};var k2={};k2={calendar:"カレンダー",day:"日",dayPeriod:"午前/午後",endDate:"終了日",era:"時代",hour:"時",minute:"分",month:"月",second:"秒",selectedDateDescription:e=>`選択した日付 : ${e.date}`,selectedRangeDescription:e=>`選択範囲 : ${e.startDate} から ${e.endDate}`,selectedTimeDescription:e=>`選択した時間 : ${e.time}`,startDate:"開始日",timeZoneName:"タイムゾーン",weekday:"曜日",year:"年"};var B2={};B2={calendar:"달력",day:"일",dayPeriod:"오전/오후",endDate:"종료일",era:"연호",hour:"시",minute:"분",month:"월",second:"초",selectedDateDescription:e=>`선택 일자: ${e.date}`,selectedRangeDescription:e=>`선택 범위: ${e.startDate} ~ ${e.endDate}`,selectedTimeDescription:e=>`선택 시간: ${e.time}`,startDate:"시작일",timeZoneName:"시간대",weekday:"요일",year:"년"};var L2={};L2={calendar:"Kalendorius",day:"diena",dayPeriod:"iki pietų / po pietų",endDate:"Pabaigos data",era:"era",hour:"valanda",minute:"minutė",month:"mėnuo",second:"sekundė",selectedDateDescription:e=>`Pasirinkta data: ${e.date}`,selectedRangeDescription:e=>`Pasirinktas intervalas: nuo ${e.startDate} iki ${e.endDate}`,selectedTimeDescription:e=>`Pasirinktas laikas: ${e.time}`,startDate:"Pradžios data",timeZoneName:"laiko juosta",weekday:"savaitės diena",year:"metai"};var P2={};P2={calendar:"Kalendārs",day:"diena",dayPeriod:"priekšpusdienā/pēcpusdienā",endDate:"Beigu datums",era:"ēra",hour:"stundas",minute:"minūtes",month:"mēnesis",second:"sekundes",selectedDateDescription:e=>`Atlasītais datums: ${e.date}`,selectedRangeDescription:e=>`Atlasītais diapazons: no ${e.startDate} līdz ${e.endDate}`,selectedTimeDescription:e=>`Atlasītais laiks: ${e.time}`,startDate:"Sākuma datums",timeZoneName:"laika josla",weekday:"nedēļas diena",year:"gads"};var F2={};F2={calendar:"Kalender",day:"dag",dayPeriod:"a.m./p.m.",endDate:"Sluttdato",era:"tidsalder",hour:"time",minute:"minutt",month:"måned",second:"sekund",selectedDateDescription:e=>`Valgt dato: ${e.date}`,selectedRangeDescription:e=>`Valgt område: ${e.startDate} til ${e.endDate}`,selectedTimeDescription:e=>`Valgt tid: ${e.time}`,startDate:"Startdato",timeZoneName:"tidssone",weekday:"ukedag",year:"år"};var I2={};I2={calendar:"Kalender",day:"dag",dayPeriod:"a.m./p.m.",endDate:"Einddatum",era:"tijdperk",hour:"uur",minute:"minuut",month:"maand",second:"seconde",selectedDateDescription:e=>`Geselecteerde datum: ${e.date}`,selectedRangeDescription:e=>`Geselecteerd bereik: ${e.startDate} tot ${e.endDate}`,selectedTimeDescription:e=>`Geselecteerde tijd: ${e.time}`,startDate:"Startdatum",timeZoneName:"tijdzone",weekday:"dag van de week",year:"jaar"};var j2={};j2={calendar:"Kalendarz",day:"dzień",dayPeriod:"rano / po południu / wieczorem",endDate:"Data końcowa",era:"era",hour:"godzina",minute:"minuta",month:"miesiąc",second:"sekunda",selectedDateDescription:e=>`Wybrana data: ${e.date}`,selectedRangeDescription:e=>`Wybrany zakres: ${e.startDate} do ${e.endDate}`,selectedTimeDescription:e=>`Wybrany czas: ${e.time}`,startDate:"Data początkowa",timeZoneName:"strefa czasowa",weekday:"dzień tygodnia",year:"rok"};var z2={};z2={calendar:"Calendário",day:"dia",dayPeriod:"AM/PM",endDate:"Data final",era:"era",hour:"hora",minute:"minuto",month:"mês",second:"segundo",selectedDateDescription:e=>`Data selecionada: ${e.date}`,selectedRangeDescription:e=>`Intervalo selecionado: ${e.startDate} a ${e.endDate}`,selectedTimeDescription:e=>`Hora selecionada: ${e.time}`,startDate:"Data inicial",timeZoneName:"fuso horário",weekday:"dia da semana",year:"ano"};var U2={};U2={calendar:"Calendário",day:"dia",dayPeriod:"am/pm",endDate:"Data de Término",era:"era",hour:"hora",minute:"minuto",month:"mês",second:"segundo",selectedDateDescription:e=>`Data selecionada: ${e.date}`,selectedRangeDescription:e=>`Intervalo selecionado: ${e.startDate} a ${e.endDate}`,selectedTimeDescription:e=>`Hora selecionada: ${e.time}`,startDate:"Data de Início",timeZoneName:"fuso horário",weekday:"dia da semana",year:"ano"};var H2={};H2={calendar:"Calendar",day:"zi",dayPeriod:"a.m/p.m.",endDate:"Dată final",era:"eră",hour:"oră",minute:"minut",month:"lună",second:"secundă",selectedDateDescription:e=>`Dată selectată: ${e.date}`,selectedRangeDescription:e=>`Interval selectat: de la ${e.startDate} până la ${e.endDate}`,selectedTimeDescription:e=>`Ora selectată: ${e.time}`,startDate:"Dată început",timeZoneName:"fus orar",weekday:"ziua din săptămână",year:"an"};var V2={};V2={calendar:"Календарь",day:"день",dayPeriod:"AM/PM",endDate:"Дата окончания",era:"эра",hour:"час",minute:"минута",month:"месяц",second:"секунда",selectedDateDescription:e=>`Выбранная дата: ${e.date}`,selectedRangeDescription:e=>`Выбранный диапазон: с ${e.startDate} по ${e.endDate}`,selectedTimeDescription:e=>`Выбранное время: ${e.time}`,startDate:"Дата начала",timeZoneName:"часовой пояс",weekday:"день недели",year:"год"};var G2={};G2={calendar:"Kalendár",day:"deň",dayPeriod:"AM/PM",endDate:"Dátum ukončenia",era:"letopočet",hour:"hodina",minute:"minúta",month:"mesiac",second:"sekunda",selectedDateDescription:e=>`Vybratý dátum: ${e.date}`,selectedRangeDescription:e=>`Vybratý rozsah: od ${e.startDate} do ${e.endDate}`,selectedTimeDescription:e=>`Vybratý čas: ${e.time}`,startDate:"Dátum začatia",timeZoneName:"časové pásmo",weekday:"deň týždňa",year:"rok"};var Z2={};Z2={calendar:"Koledar",day:"dan",dayPeriod:"dop/pop",endDate:"Datum konca",era:"doba",hour:"ura",minute:"minuta",month:"mesec",second:"sekunda",selectedDateDescription:e=>`Izbrani datum: ${e.date}`,selectedRangeDescription:e=>`Izbrano območje: ${e.startDate} do ${e.endDate}`,selectedTimeDescription:e=>`Izbrani čas: ${e.time}`,startDate:"Datum začetka",timeZoneName:"časovni pas",weekday:"dan v tednu",year:"leto"};var Y2={};Y2={calendar:"Kalendar",day:"дан",dayPeriod:"пре подне/по подне",endDate:"Datum završetka",era:"ера",hour:"сат",minute:"минут",month:"месец",second:"секунд",selectedDateDescription:e=>`Izabrani datum: ${e.date}`,selectedRangeDescription:e=>`Izabrani opseg: od ${e.startDate} do ${e.endDate}`,selectedTimeDescription:e=>`Izabrano vreme: ${e.time}`,startDate:"Datum početka",timeZoneName:"временска зона",weekday:"дан у недељи",year:"година"};var q2={};q2={calendar:"Kalender",day:"dag",dayPeriod:"fm/em",endDate:"Slutdatum",era:"era",hour:"timme",minute:"minut",month:"månad",second:"sekund",selectedDateDescription:e=>`Valt datum: ${e.date}`,selectedRangeDescription:e=>`Valt intervall: ${e.startDate} till ${e.endDate}`,selectedTimeDescription:e=>`Vald tid: ${e.time}`,startDate:"Startdatum",timeZoneName:"tidszon",weekday:"veckodag",year:"år"};var K2={};K2={calendar:"Takvim",day:"gün",dayPeriod:"ÖÖ/ÖS",endDate:"Bitiş Tarihi",era:"çağ",hour:"saat",minute:"dakika",month:"ay",second:"saniye",selectedDateDescription:e=>`Seçilen Tarih: ${e.date}`,selectedRangeDescription:e=>`Seçilen Aralık: ${e.startDate} - ${e.endDate}`,selectedTimeDescription:e=>`Seçilen Zaman: ${e.time}`,startDate:"Başlangıç Tarihi",timeZoneName:"saat dilimi",weekday:"haftanın günü",year:"yıl"};var W2={};W2={calendar:"Календар",day:"день",dayPeriod:"дп/пп",endDate:"Дата завершення",era:"ера",hour:"година",minute:"хвилина",month:"місяць",second:"секунда",selectedDateDescription:e=>`Вибрана дата: ${e.date}`,selectedRangeDescription:e=>`Вибраний діапазон: ${e.startDate} — ${e.endDate}`,selectedTimeDescription:e=>`Вибраний час: ${e.time}`,startDate:"Дата початку",timeZoneName:"часовий пояс",weekday:"день тижня",year:"рік"};var Q2={};Q2={calendar:"日历",day:"日",dayPeriod:"上午/下午",endDate:"结束日期",era:"纪元",hour:"小时",minute:"分钟",month:"月",second:"秒",selectedDateDescription:e=>`选定的日期:${e.date}`,selectedRangeDescription:e=>`选定的范围:${e.startDate} 至 ${e.endDate}`,selectedTimeDescription:e=>`选定的时间:${e.time}`,startDate:"开始日期",timeZoneName:"时区",weekday:"工作日",year:"年"};var J2={};J2={calendar:"日曆",day:"日",dayPeriod:"上午/下午",endDate:"結束日期",era:"纪元",hour:"小时",minute:"分钟",month:"月",second:"秒",selectedDateDescription:e=>`選定的日期:${e.date}`,selectedRangeDescription:e=>`選定的範圍:${e.startDate} 至 ${e.endDate}`,selectedTimeDescription:e=>`選定的時間:${e.time}`,startDate:"開始日期",timeZoneName:"时区",weekday:"工作日",year:"年"};var Jd={};Jd={"ar-AE":v2,"bg-BG":_2,"cs-CZ":E2,"da-DK":S2,"de-DE":$2,"el-GR":D2,"en-US":x2,"es-ES":C2,"et-EE":A2,"fi-FI":w2,"fr-FR":T2,"he-IL":N2,"hr-HR":M2,"hu-HU":R2,"it-IT":O2,"ja-JP":k2,"ko-KR":B2,"lt-LT":L2,"lv-LV":P2,"nb-NO":F2,"nl-NL":I2,"pl-PL":j2,"pt-BR":z2,"pt-PT":U2,"ro-RO":H2,"ru-RU":V2,"sk-SK":G2,"sl-SI":Z2,"sr-SP":Y2,"sv-SE":q2,"tr-TR":K2,"uk-UA":W2,"zh-CN":Q2,"zh-TW":J2};function X2(e,t,n){let{direction:i}=sn(),o=b.useMemo(()=>cy(t),[t]),s=m=>{if(ot(m.currentTarget,Pe(m))&&(m.altKey&&(m.key==="ArrowDown"||m.key==="ArrowUp")&&"setOpen"in e&&(m.preventDefault(),m.stopPropagation(),e.setOpen(!0)),!n))switch(m.key){case"ArrowLeft":if(m.preventDefault(),m.stopPropagation(),i==="rtl"){if(t.current){let h=Pe(m),y=M1(t.current,h.getBoundingClientRect().left,-1);y&&y.focus()}}else o.focusPrevious();break;case"ArrowRight":if(m.preventDefault(),m.stopPropagation(),i==="rtl"){if(t.current){let h=Pe(m),y=M1(t.current,h.getBoundingClientRect().left,1);y&&y.focus()}}else o.focusNext();break}},c=()=>{if(!t.current)return;let m=window.event?Pe(window.event):null,h=An(t.current,{tabbable:!0});if(m&&(h.currentNode=m,m=h.previousNode()),!m){let y;do y=h.lastChild(),y&&(m=y);while(y)}for(;m?.hasAttribute("data-placeholder");){let y=h.previousNode();if(y&&y.hasAttribute("data-placeholder"))m=y;else break}m&&m.focus()},{pressProps:d}=Y0({preventFocusOnPress:!0,allowTextSelectionOnPress:!0,onPressStart(m){m.pointerType==="mouse"&&c()},onPress(m){(m.pointerType==="touch"||m.pointerType==="pen")&&c()}});return pt(d,{onKeyDown:s})}function M1(e,t,n){let i=An(e,{tabbable:!0}),o=i.nextNode(),s=null,c=1/0;for(;o;){let m=o.getBoundingClientRect().left-t,h=Math.abs(m);Math.sign(m)===n&&h<c&&(s=o,c=h),o=i.nextNode()}return s}function oO(e){return e&&e.__esModule?e.default:e}const ex=new WeakMap,qc="__reactAriaDateFieldRole",lO="__reactAriaDateFieldFocusManager";function sO(e,t,n){let{isInvalid:i,validationErrors:o,validationDetails:s}=t.displayValidation,{labelProps:c,fieldProps:d,descriptionProps:m,errorMessageProps:h}=G$({...e,labelElementType:"span",isInvalid:i,errorMessage:e.errorMessage||o}),y=b.useRef(null),{focusWithinProps:g}=Ys({...e,onFocusWithin(ne){y.current=t.value,e.onFocus?.(ne)},onBlurWithin:ne=>{t.confirmPlaceholder(),t.value!==y.current&&t.commitValidation(),e.onBlur?.(ne)},onFocusWithinChange:e.onFocusChange}),E=Xa(oO(Jd),"@react-aria/datepicker"),S=t.maxGranularity==="hour"?"selectedTimeDescription":"selectedDateDescription",$=t.maxGranularity==="hour"?"time":"date",x=t.value?E.format(S,{[$]:t.formatValue({month:"long"})}):"",w=uy(x),R=e[qc]==="presentation"?d["aria-describedby"]:[w["aria-describedby"],d["aria-describedby"]].filter(Boolean).join(" ")||void 0,F=e[lO],A=b.useMemo(()=>F||cy(n),[F,n]),L=X2(t,n,e[qc]==="presentation");ex.set(t,{ariaLabel:e["aria-label"],ariaLabelledBy:[c.id,e["aria-labelledby"]].filter(Boolean).join(" ")||void 0,ariaDescribedBy:R,focusManager:A});let M=b.useRef(e.autoFocus),Z;e[qc]==="presentation"?Z={role:"presentation"}:Z=pt(d,{role:"group","aria-disabled":e.isDisabled||void 0,"aria-describedby":R}),b.useEffect(()=>{M.current&&A.focusFirst(),M.current=!1},[A]),eR(e.inputRef,t.defaultValue,t.setValue),tR({...e,focus(){A.focusFirst()}},t,e.inputRef);let V={type:"hidden",name:e.name,form:e.form,value:t.value?.toString()||"",disabled:e.isDisabled};e.validationBehavior==="native"&&(V.type="text",V.hidden=!0,V.required=e.isRequired,V.onChange=()=>{});let fe=un(e);return{labelProps:{...c,onClick:()=>{A.focusFirst()}},fieldProps:pt(fe,Z,L,g,{onKeyDown(ne){e.onKeyDown&&e.onKeyDown(ne)},onKeyUp(ne){e.onKeyUp&&e.onKeyUp(ne)},style:{unicodeBidi:"isolate"}}),inputProps:V,descriptionProps:m,errorMessageProps:h,isInvalid:i,validationErrors:o,validationDetails:s}}function uO(e){return e&&e.__esModule?e.default:e}function cO(){let{locale:e}=sn(),t=uS(uO(Jd),"@react-aria/datepicker");return b.useMemo(()=>{try{return new Intl.DisplayNames(e,{type:"dateTimeField"})}catch{return new dO(e,t)}},[e,t])}class dO{constructor(t,n){this.locale=t,this.dictionary=n}of(t){return this.dictionary.getStringForLocale(t,this.locale)}}function fO(e,t,n){let i=b.useRef(""),{locale:o,direction:s}=sn(),c=cO(),{ariaLabel:d,ariaLabelledBy:m,ariaDescribedBy:h,focusManager:y}=ex.get(t),g=e.isPlaceholder?"":e.text,E=b.useMemo(()=>t.dateFormatter.resolvedOptions(),[t.dateFormatter]),S=or({month:"long",timeZone:E.timeZone}),$=or({hour:"numeric",hour12:E.hour12,timeZone:E.timeZone});if(e.type==="month"&&!e.isPlaceholder){let G=S.format(t.dateValue);g=G!==g?`${g} – ${G}`:G}else e.type==="hour"&&!e.isPlaceholder&&(g=$.format(t.dateValue));let{spinButtonProps:x}=sR({value:e.value??void 0,textValue:g,minValue:e.minValue,maxValue:e.maxValue,isDisabled:t.isDisabled,isReadOnly:t.isReadOnly||!e.isEditable,isRequired:t.isRequired,onIncrement:()=>{i.current="",t.increment(e.type)},onDecrement:()=>{i.current="",t.decrement(e.type)},onIncrementPage:()=>{i.current="",t.incrementPage(e.type)},onDecrementPage:()=>{i.current="",t.decrementPage(e.type)},onIncrementToMax:()=>{i.current="",t.incrementToMax(e.type)},onDecrementToMin:()=>{i.current="",t.decrementToMin(e.type)}}),w=b.useMemo(()=>new _S(o,{maximumFractionDigits:0}),[o]),R=()=>{if(e.text===e.placeholder&&y.focusPrevious(),w.isValidPartialNumber(e.text)&&!t.isReadOnly&&!e.isPlaceholder){let G=e.text.slice(0,-1),C=w.parse(G);G=C===0?"":G,G.length===0||C===0?t.clearSegment(e.type):t.setSegment(e.type,C),i.current=G}else(e.type==="dayPeriod"||e.type==="era")&&t.clearSegment(e.type)},F=G=>{if(G.key==="a"&&(al()?G.metaKey:G.ctrlKey)&&G.preventDefault(),!(G.ctrlKey||G.metaKey||G.shiftKey||G.altKey))switch(G.key){case"Backspace":case"Delete":G.preventDefault(),G.stopPropagation(),R();break}},{startsWith:A}=tO({sensitivity:"base"}),L=or({hour:"numeric",hour12:!0}),M=b.useMemo(()=>{let G=new Date;return G.setHours(0),L.formatToParts(G).find(C=>C.type==="dayPeriod").value},[L]),Z=b.useMemo(()=>{let G=new Date;return G.setHours(12),L.formatToParts(G).find(C=>C.type==="dayPeriod").value},[L]),V=or({year:"numeric",era:"narrow",timeZone:"UTC"}),fe=b.useMemo(()=>{if(e.type!=="era")return[];let G=Et(new Ot(1,1,1),t.calendar),C=t.calendar.getEras().map(W=>{let Y=G.set({year:1,month:1,day:1,era:W}).toDate("UTC"),z=V.formatToParts(Y).find(T=>T.type==="era").value;return{era:W,formatted:z}}),U=mO(C.map(W=>W.formatted));if(U)for(let W of C)W.formatted=W.formatted.slice(U);return C},[V,t.calendar,e.type]),ne=G=>{if(t.isDisabled||t.isReadOnly)return;let C=i.current+G;switch(e.type){case"dayPeriod":if(A(M,G))t.setSegment("dayPeriod",0);else if(A(Z,G))t.setSegment("dayPeriod",1);else break;y.focusNext();break;case"era":{let U=fe.find(W=>A(W.formatted,G));U&&(t.setSegment("era",U.era),y.focusNext());break}case"day":case"hour":case"minute":case"second":case"month":case"year":{if(!w.isValidPartialNumber(C))return;let U=w.parse(C),W=U;if(e.maxValue!==void 0&&U>e.maxValue&&(W=w.parse(G)),isNaN(U))return;t.setSegment(e.type,W),e.maxValue!==void 0&&(+(U+"0")>e.maxValue||C.length>=String(e.maxValue).length)?(i.current="",y.focusNext()):i.current=C;break}}},pe=()=>{i.current="",n.current&&P$(n.current,{containingElement:qd(n.current)}),window.getSelection()?.collapse(n.current)},J=b.useRef(typeof document<"u"?document:null);Bp(J,"selectionchange",()=>{let G=window.getSelection();G?.anchorNode&&ot(n.current,G?.anchorNode)&&G.collapse(n.current)});let ye=b.useRef("");Bp(n,"beforeinput",G=>{if(n.current)switch(G.preventDefault(),G.inputType){case"deleteContentBackward":case"deleteContentForward":w.isValidPartialNumber(e.text)&&!t.isReadOnly&&R();break;case"insertCompositionText":ye.current=n.current.textContent,n.current.textContent=n.current.textContent;break;default:G.data!=null&&ne(G.data);break}}),Bp(n,"input",G=>{let{inputType:C,data:U}=G;switch(C){case"insertCompositionText":n.current&&(n.current.textContent=ye.current),U!=null&&(A(M,U)||A(Z,U))&&ne(U);break}}),ct(()=>{let G=n.current;return()=>{St()===G&&(y.focusPrevious()||y.focusNext())}},[n,y]);let Ae=Gs()||e.type==="timeZoneName"?{role:"textbox","aria-valuemax":null,"aria-valuemin":null,"aria-valuetext":null,"aria-valuenow":null}:{},j=b.useMemo(()=>t.segments.find(G=>G.isEditable),[t.segments]);e!==j&&!t.isInvalid&&(h=void 0);let de=Ar(),O=!t.isDisabled&&!t.isReadOnly&&e.isEditable,B=e.type==="literal"?"":c.of(e.type),X=Zs({"aria-label":`${B}${d?`, ${d}`:""}${m?", ":""}`,"aria-labelledby":m});if(e.type==="literal")return{segmentProps:{"aria-hidden":!0}};let I={caretColor:"transparent"};if(s==="rtl"){I.unicodeBidi="embed";let G=E[e.type];(G==="numeric"||G==="2-digit")&&(I.direction="ltr")}return{segmentProps:pt(x,X,{id:de,...Ae,"aria-invalid":t.isInvalid?"true":void 0,"aria-describedby":h,"aria-readonly":t.isReadOnly||!e.isEditable?"true":void 0,"data-placeholder":e.isPlaceholder||void 0,contentEditable:O,suppressContentEditableWarning:O,spellCheck:O?"false":void 0,autoCorrect:O?"off":void 0,[parseInt(ve.version,10)>=17?"enterKeyHint":"enterkeyhint"]:O?"next":void 0,inputMode:t.isDisabled||e.type==="dayPeriod"||e.type==="era"||!O?void 0:"numeric",tabIndex:t.isDisabled?void 0:0,onKeyDown:F,onFocus:pe,style:I,onPointerDown(G){G.stopPropagation()},onMouseDown(G){G.stopPropagation()}})}}function mO(e){e.sort();let t=e[0],n=e[e.length-1];for(let i=0;i<t.length;i++)if(t[i]!==n[i])return i;return 0}var tx={};tx={rangeOverflow:e=>`يجب أن تكون القيمة ${e.maxValue} أو قبل ذلك.`,rangeReversed:"تاريخ البدء يجب أن يكون قبل تاريخ الانتهاء.",rangeUnderflow:e=>`يجب أن تكون القيمة ${e.minValue} أو بعد ذلك.`,unavailableDate:"البيانات المحددة غير متاحة."};var nx={};nx={rangeOverflow:e=>`Стойността трябва да е ${e.maxValue} или по-ранна.`,rangeReversed:"Началната дата трябва да е преди крайната.",rangeUnderflow:e=>`Стойността трябва да е ${e.minValue} или по-късно.`,unavailableDate:"Избраната дата не е налична."};var rx={};rx={rangeOverflow:e=>`Hodnota musí být ${e.maxValue} nebo dřívější.`,rangeReversed:"Datum zahájení musí předcházet datu ukončení.",rangeUnderflow:e=>`Hodnota musí být ${e.minValue} nebo pozdější.`,unavailableDate:"Vybrané datum není k dispozici."};var ax={};ax={rangeOverflow:e=>`Værdien skal være ${e.maxValue} eller tidligere.`,rangeReversed:"Startdatoen skal være før slutdatoen.",rangeUnderflow:e=>`Værdien skal være ${e.minValue} eller nyere.`,unavailableDate:"Den valgte dato er ikke tilgængelig."};var ix={};ix={rangeOverflow:e=>`Der Wert muss ${e.maxValue} oder früher sein.`,rangeReversed:"Das Startdatum muss vor dem Enddatum liegen.",rangeUnderflow:e=>`Der Wert muss ${e.minValue} oder später sein.`,unavailableDate:"Das ausgewählte Datum ist nicht verfügbar."};var ox={};ox={rangeOverflow:e=>`Η τιμή πρέπει να είναι ${e.maxValue} ή παλαιότερη.`,rangeReversed:"Η ημερομηνία έναρξης πρέπει να είναι πριν από την ημερομηνία λήξης.",rangeUnderflow:e=>`Η τιμή πρέπει να είναι ${e.minValue} ή μεταγενέστερη.`,unavailableDate:"Η επιλεγμένη ημερομηνία δεν είναι διαθέσιμη."};var lx={};lx={rangeUnderflow:e=>`Value must be ${e.minValue} or later.`,rangeOverflow:e=>`Value must be ${e.maxValue} or earlier.`,rangeReversed:"Start date must be before end date.",unavailableDate:"Selected date unavailable."};var sx={};sx={rangeOverflow:e=>`El valor debe ser ${e.maxValue} o anterior.`,rangeReversed:"La fecha de inicio debe ser anterior a la fecha de finalización.",rangeUnderflow:e=>`El valor debe ser ${e.minValue} o posterior.`,unavailableDate:"Fecha seleccionada no disponible."};var ux={};ux={rangeOverflow:e=>`Väärtus peab olema ${e.maxValue} või varasem.`,rangeReversed:"Alguskuupäev peab olema enne lõppkuupäeva.",rangeUnderflow:e=>`Väärtus peab olema ${e.minValue} või hilisem.`,unavailableDate:"Valitud kuupäev pole saadaval."};var cx={};cx={rangeOverflow:e=>`Arvon on oltava ${e.maxValue} tai sitä aikaisempi.`,rangeReversed:"Aloituspäivän on oltava ennen lopetuspäivää.",rangeUnderflow:e=>`Arvon on oltava ${e.minValue} tai sitä myöhäisempi.`,unavailableDate:"Valittu päivämäärä ei ole käytettävissä."};var dx={};dx={rangeOverflow:e=>`La valeur doit être ${e.maxValue} ou antérieure.`,rangeReversed:"La date de début doit être antérieure à la date de fin.",rangeUnderflow:e=>`La valeur doit être ${e.minValue} ou ultérieure.`,unavailableDate:"La date sélectionnée n’est pas disponible."};var fx={};fx={rangeOverflow:e=>`הערך חייב להיות ${e.maxValue} או מוקדם יותר.`,rangeReversed:"תאריך ההתחלה חייב להיות לפני תאריך הסיום.",rangeUnderflow:e=>`הערך חייב להיות ${e.minValue} או מאוחר יותר.`,unavailableDate:"התאריך הנבחר אינו זמין."};var mx={};mx={rangeOverflow:e=>`Vrijednost mora biti ${e.maxValue} ili ranije.`,rangeReversed:"Datum početka mora biti prije datuma završetka.",rangeUnderflow:e=>`Vrijednost mora biti ${e.minValue} ili kasnije.`,unavailableDate:"Odabrani datum nije dostupan."};var px={};px={rangeOverflow:e=>`Az értéknek ${e.maxValue} vagy korábbinak kell lennie.`,rangeReversed:"A kezdő dátumnak a befejező dátumnál korábbinak kell lennie.",rangeUnderflow:e=>`Az értéknek ${e.minValue} vagy későbbinek kell lennie.`,unavailableDate:"A kiválasztott dátum nem érhető el."};var hx={};hx={rangeOverflow:e=>`Il valore deve essere ${e.maxValue} o precedente.`,rangeReversed:"La data di inizio deve essere antecedente alla data di fine.",rangeUnderflow:e=>`Il valore deve essere ${e.minValue} o successivo.`,unavailableDate:"Data selezionata non disponibile."};var yx={};yx={rangeOverflow:e=>`値は ${e.maxValue} 以下にする必要があります。`,rangeReversed:"開始日は終了日より前にする必要があります。",rangeUnderflow:e=>`値は ${e.minValue} 以上にする必要があります。`,unavailableDate:"選択した日付は使用できません。"};var gx={};gx={rangeOverflow:e=>`값은 ${e.maxValue} 이전이어야 합니다.`,rangeReversed:"시작일은 종료일 이전이어야 합니다.",rangeUnderflow:e=>`값은 ${e.minValue} 이후여야 합니다.`,unavailableDate:"선택한 날짜를 사용할 수 없습니다."};var bx={};bx={rangeOverflow:e=>`Reikšmė turi būti ${e.maxValue} arba ankstesnė.`,rangeReversed:"Pradžios data turi būti ankstesnė nei pabaigos data.",rangeUnderflow:e=>`Reikšmė turi būti ${e.minValue} arba naujesnė.`,unavailableDate:"Pasirinkta data nepasiekiama."};var vx={};vx={rangeOverflow:e=>`Vērtībai ir jābūt ${e.maxValue} vai agrākai.`,rangeReversed:"Sākuma datumam ir jābūt pirms beigu datuma.",rangeUnderflow:e=>`Vērtībai ir jābūt ${e.minValue} vai vēlākai.`,unavailableDate:"Atlasītais datums nav pieejams."};var _x={};_x={rangeOverflow:e=>`Verdien må være ${e.maxValue} eller tidligere.`,rangeReversed:"Startdatoen må være før sluttdatoen.",rangeUnderflow:e=>`Verdien må være ${e.minValue} eller senere.`,unavailableDate:"Valgt dato utilgjengelig."};var Ex={};Ex={rangeOverflow:e=>`Waarde moet ${e.maxValue} of eerder zijn.`,rangeReversed:"De startdatum moet voor de einddatum liggen.",rangeUnderflow:e=>`Waarde moet ${e.minValue} of later zijn.`,unavailableDate:"Geselecteerde datum niet beschikbaar."};var Sx={};Sx={rangeOverflow:e=>`Wartość musi mieć wartość ${e.maxValue} lub wcześniejszą.`,rangeReversed:"Data rozpoczęcia musi być wcześniejsza niż data zakończenia.",rangeUnderflow:e=>`Wartość musi mieć wartość ${e.minValue} lub późniejszą.`,unavailableDate:"Wybrana data jest niedostępna."};var $x={};$x={rangeOverflow:e=>`O valor deve ser ${e.maxValue} ou anterior.`,rangeReversed:"A data inicial deve ser anterior à data final.",rangeUnderflow:e=>`O valor deve ser ${e.minValue} ou posterior.`,unavailableDate:"Data selecionada indisponível."};var Dx={};Dx={rangeOverflow:e=>`O valor tem de ser ${e.maxValue} ou anterior.`,rangeReversed:"A data de início deve ser anterior à data de fim.",rangeUnderflow:e=>`O valor tem de ser ${e.minValue} ou posterior.`,unavailableDate:"Data selecionada indisponível."};var xx={};xx={rangeOverflow:e=>`Valoarea trebuie să fie ${e.maxValue} sau anterioară.`,rangeReversed:"Data de început trebuie să fie anterioară datei de sfârșit.",rangeUnderflow:e=>`Valoarea trebuie să fie ${e.minValue} sau ulterioară.`,unavailableDate:"Data selectată nu este disponibilă."};var Cx={};Cx={rangeOverflow:e=>`Значение должно быть не позже ${e.maxValue}.`,rangeReversed:"Дата начала должна предшествовать дате окончания.",rangeUnderflow:e=>`Значение должно быть не раньше ${e.minValue}.`,unavailableDate:"Выбранная дата недоступна."};var Ax={};Ax={rangeOverflow:e=>`Hodnota musí byť ${e.maxValue} alebo skoršia.`,rangeReversed:"Dátum začiatku musí byť skorší ako dátum konca.",rangeUnderflow:e=>`Hodnota musí byť ${e.minValue} alebo neskoršia.`,unavailableDate:"Vybratý dátum je nedostupný."};var wx={};wx={rangeOverflow:e=>`Vrednost mora biti ${e.maxValue} ali starejša.`,rangeReversed:"Začetni datum mora biti pred končnim datumom.",rangeUnderflow:e=>`Vrednost mora biti ${e.minValue} ali novejša.`,unavailableDate:"Izbrani datum ni na voljo."};var Tx={};Tx={rangeOverflow:e=>`Vrednost mora da bude ${e.maxValue} ili starija.`,rangeReversed:"Datum početka mora biti pre datuma završetka.",rangeUnderflow:e=>`Vrednost mora da bude ${e.minValue} ili novija.`,unavailableDate:"Izabrani datum nije dostupan."};var Nx={};Nx={rangeOverflow:e=>`Värdet måste vara ${e.maxValue} eller tidigare.`,rangeReversed:"Startdatumet måste vara före slutdatumet.",rangeUnderflow:e=>`Värdet måste vara ${e.minValue} eller senare.`,unavailableDate:"Det valda datumet är inte tillgängligt."};var Mx={};Mx={rangeOverflow:e=>`Değer, ${e.maxValue} veya öncesi olmalıdır.`,rangeReversed:"Başlangıç tarihi bitiş tarihinden önce olmalıdır.",rangeUnderflow:e=>`Değer, ${e.minValue} veya sonrası olmalıdır.`,unavailableDate:"Seçilen tarih kullanılamıyor."};var Rx={};Rx={rangeOverflow:e=>`Значення має бути не пізніше ${e.maxValue}.`,rangeReversed:"Дата початку має передувати даті завершення.",rangeUnderflow:e=>`Значення має бути не раніше ${e.minValue}.`,unavailableDate:"Вибрана дата недоступна."};var Ox={};Ox={rangeOverflow:e=>`值必须是 ${e.maxValue} 或更早日期。`,rangeReversed:"开始日期必须早于结束日期。",rangeUnderflow:e=>`值必须是 ${e.minValue} 或更晚日期。`,unavailableDate:"所选日期不可用。"};var kx={};kx={rangeOverflow:e=>`值必須是 ${e.maxValue} 或更早。`,rangeReversed:"開始日期必須在結束日期之前。",rangeUnderflow:e=>`值必須是 ${e.minValue} 或更晚。`,unavailableDate:"所選日期無法使用。"};var Bx={};Bx={"ar-AE":tx,"bg-BG":nx,"cs-CZ":rx,"da-DK":ax,"de-DE":ix,"el-GR":ox,"en-US":lx,"es-ES":sx,"et-EE":ux,"fi-FI":cx,"fr-FR":dx,"he-IL":fx,"hr-HR":mx,"hu-HU":px,"it-IT":hx,"ja-JP":yx,"ko-KR":gx,"lt-LT":bx,"lv-LV":vx,"nb-NO":_x,"nl-NL":Ex,"pl-PL":Sx,"pt-BR":$x,"pt-PT":Dx,"ro-RO":xx,"ru-RU":Cx,"sk-SK":Ax,"sl-SI":wx,"sr-SP":Tx,"sv-SE":Nx,"tr-TR":Mx,"uk-UA":Rx,"zh-CN":Ox,"zh-TW":kx};function pO(e){return e&&e.__esModule?e.default:e}const hO=new Ki(pO(Bx));function yO(){let e=typeof navigator<"u"&&(navigator.language||navigator.userLanguage)||"en-US";try{Intl.DateTimeFormat.supportedLocalesOf([e])}catch{e="en-US"}return e}function Lx(e,t,n,i,o){let s=e!=null&&n!=null&&e.compare(n)>0,c=e!=null&&t!=null&&e.compare(t)<0,d=e!=null&&i?.(e)||!1,m=s||c||d,h=[];if(m){let y=yO(),g=Ki.getGlobalDictionaryForPackage("@react-stately/datepicker")||hO,E=new sS(y,g),S=new ra(y,Qo({},o)),$=S.resolvedOptions().timeZone;c&&t!=null&&h.push(E.format("rangeUnderflow",{minValue:S.format(t.toDate($))})),s&&n!=null&&h.push(E.format("rangeOverflow",{maxValue:S.format(n.toDate($))})),d&&h.push(E.format("unavailableDate"))}return{isInvalid:m,validationErrors:h,validationDetails:{badInput:d,customError:!1,patternMismatch:!1,rangeOverflow:s,rangeUnderflow:c,stepMismatch:!1,tooLong:!1,tooShort:!1,typeMismatch:!1,valueMissing:!1,valid:!m}}}const gO={year:"numeric",month:"numeric",day:"numeric",hour:"numeric",minute:"2-digit",second:"2-digit"},bO={year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit",second:"2-digit"};function Qo(e,t){e={...t.shouldForceLeadingZeros?bO:gO,...e};let i=t.granularity||"minute",o=Object.keys(e),s=o.indexOf(t.maxGranularity??"year");s<0&&(s=0);let c=o.indexOf(i);if(c<0&&(c=2),s>c)throw new Error("maxGranularity must be greater than granularity");let d=o.slice(s,c+1).reduce((h,y)=>(h[y]=e[y],h),{});return t.hourCycle!=null&&(d.hour12=t.hourCycle===12),d.timeZone=t.timeZone||"UTC",(i==="hour"||i==="minute"||i==="second")&&t.timeZone&&!t.hideTimeZone&&(d.timeZoneName="short"),t.showEra&&s===0&&(d.era="short"),d}function R1(e){return e&&"hour"in e?e:new ay}function Px(e,t){if(e===null)return null;if(e)return Et(e,t)}function vO(e,t,n,i){if(e)return Px(e,n);let o=Et(i$(i??Zd()).set({hour:0,minute:0,second:0,millisecond:0}),n);return t==="year"||t==="month"||t==="day"?mn(o):i?o:oa(o)}function Fx(e,t){let n=e&&"timeZone"in e?e.timeZone:void 0,i=e&&"minute"in e?"minute":"day";if(e&&t&&!(t in e))throw new Error("Invalid granularity "+t+" for value "+e.toString());let[o,s]=b.useState([i,n]);e&&(o[0]!==i||o[1]!==n)&&s([i,n]),t||(t=e?i:o[0]);let c=e?n:o[1];return[t,c]}const _O=new Ki({ach:{year:"mwaka",month:"dwe",day:"nino"},af:{year:"jjjj",month:"mm",day:"dd"},am:{year:"ዓዓዓዓ",month:"ሚሜ",day:"ቀቀ"},an:{year:"aaaa",month:"mm",day:"dd"},ar:{year:"سنة",month:"شهر",day:"يوم"},ast:{year:"aaaa",month:"mm",day:"dd"},az:{year:"iiii",month:"aa",day:"gg"},be:{year:"гггг",month:"мм",day:"дд"},bg:{year:"гггг",month:"мм",day:"дд"},bn:{year:"yyyy",month:"মিমি",day:"dd"},br:{year:"bbbb",month:"mm",day:"dd"},bs:{year:"gggg",month:"mm",day:"dd"},ca:{year:"aaaa",month:"mm",day:"dd"},cak:{year:"jjjj",month:"ii",day:"q'q'"},ckb:{year:"ساڵ",month:"مانگ",day:"ڕۆژ"},cs:{year:"rrrr",month:"mm",day:"dd"},cy:{year:"bbbb",month:"mm",day:"dd"},da:{year:"åååå",month:"mm",day:"dd"},de:{year:"jjjj",month:"mm",day:"tt"},dsb:{year:"llll",month:"mm",day:"źź"},el:{year:"εεεε",month:"μμ",day:"ηη"},en:{year:"yyyy",month:"mm",day:"dd"},eo:{year:"jjjj",month:"mm",day:"tt"},es:{year:"aaaa",month:"mm",day:"dd"},et:{year:"aaaa",month:"kk",day:"pp"},eu:{year:"uuuu",month:"hh",day:"ee"},fa:{year:"سال",month:"ماه",day:"روز"},ff:{year:"hhhh",month:"ll",day:"ññ"},fi:{year:"vvvv",month:"kk",day:"pp"},fr:{year:"aaaa",month:"mm",day:"jj"},fy:{year:"jjjj",month:"mm",day:"dd"},ga:{year:"bbbb",month:"mm",day:"ll"},gd:{year:"bbbb",month:"mm",day:"ll"},gl:{year:"aaaa",month:"mm",day:"dd"},he:{year:"שנה",month:"חודש",day:"יום"},hr:{year:"gggg",month:"mm",day:"dd"},hsb:{year:"llll",month:"mm",day:"dd"},hu:{year:"éééé",month:"hh",day:"nn"},ia:{year:"aaaa",month:"mm",day:"dd"},id:{year:"tttt",month:"bb",day:"hh"},is:{year:"áááá",month:"mm",day:"dd"},it:{year:"aaaa",month:"mm",day:"gg"},ja:{year:"年",month:"月",day:"日"},ka:{year:"წწწწ",month:"თთ",day:"რრ"},kk:{year:"жжжж",month:"аа",day:"кк"},kn:{year:"ವವವವ",month:"ಮಿಮೀ",day:"ದಿದಿ"},ko:{year:"연도",month:"월",day:"일"},lb:{year:"jjjj",month:"mm",day:"dd"},lo:{year:"ປປປປ",month:"ດດ",day:"ວວ"},lt:{year:"mmmm",month:"mm",day:"dd"},lv:{year:"gggg",month:"mm",day:"dd"},meh:{year:"aaaa",month:"mm",day:"dd"},ml:{year:"വർഷം",month:"മാസം",day:"തീയതി"},ms:{year:"tttt",month:"mm",day:"hh"},nb:{year:"åååå",month:"mm",day:"dd"},nl:{year:"jjjj",month:"mm",day:"dd"},nn:{year:"åååå",month:"mm",day:"dd"},no:{year:"åååå",month:"mm",day:"dd"},oc:{year:"aaaa",month:"mm",day:"jj"},pl:{year:"rrrr",month:"mm",day:"dd"},pt:{year:"aaaa",month:"mm",day:"dd"},rm:{year:"oooo",month:"mm",day:"dd"},ro:{year:"aaaa",month:"ll",day:"zz"},ru:{year:"гггг",month:"мм",day:"дд"},sc:{year:"aaaa",month:"mm",day:"dd"},scn:{year:"aaaa",month:"mm",day:"jj"},sk:{year:"rrrr",month:"mm",day:"dd"},sl:{year:"llll",month:"mm",day:"dd"},sr:{year:"гггг",month:"мм",day:"дд"},"sr-Latn":{year:"gggg",month:"mm",day:"dd"},sv:{year:"åååå",month:"mm",day:"dd"},szl:{year:"rrrr",month:"mm",day:"dd"},tg:{year:"сссс",month:"мм",day:"рр"},th:{year:"ปปปป",month:"ดด",day:"วว"},tr:{year:"yyyy",month:"aa",day:"gg"},uk:{year:"рррр",month:"мм",day:"дд"},"zh-CN":{year:"年",month:"月",day:"日"},"zh-TW":{year:"年",month:"月",day:"日"}},"en");function EO(e,t,n){return e==="era"||e==="dayPeriod"?t:e==="year"||e==="month"||e==="day"?_O.getStringForLocale(e,n):"––"}class Dr{constructor(t,n,i){if(this.era=i?.era??null,this.calendar=t,this.year=i?.year??null,this.month=i?.month??null,this.day=i?.day??null,this.hour=i?.hour??null,this.hourCycle=n,this.dayPeriod=null,this.minute=i?.minute??null,this.second=i?.second??null,this.millisecond=i?.millisecond??null,this.offset="offset"in(i??{})?i.offset:null,this.hour!=null){let[o,s]=Fo(this.hour,n);this.dayPeriod=o,this.hour=s}}copy(){let t=new Dr(this.calendar,this.hourCycle);return t.era=this.era,t.year=this.year,t.month=this.month,t.day=this.day,t.hour=this.hour,t.dayPeriod=this.dayPeriod,t.minute=this.minute,t.second=this.second,t.millisecond=this.millisecond,t.offset=this.offset,t}isComplete(t){return t.every(n=>this[n]!=null)}validate(t,n){return n.every(i=>{if((i==="hour"||i==="dayPeriod")&&"hour"in t){let[o,s]=Fo(t.hour,this.hourCycle);return this.dayPeriod===o&&this.hour===s}return this[i]===t[i]})}isCleared(t){return t.every(n=>this[n]===null)}set(t,n,i){let o=this.copy();return o[t]=n,t==="hour"&&o.dayPeriod==null&&"hour"in i&&(o.dayPeriod=Fo(i.hour,this.hourCycle)[0]),t==="year"&&o.era==null&&(o.era=i.era),t!=="second"&&t!=="literal"&&t!=="timeZoneName"&&(o.offset=null),o}clear(t){let n=this.copy();return n[t]=null,t==="year"&&(n.era=null),n.offset=null,n}cycle(t,n,i,o){let s=this.copy();if(s[t]==null&&t!=="dayPeriod"&&t!=="era"){if(t==="hour"&&"hour"in i){let[c,d]=Fo(i.hour,this.hourCycle);s.dayPeriod=c,s.hour=d}else s[t]=i[t];return t==="year"&&s.era==null&&(s.era=i.era),s}switch(t){case"era":{let c=this.calendar.getEras(),d=c.indexOf(s.era);d=$i(d,n,0,c.length-1),s.era=c[d];break}case"year":{let c=new Ot(this.calendar,this.era??i.era,this.year??i.year,this.month??1,this.day??1);c=c.cycle(t,n,{round:t==="year"}),s.era=c.era,s.year=c.year;break}case"month":s.month=$i(s.month??1,n,1,this.calendar.getMaximumMonthsInYear());break;case"day":s.day=$i(s.day??1,n,1,this.calendar.getMaximumDaysInMonth());break;case"hour":{let c=o.some(d=>["year","month","day"].includes(d));if("timeZone"in i&&(!c||s.year!=null&&s.month!=null&&s.day!=null)){let d=this.toValue(i);d=d.cycle("hour",n,{hourCycle:this.hourCycle==="h12"?12:24,round:!1});let[m,h]=Fo(d.hour,this.hourCycle);s.hour=h,s.dayPeriod=m,s.offset=d.offset}else{let d=s.hour??0,m=this.getSegmentLimits("hour");s.hour=$i(d,n,m.minValue,m.maxValue),s.dayPeriod==null&&"hour"in i&&(s.dayPeriod=Fo(i.hour,this.hourCycle)[0])}break}case"dayPeriod":s.dayPeriod=$i(s.dayPeriod??0,n,0,1);break;case"minute":s.minute=$i(s.minute??0,n,0,59,!0);break;case"second":s.second=$i(s.second??0,n,0,59,!0);break}return s}toValue(t){if("hour"in t){let n=this.hour;n!=null?n=SO(n,this.dayPeriod??0,this.hourCycle):(this.hourCycle==="h12"||this.hourCycle==="h11")&&(n=this.dayPeriod===1?12:0);let i=t.set({era:this.era??t.era,year:this.year??t.year,month:this.month??t.month,day:this.day??t.day,hour:n??t.hour,minute:this.minute??t.minute,second:this.second??t.second,millisecond:this.millisecond??t.millisecond});return"offset"in i&&this.offset!=null&&i.offset!==this.offset&&(i=i.add({milliseconds:i.offset-this.offset})),i}else return t.set({era:this.era??t.era,year:this.year??t.year,month:this.month??t.month,day:this.day??t.day})}getSegmentLimits(t){switch(t){case"era":{let n=this.calendar.getEras();return{value:this.era!=null?n.indexOf(this.era):n.length-1,minValue:0,maxValue:n.length-1}}case"year":return{value:this.year,minValue:1,maxValue:9999};case"month":return{value:this.month,minValue:1,maxValue:this.calendar.getMaximumMonthsInYear()};case"day":return{value:this.day,minValue:1,maxValue:this.calendar.getMaximumDaysInMonth()};case"dayPeriod":return{value:this.dayPeriod,minValue:0,maxValue:1};case"hour":{let n=0,i=23;return this.hourCycle==="h12"?(n=1,i=12):this.hourCycle==="h11"&&(n=0,i=11),{value:this.hour,minValue:n,maxValue:i}}case"minute":return{value:this.minute,minValue:0,maxValue:59};case"second":return{value:this.second,minValue:0,maxValue:59}}}}function $i(e,t,n,i,o=!1){if(o){e+=Math.sign(t),e<n&&(e=i);let s=Math.abs(t);t>0?e=Math.ceil(e/s)*s:e=Math.floor(e/s)*s,e>i&&(e=n)}else e+=t,e<n?e=i-(n-e-1):e>i&&(e=n+(e-i-1));return e}function Fo(e,t){let n=e>=12?1:0;switch(t){case"h11":e>=12&&(e-=12);break;case"h12":e===0?e=12:e>12&&(e-=12);break;case"h23":n=null;break;case"h24":e+=1,n=null}return[n,e]}function SO(e,t,n){switch(n){case"h11":t===1&&(e+=12);break;case"h12":e===12&&(e=0),t===1&&(e+=12);break;case"h24":e-=1;break}return e}const ah={year:!0,month:!0,day:!0,hour:!0,minute:!0,second:!0,dayPeriod:!0,era:!0},O1={year:5,month:2,day:7,hour:2,minute:15,second:15},$O={dayperiod:"dayPeriod",relatedYear:"year",yearName:"literal",unknown:"literal"};function DO(e){let{locale:t,createCalendar:n,hideTimeZone:i,isDisabled:o=!1,isReadOnly:s=!1,isRequired:c=!1,minValue:d,maxValue:m,isDateUnavailable:h}=e,y=e.value||e.defaultValue||e.placeholderValue||null,[g,E]=Fx(y,e.granularity),S=E||"UTC";if(y&&!(g in y))throw new Error("Invalid granularity "+g+" for value "+y.toString());let[$,x]=b.useMemo(()=>{let N=new ra(t,{dateStyle:"short",timeStyle:"short",hour12:e.hourCycle!=null?e.hourCycle===12:void 0}).resolvedOptions();return[n(N.calendar),N.hourCycle]},[t,e.hourCycle,n]),[w,R]=ws(e.value,e.defaultValue??null,e.onChange),[F]=b.useState(w),A=b.useMemo(()=>Px(w,$)??null,[w,$]),[L,M]=b.useState(()=>new Dr($,x,A)),Z=$.identifier==="gregory"&&L.era==="BC",V=b.useMemo(()=>({granularity:g,maxGranularity:e.maxGranularity??"year",timeZone:E,hideTimeZone:i,hourCycle:e.hourCycle,showEra:Z,shouldForceLeadingZeros:e.shouldForceLeadingZeros}),[e.maxGranularity,g,e.hourCycle,e.shouldForceLeadingZeros,E,i,Z]),fe=b.useMemo(()=>Qo({},V),[V]),ne=b.useMemo(()=>new ra(t,fe),[t,fe]),pe=b.useMemo(()=>ne.resolvedOptions(),[ne]),J=b.useMemo(()=>vO(e.placeholderValue,g,$,E),[e.placeholderValue,g,$,E]),ye=b.useMemo(()=>{let T=x==="h11"||x==="h12",N=["era","year","month","day","hour",...T?["dayPeriod"]:[],"minute","second"],ie=N.indexOf(e.maxGranularity||"era"),ge=N.indexOf(g==="hour"&&T?"dayPeriod":g);return N.slice(ie,ge+1)},[e.maxGranularity,g,x]),[Ae,j]=b.useState(A),[de,O]=b.useState($),[B,X]=b.useState(x);(A!==Ae||x!==B||!Gd($,de))&&(L=new Dr($,x,A),j(A),O($),X(x),M(L));let I=T=>{if(!(e.isDisabled||e.isReadOnly))if(T==null||T instanceof Dr&&T.isCleared(ye))M(new Dr($,x,A)),R(null);else if(!(T instanceof Dr))T=Et(T,y?.calendar||new pn),M(new Dr($,x,A)),R(T);else{if(T.isComplete(ye)){let N=T.toValue(A??J);if(T.validate(N,ye)){let ie=Et(N,y?.calendar||new pn);if(!w||ie.compare(w)!==0){M(new Dr($,x,A)),R(ie);return}}}M(T)}},G=b.useMemo(()=>L.toValue(A??J).toDate(S),[L,S,A,J]),C=b.useMemo(()=>xO(G,L,ne,pe,$,t,g),[G,ne,pe,L,$,t,g]),U=(T,N)=>{I(L.cycle(T,N,J,ye))},W=b.useMemo(()=>Lx(w,d,m,h,V),[w,d,m,h,V]),Y=V$({...e,value:w,builtinValidation:W}),te=Y.displayValidation.isInvalid,z=e.validationState||(te?"invalid":null);return{...Y,value:A,defaultValue:e.defaultValue??F,dateValue:G,calendar:$,setValue:I,segments:C,dateFormatter:ne,validationState:z,isInvalid:te,granularity:g,maxGranularity:e.maxGranularity??"year",isDisabled:o,isReadOnly:s,isRequired:c,increment(T){U(T,1)},decrement(T){U(T,-1)},incrementPage(T){U(T,O1[T]||1)},decrementPage(T){U(T,-(O1[T]||1))},incrementToMax(T){let N=T==="hour"&&x==="h12"?11:L.getSegmentLimits(T).maxValue;I(L.set(T,N,J))},decrementToMin(T){let N=T==="hour"&&x==="h12"?12:L.getSegmentLimits(T).minValue;I(L.set(T,N,J))},setSegment(T,N){I(L.set(T,N,J))},confirmPlaceholder(){if(!(e.isDisabled||e.isReadOnly)&&L.isComplete(ye)){let T=L.toValue(A??J),N=Et(T,y?.calendar||new pn);(!w||N.compare(w)!==0)&&R(N),M(new Dr($,x,A))}},clearSegment(T){let N=L;T!=="timeZoneName"&&T!=="literal"&&(N=L.clear(T)),I(N)},formatValue(T){if(!A)return"";let N=Qo(T,V);return new ra(t,N).format(G)},getDateFormatter(T,N){let ie={...V,...N},ge=Qo({},ie);return new ra(T,ge)}}}function xO(e,t,n,i,o,s,c){let d=["hour","minute","second"],m=n.formatToParts(e),h=new Vh(s,{useGrouping:!1}),y=new Vh(s,{useGrouping:!1,minimumIntegerDigits:2});for(let E of m)if(E.type==="year"||E.type==="month"||E.type==="day"||E.type==="hour"){let S=t[E.type]??0;i[E.type]==="2-digit"?E.value=y.format(S):E.value=h.format(S)}let g=[];for(let E of m){let S=$O[E.type]||E.type,$=ah[S];S==="era"&&o.getEras().length===1&&($=!1);let x=ah[S]&&t[E.type]==null,w=ah[S]?EO(S,E.value,s):null,R={type:S,text:x?w:E.value,...t.getSegmentLimits(S),isPlaceholder:x,placeholder:w,isEditable:$};S==="hour"?(g.push({type:"literal",text:"",isPlaceholder:!1,placeholder:"",isEditable:!1}),g.push(R),S===c&&g.push({type:"literal",text:"",isPlaceholder:!1,placeholder:"",isEditable:!1})):d.includes(S)&&S===c?(g.push(R),g.push({type:"literal",text:"",isPlaceholder:!1,placeholder:"",isEditable:!1})):g.push(R)}return g}const Ix=b.createContext(null),Xd=b.createContext(null),my=b.createContext(null),CO=b.forwardRef(function(t,n){let i=b.useContext(Xd),o=b.useContext(my);return i||o?ve.createElement(jx,{...t,ref:n}):ve.createElement(AO,{...t,ref:n})}),AO=b.forwardRef((e,t)=>{let[n,i]=sa({slot:e.slot},t,Ix),{locale:o}=sn(),s=DO({...n,locale:o,createCalendar:k$}),c=b.useRef(null),{fieldProps:d,inputProps:m}=sO({...n,inputRef:c},s,i);return ve.createElement(Id,{values:[[Xd,s],[Y$,{...m,ref:c}],[Wd,{...d,ref:i,isInvalid:s.isInvalid,isDisabled:s.isDisabled}]]},ve.createElement(jx,e))}),jx=b.forwardRef((e,t)=>{let{className:n,children:i}=e,o=b.useContext(Xd),s=b.useContext(my),c=o??s;return ve.createElement(ve.Fragment,null,ve.createElement(Z$,{...e,ref:t,slot:e.slot||void 0,className:n??"react-aria-DateInput",isReadOnly:c.isReadOnly,isInvalid:c.isInvalid,isDisabled:c.isDisabled},c.segments.map((d,m)=>b.cloneElement(i(d),{key:m}))),ve.createElement(oR,{className:""}))}),wO=b.forwardRef(function({segment:t,...n},i){let o=b.useContext(Xd),s=b.useContext(my),c=o??s,d=YE(i),{segmentProps:m}=fO(t,c,d),{focusProps:h,isFocused:y,isFocusVisible:g}=cl(),{hoverProps:E,isHovered:S}=qs({...n,isDisabled:c.isDisabled||t.type==="literal"}),$=la({...n,values:{...t,isReadOnly:c.isReadOnly,isInvalid:c.isInvalid,isDisabled:c.isDisabled,isHovered:S,isFocused:y,isFocusVisible:g},defaultChildren:t.text,defaultClassName:"react-aria-DateSegment"});return ve.createElement(wn.span,{...pt(un(n,{global:!0}),m,h,E),...$,style:m.style,ref:d,"data-placeholder":t.isPlaceholder||void 0,"data-invalid":c.isInvalid||void 0,"data-readonly":c.isReadOnly||void 0,"data-disabled":c.isDisabled||void 0,"data-type":t.type,"data-hovered":S||void 0,"data-focused":y||void 0,"data-focus-visible":g||void 0})});function TO(e){return e&&e.__esModule?e.default:e}function NO(e,t,n){let i=Ar(),o=Ar(),s=Ar(),c=Xa(TO(Jd),"@react-aria/datepicker"),{isInvalid:d,validationErrors:m,validationDetails:h}=t.displayValidation,{labelProps:y,fieldProps:g,descriptionProps:E,errorMessageProps:S}=G$({...e,labelElementType:"span",isInvalid:d,errorMessage:e.errorMessage||m}),$=X2(t,n),x=g["aria-labelledby"]||g.id,{locale:w}=sn(),R=t.formatValue(w,{month:"long"}),F=R?c.format("selectedDateDescription",{date:R}):"",A=uy(F),L=[A["aria-describedby"],g["aria-describedby"]].filter(Boolean).join(" ")||void 0,M=un(e),Z=b.useMemo(()=>cy(n),[n]),V=b.useRef(!1),{focusWithinProps:fe}=Ys({...e,isDisabled:t.isOpen,onBlurWithin:ne=>{let pe=document.getElementById(o);ot(pe,ne.relatedTarget)||(V.current=!1,e.onBlur?.(ne),e.onFocusChange?.(!1))},onFocusWithin:ne=>{V.current||(V.current=!0,e.onFocus?.(ne),e.onFocusChange?.(!0))}});return{groupProps:pt(M,$,g,A,fe,{role:"group","aria-disabled":e.isDisabled||null,"aria-labelledby":x,"aria-describedby":L,onKeyDown(ne){t.isOpen||e.onKeyDown&&e.onKeyDown(ne)},onKeyUp(ne){t.isOpen||e.onKeyUp&&e.onKeyUp(ne)}}),labelProps:{...y,onClick:()=>{Z.focusFirst()}},fieldProps:{...g,id:s,[qc]:"presentation","aria-describedby":L,value:t.value,defaultValue:t.defaultValue,onChange:t.setValue,placeholderValue:e.placeholderValue,hideTimeZone:e.hideTimeZone,hourCycle:e.hourCycle,shouldForceLeadingZeros:e.shouldForceLeadingZeros,granularity:e.granularity,isDisabled:e.isDisabled,isReadOnly:e.isReadOnly,isRequired:e.isRequired,validationBehavior:e.validationBehavior,[r0]:t,autoFocus:e.autoFocus,name:e.name,form:e.form},descriptionProps:E,errorMessageProps:S,buttonProps:{...A,id:i,"aria-haspopup":"dialog","aria-label":c.format("calendar"),"aria-labelledby":`${i} ${x}`,"aria-describedby":L,"aria-expanded":t.isOpen,isDisabled:e.isDisabled||e.isReadOnly,onPress:()=>t.setOpen(!0)},dialogProps:{id:o,"aria-labelledby":`${i} ${x}`},calendarProps:{autoFocus:!0,value:t.dateValue,onChange:t.setDateValue,minValue:e.minValue,maxValue:e.maxValue,isDisabled:e.isDisabled,isReadOnly:e.isReadOnly,isDateUnavailable:e.isDateUnavailable,defaultFocusedValue:t.dateValue?void 0:e.placeholderValue,isInvalid:t.isInvalid,errorMessage:typeof e.errorMessage=="function"?e.errorMessage(t.displayValidation):e.errorMessage||t.displayValidation.validationErrors.join(" "),firstDayOfWeek:e.firstDayOfWeek,pageBehavior:e.pageBehavior},isInvalid:d,validationErrors:m,validationDetails:h}}function MO(e){let t=h2(e),[n,i]=ws(e.value,e.defaultValue||null,e.onChange),[o]=b.useState(n),s=n||e.placeholderValue||null,[c,d]=Fx(s,e.granularity),m=n!=null?n.toDate(d??"UTC"):null,h=c==="hour"||c==="minute"||c==="second",y=e.shouldCloseOnSelect??!0,[g,E]=b.useState(null),[S,$]=b.useState(null);if(n&&(g=n,"hour"in n&&(S=n)),s&&!(c in s))throw new Error("Invalid granularity "+c+" for value "+s.toString());let x=n?.calendar.identifier==="gregory"&&n.era==="BC",w=b.useMemo(()=>({granularity:c,timeZone:d,hideTimeZone:e.hideTimeZone,hourCycle:e.hourCycle,shouldForceLeadingZeros:e.shouldForceLeadingZeros,showEra:x}),[c,e.hourCycle,e.shouldForceLeadingZeros,d,e.hideTimeZone,x]),{minValue:R,maxValue:F,isDateUnavailable:A}=e,L=b.useMemo(()=>Lx(n,R,F,A,w),[n,R,F,A,w]),M=V$({...e,value:n,builtinValidation:L}),Z=M.displayValidation.isInvalid,V=e.validationState||(Z?"invalid":null),fe=(J,ye)=>{i("timeZone"in ye?ye.set(mn(J)):oa(J,ye)),E(null),$(null),M.commitValidation()},ne=J=>{let ye=typeof y=="function"?y():y;h?S||ye?fe(J,S||R1(e.defaultValue||e.placeholderValue)):E(J):(i(J),M.commitValidation()),ye&&t.setOpen(!1)},pe=J=>{g&&J?fe(g,J):$(J)};return{...M,value:n,defaultValue:e.defaultValue??o,setValue:i,dateValue:g,timeValue:S,setDateValue:ne,setTimeValue:pe,granularity:c,hasTime:h,...t,setOpen(J){!J&&!n&&g&&h&&fe(g,S||R1(e.defaultValue||e.placeholderValue)),t.setOpen(J)},validationState:V,isInvalid:Z,formatValue(J,ye){if(!m)return"";let Ae=Qo(ye,w);return new ra(J,Ae).format(m)},getDateFormatter(J,ye){let Ae={...w,...ye},j=Qo({},Ae);return new ra(J,j)}}}const RO=b.createContext(null),OO=b.createContext(null),kO=[Wd,Ks,bS,W0],BO=b.forwardRef(function(t,n){[t,n]=sa(t,n,RO);let{validationBehavior:i}=od(XM)||{},o=t.validationBehavior??i??"native",s=MO({...t,validationBehavior:o}),c=b.useRef(null),[d,m]=pN(!t["aria-label"]&&!t["aria-labelledby"]),{groupProps:h,labelProps:y,fieldProps:g,buttonProps:E,dialogProps:S,calendarProps:$,descriptionProps:x,errorMessageProps:w,...R}=NO({...hN(t),label:m,validationBehavior:o},s,c),{focusProps:F,isFocused:A,isFocusVisible:L}=cl({within:!0}),M=la({...t,values:{state:s,isFocusWithin:A,isFocusVisible:L,isDisabled:t.isDisabled||!1,isInvalid:s.isInvalid,isOpen:s.isOpen,isReadOnly:t.isReadOnly||!1,isRequired:t.isRequired||!1},defaultClassName:"react-aria-DatePicker"}),Z=un(t,{global:!0});return delete Z.id,ve.createElement(Id,{values:[[OO,s],[Wd,{...h,ref:c,isInvalid:s.isInvalid}],[Ix,g],[Ks,{...E,isPressed:s.isOpen}],[bS,{...y,ref:d,elementType:"span"}],[yd,$],[fy,s],[g2,{trigger:"DatePicker",triggerRef:c,placement:"bottom start",clearContexts:kO}],[b2,S],[W0,{slots:{description:x,errorMessage:w}}],[KM,R]]},ve.createElement(wn.div,{...pt(Z,M,F),ref:n,slot:t.slot||void 0,"data-focus-within":A||void 0,"data-invalid":s.isInvalid||void 0,"data-focus-visible":L||void 0,"data-disabled":t.isDisabled||void 0,"data-readonly":t.isReadOnly||void 0,"data-required":t.isRequired||void 0,"data-open":s.isOpen||void 0}),ve.createElement(iO,{autoComplete:t.autoComplete,name:t.name,isDisabled:t.isDisabled,state:s}))});function ih(e){if(typeof e!="string"||e.trim()==="")return null;try{return S$(e)}catch{return null}}function LO(e){return{currentTarget:{value:e},target:{value:e}}}function k1({label:e,value:t,items:n,onChange:i,className:o}){return v.jsx("select",{className:`date-picker-select ${o??""}`,"aria-label":e,value:String(t),onChange:s=>i(Number(s.currentTarget.value)),children:n.map(s=>v.jsx("option",{value:s.id,children:s.formatted},s.id))})}function PO({id:e,label:t,hint:n,error:i,required:o,className:s,min:c,max:d,disabled:m,onChange:h,onFocus:y,onBlur:g,value:E,autoComplete:S,...$}){const x=b.useRef(null),w=ih(E),R=ih(c),F=ih(d),A=[n?`${e}-hint`:null,i?`${e}-error`:null].filter(Boolean).join(" ")||void 0,L=`${e}-label`,M=e.replace(/[^a-zA-Z0-9_-]+/g,"-").replace(/^-+|-+$/g,"").toLowerCase(),Z=["form-field",M?`form-field--${M}`:null,s].filter(Boolean).join(" ");return v.jsxs("div",{className:Z,"data-field-id":e,children:[v.jsxs("span",{id:L,className:"form-label form-field__label",children:[t,o&&v.jsxs(v.Fragment,{children:[v.jsxs("span",{className:"text-red-600","aria-hidden":"true",children:[" ","*"]}),v.jsx("span",{className:"sr-only",children:" required"})]})]}),v.jsxs(BO,{className:"date-picker",value:w,minValue:R??void 0,maxValue:F??void 0,isDisabled:m,isRequired:o,isInvalid:!!i,autoComplete:S,"aria-labelledby":L,"aria-describedby":A,onFocus:V=>y?.(V),onBlur:V=>g?.(V),onChange:V=>h?.(LO(V?V.toString():"")),children:[v.jsxs(Z$,{className:`date-picker-group form-input ${i?"input-error":""}`,"data-input-id":e,"aria-describedby":A,"aria-invalid":!!i,"aria-labelledby":L,onClick:V=>{!m&&!V.target.closest("button")&&x.current?.click()},children:[v.jsx(CO,{className:"date-picker-input",children:V=>v.jsx(wO,{className:"date-picker-segment",segment:V})}),v.jsx(jp,{ref:x,className:"date-picker-button","aria-label":`Open calendar for ${t}`,type:"button",children:v.jsx("span",{"aria-hidden":"true",children:"▾"})})]}),v.jsx("input",{id:`${e}-value`,type:"hidden",value:E??"",disabled:m,...$,readOnly:!0}),v.jsx(QR,{className:"date-picker-popover",placement:"bottom start",offset:6,shouldFlip:!0,children:v.jsx(eO,{className:"date-picker-dialog",children:v.jsxs(zM,{className:"date-picker-calendar",children:[v.jsxs("header",{className:"date-picker-calendar-header",children:[v.jsx(jp,{className:"date-picker-nav-button",slot:"previous",type:"button",children:"‹"}),v.jsxs("div",{className:"date-picker-selects",children:[v.jsx(qM,{format:"long",children:({"aria-label":V,value:fe,items:ne,onChange:pe})=>v.jsx(k1,{label:V,value:fe,items:ne,onChange:pe,className:"date-picker-select--month"})}),v.jsx(YM,{visibleYears:120,children:({"aria-label":V,value:fe,items:ne,onChange:pe})=>v.jsx(k1,{label:V,value:fe,items:ne,onChange:pe,className:"date-picker-select--year"})}),v.jsx(N8,{className:"sr-only"})]}),v.jsx(jp,{className:"date-picker-nav-button",slot:"next",type:"button",children:"›"})]}),v.jsxs(UM,{className:"date-picker-grid",children:[v.jsx(I$,{children:V=>v.jsx(j$,{className:"date-picker-header-cell",children:V})}),v.jsx(z$,{children:V=>v.jsx(ZM,{className:"date-picker-cell",date:V})})]})]})})})]}),n&&v.jsx("p",{id:`${e}-hint`,className:"form-field__hint mt-1 text-sm text-slate-500",children:n}),i&&v.jsx("p",{id:`${e}-error`,className:"form-field__error mt-1 text-sm text-red-600",children:i})]})}function ji({id:e,label:t,className:n,...i}){return v.jsxs("label",{className:`checkbox-card ${n||""}`,htmlFor:e,children:[v.jsx("input",{id:e,type:"checkbox",className:"checkbox-input",...i}),v.jsx("span",{className:"checkbox-label",children:t})]})}function FO({onChoose:e,isSubmitting:t=!1}){const[n,i]=b.useState(!1),o=!n||t;return v.jsxs("div",{className:"communications-consent","data-testid":"communications-consent",children:[v.jsx("h3",{className:"text-lg font-semibold text-text-primary mb-3",children:"Communications Consent"}),v.jsx(ji,{id:"communications-consent-checkbox",className:"communications-consent-checkbox",checked:n,onChange:s=>i(s.target.checked),disabled:t,label:"I consent to communications from Credify Corporation (licensed insurance agency) and my selected carrier(s) at the phone number and email address I provided. This covers: support (including AI agents), carrier quote and service contact, automated rate shopping at or before renewal, policy renewal notifications, claims management, and Credify's newsletter (which we may send by email, or by text message with a link to read it)."}),v.jsxs("div",{className:"text-sm text-slate-600 mt-4 space-y-2",children:[v.jsx("p",{children:"These may use automated systems, emails or texts. Message frequency varies. Message & data rates may apply. Reply STOP to opt out of SMS; Reply HELP for help."}),v.jsx("p",{children:"Consent is not required to receive quotes or purchase insurance."}),v.jsxs("p",{children:["Credify Corporation – Texas #3309669."," ",v.jsx("a",{href:"https://getcredify.com/privacy-policy",target:"_blank",rel:"noopener noreferrer",className:"credify-link-underline",children:"Privacy Policy"})," ","|"," ",v.jsx("a",{href:"https://getcredify.com/terms-of-service",target:"_blank",rel:"noopener noreferrer",className:"credify-link-underline",children:"Terms of Service"})]})]}),v.jsxs("div",{className:"grid grid-cols-1 gap-3 mt-6 sm:grid-cols-2",children:[v.jsxs("button",{type:"button","data-testid":"communications-consent-accept",onClick:()=>e(!0),disabled:o,className:["form-wizard-next-btn","h-12 rounded-full text-white font-bold transition","disabled:cursor-not-allowed","flex items-center justify-center gap-2",o?"bg-slate-400":"bg-blue-600 hover:bg-blue-600/90 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-blue-600/40 bg-primary hover:bg-primary/90 focus-visible:ring-primary/40"].join(" "),children:[t&&v.jsxs("svg",{className:"animate-spin h-5 w-5 text-white",xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",children:[v.jsx("circle",{className:"opacity-25",cx:"12",cy:"12",r:"10",stroke:"currentColor",strokeWidth:"4"}),v.jsx("path",{className:"opacity-75",fill:"currentColor",d:"M4 12a8 8 0 018-8V0C5.373 0 0 5.373 0 12h4zm2 5.291A7.962 7.962 0 014 12H0c0 3.042 1.135 5.824 3 7.938l3-2.647z"})]}),"I Consent"]}),v.jsx("button",{type:"button","data-testid":"communications-consent-decline",onClick:()=>e(!1),disabled:t,className:"credify-btn-back h-12 rounded-full border border-gray-300 text-text-primary hover:bg-gray-50 transition disabled:opacity-50 disabled:cursor-not-allowed",children:"I Do Not Consent"})]})]})}function IO({name:e,value:t,checked:n,onChange:i,children:o}){return v.jsxs("label",{className:"radio-card",children:[v.jsx("input",{className:"radio-input",type:"radio",name:e,value:t,checked:n,onChange:i}),v.jsx("span",{className:"radio-label",children:o})]})}function jO({legend:e,children:t,className:n,legendClassName:i,required:o}){return v.jsxs("fieldset",{className:n,children:[v.jsxs("legend",{className:`form-label mb-4 ${i||""}`,children:[e,o&&v.jsxs(v.Fragment,{children:[v.jsx("span",{className:"text-red-600 ml-1","aria-hidden":"true",children:"*"}),v.jsx("span",{className:"sr-only",children:" required"})]})]}),v.jsx("div",{className:"grid grid-cols-1 gap-4 sm:grid-cols-2",children:t})]})}function zO({id:e,label:t,hint:n,error:i,required:o,className:s,placeholder:c="Select an option",options:d=[],value:m,onValueChange:h,onFocus:y,onBlur:g,disabled:E,...S}){const $=b.useRef(null),x=b.useRef(null),w=b.useRef(null),[R,F]=b.useState(!1),[A,L]=b.useState(""),[M,Z]=b.useState(-1),[V,fe]=b.useState("bottom"),ne=Array.isArray(m)?String(m[0]??""):String(m??""),pe=d.find(I=>I.value===ne),J=`${e}-listbox`,ye=M>=0?`${e}-option-${M}`:void 0,Ae=[n?`${e}-hint`:null,i?`${e}-error`:null].filter(Boolean).join(" ")||void 0,j=b.useMemo(()=>{const I=A.trim().toLowerCase();return!I||pe?.label===A?d:d.filter(G=>G.label.toLowerCase().includes(I)||G.value.toLowerCase().includes(I))},[d,A,pe?.label]);b.useEffect(()=>{L(pe?.label??"")},[pe?.label]),b.useEffect(()=>{if(!R)return;const I=G=>{$.current&&!$.current.contains(G.target)&&(F(!1),Z(-1),L(pe?.label??""))};return document.addEventListener("mousedown",I),()=>document.removeEventListener("mousedown",I)},[R,pe?.label]),b.useEffect(()=>{if(!R)return;const I=()=>{const G=x.current;if(!G)return;const C=G.getBoundingClientRect(),U=window.innerHeight||document.documentElement.clientHeight,W=w.current?.scrollHeight??0,Y=Math.min(W>0?W:256,U*.42,256),te=8,z=U-C.bottom-te,T=C.top-te;fe(z<Y&&T>z?"top":"bottom")};return I(),window.addEventListener("resize",I),window.addEventListener("scroll",I,!0),()=>{window.removeEventListener("resize",I),window.removeEventListener("scroll",I,!0)}},[j.length,R]);const de=()=>{if(E)return;F(!0);const I=j.findIndex(G=>G.value===ne);Z(I>=0?I:-1)},O=I=>{I.disabled||(h?.(I.value),L(I.label),F(!1),Z(-1),x.current?.focus())},B=I=>{if(!E)switch(I.key){case"ArrowDown":if(I.preventDefault(),!R){de();return}Z(G=>Math.min(G+1,j.length-1));break;case"ArrowUp":if(I.preventDefault(),!R){de();return}Z(G=>G>0?G-1:-1);break;case"Enter":R&&M>=0&&j[M]&&(I.preventDefault(),O(j[M]));break;case"Escape":R&&(I.preventDefault(),F(!1),Z(-1),L(pe?.label??""));break}},X=I=>{g?.(I)};return v.jsx(Un,{id:e,label:t,hint:n,error:i,required:o,className:s,children:v.jsxs("div",{ref:$,className:"combobox-wrapper",children:[v.jsx("input",{ref:x,id:e,className:`form-input combobox-input ${i?"input-error":""}`,value:A,placeholder:c,disabled:E,required:o,role:"combobox","aria-autocomplete":"list","aria-expanded":R&&j.length>0,"aria-controls":R&&j.length>0?J:void 0,"aria-activedescendant":ye,"aria-invalid":!!i,"aria-describedby":Ae,autoComplete:"off",onFocus:I=>{y?.(I),de()},onClick:de,onChange:I=>{L(I.currentTarget.value),F(!0),Z(-1)},onKeyDown:B,onBlur:X,...S,type:"text"}),v.jsx("span",{className:"combobox-caret","aria-hidden":"true"}),R&&v.jsx("div",{ref:w,id:J,className:"combobox-listbox","data-placement":V,role:"listbox",children:j.length>0?j.map((I,G)=>v.jsx("div",{id:`${e}-option-${G}`,className:"combobox-option","data-highlighted":G===M?"true":void 0,"data-selected":I.value===ne?"true":void 0,tabIndex:-1,role:"option","aria-selected":I.value===ne,"aria-disabled":I.disabled||void 0,onMouseDown:C=>C.preventDefault(),onMouseEnter:()=>Z(G),onClick:()=>O(I),children:I.label},`${I.value}-${G}`)):v.jsx("div",{className:"combobox-empty",role:"status",children:"No matches"})})]})})}function ds({id:e,label:t,hint:n,error:i,required:o,className:s,placeholder:c,options:d,children:m,...h}){const y=[n?`${e}-hint`:null,i?`${e}-error`:null].filter(Boolean).join(" ")||void 0,g=!!m;if(!g){const{onChange:E,value:S,defaultValue:$,disabled:x,onFocus:w,onBlur:R,name:F,autoFocus:A}=h,L=S??$??"";return v.jsx(zO,{id:e,label:t,hint:n,error:i,required:o,className:s,placeholder:c,options:d,value:L,disabled:x,name:F,autoFocus:A,"aria-required":h["aria-required"],onFocus:w,onBlur:R,onValueChange:M=>{E?.({currentTarget:{value:M},target:{value:M}})}})}return v.jsx(Un,{id:e,label:t,hint:n,error:i,required:o,className:s,children:v.jsxs("select",{id:e,className:`form-input select-caret ${i?"input-error":""}`,"aria-invalid":!!i,"aria-describedby":y,required:o,...h,children:[c&&v.jsx("option",{value:"",disabled:!0,selected:!("value"in h),children:c}),g?m:d?.map(E=>v.jsx("option",{value:E.value,disabled:E.disabled,children:E.label},E.value))]})})}var B1={apiKey:""};function UO(){try{typeof B1<"u"&&B1?.apiKey}catch{}return""}function HO(){return new Promise((e,t)=>{if(window.google?.maps?.places){e();return}const n=document.querySelector('script[src*="maps.googleapis.com"]');if(n){n.addEventListener("load",()=>e()),n.addEventListener("error",()=>t(new Error("Failed to load Google Maps script")));return}const i=UO();if(!i){t(new Error("Google Maps API key not configured"));return}const o=document.createElement("script");o.src=`https://maps.googleapis.com/maps/api/js?key=${i}&libraries=places`,o.async=!0,o.defer=!0,o.onload=()=>e(),o.onerror=()=>t(new Error("Failed to load Google Maps script")),document.head.appendChild(o)})}function VO(e){const t={fullAddress:e.formatted_address};return e.address_components&&e.address_components.forEach(n=>{const i=n.types;i.includes("street_number")&&(t.streetNumber=n.long_name),i.includes("route")&&(t.streetName=n.long_name),i.includes("locality")&&(t.city=n.long_name),i.includes("administrative_area_level_1")&&(t.state=n.short_name),i.includes("postal_code")&&(t.zipCode=n.long_name),i.includes("country")&&(t.country=n.short_name)}),t}function GO({id:e,label:t,hint:n,error:i,required:o,className:s,onChange:c,onPlaceSelect:d,value:m,...h}){const y=b.useRef(null),g=b.useRef(null),E=b.useRef(null),S=b.useRef(null),[$,x]=b.useState(!0),[w,R]=b.useState(m||""),[F,A]=b.useState([]),[L,M]=b.useState(!1),[Z,V]=b.useState(-1),fe=`${e}-suggestions`,ne=Z>=0?`${e}-suggestion-${Z}`:void 0,pe=b.useRef([]),J=b.useRef(!1),ye=b.useRef(-1);b.useEffect(()=>{pe.current=F},[F]),b.useEffect(()=>{J.current=L},[L]),b.useEffect(()=>{ye.current=Z},[Z]),b.useEffect(()=>{m!==void 0&&R(String(m))},[m]);const Ae=b.useRef(null);b.useEffect(()=>{if(!y.current)return;let B=!0;return HO().then(()=>{!B||!y.current||(g.current=new google.maps.places.AutocompleteService,E.current=new google.maps.places.PlacesService(document.createElement("div")),x(!1))}).catch(X=>{console.error("Error loading Google Maps:",X),x(!1)}),()=>{B=!1,Ae.current&&clearTimeout(Ae.current)}},[]);const j=B=>{const X=B.target.value;if(R(X),c?.(X),Ae.current&&clearTimeout(Ae.current),X.length<3){A([]),M(!1);return}Ae.current=setTimeout(()=>{g.current&&g.current.getPlacePredictions({input:X,types:["address"]},(I,G)=>{G===google.maps.places.PlacesServiceStatus.OK&&I?(A(I),M(!0),V(-1)):(A([]),M(!1))})},300)},de=B=>{if(!J.current||pe.current.length===0){B.key==="Escape"&&(M(!1),J.current=!1);return}switch(B.key){case"ArrowDown":B.preventDefault(),V(X=>{const I=X<pe.current.length-1?X+1:X;return ye.current=I,I});break;case"ArrowUp":B.preventDefault(),V(X=>{const I=X>0?X-1:-1;return ye.current=I,I});break;case"Enter":B.preventDefault(),ye.current>=0&&ye.current<pe.current.length&&O(pe.current[ye.current]);break;case"Escape":B.preventDefault(),M(!1),J.current=!1;break}};b.useEffect(()=>{const B=X=>{S.current&&!S.current.contains(X.target)&&y.current&&!y.current.contains(X.target)&&(M(!1),J.current=!1)};if(L)return document.addEventListener("mousedown",B),()=>{document.removeEventListener("mousedown",B)}},[L]);const O=B=>{E.current&&E.current.getDetails({placeId:B.place_id,fields:["address_components","formatted_address","geometry"]},(X,I)=>{if(I===google.maps.places.PlacesServiceStatus.OK&&X){const G=X.formatted_address||"";R(G),M(!1),A([]),J.current=!1;const C=VO(X);c?.(G,C),d?.(X)}})};return v.jsx(Un,{id:e,label:t,hint:n,error:i,required:o,className:s,children:v.jsxs("div",{className:"relative",children:[v.jsx("input",{ref:y,id:e,type:"text",className:`form-input ${i?"input-error":""}`,value:w,onChange:j,onKeyDown:de,role:"combobox","aria-autocomplete":"list","aria-expanded":L&&F.length>0,"aria-controls":L&&F.length>0?fe:void 0,"aria-activedescendant":ne,"aria-invalid":!!i,"aria-describedby":[n?`${e}-hint`:null,i?`${e}-error`:null].filter(Boolean).join(" ")||void 0,required:o,autoComplete:"street-address",placeholder:h.placeholder||"Enter an address",disabled:$||h.disabled,...h}),$&&v.jsx("p",{className:"mt-1 text-sm text-slate-500",role:"status","aria-live":"polite",children:"Loading address suggestions..."}),L&&F.length>0&&v.jsx("div",{id:fe,ref:S,className:"absolute z-50 w-full mt-1 bg-white border border-slate-200 rounded-lg shadow-lg max-h-60 overflow-y-auto",role:"listbox",children:F.map((B,X)=>v.jsxs("div",{id:`${e}-suggestion-${X}`,className:`px-4 py-3 cursor-pointer transition-colors ${X===Z?"bg-blue-50 text-slate-900":"bg-white text-slate-900 hover:bg-slate-50"} ${X<F.length-1?"border-b border-slate-100":""}`,role:"option","aria-selected":X===Z,onMouseDown:I=>I.preventDefault(),onClick:()=>O(B),onMouseEnter:()=>V(X),children:[v.jsx("div",{className:"font-medium text-slate-900",children:B.structured_formatting.main_text}),B.structured_formatting.secondary_text&&v.jsx("div",{className:"text-sm text-slate-500 mt-0.5",children:B.structured_formatting.secondary_text})]},B.place_id))})]})})}function py(e){const t=(n,i)=>n.map((o,s)=>{const c=i.length?i.join("__"):"root",d=o.key??`${c}__q${s}_${String(o.question).slice(0,24).replace(/\W+/g,"-")||"field"}`,h=(o.conditionals??[]).map((y,g)=>{const E=y.conditionalQuestions?t(y.conditionalQuestions,[...i,`${d}__c${g}`]):void 0;return{...y,conditionalQuestions:E}});return{...o,key:d,conditionals:h}});return t(e,[])}function ue(e,t,n){function i(d,m){if(d._zod||Object.defineProperty(d,"_zod",{value:{def:m,constr:c,traits:new Set},enumerable:!1}),d._zod.traits.has(e))return;d._zod.traits.add(e),t(d,m);const h=c.prototype,y=Object.keys(h);for(let g=0;g<y.length;g++){const E=y[g];E in d||(d[E]=h[E].bind(d))}}const o=n?.Parent??Object;class s extends o{}Object.defineProperty(s,"name",{value:e});function c(d){var m;const h=n?.Parent?new s:this;i(h,d),(m=h._zod).deferred??(m.deferred=[]);for(const y of h._zod.deferred)y();return h}return Object.defineProperty(c,"init",{value:i}),Object.defineProperty(c,Symbol.hasInstance,{value:d=>n?.Parent&&d instanceof n.Parent?!0:d?._zod?.traits?.has(e)}),Object.defineProperty(c,"name",{value:e}),c}class Jo extends Error{constructor(){super("Encountered Promise during synchronous parse. Use .parseAsync() instead.")}}class zx extends Error{constructor(t){super(`Encountered unidirectional transform during encode: ${t}`),this.name="ZodEncodeError"}}const Ux={};function zi(e){return Ux}function Hx(e){const t=Object.values(e).filter(i=>typeof i=="number");return Object.entries(e).filter(([i,o])=>t.indexOf(+i)===-1).map(([i,o])=>o)}function c0(e,t){return typeof t=="bigint"?t.toString():t}function hy(e){return{get value(){{const t=e();return Object.defineProperty(this,"value",{value:t}),t}}}}function yy(e){return e==null}function gy(e){const t=e.startsWith("^")?1:0,n=e.endsWith("$")?e.length-1:e.length;return e.slice(t,n)}function ZO(e,t){const n=(e.toString().split(".")[1]||"").length,i=t.toString();let o=(i.split(".")[1]||"").length;if(o===0&&/\d?e-\d?/.test(i)){const m=i.match(/\d?e-(\d?)/);m?.[1]&&(o=Number.parseInt(m[1]))}const s=n>o?n:o,c=Number.parseInt(e.toFixed(s).replace(".","")),d=Number.parseInt(t.toFixed(s).replace(".",""));return c%d/10**s}const L1=Symbol("evaluating");function mt(e,t,n){let i;Object.defineProperty(e,t,{get(){if(i!==L1)return i===void 0&&(i=L1,i=n()),i},set(o){Object.defineProperty(e,t,{value:o})},configurable:!0})}function Wi(e,t,n){Object.defineProperty(e,t,{value:n,writable:!0,enumerable:!0,configurable:!0})}function ei(...e){const t={};for(const n of e){const i=Object.getOwnPropertyDescriptors(n);Object.assign(t,i)}return Object.defineProperties({},t)}function P1(e){return JSON.stringify(e)}function YO(e){return e.toLowerCase().trim().replace(/[^\w\s-]/g,"").replace(/[\s_-]+/g,"-").replace(/^-+|-+$/g,"")}const Vx="captureStackTrace"in Error?Error.captureStackTrace:(...e)=>{};function vd(e){return typeof e=="object"&&e!==null&&!Array.isArray(e)}const qO=hy(()=>{if(typeof navigator<"u"&&navigator?.userAgent?.includes("Cloudflare"))return!1;try{const e=Function;return new e(""),!0}catch{return!1}});function Fs(e){if(vd(e)===!1)return!1;const t=e.constructor;if(t===void 0||typeof t!="function")return!0;const n=t.prototype;return!(vd(n)===!1||Object.prototype.hasOwnProperty.call(n,"isPrototypeOf")===!1)}function Gx(e){return Fs(e)?{...e}:Array.isArray(e)?[...e]:e}const KO=new Set(["string","number","symbol"]);function ol(e){return e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}function ti(e,t,n){const i=new e._zod.constr(t??e._zod.def);return(!t||n?.parent)&&(i._zod.parent=e),i}function Le(e){const t=e;if(!t)return{};if(typeof t=="string")return{error:()=>t};if(t?.message!==void 0){if(t?.error!==void 0)throw new Error("Cannot specify both `message` and `error` params");t.error=t.message}return delete t.message,typeof t.error=="string"?{...t,error:()=>t.error}:t}function WO(e){return Object.keys(e).filter(t=>e[t]._zod.optin==="optional"&&e[t]._zod.optout==="optional")}const QO={safeint:[Number.MIN_SAFE_INTEGER,Number.MAX_SAFE_INTEGER],int32:[-2147483648,2147483647],uint32:[0,4294967295],float32:[-34028234663852886e22,34028234663852886e22],float64:[-Number.MAX_VALUE,Number.MAX_VALUE]};function JO(e,t){const n=e._zod.def,i=n.checks;if(i&&i.length>0)throw new Error(".pick() cannot be used on object schemas containing refinements");const s=ei(e._zod.def,{get shape(){const c={};for(const d in t){if(!(d in n.shape))throw new Error(`Unrecognized key: "${d}"`);t[d]&&(c[d]=n.shape[d])}return Wi(this,"shape",c),c},checks:[]});return ti(e,s)}function XO(e,t){const n=e._zod.def,i=n.checks;if(i&&i.length>0)throw new Error(".omit() cannot be used on object schemas containing refinements");const s=ei(e._zod.def,{get shape(){const c={...e._zod.def.shape};for(const d in t){if(!(d in n.shape))throw new Error(`Unrecognized key: "${d}"`);t[d]&&delete c[d]}return Wi(this,"shape",c),c},checks:[]});return ti(e,s)}function ek(e,t){if(!Fs(t))throw new Error("Invalid input to extend: expected a plain object");const n=e._zod.def.checks;if(n&&n.length>0){const s=e._zod.def.shape;for(const c in t)if(Object.getOwnPropertyDescriptor(s,c)!==void 0)throw new Error("Cannot overwrite keys on object schemas containing refinements. Use `.safeExtend()` instead.")}const o=ei(e._zod.def,{get shape(){const s={...e._zod.def.shape,...t};return Wi(this,"shape",s),s}});return ti(e,o)}function tk(e,t){if(!Fs(t))throw new Error("Invalid input to safeExtend: expected a plain object");const n=ei(e._zod.def,{get shape(){const i={...e._zod.def.shape,...t};return Wi(this,"shape",i),i}});return ti(e,n)}function nk(e,t){const n=ei(e._zod.def,{get shape(){const i={...e._zod.def.shape,...t._zod.def.shape};return Wi(this,"shape",i),i},get catchall(){return t._zod.def.catchall},checks:[]});return ti(e,n)}function rk(e,t,n){const o=t._zod.def.checks;if(o&&o.length>0)throw new Error(".partial() cannot be used on object schemas containing refinements");const c=ei(t._zod.def,{get shape(){const d=t._zod.def.shape,m={...d};if(n)for(const h in n){if(!(h in d))throw new Error(`Unrecognized key: "${h}"`);n[h]&&(m[h]=e?new e({type:"optional",innerType:d[h]}):d[h])}else for(const h in d)m[h]=e?new e({type:"optional",innerType:d[h]}):d[h];return Wi(this,"shape",m),m},checks:[]});return ti(t,c)}function ak(e,t,n){const i=ei(t._zod.def,{get shape(){const o=t._zod.def.shape,s={...o};if(n)for(const c in n){if(!(c in s))throw new Error(`Unrecognized key: "${c}"`);n[c]&&(s[c]=new e({type:"nonoptional",innerType:o[c]}))}else for(const c in o)s[c]=new e({type:"nonoptional",innerType:o[c]});return Wi(this,"shape",s),s}});return ti(t,i)}function Vo(e,t=0){if(e.aborted===!0)return!0;for(let n=t;n<e.issues.length;n++)if(e.issues[n]?.continue!==!0)return!0;return!1}function Zx(e,t){return t.map(n=>{var i;return(i=n).path??(i.path=[]),n.path.unshift(e),n})}function Mc(e){return typeof e=="string"?e:e?.message}function Ui(e,t,n){const i={...e,path:e.path??[]};if(!e.message){const o=Mc(e.inst?._zod.def?.error?.(e))??Mc(t?.error?.(e))??Mc(n.customError?.(e))??Mc(n.localeError?.(e))??"Invalid input";i.message=o}return delete i.inst,delete i.continue,t?.reportInput||delete i.input,i}function by(e){return Array.isArray(e)?"array":typeof e=="string"?"string":"unknown"}function Is(...e){const[t,n,i]=e;return typeof t=="string"?{message:t,code:"custom",input:n,inst:i}:{...t}}const Yx=(e,t)=>{e.name="$ZodError",Object.defineProperty(e,"_zod",{value:e._zod,enumerable:!1}),Object.defineProperty(e,"issues",{value:t,enumerable:!1}),e.message=JSON.stringify(t,c0,2),Object.defineProperty(e,"toString",{value:()=>e.message,enumerable:!1})},qx=ue("$ZodError",Yx),Kx=ue("$ZodError",Yx,{Parent:Error});function ik(e,t=n=>n.message){const n={},i=[];for(const o of e.issues)o.path.length>0?(n[o.path[0]]=n[o.path[0]]||[],n[o.path[0]].push(t(o))):i.push(t(o));return{formErrors:i,fieldErrors:n}}function ok(e,t=n=>n.message){const n={_errors:[]},i=o=>{for(const s of o.issues)if(s.code==="invalid_union"&&s.errors.length)s.errors.map(c=>i({issues:c}));else if(s.code==="invalid_key")i({issues:s.issues});else if(s.code==="invalid_element")i({issues:s.issues});else if(s.path.length===0)n._errors.push(t(s));else{let c=n,d=0;for(;d<s.path.length;){const m=s.path[d];d===s.path.length-1?(c[m]=c[m]||{_errors:[]},c[m]._errors.push(t(s))):c[m]=c[m]||{_errors:[]},c=c[m],d++}}};return i(e),n}const vy=e=>(t,n,i,o)=>{const s=i?Object.assign(i,{async:!1}):{async:!1},c=t._zod.run({value:n,issues:[]},s);if(c instanceof Promise)throw new Jo;if(c.issues.length){const d=new(o?.Err??e)(c.issues.map(m=>Ui(m,s,zi())));throw Vx(d,o?.callee),d}return c.value},_y=e=>async(t,n,i,o)=>{const s=i?Object.assign(i,{async:!0}):{async:!0};let c=t._zod.run({value:n,issues:[]},s);if(c instanceof Promise&&(c=await c),c.issues.length){const d=new(o?.Err??e)(c.issues.map(m=>Ui(m,s,zi())));throw Vx(d,o?.callee),d}return c.value},ef=e=>(t,n,i)=>{const o=i?{...i,async:!1}:{async:!1},s=t._zod.run({value:n,issues:[]},o);if(s instanceof Promise)throw new Jo;return s.issues.length?{success:!1,error:new(e??qx)(s.issues.map(c=>Ui(c,o,zi())))}:{success:!0,data:s.value}},lk=ef(Kx),tf=e=>async(t,n,i)=>{const o=i?Object.assign(i,{async:!0}):{async:!0};let s=t._zod.run({value:n,issues:[]},o);return s instanceof Promise&&(s=await s),s.issues.length?{success:!1,error:new e(s.issues.map(c=>Ui(c,o,zi())))}:{success:!0,data:s.value}},sk=tf(Kx),uk=e=>(t,n,i)=>{const o=i?Object.assign(i,{direction:"backward"}):{direction:"backward"};return vy(e)(t,n,o)},ck=e=>(t,n,i)=>vy(e)(t,n,i),dk=e=>async(t,n,i)=>{const o=i?Object.assign(i,{direction:"backward"}):{direction:"backward"};return _y(e)(t,n,o)},fk=e=>async(t,n,i)=>_y(e)(t,n,i),mk=e=>(t,n,i)=>{const o=i?Object.assign(i,{direction:"backward"}):{direction:"backward"};return ef(e)(t,n,o)},pk=e=>(t,n,i)=>ef(e)(t,n,i),hk=e=>async(t,n,i)=>{const o=i?Object.assign(i,{direction:"backward"}):{direction:"backward"};return tf(e)(t,n,o)},yk=e=>async(t,n,i)=>tf(e)(t,n,i),gk=/^[cC][^\s-]{8,}$/,bk=/^[0-9a-z]+$/,vk=/^[0-9A-HJKMNP-TV-Za-hjkmnp-tv-z]{26}$/,_k=/^[0-9a-vA-V]{20}$/,Ek=/^[A-Za-z0-9]{27}$/,Sk=/^[a-zA-Z0-9_-]{21}$/,$k=/^P(?:(\d+W)|(?!.*W)(?=\d|T\d)(\d+Y)?(\d+M)?(\d+D)?(T(?=\d)(\d+H)?(\d+M)?(\d+([.,]\d+)?S)?)?)$/,Dk=/^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$/,F1=e=>e?new RegExp(`^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-${e}[0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12})$`):/^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$/,xk=/^(?!\.)(?!.*\.\.)([A-Za-z0-9_'+\-\.]*)[A-Za-z0-9_+-]@([A-Za-z0-9][A-Za-z0-9\-]*\.)+[A-Za-z]{2,}$/,Ck="^(\\p{Extended_Pictographic}|\\p{Emoji_Component})+$";function Ak(){return new RegExp(Ck,"u")}const wk=/^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])$/,Tk=/^(([0-9a-fA-F]{1,4}:){7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:))$/,Nk=/^((25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\/([0-9]|[1-2][0-9]|3[0-2])$/,Mk=/^(([0-9a-fA-F]{1,4}:){7}[0-9a-fA-F]{1,4}|::|([0-9a-fA-F]{1,4})?::([0-9a-fA-F]{1,4}:?){0,6})\/(12[0-8]|1[01][0-9]|[1-9]?[0-9])$/,Rk=/^$|^(?:[0-9a-zA-Z+/]{4})*(?:(?:[0-9a-zA-Z+/]{2}==)|(?:[0-9a-zA-Z+/]{3}=))?$/,Wx=/^[A-Za-z0-9_-]*$/,Ok=/^\+[1-9]\d{6,14}$/,Qx="(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))",kk=new RegExp(`^${Qx}$`);function Jx(e){const t="(?:[01]\\d|2[0-3]):[0-5]\\d";return typeof e.precision=="number"?e.precision===-1?`${t}`:e.precision===0?`${t}:[0-5]\\d`:`${t}:[0-5]\\d\\.\\d{${e.precision}}`:`${t}(?::[0-5]\\d(?:\\.\\d+)?)?`}function Bk(e){return new RegExp(`^${Jx(e)}$`)}function Lk(e){const t=Jx({precision:e.precision}),n=["Z"];e.local&&n.push(""),e.offset&&n.push("([+-](?:[01]\\d|2[0-3]):[0-5]\\d)");const i=`${t}(?:${n.join("|")})`;return new RegExp(`^${Qx}T(?:${i})$`)}const Pk=e=>{const t=e?`[\\s\\S]{${e?.minimum??0},${e?.maximum??""}}`:"[\\s\\S]*";return new RegExp(`^${t}$`)},Fk=/^-?\d+$/,Ik=/^-?\d+(?:\.\d+)?$/,jk=/^(?:true|false)$/i,zk=/^[^A-Z]*$/,Uk=/^[^a-z]*$/,Tn=ue("$ZodCheck",(e,t)=>{var n;e._zod??(e._zod={}),e._zod.def=t,(n=e._zod).onattach??(n.onattach=[])}),Xx={number:"number",bigint:"bigint",object:"date"},e5=ue("$ZodCheckLessThan",(e,t)=>{Tn.init(e,t);const n=Xx[typeof t.value];e._zod.onattach.push(i=>{const o=i._zod.bag,s=(t.inclusive?o.maximum:o.exclusiveMaximum)??Number.POSITIVE_INFINITY;t.value<s&&(t.inclusive?o.maximum=t.value:o.exclusiveMaximum=t.value)}),e._zod.check=i=>{(t.inclusive?i.value<=t.value:i.value<t.value)||i.issues.push({origin:n,code:"too_big",maximum:typeof t.value=="object"?t.value.getTime():t.value,input:i.value,inclusive:t.inclusive,inst:e,continue:!t.abort})}}),t5=ue("$ZodCheckGreaterThan",(e,t)=>{Tn.init(e,t);const n=Xx[typeof t.value];e._zod.onattach.push(i=>{const o=i._zod.bag,s=(t.inclusive?o.minimum:o.exclusiveMinimum)??Number.NEGATIVE_INFINITY;t.value>s&&(t.inclusive?o.minimum=t.value:o.exclusiveMinimum=t.value)}),e._zod.check=i=>{(t.inclusive?i.value>=t.value:i.value>t.value)||i.issues.push({origin:n,code:"too_small",minimum:typeof t.value=="object"?t.value.getTime():t.value,input:i.value,inclusive:t.inclusive,inst:e,continue:!t.abort})}}),Hk=ue("$ZodCheckMultipleOf",(e,t)=>{Tn.init(e,t),e._zod.onattach.push(n=>{var i;(i=n._zod.bag).multipleOf??(i.multipleOf=t.value)}),e._zod.check=n=>{if(typeof n.value!=typeof t.value)throw new Error("Cannot mix number and bigint in multiple_of check.");(typeof n.value=="bigint"?n.value%t.value===BigInt(0):ZO(n.value,t.value)===0)||n.issues.push({origin:typeof n.value,code:"not_multiple_of",divisor:t.value,input:n.value,inst:e,continue:!t.abort})}}),Vk=ue("$ZodCheckNumberFormat",(e,t)=>{Tn.init(e,t),t.format=t.format||"float64";const n=t.format?.includes("int"),i=n?"int":"number",[o,s]=QO[t.format];e._zod.onattach.push(c=>{const d=c._zod.bag;d.format=t.format,d.minimum=o,d.maximum=s,n&&(d.pattern=Fk)}),e._zod.check=c=>{const d=c.value;if(n){if(!Number.isInteger(d)){c.issues.push({expected:i,format:t.format,code:"invalid_type",continue:!1,input:d,inst:e});return}if(!Number.isSafeInteger(d)){d>0?c.issues.push({input:d,code:"too_big",maximum:Number.MAX_SAFE_INTEGER,note:"Integers must be within the safe integer range.",inst:e,origin:i,inclusive:!0,continue:!t.abort}):c.issues.push({input:d,code:"too_small",minimum:Number.MIN_SAFE_INTEGER,note:"Integers must be within the safe integer range.",inst:e,origin:i,inclusive:!0,continue:!t.abort});return}}d<o&&c.issues.push({origin:"number",input:d,code:"too_small",minimum:o,inclusive:!0,inst:e,continue:!t.abort}),d>s&&c.issues.push({origin:"number",input:d,code:"too_big",maximum:s,inclusive:!0,inst:e,continue:!t.abort})}}),Gk=ue("$ZodCheckMaxLength",(e,t)=>{var n;Tn.init(e,t),(n=e._zod.def).when??(n.when=i=>{const o=i.value;return!yy(o)&&o.length!==void 0}),e._zod.onattach.push(i=>{const o=i._zod.bag.maximum??Number.POSITIVE_INFINITY;t.maximum<o&&(i._zod.bag.maximum=t.maximum)}),e._zod.check=i=>{const o=i.value;if(o.length<=t.maximum)return;const c=by(o);i.issues.push({origin:c,code:"too_big",maximum:t.maximum,inclusive:!0,input:o,inst:e,continue:!t.abort})}}),Zk=ue("$ZodCheckMinLength",(e,t)=>{var n;Tn.init(e,t),(n=e._zod.def).when??(n.when=i=>{const o=i.value;return!yy(o)&&o.length!==void 0}),e._zod.onattach.push(i=>{const o=i._zod.bag.minimum??Number.NEGATIVE_INFINITY;t.minimum>o&&(i._zod.bag.minimum=t.minimum)}),e._zod.check=i=>{const o=i.value;if(o.length>=t.minimum)return;const c=by(o);i.issues.push({origin:c,code:"too_small",minimum:t.minimum,inclusive:!0,input:o,inst:e,continue:!t.abort})}}),Yk=ue("$ZodCheckLengthEquals",(e,t)=>{var n;Tn.init(e,t),(n=e._zod.def).when??(n.when=i=>{const o=i.value;return!yy(o)&&o.length!==void 0}),e._zod.onattach.push(i=>{const o=i._zod.bag;o.minimum=t.length,o.maximum=t.length,o.length=t.length}),e._zod.check=i=>{const o=i.value,s=o.length;if(s===t.length)return;const c=by(o),d=s>t.length;i.issues.push({origin:c,...d?{code:"too_big",maximum:t.length}:{code:"too_small",minimum:t.length},inclusive:!0,exact:!0,input:i.value,inst:e,continue:!t.abort})}}),nf=ue("$ZodCheckStringFormat",(e,t)=>{var n,i;Tn.init(e,t),e._zod.onattach.push(o=>{const s=o._zod.bag;s.format=t.format,t.pattern&&(s.patterns??(s.patterns=new Set),s.patterns.add(t.pattern))}),t.pattern?(n=e._zod).check??(n.check=o=>{t.pattern.lastIndex=0,!t.pattern.test(o.value)&&o.issues.push({origin:"string",code:"invalid_format",format:t.format,input:o.value,...t.pattern?{pattern:t.pattern.toString()}:{},inst:e,continue:!t.abort})}):(i=e._zod).check??(i.check=()=>{})}),qk=ue("$ZodCheckRegex",(e,t)=>{nf.init(e,t),e._zod.check=n=>{t.pattern.lastIndex=0,!t.pattern.test(n.value)&&n.issues.push({origin:"string",code:"invalid_format",format:"regex",input:n.value,pattern:t.pattern.toString(),inst:e,continue:!t.abort})}}),Kk=ue("$ZodCheckLowerCase",(e,t)=>{t.pattern??(t.pattern=zk),nf.init(e,t)}),Wk=ue("$ZodCheckUpperCase",(e,t)=>{t.pattern??(t.pattern=Uk),nf.init(e,t)}),Qk=ue("$ZodCheckIncludes",(e,t)=>{Tn.init(e,t);const n=ol(t.includes),i=new RegExp(typeof t.position=="number"?`^.{${t.position}}${n}`:n);t.pattern=i,e._zod.onattach.push(o=>{const s=o._zod.bag;s.patterns??(s.patterns=new Set),s.patterns.add(i)}),e._zod.check=o=>{o.value.includes(t.includes,t.position)||o.issues.push({origin:"string",code:"invalid_format",format:"includes",includes:t.includes,input:o.value,inst:e,continue:!t.abort})}}),Jk=ue("$ZodCheckStartsWith",(e,t)=>{Tn.init(e,t);const n=new RegExp(`^${ol(t.prefix)}.*`);t.pattern??(t.pattern=n),e._zod.onattach.push(i=>{const o=i._zod.bag;o.patterns??(o.patterns=new Set),o.patterns.add(n)}),e._zod.check=i=>{i.value.startsWith(t.prefix)||i.issues.push({origin:"string",code:"invalid_format",format:"starts_with",prefix:t.prefix,input:i.value,inst:e,continue:!t.abort})}}),Xk=ue("$ZodCheckEndsWith",(e,t)=>{Tn.init(e,t);const n=new RegExp(`.*${ol(t.suffix)}$`);t.pattern??(t.pattern=n),e._zod.onattach.push(i=>{const o=i._zod.bag;o.patterns??(o.patterns=new Set),o.patterns.add(n)}),e._zod.check=i=>{i.value.endsWith(t.suffix)||i.issues.push({origin:"string",code:"invalid_format",format:"ends_with",suffix:t.suffix,input:i.value,inst:e,continue:!t.abort})}}),eB=ue("$ZodCheckOverwrite",(e,t)=>{Tn.init(e,t),e._zod.check=n=>{n.value=t.tx(n.value)}});class tB{constructor(t=[]){this.content=[],this.indent=0,this&&(this.args=t)}indented(t){this.indent+=1,t(this),this.indent-=1}write(t){if(typeof t=="function"){t(this,{execution:"sync"}),t(this,{execution:"async"});return}const i=t.split(`
|
|
83
|
-
`).filter(c=>c),o=Math.min(...i.map(c=>c.length-c.trimStart().length)),s=i.map(c=>c.slice(o)).map(c=>" ".repeat(this.indent*2)+c);for(const c of s)this.content.push(c)}compile(){const t=Function,n=this?.args,o=[...(this?.content??[""]).map(s=>` ${s}`)];return new t(...n,o.join(`
|
|
84
|
-
`))}}const nB={major:4,minor:3,patch:6},kt=ue("$ZodType",(e,t)=>{var n;e??(e={}),e._zod.def=t,e._zod.bag=e._zod.bag||{},e._zod.version=nB;const i=[...e._zod.def.checks??[]];e._zod.traits.has("$ZodCheck")&&i.unshift(e);for(const o of i)for(const s of o._zod.onattach)s(e);if(i.length===0)(n=e._zod).deferred??(n.deferred=[]),e._zod.deferred?.push(()=>{e._zod.run=e._zod.parse});else{const o=(c,d,m)=>{let h=Vo(c),y;for(const g of d){if(g._zod.def.when){if(!g._zod.def.when(c))continue}else if(h)continue;const E=c.issues.length,S=g._zod.check(c);if(S instanceof Promise&&m?.async===!1)throw new Jo;if(y||S instanceof Promise)y=(y??Promise.resolve()).then(async()=>{await S,c.issues.length!==E&&(h||(h=Vo(c,E)))});else{if(c.issues.length===E)continue;h||(h=Vo(c,E))}}return y?y.then(()=>c):c},s=(c,d,m)=>{if(Vo(c))return c.aborted=!0,c;const h=o(d,i,m);if(h instanceof Promise){if(m.async===!1)throw new Jo;return h.then(y=>e._zod.parse(y,m))}return e._zod.parse(h,m)};e._zod.run=(c,d)=>{if(d.skipChecks)return e._zod.parse(c,d);if(d.direction==="backward"){const h=e._zod.parse({value:c.value,issues:[]},{...d,skipChecks:!0});return h instanceof Promise?h.then(y=>s(y,c,d)):s(h,c,d)}const m=e._zod.parse(c,d);if(m instanceof Promise){if(d.async===!1)throw new Jo;return m.then(h=>o(h,i,d))}return o(m,i,d)}}mt(e,"~standard",()=>({validate:o=>{try{const s=lk(e,o);return s.success?{value:s.data}:{issues:s.error?.issues}}catch{return sk(e,o).then(c=>c.success?{value:c.data}:{issues:c.error?.issues})}},vendor:"zod",version:1}))}),Ey=ue("$ZodString",(e,t)=>{kt.init(e,t),e._zod.pattern=[...e?._zod.bag?.patterns??[]].pop()??Pk(e._zod.bag),e._zod.parse=(n,i)=>{if(t.coerce)try{n.value=String(n.value)}catch{}return typeof n.value=="string"||n.issues.push({expected:"string",code:"invalid_type",input:n.value,inst:e}),n}}),At=ue("$ZodStringFormat",(e,t)=>{nf.init(e,t),Ey.init(e,t)}),rB=ue("$ZodGUID",(e,t)=>{t.pattern??(t.pattern=Dk),At.init(e,t)}),aB=ue("$ZodUUID",(e,t)=>{if(t.version){const i={v1:1,v2:2,v3:3,v4:4,v5:5,v6:6,v7:7,v8:8}[t.version];if(i===void 0)throw new Error(`Invalid UUID version: "${t.version}"`);t.pattern??(t.pattern=F1(i))}else t.pattern??(t.pattern=F1());At.init(e,t)}),iB=ue("$ZodEmail",(e,t)=>{t.pattern??(t.pattern=xk),At.init(e,t)}),oB=ue("$ZodURL",(e,t)=>{At.init(e,t),e._zod.check=n=>{try{const i=n.value.trim(),o=new URL(i);t.hostname&&(t.hostname.lastIndex=0,t.hostname.test(o.hostname)||n.issues.push({code:"invalid_format",format:"url",note:"Invalid hostname",pattern:t.hostname.source,input:n.value,inst:e,continue:!t.abort})),t.protocol&&(t.protocol.lastIndex=0,t.protocol.test(o.protocol.endsWith(":")?o.protocol.slice(0,-1):o.protocol)||n.issues.push({code:"invalid_format",format:"url",note:"Invalid protocol",pattern:t.protocol.source,input:n.value,inst:e,continue:!t.abort})),t.normalize?n.value=o.href:n.value=i;return}catch{n.issues.push({code:"invalid_format",format:"url",input:n.value,inst:e,continue:!t.abort})}}}),lB=ue("$ZodEmoji",(e,t)=>{t.pattern??(t.pattern=Ak()),At.init(e,t)}),sB=ue("$ZodNanoID",(e,t)=>{t.pattern??(t.pattern=Sk),At.init(e,t)}),uB=ue("$ZodCUID",(e,t)=>{t.pattern??(t.pattern=gk),At.init(e,t)}),cB=ue("$ZodCUID2",(e,t)=>{t.pattern??(t.pattern=bk),At.init(e,t)}),dB=ue("$ZodULID",(e,t)=>{t.pattern??(t.pattern=vk),At.init(e,t)}),fB=ue("$ZodXID",(e,t)=>{t.pattern??(t.pattern=_k),At.init(e,t)}),mB=ue("$ZodKSUID",(e,t)=>{t.pattern??(t.pattern=Ek),At.init(e,t)}),pB=ue("$ZodISODateTime",(e,t)=>{t.pattern??(t.pattern=Lk(t)),At.init(e,t)}),hB=ue("$ZodISODate",(e,t)=>{t.pattern??(t.pattern=kk),At.init(e,t)}),yB=ue("$ZodISOTime",(e,t)=>{t.pattern??(t.pattern=Bk(t)),At.init(e,t)}),gB=ue("$ZodISODuration",(e,t)=>{t.pattern??(t.pattern=$k),At.init(e,t)}),bB=ue("$ZodIPv4",(e,t)=>{t.pattern??(t.pattern=wk),At.init(e,t),e._zod.bag.format="ipv4"}),vB=ue("$ZodIPv6",(e,t)=>{t.pattern??(t.pattern=Tk),At.init(e,t),e._zod.bag.format="ipv6",e._zod.check=n=>{try{new URL(`http://[${n.value}]`)}catch{n.issues.push({code:"invalid_format",format:"ipv6",input:n.value,inst:e,continue:!t.abort})}}}),_B=ue("$ZodCIDRv4",(e,t)=>{t.pattern??(t.pattern=Nk),At.init(e,t)}),EB=ue("$ZodCIDRv6",(e,t)=>{t.pattern??(t.pattern=Mk),At.init(e,t),e._zod.check=n=>{const i=n.value.split("/");try{if(i.length!==2)throw new Error;const[o,s]=i;if(!s)throw new Error;const c=Number(s);if(`${c}`!==s)throw new Error;if(c<0||c>128)throw new Error;new URL(`http://[${o}]`)}catch{n.issues.push({code:"invalid_format",format:"cidrv6",input:n.value,inst:e,continue:!t.abort})}}});function n5(e){if(e==="")return!0;if(e.length%4!==0)return!1;try{return atob(e),!0}catch{return!1}}const SB=ue("$ZodBase64",(e,t)=>{t.pattern??(t.pattern=Rk),At.init(e,t),e._zod.bag.contentEncoding="base64",e._zod.check=n=>{n5(n.value)||n.issues.push({code:"invalid_format",format:"base64",input:n.value,inst:e,continue:!t.abort})}});function $B(e){if(!Wx.test(e))return!1;const t=e.replace(/[-_]/g,i=>i==="-"?"+":"/"),n=t.padEnd(Math.ceil(t.length/4)*4,"=");return n5(n)}const DB=ue("$ZodBase64URL",(e,t)=>{t.pattern??(t.pattern=Wx),At.init(e,t),e._zod.bag.contentEncoding="base64url",e._zod.check=n=>{$B(n.value)||n.issues.push({code:"invalid_format",format:"base64url",input:n.value,inst:e,continue:!t.abort})}}),xB=ue("$ZodE164",(e,t)=>{t.pattern??(t.pattern=Ok),At.init(e,t)});function CB(e,t=null){try{const n=e.split(".");if(n.length!==3)return!1;const[i]=n;if(!i)return!1;const o=JSON.parse(atob(i));return!("typ"in o&&o?.typ!=="JWT"||!o.alg||t&&(!("alg"in o)||o.alg!==t))}catch{return!1}}const AB=ue("$ZodJWT",(e,t)=>{At.init(e,t),e._zod.check=n=>{CB(n.value,t.alg)||n.issues.push({code:"invalid_format",format:"jwt",input:n.value,inst:e,continue:!t.abort})}}),r5=ue("$ZodNumber",(e,t)=>{kt.init(e,t),e._zod.pattern=e._zod.bag.pattern??Ik,e._zod.parse=(n,i)=>{if(t.coerce)try{n.value=Number(n.value)}catch{}const o=n.value;if(typeof o=="number"&&!Number.isNaN(o)&&Number.isFinite(o))return n;const s=typeof o=="number"?Number.isNaN(o)?"NaN":Number.isFinite(o)?void 0:"Infinity":void 0;return n.issues.push({expected:"number",code:"invalid_type",input:o,inst:e,...s?{received:s}:{}}),n}}),wB=ue("$ZodNumberFormat",(e,t)=>{Vk.init(e,t),r5.init(e,t)}),TB=ue("$ZodBoolean",(e,t)=>{kt.init(e,t),e._zod.pattern=jk,e._zod.parse=(n,i)=>{if(t.coerce)try{n.value=!!n.value}catch{}const o=n.value;return typeof o=="boolean"||n.issues.push({expected:"boolean",code:"invalid_type",input:o,inst:e}),n}}),NB=ue("$ZodUnknown",(e,t)=>{kt.init(e,t),e._zod.parse=n=>n}),MB=ue("$ZodNever",(e,t)=>{kt.init(e,t),e._zod.parse=(n,i)=>(n.issues.push({expected:"never",code:"invalid_type",input:n.value,inst:e}),n)});function I1(e,t,n){e.issues.length&&t.issues.push(...Zx(n,e.issues)),t.value[n]=e.value}const RB=ue("$ZodArray",(e,t)=>{kt.init(e,t),e._zod.parse=(n,i)=>{const o=n.value;if(!Array.isArray(o))return n.issues.push({expected:"array",code:"invalid_type",input:o,inst:e}),n;n.value=Array(o.length);const s=[];for(let c=0;c<o.length;c++){const d=o[c],m=t.element._zod.run({value:d,issues:[]},i);m instanceof Promise?s.push(m.then(h=>I1(h,n,c))):I1(m,n,c)}return s.length?Promise.all(s).then(()=>n):n}});function _d(e,t,n,i,o){if(e.issues.length){if(o&&!(n in i))return;t.issues.push(...Zx(n,e.issues))}e.value===void 0?n in i&&(t.value[n]=void 0):t.value[n]=e.value}function a5(e){const t=Object.keys(e.shape);for(const i of t)if(!e.shape?.[i]?._zod?.traits?.has("$ZodType"))throw new Error(`Invalid element at key "${i}": expected a Zod schema`);const n=WO(e.shape);return{...e,keys:t,keySet:new Set(t),numKeys:t.length,optionalKeys:new Set(n)}}function i5(e,t,n,i,o,s){const c=[],d=o.keySet,m=o.catchall._zod,h=m.def.type,y=m.optout==="optional";for(const g in t){if(d.has(g))continue;if(h==="never"){c.push(g);continue}const E=m.run({value:t[g],issues:[]},i);E instanceof Promise?e.push(E.then(S=>_d(S,n,g,t,y))):_d(E,n,g,t,y)}return c.length&&n.issues.push({code:"unrecognized_keys",keys:c,input:t,inst:s}),e.length?Promise.all(e).then(()=>n):n}const OB=ue("$ZodObject",(e,t)=>{if(kt.init(e,t),!Object.getOwnPropertyDescriptor(t,"shape")?.get){const d=t.shape;Object.defineProperty(t,"shape",{get:()=>{const m={...d};return Object.defineProperty(t,"shape",{value:m}),m}})}const i=hy(()=>a5(t));mt(e._zod,"propValues",()=>{const d=t.shape,m={};for(const h in d){const y=d[h]._zod;if(y.values){m[h]??(m[h]=new Set);for(const g of y.values)m[h].add(g)}}return m});const o=vd,s=t.catchall;let c;e._zod.parse=(d,m)=>{c??(c=i.value);const h=d.value;if(!o(h))return d.issues.push({expected:"object",code:"invalid_type",input:h,inst:e}),d;d.value={};const y=[],g=c.shape;for(const E of c.keys){const S=g[E],$=S._zod.optout==="optional",x=S._zod.run({value:h[E],issues:[]},m);x instanceof Promise?y.push(x.then(w=>_d(w,d,E,h,$))):_d(x,d,E,h,$)}return s?i5(y,h,d,m,i.value,e):y.length?Promise.all(y).then(()=>d):d}}),kB=ue("$ZodObjectJIT",(e,t)=>{OB.init(e,t);const n=e._zod.parse,i=hy(()=>a5(t)),o=E=>{const S=new tB(["shape","payload","ctx"]),$=i.value,x=A=>{const L=P1(A);return`shape[${L}]._zod.run({ value: input[${L}], issues: [] }, ctx)`};S.write("const input = payload.value;");const w=Object.create(null);let R=0;for(const A of $.keys)w[A]=`key_${R++}`;S.write("const newResult = {};");for(const A of $.keys){const L=w[A],M=P1(A),V=E[A]?._zod?.optout==="optional";S.write(`const ${L} = ${x(A)};`),V?S.write(`
|
|
85
|
-
if (${L}.issues.length) {
|
|
86
|
-
if (${M} in input) {
|
|
87
|
-
payload.issues = payload.issues.concat(${L}.issues.map(iss => ({
|
|
88
|
-
...iss,
|
|
89
|
-
path: iss.path ? [${M}, ...iss.path] : [${M}]
|
|
90
|
-
})));
|
|
91
|
-
}
|
|
92
|
-
}
|
|
93
|
-
|
|
94
|
-
if (${L}.value === undefined) {
|
|
95
|
-
if (${M} in input) {
|
|
96
|
-
newResult[${M}] = undefined;
|
|
97
|
-
}
|
|
98
|
-
} else {
|
|
99
|
-
newResult[${M}] = ${L}.value;
|
|
100
|
-
}
|
|
101
|
-
|
|
102
|
-
`):S.write(`
|
|
103
|
-
if (${L}.issues.length) {
|
|
104
|
-
payload.issues = payload.issues.concat(${L}.issues.map(iss => ({
|
|
105
|
-
...iss,
|
|
106
|
-
path: iss.path ? [${M}, ...iss.path] : [${M}]
|
|
107
|
-
})));
|
|
108
|
-
}
|
|
109
|
-
|
|
110
|
-
if (${L}.value === undefined) {
|
|
111
|
-
if (${M} in input) {
|
|
112
|
-
newResult[${M}] = undefined;
|
|
113
|
-
}
|
|
114
|
-
} else {
|
|
115
|
-
newResult[${M}] = ${L}.value;
|
|
116
|
-
}
|
|
117
|
-
|
|
118
|
-
`)}S.write("payload.value = newResult;"),S.write("return payload;");const F=S.compile();return(A,L)=>F(E,A,L)};let s;const c=vd,d=!Ux.jitless,h=d&&qO.value,y=t.catchall;let g;e._zod.parse=(E,S)=>{g??(g=i.value);const $=E.value;return c($)?d&&h&&S?.async===!1&&S.jitless!==!0?(s||(s=o(t.shape)),E=s(E,S),y?i5([],$,E,S,g,e):E):n(E,S):(E.issues.push({expected:"object",code:"invalid_type",input:$,inst:e}),E)}});function j1(e,t,n,i){for(const s of e)if(s.issues.length===0)return t.value=s.value,t;const o=e.filter(s=>!Vo(s));return o.length===1?(t.value=o[0].value,o[0]):(t.issues.push({code:"invalid_union",input:t.value,inst:n,errors:e.map(s=>s.issues.map(c=>Ui(c,i,zi())))}),t)}const BB=ue("$ZodUnion",(e,t)=>{kt.init(e,t),mt(e._zod,"optin",()=>t.options.some(o=>o._zod.optin==="optional")?"optional":void 0),mt(e._zod,"optout",()=>t.options.some(o=>o._zod.optout==="optional")?"optional":void 0),mt(e._zod,"values",()=>{if(t.options.every(o=>o._zod.values))return new Set(t.options.flatMap(o=>Array.from(o._zod.values)))}),mt(e._zod,"pattern",()=>{if(t.options.every(o=>o._zod.pattern)){const o=t.options.map(s=>s._zod.pattern);return new RegExp(`^(${o.map(s=>gy(s.source)).join("|")})$`)}});const n=t.options.length===1,i=t.options[0]._zod.run;e._zod.parse=(o,s)=>{if(n)return i(o,s);let c=!1;const d=[];for(const m of t.options){const h=m._zod.run({value:o.value,issues:[]},s);if(h instanceof Promise)d.push(h),c=!0;else{if(h.issues.length===0)return h;d.push(h)}}return c?Promise.all(d).then(m=>j1(m,o,e,s)):j1(d,o,e,s)}}),LB=ue("$ZodIntersection",(e,t)=>{kt.init(e,t),e._zod.parse=(n,i)=>{const o=n.value,s=t.left._zod.run({value:o,issues:[]},i),c=t.right._zod.run({value:o,issues:[]},i);return s instanceof Promise||c instanceof Promise?Promise.all([s,c]).then(([m,h])=>z1(n,m,h)):z1(n,s,c)}});function d0(e,t){if(e===t)return{valid:!0,data:e};if(e instanceof Date&&t instanceof Date&&+e==+t)return{valid:!0,data:e};if(Fs(e)&&Fs(t)){const n=Object.keys(t),i=Object.keys(e).filter(s=>n.indexOf(s)!==-1),o={...e,...t};for(const s of i){const c=d0(e[s],t[s]);if(!c.valid)return{valid:!1,mergeErrorPath:[s,...c.mergeErrorPath]};o[s]=c.data}return{valid:!0,data:o}}if(Array.isArray(e)&&Array.isArray(t)){if(e.length!==t.length)return{valid:!1,mergeErrorPath:[]};const n=[];for(let i=0;i<e.length;i++){const o=e[i],s=t[i],c=d0(o,s);if(!c.valid)return{valid:!1,mergeErrorPath:[i,...c.mergeErrorPath]};n.push(c.data)}return{valid:!0,data:n}}return{valid:!1,mergeErrorPath:[]}}function z1(e,t,n){const i=new Map;let o;for(const d of t.issues)if(d.code==="unrecognized_keys"){o??(o=d);for(const m of d.keys)i.has(m)||i.set(m,{}),i.get(m).l=!0}else e.issues.push(d);for(const d of n.issues)if(d.code==="unrecognized_keys")for(const m of d.keys)i.has(m)||i.set(m,{}),i.get(m).r=!0;else e.issues.push(d);const s=[...i].filter(([,d])=>d.l&&d.r).map(([d])=>d);if(s.length&&o&&e.issues.push({...o,keys:s}),Vo(e))return e;const c=d0(t.value,n.value);if(!c.valid)throw new Error(`Unmergable intersection. Error path: ${JSON.stringify(c.mergeErrorPath)}`);return e.value=c.data,e}const PB=ue("$ZodEnum",(e,t)=>{kt.init(e,t);const n=Hx(t.entries),i=new Set(n);e._zod.values=i,e._zod.pattern=new RegExp(`^(${n.filter(o=>KO.has(typeof o)).map(o=>typeof o=="string"?ol(o):o.toString()).join("|")})$`),e._zod.parse=(o,s)=>{const c=o.value;return i.has(c)||o.issues.push({code:"invalid_value",values:n,input:c,inst:e}),o}}),FB=ue("$ZodLiteral",(e,t)=>{if(kt.init(e,t),t.values.length===0)throw new Error("Cannot create literal schema with no valid values");const n=new Set(t.values);e._zod.values=n,e._zod.pattern=new RegExp(`^(${t.values.map(i=>typeof i=="string"?ol(i):i?ol(i.toString()):String(i)).join("|")})$`),e._zod.parse=(i,o)=>{const s=i.value;return n.has(s)||i.issues.push({code:"invalid_value",values:t.values,input:s,inst:e}),i}}),IB=ue("$ZodTransform",(e,t)=>{kt.init(e,t),e._zod.parse=(n,i)=>{if(i.direction==="backward")throw new zx(e.constructor.name);const o=t.transform(n.value,n);if(i.async)return(o instanceof Promise?o:Promise.resolve(o)).then(c=>(n.value=c,n));if(o instanceof Promise)throw new Jo;return n.value=o,n}});function U1(e,t){return e.issues.length&&t===void 0?{issues:[],value:void 0}:e}const o5=ue("$ZodOptional",(e,t)=>{kt.init(e,t),e._zod.optin="optional",e._zod.optout="optional",mt(e._zod,"values",()=>t.innerType._zod.values?new Set([...t.innerType._zod.values,void 0]):void 0),mt(e._zod,"pattern",()=>{const n=t.innerType._zod.pattern;return n?new RegExp(`^(${gy(n.source)})?$`):void 0}),e._zod.parse=(n,i)=>{if(t.innerType._zod.optin==="optional"){const o=t.innerType._zod.run(n,i);return o instanceof Promise?o.then(s=>U1(s,n.value)):U1(o,n.value)}return n.value===void 0?n:t.innerType._zod.run(n,i)}}),jB=ue("$ZodExactOptional",(e,t)=>{o5.init(e,t),mt(e._zod,"values",()=>t.innerType._zod.values),mt(e._zod,"pattern",()=>t.innerType._zod.pattern),e._zod.parse=(n,i)=>t.innerType._zod.run(n,i)}),zB=ue("$ZodNullable",(e,t)=>{kt.init(e,t),mt(e._zod,"optin",()=>t.innerType._zod.optin),mt(e._zod,"optout",()=>t.innerType._zod.optout),mt(e._zod,"pattern",()=>{const n=t.innerType._zod.pattern;return n?new RegExp(`^(${gy(n.source)}|null)$`):void 0}),mt(e._zod,"values",()=>t.innerType._zod.values?new Set([...t.innerType._zod.values,null]):void 0),e._zod.parse=(n,i)=>n.value===null?n:t.innerType._zod.run(n,i)}),UB=ue("$ZodDefault",(e,t)=>{kt.init(e,t),e._zod.optin="optional",mt(e._zod,"values",()=>t.innerType._zod.values),e._zod.parse=(n,i)=>{if(i.direction==="backward")return t.innerType._zod.run(n,i);if(n.value===void 0)return n.value=t.defaultValue,n;const o=t.innerType._zod.run(n,i);return o instanceof Promise?o.then(s=>H1(s,t)):H1(o,t)}});function H1(e,t){return e.value===void 0&&(e.value=t.defaultValue),e}const HB=ue("$ZodPrefault",(e,t)=>{kt.init(e,t),e._zod.optin="optional",mt(e._zod,"values",()=>t.innerType._zod.values),e._zod.parse=(n,i)=>(i.direction==="backward"||n.value===void 0&&(n.value=t.defaultValue),t.innerType._zod.run(n,i))}),VB=ue("$ZodNonOptional",(e,t)=>{kt.init(e,t),mt(e._zod,"values",()=>{const n=t.innerType._zod.values;return n?new Set([...n].filter(i=>i!==void 0)):void 0}),e._zod.parse=(n,i)=>{const o=t.innerType._zod.run(n,i);return o instanceof Promise?o.then(s=>V1(s,e)):V1(o,e)}});function V1(e,t){return!e.issues.length&&e.value===void 0&&e.issues.push({code:"invalid_type",expected:"nonoptional",input:e.value,inst:t}),e}const GB=ue("$ZodCatch",(e,t)=>{kt.init(e,t),mt(e._zod,"optin",()=>t.innerType._zod.optin),mt(e._zod,"optout",()=>t.innerType._zod.optout),mt(e._zod,"values",()=>t.innerType._zod.values),e._zod.parse=(n,i)=>{if(i.direction==="backward")return t.innerType._zod.run(n,i);const o=t.innerType._zod.run(n,i);return o instanceof Promise?o.then(s=>(n.value=s.value,s.issues.length&&(n.value=t.catchValue({...n,error:{issues:s.issues.map(c=>Ui(c,i,zi()))},input:n.value}),n.issues=[]),n)):(n.value=o.value,o.issues.length&&(n.value=t.catchValue({...n,error:{issues:o.issues.map(s=>Ui(s,i,zi()))},input:n.value}),n.issues=[]),n)}}),ZB=ue("$ZodPipe",(e,t)=>{kt.init(e,t),mt(e._zod,"values",()=>t.in._zod.values),mt(e._zod,"optin",()=>t.in._zod.optin),mt(e._zod,"optout",()=>t.out._zod.optout),mt(e._zod,"propValues",()=>t.in._zod.propValues),e._zod.parse=(n,i)=>{if(i.direction==="backward"){const s=t.out._zod.run(n,i);return s instanceof Promise?s.then(c=>Rc(c,t.in,i)):Rc(s,t.in,i)}const o=t.in._zod.run(n,i);return o instanceof Promise?o.then(s=>Rc(s,t.out,i)):Rc(o,t.out,i)}});function Rc(e,t,n){return e.issues.length?(e.aborted=!0,e):t._zod.run({value:e.value,issues:e.issues},n)}const YB=ue("$ZodReadonly",(e,t)=>{kt.init(e,t),mt(e._zod,"propValues",()=>t.innerType._zod.propValues),mt(e._zod,"values",()=>t.innerType._zod.values),mt(e._zod,"optin",()=>t.innerType?._zod?.optin),mt(e._zod,"optout",()=>t.innerType?._zod?.optout),e._zod.parse=(n,i)=>{if(i.direction==="backward")return t.innerType._zod.run(n,i);const o=t.innerType._zod.run(n,i);return o instanceof Promise?o.then(G1):G1(o)}});function G1(e){return e.value=Object.freeze(e.value),e}const qB=ue("$ZodCustom",(e,t)=>{Tn.init(e,t),kt.init(e,t),e._zod.parse=(n,i)=>n,e._zod.check=n=>{const i=n.value,o=t.fn(i);if(o instanceof Promise)return o.then(s=>Z1(s,n,i,e));Z1(o,n,i,e)}});function Z1(e,t,n,i){if(!e){const o={code:"custom",input:n,inst:i,path:[...i._zod.def.path??[]],continue:!i._zod.def.abort};i._zod.def.params&&(o.params=i._zod.def.params),t.issues.push(Is(o))}}var Y1;class KB{constructor(){this._map=new WeakMap,this._idmap=new Map}add(t,...n){const i=n[0];return this._map.set(t,i),i&&typeof i=="object"&&"id"in i&&this._idmap.set(i.id,t),this}clear(){return this._map=new WeakMap,this._idmap=new Map,this}remove(t){const n=this._map.get(t);return n&&typeof n=="object"&&"id"in n&&this._idmap.delete(n.id),this._map.delete(t),this}get(t){const n=t._zod.parent;if(n){const i={...this.get(n)??{}};delete i.id;const o={...i,...this._map.get(t)};return Object.keys(o).length?o:void 0}return this._map.get(t)}has(t){return this._map.has(t)}}function WB(){return new KB}(Y1=globalThis).__zod_globalRegistry??(Y1.__zod_globalRegistry=WB());const _s=globalThis.__zod_globalRegistry;function QB(e,t){return new e({type:"string",...Le(t)})}function JB(e,t){return new e({type:"string",format:"email",check:"string_format",abort:!1,...Le(t)})}function q1(e,t){return new e({type:"string",format:"guid",check:"string_format",abort:!1,...Le(t)})}function XB(e,t){return new e({type:"string",format:"uuid",check:"string_format",abort:!1,...Le(t)})}function eL(e,t){return new e({type:"string",format:"uuid",check:"string_format",abort:!1,version:"v4",...Le(t)})}function tL(e,t){return new e({type:"string",format:"uuid",check:"string_format",abort:!1,version:"v6",...Le(t)})}function nL(e,t){return new e({type:"string",format:"uuid",check:"string_format",abort:!1,version:"v7",...Le(t)})}function rL(e,t){return new e({type:"string",format:"url",check:"string_format",abort:!1,...Le(t)})}function aL(e,t){return new e({type:"string",format:"emoji",check:"string_format",abort:!1,...Le(t)})}function iL(e,t){return new e({type:"string",format:"nanoid",check:"string_format",abort:!1,...Le(t)})}function oL(e,t){return new e({type:"string",format:"cuid",check:"string_format",abort:!1,...Le(t)})}function lL(e,t){return new e({type:"string",format:"cuid2",check:"string_format",abort:!1,...Le(t)})}function sL(e,t){return new e({type:"string",format:"ulid",check:"string_format",abort:!1,...Le(t)})}function uL(e,t){return new e({type:"string",format:"xid",check:"string_format",abort:!1,...Le(t)})}function cL(e,t){return new e({type:"string",format:"ksuid",check:"string_format",abort:!1,...Le(t)})}function dL(e,t){return new e({type:"string",format:"ipv4",check:"string_format",abort:!1,...Le(t)})}function fL(e,t){return new e({type:"string",format:"ipv6",check:"string_format",abort:!1,...Le(t)})}function mL(e,t){return new e({type:"string",format:"cidrv4",check:"string_format",abort:!1,...Le(t)})}function pL(e,t){return new e({type:"string",format:"cidrv6",check:"string_format",abort:!1,...Le(t)})}function hL(e,t){return new e({type:"string",format:"base64",check:"string_format",abort:!1,...Le(t)})}function yL(e,t){return new e({type:"string",format:"base64url",check:"string_format",abort:!1,...Le(t)})}function gL(e,t){return new e({type:"string",format:"e164",check:"string_format",abort:!1,...Le(t)})}function bL(e,t){return new e({type:"string",format:"jwt",check:"string_format",abort:!1,...Le(t)})}function vL(e,t){return new e({type:"string",format:"datetime",check:"string_format",offset:!1,local:!1,precision:null,...Le(t)})}function _L(e,t){return new e({type:"string",format:"date",check:"string_format",...Le(t)})}function EL(e,t){return new e({type:"string",format:"time",check:"string_format",precision:null,...Le(t)})}function SL(e,t){return new e({type:"string",format:"duration",check:"string_format",...Le(t)})}function $L(e,t){return new e({type:"number",coerce:!0,checks:[],...Le(t)})}function DL(e,t){return new e({type:"number",check:"number_format",abort:!1,format:"safeint",...Le(t)})}function xL(e,t){return new e({type:"boolean",...Le(t)})}function CL(e){return new e({type:"unknown"})}function AL(e,t){return new e({type:"never",...Le(t)})}function K1(e,t){return new e5({check:"less_than",...Le(t),value:e,inclusive:!1})}function oh(e,t){return new e5({check:"less_than",...Le(t),value:e,inclusive:!0})}function W1(e,t){return new t5({check:"greater_than",...Le(t),value:e,inclusive:!1})}function lh(e,t){return new t5({check:"greater_than",...Le(t),value:e,inclusive:!0})}function Q1(e,t){return new Hk({check:"multiple_of",...Le(t),value:e})}function l5(e,t){return new Gk({check:"max_length",...Le(t),maximum:e})}function Ed(e,t){return new Zk({check:"min_length",...Le(t),minimum:e})}function s5(e,t){return new Yk({check:"length_equals",...Le(t),length:e})}function wL(e,t){return new qk({check:"string_format",format:"regex",...Le(t),pattern:e})}function TL(e){return new Kk({check:"string_format",format:"lowercase",...Le(e)})}function NL(e){return new Wk({check:"string_format",format:"uppercase",...Le(e)})}function ML(e,t){return new Qk({check:"string_format",format:"includes",...Le(t),includes:e})}function RL(e,t){return new Jk({check:"string_format",format:"starts_with",...Le(t),prefix:e})}function OL(e,t){return new Xk({check:"string_format",format:"ends_with",...Le(t),suffix:e})}function fl(e){return new eB({check:"overwrite",tx:e})}function kL(e){return fl(t=>t.normalize(e))}function BL(){return fl(e=>e.trim())}function LL(){return fl(e=>e.toLowerCase())}function PL(){return fl(e=>e.toUpperCase())}function FL(){return fl(e=>YO(e))}function IL(e,t,n){return new e({type:"array",element:t,...Le(n)})}function jL(e,t,n){return new e({type:"custom",check:"custom",fn:t,...Le(n)})}function zL(e){const t=UL(n=>(n.addIssue=i=>{if(typeof i=="string")n.issues.push(Is(i,n.value,t._zod.def));else{const o=i;o.fatal&&(o.continue=!1),o.code??(o.code="custom"),o.input??(o.input=n.value),o.inst??(o.inst=t),o.continue??(o.continue=!t._zod.def.abort),n.issues.push(Is(o))}},e(n.value,n)));return t}function UL(e,t){const n=new Tn({check:"custom",...Le(t)});return n._zod.check=e,n}function u5(e){let t=e?.target??"draft-2020-12";return t==="draft-4"&&(t="draft-04"),t==="draft-7"&&(t="draft-07"),{processors:e.processors??{},metadataRegistry:e?.metadata??_s,target:t,unrepresentable:e?.unrepresentable??"throw",override:e?.override??(()=>{}),io:e?.io??"output",counter:0,seen:new Map,cycles:e?.cycles??"ref",reused:e?.reused??"inline",external:e?.external??void 0}}function an(e,t,n={path:[],schemaPath:[]}){var i;const o=e._zod.def,s=t.seen.get(e);if(s)return s.count++,n.schemaPath.includes(e)&&(s.cycle=n.path),s.schema;const c={schema:{},count:1,cycle:void 0,path:n.path};t.seen.set(e,c);const d=e._zod.toJSONSchema?.();if(d)c.schema=d;else{const y={...n,schemaPath:[...n.schemaPath,e],path:n.path};if(e._zod.processJSONSchema)e._zod.processJSONSchema(t,c.schema,y);else{const E=c.schema,S=t.processors[o.type];if(!S)throw new Error(`[toJSONSchema]: Non-representable type encountered: ${o.type}`);S(e,t,E,y)}const g=e._zod.parent;g&&(c.ref||(c.ref=g),an(g,t,y),t.seen.get(g).isParent=!0)}const m=t.metadataRegistry.get(e);return m&&Object.assign(c.schema,m),t.io==="input"&&dn(e)&&(delete c.schema.examples,delete c.schema.default),t.io==="input"&&c.schema._prefault&&((i=c.schema).default??(i.default=c.schema._prefault)),delete c.schema._prefault,t.seen.get(e).schema}function c5(e,t){const n=e.seen.get(t);if(!n)throw new Error("Unprocessed schema. This is a bug in Zod.");const i=new Map;for(const c of e.seen.entries()){const d=e.metadataRegistry.get(c[0])?.id;if(d){const m=i.get(d);if(m&&m!==c[0])throw new Error(`Duplicate schema id "${d}" detected during JSON Schema conversion. Two different schemas cannot share the same id when converted together.`);i.set(d,c[0])}}const o=c=>{const d=e.target==="draft-2020-12"?"$defs":"definitions";if(e.external){const g=e.external.registry.get(c[0])?.id,E=e.external.uri??($=>$);if(g)return{ref:E(g)};const S=c[1].defId??c[1].schema.id??`schema${e.counter++}`;return c[1].defId=S,{defId:S,ref:`${E("__shared")}#/${d}/${S}`}}if(c[1]===n)return{ref:"#"};const h=`#/${d}/`,y=c[1].schema.id??`__schema${e.counter++}`;return{defId:y,ref:h+y}},s=c=>{if(c[1].schema.$ref)return;const d=c[1],{ref:m,defId:h}=o(c);d.def={...d.schema},h&&(d.defId=h);const y=d.schema;for(const g in y)delete y[g];y.$ref=m};if(e.cycles==="throw")for(const c of e.seen.entries()){const d=c[1];if(d.cycle)throw new Error(`Cycle detected: #/${d.cycle?.join("/")}/<root>
|
|
119
|
-
|
|
120
|
-
Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.`)}for(const c of e.seen.entries()){const d=c[1];if(t===c[0]){s(c);continue}if(e.external){const h=e.external.registry.get(c[0])?.id;if(t!==c[0]&&h){s(c);continue}}if(e.metadataRegistry.get(c[0])?.id){s(c);continue}if(d.cycle){s(c);continue}if(d.count>1&&e.reused==="ref"){s(c);continue}}}function d5(e,t){const n=e.seen.get(t);if(!n)throw new Error("Unprocessed schema. This is a bug in Zod.");const i=c=>{const d=e.seen.get(c);if(d.ref===null)return;const m=d.def??d.schema,h={...m},y=d.ref;if(d.ref=null,y){i(y);const E=e.seen.get(y),S=E.schema;if(S.$ref&&(e.target==="draft-07"||e.target==="draft-04"||e.target==="openapi-3.0")?(m.allOf=m.allOf??[],m.allOf.push(S)):Object.assign(m,S),Object.assign(m,h),c._zod.parent===y)for(const x in m)x==="$ref"||x==="allOf"||x in h||delete m[x];if(S.$ref&&E.def)for(const x in m)x==="$ref"||x==="allOf"||x in E.def&&JSON.stringify(m[x])===JSON.stringify(E.def[x])&&delete m[x]}const g=c._zod.parent;if(g&&g!==y){i(g);const E=e.seen.get(g);if(E?.schema.$ref&&(m.$ref=E.schema.$ref,E.def))for(const S in m)S==="$ref"||S==="allOf"||S in E.def&&JSON.stringify(m[S])===JSON.stringify(E.def[S])&&delete m[S]}e.override({zodSchema:c,jsonSchema:m,path:d.path??[]})};for(const c of[...e.seen.entries()].reverse())i(c[0]);const o={};if(e.target==="draft-2020-12"?o.$schema="https://json-schema.org/draft/2020-12/schema":e.target==="draft-07"?o.$schema="http://json-schema.org/draft-07/schema#":e.target==="draft-04"?o.$schema="http://json-schema.org/draft-04/schema#":e.target,e.external?.uri){const c=e.external.registry.get(t)?.id;if(!c)throw new Error("Schema is missing an `id` property");o.$id=e.external.uri(c)}Object.assign(o,n.def??n.schema);const s=e.external?.defs??{};for(const c of e.seen.entries()){const d=c[1];d.def&&d.defId&&(s[d.defId]=d.def)}e.external||Object.keys(s).length>0&&(e.target==="draft-2020-12"?o.$defs=s:o.definitions=s);try{const c=JSON.parse(JSON.stringify(o));return Object.defineProperty(c,"~standard",{value:{...t["~standard"],jsonSchema:{input:Sd(t,"input",e.processors),output:Sd(t,"output",e.processors)}},enumerable:!1,writable:!1}),c}catch{throw new Error("Error converting schema to JSON.")}}function dn(e,t){const n=t??{seen:new Set};if(n.seen.has(e))return!1;n.seen.add(e);const i=e._zod.def;if(i.type==="transform")return!0;if(i.type==="array")return dn(i.element,n);if(i.type==="set")return dn(i.valueType,n);if(i.type==="lazy")return dn(i.getter(),n);if(i.type==="promise"||i.type==="optional"||i.type==="nonoptional"||i.type==="nullable"||i.type==="readonly"||i.type==="default"||i.type==="prefault")return dn(i.innerType,n);if(i.type==="intersection")return dn(i.left,n)||dn(i.right,n);if(i.type==="record"||i.type==="map")return dn(i.keyType,n)||dn(i.valueType,n);if(i.type==="pipe")return dn(i.in,n)||dn(i.out,n);if(i.type==="object"){for(const o in i.shape)if(dn(i.shape[o],n))return!0;return!1}if(i.type==="union"){for(const o of i.options)if(dn(o,n))return!0;return!1}if(i.type==="tuple"){for(const o of i.items)if(dn(o,n))return!0;return!!(i.rest&&dn(i.rest,n))}return!1}const HL=(e,t={})=>n=>{const i=u5({...n,processors:t});return an(e,i),c5(i,e),d5(i,e)},Sd=(e,t,n={})=>i=>{const{libraryOptions:o,target:s}=i??{},c=u5({...o??{},target:s,io:t,processors:n});return an(e,c),c5(c,e),d5(c,e)},VL={guid:"uuid",url:"uri",datetime:"date-time",json_string:"json-string",regex:""},GL=(e,t,n,i)=>{const o=n;o.type="string";const{minimum:s,maximum:c,format:d,patterns:m,contentEncoding:h}=e._zod.bag;if(typeof s=="number"&&(o.minLength=s),typeof c=="number"&&(o.maxLength=c),d&&(o.format=VL[d]??d,o.format===""&&delete o.format,d==="time"&&delete o.format),h&&(o.contentEncoding=h),m&&m.size>0){const y=[...m];y.length===1?o.pattern=y[0].source:y.length>1&&(o.allOf=[...y.map(g=>({...t.target==="draft-07"||t.target==="draft-04"||t.target==="openapi-3.0"?{type:"string"}:{},pattern:g.source}))])}},ZL=(e,t,n,i)=>{const o=n,{minimum:s,maximum:c,format:d,multipleOf:m,exclusiveMaximum:h,exclusiveMinimum:y}=e._zod.bag;typeof d=="string"&&d.includes("int")?o.type="integer":o.type="number",typeof y=="number"&&(t.target==="draft-04"||t.target==="openapi-3.0"?(o.minimum=y,o.exclusiveMinimum=!0):o.exclusiveMinimum=y),typeof s=="number"&&(o.minimum=s,typeof y=="number"&&t.target!=="draft-04"&&(y>=s?delete o.minimum:delete o.exclusiveMinimum)),typeof h=="number"&&(t.target==="draft-04"||t.target==="openapi-3.0"?(o.maximum=h,o.exclusiveMaximum=!0):o.exclusiveMaximum=h),typeof c=="number"&&(o.maximum=c,typeof h=="number"&&t.target!=="draft-04"&&(h<=c?delete o.maximum:delete o.exclusiveMaximum)),typeof m=="number"&&(o.multipleOf=m)},YL=(e,t,n,i)=>{n.type="boolean"},qL=(e,t,n,i)=>{n.not={}},KL=(e,t,n,i)=>{},WL=(e,t,n,i)=>{const o=e._zod.def,s=Hx(o.entries);s.every(c=>typeof c=="number")&&(n.type="number"),s.every(c=>typeof c=="string")&&(n.type="string"),n.enum=s},QL=(e,t,n,i)=>{const o=e._zod.def,s=[];for(const c of o.values)if(c===void 0){if(t.unrepresentable==="throw")throw new Error("Literal `undefined` cannot be represented in JSON Schema")}else if(typeof c=="bigint"){if(t.unrepresentable==="throw")throw new Error("BigInt literals cannot be represented in JSON Schema");s.push(Number(c))}else s.push(c);if(s.length!==0)if(s.length===1){const c=s[0];n.type=c===null?"null":typeof c,t.target==="draft-04"||t.target==="openapi-3.0"?n.enum=[c]:n.const=c}else s.every(c=>typeof c=="number")&&(n.type="number"),s.every(c=>typeof c=="string")&&(n.type="string"),s.every(c=>typeof c=="boolean")&&(n.type="boolean"),s.every(c=>c===null)&&(n.type="null"),n.enum=s},JL=(e,t,n,i)=>{if(t.unrepresentable==="throw")throw new Error("Custom types cannot be represented in JSON Schema")},XL=(e,t,n,i)=>{if(t.unrepresentable==="throw")throw new Error("Transforms cannot be represented in JSON Schema")},eP=(e,t,n,i)=>{const o=n,s=e._zod.def,{minimum:c,maximum:d}=e._zod.bag;typeof c=="number"&&(o.minItems=c),typeof d=="number"&&(o.maxItems=d),o.type="array",o.items=an(s.element,t,{...i,path:[...i.path,"items"]})},tP=(e,t,n,i)=>{const o=n,s=e._zod.def;o.type="object",o.properties={};const c=s.shape;for(const h in c)o.properties[h]=an(c[h],t,{...i,path:[...i.path,"properties",h]});const d=new Set(Object.keys(c)),m=new Set([...d].filter(h=>{const y=s.shape[h]._zod;return t.io==="input"?y.optin===void 0:y.optout===void 0}));m.size>0&&(o.required=Array.from(m)),s.catchall?._zod.def.type==="never"?o.additionalProperties=!1:s.catchall?s.catchall&&(o.additionalProperties=an(s.catchall,t,{...i,path:[...i.path,"additionalProperties"]})):t.io==="output"&&(o.additionalProperties=!1)},nP=(e,t,n,i)=>{const o=e._zod.def,s=o.inclusive===!1,c=o.options.map((d,m)=>an(d,t,{...i,path:[...i.path,s?"oneOf":"anyOf",m]}));s?n.oneOf=c:n.anyOf=c},rP=(e,t,n,i)=>{const o=e._zod.def,s=an(o.left,t,{...i,path:[...i.path,"allOf",0]}),c=an(o.right,t,{...i,path:[...i.path,"allOf",1]}),d=h=>"allOf"in h&&Object.keys(h).length===1,m=[...d(s)?s.allOf:[s],...d(c)?c.allOf:[c]];n.allOf=m},aP=(e,t,n,i)=>{const o=e._zod.def,s=an(o.innerType,t,i),c=t.seen.get(e);t.target==="openapi-3.0"?(c.ref=o.innerType,n.nullable=!0):n.anyOf=[s,{type:"null"}]},iP=(e,t,n,i)=>{const o=e._zod.def;an(o.innerType,t,i);const s=t.seen.get(e);s.ref=o.innerType},oP=(e,t,n,i)=>{const o=e._zod.def;an(o.innerType,t,i);const s=t.seen.get(e);s.ref=o.innerType,n.default=JSON.parse(JSON.stringify(o.defaultValue))},lP=(e,t,n,i)=>{const o=e._zod.def;an(o.innerType,t,i);const s=t.seen.get(e);s.ref=o.innerType,t.io==="input"&&(n._prefault=JSON.parse(JSON.stringify(o.defaultValue)))},sP=(e,t,n,i)=>{const o=e._zod.def;an(o.innerType,t,i);const s=t.seen.get(e);s.ref=o.innerType;let c;try{c=o.catchValue(void 0)}catch{throw new Error("Dynamic catch values are not supported in JSON Schema")}n.default=c},uP=(e,t,n,i)=>{const o=e._zod.def,s=t.io==="input"?o.in._zod.def.type==="transform"?o.out:o.in:o.out;an(s,t,i);const c=t.seen.get(e);c.ref=s},cP=(e,t,n,i)=>{const o=e._zod.def;an(o.innerType,t,i);const s=t.seen.get(e);s.ref=o.innerType,n.readOnly=!0},f5=(e,t,n,i)=>{const o=e._zod.def;an(o.innerType,t,i);const s=t.seen.get(e);s.ref=o.innerType},dP=ue("ZodISODateTime",(e,t)=>{pB.init(e,t),wt.init(e,t)});function fP(e){return vL(dP,e)}const mP=ue("ZodISODate",(e,t)=>{hB.init(e,t),wt.init(e,t)});function pP(e){return _L(mP,e)}const hP=ue("ZodISOTime",(e,t)=>{yB.init(e,t),wt.init(e,t)});function yP(e){return EL(hP,e)}const gP=ue("ZodISODuration",(e,t)=>{gB.init(e,t),wt.init(e,t)});function bP(e){return SL(gP,e)}const vP=(e,t)=>{qx.init(e,t),e.name="ZodError",Object.defineProperties(e,{format:{value:n=>ok(e,n)},flatten:{value:n=>ik(e,n)},addIssue:{value:n=>{e.issues.push(n),e.message=JSON.stringify(e.issues,c0,2)}},addIssues:{value:n=>{e.issues.push(...n),e.message=JSON.stringify(e.issues,c0,2)}},isEmpty:{get(){return e.issues.length===0}}})},cr=ue("ZodError",vP,{Parent:Error}),_P=vy(cr),EP=_y(cr),SP=ef(cr),$P=tf(cr),DP=uk(cr),xP=ck(cr),CP=dk(cr),AP=fk(cr),wP=mk(cr),TP=pk(cr),NP=hk(cr),MP=yk(cr),Bt=ue("ZodType",(e,t)=>(kt.init(e,t),Object.assign(e["~standard"],{jsonSchema:{input:Sd(e,"input"),output:Sd(e,"output")}}),e.toJSONSchema=HL(e,{}),e.def=t,e.type=t.type,Object.defineProperty(e,"_def",{value:t}),e.check=(...n)=>e.clone(ei(t,{checks:[...t.checks??[],...n.map(i=>typeof i=="function"?{_zod:{check:i,def:{check:"custom"},onattach:[]}}:i)]}),{parent:!0}),e.with=e.check,e.clone=(n,i)=>ti(e,n,i),e.brand=()=>e,e.register=((n,i)=>(n.add(e,i),e)),e.parse=(n,i)=>_P(e,n,i,{callee:e.parse}),e.safeParse=(n,i)=>SP(e,n,i),e.parseAsync=async(n,i)=>EP(e,n,i,{callee:e.parseAsync}),e.safeParseAsync=async(n,i)=>$P(e,n,i),e.spa=e.safeParseAsync,e.encode=(n,i)=>DP(e,n,i),e.decode=(n,i)=>xP(e,n,i),e.encodeAsync=async(n,i)=>CP(e,n,i),e.decodeAsync=async(n,i)=>AP(e,n,i),e.safeEncode=(n,i)=>wP(e,n,i),e.safeDecode=(n,i)=>TP(e,n,i),e.safeEncodeAsync=async(n,i)=>NP(e,n,i),e.safeDecodeAsync=async(n,i)=>MP(e,n,i),e.refine=(n,i)=>e.check(AF(n,i)),e.superRefine=n=>e.check(wF(n)),e.overwrite=n=>e.check(fl(n)),e.optional=()=>t3(e),e.exactOptional=()=>pF(e),e.nullable=()=>n3(e),e.nullish=()=>t3(n3(e)),e.nonoptional=n=>_F(e,n),e.array=()=>rF(e),e.or=n=>h5([e,n]),e.and=n=>sF(e,n),e.transform=n=>r3(e,fF(n)),e.default=n=>gF(e,n),e.prefault=n=>vF(e,n),e.catch=n=>SF(e,n),e.pipe=n=>r3(e,n),e.readonly=()=>xF(e),e.describe=n=>{const i=e.clone();return _s.add(i,{description:n}),i},Object.defineProperty(e,"description",{get(){return _s.get(e)?.description},configurable:!0}),e.meta=(...n)=>{if(n.length===0)return _s.get(e);const i=e.clone();return _s.add(i,n[0]),i},e.isOptional=()=>e.safeParse(void 0).success,e.isNullable=()=>e.safeParse(null).success,e.apply=n=>n(e),e)),m5=ue("_ZodString",(e,t)=>{Ey.init(e,t),Bt.init(e,t),e._zod.processJSONSchema=(i,o,s)=>GL(e,i,o);const n=e._zod.bag;e.format=n.format??null,e.minLength=n.minimum??null,e.maxLength=n.maximum??null,e.regex=(...i)=>e.check(wL(...i)),e.includes=(...i)=>e.check(ML(...i)),e.startsWith=(...i)=>e.check(RL(...i)),e.endsWith=(...i)=>e.check(OL(...i)),e.min=(...i)=>e.check(Ed(...i)),e.max=(...i)=>e.check(l5(...i)),e.length=(...i)=>e.check(s5(...i)),e.nonempty=(...i)=>e.check(Ed(1,...i)),e.lowercase=i=>e.check(TL(i)),e.uppercase=i=>e.check(NL(i)),e.trim=()=>e.check(BL()),e.normalize=(...i)=>e.check(kL(...i)),e.toLowerCase=()=>e.check(LL()),e.toUpperCase=()=>e.check(PL()),e.slugify=()=>e.check(FL())}),RP=ue("ZodString",(e,t)=>{Ey.init(e,t),m5.init(e,t),e.email=n=>e.check(JB(OP,n)),e.url=n=>e.check(rL(kP,n)),e.jwt=n=>e.check(bL(KP,n)),e.emoji=n=>e.check(aL(BP,n)),e.guid=n=>e.check(q1(J1,n)),e.uuid=n=>e.check(XB(Oc,n)),e.uuidv4=n=>e.check(eL(Oc,n)),e.uuidv6=n=>e.check(tL(Oc,n)),e.uuidv7=n=>e.check(nL(Oc,n)),e.nanoid=n=>e.check(iL(LP,n)),e.guid=n=>e.check(q1(J1,n)),e.cuid=n=>e.check(oL(PP,n)),e.cuid2=n=>e.check(lL(FP,n)),e.ulid=n=>e.check(sL(IP,n)),e.base64=n=>e.check(hL(ZP,n)),e.base64url=n=>e.check(yL(YP,n)),e.xid=n=>e.check(uL(jP,n)),e.ksuid=n=>e.check(cL(zP,n)),e.ipv4=n=>e.check(dL(UP,n)),e.ipv6=n=>e.check(fL(HP,n)),e.cidrv4=n=>e.check(mL(VP,n)),e.cidrv6=n=>e.check(pL(GP,n)),e.e164=n=>e.check(gL(qP,n)),e.datetime=n=>e.check(fP(n)),e.date=n=>e.check(pP(n)),e.time=n=>e.check(yP(n)),e.duration=n=>e.check(bP(n))});function ja(e){return QB(RP,e)}const wt=ue("ZodStringFormat",(e,t)=>{At.init(e,t),m5.init(e,t)}),OP=ue("ZodEmail",(e,t)=>{iB.init(e,t),wt.init(e,t)}),J1=ue("ZodGUID",(e,t)=>{rB.init(e,t),wt.init(e,t)}),Oc=ue("ZodUUID",(e,t)=>{aB.init(e,t),wt.init(e,t)}),kP=ue("ZodURL",(e,t)=>{oB.init(e,t),wt.init(e,t)}),BP=ue("ZodEmoji",(e,t)=>{lB.init(e,t),wt.init(e,t)}),LP=ue("ZodNanoID",(e,t)=>{sB.init(e,t),wt.init(e,t)}),PP=ue("ZodCUID",(e,t)=>{uB.init(e,t),wt.init(e,t)}),FP=ue("ZodCUID2",(e,t)=>{cB.init(e,t),wt.init(e,t)}),IP=ue("ZodULID",(e,t)=>{dB.init(e,t),wt.init(e,t)}),jP=ue("ZodXID",(e,t)=>{fB.init(e,t),wt.init(e,t)}),zP=ue("ZodKSUID",(e,t)=>{mB.init(e,t),wt.init(e,t)}),UP=ue("ZodIPv4",(e,t)=>{bB.init(e,t),wt.init(e,t)}),HP=ue("ZodIPv6",(e,t)=>{vB.init(e,t),wt.init(e,t)}),VP=ue("ZodCIDRv4",(e,t)=>{_B.init(e,t),wt.init(e,t)}),GP=ue("ZodCIDRv6",(e,t)=>{EB.init(e,t),wt.init(e,t)}),ZP=ue("ZodBase64",(e,t)=>{SB.init(e,t),wt.init(e,t)}),YP=ue("ZodBase64URL",(e,t)=>{DB.init(e,t),wt.init(e,t)}),qP=ue("ZodE164",(e,t)=>{xB.init(e,t),wt.init(e,t)}),KP=ue("ZodJWT",(e,t)=>{AB.init(e,t),wt.init(e,t)}),p5=ue("ZodNumber",(e,t)=>{r5.init(e,t),Bt.init(e,t),e._zod.processJSONSchema=(i,o,s)=>ZL(e,i,o),e.gt=(i,o)=>e.check(W1(i,o)),e.gte=(i,o)=>e.check(lh(i,o)),e.min=(i,o)=>e.check(lh(i,o)),e.lt=(i,o)=>e.check(K1(i,o)),e.lte=(i,o)=>e.check(oh(i,o)),e.max=(i,o)=>e.check(oh(i,o)),e.int=i=>e.check(X1(i)),e.safe=i=>e.check(X1(i)),e.positive=i=>e.check(W1(0,i)),e.nonnegative=i=>e.check(lh(0,i)),e.negative=i=>e.check(K1(0,i)),e.nonpositive=i=>e.check(oh(0,i)),e.multipleOf=(i,o)=>e.check(Q1(i,o)),e.step=(i,o)=>e.check(Q1(i,o)),e.finite=()=>e;const n=e._zod.bag;e.minValue=Math.max(n.minimum??Number.NEGATIVE_INFINITY,n.exclusiveMinimum??Number.NEGATIVE_INFINITY)??null,e.maxValue=Math.min(n.maximum??Number.POSITIVE_INFINITY,n.exclusiveMaximum??Number.POSITIVE_INFINITY)??null,e.isInt=(n.format??"").includes("int")||Number.isSafeInteger(n.multipleOf??.5),e.isFinite=!0,e.format=n.format??null}),WP=ue("ZodNumberFormat",(e,t)=>{wB.init(e,t),p5.init(e,t)});function X1(e){return DL(WP,e)}const QP=ue("ZodBoolean",(e,t)=>{TB.init(e,t),Bt.init(e,t),e._zod.processJSONSchema=(n,i,o)=>YL(e,n,i)});function JP(e){return xL(QP,e)}const XP=ue("ZodUnknown",(e,t)=>{NB.init(e,t),Bt.init(e,t),e._zod.processJSONSchema=(n,i,o)=>KL()});function e3(){return CL(XP)}const eF=ue("ZodNever",(e,t)=>{MB.init(e,t),Bt.init(e,t),e._zod.processJSONSchema=(n,i,o)=>qL(e,n,i)});function tF(e){return AL(eF,e)}const nF=ue("ZodArray",(e,t)=>{RB.init(e,t),Bt.init(e,t),e._zod.processJSONSchema=(n,i,o)=>eP(e,n,i,o),e.element=t.element,e.min=(n,i)=>e.check(Ed(n,i)),e.nonempty=n=>e.check(Ed(1,n)),e.max=(n,i)=>e.check(l5(n,i)),e.length=(n,i)=>e.check(s5(n,i)),e.unwrap=()=>e.element});function rF(e,t){return IL(nF,e,t)}const aF=ue("ZodObject",(e,t)=>{kB.init(e,t),Bt.init(e,t),e._zod.processJSONSchema=(n,i,o)=>tP(e,n,i,o),mt(e,"shape",()=>t.shape),e.keyof=()=>zo(Object.keys(e._zod.def.shape)),e.catchall=n=>e.clone({...e._zod.def,catchall:n}),e.passthrough=()=>e.clone({...e._zod.def,catchall:e3()}),e.loose=()=>e.clone({...e._zod.def,catchall:e3()}),e.strict=()=>e.clone({...e._zod.def,catchall:tF()}),e.strip=()=>e.clone({...e._zod.def,catchall:void 0}),e.extend=n=>ek(e,n),e.safeExtend=n=>tk(e,n),e.merge=n=>nk(e,n),e.pick=n=>JO(e,n),e.omit=n=>XO(e,n),e.partial=(...n)=>rk(y5,e,n[0]),e.required=(...n)=>ak(g5,e,n[0])});function iF(e,t){const n={type:"object",shape:e??{},...Le(t)};return new aF(n)}const oF=ue("ZodUnion",(e,t)=>{BB.init(e,t),Bt.init(e,t),e._zod.processJSONSchema=(n,i,o)=>nP(e,n,i,o),e.options=t.options});function h5(e,t){return new oF({type:"union",options:e,...Le(t)})}const lF=ue("ZodIntersection",(e,t)=>{LB.init(e,t),Bt.init(e,t),e._zod.processJSONSchema=(n,i,o)=>rP(e,n,i,o)});function sF(e,t){return new lF({type:"intersection",left:e,right:t})}const f0=ue("ZodEnum",(e,t)=>{PB.init(e,t),Bt.init(e,t),e._zod.processJSONSchema=(i,o,s)=>WL(e,i,o),e.enum=t.entries,e.options=Object.values(t.entries);const n=new Set(Object.keys(t.entries));e.extract=(i,o)=>{const s={};for(const c of i)if(n.has(c))s[c]=t.entries[c];else throw new Error(`Key ${c} not found in enum`);return new f0({...t,checks:[],...Le(o),entries:s})},e.exclude=(i,o)=>{const s={...t.entries};for(const c of i)if(n.has(c))delete s[c];else throw new Error(`Key ${c} not found in enum`);return new f0({...t,checks:[],...Le(o),entries:s})}});function zo(e,t){const n=Array.isArray(e)?Object.fromEntries(e.map(i=>[i,i])):e;return new f0({type:"enum",entries:n,...Le(t)})}const uF=ue("ZodLiteral",(e,t)=>{FB.init(e,t),Bt.init(e,t),e._zod.processJSONSchema=(n,i,o)=>QL(e,n,i),e.values=new Set(t.values),Object.defineProperty(e,"value",{get(){if(t.values.length>1)throw new Error("This schema contains multiple valid literal values. Use `.values` instead.");return t.values[0]}})});function cF(e,t){return new uF({type:"literal",values:Array.isArray(e)?e:[e],...Le(t)})}const dF=ue("ZodTransform",(e,t)=>{IB.init(e,t),Bt.init(e,t),e._zod.processJSONSchema=(n,i,o)=>XL(e,n),e._zod.parse=(n,i)=>{if(i.direction==="backward")throw new zx(e.constructor.name);n.addIssue=s=>{if(typeof s=="string")n.issues.push(Is(s,n.value,t));else{const c=s;c.fatal&&(c.continue=!1),c.code??(c.code="custom"),c.input??(c.input=n.value),c.inst??(c.inst=e),n.issues.push(Is(c))}};const o=t.transform(n.value,n);return o instanceof Promise?o.then(s=>(n.value=s,n)):(n.value=o,n)}});function fF(e){return new dF({type:"transform",transform:e})}const y5=ue("ZodOptional",(e,t)=>{o5.init(e,t),Bt.init(e,t),e._zod.processJSONSchema=(n,i,o)=>f5(e,n,i,o),e.unwrap=()=>e._zod.def.innerType});function t3(e){return new y5({type:"optional",innerType:e})}const mF=ue("ZodExactOptional",(e,t)=>{jB.init(e,t),Bt.init(e,t),e._zod.processJSONSchema=(n,i,o)=>f5(e,n,i,o),e.unwrap=()=>e._zod.def.innerType});function pF(e){return new mF({type:"optional",innerType:e})}const hF=ue("ZodNullable",(e,t)=>{zB.init(e,t),Bt.init(e,t),e._zod.processJSONSchema=(n,i,o)=>aP(e,n,i,o),e.unwrap=()=>e._zod.def.innerType});function n3(e){return new hF({type:"nullable",innerType:e})}const yF=ue("ZodDefault",(e,t)=>{UB.init(e,t),Bt.init(e,t),e._zod.processJSONSchema=(n,i,o)=>oP(e,n,i,o),e.unwrap=()=>e._zod.def.innerType,e.removeDefault=e.unwrap});function gF(e,t){return new yF({type:"default",innerType:e,get defaultValue(){return typeof t=="function"?t():Gx(t)}})}const bF=ue("ZodPrefault",(e,t)=>{HB.init(e,t),Bt.init(e,t),e._zod.processJSONSchema=(n,i,o)=>lP(e,n,i,o),e.unwrap=()=>e._zod.def.innerType});function vF(e,t){return new bF({type:"prefault",innerType:e,get defaultValue(){return typeof t=="function"?t():Gx(t)}})}const g5=ue("ZodNonOptional",(e,t)=>{VB.init(e,t),Bt.init(e,t),e._zod.processJSONSchema=(n,i,o)=>iP(e,n,i,o),e.unwrap=()=>e._zod.def.innerType});function _F(e,t){return new g5({type:"nonoptional",innerType:e,...Le(t)})}const EF=ue("ZodCatch",(e,t)=>{GB.init(e,t),Bt.init(e,t),e._zod.processJSONSchema=(n,i,o)=>sP(e,n,i,o),e.unwrap=()=>e._zod.def.innerType,e.removeCatch=e.unwrap});function SF(e,t){return new EF({type:"catch",innerType:e,catchValue:typeof t=="function"?t:()=>t})}const $F=ue("ZodPipe",(e,t)=>{ZB.init(e,t),Bt.init(e,t),e._zod.processJSONSchema=(n,i,o)=>uP(e,n,i,o),e.in=t.in,e.out=t.out});function r3(e,t){return new $F({type:"pipe",in:e,out:t})}const DF=ue("ZodReadonly",(e,t)=>{YB.init(e,t),Bt.init(e,t),e._zod.processJSONSchema=(n,i,o)=>cP(e,n,i,o),e.unwrap=()=>e._zod.def.innerType});function xF(e){return new DF({type:"readonly",innerType:e})}const CF=ue("ZodCustom",(e,t)=>{qB.init(e,t),Bt.init(e,t),e._zod.processJSONSchema=(n,i,o)=>JL(e,n)});function AF(e,t={}){return jL(CF,e,t)}function wF(e){return zL(e)}const m0={custom:"custom"};function Ht(e){return $L(p5,e)}const TF=["additional_pip","tort_threshold","pip_coverage_type","extended_medical","policy_pip_deductible"],NF=new Set([...TF,"is_corporation"]);iF({additional_pip:zo(["cov100_10400_LIMITED","cov125_13000_LIMITED","cov175_18200_LIMITED","cov250_26000_LIMITED","cov400_41600_LIMITED","cov500_52000_LIMITED","cov600_62400_LIMITED","cov700_72800_LIMITED","cov100_UNLIMITED","cov125_UNLIMITED","cov175_UNLIMITED","cov250_UNLIMITED","cov400_UNLIMITED","cov500_UNLIMITED","cov600_UNLIMITED","cov700_UNLIMITED"]),tort_threshold:zo(["Verbal_Threshold","Zero_Threshold"]),pip_coverage_type:zo(["Primary","Secondary"]),extended_medical:zo(["cov1000","cov10000"]),policy_pip_deductible:zo(["cov250","cov500","cov1000","cov2000","cov2500"]),has_health_insurance_auto_accident:JP().nullable().optional()}).superRefine((e,t)=>{e.pip_coverage_type==="Secondary"&&e.has_health_insurance_auto_accident!==!0&&t.addIssue({code:m0.custom,path:["pip_coverage_type"],message:"Secondary PIP coverage requires health insurance that covers auto accidents."})});const MF=new Set(["Home","HomeConstruction","HomeFeatures","Demographics"]),RF=new Set(["HomePolicy","BundlePolicy"]),OF=new Set(["HomeCustomer","BundleCustomer","Demographics"]);function $d(e){if(typeof e!="string"||!e.trim())return!1;const t=e.trim().toLowerCase();return t==="nj"||t==="n.j."||t==="n.j"||t==="new jersey"}function a3(e){return e?$d(e.state??e.State):!1}function rf(e,t,n){return e==="has_health_insurance_auto_accident"?t==="BundleCustomer"||t==="Demographics"?!1:!a3(n):NF.has(e)?!a3(n):e==="household_size"?!(t&&MF.has(t)):e==="number_of_mortgagees"?!(t&&RF.has(t)):(e==="has_co_applicant"||e==="co_applicant_middle_name"||e==="co_applicant_relationship")&&t&&OF.has(t)?!1:e==="multi_policy_discount"&&t==="HomePolicy"?!0:kF.has(e)}const kF=new Set(["anti_theft_type","passive_restraint_type","anti_lock_brakes","daytime_running_lights","vehicle_full_glass","vehicle_loan_lease","percent_to_work","stated_value_amount_cents","vehicle_comp_deductible","vehicle_coll_deductible","vehicle_towing_and_labor","vehicle_transportation_expense","accident_prevention_course","driver_accidents","driver_violations","losses","middle_name","ssn_display","auto_current_annual_premium_cents","has_co_applicant","co_applicant_middle_name","co_applicant_relationship"]),b5=new Date().getUTCFullYear(),kc=ja().trim().min(1,"Required").regex(/^[A-Za-z\s]+$/,"Only alphabetic characters are allowed."),i3=h5([cF(""),ja().trim().regex(/^[A-Za-z\s]*$/,"Only alphabetic characters are allowed.")]).optional(),BF=(e,t,n)=>Ht({error:`${e} must be a number.`}).min(t,`${e} must be between ${t.toLocaleString("en-US")} and ${n.toLocaleString("en-US")}.`).max(n,`${e} must be between ${t.toLocaleString("en-US")} and ${n.toLocaleString("en-US")}.`).int(`${e} must be a whole number.`),Io=(e,t)=>Ht({error:`${e} must be a number.`}).min(0,`${e} must be between 0 and ${t.toLocaleString("en-US")}.`).max(t,`${e} must be between 0 and ${t.toLocaleString("en-US")}.`).int(`${e} must be a whole number.`),Bc=(e,t=1600)=>Ht({error:`${e} must be a valid 4-digit year.`}).int(`${e} must be a whole number.`).min(t,`${e} should be between ${t} and the current year.`).max(b5,`${e} cannot be in the future.`),Lc=e=>Ht({error:`${e} must be a number.`}).int(`${e} must be a whole number.`).min(0,`${e} must be between 0 and 99.`).max(99,`${e} must be between 0 and 99.`),fs=(e,t,n=0)=>{const i=Math.pow(10,t)-1,o=i.toLocaleString("en-US"),s=n.toLocaleString("en-US");return Ht({error:`${e} must be a number.`}).min(n,`${e}: Value must be between ${s} and ${o}.`).max(i,`${e}: Value must be between ${s} and ${o}.`).int(`${e} must be a whole number.`)},LF={email:ja().trim().min(1,"Required").email("Please enter a valid email address."),phone:ja().trim().min(1,"Required").refine(e=>{let t=e.replace(/\D/g,"");return t.length===11&&t.startsWith("1")&&(t=t.slice(1)),t.length===10},"Please enter a valid 10-digit US phone number."),social_security_number:ja().trim().refine(e=>e===""||/^\d{3}-\d{2}-\d{4}$/.test(e),"Social Security Number must be in the format XXX-XX-XXXX.").optional(),sms_code:ja().trim().min(1,"Required").regex(/^\d{6}$/,"Please enter the 6-digit code."),first_name:kc,last_name:kc,middle_name:i3,co_applicant_first_name:kc,co_applicant_last_name:kc,co_applicant_middle_name:i3,year_built:Bc("Year built",1800),year_roof_updated:Ht({error:"Please enter a valid 4-digit year."}).int("Year must be a whole number.").min(1e3,"Please enter a valid 4-digit year.").max(9999,"Please enter a valid 4-digit year."),heating_update_year:Bc("Heating update year"),plumbing_update_year:Bc("Plumbing update year"),electrical_update_year:Bc("Electrical update year"),total_area_sq_ft:BF("Square footage",1,999999),sale_price_cents:Ht({error:"Purchase Price must be a number."}).min(1,"Purchase Price must be between 1 and 21,474,836.").max(21474836,"Purchase Price must be between 1 and 21,474,836.").int("Purchase Price must be a whole number."),home_prior_years:Lc("Number of years with your prior carrier"),home_continuous_coverage_years:Lc("How long you have had continuous home coverage"),household_size:Ht({error:"Household size must be a number."}).min(1,"Occupants must be between 1 and 8.").max(8,"Occupants must be between 1 and 8.").int("Occupants must be between 1 and 8."),number_of_mortgagees:Ht({error:"Number of mortgagees must be a number."}).int().min(0,"Number of mortgagees cannot be negative.").max(3,"Number of mortgagees must be between 0 and 3."),number_of_parking_spaces:Ht({error:"Number of covered parking spaces must be a number."}).int("Number of covered parking spaces must be a whole number.").min(1,"Number of covered parking spaces must be between 1 and 3.").max(3,"Number of covered parking spaces must be between 1 and 3."),dwelling_replacement_cost:fs("Replacement cost",9,1),other_structures_coverage:fs("Other structures",9),personal_property_coverage:fs("Personal property",9),loss_of_use_coverage:fs("Loss of use coverage",9),years_at_address:Ht({error:"Years at address must be a number."}).int().min(0,"Years at address cannot be negative.").max(100,"Years at address must be 100 or less."),months_at_address:Ht({error:"Months at address must be a number."}).int().min(0,"Months at address cannot be negative.").max(11,"Months at address must be between 0 and 11."),years_at_prior_address:Ht({error:"Years at prior address must be a number."}).int().min(0,"Years at prior address cannot be negative.").max(100,"Years at prior address must be 100 or less."),number_of_units:Ht({error:"Number of units must be a number."}).int().min(1,"Number of units/apartments should be greater than 0.").max(99,"Number of units/apartments must be between 1 and 99."),number_of_families:Ht({error:"Number of families must be a number."}).int("Number of families must be a whole number.").refine(e=>e>=1&&e<=5,{message:"Number of families must be between 1 and 5."}),number_of_dogs:Ht({error:"Number of dogs must be a number."}).int().min(0,"Number of dogs must be between 0 and 99.").max(99,"Number of dogs must be between 0 and 99."),distance_to_coast_miles:Ht({error:"Distance to coast must be a number."}).int().min(0,"Distance to coast cannot be negative.").max(9999,"Distance to coast must be at most 4 digits."),amount_paid_cents:fs("Amount paid",7),license_number:ja().trim().min(1,"Required").max(20,"License number must be 20 characters or fewer.").regex(/^[A-Z0-9]+$/i,"License number must contain only letters and numbers."),vin:ja().superRefine((e,t)=>{if(typeof e!="string"||e.trim()==="")return;if(/\s/.test(e)){t.addIssue({code:m0.custom,message:"VIN cannot contain spaces."});return}const n=e.trim();/^[A-HJ-NPR-Z0-9]{17}$/i.test(n)||t.addIssue({code:m0.custom,message:"VIN must be exactly 17 letters and numbers (excluding I, O, and Q)."})}),annual_mileage:Ht({error:"Annual mileage must be a number."}).int("Annual mileage must be a whole number.").min(1e3,"Vehicle annual use should be between 1,000 & 100,000 miles.").max(1e5,"Vehicle annual use should be between 1,000 & 100,000 miles."),miles_to_work:Ht({error:"Miles driven to work/school must be a number."}).int("Miles driven to work/school must be a whole number.").min(1,"Please enter a value greater than 0.").max(9999,"Miles driven to work/school must be between 1 and 9,999."),custom_equipment_value_cents:Io("Modifications value",9999999),cost_new_value_cents:Io("Cost new value",9999999),stated_value_amount_cents:Io("Stated Value Amount",9999999),property_damage_amount_paid_cents:Io("Property damage amount paid",9999999),personal_injury_amount_paid_cents:Io("Personal injury amount paid",9999999),auto_current_annual_premium_cents:Io("Current annual premium",9999999),auto_prior_years:Lc("Years with prior auto carrier"),auto_prior_months:Ht({error:"Months with prior carrier must be a number."}).int().min(0,"Months with prior carrier must be between 0 and 11.").max(11,"Months with prior carrier must be between 0 and 11."),auto_continuous_coverage_years:Lc("Years with continuous auto coverage")};function Ft(e){return new Date(`${e}T00:00:00Z`)}function nn(){const e=new Date;return new Date(Date.UTC(e.getUTCFullYear(),e.getUTCMonth(),e.getUTCDate()))}function Ba(e,t){let n=t.getUTCFullYear()-e.getUTCFullYear();const i=t.getUTCMonth()-e.getUTCMonth();return(i<0||i===0&&t.getUTCDate()<e.getUTCDate())&&n--,n}function o3(e){const t=/^cov(\d+)to(\d+)$/.exec(e);if(t)return{perPerson:Number(t[1]),perOccurrence:Number(t[2])};const n=/^cov(\d+)CSL$/.exec(e);return n?{perPerson:Number(n[1]),perOccurrence:Number(n[1])}:null}const v5=[{targetKey:"social_security_number",dependsOn:["social_security_number","state"],validate:e=>{if(!("social_security_number"in e)||!$d(e.state))return;const t=e.social_security_number;return(typeof t=="string"?t.trim():"")===""?"Social Security Number is required in New Jersey.":void 0}},{targetKey:"date_of_birth",dependsOn:["date_of_birth"],validate:e=>{const t=e.date_of_birth;if(!t||typeof t!="string")return;const n=Ft(t);return isNaN(n.getTime())?"Invalid date.":n.getUTCFullYear()<1900?"Date of birth year can't be earlier than 1900.":Ba(n,nn())<18?"Applicant can't be under the age of 18.":void 0}},{targetKey:"co_applicant_date_of_birth",dependsOn:["co_applicant_date_of_birth"],validate:e=>{const t=e.co_applicant_date_of_birth;if(!t||typeof t!="string")return;const n=Ft(t);return isNaN(n.getTime())?"Invalid date.":n.getUTCFullYear()<1900?"Date of birth year can't be earlier than 1900.":Ba(n,nn())<16?"Co-applicant can't be under the age of 16.":void 0}},{targetKey:"year_roof_updated",dependsOn:["year_roof_updated","year_built"],validate:e=>{const t=Number(e.year_roof_updated),n=Number(e.year_built);if(isNaN(t))return;const i=isNaN(n)?1e3:n;if(t<i||t>b5)return"Roof renovation/replacement year must be between the home's build year and the current year."}},{targetKey:"move_in_date",dependsOn:["move_in_date","year_built"],validate:e=>{const t=e.move_in_date,n=e.year_built;if(!t||n==null)return;const i=Ft(String(t));if(isNaN(i.getTime()))return;const o=Number(n);if(!isNaN(o))return i.getUTCFullYear()<o?"Purchase date cannot be prior to the year the building was originally constructed.":void 0}},{targetKey:"date_first_licensed",dependsOn:["date_first_licensed"],validate:e=>{const t=e.date_first_licensed;if(!t||typeof t!="string")return;const n=Ft(t);return isNaN(n.getTime())?"Invalid date.":n>nn()?"Date first licensed cannot be in the future.":void 0}},{targetKey:"date_first_licensed",dependsOn:["date_first_licensed","date_of_birth"],validate:e=>{const t=e.date_first_licensed,n=e.date_of_birth;if(!t||typeof t!="string"||!n||typeof n!="string")return;const i=Ft(n),o=Ft(t);if(isNaN(i.getTime())||isNaN(o.getTime()))return;if(o<i)return"Date licensed cannot be before driver date of birth.";const s=new Date(Date.UTC(i.getUTCFullYear()+16,i.getUTCMonth(),i.getUTCDate()));return o<s?"Driver must be at least 16 years old at the date first licensed.":void 0}},{targetKey:"occurred_at",dependsOn:["occurred_at"],validate:e=>{const t=e.occurred_at;if(!t||typeof t!="string")return;const n=Ft(t);return isNaN(n.getTime())?"Invalid date.":n>nn()?"Incident date cannot be in the future.":void 0}},{targetKey:"accident_prevention_course_date",dependsOn:["accident_prevention_course_date"],validate:e=>{const t=e.accident_prevention_course_date;if(!t||typeof t!="string")return;const n=Ft(t);return isNaN(n.getTime())?"Invalid date.":n>nn()?"Course date cannot be in the future.":void 0}},{targetKey:"effective_date",dependsOn:["effective_date"],validate:e=>{const t=e.effective_date;if(!t||typeof t!="string")return;const n=Ft(t);if(isNaN(n.getTime()))return"Invalid date.";const i=nn(),o=new Date(Date.UTC(i.getUTCFullYear(),i.getUTCMonth()+3,i.getUTCDate()));if(n<i)return"Insurance start date cannot be in the past.";if(n>o)return"Insurance must begin within 3 months from today."}},{targetKey:"years_at_address",dependsOn:["years_at_address","date_of_birth"],validate:e=>{const t=e.years_at_address,n=e.date_of_birth;if(t==null||n==null||typeof n!="string")return;const i=Number(t);if(isNaN(i))return;const o=Ft(n);if(isNaN(o.getTime()))return;const s=Ba(o,nn());return i>s?"Time at address cannot be greater than the applicant age.":void 0}},{targetKey:"years_at_prior_address",dependsOn:["years_at_prior_address","date_of_birth"],validate:e=>{const t=e.years_at_prior_address,n=e.date_of_birth;if(t==null||n==null||typeof n!="string")return;const i=Number(t);if(isNaN(i))return;const o=Ft(n);if(isNaN(o.getTime()))return;const s=Ba(o,nn());return i>s?"Years at prior address cannot be greater than the applicant age.":void 0}},{targetKey:"home_prior_years",dependsOn:["home_prior_years","home_continuous_coverage_years"],validate:e=>{const t=e.home_prior_years,n=e.home_continuous_coverage_years;if(t==null||n==null)return;const i=Number(t),o=Number(n);if(!(isNaN(i)||isNaN(o)))return i>o?"Years with prior carrier cannot be higher than years with continuous coverage.":void 0}},{targetKey:"home_prior_years",dependsOn:["home_prior_years","date_of_birth"],validate:e=>{const t=e.home_prior_years,n=e.date_of_birth;if(t==null||n==null||typeof n!="string")return;const i=Number(t);if(isNaN(i))return;const o=Ft(n);if(isNaN(o.getTime()))return;const s=Ba(o,nn());return i>s?"Years with prior carrier cannot be greater than the Applicant's age.":void 0}},{targetKey:"home_continuous_coverage_years",dependsOn:["home_continuous_coverage_years","date_of_birth"],validate:e=>{const t=e.home_continuous_coverage_years,n=e.date_of_birth;if(t==null||n==null||typeof n!="string")return;const i=Number(t);if(isNaN(i))return;const o=Ft(n);if(isNaN(o.getTime()))return;const s=Ba(o,nn());return i>s?"Years with continuous home coverage cannot be greater than the Applicant's age.":void 0}},{targetKey:"move_in_date",dependsOn:["move_in_date"],validate:e=>{const t=e.move_in_date;if(!t||typeof t!="string")return;const n=Ft(t);return isNaN(n.getTime())?"Invalid date.":n>nn()?"Purchase date cannot be in the future.":void 0}},{targetKey:"date_of_incident",dependsOn:["date_of_incident"],validate:e=>{const t=e.date_of_incident;if(!t||typeof t!="string")return;const n=Ft(t);if(isNaN(n.getTime()))return"Invalid date.";const i=nn();return n>i?"Loss date cannot be in the future.":void 0}},{targetKey:"home_prior_expiration_date",dependsOn:["home_prior_expiration_date"],validate:e=>{const t=e.home_prior_expiration_date;if(!t||typeof t!="string")return;const n=Ft(t);if(isNaN(n.getTime()))return"Invalid date.";const i=nn(),o=new Date(Date.UTC(i.getUTCFullYear()-1,i.getUTCMonth(),i.getUTCDate())),s=new Date(Date.UTC(i.getUTCFullYear()+1,i.getUTCMonth(),i.getUTCDate()));if(n<o||n>s)return"Policy expiration date must be between 1 year ago and 1 year from now."}},{targetKey:"purchase_date",dependsOn:["purchase_date"],validate:e=>{const t=e.purchase_date;if(!t||typeof t!="string")return;const n=Ft(t);return isNaN(n.getTime())?"Invalid date.":n>nn()?"Vehicle purchase date cannot be in the future.":void 0}},{targetKey:"purchase_date",dependsOn:["purchase_date","year"],validate:e=>{const t=e.purchase_date,n=e.year;if(!t||typeof t!="string"||n==null)return;const i=Ft(t);if(isNaN(i.getTime()))return;const o=Number(n);if(!isNaN(o))return i.getUTCFullYear()<o?"The year the vehicle was purchased is not valid with the model year.":void 0}},{targetKey:"auto_prior_expiration_date",dependsOn:["auto_prior_expiration_date"],validate:e=>{const t=e.auto_prior_expiration_date;if(!t||typeof t!="string")return;const n=Ft(t);if(isNaN(n.getTime()))return"Invalid date.";const i=nn(),o=new Date(Date.UTC(i.getUTCFullYear()-1,i.getUTCMonth(),i.getUTCDate())),s=new Date(Date.UTC(i.getUTCFullYear()+1,i.getUTCMonth(),i.getUTCDate()));if(n<o||n>s)return"Auto policy expiration date must be between 1 year ago and 1 year from now."}},{targetKey:"auto_prior_years",dependsOn:["auto_prior_years","auto_continuous_coverage_years"],validate:e=>{const t=e.auto_prior_years,n=e.auto_continuous_coverage_years;if(t==null||n==null)return;const i=Number(t),o=Number(n);if(!(isNaN(i)||isNaN(o)))return i>o?"Years with prior auto carrier cannot be higher than years with continuous coverage.":void 0}},{targetKey:"auto_prior_years",dependsOn:["auto_prior_years","date_of_birth"],validate:e=>{const t=e.auto_prior_years,n=e.date_of_birth;if(t==null||n==null||typeof n!="string")return;const i=Number(t);if(isNaN(i))return;const o=Ft(n);if(isNaN(o.getTime()))return;const s=Ba(o,nn());return i>s?"Years with prior auto carrier cannot be greater than the Applicant's age.":void 0}},{targetKey:"auto_continuous_coverage_years",dependsOn:["auto_continuous_coverage_years","date_of_birth"],validate:e=>{const t=e.auto_continuous_coverage_years,n=e.date_of_birth;if(t==null||n==null||typeof n!="string")return;const i=Number(t);if(isNaN(i))return;const o=Ft(n);if(isNaN(o.getTime()))return;const s=Ba(o,nn());return i>s?"Years with continuous auto coverage cannot be greater than the Applicant's age.":void 0}},{targetKey:"vehicle_coll_deductible",dependsOn:["vehicle_coll_deductible","vehicle_comp_deductible"],validate:e=>{const t=e.vehicle_coll_deductible,n=e.vehicle_comp_deductible;if(!(!t||typeof t!="string"||!n||typeof n!="string")&&n==="NoCoverage"&&t!=="NoCoverage")return"Collision Coverage cannot be chosen if Comprehensive is No Coverage."}},{targetKey:"policy_um",dependsOn:["policy_um","policy_bi"],validate:e=>{const t=e.policy_um,n=e.policy_bi;if(!t||typeof t!="string"||!n||typeof n!="string"||t==="Reject"||n==="Dontknow")return;const i=m=>m.endsWith("CSL"),o=i(t),s=i(n);if(o&&!s)return"A Combined Single Limit cannot be selected for Uninsured/Underinsured Motorist unless a Combined Single Limit has also been selected for Liability.";const c=o3(t),d=o3(n);if(!(!c||!d)&&(c.perPerson>d.perPerson||c.perOccurrence>d.perOccurrence))return"Uninsured/Underinsured Motorist Limit value cannot be greater than Bodily Injury Limit value."}},{targetKey:"policy_umpd",dependsOn:["policy_umpd","policy_pd"],validate:e=>{const t=e.policy_umpd,n=e.policy_pd;if(!t||typeof t!="string"||!n||typeof n!="string"||t==="NoCoverage"||n==="Dontknow")return;const i=c=>{if(!c.startsWith("cov"))return null;const d=parseInt(c.replace("cov",""),10);return isNaN(d)?null:d},o=i(t),s=i(n);if(o!=null&&s!=null&&o>s)return"Uninsured Motorist Property Damage Limit value cannot be greater than Liability Property Damage Limit value."}},{targetKey:"custom_equipment_value_cents",dependsOn:["custom_equipment_value_cents","stated_value_amount_cents"],validate:e=>{const t=e.custom_equipment_value_cents,n=e.stated_value_amount_cents;if(t==null||n==null)return;const i=Number(t),o=Number(n);if(!(isNaN(i)||isNaN(o))&&o>0&&i>0)return"Modifications should be included in the stated value of the vehicle. If a stated value quote is not required, remove the stated value."}}];function p0(e,t){const n=LF[e];if(!n)return;const i=n.safeParse(t);return i.success?void 0:i.error.issues[0].message}function l3(e){if(/\s/.test(e))return!1;const t=e.trim();return t.length===17&&/^[A-HJ-NPR-Z0-9]{17}$/i.test(t)}function PF(e,t){const n={};for(const i of v5){if(t?.has(i.targetKey))continue;const o=i.validate(e);o&&(n[i.targetKey]=o)}return n}function Dd(e){return e.toLowerCase().replace(/[^a-z0-9]+/g,"-").replace(/(^-|-$)/g,"")}function Ya(e,t){return e.key??`${Dd(e.question)}-${t}`}function Cr(e,t){return t==="number"?e==null||typeof e=="string"&&e.trim()==="":t==="checkbox"?e!==!0:e==null||typeof e=="string"&&e.trim()===""}function js(e,t){const n={};e.forEach((c,d)=>{const m=Ya(c,d),h=t[m];if(c.required&&Cr(h,c.inputType)){n[m]="Required";return}if(!Cr(h,c.inputType)){const y=p0(m,h);if(y){n[m]=y;return}}});const i={...t};e.forEach((c,d)=>{const m=Ya(c,d);m in i||(i[m]="")});const o=new Set(Object.keys(n).filter(c=>n[c])),s=PF(i,o);for(const[c,d]of Object.entries(s))n[c]=d;return n}function FF(e){if(e===""||e===null||e===void 0)return;const t=Number(e);return Number.isNaN(t)?void 0:t}const IF={NoPriorInsurance:"No Prior Insurance",TwentyFirstCentury:"21st Century",ACentral:"A.Central",AAA:"AAA",AARP:"AARP",Acadia:"Acadia",Ace:"Ace",Acuity:"Acuity",AdirondackInsExchange:"Adirondack Ins Exchange",Aegis:"Aegis",AIC:"AIC",AIG:"AIG",AlfaAlliance:"Alfa Alliance",Allied:"Allied",Allstate:"Allstate",AmericaFirst:"America First",AmericanCommerce:"American Commerce",AmericanFamily:"American Family",Amica:"Amica",ASILloyds:"ASI Lloyds",AustinMutual:"Austin Mutual",Autoone:"Autoone",AutoOwners:"Auto-Owners",BadgerMutual:"Badger Mutual",Balboa:"Balboa",Bankers:"Bankers",BeaconNational:"Beacon National",BrethernMutual:"Brethern Mutual",BristolWest:"Bristol West",CapitalInsuranceGroup:"Capital Insurance Group",Celina:"Celina",CentralMutualOfOH:"Central Mutual of OH",Chubb:"Chubb",Cincinnati:"Cincinnati",Clearcover:"Clearcover",CNA:"CNA",ColonialPenn:"Colonial Penn",ColoradoCasualty:"Colorado Casualty",Columbia:"Columbia",CommerceWest:"Commerce West",CommonwealthCasualty:"Commonwealth Casualty",Ameriprise:"CONNECT",ConstitutionalCasualty:"Constitutional Casualty",Cornerstone:"Cornerstone",Countrywide:"Countrywide",CSE:"CSE",Cumberland:"Cumberland",Dairyland:"Dairyland",Deerbrook:"Deerbrook",Direct:"Direct",Donegal:"Donegal",Drive:"Drive",Electric:"Electric",EMC:"EMC",Encompass:"Encompass",Erie:"Erie",Esurance:"Esurance",Explorer:"Explorer",FarmBureau:"Farm Bureau",Farmers:"Farmers",FiremansFund:"Firemans Fund",FirstAmerican:"First American",Foremost:"Foremost",Geico:"Geico",GeneralCasualty:"General Casualty",GermantownMutual:"Germantown Mutual",GMAC:"GMAC",Grange:"Grange",GreatAmerican:"Great American",Grinnell:"Grinnell",GuideOne:"Guide One",Hanover:"Hanover",Harbor:"Harbor",Harleysville:"Harleysville",HartfordOMNI:"Hartford OMNI",Hartford:"Hartford",HastingsMutual:"Hastings Mutual",HawkeyeSecurity:"Hawkeye Security",HDI:"HDI",HoraceMann:"Horace Mann",HoustonGeneral:"Houston General",IFA:"IFA",ImperialCasualty:"Imperial Casualty",IndianaFarmers:"Indiana Farmers",Indiana:"Indiana",Infinity:"Infinity",Insurequest:"Insurequest",Integon:"Integon",Integrity:"Integrity",Kemper:"Kemper",LibertyMutual:"Liberty Mutual",LibertyNorthwest:"Liberty Northwest",MainStreetAmerica:"Main Street America",Mapfre:"Mapfre",Mendota:"Mendota",MerchantsGroup:"Merchants Group",Mercury:"Mercury",Metlife:"MetLife",Metropolitan:"Metropolitan",MidContinent:"Mid-Continent",MidwesternIndemnity:"Midwestern Indemnity",Montgomery:"Montgomery",MSA:"MSA",MtWashington:"Mt. Washington",MutualBenefit:"Mutual Benefit",NationalGeneral:"National General",Nationwide:"Nationwide",NewYorkCentralMutual:"New York Central Mutual",NJManufacturers:"NJ Manufacturers",NJSkylands:"NJ Skylands",Northstar:"Northstar",Occidental:"Occidental",OhioCasualty:"Ohio Casualty",OmahaPC:"Omaha P/C",OneBeacon:"One Beacon",OregonMutual:"Oregon Mutual",Palisades:"Palisades",PeerlessMontgomery:"Peerless/Montgomery",Pekin:"Pekin",Pemco:"Pemco",PennNational:"Penn National",PlymouthRock:"Plymouth Rock",PreferredMutual:"Preferred Mutual",Proformance:"Proformance",Progressive:"Progressive",Prudential:"Prudential",Republic:"Republic",RockfordMutual:"Rockford Mutual",RoyalAndSunAlliance:"Royal and Sun Alliance",Safeco:"Safeco",SECURA:"SECURA",Selective:"Selective",SouthernCounty:"Southern County",SouthernMutual:"Southern Mutual",SouthernTrust:"Southern Trust",StPaulTravelers:"St. Paul/Travelers",StandardMutual:"Standard Mutual",StarCasualty:"Star Casualty",StateAuto:"State Auto",StateFarm:"State Farm",Fidelity:"Stillwater",Travelers:"Travelers",TWFG:"TWFG",Unigard:"Unigard",UnitedFireAndCasualty:"United Fire and Casualty",Unitrin:"Unitrin",Universal:"Universal",USAA:"USAA",UticaNational:"Utica National",Victoria:"Victoria",WestBend:"West Bend",WesternNational:"Western National",WesternReserveGroup:"Western Reserve Group",Westfield:"Westfield",WhiteMountains:"White Mountains",WilsonMutual:"Wilson Mutual",Windsor:"Windsor",Zurich:"Zurich",OtherStandard:"Other Standard",OtherNonStandard:"Other Non-Standard"},jF={OwnHome:"Own Home",OwnCondo:"Own Condo",RentHome:"Rent Home",RentCondo:"Rent Condo",RentApartment:"Rent Apartment",LiveWithParents:"Live With Parents"},zF={TwentyFirstCentury:"21st Century",AAA:"AAA",Acuity:"Acuity",AdirondackInsExchange:"Adirondack Ins Exchange",AIG:"AIG",AlfaAlliance:"Alfa Alliance",AllianzOfAmerica:"Allianz of America",AllianzOfAmericaJefferson:"Allianz of America-Jefferson",Allied:"Allied",Allmerica:"Allmerica",Allstate:"Allstate",AmericaFirst:"America First",AmericanFamily:"American Family",AmericanCommerce:"American Commerce",Amica:"Amica",ASILloyds:"ASI Lloyds",Assurant:"Assurant",AtlasGeneralAgency:"Atlas General Agency",AustinMutual:"Austin Mutual",AutoOwners:"Auto-Owners",BadgerMutual:"Badger Mutual",Balboa:"Balboa",Bamboo:"Bamboo",BeaconNational:"Beacon National",BunkerHill:"Bunker Hill",CapitalInsuranceGroup:"Capital Insurance Group",CentralMutualOfOH:"Central Mutual of OH",ChubbInsurance:"Chubb",Cincinnati:"Cincinnati",Citizens:"Citizens",ColoradoCasualty:"Colorado Casualty",Ameriprise:"CONNECT",CSE:"CSE",Cumberland:"Cumberland",Cypress:"Cypress",Dairyland:"Dairyland",Donegal:"Donegal",Electric:"Electric",EMC:"EMC",Encompass:"Encompass",Erie:"Erie",Esurance:"Esurance",ExcelsiorInsuranceCompany:"Excelsior Insurance Company",FairPlan:"Fair Plan",FarmBureau:"Farm Bureau",Farmers:"Farmers",FiremansFund:"Firemans Fund",FirstAmerican:"First American",ForemostInsuranceCompany:"Foremost Insurance Company",Geico:"Geico",GeneralCasualty:"General Casualty",GermantownMutual:"Germantown Mutual",GMAC:"GMAC",Grange:"Grange",Grinnell:"Grinnell",GuideOne:"Guide One",Hanover:"Hanover",Harleysville:"Harleysville",Hartford:"Hartford",HartfordOMNI:"Hartford OMNI",HawkeyeSecurity:"Hawkeye Security",HippoInsuranceCompany:"Hippo Insurance Company",HomeownersOfAmerica:"Homeowners of America",Homesite:"Homesite",HoraceMann:"Horace Mann",HoustonGeneral:"Houston General",Indiana:"Indiana",IndianaFarmers:"Indiana Farmers",Integrity:"Integrity",Kemper:"Kemper",LibertyMutual:"Liberty Mutual",LibertyNorthwest:"Liberty Northwest",Lloyds:"Lloyds",MainStreetAmerica:"Main Street America",MarkelInsuranceCompany:"Markel Insurance Company",MerchantsGroup:"Merchants Group",Mercury:"Mercury",Metlife:"MetLife",MidwesternIndemnity:"Midwestern Indemnity",Montgomery:"Montgomery",MSA:"MSA",MutualBenefit:"Mutual Benefit",Tower:"National General",NatGenPremier:"NatGen Premier",Nationwide:"Nationwide",NationwideScottsdale:"Nationwide-Scottsdale",NewYorkCentralMutual:"New York Central Mutual",NJSkylands:"NJ Skylands",Northstar:"Northstar",OhioCasualty:"Ohio Casualty",OneBeacon:"One Beacon",OregonMutual:"Oregon Mutual",PeerlessMontgomery:"Peerless/Montgomery",Pekin:"Pekin",PennNational:"Penn National",PlymouthRock:"Plymouth Rock",PreferredMutual:"Preferred Mutual",Prudential:"Prudential",PureHighValue:"Pure High Value",Republic:"Republic",RoyalAndSunAlliance:"Royal and Sun Alliance",Safeco:"Safeco",SECURA:"SECURA",SouthernMutual:"Southern Mutual",SouthernTrust:"Southern Trust",StPaulTravelers:"St. Paul/Travelers",StandardMutual:"Standard Mutual",StateAuto:"State Auto",StateFarm:"State Farm",StateFarmFloridaInsuranceCompany:"State Farm Florida Insurance Company",Fidelity:"Stillwater",SunshineStateInsuranceCompany:"Sunshine State Insurance Company",Travelers:"Travelers",TWFG:"TWFG",Unigard:"Unigard",UnitedFireAndCasualty:"United Fire and Casualty",Unitrin:"Unitrin",Universal:"Universal",USAA:"USAA",UticaNational:"Utica National",Wellington:"Wellington",WestBend:"West Bend",WesternNational:"Western National",WesternReserveGroup:"Western Reserve Group",Westfield:"Westfield",WhiteMountains:"White Mountains",WilsonMutual:"Wilson Mutual",Zurich:"Zurich",Other:"Other",OtherNonStandard:"Other Non-Standard",OtherStandard:"Other Standard"},UF={Business:"Business",Pleasure:"Pleasure",Farming:"Farming",To_FromWork:"To/From Work",To_FromSchool:"To/From School"},HF={Dontknow:"Don't Know",ThirtyToSixty:"30/60",FiftyToHundred:"50/100",HundredToHundred:"100/100",HundredToThreeHundred:"100/300",TwoHundredFiftyToFiveHundred:"250/500",ThreeHundredToThreeHundred:"300/300",FiveHundredToFiveHundred:"500/500",HundredCSL:"100CSL",ThreeHundredCSL:"300CSL",FiveHundredCSL:"500CSL"},VF={ActiveMilitaryDuty:"Active Military Duty",DrivingCompanyCar:"Driving A Company Car",DrivingCarOwnedByRelative:"Driving A Car Owned By A Relative",HasNotOwnedOrOperatedVehicle:"Has Not Owned Or Operated A Vehicle",OwnedVehParkedStoredOffRoadNotDriven:"Owned Veh Parked/Stored Off Road/Not Driven",NonPayment:"Non-Payment",Other:"Other"},GF={Dontknow:"Don't Know",cov30to60:"30/60",cov35to70:"35/70",cov50to100:"50/100",cov100to100:"100/100",cov100to300:"100/300",cov250to500:"250/500",cov300to300:"300/300",cov500to500:"500/500",cov100CSL:"100 CSL",cov300CSL:"300 CSL",cov500CSL:"500 CSL"},ZF={Reject:"Reject",cov30to60:"30/60",cov35to70:"35/70",cov50to100:"50/100",cov100to100:"100/100",cov100to300:"100/300",cov250to500:"250/500",cov300to300:"300/300",cov500to500:"500/500",cov100CSL:"100 CSL",cov300CSL:"300 CSL",cov500CSL:"500 CSL"},YF={Dontknow:"Don't know",cov25000:"25,000",cov50000:"50,000",cov100000:"100,000",cov250000:"250,000",cov500000:"500,000"},qF={None:"None",cov500:"500",cov1000:"1,000",cov2000:"2,000",cov2500:"2,500",cov5000:"5,000",cov10000:"10,000",cov15000:"15,000",cov25000:"25,000",cov50000:"50,000",cov100000:"100,000"},KF={cov25000:"25,000",cov35000:"35,000",cov50000:"50,000",cov100000:"100,000",cov200000:"200,000",cov250000:"250,000",cov300000:"300,000",cov500000:"500,000"},WF={cov15000:"15,000",cov2500:"2,500",cov5000:"5,000",cov10000:"10,000",cov25000:"25,000",cov50000:"50,000",cov100000:"100,000",cov250000:"250,000",cov75000:"75,000",cov150000:"150,000"},QF={NoCoverage:"No Coverage",cov5000:"5,000",cov10000:"10,000"},h0={NoCoverage:"No Coverage",Zero:"0",Fifty:"50",Hundred:"100",TwoHunderd:"200",TwoHundredfifty:"250",FiveHundred:"500",SeventyFiveHundred:"750",Thousand:"1,000",TwoThousand:"2,000"},JF=["NoCoverage","Zero","Fifty","Hundred","TwoHunderd","TwoHundredfifty","FiveHundred","SeventyFiveHundred","Thousand","TwoThousand"],XF=["NoCoverage","Zero","Fifty","Hundred","TwoHunderd","TwoHundredfifty","FiveHundred","Thousand","TwoThousand"],y0={NoCoverage:"No Coverage",TwentyFive:"25",Forty:"40",Fifty:"50",SeventyFive:"75",Eighty:"80",Hundred:"100",TwelveHundred:"120",TwoHundred:"200",Unlimited:"Unlimited"},eI=["NoCoverage","TwentyFive","Fifty","SeventyFive","Hundred","TwoHundred","Unlimited"],_5={NoCoverage:"No Coverage",cov20to600:"20/600",cov25to750:"25/750",cov30to900:"30/900",cov40to1200:"40/1,200",cov50to1500:"50/1,500",cov100to3000:"100/3,000"},tI=["NoCoverage","cov20to600","cov25to750","cov30to900","cov40to1200","cov50to1500","cov100to3000"],nI=["NoCoverage","cov20to600","cov30to900","cov40to1200","cov50to1500"],E5={NoHighSchoolDiploma:"No High School Diploma",HighSchoolDiploma:"High School Diploma",SomeCollegeNoDegree:"Some College - No Degree",VocationalTechnicalDegree:"Vocational Technical Degree",AssociatesDegree:"Associates Degree",Bachelors:"Bachelors",Masters:"Masters",Phd:"Phd",MedicalDegree:"Medical Degree",LawDegree:"Law Degree"},rI={TwoFamilyHome:"2-Family Home",American4square:"American 4-square",Basic:"Basic",BiLevel:"Bi-Level",Bungalow:"Bungalow",CapeCod:"Cape Cod",Colonial:"Colonial",ColonialSpanish:"Colonial - Spanish",CompletelyCustom:"Completely Custom",Contemporary:"Contemporary",ContractorModern:"Contractor Modern",Farmhouse:"Farmhouse",Folk:"Folk",Log:"Log",Mediterranean:"Mediterranean",Ranch:"Ranch",TriLevel:"Tri-Level",Tudor:"Tudor",Vernacular:"Vernacular",Victorian:"Victorian"},aI={SingleFamilyHouse:"Single Family House",Townhouse:"Townhouse",Rowhouse:"Rowhouse",Duplex:"Duplex/Two Family Unit",Triplex:"Tri-plex/Three Family Unit",Fourplex:"Four-plex/Four Family Unit",MultFamily:"Multi-family (more than four units)"},iI={OwnerPrimary:"Owner Primary",OwnerSecondary:"Owner Secondary",OwnerSeasonal:"Owner Seasonal"},oI={Basic:"Basic",Modest:"Modest",Average:"Average",AboveAverage:"Above Average",Expensive:"Expensive",VeryExpensive:"Very Expensive",Opulent:"Opulent"},lI={Frame:"Frame",Masonry:"Masonry",MasonryVeneer:"Masonry Veneer",Log:"Log",Asbestos:"Asbestos",EFIS:"EFIS",HardiPlank:"HardiPlank",SuperiorFireResistive:"Superior Fire Resistive",SuperiorMasonryNonCombustible:"Superior Masonry Non Combustible",SuperiorNonCombustible:"Superior Non Combustible"},sI={Slab:"Slab",Basement:"Basement",CrawlSpace:"Crawl Space",PartialBasement:"Partial Basement",PiersPostsPiles:"Piers / Posts / Piles",Open:"Open"},uI={NotOverWater:"No",PartiallyOverWater:"Partially Over Water",FullyOrEntirelyOverWater:"Fully or Entirely Over Water"},cI={One:"1",OneHalf:"1.5",Two:"2",TwoHalf:"2.5",Three:"3",ThreeHalf:"3.5",Four:"4",BiLevel:"Bi-Level",TriLevel:"Tri-Level"},dI={VinylSiding:"Vinyl Siding",WoodFraming:"Wood Framing",BrickVeneer:"Brick Veneer",Stucco:"Stucco",AdobeBlock:"Adobe Block",AluminumSiding:"Aluminum Siding",CementFiberShingles:"Cement Fiber Shingles",Clapboard:"Clapboard",ConcreteBlock:"Concrete Block",HardboardSiding:"Hardboard Siding",InsulatedConcreteForms:"Insulated Concrete Forms",LightGaugeSteelFraming:"Light Gauge Steel Framing",LogsSolid:"Logs (Solid)",MasoniteSiding:"Masonite Siding",PreEngineeredMetal:"Pre-Engineered Metal",SolidBrickConstruction:"Solid Brick Construction",SolidConcrete:"Solid Concrete",StandardPoleFramed:"Standard Pole Framed",Stone:"Stone",StructuralInsulatedPanels:"Structural Insulated Panels",TimberFraming:"Timber Framing"},fI={ASPHALT_SHINGLES:"Asphalt Shingles",ARCHITECTURAL_SHINGLES:"Architectural Shingles",METAL:"Metal",TILE_CONCRETE:"Tile (Concrete)",ASBESTOS:"Asbestos",BUILT_UP:"Built-Up",COMPOSITION:"Composition",CONCRETE:"Concrete",COPPER:"Copper",CORRUGATED_STEEL:"Corrugated Steel",FIBERGLASS:"Fiberglass",FOAM:"Foam",GRAVEL:"Gravel",MEMBRANE:"Membrane",MINERAL_FIBER_SHAKE:"Mineral Fiber Shake",PLASTIC:"Plastic",ROCK:"Rock",ROLLED_PAPER:"Rolled Paper",RUBBER:"Rubber",SLATE:"Slate",TAR:"Tar",TAR_GRAVEL:"Tar and Gravel",TILE_CLAY:"Tile (Clay)",TILE_MISSION:"Tile (Mission)",TILE_SPANISH:"Tile (Spanish)",TIN:"Tin",WOOD_FIBERGLASS_SHINGLES:"Wood/Fiberglass Shingles",WOOD_SHAKE:"Wood Shake",WOOD_SHINGLES:"Wood Shingles",OTHER:"Other"},mI={B_Gable:"Gable",C_Hip:"Hip",A_Flat:"Flat",D_Other:"Other"},pI={NotUpdated:"Not Updated",PartialUpdate:"Partial Update",CompleteUpdate:"Complete Update"},hI={Electric:"Electric",Gas:"Gas",GasForcedAir:"Gas - Forced Air",GasHotWater:"Gas - Hot Water",Oil:"Oil",OilForcedAir:"Oil - Forced Air",OilHotWater:"Oil - Hot Water",SolidFuel:"Solid Fuel",HeatPump:"Heat Pump",Other:"Other"},yI={AboveGround:"Above Ground",BelowGround:"Below Ground"},gI={Basement:"Below Grade Basement",SplitLevelBasement:"Split Level Basement",WalkoutBasement:"Walkout Basement"},bI={EntirelyCopper:"Entirely Copper",EntirelyGalvanized:"Entirely Galvanized",EntirelyPEX:"Entirely PEX",EntirelyPVC:"Entirely PVC",Polybutylene:"Polybutylene"},vI={TwentyFive:"$25,000",Fifty:"$50,000",OneHundred:"$100,000",TwoHundred:"$200,000",ThreeHundred:"$300,000",FourHundred:"$400,000",FiveHundred:"$500,000"},_I={cov1000:"$1,000",cov2000:"$2,000",cov3000:"$3,000",cov4000:"$4,000",cov5000:"$5,000"},EI={TwoHundredFifty:"$250",FiveHundred:"$500",SevenHundredFifty:"$750",OneThousand:"$1,000",OneThousandFiveHundred:"$1,500",TwoThousand:"$2,000",TwoThousandFiveHundred:"$2,500",ThreeThousands:"$3,000",FourThousands:"$4,000",FiveThousands:"$5,000",OnePercent:"1%",TwoPercent:"2%",ThreePercent:"3%",FourPercent:"4%",FivePercent:"5%"},SI={None:"None",OnePercent:"1%",TwoPercent:"2%",FivePercent:"5%",TenPercent:"10%"},$I={_0_500ft:"0-500 Feet",_501_1000ft:"501-1000 Feet",_1001ftAndGreater:"1001 Feet And Greater"},DI={Lessthan5miles:"Less Than 5 Miles",Over5miles:"Over 5 Miles",NotAvailable:"Not Available"},s3={"Agriclt/Forestry/Fish":"Agriculture/Forestry/Fishing","Art/Design/Media":"Art/Design/Media","Banking/Finance/RE":"Banking/Finance/Real Estate","Business/Sales/Offi":"Business/Sales/Office","Construct/EnrgyTrds":"Construction/Energy Trades",Disabled:"Disabled","Education/Library":"Education/Library","Engr/Archt/Sci/Math":"Engineer/Architect/Science/Math","Government/Military":"Government/Military","Homemaker/Houseprsn":"Homemaker/House Person","Info Tech":"Information Technology",Insurance:"Insurance","Lgl/Law Enfcmt/Sec":"Legal/Law Enforcement/Security","Maint/Rpr/Hsekeep":"Maintenance/Repair/Housekeeping","Mfg/Production":"Manufacturing/Production","Med/Soc Svcs/Relig":"Medical/Social Services/Religion",Other:"Other","Person.Care/Service":"Personal Care/Service","Rest/Hotel Services":"Restaurant/Hotel Services",Retired:"Retired","Sports/Recreation":"Sports/Recreation",Student:"Student","Trvl/Trnsprt/Warehs":"Travel/Transportation/Warehousing",Unemployed:"Unemployed"},u3={Single:"Single",Married:"Married",Seperated:"Separated",Divorced:"Divorced",Widowed:"Widowed",DomesticPartner:"Domestic Partner"},c3={Female:"Female",Male:"Male"},S5={"Agriclt/Forestry/Fish":"Agriculture/Forestry/Fishing","Art/Design/Media":"Art/Design/Media","Banking/Finance/RE":"Banking/Finance/Real Estate","Business/Sales/Offi":"Business/Sales/Office","Construct/EnrgyTrds":"Construction/Energy Trades",Disabled:"Disabled","Education/Library":"Education/Library","Engr/Archt/Sci/Math":"Engineer/Architect/Science/Math","Government/Military":"Government/Military","Homemaker/Houseprsn":"Homemaker/House person","Info Tech":"Information Technology",Insurance:"Insurance","Lgl/Law Enfcmt/Sec":"Legal/Law Enforcement/Security","Maint/Rpr/Hsekeep":"Maintenance/Repair/Housekeeping","Mfg/Production":"Manufacturing/Production","Med/Soc Svcs/Relig":"Medical/Social Services/Religion",Other:"Other","Person.Care/Service":"Personal Care/Service","Rest/Hotel Services":"Restaurant/Hotel Services",Retired:"Retired","Sports/Recreation":"Sports/Recreation",Student:"Student","Trvl/Trnsprt/Warehs":"Travel/Transportation/Warehousing",Unemployed:"Unemployed"},xI={CONTAMINATION:"Contamination",CREDITCARD:"Credit Card",DAMAGETOPROPERTYOFOTHERS:"Damage To Property Of Others",DOGBITELIABILITY:"Dog Bite",EARTHMOVEMENT:"Earth Movement",EARTHQUAKE:"Earthquake",EXTENDEDCOVERAGEPERILS:"Extended Coverage Perils",FIRE:"Fire",FLOOD:"Flood",FREEZINGWATERINCLUDINGBURSTPIPES:"Freezing Water",HAIL:"Hail",HURRICANE:"Hurricane",LIABILITYALLOTHER:"Liability",LIGHTNING:"Lightning",MEDICALPAYMENTS:"Medical Payments",MYSTERIOUSDISAPPEARANCE:"Mysterious Disappearance",MYSTERIOUSDISAPPEARANCESCHEDULEDPROPERTY:"Mysterious Disappearance - Scheduled Property",PHYSICALDAMAGEALLOTHER:"Physical Damage",SINKHOLE:"Sinkhole",SLIPFALLLIABILITY:"Slip/Fall",SMOKE:"Smoke",THEFTSCHEDULEDPROPERTY:"Theft - Scheduled Property",THEFTBURGLARY:"Theft - Burglary",TORNADO:"Tornado",VANDALISMMALICIOUSMISCHIEF:"Vandalism",WATERDAMAGE:"Water Damage",WIND:"Wind",WORKERSCOMPENSATION:"Workers Compensation",ALLOTHER:"All Other"},CI={Verbal_Threshold:"Limited right to sue",Zero_Threshold:"Unlimited right to sue"},AI={Primary:"Primary",Secondary:"Secondary"},wI={cov1000:"$1,000",cov10000:"$10,000"},TI={cov100_10400_LIMITED:"100 - 10,400/ LIMITED",cov125_13000_LIMITED:"125 - 13,000/ LIMITED",cov175_18200_LIMITED:"175 - 18,200/ LIMITED",cov250_26000_LIMITED:"250 - 26,000/ LIMITED",cov400_41600_LIMITED:"400 - 41,600/ LIMITED",cov500_52000_LIMITED:"500 - 52,000/ LIMITED",cov600_62400_LIMITED:"600 - 62,400/ LIMITED",cov700_72800_LIMITED:"700 - 72,800/ LIMITED",cov100_UNLIMITED:"100/UNLIMITED",cov125_UNLIMITED:"125/UNLIMITED",cov175_UNLIMITED:"175/UNLIMITED",cov250_UNLIMITED:"250/UNLIMITED",cov400_UNLIMITED:"400/UNLIMITED",cov500_UNLIMITED:"500/UNLIMITED",cov600_UNLIMITED:"600/UNLIMITED",cov700_UNLIMITED:"700/UNLIMITED"},NI={cov250:"$250",cov500:"$500",cov1000:"$1,000",cov2000:"$2,000",cov2500:"$2,500"},MI={"Agriclt/Forestry/Fish":["Agr Inspect/Grader","Arborist","Clerk","Equip. Operator","Farm/Ranch Owner","Farm/Ranch Worker","Fisherman","Florist","Laborer/Worker","Landscape/NursryWkr","Landscaper","Logger","Millworker","Other","Ranger","Supervisor","Timber Grader/Scale"],"Art/Design/Media":["Actor","Admin Assist","Announcer/Broadcstr","Artist/Animator","Author/Writer","Choreography/Dancer","Clerk","Composer/Director","Curator","Designer","Editor","Journalist/Reporter","Musician/Singer","Other","Printer","Producer","Production Crew","Projectionist","Receptionist/Sec","Ticket Sales/Usher"],"Banking/Finance/RE":["Accountant/Auditor","Admin Assist","Analyst/Broker","Bookkeeper","Branch Manager","Clerk","Collections","Consultant","Controller","CSR/Teller","Director/Administr","Executive","Financial Advisor","Investment Banker","Investor","Loan/EscrowProcess","Mgr-Credit/Loan","Mgr-Portfolio/Prod.","Mgr-Property","Other","Realtor","Receptionist/Sec","SalesAgt/Represent.","Trader,Finan Instru","Underwriter"],"Business/Sales/Offi":["Account Executive","Admin Assist","Buyer","Clerk-Office","Consultant","CSR","Director/Administr","Executive","H.R. Representative","Marketing Researchr","Messenger/Courier","Mgr - District","Mgr - Finance","Mgr-Dept/Store","Mgr-General Opers","Mgr-H.R./PublicRel","Mgr-Mkt/Sales","Mgr/Supervisr-Offic","Other","Receptionist/Sec","Sales-Counter/Rentl","Sales-Home Based","Sales-Mfg Rep","Sales-Retail/Whlsle","Sales-Route/Vendor"],"Construct/EnrgyTrds":["Boiler Oper/Maker","Bricklayer/Mason","Carpenter","Carpet Installer","Concrete Worker","Constrct Proj Mgr","Contractor","Crane Operator","Electrician/Linesmn","ElevatorTech/Instl","Equip. Operator","FloorLayer/Finisher","Foreman/Supervisor","Handyman","Heat/Air Technician","Inspector","Laborer/Worker","Metalworker","Miner","Oil/GasDril/RigOpr","Other","Painter","Plstr/Drywall/Stuc","Plumber","Roofer"],Disabled:["Disabled"],"Education/Library":["Admin Assist","Audio-Visual Tech.","Child/DayCare Wrker","Clerk","Counselor","Grad. Teaching/Asst","Instructor-Vocation","Librarian/Curator","Other","Professor, College","Receptionist/Sec","Superintendent","Teacher, College","Teacher, K-12","Teaching Asst/Aide","Tutor"],"Engr/Archt/Sci/Math":["Actuary","Admin Assist","Analyst","Architect","Clerk","Clinical Data Coord.","Drafter","Engineer","Manager-Project","Manager-R&D","Mathematician","Other","Receptionist/Sec","Research Prog. Dir.","Researcher","Scientist","Sociologist","Surveyor/Mapmaker","Technician"],"Government/Military":["Accountant/Auditor","Admin Assist","Analyst","Attorney","Chief Executive","Clerk","Commissioner","Council member","Director/Administr","Enlst Mil Prsnl E1-4","Legislator","Mayor/City Manager","Meter Reader","NCO (E5-9)","Officer-Commissiond","Officer-Warrant","Other","Park Ranger","Planner","Postmaster","Receptionist/Sec","Regulator","US Postal Worker"],"Homemaker/Houseprsn":["Homemaker/Houseprsn"],"Info Tech":["Admin Assist","Analyst","Clerk","Director/Administr","Engineer-Hardware","Engineer-Software","Engineer-Systems","Executive","Manager-Systems","Network Admin","Other","Programmer","Project Coordinator","Receptionist/Sec","Support Technician","Systems Security","Technical Writer","Web Developer"],Insurance:["Accountant/Auditor","Actuarial Clerk","Actuary","Admin Assist","Agent/Broker","Analyst","Attorney","Claims Adjuster","Clerk","Commissioner","CSR","Director/Administr","Executive","Other","Product Manager","Receptionist/Sec","Sales Rep","Underwriter"],"Lgl/Law Enfcmt/Sec":["Airport Sec Ofcr","Animal Control Ofcr","Attorney","Bailiff","Corrections Officer","Court Clrk/Reporter","Deputy Sheriff","Dispatcher","Examiner","Fed Agt/Marshall","Fire Chief","Fire Fighter/Supv.","Gaming Ofcr/Invest","Highway Patrol Ofcr","Judge/Hearing Ofcr","Legal Asst./Sec","Other","Paralegal/Law Clerk","Police Chief","Police Det/Investgr","Police Offcr/Supvr","Process Server","Prvt Invest/Detec.","Security Guard","Sheriff"],"Maint/Rpr/Hsekeep":["Bldg Maint Engineer","Custodian/Janitor","Electrician","Field Service Tech.","Handyman","Heat/AirCond Repair","Housekeeper/Maid","Lndscpe/Grnds Maint","Maint Mechanic","Mechanic","Other"],"Mfg/Production":["Admin Assist","Clerk","Factory Worker","Foreman/Supervisor","Furniture Finisher","Inspector","Jeweler","Machine Operator","Other","Packer","Plant Manager","Printer/Bookbinder","Quality Control","Receptionist/Sec","Refining Operator","Shoemaker","Tailor/Custom Sewer","Textile Worker","Upholsterer"],"Med/Soc Svcs/Relig":["Admin Assist","Assist-Med/Dent/Vet","Clergy","Clerk","Client Care Worker","Dental Hygenist","Dentist","Doctor","Hospice Volunteer","Mortician","Nurse - C.N.A.","Nurse - LPN","Nurse - RN","Nurse Practitioner","Optometrist","Other","Paramedic/EM Tech","Pharmacist","Receptionist/Sec","Social Worker","Support Services","Technician","Therapist","Veterinarian"],Other:["Other"],"Person.Care/Service":["Caregiver","Dry Cleaner/Laundry","Hair Stylist/Barber","Housekeeper","Manicurist","Masseuse","Nanny","Other","Pet Services","Receptionist/Sec"],"Rest/Hotel Services":["Baker","Bartender","Bellhop","Bus Person","Caterer","Chef","Concessionaire","Concierge","Cook-Rest/Cafeteria","Cook/Wrkr-Fast Food","Delivery Person","Desk Clerk","Dishwasher","Food Prod/Packing","Host/Maitre d","Housekeeper/Maid","Manager","Other","Valet","Waiter/Waitress","Wine Steward"],Retired:["Retired"],"Sports/Recreation":["Activity/Recre.Asst","Admin Assist","Agent","Athlete","CampCounselor/Lead","Clerk","Coach","Concessionaire","Director, Program","Event Mgr/Promoter","Life Guard","Mgr - Fitness Club","Other","Park Ranger","Receptionist/Sec","Sales-Tkt/Mmbrshp","SportsBrdcstr/Journ","Trainer/Instructor","Umpire/Referee"],Student:["Graduate Student","High school","Other","Undergraduate"],"Trvl/Trnsprt/Warehs":["Admin Assist","Air Traffic Control","Airport Ops Crew","Bellhop/Porter","Clerk","Crane Loader/Oper","Dispatcher","Driver-Bus/Strcar","Driver-Taxi/Limo","Driver-Truck/Delvry","Flight Attendant","Forklift Operator","Laborer","Longshoreman","Mate/Sailor","Mgr Warehse/Dist","Other","Parking Lot Attend","Pilot/Capt/Eng","Railroad Worker","Receptionist/Sec","Shipping/RecClk","Subway/LgtRail Oper","Ticket Agent","Transportation Spec"],Unemployed:["Unemployed"]},RI={"Agr Inspect/Grader":"Agriculture Inspector/Grader",Arborist:"Arborist",Clerk:"Clerk","Equip. Operator":"Equipment Operator","Farm/Ranch Owner":"Farm/Ranch Owner","Farm/Ranch Worker":"Farm/Ranch Worker",Fisherman:"Fisherman",Florist:"Florist","Laborer/Worker":"Laborer/Worker","Landscape/NursryWkr":"Landscaper/Nursery Worker",Landscaper:"Landscaper",Logger:"Logger",Millworker:"Mill worker",Other:"Other",Ranger:"Ranger",Supervisor:"Supervisor","Timber Grader/Scale":"Timber Grader/Scale",Actor:"Actor","Admin Assist":"Administrative Assistant","Announcer/Broadcstr":"Announcer/Broadcaster","Artist/Animator":"Artist/Animator","Author/Writer":"Author/Writer","Choreography/Dancer":"Choreography/Dancer","Composer/Director":"Composer/Director",Curator:"Curator",Designer:"Designer",Editor:"Editor","Journalist/Reporter":"Journalist/Reporter","Musician/Singer":"Musician/Singer",Printer:"Printer",Producer:"Producer","Production Crew":"Production Crew",Projectionist:"Projectionist","Receptionist/Sec":"Receptionist/Secretary","Ticket Sales/Usher":"Ticket Sales/Usher","Accountant/Auditor":"Accountant/Auditor","Analyst/Broker":"Analyst/Broker",Bookkeeper:"Bookkeeper","Branch Manager":"Branch Manager",Collections:"Collections",Consultant:"Consultant",Controller:"Controller","CSR/Teller":"CSR/Teller","Director/Administr":"Director/Administrator",Executive:"Executive","Financial Advisor":"Financial Advisor","Investment Banker":"Investment Banker",Investor:"Investor","Loan/EscrowProcess":"Loan/Escrow Processor","Mgr-Credit/Loan":"Manager-Credit/Loan","Mgr-Portfolio/Prod.":"Manager-Portfolio/Production","Mgr-Property":"Manager-Property",Realtor:"Realtor","SalesAgt/Represent.":"Sales Agent/Representative","Trader,Finan Instru":"Trader, Financial Instruments",Underwriter:"Underwriter","Account Executive":"Account Executive",Buyer:"Buyer","Clerk-Office":"Clerk-Office",CSR:"Customer Service Representative","H.R. Representative":"H.R. Representative","Marketing Researchr":"Marketing Researcher","Messenger/Courier":"Messenger/Courier","Mgr - District":"Manager - District","Mgr - Finance":"Manager - Finance","Mgr-Dept/Store":"Manager - Department/Store","Mgr-General Opers":"Manager - General Operations","Mgr-H.R./PublicRel":"Manager - H.R./Public Relations","Mgr-Mkt/Sales":"Manager - Marketing/Sales","Mgr/Supervisr-Offic":"Manager/Supervisor - Office","Sales-Counter/Rentl":"Sales-Counter/Rental","Sales-Home Based":"Sales-Home Based","Sales-Mfg Rep":"Sales-Manufacture Rep","Sales-Retail/Whlsle":"Sales-Retail/Wholesale","Sales-Route/Vendor":"Sales-Route/Vendor","Boiler Oper/Maker":"Boiler Operator/Maker","Bricklayer/Mason":"Bricklayer/Mason",Carpenter:"Carpenter","Carpet Installer":"Carpet Installer","Concrete Worker":"Concrete Worker","Constrct Proj Mgr":"Construction - Project Manager",Contractor:"Contractor","Crane Operator":"Crane Operator","Electrician/Linesmn":"Electrician/Linesman","ElevatorTech/Instl":"Elevator Technician/Installer","FloorLayer/Finisher":"Floor Layer/Finisher","Foreman/Supervisor":"Foreman/Supervisor",Handyman:"Handyman","Heat/Air Technician":"Heat/Air Technician",Inspector:"Inspector",Metalworker:"Metalworker",Miner:"Miner","Oil/GasDril/RigOpr":"Oil/Gas Driller/Rig Operator",Painter:"Painter","Plstr/Drywall/Stuc":"Plaster/Drywall/Stucco",Plumber:"Plumber",Roofer:"Roofer",Disabled:"Disabled","Audio-Visual Tech.":"Audio-Visual Tech.","Child/DayCare Wrker":"Child/Daycare Worker",Counselor:"Counselor","Grad. Teaching/Asst":"Graduate Teaching Assistant","Instructor-Vocation":"Instructor-Vocation","Librarian/Curator":"Librarian/Curator","Professor, College":"Professor, College",Superintendent:"Superintendent","Teacher, College":"Teacher, College","Teacher, K-12":"Teacher, K-12","Teaching Asst/Aide":"Teaching Assistant/Aide",Tutor:"Tutor",Actuary:"Actuary",Analyst:"Analyst",Architect:"Architect","Clinical Data Coord.":"Clinical Data Coordinator",Drafter:"Drafter",Engineer:"Engineer","Manager-Project":"Manager-Project","Manager-R&D":"Manager-R&D",Mathematician:"Mathematician","Research Prog. Dir.":"Research Program Director",Researcher:"Researcher",Scientist:"Scientist",Sociologist:"Sociologist","Surveyor/Mapmaker":"Surveyor/Mapmaker",Technician:"Technician",Attorney:"Attorney","Chief Executive":"Chief Executive",Commissioner:"Commissioner","Council member":"Council member","Enlst Mil Prsnl E1-4":"Enlisted Military Personnel (E1-4)",Legislator:"Legislator","Mayor/City Manager":"Mayor/City Manager","Meter Reader":"Meter Reader","NCO (E5-9)":"NCO (E5-9)","Officer-Commissiond":"Officer-Commissioned","Officer-Warrant":"Officer-Warrant","Park Ranger":"Park Ranger",Planner:"Planner",Postmaster:"Postmaster",Regulator:"Regulator","US Postal Worker":"US Postal Worker","Homemaker/Houseprsn":"Homemaker/House person","Engineer-Hardware":"Engineer-Hardware","Engineer-Software":"Engineer-Software","Engineer-Systems":"Engineer-Systems","Manager-Systems":"Manager-Systems","Network Admin":"Network Administrator",Programmer:"Programmer","Project Coordinator":"Project Coordinator","Support Technician":"Support Technician","Systems Security":"Systems Security","Technical Writer":"Technical Writer","Web Developer":"Web Developer","Actuarial Clerk":"Actuarial Clerk","Agent/Broker":"Agent/Broker","Claims Adjuster":"Claims Adjuster","Product Manager":"Product Manager","Sales Rep":"Sales Representative","Airport Sec Ofcr":"Airport Security Officer","Animal Control Ofcr":"Animal Control Officer",Bailiff:"Bailiff","Corrections Officer":"Corrections Officer","Court Clrk/Reporter":"Court Clerk/Reporter","Deputy Sheriff":"Deputy Sheriff",Dispatcher:"Dispatcher",Examiner:"Examiner","Fed Agt/Marshall":"Federal Agent/Marshall","Fire Chief":"Fire Chief","Fire Fighter/Supv.":"Fire Fighter/Supervisor","Gaming Ofcr/Invest":"Gaming Officer/Investigator","Highway Patrol Ofcr":"Highway Patrol Officer","Judge/Hearing Ofcr":"Judge/Hearing Officer","Legal Asst./Sec":"Legal Assistant/Secretary","Paralegal/Law Clerk":"Paralegal/Law Clerk","Police Chief":"Police Chief","Police Det/Investgr":"Police Detective/Investigator","Police Offcr/Supvr":"Police Officer/Supervisor","Process Server":"Process Server","Prvt Invest/Detec.":"Private Investigator/Detective","Security Guard":"Security Guard",Sheriff:"Sheriff","Bldg Maint Engineer":"Building Maintenance Engineer","Custodian/Janitor":"Custodian/Janitor",Electrician:"Electrician","Field Service Tech.":"Field Service Technician","Heat/AirCond Repair":"Heat/Air Conditioner Repairman","Housekeeper/Maid":"Housekeeper/Maid","Lndscpe/Grnds Maint":"Landscape/Grounds Maintenance","Maint Mechanic":"Maintenance Mechanic",Mechanic:"Mechanic","Factory Worker":"Factory Worker","Furniture Finisher":"Furniture Finisher",Jeweler:"Jeweler","Machine Operator":"Machine Operator",Packer:"Packer","Plant Manager":"Plant Manager","Printer/Bookbinder":"Printer/Bookbinder","Quality Control":"Quality Control","Refining Operator":"Refining Operator",Shoemaker:"Shoemaker","Tailor/Custom Sewer":"Tailor/Custom Sewer","Textile Worker":"Textile Worker",Upholsterer:"Upholsterer","Assist-Med/Dent/Vet":"Assistant - Medic/Dent/Vet",Clergy:"Clergy","Client Care Worker":"Client Care Worker","Dental Hygenist":"Dental Hygienist",Dentist:"Dentist",Doctor:"Doctor","Hospice Volunteer":"Hospice Volunteer",Mortician:"Mortician","Nurse - C.N.A.":"Nurse - C.N.A.","Nurse - LPN":"Nurse - LPN","Nurse - RN":"Nurse - RN","Nurse Practitioner":"Nurse Practitioner",Optometrist:"Optometrist","Paramedic/EM Tech":"Paramedic/E.M. Technician",Pharmacist:"Pharmacist","Social Worker":"Social Worker","Support Services":"Support Services",Therapist:"Therapist",Veterinarian:"Veterinarian",Caregiver:"Caregiver","Dry Cleaner/Laundry":"Dry Cleaner/Laundry","Hair Stylist/Barber":"Hair Stylist/Barber",Housekeeper:"Housekeeper",Manicurist:"Manicurist",Masseuse:"Masseuse",Nanny:"Nanny","Pet Services":"Pet Services",Baker:"Baker",Bartender:"Bartender",Bellhop:"Bellhop","Bus Person":"Bus Person",Caterer:"Caterer",Chef:"Chef",Concessionaire:"Concessionaire",Concierge:"Concierge","Cook-Rest/Cafeteria":"Cook - Restaurant/Cafeteria","Cook/Wrkr-Fast Food":"Cook/Worker-Fast Food","Delivery Person":"Delivery Person","Desk Clerk":"Desk Clerk",Dishwasher:"Dishwasher","Food Prod/Packing":"Food Production/Packing","Host/Maitre d":"Host/Maitre d",Manager:"Manager",Valet:"Valet","Waiter/Waitress":"Waiter/Waitress","Wine Steward":"Wine Steward",Retired:"Retired","Activity/Recre.Asst":"Activity/Recreational Assistant",Agent:"Agent",Athlete:"Athlete","CampCounselor/Lead":"Camp Counselor/Lead",Coach:"Coach","Director, Program":"Director, Program","Event Mgr/Promoter":"Event Manager/Promoter","Life Guard":"Life Guard","Mgr - Fitness Club":"Manager - Fitness Club","Sales-Tkt/Mmbrshp":"Sales-Ticket/Membership","SportsBrdcstr/Journ":"Sports Broadcaster/Journalist","Trainer/Instructor":"Trainer/Instructor","Umpire/Referee":"Umpire/Referee","Graduate Student":"Graduate Student","High school":"High school",Undergraduate:"Undergraduate","Air Traffic Control":"Air Traffic Control","Airport Ops Crew":"Airport Operations Crew","Bellhop/Porter":"Bellhop/Porter","Crane Loader/Oper":"Crane Loader/Operator","Driver-Bus/Strcar":"Driver - Bus/Streetcar","Driver-Taxi/Limo":"Driver-Taxi/Limo","Driver-Truck/Delvry":"Driver-Truck/Delivery","Flight Attendant":"Flight Attendant","Forklift Operator":"Forklift Operator",Laborer:"Laborer",Longshoreman:"Longshoreman","Mate/Sailor":"Mate/Sailor","Mgr Warehse/Dist":"Manager - Warehouse/District","Parking Lot Attend":"Parking Lot Attendant","Pilot/Capt/Eng":"Pilot/Captain/Engineer","Railroad Worker":"Railroad Worker","Shipping/RecClk":"Shipping/Receiving Clerk","Subway/LgtRail Oper":"Subway/Light Rail Operator","Ticket Agent":"Ticket Agent","Transportation Spec":"Transportation Specialist",Unemployed:"Unemployed"},d3=MI,$5=RI;function Sy(e,t){if(typeof e!="string")return e;const n=e.trim();if(!n)return e;if(t[n])return n;const i=n.toLowerCase();return Object.keys(t).find(s=>s.toLowerCase()===i||t[s]?.toLowerCase()===i)??e}function xd(e){return Sy(e,S5)}function D5(e){return Sy(e,E5)}function x5(e){return Sy(e,$5)}function OI(e){return e.trim().toLowerCase()}function f3(e){if(typeof e!="string")return null;const t=e.match(/^(\d{4})-(\d{2})-(\d{2})$/);if(!t)return null;const n=Number(t[1]),i=Number(t[2]),o=Number(t[3]);if(!Number.isFinite(n)||!Number.isFinite(i)||!Number.isFinite(o)||i<1||i>12||o<1||o>31)return null;const s=new Date(Date.UTC(n,i-1,o));return s.getUTCFullYear()!==n||s.getUTCMonth()!==i-1||s.getUTCDate()!==o?null:s.getTime()}function xs(e,t){if(!t.effectiveDateKey||!t.expirationDateKey)return!1;const n=f3(e[t.expirationDateKey]),i=f3(e[t.effectiveDateKey]);return n==null||i==null?!1:n<i}const kI=new Set(["HomePolicy","BundlePolicy"]);function Kc(e,t,n){return String(e.key??"")!=="lapse_in_coverage"||!n||!kI.has(n)?!0:t.home_prior_carrier_name!=="NoPriorInsurance"}function $y(e){let t=null,n=null,i=null,o=null;const s=new Set,c=new Set,d=h=>{const y=String(h.key??""),g=OI(String(h.question??""));!t&&(y==="auto_prior_carrier_name"||y==="home_prior_carrier_name"||g.includes("current auto insurance company"))&&(t=y),!n&&(y==="auto_prior_carrier_name"||g.includes("current auto insurance company"))&&(n=y),!i&&(y==="effective_date"||g.includes("when do you need your insurance to begin"))&&(i=y),!o&&(y==="auto_prior_expiration_date"||y==="home_prior_expiration_date"||g.includes("when does the current policy expire"))&&(o=y),(y==="auto_reason_for_no_insurance"||g.includes("reason you are not currently insured")||g.includes("reason for lapse in coverage"))&&s.add(y),(y==="auto_prior_years"||y==="auto_prior_months"||y==="auto_continuous_coverage_years"||y==="auto_prior_expiration_date"||y==="auto_current_annual_premium_cents"||y==="auto_prior_liability_limit")&&c.add(y)};e.forEach(d);const m=h=>{h.forEach(y=>{(y.conditionals??[]).forEach(g=>{const E=g.conditionalQuestions??[];E.forEach(d),m(E)})})};return m(e),{currentCarrierKey:t,autoCarrierKey:n,effectiveDateKey:i,expirationDateKey:o,noInsuranceReasonKeys:s,hideWhenNoPriorInsuranceKeys:c}}function C5(e,t){return!!t.autoCarrierKey&&e[t.autoCarrierKey]==="NoPriorInsurance"}function Cs(e,t){return C5(e,t)?!0:t.currentCarrierKey==="home_prior_carrier_name"&&e.home_prior_carrier_name==="NoPriorInsurance"&&e.auto_prior_carrier_name!=="NoPriorInsurance"?!1:(t.currentCarrierKey?e[t.currentCarrierKey]:void 0)==="NoPriorInsurance"?!0:!t.effectiveDateKey||!t.expirationDateKey?!1:xs(e,t)}function Wc(e,t,n){const i=String(e.key??"");if(n.noInsuranceReasonKeys.has(i)&&n.currentCarrierKey==="home_prior_carrier_name"&&t.home_prior_carrier_name==="NoPriorInsurance"&&t.auto_prior_carrier_name!=="NoPriorInsurance")return!1;const s=(n.currentCarrierKey?t[n.currentCarrierKey]:void 0)==="NoPriorInsurance";return s&&n.hideWhenNoPriorInsuranceKeys.has(i)?!1:!n.noInsuranceReasonKeys.has(i)||s?!0:Cs(t,n)}function Qc(e,t){const n=String(e.key??"");return t.noInsuranceReasonKeys.has(n)}const m3=["ACURA","ALFA ROMEO","ASTON MARTIN","AUDI","BENTLEY","BMW","BUGATTI","BUICK","CADILLAC","CHEVROLET","CHRYSLER","CRUISE","DODGE","FERRARI","FIAT","FORD","FREIGHTLINER","GENESIS","GLOBAL ELECTRIC MOTORS","GMC","HONDA","HYUNDAI","INFINITI","JAGUAR","JEEP","KARMA AUTOMOTIVE","KIA","LAMBORGHINI","LAND ROVER","LEXUS","LINCOLN","LOTUS","MASERATI","MAZDA","MCLAREN AUTOMOTIVE","MERCEDES-BENZ","MINI","MITSUBISHI","NISSAN","POLESTAR","PORSCHE","RAM","ROLLS-ROYCE","SUBARU","TESLA","TOYOTA","VOLKSWAGEN","VOLVO"],Dy="credify_quote_id",xy="credify_auth_token";function p3(e){try{localStorage.setItem(Dy,e)}catch(t){console.error("Failed to save quoteId to localStorage:",t)}}function af(){try{return localStorage.getItem(Dy)}catch(e){return console.error("Failed to load quoteId from localStorage:",e),null}}function A5(){try{localStorage.removeItem(Dy)}catch(e){console.error("Failed to clear quoteId from localStorage:",e)}}function BI(e){try{localStorage.setItem(xy,e)}catch(t){console.error("Failed to save authToken to localStorage:",t)}}function LI(){try{return localStorage.getItem(xy)}catch(e){return console.error("Failed to load authToken from localStorage:",e),null}}function w5(){try{localStorage.removeItem(xy)}catch(e){console.error("Failed to clear authToken from localStorage:",e)}}function PI(){A5(),w5()}const FI="credify-insurance-widget",II="1.0",T5=25,N5=64*1024,jI=`
|
|
121
|
-
…[truncated]`;let h3=!1,y3=null,g3="",M5=T5,g0=N5,As=[];function zI(e){return typeof e=="string"?e:e instanceof URL?e.href:e.url}function UI(e,t){return t?.method?t.method.toUpperCase():typeof e!="string"&&!(e instanceof URL)&&e.method?e.method.toUpperCase():"GET"}function b3(e){if(!e)return[];const t=[];if(Array.isArray(e))for(const[n,i]of e)t.push({name:n,value:String(i)});else if(typeof e.forEach=="function")e.forEach((n,i)=>t.push({name:i,value:n}));else for(const[n,i]of Object.entries(e))t.push({name:n,value:String(i)});return t}function HI(e){try{const t=[];return new URL(e).searchParams.forEach((n,i)=>t.push({name:i,value:n})),t}catch{return[]}}function VI(e,t){const n=t?.body;return typeof n!="string"||n.length===0?void 0:{mimeType:e.find(o=>o.name.toLowerCase()==="content-type")?.value??"application/json",text:n}}function GI(e){const t=e.length;return t<=g0?{text:e,size:t}:{text:e.slice(0,g0)+jI,size:t}}function ZI(e){As.push(e),As.length>M5&&As.shift()}function YI(e){if(h3)return!0;if(typeof window>"u"||typeof window.fetch!="function")return!1;g3=e.baseUrl,M5=e.maxEntries??T5,g0=e.maxBodyBytes??N5,y3=window.fetch.bind(window);const t=y3;return window.fetch=async(n,i)=>{let o;try{o=zI(n)}catch{return t(n,i)}if(!o.startsWith(g3))return t(n,i);const s=b3(i?.headers??(typeof n!="string"&&!(n instanceof URL)?n.headers:void 0)),c={startedDateTime:new Date().toISOString(),time:-1,request:{method:UI(n,i),url:o,httpVersion:"HTTP/1.1",headers:s,queryString:HI(o),cookies:[],headersSize:-1,bodySize:typeof i?.body=="string"?i.body.length:-1,postData:VI(s,i)},response:qI(),cache:{},timings:{send:0,wait:-1,receive:0}};ZI(c);const d=typeof performance<"u"?performance.now():0;let m;try{m=await t(n,i)}catch(y){const g=(typeof performance<"u"?performance.now():0)-d;throw c.time=Math.round(g),c.timings.wait=Math.round(g),c.response._error=y instanceof Error?y.message:String(y),y}const h=(typeof performance<"u"?performance.now():0)-d;c.time=Math.round(h),c.timings.wait=Math.round(h),c.response.status=m.status,c.response.statusText=m.statusText,c.response.headers=b3(m.headers),c.response.content.mimeType=typeof m.headers?.get=="function"&&m.headers.get("content-type")||"";try{m.clone().text().then(g=>{const{text:E,size:S}=GI(g);c.response.content.text=E,c.response.content.size=S,c.response.bodySize=S}).catch(()=>{})}catch{}return m},h3=!0,!0}function qI(){return{status:0,statusText:"",httpVersion:"HTTP/1.1",headers:[],cookies:[],content:{size:0,mimeType:""},redirectURL:"",headersSize:-1,bodySize:-1}}function KI(){return{log:{version:"1.2",creator:{name:FI,version:II},entries:As.map(e=>({...e}))}}}function WI(){return As.length}const QI=[/ssn/i,/social.?security/i,/(driver.?licen[cs]e|^dln$|^dl$)/i,/(date.?of.?birth|^dob$)/i,/^vin$/i,/(sms.?code|^otp$|^code$|verification.?code)/i,/phone/i,/^email$/i,/(first.?name|last.?name|full.?name)/i,/(^address$|street|^zip$|postal)/i,/(jwt|^token$|authorization|^auth$|api.?key|secret|password|credential)/i,/cookie/i],JI=[/\b\d{3}-?\d{2}-?\d{4}\b/g,/\b[A-HJ-NPR-Z0-9]{17}\b/g,/eyJ[A-Za-z0-9_-]+\.[A-Za-z0-9_-]+\.[A-Za-z0-9_-]+/g,/\bsk_[A-Za-z0-9]{16,}\b/g,/\bBearer\s+[A-Za-z0-9._-]+/gi],qa="[REDACTED]",XI=8;function of(e){for(const t of QI)if(t.test(e))return!0;return!1}function Ka(e){let t=e;for(const n of JI)t=t.replace(n,qa);return t}function Ua(e,t=0,n=new WeakSet){if(t>XI)return qa;if(e==null)return e;if(typeof e=="string")return Ka(e);if(typeof e!="object")return e;if(n.has(e))return qa;if(n.add(e),Array.isArray(e))return e.map(s=>Ua(s,t+1,n));const i=Object.getPrototypeOf(e);if(i!==null&&i!==Object.prototype)return e;const o={};for(const[s,c]of Object.entries(e)){if(of(s)){o[s]=qa;continue}o[s]=Ua(c,t+1,n)}return o}function v3(e){if(e.request&&(e.request.data!==void 0&&(e.request.data=Ua(e.request.data)),e.request.cookies!==void 0&&(e.request.cookies=qa),e.request.headers)){const t=e.request.headers;for(const n of Object.keys(t))of(n)&&(t[n]=qa)}if(e.extra&&(e.extra=Ua(e.extra)),e.contexts&&(e.contexts=Ua(e.contexts)),e.tags&&(e.tags=Ua(e.tags)),e.user){const{id:t,email:n,username:i}=e.user;e.user={...typeof t=="string"?{id:t}:{},...typeof n=="string"?{email:n}:{},...typeof i=="string"?{username:i}:{}}}if(Array.isArray(e.breadcrumbs))for(const t of e.breadcrumbs)t.data!==void 0&&(t.data=Ua(t.data)),typeof t.message=="string"&&(t.message=Ka(t.message));return typeof e.message=="string"&&(e.message=Ka(e.message)),e}function _3(e){for(const t of e)t.value=of(t.name)?qa:Ka(t.value)}function E3(e){try{return JSON.stringify(Ua(JSON.parse(e)))}catch{return Ka(e)}}function ej(e){const t=JSON.parse(JSON.stringify(e));for(const n of t.log.entries){_3(n.request.headers),_3(n.response.headers);for(const i of n.request.queryString)i.value=of(i.name)?qa:Ka(i.value);n.request.postData?.text&&(n.request.postData.text=E3(n.request.postData.text)),n.response.content.text&&(n.response.content.text=E3(n.response.content.text)),n.request.url=Ka(n.request.url),n.response._error&&(n.response._error=Ka(n.response._error))}return t}function Uo(e,t={}){try{M0(n=>{n.setTag("failure_type","quote"),t.stage&&n.setTag("stage",t.stage),t.quoteId&&n.setTag("quote_id",t.quoteId),t.phase&&n.setTag("phase",t.phase),t.endpoint&&n.setTag("endpoint",t.endpoint),typeof t.statusCode=="number"&&n.setTag("status_code",String(t.statusCode));try{WI()>0&&n.addAttachment({filename:"quote-failure.har",data:JSON.stringify(ej(KI())),contentType:"application/json"})}catch{}const i=e instanceof Error?e:new Error(t.message??"Quote failed");ul(i)})}catch{}}const Rt="https://api.getcredify.com";let ll=null;const tj=6e4,S3=new Map;function nj(e){try{return new URL(e).pathname}catch{return e}}function $3(e,t,n){if(!(n>=500&&n<600)&&!(n===0))return;e.__sentryReported=!0;const s=nj(t),c=`${s}:${n}`,d=Date.now(),m=S3.get(c);m&&d-m<tj||(S3.set(c,d),Uo(e,{phase:"api_request",endpoint:s,statusCode:n}))}function Jc(e){ll=e,BI(e)}function Jr(){return ll}function Xc(){const e=LI();e&&(ll=e)}function R5(){ll=null,w5()}async function qt(e,t){const n={"Content-Type":"application/json"};ll&&(n.Authorization=`Bearer ${ll}`);let i;try{i=await fetch(e,{method:"POST",headers:n,body:JSON.stringify(t)})}catch(o){const s=o instanceof Error?o:new Error(String(o));throw $3(s,e,0),o}if(!i.ok){let o=`Request failed with status ${i.status}`,s;try{const d=await i.json();o=d.error||o,typeof d.retryAfterSeconds=="number"&&(s=d.retryAfterSeconds)}catch{o=i.statusText||o}if(s===void 0){const d=Number(i.headers?.get("Retry-After"));Number.isFinite(d)&&d>0&&(s=d)}const c=new Error(o);throw c.statusCode=i.status,c.retryAfterSeconds=s,$3(c,e,i.status),c}return i}async function Xs(e){try{return await e.json()}catch{return{}}}async function rj(e,t){const n=t?{stage:e,quoteId:t}:{stage:e};return await(await qt(`${Rt}/get-questions-by-stage`,n)).json()}async function Pc(e){const t=e?{quoteId:e}:{};return await(await qt(`${Rt}/get-stages-for-quote`,t)).json()}async function aj(e,t=!1){const n=t?{postal_code:e,is_test:!0}:{postal_code:e},o=await(await qt(`${Rt}/create-quote`,n)).json();if(!o||typeof o!="object"||!o.quoteId)throw new Error(`Invalid createQuote response: ${JSON.stringify(o)}`);return o}async function O5(e,t){return await(await qt(`${Rt}/verify-quote`,{action:"send",quoteId:e,phone:t})).json()}async function La(e,t,n){const i={payload:e,getRates:t};n&&typeof n=="string"&&n.trim()!==""&&(i.quoteId=n);const o=await qt(`${Rt}/update-quote`,i),s=await Xs(o);return!s||typeof s!="object"||!("status"in s)||s.status==null?{status:"success"}:s}async function b0(e,t){return await(await qt(`${Rt}/verify-quote`,{quoteId:e,smsCode:t})).json()}async function ij(e){return await(await qt(`${Rt}/verify-quote`,{action:"resume",resumeToken:e})).json()}async function k5(e,t){const n={state:e};return t&&typeof t=="string"&&t.trim()!==""&&(n.quoteId=t),await(await qt(`${Rt}/is-supported-state`,n)).json()}async function sh(e){const t=e?{quoteId:e}:{};return await(await qt(`${Rt}/get-rates`,t)).json()}async function D3(e){const t=e?{quoteId:e}:{};return await(await qt(`${Rt}/get-quote`,t)).json()}async function B5(e){return(await qt(`${Rt}/get-vehicle-options`,e)).json()}async function oj(e){return(await qt(`${Rt}/get-vehicle-options`,{...e,action:"vinDecode"})).json()}async function lj(e){const t=await qt(`${Rt}/get-vehicle-options`,{quoteId:e,action:"vehiclePrefillSuggestions"}),n=await Xs(t);return{suggestions:Array.isArray(n.suggestions)?n.suggestions:[]}}async function sj(e,t){const n=await qt(`${Rt}/get-vehicle-options`,{quoteId:e,action:"applyVehiclePrefill",selectedIds:t}),i=await Xs(n);return{items:Array.isArray(i.items)?i.items:[]}}async function uj(e){await qt(`${Rt}/get-vehicle-options`,{quoteId:e,action:"dismissVehiclePrefill"})}async function cj(e){const t=await qt(`${Rt}/get-vehicle-options`,{quoteId:e,action:"driverPrefillSuggestions"}),n=await Xs(t);return{suggestions:Array.isArray(n.suggestions)?n.suggestions:[]}}async function dj(e,t){const n=await qt(`${Rt}/get-vehicle-options`,{quoteId:e,action:"applyDriverPrefill",selectedIds:t}),i=await Xs(n);return{items:Array.isArray(i.items)?i.items:[]}}async function fj(e){await qt(`${Rt}/get-vehicle-options`,{quoteId:e,action:"dismissDriverPrefill"})}async function mj(e,t){const i=await(await qt(`${Rt}/request-bind`,{quoteRateId:e,privacyNoticeAcknowledged:t})).json();return i&&typeof i=="object"&&"success"in i?i:{success:!0}}const uh=new Set(["auto_prior_years","auto_prior_months","auto_continuous_coverage_years"]);function v0(e){return Dd(String(e??"")).replace(/[^a-zA-Z0-9_-]+/g,"-").replace(/^-+|-+$/g,"").toLowerCase()}function pj(e){const t=v0(e??"unknown-stage");return["form-area",`form-area--${t}`,`formArea-${t}`].join(" ")}function ch(e,t,n){const i=v0(t??"unknown-stage"),o=v0(e);return["form-section","form-question",`form-section--${o}`,`form-question--${o}`,`formQuestion-${i}_${o}`,n&&n.length>0?"form-question--scoped":null].filter(Boolean).join(" ")}const hj={None:"None","30000/60000/25000":"30/60k","30000/60000/30000":"30/60k","50000/100000/30000":"50/100k","50000/100000/50000":"50/100k","100000/300000/50000":"100/300k","100000/300000/100000":"100/300k","250000/500000/100000":"250/500k","250000/500000/250000":"250/500k","300000/500000/250000":"300/500k","300000/500000/300000":"300/500k","500000/500000/300000":"500k CSL","500000/500000/500000":"500k CSL","500000/1000000/300000":"500k/1M","500000/1000000/500000":"500k/1M"},x3={auto_prior_carrier_name:IF,auto_prior_liability_limit:HF,auto_reason_for_no_insurance:VF,residence_type:jF,home_prior_carrier_name:zF,policy_bi:GF,policy_um:ZF,policy_pd:YF,policy_mp:qF,policy_umpd:KF,policy_pip:WF,policy_auto_death_indemnity:QF,vehicle_comp_deductible:h0,vehicle_coll_deductible:h0,vehicle_towing_and_labor:y0,vehicle_transportation_expense:_5,education_level:E5,industry:S5,occupation:$5,usage:UF,architectural_style:rI,dwelling_type:aI,occupancy_type:iI,construction_quality:oI,construction_type:lI,foundation_type:sI,located_over_water:uI,number_of_stories:cI,exterior_wall_type:dI,roof_material_type:fI,roof_shape:mI,roof_updated_type:pI,heating_type:hI,oil_tank_location:yI,basement_type:gI,plumbing_type:bI,personal_liability:vI,dwelling_medical_payments:_I,all_perils_deductible:EI,windstorm_deductible:SI,distance_from_fire_hydrant_ft:$I,distance_from_fire_station_miles:DI,employment_industry:s3,marital_status:u3,gender:c3,co_applicant_employment_industry:s3,co_applicant_marital_status:u3,co_applicant_gender:c3,description:xI,tort_threshold:CI,pip_coverage_type:AI,extended_medical:wI,additional_pip:TI,policy_pip_deductible:NI},C3=["OTHER / NOT LISTED"],A3=["SEDAN","SUV","COUPE","HATCHBACK","PICKUP","VAN","WAGON","OTHER"],yj=["Other"];function jn(e){const t=e.getUTCFullYear(),n=String(e.getUTCMonth()+1).padStart(2,"0"),i=String(e.getUTCDate()).padStart(2,"0");return`${t}-${n}-${i}`}function w3(e){const t=e.replace(/\D+/g,"");if(t!=="")return FF(t)}function gj(e){return e==="-"||e==="+"||e==="."||e==="e"||e==="E"}const bj={year_built:4,year_roof_updated:4,heating_update_year:4,plumbing_update_year:4,electrical_update_year:4,total_area_sq_ft:6,sale_price_cents:9,dwelling_replacement_cost:9,other_structures_coverage:9,personal_property_coverage:9,loss_of_use_coverage:9,amount_paid_cents:7,home_prior_years:2,home_continuous_coverage_years:2,number_of_dogs:2,number_of_units:2,months_at_address:2,years_at_address:3,years_at_prior_address:3,distance_to_coast_miles:4,household_size:1,number_of_families:1,number_of_mortgagees:1,number_of_parking_spaces:1,annual_mileage:6,miles_to_work:4,custom_equipment_value_cents:7,cost_new_value_cents:7,stated_value_amount_cents:7,property_damage_amount_paid_cents:7,personal_injury_amount_paid_cents:7,auto_current_annual_premium_cents:7,auto_prior_years:2,auto_prior_months:2,auto_continuous_coverage_years:2},T3=new Set(["sale_price_cents","dwelling_replacement_cost","other_structures_coverage","personal_property_coverage","loss_of_use_coverage","custom_equipment_value_cents","cost_new_value_cents","stated_value_amount_cents","property_damage_amount_paid_cents","personal_injury_amount_paid_cents","auto_current_annual_premium_cents","amount_paid_cents"]),vj=new Set(["total_area_sq_ft","annual_mileage","miles_to_work","distance_to_coast_miles"]),Fc={first_name:"given-name",last_name:"family-name",co_applicant_first_name:"given-name",co_applicant_last_name:"family-name",date_of_birth:"bday",co_applicant_date_of_birth:"bday",sms_code:"one-time-code",vin:"off",license_number:"off",effective_date:"off"},_j={license_number:20};function Ej(e){const t=new Date,n=new Date(Date.UTC(t.getUTCFullYear(),t.getUTCMonth(),t.getUTCDate()));if(e==="effective_date"){const i=new Date(Date.UTC(n.getUTCFullYear(),n.getUTCMonth()+3,n.getUTCDate()));return{min:jn(n),max:jn(i)}}if(e==="home_prior_expiration_date"){const i=new Date(Date.UTC(n.getUTCFullYear()-1,n.getUTCMonth(),n.getUTCDate())),o=new Date(Date.UTC(n.getUTCFullYear()+1,n.getUTCMonth(),n.getUTCDate()));return{min:jn(i),max:jn(o)}}if(e==="date_of_incident")return{max:jn(n)};if(e==="move_in_date")return{max:jn(n)};if(e==="purchase_date")return{max:jn(n)};if(e==="date_of_birth")return{max:jn(n)};if(e==="date_first_licensed")return{max:jn(n)};if(e==="occurred_at")return{max:jn(n)};if(e==="accident_prevention_course_date")return{max:jn(n)};if(e==="auto_prior_expiration_date"){const i=new Date(Date.UTC(n.getUTCFullYear()-1,n.getUTCMonth(),n.getUTCDate())),o=new Date(Date.UTC(n.getUTCFullYear()+1,n.getUTCMonth(),n.getUTCDate()));return{min:jn(i),max:jn(o)}}return{}}const Sj=new Set(["Disabled","Retired","Unemployed","Other"]);function dh(e,t,n){const i=String(e.key??"");if(i!=="occupation"&&i!=="co_applicant_occupation"||i==="co_applicant_occupation")return!0;const o=rn(t,n,"industry"),s=rn(t,n,"employment_industry"),c=String(o??s??"").trim();return!Sj.has(c)}function fh(e,t,n,i){return rf(e,i,n)}function ed(e){return e.inputType!=="radio"||!e.options||e.options.length!==1||e.options[0]!=="Yes"?!1:(e.conditionals??[]).some(n=>n.conditionalQuestionsAllowMultiple&&n.conditionalType==="equals"&&n.conditionalValue==="Yes")}function N3(e,t){return ed(e)?"Yes":t}function M3(e){return typeof e=="number"&&Number.isFinite(e)?e:typeof e=="string"&&e.trim()!==""&&!Number.isNaN(Number(e))?Number(e):null}function R3(e){if(e instanceof Date&&!Number.isNaN(e.getTime()))return e.getTime();if(typeof e=="string"){const t=Date.parse(e);return Number.isNaN(t)?null:t}return null}function O3(e,t){const n=M3(e),i=M3(t);if(n!=null&&i!=null)return n-i;const o=R3(e),s=R3(t);return o!=null&&s!=null?o-s:e==null||t==null?null:String(e).localeCompare(String(t))}function $j(e,t){return Array.isArray(e)?e.some(n=>n===t):typeof e=="string"?t!=null&&e.includes(String(t)):!1}function ms(e,t,n){switch(t){case"equals":return e===n;case"notEquals":return e!==n&&e!==""&&e!=null;case"lessThan":{const i=O3(e,n);return i!=null&&i<0}case"greaterThan":{const i=O3(e,n);return i!=null&&i>0}case"contains":return $j(e,n);case"startsWith":return e!=null&&n!=null&&String(e).startsWith(String(n));case"endsWith":return e!=null&&n!=null&&String(e).endsWith(String(n));default:return!1}}function Es(e,t){return t.reduce((n,i)=>n?.[i],e)}function tr(e,t,n){if(t.length===0)return e;const[i,...o]=t;if(o.length===0){if(typeof i=="number"){const h=(Array.isArray(e)?e:[]).slice();return h[i]=n,h}return{...e,[i]:n}}const s=e?.[i],c=typeof o[0]=="number"?Array.isArray(s)?s:[]:s&&typeof s=="object"?s:{},d=tr(c,o,n);if(typeof i=="number"){const h=(Array.isArray(e)?e:[]).slice();return h[i]=d,h}return{...e,[i]:d}}function rn(e,t,n){return Es(e,[...t??[],n])}function ln(e,t,n,i){return tr(e,[...t??[],n],i)}function Dj(e,t){return e?.length?`${e.join("-")}-${t}`:t}const xj="__items",Ic=e=>`${e}${xj}`;function $n(e){return e==null?"":typeof e=="string"?e:String(e)}function k3(e){return e==null?"":typeof e=="number"&&Number.isFinite(e)||typeof e=="string"?e:""}function Cj(e){return e==null?"":typeof e=="string"||typeof e=="number"?e:String(e)}function L5({questions:e,initialValues:t,controlledValues:n,onChangeValues:i,onSubmit:o,quoteId:s,widgetStageKey:c,validationAttempt:d=0,invalidValueKeys:m,fetchVehicleOptions:h}){const y=b.useMemo(()=>h??(z=>B5({quoteId:s,...z})),[h,s]),g=b.useMemo(()=>py(e),[e]),E=b.useMemo(()=>$y(g),[g]),S=b.useMemo(()=>c==="BundlePolicy"?!0:g.some(z=>String(z.key)==="home_prior_carrier_name")&&g.some(z=>String(z.key)==="driver_vehicle_assignments"),[c,g]),$=b.useMemo(()=>{const z={};return t&&Object.assign(z,t),z},[t]),[x,w]=b.useState($);b.useEffect(()=>{w($)},[$]);const[R,F]=b.useState({}),A=b.useMemo(()=>({...R,...n??x}),[R,n,x]);b.useEffect(()=>{n&&F(z=>({...z,...n}))},[n]);const[L,M]=b.useState({}),Z=b.useRef(new Map),V=b.useRef(new Set),[,fe]=b.useState({}),[ne,pe]=b.useState({}),J=b.useRef(!1);b.useEffect(()=>{!s||J.current||!g.some(T=>T.key==="year"||T.key==="make"||T.key==="model"||T.key==="body_style")||(J.current=!0,y({}).catch(()=>{}))},[s,g,y]);const[ye,Ae]=b.useState({}),[j,de]=b.useState({}),O=b.useCallback(async(z,T)=>{if(!s||!l3(T))return;const N=z?z.join("-"):"_root";Ae(ie=>({...ie,[N]:!0})),de(ie=>({...ie,[N]:null}));try{const ie=await oj({quoteId:s,vin:T});if(ie.error){de(Se=>({...Se,[N]:ie.error}));return}let ge=A;ie.year&&(ge=ln(ge,z,"year",String(ie.year))),ie.make&&(ge=ln(ge,z,"make",ie.make)),ie.model&&(ge=ln(ge,z,"model",ie.model)),ie.bodyStyle&&(ge=ln(ge,z,"body_style",ie.bodyStyle)),n&&i?i(ge):w(ge),F(ge),Z.current.clear(),V.current.clear(),fe({})}catch{de(ie=>({...ie,[N]:"VIN lookup failed — please enter vehicle details manually"}))}finally{Ae(ie=>({...ie,[N]:!1}))}},[s,A,n,i]),B=b.useCallback(z=>{const T=`${z.year}|${z.make??""}|${z.model??""}`,N=z.model?"bodyStyles":z.make?"models":"makes",ie=Z.current.get(T);return ie?ie[N]??[]:void 0},[]),X=b.useCallback((z,T)=>{if(!s)return;const N=`${T.year}|${T.make??""}|${T.model??""}`,ie=T.model?"bodyStyles":T.make?"models":"makes",ge=`${z}:${ie}`;Z.current.has(N)||V.current.has(N)||(V.current.add(N),pe(Se=>({...Se,[ge]:!0})),y(T).then(Se=>{Z.current.set(N,Se),fe(he=>({...he,[ge]:Se[ie]??[]}))}).catch(()=>{Z.current.set(N,{}),fe(Se=>({...Se,[ge]:[]}))}).finally(()=>{V.current.delete(N),pe(Se=>({...Se,[ge]:!1}))}))},[s,y]);function I(z,T,N){const ie=A,ge=z?Es(A,z)??{}:ie;return z?{state:ie.state,...ge,[T]:N}:{...ge,[T]:N}}function G(z,T){const N=v5.filter(ge=>ge.targetKey===z||ge.dependsOn.includes(z)),ie={[z]:void 0};for(const ge of N){const Se=ge.validate(T);ge.targetKey in ie?Se!==void 0&&(ie[ge.targetKey]=Se):ie[ge.targetKey]=Se}M(ge=>({...ge,...ie}))}const C=(z,T,N)=>{const ie=rn(A,N,z);if(Cr(ie,T)){L[z]&&M(Se=>({...Se,[z]:void 0}));return}const ge=p0(z,ie);if(ge){M(Se=>({...Se,[z]:ge}));return}G(z,I(N,z,ie))};b.useEffect(()=>{let z=A,T=!1;g.forEach(N=>{if(!ed(N))return;const ie=String(N.key);rn(z,void 0,ie)!=="Yes"&&(z=ln(z,void 0,ie,"Yes"),T=!0)}),T&&(n&&i?i(z):w(z),F(z))},[g,A,n,i]);function U(z,T){const N=z.key;if((N==="relationship_to_insured"||N==="is_registered_owner")&&T){const me=T[T.length-1];if(typeof me=="number"&&me===0)return null}if((N==="purchase_date"||N==="cost_new_value_cents")&&T)return null;if(N==="custom_equipment_value_cents"&&T){const me=rn(A,T,"vehicle_has_modifications");if(me!=="Yes"&&me!==!0)return null}const ie=N==="auto_reason_for_no_insurance"&&(E.currentCarrierKey||E.autoCarrierKey)?C5(A,E)||E.currentCarrierKey&&A[E.currentCarrierKey]==="NoPriorInsurance"?"Reason you are not currently insured":"Reason for lapse in coverage":z.question,ge=z.hint,Se=rn(A,T,N),he=Qc(z,E)?Cs(A,E):N==="social_security_number"&&$d(A.state??A.State)?!0:z.required,we=L[N],Fe=me=>{let $e=ln(A,T,N,me);if(z.inputType==="radio"&&z.conditionals){const se=z.conditionals??[];for(const _e of se){const be=rn(A,T,N),Ce=ms(be,_e.conditionalType,_e.conditionalValue),xe=ms(me,_e.conditionalType,_e.conditionalValue);if(Ce&&!xe&&_e.conditionalQuestionsAllowMultiple){const Ne=_e.conditionalQuestions??[];if(Ne.length>0){const re=Ic(N);$e=tr($e,[...T??[],re],[]);const oe=(De,Ee)=>{De.forEach(Te=>{(Te.conditionals??[]).forEach(ke=>{if(ke.conditionalQuestionsAllowMultiple){const Ue=Ic(Te.key);$e=tr($e,[...Ee,Ue],[])}const qe=ke.conditionalQuestions??[];qe.length>0&&oe(qe,Ee)})})};oe(Ne,[...T??[],re])}}}}n&&i?i($e):w($e),F($e)};if(N==="vehicle_policy_selections"){const me=A.vehicles__items??[],$e=A.drivers__items??[];if(me.length===0)return v.jsx("p",{style:{color:"#666",fontStyle:"italic"},children:"Add vehicles first to configure coverage selections."},N);const se=A.driver_vehicle_assignments??{},_e=$e.length>1,be=Ue=>Object.entries(Ue).map(([ze,tt])=>({value:ze,label:tt})),Ce=$d(A.state??A.State),xe=(Ue,ze)=>Object.fromEntries(Ue.filter(tt=>tt in ze).map(tt=>[tt,ze[tt]])),re=be(xe(Ce?JF:XF,h0)),oe=Ce?xe(eI,y0):y0,De=be(oe),Te=be(xe(Ce?tI:nI,_5)),Re=(Ue,ze,tt)=>{const rt=tr(A,["vehicles__items",Ue,ze],tt);n&&i?i(rt):w(rt),F(rt)},ke=(Ue,ze,tt)=>{const rt={...se},Tt=`v${Ue}`;rt[Tt]={...rt[Tt]??{}},rt[Tt][`d${ze}`]=tt;const Ye=tr(A,["driver_vehicle_assignments"],rt);n&&i?i(Ye):w(Ye),F(Ye)},qe=Ue=>{if(!_e)return null;const ze=se[`v${Ue}`];if(!ze)return null;const tt=$e.map((Ye,Hn)=>ze[`d${Hn}`]??0),rt=tt.filter(Ye=>Ye>0);if(rt.length>=2&&rt.every(Ye=>Ye===rt[0])&&rt[0]===50)return`Assignments for Vehicle ${Ue+1} cannot be 50 percent for both Drivers.`;const Tt=tt.reduce((Ye,Hn)=>Ye+Hn,0);return Tt>0&&Tt!==100?`Driver percentages for this vehicle must add up to 100% (currently ${Tt}%).`:null};return v.jsx("div",{children:me.map((Ue,ze)=>{const tt=[Ue.year,Ue.make,Ue.model].filter(Boolean).join(" ")||`Vehicle ${ze+1}`,rt=qe(ze),Tt=Ye=>typeof Ue[Ye]=="string"?Ue[Ye]:"";return v.jsxs("fieldset",{style:{border:`1px solid ${rt?"#dc3545":"#ddd"}`,borderRadius:"8px",padding:"16px",marginBottom:"16px"},children:[v.jsx("legend",{style:{fontWeight:600,padding:"0 8px"},children:tt}),v.jsxs("div",{style:{display:"grid",gridTemplateColumns:"repeat(auto-fit, minmax(200px, 1fr))",gap:"12px"},children:[v.jsx(ds,{id:`veh-${ze}-comp`,label:"Comprehensive deductible",required:!0,placeholder:"Select...",options:re,value:Tt("vehicle_comp_deductible"),onChange:Ye=>Re(ze,"vehicle_comp_deductible",Ye.currentTarget.value)}),v.jsx(ds,{id:`veh-${ze}-coll`,label:"Collision deductible",required:!0,placeholder:"Select...",options:re,value:Tt("vehicle_coll_deductible"),onChange:Ye=>Re(ze,"vehicle_coll_deductible",Ye.currentTarget.value)}),v.jsx(ds,{id:`veh-${ze}-tow`,label:"Towing and Labor",required:!0,placeholder:"Select...",options:De,value:Tt("vehicle_towing_and_labor"),onChange:Ye=>Re(ze,"vehicle_towing_and_labor",Ye.currentTarget.value)}),v.jsx(ds,{id:`veh-${ze}-trans`,label:"Transportation expense",required:!0,placeholder:"Select...",options:Te,value:Tt("vehicle_transportation_expense"),onChange:Ye=>Re(ze,"vehicle_transportation_expense",Ye.currentTarget.value)})]}),_e&&v.jsxs("div",{style:{marginTop:"16px"},children:[v.jsx("p",{style:{fontWeight:600,margin:"0 0 8px"},children:"Drivers usage (%)"}),v.jsx("div",{style:{display:"flex",flexWrap:"wrap",gap:"12px"},children:$e.map((Ye,Hn)=>{const ml=[Ye.first_name,Ye.last_name].filter(Boolean).join(" ")||`Driver ${Hn+1}`,Nn=se[`v${ze}`]?.[`d${Hn}`];return v.jsx("div",{style:{flex:"0 0 140px"},children:v.jsx(Np,{id:`assignment-v${ze}-d${Hn}`,label:`${ml} %`,value:Nn??"",min:0,max:100,step:1,inputMode:"numeric",onChange:gr=>{const Mn=gr.currentTarget.value.replace(/\D+/g,"");ke(ze,Hn,Mn===""?0:Math.min(100,parseInt(Mn,10)))}})},`${ze}-${Hn}`)})}),rt&&v.jsx("p",{style:{color:"#dc3545",fontSize:"0.85rem",marginTop:"8px",marginBottom:0},children:rt})]})]},ze)})},N)}if(N==="driver_vehicle_assignments"){const me=A.vehicles__items??[],$e=A.drivers__items??[];if(S&&$e.length<=1)return null;if(me.length===0||$e.length===0)return v.jsx("p",{style:{color:"#666",fontStyle:"italic"},children:"Add vehicles and drivers first to configure driver usage percentages."},N);const se=A.driver_vehicle_assignments??{},_e=(Ce,xe,Ne)=>{const re={...se},oe=`v${Ce}`;re[oe]={...re[oe]??{}},re[oe][`d${xe}`]=Ne,Fe(re)},be=Ce=>{if($e.length<2)return null;const xe=se[`v${Ce}`];if(!xe)return null;const Ne=$e.map((De,Ee)=>xe[`d${Ee}`]??0),re=Ne.filter(De=>De>0);if(re.length>=2&&re.every(De=>De===re[0])&&re[0]===50)return`Assignments for Vehicle ${Ce+1} cannot be 50 percent for both Drivers.`;const oe=Ne.reduce((De,Ee)=>De+Ee,0);return oe>0&&oe!==100?`Driver percentages for this vehicle must add up to 100% (currently ${oe}%).`:null};return v.jsxs("div",{children:[v.jsx("h4",{style:{marginBottom:"12px"},children:ie}),me.map((Ce,xe)=>{const Ne=[Ce.year,Ce.make,Ce.model].filter(Boolean).join(" ")||`Vehicle ${xe+1}`,re=be(xe);return v.jsxs("fieldset",{style:{border:`1px solid ${re?"#dc3545":"#ddd"}`,borderRadius:"8px",padding:"16px",marginBottom:"16px"},children:[v.jsx("legend",{style:{fontWeight:600,padding:"0 8px"},children:Ne}),v.jsx("div",{style:{display:"flex",flexWrap:"wrap",gap:"12px"},children:$e.map((oe,De)=>{const Ee=[oe.first_name,oe.last_name].filter(Boolean).join(" ")||`Driver ${De+1}`,Te=se[`v${xe}`]?.[`d${De}`];return v.jsx("div",{style:{flex:"0 0 140px"},children:v.jsx(Np,{id:`assignment-v${xe}-d${De}`,label:`${Ee} %`,value:Te??"",min:0,max:100,step:1,inputMode:"numeric",onChange:Re=>{const ke=Re.currentTarget.value.replace(/\D+/g,"");_e(xe,De,ke===""?0:Math.min(100,parseInt(ke,10)))}})},`${xe}-${De}`)})}),re&&v.jsx("p",{style:{color:"#dc3545",fontSize:"0.85rem",marginTop:"8px",marginBottom:0},children:re})]},xe)})]},N)}switch(z.inputType){case"text":{if(N==="vin"&&s){const me=T?T.join("-"):"_root",$e=ye[me]??!1,se=j[me]??null,_e=[ge?`${N}-hint`:null,we?`${N}-error`:null,se?`${N}-vin-error`:null].filter(Boolean).join(" ");return v.jsxs("div",{children:[v.jsx(Un,{id:N,label:ie,hint:ge,error:we,required:he,children:v.jsxs("div",{className:"flex items-end gap-2",children:[v.jsx("div",{className:"flex-1 min-w-0",children:v.jsx("input",{id:N,className:`form-input ${we?"input-error":""}`,"aria-invalid":!!we,"aria-describedby":_e||void 0,"aria-required":he||void 0,required:he,value:$n(Se),maxLength:17,onChange:be=>Fe(be.currentTarget.value),onBlur:()=>C(N,"text",T),autoComplete:Fc[N],type:"text"})}),v.jsx("button",{type:"button",disabled:$e||!l3($n(Se)),className:"btn btn-outline shrink-0 self-end !w-auto min-w-[8.5rem] px-4 whitespace-nowrap disabled:opacity-50",onClick:()=>O(T,$n(Se)),children:$e?"Looking up...":"Verify VIN"})]})}),se&&v.jsx("p",{id:`${N}-vin-error`,className:"text-sm text-red-600 mt-1",children:se})]},N)}if(N==="sms_code"){const me=$n(Se);return v.jsx(Uc,{id:N,label:ie,hint:ge,value:me,inputMode:"numeric",pattern:"[0-9]*",maxLength:6,onChange:$e=>{const se=$e.currentTarget.value.replace(/\D+/g,"").slice(0,6);Fe(se)},onBlur:()=>C(N,"text",T),"aria-required":he||void 0,error:we,autoComplete:Fc[N]},N)}if(N==="license_number")return v.jsx(Uc,{id:N,label:ie,hint:ge,value:$n(Se),onChange:me=>Fe(me.currentTarget.value.replace(/[^A-Z0-9]/gi,"").slice(0,20)),onBlur:()=>C(N,"text",T),"aria-required":he||void 0,error:we,autoComplete:"off",maxLength:20},N);if(N==="social_security_number"){const me=rn(A,T,"ssn_display"),$e=typeof me=="string"?me:"",se=$e?`${$e}. Re-enter to update.${ge?` ${ge}`:""}`:ge;return v.jsx(Q7,{id:N,label:ie,hint:se,value:$n(Se),onChange:_e=>Fe(_e.currentTarget.value),onBlur:()=>C(N,"text",T),"aria-required":he||void 0,error:we},N)}return v.jsx(Uc,{id:N,label:ie,hint:ge,value:$n(Se),onChange:me=>Fe(me.currentTarget.value),onBlur:()=>C(N,"text",T),"aria-required":he||void 0,error:we,autoComplete:Fc[N],maxLength:_j[N]},N)}case"email":return v.jsx(J7,{id:N,label:ie,value:$n(Se),onChange:me=>Fe(me.currentTarget.value),onBlur:()=>C(N,"email",T),"aria-required":he||void 0,error:we},N);case"password":return v.jsx(eN,{id:N,label:ie,value:$n(Se),onChange:me=>Fe(me.currentTarget.value),onBlur:()=>C(N,"password",T),"aria-required":he||void 0,error:we},N);case"tel":return v.jsxs(v.Fragment,{children:[v.jsx(HE,{id:N,label:ie,value:$n(Se),onChange:me=>Fe(me.currentTarget.value),onBlur:()=>C(N,"tel",T),"aria-required":he||void 0,error:we},N),N==="phone"&&v.jsxs("div",{className:"mt-3 text-xs text-slate-600 space-y-1",children:[v.jsx("p",{children:"Enter your mobile number to continue to your quotes. If you choose to pursue a quote, you'll verify this number with a 6-digit text — we won't text you now."}),v.jsx("p",{children:"Message & data rates may apply. One message per request."}),v.jsxs("p",{children:["See our"," ",v.jsx("a",{href:"https://getcredify.com/privacy-policy",target:"_blank",rel:"noopener noreferrer",className:"credify-link-underline",children:"Privacy Policy"})," ","and"," ",v.jsx("a",{href:"https://getcredify.com/terms-of-service",target:"_blank",rel:"noopener noreferrer",className:"credify-link-underline",children:"Terms of Service"}),"."]})]})]});case"url":return v.jsx(X7,{id:N,label:ie,value:$n(Se),onChange:me=>Fe(me.currentTarget.value),onBlur:()=>C(N,"url",T),"aria-required":he||void 0,error:we},N);case"number":{const me=bj[N];return T3.has(N)||vj.has(N)?v.jsx(W7,{id:N,label:ie,hint:ge,value:k3(Se),isCurrency:T3.has(N),maxDigits:me,onChange:$e=>Fe(w3($e.currentTarget.value)),onBlur:()=>C(N,"number",T),required:he,"aria-required":he||void 0,error:we},N):v.jsx(Np,{id:N,label:ie,hint:ge,value:k3(Se),inputMode:"numeric",pattern:"[0-9]*",onKeyDown:$e=>{if(gj($e.key)){$e.preventDefault();return}me!==void 0&&/^\d$/.test($e.key)&&String($e.currentTarget.value).replace(/\D/g,"").length>=me&&$e.preventDefault()},onChange:$e=>{let se=$e.currentTarget.value;me!==void 0&&(se=se.slice(0,me)),Fe(w3(se))},onBlur:()=>C(N,"number",T),required:he,"aria-required":he||void 0,error:we},N)}case"textarea":return v.jsx(tN,{id:N,label:ie,value:$n(Se),onChange:me=>Fe(me.currentTarget.value),onBlur:()=>C(N,"textarea",T),"aria-required":he||void 0,error:we,rows:4},N);case"date":{const{min:me,max:$e}=Ej(N);return v.jsx(PO,{id:N,label:ie,hint:ge,value:$n(Se),min:me,max:$e,onChange:se=>{const _e=se.currentTarget.value;Fe(_e),!Cr(_e,"date")&&!p0(N,_e)&&G(N,I(T,N,_e))},onBlur:()=>C(N,"date",T),"aria-required":he||void 0,error:we,autoComplete:Fc[N]},N)}case"checkbox":{if(z.options){const me=Array.isArray(Se)?Se:[],$e=`${N}-error`;return v.jsxs("fieldset",{className:"space-y-2","aria-describedby":we?$e:void 0,children:[v.jsxs("legend",{className:"form-label",children:[ie,he&&v.jsxs(v.Fragment,{children:[v.jsx("span",{className:"text-red-600 ml-1","aria-hidden":"true",children:"*"}),v.jsx("span",{className:"sr-only",children:" required"})]})]}),v.jsx("div",{className:"grid grid-cols-1 gap-3 sm:grid-cols-2",children:z.options.map(se=>{const _e=`${N}-${Dd(se)}`,be=me.includes(se);return v.jsx(ji,{id:_e,label:se,checked:be,onChange:Ce=>{const xe=new Set(me);Ce.currentTarget.checked?xe.add(se):xe.delete(se),Fe(Array.from(xe))},"aria-required":he||void 0,"aria-describedby":we?$e:void 0},_e)})}),we&&v.jsx("p",{id:$e,className:"mt-1 text-sm text-red-600",children:we})]},N)}return v.jsx(ji,{id:N,label:he?`${ie} *`:ie,checked:!!Se,onChange:me=>Fe(me.currentTarget.checked),"aria-required":he||void 0},N)}case"radio":{if(ed(z))return null;const me=z.options??[],$e=T&&T.length>0?`${N}__${T.join("__")}`:N;return v.jsx(jO,{legend:ie,required:he,children:me.map(se=>v.jsx(IO,{name:$e,value:se,checked:Se===se,onChange:()=>{Fe(se),G(N,I(T,N,se))},children:x3[N]?.[se]??se},`${N}-${Dd(se)}`))},N)}case"select":{let me=z.options??[];N==="quote_vehicle_id"&&(me=n?.vehicles__items?.map(Ne=>Ne.vin)??[]);let $e=!1,se,_e,be;if(N==="year"||N==="make"||N==="model"||N==="body_style"){const Ne=T?T.join("-"):"_root";ye[Ne]&&($e=!0,se="Looking up VIN...")}if(!$e&&(N==="make"||N==="model"||N==="body_style")){const Ne=T?T.join("-"):"_root";be=Ne;const re=rn(A,T,"year"),oe=typeof re=="number"?re:Number(re);if(N==="make"){const De=`${Ne}:makes`;if(!oe||!Number.isFinite(oe))$e=!0,se="Select a year first";else{_e={year:oe};const Ee=B(_e);Ee&&Ee.length>0?me=Ee:ne[De]?(se="Loading makes...",me=[...m3]):me=[...m3]}typeof Se=="string"&&Se&&!me.includes(Se)&&(me=[Se,...me])}else if(N==="model"){const De=`${Ne}:models`,Ee=String(rn(A,T,"make")??"");if(!Ee)$e=!0,se="Select a make first";else if(oe&&Number.isFinite(oe)){_e={year:oe,make:Ee};const Te=B(_e);Te&&Te.length>0?me=Te:ne[De]?(se="Loading models...",me=[...C3]):me=[...C3]}typeof Se=="string"&&Se&&!me.includes(Se)&&(me=[Se,...me])}else{const De=`${Ne}:bodyStyles`,Ee=String(rn(A,T,"make")??""),Te=String(rn(A,T,"model")??"");if(!Te)$e=!0,se="Select a model first";else if(oe&&Number.isFinite(oe)&&Ee){_e={year:oe,make:Ee,model:Te};const Re=B(_e);Re&&Re.length>0?me=Re:ne[De]?(se="Loading body styles...",me=[...A3]):me=[...A3]}typeof Se=="string"&&Se&&!me.includes(Se)&&(me=[Se,...me])}}if(N==="occupation"||N==="co_applicant_occupation"){const Ne=N==="co_applicant_occupation"?"co_applicant_employment_industry":void 0,re=Ne?void 0:rn(A,T,"industry"),oe=rn(A,T,Ne??"employment_industry"),Ee=String(xd(re??oe)??"").trim();me=[...d3[Ee]??yj],typeof Se=="string"&&Se&&!me.includes(Se)&&(me=[Se,...me])}const Ce=Dj(T,N),xe=m?.has([...T??[],N].join("."))??!1;return v.jsx(ds,{id:Ce,label:se?`${ie} — ${se}`:ie,required:he,"aria-required":he||void 0,error:we,disabled:$e,value:xe?"":Cj(Se),onChange:Ne=>{const re=Ne.currentTarget.value;if(N!=="year"&&N!=="make"&&N!=="model"&&N!=="industry"&&N!=="employment_industry"&&N!=="co_applicant_employment_industry"){Fe(re),G(N,I(T,N,re));return}let oe=ln(A,T,N,re);if(N==="year")oe=ln(oe,T,"make",""),oe=ln(oe,T,"model",""),oe=ln(oe,T,"body_style","");else if(N==="make")oe=ln(oe,T,"model",""),oe=ln(oe,T,"body_style","");else if(N==="model")oe=ln(oe,T,"body_style","");else if(N==="industry"||N==="employment_industry")oe=ln(oe,T,"occupation","");else if(N==="co_applicant_employment_industry"){const Ee=String(xd(re)??"").trim(),Te=d3[Ee]??[],Re=Te.find(ke=>ke===Ee)??Te[0]??"";oe=ln(oe,T,"co_applicant_occupation",Re??"")}n&&i?i(oe):w(oe),F(oe);const De=T?Es(oe,T)??{}:oe;G(N,{...De,[N]:re})},placeholder:se??"Select an option",onFocus:_e&&be?()=>X(be,_e):void 0,options:me.map(Ne=>({value:Ne,label:x3[N]?.[Ne]??hj[Ne]??Ne}))},Ce)}case"address":return v.jsx(GO,{id:N,label:ie,value:$n(Se),onChange:(me,$e)=>{let se=ln(A,T,N,me);const _e=$e?.state??(typeof me=="string"?me.match(/,\s*([A-Z]{2})\s+\d{5}\b/)?.[1]:void 0);if(_e){const be=T?[...T,"state"]:["state"];se=tr(se,be,_e)}if(!T){const be=$e?.zipCode??(typeof me=="string"?me.match(/,\s*[A-Z]{2}\s+(\d{5})(?:-\d{4})?\b/)?.[1]:void 0);be&&(se=tr(se,["postal_code"],be))}n&&i?i(se):w(se),F(se)},onBlur:()=>C(N,"address",T),required:he,"aria-required":he||void 0,error:we},N);default:return null}}function W(z,T){const N=z.some(ge=>String(ge.key)==="years_at_address"),ie=z.find(ge=>String(ge.key)==="months_at_address");return z.map((ge,Se)=>{const he=String(ge.key);if(he==="months_at_address"&&N||!Wc(ge,A,E)||!dh(ge,A,T)||!Kc(ge,A,c))return null;if(fh(he,ge,A,c)){const be=E.currentCarrierKey?A[E.currentCarrierKey]:void 0;if(!(be&&be!=="NoPriorInsurance"&&xs(A,E)&&uh.has(he)))return null}const we=U(ge,T),Fe=he==="years_at_address"&&ie?U(ie,T):null,me=ge.conditionals??[];if(!me.length)return c==="BundlePolicy"&&he==="policy_bi"?v.jsxs("div",{className:ch(he,c,T),"data-question-key":he,children:[v.jsx("h3",{className:"text-lg font-semibold mt-6 mb-3",children:"Vehicle Coverage Information"}),we]},`wrap-${he}-${Se}`):v.jsxs("div",{className:ch(he,c,T),"data-question-key":he,children:[we,Fe]},`wrap-${he}-${Se}`);const $e=N3(ge,rn(A,T,he)),se=me.filter(be=>ms($e,be.conditionalType,be.conditionalValue)),_e=se.length>1&&!se.some(be=>be.conditionalQuestionsAllowMultiple)?se.slice(0,1):se;return v.jsxs("div",{className:ch(he,c,T),"data-question-key":he,children:[we,Fe,_e.map((be,Ce)=>{const xe=be.conditionalQuestions??[];if(!xe.length)return null;if(!be.conditionalQuestionsAllowMultiple)return v.jsx("div",{className:"mt-3",children:W(xe,T)},`branch-${he}-${Ce}`);const Ne=Ic(he),re=Es(A,[...T??[],Ne])??[],oe=Math.max(1,re.length||1),De=()=>{const Re=tr(A,[...T??[],Ne,re.length],{});n&&i?i(Re):w(Re),F(Re)},Ee=()=>{const Re=re.slice(0,Math.max(0,re.length-1)),ke=tr(A,[...T??[],Ne],Re);n&&i?i(ke):w(ke),F(ke)},Te=`${he}__c${Ce}`;return v.jsxs("div",{className:"mt-3",children:[v.jsxs("div",{className:"repeatable-controls flex items-center justify-between mb-2 gap-2",children:[v.jsx("div",{className:"text-sm font-medium opacity-75",children:"Add one or more entries"}),v.jsxs("div",{className:"repeatable-actions space-x-2",children:[v.jsx("button",{type:"button",className:"btn-outline px-3 py-1",onClick:De,children:"Add another"}),oe>1&&v.jsx("button",{type:"button",className:"btn-outline px-3 py-1",onClick:Ee,children:"Remove last"})]})]}),Array.from({length:oe}).map((Re,ke)=>{const qe=[...T??[],Ne,ke],Ue=`${Te}__i${ke}`,ze=re[ke]??{},tt=he==="drivers",Ye=tt?`Driver #${ke+1}`:he==="vehicles"?`Vehicle #${ke+1}`:he==="home_losses"||he==="losses"?`Loss #${ke+1}`:`Entry #${ke+1}`,ml=tt&&typeof ze.ssn_display=="string"&&ze.ssn_display?` — ${ze.ssn_display}`:"";return v.jsxs("div",{className:"rounded-lg border p-3 mb-3",children:[v.jsxs("div",{className:"text-sm font-semibold mb-2",children:[Ye,ml]}),xe.map(Nn=>{const gr=String(Nn.key);if(!Wc(Nn,A,E)||!dh(Nn,A,qe)||!Kc(Nn,A,c))return null;if(fh(gr,Nn,A,c)){const Mn=E.currentCarrierKey?A[E.currentCarrierKey]:void 0;if(!(Mn&&Mn!=="NoPriorInsurance"&&xs(A,E)&&uh.has(gr)))return null}return v.jsxs("div",{className:"mt-3",children:[U(Nn,qe),(()=>{const Mn=Nn.conditionals??[];if(!Mn.length)return null;const ri=rn(A,qe,Nn.key),Vn=Mn.filter(Rn=>ms(ri,Rn.conditionalType,Rn.conditionalValue));return(Vn.length>1&&!Vn.some(Rn=>Rn.conditionalQuestionsAllowMultiple)?Vn.slice(0,1):Vn).map((Rn,hl)=>{const Qi=Rn.conditionalQuestions??[];if(!Qi.length)return null;if(!Rn.conditionalQuestionsAllowMultiple)return v.jsx("div",{className:"mt-3",children:W(Qi,qe)},`nested-${Ue}-${hl}`);const ua=Ic(Nn.key),br=Es(A,[...qe,ua])??[],eu=Math.max(1,br.length||1),tu=()=>{const Tr=tr(A,[...qe,ua,br.length],{});n&&i?i(Tr):w(Tr),F(Tr)},nu=()=>{const Tr=br.slice(0,Math.max(0,br.length-1)),dr=tr(A,[...qe,ua],Tr);n&&i?i(dr):w(dr),F(dr)};return v.jsxs("div",{className:"mt-3",children:[v.jsxs("div",{className:"repeatable-controls flex items-center justify-between mb-2 gap-2",children:[v.jsx("div",{className:"text-sm font-medium opacity-75",children:"Add one or more entries"}),v.jsxs("div",{className:"repeatable-actions space-x-2",children:[v.jsx("button",{type:"button",className:"btn-outline px-3 py-1",onClick:tu,children:"Add another"}),eu>1&&v.jsx("button",{type:"button",className:"btn-outline px-3 py-1",onClick:nu,children:"Remove last"})]})]}),Array.from({length:eu}).map((Tr,dr)=>{const yl=[...qe,ua,dr];return v.jsxs("div",{className:"rounded-lg border p-3 mb-3",children:[v.jsxs("div",{className:"text-sm font-semibold mb-2",children:["Entry #",dr+1]}),W(Qi,yl)]},`nested-item-${Ue}-${hl}-${dr}`)})]},`nested-repeat-${Ue}-${hl}`)})})()]},`${Ue}-${gr}`)})]},`group-${Ue}`)})]},`branch-${he}-${Ce}`)})]},`wrap-${he}-${Se}`)})}const Y=b.useMemo(()=>{const z=[],T=(N,ie)=>{N.forEach(ge=>{if(!Wc(ge,A,E)||!dh(ge,A,ie)||!Kc(ge,A,c))return;const Se=String(ge.key);if(fh(Se,ge,A,c)){const $e=E.currentCarrierKey?A[E.currentCarrierKey]:void 0;if(!($e&&$e!=="NoPriorInsurance"&&xs(A,E)&&uh.has(Se)))return}ed(ge)||z.push(ge);const he=ge.conditionals??[];if(!he.length)return;const we=N3(ge,rn(A,ie,Se)),Fe=he.filter($e=>ms(we,$e.conditionalType,$e.conditionalValue));(Fe.length>1&&!Fe.some($e=>$e.conditionalQuestionsAllowMultiple)?Fe.slice(0,1):Fe).forEach($e=>{const se=$e.conditionalQuestions??[];se.length&&($e.conditionalQuestionsAllowMultiple||T(se,ie))})})};return T(g),z},[g,A,E,c]);b.useEffect(()=>{if(d<=0)return;const z=Cs(A,E),T=Y.map(N=>Qc(N,E)?{...N,required:z}:N);M(js(T,A))},[d,Y,A,E]);function te(z){z.preventDefault();const T=Cs(A,E),N=Y.map(ge=>Qc(ge,E)?{...ge,required:T}:ge),ie=js(N,A);if(M(ie),Object.keys(ie).length>0){const ge=Y.findIndex(Se=>ie[Se.key]);ge>=0&&document.getElementById(Y[ge].key)?.focus();return}o(A)}return v.jsx("form",{className:pj(c),"data-form-area":c??"unknown-stage",onSubmit:te,noValidate:!0,children:W(g)})}function B3({title:e,description:t,applyLabel:n,dismissLabel:i,alreadyOnApplicationNote:o,suggestions:s,isApplying:c,onApply:d,onDismiss:m}){const[h,y]=b.useState(new Set),g=s.length>0&&s.every(x=>h.has(x.id)),E=b.useMemo(()=>s.some(x=>x.alreadyOnApplication),[s]),S=x=>{y(w=>{const R=new Set(w);return R.has(x)?R.delete(x):R.add(x),R})},$=()=>{y(g?new Set:new Set(s.map(x=>x.id)))};return v.jsxs("div",{className:"prefill-suggestions-modal fixed inset-0 z-[10000] flex items-center justify-center p-4",role:"dialog","aria-modal":"true","aria-labelledby":"prefill-suggestions-title",children:[v.jsx("div",{className:"backdrop","aria-hidden":"true"}),v.jsxs("div",{className:"modal-panel bg-white relative w-full max-w-lg max-h-[85vh] overflow-y-auto",role:"document",children:[v.jsxs("div",{className:"text-center mb-6",children:[v.jsx("h2",{id:"prefill-suggestions-title",className:"h1-title",children:e}),v.jsx("p",{className:"text-sm text-slate-600 mt-3",children:t})]}),v.jsxs("div",{className:"grid grid-cols-1 sm:grid-cols-2 gap-3 text-left mb-4",children:[s.map(x=>v.jsx(ji,{id:`prefill-suggestion-${x.id}`,label:v.jsx("span",{"data-credify-redact":!0,children:x.alreadyOnApplication?`${x.label} *`:x.label}),checked:h.has(x.id),disabled:c,onChange:()=>S(x.id)},x.id)),s.length>1&&v.jsx(ji,{id:"prefill-suggestion-select-all",label:"Select All",checked:g,disabled:c,onChange:$})]}),E&&v.jsx("p",{className:"text-xs text-slate-500 mb-4 text-left",children:o??"* This entry is already on the application; selecting it will fill in available data that does not exist on the application."}),v.jsxs("div",{className:"grid grid-cols-1 sm:grid-cols-2 gap-3 mt-6",children:[v.jsx("button",{type:"button","data-widget-ctrl":"prefill-dismiss",onClick:m,disabled:c,className:"credify-btn-back h-12 rounded-full border border-gray-300 text-text-primary hover:bg-gray-50 transition disabled:opacity-50 disabled:cursor-not-allowed",children:i}),v.jsxs("button",{type:"button","data-widget-ctrl":"prefill-apply",onClick:()=>d(Array.from(h)),disabled:h.size===0||c,className:["form-wizard-next-btn","h-12 rounded-full text-white transition","disabled:opacity-50 disabled:cursor-not-allowed","flex items-center justify-center gap-2",h.size===0||c?"bg-gray-300":"bg-blue-600 hover:bg-blue-600/90 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-blue-600/40 bg-primary hover:bg-primary/90 focus-visible:ring-primary/40"].join(" "),children:[c&&v.jsxs("svg",{className:"animate-spin h-5 w-5 text-white",xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","aria-hidden":"true",children:[v.jsx("circle",{className:"opacity-25",cx:"12",cy:"12",r:"10",stroke:"currentColor",strokeWidth:"4"}),v.jsx("path",{className:"opacity-75",fill:"currentColor",d:"M4 12a8 8 0 018-8V0C5.373 0 0 5.373 0 12h4zm2 5.291A7.962 7.962 0 014 12H0c0 3.042 1.135 5.824 3 7.938l3-2.647z"})]}),n]})]})]})]})}const Aj="https://getcredify.com/privacy-policy";function wj(){return v.jsx("a",{href:Aj,target:"_blank",rel:"noopener noreferrer",className:"credify-link-underline",children:"Privacy Policy"})}function L3(){return v.jsxs(v.Fragment,{children:["See our ",v.jsx(wj,{})," for how we use your information."]})}const Tj=new Set(["Product","Name","Home","HomeConstruction","HomeFeatures","Vehicle","Driver","Demographics","Customer","HomeCustomer","BundleCustomer"]),Nj=new Set(["AutoCurrentCarrier","HomeCurrentCarrier","HomePolicy","BundlePolicy","AutoPolicy"]);function Mj(e){return e.trim().replace(/([a-z0-9])([A-Z])/g,"$1-$2").replace(/[^a-zA-Z0-9_-]+/g,"-").replace(/^-+|-+$/g,"").toLowerCase()}function jo(e){return`stage-footer-hint stage-footer-hint--${Mj(e)}`}function P5({stageKey:e}){return e?e==="Zip"?v.jsx("p",{className:jo(e),"data-stage-key":e,children:"No credit card required."}):e==="Email"?v.jsxs("div",{className:jo(e),"data-stage-key":e,children:[v.jsx("p",{children:"We'll send your quotes and updates here, and save your progress so you can return anytime."}),v.jsx("p",{children:v.jsx(L3,{})})]}):Nj.has(e)?v.jsx("p",{className:jo(e),"data-stage-key":e,children:"Tell us about your current coverage. Carriers ask about your coverage history to put together accurate quotes — it's a standard step on any application. Coverage gaps are common, so just enter things as they are. You're almost there: your quotes are almost ready."}):e==="Ssn"?v.jsx("p",{className:jo(e),"data-stage-key":e,children:"Your SSN is required by some carriers for fraud prevention, underwriting and to generate a quote. It's entered directly into our secure, encrypted form."}):e==="SMSVerification"?v.jsx("p",{className:jo(e),"data-stage-key":e,children:"You'll receive a text from Credify shortly."}):Tj.has(e)?v.jsx("p",{className:jo(e),"data-stage-key":e,children:v.jsx(L3,{})}):null:null}function F5(e){const t=new Map,n=new Map,i=o=>{let s=t.get(o);return s||(s=e(o).then(c=>(n.set(o,c.suggestions),c.suggestions)).catch(c=>{throw t.delete(o),c}),t.set(o,s)),s};return{fetch:i,peek:o=>n.get(o),prefetch:o=>{i(o).catch(()=>{})},reset:()=>{t.clear(),n.clear()}}}const Cy=F5(lj),Ay=F5(cj),Rj=Cy.fetch,Oj=Cy.peek,kj=Cy.prefetch,Bj=Ay.fetch,Lj=Ay.peek,Pj=Ay.prefetch,Fj=["vin","year","make","model"];function Ij(e){if(!e||typeof e!="object")return!0;const t=e;return Fj.every(n=>{const i=t[n];return i==null||String(i).trim()===""})}function jj(e,t){if(t.length===0)return e;const n=e.vehicles__items??[],i=n.filter(c=>!Ij(c)),o=new Set(i.map(c=>String(c.vin??"").trim().toUpperCase()).filter(c=>c!=="")),s=t.filter(c=>{const d=String(c.vin??"").trim().toUpperCase();return d===""||!o.has(d)});return s.length===0&&i.length===n.length?e:{...e,vehicles:"Yes",vehicles__items:[...i,...s]}}const zj=["first_name","last_name","date_of_birth"];function I5(e){if(!e||typeof e!="object")return!0;const t=e;return zj.every(n=>{const i=t[n];return i==null||String(i).trim()===""})}function P3(e){return`${String(e.first_name??"").trim()} ${String(e.last_name??"").trim()}`.trim().toUpperCase()}function Uj(e,t){if(t.length===0)return e;const n=e.drivers__items??[],i=n.filter(c=>!I5(c)),o=new Set(i.map(P3).filter(c=>c!=="")),s=t.filter(c=>{const d=P3(c);return d===""||!o.has(d)});return s.length===0&&i.length===n.length?e:{...e,drivers:"Yes",drivers__items:[...i,...s]}}function Hj(e){return(e.drivers__items??[]).some(n=>!I5(n))}const Vj=["widgetOpened","widgetClosed","stageViewed","stageCompleted","flowCompleted","ratesViewed","ratesBack","submissionFailed"],Cd={};function Gj(e){let t=Cd[e];return t||(t=new Set,Cd[e]=t),t}function j5(e,t){Gj(e).add(t)}function z5(e,t){Cd[e]?.delete(t)}function ni(e,...t){const n=Cd[e];if(!n||n.size===0)return;const i=t[0],o={quoteId:af(),timestamp:Date.now()};for(const s of[...n])try{s(i,o)}catch(c){ul(c,{tags:{source:"widget-event-listener",event:e}})}}function Zj(){ni("widgetOpened")}function Yj(){ni("widgetClosed")}function qj(e){ni("stageViewed",e)}function F3(e){ni("stageCompleted",e)}function Kj(){ni("flowCompleted")}function Wj(e){ni("ratesViewed",e)}function Qj(){ni("ratesBack")}function ps(e){ni("submissionFailed",e)}const U5=new Set(["Disabled","Retired","Unemployed","Other"]);function Jj(e,t){const n=String(e.key??"");if(n==="co_applicant_occupation"||n!=="occupation")return!0;const i=t.industry,o=t.employment_industry,s=String(i??o??"").trim();return!U5.has(s)}function Xj(e,t){const n=String(e.key??"");if(n==="co_applicant_occupation"||n!=="occupation")return!0;const i=t.industry,o=t.employment_industry,s=String(i??o??"").trim();return!U5.has(s)}function H5(e){return e.inputType!=="radio"||!e.options||e.options.length!==1||e.options[0]!=="Yes"?!1:(e.conditionals??[]).some(n=>n.conditionalQuestionsAllowMultiple&&n.conditionalType==="equals"&&n.conditionalValue==="Yes")}function wy(e,t){return H5(e)?"Yes":t}function I3(e){return typeof e=="number"&&Number.isFinite(e)?e:typeof e=="string"&&e.trim()!==""&&!Number.isNaN(Number(e))?Number(e):null}function j3(e){if(e instanceof Date&&!Number.isNaN(e.getTime()))return e.getTime();if(typeof e=="string"){const t=Date.parse(e);return Number.isNaN(t)?null:t}return null}function z3(e,t){const n=I3(e),i=I3(t);if(n!=null&&i!=null)return n-i;const o=j3(e),s=j3(t);return o!=null&&s!=null?o-s:e==null||t==null?null:String(e).localeCompare(String(t))}function ez(e,t){return Array.isArray(e)?e.some(n=>n===t):typeof e=="string"?t!=null&&e.includes(String(t)):!1}function Ty(e,t,n){switch(t){case"equals":return e===n;case"notEquals":return e!==n&&e!==""&&e!=null;case"lessThan":{const i=z3(e,n);return i!=null&&i<0}case"greaterThan":{const i=z3(e,n);return i!=null&&i>0}case"contains":return ez(e,n);case"startsWith":return e!=null&&n!=null&&String(e).startsWith(String(n));case"endsWith":return e!=null&&n!=null&&String(e).endsWith(String(n));default:return!1}}const tz=new Set(["auto_prior_years","auto_prior_months","auto_continuous_coverage_years"]);function nz(e){return String(e??"").trim().replace(/([a-z0-9])([A-Z])/g,"$1-$2").replace(/[^a-zA-Z0-9_-]+/g,"-").replace(/^-+|-+$/g,"").toLowerCase()}function lf(e,t,n){const i=py([...e]),o=$y(i),s=[],c=d=>{d.forEach(m=>{if(!Wc(m,t,o)||!Jj(m,t)||!Kc(m,t,n))return;const h=String(m.key);if(rf(h,n,t)){const $=o.currentCarrierKey?t[o.currentCarrierKey]:void 0;if(!($&&$!=="NoPriorInsurance"&&xs(t,o)&&tz.has(h)))return}H5(m)||s.push(m);const y=wy(m,t[h]),g=m.conditionals??[];if(!g.length)return;const E=g.filter($=>Ty(y,$.conditionalType,$.conditionalValue));(E.length>1&&!E.some($=>$.conditionalQuestionsAllowMultiple)?E.slice(0,1):E).forEach($=>{const x=$.conditionalQuestions??[];x.length&&($.conditionalQuestionsAllowMultiple||c(x))})})};return c(i),s}const V5="__items",Ad=e=>`${e}${V5}`;function rz(e,t){if(e.key==="relationship_to_insured"||e.key==="is_registered_owner"){const n=t[t.length-1];return typeof n=="number"&&n===0}return!1}function wd(e,t,n,i=[],o=void 0,s=t){for(const c of e){const d=String(c.key),m=wy(c,t[d]),h=c.conditionals??[];if(!h.length)continue;const y=h.filter(E=>Ty(m,E.conditionalType,E.conditionalValue)),g=y.length>1&&!y.some(E=>E.conditionalQuestionsAllowMultiple)?y.slice(0,1):y;for(const E of g){const S=E.conditionalQuestions??[];if(!S.length)continue;if(!E.conditionalQuestionsAllowMultiple){wd(S,t,n,i,o,s);continue}if(rf(d,o,s))continue;const $=t[Ad(d)]??[];if($.length===0){n.push({groupKey:d,index:-1,fieldKey:"",fieldLabel:"",message:"At least one entry is required"});continue}for(const[x,w]of $.entries()){const R=[...i,Ad(d),x],F=lf(S,w,o).filter(Z=>!(rz(Z,R)||!Xj(Z,w))),A={state:s.state,...w},L=js(F,A),M=new Map(F.map((Z,V)=>[Ya(Z,V),Z.question??""]));for(const[Z,V]of Object.entries(L))V&&n.push({groupKey:d,index:x,fieldKey:Z,fieldLabel:M.get(Z)??Z,message:V});wd(S,w,n,R,o,s)}}}}function az(e,t,n){const i=[];return wd(e,t,i,[],n,t),i}function iz(e,t,n){const i=[];return wd(e,t,i,[],n,t),i.length>0}function _0(e,t,n,i){for(const o of e){const s=String(o.key),c=wy(o,t[s]),d=o.conditionals??[];if(!d.length)continue;const m=d.filter(y=>Ty(c,y.conditionalType,y.conditionalValue)),h=m.length>1&&!m.some(y=>y.conditionalQuestionsAllowMultiple)?m.slice(0,1):m;for(const y of h){const g=y.conditionalQuestions??[];if(!g.length)continue;if(!y.conditionalQuestionsAllowMultiple){_0(g,t,n,i);continue}if(rf(s,n,t))continue;const E=t[Ad(s)]??[];for(const[S,$]of E.entries())typeof $!="object"||$===null||(i(lf(g,$,n),$,{groupKey:s,index:S}),_0(g,$,n,i))}}}function G5(e){const t=e.vehicles__items??[];if(!Array.isArray(t)||t.length===0)return!1;for(const n of t)if(Cr(n.vehicle_comp_deductible,"select")||Cr(n.vehicle_coll_deductible,"select")||Cr(n.vehicle_towing_and_labor,"select")||Cr(n.vehicle_transportation_expense,"select"))return!0;return!1}function U3({targetStage:e,stageKey:t,quoteId:n,fetchSuggestions:i,peekSuggestions:o,applySelection:s,dismissSelection:c,mergeItems:d,setAllValues:m,shouldSkip:h}){const[y,g]=b.useState(null),[E,S]=b.useState(!1),[$,x]=b.useState(!1),w=b.useRef(new Set);return b.useEffect(()=>{if(t!==e||!n||w.current.has(n))return;if(h?.()){w.current.add(n);return}const A=o(n);if(A!==void 0){A.length>0?g(A):w.current.add(n);return}let L=!1;return x(!0),i(n).then(M=>{M.length===0&&w.current.add(n),!L&&M.length>0&&g(M)}).catch(()=>{w.current.add(n)}).finally(()=>{L||x(!1)}),()=>{L=!0,x(!1)}},[t,n,e]),{suggestions:y,isApplying:E,isPending:$,handleApply:async A=>{if(n){S(!0);try{const{items:L}=await s(n,A);L.length>0&&m(M=>d(M,L))}catch{}finally{w.current.add(n),S(!1),g(null)}}},handleDismiss:()=>{n&&(w.current.add(n),c(n).catch(()=>{})),g(null)}}}function oz({stages:e,onStageComplete:t,onComplete:n,initialValues:i,initialActive:o,quoteId:s,nonTerminalStageKeys:c}){const[d,m]=b.useState(o??0),[h,y]=b.useState(i??{}),[g,E]=b.useState({}),[S,$]=b.useState(!1),[x,w]=b.useState(!1),[R,F]=b.useState(null),[A,L]=b.useState(0),[M,Z]=b.useState([]),[V,fe]=b.useState(o??0),ne=b.useRef({}),pe=b.useRef([]),J=b.useRef(null),ye=b.useRef(e),Ae=Array.isArray(e)&&e.length>0,j=Ae?Math.min(d,e.length-1):0,de=Ae?e[j]:null,O=de?.key??null,B=b.useRef(h);B.current=h;const X=U3({targetStage:"Vehicle",stageKey:O,quoteId:s,fetchSuggestions:Rj,peekSuggestions:Oj,applySelection:sj,dismissSelection:uj,mergeItems:jj,setAllValues:y}),I=U3({targetStage:"Driver",stageKey:O,quoteId:s,fetchSuggestions:Bj,peekSuggestions:Lj,applySelection:dj,dismissSelection:fj,mergeItems:Uj,setAllValues:y,shouldSkip:()=>Hj(B.current)}),G=O==="Vehicle"&&X.isPending||O==="Driver"&&I.isPending;b.useEffect(()=>{o!==void 0&&(m(o),fe(he=>Math.max(he,o)))},[o]),ye.current=e;const C=b.useMemo(()=>{const he=j>=e.length-1;return he&&O&&c?.has(O)?!1:!!(he||e.slice(j+1).every(Fe=>Fe.key==="AutoPolicy")&&(h.drivers__items??[]).length<=1)},[j,e,h,O,c]);b.useEffect(()=>{Ae&&d>=e.length&&m(e.length-1)},[d,e.length,Ae]),b.useEffect(()=>{L(0),Z([])},[O]),b.useEffect(()=>{const he=pe.current[j];he&&he.scrollIntoView({behavior:"smooth",block:"nearest",inline:"center"})},[j]),b.useEffect(()=>{i!==void 0&&y(i)},[i]),b.useEffect(()=>{if(!de||!O){$(!1),F(null);return}if(g[O]){$(!1),F(null);return}let he=!1;return $(!0),F(null),Promise.resolve(de.loadQuestions()).then(we=>{if(!he){if(!Array.isArray(we))throw new Error(`loadQuestions("${O}") did not return an array`);E(Fe=>({...Fe,[O]:we}))}}).catch(we=>{he||F(`Failed to load stage "${de?.title??""}": ${we?.message??"Unknown error"}`)}).finally(()=>{he||$(!1)}),()=>{he=!0}},[de,O,g]);const U=O?g[O]:void 0,W=b.useMemo(()=>$y(py(U??[])),[U]);b.useEffect(()=>{de&&O&&U&&qj({stageKey:O,stageTitle:de.title??O,stepIndex:d+1,totalSteps:e.length})},[O,d,e.length,de,U]);const Y=b.useMemo(()=>{if(!U)return{};const he={};(me=>{const $e=[],se=_e=>{_e.forEach((be,Ce)=>{const xe=Ya(be,Ce);$e.push(xe);const Ne=Ad(xe);$e.push(Ne),(be.conditionals??[]).forEach(oe=>{const De=oe.conditionalQuestions??[];De.length>0&&se(De)})})};return se(me),$e})(U).forEach(me=>{me in h&&(he[me]=h[me])});for(const me of["state","State","address","product"])me in h&&(he[me]=h[me]);for(const[me,$e]of Object.entries(h))me.endsWith(V5)&&!(me in he)&&(he[me]=$e);return he},[U,h]),te=he=>{y(we=>({...we,...he}))},z=()=>{m(he=>he>0?he-1:0),document.querySelector(".panel-body")?.scrollTo({top:0,behavior:"instant"})},T=he=>{he<0||he>=e.length||he>V||he===j||(m(he),document.querySelector(".panel-body")?.scrollTo({top:0,behavior:"instant"}))},N=async()=>{if(!U||!de||S||R||x||G)return;const he=lf(U,Y,O??void 0),we=Cs(h,W),Fe=he.map(Ee=>Qc(Ee,W)?{...Ee,required:we}:Ee),me=js(Fe,Y),$e=new Set(Fe.map((Ee,Te)=>Ya(Ee,Te))),se=Object.entries(me).some(([Ee,Te])=>Te&&$e.has(Ee)),_e=iz(U,h,O??void 0),Ce=he.some(Ee=>String(Ee.key??"")==="vehicle_policy_selections")?G5(h):!1,xe=h.driver_vehicle_assignments,Ne=h.drivers__items??[];let re=!1;if(xe&&Ne.length>=2){const Ee=h.vehicles__items??[];for(let Te=0;Te<Ee.length;Te++){const Re=xe[`v${Te}`];if(!Re)continue;const ke=Ne.map((ze,tt)=>Re[`d${tt}`]??0),qe=ke.filter(ze=>ze>0);if(qe.length>=2&&qe.every(ze=>ze===50)){re=!0;break}const Ue=ke.reduce((ze,tt)=>ze+tt,0);if(Ue>0&&Ue!==100){re=!0;break}}}if(se||_e||Ce||re){const Ee=new Map(Fe.map((ke,qe)=>[Ya(ke,qe),ke])),Re=[...Object.entries(me).filter(([ke,qe])=>!!qe&&$e.has(ke)).map(([ke,qe])=>{const Ue=qe,ze=Ee.get(ke)?.question;return Ue==="Required"&&ze?`${ze} is required`:Ue}),_e?"Complete all required repeated entries before continuing.":null,Ce?"Complete the vehicle policy selections before continuing.":null,re?"Driver usage percentages must be valid before continuing.":null].filter(ke=>!!ke);L(ke=>ke+1),Z(Re.length>0?Re:["Review the highlighted fields before continuing."]),window.setTimeout(()=>{J.current?.focus()},0);return}Z([]);const oe=JSON.stringify(Y);if(!C&&j<V&&ne.current[O??""]===oe){m(Ee=>Math.min(Ee+1,e.length-1)),document.querySelector(".panel-body")?.scrollTo({top:0,behavior:"instant"});return}w(!0);try{const Ee=C,Te=Ee?await n(h,O??""):await t(Y,O??""),{success:Re,error:ke}=Te;if(!Re){F(ke??"An error occurred");return}if(!Ee){const qe=Te.latestStages??ye.current,Ue=qe.findIndex(tt=>tt.key===O),ze=Ue>=0?Math.min(Ue+1,qe.length-1):Math.min(d+1,qe.length-1);ne.current[O??""]=oe,fe(tt=>Math.max(tt,ze)),m(ze)}}finally{w(!1)}},ie=b.useMemo(()=>!!(!U||S||R||x||G),[U,S,R,x,G]),ge=e.length>0?(j+1)/e.length*100:0,Se=nz(O??"unknown-stage");return Ae?v.jsxs("div",{className:`form-wizard-shell form-wizard-shell--${Se}`,"data-stage-key":O??void 0,children:[O==="Vehicle"&&X.suggestions&&X.suggestions.length>0&&v.jsx(B3,{title:"Select your vehicles",description:"We found the vehicles below at your address. Select the ones you'd like to add to your quote, or add them manually.",applyLabel:"Add selected vehicles",dismissLabel:"Add manually",alreadyOnApplicationNote:"* This vehicle is already on the application; selecting it will fill in available data that does not exist on the application.",suggestions:X.suggestions,isApplying:X.isApplying,onApply:X.handleApply,onDismiss:X.handleDismiss}),O==="Driver"&&I.suggestions&&I.suggestions.length>0&&v.jsx(B3,{title:"Additional drivers",description:"We found the drivers below at your address. Select the ones you'd like to add to your quote, or add them manually.",applyLabel:"Add selected drivers",dismissLabel:"Add manually",alreadyOnApplicationNote:"* This driver is already on the application; selecting them will fill in available data that does not exist on the application.",suggestions:I.suggestions,isApplying:I.isApplying,onApply:I.handleApply,onDismiss:I.handleDismiss}),v.jsx("div",{className:`form-wizard-steps-header form-wizard-steps-header--${Se}`,children:v.jsx("div",{className:"form-wizard-steps-scroll",children:v.jsx("ol",{className:"form-wizard-steps flex gap-2 text-xs overflow-x-auto flex-1 pb-1 scrollbar-hide items-center",style:{scrollbarWidth:"none",msOverflowStyle:"none"},tabIndex:0,"aria-label":"Quote steps",children:e.flatMap((he,we)=>[v.jsx("li",{ref:Fe=>{pe.current[we]=Fe},className:"flex-shrink-0",children:v.jsx("button",{type:"button",className:"form-wizard-step-pill px-2.5 py-1 rounded-full border whitespace-nowrap","data-step-state":we<j?"complete":we===j?"current":"upcoming",onClick:()=>T(we),disabled:we>V,"aria-current":we===j?"step":void 0,"aria-label":`${he.title}, step ${we+1} of ${e.length}${we>V?", not available yet":""}`,children:he.title})},he.key??`stage-${we}`),...we<e.length-1?[v.jsx("li",{className:"form-wizard-step-arrow text-slate-400 flex-shrink-0","aria-hidden":"true",children:"›"},`arrow-${he.key??we}`)]:[]])})})}),v.jsxs("div",{className:`form-wizard-card form-wizard-card--${Se}`,style:{"--form-wizard-progress":`${ge}%`},children:[v.jsxs("div",{className:`form-wizard-content form-wizard-content--${Se}`,children:[S&&v.jsx("div",{className:"text-slate-500",role:"status","aria-live":"polite",children:"Loading…"}),G&&v.jsxs("div",{className:"flex flex-col items-center justify-center py-16 text-center",role:"status","aria-live":"polite",children:[v.jsxs("svg",{className:"animate-spin h-8 w-8 text-blue-600 mb-4",xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","aria-hidden":"true",children:[v.jsx("circle",{className:"opacity-25",cx:"12",cy:"12",r:"10",stroke:"currentColor",strokeWidth:"4"}),v.jsx("path",{className:"opacity-75",fill:"currentColor",d:"M4 12a8 8 0 018-8V0C5.373 0 0 5.373 0 12h4zm2 5.291A7.962 7.962 0 014 12H0c0 3.042 1.135 5.824 3 7.938l3-2.647z"})]}),v.jsx("div",{className:"text-text-primary font-semibold",children:O==="Driver"?"Looking up additional drivers at your address…":"Looking up vehicles at your address…"}),v.jsx("div",{className:"text-sm text-slate-500 mt-1",children:"This can take a few moments."})]}),!G&&M.length>0&&v.jsxs("div",{ref:J,className:"mb-4 rounded-md border border-red-200 bg-red-50 p-3 text-sm text-red-700",role:"alert",tabIndex:-1,children:[v.jsx("p",{className:"font-semibold",children:"Please fix the following before continuing:"}),v.jsx("ul",{className:"mt-2 list-disc space-y-1 pl-5",children:M.map((he,we)=>v.jsx("li",{children:he},`${he}-${we}`))})]}),de&&!G&&v.jsx(L5,{questions:U??[],controlledValues:Y,onChangeValues:te,onSubmit:()=>N(),quoteId:s,widgetStageKey:O??void 0,validationAttempt:A},de.key),!S&&R&&v.jsxs("div",{className:"text-red-600 text-sm -mt-4",role:"alert",children:[v.jsx("div",{children:R}),de&&v.jsx("button",{type:"button",className:"credify-retry-btn underline mt-1 font-bold",onClick:()=>{E(he=>{if(!O)return he;const we={...he};return delete we[O],we})},children:"Retry"})]}),v.jsx(P5,{stageKey:O})]}),v.jsxs("div",{className:j>0?"form-wizard-actions grid grid-cols-2 gap-3":"form-wizard-actions",children:[j>0&&v.jsx("button",{type:"button",onClick:z,disabled:S,className:"credify-btn-back h-12 rounded-full border border-gray-300 text-text-primary hover:bg-gray-50 transition",children:"Back"}),v.jsxs("button",{type:"button","data-widget-ctrl":"next",onClick:N,disabled:ie,className:["form-wizard-next-btn",j>0?"":"w-full","h-12 rounded-full text-white transition","disabled:opacity-50 disabled:cursor-not-allowed","flex items-center justify-center gap-2",ie?"bg-gray-300":"bg-blue-600 hover:bg-blue-600/90 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-blue-600/40 bg-primary hover:bg-primary/90 focus-visible:ring-primary/40"].join(" "),children:[x&&v.jsxs("svg",{className:"animate-spin h-5 w-5 text-white",xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",children:[v.jsx("circle",{className:"opacity-25",cx:"12",cy:"12",r:"10",stroke:"currentColor",strokeWidth:"4"}),v.jsx("path",{className:"opacity-75",fill:"currentColor",d:"M4 12a8 8 0 018-8V0C5.373 0 0 5.373 0 12h4zm2 5.291A7.962 7.962 0 014 12H0c0 3.042 1.135 5.824 3 7.938l3-2.647z"})]}),C?"Finish":"Next"]})]})]})]}):v.jsx("div",{className:"text-slate-600",children:"Loading..."})}const Z5={SafecoPersonal:{name:"Safeco",abbr:"SFC",color:"#0F337A"},SafecoPersoanl:{name:"Safeco",abbr:"SFC",color:"#0F337A"},AssuranceAmerica:{name:"Assurance America",abbr:"AA",color:"#2768B5"},CommonWealthCasualty:{name:"Commonwealth Casualty",abbr:"CW",color:"#2D69EC"},Alinsco:{name:"Alinsco",abbr:"AL",color:"#20395D"},ACORDBOLTPersonalAuto:{name:"Bolt Auto",abbr:"BLT",color:"#1F2937"},ACORDBOLTPersonalHome:{name:"Bolt Home",abbr:"BLT",color:"#1F2937"},TwentyFirstCentury:{name:"21st Century",abbr:"21C",color:"#B2392A"},ACentral:{name:"A-Central",abbr:"ACT",color:"#EAAD1D"},AAA:{name:"AAA",abbr:"AAA",color:"#DB461C"},AARP:{name:"AARP",abbr:"ARP",color:"#DB4724"},Acadia:{name:"Acadia",abbr:"ACD",color:"#386B61"},Ace:{name:"ACE",abbr:"ACE",color:"#457D48"},Acuity:{name:"Acuity",abbr:"ACU",color:"#D74630"},AdirondackInsExchange:{name:"Adirondack",abbr:"ADK",color:"#1F5490"},Aegis:{name:"Aegis",abbr:"AEG",color:"#1A4675"},AIC:{name:"AIC",abbr:"AIC",color:"#508F47"},AIG:{name:"AIG",abbr:"AIG",color:"#223572"},AlfaAlliance:{name:"Alfa Alliance",abbr:"ALF",color:"#C13D17"},AllianzOfAmerica:{name:"Allianz",abbr:"ALZ",color:"#003781"},AllianzOfAmericaJefferson:{name:"Allianz Jefferson",abbr:"ALZ",color:"#003781"},Allied:{name:"Allied",abbr:"ALD",color:"#0047BB"},Allmerica:{name:"Allmerica",abbr:"ALM",color:"#003DA5"},Allstate:{name:"Allstate",abbr:"ALS",color:"#002F87"},AmericaFirst:{name:"America First",abbr:"AMF",color:"#003DA5"},AmericanCommerce:{name:"American Commerce",abbr:"ACM",color:"#003DA5"},AmericanFamily:{name:"American Family",abbr:"AMF",color:"#0033A0"},Amica:{name:"Amica",abbr:"AMI",color:"#003DA5"},Ameriprise:{name:"Ameriprise",abbr:"AMP",color:"#003DA5"},ASILloyds:{name:"ASI Lloyds",abbr:"ASI",color:"#003DA5"},Assurant:{name:"Assurant",abbr:"ASR",color:"#0033A0"},AtlasGeneralAgency:{name:"Atlas General",abbr:"ATL",color:"#1F3864"},AustinMutual:{name:"Austin Mutual",abbr:"AUS",color:"#1F3864"},Autoone:{name:"AutoOne",abbr:"AON",color:"#003DA5"},AutoOwners:{name:"Auto-Owners",abbr:"AO",color:"#C8102E"},BadgerMutual:{name:"Badger Mutual",abbr:"BDG",color:"#003DA5"},Balboa:{name:"Balboa",abbr:"BAL",color:"#1F3864"},Bamboo:{name:"Bamboo",abbr:"BMB",color:"#0F4C3A"},Bankers:{name:"Bankers",abbr:"BNK",color:"#1F3864"},BeaconNational:{name:"Beacon National",abbr:"BCN",color:"#003DA5"},BrethernMutual:{name:"Brethren Mutual",abbr:"BRT",color:"#1F3864"},BristolWest:{name:"Bristol West",abbr:"BW",color:"#003DA5"},BunkerHill:{name:"Bunker Hill",abbr:"BHL",color:"#1F3864"},CapitalInsuranceGroup:{name:"Capital Insurance",abbr:"CIG",color:"#003DA5"},Celina:{name:"Celina",abbr:"CEL",color:"#1F3864"},CentralMutualOfOH:{name:"Central Mutual",abbr:"CMO",color:"#003DA5"},Chubb:{name:"Chubb",abbr:"CHB",color:"#000000"},ChubbInsurance:{name:"Chubb",abbr:"CHB",color:"#000000"},Cincinnati:{name:"Cincinnati",abbr:"CIN",color:"#003DA5"},Citizens:{name:"Citizens",abbr:"CTZ",color:"#003DA5"},Clearcover:{name:"Clearcover",abbr:"CC",color:"#00B5E2"},CNA:{name:"CNA",abbr:"CNA",color:"#CC3232"},ColonialPenn:{name:"Colonial Penn",abbr:"CPN",color:"#0072CE"},ColoradoCasualty:{name:"Colorado Casualty",abbr:"COC",color:"#1F3864"},Columbia:{name:"Columbia",abbr:"CLM",color:"#003DA5"},CommerceWest:{name:"Commerce West",abbr:"CMW",color:"#003DA5"},CommonwealthCasualty:{name:"Commonwealth Casualty",abbr:"CW",color:"#1F3864"},ConstitutionalCasualty:{name:"Constitutional Casualty",abbr:"CON",color:"#1F3864"},Cornerstone:{name:"Cornerstone",abbr:"CRN",color:"#1F3864"},Countrywide:{name:"Countrywide",abbr:"CTW",color:"#003DA5"},CSE:{name:"CSE",abbr:"CSE",color:"#003DA5"},Cumberland:{name:"Cumberland",abbr:"CMB",color:"#1F3864"},Cypress:{name:"Cypress",abbr:"CYP",color:"#0F4C3A"},Dairyland:{name:"Dairyland",abbr:"DL",color:"#0072CE"},Deerbrook:{name:"Deerbrook",abbr:"DBK",color:"#1F3864"},Direct:{name:"Direct",abbr:"DIR",color:"#D52B1E"},Donegal:{name:"Donegal",abbr:"DON",color:"#003DA5"},Drive:{name:"Drive",abbr:"DRV",color:"#1F3864"},Electric:{name:"Electric",abbr:"ELC",color:"#003DA5"},EMC:{name:"EMC",abbr:"EMC",color:"#003DA5"},Encompass:{name:"Encompass",abbr:"ENC",color:"#002F87"},Erie:{name:"Erie",abbr:"ERI",color:"#005FAC"},Esurance:{name:"Esurance",abbr:"ESU",color:"#00A6CE"},ExcelsiorInsuranceCompany:{name:"Excelsior",abbr:"EXC",color:"#1F3864"},Explorer:{name:"Explorer",abbr:"EXP",color:"#1F3864"},FairPlan:{name:"FAIR Plan",abbr:"FPN",color:"#1F3864"},FarmBureau:{name:"Farm Bureau",abbr:"FB",color:"#00843D"},Farmers:{name:"Farmers",abbr:"FRM",color:"#1C428B"},Fidelity:{name:"Fidelity",abbr:"FID",color:"#00833F"},FiremansFund:{name:"Fireman's Fund",abbr:"FF",color:"#E31837"},FirstAmerican:{name:"First American",abbr:"FAM",color:"#003DA5"},Foremost:{name:"Foremost",abbr:"FOR",color:"#E31837"},ForemostInsuranceCompany:{name:"Foremost",abbr:"FOR",color:"#E31837"},Geico:{name:"GEICO",abbr:"GEI",color:"#0F4293"},GeneralCasualty:{name:"General Casualty",abbr:"GC",color:"#1F3864"},GermantownMutual:{name:"Germantown Mutual",abbr:"GTM",color:"#1F3864"},GMAC:{name:"GMAC",abbr:"GMA",color:"#003DA5"},Grange:{name:"Grange",abbr:"GRG",color:"#003DA5"},GreatAmerican:{name:"Great American",abbr:"GA",color:"#003DA5"},Grinnell:{name:"Grinnell Mutual",abbr:"GRN",color:"#E31837"},GuideOne:{name:"GuideOne",abbr:"GO",color:"#0072CE"},Hanover:{name:"Hanover",abbr:"HAN",color:"#003DA5"},Harbor:{name:"Harbor",abbr:"HBR",color:"#1F3864"},Harleysville:{name:"Harleysville",abbr:"HRL",color:"#003DA5"},Hartford:{name:"The Hartford",abbr:"HFD",color:"#7F1734"},HartfordOMNI:{name:"Hartford OMNI",abbr:"HOM",color:"#7F1734"},HastingsMutual:{name:"Hastings Mutual",abbr:"HST",color:"#1F3864"},HawkeyeSecurity:{name:"Hawkeye Security",abbr:"HWK",color:"#1F3864"},HDI:{name:"HDI",abbr:"HDI",color:"#00563F"},HippoInsuranceCompany:{name:"Hippo",abbr:"HPO",color:"#00C9A7"},HomeownersOfAmerica:{name:"Homeowners of America",abbr:"HOA",color:"#003DA5"},Homesite:{name:"Homesite",abbr:"HMS",color:"#0033A0"},HoraceMann:{name:"Horace Mann",abbr:"HM",color:"#003DA5"},HoustonGeneral:{name:"Houston General",abbr:"HG",color:"#1F3864"},IFA:{name:"IFA",abbr:"IFA",color:"#003DA5"},ImperialCasualty:{name:"Imperial Casualty",abbr:"IMP",color:"#1F3864"},Indiana:{name:"Indiana Insurance",abbr:"IND",color:"#003DA5"},IndianaFarmers:{name:"Indiana Farmers",abbr:"IFM",color:"#00843D"},Infinity:{name:"Infinity",abbr:"INF",color:"#E31837"},Insurequest:{name:"Insurequest",abbr:"INQ",color:"#1F3864"},Integon:{name:"Integon",abbr:"ITG",color:"#003DA5"},Integrity:{name:"Integrity",abbr:"ITY",color:"#1F3864"},Kemper:{name:"Kemper",abbr:"KMP",color:"#0033A0"},LibertyMutual:{name:"Liberty Mutual",abbr:"LM",color:"#FFD000"},LibertyNorthwest:{name:"Liberty Northwest",abbr:"LNW",color:"#FFD000"},Lloyds:{name:"Lloyd's",abbr:"LLY",color:"#003DA5"},MainStreetAmerica:{name:"Main Street America",abbr:"MSA",color:"#003DA5"},Mapfre:{name:"MAPFRE",abbr:"MAP",color:"#E31837"},MarkelInsuranceCompany:{name:"Markel",abbr:"MKL",color:"#003DA5"},Mendota:{name:"Mendota",abbr:"MND",color:"#1F3864"},MerchantsGroup:{name:"Merchants Group",abbr:"MRC",color:"#003DA5"},Mercury:{name:"Mercury",abbr:"MER",color:"#ED1C24"},Metlife:{name:"MetLife",abbr:"MET",color:"#0090DA"},Metropolitan:{name:"Metropolitan",abbr:"MTP",color:"#0090DA"},MidContinent:{name:"Mid-Continent",abbr:"MC",color:"#003DA5"},MidwesternIndemnity:{name:"Midwestern Indemnity",abbr:"MWI",color:"#003DA5"},Montgomery:{name:"Montgomery",abbr:"MTG",color:"#1F3864"},MSA:{name:"MSA",abbr:"MSA",color:"#003DA5"},MtWashington:{name:"Mt. Washington",abbr:"MTW",color:"#1F3864"},MutualBenefit:{name:"Mutual Benefit",abbr:"MB",color:"#1F3864"},NatGenPremier:{name:"NatGen Premier",abbr:"NGP",color:"#0033A0"},NationalGeneral:{name:"National General",abbr:"NG",color:"#0033A0"},Nationwide:{name:"Nationwide",abbr:"NW",color:"#204D9B"},NationwideScottsdale:{name:"Nationwide Scottsdale",abbr:"NWS",color:"#204D9B"},NewYorkCentralMutual:{name:"NY Central Mutual",abbr:"NYC",color:"#003DA5"},NJManufacturers:{name:"NJM Insurance",abbr:"NJM",color:"#003DA5"},NJSkylands:{name:"NJ Skylands",abbr:"NJS",color:"#003DA5"},Northstar:{name:"Northstar",abbr:"NST",color:"#1F3864"},Occidental:{name:"Occidental",abbr:"OCC",color:"#1F3864"},OhioCasualty:{name:"Ohio Casualty",abbr:"OHC",color:"#003DA5"},OmahaPC:{name:"Omaha P&C",abbr:"OMA",color:"#003DA5"},OneBeacon:{name:"OneBeacon",abbr:"OB",color:"#003DA5"},OregonMutual:{name:"Oregon Mutual",abbr:"ORE",color:"#003DA5"},Palisades:{name:"Palisades",abbr:"PAL",color:"#1F3864"},PeerlessMontgomery:{name:"Peerless Montgomery",abbr:"PRM",color:"#1F3864"},Pekin:{name:"Pekin",abbr:"PEK",color:"#003DA5"},Pemco:{name:"PEMCO",abbr:"PMC",color:"#0072CE"},PennNational:{name:"Penn National",abbr:"PN",color:"#003DA5"},PlymouthRock:{name:"Plymouth Rock",abbr:"PLR",color:"#003DA5"},PreferredMutual:{name:"Preferred Mutual",abbr:"PFM",color:"#003DA5"},Proformance:{name:"Proformance",abbr:"PRF",color:"#1F3864"},Progressive:{name:"Progressive",abbr:"PRG",color:"#0053BA"},Prudential:{name:"Prudential",abbr:"PRU",color:"#0033A0"},PureHighValue:{name:"PURE",abbr:"PUR",color:"#003DA5"},Republic:{name:"Republic",abbr:"REP",color:"#003DA5"},RockfordMutual:{name:"Rockford Mutual",abbr:"RKF",color:"#1F3864"},RoyalAndSunAlliance:{name:"Royal & SunAlliance",abbr:"RSA",color:"#003DA5"},Safeco:{name:"Safeco",abbr:"SFC",color:"#E4002B"},SECURA:{name:"SECURA",abbr:"SEC",color:"#003DA5"},Selective:{name:"Selective",abbr:"SEL",color:"#003DA5"},SouthernCounty:{name:"Southern County",abbr:"SCM",color:"#1F3864"},SouthernMutual:{name:"Southern Mutual",abbr:"SM",color:"#1F3864"},SouthernTrust:{name:"Southern Trust",abbr:"ST",color:"#1F3864"},StPaulTravelers:{name:"St. Paul Travelers",abbr:"SPT",color:"#C8102E"},StandardMutual:{name:"Standard Mutual",abbr:"STM",color:"#1F3864"},StarCasualty:{name:"Star Casualty",abbr:"SC",color:"#1F3864"},StateAuto:{name:"State Auto",abbr:"SA",color:"#003DA5"},StateFarm:{name:"State Farm",abbr:"SF",color:"#CC0717"},StateFarmFloridaInsuranceCompany:{name:"State Farm Florida",abbr:"SFF",color:"#CC0717"},SunshineStateInsuranceCompany:{name:"Sunshine State",abbr:"SSS",color:"#FFC72C"},Travelers:{name:"Travelers",abbr:"TRV",color:"#C8102E"},Tower:{name:"Tower",abbr:"TWR",color:"#1F3864"},TWFG:{name:"TWFG",abbr:"TWF",color:"#003DA5"},Unigard:{name:"Unigard",abbr:"UNG",color:"#1F3864"},UnitedFireAndCasualty:{name:"United Fire & Casualty",abbr:"UFC",color:"#003DA5"},Unitrin:{name:"Unitrin",abbr:"UTN",color:"#003DA5"},Universal:{name:"Universal",abbr:"UNV",color:"#003DA5"},USAA:{name:"USAA",abbr:"USA",color:"#1A3258"},UticaNational:{name:"Utica National",abbr:"UTC",color:"#003DA5"},Victoria:{name:"Victoria",abbr:"VIC",color:"#1F3864"},Wellington:{name:"Wellington",abbr:"WLG",color:"#1F3864"},WestBend:{name:"West Bend",abbr:"WB",color:"#003DA5"},WesternNational:{name:"Western National",abbr:"WN",color:"#003DA5"},WesternReserveGroup:{name:"Western Reserve",abbr:"WR",color:"#003DA5"},Westfield:{name:"Westfield",abbr:"WF",color:"#F05136"},WhiteMountains:{name:"White Mountains",abbr:"WM",color:"#1F3864"},WilsonMutual:{name:"Wilson Mutual",abbr:"WLM",color:"#1F3864"},Windsor:{name:"Windsor",abbr:"WIN",color:"#1F3864"},Zurich:{name:"Zurich",abbr:"ZUR",color:"#003399"}},H3=["#0369A1","#1D4ED8","#0F766E","#7C3AED","#B45309","#DC2626","#0891B2","#9333EA"];function lz(e){return e.replace(/[^A-Za-z0-9]/g,"").slice(0,3).toUpperCase()||"CAR"}function Y5(e){return e.replace(/([a-z])([A-Z])/g,"$1 $2").replace(/_/g," ").trim()}function Ti(e){if(!e)return e;const t=Z5[e];return t?t.name:Y5(e)}function sz(e){const t=new Set,n=[];return e.forEach((i,o)=>{const c=Z5[i]??{name:Y5(i),abbr:lz(i),color:H3[o%H3.length]};t.has(c.name)||(t.add(c.name),n.push(c))}),n}function uz(e,t){if(!e)return[];const n=[];return(t==="Auto"||t==="Bundle")&&Array.isArray(e.PersonalAuto)&&n.push(...e.PersonalAuto),(t==="Home"||t==="Bundle")&&Array.isArray(e.PersonalHome)&&n.push(...e.PersonalHome),sz(n)}const cz="https://getcredify.com/privacy-policy";function dz({acknowledged:e,onChange:t,disabled:n=!1}){return v.jsx("div",{className:"privacy-notice-ack rounded-xl border border-slate-200 bg-slate-50 p-4","data-testid":"privacy-notice-acknowledgment",children:v.jsx(ji,{id:"privacy-notice-ack-checkbox",className:"privacy-notice-ack-checkbox",checked:e,onChange:i=>t(i.target.checked),disabled:n,label:v.jsxs(v.Fragment,{children:["I acknowledge I have received Credify’s"," ",v.jsx("a",{href:cz,target:"_blank",rel:"noopener noreferrer",className:"credify-link-underline",children:"Privacy Notice"}),"."]})})})}function fz({carrierName:e,formattedPremium:t,lobLabel:n,acknowledged:i,onAcknowledgeChange:o,onCancel:s,onProceed:c,isProcessing:d,hasError:m}){const h=!i||d;return v.jsxs("div",{className:"bind-confirmation","data-testid":"bind-confirmation",role:"group","aria-label":"Confirm your bind request",children:[v.jsx("h3",{className:"text-lg font-semibold text-slate-900",children:"Confirm your bind request"}),v.jsxs("div",{className:"mt-4 rounded-xl border border-slate-200 bg-white p-4",children:[n&&v.jsx("div",{className:"mb-1 text-xs font-semibold uppercase tracking-wide text-slate-500",children:n}),v.jsx("p",{className:"font-semibold text-slate-900",children:e}),v.jsxs("p",{className:"text-2xl font-bold text-slate-900",children:[t,v.jsx("span",{className:"ml-1 text-sm font-medium text-slate-500",children:"/month"})]})]}),v.jsx("div",{className:"mt-4",children:v.jsx(dz,{acknowledged:i,onChange:o,disabled:d})}),m&&v.jsx("p",{className:"mt-3 text-sm text-red-600",role:"alert",children:"Something went wrong while processing your bind request. Please try again."}),v.jsxs("div",{className:"mt-6 grid grid-cols-1 gap-3 sm:grid-cols-2",children:[v.jsx("button",{type:"button","data-testid":"bind-confirmation-cancel",onClick:s,disabled:d,className:"credify-btn-back h-12 rounded-full border border-gray-300 text-text-primary hover:bg-gray-50 transition disabled:opacity-50 disabled:cursor-not-allowed",children:"Cancel"}),v.jsxs("button",{type:"button","data-testid":"bind-confirmation-proceed",onClick:c,disabled:h,className:["h-12 rounded-full text-white font-bold transition","flex items-center justify-center gap-2","disabled:cursor-not-allowed",h?"bg-slate-400":"bg-blue-600 hover:bg-blue-600/90 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-blue-600/40 bg-primary hover:bg-primary/90 focus-visible:ring-primary/40"].join(" "),children:[d&&v.jsxs("svg",{className:"animate-spin h-5 w-5 text-white",xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",children:[v.jsx("circle",{className:"opacity-25",cx:"12",cy:"12",r:"10",stroke:"currentColor",strokeWidth:"4"}),v.jsx("path",{className:"opacity-75",fill:"currentColor",d:"M4 12a8 8 0 018-8V0C5.373 0 0 5.373 0 12h4zm2 5.291A7.962 7.962 0 014 12H0c0 3.042 1.135 5.824 3 7.938l3-2.647z"})]}),d?"Processing…":"Proceed"]})]})]})}const q5=new Intl.NumberFormat("en-US",{style:"currency",currency:"USD"});function K5(e){const t=Number.isFinite(e.term_months)&&e.term_months>0?e.term_months:1;return e.monthly_premium_cents!=null?e.monthly_premium_cents:Math.round((e.premium_cents||0)/t)}const Td={PersonalHome:"Homeowners",PersonalAuto:"Personal Auto",Flood:"Flood",ExcessFlood:"Excess Flood",_other:"Other"},Nd=["PersonalHome","PersonalAuto","Flood","ExcessFlood"];function mz(e){if(e.length===0)return[];const t=(i,o)=>Ti(i.carrier_name).localeCompare(Ti(o.carrier_name));if(!e.some(i=>i.lob))return[{lob:null,title:"Not Quoted",rates:[...e].sort(t)}];const n=new Map;for(const i of e){const o=i.lob||"_other",s=n.get(o);s?s.push(i):n.set(o,[i])}return[...n.entries()].sort(([i],[o])=>{const s=Nd.indexOf(i),c=Nd.indexOf(o);return(s===-1?999:s)-(c===-1?999:c)}).map(([i,o])=>({lob:i,title:Td[i]??i,rates:[...o].sort(t)}))}const Kr={admitted:{tab:"rates-tab-admitted",panel:"rates-panel-admitted"},non_admitted:{tab:"rates-tab-non-admitted",panel:"rates-panel-non-admitted"},not_quoted:{tab:"rates-tab-not-quoted",panel:"rates-panel-not-quoted"}};function V3({onBack:e}){const t=()=>{Qj(),e?.()};return v.jsx("button",{type:"button",onClick:t,className:"credify-btn-back credify-btn-back-rates h-12 rounded-full border border-gray-300 text-text-primary hover:bg-gray-50 transition w-full",children:"Back"})}function pz({rate:e,status:t,onRequestBind:n,disabled:i,showLobLabel:o=!0,className:s}){const c=K5(e)/100,d=q5.format(c),m=t==="loading",h=t==="success",y=!!i||m||h,g=!!(e.effective_date&&e.policy_end_date),E=e.lob?Td[e.lob]||e.lob:null,S=(e.coverages??[]).filter($=>!!$&&typeof $.label=="string"&&$.label.trim()!==""&&typeof $.value=="string"&&$.value.trim()!=="");return v.jsxs("div",{className:`flex h-full w-full flex-col rounded-xl border border-slate-200 bg-white p-6 shadow-sm transition hover:shadow-md${s?` ${s}`:""}`,children:[o&&E&&v.jsx("div",{className:"mb-2 text-xs font-semibold uppercase tracking-wide text-slate-500",children:E}),v.jsxs("div",{className:"mb-4 flex flex-col items-start gap-2",children:[e.carrier_logo_base64?v.jsx("img",{src:`data:image/png;base64,${e.carrier_logo_base64}`,alt:Ti(e.carrier_name),className:"h-12 w-auto max-w-full object-contain"}):v.jsx("div",{className:"flex h-12 w-12 items-center justify-center rounded-md bg-slate-100 text-sm font-semibold text-slate-500",children:Ti(e.carrier_name).charAt(0).toUpperCase()}),v.jsx("h4",{className:"w-full break-words text-left font-semibold text-slate-900",children:Ti(e.carrier_name)})]}),v.jsx("div",{className:"mb-2",children:v.jsxs("p",{className:"text-2xl font-bold text-slate-900",children:[d,v.jsx("span",{className:"ml-1 text-sm font-medium text-slate-500",children:"/month"})]})}),g&&v.jsx("div",{className:"mb-2",children:v.jsxs("p",{className:"text-xs text-slate-500",children:["Effective ",e.effective_date," - ",e.policy_end_date]})}),e.carrier_quote_id&&v.jsx("div",{className:"mb-4",children:v.jsxs("p",{className:"text-xs text-slate-400",children:["Quote ID: ",e.carrier_quote_id]})}),S.length>0&&v.jsx("div",{className:"mb-2 border-t border-slate-200 pt-3",children:v.jsx("dl",{children:S.map(($,x)=>v.jsxs("div",{className:"flex items-baseline justify-between gap-2 py-1",children:[v.jsx("dt",{className:"text-xs text-slate-600",children:$.label}),v.jsx("dd",{className:"text-right text-xs font-semibold text-slate-900",children:$.value})]},`${$.label}-${x}`))})}),v.jsxs("div",{className:"mt-auto pt-4",children:[v.jsx("button",{type:"button",onClick:n,disabled:y,className:`rates-bind-btn w-full cursor-pointer rounded-full px-4 py-2.5 text-sm font-semibold transition focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-blue-600/40 disabled:cursor-not-allowed ${h?"rates-bind-btn-requested":"hover:bg-blue-600/90 disabled:bg-slate-300 disabled:text-slate-500"}`,children:m?"Requesting…":h?"Requested":"Request Bind"}),t==="error"&&v.jsx("p",{className:"mt-2 text-xs text-red-600",role:"alert",children:"Something went wrong. Please try again."}),t==="success"&&v.jsx("p",{className:"mt-2 text-xs text-emerald-600",role:"status","aria-live":"polite",children:"We received your bind request."})]})]})}function hz({item:e}){const t=Ti(e.carrier_name),n=(e.decline_reasons??[]).filter(Boolean);return v.jsxs("div",{className:"flex w-full gap-4 rounded-xl border border-slate-200 bg-white p-4 shadow-sm",children:[v.jsx("div",{className:"shrink-0",children:e.carrier_logo_base64?v.jsx("img",{src:`data:image/png;base64,${e.carrier_logo_base64}`,alt:t,className:"h-10 w-auto max-w-[7rem] object-contain"}):v.jsx("div",{className:"flex h-10 w-10 items-center justify-center rounded-md bg-slate-100 text-sm font-semibold text-slate-500",children:t.charAt(0).toUpperCase()})}),v.jsxs("div",{className:"min-w-0 flex-1",children:[v.jsx("div",{className:"flex flex-wrap items-center gap-2",children:v.jsx("h4",{className:"break-words font-semibold text-slate-900",children:t})}),n.length>0?v.jsx("ul",{className:"mt-2 list-disc space-y-1 pl-5 text-sm text-slate-600",children:n.map((i,o)=>v.jsx("li",{children:i},o))}):v.jsx("p",{className:"mt-2 text-sm text-slate-500",children:"This carrier did not return a quote."})]})]})}function yz({rates:e,onBack:t,isBundleFlow:n=!1,quoteId:i,initialPhone:o="",requirePursueVerification:s=!1,onSubScreenChange:c}){const d=b.useMemo(()=>Array.isArray(e)?e:[],[e]),m=d.length>0,[h,y]=b.useState({}),[g,E]=b.useState("admitted"),[S,$]=b.useState(!1),[x,w]=b.useState(null),[R,F]=b.useState(!1),[A,L]=b.useState(null),[M,Z]=b.useState(!1),[V,fe]=b.useState(o),[ne,pe]=b.useState(""),[J,ye]=b.useState("phone"),[Ae,j]=b.useState("idle"),[de,O]=b.useState(null),B=!!(A||x);b.useEffect(()=>{c?.(B)},[B,c]),b.useEffect(()=>()=>c?.(!1),[c]);const X=b.useMemo(()=>d.some(re=>re.lob==="PersonalAuto"),[d]),I=b.useMemo(()=>d.some(re=>re.lob==="PersonalHome"),[d]),G=b.useMemo(()=>{if(!n)return[];const re=[];return X&&re.push("PersonalAuto"),I&&re.push("PersonalHome"),re},[n,X,I]),C=b.useMemo(()=>{const re=new Set;for(const oe of d){const De=oe.lob??null;De&&h[oe.quote_rate_id]==="success"&&re.add(De)}return re},[d,h]),U=b.useMemo(()=>Object.values(h).some(re=>re==="success"),[h]),W=b.useMemo(()=>S?!0:!n||G.length===0?U:G.every(re=>C.has(re)),[S,n,U,G,C]),Y=b.useMemo(()=>m?d.filter(re=>(re.admitted_status??"admitted")==="admitted"):[],[d,m]),te=b.useMemo(()=>m?d.filter(re=>re.admitted_status==="non_admitted"):[],[d,m]),z=b.useMemo(()=>m?d.filter(re=>re.admitted_status==="not_quoted"):[],[d,m]),T=Y.length,N=te.length,ie=z.length,ge=T+N>0,Se=ge||ie>0,he=b.useMemo(()=>mz(z),[z]);b.useEffect(()=>{Se&&g==="admitted"&&T===0&&(N>0?E("non_admitted"):ie>0&&E("not_quoted"))},[g,T,N,ie,Se]);const we=b.useMemo(()=>ge?g==="admitted"?Y:g==="non_admitted"?te:[]:[],[ge,g,Y,te]),Fe=re=>{if(re.key!=="ArrowLeft"&&re.key!=="ArrowRight"&&re.key!=="Home"&&re.key!=="End")return;re.preventDefault();const oe=re.key==="Home"?"admitted":re.key==="End"||g==="admitted"?"non_admitted":"admitted";E(oe),window.setTimeout(()=>document.getElementById(Kr[oe].tab)?.focus(),0)};b.useEffect(()=>{Xc()},[]),b.useEffect(()=>{!W||S||(PI(),R5(),$(!0))},[W,S]);const me=b.useMemo(()=>{if(we.length===0)return[];if(!we.some(Ee=>Ee.lob))return[{lob:null,title:"Rates",rates:[...we].sort((Te,Re)=>{const ke=Number.isFinite(Te.term_months)&&Te.term_months>0?Te.term_months:1,qe=Number.isFinite(Re.term_months)&&Re.term_months>0?Re.term_months:1,Ue=Te.monthly_premium_cents??Math.round((Te.premium_cents||0)/ke),ze=Re.monthly_premium_cents??Math.round((Re.premium_cents||0)/qe);return Ue-ze})}];const oe=new Map;for(const Ee of we){const Te=Ee.lob||"_other",Re=oe.get(Te);Re?Re.push(Ee):oe.set(Te,[Ee])}return[...oe.entries()].sort(([Ee],[Te])=>{const Re=Nd.indexOf(Ee),ke=Nd.indexOf(Te);return(Re===-1?999:Re)-(ke===-1?999:ke)}).map(([Ee,Te])=>({lob:Ee,title:Td[Ee]??Ee,rates:[...Te].sort((Re,ke)=>{const qe=Number.isFinite(Re.term_months)&&Re.term_months>0?Re.term_months:1,Ue=Number.isFinite(ke.term_months)&&ke.term_months>0?ke.term_months:1,ze=Re.monthly_premium_cents??Math.round((Re.premium_cents||0)/qe),tt=ke.monthly_premium_cents??Math.round((ke.premium_cents||0)/Ue);return ze-tt})}))},[we]),$e=b.useMemo(()=>{if(!n)return[];const re=d.some(Ee=>Ee.lob==="PersonalAuto"),oe=d.some(Ee=>Ee.lob==="PersonalHome"),De=[];return re||De.push("Sorry, no rates found for Personal Auto."),oe||De.push("Sorry, no rates found for Homeowners."),De},[n,d]);if(!Se)return v.jsxs("section",{className:"mt-8",children:[v.jsx("h3",{className:"text-lg font-semibold text-slate-900",children:"Rates"}),v.jsx("p",{className:"mt-2 text-sm text-slate-500",children:"Sorry, no rates are available at this time."}),t&&v.jsx(V3,{onBack:t})]});const se=re=>{if(y(oe=>({...oe,[re.quote_rate_id]:"idle"})),F(!1),Xc(),!M&&(s||!Jr())){fe(o),pe(""),ye("phone"),j("idle"),O(null),L({cardKey:re.quote_rate_id,rate:re});return}w({cardKey:re.quote_rate_id,rate:re})},_e=()=>{w(null),F(!1)},be=()=>{L(null),O(null),j("idle")},Ce=async()=>{if(!A||!i)return;const re=V.trim();if(!re){O("Please enter your phone number.");return}j("sending"),O(null);try{await O5(i,re),ye("code"),j("sent")}catch(oe){const De=oe;if(j("idle"),De?.message==="sms_rate_limited"){const Ee=De.retryAfterSeconds??60;ye("code"),O(`We just sent a code to that number. You can request another in ${Ee} second${Ee===1?"":"s"}.`);return}O("We could not send a code to that number. Please check it and try again.")}},xe=async()=>{if(!A||!i)return;const re=ne.trim();if(!re){O("Please enter the code we texted you.");return}j("verifying"),O(null);try{const{isVerified:oe,token:De,code:Ee}=await b0(i,re);if(!oe||!De){j("sent"),O(Ee==="OTP_EXPIRED"?"That code has expired. Request a new one and try again.":"That code was incorrect. Please try again.");return}Jc(De);const Te=A;Z(!0),L(null),j("idle"),w(Te)}catch(oe){const De=oe;if(j("sent"),De?.message==="too_many_attempts"){O("Too many incorrect attempts. Request a new code to try again.");return}O("Something went wrong verifying your code. Please try again.")}},Ne=async()=>{if(!x||!R)return;const re=x.cardKey;y(oe=>({...oe,[re]:"loading"}));try{if(Xc(),!Jr())throw new Error("Authentication required. Please verify your phone number first.");if(!((await mj(re,!0))?.success!==!1))throw new Error("Request failed");y(Te=>({...Te,[re]:"success"})),w(null),F(!1)}catch{y(oe=>({...oe,[re]:"error"}))}};if(A){const re=Ae==="sending"||Ae==="verifying",oe=["h-12 rounded-full text-white font-bold transition","flex items-center justify-center gap-2","disabled:cursor-not-allowed",re?"bg-slate-400":"bg-blue-600 hover:bg-blue-600/90 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-blue-600/40 bg-primary hover:bg-primary/90 focus-visible:ring-primary/40"].join(" "),De="credify-btn-back h-12 rounded-full border border-gray-300 text-text-primary hover:bg-gray-50 transition disabled:opacity-50 disabled:cursor-not-allowed";return v.jsx("section",{className:"mt-8",children:J==="phone"?v.jsxs(v.Fragment,{children:[v.jsx(HE,{id:"phone",label:"What is your phone number?",value:V,onChange:Ee=>fe(Ee.currentTarget.value),error:de??void 0}),v.jsxs("div",{className:"mt-3 text-xs text-slate-600 space-y-1",children:[v.jsx("p",{children:"We'll text you a 6-digit code to confirm your number. This is just to confirm your number, not a sales call."}),v.jsx("p",{children:"Message & data rates may apply. One message per request."}),v.jsxs("p",{children:["See our"," ",v.jsx("a",{href:"https://getcredify.com/privacy-policy",target:"_blank",rel:"noopener noreferrer",className:"credify-link-underline",children:"Privacy Policy"})," ","and"," ",v.jsx("a",{href:"https://getcredify.com/terms-of-service",target:"_blank",rel:"noopener noreferrer",className:"credify-link-underline",children:"Terms of Service"}),"."]})]}),v.jsxs("div",{className:"mt-6 grid grid-cols-2 gap-3",children:[v.jsx("button",{type:"button",onClick:be,className:De,children:"Back to rates"}),v.jsx("button",{type:"button",onClick:Ce,disabled:re,className:oe,children:Ae==="sending"?"Sending…":"Send code"})]})]}):v.jsxs(v.Fragment,{children:[v.jsx(Uc,{id:"sms_code",label:"Please enter the code we sent to your phone number.",value:ne,inputMode:"numeric",pattern:"[0-9]*",maxLength:6,autoComplete:"one-time-code",onChange:Ee=>pe(Ee.currentTarget.value.replace(/\D+/g,"").slice(0,6)),error:de??void 0}),v.jsx(P5,{stageKey:"SMSVerification"}),v.jsxs("div",{className:"mt-6 grid grid-cols-2 gap-3",children:[v.jsx("button",{type:"button",onClick:()=>{ye("phone"),O(null)},className:De,children:"Change number"}),v.jsx("button",{type:"button",onClick:xe,disabled:re,className:oe,children:Ae==="verifying"?"Verifying…":"Verify & continue"})]})]})})}if(x){const re=x.rate.lob?Td[x.rate.lob]||x.rate.lob:null;return v.jsx("section",{className:"mt-8",children:v.jsx(fz,{carrierName:Ti(x.rate.carrier_name),formattedPremium:q5.format(K5(x.rate)/100),lobLabel:re,acknowledged:R,onAcknowledgeChange:F,onCancel:_e,onProceed:Ne,isProcessing:h[x.cardKey]==="loading",hasError:h[x.cardKey]==="error"})})}return v.jsxs("section",{className:"mt-8",children:[v.jsx("h3",{className:"text-lg font-semibold text-slate-900",children:"Rates"}),$e.length>0&&v.jsx("div",{className:"mt-3 space-y-1",children:$e.map(re=>v.jsx("p",{className:"text-sm text-slate-600",children:re},re))}),v.jsx("div",{className:"mt-4 border-b border-slate-200",children:v.jsxs("div",{className:"flex items-center gap-6",role:"tablist","aria-label":"Rate market type",children:[v.jsxs("button",{id:Kr.admitted.tab,type:"button",role:"tab","aria-selected":g==="admitted","aria-controls":Kr.admitted.panel,onClick:()=>E("admitted"),onKeyDown:Fe,className:`border-b-2 px-1 py-2 text-sm font-semibold transition ${g==="admitted"?"border-cyan-500 text-slate-900":"border-transparent text-slate-500 hover:text-slate-800"}`,children:["Admitted (",T,")"]}),v.jsxs("button",{id:Kr.non_admitted.tab,type:"button",role:"tab","aria-selected":g==="non_admitted","aria-controls":Kr.non_admitted.panel,onClick:()=>E("non_admitted"),onKeyDown:Fe,className:`border-b-2 px-1 py-2 text-sm font-semibold transition ${g==="non_admitted"?"border-cyan-500 text-slate-900":"border-transparent text-slate-500 hover:text-slate-800"}`,children:["Non-admitted (",N,")"]}),ie>0&&v.jsxs("button",{id:Kr.not_quoted.tab,type:"button",role:"tab","aria-selected":g==="not_quoted","aria-controls":Kr.not_quoted.panel,onClick:()=>E("not_quoted"),className:`border-b-2 px-1 py-2 text-sm font-semibold transition ${g==="not_quoted"?"border-cyan-500 text-slate-900":"border-transparent text-slate-500 hover:text-slate-800"}`,children:["Not Quoted (",ie,")"]})]})}),v.jsx("div",{id:Kr[g].panel,role:"tabpanel","aria-labelledby":Kr[g].tab,tabIndex:0,children:g==="not_quoted"?he.map(re=>v.jsxs("div",{className:"mt-6",children:[re.lob!=null&&v.jsx("h4",{className:"mb-3 text-center text-base font-semibold text-slate-800",children:re.title}),v.jsx("div",{className:"space-y-3",children:re.rates.map(oe=>v.jsx(hz,{item:oe},oe.quote_rate_id))})]},re.lob??"all")):v.jsxs(v.Fragment,{children:[we.length===0&&v.jsx("p",{className:"mt-4 text-sm text-slate-500",children:g==="admitted"?"Sorry, no admitted rates are available at this time.":"Sorry, no non-admitted rates are available at this time."}),we.length>0&&me.map(re=>v.jsxs("div",{className:"mt-6",children:[v.jsx("h4",{className:"mb-3 text-center text-base font-semibold text-slate-800",children:re.title}),v.jsx("div",{className:"flex flex-wrap justify-center gap-4",children:re.rates.map(oe=>v.jsx("div",{className:"w-full min-w-0 sm:w-[calc(50%-0.5rem)] lg:w-[calc(33.333%-0.667rem)] xl:w-[calc(25%-0.75rem)]",children:v.jsx(pz,{rate:oe,showLobLabel:re.lob==null,status:h[oe.quote_rate_id]??"idle",disabled:W||(n?!!(oe.lob&&G.includes(oe.lob)&&C.has(oe.lob)):U),onRequestBind:()=>se(oe)})},oe.quote_rate_id))})]},re.lob??"all"))]})}),t&&v.jsx(V3,{onBack:t})]})}function gz({stageKey:e,title:t,questions:n,values:i,onChangeValues:o,review:s,quoteId:c,fetchVehicleOptions:d}){const m=b.useMemo(()=>new Set(Object.keys(s.errorsByKey)),[s.errorsByKey]);return v.jsxs("section",{id:`review-section-${e}`,"data-testid":`review-section-${e}`,className:`review-section rounded-lg border p-4 ${s.hasIssues?"border-amber-300 bg-amber-50/40":"border-slate-200"}`,children:[v.jsxs("div",{className:"flex items-center justify-between gap-3 mb-3",children:[v.jsx("h3",{className:"text-base font-semibold text-text-primary",children:t}),s.hasIssues?v.jsxs("span",{"data-testid":`review-section-${e}-badge`,className:"shrink-0 rounded-full bg-amber-100 border border-amber-300 text-amber-800 text-xs font-semibold px-2.5 py-1",children:[s.issues.length," ",s.issues.length===1?"field needs":"fields need"," attention"]}):v.jsx("svg",{"data-testid":`review-section-${e}-ok`,className:"h-5 w-5 shrink-0 text-emerald-600",viewBox:"0 0 20 20",fill:"currentColor",role:"img","aria-label":"Section complete",children:v.jsx("path",{fillRule:"evenodd",d:"M16.704 5.29a1 1 0 010 1.415l-7.5 7.5a1 1 0 01-1.415 0l-3.5-3.5a1 1 0 011.415-1.415l2.792 2.793 6.793-6.793a1 1 0 011.415 0z",clipRule:"evenodd"})})]}),s.hasIssues&&v.jsx("ul",{className:"mb-3 list-disc list-inside space-y-0.5 text-sm text-amber-800","data-testid":`review-section-${e}-issues`,children:s.issues.map(h=>v.jsxs("li",{children:[h.label,": ",h.message]},h.key))}),v.jsx(L5,{questions:n,controlledValues:i,onChangeValues:o,onSubmit:()=>{},quoteId:c,widgetStageKey:e,invalidValueKeys:m,fetchVehicleOptions:d})]})}const G3=new Set(["make","model","body_style","occupation","co_applicant_occupation","quote_vehicle_id"]),Z3={vehicles:"Vehicle",drivers:"Driver",driver_accidents:"Accident",driver_violations:"Violation",losses:"Loss",home_losses:"Loss"};function Y3(e){const t=e.options;return Array.isArray(t)?t.map(n=>n&&typeof n=="object"&&"value"in n?String(n.value):String(n)):[]}const bz=new Set(["SMSVerification","CanopyConnect","Phone"]);function vz({stageKey:e,questions:t,values:n}){const i=lf(t,n,e),o=js(i,n),s=new Map(i.map((h,y)=>[Ya(h,y),h])),c={},d=[];for(const[h,y]of Object.entries(o))!y||!s.has(h)||(c[h]=y,d.push({key:h,label:s.get(h)?.question??h,message:y}));i.forEach((h,y)=>{const g=Ya(h,y);if(c[g]||h.inputType!=="select"&&h.inputType!=="radio"||G3.has(String(h.key??"")))return;const E=Y3(h);if(E.length===0)return;const S=n[g];Cr(S,h.inputType)||E.includes(String(S))||(c[g]="Not a valid option",d.push({key:g,label:h.question??g,message:"Choose a valid option from the list"}))}),_0(t,n,e,(h,y,g)=>{h.forEach(E=>{if(E.inputType!=="select"&&E.inputType!=="radio")return;const S=String(E.key??"");if(!S||G3.has(S))return;const $=Y3(E);if($.length===0)return;const x=y[S];if(!Cr(x,E.inputType)&&!$.includes(String(x))){const w=Z3[g.groupKey]??g.groupKey,R=`${g.groupKey}__items.${g.index}.${S}`;c[R]="Not a valid option",d.push({key:R,label:`${w} ${g.index+1} — ${E.question??S}`,message:"Choose a valid option from the list"})}})});for(const h of az(t,n,e)){const y=Z3[h.groupKey]??h.groupKey;if(h.index<0){d.push({key:`${h.groupKey}__missing`,label:y,message:"Add at least one entry"});continue}const g=`${h.groupKey}__items.${h.index}.${h.fieldKey}`;if(c[g])continue;c[g]=h.message;const E=h.fieldLabel?`${y} ${h.index+1} — ${h.fieldLabel}`:`${y} ${h.index+1}`;d.push({key:g,label:E,message:h.message})}if(i.some(h=>String(h.key??"")==="vehicle_policy_selections")&&G5(n)&&d.push({key:"__vehicle_policy",label:"Vehicle coverage selections",message:"Coverage selections are incomplete"}),Dz(n,i)&&d.push({key:"__dva",label:"Driver usage",message:"Driver usage percentages must total 100% (50/50 is not allowed)"}),i.some(h=>h.inputType==="address"&&String(h.key??"")==="address")){const h=$z(n);h&&d.push(h)}return{stageKey:e,errorsByKey:c,issues:d,hasIssues:d.length>0}}async function _z(e,t){const n=e.vehicles__items??[];if(!Array.isArray(n)||n.length===0)return[];const i=[];for(const[o,s]of n.entries()){if(typeof s!="object"||s===null)continue;const c=Number(s.year),d=typeof s.make=="string"?s.make.trim():"",m=typeof s.model=="string"?s.model.trim():"",h=typeof s.body_style=="string"?s.body_style.trim():"";if(!(!Number.isFinite(c)||!c||!d))try{const{makes:y}=await t({year:c});if(Array.isArray(y)&&y.length>0&&!y.includes(d)){i.push({key:`vehicles__items.${o}.make`,label:`Vehicle ${o+1} — Make`,message:`"${d}" isn't available for ${c} — choose the make from the list`});continue}if(!m)continue;const{models:g}=await t({year:c,make:d});if(Array.isArray(g)&&g.length>0&&!g.includes(m)){i.push({key:`vehicles__items.${o}.model`,label:`Vehicle ${o+1} — Model`,message:`"${m}" isn't a listed model for the ${c} ${d} — choose the model from the list`});continue}if(!h)continue;const{bodyStyles:E}=await t({year:c,make:d,model:m});Array.isArray(E)&&E.length>0&&!E.includes(h)&&i.push({key:`vehicles__items.${o}.body_style`,label:`Vehicle ${o+1} — Body style`,message:"Choose the body style from the list"})}catch{}}return i}const Ez=/^[A-Z]{2}$/,Sz=/^\d{5}(-\d{4})?$/;function $z(e){if(!(typeof e.address=="string"?e.address.trim():""))return null;const n=typeof e.state=="string"?e.state.trim().toUpperCase():"",i=e.postal_code==null?"":String(e.postal_code).trim();return Ez.test(n)&&Sz.test(i)?null:{key:"__address",label:"Property address",message:"Select your address from the dropdown suggestions so we can verify the state and ZIP code"}}function Dz(e,t){if(!t.some(s=>String(s.key??"")==="driver_vehicle_assignments"||String(s.key??"")==="vehicle_policy_selections"))return!1;const n=e.driver_vehicle_assignments,i=e.drivers__items??[];if(!n||i.length<2)return!1;const o=e.vehicles__items??[];for(let s=0;s<o.length;s++){const c=n[`v${s}`];if(!c)continue;const d=i.map((y,g)=>c[`d${g}`]??0),m=d.filter(y=>y>0);if(m.length>=2&&m.every(y=>y===50))return!0;const h=d.reduce((y,g)=>y+g,0);if(h>0&&h!==100)return!0}return!1}function xi(e){const t={},n=h=>{if(typeof h=="string"){if(h==="Yes")return!0;if(h==="No")return!1}return h},i=Object.keys(e).filter(h=>!h.includes("__items")),o=new Set,s=new Set;for(const[h,y]of Object.entries(e))if(h.endsWith("__items")&&Array.isArray(y)){const g=h.replace("__items","");s.add(g),i.includes(g)&&y.forEach(E=>{typeof E=="object"&&E!==null&&Object.keys(E).forEach(S=>{o.add(S)})})}for(const[h,y]of Object.entries(e))if(h.endsWith("__items")){const g=h.replace("__items","");if(i.includes(g)){const S=Array.isArray(y)?y.map($=>xi($)):y;t[g]=S}}else if(!h.includes("__items")){if(s.has(h))continue;o.has(h)||(t[h]=n(y))}const c=t.auto_prior_carrier_name;if(typeof c=="string"&&c.trim()!==""){const h=c==="NoPriorInsurance";t.auto_has_prior_insurance=!h,h&&(delete t.auto_prior_years,delete t.auto_prior_months,delete t.auto_prior_expiration_date,delete t.auto_prior_liability_limit,delete t.auto_continuous_coverage_years,delete t.auto_cancelled_declined_refused_to_renew,delete t.auto_current_annual_premium_cents)}const d=t.home_prior_carrier_name;if(typeof d=="string"&&d.trim()!==""){const h=d==="NoPriorInsurance";t.home_has_prior_insurance=!h,h&&(delete t.home_prior_years,delete t.home_continuous_coverage_years,delete t.home_prior_expiration_date,delete t.property_insurance_cancelled)}Array.isArray(t.drivers)&&(t.drivers=t.drivers.map(h=>{if(!h||typeof h!="object")return h;const y={...h};return y.industry=xd(y.industry),y.education_level=D5(y.education_level),y.occupation=x5(y.occupation),y}));const m=21474836;if("sale_price_cents"in t){const h=t.sale_price_cents;if(typeof h=="number"&&Number.isFinite(h)){const y=Math.trunc(h);if(y>=1){const g=Math.min(y,m);t.sale_price_cents=g*100}}}return Array.isArray(t.home_losses)&&(t.home_losses=t.home_losses.map(h=>{if(!h||typeof h!="object")return h;const y=h,g=y.amount_paid_cents;if(typeof g!="number"||!Number.isFinite(g))return y;const E=Math.trunc(g),S=Math.min(Math.max(E,0),m);return{...y,amount_paid_cents:S*100}})),t}const xz={AL:"Alabama",AK:"Alaska",AZ:"Arizona",AR:"Arkansas",CA:"California",CO:"Colorado",CT:"Connecticut",DE:"Delaware",DC:"District of Columbia",FL:"Florida",GA:"Georgia",HI:"Hawaii",ID:"Idaho",IL:"Illinois",IN:"Indiana",IA:"Iowa",KS:"Kansas",KY:"Kentucky",LA:"Louisiana",ME:"Maine",MD:"Maryland",MA:"Massachusetts",MI:"Michigan",MN:"Minnesota",MS:"Mississippi",MO:"Missouri",MT:"Montana",NE:"Nebraska",NV:"Nevada",NH:"New Hampshire",NJ:"New Jersey",NM:"New Mexico",NY:"New York",NC:"North Carolina",ND:"North Dakota",OH:"Ohio",OK:"Oklahoma",OR:"Oregon",PA:"Pennsylvania",RI:"Rhode Island",SC:"South Carolina",SD:"South Dakota",TN:"Tennessee",TX:"Texas",UT:"Utah",VT:"Vermont",VA:"Virginia",WA:"Washington",WV:"West Virginia",WI:"Wisconsin",WY:"Wyoming",PR:"Puerto Rico"};function W5(e){const t=e?.trim().toUpperCase();if(!t)return"your state";const n=xz[t];return n?`${n} (${t})`:"your state"}const Cz=1500,Az=800;function wz(e){const t=e.vehicles__items??[];return Array.isArray(t)?t.map(n=>[n?.year,n?.make,n?.model,n?.body_style].map(i=>String(i??"")).join("|")).join(";"):""}function Tz({stages:e,initialValues:t,quoteId:n,isSubmitting:i,onConfirmed:o}){const s=b.useMemo(()=>e.filter(te=>!bz.has(String(te.key))),[e]),[c,d]=b.useState(t),[m,h]=b.useState({}),[y,g]=b.useState(null),[E,S]=b.useState(!0),[$,x]=b.useState(0),[w,R]=b.useState(!1),[F,A]=b.useState(null),[L,M]=b.useState(!1);b.useEffect(()=>{let te=!1;return S(!0),g(null),Promise.all(s.map(async z=>{const T=await z.loadQuestions();return[String(z.key),[...T]]})).then(z=>{te||h(Object.fromEntries(z))}).catch(z=>{te||g(z instanceof Error?z.message:"Failed to load your review")}).finally(()=>{te||S(!1)}),()=>{te=!0}},[s,$]);const Z=b.useRef(null),V=b.useRef(!0);b.useEffect(()=>{if(V.current){V.current=!1;return}return Z.current&&window.clearTimeout(Z.current),Z.current=window.setTimeout(()=>{La(xi(c),!1).catch(te=>{console.warn("Review autosave failed (will retry on next edit / submit)",te)})},Cz),()=>{Z.current&&window.clearTimeout(Z.current)}},[c]);const fe=b.useCallback(te=>{d(z=>({...z,...te}))},[]),ne=b.useMemo(()=>{for(const[te,z]of Object.entries(m))if(z.some(T=>String(T.key??"")==="vehicles"))return te;return null},[m]),[pe,J]=b.useState([]),[ye,Ae]=b.useState(!1),j=b.useRef(0),de=wz(c),O=b.useRef(new Map),B=b.useRef(Promise.resolve()),X=b.useCallback(te=>{const z=`${te.year??""}|${te.make??""}|${te.model??""}`,T=O.current,N=T.get(z);if(N)return N;const ie=B.current.catch(()=>{}).then(()=>B5({quoteId:n,...te}));B.current=ie.catch(()=>{});const ge=ie.catch(Se=>{throw T.delete(z),Se});return T.set(z,ge),ge},[n]);b.useEffect(()=>{if(!ne||!de){J([]),Ae(!1);return}const te=++j.current;Ae(!0);const z=window.setTimeout(()=>{_z(c,X).then(T=>{j.current===te&&J(T)}).finally(()=>{j.current===te&&Ae(!1)})},Az);return()=>window.clearTimeout(z)},[ne,de,n,X]);const I=b.useMemo(()=>{const te={};for(const z of s){const T=String(z.key),N=m[T];N&&(te[T]=vz({stageKey:T,questions:N,values:c}))}if(ne&&te[ne]&&pe.length>0){const z=te[ne];te[ne]={...z,errorsByKey:{...z.errorsByKey,...Object.fromEntries(pe.map(T=>[T.key,T.message]))},issues:[...z.issues,...pe],hasIssues:!0}}return te},[s,m,c,ne,pe]),G=b.useMemo(()=>Object.values(I).reduce((te,z)=>te+z.issues.length,0),[I]),C=i||L,U=!E&&!y&&G===0&&w&&!C&&!ye,W=b.useCallback(()=>{const te=s.find(z=>I[String(z.key)]?.hasIssues);te&&document.getElementById(`review-section-${String(te.key)}`)?.scrollIntoView({behavior:"smooth",block:"start"})},[s,I]),Y=b.useCallback(async()=>{if(U){A(null),M(!0);try{const te=typeof c.state=="string"?c.state:"";if(te){const{isSupported:z}=await k5(te);if(!z){A(`Sorry, Credify Corporation doesn't currently offer insurance in ${W5(te)}. We're expanding our coverage and hope to serve your state soon.`);return}}await o(c)}catch{A("Oops, something went wrong. Please try again later.")}finally{M(!1)}}},[U,c,o]);return E?v.jsx("div",{className:"flex items-center justify-center py-12","data-testid":"review-loading",children:v.jsx("div",{className:"text-slate-600",children:"Loading your details..."})}):y?v.jsxs("div",{className:"text-red-600 text-sm","data-testid":"review-load-error",children:[v.jsx("div",{children:y}),v.jsx("button",{type:"button",className:"credify-retry-btn underline mt-1 font-bold",onClick:()=>x(te=>te+1),children:"Retry"})]}):v.jsxs("div",{className:"space-y-6","data-testid":"review-screen",children:[v.jsxs("div",{className:"text-center",children:[v.jsx("h3",{className:"text-lg font-semibold text-text-primary",children:"Review your information"}),v.jsx("p",{className:"text-sm text-slate-600 mt-1",children:"Here's what we collected during your conversation. Please review each section, fix anything we got wrong, and fill in anything missing — then confirm below to see your quotes."})]}),G>0&&v.jsxs("div",{className:"sticky top-0 z-10 flex items-center justify-between gap-3 rounded-md border border-amber-300 bg-amber-50 px-4 py-2.5 text-sm text-amber-800",role:"status","data-testid":"review-issue-summary",children:[v.jsxs("span",{children:[G," ",G===1?"field needs":"fields need"," your attention before you can continue."]}),v.jsx("button",{type:"button",onClick:W,className:"shrink-0 font-bold underline text-amber-800 hover:text-amber-900",children:"Show me"})]}),s.map(te=>{const z=String(te.key),T=m[z],N=I[z];return!T||!N?null:v.jsx(gz,{stageKey:z,title:te.title,questions:T,values:c,onChangeValues:fe,review:N,quoteId:n,fetchVehicleOptions:X},z)}),v.jsxs("div",{className:"rounded-lg border border-slate-200 p-4 space-y-4","data-testid":"review-consent-block",children:[v.jsx(ji,{id:"review-terms-checkbox","data-testid":"review-terms-checkbox",checked:w,onChange:te=>R(te.target.checked),disabled:i,label:"I have reviewed my information and confirm it is accurate, and I agree to the Terms of Service and Privacy Policy."}),v.jsxs("p",{className:"text-sm text-slate-600",children:["Credify Corporation – Texas #3309669."," ",v.jsx("a",{href:"https://getcredify.com/privacy-policy",target:"_blank",rel:"noopener noreferrer",className:"credify-link-underline",children:"Privacy Policy"})," ","|"," ",v.jsx("a",{href:"https://getcredify.com/terms-of-service",target:"_blank",rel:"noopener noreferrer",className:"credify-link-underline",children:"Terms of Service"})]})]}),F&&v.jsx("div",{className:"text-red-600 text-sm",role:"alert","data-testid":"review-submit-error",children:F}),v.jsxs("button",{type:"button","data-testid":"review-submit","data-widget-ctrl":"review-submit",onClick:Y,disabled:!U,className:["form-wizard-next-btn w-full","h-12 rounded-full text-white font-bold transition","cursor-pointer disabled:opacity-50 disabled:cursor-not-allowed","flex items-center justify-center gap-2",U?"bg-blue-600 hover:bg-blue-600/90 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-blue-600/40 bg-primary hover:bg-primary/90 focus-visible:ring-primary/40":"bg-gray-300"].join(" "),children:[C&&v.jsxs("svg",{className:"animate-spin h-5 w-5 text-white",xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",children:[v.jsx("circle",{className:"opacity-25",cx:"12",cy:"12",r:"10",stroke:"currentColor",strokeWidth:"4"}),v.jsx("path",{className:"opacity-75",fill:"currentColor",d:"M4 12a8 8 0 018-8V0C5.373 0 0 5.373 0 12h4zm2 5.291A7.962 7.962 0 014 12H0c0 3.042 1.135 5.824 3 7.938l3-2.647z"})]}),"Confirm & See My Quotes"]})]})}const mh=["Validating your details...","Checking underwriting rules...","Applying eligible discounts...","Reviewing your risk profile...","Calculating premium...","Check complete"],q3={Auto:{label:"Auto Policy",icon:"🚗",accent:"#0369A1"},Home:{label:"Home Policy",icon:"🏠",accent:"#059669"},Bundle:{label:"Home + Auto Bundle",icon:"🔗",accent:"#7C3AED"}},K3={Auto:6e4,Home:9e4,Bundle:12e4};function Nz({progress:e,color:t,size:n=80}){const i=(n-10)/2,o=2*Math.PI*i,s=o-e/100*o;return v.jsxs("svg",{width:n,height:n,style:{transform:"rotate(-90deg)"},"aria-hidden":"true",children:[v.jsx("circle",{cx:n/2,cy:n/2,r:i,fill:"none",stroke:"#F1F5F9",strokeWidth:6}),v.jsx("circle",{cx:n/2,cy:n/2,r:i,fill:"none",stroke:t,strokeWidth:6,strokeLinecap:"round",strokeDasharray:o,strokeDashoffset:s,style:{transition:"stroke-dashoffset 0.2s linear"}})]})}function Mz({providers:e=[],totalTime:t=6e4,flow:n="Auto",isComplete:i=!1,onComplete:o}){const s=q3[n]??q3.Auto,c=K3[n]??K3.Auto,d=e.length>0?Math.floor(c/e.length):t,[m,h]=b.useState(0),[y,g]=b.useState(0),[E,S]=b.useState(0),[$,x]=b.useState(0),[w,R]=b.useState(!0),F=b.useRef(i),A=b.useRef(o),L=b.useRef(m),M=b.useRef(e.length),Z=b.useRef(!1),V=b.useRef(!1);b.useEffect(()=>{F.current=i,i&&e.length===0&&!Z.current&&(Z.current=!0,A.current?.())},[i,e.length]),b.useEffect(()=>{A.current=o},[o]),b.useEffect(()=>{L.current=m},[m]),b.useEffect(()=>{M.current=e.length,e.length>0&&(V.current=!1,h(0),g(0),S(0),x(0),R(!0))},[e.length]),b.useEffect(()=>{if(e.length===0){F.current&&!Z.current&&(Z.current=!0,A.current?.());return}V.current=!1;const J=100,ye=100/(d/J),Ae=setInterval(()=>{S(j=>{if(V.current||Z.current)return j;const de=j+ye;return de<100?de:(V.current=!0,setTimeout(()=>{if(F.current){if(Z.current)return;Z.current=!0,A.current?.();return}const B=L.current===M.current-1;R(!1),setTimeout(()=>{B?(h(0),g(X=>X+1)):h(X=>X+1),S(0),x(0),R(!0)},300)},400),100)})},J);return()=>clearInterval(Ae)},[m,d,e.length]),b.useEffect(()=>{if(e.length===0)return;const J=Math.floor(d/mh.length),ye=setInterval(()=>x(Ae=>Math.min(Ae+1,mh.length-1)),J);return()=>clearInterval(ye)},[m,d,e.length]);const fe=e.length===0,ne=fe?null:e[Math.min(m,e.length-1)],pe=y>0;return v.jsxs(v.Fragment,{children:[v.jsx("style",{children:`
|
|
122
|
-
@keyframes providerPulse {
|
|
123
|
-
0%, 100% { transform: scale(1); }
|
|
124
|
-
50% { transform: scale(1.05); }
|
|
125
|
-
}
|
|
126
|
-
@keyframes ringPulse {
|
|
127
|
-
0%, 100% { transform: scale(1); opacity: 0.5; }
|
|
128
|
-
50% { transform: scale(1.6); opacity: 0; }
|
|
129
|
-
}
|
|
130
|
-
@keyframes shimmerSlide {
|
|
131
|
-
0% { transform: translateX(0%); }
|
|
132
|
-
100% { transform: translateX(195%); }
|
|
133
|
-
}
|
|
134
|
-
@keyframes statusFadeIn {
|
|
135
|
-
from { opacity: 0; transform: translateX(8px); }
|
|
136
|
-
to { opacity: 1; transform: translateX(0); }
|
|
137
|
-
}
|
|
138
|
-
@keyframes skeletonPulse {
|
|
139
|
-
0%, 100% { opacity: 0.4; transform: scale(1); }
|
|
140
|
-
50% { opacity: 0.8; transform: scale(1.06); }
|
|
141
|
-
}
|
|
142
|
-
.iq-card-fade {
|
|
143
|
-
transition: opacity 0.3s ease, transform 0.3s ease;
|
|
144
|
-
}
|
|
145
|
-
.iq-card-hidden {
|
|
146
|
-
opacity: 0;
|
|
147
|
-
transform: translateY(-12px);
|
|
148
|
-
}
|
|
149
|
-
.iq-card-visible {
|
|
150
|
-
opacity: 1;
|
|
151
|
-
transform: translateY(0);
|
|
152
|
-
}
|
|
153
|
-
.iq-status-text {
|
|
154
|
-
animation: statusFadeIn 0.25s ease forwards;
|
|
155
|
-
}
|
|
156
|
-
@media (prefers-reduced-motion: reduce) {
|
|
157
|
-
* {
|
|
158
|
-
animation-duration: 0.001ms !important;
|
|
159
|
-
animation-iteration-count: 1 !important;
|
|
160
|
-
transition-duration: 0.001ms !important;
|
|
161
|
-
}
|
|
162
|
-
}
|
|
163
|
-
`}),v.jsx("div",{style:{background:"#F8FAFC",display:"flex",alignItems:"center",justifyContent:"center",padding:"2rem",fontFamily:"'DM Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif",height:"100%",minHeight:400,overflowY:"auto"},children:v.jsxs("div",{style:{width:"100%",maxWidth:560},children:[v.jsxs("div",{style:{textAlign:"center",marginBottom:40},children:[v.jsxs("div",{style:{display:"inline-flex",alignItems:"center",gap:8,background:s.accent+"12",border:`1px solid ${s.accent}30`,borderRadius:100,padding:"6px 16px",marginBottom:16},children:[v.jsx("span",{style:{fontSize:14},"aria-hidden":"true",children:s.icon}),v.jsx("span",{style:{fontSize:12,fontWeight:700,color:s.accent,letterSpacing:"0.1em",textTransform:"uppercase"},children:s.label})]}),v.jsx("h1",{style:{fontSize:26,fontWeight:700,color:"#0F172A",margin:0,letterSpacing:"-0.02em",lineHeight:1.3},children:fe?"Connecting to top carriers":"Fetching your best rates"}),v.jsx("p",{style:{fontSize:14,color:"#64748B",marginTop:8,marginBottom:0},children:fe?"Identifying the carriers eligible for your quote...":pe?"Still gathering — a few carriers are taking a little longer...":"We're reaching out to multiple insurers on your behalf"})]}),v.jsx("div",{style:{display:"flex",justifyContent:"center",marginBottom:32},children:fe?v.jsx("div",{style:{display:"flex",gap:20},children:[0,1,2,3,4].map(J=>v.jsxs("div",{style:{display:"flex",flexDirection:"column",alignItems:"center",gap:6},children:[v.jsx("div",{style:{width:48,height:48,borderRadius:14,background:"#E2E8F0",animation:"skeletonPulse 1.4s ease-in-out infinite",animationDelay:`${J*.12}s`}}),v.jsx("div",{style:{width:40,height:8,borderRadius:4,background:"#E2E8F0",animation:"skeletonPulse 1.4s ease-in-out infinite",animationDelay:`${J*.12}s`}})]},`skeleton-${J}`))}):ne?v.jsxs("div",{style:{display:"flex",flexDirection:"column",alignItems:"center",gap:8},children:[v.jsxs("div",{style:{width:64,height:64,borderRadius:18,background:ne.color+"18",border:`2px solid ${ne.color}`,display:"flex",alignItems:"center",justifyContent:"center",fontWeight:700,fontSize:16,color:ne.color,position:"relative",animation:"providerPulse 1.8s ease-in-out infinite"},children:[ne.abbr,v.jsx("div",{style:{position:"absolute",inset:-5,borderRadius:22,border:`2px solid ${ne.color}`,pointerEvents:"none",animation:"ringPulse 1.6s ease-in-out infinite"},"aria-hidden":"true"})]}),v.jsx("span",{style:{fontSize:13,fontWeight:600,color:ne.color,letterSpacing:"0.04em"},children:ne.name})]}):null}),v.jsxs("div",{className:`iq-card-fade ${w?"iq-card-visible":"iq-card-hidden"}`,style:{background:"#FFFFFF",borderRadius:24,border:"1px solid #E2E8F0",padding:32},children:[v.jsx("div",{style:{display:"flex",alignItems:"center",gap:20,marginBottom:28},children:fe||!ne?v.jsxs("div",{style:{flex:1,textAlign:"center",padding:"8px 0"},children:[v.jsx("p",{style:{fontSize:11,fontWeight:700,color:"#94A3B8",letterSpacing:"0.1em",textTransform:"uppercase",margin:"0 0 6px"},children:"Please wait"}),v.jsx("h2",{style:{fontSize:18,fontWeight:700,color:"#0F172A",margin:"0 0 6px",letterSpacing:"-0.02em"},children:"Checking eligible providers"}),v.jsx("p",{style:{fontSize:13,color:"#64748B",margin:0},children:"Reviewing your details against our carrier network"})]}):v.jsxs(v.Fragment,{children:[v.jsxs("div",{style:{position:"relative",flexShrink:0},children:[v.jsx(Nz,{progress:E,color:ne.color,size:80}),v.jsx("div",{style:{position:"absolute",inset:0,display:"flex",alignItems:"center",justifyContent:"center"},children:v.jsxs("span",{style:{fontSize:14,fontWeight:700,color:ne.color},"aria-hidden":"true",children:[Math.round(E),"%"]})})]}),v.jsxs("div",{style:{flex:1},children:[v.jsx("p",{style:{fontSize:11,fontWeight:700,color:"#94A3B8",letterSpacing:"0.1em",textTransform:"uppercase",margin:"0 0 4px"},children:pe?"Still checking":"Now checking"}),v.jsx("h2",{style:{fontSize:20,fontWeight:700,color:"#0F172A",margin:"0 0 6px",letterSpacing:"-0.02em"},children:ne.name}),v.jsx("p",{className:"iq-status-text",style:{fontSize:13,color:"#64748B",margin:0},role:"status","aria-live":"polite",children:mh[$]},`${m}-${$}`)]})]})}),v.jsxs("div",{children:[v.jsx("p",{style:{fontSize:11,fontWeight:700,color:"#94A3B8",letterSpacing:"0.08em",textTransform:"uppercase",margin:"0 0 8px"},children:fe?"Initializing":"Gathering quotes"}),v.jsx("div",{style:{height:6,background:"#F1F5F9",borderRadius:100,overflow:"hidden"},children:v.jsx("div",{style:{height:"100%",width:"35%",background:s.accent,borderRadius:100,animation:"shimmerSlide 1.4s ease-in-out infinite"},"aria-hidden":"true"})})]})]})]})})]})}function Q5({onGoBack:e}){return v.jsxs("section",{className:"mt-4",role:"alert","aria-labelledby":"submission-error-title",children:[v.jsxs("div",{className:"rounded-xl border border-red-200 bg-red-50 p-5",children:[v.jsx("h3",{id:"submission-error-title",className:"text-base font-semibold text-red-700",children:"Sorry, quote submission failed"}),v.jsx("p",{className:"mt-2 text-sm text-red-700",children:"We ran into an issue submitting your quote. Our team will investigate and get back to you soon."})]}),v.jsx("div",{className:"mt-5",children:v.jsx("button",{type:"button",onClick:e,className:"h-12 w-full rounded-full border border-gray-300 text-text-primary hover:bg-gray-50 transition",children:"Go back"})})]})}var ph={blandWidgetId:"",cobrowseLicense:""};function Rz(){try{return typeof ph<"u"&&ph?ph:{}}catch{return{}}}function Oz(e){const t=Rz(),n=t.blandWidgetId,i=t.cobrowseLicense;return{enabled:!!(n||i),blandWidgetId:n||void 0,cobrowseLicense:i||void 0,proactiveOnError:!0}}const hh=new Map;function J5(e){if(typeof document>"u")return Promise.reject(new Error("loadScript called without a document"));const t=hh.get(e);if(t)return t;if(document.querySelector(`script[src="${e}"]`))return Promise.resolve();const n=new Promise((i,o)=>{const s=document.createElement("script");s.src=e,s.async=!0,s.onload=()=>i(),s.onerror=()=>{hh.delete(e),o(new Error(`Failed to load script: ${e}`))},document.head.appendChild(s)});return hh.set(e,n),n}const X5="https://widget.bland.ai/loader.js",Ny="bland-widget-host",kz="#bland-widget-root > button",Bz=20,Lz=100;let zs=!1;function Pz(){return typeof document>"u"?!1:!!window.blandSettings||!!document.querySelector(`script[src="${X5}"]`)||!!document.getElementById(Ny)}function Fz(){return document.getElementById(Ny)?.shadowRoot?.querySelector(kz)??null}function Iz(e,t){if(typeof window>"u"||Pz())return;const n=af();window.blandSettings={widget_id:e,request_data:{source:"credify-insurance-widget",entry_path:window.location.pathname,...n?{quote_id:n}:{},...t}},zs=!0,J5(X5).catch(i=>{zs=!1,ul(i,{tags:{source:"widget-bland-loader"}})})}async function eC(e,t){if(typeof window>"u")return!1;Iz(e,t);for(let n=0;n<Bz;n+=1){const i=Fz();if(i){for(const o of["mousedown","mouseup","click"])i.dispatchEvent(new MouseEvent(o,{bubbles:!0,composed:!0}));return!0}await new Promise(o=>window.setTimeout(o,Lz))}return ul(new Error("Bland launcher did not mount"),{tags:{source:"widget-bland-open",owned:String(zs)}}),!1}function jz(){typeof document>"u"||(zs&&(document.getElementById(Ny)?.remove(),delete window.blandSettings),zs=!1)}const zz="https://js.cobrowse.io/CobrowseIO.js";let E0=!1;async function Uz(e){await J5(zz);const t=window.CobrowseIO;if(!t)return null;if(!E0){t.license=e,t.redactedViews=["input","select","textarea","[data-credify-redact]"],t.customData={quote_id:af()??void 0,device_name:"Credify Insurance Widget"},t.confirmSession=()=>Promise.resolve(typeof window<"u"?window.confirm("Allow a Credify support agent to view your screen?"):!1);try{await t.client?.()}catch{}t.start?.(),E0=!0}return t}async function Hz(e){if(typeof window>"u")return null;try{const t=await Uz(e);return t?.createSessionCode?await t.createSessionCode():null}catch{return null}}function Vz(){try{window.CobrowseIO?.stop?.()}catch{}E0=!1}let sr=null,td=null,S0=!1;function Gz(e){Kz();const t=Oz();if(sr=t,!!t.enabled&&t.proactiveOnError&&t.blandWidgetId){const n=i=>{S0||(S0=!0,eC(t.blandWidgetId,{last_quote_error:i?.reason??"unknown"}))};j5("submissionFailed",n),td=n}}function tC(){return!sr?.enabled||!sr.blandWidgetId?Promise.resolve(!1):eC(sr.blandWidgetId)}function Zz(){return!sr?.enabled||!sr.cobrowseLicense?Promise.resolve(null):Hz(sr.cobrowseLicense)}function Yz(){return!!(sr?.enabled&&sr.blandWidgetId)}function qz(){return!!(sr?.enabled&&sr.cobrowseLicense)}function Kz(){td&&(z5("submissionFailed",td),td=null),jz(),Vz(),S0=!1,sr=null}const Wz="Chat with Sarah, our 24/7 agent — she'll help you finish your quote right here.",Qz="Share your screen with a support agent so they can see what you see and guide you in real time. We'll generate a secure code — share it with your agent to begin. Your personal information stays hidden.",W3="inline-flex h-9 w-9 items-center justify-center rounded-full text-slate-500 hover:bg-slate-100 hover:text-text-primary focus:outline-none focus-visible:ring-2 focus-visible:ring-slate-400 disabled:opacity-60",Q3="pointer-events-none absolute bottom-full left-1/2 z-10 mb-2 w-60 -translate-x-1/2 rounded-lg bg-slate-800 px-3 py-2 text-center text-xs leading-snug text-white shadow-lg transition-opacity duration-150";function Jz(){const e=Yz(),t=qz(),[n,i]=b.useState(null),[o,s]=b.useState(!1),[c,d]=b.useState(!1),[m,h]=b.useState(!1),[y,g]=b.useState(!1),[E,S]=b.useState(null),$=b.useCallback(async()=>{h(!0),g(!1);try{g(!await tC())}finally{h(!1)}},[]),x=b.useCallback(async()=>{s(!0),d(!1);try{const w=await Zz();w?i(w):d(!0)}finally{s(!1)}},[]);return!e&&!t?null:v.jsxs("div",{className:"flex flex-col items-center gap-1.5 text-sm text-slate-500",children:[v.jsx("span",{className:"font-medium",children:"Need help?"}),v.jsxs("div",{className:"inline-flex items-center gap-1",children:[e&&v.jsxs("span",{className:"relative inline-flex",onMouseEnter:()=>S("chat"),onMouseLeave:()=>S(null),children:[v.jsx("button",{type:"button",onClick:$,disabled:m,onFocus:()=>S("chat"),onBlur:()=>S(null),onKeyDown:w=>{w.key==="Escape"&&(w.stopPropagation(),S(null))},"aria-label":"Chat with support","aria-describedby":"credify-chat-tooltip",className:W3,children:m?v.jsx("span",{className:"h-4 w-4 animate-spin rounded-full border-2 border-slate-300 border-t-slate-600","aria-hidden":"true"}):v.jsx("svg",{className:"h-5 w-5",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"1.8","aria-hidden":"true",children:v.jsx("path",{d:"M21 11.5a8.38 8.38 0 0 1-8.5 8.5 9 9 0 0 1-3.8-.8L3 21l1.3-4.2A8.38 8.38 0 0 1 3.5 11.5 8.5 8.5 0 0 1 12 3a8.38 8.38 0 0 1 9 8.5Z",strokeLinejoin:"round"})})}),v.jsx("span",{id:"credify-chat-tooltip",role:"tooltip",className:`${Q3} ${E==="chat"?"opacity-100":"opacity-0"}`,children:Wz})]}),e&&t&&v.jsx("span",{className:"mx-1 h-6 w-px bg-slate-200","aria-hidden":"true"}),t&&v.jsxs("span",{className:"relative inline-flex",onMouseEnter:()=>S("screen"),onMouseLeave:()=>S(null),children:[v.jsx("button",{type:"button",onClick:x,disabled:o,onFocus:()=>S("screen"),onBlur:()=>S(null),onKeyDown:w=>{w.key==="Escape"&&(w.stopPropagation(),S(null))},"aria-label":"Share your screen with an agent","aria-describedby":"credify-cobrowse-tooltip",className:W3,children:o?v.jsx("span",{className:"h-4 w-4 animate-spin rounded-full border-2 border-slate-300 border-t-slate-600","aria-hidden":"true"}):v.jsxs("svg",{className:"h-5 w-5",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"1.8","aria-hidden":"true",children:[v.jsx("rect",{x:"2.5",y:"4",width:"19",height:"13",rx:"2"}),v.jsx("path",{d:"M8 21h8M12 17v4",strokeLinecap:"round"}),v.jsx("path",{d:"M12 13V8m0 0-2 2m2-2 2 2",strokeLinecap:"round",strokeLinejoin:"round"})]})}),v.jsx("span",{id:"credify-cobrowse-tooltip",role:"tooltip",className:`${Q3} ${E==="screen"?"opacity-100":"opacity-0"}`,children:Qz})]})]}),n&&v.jsxs("span",{children:["Read this code to your agent: ",v.jsx("strong",{className:"tracking-widest text-text-primary",children:n})]}),y&&v.jsx("span",{className:"text-red-600",children:"Couldn't open chat. Please call us at (512) 640-2609."}),c&&v.jsx("span",{className:"text-red-600",children:"Couldn't start screen sharing. Please try chat instead."})]})}let J3=null;function Xz(){const e=J3;return J3=null,e}let eU=!1;function tU(){return eU}function He(e){if(e===!0)return"Yes";if(e===!1)return"No"}function Dn(e){if(e)try{const t=typeof e=="string"?new Date(e):e;return isNaN(t.getTime())?void 0:t.toISOString().split("T")[0]}catch{return}}function nU(e){const t=e,n={};t.phone&&(n.phone=t.phone),t.first_name&&(n.first_name=t.first_name),t.last_name&&(n.last_name=t.last_name),t.email&&(n.email=t.email),t.date_of_birth&&(n.date_of_birth=Dn(t.date_of_birth)),t.product&&(n.product=t.product),t.state&&(n.state=t.state),t.postal_code&&(n.postal_code=t.postal_code);const i=[];t.line_1&&i.push(t.line_1),t.line_2&&i.push(t.line_2),t.city&&i.push(t.city),t.state&&i.push(t.state),t.postal_code&&i.push(t.postal_code),i.length>0&&(n.address=i.join(", ")),typeof t.ssn_display=="string"&&(n.ssn_display=t.ssn_display),t.years_at_address!==null&&t.years_at_address!==void 0&&(n.years_at_address=t.years_at_address),t.months_at_address!==null&&t.months_at_address!==void 0&&(n.months_at_address=t.months_at_address),t.move_in_date&&(n.move_in_date=Dn(t.move_in_date));const o=[];t.prior_line_1&&o.push(t.prior_line_1),t.prior_line_2&&o.push(t.prior_line_2),t.prior_city&&o.push(t.prior_city),t.prior_state&&o.push(t.prior_state),t.prior_postal_code&&o.push(t.prior_postal_code),o.length>0&&(n.prior_address=o.join(", ")),t.years_at_prior_address!==null&&t.years_at_prior_address!==void 0&&(n.years_at_prior_address=t.years_at_prior_address),t.is_mailing_address_different!==null&&t.is_mailing_address_different!==void 0&&(n.is_mailing_address_different=He(t.is_mailing_address_different)),t.mailing_address&&(n.mailing_address=t.mailing_address),t.effective_date&&(n.effective_date=Dn(t.effective_date)),t.auto_has_prior_insurance!==null&&t.auto_has_prior_insurance!==void 0&&(n.auto_has_prior_insurance=He(t.auto_has_prior_insurance)),t.auto_prior_expiration_date&&(n.auto_prior_expiration_date=Dn(t.auto_prior_expiration_date)),t.auto_prior_carrier_name&&(n.auto_prior_carrier_name=t.auto_prior_carrier_name),t.auto_prior_liability_limit&&(n.auto_prior_liability_limit=t.auto_prior_liability_limit),t.auto_reason_for_no_insurance&&(n.auto_reason_for_no_insurance=t.auto_reason_for_no_insurance),t.auto_prior_years!==null&&t.auto_prior_years!==void 0&&(n.auto_prior_years=t.auto_prior_years),t.auto_prior_months!==null&&t.auto_prior_months!==void 0&&(n.auto_prior_months=t.auto_prior_months),t.auto_continuous_coverage_years!==null&&t.auto_continuous_coverage_years!==void 0&&(n.auto_continuous_coverage_years=t.auto_continuous_coverage_years),t.auto_cancelled_declined_refused_to_renew!==null&&t.auto_cancelled_declined_refused_to_renew!==void 0&&(n.auto_cancelled_declined_refused_to_renew=He(t.auto_cancelled_declined_refused_to_renew)),t.auto_current_annual_premium_cents!==null&&t.auto_current_annual_premium_cents!==void 0&&(n.auto_current_annual_premium_cents=t.auto_current_annual_premium_cents),t.policy_bi&&(n.policy_bi=t.policy_bi),t.policy_um&&(n.policy_um=t.policy_um),t.policy_pd&&(n.policy_pd=t.policy_pd),t.policy_mp&&(n.policy_mp=t.policy_mp),t.policy_umpd&&(n.policy_umpd=t.policy_umpd),t.policy_pip&&(n.policy_pip=t.policy_pip),t.policy_auto_death_indemnity&&(n.policy_auto_death_indemnity=t.policy_auto_death_indemnity),t.driver_vehicle_assignments&&(n.driver_vehicle_assignments=t.driver_vehicle_assignments),t.home_has_prior_insurance!==null&&t.home_has_prior_insurance!==void 0&&(n.home_has_prior_insurance=He(t.home_has_prior_insurance)),t.home_prior_expiration_date&&(n.home_prior_expiration_date=Dn(t.home_prior_expiration_date)),t.home_prior_carrier_name&&(n.home_prior_carrier_name=t.home_prior_carrier_name),t.home_prior_years!==null&&t.home_prior_years!==void 0&&(n.home_prior_years=t.home_prior_years),t.home_continuous_coverage_years!==null&&t.home_continuous_coverage_years!==void 0&&(n.home_continuous_coverage_years=t.home_continuous_coverage_years),t.property_insurance_cancelled!==null&&t.property_insurance_cancelled!==void 0&&(n.property_insurance_cancelled=He(t.property_insurance_cancelled)),t.lapse_in_coverage!==null&&t.lapse_in_coverage!==void 0&&(n.lapse_in_coverage=He(t.lapse_in_coverage)),t.year_built!==null&&t.year_built!==void 0&&(n.year_built=t.year_built),t.number_of_units!==null&&t.number_of_units!==void 0&&(n.number_of_units=t.number_of_units),t.number_of_stories!==null&&t.number_of_stories!==void 0&&(n.number_of_stories=t.number_of_stories),t.number_of_beds!==null&&t.number_of_beds!==void 0&&(n.number_of_beds=t.number_of_beds),t.number_of_full_baths!==null&&t.number_of_full_baths!==void 0&&(n.number_of_full_baths=t.number_of_full_baths),t.number_of_partial_baths!==null&&t.number_of_partial_baths!==void 0&&(n.number_of_partial_baths=t.number_of_partial_baths),t.under_construction!==null&&t.under_construction!==void 0&&(n.under_construction=He(t.under_construction)),t.distance_from_fire_hydrant_ft&&(n.distance_from_fire_hydrant_ft=t.distance_from_fire_hydrant_ft),t.distance_from_fire_station_miles&&(n.distance_from_fire_station_miles=t.distance_from_fire_station_miles),t.architectural_style&&(n.architectural_style=t.architectural_style),t.dwelling_type&&(n.dwelling_type=t.dwelling_type),t.construction_quality&&(n.construction_quality=t.construction_quality),t.located_over_water!==null&&t.located_over_water!==void 0&&(n.located_over_water=t.located_over_water),t.construction_type&&(n.construction_type=t.construction_type),t.exterior_wall_type&&(n.exterior_wall_type=t.exterior_wall_type),t.foundation_type&&(n.foundation_type=t.foundation_type),t.roof_material_type&&(n.roof_material_type=t.roof_material_type),t.roof_shape&&(n.roof_shape=t.roof_shape),t.roof_updated_type&&(n.roof_updated_type=t.roof_updated_type),t.year_roof_updated!==null&&t.year_roof_updated!==void 0&&(n.year_roof_updated=t.year_roof_updated),t.mit_credit_form!==null&&t.mit_credit_form!==void 0&&(n.mit_credit_form=He(t.mit_credit_form)),t.storm_shutters!==null&&t.storm_shutters!==void 0&&(n.storm_shutters=He(t.storm_shutters)),t.heating_type&&(n.heating_type=t.heating_type),t.oil_tank_location&&(n.oil_tank_location=t.oil_tank_location),t.heating_fuel_type&&(n.heating_fuel_type=t.heating_fuel_type),t.number_of_fireplaces!==null&&t.number_of_fireplaces!==void 0&&(n.number_of_fireplaces=t.number_of_fireplaces),t.basement_type&&(n.basement_type=t.basement_type),t.parking_type&&(n.parking_type=t.parking_type),t.garage_type&&(n.garage_type=t.garage_type),t.number_of_parking_spaces!==null&&t.number_of_parking_spaces!==void 0&&(n.number_of_parking_spaces=t.number_of_parking_spaces),t.plumbing_type&&(n.plumbing_type=t.plumbing_type),t.pool_type&&(n.pool_type=t.pool_type),t.total_area_sq_ft!==null&&t.total_area_sq_ft!==void 0&&(n.total_area_sq_ft=t.total_area_sq_ft),t.parcel_area_sq_ft!==null&&t.parcel_area_sq_ft!==void 0&&(n.parcel_area_sq_ft=t.parcel_area_sq_ft),t.residence_type&&(n.residence_type=t.residence_type),t.usage_type&&(n.usage_type=t.usage_type),t.household_size!==null&&t.household_size!==void 0&&(n.household_size=t.household_size),t.number_of_mortgagees!==null&&t.number_of_mortgagees!==void 0&&(n.number_of_mortgagees=t.number_of_mortgagees),t.has_dog!==null&&t.has_dog!==void 0&&(n.has_dog=He(t.has_dog)),t.dog_breed_type&&(n.dog_breed_type=t.dog_breed_type),t.number_of_dogs!==null&&t.number_of_dogs!==void 0&&(n.number_of_dogs=t.number_of_dogs),t.has_vicious_animals!==null&&t.has_vicious_animals!==void 0&&(n.has_vicious_animals=He(t.has_vicious_animals)),t.has_business_on_premises!==null&&t.has_business_on_premises!==void 0&&(n.has_business_on_premises=He(t.has_business_on_premises)),t.business_class&&(n.business_class=t.business_class),t.occupancy_type&&(n.occupancy_type=t.occupancy_type),t.short_term_rental!==null&&t.short_term_rental!==void 0&&(n.short_term_rental=He(t.short_term_rental)),t.sale_price_cents!==null&&t.sale_price_cents!==void 0&&(n.sale_price_cents=Math.round(Number(t.sale_price_cents)/100)),t.number_of_families!==null&&t.number_of_families!==void 0&&(n.number_of_families=t.number_of_families),t.number_of_units_in_firewall!==null&&t.number_of_units_in_firewall!==void 0&&(n.number_of_units_in_firewall=t.number_of_units_in_firewall),t.heating_update_yn!==null&&t.heating_update_yn!==void 0&&(n.heating_update_yn=He(t.heating_update_yn)),t.heating_update_type&&(n.heating_update_type=t.heating_update_type),t.heating_update_year!==null&&t.heating_update_year!==void 0&&(n.heating_update_year=t.heating_update_year),t.plumbing_update_yn!==null&&t.plumbing_update_yn!==void 0&&(n.plumbing_update_yn=He(t.plumbing_update_yn)),t.plumbing_update_type&&(n.plumbing_update_type=t.plumbing_update_type),t.plumbing_update_year!==null&&t.plumbing_update_year!==void 0&&(n.plumbing_update_year=t.plumbing_update_year),t.electrical_update_yn!==null&&t.electrical_update_yn!==void 0&&(n.electrical_update_yn=He(t.electrical_update_yn)),t.electrical_update_type&&(n.electrical_update_type=t.electrical_update_type),t.electrical_update_year!==null&&t.electrical_update_year!==void 0&&(n.electrical_update_year=t.electrical_update_year),t.electric_circuit_breaker!==null&&t.electric_circuit_breaker!==void 0&&(n.electric_circuit_breaker=He(t.electric_circuit_breaker)),t.dwelling_replacement_cost!==null&&t.dwelling_replacement_cost!==void 0&&(n.dwelling_replacement_cost=t.dwelling_replacement_cost),t.other_structures_coverage!==null&&t.other_structures_coverage!==void 0&&(n.other_structures_coverage=t.other_structures_coverage),t.personal_property_coverage!==null&&t.personal_property_coverage!==void 0&&(n.personal_property_coverage=t.personal_property_coverage),t.loss_of_use_coverage!==null&&t.loss_of_use_coverage!==void 0&&(n.loss_of_use_coverage=t.loss_of_use_coverage),t.personal_liability&&(n.personal_liability=t.personal_liability),t.dwelling_medical_payments&&(n.dwelling_medical_payments=t.dwelling_medical_payments),t.all_perils_deductible&&(n.all_perils_deductible=t.all_perils_deductible),t.windstorm_deductible&&(n.windstorm_deductible=t.windstorm_deductible),t.has_garage!==null&&t.has_garage!==void 0&&(n.has_garage=He(t.has_garage)),t.has_pool!==null&&t.has_pool!==void 0&&(n.has_pool=He(t.has_pool)),t.has_trampoline!==null&&t.has_trampoline!==void 0&&(n.has_trampoline=He(t.has_trampoline)),t.gender&&(n.gender=t.gender),t.marital_status&&(n.marital_status=t.marital_status),t.employment_industry&&(n.employment_industry=t.employment_industry),t.occupation&&(n.occupation=t.occupation),t.has_co_applicant!==null&&t.has_co_applicant!==void 0&&(n.has_co_applicant=He(t.has_co_applicant)),t.co_applicant_first_name&&(n.co_applicant_first_name=t.co_applicant_first_name),t.co_applicant_middle_name&&(n.co_applicant_middle_name=t.co_applicant_middle_name),t.co_applicant_last_name&&(n.co_applicant_last_name=t.co_applicant_last_name),t.co_applicant_gender&&(n.co_applicant_gender=t.co_applicant_gender),t.co_applicant_marital_status&&(n.co_applicant_marital_status=t.co_applicant_marital_status),t.co_applicant_relationship&&(n.co_applicant_relationship=t.co_applicant_relationship),t.co_applicant_date_of_birth&&(n.co_applicant_date_of_birth=Dn(t.co_applicant_date_of_birth)),t.co_applicant_employment_industry&&(n.co_applicant_employment_industry=t.co_applicant_employment_industry),t.co_applicant_occupation&&(n.co_applicant_occupation=t.co_applicant_occupation),t.retiree_discount!==null&&t.retiree_discount!==void 0&&(n.retiree_discount=He(t.retiree_discount)),t.gated_community_discount!==null&&t.gated_community_discount!==void 0&&(n.gated_community_discount=He(t.gated_community_discount)),t.multi_policy_discount!==null&&t.multi_policy_discount!==void 0&&(n.multi_policy_discount=He(t.multi_policy_discount)),t.non_smoker_discount!==null&&t.non_smoker_discount!==void 0&&(n.non_smoker_discount=He(t.non_smoker_discount)),t.first_time_buyer_discount!==null&&t.first_time_buyer_discount!==void 0&&(n.first_time_buyer_discount=He(t.first_time_buyer_discount)),t.fire_detection_system!==null&&t.fire_detection_system!==void 0&&(n.fire_detection_system=He(t.fire_detection_system)),t.fire_detection_system_type&&(n.fire_detection_system_type=t.fire_detection_system_type),t.burglar_alarm_system!==null&&t.burglar_alarm_system!==void 0&&(n.burglar_alarm_system=He(t.burglar_alarm_system)),t.burglar_alarm_system_type&&(n.burglar_alarm_system_type=t.burglar_alarm_system_type),t.smoke_detectors!==null&&t.smoke_detectors!==void 0&&(n.smoke_detectors=He(t.smoke_detectors)),t.sprinkler_system!==null&&t.sprinkler_system!==void 0&&(n.sprinkler_system=He(t.sprinkler_system)),t.sprinkler_system_type&&(n.sprinkler_system_type=t.sprinkler_system_type),t.gas_leakage_detector!==null&&t.gas_leakage_detector!==void 0&&(n.gas_leakage_detector=He(t.gas_leakage_detector)),t.deadbolt_locks!==null&&t.deadbolt_locks!==void 0&&(n.deadbolt_locks=He(t.deadbolt_locks)),t.fire_extinguisher!==null&&t.fire_extinguisher!==void 0&&(n.fire_extinguisher=He(t.fire_extinguisher)),t.order_credit_authorized!==null&&t.order_credit_authorized!==void 0&&(n.order_credit_authorized=He(t.order_credit_authorized)),t.has_health_insurance_auto_accident!==null&&t.has_health_insurance_auto_accident!==void 0&&(n.has_health_insurance_auto_accident=He(t.has_health_insurance_auto_accident)),t.is_corporation!==null&&t.is_corporation!==void 0&&(n.is_corporation=He(t.is_corporation)),t.named_insured_foreclosure_repo_bankruptcy!==null&&t.named_insured_foreclosure_repo_bankruptcy!==void 0&&(n.named_insured_foreclosure_repo_bankruptcy=He(t.named_insured_foreclosure_repo_bankruptcy)),t.named_insured_convicted_insurance_fraud!==null&&t.named_insured_convicted_insurance_fraud!==void 0&&(n.named_insured_convicted_insurance_fraud=He(t.named_insured_convicted_insurance_fraud));const s={};if(t.vehicles)for(const c of t.vehicles)c.quote_vehicle_id&&c.vin&&(s[c.quote_vehicle_id]=c.vin);return t.drivers&&t.drivers.length>0?(n.drivers="Yes",n.drivers__items=t.drivers.map(c=>{const d=c,m={};d.first_name&&(m.first_name=d.first_name),d.middle_name&&(m.middle_name=d.middle_name),d.last_name&&(m.last_name=d.last_name),d.date_of_birth&&(m.date_of_birth=Dn(d.date_of_birth)),d.gender&&(m.gender=d.gender),d.marital_status&&(m.marital_status=d.marital_status),d.relationship_to_insured&&(m.relationship_to_insured=d.relationship_to_insured),d.is_registered_owner!==null&&d.is_registered_owner!==void 0&&(m.is_registered_owner=d.is_registered_owner?"Yes":"No"),d.license_state&&(m.license_state=d.license_state),d.license_status&&(m.license_status=d.license_status),d.license_number&&(m.license_number=d.license_number),d.date_first_licensed&&(m.date_first_licensed=Dn(d.date_first_licensed)),d.education_level&&(m.education_level=D5(d.education_level)),d.occupation&&(m.occupation=x5(d.occupation)),d.industry&&(m.industry=xd(d.industry)),d.employment_status&&(m.employment_status=d.employment_status),d.last_5_years_license_suspended_or_revoked!==null&&d.last_5_years_license_suspended_or_revoked!==void 0&&(m.last_5_years_license_suspended_or_revoked=He(d.last_5_years_license_suspended_or_revoked)),d.accident_prevention_course!==null&&d.accident_prevention_course!==void 0&&(m.accident_prevention_course=He(d.accident_prevention_course)),d.accident_prevention_course_date&&(m.accident_prevention_course_date=Dn(d.accident_prevention_course_date)),d.sr22!==null&&d.sr22!==void 0&&(m.sr22=He(d.sr22));const h=d.ssn_display;typeof h=="string"&&(m.ssn_display=h);const y=d.driver_violations;y&&y.length>0&&(m.driver_violations="Yes",m.driver_violations__items=y.map(S=>{const $={};return S.code&&($.code=S.code),S.occurred_at&&($.occurred_at=Dn(S.occurred_at)),$}));const g=d.driver_accidents;g&&g.length>0&&(m.driver_accidents="Yes",m.driver_accidents__items=g.map(S=>{const $={};return S.occurred_at&&($.occurred_at=Dn(S.occurred_at)),S.description&&($.description=S.description),S.quote_vehicle_id&&($.quote_vehicle_id=s[S.quote_vehicle_id]??S.quote_vehicle_id),S.property_damage_amount_paid_cents!==null&&S.property_damage_amount_paid_cents!==void 0&&($.property_damage_amount_paid_cents=S.property_damage_amount_paid_cents),S.personal_injury_amount_paid_cents!==null&&S.personal_injury_amount_paid_cents!==void 0&&($.personal_injury_amount_paid_cents=S.personal_injury_amount_paid_cents),$}));const E=d.losses;return E&&E.length>0&&(m.losses="Yes",m.losses__items=E.map(S=>{const $={};return S.description&&($.description=S.description),S.date_of_incident&&($.date_of_incident=Dn(S.date_of_incident)),S.amount_paid_cents!==null&&S.amount_paid_cents!==void 0&&($.amount_paid_cents=S.amount_paid_cents),S.quote_vehicle_id&&($.quote_vehicle_id=s[S.quote_vehicle_id]??S.quote_vehicle_id),$})),m})):n.drivers="No",t.vehicles&&t.vehicles.length>0?(n.vehicles="Yes",n.vehicles__items=t.vehicles.map(c=>{const d=c,m={};d.vin&&(m.vin=d.vin),d.year!==null&&d.year!==void 0&&(m.year=String(d.year)),d.make&&(m.make=d.make),d.model&&(m.model=d.model),d.body_style&&(m.body_style=d.body_style),d.ownership_type&&(m.ownership_type=d.ownership_type),d.usage&&(m.usage=d.usage),d.annual_mileage!==null&&d.annual_mileage!==void 0&&(m.annual_mileage=d.annual_mileage),d.miles_to_work!==null&&d.miles_to_work!==void 0&&(m.miles_to_work=d.miles_to_work),d.percent_to_work!==null&&d.percent_to_work!==void 0&&(m.percent_to_work=d.percent_to_work);const h=[];return d.garaging_address_line_1&&h.push(d.garaging_address_line_1),d.garaging_address_line_2&&h.push(d.garaging_address_line_2),d.garaging_address_city&&h.push(d.garaging_address_city),d.garaging_address_state&&h.push(d.garaging_address_state),d.garaging_address_postal_code&&h.push(d.garaging_address_postal_code),h.length>0&&(m.garaging_address=h.join(", ")),d.new_when_purchased!==null&&d.new_when_purchased!==void 0&&(m.new_when_purchased=He(d.new_when_purchased)),d.purchase_date&&(m.purchase_date=Dn(d.purchase_date)),d.anti_theft_type&&(m.anti_theft_type=d.anti_theft_type),d.passive_restraint_type&&(m.passive_restraint_type=d.passive_restraint_type),d.anti_lock_brakes!==null&&d.anti_lock_brakes!==void 0&&(m.anti_lock_brakes=He(d.anti_lock_brakes)),d.daytime_running_lights!==null&&d.daytime_running_lights!==void 0&&(m.daytime_running_lights=He(d.daytime_running_lights)),d.custom_equipment_value_cents!==null&&d.custom_equipment_value_cents!==void 0&&(m.custom_equipment_value_cents=d.custom_equipment_value_cents),d.cost_new_value_cents!==null&&d.cost_new_value_cents!==void 0&&(m.cost_new_value_cents=d.cost_new_value_cents),d.stated_value_amount_cents!==null&&d.stated_value_amount_cents!==void 0&&(m.stated_value_amount_cents=d.stated_value_amount_cents),d.vehicle_has_modifications!==null&&d.vehicle_has_modifications!==void 0&&(m.vehicle_has_modifications=He(d.vehicle_has_modifications)),d.vehicle_garaged_at_residence!==null&&d.vehicle_garaged_at_residence!==void 0&&(m.vehicle_garaged_at_residence=He(d.vehicle_garaged_at_residence)),d.vehicle_comp_deductible&&(m.vehicle_comp_deductible=d.vehicle_comp_deductible),d.vehicle_coll_deductible&&(m.vehicle_coll_deductible=d.vehicle_coll_deductible),d.vehicle_towing_and_labor&&(m.vehicle_towing_and_labor=d.vehicle_towing_and_labor),d.vehicle_transportation_expense&&(m.vehicle_transportation_expense=d.vehicle_transportation_expense),d.vehicle_full_glass!==null&&d.vehicle_full_glass!==void 0&&(m.vehicle_full_glass=He(d.vehicle_full_glass)),d.vehicle_loan_lease!==null&&d.vehicle_loan_lease!==void 0&&(m.vehicle_loan_lease=He(d.vehicle_loan_lease)),d.coverages&&d.coverages.length>0&&(m.coverages__items=d.coverages.map(y=>{const g={};return y.type&&(g.type=y.type),y.per_person_limit_cents!==null&&y.per_person_limit_cents!==void 0&&(g.per_person_limit_cents=y.per_person_limit_cents),y.per_incident_limit_cents!==null&&y.per_incident_limit_cents!==void 0&&(g.per_incident_limit_cents=y.per_incident_limit_cents),y.per_incident_limit_percent!==null&&y.per_incident_limit_percent!==void 0&&(g.per_incident_limit_percent=y.per_incident_limit_percent),y.per_day_limit_cents!==null&&y.per_day_limit_cents!==void 0&&(g.per_day_limit_cents=y.per_day_limit_cents),y.deductible_cents!==null&&y.deductible_cents!==void 0&&(g.deductible_cents=y.deductible_cents),y.is_declined!==null&&y.is_declined!==void 0&&(g.is_declined=He(y.is_declined)),g})),d.vehicle_lienholders&&d.vehicle_lienholders.length>0&&(m.vehicle_lienholders__items=d.vehicle_lienholders.map(y=>{const g={};return y.name&&(g.name=y.name),y.type&&(g.type=y.type),y.line_1&&(g.line_1=y.line_1),y.line_2&&(g.line_2=y.line_2),y.city&&(g.city=y.city),y.state&&(g.state=y.state),y.postal_code&&(g.postal_code=y.postal_code),y.phone&&(g.phone=y.phone),y.fax&&(g.fax=y.fax),g})),m})):n.vehicles="No",t.losses&&t.losses.length>0?(n.home_losses="Yes",n.home_losses__items=t.losses.map(c=>{const d={};return c.description&&(d.description=c.description),c.date_of_incident&&(d.date_of_incident=Dn(c.date_of_incident)),c.amount_paid_cents!==null&&c.amount_paid_cents!==void 0&&(d.amount_paid_cents=Math.round(Number(c.amount_paid_cents)/100)),d})):n.home_losses="No",n}const rU={Zip:"ZIP Code",Email:"Email",Product:"Product & Address",Home:"Home Details",Vehicle:"Vehicle",Name:"Name & DOB",Driver:"Operator",AutoCurrentCarrier:"Policy",HomeCurrentCarrier:"Policy",HomePolicy:"Policy",BundlePolicy:"Policy",Demographics:"Applicant",Ssn:"SSN",Phone:"Phone",SMSVerification:"Verify",AutoPolicy:"Policy",Customer:"Applicant",HomeCustomer:"Applicant",BundleCustomer:"Applicant",HomeConstruction:"Structure",HomeFeatures:"Features"};function aU(e){return rU[e]||e}const X3=new Set(["Zip","Product","Driver","Vehicle"]);function iU(e){return e?Array.isArray(e.drivers__items)?e.drivers__items.length:Array.isArray(e.drivers)?e.drivers.length:null:null}function eE(e,t){const n=iU(t),i=e.filter(s=>s.key!=="AutoPolicy"),o=i.length>0?i:e;return o}function oU(e,t){const n=e.findIndex(o=>o.key===t);return n<0?t:e[n+1]?.key??t}function nC(e){return e.some(t=>String(t.key)==="BundlePolicy"||String(t.key)==="BundleCustomer")}function tE(e){return nC(e)?"Bundle":e.some(t=>String(t.key)==="Vehicle"||String(t.key)==="Driver")?"Auto":"Home"}const lU={Auto:45e3,Home:5e4,Bundle:1e5},nE=["a[href]","button:not([disabled])","textarea:not([disabled])","input:not([disabled])","select:not([disabled])",'[tabindex]:not([tabindex="-1"])'].join(",");function sU(e,t){if(e!=="AutoCurrentCarrier")return t;const n=t.some(s=>String(s.key)==="auto_cancelled_declined_refused_to_renew"),i=t.some(s=>String(s.key)==="vehicle_policy_selections"),o=[...t];return n||o.push({question:"Has any auto insurance company cancelled, declined or refused to renew you in the last 5 years?",inputType:"radio",options:["Yes","No"],key:"auto_cancelled_declined_refused_to_renew",required:!0}),i||o.push({question:"Vehicle coverage selections",inputType:"custom",key:"vehicle_policy_selections",required:!1}),o}function uU(e,t){if(e!=="Vehicle")return t;const n=i=>i.map(o=>{const s=o.conditionals?.map(c=>{const d=c.conditionalQuestions??[];return d.length?{...c,conditionalQuestions:n(d)}:c});return String(o.key)!=="vin"?s?{...o,conditionals:s}:o:{...o,required:!1,...s?{conditionals:s}:{}}});return n(t)}function cU({isOpen:e,onClose:t}){const[n,i]=b.useState([]),[o,s]=b.useState(null),c=b.useRef(null);b.useEffect(()=>{c.current=o},[o]);const[d,m]=b.useState(null),[h,y]=b.useState(!1),[g,E]=b.useState(!1),[S,$]=b.useState(!1),[x,w]=b.useState(!1),[R,F]=b.useState([]),A=b.useRef(null),[L,M]=b.useState(null),[Z,V]=b.useState(void 0),[fe,ne]=b.useState(!1),[pe,J]=b.useState(null),[ye,Ae]=b.useState(null),[j,de]=b.useState(!1),[O,B]=b.useState(!1),[X,I]=b.useState(!1),G=b.useRef(!1),C=b.useRef(null),U=b.useRef(null),W=b.useRef(null),Y=b.useRef(null),[te,z]=b.useState(!1);b.useEffect(()=>{if(!S||x)return;const se=tE(n);let _e=!1;const be=[];let Ce=0,xe=0;const Ne=66,re=3,oe=5e3;let De=!1;const Ee=async()=>{if(_e)return;Ce++;try{const{quote:Re}=await D3(o??void 0);if(_e)return;if(xe=0,!De){const qe=Re?.appetites??null,Ue=uz(qe,se);Ue.length>0&&(F(Ue),De=!0)}const ke=Re?.rates_status??null;if(ke==="completed"){const{rates:qe}=await sh(o??void 0);if(_e)return;A.current=qe,w(!0);return}if(ke==="no_rates"){A.current=[],w(!0);return}if(ke==="failed"){Uo(new Error("Quote failed: rate-generation worker reported rates_status=failed"),{quoteId:c.current??void 0,phase:"rates_status_failed"}),ps({reason:"submission"}),J({message:"submission_failed"}),$(!1);return}}catch(Re){if(xe++,console.warn("Provider polling: getQuote failed",{attempt:Ce,consecutiveFailures:xe,error:Re}),xe>=re){Re?.__sentryReported||Uo(Re,{quoteId:c.current??void 0,phase:"rates_polling",message:`Quote failed: ${re} consecutive get-quote poll failures`}),ps({reason:"network"}),J({message:"submission_failed"}),$(!1);return}}if(_e)return;if(Ce>=Ne){Uo(new Error(`Quote failed: rate-generation timed out after ${Ne} polls`),{quoteId:c.current??void 0,phase:"rates_polling_timeout"}),ps({reason:"timeout"}),J({message:"submission_failed"}),$(!1);return}const Te=window.setTimeout(Ee,oe);be.push(Te)};return Ee(),()=>{_e=!0,be.forEach(Te=>window.clearTimeout(Te))}},[S,x,n,o]);function T(se){return se.map(be=>({key:be,title:aU(be),loadQuestions:async()=>{const Ce=await rj(be,c.current??void 0);let xe=sU(be,Ce.questions);return xe=uU(be,xe),xe}}))}b.useEffect(()=>{const se=async()=>{try{const _e=Xz();if(_e)try{const{token:Ce,quoteId:xe}=await ij(_e);Ce&&xe&&(Jc(Ce),p3(xe))}catch(Ce){Ce.statusCode===401&&B(!0)}const be=af();if(Xc(),be){ne(!0),s(be);try{const Ce=Jr(),xe=await D3(Ce?void 0:be);if(!xe||!xe.quote)throw new Error("Invalid response from getQuote: missing quote data");const{quote:Ne}=xe,{stages:re}=await Pc(be),oe=T(re);i(oe);let De;try{De=nU(Ne),M(De)}catch(Ue){throw new Error(`Failed to transform quote data: ${Ue instanceof Error?Ue.message:"Unknown error"}`)}const Ee=eE(oe,De);i(Ee);const Te=Ne?.review_status??null;if(E(Te!=null),Te==="pending_review"&&Jr()){I(!0);return}const Re=Ne?.rates_status??null,ke=Jr()!=null;if(ke||Te===null){if(Re==="completed")try{const{rates:Ue}=await sh(ke?void 0:be);m(Ue);return}catch(Ue){console.warn("Failed to fetch completed rates on resume",Ue)}else if(Re==="no_rates"){m([]);return}else if(Re==="processing"){F([]),w(!1),A.current=null,$(!0);return}}V(0)}catch(Ce){const xe=Ce;if(xe.statusCode===404)A5(),s(null);else if(xe.statusCode===401){R5();try{const{stages:Ne}=await Pc(be),re=T(Ne);i(re);const oe=re.findIndex(De=>De.key==="SMSVerification");V(oe>=0?oe:re.length-1)}catch{}}}finally{ne(!1)}}else{const{stages:Ce}=await Pc();i(T(Ce))}}catch{ne(!1)}};e&&!G.current&&(G.current=!0,se())},[e]),b.useEffect(()=>{if(!e)return;const{overflow:se}=document.body.style;return document.body.style.overflow="hidden",()=>{document.body.style.overflow=se}},[e]),b.useEffect(()=>{if(!e)return;Y.current=document.activeElement instanceof HTMLElement?document.activeElement:null;const se=window.setTimeout(()=>{const _e=C.current;if(!_e)return;(_e.querySelector(nE)??_e).focus()},0);return()=>{window.clearTimeout(se);const _e=Y.current;Y.current=null,_e&&document.contains(_e)&&_e.focus()}},[e]);const N=b.useCallback(se=>{if(se.key==="Escape"){te?(se.preventDefault(),z(!1)):(se.preventDefault(),z(!0));return}if(se.key!=="Tab")return;const _e=te?U.current:C.current;if(!_e)return;const be=Array.from(_e.querySelectorAll(nE)).filter(re=>!re.hasAttribute("disabled")&&re.getAttribute("aria-hidden")!=="true");if(be.length===0){se.preventDefault(),_e.focus();return}const Ce=be[0],xe=be[be.length-1],Ne=document.activeElement;se.shiftKey&&Ne===Ce?(se.preventDefault(),xe.focus()):!se.shiftKey&&Ne===xe&&(se.preventDefault(),Ce.focus())},[te]);b.useEffect(()=>{if(e)return window.addEventListener("keydown",N),()=>window.removeEventListener("keydown",N)},[e,N]),b.useEffect(()=>{if(!te)return;const se=window.setTimeout(()=>{W.current?.focus()},0);return()=>window.clearTimeout(se)},[te]),b.useEffect(()=>{e||(M(null),V(void 0),ne(!1),$(!1),Ae(null),de(!1),z(!1))},[e]),b.useEffect(()=>{e&&Zj()},[e]),b.useEffect(()=>{d&&Array.isArray(d)&&Wj({rateCount:d.length})},[d]);const ie=b.useCallback(()=>{J(null),V(Math.max(0,n.length-1))},[n.length]),ge=b.useCallback(async(se,_e)=>{try{F([]),w(!1),A.current=null,$(!0);let be;try{be=await La(se,!0,o??void 0)}catch(Ne){throw $(!1),Ne}if(be.status==="submission_failed"){Uo(new Error(`Quote failed at submission: ${be.message}`),{quoteId:o??void 0,phase:_e}),$(!1),w(!1),A.current=null,ps({reason:"submission"}),J({message:be.message});return}if(be.status==="success")try{const{rates:Ne}=await sh(o??void 0);A.current=Ne,w(!0)}catch(Ne){throw $(!1),Ne}const Ce=n.length,xe=n[Ce-1];F3({stageKey:xe?.key??"unknown",stageTitle:xe?.title??"unknown",stepIndex:Ce,totalSteps:Ce}),Kj()}catch(be){be?.__sentryReported||Uo(be,{quoteId:o??void 0,phase:_e}),$(!1),ps({reason:"submission"}),J({message:"Oops, something went wrong. Please try again later."})}},[o,n]),Se=b.useCallback(async se=>{if(!(!ye||!o||j)){de(!0);try{const be={...xi(ye.allValues),communications_consent:se};Ae(null),await ge(be,"consent_submit")}finally{de(!1)}}},[ye,o,j,ge]),he=b.useCallback(async se=>{if(!(!o||j)){de(!0);try{M(se);const _e={...xi(se),customer_review_confirmed:!0};await ge(_e,"review_submit")}finally{de(!1)}}},[o,j,ge]);if(!e)return null;const we=()=>{z(!0)},Fe=()=>{z(!1)},me=()=>{Yj(),t()},$e=!!(!pe&&d&&o&&!h);return v.jsxs("div",{ref:C,className:"fixed inset-0 z-[9999] flex items-center justify-center",role:"dialog","aria-modal":"true","aria-labelledby":"insurance-modal-title",tabIndex:-1,children:[v.jsx("div",{className:"backdrop","aria-hidden":"true"}),v.jsxs("div",{className:`modal-panel bg-white relative w-full flex flex-col max-h-[90vh] overflow-hidden ${$e?"max-w-6xl":"max-w-2xl"}`,role:"document",children:[v.jsx("h2",{id:"insurance-modal-title",className:"sr-only",children:"Credify insurance quote widget"}),v.jsx("button",{onClick:we,className:"modal-close-btn absolute top-4 right-4","aria-label":"Close quote form",type:"button",children:v.jsx("span",{"aria-hidden":"true",children:"×"})}),!S&&!pe&&v.jsx("div",{className:"widget-modal-header text-center",children:v.jsx("h2",{className:"h1-title",children:"Let's shop multiple leading carriers for you"})}),v.jsxs("div",{className:"panel-body flex-1 min-h-0 overflow-y-auto",children:[O&&v.jsxs("div",{className:"mb-4 flex items-start justify-between gap-3 rounded-md border border-amber-300 bg-amber-50 px-4 py-3 text-sm text-amber-800",role:"alert",children:[v.jsx("span",{children:"This resume link has expired or is no longer valid. For your security, emailed links only work for a limited time — you can continue your quote below."}),v.jsx("button",{type:"button",onClick:()=>B(!1),className:"shrink-0 font-bold text-amber-800 hover:text-amber-900","aria-label":"Dismiss",children:"×"})]}),pe&&v.jsx(Q5,{onGoBack:ie}),!pe&&S&&(()=>{const se=tE(n);return v.jsx(Mz,{providers:R,totalTime:lU[se],flow:se,isComplete:x,onComplete:()=>{$(!1),w(!1),F([]),A.current&&(m(A.current),A.current=null)}})})(),!pe&&!S&&ye&&v.jsx(FO,{onChoose:Se,isSubmitting:j}),!pe&&!d&&!S&&!ye&&v.jsx(v.Fragment,{children:fe||n.length===0?v.jsx("div",{className:"flex items-center justify-center py-12",children:v.jsx("div",{className:"text-slate-600",children:"Loading..."})}):X&&o?v.jsx(Tz,{stages:n,initialValues:L??{},quoteId:o,isSubmitting:j,onConfirmed:he}):v.jsx(oz,{stages:n,initialValues:L??void 0,initialActive:Z,quoteId:o??void 0,nonTerminalStageKeys:X3,onStageComplete:async(se,_e)=>{try{const be=xi(se);let Ce=o,xe=n;const Ne=xe.findIndex(De=>De.key===_e),re=xe[Ne],oe=oU(xe,_e);if(Ce)if(_e==="Phone"){const De=be.phone;if(!De)throw new Error("Phone number is required.");const Ee=Jr();await La({...be,current_stage:oe,suppress_verification_sms:!0},!1,Ee?void 0:Ce),await O5(Ce,De)}else if(_e==="SMSVerification"){const{isVerified:De,token:Ee}=await b0(Ce,be.sms_code);if(!De)throw new Error("Invalid SMS code");Ee&&Jc(Ee),await La({current_stage:oe},!1)}else if(_e==="Product"){const De=Jr(),{isSupported:Ee}=await k5(be.state,De?void 0:Ce??void 0);if(await La({...be,current_stage:Ee?oe:_e},!1,De?void 0:Ce),!Ee){const Te=W5(be.state);throw new Error(`Sorry, Credify Corporation doesn't currently offer insurance in ${Te}. We're expanding our coverage and hope to serve your state soon.`)}}else{const De=Jr();await La({...be,current_stage:oe},!1,De?void 0:Ce||void 0)}else{const De=be.postal_code??"";if(!De)throw new Error("ZIP code is required to start a quote.");const Te=(await aj(De,tU()))?.quoteId;if(!Te||typeof Te!="string"||Te.trim()==="")throw new Error(`Failed to create quote - invalid quoteId returned: ${Te}`);Ce=Te,s(Te),p3(Te),await La({...be,current_stage:oe},!1,Te)}if(_e==="Name"&&Ce){const De=String(se.product??"");(De==="Auto"||De==="Both")&&kj(Ce)}if(_e==="Vehicle"&&Ce&&Pj(Ce),X3.has(_e))try{const{stages:De}=await Pc(Ce||void 0);xe=T(De),xe=eE(xe,se),i(xe)}catch(De){console.warn("Unable to refresh stages after flow-shaping step",De)}return F3({stageKey:_e,stageTitle:re?.title??_e,stepIndex:Ne+1,totalSteps:xe.length}),{success:!0,latestStages:xe}}catch(be){return{success:!1,error:be instanceof Error?be.message:"An error occurred"}}},onComplete:async(se,_e)=>{if(!o)return{success:!1,error:"Oops, something went wrong. Please try again later."};M(se);try{if(_e==="Phone"){const be=xi(se);if(!be.phone)return{success:!1,error:"Phone number is required."};const xe=Jr();return await La({...be,suppress_verification_sms:!0},!1,xe?void 0:o),Ae({allValues:se}),{success:!0}}if(_e==="SMSVerification"){const be=xi(se),{isVerified:Ce,token:xe,code:Ne}=await b0(o,be.sms_code);return Ce?(xe&&Jc(xe),Ae({allValues:se}),{success:!0}):{success:!1,error:Ne==="OTP_EXPIRED"?"That code has expired. Request a new one.":"Invalid SMS code"}}return Ae({allValues:se}),{success:!0}}catch{const Ce="Oops, something went wrong. Please try again later.";return J({message:Ce}),{success:!1,error:Ce}}}})})," ",!pe&&d&&o&&v.jsx(yz,{rates:d,onBack:()=>m(null),isBundleFlow:nC(n),quoteId:o,initialPhone:L?.phone??"",requirePursueVerification:g,onSubScreenChange:y})]}),v.jsxs("div",{className:"widget-legal-footer space-y-1.5",children:[v.jsx(Jz,{}),v.jsx("p",{className:"text-center text-sm text-slate-500",children:"Insurance products offered through Credify Corporation, a licensed insurance agency."})]}),te&&v.jsx("div",{className:"close-confirm-backdrop",role:"presentation",children:v.jsxs("div",{ref:U,className:"close-confirm-dialog",role:"alertdialog","aria-modal":"true","aria-labelledby":"close-confirm-title","aria-describedby":"close-confirm-description",tabIndex:-1,children:[v.jsx("h3",{id:"close-confirm-title",children:"Close quote form?"}),v.jsx("p",{id:"close-confirm-description",children:"Your answers in this session will be lost if you close this window."}),v.jsxs("div",{className:"close-confirm-actions",children:[v.jsx("button",{ref:W,type:"button",className:"btn-outline",onClick:Fe,children:"Keep editing"}),v.jsx("button",{type:"button",className:"btn-primary close-confirm-danger",onClick:me,children:"Close form"})]})]})})]})]})}function dU({onClose:e}){return v.jsxs("div",{className:"fixed inset-0 z-[9999] flex items-center justify-center",role:"dialog","aria-modal":"true",children:[v.jsx("div",{className:"backdrop","aria-hidden":"true"}),v.jsx("div",{className:"modal-panel bg-white relative w-full max-w-2xl p-6",children:v.jsx(Q5,{onGoBack:e})})]})}var yh={dsn:"",environment:"production",release:"7e28e97794aca1f06e6a56adc9a9444b6bde2ea3"};function fU(){try{return typeof yh<"u"&&yh?yh:{}}catch{return{}}}let rE=!1;function mU(e,t){if(!e)return t;const n=Number(e);return Number.isFinite(n)&&n>=0&&n<=1?n:t}function pU(e={}){if(rE)return!0;if(typeof window>"u")return!1;const t=fU(),n=e.dsn??t.dsn;return!n||e.enabled===!1?!1:(YI({baseUrl:Rt}),U7({dsn:n,environment:e.environment??t.environment??"production",release:e.release??t.release,sendDefaultPii:!1,maxBreadcrumbs:50,tracesSampleRate:e.tracesSampleRate??mU(t.tracesSampleRate,.1),tracePropagationTargets:[Rt],replaysSessionSampleRate:0,replaysOnErrorSampleRate:1,beforeSend:i=>v3(i),beforeBreadcrumb:i=>i&&(v3({breadcrumbs:[i]}),i)}),rE=!0,j7("replayIntegration").then(i=>{try{vT(i({maskAllText:!0,maskAllInputs:!0,blockAllMedia:!0,networkDetailAllowUrls:[Rt],networkCaptureBodies:!1}))}catch{}}).catch(()=>{}),!0)}function hU(){const[e,t]=b.useState(!1);b.useEffect(()=>{pU(),Gz()},[]);const n=b.useCallback(o=>{window.parent&&window.parent!==window&&window.parent.postMessage({type:o,source:"credify-insurance-widget"},"*")},[]);b.useEffect(()=>{const o=(c,d,m)=>{window.parent&&window.parent!==window&&window.parent.postMessage({type:"event",source:"credify-insurance-widget",event:c,data:d,meta:m},"*")},s=Vj.map(c=>{const d=(m,h)=>o(c,m,h);return j5(c,d),[c,d]});return()=>{for(const[c,d]of s)z5(c,d)}},[]),b.useEffect(()=>{const o=s=>{if(s.data?.source==="credify-insurance-widget")switch(s.data.type){case"open":t(!0),n("opened");break;case"close":t(!1),n("closed");break;case"init":n("ready");break;case"support-open":tC();break}};return window.addEventListener("message",o),n("ready"),()=>{window.removeEventListener("message",o)}},[n]);const i=b.useCallback(()=>{t(!1),n("closed")},[n]);return v.jsx(P0,{fallback:v.jsx(dU,{onClose:i}),children:v.jsx(cU,{isOpen:e,onClose:i})})}const yU="modulepreload",gU=function(e){return"/iframe/"+e},aE={},bU=function(t,n,i){let o=Promise.resolve();if(n&&n.length>0){let h=function(y){return Promise.all(y.map(g=>Promise.resolve(g).then(E=>({status:"fulfilled",value:E}),E=>({status:"rejected",reason:E}))))};var c=h;document.getElementsByTagName("link");const d=document.querySelector("meta[property=csp-nonce]"),m=d?.nonce||d?.getAttribute("nonce");o=h(n.map(y=>{if(y=gU(y),y in aE)return;aE[y]=!0;const g=y.endsWith(".css"),E=g?'[rel="stylesheet"]':"";if(document.querySelector(`link[href="${y}"]${E}`))return;const S=document.createElement("link");if(S.rel=g?"stylesheet":yU,g||(S.as="script"),S.crossOrigin="",S.href=y,m&&S.setAttribute("nonce",m),document.head.appendChild(S),g)return new Promise(($,x)=>{S.addEventListener("load",$),S.addEventListener("error",()=>x(new Error(`Unable to preload CSS for ${y}`)))})}))}function s(d){const m=new Event("vite:preloadError",{cancelable:!0});if(m.payload=d,window.dispatchEvent(m),!m.defaultPrevented)throw d}return o.then(d=>{for(const m of d||[])m.status==="rejected"&&s(m.reason);return t().catch(s)})};var iE={key:""};const vU="mock";function _U(){try{typeof iE<"u"&&iE?.key;return}catch{return}}function EU(){const e=_U();if(!e||typeof window>"u"||!window.location)return!1;try{return new URLSearchParams(window.location.search).get(vU)===e}catch{return!1}}const SU=new Set(["/create-quote","/get-stages-for-quote","/get-questions-by-stage","/update-quote","/verify-quote","/is-supported-state","/get-rates","/get-quote","/get-vehicle-options","/request-bind"]);let oE=!1;function $U(e){try{if(typeof e=="string")return new URL(e,window.location.href).pathname;if(e instanceof URL)return e.pathname;if(e instanceof Request)return new URL(e.url,window.location.href).pathname}catch{return null}return null}async function DU(e,t){try{if(t?.body&&typeof t.body=="string")return JSON.parse(t.body);if(e instanceof Request){const n=await e.clone().text();return n?JSON.parse(n):{}}}catch{return{}}return{}}function lE(e,t=200){return new Response(JSON.stringify(e),{status:t,headers:{"Content-Type":"application/json"}})}function xU(){try{if(typeof document>"u"||document.getElementById("credify-mock-badge"))return;const e=()=>{const t=document.createElement("div");t.id="credify-mock-badge",t.textContent="MOCK MODE",t.setAttribute("aria-hidden","true"),t.style.cssText=["position:fixed","bottom:12px","left:12px","z-index:2147483647","background:#b91c1c","color:#fff","font:600 11px/1 system-ui,sans-serif","letter-spacing:0.08em","padding:6px 10px","border-radius:9999px","box-shadow:0 1px 4px rgba(0,0,0,0.3)","pointer-events:none","user-select:none"].join(";"),document.body.appendChild(t)};document.body?e():document.addEventListener("DOMContentLoaded",e,{once:!0})}catch{}}function CU(){if(oE||typeof window>"u"||typeof window.fetch!="function"||!EU())return;oE=!0;const e=window.fetch.bind(window),t=bU(()=>import("./backend-CY4n4nTm.js"),[]);window.fetch=async(n,i)=>{const o=$U(n);if(!o||!SU.has(o))return e(n,i);const s=await DU(n,i),{handleMockRequest:c}=await t;await new Promise(d=>window.setTimeout(d,120));try{return lE(c(o,s))}catch(d){return lE({error:d instanceof Error?d.message:"Mock handler error"},404)}},xU(),typeof console<"u"&&console.info("[Credify] Mock mode active — all API calls are served from in-memory fixtures.")}CU();SA.createRoot(document.getElementById("root")).render(v.jsx(b.StrictMode,{children:v.jsx(hU,{})}));
|
|
164
|
-
//# sourceMappingURL=iframe-XjjiskMA.js.map
|