PageSourceSearch

https://antler.digital/_next/static/chunks/pages/_app-526f468e732ecd21.js

js antler.digital collected 2026-10-06 06:10:07 UTC 239,187 bytes, 34 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[888],{23606:function(e,t,i){"use strict";var n=this&&this.__createBinding||(Object.create?function(e,t,i,n){void 0===n&&(n=i);var r=Object.getOwnPropertyDescriptor(t,i);(!r||("get"in r?!t.__esModule:r.writable||r.configurable))&&(r={enumerable:!0,get:function(){return t[i]}}),Object.defineProperty(e,n,r)}:function(e,t,i,n){void 0===n&&(n=i),e[n]=t[i]}),r=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),s=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var i in e)"default"!==i&&Object.prototype.hasOwnProperty.call(e,i)&&n(t,e,i);return r(t,e),t};Object.defineProperty(t,"__esModule",{value:!0}),t.Turnstile=void 0;let a=s(i(67294)),o=i(42906);t.Turnstile=({siteKey:e,onVerify:t,onError:i,onExpire:n,onLoad:r,onBeforeInteractive:s,onAfterInteractive:l,onUnsupported:u,onTimeout:c,action:d,id:h=o.TURNSTILE_CONSTANTS.DEFAULT_ID,className:f,theme:p=o.TURNSTILE_CONSTANTS.DEFAULT_THEME,tabIndex:m,responseField:g=o.TURNSTILE_CONSTANTS.DEFAULT_RESPONSE_FIELD,responseFieldName:y=o.TURNSTILE_CONSTANTS.DEFAULT_RESPONSE_FIELD_NAME,size:v=o.TURNSTILE_CONSTANTS.DEFAULT_SIZE,retry:x=o.TURNSTILE_CONSTANTS.DEFAULT_RETRY,retryInterval:b=o.TURNSTILE_CONSTANTS.DEFAULT_RETRY_INTERVAL,refreshExpired:T=o.TURNSTILE_CONSTANTS.DEFAULT_REFRESH_EXPIRED,refreshTimeout:S=o.TURNSTILE_CONSTANTS.DEFAULT_REFRESH_TIMEOUT,appearance:w=o.TURNSTILE_CONSTANTS.DEFAULT_APPEARANCE,execution:E=o.TURNSTILE_CONSTANTS.DEFAULT_EXECUTION,cData:A,language:P,sandbox:V=!1,feedbackEnabled:D=o.TURNSTILE_CONSTANTS.DEFAULT_FEEDBACK_ENABLED})=>{let C=(0,a.useRef)(),k=(0,a.useRef)(null),_=(0,a.useCallback)(()=>{var e;C.current&&(null===(e=window.turnstile)||void 0===e||e.remove(C.current),C.current=void 0)},[]);(0,a.useEffect)(()=>{let e="cf-turnstile-script",t=document.getElementById(e);if(t)window.turnstile&&(renderWidget(),null==r||r());else{let t=document.createElement("script");t.id=e,t.src=`${o.TURNSTILE_CONSTANTS.SCRIPT_URL}?render=explicit&onload=onloadTurnstileCallback`,t.async=!0,t.defer=!0,window.onloadTurnstileCallback=()=>{renderWidget(),null==r||r()},document.head.appendChild(t)}return _},[e,V]);let sandboxDummyKey=()=>{switch(V){case"pass":break;case"block":return o.TURNSTILE_CONSTANTS.SANDBOX_KEYS.BLOCK;case"pass-invisible":return o.TURNSTILE_CONSTANTS.SANDBOX_KEYS.PASS_INVISIBLE;case"block-invisible":return o.TURNSTILE_CONSTANTS.SANDBOX_KEYS.BLOCK_INVISIBLE}return o.TURNSTILE_CONSTANTS.SANDBOX_KEYS.PASS},renderWidget=()=>{k.current&&window.turnstile&&(_(),C.current=window.turnstile.render(k.current,{sitekey:V?sandboxDummyKey():e,action:d,callback:t,"error-callback":i,"expired-callback":n,"before-interactive-callback":s,"after-interactive-callback":l,"unsupported-callback":u,"timeout-callback":c,theme:p,tabindex:m,"response-field":g,"response-field-name":y,size:v,retry:x,"retry-interval":b,"refresh-expired":T,"refresh-timeout":S,appearance:w,execution:E,cdata:A,language:P,"feedback-enabled":D}))};return a.default.createElement("div",{ref:k,id:h,className:f})}},44680:function(e,t,i){"use strict";t.Nc=void 0;var n=i(23606);Object.defineProperty(t,"Nc",{enumerable:!0,get:function(){return n.Turnstile}}),i(75415),i(42906)},75415:function(e,t,i){"use strict";var n=this&&this.__awaiter||function(e,t,i,n){return new(i||(i=Promise))(function(r,s){function fulfilled(e){try{step(n.next(e))}catch(e){s(e)}}function rejected(e){try{step(n.throw(e))}catch(e){s(e)}}function step(e){var t;e.done?r(e.value):((t=e.value)instanceof i?t:new i(function(e){e(t)})).then(fulfilled,rejected)}step((n=n.apply(e,t||[])).next())})};Object.defineProperty(t,"__esModule",{value:!0}),t.validateTurnstileToken=void 0;let r=i(42906);t.validateTurnstileToken=function({token:e,secretKey:t,remoteip:i,idempotencyKey:s,sandbox:a=!1}){return n(this,void 0,void 0,function*(){let n=r.TURNSTILE_CONSTANTS.API_ENDPOINT,o=new URLSearchParams(Object.assign(Object.assign({secret:a?(()=>{switch(a){case"pass":break;case"fail":return r.TURNSTILE_CONSTANTS.SERVER_SANDBOX_KEYS.FAIL;case"error":return r.TURNSTILE_CONSTANTS.SERVER_SANDBOX_KEYS.ERROR}return r.TURNSTILE_CONSTANTS.SERVER_SANDBOX_KEYS.PASS})():t,response:e},i&&{remoteip:i}),s&&{idempotency_key:s}));try{let e=yield fetch(n,{method:"POST",body:o,headers:{"Content-Type":"application/x-www-form-urlencoded"}});if(!e.ok)throw Error(`HTTP error! status: ${e.status}`);return yield e.json()}catch(e){throw Error(`Failed to validate Turnstile token: ${e}`)}})}},42906:function(e,t){"use strict";
1Object.defineProperty(t,"__esModule",{value:!0}),t.TURNSTILE_ERROR_CODES=t.TURNSTILE_CONSTANTS=void 0,t.TURNSTILE_CONSTANTS={DEFAULT_THEME:"auto",DEFAULT_SIZE:"flexible",DEFAULT_APPEARANCE:"always",DEFAULT_EXECUTION:"render",DEFAULT_RETRY:"auto",DEFAULT_RETRY_INTERVAL:8e3,DEFAULT_REFRESH_EXPIRED:"auto",DEFAULT_REFRESH_TIMEOUT:"auto",DEFAULT_RESPONSE_FIELD:!0,DEFAULT_RESPONSE_FIELD_NAME:"cf-turnstile-response",DEFAULT_FEEDBACK_ENABLED:!0,DEFAULT_ID:"turnstile-widget",SANDBOX_KEYS:{PASS:"1x00000000000000000000AA",BLOCK:"2x00000000000000000000AB",PASS_INVISIBLE:"1x00000000000000000000BB",BLOCK_INVISIBLE:"2x00000000000000000000BB"},SERVER_SANDBOX_KEYS:{PASS:"1x0000000000000000000000000000000AA",FAIL:"2x0000000000000000000000000000000AA",ERROR:"3x0000000000000000000000000000000AA"},API_ENDPOINT:"https://challenges.cloudflare.com/turnstile/v0/siteverify",SCRIPT_URL:"https://challenges.cloudflare.com/turnstile/v0/api.js"},t.TURNSTILE_ERROR_CODES={MISSING_INPUT_SECRET:"missing-input-secret",INVALID_INPUT_SECRET:"invalid-input-secret",MISSING_INPUT_RESPONSE:"missing-input-response",INVALID_INPUT_RESPONSE:"invalid-input-response",BAD_REQUEST:"bad-request",TIMEOUT_OR_DUPLICATE:"timeout-or-duplicate",INTERNAL_ERROR:"internal-error"}},83454:function(e,t,i){"use strict";var n,r;e.exports=(null==(n=i.g.process)?void 0:n.env)&&"object"==typeof(null==(r=i.g.process)?void 0:r.env)?i.g.process:i(77663)},6840:function(e,t,i){(window.__NEXT_P=window.__NEXT_P||[]).push(["/_app",function(){return i(70478)}])},5988:function(e,t,i){"use strict";var n=i(85893),r=i(93967),s=i.n(r),a=i(18834),o=i(41664),l=i.n(o),u=i(67294),c=i(70478);let d=u.forwardRef((e,t)=>{let{variant:i="outline",className:r,children:a,linkTo:o,loading:u,...d}=e,h=(0,n.jsx)("button",{ref:t,disabled:u,className:s()("fill"===i?"bg-highlight hover:bg-bg text-white":"bg-bg hover:bg-highlight","font-sans ".concat(c.inter.variable),"border border-highlight px-4 py-2 rounded-lg uppercase w-fit duration-150 text-white","focus:border-highlight/50 focus:ring-2 focus:ring-offset-2 focus:ring-offset-bg focus:ring-highlight focus:outline-none hover:shadow-lg hover:shadow-highlight/50",r,{"opacity-50 cursor-wait pointer-events-none":u}),...d,children:a});return o?(0,n.jsx)(l(),{href:o,className:"w-fit block",children:h}):h});d.displayName="Button",t.Z=(0,a.m)(d)},39664:function(e,t,i){"use strict";i.d(t,{Z:function(){return forms_ContactForm}});var n=i(85893),r=i(93967),s=i.n(r),a=i(67294),isCheckBoxInput=e=>"checkbox"===e.type,isFileInput=e=>"file"===e.type,isDateObject=e=>e instanceof Date,isNullOrUndefined=e=>null==e;let isObjectType=e=>"object"==typeof e;var isObject=e=>!isNullOrUndefined(e)&&!Array.isArray(e)&&isObjectType(e)&&!isDateObject(e),getEventValue=e=>isObject(e)&&e.target?isCheckBoxInput(e.target)?e.target.checked:isFileInput(e.target)?e.target.files:e.target.value:e;let o=/[.[\]'"]/;var stringToPath=e=>e.split(o).filter(Boolean),isNameInFieldArray=(e,t)=>t.split(".").some((t,i,n)=>!isNaN(Number(t))&&e.has(n.slice(0,i).join("."))),l="undefined"!=typeof window&&void 0!==window.HTMLElement&&"undefined"!=typeof document;function cloneObject(e){if(null===e||"object"!=typeof e)return e;if(e instanceof Date)return new Date(e);let t="undefined"!=typeof Blob&&e instanceof Blob,i="undefined"!=typeof FileList&&e instanceof FileList;if(l&&(t||i))return e;let n=Array.isArray(e);if(!n&&e.constructor!==Object)return e;let r=n?[]:Object.create(Object.getPrototypeOf(e));for(let t in e)Object.prototype.hasOwnProperty.call(e,t)&&(r[t]=cloneObject(e[t]));return r}let u={BLUR:"blur",FOCUS_OUT:"focusout",SUBMIT:"submit",TRIGGER:"trigger",VALID:"valid"},c={onBlur:"onBlur",onChange:"onChange",onSubmit:"onSubmit",onTouched:"onTouched",all:"all"},d={max:"max",min:"min",maxLength:"maxLength",minLength:"minLength",pattern:"pattern",required:"required",validate:"validate"},h=[d.required,d.min,d.max,d.minLength,d.maxLength,d.pattern,d.validate],f="form",p="root",m=["__proto__","constructor","prototype"],g=/^\w*$/;var isKey=e=>g.test(e),isUndefined=e=>void 0===e,get=(e,t,i)=>{if(!t||!isObject(e))return i;let n=isKey(t)?[t]:stringToPath(t);if(n.some(e=>m.includes(e)))return i;let r=n.reduce((e,t)=>
1isNullOrUndefined(e)?void 0:e[t],e);return isUndefined(r)||r===e?isUndefined(e[t])?i:e[t]:r},isBoolean=e=>"boolean"==typeof e,isFunction=e=>"function"==typeof e,set=(e,t,i)=>{let n=-1,r=isKey(t)?[t]:stringToPath(t),s=r.length,a=s-1;for(;++n<s;){let t=r[n],s=i;if(n!==a){let i=e[t];s=isObject(i)||Array.isArray(i)?i:isNaN(+r[n+1])?{}:[]}if(m.includes(t))return;e[t]=s,e=e[t]}};let y=a.createContext(null);y.displayName="HookFormControlContext";var getProxyFormState=(e,t,i,n=!0)=>{let r={};for(let s in e)Object.defineProperty(r,s,{get:()=>(t._proxyFormState[s]!==c.all&&(t._proxyFormState[s]=!n||c.all),i&&(i[s]=!0),e[s])});return r};let v=l?a.useLayoutEffect:a.useEffect;var isPlainObject=e=>{let t=e.constructor&&e.constructor.prototype;return isObject(t)&&t.hasOwnProperty("isPrototypeOf")},isPrimitive=e=>isNullOrUndefined(e)||!isObjectType(e);let isEmptyObjectWithCustomPrototype=(e,t)=>0===t.length&&!Array.isArray(e)&&!isPlainObject(e);function deepEqual(e,t,i=new WeakMap){if(e===t)return!0;if(isPrimitive(e)||isPrimitive(t))return Object.is(e,t);if(isDateObject(e)&&isDateObject(t))return Object.is(e.getTime(),t.getTime());let n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;if(isEmptyObjectWithCustomPrototype(e,n)||isEmptyObjectWithCustomPrototype(t,r))return Object.is(e,t);if(!n.length&&Array.isArray(e)!==Array.isArray(t))return!1;let s=i.get(e);if(s&&s.has(t))return!0;if(s)s.add(t);else{let n=new WeakSet;n.add(t),i.set(e,n)}for(let r of n){let n=e[r];if(!(r in t))return!1;if("ref"!==r){let e=t[r];if(isDateObject(n)&&isDateObject(e)||(isObject(n)||Array.isArray(n))&&(isObject(e)||Array.isArray(e))?!deepEqual(n,e,i):!Object.is(n,e))return!1}}return!0}var isString=e=>"string"==typeof e,generateWatchOutput=(e,t,i,n,r)=>isString(e)?(n&&t.watch.add(e),get(i,e,r)):Array.isArray(e)?e.map(e=>(n&&t.watch.add(e),get(i,e,get(r,e)))):(n&&(t.watchAll=!0),i),getValidationModes=e=>({isOnSubmit:!e||e===c.onSubmit,isOnBlur:e===c.onBlur,isOnChange:e===c.onChange,isOnAll:e===c.all,isOnTouch:e===c.onTouched}),isWatched=(e,t,i)=>{if(i)return!1;if(t.watchAll||t.watch.has(e))return!0;for(let i of t.watch)if(e.startsWith(i)&&"."===e.charAt(i.length))return!0;return!1};let iterateFieldsByAction=(e,t,i)=>{for(let n of i||Object.keys(e)){if("_f"===n)continue;let r=i?get(e,n):e[n];if(r){let{_f:e}=r;if(e){if(e.refs&&e.refs[0]&&t(e.refs[0],e.name)||e.ref&&t(e.ref,e.name)||iterateFieldsByAction(r,t))return!0}else if((isObject(r)||Array.isArray(r))&&iterateFieldsByAction(r,t))return!0}}};var updateFieldArrayRootError=(e,t,i)=>{let n=get(e,i),r=Array.isArray(n)?n:[];return set(r,p,t[i]),set(e,i,r),e},isEmptyObject=e=>isObject(e)&&!Object.keys(e).length,isHTMLElement=e=>{if(!l)return!1;let t=e?e.ownerDocument:0;return e instanceof(t&&t.defaultView?t.defaultView.HTMLElement:HTMLElement)},isRadioInput=e=>"radio"===e.type,isRegex=e=>e instanceof RegExp,appendErrors=(e,t,i,n,r)=>t?{...i[e],types:{...i[e]&&i[e].types?i[e].types:{},[n]:r||!0}}:{};let x={value:!1,isValid:!1},b={value:!0,isValid:!0};var getCheckboxValue=e=>{if(!Array.isArray(e))return x;if(e.length>1){let t=e.filter(e=>e&&e.checked&&!e.disabled).map(e=>e.value);return{value:t,isValid:!!t.length}}let t=e[0];return t&&t.checked&&!t.disabled?t.attributes&&"value"in t.attributes?isUndefined(t.value)||""===t.value?b:{value:t.value,isValid:!0}:b:x};let T={isValid:!1,value:null};var getRadioValue=e=>Array.isArray(e)?e.reduce((e,t)=>t&&t.checked&&!t.disabled?{isValid:!0,value:t.value}:e,T):T;function getValidateError(e,t,i="validate"){if(isString(e)||Array.isArray(e)&&e.every(isString)||isBoolean(e)&&!e)return{type:i,message:isString(e)?e:"",ref:t}}var getValueAndMessage=e=>isObject(e)&&!isRegex(e)?e:{value:e,message:""},validateField=async(e,t,i,n,r,s)=>{let{ref:a,refs:o,required:l,maxLength:u,minLength:c,min:h,max:f,pattern:p,validate:m,name:g,valueAsNumber:y,mount:v,_c:x}=e._f,b=get(i,g);if(!v||t.has(g))return{};let T=o?o[0]:a,setCustomValidity=e=>{if(r&&T.reportValidity){let t=isBoolean(e)?"":e||"";o?o.forEach(e=>isFunction(e.setCustomValidity)&&e.setCustomValidity(t)):T.setCustomValidity(t),T.reportValidity()}},S={},w=isRadioInput(a),E=isCheckBoxInput(a),A=(y||isFileInput(a))&&isUndefined(a.value)&&isUndefined(b)||isHTMLElement(a)&&""===a.value&&!x||""===b||Array.isArray(b)&&!b.length,P=appendErrors.bind(null,g,n,S),getMinMaxMessage=(e,t,i,n=d.maxLength,r=d.minLength)=>{let s=e?t:i;S[g]={type:e?n:r,message:s,ref:a,...P(e?n:r,s)}};if(s?!Array.isArray(b)||!b.length:l&&(!(w||E)&&(A||isNullOrUndefined(b))||isBoolean(b)&&!b||E&&!getCheckboxValue(o).isValid||w&&!getRadioValue(o).isValid)){let{value:e,message:t}=isString(l)?{value:!!l,message:l}:getValueAndMessage(l);if(e&&(S[g]={type:d.required,message:t,ref:T,...P(d.required,t)},!n))return setCustomValidity(t),S}if(!A&&(!isNullOrUndefined(h)||!isNullOrUndefined(f))){let e,t;let i=getValueAndMessage(f),r=getValueAndMessage(h);if(isNullOrUndefined(b)||isDateObject(b)||isNaN(b)){let n=a.valueAsDate||new Date(b),convertTimeToDate=e=>new Date(new Date().toDateString()+" "+e),s="time"==a.type,o="week"==a.type;isString(i.value)&&b&&(e=s?convertTimeToDate(b)>convertTimeToDate(i.value):o?b>i.value:n>new Date(i.value)),isString(r.value)&&b&&(t=s?convertTimeToDate(b)<convertTimeToDate(r.value):o?b<r.value:n<new Date(r.value))}else{let n=a.valueAsNumber||(b?+b:b);isNullOrUndefined(i.value)||(e=n>i.value),isNullOrUndefined(r.value)||(t=n<r.value)}if((e||t)&&(getMinMaxMessage(!!e,i.message,r.message,d.max,d.min),!n))return setCustomValidity(S[g].message),S}if((u||c)&&!A&&(isString(b)||s&&Array.isArray(b))){let e=getValueAndMessage(u),t=getValueAndMessage(c),i=!isNullOrUndefined(e.value)&&b.length>+e.value,r=!isNullOrUndefined(t.value)&&b.length<+t.value;if((i||r)&&(getMinMaxMessage(i,e.message,t.message),!n))return setCustomValidity(S[g].message),S}if(p&&!A&&isString(b)){let{value:e,message:t}=getValueAndMessage(p);if(isRegex(e)&&!b.match(e)&&(S[g]={type:d.pattern,message:t,ref:a,...P(d.pattern,t)},!n))return setCustomValidity(t),S}if(m){if(isFunction(m)){let e=await m(b,i),t=getValidateError(e,T);if(t&&(S[g]={...t,...P(d.validate,t.message)},!n))return setCustomValidity(t.message),S}else if(isObject(m)){let e={};for(let t in m){if(!isEmptyObject(e)&&!n)break;let r=getValidateError(await m[t](b,i),T,t);r&&(e={...r,...P(t,r.message)},n||setCustomValidity(r.message),n&&(S[g]=e))}if(!isEmptyObject(e)&&(S[g]={ref:T,...e},!n))return S}}let V=S[g];return setCustomValidity(!V||V.message),S},convertToArrayPayload=e=>Array.isArray(e)?e:[e],compact=e=>Array.isArray(e)?e.filter(Boolean):[];function unset(e,t){if(isString(t)&&Object.prototype.hasOwnProperty.call(e,t))return delete e[t],e;let i=Array.isArray(t)?t:isKey(t)?[t]:stringToPath(t);if(i.some(e=>
1m.includes(String(e))))return e;let n=1===i.length?e:function(e,t){let i=t.length-1,n=0;for(;n<i;){if(isNullOrUndefined(e)){e=void 0;break}e=e[t[n]],n++}return e}(e,i),r=i.length-1,s=i[r];return n&&delete n[s],0!==r&&(isObject(n)&&isEmptyObject(n)||Array.isArray(n)&&function(e){for(let t in e)if(e.hasOwnProperty(t)&&!isUndefined(e[t]))return!1;return!0}(n))&&unset(e,i.slice(0,-1)),e}let S=a.createContext(null);S.displayName="HookFormContext";var createSubject=()=>{let e=[];return{get observers(){return e},next:t=>{for(let i of e)i.next&&i.next(t)},subscribe:t=>(e.push(t),{unsubscribe:()=>{e=e.filter(e=>e!==t)}}),unsubscribe:()=>{e=[]}}};let hasOwn=(e,t)=>null!==e&&isObjectType(e)&&Object.prototype.hasOwnProperty.call(e,t);var has=(e,t)=>{if(!t)return!1;let i=e;for(let n of isKey(t)?[t]:stringToPath(t)){if(!hasOwn(i,n))return hasOwn(e,t);i=i[n]}return!0},isMultipleSelect=e=>"select-multiple"===e.type,isRadioOrCheckbox=e=>isRadioInput(e)||isCheckBoxInput(e),live=e=>isHTMLElement(e)&&e.isConnected;function isDirtyContainer(e){return Array.isArray(e)||isObject(e)}var objectHasFunction=e=>{for(let t in e)if(isFunction(e[t]))return!0;return!1};function isTraversable(e){return Array.isArray(e)||isObject(e)&&!objectHasFunction(e)}function isRegisteredLeaf(e){return!!(e&&"_f"in e)}function isEmptyDirtyContainer(e){return Array.isArray(e)?!e.some(e=>!isUndefined(e)):!Object.keys(e).length}function clearDirtyField(e,t){Array.isArray(e)?e[t]=void 0:delete e[t]}function markFieldsDirty(e,t={},i){for(let n in e){let r=e[n],s=i&&i[n];!isTraversable(r)||Array.isArray(r)&&isRegisteredLeaf(s)?isUndefined(r)||(t[n]=!0):(t[n]=Array.isArray(r)?[]:{},markFieldsDirty(r,t[n],s),isEmptyDirtyContainer(t[n])&&clearDirtyField(t,n))}return t}function getDirtyFields(e,t,i,n){for(let r in i||(i=markFieldsDirty(t,{},n)),e){let s=e[r],a=n&&n[r];!isTraversable(s)||Array.isArray(s)&&isRegisteredLeaf(a)?deepEqual(s,t[r])?clearDirtyField(i,r):i[r]=!0:(isUndefined(t)||isPrimitive(i[r])?i[r]=markFieldsDirty(s,Array.isArray(s)?[]:{},a):getDirtyFields(s,isNullOrUndefined(t)?{}:t[r],i[r],a),isEmptyDirtyContainer(i[r])&&clearDirtyField(i,r))}return i}var getFieldArrayItemNames=(e,t)=>{let i=t.split("."),n=[],r=i[0];for(let t=1;t<i.length;r+="."+i[t++])!isNaN(+i[t])&&e.has(r)&&n.push(`${r}.${i[t]}`);return n},getFieldValueAs=(e,{valueAsNumber:t,valueAsDate:i,setValueAs:n})=>isUndefined(e)?e:t?""===e?NaN:e?+e:e:i&&isString(e)?new Date(e):n?n(e):e;function getFieldValue(e){let t=e.ref;return isFileInput(t)?t.files:isRadioInput(t)?getRadioValue(e.refs).value:isMultipleSelect(t)?[...t.selectedOptions].map(({value:e})=>e):isCheckBoxInput(t)?getCheckboxValue(e.refs).value:getFieldValueAs(t.value,e)}var getResolverOptions=(e,t,i,n)=>{let r={};for(let i of e){let e=get(t,i);e&&set(r,i,e._f)}return{criteriaMode:i,names:[...e],fields:r,shouldUseNativeValidation:n}},getRuleValue=e=>isUndefined(e)?e:isRegex(e)?e.source:isObject(e)?isRegex(e.value)?e.value.source:e.value:e;let w="AsyncFunction";var hasPromiseValidation=e=>{if(!e||!e.validate)return!1;if(isFunction(e.validate))return e.validate.constructor.name===w;if(isObject(e.validate)){for(let t in e.validate)if(e.validate[t].constructor.name===w)return!0}return!1},hasValidation=e=>e.mount&&(e.required||!isUndefined(e.required)&&!1!==e.required||!isUndefined(e.min)||!isUndefined(e.max)||!isUndefined(e.maxLength)||!isUndefined(e.minLength)||e.pattern||e.validate);function schemaErrorLookup(e,t,i){let n=get(e,i);if((null==n?void 0:n.type)||(null==n?void 0:n.message)||Array.isArray(n))return{error:n,name:i};let r=i.split(".");for(;r.length;){let n=r.join("."),s=get(t,n),a=get(e,n);if(s&&!Array.isArray(s)&&i!==n)break;if(a&&a.type)return{name:n,error:a};if(a&&a.root&&a.root.type)return{name:`${n}.root`,error:a.root};r.pop()}return{name:i}}var shouldRenderFormState=(e,t,i,n)=>{i(e);let r=Object.keys(e).filter(e=>"name"!==e);return!r.length||n&&r.length>=Object.keys(t).length||r.find(e=>t[e]===(!n||c.all))},shouldSubscribeByName=(e,t,i)=>!e||!t||e===t||convertToArrayPayload(e).some(e=>e&&(i?e===t||e.startsWith(t+"."):e.startsWith(t)||t.startsWith(e))),skipValidation=(e,t,i,n,r)=>!r.isOnAll&&(!i&&r.isOnTouch?!(t||e):(i?n.isOnBlur:r.isOnBlur)?!e:(i?!n.isOnChange:!r.isOnChange)||e),unsetEmptyArray=(e,t)=>{let i=get(e,t);compact(i).length||(null==i?void 0:i.root)||unset(e,t)};let E={mode:c.onSubmit,reValidateMode:c.onChange,shouldFocusError:!0},updateDirtyFields=(e,t)=>{for(let i in e)i in t||delete e[i];Object.assign(e,t)},A={submitCount:0,isDirty:!1,isReady:!1,isValidating:!1,isSubmitted:!1,isSubmitting:!1,isSubmitSuccessful:!1,isValid:!1,touchedFields:{},dirtyFields:{},validatingFields:{}};var P=i(5988),V=i(78895),D=i(6014),C=i(44680);let k={"Content-Type":"application/json"};var forms_ContactForm=function(){let{placeholders:e={},titles:t={},textAreaClassName:i="",source:r}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},o={name:"Name",email:"[email protected]",companyName:"Company Name",budget:"Est. Budget",message:"Message",...e},[m,g]=(0,a.useState)(""),[y,x]=(0,a.useState)(""),b=null!=r?r:"Website contact form",T="bg-gray-200 w-full rounded px-4 py-2 text-black  focus:ring-2 focus:ring-highlight focus:outline-none outline-none border-none",S="text-rose-500 text-xs",[w,_]=(0,a.useState)(!1),[O,R]=(0,a.useState)(!1),[F,M]=(0,a.useState)(!1),[j,L]=(0,a.useState)([]),[N,I]=(0,a.useState)(""),[B,U]=(0,a.useState)(""),{register:W,handleSubmit:$,formState:{errors:q},getValues:z}=function(e={}){let t=a.useRef(void 0),i=a.useRef(void 0),n=a.useRef(e.formControl),r=a.useRef(!!e.validate),[s,o]=a.use
1State(()=>({...cloneObject(A),isLoading:isFunction(e.defaultValues),errors:e.errors||{},disabled:e.disabled||!1,defaultValues:isFunction(e.defaultValues)?void 0:e.defaultValues}));if(!t.current||e.formControl&&n.current!==e.formControl){if(n.current=e.formControl,e.formControl)t.current={...e.formControl,formState:s},e.defaultValues&&!isFunction(e.defaultValues)&&e.formControl.reset(e.defaultValues,e.resetOptions);else{let{formControl:i,...n}=function(e={}){let t={...E,...e},i={...cloneObject(A),isLoading:isFunction(t.defaultValues),errors:t.errors||{},disabled:t.disabled||!1},n={},r=(isObject(t.defaultValues)||isObject(t.values))&&cloneObject(t.defaultValues||t.values)||{},s=t.shouldUnregister?{}:cloneObject(r),a={action:!1,actionArrayLengths:new Map,mount:!1,watch:!1,keepIsValid:!1},o={mount:new Set,disabled:new Set,unMount:new Set,array:new Set,watch:new Set,registerName:new Set},m={},g={},y=0,v=getValidationModes(t.mode),x=getValidationModes(t.reValidateMode),b={isDirty:!1,dirtyFields:!1,validatingFields:!1,touchedFields:!1,isValidating:!1,isValid:!1,errors:!1},T={...b},S={...T},_isTracked=(...e)=>e.some(e=>T[e]||S[e]),w={array:createSubject(),state:createSubject()},P=0,V=0,D=t.criteriaMode===c.all,debounce=(e,t)=>i=>{clearTimeout(g[e]),g[e]=setTimeout(t,i)},cancelDelayedError=e=>{clearTimeout(g[e]),delete g[e],delete m[e]},cancelDelayedErrorTree=e=>{cancelDelayedError(e);let t=`${e}.`;for(let e of Object.keys(m))e.startsWith(t)&&cancelDelayedError(e)},_setValid=async e=>{if(!a.keepIsValid&&!t.disabled&&(_isTracked("isValid")||e)){let e;let r=++P;t.resolver?(e=isEmptyObject((await _runSchema()).errors),r===P&&_updateIsValidating()):e=await executeBuiltInValidation({fields:n,onlyCheckValid:!0,eventType:u.VALID}),r===P&&e!==i.isValid&&w.state.next({isValid:e})}},_updateIsValidating=(e,n)=>{!t.disabled&&_isTracked("isValidating","validatingFields")&&((e||o.mount).forEach(e=>{e&&(n?set(i.validatingFields,e,n):unset(i.validatingFields,e))}),w.state.next({validatingFields:i.validatingFields,isValidating:!isEmptyObject(i.validatingFields)}))},_updateDirtyFields=()=>{i.dirtyFields=getDirtyFields(r,s,void 0,n)},updateErrors=(e,t)=>{set(i.errors,e,t),i.errors={...i.errors},w.state.next({errors:i.errors})},hasExplicitNullIntermediate=e=>{let t=isKey(e)?[e]:stringToPath(e),i=s,n=r;for(let e=0;e<t.length-1;e++){let r=t[e];if(i=isNullOrUndefined(i)?i:i[r],n=isNullOrUndefined(n)?n:n[r],null===i&&null!==n)return!0}return!1},isStaleArrayField=e=>{if(!a.actionArrayLengths.size)return!1;let t=isKey(e)?[e]:stringToPath(e),i=s,n="",r=-1,o=0;for(let e=0;e<t.length&&!isNullOrUndefined(i);e++){let s=t[e];if(n=n?`${n}.${s}`:s,Array.isArray(i)&&+s>=i.length)return -1!==r&&(e!==r||+s<o);if(a.actionArrayLengths.has(n)&&(r=e+1,o=a.actionArrayLengths.get(n)),isUndefined(i=i[s])&&-1!==r&&e>r&&+t[r]<o)return!0}return!1},updateValidAndValue=(l,u,c,d)=>{let h=get(n,l);if(h){if(hasExplicitNullIntermediate(l)||isStaleArrayField(l))return;let n=isUndefined(get(s,l)),f=get(s,l,isUndefined(c)?get(r,l):c);if(isUndefined(f)||d&&d.defaultChecked||u?set(s,l,u?f:getFieldValue(h._f)):setFieldValue(l,f),a.mount&&!a.action){if(t.resolver&&_isTracked("isValidating","validatingFields")?Promise.resolve().then(()=>_setValid()):_setValid(),n&&i.isDirty&&_isTracked("isDirty")){let e=_getDirty();e||(i.isDirty=!1,w.state.next({...i}))}e.shouldUnregister&&n&&!isUndefined(get(s,l))&&isWatched(l,o)&&(a.watch=!0)}}},updateTouchAndDirty=(e,a,o,l,u)=>{let c=!1,d=!1,h={name:e};if(!t.disabled||!0===l){if(!o||l){let t=deepEqual(get(r,e),a);_isTracked("isDirty")&&(d=i.isDirty,i.isDirty=h.isDirty=!t||_getDirty(),c=d!==h.isDirty),d=!!get(i.dirtyFields,e),t!==i.isDirty?updateDirtyFields(i.dirtyFields,getDirtyFields(r,s,void 0,n)):t?unset(i.dirtyFields,e):set(i.dirtyFields,e,!0),h.dirtyFields=i.dirtyFields,c=c||_isTracked("dirtyFields")&&!t!==d}if(o){let t=get(i.touchedFields,e);t||(set(i.touchedFields,e,o),h.touchedFields=i.touchedFields,c=c||_isTracked("touchedFields")&&t!==o)}c&&u&&w.state.next(h)}return c?h:{}},shouldRenderByError=(e,n,r,s)=>{let a=get(i.errors,e),o=_isTracked("isValid")&&isBoolean(n)&&i.isValid!==n;if(t.delayError&&r?(m[e]=debounce(e,()=>updateErrors(e,r)),m[e](t.delayError)):(cancelDelayedError(e),r?set(i.errors,e,r):unset(i.errors,e),i.errors={...i.errors}),(r?!deepEqual(a,r):a)||!isEmptyObject(s)||o){let t={...s,...o&&isBoolean(n)?{isValid:n}:{},errors:i.errors,name:e};w.state.next(t)}},_runSchema=async e=>(_updateIsValidating(e,!0),await t.resolver(s,t.context,getResolverOptions(e||o.mount,n,t.criteriaMode,t.shouldUseNativeValidation))),executeSchemaAndUpdateState=async e=>{let t=V,{errors:r}=await _runSchema(e);if(t!==V)return r;if(_updateIsValidating(e),e){for(let t of e){let e=get(r,t);cancelDelayedErrorTree(t);let s=o.array.has(t)&&isObject(e)&&!Object.keys(e).some(e=>!Number.isNaN(Number(e))),a=get(n,t),l=isObject(a)&&Object.keys(a).some(e=>"_f"!==e);s?updateFieldArrayRootError(i.errors,{[t]:e},t):(null==e?void 0:e.type)||(null==e?void 0:e.message)||Array.isArray(e)||isObject(e)&&l?set(i.errors,t,e):unset(i.errors,t)}i.errors={...i.errors}}else Object.keys(m).forEach(cancelDelayedError),i.errors=r;return r},validateForm=async({name:e,eventType:n})=>{if(t.validate){let r=V,a=await t.validate({formValues:s,formState:i,name:e,eventType:n});if(r!==V)return!0;
1if(isObject(a)){let e=!0;for(let t in clearErrors(f),a){let i=a[t];i&&(e=!1,setError(`${f}.${t}`,{message:isString(i.message)?i.message:"",type:i.type||d.validate}))}return e}if(isString(a)||!a)return setError(f,{message:a||"",type:d.validate}),!1;clearErrors(f)}return!0},executeBuiltInValidation=async({fields:n,onlyCheckValid:r,name:a,eventType:l,context:u={valid:!0,runRootValidation:!1}})=>{let c=V;if(t.validate&&!u.runRootValidation){u.runRootValidation=!0;let e=await validateForm({name:a,eventType:l});if(!e&&(u.valid=!1,r))return u.valid}for(let a in n){let d=n[a];if(d){let{_f:n,...h}=d;if(n){let a=o.array.has(n.name),l=d._f&&hasPromiseValidation(d._f),h=_isTracked("isValidating","validatingFields");l&&h&&_updateIsValidating([n.name],!0);let f=await validateField(d,o.disabled,s,D,t.shouldUseNativeValidation&&!r,a);if(c!==V)return u.valid;if(l&&h&&_updateIsValidating([n.name]),f[n.name]&&(u.valid=!1,r)||(r||(cancelDelayedError(n.name),get(f,n.name)?a?updateFieldArrayRootError(i.errors,f,n.name):set(i.errors,n.name,f[n.name]):unset(i.errors,n.name)),e.shouldUseNativeValidation&&f[n.name]))break}isEmptyObject(h)||await executeBuiltInValidation({context:u,onlyCheckValid:r,fields:h,name:a,eventType:l})}}return u.valid},_getDirty=(e,t)=>(e&&t&&set(s,e,t),!deepEqual(a.mount?s:r,r)),_getWatch=(e,t,i)=>generateWatchOutput(e,o,{...a.mount?s:isUndefined(t)||isString(e)?r:t},i,t),setFieldValue=(e,t,i={},r=!1,a=!1,o=!1)=>{let l=get(n,e),u=t;if(l){let i=l._f;!i||(i.disabled||set(s,e,getFieldValueAs(t,i)),u=isHTMLElement(i.ref)&&isNullOrUndefined(t)?"":t,isMultipleSelect(i.ref)?[...i.ref.options].forEach(e=>e.selected=u.includes(e.value)):i.refs?isCheckBoxInput(i.ref)?i.refs.forEach(e=>{e.defaultChecked&&e.disabled||(Array.isArray(u)?e.checked=!!u.find(t=>t===e.value):e.checked=u===e.value||!!u)}):i.refs.forEach(e=>e.checked=e.value===u):isFileInput(i.ref)?i.ref.value="":(i.ref.value=u,i.ref.type||a||o||w.state.next({name:e,values:r?s:cloneObject(s)})))}(i.shouldDirty||i.shouldTouch)&&updateTouchAndDirty(e,l&&l._f&&!l._f.disabled&&(l._f.valueAsNumber||l._f.valueAsDate||l._f.setValueAs)?getFieldValueAs(t,l._f):u,i.shouldTouch,i.shouldDirty,!a),i.shouldValidate&&trigger(e,{delayError:i.delayError}),i.shouldValidate&&l&&l._f&&l._f.deps&&(!Array.isArray(l._f.deps)||l._f.deps.length>0)&&trigger(l._f.deps)},setFieldValues=(e,t,i,r=!1,a=!1,l=!1)=>{for(let u in o.array.has(e)&&w.array.next({name:e,values:r?s:cloneObject(s)}),t){if(!t.hasOwnProperty(u))continue;let s=t[u],c=e+"."+u,d=get(n,c);(o.array.has(e)||isObject(s)||d&&!d._f)&&!isDateObject(s)?setFieldValues(c,s,i,r,a,l):setFieldValue(c,s,i,r,a,l)}},_setValue=(e,t,r,l,u=!1)=>{let c=get(n,e),d=o.array.has(e),h=l?t:cloneObject(t),f=get(s,e),p=deepEqual(f,h);if(p||set(s,e,h),d)w.array.next({name:e,values:l?s:cloneObject(s)}),_isTracked("isDirty","dirtyFields")&&r.shouldDirty&&(_updateDirtyFields(),u||w.state.next({name:e,dirtyFields:i.dirtyFields,isDirty:_getDirty(e,h)})),r.shouldValidate&&trigger(e,{delayError:r.delayError});else{let t=Array.isArray(h)&&!h.length||isEmptyObject(h),i=!p&&!u;!c||c._f||isNullOrUndefined(h)||t?setFieldValue(e,h,r,l,u,i):setFieldValues(e,h,r,l,u,i)}if(!p&&!u){let t=isWatched(e,o),n=l?s:cloneObject(s);if(w.state.next({...t&&i,name:a.mount||t?e:void 0,values:n}),!d)for(let t of getFieldArrayItemNames(o.array,e))w.state.next({name:t,values:n})}},setValue=(e,t,i={})=>_setValue(e,t,i,!1),onChange=async e=>{a.mount=!0;let r=e.target,l=r.name,c=!0,d=get(n,l),_updateIsFieldValueUpdated=e=>{c=Number.isNaN(e)||isDateObject(e)&&isNaN(e.getTime())||deepEqual(e,get(s,l,e))};if(d){let a,h;let f=r.type?getFieldValue(d._f):getEventValue(e),p=e.type===u.BLUR||e.type===u.FOCUS_OUT,g=!hasValidation(d._f)&&!t.validate&&!t.resolver&&!get(i.errors,l)&&!d._f.deps,b=g||skipValidation(p,get(i.touchedFields,l),i.isSubmitted,x,v),T=isWatched(l,o,p);if(set(s,l,cloneObject(f)),p){if(!r||!r.readOnly){d._f.onBlur&&d._f.onBlur(e);let t=m[l];t&&t(0)}}else d._f.onChange&&d._f.onChange(e);let S=updateTouchAndDirty(l,f,p),E=!isEmptyObject(S)||T;if(p||w.state.next({name:l,type:e.type,...y?{values:cloneObject(s)}:{}}
1),b)return(!g||!i.isValid)&&_isTracked("isValid")&&("onBlur"===t.mode?p&&_setValid():p||_setValid()),E&&w.state.next({name:l,...T?{}:S});if(!t.resolver&&t.validate&&await validateForm({name:l,eventType:e.type}),!p&&T&&w.state.next({...i}),t.resolver){let e=V,{errors:t}=await _runSchema([l]);if(e!==V)return;if(_updateIsValidating([l]),_updateIsFieldValueUpdated(f),!c){isEmptyObject(S)||w.state.next(S);return}let r=schemaErrorLookup(i.errors,n,l),s=schemaErrorLookup(t,n,r.name||l);a=s.error,l=s.name,h=isEmptyObject(t)}else{let i=V;if(_updateIsValidating([l],!0),a=(await validateField(d,o.disabled,s,D,t.shouldUseNativeValidation))[l],i!==V)return;if(_updateIsValidating([l]),_updateIsFieldValueUpdated(f),c){if(a)h=!1;else if(_isTracked("isValid")&&(h=await executeBuiltInValidation({fields:n,onlyCheckValid:!0,name:l,eventType:e.type}),i!==V))return}}c&&(d._f.deps&&(!Array.isArray(d._f.deps)||d._f.deps.length>0)&&trigger(d._f.deps),shouldRenderByError(l,h,a,S))}},_focusInput=(e,t)=>{if(get(i.errors,t)&&e.focus)return e.focus(),1},trigger=async(e,r={})=>{let s,a;let l=convertToArrayPayload(e);if(t.resolver){let t=V,i=await executeSchemaAndUpdateState(isUndefined(e)?e:l);if(s=isEmptyObject(i),a=e?!l.some(e=>get(i,e)):s,t!==V)return a}else e?((a=(await Promise.all(l.map(async e=>{let t=get(n,e);return await executeBuiltInValidation({fields:t&&t._f?{[e]:t}:t,eventType:u.TRIGGER})}))).every(Boolean))||i.isValid)&&_setValid():a=s=await executeBuiltInValidation({fields:n,name:e,eventType:u.TRIGGER});if(r.delayError&&t.delayError&&isString(e)){let n=get(i.errors,e);n?(unset(i.errors,e),m[e]=debounce(e,()=>updateErrors(e,n)),m[e](t.delayError)):cancelDelayedError(e)}if(r.shouldTouch)for(let t of e?l:o.mount)o.array.has(t)||set(i.touchedFields,t,!0);return w.state.next({...!isString(e)||_isTracked("isValid")&&s!==i.isValid?{}:{name:e},...t.resolver||!e?{isValid:s}:{},...r.shouldTouch&&_isTracked("touchedFields")?{touchedFields:i.touchedFields}:{},errors:i.errors}),r.shouldFocus&&!a&&iterateFieldsByAction(n,_focusInput,e?l:o.mount),a},getFieldState=(e,t)=>{let n=t||i,r=get(n.errors,e);return{invalid:!!r,isDirty:!!get(n.dirtyFields,e),error:r,isValidating:!!get(n.validatingFields,e),isTouched:!!get(n.touchedFields,e)}},clearErrors=e=>{let t=e?convertToArrayPayload(e):void 0;t?t.forEach(e=>{cancelDelayedErrorTree(e),unset(i.errors,e),w.state.next({name:e,errors:i.errors})}):(Object.keys(m).forEach(cancelDelayedError),i.errors={},w.state.next({errors:i.errors}))},setError=(e,t,r)=>{cancelDelayedErrorTree(e);let s=(get(n,e,{_f:{}})._f||{}).ref,a=get(i.errors,e)||{},{ref:o,message:l,type:u,types:c,...d}=a;set(i.errors,e,{...d,...t,ref:s}),w.state.next({name:e,errors:i.errors,isValid:!1}),r&&r.shouldFocus&&s&&s.focus&&s.focus()},_subscribe=e=>{var t;let n=!!(null===(t=e.formState)||void 0===t?void 0:t.values);n&&y++;let{unsubscribe:a}=w.state.subscribe({next:t=>{if(shouldSubscribeByName(e.name,t.name,e.exact)&&shouldRenderFormState(t,e.formState||T,_setFormState,e.reRenderRoot)){let n={...s};e.callback({values:n,...i,...t,defaultValues:r})}}});if(!n)return a;let o=!1;return()=>{o||(o=!0,y--,a())}},unregister=(e,a={})=>{for(let l of e?convertToArrayPayload(e):o.mount)o.mount.delete(l),o.array.delete(l),o.disabled.delete(l),a.keepValue||(unset(n,l),unset(s,l)),a.keepError||(cancelDelayedErrorTree(l),unset(i.errors,l)),a.keepDirty||unset(i.dirtyFields,l),a.keepTouched||unset(i.touchedFields,l),a.keepIsValidating||unset(i.validatingFields,l),t.shouldUnregister||a.keepDefaultValue||unset(r,l);y&&w.state.next({values:cloneObject(s)}),w.state.next({...i,...a.keepDirty?{}:{isDirty:_getDirty()},...a.keepIsValidating?{}:{isValidating:!isEmptyObject(i.validatingFields)}}),a.keepIsValid||_setValid()},_setDisabledField=({disabled:e,name:t})=>{if(isBoolean(e)&&a.mount||e||o.disabled.has(t)){let i=o.disabled.has(t),n=!!e;e?o.disabled.add(t):o.disabled.delete(t),i!==n&&a.mount&&!a.action&&_setValid()}},register=(e,i={})=>{let s=get(n,e),l=isBoolean(i.disabled)||isBoolean(t.disabled),u=!o.registerName.has(e)&&s&&s._f&&!s._f.mount;if(set(n,e,{...s||{},_f:{...s&&s._f?s._f:{ref:{name:e}},name:e,mount:!0,...i}}),o.mount.add(e),s&&s._f){let t=get(n,e);for(let e of h)e in i||delete t._f[e]}return s&&!u?_setDisabledField({disabled:isBoolean(i.disabled)?i.disabled:t.disabled,name:e}):updateValidAndValue(e,!0,i.value),{...l?{disabled:i.disabled||t.disabled}:{},...t.progressive?{required:!!i.required,min:getRuleValue(i.min),max:getRuleValue(i.max),minLength:getRuleValue(i.minLength),maxLength:getRuleValue(i.maxLength),pattern:getRuleValue(i.pattern)}:{}
1,name:e,onChange,onBlur:onChange,ref:l=>{if(l){o.registerName.add(e),register(e,i),o.registerName.delete(e),s=get(n,e);let t=isUndefined(l.value)&&l.querySelectorAll&&l.querySelectorAll("input,select,textarea")[0]||l,a=isRadioOrCheckbox(t),u=s._f.refs||[];if(a?u.find(e=>e===t):t===s._f.ref)return;let c={...s._f};a?(c.refs=[...u.filter(live),t,...Array.isArray(get(r,e))?[{}]:[]],c.ref={type:t.type,name:e}):(c.ref=t,delete c.refs),set(n,e,{_f:c}),updateValidAndValue(e,!1,void 0,t)}else(s=get(n,e,{}))._f&&(s._f.mount=!1),(t.shouldUnregister||i.shouldUnregister)&&!(isNameInFieldArray(o.array,e)&&a.action)&&o.unMount.add(e)}}},_focusError=()=>t.shouldFocusError&&!t.shouldUseNativeValidation&&iterateFieldsByAction(n,_focusInput,o.mount),handleSubmit=(e,r)=>async a=>{let l,c;a&&(a.preventDefault&&a.preventDefault(),a.persist&&a.persist());let d=cloneObject(s);if(w.state.next({isSubmitting:!0}),t.resolver){let e=V,{errors:t,values:n}=await _runSchema();if(e!==V)return;_updateIsValidating(),Object.keys(m).forEach(cancelDelayedError),i.errors=t,d=cloneObject(n)}else{let e=V;if(await executeBuiltInValidation({fields:n,eventType:u.SUBMIT}),e!==V)return;unset(i.errors,p)}if(o.disabled.size)for(let e of o.disabled)unset(d,e);if(isEmptyObject(i.errors)){w.state.next({errors:{}});try{l=await e(d,a)}catch(e){c=e}}else r&&await r({...i.errors},a),_focusError(),setTimeout(_focusError);if(w.state.next({isSubmitted:!0,isSubmitting:!1,isSubmitSuccessful:isEmptyObject(i.errors)&&!c,submitCount:i.submitCount+1,errors:i.errors}),c)throw c;return l},_reset=(e,u={})=>{V++;let c=e?cloneObject(e):r,d=cloneObject(c),h=isEmptyObject(e),f=n;if(Object.keys(m).forEach(cancelDelayedError),u.keepDefaultValues||(r=c),!u.keepValues){if(u.keepDirtyValues){let e=new Set([...o.mount,...function collectDirtyFieldNames(e,t,i="",n=[]){for(let r in e){let s=i?`${i}.${r}`:r,a=e[r];isDirtyContainer(a)&&isDirtyContainer(get(t,s))?collectDirtyFieldNames(a,t,s,n):n.push(s)}return n}(getDirtyFields(r,s,void 0,f),i.dirtyFields)]);for(let t of e){let e=get(i.dirtyFields,t),n=get(s,t),r=get(d,t);e&&!isUndefined(n)?set(d,t,n):e||isUndefined(r)||setValue(t,r)}}else{if(l&&isUndefined(e))for(let e of o.mount){let t=get(n,e);if(t&&t._f){let e=Array.isArray(t._f.refs)?t._f.refs[0]:t._f.ref;if(isHTMLElement(e)){let t=e.closest("form");if(t){t.reset();break}}}}if(u.keepFieldsRef)for(let e of o.mount)setValue(e,get(d,e));else n={}}if(t.shouldUnregister){if(s=u.keepDefaultValues?cloneObject(r):{},u.keepFieldsRef)for(let e of o.mount)set(s,e,get(d,e))}else s=cloneObject(d);w.array.next({values:{...d}}),w.state.next({name:void 0,type:void 0,values:{...d}})}o={mount:u.keepDirtyValues?o.mount:new Set,unMount:new Set,array:new Set,registerName:new Set,disabled:new Set,watch:new Set,watchAll:!1,focus:""},a.mount=!T.isValid||!!u.keepIsValid||!!u.keepDirtyValues||!t.shouldUnregister&&!isEmptyObject(d),a.watch=!!t.shouldUnregister,a.keepIsValid=!!u.keepIsValid,a.action=!1,a.actionArrayLengths.clear(),u.keepErrors||(i.errors={}),w.state.next({submitCount:u.keepSubmitCount?i.submitCount:0,isDirty:!h&&(u.keepDirty?i.isDirty:u.keepValues?_getDirty():!!(u.keepDefaultValues&&!deepEqual(e,r))),isSubmitted:!!u.keepIsSubmitted&&i.isSubmitted,dirtyFields:h?{}:u.keepDirtyValues?u.keepDefaultValues&&s?getDirtyFields(r,s,void 0,f):i.dirtyFields:u.keepDefaultValues&&e?getDirtyFields(r,e,void 0,f):u.keepDirty?i.dirtyFields:u.keepValues?getDirtyFields(r,s,void 0,f):{},touchedFields:u.keepTouched?i.touchedFields:{},...u.keepIsValidating||!i.isValidating&&isEmptyObject(i.validatingFields)?null:{validatingFields:{},isValidating:!1},errors:u.keepErrors?i.errors:{},isSubmitSuccessful:!!u.keepIsSubmitSuccessful&&i.isSubmitSuccessful,isSubmitting:!1,defaultValues:r})},reset=(e,i)=>_reset(isFunction(e)?e(s):e,{...t.resetOptions,...i}),_setFormState=e=>{let{name:t,type:n,values:r,...s}=e;i={...i,...s}};w.state.subscribe({next:_setFormState});let C={control:{register,unregister,getFieldState,handleSubmit,setError,_subscribe,_runSchema,_updateIsValidating,_focusError,_getWatch,_getDirty,_setValid,_setFieldArray:(e,r=[],o,l,u=!0,c=!0)=>
1{if(l&&o&&!t.disabled){a.action=!0;let t=get(n,e);if(a.actionArrayLengths.has(e)||a.actionArrayLengths.set(e,Array.isArray(t)?t.length:0),c&&Array.isArray(t)){let i=o(t,l.argA,l.argB);u&&set(n,e,i)}let s=get(i.errors,e);if(c&&Array.isArray(s)){let t=s.root,n=o(s,l.argA,l.argB)||s;t&&(n.root=t),u&&set(i.errors,e,n),unsetEmptyArray(i.errors,e)}let d=get(i.touchedFields,e),h=c&&Array.isArray(d);if(h){let t=o(d,l.argA,l.argB);u&&set(i.touchedFields,e,t)}let f=get(i.dirtyFields,e);if(c&&Array.isArray(f)){let t=o(f,l.argA,l.argB)||f;u&&set(i.dirtyFields,e,t)}_isTracked("dirtyFields")&&_updateDirtyFields(),w.state.next({name:e,isDirty:_getDirty(e,r),dirtyFields:i.dirtyFields,...h&&{touchedFields:i.touchedFields},errors:i.errors,isValid:i.isValid})}else set(s,e,r)},_setDisabledField,_setErrors:e=>{Object.keys(m).forEach(cancelDelayedError);let t=!isEmptyObject(e);i.errors=e,w.state.next({errors:i.errors,...t?{isValid:!1}:{}}),!t&&a.mount&&_setValid()},_getFieldArray:e=>compact(get(a.mount?s:r,e,t.shouldUnregister?get(r,e,[]):[])),_reset,_resetDefaultValues:()=>isFunction(t.defaultValues)&&t.defaultValues().then(e=>{reset(e,t.resetOptions),w.state.next({isLoading:!1})}),_removeUnmounted:()=>{for(let e of o.unMount){let t=get(n,e);t&&(t._f.refs?t._f.refs.every(e=>!live(e)):!live(t._f.ref))&&unregister(e)}o.unMount=new Set},_disableForm:e=>{isBoolean(e)&&(w.state.next({disabled:e}),iterateFieldsByAction(n,(t,i)=>{let r=get(n,i);r&&(t.disabled=r._f.disabled||e,Array.isArray(r._f.refs)&&r._f.refs.forEach(t=>{t.disabled=r._f.disabled||e}))},0))},_subjects:w,_proxyFormState:T,get _fields(){return n},get _formValues(){return s},get _state(){return a},set _state(value){a=value},get _defaultValues(){return r},get _names(){return o},set _names(value){o=value},get _formState(){return i},get _options(){return t},set _options(value){v=getValidationModes((t={...t,...value}).mode),x=getValidationModes(t.reValidateMode),D=t.criteriaMode===c.all}},subscribe:e=>(a.mount=!0,S={...S,...e.formState},_subscribe({...e,formState:{...b,...e.formState}})),trigger,register,handleSubmit,watch:(e,t)=>{if(isFunction(e)){y++;let{unsubscribe:i}=w.state.subscribe({next:i=>"values"in i&&e(i.values||_getWatch(void 0,t),i)}),n=!1;return{unsubscribe:()=>{n||(n=!0,y--,i())}}}return _getWatch(e,t,!0)},setValue,setValues:(e,t={})=>{let n=isFunction(e)?e(s):e;if(!deepEqual(s,n)){for(let e of(s={...s,...n},o.mount))has(n,e)&&_setValue(e,get(n,e),t,!0,!0);w.state.next({...i,name:void 0,type:void 0,...y?{values:s}:{}}),t.shouldValidate&&_setValid()}},getValues:(e,t)=>{let n={...a.mount?s:r};return t&&(n=function extractFormValues(e,t){let i=Array.isArray(e)?[]:{};for(let n in e)if(e.hasOwnProperty(n)){let r=e[n],s=t[n];r&&(isObject(r)||Array.isArray(r))&&s?i[n]=extractFormValues(r,s):e[n]&&(i[n]=s)}return i}(t.dirtyFields?i.dirtyFields:i.touchedFields,n)),isUndefined(e)?n:isString(e)?get(n,e):e.map(e=>get(n,e))},getErrors:e=>isUndefined(e)?{...i.errors}:isString(e)?get(i.errors,e):e.map(e=>get(i.errors,e)),reset,resetField:(e,t={})=>{get(n,e)&&(unset(i.validatingFields,e),isUndefined(t.defaultValue)?setValue(e,cloneObject(get(r,e))):(setValue(e,t.defaultValue),set(r,e,cloneObject(t.defaultValue))),t.keepTouched||unset(i.touchedFields,e),t.keepDirty||(unset(i.dirtyFields,e),i.isDirty=t.defaultValue?_getDirty(e,cloneObject(get(r,e))):_getDirty()),t.keepError||(cancelDelayedErrorTree(e),unset(i.errors,e),_setValid()),w.state.next({...i,isValidating:!isEmptyObject(i.validatingFields)}))},resetDefaultValues:(e,t={})=>{if(r=cloneObject(e),!t.keepDirty){let e=getDirtyFields(r,s,void 0,n);i.dirtyFields=e,i.isDirty=!isEmptyObject(e)}t.keepIsValid||_setValid(),w.state.next({...i,defaultValues:r})},clearErrors,unregister,setError,setFocus:(e,t={})=>{let i=get(n,e),r=i&&i._f;if(r){let e=r.refs?r.refs[0]:r.ref;e.focus&&setTimeout(()=>{e.focus(),t.shouldSelect&&isFunction(e.select)&&e.select()})}},getFieldState};return{...C,formControl:C}}(e);t.current={...n,formState:s}}}let m=t.current.control;m._options={...e,validate:e.validate};let getCurrentFormState=()=>({...m._formState,defaultValues:m._defaultValues}),{resyncIfNeeded:g,snapshot:y}=function(e){let t=a.useRef(!1),i=a.useRef(!1),n=a.useRef(void 0),r=a.useRef(0);r.current++,!i.current&&e&&(i.current=!0,n.current=cloneObject(e()));let s=a.useCallback((e,s,a)=>
1{if(e&&(t.current||i.current&&r.current>1)){let e=s();deepEqual(n.current,e)||a(e)}t.current=!0},[]),o=a.useCallback((e,t)=>{e&&(n.current=cloneObject(t()))},[]);return{resyncIfNeeded:s,snapshot:o}}(getCurrentFormState);return v(()=>{g(!0,getCurrentFormState,o);let e=m._subscribe({formState:m._proxyFormState,callback:()=>o({...m._formState,defaultValues:m._defaultValues}),reRenderRoot:!0});return o(e=>({...e,isReady:!0})),m._formState.isReady=!0,()=>{e(),y(!0,getCurrentFormState)}},[m,g,y]),a.useEffect(()=>m._disableForm(e.disabled),[m,e.disabled]),a.useEffect(()=>{e.mode&&(m._options.mode=e.mode),e.reValidateMode&&(m._options.reValidateMode=e.reValidateMode)},[m,e.mode,e.reValidateMode]),a.useEffect(()=>{e.errors&&(m._setErrors(e.errors),m._focusError())},[m,e.errors]),a.useEffect(()=>{var i;r.current&&!e.validate&&(null===(i=t.current)||void 0===i||i.clearErrors(f)),r.current=!!e.validate},[e.validate]),a.useEffect(()=>{e.shouldUnregister&&m._subjects.state.next({values:m._getWatch()})},[m,e.shouldUnregister]),a.useEffect(()=>{if(m._proxyFormState.isDirty){let e=m._getDirty();e!==s.isDirty&&m._subjects.state.next({isDirty:e})}},[m,s.isDirty]),a.useEffect(()=>{var t;e.values&&!deepEqual(e.values,i.current)?(m._reset(e.values,{keepFieldsRef:!0,...m._options.resetOptions}),(null===(t=m._options.resetOptions)||void 0===t?void 0:t.keepIsValid)||m._setValid(),i.current=e.values,o(e=>({...e}))):m._resetDefaultValues()},[m,e.values]),a.useEffect(()=>{m._state.mount||(m._setValid(),m._state.mount=!0),m._state.watch&&(m._state.watch=!1,m._subjects.state.next({...m._formState})),m._removeUnmounted()}),t.current.formState=a.useMemo(()=>getProxyFormState(s,m),[m,s]),t.current}(),validateEmail=async e=>{try{let t=await fetch("/api/validate-email",{method:"POST",headers:k,body:JSON.stringify({email:e})}),i=await t.json();if(429===t.status)return U(i.error),!1;if(!i.valid)return L(i.errors||[]),i.suggestion&&I(i.suggestion),!1;return L([]),I(""),U(""),!0}catch(e){return L(["Failed to validate email"]),!1}},onSubmit=async e=>{try{if(_(!0),L([]),I(""),U(""),g(""),!y){g("Please complete the challenge"),_(!1);return}let t=await fetch("/api/verify-turnstile",{method:"POST",headers:k,body:JSON.stringify({token:y})});if(await t.json(),200!==t.status){g("Challenge verification failed. Please try again."),_(!1),fetch("/api/notify",{method:"POST",headers:k,body:JSON.stringify({message:"Contact Form Submitted: ".concat(e.name,", ").concat(e.email," (").concat(b,")"),type:"form_error_turnstile_not_valid"})});return}let i=await validateEmail(e.email);if(!i){_(!1),fetch("/api/notify",{method:"POST",headers:k,body:JSON.stringify({message:"Contact Form Submitted: ".concat(e.email," (").concat(b,")"),type:"form_error_email_not_valid"})});return}if((0,V.B)({action:"submit_form",category:"form",label:"contact_form",value:1}),e.address){R(!0),_(!1);return}let n=await fetch("/api/form",{method:"POST",body:JSON.stringify({...e,source:b})});if(200===n.status){(0,V.B)({action:"submit_form",category:"form",label:"contact_form_success",value:1}),(0,D.T)(19277106),fetch("/api/notify",{method:"POST",headers:k,body:JSON.stringify({message:"Contact Form Submitted: ".concat(e.name," (").concat(b,")"),type:"form_success"})}),R(!0),_(!1);return}M(!0),_(!1)}catch(t){fetch("/api/notify",{method:"POST",headers:k,body:JSON.stringify({message:"Contact Form Code Error: ".concat(t," ").concat(JSON.stringify({...e,source:b})),type:"error"})}),M(!0),_(!1)}};return O?(0,n.jsxs)("div",{className:"mt-12 border-green border px-4 py-8 flex flex-col justify-center text-center",children:[(0,n.jsx)("h2",{className:"text-lg font-semibold text-white",children:"Thank you for reaching out"}),(0,n.jsx)("p",{className:"mt-2 text-sm text-gray-100",children:"We'll review your message and get back to you as soon as possible."})]}):(0,n.jsxs)("form",{className:"flex flex-col w-full space-y-2",onSubmit:$(onSubmit),children:[(0,n.jsx)("input",{className:"opacity-0 h-0 w-0",type:"text",tabIndex:-1,name:"address",placeholder:"Don't fill out."}),(0,n.jsxs)("div",{children:[t.name&&(0,n.jsx)("label",{className:"text-sm mb-1 block",children:t.name}),(0,n.jsx)("input",{className:T,placeholder:o.name,...W("name",{required:!0,minLength:3})})]}),q&&q.name&&(0,n.jsx)("p",{className:S,children:"Please provide your full name."}),(0,n.jsxs)("div",{children:[t.email&&(0,n.jsx)("label",{className:"text-sm mb-1 block",children:t.email}),(0,n.jsx)("input",{className:T,type:"email",placeholder:o.email,...W("email",{required:!0,minLength:8,pattern:/^[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+@[a-zA-Z0-9-]+(?:\.[a-zA-Z0-9-]+)*$/g})})]}),q&&q.email&&(0,n.jsx)("p",{className:S,children:"Please provide a valid email."}),j.length>0&&(0,n.jsxs)("div",{className:"space-y-1",children:[j.map((e,t)=>(0,n.jsx)("p",{className:S,children:e},t)),N&&(0,n.jsxs)("p",{className:"text-amber-500 text-xs",children:["Did you mean: ",N,"?"]})]}),B&&(0,n.jsx)("p",{className:"".concat(S," font-semibold"),children:B}),(0,n.jsx)("div",{children:(0,n.jsx)("input",{className:T,placeholder:o.companyName,type:"text",...W("companyName",{required:!0,minLength:5})})}),q&&q.companyName&&(0,n.jsx)("p",{className:S,children:"Please provide your company name."}),(0,n.jsx)("div",{children:(0,n.jsx)("input",{className:T,placeholder:o.budget,...W("budget")})}),(0,n.jsx)("textarea",{className:s()(T,i,"h-40"),placeholder:o.message,...W("message",{required:!0,minLength:20})}),q&&q.message&&(0,n.jsx)("p",{className:S,children:"Please enter a longer message."}),(0,n.jsx)(C.Nc,{siteKey:"0x4AAAAAAA43HeG2umNt6w85",retry:"auto",refreshExpired:"auto",sandbox:!1,onError:()=>{x(""),g("Security check failed. Please try again.")},onExpire:()=>{x(""),g("Security check expired. Please verify again.")},onLoad:()=>{x(""),g("")},onVerify:e=>{x(e),g("")}}),m&&(0,n.jsx)("p",{className:S,children:m}),(0,n.jsx)(P.Z,{variant:"fill",loading:w,className:"w-full ".concat(w||F||B?"pointer-events-none opacity-50":""),children:w?"Sending...":"Send"}),F&&(0,n.jsx)("p",{className:"border-red rounded text-rose-500 border p-4 bg-rose-400 bg-opacity-10",children:"Oops there was an error sending your message. Please try again later."})]})}},78895:function(e,t,i){"use strict";i.d(t,{B:function(){return event}});let n="G-W4W4HN8RVRV",event=e=>{var t;let{action:i,category:n,label:r,value:s}=e;(null===(t=window)||void 0===t?void 0:t.gtag)&&window.gtag("event",i,{event_category:n,event_label:r,value:s})};t.ZP={GA_TRACKING_ID:n,pageview:e=>{var t;(null===(t=window)||void 0===t?void 0:t.gtag)&&window.gtag("config",n,{page_path:e})},event}},6308:function(e,t,i){"use strict";var n=i(67294);t.Z=function(e,t){let readValue=()=>{try{let i=window.sessionStorage.getItem(e);return i?JSON.parse(i):t}catch(i){return console.warn('Error reading sessionStorage key "'.concat(e,'":'),i),t}}
1,[i,r]=(0,n.useState)(readValue);return(0,n.useEffect)(()=>{r(readValue())},[]),[i,t=>{try{let n=t instanceof Function?t(i):t;r(n),window.sessionStorage.setItem(e,JSON.stringify(n))}catch(t){console.warn('Error setting sessionStorage key "'.concat(e,'":'),t)}}]}},6014:function(e,t,i){"use strict";i.d(t,{T:function(){return trackConversionLinkedIn}});var n=i(53228);let trackConversionLinkedIn=e=>{var t;(null===(t=window)||void 0===t?void 0:t.linktrk)&&(0,n.qW)(e)}},97498:function(e,t){"use strict";var i,n;Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var i in t)Object.defineProperty(e,i,{enumerable:!0,get:t[i]})}(t,{PrefetchKind:function(){return i},ACTION_REFRESH:function(){return r},ACTION_NAVIGATE:function(){return s},ACTION_RESTORE:function(){return a},ACTION_SERVER_PATCH:function(){return o},ACTION_PREFETCH:function(){return l},ACTION_FAST_REFRESH:function(){return u},ACTION_SERVER_ACTION:function(){return c}});let r="refresh",s="navigate",a="restore",o="server-patch",l="prefetch",u="fast-refresh",c="server-action";(n=i||(i={})).AUTO="auto",n.FULL="full",n.TEMPORARY="temporary",("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},10030:function(e,t,i){"use strict";function getDomainLocale(e,t,i,n){return!1}Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"getDomainLocale",{enumerable:!0,get:function(){return getDomainLocale}}),i(22866),("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},65170:function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return v}});let n=i(38754),r=n._(i(67294)),s=i(74450),a=i(92227),o=i(64364),l=i(10109),u=i(73607),c=i(11823),d=i(89031),h=i(40920),f=i(10030),p=i(77192),m=i(97498),g=new Set;function prefetch(e,t,i,n,r,s){if(!s&&!(0,a.isLocalURL)(t))return;if(!n.bypassPrefetchedCheck){let r=void 0!==n.locale?n.locale:"locale"in e?e.locale:void 0,s=t+"%"+i+"%"+r;if(g.has(s))return;g.add(s)}let o=s?e.prefetch(t,r):e.prefetch(t,i,n);Promise.resolve(o).catch(e=>{})}function formatStringOrUrl(e){return"string"==typeof e?e:(0,o.formatUrl)(e)}let y=r.default.forwardRef(function(e,t){let i,n;let{href:o,as:g,children:y,prefetch:v=null,passHref:x,replace:b,shallow:T,scroll:S,locale:w,onClick:E,onMouseEnter:A,onTouchStart:P,legacyBehavior:V=!1,...D}=e;i=y,V&&("string"==typeof i||"number"==typeof i)&&(i=r.default.createElement("a",null,i));let C=r.default.useContext(c.RouterContext),k=r.default.useContext(d.AppRouterContext),_=null!=C?C:k,O=!C,R=!1!==v,F=null===v?m.PrefetchKind.AUTO:m.PrefetchKind.FULL,{href:M,as:j}=r.default.useMemo(()=>{if(!C){let e=formatStringOrUrl(o);return{href:e,as:g?formatStringOrUrl(g):e}}let[e,t]=(0,s.resolveHref)(C,o,!0);return{href:e,as:g?(0,s.resolveHref)(C,g):t||e}},[C,o,g]),L=r.default.useRef(M),N=r.default.useRef(j);V&&(n=r.default.Children.only(i));let I=V?n&&"object"==typeof n&&n.ref:t,[B,U,W]=(0,h.useIntersection)({rootMargin:"200px"}),$=r.default.useCallback(e=>{(N.current!==j||L.current!==M)&&(W(),N.current=j,L.current=M),B(e),I&&("function"==typeof I?I(e):"object"==typeof I&&(I.current=e))},[j,I,M,W,B]);r.default.useEffect(()=>{_&&U&&R&&prefetch(_,M,j,{locale:w},{kind:F},O)},[j,M,U,w,R,null==C?void 0:C.locale,_,O,F]);let q={ref:$,onClick(e){V||"function"!=typeof E||E(e),V&&n.props&&"function"==typeof n.props.onClick&&n.props.onClick(e),_&&!e.defaultPrevented&&function(e,t,i,n,s,o,l,u,c,d){let{nodeName:h}=e.currentTarget,f="A"===h.toUpperCase();if(f&&(function(e){let t=e.currentTarget,i=t.getAttribute("target");return i&&"_self"!==i||e.metaKey||e.ctrlKey||e.shiftKey||e.altKey||e.nativeEvent&&2===e.nativeEvent.which}(e)||!c&&!(0,a.isLocalURL)(i)))return;e.preventDefault();let navigate=()=>{let e=null==l||l;"beforePopState"in t?t[s?"replace":"push"](i,n,{shallow:o,locale:u,scroll:e}):t[s?"replace":"push"](n||i,{forceOptimisticNavigation:!d,scroll:e})};c?r.default.startTransition(navigate):navigate()}(e,_,M,j,b,T,S,w,O,R)},onMouseEnter(e){V||"function"!=typeof A||A(e),V&&n.props&&"function"==typeof n.props.onMouseEnter&&n.props.onMouseEnter(e),_&&(R||!O)&&prefetch(_,M,j,{locale:w,priority:!0,bypassPrefetchedCheck:!0},{kind:F},O)},onTouchStart(e){V||"function"!=typeof P||P(e),V&&n.props&&"function"==typeof n.props.onTouchStart&&n.props.onTouchStart(e),_&&(R||!O)&&prefetch(_,M,j,{locale:w,priority:!0,bypassPrefetchedCheck:!0},{kind:F},O)}};if((0,l.isAbsoluteUrl)(j))q.href=j;else if(!V||x||"a"===n.type&&!("href"in n.props)){let e=void 0!==w?w:null==C?void 0:C.locale,t=(null==C?void 0:C.isLocaleDomain)&&(0,f.getDomainLocale)(j,e,null==C?void 0:C.locales,null==C?void 0:C.domainLocales);q.href=t||(0,p.addBasePath)((0,u.addLocale)(j,e,null==C?void 0:C.defaultLocale))}return V?r.default.cloneElement(n,q):r.default.createElement("a",{...D,...q},i)}),v=y;("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esMo
1dule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},40920:function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"useIntersection",{enumerable:!0,get:function(){return useIntersection}});let n=i(67294),r=i(63436),s="function"==typeof IntersectionObserver,a=new Map,o=[];function useIntersection(e){let{rootRef:t,rootMargin:i,disabled:l}=e,u=l||!s,[c,d]=(0,n.useState)(!1),h=(0,n.useRef)(null),f=(0,n.useCallback)(e=>{h.current=e},[]);(0,n.useEffect)(()=>{if(s){if(u||c)return;let e=h.current;if(e&&e.tagName){let n=function(e,t,i){let{id:n,observer:r,elements:s}=function(e){let t;let i={root:e.root||null,margin:e.rootMargin||""},n=o.find(e=>e.root===i.root&&e.margin===i.margin);if(n&&(t=a.get(n)))return t;let r=new Map,s=new IntersectionObserver(e=>{e.forEach(e=>{let t=r.get(e.target),i=e.isIntersecting||e.intersectionRatio>0;t&&i&&t(i)})},e);return t={id:i,observer:s,elements:r},o.push(i),a.set(i,t),t}(i);return s.set(e,t),r.observe(e),function(){if(s.delete(e),r.unobserve(e),0===s.size){r.disconnect(),a.delete(n);let e=o.findIndex(e=>e.root===n.root&&e.margin===n.margin);e>-1&&o.splice(e,1)}}}(e,e=>e&&d(e),{root:null==t?void 0:t.current,rootMargin:i});return n}}else if(!c){let e=(0,r.requestIdleCallback)(()=>d(!0));return()=>(0,r.cancelIdleCallback)(e)}},[u,i,t,c,h.current]);let p=(0,n.useCallback)(()=>{d(!1)},[]);return[f,c,p]}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},70478:function(e,t,i){"use strict";i.r(t),i.d(t,{default:function(){return _app},inter:function(){return s()},ptSerif:function(){return o()}});var n=i(85893),r=i(17600),s=i.n(r),a=i(75057),o=i.n(a);i(70415);var l=i(67294),u=i(70398),c=i(81879);function LazyMotion({children:e,features:t,strict:i=!1}){let[,r]=(0,l.useState)(!isLazyBundle(t)),s=(0,l.useRef)(void 0);if(!isLazyBundle(t)){let{renderer:e,...i}=t;s.current=e,(0,c.K)(i)}return(0,l.useEffect)(()=>{isLazyBundle(t)&&t().then(({renderer:e,...t})=>{(0,c.K)(t),s.current=e,r(!0)})},[]),(0,n.jsx)(u.u.Provider,{value:{renderer:s.current,strict:i},children:e})}function isLazyBundle(e){return"function"==typeof e}var d=i(41254),h=i(43778),f=i(39043);let p={renderer:f.b,...d.s,...h.E};var m=i(44389),g=i(83454),initQueue=()=>{window.va||(window.va=function(...e){(window.vaq=window.vaq||[]).push(e)})};function isBrowser(){return"undefined"!=typeof window}function detectEnvironment(){return"production"}function isDevelopment(){return"development"===function(){let e=isBrowser()?window.vam:detectEnvironment();return e||"production"}()}function Analytics(e){return(0,l.useEffect)(()=>{var t;e.beforeSend&&(null==(t=window.va)||t.call(window,"beforeSend",e.beforeSend))},[e.beforeSend]),(0,l.useEffect)(()=>{!function(e={debug:!0}){var t;if(!isBrowser())return;(function(e="auto"){if("auto"===e){window.vam=detectEnvironment();return}window.vam=e})(e.mode),initQueue(),e.beforeSend&&(null==(t=window.va)||t.call(window,"beforeSend",e.beforeSend));let i=e.scriptSrc?e.scriptSrc:isDevelopment()?"https://va.vercel-scripts.com/v1/script.debug.js":e.basePath?`${e.basePath}/insights/script.js`:"/_vercel/insights/script.js";if(document.head.querySelector(`script[src*="${i}"]`))return;let n=document.createElement("script");n.src=i,n.defer=!0,n.dataset.sdkn="@vercel/analytics"+(e.framework?`/${e.framework}`:""),n.dataset.sdkv="1.6.1",e.disableAutoTrack&&(n.dataset.disableAutoTrack="1"),e.endpoint?n.dataset.endpoint=e.endpoint:e.basePath&&(n.dataset.endpoint=`${e.basePath}/insights`),e.dsn&&(n.dataset.dsn=e.dsn),n.onerror=()=>{let e=isDevelopment()?"Please check if any ad blockers are enabled and try again.":"Be sure to enable Web Analytics for your project and deploy again. See https://vercel.com/docs/analytics/quickstart for more information.";console.log(`[Vercel Web Analytics] Failed to load script from ${i}. ${e}`)},isDevelopment()&&!1===e.debug&&(n.dataset.debug="false"),document.head.appendChild(n)}({framework:e.framework||"react",basePath:e.basePath??function(){if(void 0!==g&&void 0!==g.env)return g.env.REACT_APP_VERCEL_OBSERVABILITY_BASEPATH}(),...void 0!==e.route&&{disableAutoTrack:!0},...e})},[]),(0,l.useEffect)(()=>{e.route&&e.path&&function({route:e,path:t}){var i;null==(i=window.va)||i.call(window,"pageview",{route:e,path:t})}({route:e.route,path:e.path})},[e.route,e.path]),null}var y=i(11163),v=i(78895),x=i(53228),b=i(4298),T=i.n(b),S=i(89508),w=i(82254),E=i(39664),A=i(31415),P=i(6308);function DesignRushModal(){let[e,t]=(0,l.useState)(!1),[i,r]=(0,P.Z)("design-rush-modal-opened",!1),notifyDiscord=async()=>{try{await fetch("/api/notify",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({type:"form",message:"New Design Rush visitor viewing the consultation modal",details:{source:"Design Rush",page:window.location.pathname,timestamp:new Date().toISOString(),fullUrl:window.location.href}})})}catch(e){}};return(0,l.useEffect)(()=>{let n=new URLSearchParams(window.location.search),s="dr"===n.get("r");if(!s)return;let handleScroll=()=>{let n=window.scrollY/(document.documentElement.scrollHeight-window.innerHeight)*100;!(n>=20)||e||i||(t(!0),r(!0),notifyDiscord(),window.removeEventListener("scroll",handleScroll))};return window.addEventListener("scroll",handleScroll),()=>window.removeEventListener("scroll",handleScroll)},[e]),(0,n.jsx)(S.M,{children:e&&(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(w.E.div,{initial:{opacity:0}
1,animate:{opacity:1},exit:{opacity:0},className:"fixed inset-0 bg-black bg-opacity-70 z-50",onClick:()=>t(!1)}),(0,n.jsx)(w.E.div,{className:"fixed inset-0 z-50 overflow-y-auto",initial:{opacity:0},animate:{opacity:1},exit:{opacity:0},children:(0,n.jsx)("div",{className:"flex min-h-full items-center justify-center p-4",children:(0,n.jsxs)(w.E.div,{initial:{scale:.95,opacity:0},animate:{scale:1,opacity:1},exit:{scale:.95,opacity:0},className:"w-full max-w-md overflow-hidden rounded bg-black p-6 text-left align-middle shadow-xl border border-highlight relative",onClick:e=>e.stopPropagation(),children:[(0,n.jsx)("button",{onClick:()=>t(!1),className:"absolute top-4 right-4 text-white hover:text-highlight transition-colors",children:(0,n.jsx)(A.Z,{className:"w-6 h-6"})}),(0,n.jsx)("h3",{className:"".concat(o().variable," font-serif text-2xl  mb-4"),children:"Free 30 Min Technical Consultation"}),(0,n.jsx)("p",{className:"",children:"We're offering a special free consultation for a limited time for all Design Rush visitors. Drop your details below and we'll book in your free session."}),(0,n.jsx)(E.Z,{textAreaClassName:"h-64",placeholders:{name:"Your name",email:"[email protected]",companyName:"Your company name",budget:"What is your project type?",message:"What are your biggest technical challenges right now? \n - Are you looking to build a new website? \n - Are you looking to enhance a platform? \n - Are you looking to automate a process or system? \n\n The more detail you can provide the better we can prepare for the call."}})]})})})]})})}var _app=function(e){let{Component:t,pageProps:i}=e,r=t.getLayout||(e=>e),a=(0,y.useRouter)();return(0,l.useEffect)(()=>{let handleRouteChange=e=>{v.ZP.pageview(e)};return a.events.on("routeChangeComplete",handleRouteChange),()=>{a.events.off("routeChangeComplete",handleRouteChange)}},[a.events]),r((0,n.jsxs)("main",{className:"".concat(s().variable," font-sans dark"),children:[(0,n.jsx)(m.S,{value:{fetcher:(e,t)=>fetch(e,t).then(e=>e.json())},children:(0,n.jsxs)(LazyMotion,{features:p,children:[(0,n.jsx)(t,{...i}),(0,n.jsx)(DesignRushModal,{})]})}),(0,n.jsx)(Analytics,{}),(0,n.jsx)(x.Md,{}),(0,n.jsx)(T(),{src:"https://sentry.shadowsuite.ai/badge/script.min.js","data-id":"antler-digital","data-theme":"transparent-dark",async:!0,defer:!0}),(0,n.jsx)(T(),{src:"https://challenges.cloudflare.com/turnstile/v0/api.js",async:!0,defer:!0}),(0,n.jsx)(T(),{id:"SoPro",children:"\n          (function (o, u, t, b, a, s, e) {\n              window[b] = window[b] || {}; (e = e || [])['key'] = o; e['__obr'] = u.location.href; a = [];\n              u.location.search.replace('?', '').split('&').forEach(function (q) { if (q.startsWith(b) || q.startsWith('_obid')) e[q.split('=')[0]] = q.split('=')[1]; });\n              e['_obid'] = e['_obid'] || (u.cookie.match(/(^|;)s*_obids*=s*([^;]+)/) || []).pop() || 0;\n              for (k in e) { if (e.hasOwnProperty(k)) a.push(encodeURIComponent(k) + '=' + encodeURIComponent(e[k])); }\n              s = u.createElement('script'); s.src = t + '?' + a.join('&'); u.body.appendChild(s);\n          })('aecec84d-7671-419f-a7fb-f5aada4b2505', document, 'https://plugin.sopro.io/hq.js', 'outbase')\n    "})]}))}},70415:function(){},17600:function(e){e.exports={style:{fontFamily:"'__inter_96d275', '__inter_Fallback_96d275'"},className:"__className_96d275",variable:"__variable_96d275"}},75057:function(e){e.exports={style:{fontFamily:"'__ptSerif_75c5d5', '__ptSerif_Fallback_75c5d5'"},className:"__className_75c5d5",variable:"__variable_75c5d5"}},77663:function(e){!function(){var t={229:function(e){var t,i,n,r=e.exports={};function defaultSetTimout(){throw Error("setTimeout has not been defined")}function defaultClearTimeout(){throw Error("clearTimeout has not been defined")}function runTimeout(e){if(t===setTimeout)return setTimeout(e,0);if((t===defaultSetTimout||!t)&&setTimeout)return t=setTimeout,setTimeout(e,0);try{return t(e,0)}catch(i){try{return t.call(null,e,0)}catch(i){return t.call(this,e,0)}}}!function(){try{t="function"==typeof setTimeout?setTimeout:defaultSetTimout}catch(e){t=defaultSetTimout}try{i="function"==typeof clearTimeout?clearTimeout:defaultClearTimeout}catch(e){i=defaultClearTimeout}}();var s=[],a=!1,o=-1;
1function cleanUpNextTick(){a&&n&&(a=!1,n.length?s=n.concat(s):o=-1,s.length&&drainQueue())}function drainQueue(){if(!a){var e=runTimeout(cleanUpNextTick);a=!0;for(var t=s.length;t;){for(n=s,s=[];++o<t;)n&&n[o].run();o=-1,t=s.length}n=null,a=!1,function(e){if(i===clearTimeout)return clearTimeout(e);if((i===defaultClearTimeout||!i)&&clearTimeout)return i=clearTimeout,clearTimeout(e);try{i(e)}catch(t){try{return i.call(null,e)}catch(t){return i.call(this,e)}}}(e)}}function Item(e,t){this.fun=e,this.array=t}function noop(){}r.nextTick=function(e){var t=Array(arguments.length-1);if(arguments.length>1)for(var i=1;i<arguments.length;i++)t[i-1]=arguments[i];s.push(new Item(e,t)),1!==s.length||a||runTimeout(drainQueue)},Item.prototype.run=function(){this.fun.apply(null,this.array)},r.title="browser",r.browser=!0,r.env={},r.argv=[],r.version="",r.versions={},r.on=noop,r.addListener=noop,r.once=noop,r.off=noop,r.removeListener=noop,r.removeAllListeners=noop,r.emit=noop,r.prependListener=noop,r.prependOnceListener=noop,r.listeners=function(e){return[]},r.binding=function(e){throw Error("process.binding is not supported")},r.cwd=function(){return"/"},r.chdir=function(e){throw Error("process.chdir is not supported")},r.umask=function(){return 0}}},i={};function __nccwpck_require__(e){var n=i[e];if(void 0!==n)return n.exports;var r=i[e]={exports:{}},s=!0;try{t[e](r,r.exports,__nccwpck_require__),s=!1}finally{s&&delete i[e]}return r.exports}__nccwpck_require__.ab="//";var n=__nccwpck_require__(229);e.exports=n}()},41664:function(e,t,i){e.exports=i(65170)},11163:function(e,t,i){e.exports=i(59974)},4298:function(e,t,i){e.exports=i(85354)},30906:function(e,t,i){"use strict";var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.LinkedInInsightTag=void 0;let r=n(i(4298)),s=n(i(67294));t.LinkedInInsightTag=e=>{let t=e.partnerId||"6559058";return s.default.createElement(s.default.Fragment,null,t&&s.default.createElement(s.default.Fragment,null,s.default.createElement(r.default,null,`
2              _linkedin_partner_id = "${t}";
3              window._linkedin_data_partner_ids = window._linkedin_data_partner_ids || [];
4              window._linkedin_data_partner_ids.push(_linkedin_partner_id);
5            `),s.default.createElement(r.default,null,`
6              (function(l) {
7              if (!l){window.lintrk = function(a,b){window.lintrk.q.push([a,b])};
8              window.lintrk.q=[]}
9              var s = document.getElementsByTagName("script")[0];
10              var b = document.createElement("script");
11              b.type = "text/javascript";b.async = true;
12              b.src = "https://snap.licdn.com/li.lms-analytics/insight.min.js";
13              s.parentNode.insertBefore(b, s);})(window.lintrk);
14            `),s.default.createElement("noscript",null,s.default.createElement("img",{height:"1",width:"1",style:{display:"none"},alt:"",src:`https://px.ads.linkedin.com/collect/?pid=${t}&fmt=gif`}))))}},53228:function(e,t,i){"use strict";t.qW=t.Md=void 0;var n=i(30906);Object.defineProperty(t,"Md",{enumerable:!0,get:function(){return n.LinkedInInsightTag}});var r=i(64874);Object.defineProperty(t,"qW",{enumerable:!0,get:function(){return r.linkedInTrack}})},64874:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.linkedInTrack=t.lintrk=void 0,t.lintrk=(e,t)=>{null==window||window.lintrk(e,t)},t.linkedInTrack=e=>{(0,t.lintrk)("track",{conversion_id:e})}},83:function(e,t,i){"use strict";/**
15 * @license React
16 * use-sync-external-store-shim.production.js
17 *
18 * Copyright (c) Meta Platforms, Inc. and affiliates.
19 *
20 * This source code is licensed under the MIT license found in the
21 * LICENSE file in the root directory of this source tree.
22 */var n=i(67294),r="function"==typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e==1/t)||e!=e&&t!=t},s=n.useState,a=n.useEffect,o=n.useLayoutEffect,l=n.useDebugValue;function checkIfSnapshotChanged(e){var t=e.getSnapshot;e=e.value;try{var i=t();return!r(e,i)}catch(e){return!0}}var u="undefined"==typeof window||void 0===window.document||void 0===window.document.createElement?function(e,t){return t()}:function(e,t){var i=t(),n=s({inst:{value:i,getSnapshot:t}}),r=n[0].inst,u=n[1];return o(function(){r.value=i,r.getSnapshot=t,checkIfSnapshotChanged(r)&&u({inst:r})},[e,i,t]),a(function(){return checkIfSnapshotChanged(r)&&u({inst:r}),e(function(){checkIfSnapshotChanged(r)&&u({inst:r})})},[e]),l(i),i};t.useSyncExternalStore=void 0!==n.useSyncExternalStore?n.useSyncExternalStore:u},61688:function(e,t,i){"use strict";e.exports=i(83)},93967:function(e,t){var i;/*!
23	Copyright (c) 2018 Jed Watson.
24	Licensed under the MIT License (MIT), see
25	http://jedwatson.github.io/classnames
26*/!function(){"use strict";var n={}.hasOwnProperty;function classNames(){for(var e="",t=0;t<arguments.length;t++){var i=arguments[t];i&&(e=appendClass(e,function(e){if("string"==typeof e||"number"==typeof e)return e;if("object"!=typeof e)return"";if(Array.isArray(e))return classNames.apply(null,e);if(e.toString!==Object.prototype.toString&&!e.toString.toString().includes("[native code]"))return e.toString();var t="";for(var i in e)n.call(e,i)&&e[i]&&(t=appendClass(t,i));return t}(i)))}return e}function appendClass(e,t){return t?e?e+" "+t:e+t:e}e.exports?(classNames.default=classNames,e.exports=classNames):void 0!==(i=(function(){return classNames}).apply(t,[]))&&(e.exports=i)}()},31415:function(e,t,i){"use strict";var n=i(67294);let r=n.forwardRef(function({title:e,titleId:t,...i},r){return n.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true","data-slot":"icon",ref:r,"aria-labelledby":t},i),e?n.createElement("title",{id:t},e):null,n.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M6 18 
2618 6M6 6l12 12"}))});t.Z=r},89508:function(e,t,i){"use strict";i.d(t,{M:function(){return AnimatePresence}});var n=i(85893),r=i(67294),s=i(25364),a=i(96681),o=i(75062),l=i(240),u=i(93243),c=i(16014);function setRef(e,t){if("function"==typeof e)return e(t);null!=e&&(e.current=t)}let PopChildMeasure=class PopChildMeasure extends r.Component{getSnapshotBeforeUpdate(e){let t=this.props.childRef.current;if((0,u.R)(t)&&e.isPresent&&!this.props.isPresent&&!1!==this.props.pop){let e=t.offsetParent,i=(0,u.R)(e)&&e.offsetWidth||0,n=(0,u.R)(e)&&e.offsetHeight||0,r=getComputedStyle(t),s=this.props.sizeRef.current;s.height=parseFloat(r.height),s.width=parseFloat(r.width),s.top=t.offsetTop,s.left=t.offsetLeft,s.right=i-s.width-s.left,s.bottom=n-s.height-s.top,s.direction=r.direction}return null}componentDidUpdate(){}render(){return this.props.children}};function PopChild({children:e,isPresent:t,anchorX:i,anchorY:s,root:a,pop:o}){let l=(0,r.useId)(),u=(0,r.useRef)(null),d=(0,r.useRef)({width:0,height:0,top:0,left:0,right:0,bottom:0,direction:"ltr"}),{nonce:h}=(0,r.useContext)(c._),f=!1!==o?e.props?.ref??e?.ref:void 0,p=function(...e){return r.useCallback(function(...e){return t=>{let i=!1,n=e.map(e=>{let n=setRef(e,t);return i||"function"!=typeof n||(i=!0),n});if(i)return()=>{for(let t=0;t<n.length;t++){let i=n[t];"function"==typeof i?i():setRef(e[t],null)}}}}(...e),e)}(u,f);return(0,r.useInsertionEffect)(()=>{let{width:e,height:n,top:r,left:c,right:f,bottom:p,direction:m}=d.current;if(t||!1===o||!u.current||!e||!n)return;let g="rtl"===m,y="left"===i?g?`right: ${f}`:`left: ${c}`:g?`left: ${c}`:`right: ${f}`,v="bottom"===s?`bottom: ${p}`:`top: ${r}`;u.current.dataset.motionPopId=l;let x=document.createElement("style");h&&(x.nonce=h);let b=a??document.head;return b.appendChild(x),x.sheet&&x.sheet.insertRule(`
27          [data-motion-pop-id="${l}"] {
28            position: absolute !important;
29            width: ${e}px !important;
30            height: ${n}px !important;
31            ${y}px !important;
32            ${v}px !important;
33          }
34        `),()=>{u.current?.removeAttribute("data-motion-pop-id"),b.contains(x)&&b.removeChild(x)}},[t]),(0,n.jsx)(PopChildMeasure,{isPresent:t,childRef:u,sizeRef:d,pop:o,children:!1===o?e:r.cloneElement(e,{ref:p})})}let PresenceChild=({children:e,initial:t,isPresent:i,onExitComplete:s,custom:u,presenceAffectsLayout:c,mode:d,anchorX:h,anchorY:f,root:p})=>{let m=(0,a.h)(newChildrenMap),g=(0,r.useId)(),y=(0,r.useRef)(i),v=(0,r.useRef)(s);(0,o.L)(()=>{y.current=i,v.current=s});let x=!0,b=(0,r.useMemo)(()=>(x=!1,{id:g,initial:t,isPresent:i,custom:u,onExitComplete:e=>
34{for(let t of(m.set(e,!0),m.values()))if(!t)return;s&&s()},register:e=>(m.set(e,!1),()=>{m.delete(e),y.current||m.size||v.current?.()})}),[i,m,s]);return c&&x&&(b={...b}),(0,r.useMemo)(()=>{m.forEach((e,t)=>m.set(t,!1))},[i]),r.useEffect(()=>{i||m.size||!s||s()},[i]),e=(0,n.jsx)(PopChild,{pop:"popLayout"===d,isPresent:i,anchorX:h,anchorY:f,root:p,children:e}),(0,n.jsx)(l.O.Provider,{value:b,children:e})};function newChildrenMap(){return new Map}var d=i(15947);let getChildKey=e=>e.key||"";function onlyElements(e){let t=[];return r.Children.forEach(e,e=>{(0,r.isValidElement)(e)&&t.push(e)}),t}let AnimatePresence=({children:e,custom:t,initial:i=!0,onExitComplete:l,presenceAffectsLayout:u=!0,mode:c="sync",propagate:h=!1,anchorX:f="left",anchorY:p="top",root:m})=>{let[g,y]=(0,d.oO)(h),v=(0,r.useMemo)(()=>onlyElements(e),[e]),x=h&&!g?[]:v.map(getChildKey),b=(0,r.useRef)(!0),T=(0,r.useRef)(v),S=(0,a.h)(()=>new Map),w=(0,r.useRef)(new Set),[E,A]=(0,r.useState)(v),[P,V]=(0,r.useState)(v);(0,o.L)(()=>{b.current=!1,T.current=v;for(let e=0;e<P.length;e++){let t=getChildKey(P[e]);x.includes(t)?(S.delete(t),w.current.delete(t)):!0!==S.get(t)&&S.set(t,!1)}},[P,x.length,x.join("-")]);let D=[];if(v!==E){let e=[...v];for(let t=0;t<P.length;t++){let i=P[t],n=getChildKey(i);x.includes(n)||(e.splice(t,0,i),D.push(i))}return"wait"===c&&D.length&&(e=D),V(onlyElements(e)),A(v),null}let{forceRender:C}=(0,r.useContext)(s.p);return(0,n.jsx)(n.Fragment,{children:P.map(e=>{let r=getChildKey(e),s=(!h||!!g)&&(v===P||x.includes(r));return(0,n.jsx)(PresenceChild,{isPresent:s,initial:(!b.current||!!i)&&void 0,custom:t,presenceAffectsLayout:u,mode:c,root:m,onExitComplete:s?void 0:()=>{if(w.current.has(r)||!S.has(r))return;w.current.add(r),S.set(r,!0);let e=!0;S.forEach(t=>{t||(e=!1)}),e&&(C?.(),V(T.current),h&&y?.(),l&&l())},anchorX:f,anchorY:p,children:e},r)})})}},15947:function(e,t,i){"use strict";i.d(t,{oO:function(){return usePresence}});var n=i(67294),r=i(240);function usePresence(e=!0){let t=(0,n.useContext)(r.O);if(null===t)return[!0,null];let{isPresent:i,onExitComplete:s,register:a}=t,o=(0,n.useId)();(0,n.useEffect)(()=>{if(e)return a(o)},[e]);let l=(0,n.useCallback)(()=>e&&s&&s(o),[o,s,e]);return!i&&s?[!1,l]:[!0]}},25364:function(e,t,i){"use strict";i.d(t,{p:function(){return r}});var n=i(67294);let r=(0,n.createContext)({})},70398:function(e,t,i){"use strict";i.d(t,{u:function(){return r}});var n=i(67294);let r=(0,n.createContext)({strict:!1})},16014:function(e,t,i){"use strict";i.d(t,{_:function(){return r}});var n=i(67294);let r=(0,n.createContext)({transformPagePoint:e=>e,isStatic:!1,reducedMotion:"never"})},240:function(e,t,i){"use strict";i.d(t,{O:function(){return r}});var n=i(67294);let r=(0,n.createContext)(null)},41705:function(e,t,i){"use strict";i.d(t,{g:function(){return r}});var n=i(67294);let r=(0,n.createContext)({})},28148:function(e,t,i){"use strict";i.d(t,{Q:function(){return extractEventInfo},s:function(){return addPointerInfo}});var n=i(66515);function extractEventInfo(e){return{point:{x:e.pageX,y:e.pageY}}}let addPointerInfo=e=>t=>(0,n.D)(t)&&e(t,extractEventInfo(t))},41254:function(e,t,i){"use strict";i.d(t,{s:function(){return b}});var n=i(6080),r=i(17935);function resolveVariant(e,t,i){let n=e.getProps();return(0,r.o)(n,t,void 0!==i?i:n.custom,e)}var s=i(53860),a=i(93212),o=i(51363),l=i(68486);let isKeyframesTarget=e=>Array.isArray(e);var u=i(47772),c=i(51681),d=i(35867),h=i(82866);function animateTarget(e,t,{delay:i=0,transitionOverride:n,type:r}={}){let{transition:f,transitionEnd:p,...m}=t,g=e.getDefaultTransition();f=f?(0,a.r)(f,g):g;let y=f?.reduceMotion,v=f?.skipAnimations;n&&(f=n);let x=[],b=r&&e.animationState&&e.animationState.getState()[r],T=f?.path;for(let t in T&&T.animateVisualElement(e,m,f,i,x),m){let n=e.getValue(t,e.latestValues[t]??null),r=m[t];if(void 0===r||b&&function({protectedKeys:e,needsAnimating:t},i){let n=e.hasOwnProperty(i)&&!0!==t[i];return t[i]=!1,n}(b,t))continue;let a={delay:i,...(0,s.e)(f||{},t)};v&&(a.skipAnimations=!0);let l=n.get();if(void 0!==l&&!n.isAnimating()&&!Array.isArray(r)&&r===l&&!a.velocity){h.Wi.update(()=>n.set(r));continue}let p=!1;if(window.MotionHandoffAnimation){let i=(0,c.s)(e);if(i){let e=window.MotionHandoffAnimation(i,t,h.Wi);null!==e&&(a.startTime=e,p=!0)}}(0,u.K)(e,t);let g=y??e.shouldReduceMotion;n.start((0,d.v)(t,n,r,g&&o.z.has(t)?{type:!1}:a,e,p));let T=n.animation;T&&x.push(T)}if(p){let applyTransitionEnd=()=>h.Wi.update(()=>{p&&function(e,t){let i=resolveVariant(e,t),{transitionEnd:n={},transition:r={},...s}=i||{};for(let t in s={...s,...n}){var a;let i=isKeyframesTarget(a=s[t])?a[a.length-1]||0:a;e.hasValue(t)?e.getValue(t).set(i):e.addValue(t,(0,l.BX)(i))}}(e,p)});x.length?Promise.all(x).then(applyTransitionEnd):applyTransitionEnd()}return x}function calcChildStagger(e,t,i,n=0,r=1){let s=Array.from(e).sort((e,t)=>
34e.sortNodePosition(t)).indexOf(t),a=e.size,o=(a-1)*n;return"function"==typeof i?i(s,a):1===r?s*n:o-s*n}function animateVariant(e,t,i={}){let n=resolveVariant(e,t,"exit"===i.type?e.presenceContext?.custom:void 0),{transition:r=e.getDefaultTransition()||{}}=n||{};i.transitionOverride&&(r=i.transitionOverride);let s=n?()=>Promise.all(animateTarget(e,n,i)):()=>Promise.resolve(),a=e.variantChildren&&e.variantChildren.size?(n=0)=>{let{delayChildren:s=0,staggerChildren:a,staggerDirection:o}=r;return function(e,t,i=0,n=0,r=0,s=1,a){let o=[];for(let l of e.variantChildren)l.notify("AnimationStart",t),o.push(animateVariant(l,t,{...a,delay:i+("function"==typeof n?0:n)+calcChildStagger(e.variantChildren,l,n,r,s)}).then(()=>l.notify("AnimationComplete",t)));return Promise.all(o)}(e,t,n,s,a,o,i)}:()=>Promise.resolve(),{when:o}=r;if(!o)return Promise.all([s(),a(i.delay)]);{let[e,t]="beforeChildren"===o?[s,a]:[a,s];return e().then(()=>t())}}var f=i(78781),p=i(88563);let m=p.V.length;var g=i(55360);function shallowCompare(e,t){if(!Array.isArray(t))return!1;let i=t.length;if(i!==e.length)return!1;for(let n=0;n<i;n++)if(t[n]!==e[n])return!1;return!0}let y=[...p.e].reverse(),v=p.e.length;function createTypeState(e=!1){return{isActive:e,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function createState(){return{animate:createTypeState(!0),whileInView:createTypeState(),whileHover:createTypeState(),whileTap:createTypeState(),whileDrag:createTypeState(),whileFocus:createTypeState(),exit:createTypeState()}}let AnimationFeature=class AnimationFeature extends n.L{constructor(e){super(e),e.animationState||(e.animationState=function(e){let animate=t=>Promise.all(t.map(({animation:t,options:i})=>(function(e,t,i={}){let n;if(e.notify("AnimationStart",t),Array.isArray(t)){let r=t.map(t=>animateVariant(e,t,i));n=Promise.all(r)}else if("string"==typeof t)n=animateVariant(e,t,i);else{let r="function"==typeof t?resolveVariant(e,t,i.custom):t;n=Promise.all(animateTarget(e,r,i))}return n.then(()=>{e.notify("AnimationComplete",t)})})(e,t,i))),t=createState(),i=!0,n=!1,buildResolvedTypeValues=t=>(i,n)=>{let r=resolveVariant(e,n,"exit"===t?e.presenceContext?.custom:void 0);if(r){let{transition:e,transitionEnd:t,...n}=r;i={...i,...n,...t}}return i};function animateChanges(r){let{props:s}=e,a=function getVariantContext(e){if(!e)return;if(!e.isControllingVariants){let t=e.parent&&getVariantContext(e.parent)||{};return void 0!==e.props.initial&&(t.initial=e.props.initial),t}let t={};for(let i=0;i<m;i++){let n=p.V[i],r=e.props[n];((0,f.$)(r)||!1===r)&&(t[n]=r)}return t}(e.parent)||{},o=[],l=new Set,u={},c=1/0;for(let h=0;h<v;h++){var d;let p=y[h],m=t[p],v=void 0!==s[p]?s[p]:a[p],x=(0,f.$)(v),b=p===r?m.isActive:null;!1===b&&(c=h);let T=v===a[p]&&v!==s[p]&&x;if(T&&(i||n)&&e.manuallyAnimateOnMount&&(T=!1),m.protectedKeys={...u},!m.isActive&&null===b||!v&&!m.prevProp||(0,g.H)(v)||"boolean"==typeof v)continue;if("exit"===p&&m.isActive&&!0!==b){m.prevResolvedValues&&(u={...u,...m.prevResolvedValues});continue}let S=(d=m.prevProp,"string"==typeof v?v!==d:!!Array.isArray(v)&&!shallowCompare(v,d)),w=S||p===r&&m.isActive&&!T&&x||h>c&&x,E=!1,A=Array.isArray(v)?v:[v],P=A.reduce(buildResolvedTypeValues(p),{});!1===b&&(P={});let{prevResolvedValues:V={}}=m,D={...V,...P},markToAnimate=t=>{w=!0,l.has(t)&&(E=!0,l.delete(t)),m.needsAnimating[t]=!0;let i=e.getValue(t);i&&(i.liveStyle=!1)};for(let e in D){let t=P[e],i=V[e];if(!u.hasOwnProperty(e))(isKeyframesTarget(t)&&isKeyframesTarget(i)?!shallowCompare(t,i)||S:t!==i)?null!=t?markToAnimate(e):l.add(e):void 0!==t&&l.has(e)?markToAnimate(e):m.protectedKeys[e]=!0}m.prevProp=v,m.prevResolvedValues=P,m.isActive&&(u={...u,...P}),(i||n)&&e.blockInitialAnimation&&(w=!1);let C=T&&S,k=!C||E;w&&k&&o.push(...A.map(t=>{let r={type:p};if("string"==typeof t&&(i||n)&&!C&&e.manuallyAnimateOnMount&&e.parent){let{parent:i}=e,n=resolveVariant(i,t);if(i.enteringChildren&&n){let{delayChildren:t}=n.transition||{};r.delay=calcChildStagger(i.enteringChildren,e,t)}}return{animation:t,options:r}}))}if(l.size){let t={};if("boolean"!=typeof s.initial){let i=resolveVariant(e,Array.isArray(s.initial)?s.initial[0]:s.initial);i&&i.transition&&(t.transition=i.transition)}l.forEach(i=>
34{let n=e.getBaseTarget(i),r=e.getValue(i);r&&(r.liveStyle=!0),t[i]=n??null}),o.push({animation:t})}let h=!!o.length;return i&&(!1===s.initial||s.initial===s.animate)&&!e.manuallyAnimateOnMount&&(h=!1),i=!1,n=!1,h?animate(o):Promise.resolve()}return{animateChanges,setActive:function(i,n){if(t[i].isActive===n)return Promise.resolve();e.variantChildren?.forEach(e=>e.animationState?.setActive(i,n)),t[i].isActive=n;let r=animateChanges(i);for(let e in t)t[e].protectedKeys={};return r},setAnimateFunction:function(t){animate=t(e)},getState:()=>t,reset:()=>{t=createState(),n=!0}}}(e))}updateAnimationControlsSubscription(){let{animate:e}=this.node.getProps();(0,g.H)(e)&&(this.unmountControls=e.subscribe(this.node))}mount(){this.updateAnimationControlsSubscription()}update(){let{animate:e}=this.node.getProps(),{animate:t}=this.node.prevProps||{};e!==t&&this.updateAnimationControlsSubscription()}unmount(){this.node.animationState.reset(),this.unmountControls?.()}};let x=0;let ExitAnimationFeature=class ExitAnimationFeature extends n.L{constructor(){super(...arguments),this.id=x++,this.isExitComplete=!1}update(){if(!this.node.presenceContext)return;let{isPresent:e,onExitComplete:t}=this.node.presenceContext,{isPresent:i}=this.node.prevPresenceContext||{};if(!this.node.animationState||e===i)return;if(e&&!1===i){if(this.isExitComplete){let{initial:e,custom:t}=this.node.getProps();if("string"==typeof e||"object"==typeof e&&null!==e&&!Array.isArray(e)){let i=resolveVariant(this.node,e,t);if(i){let{transition:e,transitionEnd:t,...n}=i;for(let e in n)this.node.getValue(e)?.jump(n[e])}}this.node.animationState.reset(),this.node.animationState.animateChanges()}else this.node.animationState.setActive("exit",!1);this.isExitComplete=!1;return}let n=this.node.animationState.setActive("exit",!e);t&&!e&&n.then(()=>{this.isExitComplete=!0,t(this.id)})}mount(){let{register:e,onExitComplete:t}=this.node.presenceContext||{};t&&t(this.id),e&&(this.unmount=e(this.id))}unmount(){}};let b={animation:{Feature:AnimationFeature},exit:{Feature:ExitAnimationFeature}}},9442:function(e,t,i){"use strict";i.d(t,{t:function(){return getInitializedFeatureDefinitions}});var n=i(99770);let r={animation:["animate","variants","whileHover","whileTap","exit","whileInView","whileFocus","whileDrag"],exit:["exit"],drag:["drag","dragControls"],focus:["whileFocus"],hover:["whileHover","onHoverStart","onHoverEnd"],tap:["whileTap","onTap","onTapStart","onTapCancel"],pan:["onPan","onPanStart","onPanSessionStart","onPanEnd"],inView:["whileInView","onViewportEnter","onViewportLeave"],layout:["layout","layoutId"]},s=!1;function getInitializedFeatureDefinitions(){return!function(){if(s)return;let e={};for(let t in r)e[t]={isEnabled:e=>r[t].some(t=>!!e[t])};(0,n.v7)(e),s=!0}(),(0,n.uN)()}},43778:function(e,t,i){"use strict";i.d(t,{E:function(){return v}});var n=i(82866),r=i(6080),s=i(57747),a=i(11816);function setupGesture(e,t){let i=(0,a.I)(e),n=new AbortController,r={passive:!0,...t,signal:n.signal};return[i,r,()=>n.abort()]}var o=i(28148);function handleHoverEvent(e,t,i){let{props:r}=e;e.animationState&&r.whileHover&&e.animationState.setActive("whileHover","Start"===i);let s="onHover"+i,a=r[s];a&&n.Wi.postRender(()=>a(t,(0,o.Q)(t)))}let HoverGesture=class HoverGesture extends r.L{mount(){let{current:e}=this.node;e&&(this.unmount=function(e,t,i={}){let[n,r,a]=setupGesture(e,i);return n.forEach(e=>{let i,n=!1,a=!1,removePointerLeave=()=>{e.removeEventListener("pointerleave",onPointerLeave)},endHover=e=>{i&&(i(e),i=void 0),removePointerLeave()},onPointerUp=e=>{n=!1,window.removeEventListener("pointerup",onPointerUp),window.removeEventListener("pointercancel",onPointerUp),a&&(a=!1,endHover(e))},onPointerLeave=e=>{if("touch"!==e.pointerType){if(n){a=!0;return}endHover(e)}};e.addEventListener("pointerenter",n=>{if("touch"===n.pointerType||(0,s.g)())return;a=!1;let o=t(e,n);"function"==typeof o&&(i=o,e.addEventListener("pointerleave",onPointerLeave,r))},r),e.addEventListener("pointerdown",()=>{n=!0,window.addEventListener("pointerup",onPointerUp,r),window.addEventListener("pointercancel",onPointerUp,r)},r)}),a}(e,(e,t)=>(handleHoverEvent(this.node,t,"Start"),e=>handleHoverEvent(this.node,e,"End"))))}unmount(){}};var l=i(75421),u=i(377);let FocusGesture=class FocusGesture extends r.L{constructor(){super(...arguments),this.isActive=!1}onFocus(){let e=!1;try{e=this.node.current.matches(":focus-visible")}catch(t){e=!0}e&&this.node.animationState&&(this.node.animationState.setActive("whileFocus",!0),this.isActive=!0)}onBlur(){this.isActive&&this.node.animationState&&(this.node.animationState.setActive("whileFocus",!1),this.isActive=!1)}mount(){this.unmount=(0,u.z)((0,l.E)(this.node.current,"focus",()=>this.onFocus()),(0,l.E)(this.node.current,"blur",()=>this.onBlur()))}unmount(){}};var c=i(93243);let isNodeOrChild=(e,t)=>!!t&&(e===t||isNodeOrChild(e,t.parentElement));var d=i(66515),h=i(50969);let f=new WeakSet;function filterEvents(e){return t=>{"Enter"===t.key&&e(t)}}function firePointerEvent(e,t){e.dispatchEvent(new PointerEvent("pointer"+t,{isPrimary:!0,bubbles:!0}))}let enableKeyboardPress=(e,t)=>{let i=e.currentTarget;if(!i)return;let n=filterEvents(()=>
34{if(f.has(i))return;firePointerEvent(i,"down");let e=filterEvents(()=>{firePointerEvent(i,"up")});i.addEventListener("keyup",e,t),i.addEventListener("blur",()=>firePointerEvent(i,"cancel"),t)});i.addEventListener("keydown",n,t),i.addEventListener("blur",()=>i.removeEventListener("keydown",n),t)};function isValidPressEvent(e){return(0,d.D)(e)&&!(0,s.g)()}let p=new WeakSet;function handlePressEvent(e,t,i){let{props:r}=e;if(e.current instanceof HTMLButtonElement&&e.current.disabled)return;e.animationState&&r.whileTap&&e.animationState.setActive("whileTap","Start"===i);let s="onTap"+("End"===i?"":i),a=r[s];a&&n.Wi.postRender(()=>a(t,(0,o.Q)(t)))}let PressGesture=class PressGesture extends r.L{mount(){let{current:e}=this.node;if(!e)return;let{globalTapTarget:t,propagate:i}=this.node.props;this.unmount=function(e,t,i={}){let[n,r,s]=setupGesture(e,i),startPress=e=>{let n=e.currentTarget;if(!isValidPressEvent(e)||p.has(e))return;f.add(n),i.stopPropagation&&p.add(e);let s=t(n,e),a={...r,capture:!0},onPointerEnd=(e,t)=>{window.removeEventListener("pointerup",onPointerUp,a),window.removeEventListener("pointercancel",onPointerCancel,a),f.has(n)&&f.delete(n),isValidPressEvent(e)&&"function"==typeof s&&s(e,{success:t})},onPointerUp=e=>{onPointerEnd(e,n===window||n===document||i.useGlobalTarget||isNodeOrChild(n,e.target))},onPointerCancel=e=>{onPointerEnd(e,!1)};window.addEventListener("pointerup",onPointerUp,a),window.addEventListener("pointercancel",onPointerCancel,a)};return n.forEach(e=>{let t=i.useGlobalTarget?window:e;t.addEventListener("pointerdown",startPress,r),!(0,c.R)(e)||(e.addEventListener("focus",e=>enableKeyboardPress(e,r)),(0,h._)(e)||e.hasAttribute("tabindex")||(e.tabIndex=0))}),s}(e,(e,t)=>(handlePressEvent(this.node,t,"Start"),(e,{success:t})=>handlePressEvent(this.node,e,t?"End":"Cancel")),{useGlobalTarget:t,stopPropagation:i?.tap===!1})}unmount(){}};let m=new WeakMap,g=new WeakMap,fireObserverCallback=e=>{let t=m.get(e.target);t&&t(e)},fireAllObserverCallbacks=e=>{e.forEach(fireObserverCallback)},y={some:0,all:1};let InViewFeature=class InViewFeature extends r.L{constructor(){super(...arguments),this.hasEnteredView=!1,this.isInView=!1}startObserver(){this.stopObserver?.();let{viewport:e={}}=this.node.getProps(),{root:t,margin:i,amount:n="some",once:r}=e,s={root:t?t.current:void 0,rootMargin:i,threshold:"number"==typeof n?n:y[n]};this.stopObserver=function(e,t,i){let n=function({root:e,...t}){let i=e||document;g.has(i)||g.set(i,{});let n=g.get(i),r=JSON.stringify(t);return n[r]||(n[r]=new IntersectionObserver(fireAllObserverCallbacks,{root:e,...t})),n[r]}(t);return m.set(e,i),n.observe(e),()=>{m.delete(e),n.unobserve(e)}}(this.node.current,s,e=>{let{isIntersecting:t}=e;if(this.isInView===t||(this.isInView=t,r&&!t&&this.hasEnteredView))return;t&&(this.hasEnteredView=!0),this.node.animationState&&this.node.animationState.setActive("whileInView",t);let{onViewportEnter:i,onViewportLeave:n}=this.node.getProps(),s=t?i:n;s&&s(e)})}mount(){this.startObserver()}update(){if("undefined"==typeof IntersectionObserver)return;let{props:e,prevProps:t}=this.node,i=["amount","margin","root"].some(function({viewport:e={}},{viewport:t={}}={}){return i=>e[i]!==t[i]}(e,t));i&&this.startObserver()}unmount(){this.stopObserver?.(),this.hasEnteredView=!1,this.isInView=!1}};let v={inView:{Feature:InViewFeature},tap:{Feature:PressGesture},focus:{Feature:FocusGesture},hover:{Feature:HoverGesture}}},81879:function(e,t,i){"use strict";i.d(t,{K:function(){return loadFeatures}});var n=i(99770),r=i(9442);function loadFeatures(e){let t=(0,r.t)();for(let i in e)t[i]={...t[i],...e[i]};(0,n.v7)(t)}},12113:function(e,t,i){"use strict";i.d(t,{D:function(){return createMotionProxy}});var n,r=i(85893),s=i(67294),a=i(25364),o=i(70398),l=i(16014);let u=(0,s.createContext)({});var c=i(19964),d=i(78781);function variantLabelsAsDependency(e){return Array.isArray(e)?e.join(" "):e}var h=i(32558),f=i(88724),p=i(22196);let createHtmlRenderState=()=>({style:{},transform:{},transformOrigin:{},vars:{}});function copyRawValuesOnly(e,t,i){for(let n in t)(0,h.i)(t[n])||(0,f.jF)(n,i)||
34(e[n]=t[n])}function useHTMLProps(e,t){let i={},n=function(e,t){let i=e.style||{},n={};return copyRawValuesOnly(n,i,e),Object.assign(n,function({transformTemplate:e},t){return(0,s.useMemo)(()=>{let i=createHtmlRenderState();return(0,p.r)(i,t,e),Object.assign({},i.vars,i.style)},[t])}(e,t)),n}(e,t);return e.drag&&!1!==e.dragListener&&(i.draggable=!1,n.userSelect=n.WebkitUserSelect=n.WebkitTouchCallout="none",n.touchAction=!0===e.drag?"none":`pan-${"x"===e.drag?"y":"x"}`),void 0===e.tabIndex&&(e.onTap||e.onTapStart||e.whileTap)&&(i.tabIndex=0),i.style=n,i}var m=i(55450),g=i(31978);let createSvgRenderState=()=>({...createHtmlRenderState(),attrs:{}});function useSVGProps(e,t,i,n){let r=(0,s.useMemo)(()=>{let i=createSvgRenderState();return(0,m.i)(i,t,(0,g.a)(n),e.transformTemplate,e.style),{...i.attrs,style:{...i.style}}},[t]);if(e.style){let t={};copyRawValuesOnly(t,e.style,e),r.style={...t,...r.style}}return r}let y=new Set(["animate","exit","variants","initial","style","values","variants","transition","transformTemplate","custom","inherit","onBeforeLayoutMeasure","onAnimationStart","onAnimationComplete","onUpdate","onDragStart","onDrag","onDragEnd","onMeasureDragConstraints","onDirectionLock","onDragTransitionEnd","_dragX","_dragY","onHoverStart","onHoverEnd","onViewportEnter","onViewportLeave","globalTapTarget","propagate","ignoreStrict","viewport"]);function isValidMotionProp(e){return e.startsWith("while")||e.startsWith("drag")&&"draggable"!==e||e.startsWith("layout")||e.startsWith("onTap")||e.startsWith("onPan")||e.startsWith("onLayout")||y.has(e)}let shouldForward=e=>!isValidMotionProp(e);try{n=require("@emotion/is-prop-valid").default,"function"==typeof n&&(shouldForward=e=>e.startsWith("on")?!isValidMotionProp(e):n(e))}catch{}var v=i(62627),x=i(66441),b=i(80105),T=i(55360),S=i(17935),w=i(240),E=i(96681);let makeUseVisualState=e=>(t,i)=>{let n=(0,s.useContext)(u),r=(0,s.useContext)(w.O),make=()=>(function({scrapeMotionValuesFromProps:e,createRenderState:t},i,n,r){let s={latestValues:function(e,t,i,n){let r={},s=n(e,{});for(let e in s)r[e]=(0,b.b)(s[e]);let{initial:a,animate:o}
34=e,l=(0,c.G)(e),u=(0,c.M)(e);t&&u&&!l&&!1!==e.inherit&&(void 0===a&&(a=t.initial),void 0===o&&(o=t.animate));let d=!!i&&!1===i.initial;d=d||!1===a;let h=d?o:a;if(h&&"boolean"!=typeof h&&!(0,T.H)(h)){let t=Array.isArray(h)?h:[h];for(let i=0;i<t.length;i++){let n=(0,S.o)(e,t[i]);if(n){let{transitionEnd:e,transition:t,...i}=n;for(let e in i){let t=i[e];if(Array.isArray(t)){let e=d?t.length-1:0;t=t[e]}null!==t&&(r[e]=t)}for(let t in e)r[t]=e[t]}}}return r}(i,n,r,e),renderState:t()};return s})(e,t,n,r);return i?make():(0,E.h)(make)},A=makeUseVisualState({scrapeMotionValuesFromProps:x.U,createRenderState:createHtmlRenderState});var P=i(31839);let V=makeUseVisualState({scrapeMotionValuesFromProps:P.U,createRenderState:createSvgRenderState});var D=i(9442),C=i(81879);let k=Symbol.for("motionComponentSymbol");var _=i(90546),O=i(41705),R=i(51804),F=i(75062);function createMotionComponent(e,{forwardMotionProps:t=!1,type:i}={},n,f){n&&(0,C.K)(n);let p=i?"svg"===i:(0,v.q)(e),m=p?V:A;function MotionDOMComponent(i,n){let g;let y={...(0,s.useContext)(l._),...i,layoutId:function({layoutId:e}){let t=(0,s.useContext)(a.p).id;return t&&void 0!==e?t+"-"+e:e}(i)},{isStatic:x}=y,b=function(e){let{initial:t,animate:i}=function(e,t){if((0,c.G)(e)){let{initial:t,animate:i}=e;return{initial:!1===t||(0,d.$)(t)?t:void 0,animate:(0,d.$)(i)?i:void 0}}return!1!==e.inherit?t:{}}(e,(0,s.useContext)(u));return(0,s.useMemo)(()=>({initial:t,animate:i}),[variantLabelsAsDependency(t),variantLabelsAsDependency(i)])}(i),T=m(i,x);if(!x&&"undefined"!=typeof window){(0,s.useContext)(o.u).strict;let t=function(e){let t=(0,D.t)(),{drag:i,layout:n}=t;if(!i&&!n)return{};let r={...i,...n};return{MeasureLayout:i?.isEnabled(e)||n?.isEnabled(e)?r.MeasureLayout:void 0,ProjectionNode:r.ProjectionNode}}(y);g=t.MeasureLayout,b.visualElement=function(e,t,i,n,r,a){let{visualElement:c}=(0,s.useContext)(u),d=(0,s.useContext)(o.u),h=(0,s.useContext)(w.O),f=(0,s.useContext)(l._),p=f.reducedMotion,m=f.skipAnimations,g=(0,s.useRef)(null),y=(0,s.useRef)(!1);n=n||d.renderer,!g.current&&n&&(g.current=n(e,{visualState:t,parent:c,props:i,presenceContext:h,blockInitialAnimation:!!h&&!1===h.initial,reducedMotionConfig:p,skipAnimations:m,isSVG:a}),y.current&&g.current&&(g.current.manuallyAnimateOnMount=!0));let v=g.current,x=(0,s.useContext)(O.g);v&&!v.projection&&r&&("html"===v.type||"svg"===v.type)&&function(e,t,i,n){let{layoutId:r,layout:s,drag:a,dragConstraints:o,layoutScroll:l,layoutRoot:u,layoutAnchor:c,layoutCrossfade:d}=t;e.projection=new i(e.latestValues,t["data-framer-portal-id"]?void 0:function getClosestProjectingNode(e){if(e)return!1!==e.options.allowProjection?e.projection:getClosestProjectingNode(e.parent)}(e.parent)),e.projection.setOptions({layoutId:r,layout:s,alwaysMeasureLayout:!!a||o&&(0,R.I)(o),visualElement:e,animationType:"string"==typeof s?s:"both",initialPromotionConfig:n,crossfade:d,layoutScroll:l,layoutRoot:u,layoutAnchor:c})}(g.current,i,r,x);let b=(0,s.useRef)(!1);(0,s.useInsertionEffect)(()=>{v&&b.current&&v.update(i,h)});let T=i[_.M],S=(0,s.useRef)(!!T&&"undefined"!=typeof window&&!window.MotionHandoffIsComplete?.(T)&&window.MotionHasOptimisedAnimation?.(T));return(0,F.L)(()=>{y.current=!0,v&&(b.current=!0,window.MotionIsMounted=!0,v.updateFeatures(),v.scheduleRenderMicrotask(),S.current&&v.animationState&&v.animationState.animateChanges())}),(0,s.useEffect)(()=>{v&&(!S.current&&v.animationState&&v.animationState.animateChanges(),S.current&&(queueMicrotask(()=>{window.MotionHandoffMarkAsComplete?.(T)}),S.current=!1),v.enteringChildren=void 0)}),v}(e,T,y,f,t.ProjectionNode,p)}return(0,r.jsxs)(u.Provider,{value:b,children:[g&&b.visualElement?(0,r.jsx)(g,{visualElement:b.visualElement,...y}):null,function(e,t,i,{latestValues:n},r,a=!1,o){let l=o??(0,v.q)(e)?useSVGProps:useHTMLProps,u=l(t,n,r,e),c=function(e,t,i){let n={};for(let r in e)("values"!==r||"object"!=typeof e.values)&&!(0,h.i)(e[r])&&(shouldForward(r)||!0===i&&isValidMotionProp(r)||!t&&!isValidMotionProp(r)||e.draggable&&r.startsWith("onDrag"))&&(n[r]=e[r]);return n}(t,"string"==typeof e,a),d=e!==s.Fragment?{...c,...u,ref:i}:{},{children:f}=t,p=(0,s.useMemo)(()=>(0,h.i)(f)?f.get():f,[f]);return(0,s.createElement)(e,{...d,children:p})}(e,i,function(e,t,i){let n=(0,s.useRef)(i);(0,s.useInsertionEffect)(()=>{n.current=i});let r=(0,s.useRef)(null);return(0,s.useCallback)(i=>{i&&e.onMount?.(i),t&&(i?t.mount(i):t.unmount());let s=n.current;if("function"==typeof s){if(i){let e=s(i);"function"==typeof e&&(r.current=e)}else r.current?(r.current(),r.current=null):s(i)}else s&&(s.current=i)},[t])}(T,b.visualElement,n),T,x,t,p)]})}MotionDOMComponent.displayName=`motion.${"string"==typeof e?e:`create(${e.displayName??e.name??""})`}`;let g=(0,s.forwardRef)(MotionDOMComponent);return g[k]=e,g}function createMotionProxy(e,t){if("undefined"==typeof Proxy)return createMotionComponent;let i=new Map,factory=(i,n)=>createMotionComponent(i,n,e,t);return new Proxy((e,t)=>factory(e,t),{get:(n,r)=>"create"===r?factory:(i.has(r)||i.set(r,createMotionComponent(r,void 0,e,t)),i.get(r))})}},18834:function(e,t,i){"use strict";i.d(t,{m:function(){return r}});var n=i(12113);let r=(0,n.D)()},82254:function(e,t,i){"use strict";i.d(t,{E:function(){return ep}});var n=i(39043),r=i(12113),s=i(41254),a=i(6080),o=i(27726),l=i(18042),u=i(57747);function eachAxis(e){return[e("x"),e("y")]}var c=i(37259),d=i(82659);function calcLength(e){return e.max-e.min}function calcAxisDelta(e,t,i,n=.5){e.origin=n,e.originPoint=(0,d.t)(t.min,t.max,e.origin),e.scale=calcLength(i)/calcLength(t),e.translate=(0,d.t)(i.min,i.max,e.origin)-e.originPoint,(e.scale>=.9999&&e.scale<=1.0001||isNaN(e.scale))&&(e.scale=1),(e.translate>=-.01&&e.translate<=.01||isNaN(e.translate))&&(e.translate=0)}function calcBoxDelta(e,t,i,n){calcAxisDelta(e.x,t.x,i.x,n?n.originX:void 0),calcAxisDelta(e.y,t.y,i.y,n?n.originY:void 0)}function calcRelativeAxis(e,t,i,n=0){let r=n?(0,d.t)(i.min,i.max,n):i.min;e.min=r+t.min,e.max=e.min+calcLength(t)}function calcRelativeAxisPosition(e,t,i,n=0){let r=n?(0,d.t)(i.min,i.max,n):i.min;e.min=t.min-r,e.max=e.min+calcLength(t)}function calcRelativePosition(e,t,i,n){calcRelativeAxisPosition(e.x,t.x,i.x,n?.x),calcRelativeAxisPosition(e.y,t.y,i.y,n?.y)}var h=i(82866),f=i(47772),p=i(65034),m=i(6364),g=i(35867),y=i(50969),v=i(75421),x=i(94915),b=i(25386),T=i(28148);
34function addPointerEvent(e,t,i,n){return(0,v.E)(e,t,(0,T.s)(i),n)}let getContextWindow=({current:e})=>e?e.ownerDocument.defaultView:null;var S=i(51804),w=i(66515),E=i(377),A=i(14400);let distance=(e,t)=>Math.abs(e-t),P=new Set(["auto","scroll"]);let PanSession=class PanSession{constructor(e,t,{transformPagePoint:i,contextWindow:n=window,dragSnapToOrigin:r=!1,distanceThreshold:s=3,element:a}={}){if(this.startEvent=null,this.lastMoveEvent=null,this.lastMoveEventInfo=null,this.lastRawMoveEventInfo=null,this.handlers={},this.contextWindow=window,this.scrollPositions=new Map,this.removeScrollListeners=null,this.onElementScroll=e=>{this.handleScroll(e.target)},this.onWindowScroll=()=>{this.handleScroll(window)},this.updatePoint=()=>{if(!(this.lastMoveEvent&&this.lastMoveEventInfo))return;this.lastRawMoveEventInfo&&(this.lastMoveEventInfo=transformPoint(this.lastRawMoveEventInfo,this.transformPagePoint));let e=getPanInfo(this.lastMoveEventInfo,this.history),t=null!==this.startEvent,i=function(e,t){let i=distance(e.x,t.x),n=distance(e.y,t.y);return Math.sqrt(i**2+n**2)}(e.offset,{x:0,y:0})>=this.distanceThreshold;if(!t&&!i)return;let{point:n}=e,{timestamp:r}=h.frameData;this.history.push({...n,timestamp:r});let{onStart:s,onMove:a}=this.handlers;t||(s&&s(this.lastMoveEvent,e),this.startEvent=this.lastMoveEvent),a&&a(this.lastMoveEvent,e)},this.handlePointerMove=(e,t)=>{this.lastMoveEvent=e,this.lastRawMoveEventInfo=t,this.lastMoveEventInfo=transformPoint(t,this.transformPagePoint),h.Wi.update(this.updatePoint,!0)},this.handlePointerUp=(e,t)=>{this.end();let{onEnd:i,onSessionEnd:n,resumeAnimation:r}=this.handlers;if((this.dragSnapToOrigin||!this.startEvent)&&r&&r(),!(this.lastMoveEvent&&this.lastMoveEventInfo))return;let s=getPanInfo("pointercancel"===e.type?this.lastMoveEventInfo:transformPoint(t,this.transformPagePoint),this.history);this.startEvent&&i&&i(e,s),n&&n(e,s)},!(0,w.D)(e))return;this.dragSnapToOrigin=r,this.handlers=t,this.transformPagePoint=i,this.distanceThreshold=s,this.contextWindow=n||window;let o=(0,T.Q)(e),l=transformPoint(o,this.transformPagePoint),{point:u}=l,{timestamp:c}=h.frameData;this.history=[{...u,timestamp:c}];let{onSessionStart:d}=t;d&&d(e,getPanInfo(l,this.history));let f={passive:!0,capture:!0};this.removeListeners=(0,E.z)(addPointerEvent(this.contextWindow,"pointermove",this.handlePointerMove,f),addPointerEvent(this.contextWindow,"pointerup",this.handlePointerUp,f),addPointerEvent(this.contextWindow,"pointercancel",this.handlePointerUp,f)),a&&this.startScrollTracking(a)}startScrollTracking(e){let t=e.parentElement;for(;t;){let e=getComputedStyle(t);(P.has(e.overflowX)||P.has(e.overflowY))&&this.scrollPositions.set(t,{x:t.scrollLeft,y:t.scrollTop}),t=t.parentElement}this.scrollPositions.set(window,{x:window.scrollX,y:window.scrollY}),window.addEventListener("scroll",this.onElementScroll,{capture:!0}),window.addEventListener("scroll",this.onWindowScroll),this.removeScrollListeners=()=>{window.removeEventListener("scroll",this.onElementScroll,{capture:!0}),window.removeEventListener("scroll",this.onWindowScroll)}}handleScroll(e){let t=this.scrollPositions.get(e);if(!t)return;let i=e===window,n=i?{x:window.scrollX,y:window.scrollY}:{x:e.scrollLeft,y:e.scrollTop},r={x:n.x-t.x,y:n.y-t.y};(0!==r.x||0!==r.y)&&(i?this.lastMoveEventInfo&&(this.lastMoveEventInfo.point.x+=r.x,this.lastMoveEventInfo.point.y+=r.y):this.history.length>0&&(this.history[0].x-=r.x,this.history[0].y-=r.y),this.scrollPositions.set(e,n),h.Wi.update(this.updatePoint,!0))}updateHandlers(e){this.handlers=e}end(){this.removeListeners&&this.removeListeners(),this.removeScrollListeners&&this.removeScrollListeners(),this.scrollPositions.clear(),(0,h.Pn)(this.updatePoint)}};function transformPoint(e,t){return t?{point:t(e.point)}:e}function subtractPoint(e,t){return{x:e.x-t.x,y:e.y-t.y}}function getPanInfo({point:e},t){return{point:e,delta:subtractPoint(e,lastDevicePoint(t)),offset:subtractPoint(e,t[0]),velocity:function(e,t){if(e.length<2)return{x:0,y:0};let i=e.length-1,n=null,r=lastDevicePoint(e);for(;i>=0&&(n=e[i],!(r.timestamp-n.timestamp>(0,A.w)(t)));)i--;if(!n)return{x:0,y:0};n===e[0]&&e.length>2&&r.timestamp-n.timestamp>2*(0,A.w)(t)&&(n=e[1]);let s=(0,A.X)(r.timestamp-n.timestamp);if(0===s)return{x:0,y:0};let a={x:(r.x-n.x)/s,y:(r.y-n.y)/s}
34;return a.x===1/0&&(a.x=0),a.y===1/0&&(a.y=0),a}(t,.1)}}function lastDevicePoint(e){return e[e.length-1]}var V=i(58946),D=i(488);function calcRelativeAxisConstraints(e,t,i){return{min:void 0!==t?e.min+t:void 0,max:void 0!==i?e.max+i-(e.max-e.min):void 0}}function calcViewportAxisConstraints(e,t){let i=t.min-e.min,n=t.max-e.max;return t.max-t.min<e.max-e.min&&([i,n]=[n,i]),{min:i,max:n}}function resolveAxisElastic(e,t,i){return{min:resolvePointElastic(e,t),max:resolvePointElastic(e,i)}}function resolvePointElastic(e,t){return"number"==typeof e?e:e[t]||0}let C=new WeakMap;let VisualElementDragControls=class VisualElementDragControls{constructor(e){this.openDragLock=null,this.isDragging=!1,this.currentDirection=null,this.originPoint={x:0,y:0},this.constraints=!1,this.hasMutatedConstraints=!1,this.elastic=(0,l.dO)(),this.latestPointerEvent=null,this.latestPanInfo=null,this.visualElement=e}start(e,{snapToCursor:t=!1,distanceThreshold:i}={}){let{presenceContext:n}=this.visualElement;if(n&&!1===n.isPresent)return;let{dragSnapToOrigin:r}=this.getProps();this.panSession=new PanSession(e,{onSessionStart:e=>{t&&this.snapToCursor((0,T.Q)(e).point),this.stopAnimation()},onStart:(e,t)=>{let{drag:i,dragPropagation:n,onDragStart:r}=this.getProps();if(i&&!n&&(this.openDragLock&&this.openDragLock(),this.openDragLock="x"===i||"y"===i?u.r[i]?null:(u.r[i]=!0,()=>{u.r[i]=!1}):u.r.x||u.r.y?null:(u.r.x=u.r.y=!0,()=>{u.r.x=u.r.y=!1}),!this.openDragLock))return;this.latestPointerEvent=e,this.latestPanInfo=t,this.isDragging=!0,this.currentDirection=null,this.resolveConstraints(),this.visualElement.projection&&(this.visualElement.projection.isAnimationBlocked=!0,this.visualElement.projection.target=void 0),eachAxis(e=>{let t=this.getAxisMotionValue(e).get()||0;if(c.aQ.test(t)){let{projection:i}=this.visualElement;if(i&&i.layout){let n=i.layout.layoutBox[e];if(n){let e=calcLength(n);t=e*(parseFloat(t)/100)}}}this.originPoint[e]=t}),r&&h.Wi.update(()=>r(e,t),!1,!0),(0,f.K)(this.visualElement,"transform");let{animationState:s}=this.visualElement;s&&s.setActive("whileDrag",!0)},onMove:(e,t)=>{this.latestPointerEvent=e,this.latestPanInfo=t;let{dragPropagation:i,dragDirectionLock:n,onDirectionLock:r,onDrag:s}=this.getProps();if(!i&&!this.openDragLock)return;let{offset:a}=t;if(n&&null===this.currentDirection){this.currentDirection=function(e,t=10){let i=null;return Math.abs(e.y)>t?i="y":Math.abs(e.x)>t&&(i="x"),i}(a),null!==this.currentDirection&&r&&r(this.currentDirection);return}this.updateAxis("x",t.point,a),this.updateAxis("y",t.point,a),this.visualElement.render(),s&&h.Wi.update(()=>s(e,t),!1,!0)},onSessionEnd:(e,t)=>{this.latestPointerEvent=e,this.latestPanInfo=t,this.stop(e,t),this.latestPointerEvent=null,this.latestPanInfo=null},resumeAnimation:()=>{let{dragSnapToOrigin:e}=this.getProps();(e||this.constraints)&&this.startAnimation({x:0,y:0})}},{transformPagePoint:this.visualElement.getTransformPagePoint(),dragSnapToOrigin:r,distanceThreshold:i,contextWindow:getContextWindow(this.visualElement),element:this.visualElement.current})}stop(e,t){let i=e||this.latestPointerEvent,n=t||this.latestPanInfo,r=this.isDragging;if(this.cancel(),!r||!n||!i)return;let{velocity:s}=n;this.startAnimation(s);let{onDragEnd:a}=this.getProps();a&&h.Wi.postRender(()=>a(i,n))}cancel(){this.isDragging=!1;let{projection:e,animationState:t}=this.visualElement;e&&(e.isAnimationBlocked=!1),this.endPanSession();let{dragPropagation:i}=this.getProps();!i&&this.openDragLock&&(this.openDragLock(),this.openDragLock=null),t&&t.setActive("whileDrag",!1)}endPanSession(){this.panSession&&this.panSession.end(),this.panSession=void 0}updateAxis(e,t,i){let{drag:n}=this.getProps();if(!i||!shouldDrag(e,n,this.currentDirection))return;let r=this.getAxisMotionValue(e),s=this.originPoint[e]+i[e];this.constraints&&this.constraints[e]&&(s=function(e,{min:t,max:i},n){return void 0!==t&&e<t?e=n?(0,d.t)(t,e,n.min):Math.max(e,t):void 0!==i&&e>i&&(e=n?(0,d.t)(i,e,n.max):Math.min(e,i)),e}(s,this.constraints[e],this.elastic[e])),r.set(s)}resolveConstraints(){let{dragConstraints:e,dragElastic:t}=this.getProps(),i=this.visualElement.projection&&!this.visualElement.projection.layout?this.visualElement.projection.measure(!1):this.visualElement.projection?.layout,n=this.constraints;e&&(0,S.I)(e)?this.constraints||(this.constraints=this.resolveRefConstraints()):e&&i?this.constraints=function(e,{top:t,left:i,bottom:n,right:r}){return{x:calcRelativeAxisConstraints(e.x,i,r),y:calcRelativeAxisConstraints(e.y,t,n)}}(i.layoutBox,e):this.constraints=!1,this.elastic=function(e=.35){return!1===e?e=0:!0===e&&(e=.35),{x:resolveAxisElastic(e,"left","right"),y:resolveAxisElastic(e,"to
34p","bottom")}}(t),n!==this.constraints&&!(0,S.I)(e)&&i&&this.constraints&&!this.hasMutatedConstraints&&eachAxis(e=>{!1!==this.constraints&&this.getAxisMotionValue(e)&&(this.constraints[e]=function(e,t){let i={};return void 0!==t.min&&(i.min=t.min-e.min),void 0!==t.max&&(i.max=t.max-e.min),i}(i.layoutBox[e],this.constraints[e]))})}resolveRefConstraints(){var e;let{dragConstraints:t,onMeasureDragConstraints:i}=this.getProps();if(!t||!(0,S.I)(t))return!1;let n=t.current;(0,b.k)(null!==n,"If `dragConstraints` is set as a React ref, that ref must be passed to another component's `ref` prop.","drag-constraints-ref");let{projection:r}=this.visualElement;if(!r||!r.layout)return!1;r.root&&(r.root.scroll=void 0,r.root.updateScroll());let s=(0,p.z)(n,r.root,this.visualElement.getTransformPagePoint()),a={x:calcViewportAxisConstraints((e=r.layout.layoutBox).x,s.x),y:calcViewportAxisConstraints(e.y,s.y)};if(i){let e=i((0,m.z2)(a));this.hasMutatedConstraints=!!e,e&&(a=(0,m.i8)(e))}return a}startAnimation(e){let{drag:t,dragMomentum:i,dragElastic:n,dragTransition:r,dragSnapToOrigin:s,onDragTransitionEnd:a}=this.getProps(),o=this.constraints||{},l=eachAxis(a=>{if(!shouldDrag(a,t,this.currentDirection))return;let l=o&&o[a]||{};(!0===s||s===a)&&(l={min:0,max:0});let u={type:"inertia",velocity:i?e[a]:0,bounceStiffness:n?200:1e6,bounceDamping:n?40:1e7,timeConstant:750,restDelta:1,restSpeed:10,...r,...l};return this.startAxisValueAnimation(a,u)});return Promise.all(l).then(a)}startAxisValueAnimation(e,t){let i=this.getAxisMotionValue(e);return(0,f.K)(this.visualElement,e),i.start((0,g.v)(e,i,0,t,this.visualElement,!1))}stopAnimation(){eachAxis(e=>this.getAxisMotionValue(e).stop())}getAxisMotionValue(e){let t=`_drag${e.toUpperCase()}`,i=this.visualElement.getProps(),n=i[t];return n||this.visualElement.getValue(e,this.visualElement.latestValues[e]??0)}snapToCursor(e){eachAxis(t=>{let{drag:i}=this.getProps();if(!shouldDrag(t,i,this.currentDirection))return;let{projection:n}=this.visualElement,r=this.getAxisMotionValue(t);if(n&&n.layout){let{min:i,max:s}=n.layout.layoutBox[t],a=r.get()||0;r.set(e[t]-(0,d.t)(i,s,.5)+a)}})}scalePositionWithinConstraints(){if(!this.visualElement.current)return;let{drag:e,dragConstraints:t}=this.getProps(),{projection:i}=this.visualElement;if(!(0,S.I)(t)||!i||!this.constraints)return;this.stopAnimation();let n={x:0,y:0};eachAxis(e=>{let t=this.getAxisMotionValue(e);if(t&&!1!==this.constraints){let i=t.get();n[e]=function(e,t){let i=.5,n=calcLength(e),r=calcLength(t);return r>n?i=(0,V.Y)(t.min,t.max-n,e.min):n>r&&(i=(0,V.Y)(e.min,e.max-r,t.min)),(0,D.u)(0,1,i)}({min:i,max:i},this.constraints[e])}});let{transformTemplate:r}=this.visualElement.getProps();this.visualElement.current.style.transform=r?r({},""):"none",i.root&&i.root.updateScroll(),i.updateLayout(),this.constraints=!1,this.resolveConstraints(),eachAxis(t=>{if(!shouldDrag(t,e,null))return;let i=this.getAxisMotionValue(t),{min:r,max:s}=this.constraints[t];i.set((0,d.t)(r,s,n[t]))}),this.visualElement.render()}addListeners(){let e;if(!this.visualElement.current)return;C.set(this.visualElement,this);let t=this.visualElement.current,i=addPointerEvent(t,"pointerdown",e=>{let{drag:i,dragListener:n=!0}=this.getProps(),r=e.target,s=r!==t&&(0,y.T)(r);i&&n&&!s&&this.start(e)}),measureDragConstraints=()=>{let{dragConstraints:i}=this.getProps();(0,S.I)(i)&&i.current&&(this.constraints=this.resolveRefConstraints(),e||(e=function(e,t,i){let n=(0,x.S)(e,skipFirstCall(i)),r=(0,x.S)(t,skipFirstCall(i));return()=>{n(),r()}}(t,i.current,()=>this.scalePositionWithinConstraints())))},{projection:n}=this.visualElement,r=n.addEventListener("measure",measureDragConstraints);n&&!n.layout&&(n.root&&n.root.updateScroll(),n.updateLayout()),h.Wi.read(measureDragConstraints);let s=(0,v.E)(window,"resize",()=>this.scalePositionWithinConstraints()),a=n.addEventListener("didUpdate",({delta:e,hasLayoutChanged:t})=>{this.isDragging&&t&&(eachAxis(t=>{let i=this.getAxisMotionValue(t);i&&(this.originPoint[t]+=e[t].translate,i.set(i.get()+e[t].translate))}),this.visualElement.render())});return()=>{s(),i(),r(),a&&a(),e&&e()}}getProps(){let e=this.visualElement.getProps(),{drag:t=!1,dragDirectionLock:i=!1,dragPropagation:n=!1,dragConstraints:r=!1,dragElastic:s=.35,dragMomentum:a=!0}=e;return{...e,drag:t,dragDirectionLock:i,dragPropagation:n,dragConstraints:r,dragElastic:s,dragMomentum:a}}};function skipFirstCall(e){let t=!0;return()=>{if(t){t=!1;return}e()}}function shouldDrag(e,t,i){return(!0===t||t===e)&&(null===i||i===e)}let DragGesture=class DragGesture extends a.L{constructor(e){super(e),this.removeGroupControls=o.Z,this.removeListeners=o.Z,this.controls=new VisualElementDragControls(e)}mount(){let{dragControls:e}=this.node.getProps();e&&(this.removeGroupControls=e.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||o.Z}update(){let{dragControls:e}=this.node.getProps(),{dragControls:t}=this.node.prevProps||{};e!==t&&(this.removeGroupControls(),e&&(this.removeGroupControls=e.subscribe(this.controls)))}unmount(){this.removeGroupControls(),this.removeListeners(),this.controls.isDragging||this.controls.endPanSession()}};let asyncHandler=e=>(t,i)=>{e&&h.Wi.update(()=>e(t,i),!1,!0)};let PanGesture=class PanGesture extends a.L{constructor(){super(...arguments),this.removePointerDownListener=o.Z}onPointerDown(e){this.session=new PanSession(e,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint(),contextWindow:getContextWindow(this.node)})}createPanHandlers(){let{onPanSessionStart:e,onPanStart:t,onPan:i,onPanEnd:n}=this.node.getProps();return{onSessionStart:asyncHandler(e),onStart:asyncHandler(t),onMove:asyncHandler(i),onEnd:(e,t)=>{delete this.session,n&&h.Wi.postRender(()=>n(e,t))}}}mount(){this.removePointerDownListener=addPointerEvent(this.node.current,"pointerdown",e=>this.onPointerDown(e))}update(){this.session&&this.session.updateHandlers(this.createPanHandlers())}unmount(){this.removePointerDownListener(),this.session&&this.session.end()}};var k=i(85893);let _={hasAnimatedSinceResize:!0,hasEverUpdated:!1};var O=i(86008),R=i(67294),F=i(15947),M=i(25364),j=i(41705);let L=!1;let MeasureLayoutWithContext=class MeasureLayoutWithContext extends R.Component{componentDidMount(){let{visualElement:e,layoutGroup:t,switchLayoutGroup:i,layoutId:n}=this.props,{projection:r}=e;r&&(t.group&&t.group.add(r),i&&i.register&&n&&i.register(r),L&&r.root.didUpdate(),r.addEventListener("animationComplete",()=>{this.safeToRemove()}),r.setOptions({...r.options,layoutDependency:this.props.layoutDependency,onExitComplete:()=>this.safeToRemove()})),_.hasEverUpdated=!0}getSnapshotBeforeUpdate(e){let{layoutDependency:t,visualElement:i,drag:n,isPresent:r}=this.props,{projection:s}=i;return s&&(s.isPresent=r,e.layoutDependency!==t&&s.setOptions({...s.options,layoutDependency:t}),L=!0,n||e.layoutDependency!==t||void 0===t||e.isPresent!==r?s.willUpdate():this.safeToRemove(),e.isPresent===r||(r?s.promote():s.relegate()||h.Wi.postRender(()=>{let e=s.getStack();e&&e.members.length||this.safeToRemove()}))),null}componentDidUpdate(){let{visualElement:e,layoutAnchor:t}=this.props,{projection:i}=e;i&&(i.options.layoutAnchor=t,i.root.didUpdate(),O.g.postRender(()=>{!i.currentAnimation&&i.isLead()&&this.safeToRemove()}))}componentWillUnmount(){let{visualElement:e,layoutGroup:t,switchLayoutGroup:i}=this.props,{projection:n}=e;L=!0,n&&(n.scheduleCheckAfterUnmount(),t&&t.group&&t.group.remove(n),i&&i.deregister&&i.deregister(n))}safeToRemove(){let{safeToRemove:e}=this.props;e&&e()}render(){return null}};function MeasureLayout(e){let[t,i]=(0,F.oO)(),n=(0,R.useContext)(M.p);return(0,k.jsx)(MeasureLayoutWithContext,{...e,layoutGroup:n,switchLayoutGroup:(0,R.useContext)(j.g),isPresent:t,safeToRemove:i})}
34var N=i(88449),I=i(68486),B=i(32558),U=i(51681),W=i(53860),$=i(67245),q=i(66640);let z={value:null,addProjectionMetrics:null};var K=i(40678),H=i(80105),X=i(53158),G=i(36094);let Y=G.v.length,asNumber=e=>"string"==typeof e?parseFloat(e):e,isPx=e=>"number"==typeof e||c.px.test(e);function getRadius(e,t){return void 0!==e[t]?e[t]:e.borderRadius}let Z=compress(0,.5,X.Bn),J=compress(.5,.95,o.Z);function compress(e,t,i){return n=>n<e?0:n>t?1:i((0,V.Y)(e,t,n))}function copyAxisInto(e,t){e.min=t.min,e.max=t.max}function copyBoxInto(e,t){copyAxisInto(e.x,t.x),copyAxisInto(e.y,t.y)}function copyAxisDeltaInto(e,t){e.translate=t.translate,e.scale=t.scale,e.originPoint=t.originPoint,e.origin=t.origin}var Q=i(81884);function removePointDelta(e,t,i,n,r){return e-=t,e=(0,Q.q2)(e,1/i,n),void 0!==r&&(e=(0,Q.q2)(e,1/r,n)),e}function removeAxisTransforms(e,t,[i,n,r],s,a){!function(e,t=0,i=1,n=.5,r,s=e,a=e){if(c.aQ.test(t)){t=parseFloat(t);let e=(0,d.t)(a.min,a.max,t/100);t=e-a.min}if("number"!=typeof t)return;let o=(0,d.t)(s.min,s.max,n);e===s&&(o-=t),e.min=removePointDelta(e.min,t,i,o,r),e.max=removePointDelta(e.max,t,i,o,r)}(e,t[i],t[n],t[r],t.scale,s,a)}let ee=["x","scaleX","originX"],et=["y","scaleY","originY"];function removeBoxTransforms(e,t,i,n){removeAxisTransforms(e.x,t,ee,i?i.x:void 0,n?n.x:void 0),removeAxisTransforms(e.y,t,et,i?i.y:void 0,n?n.y:void 0)}function isAxisDeltaZero(e){return 0===e.translate&&1===e.scale}function isDeltaZero(e){return isAxisDeltaZero(e.x)&&isAxisDeltaZero(e.y)}function axisEquals(e,t){return e.min===t.min&&e.max===t.max}function axisEqualsRounded(e,t){return Math.round(e.min)===Math.round(t.min)&&Math.round(e.max)===Math.round(t.max)}function boxEqualsRounded(e,t){return axisEqualsRounded(e.x,t.x)&&axisEqualsRounded(e.y,t.y)}function aspectRatio(e){return calcLength(e.x)/calcLength(e.y)}function axisDeltaEquals(e,t){return e.translate===t.translate&&e.scale===t.scale&&e.originPoint===t.originPoint}var ei=i(35774);let NodeStack=class NodeStack{constructor(){this.members=[]}add(e){(0,ei.y4)(this.members,e);for(let t=this.members.length-1;t>=0;t--){let i=this.members[t];if(i===e||i===this.lead||i===this.prevLead)continue;let n=i.instance;n&&!1!==n.isConnected||i.snapshot||((0,ei.cl)(this.members,i),i.unmount())}e.scheduleRender()}remove(e){if((0,ei.cl)(this.members,e),e===this.prevLead&&(this.prevLead=void 0),e===this.lead){let e=this.members[this.members.length-1];e&&this.promote(e)}}relegate(e){for(let t=this.members.indexOf(e)-1;t>=0;t--){let e=this.members[t];if(!1!==e.isPresent&&e.instance?.isConnected!==!1)return this.promote(e),!0}return!1}promote(e,t){let i=this.lead;if(e!==i&&(this.prevLead=i,this.lead=e,e.show(),i)){i.updateSnapshot(),e.scheduleRender();let{layoutDependency:n}=i.options,{layoutDependency:r}=e.options;(void 0===n||n!==r)&&(e.resumeFrom=i,t&&(i.preserveOpacity=!0),i.snapshot&&(e.snapshot=i.snapshot,e.snapshot.latestValues=i.animationValues||i.latestValues),e.root?.isUpdating&&(e.isLayoutDirty=!0)),!1===e.options.crossfade&&i.hide()}}exitAnimationComplete(){this.members.forEach(e=>{e.options.onExitComplete?.(),e.resumingFrom?.options.onExitComplete?.()})}scheduleRender(){this.members.forEach(e=>e.instance&&e.scheduleRender(!1))}removeLeadSnapshot(){this.lead?.snapshot&&(this.lead.snapshot=void 0)}};let compareByDepth=(e,t)=>e.depth-t.depth;let FlatTree=class FlatTree{constructor(){this.children=[],this.isDirty=!1}add(e){(0,ei.y4)(this.children,e),this.isDirty=!0}remove(e){(0,ei.cl)(this.children,e),this.isDirty=!0}forEach(e){this.isDirty&&this.children.sort(compareByDepth),this.isDirty=!1,this.children.forEach(e)}};var en=i(30452);let er={nodes:0,calculatedTargetDeltas:0,calculatedProjections:0},es=["","X","Y","Z"],ea=0;function resetDistortingTransform(e,t,i,n){let{latestValues:r}=t;r[e]&&(i[e]=r[e],t.setStaticValue(e,0),n&&(n[e]=0))}function createProjectionNode({attachResizeListener:e,defaultParent:t,measureScroll:i,checkIsScrollRoot:n,resetTransform:r}){return class{constructor(e={},i=t?.()){this.id=ea++,this.animationId=0,this.animationCommitId=0,this.children=new Set,this.options={},this.isTreeAnimating=!1,this.isAnimationBlocked=!1,this.isLayoutDirty=!1,this.isProjectionDirty=!1,this.isSharedProjectionDirty=!1,this.isTransformDirty=!1,this.updateManuallyBlocked=!1,this.updateBlockedByResize=!1,this.isUpdating=!1,this.isSVG=!1,this.needsReset=!1,this.shouldResetTransform=!1,this.hasCheckedOptimisedAppear=!1,this.treeScale={x:1,y:1},this.eventHandlers=new Map,this.hasTreeAnimated=!1,this.layoutVersion=0,this.updateScheduled=!1,this.scheduleUpdate=()=>this.update(),this.projectionUpdateScheduled=!1,this.checkUpdateFailed=()=>{this.isUpdating&&(this.isUpdating=!1,this.clearAllSnapshots())},this.updateProjection=()=>{this.projectionUpdateScheduled=!1,z.value&&(er.nodes=er.calculatedTargetDeltas=er.calculatedProjections=0),this.nodes.forEac
34h(propagateDirtyNodes),this.nodes.forEach(resolveTargetDelta),this.nodes.forEach(calcProjection),this.nodes.forEach(cleanDirtyNodes),z.addProjectionMetrics&&z.addProjectionMetrics(er)},this.resolvedRelativeTargetAt=0,this.linkedParentVersion=0,this.hasProjected=!1,this.isVisible=!0,this.animationProgress=0,this.sharedNodes=new Map,this.latestValues=e,this.root=i?i.root||i:this,this.path=i?[...i.path,i]:[],this.parent=i,this.depth=i?i.depth+1:0;for(let e=0;e<this.path.length;e++)this.path[e].shouldResetTransform=!0;this.root===this&&(this.nodes=new FlatTree)}addEventListener(e,t){return this.eventHandlers.has(e)||this.eventHandlers.set(e,new N.L),this.eventHandlers.get(e).add(t)}notifyListeners(e,...t){let i=this.eventHandlers.get(e);i&&i.notify(...t)}hasListeners(e){return this.eventHandlers.has(e)}mount(t){if(this.instance)return;this.isSVG=(0,K.v)(t)&&(!(0,K.v)(t)||"svg"!==t.tagName),this.instance=t;let{layoutId:i,layout:n,visualElement:r}=this.options;if(r&&!r.current&&r.mount(t),this.root.nodes.add(this),this.parent&&this.parent.children.add(this),this.root.hasTreeAnimated&&(n||i)&&(this.isLayoutDirty=!0),e){let i;let n=0,resizeUnblockUpdate=()=>this.root.updateBlockedByResize=!1;h.Wi.read(()=>{n=window.innerWidth}),e(t,()=>{let e=window.innerWidth;e!==n&&(n=e,this.root.updateBlockedByResize=!0,i&&i(),i=function(e,t){let i=$.X.now(),checkElapsed=({timestamp:n})=>{let r=n-i;r>=t&&((0,h.Pn)(checkElapsed),e(r-t))};return h.Wi.setup(checkElapsed,!0),()=>(0,h.Pn)(checkElapsed)}(resizeUnblockUpdate,250),_.hasAnimatedSinceResize&&(_.hasAnimatedSinceResize=!1,this.nodes.forEach(finishAnimation)))})}i&&this.root.registerSharedNode(i,this),!1!==this.options.animate&&r&&(i||n)&&this.addEventListener("didUpdate",({delta:e,hasLayoutChanged:t,hasRelativeLayoutChanged:i,layout:n})=>{if(this.isTreeAnimationBlocked()){this.target=void 0,this.relativeTarget=void 0;return}let s=this.options.transition||r.getDefaultTransition()||eo,{onLayoutAnimationStart:a,onLayoutAnimationComplete:o}=r.getProps(),l=!this.targetLayout||!boxEqualsRounded(this.targetLayout,n),u=!t&&i;if(this.options.layoutRoot||this.resumeFrom||u||t&&(l||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0);let t={...(0,W.e)(s,"layout"),onPlay:a,onComplete:o};(r.shouldReduceMotion||this.options.layoutRoot)&&(t.delay=0,t.type=!1),this.startAnimation(t),this.setAnimationOrigin(e,u,t.path)}else t||finishAnimation(this),this.isLead()&&this.options.onExitComplete&&this.options.onExitComplete();this.targetLayout=n})}unmount(){this.options.layoutId&&this.willUpdate(),this.root.nodes.remove(this);let e=this.getStack();e&&e.remove(this),this.parent&&this.parent.children.delete(this),this.instance=void 0,this.eventHandlers.clear(),(0,h.Pn)(this.updateProjection)}blockUpdate(){this.updateManuallyBlocked=!0}unblockUpdate(){this.updateManuallyBlocked=!1}isUpdateBlocked(){return this.updateManuallyBlocked||this.updateBlockedByResize}isTreeAnimationBlocked(){return this.isAnimationBlocked||this.parent&&this.parent.isTreeAnimationBlocked()||!1}startUpdate(){!this.isUpdateBlocked()&&(this.isUpdating=!0,this.nodes&&this.nodes.forEach(resetSkewAndRotation),this.animationId++)}getTransformTemplate(){let{visualElement:e}=this.options;return e&&e.getProps().transformTemplate}willUpdate(e=!0){if(this.root.hasTreeAnimated=!0,this.root.isUpdateBlocked()){this.options.onExitComplete&&this.options.onExitComplete();return}if(window.MotionCancelOptimisedAnimation&&!this.hasCheckedOptimisedAppear&&function cancelTreeOptimisedTransformAnimations(e){if(e.hasCheckedOptimisedAppear=!0,e.root===e)return;let{visualElement:t}=e.options;if(!t)return;let i=(0,U.s)(t);if(window.MotionHasOptimisedAnimation(i,"transform")){let{layout:t,layoutId:n}=e.options;window.MotionCancelOptimisedAnimation(i,"transform",h.Wi,!(t||n))}let{parent:n}=e;n&&!n.hasCheckedOptimisedAppear&&cancelTreeOptimisedTransformAnimations(n)}(this),this.root.isUpdating||this.root.startUpdate(),this.isLayoutDirty)return;this.isLayoutDirty=!0;for(let e=0;e<this.path.length;e++){let t=this.path[e];t.shouldResetTransform=!0,("string"==typeof t.latestValues.x||"string"==typeof t.latestValues.y)&&(t.isLayoutDirty=!0),t.updateScroll("snapshot"),t.options.layoutRoot&&t.willUpdate(!1)}let{layoutId:t,layout:i}=this.options;if(void 0===t&&!i)return;let n=this.getTransformTemplate();this.prevTransformTemplateValue=n?n(this.latestValues,""):void 0,this.updateSnapshot(),e&&this.notifyListeners("willUpdate")}update(){this.updateScheduled=!1;let e=this.isUpdateBlocked();if(e){let e=this.updateBlockedByResize;this.unblockUpdate(),this.updateBlockedByResize=!1,this.clearAllSnapshots(),e&&this.nodes.forEac
34h(forceLayoutMeasure),this.nodes.forEach(clearMeasurements);return}if(this.animationId<=this.animationCommitId){this.nodes.forEach(clearIsLayoutDirty);return}this.animationCommitId=this.animationId,this.isUpdating?(this.isUpdating=!1,this.nodes.forEach(ensureDraggedNodesSnapshotted),this.nodes.forEach(resetTransformStyle),this.nodes.forEach(updateLayout),this.nodes.forEach(notifyLayoutUpdate)):this.nodes.forEach(clearIsLayoutDirty),this.clearAllSnapshots();let t=$.X.now();h.frameData.delta=(0,D.u)(0,1e3/60,t-h.frameData.timestamp),h.frameData.timestamp=t,h.frameData.isProcessing=!0,h.yL.update.process(h.frameData),h.yL.preRender.process(h.frameData),h.yL.render.process(h.frameData),h.frameData.isProcessing=!1}didUpdate(){this.updateScheduled||(this.updateScheduled=!0,O.g.read(this.scheduleUpdate))}clearAllSnapshots(){this.nodes.forEach(clearSnapshot),this.sharedNodes.forEach(removeLeadSnapshots)}scheduleUpdateProjection(){this.projectionUpdateScheduled||(this.projectionUpdateScheduled=!0,h.Wi.preRender(this.updateProjection,!1,!0))}scheduleCheckAfterUnmount(){h.Wi.postRender(()=>{this.isLayoutDirty?this.root.didUpdate():this.root.checkUpdateFailed()})}updateSnapshot(){this.snapshot||!this.instance||(this.snapshot=this.measure(),!this.snapshot||calcLength(this.snapshot.measuredBox.x)||calcLength(this.snapshot.measuredBox.y)||(this.snapshot=void 0))}updateLayout(){if(!this.instance||(this.updateScroll(),!(this.options.alwaysMeasureLayout&&this.isLead())&&!this.isLayoutDirty))return;if(this.resumeFrom&&!this.resumeFrom.instance)for(let e=0;e<this.path.length;e++){let t=this.path[e];t.updateScroll()}let e=this.layout;this.layout=this.measure(!1),this.layoutVersion++,this.layoutCorrected||(this.layoutCorrected=(0,l.dO)()),this.isLayoutDirty=!1,this.projectionDelta=void 0,this.notifyListeners("measure",this.layout.layoutBox);let{visualElement:t}=this.options;t&&t.notify("LayoutMeasure",this.layout.layoutBox,e?e.layoutBox:void 0)}updateScroll(e="measure"){let t=!!(this.options.layoutScroll&&this.instance);if(this.scroll&&this.scroll.animationId===this.root.animationId&&this.scroll.phase===e&&(t=!1),t&&this.instance){let t=n(this.instance);this.scroll={animationId:this.root.animationId,phase:e,isRoot:t,offset:i(this.instance),wasRoot:this.scroll?this.scroll.isRoot:t}}}resetTransform(){if(!r)return;let e=this.isLayoutDirty||this.shouldResetTransform||this.options.alwaysMeasureLayout,t=this.projectionDelta&&!isDeltaZero(this.projectionDelta),i=this.getTransformTemplate(),n=i?i(this.latestValues,""):void 0,s=n!==this.prevTransformTemplateValue;e&&this.instance&&(t||(0,en.ud)(this.latestValues)||s)&&(r(this.instance,n),this.shouldResetTransform=!1,this.scheduleRender())}measure(e=!0){var t;let i=this.measurePageBox(),n=this.removeElementScroll(i);return e&&(n=this.removeTransform(n)),roundAxis((t=n).x),roundAxis(t.y),{animationId:this.root.animationId,measuredBox:i,layoutBox:n,latestValues:{},source:this.id}}measurePageBox(){let{visualElement:e}=this.options;if(!e)return(0,l.dO)();let t=e.measureViewportBox(),i=this.scroll?.wasRoot||this.path.some(checkNodeWasScrollRoot);if(!i){let{scroll:e}=this.root;e&&((0,Q.am)(t.x,e.offset.x),(0,Q.am)(t.y,e.offset.y))}return t}removeElementScroll(e){let t=(0,l.dO)();if(copyBoxInto(t,e),this.scroll?.wasRoot)return t;for(let i=0;i<this.path.length;i++){let n=this.path[i],{scroll:r,options:s}=n;n!==this.root&&r&&s.layoutScroll&&(r.wasRoot&&copyBoxInto(t,e),(0,Q.am)(t.x,r.offset.x),(0,Q.am)(t.y,r.offset.y))}return t}applyTransform(e,t=!1,i){let n=i||(0,l.dO)();copyBoxInto(n,e);for(let e=0;e<this.path.length;e++){let i=this.path[e];!t&&i.options.layoutScroll&&i.scroll&&i!==i.root&&((0,Q.am)(n.x,-i.scroll.offset.x),(0,Q.am)(n.y,-i.scroll.offset.y)),(0,en.ud)(i.latestValues)&&(0,Q.D2)(n,i.latestValues,i.layout?.layoutBox)}return(0,en.ud)(this.latestValues)&&(0,Q.D2)(n,this.latestValues,this.layout?.layoutBox),n}removeTransform(e){let t=(0,l.dO)();copyBoxInto(t,e);for(let e=0;e<this.path.length;e++){let i;let n=this.path[e];(0,en.ud)(n.latestValues)&&(n.instance&&((0,en.Lj)(n.latestValues)&&n.updateSnapshot(),copyBoxInto(i=(0,l.dO)(),n.measurePageBox())),removeBoxTransforms(t,n.latestValues,n.snapshot?.layoutBox,i))}return(0,en.ud)(this.latestValues)&&removeBoxTransforms(t,this.latestValues),t}setTargetDelta(e){this.targetDelta=e,this.root.scheduleUpdateProjection(),this.isProjectionDirty=!0}setOptions(e){this.options={...this.options,...e,crossfade:void 0===e.crossfade||e.crossfade}}clearMeasurements(){this.scroll=void 0,this.layout=void 0,this.snapshot=void 0,this.prevTransformTemplateValue=void 0,this.targetDelta=void 0,this.target=void 0,this.isLayoutDirty=!1}forceRelativeParentToResolveTarget(){this.relativeParent&&this.relativeParent.resolvedRelativeTargetAt!==h.frameData.timestamp&&this.relativeParent.resolveTargetDelta(!0)}resolveTargetDelta(e=!1){let t=this.getLead();this.isProjectionDirty||(this.isProjectionDirty=t.isProjectionDirty),this.isTransformDirty||(this.isTransformDirty=t.
34isTransformDirty),this.isSharedProjectionDirty||(this.isSharedProjectionDirty=t.isSharedProjectionDirty);let i=!!this.resumingFrom||this!==t,n=!(e||i&&this.isSharedProjectionDirty||this.isProjectionDirty||this.parent?.isProjectionDirty||this.attemptToResolveRelativeTarget||this.root.updateBlockedByResize);if(n)return;let{layout:r,layoutId:s}=this.options;if(!this.layout||!(r||s))return;this.resolvedRelativeTargetAt=h.frameData.timestamp;let a=this.getClosestProjectingParent();if(a&&this.linkedParentVersion!==a.layoutVersion&&!a.options.layoutRoot&&this.removeRelativeTarget(),this.targetDelta||this.relativeTarget||(!1!==this.options.layoutAnchor&&a&&a.layout?this.createRelativeTarget(a,this.layout.layoutBox,a.layout.layoutBox):this.removeRelativeTarget()),this.relativeTarget||this.targetDelta){if(this.target||(this.target=(0,l.dO)(),this.targetWithTransforms=(0,l.dO)()),this.relativeTarget&&this.relativeTargetOrigin&&this.relativeParent&&this.relativeParent.target){var o,u,c,d;this.forceRelativeParentToResolveTarget(),o=this.target,u=this.relativeTarget,c=this.relativeParent.target,d=this.options.layoutAnchor||void 0,calcRelativeAxis(o.x,u.x,c.x,d?.x),calcRelativeAxis(o.y,u.y,c.y,d?.y)}else this.targetDelta?(this.resumingFrom?this.applyTransform(this.layout.layoutBox,!1,this.target):copyBoxInto(this.target,this.layout.layoutBox),(0,Q.o2)(this.target,this.targetDelta)):copyBoxInto(this.target,this.layout.layoutBox);this.attemptToResolveRelativeTarget&&(this.attemptToResolveRelativeTarget=!1,!1!==this.options.layoutAnchor&&a&&!!a.resumingFrom==!!this.resumingFrom&&!a.options.layoutScroll&&a.target&&1!==this.animationProgress?this.createRelativeTarget(a,this.target,a.target):this.relativeParent=this.relativeTarget=void 0),z.value&&er.calculatedTargetDeltas++}}getClosestProjectingParent(){return!this.parent||(0,en.Lj)(this.parent.latestValues)||(0,en.D_)(this.parent.latestValues)?void 0:this.parent.isProjecting()?this.parent:this.parent.getClosestProjectingParent()}isProjecting(){return!!((this.relativeTarget||this.targetDelta||this.options.layoutRoot)&&this.layout)}createRelativeTarget(e,t,i){this.relativeParent=e,this.linkedParentVersion=e.layoutVersion,this.forceRelativeParentToResolveTarget(),this.relativeTarget=(0,l.dO)(),this.relativeTargetOrigin=(0,l.dO)(),calcRelativePosition(this.relativeTargetOrigin,t,i,this.options.layoutAnchor||void 0),copyBoxInto(this.relativeTarget,this.relativeTargetOrigin)}removeRelativeTarget(){this.relativeParent=this.relativeTarget=void 0}calcProjection(){let e=this.getLead(),t=!!this.resumingFrom||this!==e,i=!0;if((this.isProjectionDirty||this.parent?.isProjectionDirty)&&(i=!1),t&&(this.isSharedProjectionDirty||this.isTransformDirty)&&(i=!1),this.resolvedRelativeTargetAt===h.frameData.timestamp&&(i=!1),i)return;let{layout:n,layoutId:r}=this.options;if(this.isTreeAnimating=!!(this.parent&&this.parent.isTreeAnimating||this.currentAnimation||this.pendingAnimation),this.isTreeAnimating||(this.targetDelta=this.relativeTarget=void 0),!this.layout||!(n||r))return;copyBoxInto(this.layoutCorrected,this.layout.layoutBox);let s=this.treeScale.x,a=this.treeScale.y;(0,Q.YY)(this.layoutCorrected,this.treeScale,this.path,t),e.layout&&!e.target&&(1!==this.treeScale.x||1!==this.treeScale.y)&&(e.target=e.layout.layoutBox,e.targetWithTransforms=(0,l.dO)());let{target:o}=e;if(!o){this.prevProjectionDelta&&(this.createProjectionDeltas(),this.scheduleRender());return}this.projectionDelta&&this.prevProjectionDelta?(copyAxisDeltaInto(this.prevProjectionDelta.x,this.projectionDelta.x),copyAxisDeltaInto(this.prevProjectionDelta.y,this.projectionDelta.y)):this.createProjectionDeltas(),calcBoxDelta(this.projectionDelta,this.layoutCorrected,o,this.latestValues),this.treeScale.x===s&&this.treeScale.y===a&&axisDeltaEquals(this.projectionDelta.x,this.prevProjectionDelta.x)&&axisDeltaEquals(this.projectionDelta.y,this.prevProjectionDelta.y)||(this.hasProjected=!0,this.scheduleRender(),this.notifyListeners("projectionUpdate",o)),z.value&&er.calculatedProjections++}hide(){this.isVisible=!1}show(){this.isVisible=!0}scheduleRender(e=!0){if(this.options.visualElement?.scheduleRender(),e){let e=this.getStack();e&&e.scheduleRender()}this.resumingFrom&&!this.resumingFrom.instance&&(this.resumingFrom=void 0)}createProjectionDeltas(){this.prevProjectionDelta=(0,l.wc)(),this.projectionDelta=(0,l.wc)(),this.projectionDeltaWithTransform=(0,l.wc)()}setAnimationOrigin(e,t=!1,i){let n;let r=this.snapshot,s=r?r.latestValues:{},a={...this.latestValues},o=(0,l.wc)();this.relativeParent&&this.relativeParent.options.layoutRoot||(this.relativeTarget=this.relativeTargetOrigin=void 0),this.attemptToResolveRelativeTarget=!t;
34let u=(0,l.dO)(),h=r?r.source:void 0,f=this.layout?this.layout.source:void 0,p=h!==f,m=this.getStack(),g=!m||m.members.length<=1,y=!!(p&&!g&&!0===this.options.crossfade&&!this.path.some(hasOpacityCrossfade));this.animationProgress=0;let v=i?.interpolateProjection(e);this.mixTargetDelta=t=>{let i=t/1e3,r=v?.(i);if(r?(o.x.translate=r.x,o.x.scale=(0,d.t)(e.x.scale,1,i),o.x.origin=e.x.origin,o.x.originPoint=e.x.originPoint,o.y.translate=r.y,o.y.scale=(0,d.t)(e.y.scale,1,i),o.y.origin=e.y.origin,o.y.originPoint=e.y.originPoint):(mixAxisDeltaLinear(o.x,e.x,i),mixAxisDeltaLinear(o.y,e.y,i)),this.setTargetDelta(o),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout){var h,f,m,x;calcRelativePosition(u,this.layout.layoutBox,this.relativeParent.layout.layoutBox,this.options.layoutAnchor||void 0),m=this.relativeTarget,x=this.relativeTargetOrigin,mixAxis(m.x,x.x,u.x,i),mixAxis(m.y,x.y,u.y,i),n&&(h=this.relativeTarget,f=n,axisEquals(h.x,f.x)&&axisEquals(h.y,f.y))&&(this.isProjectionDirty=!1),n||(n=(0,l.dO)()),copyBoxInto(n,this.relativeTarget)}p&&(this.animationValues=a,function(e,t,i,n,r,s){r?(e.opacity=(0,d.t)(0,i.opacity??1,Z(n)),e.opacityExit=(0,d.t)(t.opacity??1,0,J(n))):s&&(e.opacity=(0,d.t)(t.opacity??1,i.opacity??1,n));for(let r=0;r<Y;r++){let s=G.v[r],a=getRadius(t,s),o=getRadius(i,s);if(void 0===a&&void 0===o)continue;a||(a=0),o||(o=0);let l=0===a||0===o||isPx(a)===isPx(o);l?(e[s]=Math.max((0,d.t)(asNumber(a),asNumber(o),n),0),(c.aQ.test(o)||c.aQ.test(a))&&(e[s]+="%")):e[s]=o}(t.rotate||i.rotate)&&(e.rotate=(0,d.t)(t.rotate||0,i.rotate||0,n))}(a,s,this.latestValues,i,y,g)),r&&void 0!==r.rotate&&(this.animationValues||(this.animationValues=a),this.animationValues.pathRotation=r.rotate),this.root.scheduleUpdateProjection(),this.scheduleRender(),this.animationProgress=i},this.mixTargetDelta(this.options.layoutRoot?1e3:0)}startAnimation(e){this.notifyListeners("animationStart"),this.currentAnimation?.stop(),this.resumingFrom?.currentAnimation?.stop(),this.pendingAnimation&&((0,h.Pn)(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=h.Wi.update(()=>{_.hasAnimatedSinceResize=!0,this.motionValue||(this.motionValue=(0,I.BX)(0)),this.motionValue.jump(0,!1),this.currentAnimation=function(e,t,i){let n=(0,B.i)(e)?e:(0,I.BX)(e);return n.start((0,g.v)("",n,t,i)),n.animation}(this.motionValue,[0,1e3],{...e,velocity:0,isSync:!0,onUpdate:t=>{this.mixTargetDelta(t),e.onUpdate&&e.onUpdate(t)},onComplete:()=>{e.onComplete&&e.onComplete(),this.completeAnimation()}}),this.resumingFrom&&(this.resumingFrom.currentAnimation=this.currentAnimation),this.pendingAnimation=void 0})}completeAnimation(){this.resumingFrom&&(this.resumingFrom.currentAnimation=void 0,this.resumingFrom.preserveOpacity=void 0);let e=this.getStack();e&&e.exitAnimationComplete(),this.resumingFrom=this.currentAnimation=this.animationValues=void 0,this.notifyListeners("animationComplete")}finishAnimation(){this.currentAnimation&&(this.mixTargetDelta&&this.mixTargetDelta(1e3),this.currentAnimation.stop()),this.completeAnimation()}applyTransformsToTarget(){let e=this.getLead(),{targetWithTransforms:t,target:i,layout:n,latestValues:r}=e;if(t&&i&&n){if(this!==e&&this.layout&&n&&shouldAnimatePositionOnly(this.options.animationType,this.layout.layoutBox,n.layoutBox)){i=this.target||(0,l.dO)();let t=calcLength(this.layout.layoutBox.x);i.x.min=e.target.x.min,i.x.max=i.x.min+t;let n=calcLength(this.layout.layoutBox.y);i.y.min=e.target.y.min,i.y.max=i.y.min+n}copyBoxInto(t,i),(0,Q.D2)(t,r),calcBoxDelta(this.projectionDeltaWithTransform,this.layoutCorrected,t,r)}}registerSharedNode(e,t){this.sharedNodes.has(e)||this.sharedNodes.set(e,new NodeStack);let i=this.sharedNodes.get(e);i.add(t);let n=t.options.initialPromotionConfig;t.promote({transition:n?n.transition:void 0,preserveFollowOpacity:n&&n.shouldPreserveFollowOpacity?n.shouldPreserveFollowOpacity(t):void 0})}isLead(){let e=this.getStack();return!e||e.lead===this}getLead(){let{layoutId:e}=this.options;return e&&this.getStack()?.lead||this}getPrevLead(){let{layoutId:e}=this.options;
34return e?this.getStack()?.prevLead:void 0}getStack(){let{layoutId:e}=this.options;if(e)return this.root.sharedNodes.get(e)}promote({needsReset:e,transition:t,preserveFollowOpacity:i}={}){let n=this.getStack();n&&n.promote(this,i),e&&(this.projectionDelta=void 0,this.needsReset=!0),t&&this.setOptions({transition:t})}relegate(){let e=this.getStack();return!!e&&e.relegate(this)}resetSkewAndRotation(){let{visualElement:e}=this.options;if(!e)return;let t=!1,{latestValues:i}=e;if((i.z||i.rotate||i.rotateX||i.rotateY||i.rotateZ||i.skewX||i.skewY)&&(t=!0),!t)return;let n={};i.z&&resetDistortingTransform("z",e,n,this.animationValues);for(let t=0;t<es.length;t++)resetDistortingTransform(`rotate${es[t]}`,e,n,this.animationValues),resetDistortingTransform(`skew${es[t]}`,e,n,this.animationValues);for(let t in e.render(),n)e.setStaticValue(t,n[t]),this.animationValues&&(this.animationValues[t]=n[t]);e.scheduleRender()}applyProjectionStyles(e,t){if(!this.instance||this.isSVG)return;if(!this.isVisible){e.visibility="hidden";return}let i=this.getTransformTemplate();if(this.needsReset){this.needsReset=!1,e.visibility="",e.opacity="",e.pointerEvents=(0,H.b)(t?.pointerEvents)||"",e.transform=i?i(this.latestValues,""):"none";return}let n=this.getLead();if(!this.projectionDelta||!this.layout||!n.target){this.options.layoutId&&(e.opacity=void 0!==this.latestValues.opacity?this.latestValues.opacity:1,e.pointerEvents=(0,H.b)(t?.pointerEvents)||""),this.hasProjected&&!(0,en.ud)(this.latestValues)&&(e.transform=i?i({},""):"none",this.hasProjected=!1);return}e.visibility="";let r=n.animationValues||n.latestValues;this.applyTransformsToTarget();let s=function(e,t,i){let n="",r=e.x.translate/t.x,s=e.y.translate/t.y,a=i?.z||0;if((r||s||a)&&(n=`translate3d(${r}px, ${s}px, ${a}px) `),(1!==t.x||1!==t.y)&&(n+=`scale(${1/t.x}, ${1/t.y}) `),i){let{transformPerspective:e,rotate:t,pathRotation:r,rotateX:s,rotateY:a,skewX:o,skewY:l}=i;e&&(n=`perspective(${e}px) ${n}`),t&&(n+=`rotate(${t}deg) `),r&&(n+=`rotate(${r}deg) `),s&&(n+=`rotateX(${s}deg) `),a&&(n+=`rotateY(${a}deg) `),o&&(n+=`skewX(${o}deg) `),l&&(n+=`skewY(${l}deg) `)}let o=e.x.scale*t.x,l=e.y.scale*t.y;return(1!==o||1!==l)&&(n+=`scale(${o}, ${l})`),n||"none"}(this.projectionDeltaWithTransform,this.treeScale,r);i&&(s=i(r,s)),e.transform=s;let{x:a,y:o}=this.projectionDelta;for(let t in e.transformOrigin=`${100*a.origin}% ${100*o.origin}% 0`,n.animationValues?e.opacity=n===this?r.opacity??this.latestValues.opacity??1:this.preserveOpacity?this.latestValues.opacity:r.opacityExit:e.opacity=n===this?void 0!==r.opacity?r.opacity:"":void 0!==r.opacityExit?r.opacityExit:0,q.P){if(void 0===r[t])continue;let{correct:i,applyTo:a,isCSSVariable:o}=q.P[t],l="none"===s?r[t]:i(r[t],n);if(a){let t=a.length;for(let i=0;i<t;i++)e[a[i]]=l}else o?this.options.visualElement.renderState.vars[t]=l:e[t]=l}this.options.layoutId&&(e.pointerEvents=n===this?(0,H.b)(t?.pointerEvents)||"":"none")}clearSnapshot(){this.resumeFrom=this.snapshot=void 0}resetTree(){this.root.nodes.forEach(e=>e.currentAnimation?.stop()),this.root.nodes.forEach(clearMeasurements),this.root.sharedNodes.clear()}}}function updateLayout(e){e.updateLayout()}function notifyLayoutUpdate(e){let t=e.resumeFrom?.snapshot||e.snapshot;if(e.isLead()&&e.layout&&t&&e.hasListeners("didUpdate")){let{layoutBox:i,measuredBox:n}=e.layout,{animationType:r}=e.options,s=t.source!==e.layout.source;if("size"===r)eachAxis(e=>{let n=s?t.measuredBox[e]:t.layoutBox[e],r=calcLength(n);n.min=i[e].min,n.max=n.min+r});else if("x"===r||"y"===r){let e="x"===r?"y":"x";copyAxisInto(s?t.measuredBox[e]:t.layoutBox[e],i[e])}else shouldAnimatePositionOnly(r,t.layoutBox,i)&&eachAxis(n=>{let r=s?t.measuredBox[n]:t.layoutBox[n],a=calcLength(i[n]);r.max=r.min+a,e.relativeTarget&&!e.currentAnimation&&(e.isProjectionDirty=!0,e.relativeTarget[n].max=e.relativeTarget[n].min+a)});let a=(0,l.wc)();calcBoxDelta(a,i,t.layoutBox);let o=(0,l.wc)();s?calcBoxDelta(o,e.applyTransform(n,!0),t.measuredBox):calcBoxDelta(o,i,t.layoutBox);let u=!isDeltaZero(a),c=!1;if(!e.resumeFrom){let n=e.getClosestProjectingParent();if(n&&!n.resumeFrom){let{snapshot:r,layout:s}=n;if(r&&s){let a=e.options.layoutAnchor||void 0,o=(0,l.dO)();calcRelativePosition(o,t.layoutBox,r.layoutBox,a);let u=(0,l.dO)();calcRelativePosition(u,i,s.layoutBox,a),boxEqualsRounded(o,u)||(c=!0),n.options.layoutRoot&&(e.relativeTarget=u,e.relativeTargetOrigin=o,e.relativeParent=n)}}}e.notifyListeners("didUpdate",{layout:i,snapshot:t,delta:o,layoutDelta:a,hasLayoutChanged:u,hasRelativeLayoutChanged:c})}else if(e.isLead()){let{onExitComplete:t}=e.options;t&&t()}e.options.transition=void 0}function propagateDirtyNodes(e){z.value&&er.nodes++,e.parent&&(e.isProjecting()||(e.isProjectionDirty=e.parent.isProjectionDirty),e.isSharedProjectionDirty||(e.isSharedProjectionDirty=!!(e.isProjectionDirty||e.parent.isProjectionDirty||e.parent.isSharedProjectionDirty)),e.isTransformDirty||(e.isTransformDirty=e.parent.isTransformDirty))}function cleanDirtyNodes(e){e.isProjectionDirty=e.isSharedProjectionDirty=e.isTransformDirty=!1}function clearSnapshot(e){e.clearSnapshot()}function clearMeasurements(e){e.clearMeasurements()}function forceLayoutMeasure(e){e.isLayoutDirty=!0,e.updateLayout()}function clearIsLayoutDirty(e){e.isLayoutDirty=!1}
34function ensureDraggedNodesSnapshotted(e){e.isAnimationBlocked&&e.layout&&!e.isLayoutDirty&&(e.snapshot=e.layout,e.isLayoutDirty=!0)}function resetTransformStyle(e){let{visualElement:t}=e.options;t&&t.getProps().onBeforeLayoutMeasure&&t.notify("BeforeLayoutMeasure"),e.resetTransform()}function finishAnimation(e){e.finishAnimation(),e.targetDelta=e.relativeTarget=e.target=void 0,e.isProjectionDirty=!0}function resolveTargetDelta(e){e.resolveTargetDelta()}function calcProjection(e){e.calcProjection()}function resetSkewAndRotation(e){e.resetSkewAndRotation()}function removeLeadSnapshots(e){e.removeLeadSnapshot()}function mixAxisDeltaLinear(e,t,i){e.translate=(0,d.t)(t.translate,0,i),e.scale=(0,d.t)(t.scale,1,i),e.origin=t.origin,e.originPoint=t.originPoint}function mixAxis(e,t,i,n){e.min=(0,d.t)(t.min,i.min,n),e.max=(0,d.t)(t.max,i.max,n)}function hasOpacityCrossfade(e){return e.animationValues&&void 0!==e.animationValues.opacityExit}let eo={duration:.45,ease:[.4,0,.1,1]},userAgentContains=e=>"undefined"!=typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().includes(e),el=userAgentContains("applewebkit/")&&!userAgentContains("chrome/")?Math.round:o.Z;function roundAxis(e){e.min=el(e.min),e.max=el(e.max)}function shouldAnimatePositionOnly(e,t,i){return"position"===e||"preserve-aspect"===e&&!(.2>=Math.abs(aspectRatio(t)-aspectRatio(i)))}function checkNodeWasScrollRoot(e){return e!==e.root&&e.scroll?.wasRoot}let eu=createProjectionNode({attachResizeListener:(e,t)=>(0,v.E)(e,"resize",t),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body?.scrollLeft||0,y:document.documentElement.scrollTop||document.body?.scrollTop||0}),checkIsScrollRoot:()=>!0}),ec={current:void 0},ed=createProjectionNode({measureScroll:e=>({x:e.scrollLeft,y:e.scrollTop}),defaultParent:()=>{if(!ec.current){let e=new eu({});e.mount(window),e.setOptions({layoutScroll:!0}),ec.current=e}return ec.current},resetTransform:(e,t)=>{e.style.transform=void 0!==t?t:"none"},checkIsScrollRoot:e=>"fixed"===window.getComputedStyle(e).position});var eh=i(43778);let ef={...s.s,...eh.E,pan:{Feature:PanGesture},drag:{Feature:DragGesture,ProjectionNode:ed,MeasureLayout:MeasureLayout},layout:{ProjectionNode:ed,MeasureLayout:MeasureLayout}},ep=(0,r.D)(ef,n.b)},39043:function(e,t,i){"use strict";i.d(t,{b:function(){return createDomVisualElement}});var n=i(59354),r=i(47265),s=i(18042),a=i(32558),o=i(51363),l=i(52732),u=i(25386),c=i(32489),d=i(21219);let h=/^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u;var f=i(58417),p=i(89543),m=i(58094),g=i(60522);let y=new Set(["auto","none","0"]);var v=i(41293);let DOMKeyframesResolver=class DOMKeyframesResolver extends f.e{constructor(e,t,i,n,r){super(e,t,i,n,r,!0)}readKeyframes(){let{unresolvedKeyframes:e,element:t,name:i}=this;if(!t||!t.current)return;super.readKeyframes();for(let i=0;i<e.length;i++){let n=e[i];if("string"==typeof n&&(n=n.trim(),(0,d.tm)(n))){let r=function getVariableValue(e,t,i=1){(0,u.k)(i<=4,`Max CSS variable fallback depth detected in property "${e}". This may indicate a circular fallback dependency.`,"max-css-var-depth");let[n,r]=function(e){let t=h.exec(e);if(!t)return[,];let[,i,n,r]=t;return[`--${i??n}`,r]}(e);if(!n)return;let s=window.getComputedStyle(t).getPropertyValue(n);if(s){let e=s.trim();return(0,c.P)(e)?parseFloat(e):e}return(0,d.tm)(r)?getVariableValue(r,t,i+1):r}(n,t.current);void 0!==r&&(e[i]=r),i===e.length-1&&(this.finalKeyframe=n)}}if(this.resolveNoneKeyframes(),!o.z.has(i)||2!==e.length)return;let[n,r]=e,s=(0,l.C)(n),a=(0,l.C)(r),f=(0,d.V3)(n),p=(0,d.V3)(r);if(f!==p&&v.lw[i]){this.needsMeasurement=!0;return}if(s!==a){if((0,v.mP)(s)&&(0,v.mP)(a))for(let t=0;t<e.length;t++){let i=e[t];"string"==typeof i&&(e[t]=parseFloat(i))}else v.lw[i]&&(this.needsMeasurement=!0)}}resolveNoneKeyframes(){let{unresolvedKeyframes:e,name:t}=this,i=[];for(let t=0;t<e.length;t++){var n;(null===e[t]||("number"==typeof(n=e[t])?0===n:null===n||"none"===n||"0"===n||(0,p.W)(n)))&&i.push(t)}i.length&&function(e,t,i){let n,r=0;for(;r<e.length&&!n;){let t=e[r];"string"==typeof t&&!y.has(t)&&(0,m.V)(t).values.length&&(n=e[r]),r++}if(n&&i)for(let r of t)e[r]=(0,g.T)(i,n)}(e,i,t)}measureInitialState(){let{element:e,unresolvedKeyframes:t,name:i}=this;if(!e||!e.current)return;"height"===i&&(this.suspendedScrollY=window.pageYOffset),this.measuredOrigin=v.lw[i](e.measureViewportBox(),window.getComputedStyle(e.current)),t[0]=this.measuredOrigin;let n=t[t.length-1];void 0!==n&&e.getValue(i,n).jump(n,!1)}measureEndState(){let{element:e,name:t,unresolvedKeyframes:i}=this;if(!e||!e.current)return;let n=e.getValue(t);n&&n.jump(this.measuredOrigin,!1);let r=i.length-1,s=i[r];i[r]=v.lw[t](e.measureViewportBox(),window.getComputedStyle(e.current)),null!==s&&void 0===this.finalKeyframe&&(this.finalKeyframe=s),this.removedTransforms?.length&&this.removedTransforms.forEac
34h(([t,i])=>{e.getValue(t).set(i)}),this.resolveNoneKeyframes()}};var x=i(99770);let DOMVisualElement=class DOMVisualElement extends x.l9{constructor(){super(...arguments),this.KeyframeResolver=DOMKeyframesResolver}sortInstanceNodePosition(e,t){return 2&e.compareDocumentPosition(t)?1:-1}getBaseTargetFromProps(e,t){let i=e.style;return i?i[t]:void 0}removeValueFromRenderState(e,{vars:t,style:i}){delete t[e],delete i[e]}handleChildMotionValue(){this.childSubscription&&(this.childSubscription(),delete this.childSubscription);let{children:e}=this.props;(0,a.i)(e)&&(this.childSubscription=e.on("change",e=>{this.current&&(this.current.textContent=`${e}`)}))}};var b=i(84458),T=i(55450);let S=new Set(["baseFrequency","diffuseConstant","kernelMatrix","kernelUnitLength","keySplines","keyTimes","limitingConeAngle","markerHeight","markerWidth","numOctaves","targetX","targetY","surfaceScale","specularConstant","specularExponent","stdDeviation","tableValues","viewBox","gradientTransform","pathLength","startOffset","textLength","lengthAdjust"]);var w=i(31978);function renderHTML(e,{style:t,vars:i},n,r){let s;let a=e.style;for(s in t)a[s]=t[s];for(s in r?.applyProjectionStyles(a,n),i)a.setProperty(s,i[s])}var E=i(31839);let SVGVisualElement=class SVGVisualElement extends DOMVisualElement{constructor(){super(...arguments),this.type="svg",this.isSVGTag=!1,this.measureInstanceViewportBox=s.dO}getBaseTargetFromProps(e,t){return e[t]}readValueFromInstance(e,t){if(n.G.has(t)){let e=(0,r.A)(t);return e&&e.default||0}return t=S.has(t)?t:(0,b.D)(t),e.getAttribute(t)}scrapeMotionValuesFromProps(e,t,i){return(0,E.U)(e,t,i)}build(e,t,i){(0,T.i)(e,t,this.isSVGTag,i.transformTemplate,i.style)}renderInstance(e,t,i,n){!function(e,t,i,n){for(let i in renderHTML(e,t,void 0,n),t.attrs)e.setAttribute(S.has(i)?i:(0,b.D)(i),t.attrs[i])}(e,t,0,n)}mount(e){this.isSVGTag=(0,w.a)(e.tagName),super.mount(e)}};var A=i(66363),P=i(65034),V=i(22196),D=i(66441);let HTMLVisualElement=class HTMLVisualElement extends DOMVisualElement{constructor(){super(...arguments),this.type="html",this.renderInstance=renderHTML}mount(e){(0,u.k)(!!e.style,"motion.create() components must forward their ref to a HTML or SVG element","custom-component-ref"),super.mount(e)}readValueFromInstance(e,t){if(n.G.has(t))return this.projection?.isProjecting?(0,A.E$)(t):(0,A.RT)(e,t);{let i=window.getComputedStyle(e),n=((0,d.f9)(t)?i.getPropertyValue(t):i[t])||0;return"string"==typeof n?n.trim():n}}measureInstanceViewportBox(e,{transformPagePoint:t}){return(0,P.J)(e,t)}build(e,t,i){(0,V.r)(e,t,i.transformTemplate)}scrapeMotionValuesFromProps(e,t,i){return(0,D.U)(e,t,i)}};var C=i(67294),k=i(62627);let createDomVisualElement=(e,t)=>{let i=t.isSVG??(0,k.q)(e);return i?new SVGVisualElement(t):new HTMLVisualElement(t,{allowProjection:e!==C.Fragment})}},62627:function(e,t,i){"use strict";i.d(t,{q:function(){return isSVGComponent}});let n=["animate","circle","defs","desc","ellipse","g","image","line","filter","marker","mask","metadata","path","pattern","polygon","polyline","rect","stop","switch","symbol","svg","text","tspan","use","view"];function isSVGComponent(e){if("string"!=typeof e||e.includes("-"));else if(n.indexOf(e)>-1||/[A-Z]/u.test(e))return!0;return!1}},51804:function(e,t,i){"use strict";function isRefObject(e){return e&&"object"==typeof e&&Object.prototype.hasOwnProperty.call(e,"current")}i.d(t,{I:function(){return isRefObject}})},96681:function(e,t,i){"use strict";i.d(t,{h:function(){return useConstant}});var n=i(67294);function useConstant(e){let t=(0,n.useRef)(null);return null===t.current&&(t.current=e()),t.current}},75062:function(e,t,i){"use strict";i.d(t,{L:function(){return s}});var n=i(67294);let r="undefined"!=typeof window,s=r?n.useLayoutEffect:n.useEffect},16469:function(e,t,i){"use strict";i.d(t,{_:function(){return NativeAnimation}});var n=i(25386),r=i(14400),s=i(27726),a=i(66054),o=i(84548),l=i(96098),u=i(39064),c=i(88747),d=i(63898);let h=(0,d.p)(()=>{try{document.createElement("div").animate({opacity:0}
34,{easing:"linear(0, 1)"})}catch(e){return!1}return!0},"linearEasing");var f=i(90363);let cubicBezierAsString=([e,t,i,n])=>`cubic-bezier(${e}, ${t}, ${i}, ${n})`,p={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:cubicBezierAsString([0,.65,.55,1]),circOut:cubicBezierAsString([.55,0,1,.45]),backIn:cubicBezierAsString([.31,.01,.66,-.59]),backOut:cubicBezierAsString([.33,1.53,.69,.99])};var m=i(97274);let NativeAnimation=class NativeAnimation extends u.T{constructor(e){if(super(),this.finishedTime=null,this.isStopped=!1,this.manualStartTime=null,!e)return;let{element:t,name:i,keyframes:r,pseudoElement:s,allowFlatten:o=!1,finalKeyframe:u,onComplete:d}=e;this.isPseudoElement=!!s,this.allowFlatten=o,this.options=e,(0,n.k)("string"!=typeof e.type,'Mini animate() doesn\'t support "type" as a string.',"mini-spring");let g=function({type:e,...t}){return(0,m.x)(e)&&h()?e.applyToOptions(t):(t.duration??(t.duration=300),t.ease??(t.ease="easeOut"),t)}(e);this.animation=function(e,t,i,{delay:n=0,duration:r=300,repeat:s=0,repeatType:a="loop",ease:o="easeOut",times:l}={},u){let d={[t]:i};l&&(d.offset=l);let m=function mapEasingToNativeEasing(e,t){if(e)return"function"==typeof e?h()?(0,f.w)(e,t):"ease-out":(0,c.q)(e)?cubicBezierAsString(e):Array.isArray(e)?e.map(e=>mapEasingToNativeEasing(e,t)||p.easeOut):p[e]}(o,r);Array.isArray(m)&&(d.easing=m);let g={delay:n,duration:r,easing:Array.isArray(m)?"linear":m,fill:"both",iterations:s+1,direction:"reverse"===a?"alternate":"normal"};return u&&(g.pseudoElement=u),e.animate(d,g)}(t,i,r,g,s),!1===g.autoplay&&this.animation.pause(),this.animation.onfinish=()=>{if(this.finishedTime=this.time,!s){let e=(0,l.$)(r,this.options,u,this.speed);this.updateMotionValue&&this.updateMotionValue(e),(0,a.A)(t,i,e),this.animation.cancel()}d?.(),this.notifyFinished()}}play(){this.isStopped||(this.manualStartTime=null,this.animation.play(),"finished"===this.state&&this.updateFinished())}pause(){this.animation.pause()}complete(){this.animation.finish?.()}cancel(){try{this.animation.cancel()}catch(e){}}stop(){if(this.isStopped)return;this.isStopped=!0;let{state:e}=this;"idle"!==e&&"finished"!==e&&(this.updateMotionValue?this.updateMotionValue():this.commitStyles(),this.isPseudoElement||this.cancel())}commitStyles(){let e=this.options?.element;!this.isPseudoElement&&e?.isConnected&&this.animation.commitStyles?.()}get duration(){let e=this.animation.effect?.getComputedTiming?.().duration||0;return(0,r.X)(Number(e))}get iterationDuration(){let{delay:e=0}=this.options||{};return this.duration+(0,r.X)(e)}get time(){return(0,r.X)(Number(this.animation.currentTime)||0)}set time(e){let t=null!==this.finishedTime;this.manualStartTime=null,this.finishedTime=null,this.animation.currentTime=(0,r.w)(e),t&&this.animation.pause()}get speed(){return this.animation.playbackRate}set speed(e){e<0&&(this.finishedTime=null),this.animation.playbackRate=e}get state(){return null!==this.finishedTime?"finished":this.animation.playState}get startTime(){return this.manualStartTime??Number(this.animation.startTime)}set startTime(e){this.manualStartTime=this.animation.startTime=e}attachTimeline({timeline:e,rangeStart:t,rangeEnd:i,observe:n}){return(this.allowFlatten&&this.animation.effect?.updateTiming({easing:"linear"}),this.animation.onfinish=null,e&&(0,o.t)())?(this.animation.timeline=e,t&&(this.animation.rangeStart=t),i&&(this.animation.rangeEnd=i),s.Z):n(this)}}},97274:function(e,t,i){"use strict";function isGenerator(e){return"function"==typeof e&&"applyToOptions"in e}i.d(t,{x:function(){return isGenerator}})},35867:function(e,t,i){"use strict";i.d(t,{v:function(){return animateMotionValue}});var n=i(14400),r=i(42218),s=i(27726),a=i(67245),o=i(377),l=i(488),u=i(88712),c=i(82866);let frameloopDriver=e=>{let passTimestamp=({timestamp:t})=>e(t);return{start:(e=!0)=>c.Wi.update(passTimestamp,e),stop:()=>(0,c.Pn)(passTimestamp),now:()=>c.frameData.isProcessing?c.frameData.timestamp:a.X.now()}};var d=i(25386),h=i(90363);function calcGeneratorDuration(e){let t=0,i=e.next(t);for(;!i.done&&t<2e4;)t+=50,i=e.next(t);return t>=2e4?1/0:t}let f={stiffness:100,damping:10,mass:1,velocity:0,duration:800,bounce:.3,visualDuration:.3,restSpeed:{granular:.01,default:2},restDelta:{granular:.005,default:.5},minDuration:.01,maxDuration:10,minDamping:.05,maxDamping:1};function calcAngularFreq(e,t){return e*Math.sqrt(1-t*t)}let p=["duration","bounce"],m=["stiffness","damping","mass"];function isSpringType(e,t){return t.some(t=>void 0!==e[t])}function spring(e=f.visualDuration,t=f.bounce){let i,r,s,a,o,u;let c="object"!=typeof e?{visualDuration:e,keyframes:[0,1],bounce:t}:e,{restSpeed:g,restDelta:y}=c,v=c.keyframes[0],x=c.keyframes[c.keyframes.length-1],b={done:!1,value:v},{stiffness:T,damping:S,mass:w,duration:E,velocity:A,isResolvedFromDuration:P}=function(e){let t={velocity:f.velocity,stiffness:f.stiffness,damping:f.damping,mass:f.mass,isResolvedFromDuration:!1,...e};if(!isSpringType(e,m)&&isSpringType(e,p)){if(t.velocity=0,e.visualDuration){let i=e.visualDuration,n=2*Math.PI/(1.2*i),r=n*n,s=2*(0,l.u)(.05,1,1-(e.bounce||0))*Math.sqrt(r);t={...t,mass:f.mass,stiffness:r,damping:s}}else{let i=function({duration:e=f.duration,bounce:t=f.bounce,velocity:i=f.velocity,mass:r=f.mass}){let s,a;(0,d.K)(e<=(0,n.w)(f.maxDuration),"Spring duration must be 10 seconds or less","spring-duration-limit");let o=1-t;o=(0,l.u)(f.minDamping,f.maxDamping,o),e=(0,l.u)(f.minDuration,f.maxDuration,(0,n.X)(e)),o<1?(s=t=>{let n=t*o,r=n*e,s=calcAngularFreq(t,o);return .001-(n-i)/s*Math.exp(-r)},a=t=>{let n=t*o,r=n*e,a=Math.pow(o,2)*Math.pow(t,2)*e,l=calcAngularFreq(Math.pow(t,2),o),u=-s(t)+.001>0?-1:1;return u*((r*i+i-a)*Math.exp(-r))/l}):(s=t=>{let n=Math.exp(-t*e),r=(t-i)*e+1;return -.001+n*r},a=t=>{let n=Math.exp(-t*e),r=(i-t)*(e*e);return n*r});let u=5/e,c=function(e,t,i){let n=i;for(let i=1;i<12;i++)n-=e(n)/t(n);return n}(s,a,u);if(e=(0,n.w)(e),isNaN(c))return{stiffness:f.stiffness,damping:f.damping,duration:e};{let t=Math.pow(c,2)*r;return{stiffness:t,damping:2*o*Math.sqrt(r*t),duration:e}}}({...e,velocity:0});(t={...t,...i,mass:f.mass}).isResolvedFromDuration=!0}}return t}({...c,velocity:-(0,n.X)(c.velocity||0)}),V=A||0,D=S/(2*Math.sqrt(T*w)),C=x-v,k=(0,n.X)(Math.sqrt(T/w)),_=5>Math.abs(C);if(g||(g=_?f.restSpeed.granular:f.restSpeed.default),y||(y=_?f.restDelta.granular:f.restDelta.default),D<1)s=calcAngularFreq(k,D),a=(V+D*k*C)/s,i=e=>{let t=Math.exp(-D*k*e);return x-t*(a*Math.sin(s*e)+C*Math.cos(s*e))},o=D*k*a+C*s,u=D*k*C-a*s,r=e=>{let t=Math.exp(-D*k*e);return t*(o*Math.sin(s*e)+u*Math.cos(s*e))};else if(1===D){i=e=>x-Math.exp(-k*e)*(C+(V+k*C)*e);let e=V+k*C;r=t=>Math.exp(-k*t)*(k*e*t-V)}else{let e=k*Math.sqrt(D*D-1);i=t=>{let i=Math.exp(-D*k*t),n=Math.min(e*t,300);return x-i*((V+D*k*C)*Math.sinh(n)+e*C*Math.cosh(n))/e};let t=(V+D*k*C)/e,n=D*k*t-C*e,s=D*k*C-t*e;r=t=>{let i=Math.exp(-D*k*t),r=Math.min(e*t,300);return i*(n*Math.sinh(r)+s*Math.cosh(r))}}let O={calculatedDuration:P&&E||null,velocity:e=>(0,n.w)(r(e)),next:e=>{if(!P&&D<1){let t=Math.exp(-D*k*e),i=Math.sin(s*e),r=Math.cos(s*e),l=x-t*(a*i+C*r),c=(0,n.w)(t*(o*i+u*r));return b.done=Math.abs(c)<=g&&Math.abs(x-l)<=y,b.value=b.done?x:l,b}let t=i(e);if(P)b.done=e>=E;else{let i=(0,n.w)(r(e));b.done=Math.abs(i)<=g&&Math.abs(x-t)<=y}return b.value=b.done?x:t,b},toString:()=>{let e=Math.min(calcGeneratorDuration(O),2e4),t=(0,h.w)(t=>O.next(e*t).value,e,30);return e+"ms "+t},toTransition:()=>{}};return O}spring.applyToOptions=e=>{let t=function(e,t=100,i){let r=i({...e,keyframes:[0,t]}),s=Math.min(calcGeneratorDuration(r),2e4);return{type:"keyframes",ease:e=>r.next(s*e).value/t,duration:(0,n.X)(s)}}(e,100,spring);return e.ease=t.ease,e.duration=(0,n.w)(t.duration),e.type="keyframes",e};var g=i(37142);function getGeneratorVelocity(e,t,i){let n=Math.max(t-5,0);return(0,g.R)(i-e(n),t-n)}
34function inertia({keyframes:e,velocity:t=0,power:i=.8,timeConstant:n=325,bounceDamping:r=10,bounceStiffness:s=500,modifyTarget:a,min:o,max:l,restDelta:u=.5,restSpeed:c}){let d,h;let f=e[0],p={done:!1,value:f},isOutOfBounds=e=>void 0!==o&&e<o||void 0!==l&&e>l,nearestBoundary=e=>void 0===o?l:void 0===l?o:Math.abs(o-e)<Math.abs(l-e)?o:l,m=i*t,g=f+m,y=void 0===a?g:a(g);y!==g&&(m=y-f);let calcDelta=e=>-m*Math.exp(-e/n),calcLatest=e=>y+calcDelta(e),applyFriction=e=>{let t=calcDelta(e),i=calcLatest(e);p.done=Math.abs(t)<=u,p.value=p.done?y:i},checkCatchBoundary=e=>{isOutOfBounds(p.value)&&(d=e,h=spring({keyframes:[p.value,nearestBoundary(p.value)],velocity:getGeneratorVelocity(calcLatest,e,p.value),damping:r,stiffness:s,restDelta:u,restSpeed:c}))};return checkCatchBoundary(0),{calculatedDuration:null,next:e=>{let t=!1;return(h||void 0!==d||(t=!0,applyFriction(e),checkCatchBoundary(e)),void 0!==d&&e>=d)?h.next(e-d):(t||applyFriction(e),p)}}}let calcBezier=(e,t,i)=>(((1-3*i+3*t)*e+(3*i-6*t))*e+3*t)*e;function cubicBezier(e,t,i,n){if(e===t&&i===n)return s.Z;let getTForX=t=>(function(e,t,i,n,r){let s,a;let o=0;do(s=calcBezier(a=t+(i-t)/2,n,r)-e)>0?i=a:t=a;while(Math.abs(s)>1e-7&&++o<12);return a})(t,0,1,e,i);return e=>0===e||1===e?e:calcBezier(getTForX(e),t,n)}let y=cubicBezier(.42,0,1,1),v=cubicBezier(0,0,.58,1),x=cubicBezier(.42,0,.58,1),isEasingArray=e=>Array.isArray(e)&&"number"!=typeof e[0];var b=i(89357),T=i(68298);let S=cubicBezier(.33,1.53,.69,.99),w=(0,T.M)(S),E=(0,b.o)(w),anticipate=e=>e>=1?1:(e*=2)<1?.5*w(e):.5*(2-Math.pow(2,-10*(e-1)));var A=i(53158),P=i(88747);let V={linear:s.Z,easeIn:y,easeInOut:x,easeOut:v,circIn:A.Z7,circInOut:A.X7,circOut:A.Bn,backIn:w,backInOut:E,backOut:S,anticipate:anticipate},isValidEasing=e=>"string"==typeof e,easingDefinitionToFunction=e=>{if((0,P.q)(e)){(0,d.k)(4===e.length,"Cubic bezier arrays must contain four numerical values.","cubic-bezier-length");let[t,i,n,r]=e;return cubicBezier(t,i,n,r)}return isValidEasing(e)?((0,d.k)(void 0!==V[e],`Invalid easing type '${e}'`,"invalid-easing-type"),V[e]):e};var D=i(98098),C=i(7790);function keyframes({duration:e=300,keyframes:t,times:i,ease:n="easeInOut"}){let r=isEasingArray(n)?n.map(easingDefinitionToFunction):easingDefinitionToFunction(n),s={done:!1,value:t[0]},a=(i&&i.length===t.length?i:(0,C.Y)(t)).map(t=>t*e),o=(0,D.s)(a,t,{ease:Array.isArray(r)?r:t.map(()=>r||x).splice(0,t.length-1)});return{calculatedDuration:e,next:t=>(s.value=o(t),s.done=t>=e,s)}}var k=i(96098);let _={decay:inertia,inertia:inertia,tween:keyframes,keyframes:keyframes,spring:spring};function replaceTransitionType(e){"string"==typeof e.type&&(e.type=_[e.type])}var O=i(39064);let percentToProgress=e=>e/100;let JSAnimation=class JSAnimation extends O.T{constructor(e){super(),this.state="idle",this.startTime=null,this.isStopped=!1,this.currentTime=0,this.holdTime=null,this.playbackSpeed=1,this.delayState={done:!1,value:void 0},this.stop=()=>{let{motionValue:e}=this.options;e&&e.updatedAt!==a.X.now()&&this.tick(a.X.now()),this.isStopped=!0,"idle"!==this.state&&(this.teardown(),this.options.onStop?.())},this.options=e,this.initAnimation(),this.play(),!1===e.autoplay&&this.pause()}initAnimation(){let{options:e}=this;replaceTransitionType(e);let{type:t=keyframes,repeat:i=0,repeatDelay:n=0,repeatType:r,velocity:s=0}=e,{keyframes:a}=e,l=t||keyframes;l!==keyframes&&"number"!=typeof a[0]&&(this.mixKeyframes=(0,o.z)(percentToProgress,(0,u.C)(a[0],a[1])),a=[0,100]);let c=l({...e,keyframes:a});"mirror"===r&&(this.mirroredGenerator=l({...e,keyframes:[...a].reverse(),velocity:-s})),null===c.calculatedDuration&&(c.calculatedDuration=calcGeneratorDuration(c));let{calculatedDuration:d}=c;this.calculatedDuration=d,this.resolvedDuration=d+n,this.totalDuration=this.resolvedDuration*(i+1)-n,this.generator=c}updateTime(e){let t=Math.round(e-this.startTime)*this.playbackSpeed;null!==this.holdTime?this.currentTime=this.holdTime:this.currentTime=t}tick(e,t=!1){let i;let{generator:n,totalDuration:r,mixKeyframes:s,mirroredGenerator:a,resolvedDuration:o,calculatedDuration:u}=this;if(null===this.startTime)return n.next(0);let{delay:c=0,keyframes:d,repeat:h,repeatType:f,repeatDelay:p,type:m,onUpdate:g,finalKeyframe:y}=this.options;this.speed>0?this.startTime=Math.min(this.startTime,e):this.speed<0&&(this.startTime=Math.min(e-r/this.speed,this.startTime)),t?this.currentTime=e:this.updateTime(e);let v=this.currentTime-c*(this.playbackSpeed>=0?1:-1),x=this.playbackSpeed>=0?v<0:v>r;this.currentTime=Math.max(v,0),"finished"===this.state&&null===this.holdTime&&(this.currentTime=r);let b=this.currentTime,T=n;if(h){let e=Math.min(this.currentTime,r)/o,t=Math.floor(e),i=e%1;!i&&e>=1&&(i=1),1===i&&t--,t=Math.min(t,h+1);let n=!!(t%2);n&&("reverse"===f?(i=1-i,p&&(i-=p/o)):"mirror"===f&&(T=a)),b=(0,l.u)(0,1,i)*o}x?(this.delayState.value=d[0],i=this.delayState):i=T.next(b),s&&!x&&(i.value=s(i.value));let{done:S}=i;x||null===u||(S=this.playbackSpeed>=0?this.currentTime>=r:this.currentTime<=0);let w=null===this.holdTime&&("finished"===this.state||"running"===this.state&&S);return w&&m!==inertia&&(i.value=(0,k.$)(d,this.options,y,this.speed)),g&&g(i.value),w&&this.finish(),i}then(e,t){return this.finished.then(e,t)}get duration(){return(0,n.X)(this.calculatedDuration)}get iterationDuration(){let{delay:e=0}=this.options||{};return this.duration+(0,n.X)(e)}get time(){return(0,n.X)(this.currentTime)}set time(e){e=(0,n.w)(e),this.currentTime=e,null===this.startTime||null!==this.holdTime||0===this.playbackSpeed?this.holdTime=e:this.driver&&(this.startTime=this.driver.now()-e/this.playbackSpeed),this.driver?this.driver.start(!1):(this.startTime=0,this.state="paused",this.holdTime=e,this.tick(e))}getGeneratorVelocity(){let e=this.currentTime;if(e<=0)return this.options.velocity||0;if(this.generator.velocity)return this.generator.velocity(e);let t=this.generator.next(e).value;return getGeneratorVelocity(e=>this.generator.next(e).value,e,t)}get speed(){return this.playbackSpeed}set speed(e){let t=this.playbackSpeed!==e;t&&this.driver&&this.updateTime(a.X.now()),this.playbackSpeed=e,t&&this.driver&&(this.time=(0,n.X)(this.currentTime))}play(){if(this.isStopped)return;let{driver:e=frameloopDriver,startTime:t}=this.options;this.driver||(this.driver=e(e=>this.tick(e))),this.options.onPlay?.();let i=this.driver.now();"finished"===this.state?(this.updateFinished(),this.startTime=i):null!==this.holdTime?this.startTime=i-this.holdTime:this.startTime||(this.startTime=t??i),"finished"===this.state&&this.speed<0&&(this.startTime+=this.calculatedDuration),this.holdTime=null,this.state="running",this.driver.start()}pause(){this.state="paused",this.updateTime(a.X.now()),this.holdTime=this.currentTime}complete(){"running"!==this.state&&this.play(),this.state="finished",this.holdTime=null}finish(){this.notifyFinished(),this.teardown(),this.state="finished",this.options.onComplete?.()}cancel(){this.holdTime=null,this.startTime=0,this.tick(0),this.teardown(),this.options.onCancel?.()}teardown(){this.state="idle",this.stopDriver(),this.startTime=this.holdTime=null}stopDriver(){this.driver&&(this.driver.stop(),this.driver=void 0)}sample(e){return this.startTime=0,this.tick(e,!0)}attachTimeline(e){return this.options.allowFlatten&&(this.options.type="keyframes",this.options.ease="linear",this.initAnimation()),this.driver?.stop(),e.observe(this)}};var R=i(58417),F=i(66054),M=i(16469);let j={anticipate:anticipate,backInOut:E,circInOut:A.X7};let NativeAnimationExtended=class NativeAnimationExtended extends M._{constructor(e){"string"==typeof e.ease&&e.ease in j&&
34(e.ease=j[e.ease]),replaceTransitionType(e),super(e),void 0!==e.startTime&&!1!==e.autoplay&&(this.startTime=e.startTime),this.options=e}updateMotionValue(e){let{motionValue:t,onUpdate:i,onComplete:n,element:r,...s}=this.options;if(!t)return;if(void 0!==e){t.set(e);return}let o=new JSAnimation({...s,autoplay:!1}),u=Math.max(10,a.X.now()-this.startTime),c=(0,l.u)(0,10,u-10),d=o.sample(u).value,{name:h}=this.options;r&&h&&(0,F.A)(r,h,d),t.setWithVelocity(o.sample(Math.max(0,u-c)).value,d,c),o.stop()}};var L=i(97274),N=i(58094);let isAnimatable=(e,t)=>"zIndex"!==t&&!!("number"==typeof e||Array.isArray(e)||"string"==typeof e&&(N.P.test(e)||"0"===e)&&!e.startsWith("url("));function makeAnimationInstant(e){e.duration=0,e.type="keyframes"}var I=i(70942),B=i(94180);let U=/^(?:oklch|oklab|lab|lch|color|color-mix|light-dark)\(/,W=new Set(["color","backgroundColor","outlineColor","fill","stroke","borderColor","borderTopColor","borderRightColor","borderBottomColor","borderLeftColor"]),$=(0,I.X)(()=>Object.hasOwnProperty.call(Element.prototype,"animate"));let AsyncMotionValueAnimation=class AsyncMotionValueAnimation extends O.T{constructor({autoplay:e=!0,delay:t=0,type:i="keyframes",repeat:n=0,repeatDelay:r=0,repeatType:s="loop",keyframes:o,name:l,motionValue:u,element:c,...d}){super(),this.stop=()=>{this._animation&&(this._animation.stop(),this.stopTimeline?.()),this.keyframeResolver?.cancel()},this.createdAt=a.X.now();let h={autoplay:e,delay:t,type:i,repeat:n,repeatDelay:r,repeatType:s,name:l,motionValue:u,element:c,...d},f=c?.KeyframeResolver||R.e;this.keyframeResolver=new f(o,(e,t,i)=>this.onKeyframesResolved(e,t,h,!i),l,u,c),this.keyframeResolver?.scheduleResolve()}onKeyframesResolved(e,t,i,n){let o;this.keyframeResolver=void 0;let{name:l,type:u,velocity:c,delay:h,isHandoff:f,onUpdate:p}=i;this.resolvedAt=a.X.now();let m=!0;!function(e,t,i,n){let r=e[0];if(null===r)return!1;if("display"===t||"visibility"===t)return!0;let s=e[e.length-1],a=isAnimatable(r,t),o=isAnimatable(s,t);return(0,d.K)(a===o,`You are trying to animate ${t} from "${r}" to "${s}". "${a?s:r}" is not an animatable value.`,"value-not-animatable"),!!a&&!!o&&(function(e){let t=e[0];if(1===e.length)return!0;for(let i=0;i<e.length;i++)if(e[i]!==t)return!0}(e)||("spring"===i||(0,L.x)(i))&&n)}(e,l,u,c)&&(m=!1,(r.c.instantAnimations||!h)&&p?.(k.$(e,i,t)),e[0]=e[e.length-1],makeAnimationInstant(i),i.repeat=0);let g=n?this.resolvedAt&&this.resolvedAt-this.createdAt>40?this.resolvedAt:this.createdAt:void 0,y={startTime:g,finalKeyframe:t,...i,keyframes:e},v=m&&!f&&function(e){let{motionValue:t,name:i,repeatDelay:n,repeatType:r,damping:s,type:a,keyframes:o}=e,l=t?.owner?.current;if(!(l instanceof HTMLElement)&&!(l instanceof SVGElement))return!1;let{onUpdate:u,transformTemplate:c}=t.owner.getProps();return $()&&i&&(B.t.has(i)||W.has(i)&&function(e){for(let t=0;t<e.length;t++)if("string"==typeof e[t]&&U.test(e[t]))return!0;return!1}(o))&&("transform"!==i||!c)&&!u&&!n&&"mirror"!==r&&0!==s&&"inertia"!==a}(y),x=y.motionValue?.owner?.current;if(v)try{o=new NativeAnimationExtended({...y,element:x})}catch{o=new JSAnimation(y)}else o=new JSAnimation(y);o.finished.then(()=>{this.notifyFinished()}).catch(s.Z),this.pendingTimeline&&(this.stopTimeline=o.attachTimeline(this.pendingTimeline),this.pendingTimeline=void 0),this._animation=o}get finished(){return this._animation?this.animation.finished:this._finished}then(e,t){return this.finished.finally(e).then(()=>{})}get animation(){return this._animation||(this.keyframeResolver?.resume(),(0,R.m)()),this._animation}get duration(){return this.animation.duration}get iterationDuration(){return this.animation.iterationDuration}get time(){return this.animation.time}set time(e){this.animation.time=e}get speed(){return this.animation.speed}get state(){return this.animation.state}set speed(e){this.animation.speed=e}get startTime(){return this.animation.startTime}attachTimeline(e){return this._animation?this.stopTimeline=this.animation.attachTimeline(e):this.pendingTimeline=e,()=>this.stop()}play(){this.animation.play()}pause(){this.animation.pause()}complete(){this.animation.complete()}cancel(){this._animation&&this.animation.cancel(),this.keyframeResolver?.cancel()}};var q=i(53860),z=i(59354);let K={type:"spring",stiffness:500,damping:25,restSpeed:10},criticallyDampedSpring=e=>({type:"spring",stiffness:550,damping:0===e?2*Math.sqrt(550):30,restSpeed:10}),H={type:"keyframes",duration:.8},X={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},getDefaultTransition=(e,{keyframes:t})=>t.length>2?H:z.G.has(e)?e.startsWith("scale")?criticallyDampedSpring(t[1]):K:X,G=new Set(["when","delay","delayChildren","staggerChildren","staggerDirection","repeat","repeatType","repeatDelay","from","elapsed"]),animateMotionValue=(e,t,i,s={},a,o)=>l=>{let u=(0,q.e)(s,e)||{}
34,d=u.delay||s.delay||0,{elapsed:h=0}=s;h-=(0,n.w)(d);let f={keyframes:Array.isArray(i)?i:[null,i],ease:"easeOut",velocity:t.getVelocity(),...u,delay:-h,onUpdate:e=>{t.set(e),u.onUpdate&&u.onUpdate(e)},onComplete:()=>{l(),u.onComplete&&u.onComplete()},name:e,motionValue:t,element:o?void 0:a};!function(e){for(let t in e)if(!G.has(t))return!0;return!1}(u)&&Object.assign(f,getDefaultTransition(e,f)),f.duration&&(f.duration=(0,n.w)(f.duration)),f.repeatDelay&&(f.repeatDelay=(0,n.w)(f.repeatDelay)),void 0!==f.from&&(f.keyframes[0]=f.from);let p=!1;if(!1!==f.type&&(0!==f.duration||f.repeatDelay)||(makeAnimationInstant(f),0!==f.delay||(p=!0)),(r.c.instantAnimations||r.c.skipAnimations||a?.shouldSkipAnimations||u.skipAnimations)&&(p=!0,makeAnimationInstant(f),f.delay=0),f.allowFlatten=!u.type&&!u.ease,p&&!o&&void 0!==t.get()){let e=(0,k.$)(f.keyframes,u);if(void 0!==e){c.Wi.update(()=>{f.onUpdate(e),f.onComplete()});return}}return u.isSync?new JSAnimation(f):new AsyncMotionValueAnimation(f)}},58417:function(e,t,i){"use strict";i.d(t,{e:function(){return KeyframeResolver},m:function(){return flushKeyframeResolvers}});var n=i(41293),r=i(82866);let s=new Set,a=!1,o=!1,l=!1;function measureAllKeyframes(){if(o){let e=Array.from(s).filter(e=>e.needsMeasurement),t=new Set(e.map(e=>e.element)),i=new Map;t.forEach(e=>{let t=(0,n.Ei)(e);t.length&&(i.set(e,t),e.render())}),e.forEach(e=>e.measureInitialState()),t.forEach(e=>{e.render();let t=i.get(e);t&&t.forEach(([t,i])=>{e.getValue(t)?.set(i)})}),e.forEach(e=>e.measureEndState()),e.forEach(e=>{void 0!==e.suspendedScrollY&&window.scrollTo(0,e.suspendedScrollY)})}o=!1,a=!1,s.forEach(e=>e.complete(l)),s.clear()}function readAllKeyframes(){s.forEach(e=>{e.readKeyframes(),e.needsMeasurement&&(o=!0)})}function flushKeyframeResolvers(){l=!0,readAllKeyframes(),measureAllKeyframes(),l=!1}let KeyframeResolver=class KeyframeResolver{constructor(e,t,i,n,r,s=!1){this.state="pending",this.isAsync=!1,this.needsMeasurement=!1,this.unresolvedKeyframes=[...e],this.onComplete=t,this.name=i,this.motionValue=n,this.element=r,this.isAsync=s}scheduleResolve(){this.state="scheduled",this.isAsync?(s.add(this),a||(a=!0,r.Wi.read(readAllKeyframes),r.Wi.resolveKeyframes(measureAllKeyframes))):(this.readKeyframes(),this.complete())}readKeyframes(){let{unresolvedKeyframes:e,name:t,element:i,motionValue:n}=this;if(null===e[0]){let r=n?.get(),s=e[e.length-1];if(void 0!==r)e[0]=r;else if(i&&t){let n=i.readValue(t,s);null!=n&&(e[0]=n)}void 0===e[0]&&(e[0]=s),n&&void 0===r&&n.set(e[0])}!function(e){for(let t=1;t<e.length;t++)e[t]??(e[t]=e[t-1])}(e)}setFinalKeyframe(){}measureInitialState(){}renderEndStyles(){}measureEndState(){}complete(e=!1){this.state="complete",this.onComplete(this.unresolvedKeyframes,this.finalKeyframe,e),s.delete(this)}cancel(){"scheduled"===this.state&&(s.delete(this),this.state="pending")}resume(){"pending"===this.state&&this.scheduleResolve()}}},96098:function(e,t,i){"use strict";i.d(t,{$:function(){return getFinalKeyframe}});let isNotNull=e=>null!==e;function getFinalKeyframe(e,{repeat:t,repeatType:i="loop"},n,r=1){let s=e.filter(isNotNull),a=r<0||t&&"loop"!==i&&t%2==1?0:s.length-1;return a&&void 0!==n?n:s[a]}},7790:function(e,t,i){"use strict";i.d(t,{Y:function(){return defaultOffset}});var n=i(58946),r=i(82659);function defaultOffset(e){let t=[0];return!function(e,t){let i=e[e.length-1];for(let s=1;s<=t;s++){let a=(0,n.Y)(0,t,s);e.push((0,r.t)(i,1,a))}}(t,e.length-1),t}},41293:function(e,t,i){"use strict";i.d(t,{Ei:function(){return removeNonTranslationalTransform},lw:function(){return u},mP:function(){return isNumOrPxType}});var n=i(66363),r=i(59354),s=i(57958),a=i(37259);let isNumOrPxType=e=>e===s.Rx||e===a.px,o=new Set(["x","y","z"]),l=r._.filter(e=>!o.has(e));function removeNonTranslationalTransform(e){let t=[];return l.forEach(i=>{let n=e.getValue(i);void 0!==n&&(t.push([i,n.get()]),n.set(i.startsWith("scale")?1:0))}),t}let u={width:({x:e},{paddingLeft:t="0",paddingRight:i="0",boxSizing:n})=>{let r=e.max-e.min;return"border-box"===n?r:r-parseFloat(t)-parseFloat(i)},height:({y:e},{paddingTop:t="0",paddingBottom:i="0",boxSizing:n})=>{let r=e.max-e.min;return"border-box"===n?r:r-parseFloat(t)-parseFloat(i)},top:(e,{top:t})=>parseFloat(t),left:(e,{left:t})=>parseFloat(t),bottom:({y:e},{top:t})=>parseFloat(t)+(e.max-e.min),right:({x:e},{left:t})=>parseFloat(t)+(e.max-e.min),x:(e,{transform:t})=>(0,n.WK)(t,"x"),y:(e,{transform:t})=>(0,n.WK)(t,"y")};u.translateX=u.x,u.translateY=u.y},90546:function(e,t,i){"use strict";i.d(t,{M:function(){return r}});var n=i(84458);let r="data-"+(0,n.D)("framerAppearId")},51681:function(e,t,i){"use strict";i.d(t,{s:function(){return getOptimisedAppearId}});var n=i(90546);function getOptimisedAppearId(e){return e.props[n.M]}},39064:function(e,t,i){"use strict";i.d(t,{T:function(){return WithPromise}});let WithPromise=class WithPromise{constructor(){this.updateFinished()}get finished(){return this._finished}updateFinished(){this._finished=new Promise(e=>{this.resolve=e})}notifyFinished(){this.resolve()}then(e,t){return this.finished.then(e,t)}}},53860:function(e,t,i){"use strict";i.d(t,{e:function(){return getValueTransition}});var n=i(93212);function getValueTransition(e,t){let i=e?.[t]??e?.default??e;
34return i!==e?(0,n.r)(i,e):i}},21219:function(e,t,i){"use strict";i.d(t,{V3:function(){return containsCSSVariable},f9:function(){return n},tm:function(){return isCSSVariableToken}});let checkStringStartsWith=e=>t=>"string"==typeof t&&t.startsWith(e),n=checkStringStartsWith("--"),r=checkStringStartsWith("var(--"),isCSSVariableToken=e=>{let t=r(e);return!!t&&s.test(e.split("/*")[0].trim())},s=/var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu;function containsCSSVariable(e){return"string"==typeof e&&e.split("/*")[0].includes("var(--")}},93212:function(e,t,i){"use strict";function resolveTransition(e,t){if(e?.inherit&&t){let{inherit:i,...n}=e;return{...t,...n}}return e}i.d(t,{r:function(){return resolveTransition}})},94180:function(e,t,i){"use strict";i.d(t,{t:function(){return n}});let n=new Set(["opacity","clipPath","filter","transform","backgroundColor"])},90363:function(e,t,i){"use strict";i.d(t,{w:function(){return generateLinearEasing}});let generateLinearEasing=(e,t,i=10)=>{let n="",r=Math.max(Math.round(t/i),2);for(let t=0;t<r;t++)n+=Math.round(1e4*e(t/(r-1)))/1e4+", ";return`linear(${n.substring(0,n.length-2)})`}},75421:function(e,t,i){"use strict";function addDomEvent(e,t,i,n={passive:!0}){return e.addEventListener(t,i,n),()=>e.removeEventListener(t,i,n)}i.d(t,{E:function(){return addDomEvent}})},93674:function(e,t,i){"use strict";i.d(t,{Z:function(){return createRenderBatcher}});var n=i(42218);let r=["setup","read","resolveKeyframes","preUpdate","update","preRender","render","postRender"];function createRenderBatcher(e,t){let i=!1,s=!0,a={delta:0,timestamp:0,isProcessing:!1},flagRunNextFrame=()=>i=!0,o=r.reduce((e,t)=>(e[t]=function(e){let t=new Set,i=new Set,n=!1,r=!1,s=new WeakSet,a={delta:0,timestamp:0,isProcessing:!1};function triggerCallback(t){s.has(t)&&(o.schedule(t),e()),t(a)}let o={schedule:(e,r=!1,a=!1)=>{let o=a&&n,l=o?t:i;return r&&s.add(e),l.add(e),e},cancel:e=>{i.delete(e),s.delete(e)},process:e=>{if(a=e,n){r=!0;return}n=!0;let s=t;t=i,i=s,t.forEach(triggerCallback),t.clear(),n=!1,r&&(r=!1,o.process(e))}};return o}(flagRunNextFrame),e),{}),{setup:l,read:u,resolveKeyframes:c,preUpdate:d,update:h,preRender:f,render:p,postRender:m}=o,processBatch=()=>{let r=n.c.useManualTiming,o=r?a.timestamp:performance.now();i=!1,r||(a.delta=s?1e3/60:Math.max(Math.min(o-a.timestamp,40),1)),a.timestamp=o,a.isProcessing=!0,l.process(a),u.process(a),c.process(a),d.process(a),h.process(a),f.process(a),p.process(a),m.process(a),a.isProcessing=!1,i&&t&&(s=!1,e(processBatch))},wake=()=>{i=!0,s=!0,a.isProcessing||e(processBatch)},g=r.reduce((e,t)=>{let n=o[t];return e[t]=(e,t=!1,r=!1)=>(i||wake(),n.schedule(e,t,r)),e},{});return{schedule:g,cancel:e=>{for(let t=0;t<r.length;t++)o[r[t]].cancel(e)},state:a,steps:o}}},82866:function(e,t,i){"use strict";i.d(t,{Pn:function(){return a},Wi:function(){return s},frameData:function(){return o},yL:function(){return l}});var n=i(27726),r=i(93674);let{schedule:s,cancel:a,state:o,steps:l}=(0,r.Z)("undefined"!=typeof requestAnimationFrame?requestAnimationFrame:n.Z,!0)},86008:function(e,t,i){"use strict";i.d(t,{$:function(){return s},g:function(){return r}});var n=i(93674);let{schedule:r,cancel:s}=(0,n.Z)(queueMicrotask,!1)},67245:function(e,t,i){"use strict";let n;i.d(t,{X:function(){return a}});var r=i(42218),s=i(82866);function clearTime(){n=void 0}let a={now:()=>(void 0===n&&a.set(s.frameData.isProcessing||r.c.useManualTiming?s.frameData.timestamp:performance.now()),n),set:e=>{n=e,queueMicrotask(clearTime)}}},57747:function(e,t,i){"use strict";i.d(t,{g:function(){return isDragActive},r:function(){return n}});let n={x:!1,y:!1};function isDragActive(){return n.x||n.y}},50969:function(e,t,i){"use strict";i.d(t,{T:function(){return isElementTextInput},_:function(){return isElementKeyboardAccessible}});let n=new Set(["BUTTON","INPUT","SELECT","TEXTAREA","A"]);function isElementKeyboardAccessible(e){return n.has(e.tagName)||!0===e.isContentEditable}let r=new Set(["INPUT","SELECT","TEXTAREA"]);function isElementTextInput(e){return r.has(e.tagName)||!0===e.isContentEditable}},66515:function(e,t,i){"use strict";i.d(t,{D:function(){return isPrimaryPointer}});let isPrimaryPointer=e=>"mouse"===e.pointerType?"number"!=typeof e.button||e.button<=0:!1!==e.isPrimary},6364:function(e,t,i){"use strict";function convertBoundingBoxToBox({top:e,left:t,right:i,bottom:n}){return{x:{min:t,max:i},y:{min:e,max:n}}}function convertBoxToBoundingBox({x:e,y:t}){return{top:t.min,right:e.max,bottom:t.max,left:e.min}}function transformBoxPoints(e,t){if(!t)return e;let i=t({x:e.left,y:e.top}),n=t({x:e.right,y:e.bottom});return{top:i.y,left:i.x,bottom:n.y,right:n.x}}i.d(t,{d7:function(){return transformBoxPoints},i8:function(){return convertBoundingBoxToBox},z2:function(){return convertBoxToBoundingBox}})},81884:function(e,t,i){"use strict";i.d(t,{D2:function(){return transformBox},YY:function(){return applyTreeDeltas},am:function(){return translateAxis},o2:function(){return applyBoxDelta},q2:function(){return scalePoint}});var n=i(82659),r=i(30452);function scalePoint(e,t,i){return i+t*(e-i)}function applyPointDelta(e,t,i,n,r){return void 0!==r&&(e=n+r*(e-n)),n+i*(e-n)+t}function applyAxisDelta(e,t=0,i=1,n,r){e.min=applyPointDelta(e.min,t,i,n,r),e.max=applyPointDelta(e.max,t,i,n,r)}function applyBoxDelta(e,{x:t,y:i}){applyAxisDelta(e.x,t.translate,t.scale,t.originPoint),applyAxisDelta(e.y,i.translate,i.scale,i.originPoint)}function applyTreeDeltas(e,t,i,n=!1){let s,a;let o=i.length;if(o){t.x=t.y=1;for(let l=0;l<o;l++){a=(s=i[l]).projectionDelta;let{visualElement:o}=s.options;(!o||!o.props.style||"contents"!==o.props.style.display)&&(n&&s.options.layoutScroll&&s.scroll&&s!==s.root&&(translateAxis(e.x,-s.scroll.offset.x),translateAxis(e.y,-s.scroll.offset.y)),a&&(t.x*=a.x.scale,t.y*=a.y.scale,applyBoxDelta(e,a)),n&&(0,r.ud)(s.latestValues)&&transformBox(e,s.latestValues,s.layout?.layoutBox))}t.x<1.0000000000001&&t.x>.999999999999&&(t.x=1),t.y<1.0000000000001&&t.y>.999999999999&&(t.y=1)}}function translateAxis(e,t){e.min+=t,e.max+=t}function transformAxis(e,t,i,r,s=.5){let a=(0,n.t)(e.min,e.max,s);applyAxisDelta(e,t,i,a,r)}function resolveAxisTranslate(e,t){return"string"==typeof e?parseFloat(e)/100*(t.max-t.min):e}function transformBox(e,t,i){let n=i??e;transformAxis(e.x,resolveAxisTranslate(t.x,n.x),t.scaleX,t.scale,t.originX),transformAxis(e.y,resolveAxisTranslate(t.y,n.y),t.scaleY,t.scale,t.originY)}},18042:function(e,t,i){"use strict";i.d(t,{dO:function(){return createBox},wc:function(){return createDelta}});let createAxisDelta=()=>({translate:0,scale:1,origin:0,originPoint:0}),createDelta=()=>({x:createAxisDelta(),y:createAxisDelta()}),createAxis=()=>({min:0,max:0}),createBox=()=>({x:createAxis(),y:createAxis()})},66640:function(e,t,i){"use strict";i.d(t,{P:function(){return l}});var n=i(36094),r=i(37259);function pixelsToPercent(e,t){return t.max===t.min?0:e/(t.max-t.min)*100}let s={correct:(e,t)=>
34{if(!t.target)return e;if("string"==typeof e){if(!r.px.test(e))return e;e=parseFloat(e)}let i=pixelsToPercent(e,t.target.x),n=pixelsToPercent(e,t.target.y);return`${i}% ${n}%`}};var a=i(58094),o=i(82659);let l={borderRadius:{...s,applyTo:[...n.v]},borderTopLeftRadius:s,borderTopRightRadius:s,borderBottomLeftRadius:s,borderBottomRightRadius:s,boxShadow:{correct:(e,{treeScale:t,projectionDelta:i})=>{let n=a.P.parse(e);if(n.length>5)return e;let r=a.P.createTransformer(e),s="number"!=typeof n[0]?1:0,l=i.x.scale*t.x,u=i.y.scale*t.y;n[0+s]/=l,n[1+s]/=u;let c=(0,o.t)(l,u,.5);return"number"==typeof n[2+s]&&(n[2+s]/=c),"number"==typeof n[3+s]&&(n[3+s]/=c),r(n)}}}},30452:function(e,t,i){"use strict";function isIdentityScale(e){return void 0===e||1===e}function hasScale({scale:e,scaleX:t,scaleY:i}){return!isIdentityScale(e)||!isIdentityScale(t)||!isIdentityScale(i)}function hasTransform(e){return hasScale(e)||has2DTranslate(e)||e.z||e.rotate||e.rotateX||e.rotateY||e.skewX||e.skewY}function has2DTranslate(e){var t,i;return(t=e.x)&&"0%"!==t||(i=e.y)&&"0%"!==i}i.d(t,{D_:function(){return has2DTranslate},Lj:function(){return hasScale},ud:function(){return hasTransform}})},65034:function(e,t,i){"use strict";i.d(t,{J:function(){return measureViewportBox},z:function(){return measurePageBox}});var n=i(6364),r=i(81884);function measureViewportBox(e,t){return(0,n.i8)((0,n.d7)(e.getBoundingClientRect(),t))}function measurePageBox(e,t,i){let n=measureViewportBox(e,i),{scroll:s}=t;return s&&((0,r.am)(n.x,s.offset.x),(0,r.am)(n.y,s.offset.y)),n}},6080:function(e,t,i){"use strict";i.d(t,{L:function(){return Feature}});let Feature=class Feature{constructor(e){this.isMounted=!1,this.node=e}update(){}}},99770:function(e,t,i){"use strict";i.d(t,{l9:function(){return VisualElement},uN:function(){return getFeatureDefinitions},v7:function(){return setFeatureDefinitions}});var n=i(14400),r=i(32489),s=i(89543),a=i(88449),o=i(58417),l=i(16469),u=i(94180),c=i(86008),d=i(67245),h=i(18042),f=i(68486),p=i(58094),m=i(60522),g=i(7167),y=i(52732),v=i(67439);let x=[...y.$,g.$,p.P],findValueType=e=>x.find((0,v.l)(e));var b=i(32558);let T=new WeakMap;var S=i(19964),w=i(59354);let E={current:null},A={current:!1},P="undefined"!=typeof window;var V=i(17935),D=i(82866);let C=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"],k={};function setFeatureDefinitions(e){k=e}function getFeatureDefinitions(){return k}let VisualElement=class VisualElement{scrapeMotionValuesFromProps(e,t,i){return{}}constructor({parent:e,props:t,presenceContext:i,reducedMotionConfig:n,skipAnimations:r,blockInitialAnimation:s,visualState:a},l={}){this.current=null,this.children=new Set,this.isVariantNode=!1,this.isControllingVariants=!1,this.shouldReduceMotion=null,this.shouldSkipAnimations=!1,this.values=new Map,this.KeyframeResolver=o.e,this.features={},this.valueSubscriptions=new Map,this.prevMotionValues={},this.hasBeenMounted=!1,this.events={},this.propEventSubscriptions={},this.notifyUpdate=()=>this.notify("Update",this.latestValues),this.render=()=>{this.current&&(this.triggerBuild(),this.renderInstance(this.current,this.renderState,this.props.style,this.projection))},this.renderScheduledAt=0,this.scheduleRender=()=>{let e=d.X.now();this.renderScheduledAt<e&&(this.renderScheduledAt=e,D.Wi.render(this.render,!1,!0))};let{latestValues:u,renderState:c}=a;this.latestValues=u,this.baseTarget={...u},this.initialValues=t.initial?{...u}:{},this.renderState=c,this.parent=e,this.props=t,this.presenceContext=i,this.depth=e?e.depth+1:0,this.reducedMotionConfig=n,this.skipAnimationsConfig=r,this.options=l,this.blockInitialAnimation=!!s,this.isControllingVariants=(0,S.G)(t),this.isVariantNode=(0,S.M)(t),this.isVariantNode&&(this.variantChildren=new Set),this.manuallyAnimateOnMount=!!(e&&e.current);let{willChange:h,...f}=this.scrapeMotionValuesFromProps(t,{},this);for(let e in f){let t=f[e];void 0!==u[e]&&(0,b.i)(t)&&t.set(u[e])}}mount(e){if(this.hasBeenMounted)for(let e in this.initialValues)this.values.get(e)?.jump(this.initialValues[e]),this.latestValues[e]=this.initialValues[e];this.current=e,T.set(e,this),this.projection&&!this.projection.instance&&this.projection.mount(e),this.parent&&this.isVariantNode&&!this.isControllingVariants&&(this.removeFromVariantTree=this.parent.addVariantChild(this)),this.values.forEac
34h((e,t)=>this.bindToMotionValue(t,e)),"never"===this.reducedMotionConfig?this.shouldReduceMotion=!1:"always"===this.reducedMotionConfig?this.shouldReduceMotion=!0:(A.current||function(){if(A.current=!0,P){if(window.matchMedia){let e=window.matchMedia("(prefers-reduced-motion)"),setReducedMotionPreferences=()=>E.current=e.matches;e.addEventListener("change",setReducedMotionPreferences),setReducedMotionPreferences()}else E.current=!1}}(),this.shouldReduceMotion=E.current),this.shouldSkipAnimations=this.skipAnimationsConfig??!1,this.parent?.addChild(this),this.update(this.props,this.presenceContext),this.hasBeenMounted=!0}unmount(){for(let e in this.projection&&this.projection.unmount(),(0,D.Pn)(this.notifyUpdate),(0,D.Pn)(this.render),this.valueSubscriptions.forEach(e=>e()),this.valueSubscriptions.clear(),this.removeFromVariantTree&&this.removeFromVariantTree(),this.parent?.removeChild(this),this.events)this.events[e].clear();for(let e in this.features){let t=this.features[e];t&&(t.unmount(),t.isMounted=!1)}this.current=null}addChild(e){this.children.add(e),this.enteringChildren??(this.enteringChildren=new Set),this.enteringChildren.add(e)}removeChild(e){this.children.delete(e),this.enteringChildren&&this.enteringChildren.delete(e)}bindToMotionValue(e,t){let i;if(this.valueSubscriptions.has(e)&&this.valueSubscriptions.get(e)(),t.accelerate&&u.t.has(e)&&this.current instanceof HTMLElement){let{factory:i,keyframes:r,times:s,ease:a,duration:o}=t.accelerate,u=new l._({element:this.current,name:e,keyframes:r,times:s,ease:a,duration:(0,n.w)(o)}),c=i(u);this.valueSubscriptions.set(e,()=>{c(),u.cancel()});return}let r=w.G.has(e);r&&this.onBindTransform&&this.onBindTransform();let s=t.on("change",t=>{this.latestValues[e]=t,this.props.onUpdate&&D.Wi.preRender(this.notifyUpdate),r&&this.projection&&(this.projection.isTransformDirty=!0),this.scheduleRender()});"undefined"!=typeof window&&window.MotionCheckAppearSync&&(i=window.MotionCheckAppearSync(this,e,t)),this.valueSubscriptions.set(e,()=>{s(),i&&i()})}sortNodePosition(e){return this.current&&this.sortInstanceNodePosition&&this.type===e.type?this.sortInstanceNodePosition(this.current,e.current):0}updateFeatures(){let e="animation";for(e in k){let t=k[e];if(!t)continue;let{isEnabled:i,Feature:n}=t;if(!this.features[e]&&n&&i(this.props)&&(this.features[e]=new n(this)),this.features[e]){let t=this.features[e];t.isMounted?t.update():(t.mount(),t.isMounted=!0)}}}triggerBuild(){this.build(this.renderState,this.latestValues,this.props)}measureViewportBox(){return this.current?this.measureInstanceViewportBox(this.current,this.props):(0,h.dO)()}getStaticValue(e){return this.latestValues[e]}setStaticValue(e,t){this.latestValues[e]=t}update(e,t){(e.transformTemplate||this.props.transformTemplate)&&this.scheduleRender(),this.prevProps=this.props,this.props=e,this.prevPresenceContext=this.presenceContext,this.presenceContext=t;for(let t=0;t<C.length;t++){let i=C[t];this.propEventSubscriptions[i]&&(this.propEventSubscriptions[i](),delete this.propEventSubscriptions[i]);let n="on"+i,r=e[n];r&&(this.propEventSubscriptions[i]=this.on(i,r))}this.prevMotionValues=function(e,t,i){for(let n in t){let r=t[n],s=i[n];if((0,b.i)(r))e.addValue(n,r);else if((0,b.i)(s))e.addValue(n,(0,f.BX)(r,{owner:e}));else if(s!==r){if(e.hasValue(n)){let t=e.getValue(n);!0===t.liveStyle?t.jump(r):t.hasAnimated||t.set(r)}else{let t=e.getStaticValue(n);e.addValue(n,(0,f.BX)(void 0!==t?t:r,{owner:e}))}}}for(let n in i)void 0===t[n]&&e.removeValue(n);return t}(this,this.scrapeMotionValuesFromProps(e,this.prevProps||{},this),this.prevMotionValues),this.handleChildMotionValue&&this.handleChildMotionValue()}getProps(){return this.props}getVariant(e){return this.props.variants?this.props.variants[e]:void 0}getDefaultTransition(){return this.props.transition}getTransformPagePoint(){return this.props.transformPagePoint}getClosestVariantNode(){return this.isVariantNode?this:this.parent?this.parent.getClosestVariantNode():void 0}addVariantChild(e){let t=this.getClosestVariantNode();if(t)return t.variantChildren&&t.variantChildren.add(e),()=>t.variantChildren.delete(e)}addValue(e,t){let i=this.values.get(e);t!==i&&(i&&this.removeValue(e),this.bindToMotionValue(e,t),this.values.set(e,t),this.latestValues[e]=t.get())}removeValue(e){this.values.delete(e);let t=this.valueSubscriptions.get(e);t&&(t(),this.valueSubscriptions.delete(e)),delete this.latestValues[e],this.removeValueFromRenderState(e,this.renderState)}hasValue(e){return this.values.has(e)}getValue(e,t){if(this.props.values&&this.props.values[e])return this.props.values[e];let i=this.values.get(e);return void 0===i&&void 0!==t&&(i=(0,f.BX)(null===t?void 0:t,{owner:this}),this.addValue(e,i)),i}readValue(e,t){let i=void 0===this.latestValues[e]&&this.current?this.getBaseTargetFromProps(this.props,e)??this.readValueFromInstance(this.current,e,this.options):this.latestValues[e];return null!=i&&("string"==typeof i&&((0,r.P)(i)||(0,s.W)(i))?i=parseFloat(i):!findValueType(i)&&p.P.test(t)&&(i=(0,m.T)(e,t)),this.setBaseTarget(e,(0,b.i)(i)?i.get():i)),(0,b.i)(i)?i.get():i}setBaseTarget(e,t){this.baseTarget[e]=t}getBaseTarget(e){let t;let{initial:i}=this.props;if("string"==typeof i||"object"==typeof i){let n=(0,V.o)(this.props,i,this.presenceContext?.custom);n&&(t=n[e])}if(i&&void 0!==t)return t;let n=this.getBaseTargetFromProps(this.props,e);return void 0===n||(0,b.i)(n)?void 0!==this.initialValues[e]&&void 0===t?void 0:this.baseTarget[e]:n}on(e,t){return this.events[e]||(this.events[e]=new a.L),this.events[e].add(t)}notify(e,...t){this.events[e]&&this.events[e].notify(...t)}scheduleRenderMicrotask(){c.g.render(this.render)}}},66363:function(e,t,i){"use strict";i.d(t,{E$:function(){return defaultTransformValue},RT:function(){return readTransformValue},WK:function(){return parseValueFromTransform}});let radToDeg=e=>180*e/Math.PI,rotate=e=>{let t=radToDeg(Math.atan2(e[1],e[0]));return rebaseAngle(t)},n={x:4,y:5,translateX:4,translateY:5,scaleX:0,scaleY:3,scale:e=>(Math.abs(e[0])+Math.abs(e[3]))/2,rotate,rotateZ:rotate,skewX:e=>radToDeg(Math.atan(e[1])),skewY:e=>radToDeg(Math.atan(e[2])),skew:e=>(Math.abs(e[1])+Math.abs(e[2]))/2},rebaseAngle=e=>((e%=360)<0&&(e+=360),e),scaleX=e=>Math.sqrt(e[0]*e[0]+e[1]*e[1]),scaleY=e=>Math.sqrt(e[4]*e[4]+e[5]*e[5]),r={x:12,y:13,z:14,translateX:12,translateY:13,translateZ:14,scaleX,scaleY,scale:e=>(scaleX(e)+scaleY(e))/2,rotateX:e=>rebaseAngle(radToDeg(Math.atan2(e[6],e[5]))),rotateY:e=>rebaseAngle(radToDeg(Math.atan2(-e[2],e[0]))),rotateZ:rotate,rotate:rotate,skewX:e=>radToDeg(Math.atan(e[4])),skewY:e=>radToDeg(Math.atan(e[1])),skew:e=>(Math.abs(e[1])+Math.abs(e[4]))/2};function defaultTransformValue(e){return e.includes("scale")?1:0}function parseValueFromTransform(e,t){let i,s;if(!e||"none"===e)return defaultTransformValue(t);let a=e.match(/^matrix3d\(([-\d.e\s,]+)\)$/u);if(a)i=r,s=a;else{let t=e.match(/^matrix\(([-\d.e\s,]+)\)$/u);i=n,s=t}if(!s)return defaultTransformValue(t);let o=i[t],l=s[1].split(",").map(convertTransformToNumber);return"function"==typeof o?o(l):l[o]}let readTransformValue=(e,t)=>
34{let{transform:i="none"}=getComputedStyle(e);return parseValueFromTransform(i,t)};function convertTransformToNumber(e){return parseFloat(e.trim())}},66054:function(e,t,i){"use strict";i.d(t,{A:function(){return setStyle}});let isCSSVar=e=>e.startsWith("--");function setStyle(e,t,i){isCSSVar(t)?e.style.setProperty(t,i):e.style[t]=i}},84458:function(e,t,i){"use strict";function camelToDash(e){return e.replace(/([A-Z])/g,e=>`-${e.toLowerCase()}`)}i.d(t,{D:function(){return camelToDash}})},22196:function(e,t,i){"use strict";i.d(t,{r:function(){return buildHTMLStyles}});let getValueAsType=(e,t)=>t&&"number"==typeof e?t.transform(e):e;var n=i(20354),r=i(59354),s=i(21219);let a={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},o=r._.length;function buildHTMLStyles(e,t,i){let{style:l,vars:u,transformOrigin:c}=e,d=!1,h=!1;for(let e in t){let i=t[e];if(r.G.has(e)){d=!0;continue}if((0,s.f9)(e)){u[e]=i;continue}{let t=getValueAsType(i,n.j[e]);e.startsWith("origin")?(h=!0,c[e]=t):l[e]=t}}if(!t.transform&&(d||i?l.transform=function(e,t,i){let s="",l=!0;for(let u=0;u<o;u++){let o=r._[u],c=e[o];if(void 0===c)continue;let d=!0;if("number"==typeof c)d=c===(o.startsWith("scale")?1:0);else{let e=parseFloat(c);d=o.startsWith("scale")?1===e:0===e}if(!d||i){let e=getValueAsType(c,n.j[o]);if(!d){l=!1;let t=a[o]||o;s+=`${t}(${e}) `}i&&(t[o]=e)}}let u=e.pathRotation;return u&&(l=!1,s+=`rotate(${getValueAsType(u,n.j.pathRotation)}) `),s=s.trim(),i?s=i(t,l?"":s):l&&(s="none"),s}(t,e.transform,i):l.transform&&(l.transform="none")),h){let{originX:e="50%",originY:t="50%",originZ:i=0}=c;l.transformOrigin=`${e} ${t} ${i}`}}},66441:function(e,t,i){"use strict";i.d(t,{U:function(){return scrapeMotionValuesFromProps}});var n=i(32558),r=i(88724);function scrapeMotionValuesFromProps(e,t,i){let s=e.style,a=t?.style,o={};if(!s)return o;for(let t in s)((0,n.i)(s[t])||a&&(0,n.i)(a[t])||(0,r.jF)(t,e)||i?.getValue(t)?.liveStyle!==void 0)&&(o[t]=s[t]);return o}},55450:function(e,t,i){"use strict";i.d(t,{i:function(){return buildSVGAttrs}});var n=i(22196);let r={offset:"stroke-dashoffset",array:"stroke-dasharray"},s={offset:"strokeDashoffset",array:"strokeDasharray"},a=["offsetDistance","offsetPath","offsetRotate","offsetAnchor"];function buildSVGAttrs(e,{attrX:t,attrY:i,attrScale:o,pathLength:l,pathSpacing:u=1,pathOffset:c=0,...d},h,f,p){if((0,n.r)(e,d,f),h){e.style.viewBox&&(e.attrs.viewBox=e.style.viewBox);return}e.attrs=e.style,e.style={};let{attrs:m,style:g}=e;for(let e of(m.transform&&(g.transform=m.transform,delete m.transform),(g.transform||m.transformOrigin)&&(g.transformOrigin=m.transformOrigin??"50% 50%",delete m.transformOrigin),g.transform&&(g.transformBox=p?.transformBox??"fill-box",delete m.transformBox),a))void 0!==m[e]&&(g[e]=m[e],delete m[e]);void 0!==t&&(m.x=t),void 0!==i&&(m.y=i),void 0!==o&&(m.scale=o),void 0!==l&&function(e,t,i=1,n=0,a=!0){e.pathLength=1;let o=a?r:s;e[o.offset]=`${-n}`,e[o.array]=`${t} ${i}`}(m,l,u,c,!1)}},31978:function(e,t,i){"use strict";i.d(t,{a:function(){return isSVGTag}});let isSVGTag=e=>"string"==typeof e&&"svg"===e.toLowerCase()},31839:function(e,t,i){"use strict";i.d(t,{U:function(){return scrapeMotionValuesFromProps}});var n=i(32558),r=i(59354),s=i(66441);function scrapeMotionValuesFromProps(e,t,i){let a=(0,s.U)(e,t,i);for(let i in e)if((0,n.i)(e[i])||(0,n.i)(t[i])){let t=-1!==r._.indexOf(i)?"attr"+i.charAt(0).toUpperCase()+i.substring(1):i;a[t]=e[i]}return a}},55360:function(e,t,i){"use strict";function isAnimationControls(e){return null!==e&&"object"==typeof e&&"function"==typeof e.start}i.d(t,{H:function(){return isAnimationControls}})},19964:function(e,t,i){"use strict";i.d(t,{G:function(){return isControllingVariants},M:function(){return isVariantNode}});var n=i(55360),r=i(78781),s=i(88563);function isControllingVariants(e){return(0,n.H)(e.animate)||s.V.some(t=>(0,r.$)(e[t]))}function isVariantNode(e){return!!(isControllingVariants(e)||e.variants)}},88724:function(e,t,i){"use strict";i.d(t,{jF:function(){return isForcedMotionValue}});var n=i(59354),r=i(66640);function isForcedMotionValue(e,{layout:t,layoutId:i}){return n.G.has(e)||e.startsWith("origin")||(t||void 0!==i)&&(!!r.P[e]||"opacity"===e)}},78781:function(e,t,i){"use strict";function isVariantLabel(e){return"string"==typeof e||Array.isArray(e)}i.d(t,{$:function(){return isVariantLabel}}
34)},51363:function(e,t,i){"use strict";i.d(t,{z:function(){return r}});var n=i(59354);let r=new Set(["width","height","top","left","right","bottom",...n._])},59354:function(e,t,i){"use strict";i.d(t,{G:function(){return r},_:function(){return n}});let n=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],r=new Set([...n,"pathRotation"])},17935:function(e,t,i){"use strict";function getValueState(e){let t=[{},{}];return e?.values.forEach((e,i)=>{t[0][i]=e.get(),t[1][i]=e.getVelocity()}),t}function resolveVariantFromProps(e,t,i,n){if("function"==typeof t){let[r,s]=getValueState(n);t=t(void 0!==i?i:e.custom,r,s)}if("string"==typeof t&&(t=e.variants&&e.variants[t]),"function"==typeof t){let[r,s]=getValueState(n);t=t(void 0!==i?i:e.custom,r,s)}return t}i.d(t,{o:function(){return resolveVariantFromProps}})},88563:function(e,t,i){"use strict";i.d(t,{V:function(){return r},e:function(){return n}});let n=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],r=["initial",...n]},94915:function(e,t,i){"use strict";let n,r;i.d(t,{S:function(){return resize}});var s=i(40678),a=i(11816);let o=new WeakMap,getSize=(e,t,i)=>(n,r)=>r&&r[0]?r[0][e+"Size"]:(0,s.v)(n)&&"getBBox"in n?n.getBBox()[t]:n[i],l=getSize("inline","width","offsetWidth"),u=getSize("block","height","offsetHeight");function notifyTarget({target:e,borderBoxSize:t}){o.get(e)?.forEach(i=>{i(e,{get width(){return l(e,t)},get height(){return u(e,t)}})})}function notifyAll(e){e.forEach(notifyTarget)}let c=new Set;function resize(e,t){return"function"==typeof e?(c.add(e),r||(r=()=>{let e={get width(){return window.innerWidth},get height(){return window.innerHeight}};c.forEach(t=>t(e))},window.addEventListener("resize",r)),()=>{c.delete(e),c.size||"function"!=typeof r||(window.removeEventListener("resize",r),r=void 0)}):function(e,t){n||"undefined"==typeof ResizeObserver||(n=new ResizeObserver(notifyAll));let i=(0,a.I)(e);return i.forEach(e=>{let i=o.get(e);i||(i=new Set,o.set(e,i)),i.add(t),n?.observe(e)}),()=>{i.forEach(e=>{let i=o.get(e);i?.delete(t),i?.size||n?.unobserve(e)})}}(e,t)}},36094:function(e,t,i){"use strict";i.d(t,{v:function(){return n}});let n=["borderTopLeftRadius","borderTopRightRadius","borderBottomRightRadius","borderBottomLeftRadius"]},98098:function(e,t,i){"use strict";i.d(t,{s:function(){return interpolate}});var n=i(42218),r=i(27726),s=i(377),a=i(25386),o=i(58946),l=i(488),u=i(88712);function interpolate(e,t,{clamp:i=!0,ease:c,mixer:d}={}){let h=e.length;if((0,a.k)(h===t.length,"Both input and output ranges must be the same length","range-length"),1===h)return()=>t[0];if(2===h&&t[0]===t[1])return()=>t[1];let f=e[0]===e[1];e[0]>e[h-1]&&(e=[...e].reverse(),t=[...t].reverse());let p=function(e,t,i){let a=[],o=i||n.c.mix||u.C,l=e.length-1;for(let i=0;i<l;i++){let n=o(e[i],e[i+1]);if(t){let e=Array.isArray(t)?t[i]||r.Z:t;n=(0,s.z)(e,n)}a.push(n)}return a}(t,c,d),m=p.length,interpolator=i=>{if(f&&i<e[0])return t[0];let n=0;if(m>1)for(;n<e.length-2&&!(i<e[n+1]);n++);let r=(0,o.Y)(e[n],e[n+1],i);return p[n](r)};return i?t=>interpolator((0,l.u)(e[0],e[h-1],t)):interpolator}},93243:function(e,t,i){"use strict";i.d(t,{R:function(){return isHTMLElement}});var n=i(36464);function isHTMLElement(e){return(0,n.K)(e)&&"offsetHeight"in e&&!("ownerSVGElement"in e)}},40678:function(e,t,i){"use strict";i.d(t,{v:function(){return isSVGElement}});var n=i(36464);function isSVGElement(e){return(0,n.K)(e)&&"ownerSVGElement"in e}},88712:function(e,t,i){"use strict";i.d(t,{C:function(){return mix}});var n=i(377),r=i(25386),s=i(21219),a=i(7167),o=i(58094),l=i(44777),u=i(66203);function hueToRgb(e,t,i){return(i<0&&(i+=1),i>1&&(i-=1),i<1/6)?e+(t-e)*6*i:i<.5?t:i<2/3?e+(t-e)*(2/3-i)*6:e}var c=i(96803);function mixImmediate(e,t){return i=>i>0?t:e}var d=i(82659);let mixLinearColor=(e,t,i)=>{let n=e*e,r=i*(t*t-n)+n;return r<0?0:Math.sqrt(r)},h=[l.$,c.m,u.J],getColorType=e=>h.find(t=>t.test(e));function asRGBA(e){let t=getColorType(e);if((0,r.K)(!!t,`'${e}' is not an animatable color. Use the equivalent color code instead.`,"color-not-animatable"),!t)return!1;let i=t.parse(e);return t===u.J&&(i=function({hue:e,saturation:t,lightness:i,alpha:n}){e/=360,i/=100;let r=0,s=0,a=0;if(t/=100){let n=i<.5?i*(1+t):i+t-i*t,o=2*i-n;r=hueToRgb(o,n,e+1/3),s=hueToRgb(o,n,e),a=hueToRgb(o,n,e-1/3)}else r=s=a=i;return{red:Math.round(255*r),green:Math.round(255*s),blue:Math.round(255*a),alpha:n}}(i)),i}let mixColor=(e,t)=>
34{let i=asRGBA(e),n=asRGBA(t);if(!i||!n)return mixImmediate(e,t);let r={...i};return e=>(r.red=mixLinearColor(i.red,n.red,e),r.green=mixLinearColor(i.green,n.green,e),r.blue=mixLinearColor(i.blue,n.blue,e),r.alpha=(0,d.t)(i.alpha,n.alpha,e),c.m.transform(r))},f=new Set(["none","hidden"]);function mixNumber(e,t){return i=>(0,d.t)(e,t,i)}function getMixer(e){return"number"==typeof e?mixNumber:"string"==typeof e?(0,s.tm)(e)?mixImmediate:a.$.test(e)?mixColor:mixComplex:Array.isArray(e)?mixArray:"object"==typeof e?a.$.test(e)?mixColor:mixObject:mixImmediate}function mixArray(e,t){let i=[...e],n=i.length,r=e.map((e,i)=>getMixer(e)(e,t[i]));return e=>{for(let t=0;t<n;t++)i[t]=r[t](e);return i}}function mixObject(e,t){let i={...e,...t},n={};for(let r in i)void 0!==e[r]&&void 0!==t[r]&&(n[r]=getMixer(e[r])(e[r],t[r]));return e=>{for(let t in n)i[t]=n[t](e);return i}}let mixComplex=(e,t)=>{let i=o.P.createTransformer(t),s=(0,o.V)(e),a=(0,o.V)(t),l=s.indexes.var.length===a.indexes.var.length&&s.indexes.color.length===a.indexes.color.length&&s.indexes.number.length>=a.indexes.number.length;return l?f.has(e)&&!a.values.length||f.has(t)&&!s.values.length?f.has(e)?i=>i<=0?e:t:i=>i>=1?t:e:(0,n.z)(mixArray(function(e,t){let i=[],n={color:0,var:0,number:0};for(let r=0;r<t.values.length;r++){let s=t.types[r],a=e.indexes[s][n[s]],o=e.values[a]??0;i[r]=o,n[s]++}return i}(s,a),a.values),i):((0,r.K)(!0,`Complex values '${e}' and '${t}' too different to mix. Ensure all colors are of the same type, and that each contains the same quantity of number and color values. Falling back to instant transition.`,"complex-values-different"),mixImmediate(e,t))};function mix(e,t,i){if("number"==typeof e&&"number"==typeof t&&"number"==typeof i)return(0,d.t)(e,t,i);let n=getMixer(e);return n(e,t)}},82659:function(e,t,i){"use strict";i.d(t,{t:function(){return mixNumber}});let mixNumber=(e,t,i)=>e+(t-e)*i},11816:function(e,t,i){"use strict";function resolveElements(e,t,i){if(null==e)return[];if(e instanceof EventTarget)return[e];if("string"==typeof e){let n=document;t&&(n=t.current);let r=i?.[e]??n.querySelectorAll(e);return r?Array.from(r):[]}return Array.from(e).filter(e=>null!=e)}i.d(t,{I:function(){return resolveElements}})},63898:function(e,t,i){"use strict";i.d(t,{p:function(){return memoSupports}});var n=i(70942);let r={};function memoSupports(e,t){let i=(0,n.X)(e);return()=>r[t]??i()}},84548:function(e,t,i){"use strict";i.d(t,{i:function(){return s},t:function(){return r}});var n=i(63898);let r=(0,n.p)(()=>void 0!==window.ScrollTimeline,"scrollTimeline"),s=(0,n.p)(()=>void 0!==window.ViewTimeline,"viewTimeline")},68486:function(e,t,i){"use strict";i.d(t,{BX:function(){return motionValue}});var n=i(88449),r=i(37142),s=i(67245),a=i(82866);let isFloat=e=>!isNaN(parseFloat(e)),o={current:void 0};let MotionValue=class MotionValue{constructor(e,t={}){this.canTrackVelocity=null,this.events={},this.updateAndNotify=e=>{let t=s.X.now();if(this.updatedAt!==t&&this.setPrevFrameValue(),this.prev=this.current,this.setCurrent(e),this.current!==this.prev&&(this.events.change?.notify(this.current),this.dependents))for(let e of this.dependents)e.dirty()},this.hasAnimated=!1,this.setCurrent(e),this.owner=t.owner}setCurrent(e){this.current=e,this.updatedAt=s.X.now(),null===this.canTrackVelocity&&void 0!==e&&(this.canTrackVelocity=isFloat(this.current))}setPrevFrameValue(e=this.current){this.prevFrameValue=e,this.prevUpdatedAt=this.updatedAt}onChange(e){return this.on("change",e)}on(e,t){this.events[e]||(this.events[e]=new n.L);let i=this.events[e].add(t);return"change"===e?()=>{i(),a.Wi.read(()=>{this.events.change.getSize()||this.stop()})}:i}clearListeners(){for(let e in this.events)this.events[e].clear()}attach(e,t){this.passiveEffect=e,this.stopPassiveEffect=t}set(e){this.passiveEffect?this.passiveEffect(e,this.updateAndNotify):this.updateAndNotify(e)}setWithVelocity(e,t,i){this.set(t),this.prev=void 0,this.prevFrameValue=e,this.prevUpdatedAt=this.updatedAt-i}jump(e,t=!0){this.updateAndNotify(e),this.prev=e,this.prevUpdatedAt=this.prevFrameValue=void 0,t&&this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}dirty(){this.events.change?.notify(this.current)}addDependent(e){this.dependents||(this.dependents=new Set),this.dependents.add(e)}removeDependent(e){this.dependents&&this.dependents.delete(e)}get(){return o.current&&o.current.push(this),this.current}getPrevious(){return this.prev}getVelocity(){let e=s.X.now();if(!this.canTrackVelocity||void 0===this.prevFrameValue||e-this.updatedAt>30)return 0;let t=Math.min(this.updatedAt-this.prevUpdatedAt,30);return(0,r.R)(parseFloat(this.current)-parseFloat(this.prevFrameValue),t)}start(e){return this.stop(),new Promise(t=>{this.hasAnimated=!0,this.animation=e(t),this.events.animationStart&&this.events.animationStart.notify()}).then(()=>{this.events.animationComplete&&this.events.animationComplete.notify(),this.clearAnimation()})}stop(){this.animation&&(this.animation.stop(),this.events.animationCancel&&this.events.animationCancel.notify()),this.clearAnimation()}isAnimating(){return!!this.animation}clearAnimation(){delete this.animation}destroy(){this.dependents?.clear(),this.events.destroy?.notify(),this.clearListeners(),this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}};function motionValue(e,t){return new MotionValue(e,t)}},44777:function(e,t,i){"use strict";i.d(t,{$:function(){return s}});var n=i(96803),r=i(79946);
34let s={test:(0,r.i)("#"),parse:function(e){let t="",i="",n="",r="";return e.length>5?(t=e.substring(1,3),i=e.substring(3,5),n=e.substring(5,7),r=e.substring(7,9)):(t=e.substring(1,2),i=e.substring(2,3),n=e.substring(3,4),r=e.substring(4,5),t+=t,i+=i,n+=n,r+=r),{red:parseInt(t,16),green:parseInt(i,16),blue:parseInt(n,16),alpha:r?parseInt(r,16)/255:1}},transform:n.m.transform}},66203:function(e,t,i){"use strict";i.d(t,{J:function(){return o}});var n=i(57958),r=i(37259),s=i(6219),a=i(79946);let o={test:(0,a.i)("hsl","hue"),parse:(0,a.d)("hue","saturation","lightness"),transform:({hue:e,saturation:t,lightness:i,alpha:a=1})=>"hsla("+Math.round(e)+", "+r.aQ.transform((0,s.N)(t))+", "+r.aQ.transform((0,s.N)(i))+", "+(0,s.N)(n.Fq.transform(a))+")"}},7167:function(e,t,i){"use strict";i.d(t,{$:function(){return a}});var n=i(44777),r=i(66203),s=i(96803);let a={test:e=>s.m.test(e)||n.$.test(e)||r.J.test(e),parse:e=>s.m.test(e)?s.m.parse(e):r.J.test(e)?r.J.parse(e):n.$.parse(e),transform:e=>"string"==typeof e?e:e.hasOwnProperty("red")?s.m.transform(e):r.J.transform(e),getAnimatableNone:e=>{let t=a.parse(e);return t.alpha=0,a.transform(t)}}},96803:function(e,t,i){"use strict";i.d(t,{m:function(){return l}});var n=i(488),r=i(57958),s=i(6219),a=i(79946);let clampRgbUnit=e=>(0,n.u)(0,255,e),o={...r.Rx,transform:e=>Math.round(clampRgbUnit(e))},l={test:(0,a.i)("rgb","red"),parse:(0,a.d)("red","green","blue"),transform:({red:e,green:t,blue:i,alpha:n=1})=>"rgba("+o.transform(e)+", "+o.transform(t)+", "+o.transform(i)+", "+(0,s.N)(r.Fq.transform(n))+")"}},79946:function(e,t,i){"use strict";i.d(t,{i:function(){return isColorString},d:function(){return splitColor}});var n=i(7159);let r=/^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu,isColorString=(e,t)=>i=>!!("string"==typeof i&&r.test(i)&&i.startsWith(e)||t&&null!=i&&Object.prototype.hasOwnProperty.call(i,t)),splitColor=(e,t,i)=>r=>{if("string"!=typeof r)return r;let[s,a,o,l]=r.match(n.K);return{[e]:parseFloat(s),[t]:parseFloat(a),[i]:parseFloat(o),alpha:void 0!==l?parseFloat(l):1}}},54416:function(e,t,i){"use strict";i.d(t,{h:function(){return o}});var n=i(58094),r=i(7159);let s=new Set(["brightness","contrast","saturate","opacity"]);function applyDefaultFilter(e){let[t,i]=e.slice(0,-1).split("(");if("drop-shadow"===t)return e;let[n]=i.match(r.K)||[];if(!n)return e;let a=i.replace(n,""),o=s.has(t)?1:0;return n!==i&&(o*=100),t+"("+o+a+")"}let a=/\b([a-z-]*)\(.*?\)/gu,o={...n.P,getAnimatableNone:e=>{let t=e.match(a);return t?t.map(applyDefaultFilter).join(" "):e}}},58094:function(e,t,i){"use strict";i.d(t,{V:function(){return analyseComplexValue},P:function(){return c}});var n=i(7167);let r=/(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu;var s=i(7159),a=i(6219);let o="number",l="color",u=/var\s*\(\s*--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)|#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\)|-?(?:\d+(?:\.\d+)?|\.\d+)/giu;function analyseComplexValue(e){let t=e.toString(),i=[],r={color:[],number:[],var:[]},s=[],a=0,c=t.replace(u,e=>(n.$.test(e)?(r.color.push(a),s.push(l),i.push(n.$.parse(e))):e.startsWith("var(")?(r.var.push(a),s.push("var"),i.push(e)):(r.number.push(a),s.push(o),i.push(parseFloat(e))),++a,"${}")),d=c.split("${}");return{values:i,split:d,indexes:r,types:s}}function buildTransformer({split:e,types:t}){let i=e.length;return r=>{let s="";for(let u=0;u<i;u++)if(s+=e[u],void 0!==r[u]){let e=t[u];e===o?s+=(0,a.N)(r[u]):e===l?s+=n.$.transform(r[u]):s+=r[u]}return s}}let convertNumbersToZero=e=>"number"==typeof e?0:n.$.test(e)?n.$.getAnimatableNone(e):e,convertToZero=(e,t)=>"number"==typeof e?t?.trim().endsWith("/")?e:0:convertNumbersToZero(e),c={test:function(e){return isNaN(e)&&"string"==typeof e&&(e.match(s.K)?.length||0)+(e.match(r)?.length||0)>0},parse:function(e){return analyseComplexValue(e).values},createTransformer:function(e){return buildTransformer(analyseComplexValue(e))},getAnimatableNone:function(e){let t=analyseComplexValue(e),i=buildTransformer(t);return i(t.values.map((e,i)=>convertToZero(e,t.split[i])))}}},15118:function(e,t,i){"use strict";i.d(t,{s:function(){return r}});var n=i(58094);let r={...n.P,getAnimatableNone:e=>{let t=n.P.parse(e),i=n.P.createTransformer(e);return i(t.map(e=>"number"==typeof e?0:"object"==typeof e?{...e,alpha:1}:e))}}},52732:function(e,t,i){"use strict";i.d(t,{$:function(){return a},C:function(){return findDimensionValueType}});var n=i(57958),r=i(37259),s=i(67439);let a=[n.Rx,r.px,r.aQ,r.RW,r.vw,r.vh,{test:e=>"auto"===e,parse:e=>e}],findDimensionValueType=e=>a.find((0,s.l)(e))},47265:function(e,t,i){"use strict";i.d(t,{A:function(){return getDefaultValueType}});var n=i(7167),r=i(54416),s=i(15118),a=i(20354);let o={...a.j,color:n.$,backgroundColor:n.$,outlineColor:n.$,fill:n.$,stroke:n.$,borderColor:n.$,borderTopColor:n.$,borderRightColor:n.$,borderBottomColor:n.$,borderLeftColor:n.$,filter:r.h,WebkitFilter:r.h,mask:s.s,WebkitMask:s.s},getDefaultValueType=e=>o[e]},20354:function(e,t,i){"use strict";i.d(t,{j:function(){return o}});var n=i(57958);let r={...n.Rx,transform:Math.round};var s=i(37259);let a={rotate:s.RW,pathRotation:s.RW,rotateX:s.RW,rotateY:s.RW,rotateZ:s.RW,scale:n.bA,scaleX:n.bA,scaleY:n.bA,scaleZ:n.bA,skew:s.RW,skewX:s.RW,skewY:s.RW,distance:s.px,translateX:s.px,translateY:s.px,translateZ:s.px,x:s.px,y:s.px,z:s.px,perspective:s.px,transformPerspective:s.px,opacity:n.Fq,originX:s.$C,originY:s.$C,originZ:s.px},o={borderWidth:s.px,borderTopWidth:s.px,borderRightWidth:s.px,borderBottomWidth:s.px,borderLeftWidth:s.px,borderRadius:s.px,borderTopLeftRadius:s.px,borderTopRightRadius:s.px,borderBottomRightRadius:s.px,borderBottomLeftRadius:s.px,width:s.px,maxWidth:s.px,height:s.px,maxHeight:s.px,top:s.px,right:s.px,bottom:s.px,left:s.px,inset:s.px,insetBlock:s.px,insetBlockStart:s.px,insetBlockEnd:s.px,insetInline:s.px,insetInlineStart:s.px,insetInlineEnd:s.px,padding:s.px,paddingTop:s.px,paddingRight:s.px,paddingBottom:s.px,paddingLeft:s.px,paddingBlock:s.px,paddingBlockStart:s.px,paddingBlockEnd:s.px,paddingInline:s.px,paddingInlineStart:s.px,paddingInlineEnd:s.px,margin:s.px,marginTop:s.px,marginRight:s.px,marginBottom:s.px,marginLeft:s.px,marginBlock:s.px,marginBlockStart:s.px,marginBlockEnd:s.px,marginInline:s.px,marginInlineStart:s.px,marginInlineEnd:s.px,fontSize:s.px,backgroundPositionX:s.px,backgroundPositionY:s.px,...a,zIndex:r,fillOpacity:n.Fq,strokeOpacity:n.Fq,numOctaves:r}},57958:function(e,t,i){"use strict";i.d(t,{Fq:function(){return s},Rx:function(){return r},bA:function(){return a}});var n=i(488);let r={test:e=>"number"==typeof e,parse:parseFloat,transform:e=>e},s={...r,transform:e=>(0,n.u)(0,1,e)},a={...r,default:1}},37259:function(e,t,i){"use strict";i.d(t,{$C:function(){return l},RW:function(){return n},aQ:function(){return r},px:function(){return s},vh:function(){return a},vw:function(){return o}});let createUnitType=e=>({test:t=>"string"==typeof t&&t.endsWith(e)&&1===t.split(" ").length,parse:parseFloat,transform:t=>`${t}${e}`}),n=createUnitType("deg"),r=createUnitType("%"),s=createUnitType("px"),a=createUnitType("vh"),o=createUnitType("vw"),l={...r,parse:e=>r.parse(e)/100,transform:e=>r.transform(100*e)}},67439:function(e,t,i){"use strict";i.d(t,{l:function(){return testValueType}});let testValueType=e=>t=>t.test(e)},60522:function(e,t,i){"use strict";i.d(t,{T:function(){return getAnimatableNone}});var n=i(58094),r=i(54416),s=i(15118),a=i(47265);let o=new Set([r.h,s.s]);function getAnimatableNone(e,t){let i=(0,a.A)(e);return o.has(i)||(i=n.P),i.getAnimatableNone?i.getAnimatableNone(t):void 0}},7159:function(e,t,i){"use strict";i.d(t,{K:function(){return n}});let n=/-?(?:\d+(?:\.\d+)?|\.\d+)/gu},6219:function(e,t,i){"use strict";i.d(t,{N:function(){return sanitize}});let sanitize=e=>Math.round(1e5*e)/1e5},32558:function(e,t,i){"use strict";i.d(t,{i:function(){return isMotionValue}});let isMotionValue=e=>!!(e&&e.getVelocity)},80105:function(e,t,i){"use strict";i.d(t,{b:function(){return resolveMotionValue}});var n=i(32558);function resolveMotionValue(e){return(0,n.i)(e)?e.get():e}},47772:function(e,t,i){"use strict";i.d(t,{K:function(){return addValueToWillChange}});var n=i(42218),r=i(32558);function addValueToWillChange(e,t){let i=e.getValue("willChange");if((0,r.i)(i)&&i.add)return i.add(t);if(!i&&n.c.WillChange){let i=new n.c.WillChange("auto");
34e.addValue("willChange",i),i.add(t)}}},35774:function(e,t,i){"use strict";function addUniqueItem(e,t){-1===e.indexOf(t)&&e.push(t)}function removeItem(e,t){let i=e.indexOf(t);i>-1&&e.splice(i,1)}i.d(t,{cl:function(){return removeItem},y4:function(){return addUniqueItem}})},488:function(e,t,i){"use strict";i.d(t,{u:function(){return clamp}});let clamp=(e,t,i)=>i>t?t:i<e?e:i},53158:function(e,t,i){"use strict";i.d(t,{Bn:function(){return s},X7:function(){return a},Z7:function(){return circIn}});var n=i(89357),r=i(68298);let circIn=e=>1-Math.sin(Math.acos(e)),s=(0,r.M)(circIn),a=(0,n.o)(circIn)},89357:function(e,t,i){"use strict";i.d(t,{o:function(){return mirrorEasing}});let mirrorEasing=e=>t=>t<=.5?e(2*t)/2:(2-e(2*(1-t)))/2},68298:function(e,t,i){"use strict";i.d(t,{M:function(){return reverseEasing}});let reverseEasing=e=>t=>1-e(1-t)},88747:function(e,t,i){"use strict";i.d(t,{q:function(){return isBezierDefinition}});let isBezierDefinition=e=>Array.isArray(e)&&"number"==typeof e[0]},25386:function(e,t,i){"use strict";i.d(t,{K:function(){return warning},k:function(){return invariant}}),i(83454);let warning=()=>{},invariant=()=>{}},42218:function(e,t,i){"use strict";i.d(t,{c:function(){return n}});let n={}},32489:function(e,t,i){"use strict";i.d(t,{P:function(){return isNumericalString}});let isNumericalString=e=>/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(e)},36464:function(e,t,i){"use strict";i.d(t,{K:function(){return isObject}});let isObject=e=>"object"==typeof e&&null!==e},89543:function(e,t,i){"use strict";i.d(t,{W:function(){return isZeroValueString}});let isZeroValueString=e=>/^0[^.\s]+$/u.test(e)},70942:function(e,t,i){"use strict";function memo(e){let t;return()=>(void 0===t&&(t=e()),t)}i.d(t,{X:function(){return memo}})},27726:function(e,t,i){"use strict";i.d(t,{Z:function(){return noop}});let noop=e=>e},377:function(e,t,i){"use strict";i.d(t,{z:function(){return pipe}});let pipe=(...e)=>e.reduce((e,t)=>i=>t(e(i)))},58946:function(e,t,i){"use strict";i.d(t,{Y:function(){return progress}});let progress=(e,t,i)=>{let n=t-e;return n?(i-e)/n:1}},88449:function(e,t,i){"use strict";i.d(t,{L:function(){return SubscriptionManager}});var n=i(35774);let SubscriptionManager=class SubscriptionManager{constructor(){this.subscriptions=[]}add(e){return(0,n.y4)(this.subscriptions,e),()=>(0,n.cl)(this.subscriptions,e)}notify(e,t,i){let n=this.subscriptions.length;if(n){if(1===n)this.subscriptions[0](e,t,i);else for(let r=0;r<n;r++){let n=this.subscriptions[r];n&&n(e,t,i)}}}getSize(){return this.subscriptions.length}clear(){this.subscriptions.length=0}}},14400:function(e,t,i){"use strict";i.d(t,{X:function(){return millisecondsToSeconds},w:function(){return secondsToMilliseconds}});let secondsToMilliseconds=e=>1e3*e,millisecondsToSeconds=e=>e/1e3},37142:function(e,t,i){"use strict";i.d(t,{R:function(){return velocityPerSecond}});let velocityPerSecond=(e,t)=>t?e*(1e3/t):0},44389:function(e,t,i){"use strict";i.d(t,{S:function(){return I},u:function(){return B}});var n,r=i(67294),s=i(61688),a=Object.prototype.hasOwnProperty;let o=new WeakMap,noop=()=>{},l=noop(),u=Object,isUndefined=e=>e===l,isFunction=e=>"function"==typeof e,mergeObjects=(e,t)=>({...e,...t}),isPromiseLike=e=>isFunction(e.then),c={},d={},h="undefined",f=typeof window!=h,p=typeof document!=h,m=f&&"Deno"in window,hasRequestAnimationFrame=()=>f&&typeof window.requestAnimationFrame!=h,createCacheHelper=(e,t)=>{let i=o.get(e);return[()=>!isUndefined(t)&&e.get(t)||c,n=>{if(!isUndefined(t)){let r=e.get(t);t in d||(d[t]=r),i[5](t,mergeObjects(r,n),r||c)}},i[6],()=>!isUndefined(t)&&t in d?d[t]:!isUndefined(t)&&e.get(t)||c]},g=!0,[y,v]=f&&window.addEventListener?[window.addEventListener.bind(window),window.removeEventListener.bind(window)]:[noop,noop],x={initFocus:e=>(p&&document.addEventListener("visibilitychange",e),y("focus",e),()=>{p&&document.removeEventListener("visibilitychange",e),v("focus",e)}),initReconnect:e=>{let onOnline=()=>{g=!0,e()},onOffline=()=>{g=!1};return y("online",onOnline),y("offline",onOffline),()=>{v("online",onOnline),v("offline",onOffline)}}},b=!r.useId,T=!f||m,rAF=e=>hasRequestAnimationFrame()?window.requestAnimationFrame(e):setTimeout(e,1),S=T?r.useEffect:r.useLayoutEffect,w="undefined"!=typeof navigator&&navigator.connection,E=!T&&w&&(["slow-2g","2g"].includes(w.effectiveType)||w.saveData),A=new WeakMap,getTypeName=e=>u.prototype.toString.call(e),isObjectTypeName=(e,t)=>
34e===`[object ${t}]`,P=0,stableHash=e=>{let t,i;let n=typeof e,r=getTypeName(e),s=isObjectTypeName(r,"Date"),a=isObjectTypeName(r,"RegExp"),o=isObjectTypeName(r,"Object");if(u(e)!==e||s||a)t=s?e.toJSON():"symbol"==n?e.toString():"string"==n?JSON.stringify(e):""+e;else{if(t=A.get(e))return t;if(t=++P+"~",A.set(e,t),Array.isArray(e)){for(i=0,t="@";i<e.length;i++)t+=stableHash(e[i])+",";A.set(e,t)}if(o){t="#";let n=u.keys(e).sort();for(;!isUndefined(i=n.pop());)isUndefined(e[i])||(t+=i+":"+stableHash(e[i])+",");A.set(e,t)}}return t},config_context_ext53wcz_serialize=e=>{if(isFunction(e))try{e=e()}catch(t){e=""}let t=e;return[e="string"==typeof e?e:(Array.isArray(e)?e.length:e)?stableHash(e):"",t]},V=0,getTimestamp=()=>++V;async function internalMutate(...e){let[t,i,n,r]=e,s=mergeObjects({populateCache:!0,throwOnError:!0},"boolean"==typeof r?{revalidate:r}:r||{}),a=s.populateCache,u=s.rollbackOnError,c=s.optimisticData,rollbackOnError=e=>"function"==typeof u?u(e):!1!==u,d=s.throwOnError;if(isFunction(i)){let e=[],n=t.keys();for(let r of n)!/^\$(inf|sub)\$/.test(r)&&i(t.get(r)._k)&&e.push(r);return Promise.all(e.map(mutateByKey))}return mutateByKey(i);async function mutateByKey(i){let r;let[u]=config_context_ext53wcz_serialize(i);if(!u)return;let[h,f]=createCacheHelper(t,u),[p,m,g,y]=o.get(t),startRevalidate=()=>{let e=p[u],t=isFunction(s.revalidate)?s.revalidate(h().data,i):!1!==s.revalidate;return t&&(delete g[u],delete y[u],e&&e[0])?e[0](2).then(()=>h().data):h().data};if(e.length<3)return startRevalidate();let v=n,x=!1,b=getTimestamp();m[u]=[b,0];let T=!isUndefined(c),S=h(),w=S.data,E=S._c,A=isUndefined(E)?w:E;if(T&&f({data:c=isFunction(c)?c(A,w):c,_c:A}),isFunction(v))try{v=v(A)}catch(e){r=e,x=!0}if(v&&isPromiseLike(v)){if(v=await v.catch(e=>{r=e,x=!0}),b!==m[u][0]){if(x)throw r;return v}x&&T&&rollbackOnError(r)&&(a=!0,f({data:A,_c:l}))}if(a&&!x){if(isFunction(a)){let e=a(v,A);f({data:e,error:l,_c:l})}else f({data:v,error:l,_c:l})}if(m[u][1]=getTimestamp(),Promise.resolve(startRevalidate()).then(()=>{f({_c:l})}),x){if(d)throw r;return}return v}}let revalidateAllKeys=(e,t)=>{for(let i in e)e[i][0]&&e[i][0](t)},initCache=(e,t)=>{if(!o.has(e)){let i=mergeObjects(x,t),n=Object.create(null),r=internalMutate.bind(l,e),s=noop,a=Object.create(null),subscribe=(e,t)=>{let i=a[e]||[];return a[e]=i,i.push(t),()=>{let e=i.indexOf(t);e>=0&&(i[e]=i[i.length-1],i.pop())}},setter=(t,i,n)=>{e.set(t,i);let r=a[t];if(r)for(let e of r)e(i,n)},unload=t=>{let i=o.get(e),[,r,s,l]=i,u=getTimestamp();for(let e in i[8]++,s)delete s[e];for(let e in l)delete l[e];for(let e in r)r[e]=[u,u];let c={};for(let t of[...e.keys()]){let i=e.get(t);e.delete(t);let n=a[t];if(n)for(let e of n)e(c,i)}let d=!t||!1!==t.revalidate;for(let e in n){let t=n[e];for(let e=0;e<t.length;e++)t[e](4,{revalidate:d&&!e})}},initProvider=()=>{if(!o.has(e)&&(o.set(e,[n,Object.create(null),Object.create(null),Object.create(null),r,setter,subscribe,unload,0]),!T)){let t=i.initFocus(setTimeout.bind(l,revalidateAllKeys.bind(l,n,0))),r=i.initReconnect(setTimeout.bind(l,revalidateAllKeys.bind(l,n,1)));s=()=>{t&&t(),r&&r(),o.delete(e)}}};return initProvider(),[e,r,initProvider,s,unload]}let i=o.get(e);return[e,i[4],l,l,i[7]]},[D,C,,,k]=initCache(new Map),_=mergeObjects({onLoadingSlow:noop,onSuccess:noop,onError:noop,onErrorRetry:(e,t,i,n,r)=>{let s=i.errorRetryCount,a=r.retryCount,o=~~((Math.random()+.5)*(1<<(a<8?a:8)))*i.errorRetryInterval;(isUndefined(s)||!(a>s))&&setTimeout(n,o,r)},onDiscarded:noop,revalidateOnFocus:!0,revalidateOnReconnect:!0,revalidateIfStale:!0,shouldRetryOnError:!0,errorRetryInterval:E?1e4:5e3,focusThrottleInterval:5e3,dedupingInterval:2e3,loadingTimeout:E?5e3:3e3,compare:function dequal(e,t){var i,n;if(e===t)return!0;if(e&&t&&(i=e.constructor)===t.constructor){if(i===Date)return e.getTime()===t.getTime();if(i===RegExp)return e.toString()===t.toString();if(i===Array){if((n=e.length)===t.length)for(;n--&&dequal(e[n],t[n]););return -1===n}if(!i||"object"==typeof e){for(i in n=0,e)if(a.call(e,i)&&++n&&!a.call(t,i)||!(i in t)||!dequal(e[i],t[i]))return!1;return Object.keys(t).length===n}}return e!=e&&t!=t},isPaused:()=>!1,cache:D,mutate:C,unload:k,fallback:{}},{isOnline:()=>g,isVisible:()=>{let e=p&&document.visibilityState;
34return isUndefined(e)||"hidden"!==e}}),mergeConfigs=(e,t)=>{let i=mergeObjects(e,t);if(t){let{use:n,fallback:r,cacheData:s}=e,{use:a,fallback:o,cacheData:l}=t;n&&a&&(i.use=n.concat(a)),r&&o&&(i.fallback=mergeObjects(r,o)),s&&l&&(i.cacheData=mergeObjects(s,l))}return i},O=(0,r.createContext)({}),R=f&&window.__SWR_DEVTOOLS_USE__,F=R?window.__SWR_DEVTOOLS_USE__:[],normalize=e=>isFunction(e[1])?[e[0],e[1],e[2]||{}]:[e[0],null,(null===e[1]?e[2]:e[1])||{}],useSWRConfig=()=>{let e=(0,r.useContext)(O),t=(0,r.useMemo)(()=>mergeObjects(_,e),[e]);return t},M=F.concat(e=>(t,i,n)=>{let r=i&&((...e)=>{let[n]=config_context_ext53wcz_serialize(t),[,,,r]=o.get(D);if(n.startsWith("$inf$"))return i(...e);let s=r[n];return isUndefined(s)?i(...e):(delete r[n],s)});return e(t,r,n)}),subscribeCallback=(e,t,i)=>{let n=t[e]||(t[e]=[]);return n.push(i),()=>{let e=n.indexOf(i);e>=0&&(n[e]=n[n.length-1],n.pop())}};R&&(window.__SWR_DEVTOOLS_REACT__=r);let j=r.use||(e=>{switch(e.status){case"pending":throw e;case"fulfilled":return e.value;case"rejected":throw e.reason;default:throw e.status="pending",e.then(t=>{e.status="fulfilled",e.value=t},t=>{e.status="rejected",e.reason=t}),e}}),L={dedupe:!0},isCacheDataConsumed=(e,t,i)=>{var n;return!!t&&(null==(n=e.get(t))?void 0:n.has(i))===!0},markCacheDataConsumed=(e,t,i)=>{if(!t)return;let n=e.get(t);n||(n=new Set,e.set(t,n)),n.add(i)},commitCacheData=({value:e,getCacheData:t,canCommit:i,setCache:n})=>{let commit=e=>{i()&&isUndefined(t())&&n(e)};Promise.resolve(e).then(e=>{commit({data:e,error:l})},e=>{commit({error:e})})},N=Promise.resolve(l);N.status="fulfilled",N.value=l;let sub=()=>noop,I=u.defineProperty(e=>{let{value:t}=e,i=(0,r.useContext)(O),n=isFunction(t),s=(0,r.useMemo)(()=>n?t(i):t,[n,i,t]),a=(0,r.useMemo)(()=>n?s:mergeConfigs(i,s),[n,i,s]),o=s&&s.provider,u=(0,r.useRef)(l);o&&!u.current&&(u.current=initCache(o(a.cache||D),s));let c=u.current;return c&&(a.cache=c[0],a.mutate=c[1],a.unload=c[4]),S(()=>{if(c)return c[2]&&c[2](),c[3]},[]),(0,r.createElement)(O.Provider,mergeObjects(e,{value:a}))},"defaultValue",{value:_}),B=(n=(e,t,i)=>{let{cache:n,compare:a,suspense:u,fallbackData:c,revalidateOnMount:d,revalidateIfStale:h,refreshInterval:f,refreshWhenHidden:p,refreshWhenOffline:m,keepPreviousData:g,strictServerPrefetchWarning:y}=i,[v,x,w,E]=o.get(n),[A,P]=config_context_ext53wcz_serialize(e),V=(0,r.useRef)(!1),D=(0,r.useRef)(!1),C=(0,r.useRef)(A),k=(0,r.useRef)(t),_=(0,r.useRef)(i),getConfig=()=>_.current,isActive=()=>getConfig().isVisible()&&getConfig().isOnline(),[O,R,F,M]=createCacheHelper(n,A),I=(0,r.useRef)({}).current,B=isUndefined(c)?isUndefined(i.fallback)?l:i.fallback[A]:c,U=i.cacheData,W=A?null==U?void 0:U[A]:l,$=A?E[A]:l,q=isUndefined($)&&!isUndefined(W),z=q?W:$,isEqual=(e,t)=>{for(let i in I)if("data"===i){if(!a(e[i],t[i])&&(!isUndefined(e[i])||!a(en,t[i])))return!1}else if(t[i]!==e[i])return!1;return!0},K=!V.current,H=(0,r.useMemo)(()=>{let e=O(),i=M(),getSelectedCache=e=>{let i=mergeObjects(e);delete i._k;let n=(()=>{if(!A||!t||getConfig().isPaused())return!1;if(K&&!isUndefined(d))return d;let e=isUndefined(B)?i.data:B;return!(u&&q&&isUndefined(e))&&(isUndefined(e)||h)})();return n?{isValidating:!0,isLoading:!0,...i}:i},n=getSelectedCache(e),r=e===i?n:getSelectedCache(i),s=n;return[()=>{let e=getSelectedCache(O()),t=isEqual(e,s);return t?(s.data=e.data,s.isLoading=e.isLoading,s.isValidating=e.isValidating,s.error=e.error,s):(s=e,e)},()=>r]},[n,A]),X=(0,s.useSyncExternalStore)((0,r.useCallback)(e=>F(A,(t,i)=>{isEqual(i,t)||e()}),[n,A]),H[0],H[1]),G=v[A]&&v[A].length>0,Y=X.data,Z=isUndefined(Y)?B&&isPromiseLike(B)?j(B):B:Y,J=X.error,Q=(0,r.useRef)(Z),ee=(0,r.useRef)(l),et=ee.current;et||(et=new WeakMap,ee.current=et);let ei=(0,r.useRef)(null),en=g?isUndefined(Y)?isUndefined(Q.current)?Z:Q.current:Y:Z,er=A&&isUndefined(Z),es=(0,r.useRef)(null);T||(0,s.useSyncExternalStore)(sub,()=>(es.current=!1,es),()=>(es.current=!0,es));let ea=es.current;y&&ea&&!u&&er&&console.warn(`Missing pre-initiated data for serialized key "${A}" during server-side rendering. Data fetching should be initiated on the server and provided to SWR via fallback data. You can set "strictServerPrefetchWarning: false" to disable this warning.`);let eo=!(!A||!t||getConfig().isPaused())&&(!G||!!isUndefined(J))&&(K&&!isUndefined(d)?d:(!u||!q||!er)&&(u?!isUndefined(Z)&&h:isUndefined(Z)||h)),el=K&&eo,eu=isUndefined(X.isValidating)?el:X.isValidating,ec=isUndefined(X.isLoading)?el:X.isLoading,ed=(0,r.useCallback)(async e=>{let t,n;let r=k.current;if(!A||!r||D.current||getConfig().isPaused())return!1;let s=!0,o=e||{},u=!w[A]||!o.dedupe,c=q&&!isCacheDataConsumed(et,U,A)&&!isUndefined(z)&&isUndefined(O().data),callbackSafeguard=()=>b?!D.current&&A===C.current&&V.current:A===C.current,d={isValidating:!1,isLoading:!1},finishRequestAndUpdateState=()=>{R(d)},cleanupState=()=>{let e=w[A];e&&e[1]===n&&delete w[A]},h={isValidating:!0};isUndefined(O().data)&&(h.isLoading=!0);try{if(u&&(R(h),i.loadingTimeout&&isUndefined(O().data)&&setTimeout(()=>{s&&callbackSafeguard()&&getConfig().onLoadingSlow(A,i)},i.loadingTimeout),c&&markCacheDataConsumed(et,U,A),w[A]=[c?z:r(P),getTimestamp()],c&&E[A]&&delete E[A]),[t,n]=w[A],t=await t,u&&setTimeout(cleanupState,i.dedupingInterval),!w[A]||w[A][1]!==n)return u&&callbackSafeguard()&&getConfig().onDiscarded(A),!1;d.error=l;let e=x[A];if(!isUndefined(e)&&(n<=e[0]||n<=e[1]||0===e[1]))return finishRequestAndUpdateState(),u&&callbackSafeguard()&&getConfig().onDiscarded(A),!1;let o=O().data;d.data=a(o,t)?o:t,u&&callbackSafeguard()&&getConfig().onSuccess(t,A,i)}catch(i){cleanupState();let e=getConfig(),{shouldRetryOnError:t}=e;!e.isPaused()&&(d.error=i,u&&callbackSafeguard()&&(e.onError(i,A,e),(!0===t||isFunction(t)&&t(i))&&(!getConfig().revalidateOnFocus||!getConfig().revalidateOnReconnect||isActive())&&e.onErrorRetry(i,A,e,e=>{let t=v[A];t&&t[0]&&t[0](3,e)},{retryCount:(o.retryCount||0)+1,dedupe:!0})))}return s=!1,finishRequestAndUpdateState(),!0},[A,n]),eh=(0,r.useCallback)((...e)=>internalMutate(n,C.current,...e),[]);if(S(()=>{let e=ei.current;e&&(ei.current=null,markCacheDataConsumed(et,e.cacheData,e.key),isUndefined(O().data)&&R({data:e.data,error:l,_k:e._k}),E[e.key]&&delete E[e.key])}),S(()=>{k.current=t,_.current=i,isUndefined(Y)||(Q.current=Y)}),S(()=>
34{if(t||!q||isUndefined(z)||isCacheDataConsumed(et,U,A)||!isUndefined(O().data))return;markCacheDataConsumed(et,U,A);let e=x[A];commitCacheData({value:z,getCacheData:()=>O().data,canCommit:()=>!D.current&&A===C.current&&x[A]===e,setCache:e=>R({...e,_k:P})})}),S(()=>{if(!A)return;let e=ed.bind(l,L),t=0;if(getConfig().revalidateOnFocus){let e=Date.now();t=e+getConfig().focusThrottleInterval}let i=subscribeCallback(A,v,(i,n={})=>{if(0==i){let i=Date.now();getConfig().revalidateOnFocus&&i>t&&isActive()&&(t=i+getConfig().focusThrottleInterval,e())}else if(1==i)getConfig().revalidateOnReconnect&&isActive()&&e();else if(2==i)return ed();else if(3==i)return ed(n);else if(4==i&&(Q.current=l,n.revalidate))return ed()});return D.current=!1,C.current=A,V.current=!0,R({_k:P}),eo&&!w[A]&&(isUndefined(Z)||T?e():rAF(e)),()=>{D.current=!0,i()}},[A]),S(()=>{let e;function next(){let t=isFunction(f)?f(O().data):f;t&&-1!==e&&(e=setTimeout(execute,t))}function execute(){!O().error&&(p||getConfig().isVisible())&&(m||getConfig().isOnline())?ed(L).then(next):next()}return next(),()=>{e&&(clearTimeout(e),e=-1)}},[f,p,m,A]),(0,r.useDebugValue)(en),u){if(!b&&T&&er&&isUndefined(z))throw Error("Fallback data is required when using Suspense in SSR.");er&&(k.current=t,_.current=i,D.current=!1);let e=!isUndefined(z)&&er,n=l;if(e&&q)Z=n=z&&isPromiseLike(z)?j(z):z,en=n,T||(ei.current={data:n,_k:P,key:A,cacheData:U});else{let t=e?eh(z):N;j(t)}if(!isUndefined(J)&&er)throw J;let r=er&&isUndefined(n)?ed(L):N;!isUndefined(en)&&er&&(r.status="fulfilled",r.value=!0),j(r)}return{mutate:eh,get data(){return I.data=!0,en},get error(){return I.error=!0,J},get isValidating(){return I.isValidating=!0,eu},get isLoading(){return I.isLoading=!0,ec}}},function(...e){let t=useSWRConfig(),[i,r,s]=normalize(e),a=mergeConfigs(t,s),o=n,{use:l}=a,u=(l||[]).concat(M);for(let e=u.length;e--;)o=u[e](o);return o(i,r||a.fetcher||null,a)})}},function(e){var __webpack_exec__=function(t){return e(e.s=t)};e.O(0,[774,179],function(){return __webpack_exec__(6840),__webpack_exec__(59974)}),_N_E=e.O()}]);

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.