PageSourceSearch

https://benditaia.cl/_next/static/chunks/667-457626be8a441bb7.js?dpl=dpl_BoFSB5vKc98S1XzjGvUVH1wFYVCj

js benditaia.cl collected 2026-10-05 07:30:56 UTC 196,450 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[667],{1360:function(t,e,i){function n(t,e){var i=e&&e.cache?e.cache:l,n=e&&e.serializer?e.serializer:o;return(e&&e.strategy?e.strategy:function(t,e){var i,n,o=1===t.length?r:s;return i=e.cache.create(),n=e.serializer,o.bind(this,t,i,n)})(t,{cache:i,serializer:n})}function r(t,e,i,n){var r=null==n||"number"==typeof n||"boolean"==typeof n?n:i(n),s=e.get(r);return void 0===s&&(s=t.call(this,n),e.set(r,s)),s}function s(t,e,i){var n=Array.prototype.slice.call(arguments,3),r=i(n),s=e.get(r);return void 0===s&&(s=t.apply(this,n),e.set(r,s)),s}i.r(e),i.d(e,{memoize:function(){return n},strategies:function(){return u}});var o=function(){return JSON.stringify(arguments)},a=function(){function t(){this.cache=Object.create(null)}return t.prototype.get=function(t){return this.cache[t]},t.prototype.set=function(t,e){this.cache[t]=e},t}(),l={create:function(){return new a}},u={variadic:function(t,e){var i,n;return i=e.cache.create(),n=e.serializer,s.bind(this,t,i,n)},monadic:function(t,e){var i,n;return i=e.cache.create(),n=e.serializer,r.bind(this,t,i,n)}}},1388:function(t,e,i){i.r(e),i.d(e,{ErrorCode:function(){return p},FormatError:function(){return th},IntlMessageFormat:function(){return ty},InvalidValueError:function(){return tc},InvalidValueTypeError:function(){return td},MissingValueError:function(){return tp},PART_TYPE:function(){return f},default:function(){return tv},formatToParts:function(){return tm},isFormatXMLElementFn:function(){return tf}});var n,r,s,o,a,l,u,h,c,d,p,f,m=function(t,e){return(m=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i])})(t,e)};function g(t,e){if("function"!=typeof e&&null!==e)throw TypeError("Class extends value "+String(e)+" is not a constructor or null");function i(){this.constructor=t}m(t,e),t.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)}var y=function(){return(y=Object.assign||function(t){for(var e,i=1,n=arguments.length;i<n;i++)for(var r in e=arguments[i])Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r]);return t}).apply(this,arguments)};function v(t,e,i){if(i||2==arguments.length)for(var n,r=0,s=e.length;r<s;r++)!n&&r in e||(n||(n=Array.prototype.slice.call(e,0,r)),n[r]=e[r]);return t.concat(n||Array.prototype.slice.call(e))}"function"==typeof SuppressedError&&SuppressedError;var E=i(1360);function b(t){return t.type===u.literal}function T(t){return t.type===u.number}function S(t){return t.type===u.date}function w(t){return t.type===u.time}function P(t){return t.type===u.select}function A(t){return t.type===u.plural}function x(t){return t.type===u.tag}function M(t){return!!(t&&"object"==typeof t&&t.type===h.number)}function C(t){return!!(t&&"object"==typeof t&&t.type===h.dateTime)}(n=l||(l={}))[n.EXPECT_ARGUMENT_CLOSING_BRACE=1]="EXPECT_ARGUMENT_CLOSING_BRACE",n[n.EMPTY_ARGUMENT=2]="EMPTY_ARGUMENT",n[n.MALFORMED_ARGUMENT=3]="MALFORMED_ARGUMENT",n[n.EXPECT_ARGUMENT_TYPE=4]="EXPECT_ARGUMENT_TYPE",n[n.INVALID_ARGUMENT_TYPE=5]="INVALID_ARGUMENT_TYPE",n[n.EXPECT_ARGUMENT_STYLE=6]="EXPECT_ARGUMENT_STYLE",n[n.INVALID_NUMBER_SKELETON=7]="INVALID_NUMBER_SKELETON",n[n.INVALID_DATE_TIME_SKELETON=8]="INVALID_DATE_TIME_SKELETON",n[n.EXPECT_NUMBER_SKELETON=9]="EXPECT_NUMBER_SKELETON",n[n.EXPECT_DATE_TIME_SKELETON=10]="EXPECT_DATE_TIME_SKELETON",n[n.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE=11]="UNCLOSED_QUOTE_IN_ARGUMENT_STYLE",n[n.EXPECT_SELECT_ARGUMENT_OPTIONS=12]="EXPECT_SELECT_ARGUMENT_OPTIONS",n[n.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE=13]="EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE",n[n.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE=14]="INVALID_PLURAL_ARGUMENT_OFFSET_VALUE",n[n.EXPECT_SELECT_ARGUMENT_SELECTOR=15]="EXPECT_SELECT_ARGUMENT_SELECTOR",n[n.EXPECT_PLURAL_ARGUMENT_SELECTOR=16]="EXPECT_PLURAL_ARGUMENT_SELECTOR",n[n.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT=17]="EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT",n[n.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT=18]="EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT",n[n.INVALID_PLURAL_ARGUMENT_SELECTOR=19]="INVALID_PLURAL_ARGUMENT_SELECTOR",n[n.DUPLICATE_PLURAL_ARGUMENT_SELECTOR=20]="DUPLICATE_PLURAL_ARGUMENT_SELECTOR",n[n.DUPLICATE_SELECT_ARGUMENT_SELECTOR=21]="DUPLICATE_SELECT_ARGUMENT_SELECTOR",n[n.MISSING_OTHER_CLAUSE=22]="MISSING_OTHER_CLAUSE",n[n.INVALID_TAG=23]="INVALID_TAG",n[n.INVALID_TAG_NAME=25]="INVALID_TAG_NAME",n[n.UNMATCHED_CLOSING_TAG=26]="UNMATCHED_CLOSING_TAG",n[n.UNCLOSED_TAG=27]="UNCLOSED_TAG",(r=u||(u={}))[r.literal=0]="literal",r[r.argument=1]="argument",r[r.number=2]="number",r[r.date=3]="date",r[r.time=4]="time",r[r.select=5]="select",r[r.plural=6]="plural",r[r.pound=7]="pound",r[r.tag=8]="tag",(s=h||(h={}))[s.number=0]="number",s[s.dateTime=1]="dateTime";var L=/[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/,R=/(?:[Eec]{1,6}|G{1,5}|[Qq]{1,5}|(?:[yYur]+|U{1,5})|[ML]{1,5}|d{1,2}|D{1,3}|F{1}|[abB]{1,5}|[hkHK]{1,2}|w{1,2}|W{1}|m{1,2}|s{1,2}|[zZOvVxX]{1,4})(?=([^']*'[^']*')*[^']*$)/g,B=/[\t-\r \x85\u200E\u200F\u2028\u2029]/i,I=/^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g,_=/^(@+)?(\+|#+)?[rs]?$/g,O=/(\*)(0+)|(#+)(0+)|(0+)/g,D=/^(0+)$/;function k(t){var e={};return"r"===t[t.length-1]?e.roundingPriority="morePrecision":"s"===t[t.length-1]&&(e.roundingPriority="lessPrecision"),t.replace(_,function(t,i,n){return"string"!=typeof n?(e.minimumSignificantDigits=i.length,e.maximumSignificantDigits=i.length):"+"===n?e.minimumSignificantDigits=i.length:"#"===i[0]?e.maximumSignificantDigits=i.length:(e.minimumSignificantDigits=i.length,e.maximumSignificantDigits=i.length+("string"==typeof n?n.length:0)),""}),e}function H(t){switch(t){case"sign-auto":return{signDisplay:"auto"};case"sign-accounting":case"()":return{currencySign:"accounting"};case"sign-always":case"+!":return{signDisplay:"always"};case"sign-accounting-always":case"()!":return{signDisplay:"always",currencySign:"accounting"};case"sign-except-zero":case"+?":return{signDisplay:"exceptZero"};case"sign-accounting-except-zero":case"()?":return{signDisplay:"exceptZero",currencySign:"accounting"};case"sign-never":case"+_":return{signDisplay:"never"}}}function N(t){return H(t)||{}}var V={"001":["H","h"],419:["h","H","hB","hb"],AC:["H","h","hb","hB"],AD:["H","hB"],AE:["h","hB","hb","H"],AF:["H","hb","hB","h"],AG:["h","hb","H","hB"],AI:["H","h","hb","hB"],AL:["h","H","hB"],AM:["H","hB"],AO:["H","hB"],AR:["h","H","hB","hb"],AS:["h","H"],AT:["H","hB"],AU:["h","hb","H","hB"],AW:["H","hB"],AX:["H"],AZ:["H","hB","h"],BA:["H","hB","h"],BB:["h","hb","H","hB"],BD:["h","hB","H"],BE:["H","hB"],BF:["H","hB"],BG:["H","hB","h"],BH:["h","hB","hb","H"],BI:["H","h"],BJ:["H","hB"],BL:["H","hB"],BM:["h","hb","H","hB"],BN:["hb","hB","h","H"],BO:["h","H","hB","hb"],BQ:["H"],BR:["H","hB"],BS:["h","hb","H","hB"],BT:["h","H"],BW:["H","h","hb","hB"],BY:["H","h"],BZ:["H","h","hb","hB"],CA:["h","hb","H","hB"],CC:["H","h","hb","hB"],CD:["hB","H"],CF:["H","h","hB"],CG:["H","hB"],CH:["H","hB","h"],CI:["H","hB"],CK:["H","h","hb","hB"],CL:["h","H","hB","hb"],CM:["H","h","hB"],CN:["H","hB","hb","h"],CO:["h","H","hB","hb"],CP:["H"],CR:["h","H","hB","hb"],CU:["h","H","hB","hb"],CV:["H","hB"],CW:["H","hB"],CX:["H","h","hb","hB"],CY:["h","H","hb","hB"],CZ:["H"],DE:["H","hB"],DG:["H","h","hb","hB"],DJ:["h","H"],DK:["H"],DM:["h","hb","H","hB"],DO:["h","H","hB","hb"],DZ:["h","hB","hb","H"],EA:["H","h","hB","hb"],EC:["h","H","hB","hb"],EE:["H","hB"],EG:["h","hB","hb","H"],EH:["h","hB","hb","H"],ER:["h","H"],ES:["H","hB","h","hb"],ET:["hB","hb","h","H"],FI:["H"],FJ:["h","hb","H","hB"],FK:["H","h","hb","hB"],FM:["h","hb","H","hB"],FO:["H","h"],FR:["H","hB"],GA:["H","hB"],GB:["H","h","hb","hB"],GD:["h","hb","H","hB"],GE:["H","hB","h"],GF:["H","hB"],GG:["H","h","hb","hB"],GH:["h","H"],GI:["H","h","hb","hB"],GL:["H","h"],GM:["h","hb","H","hB"],GN:["H","hB"],GP:["H","hB"],GQ:["H","hB","h","hb"],GR:["h","H","hb","hB"],GT:["h","H","hB","hb"],GU:["h","hb","H","hB"],GW:["H","hB"],GY:["h","hb","H","hB"],HK:["h","hB","hb","H"],HN:["h","H","hB","hb"],HR:["H","hB"],HU:["H","h"],IC:["H","h","hB","hb"],ID:["H"],IE:["H","h","hb","hB"],IL:["H","hB"],IM:["H","h","hb","hB"],IN:["h","H"],IO:["H","h","hb","hB"],IQ:["h","hB","hb","H"],IR:["hB","H"],IS:["H"],IT:["H","hB"],JE:["H","h","hb","hB"],JM:["h","hb","H","hB"],JO:["h","hB","hb","H"],JP:["H","K","h"],KE:["hB","hb","H","h"],KG:["H","h","hB","hb"],KH:["hB","h","H","hb"],KI:["h","hb","H","hB"],KM:["H","h","hB","hb"],KN:["h","hb","H","hB"],KP:["h","H","hB","hb"],KR:["h","H","hB","hb"],KW:["h","hB","hb","H"],KY:["h","hb","H","hB"],KZ:["H","hB"],LA:["H","hb","hB","h"],LB:["h","hB","hb","H"],LC:["h","hb","H","hB"],LI:["H","hB","h"],LK:["H","h","hB","hb"],LR:["h","hb","H","hB"],LS:["h","H"],LT:["H","h","hb","hB"],LU:["H","h","hB"],LV:["H","hB","hb","h"],LY:["h","hB","hb","H"],MA
1:["H","h","hB","hb"],MC:["H","hB"],MD:["H","hB"],ME:["H","hB","h"],MF:["H","hB"],MG:["H","h"],MH:["h","hb","H","hB"],MK:["H","h","hb","hB"],ML:["H"],MM:["hB","hb","H","h"],MN:["H","h","hb","hB"],MO:["h","hB","hb","H"],MP:["h","hb","H","hB"],MQ:["H","hB"],MR:["h","hB","hb","H"],MS:["H","h","hb","hB"],MT:["H","h"],MU:["H","h"],MV:["H","h"],MW:["h","hb","H","hB"],MX:["h","H","hB","hb"],MY:["hb","hB","h","H"],MZ:["H","hB"],NA:["h","H","hB","hb"],NC:["H","hB"],NE:["H"],NF:["H","h","hb","hB"],NG:["H","h","hb","hB"],NI:["h","H","hB","hb"],NL:["H","hB"],NO:["H","h"],NP:["H","h","hB"],NR:["H","h","hb","hB"],NU:["H","h","hb","hB"],NZ:["h","hb","H","hB"],OM:["h","hB","hb","H"],PA:["h","H","hB","hb"],PE:["h","H","hB","hb"],PF:["H","h","hB"],PG:["h","H"],PH:["h","hB","hb","H"],PK:["h","hB","H"],PL:["H","h"],PM:["H","hB"],PN:["H","h","hb","hB"],PR:["h","H","hB","hb"],PS:["h","hB","hb","H"],PT:["H","hB"],PW:["h","H"],PY:["h","H","hB","hb"],QA:["h","hB","hb","H"],RE:["H","hB"],RO:["H","hB"],RS:["H","hB","h"],RU:["H"],RW:["H","h"],SA:["h","hB","hb","H"],SB:["h","hb","H","hB"],SC:["H","h","hB"],SD:["h","hB","hb","H"],SE:["H"],SG:["h","hb","H","hB"],SH:["H","h","hb","hB"],SI:["H","hB"],SJ:["H"],SK:["H"],SL:["h","hb","H","hB"],SM:["H","h","hB"],SN:["H","h","hB"],SO:["h","H"],SR:["H","hB"],SS:["h","hb","H","hB"],ST:["H","hB"],SV:["h","H","hB","hb"],SX:["H","h","hb","hB"],SY:["h","hB","hb","H"],SZ:["h","hb","H","hB"],TA:["H","h","hb","hB"],TC:["h","hb","H","hB"],TD:["h","H","hB"],TF:["H","h","hB"],TG:["H","hB"],TH:["H","h"],TJ:["H","h"],TL:["H","hB","hb","h"],TM:["H","h"],TN:["h","hB","hb","H"],TO:["h","H"],TR:["H","hB"],TT:["h","hb","H","hB"],TW:["hB","hb","h","H"],TZ:["hB","hb","H","h"],UA:["H","hB","h"],UG:["hB","hb","H","h"],UM:["h","hb","H","hB"],US:["h","hb","H","hB"],UY:["h","H","hB","hb"],UZ:["H","hB","h"],VA:["H","h","hB"],VC:["h","hb","H","hB"],VE:["h","H","hB","hb"],VG:["h","hb","H","hB"],VI:["h","hb","H","hB"],VN:["H","h"],VU:["h","H"],WF:["H","hB"],WS:["h","H"],XK:["H","hB","h"],YE:["h","hB","hb","H"],YT:["H","hB"],ZA:["H","h","hb","hB"],ZM:["h","hb","H","hB"],ZW:["H","h"],"af-ZA":["H","h","hB","hb"],"ar-001":["h","hB","hb","H"],"ca-ES":["H","h","hB"],"en-001":["h","hb","H","hB"],"en-HK":["h","hb","H","hB"],"en-IL":["H","h","hb","hB"],"en-MY":["h","hb","H","hB"],"es-BR":["H","h","hB","hb"],"es-ES":["H","h","hB","hb"],"es-GQ":["H","h","hB","hb"],"fr-CA":["H","h","hB"],"gl-ES":["H","h","hB"],"gu-IN":["hB","hb","h","H"],"hi-IN":["hB","h","H"],"it-CH":["H","h","hB"],"it-IT":["H","h","hB"],"kn-IN":["hB","h","H"],"ml-IN":["hB","h","H"],"mr-IN":["hB","hb","h","H"],"pa-IN":["hB","hb","h","H"],"ta-IN":["hB","h","hb","H"],"te-IN":["hB","h","H"],"zu-ZA":["H","hB","hb","h"]},F=new RegExp("^".concat(L.source,"*")),j=new RegExp("".concat(L.source,"*$"));function U(t,e){return{start:t,end:e}}var G=!!String.prototype.startsWith&&"_a".startsWith("a",1),z=!!String.fromCodePoint,W=!!Object.fromEntries,X=!!String.prototype.codePointAt,Y=!!String.prototype.trimStart,K=!!String.prototype.trimEnd,Z=Number.isSafeInteger?Number.isSafeInteger:function(t){return"number"==typeof t&&isFinite(t)&&Math.floor(t)===t&&9007199254740991>=Math.abs(t)},$=!0;try{var q=tr("([^\\p{White_Space}\\p{Pattern_Syntax}]*)","yu");$=(null===(c=q.exec("a"))||void 0===c?void 0:c[0])==="a"}catch(t){$=!1}var J=G?function(t,e,i){return t.startsWith(e,i)}:function(t,e,i){return t.slice(i,i+e.length)===e},Q=z?String.fromCodePoint:function(){for(var t,e=[],i=0;i<arguments.length;i++)e[i]=arguments[i];for(var n="",r=e.length,s=0;r>s;){if((t=e[s++])>1114111)throw RangeError(t+" is not a valid code point");n+=t<65536?String.fromCharCode(t):String.fromCharCode(((t-=65536)>>10)+55296,t%1024+56320)}return n},tt=W?Object.fromEntries:function(t){for(var e={},i=0;i<t.length;i++){var n=t[i],r=n[0],s=n[1];e[r]=s}return e},te=X?function(t,e){return t.codePointAt(e)}:function(t,e){var i,n=t.length;if(!(e<0)&&!(e>=n)){var r=t.charCodeAt(e);return r<55296||r>56319||e+1===n||(i=t.charCodeAt(e+1))<56320||i>57343?r:(r-55296<<10)+(i-56320)+65536}},ti=Y?function(t){return t.trimStart()}:function(t){return t.replace(F,"")},tn=K?function(t){return t.trimEnd()}:function(t){return t.replace(j,"")};function tr(t,e){return new RegExp(t,e)}if($){var ts=tr("([^\\p{White_Space}\\p{Pattern_Syntax}]*)","yu");d=function(t,e){var i;return ts.lastIndex=e,null!==(i=ts.exec(t)[1])&&void 0!==i?i:""}}else d=function(t,e){for(var i=[];;){var n,r=te(t,e);if(void 0===r||tl(r)||(n=r)>=33&&n<=35||36===n||n>=37&&n<=39||40===n||41===n||42===n||43===n||44===n||45===n||n>=46&&n<=47||n>=58&&n<=59||n>=60&&n<=62||n>=63&&n<=64||91===n||92===n||93===n||94===n||96===n||123===n||124===n||125===n||126===n||161===n||n>=162&&n<=165||166===n||167===n||169===n||171===n||172===n||174===n||176===n||177===n||182===n||187===n||191===n||215===n||247===n||n>=8208&&n<=8213||n>=8214&&n<=8215||8216===n||8217===n||8218===n||n>=8219&&n<=8220||8221===n||8222===n||8223===n||n>=8224&&n<=8231||n>=8240&&n<=8248||8249===n||8250===n||n>=8251&&n<=8254||n>=8257&&n<=8259||8260===n||8261===n||8262===n||n>=8263&&n<=8273||8274===n||8275===n||n>=8277&&n<=8286||n>=8592&&n<=8596||n>=8597&&n<=8601||n>=8602&&n<=8603||n>=8604&&n<=8607||8608===n||n>=8609&&n<=8610||8611===n||n>=8612&&n<=8613||8614===n||n>=8615&&n<=8621||8622===n||n>=8623&&n<=8653||n>=8654&&n<=8655||n>=8656&&n<=8657||8658===n||8659===n||8660===n||n>=8661&&n<=8691||n>=8692&&n<=8959||n>=8960&&n<=8967||8968===n||8969===n||8970===n||8971===n||n>=8972&&n<=8991||n>=8992&&n<=8993||n>=8994&&n<=9e3||9001===n||9002===n||n>=9003&&n<=9083||9084===n||n>=9085&&n<=9114||n>=9115&&n<=9139||n>=9140&&n<=9179||n>=9180&&n<=9185||n>=9186&&n<=9254||n>=9255&&n<=9279||n>=9280&&n<=9290||n>=9291&&n<=9311||n>=9472&&n<=9654||9655===n||n>
1=9656&&n<=9664||9665===n||n>=9666&&n<=9719||n>=9720&&n<=9727||n>=9728&&n<=9838||9839===n||n>=9840&&n<=10087||10088===n||10089===n||10090===n||10091===n||10092===n||10093===n||10094===n||10095===n||10096===n||10097===n||10098===n||10099===n||10100===n||10101===n||n>=10132&&n<=10175||n>=10176&&n<=10180||10181===n||10182===n||n>=10183&&n<=10213||10214===n||10215===n||10216===n||10217===n||10218===n||10219===n||10220===n||10221===n||10222===n||10223===n||n>=10224&&n<=10239||n>=10240&&n<=10495||n>=10496&&n<=10626||10627===n||10628===n||10629===n||10630===n||10631===n||10632===n||10633===n||10634===n||10635===n||10636===n||10637===n||10638===n||10639===n||10640===n||10641===n||10642===n||10643===n||10644===n||10645===n||10646===n||10647===n||10648===n||n>=10649&&n<=10711||10712===n||10713===n||10714===n||10715===n||n>=10716&&n<=10747||10748===n||10749===n||n>=10750&&n<=11007||n>=11008&&n<=11055||n>=11056&&n<=11076||n>=11077&&n<=11078||n>=11079&&n<=11084||n>=11085&&n<=11123||n>=11124&&n<=11125||n>=11126&&n<=11157||11158===n||n>=11159&&n<=11263||n>=11776&&n<=11777||11778===n||11779===n||11780===n||11781===n||n>=11782&&n<=11784||11785===n||11786===n||11787===n||11788===n||11789===n||n>=11790&&n<=11798||11799===n||n>=11800&&n<=11801||11802===n||11803===n||11804===n||11805===n||n>=11806&&n<=11807||11808===n||11809===n||11810===n||11811===n||11812===n||11813===n||11814===n||11815===n||11816===n||11817===n||n>=11818&&n<=11822||11823===n||n>=11824&&n<=11833||n>=11834&&n<=11835||n>=11836&&n<=11839||11840===n||11841===n||11842===n||n>=11843&&n<=11855||n>=11856&&n<=11857||11858===n||n>=11859&&n<=11903||n>=12289&&n<=12291||12296===n||12297===n||12298===n||12299===n||12300===n||12301===n||12302===n||12303===n||12304===n||12305===n||n>=12306&&n<=12307||12308===n||12309===n||12310===n||12311===n||12312===n||12313===n||12314===n||12315===n||12316===n||12317===n||n>=12318&&n<=12319||12320===n||12336===n||64830===n||64831===n||n>=65093&&n<=65094)break;i.push(r),e+=r>=65536?2:1}return Q.apply(void 0,i)};var to=function(){function t(t,e){void 0===e&&(e={}),this.message=t,this.position={offset:0,line:1,column:1},this.ignoreTag=!!e.ignoreTag,this.locale=e.locale,this.requiresOtherClause=!!e.requiresOtherClause,this.shouldParseSkeletons=!!e.shouldParseSkeletons}return t.prototype.parse=function(){if(0!==this.offset())throw Error("parser can only be used once");return this.parseMessage(0,"",!1)},t.prototype.parseMessage=function(t,e,i){for(var n=[];!this.isEOF();){var r=this.char();if(123===r){var s=this.parseArgument(t,i);if(s.err)return s;n.push(s.val)}else if(125===r&&t>0)break;else if(35===r&&("plural"===e||"selectordinal"===e)){var o=this.clonePosition();this.bump(),n.push({type:u.pound,location:U(o,this.clonePosition())})}else if(60!==r||this.ignoreTag||47!==this.peek()){if(60===r&&!this.ignoreTag&&ta(this.peek()||0)){var s=this.parseTag(t,e);if(s.err)return s;n.push(s.val)}else{var s=this.parseLiteral(t,e);if(s.err)return s;n.push(s.val)}}else{if(!i)return this.error(l.UNMATCHED_CLOSING_TAG,U(this.clonePosition(),this.clonePosition()));break}}return{val:n,err:null}},t.prototype.parseTag=function(t,e){var i=this.clonePosition();this.bump();var n=this.parseTagName();if(this.bumpSpace(),this.bumpIf("/>"))return{val:{type:u.literal,value:"<".concat(n,"/>"),location:U(i,this.clonePosition())},err:null};if(!this.bumpIf(">"))return this.error(l.INVALID_TAG,U(i,this.clonePosition()));var r=this.parseMessage(t+1,e,!0);if(r.err)return r;var s=r.val,o=this.clonePosition();if(!this.bumpIf("</"))return this.error(l.UNCLOSED_TAG,U(i,this.clonePosition()));if(this.isEOF()||!ta(this.char()))return this.error(l.INVALID_TAG,U(o,this.clonePosition()));var a=this.clonePosition();return n!==this.parseTagName()?this.error(l.UNMATCHED_CLOSING_TAG,U(a,this.clonePosition())):(this.bumpSpace(),this.bumpIf(">"))?{val:{type:u.tag,value:n,children:s,location:U(i,this.clonePosition())},err:null}:this.error(l.INVALID_TAG,U(o,this.clonePosition()))},t.prototype.parseTagName=function(){var t,e=this.offset();for(this.bump();!this.isEOF()&&(45===(t=this.char())||46===t||t>=48&&t<=57||95===t||t>=97&&t<=122||t>=65&&t<=90||183==t||t>=192&&t<=214||t>=216&&t<=246||t>=248&&t<=893||t>=895&&t<=8191||t>=8204&&t<=8205||t>=8255&&t<=8256||t>=8304&&t<=8591||t>=11264&&t<=12271||t>=12289&&t<=55295||t>=63744&&t<=64975||t>=65008&&t<=65533||t>=65536&&t<=983039);)this.bump();return this.message.slice(e,this.offset())},t.prototype.parseLiteral=function(t,e){for(var i=this.clonePosition(),n="";;){var r=this.tryParseQuote(e);if(r){n+=r;
1continue}var s=this.tryParseUnquoted(t,e);if(s){n+=s;continue}var o=this.tryParseLeftAngleBracket();if(o){n+=o;continue}break}var a=U(i,this.clonePosition());return{val:{type:u.literal,value:n,location:a},err:null}},t.prototype.tryParseLeftAngleBracket=function(){var t;return this.isEOF()||60!==this.char()||!this.ignoreTag&&(ta(t=this.peek()||0)||47===t)?null:(this.bump(),"<")},t.prototype.tryParseQuote=function(t){if(this.isEOF()||39!==this.char())return null;switch(this.peek()){case 39:return this.bump(),this.bump(),"'";case 123:case 60:case 62:case 125:break;case 35:if("plural"===t||"selectordinal"===t)break;return null;default:return null}this.bump();var e=[this.char()];for(this.bump();!this.isEOF();){var i=this.char();if(39===i){if(39===this.peek())e.push(39),this.bump();else{this.bump();break}}else e.push(i);this.bump()}return Q.apply(void 0,e)},t.prototype.tryParseUnquoted=function(t,e){if(this.isEOF())return null;var i=this.char();return 60===i||123===i||35===i&&("plural"===e||"selectordinal"===e)||125===i&&t>0?null:(this.bump(),Q(i))},t.prototype.parseArgument=function(t,e){var i=this.clonePosition();if(this.bump(),this.bumpSpace(),this.isEOF())return this.error(l.EXPECT_ARGUMENT_CLOSING_BRACE,U(i,this.clonePosition()));if(125===this.char())return this.bump(),this.error(l.EMPTY_ARGUMENT,U(i,this.clonePosition()));var n=this.parseIdentifierIfPossible().value;if(!n)return this.error(l.MALFORMED_ARGUMENT,U(i,this.clonePosition()));if(this.bumpSpace(),this.isEOF())return this.error(l.EXPECT_ARGUMENT_CLOSING_BRACE,U(i,this.clonePosition()));switch(this.char()){case 125:return this.bump(),{val:{type:u.argument,value:n,location:U(i,this.clonePosition())},err:null};case 44:if(this.bump(),this.bumpSpace(),this.isEOF())return this.error(l.EXPECT_ARGUMENT_CLOSING_BRACE,U(i,this.clonePosition()));return this.parseArgumentOptions(t,e,n,i);default:return this.error(l.MALFORMED_ARGUMENT,U(i,this.clonePosition()))}},t.prototype.parseIdentifierIfPossible=function(){var t=this.clonePosition(),e=this.offset(),i=d(this.message,e),n=e+i.length;return this.bumpTo(n),{value:i,location:U(t,this.clonePosition())}},t.prototype.parseArgumentOptions=function(t,e,i,n){var r,s=this.clonePosition(),o=this.parseIdentifierIfPossible().value,a=this.clonePosition();switch(o){case"":return this.error(l.EXPECT_ARGUMENT_TYPE,U(s,a));case"number":case"date":case"time":this.bumpSpace();var c=null;if(this.bumpIf(",")){this.bumpSpace();var d=this.clonePosition(),p=this.parseSimpleArgStyleIfPossible();if(p.err)return p;var f=tn(p.val);if(0===f.length)return this.error(l.EXPECT_ARGUMENT_STYLE,U(this.clonePosition(),this.clonePosition()));c={style:f,styleLocation:U(d,this.clonePosition())}}var m=this.tryParseArgumentClose(n);if(m.err)return m;var g=U(n,this.clonePosition());if(c&&J(null==c?void 0:c.style,"::",0)){var v,E=ti(c.style.slice(2));if("number"===o){var p=this.parseNumberSkeletonFromString(E,c.styleLocation);if(p.err)return p;return{val:{type:u.number,value:i,location:g,style:p.val},err:null}}if(0===E.length)return this.error(l.EXPECT_DATE_TIME_SKELETON,g);var b=E;this.locale&&(b=function(t,e){for(var i="",n=0;n<t.length;n++){var r=t.charAt(n);if("j"===r){for(var s=0;n+1<t.length&&t.charAt(n+1)===r;)s++,n++;var o=1+(1&s),a=s<2?1:3+(s>>1),l=function(t){var e,i=t.hourCycle;if(void 0===i&&t.hourCycles&&t.hourCycles.length&&(i=t.hourCycles[0]),i)switch(i){case"h24":return"k";case"h23":return"H";case"h12":return"h";case"h11":return"K";default:throw Error("Invalid hourCycle")}var n=t.language;return"root"!==n&&(e=t.maximize().region),(V[e||""]||V[n||""]||V["".concat(n,"-001")]||V["001"])[0]}(e);for(("H"==l||"k"==l)&&(a=0);a-- >0;)i+="a";for(;o-- >0;)i=l+i}else"J"===r?i+="H":i+=r}return i}(E,this.locale));var f={type:h.dateTime,pattern:b,location:c.styleLocation,parsedOptions:this.shouldParseSkeletons?(v={},b.replace(R,function(t){var e=t.length;switch(t[0]){case"G":v.era=4===e?"long":5===e?"narrow":"short";break;case"y":v.year=2===e?"2-digit":"numeric";break;case"Y":case"u":case"U":case"r":throw RangeError("`Y/u/U/r` (year) patterns are not supported, use `y` instead");case"q":case"Q":throw RangeError("`q/Q` (quarter) patterns are not supported");case"M":case"L":v.month=["numeric","2-digit","short","long","narrow"][e-1];break;case"w":case"W":throw RangeError("`w/W` (week) patterns are not supported");case"d":v.day=["numeric","2-digit"][e-1];break;case"D":case"F":case"g":throw RangeError("`D/F/g` (day) patterns are not supported, use `d` instead");case"E":v.weekday=4===e?"long":5===e?"narrow":"short";break;case"e":if(e<4)throw RangeError("`e..eee` (weekday) patterns are not supported");v.weekday=["short","long","narrow","short"][e-4];break;case"c":if(e<4)throw RangeError("`c..ccc` (weekday) patterns are not supported");v.weekday=["short","long","narrow","short"][e-4];break;case"a":v.hour12=!0;break;case"b":case"B":throw RangeError("`b/B` (period) patterns are not supported, use `a` instead");case"h":v.hourCycle="h12",v.hour=["numeric","2-digit"][e-1];break;case"H":v.hourCycle="h23",v.hour=["numeric","2-digit"][e-1];break;case"K":v.hourCycle="h11",v.hour=["numeric","2-digit"][e-1];break;case"k":v.hourCycle="h24",v.hour=["numeric","2-digit"][e-1];break;case"j":case"J":case"C":throw RangeError("`j/J/C` (hour) patterns are not supported, use `h/H/K/k` instead");case"m":v.minute=["numeric","2-digit"][e-1];break;case"s":v.second=["numeric","2-digit"][e-1];break;case"S":case"A":throw RangeError("`S/A` (second) patterns are not supported, use `s` instead");case"z":v.timeZoneName=e<4?"short":"long";break;case"Z":case"O":case"v":case"V":case"X":case"x":throw RangeError("`Z/O/v/V/X/x` (timeZone) patterns are not supported, use `z` instead")}return""}),v):{}};return{val:{type:"date"===o?u.date:u.time,value:i,location:g,style:f},err:null}}
1return{val:{type:"number"===o?u.number:"date"===o?u.date:u.time,value:i,location:g,style:null!==(r=null==c?void 0:c.style)&&void 0!==r?r:null},err:null};case"plural":case"selectordinal":case"select":var T=this.clonePosition();if(this.bumpSpace(),!this.bumpIf(","))return this.error(l.EXPECT_SELECT_ARGUMENT_OPTIONS,U(T,y({},T)));this.bumpSpace();var S=this.parseIdentifierIfPossible(),w=0;if("select"!==o&&"offset"===S.value){if(!this.bumpIf(":"))return this.error(l.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE,U(this.clonePosition(),this.clonePosition()));this.bumpSpace();var p=this.tryParseDecimalInteger(l.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE,l.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE);if(p.err)return p;this.bumpSpace(),S=this.parseIdentifierIfPossible(),w=p.val}var P=this.tryParsePluralOrSelectOptions(t,o,e,S);if(P.err)return P;var m=this.tryParseArgumentClose(n);if(m.err)return m;var A=U(n,this.clonePosition());if("select"===o)return{val:{type:u.select,value:i,options:tt(P.val),location:A},err:null};return{val:{type:u.plural,value:i,options:tt(P.val),offset:w,pluralType:"plural"===o?"cardinal":"ordinal",location:A},err:null};default:return this.error(l.INVALID_ARGUMENT_TYPE,U(s,a))}},t.prototype.tryParseArgumentClose=function(t){return this.isEOF()||125!==this.char()?this.error(l.EXPECT_ARGUMENT_CLOSING_BRACE,U(t,this.clonePosition())):(this.bump(),{val:!0,err:null})},t.prototype.parseSimpleArgStyleIfPossible=function(){for(var t=0,e=this.clonePosition();!this.isEOF();)switch(this.char()){case 39:this.bump();var i=this.clonePosition();if(!this.bumpUntil("'"))return this.error(l.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE,U(i,this.clonePosition()));this.bump();break;case 123:t+=1,this.bump();break;case 125:if(!(t>0))return{val:this.message.slice(e.offset,this.offset()),err:null};t-=1;break;default:this.bump()}return{val:this.message.slice(e.offset,this.offset()),err:null}},t.prototype.parseNumberSkeletonFromString=function(t,e){var i=[];try{i=function(t){if(0===t.length)throw Error("Number skeleton cannot be empty");for(var e=t.split(B).filter(function(t){return t.length>0}),i=[],n=0;n<e.length;n++){var r=e[n].split("/");if(0===r.length)throw Error("Invalid number skeleton");for(var s=r[0],o=r.slice(1),a=0;a<o.length;a++)if(0===o[a].length)throw Error("Invalid number skeleton");i.push({stem:s,options:o})}return i}(t)}catch(t){return this.error(l.INVALID_NUMBER_SKELETON,e)}return{val:{type:h.number,tokens:i,location:e,parsedOptions:this.shouldParseSkeletons?function(t){for(var e={},i=0;i<t.length;i++){var n=t[i];switch(n.stem){case"percent":case"%":e.style="percent";continue;case"%x100":e.style="percent",e.scale=100;continue;case"currency":e.style="currency",e.currency=n.options[0];continue;case"group-off":case",_":e.useGrouping=!1;continue;case"precision-integer":case".":e.maximumFractionDigits=0;continue;case"measure-unit":case"unit":e.style="unit",e.unit=n.options[0].replace(/^(.*?)-/,"");continue;case"compact-short":case"K":e.notation="compact",e.compactDisplay="short";continue;case"compact-long":case"KK":e.notation="compact",e.compactDisplay="long";continue;case"scientific":e=y(y(y({},e),{notation:"scientific"}),n.options.reduce(function(t,e){return y(y({},t),H(e)||{})},{}));continue;case"engineering":e=y(y(y({},e),{notation:"engineering"}),n.options.reduce(function(t,e){return y(y({},t),H(e)||{})},{}));continue;case"notation-simple":e.notation="standard";continue;case"unit-width-narrow":e.currencyDisplay="narrowSymbol",e.unitDisplay="narrow";continue;case"unit-width-short":e.currencyDisplay="code",e.unitDisplay="short";continue;case"unit-width-full-name":e.currencyDisplay="name",e.unitDisplay="long";continue;case"unit-width-iso-code":e.currencyDisplay="symbol";continue;case"scale":e.scale=parseFloat(n.options[0]);continue;case"rounding-mode-floor":e.roundingMode="floor";continue;case"rounding-mode-ceiling":e.roundingMode="ceil";continue;case"rounding-mode-down":e.roundingMode="trunc";continue;case"rounding-mode-up":e.roundingMode="expand";continue;case"rounding-mode-half-even":e.roundingMode="halfEven";continue;case"rounding-mode-half-down":e.roundingMode="halfTrunc";continue;case"rounding-mode-half-up":e.roundingMode="halfExpand";continue;case"integer-width":if(n.options.length>1)throw RangeError("integer-width stems only accept a single optional option");n.options[0].replace(O,function(t,i,n,r,s,o){if(i)e.minimumIntegerDigits=n.length;else if(r&&s)throw Error("We currently do not support maximum integer digits");else if(o)throw Error("We currently do not support exact integer digits");return""});continue}if(D.test(n.stem)){e.minimumIntegerDigits=n.stem.length;continue}if(I.test(n.stem)){if(n.options.length>1)throw RangeError("Fraction-precision stems only accept a single optional option");n.stem.replace(I,function(t,i,n,r,s,o){return"*"===n?e.minimumFractionDigits=i.length:r&&"#"===r[0]?e.maximumFractionDigits=r.length:s&&o?(e.minimumFractionDigits=s.length,e.maximumFractionDigits=s.length+o.length):(e.minimumFractionDigits=i.length,e.maximumFractionDigits=i.length),""});var r=n.options[0];"w"===r?e=y(y({}
1,e),{trailingZeroDisplay:"stripIfInteger"}):r&&(e=y(y({},e),k(r)));continue}if(_.test(n.stem)){e=y(y({},e),k(n.stem));continue}var s=H(n.stem);s&&(e=y(y({},e),s));var o=function(t){var e;if("E"===t[0]&&"E"===t[1]?(e={notation:"engineering"},t=t.slice(2)):"E"===t[0]&&(e={notation:"scientific"},t=t.slice(1)),e){var i=t.slice(0,2);if("+!"===i?(e.signDisplay="always",t=t.slice(2)):"+?"===i&&(e.signDisplay="exceptZero",t=t.slice(2)),!D.test(t))throw Error("Malformed concise eng/scientific notation");e.minimumIntegerDigits=t.length}return e}(n.stem);o&&(e=y(y({},e),o))}return e}(i):{}},err:null}},t.prototype.tryParsePluralOrSelectOptions=function(t,e,i,n){for(var r,s=!1,o=[],a=new Set,u=n.value,h=n.location;;){if(0===u.length){var c=this.clonePosition();if("select"!==e&&this.bumpIf("=")){var d=this.tryParseDecimalInteger(l.EXPECT_PLURAL_ARGUMENT_SELECTOR,l.INVALID_PLURAL_ARGUMENT_SELECTOR);if(d.err)return d;h=U(c,this.clonePosition()),u=this.message.slice(c.offset,this.offset())}else break}if(a.has(u))return this.error("select"===e?l.DUPLICATE_SELECT_ARGUMENT_SELECTOR:l.DUPLICATE_PLURAL_ARGUMENT_SELECTOR,h);"other"===u&&(s=!0),this.bumpSpace();var p=this.clonePosition();if(!this.bumpIf("{"))return this.error("select"===e?l.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT:l.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT,U(this.clonePosition(),this.clonePosition()));var f=this.parseMessage(t+1,e,i);if(f.err)return f;var m=this.tryParseArgumentClose(p);if(m.err)return m;o.push([u,{value:f.val,location:U(p,this.clonePosition())}]),a.add(u),this.bumpSpace(),u=(r=this.parseIdentifierIfPossible()).value,h=r.location}return 0===o.length?this.error("select"===e?l.EXPECT_SELECT_ARGUMENT_SELECTOR:l.EXPECT_PLURAL_ARGUMENT_SELECTOR,U(this.clonePosition(),this.clonePosition())):this.requiresOtherClause&&!s?this.error(l.MISSING_OTHER_CLAUSE,U(this.clonePosition(),this.clonePosition())):{val:o,err:null}},t.prototype.tryParseDecimalInteger=function(t,e){var i=1,n=this.clonePosition();this.bumpIf("+")||this.bumpIf("-")&&(i=-1);for(var r=!1,s=0;!this.isEOF();){var o=this.char();if(o>=48&&o<=57)r=!0,s=10*s+(o-48),this.bump();else break}var a=U(n,this.clonePosition());return r?Z(s*=i)?{val:s,err:null}:this.error(e,a):this.error(t,a)},t.prototype.offset=function(){return this.position.offset},t.prototype.isEOF=function(){return this.offset()===this.message.length},t.prototype.clonePosition=function(){return{offset:this.position.offset,line:this.position.line,column:this.position.column}},t.prototype.char=function(){var t=this.position.offset;if(t>=this.message.length)throw Error("out of bound");var e=te(this.message,t);if(void 0===e)throw Error("Offset ".concat(t," is at invalid UTF-16 code unit boundary"));return e},t.prototype.error=function(t,e){return{val:null,err:{kind:t,message:this.message,location:e}}},t.prototype.bump=function(){if(!this.isEOF()){var t=this.char();10===t?(this.position.line+=1,this.position.column=1,this.position.offset+=1):(this.position.column+=1,this.position.offset+=t<65536?1:2)}},t.prototype.bumpIf=function(t){if(J(this.message,t,this.offset())){for(var e=0;e<t.length;e++)this.bump();return!0}return!1},t.prototype.bumpUntil=function(t){var e=this.offset(),i=this.message.indexOf(t,e);return i>=0?(this.bumpTo(i),!0):(this.bumpTo(this.message.length),!1)},t.prototype.bumpTo=function(t){if(this.offset()>t)throw Error("targetOffset ".concat(t," must be greater than or equal to the current offset ").concat(this.offset()));for(t=Math.min(t,this.message.length);;){var e=this.offset();if(e===t)break;if(e>t)throw Error("targetOffset ".concat(t," is at invalid UTF-16 code unit boundary"));if(this.bump(),this.isEOF())break}},t.prototype.bumpSpace=function(){for(;!this.isEOF()&&tl(this.char());)this.bump()},t.prototype.peek=function(){if(this.isEOF())return null;var t=this.char(),e=this.offset(),i=this.message.charCodeAt(e+(t>=65536?2:1));return null!=i?i:null},t}();function ta(t){return t>=97&&t<=122||t>=65&&t<=90}function tl(t){return t>=9&&t<=13||32===t||133===t||t>=8206&&t<=8207||8232===t||8233===t}function tu(t,e){void 0===e&&(e={});var i=new to(t,e=y({shouldParseSkeletons:!0,requiresOtherClause:!0},e)).parse();if(i.err){var n=SyntaxError(l[i.err.kind]);throw n.location=i.err.location,n.originalMessage=i.err.message,n}return(null==e?void 0:e.captureLocation)||function t(e){e.forEach(function(e){if(delete e.location,P(e)||A(e))for(var i in e.options)delete e.options[i].location,t(e.options[i].value);else T(e)&&M(e.style)?delete e.style.location:(S(e)||w(e))&&C(e.style)?delete e.style.location:x(e)&&t(e.children)})}(i.val),i.val}(o=p||(p={})).MISSING_VALUE="MISSING_VALUE",o.INVALID_VALUE="INVALID_VALUE",o.MISSING_INTL_API="MISSING_INTL_API";var th=function(t){function e(e,i,n){var r=t.call(this,e)||this;return r.code=i,r.originalMessage=n,r}return g(e,t),e.prototype.toString=function(){return"[formatjs Error: ".concat(this.code,"] ").concat(this.message)},e}(Error),tc=function(t){function e(e,i,n,r){return t.call(this,'Invalid values for "'.concat(e,'": "').concat(i,'". Options are "').concat(Object.keys(n).join('", "'),'"'),p.INVALID_VALUE,r)||this}return g(e,t),e}(th),td=function(t){function e(e,i,n){return t.call(this,'Value for "'.concat(e,'" must be of type ').concat(i),p.INVALID_VALUE,n)||this}return g(e,t),e}(th),tp=function(t){function e(e,i){return t.call(this,'The intl str
1ing context variable "'.concat(e,'" was not provided to the string "').concat(i,'"'),p.MISSING_VALUE,i)||this}return g(e,t),e}(th);function tf(t){return"function"==typeof t}function tm(t,e,i,n,r,s,o){if(1===t.length&&b(t[0]))return[{type:f.literal,value:t[0].value}];for(var a=[],l=0;l<t.length;l++){var h=t[l];if(b(h)){a.push({type:f.literal,value:h.value});continue}if(h.type===u.pound){"number"==typeof s&&a.push({type:f.literal,value:i.getNumberFormat(e).format(s)});continue}var c=h.value;if(!(r&&c in r))throw new tp(c,o);var d=r[c];if(h.type===u.argument){d&&"string"!=typeof d&&"number"!=typeof d||(d="string"==typeof d||"number"==typeof d?String(d):""),a.push({type:"string"==typeof d?f.literal:f.object,value:d});continue}if(S(h)){var m="string"==typeof h.style?n.date[h.style]:C(h.style)?h.style.parsedOptions:void 0;a.push({type:f.literal,value:i.getDateTimeFormat(e,m).format(d)});continue}if(w(h)){var m="string"==typeof h.style?n.time[h.style]:C(h.style)?h.style.parsedOptions:n.time.medium;a.push({type:f.literal,value:i.getDateTimeFormat(e,m).format(d)});continue}if(T(h)){var m="string"==typeof h.style?n.number[h.style]:M(h.style)?h.style.parsedOptions:void 0;m&&m.scale&&(d*=m.scale||1),a.push({type:f.literal,value:i.getNumberFormat(e,m).format(d)});continue}if(x(h)){var g=h.children,y=h.value,v=r[y];if(!tf(v))throw new td(y,"function",o);var E=v(tm(g,e,i,n,r,s).map(function(t){return t.value}));Array.isArray(E)||(E=[E]),a.push.apply(a,E.map(function(t){return{type:"string"==typeof t?f.literal:f.object,value:t}}))}if(P(h)){var L=h.options[d]||h.options.other;if(!L)throw new tc(h.value,d,Object.keys(h.options),o);a.push.apply(a,tm(L.value,e,i,n,r));continue}if(A(h)){var L=h.options["=".concat(d)];if(!L){if(!Intl.PluralRules)throw new th('Intl.PluralRules is not available in this environment.\nTry polyfilling it using "@formatjs/intl-pluralrules"\n',p.MISSING_INTL_API,o);var R=i.getPluralRules(e,{type:h.pluralType}).select(d-(h.offset||0));L=h.options[R]||h.options.other}if(!L)throw new tc(h.value,d,Object.keys(h.options),o);a.push.apply(a,tm(L.value,e,i,n,r,d-(h.offset||0)));continue}}return a.length<2?a:a.reduce(function(t,e){var i=t[t.length-1];return i&&i.type===f.literal&&e.type===f.literal?i.value+=e.value:t.push(e),t},[])}function tg(t){return{create:function(){return{get:function(e){return t[e]},set:function(e,i){t[e]=i}}}}}(a=f||(f={}))[a.literal=0]="literal",a[a.object=1]="object";var ty=function(){function t(e,i,n,r){void 0===i&&(i=t.defaultLocale);var s,o,a=this;if(this.formatterCache={number:{},dateTime:{},pluralRules:{}},this.format=function(t){var e=a.formatToParts(t);if(1===e.length)return e[0].value;var i=e.reduce(function(t,e){return t.length&&e.type===f.literal&&"string"==typeof t[t.length-1]?t[t.length-1]+=e.value:t.push(e.value),t},[]);return i.length<=1?i[0]||"":i},this.formatToParts=function(t){return tm(a.ast,a.locales,a.formatters,a.formats,t,void 0,a.message)},this.resolvedOptions=function(){var t;return{locale:(null===(t=a.resolvedLocale)||void 0===t?void 0:t.toString())||Intl.NumberFormat.supportedLocalesOf(a.locales)[0]}},this.getAst=function(){return a.ast},this.locales=i,this.resolvedLocale=t.resolveLocale(i),"string"==typeof e){if(this.message=e,!t.__parse)throw TypeError("IntlMessageFormat.__parse must be set to process `message` of type `string`");var l=r||{},u=(l.formatters,function(t,e){var i={};for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&0>e.indexOf(n)&&(i[n]=t[n]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols)for(var r=0,n=Object.getOwnPropertySymbols(t);r<n.length;r++)0>e.indexOf(n[r])&&Object.prototype.propertyIsEnumerable.call(t,n[r])&&(i[n[r]]=t[n[r]]);return i}(l,["formatters"]));this.ast=t.__parse(e,y(y({},u),{locale:this.resolvedLocale}))}else this.ast=e;if(!Array.isArray(this.ast))throw TypeError("A message must be provided as a String or AST.");this.formats=(s=t.formats,n?Object.keys(s).reduce(function(t,e){var i,r;return t[e]=(i=s[e],(r=n[e])?y(y(y({},i||{}),r||{}),Object.keys(i).reduce(function(t,e){return t[e]=y(y({},i[e]),r[e]||{}),t},{})):i),t},y({},s)):s),this.formatters=r&&r.formatters||(void 0===(o=this.formatterCache)&&(o={number:{},dateTime:{},pluralRules:{}}),{getNumberFormat:(0,E.memoize)(function(){for(var t,e=[],i=0;i<arguments.length;i++)e[i]=arguments[i];return new((t=Intl.NumberFormat).bind.apply(t,v([void 0],e,!1)))},{cache:tg(o.number),strategy:E.strategies.variadic}),getDateTimeFormat:(0,E.memoize)(function(){for(var t,e=[],i=0;i<arguments.length;i++)e[i]=arguments[i];return new((t=Intl.DateTimeFormat).bind.apply(t,v([void 0],e,!1)))},{cache:tg(o.dateTime),strategy:E.strategies.variadic}),getPluralRules:(0,E.memoize)(function(){for(var t,e=[],i=0;i<arguments.length;i++)e[i]=arguments[i];return new((t=Intl.PluralRules).bind.apply(t,v([void 0],e,!1)))},{cache:tg(o.pluralRules),strategy:E.strategies.variadic})})}return Object.defineProperty(t,"defaultLocale",{get:function(){return t.memoizedDefaultLocale||(t.memoizedDefaultLocale=new Intl.NumberFormat().resolvedOptions().locale),t.memoizedDefaultLocale}
1,enumerable:!1,configurable:!0}),t.memoizedDefaultLocale=null,t.resolveLocale=function(t){if(void 0!==Intl.Locale){var e=Intl.NumberFormat.supportedLocalesOf(t);return new Intl.Locale(e.length>0?e[0]:"string"==typeof t?t:t[0])}},t.__parse=tu,t.formats={number:{integer:{maximumFractionDigits:0},currency:{style:"currency"},percent:{style:"percent"}},date:{short:{month:"numeric",day:"numeric",year:"2-digit"},medium:{month:"short",day:"numeric",year:"numeric"},long:{month:"long",day:"numeric",year:"numeric"},full:{weekday:"long",month:"long",day:"numeric",year:"numeric"}},time:{short:{hour:"numeric",minute:"numeric"},medium:{hour:"numeric",minute:"numeric",second:"numeric"},long:{hour:"numeric",minute:"numeric",second:"numeric",timeZoneName:"short"},full:{hour:"numeric",minute:"numeric",second:"numeric",timeZoneName:"short"}}},t}(),tv=ty},9205:function(t,e,i){i.d(e,{Z:function(){return l}});var n=i(2265);let r=t=>t.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),s=function(){for(var t=arguments.length,e=Array(t),i=0;i<t;i++)e[i]=arguments[i];return e.filter((t,e,i)=>!!t&&""!==t.trim()&&i.indexOf(t)===e).join(" ").trim()};var o={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"};let a=(0,n.forwardRef)((t,e)=>{let{color:i="currentColor",size:r=24,strokeWidth:a=2,absoluteStrokeWidth:l,className:u="",children:h,iconNode:c,...d}=t;return(0,n.createElement)("svg",{ref:e,...o,width:r,height:r,stroke:i,strokeWidth:l?24*Number(a)/Number(r):a,className:s("lucide",u),...d},[...c.map(t=>{let[e,i]=t;return(0,n.createElement)(e,i)}),...Array.isArray(h)?h:[h]])}),l=(t,e)=>{let i=(0,n.forwardRef)((i,o)=>{let{className:l,...u}=i;return(0,n.createElement)(a,{ref:o,iconNode:e,className:s("lucide-".concat(r(t)),l),...u})});return i.displayName="".concat(t),i}},598:function(t,e,i){i.d(e,{Z:function(){return n}});let n=(0,i(9205).Z)("Linkedin",[["path",{d:"M16 8a6 6 0 0 1 6 6v7h-4v-7a2 2 0 0 0-2-2 2 2 0 0 0-2 2v7h-4v-7a6 6 0 0 1 6-6z",key:"c2jq9f"}],["rect",{width:"4",height:"12",x:"2",y:"9",key:"mk3on5"}],["circle",{cx:"4",cy:"4",r:"2",key:"bt5ra8"}]])},6840:function(t,e,i){i.d(e,{Z:function(){return n}});let n=(0,i(9205).Z)("Menu",[["line",{x1:"4",x2:"20",y1:"12",y2:"12",key:"1e0a9i"}],["line",{x1:"4",x2:"20",y1:"6",y2:"6",key:"1owob3"}],["line",{x1:"4",x2:"20",y1:"18",y2:"18",key:"yk5zj1"}]])},2718:function(t,e,i){i.d(e,{Z:function(){return n}});let n=(0,i(9205).Z)("MessageCircle",[["path",{d:"M7.9 20A9 9 0 1 0 4 16.1L2 22Z",key:"vv11sd"}]])},2023:function(t,e,i){i.d(e,{Z:function(){return n}});let n=(0,i(9205).Z)("Sparkles",[["path",{d:"M9.937 15.5A2 2 0 0 0 8.5 14.063l-6.135-1.582a.5.5 0 0 1 0-.962L8.5 9.936A2 2 0 0 0 9.937 8.5l1.582-6.135a.5.5 0 0 1 .963 0L14.063 8.5A2 2 0 0 0 15.5 9.937l6.135 1.581a.5.5 0 0 1 0 .964L15.5 14.063a2 2 0 0 0-1.437 1.437l-1.582 6.135a.5.5 0 0 1-.963 0z",key:"4pj2yx"}],["path",{d:"M20 3v4",key:"1olli1"}],["path",{d:"M22 5h-4",key:"1gvqau"}],["path",{d:"M4 17v2",key:"vumght"}],["path",{d:"M5 18H3",key:"zchphs"}]])},2489:function(t,e,i){i.d(e,{Z:function(){return n}});let n=(0,i(9205).Z)("X",[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]])},1239:function(t,e,i){i.d(e,{Z:function(){return n}});let n=(0,i(9205).Z)("Zap",[["path",{d:"M4 14a1 1 0 0 1-.78-1.63l9.9-10.2a.5.5 0 0 1 .86.46l-1.92 6.02A1 1 0 0 0 13 10h7a1 1 0 0 1 .78 1.63l-9.9 10.2a.5.5 0 0 1-.86-.46l1.92-6.02A1 1 0 0 0 11 14z",key:"1xq2db"}]])},2680:function(t,e){function i(){return(i=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var i=arguments[e];for(var n in i)({}).hasOwnProperty.call(i,n)&&(t[n]=i[n])}return t}).apply(null,arguments)}Object.defineProperty(e,"__esModule",{value:!0}),e.extends=i},2586:function(t,e,i){Object.defineProperty(e,"__esModule",{value:!0});var n=i(3345),r=i(2579),s=i(3559),o=i(2791);e.useFormatter=n.useFormatter,e.useTranslations=n.useTranslations,e.useLocale=r.default,e.NextIntlClientProvider=s.default,Object.keys(o).forEach(function(t){"default"===t||Object.prototype.hasOwnProperty.call(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:function(){return o[t]}})})}
1,3345:function(t,e,i){Object.defineProperty(e,"__esModule",{value:!0});var n=i(2791);function r(t,e){return function(){try{return e(...arguments)}catch(t){throw Error(void 0)}}}let s=r(0,n.useTranslations),o=r(0,n.useFormatter);e.useFormatter=o,e.useTranslations=s,Object.keys(n).forEach(function(t){"default"===t||Object.prototype.hasOwnProperty.call(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:function(){return n[t]}})})},2579:function(t,e,i){Object.defineProperty(e,"__esModule",{value:!0});var n=i(9376),r=i(3513),s=i(2132);e.default=function(){let t;let e=n.useParams();try{t=r.useLocale()}catch(i){if("string"!=typeof(null==e?void 0:e[s.LOCALE_SEGMENT_NAME]))throw i;t=e[s.LOCALE_SEGMENT_NAME]}return t}},3559:function(t,e,i){Object.defineProperty(e,"__esModule",{value:!0});var n=i(2680),r=i(2265),s=i(4909),o=r&&r.__esModule?r:{default:r};e.default=function(t){let{locale:e,...i}=t;if(!e)throw Error(void 0);return o.default.createElement(s.IntlProvider,n.extends({locale:e},i))}},2132:function(t,e){Object.defineProperty(e,"__esModule",{value:!0}),e.HEADER_LOCALE_NAME="X-NEXT-INTL-LOCALE",e.LOCALE_SEGMENT_NAME="locale"},3145:function(t,e,i){i.d(e,{default:function(){return r.a}});var n=i(8461),r=i.n(n)},5878:function(t,e,i){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"Image",{enumerable:!0,get:function(){return E}});let n=i(7043),r=i(3099),s=i(7437),o=r._(i(2265)),a=n._(i(4887)),l=n._(i(8293)),u=i(5346),h=i(128),c=i(2589);i(1765);let d=i(5523),p=n._(i(5084)),f={deviceSizes:[640,750,828,1080,1200,1920,2048,3840],imageSizes:[16,32,48,64,96,128,256,384],path:"/_next/image",loader:"default",dangerouslyAllowSVG:!1,unoptimized:!1};function m(t,e,i,n,r,s,o){let a=null==t?void 0:t.src;t&&t["data-loaded-src"]!==a&&(t["data-loaded-src"]=a,("decode"in t?t.decode():Promise.resolve()).catch(()=>{}).then(()=>{if(t.parentElement&&t.isConnected){if("empty"!==e&&r(!0),null==i?void 0:i.current){let e=new Event("load");Object.defineProperty(e,"target",{writable:!1,value:t});let n=!1,r=!1;i.current({...e,nativeEvent:e,currentTarget:t,target:t,isDefaultPrevented:()=>n,isPropagationStopped:()=>r,persist:()=>{},preventDefault:()=>{n=!0,e.preventDefault()},stopPropagation:()=>{r=!0,e.stopPropagation()}})}(null==n?void 0:n.current)&&n.current(t)}}))}function g(t){return o.use?{fetchPriority:t}:{fetchpriority:t}}"undefined"==typeof window&&(globalThis.__NEXT_IMAGE_IMPORTED=!0);let y=(0,o.forwardRef)((t,e)=>{let{src:i,srcSet:n,sizes:r,height:a,width:l,decoding:u,className:h,style:c,fetchPriority:d,placeholder:p,loading:f,unoptimized:y,fill:v,onLoadRef:E,onLoadingCompleteRef:b,setBlurComplete:T,setShowAltText:S,sizesInput:w,onLoad:P,onError:A,...x}=t;return(0,s.jsx)("img",{...x,...g(d),loading:f,width:l,height:a,decoding:u,"data-nimg":v?"fill":"1",className:h,style:c,sizes:r,srcSet:n,src:i,ref:(0,o.useCallback)(t=>{e&&("function"==typeof e?e(t):"object"==typeof e&&(e.current=t)),t&&(A&&(t.src=t.src),t.complete&&m(t,p,E,b,T,y,w))},[i,p,E,b,T,A,y,w,e]),onLoad:t=>{m(t.currentTarget,p,E,b,T,y,w)},onError:t=>{S(!0),"empty"!==p&&T(!0),A&&A(t)}})});function v(t){let{isAppRouter:e,imgAttributes:i}=t,n={as:"image",imageSrcSet:i.srcSet,imageSizes:i.sizes,crossOrigin:i.crossOrigin,referrerPolicy:i.referrerPolicy,...g(i.fetchPriority)};return e&&a.default.preload?(a.default.preload(i.src,n),null):(0,s.jsx)(l.default,{children:(0,s.jsx)("link",{rel:"preload",href:i.srcSet?void 0:i.src,...n},"__nimg-"+i.src+i.srcSet+i.sizes)})}let E=(0,o.forwardRef)((t,e)=>{let i=(0,o.useContext)(d.RouterContext),n=(0,o.useContext)(c.ImageConfigContext),r=(0,o.useMemo)(()=>{let t=f||n||h.imageConfigDefault,e=[...t.deviceSizes,...t.imageSizes].sort((t,e)=>t-e),i=t.deviceSizes.sort((t,e)=>t-e);return{...t,allSizes:e,deviceSizes:i}},[n]),{onLoad:a,onLoadingComplete:l}=t,m=(0,o.useRef)(a);(0,o.useEffect)(()=>{m.current=a},[a]);let g=(0,o.useRef)(l);(0,o.useEffect)(()=>{g.current=l},[l]);let[E,b]=(0,o.useState)(!1),[T,S]=(0,o.useState)(!1),{props:w,meta:P}=(0,u.getImgProps)(t,{defaultLoader:p.default,imgConf:r,blurComplete:E,showAltText:T});return(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(y,{...w,unoptimized:P.unoptimized,placeholder:P.placeholder,fill:P.fill,onLoadRef:m,onLoadingCompleteRef:g,setBlurComplete:b,setShowAltText:S,sizesInput:t.sizes,ref:e}),P.priority?(0,s.jsx)(v,{isAppRouter:!i,imgAttributes:w}):null]})});("function"==typeof e.default||"object"==typeof e.default&&null!==e.default)&&void 0===e.default.__esModule&&(Object.defineProperty(e.default,"__esMo
1dule",{value:!0}),Object.assign(e.default,e),t.exports=e.default)},1436:function(t,e,i){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"AmpStateContext",{enumerable:!0,get:function(){return n}});let n=i(7043)._(i(2265)).default.createContext({})},3964:function(t,e){function i(t){let{ampFirst:e=!1,hybrid:i=!1,hasQuery:n=!1}=void 0===t?{}:t;return e||i&&n}Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"isInAmpMode",{enumerable:!0,get:function(){return i}})},5346:function(t,e,i){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"getImgProps",{enumerable:!0,get:function(){return a}}),i(1765);let n=i(6496),r=i(128);function s(t){return void 0!==t.default}function o(t){return void 0===t?t:"number"==typeof t?Number.isFinite(t)?t:NaN:"string"==typeof t&&/^[0-9]+$/.test(t)?parseInt(t,10):NaN}function a(t,e){var i;let a,l,u,{src:h,sizes:c,unoptimized:d=!1,priority:p=!1,loading:f,className:m,quality:g,width:y,height:v,fill:E=!1,style:b,overrideSrc:T,onLoad:S,onLoadingComplete:w,placeholder:P="empty",blurDataURL:A,fetchPriority:x,decoding:M="async",layout:C,objectFit:L,objectPosition:R,lazyBoundary:B,lazyRoot:I,..._}=t,{imgConf:O,showAltText:D,blurComplete:k,defaultLoader:H}=e,N=O||r.imageConfigDefault;if("allSizes"in N)a=N;else{let t=[...N.deviceSizes,...N.imageSizes].sort((t,e)=>t-e),e=N.deviceSizes.sort((t,e)=>t-e);a={...N,allSizes:t,deviceSizes:e}}if(void 0===H)throw Error("images.loaderFile detected but the file is missing default export.\nRead more: https://nextjs.org/docs/messages/invalid-images-config");let V=_.loader||H;delete _.loader,delete _.srcSet;let F="__next_img_default"in V;if(F){if("custom"===a.loader)throw Error('Image with src "'+h+'" is missing "loader" prop.\nRead more: https://nextjs.org/docs/messages/next-image-missing-loader')}else{let t=V;V=e=>{let{config:i,...n}=e;return t(n)}}if(C){"fill"===C&&(E=!0);let t={intrinsic:{maxWidth:"100%",height:"auto"},responsive:{width:"100%",height:"auto"}}[C];t&&(b={...b,...t});let e={responsive:"100vw",fill:"100vw"}[C];e&&!c&&(c=e)}let j="",U=o(y),G=o(v);if("object"==typeof(i=h)&&(s(i)||void 0!==i.src)){let t=s(h)?h.default:h;if(!t.src)throw Error("An object should only be passed to the image component src parameter if it comes from a static image import. It must include src. Received "+JSON.stringify(t));if(!t.height||!t.width)throw Error("An object should only be passed to the image component src parameter if it comes from a static image import. It must include height and width. Received "+JSON.stringify(t));if(l=t.blurWidth,u=t.blurHeight,A=A||t.blurDataURL,j=t.src,!E){if(U||G){if(U&&!G){let e=U/t.width;G=Math.round(t.height*e)}else if(!U&&G){let e=G/t.height;U=Math.round(t.width*e)}}else U=t.width,G=t.height}}let z=!p&&("lazy"===f||void 0===f);(!(h="string"==typeof h?h:j)||h.startsWith("data:")||h.startsWith("blob:"))&&(d=!0,z=!1),a.unoptimized&&(d=!0),F&&h.endsWith(".svg")&&!a.dangerouslyAllowSVG&&(d=!0),p&&(x="high");let W=o(g),X=Object.assign(E?{position:"absolute",height:"100%",width:"100%",left:0,top:0,right:0,bottom:0,objectFit:L,objectPosition:R}:{},D?{}:{color:"transparent"},b),Y=k||"empty"===P?null:"blur"===P?'url("data:image/svg+xml;charset=utf-8,'+(0,n.getImageBlurSvg)({widthInt:U,heightInt:G,blurWidth:l,blurHeight:u,blurDataURL:A||"",objectFit:X.objectFit})+'")':'url("'+P+'")',K=Y?{backgroundSize:X.objectFit||"cover",backgroundPosition:X.objectPosition||"50% 50%",backgroundRepeat:"no-repeat",backgroundImage:Y}:{},Z=function(t){let{config:e,src:i,unoptimized:n,width:r,quality:s,sizes:o,loader:a}=t;if(n)return{src:i,srcSet:void 0,sizes:void 0};let{widths:l,kind:u}=function(t,e,i){let{deviceSizes:n,allSizes:r}=t;if(i){let t=/(^|\s)(1?\d?\d)vw/g,e=[];for(let n;n=t.exec(i);n)e.push(parseInt(n[2]));if(e.length){let t=.01*Math.min(...e);return{widths:r.filter(e=>e>=n[0]*t),kind:"w"}}return{widths:r,kind:"w"}}return"number"!=typeof e?{widths:n,kind:"w"}:{widths:[...new Set([e,2*e].map(t=>r.find(e=>e>=t)||r[r.length-1]))],kind:"x"}}(e,r,o),h=l.length-1;return{sizes:o||"w"!==u?o:"100vw",srcSet:l.map((t,n)=>a({config:e,src:i,quality:s,width:t})+" "+("w"===u?t:n+1)+u).join(", "),src:a({config:e,src:i,quality:s,width:l[h]})}}({config:a,src:h,unoptimized:d,width:U,quality:W,sizes:c,loader:V});return{props:{..._,loading:z?"lazy":f,fetchPriority:x,width:U,height:G,decoding:M,className:m,style:{...X,...K},sizes:Z.sizes,srcSet:Z.srcSet,src:T||Z.src},meta:{unoptimized:d,priority:p,placeholder:P,fill:E}}}}
1,8293:function(t,e,i){Object.defineProperty(e,"__esModule",{value:!0}),function(t,e){for(var i in e)Object.defineProperty(t,i,{enumerable:!0,get:e[i]})}(e,{default:function(){return m},defaultHead:function(){return c}});let n=i(7043),r=i(3099),s=i(7437),o=r._(i(2265)),a=n._(i(7421)),l=i(1436),u=i(8701),h=i(3964);function c(t){void 0===t&&(t=!1);let e=[(0,s.jsx)("meta",{charSet:"utf-8"})];return t||e.push((0,s.jsx)("meta",{name:"viewport",content:"width=device-width"})),e}function d(t,e){return"string"==typeof e||"number"==typeof e?t:e.type===o.default.Fragment?t.concat(o.default.Children.toArray(e.props.children).reduce((t,e)=>"string"==typeof e||"number"==typeof e?t:t.concat(e),[])):t.concat(e)}i(1765);let p=["name","httpEquiv","charSet","itemProp"];function f(t,e){let{inAmpMode:i}=e;return t.reduce(d,[]).reverse().concat(c(i).reverse()).filter(function(){let t=new Set,e=new Set,i=new Set,n={};return r=>{let s=!0,o=!1;if(r.key&&"number"!=typeof r.key&&r.key.indexOf("$")>0){o=!0;let e=r.key.slice(r.key.indexOf("$")+1);t.has(e)?s=!1:t.add(e)}switch(r.type){case"title":case"base":e.has(r.type)?s=!1:e.add(r.type);break;case"meta":for(let t=0,e=p.length;t<e;t++){let e=p[t];if(r.props.hasOwnProperty(e)){if("charSet"===e)i.has(e)?s=!1:i.add(e);else{let t=r.props[e],i=n[e]||new Set;("name"!==e||!o)&&i.has(t)?s=!1:(i.add(t),n[e]=i)}}}}return s}}()).reverse().map((t,e)=>{let n=t.key||e;if(!i&&"link"===t.type&&t.props.href&&["https://fonts.googleapis.com/css","https://use.typekit.net/"].some(e=>t.props.href.startsWith(e))){let e={...t.props||{}};return e["data-href"]=e.href,e.href=void 0,e["data-optimized-fonts"]=!0,o.default.cloneElement(t,e)}return o.default.cloneElement(t,{key:n})})}let m=function(t){let{children:e}=t,i=(0,o.useContext)(l.AmpStateContext),n=(0,o.useContext)(u.HeadManagerContext);return(0,s.jsx)(a.default,{reduceComponentsToState:f,headManager:n,inAmpMode:(0,h.isInAmpMode)(i),children:e})};("function"==typeof e.default||"object"==typeof e.default&&null!==e.default)&&void 0===e.default.__esModule&&(Object.defineProperty(e.default,"__esModule",{value:!0}),Object.assign(e.default,e),t.exports=e.default)},6496:function(t,e){function i(t){let{widthInt:e,heightInt:i,blurWidth:n,blurHeight:r,blurDataURL:s,objectFit:o}=t,a=n?40*n:e,l=r?40*r:i,u=a&&l?"viewBox='0 0 "+a+" "+l+"'":"";return"%3Csvg xmlns='http://www.w3.org/2000/svg' "+u+"%3E%3Cfilter id='b' color-interpolation-filters='sRGB'%3E%3CfeGaussianBlur stdDeviation='20'/%3E%3CfeColorMatrix values='1 0 0 0 0 0 1 0 0 0 0 0 1 0 0 0 0 0 100 -1' result='s'/%3E%3CfeFlood x='0' y='0' width='100%25' height='100%25'/%3E%3CfeComposite operator='out' in='s'/%3E%3CfeComposite in2='SourceGraphic'/%3E%3CfeGaussianBlur stdDeviation='20'/%3E%3C/filter%3E%3Cimage width='100%25' height='100%25' x='0' y='0' preserveAspectRatio='"+(u?"none":"contain"===o?"xMidYMid":"cover"===o?"xMidYMid slice":"none")+"' style='filter: url(%23b);' href='"+s+"'/%3E%3C/svg%3E"}Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"getImageBlurSvg",{enumerable:!0,get:function(){return i}})},2589:function(t,e,i){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"ImageConfigContext",{enumerable:!0,get:function(){return s}});let n=i(7043)._(i(2265)),r=i(128),s=n.default.createContext(r.imageConfigDefault)},128:function(t,e){Object.defineProperty(e,"__esModule",{value:!0}),function(t,e){for(var i in e)Object.defineProperty(t,i,{enumerable:!0,get:e[i]})}(e,{VALID_LOADERS:function(){return i},imageConfigDefault:function(){return n}});let i=["default","imgix","cloudinary","akamai","custom"],n={deviceSizes:[640,750,828,1080,1200,1920,2048,3840],imageSizes:[16,32,48,64,96,128,256,384],path:"/_next/image",loader:"default",loaderFile:"",domains:[],disableStaticImages:!1,minimumCacheTTL:60,formats:["image/webp"],dangerouslyAllowSVG:!1,contentSecurityPolicy:"script-src 'none'; frame-src 'none'; sandbox;",contentDispositionType:"inline",localPatterns:void 0,remotePatterns:[],unoptimized:!1}},8461:function(t,e,i){Object.defineProperty(e,"__esModule",{value:!0}),function(t,e){for(var i in e)Object.defineProperty(t,i,{enumerable:!0,get:e[i]})}(e,{default:function(){return l},getImageProps:function(){return a}});let n=i(7043),r=i(5346),s=i(5878),o=n._(i(5084));function a(t){let{props:e}=(0,r.getImgProps)(t,{defaultLoader:o.default,imgConf:{deviceSizes:[640,750,828,1080,1200,1920,2048,3840],imageSizes:[16,32,48,64,96,128,256,384],path:"/_next/image",loader:"default",dangerouslyAllowSVG:!1,unoptimized:!1}});for(let[t,i]of Object.entries(e))void 0===i&&delete e[t];return{props:e}}let l=s.Image},5084:function(t,e){function i(t){let{config:e,src:i,width:n,quality:r}=t;return e.path+"?url="+encodeURIComponent(i)+"&w="+n+"&q="+(r||75)+"&dpl=dpl_BoFSB5vKc98S1XzjGvUVH1wFYVCj"}
1Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return n}}),i.__next_img_default=!0;let n=i},7421:function(t,e,i){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return a}});let n=i(2265),r="undefined"==typeof window,s=r?()=>{}:n.useLayoutEffect,o=r?()=>{}:n.useEffect;function a(t){let{headManager:e,reduceComponentsToState:i}=t;function a(){if(e&&e.mountedInstances){let r=n.Children.toArray(Array.from(e.mountedInstances).filter(Boolean));e.updateHead(i(r,t))}}if(r){var l;null==e||null==(l=e.mountedInstances)||l.add(t.children),a()}return s(()=>{var i;return null==e||null==(i=e.mountedInstances)||i.add(t.children),()=>{var i;null==e||null==(i=e.mountedInstances)||i.delete(t.children)}}),s(()=>(e&&(e._pendingUpdate=a),()=>{e&&(e._pendingUpdate=a)})),o(()=>(e&&e._pendingUpdate&&(e._pendingUpdate(),e._pendingUpdate=null),()=>{e&&e._pendingUpdate&&(e._pendingUpdate(),e._pendingUpdate=null)})),null}},4909:function(t,e,i){t.exports=i(9362)},3513:function(t,e,i){t.exports=i(526)},2791:function(t,e,i){t.exports=i(3350)},9362:function(t,e,i){Object.defineProperty(e,"__esModule",{value:!0});var n=i(2265),r=i(4563),s=i(3442);i(1360);var o=n&&n.__esModule?n:{default:n};e.IntlProvider=function(t){let{children:e,defaultTranslationValues:i,formats:a,getMessageFallback:l,locale:u,messages:h,now:c,onError:d,timeZone:p}=t,f=n.useMemo(()=>r.createCache(),[u]),m=n.useMemo(()=>r.createIntlFormatters(f),[f]),g=n.useMemo(()=>({...r.initializeConfig({locale:u,defaultTranslationValues:i,formats:a,getMessageFallback:l,messages:h,now:c,onError:d,timeZone:p}),formatters:m,cache:f}),[f,i,a,m,l,u,h,c,d,p]);return o.default.createElement(s.IntlContext.Provider,{value:g},e)}},4907:function(t,e,i){Object.defineProperty(e,"__esModule",{value:!0});var n=i(9832),r=i(4563);i(1388),i(2265),i(1360),e.IntlError=n.IntlError,e.IntlErrorCode=n.IntlErrorCode,e.createFormatter=n.createFormatter,e._createCache=r.createCache,e._createIntlFormatters=r.createIntlFormatters,e.initializeConfig=r.initializeConfig,e.createTranslator=function(t){let{_cache:e=r.createCache(),_formatters:i=r.createIntlFormatters(e),getMessageFallback:s=r.defaultGetMessageFallback,messages:o,namespace:a,onError:l=r.defaultOnError,...u}=t;return function(t,e){let{messages:i,namespace:r,...s}=t;return i=i["!"],r=n.resolveNamespace(r,"!"),n.createBaseTranslator({...s,messages:i,namespace:r})}({...u,onError:l,cache:e,formatters:i,getMessageFallback:s,messages:{"!":o},namespace:a?"!.".concat(a):"!"},0)}},9832:function(t,e,i){var n,r=i(1388),s=i(2265),o=i(4563),a=r&&r.__esModule?r:{default:r};function l(t,e,i){var n;return(e="symbol"==typeof(n=function(t,e){if("object"!=typeof t||!t)return t;var i=t[Symbol.toPrimitive];if(void 0!==i){var n=i.call(t,e||"default");if("object"!=typeof n)return n;throw TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(e,"string"))?n:n+"")in t?Object.defineProperty(t,e,{value:i,enumerable:!0,configurable:!0,writable:!0}):t[e]=i,t}let u=((n={}).MISSING_MESSAGE="MISSING_MESSAGE",n.MISSING_FORMAT="MISSING_FORMAT",n.ENVIRONMENT_FALLBACK="ENVIRONMENT_FALLBACK",n.INSUFFICIENT_PATH="INSUFFICIENT_PATH",n.INVALID_MESSAGE="INVALID_MESSAGE",n.INVALID_KEY="INVALID_KEY",n.FORMATTING_ERROR="FORMATTING_ERROR",n);
1class h extends Error{constructor(t,e){let i=t;e&&(i+=": "+e),super(i),l(this,"code",void 0),l(this,"originalMessage",void 0),this.code=t,e&&(this.originalMessage=e)}}function c(t,e){return t?Object.keys(t).reduce((i,n)=>(i[n]={timeZone:e,...t[n]},i),{}):t}function d(t,e,i,n){let r=o.joinPath(n,i);if(!e)throw Error(r);let s=e;return i.split(".").forEach(e=>{let i=s[e];if(null==e||null==i)throw Error(r+" (".concat(t,")"));s=i}),s}let p=365/12*86400,f={second:1,seconds:1,minute:60,minutes:60,hour:3600,hours:3600,day:86400,days:86400,week:604800,weeks:604800,month:365/12*86400,months:365/12*86400,quarter:365/12*259200,quarters:365/12*259200,year:31536e3,years:31536e3};e.IntlError=h,e.IntlErrorCode=u,e.createBaseTranslator=function(t){let e=function(t,e,i){let n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:o.defaultOnError;try{if(!e)throw Error(void 0);let n=i?d(t,e,i):e;if(!n)throw Error(i);return n}catch(e){let t=new h(u.MISSING_MESSAGE,e.message);return n(t),t}}(t.locale,t.messages,t.namespace,t.onError);return function(t){let{cache:e,defaultTranslationValues:i,formats:n,formatters:r,getMessageFallback:l=o.defaultGetMessageFallback,locale:p,messagesOrError:f,namespace:m,onError:g,timeZone:y}=t,v=f instanceof h;function E(t,e,i){let n=new h(e,i);return g(n),l({error:n,key:t,namespace:m})}function b(t,h,g){let b,T;if(v)return l({error:f,key:t,namespace:m});try{b=d(p,f,t,m)}catch(e){return E(t,u.MISSING_MESSAGE,e.message)}if("object"==typeof b){let e;return E(t,Array.isArray(b)?u.INVALID_MESSAGE:u.INSUFFICIENT_PATH,e)}let S=function(t,e){if(e)return;let i=t.replace(/'([{}])/gi,"$1");return/<|{/.test(i)?void 0:i}(b,h);if(S)return S;r.getMessageFormat||(r.getMessageFormat=o.memoFn(function(){return new a.default(arguments.length<=0?void 0:arguments[0],arguments.length<=1?void 0:arguments[1],arguments.length<=2?void 0:arguments[2],{formatters:r,...arguments.length<=3?void 0:arguments[3]})},e.message));try{T=r.getMessageFormat(b,p,function(t,e){let i=e?{...t,dateTime:c(t.dateTime,e)}:t,n=a.default.formats.date,r=e?c(n,e):n,s=a.default.formats.time,o=e?c(s,e):s;return{...i,date:{...r,...i.dateTime},time:{...o,...i.dateTime}}}({...n,...g},y),{formatters:{...r,getDateTimeFormat:(t,e)=>r.getDateTimeFormat(t,{timeZone:y,...e})}})}catch(e){return E(t,u.INVALID_MESSAGE,e.message)}try{let t=T.format(function(t){if(0===Object.keys(t).length)return;let e={};return Object.keys(t).forEach(i=>{let n,r=0,o=t[i];n="function"==typeof o?t=>{let e=o(t);return s.isValidElement(e)?s.cloneElement(e,{key:i+r++}):e}:o,e[i]=n}),e}({...i,...h}));if(null==t)throw Error(void 0);return s.isValidElement(t)||Array.isArray(t)||"string"==typeof t?t:String(t)}catch(e){return E(t,u.FORMATTING_ERROR,e.message)}}function T(t,e,i){let n=b(t,e,i);return"string"!=typeof n?E(t,u.INVALID_MESSAGE,void 0):n}return T.rich=b,T.markup=(t,e,i)=>{let n=b(t,e,i);if("string"!=typeof n){let e=new h(u.FORMATTING_ERROR,void 0);return g(e),l({error:e,key:t,namespace:m})}return n},T.raw=t=>{if(v)return l({error:f,key:t,namespace:m});try{return d(p,f,t,m)}catch(e){return E(t,u.MISSING_MESSAGE,e.message)}},T.has=t=>{if(v)return!1;try{return d(p,f,t,m),!0}catch(t){return!1}},T}({...t,messagesOrError:e})},e.createFormatter=function(t){let{_cache:e=o.createCache(),_formatters:i=o.createIntlFormatters(e),formats:n,locale:r,now:s,onError:a=o.defaultOnError,timeZone:l}=t;function c(t){var e;return null!==(e=t)&&void 0!==e&&e.timeZone||(l?t={...t,timeZone:l}:a(new h(u.ENVIRONMENT_FALLBACK,void 0))),t}function d(t,e,i,n){let r;try{r=function(t,e){let i;if("string"==typeof e){if(!(i=null==t?void 0:t[e])){let t=new h(u.MISSING_FORMAT,void 0);throw a(t),t}}else i=e;return i}(e,t)}catch(t){return n()}try{return i(r)}catch(t){return a(new h(u.FORMATTING_ERROR,t.message)),n()}}function m(t,e){return d(e,null==n?void 0:n.dateTime,e=>(e=c(e),i.getDateTimeFormat(r,e).format(t)),()=>String(t))}function g(){return s||(a(new h(u.ENVIRONMENT_FALLBACK,void 0)),new Date)}return{dateTime:m,number:function(t,e){return d(e,null==n?void 0:n.number,e=>i.getNumberFormat(r,e).format(t),()=>String(t))},relativeTime:function(t,e){try{var n;let s,o;let a={};e instanceof Date||"number"==typeof e?s=new Date(e):e&&(s=null!=e.now?new Date(e.now):g(),o=e.unit,a.style=e.style,a.numberingSystem=e.numberingSystem),s||(s=g());let l=(new Date(t).getTime()-s.getTime())/1e3;o||(o=function(t){let e=Math.abs(t);return e<60?"second":e<3600?"minute":e<86400?"hour":e<604800?"day":e<p?"week":e<31536e3?"month":"year"}(l)),a.numeric="second"===o?"auto":"always";let u=(n=o,Math.round(l/f[n]));return i.getRelativeTimeFormat(r,a).format(u,o)}catch(e){return a(new h(u.FORMATTING_ERROR,e.message)),String(t)}},list:function(t,e){let s=[],o=new Map,a=0;for(let e of t){let t;"object"==typeof e?(t=String(a),o.set(t,e)):t=String(e),s.push(t),a++}return d(e,null==n?void 0:n.list,t=>{let e=i.getListFormat(r,t).formatToParts(s).map(t=>
1"literal"===t.type?t.value:o.get(t.value)||t.value);return o.size>0?e:e.join("")},()=>String(t))},dateTimeRange:function(t,e,s){return d(s,null==n?void 0:n.dateTime,n=>(n=c(n),i.getDateTimeFormat(r,n).formatRange(t,e)),()=>[m(t),m(e)].join(" – "))}}},e.resolveNamespace=function(t,e){return t===e?void 0:t.slice((e+".").length)}},3350:function(t,e,i){Object.defineProperty(e,"__esModule",{value:!0});var n=i(9832),r=i(4907),s=i(4563),o=i(9362),a=i(8780),l=i(6357);i(1388),i(2265),i(1360),i(3442),e.IntlError=n.IntlError,e.IntlErrorCode=n.IntlErrorCode,e.createFormatter=n.createFormatter,e.createTranslator=r.createTranslator,e._createCache=s.createCache,e._createIntlFormatters=s.createIntlFormatters,e.initializeConfig=s.initializeConfig,e.IntlProvider=o.IntlProvider,e.useFormatter=a.useFormatter,e.useMessages=a.useMessages,e.useNow=a.useNow,e.useTimeZone=a.useTimeZone,e.useTranslations=a.useTranslations,e.useLocale=l.useLocale},4563:function(t,e,i){var n=i(1360);function r(){for(var t=arguments.length,e=Array(t),i=0;i<t;i++)e[i]=arguments[i];return e.filter(Boolean).join(".")}function s(t){return r(t.namespace,t.key)}function o(t){console.error(t)}function a(t,e){return n.memoize(t,{cache:{create:()=>({get:t=>e[t],set(t,i){e[t]=i}})},strategy:n.strategies.variadic})}function l(t,e){return a(function(){for(var e=arguments.length,i=Array(e),n=0;n<e;n++)i[n]=arguments[n];return new t(...i)},e)}e.createCache=function(){return{dateTime:{},number:{},message:{},relativeTime:{},pluralRules:{},list:{},displayNames:{}}},e.createIntlFormatters=function(t){return{getDateTimeFormat:l(Intl.DateTimeFormat,t.dateTime),getNumberFormat:l(Intl.NumberFormat,t.number),getPluralRules:l(Intl.PluralRules,t.pluralRules),getRelativeTimeFormat:l(Intl.RelativeTimeFormat,t.relativeTime),getListFormat:l(Intl.ListFormat,t.list),getDisplayNames:l(Intl.DisplayNames,t.displayNames)}},e.defaultGetMessageFallback=s,e.defaultOnError=o,e.initializeConfig=function(t){let{getMessageFallback:e,messages:i,onError:n,...r}=t;return{...r,messages:i,onError:n||o,getMessageFallback:e||s}},e.joinPath=r,e.memoFn=a},8780:function(t,e,i){Object.defineProperty(e,"__esModule",{value:!0});var n=i(9362),r=i(6357),s=i(2265),o=i(9832);i(4563),i(1360),i(3442),i(1388);let a=!1,l="undefined"==typeof window;e.IntlProvider=n.IntlProvider,e.useLocale=r.useLocale,e.useFormatter=function(){let{formats:t,formatters:e,locale:i,now:n,onError:a,timeZone:l}=r.useIntlContext();return s.useMemo(()=>o.createFormatter({formats:t,locale:i,now:n,onError:a,timeZone:l,_formatters:e}),[t,e,n,i,a,l])},e.useMessages=function(){let t=r.useIntlContext();if(!t.messages)throw Error(void 0);return t.messages},e.useNow=function(t){let e=null==t?void 0:t.updateInterval,{now:i}=r.useIntlContext(),[n,o]=s.useState(i||new Date);return s.useEffect(()=>{if(!e)return;let t=setInterval(()=>{o(new Date)},e);return()=>{clearInterval(t)}},[i,e]),null==e&&i?i:n},e.useTimeZone=function(){return r.useIntlContext().timeZone},e.useTranslations=function(t){return function(t,e,i){let{cache:n,defaultTranslationValues:u,formats:h,formatters:c,getMessageFallback:d,locale:p,onError:f,timeZone:m}=r.useIntlContext(),g=t["!"],y=o.resolveNamespace(e,"!");return m||a||!l||(a=!0,f(new o.IntlError(o.IntlErrorCode.ENVIRONMENT_FALLBACK,void 0))),s.useMemo(()=>o.createBaseTranslator({cache:n,formatters:c,getMessageFallback:d,messages:g,defaultTranslationValues:u,namespace:y,onError:f,formats:h,locale:p,timeZone:m}),[n,c,d,g,u,y,f,h,p,m])}({"!":r.useIntlContext().messages},t?"!.".concat(t):"!",0)}},7586:function(t,e,i){i.d(e,{M:function(){return E}});var n=i(7437),r=i(2265),s=i(8881),o=i(3576),a=i(2014),l=i(4252),u=i(3537),h=i(5750);function c(t,e){if("function"==typeof t)return t(e);null!=t&&(t.current=e)}class d extends r.Component{getSnapshotBeforeUpdate(t){let e=this.props.childRef.current;if((0,u.R)(e)&&t.isPresent&&!this.props.isPresent&&!1!==this.props.pop){let t=e.offsetParent,i=(0,u.R)(t)&&t.offsetWidth||0,n=(0,u.R)(t)&&t.offsetHeight||0,r=getComputedStyle(e),s=this.props.sizeRef.current;s.height=parseFloat(r.height),s.width=parseFloat(r.width),s.top=e.offsetTop,s.left=e.offsetLeft,s.right=i-s.width-s.left,s.bottom=n-s.height-s.top}return null}componentDidUpdate(){}render(){return this.props.children}}function p(t){var e,i;let{children:s,isPresent:o,anchorX:a,anchorY:l,root:u,pop:p}=t,f=(0,r.useId)(),m=(0,r.useRef)(null),g=(0,r.useRef)({width:0,height:0,top:0,left:0,right:0,bottom:0}),{nonce:y}=(0,r.useContext)(h._),v=function(...t){return r.useCallback(function(...t){return e=>{let i=!1,n=t.map(t=>{let n=c(t,e);return i||"function"!=typeof n||(i=!0),n});if(i)return()=>{for(let e=0;e<n.length;e++){let i=n[e];"function"==typeof i?i():c(t[e],null)}}}}(...t),t)}(m,null!==(i=null===(e=s.props)||void 0===e?void 0:e.ref)&&void 0!==i?i:null==s?void 0:s.ref);return(0,r.useInsertionEffect)(()=>{let{width:t,height:e,top:i,left:n,right:r,bottom:s}=g.current;if(o||!1===p||!m.current||!t||!e)return;m.current.dataset.motionPopId=f;let h=document.createElement("style");y&&(h.nonce=y);let c=null!=u?u:document.head;return c.appendChild(h),h.sheet&&h.sheet.insertRule('\n          [data-motion-pop-id="'.concat(f,'"] {\n            position: absolute !important;\n            width: ').concat(t,"px !important;\n            height: ").concat(e,"px !important;\n            ").concat("left"===a?"left: ".concat(n):"right: ".concat(r),"px !important;\n            ").concat("bottom"===l?"bottom: ".concat(s):"top: ".concat(i),"px !important;\n          }\n        ")),()=>{var t;null===(t=m.current)||void 0===t||t.removeAttribute("data-motion-pop-id"),c.contains(h)&&c.removeChild(h)}},[o]),(0,n.jsx)(d,{isPresent:o,childRef:m,sizeRef:g,pop:p,children:!1===p?s:r.cloneElement(s,{ref:v})})}let f=t=>{let{children:e,initial:i,isPresent:s,onExitComplete:a,custom:u,presenceAffectsLayout:h,mode:c,anch
1orX:d,anchorY:f,root:g}=t,y=(0,o.h)(m),v=(0,r.useId)(),E=!0,b=(0,r.useMemo)(()=>(E=!1,{id:v,initial:i,isPresent:s,custom:u,onExitComplete:t=>{for(let e of(y.set(t,!0),y.values()))if(!e)return;a&&a()},register:t=>(y.set(t,!1),()=>y.delete(t))}),[s,y,a]);return h&&E&&(b={...b}),(0,r.useMemo)(()=>{y.forEach((t,e)=>y.set(e,!1))},[s]),r.useEffect(()=>{s||y.size||!a||a()},[s]),e=(0,n.jsx)(p,{pop:"popLayout"===c,isPresent:s,anchorX:d,anchorY:f,root:g,children:e}),(0,n.jsx)(l.O.Provider,{value:b,children:e})};function m(){return new Map}var g=i(9637);let y=t=>t.key||"";function v(t){let e=[];return r.Children.forEach(t,t=>{(0,r.isValidElement)(t)&&e.push(t)}),e}let E=t=>{let{children:e,custom:i,initial:l=!0,onExitComplete:u,presenceAffectsLayout:h=!0,mode:c="sync",propagate:d=!1,anchorX:p="left",anchorY:m="top",root:E}=t,[b,T]=(0,g.oO)(d),S=(0,r.useMemo)(()=>v(e),[e]),w=d&&!b?[]:S.map(y),P=(0,r.useRef)(!0),A=(0,r.useRef)(S),x=(0,o.h)(()=>new Map),M=(0,r.useRef)(new Set),[C,L]=(0,r.useState)(S),[R,B]=(0,r.useState)(S);(0,a.L)(()=>{P.current=!1,A.current=S;for(let t=0;t<R.length;t++){let e=y(R[t]);w.includes(e)?(x.delete(e),M.current.delete(e)):!0!==x.get(e)&&x.set(e,!1)}},[R,w.length,w.join("-")]);let I=[];if(S!==C){let t=[...S];for(let e=0;e<R.length;e++){let i=R[e],n=y(i);w.includes(n)||(t.splice(e,0,i),I.push(i))}return"wait"===c&&I.length&&(t=I),B(v(t)),L(S),null}let{forceRender:_}=(0,r.useContext)(s.p);return(0,n.jsx)(n.Fragment,{children:R.map(t=>{let e=y(t),r=(!d||!!b)&&(S===R||w.includes(e));return(0,n.jsx)(f,{isPresent:r,initial:(!P.current||!!l)&&void 0,custom:i,presenceAffectsLayout:h,mode:c,root:E,onExitComplete:r?void 0:()=>{if(M.current.has(e)||!x.has(e))return;M.current.add(e),x.set(e,!0);let t=!0;x.forEach(e=>{e||(t=!1)}),t&&(null==_||_(),B(A.current),d&&(null==T||T()),u&&u())},anchorX:p,anchorY:m,children:t},e)})})}},9637:function(t,e,i){i.d(e,{oO:function(){return s}});var n=i(2265),r=i(4252);function s(){let t=!(arguments.length>0)||void 0===arguments[0]||arguments[0],e=(0,n.useContext)(r.O);if(null===e)return[!0,null];let{isPresent:i,onExitComplete:s,register:o}=e,a=(0,n.useId)();(0,n.useEffect)(()=>{if(t)return o(a)},[t]);let l=(0,n.useCallback)(()=>t&&s&&s(a),[a,s,t]);return!i&&s?[!1,l]:[!0]}},8881:function(t,e,i){i.d(e,{p:function(){return n}});let n=(0,i(2265).createContext)({})},5750:function(t,e,i){i.d(e,{_:function(){return n}});let n=(0,i(2265).createContext)({transformPagePoint:t=>t,isStatic:!1,reducedMotion:"never"})},4252:function(t,e,i){i.d(e,{O:function(){return n}});let n=(0,i(2265).createContext)(null)},7530:function(t,e,i){let n,r,s;i.d(e,{E:function(){return s2}});let o=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],a=new Set(o),l=(t,e,i)=>i>e?e:i<t?t:i,u={test:t=>"number"==typeof t,parse:parseFloat,transform:t=>t},h={...u,transform:t=>l(0,1,t)},c={...u,default:1},d=t=>Math.round(1e5*t)/1e5,p=/-?(?:\d+(?:\.\d+)?|\.\d+)/gu,f=/^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu,m=(t,e)=>i=>!!("string"==typeof i&&f.test(i)&&i.startsWith(t)||e&&null!=i&&Object.prototype.hasOwnProperty.call(i,e)),g=(t,e,i)=>n=>{if("string"!=typeof n)return n;let[r,s,o,a]=n.match(p);return{[t]:parseFloat(r),[e]:parseFloat(s),[i]:parseFloat(o),alpha:void 0!==a?parseFloat(a):1}},y=t=>l(0,255,t),v={...u,transform:t=>Math.round(y(t))},E={test:m("rgb","red"),parse:g("red","green","blue"),transform:({red:t,green:e,blue:i,alpha:n=1})=>"rgba("+v.transform(t)+", "+v.transform(e)+", "+v.transform(i)+", "+d(h.transform(n))+")"},b={test:m("#"),parse:function(t){let e="",i="",n="",r="";return t.length>5?(e=t.substring(1,3),i=t.substring(3,5),n=t.substring(5,7),r=t.substring(7,9)):(e=t.substring(1,2),i=t.substring(2,3),n=t.substring(3,4),r=t.substring(4,5),e+=e,i+=i,n+=n,r+=r),{red:parseInt(e,16),green:parseInt(i,16),blue:parseInt(n,16),alpha:r?parseInt(r,16)/255:1}},transform:E.transform},T=t=>({test:e=>"string"==typeof e&&e.endsWith(t)&&1===e.split(" ").length,parse:parseFloat,transform:e=>`${e}${t}`}),S=T("deg"),w=T("%"),P=T("px"),A=T("vh"),x=T("vw"),M={...w,parse:t=>w.parse(t)/100,transform:t=>w.transform(100*t)},C={test:m("hsl","hue"),parse:g("hue","saturation","lightness"),transform:({hue:t,saturation:e,lightness:i,alpha:n=1})=>"hsla("+Math.round(t)+", "+w.transform(d(e))+", "+w.transform(d(i))+", "+d(h.transform(n))+")"},L={test:t=>E.test(t)||b.test(t)||C.test(t),parse:t=>E.test(t)?E.parse(t):C.test(t)?C.parse(t):b.parse(t),transform:t=>"string"==typeof t?t:t.hasOwnProperty("red")?E.transform(t):C.transform(t),getAnimatableNone:t=>{let e=L.parse(t);return e.alpha=0,L.transform(e)}},R=/(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu,B="number",I="color",_=/var\s*\(\s*--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)|#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\)|-?(?:\d+(?:\.\d+)?|\.\d+)/giu;function O(t){let e=t.toString(),i=[],n={color:[],number:[],var:[]},r=[],s=0,o=e.replace(_,t=>(L.test(t)?(n.color.push(s),r.push(I),i.push(L.parse(t))):t.startsWith("var(")?(n.var.push(s),r.push("var"),i.push(t)):(n.number.push(s),r.push(B),i.push(parseFloat(t))),++s,"${}")).split("${}");return{values:i,split:o,indexes:n,types:r}}function D({split:t,types:e}){let i=t.length;return n=>{let r="";for(let s=0;s<i;s++)if(r+=t[s],void 0!==n[s]){let t=e[s];t===B?r+=d(n[s]):t===I?r+=L.transform(n[s]):r+=n[s]}return r}}let k=t=>"number"==typeof t?0:L.test(t)?L.getAnimatableNone(t):t,H=(t,e)=>"number"==typeof t?e?.trim().endsWith("/")?t:0:k(t),N={test:function(t){return isNaN(t)&&"string"==typeof t&&(t.match(p)?.length||0)+(t.match(R)?.length||0)>0},parse:function(t){return O(t).values},createTransformer:function(t){return D(O(t))},getAnimatableNone:function(t){let e=O(t);return D(e)(e.values.map((t,i)=>H(t,e.split[i])))}},V=new Set(["brightness","contrast","saturate","opacity"]);function F(t){let[e,i]=t.slice(0,-1).split("(");if("drop-shadow"===e)return t;let[n]=i.match(p)||[];if(!n)return t;let r=i.replace(n,""),s=V.has(e)?1:0;return n!==i&&(s*=100),e+"("+s+r+")"}let j=/\b([a-z-]*)\(.*?\)/gu,U={...N,getAnimatableNone:t=>{let e=t.match(j);return e?e.map(F).join(" "):t}},G={...N,getAnimatableNone:t=>{let e=N.parse(t);return N.createTransformer(t)(e.map(t=>"number"==typeof t?0:"object"==typeof t?{...t,alpha:1}:t))}},z={...u,transform:Math.round},W={borderWidth:P,borderTopWidth:P,borderRightWidth:P,borderBottomWidth:P,borderLeftWidth:P,borderRadius:P,borderTopLeftRadius:P,borderTopRightRadius:P,borderBottomRightRadius:P,borderBottomLeftRadius:P,width:P,maxWidth:P,height:P,maxHeight:P,top:P,right:P,bottom:P,left:P,inset:P,insetBlock:P,insetBlockStart:P,insetBlockEnd:P,insetInline:P,insetInlineStart:P,insetInlineEnd:P,padding:P,paddingTop:P,paddingRight:P,paddingBottom:P,paddingLeft:P,paddingBlock:P,paddingBlockStart:P,paddingBlockEnd:P,paddingInline:P,paddingInlineStart:P,paddingInlineEnd:P,margin:P,marginTop:P,marginRight:P,marginBottom:P,marginLeft:P,marginBlock:P,marginBlockStart:P,marginBlockEnd:P,marginInline:P,marginInlineStart:P,marginInlineEnd:P,fontSize:P,backgroundPositionX:P,backgroundPositionY:P,rotate:S,rotateX:S,rotateY:S,rotateZ:S,scale:c,scaleX:c,scaleY:c,scaleZ:c,skew:S,skewX:S,skewY:S,distance:P,translateX:P,translateY:P,translateZ:P,x:P,y:P,z:P,perspective:P,transformPerspective:P,opacity:h,originX:M,originY:M,originZ:P,zIndex:z,fillOpacity:h,strokeOpacity:h,numOctaves:z},X={...W,color:L,backgroundColor:L,outlineColor:L,fill:L,stroke:L,borderColor:L,borderTopColor:L,borderRightColor:L,borderBottomColor:L,borderLeftColor:L,filter:U,WebkitFilter:U,mask:G,WebkitMask:G},Y=t=>X[t],K=()=>({translate:0,scale:1,origin:0,originPoint:0}),Z=()=>({x:K(),y:K()}),$=()=>({min:0,max:0}),q=()=>({x:$(),y:$()}),J=t=>!!(t&&t.getVelocity),Q=new Set(["width","height","top","left","right","bottom",...o]),tt=t=>e=>e.test(t),te=[u,P,w,S,x,A,{test:t=>"auto"===t,parse:t=>t}],ti=t=>te.find(tt(t));i(257);let tn=()=>{},tr=()=>{},ts=t=>/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(t),to=t=>e=>"string"==typeof e&&e.startsWith(t),ta=to("--"),tl=to("var(--"),tu=t=>!!tl(t)&&th.test(t.split("/*")[0].trim()),th=/var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu;function tc(t){return"string"==typeof t&&t.split("/*")[0].includes("var(--")}let td=/^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u,tp=t=>180*t/Math.PI,tf=t=>tg(tp(Math.atan2(t[1],t[0]))),tm={x:4,y:5,translateX:4,translateY:5,scaleX:0,scaleY:3,scale:t=>(Math.abs(t[0])+Math.abs(t[3]))/2,rotate:tf,rotateZ:tf,skewX:t=>tp(Math.atan(t[1])),skewY:t=>tp(Math.atan(t[2])),skew:t=>(Math.abs(t[1])+Math.abs(t[2]))/2},tg=t=>((t%=360)<0&&(t+=360),t),ty=t=>Math.sqrt(t[0]*t[0]+t[1]*t[1]),tv=t=>Math.sqrt(t[4]*t[4]+t[5]*t[5]),tE={x:12,y:13,z:14,translateX:12,translateY:13,translateZ:14,scaleX:ty,scaleY:tv,scale:t=>(ty(t)+tv(t))/2,rotateX:t=>tg(tp(Math.atan2(t[6],t[5]))),rotateY:t=>tg(tp(Math.atan2(-t[2],t[0]))),rotateZ:tf,rotate:tf,skewX:t=>tp(Math.atan(t[4])),skewY:t=>tp(Math.atan(t[1])),skew:t=>(Math.abs(t[1])+Math.abs(t[4]))/2};function tb(t){return t.includes("scale")?1:0}function tT(t,e){let i,n;if(!t||"none"===t)return tb(e);let r=t.match(/^matrix3d\(([-\d.e\s,]+)\)$/u);if(r)i=tE,n=r;else{let e=t.match(/^matrix\(([-\d.e\s,]+)\)$/u);i=tm,n=e}if(!n)return tb(e);let s=i[e],o=n[1].split(",").map(tw);return"function"==typeof s?s(o):o[s]}let tS=(t,e)=>{let{transform:i="none"}=getComputedStyle(t);return tT(i,e)};function tw(t){return parseFloat(t.trim())}let tP=t=>t===u||t===P,tA=new Set(["x","y","z"]),tx=o.filter(t=>!tA.has(t)),tM={width:({x:t},{paddingLeft:e="0",paddingRight:i="0",boxSizing:n})=>{let r=t.max-t.min;return"border-box"===n?r:r-parseFloat(e)-parseFloat(i)},height:({y:t},{paddingTop:e="0",paddingBottom:i="0",boxSizing:n})=>{let r=t.max-t.min;return"border-box"===n?r:r-parseFloat(e)-parseFloat(i)},top:(t,{top:e})=>parseFloat(e),left:(t,{left:e})=>parseFloat(e),bottom:({y:t},{top:e})=>parseFloat(e)+(t.max-t.min),right:({x:t},{left:e})=>parseFloat(e)+(t.max-t.min),x:(t,{transform:e})=>tT(e,"x"),y:(t,{transform:e})=>tT(e,"y")};tM.translateX=tM.x,tM.translateY=tM.y;let tC=t=>t,tL={},tR=["setup","read","resolveKeyframes","preUpdate","update","preRender","render","postRender"],tB={value:null,addProjectionMetrics:null};function tI(t,e){let i=!1,n=!0,r={delta:0,timestamp:0,isProcessing:!1},s=()=>i=!0,o=tR.reduce((t,i)=>(t[i]=function(t,e){let i=new Set,n=new Set,r=!1,s=!1,o=new WeakSet,a={delta:0,timestamp:0,isProcessing:!1},l=0;function u(e){o.has(e)&&(h.schedule(e),t()),l++,e(a)}let h={schedule:(t,e=!1,s=!1)=>{let a=s&&r?i:n;return e&&o.add(t),a.add(t),t},cancel:t=>{n.delete(t),o.delete(t)},process:t=>{if(a=t,r){s=!0;return}r=!0;let o=i;
1i=n,n=o,i.forEach(u),e&&tB.value&&tB.value.frameloop[e].push(l),l=0,i.clear(),r=!1,s&&(s=!1,h.process(t))}};return h}(s,e?i:void 0),t),{}),{setup:a,read:l,resolveKeyframes:u,preUpdate:h,update:c,preRender:d,render:p,postRender:f}=o,m=()=>{let s=tL.useManualTiming,o=s?r.timestamp:performance.now();i=!1,s||(r.delta=n?1e3/60:Math.max(Math.min(o-r.timestamp,40),1)),r.timestamp=o,r.isProcessing=!0,a.process(r),l.process(r),u.process(r),h.process(r),c.process(r),d.process(r),p.process(r),f.process(r),r.isProcessing=!1,i&&e&&(n=!1,t(m))},g=()=>{i=!0,n=!0,r.isProcessing||t(m)};return{schedule:tR.reduce((t,e)=>{let n=o[e];return t[e]=(t,e=!1,r=!1)=>(i||g(),n.schedule(t,e,r)),t},{}),cancel:t=>{for(let e=0;e<tR.length;e++)o[tR[e]].cancel(t)},state:r,steps:o}}let{schedule:t_,cancel:tO,state:tD,steps:tk}=tI("undefined"!=typeof requestAnimationFrame?requestAnimationFrame:tC,!0),tH=new Set,tN=!1,tV=!1,tF=!1;function tj(){if(tV){let t=Array.from(tH).filter(t=>t.needsMeasurement),e=new Set(t.map(t=>t.element)),i=new Map;e.forEach(t=>{let e=function(t){let e=[];return tx.forEach(i=>{let n=t.getValue(i);void 0!==n&&(e.push([i,n.get()]),n.set(i.startsWith("scale")?1:0))}),e}(t);e.length&&(i.set(t,e),t.render())}),t.forEach(t=>t.measureInitialState()),e.forEach(t=>{t.render();let e=i.get(t);e&&e.forEach(([e,i])=>{t.getValue(e)?.set(i)})}),t.forEach(t=>t.measureEndState()),t.forEach(t=>{void 0!==t.suspendedScrollY&&window.scrollTo(0,t.suspendedScrollY)})}tV=!1,tN=!1,tH.forEach(t=>t.complete(tF)),tH.clear()}function tU(){tH.forEach(t=>{t.readKeyframes(),t.needsMeasurement&&(tV=!0)})}class tG{constructor(t,e,i,n,r,s=!1){this.state="pending",this.isAsync=!1,this.needsMeasurement=!1,this.unresolvedKeyframes=[...t],this.onComplete=e,this.name=i,this.motionValue=n,this.element=r,this.isAsync=s}scheduleResolve(){this.state="scheduled",this.isAsync?(tH.add(this),tN||(tN=!0,t_.read(tU),t_.resolveKeyframes(tj))):(this.readKeyframes(),this.complete())}readKeyframes(){let{unresolvedKeyframes:t,name:e,element:i,motionValue:n}=this;if(null===t[0]){let r=n?.get(),s=t[t.length-1];if(void 0!==r)t[0]=r;else if(i&&e){let n=i.readValue(e,s);null!=n&&(t[0]=n)}void 0===t[0]&&(t[0]=s),n&&void 0===r&&n.set(t[0])}!function(t){for(let e=1;e<t.length;e++)t[e]??(t[e]=t[e-1])}(t)}setFinalKeyframe(){}measureInitialState(){}renderEndStyles(){}measureEndState(){}complete(t=!1){this.state="complete",this.onComplete(this.unresolvedKeyframes,this.finalKeyframe,t),tH.delete(this)}cancel(){"scheduled"===this.state&&(tH.delete(this),this.state="pending")}resume(){"pending"===this.state&&this.scheduleResolve()}}let tz=t=>/^0[^.\s]+$/u.test(t),tW=new Set([U,G]);function tX(t,e){let i=Y(t);return tW.has(i)||(i=N),i.getAnimatableNone?i.getAnimatableNone(e):void 0}let tY=new Set(["auto","none","0"]);class tK extends tG{constructor(t,e,i,n,r){super(t,e,i,n,r,!0)}readKeyframes(){let{unresolvedKeyframes:t,element:e,name:i}=this;if(!e||!e.current)return;super.readKeyframes();for(let i=0;i<t.length;i++){let n=t[i];if("string"==typeof n&&tu(n=n.trim())){let r=function t(e,i,n=1){tr(n<=4,`Max CSS variable fallback depth detected in property "${e}". This may indicate a circular fallback dependency.`,"max-css-var-depth");let[r,s]=function(t){let e=td.exec(t);if(!e)return[,];let[,i,n,r]=e;return[`--${i??n}`,r]}(e);if(!r)return;let o=window.getComputedStyle(i).getPropertyValue(r);if(o){let t=o.trim();return ts(t)?parseFloat(t):t}return tu(s)?t(s,i,n+1):s}(n,e.current);void 0!==r&&(t[i]=r),i===t.length-1&&(this.finalKeyframe=n)}}if(this.resolveNoneKeyframes(),!Q.has(i)||2!==t.length)return;let[n,r]=t,s=ti(n),o=ti(r);if(tc(n)!==tc(r)&&tM[i]){this.needsMeasurement=!0;return}if(s!==o){if(tP(s)&&tP(o))for(let e=0;e<t.length;e++){let i=t[e];"string"==typeof i&&(t[e]=parseFloat(i))}else tM[i]&&(this.needsMeasurement=!0)}}resolveNoneKeyframes(){let{unresolvedKeyframes:t,name:e}=this,i=[];for(let e=0;e<t.length;e++){var n;(null===t[e]||("number"==typeof(n=t[e])?0===n:null===n||"none"===n||"0"===n||tz(n)))&&i.push(e)}i.length&&function(t,e,i){let n,r=0;for(;r<t.length&&!n;){let e=t[r];"string"==typeof e&&!tY.has(e)&&O(e).values.length&&(n=t[r]),r++}if(n&&i)for(let r of e)t[r]=tX(i,n)}(t,i,e)}measureInitialState(){let{element:t,unresolvedKeyframes:e,name:i}=this;if(!t||!t.current)return;"height"===i&&(this.suspendedScrollY=window.pageYOffset),this.measuredOrigin=tM[i](t.measureViewportBox(),window.getComputedStyle(t.current)),e[0]=this.measuredOrigin;let n=e[e.length-1];void 0!==n&&t.getValue(i,n).jump(n,!1)}measureEndState(){let{element:t,name:e,unresolvedKeyframes:i}=this;if(!t||!t.current)return;let n=t.getValue(e);n&&n.jump(this.measuredOrigin,!1);let r=i.length-1,s=i[r];i[r]=tM[e](t.measureViewportBox(),window.getComputedStyle(t.current)),null!==s&&void 0===this.finalKeyframe&&(this.finalKeyframe=s),this.removedTransforms?.length&&this.removedTransforms.forEac
1h(([e,i])=>{t.getValue(e).set(i)}),this.resolveNoneKeyframes()}}let tZ=t=>1e3*t,t$=t=>t/1e3;function tq(t,e){-1===t.indexOf(e)&&t.push(e)}function tJ(t,e){let i=t.indexOf(e);i>-1&&t.splice(i,1)}class tQ{constructor(){this.subscriptions=[]}add(t){return tq(this.subscriptions,t),()=>tJ(this.subscriptions,t)}notify(t,e,i){let n=this.subscriptions.length;if(n){if(1===n)this.subscriptions[0](t,e,i);else for(let r=0;r<n;r++){let n=this.subscriptions[r];n&&n(t,e,i)}}}getSize(){return this.subscriptions.length}clear(){this.subscriptions.length=0}}let t0=t=>t.startsWith("--");function t1(t,e,i){t0(e)?t.style.setProperty(e,i):t.style[e]=i}function t2(t){let e;return()=>(void 0===e&&(e=t()),e)}let t3={};function t5(t,e){let i=t2(t);return()=>t3[e]??i()}let t6=t5(()=>void 0!==window.ScrollTimeline,"scrollTimeline"),t8=t=>null!==t;function t9(t,{repeat:e,repeatType:i="loop"},n,r=1){let s=t.filter(t8),o=r<0||e&&"loop"!==i&&e%2==1?0:s.length-1;return o&&void 0!==n?n:s[o]}class t4{constructor(){this.updateFinished()}get finished(){return this._finished}updateFinished(){this._finished=new Promise(t=>{this.resolve=t})}notifyFinished(){this.resolve()}then(t,e){return this.finished.then(t,e)}}let t7={layout:0,mainThread:0,waapi:0},et=t=>Array.isArray(t)&&"number"==typeof t[0],ee=t5(()=>{try{document.createElement("div").animate({opacity:0}
1,{easing:"linear(0, 1)"})}catch(t){return!1}return!0},"linearEasing"),ei=(t,e,i=10)=>{let n="",r=Math.max(Math.round(e/i),2);for(let e=0;e<r;e++)n+=Math.round(1e4*t(e/(r-1)))/1e4+", ";return`linear(${n.substring(0,n.length-2)})`},en=([t,e,i,n])=>`cubic-bezier(${t}, ${e}, ${i}, ${n})`,er={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:en([0,.65,.55,1]),circOut:en([.55,0,1,.45]),backIn:en([.31,.01,.66,-.59]),backOut:en([.33,1.53,.69,.99])};function es(t){return"function"==typeof t&&"applyToOptions"in t}class eo extends t4{constructor(t){if(super(),this.finishedTime=null,this.isStopped=!1,this.manualStartTime=null,!t)return;let{element:e,name:i,keyframes:n,pseudoElement:r,allowFlatten:s=!1,finalKeyframe:o,onComplete:a}=t;this.isPseudoElement=!!r,this.allowFlatten=s,this.options=t,tr("string"!=typeof t.type,'Mini animate() doesn\'t support "type" as a string.',"mini-spring");let l=function({type:t,...e}){return es(t)&&ee()?t.applyToOptions(e):(e.duration??(e.duration=300),e.ease??(e.ease="easeOut"),e)}(t);this.animation=function(t,e,i,{delay:n=0,duration:r=300,repeat:s=0,repeatType:o="loop",ease:a="easeOut",times:l}={},u){let h={[e]:i};l&&(h.offset=l);let c=function t(e,i){if(e)return"function"==typeof e?ee()?ei(e,i):"ease-out":et(e)?en(e):Array.isArray(e)?e.map(e=>t(e,i)||er.easeOut):er[e]}(a,r);Array.isArray(c)&&(h.easing=c),tB.value&&t7.waapi++;let d={delay:n,duration:r,easing:Array.isArray(c)?"linear":c,fill:"both",iterations:s+1,direction:"reverse"===o?"alternate":"normal"};u&&(d.pseudoElement=u);let p=t.animate(h,d);return tB.value&&p.finished.finally(()=>{t7.waapi--}),p}(e,i,n,l,r),!1===l.autoplay&&this.animation.pause(),this.animation.onfinish=()=>{if(this.finishedTime=this.time,!r){let t=t9(n,this.options,o,this.speed);this.updateMotionValue&&this.updateMotionValue(t),t1(e,i,t),this.animation.cancel()}a?.(),this.notifyFinished()}}play(){this.isStopped||(this.manualStartTime=null,this.animation.play(),"finished"===this.state&&this.updateFinished())}pause(){this.animation.pause()}complete(){this.animation.finish?.()}cancel(){try{this.animation.cancel()}catch(t){}}stop(){if(this.isStopped)return;this.isStopped=!0;let{state:t}=this;"idle"!==t&&"finished"!==t&&(this.updateMotionValue?this.updateMotionValue():this.commitStyles(),this.isPseudoElement||this.cancel())}commitStyles(){let t=this.options?.element;!this.isPseudoElement&&t?.isConnected&&this.animation.commitStyles?.()}get duration(){return t$(Number(this.animation.effect?.getComputedTiming?.().duration||0))}get iterationDuration(){let{delay:t=0}=this.options||{};return this.duration+t$(t)}get time(){return t$(Number(this.animation.currentTime)||0)}set time(t){let e=null!==this.finishedTime;this.manualStartTime=null,this.finishedTime=null,this.animation.currentTime=tZ(t),e&&this.animation.pause()}get speed(){return this.animation.playbackRate}set speed(t){t<0&&(this.finishedTime=null),this.animation.playbackRate=t}get state(){return null!==this.finishedTime?"finished":this.animation.playState}get startTime(){return this.manualStartTime??Number(this.animation.startTime)}set startTime(t){this.manualStartTime=this.animation.startTime=t}attachTimeline({timeline:t,rangeStart:e,rangeEnd:i,observe:n}){return(this.allowFlatten&&this.animation.effect?.updateTiming({easing:"linear"}),this.animation.onfinish=null,t&&t6())?(this.animation.timeline=t,e&&(this.animation.rangeStart=e),i&&(this.animation.rangeEnd=i),tC):n(this)}}let ea=new Set(["opacity","clipPath","filter","transform"]),{schedule:el,cancel:eu}=tI(queueMicrotask,!1);function eh(){n=void 0}let ec={now:()=>(void 0===n&&ec.set(tD.isProcessing||tL.useManualTiming?tD.timestamp:performance.now()),n),set:t=>{n=t,queueMicrotask(eh)}},ed=t=>!isNaN(parseFloat(t)),ep={current:void 0};class ef{constructor(t,e={}){this.canTrackVelocity=null,this.events={},this.updateAndNotify=t=>{let e=ec.now();if(this.updatedAt!==e&&this.setPrevFrameValue(),this.prev=this.current,this.setCurrent(t),this.current!==this.prev&&(this.events.change?.notify(this.current),this.dependents))for(let t of this.dependents)t.dirty()},this.hasAnimated=!1,this.setCurrent(t),this.owner=e.owner}setCurrent(t){this.current=t,this.updatedAt=ec.now(),null===this.canTrackVelocity&&void 0!==t&&(this.canTrackVelocity=ed(this.current))}setPrevFrameValue(t=this.current){this.prevFrameValue=t,this.prevUpdatedAt=this.updatedAt}onChange(t){return this.on("change",t)}on(t,e){this.events[t]||(this.events[t]=new tQ);let i=this.events[t].add(e);return"change"===t?()=>{i(),t_.read(()=>{this.events.change.getSize()||this.stop()})}:i}clearListeners(){for(let t in this.events)this.events[t].clear()}attach(t,e){this.passiveEffect=t,this.stopPassiveEffect=e}set(t){this.passiveEffect?this.passiveEffect(t,this.updateAndNotify):this.updateAndNotify(t)}setWithVelocity(t,e,i){this.set(e),this.prev=void 0,this.prevFrameValue=t,this.prevUpdatedAt=this.updatedAt-i}jump(t,e=!0){this.updateAndNotify(t),this.prev=t,this.prevUpdatedAt=this.prevFrameValue=void 0,e&&this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}dirty(){this.events.change?.notify(this.current)}addDependent(t){this.dependents||(this.dependents=new Set),this.dependents.add(t)}removeDependent(t){this.dependents&&this.dependents.delete(t)}get(){return ep.current&&ep.current.push(this),this.current}getPrevious(){return this.prev}getVelocity(){var t;let e=ec.now();if(!this.canTrackVelocity||void 0===this.prevFrameValue||e-this.updatedAt>30)return 0;let i=Math.min(this.updatedAt-this.prevUpdatedAt,30);return t=parseFloat(this.current)-parseFloat(this.prevFrameValue),i?1e3/i*t:0}start(t){return this.stop(),new Promise(e=>{this.hasAnimated=!0,this.animation=t(e),this.events.animationStart&&this.events.animationStart.notify()}).then(()=>{this.events.animationComplete&&this.events.animationComplete.notify(),this.clearAnimation()})}stop(){this.animation&&(this.animation.stop(),this.events.animationCancel&&this.events.animationCancel.notify()),this.clearAnimation()}isAnimating(){return!!this.animation}clearAnimation(){delete this.animation}destroy(){this.dependents?.clear(),this.events.destroy?.notify(),this.clearListeners(),this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}}function em(t,e){return new ef(t,e)}let eg=[...te,L,N],ey=t=>eg.find(tt(t)),ev=new WeakMap;function eE(t){return null!==t&&"object"==typeof t&&"function"==typeof t.start}function eb(t){return"string"==typeof t||Array.isArray(t)}let eT=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],eS=["initial",...eT];function ew(t){return eE(t.animate)||eS.some(e=>eb(t[e]))}function eP(t){return!!(ew(t)||t.variants)}let eA={current:null},ex={current:!1},eM="undefined"!=typeof window;function eC(t){let e=[{},{}];
1return t?.values.forEach((t,i)=>{e[0][i]=t.get(),e[1][i]=t.getVelocity()}),e}function eL(t,e,i,n){if("function"==typeof e){let[r,s]=eC(n);e=e(void 0!==i?i:t.custom,r,s)}if("string"==typeof e&&(e=t.variants&&t.variants[e]),"function"==typeof e){let[r,s]=eC(n);e=e(void 0!==i?i:t.custom,r,s)}return e}let eR=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"],eB={};class eI{scrapeMotionValuesFromProps(t,e,i){return{}}constructor({parent:t,props:e,presenceContext:i,reducedMotionConfig:n,skipAnimations:r,blockInitialAnimation:s,visualState:o},a={}){this.current=null,this.children=new Set,this.isVariantNode=!1,this.isControllingVariants=!1,this.shouldReduceMotion=null,this.shouldSkipAnimations=!1,this.values=new Map,this.KeyframeResolver=tG,this.features={},this.valueSubscriptions=new Map,this.prevMotionValues={},this.hasBeenMounted=!1,this.events={},this.propEventSubscriptions={},this.notifyUpdate=()=>this.notify("Update",this.latestValues),this.render=()=>{this.current&&(this.triggerBuild(),this.renderInstance(this.current,this.renderState,this.props.style,this.projection))},this.renderScheduledAt=0,this.scheduleRender=()=>{let t=ec.now();this.renderScheduledAt<t&&(this.renderScheduledAt=t,t_.render(this.render,!1,!0))};let{latestValues:l,renderState:u}=o;this.latestValues=l,this.baseTarget={...l},this.initialValues=e.initial?{...l}:{},this.renderState=u,this.parent=t,this.props=e,this.presenceContext=i,this.depth=t?t.depth+1:0,this.reducedMotionConfig=n,this.skipAnimationsConfig=r,this.options=a,this.blockInitialAnimation=!!s,this.isControllingVariants=ew(e),this.isVariantNode=eP(e),this.isVariantNode&&(this.variantChildren=new Set),this.manuallyAnimateOnMount=!!(t&&t.current);let{willChange:h,...c}=this.scrapeMotionValuesFromProps(e,{},this);for(let t in c){let e=c[t];void 0!==l[t]&&J(e)&&e.set(l[t])}}mount(t){if(this.hasBeenMounted)for(let t in this.initialValues)this.values.get(t)?.jump(this.initialValues[t]),this.latestValues[t]=this.initialValues[t];this.current=t,ev.set(t,this),this.projection&&!this.projection.instance&&this.projection.mount(t),this.parent&&this.isVariantNode&&!this.isControllingVariants&&(this.removeFromVariantTree=this.parent.addVariantChild(this)),this.values.forEach((t,e)=>this.bindToMotionValue(e,t)),"never"===this.reducedMotionConfig?this.shouldReduceMotion=!1:"always"===this.reducedMotionConfig?this.shouldReduceMotion=!0:(ex.current||function(){if(ex.current=!0,eM){if(window.matchMedia){let t=window.matchMedia("(prefers-reduced-motion)"),e=()=>eA.current=t.matches;t.addEventListener("change",e),e()}else eA.current=!1}}(),this.shouldReduceMotion=eA.current),this.shouldSkipAnimations=this.skipAnimationsConfig??!1,this.parent?.addChild(this),this.update(this.props,this.presenceContext),this.hasBeenMounted=!0}unmount(){for(let t in this.projection&&this.projection.unmount(),tO(this.notifyUpdate),tO(this.render),this.valueSubscriptions.forEach(t=>t()),this.valueSubscriptions.clear(),this.removeFromVariantTree&&this.removeFromVariantTree(),this.parent?.removeChild(this),this.events)this.events[t].clear();for(let t in this.features){let e=this.features[t];e&&(e.unmount(),e.isMounted=!1)}this.current=null}addChild(t){this.children.add(t),this.enteringChildren??(this.enteringChildren=new Set),this.enteringChildren.add(t)}removeChild(t){this.children.delete(t),this.enteringChildren&&this.enteringChildren.delete(t)}bindToMotionValue(t,e){let i;if(this.valueSubscriptions.has(t)&&this.valueSubscriptions.get(t)(),e.accelerate&&ea.has(t)&&this.current instanceof HTMLElement){let{factory:i,keyframes:n,times:r,ease:s,duration:o}=e.accelerate,a=new eo({element:this.current,name:t,keyframes:n,times:r,ease:s,duration:tZ(o)}),l=i(a);this.valueSubscriptions.set(t,()=>{l(),a.cancel()});return}let n=a.has(t);n&&this.onBindTransform&&this.onBindTransform();let r=e.on("change",e=>{this.latestValues[t]=e,this.props.onUpdate&&t_.preRender(this.notifyUpdate),n&&this.projection&&(this.projection.isTransformDirty=!0),this.scheduleRender()});"undefined"!=typeof window&&window.MotionCheckAppearSync&&(i=window.MotionCheckAppearSync(this,t,e)),this.valueSubscriptions.set(t,()=>{r(),i&&i(),e.owner&&e.stop()})}sortNodePosition(t){return this.current&&this.sortInstanceNodePosition&&this.type===t.type?this.sortInstanceNodePosition(this.current,t.current):0}updateFeatures(){let t="animation";for(t in eB){let e=eB[t];if(!e)continue;let{isEnabled:i,Feature:n}=e;if(!this.features[t]&&n&&i(this.props)&&(this.features[t]=new n(this)),this.features[t]){let e=this.features[t];
1e.isMounted?e.update():(e.mount(),e.isMounted=!0)}}}triggerBuild(){this.build(this.renderState,this.latestValues,this.props)}measureViewportBox(){return this.current?this.measureInstanceViewportBox(this.current,this.props):q()}getStaticValue(t){return this.latestValues[t]}setStaticValue(t,e){this.latestValues[t]=e}update(t,e){(t.transformTemplate||this.props.transformTemplate)&&this.scheduleRender(),this.prevProps=this.props,this.props=t,this.prevPresenceContext=this.presenceContext,this.presenceContext=e;for(let e=0;e<eR.length;e++){let i=eR[e];this.propEventSubscriptions[i]&&(this.propEventSubscriptions[i](),delete this.propEventSubscriptions[i]);let n=t["on"+i];n&&(this.propEventSubscriptions[i]=this.on(i,n))}this.prevMotionValues=function(t,e,i){for(let n in e){let r=e[n],s=i[n];if(J(r))t.addValue(n,r);else if(J(s))t.addValue(n,em(r,{owner:t}));else if(s!==r){if(t.hasValue(n)){let e=t.getValue(n);!0===e.liveStyle?e.jump(r):e.hasAnimated||e.set(r)}else{let e=t.getStaticValue(n);t.addValue(n,em(void 0!==e?e:r,{owner:t}))}}}for(let n in i)void 0===e[n]&&t.removeValue(n);return e}(this,this.scrapeMotionValuesFromProps(t,this.prevProps||{},this),this.prevMotionValues),this.handleChildMotionValue&&this.handleChildMotionValue()}getProps(){return this.props}getVariant(t){return this.props.variants?this.props.variants[t]:void 0}getDefaultTransition(){return this.props.transition}getTransformPagePoint(){return this.props.transformPagePoint}getClosestVariantNode(){return this.isVariantNode?this:this.parent?this.parent.getClosestVariantNode():void 0}addVariantChild(t){let e=this.getClosestVariantNode();if(e)return e.variantChildren&&e.variantChildren.add(t),()=>e.variantChildren.delete(t)}addValue(t,e){let i=this.values.get(t);e!==i&&(i&&this.removeValue(t),this.bindToMotionValue(t,e),this.values.set(t,e),this.latestValues[t]=e.get())}removeValue(t){this.values.delete(t);let e=this.valueSubscriptions.get(t);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 i=this.values.get(t);return void 0===i&&void 0!==e&&(i=em(null===e?void 0:e,{owner:this}),this.addValue(t,i)),i}readValue(t,e){let i=void 0===this.latestValues[t]&&this.current?this.getBaseTargetFromProps(this.props,t)??this.readValueFromInstance(this.current,t,this.options):this.latestValues[t];return null!=i&&("string"==typeof i&&(ts(i)||tz(i))?i=parseFloat(i):!ey(i)&&N.test(e)&&(i=tX(t,e)),this.setBaseTarget(t,J(i)?i.get():i)),J(i)?i.get():i}setBaseTarget(t,e){this.baseTarget[t]=e}getBaseTarget(t){let e;let{initial:i}=this.props;if("string"==typeof i||"object"==typeof i){let n=eL(this.props,i,this.presenceContext?.custom);n&&(e=n[t])}if(i&&void 0!==e)return e;let n=this.getBaseTargetFromProps(this.props,t);return void 0===n||J(n)?void 0!==this.initialValues[t]&&void 0===e?void 0:this.baseTarget[t]:n}on(t,e){return this.events[t]||(this.events[t]=new tQ),this.events[t].add(e)}notify(t,...e){this.events[t]&&this.events[t].notify(...e)}scheduleRenderMicrotask(){el.render(this.render)}}class e_ extends eI{constructor(){super(...arguments),this.KeyframeResolver=tK}sortInstanceNodePosition(t,e){return 2&t.compareDocumentPosition(e)?1:-1}getBaseTargetFromProps(t,e){let i=t.style;return i?i[e]:void 0}removeValueFromRenderState(t,{vars:e,style:i}){delete e[t],delete i[t]}handleChildMotionValue(){this.childSubscription&&(this.childSubscription(),delete this.childSubscription);let{children:t}=this.props;J(t)&&(this.childSubscription=t.on("change",t=>{this.current&&(this.current.textContent=`${t}`)}))}}function eO(t){return t.replace(/([A-Z])/g,t=>`-${t.toLowerCase()}`)}let eD=(t,e)=>e&&"number"==typeof t?e.transform(t):t,ek={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},eH=o.length;function eN(t,e,i){let{style:n,vars:r,transformOrigin:s}=t,l=!1,u=!1;for(let t in e){let i=e[t];if(a.has(t)){l=!0;continue}if(ta(t)){r[t]=i;continue}{let e=eD(i,W[t]);t.startsWith("origin")?(u=!0,s[t]=e):n[t]=e}}
1if(!e.transform&&(l||i?n.transform=function(t,e,i){let n="",r=!0;for(let s=0;s<eH;s++){let a=o[s],l=t[a];if(void 0===l)continue;let u=!0;if("number"==typeof l)u=l===(a.startsWith("scale")?1:0);else{let t=parseFloat(l);u=a.startsWith("scale")?1===t:0===t}if(!u||i){let t=eD(l,W[a]);if(!u){r=!1;let e=ek[a]||a;n+=`${e}(${t}) `}i&&(e[a]=t)}}return n=n.trim(),i?n=i(e,r?"":n):r&&(n="none"),n}(e,t.transform,i):n.transform&&(n.transform="none")),u){let{originX:t="50%",originY:e="50%",originZ:i=0}=s;n.transformOrigin=`${t} ${e} ${i}`}}let eV={offset:"stroke-dashoffset",array:"stroke-dasharray"},eF={offset:"strokeDashoffset",array:"strokeDasharray"},ej=["offsetDistance","offsetPath","offsetRotate","offsetAnchor"];function eU(t,{attrX:e,attrY:i,attrScale:n,pathLength:r,pathSpacing:s=1,pathOffset:o=0,...a},l,u,h){if(eN(t,a,u),l){t.style.viewBox&&(t.attrs.viewBox=t.style.viewBox);return}t.attrs=t.style,t.style={};let{attrs:c,style:d}=t;for(let t of(c.transform&&(d.transform=c.transform,delete c.transform),(d.transform||c.transformOrigin)&&(d.transformOrigin=c.transformOrigin??"50% 50%",delete c.transformOrigin),d.transform&&(d.transformBox=h?.transformBox??"fill-box",delete c.transformBox),ej))void 0!==c[t]&&(d[t]=c[t],delete c[t]);void 0!==e&&(c.x=e),void 0!==i&&(c.y=i),void 0!==n&&(c.scale=n),void 0!==r&&function(t,e,i=1,n=0,r=!0){t.pathLength=1;let s=r?eV:eF;t[s.offset]=`${-n}`,t[s.array]=`${e} ${i}`}(c,r,s,o,!1)}let eG=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"]),ez=t=>"string"==typeof t&&"svg"===t.toLowerCase();function eW(t,{style:e,vars:i},n,r){let s;let o=t.style;for(s in e)o[s]=e[s];for(s in r?.applyProjectionStyles(o,n),i)o.setProperty(s,i[s])}function eX(t,e){return e.max===e.min?0:t/(e.max-e.min)*100}let eY={correct:(t,e)=>{if(!e.target)return t;if("string"==typeof t){if(!P.test(t))return t;t=parseFloat(t)}let i=eX(t,e.target.x),n=eX(t,e.target.y);return`${i}% ${n}%`}},eK=(t,e,i)=>t+(e-t)*i,eZ={borderRadius:{...eY,applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]},borderTopLeftRadius:eY,borderTopRightRadius:eY,borderBottomLeftRadius:eY,borderBottomRightRadius:eY,boxShadow:{correct:(t,{treeScale:e,projectionDelta:i})=>{let n=N.parse(t);if(n.length>5)return t;let r=N.createTransformer(t),s="number"!=typeof n[0]?1:0,o=i.x.scale*e.x,a=i.y.scale*e.y;n[0+s]/=o,n[1+s]/=a;let l=eK(o,a,.5);return"number"==typeof n[2+s]&&(n[2+s]/=l),"number"==typeof n[3+s]&&(n[3+s]/=l),r(n)}}};function e$(t,{layout:e,layoutId:i}){return a.has(t)||t.startsWith("origin")||(e||void 0!==i)&&(!!eZ[t]||"opacity"===t)}function eq(t,e,i){let n=t.style,r=e?.style,s={};if(!n)return s;for(let e in n)(J(n[e])||r&&J(r[e])||e$(e,t)||i?.getValue(e)?.liveStyle!==void 0)&&(s[e]=n[e]);return s}function eJ(t,e,i){let n=eq(t,e,i);for(let i in t)(J(t[i])||J(e[i]))&&(n[-1!==o.indexOf(i)?"attr"+i.charAt(0).toUpperCase()+i.substring(1):i]=t[i]);return n}class eQ extends e_{constructor(){super(...arguments),this.type="svg",this.isSVGTag=!1,this.measureInstanceViewportBox=q}getBaseTargetFromProps(t,e){return t[e]}readValueFromInstance(t,e){if(a.has(e)){let t=Y(e);return t&&t.default||0}return e=eG.has(e)?e:eO(e),t.getAttribute(e)}scrapeMotionValuesFromProps(t,e,i){return eJ(t,e,i)}build(t,e,i){eU(t,e,this.isSVGTag,i.transformTemplate,i.style)}renderInstance(t,e,i,n){!function(t,e,i,n){for(let i in eW(t,e,void 0,n),e.attrs)t.setAttribute(eG.has(i)?i:eO(i),e.attrs[i])}(t,e,0,n)}mount(t){this.isSVGTag=ez(t.tagName),super.mount(t)}}function e0({top:t,left:e,right:i,bottom:n}){return{x:{min:e,max:i},y:{min:t,max:n}}}function e1(t){return void 0===t||1===t}function e2({scale:t,scaleX:e,scaleY:i}){return!e1(t)||!e1(e)||!e1(i)}function e3(t){return e2(t)||e5(t)||t.z||t.rotate||t.rotateX||t.rotateY||t.skewX||t.skewY}function e5(t){var e,i;return(e=t.x)&&"0%"!==e||(i=t.y)&&"0%"!==i}function e6(t,e,i,n,r){return void 0!==r&&(t=n+r*(t-n)),n+i*(t-n)+e}function e8(t,e=0,i=1,n,r){t.min=e6(t.min,e,i,n,r),t.max=e6(t.max,e,i,n,r)}function e9(t,{x:e,y:i}){e8(t.x,e.translate,e.scale,e.originPoint),e8(t.y,i.translate,i.scale,i.originPoint)}function e4(t,e){t.min+=e,t.max+=e}function e7(t,e,i,n,r=.5){let s=eK(t.min,t.max,r);e8(t,e,i,s,n)}function it(t,e){return"string"==typeof t?parseFloat(t)/100*(e.max-e.min):t}function ie(t,e,i){let n=i??t;e7(t.x,it(e.x,n.x),e.scaleX,e.scale,e.originX),e7(t.y,it(e.y,n.y),e.scaleY,e.scale,e.originY)}function ii(t,e){return e0(function(t,e){if(!e)return t;let i=e({x:t.left,y:t.top}),n=e({x:t.right,y:t.bottom});return{top:i.y,left:i.x,bottom:n.y,right:n.x}}(t.getBoundingClientRect(),e))}class ir extends e_{constructor(){super(...arguments),this.type="html",this.renderInstance=eW}readValueFromInstance(t,e){if(a.has(e))return this.projection?.isProjecting?tb(e):tS(t,e);{let i=window.getComputedStyle(t),n=(ta(e)?i.getPropertyValue(e):i[e])||0;return"string"==typeof n?n.trim():n}}measureInstanceViewportBox(t,{transformPagePoint:e}){return ii(t,e)}build(t,e,i){eN(t,e,i.transformTemplate)}
1scrapeMotionValuesFromProps(t,e,i){return eq(t,e,i)}}var is,io=i(2265);let ia=["animate","circle","defs","desc","ellipse","g","image","line","filter","marker","mask","metadata","path","pattern","polygon","polyline","rect","stop","switch","symbol","svg","text","tspan","use","view"];function il(t){if("string"!=typeof t||t.includes("-"));else if(ia.indexOf(t)>-1||/[A-Z]/u.test(t))return!0;return!1}var iu=i(7437),ih=i(8881);let ic=(0,io.createContext)({strict:!1});var id=i(5750);let ip=(0,io.createContext)({});function im(t){return Array.isArray(t)?t.join(" "):t}let ig=()=>({style:{},transform:{},transformOrigin:{},vars:{}});function iy(t,e,i){for(let n in e)J(e[n])||e$(n,i)||(t[n]=e[n])}let iv=()=>({...ig(),attrs:{}}),iE=new Set(["animate","exit","variants","initial","style","values","variants","transition","transformTemplate","custom","inherit","onBeforeLayoutMeasure","onAnimationStart","onAnimationComplete","onUpdate","onDragStart","onDrag","onDragEnd","onMeasureDragConstraints","onDirectionLock","onDragTransitionEnd","_dragX","_dragY","onHoverStart","onHoverEnd","onViewportEnter","onViewportLeave","globalTapTarget","propagate","ignoreStrict","viewport"]);function ib(t){return t.startsWith("while")||t.startsWith("drag")&&"draggable"!==t||t.startsWith("layout")||t.startsWith("onTap")||t.startsWith("onPan")||t.startsWith("onLayout")||iE.has(t)}let iT=t=>!ib(t);try{is=require("@emotion/is-prop-valid").default,"function"==typeof is&&(iT=t=>t.startsWith("on")?!ib(t):is(t))}catch{}function iS(t){return J(t)?t.get():t}var iw=i(4252),iP=i(3576);let iA=t=>(e,i)=>{let n=(0,io.useContext)(ip),r=(0,io.useContext)(iw.O),s=()=>(function(t,e,i,n){let{scrapeMotionValuesFromProps:r,createRenderState:s}=t;return{latestValues:function(t,e,i,n){let r={},s=n(t,{});for(let t in s)r[t]=iS(s[t]);let{initial:o,animate:a}=t,l=ew(t),u=eP(t);e&&u&&!l&&!1!==t.inherit&&(void 0===o&&(o=e.initial),void 0===a&&(a=e.animate));let h=!!i&&!1===i.initial,c=(h=h||!1===o)?a:o;if(c&&"boolean"!=typeof c&&!eE(c)){let e=Array.isArray(c)?c:[c];for(let i=0;i<e.length;i++){let n=eL(t,e[i]);if(n){let{transitionEnd:t,transition:e,...i}=n;for(let t in i){let e=i[t];if(Array.isArray(e)){let t=h?e.length-1:0;e=e[t]}null!==e&&(r[t]=e)}for(let e in t)r[e]=t[e]}}}return r}(e,i,n,r),renderState:s()}})(t,e,n,r);return i?s():(0,iP.h)(s)},ix=iA({scrapeMotionValuesFromProps:eq,createRenderState:ig}),iM=iA({scrapeMotionValuesFromProps:eJ,createRenderState:iv}),iC={animation:["animate","variants","whileHover","whileTap","exit","whileInView","whileFocus","whileDrag"],exit:["exit"],drag:["drag","dragControls"],focus:["whileFocus"],hover:["whileHover","onHoverStart","onHoverEnd"],tap:["whileTap","onTap","onTapStart","onTapCancel"],pan:["onPan","onPanStart","onPanSessionStart","onPanEnd"],inView:["whileInView","onViewportEnter","onViewportLeave"],layout:["layout","layoutId"]},iL=!1;function iR(){return!function(){if(iL)return;let t={};for(let e in iC)t[e]={isEnabled:t=>iC[e].some(e=>!!t[e])};eB=t,iL=!0}(),eB}let iB=Symbol.for("motionComponentSymbol"),iI="data-"+eO("framerAppearId"),i_=(0,io.createContext)({});function iO(t){return t&&"object"==typeof t&&Object.prototype.hasOwnProperty.call(t,"current")}var iD=i(2014);function ik(t){var e,i;let{forwardMotionProps:n=!1,type:r}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},s=arguments.length>2?arguments[2]:void 0,o=arguments.length>3?arguments[3]:void 0;s&&function(t){let e=iR();for(let i in t)e[i]={...e[i],...t[i]};eB=e}(s);let a=r?"svg"===r:il(t),l=a?iM:ix;function u(e,i){let r;let s={...(0,io.useContext)(id._),...e,layoutId:function(t){let{layoutId:e}=t,i=(0,io.useContext)(ih.p).id;return i&&void 0!==e?i+"-"+e:e}(e)},{isStatic:u}=s,h=function(t){let{initial:e,animate:i}=function(t,e){if(ew(t)){let{initial:e,animate:i}=t;return{initial:!1===e||eb(e)?e:void 0,animate:eb(i)?i:void 0}}return!1!==t.inherit?e:{}}(t,(0,io.useContext)(ip));return(0,io.useMemo)(()=>({initial:e,animate:i}),[im(e),im(i)])}(e),c=l(e,u);if(!u&&"undefined"!=typeof window){(0,io.useContext)(ic).strict;let e=function(t){let{drag:e,layout:i}=iR();if(!e&&!i)return{};let n={...e,...i};return{MeasureLayout:(null==e?void 0:e.isEnabled(t))||(null==i?void 0:i.isEnabled(t))?n.MeasureLayout:void 0,ProjectionNode:n.ProjectionNode}}
1(s);r=e.MeasureLayout,h.visualElement=function(t,e,i,n,r,s){var o,a,l,u;let{visualElement:h}=(0,io.useContext)(ip),c=(0,io.useContext)(ic),d=(0,io.useContext)(iw.O),p=(0,io.useContext)(id._),f=p.reducedMotion,m=p.skipAnimations,g=(0,io.useRef)(null),y=(0,io.useRef)(!1);n=n||c.renderer,!g.current&&n&&(g.current=n(t,{visualState:e,parent:h,props:i,presenceContext:d,blockInitialAnimation:!!d&&!1===d.initial,reducedMotionConfig:f,skipAnimations:m,isSVG:s}),y.current&&g.current&&(g.current.manuallyAnimateOnMount=!0));let v=g.current,E=(0,io.useContext)(i_);v&&!v.projection&&r&&("html"===v.type||"svg"===v.type)&&function(t,e,i,n){let{layoutId:r,layout:s,drag:o,dragConstraints:a,layoutScroll:l,layoutRoot:u,layoutAnchor:h,layoutCrossfade:c}=e;t.projection=new i(t.latestValues,e["data-framer-portal-id"]?void 0:function t(e){if(e)return!1!==e.options.allowProjection?e.projection:t(e.parent)}(t.parent)),t.projection.setOptions({layoutId:r,layout:s,alwaysMeasureLayout:!!o||a&&iO(a),visualElement:t,animationType:"string"==typeof s?s:"both",initialPromotionConfig:n,crossfade:c,layoutScroll:l,layoutRoot:u,layoutAnchor:h})}(g.current,i,r,E);let b=(0,io.useRef)(!1);(0,io.useInsertionEffect)(()=>{v&&b.current&&v.update(i,d)});let T=i[iI],S=(0,io.useRef)(!!T&&"undefined"!=typeof window&&!(null===(o=(a=window).MotionHandoffIsComplete)||void 0===o?void 0:o.call(a,T))&&(null===(l=(u=window).MotionHasOptimisedAnimation)||void 0===l?void 0:l.call(u,T)));return(0,iD.L)(()=>{y.current=!0,v&&(b.current=!0,window.MotionIsMounted=!0,v.updateFeatures(),v.scheduleRenderMicrotask(),S.current&&v.animationState&&v.animationState.animateChanges())}),(0,io.useEffect)(()=>{v&&(!S.current&&v.animationState&&v.animationState.animateChanges(),S.current&&(queueMicrotask(()=>{var t,e;null===(t=(e=window).MotionHandoffMarkAsComplete)||void 0===t||t.call(e,T)}),S.current=!1),v.enteringChildren=void 0)}),v}(t,c,s,o,e.ProjectionNode,a)}return(0,iu.jsxs)(ip.Provider,{value:h,children:[r&&h.visualElement?(0,iu.jsx)(r,{visualElement:h.visualElement,...s}):null,function(t,e,i,n,r){let{latestValues:s}=n,o=arguments.length>5&&void 0!==arguments[5]&&arguments[5],a=arguments.length>6?arguments[6]:void 0,l=((null!=a?a:il(t))?function(t,e,i,n){let r=(0,io.useMemo)(()=>{let i=iv();return eU(i,e,ez(n),t.transformTemplate,t.style),{...i.attrs,style:{...i.style}}},[e]);if(t.style){let e={};iy(e,t.style,t),r.style={...e,...r.style}}return r}:function(t,e){let i={},n=function(t,e){let i=t.style||{},n={};return iy(n,i,t),Object.assign(n,function(t,e){let{transformTemplate:i}=t;return(0,io.useMemo)(()=>{let t=ig();return eN(t,e,i),Object.assign({},t.vars,t.style)},[e])}(t,e)),n}(t,e);return t.drag&&!1!==t.dragListener&&(i.draggable=!1,n.userSelect=n.WebkitUserSelect=n.WebkitTouchCallout="none",n.touchAction=!0===t.drag?"none":"pan-".concat("x"===t.drag?"y":"x")),void 0===t.tabIndex&&(t.onTap||t.onTapStart||t.whileTap)&&(i.tabIndex=0),i.style=n,i})(e,s,r,t),u=function(t,e,i){let n={};for(let r in t)("values"!==r||"object"!=typeof t.values)&&!J(t[r])&&(iT(r)||!0===i&&ib(r)||!e&&!ib(r)||t.draggable&&r.startsWith("onDrag"))&&(n[r]=t[r]);return n}(e,"string"==typeof t,o),h=t!==io.Fragment?{...u,...l,ref:i}:{},{children:c}=e,d=(0,io.useMemo)(()=>J(c)?c.get():c,[c]);return(0,io.createElement)(t,{...h,children:d})}(t,e,function(t,e,i){let n=(0,io.useRef)(i);(0,io.useInsertionEffect)(()=>{n.current=i});let r=(0,io.useRef)(null);return(0,io.useCallback)(i=>{if(i){var s;null===(s=t.onMount)||void 0===s||s.call(t,i)}let o=n.current;if("function"==typeof o){if(i){let t=o(i);"function"==typeof t&&(r.current=t)}else r.current?(r.current(),r.current=null):o(i)}else o&&(o.current=i);e&&(i?e.mount(i):e.unmount())},[e])}(c,h.visualElement,i),c,u,n,a)]})}u.displayName="motion.".concat("string"==typeof t?t:"create(".concat(null!==(i=null!==(e=t.displayName)&&void 0!==e?e:t.name)&&void 0!==i?i:"",")"));let h=(0,io.forwardRef)(u);return h[iB]=t,h}class iH{constructor(t){this.isMounted=!1,this.node=t}update(){}}function iN(t,e,i){let n=t.getProps();return eL(n,e,void 0!==i?i:n.custom,t)}function iV(t,e){if(t?.inherit&&e){let{inherit:i,...n}=t;return{...e,...n}}return t}function iF(t,e){let i=t?.[e]??t?.default??t;return i!==t?iV(i,t):i}let ij=t=>Array.isArray(t);function iU(t,e){let i=t.getValue("willChange");if(J(i)&&i.add)return i.add(e);if(!i&&tL.WillChange){let i=new tL.WillChange("auto");
1t.addValue("willChange",i),i.add(e)}}let iG=(t,e)=>i=>e(t(i)),iz=(...t)=>t.reduce(iG);function iW(t,e,i){return(i<0&&(i+=1),i>1&&(i-=1),i<1/6)?t+(e-t)*6*i:i<.5?e:i<2/3?t+(e-t)*(2/3-i)*6:t}function iX(t,e){return i=>i>0?e:t}let iY=(t,e,i)=>{let n=t*t,r=i*(e*e-n)+n;return r<0?0:Math.sqrt(r)},iK=[b,E,C],iZ=t=>iK.find(e=>e.test(t));function i$(t){let e=iZ(t);if(tn(!!e,`'${t}' is not an animatable color. Use the equivalent color code instead.`,"color-not-animatable"),!e)return!1;let i=e.parse(t);return e===C&&(i=function({hue:t,saturation:e,lightness:i,alpha:n}){t/=360,i/=100;let r=0,s=0,o=0;if(e/=100){let n=i<.5?i*(1+e):i+e-i*e,a=2*i-n;r=iW(a,n,t+1/3),s=iW(a,n,t),o=iW(a,n,t-1/3)}else r=s=o=i;return{red:Math.round(255*r),green:Math.round(255*s),blue:Math.round(255*o),alpha:n}}(i)),i}let iq=(t,e)=>{let i=i$(t),n=i$(e);if(!i||!n)return iX(t,e);let r={...i};return t=>(r.red=iY(i.red,n.red,t),r.green=iY(i.green,n.green,t),r.blue=iY(i.blue,n.blue,t),r.alpha=eK(i.alpha,n.alpha,t),E.transform(r))},iJ=new Set(["none","hidden"]);function iQ(t,e){return i=>eK(t,e,i)}function i0(t){return"number"==typeof t?iQ:"string"==typeof t?tu(t)?iX:L.test(t)?iq:i3:Array.isArray(t)?i1:"object"==typeof t?L.test(t)?iq:i2:iX}function i1(t,e){let i=[...t],n=i.length,r=t.map((t,i)=>i0(t)(t,e[i]));return t=>{for(let e=0;e<n;e++)i[e]=r[e](t);return i}}function i2(t,e){let i={...t,...e},n={};for(let r in i)void 0!==t[r]&&void 0!==e[r]&&(n[r]=i0(t[r])(t[r],e[r]));return t=>{for(let e in n)i[e]=n[e](t);return i}}let i3=(t,e)=>{let i=N.createTransformer(e),n=O(t),r=O(e);return n.indexes.var.length===r.indexes.var.length&&n.indexes.color.length===r.indexes.color.length&&n.indexes.number.length>=r.indexes.number.length?iJ.has(t)&&!r.values.length||iJ.has(e)&&!n.values.length?iJ.has(t)?i=>i<=0?t:e:i=>i>=1?e:t:iz(i1(function(t,e){let i=[],n={color:0,var:0,number:0};for(let r=0;r<e.values.length;r++){let s=e.types[r],o=t.indexes[s][n[s]],a=t.values[o]??0;i[r]=a,n[s]++}return i}(n,r),r.values),i):(tn(!0,`Complex values '${t}' and '${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.`,"complex-values-different"),iX(t,e))};function i5(t,e,i){return"number"==typeof t&&"number"==typeof e&&"number"==typeof i?eK(t,e,i):i0(t)(t,e)}let i6=t=>{let e=({timestamp:e})=>t(e);return{start:(t=!0)=>t_.update(e,t),stop:()=>tO(e),now:()=>tD.isProcessing?tD.timestamp:ec.now()}};function i8(t){let e=0,i=t.next(e);for(;!i.done&&e<2e4;)e+=50,i=t.next(e);return e>=2e4?1/0:e}let i9={stiffness:100,damping:10,mass:1,velocity:0,duration:800,bounce:.3,visualDuration:.3,restSpeed:{granular:.01,default:2},restDelta:{granular:.005,default:.5},minDuration:.01,maxDuration:10,minDamping:.05,maxDamping:1};function i4(t,e){return t*Math.sqrt(1-e*e)}let i7=["duration","bounce"],nt=["stiffness","damping","mass"];function ne(t,e){return e.some(e=>void 0!==t[e])}function ni(t=i9.visualDuration,e=i9.bounce){let i,n,r,s,o,a;let u="object"!=typeof t?{visualDuration:t,keyframes:[0,1],bounce:e}:t,{restSpeed:h,restDelta:c}=u,d=u.keyframes[0],p=u.keyframes[u.keyframes.length-1],f={done:!1,value:d},{stiffness:m,damping:g,mass:y,duration:v,velocity:E,isResolvedFromDuration:b}=function(t){let e={velocity:i9.velocity,stiffness:i9.stiffness,damping:i9.damping,mass:i9.mass,isResolvedFromDuration:!1,...t};if(!ne(t,nt)&&ne(t,i7)){if(e.velocity=0,t.visualDuration){let i=2*Math.PI/(1.2*t.visualDuration),n=i*i,r=2*l(.05,1,1-(t.bounce||0))*Math.sqrt(n);e={...e,mass:i9.mass,stiffness:n,damping:r}}else{let i=function({duration:t=i9.duration,bounce:e=i9.bounce,velocity:i=i9.velocity,mass:n=i9.mass}){let r,s;tn(t<=tZ(i9.maxDuration),"Spring duration must be 10 seconds or less","spring-duration-limit");let o=1-e;o=l(i9.minDamping,i9.maxDamping,o),t=l(i9.minDuration,i9.maxDuration,t$(t)),o<1?(r=e=>{let n=e*o,r=n*t;return .001-(n-i)/i4(e,o)*Math.exp(-r)},s=e=>{let n=e*o*t,s=Math.pow(o,2)*Math.pow(e,2)*t,a=i4(Math.pow(e,2),o);return(n*i+i-s)*Math.exp(-n)*(-r(e)+.001>0?-1:1)/a}):(r=e=>-.001+Math.exp(-e*t)*((e-i)*t+1),s=e=>t*t*(i-e)*Math.exp(-e*t));
1let a=function(t,e,i){let n=i;for(let i=1;i<12;i++)n-=t(n)/e(n);return n}(r,s,5/t);if(t=tZ(t),isNaN(a))return{stiffness:i9.stiffness,damping:i9.damping,duration:t};{let e=Math.pow(a,2)*n;return{stiffness:e,damping:2*o*Math.sqrt(n*e),duration:t}}}({...t,velocity:0});(e={...e,...i,mass:i9.mass}).isResolvedFromDuration=!0}}return e}({...u,velocity:-t$(u.velocity||0)}),T=E||0,S=g/(2*Math.sqrt(m*y)),w=p-d,P=t$(Math.sqrt(m/y)),A=5>Math.abs(w);if(h||(h=A?i9.restSpeed.granular:i9.restSpeed.default),c||(c=A?i9.restDelta.granular:i9.restDelta.default),S<1)r=i4(P,S),s=(T+S*P*w)/r,i=t=>p-Math.exp(-S*P*t)*(s*Math.sin(r*t)+w*Math.cos(r*t)),o=S*P*s+w*r,a=S*P*w-s*r,n=t=>Math.exp(-S*P*t)*(o*Math.sin(r*t)+a*Math.cos(r*t));else if(1===S){i=t=>p-Math.exp(-P*t)*(w+(T+P*w)*t);let t=T+P*w;n=e=>Math.exp(-P*e)*(P*t*e-T)}else{let t=P*Math.sqrt(S*S-1);i=e=>{let i=Math.exp(-S*P*e),n=Math.min(t*e,300);return p-i*((T+S*P*w)*Math.sinh(n)+t*w*Math.cosh(n))/t};let e=(T+S*P*w)/t,r=S*P*e-w*t,s=S*P*w-e*t;n=e=>{let i=Math.exp(-S*P*e),n=Math.min(t*e,300);return i*(r*Math.sinh(n)+s*Math.cosh(n))}}let x={calculatedDuration:b&&v||null,velocity:t=>tZ(n(t)),next:t=>{if(!b&&S<1){let e=Math.exp(-S*P*t),i=Math.sin(r*t),n=Math.cos(r*t),l=p-e*(s*i+w*n),u=tZ(e*(o*i+a*n));return f.done=Math.abs(u)<=h&&Math.abs(p-l)<=c,f.value=f.done?p:l,f}let e=i(t);if(b)f.done=t>=v;else{let i=tZ(n(t));f.done=Math.abs(i)<=h&&Math.abs(p-e)<=c}return f.value=f.done?p:e,f},toString:()=>{let t=Math.min(i8(x),2e4),e=ei(e=>x.next(t*e).value,t,30);return t+"ms "+e},toTransition:()=>{}};return x}function nn(t,e,i){var n,r;let s=Math.max(e-5,0);return n=i-t(s),(r=e-s)?1e3/r*n:0}function nr({keyframes:t,velocity:e=0,power:i=.8,timeConstant:n=325,bounceDamping:r=10,bounceStiffness:s=500,modifyTarget:o,min:a,max:l,restDelta:u=.5,restSpeed:h}){let c,d;let p=t[0],f={done:!1,value:p},m=t=>void 0!==a&&t<a||void 0!==l&&t>l,g=t=>void 0===a?l:void 0===l?a:Math.abs(a-t)<Math.abs(l-t)?a:l,y=i*e,v=p+y,E=void 0===o?v:o(v);E!==v&&(y=E-p);let b=t=>-y*Math.exp(-t/n),T=t=>E+b(t),S=t=>{let e=b(t),i=T(t);f.done=Math.abs(e)<=u,f.value=f.done?E:i},w=t=>{m(f.value)&&(c=t,d=ni({keyframes:[f.value,g(f.value)],velocity:nn(T,t,f.value),damping:r,stiffness:s,restDelta:u,restSpeed:h}))};return w(0),{calculatedDuration:null,next:t=>{let e=!1;return(d||void 0!==c||(e=!0,S(t),w(t)),void 0!==c&&t>=c)?d.next(t-c):(e||S(t),f)}}}ni.applyToOptions=t=>{let e=function(t,e=100,i){let n=i({...t,keyframes:[0,e]}),r=Math.min(i8(n),2e4);return{type:"keyframes",ease:t=>n.next(r*t).value/e,duration:t$(r)}}(t,100,ni);return t.ease=e.ease,t.duration=tZ(e.duration),t.type="keyframes",t};let ns=(t,e,i)=>(((1-3*i+3*e)*t+(3*i-6*e))*t+3*e)*t;function no(t,e,i,n){if(t===e&&i===n)return tC;let r=e=>(function(t,e,i,n,r){let s,o;let a=0;do(s=ns(o=e+(i-e)/2,n,r)-t)>0?i=o:e=o;while(Math.abs(s)>1e-7&&++a<12);return o})(e,0,1,t,i);return t=>0===t||1===t?t:ns(r(t),e,n)}let na=no(.42,0,1,1),nl=no(0,0,.58,1),nu=no(.42,0,.58,1),nh=t=>Array.isArray(t)&&"number"!=typeof t[0],nc=t=>e=>e<=.5?t(2*e)/2:(2-t(2*(1-e)))/2,nd=t=>e=>1-t(1-e),np=no(.33,1.53,.69,.99),nf=nd(np),nm=nc(nf),ng=t=>t>=1?1:(t*=2)<1?.5*nf(t):.5*(2-Math.pow(2,-10*(t-1))),ny=t=>1-Math.sin(Math.acos(t)),nv=nd(ny),nE=nc(ny),nb={linear:tC,easeIn:na,easeInOut:nu,easeOut:nl,circIn:ny,circInOut:nE,circOut:nv,backIn:nf,backInOut:nm,backOut:np,anticipate:ng},nT=t=>"string"==typeof t,nS=t=>{if(et(t)){tr(4===t.length,"Cubic bezier arrays must contain four numerical values.","cubic-bezier-length");let[e,i,n,r]=t;return no(e,i,n,r)}return nT(t)?(tr(void 0!==nb[t],`Invalid easing type '${t}'`,"invalid-easing-type"),nb[t]):t},nw=(t,e,i)=>{let n=e-t;return 0===n?1:(i-t)/n};function nP({duration:t=300,keyframes:e,times:i,ease:n="easeInOut"}){let r=nh(n)?n.map(nS):nS(n),s={done:!1,value:e[0]},o=function(t,e,{clamp:i=!0,ease:n,mixer:r}={}){let s=t.length;if(tr(s===e.length,"Both input and output ranges must be the same length","range-length"),1===s)return()=>e[0];if(2===s&&e[0]===e[1])return()=>e[1];let o=t[0]===t[1];t[0]>t[s-1]&&(t=[...t].reverse(),e=[...e].reverse());let a=function(t,e,i){let n=[],r=i||tL.mix||i5,s=t.length-1;for(let i=0;i<s;i++){let s=r(t[i],t[i+1]);e&&(s=iz(Array.isArray(e)?e[i]||tC:e,s)),n.push(s)}return n}(e,n,r),u=a.length,h=i=>{if(o&&i<t[0])return e[0];let n=0;if(u>1)for(;n<t.length-2&&!(i<t[n+1]);n++);let r=nw(t[n],t[n+1],i);return a[n](r)};return i?e=>h(l(t[0],t[s-1],e)):h}
1((i&&i.length===e.length?i:function(t){let e=[0];return function(t,e){let i=t[t.length-1];for(let n=1;n<=e;n++){let r=nw(0,e,n);t.push(eK(i,1,r))}}(e,t.length-1),e}(e)).map(e=>e*t),e,{ease:Array.isArray(r)?r:e.map(()=>r||nu).splice(0,e.length-1)});return{calculatedDuration:t,next:e=>(s.value=o(e),s.done=e>=t,s)}}let nA={decay:nr,inertia:nr,tween:nP,keyframes:nP,spring:ni};function nx(t){"string"==typeof t.type&&(t.type=nA[t.type])}let nM=t=>t/100;class nC extends t4{constructor(t){super(),this.state="idle",this.startTime=null,this.isStopped=!1,this.currentTime=0,this.holdTime=null,this.playbackSpeed=1,this.delayState={done:!1,value:void 0},this.stop=()=>{let{motionValue:t}=this.options;t&&t.updatedAt!==ec.now()&&this.tick(ec.now()),this.isStopped=!0,"idle"!==this.state&&(this.teardown(),this.options.onStop?.())},t7.mainThread++,this.options=t,this.initAnimation(),this.play(),!1===t.autoplay&&this.pause()}initAnimation(){let{options:t}=this;nx(t);let{type:e=nP,repeat:i=0,repeatDelay:n=0,repeatType:r,velocity:s=0}=t,{keyframes:o}=t,a=e||nP;a!==nP&&"number"!=typeof o[0]&&(this.mixKeyframes=iz(nM,i5(o[0],o[1])),o=[0,100]);let l=a({...t,keyframes:o});"mirror"===r&&(this.mirroredGenerator=a({...t,keyframes:[...o].reverse(),velocity:-s})),null===l.calculatedDuration&&(l.calculatedDuration=i8(l));let{calculatedDuration:u}=l;this.calculatedDuration=u,this.resolvedDuration=u+n,this.totalDuration=this.resolvedDuration*(i+1)-n,this.generator=l}updateTime(t){let e=Math.round(t-this.startTime)*this.playbackSpeed;null!==this.holdTime?this.currentTime=this.holdTime:this.currentTime=e}tick(t,e=!1){let i;let{generator:n,totalDuration:r,mixKeyframes:s,mirroredGenerator:o,resolvedDuration:a,calculatedDuration:u}=this;if(null===this.startTime)return n.next(0);let{delay:h=0,keyframes:c,repeat:d,repeatType:p,repeatDelay:f,type:m,onUpdate:g,finalKeyframe:y}=this.options;this.speed>0?this.startTime=Math.min(this.startTime,t):this.speed<0&&(this.startTime=Math.min(t-r/this.speed,this.startTime)),e?this.currentTime=t:this.updateTime(t);let v=this.currentTime-h*(this.playbackSpeed>=0?1:-1),E=this.playbackSpeed>=0?v<0:v>r;this.currentTime=Math.max(v,0),"finished"===this.state&&null===this.holdTime&&(this.currentTime=r);let b=this.currentTime,T=n;if(d){let t=Math.min(this.currentTime,r)/a,e=Math.floor(t),i=t%1;!i&&t>=1&&(i=1),1===i&&e--,(e=Math.min(e,d+1))%2&&("reverse"===p?(i=1-i,f&&(i-=f/a)):"mirror"===p&&(T=o)),b=l(0,1,i)*a}E?(this.delayState.value=c[0],i=this.delayState):i=T.next(b),s&&!E&&(i.value=s(i.value));let{done:S}=i;E||null===u||(S=this.playbackSpeed>=0?this.currentTime>=r:this.currentTime<=0);let w=null===this.holdTime&&("finished"===this.state||"running"===this.state&&S);return w&&m!==nr&&(i.value=t9(c,this.options,y,this.speed)),g&&g(i.value),w&&this.finish(),i}then(t,e){return this.finished.then(t,e)}get duration(){return t$(this.calculatedDuration)}get iterationDuration(){let{delay:t=0}=this.options||{};return this.duration+t$(t)}get time(){return t$(this.currentTime)}set time(t){t=tZ(t),this.currentTime=t,null===this.startTime||null!==this.holdTime||0===this.playbackSpeed?this.holdTime=t:this.driver&&(this.startTime=this.driver.now()-t/this.playbackSpeed),this.driver?this.driver.start(!1):(this.startTime=0,this.state="paused",this.holdTime=t,this.tick(t))}getGeneratorVelocity(){let t=this.currentTime;if(t<=0)return this.options.velocity||0;if(this.generator.velocity)return this.generator.velocity(t);let e=this.generator.next(t).value;return nn(t=>this.generator.next(t).value,t,e)}get speed(){return this.playbackSpeed}set speed(t){let e=this.playbackSpeed!==t;e&&this.driver&&this.updateTime(ec.now()),this.playbackSpeed=t,e&&this.driver&&(this.time=t$(this.currentTime))}play(){if(this.isStopped)return;let{driver:t=i6,startTime:e}=this.options;this.driver||(this.driver=t(t=>this.tick(t))),this.options.onPlay?.();let i=this.driver.now();"finished"===this.state?(this.updateFinished(),this.startTime=i):null!==this.holdTime?this.startTime=i-this.holdTime:this.startTime||(this.startTime=e??i),"finished"===this.state&&this.speed<0&&(this.startTime+=this.calculatedDuration),this.holdTime=null,this.state="running",this.driver.start()}pause(){this.state="paused",this.updateTime(ec.now()),this.holdTime=this.currentTime}complete(){"running"!==this.state&&this.play(),this.state="finished",this.holdTime=null}finish(){this.notifyFinished(),this.teardown(),this.state="finished",this.options.onComplete?.()}cancel(){this.holdTime=null,this.startTime=0,this.tick(0),this.teardown(),this.options.onCancel?.()}teardown(){this.state="idle",this.stopDriver(),this.startTime=this.holdTime=null,t7.mainThread--}stopDriver(){this.driver&&(this.driver.stop(),this.driver=void 0)}sample(t){return this.startTime=0,this.tick(t,!0)}attachTimeline(t){return this.options.allowFlatten&&(this.options.type="keyframes",this.options.ease="linear",this.initAnimation()),this.driver?.stop(),t.observe(this)}}let nL={anticipate:ng,backInOut:nm,circInOut:nE};
1class nR extends eo{constructor(t){"string"==typeof t.ease&&t.ease in nL&&(t.ease=nL[t.ease]),nx(t),super(t),void 0!==t.startTime&&!1!==t.autoplay&&(this.startTime=t.startTime),this.options=t}updateMotionValue(t){let{motionValue:e,onUpdate:i,onComplete:n,element:r,...s}=this.options;if(!e)return;if(void 0!==t){e.set(t);return}let o=new nC({...s,autoplay:!1}),a=Math.max(10,ec.now()-this.startTime),u=l(0,10,a-10),h=o.sample(a).value,{name:c}=this.options;r&&c&&t1(r,c,h),e.setWithVelocity(o.sample(Math.max(0,a-u)).value,h,u),o.stop()}}let nB=(t,e)=>"zIndex"!==e&&!!("number"==typeof t||Array.isArray(t)||"string"==typeof t&&(N.test(t)||"0"===t)&&!t.startsWith("url("));function nI(t){t.duration=0,t.type="keyframes"}let n_=/^(?:oklch|oklab|lab|lch|color|color-mix|light-dark)\(/,nO=new Set(["color","backgroundColor","outlineColor","fill","stroke","borderColor","borderTopColor","borderRightColor","borderBottomColor","borderLeftColor"]),nD=t2(()=>Object.hasOwnProperty.call(Element.prototype,"animate"));class nk extends t4{constructor({autoplay:t=!0,delay:e=0,type:i="keyframes",repeat:n=0,repeatDelay:r=0,repeatType:s="loop",keyframes:o,name:a,motionValue:l,element:u,...h}){super(),this.stop=()=>{this._animation&&(this._animation.stop(),this.stopTimeline?.()),this.keyframeResolver?.cancel()},this.createdAt=ec.now();let c={autoplay:t,delay:e,type:i,repeat:n,repeatDelay:r,repeatType:s,name:a,motionValue:l,element:u,...h},d=u?.KeyframeResolver||tG;this.keyframeResolver=new d(o,(t,e,i)=>this.onKeyframesResolved(t,e,c,!i),a,l,u),this.keyframeResolver?.scheduleResolve()}onKeyframesResolved(t,e,i,n){let r;this.keyframeResolver=void 0;let{name:s,type:o,velocity:a,delay:l,isHandoff:u,onUpdate:h}=i;this.resolvedAt=ec.now();let c=!0;!function(t,e,i,n){let r=t[0];if(null===r)return!1;if("display"===e||"visibility"===e)return!0;let s=t[t.length-1],o=nB(r,e),a=nB(s,e);return tn(o===a,`You are trying to animate ${e} from "${r}" to "${s}". "${o?s:r}" is not an animatable value.`,"value-not-animatable"),!!o&&!!a&&(function(t){let e=t[0];if(1===t.length)return!0;for(let i=0;i<t.length;i++)if(t[i]!==e)return!0}(t)||("spring"===i||es(i))&&n)}(t,s,o,a)&&(c=!1,(tL.instantAnimations||!l)&&h?.(t9(t,i,e)),t[0]=t[t.length-1],nI(i),i.repeat=0);let d={startTime:n?this.resolvedAt&&this.resolvedAt-this.createdAt>40?this.resolvedAt:this.createdAt:void 0,finalKeyframe:e,...i,keyframes:t},p=c&&!u&&function(t){let{motionValue:e,name:i,repeatDelay:n,repeatType:r,damping:s,type:o,keyframes:a}=t;if(!(e?.owner?.current instanceof HTMLElement))return!1;let{onUpdate:l,transformTemplate:u}=e.owner.getProps();return nD()&&i&&(ea.has(i)||nO.has(i)&&function(t){for(let e=0;e<t.length;e++)if("string"==typeof t[e]&&n_.test(t[e]))return!0;return!1}(a))&&("transform"!==i||!u)&&!l&&!n&&"mirror"!==r&&0!==s&&"inertia"!==o}(d),f=d.motionValue?.owner?.current;if(p)try{r=new nR({...d,element:f})}catch{r=new nC(d)}else r=new nC(d);r.finished.then(()=>{this.notifyFinished()}).catch(tC),this.pendingTimeline&&(this.stopTimeline=r.attachTimeline(this.pendingTimeline),this.pendingTimeline=void 0),this._animation=r}get finished(){return this._animation?this.animation.finished:this._finished}then(t,e){return this.finished.finally(t).then(()=>{})}get animation(){return this._animation||(this.keyframeResolver?.resume(),tF=!0,tU(),tj(),tF=!1),this._animation}get duration(){return this.animation.duration}get iterationDuration(){return this.animation.iterationDuration}get time(){return this.animation.time}set time(t){this.animation.time=t}get speed(){return this.animation.speed}get state(){return this.animation.state}set speed(t){this.animation.speed=t}get startTime(){return this.animation.startTime}attachTimeline(t){return this._animation?this.stopTimeline=this.animation.attachTimeline(t):this.pendingTimeline=t,()=>this.stop()}play(){this.animation.play()}pause(){this.animation.pause()}complete(){this.animation.complete()}cancel(){this._animation&&this.animation.cancel(),this.keyframeResolver?.cancel()}}let nH={type:"spring",stiffness:500,damping:25,restSpeed:10},nN=t=>({type:"spring",stiffness:550,damping:0===t?2*Math.sqrt(550):30,restSpeed:10}),nV={type:"keyframes",duration:.8},nF={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},nj=(t,{keyframes:e})=>e.length>2?nV:a.has(t)?t.startsWith("scale")?nN(e[1]):nH:nF,nU=new Set(["when","delay","delayChildren","staggerChildren","staggerDirection","repeat","repeatType","repeatDelay","from","elapsed"]),nG=(t,e,i,n={},r,s)=>o=>{let a=iF(n,t)||{},l=a.delay||n.delay||0,{elapsed:u=0}=n;u-=tZ(l);let h={keyframes:Array.isArray(i)?i:[null,i],ease:"easeOut",velocity:e.getVelocity(),...a,delay:-u,onUpdate:t=>{e.set(t),a.onUpdate&&a.onUpdate(t)},onComplete:()=>{o(),a.onComplete&&a.onComplete()},name:t,motionValue:e,element:s?void 0:r};!function(t){for(let e in t)if(!nU.has(e))return!0;return!1}(a)&&Object.assign(h,nj(t,h)),h.duration&&(h.duration=tZ(h.duration)),h.repeatDelay&&(h.repeatDelay=tZ(h.repeatDelay)),void 0!==h.from&&(h.keyframes[0]=h.from);let c=!1;if(!1!==h.type&&(0!==h.duration||h.repeatDelay)||(nI(h),0!==h.delay||(c=!0)),(tL.instantAnimations||tL.skipAnimations||r?.shouldSkipAnimations)&&(c=!0,nI(h),h.delay=0),h.allowFlatten=!a.type&&!a.ease,c&&!s&&void 0!==e.get()){let t=t9(h.keyframes,a);if(void 0!==t){t_.update(()=>{h.onUpdate(t),h.onComplete()});return}}return a.isSync?new nC(h):new nk(h)};function nz(t,e,{delay:i=0,transitionOverride:n,type:r}={}){let{transition:s,transitionEnd:o,...a}=e,l=t.getDefaultTransition();s=s?iV(s,l):l;let u=s?.reduceMotion;n&&(s=n);let h=[],c=r&&t.animationState&&t.animationState.getState()[r];for(let e in a){let n=t.getValue(e,t.latestValues[e]??null),r=a[e];if(void 0===r||c&&function({protectedKeys:t,needsAnimating:e},i){let n=t.hasOwnProperty(i)&&!0!==e[i];return e[i]=!1,n}(c,e))continue;let o={delay:i,...iF(s||{},e)},l=n.get();if(void 0!==l&&!n.isAnimating()&&!Array.isArray(r)&&r===l&&!o.velocity){t_.update(()=>n.set(r));continue}let d=!1;if(window.MotionHandoffAnimation){let i=t.props[iI];if(i){let t=window.MotionHandoffAnimation(i,e,t_);null!==t&&(o.startTime=t,d=!0)}}iU(t,e);let p=u??t.shouldReduceMotion;n.start(nG(e,n,r,p&&Q.has(e)?{type:!1}:o,t,d));let f=n.animation;f&&h.push(f)}if(o){let e=()=>t_.update(()=>{o&&function(t,e){let{transitionEnd:i={},transition:n={},...r}=iN(t,e)||{};for(let e in r={...r,...i}){var s;let i=ij(s=r[e])?s[s.length-1]||0:s;t.hasValue(e)?t.getValue(e).set(i):t.addValue(e,em(i))}}(t,o)});h.length?Promise.all(h).then(e):e()}return h}function nW(t,e,i,n=0,r=1){let s=Array.from(t).sort((t,e)=>t.sortNodePosition(e)).indexOf(e),o=t.size,a=(o-1)*n;return"function"==typeof i?i(s,o):1===r?s*n:a-s*n}function nX(t,e,i={}){let n=iN(t,e,"exit"===i.type?t.presenceContext?.custom:void 0),{transition:r=t.getDefaultTransition()||{}}=n||{};i.transitionOverride&&(r=i.transitionOverride);let s=n?()=>Promise.all(nz(t,n,i)):()=>Promise.resolve(),o=t.variantChildren&&t.variantChildren.size?(n=0)=>{let{delayChildren:s=0,staggerChildren:o,staggerDirection:a}=r;
1return function(t,e,i=0,n=0,r=0,s=1,o){let a=[];for(let l of t.variantChildren)l.notify("AnimationStart",e),a.push(nX(l,e,{...o,delay:i+("function"==typeof n?0:n)+nW(t.variantChildren,l,n,r,s)}).then(()=>l.notify("AnimationComplete",e)));return Promise.all(a)}(t,e,n,s,o,a,i)}:()=>Promise.resolve(),{when:a}=r;if(!a)return Promise.all([s(),o(i.delay)]);{let[t,e]="beforeChildren"===a?[s,o]:[o,s];return t().then(()=>e())}}let nY=eS.length;function nK(t,e){if(!Array.isArray(e))return!1;let i=e.length;if(i!==t.length)return!1;for(let n=0;n<i;n++)if(e[n]!==t[n])return!1;return!0}let nZ=[...eT].reverse(),n$=eT.length;function nq(t=!1){return{isActive:t,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function nJ(){return{animate:nq(!0),whileInView:nq(),whileHover:nq(),whileTap:nq(),whileDrag:nq(),whileFocus:nq(),exit:nq()}}class nQ extends iH{constructor(t){super(t),t.animationState||(t.animationState=function(t){let e=e=>Promise.all(e.map(({animation:e,options:i})=>(function(t,e,i={}){let n;if(t.notify("AnimationStart",e),Array.isArray(e))n=Promise.all(e.map(e=>nX(t,e,i)));else if("string"==typeof e)n=nX(t,e,i);else{let r="function"==typeof e?iN(t,e,i.custom):e;n=Promise.all(nz(t,r,i))}return n.then(()=>{t.notify("AnimationComplete",e)})})(t,e,i))),i=nJ(),n=!0,r=!1,s=e=>(i,n)=>{let r=iN(t,n,"exit"===e?t.presenceContext?.custom:void 0);if(r){let{transition:t,transitionEnd:e,...n}=r;i={...i,...n,...e}}return i};function o(o){let{props:a}=t,l=function t(e){if(!e)return;if(!e.isControllingVariants){let i=e.parent&&t(e.parent)||{};return void 0!==e.props.initial&&(i.initial=e.props.initial),i}let i={};for(let t=0;t<nY;t++){let n=eS[t],r=e.props[n];(eb(r)||!1===r)&&(i[n]=r)}return i}(t.parent)||{},u=[],h=new Set,c={},d=1/0;for(let e=0;e<n$;e++){var p;let f=nZ[e],m=i[f],g=void 0!==a[f]?a[f]:l[f],y=eb(g),v=f===o?m.isActive:null;!1===v&&(d=e);let E=g===l[f]&&g!==a[f]&&y;if(E&&(n||r)&&t.manuallyAnimateOnMount&&(E=!1),m.protectedKeys={...c},!m.isActive&&null===v||!g&&!m.prevProp||eE(g)||"boolean"==typeof g)continue;if("exit"===f&&m.isActive&&!0!==v){m.prevResolvedValues&&(c={...c,...m.prevResolvedValues});continue}let b=(p=m.prevProp,"string"==typeof g?g!==p:!!Array.isArray(g)&&!nK(g,p)),T=b||f===o&&m.isActive&&!E&&y||e>d&&y,S=!1,w=Array.isArray(g)?g:[g],P=w.reduce(s(f),{});!1===v&&(P={});let{prevResolvedValues:A={}}=m,x={...A,...P},M=e=>{T=!0,h.has(e)&&(S=!0,h.delete(e)),m.needsAnimating[e]=!0;let i=t.getValue(e);i&&(i.liveStyle=!1)};for(let t in x){let e=P[t],i=A[t];if(!c.hasOwnProperty(t))(ij(e)&&ij(i)?nK(e,i):e===i)?void 0!==e&&h.has(t)?M(t):m.protectedKeys[t]=!0:null!=e?M(t):h.add(t)}m.prevProp=g,m.prevResolvedValues=P,m.isActive&&(c={...c,...P}),(n||r)&&t.blockInitialAnimation&&(T=!1);let C=E&&b,L=!C||S;T&&L&&u.push(...w.map(e=>{let i={type:f};if("string"==typeof e&&(n||r)&&!C&&t.manuallyAnimateOnMount&&t.parent){let{parent:n}=t,r=iN(n,e);if(n.enteringChildren&&r){let{delayChildren:e}=r.transition||{};i.delay=nW(n.enteringChildren,t,e)}}return{animation:e,options:i}}))}if(h.size){let e={};if("boolean"!=typeof a.initial){let i=iN(t,Array.isArray(a.initial)?a.initial[0]:a.initial);i&&i.transition&&(e.transition=i.transition)}h.forEach(i=>{let n=t.getBaseTarget(i),r=t.getValue(i);r&&(r.liveStyle=!0),e[i]=n??null}),u.push({animation:e})}let f=!!u.length;return n&&(!1===a.initial||a.initial===a.animate)&&!t.manuallyAnimateOnMount&&(f=!1),n=!1,r=!1,f?e(u):Promise.resolve()}return{animateChanges:o,setActive:function(e,n){if(i[e].isActive===n)return Promise.resolve();t.variantChildren?.forEach(t=>t.animationState?.setActive(e,n)),i[e].isActive=n;let r=o(e);for(let t in i)i[t].protectedKeys={};return r},setAnimateFunction:function(i){e=i(t)},getState:()=>i,reset:()=>{i=nJ(),r=!0}}}(t))}updateAnimationControlsSubscription(){let{animate:t}=this.node.getProps();eE(t)&&(this.unmountControls=t.subscribe(this.node))}mount(){this.updateAnimationControlsSubscription()}update(){let{animate:t}=this.node.getProps(),{animate:e}=this.node.prevProps||{};t!==e&&this.updateAnimationControlsSubscription()}unmount(){this.node.animationState.reset(),this.unmountControls?.()}}let n0=0;class n1 extends iH{constructor(){super(...arguments),this.id=n0++,this.isExitComplete=!1}update(){if(!this.node.presenceContext)return;let{isPresent:t,onExitComplete:e}=this.node.presenceContext,{isPresent:i}=this.node.prevPresenceContext||{};if(!this.node.animationState||t===i)return;if(t&&!1===i){if(this.isExitComplete){let{initial:t,custom:e}=this.node.getProps();if("string"==typeof t){let i=iN(this.node,t,e);if(i){let{transition:t,transitionEnd:e,...n}=i;for(let t in n)this.node.getValue(t)?.jump(n[t])}}this.node.animationState.reset(),this.node.animationState.animateChanges()}else this.node.animationState.setActive("exit",!1);this.isExitComplete=!1;return}let n=this.node.animationState.setActive("exit",!t);e&&!t&&n.then(()=>
1{this.isExitComplete=!0,e(this.id)})}mount(){let{register:t,onExitComplete:e}=this.node.presenceContext||{};e&&e(this.id),t&&(this.unmount=t(this.id))}unmount(){}}let n2={x:!1,y:!1};function n3(t){return[t("x"),t("y")]}function n5(t){return t.max-t.min}function n6(t,e,i,n=.5){t.origin=n,t.originPoint=eK(e.min,e.max,t.origin),t.scale=n5(i)/n5(e),t.translate=eK(i.min,i.max,t.origin)-t.originPoint,(t.scale>=.9999&&t.scale<=1.0001||isNaN(t.scale))&&(t.scale=1),(t.translate>=-.01&&t.translate<=.01||isNaN(t.translate))&&(t.translate=0)}function n8(t,e,i,n){n6(t.x,e.x,i.x,n?n.originX:void 0),n6(t.y,e.y,i.y,n?n.originY:void 0)}function n9(t,e,i,n=0){let r=n?eK(i.min,i.max,n):i.min;t.min=r+e.min,t.max=t.min+n5(e)}function n4(t,e,i,n=0){let r=n?eK(i.min,i.max,n):i.min;t.min=e.min-r,t.max=t.min+n5(e)}function n7(t,e,i,n){n4(t.x,e.x,i.x,n?.x),n4(t.y,e.y,i.y,n?.y)}let rt=new Set(["BUTTON","INPUT","SELECT","TEXTAREA","A"]),re=new Set(["INPUT","SELECT","TEXTAREA"]);function ri(t,e,i,n={passive:!0}){return t.addEventListener(e,i,n),()=>t.removeEventListener(e,i)}var rn=i(1464);function rr(t){return(0,rn.K)(t)&&"ownerSVGElement"in t}var rs=i(9960);let ro=new WeakMap,ra=(t,e,i)=>(n,r)=>r&&r[0]?r[0][t+"Size"]:rr(n)&&"getBBox"in n?n.getBBox()[e]:n[i],rl=ra("inline","width","offsetWidth"),ru=ra("block","height","offsetHeight");function rh({target:t,borderBoxSize:e}){ro.get(t)?.forEach(i=>{i(t,{get width(){return rl(t,e)},get height(){return ru(t,e)}})})}function rc(t){t.forEach(rh)}let rd=new Set;function rp(t,e){return"function"==typeof t?(rd.add(t),s||(s=()=>{let t={get width(){return window.innerWidth},get height(){return window.innerHeight}};rd.forEach(e=>e(t))},window.addEventListener("resize",s)),()=>{rd.delete(t),rd.size||"function"!=typeof s||(window.removeEventListener("resize",s),s=void 0)}):function(t,e){r||"undefined"==typeof ResizeObserver||(r=new ResizeObserver(rc));let i=(0,rs.I)(t);return i.forEach(t=>{let i=ro.get(t);i||(i=new Set,ro.set(t,i)),i.add(e),r?.observe(t)}),()=>{i.forEach(t=>{let i=ro.get(t);i?.delete(e),i?.size||r?.unobserve(t)})}}(t,e)}let rf=t=>"mouse"===t.pointerType?"number"!=typeof t.button||t.button<=0:!1!==t.isPrimary;function rm(t){return{point:{x:t.pageX,y:t.pageY}}}let rg=t=>e=>rf(e)&&t(e,rm(e));function ry(t,e,i,n){return ri(t,e,rg(i),n)}let rv=({current:t})=>t?t.ownerDocument.defaultView:null,rE=(t,e)=>Math.abs(t-e),rb=new Set(["auto","scroll"]);class rT{constructor(t,e,{transformPagePoint:i,contextWindow:n=window,dragSnapToOrigin:r=!1,distanceThreshold:s=3,element:o}={}){if(this.startEvent=null,this.lastMoveEvent=null,this.lastMoveEventInfo=null,this.lastRawMoveEventInfo=null,this.handlers={},this.contextWindow=window,this.scrollPositions=new Map,this.removeScrollListeners=null,this.onElementScroll=t=>{this.handleScroll(t.target)},this.onWindowScroll=()=>{this.handleScroll(window)},this.updatePoint=()=>{var t,e;if(!(this.lastMoveEvent&&this.lastMoveEventInfo))return;this.lastRawMoveEventInfo&&(this.lastMoveEventInfo=rS(this.lastRawMoveEventInfo,this.transformPagePoint));let i=rP(this.lastMoveEventInfo,this.history),n=null!==this.startEvent,r=(t=i.offset,e={x:0,y:0},Math.sqrt(rE(t.x,e.x)**2+rE(t.y,e.y)**2)>=this.distanceThreshold);if(!n&&!r)return;let{point:s}=i,{timestamp:o}=tD;this.history.push({...s,timestamp:o});let{onStart:a,onMove:l}=this.handlers;n||(a&&a(this.lastMoveEvent,i),this.startEvent=this.lastMoveEvent),l&&l(this.lastMoveEvent,i)},this.handlePointerMove=(t,e)=>{this.lastMoveEvent=t,this.lastRawMoveEventInfo=e,this.lastMoveEventInfo=rS(e,this.transformPagePoint),t_.update(this.updatePoint,!0)},this.handlePointerUp=(t,e)=>{this.end();let{onEnd:i,onSessionEnd:n,resumeAnimation:r}=this.handlers;if((this.dragSnapToOrigin||!this.startEvent)&&r&&r(),!(this.lastMoveEvent&&this.lastMoveEventInfo))return;let s=rP("pointercancel"===t.type?this.lastMoveEventInfo:rS(e,this.transformPagePoint),this.history);this.startEvent&&i&&i(t,s),n&&n(t,s)},!rf(t))return;this.dragSnapToOrigin=r,this.handlers=e,this.transformPagePoint=i,this.distanceThreshold=s,this.contextWindow=n||window;let a=rS(rm(t),this.transformPagePoint),{point:l}=a,{timestamp:u}=tD;this.history=[{...l,timestamp:u}];let{onSessionStart:h}=e;h&&h(t,rP(a,this.history)),this.removeListeners=iz(ry(this.contextWindow,"pointermove",this.handlePointerMove),ry(this.contextWindow,"pointerup",this.handlePointerUp),ry(this.contextWindow,"pointercancel",this.handlePointerUp)),o&&this.startScrollTracking(o)}startScrollTracking(t){let e=t.parentElement;for(;e;){let t=getComputedStyle(e);(rb.has(t.overflowX)||rb.has(t.overflowY))&&this.scrollPositions.set(e,{x:e.scrollLeft,y:e.scrollTop}),e=e.parentElement}this.scrollPositions.set(window,{x:window.scrollX,y:window.scrollY}),window.addEventListener("scroll",this.onElementScroll,{capture:!0}),window.addEventListener("scroll",this.onWindowScroll),this.removeScrollListeners=()=>{window.removeEventListener("scroll",this.onElementScroll,{capture:!0}),window.removeEventListener("scroll",this.onWindowScroll)}}handleScroll(t){let e=this.scrollPositions.get(t);if(!e)return;let i=t===window,n=i?{x:window.scrollX,y:window.scrollY}:{x:t.scrollLeft,y:t.scrollTop},r={x:n.x-e.x,y:n.y-e.y};(0!==r.x||0!==r.y)&&(i?this.lastMoveEventInfo&&(this.lastMoveEventInfo.point.x+=r.x,this.lastMoveEventInfo.point.y+=r.y):this.history.length>0&&(this.history[0].x-=r.x,this.history[0].y-=r.y),this.scrollPositions.set(t,n),t_.update(this.updatePoint,!0))}updateHandlers(t){this.handlers=t}end(){this.removeListeners&&this.removeListeners(),this.removeScrollListeners&&this.removeScrollListeners(),this.scrollPositions.clear(),tO(this.updatePoint)}}function rS(t,e){return e?{point:e(t.point)}:t}function rw(t,e){return{x:t.x-e.x,y:t.y-e.y}}function rP({point:t},e){return{point:t,delta:rw(t,rA(e)),offset:rw(t,e[0]),velocity:function(t,e){if(t.length<2)return{x:0,y:0};let i=t.length-1,n=null,r=rA(t);for(;i>=0&&(n=t[i],!(r.timestamp-n.timestamp>tZ(.1)));)i--;if(!n)return{x:0,y:0};n===t[0]&&t.length>2&&r.timestamp-n.timestamp>2*tZ(.1)&&(n=t[1]);let s=t$(r.timestamp-n.timestamp);if(0===s)return{x:0,y:0};let o={x:(r.x-n.x)/s,y:(r.y-n.y)/s}
1;return o.x===1/0&&(o.x=0),o.y===1/0&&(o.y=0),o}(e,.1)}}function rA(t){return t[t.length-1]}function rx(t,e,i){return{min:void 0!==e?t.min+e:void 0,max:void 0!==i?t.max+i-(t.max-t.min):void 0}}function rM(t,e){let i=e.min-t.min,n=e.max-t.max;return e.max-e.min<t.max-t.min&&([i,n]=[n,i]),{min:i,max:n}}function rC(t,e,i){return{min:rL(t,e),max:rL(t,i)}}function rL(t,e){return"number"==typeof t?t:t[e]||0}let rR=new WeakMap;class rB{constructor(t){this.openDragLock=null,this.isDragging=!1,this.currentDirection=null,this.originPoint={x:0,y:0},this.constraints=!1,this.hasMutatedConstraints=!1,this.elastic=q(),this.latestPointerEvent=null,this.latestPanInfo=null,this.visualElement=t}start(t,{snapToCursor:e=!1,distanceThreshold:i}={}){let{presenceContext:n}=this.visualElement;if(n&&!1===n.isPresent)return;let{dragSnapToOrigin:r}=this.getProps();this.panSession=new rT(t,{onSessionStart:t=>{e&&this.snapToCursor(rm(t).point),this.stopAnimation()},onStart:(t,e)=>{let{drag:i,dragPropagation:n,onDragStart:r}=this.getProps();if(i&&!n&&(this.openDragLock&&this.openDragLock(),this.openDragLock="x"===i||"y"===i?n2[i]?null:(n2[i]=!0,()=>{n2[i]=!1}):n2.x||n2.y?null:(n2.x=n2.y=!0,()=>{n2.x=n2.y=!1}),!this.openDragLock))return;this.latestPointerEvent=t,this.latestPanInfo=e,this.isDragging=!0,this.currentDirection=null,this.resolveConstraints(),this.visualElement.projection&&(this.visualElement.projection.isAnimationBlocked=!0,this.visualElement.projection.target=void 0),n3(t=>{let e=this.getAxisMotionValue(t).get()||0;if(w.test(e)){let{projection:i}=this.visualElement;if(i&&i.layout){let n=i.layout.layoutBox[t];if(n){let t=n5(n);e=parseFloat(e)/100*t}}}this.originPoint[t]=e}),r&&t_.update(()=>r(t,e),!1,!0),iU(this.visualElement,"transform");let{animationState:s}=this.visualElement;s&&s.setActive("whileDrag",!0)},onMove:(t,e)=>{this.latestPointerEvent=t,this.latestPanInfo=e;let{dragPropagation:i,dragDirectionLock:n,onDirectionLock:r,onDrag:s}=this.getProps();if(!i&&!this.openDragLock)return;let{offset:o}=e;if(n&&null===this.currentDirection){this.currentDirection=function(t,e=10){let i=null;return Math.abs(t.y)>e?i="y":Math.abs(t.x)>e&&(i="x"),i}(o),null!==this.currentDirection&&r&&r(this.currentDirection);return}this.updateAxis("x",e.point,o),this.updateAxis("y",e.point,o),this.visualElement.render(),s&&t_.update(()=>s(t,e),!1,!0)},onSessionEnd:(t,e)=>{this.latestPointerEvent=t,this.latestPanInfo=e,this.stop(t,e),this.latestPointerEvent=null,this.latestPanInfo=null},resumeAnimation:()=>{let{dragSnapToOrigin:t}=this.getProps();(t||this.constraints)&&this.startAnimation({x:0,y:0})}},{transformPagePoint:this.visualElement.getTransformPagePoint(),dragSnapToOrigin:r,distanceThreshold:i,contextWindow:rv(this.visualElement),element:this.visualElement.current})}stop(t,e){let i=t||this.latestPointerEvent,n=e||this.latestPanInfo,r=this.isDragging;if(this.cancel(),!r||!n||!i)return;let{velocity:s}=n;this.startAnimation(s);let{onDragEnd:o}=this.getProps();o&&t_.postRender(()=>o(i,n))}cancel(){this.isDragging=!1;let{projection:t,animationState:e}=this.visualElement;t&&(t.isAnimationBlocked=!1),this.endPanSession();let{dragPropagation:i}=this.getProps();!i&&this.openDragLock&&(this.openDragLock(),this.openDragLock=null),e&&e.setActive("whileDrag",!1)}endPanSession(){this.panSession&&this.panSession.end(),this.panSession=void 0}updateAxis(t,e,i){let{drag:n}=this.getProps();if(!i||!r_(t,n,this.currentDirection))return;let r=this.getAxisMotionValue(t),s=this.originPoint[t]+i[t];this.constraints&&this.constraints[t]&&(s=function(t,{min:e,max:i},n){return void 0!==e&&t<e?t=n?eK(e,t,n.min):Math.max(t,e):void 0!==i&&t>i&&(t=n?eK(i,t,n.max):Math.min(t,i)),t}(s,this.constraints[t],this.elastic[t])),r.set(s)}resolveConstraints(){let{dragConstraints:t,dragElastic:e}=this.getProps(),i=this.visualElement.projection&&!this.visualElement.projection.layout?this.visualElement.projection.measure(!1):this.visualElement.projection?.layout,n=this.constraints;t&&iO(t)?this.constraints||(this.constraints=this.resolveRefConstraints()):t&&i?this.constraints=function(t,{top:e,left:i,bottom:n,right:r}){return{x:rx(t.x,i,r),y:rx(t.y,e,n)}}(i.layoutBox,t):this.constraints=!1,this.elastic=function(t=.35){return!1===t?t=0:!0===t&&(t=.35),{x:rC(t,"left","right"),y:rC(t,"top","bottom")}}(e),n!==this.constraints&&!iO(t)&&i&&this.constraints&&!this.hasMutatedConstraints&&n3(t=>{!1!==this.constraints&&this.getAxisMotionValue(t)&&(this.constraints[t]=function(t,e){let i={};return void 0!==e.min&&(i.min=e.min-t.min),void 0!==e.max&&(i.max=e.max-t.min),i}(i.layoutBox[t],this.constraints[t]))})}resolveRefConstraints(){var t;let{dragConstraints:e,onMeasureDragConstraints:i}=this.getProps();if(!e||!iO(e))return!1;let n=e.current;tr(null!==n,"If `dragConstraints` is set as a React ref, that ref must be passed to another component's `ref` prop.","drag-constraints-ref");let{projection:r}=this.visualElement;if(!r||!r.layout)return!1;
1let s=function(t,e,i){let n=ii(t,i),{scroll:r}=e;return r&&(e4(n.x,r.offset.x),e4(n.y,r.offset.y)),n}(n,r.root,this.visualElement.getTransformPagePoint()),o={x:rM((t=r.layout.layoutBox).x,s.x),y:rM(t.y,s.y)};if(i){let t=i(function({x:t,y:e}){return{top:e.min,right:t.max,bottom:e.max,left:t.min}}(o));this.hasMutatedConstraints=!!t,t&&(o=e0(t))}return o}startAnimation(t){let{drag:e,dragMomentum:i,dragElastic:n,dragTransition:r,dragSnapToOrigin:s,onDragTransitionEnd:o}=this.getProps(),a=this.constraints||{};return Promise.all(n3(o=>{if(!r_(o,e,this.currentDirection))return;let l=a&&a[o]||{};(!0===s||s===o)&&(l={min:0,max:0});let u={type:"inertia",velocity:i?t[o]:0,bounceStiffness:n?200:1e6,bounceDamping:n?40:1e7,timeConstant:750,restDelta:1,restSpeed:10,...r,...l};return this.startAxisValueAnimation(o,u)})).then(o)}startAxisValueAnimation(t,e){let i=this.getAxisMotionValue(t);return iU(this.visualElement,t),i.start(nG(t,i,0,e,this.visualElement,!1))}stopAnimation(){n3(t=>this.getAxisMotionValue(t).stop())}getAxisMotionValue(t){let e=`_drag${t.toUpperCase()}`,i=this.visualElement.getProps();return i[e]||this.visualElement.getValue(t,(i.initial?i.initial[t]:void 0)||0)}snapToCursor(t){n3(e=>{let{drag:i}=this.getProps();if(!r_(e,i,this.currentDirection))return;let{projection:n}=this.visualElement,r=this.getAxisMotionValue(e);if(n&&n.layout){let{min:i,max:s}=n.layout.layoutBox[e],o=r.get()||0;r.set(t[e]-eK(i,s,.5)+o)}})}scalePositionWithinConstraints(){if(!this.visualElement.current)return;let{drag:t,dragConstraints:e}=this.getProps(),{projection:i}=this.visualElement;if(!iO(e)||!i||!this.constraints)return;this.stopAnimation();let n={x:0,y:0};n3(t=>{let e=this.getAxisMotionValue(t);if(e&&!1!==this.constraints){let i=e.get();n[t]=function(t,e){let i=.5,n=n5(t),r=n5(e);return r>n?i=nw(e.min,e.max-n,t.min):n>r&&(i=nw(t.min,t.max-r,e.min)),l(0,1,i)}({min:i,max:i},this.constraints[t])}});let{transformTemplate:r}=this.visualElement.getProps();this.visualElement.current.style.transform=r?r({},""):"none",i.root&&i.root.updateScroll(),i.updateLayout(),this.constraints=!1,this.resolveConstraints(),n3(e=>{if(!r_(e,t,null))return;let i=this.getAxisMotionValue(e),{min:r,max:s}=this.constraints[e];i.set(eK(r,s,n[e]))}),this.visualElement.render()}addListeners(){let t;if(!this.visualElement.current)return;rR.set(this.visualElement,this);let e=this.visualElement.current,i=ry(e,"pointerdown",t=>{let{drag:i,dragListener:n=!0}=this.getProps(),r=t.target,s=r!==e&&(re.has(r.tagName)||!0===r.isContentEditable);i&&n&&!s&&this.start(t)}),n=()=>{let{dragConstraints:i}=this.getProps();iO(i)&&i.current&&(this.constraints=this.resolveRefConstraints(),t||(t=function(t,e,i){let n=rp(t,rI(i)),r=rp(e,rI(i));return()=>{n(),r()}}(e,i.current,()=>this.scalePositionWithinConstraints())))},{projection:r}=this.visualElement,s=r.addEventListener("measure",n);r&&!r.layout&&(r.root&&r.root.updateScroll(),r.updateLayout()),t_.read(n);let o=ri(window,"resize",()=>this.scalePositionWithinConstraints()),a=r.addEventListener("didUpdate",({delta:t,hasLayoutChanged:e})=>{this.isDragging&&e&&(n3(e=>{let i=this.getAxisMotionValue(e);i&&(this.originPoint[e]+=t[e].translate,i.set(i.get()+t[e].translate))}),this.visualElement.render())});return()=>{o(),i(),s(),a&&a(),t&&t()}}getProps(){let t=this.visualElement.getProps(),{drag:e=!1,dragDirectionLock:i=!1,dragPropagation:n=!1,dragConstraints:r=!1,dragElastic:s=.35,dragMomentum:o=!0}=t;return{...t,drag:e,dragDirectionLock:i,dragPropagation:n,dragConstraints:r,dragElastic:s,dragMomentum:o}}}function rI(t){let e=!0;return()=>{if(e){e=!1;return}t()}}function r_(t,e,i){return(!0===e||e===t)&&(null===i||i===t)}class rO extends iH{constructor(t){super(t),this.removeGroupControls=tC,this.removeListeners=tC,this.controls=new rB(t)}mount(){let{dragControls:t}=this.node.getProps();t&&(this.removeGroupControls=t.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||tC}update(){let{dragControls:t}=this.node.getProps(),{dragControls:e}=this.node.prevProps||{};t!==e&&(this.removeGroupControls(),t&&(this.removeGroupControls=t.subscribe(this.controls)))}unmount(){this.removeGroupControls(),this.removeListeners(),this.controls.isDragging||this.controls.endPanSession()}}let rD=t=>(e,i)=>{t&&t_.update(()=>t(e,i),!1,!0)};class rk extends iH{constructor(){super(...arguments),this.removePointerDownListener=tC}onPointerDown(t){this.session=new rT(t,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint(),contextWindow:rv(this.node)})}createPanHandlers(){let{onPanSessionStart:t,onPanStart:e,onPan:i,onPanEnd:n}=this.node.getProps();return{onSessionStart:rD(t),onStart:rD(e),onMove:rD(i),onEnd:(t,e)=>{delete this.session,n&&t_.postRender(()=>n(t,e))}}}mount(){this.removePointerDownListener=ry(this.node.current,"pointerdown",t=>this.onPointerDown(t))}update(){this.session&&this.session.updateHandlers(this.createPanHandlers())}unmount(){this.removePointerDownListener(),this.session&&this.session.end()}}let rH={hasAnimatedSinceResize:!0,hasEverUpdated:!1};var rN=i(9637);let rV=!1;class rF extends io.Component{componentDidMount(){let{visualElement:t,layoutGroup:e,switchLayoutGroup:i,layoutId:n}=this.props,{projection:r}=t;r&&(e.group&&e.group.add(r),i&&i.register&&n&&i.register(r),rV&&r.root.didUpdate(),r.addEventListener("animationComplete",()=>{this.safeToRemove()}),r.setOptions({...r.options,layoutDependency:this.props.layoutDependency,onExitComplete:()=>this.safeToRemove()})),rH.hasEverUpdated=!0}getSnapshotBeforeUpdate(t){let{layoutDependency:e,visualElement:i,drag:n,isPresent:r}=this.props,{projection:s}=i;return s&&(s.isPresent=r,t.layoutDependency!==e&&s.setOptions({...s.options,layoutDependency:e}),rV=!0,n||t.layoutDependency!==e||void 0===e||t.isPresent!==r?s.willUpdate():this.safeToRemove(),t.isPresent===r||(r?s.promote():s.relegate()||t_.postRender(()=>{let t=s.getStack();t&&t.members.length||this.safeToRemove()}))),null}componentDidUpdate(){let{visualElement:t,layoutAnchor:e}=this.props,{projection:i}=t;i&&(i.options.layoutAnchor=e,i.root.didUpdate(),el.postRender(()=>{!i.currentAnimation&&i.isLead()&&this.safeToRemove()}))}componentWillUnmount(){let{visualElement:t,layoutGroup:e,switchLayoutGroup:i}=this.props,{projection:n}=t;rV=!0,n&&(n.scheduleCheckAfterUnmount(),e&&e.group&&e.group.remove(n),i&&i.deregister&&i.deregister(n))}safeToRemove(){let{safeToRemove:t}=this.props;t&&t()}render(){return null}}function rj(t){let[e,i]=(0,rN.oO)(),n=(0,io.useContext)(ih.p);return(0,iu.jsx)(rF,{...t,layoutGroup:n,switchLayoutGroup:(0,io.useContext)(i_),isPresent:e,safeToRemove:i})}let rU=["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"],rG=rU.length,rz=t=>"string"==typeof t?parseFloat(t):t,rW=t=>"number"==typeof t||P.test(t);function rX(t,e){return void 0!==t[e]?t[e]:t.borderRadius}let rY=rZ(0,.5,nv),rK=rZ(.5,.95,tC);function rZ(t,e,i){return n=>n<t?0:n>e?1:i(nw(t,e,n))}function r$(t,e){t.min=e.min,t.max=e.max}function rq(t,e){r$(t.x,e.x),r$(t.y,e.y)}function rJ(t,e){t.translate=e.translate,t.scale=e.scale,t.originPoint=e.originPoint,t.origin=e.origin}
1function rQ(t,e,i,n,r){return t-=e,t=n+1/i*(t-n),void 0!==r&&(t=n+1/r*(t-n)),t}function r0(t,e,[i,n,r],s,o){!function(t,e=0,i=1,n=.5,r,s=t,o=t){if(w.test(e)&&(e=parseFloat(e),e=eK(o.min,o.max,e/100)-o.min),"number"!=typeof e)return;let a=eK(s.min,s.max,n);t===s&&(a-=e),t.min=rQ(t.min,e,i,a,r),t.max=rQ(t.max,e,i,a,r)}(t,e[i],e[n],e[r],e.scale,s,o)}let r1=["x","scaleX","originX"],r2=["y","scaleY","originY"];function r3(t,e,i,n){r0(t.x,e,r1,i?i.x:void 0,n?n.x:void 0),r0(t.y,e,r2,i?i.y:void 0,n?n.y:void 0)}function r5(t){return 0===t.translate&&1===t.scale}function r6(t){return r5(t.x)&&r5(t.y)}function r8(t,e){return t.min===e.min&&t.max===e.max}function r9(t,e){return Math.round(t.min)===Math.round(e.min)&&Math.round(t.max)===Math.round(e.max)}function r4(t,e){return r9(t.x,e.x)&&r9(t.y,e.y)}function r7(t){return n5(t.x)/n5(t.y)}function st(t,e){return t.translate===e.translate&&t.scale===e.scale&&t.originPoint===e.originPoint}class se{constructor(){this.members=[]}add(t){tq(this.members,t);for(let e=this.members.length-1;e>=0;e--){let i=this.members[e];if(i===t||i===this.lead||i===this.prevLead)continue;let n=i.instance;n&&!1!==n.isConnected||i.snapshot||(tJ(this.members,i),i.unmount())}t.scheduleRender()}remove(t){if(tJ(this.members,t),t===this.prevLead&&(this.prevLead=void 0),t===this.lead){let t=this.members[this.members.length-1];t&&this.promote(t)}}relegate(t){for(let e=this.members.indexOf(t)-1;e>=0;e--){let t=this.members[e];if(!1!==t.isPresent&&t.instance?.isConnected!==!1)return this.promote(t),!0}return!1}promote(t,e){let i=this.lead;if(t!==i&&(this.prevLead=i,this.lead=t,t.show(),i)){i.updateSnapshot(),t.scheduleRender();let{layoutDependency:n}=i.options,{layoutDependency:r}=t.options;(void 0===n||n!==r)&&(t.resumeFrom=i,e&&(i.preserveOpacity=!0),i.snapshot&&(t.snapshot=i.snapshot,t.snapshot.latestValues=i.animationValues||i.latestValues),t.root?.isUpdating&&(t.isLayoutDirty=!0)),!1===t.options.crossfade&&i.hide()}}exitAnimationComplete(){this.members.forEach(t=>{t.options.onExitComplete?.(),t.resumingFrom?.options.onExitComplete?.()})}scheduleRender(){this.members.forEach(t=>t.instance&&t.scheduleRender(!1))}removeLeadSnapshot(){this.lead?.snapshot&&(this.lead.snapshot=void 0)}}let si=(t,e)=>t.depth-e.depth;class sn{constructor(){this.children=[],this.isDirty=!1}add(t){tq(this.children,t),this.isDirty=!0}remove(t){tJ(this.children,t),this.isDirty=!0}forEach(t){this.isDirty&&this.children.sort(si),this.isDirty=!1,this.children.forEach(t)}}let sr={nodes:0,calculatedTargetDeltas:0,calculatedProjections:0},ss=["","X","Y","Z"],so=0;function sa(t,e,i,n){let{latestValues:r}=e;r[t]&&(i[t]=r[t],e.setStaticValue(t,0),n&&(n[t]=0))}function sl({attachResizeListener:t,defaultParent:e,measureScroll:i,checkIsScrollRoot:n,resetTransform:r}){return class{constructor(t={},i=e?.()){this.id=so++,this.animationId=0,this.animationCommitId=0,this.children=new Set,this.options={},this.isTreeAnimating=!1,this.isAnimationBlocked=!1,this.isLayoutDirty=!1,this.isProjectionDirty=!1,this.isSharedProjectionDirty=!1,this.isTransformDirty=!1,this.updateManuallyBlocked=!1,this.updateBlockedByResize=!1,this.isUpdating=!1,this.isSVG=!1,this.needsReset=!1,this.shouldResetTransform=!1,this.hasCheckedOptimisedAppear=!1,this.treeScale={x:1,y:1},this.eventHandlers=new Map,this.hasTreeAnimated=!1,this.layoutVersion=0,this.updateScheduled=!1,this.scheduleUpdate=()=>this.update(),this.projectionUpdateScheduled=!1,this.checkUpdateFailed=()=>{this.isUpdating&&(this.isUpdating=!1,this.clearAllSnapshots())},this.updateProjection=()=>{this.projectionUpdateScheduled=!1,tB.value&&(sr.nodes=sr.calculatedTargetDeltas=sr.calculatedProjections=0),this.nodes.forEach(sc),this.nodes.forEach(sb),this.nodes.forEach(sT),this.nodes.forEach(sd),tB.addProjectionMetrics&&tB.addProjectionMetrics(sr)},this.resolvedRelativeTargetAt=0,this.linkedParentVersion=0,this.hasProjected=!1,this.isVisible=!0,this.animationProgress=0,this.sharedNodes=new Map,this.latestValues=t,this.root=i?i.root||i:this,this.path=i?[...i.path,i]:[],this.parent=i,this.depth=i?i.depth+1:0;for(let t=0;t<this.path.length;t++)this.path[t].shouldResetTransform=!0;this.root===this&&(this.nodes=new sn)}addEventListener(t,e){return this.eventHandlers.has(t)||this.eventHandlers.set(t,new tQ),this.eventHandlers.get(t).add(e)}notifyListeners(t,...e){let i=this.eventHandlers.get(t);i&&i.notify(...e)}hasListeners(t){return this.eventHandlers.has(t)}mount(e){if(this.instance)return;this.isSVG=rr(e)&&!(rr(e)&&"svg"===e.tagName),this.instance=e;let{layoutId:i,layout:n,visualElement:r}=this.options;if(r&&!r.current&&r.mount(e),this.root.nodes.add(this),this.parent&&this.parent.children.add(this),this.root.hasTreeAnimated&&(n||i)&&(this.isLayoutDirty=!0),t){let i;let n=0,r=()=>this.root.updateBlockedByResize=!1;t_.read(()=>{n=window.innerWidth}),t(e,()=>{let t=window.innerWidth;t!==n&&(n=t,this.root.updateBlockedByResize=!0,i&&i(),i=function(t,e){let i=ec.now(),n=({timestamp:e})=>{let r=e-i;r>=250&&(tO(n),t(r-250))};return t_.setup(n,!0),()=>tO(n)}(r,0),rH.hasAnimatedSinceResize&&(rH.hasAnimatedSinceResize=!1,this.nodes.forEac
1h(sE)))})}i&&this.root.registerSharedNode(i,this),!1!==this.options.animate&&r&&(i||n)&&this.addEventListener("didUpdate",({delta:t,hasLayoutChanged:e,hasRelativeLayoutChanged:i,layout:n})=>{if(this.isTreeAnimationBlocked()){this.target=void 0,this.relativeTarget=void 0;return}let s=this.options.transition||r.getDefaultTransition()||sM,{onLayoutAnimationStart:o,onLayoutAnimationComplete:a}=r.getProps(),l=!this.targetLayout||!r4(this.targetLayout,n),u=!e&&i;if(this.options.layoutRoot||this.resumeFrom||u||e&&(l||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0);let e={...iF(s,"layout"),onPlay:o,onComplete:a};(r.shouldReduceMotion||this.options.layoutRoot)&&(e.delay=0,e.type=!1),this.startAnimation(e),this.setAnimationOrigin(t,u)}else e||sE(this),this.isLead()&&this.options.onExitComplete&&this.options.onExitComplete();this.targetLayout=n})}unmount(){this.options.layoutId&&this.willUpdate(),this.root.nodes.remove(this);let t=this.getStack();t&&t.remove(this),this.parent&&this.parent.children.delete(this),this.instance=void 0,this.eventHandlers.clear(),tO(this.updateProjection)}blockUpdate(){this.updateManuallyBlocked=!0}unblockUpdate(){this.updateManuallyBlocked=!1}isUpdateBlocked(){return this.updateManuallyBlocked||this.updateBlockedByResize}isTreeAnimationBlocked(){return this.isAnimationBlocked||this.parent&&this.parent.isTreeAnimationBlocked()||!1}startUpdate(){!this.isUpdateBlocked()&&(this.isUpdating=!0,this.nodes&&this.nodes.forEach(sS),this.animationId++)}getTransformTemplate(){let{visualElement:t}=this.options;return t&&t.getProps().transformTemplate}willUpdate(t=!0){if(this.root.hasTreeAnimated=!0,this.root.isUpdateBlocked()){this.options.onExitComplete&&this.options.onExitComplete();return}if(window.MotionCancelOptimisedAnimation&&!this.hasCheckedOptimisedAppear&&function t(e){if(e.hasCheckedOptimisedAppear=!0,e.root===e)return;let{visualElement:i}=e.options;if(!i)return;let n=i.props[iI];if(window.MotionHasOptimisedAnimation(n,"transform")){let{layout:t,layoutId:i}=e.options;window.MotionCancelOptimisedAnimation(n,"transform",t_,!(t||i))}let{parent:r}=e;r&&!r.hasCheckedOptimisedAppear&&t(r)}(this),this.root.isUpdating||this.root.startUpdate(),this.isLayoutDirty)return;this.isLayoutDirty=!0;for(let t=0;t<this.path.length;t++){let e=this.path[t];e.shouldResetTransform=!0,("string"==typeof e.latestValues.x||"string"==typeof e.latestValues.y)&&(e.isLayoutDirty=!0),e.updateScroll("snapshot"),e.options.layoutRoot&&e.willUpdate(!1)}let{layoutId:e,layout:i}=this.options;if(void 0===e&&!i)return;let n=this.getTransformTemplate();this.prevTransformTemplateValue=n?n(this.latestValues,""):void 0,this.updateSnapshot(),t&&this.notifyListeners("willUpdate")}update(){if(this.updateScheduled=!1,this.isUpdateBlocked()){let t=this.updateBlockedByResize;this.unblockUpdate(),this.updateBlockedByResize=!1,this.clearAllSnapshots(),t&&this.nodes.forEach(sm),this.nodes.forEach(sf);return}if(this.animationId<=this.animationCommitId){this.nodes.forEach(sg);return}this.animationCommitId=this.animationId,this.isUpdating?(this.isUpdating=!1,this.nodes.forEach(sy),this.nodes.forEach(sv),this.nodes.forEach(su),this.nodes.forEach(sh)):this.nodes.forEach(sg),this.clearAllSnapshots();let t=ec.now();tD.delta=l(0,1e3/60,t-tD.timestamp),tD.timestamp=t,tD.isProcessing=!0,tk.update.process(tD),tk.preRender.process(tD),tk.render.process(tD),tD.isProcessing=!1}didUpdate(){this.updateScheduled||(this.updateScheduled=!0,el.read(this.scheduleUpdate))}clearAllSnapshots(){this.nodes.forEach(sp),this.sharedNodes.forEach(sw)}scheduleUpdateProjection(){this.projectionUpdateScheduled||(this.projectionUpdateScheduled=!0,t_.preRender(this.updateProjection,!1,!0))}scheduleCheckAfterUnmount(){t_.postRender(()=>{this.isLayoutDirty?this.root.didUpdate():this.root.checkUpdateFailed()})}updateSnapshot(){this.snapshot||!this.instance||(this.snapshot=this.measure(),!this.snapshot||n5(this.snapshot.measuredBox.x)||n5(this.snapshot.measuredBox.y)||(this.snapshot=void 0))}updateLayout(){if(!this.instance||(this.updateScroll(),!(this.options.alwaysMeasureLayout&&this.isLead())&&!this.isLayoutDirty))return;if(this.resumeFrom&&!this.resumeFrom.instance)for(let t=0;t<this.path.length;t++)this.path[t].updateScroll();let t=this.layout;this.layout=this.measure(!1),this.layoutVersion++,this.layoutCorrected||(this.layoutCorrected=q()),this.isLayoutDirty=!1,this.projectionDelta=void 0,this.notifyListeners("measure",this.layout.layoutBox);let{visualElement:e}=this.options;e&&e.notify("LayoutMeasure",this.layout.layoutBox,t?t.layoutBox:void 0)}updateScroll(t="measure"){let e=!!(this.options.layoutScroll&&this.instance);if(this.scroll&&this.scroll.animationId===this.root.animationId&&this.scroll.phase===t&&(e=!1),e&&this.instance){let e=n(this.instance);this.scroll={animationId:this.root.animationId,phase:t,isRoot:e,offset:i(this.instance),wasRoot:this.scroll?this.scroll.isRoot:e}}}resetTransform(){if(!r)return;let t=this.isLayoutDirty||this.shouldResetTransform||this.options.alwaysMeasureLayout,e=this.projectionDelta&&!r6(this.projectionDelta),i=this.getTransformTemplate(),n=i?i(this.latestValues,""):void 0,s=n!==this.prevTransformTemplateValue;t&&this.instance&&(e||e3(this.latestValues)||s)&&(r(this.instance,n),this.shouldResetTransform=!1,this.scheduleRender())}measure(t=!0){var e;let i=this.measurePageBox(),n=this.removeElementScroll(i);return t&&(n=this.removeTransform(n)),sR((e=n).x),sR(e.y),{animationId:this.root.animationId,measuredBox:i,layoutBox:n,latestValues:{},source:this.id}}measurePageBox(){let{visualElement:t}=this.options;if(!t)return q();let e=t.measureViewportBox();if(!(this.scroll?.wasRoot||this.path.some(sI))){let{scroll:t}=this.root;t&&(e4(e.x,t.offset.x),e4(e.y,t.offset.y))}return e}removeElementScroll(t){let e=q();if(rq(e,t),this.scroll?.wasRoot)return e;for(let i=0;i<this.path.length;i++){let n=this.path[i],{scroll:r,options:s}=n;n!==this.root&&r&&s.layoutScroll&&(r.wasRoot&&rq(e,t),e4(e.x,r.offset.x),e4(e.y,r.offset.y))}return e}applyTransform(t,e=!1,i){let n=i||q();rq(n,t);for(let t=0;t<this.path.length;t++){let i=this.path[t];!e&&i.options.layoutScroll&&i.scroll&&i!==i.root&&(e4(n.x,-i.scroll.offset.x),e4(n.y,-i.scroll.offset.y)),e3(i.latestValues)&&ie(n,i.latestValues,i.layout?.layoutBox)}return e3(this.latestValues)&&ie(n,this.latestValues,this.layout?.layoutBox),n}removeTransform(t){let e=q();rq(e,t);for(let t=0;t<this.path.length;t++){let i;let n=this.path[t];e3(n.latestValues)&&(n.instance&&(e2(n.latestValues)&&n.updateSnapshot(),rq(i=q(),n.measurePageBox())),r3(e,n.latestValues,n.snapshot?.layoutBox,i))}return e3(this.latestValues)&&r3(e,this.latestValues),e}setTargetDelta(t){this.targetDelta=t,this.root.scheduleUpdateProjection(),this.isProjectionDirty=!0}setOptions(t){this.options={...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}forceRelativeParentToResolveTarget(){this.relativeParent&&this.relativeParent.resolvedRelativeTargetAt!==tD.timestamp&&this.relativeParent.resolveTargetDelta(!0)}resolveTargetDelta(t=!1){let e=this.getLead();this.isProjectionDirty||(this.isProjectionDirty=e.isProjectionDirty),this.isTransformDirty||(this.isTransformDirty=e.isTransformDirty),this.isSharedProjectionDirty||(this.isSharedProjectionDirty=e.isSharedProjectionDirty);let i=!!this.resumingFrom||this!==e;if(!(t||i&&this.isSharedProjectionDirty||this.isProjectionDirty||this.parent?.isProjectionDirty||this.attemptToResolveRelativeTarget||this.root.updateBlockedByResize))return;let{layout:n,layoutId:r}=this.options;if(!this.layout||!(n||r))return;this.resolvedRelativeTargetAt=tD.timestamp;let s=this.getClosestProjectingParent();if(s&&this.linkedParentVersion!==s.layoutVersion&&!s.options.layoutRoot&&this.removeRelativeTarget(),this.targetDelta||this.relativeTarget||(!1!==this.options.layoutAnchor&&s&&s.layout?this.createRelativeTarget(s,this.layout.layoutBox,s.layout.layoutBox):this.removeRelativeTarget()),this.relativeTarget||this.targetDelta){if(this.target||(this.target=q(),this.targetWithTransforms=q()),this.relativeTarget&&this.relativeTargetOrigin&&this.relativeParent&&this.relativeParent.target){var o,a,l,u;this.forceRelativeParentToResolveTarget(),o=this.target,a=this.relativeTarget,l=this.relativeParent.target,u=this.options.layoutAnchor||void 0,n9(o.x,a.x,l.x,u?.x),n9(o.y,a.y,l.y,u?.y)}else this.targetDelta?(this.resumingFrom?this.applyTransform(this.layout.layoutBox,!1,this.target):rq(this.target,this.layout.layoutBox),e9(this.target,this.targetDelta)):rq(this.target,this.layout.layoutBox);this.attemptToResolveRelativeTarget&&(this.attemptToResolveRelativeTarget=!1,!1!==this.options.layoutAnchor&&s&&!!s.resumingFrom==!!this.resumingFrom&&!s.options.layoutScroll&&s.target&&1!==this.animationProgress?this.createRelativeTarget(s,this.target,s.target):this.relativeParent=this.relativeTarget=void 0),tB.value&&sr.calculatedTargetDeltas++}}getClosestProjectingParent(){return!this.parent||e2(this.parent.latestValues)||e5(this.parent.latestValues)?void 0:this.parent.isProjecting()?this.parent:this.parent.getClosestProjectingParent()}isProjecting(){return!!((this.relativeTarget||this.targetDelta||this.options.layoutRoot)&&this.layout)}createRelativeTarget(t,e,i){this.relativeParent=t,this.linkedParentVersion=t.layoutVersion,this.forceRelativeParentToResolveTarget(),this.relativeTarget=q(),this.relativeTargetOrigin=q(),n7(this.relativeTargetOrigin,e,i,this.options.layoutAnchor||void 0),rq(this.relativeTarget,this.relativeTargetOrigin)}removeRelativeTarget(){this.relativeParent=this.relativeTarget=void 0}calcProjection(){let t=this.getLead(),e=!!this.resumingFrom||this!==t,i=!0;
1if((this.isProjectionDirty||this.parent?.isProjectionDirty)&&(i=!1),e&&(this.isSharedProjectionDirty||this.isTransformDirty)&&(i=!1),this.resolvedRelativeTargetAt===tD.timestamp&&(i=!1),i)return;let{layout:n,layoutId:r}=this.options;if(this.isTreeAnimating=!!(this.parent&&this.parent.isTreeAnimating||this.currentAnimation||this.pendingAnimation),this.isTreeAnimating||(this.targetDelta=this.relativeTarget=void 0),!this.layout||!(n||r))return;rq(this.layoutCorrected,this.layout.layoutBox);let s=this.treeScale.x,o=this.treeScale.y;!function(t,e,i,n=!1){let r,s;let o=i.length;if(o){e.x=e.y=1;for(let a=0;a<o;a++){s=(r=i[a]).projectionDelta;let{visualElement:o}=r.options;(!o||!o.props.style||"contents"!==o.props.style.display)&&(n&&r.options.layoutScroll&&r.scroll&&r!==r.root&&(e4(t.x,-r.scroll.offset.x),e4(t.y,-r.scroll.offset.y)),s&&(e.x*=s.x.scale,e.y*=s.y.scale,e9(t,s)),n&&e3(r.latestValues)&&ie(t,r.latestValues,r.layout?.layoutBox))}e.x<1.0000000000001&&e.x>.999999999999&&(e.x=1),e.y<1.0000000000001&&e.y>.999999999999&&(e.y=1)}}(this.layoutCorrected,this.treeScale,this.path,e),t.layout&&!t.target&&(1!==this.treeScale.x||1!==this.treeScale.y)&&(t.target=t.layout.layoutBox,t.targetWithTransforms=q());let{target:a}=t;if(!a){this.prevProjectionDelta&&(this.createProjectionDeltas(),this.scheduleRender());return}this.projectionDelta&&this.prevProjectionDelta?(rJ(this.prevProjectionDelta.x,this.projectionDelta.x),rJ(this.prevProjectionDelta.y,this.projectionDelta.y)):this.createProjectionDeltas(),n8(this.projectionDelta,this.layoutCorrected,a,this.latestValues),this.treeScale.x===s&&this.treeScale.y===o&&st(this.projectionDelta.x,this.prevProjectionDelta.x)&&st(this.projectionDelta.y,this.prevProjectionDelta.y)||(this.hasProjected=!0,this.scheduleRender(),this.notifyListeners("projectionUpdate",a)),tB.value&&sr.calculatedProjections++}hide(){this.isVisible=!1}show(){this.isVisible=!0}scheduleRender(t=!0){if(this.options.visualElement?.scheduleRender(),t){let t=this.getStack();t&&t.scheduleRender()}this.resumingFrom&&!this.resumingFrom.instance&&(this.resumingFrom=void 0)}createProjectionDeltas(){this.prevProjectionDelta=Z(),this.projectionDelta=Z(),this.projectionDeltaWithTransform=Z()}setAnimationOrigin(t,e=!1){let i;let n=this.snapshot,r=n?n.latestValues:{},s={...this.latestValues},o=Z();this.relativeParent&&this.relativeParent.options.layoutRoot||(this.relativeTarget=this.relativeTargetOrigin=void 0),this.attemptToResolveRelativeTarget=!e;let a=q(),l=(n?n.source:void 0)!==(this.layout?this.layout.source:void 0),u=this.getStack(),h=!u||u.members.length<=1,c=!!(l&&!h&&!0===this.options.crossfade&&!this.path.some(sx));this.animationProgress=0,this.mixTargetDelta=e=>{let n=e/1e3;if(sP(o.x,t.x,n),sP(o.y,t.y,n),this.setTargetDelta(o),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout){var u,d,p,f;n7(a,this.layout.layoutBox,this.relativeParent.layout.layoutBox,this.options.layoutAnchor||void 0),p=this.relativeTarget,f=this.relativeTargetOrigin,sA(p.x,f.x,a.x,n),sA(p.y,f.y,a.y,n),i&&(u=this.relativeTarget,d=i,r8(u.x,d.x)&&r8(u.y,d.y))&&(this.isProjectionDirty=!1),i||(i=q()),rq(i,this.relativeTarget)}l&&(this.animationValues=s,function(t,e,i,n,r,s){r?(t.opacity=eK(0,i.opacity??1,rY(n)),t.opacityExit=eK(e.opacity??1,0,rK(n))):s&&(t.opacity=eK(e.opacity??1,i.opacity??1,n));for(let r=0;r<rG;r++){let s=rU[r],o=rX(e,s),a=rX(i,s);(void 0!==o||void 0!==a)&&(o||(o=0),a||(a=0),0===o||0===a||rW(o)===rW(a)?(t[s]=Math.max(eK(rz(o),rz(a),n),0),(w.test(a)||w.test(o))&&(t[s]+="%")):t[s]=a)}(e.rotate||i.rotate)&&(t.rotate=eK(e.rotate||0,i.rotate||0,n))}(s,r,this.latestValues,n,c,h)),this.root.scheduleUpdateProjection(),this.scheduleRender(),this.animationProgress=n},this.mixTargetDelta(this.options.layoutRoot?1e3:0)}startAnimation(t){this.notifyListeners("animationStart"),this.currentAnimation?.stop(),this.resumingFrom?.currentAnimation?.stop(),this.pendingAnimation&&(tO(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=t_.update(()=>{rH.hasAnimatedSinceResize=!0,t7.layout++,this.motionValue||(this.motionValue=em(0)),this.motionValue.jump(0,!1),this.currentAnimation=function(t,e,
1i){let n=J(t)?t:em(t);return n.start(nG("",n,e,i)),n.animation}(this.motionValue,[0,1e3],{...t,velocity:0,isSync:!0,onUpdate:e=>{this.mixTargetDelta(e),t.onUpdate&&t.onUpdate(e)},onStop:()=>{t7.layout--},onComplete:()=>{t7.layout--,t.onComplete&&t.onComplete(),this.completeAnimation()}}),this.resumingFrom&&(this.resumingFrom.currentAnimation=this.currentAnimation),this.pendingAnimation=void 0})}completeAnimation(){this.resumingFrom&&(this.resumingFrom.currentAnimation=void 0,this.resumingFrom.preserveOpacity=void 0);let t=this.getStack();t&&t.exitAnimationComplete(),this.resumingFrom=this.currentAnimation=this.animationValues=void 0,this.notifyListeners("animationComplete")}finishAnimation(){this.currentAnimation&&(this.mixTargetDelta&&this.mixTargetDelta(1e3),this.currentAnimation.stop()),this.completeAnimation()}applyTransformsToTarget(){let t=this.getLead(),{targetWithTransforms:e,target:i,layout:n,latestValues:r}=t;if(e&&i&&n){if(this!==t&&this.layout&&n&&sB(this.options.animationType,this.layout.layoutBox,n.layoutBox)){i=this.target||q();let e=n5(this.layout.layoutBox.x);i.x.min=t.target.x.min,i.x.max=i.x.min+e;let n=n5(this.layout.layoutBox.y);i.y.min=t.target.y.min,i.y.max=i.y.min+n}rq(e,i),ie(e,r),n8(this.projectionDeltaWithTransform,this.layoutCorrected,e,r)}}registerSharedNode(t,e){this.sharedNodes.has(t)||this.sharedNodes.set(t,new se),this.sharedNodes.get(t).add(e);let i=e.options.initialPromotionConfig;e.promote({transition:i?i.transition:void 0,preserveFollowOpacity:i&&i.shouldPreserveFollowOpacity?i.shouldPreserveFollowOpacity(e):void 0})}isLead(){let t=this.getStack();return!t||t.lead===this}getLead(){let{layoutId:t}=this.options;
1return t&&this.getStack()?.lead||this}getPrevLead(){let{layoutId:t}=this.options;return t?this.getStack()?.prevLead:void 0}getStack(){let{layoutId:t}=this.options;if(t)return this.root.sharedNodes.get(t)}promote({needsReset:t,transition:e,preserveFollowOpacity:i}={}){let n=this.getStack();n&&n.promote(this,i),t&&(this.projectionDelta=void 0,this.needsReset=!0),e&&this.setOptions({transition:e})}relegate(){let t=this.getStack();return!!t&&t.relegate(this)}resetSkewAndRotation(){let{visualElement:t}=this.options;if(!t)return;let e=!1,{latestValues:i}=t;if((i.z||i.rotate||i.rotateX||i.rotateY||i.rotateZ||i.skewX||i.skewY)&&(e=!0),!e)return;let n={};i.z&&sa("z",t,n,this.animationValues);for(let e=0;e<ss.length;e++)sa(`rotate${ss[e]}`,t,n,this.animationValues),sa(`skew${ss[e]}`,t,n,this.animationValues);for(let e in t.render(),n)t.setStaticValue(e,n[e]),this.animationValues&&(this.animationValues[e]=n[e]);t.scheduleRender()}applyProjectionStyles(t,e){if(!this.instance||this.isSVG)return;if(!this.isVisible){t.visibility="hidden";return}let i=this.getTransformTemplate();if(this.needsReset){this.needsReset=!1,t.visibility="",t.opacity="",t.pointerEvents=iS(e?.pointerEvents)||"",t.transform=i?i(this.latestValues,""):"none";return}let n=this.getLead();if(!this.projectionDelta||!this.layout||!n.target){this.options.layoutId&&(t.opacity=void 0!==this.latestValues.opacity?this.latestValues.opacity:1,t.pointerEvents=iS(e?.pointerEvents)||""),this.hasProjected&&!e3(this.latestValues)&&(t.transform=i?i({},""):"none",this.hasProjected=!1);return}t.visibility="";let r=n.animationValues||n.latestValues;this.applyTransformsToTarget();let s=function(t,e,i){let n="",r=t.x.translate/e.x,s=t.y.translate/e.y,o=i?.z||0;if((r||s||o)&&(n=`translate3d(${r}px, ${s}px, ${o}px) `),(1!==e.x||1!==e.y)&&(n+=`scale(${1/e.x}, ${1/e.y}) `),i){let{transformPerspective:t,rotate:e,rotateX:r,rotateY:s,skewX:o,skewY:a}=i;t&&(n=`perspective(${t}px) ${n}`),e&&(n+=`rotate(${e}deg) `),r&&(n+=`rotateX(${r}deg) `),s&&(n+=`rotateY(${s}deg) `),o&&(n+=`skewX(${o}deg) `),a&&(n+=`skewY(${a}deg) `)}let a=t.x.scale*e.x,l=t.y.scale*e.y;return(1!==a||1!==l)&&(n+=`scale(${a}, ${l})`),n||"none"}(this.projectionDeltaWithTransform,this.treeScale,r);i&&(s=i(r,s)),t.transform=s;let{x:o,y:a}=this.projectionDelta;for(let e in t.transformOrigin=`${100*o.origin}% ${100*a.origin}% 0`,n.animationValues?t.opacity=n===this?r.opacity??this.latestValues.opacity??1:this.preserveOpacity?this.latestValues.opacity:r.opacityExit:t.opacity=n===this?void 0!==r.opacity?r.opacity:"":void 0!==r.opacityExit?r.opacityExit:0,eZ){if(void 0===r[e])continue;let{correct:i,applyTo:o,isCSSVariable:a}=eZ[e],l="none"===s?r[e]:i(r[e],n);if(o){let e=o.length;for(let i=0;i<e;i++)t[o[i]]=l}else a?this.options.visualElement.renderState.vars[e]=l:t[e]=l}this.options.layoutId&&(t.pointerEvents=n===this?iS(e?.pointerEvents)||"":"none")}clearSnapshot(){this.resumeFrom=this.snapshot=void 0}resetTree(){this.root.nodes.forEach(t=>t.currentAnimation?.stop()),this.root.nodes.forEach(sf),this.root.sharedNodes.clear()}}}function su(t){t.updateLayout()}function sh(t){let e=t.resumeFrom?.snapshot||t.snapshot;if(t.isLead()&&t.layout&&e&&t.hasListeners("didUpdate")){let{layoutBox:i,measuredBox:n}=t.layout,{animationType:r}=t.options,s=e.source!==t.layout.source;if("size"===r)n3(t=>{let n=s?e.measuredBox[t]:e.layoutBox[t],r=n5(n);n.min=i[t].min,n.max=n.min+r});else if("x"===r||"y"===r){let t="x"===r?"y":"x";r$(s?e.measuredBox[t]:e.layoutBox[t],i[t])}else sB(r,e.layoutBox,i)&&n3(n=>{let r=s?e.measuredBox[n]:e.layoutBox[n],o=n5(i[n]);r.max=r.min+o,t.relativeTarget&&!t.currentAnimation&&(t.isProjectionDirty=!0,t.relativeTarget[n].max=t.relativeTarget[n].min+o)});let o=Z();n8(o,i,e.layoutBox);let a=Z();s?n8(a,t.applyTransform(n,!0),e.measuredBox):n8(a,i,e.layoutBox);let l=!r6(o),u=!1;if(!t.resumeFrom){let n=t.getClosestProjectingParent();if(n&&!n.resumeFrom){let{snapshot:r,layout:s}=n;if(r&&s){let o=t.options.layoutAnchor||void 0,a=q();n7(a,e.layoutBox,r.layoutBox,o);let l=q();n7(l,i,s.layoutBox,o),r4(a,l)||(u=!0),n.options.layoutRoot&&(t.relativeTarget=l,t.relativeTargetOrigin=a,t.relativeParent=n)}}}t.notifyListeners("didUpdate",{layout:i,snapshot:e,delta:a,layoutDelta:o,hasLayoutChanged:l,hasRelativeLayoutChanged:u})}else if(t.isLead()){let{onExitComplete:e}=t.options;e&&e()}t.options.transition=void 0}function sc(t){tB.value&&sr.nodes++,t.parent&&(t.isProjecting()||(t.isProjectionDirty=t.parent.isProjectionDirty),t.isSharedProjectionDirty||(t.isSharedProjectionDirty=!!(t.
1isProjectionDirty||t.parent.isProjectionDirty||t.parent.isSharedProjectionDirty)),t.isTransformDirty||(t.isTransformDirty=t.parent.isTransformDirty))}function sd(t){t.isProjectionDirty=t.isSharedProjectionDirty=t.isTransformDirty=!1}function sp(t){t.clearSnapshot()}function sf(t){t.clearMeasurements()}function sm(t){t.isLayoutDirty=!0,t.updateLayout()}function sg(t){t.isLayoutDirty=!1}function sy(t){t.isAnimationBlocked&&t.layout&&!t.isLayoutDirty&&(t.snapshot=t.layout,t.isLayoutDirty=!0)}function sv(t){let{visualElement:e}=t.options;e&&e.getProps().onBeforeLayoutMeasure&&e.notify("BeforeLayoutMeasure"),t.resetTransform()}function sE(t){t.finishAnimation(),t.targetDelta=t.relativeTarget=t.target=void 0,t.isProjectionDirty=!0}function sb(t){t.resolveTargetDelta()}function sT(t){t.calcProjection()}function sS(t){t.resetSkewAndRotation()}function sw(t){t.removeLeadSnapshot()}function sP(t,e,i){t.translate=eK(e.translate,0,i),t.scale=eK(e.scale,1,i),t.origin=e.origin,t.originPoint=e.originPoint}function sA(t,e,i,n){t.min=eK(e.min,i.min,n),t.max=eK(e.max,i.max,n)}function sx(t){return t.animationValues&&void 0!==t.animationValues.opacityExit}let sM={duration:.45,ease:[.4,0,.1,1]},sC=t=>"undefined"!=typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().includes(t),sL=sC("applewebkit/")&&!sC("chrome/")?Math.round:tC;function sR(t){t.min=sL(t.min),t.max=sL(t.max)}function sB(t,e,i){return"position"===t||"preserve-aspect"===t&&!(.2>=Math.abs(r7(e)-r7(i)))}function sI(t){return t!==t.root&&t.scroll?.wasRoot}let s_=sl({attachResizeListener:(t,e)=>ri(t,"resize",e),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body?.scrollLeft||0,y:document.documentElement.scrollTop||document.body?.scrollTop||0}),checkIsScrollRoot:()=>!0}),sO={current:void 0},sD=sl({measureScroll:t=>({x:t.scrollLeft,y:t.scrollTop}),defaultParent:()=>{if(!sO.current){let t=new s_({});t.mount(window),t.setOptions({layoutScroll:!0}),sO.current=t}return sO.current},resetTransform:(t,e)=>{t.style.transform=void 0!==e?e:"none"},checkIsScrollRoot:t=>"fixed"===window.getComputedStyle(t).position});function sk(t,e){let i=(0,rs.I)(t),n=new AbortController;return[i,{passive:!0,...e,signal:n.signal},()=>n.abort()]}function sH(t,e,i){let{props:n}=t;t.animationState&&n.whileHover&&t.animationState.setActive("whileHover","Start"===i);let r=n["onHover"+i];r&&t_.postRender(()=>r(e,rm(e)))}class sN extends iH{mount(){let{current:t}=this.node;t&&(this.unmount=function(t,e,i={}){let[n,r,s]=sk(t,i);return n.forEach(t=>{let i,n=!1,s=!1,o=()=>{t.removeEventListener("pointerleave",u)},a=t=>{i&&(i(t),i=void 0),o()},l=t=>{n=!1,window.removeEventListener("pointerup",l),window.removeEventListener("pointercancel",l),s&&(s=!1,a(t))},u=t=>{if("touch"!==t.pointerType){if(n){s=!0;return}a(t)}};t.addEventListener("pointerenter",n=>{if("touch"===n.pointerType||n2.x||n2.y)return;s=!1;let o=e(t,n);"function"==typeof o&&(i=o,t.addEventListener("pointerleave",u,r))},r),t.addEventListener("pointerdown",()=>{n=!0,window.addEventListener("pointerup",l,r),window.addEventListener("pointercancel",l,r)},r)}),s}(t,(t,e)=>(sH(this.node,e,"Start"),t=>sH(this.node,t,"End"))))}unmount(){}}class sV extends iH{constructor(){super(...arguments),this.isActive=!1}onFocus(){let t=!1;try{t=this.node.current.matches(":focus-visible")}catch(e){t=!0}t&&this.node.animationState&&(this.node.animationState.setActive("whileFocus",!0),this.isActive=!0)}onBlur(){this.isActive&&this.node.animationState&&(this.node.animationState.setActive("whileFocus",!1),this.isActive=!1)}mount(){this.unmount=iz(ri(this.node.current,"focus",()=>this.onFocus()),ri(this.node.current,"blur",()=>this.onBlur()))}unmount(){}}var sF=i(3537);let sj=(t,e)=>!!e&&(t===e||sj(t,e.parentElement)),sU=new WeakSet;function sG(t){return e=>{"Enter"===e.key&&t(e)}}function sz(t,e){t.dispatchEvent(new PointerEvent("pointer"+e,{isPrimary:!0,bubbles:!0}))}let sW=(t,e)=>{let i=t.currentTarget;if(!i)return;let n=sG(()=>{if(sU.has(i))return;sz(i,"down");let t=sG(()=>{sz(i,"up")});i.addEventListener("keyup",t,e),i.addEventListener("blur",()=>sz(i,"cancel"),e)});i.addEventListener("keydown",n,e),i.addEventListener("blur",()=>i.removeEventListener("keydown",n),e)};function sX(t){return rf(t)&&!(n2.x||n2.y)}let sY=new WeakSet;function sK(t,e,i){let{props:n}=t;if(t.current instanceof HTMLButtonElement&&t.current.disabled)return;t.animationState&&n.whileTap&&t.animationState.setActive("whileTap","Start"===i);let r=n["onTap"+("End"===i?"":i)];r&&t_.postRender(()=>r(e,rm(e)))}class sZ extends iH{mount(){let{current:t}=this.node;if(!t)return;let{globalTapTarget:e,propagate:i}=this.node.props;
1this.unmount=function(t,e,i={}){let[n,r,s]=sk(t,i),o=t=>{let n=t.currentTarget;if(!sX(t)||sY.has(t))return;sU.add(n),i.stopPropagation&&sY.add(t);let s=e(n,t),o=(t,e)=>{window.removeEventListener("pointerup",a),window.removeEventListener("pointercancel",l),sU.has(n)&&sU.delete(n),sX(t)&&"function"==typeof s&&s(t,{success:e})},a=t=>{o(t,n===window||n===document||i.useGlobalTarget||sj(n,t.target))},l=t=>{o(t,!1)};window.addEventListener("pointerup",a,r),window.addEventListener("pointercancel",l,r)};return n.forEach(t=>{(i.useGlobalTarget?window:t).addEventListener("pointerdown",o,r),(0,sF.R)(t)&&(t.addEventListener("focus",t=>sW(t,r)),rt.has(t.tagName)||!0===t.isContentEditable||t.hasAttribute("tabindex")||(t.tabIndex=0))}),s}(t,(t,e)=>(sK(this.node,e,"Start"),(t,{success:e})=>sK(this.node,t,e?"End":"Cancel")),{useGlobalTarget:e,stopPropagation:i?.tap===!1})}unmount(){}}let s$=new WeakMap,sq=new WeakMap,sJ=t=>{let e=s$.get(t.target);e&&e(t)},sQ=t=>{t.forEach(sJ)},s0={some:0,all:1};class s1 extends iH{constructor(){super(...arguments),this.hasEnteredView=!1,this.isInView=!1}startObserver(){this.stopObserver?.();let{viewport:t={}}=this.node.getProps(),{root:e,margin:i,amount:n="some",once:r}=t,s={root:e?e.current:void 0,rootMargin:i,threshold:"number"==typeof n?n:s0[n]};this.stopObserver=function(t,e,i){let n=function({root:t,...e}){let i=t||document;sq.has(i)||sq.set(i,{});
1let n=sq.get(i),r=JSON.stringify(e);return n[r]||(n[r]=new IntersectionObserver(sQ,{root:t,...e})),n[r]}(e);return s$.set(t,i),n.observe(t),()=>{s$.delete(t),n.unobserve(t)}}(this.node.current,s,t=>{let{isIntersecting:e}=t;if(this.isInView===e||(this.isInView=e,r&&!e&&this.hasEnteredView))return;e&&(this.hasEnteredView=!0),this.node.animationState&&this.node.animationState.setActive("whileInView",e);let{onViewportEnter:i,onViewportLeave:n}=this.node.getProps(),s=e?i:n;s&&s(t)})}mount(){this.startObserver()}update(){if("undefined"==typeof IntersectionObserver)return;let{props:t,prevProps:e}=this.node;["amount","margin","root"].some(function({viewport:t={}},{viewport:e={}}={}){return i=>t[i]!==e[i]}(t,e))&&this.startObserver()}unmount(){this.stopObserver?.(),this.hasEnteredView=!1,this.isInView=!1}}let s2=function(t,e){if("undefined"==typeof Proxy)return ik;let i=new Map,n=(i,n)=>ik(i,n,t,e);return new Proxy((t,e)=>n(t,e),{get:(r,s)=>"create"===s?n:(i.has(s)||i.set(s,ik(s,void 0,t,e)),i.get(s))})}({animation:{Feature:nQ},exit:{Feature:n1},inView:{Feature:s1},tap:{Feature:sZ},focus:{Feature:sV},hover:{Feature:sN},pan:{Feature:rk},drag:{Feature:rO,ProjectionNode:sD,MeasureLayout:rj},layout:{ProjectionNode:sD,MeasureLayout:rj}},(t,e)=>e.isSVG??il(t)?new eQ(e):new ir(e,{allowProjection:t!==io.Fragment}))},3576:function(t,e,i){i.d(e,{h:function(){return r}});var n=i(2265);function r(t){let e=(0,n.useRef)(null);return null===e.current&&(e.current=t()),e.current}},2014:function(t,e,i){i.d(e,{L:function(){return r}});var n=i(2265);let r="undefined"!=typeof window?n.useLayoutEffect:n.useEffect},3537:function(t,e,i){i.d(e,{R:function(){return r}});var n=i(1464);function r(t){return(0,n.K)(t)&&"offsetHeight"in t&&!("ownerSVGElement"in t)}},9960:function(t,e,i){i.d(e,{I:function(){return n}});function n(t,e,i){if(null==t)return[];if(t instanceof EventTarget)return[t];if("string"==typeof t){let n=document;e&&(n=e.current);let r=i?.[t]??n.querySelectorAll(t);return r?Array.from(r):[]}return Array.from(t).filter(t=>null!=t)}},1464:function(t,e,i){i.d(e,{K:function(){return n}});function n(t){return"object"==typeof t&&null!==t}}}]);

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.