PageSourceSearch

https://www.sifive.com/_next/static/chunks/pages/_app-88d9635609a7b298.js

js sifive.com collected 2026-10-01 10:35:17 UTC 235,712 bytes, 2 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[2888],{13505:function(e,t,i){"use strict";var n,r=i(67294);function s(){return(s=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var i=arguments[t];for(var n in i)({}).hasOwnProperty.call(i,n)&&(e[n]=i[n])}return e}).apply(null,arguments)}t.Z=function(e){return r.createElement("svg",s({xmlns:"http://www.w3.org/2000/svg",width:16,height:16,fill:"none",viewBox:"0 0 16 16"},e),n||(n=r.createElement("path",{fill:"#282828",d:"m9.41 8.002 6.285-6.285A.998.998 0 1 0 14.283.305L7.998 6.59 1.713.305A.999.999 0 0 0 .3 1.717l6.286 6.285L.3 14.287A1 1 0 1 0 1.713 15.7l6.285-6.284 6.285 6.285a.996.996 0 0 0 1.412 0 1 1 0 0 0 0-1.413z"})))}},8679:function(e,t,i){"use strict";var n=i(59864),r={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},s={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},o={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},a={};function l(e){return n.isMemo(e)?o:a[e.$$typeof]||r}a[n.ForwardRef]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},a[n.Memo]=o;var u=Object.defineProperty,c=Object.getOwnPropertyNames,h=Object.getOwnPropertySymbols,d=Object.getOwnPropertyDescriptor,p=Object.getPrototypeOf,f=Object.prototype;e.exports=function e(t,i,n){if("string"!=typeof i){if(f){var r=p(i);r&&r!==f&&e(t,r,n)}var o=c(i);h&&(o=o.concat(h(i)));for(var a=l(t),m=l(i),g=0;g<o.length;++g){var y=o[g];if(!s[y]&&!(n&&n[y])&&!(m&&m[y])&&!(a&&a[y])){var v=d(i,y);try{u(t,y,v)}catch(e){}}}}return t}},532:function(e,t,i){"use strict";let n;i.d(t,{Jc:function(){return e$},$G:function(){return y}});var r=i(67294);i(71739),Object.create(null);let s={};function o(){for(var e=arguments.length,t=Array(e),i=0;i<e;i++)t[i]=arguments[i];"string"==typeof t[0]&&s[t[0]]||("string"==typeof t[0]&&(s[t[0]]=new Date),function(){if(console&&console.warn){for(var e=arguments.length,t=Array(e),i=0;i<e;i++)t[i]=arguments[i];"string"==typeof t[0]&&(t[0]=`react-i18next:: ${t[0]}`),console.warn(...t)}}(...t))}let a=(e,t)=>()=>{if(e.isInitialized)t();else{let i=()=>{setTimeout(()=>{e.off("initialized",i)},0),t()};e.on("initialized",i)}};function l(e,t,i){e.loadNamespaces(t,a(e,i))}
1function u(e,t,i,n){"string"==typeof i&&(i=[i]),i.forEach(t=>{0>e.options.ns.indexOf(t)&&e.options.ns.push(t)}),e.loadLanguages(t,a(e,n))}let c=/&(?:amp|#38|lt|#60|gt|#62|apos|#39|quot|#34|nbsp|#160|copy|#169|reg|#174|hellip|#8230|#x2F|#47);/g,h={"&amp;":"&","&#38;":"&","&lt;":"<","&#60;":"<","&gt;":">","&#62;":">","&apos;":"'","&#39;":"'","&quot;":'"',"&#34;":'"',"&nbsp;":" ","&#160;":" ","&copy;":"\xa9","&#169;":"\xa9","&reg;":"\xae","&#174;":"\xae","&hellip;":"…","&#8230;":"…","&#x2F;":"/","&#47;":"/"},d=e=>h[e],p={bindI18n:"languageChanged",bindI18nStore:"",transEmptyNodeValue:"",transSupportBasicHtmlNodes:!0,transWrapTextNodes:"",transKeepBasicHtmlNodesFor:["br","strong","i","p"],useSuspense:!0,unescape:e=>e.replace(c,d)},f=(0,r.createContext)();class m{constructor(){this.usedNamespaces={}}addUsedNamespaces(e){e.forEach(e=>{this.usedNamespaces[e]||(this.usedNamespaces[e]=!0)})}getUsedNamespaces(){return Object.keys(this.usedNamespaces)}}let g=(e,t)=>{let i=(0,r.useRef)();return(0,r.useEffect)(()=>{i.current=t?i.current:e},[e,t]),i.current};function y(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},{i18n:i}=t,{i18n:s,defaultNS:a}=(0,r.useContext)(f)||{},c=i||s||n;if(c&&!c.reportNamespaces&&(c.reportNamespaces=new m),!c){o("You will need to pass in an i18next instance by using initReactI18next");let e=(e,t)=>"string"==typeof t?t:t&&"object"==typeof t&&"string"==typeof t.defaultValue?t.defaultValue:Array.isArray(e)?e[e.length-1]:e,t=[e,{},!1];return t.t=e,t.i18n={},t.ready=!1,t}c.options.react&&void 0!==c.options.react.wait&&o("It seems you are still using the old wait option, you may migrate to the new useSuspense behaviour.");let h={...p,...c.options.react,...t},{useSuspense:d,keyPrefix:y}=h,v=e||a||c.options&&c.options.defaultNS;v="string"==typeof v?[v]:v||["translation"],c.reportNamespaces.addUsedNamespaces&&c.reportNamespaces.addUsedNamespaces(v);let b=(c.isInitialized||c.initializedStoreOnce)&&v.every(e=>(function(e,t){let i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return t.languages&&t.languages.length?void 0!==t.options.ignoreJSONStructure?t.hasLoadedNamespace(e,{lng:i.lng,precheck:(t,n)=>{if(i.bindI18n&&i.bindI18n.indexOf("languageChanging")>-1&&t.services.backendConnector.backend&&t.isLanguageChangingTo&&!n(t.
1isLanguageChangingTo,e))return!1}}):function(e,t){let i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},n=t.languages[0],r=!!t.options&&t.options.fallbackLng,s=t.languages[t.languages.length-1];if("cimode"===n.toLowerCase())return!0;let o=(e,i)=>{let n=t.services.backendConnector.state[`${e}|${i}`];return -1===n||2===n};return(!(i.bindI18n&&i.bindI18n.indexOf("languageChanging")>-1)||!t.services.backendConnector.backend||!t.isLanguageChangingTo||!!o(t.isLanguageChangingTo,e))&&!!(t.hasResourceBundle(n,e)||!t.services.backendConnector.backend||t.options.resources&&!t.options.partialBundledLanguages||o(n,e)&&(!r||o(s,e)))}(e,t,i):(o("i18n.languages were undefined or empty",t.languages),!0)})(e,c,h));function x(){return c.getFixedT(t.lng||null,"fallback"===h.nsMode?v:v[0],y)}let[w,S]=(0,r.useState)(x),P=v.join();t.lng&&(P=`${t.lng}${P}`);let k=g(P),E=(0,r.useRef)(!0);(0,r.useEffect)(()=>{let{bindI18n:e,bindI18nStore:i}=h;function n(){E.current&&S(x)}return E.current=!0,b||d||(t.lng?u(c,t.lng,v,()=>{E.current&&S(x)}):l(c,v,()=>{E.current&&S(x)})),b&&k&&k!==P&&E.current&&S(x),e&&c&&c.on(e,n),i&&c&&c.store.on(i,n),()=>{E.current=!1,e&&c&&e.split(" ").forEach(e=>c.off(e,n)),i&&c&&i.split(" ").forEach(e=>c.store.off(e,n))}},[c,P]);let C=(0,r.useRef)(!0);(0,r.useEffect)(()=>{E.current&&!C.current&&S(x),C.current=!1},[c,y]);let A=[w,c,b];if(A.t=w,A.i18n=c,A.ready=b,b||!b&&!d)return A;throw new Promise(e=>{t.lng?u(c,t.lng,v,()=>e()):l(c,v,()=>e())})}function v(e){let{i18n:t,defaultNS:i,children:n}=e,s=(0,r.useMemo)(()=>({i18n:t,defaultNS:i}),[t,i]);return(0,r.createElement)(f.Provider,{value:s},n)}var b=i(87462);function x(e){return(x="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function w(e,t,i){var n;return(n=function(e,t){if("object"!=x(e)||!e)return e;var i=e[Symbol.toPrimitive];if(void 0!==i){var n=i.call(e,t||"default");if("object"!=x(n))return n;throw TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(t,"string"),(t="symbol"==x(n)?n:n+"")in e)?Object.defineProperty(e,t,{value:i,enumerable:!0,configurable:!0,writable:!0}):e[t]=i,e}var S=i(8679),P=i.n(S);function k(e,t){(null==t||t>e.length)&&(t=e.length);for(var i=0,n=Array(t);i<t;i++)n[i]=e[i];return n}function E(e,t){if(e){if("string"==typeof e)return k(e,t);var i=({}).toString.call(e).slice(8,-1);return"Object"===i&&e.constructor&&(i=e.constructor.name),"Map"===i||"Set"===i?Array.from(e):"Arguments"===i||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(i)?k(e,t):void 0}}function C(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var i=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=i){var n,r,s,o,a=[],l=!0,u=!1;try{if(s=(i=i.call(e)).next,0===t){if(Object(i)!==i)return;l=!1}else for(;!(l=(n=s.call(i)).done)&&(a.push(n.value),a.length!==t);l=!0);}catch(e){u=!0,r=e}finally{try{if(!l&&null!=i.return&&(o=i.return(),Object(o)!==o))return}finally{if(u)throw r}}return a}}(e,t)||E(e,t)||function(){throw TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}var A=i(63366);function T(e,t){if(null==e)return{};var i,n,r=(0,A.Z)(e,t);if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(e);for(n=0;n<s.length;n++)i=s[n],-1===t.indexOf(i)&&({}).propertyIsEnumerable.call(e,i)&&(r[i]=e[i])}return r}var O={defaultNS:"common",errorStackTraceLimit:0,i18n:{defaultLocale:"en",locales:["en"]},get initImmediate(){return"undefined"!=typeof window},interpolation:{escapeValue:!1},load:"currentOnly",localeExtension:"json",localePath:"./public/locales",localeStructure:"{{lng}}/{{ns}}",react:{useSuspense:!1},reloadOnPrerender:!1,serializeConfig:!0,use:[]},j=["i18n"],R=["i18n"];function L(e,t){var i=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),i.push.apply(i,n)}return i}function M(e){for(var t=1;t<arguments.length;t++){var i=null!=arguments[t]?arguments[t]:{};
1t%2?L(Object(i),!0).forEach(function(t){w(e,t,i[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(i)):L(Object(i)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(i,t))})}return e}var _=["backend","detection"],D=function(e){if("string"!=typeof(null==e?void 0:e.lng))throw Error("config.lng was not passed into createConfig");var t,i,n,r=e.i18n,s=T(e,j),o=O.i18n,a=M(M(M(M({},T(O,R)),s),o),r),l=a.defaultNS,u=a.lng,c=a.localeExtension,h=a.localePath,d=a.nonExplicitSupportedLngs,p=a.locales.filter(function(e){return"default"!==e});if("cimode"===u)return a;if(void 0===a.fallbackLng&&(a.fallbackLng=a.defaultLocale,"default"===a.fallbackLng)){var f=C(p,1);a.fallbackLng=f[0]}var m=null==e?void 0:null===(t=e.interpolation)||void 0===t?void 0:t.prefix,g=null==e?void 0:null===(i=e.interpolation)||void 0===i?void 0:i.suffix,y=null!=m?m:"{{",v=null!=g?g:"}}";"string"!=typeof(null==e?void 0:e.localeStructure)&&(m||g)&&(a.localeStructure="".concat(y,"lng").concat(v,"/").concat(y,"ns").concat(v));var b=a.fallbackLng,w=a.localeStructure;if(d){var S=function(e,t){var i=C(t.split("-"),1)[0];return e[t]=[i],e};if("string"==typeof b)a.fallbackLng=a.locales.filter(function(e){return e.includes("-")}).reduce(S,{default:[b]});else if(Array.isArray(b))a.fallbackLng=a.locales.filter(function(e){return e.includes("-")}).reduce(S,{default:b});else if("object"===x(b))a.fallbackLng=Object.entries(a.fallbackLng).reduce(function(e,t){var i=C(t,2),n=i[0],r=i[1];return e[n]=n.includes("-")?Array.from(new Set([n.split("-")[0]].concat(function(e){if(Array.isArray(e))return k(e)}(r)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(r)||E(r)||function(){throw TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()))):r,e},b);else if("function"==typeof b)throw Error("If nonExplicitSupportedLngs is true, no functions are allowed for fallbackLng")}return(null==e?void 0:null===(n=e.use)||void 0===n?void 0:n.some(function(e){return"backend"===e.type}))||("string"==typeof h?a.backend={addPath:"".concat(h,"/").concat(w,".missing.").concat(c),loadPath:"".concat(h,"/").concat(w,".").concat(c)}:"function"!=typeof h||(a.backend={addPath:function(e,t){return h(e,t,!0)},loadPath:function(e,t){return h(e,t,!1)}})),"string"==typeof a.ns||Array.isArray(a.ns)||(a.ns=[l]),_.forEach(function(t){e[t]&&(a[t]=M(M({},a[t]),e[t]))}),a};let V=e=>"string"==typeof e,I=()=>{let e,t;let i=new Promise((i,n)=>{e=i,t=n});return i.resolve=e,i.reject=t,i},N=e=>null==e?"":""+e,$=(e,t,i)=>{e.forEach(e=>{t[e]&&(i[e]=t[e])})},F=/###/g,B=e=>e&&e.indexOf("###")>-1?e.replace(F,"."):e,U=e=>!e||V(e),H=(e,t,i)=>{let n=V(t)?t.split("."):t,r=0;for(;r<n.length-1;){if(U(e))return{};let t=B(n[r]);!e[t]&&i&&(e[t]=new i),e=Object.prototype.hasOwnProperty.call(e,t)?e[t]:{},++r}return U(e)?{}:{obj:e,k:B(n[r])}},z=(e,t,i)=>{let{obj:n,k:r}=H(e,t,Object);if(void 0!==n||1===t.length){n[r]=i;return}let s=t[t.length-1],o=t.slice(0,t.length-1),a=H(e,o,Object);for(;void 0===a.obj&&o.length;)s=`${o[o.length-1]}.${s}`,(a=H(e,o=o.slice(0,o.length-1),Object))&&a.obj&&void 0!==a.obj[`${a.k}.${s}`]&&(a.obj=void 0);a.obj[`${a.k}.${s}`]=i},W=(e,t,i,n)=>{let{obj:r,k:s}=H(e,t,Object);r[s]=r[s]||[],r[s].push(i)},K=(e,t)=>{let{obj:i,k:n}=H(e,t);if(i)return i[n]},q=(e,t,i)=>{let n=K(e,i);return void 0!==n?n:K(t,i)},G=(e,t,i)=>{for(let n in t)"__proto__"!==n&&"constructor"!==n&&(n in e?V(e[n])||e[n]instanceof String||V(t[n])||t[n]instanceof String?i&&(e[n]=t[n]):G(e[n],t[n],i):e[n]=t[n]);return e},Y=e=>e.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&");var X={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;","/":"&#x2F;"};let J=e=>V(e)?e.replace(/[&<>"'\/]/g,e=>X[e]):e;class Z{constructor(e){this.capacity=e,this.regExpMap=new Map,this.regExpQueue=[]}getRegExp(e){let t=this.regExpMap.get(e);if(void 0!==t)return t;let i=new RegExp(e);return this.regExpQueue.length===this.capacity&&this.regExpMap.delete(this.regExpQueue.shift()),this.regExpMap.set(e,i),this.regExpQueue.push(e),i}}let Q=[" ",",","?","!",";"],ee=new Z(20),et=(e,t,i)=>{t=t||"",i=i||"";let n=Q.filter(e=>0>t.indexOf(e)&&0>i.indexOf(e));if(0===n.length)return!0;let r=ee.getRegExp(`(${n.map(e=>"?"===e?"\\?":e).join("|")})`),s=!r.test(e);
1if(!s){let t=e.indexOf(i);t>0&&!r.test(e.substring(0,t))&&(s=!0)}return s},ei=function(e,t){let i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:".";if(!e)return;if(e[t])return e[t];let n=t.split(i),r=e;for(let e=0;e<n.length;){let t;if(!r||"object"!=typeof r)return;let s="";for(let o=e;o<n.length;++o)if(o!==e&&(s+=i),s+=n[o],void 0!==(t=r[s])){if(["string","number","boolean"].indexOf(typeof t)>-1&&o<n.length-1)continue;e+=o-e+1;break}r=t}return r},en=e=>e&&e.replace("_","-"),er={type:"logger",log(e){this.output("log",e)},warn(e){this.output("warn",e)},error(e){this.output("error",e)},output(e,t){console&&console[e]&&console[e].apply(console,t)}};class es{constructor(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this.init(e,t)}init(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this.prefix=t.prefix||"i18next:",this.logger=e||er,this.options=t,this.debug=t.debug}log(){for(var e=arguments.length,t=Array(e),i=0;i<e;i++)t[i]=arguments[i];return this.forward(t,"log","",!0)}warn(){for(var e=arguments.length,t=Array(e),i=0;i<e;i++)t[i]=arguments[i];return this.forward(t,"warn","",!0)}error(){for(var e=arguments.length,t=Array(e),i=0;i<e;i++)t[i]=arguments[i];return this.forward(t,"error","")}deprecate(){for(var e=arguments.length,t=Array(e),i=0;i<e;i++)t[i]=arguments[i];return this.forward(t,"warn","WARNING DEPRECATED: ",!0)}forward(e,t,i,n){return n&&!this.debug?null:(V(e[0])&&(e[0]=`${i}${this.prefix} ${e[0]}`),this.logger[t](e))}create(e){return new es(this.logger,{prefix:`${this.prefix}:${e}:`,...this.options})}clone(e){return(e=e||this.options).prefix=e.prefix||this.prefix,new es(this.logger,e)}}var eo=new es;class ea{constructor(){this.observers={}}on(e,t){return e.split(" ").forEach(e=>{this.observers[e]||(this.observers[e]=new Map);let i=this.observers[e].get(t)||0;this.observers[e].set(t,i+1)}),this}off(e,t){if(this.observers[e]){if(!t){delete this.observers[e];return}this.observers[e].delete(t)}}emit(e){for(var t=arguments.length,i=Array(t>1?t-1:0),n=1;n<t;n++)i[n-1]=arguments[n];this.observers[e]&&Array.from(this.observers[e].entries()).forEach(e=>{let[t,n]=e;for(let e=0;e<n;e++)t(...i)}),this.observers["*"]&&Array.from(this.observers["*"].entries()).forEach(t=>{let[n,r]=t;for(let t=0;t<r;t++)n.apply(n,[e,...i])})}}class el extends ea{constructor(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{ns:["translation"],defaultNS:"translation"};super(),this.data=e||{},this.options=t,void 0===this.options.keySeparator&&(this.options.keySeparator="."),void 0===this.options.ignoreJSONStructure&&(this.options.ignoreJSONStructure=!0)}addNamespaces(e){0>this.options.ns.indexOf(e)&&this.options.ns.push(e)}removeNamespaces(e){let t=this.options.ns.indexOf(e);t>-1&&this.options.ns.splice(t,1)}getResource(e,t,i){let n,r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},s=void 0!==r.keySeparator?r.keySeparator:this.options.keySeparator,o=void 0!==r.ignoreJSONStructure?r.ignoreJSONStructure:this.options.ignoreJSONStructure;e.indexOf(".")>-1?n=e.split("."):(n=[e,t],i&&(Array.isArray(i)?n.push(...i):V(i)&&s?n.push(...i.split(s)):n.push(i)));let a=K(this.data,n);return(!a&&!t&&!i&&e.indexOf(".")>-1&&(e=n[0],t=n[1],i=n.slice(2).join(".")),!a&&o&&V(i))?ei(this.data&&this.data[e]&&this.data[e][t],i,s):a}addResource(e,t,i,n){let r=arguments.length>4&&void 0!==arguments[4]?arguments[4]:{silent:!1},s=void 0!==r.keySeparator?r.keySeparator:this.options.keySeparator,o=[e,t];i&&(o=o.concat(s?i.split(s):i)),e.indexOf(".")>-1&&(o=e.split("."),n=t,t=o[1]),this.addNamespaces(t),z(this.data,o,n),r.silent||this.emit("added",e,t,i,n)}addResources(e,t,i){let n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{silent:!1};for(let n in i)(V(i[n])||Array.isArray(i[n]))&&this.addResource(e,t,n,i[n],{silent:!0});n.silent||this.emit("added",e,t,i)}addResourceBundle(e,t,i,n,r){let s=arguments.length>5&&void 0!==arguments[5]?arguments[5]:{silent:!1,skipCopy:!1},o=[e,t];e.indexOf(".")>-1&&(o=e.split("."),n=i,i=t,t=o[1]),this.addNamespaces(t);let a=K(this.data,o)||{};s.skipCopy||(i=JSON.parse(JSON.stringify(i))),n?G(a,i,r):a={...a,...i}
1,z(this.data,o,a),s.silent||this.emit("added",e,t,i)}removeResourceBundle(e,t){this.hasResourceBundle(e,t)&&delete this.data[e][t],this.removeNamespaces(t),this.emit("removed",e,t)}hasResourceBundle(e,t){return void 0!==this.getResource(e,t)}getResourceBundle(e,t){return(t||(t=this.options.defaultNS),"v1"===this.options.compatibilityAPI)?{...this.getResource(e,t)}:this.getResource(e,t)}getDataByLanguage(e){return this.data[e]}hasLanguageSomeTranslations(e){let t=this.getDataByLanguage(e);return!!(t&&Object.keys(t)||[]).find(e=>t[e]&&Object.keys(t[e]).length>0)}toJSON(){return this.data}}var eu={processors:{},addPostProcessor(e){this.processors[e.name]=e},handle(e,t,i,n,r){return e.forEach(e=>{this.processors[e]&&(t=this.processors[e].process(t,i,n,r))}),t}};let ec={};class eh extends ea{constructor(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};super(),$(["resourceStore","languageUtils","pluralResolver","interpolator","backendConnector","i18nFormat","utils"],e,this),this.options=t,void 0===this.options.keySeparator&&(this.options.keySeparator="."),this.logger=eo.create("translator")}changeLanguage(e){e&&(this.language=e)}exists(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{interpolation:{}};if(null==e)return!1;let i=this.resolve(e,t);return i&&void 0!==i.res}extractFromKey(e,t){let i=void 0!==t.nsSeparator?t.nsSeparator:this.options.nsSeparator;void 0===i&&(i=":");let n=void 0!==t.keySeparator?t.keySeparator:this.options.keySeparator,r=t.ns||this.options.defaultNS||[],s=i&&e.indexOf(i)>-1,o=!this.options.userDefinedKeySeparator&&!t.keySeparator&&!this.options.userDefinedNsSeparator&&!t.nsSeparator&&!et(e,i,n);if(s&&!o){let t=e.match(this.interpolator.nestingRegexp);if(t&&t.length>0)return{key:e,namespaces:V(r)?[r]:r};let s=e.split(i);(i!==n||i===n&&this.options.ns.indexOf(s[0])>-1)&&(r=s.shift()),e=s.join(n)}return{key:e,namespaces:V(r)?[r]:r}}translate(e,t,i){if("object"!=typeof t&&this.options.overloadTranslationOptionHandler&&(t=this.options.overloadTranslationOptionHandler(arguments)),"object"==typeof t&&(t={...t}),t||(t={}),null==e)return"";Array.isArray(e)||(e=[String(e)]);let n=void 0!==t.returnDetails?t.returnDetails:this.options.returnDetails,r=void 0!==t.keySeparator?t.keySeparator:this.options.keySeparator,{key:s,namespaces:o}=this.extractFromKey(e[e.length-1],t),a=o[o.length-1],l=t.lng||this.language,u=t.appendNamespaceToCIMode||this.options.appendNamespaceToCIMode;if(l&&"cimode"===l.toLowerCase()){if(u){let e=t.nsSeparator||this.options.nsSeparator;return n?{res:`${a}${e}${s}`,usedKey:s,exactUsedKey:s,usedLng:l,usedNS:a,usedParams:this.getUsedParamsDetails(t)}:`${a}${e}${s}`}return n?{res:s,usedKey:s,exactUsedKey:s,usedLng:l,usedNS:a,usedParams:this.getUsedParamsDetails(t)}:s}let c=this.resolve(e,t),h=c&&c.res,d=c&&c.usedKey||s,p=c&&c.exactUsedKey||s,f=Object.prototype.toString.apply(h),m=void 0!==t.joinArrays?t.joinArrays:this.options.joinArrays,g=!this.i18nFormat||this.i18nFormat.handleAsObject,y=!V(h)&&"boolean"!=typeof h&&"number"!=typeof h;if(g&&h&&y&&0>["[object Number]","[object Function]","[object RegExp]"].indexOf(f)&&!(V(m)&&Array.isArray(h))){if(!t.returnObjects&&!this.options.returnObjects){this.options.returnedObjectHandler||this.logger.warn("accessing an object - but returnObjects options is not enabled!");let e=this.options.returnedObjectHandler?this.options.returnedObjectHandler(d,h,{...t,ns:o}):`key '${s} (${this.language})' returned an object instead of string.`;return n?(c.res=e,c.usedParams=this.getUsedParamsDetails(t),c):e}if(r){let e=Array.isArray(h),i=e?[]:{},n=e?p:d;for(let e in h)if(Object.prototype.hasOwnProperty.call(h,e)){let s=`${n}${r}${e}`;i[e]=this.translate(s,{...t,joinArrays:!1,ns:o}),i[e]===s&&(i[e]=h[e])}h=i}}else if(g&&V(m)&&Array.isArray(h))(h=h.join(m))&&(h=this.extendTranslation(h,e,t,i));else{let n=!1,o=!1,u=void 0!==t.count&&!V(t.count),d=eh.hasDefaultValue(t),p=u?this.pluralResolver.getSuffix(l,t.count,t):"",f=t.ordinal&&u?this.pluralResolver.getSuffix(l,t.count,{ordinal:!1}):"",m=u&&!t.ordinal&&0===t.count&&this.pluralResolver.shouldUseIntlApi(),g=m&&t[`defaultValue${this.options.pluralSeparator}zero`]||t[`defaultValue${p}`]||t[`defaultValue${f}`]||t.defaultValue;!this.isValidLookup(h)&&d&&(n=!0,h=g),this.isValidLookup(h)||(o=!0,h=s);let y=(t.missingKeyNoValueFallbackToKey||this.options.missingKeyNoValueFallbackToKey)&&o?void 0:h,v=d&&g!==h&&this.options.updateMissing;if(o||n||v){if(this.logger.log(v?"updateKey":"missingKey",l,a,s,v?g:h),r){let e=this.resolve(s,{...t,keySeparator:!1});e&&e.res&&this.logger.warn("Seems the loaded translations were in flat JSON format instead of nested. Either set keySeparator: false on init or make sure your translations are published in nested format.")}let e=[],i=this.languageUtils.getFallbackCodes(this.options.fallbackLng,t.lng||this.language);if("fallback"===this.options.saveMissingTo&&i&&i[0])for(let t=0;t<i.length;t++)e.push(i[t]);else"all"===this.options.saveMissingTo?e=this.languageUtils.toResolveHierarchy(t.lng||this.language):e.push(t.lng||this.language);let n=(e,i,n)=>{let r=d&&n!==h?n:y;this.options.missingKeyHandler?this.options.missingKeyHandler(e,a,i,r,v,t):this.backendConnector&&this.backendConnector.saveMissing&&this.backendConnector.saveMissing(e,a,i,r,v,t),this.emit
1("missingKey",e,a,i,h)};this.options.saveMissing&&(this.options.saveMissingPlurals&&u?e.forEach(e=>{let i=this.pluralResolver.getSuffixes(e,t);m&&t[`defaultValue${this.options.pluralSeparator}zero`]&&0>i.indexOf(`${this.options.pluralSeparator}zero`)&&i.push(`${this.options.pluralSeparator}zero`),i.forEach(i=>{n([e],s+i,t[`defaultValue${i}`]||g)})}):n(e,s,g))}h=this.extendTranslation(h,e,t,c,i),o&&h===s&&this.options.appendNamespaceToMissingKey&&(h=`${a}:${s}`),(o||n)&&this.options.parseMissingKeyHandler&&(h="v1"!==this.options.compatibilityAPI?this.options.parseMissingKeyHandler(this.options.appendNamespaceToMissingKey?`${a}:${s}`:s,n?h:void 0):this.options.parseMissingKeyHandler(h))}return n?(c.res=h,c.usedParams=this.getUsedParamsDetails(t),c):h}extendTranslation(e,t,i,n,r){var s=this;if(this.i18nFormat&&this.i18nFormat.parse)e=this.i18nFormat.parse(e,{...this.options.interpolation.defaultVariables,...i},i.lng||this.language||n.usedLng,n.usedNS,n.usedKey,{resolved:n});else if(!i.skipInterpolation){let o;i.interpolation&&this.interpolator.init({...i,interpolation:{...this.options.interpolation,...i.interpolation}});let a=V(e)&&(i&&i.interpolation&&void 0!==i.interpolation.skipOnVariables?i.interpolation.skipOnVariables:this.options.interpolation.skipOnVariables);if(a){let t=e.match(this.interpolator.nestingRegexp);o=t&&t.length}let l=i.replace&&!V(i.replace)?i.replace:i;if(this.options.interpolation.defaultVariables&&(l={...this.options.interpolation.defaultVariables,...l}),e=this.interpolator.interpolate(e,l,i.lng||this.language||n.usedLng,i),a){let t=e.match(this.interpolator.nestingRegexp);o<(t&&t.length)&&(i.nest=!1)}!i.lng&&"v1"!==this.options.compatibilityAPI&&n&&n.res&&(i.lng=this.language||n.usedLng),!1!==i.nest&&(e=this.interpolator.nest(e,function(){for(var e=arguments.length,n=Array(e),o=0;o<e;o++)n[o]=arguments[o];return r&&r[0]===n[0]&&!i.context?(s.logger.warn(`It seems you are nesting recursively key: ${n[0]} in key: ${t[0]}`),null):s.translate(...n,t)},i)),i.interpolation&&this.interpolator.reset()}let o=i.postProcess||this.options.postProcess,a=V(o)?[o]:o;return null!=e&&a&&a.length&&!1!==i.applyPostProcessor&&(e=eu.handle(a,e,t,this.options&&this.options.postProcessPassResolved?{i18nResolved:{...n,usedParams:this.getUsedParamsDetails(i)},...i}:i,this)),e}resolve(e){let t,i,n,r,s,o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return V(e)&&(e=[e]),e.forEach(e=>{if(this.isValidLookup(t))return;let a=this.extractFromKey(e,o),l=a.key;i=l;let u=a.namespaces;this.options.fallbackNS&&(u=u.concat(this.options.fallbackNS));let c=void 0!==o.count&&!V(o.count),h=c&&!o.ordinal&&0===o.count&&this.pluralResolver.shouldUseIntlApi(),d=void 0!==o.context&&(V(o.context)||"number"==typeof o.context)&&""!==o.context,p=o.lngs?o.lngs:this.languageUtils.toResolveHierarchy(o.lng||this.language,o.fallbackLng);u.forEach(e=>{this.isValidLookup(t)||(s=e,!ec[`${p[0]}-${e}`]&&this.utils&&this.utils.hasLoadedNamespace&&!this.utils.hasLoadedNamespace(s)&&(ec[`${p[0]}-${e}`]=!0,this.logger.warn(`key "${i}" for languages "${p.join(", ")}" won't get resolved as namespace "${s}" was not yet loaded`,"This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!")),p.forEach(i=>{let s;if(this.isValidLookup(t))return;r=i;let a=[l];if(this.i18nFormat&&this.i18nFormat.addLookupKeys)this.i18nFormat.addLookupKeys(a,l,i,e,o);else{let e;c&&(e=this.pluralResolver.getSuffix(i,o.count,o));let t=`${this.options.pluralSeparator}zero`,n=`${this.options.pluralSeparator}ordinal${this.options.pluralSeparator}`;if(c&&(a.push(l+e),o.ordinal&&0===e.indexOf(n)&&a.push(l+e.replace(n,this.options.pluralSeparator)),h&&a.push(l+t)),d){let i=`${l}${this.options.contextSeparator}${o.context}`;a.push(i),c&&(a.push(i+e),o.ordinal&&0===e.indexOf(n)&&a.push(i+e.replace(n,this.options.pluralSeparator)),h&&a.push(i+t))}}for(;s=a.pop();)this.isValidLookup(t)||(n=s,t=this.getResource(i,e,s,o))}))})}),{res:t,usedKey:i,exactUsedKey:n,usedLng:r,usedNS:s}}isValidLookup(e){return void 0!==e&&!(!this.options.returnNull&&null===e)&&!(!this.options.returnEmptyString&&""===e)}getResource(e,t,i){let n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};return this.i18nFormat&&this.i18nFormat.getResource?this.i18nFormat.getResource(e,t,i,n):this.resourceStore.getResource(e,t,i,n)}getUsedParamsDetails(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.replace&&!V(e.replace),i=t?e.replace:e;if(t&&void 0!==e.count&&(i.count=e.count),this.options.interpolation.defaultVariables&&(i={...this.options.interpolation.defaultVariables,...i}),!t)for(let e of(i={...i},["defaultValue","ordinal","context","replace","lng","lngs","fallbackLng","ns","keySeparator","nsSeparator","returnObjects","returnDetails","joinArrays","postProcess","interpolation"]))delete i[e];return i}static hasDefaultValue(e){let t="defaultValue";for(let i in e)if(Object.prototype.hasOwnProperty.call(e,i)&&t===i.substring(0,t.length)&&void 0!==e[i])return!0;return!1}}let ed=e=>e.charAt(0).toUpperCase()+e.slice(1);class ep{constructor(e){this.options=e,this.supportedLngs=this.options.supportedLngs||!1,this.logger=eo.create("languageUtils")}getScriptPartFromCode(e){if(!(e=en(e))||0>e.indexOf("-"))return null;let t=e.split("-");return 2===t.length?null:(t.pop(),"x"===t[t.length-1].toLowerCase())?null:this.formatLanguageCode(t.join("-"))}getLanguagePartFromCode(e){if(!(e=en(e))||0>e.indexOf("-"))return e;let t=e.split("-");return this.formatLanguageCode(t[0])}formatLanguageCode(e){if(V(e)&&e.indexOf("-")>-1){if("undefined"!=typeof Intl&&void 0!==Intl.getCanonicalLocales)try{let t=Intl.getCanonicalLocales(e)[0];if(t&&this.options.lowerCaseLng&&(t=t.toLowerCase()),t)return t}catch(e){}let t=["hans","hant","latn","cyrl","cans","mong","arab"],i=e.split("-");return this.options.lowerCaseLng?i=i.map(e=>e.toLowerCase()):2===i.length?(i[0]=i[0].toLowerCase(),i[1]=i[1].toUpperCase(),t.indexOf(i[1].toLowerCase())>-1&&(i[1]=ed(i[1].toLowerCase()))):3===i.length&&(i[0]=i[0].toLowerCase(),2===i[1].length&&(i[1]=i[1].toUpperCase()),"sgn"!==i[0]&&2===i[2].length&&(i[2]=i[2].toUpperCase()),t.indexOf(i[1].toLowerCase())>-1&&(i[1]=ed(i[1].toLowerCase())),t.indexOf(i[2].toLowerCase())>-1&&(i[2]=ed(i[2].toLowerCase()))),i.join("-")}return this.options.cleanCode||this.options.lowerCaseLng?e.toLowerCase():e}isSupportedCode(e){return("languageOnly"===this.options.load||this.options.nonExplicitSupportedLngs)&&(e=this.getLanguagePartFromCode(e)),!this.supportedLngs||!this.supportedLngs.length||this.supportedLngs.indexOf(e)>-1}getBestMatchFromCodes(e){let t;
1return e?(e.forEach(e=>{if(t)return;let i=this.formatLanguageCode(e);(!this.options.supportedLngs||this.isSupportedCode(i))&&(t=i)}),!t&&this.options.supportedLngs&&e.forEach(e=>{if(t)return;let i=this.getLanguagePartFromCode(e);if(this.isSupportedCode(i))return t=i;t=this.options.supportedLngs.find(e=>{if(e===i||!(0>e.indexOf("-")&&0>i.indexOf("-"))&&(e.indexOf("-")>0&&0>i.indexOf("-")&&e.substring(0,e.indexOf("-"))===i||0===e.indexOf(i)&&i.length>1))return e})}),t||(t=this.getFallbackCodes(this.options.fallbackLng)[0]),t):null}getFallbackCodes(e,t){if(!e)return[];if("function"==typeof e&&(e=e(t)),V(e)&&(e=[e]),Array.isArray(e))return e;if(!t)return e.default||[];let i=e[t];return i||(i=e[this.getScriptPartFromCode(t)]),i||(i=e[this.formatLanguageCode(t)]),i||(i=e[this.getLanguagePartFromCode(t)]),i||(i=e.default),i||[]}toResolveHierarchy(e,t){let i=this.getFallbackCodes(t||this.options.fallbackLng||[],e),n=[],r=e=>{e&&(this.isSupportedCode(e)?n.push(e):this.logger.warn(`rejecting language code not found in supportedLngs: ${e}`))};return V(e)&&(e.indexOf("-")>-1||e.indexOf("_")>-1)?("languageOnly"!==this.options.load&&r(this.formatLanguageCode(e)),"languageOnly"!==this.options.load&&"currentOnly"!==this.options.load&&r(this.getScriptPartFromCode(e)),"currentOnly"!==this.options.load&&r(this.getLanguagePartFromCode(e))):V(e)&&r(this.formatLanguageCode(e)),i.forEach(e=>{0>n.indexOf(e)&&r(this.formatLanguageCode(e))}),n}}let ef=[{lngs:["ach","ak","am","arn","br","fil","gun","ln","mfe","mg","mi","oc","pt","pt-BR","tg","tl","ti","tr","uz","wa"],nr:[1,2],fc:1},{lngs:["af","an","ast","az","bg","bn","ca","da","de","dev","el","en","eo","es","et","eu","fi","fo","fur","fy","gl","gu","ha","hi","hu","hy","ia","it","kk","kn","ku","lb","mai","ml","mn","mr","nah","nap","nb","ne","nl","nn","no","nso","pa","pap","pms","ps","pt-PT","rm","sco","se","si","so","son","sq","sv","sw","ta","te","tk","ur","yo"],nr:[1,2],fc:2},{lngs:["ay","bo","cgg","fa","ht","id","ja","jbo","ka","km","ko","ky","lo","ms","sah","su","th","tt","ug","vi","wo","zh"],nr:[1],fc:3},{lngs:["be","bs","cnr","dz","hr","ru","sr","uk"],nr:[1,2,5],fc:4},{lngs:["ar"],nr:[0,1,2,3,11,100],fc:5},{lngs:["cs","sk"],nr:[1,2,5],fc:6},{lngs:["csb","pl"],nr:[1,2,5],fc:7},{lngs:["cy"],nr:[1,2,3,8],fc:8},{lngs:["fr"],nr:[1,2],fc:9},{lngs:["ga"],nr:[1,2,3,7,11],fc:10},{lngs:["gd"],nr:[1,2,3,20],fc:11},{lngs:["is"],nr:[1,2],fc:12},{lngs:["jv"],nr:[0,1],fc:13},{lngs:["kw"],nr:[1,2,3,4],fc:14},{lngs:["lt"],nr:[1,2,10],fc:15},{lngs:["lv"],nr:[1,2,0],fc:16},{lngs:["mk"],nr:[1,2],fc:17},{lngs:["mnk"],nr:[0,1,2],fc:18},{lngs:["mt"],nr:[1,2,11,20],fc:19},{lngs:["or"],nr:[2,1],fc:2},{lngs:["ro"],nr:[1,2,20],fc:20},{lngs:["sl"],nr:[5,1,2,3],fc:21},{lngs:["he","iw"],nr:[1,2,20,21],fc:22}],em={1:e=>Number(e>1),2:e=>Number(1!=e),3:e=>0,4:e=>Number(e%10==1&&e%100!=11?0:e%10>=2&&e%10<=4&&(e%100<10||e%100>=20)?1:2),5:e=>Number(0==e?0:1==e?1:2==e?2:e%100>=3&&e%100<=10?3:e%100>=11?4:5),6:e=>Number(1==e?0:e>=2&&e<=4?1:2),7:e=>Number(1==e?0:e%10>=2&&e%10<=4&&(e%100<10||e%100>=20)?1:2),8:e=>Number(1==e?0:2==e?1:8!=e&&11!=e?2:3),9:e=>Number(e>=2),10:e=>Number(1==e?0:2==e?1:e<7?2:e<11?3:4),11:e=>Number(1==e||11==e?0:2==e||12==e?1:e>2&&e<20?2:3),12:e=>Number(e%10!=1||e%100==11),13:e=>Number(0!==e),14:e=>Number(1==e?0:2==e?1:3==e?2:3),15:e=>Number(e%10==1&&e%100!=11?0:e%10>=2&&(e%100<10||e%100>=20)?1:2),16:e=>Number(e%10==1&&e%100!=11?0:0!==e?1:2),17:e=>Number(1==e||e%10==1&&e%100!=11?0:1),18:e=>Number(0==e?0:1==e?1:2),19:e=>Number(1==e?0:0==e||e%100>1&&e%100<11?1:e%100>10&&e%100<20?2:3),20:e=>Number(1==e?0:0==e||e%100>0&&e%100<20?1:2),21:e=>Number(e%100==1?1:e%100==2?2:e%100==3||e%100==4?3:0),22:e=>Number(1==e?0:2==e?1:(e<0||e>10)&&e%10==0?2:3)},eg=["v1","v2","v3"],ey=["v4"],ev={zero:0,one:1,two:2,few:3,many:4,other:5},eb=()=>{let e={};return ef.forEach(t=>{t.lngs.forEach(i=>{e[i]={numbers:t.nr,plurals:em[t.fc]}})}),e};class ex{constructor(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this.languageUtils=e,this.options=t,this.logger=eo.create("pluralResolver"),(!this.options.compatibilityJSON||ey.includes(this.options.compatibilityJSON))&&("undefined"==typeof Intl||!Intl.PluralRules)&&(this.options.compatibilityJSON="v3",this.logger.error("Your environment seems not to be Intl API compatible, use an Intl.PluralRules polyfill. Will fallback to the compatibilityJSON v3 format handling.")),this.rules=eb(),this.pluralRulesCache={}}addRule(e,t){this.rules[e]=t}clearCache(){this.pluralRulesCache={}}getRule(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(this.shouldUseIntlApi()){let i;let n=en("dev"===e?"en":e),r=t.ordinal?"ordinal":"cardinal",s=JSON.stringify({cleanedCode:n,t
1ype:r});if(s in this.pluralRulesCache)return this.pluralRulesCache[s];try{i=new Intl.PluralRules(n,{type:r})}catch(r){if(!e.match(/-|_/))return;let n=this.languageUtils.getLanguagePartFromCode(e);i=this.getRule(n,t)}return this.pluralRulesCache[s]=i,i}return this.rules[e]||this.rules[this.languageUtils.getLanguagePartFromCode(e)]}needsPlural(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},i=this.getRule(e,t);return this.shouldUseIntlApi()?i&&i.resolvedOptions().pluralCategories.length>1:i&&i.numbers.length>1}getPluralFormsOfKey(e,t){let i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return this.getSuffixes(e,i).map(e=>`${t}${e}`)}getSuffixes(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},i=this.getRule(e,t);return i?this.shouldUseIntlApi()?i.resolvedOptions().pluralCategories.sort((e,t)=>ev[e]-ev[t]).map(e=>`${this.options.prepend}${t.ordinal?`ordinal${this.options.prepend}`:""}${e}`):i.numbers.map(i=>this.getSuffix(e,i,t)):[]}getSuffix(e,t){let i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},n=this.getRule(e,i);return n?this.shouldUseIntlApi()?`${this.options.prepend}${i.ordinal?`ordinal${this.options.prepend}`:""}${n.select(t)}`:this.getSuffixRetroCompatible(n,t):(this.logger.warn(`no plural rule found for: ${e}`),"")}getSuffixRetroCompatible(e,t){let i=e.noAbs?e.plurals(t):e.plurals(Math.abs(t)),n=e.numbers[i];this.options.simplifyPluralSuffix&&2===e.numbers.length&&1===e.numbers[0]&&(2===n?n="plural":1===n&&(n=""));let r=()=>this.options.prepend&&n.toString()?this.options.prepend+n.toString():n.toString();return"v1"===this.options.compatibilityJSON?1===n?"":"number"==typeof n?`_plural_${n.toString()}`:r():"v2"===this.options.compatibilityJSON||this.options.simplifyPluralSuffix&&2===e.numbers.length&&1===e.numbers[0]?r():this.options.prepend&&i.toString()?this.options.prepend+i.toString():i.toString()}
1shouldUseIntlApi(){return!eg.includes(this.options.compatibilityJSON)}}let ew=function(e,t,i){let n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:".",r=!(arguments.length>4)||void 0===arguments[4]||arguments[4],s=q(e,t,i);return!s&&r&&V(i)&&void 0===(s=ei(e,i,n))&&(s=ei(t,i,n)),s},eS=e=>e.replace(/\$/g,"$$$$");class eP{constructor(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.logger=eo.create("interpolator"),this.options=e,this.format=e.interpolation&&e.interpolation.format||(e=>e),this.init(e)}init(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};e.interpolation||(e.interpolation={escapeValue:!0});let{escape:t,escapeValue:i,useRawValueToEscape:n,prefix:r,prefixEscaped:s,suffix:o,suffixEscaped:a,formatSeparator:l,unescapeSuffix:u,unescapePrefix:c,nestingPrefix:h,nestingPrefixEscaped:d,nestingSuffix:p,nestingSuffixEscaped:f,nestingOptionsSeparator:m,maxReplaces:g,alwaysFormat:y}=e.interpolation;this.escape=void 0!==t?t:J,this.escapeValue=void 0===i||i,this.useRawValueToEscape=void 0!==n&&n,this.prefix=r?Y(r):s||"{{",this.suffix=o?Y(o):a||"}}",this.formatSeparator=l||",",this.unescapePrefix=u?"":c||"-",this.unescapeSuffix=this.unescapePrefix?"":u||"",this.nestingPrefix=h?Y(h):d||Y("$t("),this.nestingSuffix=p?Y(p):f||Y(")"),this.nestingOptionsSeparator=m||",",this.maxReplaces=g||1e3,this.alwaysFormat=void 0!==y&&y,this.resetRegExp()}reset(){this.options&&this.init(this.options)}resetRegExp(){let e=(e,t)=>e&&e.source===t?(e.lastIndex=0,e):RegExp(t,"g");this.regexp=e(this.regexp,`${this.prefix}(.+?)${this.suffix}`),this.regexpUnescape=e(this.regexpUnescape,`${this.prefix}${this.unescapePrefix}(.+?)${this.unescapeSuffix}${this.suffix}`),this.nestingRegexp=e(this.nestingRegexp,`${this.nestingPrefix}(.+?)${this.nestingSuffix}`)}interpolate(e,t,i,n){let r,s,o;let a=this.options&&this.options.interpolation&&this.options.interpolation.defaultVariables||{},l=e=>{if(0>e.indexOf(this.formatSeparator)){let r=ew(t,a,e,this.options.keySeparator,this.options.ignoreJSONStructure);return this.alwaysFormat?this.format(r,void 0,i,{...n,...t,interpolationkey:e}):r}let r=e.split(this.formatSeparator),s=r.shift().trim(),o=r.join(this.formatSeparator).trim();return this.format(ew(t,a,s,this.options.keySeparator,this.options.ignoreJSONStructure),o,i,{...n,...t,interpolationkey:s})};this.resetRegExp();let u=n&&n.missingInterpolationHandler||this.options.missingInterpolationHandler,c=n&&n.interpolation&&void 0!==n.interpolation.skipOnVariables?n.interpolation.skipOnVariables:this.options.interpolation.skipOnVariables;return[{regex:this.regexpUnescape,safeValue:e=>eS(e)},{regex:this.regexp,safeValue:e=>this.escapeValue?eS(this.escape(e)):eS(e)}].forEach(t=>{for(o=0;r=t.regex.exec(e);){let i=r[1].trim();if(void 0===(s=l(i))){if("function"==typeof u){let t=u(e,r,n);s=V(t)?t:""}else if(n&&Object.prototype.hasOwnProperty.call(n,i))s="";else if(c){s=r[0];continue}else this.logger.warn(`missed to pass in variable ${i} for interpolating ${e}`),s=""}else V(s)||this.useRawValueToEscape||(s=N(s));let a=t.safeValue(s);if(e=e.replace(r[0],a),c?(t.regex.lastIndex+=s.length,t.regex.lastIndex-=r[0].length):t.regex.lastIndex=0,++o>=this.maxReplaces)break}}),e}nest(e,t){let i,n,r,s=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},o=(e,t)=>{let i=this.nestingOptionsSeparator;if(0>e.indexOf(i))return e;let n=e.split(RegExp(`${i}[ ]*{`)),s=`{${n[1]}`;e=n[0];let o=(s=this.interpolate(s,r)).match(/'/g),a=s.match(/"/g);(o&&o.length%2==0&&!a||a.length%2!=0)&&(s=s.replace(/'/g,'"'));try{r=JSON.parse(s),t&&(r={...t,...r})}catch(t){return this.logger.warn(`failed parsing options string in nesting for key ${e}`,t),`${e}${i}${s}`}return r.defaultValue&&r.defaultValue.indexOf(this.prefix)>-1&&delete r.defaultValue,e};for(;i=this.nestingRegexp.exec(e);){let a=[];(r=(r={...s}).replace&&!V(r.replace)?r.replace:r).applyPostProcessor=!1,delete r.defaultValue;let l=!1;if(-1!==i[0].indexOf(this.formatSeparator)&&!/{.*}/.test(i[1])){let e=i[1].split(this.formatSeparator).map(e=>e.trim());i[1]=e.shift(),a=e,l=!0}if((n=t(o.call(this,i[1].trim(),r),r))&&i[0]===e&&!V(n))return n;V(n)||(n=N(n)),n||(this.logger.warn(`missed to resolve ${i[1]} for nesting ${e}`),n=""),l&&(n=a.reduce((e,t)=>
1this.format(e,t,s.lng,{...s,interpolationkey:i[1].trim()}),n.trim())),e=e.replace(i[0],n),this.regexp.lastIndex=0}return e}}let ek=e=>{let t=e.toLowerCase().trim(),i={};if(e.indexOf("(")>-1){let n=e.split("(");t=n[0].toLowerCase().trim();let r=n[1].substring(0,n[1].length-1);"currency"===t&&0>r.indexOf(":")?i.currency||(i.currency=r.trim()):"relativetime"===t&&0>r.indexOf(":")?i.range||(i.range=r.trim()):r.split(";").forEach(e=>{if(e){let[t,...n]=e.split(":"),r=n.join(":").trim().replace(/^'+|'+$/g,""),s=t.trim();i[s]||(i[s]=r),"false"===r&&(i[s]=!1),"true"===r&&(i[s]=!0),isNaN(r)||(i[s]=parseInt(r,10))}})}return{formatName:t,formatOptions:i}},eE=e=>{let t={};return(i,n,r)=>{let s=r;r&&r.interpolationkey&&r.formatParams&&r.formatParams[r.interpolationkey]&&r[r.interpolationkey]&&(s={...s,[r.interpolationkey]:void 0});let o=n+JSON.stringify(s),a=t[o];return a||(a=e(en(n),r),t[o]=a),a(i)}};class eC{constructor(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.logger=eo.create("formatter"),this.options=e,this.formats={number:eE((e,t)=>{let i=new Intl.NumberFormat(e,{...t});return e=>i.format(e)}),currency:eE((e,t)=>{let i=new Intl.NumberFormat(e,{...t,style:"currency"});return e=>i.format(e)}),datetime:eE((e,t)=>{let i=new Intl.DateTimeFormat(e,{...t});return e=>i.format(e)}),relativetime:eE((e,t)=>{let i=new Intl.RelativeTimeFormat(e,{...t});return e=>i.format(e,t.range||"day")}),list:eE((e,t)=>{let i=new Intl.ListFormat(e,{...t});return e=>i.format(e)})},this.init(e)}init(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{interpolation:{}};this.formatSeparator=t.interpolation.formatSeparator||","}add(e,t){this.formats[e.toLowerCase().trim()]=t}addCached(e,t){this.formats[e.toLowerCase().trim()]=eE(t)}format(e,t,i){let n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},r=t.split(this.formatSeparator);if(r.length>1&&r[0].indexOf("(")>1&&0>r[0].indexOf(")")&&r.find(e=>e.indexOf(")")>-1)){let e=r.findIndex(e=>e.indexOf(")")>-1);r[0]=[r[0],...r.splice(1,e)].join(this.formatSeparator)}return r.reduce((e,t)=>{let{formatName:r,formatOptions:s}=ek(t);if(this.formats[r]){let t=e;try{let o=n&&n.formatParams&&n.formatParams[n.interpolationkey]||{},a=o.locale||o.lng||n.locale||n.lng||i;t=this.formats[r](e,a,{...s,...n,...o})}catch(e){this.logger.warn(e)}return t}return this.logger.warn(`there was no format function for ${r}`),e},e)}}let eA=(e,t)=>{void 0!==e.pending[t]&&(delete e.pending[t],e.pendingCount--)};class eT extends ea{constructor(e,t,i){let n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};super(),this.backend=e,this.store=t,this.services=i,this.languageUtils=i.languageUtils,this.options=n,this.logger=eo.create("backendConnector"),this.waitingReads=[],this.maxParallelReads=n.maxParallelReads||10,this.readingCalls=0,this.maxRetries=n.maxRetries>=0?n.maxRetries:5,this.retryTimeout=n.retryTimeout>=1?n.retryTimeout:350,this.state={},this.queue=[],this.backend&&this.backend.init&&this.backend.init(i,n.backend,n)}queueLoad(e,t,i,n){let r={},s={},o={},a={};return e.forEach(e=>{let n=!0;t.forEach(t=>{let o=`${e}|${t}`;!i.reload&&this.store.hasResourceBundle(e,t)?this.state[o]=2:this.state[o]<0||(1===this.state[o]?void 0===s[o]&&(s[o]=!0):(this.state[o]=1,n=!1,void 0===s[o]&&(s[o]=!0),void 0===r[o]&&(r[o]=!0),void 0===a[t]&&(a[t]=!0)))}),n||(o[e]=!0)}),(Object.keys(r).length||Object.keys(s).length)&&this.queue.push({pending:s,pendingCount:Object.keys(s).length,loaded:{},errors:[],callback:n}),{toLoad:Object.keys(r),pending:Object.keys(s),toLoadLanguages:Object.keys(o),toLoadNamespaces:Object.keys(a)}}loaded(e,t,i){let n=e.split("|"),r=n[0],s=n[1];t&&this.emit("failedLoading",r,s,t),!t&&i&&this.store.addResourceBundle(r,s,i,void 0,void 0,{skipCopy:!0}),this.state[e]=t?-1:2,t&&i&&(this.state[e]=0);let o={};this.queue.forEach(i=>{W(i.loaded,[r],s),eA(i,e),t&&i.errors.push(t),0!==i.pendingCount||i.done||(Object.keys(i.loaded).forEach(e=>{o[e]||(o[e]={});let t=i.loaded[e];t.length&&t.forEach(t=>{void 0===o[e][t]&&(o[e][t]=!0)})}),i.done=!0,i.errors.length?i.callback(i.errors):i.callback())}
1),this.emit("loaded",o),this.queue=this.queue.filter(e=>!e.done)}read(e,t,i){let n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:0,r=arguments.length>4&&void 0!==arguments[4]?arguments[4]:this.retryTimeout,s=arguments.length>5?arguments[5]:void 0;if(!e.length)return s(null,{});if(this.readingCalls>=this.maxParallelReads){this.waitingReads.push({lng:e,ns:t,fcName:i,tried:n,wait:r,callback:s});return}this.readingCalls++;let o=(o,a)=>{if(this.readingCalls--,this.waitingReads.length>0){let e=this.waitingReads.shift();this.read(e.lng,e.ns,e.fcName,e.tried,e.wait,e.callback)}if(o&&a&&n<this.maxRetries){setTimeout(()=>{this.read.call(this,e,t,i,n+1,2*r,s)},r);return}s(o,a)},a=this.backend[i].bind(this.backend);if(2===a.length){try{let i=a(e,t);i&&"function"==typeof i.then?i.then(e=>o(null,e)).catch(o):o(null,i)}catch(e){o(e)}return}return a(e,t,o)}prepareLoading(e,t){let i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},n=arguments.length>3?arguments[3]:void 0;if(!this.backend)return this.logger.warn("No backend was added via i18next.use. Will not load resources."),n&&n();V(e)&&(e=this.languageUtils.toResolveHierarchy(e)),V(t)&&(t=[t]);let r=this.queueLoad(e,t,i,n);if(!r.toLoad.length)return r.pending.length||n(),null;r.toLoad.forEach(e=>{this.loadOne(e)})}load(e,t,i){this.prepareLoading(e,t,{},i)}reload(e,t,i){this.prepareLoading(e,t,{reload:!0},i)}loadOne(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",i=e.split("|"),n=i[0],r=i[1];this.read(n,r,"read",void 0,void 0,(i,s)=>{i&&this.logger.warn(`${t}loading namespace ${r} for language ${n} failed`,i),!i&&s&&this.logger.log(`${t}loaded namespace ${r} for language ${n}`,s),this.loaded(e,i,s)})}saveMissing(e,t,i,n,r){let s=arguments.length>5&&void 0!==arguments[5]?arguments[5]:{},o=arguments.length>6&&void 0!==arguments[6]?arguments[6]:()=>{};if(this.services.utils&&this.services.utils.hasLoadedNamespace&&!this.services.utils.hasLoadedNamespace(t)){this.logger.warn(`did not save key "${i}" as the namespace "${t}" was not yet loaded`,"This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!");return}if(null!=i&&""!==i){if(this.backend&&this.backend.create){let a={...s,isUpdate:r},l=this.backend.create.bind(this.backend);if(l.length<6)try{let r;(r=5===l.length?l(e,t,i,n,a):l(e,t,i,n))&&"function"==typeof r.then?r.then(e=>o(null,e)).catch(o):o(null,r)}catch(e){o(e)}else l(e,t,i,n,o,a)}e&&e[0]&&this.store.addResource(e[0],t,i,n)}}}let eO=()=>({debug:!1,initImmediate:!0,ns:["translation"],defaultNS:["translation"],fallbackLng:["dev"],fallbackNS:!1,supportedLngs:!1,nonExplicitSupportedLngs:!1,load:"all",preload:!1,simplifyPluralSuffix:!0,keySeparator:".",nsSeparator:":",pluralSeparator:"_",contextSeparator:"_",partialBundledLanguages:!1,saveMissing:!1,updateMissing:!1,saveMissingTo:"fallback",saveMissingPlurals:!0,missingKeyHandler:!1,missingInterpolationHandler:!1,postProcess:!1,postProcessPassResolved:!1,returnNull:!1,returnEmptyString:!0,returnObjects:!1,joinArrays:!1,returnedObjectHandler:!1,parseMissingKeyHandler:!1,appendNamespaceToMissingKey:!1,appendNamespaceToCIMode:!1,overloadTranslationOptionHandler:e=>{let t={};if("object"==typeof e[1]&&(t=e[1]),V(e[1])&&(t.defaultValue=e[1]),V(e[2])&&(t.tDescription=e[2]),"object"==typeof e[2]||"object"==typeof e[3]){let i=e[3]||e[2];
1Object.keys(i).forEach(e=>{t[e]=i[e]})}return t},interpolation:{escapeValue:!0,format:e=>e,prefix:"{{",suffix:"}}",formatSeparator:",",unescapePrefix:"-",nestingPrefix:"$t(",nestingSuffix:")",nestingOptionsSeparator:",",maxReplaces:1e3,skipOnVariables:!0}}),ej=e=>(V(e.ns)&&(e.ns=[e.ns]),V(e.fallbackLng)&&(e.fallbackLng=[e.fallbackLng]),V(e.fallbackNS)&&(e.fallbackNS=[e.fallbackNS]),e.supportedLngs&&0>e.supportedLngs.indexOf("cimode")&&(e.supportedLngs=e.supportedLngs.concat(["cimode"])),e),eR=()=>{},eL=e=>{Object.getOwnPropertyNames(Object.getPrototypeOf(e)).forEach(t=>{"function"==typeof e[t]&&(e[t]=e[t].bind(e))})};class eM extends ea{constructor(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0;if(super(),this.options=ej(e),this.services={},this.logger=eo,this.modules={external:[]},eL(this),t&&!this.isInitialized&&!e.isClone){if(!this.options.initImmediate)return this.init(e,t),this;setTimeout(()=>{this.init(e,t)},0)}}init(){var e=this;let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},i=arguments.length>1?arguments[1]:void 0;this.isInitializing=!0,"function"==typeof t&&(i=t,t={}),!t.defaultNS&&!1!==t.defaultNS&&t.ns&&(V(t.ns)?t.defaultNS=t.ns:0>t.ns.indexOf("translation")&&(t.defaultNS=t.ns[0]));let n=eO();this.options={...n,...this.options,...ej(t)},"v1"!==this.options.compatibilityAPI&&(this.options.interpolation={...n.interpolation,...this.options.interpolation}),void 0!==t.keySeparator&&(this.options.userDefinedKeySeparator=t.keySeparator),void 0!==t.nsSeparator&&(this.options.userDefinedNsSeparator=t.nsSeparator);let r=e=>e?"function"==typeof e?new e:e:null;if(!this.options.isClone){let t;this.modules.logger?eo.init(r(this.modules.logger),this.options):eo.init(null,this.options),this.modules.formatter?t=this.modules.formatter:"undefined"!=typeof Intl&&(t=eC);let i=new ep(this.options);this.store=new el(this.options.resources,this.options);let s=this.services;s.logger=eo,s.resourceStore=this.store,s.languageUtils=i,s.pluralResolver=new ex(i,{prepend:this.options.pluralSeparator,compatibilityJSON:this.options.compatibilityJSON,simplifyPluralSuffix:this.options.simplifyPluralSuffix}),t&&(!this.options.interpolation.format||this.options.interpolation.format===n.interpolation.format)&&(s.formatter=r(t),s.formatter.init(s,this.options),this.options.interpolation.format=s.formatter.format.bind(s.formatter)),s.interpolator=new eP(this.options),s.utils={hasLoadedNamespace:this.hasLoadedNamespace.bind(this)},s.backendConnector=new eT(r(this.modules.backend),s.resourceStore,s,this.options),s.backendConnector.on("*",function(t){for(var i=arguments.length,n=Array(i>1?i-1:0),r=1;r<i;r++)n[r-1]=arguments[r];e.emit(t,...n)}),this.modules.languageDetector&&(s.languageDetector=r(this.modules.languageDetector),s.languageDetector.init&&s.languageDetector.init(s,this.options.detection,this.options)),this.modules.i18nFormat&&(s.i18nFormat=r(this.modules.i18nFormat),s.i18nFormat.init&&s.i18nFormat.init(this)),this.translator=new eh(this.services,this.options),this.translator.on("*",function(t){for(var i=arguments.length,n=Array(i>1?i-1:0),r=1;r<i;r++)n[r-1]=arguments[r];e.emit(t,...n)}),this.modules.external.forEach(e=>{e.init&&e.init(this)})}if(this.format=this.options.interpolation.format,i||(i=eR),this.options.fallbackLng&&!this.services.languageDetector&&!this.options.lng){let e=this.services.languageUtils.getFallbackCodes(this.options.fallbackLng);e.length>0&&"dev"!==e[0]&&(this.options.lng=e[0])}this.services.languageDetector||this.options.lng||this.logger.warn("init: no languageDetector is used and no lng is defined"),["getResource","hasResourceBundle","getResourceBundle","getDataByLanguage"].forEach(t=>{this[t]=function(){return e.store[t](...arguments)}}),["addResource","addResources","addResourceBundle","removeResourceBundle"].forEach(t=>{this[t]=function(){return e.store[t](...arguments),e}});let s=I(),o=()=>{let e=(e,t)=>{this.isInitializing=!1,this.isInitialized&&!this.initializedStoreOnce&&this.logger.warn("init: i18next is already initialized. You should call init just once!"),this.isInitialized=!0,this.options.isClone||this.logger.log("initialized",this.options),this.emit
1("initialized",this.options),s.resolve(t),i(e,t)};if(this.languages&&"v1"!==this.options.compatibilityAPI&&!this.isInitialized)return e(null,this.t.bind(this));this.changeLanguage(this.options.lng,e)};return this.options.resources||!this.options.initImmediate?o():setTimeout(o,0),s}loadResources(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:eR,i=t,n=V(e)?e:this.language;if("function"==typeof e&&(i=e),!this.options.resources||this.options.partialBundledLanguages){if(n&&"cimode"===n.toLowerCase()&&(!this.options.preload||0===this.options.preload.length))return i();let e=[],t=t=>{t&&"cimode"!==t&&this.services.languageUtils.toResolveHierarchy(t).forEach(t=>{"cimode"!==t&&0>e.indexOf(t)&&e.push(t)})};n?t(n):this.services.languageUtils.getFallbackCodes(this.options.fallbackLng).forEach(e=>t(e)),this.options.preload&&this.options.preload.forEach(e=>t(e)),this.services.backendConnector.load(e,this.options.ns,e=>{e||this.resolvedLanguage||!this.language||this.setResolvedLanguage(this.language),i(e)})}else i(null)}reloadResources(e,t,i){let n=I();return"function"==typeof e&&(i=e,e=void 0),"function"==typeof t&&(i=t,t=void 0),e||(e=this.languages),t||(t=this.options.ns),i||(i=eR),this.services.backendConnector.reload(e,t,e=>{n.resolve(),i(e)}),n}use(e){if(!e)throw Error("You are passing an undefined module! Please check the object you are passing to i18next.use()");if(!e.type)throw Error("You are passing a wrong module! Please check the object you are passing to i18next.use()");return"backend"===e.type&&(this.modules.backend=e),("logger"===e.type||e.log&&e.warn&&e.error)&&(this.modules.logger=e),"languageDetector"===e.type&&(this.modules.languageDetector=e),"i18nFormat"===e.type&&(this.modules.i18nFormat=e),"postProcessor"===e.type&&eu.addPostProcessor(e),"formatter"===e.type&&(this.modules.formatter=e),"3rdParty"===e.type&&this.modules.external.push(e),this}setResolvedLanguage(e){if(e&&this.languages&&!(["cimode","dev"].indexOf(e)>-1))for(let e=0;e<this.languages.length;e++){let t=this.languages[e];if(!(["cimode","dev"].indexOf(t)>-1)&&this.store.hasLanguageSomeTranslations(t)){this.resolvedLanguage=t;break}}}changeLanguage(e,t){var i=this;this.isLanguageChangingTo=e;let n=I();this.emit("languageChanging",e);let r=e=>{this.language=e,this.languages=this.services.languageUtils.toResolveHierarchy(e),this.resolvedLanguage=void 0,this.setResolvedLanguage(e)},s=(e,s)=>{s?(r(s),this.translator.changeLanguage(s),this.isLanguageChangingTo=void 0,this.emit("languageChanged",s),this.logger.log("languageChanged",s)):this.isLanguageChangingTo=void 0,n.resolve(function(){return i.t(...arguments)}),t&&t(e,function(){return i.t(...arguments)})},o=t=>{e||t||!this.services.languageDetector||(t=[]);let i=V(t)?t:this.services.languageUtils.getBestMatchFromCodes(t);i&&(this.language||r(i),this.translator.language||this.translator.changeLanguage(i),this.services.languageDetector&&this.services.languageDetector.cacheUserLanguage&&this.services.languageDetector.cacheUserLanguage(i)),this.loadResources(i,e=>{s(e,i)})};return e||!this.services.languageDetector||this.services.languageDetector.async?!e&&this.services.languageDetector&&this.services.languageDetector.async?0===this.services.languageDetector.detect.length?this.services.languageDetector.detect().then(o):this.services.languageDetector.detect(o):o(e):o(this.services.languageDetector.detect()),n}getFixedT(e,t,i){var n=this;let r=function(e,t){let s,o;if("object"!=typeof t){for(var a=arguments.length,l=Array(a>2?a-2:0),u=2;u<a;u++)l[u-2]=arguments[u];s=n.options.overloadTranslationOptionHandler([e,t].concat(l))}else s={...t};s.lng=s.lng||r.lng,s.lngs=s.lngs||r.lngs,s.ns=s.ns||r.ns,""!==s.keyPrefix&&(s.keyPrefix=s.keyPrefix||i||r.keyPrefix);let c=n.options.keySeparator||".";return o=s.keyPrefix&&Array.isArray(e)?e.map(e=>`${s.keyPrefix}${c}${e}`):s.keyPrefix?`${s.keyPrefix}${c}${e}`:e,n.t(o,s)};return V(e)?r.lng=e:r.lngs=e,r.ns=t,r.keyPrefix=i,r}t(){return this.translator&&this.translator.translate(...arguments)}exists(){return this.translator&&this.translator.exists(...arguments)}setDefaultNamespace(e){this.options.defaultNS=e}hasLoadedNamespace(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(!this.isInitialized)return this.logger.warn("hasLoadedNamespace: i18next was not initialized",this.languages),!1;
1if(!this.languages||!this.languages.length)return this.logger.warn("hasLoadedNamespace: i18n.languages were undefined or empty",this.languages),!1;let i=t.lng||this.resolvedLanguage||this.languages[0],n=!!this.options&&this.options.fallbackLng,r=this.languages[this.languages.length-1];if("cimode"===i.toLowerCase())return!0;let s=(e,t)=>{let i=this.services.backendConnector.state[`${e}|${t}`];return -1===i||0===i||2===i};if(t.precheck){let e=t.precheck(this,s);if(void 0!==e)return e}return!!(this.hasResourceBundle(i,e)||!this.services.backendConnector.backend||this.options.resources&&!this.options.partialBundledLanguages||s(i,e)&&(!n||s(r,e)))}loadNamespaces(e,t){let i=I();return this.options.ns?(V(e)&&(e=[e]),e.forEach(e=>{0>this.options.ns.indexOf(e)&&this.options.ns.push(e)}),this.loadResources(e=>{i.resolve(),t&&t(e)}),i):(t&&t(),Promise.resolve())}loadLanguages(e,t){let i=I();V(e)&&(e=[e]);let n=this.options.preload||[],r=e.filter(e=>0>n.indexOf(e)&&this.services.languageUtils.isSupportedCode(e));return r.length?(this.options.preload=n.concat(r),this.loadResources(e=>{i.resolve(),t&&t(e)}),i):(t&&t(),Promise.resolve())}dir(e){return(e||(e=this.resolvedLanguage||(this.languages&&this.languages.length>0?this.languages[0]:this.language)),e)?["ar","shu","sqr","ssh","xaa","yhd","yud","aao","abh","abv","acm","acq","acw","acx","acy","adf","ads","aeb","aec","afb","ajp","apc","apd","arb","arq","ars","ary","arz","auz","avl","ayh","ayl","ayn","ayp","bbz","pga","he","iw","ps","pbt","pbu","pst","prp","prd","ug","ur","ydd","yds","yih","ji","yi","hbo","men","xmn","fa","jpr","peo","pes","prs","dv","sam","ckb"].indexOf((this.services&&this.services.languageUtils||new ep(eO())).getLanguagePartFromCode(e))>-1||e.toLowerCase().indexOf("-arab")>1?"rtl":"ltr":"rtl"}static createInstance(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0;return new eM(e,t)}cloneInstance(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:eR,i=e.forkResourceStore;i&&delete e.forkResourceStore;let n={...this.options,...e,isClone:!0},r=new eM(n);return(void 0!==e.debug||void 0!==e.prefix)&&(r.logger=r.logger.clone(e)),["store","services","language"].forEach(e=>{r[e]=this[e]}),r.services={...this.services},r.services.utils={hasLoadedNamespace:r.hasLoadedNamespace.bind(r)},i&&(r.store=new el(this.store.data,n),r.services.resourceStore=r.store),r.translator=new eh(r.services,n),r.translator.on("*",function(e){for(var t=arguments.length,i=Array(t>1?t-1:0),n=1;n<t;n++)i[n-1]=arguments[n];r.emit(e,...i)}),r.init(n,t),r.translator.options=n,r.translator.backendConnector.services.utils={hasLoadedNamespace:r.hasLoadedNamespace.bind(r)},r}toJSON(){return{options:this.options,store:this.store,language:this.language,languages:this.languages,resolvedLanguage:this.resolvedLanguage}}}let e_=eM.createInstance();e_.createInstance=eM.createInstance,e_.createInstance,e_.dir,e_.init,e_.loadResources,e_.reloadResources,e_.use,e_.changeLanguage,e_.getFixedT,e_.t,e_.exists,e_.setDefaultNamespace,e_.hasLoadedNamespace,e_.loadNamespaces,e_.loadLanguages;var eD=function(e){void 0===e.ns&&(e.ns=[]);var t,i,n=e_.createInstance(e);return n.isInitialized?t=Promise.resolve(e_.t):(null==e||null===(i=e.use)||void 0===i||i.forEach(function(e){return n.use(e)}),"function"==typeof e.onPreInitI18next&&e.onPreInitI18next(n),t=n.init(e)),{i18n:n,initPromise:t}},eV=r.createElement;function eI(e,t){var i=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),i.push.apply(i,n)}return i}function eN(e){for(var t=1;t<arguments.length;t++){var i=null!=arguments[t]?arguments[t]:{};t%2?eI(Object(i),!0).forEach(function(t){w(e,t,i[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(i)):eI(Object(i)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(i,t))})}return e}var e$=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;return P()(function(i){var n,s,o=(i.pageProps||{})._nextI18Next,a=null!==(n=null==o?void 0:o.initialLocale)&&void 0!==n?n:null==i?void 0:null===(s=i.router)||void 0===s?void 0:s.locale,l=null==o?void 0:o.ns,u=(0,r.useMemo)(function(){if(!o&&!t)return null;var e,i=null!=t?t:null==o?void 0:o.userConfig;if(!i)throw Error("appWithTranslation was called without a next-i18next config");if(!(null!=i&&i.i18n))throw Error("appWithTranslation was called without config.i18n");if(!(null!=i&&null!==(e=i.i18n)&&void 0!==e&&e.defaultLocale))throw Error("config.i18n does not include a defaultLocale property");var n=(o||{}).initialI18nStore,r=null!=t&&t.resources?t.resources:n;return a||(a=i.i18n.defaultLocale),eD(eN(eN({},D(eN(eN({},i),{},{lng:a}))),{},{lng:a,ns:l,resources:r})).i18n},[o,a,t,l]);return null!==u?eV(v,{i18n:u},eV(e,i)):eV(e,(0,b.Z)({key:a},i))},e)}},91118:function(e,t,i){(window.__NEXT_P=window.__NEXT_P||[]).push(["/_app",function(){return i(73659)}])},35317:function(e,t,i){"use strict";i.d(t,{K:function(){return m}});var n,r,s=i(85893),o=i(93128),a=i.n(o),l=i(67294);function u(){return(u=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var i=arguments[t];for(var n in i)({}).hasOwnProperty.call(i,n)&&(e[n]=i[n])}return e}).apply(null,arguments)}var c=function(e){return l.createElement("svg",u({xmlns:"http://www.w3.org/2000/svg",width:24,height:24,fill:"#5f6368",viewBox:"0 -960 960 960"},e),n||(n=l.createElement("path",{d:"M224.62-160q-27.62 0-46.12-18.5T160-224.62v-510.76q0-27.62 18.5-46.12t46.12-18.5h224.61v40H224.62q-9.24 0-16.93 7.69T200-735.38v510.76q0 9.24 7.69 16.93t16.93 7.69h510.76q9.24 0 16.93-7.69t7.69-16.93v-224.61h40v224.61q0 27.62-18.5 46.12T735.38-160zm164.92-201.23-28.31-28.31L731.69-760H560v-40h240v240h-40v-171.69z"})))};
1function h(){return(h=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var i=arguments[t];for(var n in i)({}).hasOwnProperty.call(i,n)&&(e[n]=i[n])}return e}).apply(null,arguments)}var d=function(e){return l.createElement("svg",h({xmlns:"http://www.w3.org/2000/svg",width:1772,height:2500,viewBox:"0.6 0 680.6 959.3"},e),r||(r=l.createElement("path",{fill:"#0caa41",d:"M545.2 259.5c0-2.7 2.2-5 4.9-5h126.3c2.7 0 4.8 2.4 4.8 5.1v562.8c0 75.5-60.8 136.9-136 136.9H136.8C61.5 959.3.6 898.1.6 822.4h544.6zM136.8 0C61.5 0 .6 61.4.6 137.1v562.8c0 2.7 2.3 5 5 5h126.2c2.7 0 5-2.3 5-5V137.1h544.4C681.2 61.4 620.4 0 545.2 0z"})))},p=i(41664),f=i.n(p);let m=e=>{let{href:t="#",children:i,size:n="normal",type:r="outlined",target:o="_self",...l}=e;return"#"==t?(0,s.jsx)("a",{className:"".concat(a().primary," ").concat("large"==n?a().large:""," ").concat("filled"==r?a().filled:"orange"==r?a().orange:"blue"==r?a().blue:"white"==r?a().white:"dark-orange"==r?a().darkOrange:"glassdoor"==r?a().glassdoor:""," ").concat("_blank"==o?a().arrow:""),target:o,title:i,...l,children:(0,s.jsxs)("span",{children:[(0,s.jsx)("span",{children:"glassdoor"==r?(0,s.jsx)("span",{children:(0,s.jsx)(d,{})}):""}),(0,s.jsx)("span",{children:i}),(0,s.jsx)("span",{children:"_blank"==o&&"glassdoor"!==r&&(0,s.jsx)(c,{})})]})}):(0,s.jsx)(f(),{className:"".concat(a().primary," ").concat("large"==n?a().large:""," ").concat("filled"==r?a().filled:"orange"==r?a().orange:"blue"==r?a().blue:"white"==r?a().white:"dark-orange"==r?a().darkOrange:"glassdoor"==r?a().glassdoor:""," ").concat("_blank"==o?a().arrow:""," "),href:t,target:o,title:i,...l,children:(0,s.jsxs)("span",{children:["glassdoor"==r?(0,s.jsx)("span",{children:(0,s.jsx)(d,{})}):"",(0,s.jsx)("span",{children:i}),(0,s.jsx)("span",{children:"_blank"==o&&"glassdoor"!==r&&(0,s.jsx)(c,{})})]})})}},83525:function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"actionAsyncStorage",{enumerable:!0,get:function(){return n}});let n=(0,i(14001).createAsyncLocalStorage)();("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)},76361:function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"actionAsyncStorage",{enumerable:!0,get:function(){return n.actionAsyncStorage}});let n=i(83525);("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)},14001:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"createAsyncLocalStorage",{enumerable:!0,get:function(){return s}});let i=Error("Invariant: AsyncLocalStorage accessed in runtime where it is not available");class n{disable(){throw i}getStore(){}run(){throw i}exit(){throw i}enterWith(){throw i}}let r=globalThis.AsyncLocalStorage;function s(){return r?new r:new n}("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)},4818:function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"DraftMode",{enumerable:!0,get:function(){return s}});let n=i(18119),r=i(47325);class s{get isEnabled(){return this._provider.isEnabled}enable(){let e=n.staticGenerationAsyncStorage.getStore();return e&&(0,r.trackDynamicDataAccessed)(e,"draftMode().enable()"),this._provider.enable()}disable(){let e=n.staticGenerationAsyncStorage.getStore();return e&&(0,r.trackDynamicDataAccessed)(e,"draftMode().disable()"),this._provider.disable()}constructor(e){this._provider=e}}("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)},36849:function(e,t,i){"use strict";
1Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var i in t)Object.defineProperty(e,i,{enumerable:!0,get:t[i]})}(t,{cookies:function(){return d},draftMode:function(){return p},headers:function(){return h}});let n=i(9407),r=i(34042),s=i(80255),o=i(76361),a=i(4818),l=i(47325),u=i(18119),c=i(82595);function h(){let e="headers",t=u.staticGenerationAsyncStorage.getStore();if(t){if(t.forceStatic)return r.HeadersAdapter.seal(new Headers({}));(0,l.trackDynamicDataAccessed)(t,e)}return(0,c.getExpectedRequestStore)(e).headers}function d(){let e="cookies",t=u.staticGenerationAsyncStorage.getStore();if(t){if(t.forceStatic)return n.RequestCookiesAdapter.seal(new s.RequestCookies(new Headers({})));(0,l.trackDynamicDataAccessed)(t,e)}let i=(0,c.getExpectedRequestStore)(e),r=o.actionAsyncStorage.getStore();return(null==r?void 0:r.isAction)||(null==r?void 0:r.isAppRoute)?i.mutableCookies:i.cookies}function p(){let e=(0,c.getExpectedRequestStore)("draftMode");return new a.DraftMode(e.draftMode)}("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)},1539:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var i in t)Object.defineProperty(e,i,{enumerable:!0,get:t[i]})}(t,{DynamicServerError:function(){return n},isDynamicServerError:function(){return r}});let i="DYNAMIC_SERVER_USAGE";class n extends Error{constructor(e){super("Dynamic server usage: "+e),this.description=e,this.digest=i}}function r(e){return"object"==typeof e&&null!==e&&"digest"in e&&"string"==typeof e.digest&&e.digest===i}("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)},8199:function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var i in t)Object.defineProperty(e,i,{enumerable:!0,get:t[i]})}(t,{ReadonlyURLSearchParams:function(){return l.ReadonlyURLSearchParams},RedirectType:function(){return l.RedirectType},ServerInsertedHTMLContext:function(){return u.ServerInsertedHTMLContext},notFound:function(){return l.notFound},permanentRedirect:function(){return l.permanentRedirect},redirect:function(){return l.redirect},useParams:function(){return p},usePathname:function(){return h},useRouter:function(){return d},useSearchParams:function(){return c},useSelectedLayoutSegment:function(){return m},useSelectedLayoutSegments:function(){return f},useServerInsertedHTML:function(){return u.useServerInsertedHTML}});let n=i(67294),r=i(60257),s=i(22608),o=i(11288),a=i(66406),l=i(72717),u=i(65988);function c(){let e=(0,n.useContext)(s.SearchParamsContext);return(0,n.useMemo)(()=>e?new l.ReadonlyURLSearchParams(e):null,[e])}function h(){return(0,n.useContext)(s.PathnameContext)}function d(){let e=(0,n.useContext)(r.AppRouterContext);if(null===e)throw Error("invariant expected app router to be mounted");return e}function p(){return(0,n.useContext)(s.PathParamsContext)}function f(e){void 0===e&&(e="children");let t=(0,n.useContext)(r.LayoutRouterContext);return t?function e(t,i,n,r){let s;if(void 0===n&&(n=!0),void 0===r&&(r=[]),n)s=t[1][i];else{var l;let e=t[1];s=null!=(l=e.children)?l:Object.values(e)[0]}if(!s)return r;let u=s[0],c=(0,o.getSegmentValue)(u);return!c||c.startsWith(a.PAGE_SEGMENT_KEY)?r:(r.push(c),e(s,i,!1,r))}(t.tree,e):null}function m(e){void 0===e&&(e="children");let t=f(e);
1if(!t||0===t.length)return null;let i="children"===e?t[0]:t[t.length-1];return i===a.DEFAULT_SEGMENT_KEY?null:i}("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)},72717:function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var i in t)Object.defineProperty(e,i,{enumerable:!0,get:t[i]})}(t,{ReadonlyURLSearchParams:function(){return o},RedirectType:function(){return n.RedirectType},notFound:function(){return r.notFound},permanentRedirect:function(){return n.permanentRedirect},redirect:function(){return n.redirect}});let n=i(7511),r=i(73394);class s extends Error{constructor(){super("Method unavailable on `ReadonlyURLSearchParams`. Read more: https://nextjs.org/docs/app/api-reference/functions/use-search-params#updating-searchparams")}}class o extends URLSearchParams{append(){throw new s}delete(){throw new s}set(){throw new s}sort(){throw new s}}("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)},73394:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var i in t)Object.defineProperty(e,i,{enumerable:!0,get:t[i]})}(t,{isNotFoundError:function(){return r},notFound:function(){return n}});let i="NEXT_NOT_FOUND";function n(){let e=Error(i);throw e.digest=i,e}function r(e){return"object"==typeof e&&null!==e&&"digest"in e&&e.digest===i}("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)},44234:function(e,t){"use strict";var i,n;Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"RedirectStatusCode",{enumerable:!0,get:function(){return i}}),(n=i||(i={}))[n.SeeOther=303]="SeeOther",n[n.TemporaryRedirect=307]="TemporaryRedirect",n[n.PermanentRedirect=308]="PermanentRedirect",("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)},7511:function(e,t,i){"use strict";var n,r;Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var i in t)Object.defineProperty(e,i,{enumerable:!0,get:t[i]})}(t,{RedirectType:function(){return n},getRedirectError:function(){return u},getRedirectStatusCodeFromError:function(){return m},getRedirectTypeFromError:function(){return f},getURLFromRedirectError:function(){return p},isRedirectError:function(){return d},permanentRedirect:function(){return h},redirect:function(){return c}});let s=i(82595),o=i(76361),a=i(44234),l="NEXT_REDIRECT";function u(e,t,i){void 0===i&&(i=a.RedirectStatusCode.TemporaryRedirect);let n=Error(l);n.digest=l+";"+t+";"+e+";"+i+";";let r=s.requestAsyncStorage.getStore();return r&&(n.mutableCookies=r.mutableCookies),n}function c(e,t){void 0===t&&(t="replace");let i=o.actionAsyncStorage.getStore();throw u(e,t,(null==i?void 0:i.isAction)?a.RedirectStatusCode.SeeOther:a.RedirectStatusCode.TemporaryRedirect)}function h(e,t){void 0===t&&(t="replace");let i=o.actionAsyncStorage.getStore();throw u(e,t,(null==i?void 0:i.isAction)?a.RedirectStatusCode.SeeOther:a.RedirectStatusCode.PermanentRedirect)}function d(e){if("object"!=typeof e||null===e||!("digest"in e)||"string"!=typeof e.digest)return!1;let[t,i,n,r]=e.digest.split(";",4),s=Number(r);return t===l&&("replace"===i||"push"===i)&&"string"==typeof n&&!isNaN(s)&&s in a.RedirectStatusCode}function p(e){return d(e)?e.digest.split(";",3)[2]:null}function f(e){if(!d(e))throw Error("Not a redirect error");return e.digest.split(";",2)[1]}function m(e){if(!d(e))throw Error("Not a redirect error");return Number(e.digest.split(";",4)[3])}(r=n||(n={})).push="push",r.replace="replace",("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)},25329:function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"requestAsyncStorage",{enumerable:!0,get:function(){return n}});let n=(0,i(14001).createAsyncLocalStorage)();("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)},82595:function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var i in t)Object.defineProperty(e,i,{enumerable:!0,get:t[i]})}(t,{getExpectedRequestStore:function(){return r},requestAsyncStorage:function(){return n.requestAsyncStorage}});let n=i(25329);function r(e){let t=n.requestAsyncStorage.getStore();if(t)return t;throw Error("`"+e+"` was called outside a request scope. Read more: https://nextjs.org/docs/messages/next-dynamic-api-wrong-context")}("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)},11288:function(e,t){"use strict";function i(e){return Array.isArray(e)?e[1]:e}Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"getSegmentValue",{enumerable:!0,get:function(){return i}}),("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)},38199:function(e,t){"use strict";var i,n,r,s;Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var i in t)Object.defineProperty(e,i,{enumerable:!0,get:t[i]})}(t,{ACTION_FAST_REFRESH:function(){return h},ACTION_NAVIGATE:function(){return a},ACTION_PREFETCH:function(){return c},ACTION_REFRESH:function(){return o},ACTION_RESTORE:function(){return l},ACTION_SERVER_ACTION:function(){return d},ACTION_SERVER_PATCH:function(){return u},PrefetchCacheEntryStatus:function(){return n},PrefetchKind:function(){return i},isThenable:function(){return p}});let o="refresh",a="navigate",l="restore",u="server-patch",c="prefetch",h="fast-refresh",d="server-action";function p(e){return e&&("object"==typeof e||"function"==typeof e)&&"function"==typeof e.then}(r=i||(i={})).AUTO="auto",r.FULL="full",r.TEMPORARY="temporary",(s=n||(n={})).fresh="fresh",s.reusable="reusable",s.expired="expired",s.stale="stale",("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)},25196:function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"staticGenerationAsyncStorage",{enumerable:!0,get:function(){return n}});let n=(0,i(14001).createAsyncLocalStorage)();("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)},18119:function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"staticGenerationAsyncStorage",{enumerable:!0,get:function(){return n.staticGenerationAsyncStorage}});let n=i(25196);("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)},72700:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var i in t)Object.defineProperty(e,i,{enumerable:!0,get:t[i]})}(t,{StaticGenBailoutError:function(){return n},isStaticGenBailoutError:function(){return r}});let i="NEXT_STATIC_GEN_BAILOUT";class n extends Error{constructor(...e){super(...e),this.code=i}}function r(e){return"object"==typeof e&&null!==e&&"code"in e&&e.code===i}("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)},87195:function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"getDomainLocale",{enumerable:!0,get:function(){return r}});let n=i(98337);function r(e,t,r,s){{let o=i(15183).normalizeLocalePath,a=i(4166).detectDomainLocale,l=t||o(e,r).detectedLocale,u=a(s,void 0,l);if(u){let t="http"+(u.http?"":"s")+"://",i=l===u.defaultLocale?"":"/"+l;return""+t+u.domain+(0,n.normalizePathTrailingSlash)(""+i+e)}return!1}}("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)},98342:function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return x}});let n=i(38754),r=i(85893),s=n._(i(67294)),o=i(36075),a=i(53955),l=i(48041),u=i(99903),c=i(65490),h=i(81928),d=i(60257),p=i(84229),f=i(87195),m=i(89470),g=i(38199),y=new Set;function v(e,t,i,n,r,s){if(s||(0,a.isLocalURL)(t)){if(!n.bypassPrefetchedCheck){let r=t+"%"+i+"%"+(void 0!==n.locale?n.locale:"locale"in e?e.locale:void 0);if(y.has(r))return;y.add(r)}(async()=>s?e.prefetch(t,r):e.prefetch(t,i,n))().catch(e=>{})}}function b(e){return"string"==typeof e?e:(0,l.formatUrl)(e)}let x=s.default.forwardRef(function(e,t){let i,n;let{href:l,as:y,children:x,prefetch:w=null,passHref:S,replace:P,shallow:k,scroll:E,locale:C,onClick:A,onMouseEnter:T,onTouchStart:O,legacyBehavior:j=!1,...R}=e;i=x,j&&("string"==typeof i||"number"==typeof i)&&(i=(0,r.jsx)("a",{children:i}));let L=s.default.useContext(h.RouterContext),M=s.default.useContext(d.AppRouterContext),_=null!=L?L:M,D=!L,V=!1!==w,I=null===w?g.PrefetchKind.AUTO:g.PrefetchKind.FULL,{href:N,as:$}=s.default.useMemo(()=>{if(!L){let e=b(l);return{href:e,as:y?b(y):e}}let[e,t]=(0,o.resolveHref)(L,l,!0);return{href:e,as:y?(0,o.resolveHref)(L,y):t||e}},[L,l,y]),F=s.default.useRef(N),B=s.default.useRef($);j&&(n=s.default.Children.only(i));let U=j?n&&"object"==typeof n&&n.ref:t,[H,z,W]=(0,p.useIntersection)({rootMargin:"200px"}),K=s.default.useCallback(e=>{(B.current!==$||F.current!==N)&&(W(),B.current=$,F.current=N),H(e),U&&("function"==typeof U?U(e):"object"==typeof U&&(U.current=e))},[$,U,N,W,H]);s.default.useEffect(()=>{_&&z&&V&&v(_,N,$,{locale:C},{kind:I},D)},[$,N,z,C,V,null==L?void 0:L.locale,_,D,I]);let q={ref:K,onClick(e){j||"function"!=typeof A||A(e),j&&n.props&&"function"==typeof n.props.onClick&&n.props.onClick(e),_&&!e.defaultPrevented&&function(e,t,i,n,r,o,l,u,c){let{nodeName:h}=e.currentTarget;if("A"===h.toUpperCase()&&(function(e){let t=e.currentTarget.getAttribute("target");return t&&"_self"!==t||e.metaKey||e.ctrlKey||e.shiftKey||e.altKey||e.nativeEvent&&2===e.nativeEvent.which}(e)||!c&&!(0,a.isLocalURL)(i)))return;e.preventDefault();let d=()=>{let e=null==l||l;"beforePopState"in t?t[r?"replace":"push"](i,n,{shallow:o,locale:u,scroll:e}):t[r?"replace":"push"](n||i,{scroll:e})};c?s.default.startTransition(d):d()}(e,_,N,$,P,k,E,C,D)},onMouseEnter(e){j||"function"!=typeof T||T(e),j&&n.props&&"function"==typeof n.props.onMouseEnter&&n.props.onMouseEnter(e),_&&(V||!D)&&v(_,N,$,{locale:C,priority:!0,bypassPrefetchedCheck:!0},{kind:I},D)},onTouchStart:function(e){j||"function"!=typeof O||O(e),j&&n.props&&"function"==typeof n.props.onTouchStart&&n.props.onTouchStart(e),_&&(V||!D)&&v(_,N,$,{locale:C,priority:!0,bypassPrefetchedCheck:!0},{kind:I},D)}};if((0,u.isAbsoluteUrl)($))q.href=$;else if(!j||S||"a"===n.type&&!("href"in n.props)){let e=void 0!==C?C:null==L?void 0:L.locale,t=(null==L?void 0:L.isLocaleDomain)&&(0,f.getDomainLocale)($,e,null==L?void 0:L.locales,null==L?void 0:L.domainLocales);q.href=t||(0,m.addBasePath)((0,c.addLocale)($,e,null==L?void 0:L.defaultLocale))}return j?s.default.cloneElement(n,q):(0,r.jsx)("a",{...R,...q,children:i})});("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)},15183:function(e,t,i){"use strict";
1Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"normalizeLocalePath",{enumerable:!0,get:function(){return n}});let n=(e,t)=>i(54165).normalizeLocalePath(e,t);("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)},84229:function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"useIntersection",{enumerable:!0,get:function(){return l}});let n=i(67294),r=i(84474),s="function"==typeof IntersectionObserver,o=new Map,a=[];function l(e){let{rootRef:t,rootMargin:i,disabled:l}=e,u=l||!s,[c,h]=(0,n.useState)(!1),d=(0,n.useRef)(null),p=(0,n.useCallback)(e=>{d.current=e},[]);return(0,n.useEffect)(()=>{if(s){if(u||c)return;let e=d.current;if(e&&e.tagName)return 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=a.find(e=>e.root===i.root&&e.margin===i.margin);if(n&&(t=o.get(n)))return t;let r=new Map;return t={id:i,observer:new IntersectionObserver(e=>{e.forEach(e=>{let t=r.get(e.target),i=e.isIntersecting||e.intersectionRatio>0;t&&i&&t(i)})},e),elements:r},a.push(i),o.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(),o.delete(n);let e=a.findIndex(e=>e.root===n.root&&e.margin===n.margin);e>-1&&a.splice(e,1)}}}(e,e=>e&&h(e),{root:null==t?void 0:t.current,rootMargin:i})}else if(!c){let e=(0,r.requestIdleCallback)(()=>h(!0));return()=>(0,r.cancelIdleCallback)(e)}},[u,i,t,c,d.current]),[p,c,(0,n.useCallback)(()=>{h(!1)},[])]}("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)},65988:function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var i in t)Object.defineProperty(e,i,{enumerable:!0,get:t[i]})}(t,{ServerInsertedHTMLContext:function(){return r},useServerInsertedHTML:function(){return s}});let n=i(61757)._(i(67294)),r=n.default.createContext(null);function s(e){let t=(0,n.useContext)(r);t&&t(e)}},73659:function(e,t,i){"use strict";let n,r,s;i.r(t),i.d(t,{default:function(){return ov}});var o,a,l,u=i(85893);i(3502),i(99313);var c=i(532),h=i(4298),d=i.n(h),p=i(14970),f=i(11163),m=i(67294),g=i(39332);let y=e=>e.replace(/%3B/g,";"),v=e=>{let t;for(let i of e.split("; ")){let e=i.split("=");if("io.prismic.preview"===y(e[0]).replace(/%3D/g,"=")){t=y(e.slice(1).join("="));continue}}return t},b=e=>(decodeURIComponent(e).match(/"([^"]+)\.prismic\.io"/)||[])[1];function x({repositoryName:e,updatePreviewURL:t="/api/preview",exitPreviewURL:i="/api/exit-preview",isDraftMode:n}){let r,s=n,o=!0,a="";try{let e=(0,f.useRouter)();o=!1,a=e.basePath,s||(s=e.isPreview),r=()=>e.replace(e.asPath,void 0,{scroll:!1})}catch{r=(0,g.useRouter)().refresh}return(0,m.useEffect)(()=>{let n=async()=>{let e=a+t;(await globalThis.fetch(e)).redirected?r():console.error(`[<PrismicPreview>] Failed to start or update Preview Mode using the "${e}" API endpoint. Does it exist?`)},l=async e=>{e.preventDefault(),o?r():await n()},u=async e=>{e.preventDefault();let t=a+i;(await globalThis.fetch(t)).ok?r():console.error(`[<PrismicPreview>] Failed to exit Preview Mode using the "${t}" API endpoint. Does it exist?`)};if(window.addEventListener("prismicPreviewUpdate",l),window.addEventListener("prismicPreviewEnd",u),!s){let t=v(globalThis.document.cookie);if(t){let i=window.location.href.startsWith(window.location.origin+a),r=b(t);i&&r===e&&n()}}return()=>{window.removeEventListener("prismicPreviewUpdate",l),window.removeEventListener("prismicPreviewEnd",u)}},[a,i,o,s,r,e,t]),null}var w=Object.defineProperty,S=(e,t,i)=>t in e?w(e,t,{enumerable:!0,configurable:!0,writable:!0,value:i}):e[t]=i,P=(e,t,i)=>S(e,"symbol"!=typeof t?t+"":t,i);class k extends Error{constructor(e="An invalid API response was returned",t,i){super(e),P(this,"url"),P(this,"response"),this.url=t,this.response=i}}let E=e=>/^[a-zA-Z0-9][-a-zA-Z0-9]{2,}[a-zA-Z0-9]$/.test(e),C=e=>{if(E(e))return`https://static.cdn.prismic.io/prismic.js?new=true&repo=${e}`;throw new k(`An invalid Prismic repository name was given: ${e}`,void 0,void 0)};function A({repositoryName:e,children:t,...i}){let n=C(e),r=!1,s=(0,u.jsxs)(u.Fragment,{children:[t,(0,u.jsx)(x,{repositoryName:e,isDraftMode:r,...i}),(0,u.jsx)(d(),{src:n,strategy:"lazyOnload"})]}),o=!0;try{(0,f.useRouter)(),o=!1}catch{}return o?new Promise(async e=>{r=(await (0,p.draftMode)()).isEnabled,e(s)}):s}var T=i(94189),O=i(9008),j=i.n(O);let R=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],L=new Set([...R,"pathRotation"]),M=(e,t,i)=>i>t?t:i<e?e:i,_={test:e=>"number"==typeof e,parse:parseFloat,transform:e=>e},D={..._,transform:e=>M(0,1,e)},V={..._,default:1},I=e=>Math.round(1e5*e)/1e5,N=/-?(?:\d+(?:\.\d+)?|\.\d+)/gu,$=/^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu,F=(e,t)=>i=>!!("string"==typeof i&&$.test(i)&&i.startsWith(e)||t&&null!=i&&Object.prototype.hasOwnProperty.call(i,t)),B=(e,t,i)=>n=>{if("string"!=typeof n)return n;let[r,s,o,a]=n.match(N);return{[e]:parseFloat(r),[t]:parseFloat(s),[i]:parseFloat(o),alpha:void 0!==a?parseFloat(a):1}},U=e=>M(0,255,e),H={..._,transform:e=>Math.round(U(e))},z={test:F("rgb","red"),parse:B("red","green","blue"),transform:({red:e,green:t,blue:i,alpha:n=1})=>"rgba("+H.transform(e)+", "+H.transform(t)+", "+H.transform(i)+", "+I(D.transform(n))+")"},W={test:F("#"),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),alph
1a:r?parseInt(r,16)/255:1}},transform:z.transform},K=e=>({test:t=>"string"==typeof t&&t.endsWith(e)&&1===t.split(" ").length,parse:parseFloat,transform:t=>`${t}${e}`}),q=K("deg"),G=K("%"),Y=K("px"),X=K("vh"),J=K("vw"),Z={...G,parse:e=>G.parse(e)/100,transform:e=>G.transform(100*e)},Q={test:F("hsl","hue"),parse:B("hue","saturation","lightness"),transform:({hue:e,saturation:t,lightness:i,alpha:n=1})=>"hsla("+Math.round(e)+", "+G.transform(I(t))+", "+G.transform(I(i))+", "+I(D.transform(n))+")"},ee={test:e=>z.test(e)||W.test(e)||Q.test(e),parse:e=>z.test(e)?z.parse(e):Q.test(e)?Q.parse(e):W.parse(e),transform:e=>"string"==typeof e?e:e.hasOwnProperty("red")?z.transform(e):Q.transform(e),getAnimatableNone:e=>{let t=ee.parse(e);return t.alpha=0,ee.transform(t)}},et=/(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu,ei="number",en="color",er=/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 es(e){let t=e.toString(),i=[],n={color:[],number:[],var:[]},r=[],s=0,o=t.replace(er,e=>(ee.test(e)?(n.color.push(s),r.push(en),i.push(ee.parse(e))):e.startsWith("var(")?(n.var.push(s),r.push("var"),i.push(e)):(n.number.push(s),r.push(ei),i.push(parseFloat(e))),++s,"${}")).split("${}");return{values:i,split:o,indexes:n,types:r}}function eo({split:e,types:t}){let i=e.length;return n=>{let r="";for(let s=0;s<i;s++)if(r+=e[s],void 0!==n[s]){let e=t[s];e===ei?r+=I(n[s]):e===en?r+=ee.transform(n[s]):r+=n[s]}return r}}let ea=e=>"number"==typeof e?0:ee.test(e)?ee.getAnimatableNone(e):e,el=(e,t)=>"number"==typeof e?t?.trim().endsWith("/")?e:0:ea(e),eu={test:function(e){return isNaN(e)&&"string"==typeof e&&(e.match(N)?.length||0)+(e.match(et)?.length||0)>0},parse:function(e){return es(e).values},createTransformer:function(e){return eo(es(e))},getAnimatableNone:function(e){let t=es(e);return eo(t)(t.values.map((e,i)=>el(e,t.split[i])))}},ec=new Set(["brightness","contrast","saturate","opacity"]);function eh(e){let[t,i]=e.slice(0,-1).split("(");if("drop-shadow"===t)return e;let[n]=i.match(N)||[];if(!n)return e;let r=i.replace(n,""),s=ec.has(t)?1:0;return n!==i&&(s*=100),t+"("+s+r+")"}let ed=/\b([a-z-]*)\(.*?\)/gu,ep={...eu,getAnimatableNone:e=>{let t=e.match(ed);return t?t.map(eh).join(" "):e}},ef={...eu,getAnimatableNone:e=>{let t=eu.parse(e);return eu.createTransformer(e)(t.map(e=>"number"==typeof e?0:"object"==typeof e?{...e,alpha:1}:e))}},em={..._,transform:Math.round},eg={borderWidth:Y,borderTopWidth:Y,borderRightWidth:Y,borderBottomWidth:Y,borderLeftWidth:Y,borderRadius:Y,borderTopLeftRadius:Y,borderTopRightRadius:Y,borderBottomRightRadius:Y,borderBottomLeftRadius:Y,width:Y,maxWidth:Y,height:Y,maxHeight:Y,top:Y,right:Y,bottom:Y,left:Y,inset:Y,insetBlock:Y,insetBlockStart:Y,insetBlockEnd:Y,insetInline:Y,insetInlineStart:Y,insetInlineEnd:Y,padding:Y,paddingTop:Y,paddingRight:Y,paddingBottom:Y,paddingLeft:Y,paddingBlock:Y,paddingBlockStart:Y,paddingBlockEnd:Y,paddingInline:Y,paddingInlineStart:Y,paddingInlineEnd:Y,margin:Y,marginTop:Y,marginRight:Y,marginBottom:Y,marginLeft:Y,marginBlock:Y,marginBlockStart:Y,marginBlockEnd:Y,marginInline:Y,marginInlineStart:Y,marginInlineEnd:Y,fontSize:Y,backgroundPositionX:Y,backgroundPositionY:Y,rotate:q,pathRotation:q,rotateX:q,rotateY:q,rotateZ:q,scale:V,scaleX:V,scaleY:V,scaleZ:V,skew:q,skewX:q,skewY:q,distance:Y,translateX:Y,translateY:Y,translateZ:Y,x:Y,y:Y,z:Y,perspective:Y,transformPerspective:Y,opacity:D,originX:Z,originY:Z,originZ:Y,zIndex:em,fillOpacity:D,strokeOpacity:D,numOctaves:em},ey={...eg,color:ee,backgroundColor:ee,outlineColor:ee,fill:ee,stroke:ee,borderColor:ee,borderTopColor:ee,borderRightColor:ee,borderBottomColor:ee,borderLeftColor:ee,filter:ep,WebkitFilter:ep,mask:ef,WebkitMask:ef},ev=e=>ey[e],eb=()=>({translate:0,scale:1,origin:0,originPoint:0}),ex=()=>({x:eb(),y:eb()}),ew=()=>({min:0,max:0}),eS=()=>({x:ew(),y:ew()}),eP=e=>!!(e&&e.getVelocity),ek=new Set(["width","height","top","left","right","bottom",...R]),eE=e=>t=>t.test(e),eC=[_,Y,G,q,J,X,{test:e=>"auto"===e,parse:e=>e}],eA=e=>eC.find(eE(e));i(34155);let eT=()=>{},eO=()=>{},ej=e=>/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(e),eR=e=>t=>"string"==typeof t&&t.startsWith(e),eL=eR("--"),eM=eR("var(--"),e_=e=>!!eM(e)&&eD.test(e.split("/*")[0].trim()),eD=/var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu;function eV(e){return"string"==typeof e&&e.split("/*")[0].includes("var(--")}let eI=/^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u,eN=e=>180*e/Math.PI,e$=e=>eB(eN(Math.atan2(e[1],e[0]))),eF={x:4,y:5,translateX:4,translateY:5,scaleX:0,scaleY:3,scale:e=>(Math.abs(e[0])+Math.abs(e[3]))/2,rotate:e$,rotateZ:e$,skewX:e=>eN(Math.atan(e[1])),skewY:e=>eN(Math.atan(e[2])),skew:e=>(Math.abs(e[1])+Math.abs(e[2]))/2},eB=e=>((e%=360)<0&&(e+=360),e),eU=e=>Math.sqrt(e[0]*e[0]+e[1]*e[1]),eH=e=>Math.sqrt(e[4]*e[4]+e[5]*e[5]),ez={x:12,y:13,z:14,translateX:12,translateY:13,translateZ:14,scaleX:eU,scaleY:eH,scale:e=>(eU(e)+eH(e))/2,rotateX:e=>eB(eN(Math.atan2(e[6],e[5]))),rotateY:e=>eB(eN(Math.atan2(-e[2],e[0]))),rotateZ:e$,rotate:e$,skewX:e=>eN(Math.atan(e[4])),skewY:e=>eN(Math.atan(e[1])),skew:e=>(Math.abs(e[1])+Math.abs(e[4]))/2};function eW(e){return e.includes("scale")?1:0}function eK(e,t){let i,n;if(!e||"none"===e)return eW(t);let r=e.match(/^matrix3d\(([-\d.e\s,]+)\)$/u);if(r)i=ez,n=r;else{let t=e.match(/^matrix\(([-\d.e\s,]+)\)$/u);i=eF,n=t}if(!n)return eW(t);let s=i[t],o=n[1].split(",").map(eG);return"function"==typeof s?s(o):o[s]}let eq=(e,t)=>
1{let{transform:i="none"}=getComputedStyle(e);return eK(i,t)};function eG(e){return parseFloat(e.trim())}let eY=e=>e===_||e===Y,eX=new Set(["x","y","z"]),eJ=R.filter(e=>!eX.has(e)),eZ={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})=>eK(t,"x"),y:(e,{transform:t})=>eK(t,"y")};eZ.translateX=eZ.x,eZ.translateY=eZ.y;let eQ=e=>e,e0={},e1=["setup","read","resolveKeyframes","preUpdate","update","preRender","render","postRender"];function e2(e,t){let i=!1,n=!0,r={delta:0,timestamp:0,isProcessing:!1},s=()=>i=!0,o=e1.reduce((e,t)=>(e[t]=function(e){let t=new Set,i=new Set,n=!1,r=!1,s=new WeakSet,o={delta:0,timestamp:0,isProcessing:!1};function a(t){s.has(t)&&(l.schedule(t),e()),t(o)}let l={schedule:(e,r=!1,o=!1)=>{let a=o&&n?t:i;return r&&s.add(e),a.add(e),e},cancel:e=>{i.delete(e),s.delete(e)},process:e=>{if(o=e,n){r=!0;return}n=!0;let s=t;t=i,i=s,t.forEach(a),t.clear(),n=!1,r&&(r=!1,l.process(e))}};return l}(s),e),{}),{setup:a,read:l,resolveKeyframes:u,preUpdate:c,update:h,preRender:d,render:p,postRender:f}=o,m=()=>{let s=e0.useManualTiming,o=s?r.timestamp:performance.now();i=!1,s||(r.delta=n?1e3/60:Math.max(Math.min(o-r.timestamp,40),1)),r.timestamp=o,r.isProcessing=!0,a.process(r),l.process(r),u.process(r),c.process(r),h.process(r),d.process(r),p.process(r),f.process(r),r.isProcessing=!1,i&&t&&(n=!1,e(m))},g=()=>{i=!0,n=!0,r.isProcessing||e(m)};return{schedule:e1.reduce((e,t)=>{let n=o[t];return e[t]=(e,t=!1,r=!1)=>(i||g(),n.schedule(e,t,r)),e},{}),cancel:e=>{for(let t=0;t<e1.length;t++)o[e1[t]].cancel(e)},state:r,steps:o}}let{schedule:e3,cancel:e5,state:e8,steps:e6}=e2("undefined"!=typeof requestAnimationFrame?requestAnimationFrame:eQ,!0),e9=new Set,e4=!1,e7=!1,te=!1;function tt(){if(e7){let e=Array.from(e9).filter(e=>e.needsMeasurement),t=new Set(e.map(e=>e.element)),i=new Map;t.forEach(e=>{let t=function(e){let t=[];return eJ.forEach(i=>{let n=e.getValue(i);void 0!==n&&(t.push([i,n.get()]),n.set(i.startsWith("scale")?1:0))}),t}(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)})}e7=!1,e4=!1,e9.forEach(e=>e.complete(te)),e9.clear()}function ti(){e9.forEach(e=>{e.readKeyframes(),e.needsMeasurement&&(e7=!0)})}class tn{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?(e9.add(this),e4||(e4=!0,e3.read(ti),e3.resolveKeyframes(tt))):(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),e9.delete(this)}cancel(){"scheduled"===this.state&&(e9.delete(this),this.state="pending")}resume(){"pending"===this.state&&this.scheduleResolve()}}let tr=e=>/^0[^.\s]+$/u.test(e),ts=new Set([ep,ef]);function to(e,t){let i=ev(e);return ts.has(i)||(i=eu),i.getAnimatableNone?i.getAnimatableNone(t):void 0}let ta=new Set(["auto","none","0"]);class tl extends tn{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&&e_(n=n.trim())){let r=function e(t,i,n=1){eO(n<=4,`Max CSS variable fallback depth detected in property "${t}". This may indicate a circular fallback dependency.`,"max-css-var-depth");let[r,s]=function(e){let t=eI.exec(e);if(!t)return[,];let[,i,n,r]=t;return[`--${i??n}`,r]}(t);if(!r)return;let o=window.getComputedStyle(i).getPropertyValue(r);if(o){let e=o.trim();return ej(e)?parseFloat(e):e}return e_(s)?e(s,i,n+1):s}(n,t.current);void 0!==r&&(e[i]=r),i===e.length-1&&(this.finalKeyframe=n)}}if(this.resolveNoneKeyframes(),!ek.has(i)||2!==e.length)return;let[n,r]=e,s=eA(n),o=eA(r);if(eV(n)!==eV(r)&&eZ[i]){this.needsMeasurement=!0;return}if(s!==o){if(eY(s)&&eY(o))for(let t=0;t<e.length;t++){let i=e[t];"string"==typeof i&&(e[t]=parseFloat(i))}else eZ[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||tr(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&&!ta.has(t)&&es(t).values.length&&(n=e[r]),r++}if(n&&i)for(let r of t)e[r]=to(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=eZ[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]=eZ[t](e.measureViewportBox(),window.getComputedStyle(e.current)),null!==s&&void 0===this.finalKeyframe&&(this.finalKeyframe=s),this.removedTransforms?.length&&this.removedTransforms.forEac
1h(([t,i])=>{e.getValue(t).set(i)}),this.resolveNoneKeyframes()}}let tu=e=>1e3*e,tc=e=>e/1e3;function th(e,t){-1===e.indexOf(t)&&e.push(t)}function td(e,t){let i=e.indexOf(t);i>-1&&e.splice(i,1)}class tp{constructor(){this.subscriptions=[]}add(e){return th(this.subscriptions,e),()=>td(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}}let tf=e=>e.startsWith("--");function tm(e,t,i){tf(t)?e.style.setProperty(t,i):e.style[t]=i}function tg(e){let t;return()=>(void 0===t&&(t=e()),t)}let ty={};function tv(e,t){let i=tg(e);return()=>ty[t]??i()}let tb=tv(()=>void 0!==window.ScrollTimeline,"scrollTimeline"),tx=e=>null!==e;function tw(e,{repeat:t,repeatType:i="loop"},n,r=1){let s=e.filter(tx),o=r<0||t&&"loop"!==i&&t%2==1?0:s.length-1;return o&&void 0!==n?n:s[o]}class tS{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)}}let tP=e=>Array.isArray(e)&&"number"==typeof e[0],tk=tv(()=>{try{document.createElement("div").animate({opacity:0}
1,{easing:"linear(0, 1)"})}catch(e){return!1}return!0},"linearEasing"),tE=(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)})`},tC=([e,t,i,n])=>`cubic-bezier(${e}, ${t}, ${i}, ${n})`,tA={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:tC([0,.65,.55,1]),circOut:tC([.55,0,1,.45]),backIn:tC([.31,.01,.66,-.59]),backOut:tC([.33,1.53,.69,.99])};function tT(e){return"function"==typeof e&&"applyToOptions"in e}class tO extends tS{constructor(e){if(super(),this.finishedTime=null,this.isStopped=!1,this.manualStartTime=null,!e)return;let{element:t,name:i,keyframes:n,pseudoElement:r,allowFlatten:s=!1,finalKeyframe:o,onComplete:a}=e;this.isPseudoElement=!!r,this.allowFlatten=s,this.options=e,eO("string"!=typeof e.type,'Mini animate() doesn\'t support "type" as a string.',"mini-spring");let l=function({type:e,...t}){return tT(e)&&tk()?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:o="loop",ease:a="easeOut",times:l}={},u){let c={[t]:i};l&&(c.offset=l);let h=function e(t,i){if(t)return"function"==typeof t?tk()?tE(t,i):"ease-out":tP(t)?tC(t):Array.isArray(t)?t.map(t=>e(t,i)||tA.easeOut):tA[t]}(a,r);Array.isArray(h)&&(c.easing=h);let d={delay:n,duration:r,easing:Array.isArray(h)?"linear":h,fill:"both",iterations:s+1,direction:"reverse"===o?"alternate":"normal"};return u&&(d.pseudoElement=u),e.animate(c,d)}(t,i,n,l,r),!1===l.autoplay&&this.animation.pause(),this.animation.onfinish=()=>{if(this.finishedTime=this.time,!r){let e=tw(n,this.options,o,this.speed);this.updateMotionValue&&this.updateMotionValue(e),tm(t,i,e),this.animation.cancel()}a?.(),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(){return tc(Number(this.animation.effect?.getComputedTiming?.().duration||0))}get iterationDuration(){let{delay:e=0}=this.options||{};return this.duration+tc(e)}get time(){return tc(Number(this.animation.currentTime)||0)}set time(e){let t=null!==this.finishedTime;this.manualStartTime=null,this.finishedTime=null,this.animation.currentTime=tu(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&&tb())?(this.animation.timeline=e,t&&(this.animation.rangeStart=t),i&&(this.animation.rangeEnd=i),eQ):n(this)}}let tj=new Set(["opacity","clipPath","filter","transform","backgroundColor"]),{schedule:tR,cancel:tL}=e2(queueMicrotask,!1);function tM(){n=void 0}let t_={now:()=>(void 0===n&&t_.set(e8.isProcessing||e0.useManualTiming?e8.timestamp:performance.now()),n),set:e=>{n=e,queueMicrotask(tM)}},tD=(e,t)=>t?1e3/t*e:0,tV=e=>!isNaN(parseFloat(e)),tI={current:void 0};class tN{constructor(e,t={}){this.canTrackVelocity=null,this.events={},this.updateAndNotify=e=>{let t=t_.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=t_.now(),null===this.canTrackVelocity&&void 0!==e&&(this.canTrackVelocity=tV(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 tp);let i=this.events[e].add(t);return"change"===e?()=>{i(),e3.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 tI.current&&tI.current.push(this),this.current}getPrevious(){return this.prev}getVelocity(){let e=t_.now();if(!this.canTrackVelocity||void 0===this.prevFrameValue||e-this.updatedAt>30)return 0;let t=Math.min(this.updatedAt-this.prevUpdatedAt,30);return tD(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 t$(e,t){return new tN(e,t)}let tF=[...eC,ee,eu],tB=e=>tF.find(eE(e)),tU=new WeakMap;function tH(e){return null!==e&&"object"==typeof e&&"function"==typeof e.start}function tz(e){return"string"==typeof e||Array.isArray(e)}let tW=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],tK=["initial",...tW];function tq(e){return tH(e.animate)||tK.some(t=>tz(e[t]))}function tG(e){return!!(tq(e)||e.variants)}let tY={current:null},tX={current:!1},tJ="undefined"!=typeof window;function tZ(e){let t=[{},{}];
1return e?.values.forEach((e,i)=>{t[0][i]=e.get(),t[1][i]=e.getVelocity()}),t}function tQ(e,t,i,n){if("function"==typeof t){let[r,s]=tZ(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]=tZ(n);t=t(void 0!==i?i:e.custom,r,s)}return t}let t0=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"],t1={};class t2{scrapeMotionValuesFromProps(e,t,i){return{}}constructor({parent:e,props:t,presenceContext:i,reducedMotionConfig:n,skipAnimations:r,blockInitialAnimation:s,visualState:o},a={}){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=tn,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=t_.now();this.renderScheduledAt<e&&(this.renderScheduledAt=e,e3.render(this.render,!1,!0))};let{latestValues:l,renderState:u}=o;this.latestValues=l,this.baseTarget={...l},this.initialValues=t.initial?{...l}:{},this.renderState=u,this.parent=e,this.props=t,this.presenceContext=i,this.depth=e?e.depth+1:0,this.reducedMotionConfig=n,this.skipAnimationsConfig=r,this.options=a,this.blockInitialAnimation=!!s,this.isControllingVariants=tq(t),this.isVariantNode=tG(t),this.isVariantNode&&(this.variantChildren=new Set),this.manuallyAnimateOnMount=!!(e&&e.current);let{willChange:c,...h}=this.scrapeMotionValuesFromProps(t,{},this);for(let e in h){let t=h[e];void 0!==l[e]&&eP(t)&&t.set(l[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,tU.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.forEach((e,t)=>this.bindToMotionValue(t,e)),"never"===this.reducedMotionConfig?this.shouldReduceMotion=!1:"always"===this.reducedMotionConfig?this.shouldReduceMotion=!0:(tX.current||function(){if(tX.current=!0,tJ){if(window.matchMedia){let e=window.matchMedia("(prefers-reduced-motion)"),t=()=>tY.current=e.matches;e.addEventListener("change",t),t()}else tY.current=!1}}(),this.shouldReduceMotion=tY.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(),e5(this.notifyUpdate),e5(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&&tj.has(e)&&this.current instanceof HTMLElement){let{factory:i,keyframes:n,times:r,ease:s,duration:o}=t.accelerate,a=new tO({element:this.current,name:e,keyframes:n,times:r,ease:s,duration:tu(o)}),l=i(a);this.valueSubscriptions.set(e,()=>{l(),a.cancel()});return}let n=L.has(e);n&&this.onBindTransform&&this.onBindTransform();let r=t.on("change",t=>{this.latestValues[e]=t,this.props.onUpdate&&e3.preRender(this.notifyUpdate),n&&this.projection&&(this.projection.isTransformDirty=!0),this.scheduleRender()});"undefined"!=typeof window&&window.MotionCheckAppearSync&&(i=window.MotionCheckAppearSync(this,e,t)),this.valueSubscriptions.set(e,()=>{r(),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 t1){let t=t1[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];
1t.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):eS()}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<t0.length;t++){let i=t0[t];this.propEventSubscriptions[i]&&(this.propEventSubscriptions[i](),delete this.propEventSubscriptions[i]);let n=e["on"+i];n&&(this.propEventSubscriptions[i]=this.on(i,n))}this.prevMotionValues=function(e,t,i){for(let n in t){let r=t[n],s=i[n];if(eP(r))e.addValue(n,r);else if(eP(s))e.addValue(n,t$(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,t$(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=t$(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&&(ej(i)||tr(i))?i=parseFloat(i):!tB(i)&&eu.test(t)&&(i=to(e,t)),this.setBaseTarget(e,eP(i)?i.get():i)),eP(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=tQ(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||eP(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 tp),this.events[e].add(t)}notify(e,...t){this.events[e]&&this.events[e].notify(...t)}scheduleRenderMicrotask(){tR.render(this.render)}}class t3 extends t2{constructor(){super(...arguments),this.KeyframeResolver=tl}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;eP(e)&&(this.childSubscription=e.on("change",e=>{this.current&&(this.current.textContent=`${e}`)}))}}function t5(e){return e.replace(/([A-Z])/g,e=>`-${e.toLowerCase()}`)}let t8=(e,t)=>t&&"number"==typeof e?t.transform(e):e,t6={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},t9=R.length;function t4(e,t,i){let{style:n,vars:r,transformOrigin:s}=e,o=!1,a=!1;for(let e in t){let i=t[e];if(L.has(e)){o=!0;continue}if(eL(e)){r[e]=i;continue}{let t=t8(i,eg[e]);e.startsWith("origin")?(a=!0,s[e]=t):n[e]=t}}if(!t.transform&&(o||i?n.transform=function(e,t,i){let n="",r=!0;for(let s=0;s<t9;s++){let o=R[s],a=e[o];if(void 0===a)continue;let l=!0;if("number"==typeof a)l=a===(o.startsWith("scale")?1:0);else{let e=parseFloat(a);l=o.startsWith("scale")?1===e:0===e}if(!l||i){let e=t8(a,eg[o]);if(!l){r=!1;let t=t6[o]||o;n+=`${t}(${e}) `}i&&(t[o]=e)}}let s=e.pathRotation;return s&&(r=!1,n+=`rotate(${t8(s,eg.pathRotation)}) `),n=n.trim(),i?n=i(t,r?"":n):r&&(n="none"),n}(t,e.transform,i):n.transform&&(n.transform="none")),a){let{originX:e="50%",originY:t="50%",originZ:i=0}=s;n.transformOrigin=`${e} ${t} ${i}`}}let t7={offset:"stroke-dashoffset",array:"stroke-dasharray"},ie={offset:"strokeDashoffset",array:"strokeDasharray"},it=["offsetDistance","offsetPath","offsetRotate","offsetAnchor"];function ii(e,{attrX:t,attrY:i,attrScale:n,pathLength:r,pathSpacing:s=1,pathOffset:o=0,...a}
1,l,u,c){if(t4(e,a,u),l){e.style.viewBox&&(e.attrs.viewBox=e.style.viewBox);return}e.attrs=e.style,e.style={};let{attrs:h,style:d}=e;for(let e of(h.transform&&(d.transform=h.transform,delete h.transform),(d.transform||h.transformOrigin)&&(d.transformOrigin=h.transformOrigin??"50% 50%",delete h.transformOrigin),d.transform&&(d.transformBox=c?.transformBox??"fill-box",delete h.transformBox),it))void 0!==h[e]&&(d[e]=h[e],delete h[e]);void 0!==t&&(h.x=t),void 0!==i&&(h.y=i),void 0!==n&&(h.scale=n),void 0!==r&&function(e,t,i=1,n=0,r=!0){e.pathLength=1;let s=r?t7:ie;e[s.offset]=`${-n}`,e[s.array]=`${t} ${i}`}(h,r,s,o,!1)}let ir=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"]),is=e=>"string"==typeof e&&"svg"===e.toLowerCase();function io(e,{style:t,vars:i},n,r){let s;let o=e.style;for(s in t)o[s]=t[s];for(s in r?.applyProjectionStyles(o,n),i)o.setProperty(s,i[s])}let ia=["borderTopLeftRadius","borderTopRightRadius","borderBottomRightRadius","borderBottomLeftRadius"];function il(e,t){return t.max===t.min?0:e/(t.max-t.min)*100}let iu={correct:(e,t)=>{if(!t.target)return e;if("string"==typeof e){if(!Y.test(e))return e;e=parseFloat(e)}let i=il(e,t.target.x),n=il(e,t.target.y);return`${i}% ${n}%`}},ic=(e,t,i)=>e+(t-e)*i,ih={borderRadius:{...iu,applyTo:[...ia]},borderTopLeftRadius:iu,borderTopRightRadius:iu,borderBottomLeftRadius:iu,borderBottomRightRadius:iu,boxShadow:{correct:(e,{treeScale:t,projectionDelta:i})=>{let n=eu.parse(e);if(n.length>5)return e;let r=eu.createTransformer(e),s="number"!=typeof n[0]?1:0,o=i.x.scale*t.x,a=i.y.scale*t.y;n[0+s]/=o,n[1+s]/=a;let l=ic(o,a,.5);return"number"==typeof n[2+s]&&(n[2+s]/=l),"number"==typeof n[3+s]&&(n[3+s]/=l),r(n)}}};function id(e,{layout:t,layoutId:i}){return L.has(e)||e.startsWith("origin")||(t||void 0!==i)&&(!!ih[e]||"opacity"===e)}function ip(e,t,i){let n=e.style,r=t?.style,s={};if(!n)return s;for(let t in n)(eP(n[t])||r&&eP(r[t])||id(t,e)||i?.getValue(t)?.liveStyle!==void 0)&&(s[t]=n[t]);return s}function im(e,t,i){let n=ip(e,t,i);for(let i in e)(eP(e[i])||eP(t[i]))&&(n[-1!==R.indexOf(i)?"attr"+i.charAt(0).toUpperCase()+i.substring(1):i]=e[i]);return n}class ig extends t3{constructor(){super(...arguments),this.type="svg",this.isSVGTag=!1,this.measureInstanceViewportBox=eS}getBaseTargetFromProps(e,t){return e[t]}readValueFromInstance(e,t){if(L.has(t)){let e=ev(t);return e&&e.default||0}return t=ir.has(t)?t:t5(t),e.getAttribute(t)}scrapeMotionValuesFromProps(e,t,i){return im(e,t,i)}build(e,t,i){ii(e,t,this.isSVGTag,i.transformTemplate,i.style)}renderInstance(e,t,i,n){!function(e,t,i,n){for(let i in io(e,t,void 0,n),t.attrs)e.setAttribute(ir.has(i)?i:t5(i),t.attrs[i])}(e,t,0,n)}mount(e){this.isSVGTag=is(e.tagName),super.mount(e)}}function iy({top:e,left:t,right:i,bottom:n}){return{x:{min:t,max:i},y:{min:e,max:n}}}function iv(e){return void 0===e||1===e}function ib({scale:e,scaleX:t,scaleY:i}){return!iv(e)||!iv(t)||!iv(i)}function ix(e){return ib(e)||iw(e)||e.z||e.rotate||e.rotateX||e.rotateY||e.skewX||e.skewY}function iw(e){var t,i;return(t=e.x)&&"0%"!==t||(i=e.y)&&"0%"!==i}function iS(e,t,i,n,r){return void 0!==r&&(e=n+r*(e-n)),n+i*(e-n)+t}function iP(e,t=0,i=1,n,r){e.min=iS(e.min,t,i,n,r),e.max=iS(e.max,t,i,n,r)}function ik(e,{x:t,y:i}){iP(e.x,t.translate,t.scale,t.originPoint),iP(e.y,i.translate,i.scale,i.originPoint)}function iE(e,t){e.min+=t,e.max+=t}function iC(e,t,i,n,r=.5){let s=ic(e.min,e.max,r);iP(e,t,i,s,n)}function iA(e,t){return"string"==typeof e?parseFloat(e)/100*(t.max-t.min):e}function iT(e,t,i){let n=i??e;iC(e.x,iA(t.x,n.x),t.scaleX,t.scale,t.originX),iC(e.y,iA(t.y,n.y),t.scaleY,t.scale,t.originY)}function iO(e,t){return iy(function(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}}(e.getBoundingClientRect(),t))}class ij extends t3{constructor(){super(...arguments),this.type="html",this.renderInstance=io}mount(e){eO(!!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(L.has(t))return this.projection?.isProjecting?eW(t):eq(e,t);
1{let i=window.getComputedStyle(e),n=(eL(t)?i.getPropertyValue(t):i[t])||0;return"string"==typeof n?n.trim():n}}measureInstanceViewportBox(e,{transformPagePoint:t}){return iO(e,t)}build(e,t,i){t4(e,t,i.transformTemplate)}scrapeMotionValuesFromProps(e,t,i){return ip(e,t,i)}}let iR=["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 iL(e){if("string"!=typeof e||e.includes("-"));else if(iR.indexOf(e)>-1||/[A-Z]/u.test(e))return!0;return!1}let iM=(0,m.createContext)({}),i_=(0,m.createContext)({strict:!1}),iD=(0,m.createContext)({transformPagePoint:e=>e,isStatic:!1,reducedMotion:"never"}),iV=(0,m.createContext)({});function iI(e){return Array.isArray(e)?e.join(" "):e}let iN=()=>({style:{},transform:{},transformOrigin:{},vars:{}});function i$(e,t,i){for(let n in t)eP(t[n])||id(n,i)||(e[n]=t[n])}let iF=()=>({...iN(),attrs:{}}),iB=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 iU(e){return e.startsWith("while")||e.startsWith("drag")&&"draggable"!==e||e.startsWith("layout")||e.startsWith("onTap")||e.startsWith("onPan")||e.startsWith("onLayout")||iB.has(e)}let iH=e=>!iU(e);try{o=require("@emotion/is-prop-valid").default,"function"==typeof o&&(iH=e=>e.startsWith("on")?!iU(e):o(e))}catch{}function iz(e){return eP(e)?e.get():e}let iW=(0,m.createContext)(null),iK=e=>(t,i)=>{let n=(0,m.useContext)(iV),r=(0,m.useContext)(iW),s=()=>(function({scrapeMotionValuesFromProps:e,createRenderState:t},i,n,r){return{latestValues:function(e,t,i,n){let r={},s=n(e,{});for(let e in s)r[e]=iz(s[e]);let{initial:o,animate:a}=e,l=tq(e),u=tG(e);t&&u&&!l&&!1!==e.inherit&&(void 0===o&&(o=t.initial),void 0===a&&(a=t.animate));let c=!!i&&!1===i.initial,h=(c=c||!1===o)?a:o;if(h&&"boolean"!=typeof h&&!tH(h)){let t=Array.isArray(h)?h:[h];for(let i=0;i<t.length;i++){let n=tQ(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=c?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()}})(e,t,n,r);return i?s():function(e){let t=(0,m.useRef)(null);return null===t.current&&(t.current=e()),t.current}(s)},iq=iK({scrapeMotionValuesFromProps:ip,createRenderState:iN}),iG=iK({scrapeMotionValuesFromProps:im,createRenderState:iF}),iY={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"]},iX=!1;function iJ(){return!function(){if(iX)return;let e={};for(let t in iY)e[t]={isEnabled:e=>iY[t].some(t=>!!e[t])};t1=e,iX=!0}(),t1}let iZ=Symbol.for("motionComponentSymbol"),iQ="data-"+t5("framerAppearId"),i0=(0,m.createContext)({});function i1(e){return e&&"object"==typeof e&&Object.prototype.hasOwnProperty.call(e,"current")}let i2="undefined"!=typeof window?m.useLayoutEffect:m.useEffect;function i3(e,{forwardMotionProps:t=!1,type:i}={},n,r){n&&function(e){let t=iJ();for(let i in e)t[i]={...t[i],...e[i]};t1=t}(n);let s=i?"svg"===i:iL(e),o=s?iG:iq;function a(i,n){let a;let l={...(0,m.useContext)(iD),...i,layoutId:function({layoutId:e}){let t=(0,m.useContext)(iM).id;return t&&void 0!==e?t+"-"+e:e}(i)},{isStatic:c}=l,h=function(e){let{initial:t,animate:i}=function(e,t){if(tq(e)){let{initial:t,animate:i}=e;return{initial:!1===t||tz(t)?t:void 0,animate:tz(i)?i:void 0}}return!1!==e.inherit?t:{}}(e,(0,m.useContext)(iV));return(0,m.useMemo)(()=>({initial:t,animate:i}),[iI(t),iI(i)])}(i),d=o(i,c);if(!c&&"undefined"!=typeof window){(0,m.useContext)(i_).strict;let t=function(e){let{drag:t,layout:i}=iJ();if(!t&&!i)return{};let n={...t,...i};return{MeasureLayout:t?.isEnabled(e)||i?.isEnabled(e)?n.MeasureLayout:void 0,ProjectionNode:n.ProjectionNode}}
1(l);a=t.MeasureLayout,h.visualElement=function(e,t,i,n,r,s){let{visualElement:o}=(0,m.useContext)(iV),a=(0,m.useContext)(i_),l=(0,m.useContext)(iW),u=(0,m.useContext)(iD),c=u.reducedMotion,h=u.skipAnimations,d=(0,m.useRef)(null),p=(0,m.useRef)(!1);n=n||a.renderer,!d.current&&n&&(d.current=n(e,{visualState:t,parent:o,props:i,presenceContext:l,blockInitialAnimation:!!l&&!1===l.initial,reducedMotionConfig:c,skipAnimations:h,isSVG:s}),p.current&&d.current&&(d.current.manuallyAnimateOnMount=!0));let f=d.current,g=(0,m.useContext)(i0);f&&!f.projection&&r&&("html"===f.type||"svg"===f.type)&&function(e,t,i,n){let{layoutId:r,layout:s,drag:o,dragConstraints:a,layoutScroll:l,layoutRoot:u,layoutAnchor:c,layoutCrossfade:h}=t;e.projection=new i(e.latestValues,t["data-framer-portal-id"]?void 0:function e(t){if(t)return!1!==t.options.allowProjection?t.projection:e(t.parent)}(e.parent)),e.projection.setOptions({layoutId:r,layout:s,alwaysMeasureLayout:!!o||a&&i1(a),visualElement:e,animationType:"string"==typeof s?s:"both",initialPromotionConfig:n,crossfade:h,layoutScroll:l,layoutRoot:u,layoutAnchor:c})}(d.current,i,r,g);let y=(0,m.useRef)(!1);(0,m.useInsertionEffect)(()=>{f&&y.current&&f.update(i,l)});let v=i[iQ],b=(0,m.useRef)(!!v&&"undefined"!=typeof window&&!window.MotionHandoffIsComplete?.(v)&&window.MotionHasOptimisedAnimation?.(v));return i2(()=>{p.current=!0,f&&(y.current=!0,window.MotionIsMounted=!0,f.updateFeatures(),f.scheduleRenderMicrotask(),b.current&&f.animationState&&f.animationState.animateChanges())}),(0,m.useEffect)(()=>{f&&(!b.current&&f.animationState&&f.animationState.animateChanges(),b.current&&(queueMicrotask(()=>{window.MotionHandoffMarkAsComplete?.(v)}),b.current=!1),f.enteringChildren=void 0)}),f}(e,d,l,r,t.ProjectionNode,s)}return(0,u.jsxs)(iV.Provider,{value:h,children:[a&&h.visualElement?(0,u.jsx)(a,{visualElement:h.visualElement,...l}):null,function(e,t,i,{latestValues:n},r,s=!1,o){let a=(o??iL(e)?function(e,t,i,n){let r=(0,m.useMemo)(()=>{let i=iF();return ii(i,t,is(n),e.transformTemplate,e.style),{...i.attrs,style:{...i.style}}},[t]);if(e.style){let t={};i$(t,e.style,e),r.style={...t,...r.style}}return r}:function(e,t){let i={},n=function(e,t){let i=e.style||{},n={};return i$(n,i,e),Object.assign(n,function({transformTemplate:e},t){return(0,m.useMemo)(()=>{let i=iN();return t4(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})(t,n,r,e),l=function(e,t,i){let n={};for(let r in e)("values"!==r||"object"!=typeof e.values)&&!eP(e[r])&&(iH(r)||!0===i&&iU(r)||!t&&!iU(r)||e.draggable&&r.startsWith("onDrag"))&&(n[r]=e[r]);return n}(t,"string"==typeof e,s),u=e!==m.Fragment?{...l,...a,ref:i}
1:{},{children:c}=t,h=(0,m.useMemo)(()=>eP(c)?c.get():c,[c]);return(0,m.createElement)(e,{...u,children:h})}(e,i,function(e,t,i){let n=(0,m.useRef)(i);(0,m.useInsertionEffect)(()=>{n.current=i});let r=(0,m.useRef)(null);return(0,m.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])}(d,h.visualElement,n),d,c,t,s)]})}a.displayName=`motion.${"string"==typeof e?e:`create(${e.displayName??e.name??""})`}`;let l=(0,m.forwardRef)(a);return l[iZ]=e,l}class i5{constructor(e){this.isMounted=!1,this.node=e}update(){}}function i8(e,t,i){let n=e.getProps();return tQ(n,t,void 0!==i?i:n.custom,e)}function i6(e,t){if(e?.inherit&&t){let{inherit:i,...n}=e;return{...t,...n}}return e}function i9(e,t){let i=e?.[t]??e?.default??e;return i!==e?i6(i,e):i}let i4=e=>Array.isArray(e);function i7(e,t){let i=e.getValue("willChange");if(eP(i)&&i.add)return i.add(t);if(!i&&e0.WillChange){let i=new e0.WillChange("auto");e.addValue("willChange",i),i.add(t)}}let ne=(...e)=>e.reduce((e,t)=>i=>t(e(i)));function nt(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}function ni(e,t){return i=>i>0?t:e}let nn=(e,t,i)=>{let n=e*e,r=i*(t*t-n)+n;return r<0?0:Math.sqrt(r)},nr=[W,z,Q],ns=e=>nr.find(t=>t.test(e));function no(e){let t=ns(e);if(eT(!!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===Q&&(i=function({hue:e,saturation:t,lightness:i,alpha:n}){e/=360,i/=100;let r=0,s=0,o=0;if(t/=100){let n=i<.5?i*(1+t):i+t-i*t,a=2*i-n;r=nt(a,n,e+1/3),s=nt(a,n,e),o=nt(a,n,e-1/3)}else r=s=o=i;return{red:Math.round(255*r),green:Math.round(255*s),blue:Math.round(255*o),alpha:n}}(i)),i}let na=(e,t)=>{let i=no(e),n=no(t);if(!i||!n)return ni(e,t);let r={...i};return e=>(r.red=nn(i.red,n.red,e),r.green=nn(i.green,n.green,e),r.blue=nn(i.blue,n.blue,e),r.alpha=ic(i.alpha,n.alpha,e),z.transform(r))},nl=new Set(["none","hidden"]);function nu(e,t){return i=>ic(e,t,i)}function nc(e){return"number"==typeof e?nu:"string"==typeof e?e_(e)?ni:ee.test(e)?na:np:Array.isArray(e)?nh:"object"==typeof e?ee.test(e)?na:nd:ni}function nh(e,t){let i=[...e],n=i.length,r=e.map((e,i)=>nc(e)(e,t[i]));return e=>{for(let t=0;t<n;t++)i[t]=r[t](e);return i}}function nd(e,t){let i={...e,...t},n={};for(let r in i)void 0!==e[r]&&void 0!==t[r]&&(n[r]=nc(e[r])(e[r],t[r]));return e=>{for(let t in n)i[t]=n[t](e);return i}}let np=(e,t)=>{let i=eu.createTransformer(t),n=es(e),r=es(t);return n.indexes.var.length===r.indexes.var.length&&n.indexes.color.length===r.indexes.color.length&&n.indexes.number.length>=r.indexes.number.length?nl.has(e)&&!r.values.length||nl.has(t)&&!n.values.length?nl.has(e)?i=>i<=0?e:t:i=>i>=1?t:e:ne(nh(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],o=e.indexes[s][n[s]],a=e.values[o]??0;i[r]=a,n[s]++}return i}(n,r),r.values),i):(eT(!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"),ni(e,t))};function nf(e,t,i){return"number"==typeof e&&"number"==typeof t&&"number"==typeof i?ic(e,t,i):nc(e)(e,t)}let nm=e=>{let t=({timestamp:t})=>e(t);return{start:(e=!0)=>e3.update(t,e),stop:()=>e5(t),now:()=>e8.isProcessing?e8.timestamp:t_.now()}};function ng(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 ny={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 nv(e,t){return e*Math.sqrt(1-t*t)}let nb=["duration","bounce"],nx=["stiffness","damping","mass"];function nw(e,t){return t.some(t=>void 0!==e[t])}function nS(e=ny.visualDuration,t=ny.bounce){let i,n,r,s,o,a;let l="object"!=typeof e?{visualDuration:e,keyframes:[0,1],bounce:t}:e,{restSpeed:u,restDelta:c}=l,h=l.keyframes[0],d=l.keyframes[l.keyframes.length-1],p={done:!1,value:h},{stiffness:f,damping:m,mass:g,duration:y,velocity:v,isResolvedFromDuration:b}=function(e){let t={velocity:ny.velocity,stiffness:ny.stiffness,damping:ny.damping,mass:ny.mass,isResolvedFromDuration:!1,...e};if(!nw(e,nx)&&nw(e,nb)){if(t.velocity=0,e.visualDuration){let i=2*Math.PI/(1.2*e.visualDuration),n=i*i,r=2*M(.05,1,1-(e.bounce||0))*Math.sqrt(n);t={...t,mass:ny.mass,stiffness:n,damping:r}}else{let i=function({duration:e=ny.duration,bounce:t=ny.bounce,velocity:i=ny.velocity,mass:n=ny.mass}){let r,s;eT(e<=tu(ny.maxDuration),"Spring duration must be 10 seconds or less","spring-duration-limit");let o=1-t;o=M(ny.minDamping,ny.maxDamping,o),e=M(ny.minDuration,ny.maxDuration,tc(e)),o<1?(r=t=>{let n=t*o,r=n*e;return .001-(n-i)/nv(t,o)*Math.exp(-r)},s=t=>{let n=t*o*e,s=Math.pow(o,2)*Math.pow(t,2)*e,a=nv(Math.pow(t,2),o);return(n*i+i-s)*Math.exp(-n)*(-r(t)+.001>0?-1:1)/a}):(r=t=>-.001+Math.exp(-t*e)*((t-i)*e+1),s=t=>e*e*(i-t)*Math.exp(-t*e));let a=function(e,t,i){let n=i;for(let i=1;i<12;i++)n-=e(n)/t(n);return n}(r,s,5/e);if(e=tu(e),isNaN(a))return{stiffness:ny.stiffness,damping:ny.damping,duration:e};{let t=Math.pow(a,2)*n;return{stiffness:t,damping:2*o*Math.sqrt(n*t),duration:e}}}({...e,velocity:0});(t={...t,...i,mass:ny.mass}).isResolvedFromDuration=!0}}return t}({...l,velocity:-tc(l.velocity||0)}),x=v||0,w=m/(2*Math.sqrt(f*g)),S=d-h,P=tc(Math.sqrt(f/g)),k=5>Math.abs(S);if(u||(u=k?ny.restSpeed.granular:ny.restSpeed.default),c||(c=k?ny.restDelta.granular:ny.restDelta.default),w<1)r=nv(P,w),s=(x+w*P*S)/r,i=e=>d-Math.exp(-w*P*e)*(s*Math.sin(r*e)+S*Math.cos(r*e)),o=w*P*s+S*r,a=w*P*S-s*r,n=e=>Math.exp(-w*P*e)*(o*Math.sin(r*e)+a*Math.cos(r*e));else if(1===w){i=e=>d-Math.exp(-P*e)*(S+(x+P*S)*e);let e=x+P*S;n=t=>Math.exp(-P*t)*(P*e*t-x)}else{let e=P*Math.sqrt(w*w-1);i=t=>{let i=Math.exp(-w*P*t),n=Math.min(e*t,300);return d-i*((x+w*P*S)*Math.sinh(n)+e*S*Math.cosh(n))/e};let t=(x+w*P*S)/e,r=w*P*t-S*e,s=w*P*S-t*e;n=t=>{let i=Math.exp(-w*P*t),n=Math.min(e*t,300);return i*(r*Math.sinh(n)+s*Math.cosh(n))}}let E={calculatedDuration:b&&y||null,velocity:e=>tu(n(e)),next:e=>{if(!b&&w<1){let t=Math.exp(-w*P*e),i=Math.sin(r*e),n=Math.cos(r*e),l=d-t*(s*i+S*n),h=tu(t*(o*i+a*n));return p.done=Math.abs(h)<=u&&Math.abs(d-l)<=c,p.value=p.done?d:l,p}let t=i(e);if(b)p.done=e>=y;else{let i=tu(n(e));p.done=Math.abs(i)<=u&&Math.abs(d-t)<=c}return p.value=p.done?d:t,p},toString:()=>{let e=Math.min(ng(E),2e4),t=tE(t=>E.next(e*t).value,e,30);return e+"ms "+t},toTransition:()=>{}};return E}function nP(e,t,i){let n=Math.max(t-5,0);return tD(i-e(n),t-n)}function nk({keyframes:e,velocity:t=0,power:i=.8,timeConstant:n=325,bounceDamping:r=10,bounceStiffness:s=500,modifyTarget:o,min:a,max:l,restDelta:u=.5,restSpeed:c}){let h,d;let p=e[0],f={done:!1,value:p},m=e=>void 0!==a&&e<a||void 0!==l&&e>l,g=e=>void 0===a?l:void 0===l?a:Math.abs(a-e)<Math.abs(l-e)?a:l,y=i*t,v=p+y,b=void 0===o?v:o(v);b!==v&&(y=b-p);let x=e=>-y*Math.exp(-e/n),w=e=>b+x(e),S=e=>{let t=x(e),i=w(e);f.done=Math.abs(t)<=u,f.value=f.done?b:i},P=e=>{m(f.value)&&(h=e,d=nS({keyframes:[f.value,g(f.value)],velocity:nP(w,e,f.value),damping:r,stiffness:s,restDelta:u,restSpeed:c}))};return P(0),{calculatedDuration:null,next:e=>{let t=!1;return(d||void 0!==h||(t=!0,S(e),P(e)),void 0!==h&&e>
1=h)?d.next(e-h):(t||S(e),f)}}}nS.applyToOptions=e=>{let t=function(e,t=100,i){let n=i({...e,keyframes:[0,t]}),r=Math.min(ng(n),2e4);return{type:"keyframes",ease:e=>n.next(r*e).value/t,duration:tc(r)}}(e,100,nS);return e.ease=t.ease,e.duration=tu(t.duration),e.type="keyframes",e};let nE=(e,t,i)=>(((1-3*i+3*t)*e+(3*i-6*t))*e+3*t)*e;function nC(e,t,i,n){if(e===t&&i===n)return eQ;let r=t=>(function(e,t,i,n,r){let s,o;let a=0;do(s=nE(o=t+(i-t)/2,n,r)-e)>0?i=o:t=o;while(Math.abs(s)>1e-7&&++a<12);return o})(t,0,1,e,i);return e=>0===e||1===e?e:nE(r(e),t,n)}let nA=nC(.42,0,1,1),nT=nC(0,0,.58,1),nO=nC(.42,0,.58,1),nj=e=>Array.isArray(e)&&"number"!=typeof e[0],nR=e=>t=>t<=.5?e(2*t)/2:(2-e(2*(1-t)))/2,nL=e=>t=>1-e(1-t),nM=nC(.33,1.53,.69,.99),n_=nL(nM),nD=nR(n_),nV=e=>e>=1?1:(e*=2)<1?.5*n_(e):.5*(2-Math.pow(2,-10*(e-1))),nI=e=>1-Math.sin(Math.acos(e)),nN=nL(nI),n$=nR(nI),nF={linear:eQ,easeIn:nA,easeInOut:nO,easeOut:nT,circIn:nI,circInOut:n$,circOut:nN,backIn:n_,backInOut:nD,backOut:nM,anticipate:nV},nB=e=>"string"==typeof e,nU=e=>{if(tP(e)){eO(4===e.length,"Cubic bezier arrays must contain four numerical values.","cubic-bezier-length");let[t,i,n,r]=e;return nC(t,i,n,r)}return nB(e)?(eO(void 0!==nF[e],`Invalid easing type '${e}'`,"invalid-easing-type"),nF[e]):e},nH=(e,t,i)=>{let n=t-e;return n?(i-e)/n:1};function nz({duration:e=300,keyframes:t,times:i,ease:n="easeInOut"}){let r=nj(n)?n.map(nU):nU(n),s={done:!1,value:t[0]},o=function(e,t,{clamp:i=!0,ease:n,mixer:r}={}){let s=e.length;if(eO(s===t.length,"Both input and output ranges must be the same length","range-length"),1===s)return()=>t[0];if(2===s&&t[0]===t[1])return()=>t[1];let o=e[0]===e[1];e[0]>e[s-1]&&(e=[...e].reverse(),t=[...t].reverse());let a=function(e,t,i){let n=[],r=i||e0.mix||nf,s=e.length-1;for(let i=0;i<s;i++){let s=r(e[i],e[i+1]);t&&(s=ne(Array.isArray(t)?t[i]||eQ:t,s)),n.push(s)}return n}(t,n,r),l=a.length,u=i=>{if(o&&i<e[0])return t[0];let n=0;if(l>1)for(;n<e.length-2&&!(i<e[n+1]);n++);let r=nH(e[n],e[n+1],i);return a[n](r)};return i?t=>u(M(e[0],e[s-1],t)):u}((i&&i.length===t.length?i:function(e){let t=[0];return function(e,t){let i=e[e.length-1];for(let n=1;n<=t;n++){let r=nH(0,t,n);e.push(ic(i,1,r))}}(t,e.length-1),t}(t)).map(t=>t*e),t,{ease:Array.isArray(r)?r:t.map(()=>r||nO).splice(0,t.length-1)});return{calculatedDuration:e,next:t=>(s.value=o(t),s.done=t>=e,s)}}let nW={decay:nk,inertia:nk,tween:nz,keyframes:nz,spring:nS};function nK(e){"string"==typeof e.type&&(e.type=nW[e.type])}let nq=e=>e/100;class nG extends tS{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!==t_.now()&&this.tick(t_.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;nK(e);let{type:t=nz,repeat:i=0,repeatDelay:n=0,repeatType:r,velocity:s=0}=e,{keyframes:o}=e,a=t||nz;a!==nz&&"number"!=typeof o[0]&&(this.mixKeyframes=ne(nq,nf(o[0],o[1])),o=[0,100]);let l=a({...e,keyframes:o});"mirror"===r&&(this.mirroredGenerator=a({...e,keyframes:[...o].reverse(),velocity:-s})),null===l.calculatedDuration&&(l.calculatedDuration=ng(l));let{calculatedDuration:u}=l;this.calculatedDuration=u,this.resolvedDuration=u+n,this.totalDuration=this.resolvedDuration*(i+1)-n,this.generator=l}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:o,resolvedDuration:a,calculatedDuration:l}=this;if(null===this.startTime)return n.next(0);let{delay:u=0,keyframes:c,repeat:h,repeatType:d,repeatDelay:p,type:f,onUpdate:m,finalKeyframe:g}=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 y=this.currentTime-u*(this.playbackSpeed>=0?1:-1),v=this.playbackSpeed>=0?y<0:y>r;this.currentTime=Math.max(y,0),"finished"===this.state&&null===this.holdTime&&(this.currentTime=r);let b=this.currentTime,x=n;if(h){let e=Math.min(this.currentTime,r)/a,t=Math.floor(e),i=e%1;!i&&e>=1&&(i=1),1===i&&t--,(t=Math.min(t,h+1))%2&&("reverse"===d?(i=1-i,p&&(i-=p/a)):"mirror"===d&&(x=o)),b=M(0,1,i)*a}v?(this.delayState.value=c[0],i=this.delayState):i=x.next(b),s&&!v&&(i.value=s(i.value));let{done:w}=i;v||null===l||(w=this.playbackSpeed>=0?this.currentTime>=r:this.currentTime<=0);let S=null===this.holdTime&&("finished"===this.state||"running"===this.state&&w);return S&&f!==nk&&(i.value=tw(c,this.options,g,this.speed)),m&&m(i.value),S&&this.finish(),i}then(e,t){return this.finished.then(e,t)}get duration(){return tc(this.calculatedDuration)}get iterationDuration(){let{delay:e=0}=this.options||{};return this.duration+tc(e)}get time(){return tc(this.currentTime)}set time(e){e=tu(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 nP(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(t_.now()),this.playbackSpeed=e,t&&this.driver&&(this.time=tc(this.currentTime))}play(){if(this.isStopped)return;let{driver:e=nm,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(t_.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)}}let nY={anticipate:nV,backInOut:nD,circInOut:n$};
1class nX extends tO{constructor(e){"string"==typeof e.ease&&e.ease in nY&&(e.ease=nY[e.ease]),nK(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 nG({...s,autoplay:!1}),a=Math.max(10,t_.now()-this.startTime),l=M(0,10,a-10),u=o.sample(a).value,{name:c}=this.options;r&&c&&tm(r,c,u),t.setWithVelocity(o.sample(Math.max(0,a-l)).value,u,l),o.stop()}}let nJ=(e,t)=>"zIndex"!==t&&!!("number"==typeof e||Array.isArray(e)||"string"==typeof e&&(eu.test(e)||"0"===e)&&!e.startsWith("url("));function nZ(e){e.duration=0,e.type="keyframes"}let nQ=/^(?:oklch|oklab|lab|lch|color|color-mix|light-dark)\(/,n0=new Set(["color","backgroundColor","outlineColor","fill","stroke","borderColor","borderTopColor","borderRightColor","borderBottomColor","borderLeftColor"]),n1=tg(()=>Object.hasOwnProperty.call(Element.prototype,"animate"));class n2 extends tS{constructor({autoplay:e=!0,delay:t=0,type:i="keyframes",repeat:n=0,repeatDelay:r=0,repeatType:s="loop",keyframes:o,name:a,motionValue:l,element:u,...c}){super(),this.stop=()=>{this._animation&&(this._animation.stop(),this.stopTimeline?.()),this.keyframeResolver?.cancel()},this.createdAt=t_.now();let h={autoplay:e,delay:t,type:i,repeat:n,repeatDelay:r,repeatType:s,name:a,motionValue:l,element:u,...c},d=u?.KeyframeResolver||tn;this.keyframeResolver=new d(o,(e,t,i)=>this.onKeyframesResolved(e,t,h,!i),a,l,u),this.keyframeResolver?.scheduleResolve()}onKeyframesResolved(e,t,i,n){let r;this.keyframeResolver=void 0;let{name:s,type:o,velocity:a,delay:l,isHandoff:u,onUpdate:c}=i;this.resolvedAt=t_.now();let h=!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],o=nJ(r,t),a=nJ(s,t);return eT(o===a,`You are trying to animate ${t} from "${r}" to "${s}". "${o?s:r}" is not an animatable value.`,"value-not-animatable"),!!o&&!!a&&(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||tT(i))&&n)}(e,s,o,a)&&(h=!1,(e0.instantAnimations||!l)&&c?.(tw(e,i,t)),e[0]=e[e.length-1],nZ(i),i.repeat=0);let d={startTime:n?this.resolvedAt&&this.resolvedAt-this.createdAt>40?this.resolvedAt:this.createdAt:void 0,finalKeyframe:t,...i,keyframes:e},p=h&&!u&&function(e){let{motionValue:t,name:i,repeatDelay:n,repeatType:r,damping:s,type:o,keyframes:a}=e,l=t?.owner?.current;if(!(l instanceof HTMLElement)&&!(l instanceof SVGElement))return!1;let{onUpdate:u,transformTemplate:c}=t.owner.getProps();return n1()&&i&&(tj.has(i)||n0.has(i)&&function(e){for(let t=0;t<e.length;t++)if("string"==typeof e[t]&&nQ.test(e[t]))return!0;return!1}(a))&&("transform"!==i||!c)&&!u&&!n&&"mirror"!==r&&0!==s&&"inertia"!==o}(d),f=d.motionValue?.owner?.current;if(p)try{r=new nX({...d,element:f})}catch{r=new nG(d)}else r=new nG(d);r.finished.then(()=>{this.notifyFinished()}).catch(eQ),this.pendingTimeline&&(this.stopTimeline=r.attachTimeline(this.pendingTimeline),this.pendingTimeline=void 0),this._animation=r}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(),te=!0,ti(),tt(),te=!1),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()}}let n3={type:"spring",stiffness:500,damping:25,restSpeed:10},n5=e=>({type:"spring",stiffness:550,damping:0===e?2*Math.sqrt(550):30,restSpeed:10}),n8={type:"keyframes",duration:.8},n6={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},n9=(e,{keyframes:t})=>t.length>2?n8:L.has(e)?e.startsWith("scale")?n5(t[1]):n3:n6,n4=new Set(["when","delay","delayChildren","staggerChildren","staggerDirection","repeat","repeatType","repeatDelay","from","elapsed"]),n7=(e,t,i,n={},r,s)=>o=>{let a=i9(n,e)||{},l=a.delay||n.delay||0,{elapsed:u=0}=n;u-=tu(l);let c={keyframes:Array.isArray(i)?i:[null,i],ease:"easeOut",velocity:t.getVelocity(),...a,delay:-u,onUpdate:e=>{t.set(e),a.onUpdate&&a.onUpdate(e)},onComplete:()=>{o(),a.onComplete&&a.onComplete()},name:e,motionValue:t,element:s?void 0:r};!function(e){for(let t in e)if(!n4.has(t))return!0;return!1}(a)&&Object.assign(c,n9(e,c)),c.duration&&(c.duration=tu(c.duration)),c.repeatDelay&&(c.repeatDelay=tu(c.repeatDelay)),void 0!==c.from&&(c.keyframes[0]=c.from);let h=!1;if(!1!==c.type&&(0!==c.duration||c.repeatDelay)||(nZ(c),0!==c.delay||(h=!0)),(e0.instantAnimations||e0.skipAnimations||r?.shouldSkipAnimations||a.skipAnimations)&&(h=!0,nZ(c),c.delay=0),c.allowFlatten=!a.type&&!a.ease,h&&!s&&void 0!==t.get()){let e=tw(c.keyframes,a);if(void 0!==e){e3.update(()=>{c.onUpdate(e),c.onComplete()});return}}return a.isSync?new nG(c):new n2(c)};function re(e,t,{delay:i=0,transitionOverride:n,type:r}={}){let{transition:s,transitionEnd:o,...a}=t,l=e.getDefaultTransition();s=s?i6(s,l):l;let u=s?.reduceMotion,c=s?.skipAnimations;n&&(s=n);let h=[],d=r&&e.animationState&&e.animationState.getState()[r],p=s?.path;for(let t in p&&p.animateVisualElement(e,a,s,i,h),a){let n=e.getValue(t,e.latestValues[t]??null),r=a[t];if(void 0===r||d&&function({protectedKeys:e,needsAnimating:t},i){let n=e.hasOwnProperty(i)&&!0!==t[i];return t[i]=!1,n}(d,t))continue;let o={delay:i,...i9(s||{},t)};c&&(o.skipAnimations=!0);let l=n.get();if(void 0!==l&&!n.isAnimating()&&!Array.isArray(r)&&r===l&&!o.velocity){e3.update(()=>n.set(r));continue}let p=!1;if(window.MotionHandoffAnimation){let i=e.props[iQ];if(i){let e=window.MotionHandoffAnimation(i,t,e3);null!==e&&(o.startTime=e,p=!0)}}i7(e,t);let f=u??e.shouldReduceMotion;n.start(n7(t,n,r,f&&ek.has(t)?{type:!1}:o,e,p));let m=n.animation;m&&h.push(m)}if(o){let t=()=>e3.update(()=>{o&&function(e,t){let{transitionEnd:i={},transition:n={},...r}=i8(e,t)||{};for(let t in r={...r,...i}){var s;let i=i4(s=r[t])?s[s.length-1]||0:s;e.hasValue(t)?e.getValue(t).set(i):e.addValue(t,t$(i))}}(e,o)});h.length?Promise.all(h).then(t):t()}return h}function rt(e,t,i,n=0,r=1){let s=Array.from(e).sort((e,t)=>
1e.sortNodePosition(t)).indexOf(t),o=e.size,a=(o-1)*n;return"function"==typeof i?i(s,o):1===r?s*n:a-s*n}function ri(e,t,i={}){let n=i8(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(re(e,n,i)):()=>Promise.resolve(),o=e.variantChildren&&e.variantChildren.size?(n=0)=>{let{delayChildren:s=0,staggerChildren:o,staggerDirection:a}=r;return function(e,t,i=0,n=0,r=0,s=1,o){let a=[];for(let l of e.variantChildren)l.notify("AnimationStart",t),a.push(ri(l,t,{...o,delay:i+("function"==typeof n?0:n)+rt(e.variantChildren,l,n,r,s)}).then(()=>l.notify("AnimationComplete",t)));return Promise.all(a)}(e,t,n,s,o,a,i)}:()=>Promise.resolve(),{when:a}=r;if(!a)return Promise.all([s(),o(i.delay)]);{let[e,t]="beforeChildren"===a?[s,o]:[o,s];return e().then(()=>t())}}let rn=tK.length;function rr(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 rs=[...tW].reverse(),ro=tW.length;function ra(e=!1){return{isActive:e,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function rl(){return{animate:ra(!0),whileInView:ra(),whileHover:ra(),whileTap:ra(),whileDrag:ra(),whileFocus:ra(),exit:ra()}}class ru extends i5{constructor(e){super(e),e.animationState||(e.animationState=function(e){let t=t=>Promise.all(t.map(({animation:t,options:i})=>(function(e,t,i={}){let n;if(e.notify("AnimationStart",t),Array.isArray(t))n=Promise.all(t.map(t=>ri(e,t,i)));else if("string"==typeof t)n=ri(e,t,i);else{let r="function"==typeof t?i8(e,t,i.custom):t;n=Promise.all(re(e,r,i))}return n.then(()=>{e.notify("AnimationComplete",t)})})(e,t,i))),i=rl(),n=!0,r=!1,s=t=>(i,n)=>{let r=i8(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 o(o){let{props:a}=e,l=function e(t){if(!t)return;if(!t.isControllingVariants){let i=t.parent&&e(t.parent)||{};return void 0!==t.props.initial&&(i.initial=t.props.initial),i}let i={};for(let e=0;e<rn;e++){let n=tK[e],r=t.props[n];(tz(r)||!1===r)&&(i[n]=r)}return i}(e.parent)||{},u=[],c=new Set,h={},d=1/0;for(let t=0;t<ro;t++){var p;let f=rs[t],m=i[f],g=void 0!==a[f]?a[f]:l[f],y=tz(g),v=f===o?m.isActive:null;!1===v&&(d=t);let b=g===l[f]&&g!==a[f]&&y;if(b&&(n||r)&&e.manuallyAnimateOnMount&&(b=!1),m.protectedKeys={...h},!m.isActive&&null===v||!g&&!m.prevProp||tH(g)||"boolean"==typeof g)continue;if("exit"===f&&m.isActive&&!0!==v){m.prevResolvedValues&&(h={...h,...m.prevResolvedValues});continue}let x=(p=m.prevProp,"string"==typeof g?g!==p:!!Array.isArray(g)&&!rr(g,p)),w=x||f===o&&m.isActive&&!b&&y||t>d&&y,S=!1,P=Array.isArray(g)?g:[g],k=P.reduce(s(f),{});!1===v&&(k={});let{prevResolvedValues:E={}}=m,C={...E,...k},A=t=>{w=!0,c.has(t)&&(S=!0,c.delete(t)),m.needsAnimating[t]=!0;let i=e.getValue(t);i&&(i.liveStyle=!1)};for(let e in C){let t=k[e],i=E[e];if(!h.hasOwnProperty(e))(i4(t)&&i4(i)?!rr(t,i)||x:t!==i)?null!=t?A(e):c.add(e):void 0!==t&&c.has(e)?A(e):m.protectedKeys[e]=!0}m.prevProp=g,m.prevResolvedValues=k,m.isActive&&(h={...h,...k}),(n||r)&&e.blockInitialAnimation&&(w=!1);let T=b&&x,O=!T||S;w&&O&&u.push(...P.map(t=>{let i={type:f};if("string"==typeof t&&(n||r)&&!T&&e.manuallyAnimateOnMount&&e.parent){let{parent:n}=e,r=i8(n,t);if(n.enteringChildren&&r){let{delayChildren:t}=r.transition||{};i.delay=rt(n.enteringChildren,e,t)}}return{animation:t,options:i}}))}if(c.size){let t={};if("boolean"!=typeof a.initial){let i=i8(e,Array.isArray(a.initial)?a.initial[0]:a.initial);i&&i.transition&&(t.transition=i.transition)}c.forEach(i=>{let n=e.getBaseTarget(i),r=e.getValue(i);r&&(r.liveStyle=!0),t[i]=n??null}),u.push({animation:t})}let f=!!u.length;return n&&(!1===a.initial||a.initial===a.animate)&&!e.manuallyAnimateOnMount&&(f=!1),n=!1,r=!1,f?t(u):Promise.resolve()}return{animateChanges:o,setActive:function(t,n){if(i[t].isActive===n)return Promise.resolve();e.variantChildren?.forEach(e=>e.animationState?.setActive(t,n)),i[t].isActive=n;let r=o(t);for(let e in i)i[e].protectedKeys={};return r},setAnimateFunction:function(i){t=i(e)},getState:()=>i,reset:()=>{i=rl(),r=!0}}}(e))}updateAnimationControlsSubscription(){let{animate:e}=this.node.getProps();tH(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 rc=0;class rh extends i5{constructor(){super(...arguments),this.id=rc++,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=i8(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(()=>
1{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 rd={x:!1,y:!1};function rp(e){return[e("x"),e("y")]}function rf(e){return e.max-e.min}function rm(e,t,i,n=.5){e.origin=n,e.originPoint=ic(t.min,t.max,e.origin),e.scale=rf(i)/rf(t),e.translate=ic(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 rg(e,t,i,n){rm(e.x,t.x,i.x,n?n.originX:void 0),rm(e.y,t.y,i.y,n?n.originY:void 0)}function ry(e,t,i,n=0){let r=n?ic(i.min,i.max,n):i.min;e.min=r+t.min,e.max=e.min+rf(t)}function rv(e,t,i,n=0){let r=n?ic(i.min,i.max,n):i.min;e.min=t.min-r,e.max=e.min+rf(t)}function rb(e,t,i,n){rv(e.x,t.x,i.x,n?.x),rv(e.y,t.y,i.y,n?.y)}let rx=new Set(["BUTTON","INPUT","SELECT","TEXTAREA","A"]),rw=new Set(["INPUT","SELECT","TEXTAREA"]);function rS(e,t,i,n={passive:!0}){return e.addEventListener(t,i,n),()=>e.removeEventListener(t,i,n)}let rP=e=>"object"==typeof e&&null!==e;function rk(e){return rP(e)&&"ownerSVGElement"in e}function rE(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)}let rC=new WeakMap,rA=(e,t,i)=>(n,r)=>r&&r[0]?r[0][e+"Size"]:rk(n)&&"getBBox"in n?n.getBBox()[t]:n[i],rT=rA("inline","width","offsetWidth"),rO=rA("block","height","offsetHeight");function rj({target:e,borderBoxSize:t}){rC.get(e)?.forEach(i=>{i(e,{get width(){return rT(e,t)},get height(){return rO(e,t)}})})}function rR(e){e.forEach(rj)}let rL=new Set;function rM(e,t){return"function"==typeof e?(rL.add(e),s||(s=()=>{let e={get width(){return window.innerWidth},get height(){return window.innerHeight}};rL.forEach(t=>t(e))},window.addEventListener("resize",s)),()=>{rL.delete(e),rL.size||"function"!=typeof s||(window.removeEventListener("resize",s),s=void 0)}):function(e,t){r||"undefined"==typeof ResizeObserver||(r=new ResizeObserver(rR));let i=rE(e);return i.forEach(e=>{let i=rC.get(e);i||(i=new Set,rC.set(e,i)),i.add(t),r?.observe(e)}),()=>{i.forEach(e=>{let i=rC.get(e);i?.delete(t),i?.size||r?.unobserve(e)})}}(e,t)}let r_=e=>"mouse"===e.pointerType?"number"!=typeof e.button||e.button<=0:!1!==e.isPrimary;function rD(e){return{point:{x:e.pageX,y:e.pageY}}}let rV=e=>t=>r_(t)&&e(t,rD(t));function rI(e,t,i,n){return rS(e,t,rV(i),n)}let rN=({current:e})=>e?e.ownerDocument.defaultView:null,r$=(e,t)=>Math.abs(e-t),rF=new Set(["auto","scroll"]);class rB{constructor(e,t,{transformPagePoint:i,contextWindow:n=window,dragSnapToOrigin:r=!1,distanceThreshold:s=3,element:o}={}){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=()=>{var e,t;if(!(this.lastMoveEvent&&this.lastMoveEventInfo))return;this.lastRawMoveEventInfo&&(this.lastMoveEventInfo=rU(this.lastRawMoveEventInfo,this.transformPagePoint));let i=rz(this.lastMoveEventInfo,this.history),n=null!==this.startEvent,r=(e=i.offset,t={x:0,y:0},Math.sqrt(r$(e.x,t.x)**2+r$(e.y,t.y)**2)>=this.distanceThreshold);if(!n&&!r)return;let{point:s}=i,{timestamp:o}=e8;this.history.push({...s,timestamp:o});let{onStart:a,onMove:l}=this.handlers;n||(a&&a(this.lastMoveEvent,i),this.startEvent=this.lastMoveEvent),l&&l(this.lastMoveEvent,i)},this.handlePointerMove=(e,t)=>{this.lastMoveEvent=e,this.lastRawMoveEventInfo=t,this.lastMoveEventInfo=rU(t,this.transformPagePoint),e3.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=rz("pointercancel"===e.type?this.lastMoveEventInfo:rU(t,this.transformPagePoint),this.history);this.startEvent&&i&&i(e,s),n&&n(e,s)},!r_(e))return;this.dragSnapToOrigin=r,this.handlers=t,this.transformPagePoint=i,this.distanceThreshold=s,this.contextWindow=n||window;let a=rU(rD(e),this.transformPagePoint),{point:l}=a,{timestamp:u}=e8;this.history=[{...l,timestamp:u}];let{onSessionStart:c}=t;c&&c(e,rz(a,this.history));let h={passive:!0,capture:!0};this.removeListeners=ne(rI(this.contextWindow,"pointermove",this.handlePointerMove,h),rI(this.contextWindow,"pointerup",this.handlePointerUp,h),rI(this.contextWindow,"pointercancel",this.handlePointerUp,h)),o&&this.startScrollTracking(o)}startScrollTracking(e){let t=e.parentElement;for(;t;){let e=getComputedStyle(t);(rF.has(e.overflowX)||rF.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),e3.update(this.updatePoint,!0))}updateHandlers(e){this.handlers=e}end(){this.removeListeners&&this.removeListeners(),this.removeScrollListeners&&this.removeScrollListeners(),this.scrollPositions.clear(),e5(this.updatePoint)}}function rU(e,t){return t?{point:t(e.point)}:e}function rH(e,t){return{x:e.x-t.x,y:e.y-t.y}}function rz({point:e},t){return{point:e,delta:rH(e,rW(t)),offset:rH(e,t[0]),velocity:function(e,t){if(e.length<2)return{x:0,y:0};let i=e.length-1,n=null,r=rW(e);for(;i>=0&&(n=e[i],!(r.timestamp-n.timestamp>tu(.1)));)i--;if(!n)return{x:0,y:0};n===e[0]&&e.length>2&&r.timestamp-n.timestamp>2*tu(.1)&&(n=e[1]);let s=tc(r.timestamp-n.timestamp);if(0===s)return{x:0,y:0};let o={x:(r.x-n.x)/s,y:(r.y-n.y)/s}
1;return o.x===1/0&&(o.x=0),o.y===1/0&&(o.y=0),o}(t,.1)}}function rW(e){return e[e.length-1]}function rK(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 rq(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 rG(e,t,i){return{min:rY(e,t),max:rY(e,i)}}function rY(e,t){return"number"==typeof e?e:e[t]||0}let rX=new WeakMap;class rJ{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=eS(),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 rB(e,{onSessionStart:e=>{t&&this.snapToCursor(rD(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?rd[i]?null:(rd[i]=!0,()=>{rd[i]=!1}):rd.x||rd.y?null:(rd.x=rd.y=!0,()=>{rd.x=rd.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),rp(e=>{let t=this.getAxisMotionValue(e).get()||0;if(G.test(t)){let{projection:i}=this.visualElement;if(i&&i.layout){let n=i.layout.layoutBox[e];if(n){let e=rf(n);t=parseFloat(t)/100*e}}}this.originPoint[e]=t}),r&&e3.update(()=>r(e,t),!1,!0),i7(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:o}=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}(o),null!==this.currentDirection&&r&&r(this.currentDirection);return}this.updateAxis("x",t.point,o),this.updateAxis("y",t.point,o),this.visualElement.render(),s&&e3.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:rN(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:o}=this.getProps();o&&e3.postRender(()=>o(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||!rQ(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?ic(t,e,n.min):Math.max(e,t):void 0!==i&&e>i&&(e=n?ic(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&&i1(e)?this.constraints||(this.constraints=this.resolveRefConstraints()):e&&i?this.constraints=function(e,{top:t,left:i,bottom:n,right:r}){return{x:rK(e.x,i,r),y:rK(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:rG(e,"left","right"),y:rG(e,"top","bottom")}}(t),n!==this.constraints&&!i1(e)&&i&&this.constraints&&!this.hasMutatedConstraints&&rp(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||!i1(t))return!1;let n=t.current;eO(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=function(e,t,i){let n=iO(e,i),{scroll:r}=t;return r&&(iE(n.x,r.offset.x),iE(n.y,r.offset.y)),n}(n,r.root,this.visualElement.getTransformPagePoint()),o={x:rq((e=r.layout.layoutBox).x,s.x),y:rq(e.y,s.y)};if(i){let e=i(function({x:e,y:t}){return{top:t.min,right:e.max,bottom:t.max,left:e.min}}(o));this.hasMutatedConstraints=!!e,e&&(o=iy(e))}return o}startAnimation(e){let{drag:t,dragMomentum:i,dragElastic:n,dragTransition:r,dragSnapToOrigin:s,onDragTransitionEnd:o}=this.getProps(),a=this.constraints||{};return Promise.all(rp(o=>
1{if(!rQ(o,t,this.currentDirection))return;let l=a&&a[o]||{};(!0===s||s===o)&&(l={min:0,max:0});let u={type:"inertia",velocity:i?e[o]:0,bounceStiffness:n?200:1e6,bounceDamping:n?40:1e7,timeConstant:750,restDelta:1,restSpeed:10,...r,...l};return this.startAxisValueAnimation(o,u)})).then(o)}startAxisValueAnimation(e,t){let i=this.getAxisMotionValue(e);return i7(this.visualElement,e),i.start(n7(e,i,0,t,this.visualElement,!1))}stopAnimation(){rp(e=>this.getAxisMotionValue(e).stop())}getAxisMotionValue(e){let t=`_drag${e.toUpperCase()}`;return this.visualElement.getProps()[t]||this.visualElement.getValue(e,this.visualElement.latestValues[e]??0)}snapToCursor(e){rp(t=>{let{drag:i}=this.getProps();if(!rQ(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],o=r.get()||0;r.set(e[t]-ic(i,s,.5)+o)}})}scalePositionWithinConstraints(){if(!this.visualElement.current)return;let{drag:e,dragConstraints:t}=this.getProps(),{projection:i}=this.visualElement;if(!i1(t)||!i||!this.constraints)return;this.stopAnimation();let n={x:0,y:0};rp(e=>{let t=this.getAxisMotionValue(e);if(t&&!1!==this.constraints){let i=t.get();n[e]=function(e,t){let i=.5,n=rf(e),r=rf(t);return r>n?i=nH(t.min,t.max-n,e.min):n>r&&(i=nH(e.min,e.max-r,t.min)),M(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(),rp(t=>{if(!rQ(t,e,null))return;let i=this.getAxisMotionValue(t),{min:r,max:s}=this.constraints[t];i.set(ic(r,s,n[t]))}),this.visualElement.render()}addListeners(){let e;if(!this.visualElement.current)return;rX.set(this.visualElement,this);let t=this.visualElement.current,i=rI(t,"pointerdown",e=>{let{drag:i,dragListener:n=!0}=this.getProps(),r=e.target,s=r!==t&&(rw.has(r.tagName)||!0===r.isContentEditable);i&&n&&!s&&this.start(e)}),n=()=>{let{dragConstraints:i}=this.getProps();i1(i)&&i.current&&(this.constraints=this.resolveRefConstraints(),e||(e=function(e,t,i){let n=rM(e,rZ(i)),r=rM(t,rZ(i));return()=>{n(),r()}}(t,i.current,()=>this.scalePositionWithinConstraints())))},{projection:r}=this.visualElement,s=r.addEventListener("measure",n);r&&!r.layout&&(r.root&&r.root.updateScroll(),r.updateLayout()),e3.read(n);let o=rS(window,"resize",()=>this.scalePositionWithinConstraints()),a=r.addEventListener("didUpdate",({delta:e,hasLayoutChanged:t})=>{this.isDragging&&t&&(rp(t=>{let i=this.getAxisMotionValue(t);i&&(this.originPoint[t]+=e[t].translate,i.set(i.get()+e[t].translate))}),this.visualElement.render())});return()=>{o(),i(),s(),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:o=!0}=e;return{...e,drag:t,dragDirectionLock:i,dragPropagation:n,dragConstraints:r,dragElastic:s,dragMomentum:o}}}function rZ(e){let t=!0;return()=>{if(t){t=!1;return}e()}}function rQ(e,t,i){return(!0===t||t===e)&&(null===i||i===e)}class r0 extends i5{constructor(e){super(e),this.removeGroupControls=eQ,this.removeListeners=eQ,this.controls=new rJ(e)}mount(){let{dragControls:e}=this.node.getProps();e&&(this.removeGroupControls=e.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||eQ}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 r1=e=>(t,i)=>{e&&e3.update(()=>e(t,i),!1,!0)};class r2 extends i5{constructor(){super(...arguments),this.removePointerDownListener=eQ}onPointerDown(e){this.session=new rB(e,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint(),contextWindow:rN(this.node)})}createPanHandlers(){let{onPanSessionStart:e,onPanStart:t,onPan:i,onPanEnd:n}=this.node.getProps();return{onSessionStart:r1(e),onStart:r1(t),onMove:r1(i),onEnd:(e,t)=>{delete this.session,n&&e3.postRender(()=>n(e,t))}}}mount(){this.removePointerDownListener=rI(this.node.current,"pointerdown",e=>this.onPointerDown(e))}update(){this.session&&this.session.updateHandlers(this.createPanHandlers())}unmount(){this.removePointerDownListener(),this.session&&this.session.end()}}let r3={hasAnimatedSinceResize:!0,hasEverUpdated:!1},r5=!1;class r8 extends m.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),r5&&r.root.didUpdate(),r.addEventListener("animationComplete",()=>{this.safeToRemove()}),r.setOptions({...r.options,layoutDependency:this.props.layoutDependency,onExitComplete:()=>this.safeToRemove()})),r3.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}),r5=!0,n||e.layoutDependency!==t||void 0===t||e.isPresent!==r?s.willUpdate():this.safeToRemove(),e.isPresent===r||(r?s.promote():s.relegate()||e3.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(),tR.postRender(()=>{!i.currentAnimation&&i.isLead()&&this.safeToRemove()}))}componentWillUnmount(){let{visualElement:e,layoutGroup:t,switchLayoutGroup:i}=this.props,{projection:n}=e;r5=!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 r6(e){let[t,i]=function(e=!0){let t=(0,m.useContext)(iW);if(null===t)return[!0,null];let{isPresent:i,onExitComplete:n,register:r}=t,s=(0,m.useId)();(0,m.useEffect)(()=>
1{if(e)return r(s)},[e]);let o=(0,m.useCallback)(()=>e&&n&&n(s),[s,n,e]);return!i&&n?[!1,o]:[!0]}(),n=(0,m.useContext)(iM);return(0,u.jsx)(r8,{...e,layoutGroup:n,switchLayoutGroup:(0,m.useContext)(i0),isPresent:t,safeToRemove:i})}let r9={value:null,addProjectionMetrics:null},r4=ia.length,r7=e=>"string"==typeof e?parseFloat(e):e,se=e=>"number"==typeof e||Y.test(e);function st(e,t){return void 0!==e[t]?e[t]:e.borderRadius}let si=sr(0,.5,nN),sn=sr(.5,.95,eQ);function sr(e,t,i){return n=>n<e?0:n>t?1:i(nH(e,t,n))}function ss(e,t){e.min=t.min,e.max=t.max}function so(e,t){ss(e.x,t.x),ss(e.y,t.y)}function sa(e,t){e.translate=t.translate,e.scale=t.scale,e.originPoint=t.originPoint,e.origin=t.origin}function sl(e,t,i,n,r){return e-=t,e=n+1/i*(e-n),void 0!==r&&(e=n+1/r*(e-n)),e}function su(e,t,[i,n,r],s,o){!function(e,t=0,i=1,n=.5,r,s=e,o=e){if(G.test(t)&&(t=parseFloat(t),t=ic(o.min,o.max,t/100)-o.min),"number"!=typeof t)return;let a=ic(s.min,s.max,n);e===s&&(a-=t),e.min=sl(e.min,t,i,a,r),e.max=sl(e.max,t,i,a,r)}(e,t[i],t[n],t[r],t.scale,s,o)}let sc=["x","scaleX","originX"],sh=["y","scaleY","originY"];function sd(e,t,i,n){su(e.x,t,sc,i?i.x:void 0,n?n.x:void 0),su(e.y,t,sh,i?i.y:void 0,n?n.y:void 0)}function sp(e){return 0===e.translate&&1===e.scale}function sf(e){return sp(e.x)&&sp(e.y)}function sm(e,t){return e.min===t.min&&e.max===t.max}function sg(e,t){return Math.round(e.min)===Math.round(t.min)&&Math.round(e.max)===Math.round(t.max)}function sy(e,t){return sg(e.x,t.x)&&sg(e.y,t.y)}function sv(e){return rf(e.x)/rf(e.y)}function sb(e,t){return e.translate===t.translate&&e.scale===t.scale&&e.originPoint===t.originPoint}class sx{constructor(){this.members=[]}add(e){th(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||(td(this.members,i),i.unmount())}e.scheduleRender()}remove(e){if(td(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 sw=(e,t)=>e.depth-t.depth;class sS{constructor(){this.children=[],this.isDirty=!1}add(e){th(this.children,e),this.isDirty=!0}remove(e){td(this.children,e),this.isDirty=!0}forEach(e){this.isDirty&&this.children.sort(sw),this.isDirty=!1,this.children.forEach(e)}}let sP={nodes:0,calculatedTargetDeltas:0,calculatedProjections:0},sk=["","X","Y","Z"],sE=0;function sC(e,t,i,n){let{latestValues:r}=t;r[e]&&(i[e]=r[e],t.setStaticValue(e,0),n&&(n[e]=0))}function sA({attachResizeListener:e,defaultParent:t,measureScroll:i,checkIsScrollRoot:n,resetTransform:r}){return class{constructor(e={},i=t?.()){this.id=sE++,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,r9.value&&(sP.nodes=sP.calculatedTargetDeltas=sP.calculatedProjections=0),this.nodes.forEac
1h(sj),this.nodes.forEach(s$),this.nodes.forEach(sF),this.nodes.forEach(sR),r9.addProjectionMetrics&&r9.addProjectionMetrics(sP)},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 sS)}addEventListener(e,t){return this.eventHandlers.has(e)||this.eventHandlers.set(e,new tp),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=rk(t)&&!(rk(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,r=()=>this.root.updateBlockedByResize=!1;e3.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=t_.now(),n=({timestamp:t})=>{let r=t-i;r>=250&&(e5(n),e(r-250))};return e3.setup(n,!0),()=>e5(n)}(r,0),r3.hasAnimatedSinceResize&&(r3.hasAnimatedSinceResize=!1,this.nodes.forEach(sN)))})}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()||sK,{onLayoutAnimationStart:o,onLayoutAnimationComplete:a}=r.getProps(),l=!this.targetLayout||!sy(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={...i9(s,"layout"),onPlay:o,onComplete:a};(r.shouldReduceMotion||this.options.layoutRoot)&&(t.delay=0,t.type=!1),this.startAnimation(t),this.setAnimationOrigin(e,u,t.path)}else t||sN(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(),e5(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(sB),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 e(t){if(t.hasCheckedOptimisedAppear=!0,t.root===t)return;let{visualElement:i}=t.options;if(!i)return;let n=i.props[iQ];if(window.MotionHasOptimisedAnimation(n,"transform")){let{layout:e,layoutId:i}=t.options;window.MotionCancelOptimisedAnimation(n,"transform",e3,!(e||i))}let{parent:r}=t;r&&!r.hasCheckedOptimisedAppear&&e(r)}(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(){if(this.updateScheduled=!1,this.isUpdateBlocked()){let e=this.updateBlockedByResize;this.unblockUpdate(),this.updateBlockedByResize=!1,this.clearAllSnapshots(),e&&this.nodes.forEac
1h(s_),this.nodes.forEach(sM);return}if(this.animationId<=this.animationCommitId){this.nodes.forEach(sD);return}this.animationCommitId=this.animationId,this.isUpdating?(this.isUpdating=!1,this.nodes.forEach(sV),this.nodes.forEach(sI),this.nodes.forEach(sT),this.nodes.forEach(sO)):this.nodes.forEach(sD),this.clearAllSnapshots();let e=t_.now();e8.delta=M(0,1e3/60,e-e8.timestamp),e8.timestamp=e,e8.isProcessing=!0,e6.update.process(e8),e6.preRender.process(e8),e6.render.process(e8),e8.isProcessing=!1}didUpdate(){this.updateScheduled||(this.updateScheduled=!0,tR.read(this.scheduleUpdate))}clearAllSnapshots(){this.nodes.forEach(sL),this.sharedNodes.forEach(sU)}scheduleUpdateProjection(){this.projectionUpdateScheduled||(this.projectionUpdateScheduled=!0,e3.preRender(this.updateProjection,!1,!0))}scheduleCheckAfterUnmount(){e3.postRender(()=>{this.isLayoutDirty?this.root.didUpdate():this.root.checkUpdateFailed()})}updateSnapshot(){this.snapshot||!this.instance||(this.snapshot=this.measure(),!this.snapshot||rf(this.snapshot.measuredBox.x)||rf(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++)this.path[e].updateScroll();let e=this.layout;this.layout=this.measure(!1),this.layoutVersion++,this.layoutCorrected||(this.layoutCorrected=eS()),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&&!sf(this.projectionDelta),i=this.getTransformTemplate(),n=i?i(this.latestValues,""):void 0,s=n!==this.prevTransformTemplateValue;e&&this.instance&&(t||ix(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)),sY((t=n).x),sY(t.y),{animationId:this.root.animationId,measuredBox:i,layoutBox:n,latestValues:{},source:this.id}}measurePageBox(){let{visualElement:e}=this.options;if(!e)return eS();let t=e.measureViewportBox();if(!(this.scroll?.wasRoot||this.path.some(sJ))){let{scroll:e}=this.root;e&&(iE(t.x,e.offset.x),iE(t.y,e.offset.y))}return t}removeElementScroll(e){let t=eS();if(so(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&&so(t,e),iE(t.x,r.offset.x),iE(t.y,r.offset.y))}return t}applyTransform(e,t=!1,i){let n=i||eS();so(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&&(iE(n.x,-i.scroll.offset.x),iE(n.y,-i.scroll.offset.y)),ix(i.latestValues)&&iT(n,i.latestValues,i.layout?.layoutBox)}return ix(this.latestValues)&&iT(n,this.latestValues,this.layout?.layoutBox),n}removeTransform(e){let t=eS();so(t,e);for(let e=0;e<this.path.length;e++){let i;let n=this.path[e];ix(n.latestValues)&&(n.instance&&(ib(n.latestValues)&&n.updateSnapshot(),so(i=eS(),n.measurePageBox())),sd(t,n.latestValues,n.snapshot?.layoutBox,i))}return ix(this.latestValues)&&sd(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!==e8.timestamp&&this.relativeParent.resolveTargetDelta(!0)}resolveTargetDelta(e=!1){let t=this.getLead();this.isProjectionDirty||(this.isProjectionDirty=t.isProjectionDirty),this.isTransformDirty||(this.isTransformDirty=t.
1isTransformDirty),this.isSharedProjectionDirty||(this.isSharedProjectionDirty=t.isSharedProjectionDirty);let i=!!this.resumingFrom||this!==t;if(!(e||i&&this.isSharedProjectionDirty||this.isProjectionDirty||this.parent?.isProjectionDirty||this.attemptToResolveRelativeTarget||this.root.updateBlockedByResize))return;let{layout:n,layoutId:r}=this.options;if(!this.layout||!(n||r))return;this.resolvedRelativeTargetAt=e8.timestamp;let s=this.getClosestProjectingParent();if(s&&this.linkedParentVersion!==s.layoutVersion&&!s.options.layoutRoot&&this.removeRelativeTarget(),this.targetDelta||this.relativeTarget||(!1!==this.options.layoutAnchor&&s&&s.layout?this.createRelativeTarget(s,this.layout.layoutBox,s.layout.layoutBox):this.removeRelativeTarget()),this.relativeTarget||this.targetDelta){if(this.target||(this.target=eS(),this.targetWithTransforms=eS()),this.relativeTarget&&this.relativeTargetOrigin&&this.relativeParent&&this.relativeParent.target){var o,a,l,u;this.forceRelativeParentToResolveTarget(),o=this.target,a=this.relativeTarget,l=this.relativeParent.target,u=this.options.layoutAnchor||void 0,ry(o.x,a.x,l.x,u?.x),ry(o.y,a.y,l.y,u?.y)}else this.targetDelta?(this.resumingFrom?this.applyTransform(this.layout.layoutBox,!1,this.target):so(this.target,this.layout.layoutBox),ik(this.target,this.targetDelta)):so(this.target,this.layout.layoutBox);this.attemptToResolveRelativeTarget&&(this.attemptToResolveRelativeTarget=!1,!1!==this.options.layoutAnchor&&s&&!!s.resumingFrom==!!this.resumingFrom&&!s.options.layoutScroll&&s.target&&1!==this.animationProgress?this.createRelativeTarget(s,this.target,s.target):this.relativeParent=this.relativeTarget=void 0),r9.value&&sP.calculatedTargetDeltas++}}getClosestProjectingParent(){return!this.parent||ib(this.parent.latestValues)||iw(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=eS(),this.relativeTargetOrigin=eS(),rb(this.relativeTargetOrigin,t,i,this.options.layoutAnchor||void 0),so(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===e8.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;so(this.layoutCorrected,this.layout.layoutBox);let s=this.treeScale.x,o=this.treeScale.y;!function(e,t,i,n=!1){let r,s;let o=i.length;if(o){t.x=t.y=1;for(let a=0;a<o;a++){s=(r=i[a]).projectionDelta;let{visualElement:o}=r.options;(!o||!o.props.style||"contents"!==o.props.style.display)&&(n&&r.options.layoutScroll&&r.scroll&&r!==r.root&&(iE(e.x,-r.scroll.offset.x),iE(e.y,-r.scroll.offset.y)),s&&(t.x*=s.x.scale,t.y*=s.y.scale,ik(e,s)),n&&ix(r.latestValues)&&iT(e,r.latestValues,r.layout?.layoutBox))}t.x<1.0000000000001&&t.x>.999999999999&&(t.x=1),t.y<1.0000000000001&&t.y>.999999999999&&(t.y=1)}}(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=eS());let{target:a}=e;if(!a){this.prevProjectionDelta&&(this.createProjectionDeltas(),this.scheduleRender());return}this.projectionDelta&&this.prevProjectionDelta?(sa(this.prevProjectionDelta.x,this.projectionDelta.x),sa(this.prevProjectionDelta.y,this.projectionDelta.y)):this.createProjectionDeltas(),rg(this.projectionDelta,this.layoutCorrected,a,this.latestValues),this.treeScale.x===s&&this.treeScale.y===o&&sb(this.projectionDelta.x,this.prevProjectionDelta.x)&&sb(this.projectionDelta.y,this.prevProjectionDelta.y)||(this.hasProjected=!0,this.scheduleRender(),this.notifyListeners("projectionUpdate",a)),r9.value&&sP.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=ex(),this.projectionDelta=ex(),this.projectionDeltaWithTransform=ex()}setAnimationOrigin(e,t=!1,i){let n;let r=this.snapshot,s=r?r.latestValues:{},o={...this.latestValues},a=ex();this.relativeParent&&this.relativeParent.options.layoutRoot||(this.relativeTarget=this.relativeTargetOrigin=void 0),this.attemptToResolveRelativeTarget=!t;let l=eS(),u=(r?r.source:void 0)!==(this.layout?this.layout.source:void 0),c=this.getStack(),h=!c||c.members.length<=1,d=!!(u&&!h&&
1!0===this.options.crossfade&&!this.path.some(sW));this.animationProgress=0;let p=i?.interpolateProjection(e);this.mixTargetDelta=t=>{let i=t/1e3,r=p?.(i);if(r?(a.x.translate=r.x,a.x.scale=ic(e.x.scale,1,i),a.x.origin=e.x.origin,a.x.originPoint=e.x.originPoint,a.y.translate=r.y,a.y.scale=ic(e.y.scale,1,i),a.y.origin=e.y.origin,a.y.originPoint=e.y.originPoint):(sH(a.x,e.x,i),sH(a.y,e.y,i)),this.setTargetDelta(a),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout){var c,f,m,g;rb(l,this.layout.layoutBox,this.relativeParent.layout.layoutBox,this.options.layoutAnchor||void 0),m=this.relativeTarget,g=this.relativeTargetOrigin,sz(m.x,g.x,l.x,i),sz(m.y,g.y,l.y,i),n&&(c=this.relativeTarget,f=n,sm(c.x,f.x)&&sm(c.y,f.y))&&(this.isProjectionDirty=!1),n||(n=eS()),so(n,this.relativeTarget)}u&&(this.animationValues=o,function(e,t,i,n,r,s){r?(e.opacity=ic(0,i.opacity??1,si(n)),e.opacityExit=ic(t.opacity??1,0,sn(n))):s&&(e.opacity=ic(t.opacity??1,i.opacity??1,n));for(let r=0;r<r4;r++){let s=ia[r],o=st(t,s),a=st(i,s);(void 0!==o||void 0!==a)&&(o||(o=0),a||(a=0),0===o||0===a||se(o)===se(a)?(e[s]=Math.max(ic(r7(o),r7(a),n),0),(G.test(a)||G.test(o))&&(e[s]+="%")):e[s]=a)}(t.rotate||i.rotate)&&(e.rotate=ic(t.rotate||0,i.rotate||0,n))}(o,s,this.latestValues,i,d,h)),r&&void 0!==r.rotate&&(this.animationValues||(this.animationValues=o),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&&(e5(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=e3.update(()=>{r3.hasAnimatedSinceResize=!0,this.motionValue||(this.motionValue=t$(0)),this.motionValue.jump(0,!1),this.currentAnimation=function(e,t,i){let n=eP(e)?e:t$(e);return n.start(n7("",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&&sX(this.options.animationType,this.layout.layoutBox,n.layoutBox)){i=this.target||eS();let t=rf(this.layout.layoutBox.x);i.x.min=e.target.x.min,i.x.max=i.x.min+t;let n=rf(this.layout.layoutBox.y);i.y.min=e.target.y.min,i.y.max=i.y.min+n}so(t,i),iT(t,r),rg(this.projectionDeltaWithTransform,this.layoutCorrected,t,r)}}registerSharedNode(e,t){this.sharedNodes.has(e)||this.sharedNodes.set(e,new sx),this.sharedNodes.get(e).add(t);let i=t.options.initialPromotionConfig;t.promote({transition:i?i.transition:void 0,preserveFollowOpacity:i&&i.shouldPreserveFollowOpacity?i.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;return 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&&sC("z",e,n,this.animationValues);for(let t=0;t<sk.length;t++)sC(`rotate${sk[t]}`,e,n,this.animationValues),sC(`skew${sk[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=iz(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=iz(t?.pointerEvents)||""),this.hasProjected&&!ix(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,o=i?.z||0;if((r||s||o)&&(n=`translate3d(${r}px, ${s}px, ${o}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:o,skewX:a,skewY:l}=i;e&&(n=`perspective(${e}px) ${n}`),t&&(n+=`rotate(${t}deg) `),r&&(n+=`rotate(${r}deg) `),s&&(n+=`rotateX(${s}deg) `),o&&(n+=`rotateY(${o}deg) `),a&&(n+=`skewX(${a}deg) `),l&&(n+=`skewY(${l}deg) `)}let a=e.x.scale*t.x,l=e.y.scale*t.y;return(1!==a||1!==l)&&(n+=`scale(${a}, ${l})`),n||"none"}(this.projectionDeltaWithTransform,this.treeScale,r);
1i&&(s=i(r,s)),e.transform=s;let{x:o,y:a}=this.projectionDelta;for(let t in e.transformOrigin=`${100*o.origin}% ${100*a.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,ih){if(void 0===r[t])continue;let{correct:i,applyTo:o,isCSSVariable:a}=ih[t],l="none"===s?r[t]:i(r[t],n);if(o){let t=o.length;for(let i=0;i<t;i++)e[o[i]]=l}else a?this.options.visualElement.renderState.vars[t]=l:e[t]=l}this.options.layoutId&&(e.pointerEvents=n===this?iz(t?.pointerEvents)||"":"none")}clearSnapshot(){this.resumeFrom=this.snapshot=void 0}resetTree(){this.root.nodes.forEach(e=>e.currentAnimation?.stop()),this.root.nodes.forEach(sM),this.root.sharedNodes.clear()}}}function sT(e){e.updateLayout()}function sO(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)rp(e=>{let n=s?t.measuredBox[e]:t.layoutBox[e],r=rf(n);n.min=i[e].min,n.max=n.min+r});else if("x"===r||"y"===r){let e="x"===r?"y":"x";ss(s?t.measuredBox[e]:t.layoutBox[e],i[e])}else sX(r,t.layoutBox,i)&&rp(n=>{let r=s?t.measuredBox[n]:t.layoutBox[n],o=rf(i[n]);r.max=r.min+o,e.relativeTarget&&!e.currentAnimation&&(e.isProjectionDirty=!0,e.relativeTarget[n].max=e.relativeTarget[n].min+o)});let o=ex();rg(o,i,t.layoutBox);let a=ex();s?rg(a,e.applyTransform(n,!0),t.measuredBox):rg(a,i,t.layoutBox);let l=!sf(o),u=!1;if(!e.resumeFrom){let n=e.getClosestProjectingParent();if(n&&!n.resumeFrom){let{snapshot:r,layout:s}=n;if(r&&s){let o=e.options.layoutAnchor||void 0,a=eS();rb(a,t.layoutBox,r.layoutBox,o);let l=eS();rb(l,i,s.layoutBox,o),sy(a,l)||(u=!0),n.options.layoutRoot&&(e.relativeTarget=l,e.relativeTargetOrigin=a,e.relativeParent=n)}}}e.notifyListeners("didUpdate",{layout:i,snapshot:t,delta:a,layoutDelta:o,hasLayoutChanged:l,hasRelativeLayoutChanged:u})}else if(e.isLead()){let{onExitComplete:t}=e.options;t&&t()}e.options.transition=void 0}function sj(e){r9.value&&sP.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 sR(e){e.isProjectionDirty=e.isSharedProjectionDirty=e.isTransformDirty=!1}function sL(e){e.clearSnapshot()}function sM(e){e.clearMeasurements()}function s_(e){e.isLayoutDirty=!0,e.updateLayout()}function sD(e){e.isLayoutDirty=!1}function sV(e){e.isAnimationBlocked&&e.layout&&!e.isLayoutDirty&&(e.snapshot=e.layout,e.isLayoutDirty=!0)}function sI(e){let{visualElement:t}=e.options;t&&t.getProps().onBeforeLayoutMeasure&&t.notify("BeforeLayoutMeasure"),e.resetTransform()}function sN(e){e.finishAnimation(),e.targetDelta=e.relativeTarget=e.target=void 0,e.isProjectionDirty=!0}function s$(e){e.resolveTargetDelta()}function sF(e){e.calcProjection()}function sB(e){e.resetSkewAndRotation()}function sU(e){e.removeLeadSnapshot()}function sH(e,t,i){e.translate=ic(t.translate,0,i),e.scale=ic(t.scale,1,i),e.origin=t.origin,e.originPoint=t.originPoint}function sz(e,t,i,n){e.min=ic(t.min,i.min,n),e.max=ic(t.max,i.max,n)}function sW(e){return e.animationValues&&void 0!==e.animationValues.opacityExit}let sK={duration:.45,ease:[.4,0,.1,1]},sq=e=>"undefined"!=typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().includes(e),sG=sq("applewebkit/")&&!sq("chrome/")?Math.round:eQ;function sY(e){e.min=sG(e.min),e.max=sG(e.max)}function sX(e,t,i){return"position"===e||"preserve-aspect"===e&&!(.2>=Math.abs(sv(t)-sv(i)))}function sJ(e){return e!==e.root&&e.scroll?.wasRoot}let sZ=sA({attachResizeListener:(e,t)=>rS(e,"resize",t),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body?.scrollLeft||0,y:document.documentElement.scrollTop||document.body?.scrollTop||0}),checkIsScrollRoot:()=>!0}),sQ={current:void 0},s0=sA({measureScroll:e=>({x:e.scrollLeft,y:e.scrollTop}),defaultParent:()=>{if(!sQ.current){let e=new sZ({});e.mount(window),e.setOptions({layoutScroll:!0}),sQ.current=e}return sQ.current},resetTransform:(e,t)=>
1{e.style.transform=void 0!==t?t:"none"},checkIsScrollRoot:e=>"fixed"===window.getComputedStyle(e).position});function s1(e,t){let i=rE(e),n=new AbortController;return[i,{passive:!0,...t,signal:n.signal},()=>n.abort()]}function s2(e,t,i){let{props:n}=e;e.animationState&&n.whileHover&&e.animationState.setActive("whileHover","Start"===i);let r=n["onHover"+i];r&&e3.postRender(()=>r(t,rD(t)))}class s3 extends i5{mount(){let{current:e}=this.node;e&&(this.unmount=function(e,t,i={}){let[n,r,s]=s1(e,i);return n.forEach(e=>{let i,n=!1,s=!1,o=()=>{e.removeEventListener("pointerleave",u)},a=e=>{i&&(i(e),i=void 0),o()},l=e=>{n=!1,window.removeEventListener("pointerup",l),window.removeEventListener("pointercancel",l),s&&(s=!1,a(e))},u=e=>{if("touch"!==e.pointerType){if(n){s=!0;return}a(e)}};e.addEventListener("pointerenter",n=>{if("touch"===n.pointerType||rd.x||rd.y)return;s=!1;let o=t(e,n);"function"==typeof o&&(i=o,e.addEventListener("pointerleave",u,r))},r),e.addEventListener("pointerdown",()=>{n=!0,window.addEventListener("pointerup",l,r),window.addEventListener("pointercancel",l,r)},r)}),s}(e,(e,t)=>(s2(this.node,t,"Start"),e=>s2(this.node,e,"End"))))}unmount(){}}class s5 extends i5{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=ne(rS(this.node.current,"focus",()=>this.onFocus()),rS(this.node.current,"blur",()=>this.onBlur()))}unmount(){}}let s8=(e,t)=>!!t&&(e===t||s8(e,t.parentElement)),s6=new WeakSet;function s9(e){return t=>{"Enter"===t.key&&e(t)}}function s4(e,t){e.dispatchEvent(new PointerEvent("pointer"+t,{isPrimary:!0,bubbles:!0}))}let s7=(e,t)=>{let i=e.currentTarget;if(!i)return;let n=s9(()=>{if(s6.has(i))return;s4(i,"down");let e=s9(()=>{s4(i,"up")});i.addEventListener("keyup",e,t),i.addEventListener("blur",()=>s4(i,"cancel"),t)});i.addEventListener("keydown",n,t),i.addEventListener("blur",()=>i.removeEventListener("keydown",n),t)};function oe(e){return r_(e)&&!(rd.x||rd.y)}let ot=new WeakSet;function oi(e,t,i){let{props:n}=e;if(e.current instanceof HTMLButtonElement&&e.current.disabled)return;e.animationState&&n.whileTap&&e.animationState.setActive("whileTap","Start"===i);let r=n["onTap"+("End"===i?"":i)];r&&e3.postRender(()=>r(t,rD(t)))}class on extends i5{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]=s1(e,i),o=e=>{let n=e.currentTarget;if(!oe(e)||ot.has(e))return;s6.add(n),i.stopPropagation&&ot.add(e);let s=t(n,e),o={...r,capture:!0},a=(e,t)=>{window.removeEventListener("pointerup",l,o),window.removeEventListener("pointercancel",u,o),s6.has(n)&&s6.delete(n),oe(e)&&"function"==typeof s&&s(e,{success:t})},l=e=>{a(e,n===window||n===document||i.useGlobalTarget||s8(n,e.target))},u=e=>{a(e,!1)};window.addEventListener("pointerup",l,o),window.addEventListener("pointercancel",u,o)};return n.forEach(e=>{(i.useGlobalTarget?window:e).addEventListener("pointerdown",o,r),!rP(e)||!("offsetHeight"in e)||"ownerSVGElement"in e||(e.addEventListener("focus",e=>s7(e,r)),rx.has(e.tagName)||!0===e.isContentEditable||e.hasAttribute("tabindex")||(e.tabIndex=0))}),s}(e,(e,t)=>(oi(this.node,t,"Start"),(e,{success:t})=>oi(this.node,e,t?"End":"Cancel")),{useGlobalTarget:t,stopPropagation:i?.tap===!1})}unmount(){}}let or=new WeakMap,os=new WeakMap,oo=e=>{let t=or.get(e.target);t&&t(e)},oa=e=>{e.forEach(oo)},ol={some:0,all:1};class ou extends i5{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:ol[n]};this.stopObserver=function(e,t,i){let n=function({root:e,...t}){let i=e||document;os.has(i)||os.set(i,{});
1let n=os.get(i),r=JSON.stringify(t);return n[r]||(n[r]=new IntersectionObserver(oa,{root:e,...t})),n[r]}(t);return or.set(e,i),n.observe(e),()=>{or.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;["amount","margin","root"].some(function({viewport:e={}},{viewport:t={}}={}){return i=>e[i]!==t[i]}(e,t))&&this.startObserver()}unmount(){this.stopObserver?.(),this.hasEnteredView=!1,this.isInView=!1}}let oc=function(e,t){if("undefined"==typeof Proxy)return i3;let i=new Map,n=(i,n)=>i3(i,n,e,t);return new Proxy((e,t)=>n(e,t),{get:(r,s)=>"create"===s?n:(i.has(s)||i.set(s,i3(s,void 0,e,t)),i.get(s))})}({animation:{Feature:ru},exit:{Feature:rh},inView:{Feature:ou},tap:{Feature:on},focus:{Feature:s5},hover:{Feature:s3},pan:{Feature:r2},drag:{Feature:r0,ProjectionNode:s0,MeasureLayout:r6},layout:{ProjectionNode:s0,MeasureLayout:r6}},(e,t)=>t.isSVG??iL(e)?new ig(t):new ij(t,{allowProjection:e!==m.Fragment}));var oh=i(91387),od=i.n(oh);function op(){return(op=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var i=arguments[t];for(var n in i)({}).hasOwnProperty.call(i,n)&&(e[n]=i[n])}return e}).apply(null,arguments)}var of=function(e){return m.createElement("svg",op({xmlns:"http://www.w3.org/2000/svg",width:37,height:36,viewBox:"0 0 37 36"},e),a||(a=m.createElement("defs",null,m.createElement("clipPath",{id:"a"},m.createElement("path",{d:"M0 0h37v36H0z"})))),l||(l=m.createElement("g",{clipPath:"url(#a)"},m.createElement("path",{fill:"#252323",d:"M5.237 18.6 9.786 4.375h17.428l1.769 5.534h-15.4l-.983 3.139h17.387l2.613 8.176-14.1 10.484-13.4-9.969h9.049l4.312 3.207 8.531-6.346ZM29.316 1H7.684L1 22.016 18.5 35 36 22.012Z"}))))},om=i(13505),og=i(35317);function oy(){let[e,t]=(0,m.useState)(!1),[i,n]=(0,m.useState)(""),[r,s]=(0,m.useState)(!1),[o,a]=(0,m.useState)(!1),{locale:l}=(0,f.useRouter)();return(0,m.useEffect)(()=>{let e=window.location.hostname;if(-1==e.indexOf("sifive-dev.vercel.app")&&-1==e.indexOf("localhost")){n("https://agents.truthkeep.ai/sifive/sifive-external-chat-agent/widget?title="+("en-us"==l?"SiFive Chat (Beta)":"SiFive 助手 (测试版)")+"&subTitle="+("en-us"==l?"Ask anything about SiFive products and services":"随时询问有关 SiFive 产品和服务的任何问题")+"&primaryColor=%23f64813&domain="+e+"&placeholder="+("en-us"==l?"Ask me anything...":"欢迎询问任何问题"));let o=document.getElementById("resizeHandle"),u=document.getElementById("chatWindow");function i(e){e.clientX<window.innerWidth&&(u.style.width="".concat(window.innerWidth-parseInt(window.getComputedStyle(u).right)-e.clientX,"px"),u.style.height="".concat(window.innerHeight-parseInt(window.getComputedStyle(u).bottom)-e.clientY,"px"))}function r(){document.body.style.userSelect="",u.style.pointerEvents="auto",window.removeEventListener("mousemove",i),window.removeEventListener("mouseup",r)}o.addEventListener("mousedown",function(e){document.body.style.userSelect="none",u.style.pointerEvents="none",window.addEventListener("mousemove",i),window.addEventListener("mouseup",r)}),setTimeout(()=>{"true"==window.sessionStorage.getItem("truthOpen")&&(t(!0),s(!0))},500),setTimeout(()=>{"closed"!=window.sessionStorage.getItem("truthCTA")&&a(!0)},5e3),window.addEventListener("message",e=>{"truthkeepai_messagesent"===e.data.event&&"sent"==e.data.data.message?(window.dataLayer=window.dataLayer||[],dataLayer.push({event:"truthkeepai_messagesent",pageURL:window.location.href})):"truthkeepai_formsubmit"===e.data.event&&"submit"==e.data.data.form&&(window.dataLayer=window.dataLayer||[],dataLayer.push({event:"truthkeepai_formsubmit",pageURL:window.location.href}))})}},[]),(0,u.jsxs)("section",{className:od().chatWidget,style:{display:""!=i?"block":"none"},children:[(0,u.jsxs)("div",{id:"chatWindow",className:"".concat(od().panel," ").concat(r?od().opened:""),children:[(0,u.jsx)("iframe",{id:"truthKeepIFrame",tabIndex:0,src:e?i:"",width:"100%",height:"100%",allow:"microphone; camera",referrerPolicy:"unsafe-url"}),(0,u.jsx)("div",{className:od().resizeHandle,id:"resizeHandle"}),(0,u.jsx)("div",{className:od().chatArrow})]}),(0,u.jsxs)("div",{id:"chatCTA",className:"".concat(od().panel," ").concat(od().panel2," ").concat(!r&&o?od().opened:""),children:[(0,u.jsxs)("div",{className:"p-4 text-center",children:[(0,u.jsx)("strong",{children:"en-us"==l?"Got a question?":"有任何问题吗ï¼
1Ÿ"}),(0,u.jsx)("p",{children:"en-us"==l?"Our AI chatbot can help!":"AI 助手为您解答"}),(0,u.jsx)(og.K,{type:"filled",style:{width:"100%"},onClick:()=>{window.sessionStorage.setItem("truthOpen",!r),window.sessionStorage.setItem("truthCTA","closed"),window.dataLayer=window.dataLayer||[],dataLayer.push({event:"truthkeepai_popupclick",pageURL:window.location.href}),t(!0),s(!r),a(!1)},children:"en-us"==l?"Chat Now":"立即开始"})]}),(0,u.jsx)("div",{className:od().chatArrow})]}),(0,u.jsxs)(oc.button,{onClick:()=>{o?(window.sessionStorage.setItem("truthCTA","closed"),window.sessionStorage.setItem("truthOpen",!1),s(!1),a(!1)):(window.sessionStorage.setItem("truthOpen",!r),t(!0),s(!r)),window.dataLayer=window.dataLayer||[],dataLayer.push({event:"truthkeepai_click",pageURL:window.location.href})},title:"".concat(r||o?"Close Chat":"Open Chat"),className:od().chatIconButton,initial:{scale:0,rotate:180,opacity:0},animate:{scale:1,rotate:0,opacity:1,y:[0,-8,0]},transition:{type:"spring",stiffness:260,damping:20,y:{duration:4,repeat:1/0,ease:"easeInOut"}},whileHover:{scale:1.1,rotate:-5,transition:{duration:.2}},whileTap:{scale:.9},"aria-label":"Open chat",children:[(0,u.jsx)("div",{className:od().chatIcon,children:r||o?(0,u.jsx)(om.Z,{}):(0,u.jsx)(of,{})}),(0,u.jsx)("div",{className:od().pulseRingCont,children:(0,u.jsx)(oc.div,{className:od().pulseRing,animate:{scale:[1,1.5,1],opacity:[.5,0,0]},transition:{duration:2,repeat:1/0,ease:"easeOut",times:[0,.5,1]}})}),(0,u.jsx)("img",{src:"/assets/chat-logo.png",alt:"Chat",className:od().chatIconImage})]})]})}var ov=(0,c.Jc)(function(e){let{Component:t,pageProps:i}=e;return(0,u.jsxs)(u.Fragment,{children:[(0,u.jsx)(j(),{children:(0,u.jsx)("meta",{name:"viewport",content:"width=device-width, initial-scale=1"})}),(0,u.jsx)(T.l0,{children:(0,u.jsx)(t,{...i})}),(0,u.jsx)(A,{repositoryName:"sifive"}),(0,u.jsx)(oy,{})]})})},89079:function(e){"use strict";var t=Object.defineProperty,i=Object.getOwnPropertyDescriptor,n=Object.getOwnPropertyNames,r=Object.prototype.hasOwnProperty,s={};function o(e){var t;let i=["path"in e&&e.path&&`Path=${e.path}`,"expires"in e&&(e.expires||0===e.expires)&&`Expires=${("number"==typeof e.expires?new Date(e.expires):e.expires).toUTCString()}`,"maxAge"in e&&"number"==typeof e.maxAge&&`Max-Age=${e.maxAge}`,"domain"in e&&e.domain&&`Domain=${e.domain}`,"secure"in e&&e.secure&&"Secure","httpOnly"in e&&e.httpOnly&&"HttpOnly","sameSite"in e&&e.sameSite&&`SameSite=${e.sameSite}`,"partitioned"in e&&e.partitioned&&"Partitioned","priority"in e&&e.priority&&`Priority=${e.priority}`].filter(Boolean),n=`${e.name}=${encodeURIComponent(null!=(t=e.value)?t:"")}`;return 0===i.length?n:`${n}; ${i.join("; ")}`}function a(e){let t=new Map;for(let i of e.split(/; */)){if(!i)continue;let e=i.indexOf("=");if(-1===e){t.set(i,"true");continue}let[n,r]=[i.slice(0,e),i.slice(e+1)];try{t.set(n,decodeURIComponent(null!=r?r:"true"))}catch{}}return t}function l(e){var t,i;if(!e)return;let[[n,r],...s]=a(e),{domain:o,expires:l,httponly:h,maxage:d,path:p,samesite:f,secure:m,partitioned:g,priority:y}=Object.fromEntries(s.map(([e,t])=>[e.toLowerCase(),t]));return function(e){let t={};for(let i in e)e[i]&&(t[i]=e[i]);return t}({name:n,value:decodeURIComponent(r),domain:o,...l&&{expires:new Date(l)},...h&&{httpOnly:!0},..."string"==typeof d&&{maxAge:Number(d)},path:p,...f&&{sameSite:u.includes(t=(t=f).toLowerCase())?t:void 0},...m&&{secure:!0},...y&&{priority:c.includes(i=(i=y).toLowerCase())?i:void 0},...g&&{partitioned:!0}})}((e,i)=>{for(var n in i)t(e,n,{get:i[n],enumerable:!0})})(s,{RequestCookies:()=>h,ResponseCookies:()=>d,parseCookie:()=>a,parseSetCookie:()=>l,stringifyCookie:()=>o}),e.exports=((e,s,o,a)=>{if(s&&"object"==typeof s||"function"==typeof s)for(let l of n(s))r.call(e,l)||l===o||t(e,l,{get:()=>s[l],enumerable:!(a=i(s,l))||a.enumerable});return e})(t({},"__esModule",{value:!0}),s);var u=["strict","lax","none"],c=["low","medium","high"],h=class{constructor(e){this._parsed=new Map,this._headers=e;let t=e.get("cookie");if(t)for(let[e,i]of a(t))this._parsed.set(e,{name:e,value:i})}[Symbol.iterator](){return this._parsed[Symbol.iterator]()}get size(){return this._parsed.size}get(...e){let t="string"==typeof e[0]?e[0]:e[0].name;return this._parsed.get(t)}getAll(...e){var t;let i=Array.from(this._parsed);if(!e.length)return i.map(([e,t])=>t);let n="string"==typeof e[0]?e[0]:null==(t=e[0])?void 0:t.name;return i.filter(([e])=>e===n).map(([e,t])=>t)}
1has(e){return this._parsed.has(e)}set(...e){let[t,i]=1===e.length?[e[0].name,e[0].value]:e,n=this._parsed;return n.set(t,{name:t,value:i}),this._headers.set("cookie",Array.from(n).map(([e,t])=>o(t)).join("; ")),this}delete(e){let t=this._parsed,i=Array.isArray(e)?e.map(e=>t.delete(e)):t.delete(e);return this._headers.set("cookie",Array.from(t).map(([e,t])=>o(t)).join("; ")),i}clear(){return this.delete(Array.from(this._parsed.keys())),this}[Symbol.for("edge-runtime.inspect.custom")](){return`RequestCookies ${JSON.stringify(Object.fromEntries(this._parsed))}`}toString(){return[...this._parsed.values()].map(e=>`${e.name}=${encodeURIComponent(e.value)}`).join("; ")}},d=class{constructor(e){var t,i,n;this._parsed=new Map,this._headers=e;let r=null!=(n=null!=(i=null==(t=e.getSetCookie)?void 0:t.call(e))?i:e.get("set-cookie"))?n:[];for(let e of Array.isArray(r)?r:function(e){if(!e)return[];var t,i,n,r,s,o=[],a=0;function l(){for(;a<e.length&&/\s/.test(e.charAt(a));)a+=1;return a<e.length}for(;a<e.length;){for(t=a,s=!1;l();)if(","===(i=e.charAt(a))){for(n=a,a+=1,l(),r=a;a<e.length&&"="!==(i=e.charAt(a))&&";"!==i&&","!==i;)a+=1;a<e.length&&"="===e.charAt(a)?(s=!0,a=r,o.push(e.substring(t,n)),t=a):a=n+1}else a+=1;(!s||a>=e.length)&&o.push(e.substring(t,e.length))}return o}(r)){let t=l(e);t&&this._parsed.set(t.name,t)}}get(...e){let t="string"==typeof e[0]?e[0]:e[0].name;return this._parsed.get(t)}getAll(...e){var t;let i=Array.from(this._parsed.values());if(!e.length)return i;let n="string"==typeof e[0]?e[0]:null==(t=e[0])?void 0:t.name;return i.filter(e=>e.name===n)}has(e){return this._parsed.has(e)}set(...e){let[t,i,n]=1===e.length?[e[0].name,e[0].value,e[0]]:e,r=this._parsed;return r.set(t,function(e={name:"",value:""}){return"number"==typeof e.expires&&(e.expires=new Date(e.expires)),e.maxAge&&(e.expires=new Date(Date.now()+1e3*e.maxAge)),(null===e.path||void 0===e.path)&&(e.path="/"),e}({name:t,value:i,...n})),function(e,t){for(let[,i]of(t.delete("set-cookie"),e)){let e=o(i);t.append("set-cookie",e)}}(r,this._headers),this}delete(...e){let[t,i,n]="string"==typeof e[0]?[e[0]]:[e[0].name,e[0].path,e[0].domain];return this.set({name:t,path:i,domain:n,value:"",expires:new Date(0)})}[Symbol.for("edge-runtime.inspect.custom")](){return`ResponseCookies ${JSON.stringify(Object.fromEntries(this._parsed))}`}toString(){return[...this._parsed.values()].map(o).join("; ")}}},91387:function(e){e.exports={chatWidget:"ChatWidget_chatWidget__2X12S",toggle:"ChatWidget_toggle__6wQVA",panel:"ChatWidget_panel__UsI4l",chatArrow:"ChatWidget_chatArrow__FvZig",panel2:"ChatWidget_panel2__Bb5yJ",resizeHandle:"ChatWidget_resizeHandle__14pQL",opened:"ChatWidget_opened__3TK0K",chatIconButton:"ChatWidget_chatIconButton__TGnuF",chatIcon:"ChatWidget_chatIcon__DcgoC",pulseRingCont:"ChatWidget_pulseRingCont__GY7AU",pulseRing:"ChatWidget_pulseRing__gZ7Wh",chatIconImage:"ChatWidget_chatIconImage__HYCVB"}},93128:function(e){e.exports={primary:"PrimaryButton_primary__l4SPy",arrow:"PrimaryButton_arrow__GxeIq",large:"PrimaryButton_large__QhMMp",filled:"PrimaryButton_filled__ARyxP",white:"PrimaryButton_white__8_74i",orange:"PrimaryButton_orange__DrB5s",darkOrange:"PrimaryButton_darkOrange__HX6pC",blue:"PrimaryButton_blue__bJxq6",glassdoor:"PrimaryButton_glassdoor__LOcxU"}},3502:function(){},99313:function(){},84040:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var i in t)Object.defineProperty(e,i,{enumerable:!0,get:t[i]})}(t,{getPathname:function(){return n},isFullStringUrl:function(){return r},parseUrl:function(){return s}});let i="http://n";function n(e){return new URL(e,i).pathname}function r(e){return/https?:\/\//.test(e)}function s(e){let t;try{t=new URL(e,i)}catch{}return t}},47325:function(e,t,i){"use strict";var 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,{Postpone:function(){return d},createPostponedAbortSignal:function(){return v},createPrerenderState:function(){return u},formatDynamicAPIAccesses:function(){return g},markCurrentScopeAsDynamic:function(){return c},trackDynamicDataAccessed:function(){return h},trackDynamicFetch:function(){return p},usedDynamicAPIs:function(){return m}});let r=(n=i(67294))&&n.__esModule?n:{default:n},s=i(1539),o=i(72700),a=i(84040),l="function"==typeof r.default.unstable_postpone;function u(e){return{isDebugSkeleton:e,dynamicAccesses:[]}}function c(e,t){let i=(0,a.getPathname)(e.urlPathname);if(!e.isUnstableCacheCallback){if(e.dynamicShouldError)throw new o.StaticGenBailoutError(`Route ${i} with \`dynamic = "error"\` couldn't be rendered statically because it used \`${t}\`. See more info here: https://nextjs.org/docs/app/building-your-application/rendering/static-and-dynamic#dynamic-rendering`);if(e.prerenderState)f(e.prerenderState,t,i);else if(e.revalidate=0,e.isStaticGeneration){let n=new s.DynamicServerError(`Route ${i} couldn't be rendered statically because it used ${t}. See more info here: https://nextjs.org/docs/messages/dynamic-server-error`);throw e.dynamicUsageDescription=t,e.dynamicUsageStack=n.stack,n}}}function h(e,t){let i=(0,a.getPathname)(e.urlPathname);if(e.isUnstableCacheCallback)throw Error(`Route ${i} used "${t}" inside a function cached with "unstable_cache(...)". Accessing Dynamic data sources inside a cache scope is not supported. If you need this data inside a cached function use "${t}" outside of the cached function and pass the required dynamic data in as an argument. See more info here: https://nextjs.org/docs/app/api-reference/functions/unstable_cache`);if(e.dynamicShouldError)throw new o.StaticGenBailoutError(`Route ${i} with \`dynamic = "error"\` couldn't be rendered statically because it used \`${t}\`. See more info here: https://nextjs.org/docs/app/building-your-application/rendering/static-and-dynamic#dynamic-rendering`);if(e.prerenderState)f(e.prerenderState,t,i);else if(e.revalidate=0,e.isStaticGeneration){let n=new s.DynamicServerError(`Route ${i} couldn't be rendered statically because it used \`${t}\`. See more info here: https://nextjs.org/docs/messages/dynamic-server-error`);throw e.dynamicUsageDescription=t,e.dynamicUsageStack=n.stack,n}}function d({reason:e,prerenderState:t,pathname:i}){f(t,e,i)}function p(e,t){e.prerenderState&&f(e.prerenderState,t,e.urlPathname)}function f(e,t,i){y();let n=`Route ${i} needs to bail out of prerendering at this point because it used ${t}. React throws this special object to indicate where. It should not be caught by your own try/catch. Learn more: https://nextjs.org/docs/messages/ppr-caught-error`;e.dynamicAccesses.push({stack:e.isDebugSkeleton?Error().stack:void 0,expression:t}),r.default.unstable_postpone(n)}function m(e){return e.dynamicAccesses.length>0}function g(e){return e.dynamicAccesses.filter(e=>"string"==typeof e.stack&&e.stack.length>0).map(({expression:e,stack:t})=>(t=t.split("\n").slice(4).filter(e=>!(e.includes("node_modules/next/")||e.includes(" (<anonymous>)")||e.includes(" (node:"))).join("\n"),`Dynamic API Usage Debug - ${e}:
2${t}`))}function y(){if(!l)throw Error("Invariant: React.unstable_postpone is not defined. This suggests the wrong version of React was loaded. This is a bug in Next.js")}function v(e){y();let t=new AbortController;try{r.default.unstable_postpone(e)}catch(e){t.abort(e)}return t.signal}},34042:function(e,t,i){"use strict";
2Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var i in t)Object.defineProperty(e,i,{enumerable:!0,get:t[i]})}(t,{HeadersAdapter:function(){return s},ReadonlyHeadersError:function(){return r}});let n=i(47246);class r extends Error{constructor(){super("Headers cannot be modified. Read more: https://nextjs.org/docs/app/api-reference/functions/headers")}static callable(){throw new r}}class s extends Headers{constructor(e){super(),this.headers=new Proxy(e,{get(t,i,r){if("symbol"==typeof i)return n.ReflectAdapter.get(t,i,r);let s=i.toLowerCase(),o=Object.keys(e).find(e=>e.toLowerCase()===s);if(void 0!==o)return n.ReflectAdapter.get(t,o,r)},set(t,i,r,s){if("symbol"==typeof i)return n.ReflectAdapter.set(t,i,r,s);let o=i.toLowerCase(),a=Object.keys(e).find(e=>e.toLowerCase()===o);return n.ReflectAdapter.set(t,a??i,r,s)},has(t,i){if("symbol"==typeof i)return n.ReflectAdapter.has(t,i);let r=i.toLowerCase(),s=Object.keys(e).find(e=>e.toLowerCase()===r);return void 0!==s&&n.ReflectAdapter.has(t,s)},deleteProperty(t,i){if("symbol"==typeof i)return n.ReflectAdapter.deleteProperty(t,i);let r=i.toLowerCase(),s=Object.keys(e).find(e=>e.toLowerCase()===r);return void 0===s||n.ReflectAdapter.deleteProperty(t,s)}})}static seal(e){return new Proxy(e,{get(e,t,i){switch(t){case"append":case"delete":case"set":return r.callable;default:return n.ReflectAdapter.get(e,t,i)}}})}merge(e){return Array.isArray(e)?e.join(", "):e}static from(e){return e instanceof Headers?e:new s(e)}append(e,t){let i=this.headers[e];"string"==typeof i?this.headers[e]=[i,t]:Array.isArray(i)?i.push(t):this.headers[e]=t}delete(e){delete this.headers[e]}get(e){let t=this.headers[e];return void 0!==t?this.merge(t):null}has(e){return void 0!==this.headers[e]}set(e,t){this.headers[e]=t}forEach(e,t){for(let[i,n]of this.entries())e.call(t,n,i,this)}*entries(){for(let e of Object.keys(this.headers)){let t=e.toLowerCase(),i=this.get(t);yield[t,i]}}*keys(){for(let e of Object.keys(this.headers)){let t=e.toLowerCase();yield t}}*values(){for(let e of Object.keys(this.headers)){let t=this.get(e);yield t}}[Symbol.iterator](){return this.entries()}}},47246:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"ReflectAdapter",{enumerable:!0,get:function(){return i}});
2class i{static get(e,t,i){let n=Reflect.get(e,t,i);return"function"==typeof n?n.bind(e):n}static set(e,t,i,n){return Reflect.set(e,t,i,n)}static has(e,t){return Reflect.has(e,t)}static deleteProperty(e,t){return Reflect.deleteProperty(e,t)}}},9407:function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var i in t)Object.defineProperty(e,i,{enumerable:!0,get:t[i]})}(t,{MutableRequestCookiesAdapter:function(){return h},ReadonlyRequestCookiesError:function(){return o},RequestCookiesAdapter:function(){return a},appendMutableCookies:function(){return c},getModifiedCookieValues:function(){return u}});let n=i(80255),r=i(47246),s=i(18119);class o extends Error{constructor(){super("Cookies can only be modified in a Server Action or Route Handler. Read more: https://nextjs.org/docs/app/api-reference/functions/cookies#cookiessetname-value-options")}static callable(){throw new o}}class a{static seal(e){return new Proxy(e,{get(e,t,i){switch(t){case"clear":case"delete":case"set":return o.callable;default:return r.ReflectAdapter.get(e,t,i)}}})}}let l=Symbol.for("next.mutated.cookies");function u(e){let t=e[l];return t&&Array.isArray(t)&&0!==t.length?t:[]}function c(e,t){let i=u(t);if(0===i.length)return!1;let r=new n.ResponseCookies(e),s=r.getAll();for(let e of i)r.set(e);for(let e of s)r.set(e);return!0}class h{static wrap(e,t){let i=new n.ResponseCookies(new Headers);for(let t of e.getAll())i.set(t);let o=[],a=new Set,u=()=>{let e=s.staticGenerationAsyncStorage.getStore();if(e&&(e.pathWasRevalidated=!0),o=i.getAll().filter(e=>a.has(e.name)),t){let e=[];for(let t of o){let i=new n.ResponseCookies(new Headers);i.set(t),e.push(i.toString())}t(e)}};return new Proxy(i,{get(e,t,i){switch(t){case l:return o;case"delete":return function(...t){a.add("string"==typeof t[0]?t[0]:t[0].name);try{e.delete(...t)}finally{u()}};case"set":return function(...t){a.add("string"==typeof t[0]?t[0]:t[0].name);try{return e.set(...t)}finally{u()}};default:return r.ReflectAdapter.get(e,t,i)}}})}}},80255:function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var i in t)Object.defineProperty(e,i,{enumerable:!0,get:t[i]})}(t,{RequestCookies:function(){return n.RequestCookies},ResponseCookies:function(){return n.ResponseCookies},stringifyCookie:function(){return n.stringifyCookie}});let n=i(89079)},9008:function(e,t,i){e.exports=i(23867)},14970:function(e,t,i){e.exports=i(36849)},41664:function(e,t,i){e.exports=i(98342)},39332:function(e,t,i){e.exports=i(8199)},11163:function(e,t,i){e.exports=i(43079)},4298:function(e,t,i){e.exports=i(23381)},34155:function(e){var t,i,n,r=e.exports={};function s(){throw Error("setTimeout has not been defined")}function o(){throw Error("clearTimeout has not been defined")}function a(e){if(t===setTimeout)return setTimeout(e,0);if((t===s||!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:s}catch(e){t=s}try{i="function"==typeof clearTimeout?clearTimeout:o}catch(e){i=o}}();var l=[],u=!1,c=-1;function h(){u&&n&&(u=!1,n.length?l=n.concat(l):c=-1,l.length&&d())}function d(){if(!u){var e=a(h);u=!0;for(var t=l.length;t;){for(n=l,l=[];++c<t;)n&&n[c].run();c=-1,t=l.length}n=null,u=!1,function(e){if(i===clearTimeout)return clearTimeout(e);if((i===o||!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 p(e,t){this.fun=e,this.array=t}function f(){}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];l.push(new p(e,t)),1!==l.length||u||a(d)},p.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=f,r.addListener=f,r.once=f,r.off=f,r.removeListener=f,r.removeAllListeners=f,r.emit=f,r.prependListener=f,r.prependOnceListener=f,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}},69921:function(e,t){"use strict";var i="function"==typeof Symbol&&Symbol.for,n=i?Symbol.for("react.element"):60103,r=i?Symbol.for("react.portal"):60106,s=i?Symbol.for("react.fragment"):60107,o=i?Symbol.for("react.strict_mode"):60108,a=i?Symbol.for("react.profiler"):60114,l=i?Symbol.for("react.provider"):60109,u=i?Symbol.for("react.context"):60110,c=i?Symbol.for("react.async_mode"):60111,h=i?Symbol.for("react.concurrent_mode"):60111,d=i?Symbol.for("react.forward_ref"):60112,p=i?Symbol.for("react.suspense"):60113,f=i?Symbol.for("react.suspense_list"):60120,m=i?Symbol.for("react.memo"):60115,g=i?Symbol.for("react.lazy"):60116,y=i?Symbol.for("react.block"):60121,v=i?Symbol.for("react.fundamental"):60117,b=i?Symbol.for("react.responder"):60118,x=i?Symbol.for("react.scope"):60119;function w(e){if("object"==typeof e&&null!==e){var t=e.$$typeof;switch(t){case n:switch(e=e.type){case c:case h:case s:case a:case o:case p:return e;default:switch(e=e&&e.$$typeof){case u:case d:case g:case m:case l:return e;default:return t}}case r:return t}}}function S(e){return w(e)===h}t.AsyncMode=c,t.ConcurrentMode=h,t.ContextConsumer=u,t.ContextProvider=l,t.Element=n,t.ForwardRef=d,t.Fragment=s,t.Lazy=g,t.Memo=m,t.Portal=r,t.Profiler=a,t.StrictMode=o,t.Suspense=p,t.isAsyncMode=function(e){return S(e)||w(e)===c},t.isConcurrentMode=S,t.isContextConsumer=function(e){return w(e)===u},t.isContextProvider=function(e){return w(e)===l},t.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===n},t.isForwardRef=function(e){return w(e)===d},t.isFragment=function(e){return w(e)===s},t.isLazy=function(e){return w(e)===g},t.isMemo=function(e){return w(e)===m},t.isPortal=function(e){return w(e)===r},t.isProfiler=function(e){return w(e)===a},t.isStrictMode=function(e){return w(e)===o},t.isSuspense=function(e){return w(e)===p},t.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===s||e===h||e===a||e===o||e===p||e===f||"object"==typeof e&&null!==e&&(e.$$typeof===g||e.$$typeof===m||e.$$typeof===l||e.$$typeof===u||e.$$typeof===d||e.$$typeof===v||e.$$typeof===b||e.$$typeof===x||e.$$typeof===y)},t.typeOf=w},59864:function(e,t,i){"use strict";e.exports=i(69921)},71739:function(e){e.exports={area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0}},87462:function(e,t,i){"use strict";function n(){return(n=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var i=arguments[t];for(var n in i)({}).hasOwnProperty.call(i,n)&&(e[n]=i[n])}return e}).apply(null,arguments)}i.d(t,{Z:function(){return n}})},63366:function(e,t,i){"use strict";function n(e,t){if(null==e)return{};var i={};for(var n in e)if(({}).hasOwnProperty.call(e,n)){if(-1!==t.indexOf(n))continue;i[n]=e[n]}return i}i.d(t,{Z:function(){return n}})},94189:function(e,t,i){"use strict";i.d(t,{l0:function(){return c},k1:function(){return g}}),(n=r||(r={})).ENGLISH="en",n.DANISH="da",n.GERMAN="de",n.SPANISH="es",n.SPANISH_MEXICO="es-mx",n.FINNISH="fi",n.FRENCH="fr",n.ITALIAN="it",n.JAPANESE="ja",n.DUTCH="nl",n.POLISH="pl",n.PORTUGUESE="pt-br",n.SWEDISH="sv",n.CHINESE="zh-cn",n.CHINESE_HONG_KONG="zh-hk";var n,r,s=i(67294),o=i(4298);let a="hubspot_loaded",l=(0,s.createContext)({isScriptLoaded:!1,isScriptError:!1,scriptError:null}),u=()=>{let e=(0,s.useContext)(l);return(0,s.useDebugValue)(`isScriptLoaded: ${String(e.isScriptLoaded)}
2`),(0,s.useDebugValue)(`isScriptError: ${String(e.isScriptError)}`),(0,s.useDebugValue)(`scriptError: ${e.scriptError}`),e},c=({children:e,strategy:t="afterInteractive",src:i,onReady:n,onError:r,...u})=>{let[c,h]=(0,s.useState)(!1),[d,p]=(0,s.useState)(null),f=!!d,m=(0,s.useCallback)(()=>{p(null),h(!0),window.dispatchEvent(new Event(a)),n?.()},[n]),g=(0,s.useCallback)(e=>{console.error("HubSpot script failed to load:",e),p(e),r?.(e)},[r]),y=(0,s.useMemo)(()=>({isScriptLoaded:c,isScriptError:f,scriptError:d}),[c,f,d]);return s.createElement(l.Provider,{value:y},e,s.createElement(o,{src:i||"https://js.hsforms.net/forms/v2.js",strategy:t,onReady:m,onError:g,...u}))},h=e=>(window.addEventListener(a,e),()=>window.removeEventListener(a,e)),d=()=>window.hubspot||null,p=()=>window.hbspt||null,f=()=>null,m=()=>{let e=u(),t=(0,s.useSyncExternalStore)(h,d,f),i=(0,s.useSyncExternalStore)(h,p,f);return(0,s.useDebugValue)("hubspot: ",t),(0,s.useDebugValue)("hbspt: ",i),(0,s.useMemo)(()=>({...e,hubspot:t,hbspt:i}),[e,t,i])},g=e=>{let[t,i]=(0,s.useState)(!1),[n,r]=(0,s.useState)(null),o=!!n,a=m(),{hbspt:l}=a;return(0,s.useEffect)(()=>{if(l&&!t)try{l.forms.create(e),i(!0),r(null)}catch(e){console.error("Failed to create hubspot form: ",e),i(!1),r(e)}},[l,t,e]),(0,s.useDebugValue)(`isFormCreated: ${String(t)}`),(0,s.useDebugValue)(`isError: ${String(o)}`),(0,s.useDebugValue)(`error: ${n}`),(0,s.useMemo)(()=>({...a,isFormCreated:t,isError:o,error:n}),[a,t,o,n])}}},function(e){var t=function(t){return e(e.s=t)};e.O(0,[9774,179],function(){return t(91118),t(43079)}),_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.