PageSourceSearch

https://app.smartestqa.ai/static/js/389.09ddb3be.chunk.js

js smartestqa.ai collected 2026-10-05 13:53:45 UTC 135,248 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunksmart_test=self.webpackChunksmart_test||[]).push([[389],{243939:(t,e,n)=>{n.d(e,{l1:()=>pr});var r=function(t){return function(t){return!!t&&"object"===typeof t}(t)&&!function(t){var e=Object.prototype.toString.call(t);return"[object RegExp]"===e||"[object Date]"===e||function(t){return t.$$typeof===o}(t)}(t)};var o="function"===typeof Symbol&&Symbol.for?Symbol.for("react.element"):60103;function i(t,e){return!1!==e.clone&&e.isMergeableObject(t)?a((n=t,Array.isArray(n)?[]:{}),t,e):t;var n}function s(t,e,n){return t.concat(e).map((function(t){return i(t,n)}))}function a(t,e,n){(n=n||{}).arrayMerge=n.arrayMerge||s,n.isMergeableObject=n.isMergeableObject||r;var o=Array.isArray(e);return o===Array.isArray(t)?o?n.arrayMerge(t,e,n):function(t,e,n){var r={};return n.isMergeableObject(t)&&Object.keys(t).forEach((function(e){r[e]=i(t[e],n)})),Object.keys(e).forEach((function(o){n.isMergeableObject(e[o])&&t[o]?r[o]=a(t[o],e[o],n):r[o]=i(e[o],n)})),r}(t,e,n):i(e,n)}a.all=function(t,e){if(!Array.isArray(t))throw new Error("first argument should be an array");return t.reduce((function(t,n){return a(t,n,e)}),{})};const l=a;const u="object"==typeof global&&global&&global.Object===Object&&global;var c="object"==typeof self&&self&&self.Object===Object&&self;const h=u||c||Function("return this")();const d=h.Symbol;var p=Object.prototype,f=p.hasOwnProperty,m=p.toString,v=d?d.toStringTag:void 0;const y=function(t){var e=f.call(t,v),n=t[v];try{t[v]=void 0;var r=!0}catch(i){}var o=m.call(t);return r&&(e?t[v]=n:delete t[v]),o};var g=Object.prototype.toString;const b=function(t){return g.call(t)};var x=d?d.toStringTag:void 0;const A=function(t){return null==t?void 0===t?"[object Undefined]":"[object Null]":x&&x in Object(t)?y(t):b(t)}
vendor: 10,376 bytes, line 1
1;const E=function(t,e){return function(n){return t(e(n))}};const S=E(Object.getPrototypeOf,Object);const T=function(t){return null!=t&&"object"==typeof t};var w=Function.prototype,P=Object.prototype,j=w.toString,V=P.hasOwnProperty,C=j.call(Object);const O=function(t){if(!T(t)||"[object Object]"!=A(t))return!1;var e=S(t);if(null===e)return!0;var n=V.call(e,"constructor")&&e.constructor;return"function"==typeof n&&n instanceof n&&j.call(n)==C};const M=function(){this.__data__=[],this.size=0};const R=function(t,e){return t===e||t!==t&&e!==e};const k=function(t,e){for(var n=t.length;n--;)if(R(t[n][0],e))return n;return-1};var D=Array.prototype.splice;const _=function(t){var e=this.__data__,n=k(e,t);return!(n<0)&&(n==e.length-1?e.pop():D.call(e,n,1),--this.size,!0)};const F=function(t){var e=this.__data__,n=k(e,t);return n<0?void 0:e[n][1]};const I=function(t){return k(this.__data__,t)>-1};const L=function(t,e){var n=this.__data__,r=k(n,t);return r<0?(++this.size,n.push([t,e])):n[r][1]=e,this};function B(t){var e=-1,n=null==t?0:t.length;for(this.clear();++e<n;){var r=t[e];this.set(r[0],r[1])}}B.prototype.clear=M,B.prototype.delete=_,B.prototype.get=F,B.prototype.has=I,B.prototype.set=L;const U=B;const N=function(){this.__data__=new U,this.size=0};const z=function(t){var e=this.__data__,n=e.delete(t);return this.size=e.size,n};const H=function(t){return this.__data__.get(t)};const W=function(t){return this.__data__.has(t)};const Y=function(t){var e=typeof t;return null!=t&&("object"==e||"function"==e)};const G=function(t){if(!Y(t))return!1;var e=A(t);return"[object Function]"==e||"[object GeneratorFunction]"==e||"[object AsyncFunction]"==e||"[object Proxy]"==e};const X=h["__core-js_shared__"];var $=function(){var t=/[^.]+$/.exec(X&&X.keys&&X.keys.IE_PROTO||"");return t?"Symbol(src)_1."+t:""}();const q=function(t){return!!$&&$ in t};var Z=Function.prototype.toString;const K=function(t){if(null!=t){try{return Z.call(t)}catch(e){}try{return t+""}catch(e){}}return""};var J=/^\[object .+?Constructor\]$/,Q=Function.prototype,tt=Object.prototype,et=Q.toString,nt=tt.hasOwnProperty,rt=RegExp("^"+et.call(nt).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");const ot=function(t){return!(!Y(t)||q(t))&&(G(t)?rt:J).test(K(t))};const it=function(t,e){return null==t?void 0:t[e]};const st=function(t,e){var n=it(t,e);return ot(n)?n:void 0};const at=st(h,"Map");const lt=st(Object,"create");const ut=function(){this.__data__=lt?lt(null):{},this.size=0};const ct=function(t){var e=this.has(t)&&delete this.__data__[t];return this.size-=e?1:0,e};var ht=Object.prototype.hasOwnProperty;const dt=function(t){var e=this.__data__;if(lt){var n=e[t];return"__lodash_hash_undefined__"===n?void 0:n}return ht.call(e,t)?e[t]:void 0};var pt=Object.prototype.hasOwnProperty;const ft=function(t){var e=this.__data__;return lt?void 0!==e[t]:pt.call(e,t)};const mt=function(t,e){var n=this.__data__;return this.size+=this.has(t)?0:1,n[t]=lt&&void 0===e?"__lodash_hash_undefined__":e,this};function vt(t){var e=-1,n=null==t?0:t.length;for(this.clear();++e<n;){var r=t[e];this.set(r[0],r[1])}}vt.prototype.clear=ut,vt.prototype.delete=ct,vt.prototype.get=dt,vt.prototype.has=ft,vt.prototype.set=mt;const yt=vt;const gt=function(){this.size=0,this.__data__={hash:new yt,map:new(at||U),string:new yt}};const bt=function(t){var e=typeof t;return"string"==e||"number"==e||"symbol"==e||"boolean"==e?"__proto__"!==t:null===t};const xt=function(t,e){var n=t.__data__;return bt(e)?n["string"==typeof e?"string":"hash"]:n.map};const At=function(t){var e=xt(this,t).delete(t);return this.size-=e?1:0,e};const Et=function(t){return xt(this,t).get(t)};const St=function(t){return xt(this,t).has(t)};const Tt=function(t,e){var n=xt(this,t),r=n.size;return n.set(t,e),this.size+=n.size==r?0:1,this};function wt(t){var e=-1,n=null==t?0:t.length;for(this.clear();++e<n;){var r=t[e];this.set(r[0],r[1])}}wt.prototype.clear=gt,wt.prototype.delete=At,wt.prototype.get=Et,wt.prototype.has=St,wt.prototype.set=Tt;const Pt=wt;const jt=function(t,e){var n=this.__data__;if(n instanceof U){var r=n.__data__;if(!at||r.length<199)return r.push([t,e]),this.size=++n.size,this;n=this.__data__=new Pt(r)}return n.set(t,e),this.size=n.size,this};function Vt(t){var e=this.__data__=new U(t);this.size=e.size}Vt.prototype.clear=N,Vt.prototype.delete=z,Vt.prototype.get=H,Vt.prototype.has=W,Vt.prototype.set=jt;const Ct=Vt;const Ot=function(t,e){for(var n=-1,r=null==t?0:t.length;++n<r&&!1!==e(t[n],n,t););return t};const Mt=function(){try{var t=st(Object,"defineProperty");return t({},"",{}),t}catch(e){}}();const Rt=function(t,e,n){"__proto__"==e&&Mt?Mt(t,e,{configurable:!0,enumerable:!0,value:n,writable:!0}):t[e]=n};var kt=Object.prototype.hasOwnProperty;const Dt=function(t,e,n){var r=t[e];kt.call(t,e)&&R(r,n)&&(void 0!==n||e in t)||Rt(t,e,n)};const _t=function(t,e,n,r){var o=!n;n||(n={});for(var i=-1,s=e.length;++i<s;){var a=e[i],l=r?r(n[a],t[a],a,n,t):void 0;void 0===l&&(l=t[a]),o?Rt(n,a,l):Dt(n,a,l)}return n};const Ft=function(t,e){for(var n=-1,r=Array(t);++n<t;)r[n]=e(n);return r};const It=function(t){return T(t)&&"[object Arguments]"==A(t)};var Lt=Object.prototype,Bt=Lt.hasOwnProperty,Ut=Lt.propertyIsEnumerable;const Nt=It(function(){return arguments}())?It:function(t){return T(t)&&Bt.call(t,"callee")&&!Ut.call(t,"callee")};const zt=Array.isArray;const Ht=function(){return!1};var Wt="object"==typeof exports&&exports&&!exports.nodeType&&exports,Yt=Wt&&"object"==typeof module&&module&&!module.nodeType&&module,Gt=Yt&&Yt.exports===Wt?h.Buffer:void 0;const Xt=(Gt?Gt.isBuffer:void 0)||Ht;var $t=/^(?:0|[1-9]\d*)$/;const qt=function(t,e){var n=typeof t;return!!(e=null==e?9007199254740991:e)&&("number"==n||"symbol"!=n&&$t.test(t))&&t>-1&&t%1==0&&t<e};const Zt=function(t){return"number"==typeof t&&t>-1&&t%1==0&&t<=9007199254740991};var Kt={};Kt["[object Float32Array]"]=Kt["[object Float64Array]"]=Kt["[object Int8Array]"]=Kt["[object Int16Array]"]=Kt["[object Int32Array]"]=Kt["[object Uint8Array]"]=Kt["[object Uint8ClampedArray]"]=Kt["[object Uint16Array]"]=Kt["[object Uint32Array]"]=!0,Kt["[object Arguments]"]=Kt["[object Array]"]=Kt["[object ArrayBuffer]"]=Kt["[object Boolean]"]=Kt["[object DataView]"]=Kt["[object Date]"]=Kt["[object Error]"]=Kt["[object Function]"]=Kt["[object Map]"]=Kt["[object Number]"]=Kt["[object Object]"]=Kt["[object RegExp]"]=Kt["[object Set]"]=Kt["[object String]"]=Kt["[object WeakMap]"]=!1;const Jt=function(t){return T(t)&&Zt(t.length)&&!!Kt[A(t)]};const Qt=function(t){return function(e){return t(e)}};var te="object"==typeof exports&&exports&&!exports.nodeType&&exports,ee=te&&"object"==typeof module&&module&&!module.nodeType&&module,ne=ee&&ee.exports===te&&u.process;const re=function(){try{var t=ee&&ee.require&&ee.require("util").types;return t||ne&&ne.binding&&ne.binding("util")}catch(e){}}();var oe=re&&re.isTypedArray;const ie=oe?Qt(oe):Jt;var se=Object.prototype.hasOwnProperty;const ae=function(t,e){var n=zt(t),r=!n&&Nt(t),o=!n&&!r&&Xt(t),i=!n&&!r&&!o&&ie(t),s=n||r||o||i,a=s?Ft(t.length,String):[],l=a.length;for(var u in t)!e&&!se.call(t,u)||s&&("length"==u||o&&("offset"==u||"parent"==u)||i&&("buffer"==u||"byteLength"==u||"byteOffset"==u)||qt(u,l))||a.push(u);return a};var le=Object.prototype;const ue=function(t){var e=t&&t.constructor;return t===("function"==typeof e&&e.prototype||le)};const ce=E(Object.keys,Object);var he=Object.prototype.hasOwnProperty;const de=function(t){if(!ue(t))return ce(t);var e=[];for(var n in Object(t))he.call(t,n)&&"constructor"!=n&&e.push(n);return e};const pe=function(t){return null!=t&&Zt(t.length)&&!G(t)};const fe=function(t){return pe(t)?ae(t):de(t)};const me=function(t,e){return t&&_t(e,fe(e),t)};const ve=function(t){var e=[];if(null!=t)for(var n in Object(t))e.push(n);return e};var ye=Object.prototype.hasOwnProperty;const ge=function(t){if(!Y(t))return ve(t);var e=ue(t),n=[];for(var r in t)("constructor"!=r||!e&&ye.call(t,r))&&n.push(r);return n};const be=function(t){return pe(t)?ae(t,!0):ge(t)};const xe=function(t,e){return t&&_t(e,be(e),t)};var Ae="object"==typeof exports&&exports&&!exports.nodeType&&exports,Ee=Ae&&"object"==typeof module&&module&&!module.nodeType&&module,Se=Ee&&Ee.exports===Ae?h.Buffer:void 0,Te=Se?Se.allocUnsafe:void 0;const we=function(t,e){if(e)return t.slice();var n=t.length,r=Te?Te(n):new t.constructor(n);return t.copy(r),r};const Pe=function(t,e){var n=-1,r=t.length;for(e||(e=Array(r));++n<r;)e[n]=t[n];return e};const je=function(t,e){for(var n=-1,r=null==t?0:t.length,o=0,i=[];++n<r;){var s=t[n];e(s,n,t)&&(i[o++]=s)}return i};const Ve=function(){return[]};var Ce=Object.prototype.propertyIsEnumerable,Oe=Object.getOwnPropertySymbols;const Me=Oe?function(t){return null==t?[]:(t=Object(t),je(Oe(t),(function(e){return Ce.call(t,e)})))}:Ve;const Re=function(t,e){return _t(t,Me(t),e)};const ke=function(t,e){for(var n=-1,r=e.length,o=t.length;++n<r;)t[o+n]=e[n];return t};const De=Object.getOwnPropertySymbols?function(t){for(var e=[];t;)ke(e,Me(t)),t=S(t);return e}:Ve;const _e=function(t,e){return _t(t,De(t),e)};const Fe=function(t,e,n){var r=e(t);return zt(t)?r:ke(r,n(t))};const Ie=function(t){return Fe(t,fe,Me)};const Le=function(t){return Fe(t,be,De)};const Be=st(h,"DataView");const Ue=st(h,"Promise");const Ne=st(h,"Set");const ze=st(h,"WeakMap");var He="[object Map]",We="[object Promise]",Ye="[object Set]",Ge="[object WeakMap]",Xe="[object DataView]",$e=K(Be),qe=K(at),Ze=K(Ue),Ke=K(Ne),Je=K(ze),Qe=A;(Be&&Qe(new Be(new ArrayBuffer(1)))!=Xe||at&&Qe(new at)!=He||Ue&&Qe(Ue.resolve())!=We||Ne&&Qe(new Ne)!=Ye||ze&&Qe(new ze)!=Ge)&&(Qe=function(t){var e=A(t),n="[object Object]"==e?t.constructor:void 0,r=n?K(n):"";if(r)switch(r){case $e:return Xe;case qe:return He;case Ze:return We;case Ke:return Ye;case Je:return Ge}return e});const tn=Qe;var en=Object.prototype.hasOwnProperty;const nn=function(t){var e=t.length,n=new t.constructor(e);return e&&"string"==typeof t[0]&&en.call(t,"index")&&(n.index=t.index,n.input=t.input),n};const rn=h.Uint8Array;const on=function(t){var e=new t.constructor(t.byteLength);return new rn(e).set(new rn(t)),e};const sn=function(t,e){var n=e?on(t.buffer):t.buffer;return new t.constructor(n,t.byteOffset,t.byteLength)};var an=/\w*$/;const ln=function(t){var e=new t.constructor(t.source,an.exec(t));return e.lastIndex=t.lastIndex,e};
1var un=d?d.prototype:void 0,cn=un?un.valueOf:void 0;const hn=function(t){return cn?Object(cn.call(t)):{}};const dn=function(t,e){var n=e?on(t.buffer):t.buffer;return new t.constructor(n,t.byteOffset,t.length)};const pn=function(t,e,n){var r=t.constructor;switch(e){case"[object ArrayBuffer]":return on(t);case"[object Boolean]":case"[object Date]":return new r(+t);case"[object DataView]":return sn(t,n);case"[object Float32Array]":case"[object Float64Array]":case"[object Int8Array]":case"[object Int16Array]":case"[object Int32Array]":case"[object Uint8Array]":case"[object Uint8ClampedArray]":case"[object Uint16Array]":case"[object Uint32Array]":return dn(t,n);case"[object Map]":case"[object Set]":return new r;case"[object Number]":case"[object String]":return new r(t);case"[object RegExp]":return ln(t);case"[object Symbol]":return hn(t)}};var fn=Object.create;const mn=function(){function t(){}return function(e){if(!Y(e))return{};if(fn)return fn(e);t.prototype=e;var n=new t;return t.prototype=void 0,n}}();const vn=function(t){return"function"!=typeof t.constructor||ue(t)?{}:mn(S(t))};const yn=function(t){return T(t)&&"[object Map]"==tn(t)};var gn=re&&re.isMap;const bn=gn?Qt(gn):yn;const xn=function(t){return T(t)&&"[object Set]"==tn(t)};var An=re&&re.isSet;const En=An?Qt(An):xn;var Sn="[object Arguments]",Tn="[object Function]",wn="[object Object]",Pn={};Pn[Sn]=Pn["[object Array]"]=Pn["[object ArrayBuffer]"]=Pn["[object DataView]"]=Pn["[object Boolean]"]=Pn["[object Date]"]=Pn["[object Float32Array]"]=Pn["[object Float64Array]"]=Pn["[object Int8Array]"]=Pn["[object Int16Array]"]=Pn["[object Int32Array]"]=Pn["[object Map]"]=Pn["[object Number]"]=Pn[wn]=Pn["[object RegExp]"]=Pn["[object Set]"]=Pn["[object String]"]=Pn["[object Symbol]"]=Pn["[object Uint8Array]"]=Pn["[object Uint8ClampedArray]"]=Pn["[object Uint16Array]"]=Pn["[object Uint32Array]"]=!0,Pn["[object Error]"]=Pn[Tn]=Pn["[object WeakMap]"]=!1;const jn=function t(e,n,r,o,i,s){var a,l=1&n,u=2&n,c=4&n;if(r&&(a=i?r(e,o,i,s):r(e)),void 0!==a)return a;if(!Y(e))return e;var h=zt(e);if(h){if(a=nn(e),!l)return Pe(e,a)}else{var d=tn(e),p=d==Tn||"[object GeneratorFunction]"==d;if(Xt(e))return we(e,l);if(d==wn||d==Sn||p&&!i){if(a=u||p?{}:vn(e),!l)return u?_e(e,xe(a,e)):Re(e,me(a,e))}else{if(!Pn[d])return i?e:{};a=pn(e,d,l)}}s||(s=new Ct);var f=s.get(e);if(f)return f;s.set(e,a),En(e)?e.forEach((function(o){a.add(t(o,n,r,o,e,s))})):bn(e)&&e.forEach((function(o,i){a.set(i,t(o,n,r,i,e,s))}));var m=h?void 0:(c?u?Le:Ie:u?be:fe)(e);return Ot(m||e,(function(o,i){m&&(o=e[i=o]),Dt(a,i,t(o,n,r,i,e,s))})),a};const Vn=function(t){return jn(t,5)};var Cn=n(409950),On=n(424901),Mn=n.n(On);const Rn=function(t,e){};const kn=function(t){return jn(t,4)};const Dn=function(t,e){for(var n=-1,r=null==t?0:t.length,o=Array(r);++n<r;)o[n]=e(t[n],n,t);return o};const _n=function(t){return"symbol"==typeof t||T(t)&&"[object Symbol]"==A(t)};function Fn(t,e){if("function"!=typeof t||null!=e&&"function"!=typeof e)throw new TypeError("Expected a function");var n=function(){var r=arguments,o=e?e.apply(this,r):r[0],i=n.cache;if(i.has(o))return i.get(o);var s=t.apply(this,r);return n.cache=i.set(o,s)||i,s};return n.cache=new(Fn.Cache||Pt),n}Fn.Cache=Pt;const In=Fn;var Ln=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,Bn=/\\(\\)?/g;const Un=function(t){var e=In(t,(function(t){return 500===n.size&&n.clear(),t})),n=e.cache;return e}((function(t){var e=[];return 46===t.charCodeAt(0)&&e.push(""),t.replace(Ln,(function(t,n,r,o){e.push(r?o.replace(Bn,"$1"):n||t)})),e}));const Nn=function(t){if("string"==typeof t||_n(t))return t;var e=t+"";return"0"==e&&1/t==-1/0?"-0":e};var zn=d?d.prototype:void 0,Hn=zn?zn.toString:void 0;const Wn=function t(e){if("string"==typeof e)return e;if(zt(e))return Dn(e,t)+"";if(_n(e))return Hn?Hn.call(e):"";var n=e+"";return"0"==n&&1/e==-1/0?"-0":n};const Yn=function(t){return null==t?"":Wn(t)};const Gn=function(t){return zt(t)?Dn(t,Nn):_n(t)?[t]:Pe(Un(Yn(t)))};n(123876);function Xn(){return Xn=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},Xn.apply(this,arguments)}function $n(t,e){t.prototype=Object.create(e.prototype),t.prototype.constructor=t,t.__proto__=e}function qn(t,e){if(null==t)return{};var n,r,o={},i=Object.keys(t);for(r=0;r<i.length;r++)n=i[r],e.indexOf(n)>=0||(o[n]=t[n]);return o}function Zn(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}var Kn=(0,Cn.createContext)(void 0);Kn.displayName="FormikContext";var Jn=Kn.Provider;Kn.Consumer;function Qn(){var t=(0,Cn.useContext)(Kn);return t||Rn(!1),t}var tr=function(t){return Array.isArray(t)&&0===t.length},er=function(t){return"function"===typeof t},nr=function(t){return null!==t&&"object"===typeof t},rr=function(t){return String(Math.floor(Number(t)))===t},or=function(t){return"[object String]"===Object.prototype.toString.call(t)},ir=function(t){return 0===Cn.Children.count(t)},sr=function(t){return nr(t)&&er(t.then)};function ar(t,e,n,r){void 0===r&&(r=0);for(var o=Gn(e);t&&r<o.length;)t=t[o[r++]];return r===o.length||t?void 0===t?n:t:n}function lr(t,e,n){for(var r=kn(t),o=r,i=0,s=Gn(e);i<s.length-1;i++){var a=s[i],l=ar(t,s.slice(0,i+1));if(l&&(nr(l)||Array.isArray(l)))o=o[a]=kn(l);else{var u=s[i+1];o=o[a]=rr(u)&&Number(u)>=0?[]:{}}}return(0===i?t:o)[s[i]]===n?t:(void 0===n?delete o[s[i]]:o[s[i]]=n,0===i&&void 0===n&&delete r[s[i]],r)}function ur(t,e,n,r){void 0===n&&(n=new WeakMap),void 0===r&&(r={});for(var o=0,i=Object.keys(t);o<i.length;o++){var s=i[o],a=t[s];nr(a)?n.get(a)||(n.set(a,!0),r[s]=Array.isArray(a)?[]:{},ur(a,e,n,r[s])):r[s]=e}return r}var cr={},hr={};function dr(t){var e=t.validateOnChange,n=void 0===e||e,r=t.validateOnBlur,o=void 0===r||r,i=t.validateOnMount,s=void 0!==i&&i,a=t.isInitialValid,u=t.enableReinitialize,c=void 0!==u&&u,h=t.onSubmit,d=qn(t,["validateOnChange","validateOnBlur","validateOnMount","isInitialValid","enableReinitialize","onSubmit"]),p=Xn({validateOnChange:n,validateOnBlur:o,validateOnMount:s,onSubmit:h},d),f=(0,Cn.useRef)(p.initialValues),m=(0,Cn.useRef)(p.initialErrors||cr),v=(0,Cn.useRef)(p.initialTouched||hr),y=(0,Cn.useRef)(p.initialStatus),g=(0,Cn.useRef)(!1),b=(0,Cn.useRef)({});(0,Cn.useEffect)((function(){return g.current=!0,function(){g.current=!1}}),[]);var x=(0,Cn.useState)(0)[1],A=(0,Cn.useRef)({values:Vn(p.initialValues),errors:Vn(p.initialErrors)||cr,touched:Vn(p.initialTouched)||hr,status:Vn(p.initialStatus),isSubmitting:!1,isValidating:!1,submitCount:0}),E=A.current,S=(0,Cn.useCallback)((function(t){var e=A.current;A.current=function(t,e){switch(e.type){case"SET_VALUES":return Xn({},t,{values:e.payload});case"SET_TOUCHED":return Xn({},t,{touched:e.payload});case"SET_ERRORS":return Mn()(t.errors,e.payload)?t:Xn({},t,{errors:e.payload});case"SET_STATUS":return Xn({},t,{status:e.payload});case"SET_ISSUBMITTING":return Xn({},t,{isSubmitting:e.payload});case"SET_ISVALIDATING":return Xn({},t,{isValidating:e.payload});case"SET_FIELD_VALUE":return Xn({},t,{values:lr(t.values,e.payload.field,e.payload.value)});case"SET_FIELD_TOUCHED":return Xn({},t,{touched:lr(t.touched,e.payload.field,e.payload.value)});case"SET_FIELD_ERROR":return Xn({},t,{errors:lr(t.errors,e.payload.field,e.payload.value)});case"RESET_FORM":return Xn({},t,e.payload);case"SET_FORMIK_STATE":return e.payload(t);case"SUBMIT_ATTEMPT":return Xn({},t,{touched:ur(t.values,!0),isSubmitting:!0,submitCount:t.submitCount+1});case"SUBMIT_FAILURE":case"SUBMIT_SUCCESS":return Xn({},t,{isSubmitting:!1});default:return t}}(e,t),e!==A.current&&x((function(t){return t+1}))}),[]),T=(0,Cn.useCallback)((function(t,e){return new Promise((function(n,r){var o=p.validate(t,e);null==o?n(cr):sr(o)?o.then((function(t){n(t||cr)}),(function(t){r(t)})):n(o)}))}),[p.validate]),w=(0,Cn.useCallback)((function(t,e){var n=p.validationSchema,r=er(n)?n(e):n,o=e&&r.validateAt?r.validateAt(e,t):function(t,e,n,r){void 0===n&&(n=!1);var o=fr(t);return e[n?"validateSync":"validate"](o,{abortEarly:!1,context:r||o})}(t,r);return new Promise((function(t,e){o.then((function(){t(cr)}),(function(n){"ValidationError"===n.name?t(function(t){var e={};if(t.inner){if(0===t.inner.length)return lr(e,t.path,t.message);var n=t.inner,r=Array.isArray(n),o=0;for(n=r?n:n[Symbol.iterator]();;){var i;if(r){if(o>=n.length)break;i=n[o++]}else{if((o=n.next()).done)break;i=o.value}var s=i;ar(e,s.path)||(e=lr(e,s.path,s.message))}}return e}(n)):e(n)}))}))}),[p.validationSchema]),P=(0,Cn.useCallback)((function(t,e){return new Promise((function(n){return n(b.current[t].validate(e))}))}),[]),j=(0,Cn.useCallback)((function(t){var e=Object.keys(b.current).filter((function(t){return er(b.current[t].validate)})),n=e.length>0?e.map((function(e){return P(e,ar(t,e))})):[Promise.resolve("DO_NOT_DELETE_YOU_WILL_BE_FIRED")];return Promise.all(n).then((function(t){return t.reduce((function(t,n,r){return"DO_NOT_DELETE_YOU_WILL_BE_FIRED"===n||n&&(t=lr(t,e[r],n)),t}),{})}))}),[P]),V=(0,Cn.useCallback)((function(t){return Promise.all([j(t),p.validationSchema?w(t):{},p.validate?T(t):{}]).then((function(t){var e=t[0],n=t[1],r=t[2];return l.all([e,n,r],{arrayMerge:mr})}))}),[p.validate,p.validationSchema,j,T,w]),C=yr((function(t){return void 0===t&&(t=E.values),S({type:"SET_ISVALIDATING",payload:!0}),V(t).then((function(t){return g.current&&(S({type:"SET_ISVALIDATING",payload:!1}),S({type:"SET_ERRORS",payload:t})),t}))}));(0,Cn.useEffect)((function(){s&&!0===g.current&&Mn()(f.current,p.initialValues)&&C(f.current)}),[s,C]);var O=(0,Cn.useCallback)((function(t){var e=t&&t.values?t.values:f.current,n=t&&t.errors?t.errors:m.current?m.current:p.initialErrors||{},r=t&&t.touched?t.touched:v.current?v.current:p.initialTouched||{},o=t&&t.status?t.status:y.current?y.current:p.initialStatus;f.current=e,m.current=n,v.current=r,y.current=o;var i=function(){S({type:"RESET_FORM",payload:{isSubmitting:!!t&&!!t.isSubmitting,errors:n,touched:r,status:o,values:e,isValidating:!!t&&!!t.isValidating,submitCount:t&&t.submitCount&&"number"===typeof t.submitCount?t.submitCount:0}})};if(p.onReset){var s=p.onReset(E.values,q);sr(s)?s.then(i):i()}else i()}),[p.initialErrors,p.initialStatus,p.initialTouched,p.onReset]);(0,Cn.useEffect)((function(){!0!==g.current||Mn()(f.current,p.initialValues)||c&&
1(f.current=p.initialValues,O(),s&&C(f.current))}),[c,p.initialValues,O,s,C]),(0,Cn.useEffect)((function(){c&&!0===g.current&&!Mn()(m.current,p.initialErrors)&&(m.current=p.initialErrors||cr,S({type:"SET_ERRORS",payload:p.initialErrors||cr}))}),[c,p.initialErrors]),(0,Cn.useEffect)((function(){c&&!0===g.current&&!Mn()(v.current,p.initialTouched)&&(v.current=p.initialTouched||hr,S({type:"SET_TOUCHED",payload:p.initialTouched||hr}))}),[c,p.initialTouched]),(0,Cn.useEffect)((function(){c&&!0===g.current&&!Mn()(y.current,p.initialStatus)&&(y.current=p.initialStatus,S({type:"SET_STATUS",payload:p.initialStatus}))}),[c,p.initialStatus,p.initialTouched]);var M=yr((function(t){if(b.current[t]&&er(b.current[t].validate)){var e=ar(E.values,t),n=b.current[t].validate(e);return sr(n)?(S({type:"SET_ISVALIDATING",payload:!0}),n.then((function(t){return t})).then((function(e){S({type:"SET_FIELD_ERROR",payload:{field:t,value:e}}),S({type:"SET_ISVALIDATING",payload:!1})}))):(S({type:"SET_FIELD_ERROR",payload:{field:t,value:n}}),Promise.resolve(n))}return p.validationSchema?(S({type:"SET_ISVALIDATING",payload:!0}),w(E.values,t).then((function(t){return t})).then((function(e){S({type:"SET_FIELD_ERROR",payload:{field:t,value:ar(e,t)}}),S({type:"SET_ISVALIDATING",payload:!1})}))):Promise.resolve()})),R=(0,Cn.useCallback)((function(t,e){var n=e.validate;b.current[t]={validate:n}}),[]),k=(0,Cn.useCallback)((function(t){delete b.current[t]}),[]),D=yr((function(t,e){return S({type:"SET_TOUCHED",payload:t}),(void 0===e?o:e)?C(E.values):Promise.resolve()})),_=(0,Cn.useCallback)((function(t){S({type:"SET_ERRORS",payload:t})}),[]),F=yr((function(t,e){var r=er(t)?t(E.values):t;return S({type:"SET_VALUES",payload:r}),(void 0===e?n:e)?C(r):Promise.resolve()})),I=(0,Cn.useCallback)((function(t,e){S({type:"SET_FIELD_ERROR",payload:{field:t,value:e}})}),[]),L=yr((function(t,e,r){return S({type:"SET_FIELD_VALUE",payload:{field:t,value:e}}),(void 0===r?n:r)?C(lr(E.values,t,e)):Promise.resolve()})),B=(0,Cn.useCallback)((function(t,e){var n,r=e,o=t;if(!or(t)){t.persist&&t.persist();var i=t.target?t.target:t.currentTarget,s=i.type,a=i.name,l=i.id,u=i.value,c=i.checked,h=(i.outerHTML,i.options),d=i.multiple;r=e||(a||l),o=/number|range/.test(s)?(n=parseFloat(u),isNaN(n)?"":n):/checkbox/.test(s)?function(t,e,n){if("boolean"===typeof t)return Boolean(e);var r=[],o=!1,i=-1;if(Array.isArray(t))r=t,o=(i=t.indexOf(n))>=0;else if(!n||"true"==n||"false"==n)return Boolean(e);if(e&&n&&!o)return r.concat(n);if(!o)return r;return r.slice(0,i).concat(r.slice(i+1))}(ar(E.values,r),c,u):h&&d?function(t){return Array.from(t).filter((function(t){return t.selected})).map((function(t){return t.value}))}(h):u}r&&L(r,o)}),[L,E.values]),U=yr((function(t){if(or(t))return function(e){return B(e,t)};B(t)})),N=yr((function(t,e,n){return void 0===e&&(e=!0),S({type:"SET_FIELD_TOUCHED",payload:{field:t,value:e}}),(void 0===n?o:n)?C(E.values):Promise.resolve()})),z=(0,Cn.useCallback)((function(t,e){t.persist&&t.persist();var n=t.target,r=n.name,o=n.id,i=(n.outerHTML,e||(r||o));N(i,!0)}),[N]),H=yr((function(t){if(or(t))return function(e){return z(e,t)};z(t)})),W=(0,Cn.useCallback)((function(t){er(t)?S({type:"SET_FORMIK_STATE",payload:t}):S({type:"SET_FORMIK_STATE",payload:function(){return t}})}),[]),Y=(0,Cn.useCallback)((function(t){S({type:"SET_STATUS",payload:t})}),[]),G=(0,Cn.useCallback)((function(t){S({type:"SET_ISSUBMITTING",payload:t})}),[]),X=yr((function(){return S({type:"SUBMIT_ATTEMPT"}),C().then((function(t){var e=t instanceof Error;if(!e&&0===Object.keys(t).length){var n;try{if(void 0===(n=Z()))return}catch(r){throw r}return Promise.resolve(n).then((function(t){return g.current&&S({type:"SUBMIT_SUCCESS"}),t})).catch((function(t){if(g.current)throw S({type:"SUBMIT_FAILURE"}),t}))}if(g.current&&(S({type:"SUBMIT_FAILURE"}),e))throw t}))})),$=yr((function(t){t&&t.preventDefault&&er(t.preventDefault)&&t.preventDefault(),t&&t.stopPropagation&&er(t.stopPropagation)&&t.stopPropagation(),X().catch((function(t){console.warn("Warning: An unhandled error was caught from submitForm()",t)}))})),q={resetForm:O,validateForm:C,validateField:M,setErrors:_,setFieldError:I,setFieldTouched:N,setFieldValue:L,setStatus:Y,setSubmitting:G,setTouched:D,setValues:F,setFormikState:W,submitForm:X},Z=yr((function(){return h(E.values,q)})),K=yr((function(t){t&&t.preventDefault&&er(t.preventDefault)&&t.preventDefault(),t&&t.stopPropagation&&er(t.stopPropagation)&&t.stopPropagation(),O()})),J=(0,Cn.useCallback)((function(t){return{value:ar(E.values,t),error:ar(E.errors,t),touched:!!ar(E.touched,t),initialValue:ar(f.current,t),initialTouched:!!ar(v.current,t),initialError:ar(m.current,t)}}),[E.errors,E.touched,E.values]),Q=(0,Cn.useCallback)((function(t){return{setValue:function(e,n){return L(t,e,n)},setTouched:function(e,n){return N(t,e,n)},setError:function(e){return I(t,e)}}}),[L,N,I]),tt=(0,Cn.useCallback)((function(t){var e=nr(t),n=e?t.name:t,r=ar(E.values,n),o={name:n,value:r,onChange:U,onBlur:H};if(e){var i=t.type,s=t.value,a=t.as,l=t.multiple;"checkbox"===i?void 0===s?o.checked=!!r:(o.checked=!(!Array.isArray(r)||!~r.indexOf(s)),o.value=s):"radio"===i?(o.checked=r===s,o.value=s):"select"===a&&l&&(o.value=o.value||[],o.multiple=!0)}return o}
1),[H,U,E.values]),et=(0,Cn.useMemo)((function(){return!Mn()(f.current,E.values)}),[f.current,E.values]),nt=(0,Cn.useMemo)((function(){return"undefined"!==typeof a?et?E.errors&&0===Object.keys(E.errors).length:!1!==a&&er(a)?a(p):a:E.errors&&0===Object.keys(E.errors).length}),[a,et,E.errors,p]);return Xn({},E,{initialValues:f.current,initialErrors:m.current,initialTouched:v.current,initialStatus:y.current,handleBlur:H,handleChange:U,handleReset:K,handleSubmit:$,resetForm:O,setErrors:_,setFormikState:W,setFieldTouched:N,setFieldValue:L,setFieldError:I,setStatus:Y,setSubmitting:G,setTouched:D,setValues:F,submitForm:X,validateForm:C,validateField:M,isValid:nt,dirty:et,unregisterField:k,registerField:R,getFieldProps:tt,getFieldMeta:J,getFieldHelpers:Q,validateOnBlur:o,validateOnChange:n,validateOnMount:s})}function pr(t){var e=dr(t),n=t.component,r=t.children,o=t.render,i=t.innerRef;return(0,Cn.useImperativeHandle)(i,(function(){return e})),(0,Cn.createElement)(Jn,{value:e},n?(0,Cn.createElement)(n,e):o?o(e):r?er(r)?r(e):ir(r)?null:Cn.Children.only(r):null)}function fr(t){var e=Array.isArray(t)?[]:{};for(var n in t)if(Object.prototype.hasOwnProperty.call(t,n)){var r=String(n);!0===Array.isArray(t[r])?e[r]=t[r].map((function(t){return!0===Array.isArray(t)||O(t)?fr(t):""!==t?t:void 0})):O(t[r])?e[r]=fr(t[r]):e[r]=""!==t[r]?t[r]:void 0}return e}function mr(t,e,n){var r=t.slice();return e.forEach((function(e,o){if("undefined"===typeof r[o]){var i=!1!==n.clone&&n.isMergeableObject(e);r[o]=i?l(Array.isArray(e)?[]:{},e,n):e}else n.isMergeableObject(e)?r[o]=l(t[o],e,n):-1===t.indexOf(e)&&r.push(e)})),r}var vr="undefined"!==typeof window&&"undefined"!==typeof window.document&&"undefined"!==typeof window.document.createElement?Cn.useLayoutEffect:Cn.useEffect;function yr(t){var e=(0,Cn.useRef)(t);return vr((function(){e.current=t})),(0,Cn.useCallback)((function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return e.current.apply(void 0,n)}),[])}(0,Cn.forwardRef)((function(t,e){var n=t.action,r=qn(t,["action"]),o=null!=n?n:"#",i=Qn(),s=i.handleReset,a=i.handleSubmit;return(0,Cn.createElement)("form",Xn({onSubmit:a,ref:e,onReset:s,action:o},r))})).displayName="Form";var gr=function(t,e,n){var r=br(t);return r.splice(e,0,n),r},br=function(t){if(t){if(Array.isArray(t))return[].concat(t);var e=Object.keys(t).map((function(t){return parseInt(t)})).reduce((function(t,e){return e>t?e:t}),0);return Array.from(Xn({},t,{length:e+1}))}return[]},xr=function(t,e){var n="function"===typeof t?t:e;return function(t){if(Array.isArray(t)||nr(t)){var e=br(t);return n(e)}return t}},Ar=function(t){function e(e){var n;return(n=t.call(this,e)||this).updateArrayField=function(t,e,r){var o=n.props,i=o.name;(0,o.formik.setFormikState)((function(n){var o=xr(r,t),s=xr(e,t),a=lr(n.values,i,t(ar(n.values,i))),l=r?o(ar(n.errors,i)):void 0,u=e?s(ar(n.touched,i)):void 0;return tr(l)&&(l=void 0),tr(u)&&(u=void 0),Xn({},n,{values:a,errors:r?lr(n.errors,i,l):n.errors,touched:e?lr(n.touched,i,u):n.touched})}))},n.push=function(t){return n.updateArrayField((function(e){return[].concat(br(e),[Vn(t)])}),!1,!1)},n.handlePush=function(t){return function(){return n.push(t)}},n.swap=function(t,e){return n.updateArrayField((function(n){return function(t,e,n){var r=br(t),o=r[e];return r[e]=r[n],r[n]=o,r}(n,t,e)}),!0,!0)},n.handleSwap=function(t,e){return function(){return n.swap(t,e)}},n.move=function(t,e){return n.updateArrayField((function(n){return function(t,e,n){var r=br(t),o=r[e];return r.splice(e,1),r.splice(n,0,o),r}(n,t,e)}),!0,!0)},n.handleMove=function(t,e){return function(){return n.move(t,e)}},n.insert=function(t,e){return n.updateArrayField((function(n){return gr(n,t,e)}),(function(e){return gr(e,t,null)}),(function(e){return gr(e,t,null)}))},n.handleInsert=function(t,e){return function(){return n.insert(t,e)}},n.replace=function(t,e){return n.updateArrayField((function(n){return function(t,e,n){var r=br(t);return r[e]=n,r}(n,t,e)}),!1,!1)},n.handleReplace=function(t,e){return function(){return n.replace(t,e)}},n.unshift=function(t){var e=-1;return n.updateArrayField((function(n){var r=n?[t].concat(n):[t];return e=r.length,r}),(function(t){return t?[null].concat(t):[null]}),(function(t){return t?[null].concat(t):[null]})),e},n.handleUnshift=function(t){return function(){return n.unshift(t)}},n.handleRemove=function(t){return function(){return n.remove(t)}},n.handlePop=function(){return function(){return n.pop()}},n.remove=n.remove.bind(Zn(n)),n.pop=n.pop.bind(Zn(n)),n}$n(e,t);var n=e.prototype;return n.componentDidUpdate=function(t){this.props.validateOnChange&&this.props.formik.validateOnChange&&!Mn()(ar(t.formik.values,t.name),ar(this.props.formik.values,this.props.name))&&this.props.formik.validateForm(this.props.formik.values)},n.remove=function(t){var e;return this.updateArrayField((function(n){var r=n?br(n):[];return e||(e=r[t]),er(r.splice)&&r.splice(t,1),er(r.every)&&r.every((function(t){return void 0===t}))?[]:r}),!0,!0),e},n.pop=function(){var t;return this.updateArrayField((function(e){var n=e.slice();return t||(t=n&&n.pop&&n.pop()),n}),!0,!0),t},n.render=function(){var t={push:this.push,pop:this.pop,swap:this.swap,move:this.move,insert:this.insert,replace:this.replace,unshift:this.unshift,remove:this.remove,handlePush:this.handlePush,handlePop:this.handlePop,handleSwap:this.handleSwap,handleMove:this.handleMove,handleInsert:this.handleInsert,handleReplace:this.handleReplace,handleUnshift:this.handleUnshift,handleRemove:this.handleRemove},e=this.props,n=e.component,r=e.render,o=e.children,i=e.name,s=Xn({},t,{form:qn(e.formik,["validate","validationSchema"]),name:i});return n?(0,Cn.createElement)(n,s):r?r(s):o?"function"===typeof o?o(s):ir(o)?null:Cn.Children.only(o):null},e}(Cn.Component);Ar.defaultProps={validateOnChange:!0}},424901:t=>{var e=Array.isArray,n=Object.keys,r=Object.prototype.hasOwnProperty,o="undefined"!==typeof Element;function i(t,s){if(t===s)return!0;
1if(t&&s&&"object"==typeof t&&"object"==typeof s){var a,l,u,c=e(t),h=e(s);if(c&&h){if((l=t.length)!=s.length)return!1;for(a=l;0!==a--;)if(!i(t[a],s[a]))return!1;return!0}if(c!=h)return!1;var d=t instanceof Date,p=s instanceof Date;if(d!=p)return!1;if(d&&p)return t.getTime()==s.getTime();var f=t instanceof RegExp,m=s instanceof RegExp;if(f!=m)return!1;if(f&&m)return t.toString()==s.toString();var v=n(t);if((l=v.length)!==n(s).length)return!1;for(a=l;0!==a--;)if(!r.call(s,v[a]))return!1;if(o&&t instanceof Element&&s instanceof Element)return t===s;for(a=l;0!==a--;)if(("_owner"!==(u=v[a])||!t.$$typeof)&&!i(t[u],s[u]))return!1;return!0}return t!==t&&s!==s}t.exports=function(t,e){try{return i(t,e)}catch(n){if(n.message&&n.message.match(/stack|recursion/i)||-2146828260===n.number)return console.warn("Warning: react-fast-compare does not handle circular references.",n.name,n.message),!1;throw n}}},525371:(t,e,n)=>{n.d(e,{P:()=>Ts});var r=n(489379),o=n(409950);const i=(0,o.createContext)({transformPagePoint:t=>t,isStatic:!1,reducedMotion:"never"}),s=(0,o.createContext)({});const a=(0,o.createContext)(null),l="undefined"!==typeof document,u=l?o.useLayoutEffect:o.useEffect,c=(0,o.createContext)({strict:!1});function h(t,e,n,r){const l=(0,o.useContext)(s).visualElement,h=(0,o.useContext)(c),d=(0,o.useContext)(a),p=(0,o.useContext)(i).reducedMotion,f=(0,o.useRef)();r=r||h.renderer,!f.current&&r&&(f.current=r(t,{visualState:e,parent:l,props:n,presenceId:d?d.id:void 0,blockInitialAnimation:!!d&&!1===d.initial,reducedMotionConfig:p}));const m=f.current;return u((()=>{m&&m.render()})),u((()=>{m&&m.animationState&&m.animationState.animateChanges()})),u((()=>()=>m&&m.notify("Unmount")),[]),m}function d(t){return"object"===typeof t&&Object.prototype.hasOwnProperty.call(t,"current")}function p(t){return"string"===typeof t||Array.isArray(t)}function f(t){return"object"===typeof t&&"function"===typeof t.start}const m=["initial","animate","exit","whileHover","whileDrag","whileTap","whileFocus","whileInView"];function v(t){return f(t.animate)||m.some((e=>p(t[e])))}function y(t){return Boolean(v(t)||t.variants)}function g(t){const{initial:e,animate:n}=function(t,e){if(v(t)){const{initial:e,animate:n}=t;return{initial:!1===e||p(e)?e:void 0,animate:p(n)?n:void 0}}return!1!==t.inherit?e:{}}(t,(0,o.useContext)(s));return(0,o.useMemo)((()=>({initial:e,animate:n})),[b(e),b(n)])}function b(t){return Array.isArray(t)?t.join(" "):t}const x=t=>({isEnabled:e=>t.some((t=>!!e[t]))}),A={measureLayout:x(["layout","layoutId","drag"]),animation:x(["animate","exit","variants","whileHover","whileTap","whileFocus","whileDrag","whileInView"]),exit:x(["exit"]),drag:x(["drag","dragControls"]),focus:x(["whileFocus"]),hover:x(["whileHover","onHoverStart","onHoverEnd"]),tap:x(["whileTap","onTap","onTapStart","onTapCancel"]),pan:x(["onPan","onPanStart","onPanSessionStart","onPanEnd"]),inView:x(["whileInView","onViewportEnter","onViewportLeave"])};function E(t){const e=(0,o.useRef)(null);return null===e.current&&(e.current=t()),e.current}const S={hasAnimatedSinceResize:!0,hasEverUpdated:!1};let T=1;const w=(0,o.createContext)({});class P extends o.Component{getSnapshotBeforeUpdate(){const{visualElement:t,props:e}=this.props;return t&&t.setProps(e),null}componentDidUpdate(){}render(){return this.props.children}}const j=(0,o.createContext)({}),V=Symbol.for("motionComponentSymbol");function C(t){let{preloadedFeatures:e,createVisualElement:n,projectionNodeConstructor:a,useRender:u,useVisualState:p,Component:f}=t;e&&function(t){for(const e in t)"projectionNodeConstructor"===e?A.projectionNodeConstructor=t[e]:A[e].Component=t[e]}(e);const m=(0,o.forwardRef)((function(t,m){const v=(0,r.A)((0,r.A)((0,r.A)({},(0,o.useContext)(i)),t),{},{layoutId:O(t)}),{isStatic:y}=v;let b=null;const x=g(t),w=y?void 0:E((()=>{if(S.hasEverUpdated)return T++})),V=p(t,y);if(!y&&l){x.visualElement=h(f,V,v,n);const t=(0,o.useContext)(c).strict,r=(0,o.useContext)(j);x.visualElement&&(b=x.visualElement.loadFeatures(v,t,e,w,a||A.projectionNodeConstructor,r))}return o.createElement(P,{visualElement:x.visualElement,props:v},b,o.createElement(s.Provider,{value:x},u(f,t,w,function(t,e,n){return(0,o.useCallback)((r=>{r&&t.mount&&t.mount(r),e&&(r?e.mount(r):e.unmount()),n&&("function"===typeof n?n(r):d(n)&&(n.current=r))}),[e])}(V,x.visualElement,m),V,y,x.visualElement)))}));return m[V]=f,m}function O(t){let{layoutId:e}=t;const n=(0,o.useContext)(w).id;return n&&void 0!==e?n+"-"+e:e}function M(t){function e(e){return C(t(e,arguments.length>1&&void 0!==arguments[1]?arguments[1]:{}))}if("undefined"===typeof Proxy)return e;const n=new Map;return new Proxy(e,{get:(t,r)=>(n.has(r)||n.set(r,e(r)),n.get(r))})}const R=["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 k(t){return"string"===typeof t&&!t.includes("-")&&!!(R.indexOf(t)>-1||/[A-Z]/.test(t))}const D={};const _=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],F=new Set(_);function I(t,e){let{layout:n,layoutId:r}=e;return F.has(t)||t.startsWith("origin")||(n||void 0!==r)&&(!!D[t]||"opacity"===t)}const L=t=>!!(null===t||void 0===t?void 0:t.getVelocity),B={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},U=(t,e)=>_.indexOf(t)-_.indexOf(e);function N(t){return t.startsWith("--")}const z=(t,e)=>e&&"number"===typeof t?e.transform(t):t,H=(t,e,n)=>Math.min(Math.max(n,t),e),W={test:t=>"number"===typeof t,parse:parseFloat,transform:t=>t},Y=(0,r.A)((0,r.A)({},W),{},{transform:t=>H(0,1,t)}),G=(0,r.A)((0,r.A)({},W),{},{default:1}),X=t=>
1Math.round(1e5*t)/1e5,$=/(-)?([\d]*\.?[\d])+/g,q=/(#[0-9a-f]{6}|#[0-9a-f]{3}|#(?:[0-9a-f]{2}){2,4}|(rgb|hsl)a?\((-?[\d\.]+%?[,\s]+){2}(-?[\d\.]+%?)\s*[\,\/]?\s*[\d\.]*%?\))/gi,Z=/^(#[0-9a-f]{3}|#(?:[0-9a-f]{2}){2,4}|(rgb|hsl)a?\((-?[\d\.]+%?[,\s]+){2}(-?[\d\.]+%?)\s*[\,\/]?\s*[\d\.]*%?\))$/i;function K(t){return"string"===typeof t}const J=t=>({test:e=>K(e)&&e.endsWith(t)&&1===e.split(" ").length,parse:parseFloat,transform:e=>"".concat(e).concat(t)}),Q=J("deg"),tt=J("%"),et=J("px"),nt=J("vh"),rt=J("vw"),ot=(0,r.A)((0,r.A)({},tt),{},{parse:t=>tt.parse(t)/100,transform:t=>tt.transform(100*t)}),it=(0,r.A)((0,r.A)({},W),{},{transform:Math.round}),st={borderWidth:et,borderTopWidth:et,borderRightWidth:et,borderBottomWidth:et,borderLeftWidth:et,borderRadius:et,radius:et,borderTopLeftRadius:et,borderTopRightRadius:et,borderBottomRightRadius:et,borderBottomLeftRadius:et,width:et,maxWidth:et,height:et,maxHeight:et,size:et,top:et,right:et,bottom:et,left:et,padding:et,paddingTop:et,paddingRight:et,paddingBottom:et,paddingLeft:et,margin:et,marginTop:et,marginRight:et,marginBottom:et,marginLeft:et,rotate:Q,rotateX:Q,rotateY:Q,rotateZ:Q,scale:G,scaleX:G,scaleY:G,scaleZ:G,skew:Q,skewX:Q,skewY:Q,distance:et,translateX:et,translateY:et,translateZ:et,x:et,y:et,z:et,perspective:et,transformPerspective:et,opacity:Y,originX:ot,originY:ot,originZ:et,zIndex:it,fillOpacity:Y,strokeOpacity:Y,numOctaves:it};function at(t,e,n,r){const{style:o,vars:i,transform:s,transformKeys:a,transformOrigin:l}=t;a.length=0;let u=!1,c=!1,h=!0;for(const d in e){const t=e[d];if(N(d)){i[d]=t;continue}const n=st[d],r=z(t,n);if(F.has(d)){if(u=!0,s[d]=r,a.push(d),!h)continue;t!==(n.default||0)&&(h=!1)}else d.startsWith("origin")?(c=!0,l[d]=r):o[d]=r}if(e.transform||(u||r?o.transform=function(t,e,n,r){let{transform:o,transformKeys:i}=t,{enableHardwareAcceleration:s=!0,allowTransformNone:a=!0}=e,l="";i.sort(U);for(const u of i)l+="".concat(B[u]||u,"(").concat(o[u],") ");return s&&!o.z&&(l+="translateZ(0)"),l=l.trim(),r?l=r(o,n?"":l):a&&n&&(l="none"),l}(t,n,h,r):o.transform&&(o.transform="none")),c){const{originX:t="50%",originY:e="50%",originZ:n=0}=l;o.transformOrigin="".concat(t," ").concat(e," ").concat(n)}}const lt=()=>({style:{},transform:{},transformKeys:[],transformOrigin:{},vars:{}});function ut(t,e,n){for(const r in e)L(e[r])||I(r,n)||(t[r]=e[r])}function ct(t,e,n){const r={};return ut(r,t.style||{},t),Object.assign(r,function(t,e,n){let{transformTemplate:r}=t;return(0,o.useMemo)((()=>{const t={style:{},transform:{},transformKeys:[],transformOrigin:{},vars:{}};return at(t,e,{enableHardwareAcceleration:!n},r),Object.assign({},t.vars,t.style)}),[e])}(t,e,n)),t.transformValues?t.transformValues(r):r}function ht(t,e,n){const r={},o=ct(t,e,n);return t.drag&&!1!==t.dragListener&&(r.draggable=!1,o.userSelect=o.WebkitUserSelect=o.WebkitTouchCallout="none",o.touchAction=!0===t.drag?"none":"pan-".concat("x"===t.drag?"y":"x")),r.style=o,r}const dt=new Set(["initial","style","values","variants","transition","transformTemplate","transformValues","custom","inherit","layout","layoutId","layoutDependency","onLayoutAnimationStart","onLayoutAnimationComplete","onLayoutMeasure","onBeforeLayoutMeasure","onAnimationStart","onAnimationComplete","onUpdate","onDragStart","onDrag","onDragEnd","onMeasureDragConstraints","onDirectionLock","onDragTransitionEnd","drag","dragControls","dragListener","dragConstraints","dragDirectionLock","dragSnapToOrigin","_dragX","_dragY","dragElastic","dragMomentum","dragPropagation","dragTransition","onHoverStart","onHoverEnd","layoutScroll","whileInView","onViewportEnter","onViewportLeave","viewport","whileTap","onTap","onTapStart","onTapCancel","animate","exit","variants","whileHover","whileTap","whileFocus","whileDrag","whileInView","onPan","onPanStart","onPanSessionStart","onPanEnd"]);function pt(t){return dt.has(t)}let ft=t=>!pt(t);try{(mt=require("@emotion/is-prop-valid").default)&&(ft=t=>t.startsWith("on")?!pt(t):mt(t))}catch(ws){}var mt;var vt=n(180045);function yt(t,e,n){return"string"===typeof t?t:et.transform(e+n*t)}const gt={offset:"stroke-dashoffset",array:"stroke-dasharray"},bt={offset:"strokeDashoffset",array:"strokeDasharray"};const xt=["attrX","attrY","originX","originY","pathLength","pathSpacing","pathOffset"];function At(t,e,n,r,o){let{attrX:i,attrY:s,originX:a,originY:l,pathLength:u,pathSpacing:c=1,pathOffset:h=0}=e;if(at(t,(0,vt.A)(e,xt),n,o),r)return void(t.style.viewBox&&(t.attrs.viewB
1ox=t.style.viewBox));t.attrs=t.style,t.style={};const{attrs:d,style:p,dimensions:f}=t;d.transform&&(f&&(p.transform=d.transform),delete d.transform),f&&(void 0!==a||void 0!==l||p.transform)&&(p.transformOrigin=function(t,e,n){const r=yt(e,t.x,t.width),o=yt(n,t.y,t.height);return"".concat(r," ").concat(o)}(f,void 0!==a?a:.5,void 0!==l?l:.5)),void 0!==i&&(d.x=i),void 0!==s&&(d.y=s),void 0!==u&&function(t,e){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1,r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:0,o=!(arguments.length>4&&void 0!==arguments[4])||arguments[4];t.pathLength=1;const i=o?gt:bt;t[i.offset]=et.transform(-r);const s=et.transform(e),a=et.transform(n);t[i.array]="".concat(s," ").concat(a)}(d,u,c,h,!1)}const Et=()=>(0,r.A)((0,r.A)({},{style:{},transform:{},transformKeys:[],transformOrigin:{},vars:{}}),{},{attrs:{}}),St=t=>"string"===typeof t&&"svg"===t.toLowerCase();function Tt(t,e,n,i){const s=(0,o.useMemo)((()=>{const n=Et();return At(n,e,{enableHardwareAcceleration:!1},St(i),t.transformTemplate),(0,r.A)((0,r.A)({},n.attrs),{},{style:(0,r.A)({},n.style)})}),[e]);if(t.style){const e={};ut(e,t.style,t),s.style=(0,r.A)((0,r.A)({},e),s.style)}return s}function wt(){let t=arguments.length>0&&void 0!==arguments[0]&&arguments[0];return(e,n,i,s,a,l)=>{let{latestValues:u}=a;const c=(k(e)?Tt:ht)(n,u,l,e),h=function(t,e,n){const r={};for(const o in t)(ft(o)||!0===n&&pt(o)||!e&&!pt(o)||t.draggable&&o.startsWith("onDrag"))&&(r[o]=t[o]);return r}(n,"string"===typeof e,t),d=(0,r.A)((0,r.A)((0,r.A)({},h),c),{},{ref:s});return i&&(d["data-projection-id"]=i),(0,o.createElement)(e,d)}}const Pt=t=>t.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase();function jt(t,e,n,r){let{style:o,vars:i}=e;Object.assign(t.style,o,r&&r.getProjectionStyles(n));for(const s in i)t.style.setProperty(s,i[s])}const Vt=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"]);function Ct(t,e,n,r){jt(t,e,void 0,r);for(const o in e.attrs)t.setAttribute(Vt.has(o)?o:Pt(o),e.attrs[o])}function Ot(t){const{style:e}=t,n={};for(const r in e)(L(e[r])||I(r,t))&&(n[r]=e[r]);return n}function Mt(t){const e=Ot(t);for(const n in t)if(L(t[n])){e["x"===n||"y"===n?"attr"+n.toUpperCase():n]=t[n]}return e}function Rt(t,e,n){let r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:{};return"function"===typeof e&&(e=e(void 0!==n?n:t.custom,r,o)),"string"===typeof e&&(e=t.variants&&t.variants[e]),"function"===typeof e&&(e=e(void 0!==n?n:t.custom,r,o)),e}const kt=t=>Array.isArray(t);function Dt(t){const e=L(t)?t.get():t;return n=e,Boolean(n&&"object"===typeof n&&n.mix&&n.toValue)?e.toValue():e;var n}const _t=["transitionEnd","transition"];const Ft=t=>(e,n)=>{const r=(0,o.useContext)(s),i=(0,o.useContext)(a),l=()=>function(t,e,n,r){let{scrapeMotionValuesFromProps:o,createRenderState:i,onMount:s}=t;const a={latestValues:It(e,n,r,o),renderState:i()};return s&&(a.mount=t=>s(e,t,a)),a}(t,e,r,i);return n?l():E(l)};function It(t,e,n,r){const o={},i=r(t);for(const d in i)o[d]=Dt(i[d]);let{initial:s,animate:a}=t;const l=v(t),u=y(t);e&&u&&!l&&!1!==t.inherit&&(void 0===s&&(s=e.initial),void 0===a&&(a=e.animate));let c=!!n&&!1===n.initial;c=c||!1===s;const h=c?a:s;if(h&&"boolean"!==typeof h&&!f(h)){(Array.isArray(h)?h:[h]).forEach((e=>{const n=Rt(t,e);if(!n)return;const{transitionEnd:r,transition:i}=n,s=(0,vt.A)(n,_t);for(const t in s){let e=s[t];if(Array.isArray(e)){e=e[c?e.length-1:0]}null!==e&&(o[t]=e)}for(const t in r)o[t]=r[t]}))}return o}const Lt={useVisualState:Ft({scrapeMotionValuesFromProps:Mt,createRenderState:Et,onMount:(t,e,n)=>{let{renderState:r,latestValues:o}=n;try{r.dimensions="function"===typeof e.getBBox?e.getBBox():e.getBoundingClientRect()}catch(i){r.dimensions={x:0,y:0,width:0,height:0}}At(r,o,{enableHardwareAcceleration:!1},St(e.tagName),t.transformTemplate),Ct(e,r)}})},Bt={useVisualState:Ft({scrapeMotionValuesFromProps:Ot,createRenderState:lt})};var Ut;function Nt(t,e,n){let r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{passive:!0};return t.addEventListener(e,n,r),()=>t.removeEventListener(e,n)}function zt(t,e,n,r){(0,o.useEffect)((()=>{const o=t.current;if(n&&o)return Nt(o,e,n,r)}),[t,e,n,r])}function Ht(t){return"undefined"!==typeof PointerEvent&&t instanceof PointerEvent?!("mouse"!==t.pointerType):t instanceof MouseEvent}function Wt(t){return!!t.touches}!function(t){t.Animate="animate",t.Hover="whileHover",t.Tap="whileTap",t.Drag="whileDrag",t.Focus="whileFocus",t.InView="whileInView",t.Exit="exit"}(Ut||(Ut={}));const Yt={pageX:0,pageY:0};function Gt(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"page";const n=t.touches[0]||t.changedTouches[0]||Yt;return{x:n[e+"X"],y:n[e+"Y"]}}function Xt(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"page";return{x:t[e+"X"],y:t[e+"Y"]}}function $t(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"page";return{point:Wt(t)?Gt(t,e):Xt(t,e)}}const qt=function(t){const e=e=>t(e,$t(e));return arguments.length>1&&void 0!==arguments[1]&&arguments[1]?(n=e,t=>{const e=t instanceof MouseEvent;(!e||e&&0===t.button)&&n(t)}):e;var n}
1,Zt={pointerdown:"mousedown",pointermove:"mousemove",pointerup:"mouseup",pointercancel:"mousecancel",pointerover:"mouseover",pointerout:"mouseout",pointerenter:"mouseenter",pointerleave:"mouseleave"},Kt={pointerdown:"touchstart",pointermove:"touchmove",pointerup:"touchend",pointercancel:"touchcancel"};function Jt(t){return l&&null===window.onpointerdown?t:l&&null===window.ontouchstart?Kt[t]:l&&null===window.onmousedown?Zt[t]:t}function Qt(t,e,n,r){return Nt(t,Jt(e),qt(n,"pointerdown"===e),r)}function te(t,e,n,r){return zt(t,Jt(e),n&&qt(n,"pointerdown"===e),r)}function ee(t){let e=null;return()=>{const n=()=>{e=null};return null===e&&(e=t,n)}}const ne=ee("dragHorizontal"),re=ee("dragVertical");function oe(t){let e=!1;if("y"===t)e=re();else if("x"===t)e=ne();else{const t=ne(),n=re();t&&n?e=()=>{t(),n()}:(t&&t(),n&&n())}return e}function ie(){const t=oe(!0);return!t||(t(),!1)}function se(t,e,n){return(r,o)=>{Ht(r)&&!ie()&&(t.animationState&&t.animationState.setActive(Ut.Hover,e),n&&n(r,o))}}const ae=(t,e)=>!!e&&(t===e||ae(t,e.parentElement));function le(t){return(0,o.useEffect)((()=>()=>t()),[])}const ue=(t,e)=>n=>e(t(n)),ce=function(){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];return e.reduce(ue)};new Set;const he=["root"],de=new WeakMap,pe=new WeakMap,fe=t=>{const e=de.get(t.target);e&&e(t)},me=t=>{t.forEach(fe)};function ve(t,e,n){const o=function(t){let{root:e}=t,n=(0,vt.A)(t,he);const o=e||document;pe.has(o)||pe.set(o,{});const i=pe.get(o),s=JSON.stringify(n);return i[s]||(i[s]=new IntersectionObserver(me,(0,r.A)({root:e},n))),i[s]}(e);return de.set(t,n),o.observe(t),()=>{de.delete(t),o.unobserve(t)}}const ye={some:0,all:1};function ge(t,e,n,r){let{root:i,margin:s,amount:a="some",once:l}=r;(0,o.useEffect)((()=>{if(!t||!n.current)return;const r={root:null===i||void 0===i?void 0:i.current,rootMargin:s,threshold:"number"===typeof a?a:ye[a]};return ve(n.current,r,(t=>{const{isIntersecting:r}=t;if(e.isInView===r)return;if(e.isInView=r,l&&!r&&e.hasEnteredView)return;r&&(e.hasEnteredView=!0),n.animationState&&n.animationState.setActive(Ut.InView,r);const o=n.getProps(),i=r?o.onViewportEnter:o.onViewportLeave;i&&i(t)}))}),[t,i,s,a])}function be(t,e,n,r){let{fallback:i=!0}=r;(0,o.useEffect)((()=>{t&&i&&requestAnimationFrame((()=>{e.hasEnteredView=!0;const{onViewportEnter:t}=n.getProps();t&&t(null),n.animationState&&n.animationState.setActive(Ut.InView,!0)}))}),[t])}const xe=t=>e=>(t(e),null),Ae={inView:xe((function(t){let{visualElement:e,whileInView:n,onViewportEnter:r,onViewportLeave:i,viewport:s={}}=t;const a=(0,o.useRef)({hasEnteredView:!1,isInView:!1});let l=Boolean(n||r||i);s.once&&a.current.hasEnteredView&&(l=!1),("undefined"===typeof IntersectionObserver?be:ge)(l,a.current,e,s)})),tap:xe((function(t){let{onTap:e,onTapStart:n,onTapCancel:r,whileTap:i,visualElement:s}=t;const a=e||n||r||i,l=(0,o.useRef)(!1),u=(0,o.useRef)(null),c={passive:!(n||e||r||m)};function h(){u.current&&u.current(),u.current=null}function d(){return h(),l.current=!1,s.animationState&&s.animationState.setActive(Ut.Tap,!1),!ie()}function p(t,n){d()&&(ae(s.current,t.target)?e&&e(t,n):r&&r(t,n))}function f(t,e){d()&&r&&r(t,e)}function m(t,e){h(),l.current||(l.current=!0,u.current=ce(Qt(window,"pointerup",p,c),Qt(window,"pointercancel",f,c)),s.animationState&&s.animationState.setActive(Ut.Tap,!0),n&&n(t,e))}te(s,"pointerdown",a?m:void 0,c),le(h)})),focus:xe((function(t){let{whileFocus:e,visualElement:n}=t;const{animationState:r}=n;zt(n,"focus",e?()=>{r&&r.setActive(Ut.Focus,!0)}:void 0),zt(n,"blur",e?()=>{r&&r.setActive(Ut.Focus,!1)}:void 0)})),hover:xe((function(t){let{onHoverStart:e,onHoverEnd:n,whileHover:r,visualElement:o}=t;te(o,"pointerenter",e||r?se(o,!0,e):void 0,{passive:!e}),te(o,"pointerleave",n||r?se(o,!1,n):void 0,{passive:!n})}))};function Ee(){const t=(0,o.useContext)(a);if(null===t)return[!0,null];const{isPresent:e,onExitComplete:n,register:r}=t,i=(0,o.useId)();(0,o.useEffect)((()=>r(i)),[]);return!e&&n?[!1,()=>n&&n(i)]:[!0]}function Se(t,e){if(!Array.isArray(e))return!1;const n=e.length;if(n!==t.length)return!1;for(let r=0;r<n;r++)if(e[r]!==t[r])return!1;return!0}const Te=t=>/^0[^.\s]+$/.test(t),we={delta:0,timestamp:0},Pe=1/60*1e3,je="undefined"!==typeof performance?()=>performance.now():()=>Date.now(),Ve="undefined"!==typeof window?t=>window.requestAnimationFrame(t):t=>setTimeout((()=>t(je())),Pe);let Ce=!0,Oe=!1,Me=!1;const Re=["read","update","preRender","render","postRender"],ke=Re.reduce(((t,e)=>(t[e]=function(t){let e=[],n=[],r=0,o=!1,i=!1;const s=new WeakSet,a={schedule:function(t){const i=arguments.length>2&&void 0!==arguments[2]&&arguments[2]&&o,a=i?e:n;return arguments.length>1&&void 0!==arguments[1]&&arguments[1]&&s.add(t),-1===a.indexOf(t)&&(a.push(t),i&&o&&(r=e.length)),t},cancel:t=>{const e=n.indexOf(t);-1!==e&&n.splice(e,1),s.delete(t)},process:l=>{if(o)i=!0;else{if(o=!0,[e,n]=[n,e],n.length=0,r=e.length,r)for(let n=0;n<r;n++){const r=e[n];r(l),s.has(r)&&(a.schedule(r),t())}o=!1,i&&(i=!1,a.process(l))}}};return a}((()=>Oe=!0)),t)),{}),De=Re.reduce(((t,e)=>{const n=ke[e];return t[e]=function(t){let e=arguments.length>1&&void 0!==arguments[1]&&arguments[1],r=arguments.length>2&&void 0!==arguments[2]&&arguments[2];return Oe||Be(),n.schedule(t,e,r)},t}),{}),_e=Re.reduce(((t,e)=>(t[e]=ke[e].cancel,t)),{}),Fe=Re.reduce(((t,e)=>(t[e]=()=>ke[e].process(we),t)),{}),Ie=t=>ke[t].process(we),Le=t=>{Oe=!1,we.delta=Ce?Pe:Math.max(Math.min(t-we.timestamp,40),1),we.timestamp=t,Me=!0,Re.forEach(Ie),Me=!1,Oe&&(Ce=!1,Ve(Le))},Be=()=>{Oe=!0,Ce=!0,Me||Ve(Le)};function Ue(t,e){-1===t.indexOf(e)&&t.push(e)}function Ne(t,e){const n=t.indexOf(e);n>-1&&t.splice(n,1)}class ze{constructor(){this.subscriptions=[]}add(t){return Ue(this.subscriptions,t),()=>Ne(this.subscriptions,t)}notify(t,e,n){const r=this.subscriptions.length;if(r)if(1===r)this.subscriptions[0](t,e,n);else for(let o=0;o<r;o++){const r=this.subscriptions[o];r&&r(t,e,n)}}getSize(){return this.subscriptions.length}clear(){this.subscriptions.length=0}}function He(t,e){return e?t*(1e3/e):0}class We{constructor(t){var e=this;let n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};var r;this.version="7.10.3",this.timeDelta=0,this.lastUpdated=0,this.canTrackVelocity=!1,this.events={},this.updateAndNotify=function(t){let n=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];e.prev=e.current,e.current=t;const{delta:r,timestamp:o}=we;e.lastUpdated!==o&&(e.timeDelta=r,e.lastUpdated=o,De.postRender(e.scheduleVelocityCheck)),e.prev!==e.current&&e.events.change&&e.events.change.notify(e.current),e.events.velocityChange&&e.events.velocityChange.notify(e.getVelocity()),n&&e.events.renderRequest&&e.events.renderRequest.notify(e.current)},this.scheduleVelocityCheck=()=>De.postRender(this.velocityCheck),this.velocityCheck=t=>{let{timestamp:e}=t;e!==this.lastUpdated&&(this.prev=this.current,this.events.velocityChange&&this.events.velocityChange.notify(this.getVelocity()))},this.hasAnimated=!1,this.prev=this.current=t,this.canTrackVelocity=(r=this.current,!isNaN(parseFloat(r))),this.owner=n.owner}onChange(t){return this.on("change",t)}on(t,e){return this.events[t]||(this.events[t]=new ze),this.events[t].add(e)}clearListeners(){for(const t in this.events)this.events[t].clear()}attach(t){this.passiveEffect=t}set(t){let e=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];e&&this.passiveEffect?this.passiveEffect(t,this.updateAndNotify):this.updateAndNotify(t,e)}setWithVelocity(t,e,n){this.set(e),this.prev=t,this.timeDelta=n}get(){return this.current}getPrevious(){return this.prev}getVelocity(){return this.canTrackVelocity?He(parseFloat(this.current)-parseFloat(this.prev),this.timeDelta):0}start(t){return this.stop(),new Promise((e=>{this.hasAnimated=!0,this.stopAnimation=t(e),this.events.animationStart&&this.events.animationStart.notify()})).then((()=>{this.events.animationComplete&&this.events.animationComplete.notify(),this.clearAnimation()}))}stop(){this.stopAnimation&&(this.stopAnimation(),this.events.animationCancel&&this.events.animationCancel.notify()),this.clearAnimation()}isAnimating(){return!!this.stopAnimation}clearAnimation(){this.stopAnimation=null}destroy(){this.clearListeners(),this.stop()}}function Ye(t,e){return new We(t,e)}const Ge=(t,e)=>n=>Boolean(K(n)&&Z.test(n)&&n.startsWith(t)||e&&Object.prototype.hasOwnProperty.call(n,e)),Xe=(t,e,n)=>r=>{if(!K(r))return r;const[o,i,s,a]=r.match($);return{[t]:parseFloat(o),[e]:parseFloat(i),[n]:parseFloat(s),alpha:void 0!==a?parseFloat(a):1}},$e=(0,r.A)((0,r.A)({},W),{},{transform:t=>Math.round((t=>H(0,255,t))(t))}),qe={test:Ge("rgb","red"),parse:Xe("red","green","blue"),transform:t=>{let{red:e,green:n,blue:r,alpha:o=1}=t;return"rgba("+$e.transform(e)+", "+$e.transform(n)+", "+$e.transform(r)+", "+X(Y.transform(o))+")"}};const Ze={test:Ge("#"),parse:function(t){let e="",n="",r="",o="";return t.length>5?(e=t.substring(1,3),n=t.substring(3,5),r=t.substring(5,7),o=t.substring(7,9)):(e=t.substring(1,2),n=t.substring(2,3),r=t.substring(3,4),o=t.substring(4,5),e+=e,n+=n,r+=r,o+=o),{red:parseInt(e,16),green:parseInt(n,16),blue:parseInt(r,16),alph
1a:o?parseInt(o,16)/255:1}},transform:qe.transform},Ke={test:Ge("hsl","hue"),parse:Xe("hue","saturation","lightness"),transform:t=>{let{hue:e,saturation:n,lightness:r,alpha:o=1}=t;return"hsla("+Math.round(e)+", "+tt.transform(X(n))+", "+tt.transform(X(r))+", "+X(Y.transform(o))+")"}},Je={test:t=>qe.test(t)||Ze.test(t)||Ke.test(t),parse:t=>qe.test(t)?qe.parse(t):Ke.test(t)?Ke.parse(t):Ze.parse(t),transform:t=>K(t)?t:t.hasOwnProperty("red")?qe.transform(t):Ke.transform(t)},Qe="${c}",tn="${n}";function en(t){"number"===typeof t&&(t="".concat(t));const e=[];let n=0,r=0;const o=t.match(q);o&&(n=o.length,t=t.replace(q,Qe),e.push(...o.map(Je.parse)));const i=t.match($);return i&&(r=i.length,t=t.replace($,tn),e.push(...i.map(W.parse))),{values:e,numColors:n,numNumbers:r,tokenised:t}}function nn(t){return en(t).values}function rn(t){const{values:e,numColors:n,tokenised:r}=en(t),o=e.length;return t=>{let e=r;for(let r=0;r<o;r++)e=e.replace(r<n?Qe:tn,r<n?Je.transform(t[r]):X(t[r]));return e}}const on=t=>"number"===typeof t?0:t;const sn={test:function(t){var e,n;return isNaN(t)&&K(t)&&((null===(e=t.match($))||void 0===e?void 0:e.length)||0)+((null===(n=t.match(q))||void 0===n?void 0:n.length)||0)>0},parse:nn,createTransformer:rn,getAnimatableNone:function(t){const e=nn(t);return rn(t)(e.map(on))}},an=new Set(["brightness","contrast","saturate","opacity"]);function ln(t){const[e,n]=t.slice(0,-1).split("(");if("drop-shadow"===e)return t;const[r]=n.match($)||[];if(!r)return t;const o=n.replace(r,"");let i=an.has(e)?1:0;return r!==n&&(i*=100),e+"("+i+o+")"}const un=/([a-z-]*)\(.*?\)/g,cn=(0,r.A)((0,r.A)({},sn),{},{getAnimatableNone:t=>{const e=t.match(un);return e?e.map(ln).join(" "):t}}),hn=(0,r.A)((0,r.A)({},st),{},{color:Je,backgroundColor:Je,outlineColor:Je,fill:Je,stroke:Je,borderColor:Je,borderTopColor:Je,borderRightColor:Je,borderBottomColor:Je,borderLeftColor:Je,filter:cn,WebkitFilter:cn}),dn=t=>hn[t];function pn(t,e){var n;let r=dn(t);return r!==cn&&(r=sn),null===(n=r.getAnimatableNone)||void 0===n?void 0:n.call(r,e)}const fn=t=>e=>e.test(t),mn=[W,et,tt,Q,rt,nt,{test:t=>"auto"===t,parse:t=>t}],vn=t=>mn.find(fn(t)),yn=[...mn,Je,sn],gn=t=>yn.find(fn(t));function bn(t,e,n){const r=t.getProps();return Rt(r,e,void 0!==n?n:r.custom,function(t){const e={};return t.values.forEach(((t,n)=>e[n]=t.get())),e}(t),function(t){const e={};return t.values.forEach(((t,n)=>e[n]=t.getVelocity())),e}(t))}const xn=["transitionEnd","transition"];function An(t,e,n){t.hasValue(e)?t.getValue(e).set(n):t.addValue(e,Ye(n))}function En(t,e){const n=bn(t,e);let o=n?t.makeTargetAnimatable(n,!1):{},{transitionEnd:i={},transition:s={}}=o,a=(0,vt.A)(o,xn);a=(0,r.A)((0,r.A)({},a),i);for(const r in a){An(t,r,(l=a[r],kt(l)?l[l.length-1]||0:l))}var l}function Sn(t,e){if(!e)return;return(e[t]||e.default||e).from}function Tn(t){return Boolean(L(t)&&t.add)}function wn(t,e){const{MotionAppearAnimations:n}=window,r=((t,e)=>"".concat(t,": ").concat(e))(t,F.has(e)?"transform":e),o=n&&n.get(r);return o?(De.render((()=>{try{o.cancel(),n.delete(r)}catch(t){}})),o.currentTime||0):0}const Pn="data-"+Pt("framerAppearId");const jn=t=>1e3*t,Vn=!1,Cn=t=>e=>e<=.5?t(2*e)/2:(2-t(2*(1-e)))/2,On=t=>e=>1-t(1-e),Mn=t=>t*t,Rn=On(Mn),kn=Cn(Mn),Dn=(t,e,n)=>-n*t+n*e+t;function _n(t,e,n){return n<0&&(n+=1),n>1&&(n-=1),n<1/6?t+6*(e-t)*n:n<.5?e:n<2/3?t+(e-t)*(2/3-n)*6:t}const Fn=(t,e,n)=>{const r=t*t;return Math.sqrt(Math.max(0,n*(e*e-r)+r))},In=[Ze,qe,Ke];function Ln(t){const e=(n=t,In.find((t=>t.test(n))));var n;Boolean(e),"'".concat(t,"' is not an animatable color. Use the equivalent color code instead.");let r=e.parse(t);return e===Ke&&(r=function(t){let{hue:e,saturation:n,lightness:r,alpha:o}=t;e/=360,n/=100,r/=100;let i=0,s=0,a=0;if(n){const t=r<.5?r*(1+n):r+n-r*n,o=2*r-t;i=_n(o,t,e+1/3),s=_n(o,t,e),a=_n(o,t,e-1/3)}else i=s=a=r;return{red:Math.round(255*i),green:Math.round(255*s),blue:Math.round(255*a),alpha:o}}(r)),r}const Bn=(t,e)=>{const n=Ln(t),o=Ln(e),i=(0,r.A)({},n);return t=>(i.red=Fn(n.red,o.red,t),i.green=Fn(n.green,o.green,t),i.blue=Fn(n.blue,o.blue,t),i.alpha=Dn(n.alpha,o.alpha,t),qe.transform(i))};function Un(t,e){return"number"===typeof t?n=>
1Dn(t,e,n):Je.test(t)?Bn(t,e):Hn(t,e)}const Nn=(t,e)=>{const n=[...t],r=n.length,o=t.map(((t,n)=>Un(t,e[n])));return t=>{for(let e=0;e<r;e++)n[e]=o[e](t);return n}},zn=(t,e)=>{const n=(0,r.A)((0,r.A)({},t),e),o={};for(const r in n)void 0!==t[r]&&void 0!==e[r]&&(o[r]=Un(t[r],e[r]));return t=>{for(const e in o)n[e]=o[e](t);return n}},Hn=(t,e)=>{const n=sn.createTransformer(e),r=en(t),o=en(e);return r.numColors===o.numColors&&r.numNumbers>=o.numNumbers?ce(Nn(r.values,o.values),n):("Complex values '".concat(t,"' and '").concat(e,"' 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."),n=>"".concat(n>0?e:t))},Wn=(t,e,n)=>{const r=e-t;return 0===r?1:(n-t)/r},Yn=(t,e)=>n=>Dn(t,e,n);function Gn(t,e,n){const r=[],o=n||("number"===typeof(i=t[0])?Yn:"string"===typeof i?Je.test(i)?Bn:Hn:Array.isArray(i)?Nn:"object"===typeof i?zn:Yn);var i;const s=t.length-1;for(let a=0;a<s;a++){let n=o(t[a],t[a+1]);if(e){const t=Array.isArray(e)?e[a]:e;n=ce(t,n)}r.push(n)}return r}function Xn(t,e){let{clamp:n=!0,ease:r,mixer:o}=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};const i=t.length;e.length,!r||!Array.isArray(r)||r.length,t[0]>t[i-1]&&(t=[...t].reverse(),e=[...e].reverse());const s=Gn(e,r,o),a=s.length,l=e=>{let n=0;if(a>1)for(;n<t.length-2&&!(e<t[n+1]);n++);const r=Wn(t[n],t[n+1],e);return s[n](r)};return n?e=>l(H(t[0],t[i-1],e)):l}const $n=t=>t,qn=(t,e,n)=>(((1-3*n+3*e)*t+(3*n-6*e))*t+3*e)*t;function Zn(t,e,n,r){if(t===e&&n===r)return $n;const o=e=>function(t,e,n,r,o){let i,s,a=0;do{s=e+(n-e)/2,i=qn(s,r,o)-t,i>0?n=s:e=s}while(Math.abs(i)>1e-7&&++a<12);return s}(e,0,1,t,n);return t=>0===t||1===t?t:qn(o(t),e,r)}const Kn=t=>1-Math.sin(Math.acos(t)),Jn=On(Kn),Qn=Cn(Jn),tr=Zn(.33,1.53,.69,.99),er=On(tr),nr=Cn(er),rr={linear:$n,easeIn:Mn,easeInOut:kn,easeOut:Rn,circIn:Kn,circInOut:Qn,circOut:Jn,backIn:er,backInOut:nr,backOut:tr,anticipate:t=>(t*=2)<1?.5*er(t):.5*(2-Math.pow(2,-10*(t-1)))},or=t=>{if(Array.isArray(t)){t.length;const[e,n,r,o]=t;return Zn(e,n,r,o)}return"string"===typeof t?("Invalid easing type '".concat(t,"'"),rr[t]):t};function ir(t){let{keyframes:e,ease:n=kn,times:r,duration:o=300}=t;e=[...e];const i=ir[0],s=(t=>Array.isArray(t)&&"number"!==typeof t[0])(n)?n.map(or):or(n),a={done:!1,value:i},l=function(t,e){return t.map((t=>t*e))}(r&&r.length===ir.length?r:function(t){const e=t.length;return t.map(((t,n)=>0!==n?n/(e-1):0))}(e),o);function u(){return Xn(l,e,{ease:Array.isArray(s)?s:(t=e,n=s,t.map((()=>n||kn)).splice(0,t.length-1))});var t,n}let c=u();return{next:t=>(a.value=c(t),a.done=t>=o,a),flipTarget:()=>{e.reverse(),c=u()}}}const sr=.001;function ar(t){let e,n,{duration:r=800,bounce:o=.25,velocity:i=0,mass:s=1}=t,a=1-o;a=H(.05,1,a),r=H(.01,10,r/1e3),a<1?(e=t=>{const e=t*a,n=e*r,o=e-i,s=ur(t,a),l=Math.exp(-n);return sr-o/s*l},n=t=>{const n=t*a*r,o=n*i+i,s=Math.pow(a,2)*Math.pow(t,2)*r,l=Math.exp(-n),u=ur(Math.pow(t,2),a);return(-e(t)+sr>0?-1:1)*((o-s)*l)/u}):(e=t=>Math.exp(-t*r)*((t-i)*r+1)-.001,n=t=>Math.exp(-t*r)*(r*r*(i-t)));const l=function(t,e,n){let r=n;for(let o=1;o<lr;o++)r-=t(r)/e(r);return r}(e,n,5/r);if(r*=1e3,isNaN(l))return{stiffness:100,damping:10,duration:r};{const t=Math.pow(l,2)*s;return{stiffness:t,damping:2*a*Math.sqrt(s*t),duration:r}}}const lr=12;function ur(t,e){return t*Math.sqrt(1-e*e)}const cr=["keyframes","restSpeed","restDelta"],hr=["duration","bounce"],dr=["stiffness","damping","mass"];function pr(t,e){return e.some((e=>void 0!==t[e]))}function fr(t){let{keyframes:e,restSpeed:n=2,restDelta:o=.01}=t,i=(0,vt.A)(t,cr),s=e[0],a=e[e.length-1];const l={done:!1,value:s},{stiffness:u,damping:c,mass:h,velocity:d,duration:p,isResolvedFromDuration:f}=function(t){let e=(0,r.A)({velocity:0,stiffness:100,damping:10,mass:1,isResolvedFromDuration:!1},t);if(!pr(t,dr)&&pr(t,hr)){const n=ar(t);e=(0,r.A)((0,r.A)((0,r.A)({},e),n),{},{velocity:0,mass:1}),e.isResolvedFromDuration=!0}return e}(i);let m=mr,v=d?-d/1e3:0;const y=c/(2*Math.sqrt(u*h));function g(){const t=a-s,e=Math.sqrt(u/h)/1e3;if(void 0===o&&(o=Math.min(Math.abs(a-s)/100,.4)),y<1){const n=ur(e,y);m=r=>{const o=Math.exp(-y*e*r);return a-o*((v+y*e*t)/n*Math.sin(n*r)+t*Math.cos(n*r))}}else if(1===y)m=n=>a-Math.exp(-e*n)*(t+(v+e*t)*n);else{const n=e*Math.sqrt(y*y-1);m=r=>{const o=Math.exp(-y*e*r),i=Math.min(n*r,300);return a-o*((v+y*e*t)*Math.sinh(i)+n*t*Math.cosh(i))/n}}}return g(),{next:t=>{const e=m(t);if(f)l.done=t>=p;else{let r=v;if(0!==t)if(y<1){const n=Math.max(0,t-5);r=He(e-m(n),t-n)}else r=0;const i=Math.abs(r)<=n,s=Math.abs(a-e)<=o;l.done=i&&s}return l.value=l.done?a:e,l},flipTarget:()=>{v=-v,[s,a]=[a,s],g()}}}fr.needsInterpolation=(t,e)=>"string"===typeof t||"string"===typeof e;const mr=t=>0;const vr=["duration","driver","elapsed","repeat","repeatType","repeatDelay","keyframes","auto
1play","onPlay","onStop","onComplete","onRepeat","onUpdate","type"],yr={decay:function(t){let{keyframes:e=[0],velocity:n=0,power:r=.8,timeConstant:o=350,restDelta:i=.5,modifyTarget:s}=t;const a=e[0],l={done:!1,value:a};let u=r*n;const c=a+u,h=void 0===s?c:s(c);return h!==c&&(u=h-a),{next:t=>{const e=-u*Math.exp(-t/o);return l.done=!(e>i||e<-i),l.value=l.done?h:h+e,l},flipTarget:()=>{}}},keyframes:ir,tween:ir,spring:fr};function gr(t,e){return t-e-(arguments.length>2&&void 0!==arguments[2]?arguments[2]:0)}const br=t=>{const e=e=>{let{delta:n}=e;return t(n)};return{start:()=>De.update(e,!0),stop:()=>_e.update(e)}};function xr(t){let{duration:e,driver:n=br,elapsed:o=0,repeat:i=0,repeatType:s="loop",repeatDelay:a=0,keyframes:l,autoplay:u=!0,onPlay:c,onStop:h,onComplete:d,onRepeat:p,onUpdate:f,type:m="keyframes"}=t,v=(0,vt.A)(t,vr);var y,g;let b,x,A,E=0,S=e,T=!1,w=!0;const P=yr[l.length>2?"keyframes":m],j=l[0],V=l[l.length-1];(null===(g=(y=P).needsInterpolation)||void 0===g?void 0:g.call(y,j,V))&&(A=Xn([0,100],[j,V],{clamp:!1}),l=[0,100]);const C=P((0,r.A)((0,r.A)({},v),{},{duration:e,keyframes:l}));function O(){E++,"reverse"===s?(w=E%2===0,o=function(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;return arguments.length>3&&void 0!==arguments[3]&&!arguments[3]?e-(t-e)+n:gr(e+-t,e,n)}(o,S,a,w)):(o=gr(o,S,a),"mirror"===s&&C.flipTarget()),T=!1,p&&p()}function M(t){if(w||(t=-t),o+=t,!T){const t=C.next(Math.max(0,o));x=t.value,A&&(x=A(x)),T=w?t.done:o<=0}f&&f(x),T&&(0===E&&(S=void 0!==S?S:o),E<i?function(t,e,n,r){return r?t>=e+n:t<=-n}(o,S,a,w)&&O():(b.stop(),d&&d()))}return u&&(c&&c(),b=n(M),b.start()),{stop:()=>{h&&h(),b.stop()},sample:t=>C.next(Math.max(0,t))}}const Ar=t=>{let[e,n,r,o]=t;return"cubic-bezier(".concat(e,", ").concat(n,", ").concat(r,", ").concat(o,")")},Er={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:Ar([0,.65,.55,1]),circOut:Ar([.55,0,1,.45]),backIn:Ar([.31,.01,.66,-.59]),backOut:Ar([.33,1.53,.69,.99])};function Sr(t){if(t)return Array.isArray(t)?Ar(t):Er[t]}const Tr=["onUpdate","onComplete"];function wr(t,e,n){let{onUpdate:o,onComplete:i}=n,s=(0,vt.A)(n,Tr),{keyframes:a,duration:l=.3,elapsed:u=0,ease:c}=s;if("spring"===s.type||!(!(h=s.ease)||Array.isArray(h)||"string"===typeof h&&Er[h])){const t=xr(s);let e={done:!1,value:a[0]};const n=[];let r=0;for(;!e.done;)e=t.sample(r),n.push(e.value),r+=10;a=n,l=r-10,c="linear"}var h;const d=function(t,e,n){let{delay:r=0,duration:o,repeat:i=0,repeatType:s="loop",ease:a,times:l}=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};return t.animate({[e]:n,offset:l},{delay:r,duration:o,easing:Sr(a),fill:"both",iterations:i+1,direction:"reverse"===s?"alternate":"normal"})}(t.owner.current,e,a,(0,r.A)((0,r.A)({},s),{},{delay:-u,duration:l,ease:c}));return d.onfinish=()=>{t.set(a[a.length-1]),i&&i()},()=>{const{currentTime:e}=d;if(e){const n=xr(s);t.setWithVelocity(n.sample(e-10).value,n.sample(e).value,10)}De.update((()=>
1d.cancel()))}}function Pr(t,e){const n=performance.now(),r=o=>{let{timestamp:i}=o;const s=i-n;s>=e&&(_e.read(r),t(s-e))};return De.read(r,!0),()=>_e.read(r)}function jr(t){let{keyframes:e,elapsed:n,onUpdate:r,onComplete:o}=t;const i=()=>(r&&r(e[e.length-1]),o&&o(),()=>{});return n?Pr(i,-n):i()}const Vr=()=>({type:"spring",stiffness:500,damping:25,restSpeed:10}),Cr=t=>({type:"spring",stiffness:550,damping:0===t?2*Math.sqrt(550):30,restSpeed:10}),Or=()=>({type:"keyframes",ease:"linear",duration:.3}),Mr={type:"keyframes",duration:.8},Rr={x:Vr,y:Vr,z:Vr,rotate:Vr,rotateX:Vr,rotateY:Vr,rotateZ:Vr,scaleX:Cr,scaleY:Cr,scale:Cr,opacity:Or,backgroundColor:Or,color:Or,default:Cr},kr=(t,e)=>"zIndex"!==t&&(!("number"!==typeof e&&!Array.isArray(e))||!("string"!==typeof e||!sn.test(e)||e.startsWith("url("))),Dr=["when","delay","delayChildren","staggerChildren","staggerDirection","repeat","repeatType","repeatDelay","from"];function _r(t){return 0===t||"string"===typeof t&&0===parseFloat(t)&&-1===t.indexOf(" ")}function Fr(t){return"number"===typeof t?0:pn("",t)}function Ir(t,e){return t[e]||t.default||t}const Lr={waapi:()=>Object.hasOwnProperty.call(Element.prototype,"animate")},Br={},Ur={};for(const Ps in Lr)Ur[Ps]=()=>(void 0===Br[Ps]&&(Br[Ps]=Lr[Ps]()),Br[Ps]);const Nr=new Set(["opacity"]),zr=function(t,e,n){let o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};return i=>{const s=Ir(o,t)||{},a=s.delay||o.delay||0;let{elapsed:l=0}=o;l-=jn(a);const u=function(t,e,n,r){const o=kr(e,n);let i=void 0!==r.from?r.from:t.get();return"none"===i&&o&&"string"===typeof n?i=pn(e,n):_r(i)&&"string"===typeof n?i=Fr(n):!Array.isArray(n)&&_r(n)&&"string"===typeof i&&(n=Fr(i)),Array.isArray(n)?(null===n[0]&&(n[0]=i),n):[i,n]}(e,t,n,s),c=u[0],h=u[u.length-1],d=kr(t,c),p=kr(t,h);"You are trying to animate ".concat(t,' from "').concat(c,'" to "').concat(h,'". ').concat(c," is not an animatable value - to enable this animation set ").concat(c," to a value animatable to ").concat(h," via the `style` property.");let f=(0,r.A)((0,r.A)({keyframes:u,velocity:e.getVelocity()},s),{},{elapsed:l,onUpdate:t=>{e.set(t),s.onUpdate&&s.onUpdate(t)},onComplete:()=>{i(),s.onComplete&&s.onComplete()}});if(!d||!p||Vn||!1===s.type)return jr(f);if("inertia"===s.type){const t=function(t){let{keyframes:e,velocity:n=0,min:o,max:i,power:s=.8,timeConstant:a=750,bounceStiffness:l=500,bounceDamping:u=10,restDelta:c=1,modifyTarget:h,driver:d,onUpdate:p,onComplete:f,onStop:m}=t;const v=e[0];let y;function g(t){return void 0!==o&&t<o||void 0!==i&&t>i}function b(t){return void 0===o?i:void 0===i||Math.abs(o-t)<Math.abs(i-t)?o:i}function x(t){null===y||void 0===y||y.stop(),y=xr((0,r.A)((0,r.A)({keyframes:[0,1],velocity:0},t),{},{driver:d,onUpdate:e=>{var n;null===p||void 0===p||p(e),null===(n=t.onUpdate)||void 0===n||n.call(t,e)},onComplete:f,onStop:m}))}function A(t){x((0,r.A)({type:"spring",stiffness:l,damping:u,restDelta:c},t))}if(g(v))A({velocity:n,keyframes:[v,b(v)]});else{let t=s*n+v;"undefined"!==typeof h&&(t=h(t));const e=b(t),r=e===o?-1:1;let i,l;const u=t=>{i=l,l=t,n=He(t-i,we.delta),(1===r&&t>e||-1===r&&t<e)&&A({keyframes:[t,e],velocity:n})};x({type:"decay",keyframes:[v,0],velocity:n,timeConstant:a,power:s,restDelta:c,modifyTarget:h,onUpdate:g(t)?u:void 0})}return{stop:()=>null===y||void 0===y?void 0:y.stop()}}(f);return()=>t.stop()}(function(t){let{when:e,delay:n,delayChildren:r,staggerChildren:o,staggerDirection:i,repeat:s,repeatType:a,repeatDelay:l,from:u}=t,c=(0,vt.A)(t,Dr);return!!Object.keys(c).length})(s)||(f=(0,r.A)((0,r.A)({},f),((t,e)=>{let{keyframes:n}=e;return n.length>2?Mr:(Rr[t]||Rr.default)(n[1])})(t,f))),f.duration&&(f.duration=jn(f.duration)),f.repeatDelay&&(f.repeatDelay=jn(f.repeatDelay));const m=e.owner,v=m&&m.current;if(Ur.waapi()&&Nr.has(t)&&!f.repeatDelay&&"mirror"!==f.repeatType&&0!==f.damping&&m&&v instanceof HTMLElement&&!m.getProps().onUpdate)return wr(e,t,f);{const t=xr(f);return()=>t.stop()}}},Hr=["transition","transitionEnd"];function Wr(t,e){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};var o;const i=bn(t,e,n.custom);let{transition:s=t.getDefaultTransition()||{}}=i||{};
1n.transitionOverride&&(s=n.transitionOverride);const a=i?()=>Yr(t,i,n):()=>Promise.resolve(),l=(null===(o=t.variantChildren)||void 0===o?void 0:o.size)?function(){let o=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;const{delayChildren:i=0,staggerChildren:a,staggerDirection:l}=s;return function(t,e){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:0,i=arguments.length>4&&void 0!==arguments[4]?arguments[4]:1,s=arguments.length>5?arguments[5]:void 0;const a=[],l=(t.variantChildren.size-1)*o,u=1===i?function(){return(arguments.length>0&&void 0!==arguments[0]?arguments[0]:0)*o}:function(){return l-(arguments.length>0&&void 0!==arguments[0]?arguments[0]:0)*o};return Array.from(t.variantChildren).sort(Gr).forEach(((t,o)=>{a.push(Wr(t,e,(0,r.A)((0,r.A)({},s),{},{delay:n+u(o)})).then((()=>t.notify("AnimationComplete",e))))})),Promise.all(a)}(t,e,i+o,a,l,n)}:()=>Promise.resolve(),{when:u}=s;if(u){const[t,e]="beforeChildren"===u?[a,l]:[l,a];return t().then(e)}return Promise.all([a(),l(n.delay)])}function Yr(t,e){let{delay:n=0,transitionOverride:o,type:i}=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};var s;let a=t.makeTargetAnimatable(e),{transition:l=t.getDefaultTransition(),transitionEnd:u}=a,c=(0,vt.A)(a,Hr);const h=t.getValue("willChange");o&&(l=o);const d=[],p=i&&(null===(s=t.animationState)||void 0===s?void 0:s.getState()[i]);for(const f in c){const e=t.getValue(f),o=c[f];if(!e||void 0===o||p&&Xr(p,f))continue;let i=(0,r.A)({delay:n,elapsed:0},l);if(t.shouldReduceMotion&&F.has(f)&&(i=(0,r.A)((0,r.A)({},i),{},{type:!1,delay:0})),!e.hasAnimated){const e=t.getProps()[Pn];e&&(i.elapsed=wn(e,f))}let s=e.start(zr(f,e,o,i));Tn(h)&&(h.add(f),s=s.then((()=>h.remove(f)))),d.push(s)}return Promise.all(d).then((()=>{u&&En(t,u)}))}function Gr(t,e){return t.sortNodePosition(e)}function Xr(t,e){let{protectedKeys:n,needsAnimating:r}=t;const o=n.hasOwnProperty(e)&&!0!==r[e];return r[e]=!1,o}const $r=["transition","transitionEnd"],qr=[Ut.Animate,Ut.InView,Ut.Focus,Ut.Hover,Ut.Tap,Ut.Drag,Ut.Exit],Zr=[...qr].reverse(),Kr=qr.length;function Jr(t){return e=>Promise.all(e.map((e=>{let{animation:n,options:r}=e;return function(t,e){let n,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};if(t.notify("AnimationStart",e),Array.isArray(e)){const o=e.map((e=>Wr(t,e,r)));n=Promise.all(o)}else if("string"===typeof e)n=Wr(t,e,r);else{const o="function"===typeof e?bn(t,e,r.custom):e;n=Yr(t,o,r)}return n.then((()=>t.notify("AnimationComplete",e)))}(t,n,r)})))}function Qr(t){let e=Jr(t);const n={[Ut.Animate]:eo(!0),[Ut.InView]:eo(),[Ut.Hover]:eo(),[Ut.Tap]:eo(),[Ut.Drag]:eo(),[Ut.Focus]:eo(),[Ut.Exit]:eo()};let o=!0;const i=(e,n)=>{const o=bn(t,n);if(o){const{transition:t,transitionEnd:n}=o,i=(0,vt.A)(o,$r);e=(0,r.A)((0,r.A)((0,r.A)({},e),i),n)}return e};function s(s,a){const l=t.getProps(),u=t.getVariantContext(!0)||{},c=[],h=new Set;let d={},m=1/0;for(let e=0;e<Kr;e++){const v=Zr[e],y=n[v],g=void 0!==l[v]?l[v]:u[v],b=p(g),x=v===a?y.isActive:null;!1===x&&(m=e);let A=g===u[v]&&g!==l[v]&&b;if(A&&o&&t.manuallyAnimateOnMount&&(A=!1),y.protectedKeys=(0,r.A)({},d),!y.isActive&&null===x||!g&&!y.prevProp||f(g)||"boolean"===typeof g)continue;const E=to(y.prevProp,g);let S=E||v===a&&y.isActive&&!A&&b||e>m&&b;const T=Array.isArray(g)?g:[g];let w=T.reduce(i,{});!1===x&&(w={});const{prevResolvedValues:P={}}=y,j=(0,r.A)((0,r.A)({},P),w),V=t=>{S=!0,h.delete(t),y.needsAnimating[t]=!0};for(const t in j){const e=w[t],n=P[t];d.hasOwnProperty(t)||(e!==n?kt(e)&&kt(n)?!Se(e,n)||E?V(t):y.protectedKeys[t]=!0:void 0!==e?V(t):h.add(t):void 0!==e&&h.has(t)?V(t):y.protectedKeys[t]=!0)}y.prevProp=g,y.prevResolvedValues=w,y.isActive&&(d=(0,r.A)((0,r.A)({},d),w)),o&&t.blockInitialAnimation&&(S=!1),S&&!A&&c.push(...T.map((t=>({animation:t,options:(0,r.A)({type:v},s)}))))}if(h.size){const e={};h.forEach((n=>{const r=t.getBaseTarget(n);void 0!==r&&(e[n]=r)})),c.push({animation:e})}let v=Boolean(c.length);return o&&!1===l.initial&&!t.manuallyAnimateOnMount&&(v=!1),o=!1,v?e(c):Promise.resolve()}return{animateChanges:s,setActive:function(e,r,o){var i;if(n[e].isActive===r)return Promise.resolve();
1null===(i=t.variantChildren)||void 0===i||i.forEach((t=>{var n;return null===(n=t.animationState)||void 0===n?void 0:n.setActive(e,r)})),n[e].isActive=r;const a=s(o,e);for(const t in n)n[t].protectedKeys={};return a},setAnimateFunction:function(n){e=n(t)},getState:()=>n}}function to(t,e){return"string"===typeof e?e!==t:!!Array.isArray(e)&&!Se(e,t)}function eo(){return{isActive:arguments.length>0&&void 0!==arguments[0]&&arguments[0],protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}const no={animation:xe((t=>{let{visualElement:e,animate:n}=t;e.animationState||(e.animationState=Qr(e)),f(n)&&(0,o.useEffect)((()=>n.subscribe(e)),[n])})),exit:xe((t=>{const{custom:e,visualElement:n}=t,[r,i]=Ee(),s=(0,o.useContext)(a);(0,o.useEffect)((()=>{n.isPresent=r;const t=n.animationState&&n.animationState.setActive(Ut.Exit,!r,{custom:s&&s.custom||e});t&&!r&&t.then(i)}),[r])}))},ro=(t,e)=>Math.abs(t-e);class oo{constructor(t,e){let{transformPagePoint:n}=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};if(this.startEvent=null,this.lastMoveEvent=null,this.lastMoveEventInfo=null,this.handlers={},this.updatePoint=()=>{if(!this.lastMoveEvent||!this.lastMoveEventInfo)return;const t=ao(this.lastMoveEventInfo,this.history),e=null!==this.startEvent,n=function(t,e){const n=ro(t.x,e.x),r=ro(t.y,e.y);return Math.sqrt(n**2+r**2)}(t.offset,{x:0,y:0})>=3;if(!e&&!n)return;const{point:o}=t,{timestamp:i}=we;this.history.push((0,r.A)((0,r.A)({},o),{},{timestamp:i}));const{onStart:s,onMove:a}=this.handlers;e||(s&&s(this.lastMoveEvent,t),this.startEvent=this.lastMoveEvent),a&&a(this.lastMoveEvent,t)},this.handlePointerMove=(t,e)=>{this.lastMoveEvent=t,this.lastMoveEventInfo=io(e,this.transformPagePoint),Ht(t)&&0===t.buttons?this.handlePointerUp(t,e):De.update(this.updatePoint,!0)},this.handlePointerUp=(t,e)=>{this.end();const{onEnd:n,onSessionEnd:r}=this.handlers,o=ao(io(e,this.transformPagePoint),this.history);this.startEvent&&n&&n(t,o),r&&r(t,o)},Wt(t)&&t.touches.length>1)return;this.handlers=e,this.transformPagePoint=n;const o=io($t(t),this.transformPagePoint),{point:i}=o,{timestamp:s}=we;this.history=[(0,r.A)((0,r.A)({},i),{},{timestamp:s})];const{onSessionStart:a}=e;a&&a(t,ao(o,this.history)),this.removeListeners=ce(Qt(window,"pointermove",this.handlePointerMove),Qt(window,"pointerup",this.handlePointerUp),Qt(window,"pointercancel",this.handlePointerUp))}updateHandlers(t){this.handlers=t}end(){this.removeListeners&&this.removeListeners(),_e.update(this.updatePoint)}}function io(t,e){return e?{point:e(t.point)}:t}function so(t,e){return{x:t.x-e.x,y:t.y-e.y}}function ao(t,e){let{point:n}=t;return{point:n,delta:so(n,uo(e)),offset:so(n,lo(e)),velocity:co(e,.1)}}function lo(t){return t[0]}function uo(t){return t[t.length-1]}function co(t,e){if(t.length<2)return{x:0,y:0};let n=t.length-1,r=null;const o=uo(t);for(;n>=0&&(r=t[n],!(o.timestamp-r.timestamp>jn(e)));)n--;if(!r)return{x:0,y:0};const i=(o.timestamp-r.timestamp)/1e3;if(0===i)return{x:0,y:0};const s={x:(o.x-r.x)/i,y:(o.y-r.y)/i};return s.x===1/0&&(s.x=0),s.y===1/0&&(s.y=0),s}function ho(t){return t.max-t.min}function po(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:.01;return Math.abs(t-e)<=n}function fo(t,e,n){let r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:.5;t.origin=r,t.originPoint=Dn(e.min,e.max,t.origin),t.scale=ho(n)/ho(e),(po(t.scale,1,1e-4)||isNaN(t.scale))&&(t.scale=1),t.translate=Dn(n.min,n.max,t.origin)-t.originPoint,(po(t.translate)||isNaN(t.translate))&&(t.translate=0)}function mo(t,e,n,r){fo(t.x,e.x,n.x,null===r||void 0===r?void 0:r.originX),fo(t.y,e.y,n.y,null===r||void 0===r?void 0:r.originY)}function vo(t,e,n){t.min=n.min+e.min,t.max=t.min+ho(e)}function yo(t,e,n){t.min=e.min-n.min,t.max=t.min+ho(e)}function go(t,e,n){yo(t.x,e.x,n.x),yo(t.y,e.y,n.y)}function bo(t,e,n){return{min:void 0!==e?t.min+e:void 0,max:void 0!==n?t.max+n-(t.max-t.min):void 0}}function xo(t,e){let n=e.min-t.min,r=e.max-t.max;return e.max-e.min<t.max-t.min&&([n,r]=[r,n]),{min:n,max:r}}const Ao=.35;function Eo(t,e,n){return{min:So(t,e),max:So(t,n)}}function So(t,e){return"number"===typeof t?t:t[e]||0}function To(t){return[t("x"),t("y")]}function wo(t){let{top:e,left:n,right:r,bottom:o}=t;return{x:{min:n,max:r},y:{min:e,max:o}}}function Po(t){return void 0===t||1===t}function jo(t){let{scale:e,scaleX:n,scaleY:r}=t;return!Po(e)||!Po(n)||!Po(r)}function Vo(t){return jo(t)||Co(t)||t.z||t.rotate||t.rotateX||t.rotateY}function Co(t){return Oo(t.x)||Oo(t.y)}function Oo(t){return t&&"0%"!==t}function Mo(t,e,n){return n+e*(t-n)}function Ro(t,e,n,r,o){return void 0!==o&&(t=Mo(t,o,r)),Mo(t,n,r)+e}function ko(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1,r=arguments.length>3?arguments[3]:void 0,o=arguments.length>4?arguments[4]:void 0;t.min=Ro(t.min,e,n,r,o),t.max=Ro(t.max,e,n,r,o)}function Do(t,e){let{x:n,y:r}=e;
1ko(t.x,n.translate,n.scale,n.originPoint),ko(t.y,r.translate,r.scale,r.originPoint)}function _o(t){return Number.isInteger(t)||t>1.0000000000001||t<.999999999999?t:1}function Fo(t,e){t.min=t.min+e,t.max=t.max+e}function Io(t,e,n){let[r,o,i]=n;const s=void 0!==e[i]?e[i]:.5,a=Dn(t.min,t.max,s);ko(t,e[r],e[o],a,e.scale)}const Lo=["x","scaleX","originX"],Bo=["y","scaleY","originY"];function Uo(t,e){Io(t.x,e,Lo),Io(t.y,e,Bo)}function No(t,e){return wo(function(t,e){if(!e)return t;const n=e({x:t.left,y:t.top}),r=e({x:t.right,y:t.bottom});return{top:n.y,left:n.x,bottom:r.y,right:r.x}}(t.getBoundingClientRect(),e))}const zo=new WeakMap;class Ho{constructor(t){this.openGlobalLock=null,this.isDragging=!1,this.currentDirection=null,this.originPoint={x:0,y:0},this.constraints=!1,this.hasMutatedConstraints=!1,this.elastic={x:{min:0,max:0},y:{min:0,max:0}},this.visualElement=t}start(t){let{snapToCursor:e=!1}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(!1===this.visualElement.isPresent)return;this.panSession=new oo(t,{onSessionStart:t=>{this.stopAnimation(),e&&this.snapToCursor($t(t,"page").point)},onStart:(t,e)=>{var n;const{drag:r,dragPropagation:o,onDragStart:i}=this.getProps();(!r||o||(this.openGlobalLock&&this.openGlobalLock(),this.openGlobalLock=oe(r),this.openGlobalLock))&&(this.isDragging=!0,this.currentDirection=null,this.resolveConstraints(),this.visualElement.projection&&(this.visualElement.projection.isAnimationBlocked=!0,this.visualElement.projection.target=void 0),To((t=>{var e,n;let r=this.getAxisMotionValue(t).get()||0;if(tt.test(r)){const o=null===(n=null===(e=this.visualElement.projection)||void 0===e?void 0:e.layout)||void 0===n?void 0:n.layoutBox[t];if(o){r=ho(o)*(parseFloat(r)/100)}}this.originPoint[t]=r})),null===i||void 0===i||i(t,e),null===(n=this.visualElement.animationState)||void 0===n||n.setActive(Ut.Drag,!0))},onMove:(t,e)=>{const{dragPropagation:n,dragDirectionLock:r,onDirectionLock:o,onDrag:i}=this.getProps();if(!n&&!this.openGlobalLock)return;const{offset:s}=e;if(r&&null===this.currentDirection)return this.currentDirection=function(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:10,n=null;Math.abs(t.y)>e?n="y":Math.abs(t.x)>e&&(n="x");return n}(s),void(null!==this.currentDirection&&(null===o||void 0===o||o(this.currentDirection)));this.updateAxis("x",e.point,s),this.updateAxis("y",e.point,s),this.visualElement.render(),null===i||void 0===i||i(t,e)},onSessionEnd:(t,e)=>this.stop(t,e)},{transformPagePoint:this.visualElement.getTransformPagePoint()})}stop(t,e){const n=this.isDragging;if(this.cancel(),!n)return;const{velocity:r}=e;this.startAnimation(r);const{onDragEnd:o}=this.getProps();null===o||void 0===o||o(t,e)}cancel(){var t,e;this.isDragging=!1,this.visualElement.projection&&(this.visualElement.projection.isAnimationBlocked=!1),null===(t=this.panSession)||void 0===t||t.end(),this.panSession=void 0;const{dragPropagation:n}=this.getProps();!n&&this.openGlobalLock&&(this.openGlobalLock(),this.openGlobalLock=null),null===(e=this.visualElement.animationState)||void 0===e||e.setActive(Ut.Drag,!1)}updateAxis(t,e,n){const{drag:r}=this.getProps();if(!n||!Wo(t,r,this.currentDirection))return;const o=this.getAxisMotionValue(t);let i=this.originPoint[t]+n[t];this.constraints&&this.constraints[t]&&(i=function(t,e,n){let{min:r,max:o}=e;return void 0!==r&&t<r?t=n?Dn(r,t,n.min):Math.max(t,r):void 0!==o&&t>o&&(t=n?Dn(o,t,n.max):Math.min(t,o)),t}(i,this.constraints[t],this.elastic[t])),o.set(i)}resolveConstraints(){const{dragConstraints:t,dragElastic:e}=this.getProps(),{layout:n}=this.visualElement.projection||{},r=this.constraints;t&&d(t)?this.constraints||(this.constraints=this.resolveRefConstraints()):this.constraints=!(!t||!n)&&function(t,e){let{top:n,left:r,bottom:o,right:i}=e;return{x:bo(t.x,r,i),y:bo(t.y,n,o)}}(n.layoutBox,t),this.elastic=function(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Ao;return!1===t?t=0:!0===t&&(t=Ao),{x:Eo(t,"left","right"),y:Eo(t,"top","bottom")}}(e),r!==this.constraints&&n&&this.constraints&&!this.hasMutatedConstraints&&To((t=>{this.getAxisMotionValue(t)&&(this.constraints[t]=function(t,e){const n={};return void 0!==e.min&&(n.min=e.min-t.min),void 0!==e.max&&(n.max=e.max-t.min),n}(n.layoutBox[t],this.constraints[t]))}))}resolveRefConstraints(){const{dragConstraints:t,onMeasureDragConstraints:e}=this.getProps();if(!t||!d(t))return!1;const n=t.current,{projection:r}=this.visualElement;if(!r||!r.layout)return!1;const o=function(t,e,n){const r=No(t,n),{scroll:o}=e;return o&&(Fo(r.x,o.offset.x),Fo(r.y,o.offset.y)),r}(n,r.root,this.visualElement.getTransformPagePoint());let i=function(t,e){return{x:xo(t.x,e.x),y:xo(t.y,e.y)}}(r.layout.layoutBox,o);if(e){const t=e(function(t){let{x:e,y:n}=t;return{top:n.min,right:e.max,bottom:n.max,left:e.min}}(i));this.hasMutatedConstraints=!!t,t&&(i=wo(t))}return i}startAnimation(t){const{drag:e,dragMomentum:n,dragElastic:o,dragTransition:i,dragSnapToOrigin:s,onDragTransitionEnd:a}=this.getProps(),l=this.constraints||{},u=To((a=>
1{if(!Wo(a,e,this.currentDirection))return;let u=(null===l||void 0===l?void 0:l[a])||{};s&&(u={min:0,max:0});const c=o?200:1e6,h=o?40:1e7,d=(0,r.A)((0,r.A)({type:"inertia",velocity:n?t[a]:0,bounceStiffness:c,bounceDamping:h,timeConstant:750,restDelta:1,restSpeed:10},i),u);return this.startAxisValueAnimation(a,d)}));return Promise.all(u).then(a)}startAxisValueAnimation(t,e){const n=this.getAxisMotionValue(t);return n.start(zr(t,n,0,e))}stopAnimation(){To((t=>this.getAxisMotionValue(t).stop()))}getAxisMotionValue(t){var e;const n="_drag"+t.toUpperCase(),r=this.visualElement.getProps()[n];return r||this.visualElement.getValue(t,(null===(e=this.visualElement.getProps().initial)||void 0===e?void 0:e[t])||0)}snapToCursor(t){To((e=>{const{drag:n}=this.getProps();if(!Wo(e,n,this.currentDirection))return;const{projection:r}=this.visualElement,o=this.getAxisMotionValue(e);if(r&&r.layout){const{min:n,max:i}=r.layout.layoutBox[e];o.set(t[e]-Dn(n,i,.5))}}))}scalePositionWithinConstraints(){var t;if(!this.visualElement.current)return;const{drag:e,dragConstraints:n}=this.getProps(),{projection:r}=this.visualElement;if(!d(n)||!r||!this.constraints)return;this.stopAnimation();const o={x:0,y:0};To((t=>{const e=this.getAxisMotionValue(t);if(e){const n=e.get();o[t]=function(t,e){let n=.5;const r=ho(t),o=ho(e);return o>r?n=Wn(e.min,e.max-r,t.min):r>o&&(n=Wn(t.min,t.max-o,e.min)),H(0,1,n)}({min:n,max:n},this.constraints[t])}}));const{transformTemplate:i}=this.visualElement.getProps();this.visualElement.current.style.transform=i?i({},""):"none",null===(t=r.root)||void 0===t||t.updateScroll(),r.updateLayout(),this.resolveConstraints(),To((t=>{if(!Wo(t,e,null))return;const n=this.getAxisMotionValue(t),{min:r,max:i}=this.constraints[t];n.set(Dn(r,i,o[t]))}))}addListeners(){var t;if(!this.visualElement.current)return;zo.set(this.visualElement,this);const e=Qt(this.visualElement.current,"pointerdown",(t=>{const{drag:e,dragListener:n=!0}=this.getProps();e&&n&&this.start(t)})),n=()=>{const{dragConstraints:t}=this.getProps();d(t)&&(this.constraints=this.resolveRefConstraints())},{projection:r}=this.visualElement,o=r.addEventListener("measure",n);r&&!r.layout&&(null===(t=r.root)||void 0===t||t.updateScroll(),r.updateLayout()),n();const i=Nt(window,"resize",(()=>this.scalePositionWithinConstraints())),s=r.addEventListener("didUpdate",(t=>{let{delta:e,hasLayoutChanged:n}=t;this.isDragging&&n&&(To((t=>{const n=this.getAxisMotionValue(t);n&&(this.originPoint[t]+=e[t].translate,n.set(n.get()+e[t].translate))})),this.visualElement.render())}));return()=>{i(),e(),o(),null===s||void 0===s||s()}}getProps(){const t=this.visualElement.getProps(),{drag:e=!1,dragDirectionLock:n=!1,dragPropagation:o=!1,dragConstraints:i=!1,dragElastic:s=Ao,dragMomentum:a=!0}=t;return(0,r.A)((0,r.A)({},t),{},{drag:e,dragDirectionLock:n,dragPropagation:o,dragConstraints:i,dragElastic:s,dragMomentum:a})}}function Wo(t,e,n){return(!0===e||e===t)&&(null===n||n===t)}const Yo={pan:xe((function(t){let{onPan:e,onPanStart:n,onPanEnd:r,onPanSessionStart:s,visualElement:a}=t;const l=e||n||r||s,u=(0,o.useRef)(null),{transformPagePoint:c}=(0,o.useContext)(i),h={onSessionStart:s,onStart:n,onMove:e,onEnd:(t,e)=>{u.current=null,r&&r(t,e)}};(0,o.useEffect)((()=>{null!==u.current&&u.current.updateHandlers(h)})),te(a,"pointerdown",l&&function(t){u.current=new oo(t,h,{transformPagePoint:c})}),le((()=>u.current&&u.current.end()))})),drag:xe((function(t){const{dragControls:e,visualElement:n}=t,r=E((()=>new Ho(n)));(0,o.useEffect)((()=>e&&e.subscribe(r)),[r,e]),(0,o.useEffect)((()=>r.addListeners()),[r])}))};var Go=n(920454);function Xo(t){return"string"===typeof t&&t.startsWith("var(--")}const $o=/var\((--[a-zA-Z0-9-_]+),? ?([a-zA-Z0-9 ()%#.,-]+)?\)/;function qo(t,e){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1;'Max CSS variable fallback depth detected in property "'.concat(t,'". This may indicate a circular fallback dependency.');const[r,o]=function(t){const e=$o.exec(t);if(!e)return[,];const[,n,r]=e;return[n,r]}(t);if(!r)return;const i=window.getComputedStyle(e).getPropertyValue(r);return i?i.trim():Xo(o)?qo(o,e,n+1):o}const Zo=new Set(["width","height","top","left","right","bottom","x","y"]),Ko=t=>Zo.has(t),Jo=(t,e)=>{t.set(e,!1),t.set(e)},Qo=t=>t===W||t===et;var ti;!function(t){t.width="width",t.height="height",t.left="left",t.right="right",t.top="top",t.bottom="bottom"}(ti||(ti={}));const ei=(t,e)=>parseFloat(t.split(", ")[e]),ni=(t,e)=>(n,r)=>{let{transform:o}=r;if("none"===o||!o)return 0;const i=o.match(/^matrix3d\((.+)\)$/);if(i)return ei(i[1],e);{const e=o.match(/^matrix\((.+)\)$/);return e?ei(e[1],t):0}},ri=new Set(["x","y","z"]),oi=_.filter((t=>!ri.has(t)));const ii={width:(t,e)=>{let{x:n}=t,{paddingLeft:r="0",paddingRight:o="0"}=e;return n.max-n.min-parseFloat(r)-parseFloat(o)},height:(t,e)=>{let{y:n}=t,{paddingTop:r="0",paddingBottom:o="0"}=e;return n.max-n.min-parseFloat(r)-parseFloat(o)},top:(t,e)=>{let{top:n}=e;return parseFloat(n)},left:(t,e)=>{let{left:n}=e;return parseFloat(n)},bottom:(t,e)=>{let{y:n}=t,{top:r}=e;return parseFloat(r)+(n.max-n.min)},right:(t,e)=>{let{x:n}=t,{left:r}=e;return parseFloat(r)+(n.max-n.min)},x:ni(4,13),y:ni(5,14)},si=function(t,e){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};e=(0,r.A)({},e),o=(0,r.A)({},o);const i=Object.keys(e).filter(Ko);let s=[],a=!1;const u=[];
1if(i.forEach((r=>{const i=t.getValue(r);if(!t.hasValue(r))return;let l=n[r],c=vn(l);const h=e[r];let d;if(kt(h)){const t=h.length,e=null===h[0]?1:0;l=h[e],c=vn(l);for(let n=e;n<t;n++)d?vn(h[n]):(d=vn(h[n]),d===c||Qo(c)&&Qo(d))}else d=vn(h);if(c!==d)if(Qo(c)&&Qo(d)){const t=i.get();"string"===typeof t&&i.set(parseFloat(t)),"string"===typeof h?e[r]=parseFloat(h):Array.isArray(h)&&d===et&&(e[r]=h.map(parseFloat))}else(null===c||void 0===c?void 0:c.transform)&&(null===d||void 0===d?void 0:d.transform)&&(0===l||0===h)?0===l?i.set(d.transform(l)):e[r]=c.transform(h):(a||(s=function(t){const e=[];return oi.forEach((n=>{const r=t.getValue(n);void 0!==r&&(e.push([n,r.get()]),r.set(n.startsWith("scale")?1:0))})),e.length&&t.render(),e}(t),a=!0),u.push(r),o[r]=void 0!==o[r]?o[r]:e[r],Jo(i,h))})),u.length){const n=u.indexOf("height")>=0?window.pageYOffset:null,r=((t,e,n)=>{const r=e.measureViewportBox(),o=e.current,i=getComputedStyle(o),{display:s}=i,a={};"none"===s&&e.setStaticValue("display",t.display||"block"),n.forEach((t=>{a[t]=ii[t](r,i)})),e.render();const l=e.measureViewportBox();return n.forEach((n=>{const r=e.getValue(n);Jo(r,a[n]),t[n]=ii[n](l,i)})),t})(e,t,u);return s.length&&s.forEach((e=>{let[n,r]=e;t.getValue(n).set(r)})),t.render(),l&&null!==n&&window.scrollTo({top:n}),{target:r,transitionEnd:o}}return{target:e,transitionEnd:o}};function ai(t,e,n,r){return(t=>Object.keys(t).some(Ko))(e)?si(t,e,n,r):{target:e,transitionEnd:r}}const li=(t,e,n,o)=>{const i=function(t,e,n){let o=Object.assign({},((0,Go.A)(e),e));const i=t.current;if(!(i instanceof Element))return{target:o,transitionEnd:n};n&&(n=(0,r.A)({},n)),t.values.forEach((t=>{const e=t.get();if(!Xo(e))return;const n=qo(e,i);n&&t.set(n)}));for(const r in o){const t=o[r];if(!Xo(t))continue;const e=qo(t,i);e&&(o[r]=e,n&&void 0===n[r]&&(n[r]=t))}return{target:o,transitionEnd:n}}(t,e,o);return ai(t,e=i.target,n,o=i.transitionEnd)},ui={current:null},ci={current:!1};const hi=["willChange"],di=Object.keys(A),pi=di.length,fi=["AnimationStart","AnimationComplete","Update","Unmount","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"];class mi{constructor(t){let{parent:e,props:n,reducedMotionConfig:o,visualState:i}=t,s=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this.current=null,this.children=new Set,this.isVariantNode=!1,this.isControllingVariants=!1,this.shouldReduceMotion=null,this.values=new Map,this.isPresent=!0,this.valueSubscriptions=new Map,this.prevMotionValues={},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.scheduleRender=()=>De.render(this.render,!1,!0);const{latestValues:a,renderState:l}=i;this.latestValues=a,this.baseTarget=(0,r.A)({},a),this.initialValues=n.initial?(0,r.A)({},a):{},this.renderState=l,this.parent=e,this.props=n,this.depth=e?e.depth+1:0,this.reducedMotionConfig=o,this.options=s,this.isControllingVariants=v(n),this.isVariantNode=y(n),this.isVariantNode&&(this.variantChildren=new Set),this.manuallyAnimateOnMount=Boolean(e&&e.current);const u=this.scrapeMotionValuesFromProps(n),{willChange:c}=u,h=(0,vt.A)(u,hi);for(const r in h){const t=h[r];void 0!==a[r]&&L(t)&&(t.set(a[r],!1),Tn(c)&&c.add(r))}}scrapeMotionValuesFromProps(t){return{}}mount(t){var e;this.current=t,this.projection&&this.projection.mount(t),this.parent&&this.isVariantNode&&!this.isControllingVariants&&(this.removeFromVariantTree=null===(e=this.parent)||void 0===e?void 0:e.addVariantChild(this)),this.values.forEach(((t,e)=>this.bindToMotionValue(e,t))),ci.current||function(){if(ci.current=!0,l)if(window.matchMedia){const t=window.matchMedia("(prefers-reduced-motion)"),e=()=>ui.current=t.matches;t.addListener(e),e()}else ui.current=!1}(),this.shouldReduceMotion="never"!==this.reducedMotionConfig&&("always"===this.reducedMotionConfig||ui.current),this.parent&&this.parent.children.add(this),this.setProps(this.props)}unmount(){var t,e,n;null===(t=this.projection)||void 0===t||t.unmount(),_e.update(this.notifyUpdate),_e.render(this.render),this.valueSubscriptions.forEach((t=>t())),null===(e=this.removeFromVariantTree)||void 0===e||e.call(this),null===(n=this.parent)||void 0===n||n.children.delete(this);for(const r in this.events)this.events[r].clear();this.current=null}bindToMotionValue(t,e){const n=F.has(t),r=e.on("change",(e=>{this.latestValues[t]=e,this.props.onUpdate&&De.update(this.notifyUpdate,!1,!0),n&&this.projection&&(this.projection.isTransformDirty=!0)})),o=e.on("renderRequest",this.scheduleRender);this.valueSubscriptions.set(t,(()=>{r(),o()}))}sortNodePosition(t){return this.current&&this.sortInstanceNodePosition&&this.type===t.type?this.sortInstanceNodePosition(this.current,t.current):0}loadFeatures(t,e,n,i,s,a){const l=[];for(let u=0;u<pi;u++){const e=di[u],{isEnabled:n,Component:i}=A[e];n(t)&&i&&l.push((0,o.createElement)(i,(0,r.A)((0,r.A)({key:e},t),{},{visualElement:this})))}if(!this.projection&&s){this.projection=new s(i,this.latestValues,this.parent&&this.parent.projection);const{layoutId:e,layout:n,drag:r,dragConstraints:o,layoutScroll:l}=t;this.projection.setOptions({layoutId:e,layout:n,alwaysMeasureLayout:Boolean(r)||o&&d(o),visualElement:this,scheduleRender:()=>this.scheduleRender(),animationType:"string"===typeof n?n:"both",initialPromotionConfig:a,layoutScroll:l})}return l}triggerBuild(){this.build(this.renderState,this.latestValues,this.options,this.props)}measureViewportBox(){return this.current?this.measureInstanceViewportBox(this.current,this.props):{x:{min:0,max:0},y:{min:0,max:0}}}getStaticValue(t){return this.latestValues[t]}setStaticValue(t,e){this.latestValues[t]=e}makeTargetAnimatable(t){let e=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];return this.makeTargetAnimatableFromInstance(t,this.props,e)}setProps(t){(t.transformTemplate||this.props.transformTemplate)&&this.scheduleRender(),this.props=t;for(let e=0;e<fi.length;e++){const n=fi[e];this.propEventSubscriptions[n]&&(this.propEventSubscriptions[n](),delete this.propEventSubscriptions[n]);const r=t["on"+n];r&&(this.propEventSubscriptions[n]=this.on(n,r))}this.prevMotionValues=function(t,e,n){const{willChange:r}=e;for(const o in e){const i=e[o],s=n[o];if(L(i))t.addValue(o,i),Tn(r)&&r.add(o);else if(L(s))t.addValue(o,Ye(i,{owner:t})),Tn(r)&&r.remove(o);else if(s!==i)if(t.hasValue(o)){const e=t.getValue(o);!e.hasAnimated&&e.set(i)}else{const e=t.getStaticValue(o);t.addValue(o,Ye(void 0!==e?e:i))}}for(const o in n)void 0===e[o]&&t.removeValue(o);return e}(this,this.scrapeMotionValuesFromProps(t),this.prevMotionValues)}getProps(){return this.props}getVariant(t){var e;return null===(e=this.props.variants)||void 0===e?void 0:e[t]}getDefaultTransition(){return this.props.transition}getTransformPagePoint(){return this.props.transformPagePoint}getClosestVariantNode(){var t;return this.isVariantNode?this:null===(t=this.parent)||void 0===t?void 0:t.getClosestVariantNode()}getVariantContext(){var t,e;if(arguments.length>0&&void 0!==arguments[0]&&arguments[0])return null===(t=this.parent)||void 0===t?void 0:t.getVariantContext();if(!this.isControllingVariants){const t=(null===(e=this.parent)||void 0===e?void 0:e.getVariantContext())||{};return void 0!==this.props.initial&&(t.initial=this.props.initial),t}const n={};for(let r=0;r<yi;r++){const t=vi[r],e=this.props[t];(p(e)||!1===e)&&(n[t]=e)}return n}addVariantChild(t){var e;const n=this.getClosestVariantNode();if(n)return null===(e=n.variantChildren)||void 0===e||e.add(t),()=>n.variantChildren.delete(t)}addValue(t,e){this.hasValue(t)&&this.removeValue(t),this.values.set(t,e),this.latestValues[t]=e.get(),this.bindToMotionValue(t,e)}removeValue(t){var e;this.values.delete(t),null===(e=this.valueSubscriptions.get(t))||void 0===e||e(),this.valueSubscriptions.delete(t),delete this.latestValues[t],this.removeValueFromRenderState(t,this.renderState)}hasValue(t){return this.values.has(t)}getValue(t,e){if(this.props.values&&this.props.values[t])return this.props.values[t];let n=this.values.get(t);return void 0===n&&void 0!==e&&(n=Ye(e,{owner:this}),this.addValue(t,n)),n}readValue(t){return void 0===this.latestValues[t]&&this.current?this.readValueFromInstance(this.current,t,this.options):this.latestValues[t]}setBaseTarget(t,e){this.baseTarget[t]=e}getBaseTarget(t){var e;const{initial:n}=this.props,r="string"===typeof n||"object"===typeof n?null===(e=Rt(this.props,n))||void 0===e?void 0:e[t]:void 0;if(n&&void 0!==r)return r;const o=this.getBaseTargetFromProps(this.props,t);return void 0===o||L(o)?void 0!==this.initialValues[t]&&void 0===r?void 0:this.baseTarget[t]:o}on(t,e){return this.events[t]||(this.events[t]=new ze),this.events[t].add(e)}notify(t){for(var e,n=arguments.length,r=new Array(n>1?n-1:0),o=1;o<n;o++)r[o-1]=arguments[o];null===(e=this.events[t])||void 0===e||e.notify(...r)}}const vi=["initial",...qr],yi=vi.length,gi=["transition","transitionEnd"];class bi extends mi{sortInstanceNodePosition(t,e){return 2&t.compareDocumentPosition(e)?1:-1}getBaseTargetFromProps(t,e){var n;return null===(n=t.style)||void 0===n?void 0:n[e]}removeValueFromRenderState(t,e){let{vars:n,style:r}=e;delete n[t],delete r[t]}makeTargetAnimatableFromInstance(t,e,n){let{transition:o,transitionEnd:i}=t,s=(0,vt.A)(t,gi),{transformValues:a}=e,l=function(t,e,n){var r;const o={};for(const i in t){const t=Sn(i,e);o[i]=void 0!==t?t:null===(r=n.getValue(i))||void 0===r?void 0:r.get()}return o}(s,o||{},this);if(a&&(i&&(i=a(i)),s&&(s=a(s)),l&&(l=a(l))),n){!function(t,e,n){var r,o;const i=Object.keys(e).filter((e=>!t.hasValue(e))),s=i.length;if(s)for(let a=0;a<s;a++){const s=i[a],l=e[s];let u=null;Array.isArray(l)&&(u=l[0]),null===u&&(u=null!==(o=null!==(r=n[s])&&void 0!==r?r:t.readValue(s))&&void 0!==o?o:e[s]),void 0!==u&&null!==u&&("string"===typeof u&&(/^\-?\d*\.?\d+$/.test(u)||Te(u))?u=parseFloat(u):!gn(u)&&sn.test(l)&&(u=pn(s,l)),t.addValue(s,Ye(u,{owner:t})),void 0===n[s]&&(n[s]=u),null!==u&&t.setBaseTarget(s,u))}}(this,s,l);const t=li(this,s,l,i);i=t.transitionEnd,s=t.target}return(0,r.A)({transition:o,transitionEnd:i},s)}}class xi extends bi{readValueFromInstance(t,e){if(F.has(e)){const t=dn(e);return t&&t.default||0}{const r=(n=t,window.getComputedStyle(n)),o=(N(e)?r.getPropertyValue(e):r[e])||0;return"string"===typeof o?o.trim():o}var n}measureInstanceViewportBox(t,e){let{transformPagePoint:n}=e;return No(t,n)}build(t,e,n,r){at(t,e,n,r.transformTemplate)}scrapeMotionValuesFromProps(t){return Ot(t)}renderInstance(t,e,n,r){jt(t,e,n,r)}}class Ai extends bi{constructor(){super(...arguments),this.isSVGTag=!1}getBaseTargetFromProps(t,e){return t[e]}readValueFromInstance(t,e){var n;return F.has(e)?(null===(n=dn(e))||void 0===n?void 0:n.default)||0:(e=Vt.has(e)?e:Pt(e),t.getAttribute(e))}measureInstanceViewportBox(){return{x:{min:0,max:0},y:{min:0,max:0}}}scrapeMotionValuesFromProps(t){return Mt(t)}build(t,e,n,r){At(t,e,n,this.isSVGTag,r.transformTemplate)}renderInstance(t,e,n,r){Ct(t,e,0,r)}mount(t){this.isSVGTag=St(t.tagName),super.mount(t)}}const Ei=(t,e)=>k(t)?new Ai(e,{enableHardwareAcceleration:!1}):new xi(e,{enableHardwareAcceleration:!0});function Si(t,e){return e.max===e.min?0:t/(e.max-e.min)*100}const Ti={correct:(t,e)=>{if(!e.target)return t;if("string"===typeof t){if(!et.test(t))return t;t=parseFloat(t)}const n=Si(t,e.target.x),r=Si(t,e.target.y);return"".concat(n,"% ").concat(r,"%")}}
1,wi="_$css",Pi={correct:(t,e)=>{let{treeScale:n,projectionDelta:r}=e;const o=t,i=t.includes("var("),s=[];i&&(t=t.replace($o,(t=>(s.push(t),wi))));const a=sn.parse(t);if(a.length>5)return o;const l=sn.createTransformer(t),u="number"!==typeof a[0]?1:0,c=r.x.scale*n.x,h=r.y.scale*n.y;a[0+u]/=c,a[1+u]/=h;const d=Dn(c,h,.5);"number"===typeof a[2+u]&&(a[2+u]/=d),"number"===typeof a[3+u]&&(a[3+u]/=d);let p=l(a);if(i){let t=0;p=p.replace(wi,(()=>{const e=s[t];return t++,e}))}return p}};class ji extends o.Component{componentDidMount(){const{visualElement:t,layoutGroup:e,switchLayoutGroup:n,layoutId:o}=this.props,{projection:i}=t;var s;s=Vi,Object.assign(D,s),i&&(e.group&&e.group.add(i),n&&n.register&&o&&n.register(i),i.root.didUpdate(),i.addEventListener("animationComplete",(()=>{this.safeToRemove()})),i.setOptions((0,r.A)((0,r.A)({},i.options),{},{onExitComplete:()=>this.safeToRemove()}))),S.hasEverUpdated=!0}getSnapshotBeforeUpdate(t){const{layoutDependency:e,visualElement:n,drag:r,isPresent:o}=this.props,i=n.projection;return i?(i.isPresent=o,r||t.layoutDependency!==e||void 0===e?i.willUpdate():this.safeToRemove(),t.isPresent!==o&&(o?i.promote():i.relegate()||De.postRender((()=>{var t;(null===(t=i.getStack())||void 0===t?void 0:t.members.length)||this.safeToRemove()}))),null):null}componentDidUpdate(){const{projection:t}=this.props.visualElement;t&&(t.root.didUpdate(),!t.currentAnimation&&t.isLead()&&this.safeToRemove())}componentWillUnmount(){const{visualElement:t,layoutGroup:e,switchLayoutGroup:n}=this.props,{projection:r}=t;r&&(r.scheduleCheckAfterUnmount(),(null===e||void 0===e?void 0:e.group)&&e.group.remove(r),(null===n||void 0===n?void 0:n.deregister)&&n.deregister(r))}safeToRemove(){const{safeToRemove:t}=this.props;null===t||void 0===t||t()}render(){return null}}const Vi={borderRadius:(0,r.A)((0,r.A)({},Ti),{},{applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]}),borderTopLeftRadius:Ti,borderTopRightRadius:Ti,borderBottomLeftRadius:Ti,borderBottomRightRadius:Ti,boxShadow:Pi},Ci={measureLayout:function(t){const[e,n]=Ee(),i=(0,o.useContext)(w);return o.createElement(ji,(0,r.A)((0,r.A)({},t),{},{layoutGroup:i,switchLayoutGroup:(0,o.useContext)(j),isPresent:e,safeToRemove:n}))}};const Oi=["TopLeft","TopRight","BottomLeft","BottomRight"],Mi=Oi.length,Ri=t=>"string"===typeof t?parseFloat(t):t,ki=t=>"number"===typeof t||et.test(t);function Di(t,e){return void 0!==t[e]?t[e]:t.borderRadius}const _i=Ii(0,.5,Jn),Fi=Ii(.5,.95,$n);function Ii(t,e,n){return r=>r<t?0:r>e?1:n(Wn(t,e,r))}function Li(t,e){t.min=e.min,t.max=e.max}function Bi(t,e){Li(t.x,e.x),Li(t.y,e.y)}function Ui(t,e,n,r,o){return t=Mo(t-=e,1/n,r),void 0!==o&&(t=Mo(t,1/o,r)),t}function Ni(t,e,n,r,o){let[i,s,a]=n;!function(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1,r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:.5,o=arguments.length>4?arguments[4]:void 0,i=arguments.length>5&&void 0!==arguments[5]?arguments[5]:t,s=arguments.length>6&&void 0!==arguments[6]?arguments[6]:t;tt.test(e)&&(e=parseFloat(e),e=Dn(s.min,s.max,e/100)-s.min);if("number"!==typeof e)return;let a=Dn(i.min,i.max,r);t===i&&(a-=e),t.min=Ui(t.min,e,n,a,o),t.max=Ui(t.max,e,n,a,o)}(t,e[i],e[s],e[a],e.scale,r,o)}const zi=["x","scaleX","originX"],Hi=["y","scaleY","originY"];function Wi(t,e,n,r){Ni(t.x,e,zi,null===n||void 0===n?void 0:n.x,null===r||void 0===r?void 0:r.x),Ni(t.y,e,Hi,null===n||void 0===n?void 0:n.y,null===r||void 0===r?void 0:r.y)}function Yi(t){return 0===t.translate&&1===t.scale}function Gi(t){return Yi(t.x)&&Yi(t.y)}function Xi(t,e){return t.x.min===e.x.min&&t.x.max===e.x.max&&t.y.min===e.y.min&&t.y.max===e.y.max}function $i(t){return ho(t.x)/ho(t.y)}class qi{constructor(){this.members=[]}add(t){Ue(this.members,t),t.scheduleRender()}remove(t){if(Ne(this.members,t),t===this.prevLead&&(this.prevLead=void 0),t===this.lead){const t=this.members[this.members.length-1];t&&this.promote(t)}}relegate(t){const e=this.members.findIndex((e=>t===e));if(0===e)return!1;let n;for(let r=e;r>=0;r--){const t=this.members[r];if(!1!==t.isPresent){n=t;break}}return!!n&&(this.promote(n),!0)}promote(t,e){var n;const r=this.lead;if(t!==r&&(this.prevLead=r,this.lead=t,t.show(),r)){r.instance&&r.scheduleRender(),t.scheduleRender(),t.resumeFrom=r,e&&(t.resumeFrom.preserveOpacity=!0),r.snapshot&&(t.snapshot=r.snapshot,t.snapshot.latestValues=r.animationValues||r.latestValues),(null===(n=t.root)||void 0===n?void 0:n.isUpdating)&&(t.isLayoutDirty=!0);const{crossfade:o}
1=t.options;!1===o&&r.hide()}}exitAnimationComplete(){this.members.forEach((t=>{var e,n,r,o,i;null===(n=(e=t.options).onExitComplete)||void 0===n||n.call(e),null===(i=null===(r=t.resumingFrom)||void 0===r?void 0:(o=r.options).onExitComplete)||void 0===i||i.call(o)}))}scheduleRender(){this.members.forEach((t=>{t.instance&&t.scheduleRender(!1)}))}removeLeadSnapshot(){this.lead&&this.lead.snapshot&&(this.lead.snapshot=void 0)}}function Zi(t,e,n){let r="";const o=t.x.translate/e.x,i=t.y.translate/e.y;if((o||i)&&(r="translate3d(".concat(o,"px, ").concat(i,"px, 0) ")),1===e.x&&1===e.y||(r+="scale(".concat(1/e.x,", ").concat(1/e.y,") ")),n){const{rotate:t,rotateX:e,rotateY:o}=n;t&&(r+="rotate(".concat(t,"deg) ")),e&&(r+="rotateX(".concat(e,"deg) ")),o&&(r+="rotateY(".concat(o,"deg) "))}const s=t.x.scale*e.x,a=t.y.scale*e.y;return 1===s&&1===a||(r+="scale(".concat(s,", ").concat(a,")")),r||"none"}const Ki=(t,e)=>t.depth-e.depth;class Ji{constructor(){this.children=[],this.isDirty=!1}add(t){Ue(this.children,t),this.isDirty=!0}remove(t){Ne(this.children,t),this.isDirty=!0}forEach(t){this.isDirty&&this.children.sort(Ki),this.isDirty=!1,this.children.forEach(t)}}const Qi=["","X","Y","Z"];let ts=0;function es(t){let{attachResizeListener:e,defaultParent:n,measureScroll:o,checkIsScrollRoot:i,resetTransform:s}=t;return class{constructor(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null===n||void 0===n?void 0:n();this.id=ts++,this.animationId=0,this.children=new Set,this.options={},this.isTreeAnimating=!1,this.isAnimationBlocked=!1,this.isLayoutDirty=!1,this.isTransformDirty=!1,this.isProjectionDirty=!1,this.updateManuallyBlocked=!1,this.updateBlockedByResize=!1,this.isUpdating=!1,this.isSVG=!1,this.needsReset=!1,this.shouldResetTransform=!1,this.treeScale={x:1,y:1},this.eventHandlers=new Map,this.potentialNodes=new Map,this.checkUpdateFailed=()=>{this.isUpdating&&(this.isUpdating=!1,this.clearAllSnapshots())},this.updateProjection=()=>{this.nodes.forEach(os),this.nodes.forEach(us),this.nodes.forEach(cs)},this.hasProjected=!1,this.isVisible=!0,this.animationProgress=0,this.sharedNodes=new Map,this.elementId=t,this.latestValues=e,this.root=r?r.root||r:this,this.path=r?[...r.path,r]:[],this.parent=r,this.depth=r?r.depth+1:0,t&&this.root.registerPotentialNode(t,this);for(let n=0;n<this.path.length;n++)this.path[n].shouldResetTransform=!0;this.root===this&&(this.nodes=new Ji)}addEventListener(t,e){return this.eventHandlers.has(t)||this.eventHandlers.set(t,new ze),this.eventHandlers.get(t).add(e)}notifyListeners(t){const e=this.eventHandlers.get(t);for(var n=arguments.length,r=new Array(n>1?n-1:0),o=1;o<n;o++)r[o-1]=arguments[o];null===e||void 0===e||e.notify(...r)}hasListeners(t){return this.eventHandlers.has(t)}registerPotentialNode(t,e){this.potentialNodes.set(t,e)}mount(t){let n=arguments.length>1&&void 0!==arguments[1]&&arguments[1];var o;if(this.instance)return;this.isSVG=t instanceof SVGElement&&"svg"!==t.tagName,this.instance=t;const{layoutId:i,layout:s,visualElement:a}=this.options;if(a&&!a.current&&a.mount(t),this.root.nodes.add(this),null===(o=this.parent)||void 0===o||o.children.add(this),this.elementId&&this.root.potentialNodes.delete(this.elementId),n&&(s||i)&&(this.isLayoutDirty=!0),e){let n;const r=()=>this.root.updateBlockedByResize=!1;e(t,(()=>{this.root.updateBlockedByResize=!0,n&&n(),n=Pr(r,250),S.hasAnimatedSinceResize&&(S.hasAnimatedSinceResize=!1,this.nodes.forEach(ls))}))}i&&this.root.registerSharedNode(i,this),!1!==this.options.animate&&a&&(i||s)&&this.addEventListener("didUpdate",(t=>{let{delta:e,hasLayoutChanged:n,hasRelativeTargetChanged:o,layout:i}=t;var s,l,u,c,h;if(this.isTreeAnimationBlocked())return this.target=void 0,void(this.relativeTarget=void 0);const d=null!==(l=null!==(s=this.options.transition)&&void 0!==s?s:a.getDefaultTransition())&&void 0!==l?l:vs,{onLayoutAnimationStart:p,onLayoutAnimationComplete:f}=a.getProps(),m=!this.targetLayout||!Xi(this.targetLayout,i)||o,v=!n&&o;if((null===(u=this.resumeFrom)||void 0===u?void 0:u.instance)||v||n&&(m||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0),this.setAnimationOrigin(e,v);const t=(0,r.A)((0,r.A)({},Ir(d,"layout")),{}
1,{onPlay:p,onComplete:f});a.shouldReduceMotion&&(t.delay=0,t.type=!1),this.startAnimation(t)}else n||0!==this.animationProgress||ls(this),this.isLead()&&(null===(h=(c=this.options).onExitComplete)||void 0===h||h.call(c));this.targetLayout=i}))}unmount(){var t,e;this.options.layoutId&&this.willUpdate(),this.root.nodes.remove(this),null===(t=this.getStack())||void 0===t||t.remove(this),null===(e=this.parent)||void 0===e||e.children.delete(this),this.instance=void 0,_e.preRender(this.updateProjection)}blockUpdate(){this.updateManuallyBlocked=!0}unblockUpdate(){this.updateManuallyBlocked=!1}isUpdateBlocked(){return this.updateManuallyBlocked||this.updateBlockedByResize}isTreeAnimationBlocked(){var t;return this.isAnimationBlocked||(null===(t=this.parent)||void 0===t?void 0:t.isTreeAnimationBlocked())||!1}startUpdate(){var t;this.isUpdateBlocked()||(this.isUpdating=!0,null===(t=this.nodes)||void 0===t||t.forEach(hs),this.animationId++)}willUpdate(){let t=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];var e,n,r;if(this.root.isUpdateBlocked())return void(null===(n=(e=this.options).onExitComplete)||void 0===n||n.call(e));if(!this.root.isUpdating&&this.root.startUpdate(),this.isLayoutDirty)return;this.isLayoutDirty=!0;for(let a=0;a<this.path.length;a++){const t=this.path[a];t.shouldResetTransform=!0,t.updateScroll("snapshot")}const{layoutId:o,layout:i}=this.options;if(void 0===o&&!i)return;const s=null===(r=this.options.visualElement)||void 0===r?void 0:r.getProps().transformTemplate;this.prevTransformTemplateValue=null===s||void 0===s?void 0:s(this.latestValues,""),this.updateSnapshot(),t&&this.notifyListeners("willUpdate")}didUpdate(){if(this.isUpdateBlocked())return this.unblockUpdate(),this.clearAllSnapshots(),void this.nodes.forEach(ss);this.isUpdating&&(this.isUpdating=!1,this.potentialNodes.size&&(this.potentialNodes.forEach(ys),this.potentialNodes.clear()),this.nodes.forEach(as),this.nodes.forEach(ns),this.nodes.forEach(rs),this.clearAllSnapshots(),Fe.update(),Fe.preRender(),Fe.render())}clearAllSnapshots(){this.nodes.forEach(is),this.sharedNodes.forEach(ds)}scheduleUpdateProjection(){De.preRender(this.updateProjection,!1,!0)}scheduleCheckAfterUnmount(){De.postRender((()=>{this.isLayoutDirty?this.root.didUpdate():this.root.checkUpdateFailed()}))}updateSnapshot(){!this.snapshot&&this.instance&&(this.snapshot=this.measure())}updateLayout(){var t;if(!this.instance)return;if(this.updateScroll(),(!this.options.alwaysMeasureLayout||!this.isLead())&&!this.isLayoutDirty)return;if(this.resumeFrom&&!this.resumeFrom.instance)for(let n=0;n<this.path.length;n++){this.path[n].updateScroll()}const e=this.layout;this.layout=this.measure(!1),this.layoutCorrected={x:{min:0,max:0},y:{min:0,max:0}},this.isLayoutDirty=!1,this.projectionDelta=void 0,this.notifyListeners("measure",this.layout.layoutBox),null===(t=this.options.visualElement)||void 0===t||t.notify("LayoutMeasure",this.layout.layoutBox,null===e||void 0===e?void 0:e.layoutBox)}updateScroll(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"measure",e=Boolean(this.options.layoutScroll&&this.instance);this.scroll&&this.scroll.animationId===this.root.animationId&&this.scroll.phase===t&&(e=!1),e&&(this.scroll={animationId:this.root.animationId,phase:t,isRoot:i(this.instance),offset:o(this.instance)})}resetTransform(){var t;if(!s)return;const e=this.isLayoutDirty||this.shouldResetTransform,n=this.projectionDelta&&!Gi(this.projectionDelta),r=null===(t=this.options.visualElement)||void 0===t?void 0:t.getProps().transformTemplate,o=null===r||void 0===r?void 0:r(this.latestValues,""),i=o!==this.prevTransformTemplateValue;e&&(n||Vo(this.latestValues)||i)&&(s(this.instance,o),this.shouldResetTransform=!1,this.scheduleRender())}measure(){let t=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];const e=this.measurePageBox();let n=this.removeElementScroll(e);var r;return t&&(n=this.removeTransform(n)),gs((r=n).x),gs(r.y),{animationId:this.root.animationId,measuredBox:e,layoutBox:n,latestValues:{},source:this.id}}measurePageBox(){const{visualElement:t}=this.options;if(!t)return{x:{min:0,max:0},y:{min:0,max:0}};const e=t.measureViewportBox(),{scroll:n}=this.root;return n&&(Fo(e.x,n.offset.x),Fo(e.y,n.offset.y)),e}removeElementScroll(t){const e={x:{min:0,max:0},y:{min:0,max:0}};Bi(e,t);for(let n=0;n<this.path.length;n++){const r=this.path[n],{scroll:o,options:i}=r;if(r!==this.root&&o&&i.layoutScroll){if(o.isRoot){Bi(e,t);const{scroll:n}=this.root;n&&(Fo(e.x,-n.offset.x),Fo(e.y,-n.offset.y))}Fo(e.x,o.offset.x),Fo(e.y,o.offset.y)}}return e}applyTransform(t){let e=arguments.length>1&&void 0!==arguments[1]&&arguments[1];const n={x:{min:0,max:0},y:{min:0,max:0}};Bi(n,t);for(let r=0;r<this.path.length;r++){const t=this.path[r];!e&&t.options.layoutScroll&&t.scroll&&t!==t.root&&Uo(n,{x:-t.scroll.offset.x,y:-t.scroll.offset.y}),Vo(t.latestValues)&&Uo(n,t.latestValues)}return Vo(this.latestValues)&&Uo(n,this.latestValues),n}removeTransform(t){var e;const n={x:{min:0,max:0},y:{min:0,max:0}};Bi(n,t);for(let r=0;r<this.path.length;r++){const t=this.path[r];if(!t.instance)continue;if(!Vo(t.latestValues))continue;jo(t.latestValues)&&t.updateSnapshot();const o={x:{min:0,max:0},y:{min:0,max:0}};Bi(o,t.measurePageBox()),Wi(n,t.latestValues,null===(e=t.snapshot)||void 0===e?void 0:e.layoutBox,o)}return Vo(this.latestValues)&&Wi(n,this.latestValues),n}setTargetDelta(t){this.targetDelta=t,this.isProjectionDirty=!0,this.root.scheduleUpdateProjection()}setOptions(t){this.options=(0,r.A)((0,r.A)((0,r.A)({},this.options),t),{},{crossfade:void 0===t.crossfade||t.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}resolveTargetDelta(){var t;const e=this.getLead();if(this.isProjectionDirty||(this.isProjectionDirty=e.isProjectionDirty),this.isTransformDirty||(this.isTransformDirty=e.isTransformDirty),!this.isProjectionDirty&&!this.attemptToResolveRelativeTarget)return;const{layout:n,layoutId:r}=this.options;if(this.layout&&(n||r)){if(!this.targetDelta&&!this.relativeTarget){const t=this.getClosestProjectingParent();t&&t.layout?(this.relativeParent=t,this.relativeTarget={x:{min:0,max:0},y:{min:0,max:0}},this.relativeTargetOrigin={x:{min:0,max:0},y:{min:0,max:0}},go(this.relativeTargetOrigin,this.layout.layoutBox,t.layout.layoutBox),Bi(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}var o,i,s;if(this.relativeTarget||this.targetDelta)if(this.target||(this.target={x:{min:0,max:0},y:{min:0,max:0}},this.targetWithTransforms={x:{min:0,max:0},y:{min:0,max:0}}),this.relativeTarget&&this.relativeTargetOrigin&&(null===(t=this.relativeParent)||void 0===t?void 0:t.target)?(o=this.target,i=this.relativeTarget,s=this.relativeParent.target,vo(o.x,i.x,s.x),vo(o.y,i.y,s.y)):this.targetDelta?(Boolean(this.resumingFrom)?this.target=this.applyTransform(this.layout.layoutBox):Bi(this.target,this.layout.layoutBox),Do(this.target,this.targetDelta)):Bi(this.target,this.layout.layoutBox),this.attemptToResolveRelativeTarget){this.attemptToResolveRelativeTarget=!1;const t=this.getClosestProjectingParent();t&&Boolean(t.resumingFrom)===Boolean(this.resumingFrom)&&!t.options.layoutScroll&&t.target?(this.relativeParent=t,this.relativeTarget={x:{min:0,max:0},y:{min:0,max:0}},this.relativeTargetOrigin={x:{min:0,max:0},y:{min:0,max:0}},go(this.relativeTargetOrigin,this.target,t.target),Bi(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}}}getClosestProjectingParent(){if(this.parent&&!jo(this.parent.latestValues)&&!Co(this.parent.latestValues))return(this.parent.relativeTarget||this.parent.targetDelta)&&this.parent.layout?this.parent:this.parent.getClosestProjectingParent()}calcProjection(){var t;const{isProjectionDirty:e,isTransformDirty:n}=this;this.isProjectionDirty=this.isTransformDirty=!1;
1const r=this.getLead(),o=Boolean(this.resumingFrom)||this!==r;let i=!0;if(e&&(i=!1),o&&n&&(i=!1),i)return;const{layout:s,layoutId:a}=this.options;if(this.isTreeAnimating=Boolean((null===(t=this.parent)||void 0===t?void 0:t.isTreeAnimating)||this.currentAnimation||this.pendingAnimation),this.isTreeAnimating||(this.targetDelta=this.relativeTarget=void 0),!this.layout||!s&&!a)return;Bi(this.layoutCorrected,this.layout.layoutBox),function(t,e,n){let r=arguments.length>3&&void 0!==arguments[3]&&arguments[3];var o,i;const s=n.length;if(!s)return;let a,l;e.x=e.y=1;for(let u=0;u<s;u++)a=n[u],l=a.projectionDelta,"contents"!==(null===(i=null===(o=a.instance)||void 0===o?void 0:o.style)||void 0===i?void 0:i.display)&&(r&&a.options.layoutScroll&&a.scroll&&a!==a.root&&Uo(t,{x:-a.scroll.offset.x,y:-a.scroll.offset.y}),l&&(e.x*=l.x.scale,e.y*=l.y.scale,Do(t,l)),r&&Vo(a.latestValues)&&Uo(t,a.latestValues));e.x=_o(e.x),e.y=_o(e.y)}(this.layoutCorrected,this.treeScale,this.path,o);const{target:l}=r;if(!l)return;this.projectionDelta||(this.projectionDelta={x:{translate:0,scale:1,origin:0,originPoint:0},y:{translate:0,scale:1,origin:0,originPoint:0}},this.projectionDeltaWithTransform={x:{translate:0,scale:1,origin:0,originPoint:0},y:{translate:0,scale:1,origin:0,originPoint:0}});const u=this.treeScale.x,c=this.treeScale.y,h=this.projectionTransform;mo(this.projectionDelta,this.layoutCorrected,l,this.latestValues),this.projectionTransform=Zi(this.projectionDelta,this.treeScale),this.projectionTransform===h&&this.treeScale.x===u&&this.treeScale.y===c||(this.hasProjected=!0,this.scheduleRender(),this.notifyListeners("projectionUpdate",l))}hide(){this.isVisible=!1}show(){this.isVisible=!0}scheduleRender(){let t=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];var e,n,r;null===(n=(e=this.options).scheduleRender)||void 0===n||n.call(e),t&&(null===(r=this.getStack())||void 0===r||r.scheduleRender()),this.resumingFrom&&!this.resumingFrom.instance&&(this.resumingFrom=void 0)}setAnimationOrigin(t){let e=arguments.length>1&&void 0!==arguments[1]&&arguments[1];var n,o;const i=this.snapshot,s=(null===i||void 0===i?void 0:i.latestValues)||{},a=(0,r.A)({},this.latestValues),l={x:{translate:0,scale:1,origin:0,originPoint:0},y:{translate:0,scale:1,origin:0,originPoint:0}};this.relativeTarget=this.relativeTargetOrigin=void 0,this.attemptToResolveRelativeTarget=!e;const u={x:{min:0,max:0},y:{min:0,max:0}},c=(null===i||void 0===i?void 0:i.source)!==(null===(n=this.layout)||void 0===n?void 0:n.source),h=((null===(o=this.getStack())||void 0===o?void 0:o.members.length)||0)<=1,d=Boolean(c&&!h&&!0===this.options.crossfade&&!this.path.some(ms));this.animationProgress=0,this.mixTargetDelta=e=>{var n;const r=e/1e3;var o,i,p,f;ps(l.x,t.x,r),ps(l.y,t.y,r),this.setTargetDelta(l),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&(null===(n=this.relativeParent)||void 0===n?void 0:n.layout)&&(go(u,this.layout.layoutBox,this.relativeParent.layout.layoutBox),o=this.relativeTarget,i=this.relativeTargetOrigin,p=u,f=r,fs(o.x,i.x,p.x,f),fs(o.y,i.y,p.y,f)),c&&(this.animationValues=a,function(t,e,n,r,o,i){o?(t.opacity=Dn(0,void 0!==n.opacity?n.opacity:1,_i(r)),t.opacityExit=Dn(void 0!==e.opacity?e.opacity:1,0,Fi(r))):i&&(t.opacity=Dn(void 0!==e.opacity?e.opacity:1,void 0!==n.opacity?n.opacity:1,r));for(let s=0;s<Mi;s++){const o="border".concat(Oi[s],"Radius");let i=Di(e,o),a=Di(n,o);void 0===i&&void 0===a||(i||(i=0),a||(a=0),0===i||0===a||ki(i)===ki(a)?(t[o]=Math.max(Dn(Ri(i),Ri(a),r),0),(tt.test(a)||tt.test(i))&&(t[o]+="%")):t[o]=a)}(e.rotate||n.rotate)&&(t.rotate=Dn(e.rotate||0,n.rotate||0,r))}(a,s,this.latestValues,r,d,h)),this.root.scheduleUpdateProjection(),this.scheduleRender(),this.animationProgress=r},this.mixTargetDelta(0)}startAnimation(t){var e,n;this.notifyListeners("animationStart"),null===(e=this.currentAnimation)||void 0===e||e.stop(),this.resumingFrom&&(null===(n=this.resumingFrom.currentAnimation)||void 0===n||n.stop()),this.pendingAnimation&&(_e.update(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=De.update((()=>{S.hasAnimatedSinceResize=!0,this.currentAnimation=function(t,e){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};const r=L(t)?t:Ye(t);return r.start(zr("",r,e,n)),{stop:()=>r.stop(),isAnimating:()=>r.isAnimating()}}(0,1e3,(0,r.A)((0,r.A)({},t),{},{onUpdate:e=>{var n;this.mixTargetDelta(e),null===(n=t.onUpdate)||void 0===n||n.call(t,e)},onComplete:()=>{var e;null===(e=t.onComplete)||void 0===e||e.call(t),this.completeAnimation()}})),this.resumingFrom&&(this.resumingFrom.currentAnimation=this.currentAnimation),this.pendingAnimation=void 0}))}completeAnimation(){var t;this.resumingFrom&&(this.resumingFrom.currentAnimation=void 0,this.resumingFrom.preserveOpacity=void 0),null===(t=this.getStack())||void 0===t||t.exitAnimationComplete(),this.resumingFrom=this.currentAnimation=this.animationValues=void 0,this.notifyListeners("animationComplete")}finishAnimation(){var t;this.currentAnimation&&(null===(t=this.mixTargetDelta)||void 0===t||t.call(this,1e3),this.currentAnimation.stop()),this.completeAnimation()}applyTransformsToTarget(){const t=this.getLead();let{targetWithTransforms:e,target:n,layout:r,latestValues:o}=t;if(e&&n&&r){if(this!==t&&this.layout&&r&&bs(this.options.animationType,this.layout.layoutBox,r.layoutBox)){n=this.target||{x:{min:0,max:0},y:{min:0,max:0}};const e=ho(this.layout.layoutBox.x);n.x.min=t.target.x.min,n.x.max=n.x.min+e;const r=ho(this.layout.layoutBox.y);n.y.min=t.target.y.min,n.y.max=n.y.min+r}Bi(e,n),Uo(e,o),mo(this.projectionDeltaWithTransform,this.layoutCorrected,e,o)}}registerSharedNode(t,e){var n,r,o;this.sharedNodes.has(t)||this.sharedNodes.set(t,new qi);this.sharedNodes.get(t).add(e),e.promote({transition:null===(n=e.options.initialPromotionConfig)||void 0===n?void 0:n.transition,preserveFollowOpacity:null===(o=null===(r=e.options.initialPromotionConfig)||void 0===r?void 0:r.shouldPreserveFollowOpacity)||void 0===o?void 0:o.call(r,e)})}isLead(){const t=this.getStack();return!t||t.lead===this}getLead(){var t;const{layoutId:e}=this.options;return e&&(null===(t=this.getStack())||void 0===t?void 0:t.lead)||this}getPrevLead(){var t;const{layoutId:e}=this.options;return e?null===(t=this.getStack())||void 0===t?void 0:t.prevLead:void 0}getStack(){const{layoutId:t}=this.options;if(t)return this.root.sharedNodes.get(t)}promote(){let{needsReset:t,transition:e,preserveFollowOpacity:n}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const r=this.getStack();r&&r.promote(this,n),t&&(this.projectionDelta=void 0,this.needsReset=!0),e&&this.setOptions({transition:e})}relegate(){const t=this.getStack();return!!t&&t.relegate(this)}resetRotation(){const{visualElement:t}=this.options;if(!t)return;let e=!1;const{latestValues:n}=t;if((n.rotate||n.rotateX||n.rotateY||n.rotateZ)&&(e=!0),!e)return;const r={};for(let o=0;o<Qi.length;o++){const e="rotate"+Qi[o];n[e]&&(r[e]=n[e],t.setStaticValue(e,0))}null===t||void 0===t||t.render();for(const o in r)t.setStaticValue(o,r[o]);t.scheduleRender()}getProjectionStyles(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};var e,n,r;const o={};if(!this.instance||this.isSVG)return o;if(!this.isVisible)return{visibility:"hidden"};o.visibility="";const i=null===(e=this.options.visualElement)||void 0===e?void 0:e.getProps().transformTemplate;if(this.needsReset)return this.needsReset=!1,o.opacity="",o.pointerEvents=Dt(t.pointerEvents)||"",o.transform=i?i(this.latestValues,""):"none",o;const s=this.getLead();if(!this.projectionDelta||!this.layout||!s.target){const e={};return this.options.layoutId&&(e.opacity=void 0!==this.latestValues.opacity?this.latestValues.opacity:1,e.pointerEvents=Dt(t.pointerEvents)||""),this.hasProjected&&!Vo(this.latestValues)&&(e.transform=i?i({},""):"none",this.hasProjected=!1),e}const a=s.animationValues||s.latestValues;this.applyTransformsToTarget(),o.transform=Zi(this.projectionDeltaWithTransform,this.treeScale,a),i&&(o.transform=i(a,o.transform));const{x:l,y:u}=this.projectionDelta;o.transformOrigin="".concat(100*l.origin,"% ").concat(100*u.origin,"% 0"),s.animationValues?o.opacity=s===this?null!==(r=null!==(n=a.opacity)&&void 0!==n?n:this.latestValues.opacity)&&void 0!==r?r:1:this.preserveOpacity?this.latestValues.opacity:a.opacityExit:o.opacity=s===this?void 0!==a.opacity?a.opacity:"":void 0!==a.opacityExit?a.opacityExit:0;for(const c in D){if(void 0===a[c])continue;const{correct:t,applyTo:e}=D[c],n=t(a[c],s);if(e){const t=e.length;for(let r=0;r<t;r++)o[e[r]]=n}else o[c]=n}return this.options.layoutId&&(o.pointerEvents=s===this?Dt(t.pointerEvents)||"":"none"),o}clearSnapshot(){this.resumeFrom=this.snapshot=void 0}
1resetTree(){this.root.nodes.forEach((t=>{var e;return null===(e=t.currentAnimation)||void 0===e?void 0:e.stop()})),this.root.nodes.forEach(ss),this.root.sharedNodes.clear()}}}function ns(t){t.updateLayout()}function rs(t){var e,n,r;const o=(null===(e=t.resumeFrom)||void 0===e?void 0:e.snapshot)||t.snapshot;if(t.isLead()&&t.layout&&o&&t.hasListeners("didUpdate")){const{layoutBox:e,measuredBox:n}=t.layout,{animationType:r}=t.options,i=o.source!==t.layout.source;"size"===r?To((t=>{const n=i?o.measuredBox[t]:o.layoutBox[t],r=ho(n);n.min=e[t].min,n.max=n.min+r})):bs(r,o.layoutBox,e)&&To((t=>{const n=i?o.measuredBox[t]:o.layoutBox[t],r=ho(e[t]);n.max=n.min+r}));const s={x:{translate:0,scale:1,origin:0,originPoint:0},y:{translate:0,scale:1,origin:0,originPoint:0}};mo(s,e,o.layoutBox);const a={x:{translate:0,scale:1,origin:0,originPoint:0},y:{translate:0,scale:1,origin:0,originPoint:0}};i?mo(a,t.applyTransform(n,!0),o.measuredBox):mo(a,e,o.layoutBox);const l=!Gi(s);let u=!1;if(!t.resumeFrom){const n=t.getClosestProjectingParent();if(n&&!n.resumeFrom){const{snapshot:t,layout:r}=n;if(t&&r){const n={x:{min:0,max:0},y:{min:0,max:0}};go(n,o.layoutBox,t.layoutBox);const i={x:{min:0,max:0},y:{min:0,max:0}};go(i,e,r.layoutBox),Xi(n,i)||(u=!0)}}}t.notifyListeners("didUpdate",{layout:e,snapshot:o,delta:a,layoutDelta:s,hasLayoutChanged:l,hasRelativeTargetChanged:u})}else t.isLead()&&(null===(r=(n=t.options).onExitComplete)||void 0===r||r.call(n));t.options.transition=void 0}function os(t){t.isProjectionDirty||(t.isProjectionDirty=Boolean(t.parent&&t.parent.isProjectionDirty)),t.isTransformDirty||(t.isTransformDirty=Boolean(t.parent&&t.parent.isTransformDirty))}function is(t){t.clearSnapshot()}function ss(t){t.clearMeasurements()}function as(t){const{visualElement:e}=t.options;(null===e||void 0===e?void 0:e.getProps().onBeforeLayoutMeasure)&&e.notify("BeforeLayoutMeasure"),t.resetTransform()}function ls(t){t.finishAnimation(),t.targetDelta=t.relativeTarget=t.target=void 0}function us(t){t.resolveTargetDelta()}function cs(t){t.calcProjection()}function hs(t){t.resetRotation()}function ds(t){t.removeLeadSnapshot()}function ps(t,e,n){t.translate=Dn(e.translate,0,n),t.scale=Dn(e.scale,1,n),t.origin=e.origin,t.originPoint=e.originPoint}function fs(t,e,n,r){t.min=Dn(e.min,n.min,r),t.max=Dn(e.max,n.max,r)}function ms(t){return t.animationValues&&void 0!==t.animationValues.opacityExit}const vs={duration:.45,ease:[.4,0,.1,1]};function ys(t,e){let n=t.root;for(let o=t.path.length-1;o>=0;o--)if(Boolean(t.path[o].instance)){n=t.path[o];break}const r=(n&&n!==t.root?n.instance:document).querySelector('[data-projection-id="'.concat(e,'"]'));r&&t.mount(r,!0)}function gs(t){t.min=Math.round(t.min),t.max=Math.round(t.max)}function bs(t,e,n){return"position"===t||"preserve-aspect"===t&&!po($i(e),$i(n),.2)}const xs=es({attachResizeListener:(t,e)=>Nt(t,"resize",e),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body.scrollLeft,y:document.documentElement.scrollTop||document.body.scrollTop}),checkIsScrollRoot:()=>!0}),As={current:void 0},Es=es({measureScroll:t=>({x:t.scrollLeft,y:t.scrollTop}),defaultParent:()=>{if(!As.current){const t=new xs(0,{});t.mount(window),t.setOptions({layoutScroll:!0}),As.current=t}return As.current},resetTransform:(t,e)=>{t.style.transform=void 0!==e?e:"none"},checkIsScrollRoot:t=>Boolean("fixed"===window.getComputedStyle(t).position)}),Ss=(0,r.A)((0,r.A)((0,r.A)((0,r.A)({},no),Ae),Yo),Ci),Ts=M(((t,e)=>function(t,e,n,o,i){let{forwardMotionProps:s=!1}=e;const a=k(t)?Lt:Bt;return(0,r.A)((0,r.A)({},a),{},{preloadedFeatures:n,useRender:wt(s),createVisualElement:o,projectionNodeConstructor:i,Component:t})}(t,e,Ss,Ei,Es)))}}]);

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.