vendor: 4,855 bytes, line 1
1var LV=Object.create;var xp=Object.defineProperty;var CV=Object.getOwnPropertyDescriptor;var PV=Object.getOwnPropertyNames;var DV=Object.getPrototypeOf,vV=Object.prototype.hasOwnProperty;var xV=(e,t,n)=>t in e?xp(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n;var MV=(e=>typeof require<"u"?require:typeof Proxy<"u"?new Proxy(e,{get:(t,n)=>(typeof require<"u"?require:t)[n]}):e)(function(e){if(typeof require<"u")return require.apply(this,arguments);throw new Error('Dynamic require of "'+e+'" is not supported')});var Qt=(e,t)=>()=>(e&&(t=e(e=0)),t);var ar=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),GV=(e,t)=>{for(var n in t)xp(e,n,{get:t[n],enumerable:!0})},kV=(e,t,n,r)=>{if(t&&typeof t=="object"||typeof t=="function")for(let o of PV(t))!vV.call(e,o)&&o!==n&&xp(e,o,{get:()=>t[o],enumerable:!(r=CV(t,o))||r.enumerable});return e};var v=(e,t,n)=>(n=e!=null?LV(DV(e)):{},kV(t||!e||!e.__esModule?xp(n,"default",{value:e,enumerable:!0}):n,e));var Po=(e,t,n)=>(xV(e,typeof t!="symbol"?t+"":t,n),n);var iy=ar(Ie=>{"use strict";var _d=Symbol.for("react.element"),FV=Symbol.for("react.portal"),wV=Symbol.for("react.fragment"),BV=Symbol.for("react.strict_mode"),UV=Symbol.for("react.profiler"),VV=Symbol.for("react.provider"),HV=Symbol.for("react.context"),WV=Symbol.for("react.forward_ref"),YV=Symbol.for("react.suspense"),KV=Symbol.for("react.memo"),zV=Symbol.for("react.lazy"),jN=Symbol.iterator;function XV(e){return e===null||typeof e!="object"?null:(e=jN&&e[jN]||e["@@iterator"],typeof e=="function"?e:null)}var JN={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},qN=Object.assign,QN={};function Yl(e,t,n){this.props=e,this.context=t,this.refs=QN,this.updater=n||JN}Yl.prototype.isReactComponent={};Yl.prototype.setState=function(e,t){if(typeof e!="object"&&typeof e!="function"&&e!=null)throw Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,e,t,"setState")};Yl.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")};function ey(){}ey.prototype=Yl.prototype;function fO(e,t,n){this.props=e,this.context=t,this.refs=QN,this.updater=n||JN}var pO=fO.prototype=new ey;pO.constructor=fO;qN(pO,Yl.prototype);pO.isPureReactComponent=!0;var $N=Array.isArray,ty=Object.prototype.hasOwnProperty,mO={current:null},ny={key:!0,ref:!0,__self:!0,__source:!0};function ry(e,t,n){var r,o={},i=null,s=null;if(t!=null)for(r in t.ref!==void 0&&(s=t.ref),t.key!==void 0&&(i=""+t.key),t)ty.call(t,r)&&!ny.hasOwnProperty(r)&&(o[r]=t[r]);var a=arguments.length-2;if(a===1)o.children=n;else if(1<a){for(var l=Array(a),u=0;u<a;u++)l[u]=arguments[u+2];o.children=l}if(e&&e.defaultProps)for(r in a=e.defaultProps,a)o[r]===void 0&&(o[r]=a[r]);return{$$typeof:_d,type:e,key:i,ref:s,props:o,_owner:mO.current}}function jV(e,t){return{$$typeof:_d,type:e.type,key:t,ref:e.ref,props:e.props,_owner:e._owner}}function EO(e){return typeof e=="object"&&e!==null&&e.$$typeof===_d}function $V(e){var t={"=":"=0",":":"=2"};return"$"+e.replace(/[=:]/g,function(n){return t[n]})}var ZN=/\/+/g;function dO(e,t){return typeof e=="object"&&e!==null&&e.key!=null?$V(""+e.key):t.toString(36)}function Gp(e,t,n,r,o){var i=typeof e;(i==="undefined"||i==="boolean")&&(e=null);var s=!1;if(e===null)s=!0;else switch(i){case"string":case"number":s=!0;break;case"object":switch(e.$$typeof){case _d:case FV:s=!0}}if(s)return s=e,o=o(s),e=r===""?"."+dO(s,0):r,$N(o)?(n="",e!=null&&(n=e.replace(ZN,"$&/")+"/"),Gp(o,t,n,"",function(u){return u})):o!=null&&(EO(o)&&(o=jV(o,n+(!o.key||s&&s.key===o.key?"":(""+o.key).replace(ZN,"$&/")+"/")+e)),t.push(o)),1;if(s=0,r=r===""?".":r+":",$N(e))for(var a=0;a<e.length;a++){i=e[a];var l=r+dO(i,a);s+=Gp(i,t,n,l,o)}else if(l=XV(e),typeof l=="function")for(e=l.call(e),a=0;!(i=e.next()).done;)i=i.value,l=r+dO(i,a++),s+=Gp(i,t,n,l,o);else if(i==="object")throw t=String(e),Error("Objects are not valid as a React child (found: "+(t==="[object Object]"?"object with keys {"+Object.keys(e).join(", ")+"}":t)+"). If you meant to render a collection of children, use an array instead.");return s}function Mp(e,t,n){if(e==null)return e;var r=[],o=0;return Gp(e,r,"","",function(i){return t.call(n,i,o++)}),r}function ZV(e){if(e._status===-1){var t=e._result;t=t(),t.then(function(n){(e._status===0||e._status===-1)&&(e._status=1,e._result=n)},function(n){(e._status===0||e._status===-1)&&(e._status=2,e._result=n)}),e._status===-1&&(e._status=0,e._result=t)}if(e._status===1)return e._result.default;throw e._result}var Cn={current:null},kp={transition:null},JV={ReactCurrentDispatcher:Cn,ReactCurrentBatchConfig:kp,ReactCurrentOwner:mO};function oy(){throw Error("act(...) is not supported in production builds of React.")}
vendor: 8,927 bytes, line 1
1Ie.Children={map:Mp,forEach:function(e,t,n){Mp(e,function(){t.apply(this,arguments)},n)},count:function(e){var t=0;return Mp(e,function(){t++}),t},toArray:function(e){return Mp(e,function(t){return t})||[]},only:function(e){if(!EO(e))throw Error("React.Children.only expected to receive a single React element child.");return e}};Ie.Component=Yl;Ie.Fragment=wV;Ie.Profiler=UV;Ie.PureComponent=fO;Ie.StrictMode=BV;Ie.Suspense=YV;Ie.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=JV;Ie.act=oy;Ie.cloneElement=function(e,t,n){if(e==null)throw Error("React.cloneElement(...): The argument must be a React element, but you passed "+e+".");var r=qN({},e.props),o=e.key,i=e.ref,s=e._owner;if(t!=null){if(t.ref!==void 0&&(i=t.ref,s=mO.current),t.key!==void 0&&(o=""+t.key),e.type&&e.type.defaultProps)var a=e.type.defaultProps;for(l in t)ty.call(t,l)&&!ny.hasOwnProperty(l)&&(r[l]=t[l]===void 0&&a!==void 0?a[l]:t[l])}var l=arguments.length-2;if(l===1)r.children=n;else if(1<l){a=Array(l);for(var u=0;u<l;u++)a[u]=arguments[u+2];r.children=a}return{$$typeof:_d,type:e.type,key:o,ref:i,props:r,_owner:s}};Ie.createContext=function(e){return e={$$typeof:HV,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null},e.Provider={$$typeof:VV,_context:e},e.Consumer=e};Ie.createElement=ry;Ie.createFactory=function(e){var t=ry.bind(null,e);return t.type=e,t};Ie.createRef=function(){return{current:null}};Ie.forwardRef=function(e){return{$$typeof:WV,render:e}};Ie.isValidElement=EO;Ie.lazy=function(e){return{$$typeof:zV,_payload:{_status:-1,_result:e},_init:ZV}};Ie.memo=function(e,t){return{$$typeof:KV,type:e,compare:t===void 0?null:t}};Ie.startTransition=function(e){var t=kp.transition;kp.transition={};try{e()}finally{kp.transition=t}};Ie.unstable_act=oy;Ie.useCallback=function(e,t){return Cn.current.useCallback(e,t)};Ie.useContext=function(e){return Cn.current.useContext(e)};Ie.useDebugValue=function(){};Ie.useDeferredValue=function(e){return Cn.current.useDeferredValue(e)};Ie.useEffect=function(e,t){return Cn.current.useEffect(e,t)};Ie.useId=function(){return Cn.current.useId()};Ie.useImperativeHandle=function(e,t,n){return Cn.current.useImperativeHandle(e,t,n)};Ie.useInsertionEffect=function(e,t){return Cn.current.useInsertionEffect(e,t)};Ie.useLayoutEffect=function(e,t){return Cn.current.useLayoutEffect(e,t)};Ie.useMemo=function(e,t){return Cn.current.useMemo(e,t)};Ie.useReducer=function(e,t,n){return Cn.current.useReducer(e,t,n)};Ie.useRef=function(e){return Cn.current.useRef(e)};Ie.useState=function(e){return Cn.current.useState(e)};Ie.useSyncExternalStore=function(e,t,n){return Cn.current.useSyncExternalStore(e,t,n)};Ie.useTransition=function(){return Cn.current.useTransition()};Ie.version="18.3.1"});var W=ar((rZ,sy)=>{"use strict";sy.exports=iy()});var _y=ar(je=>{"use strict";function OO(e,t){var n=e.length;e.push(t);e:for(;0<n;){var r=n-1>>>1,o=e[r];if(0<Fp(o,t))e[r]=t,e[n]=o,n=r;else break e}}function ro(e){return e.length===0?null:e[0]}function Bp(e){if(e.length===0)return null;var t=e[0],n=e.pop();if(n!==t){e[0]=n;e:for(var r=0,o=e.length,i=o>>>1;r<i;){var s=2*(r+1)-1,a=e[s],l=s+1,u=e[l];if(0>Fp(a,n))l<o&&0>Fp(u,a)?(e[r]=u,e[l]=n,r=l):(e[r]=a,e[s]=n,r=s);else if(l<o&&0>Fp(u,n))e[r]=u,e[l]=n,r=l;else break e}}return t}function Fp(e,t){var n=e.sortIndex-t.sortIndex;return n!==0?n:e.id-t.id}typeof performance=="object"&&typeof performance.now=="function"?(ay=performance,je.unstable_now=function(){return ay.now()}):(_O=Date,ly=_O.now(),je.unstable_now=function(){return _O.now()-ly});var ay,_O,ly,Do=[],ji=[],qV=1,xr=null,mn=3,Up=!1,fa=!1,hd=!1,dy=typeof setTimeout=="function"?setTimeout:null,fy=typeof clearTimeout=="function"?clearTimeout:null,uy=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function gO(e){for(var t=ro(ji);t!==null;){if(t.callback===null)Bp(ji);else if(t.startTime<=e)Bp(ji),t.sortIndex=t.expirationTime,OO(Do,t);else break;t=ro(ji)}}function IO(e){if(hd=!1,gO(e),!fa)if(ro(Do)!==null)fa=!0,RO(SO);else{var t=ro(ji);t!==null&&AO(IO,t.startTime-e)}}function SO(e,t){fa=!1,hd&&(hd=!1,fy(Od),Od=-1),Up=!0;var n=mn;try{for(gO(t),xr=ro(Do);xr!==null&&(!(xr.expirationTime>t)||e&&!Ey());){var r=xr.callback;if(typeof r=="function"){xr.callback=null,mn=xr.priorityLevel;var o=r(xr.expirationTime<=t);t=je.unstable_now(),typeof o=="function"?xr.callback=o:xr===ro(Do)&&Bp(Do),gO(t)}else Bp(Do);xr=ro(Do)}if(xr!==null)var i=!0;else{var s=ro(ji);s!==null&&AO(IO,s.startTime-t),i=!1}return i}finally{xr=null,mn=n,Up=!1}}var Vp=!1,wp=null,Od=-1,py=5,my=-1;function Ey(){return!(je.unstable_now()-my<py)}function TO(){if(wp!==null){var e=je.unstable_now();my=e;var t=!0;try{t=wp(!0,e)}finally{t?Td():(Vp=!1,wp=null)}}else Vp=!1}var Td;typeof uy=="function"?Td=function(){uy(TO)}:typeof MessageChannel<"u"?(hO=new MessageChannel,cy=hO.port2,hO.port1.onmessage=TO,Td=function(){cy.postMessage(null)}):Td=function(){dy(TO,0)};var hO,cy;function RO(e){wp=e,Vp||(Vp=!0,Td())}function AO(e,t){Od=dy(function(){e(je.unstable_now())},t)}je.unstable_IdlePriority=5;je.unstable_ImmediatePriority=1;je.unstable_LowPriority=4;je.unstable_NormalPriority=3;je.unstable_Profiling=null;je.unstable_UserBlockingPriority=2;je.unstable_cancelCallback=function(e){e.callback=null};je.unstable_continueExecution=function(){fa||Up||(fa=!0,RO(SO))};je.unstable_forceFrameRate=function(e){0>e||125<e?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):py=0<e?Math.floor(1e3/e):5};je.unstable_getCurrentPriorityLevel=function(){return mn};je.unstable_getFirstCallbackNode=function(){return ro(Do)};je.unstable_next=function(e){switch(mn){case 1:case 2:case 3:var t=3;break;default:t=mn}var n=mn;mn=t;try{return e()}finally{mn=n}};je.unstable_pauseExecution=function(){};je.unstable_requestPaint=function(){};je.unstable_runWithPriority=function(e,t){switch(e){case 1:case 2:case 3:case 4:case 5:break;default:e=3}var n=mn;mn=e;try{return t()}finally{mn=n}};je.unstable_scheduleCallback=function(e,t,n){var r=je.unstable_now();switch(typeof n=="object"&&n!==null?(n=n.delay,n=typeof n=="number"&&0<n?r+n:r):n=r,e){case 1:var o=-1;break;case 2:o=250;break;case 5:o=1073741823;break;case 4:o=1e4;break;default:o=5e3}return o=n+o,e={id:qV++,callback:t,priorityLevel:e,startTime:n,expirationTime:o,sortIndex:-1},n>r?(e.sortIndex=n,OO(ji,e),ro(Do)===null&&e===ro(ji)&&(hd?(fy(Od),Od=-1):hd=!0,AO(IO,n-r))):(e.sortIndex=o,OO(Do,e),fa||Up||(fa=!0,RO(SO))),e};je.unstable_shouldYield=Ey;je.unstable_wrapCallback=function(e){var t=mn;return function(){var n=mn;mn=t;try{return e.apply(this,arguments)}finally{mn=n}}}});var hy=ar((iZ,Ty)=>{"use strict";Ty.exports=_y()});var SC=ar(pr=>{"use strict";var QV=W(),dr=hy();function V(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,n=1;n<arguments.length;n++)t+="&args[]="+encodeURIComponent(arguments[n]);return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}var Nb=new Set,Vd={};function Na(e,t){du(e,t),du(e+"Capture",t)}function du(e,t){for(Vd[e]=t,e=0;e<t.length;e++)Nb.add(t[e])}var li=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),XO=Object.prototype.hasOwnProperty,eH=/^[:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD][:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\-.0-9\u00B7\u0300-\u036F\u203F-\u2040]*$/,Oy={},gy={};function tH(e){return XO.call(gy,e)?!0:XO.call(Oy,e)?!1:eH.test(e)?gy[e]=!0:(Oy[e]=!0,!1)}function nH(e,t,n,r){if(n!==null&&n.type===0)return!1;switch(typeof t){case"function":case"symbol":return!0;case"boolean":return r?!1:n!==null?!n.acceptsBooleans:(e=e.toLowerCase().slice(0,5),e!=="data-"&&e!=="aria-");default:return!1}}function rH(e,t,n,r){if(t===null||typeof t>"u"||nH(e,t,n,r))return!0;if(r)return!1;if(n!==null)switch(n.type){case 3:return!t;case 4:return t===!1;case 5:return isNaN(t);case 6:return isNaN(t)||1>t}return!1}function vn(e,t,n,r,o,i,s){this.acceptsBooleans=t===2||t===3||t===4,this.attributeName=r,this.attributeNamespace=o,this.mustUseProperty=n,this.propertyName=e,this.type=t,this.sanitizeURL=i,this.removeEmptyString=s}var nn={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){nn[e]=new vn(e,0,!1,e,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEac
vendor: 4,692 bytes, lines 1-2
1h(function(e){var t=e[0];nn[t]=new vn(t,1,!1,e[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(e){nn[e]=new vn(e,2,!1,e.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){nn[e]=new vn(e,2,!1,e,null,!1,!1)});"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach(function(e){nn[e]=new vn(e,3,!1,e.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(e){nn[e]=new vn(e,3,!0,e,null,!1,!1)});["capture","download"].forEach(function(e){nn[e]=new vn(e,4,!1,e,null,!1,!1)});["cols","rows","size","span"].forEach(function(e){nn[e]=new vn(e,6,!1,e,null,!1,!1)});["rowSpan","start"].forEach(function(e){nn[e]=new vn(e,5,!1,e.toLowerCase(),null,!1,!1)});var Bg=/[\-:]([a-z])/g;function Ug(e){return e[1].toUpperCase()}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach(function(e){var t=e.replace(Bg,Ug);nn[t]=new vn(t,1,!1,e,null,!1,!1)});"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(e){var t=e.replace(Bg,Ug);nn[t]=new vn(t,1,!1,e,"http://www.w3.org/1999/xlink",!1,!1)});["xml:base","xml:lang","xml:space"].forEach(function(e){var t=e.replace(Bg,Ug);nn[t]=new vn(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(function(e){nn[e]=new vn(e,1,!1,e.toLowerCase(),null,!1,!1)});nn.xlinkHref=new vn("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(function(e){nn[e]=new vn(e,1,!1,e.toLowerCase(),null,!0,!0)});function Vg(e,t,n,r){var o=nn.hasOwnProperty(t)?nn[t]:null;(o!==null?o.type!==0:r||!(2<t.length)||t[0]!=="o"&&t[0]!=="O"||t[1]!=="n"&&t[1]!=="N")&&(rH(t,n,o,r)&&(n=null),r||o===null?tH(t)&&(n===null?e.removeAttribute(t):e.setAttribute(t,""+n)):o.mustUseProperty?e[o.propertyName]=n===null?o.type===3?!1:"":n:(t=o.attributeName,r=o.attributeNamespace,n===null?e.removeAttribute(t):(o=o.type,n=o===3||o===4&&n===!0?"":""+n,r?e.setAttributeNS(r,t,n):e.setAttribute(t,n))))}var fi=QV.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,Hp=Symbol.for("react.element"),Xl=Symbol.for("react.portal"),jl=Symbol.for("react.fragment"),Hg=Symbol.for("react.strict_mode"),jO=Symbol.for("react.profiler"),yb=Symbol.for("react.provider"),bb=Symbol.for("react.context"),Wg=Symbol.for("react.forward_ref"),$O=Symbol.for("react.suspense"),ZO=Symbol.for("react.suspense_list"),Yg=Symbol.for("react.memo"),Zi=Symbol.for("react.lazy");Symbol.for("react.scope");Symbol.for("react.debug_trace_mode");var Lb=Symbol.for("react.offscreen");Symbol.for("react.legacy_hidden");Symbol.for("react.cache");Symbol.for("react.tracing_marker");var Iy=Symbol.iterator;function gd(e){return e===null||typeof e!="object"?null:(e=Iy&&e[Iy]||e["@@iterator"],typeof e=="function"?e:null)}var Et=Object.assign,NO;function Ld(e){if(NO===void 0)try{throw Error()}catch(n){var t=n.stack.trim().match(/\n( *(at )?)/);NO=t&&t[1]||""}return` 2`+NO+e}var yO=!1;function bO(e,t){if(!e||yO)return"";yO=!0;var n=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{if(t)if(t=function(){throw Error()},Object.defineProperty(t.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(t,[])}catch(u){var r=u}Reflect.construct(e,[],t)}else{try{t.call()}catch(u){r=u}e.call(t.prototype)}else{try{throw Error()}catch(u){r=u}e()}}
vendor: 6,732 bytes, lines 2-5
2catch(u){if(u&&r&&typeof u.stack=="string"){for(var o=u.stack.split(` 3`),i=r.stack.split(` 4`),s=o.length-1,a=i.length-1;1<=s&&0<=a&&o[s]!==i[a];)a--;for(;1<=s&&0<=a;s--,a--)if(o[s]!==i[a]){if(s!==1||a!==1)do if(s--,a--,0>a||o[s]!==i[a]){var l=` 5`+o[s].replace(" at new "," at ");return e.displayName&&l.includes("<anonymous>")&&(l=l.replace("<anonymous>",e.displayName)),l}while(1<=s&&0<=a);break}}}finally{yO=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?Ld(e):""}function oH(e){switch(e.tag){case 5:return Ld(e.type);case 16:return Ld("Lazy");case 13:return Ld("Suspense");case 19:return Ld("SuspenseList");case 0:case 2:case 15:return e=bO(e.type,!1),e;case 11:return e=bO(e.type.render,!1),e;case 1:return e=bO(e.type,!0),e;default:return""}}function JO(e){if(e==null)return null;if(typeof e=="function")return e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case jl:return"Fragment";case Xl:return"Portal";case jO:return"Profiler";case Hg:return"StrictMode";case $O:return"Suspense";case ZO:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case bb:return(e.displayName||"Context")+".Consumer";case yb:return(e._context.displayName||"Context")+".Provider";case Wg:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case Yg:return t=e.displayName||null,t!==null?t:JO(e.type)||"Memo";case Zi:t=e._payload,e=e._init;try{return JO(e(t))}catch{}}return null}function iH(e){var t=e.type;switch(e.tag){case 24:return"Cache";case 9:return(t.displayName||"Context")+".Consumer";case 10:return(t._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return e=t.render,e=e.displayName||e.name||"",t.displayName||(e!==""?"ForwardRef("+e+")":"ForwardRef");case 7:return"Fragment";case 5:return t;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return JO(t);case 8:return t===Hg?"StrictMode":"Mode";case 22:return"Offscreen";case 12:return"Profiler";case 21:return"Scope";case 13:return"Suspense";case 19:return"SuspenseList";case 25:return"TracingMarker";case 1:case 0:case 17:case 2:case 14:case 15:if(typeof t=="function")return t.displayName||t.name||null;if(typeof t=="string")return t}return null}function cs(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function Cb(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function sH(e){var t=Cb(e)?"checked":"value",n=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),r=""+e[t];if(!e.hasOwnProperty(t)&&typeof n<"u"&&typeof n.get=="function"&&typeof n.set=="function"){var o=n.get,i=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return o.call(this)},set:function(s){r=""+s,i.call(this,s)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return r},setValue:function(s){r=""+s},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function Wp(e){e._valueTracker||(e._valueTracker=sH(e))}function Pb(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=Cb(e)?e.checked?"true":"false":e.value),e=r,e!==n?(t.setValue(e),!0):!1}function Tm(e){if(e=e||(typeof document<"u"?document:void 0),typeof e>"u")return null;try{return e.activeElement||e.body}catch{return e.body}}function qO(e,t){var n=t.checked;return Et({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:n??e._wrapperState.initialChecked})}function Sy(e,t){var n=t.defaultValue==null?"":t.defaultValue,r=t.checked!=null?t.checked:t.defaultChecked;n=cs(t.value!=null?t.value:n),e._wrapperState={initialChecked:r,initialValue:n,controlled:t.type==="checkbox"||t.type==="radio"?t.checked!=null:t.value!=null}}function Db(e,t){t=t.checked,t!=null&&Vg(e,"checked",t,!1)}function QO(e,t){Db(e,t);var n=cs(t.value),r=t.type;if(n!=null)r==="number"?(n===0&&e.value===""||e.value!=n)&&(e.value=""+n):e.value!==""+n&&(e.value=""+n);else if(r==="submit"||r==="reset"){e.removeAttribute("value");return}t.hasOwnProperty("value")?eg(e,t.type,n):t.hasOwnProperty("defaultValue")&&eg(e,t.type,cs(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function Ry(e,t,n){if(t.hasOwnProperty("value")||t.hasOwnProperty("defaultValue")){var r=t.type;if(!(r!=="submit"&&r!=="reset"||t.value!==void 0&&t.value!==null))return;t=""+e._wrapperState.initialValue,n||t===e.value||(e.value=t),e.defaultValue=t}n=e.name,n!==""&&(e.name=""),e.defaultChecked=!!e._wrapperState.initialChecked,n!==""&&(e.name=n)}function eg(e,t,n){(t!=="number"||Tm(e.ownerDocument)!==e)&&(n==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}var Cd=Array.isArray;function iu(e,t,n,r){if(e=e.options,t){t={};for(var o=0;o<n.length;o++)t["$"+n[o]]=!0;for(n=0;n<e.length;n++)o=t.hasOwnProperty("$"+e[n].value),e[n].selected!==o&&(e[n].selected=o),o&&r&&(e[n].defaultSelected=!0)}else{for(n=""+cs(n),t=null,o=0;o<e.length;o++){if(e[o].value===n){e[o].selected=!0,r&&(e[o].defaultSelected=!0);return}t!==null||e[o].disabled||(t=e[o])}t!==null&&(t.selected=!0)}}function tg(e,t){if(t.dangerouslySetInnerHTML!=null)throw Error(V(91));return Et({},t,{value:void 0,defaultValue:void 0,children:""+e._wrapperState.initialValue})}function Ay(e,t){var n=t.value;if(n==null){if(n=t.children,t=t.defaultValue,n!=null){if(t!=null)throw Error(V(92));if(Cd(n)){if(1<n.length)throw Error(V(93));n=n[0]}t=n}t==null&&(t=""),n=t}e._wrapperState={initialValue:cs(n)}}function vb(e,t){var n=cs(t.value),r=cs(t.defaultValue);n!=null&&(n=""+n,n!==e.value&&(e.value=n),t.defaultValue==null&&e.defaultValue!==n&&(e.defaultValue=n)),r!=null&&(e.defaultValue=""+r)}function Ny(e){var t=e.textContent;t===e._wrapperState.initialValue&&t!==""&&t!==null&&(e.value=t)}function xb(e){switch(e){case"svg":return"http://www.w3.org/2000/svg";case"math":return"http://www.w3.org/1998/Math/MathML";default:return"http://www.w3.org/1999/xhtml"}}function ng(e,t){return e==null||e==="http://www.w3.org/1999/xhtml"?xb(t):e==="http://www.w3.org/2000/svg"&&t==="foreignObject"?"http://www.w3.org/1999/xhtml":e}var Yp,Mb=function(e){return typeof MSApp<"u"&&MSApp.execUnsafeLocalFunction?function(t,n,r,o){MSApp.execUnsafeLocalFunction(function(){return e(t,n,r,o)})}:e}(function(e,t){if(e.namespaceURI!=="http://www.w3.org/2000/svg"||"innerHTML"in e)e.innerHTML=t;else{for(Yp=Yp||document.createElement("div"),Yp.innerHTML="<svg>"+t.valueOf().toString()+"</svg>",t=Yp.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}});function Hd(e,t){if(t){var n=e.firstChild;
vendor: 10,023 bytes, line 5
5if(n&&n===e.lastChild&&n.nodeType===3){n.nodeValue=t;return}}e.textContent=t}var vd={animationIterationCount:!0,aspectRatio:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},aH=["Webkit","ms","Moz","O"];Object.keys(vd).forEach(function(e){aH.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),vd[t]=vd[e]})});function Gb(e,t,n){return t==null||typeof t=="boolean"||t===""?"":n||typeof t!="number"||t===0||vd.hasOwnProperty(e)&&vd[e]?(""+t).trim():t+"px"}function kb(e,t){e=e.style;for(var n in t)if(t.hasOwnProperty(n)){var r=n.indexOf("--")===0,o=Gb(n,t[n],r);n==="float"&&(n="cssFloat"),r?e.setProperty(n,o):e[n]=o}}var lH=Et({menuitem:!0},{area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0});function rg(e,t){if(t){if(lH[e]&&(t.children!=null||t.dangerouslySetInnerHTML!=null))throw Error(V(137,e));if(t.dangerouslySetInnerHTML!=null){if(t.children!=null)throw Error(V(60));if(typeof t.dangerouslySetInnerHTML!="object"||!("__html"in t.dangerouslySetInnerHTML))throw Error(V(61))}if(t.style!=null&&typeof t.style!="object")throw Error(V(62))}}function og(e,t){if(e.indexOf("-")===-1)return typeof t.is=="string";switch(e){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var ig=null;function Kg(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var sg=null,su=null,au=null;function yy(e){if(e=af(e)){if(typeof sg!="function")throw Error(V(280));var t=e.stateNode;t&&(t=Km(t),sg(e.stateNode,e.type,t))}}function Fb(e){su?au?au.push(e):au=[e]:su=e}function wb(){if(su){var e=su,t=au;if(au=su=null,yy(e),t)for(e=0;e<t.length;e++)yy(t[e])}}function Bb(e,t){return e(t)}function Ub(){}var LO=!1;function Vb(e,t,n){if(LO)return e(t,n);LO=!0;try{return Bb(e,t,n)}finally{LO=!1,(su!==null||au!==null)&&(Ub(),wb())}}function Wd(e,t){var n=e.stateNode;if(n===null)return null;var r=Km(n);if(r===null)return null;n=r[t];e:switch(t){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(r=!r.disabled)||(e=e.type,r=!(e==="button"||e==="input"||e==="select"||e==="textarea")),e=!r;break e;default:e=!1}if(e)return null;if(n&&typeof n!="function")throw Error(V(231,t,typeof n));return n}var ag=!1;if(li)try{Kl={},Object.defineProperty(Kl,"passive",{get:function(){ag=!0}}),window.addEventListener("test",Kl,Kl),window.removeEventListener("test",Kl,Kl)}catch{ag=!1}var Kl;function uH(e,t,n,r,o,i,s,a,l){var u=Array.prototype.slice.call(arguments,3);try{t.apply(n,u)}catch(c){this.onError(c)}}var xd=!1,hm=null,Om=!1,lg=null,cH={onError:function(e){xd=!0,hm=e}};function dH(e,t,n,r,o,i,s,a,l){xd=!1,hm=null,uH.apply(cH,arguments)}function fH(e,t,n,r,o,i,s,a,l){if(dH.apply(this,arguments),xd){if(xd){var u=hm;xd=!1,hm=null}else throw Error(V(198));Om||(Om=!0,lg=u)}}function ya(e){var t=e,n=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do t=e,t.flags&4098&&(n=t.return),e=t.return;while(e)}return t.tag===3?n:null}function Hb(e){if(e.tag===13){var t=e.memoizedState;if(t===null&&(e=e.alternate,e!==null&&(t=e.memoizedState)),t!==null)return t.dehydrated}return null}function by(e){if(ya(e)!==e)throw Error(V(188))}function pH(e){var t=e.alternate;if(!t){if(t=ya(e),t===null)throw Error(V(188));return t!==e?null:e}for(var n=e,r=t;;){var o=n.return;if(o===null)break;var i=o.alternate;if(i===null){if(r=o.return,r!==null){n=r;continue}break}if(o.child===i.child){for(i=o.child;i;){if(i===n)return by(o),e;if(i===r)return by(o),t;i=i.sibling}throw Error(V(188))}if(n.return!==r.return)n=o,r=i;else{for(var s=!1,a=o.child;a;){if(a===n){s=!0,n=o,r=i;break}if(a===r){s=!0,r=o,n=i;break}a=a.sibling}if(!s){for(a=i.child;a;){if(a===n){s=!0,n=i,r=o;break}if(a===r){s=!0,r=i,n=o;break}a=a.sibling}if(!s)throw Error(V(189))}}if(n.alternate!==r)throw Error(V(190))}if(n.tag!==3)throw Error(V(188));return n.stateNode.current===n?e:t}function Wb(e){return e=pH(e),e!==null?Yb(e):null}function Yb(e){if(e.tag===5||e.tag===6)return e;for(e=e.child;e!==null;){var t=Yb(e);if(t!==null)return t;e=e.sibling}return null}var Kb=dr.unstable_scheduleCallback,Ly=dr.unstable_cancelCallback,mH=dr.unstable_shouldYield,EH=dr.unstable_requestPaint,Rt=dr.unstable_now,_H=dr.unstable_getCurrentPriorityLevel,zg=dr.unstable_ImmediatePriority,zb=dr.unstable_UserBlockingPriority,gm=dr.unstable_NormalPriority,TH=dr.unstable_LowPriority,Xb=dr.unstable_IdlePriority,Vm=null,Go=null;function hH(e){if(Go&&typeof Go.onCommitFiberRoot=="function")try{Go.onCommitFiberRoot(Vm,e,void 0,(e.current.flags&128)===128)}catch{}}var lo=Math.clz32?Math.clz32:IH,OH=Math.log,gH=Math.LN2;function IH(e){return e>>>=0,e===0?32:31-(OH(e)/gH|0)|0}var Kp=64,zp=4194304;function Pd(e){switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return e&4194240;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return e&130023424;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return e}}function Im(e,t){var n=e.pendingLanes;if(n===0)return 0;var r=0,o=e.suspendedLanes,i=e.pingedLanes,s=n&268435455;if(s!==0){var a=s&~o;a!==0?r=Pd(a):(i&=s,i!==0&&(r=Pd(i)))}else s=n&~o,s!==0?r=Pd(s):i!==0&&(r=Pd(i));if(r===0)return 0;if(t!==0&&t!==r&&!(t&o)&&(o=r&-r,i=t&-t,o>=i||o===16&&(i&4194240)!==0))return t;if(r&4&&(r|=n&16),t=e.entangledLanes,t!==0)for(e=e.entanglements,t&=r;0<t;)n=31-lo(t),o=1<<n,r|=e[n],t&=~o;return r}function SH(e,t){switch(e){case 1:case 2:case 4:return t+250;case 8:case 16:case 32:case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return t+5e3;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return-1;case 134217728:case 268435456:case 536870912:case 1073741824:return-1;default:return-1}}function RH(e,t){for(var n=e.suspendedLanes,r=e.pingedLanes,o=e.expirationTimes,i=e.pendingLanes;0<i;){var s=31-lo(i),a=1<<s,l=o[s];l===-1?(!(a&n)||a&r)&&(o[s]=SH(a,t)):l<=t&&(e.expiredLanes|=a),i&=~a}}function ug(e){return e=e.pendingLanes&-1073741825,e!==0?e:e&1073741824?1073741824:0}function jb(){var e=Kp;return Kp<<=1,!(Kp&4194240)&&(Kp=64),e}function CO(e){for(var t=[],n=0;31>n;n++)t.push(e);return t}function of(e,t,n){e.pendingLanes|=t,t!==536870912&&(e.suspendedLanes=0,e.pingedLanes=0),e=e.eventTimes,t=31-lo(t),e[t]=n}function AH(e,t){var n=e.pendingLanes&~t;e.pendingLanes=t,e.suspendedLanes=0,e.pingedLanes=0,e.expiredLanes&=t,e.mutableReadLanes&=t,e.entangledLanes&=t,t=e.entanglements;var r=e.eventTimes;for(e=e.expirationTimes;0<n;){var o=31-lo(n),i=1<<o;t[o]=0,r[o]=-1,e[o]=-1,n&=~i}}function Xg(e,t){var n=e.entangledLanes|=t;for(e=e.entanglements;n;){var r=31-lo(n),o=1<<r;o&t|e[r]&t&&(e[r]|=t),n&=~o}}var Be=0;function $b(e){return e&=-e,1<e?4<e?e&268435455?16:536870912:4:1}var Zb,jg,Jb,qb,Qb,cg=!1,Xp=[],ns=null,rs=null,os=null,Yd=new Map,Kd=new Map,qi=[],NH="mousedown mouseup touchcancel touchend touchstart auxclick dblclick pointercancel pointerdown pointerup dragend dragstart drop compositionend compositionstart keydown keypress keyup input textInput copy cut paste click change contextmenu reset submit".split(" ");function Cy(e,t){switch(e){case"focusin":case"focusout":ns=null;break;case"dragenter":case"dragleave":rs=null;break;case"mouseover":case"mouseout":os=null;break;case"pointerover":case"pointerout":Yd.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":Kd.delete(t.pointerId)}}function Id(e,t,n,r,o,i){return e===null||e.nativeEvent!==i?(e={blockedOn:t,domEventName:n,eventSystemFlags:r,nativeEvent:i,targetContainers:[o]},t!==null&&(t=af(t),t!==null&&jg(t)),e):(e.eventSystemFlags|=r,t=e.targetContainers,o!==null&&t.indexOf(o)===-1&&t.push(o),e)}function yH(e,t,n,r,o){switch(t){case"focusin":return ns=Id(ns,e,t,n,r,o),!0;case"dragenter":return rs=Id(rs,e,t,n,r,o),!0;case"mouseover":return os=Id(os,e,t,n,r,o),!0;case"pointerover":var i=o.pointerId;return Yd.set(i,Id(Yd.get(i)||null,e,t,n,r,o)),!0;case"gotpointercapture":return i=o.pointerId,Kd.set(i,Id(Kd.get(i)||null,e,t,n,r,o)),!0}return!1}function eL(e){var t=Ea(e.target);if(t!==null){var n=ya(t);if(n!==null){if(t=n.tag,t===13){if(t=Hb(n),t!==null){e.blockedOn=t,Qb(e.priority,function(){Jb(n)});return}}else if(t===3&&n.stateNode.current.memoizedState.isDehydrated){e.blockedOn=n.tag===3?n.stateNode.containerInfo:null;return}}}e.blockedOn=null}function am(e){if(e.blockedOn!==null)return!1;for(var t=e.targetContainers;0<t.length;){var n=dg(e.domEventName,e.eventSystemFlags,t[0],e.nativeEvent);if(n===null){n=e.nativeEvent;var r=new n.constructor(n.type,n);ig=r,n.target.dispatchEvent(r),ig=null}else return t=af(n),t!==null&&jg(t),e.blockedOn=n,!1;t.shift()}return!0}function Py(e,t,n){am(e)&&n.delete(t)}function bH(){cg=!1,ns!==null&&am(ns)&&(ns=null),rs!==null&&am(rs)&&(rs=null),os!==null&&am(os)&&(os=null),Yd.forEach(Py),Kd.forEac
vendor: 5,798 bytes, line 5
5h(Py)}function Sd(e,t){e.blockedOn===t&&(e.blockedOn=null,cg||(cg=!0,dr.unstable_scheduleCallback(dr.unstable_NormalPriority,bH)))}function zd(e){function t(o){return Sd(o,e)}if(0<Xp.length){Sd(Xp[0],e);for(var n=1;n<Xp.length;n++){var r=Xp[n];r.blockedOn===e&&(r.blockedOn=null)}}for(ns!==null&&Sd(ns,e),rs!==null&&Sd(rs,e),os!==null&&Sd(os,e),Yd.forEach(t),Kd.forEach(t),n=0;n<qi.length;n++)r=qi[n],r.blockedOn===e&&(r.blockedOn=null);for(;0<qi.length&&(n=qi[0],n.blockedOn===null);)eL(n),n.blockedOn===null&&qi.shift()}var lu=fi.ReactCurrentBatchConfig,Sm=!0;function LH(e,t,n,r){var o=Be,i=lu.transition;lu.transition=null;try{Be=1,$g(e,t,n,r)}finally{Be=o,lu.transition=i}}function CH(e,t,n,r){var o=Be,i=lu.transition;lu.transition=null;try{Be=4,$g(e,t,n,r)}finally{Be=o,lu.transition=i}}function $g(e,t,n,r){if(Sm){var o=dg(e,t,n,r);if(o===null)kO(e,t,r,Rm,n),Cy(e,r);else if(yH(o,e,t,n,r))r.stopPropagation();else if(Cy(e,r),t&4&&-1<NH.indexOf(e)){for(;o!==null;){var i=af(o);if(i!==null&&Zb(i),i=dg(e,t,n,r),i===null&&kO(e,t,r,Rm,n),i===o)break;o=i}o!==null&&r.stopPropagation()}else kO(e,t,r,null,n)}}var Rm=null;function dg(e,t,n,r){if(Rm=null,e=Kg(r),e=Ea(e),e!==null)if(t=ya(e),t===null)e=null;else if(n=t.tag,n===13){if(e=Hb(t),e!==null)return e;e=null}else if(n===3){if(t.stateNode.current.memoizedState.isDehydrated)return t.tag===3?t.stateNode.containerInfo:null;e=null}else t!==e&&(e=null);return Rm=e,null}function tL(e){switch(e){case"cancel":case"click":case"close":case"contextmenu":case"copy":case"cut":case"auxclick":case"dblclick":case"dragend":case"dragstart":case"drop":case"focusin":case"focusout":case"input":case"invalid":case"keydown":case"keypress":case"keyup":case"mousedown":case"mouseup":case"paste":case"pause":case"play":case"pointercancel":case"pointerdown":case"pointerup":case"ratechange":case"reset":case"resize":case"seeked":case"submit":case"touchcancel":case"touchend":case"touchstart":case"volumechange":case"change":case"selectionchange":case"textInput":case"compositionstart":case"compositionend":case"compositionupdate":case"beforeblur":case"afterblur":case"beforeinput":case"blur":case"fullscreenchange":case"focus":case"hashchange":case"popstate":case"select":case"selectstart":return 1;case"drag":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"mousemove":case"mouseout":case"mouseover":case"pointermove":case"pointerout":case"pointerover":case"scroll":case"toggle":case"touchmove":case"wheel":case"mouseenter":case"mouseleave":case"pointerenter":case"pointerleave":return 4;case"message":switch(_H()){case zg:return 1;case zb:return 4;case gm:case TH:return 16;case Xb:return 536870912;default:return 16}default:return 16}}var es=null,Zg=null,lm=null;function nL(){if(lm)return lm;var e,t=Zg,n=t.length,r,o="value"in es?es.value:es.textContent,i=o.length;for(e=0;e<n&&t[e]===o[e];e++);var s=n-e;for(r=1;r<=s&&t[n-r]===o[i-r];r++);return lm=o.slice(e,1<r?1-r:void 0)}function um(e){var t=e.keyCode;return"charCode"in e?(e=e.charCode,e===0&&t===13&&(e=13)):e=t,e===10&&(e=13),32<=e||e===13?e:0}function jp(){return!0}function Dy(){return!1}function fr(e){function t(n,r,o,i,s){this._reactName=n,this._targetInst=o,this.type=r,this.nativeEvent=i,this.target=s,this.currentTarget=null;for(var a in e)e.hasOwnProperty(a)&&(n=e[a],this[a]=n?n(i):i[a]);return this.isDefaultPrevented=(i.defaultPrevented!=null?i.defaultPrevented:i.returnValue===!1)?jp:Dy,this.isPropagationStopped=Dy,this}return Et(t.prototype,{preventDefault:function(){this.defaultPrevented=!0;var n=this.nativeEvent;n&&(n.preventDefault?n.preventDefault():typeof n.returnValue!="unknown"&&(n.returnValue=!1),this.isDefaultPrevented=jp)},stopPropagation:function(){var n=this.nativeEvent;n&&(n.stopPropagation?n.stopPropagation():typeof n.cancelBubble!="unknown"&&(n.cancelBubble=!0),this.isPropagationStopped=jp)},persist:function(){},isPersistent:jp}),t}var hu={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},Jg=fr(hu),sf=Et({},hu,{view:0,detail:0}),PH=fr(sf),PO,DO,Rd,Hm=Et({},sf,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:qg,button:0,buttons:0,relatedTarget:function(e){return e.relatedTarget===void 0?e.fromElement===e.srcElement?e.toElement:e.fromElement:e.relatedTarget},movementX:function(e){return"movementX"in e?e.movementX:(e!==Rd&&(Rd&&e.type==="mousemove"?(PO=e.screenX-Rd.screenX,DO=e.screenY-Rd.screenY):DO=PO=0,Rd=e),PO)},movementY:function(e){return"movementY"in e?e.movementY:DO}}),vy=fr(Hm),DH=Et({},Hm,{dataTransfer:0}),vH=fr(DH),xH=Et({},sf,{relatedTarget:0}),vO=fr(xH),MH=Et({},hu,{animationName:0,elapsedTime:0,pseudoElement:0}),GH=fr(MH),kH=Et({},hu,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),FH=fr(kH),wH=Et({},hu,{data:0}),xy=fr(wH),BH={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},UH={8:"Backspace",9:"Tab",12:"Clear",13:"Enter",16:"Shift",17:"Control",18:"Alt",19:"Pause",20:"CapsLock",27:"Escape",32:" ",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"ArrowLeft",38:"ArrowUp",39:"ArrowRight",40:"ArrowDown",45:"Insert",46:"Delete",112:"F1",113:"F2",114:"F3",115:"F4",116:"F5",117:"F6",118:"F7",119:"F8",120:"F9",121:"F10",122:"F11",123:"F12",144:"NumLock",145:"ScrollLock",224:"Meta"},VH={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function HH(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):(e=VH[e])?!!t[e]:!1}function qg(){return HH}var WH=Et({},sf,{key:function(e){if(e.key){var t=BH[e.key]||e.key;if(t!=="Unidentified")return t}
vendor: 6,036 bytes, line 5
5return e.type==="keypress"?(e=um(e),e===13?"Enter":String.fromCharCode(e)):e.type==="keydown"||e.type==="keyup"?UH[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:qg,charCode:function(e){return e.type==="keypress"?um(e):0},keyCode:function(e){return e.type==="keydown"||e.type==="keyup"?e.keyCode:0},which:function(e){return e.type==="keypress"?um(e):e.type==="keydown"||e.type==="keyup"?e.keyCode:0}}),YH=fr(WH),KH=Et({},Hm,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),My=fr(KH),zH=Et({},sf,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:qg}),XH=fr(zH),jH=Et({},hu,{propertyName:0,elapsedTime:0,pseudoElement:0}),$H=fr(jH),ZH=Et({},Hm,{deltaX:function(e){return"deltaX"in e?e.deltaX:"wheelDeltaX"in e?-e.wheelDeltaX:0},deltaY:function(e){return"deltaY"in e?e.deltaY:"wheelDeltaY"in e?-e.wheelDeltaY:"wheelDelta"in e?-e.wheelDelta:0},deltaZ:0,deltaMode:0}),JH=fr(ZH),qH=[9,13,27,32],Qg=li&&"CompositionEvent"in window,Md=null;li&&"documentMode"in document&&(Md=document.documentMode);var QH=li&&"TextEvent"in window&&!Md,rL=li&&(!Qg||Md&&8<Md&&11>=Md),Gy=String.fromCharCode(32),ky=!1;function oL(e,t){switch(e){case"keyup":return qH.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function iL(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var $l=!1;function e2(e,t){switch(e){case"compositionend":return iL(t);case"keypress":return t.which!==32?null:(ky=!0,Gy);case"textInput":return e=t.data,e===Gy&&ky?null:e;default:return null}}function t2(e,t){if($l)return e==="compositionend"||!Qg&&oL(e,t)?(e=nL(),lm=Zg=es=null,$l=!1,e):null;switch(e){case"paste":return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1<t.char.length)return t.char;if(t.which)return String.fromCharCode(t.which)}return null;case"compositionend":return rL&&t.locale!=="ko"?null:t.data;default:return null}}var n2={color:!0,date:!0,datetime:!0,"datetime-local":!0,email:!0,month:!0,number:!0,password:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0};function Fy(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t==="input"?!!n2[e.type]:t==="textarea"}function sL(e,t,n,r){Fb(r),t=Am(t,"onChange"),0<t.length&&(n=new Jg("onChange","change",null,n,r),e.push({event:n,listeners:t}))}var Gd=null,Xd=null;function r2(e){TL(e,0)}function Wm(e){var t=ql(e);if(Pb(t))return e}function o2(e,t){if(e==="change")return t}var aL=!1;li&&(li?(Zp="oninput"in document,Zp||(xO=document.createElement("div"),xO.setAttribute("oninput","return;"),Zp=typeof xO.oninput=="function"),$p=Zp):$p=!1,aL=$p&&(!document.documentMode||9<document.documentMode));var $p,Zp,xO;function wy(){Gd&&(Gd.detachEvent("onpropertychange",lL),Xd=Gd=null)}function lL(e){if(e.propertyName==="value"&&Wm(Xd)){var t=[];sL(t,Xd,e,Kg(e)),Vb(r2,t)}}function i2(e,t,n){e==="focusin"?(wy(),Gd=t,Xd=n,Gd.attachEvent("onpropertychange",lL)):e==="focusout"&&wy()}function s2(e){if(e==="selectionchange"||e==="keyup"||e==="keydown")return Wm(Xd)}function a2(e,t){if(e==="click")return Wm(t)}function l2(e,t){if(e==="input"||e==="change")return Wm(t)}function u2(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var co=typeof Object.is=="function"?Object.is:u2;function jd(e,t){if(co(e,t))return!0;if(typeof e!="object"||e===null||typeof t!="object"||t===null)return!1;var n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(r=0;r<n.length;r++){var o=n[r];if(!XO.call(t,o)||!co(e[o],t[o]))return!1}return!0}function By(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function Uy(e,t){var n=By(e);e=0;for(var r;n;){if(n.nodeType===3){if(r=e+n.textContent.length,e<=t&&r>=t)return{node:n,offset:t-e};e=r}e:{for(;n;){if(n.nextSibling){n=n.nextSibling;break e}n=n.parentNode}n=void 0}n=By(n)}}function uL(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?uL(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function cL(){for(var e=window,t=Tm();t instanceof e.HTMLIFrameElement;){try{var n=typeof t.contentWindow.location.href=="string"}catch{n=!1}if(n)e=t.contentWindow;else break;t=Tm(e.document)}return t}function eI(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&(t==="input"&&(e.type==="text"||e.type==="search"||e.type==="tel"||e.type==="url"||e.type==="password")||t==="textarea"||e.contentEditable==="true")}function c2(e){var t=cL(),n=e.focusedElem,r=e.selectionRange;if(t!==n&&n&&n.ownerDocument&&uL(n.ownerDocument.documentElement,n)){if(r!==null&&eI(n)){if(t=r.start,e=r.end,e===void 0&&(e=t),"selectionStart"in n)n.selectionStart=t,n.selectionEnd=Math.min(e,n.value.length);else if(e=(t=n.ownerDocument||document)&&t.defaultView||window,e.getSelection){e=e.getSelection();var o=n.textContent.length,i=Math.min(r.start,o);r=r.end===void 0?i:Math.min(r.end,o),!e.extend&&i>r&&(o=r,r=i,i=o),o=Uy(n,i);var s=Uy(n,r);o&&s&&(e.rangeCount!==1||e.anchorNode!==o.node||e.anchorOffset!==o.offset||e.focusNode!==s.node||e.focusOffset!==s.offset)&&(t=t.createRange(),t.setStart(o.node,o.offset),e.removeAllRanges(),i>r?(e.addRange(t),e.extend(s.node,s.offset)):(t.setEnd(s.node,s.offset),e.addRange(t)))}}for(t=[],e=n;e=e.parentNode;)e.nodeType===1&&t.push({element:e,left:e.scrollLeft,top:e.scrollTop});for(typeof n.focus=="function"&&n.focus(),n=0;n<t.length;n++)e=t[n],e.element.scrollLeft=e.left,e.element.scrollTop=e.top}}var d2=li&&"documentMode"in document&&11>=document.documentMode,Zl=null,fg=null,kd=null,pg=!1;function Vy(e,t,n){var r=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;pg||Zl==null||Zl!==Tm(r)||(r=Zl,"selectionStart"in r&&eI(r)?r={start:r.selectionStart,end:r.selectionEnd}:(r=(r.ownerDocument&&r.ownerDocument.defaultView||window).getSelection(),r={anchorNode:r.anchorNode,anchorOffset:r.anchorOffset,focu
vendor: 4,508 bytes, line 5
5sNode:r.focusNode,focusOffset:r.focusOffset}),kd&&jd(kd,r)||(kd=r,r=Am(fg,"onSelect"),0<r.length&&(t=new Jg("onSelect","select",null,t,n),e.push({event:t,listeners:r}),t.target=Zl)))}function Jp(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit"+e]="webkit"+t,n["Moz"+e]="moz"+t,n}var Jl={animationend:Jp("Animation","AnimationEnd"),animationiteration:Jp("Animation","AnimationIteration"),animationstart:Jp("Animation","AnimationStart"),transitionend:Jp("Transition","TransitionEnd")},MO={},dL={};li&&(dL=document.createElement("div").style,"AnimationEvent"in window||(delete Jl.animationend.animation,delete Jl.animationiteration.animation,delete Jl.animationstart.animation),"TransitionEvent"in window||delete Jl.transitionend.transition);function Ym(e){if(MO[e])return MO[e];if(!Jl[e])return e;var t=Jl[e],n;for(n in t)if(t.hasOwnProperty(n)&&n in dL)return MO[e]=t[n];return e}var fL=Ym("animationend"),pL=Ym("animationiteration"),mL=Ym("animationstart"),EL=Ym("transitionend"),_L=new Map,Hy="abort auxClick cancel canPlay canPlayThrough click close contextMenu copy cut drag dragEnd dragEnter dragExit dragLeave dragOver dragStart drop durationChange emptied encrypted ended error gotPointerCapture input invalid keyDown keyPress keyUp load loadedData loadedMetadata loadStart lostPointerCapture mouseDown mouseMove mouseOut mouseOver mouseUp paste pause play playing pointerCancel pointerDown pointerMove pointerOut pointerOver pointerUp progress rateChange reset resize seeked seeking stalled submit suspend timeUpdate touchCancel touchEnd touchStart volumeChange scroll toggle touchMove waiting wheel".split(" ");function fs(e,t){_L.set(e,t),Na(t,[e])}for(qp=0;qp<Hy.length;qp++)Qp=Hy[qp],Wy=Qp.toLowerCase(),Yy=Qp[0].toUpperCase()+Qp.slice(1),fs(Wy,"on"+Yy);var Qp,Wy,Yy,qp;fs(fL,"onAnimationEnd");fs(pL,"onAnimationIteration");fs(mL,"onAnimationStart");fs("dblclick","onDoubleClick");fs("focusin","onFocus");fs("focusout","onBlur");fs(EL,"onTransitionEnd");du("onMouseEnter",["mouseout","mouseover"]);du("onMouseLeave",["mouseout","mouseover"]);du("onPointerEnter",["pointerout","pointerover"]);du("onPointerLeave",["pointerout","pointerover"]);Na("onChange","change click focusin focusout input keydown keyup selectionchange".split(" "));Na("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" "));Na("onBeforeInput",["compositionend","keypress","textInput","paste"]);Na("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" "));Na("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" "));Na("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var Dd="abort canplay canplaythrough durationchange emptied encrypted ended error loadeddata loadedmetadata loadstart pause play playing progress ratechange resize seeked seeking stalled suspend timeupdate volumechange waiting".split(" "),f2=new Set("cancel close invalid load scroll toggle".split(" ").concat(Dd));function Ky(e,t,n){var r=e.type||"unknown-event";e.currentTarget=n,fH(r,t,void 0,e),e.currentTarget=null}function TL(e,t){t=(t&4)!==0;for(var n=0;n<e.length;n++){var r=e[n],o=r.event;r=r.listeners;e:{var i=void 0;if(t)for(var s=r.length-1;0<=s;s--){var a=r[s],l=a.instance,u=a.currentTarget;if(a=a.listener,l!==i&&o.isPropagationStopped())break e;Ky(o,a,u),i=l}else for(s=0;s<r.length;s++){if(a=r[s],l=a.instance,u=a.currentTarget,a=a.listener,l!==i&&o.isPropagationStopped())break e;Ky(o,a,u),i=l}}}if(Om)throw e=lg,Om=!1,lg=null,e}function nt(e,t){var n=t[hg];n===void 0&&(n=t[hg]=new Set);var r=e+"__bubble";n.has(r)||(hL(t,e,2,!1),n.add(r))}function GO(e,t,n){var r=0;t&&(r|=4),hL(n,e,r,t)}var em="_reactListening"+Math.random().toString(36).slice(2);function $d(e){if(!e[em]){e[em]=!0,Nb.forEach(function(n){n!=="selectionchange"&&(f2.has(n)||GO(n,!1,e),GO(n,!0,e))});var t=e.nodeType===9?e:e.ownerDocument;t===null||t[em]||(t[em]=!0,GO("selectionchange",!1,t))}}function hL(e,t,n,r){switch(tL(t)){case 1:var o=LH;break;case 4:o=CH;break;default:o=$g}n=o.bind(null,t,n,e),o=void 0,!ag||t!=="touchstart"&&t!=="touchmove"&&t!=="wheel"||(o=!0),r?o!==void 0?e.addEventListener(t,n,{capture:!0,passive:o}):e.addEventListener(t,n,!0):o!==void 0?e.addEventListener(t,n,{passive:o}):e.addEventListener(t,n,!1)}function kO(e,t,n,r,o){var i=r;if(!(t&1)&&!(t&2)&&r!==null)e:for(;;){if(r===null)return;var s=r.tag;if(s===3||s===4){var a=r.stateNode.containerInfo;
vendor: 15,086 bytes, lines 5-6
5if(a===o||a.nodeType===8&&a.parentNode===o)break;if(s===4)for(s=r.return;s!==null;){var l=s.tag;if((l===3||l===4)&&(l=s.stateNode.containerInfo,l===o||l.nodeType===8&&l.parentNode===o))return;s=s.return}for(;a!==null;){if(s=Ea(a),s===null)return;if(l=s.tag,l===5||l===6){r=i=s;continue e}a=a.parentNode}}r=r.return}Vb(function(){var u=i,c=Kg(n),d=[];e:{var f=_L.get(e);if(f!==void 0){var p=Jg,_=e;switch(e){case"keypress":if(um(n)===0)break e;case"keydown":case"keyup":p=YH;break;case"focusin":_="focus",p=vO;break;case"focusout":_="blur",p=vO;break;case"beforeblur":case"afterblur":p=vO;break;case"click":if(n.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":p=vy;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":p=vH;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":p=XH;break;case fL:case pL:case mL:p=GH;break;case EL:p=$H;break;case"scroll":p=PH;break;case"wheel":p=JH;break;case"copy":case"cut":case"paste":p=FH;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":p=My}var T=(t&4)!==0,h=!T&&e==="scroll",m=T?f!==null?f+"Capture":null:f;T=[];for(var E=u,O;E!==null;){O=E;var g=O.stateNode;if(O.tag===5&&g!==null&&(O=g,m!==null&&(g=Wd(E,m),g!=null&&T.push(Zd(E,g,O)))),h)break;E=E.return}0<T.length&&(f=new p(f,_,null,n,c),d.push({event:f,listeners:T}))}}if(!(t&7)){e:{if(f=e==="mouseover"||e==="pointerover",p=e==="mouseout"||e==="pointerout",f&&n!==ig&&(_=n.relatedTarget||n.fromElement)&&(Ea(_)||_[ui]))break e;if((p||f)&&(f=c.window===c?c:(f=c.ownerDocument)?f.defaultView||f.parentWindow:window,p?(_=n.relatedTarget||n.toElement,p=u,_=_?Ea(_):null,_!==null&&(h=ya(_),_!==h||_.tag!==5&&_.tag!==6)&&(_=null)):(p=null,_=u),p!==_)){if(T=vy,g="onMouseLeave",m="onMouseEnter",E="mouse",(e==="pointerout"||e==="pointerover")&&(T=My,g="onPointerLeave",m="onPointerEnter",E="pointer"),h=p==null?f:ql(p),O=_==null?f:ql(_),f=new T(g,E+"leave",p,n,c),f.target=h,f.relatedTarget=O,g=null,Ea(c)===u&&(T=new T(m,E+"enter",_,n,c),T.target=O,T.relatedTarget=h,g=T),h=g,p&&_)t:{for(T=p,m=_,E=0,O=T;O;O=zl(O))E++;for(O=0,g=m;g;g=zl(g))O++;for(;0<E-O;)T=zl(T),E--;for(;0<O-E;)m=zl(m),O--;for(;E--;){if(T===m||m!==null&&T===m.alternate)break t;T=zl(T),m=zl(m)}T=null}else T=null;p!==null&&zy(d,f,p,T,!1),_!==null&&h!==null&&zy(d,h,_,T,!0)}}e:{if(f=u?ql(u):window,p=f.nodeName&&f.nodeName.toLowerCase(),p==="select"||p==="input"&&f.type==="file")var I=o2;else if(Fy(f))if(aL)I=l2;else{I=s2;var S=i2}else(p=f.nodeName)&&p.toLowerCase()==="input"&&(f.type==="checkbox"||f.type==="radio")&&(I=a2);if(I&&(I=I(e,u))){sL(d,I,n,c);break e}S&&S(e,f,u),e==="focusout"&&(S=f._wrapperState)&&S.controlled&&f.type==="number"&&eg(f,"number",f.value)}switch(S=u?ql(u):window,e){case"focusin":(Fy(S)||S.contentEditable==="true")&&(Zl=S,fg=u,kd=null);break;case"focusout":kd=fg=Zl=null;break;case"mousedown":pg=!0;break;case"contextmenu":case"mouseup":case"dragend":pg=!1,Vy(d,n,c);break;case"selectionchange":if(d2)break;case"keydown":case"keyup":Vy(d,n,c)}var A;if(Qg)e:{switch(e){case"compositionstart":var R="onCompositionStart";break e;case"compositionend":R="onCompositionEnd";break e;case"compositionupdate":R="onCompositionUpdate";break e}R=void 0}else $l?oL(e,n)&&(R="onCompositionEnd"):e==="keydown"&&n.keyCode===229&&(R="onCompositionStart");R&&(rL&&n.locale!=="ko"&&($l||R!=="onCompositionStart"?R==="onCompositionEnd"&&$l&&(A=nL()):(es=c,Zg="value"in es?es.value:es.textContent,$l=!0)),S=Am(u,R),0<S.length&&(R=new xy(R,e,null,n,c),d.push({event:R,listeners:S}),A?R.data=A:(A=iL(n),A!==null&&(R.data=A)))),(A=QH?e2(e,n):t2(e,n))&&(u=Am(u,"onBeforeInput"),0<u.length&&(c=new xy("onBeforeInput","beforeinput",null,n,c),d.push({event:c,listeners:u}),c.data=A))}TL(d,t)})}function Zd(e,t,n){return{instance:e,listener:t,currentTarget:n}}function Am(e,t){for(var n=t+"Capture",r=[];e!==null;){var o=e,i=o.stateNode;o.tag===5&&i!==null&&(o=i,i=Wd(e,n),i!=null&&r.unshift(Zd(e,i,o)),i=Wd(e,t),i!=null&&r.push(Zd(e,i,o))),e=e.return}return r}function zl(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5);return e||null}function zy(e,t,n,r,o){for(var i=t._reactName,s=[];n!==null&&n!==r;){var a=n,l=a.alternate,u=a.stateNode;if(l!==null&&l===r)break;a.tag===5&&u!==null&&(a=u,o?(l=Wd(n,i),l!=null&&s.unshift(Zd(n,l,a))):o||(l=Wd(n,i),l!=null&&s.push(Zd(n,l,a)))),n=n.return}s.length!==0&&e.push({event:t,listeners:s})}var p2=/\r\n?/g,m2=/\u0000|\uFFFD/g;function Xy(e){return(typeof e=="string"?e:""+e).replace(p2,` 6`).replace(m2,"")}function tm(e,t,n){if(t=Xy(t),Xy(e)!==t&&n)throw Error(V(425))}function Nm(){}var mg=null,Eg=null;function _g(e,t){return e==="textarea"||e==="noscript"||typeof t.children=="string"||typeof t.children=="number"||typeof t.dangerouslySetInnerHTML=="object"&&t.dangerouslySetInnerHTML!==null&&t.dangerouslySetInnerHTML.__html!=null}var Tg=typeof setTimeout=="function"?setTimeout:void 0,E2=typeof clearTimeout=="function"?clearTimeout:void 0,jy=typeof Promise=="function"?Promise:void 0,_2=typeof queueMicrotask=="function"?queueMicrotask:typeof jy<"u"?function(e){return jy.resolve(null).then(e).catch(T2)}:Tg;function T2(e){setTimeout(function(){throw e})}function FO(e,t){var n=t,r=0;do{var o=n.nextSibling;if(e.removeChild(n),o&&o.nodeType===8)if(n=o.data,n==="/$"){if(r===0){e.removeChild(o),zd(t);return}r--}else n!=="$"&&n!=="$?"&&n!=="$!"||r++;n=o}while(n);zd(t)}function is(e){for(;e!=null;e=e.nextSibling){var t=e.nodeType;if(t===1||t===3)break;if(t===8){if(t=e.data,t==="$"||t==="$!"||t==="$?")break;if(t==="/$")return null}}return e}function $y(e){e=e.previousSibling;for(var t=0;e;){if(e.nodeType===8){var n=e.data;if(n==="$"||n==="$!"||n==="$?"){if(t===0)return e;t--}else n==="/$"&&t++}e=e.previousSibling}return null}var Ou=Math.random().toString(36).slice(2),Mo="__reactFiber$"+Ou,Jd="__reactProps$"+Ou,ui="__reactContainer$"+Ou,hg="__reactEvents$"+Ou,h2="__reactListeners$"+Ou,O2="__reactHandles$"+Ou;function Ea(e){var t=e[Mo];if(t)return t;for(var n=e.parentNode;n;){if(t=n[ui]||n[Mo]){if(n=t.alternate,t.child!==null||n!==null&&n.child!==null)for(e=$y(e);e!==null;){if(n=e[Mo])return n;e=$y(e)}return t}e=n,n=e.parentNode}return null}function af(e){return e=e[Mo]||e[ui],!e||e.tag!==5&&e.tag!==6&&e.tag!==13&&e.tag!==3?null:e}function ql(e){if(e.tag===5||e.tag===6)return e.stateNode;throw Error(V(33))}function Km(e){return e[Jd]||null}var Og=[],Ql=-1;function ps(e){return{current:e}}function rt(e){0>Ql||(e.current=Og[Ql],Og[Ql]=null,Ql--)}function $e(e,t){Ql++,Og[Ql]=e.current,e.current=t}var ds={},hn=ps(ds),Hn=ps(!1),ga=ds;function fu(e,t){var n=e.type.contextTypes;if(!n)return ds;var r=e.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===t)return r.__reactInternalMemoizedMaskedChildContext;var o={},i;for(i in n)o[i]=t[i];return r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=o),o}function Wn(e){return e=e.childContextTypes,e!=null}function ym(){rt(Hn),rt(hn)}function Zy(e,t,n){if(hn.current!==ds)throw Error(V(168));$e(hn,t),$e(Hn,n)}function OL(e,t,n){var r=e.stateNode;if(t=t.childContextTypes,typeof r.getChildContext!="function")return n;r=r.getChildContext();for(var o in r)if(!(o in t))throw Error(V(108,iH(e)||"Unknown",o));return Et({},n,r)}function bm(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||ds,ga=hn.current,$e(hn,e),$e(Hn,Hn.current),!0}function Jy(e,t,n){var r=e.stateNode;if(!r)throw Error(V(169));n?(e=OL(e,t,ga),r.__reactInternalMemoizedMergedChildContext=e,rt(Hn),rt(hn),$e(hn,e)):rt(Hn),$e(Hn,n)}var oi=null,zm=!1,wO=!1;function gL(e){oi===null?oi=[e]:oi.push(e)}function g2(e){zm=!0,gL(e)}function ms(){if(!wO&&oi!==null){wO=!0;var e=0,t=Be;try{var n=oi;for(Be=1;e<n.length;e++){var r=n[e];do r=r(!0);while(r!==null)}oi=null,zm=!1}catch(o){throw oi!==null&&(oi=oi.slice(e+1)),Kb(zg,ms),o}finally{Be=t,wO=!1}}return null}var eu=[],tu=0,Lm=null,Cm=0,Mr=[],Gr=0,Ia=null,ii=1,si="";function pa(e,t){eu[tu++]=Cm,eu[tu++]=Lm,Lm=e,Cm=t}function IL(e,t,n){Mr[Gr++]=ii,Mr[Gr++]=si,Mr[Gr++]=Ia,Ia=e;var r=ii;e=si;var o=32-lo(r)-1;r&=~(1<<o),n+=1;var i=32-lo(t)+o;if(30<i){var s=o-o%5;i=(r&(1<<s)-1).toString(32),r>>=s,o-=s,ii=1<<32-lo(t)+o|n<<o|r,si=i+e}else ii=1<<i|n<<o|r,si=e}function tI(e){e.return!==null&&(pa(e,1),IL(e,1,0))}function nI(e){for(;e===Lm;)Lm=eu[--tu],eu[tu]=null,Cm=eu[--tu],eu[tu]=null;for(;e===Ia;)Ia=Mr[--Gr],Mr[Gr]=null,si=Mr[--Gr],Mr[Gr]=null,ii=Mr[--Gr],Mr[Gr]=null}var cr=null,ur=null,ct=!1,ao=null;function SL(e,t){var n=kr(5,null,null,0);n.elementType="DELETED",n.stateNode=t,n.return=e,t=e.deletions,t===null?(e.deletions=[n],e.flags|=16):t.push(n)}function qy(e,t){switch(e.tag){case 5:var n=e.type;return t=t.nodeType!==1||n.toLowerCase()!==t.nodeName.toLowerCase()?null:t,t!==null?(e.stateNode=t,cr=e,ur=is(t.firstChild),!0):!1;case 6:return t=e.pendingProps===""||t.nodeType!==3?null:t,t!==null?(e.stateNode=t,cr=e,ur=null,!0):!1;case 13:return t=t.nodeType!==8?null:t,t!==null?(n=Ia!==null?{id:ii,overflow:si}:null,e.memoizedState={dehydrated:t,treeContext:n,retryLane:1073741824},n=kr(18,null,null,0),n.stateNode=t,n.return=e,e.child=n,cr=e,ur=null,!0):!1;default:return!1}}function gg(e){return(e.mode&1)!==0&&(e.flags&128)===0}function Ig(e){if(ct){var t=ur;if(t){var n=t;if(!qy(e,t)){if(gg(e))throw Error(V(418));t=is(n.nextSibling);var r=cr;t&&qy(e,t)?SL(r,n):(e.flags=e.flags&-4097|2,ct=!1,cr=e)}}else{if(gg(e))throw Error(V(418));e.flags=e.flags&-4097|2,ct=!1,cr=e}}}function Qy(e){for(e=e.return;e!==null&&e.tag!==5&&e.tag!==3&&e.tag!==13;)e=e.return;cr=e}function nm(e){if(e!==cr)return!1;if(!ct)return Qy(e),ct=!0,!1;var t;if((t=e.tag!==3)&&!(t=e.tag!==5)&&(t=e.type,t=t!=="head"&&t!=="body"&&!_g(e.type,e.memoizedProps)),t&&(t=ur)){if(gg(e))throw RL(),Error(V(418));for(;t;)SL(e,t),t=is(t.nextSibling)}if(Qy(e),e.tag===13){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(V(317));e:{for(e=e.nextSibling,t=0;e;){if(e.nodeType===8){var n=e.data;if(n==="/$"){if(t===0){ur=is(e.nextSibling);break e}t--}else n!=="$"&&n!=="$!"&&n!=="$?"||t++}e=e.nextSibling}ur=null}}else ur=cr?is(e.stateNode.nextSibling):null;return!0}function RL(){for(var e=ur;e;)e=is(e.nextSibling)}function pu(){ur=cr=null,ct=!1}function rI(e){ao===null?ao=[e]:ao.push(e)}var I2=fi.ReactCurrentBatchConfig;function Ad(e,t,n){if(e=n.ref,e!==null&&typeof e!="function"&&typeof e!="object"){if(n._owner){if(n=n._owner,n){if(n.tag!==1)throw Error(V(309));var r=n.stateNode}if(!r)throw Error(V(147,e));var o=r,i=""+e;return t!==null&&t.ref!==null&&typeof t.ref=="function"&&t.ref._stringRef===i?t.ref:(t=function(s){var a=o.refs;s===null?delete a[i]:a[i]=s},t._stringRef=i,t)}if(typeof e!="string")throw Error(V(284));if(!n._owner)throw Error(V(290,e))}return e}function rm(e,t){throw e=Object.prototype.toString.call(t),Error(V(31,e==="[object Object]"?"object with keys {"+Object.keys(t).join(", ")+"}":e))}function eb(e){var t=e._init;return t(e._payload)}function AL(e){function t(m,E){if(e){var O=m.deletions;O===null?(m.deletions=[E],m.flags|=16):O.push(E)}}function n(m,E){if(!e)return null;for(;E!==null;)t(m,E),E=E.sibling;return null}function r(m,E){for(m=new Map;E!==null;)E.key!==null?m.set(E.key,E):m.set(E.index,E),E=E.sibling;return m}function o(m,E){return m=us(m,E),m.index=0,m.sibling=null,m}function i(m,E,O){return m.index=O,e?(O=m.alternate,O!==null?(O=O.index,O<E?(m.flags|=2,E):O):(m.flags|=2,E)):(m.flags|=1048576,E)}function s(m){return e&&m.alternate===null&&(m.flags|=2),m}function a(m,E,O,g){return E===null||E.tag!==6?(E=KO(O,m.mode,g),E.return=m,E):(E=o(E,O),E.return=m,E)}function l(m,E,O,g){var I=O.type;return I===jl?c(m,E,O.props.children,g,O.key):E!==null&&(E.elementType===I||typeof I=="object"&&I!==null&&I.$$typeof===Zi&&eb(I)===E.type)?(g=o(E,O.props),g.ref=Ad(m,E,O),g.return=m,g):(g=_m(O.type,O.key,O.props,null,m.mode,g),g.ref=Ad(m,E,O),g.return=m,g)}function u(m,E,O,g){return E===null||E.tag!==4||E.stateNode.containerInfo!==O.containerInfo||E.stateNode.implementation!==O.implementation?(E=zO(O,m.mode,g),E.return=m,E):(E=o(E,O.children||[]),E.return=m,E)}function c(m,E,O,g,I){return E===null||E.tag!==7?(E=Oa(O,m.mode,g,I),E.return=m,E):(E=o(E,O),E.return=m,E)}function d(m,E,O){if(typeof E=="string"&&E!==""||typeof E=="number")return E=KO(""+E,m.mode,O),E.return=m,E;if(typeof E=="object"&&E!==null){switch(E.$$typeof){case Hp:return O=_m(E.type,E.key,E.props,null,m.mode,O),O.ref=Ad(m,null,E),O.return=m,O;case Xl:return E=zO(E,m.mode,O),E.return=m,E;case Zi:var g=E._init;return d(m,g(E._payload),O)}if(Cd(E)||gd(E))return E=Oa(E,m.mode,O,null),E.return=m,E;rm(m,E)}return null}function f(m,E,O,g){var I=E!==null?E.key:null;if(typeof O=="string"&&O!==""||typeof O=="number")return I!==null?null:a(m,E,""+O,g);if(typeof O=="object"&&O!==null){switch(O.$$typeof){case Hp:return O.key===I?l(m,E,O,g):null;case Xl:return O.key===I?u(m,E,O,g):null;case Zi:return I=O._init,f(m,E,I(O._payload),g)}if(Cd(O)||gd(O))return I!==null?null:c(m,E,O,g,null);rm(m,O)}return null}function p(m,E,O,g,I){if(typeof g=="string"&&g!==""||typeof g=="number")return m=m.get(O)||null,a(E,m,""+g,I);if(typeof g=="object"&&g!==null){switch(g.$$typeof){case Hp:return m=m.get(g.key===null?O:g.key)||null,l(E,m,g,I);case Xl:return m=m.get(g.key===null?O:g.key)||null,u(E,m,g,I);case Zi:var S=g._init;return p(m,E,O,S(g._payload),I)}if(Cd(g)||gd(g))return m=m.get(O)||null,c(E,m,g,I,null);rm(E,g)}return null}function _(m,E,O,g){for(var I=null,S=null,A=E,R=E=0,y=null;A!==null&&R<O.length;R++){A.index>R?(y=A,A=null):y=A.sibling;var b=f(m,A,O[R],g);if(b===null){A===null&&(A=y);break}e&&A&&b.alternate===null&&t(m,A),E=i(b,E,R),S===null?I=b:S.sibling=b,S=b,A=y}if(R===O.length)return n(m,A),ct&&pa(m,R),I;if(A===null){for(;R<O.length;R++)A=d(m,O[R],g),A!==null&&(E=i(A,E,R),S===null?I=A:S.sibling=A,S=A);return ct&&pa(m,R),I}for(A=r(m,A);R<O.length;R++)y=p(A,m,R,O[R],g),y!==null&&(e&&y.alternate!==null&&A.delete(y.key===null?R:y.key),E=i(y,E,R),S===null?I=y:S.sibling=y,S=y);return e&&A.forEach(function(L){return t(m,L)}),ct&&pa(m,R),I}function T(m,E,O,g){var I=gd(O);if(typeof I!="function")throw Error(V(150));if(O=I.call(O),O==null)throw Error(V(151));for(var S=I=null,A=E,R=E=0,y=null,b=O.next();A!==null&&!b.done;R++,b=O.next()){A.index>R?(y=A,A=null):y=A.sibling;var L=f(m,A,b.value,g);if(L===null){A===null&&(A=y);break}e&&A&&L.alternate===null&&t(m,A),E=i(L,E,R),S===null?I=L:S.sibling=L,S=L,A=y}if(b.done)return n(m,A),ct&&pa(m,R),I;if(A===null){for(;!b.done;R++,b=O.next())b=d(m,b.value,g),b!==null&&(E=i(b,E,R),S===null?I=b:S.sibling=b,S=b);return ct&&pa(m,R),I}for(A=r(m,A);!b.done;R++,b=O.next())b=p(A,m,R,b.value,g),b!==null&&(e&&b.alternate!==null&&A.delete(b.key===null?R:b.key),E=i(b,E,R),S===null?I=b:S.sibling=b,S=b);return e&&A.forEach(function(D){return t(m,D)}),ct&&pa(m,R),I}function h(m,E,O,g){if(typeof O=="object"&&O!==null&&O.type===jl&&O.ke
vendor: 5,060 bytes, line 6
6y===null&&(O=O.props.children),typeof O=="object"&&O!==null){switch(O.$$typeof){case Hp:e:{for(var I=O.key,S=E;S!==null;){if(S.key===I){if(I=O.type,I===jl){if(S.tag===7){n(m,S.sibling),E=o(S,O.props.children),E.return=m,m=E;break e}}else if(S.elementType===I||typeof I=="object"&&I!==null&&I.$$typeof===Zi&&eb(I)===S.type){n(m,S.sibling),E=o(S,O.props),E.ref=Ad(m,S,O),E.return=m,m=E;break e}n(m,S);break}else t(m,S);S=S.sibling}O.type===jl?(E=Oa(O.props.children,m.mode,g,O.key),E.return=m,m=E):(g=_m(O.type,O.key,O.props,null,m.mode,g),g.ref=Ad(m,E,O),g.return=m,m=g)}return s(m);case Xl:e:{for(S=O.key;E!==null;){if(E.key===S)if(E.tag===4&&E.stateNode.containerInfo===O.containerInfo&&E.stateNode.implementation===O.implementation){n(m,E.sibling),E=o(E,O.children||[]),E.return=m,m=E;break e}else{n(m,E);break}else t(m,E);E=E.sibling}E=zO(O,m.mode,g),E.return=m,m=E}return s(m);case Zi:return S=O._init,h(m,E,S(O._payload),g)}if(Cd(O))return _(m,E,O,g);if(gd(O))return T(m,E,O,g);rm(m,O)}return typeof O=="string"&&O!==""||typeof O=="number"?(O=""+O,E!==null&&E.tag===6?(n(m,E.sibling),E=o(E,O),E.return=m,m=E):(n(m,E),E=KO(O,m.mode,g),E.return=m,m=E),s(m)):n(m,E)}return h}var mu=AL(!0),NL=AL(!1),Pm=ps(null),Dm=null,nu=null,oI=null;function iI(){oI=nu=Dm=null}function sI(e){var t=Pm.current;rt(Pm),e._currentValue=t}function Sg(e,t,n){for(;e!==null;){var r=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,r!==null&&(r.childLanes|=t)):r!==null&&(r.childLanes&t)!==t&&(r.childLanes|=t),e===n)break;e=e.return}}function uu(e,t){Dm=e,oI=nu=null,e=e.dependencies,e!==null&&e.firstContext!==null&&(e.lanes&t&&(Vn=!0),e.firstContext=null)}function wr(e){var t=e._currentValue;if(oI!==e)if(e={context:e,memoizedValue:t,next:null},nu===null){if(Dm===null)throw Error(V(308));nu=e,Dm.dependencies={lanes:0,firstContext:e}}else nu=nu.next=e;return t}var _a=null;function aI(e){_a===null?_a=[e]:_a.push(e)}function yL(e,t,n,r){var o=t.interleaved;return o===null?(n.next=n,aI(t)):(n.next=o.next,o.next=n),t.interleaved=n,ci(e,r)}function ci(e,t){e.lanes|=t;var n=e.alternate;for(n!==null&&(n.lanes|=t),n=e,e=e.return;e!==null;)e.childLanes|=t,n=e.alternate,n!==null&&(n.childLanes|=t),n=e,e=e.return;return n.tag===3?n.stateNode:null}var Ji=!1;function lI(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function bL(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,effects:e.effects})}function ai(e,t){return{eventTime:e,lane:t,tag:0,payload:null,callback:null,next:null}}function ss(e,t,n){var r=e.updateQueue;if(r===null)return null;if(r=r.shared,Ce&2){var o=r.pending;return o===null?t.next=t:(t.next=o.next,o.next=t),r.pending=t,ci(e,n)}return o=r.interleaved,o===null?(t.next=t,aI(r)):(t.next=o.next,o.next=t),r.interleaved=t,ci(e,n)}function cm(e,t,n){if(t=t.updateQueue,t!==null&&(t=t.shared,(n&4194240)!==0)){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,Xg(e,n)}}function tb(e,t){var n=e.updateQueue,r=e.alternate;if(r!==null&&(r=r.updateQueue,n===r)){var o=null,i=null;if(n=n.firstBaseUpdate,n!==null){do{var s={eventTime:n.eventTime,lane:n.lane,tag:n.tag,payload:n.payload,callback:n.callback,next:null};i===null?o=i=s:i=i.next=s,n=n.next}while(n!==null);i===null?o=i=t:i=i.next=t}else o=i=t;n={baseState:r.baseState,firstBaseUpdate:o,lastBaseUpdate:i,shared:r.shared,effects:r.effects},e.updateQueue=n;return}e=n.lastBaseUpdate,e===null?n.firstBaseUpdate=t:e.next=t,n.lastBaseUpdate=t}function vm(e,t,n,r){var o=e.updateQueue;Ji=!1;var i=o.firstBaseUpdate,s=o.lastBaseUpdate,a=o.shared.pending;if(a!==null){o.shared.pending=null;var l=a,u=l.next;l.next=null,s===null?i=u:s.next=u,s=l;var c=e.alternate;c!==null&&(c=c.updateQueue,a=c.lastBaseUpdate,a!==s&&(a===null?c.firstBaseUpdate=u:a.next=u,c.lastBaseUpdate=l))}if(i!==null){var d=o.baseState;s=0,c=u=l=null,a=i;do{var f=a.lane,p=a.eventTime;if((r&f)===f){c!==null&&(c=c.next={eventTime:p,lane:0,tag:a.tag,payload:a.payload,callback:a.callback,next:null});e:{var _=e,T=a;switch(f=t,p=n,T.tag){case 1:if(_=T.payload,typeof _=="function"){d=_.call(p,d,f);break e}d=_;break e;case 3:_.flags=_.flags&-65537|128;case 0:if(_=T.payload,f=typeof _=="function"?_.call(p,d,f):_,f==null)break e;d=Et({},d,f);break e;case 2:Ji=!0}}a.callback!==null&&a.lane!==0&&(e.flags|=64,f=o.effects,f===null?o.effects=[a]:f.push(a))}else p={eventTime:p,lane:f,tag:a.tag,payload:a.payload,callback:a.callback,next:null},c===null?(u=c=p,l=d):c=c.next=p,s|=f;if(a=a.next,a===null){if(a=o.shared.pending,a===null)break;f=a,a=f.next,f.next=null,o.lastBaseUpdate=f,o.shared.pending=null}}while(1);if(c===null&&(l=d),o.baseState=l,o.firstBaseUpdate=u,o.lastBaseUpdate=c,t=o.shared.interleaved,t!==null){o=t;do s|=o.lane,o=o.next;while(o!==t)}else i===null&&(o.shared.lanes=0);Ra|=s,e.lanes=s,e.memoizedState=d}}function nb(e,t,n){if(e=t.effects,t.effects=null,e!==null)for(t=0;t<e.length;t++){var r=e[t],o=r.callback;
vendor: 14,891 bytes, lines 6-8
6if(o!==null){if(r.callback=null,r=n,typeof o!="function")throw Error(V(191,o));o.call(r)}}}var lf={},ko=ps(lf),qd=ps(lf),Qd=ps(lf);function Ta(e){if(e===lf)throw Error(V(174));return e}function uI(e,t){switch($e(Qd,t),$e(qd,e),$e(ko,lf),e=t.nodeType,e){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:ng(null,"");break;default:e=e===8?t.parentNode:t,t=e.namespaceURI||null,e=e.tagName,t=ng(t,e)}rt(ko),$e(ko,t)}function Eu(){rt(ko),rt(qd),rt(Qd)}function LL(e){Ta(Qd.current);var t=Ta(ko.current),n=ng(t,e.type);t!==n&&($e(qd,e),$e(ko,n))}function cI(e){qd.current===e&&(rt(ko),rt(qd))}var pt=ps(0);function xm(e){for(var t=e;t!==null;){if(t.tag===13){var n=t.memoizedState;if(n!==null&&(n=n.dehydrated,n===null||n.data==="$?"||n.data==="$!"))return t}else if(t.tag===19&&t.memoizedProps.revealOrder!==void 0){if(t.flags&128)return t}else if(t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}var BO=[];function dI(){for(var e=0;e<BO.length;e++)BO[e]._workInProgressVersionPrimary=null;BO.length=0}var dm=fi.ReactCurrentDispatcher,UO=fi.ReactCurrentBatchConfig,Sa=0,mt=null,Ct=null,wt=null,Mm=!1,Fd=!1,ef=0,S2=0;function En(){throw Error(V(321))}function fI(e,t){if(t===null)return!1;for(var n=0;n<t.length&&n<e.length;n++)if(!co(e[n],t[n]))return!1;return!0}function pI(e,t,n,r,o,i){if(Sa=i,mt=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,dm.current=e===null||e.memoizedState===null?y2:b2,e=n(r,o),Fd){i=0;do{if(Fd=!1,ef=0,25<=i)throw Error(V(301));i+=1,wt=Ct=null,t.updateQueue=null,dm.current=L2,e=n(r,o)}while(Fd)}if(dm.current=Gm,t=Ct!==null&&Ct.next!==null,Sa=0,wt=Ct=mt=null,Mm=!1,t)throw Error(V(300));return e}function mI(){var e=ef!==0;return ef=0,e}function xo(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return wt===null?mt.memoizedState=wt=e:wt=wt.next=e,wt}function Br(){if(Ct===null){var e=mt.alternate;e=e!==null?e.memoizedState:null}else e=Ct.next;var t=wt===null?mt.memoizedState:wt.next;if(t!==null)wt=t,Ct=e;else{if(e===null)throw Error(V(310));Ct=e,e={memoizedState:Ct.memoizedState,baseState:Ct.baseState,baseQueue:Ct.baseQueue,queue:Ct.queue,next:null},wt===null?mt.memoizedState=wt=e:wt=wt.next=e}return wt}function tf(e,t){return typeof t=="function"?t(e):t}function VO(e){var t=Br(),n=t.queue;if(n===null)throw Error(V(311));n.lastRenderedReducer=e;var r=Ct,o=r.baseQueue,i=n.pending;if(i!==null){if(o!==null){var s=o.next;o.next=i.next,i.next=s}r.baseQueue=o=i,n.pending=null}if(o!==null){i=o.next,r=r.baseState;var a=s=null,l=null,u=i;do{var c=u.lane;if((Sa&c)===c)l!==null&&(l=l.next={lane:0,action:u.action,hasEagerState:u.hasEagerState,eagerState:u.eagerState,next:null}),r=u.hasEagerState?u.eagerState:e(r,u.action);else{var d={lane:c,action:u.action,hasEagerState:u.hasEagerState,eagerState:u.eagerState,next:null};l===null?(a=l=d,s=r):l=l.next=d,mt.lanes|=c,Ra|=c}u=u.next}while(u!==null&&u!==i);l===null?s=r:l.next=a,co(r,t.memoizedState)||(Vn=!0),t.memoizedState=r,t.baseState=s,t.baseQueue=l,n.lastRenderedState=r}if(e=n.interleaved,e!==null){o=e;do i=o.lane,mt.lanes|=i,Ra|=i,o=o.next;while(o!==e)}else o===null&&(n.lanes=0);return[t.memoizedState,n.dispatch]}function HO(e){var t=Br(),n=t.queue;if(n===null)throw Error(V(311));n.lastRenderedReducer=e;var r=n.dispatch,o=n.pending,i=t.memoizedState;if(o!==null){n.pending=null;var s=o=o.next;do i=e(i,s.action),s=s.next;while(s!==o);co(i,t.memoizedState)||(Vn=!0),t.memoizedState=i,t.baseQueue===null&&(t.baseState=i),n.lastRenderedState=i}return[i,r]}function CL(){}function PL(e,t){var n=mt,r=Br(),o=t(),i=!co(r.memoizedState,o);if(i&&(r.memoizedState=o,Vn=!0),r=r.queue,EI(xL.bind(null,n,r,e),[e]),r.getSnapshot!==t||i||wt!==null&&wt.memoizedState.tag&1){if(n.flags|=2048,nf(9,vL.bind(null,n,r,o,t),void 0,null),Bt===null)throw Error(V(349));Sa&30||DL(n,t,o)}return o}function DL(e,t,n){e.flags|=16384,e={getSnapshot:t,value:n},t=mt.updateQueue,t===null?(t={lastEffect:null,stores:null},mt.updateQueue=t,t.stores=[e]):(n=t.stores,n===null?t.stores=[e]:n.push(e))}function vL(e,t,n,r){t.value=n,t.getSnapshot=r,ML(t)&&GL(e)}function xL(e,t,n){return n(function(){ML(t)&&GL(e)})}function ML(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!co(e,n)}catch{return!0}}function GL(e){var t=ci(e,1);t!==null&&uo(t,e,1,-1)}function rb(e){var t=xo();return typeof e=="function"&&(e=e()),t.memoizedState=t.baseState=e,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:tf,lastRenderedState:e},t.queue=e,e=e.dispatch=N2.bind(null,mt,e),[t.memoizedState,e]}function nf(e,t,n,r){return e={tag:e,create:t,destroy:n,deps:r,next:null},t=mt.updateQueue,t===null?(t={lastEffect:null,stores:null},mt.updateQueue=t,t.lastEffect=e.next=e):(n=t.lastEffect,n===null?t.lastEffect=e.next=e:(r=n.next,n.next=e,e.next=r,t.lastEffect=e)),e}function kL(){return Br().memoizedState}function fm(e,t,n,r){var o=xo();mt.flags|=e,o.memoizedState=nf(1|t,n,void 0,r===void 0?null:r)}function Xm(e,t,n,r){var o=Br();r=r===void 0?null:r;var i=void 0;if(Ct!==null){var s=Ct.memoizedState;if(i=s.destroy,r!==null&&fI(r,s.deps)){o.memoizedState=nf(t,n,i,r);return}}mt.flags|=e,o.memoizedState=nf(1|t,n,i,r)}function ob(e,t){return fm(8390656,8,e,t)}function EI(e,t){return Xm(2048,8,e,t)}function FL(e,t){return Xm(4,2,e,t)}function wL(e,t){return Xm(4,4,e,t)}function BL(e,t){if(typeof t=="function")return e=e(),t(e),function(){t(null)};if(t!=null)return e=e(),t.current=e,function(){t.current=null}}function UL(e,t,n){return n=n!=null?n.concat([e]):null,Xm(4,4,BL.bind(null,t,e),n)}function _I(){}function VL(e,t){var n=Br();t=t===void 0?null:t;var r=n.memoizedState;return r!==null&&t!==null&&fI(t,r[1])?r[0]:(n.memoizedState=[e,t],e)}function HL(e,t){var n=Br();t=t===void 0?null:t;var r=n.memoizedState;return r!==null&&t!==null&&fI(t,r[1])?r[0]:(e=e(),n.memoizedState=[e,t],e)}function WL(e,t,n){return Sa&21?(co(n,t)||(n=jb(),mt.lanes|=n,Ra|=n,e.baseState=!0),t):(e.baseState&&(e.baseState=!1,Vn=!0),e.memoizedState=n)}function R2(e,t){var n=Be;Be=n!==0&&4>n?n:4,e(!0);var r=UO.transition;UO.transition={};try{e(!1),t()}finally{Be=n,UO.transition=r}}function YL(){return Br().memoizedState}function A2(e,t,n){var r=ls(e);if(n={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null},KL(e))zL(t,n);else if(n=yL(e,t,n,r),n!==null){var o=Dn();uo(n,e,r,o),XL(n,t,r)}}function N2(e,t,n){var r=ls(e),o={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null};if(KL(e))zL(t,o);else{var i=e.alternate;if(e.lanes===0&&(i===null||i.lanes===0)&&(i=t.lastRenderedReducer,i!==null))try{var s=t.lastRenderedState,a=i(s,n);if(o.hasEagerState=!0,o.eagerState=a,co(a,s)){var l=t.interleaved;l===null?(o.next=o,aI(t)):(o.next=l.next,l.next=o),t.interleaved=o;return}}catch{}finally{}n=yL(e,t,o,r),n!==null&&(o=Dn(),uo(n,e,r,o),XL(n,t,r))}}function KL(e){var t=e.alternate;return e===mt||t!==null&&t===mt}function zL(e,t){Fd=Mm=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function XL(e,t,n){if(n&4194240){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,Xg(e,n)}}var Gm={readContext:wr,useCallback:En,useContext:En,useEffect:En,useImperativeHandle:En,useInsertionEffect:En,useLayoutEffect:En,useMemo:En,useReducer:En,useRef:En,useState:En,useDebugValue:En,useDeferredValue:En,useTransition:En,useMutableSource:En,useSyncExternalStore:En,useId:En,unstable_isNewReconciler:!1},y2={readContext:wr,useCallback:function(e,t){return xo().memoizedState=[e,t===void 0?null:t],e},useContext:wr,useEffect:ob,useImperativeHandle:function(e,t,n){return n=n!=null?n.concat([e]):null,fm(4194308,4,BL.bind(null,t,e),n)},useLayoutEffect:function(e,t){return fm(4194308,4,e,t)},useInsertionEffect:function(e,t){return fm(4,2,e,t)},useMemo:function(e,t){var n=xo();return t=t===void 0?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var r=xo();return t=n!==void 0?n(t):t,r.memoizedState=r.baseState=t,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:t},r.queue=e,e=e.dispatch=A2.bind(null,mt,e),[r.memoizedState,e]},useRef:function(e){var t=xo();return e={current:e},t.memoizedState=e},useState:rb,useDebugValue:_I,useDeferredValue:function(e){return xo().memoizedState=e},useTransition:function(){var e=rb(!1),t=e[0];return e=R2.bind(null,e[1]),xo().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,n){var r=mt,o=xo();if(ct){if(n===void 0)throw Error(V(407));n=n()}else{if(n=t(),Bt===null)throw Error(V(349));Sa&30||DL(r,t,n)}o.memoizedState=n;var i={value:n,getSnapshot:t};return o.queue=i,ob(xL.bind(null,r,i,e),[e]),r.flags|=2048,nf(9,vL.bind(null,r,i,n,t),void 0,null),n},useId:function(){var e=xo(),t=Bt.identifierPrefix;if(ct){var n=si,r=ii;n=(r&~(1<<32-lo(r)-1)).toString(32)+n,t=":"+t+"R"+n,n=ef++,0<n&&(t+="H"+n.toString(32)),t+=":"}else n=S2++,t=":"+t+"r"+n.toString(32)+":";return e.memoizedState=t},unstable_isNewReconciler:!1},b2={readContext:wr,useCallback:VL,useContext:wr,useEffect:EI,useImperativeHandle:UL,useInsertionEffect:FL,useLayoutEffect:wL,useMemo:HL,useReducer:VO,useRef:kL,useState:function(){return VO(tf)},useDebugValue:_I,useDeferredValue:function(e){var t=Br();return WL(t,Ct.memoizedState,e)},useTransition:function(){var e=VO(tf)[0],t=Br().memoizedState;return[e,t]},useMutableSource:CL,useSyncExternalStore:PL,useId:YL,unstable_isNewReconciler:!1},L2={readContext:wr,useCallback:VL,useContext:wr,useEffect:EI,useImperativeHandle:UL,useInsertionEffect:FL,useLayoutEffect:wL,useMemo:HL,useReducer:HO,useRef:kL,useState:function(){return HO(tf)},useDebugValue:_I,useDeferredValue:function(e){var t=Br();return Ct===null?t.memoizedState=e:WL(t,Ct.memoizedState,e)},useTransition:function(){var e=HO(tf)[0],t=Br().memoizedState;return[e,t]},useMutableSource:CL,useSyncExternalStore:PL,useId:YL,unstable_isNewReconciler:!1};function io(e,t){if(e&&e.defaultProps){t=Et({},t),e=e.defaultProps;for(var n in e)t[n]===void 0&&(t[n]=e[n]);return t}return t}function Rg(e,t,n,r){t=e.memoizedState,n=n(r,t),n=n==null?t:Et({},t,n),e.memoizedState=n,e.lanes===0&&(e.updateQueue.baseState=n)}var jm={isMounted:function(e){return(e=e._reactInternals)?ya(e)===e:!1},enqueueSetState:function(e,t,n){e=e._reactInternals;var r=Dn(),o=ls(e),i=ai(r,o);i.payload=t,n!=null&&(i.callback=n),t=ss(e,i,o),t!==null&&(uo(t,e,o,r),cm(t,e,o))},enqueueReplaceState:function(e,t,n){e=e._reactInternals;var r=Dn(),o=ls(e),i=ai(r,o);i.tag=1,i.payload=t,n!=null&&(i.callback=n),t=ss(e,i,o),t!==null&&(uo(t,e,o,r),cm(t,e,o))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var n=Dn(),r=ls(e),o=ai(n,r);o.tag=2,t!=null&&(o.callback=t),t=ss(e,o,r),t!==null&&(uo(t,e,r,n),cm(t,e,r))}};function ib(e,t,n,r,o,i,s){return e=e.stateNode,typeof e.shouldComponentUpdate=="function"?e.shouldComponentUpdate(r,i,s):t.prototype&&t.prototype.isPureReactComponent?!jd(n,r)||!jd(o,i):!0}function jL(e,t,n){var r=!1,o=ds,i=t.contextType;return typeof i=="object"&&i!==null?i=wr(i):(o=Wn(t)?ga:hn.current,r=t.contextTypes,i=(r=r!=null)?fu(e,o):ds),t=new t(n,i),e.memoizedState=t.state!==null&&t.state!==void 0?t.state:null,t.updater=jm,e.stateNode=t,t._reactInternals=e,r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=o,e.__reactInternalMemoizedMaskedChildContext=i),t}function sb(e,t,n,r){e=t.state,typeof t.componentWillReceiveProps=="function"&&t.componentWillReceiveProps(n,r),typeof t.UNSAFE_componentWillReceiveProps=="function"&&t.UNSAFE_componentWillReceiveProps(n,r),t.state!==e&&jm.enqueueReplaceState(t,t.state,null)}function Ag(e,t,n,r){var o=e.stateNode;o.props=n,o.state=e.memoizedState,o.refs={},lI(e);var i=t.contextType;typeof i=="object"&&i!==null?o.context=wr(i):(i=Wn(t)?ga:hn.current,o.context=fu(e,i)),o.state=e.memoizedState,i=t.getDerivedStateFromProps,typeof i=="function"&&(Rg(e,t,i,n),o.state=e.memoizedState),typeof t.getDerivedStateFromProps=="function"||typeof o.getSnapshotBeforeUpdate=="function"||typeof o.UNSAFE_componentWillMount!="function"&&typeof o.componentWillMount!="function"||(t=o.state,typeof o.componentWillMount=="function"&&o.componentWillMount(),typeof o.UNSAFE_componentWillMount=="function"&&o.UNSAFE_componentWillMount(),t!==o.state&&jm.enqueueReplaceState(o,o.state,null),vm(e,n,o,r),o.state=e.memoizedState),typeof o.componentDidMount=="function"&&(e.flags|=4194308)}function _u(e,t){try{var n="",r=t;do n+=oH(r),r=r.return;while(r);var o=n}catch(i){o=` 7Error generating stack: `+i.message+` 8`+i.stack}return{value:e,source:t,stack:o,digest:null}}function WO(e,t,n){return{value:e,source:null,stack:n??null,digest:t??null}}function Ng(e,t){try{console.error(t.value)}catch(n){setTimeout(function(){throw n})}}var C2=typeof WeakMap=="function"?WeakMap:Map;function $L(e,t,n){n=ai(-1,n),n.tag=3,n.payload={element:null};var r=t.value;return n.callback=function(){Fm||(Fm=!0,Gg=r),Ng(e,t)},n}function ZL(e,t,n){n=ai(-1,n),n.tag=3;var r=e.type.getDerivedStateFromError;if(typeof r=="function"){var o=t.value;n.payload=function(){return r(o)},n.callback=function(){Ng(e,t)}}var i=e.stateNode;return i!==null&&typeof i.componentDidCatch=="function"&&(n.callback=function(){Ng(e,t),typeof r!="function"&&(as===null?as=new Set([this]):as.add(this));var s=t.stack;this.componentDidCatch(t.value,{componentStack:s!==null?s:""})}),n}function ab(e,t,n){var r=e.pingCache;if(r===null){r=e.pingCache=new C2;var o=new Set;r.set(t,o)}else o=r.get(t),o===void 0&&(o=new Set,r.set(t,o));o.has(n)||(o.add(n),e=W2.bind(null,e,t,n),t.then(e,e))}function lb(e){do{var t;if((t=e.tag===13)&&(t=e.memoizedState,t=t!==null?t.dehydrated!==null:!0),t)return e;e=e.return}while(e!==null);return null}function ub(e,t,n,r,o){return e.mode&1?(e.flags|=65536,e.lanes=o,e):(e===t?e.flags|=65536:(e.flags|=128,n.flags|=131072,n.flags&=-52805,n.tag===1&&(n.alternate===null?n.tag=17:(t=ai(-1,1),t.tag=2,ss(n,t,1))),n.lanes|=1),e)}var P2=fi.ReactCurrentOwner,Vn=!1;function Pn(e,t,n,r){t.child=e===null?NL(t,null,n,r):mu(t,e.child,n,r)}function cb(e,t,n,r,o){n=n.render;var i=t.ref;return uu(t,o),r=pI(e,t,n,r,i,o),n=mI(),e!==null&&!Vn?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~o,di(e,t,o)):(ct&&n&&tI(t),t.flags|=1,Pn(e,t,r,o),t.child)}function db(e,t,n,r,o){if(e===null){var i=n.type;return typeof i=="function"&&!AI(i)&&i.defaultProps===void 0&&n.compare===null&&n.defaultProps===void 0?(t.tag=15,t.type=i,JL(e,t,i,r,o)):(e=_m(n.type,null,r,t,t.mode,o),e.ref=t.ref,e.return=t,t.child=e)}if(i=e.child,!(e.lanes&o)){var s=i.memoizedProps;if(n=n.compare,n=n!==null?n:jd,n(s,r)&&e.ref===t.ref)return di(e,t,o)}return t.flags|=1,e=us(i,r),e.ref=t.ref,e.return=t,t.child=e}function JL(e,t,n,r,o){if(e!==null){var i=e.memoizedProps;if(jd(i,r)&&e.ref===t.ref)if(Vn=!1,t.pendingProps=r=i,(e.lanes&o)!==0)e.flags&131072&&(Vn=!0);else return t.lanes=e.lanes,di(e,t,o)}return yg(e,t,n,r,o)}
vendor: 9,133 bytes, line 8
8function qL(e,t,n){var r=t.pendingProps,o=r.children,i=e!==null?e.memoizedState:null;if(r.mode==="hidden")if(!(t.mode&1))t.memoizedState={baseLanes:0,cachePool:null,transitions:null},$e(ou,lr),lr|=n;else{if(!(n&1073741824))return e=i!==null?i.baseLanes|n:n,t.lanes=t.childLanes=1073741824,t.memoizedState={baseLanes:e,cachePool:null,transitions:null},t.updateQueue=null,$e(ou,lr),lr|=e,null;t.memoizedState={baseLanes:0,cachePool:null,transitions:null},r=i!==null?i.baseLanes:n,$e(ou,lr),lr|=r}else i!==null?(r=i.baseLanes|n,t.memoizedState=null):r=n,$e(ou,lr),lr|=r;return Pn(e,t,o,n),t.child}function QL(e,t){var n=t.ref;(e===null&&n!==null||e!==null&&e.ref!==n)&&(t.flags|=512,t.flags|=2097152)}function yg(e,t,n,r,o){var i=Wn(n)?ga:hn.current;return i=fu(t,i),uu(t,o),n=pI(e,t,n,r,i,o),r=mI(),e!==null&&!Vn?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~o,di(e,t,o)):(ct&&r&&tI(t),t.flags|=1,Pn(e,t,n,o),t.child)}function fb(e,t,n,r,o){if(Wn(n)){var i=!0;bm(t)}else i=!1;if(uu(t,o),t.stateNode===null)pm(e,t),jL(t,n,r),Ag(t,n,r,o),r=!0;else if(e===null){var s=t.stateNode,a=t.memoizedProps;s.props=a;var l=s.context,u=n.contextType;typeof u=="object"&&u!==null?u=wr(u):(u=Wn(n)?ga:hn.current,u=fu(t,u));var c=n.getDerivedStateFromProps,d=typeof c=="function"||typeof s.getSnapshotBeforeUpdate=="function";d||typeof s.UNSAFE_componentWillReceiveProps!="function"&&typeof s.componentWillReceiveProps!="function"||(a!==r||l!==u)&&sb(t,s,r,u),Ji=!1;var f=t.memoizedState;s.state=f,vm(t,r,s,o),l=t.memoizedState,a!==r||f!==l||Hn.current||Ji?(typeof c=="function"&&(Rg(t,n,c,r),l=t.memoizedState),(a=Ji||ib(t,n,a,r,f,l,u))?(d||typeof s.UNSAFE_componentWillMount!="function"&&typeof s.componentWillMount!="function"||(typeof s.componentWillMount=="function"&&s.componentWillMount(),typeof s.UNSAFE_componentWillMount=="function"&&s.UNSAFE_componentWillMount()),typeof s.componentDidMount=="function"&&(t.flags|=4194308)):(typeof s.componentDidMount=="function"&&(t.flags|=4194308),t.memoizedProps=r,t.memoizedState=l),s.props=r,s.state=l,s.context=u,r=a):(typeof s.componentDidMount=="function"&&(t.flags|=4194308),r=!1)}else{s=t.stateNode,bL(e,t),a=t.memoizedProps,u=t.type===t.elementType?a:io(t.type,a),s.props=u,d=t.pendingProps,f=s.context,l=n.contextType,typeof l=="object"&&l!==null?l=wr(l):(l=Wn(n)?ga:hn.current,l=fu(t,l));var p=n.getDerivedStateFromProps;(c=typeof p=="function"||typeof s.getSnapshotBeforeUpdate=="function")||typeof s.UNSAFE_componentWillReceiveProps!="function"&&typeof s.componentWillReceiveProps!="function"||(a!==d||f!==l)&&sb(t,s,r,l),Ji=!1,f=t.memoizedState,s.state=f,vm(t,r,s,o);var _=t.memoizedState;a!==d||f!==_||Hn.current||Ji?(typeof p=="function"&&(Rg(t,n,p,r),_=t.memoizedState),(u=Ji||ib(t,n,u,r,f,_,l)||!1)?(c||typeof s.UNSAFE_componentWillUpdate!="function"&&typeof s.componentWillUpdate!="function"||(typeof s.componentWillUpdate=="function"&&s.componentWillUpdate(r,_,l),typeof s.UNSAFE_componentWillUpdate=="function"&&s.UNSAFE_componentWillUpdate(r,_,l)),typeof s.componentDidUpdate=="function"&&(t.flags|=4),typeof s.getSnapshotBeforeUpdate=="function"&&(t.flags|=1024)):(typeof s.componentDidUpdate!="function"||a===e.memoizedProps&&f===e.memoizedState||(t.flags|=4),typeof s.getSnapshotBeforeUpdate!="function"||a===e.memoizedProps&&f===e.memoizedState||(t.flags|=1024),t.memoizedProps=r,t.memoizedState=_),s.props=r,s.state=_,s.context=l,r=u):(typeof s.componentDidUpdate!="function"||a===e.memoizedProps&&f===e.memoizedState||(t.flags|=4),typeof s.getSnapshotBeforeUpdate!="function"||a===e.memoizedProps&&f===e.memoizedState||(t.flags|=1024),r=!1)}return bg(e,t,n,r,i,o)}function bg(e,t,n,r,o,i){QL(e,t);var s=(t.flags&128)!==0;if(!r&&!s)return o&&Jy(t,n,!1),di(e,t,i);r=t.stateNode,P2.current=t;var a=s&&typeof n.getDerivedStateFromError!="function"?null:r.render();return t.flags|=1,e!==null&&s?(t.child=mu(t,e.child,null,i),t.child=mu(t,null,a,i)):Pn(e,t,a,i),t.memoizedState=r.state,o&&Jy(t,n,!0),t.child}function eC(e){var t=e.stateNode;t.pendingContext?Zy(e,t.pendingContext,t.pendingContext!==t.context):t.context&&Zy(e,t.context,!1),uI(e,t.containerInfo)}function pb(e,t,n,r,o){return pu(),rI(o),t.flags|=256,Pn(e,t,n,r),t.child}var Lg={dehydrated:null,treeContext:null,retryLane:0};function Cg(e){return{baseLanes:e,cachePool:null,transitions:null}}function tC(e,t,n){var r=t.pendingProps,o=pt.current,i=!1,s=(t.flags&128)!==0,a;if((a=s)||(a=e!==null&&e.memoizedState===null?!1:(o&2)!==0),a?(i=!0,t.flags&=-129):(e===null||e.memoizedState!==null)&&(o|=1),$e(pt,o&1),e===null)return Ig(t),e=t.memoizedState,e!==null&&(e=e.dehydrated,e!==null)?(t.mode&1?e.data==="$!"?t.lanes=8:t.lanes=1073741824:t.lanes=1,null):(s=r.children,e=r.fallback,i?(r=t.mode,i=t.child,s={mode:"hidden",children:s},!(r&1)&&i!==null?(i.childLanes=0,i.pendingProps=s):i=Jm(s,r,0,null),e=Oa(e,r,n,null),i.return=t,e.return=t,i.sibling=e,t.child=i,t.child.memoizedState=Cg(n),t.memoizedState=Lg,e):TI(t,s));if(o=e.memoizedState,o!==null&&(a=o.dehydrated,a!==null))return D2(e,t,s,r,a,o,n);if(i){i=r.fallback,s=t.mode,o=e.child,a=o.sibling;var l={mode:"hidden",children:r.children};return!(s&1)&&t.child!==o?(r=t.child,r.childLanes=0,r.pendingProps=l,t.deletions=null):(r=us(o,l),r.subtreeFlags=o.subtreeFlags&14680064),a!==null?i=us(a,i):(i=Oa(i,s,n,null),i.flags|=2),i.return=t,r.return=t,r.sibling=i,t.child=r,r=i,i=t.child,s=e.child.memoizedState,s=s===null?Cg(n):{baseLanes:s.baseLanes|n,cachePool:null,transitions:s.transitions},i.memoizedState=s,i.childLanes=e.childLanes&~n,t.memoizedState=Lg,r}return i=e.child,e=i.sibling,r=us(i,{mode:"visible",children:r.children}),!(t.mode&1)&&(r.lanes=n),r.return=t,r.sibling=null,e!==null&&(n=t.deletions,n===null?(t.deletions=[e],t.flags|=16):n.push(e)),t.child=r,t.memoizedState=null,r}function TI(e,t){return t=Jm({mode:"visible",children:t},e.mode,0,null),t.return=e,e.child=t}function om(e,t,n,r){return r!==null&&rI(r),mu(t,e.child,null,n),e=TI(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function D2(e,t,n,r,o,i,s){if(n)return t.flags&256?(t.flags&=-257,r=WO(Error(V(422))),om(e,t,s,r)):t.memoizedState!==null?(t.child=e.child,t.flags|=128,null):(i=r.fallback,o=t.mode,r=Jm({mode:"visible",children:r.children},o,0,null),i=Oa(i,o,s,null),i.flags|=2,r.return=t,i.return=t,r.sibling=i,t.child=r,t.mode&1&&mu(t,e.child,null,s),t.child.memoizedState=Cg(s),t.memoizedState=Lg,i);if(!(t.mode&1))return om(e,t,s,null);if(o.data==="$!"){if(r=o.nextSibling&&o.nextSibling.dataset,r)var a=r.dgst;return r=a,i=Error(V(419)),r=WO(i,r,void 0),om(e,t,s,r)}if(a=(s&e.childLanes)!==0,Vn||a){if(r=Bt,r!==null){switch(s&-s){case 4:o=2;break;case 16:o=8;break;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:o=32;break;case 536870912:o=268435456;break;default:o=0}o=o&(r.suspendedLanes|s)?0:o,o!==0&&o!==i.retryLane&&(i.retryLane=o,ci(e,o),uo(r,e,o,-1))}return RI(),r=WO(Error(V(421))),om(e,t,s,r)}return o.data==="$?"?(t.flags|=128,t.child=e.child,t=Y2.bind(null,e),o._reactRetry=t,null):(e=i.treeContext,ur=is(o.nextSibling),cr=t,ct=!0,ao=null,e!==null&&(Mr[Gr++]=ii,Mr[Gr++]=si,Mr[Gr++]=Ia,ii=e.id,si=e.overflow,Ia=t),t=TI(t,r.children),t.flags|=4096,t)}function mb(e,t,n){e.lanes|=t;var r=e.alternate;r!==null&&(r.lanes|=t),Sg(e.return,t,n)}function YO(e,t,n,r,o){var i=e.memoizedState;i===null?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:r,tail:n,tailMode:o}:(i.isBackwards=t,i.rendering=null,i.renderingStartTime=0,i.last=r,i.tail=n,i.tailMode=o)}function nC(e,t,n){var r=t.pendingProps,o=r.revealOrder,i=r.tail;if(Pn(e,t,r.children,n),r=pt.current,r&2)r=r&1|2,t.flags|=128;else{if(e!==null&&e.flags&128)e:for(e=t.child;e!==null;){if(e.tag===13)e.memoizedState!==null&&mb(e,n,t);else if(e.tag===19)mb(e,n,t);else if(e.child!==null){e.child.return=e,e=e.child;continue}if(e===t)break e;for(;e.sibling===null;){if(e.return===null||e.return===t)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}r&=1}if($e(pt,r),!(t.mode&1))t.memoizedState=null;else switch(o){case"forwards":for(n=t.child,o=null;n!==null;)e=n.alternate,e!==null&&xm(e)===null&&(o=n),n=n.sibling;n=o,n===null?(o=t.child,t.child=null):(o=n.sibling,n.sibling=null),YO(t,!1,o,n,i);break;case"backwards":for(n=null,o=t.child,t.child=null;o!==null;){if(e=o.alternate,e!==null&&xm(e)===null){t.child=o;break}e=o.sibling,o.sibling=n,n=o,o=e}YO(t,!0,n,null,i);break;case"together":YO(t,!1,null,null,void 0);break;default:t.memoizedState=null}return t.child}function pm(e,t){!(t.mode&1)&&e!==null&&(e.alternate=null,t.alternate=null,t.flags|=2)}function di(e,t,n){if(e!==null&&(t.dependencies=e.dependencies),Ra|=t.lanes,!(n&t.childLanes))return null;if(e!==null&&t.child!==e.child)throw Error(V(153));if(t.child!==null){for(e=t.child,n=us(e,e.pendingProps),t.child=n,n.return=t;e.sibling!==null;)e=e.sibling,n=n.sibling=us(e,e.pendingProps),n.return=t;n.sibling=null}return t.child}function v2(e,t,n){switch(t.tag){case 3:eC(t),pu();break;case 5:LL(t);break;
vendor: 4,476 bytes, line 8
8case 1:Wn(t.type)&&bm(t);break;case 4:uI(t,t.stateNode.containerInfo);break;case 10:var r=t.type._context,o=t.memoizedProps.value;$e(Pm,r._currentValue),r._currentValue=o;break;case 13:if(r=t.memoizedState,r!==null)return r.dehydrated!==null?($e(pt,pt.current&1),t.flags|=128,null):n&t.child.childLanes?tC(e,t,n):($e(pt,pt.current&1),e=di(e,t,n),e!==null?e.sibling:null);$e(pt,pt.current&1);break;case 19:if(r=(n&t.childLanes)!==0,e.flags&128){if(r)return nC(e,t,n);t.flags|=128}if(o=t.memoizedState,o!==null&&(o.rendering=null,o.tail=null,o.lastEffect=null),$e(pt,pt.current),r)break;return null;case 22:case 23:return t.lanes=0,qL(e,t,n)}return di(e,t,n)}var rC,Pg,oC,iC;rC=function(e,t){for(var n=t.child;n!==null;){if(n.tag===5||n.tag===6)e.appendChild(n.stateNode);else if(n.tag!==4&&n.child!==null){n.child.return=n,n=n.child;continue}if(n===t)break;for(;n.sibling===null;){if(n.return===null||n.return===t)return;n=n.return}n.sibling.return=n.return,n=n.sibling}};Pg=function(){};oC=function(e,t,n,r){var o=e.memoizedProps;if(o!==r){e=t.stateNode,Ta(ko.current);var i=null;switch(n){case"input":o=qO(e,o),r=qO(e,r),i=[];break;case"select":o=Et({},o,{value:void 0}),r=Et({},r,{value:void 0}),i=[];break;case"textarea":o=tg(e,o),r=tg(e,r),i=[];break;default:typeof o.onClick!="function"&&typeof r.onClick=="function"&&(e.onclick=Nm)}rg(n,r);var s;n=null;for(u in o)if(!r.hasOwnProperty(u)&&o.hasOwnProperty(u)&&o[u]!=null)if(u==="style"){var a=o[u];for(s in a)a.hasOwnProperty(s)&&(n||(n={}),n[s]="")}else u!=="dangerouslySetInnerHTML"&&u!=="children"&&u!=="suppressContentEditableWarning"&&u!=="suppressHydrationWarning"&&u!=="autoFocus"&&(Vd.hasOwnProperty(u)?i||(i=[]):(i=i||[]).push(u,null));for(u in r){var l=r[u];if(a=o?.[u],r.hasOwnProperty(u)&&l!==a&&(l!=null||a!=null))if(u==="style")if(a){for(s in a)!a.hasOwnProperty(s)||l&&l.hasOwnProperty(s)||(n||(n={}),n[s]="");for(s in l)l.hasOwnProperty(s)&&a[s]!==l[s]&&(n||(n={}),n[s]=l[s])}else n||(i||(i=[]),i.push(u,n)),n=l;else u==="dangerouslySetInnerHTML"?(l=l?l.__html:void 0,a=a?a.__html:void 0,l!=null&&a!==l&&(i=i||[]).push(u,l)):u==="children"?typeof l!="string"&&typeof l!="number"||(i=i||[]).push(u,""+l):u!=="suppressContentEditableWarning"&&u!=="suppressHydrationWarning"&&(Vd.hasOwnProperty(u)?(l!=null&&u==="onScroll"&&nt("scroll",e),i||a===l||(i=[])):(i=i||[]).push(u,l))}n&&(i=i||[]).push("style",n);var u=i;(t.updateQueue=u)&&(t.flags|=4)}};iC=function(e,t,n,r){n!==r&&(t.flags|=4)};function Nd(e,t){if(!ct)switch(e.tailMode){case"hidden":t=e.tail;for(var n=null;t!==null;)t.alternate!==null&&(n=t),t=t.sibling;n===null?e.tail=null:n.sibling=null;break;case"collapsed":n=e.tail;for(var r=null;n!==null;)n.alternate!==null&&(r=n),n=n.sibling;r===null?t||e.tail===null?e.tail=null:e.tail.sibling=null:r.sibling=null}}function _n(e){var t=e.alternate!==null&&e.alternate.child===e.child,n=0,r=0;if(t)for(var o=e.child;o!==null;)n|=o.lanes|o.childLanes,r|=o.subtreeFlags&14680064,r|=o.flags&14680064,o.return=e,o=o.sibling;else for(o=e.child;o!==null;)n|=o.lanes|o.childLanes,r|=o.subtreeFlags,r|=o.flags,o.return=e,o=o.sibling;return e.subtreeFlags|=r,e.childLanes=n,t}function x2(e,t,n){var r=t.pendingProps;switch(nI(t),t.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return _n(t),null;case 1:return Wn(t.type)&&ym(),_n(t),null;case 3:return r=t.stateNode,Eu(),rt(Hn),rt(hn),dI(),r.pendingContext&&(r.context=r.pendingContext,r.pendingContext=null),(e===null||e.child===null)&&(nm(t)?t.flags|=4:e===null||e.memoizedState.isDehydrated&&!(t.flags&256)||(t.flags|=1024,ao!==null&&(wg(ao),ao=null))),Pg(e,t),_n(t),null;case 5:cI(t);var o=Ta(Qd.current);if(n=t.type,e!==null&&t.stateNode!=null)oC(e,t,n,r,o),e.ref!==t.ref&&(t.flags|=512,t.flags|=2097152);else{if(!r){if(t.stateNode===null)throw Error(V(166));return _n(t),null}if(e=Ta(ko.current),nm(t)){r=t.stateNode,n=t.type;var i=t.memoizedProps;switch(r[Mo]=t,r[Jd]=i,e=(t.mode&1)!==0,n){case"dialog":nt("cancel",r),nt("close",r);break;case"iframe":case"object":case"embed":nt("load",r);break;case"video":case"audio":for(o=0;o<Dd.length;o++)nt(Dd[o],r);break;case"source":nt("error",r);break;case"img":case"image":case"link":nt("error",r),nt("load",r);break;case"details":nt("toggle",r);break;case"input":Sy(r,i),nt("invalid",r);break;case"select":r._wrapperState={wasMultiple:!!i.multiple},nt("invalid",r);break;case"textarea":Ay(r,i),nt("invalid",r)}rg(n,i),o=null;for(var s in i)if(i.hasOwnProperty(s)){var a=i[s];
vendor: 14,312 bytes, line 8
8s==="children"?typeof a=="string"?r.textContent!==a&&(i.suppressHydrationWarning!==!0&&tm(r.textContent,a,e),o=["children",a]):typeof a=="number"&&r.textContent!==""+a&&(i.suppressHydrationWarning!==!0&&tm(r.textContent,a,e),o=["children",""+a]):Vd.hasOwnProperty(s)&&a!=null&&s==="onScroll"&&nt("scroll",r)}switch(n){case"input":Wp(r),Ry(r,i,!0);break;case"textarea":Wp(r),Ny(r);break;case"select":case"option":break;default:typeof i.onClick=="function"&&(r.onclick=Nm)}r=o,t.updateQueue=r,r!==null&&(t.flags|=4)}else{s=o.nodeType===9?o:o.ownerDocument,e==="http://www.w3.org/1999/xhtml"&&(e=xb(n)),e==="http://www.w3.org/1999/xhtml"?n==="script"?(e=s.createElement("div"),e.innerHTML="<script></script>",e=e.removeChild(e.firstChild)):typeof r.is=="string"?e=s.createElement(n,{is:r.is}):(e=s.createElement(n),n==="select"&&(s=e,r.multiple?s.multiple=!0:r.size&&(s.size=r.size))):e=s.createElementNS(e,n),e[Mo]=t,e[Jd]=r,rC(e,t,!1,!1),t.stateNode=e;e:{switch(s=og(n,r),n){case"dialog":nt("cancel",e),nt("close",e),o=r;break;case"iframe":case"object":case"embed":nt("load",e),o=r;break;case"video":case"audio":for(o=0;o<Dd.length;o++)nt(Dd[o],e);o=r;break;case"source":nt("error",e),o=r;break;case"img":case"image":case"link":nt("error",e),nt("load",e),o=r;break;case"details":nt("toggle",e),o=r;break;case"input":Sy(e,r),o=qO(e,r),nt("invalid",e);break;case"option":o=r;break;case"select":e._wrapperState={wasMultiple:!!r.multiple},o=Et({},r,{value:void 0}),nt("invalid",e);break;case"textarea":Ay(e,r),o=tg(e,r),nt("invalid",e);break;default:o=r}rg(n,o),a=o;for(i in a)if(a.hasOwnProperty(i)){var l=a[i];i==="style"?kb(e,l):i==="dangerouslySetInnerHTML"?(l=l?l.__html:void 0,l!=null&&Mb(e,l)):i==="children"?typeof l=="string"?(n!=="textarea"||l!=="")&&Hd(e,l):typeof l=="number"&&Hd(e,""+l):i!=="suppressContentEditableWarning"&&i!=="suppressHydrationWarning"&&i!=="autoFocus"&&(Vd.hasOwnProperty(i)?l!=null&&i==="onScroll"&&nt("scroll",e):l!=null&&Vg(e,i,l,s))}switch(n){case"input":Wp(e),Ry(e,r,!1);break;case"textarea":Wp(e),Ny(e);break;case"option":r.value!=null&&e.setAttribute("value",""+cs(r.value));break;case"select":e.multiple=!!r.multiple,i=r.value,i!=null?iu(e,!!r.multiple,i,!1):r.defaultValue!=null&&iu(e,!!r.multiple,r.defaultValue,!0);break;default:typeof o.onClick=="function"&&(e.onclick=Nm)}switch(n){case"button":case"input":case"select":case"textarea":r=!!r.autoFocus;break e;case"img":r=!0;break e;default:r=!1}}r&&(t.flags|=4)}t.ref!==null&&(t.flags|=512,t.flags|=2097152)}return _n(t),null;case 6:if(e&&t.stateNode!=null)iC(e,t,e.memoizedProps,r);else{if(typeof r!="string"&&t.stateNode===null)throw Error(V(166));if(n=Ta(Qd.current),Ta(ko.current),nm(t)){if(r=t.stateNode,n=t.memoizedProps,r[Mo]=t,(i=r.nodeValue!==n)&&(e=cr,e!==null))switch(e.tag){case 3:tm(r.nodeValue,n,(e.mode&1)!==0);break;case 5:e.memoizedProps.suppressHydrationWarning!==!0&&tm(r.nodeValue,n,(e.mode&1)!==0)}i&&(t.flags|=4)}else r=(n.nodeType===9?n:n.ownerDocument).createTextNode(r),r[Mo]=t,t.stateNode=r}return _n(t),null;case 13:if(rt(pt),r=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(ct&&ur!==null&&t.mode&1&&!(t.flags&128))RL(),pu(),t.flags|=98560,i=!1;else if(i=nm(t),r!==null&&r.dehydrated!==null){if(e===null){if(!i)throw Error(V(318));if(i=t.memoizedState,i=i!==null?i.dehydrated:null,!i)throw Error(V(317));i[Mo]=t}else pu(),!(t.flags&128)&&(t.memoizedState=null),t.flags|=4;_n(t),i=!1}else ao!==null&&(wg(ao),ao=null),i=!0;if(!i)return t.flags&65536?t:null}return t.flags&128?(t.lanes=n,t):(r=r!==null,r!==(e!==null&&e.memoizedState!==null)&&r&&(t.child.flags|=8192,t.mode&1&&(e===null||pt.current&1?Pt===0&&(Pt=3):RI())),t.updateQueue!==null&&(t.flags|=4),_n(t),null);case 4:return Eu(),Pg(e,t),e===null&&$d(t.stateNode.containerInfo),_n(t),null;case 10:return sI(t.type._context),_n(t),null;case 17:return Wn(t.type)&&ym(),_n(t),null;case 19:if(rt(pt),i=t.memoizedState,i===null)return _n(t),null;if(r=(t.flags&128)!==0,s=i.rendering,s===null)if(r)Nd(i,!1);else{if(Pt!==0||e!==null&&e.flags&128)for(e=t.child;e!==null;){if(s=xm(e),s!==null){for(t.flags|=128,Nd(i,!1),r=s.updateQueue,r!==null&&(t.updateQueue=r,t.flags|=4),t.subtreeFlags=0,r=n,n=t.child;n!==null;)i=n,e=r,i.flags&=14680066,s=i.alternate,s===null?(i.childLanes=0,i.lanes=e,i.child=null,i.subtreeFlags=0,i.memoizedProps=null,i.memoizedState=null,i.updateQueue=null,i.dependencies=null,i.stateNode=null):(i.childLanes=s.childLanes,i.lanes=s.lanes,i.child=s.child,i.subtreeFlags=0,i.deletions=null,i.memoizedProps=s.memoizedProps,i.memoizedState=s.memoizedState,i.updateQueue=s.updateQueue,i.type=s.type,e=s.dependencies,i.dependencies=e===null?null:{lanes:e.lanes,firstContext:e.firstContext}),n=n.sibling;return $e(pt,pt.current&1|2),t.child}e=e.sibling}i.tail!==null&&Rt()>Tu&&(t.flags|=128,r=!0,Nd(i,!1),t.lanes=4194304)}else{if(!r)if(e=xm(s),e!==null){if(t.flags|=128,r=!0,n=e.updateQueue,n!==null&&(t.updateQueue=n,t.flags|=4),Nd(i,!0),i.tail===null&&i.tailMode==="hidden"&&!s.alternate&&!ct)return _n(t),null}else 2*Rt()-i.renderingStartTime>Tu&&n!==1073741824&&(t.flags|=128,r=!0,Nd(i,!1),t.lanes=4194304);i.isBackwards?(s.sibling=t.child,t.child=s):(n=i.last,n!==null?n.sibling=s:t.child=s,i.last=s)}return i.tail!==null?(t=i.tail,i.rendering=t,i.tail=t.sibling,i.renderingStartTime=Rt(),t.sibling=null,n=pt.current,$e(pt,r?n&1|2:n&1),t):(_n(t),null);case 22:case 23:return SI(),r=t.memoizedState!==null,e!==null&&e.memoizedState!==null!==r&&(t.flags|=8192),r&&t.mode&1?lr&1073741824&&(_n(t),t.subtreeFlags&6&&(t.flags|=8192)):_n(t),null;case 24:return null;case 25:return null}throw Error(V(156,t.tag))}function M2(e,t){switch(nI(t),t.tag){case 1:return Wn(t.type)&&ym(),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return Eu(),rt(Hn),rt(hn),dI(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 5:return cI(t),null;case 13:if(rt(pt),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(V(340));pu()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return rt(pt),null;case 4:return Eu(),null;case 10:return sI(t.type._context),null;case 22:case 23:return SI(),null;case 24:return null;default:return null}}var im=!1,Tn=!1,G2=typeof WeakSet=="function"?WeakSet:Set,$=null;function ru(e,t){var n=e.ref;if(n!==null)if(typeof n=="function")try{n(null)}catch(r){_t(e,t,r)}else n.current=null}function Dg(e,t,n){try{n()}catch(r){_t(e,t,r)}}var Eb=!1;function k2(e,t){if(mg=Sm,e=cL(),eI(e)){if("selectionStart"in e)var n={start:e.selectionStart,end:e.selectionEnd};else e:{n=(n=e.ownerDocument)&&n.defaultView||window;var r=n.getSelection&&n.getSelection();if(r&&r.rangeCount!==0){n=r.anchorNode;var o=r.anchorOffset,i=r.focusNode;r=r.focusOffset;try{n.nodeType,i.nodeType}catch{n=null;break e}var s=0,a=-1,l=-1,u=0,c=0,d=e,f=null;t:for(;;){for(var p;d!==n||o!==0&&d.nodeType!==3||(a=s+o),d!==i||r!==0&&d.nodeType!==3||(l=s+r),d.nodeType===3&&(s+=d.nodeValue.length),(p=d.firstChild)!==null;)f=d,d=p;for(;;){if(d===e)break t;if(f===n&&++u===o&&(a=s),f===i&&++c===r&&(l=s),(p=d.nextSibling)!==null)break;d=f,f=d.parentNode}d=p}n=a===-1||l===-1?null:{start:a,end:l}}else n=null}n=n||{start:0,end:0}}else n=null;for(Eg={focusedElem:e,selectionRange:n},Sm=!1,$=t;$!==null;)if(t=$,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,$=e;else for(;$!==null;){t=$;try{var _=t.alternate;if(t.flags&1024)switch(t.tag){case 0:case 11:case 15:break;case 1:if(_!==null){var T=_.memoizedProps,h=_.memoizedState,m=t.stateNode,E=m.getSnapshotBeforeUpdate(t.elementType===t.type?T:io(t.type,T),h);m.__reactInternalSnapshotBeforeUpdate=E}break;case 3:var O=t.stateNode.containerInfo;O.nodeType===1?O.textContent="":O.nodeType===9&&O.documentElement&&O.removeChild(O.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(V(163))}}catch(g){_t(t,t.return,g)}if(e=t.sibling,e!==null){e.return=t.return,$=e;break}$=t.return}return _=Eb,Eb=!1,_}function wd(e,t,n){var r=t.updateQueue;if(r=r!==null?r.lastEffect:null,r!==null){var o=r=r.next;do{if((o.tag&e)===e){var i=o.destroy;o.destroy=void 0,i!==void 0&&Dg(t,n,i)}o=o.next}while(o!==r)}}function $m(e,t){if(t=t.updateQueue,t=t!==null?t.lastEffect:null,t!==null){var n=t=t.next;do{if((n.tag&e)===e){var r=n.create;n.destroy=r()}n=n.next}while(n!==t)}}function vg(e){var t=e.ref;if(t!==null){var n=e.stateNode;switch(e.tag){case 5:e=n;break;default:e=n}typeof t=="function"?t(e):t.current=e}}function sC(e){var t=e.alternate;t!==null&&(e.alternate=null,sC(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&(delete t[Mo],delete t[Jd],delete t[hg],delete t[h2],delete t[O2])),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}function aC(e){return e.tag===5||e.tag===3||e.tag===4}function _b(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||aC(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;e.tag!==5&&e.tag!==6&&e.tag!==18;){if(e.flags&2||e.child===null||e.tag===4)continue e;e.child.return=e,e=e.child}if(!(e.flags&2))return e.stateNode}}function xg(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?n.nodeType===8?n.parentNode.insertBefore(e,t):n.insertBefore(e,t):(n.nodeType===8?(t=n.parentNode,t.insertBefore(e,n)):(t=n,t.appendChild(e)),n=n._reactRootContainer,n!=null||t.onclick!==null||(t.onclick=Nm));else if(r!==4&&(e=e.child,e!==null))for(xg(e,t,n),e=e.sibling;e!==null;)xg(e,t,n),e=e.sibling}function Mg(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?n.insertBefore(e,t):n.appendChild(e);else if(r!==4&&(e=e.child,e!==null))for(Mg(e,t,n),e=e.sibling;e!==null;)Mg(e,t,n),e=e.sibling}var en=null,so=!1;function $i(e,t,n){for(n=n.child;n!==null;)lC(e,t,n),n=n.sibling}function lC(e,t,n){if(Go&&typeof Go.onCommitFiberUnmount=="function")try{Go.onCommitFiberUnmount(Vm,n)}catch{}switch(n.tag){case 5:Tn||ru(n,t);case 6:var r=en,o=so;en=null,$i(e,t,n),en=r,so=o,en!==null&&(so?(e=en,n=n.stateNode,e.nodeType===8?e.parentNode.removeChild(n):e.removeChild(n)):en.removeChild(n.stateNode));break;case 18:en!==null&&(so?(e=en,n=n.stateNode,e.nodeType===8?FO(e.parentNode,n):e.nodeType===1&&FO(e,n),zd(e)):FO(en,n.stateNode));break;case 4:r=en,o=so,en=n.stateNode.containerInfo,so=!0,$i(e,t,n),en=r,so=o;break;case 0:case 11:case 14:case 15:if(!Tn&&(r=n.updateQueue,r!==null&&(r=r.lastEffect,r!==null))){o=r=r.next;do{var i=o,s=i.destroy;i=i.tag,s!==void 0&&(i&2||i&4)&&Dg(n,t,s),o=o.next}while(o!==r)}$i(e,t,n);break;case 1:if(!Tn&&(ru(n,t),r=n.stateNode,typeof r.componentWillUnmount=="function"))try{r.props=n.memoizedProps,r.state=n.memoizedState,r.componentWillUnmount()}catch(a){_t(n,t,a)}$i(e,t,n);break;case 21:$i(e,t,n);break;case 22:n.mode&1?(Tn=(r=Tn)||n.memoizedState!==null,$i(e,t,n),Tn=r):$i(e,t,n);break;default:$i(e,t,n)}}function Tb(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var n=e.stateNode;n===null&&(n=e.stateNode=new G2),t.forEach(function(r){var o=K2.bind(null,e,r);n.has(r)||(n.add(r),r.then(o,o))})}}function oo(e,t){var n=t.deletions;if(n!==null)for(var r=0;r<n.length;r++){var o=n[r];try{var i=e,s=t,a=s;e:for(;a!==null;){switch(a.tag){case 5:en=a.stateNode,so=!1;break e;case 3:en=a.stateNode.containerInfo,so=!0;break e;case 4:en=a.stateNode.containerInfo,so=!0;break e}a=a.return}if(en===null)throw Error(V(160));lC(i,s,o),en=null,so=!1;var l=o.alternate;l!==null&&(l.return=null),o.return=null}catch(u){_t(o,t,u)}}if(t.subtreeFlags&12854)for(t=t.child;t!==null;)uC(t,e),t=t.sibling}function uC(e,t){var n=e.alternate,r=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:if(oo(t,e),vo(e),r&4){try{wd(3,e,e.return),$m(3,e)}catch(T){_t(e,e.return,T)}try{wd(5,e,e.return)}catch(T){_t(e,e.return,T)}}break;case 1:oo(t,e),vo(e),r&512&&n!==null&&ru(n,n.return);break;case 5:if(oo(t,e),vo(e),r&512&&n!==null&&ru(n,n.return),e.flags&32){var o=e.stateNode;try{Hd(o,"")}catch(T){_t(e,e.return,T)}}if(r&4&&(o=e.stateNode,o!=null)){var i=e.memoizedProps,s=n!==null?n.memoizedProps:i,a=e.type,l=e.updateQueue;if(e.updateQueue=null,l!==null)try{a==="input"&&i.type==="radio"&&i.name!=null&&Db(o,i),og(a,s);var u=og(a,i);for(s=0;s<l.length;s+=2){var c=l[s],d=l[s+1];c==="style"?kb(o,d):c==="dangerouslySetInnerHTML"?Mb(o,d):c==="children"?Hd(o,d):Vg(o,c,d,u)}switch(a){case"input":QO(o,i);break;case"textarea":vb(o,i);break;case"select":var f=o._wrapperState.wasMultiple;o._wrapperState.wasMultiple=!!i.multiple;var p=i.value;p!=null?iu(o,!!i.multiple,p,!1):f!==!!i.multiple&&(i.defaultValue!=null?iu(o,!!i.multiple,i.defaultValue,!0):iu(o,!!i.multiple,i.multiple?[]:"",!1))}o[Jd]=i}catch(T){_t(e,e.return,T)}}break;case 6:if(oo(t,e),vo(e),r&4){if(e.stateNode===null)throw Error(V(162));o=e.stateNode,i=e.memoizedProps;try{o.nodeValue=i}catch(T){_t(e,e.return,T)}}break;case 3:if(oo(t,e),vo(e),r&4&&n!==null&&n.memoizedState.isDehydrated)try{zd(t.containerInfo)}catch(T){_t(e,e.return,T)}break;case 4:oo(t,e),vo(e);break;case 13:oo(t,e),vo(e),o=e.child,o.flags&8192&&(i=o.memoizedState!==null,o.stateNode.isHidden=i,!i||o.alternate!==null&&o.alternate.memoizedState!==null||(gI=Rt())),r&4&&Tb(e);break;case 22:if(c=n!==null&&n.memoizedState!==null,e.mode&1?(Tn=(u=Tn)||c,oo(t,e),Tn=u):oo(t,e),vo(e),r&8192){if(u=e.memoizedState!==null,(e.stateNode.isHidden=u)&&!c&&e.mode&1)for($=e,c=e.child;c!==null;){for(d=$=c;$!==null;){switch(f=$,p=f.child,f.tag){case 0:case 11:case 14:case 15:wd(4,f,f.return);break;case 1:ru(f,f.return);var _=f.stateNode;if(typeof _.componentWillUnmount=="function"){r=f,n=f.return;try{t=r,_.props=t.memoizedProps,_.state=t.memoizedState,_.componentWillUnmount()}catch(T){_t(r,n,T)}}break;case 5:ru(f,f.return);break;case 22:if(f.memoizedState!==null){Ob(d);continue}}p!==null?(p.return=f,$=p):Ob(d)}c=c.sibling}e:for(c=null,d=e;;){if(d.tag===5){if(c===null){c=d;try{o=d.stateNode,u?(i=o.style,typeof i.setProperty=="function"?i.setProperty("display","none","important"):i.display="none"):(a=d.stateNode,l=d.memoizedProps.style,s=l!=null&&l.hasOwnProperty("display")?l.display:null,a.style.display=Gb("display",s))}catch(T){_t(e,e.return,T)}}}else if(d.tag===6){if(c===null)try{d.stateNode.nodeValue=u?"":d.memoizedProps}catch(T){_t(e,e.return,T)}}else if((d.tag!==22&&d.tag!==23||d.memoizedState===null||d===e)&&d.child!==null){d.
vendor: 5,383 bytes, line 8
8child.return=d,d=d.child;continue}if(d===e)break e;for(;d.sibling===null;){if(d.return===null||d.return===e)break e;c===d&&(c=null),d=d.return}c===d&&(c=null),d.sibling.return=d.return,d=d.sibling}}break;case 19:oo(t,e),vo(e),r&4&&Tb(e);break;case 21:break;default:oo(t,e),vo(e)}}function vo(e){var t=e.flags;if(t&2){try{e:{for(var n=e.return;n!==null;){if(aC(n)){var r=n;break e}n=n.return}throw Error(V(160))}switch(r.tag){case 5:var o=r.stateNode;r.flags&32&&(Hd(o,""),r.flags&=-33);var i=_b(e);Mg(e,i,o);break;case 3:case 4:var s=r.stateNode.containerInfo,a=_b(e);xg(e,a,s);break;default:throw Error(V(161))}}catch(l){_t(e,e.return,l)}e.flags&=-3}t&4096&&(e.flags&=-4097)}function F2(e,t,n){$=e,cC(e,t,n)}function cC(e,t,n){for(var r=(e.mode&1)!==0;$!==null;){var o=$,i=o.child;if(o.tag===22&&r){var s=o.memoizedState!==null||im;if(!s){var a=o.alternate,l=a!==null&&a.memoizedState!==null||Tn;a=im;var u=Tn;if(im=s,(Tn=l)&&!u)for($=o;$!==null;)s=$,l=s.child,s.tag===22&&s.memoizedState!==null?gb(o):l!==null?(l.return=s,$=l):gb(o);for(;i!==null;)$=i,cC(i,t,n),i=i.sibling;$=o,im=a,Tn=u}hb(e,t,n)}else o.subtreeFlags&8772&&i!==null?(i.return=o,$=i):hb(e,t,n)}}function hb(e){for(;$!==null;){var t=$;if(t.flags&8772){var n=t.alternate;try{if(t.flags&8772)switch(t.tag){case 0:case 11:case 15:Tn||$m(5,t);break;case 1:var r=t.stateNode;if(t.flags&4&&!Tn)if(n===null)r.componentDidMount();else{var o=t.elementType===t.type?n.memoizedProps:io(t.type,n.memoizedProps);r.componentDidUpdate(o,n.memoizedState,r.__reactInternalSnapshotBeforeUpdate)}var i=t.updateQueue;i!==null&&nb(t,i,r);break;case 3:var s=t.updateQueue;if(s!==null){if(n=null,t.child!==null)switch(t.child.tag){case 5:n=t.child.stateNode;break;case 1:n=t.child.stateNode}nb(t,s,n)}break;case 5:var a=t.stateNode;if(n===null&&t.flags&4){n=a;var l=t.memoizedProps;switch(t.type){case"button":case"input":case"select":case"textarea":l.autoFocus&&n.focus();break;case"img":l.src&&(n.src=l.src)}}break;case 6:break;case 4:break;case 12:break;case 13:if(t.memoizedState===null){var u=t.alternate;if(u!==null){var c=u.memoizedState;if(c!==null){var d=c.dehydrated;d!==null&&zd(d)}}}break;case 19:case 17:case 21:case 22:case 23:case 25:break;default:throw Error(V(163))}Tn||t.flags&512&&vg(t)}catch(f){_t(t,t.return,f)}}if(t===e){$=null;break}if(n=t.sibling,n!==null){n.return=t.return,$=n;break}$=t.return}}function Ob(e){for(;$!==null;){var t=$;if(t===e){$=null;break}var n=t.sibling;if(n!==null){n.return=t.return,$=n;break}$=t.return}}function gb(e){for(;$!==null;){var t=$;try{switch(t.tag){case 0:case 11:case 15:var n=t.return;try{$m(4,t)}catch(l){_t(t,n,l)}break;case 1:var r=t.stateNode;if(typeof r.componentDidMount=="function"){var o=t.return;try{r.componentDidMount()}catch(l){_t(t,o,l)}}var i=t.return;try{vg(t)}catch(l){_t(t,i,l)}break;case 5:var s=t.return;try{vg(t)}catch(l){_t(t,s,l)}}}catch(l){_t(t,t.return,l)}if(t===e){$=null;break}var a=t.sibling;if(a!==null){a.return=t.return,$=a;break}$=t.return}}var w2=Math.ceil,km=fi.ReactCurrentDispatcher,hI=fi.ReactCurrentOwner,Fr=fi.ReactCurrentBatchConfig,Ce=0,Bt=null,Nt=null,tn=0,lr=0,ou=ps(0),Pt=0,rf=null,Ra=0,Zm=0,OI=0,Bd=null,Un=null,gI=0,Tu=1/0,ri=null,Fm=!1,Gg=null,as=null,sm=!1,ts=null,wm=0,Ud=0,kg=null,mm=-1,Em=0;function Dn(){return Ce&6?Rt():mm!==-1?mm:mm=Rt()}function ls(e){return e.mode&1?Ce&2&&tn!==0?tn&-tn:I2.transition!==null?(Em===0&&(Em=jb()),Em):(e=Be,e!==0||(e=window.event,e=e===void 0?16:tL(e.type)),e):1}function uo(e,t,n,r){if(50<Ud)throw Ud=0,kg=null,Error(V(185));of(e,n,r),(!(Ce&2)||e!==Bt)&&(e===Bt&&(!(Ce&2)&&(Zm|=n),Pt===4&&Qi(e,tn)),Yn(e,r),n===1&&Ce===0&&!(t.mode&1)&&(Tu=Rt()+500,zm&&ms()))}function Yn(e,t){var n=e.callbackNode;RH(e,t);var r=Im(e,e===Bt?tn:0);if(r===0)n!==null&&Ly(n),e.callbackNode=null,e.callbackPriority=0;else if(t=r&-r,e.callbackPriority!==t){if(n!=null&&Ly(n),t===1)e.tag===0?g2(Ib.bind(null,e)):gL(Ib.bind(null,e)),_2(function(){!(Ce&6)&&ms()}),n=null;else{switch($b(r)){case 1:n=zg;break;case 4:n=zb;break;case 16:n=gm;break;case 536870912:n=Xb;break;default:n=gm}n=hC(n,dC.bind(null,e))}e.callbackPriority=t,e.callbackNode=n}}function dC(e,t){if(mm=-1,Em=0,Ce&6)throw Error(V(327));var n=e.callbackNode;if(cu()&&e.callbackNode!==n)return null;var r=Im(e,e===Bt?tn:0);if(r===0)return null;if(r&30||r&e.expiredLanes||t)t=Bm(e,r);else{t=r;var o=Ce;Ce|=2;var i=pC();(Bt!==e||tn!==t)&&(ri=null,Tu=Rt()+500,ha(e,t));do try{V2();break}catch(a){fC(e,a)}while(1);iI(),km.current=i,Ce=o,Nt!==null?t=0:(Bt=null,tn=0,t=Pt)}if(t!==0){if(t===2&&(o=ug(e),o!==0&&(r=o,t=Fg(e,o))),t===1)throw n=rf,ha(e,0),Qi(e,r),Yn(e,Rt()),n;if(t===6)Qi(e,r);else{if(o=e.current.alternate,!(r&30)&&!B2(o)&&(t=Bm(e,r),t===2&&(i=ug(e),i!==0&&(r=i,t=Fg(e,i))),t===1))throw n=rf,ha(e,0),Qi(e,r),Yn(e,Rt()),n;switch(e.finishedWork=o,e.finishedLanes=r,t){case 0:case 1:throw Error(V(345));case 2:ma(e,Un,ri);break;case 3:if(Qi(e,r),(r&130023424)===r&&(t=gI+500-Rt(),10<t)){if(Im(e,0)!==0)break;if(o=e.suspendedLanes,(o&r)!==r){Dn(),e.pingedLanes|=e.suspendedLanes&o;break}e.timeoutHandle=Tg(ma.bind(null,e,Un,ri),t);break}ma(e,Un,ri);break;case 4:if(Qi(e,r),(r&4194240)===r)break;for(t=e.eventTimes,o=-1;0<r;){var s=31-lo(r);i=1<<s,s=t[s],s>o&&(o=s),r&=~i}if(r=o,r=Rt()-r,r=(120>r?120:480>r?480:1080>r?1080:1920>r?1920:3e3>r?3e3:4320>r?4320:1960*w2(r/1960))-r,10<r){e.timeoutHandle=Tg(ma.bind(null,e,Un,ri),r);break}ma(e,Un,ri);break;
vendor: 4,672 bytes, line 8
8case 5:ma(e,Un,ri);break;default:throw Error(V(329))}}}return Yn(e,Rt()),e.callbackNode===n?dC.bind(null,e):null}function Fg(e,t){var n=Bd;return e.current.memoizedState.isDehydrated&&(ha(e,t).flags|=256),e=Bm(e,t),e!==2&&(t=Un,Un=n,t!==null&&wg(t)),e}function wg(e){Un===null?Un=e:Un.push.apply(Un,e)}function B2(e){for(var t=e;;){if(t.flags&16384){var n=t.updateQueue;if(n!==null&&(n=n.stores,n!==null))for(var r=0;r<n.length;r++){var o=n[r],i=o.getSnapshot;o=o.value;try{if(!co(i(),o))return!1}catch{return!1}}}if(n=t.child,t.subtreeFlags&16384&&n!==null)n.return=t,t=n;else{if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return!0;t=t.return}t.sibling.return=t.return,t=t.sibling}}return!0}function Qi(e,t){for(t&=~OI,t&=~Zm,e.suspendedLanes|=t,e.pingedLanes&=~t,e=e.expirationTimes;0<t;){var n=31-lo(t),r=1<<n;e[n]=-1,t&=~r}}function Ib(e){if(Ce&6)throw Error(V(327));cu();var t=Im(e,0);if(!(t&1))return Yn(e,Rt()),null;var n=Bm(e,t);if(e.tag!==0&&n===2){var r=ug(e);r!==0&&(t=r,n=Fg(e,r))}if(n===1)throw n=rf,ha(e,0),Qi(e,t),Yn(e,Rt()),n;if(n===6)throw Error(V(345));return e.finishedWork=e.current.alternate,e.finishedLanes=t,ma(e,Un,ri),Yn(e,Rt()),null}function II(e,t){var n=Ce;Ce|=1;try{return e(t)}finally{Ce=n,Ce===0&&(Tu=Rt()+500,zm&&ms())}}function Aa(e){ts!==null&&ts.tag===0&&!(Ce&6)&&cu();var t=Ce;Ce|=1;var n=Fr.transition,r=Be;try{if(Fr.transition=null,Be=1,e)return e()}finally{Be=r,Fr.transition=n,Ce=t,!(Ce&6)&&ms()}}function SI(){lr=ou.current,rt(ou)}function ha(e,t){e.finishedWork=null,e.finishedLanes=0;var n=e.timeoutHandle;if(n!==-1&&(e.timeoutHandle=-1,E2(n)),Nt!==null)for(n=Nt.return;n!==null;){var r=n;switch(nI(r),r.tag){case 1:r=r.type.childContextTypes,r!=null&&ym();break;case 3:Eu(),rt(Hn),rt(hn),dI();break;case 5:cI(r);break;case 4:Eu();break;case 13:rt(pt);break;case 19:rt(pt);break;case 10:sI(r.type._context);break;case 22:case 23:SI()}n=n.return}if(Bt=e,Nt=e=us(e.current,null),tn=lr=t,Pt=0,rf=null,OI=Zm=Ra=0,Un=Bd=null,_a!==null){for(t=0;t<_a.length;t++)if(n=_a[t],r=n.interleaved,r!==null){n.interleaved=null;var o=r.next,i=n.pending;if(i!==null){var s=i.next;i.next=o,r.next=s}n.pending=r}_a=null}return e}function fC(e,t){do{var n=Nt;try{if(iI(),dm.current=Gm,Mm){for(var r=mt.memoizedState;r!==null;){var o=r.queue;o!==null&&(o.pending=null),r=r.next}Mm=!1}if(Sa=0,wt=Ct=mt=null,Fd=!1,ef=0,hI.current=null,n===null||n.return===null){Pt=1,rf=t,Nt=null;break}e:{var i=e,s=n.return,a=n,l=t;if(t=tn,a.flags|=32768,l!==null&&typeof l=="object"&&typeof l.then=="function"){var u=l,c=a,d=c.tag;if(!(c.mode&1)&&(d===0||d===11||d===15)){var f=c.alternate;f?(c.updateQueue=f.updateQueue,c.memoizedState=f.memoizedState,c.lanes=f.lanes):(c.updateQueue=null,c.memoizedState=null)}var p=lb(s);if(p!==null){p.flags&=-257,ub(p,s,a,i,t),p.mode&1&&ab(i,u,t),t=p,l=u;var _=t.updateQueue;if(_===null){var T=new Set;T.add(l),t.updateQueue=T}else _.add(l);break e}else{if(!(t&1)){ab(i,u,t),RI();break e}l=Error(V(426))}}else if(ct&&a.mode&1){var h=lb(s);if(h!==null){!(h.flags&65536)&&(h.flags|=256),ub(h,s,a,i,t),rI(_u(l,a));break e}}i=l=_u(l,a),Pt!==4&&(Pt=2),Bd===null?Bd=[i]:Bd.push(i),i=s;do{switch(i.tag){case 3:i.flags|=65536,t&=-t,i.lanes|=t;var m=$L(i,l,t);tb(i,m);break e;case 1:a=l;var E=i.type,O=i.stateNode;if(!(i.flags&128)&&(typeof E.getDerivedStateFromError=="function"||O!==null&&typeof O.componentDidCatch=="function"&&(as===null||!as.has(O)))){i.flags|=65536,t&=-t,i.lanes|=t;var g=ZL(i,a,t);tb(i,g);break e}}i=i.return}while(i!==null)}EC(n)}catch(I){t=I,Nt===n&&n!==null&&(Nt=n=n.return);continue}break}while(1)}function pC(){var e=km.current;return km.current=Gm,e===null?Gm:e}function RI(){(Pt===0||Pt===3||Pt===2)&&(Pt=4),Bt===null||!(Ra&268435455)&&!(Zm&268435455)||Qi(Bt,tn)}function Bm(e,t){var n=Ce;Ce|=2;var r=pC();(Bt!==e||tn!==t)&&(ri=null,ha(e,t));do try{U2();break}catch(o){fC(e,o)}while(1);if(iI(),Ce=n,km.current=r,Nt!==null)throw Error(V(261));return Bt=null,tn=0,Pt}function U2(){for(;Nt!==null;)mC(Nt)}function V2(){for(;Nt!==null&&!mH();)mC(Nt)}function mC(e){var t=TC(e.alternate,e,lr);e.memoizedProps=e.pendingProps,t===null?EC(e):Nt=t,hI.current=null}function EC(e){var t=e;do{var n=t.alternate;if(e=t.return,t.flags&32768){if(n=M2(n,t),n!==null){n.flags&=32767,Nt=n;return}if(e!==null)e.flags|=32768,e.subtreeFlags=0,e.deletions=null;else{Pt=6,Nt=null;return}}else if(n=x2(n,t,lr),n!==null){Nt=n;return}if(t=t.sibling,t!==null){Nt=t;return}Nt=t=e}while(t!==null);Pt===0&&(Pt=5)}function ma(e,t,n){var r=Be,o=Fr.transition;try{Fr.transition=null,Be=1,H2(e,t,n,r)}finally{Fr.transition=o,Be=r}return null}function H2(e,t,n,r){do cu();while(ts!==null);if(Ce&6)throw Error(V(327));
vendor: 4,547 bytes, line 8
8n=e.finishedWork;var o=e.finishedLanes;if(n===null)return null;if(e.finishedWork=null,e.finishedLanes=0,n===e.current)throw Error(V(177));e.callbackNode=null,e.callbackPriority=0;var i=n.lanes|n.childLanes;if(AH(e,i),e===Bt&&(Nt=Bt=null,tn=0),!(n.subtreeFlags&2064)&&!(n.flags&2064)||sm||(sm=!0,hC(gm,function(){return cu(),null})),i=(n.flags&15990)!==0,n.subtreeFlags&15990||i){i=Fr.transition,Fr.transition=null;var s=Be;Be=1;var a=Ce;Ce|=4,hI.current=null,k2(e,n),uC(n,e),c2(Eg),Sm=!!mg,Eg=mg=null,e.current=n,F2(n,e,o),EH(),Ce=a,Be=s,Fr.transition=i}else e.current=n;if(sm&&(sm=!1,ts=e,wm=o),i=e.pendingLanes,i===0&&(as=null),hH(n.stateNode,r),Yn(e,Rt()),t!==null)for(r=e.onRecoverableError,n=0;n<t.length;n++)o=t[n],r(o.value,{componentStack:o.stack,digest:o.digest});if(Fm)throw Fm=!1,e=Gg,Gg=null,e;return wm&1&&e.tag!==0&&cu(),i=e.pendingLanes,i&1?e===kg?Ud++:(Ud=0,kg=e):Ud=0,ms(),null}function cu(){if(ts!==null){var e=$b(wm),t=Fr.transition,n=Be;try{if(Fr.transition=null,Be=16>e?16:e,ts===null)var r=!1;else{if(e=ts,ts=null,wm=0,Ce&6)throw Error(V(331));var o=Ce;for(Ce|=4,$=e.current;$!==null;){var i=$,s=i.child;if($.flags&16){var a=i.deletions;if(a!==null){for(var l=0;l<a.length;l++){var u=a[l];for($=u;$!==null;){var c=$;switch(c.tag){case 0:case 11:case 15:wd(8,c,i)}var d=c.child;if(d!==null)d.return=c,$=d;else for(;$!==null;){c=$;var f=c.sibling,p=c.return;if(sC(c),c===u){$=null;break}if(f!==null){f.return=p,$=f;break}$=p}}}var _=i.alternate;if(_!==null){var T=_.child;if(T!==null){_.child=null;do{var h=T.sibling;T.sibling=null,T=h}while(T!==null)}}$=i}}if(i.subtreeFlags&2064&&s!==null)s.return=i,$=s;else e:for(;$!==null;){if(i=$,i.flags&2048)switch(i.tag){case 0:case 11:case 15:wd(9,i,i.return)}var m=i.sibling;if(m!==null){m.return=i.return,$=m;break e}$=i.return}}var E=e.current;for($=E;$!==null;){s=$;var O=s.child;if(s.subtreeFlags&2064&&O!==null)O.return=s,$=O;else e:for(s=E;$!==null;){if(a=$,a.flags&2048)try{switch(a.tag){case 0:case 11:case 15:$m(9,a)}}catch(I){_t(a,a.return,I)}if(a===s){$=null;break e}var g=a.sibling;if(g!==null){g.return=a.return,$=g;break e}$=a.return}}if(Ce=o,ms(),Go&&typeof Go.onPostCommitFiberRoot=="function")try{Go.onPostCommitFiberRoot(Vm,e)}catch{}r=!0}return r}finally{Be=n,Fr.transition=t}}return!1}function Sb(e,t,n){t=_u(n,t),t=$L(e,t,1),e=ss(e,t,1),t=Dn(),e!==null&&(of(e,1,t),Yn(e,t))}function _t(e,t,n){if(e.tag===3)Sb(e,e,n);else for(;t!==null;){if(t.tag===3){Sb(t,e,n);break}else if(t.tag===1){var r=t.stateNode;if(typeof t.type.getDerivedStateFromError=="function"||typeof r.componentDidCatch=="function"&&(as===null||!as.has(r))){e=_u(n,e),e=ZL(t,e,1),t=ss(t,e,1),e=Dn(),t!==null&&(of(t,1,e),Yn(t,e));break}}t=t.return}}function W2(e,t,n){var r=e.pingCache;r!==null&&r.delete(t),t=Dn(),e.pingedLanes|=e.suspendedLanes&n,Bt===e&&(tn&n)===n&&(Pt===4||Pt===3&&(tn&130023424)===tn&&500>Rt()-gI?ha(e,0):OI|=n),Yn(e,t)}function _C(e,t){t===0&&(e.mode&1?(t=zp,zp<<=1,!(zp&130023424)&&(zp=4194304)):t=1);var n=Dn();e=ci(e,t),e!==null&&(of(e,t,n),Yn(e,n))}function Y2(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),_C(e,n)}function K2(e,t){var n=0;switch(e.tag){case 13:var r=e.stateNode,o=e.memoizedState;o!==null&&(n=o.retryLane);break;case 19:r=e.stateNode;break;default:throw Error(V(314))}r!==null&&r.delete(t),_C(e,n)}var TC;TC=function(e,t,n){if(e!==null)if(e.memoizedProps!==t.pendingProps||Hn.current)Vn=!0;else{if(!(e.lanes&n)&&!(t.flags&128))return Vn=!1,v2(e,t,n);Vn=!!(e.flags&131072)}else Vn=!1,ct&&t.flags&1048576&&IL(t,Cm,t.index);switch(t.lanes=0,t.tag){case 2:var r=t.type;pm(e,t),e=t.pendingProps;var o=fu(t,hn.current);uu(t,n),o=pI(null,t,r,e,o,n);var i=mI();return t.flags|=1,typeof o=="object"&&o!==null&&typeof o.render=="function"&&o.$$typeof===void 0?(t.tag=1,t.memoizedState=null,t.updateQueue=null,Wn(r)?(i=!0,bm(t)):i=!1,t.memoizedState=o.state!==null&&o.state!==void 0?o.state:null,lI(t),o.updater=jm,t.stateNode=o,o._reactInternals=t,Ag(t,r,e,n),t=bg(null,t,r,!0,i,n)):(t.tag=0,ct&&i&&tI(t),Pn(null,t,o,n),t=t.child),t;case 16:r=t.elementType;e:{switch(pm(e,t),e=t.pendingProps,o=r._init,r=o(r._payload),t.type=r,o=t.tag=X2(r),e=io(r,e),o){case 0:t=yg(null,t,r,e,n);break e;case 1:t=fb(null,t,r,e,n);break e;case 11:t=cb(null,t,r,e,n);break e;case 14:t=db(null,t,r,io(r.type,e),n);break e}throw Error(V(306,r,""))}return t;case 0:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:io(r,o),yg(e,t,r,o,n);case 1:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:io(r,o),fb(e,t,r,o,n);case 3:e:{if(eC(t),e===null)throw Error(V(387));
vendor: 8,088 bytes, line 8
8r=t.pendingProps,i=t.memoizedState,o=i.element,bL(e,t),vm(t,r,null,n);var s=t.memoizedState;if(r=s.element,i.isDehydrated)if(i={element:r,isDehydrated:!1,cache:s.cache,pendingSuspenseBoundaries:s.pendingSuspenseBoundaries,transitions:s.transitions},t.updateQueue.baseState=i,t.memoizedState=i,t.flags&256){o=_u(Error(V(423)),t),t=pb(e,t,r,n,o);break e}else if(r!==o){o=_u(Error(V(424)),t),t=pb(e,t,r,n,o);break e}else for(ur=is(t.stateNode.containerInfo.firstChild),cr=t,ct=!0,ao=null,n=NL(t,null,r,n),t.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling;else{if(pu(),r===o){t=di(e,t,n);break e}Pn(e,t,r,n)}t=t.child}return t;case 5:return LL(t),e===null&&Ig(t),r=t.type,o=t.pendingProps,i=e!==null?e.memoizedProps:null,s=o.children,_g(r,o)?s=null:i!==null&&_g(r,i)&&(t.flags|=32),QL(e,t),Pn(e,t,s,n),t.child;case 6:return e===null&&Ig(t),null;case 13:return tC(e,t,n);case 4:return uI(t,t.stateNode.containerInfo),r=t.pendingProps,e===null?t.child=mu(t,null,r,n):Pn(e,t,r,n),t.child;case 11:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:io(r,o),cb(e,t,r,o,n);case 7:return Pn(e,t,t.pendingProps,n),t.child;case 8:return Pn(e,t,t.pendingProps.children,n),t.child;case 12:return Pn(e,t,t.pendingProps.children,n),t.child;case 10:e:{if(r=t.type._context,o=t.pendingProps,i=t.memoizedProps,s=o.value,$e(Pm,r._currentValue),r._currentValue=s,i!==null)if(co(i.value,s)){if(i.children===o.children&&!Hn.current){t=di(e,t,n);break e}}else for(i=t.child,i!==null&&(i.return=t);i!==null;){var a=i.dependencies;if(a!==null){s=i.child;for(var l=a.firstContext;l!==null;){if(l.context===r){if(i.tag===1){l=ai(-1,n&-n),l.tag=2;var u=i.updateQueue;if(u!==null){u=u.shared;var c=u.pending;c===null?l.next=l:(l.next=c.next,c.next=l),u.pending=l}}i.lanes|=n,l=i.alternate,l!==null&&(l.lanes|=n),Sg(i.return,n,t),a.lanes|=n;break}l=l.next}}else if(i.tag===10)s=i.type===t.type?null:i.child;else if(i.tag===18){if(s=i.return,s===null)throw Error(V(341));s.lanes|=n,a=s.alternate,a!==null&&(a.lanes|=n),Sg(s,n,t),s=i.sibling}else s=i.child;if(s!==null)s.return=i;else for(s=i;s!==null;){if(s===t){s=null;break}if(i=s.sibling,i!==null){i.return=s.return,s=i;break}s=s.return}i=s}Pn(e,t,o.children,n),t=t.child}return t;case 9:return o=t.type,r=t.pendingProps.children,uu(t,n),o=wr(o),r=r(o),t.flags|=1,Pn(e,t,r,n),t.child;case 14:return r=t.type,o=io(r,t.pendingProps),o=io(r.type,o),db(e,t,r,o,n);case 15:return JL(e,t,t.type,t.pendingProps,n);case 17:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:io(r,o),pm(e,t),t.tag=1,Wn(r)?(e=!0,bm(t)):e=!1,uu(t,n),jL(t,r,o),Ag(t,r,o,n),bg(null,t,r,!0,e,n);case 19:return nC(e,t,n);case 22:return qL(e,t,n)}throw Error(V(156,t.tag))};function hC(e,t){return Kb(e,t)}function z2(e,t,n,r){this.tag=e,this.key=n,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=r,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function kr(e,t,n,r){return new z2(e,t,n,r)}function AI(e){return e=e.prototype,!(!e||!e.isReactComponent)}function X2(e){if(typeof e=="function")return AI(e)?1:0;if(e!=null){if(e=e.$$typeof,e===Wg)return 11;if(e===Yg)return 14}return 2}function us(e,t){var n=e.alternate;return n===null?(n=kr(e.tag,t,e.key,e.mode),n.elementType=e.elementType,n.type=e.type,n.stateNode=e.stateNode,n.alternate=e,e.alternate=n):(n.pendingProps=t,n.type=e.type,n.flags=0,n.subtreeFlags=0,n.deletions=null),n.flags=e.flags&14680064,n.childLanes=e.childLanes,n.lanes=e.lanes,n.child=e.child,n.memoizedProps=e.memoizedProps,n.memoizedState=e.memoizedState,n.updateQueue=e.updateQueue,t=e.dependencies,n.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext},n.sibling=e.sibling,n.index=e.index,n.ref=e.ref,n}function _m(e,t,n,r,o,i){var s=2;if(r=e,typeof e=="function")AI(e)&&(s=1);else if(typeof e=="string")s=5;else e:switch(e){case jl:return Oa(n.children,o,i,t);case Hg:s=8,o|=8;break;case jO:return e=kr(12,n,t,o|2),e.elementType=jO,e.lanes=i,e;case $O:return e=kr(13,n,t,o),e.elementType=$O,e.lanes=i,e;case ZO:return e=kr(19,n,t,o),e.elementType=ZO,e.lanes=i,e;case Lb:return Jm(n,o,i,t);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case yb:s=10;break e;case bb:s=9;break e;case Wg:s=11;break e;case Yg:s=14;break e;case Zi:s=16,r=null;break e}throw Error(V(130,e==null?e:typeof e,""))}return t=kr(s,n,t,o),t.elementType=e,t.type=r,t.lanes=i,t}function Oa(e,t,n,r){return e=kr(7,e,r,t),e.lanes=n,e}function Jm(e,t,n,r){return e=kr(22,e,r,t),e.elementType=Lb,e.lanes=n,e.stateNode={isHidden:!1},e}function KO(e,t,n){return e=kr(6,e,null,t),e.lanes=n,e}function zO(e,t,n){return t=kr(4,e.children!==null?e.children:[],e.key,t),t.lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function j2(e,t,n,r,o){this.tag=t,this.containerInfo=e,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=CO(0),this.expirationTimes=CO(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=CO(0),this.identifierPrefix=r,this.onRecoverableError=o,this.mutableSourceEagerHydrationData=null}function NI(e,t,n,r,o,i,s,a,l){return e=new j2(e,t,n,a,l),t===1?(t=1,i===!0&&(t|=8)):t=0,i=kr(3,null,null,t),e.current=i,i.stateNode=e,i.memoizedState={element:r,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null},lI(i),e}function $2(e,t,n){var r=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:Xl,key:r==null?null:""+r,children:e,containerInfo:t,implementation:n}}function OC(e){if(!e)return ds;e=e._reactInternals;e:{if(ya(e)!==e||e.tag!==1)throw Error(V(170));var t=e;do{switch(t.tag){case 3:t=t.stateNode.context;break e;case 1:if(Wn(t.type)){t=t.stateNode.__reactInternalMemoizedMergedChildContext;break e}}t=t.return}while(t!==null);throw Error(V(171))}if(e.tag===1){var n=e.type;if(Wn(n))return OL(e,n,t)}return t}function gC(e,t,n,r,o,i,s,a,l){return e=NI(n,r,!0,e,o,i,s,a,l),e.context=OC(null),n=e.current,r=Dn(),o=ls(n),i=ai(r,o),i.callback=t??null,ss(n,i,o),e.current.lanes=o,of(e,o,r),Yn(e,r),e}function qm(e,t,n,r){var o=t.current,i=Dn(),s=ls(o);return n=OC(n),t.context===null?t.context=n:t.pendingContext=n,t=ai(i,s),t.payload={element:e},r=r===void 0?null:r,r!==null&&(t.callback=r),e=ss(o,t,s),e!==null&&(uo(e,o,s,i),cm(e,o,s)),s}function Um(e){if(e=e.current,!e.child)return null;switch(e.child.tag){case 5:return e.child.stateNode;default:return e.child.stateNode}}function Rb(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var n=e.retryLane;e.retryLane=n!==0&&n<t?n:t}}function yI(e,t){Rb(e,t),(e=e.alternate)&&Rb(e,t)}function Z2(){return null}var IC=typeof reportError=="function"?reportError:function(e){console.error(e)};function bI(e){this._internalRoot=e}Qm.prototype.render=bI.prototype.render=function(e){var t=this._internalRoot;if(t===null)throw Error(V(409));qm(e,t,null,null)};Qm.prototype.unmount=bI.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var t=e.containerInfo;Aa(function(){qm(null,e,null,null)}),t[ui]=null}};function Qm(e){this._internalRoot=e}Qm.prototype.unstable_scheduleHydration=function(e){if(e){var t=qb();e={blockedOn:null,target:e,priority:t};for(var n=0;n<qi.length&&t!==0&&t<qi[n].priority;n++);qi.splice(n,0,e),n===0&&eL(e)}};function LI(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)}function eE(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11&&(e.nodeType!==8||e.nodeValue!==" react-mount-point-unstable "))}function Ab(){}function J2(e,t,n,r,o){if(o){if(typeof r=="function"){var i=r;r=function(){var u=Um(s);i.call(u)}}var s=gC(t,r,e,0,null,!1,!1,"",Ab);return e._reactRootContainer=s,e[ui]=s.current,$d(e.nodeType===8?e.parentNode:e),Aa(),s}for(;
vendor: 4,911 bytes, line 8
8o=e.lastChild;)e.removeChild(o);if(typeof r=="function"){var a=r;r=function(){var u=Um(l);a.call(u)}}var l=NI(e,0,!1,null,null,!1,!1,"",Ab);return e._reactRootContainer=l,e[ui]=l.current,$d(e.nodeType===8?e.parentNode:e),Aa(function(){qm(t,l,n,r)}),l}function tE(e,t,n,r,o){var i=n._reactRootContainer;if(i){var s=i;if(typeof o=="function"){var a=o;o=function(){var l=Um(s);a.call(l)}}qm(t,s,e,o)}else s=J2(n,t,e,o,r);return Um(s)}Zb=function(e){switch(e.tag){case 3:var t=e.stateNode;if(t.current.memoizedState.isDehydrated){var n=Pd(t.pendingLanes);n!==0&&(Xg(t,n|1),Yn(t,Rt()),!(Ce&6)&&(Tu=Rt()+500,ms()))}break;case 13:Aa(function(){var r=ci(e,1);if(r!==null){var o=Dn();uo(r,e,1,o)}}),yI(e,1)}};jg=function(e){if(e.tag===13){var t=ci(e,134217728);if(t!==null){var n=Dn();uo(t,e,134217728,n)}yI(e,134217728)}};Jb=function(e){if(e.tag===13){var t=ls(e),n=ci(e,t);if(n!==null){var r=Dn();uo(n,e,t,r)}yI(e,t)}};qb=function(){return Be};Qb=function(e,t){var n=Be;try{return Be=e,t()}finally{Be=n}};sg=function(e,t,n){switch(t){case"input":if(QO(e,n),t=n.name,n.type==="radio"&&t!=null){for(n=e;n.parentNode;)n=n.parentNode;for(n=n.querySelectorAll("input[name="+JSON.stringify(""+t)+'][type="radio"]'),t=0;t<n.length;t++){var r=n[t];if(r!==e&&r.form===e.form){var o=Km(r);if(!o)throw Error(V(90));Pb(r),QO(r,o)}}}break;case"textarea":vb(e,n);break;case"select":t=n.value,t!=null&&iu(e,!!n.multiple,t,!1)}};Bb=II;Ub=Aa;var q2={usingClientEntryPoint:!1,Events:[af,ql,Km,Fb,wb,II]},yd={findFiberByHostInstance:Ea,bundleType:0,version:"18.3.1",rendererPackageName:"react-dom"},Q2={bundleType:yd.bundleType,version:yd.version,rendererPackageName:yd.rendererPackageName,rendererConfig:yd.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setErrorHandler:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:fi.ReactCurrentDispatcher,findHostInstanceByFiber:function(e){return e=Wb(e),e===null?null:e.stateNode},findFiberByHostInstance:yd.findFiberByHostInstance||Z2,findHostInstancesForRefresh:null,scheduleRefresh:null,scheduleRoot:null,setRefreshHandler:null,getCurrentFiber:null,reconcilerVersion:"18.3.1-next-f1338f8080-20240426"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&(bd=__REACT_DEVTOOLS_GLOBAL_HOOK__,!bd.isDisabled&&bd.supportsFiber))try{Vm=bd.inject(Q2),Go=bd}catch{}var bd;pr.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=q2;pr.createPortal=function(e,t){var n=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!LI(t))throw Error(V(200));return $2(e,t,null,n)};pr.createRoot=function(e,t){if(!LI(e))throw Error(V(299));var n=!1,r="",o=IC;return t!=null&&(t.unstable_strictMode===!0&&(n=!0),t.identifierPrefix!==void 0&&(r=t.identifierPrefix),t.onRecoverableError!==void 0&&(o=t.onRecoverableError)),t=NI(e,1,!1,null,null,n,!1,r,o),e[ui]=t.current,$d(e.nodeType===8?e.parentNode:e),new bI(t)};pr.findDOMNode=function(e){if(e==null)return null;if(e.nodeType===1)return e;var t=e._reactInternals;if(t===void 0)throw typeof e.render=="function"?Error(V(188)):(e=Object.keys(e).join(","),Error(V(268,e)));return e=Wb(t),e=e===null?null:e.stateNode,e};pr.flushSync=function(e){return Aa(e)};pr.hydrate=function(e,t,n){if(!eE(t))throw Error(V(200));return tE(null,e,t,!0,n)};pr.hydrateRoot=function(e,t,n){if(!LI(e))throw Error(V(405));var r=n!=null&&n.hydratedSources||null,o=!1,i="",s=IC;if(n!=null&&(n.unstable_strictMode===!0&&(o=!0),n.identifierPrefix!==void 0&&(i=n.identifierPrefix),n.onRecoverableError!==void 0&&(s=n.onRecoverableError)),t=gC(t,null,e,1,n??null,o,!1,i,s),e[ui]=t.current,$d(e),r)for(e=0;e<r.length;e++)n=r[e],o=n._getVersion,o=o(n._source),t.mutableSourceEagerHydrationData==null?t.mutableSourceEagerHydrationData=[n,o]:t.mutableSourceEagerHydrationData.push(n,o);return new Qm(t)};pr.render=function(e,t,n){if(!eE(t))throw Error(V(200));return tE(null,e,t,!1,n)};pr.unmountComponentAtNode=function(e){if(!eE(e))throw Error(V(40));return e._reactRootContainer?(Aa(function(){tE(null,null,e,!1,function(){e._reactRootContainer=null,e[ui]=null})}),!0):!1};pr.unstable_batchedUpdates=II;pr.unstable_renderSubtreeIntoContainer=function(e,t,n,r){if(!eE(n))throw Error(V(200));if(e==null||e._reactInternals===void 0)throw Error(V(38));return tE(e,t,n,!1,r)};pr.version="18.3.1-next-f1338f8080-20240426"});var gu=ar((aZ,AC)=>{"use strict";function RC(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(RC)}catch(e){console.error(e)}}RC(),AC.exports=SC()});var nE=ar(CI=>{"use strict";var NC=gu();CI.createRoot=NC.createRoot,CI.hydrateRoot=NC.hydrateRoot;var lZ});var wC=ar(sE=>{"use strict";var fW=W(),pW=Symbol.for("react.element"),mW=Symbol.for("react.fragment"),EW=Object.prototype.hasOwnProperty,_W=fW.__SECRET_INT
8ERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,TW={key:!0,ref:!0,__self:!0,__source:!0};function FC(e,t,n){var r,o={},i=null,s=null;n!==void 0&&(i=""+n),t.key!==void 0&&(i=""+t.key),t.ref!==void 0&&(s=t.ref);for(r in t)EW.call(t,r)&&!TW.hasOwnProperty(r)&&(o[r]=t[r]);if(e&&e.defaultProps)for(r in t=e.defaultProps,t)o[r]===void 0&&(o[r]=t[r]);return{$$typeof:pW,type:e,key:i,ref:s,props:o,_owner:_W.current}}sE.Fragment=mW;sE.jsx=FC;sE.jsxs=FC});var _e=ar((mZ,BC)=>{"use strict";BC.exports=wC()});var MI=ar((_Z,aE)=>{(function(){"use strict";var e={}.hasOwnProperty;function t(){for(var o="",i=0;i<arguments.length;i++){var s=arguments[i];s&&(o=r(o,n(s)))}return o}function n(o){if(typeof o=="string"||typeof o=="number")return o;if(typeof o!="object")return"";if(Array.isArray(o))return t.apply(null,o);if(o.toString!==Object.prototype.toString&&!o.toString.toString().includes("[native code]"))return o.toString();var i="";for(var s in o)e.call(o,s)&&o[s]&&(i=r(i,s));return i}function r(o,i){return i?o?o+" "+i:o+i:o}typeof aE<"u"&&aE.exports?(t.default=t,aE.exports=t):typeof define=="function"&&typeof define.amd=="object"&&define.amd?define("classnames",[],function(){return t}):window.classNames=t})()});var ZI=ar((uP,mE)=>{(function(e,t,n){typeof mE<"u"&&mE.exports?mE.exports=n():typeof define=="function"&&define.amd?define(t,n):e[t]=n()})(uP,"bowser",function(){var e=!0;function t(l){function u(P){var z=l.match(P);return z&&z.length>1&&z[1]||""}function c(P){var z=l.match(P);return z&&z.length>1&&z[2]||""}var d=u(/(ipod|iphone|ipad)/i).toLowerCase(),f=/like android/i.test(l),p=!f&&/android/i.test(l),_=/nexus\s*[0-6]\s*/i.test(l),T=!_&&/nexus\s*[0-9]+/i.test(l),h=/CrOS/.test(l),m=/silk/i.test(l),E=/sailfish/i.test(l),O=/tizen/i.test(l),g=/(web|hpw)os/i.test(l),I=/windows phone/i.test(l),S=/SamsungBrowser/i.test(l),A=!I&&/windows/i.test(l),R=!d&&!m&&/macintosh/i.test(l),y=!p&&!E&&!O&&!g&&/linux/i.test(l),b=c(/edg([ea]|ios)\/(\d+(\.\d+)?)/i),L=u(/version\/(\d+(\.\d+)?)/i),D=/tablet/i.test(l)&&!/tablet pc/i.test(l),F=!D&&/[^-]mobi/i.test(l),U=/xbox/i.test(l),N;/opera/i.test(l)?N={name:"Opera",opera:e,version:L||u(/(?:opera|opr|opios)[\s\/](\d+(\.\d+)?)/i)}:/opr\/|opios/i.test(l)?N={name:"Opera",opera:e,version:u(/(?:opr|opios)[\s\/](\d+(\.\d+)?)/i)||L}:/SamsungBrowser/i.test(l)?N={name:"Samsung Internet for Android",samsungBrowser:e,version:L||u(/(?:SamsungBrowser)[\s\/](\d+(\.\d+)?)/i)}:/coast/i.test(l)?N={name:"Opera Coast",coast:e,version:L||u(/(?:coast)[\s\/](\d+(\.\d+)?)/i)}:/yabrowser/i.test(l)?N={name:"Yandex Browser",yandexbrowser:e,version:L||u(/(?:yabrowser)[\s\/](\d+(\.\d+)?)/i)}:/ucbrowser/i.test(l)?N={name:"UC Browser",ucbrowser:e,version:u(/(?:ucbrowser)[\s\/](\d+(?:\.\d+)+)/i)}:/mxios/i.test(l)?N={name:"Maxthon",maxthon:e,version:u(/(?:mxios)[\s\/](\d+(?:\.\d+)+)/i)}:/epiphany/i.test(l)?N={name:"Epiphany",epiphany:e,version:u(/(?:epiphany)[\s\/](\d+(?:\.\d+)+)/i)}:/puffin/i.test(l)?N={name:"Puffin",puffin:e,version:u(/(?:puffin)[\s\/](\d+(?:\.\d+)?)/i)}:/sleipnir/i.test(l)?N={name:"Sleipnir",sleipnir:e,version:u(/(?:sleipnir)[\s\/](\d+(?:\.\d+)+)/i)}:/k-meleon/i.test(l)?N={name:"K-Meleon",kMeleon:e,version:u(/(?:k-meleon)[\s\/](\d+(?:\.\d+)+)/i)}:I?(N={name:"Windows Phone",osname:"Windows Phone",windowsphone:e},b?(N.msedge=e,N.version=b):(N.msie=e,N.version=u(/iemobile\/(\d+(\.\d+)?)/i))):/msie|trident/i.test(l)?N={name:"Internet Explorer",msie:e,version:u(/(?:msie |rv:)(\d+(\.\d+)?)/i)}:h?N={name:"Chrome",osname:"Chrome OS",chromeos:e,chromeBook:e,chrome:e,version:u(/(?:chrome|crios|crmo)\/(\d+(\.\d+)?)/i)}:/edg([ea]|ios)/i.test(l)?N={name:"Microsoft Edge",msedge:e,version:b}:/vivaldi/i.test(l)?N={name:"Vivaldi",vivaldi:e,version:u(/vivaldi\/(\d+(\.\d+)?)/i)||L}:E?N={name:"Sailfish",osname:"Sailfish OS",sailfish:e,version:u(/sailfish\s?browser\/(\d+(\.\d+)?)/i)}:/seamonkey\//i.test(l)?N={name:"SeaMonkey",seamonkey:e,version:u(/seamonkey\/(\d+(\.\d+)?)/i)}:/firefox|iceweasel|fxios/i.test(l)?(N={name:"Firefox",firefox:e,version:u(/(?:firefox|iceweasel|fxios)[ \/](\d+(\.\d+)?)/i)},/\((mobile|tablet);[^\)]*rv:[\d\.]+\)/i.test(l)&&(N.firefoxos=e,N.osname="Firefox OS")):m?N={name:"Amazon Silk",silk:e,version:u(/silk\/(\d+(\.\d+)?)/i)}:/phantom/i.test(l)?N={name:"PhantomJS",phantom:e,version:u(/phantomjs\/(\d+(\.\d+)?)/i)}:/slimerjs/i.test(l)?N={name:"SlimerJS",slimer:e,version:u(/slimerjs\/(\d+(\.\d+)?)/i)}:/blackberry|\bbb\d+/i.test(l)||/rim\stablet/i.test(l)?N={name:"BlackBerry",osname:"BlackBerry OS",blackberry:e,version:L||u(/blackberry[\d]+\/(\d+(\.\d+)?)/i)}:g?(N={name:"WebOS",osname:"WebOS",webos:e,version:L||u(/w(?:eb)?osbrowser\/(\d+(\.\d+)?)/i)},/touchpad\//i.test(l)&&(N.touchpad=e)):/bada/i.test(l)?N={name:"Bada",osname:"Bada",bada:e,version:u(/dolfin\/(\d+(\.\d+)?)/i)}:O?N={name:"Tizen",osname:"Tizen",tizen:e,version:u(/(?:tizen\s?)?browser\/(\d+(\.\d+)?)/i)||L}:/qupzilla/i.test(l)?N={name:"QupZilla",qupzilla:e,version:u(/(?:qupzilla)[\s\/](\d+(?:\.\d+)+)/i)||L}:/chromium/i.test(l)?N={name:"Chromium",chromium:e,version:u(/(?:chromium)[\s\/](\d+(?:\.\d+)?)/i)||L}:/chrome|crios|crmo/i.test(l)?N={name:"Chrome",chrome:e,version:u(/(?:chrome|crios|crmo)\/(\d+(\.\d+)?)/i)}:p?N={name:"Android",version:L}:/safari|applewebkit/i.test(l)?(N={name:"Safari",safari:e},L&&(N.version=L)):d?(N={name:d=="iphone"?"iPhone":d=="ipad"?"iPad":"iPod"},L&&(N.version=L)):/googlebot/i.test(l)?N={name:"Googlebot",googlebot:e,version:u(/googlebot\/(\d+(\.\d+))/i)||L}:N={name:u(/^(.*)\/(.*) /),version:c(/^(.*)\/(.*) /)},!N.msedge&&/(apple)?webkit/i.test(l)?(/(apple)?webkit\/537\.36/i.test(l)?(N.name=N.name||"Blink",N.blink=e):(N.name=N.name||"Webkit",N.webkit=e),!N.version&&L&&(N.version=L)):!N.opera&&/gecko\//i.test(l)&&(N.name=N.name||"Gecko",N.gecko=e,N.version=N.version||u(/gecko\/(\d+(\.\d+)?)/i)),!N.windowsphone&&(p||N.silk)?(N.android=e,N.osname="Android"):!N.windowsphone&&d?(N[d]=e,N.ios=e,
8N.osname="iOS"):R?(N.mac=e,N.osname="macOS"):U?(N.xbox=e,N.osname="Xbox"):A?(N.windows=e,N.osname="Windows"):y&&(N.linux=e,N.osname="Linux");function K(P){switch(P){case"NT":return"NT";case"XP":return"XP";case"NT 5.0":return"2000";case"NT 5.1":return"XP";case"NT 5.2":return"2003";case"NT 6.0":return"Vista";case"NT 6.1":return"7";case"NT 6.2":return"8";case"NT 6.3":return"8.1";case"NT 10.0":return"10";default:return}}var C="";N.windows?C=K(u(/Windows ((NT|XP)( \d\d?.\d)?)/i)):N.windowsphone?C=u(/windows phone (?:os)?\s?(\d+(\.\d+)*)/i):N.mac?(C=u(/Mac OS X (\d+([_\.\s]\d+)*)/i),C=C.replace(/[_\s]/g,".")):d?(C=u(/os (\d+([_\s]\d+)*) like mac os x/i),C=C.replace(/[_\s]/g,".")):p?C=u(/android[ \/-](\d+(\.\d+)*)/i):N.webos?C=u(/(?:web|hpw)os\/(\d+(\.\d+)*)/i):N.blackberry?C=u(/rim\stablet\sos\s(\d+(\.\d+)*)/i):N.bada?C=u(/bada\/(\d+(\.\d+)*)/i):N.tizen&&(C=u(/tizen[\/\s](\d+(\.\d+)*)/i)),C&&(N.osversion=C);var M=!N.windows&&C.split(".")[0];return D||T||d=="ipad"||p&&(M==3||M>=4&&!F)||N.silk?N.tablet=e:(F||d=="iphone"||d=="ipod"||p||_||N.blackberry||N.webos||N.bada)&&(N.mobile=e),N.msedge||N.msie&&N.version>=10||N.yandexbrowser&&N.version>=15||N.vivaldi&&N.version>=1||N.chrome&&N.version>=20||N.samsungBrowser&&N.version>=4||N.firefox&&N.version>=20||N.safari&&N.version>=6||N.opera&&N.version>=10||N.ios&&N.osversion&&N.osversion.split(".")[0]>=6||N.blackberry&&N.version>=10.1||N.chromium&&N.version>=20?N.a=e:N.msie&&N.version<10||N.chrome&&N.version<20||N.firefox&&N.version<20||N.safari&&N.version<6||N.opera&&N.version<10||N.ios&&N.osversion&&N.osversion.split(".")[0]<6||N.chromium&&N.version<20?N.c=e:N.x=e,N}var n=t(typeof navigator<"u"&&navigator.userAgent||"");n.test=function(l){for(var u=0;u<l.length;++u){var c=l[u];if(typeof c=="string"&&c in n)return!0}return!1};function r(l){return l.split(".").length}function o(l,u){var c=[],d;if(Array.prototype.map)return Array.prototype.map.call(l,u);for(d=0;d<l.length;d++)c.push(u(l[d]));return c}function i(l){for(var u=Math.max(r(l[0]),r(l[1])),c=o(l,function(d){var f=u-r(d);return d=d+new Array(f+1).join(".0"),o(d.split("."),function(p){return new Array(20-p.length).join("0")+p}).reverse()});--u>=0;){if(c[0][u]>c[1][u])return 1;if(c[0][u]===c[1][u]){if(u===0)return 0}else return-1}}function s(l,u,c){var d=n;typeof u=="string"&&(c=u,u=void 0),u===void 0&&(u=!1),c&&(d=t(c));var f=""+d.version;for(var p in l)if(l.hasOwnProperty(p)&&d[p]){if(typeof l[p]!="string")throw new Error("Browser version in the minVersion map should be a string: "+p+": "+String(l));return i([f,l[p]])<0}return u}function a(l,u,c){return!s(l,u,c)}return n.isUnsupportedBrowser=s,n.compareVersions=i,n.check=a,n._detect=t,n.detect=t,n})});var G,k,w,Vv,Hv,sc,yi,Wv,qa,Fe=Qt(()=>{G=function(e){return e[e.FADE_DEPRECATED=0]="FADE_DEPRECATED",e[e.MOVE_DEPRECATED=1]="MOVE_DEPRECATED",e[e.ROTATE_DEPRECATED=2]="ROTATE_DEPRECATED",e[e.SCALE=3]="SCALE",e[e.RESIZE_DEPRECATED=4]="RESIZE_DEPRECATED",e[e.NEW=5]="NEW",e[e.TEXT_DATA=6]="TEXT_DATA",e[e.PATH_DRAW_DEPRECATED=7]="PATH_DRAW_DEPRECATED",e[e.PATH_TRAVEL_DEPRECATED=8]="PATH_TRAVEL_DEPRECATED",e[e.OPACITY=9]="OPACITY",e[e.CORNER_RADIUS=10]="CORNER_RADIUS",e[e.ROTATION=11]="ROTATION",e[e.PATH=12]="PATH",e[e.POSITION=13]="POSITION",e[e.SIZE=14]="SIZE",e}({}),k=function(e){return e[e.NONE=0]="NONE",e[e.BOOL=1]="BOOL",e[e.TEXT=2]="TEXT",e[e.INSTANCE_SWAP=3]="INSTANCE_SWAP",e[e.VARIANT=4]="VARIANT",e[e.NUMBER=5]="NUMBER",e[e.IMAGE=6]="IMAGE",e[e.SLOT=7]="SLOT",e[e.EASING=8]="EASING",e[e.COLOR=9]="COLOR",e[e.VECTOR=10]="VECTOR",e[e.CIRCLE=11]="CIRCLE",e[e.COLOR_POINT=12]="COLOR_POINT",e[e.LINE=13]="LINE",e[e.CIRCLE_POINT=14]="CIRCLE_POINT",e[e.GRADIENT=15]="GRADIENT",e}({}),w=function(e){return e[e.IN_CUBIC=0]="IN_CUBIC",e[e.OUT_CUBIC=1]="OUT_CUBIC",e[e.INOUT_CUBIC=2]="INOUT_CUBIC",e[e.LINEAR=3]="LINEAR",e[e.IN_BACK_CUBIC=4]="IN_BACK_CUBIC",e[e.OUT_BACK_CUBIC=5]="OUT_BACK_CUBIC",e[e.INOUT_BACK_CUBIC=6]="INOUT_BACK_CUBIC",e[e.CUSTOM_CUBIC=7]="CUSTOM_CUBIC",e[e.SPRING=8]="SPRING",e[e.GENTLE_SPRING=9]="GENTLE_SPRING",e[e.CUSTOM_SPRING=10]="CUSTOM_SPRING",e[e.SPRING_PRESET_ONE=11]="SPRING_PRESET_ONE",e[e.SPRING_PRESET_TWO=12]="SPRING_PRESET_TWO",e[e.SPRING_PRESET_THREE=13]="SPRING_PRESET_THREE",e[e.HOL
8D=14]="HOLD",e[e.EASE_IN=15]="EASE_IN",e}({}),Vv=function(e){return e[e.DESIGN_LAYOUT=0]="DESIGN_LAYOUT",e[e.WHITEBOARD_LAYOUT=1]="WHITEBOARD_LAYOUT",e[e.VECTOR=2]="VECTOR",e[e.TEXT=3]="TEXT",e[e.RASTER=4]="RASTER",e[e.GRADIENT=5]="GRADIENT",e[e.PLACE_IMAGE=6]="PLACE_IMAGE",e[e.HISTORY=7]="HISTORY",e[e.PREVIEW=8]="PREVIEW",e[e.COMMENTS=9]="COMMENTS",e[e.BRANCHING=10]="BRANCHING",e[e.DEV_HANDOFF=11]="DEV_HANDOFF",e[e.COMPARE_CHANGES=12]="COMPARE_CHANGES",e[e.LIBRARY=13]="LIBRARY",e[e.DEV_HANDOFF_HISTORY=14]="DEV_HANDOFF_HISTORY",e[e.SLIDE_LAYOUT=15]="SLIDE_LAYOUT",e[e.MAGIC_LINK=16]="MAGIC_LINK",e[e.BUZZ_LAYOUT=17]="BUZZ_LAYOUT",e[e.PROGRESSIVE_BLUR=18]="PROGRESSIVE_BLUR",e[e.COOPER_BULK_CREATE=19]="COOPER_BULK_CREATE",e[e.CMS_BINDING_CONSTRAINED=20]="CMS_BINDING_CONSTRAINED",e[e.SITES_LAYOUT=21]="SITES_LAYOUT",e[e.OFFSET_PATH=22]="OFFSET_PATH",e[e.GEN_EFFECT_CONTROLS=23]="GEN_EFFECT_CONTROLS",e}({}),Hv=function(e){return e[e.DESIGN=0]="DESIGN",e[e.WHITEBOARD=1]="WHITEBOARD",e[e.SLIDES=2]="SLIDES",e[e.DEV_HANDOFF=3]="DEV_HANDOFF",e[e.SITES=4]="SITES",e[e.COOPER=5]="COOPER",e[e.ILLUSTRATION=6]="ILLUSTRATION",e[e.FIGMAKE=7]="FIGMAKE",e[e.FIGSPEC=8]="FIGSPEC",e}({}),sc=function(e){return e[e.NONE=0]="NONE",e[e.PRODUCT_COMPONENT=1]="PRODUCT_COMPONENT",e[e.TOP_LEVEL_FRAME_PARENT=2]="TOP_LEVEL_FRAME_PARENT",e[e.INSTANCE_SUBLAYER=3]="INSTANCE_SUBLAYER",e[e.UNSUPPORTED_NODE_TYPE=4]="UNSUPPORTED_NODE_TYPE",e}({}),yi=function(e){return e[e.MISSING=0]="MISSING",e[e.CORNER_RADIUS=1]="CORNER_RADIUS",e[e.PARAGRAPH_SPACING=2]="PARAGRAPH_SPACING",e[e.PARAGRAPH_INDENT=3]="PARAGRAPH_INDENT",e[e.STROKE_WEIGHT=4]="STROKE_WEIGHT",e[e.STACK_SPACING=5]="STACK_SPACING",e[e.STACK_PADDING_LEFT=6]="STACK_PADDING_LEFT",e[e.STACK_PADDING_TOP=7]="STACK_PADDING_TOP",e[e.STACK_PADDING_RIGHT=8]="STACK_PADDING_RIGHT",e[e.STACK_PADDING_BOTTOM=9]="STACK_PADDING_BOTTOM",e[e.VISIBLE=10]="VISIBLE",e[e.TEXT_DATA=11]="TEXT_DATA",e[e.WIDTH=12]="WIDTH",e[e.HEIGHT=13]="HEIGHT",e[e.RECTANGLE_TOP_LEFT_CORNER_RADIUS=14]="RECTANGLE_TOP_LEFT_CORNER_RADIUS",e[e.RECTANGLE_TOP_RIGHT_CORNER_RADIUS=15]="RECTANGLE_TOP_RIGHT_CORNER_RADIUS",e[e.RECTANGLE_BOTTOM_LEFT_CORNER_RADIUS=16]="RECTANGLE_BOTTOM_LEFT_CORNER_RADIUS",e[e.RECTANGLE_BOTTOM_RIGHT_CORNER_RADIUS=17]="RECTANGLE_BOTTOM_RIGHT_CORNER_RADIUS",e[e.BORDER_TOP_WEIGHT=18]="BORDER_TOP_WEIGHT",e[e.BORDER_BOTTOM_WEIGHT=19]="BORDER_BOTTOM_WEIGHT",e[e.BORDER_LEFT_WEIGHT=20]="BORDER_LEFT_WEIGHT",e[e.BORDER_RIGHT_WEIGHT=21]="BORDER_RIGHT_WEIGHT",e[e.VARIANT_PROPERTIES=22]="VARIANT_PROPERTIES",e[e.STACK_COUNTER_SPACING=23]="STACK_COUNTER_SPACING",e[e.MIN_WIDTH=24]="MIN_WIDTH",e[e.MAX_WIDTH=25]="MAX_WIDTH",e[e.MIN_HEIGHT=26]="MIN_HEIGHT",e[e.MAX_HEIGHT=27]="MAX_HEIGHT",e[e.FONT_FAMILY=28]="FONT_FAMILY",e[e.FONT_STYLE=29]="FONT_STYLE",e[e.FONT_VARIATIONS=30]="FONT_VARIATIONS",e[e.OPACITY=31]="OPACITY",e[e.FONT_SIZE=32]="FONT_SIZE",e[e.LETTER_SPACING=34]="LETTER_SPACING",e[e.LINE_HEIGHT=36]="LINE_HEIGHT",e[e.OVERRIDDEN_SYMBOL_ID=37]="OVERRIDDEN_SYMBOL_ID",e[e.CMS_SERIALIZED_RICH_TEXT_DATA=38]="CMS_SERIALIZED_RICH_TEXT_DATA",e[e.HYPERLINK=39]="HYPERLINK",e[e.SLOT_CONTENT_ID=40]="SLOT_CONTENT_ID",e[e.GRID_ROW_GAP=41]="GRID_ROW_GAP",e[e.GRID_COLUMN_GAP=42]="GRID_COLUMN_GAP",e[e.RELATIVE_X_POSITION=43]="RELATIVE_X_POSITION",e[e.RELATIVE_Y_POSITION=44]="RELATIVE_Y_POSITION",e[e.RELATIVE_ROTATION=45]="RELATIVE_ROTATION",e[e.MOTION_TRANSLATION_X=46]="MOTION_TRANSLATION_X",e[e.MOTION_TRANSLATION_Y=47]="MOTION_TRANSLATION_Y",e[e.MOTION_ROTATION=48]="MOTION_ROTATION",e[e.MOTION_SCALE_X=49]="MOTION_SCALE_X",e[e.MOTION_SCALE_Y=50]="MOTION_SCALE_Y",e[e.MOTION_SHEAR=51]="MOTION_SHEAR",e[e.SCROLL_OFFSET_X=52]="SCROLL_OFFSET_X",e[e.SCROLL_OFFSET_Y=53]="SCROLL_OFFSET_Y",e[e.PATH_TRIM_START=54]="PATH_TRIM_START",e[e.PATH_TRIM_END=55]="PATH_TRIM_END",e[e.DISSOLVE_PROGRESS=56]="DISSOLVE_PROGRESS",e[e.EASING_DATA=57]="EASING_DATA",e[e.MEDIA_CURRENT_TIME=58]="MEDIA_CURRENT_TIME",e[e.TRANSFORM_3D_PERSPECTIVE=59]="TRANSFORM_3D_PERSPECTIVE",e[e.TRANSFORM_3D_TRANSLATION_Z=60]="TRANSFORM_3D_TRANSLATION_Z",e[e.TRANSFORM_3D_ROTATION_X=61]="TRANSFORM_3D_ROTATION_X",e[e.TRANSFORM_3D_ROTATION_Y=62]="TRANSFORM_3D_ROTATION_Y",e[e.TRANSFORM_3D_ROTATION_Z=63]="TRANSFORM_3D_ROTATION_Z",e[e.POLYGON_COUNT=64]="POLYGON_COUNT",e[e.ARC_DATA_STARTING_ANGLE=65]="ARC_DATA_STARTING_ANGLE",e[e.ARC_DATA_ENDING_ANGLE=66]="ARC_DATA_ENDING_ANGLE",e[e.ARC_DATA_INNER_RADIUS=67]="ARC_DATA_INNER_RADIUS",e[e.KEYFRAME_VALUE=68]="KEYFRAME_VALUE",e[e.MOTION_TRANSLATION_XY=69]="MOTION_TRANSLATION_XY",e[e.MOTION_SCALE_XY=70]="MOTION_SCALE_XY",e[e.SCENE_3D_PERSPECTIVE=71]="SCENE_3D_PERSPECTIVE",e[e.STAR_INNER_SCALE=72]="STAR_INNER_SCALE",e[e.MOTION_TRANSFORM_ORIGIN_XY=73]="MOTION_TRANSFORM_ORIGIN_XY",e[e.MOTION_TRANSFORM_ORIGIN_X=74]="MOTION_TRANSFORM_ORIGIN_X",e[e.MOTION_TRANSFORM_ORIGIN_Y=75]="MOTION_TRANSFORM_ORIGIN_Y",e}({}),Wv=function(e){return e[e.NONE=0]="NONE",e[e.SELECT=1]="SELECT",e[e.HAND=2]="HAND",e[e.COMMENTS=3]="COMMENTS",e[e.DROPPER_COLOR=4]="DROPPER_COLOR",e[e.FRAME=5]="FRAME",e[e.SLICE=6]="SLICE",e[e.STACK=7]="STACK",e[e.SHAPE_STAR=8]="SHAPE_STAR",e[e.SHAPE_LINE=9]="SHAPE_LINE",e[e.SHAPE_ARROW=10]="SHAPE_ARROW",e[e.SHAPE_ELLIPSE=11]="SHAPE_ELLIPSE",e[e.SHAPE_RECTANGLE=12]="SHAPE_RECTANGLE",e[e.SHAPE_REGULAR_POLYGON=13]="SHAPE_REGULAR_POLYGON",e[e.VECTOR_PEN=14]="VECTOR_PEN",e[e.VECTOR_PENCIL=15]="VECTOR_PENCIL",e[e.VECTOR_E
8RASER=16]="VECTOR_ERASER",e[e.VECTOR_BEND=17]="VECTOR_BEND",e[e.VECTOR_CUT=18]="VECTOR_CUT",e[e.VECTOR_PAINT_BUCKET=19]="VECTOR_PAINT_BUCKET",e[e.VECTOR_VAR_WIDTH_POINT=20]="VECTOR_VAR_WIDTH_POINT",e[e.SHAPE_BUILDER=21]="SHAPE_BUILDER",e[e.VECTOR_LASSO=22]="VECTOR_LASSO",e[e.IMAGE_LASSO=23]="IMAGE_LASSO",e[e.TYPE=24]="TYPE",e[e.TEXT_PATH=25]="TEXT_PATH",e[e.SCALE=26]="SCALE",e[e.STICKY=27]="STICKY",e[e.STAMP=28]="STAMP",e[e.SHAPE_WHITEBOARD_SQUARE=29]="SHAPE_WHITEBOARD_SQUARE",e[e.SHAPE_WHITEBOARD_ELLIPSE=30]="SHAPE_WHITEBOARD_ELLIPSE",e[e.SHAPE_WHITEBOARD_DIAMOND=31]="SHAPE_WHITEBOARD_DIAMOND",e[e.SHAPE_WHITEBOARD_TRIANGLE_UP=32]="SHAPE_WHITEBOARD_TRIANGLE_UP",e[e.SHAPE_WHITEBOARD_TRIANGLE_DOWN=33]="SHAPE_WHITEBOARD_TRIANGLE_DOWN",e[e.SHAPE_WHITEBOARD_ROUNDED_RECTANGLE=34]="SHAPE_WHITEBOARD_ROUNDED_RECTANGLE",e[e.SHAPE_WHITEBOARD_PARALLELOGRAM_RIGHT=35]="SHAPE_WHITEBOARD_PARALLELOGRAM_RIGHT",e[e.SHAPE_WHITEBOARD_PARALLELOGRAM_LEFT=36]="SHAPE_WHITEBOARD_PARALLELOGRAM_LEFT",e[e.CONNECTOR_ELBOWED=37]="CONNECTOR_ELBOWED",e[e.CONNECTOR_STRAIGHT=38]="CONNECTOR_STRAIGHT",e[e.CONNECTOR_CURVED=39]="CONNECTOR_CURVED",e[e.CODE_BLOCK=40]="CODE_BLOCK",e[e.SHAPE_WHITEBOARD_ENG_DATABASE=41]="SHAPE_WHITEBOARD_ENG_DATABASE",e[e.SHAPE_WHITEBOARD_ENG_QUEUE=42]="SHAPE_WHITEBOARD_ENG_QUEUE",e[e.SHAPE_WHITEBOARD_ENG_FILE=43]="SHAPE_WHITEBOARD_ENG_FILE",e[e.SHAPE_WHITEBOARD_ENG_FOLDER=44]="SHAPE_WHITEBOARD_ENG_FOLDER",e[e.ERASER=45]="ERASER",e[e.HIGHLIGHTER=46]="HIGHLIGHTER",e[e.SECTION=47]="SECTION",e[e.WASHI_TAPE=48]="WASHI_TAPE",e[e.TABLE=49]="TABLE",e[e.SHAPE_WHITEBOARD_TRAPEZOID=50]="SHAPE_WHITEBOARD_TRAPEZOID",e[e.SHAPE_WHITEBOARD_STAR=51]="SHAPE_WHITEBOARD_STAR",e[e.SHAPE_WHITEBOARD_SHIELD=52]="SHAPE_WHITEBOARD_SHIELD",e[e.SHAPE_WHITEBOARD_HEXAGON=53]="SHAPE_WHITEBOARD_HEXAGON",e[e.SHAPE_WHITEBOARD_PENTAGON=54]="SHAPE_WHITEBOARD_PENTAGON",e[e.SHAPE_WHITEBOARD_OCTAGON=55]="SHAPE_WHITEBOARD_OCTAGON",e[e.SHAPE_WHITEBOARD_PLUS=56]="SHAPE_WHITEBOARD_PLUS",e[e.SHAPE_WHITEBOARD_PREDEFINED_PROCESS=57]="SHAPE_WHITEBOARD_PREDEFINED_PROCESS",e[e.SHAPE_WHITEBOARD_MANUAL_INPUT=58]="SHAPE_WHITEBOARD_MANUAL_INPUT",e[e.SHAPE_WHITEBOARD_CHEVRON=59]="SHAPE_WHITEBOARD_CHEVRON",e[e.SHAPE_WHITEBOARD_DOCUMENT_SINGLE=60]="SHAPE_WHITEBOARD_DOCUMENT_SINGLE",e[e.SHAPE_WHITEBOARD_DOCUMENT_MULTIPLE=61]="SHAPE_WHITEBOARD_DOCUMENT_MULTIPLE",e[e.SHAPE_WHITEBOARD_ARROW_LEFT=62]="SHAPE_WHITEBOARD_ARROW_LEFT",e[e.SHAPE_WHITEBOARD_ARROW_RIGHT=63]="SHAPE_WHITEBOARD_ARROW_RIGHT",e[e.SHAPE_WHITEBOARD_SUMMING_JUNCTION=64]="SHAPE_WHITEBOARD_SUMMING_JUNCTION",e[e.SHAPE_WHITEBOARD_OR=65]="SHAPE_WHITEBOARD_OR",e[e.SHAPE_WHITEBOARD_SPEECH_BUBBLE=66]="SHAPE_WHITEBOARD_SPEECH_BUBBLE",e[e.SHAPE_WHITEBOARD_INTERNAL_STORAGE=67]="SHAPE_WHITEBOARD_INTERNAL_STORAGE",e[e.SHAPE_WHITEBOARD_MINDMAP_TREE_NUCLEUS=68]="SHAPE_WHITEBOARD_MINDMAP_TREE_NUCLEUS",e[e.SHAPE_WHITEBOARD_PLATFORM=69]="SHAPE_WHITEBOARD_PLATFORM",e[e.ANNOTATE=70]="ANNOTATE",e[e.IMAGE_OR_VIDEO=71]="IMAGE_OR_VIDEO",e[e.MEASURE=72]="MEASURE",e[e.SLIDES_POLL=73]="SLIDES_POLL",e[e.SLIDES_EMBED=74]="SLIDES_EMBED",e[e.SLIDES_FACEPILE=75]="SLIDES_FACEPILE",e[e.SLIDES_ALIGNMENT_SCALE=76]="SLIDES_ALIGNMENT_SCALE",e[e.SLIDES_YOUTUBE=77]="SLIDES_YOUTUBE",e[e.SLIDE_NUMBER=78]="SLIDE_NUMBER",e[e.HAND_SELECT=79]="HAND_SELECT",e[e.MULTISELECT=80]="MULTISELECT",e[e.LASSO=81]="LASSO",e[e.SITES_RESPONSIVE_SET=82]="SITES_RESPONSIVE_SET",e[e.SITES_RESPONSIVE_NODE_SET=83]="SITES_RESPONSIVE_NODE_SET",e[e.SITES_LINK=84]="SITES_LINK",e[e.CODE_COMPONENT=85]="CODE_COMPONENT",e[e.SITES_EMBED=86]="SITES_EMBED",e[e.PATTERN_SOURCE_SELECTOR=87]="PATTERN_SOURCE_SELECTOR",e[e.BRUSH=88]="BRUSH",e[e.KEYBOARD_SELECT=89]="KEYBOARD_SELECT",e[e.JSX=90]="JSX",e[e.OFFSET_PATH=91]="OFFSET_PATH",e[e.SIMPLIFY_VECTOR=92]="SIMPLIFY_VECTOR",e[e.RECOLOR=93]="RECOLOR",e[e.RECOLOR_DEBUG=94]="RECOLOR_DEBUG",e[e.SITES_WEBPAGE=95]="SITES_WEBPAGE",e[e.SPEC=96]="SPEC",e}({}),qa=function(e){return e[e.BOOLEAN=0]="BOOLEAN",e[e.FLOAT=1]="FLOAT",e[e.STRING=2]="STRING",e[e.COLOR=3]="COLOR",e[e.MAP=4]="MAP",e[e.SYMBOL_ID=5]="SYMBOL_ID",e[e.FONT_STYLE=6]="FONT_STYLE",e[e.TEXT_DATA=7]="TEXT_DATA",e[e.IMAGE=8]="IMAGE",e[e.LINK=9]="LINK",e[e.JS_RUNTIME_ALIAS=10]="JS_RUNTIME_ALIAS",e[e.SLOT_CONTENT_ID=11]="SLOT_CONTENT_ID",e[e.KEYFRAME_TRACK_ID=12]="KEYFRAME_TRACK_ID",e[e.KEYFRAME_TRACK_PARAMETER_DATA=13]="KEYFRAME_TRACK_PARAMETER_DATA",e[e.EASING=14]="EASING",e[e.TIMING=15]="TIMING",e[e.VECTOR=16]="VECTOR",e[e.COLOR_ARRAY=17]="COLOR_ARRAY",e[e.LINE=18]="LINE",e[e.CIRCLE=19]="CIRCLE",e[e.ROTATION_3D=20]="ROTATION_3D",e[e.CIRCLE_POINT=21]="CIRCLE_POINT",e[e.GRADIENT=22]="GRADIENT",e[e.COLOR_POINT=23]="COLOR_POINT",e[e.PAINT=25]="PAINT",e}({})});var Bx,Ux,Vx=Qt(()=>{Bx=`// Source-of-truth for the CORNER_RADIUS first-party animation preset. 9// 10// The build-time preset-bundle codegen (see \`../scripts/generate_preset_bundles.ts\`) 11// reads this file's raw text, esbuilds it into an IIFE with \`figma:motion\` 12// resolved, and emits both strings into \`../generated/corner_radius.generated.ts\`. 13// The generated module is what runtime code consumes \u2014 never import this file
14// directly from production code paths. 15// 16// This file is excluded from the share/motion \`ts_project\` compilation \u2014 it's 17// only an input to the codegen tool, evaluated inside the QuickJS / iframe 18// sandbox at runtime. 19 20import { animate, defineProperties, EasingType, tween } from 'figma:motion' 21 22import type { PresetArgs } from './preset_types' 23 24// Field names must match the contract in 25// \`code-components-transpiler/shared/src/motion_constants.ts\` \u2014 any value not 26// recognized there causes \`animate()\` to throw "unknown or non-keyframeable 27// property" at materialization time. 28const CORNER_FIELD_MAP: Record<string, string> = { 29 all: 'cornerRadius', 30 topLeft: 'rectangleTopLeftCornerRadius', 31 topRight: 'rectangleTopRightCornerRadius', 32 bottomLeft: 'rectangleBottomLeftCornerRadius', 33 bottomRight: 'rectangleBottomRightCornerRadius', 34} 35 36const CORNER_KEYS = ['all', 'topLeft', 'topRight', 'bottomLeft', 'bottomRight'] as const 37type CornerKey = (typeof CORNER_KEYS)[number] 38 39export default function preset({ 40 type, 41 corner, 42 amount, 43 allStartFrame, 44 allEndFrame, 45 topLeftStartFrame, 46 topLeftEndFrame, 47 topRightStartFrame, 48 topRightEndFrame, 49 bottomLeftStartFrame, 50 bottomLeftEndFrame, 51 bottomRightStartFrame, 52 bottomRightEndFrame, 53 duration, 54 easing, 55 target, 56}: PresetArgs) { 57 const selectedCorner: CornerKey = (corner as CornerKey) || 'all' 58 59 function getFromTo(cornerKey: CornerKey): [number, number] { 60 if (type === 'custom') { 61 switch (cornerKey) { 62 case 'topLeft': 63 return [topLeftStartFrame, topLeftEndFrame] 64 case 'topRight': 65 return [topRightStartFrame, topRightEndFrame] 66 case 'bottomLeft': 67 return [bottomLeftStartFrame, bottomLeftEndFrame] 68 case 'bottomRight': 69 return [bottomRightStartFrame, bottomRightEndFrame] 70 case 'all': 71 default: 72 return [allStartFrame, allEndFrame] 73 } 74 } 75 if (type === 'roundOut') return [amount, 0] 76 return [0, amount] 77 } 78 79 // Always emit all five corner tracks so their KEYFRAME_TRACK GUIDs survive \`corner\` toggles. The 80 // C++ side honors \`enabled=false\` by marking the track invisible. 81 const definition: Record<string, unknown> = {} 82 for (const cornerKey of CORNER_KEYS) { 83 const fieldName = CORNER_FIELD_MAP[cornerKey] 84 const enabled = cornerKey === selectedCorner 85 const [from, to] = getFromTo(cornerKey) 86 definition[fieldName] = tween({ 87 mode: 'offset', 88 timelinePosition: 0, 89 duration, 90 from, 91 to, 92 easing, 93 enabled, 94 }) 95 } 96 97 return [animate(target, definition)] 98} 99 100// KEEP_IN_SYNC(share/motion/src/presets/corner_radius_meta.ts) \u2014 the 101// property bounds (min/max/unit) must match \`PROP_DEFS[*].inputConfig\` so the 102// panel-side TS metadata and the bundled IIFE agree on every prop's contract. 103defineProperties(preset, { 104 type: { 105 label: 'motion.preset_flyout.type', 106 type: 'string', 107 defaultValue: 'roundIn', 108 control: 'select', 109 options: [ 110 { value: 'roundIn', label: 'motion.preset_flyout.corner_radius.type.round_in' }, 111 { value: 'roundOut', label: 'motion.preset_flyout.corner_radius.type.round_out' }, 112 { value: 'custom', label: 'motion.preset_flyout.type.custom' }, 113 ], 114 }, 115 corner: { 116 label: 'motion.preset_flyout.corner_radius.corner', 117 type: 'string', 118 defaultValue: 'all', 119 control: 'select', 120 options: [ 121 { value: 'all', label: 'motion.preset_flyout.corner_radius.corner.all' }, 122 { value: 'topLeft', label: 'motion.preset_flyout.corner_radius.corner.top_left' }, 123 { value: 'topRight', label: 'motion.preset_flyout.corner_radius.corner.top_right' }, 124 { value: 'bottomLeft', label: 'motion.preset_flyout.corner_radius.corner.bottom_left' }, 125 { value: 'bottomRight', label: 'motion.preset_flyout.corner_radius.corner.bottom_right' }, 126 ], 127 }, 128 amount: { 129 label: 'motion.preset_flyout.amount', 130 type: 'number', 131 defaultValue: 10, 132 control: 'input', 133 min: 0, 134 unit: 'px', 135 }, 136 // TODO(showDividerAbove-cleanup): the \`showDividerAbove\` flags in this file 137 // are redundant \u2014 section dividers are now applied client-side in the preset 138 // flyout via \`forceShowDividerAboveTransform\` 139 allStartFrame: { 140 label: 'motion.preset_flyout.start_frame', 141 type: 'number', 142 defaultValue: 10, 143 control: 'input', 144 min: 0, 145 unit: 'px', 146 showDividerAbove: true, 147 icon: 'radius_all', 148 }, 149 allEndFrame: { 150 label: 'motion.preset_flyout.end_frame', 151 type: 'number', 152 defaultValue: 0, 153 control: 'input', 154 min: 0, 155 unit: 'px', 156 icon: 'radius_all', 157 }, 158 topLeftStartFrame: { 159 label: 'motion.preset_flyout.start_frame', 160 type: 'number', 161 defaultValue: 0, 162 control: 'input', 163 min: 0, 164 unit: 'px', 165 showDividerAbove: true, 166 icon: 'radius_top_left', 167 }, 168 topLeftEndFrame: { 169 label: 'motion.preset_flyout.end_frame', 170 type: 'number', 171 defaultValue: 20, 172 control: 'input', 173 min: 0, 174 unit: 'px', 175 icon: 'radius_top_left', 176 },
177 topRightStartFrame: { 178 label: 'motion.preset_flyout.start_frame', 179 type: 'number', 180 defaultValue: 0, 181 control: 'input', 182 min: 0, 183 unit: 'px', 184 showDividerAbove: true, 185 icon: 'radius_top_right', 186 }, 187 topRightEndFrame: { 188 label: 'motion.preset_flyout.end_frame', 189 type: 'number', 190 defaultValue: 20, 191 control: 'input', 192 min: 0, 193 unit: 'px', 194 icon: 'radius_top_right', 195 }, 196 bottomLeftStartFrame: { 197 label: 'motion.preset_flyout.start_frame', 198 type: 'number', 199 defaultValue: 0, 200 control: 'input', 201 min: 0, 202 unit: 'px', 203 showDividerAbove: true, 204 icon: 'radius_bottom_left', 205 }, 206 bottomLeftEndFrame: { 207 label: 'motion.preset_flyout.end_frame', 208 type: 'number', 209 defaultValue: 20, 210 control: 'input', 211 min: 0, 212 unit: 'px', 213 icon: 'radius_bottom_left', 214 }, 215 bottomRightStartFrame: { 216 label: 'motion.preset_flyout.start_frame', 217 type: 'number', 218 defaultValue: 0, 219 control: 'input', 220 min: 0, 221 unit: 'px', 222 showDividerAbove: true, 223 icon: 'radius_bottom_right', 224 }, 225 bottomRightEndFrame: { 226 label: 'motion.preset_flyout.end_frame', 227 type: 'number', 228 defaultValue: 20, 229 control: 'input', 230 min: 0, 231 unit: 'px', 232 icon: 'radius_bottom_right', 233 }, 234 // Note: 'delay' is kept in sync with a preset's \`timelineOffset\`. 235 delay: { 236 label: 'motion.preset_flyout.delay', 237 type: 'number', 238 defaultValue: 0, 239 control: 'input', 240 unit: 's', 241 showDividerAbove: true, 242 icon: 'delay', 243 }, 244 duration: { 245 label: 'motion.preset_flyout.duration', 246 type: 'number', 247 defaultValue: 0.5, 248 control: 'input', 249 min: 0.01, 250 unit: 's', 251 icon: 'time', 252 }, 253 easing: { 254 label: 'motion.preset_flyout.easing', 255 type: 'easing', 256 defaultValue: { easingType: EasingType.OUT_CUBIC }, 257 }, 258}) 259`,Ux=`var __presetBundle = (() => { 260 var __defProp = Object.defineProperty; 261 var __getOwnPropDesc = Object.getOwnPropertyDescriptor; 262 var __getOwnPropNames = Object.getOwnPropertyNames; 263 var __hasOwnProp = Object.prototype.hasOwnProperty; 264 var __export = (target, all) => { 265 for (var name in all) 266 __defProp(target, name, { get: all[name], enumerable: true }); 267 }; 268 var __copyProps = (to, from, except, desc) => { 269 if (from && typeof from === "object" || typeof from === "function") { 270 for (let key of __getOwnPropNames(from)) 271 if (!__hasOwnProp.call(to, key) && key !== except) 272 __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable }); 273 } 274 return to; 275 }; 276 var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod); 277 278
278// ../../../../../../../../execroot/_main/bazel-out/k8-fastbuild/bin/share/motion/src/presets/source/corner_radius.ts 279 var corner_radius_exports = {}; 280 __export(corner_radius_exports, { 281 default: () => preset 282 }); 283 284 // figma-motion:figma:motion 285 function defineProperties(component, spec) { 286 Object.assign(component, { 287 [/* @__PURE__ */ Symbol.for("figma.react.props")]: spec 288 }); 289 } 290 var EasingType = { 291 IN_CUBIC: 0, 292 inCubic: 0, 293 OUT_CUBIC: 1, 294 outCubic: 1, 295 INOUT_CUBIC: 2, 296 inOutCubic: 2, 297 LINEAR: 3, 298 linear: 3, 299 IN_BACK_CUBIC: 4, 300 inBackCubic: 4, 301 OUT_BACK_CUBIC: 5, 302 outBackCubic: 5, 303 INOUT_BACK_CUBIC: 6, 304 inOutBackCubic: 6, 305 CUSTOM_CUBIC: 7, 306 customCubic: 7, 307 SPRING: 8, 308 spring: 8, 309 GENTLE_SPRING: 9, 310 gentleSpring: 9, 311 CUSTOM_SPRING: 10, 312 customSpring: 10, 313 SPRING_PRESET_ONE: 11, 314 springPresetOne: 11, 315 SPRING_PRESET_TWO: 12, 316 springPresetTwo: 12, 317 SPRING_PRESET_THREE: 13, 318 springPresetThree: 13, 319 // For backwards compat 320 bezier: 100, 321 BEZIER: 100 322 }; 323 var InterpolationType = { 324 HOLD: 0, 325 hold: 0, 326 BEZIER: 1, 327 bezier: 1 328 }; 329 var KeyframeOperation = { 330 SET: 0, 331 set: 0, 332 SCALE: 1, 333 scale: 1, 334 OFFSET: 2, 335 offset: 2 336 }; 337 var ParameterField = { 338 MISSING: 0, 339 missing: 0, 340 CORNER_RADIUS: 1, 341 cornerRadius: 1, 342 PARAGRAPH_SPACING: 2, 343 paragraphSpacing: 2, 344 PARAGRAPH_INDENT: 3, 345 paragraphIndent: 3, 346 STROKE_WEIGHT: 4, 347 strokeWeight: 4, 348 STACK_SPACING: 5, 349 stackSpacing: 5, 350 STACK_PADDING_LEFT: 6, 351 stackPaddingLeft: 6, 352 STACK_PADDING_TOP: 7, 353 stackPaddingTop: 7, 354 STACK_PADDING_RIGHT: 8, 355 stackPaddingRight: 8, 356 STACK_PADDING_BOTTOM: 9, 357 stackPaddingBottom: 9, 358 VISIBLE: 10, 359 visible: 10, 360 TEXT_DATA: 11, 361 textData: 11, 362 WIDTH: 12, 363 width: 12, 364 HEIGHT: 13, 365 height: 13, 366 RECTANGLE_TOP_LEFT_CORNER_RADIUS: 14, 367 rectangleTopLeftCornerRadius: 14, 368 RECTANGLE_TOP_RIGHT_CORNER_RADIUS: 15, 369 rectangleTopRightCornerRadius: 15, 370 RECTANGLE_BOTTOM_LEFT_CORNER_RADIUS: 16, 371 rectangleBottomLeftCornerRadius: 16, 372 RECTANGLE_BOTTOM_RIGHT_CORNER_RADIUS: 17, 373 rectangleBottomRightCornerRadius: 17, 374 BORDER_TOP_WEIGHT: 18, 375 borderTopWeight: 18, 376 BORDER_BOTTOM_WEIGHT: 19, 377 borderBottomWeight: 19, 378 BORDER_LEFT_WEIGHT: 20, 379 borderLeftWeight: 20, 380 BORDER_RIGHT_WEIGHT: 21, 381 borderRightWeight: 21, 382 VARIANT_PROPERTIES: 22, 383 variantProperties: 22, 384 STACK_COUNTER_SPACING: 23, 385 stackCounterSpacing: 23, 386 MIN_WIDTH: 24, 387 minWidth: 24, 388 MAX_WIDTH: 25, 389 maxWidth: 25, 390 MIN_HEIGHT: 26, 391 minHeight: 26, 392 MAX_HEIGHT: 27, 393 maxHeight: 27, 394 FONT_FAMILY: 28, 395 fontFamily: 28, 396 FONT_STYLE: 29, 397 fontStyle: 29, 398 FONT_VARIATIONS: 30, 399 fontVariations: 30, 400 OPACITY: 31, 401 opacity: 31, 402 FONT_SIZE: 32, 403 fontSize: 32, 404 LETTER_SPACING: 34, 405 letterSpacing: 34, 406 LINE_HEIGHT: 36, 407 lineHeight: 36, 408 OVERRIDDEN_SYMBOL_ID: 37, 409 overriddenSymbolId: 37, 410 CMS_SERIALIZED_RICH_TEXT_DATA: 38, 411 cmsSerializedRichTextData: 38, 412 HYPERLINK: 39, 413 hyperlink: 39, 414 SLOT_CONTENT_ID: 40, 415 slotContentId: 40, 416 GRID_ROW_GAP: 41, 417 gridRowGap: 41, 418 GRID_COLUMN_GAP: 42, 419 gridColumnGap: 42, 420 RELATIVE_X_POSITION: 43, 421 xPosition: 43, 422 RELATIVE_Y_POSITION: 44, 423 relativeYPosition: 44, 424 RELATIVE_ROTATION: 45, 425 relativeRotation: 45, 426 MOTION_TRANSLATION_X: 46, 427 motionTranslationX: 46, 428 MOTION_TRANSLATION_Y: 47, 429 motionTranslationY: 47, 430 MOTION_ROTATION: 48, 431 motionRotation: 48, 432 MOTION_SCALE_X: 49, 433 motionScaleX: 49, 434 MOTION_SCALE_Y: 50, 435 motionScaleY: 50, 436 MOTION_SHEAR: 51, 437 motionShear: 51, 438 SCROLL_OFFSET_X: 52, 439 scrollOffsetX: 52, 440 SCROLL_OFFSET_Y: 53, 441 scrollOffsetY: 53, 442 PATH_TRIM_START: 54, 443 pathTrimStart: 54, 444 PATH_TRIM_END: 55, 445 pathTrimEnd: 55, 446 DISSOLVE_PROGRESS: 56, 447 dissolveProgress: 56 448 }; 449 var Keyframe = class { 450 constructor(data) { 451 this.timelinePosition = Math.round(data.timelinePosition); 452 this.easing = data.easing; 453 this.value = data.value; 454 } 455 }; 456 var KeyframeTrack = class { 457 constructor(data) { 458 this.topLevelField = data.topLevelField; 459 this.parameterField = data.parameterField; 460 this.index = data.index; 461 this.effectParametrizedField = data.effectParametrizedField; 462 this.keyframeOperation = data.keyframeOperation; 463 this.keyframes = data.keyframes; 464 this.enabled = !!data.enabled; 465 } 466 }; 467 var AnimationPreset = class { 468 constructor(data) { 469 this.nodeId = data.nodeId; 470 this.keyframeTracks = data.keyframeTracks; 471 } 472 }; 473 var PARAMETER_FIELD_ALIAS_MAP = { 474 translateX: ParameterField.MOTION_TRANSLATION_X, 475 translateY: ParameterField.MOTION_TRANSLATION_Y, 476 rotate: ParameterField.MOTION_ROTATION, 477 scaleX: ParameterField.MOTION_SCALE_X, 478 scaleY: ParameterField.MOTION_SCALE_Y, 479 shear: ParameterField.MOTION_SHEAR 480 }; 481 var KEYFRAMEABLE_FIELDS = /* @__PURE__ */ new Set(["translateX", "translateY", "rotate", "scaleX", "scaleY", "shear", "cornerRadius", "strokeWeight", "rectangleTopLeftCornerRadius", "rectangleTopRightCornerRadius", "rectangleBottomLeftCornerRadius", "rectangleBottomRightCornerRadius", "stackSpacing", "stackPaddingLeft", "stackPaddingTop", "stackPaddingRight", "stackPaddingBottom", "width", "height", "borderTopWeight", "borderBottomWeight", "borderLeftWeight", "borderRightWeight", "stackCounterSpacing", "minWidth", "maxWidth", "minHeight", "maxHeight", "opacity", "gridRowGap", "gridColumnGap", "textData", "pathTrimStart", "pathTrimEnd"]); 482 var MODE_TO_OPERATION = { 483 set: KeyframeOperation.SET, 484 SET: KeyframeOperation.SET, 485 offset: KeyframeOperation.OFFSET, 486 OFFSET: KeyframeOperation.OFFSET, 487 scale: KeyframeOperation.SCALE, 488 SCALE: KeyframeOperation.SCALE 489 }; 490 function normalizeEasing(easing) { 491 if (easing === void 0) return void 0; 492 if (easing === "hold") return { interpolationType: InterpolationType.HOLD }; 493 if (typeof easing === "string") { 494 const easingType = EasingType[easing]; 495 if (easingType === void 0) throw new Error('normalizeEasing: unknown easing "' + easing + '"'); 496 return { easingType }; 497 } 498 return easing; 499 } 500 function compileKeyframe({ timelinePosition, value, easing }) { 501 return new Keyframe({ 502 timelinePosition: timelinePosition * 1e6, 503 easing: normalizeEasing(easing), 504 value 505 }); 506 } 507 function tween({ mode, timelinePosition = 0, duration, from, to, easing, enabled = true }) { 508 if (duration < 0) throw new Error("tween: duration must be non-negative"); 509 return { 510 mode, 511 enabled, 512 keyframes: [ 513 { timelinePosition, value: from, easing }, 514 { timelinePosition: timelinePosition + duration, value: to, easing } 515 ] 516 }; 517 } 518 function animate(node, definition) { 519 const nodeId = typeof node === "string" ? node : node.id;
520 const keyframeTracks = []; 521 for (const [key, trackDef] of Object.entries(definition)) { 522 if (!KEYFRAMEABLE_FIELDS.has(key)) { 523 throw new Error('animate: unknown or non-keyframeable property "' + key + '"'); 524 } 525 const parameterField = PARAMETER_FIELD_ALIAS_MAP[key] ?? ParameterField[key]; 526 const operation = MODE_TO_OPERATION[trackDef.mode]; 527 if (operation === void 0) throw new Error('animate: unknown mode "' + trackDef.mode + '"'); 528 const seen = /* @__PURE__ */ new Map(); 529 for (const kf of trackDef.keyframes) seen.set(kf.timelinePosition, kf); 530 const sorted = [...seen.values()].sort((a, b) => a.timelinePosition - b.timelinePosition); 531 keyframeTracks.push(new KeyframeTrack({ 532 parameterField, 533 keyframeOperation: operation, 534 keyframes: sorted.map(compileKeyframe), 535 enabled: trackDef.enabled !== false 536 })); 537 } 538 return new AnimationPreset({ nodeId, keyframeTracks }); 539 } 540 541
541// ../../../../../../../../execroot/_main/bazel-out/k8-fastbuild/bin/share/motion/src/presets/source/corner_radius.ts 542 var CORNER_FIELD_MAP = { 543 all: "cornerRadius", 544 topLeft: "rectangleTopLeftCornerRadius", 545 topRight: "rectangleTopRightCornerRadius", 546 bottomLeft: "rectangleBottomLeftCornerRadius", 547 bottomRight: "rectangleBottomRightCornerRadius" 548 }; 549 var CORNER_KEYS = ["all", "topLeft", "topRight", "bottomLeft", "bottomRight"]; 550 function preset({ 551 type, 552 corner, 553 amount, 554 allStartFrame, 555 allEndFrame, 556 topLeftStartFrame, 557 topLeftEndFrame, 558 topRightStartFrame, 559 topRightEndFrame, 560 bottomLeftStartFrame, 561 bottomLeftEndFrame, 562 bottomRightStartFrame, 563 bottomRightEndFrame, 564 duration, 565 easing, 566 target 567 }) { 568 const selectedCorner = corner || "all"; 569 function getFromTo(cornerKey) { 570 if (type === "custom") { 571 switch (cornerKey) { 572 case "topLeft": 573 return [topLeftStartFrame, topLeftEndFrame]; 574 case "topRight": 575 return [topRightStartFrame, topRightEndFrame]; 576 case "bottomLeft": 577 return [bottomLeftStartFrame, bottomLeftEndFrame]; 578 case "bottomRight": 579 return [bottomRightStartFrame, bottomRightEndFrame]; 580 case "all": 581 default: 582 return [allStartFrame, allEndFrame]; 583 } 584 } 585 if (type === "roundOut") return [amount, 0]; 586 return [0, amount]; 587 } 588 const definition = {}; 589 for (const cornerKey of CORNER_KEYS) { 590 const fieldName = CORNER_FIELD_MAP[cornerKey]; 591 const enabled = cornerKey === selectedCorner; 592 const [from, to] = getFromTo(cornerKey); 593 definition[fieldName] = tween({ 594 mode: "offset", 595 timelinePosition: 0, 596 duration, 597 from, 598 to, 599 easing, 600 enabled 601 }); 602 } 603 return [animate(target, definition)]; 604 } 605 defineProperties(preset, { 606 type: { 607 label: "motion.preset_flyout.type", 608 type: "string", 609 defaultValue: "roundIn", 610 control: "select", 611 options: [ 612 { value: "roundIn", label: "motion.preset_flyout.corner_radius.type.round_in" }, 613 { value: "roundOut", label: "motion.preset_flyout.corner_radius.type.round_out" }, 614 { value: "custom", label: "motion.preset_flyout.type.custom" } 615 ] 616 }, 617 corner: { 618 label: "motion.preset_flyout.corner_radius.corner", 619 type: "string", 620 defaultValue: "all", 621 control: "select", 622 options: [ 623 { value: "all", label: "motion.preset_flyout.corner_radius.corner.all" }, 624 { value: "topLeft", label: "motion.preset_flyout.corner_radius.corner.top_left" }, 625 { value: "topRight", label: "motion.preset_flyout.corner_radius.corner.top_right" }, 626 { value: "bottomLeft", label: "motion.preset_flyout.corner_radius.corner.bottom_left" }, 627 { value: "bottomRight", label: "motion.preset_flyout.corner_radius.corner.bottom_right" } 628 ] 629 }, 630 amount: { 631 label: "motion.preset_flyout.amount", 632 type: "number", 633 defaultValue: 10, 634 control: "input", 635 min: 0, 636 unit: "px" 637 }, 638 // TODO(showDividerAbove-cleanup): the \`showDividerAbove\` flags in this file 639 // are redundant \u2014 section dividers are now applied client-side in the preset 640 // flyout via \`forceShowDividerAboveTransform\` 641 allStartFrame: { 642 label: "motion.preset_flyout.start_frame", 643 type: "number", 644 defaultValue: 10, 645 control: "input", 646 min: 0, 647 unit: "px", 648 showDividerAbove: true, 649 icon: "radius_all" 650 }, 651 allEndFrame: { 652 label: "motion.preset_flyout.end_frame", 653 type: "number", 654 defaultValue: 0, 655 control: "input", 656 min: 0, 657 unit: "px", 658 icon: "radius_all" 659 }, 660 topLeftStartFrame: { 661 label: "motion.preset_flyout.start_frame", 662 type: "number", 663 defaultValue: 0, 664 control: "input", 665 min: 0, 666 unit: "px", 667 showDividerAbove: true, 668 icon: "radius_top_left" 669 }, 670 topLeftEndFrame: { 671 label: "motion.preset_flyout.end_frame", 672 type: "number", 673 defaultValue: 20, 674 control: "input", 675 min: 0, 676 unit: "px", 677 icon: "radius_top_left" 678 }, 679 topRightStartFrame: { 680 label: "motion.preset_flyout.start_frame", 681 type: "number", 682 defaultValue: 0, 683 control: "input", 684 min: 0, 685 unit: "px", 686 showDividerAbove: true, 687 icon: "radius_top_right" 688 }, 689 topRightEndFrame: { 690 label: "motion.preset_flyout.end_frame", 691 type: "number", 692 defaultValue: 20, 693 control: "input", 694 min: 0, 695 unit: "px", 696 icon: "radius_top_right" 697 }, 698 bottomLeftStartFrame: { 699 label: "motion.preset_flyout.start_frame", 700 type: "number", 701 defaultValue: 0, 702 control: "input", 703 min: 0, 704 unit: "px", 705 showDividerAbove: true, 706 icon: "radius_bottom_left" 707 }, 708 bottomLeftEndFrame: { 709 label: "motion.preset_flyout.end_frame", 710 type: "number", 711 defaultValue: 20, 712 control: "input", 713 min: 0, 714 unit: "px", 715 icon: "radius_bottom_left" 716 }, 717 bottomRightStartFrame: { 718 label: "motion.preset_flyout.start_frame", 719 type: "number", 720 defaultValue: 0, 721 control: "input", 722 min: 0, 723 unit: "px", 724 showDividerAbove: true, 725 icon: "radius_bottom_right" 726 }, 727 bottomRightEndFrame: { 728 label: "motion.preset_flyout.end_frame", 729 type: "number", 730 defaultValue: 20, 731 control: "input", 732 min: 0, 733 unit: "px", 734 icon: "radius_bottom_right" 735 }, 736 // Note: 'delay' is kept in sync with a preset's \`timelineOffset\`. 737 delay: { 738 label: "motion.preset_flyout.delay", 739 type: "number", 740 defaultValue: 0, 741 control: "input", 742 unit: "s", 743 showDividerAbove: true, 744 icon: "delay" 745 }, 746 duration: { 747 label: "motion.preset_flyout.duration", 748 type: "number", 749 defaultValue: 0.5, 750 control: "input", 751 min: 0.01, 752 unit: "s", 753 icon: "time" 754 }, 755 easing: { 756 label: "motion.preset_flyout.easing", 757 type: "easing", 758 defaultValue: { easingType: EasingType.OUT_CUBIC } 759 } 760 }); 761 return __toCommonJS(corner_radius_exports); 762})();`});var Hx,Wx,Yx=Qt(()=>
762{Hx=`// Source-of-truth for the FADE first-party animation preset. 763// 764// The build-time preset-bundle codegen (see \`../scripts/generate_preset_bundles.ts\`) 765// reads this file's raw text, esbuilds it into an IIFE with \`figma:motion\` 766// resolved, and emits both strings into \`../generated/fade.generated.ts\`. The 767// generated module is what runtime code consumes \u2014 never import this file 768// directly from production code paths. 769// 770// This file is excluded from the share/motion \`ts_project\` compilation \u2014 it's 771// only an input to the codegen tool, evaluated inside the QuickJS / iframe 772// sandbox at runtime. 773 774import { animate, defineProperties, EasingType, tween } from 'figma:motion' 775 776import type { PresetArgs } from './preset_types' 777 778export default function preset({ timing, duration, easing, node }: PresetArgs) { 779 const [from, to] = timing === 'in' ? [0, 1] : [1, 0] 780 return [ 781 animate(node, { 782 opacity: tween({ 783 mode: 'scale', 784 duration, 785 from, 786 to, 787 easing, 788 }), 789 }), 790 ] 791} 792
793defineProperties(preset, { 794 timing: { 795 label: 'Timing', 796 type: 'string', 797 defaultValue: 'in', 798 control: 'select', 799 options: [ 800 { value: 'in', label: 'Fade In' }, 801 { value: 'out', label: 'Fade Out' }, 802 ], 803 }, 804 duration: { 805 label: 'Duration', 806 type: 'number', 807 defaultValue: 0.5, 808 control: 'input', 809 min: 0.01, 810 unit: 's', 811 }, 812 easing: { 813 label: 'Easing', 814 type: 'easing', 815 defaultValue: { 816 easingType: EasingType.OUT_CUBIC, 817 }, 818 }, 819}) 820`,Wx=`var __presetBundle = (() => { 821 var __defProp = Object.defineProperty; 822 var __getOwnPropDesc = Object.getOwnPropertyDescriptor; 823 var __getOwnPropNames = Object.getOwnPropertyNames; 824 var __hasOwnProp = Object.prototype.hasOwnProperty; 825 var __export = (target, all) => { 826 for (var name in all) 827 __defProp(target, name, { get: all[name], enumerable: true }); 828 }; 829 var __copyProps = (to, from, except, desc) => { 830 if (from && typeof from === "object" || typeof from === "function") { 831 for (let key of __getOwnPropNames(from)) 832 if (!__hasOwnProp.call(to, key) && key !== except) 833 __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable }); 834 } 835 return to; 836 }; 837 var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod); 838 839
839// ../../../../../../../../execroot/_main/bazel-out/k8-fastbuild/bin/share/motion/src/presets/source/fade.ts 840 var fade_exports = {}; 841 __export(fade_exports, { 842 default: () => preset 843 }); 844 845 // figma-motion:figma:motion 846 function defineProperties(component, spec) { 847 Object.assign(component, { 848 [/* @__PURE__ */ Symbol.for("figma.react.props")]: spec 849 }); 850 } 851 var EasingType = { 852 IN_CUBIC: 0, 853 inCubic: 0, 854 OUT_CUBIC: 1, 855 outCubic: 1, 856 INOUT_CUBIC: 2, 857 inOutCubic: 2, 858 LINEAR: 3, 859 linear: 3, 860 IN_BACK_CUBIC: 4, 861 inBackCubic: 4, 862 OUT_BACK_CUBIC: 5, 863 outBackCubic: 5, 864 INOUT_BACK_CUBIC: 6, 865 inOutBackCubic: 6, 866 CUSTOM_CUBIC: 7, 867 customCubic: 7, 868 SPRING: 8, 869 spring: 8, 870 GENTLE_SPRING: 9, 871 gentleSpring: 9, 872 CUSTOM_SPRING: 10, 873 customSpring: 10, 874 SPRING_PRESET_ONE: 11, 875 springPresetOne: 11, 876 SPRING_PRESET_TWO: 12, 877 springPresetTwo: 12, 878 SPRING_PRESET_THREE: 13, 879 springPresetThree: 13, 880 // For backwards compat 881 bezier: 100, 882 BEZIER: 100 883 }; 884 var InterpolationType = { 885 HOLD: 0, 886 hold: 0, 887 BEZIER: 1, 888 bezier: 1 889 }; 890 var KeyframeOperation = { 891 SET: 0, 892 set: 0, 893 SCALE: 1, 894 scale: 1, 895 OFFSET: 2, 896 offset: 2 897 }; 898 var ParameterField = { 899 MISSING: 0, 900 missing: 0, 901 CORNER_RADIUS: 1, 902 cornerRadius: 1, 903 PARAGRAPH_SPACING: 2, 904 paragraphSpacing: 2, 905 PARAGRAPH_INDENT: 3, 906 paragraphIndent: 3, 907 STROKE_WEIGHT: 4, 908 strokeWeight: 4, 909 STACK_SPACING: 5, 910 stackSpacing: 5, 911 STACK_PADDING_LEFT: 6, 912 stackPaddingLeft: 6, 913 STACK_PADDING_TOP: 7, 914 stackPaddingTop: 7, 915 STACK_PADDING_RIGHT: 8, 916 stackPaddingRight: 8, 917 STACK_PADDING_BOTTOM: 9, 918 stackPaddingBottom: 9, 919 VISIBLE: 10, 920 visible: 10, 921 TEXT_DATA: 11, 922 textData: 11, 923 WIDTH: 12, 924 width: 12, 925 HEIGHT: 13, 926 height: 13, 927 RECTANGLE_TOP_LEFT_CORNER_RADIUS: 14, 928 rectangleTopLeftCornerRadius: 14, 929 RECTANGLE_TOP_RIGHT_CORNER_RADIUS: 15, 930 rectangleTopRightCornerRadius: 15, 931 RECTANGLE_BOTTOM_LEFT_CORNER_RADIUS: 16, 932 rectangleBottomLeftCornerRadius: 16, 933 RECTANGLE_BOTTOM_RIGHT_CORNER_RADIUS: 17, 934 rectangleBottomRightCornerRadius: 17, 935 BORDER_TOP_WEIGHT: 18, 936 borderTopWeight: 18, 937 BORDER_BOTTOM_WEIGHT: 19, 938 borderBottomWeight: 19, 939 BORDER_LEFT_WEIGHT: 20, 940 borderLeftWeight: 20, 941 BORDER_RIGHT_WEIGHT: 21, 942 borderRightWeight: 21, 943 VARIANT_PROPERTIES: 22, 944 variantProperties: 22, 945 STACK_COUNTER_SPACING: 23, 946 stackCounterSpacing: 23, 947 MIN_WIDTH: 24, 948 minWidth: 24, 949 MAX_WIDTH: 25, 950 maxWidth: 25, 951 MIN_HEIGHT: 26, 952 minHeight: 26, 953 MAX_HEIGHT: 27, 954 maxHeight: 27, 955 FONT_FAMILY: 28, 956 fontFamily: 28, 957 FONT_STYLE: 29, 958 fontStyle: 29, 959 FONT_VARIATIONS: 30, 960 fontVariations: 30, 961 OPACITY: 31, 962 opacity: 31, 963 FONT_SIZE: 32, 964 fontSize: 32, 965 LETTER_SPACING: 34, 966 letterSpacing: 34, 967 LINE_HEIGHT: 36, 968 lineHeight: 36, 969 OVERRIDDEN_SYMBOL_ID: 37, 970 overriddenSymbolId: 37, 971 CMS_SERIALIZED_RICH_TEXT_DATA: 38, 972 cmsSerializedRichTextData: 38, 973 HYPERLINK: 39, 974 hyperlink: 39, 975 SLOT_CONTENT_ID: 40, 976 slotContentId: 40, 977 GRID_ROW_GAP: 41, 978 gridRowGap: 41, 979 GRID_COLUMN_GAP: 42, 980 gridColumnGap: 42, 981 RELATIVE_X_POSITION: 43, 982 xPosition: 43, 983 RELATIVE_Y_POSITION: 44, 984 relativeYPosition: 44, 985 RELATIVE_ROTATION: 45, 986 relativeRotation: 45, 987 MOTION_TRANSLATION_X: 46, 988 motionTranslationX: 46, 989 MOTION_TRANSLATION_Y: 47, 990 motionTranslationY: 47, 991 MOTION_ROTATION: 48, 992 motionRotation: 48, 993 MOTION_SCALE_X: 49, 994 motionScaleX: 49, 995 MOTION_SCALE_Y: 50, 996 motionScaleY: 50, 997 MOTION_SHEAR: 51, 998 motionShear: 51, 999 SCROLL_OFFSET_X: 52, 1000 scrollOffsetX: 52, 1001 SCROLL_OFFSET_Y: 53, 1002 scrollOffsetY: 53, 1003 PATH_TRIM_START: 54, 1004 pathTrimStart: 54, 1005 PATH_TRIM_END: 55, 1006 pathTrimEnd: 55, 1007 DISSOLVE_PROGRESS: 56, 1008 dissolveProgress: 56 1009 }; 1010 var Keyframe = class { 1011 constructor(data) { 1012 this.timelinePosition = Math.round(data.timelinePosition); 1013 this.easing = data.easing; 1014 this.value = data.value; 1015 } 1016 }; 1017 var KeyframeTrack = class { 1018 constructor(data) { 1019 this.topLevelField = data.topLevelField; 1020 this.parameterField = data.parameterField; 1021 this.index = data.index; 1022 this.effectParametrizedField = data.effectParametrizedField; 1023 this.keyframeOperation = data.keyframeOperation; 1024 this.keyframes = data.keyframes; 1025 this.enabled = !!data.enabled; 1026 } 1027 }; 1028 var AnimationPreset = class { 1029 constructor(data) { 1030 this.nodeId = data.nodeId; 1031 this.keyframeTracks = data.keyframeTracks; 1032 } 1033 }; 1034 var PARAMETER_FIELD_ALIAS_MAP = { 1035 translateX: ParameterField.MOTION_TRANSLATION_X, 1036 translateY: ParameterField.MOTION_TRANSLATION_Y, 1037 rotate: ParameterField.MOTION_ROTATION, 1038 scaleX: ParameterField.MOTION_SCALE_X, 1039 scaleY: ParameterField.MOTION_SCALE_Y, 1040 shear: ParameterField.MOTION_SHEAR 1041 }; 1042 var KEYFRAMEABLE_FIELDS = /* @__PURE__ */ new Set(["translateX", "translateY", "rotate", "scaleX", "scaleY", "shear", "cornerRadius", "strokeWeight", "rectangleTopLeftCornerRadius", "rectangleTopRightCornerRadius", "rectangleBottomLeftCornerRadius", "rectangleBottomRightCornerRadius", "stackSpacing", "stackPaddingLeft", "stackPaddingTop", "stackPaddingRight", "stackPaddingBottom", "width", "height", "borderTopWeight", "borderBottomWeight", "borderLeftWeight", "borderRightWeight", "stackCounterSpacing", "minWidth", "maxWidth", "minHeight", "maxHeight", "opacity", "gridRowGap", "gridColumnGap", "textData", "pathTrimStart", "pathTrimEnd"]); 1043 var MODE_TO_OPERATION = { 1044 set: KeyframeOperation.SET, 1045 SET: KeyframeOperation.SET, 1046 offset: KeyframeOperation.OFFSET, 1047 OFFSET: KeyframeOperation.OFFSET, 1048 scale: KeyframeOperation.SCALE, 1049 SCALE: KeyframeOperation.SCALE 1050 }; 1051 function normalizeEasing(easing) { 1052 if (easing === void 0) return void 0; 1053 if (easing === "hold") return { interpolationType: InterpolationType.HOLD }; 1054 if (typeof easing === "string") { 1055 const easingType = EasingType[easing]; 1056 if (easingType === void 0) throw new Error('normalizeEasing: unknown easing "' + easing + '"'); 1057 return { easingType }; 1058 } 1059 return easing; 1060 } 1061 function compileKeyframe({ timelinePosition, value, easing }) { 1062 return new Keyframe({ 1063 timelinePosition: timelinePosition * 1e6, 1064 easing: normalizeEasing(easing), 1065 value 1066 }); 1067 } 1068 function tween({ mode, timelinePosition = 0, duration, from, to, easing, enabled = true }) { 1069 if (duration < 0) throw new Error("tween: duration must be non-negative"); 1070 return { 1071 mode, 1072 enabled, 1073 keyframes: [ 1074 { timelinePosition, value: from, easing }, 1075 { timelinePosition: timelinePosition + duration, value: to, easing } 1076 ] 1077 }; 1078 } 1079 function animate(node, definition) { 1080 const nodeId = typeof node === "string" ? node : node.id;
1081 const keyframeTracks = []; 1082 for (const [key, trackDef] of Object.entries(definition)) { 1083 if (!KEYFRAMEABLE_FIELDS.has(key)) { 1084 throw new Error('animate: unknown or non-keyframeable property "' + key + '"'); 1085 } 1086 const parameterField = PARAMETER_FIELD_ALIAS_MAP[key] ?? ParameterField[key]; 1087 const operation = MODE_TO_OPERATION[trackDef.mode]; 1088 if (operation === void 0) throw new Error('animate: unknown mode "' + trackDef.mode + '"'); 1089 const seen = /* @__PURE__ */ new Map(); 1090 for (const kf of trackDef.keyframes) seen.set(kf.timelinePosition, kf); 1091 const sorted = [...seen.values()].sort((a, b) => a.timelinePosition - b.timelinePosition); 1092 keyframeTracks.push(new KeyframeTrack({ 1093 parameterField, 1094 keyframeOperation: operation, 1095 keyframes: sorted.map(compileKeyframe), 1096 enabled: trackDef.enabled !== false 1097 })); 1098 } 1099 return new AnimationPreset({ nodeId, keyframeTracks }); 1100 } 1101 1102
1102// ../../../../../../../../execroot/_main/bazel-out/k8-fastbuild/bin/share/motion/src/presets/source/fade.ts 1103 function preset({ timing, duration, easing, node }) { 1104 const [from, to] = timing === "in" ? [0, 1] : [1, 0]; 1105 return [ 1106 animate(node, { 1107 opacity: tween({ 1108 mode: "scale", 1109 duration, 1110 from, 1111 to, 1112 easing 1113 }) 1114 }) 1115 ]; 1116 } 1117 defineProperties(preset, { 1118 timing: { 1119 label: "Timing", 1120 type: "string", 1121 defaultValue: "in", 1122 control: "select", 1123 options: [ 1124 { value: "in", label: "Fade In" }, 1125 { value: "out", label: "Fade Out" } 1126 ] 1127 }, 1128 duration: { 1129 label: "Duration", 1130 type: "number", 1131 defaultValue: 0.5, 1132 control: "input", 1133 min: 0.01, 1134 unit: "s" 1135 }, 1136 easing: { 1137 label: "Easing", 1138 type: "easing", 1139 defaultValue: { 1140 easingType: EasingType.OUT_CUBIC 1141 } 1142 } 1143 }); 1144 return __toCommonJS(fade_exports); 1145})();`});var Kx,zx,Xx=Qt(()=>{Kx=`// Source-of-truth for the MOVE first-party animation preset. 1146// 1147// The build-time preset-bundle codegen (see \`../scripts/generate_preset_bundles.ts\`) 1148// reads this file's raw text, esbuilds it into an IIFE with \`figma:motion\` 1149// resolved, and emits both strings into \`../generated/move.generated.ts\`. The 1150// generated module is what runtime code consumes \u2014 never import this file 1151// directly from production code paths. 1152// 1153// This file is excluded from the share/motion \`ts_project\` compilation \u2014 it's 1154// only an input to the codegen tool, evaluated inside the QuickJS / iframe 1155// sandbox at runtime. 1156 1157import { animate, defineProperties, EasingType, tween } from 'figma:motion' 1158 1159import type { PresetArgs, PresetTrackDefinitions } from './preset_types' 1160 1161export default function preset({ timing, moveX, moveY, duration, fade, easing, node }: PresetArgs) { 1162 const xFrom = timing === 'in' ? moveX : 0 1163 const xTo = timing === 'in' ? 0 : moveX 1164 const yFrom = timing === 'in' ? moveY : 0 1165 const yTo = timing === 'in' ? 0 : moveY 1166 const definition: PresetTrackDefinitions = { 1167 translateX: tween({ 1168 mode: 'offset', 1169 duration, 1170 from: xFrom, 1171 to: xTo, 1172 easing, 1173 }), 1174 translateY: tween({ 1175 mode: 'offset', 1176 duration, 1177 from: yFrom, 1178 to: yTo, 1179 easing, 1180 }), 1181 } 1182 1183 if (fade) { 1184 const opFrom = timing === 'in' ? 0 : 1 1185 const opTo = timing === 'in' ? 1 : 0 1186 definition.opacity = tween({ 1187 mode: 'scale', 1188 duration, 1189 from: opFrom, 1190 to: opTo, 1191 easing, 1192 }) 1193 } 1194 1195 return [animate(node, definition)] 1196} 1197 1198defineProperties(preset, { 1199 timing: { 1200 label: 'Timing', 1201 type: 'string', 1202 defaultValue: 'out', 1203 control: 'select', 1204 options: [ 1205 { value: 'in', label: 'Move In' }, 1206 { value: 'out', label: 'Move Out' }, 1207 ], 1208 }, 1209 moveX: { 1210 label: 'Move X', 1211 type: 'number', 1212 defaultValue: 100, 1213 control: 'input', 1214 }, 1215 moveY: { 1216 label: 'Move Y', 1217 type: 'number', 1218 defaultValue: 0, 1219 control: 'input', 1220 }, 1221 duration: { 1222 label: 'Duration', 1223 type: 'number', 1224 defaultValue: 0.5, 1225 control: 'input', 1226 min: 0.01, 1227 unit: 's', 1228 }, 1229 fade: { 1230 label: 'Fade', 1231 type: 'boolean', 1232 defaultValue: false, 1233 }, 1234 easing: { 1235 label: 'Easing', 1236 type: 'easing', 1237 defaultValue: { 1238 easingType: EasingType.OUT_CUBIC, 1239 }, 1240 }, 1241}) 1242`,zx=`var __presetBundle = (() => { 1243 var __defProp = Object.defineProperty; 1244 var __getOwnPropDesc = Object.getOwnPropertyDescriptor; 1245 var __getOwnPropNames = Object.getOwnPropertyNames; 1246 var __hasOwnProp = Object.prototype.hasOwnProperty; 1247 var __export = (target, all) => { 1248 for (var name in all) 1249 __defProp(target, name, { get: all[name], enumerable: true }); 1250 }; 1251 var __copyProps = (to, from, except, desc) => { 1252 if (from && typeof from === "object" || typeof from === "function") { 1253 for (let key of __getOwnPropNames(from)) 1254 if (!__hasOwnProp.call(to, key) && key !== except) 1255 __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable }); 1256 } 1257 return to; 1258 }; 1259 var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod); 1260 1261
1261// ../../../../../../../../execroot/_main/bazel-out/k8-fastbuild/bin/share/motion/src/presets/source/move.ts 1262 var move_exports = {}; 1263 __export(move_exports, { 1264 default: () => preset 1265 }); 1266 1267 // figma-motion:figma:motion 1268 function defineProperties(component, spec) { 1269 Object.assign(component, { 1270 [/* @__PURE__ */ Symbol.for("figma.react.props")]: spec 1271 }); 1272 } 1273 var EasingType = { 1274 IN_CUBIC: 0, 1275 inCubic: 0, 1276 OUT_CUBIC: 1, 1277 outCubic: 1, 1278 INOUT_CUBIC: 2, 1279 inOutCubic: 2, 1280 LINEAR: 3, 1281 linear: 3, 1282 IN_BACK_CUBIC: 4, 1283 inBackCubic: 4, 1284 OUT_BACK_CUBIC: 5, 1285 outBackCubic: 5, 1286 INOUT_BACK_CUBIC: 6, 1287 inOutBackCubic: 6, 1288 CUSTOM_CUBIC: 7, 1289 customCubic: 7, 1290 SPRING: 8, 1291 spring: 8, 1292 GENTLE_SPRING: 9, 1293 gentleSpring: 9, 1294 CUSTOM_SPRING: 10, 1295 customSpring: 10, 1296 SPRING_PRESET_ONE: 11, 1297 springPresetOne: 11, 1298 SPRING_PRESET_TWO: 12, 1299 springPresetTwo: 12, 1300 SPRING_PRESET_THREE: 13, 1301 springPresetThree: 13, 1302 // For backwards compat 1303 bezier: 100, 1304 BEZIER: 100 1305 }; 1306 var InterpolationType = { 1307 HOLD: 0, 1308 hold: 0, 1309 BEZIER: 1, 1310 bezier: 1 1311 }; 1312 var KeyframeOperation = { 1313 SET: 0, 1314 set: 0, 1315 SCALE: 1, 1316 scale: 1, 1317 OFFSET: 2, 1318 offset: 2 1319 }; 1320 var ParameterField = { 1321 MISSING: 0, 1322 missing: 0, 1323 CORNER_RADIUS: 1, 1324 cornerRadius: 1, 1325 PARAGRAPH_SPACING: 2, 1326 paragraphSpacing: 2, 1327 PARAGRAPH_INDENT: 3, 1328 paragraphIndent: 3, 1329 STROKE_WEIGHT: 4, 1330 strokeWeight: 4, 1331 STACK_SPACING: 5, 1332 stackSpacing: 5, 1333 STACK_PADDING_LEFT: 6, 1334 stackPaddingLeft: 6, 1335 STACK_PADDING_TOP: 7, 1336 stackPaddingTop: 7, 1337 STACK_PADDING_RIGHT: 8, 1338 stackPaddingRight: 8, 1339 STACK_PADDING_BOTTOM: 9, 1340 stackPaddingBottom: 9, 1341 VISIBLE: 10, 1342 visible: 10, 1343 TEXT_DATA: 11, 1344 textData: 11, 1345 WIDTH: 12, 1346 width: 12, 1347 HEIGHT: 13, 1348 height: 13, 1349 RECTANGLE_TOP_LEFT_CORNER_RADIUS: 14, 1350 rectangleTopLeftCornerRadius: 14, 1351 RECTANGLE_TOP_RIGHT_CORNER_RADIUS: 15, 1352 rectangleTopRightCornerRadius: 15, 1353 RECTANGLE_BOTTOM_LEFT_CORNER_RADIUS: 16, 1354 rectangleBottomLeftCornerRadius: 16, 1355 RECTANGLE_BOTTOM_RIGHT_CORNER_RADIUS: 17, 1356 rectangleBottomRightCornerRadius: 17, 1357 BORDER_TOP_WEIGHT: 18, 1358 borderTopWeight: 18, 1359 BORDER_BOTTOM_WEIGHT: 19, 1360 borderBottomWeight: 19, 1361 BORDER_LEFT_WEIGHT: 20, 1362 borderLeftWeight: 20, 1363 BORDER_RIGHT_WEIGHT: 21, 1364 borderRightWeight: 21, 1365 VARIANT_PROPERTIES: 22, 1366 variantProperties: 22, 1367 STACK_COUNTER_SPACING: 23, 1368 stackCounterSpacing: 23, 1369 MIN_WIDTH: 24, 1370 minWidth: 24, 1371 MAX_WIDTH: 25, 1372 maxWidth: 25, 1373 MIN_HEIGHT: 26, 1374 minHeight: 26, 1375 MAX_HEIGHT: 27, 1376 maxHeight: 27, 1377 FONT_FAMILY: 28, 1378 fontFamily: 28, 1379 FONT_STYLE: 29, 1380 fontStyle: 29, 1381 FONT_VARIATIONS: 30, 1382 fontVariations: 30, 1383 OPACITY: 31, 1384 opacity: 31, 1385 FONT_SIZE: 32, 1386 fontSize: 32, 1387 LETTER_SPACING: 34, 1388 letterSpacing: 34, 1389 LINE_HEIGHT: 36, 1390 lineHeight: 36, 1391 OVERRIDDEN_SYMBOL_ID: 37, 1392 overriddenSymbolId: 37, 1393 CMS_SERIALIZED_RICH_TEXT_DATA: 38, 1394 cmsSerializedRichTextData: 38, 1395 HYPERLINK: 39, 1396 hyperlink: 39, 1397 SLOT_CONTENT_ID: 40, 1398 slotContentId: 40, 1399 GRID_ROW_GAP: 41, 1400 gridRowGap: 41, 1401 GRID_COLUMN_GAP: 42, 1402 gridColumnGap: 42, 1403 RELATIVE_X_POSITION: 43, 1404 xPosition: 43, 1405 RELATIVE_Y_POSITION: 44, 1406 relativeYPosition: 44, 1407 RELATIVE_ROTATION: 45, 1408 relativeRotation: 45, 1409 MOTION_TRANSLATION_X: 46, 1410 motionTranslationX: 46, 1411 MOTION_TRANSLATION_Y: 47, 1412 motionTranslationY: 47, 1413 MOTION_ROTATION: 48, 1414 motionRotation: 48, 1415 MOTION_SCALE_X: 49, 1416 motionScaleX: 49, 1417 MOTION_SCALE_Y: 50, 1418 motionScaleY: 50, 1419 MOTION_SHEAR: 51, 1420 motionShear: 51, 1421 SCROLL_OFFSET_X: 52, 1422 scrollOffsetX: 52, 1423 SCROLL_OFFSET_Y: 53, 1424 scrollOffsetY: 53, 1425 PATH_TRIM_START: 54, 1426 pathTrimStart: 54, 1427 PATH_TRIM_END: 55, 1428 pathTrimEnd: 55, 1429 DISSOLVE_PROGRESS: 56, 1430 dissolveProgress: 56 1431 }; 1432 var Keyframe = class { 1433 constructor(data) { 1434 this.timelinePosition = Math.round(data.timelinePosition); 1435 this.easing = data.easing; 1436 this.value = data.value; 1437 } 1438 }; 1439 var KeyframeTrack = class { 1440 constructor(data) { 1441 this.topLevelField = data.topLevelField; 1442 this.parameterField = data.parameterField; 1443 this.index = data.index; 1444 this.effectParametrizedField = data.effectParametrizedField; 1445 this.keyframeOperation = data.keyframeOperation; 1446 this.keyframes = data.keyframes; 1447 this.enabled = !!data.enabled; 1448 } 1449 }; 1450 var AnimationPreset = class { 1451 constructor(data) { 1452 this.nodeId = data.nodeId; 1453 this.keyframeTracks = data.keyframeTracks; 1454 } 1455 }; 1456 var PARAMETER_FIELD_ALIAS_MAP = { 1457 translateX: ParameterField.MOTION_TRANSLATION_X, 1458 translateY: ParameterField.MOTION_TRANSLATION_Y, 1459 rotate: ParameterField.MOTION_ROTATION, 1460 scaleX: ParameterField.MOTION_SCALE_X, 1461 scaleY: ParameterField.MOTION_SCALE_Y, 1462 shear: ParameterField.MOTION_SHEAR 1463 }; 1464 var KEYFRAMEABLE_FIELDS = /* @__PURE__ */ new Set(["translateX", "translateY", "rotate", "scaleX", "scaleY", "shear", "cornerRadius", "strokeWeight", "rectangleTopLeftCornerRadius", "rectangleTopRightCornerRadius", "rectangleBottomLeftCornerRadius", "rectangleBottomRightCornerRadius", "stackSpacing", "stackPaddingLeft", "stackPaddingTop", "stackPaddingRight", "stackPaddingBottom", "width", "height", "borderTopWeight", "borderBottomWeight", "borderLeftWeight", "borderRightWeight", "stackCounterSpacing", "minWidth", "maxWidth", "minHeight", "maxHeight", "opacity", "gridRowGap", "gridColumnGap", "textData", "pathTrimStart", "pathTrimEnd"]); 1465 var MODE_TO_OPERATION = { 1466 set: KeyframeOperation.SET, 1467 SET: KeyframeOperation.SET, 1468 offset: KeyframeOperation.OFFSET, 1469 OFFSET: KeyframeOperation.OFFSET, 1470 scale: KeyframeOperation.SCALE, 1471 SCALE: KeyframeOperation.SCALE 1472 }; 1473 function normalizeEasing(easing) { 1474 if (easing === void 0) return void 0; 1475 if (easing === "hold") return { interpolationType: InterpolationType.HOLD }; 1476 if (typeof easing === "string") { 1477 const easingType = EasingType[easing]; 1478 if (easingType === void 0) throw new Error('normalizeEasing: unknown easing "' + easing + '"'); 1479 return { easingType }; 1480 } 1481 return easing; 1482 } 1483 function compileKeyframe({ timelinePosition, value, easing }) { 1484 return new Keyframe({ 1485 timelinePosition: timelinePosition * 1e6, 1486 easing: normalizeEasing(easing), 1487 value 1488 }); 1489 } 1490 function tween({ mode, timelinePosition = 0, duration, from, to, easing, enabled = true }) { 1491 if (duration < 0) throw new Error("tween: duration must be non-negative"); 1492 return { 1493 mode, 1494 enabled, 1495 keyframes: [ 1496 { timelinePosition, value: from, easing }, 1497 { timelinePosition: timelinePosition + duration, value: to, easing } 1498 ] 1499 }; 1500 } 1501 function animate(node, definition) { 1502 const nodeId = typeof node === "string" ? node : node.id;
1503 const keyframeTracks = []; 1504 for (const [key, trackDef] of Object.entries(definition)) { 1505 if (!KEYFRAMEABLE_FIELDS.has(key)) { 1506 throw new Error('animate: unknown or non-keyframeable property "' + key + '"'); 1507 } 1508 const parameterField = PARAMETER_FIELD_ALIAS_MAP[key] ?? ParameterField[key]; 1509 const operation = MODE_TO_OPERATION[trackDef.mode]; 1510 if (operation === void 0) throw new Error('animate: unknown mode "' + trackDef.mode + '"'); 1511 const seen = /* @__PURE__ */ new Map(); 1512 for (const kf of trackDef.keyframes) seen.set(kf.timelinePosition, kf); 1513 const sorted = [...seen.values()].sort((a, b) => a.timelinePosition - b.timelinePosition); 1514 keyframeTracks.push(new KeyframeTrack({ 1515 parameterField, 1516 keyframeOperation: operation, 1517 keyframes: sorted.map(compileKeyframe), 1518 enabled: trackDef.enabled !== false 1519 })); 1520 } 1521 return new AnimationPreset({ nodeId, keyframeTracks }); 1522 } 1523 1524
1524// ../../../../../../../../execroot/_main/bazel-out/k8-fastbuild/bin/share/motion/src/presets/source/move.ts 1525 function preset({ timing, moveX, moveY, duration, fade, easing, node }) { 1526 const xFrom = timing === "in" ? moveX : 0; 1527 const xTo = timing === "in" ? 0 : moveX; 1528 const yFrom = timing === "in" ? moveY : 0; 1529 const yTo = timing === "in" ? 0 : moveY; 1530 const definition = { 1531 translateX: tween({ 1532 mode: "offset", 1533 duration, 1534 from: xFrom, 1535 to: xTo, 1536 easing 1537 }), 1538 translateY: tween({ 1539 mode: "offset", 1540 duration, 1541 from: yFrom, 1542 to: yTo, 1543 easing 1544 }) 1545 }; 1546 if (fade) { 1547 const opFrom = timing === "in" ? 0 : 1; 1548 const opTo = timing === "in" ? 1 : 0; 1549 definition.opacity = tween({ 1550 mode: "scale", 1551 duration, 1552 from: opFrom, 1553 to: opTo, 1554 easing 1555 }); 1556 } 1557 return [animate(node, definition)]; 1558 } 1559 defineProperties(preset, { 1560 timing: { 1561 label: "Timing", 1562 type: "string", 1563 defaultValue: "out", 1564 control: "select", 1565 options: [ 1566 { value: "in", label: "Move In" }, 1567 { value: "out", label: "Move Out" } 1568 ] 1569 }, 1570 moveX: { 1571 label: "Move X", 1572 type: "number", 1573 defaultValue: 100, 1574 control: "input" 1575 }, 1576 moveY: { 1577 label: "Move Y", 1578 type: "number", 1579 defaultValue: 0, 1580 control: "input" 1581 }, 1582 duration: { 1583 label: "Duration", 1584 type: "number", 1585 defaultValue: 0.5, 1586 control: "input", 1587 min: 0.01, 1588 unit: "s" 1589 }, 1590 fade: { 1591 label: "Fade", 1592 type: "boolean", 1593 defaultValue: false 1594 }, 1595 easing: { 1596 label: "Easing", 1597 type: "easing", 1598 defaultValue: { 1599 easingType: EasingType.OUT_CUBIC 1600 } 1601 } 1602 }); 1603 return __toCommonJS(move_exports); 1604})();`});var jx,$x,Zx=Qt(()=>{jx=`// Source-of-truth for the NEW first-party animation preset. 1605// 1606// The build-time preset-bundle codegen (see \`../scripts/generate_preset_bundles.ts\`) 1607// reads this file's raw text, esbuilds it into an IIFE with \`figma:motion\` 1608// resolved, and emits both strings into \`../generated/new.generated.ts\`. The 1609// generated module is what runtime code consumes \u2014 never import this file 1610// directly from production code paths. 1611// 1612// This file is excluded from the share/motion \`ts_project\` compilation \u2014 it's 1613// only an input to the codegen tool, evaluated inside the QuickJS / iframe 1614// sandbox at runtime. 1615 1616import { animate, defineProperties, EasingType, tween } from 'figma:motion' 1617 1618import type { PresetArgs } from './preset_types' 1619 1620export default function preset({ duration, easing, node }: PresetArgs) { 1621 return [ 1622 animate(node, { 1623 opacity: tween({ 1624 mode: 'scale', 1625 duration, 1626 from: 0, 1627 to: 1, 1628 easing, 1629 }), 1630 }), 1631 ] 1632} 1633
1634defineProperties(preset, { 1635 duration: { 1636 label: 'Duration', 1637 type: 'number', 1638 defaultValue: 0.5, 1639 control: 'input', 1640 min: 0.01, 1641 unit: 's', 1642 }, 1643 easing: { 1644 label: 'Easing', 1645 type: 'easing', 1646 defaultValue: { 1647 easingType: EasingType.OUT_CUBIC, 1648 }, 1649 }, 1650}) 1651`,$x=`var __presetBundle = (() => { 1652 var __defProp = Object.defineProperty; 1653 var __getOwnPropDesc = Object.getOwnPropertyDescriptor; 1654 var __getOwnPropNames = Object.getOwnPropertyNames; 1655 var __hasOwnProp = Object.prototype.hasOwnProperty; 1656 var __export = (target, all) => { 1657 for (var name in all) 1658 __defProp(target, name, { get: all[name], enumerable: true }); 1659 }; 1660 var __copyProps = (to, from, except, desc) => { 1661 if (from && typeof from === "object" || typeof from === "function") { 1662 for (let key of __getOwnPropNames(from)) 1663 if (!__hasOwnProp.call(to, key) && key !== except) 1664 __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable }); 1665 } 1666 return to; 1667 }; 1668 var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod); 1669 1670
1670// ../../../../../../../../execroot/_main/bazel-out/k8-fastbuild/bin/share/motion/src/presets/source/new.ts 1671 var new_exports = {}; 1672 __export(new_exports, { 1673 default: () => preset 1674 }); 1675 1676 // figma-motion:figma:motion 1677 function defineProperties(component, spec) { 1678 Object.assign(component, { 1679 [/* @__PURE__ */ Symbol.for("figma.react.props")]: spec 1680 }); 1681 } 1682 var EasingType = { 1683 IN_CUBIC: 0, 1684 inCubic: 0, 1685 OUT_CUBIC: 1, 1686 outCubic: 1, 1687 INOUT_CUBIC: 2, 1688 inOutCubic: 2, 1689 LINEAR: 3, 1690 linear: 3, 1691 IN_BACK_CUBIC: 4, 1692 inBackCubic: 4, 1693 OUT_BACK_CUBIC: 5, 1694 outBackCubic: 5, 1695 INOUT_BACK_CUBIC: 6, 1696 inOutBackCubic: 6, 1697 CUSTOM_CUBIC: 7, 1698 customCubic: 7, 1699 SPRING: 8, 1700 spring: 8, 1701 GENTLE_SPRING: 9, 1702 gentleSpring: 9, 1703 CUSTOM_SPRING: 10, 1704 customSpring: 10, 1705 SPRING_PRESET_ONE: 11, 1706 springPresetOne: 11, 1707 SPRING_PRESET_TWO: 12, 1708 springPresetTwo: 12, 1709 SPRING_PRESET_THREE: 13, 1710 springPresetThree: 13, 1711 // For backwards compat 1712 bezier: 100, 1713 BEZIER: 100 1714 }; 1715 var InterpolationType = { 1716 HOLD: 0, 1717 hold: 0, 1718 BEZIER: 1, 1719 bezier: 1 1720 }; 1721 var KeyframeOperation = { 1722 SET: 0, 1723 set: 0, 1724 SCALE: 1, 1725 scale: 1, 1726 OFFSET: 2, 1727 offset: 2 1728 }; 1729 var ParameterField = { 1730 MISSING: 0, 1731 missing: 0, 1732 CORNER_RADIUS: 1, 1733 cornerRadius: 1, 1734 PARAGRAPH_SPACING: 2, 1735 paragraphSpacing: 2, 1736 PARAGRAPH_INDENT: 3, 1737 paragraphIndent: 3, 1738 STROKE_WEIGHT: 4, 1739 strokeWeight: 4, 1740 STACK_SPACING: 5, 1741 stackSpacing: 5, 1742 STACK_PADDING_LEFT: 6, 1743 stackPaddingLeft: 6, 1744 STACK_PADDING_TOP: 7, 1745 stackPaddingTop: 7, 1746 STACK_PADDING_RIGHT: 8, 1747 stackPaddingRight: 8, 1748 STACK_PADDING_BOTTOM: 9, 1749 stackPaddingBottom: 9, 1750 VISIBLE: 10, 1751 visible: 10, 1752 TEXT_DATA: 11, 1753 textData: 11, 1754 WIDTH: 12, 1755 width: 12, 1756 HEIGHT: 13, 1757 height: 13, 1758 RECTANGLE_TOP_LEFT_CORNER_RADIUS: 14, 1759 rectangleTopLeftCornerRadius: 14, 1760 RECTANGLE_TOP_RIGHT_CORNER_RADIUS: 15, 1761 rectangleTopRightCornerRadius: 15, 1762 RECTANGLE_BOTTOM_LEFT_CORNER_RADIUS: 16, 1763 rectangleBottomLeftCornerRadius: 16, 1764 RECTANGLE_BOTTOM_RIGHT_CORNER_RADIUS: 17, 1765 rectangleBottomRightCornerRadius: 17, 1766 BORDER_TOP_WEIGHT: 18, 1767 borderTopWeight: 18, 1768 BORDER_BOTTOM_WEIGHT: 19, 1769 borderBottomWeight: 19, 1770 BORDER_LEFT_WEIGHT: 20, 1771 borderLeftWeight: 20, 1772 BORDER_RIGHT_WEIGHT: 21, 1773 borderRightWeight: 21, 1774 VARIANT_PROPERTIES: 22, 1775 variantProperties: 22, 1776 STACK_COUNTER_SPACING: 23, 1777 stackCounterSpacing: 23, 1778 MIN_WIDTH: 24, 1779 minWidth: 24, 1780 MAX_WIDTH: 25, 1781 maxWidth: 25, 1782 MIN_HEIGHT: 26, 1783 minHeight: 26, 1784 MAX_HEIGHT: 27, 1785 maxHeight: 27, 1786 FONT_FAMILY: 28, 1787 fontFamily: 28, 1788 FONT_STYLE: 29, 1789 fontStyle: 29, 1790 FONT_VARIATIONS: 30, 1791 fontVariations: 30, 1792 OPACITY: 31, 1793 opacity: 31, 1794 FONT_SIZE: 32, 1795 fontSize: 32, 1796 LETTER_SPACING: 34, 1797 letterSpacing: 34, 1798 LINE_HEIGHT: 36, 1799 lineHeight: 36, 1800 OVERRIDDEN_SYMBOL_ID: 37, 1801 overriddenSymbolId: 37, 1802 CMS_SERIALIZED_RICH_TEXT_DATA: 38, 1803 cmsSerializedRichTextData: 38, 1804 HYPERLINK: 39, 1805 hyperlink: 39, 1806 SLOT_CONTENT_ID: 40, 1807 slotContentId: 40, 1808 GRID_ROW_GAP: 41, 1809 gridRowGap: 41, 1810 GRID_COLUMN_GAP: 42, 1811 gridColumnGap: 42, 1812 RELATIVE_X_POSITION: 43, 1813 xPosition: 43, 1814 RELATIVE_Y_POSITION: 44, 1815 relativeYPosition: 44, 1816 RELATIVE_ROTATION: 45, 1817 relativeRotation: 45, 1818 MOTION_TRANSLATION_X: 46, 1819 motionTranslationX: 46, 1820 MOTION_TRANSLATION_Y: 47, 1821 motionTranslationY: 47, 1822 MOTION_ROTATION: 48, 1823 motionRotation: 48, 1824 MOTION_SCALE_X: 49, 1825 motionScaleX: 49, 1826 MOTION_SCALE_Y: 50, 1827 motionScaleY: 50, 1828 MOTION_SHEAR: 51, 1829 motionShear: 51, 1830 SCROLL_OFFSET_X: 52, 1831 scrollOffsetX: 52, 1832 SCROLL_OFFSET_Y: 53, 1833 scrollOffsetY: 53, 1834 PATH_TRIM_START: 54, 1835 pathTrimStart: 54, 1836 PATH_TRIM_END: 55, 1837 pathTrimEnd: 55, 1838 DISSOLVE_PROGRESS: 56, 1839 dissolveProgress: 56 1840 }; 1841 var Keyframe = class { 1842 constructor(data) { 1843 this.timelinePosition = Math.round(data.timelinePosition); 1844 this.easing = data.easing; 1845 this.value = data.value; 1846 } 1847 }; 1848 var KeyframeTrack = class { 1849 constructor(data) { 1850 this.topLevelField = data.topLevelField; 1851 this.parameterField = data.parameterField; 1852 this.index = data.index; 1853 this.effectParametrizedField = data.effectParametrizedField; 1854 this.keyframeOperation = data.keyframeOperation; 1855 this.keyframes = data.keyframes; 1856 this.enabled = !!data.enabled; 1857 } 1858 }; 1859 var AnimationPreset = class { 1860 constructor(data) { 1861 this.nodeId = data.nodeId; 1862 this.keyframeTracks = data.keyframeTracks; 1863 } 1864 }; 1865 var PARAMETER_FIELD_ALIAS_MAP = { 1866 translateX: ParameterField.MOTION_TRANSLATION_X, 1867 translateY: ParameterField.MOTION_TRANSLATION_Y, 1868 rotate: ParameterField.MOTION_ROTATION, 1869 scaleX: ParameterField.MOTION_SCALE_X, 1870 scaleY: ParameterField.MOTION_SCALE_Y, 1871 shear: ParameterField.MOTION_SHEAR 1872 }; 1873 var KEYFRAMEABLE_FIELDS = /* @__PURE__ */ new Set(["translateX", "translateY", "rotate", "scaleX", "scaleY", "shear", "cornerRadius", "strokeWeight", "rectangleTopLeftCornerRadius", "rectangleTopRightCornerRadius", "rectangleBottomLeftCornerRadius", "rectangleBottomRightCornerRadius", "stackSpacing", "stackPaddingLeft", "stackPaddingTop", "stackPaddingRight", "stackPaddingBottom", "width", "height", "borderTopWeight", "borderBottomWeight", "borderLeftWeight", "borderRightWeight", "stackCounterSpacing", "minWidth", "maxWidth", "minHeight", "maxHeight", "opacity", "gridRowGap", "gridColumnGap", "textData", "pathTrimStart", "pathTrimEnd"]); 1874 var MODE_TO_OPERATION = { 1875 set: KeyframeOperation.SET, 1876 SET: KeyframeOperation.SET, 1877 offset: KeyframeOperation.OFFSET, 1878 OFFSET: KeyframeOperation.OFFSET, 1879 scale: KeyframeOperation.SCALE, 1880 SCALE: KeyframeOperation.SCALE 1881 }; 1882 function normalizeEasing(easing) { 1883 if (easing === void 0) return void 0; 1884 if (easing === "hold") return { interpolationType: InterpolationType.HOLD }; 1885 if (typeof easing === "string") { 1886 const easingType = EasingType[easing]; 1887 if (easingType === void 0) throw new Error('normalizeEasing: unknown easing "' + easing + '"'); 1888 return { easingType }; 1889 } 1890 return easing; 1891 } 1892 function compileKeyframe({ timelinePosition, value, easing }) { 1893 return new Keyframe({ 1894 timelinePosition: timelinePosition * 1e6, 1895 easing: normalizeEasing(easing), 1896 value 1897 }); 1898 } 1899 function tween({ mode, timelinePosition = 0, duration, from, to, easing, enabled = true }) { 1900 if (duration < 0) throw new Error("tween: duration must be non-negative"); 1901 return { 1902 mode, 1903 enabled, 1904 keyframes: [ 1905 { timelinePosition, value: from, easing }, 1906 { timelinePosition: timelinePosition + duration, value: to, easing } 1907 ] 1908 }; 1909 } 1910 function animate(node, definition) { 1911 const nodeId = typeof node === "string" ? node : node.id;
1912 const keyframeTracks = []; 1913 for (const [key, trackDef] of Object.entries(definition)) { 1914 if (!KEYFRAMEABLE_FIELDS.has(key)) { 1915 throw new Error('animate: unknown or non-keyframeable property "' + key + '"'); 1916 } 1917 const parameterField = PARAMETER_FIELD_ALIAS_MAP[key] ?? ParameterField[key]; 1918 const operation = MODE_TO_OPERATION[trackDef.mode]; 1919 if (operation === void 0) throw new Error('animate: unknown mode "' + trackDef.mode + '"'); 1920 const seen = /* @__PURE__ */ new Map(); 1921 for (const kf of trackDef.keyframes) seen.set(kf.timelinePosition, kf); 1922 const sorted = [...seen.values()].sort((a, b) => a.timelinePosition - b.timelinePosition); 1923 keyframeTracks.push(new KeyframeTrack({ 1924 parameterField, 1925 keyframeOperation: operation, 1926 keyframes: sorted.map(compileKeyframe), 1927 enabled: trackDef.enabled !== false 1928 })); 1929 } 1930 return new AnimationPreset({ nodeId, keyframeTracks }); 1931 } 1932 1933
1933// ../../../../../../../../execroot/_main/bazel-out/k8-fastbuild/bin/share/motion/src/presets/source/new.ts 1934 function preset({ duration, easing, node }) { 1935 return [ 1936 animate(node, { 1937 opacity: tween({ 1938 mode: "scale", 1939 duration, 1940 from: 0, 1941 to: 1, 1942 easing 1943 }) 1944 }) 1945 ]; 1946 } 1947 defineProperties(preset, { 1948 duration: { 1949 label: "Duration", 1950 type: "number", 1951 defaultValue: 0.5, 1952 control: "input", 1953 min: 0.01, 1954 unit: "s" 1955 }, 1956 easing: { 1957 label: "Easing", 1958 type: "easing", 1959 defaultValue: { 1960 easingType: EasingType.OUT_CUBIC 1961 } 1962 } 1963 }); 1964 return __toCommonJS(new_exports); 1965})();`});var Jx,qx,Qx=Qt(()=>{Jx=`// Source-of-truth for the OPACITY first-party animation preset. 1966// 1967// The build-time preset-bundle codegen (see \`../scripts/generate_preset_bundles.ts\`) 1968// reads this file's raw text, esbuilds it into an IIFE with \`figma:motion\` 1969// resolved, and emits both strings into \`../generated/opacity.generated.ts\`. 1970// The generated module is what runtime code consumes \u2014 never import this file 1971// directly from production code paths. 1972// 1973// This file is excluded from the share/motion \`ts_project\` compilation \u2014 it's 1974// only an input to the codegen tool, evaluated inside the QuickJS / iframe 1975// sandbox at runtime. 1976 1977import { animate, defineProperties, tween } from 'figma:motion' 1978 1979import type { PresetArgs, PresetTrackDefinitions } from './preset_types' 1980 1981export default function preset({ 1982 type, 1983 amount, 1984 startFrame, 1985 endFrame, 1986 duration, 1987 easing, 1988 node, 1989}: PresetArgs) { 1990 const safeAmount = typeof amount === 'number' ? amount : 0 1991 const safeStartFrame = typeof startFrame === 'number' ? startFrame : 0 1992 const safeEndFrame = typeof endFrame === 'number' ? endFrame : 100 1993 const definition: PresetTrackDefinitions = {} 1994 let opacityFrom: number 1995 let opacityTo: number 1996 1997 switch (type) { 1998 case 'fadeOut': 1999 opacityFrom = 1 2000 opacityTo = safeAmount / 100 2001 break 2002 case 'custom': 2003 opacityFrom = safeStartFrame / 100 2004 opacityTo = safeEndFrame / 100 2005 break 2006 case 'fadeIn': 2007 default: 2008 opacityFrom = safeAmount / 100 2009 opacityTo = 1 2010 break 2011 } 2012 2013 // The runtime adds \`timelineOffset\` back in when placing keyframes on the parent timeline (\`keyframe_conversion.ts\`). 2014 // Do NOT add \`delay\` to \`timelinePosition\` below \u2014 that would double-count. 2015 definition.opacity = tween({ 2016 mode: 'scale', 2017 timelinePosition: 0, 2018 duration, 2019 from: opacityFrom, 2020 to: opacityTo, 2021 easing, 2022 }) 2023 2024 return [animate(node, definition)] 2025} 2026 2027defineProperties(preset, { 2028 type: { 2029 label: 'motion.preset_flyout.type', 2030 type: 'string', 2031 defaultValue: 'fadeIn', 2032 control: 'select', 2033 options: [ 2034 { value: 'fadeIn', label: 'motion.preset_flyout.opacity.type.fade_in' }, 2035 { value: 'fadeOut', label: 'motion.preset_flyout.opacity.type.fade_out' }, 2036 { value: 'custom', label: 'motion.preset_flyout.type.custom' }, 2037 ], 2038 }, 2039 amount: { 2040 label: 'motion.preset_flyout.amount', 2041 type: 'number', 2042 control: 'input', 2043 defaultValue: 0, 2044 unit: '%', 2045 icon: 'opacity', 2046 }, 2047 // TODO(showDividerAbove-cleanup): the \`showDividerAbove\` flags in this file 2048 // are redundant \u2014 section dividers are now applied client-side in the preset 2049 // flyout via \`forceShowDividerAboveTransform\` 2050 startFrame: { 2051 label: 'motion.preset_flyout.start', 2052 type: 'number', 2053 control: 'input', 2054 defaultValue: 0, 2055 unit: '%', 2056 showDividerAbove: true, 2057 icon: 'opacity', 2058 }, 2059 endFrame: { 2060 label: 'motion.preset_flyout.end', 2061 type: 'number', 2062 control: 'input', 2063 defaultValue: 100, 2064 unit: '%', 2065 icon: 'opacity', 2066 }, 2067 // Note: 'delay' is kept in sync with a preset's \`timelineOffset\` 2068 delay: { 2069 label: 'motion.preset_flyout.delay', 2070 type: 'number', 2071 control: 'input', 2072 defaultValue: 0, 2073 unit: 's', 2074 showDividerAbove: true, 2075 icon: 'delay', 2076 }, 2077 duration: { 2078 label: 'motion.preset_flyout.duration', 2079 type: 'number', 2080 control: 'input', 2081 defaultValue: 0.5, 2082 unit: 's', 2083 icon: 'time', 2084 }, 2085 easing: { 2086 label: 'motion.preset_flyout.easing', 2087 type: 'easing', 2088 defaultValue: 'outCubic', 2089 }, 2090}) 2091`,qx=`var __presetBundle = (() => { 2092 var __defProp = Object.defineProperty; 2093 var __getOwnPropDesc = Object.getOwnPropertyDescriptor; 2094 var __getOwnPropNames = Object.getOwnPropertyNames; 2095 var __hasOwnProp = Object.prototype.hasOwnProperty; 2096 var __export = (target, all) => { 2097 for (var name in all) 2098 __defProp(target, name, { get: all[name], enumerable: true }); 2099 }; 2100 var __copyProps = (to, from, except, desc) => { 2101 if (from && typeof from === "object" || typeof from === "function") { 2102 for (let key of __getOwnPropNames(from)) 2103 if (!__hasOwnProp.call(to, key) && key !== except) 2104 __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable }); 2105 } 2106 return to; 2107 }; 2108 var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod); 2109 2110
2110// ../../../../../../../../execroot/_main/bazel-out/k8-fastbuild/bin/share/motion/src/presets/source/opacity.ts 2111 var opacity_exports = {}; 2112 __export(opacity_exports, { 2113 default: () => preset 2114 }); 2115 2116 // figma-motion:figma:motion 2117 function defineProperties(component, spec) { 2118 Object.assign(component, { 2119 [/* @__PURE__ */ Symbol.for("figma.react.props")]: spec 2120 }); 2121 } 2122 var EasingType = { 2123 IN_CUBIC: 0, 2124 inCubic: 0, 2125 OUT_CUBIC: 1, 2126 outCubic: 1, 2127 INOUT_CUBIC: 2, 2128 inOutCubic: 2, 2129 LINEAR: 3, 2130 linear: 3, 2131 IN_BACK_CUBIC: 4, 2132 inBackCubic: 4, 2133 OUT_BACK_CUBIC: 5, 2134 outBackCubic: 5, 2135 INOUT_BACK_CUBIC: 6, 2136 inOutBackCubic: 6, 2137 CUSTOM_CUBIC: 7, 2138 customCubic: 7, 2139 SPRING: 8, 2140 spring: 8, 2141 GENTLE_SPRING: 9, 2142 gentleSpring: 9, 2143 CUSTOM_SPRING: 10, 2144 customSpring: 10, 2145 SPRING_PRESET_ONE: 11, 2146 springPresetOne: 11, 2147 SPRING_PRESET_TWO: 12, 2148 springPresetTwo: 12, 2149 SPRING_PRESET_THREE: 13, 2150 springPresetThree: 13, 2151 // For backwards compat 2152 bezier: 100, 2153 BEZIER: 100 2154 }; 2155 var InterpolationType = { 2156 HOLD: 0, 2157 hold: 0, 2158 BEZIER: 1, 2159 bezier: 1 2160 }; 2161 var KeyframeOperation = { 2162 SET: 0, 2163 set: 0, 2164 SCALE: 1, 2165 scale: 1, 2166 OFFSET: 2, 2167 offset: 2 2168 }; 2169 var ParameterField = { 2170 MISSING: 0, 2171 missing: 0, 2172 CORNER_RADIUS: 1, 2173 cornerRadius: 1, 2174 PARAGRAPH_SPACING: 2, 2175 paragraphSpacing: 2, 2176 PARAGRAPH_INDENT: 3, 2177 paragraphIndent: 3, 2178 STROKE_WEIGHT: 4, 2179 strokeWeight: 4, 2180 STACK_SPACING: 5, 2181 stackSpacing: 5, 2182 STACK_PADDING_LEFT: 6, 2183 stackPaddingLeft: 6, 2184 STACK_PADDING_TOP: 7, 2185 stackPaddingTop: 7, 2186 STACK_PADDING_RIGHT: 8, 2187 stackPaddingRight: 8, 2188 STACK_PADDING_BOTTOM: 9, 2189 stackPaddingBottom: 9, 2190 VISIBLE: 10, 2191 visible: 10, 2192 TEXT_DATA: 11, 2193 textData: 11, 2194 WIDTH: 12, 2195 width: 12, 2196 HEIGHT: 13, 2197 height: 13, 2198 RECTANGLE_TOP_LEFT_CORNER_RADIUS: 14, 2199 rectangleTopLeftCornerRadius: 14, 2200 RECTANGLE_TOP_RIGHT_CORNER_RADIUS: 15, 2201 rectangleTopRightCornerRadius: 15, 2202 RECTANGLE_BOTTOM_LEFT_CORNER_RADIUS: 16, 2203 rectangleBottomLeftCornerRadius: 16, 2204 RECTANGLE_BOTTOM_RIGHT_CORNER_RADIUS: 17, 2205 rectangleBottomRightCornerRadius: 17, 2206 BORDER_TOP_WEIGHT: 18, 2207 borderTopWeight: 18, 2208 BORDER_BOTTOM_WEIGHT: 19, 2209 borderBottomWeight: 19, 2210 BORDER_LEFT_WEIGHT: 20, 2211 borderLeftWeight: 20, 2212 BORDER_RIGHT_WEIGHT: 21, 2213 borderRightWeight: 21, 2214 VARIANT_PROPERTIES: 22, 2215 variantProperties: 22, 2216 STACK_COUNTER_SPACING: 23, 2217 stackCounterSpacing: 23, 2218 MIN_WIDTH: 24, 2219 minWidth: 24, 2220 MAX_WIDTH: 25, 2221 maxWidth: 25, 2222 MIN_HEIGHT: 26, 2223 minHeight: 26, 2224 MAX_HEIGHT: 27, 2225 maxHeight: 27, 2226 FONT_FAMILY: 28, 2227 fontFamily: 28, 2228 FONT_STYLE: 29, 2229 fontStyle: 29, 2230 FONT_VARIATIONS: 30, 2231 fontVariations: 30, 2232 OPACITY: 31, 2233 opacity: 31, 2234 FONT_SIZE: 32, 2235 fontSize: 32, 2236 LETTER_SPACING: 34, 2237 letterSpacing: 34, 2238 LINE_HEIGHT: 36, 2239 lineHeight: 36, 2240 OVERRIDDEN_SYMBOL_ID: 37, 2241 overriddenSymbolId: 37, 2242 CMS_SERIALIZED_RICH_TEXT_DATA: 38, 2243 cmsSerializedRichTextData: 38, 2244 HYPERLINK: 39, 2245 hyperlink: 39, 2246 SLOT_CONTENT_ID: 40, 2247 slotContentId: 40, 2248 GRID_ROW_GAP: 41, 2249 gridRowGap: 41, 2250 GRID_COLUMN_GAP: 42, 2251 gridColumnGap: 42, 2252 RELATIVE_X_POSITION: 43, 2253 xPosition: 43, 2254 RELATIVE_Y_POSITION: 44, 2255 relativeYPosition: 44, 2256 RELATIVE_ROTATION: 45, 2257 relativeRotation: 45, 2258 MOTION_TRANSLATION_X: 46, 2259 motionTranslationX: 46, 2260 MOTION_TRANSLATION_Y: 47, 2261 motionTranslationY: 47, 2262 MOTION_ROTATION: 48, 2263 motionRotation: 48, 2264 MOTION_SCALE_X: 49, 2265 motionScaleX: 49, 2266 MOTION_SCALE_Y: 50, 2267 motionScaleY: 50, 2268 MOTION_SHEAR: 51, 2269 motionShear: 51, 2270 SCROLL_OFFSET_X: 52, 2271 scrollOffsetX: 52, 2272 SCROLL_OFFSET_Y: 53, 2273 scrollOffsetY: 53, 2274 PATH_TRIM_START: 54, 2275 pathTrimStart: 54, 2276 PATH_TRIM_END: 55, 2277 pathTrimEnd: 55, 2278 DISSOLVE_PROGRESS: 56, 2279 dissolveProgress: 56 2280 }; 2281 var Keyframe = class { 2282 constructor(data) { 2283 this.timelinePosition = Math.round(data.timelinePosition); 2284 this.easing = data.easing; 2285 this.value = data.value; 2286 } 2287 }; 2288 var KeyframeTrack = class { 2289 constructor(data) { 2290 this.topLevelField = data.topLevelField; 2291 this.parameterField = data.parameterField; 2292 this.index = data.index; 2293 this.effectParametrizedField = data.effectParametrizedField; 2294 this.keyframeOperation = data.keyframeOperation; 2295 this.keyframes = data.keyframes; 2296 this.enabled = !!data.enabled; 2297 } 2298 }; 2299 var AnimationPreset = class { 2300 constructor(data) { 2301 this.nodeId = data.nodeId; 2302 this.keyframeTracks = data.keyframeTracks; 2303 } 2304 }; 2305 var PARAMETER_FIELD_ALIAS_MAP = { 2306 translateX: ParameterField.MOTION_TRANSLATION_X, 2307 translateY: ParameterField.MOTION_TRANSLATION_Y, 2308 rotate: ParameterField.MOTION_ROTATION, 2309 scaleX: ParameterField.MOTION_SCALE_X, 2310 scaleY: ParameterField.MOTION_SCALE_Y, 2311 shear: ParameterField.MOTION_SHEAR 2312 }; 2313 var KEYFRAMEABLE_FIELDS = /* @__PURE__ */ new Set(["translateX", "translateY", "rotate", "scaleX", "scaleY", "shear", "cornerRadius", "strokeWeight", "rectangleTopLeftCornerRadius", "rectangleTopRightCornerRadius", "rectangleBottomLeftCornerRadius", "rectangleBottomRightCornerRadius", "stackSpacing", "stackPaddingLeft", "stackPaddingTop", "stackPaddingRight", "stackPaddingBottom", "width", "height", "borderTopWeight", "borderBottomWeight", "borderLeftWeight", "borderRightWeight", "stackCounterSpacing", "minWidth", "maxWidth", "minHeight", "maxHeight", "opacity", "gridRowGap", "gridColumnGap", "textData", "pathTrimStart", "pathTrimEnd"]); 2314 var MODE_TO_OPERATION = { 2315 set: KeyframeOperation.SET, 2316 SET: KeyframeOperation.SET, 2317 offset: KeyframeOperation.OFFSET, 2318 OFFSET: KeyframeOperation.OFFSET, 2319 scale: KeyframeOperation.SCALE, 2320 SCALE: KeyframeOperation.SCALE 2321 }; 2322 function normalizeEasing(easing) { 2323 if (easing === void 0) return void 0; 2324 if (easing === "hold") return { interpolationType: InterpolationType.HOLD }; 2325 if (typeof easing === "string") { 2326 const easingType = EasingType[easing]; 2327 if (easingType === void 0) throw new Error('normalizeEasing: unknown easing "' + easing + '"'); 2328 return { easingType }; 2329 } 2330 return easing; 2331 } 2332 function compileKeyframe({ timelinePosition, value, easing }) { 2333 return new Keyframe({ 2334 timelinePosition: timelinePosition * 1e6, 2335 easing: normalizeEasing(easing), 2336 value 2337 }); 2338 } 2339 function tween({ mode, timelinePosition = 0, duration, from, to, easing, enabled = true }) { 2340 if (duration < 0) throw new Error("tween: duration must be non-negative"); 2341 return { 2342 mode, 2343 enabled, 2344 keyframes: [ 2345 { timelinePosition, value: from, easing }, 2346 { timelinePosition: timelinePosition + duration, value: to, easing } 2347 ] 2348 }; 2349 } 2350 function animate(node, definition) { 2351 const nodeId = typeof node === "string" ? node : node.id;
2352 const keyframeTracks = []; 2353 for (const [key, trackDef] of Object.entries(definition)) { 2354 if (!KEYFRAMEABLE_FIELDS.has(key)) { 2355 throw new Error('animate: unknown or non-keyframeable property "' + key + '"'); 2356 } 2357 const parameterField = PARAMETER_FIELD_ALIAS_MAP[key] ?? ParameterField[key]; 2358 const operation = MODE_TO_OPERATION[trackDef.mode]; 2359 if (operation === void 0) throw new Error('animate: unknown mode "' + trackDef.mode + '"'); 2360 const seen = /* @__PURE__ */ new Map(); 2361 for (const kf of trackDef.keyframes) seen.set(kf.timelinePosition, kf); 2362 const sorted = [...seen.values()].sort((a, b) => a.timelinePosition - b.timelinePosition); 2363 keyframeTracks.push(new KeyframeTrack({ 2364 parameterField, 2365 keyframeOperation: operation, 2366 keyframes: sorted.map(compileKeyframe), 2367 enabled: trackDef.enabled !== false 2368 })); 2369 } 2370 return new AnimationPreset({ nodeId, keyframeTracks }); 2371 } 2372 2373
2373// ../../../../../../../../execroot/_main/bazel-out/k8-fastbuild/bin/share/motion/src/presets/source/opacity.ts 2374 function preset({ 2375 type, 2376 amount, 2377 startFrame, 2378 endFrame, 2379 duration, 2380 easing, 2381 node 2382 }) { 2383 const safeAmount = typeof amount === "number" ? amount : 0; 2384 const safeStartFrame = typeof startFrame === "number" ? startFrame : 0; 2385 const safeEndFrame = typeof endFrame === "number" ? endFrame : 100; 2386 const definition = {}; 2387 let opacityFrom; 2388 let opacityTo; 2389 switch (type) { 2390 case "fadeOut": 2391 opacityFrom = 1; 2392 opacityTo = safeAmount / 100; 2393 break; 2394 case "custom": 2395 opacityFrom = safeStartFrame / 100; 2396 opacityTo = safeEndFrame / 100; 2397 break; 2398 case "fadeIn": 2399 default: 2400 opacityFrom = safeAmount / 100; 2401 opacityTo = 1; 2402 break; 2403 } 2404 definition.opacity = tween({ 2405 mode: "scale", 2406 timelinePosition: 0, 2407 duration, 2408 from: opacityFrom, 2409 to: opacityTo, 2410 easing 2411 }); 2412 return [animate(node, definition)]; 2413 } 2414 defineProperties(preset, { 2415 type: { 2416 label: "motion.preset_flyout.type", 2417 type: "string", 2418 defaultValue: "fadeIn", 2419 control: "select", 2420 options: [ 2421 { value: "fadeIn", label: "motion.preset_flyout.opacity.type.fade_in" }, 2422 { value: "fadeOut", label: "motion.preset_flyout.opacity.type.fade_out" }, 2423 { value: "custom", label: "motion.preset_flyout.type.custom" } 2424 ] 2425 }, 2426 amount: { 2427 label: "motion.preset_flyout.amount", 2428 type: "number", 2429 control: "input", 2430 defaultValue: 0, 2431 unit: "%", 2432 icon: "opacity" 2433 }, 2434 // TODO(showDividerAbove-cleanup): the \`showDividerAbove\` flags in this file 2435 // are redundant \u2014 section dividers are now applied client-side in the preset 2436 // flyout via \`forceShowDividerAboveTransform\` 2437 startFrame: { 2438 label: "motion.preset_flyout.start", 2439 type: "number", 2440 control: "input", 2441 defaultValue: 0, 2442 unit: "%", 2443 showDividerAbove: true, 2444 icon: "opacity" 2445 }, 2446 endFrame: { 2447 label: "motion.preset_flyout.end", 2448 type: "number", 2449 control: "input", 2450 defaultValue: 100, 2451 unit: "%", 2452 icon: "opacity" 2453 }, 2454 // Note: 'delay' is kept in sync with a preset's \`timelineOffset\` 2455 delay: { 2456 label: "motion.preset_flyout.delay", 2457 type: "number", 2458 control: "input", 2459 defaultValue: 0, 2460 unit: "s", 2461 showDividerAbove: true, 2462 icon: "delay" 2463 }, 2464 duration: { 2465 label: "motion.preset_flyout.duration", 2466 type: "number", 2467 control: "input", 2468 defaultValue: 0.5, 2469 unit: "s", 2470 icon: "time" 2471 }, 2472 easing: { 2473 label: "motion.preset_flyout.easing", 2474 type: "easing", 2475 defaultValue: "outCubic" 2476 } 2477 }); 2478 return __toCommonJS(opacity_exports); 2479})();`});var e0,t0,n0=Qt(()=>{e0=`// Source-of-truth for the PATH first-party animation preset. 2480// 2481// Unifies Path Draw, Path Travel, and a Custom mode that drives \`pathTrimStart\` 2482// and \`pathTrimEnd\` directly. The build-time preset-bundle codegen (see 2483// \`../scripts/generate_preset_bundles.ts\`) reads this file's raw text, esbuilds 2484// it into an IIFE with \`figma:motion\` resolved, and emits both strings into 2485// \`../generated/path.generated.ts\`. The generated module is what runtime code 2486// consumes \u2014 never import this file directly from production code paths. 2487// 2488// This file is excluded from the share/motion \`ts_project\` compilation \u2014 it's 2489// only an input to the codegen tool, evaluated inside the QuickJS / iframe 2490// sandbox at runtime. 2491 2492import { animate, defineProperties, EasingType, tween } from 'figma:motion' 2493 2494import type { PresetArgs } from './preset_types' 2495 2496const TYPE_DRAW = 'draw' 2497const TYPE_ERASE = 'erase' 2498const TYPE_TRAVEL = 'travel' 2499 2500const DIRECTION_FORWARD = 'forward' 2501 2502const AXIS_PATH_TRIM_START = 'pathTrimStart' 2503const AXIS_PATH_TRIM_END = 'pathTrimEnd' 2504const AXIS_COMBINED = 'combined' 2505 2506// Convert the percent values surfaced in the panel (0..100) to the 0..1 2507// fractional range that \`pathTrimStart\` / \`pathTrimEnd\` expect. 2508function percentToDecimal(value: number): number { 2509 return value / 100 2510} 2511 2512export default function preset({ 2513 type, 2514 direction, 2515 segment, 2516 axis, 2517 pathStartStartFrame, 2518 pathStartEndWithoutDivider, 2519 pathEndStartWithDivider, 2520 pathEndEndFrame, 2521 pathEndStartWithoutDivider, 2522 pathStartEndWithDivider, 2523 duration, 2524 easing, 2525 target, 2526}: PresetArgs) { 2527 const isForward = direction === DIRECTION_FORWARD 2528 2529 // Always materialize BOTH the pathTrimStart and pathTrimEnd tracks so their KEYFRAME_TRACK 2530 // GUIDs survive \`type\` / \`axis\` toggles. This works arounds a DS components/instances bug related to the conditional rendering of keyframe tracks. 2531 let startFrom: number 2532 let startTo: number 2533 let endFrom: number 2534 let endTo: number 2535 let startEnabled = true 2536 let endEnabled = true 2537 2538 if (type === TYPE_DRAW || type === TYPE_ERASE) { 2539 const isDraw = type === TYPE_DRAW 2540 if (isDraw && isForward) { 2541 startFrom = 0 2542 startTo = 0 2543 endFrom = 0 2544 endTo = 1 2545 } else if (isDraw && !isForward) { 2546 startFrom = 1 2547 startTo = 0 2548 endFrom = 1 2549 endTo = 1 2550 } else if (!isDraw && isForward) { 2551 startFrom = 0 2552 startTo = 1 2553 endFrom = 1 2554 endTo = 1 2555 } else { 2556 startFrom = 0 2557 startTo = 0 2558 endFrom = 1 2559 endTo = 0 2560 } 2561 } else if (type === TYPE_TRAVEL) { 2562 // A fixed-length segment travels along the path and comes to rest at the end. The trim 2563 // values stay within [0, 1] (the segment never runs past either end) so the path doesn't 2564 // wrap / loop the segment back around to the start. 2565 // forward: segment moves [0, seg] \u2192 [1 - seg, 1] 2566 // reverse: segment moves [1 - seg, 1] \u2192 [0, seg] 2567 const segmentFraction = percentToDecimal(segment) 2568 startFrom = isForward ? 0 : 1 - segmentFraction 2569 startTo = isForward ? 1 - segmentFraction : 0 2570 endFrom = isForward ? segmentFraction : 1 2571 endTo = isForward ? 1 : segmentFraction 2572 } else { 2573 // type === 'custom' \u2014 \`axis\` toggles which trim(s) are enabled; all custom modes share 2574 // \`duration\` / \`easing\`. Combined groups both Starts then both Ends in the panel, so it 2575 // reads the combined-only variants for the inner pair (trimStart's End, trimEnd's Start). 2576 startEnabled = axis === AXIS_PATH_TRIM_START || axis === AXIS_COMBINED 2577 endEnabled = axis === AXIS_PATH_TRIM_END || axis === AXIS_COMBINED 2578 if (axis === AXIS_COMBINED) { 2579 const sFrom = percentToDecimal(pathStartStartFrame) 2580 const sTo = percentToDecimal(pathStartEndWithDivider) 2581 const eFrom = percentToDecimal(pathEndStartWithoutDivider) 2582 const eTo = percentToDecimal(pathEndEndFrame) 2583 startFrom = isForward ? sFrom : sTo 2584 startTo = isForward ? sTo : sFrom 2585 endFrom = isForward ? eFrom : eTo 2586 endTo = isForward ? eTo : eFrom 2587 } else { 2588 const sFrom = percentToDecimal(pathStartStartFrame) 2589 const sTo = percentToDecimal(pathStartEndWithoutDivider) 2590 const eFrom = percentToDecimal(pathEndStartWithDivider) 2591 const eTo = percentToDecimal(pathEndEndFrame) 2592 startFrom = isForward ? sFrom : sTo 2593 startTo = isForward ? sTo : sFrom 2594 endFrom = isForward ? eFrom : eTo 2595 endTo = isForward ? eTo : eFrom 2596 } 2597 } 2598 2599 return [ 2600 animate(target, { 2601 pathTrimStart: tween({
2602 mode: 'set', 2603 duration, 2604 from: startFrom, 2605 to: startTo, 2606 easing, 2607 enabled: startEnabled, 2608 }), 2609 pathTrimEnd: tween({ 2610 mode: 'set', 2611 duration, 2612 from: endFrom, 2613 to: endTo, 2614 easing, 2615 enabled: endEnabled, 2616 }), 2617 }), 2618 ] 2619} 2620 2621// KEEP_IN_SYNC(share/motion/src/presets/path_meta.ts) 2622defineProperties(preset, { 2623 type: { 2624 label: 'motion.preset_flyout.type', 2625 type: 'string', 2626 defaultValue: 'draw', 2627 control: 'select', 2628 options: [ 2629 { value: 'draw', label: 'motion.preset_flyout.path.type.draw' }, 2630 { value: 'erase', label: 'motion.preset_flyout.path.type.erase' }, 2631 { value: 'travel', label: 'motion.preset_flyout.path.type.travel' }, 2632 { value: 'custom', label: 'motion.preset_flyout.type.custom' }, 2633 ], 2634 }, 2635 direction: { 2636 label: 'motion.preset_flyout.direction', 2637 type: 'string', 2638 defaultValue: 'forward', 2639 control: 'select', 2640 options: [ 2641 { value: 'forward', label: 'motion.preset_flyout.path.direction.forward' }, 2642 { value: 'reverse', label: 'motion.preset_flyout.path.direction.reverse' }, 2643 ], 2644 }, 2645 axis: { 2646 label: 'motion.preset_flyout.path.trim', 2647 type: 'string', 2648 defaultValue: 'pathTrimStart', 2649 control: 'select', 2650 options: [ 2651 { value: 'pathTrimStart', label: 'motion.preset_flyout.path.axis.path_trim_start' }, 2652 { value: 'pathTrimEnd', label: 'motion.preset_flyout.path.axis.path_trim_end' }, 2653 { value: 'combined', label: 'motion.preset_flyout.path.axis.combined' }, 2654 ], 2655 }, 2656 segment: { 2657 label: 'motion.preset_flyout.path.segment', 2658 type: 'number', 2659 defaultValue: 10, 2660 control: 'input', 2661 min: 0, 2662 max: 100, 2663 unit: '%', 2664 }, 2665 // Frame order drives the panel layout. Single-axis (pathTrimStart / pathTrimEnd) groups 2666 // its own Start + End. Combined groups both Starts then both Ends, so its inner pair uses 2667 // dedicated *Combined variants laid out between the single-axis Start/End rows and only 2668 // shown for Combined. 2669 // TODO(showDividerAbove-cleanup): the \`showDividerAbove\` flags in this file 2670 // are redundant \u2014 section dividers are now applied client-side in the preset 2671 // flyout via \`forceShowDividerAboveTransform\` 2672 pathStartStartFrame: { 2673 label: 'motion.preset_flyout.start_frame', 2674 type: 'number', 2675 defaultValue: 100, 2676 control: 'input', 2677 unit: '%', 2678 showDividerAbove: true, 2679 icon: 'path_trim_start', 2680 }, 2681 pathStartEndWithoutDivider: { 2682 label: 'motion.preset_flyout.end_frame', 2683 type: 'number', 2684 defaultValue: 0, 2685 control: 'input', 2686 unit: '%', 2687 icon: 'path_trim_start', 2688 }, 2689 // Combined-only: trimEnd's Start (2nd Start, grouped under the Starts divider) and 2690 // trimStart's End (1st End, opens the Ends group with its own divider). 2691 pathEndStartWithoutDivider: { 2692 label: 'motion.preset_flyout.start_frame', 2693 type: 'number', 2694 defaultValue: 20, 2695 control: 'input', 2696 unit: '%', 2697 icon: 'path_trim_end', 2698 }, 2699 pathStartEndWithDivider: { 2700 label: 'motion.preset_flyout.end_frame', 2701 type: 'number', 2702 defaultValue: 80, 2703 control: 'input', 2704 unit: '%', 2705 showDividerAbove: true, 2706 icon: 'path_trim_start', 2707 }, 2708 pathEndStartWithDivider: { 2709 label: 'motion.preset_flyout.start_frame', 2710 type: 'number', 2711 defaultValue: 0, 2712 control: 'input', 2713 unit: '%', 2714 showDividerAbove: true, 2715 icon: 'path_trim_end', 2716 }, 2717 pathEndEndFrame: { 2718 label: 'motion.preset_flyout.end_frame', 2719 type: 'number', 2720 defaultValue: 100, 2721 control: 'input', 2722 unit: '%', 2723 icon: 'path_trim_end', 2724 }, 2725 // Note: 'delay' is kept in sync with a preset's \`timelineOffset\`. 2726 delay: { 2727 label: 'motion.preset_flyout.delay', 2728 type: 'number', 2729 defaultValue: 0, 2730 control: 'input', 2731 unit: 's', 2732 showDividerAbove: true, 2733 icon: 'delay', 2734 }, 2735 duration: { 2736 label: 'motion.preset_flyout.duration', 2737 type: 'number', 2738 defaultValue: 0.5, 2739 control: 'input', 2740 min: 0.01, 2741 unit: 's', 2742 icon: 'time', 2743 }, 2744 easing: { 2745 label: 'motion.preset_flyout.easing', 2746 type: 'easing', 2747 defaultValue: { easingType: EasingType.OUT_CUBIC }, 2748 }, 2749}) 2750`,t0=`var __presetBundle = (() => { 2751 var __defProp = Object.defineProperty; 2752 var __getOwnPropDesc = Object.getOwnPropertyDescriptor; 2753 var __getOwnPropNames = Object.getOwnPropertyNames; 2754 var __hasOwnProp = Object.prototype.hasOwnProperty; 2755 var __export = (target, all) => { 2756 for (var name in all) 2757 __defProp(target, name, { get: all[name], enumerable: true }); 2758 }; 2759 var __copyProps = (to, from, except, desc) => { 2760 if (from && typeof from === "object" || typeof from === "function") { 2761 for (let key of __getOwnPropNames(from)) 2762 if (!__hasOwnProp.call(to, key) && key !== except) 2763 __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable }); 2764 } 2765 return to; 2766 }; 2767 var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod); 2768 2769
2769// ../../../../../../../../execroot/_main/bazel-out/k8-fastbuild/bin/share/motion/src/presets/source/path.ts 2770 var path_exports = {}; 2771 __export(path_exports, { 2772 default: () => preset 2773 }); 2774 2775 // figma-motion:figma:motion 2776 function defineProperties(component, spec) { 2777 Object.assign(component, { 2778 [/* @__PURE__ */ Symbol.for("figma.react.props")]: spec 2779 }); 2780 } 2781 var EasingType = { 2782 IN_CUBIC: 0, 2783 inCubic: 0, 2784 OUT_CUBIC: 1, 2785 outCubic: 1, 2786 INOUT_CUBIC: 2, 2787 inOutCubic: 2, 2788 LINEAR: 3, 2789 linear: 3, 2790 IN_BACK_CUBIC: 4, 2791 inBackCubic: 4, 2792 OUT_BACK_CUBIC: 5, 2793 outBackCubic: 5, 2794 INOUT_BACK_CUBIC: 6, 2795 inOutBackCubic: 6, 2796 CUSTOM_CUBIC: 7, 2797 customCubic: 7, 2798 SPRING: 8, 2799 spring: 8, 2800 GENTLE_SPRING: 9, 2801 gentleSpring: 9, 2802 CUSTOM_SPRING: 10, 2803 customSpring: 10, 2804 SPRING_PRESET_ONE: 11, 2805 springPresetOne: 11, 2806 SPRING_PRESET_TWO: 12, 2807 springPresetTwo: 12, 2808 SPRING_PRESET_THREE: 13, 2809 springPresetThree: 13, 2810 // For backwards compat 2811 bezier: 100, 2812 BEZIER: 100 2813 }; 2814 var InterpolationType = { 2815 HOLD: 0, 2816 hold: 0, 2817 BEZIER: 1, 2818 bezier: 1 2819 }; 2820 var KeyframeOperation = { 2821 SET: 0, 2822 set: 0, 2823 SCALE: 1, 2824 scale: 1, 2825 OFFSET: 2, 2826 offset: 2 2827 }; 2828 var ParameterField = { 2829 MISSING: 0, 2830 missing: 0, 2831 CORNER_RADIUS: 1, 2832 cornerRadius: 1, 2833 PARAGRAPH_SPACING: 2, 2834 paragraphSpacing: 2, 2835 PARAGRAPH_INDENT: 3, 2836 paragraphIndent: 3, 2837 STROKE_WEIGHT: 4, 2838 strokeWeight: 4, 2839 STACK_SPACING: 5, 2840 stackSpacing: 5, 2841 STACK_PADDING_LEFT: 6, 2842 stackPaddingLeft: 6, 2843 STACK_PADDING_TOP: 7, 2844 stackPaddingTop: 7, 2845 STACK_PADDING_RIGHT: 8, 2846 stackPaddingRight: 8, 2847 STACK_PADDING_BOTTOM: 9, 2848 stackPaddingBottom: 9, 2849 VISIBLE: 10, 2850 visible: 10, 2851 TEXT_DATA: 11, 2852 textData: 11, 2853 WIDTH: 12, 2854 width: 12, 2855 HEIGHT: 13, 2856 height: 13, 2857 RECTANGLE_TOP_LEFT_CORNER_RADIUS: 14, 2858 rectangleTopLeftCornerRadius: 14, 2859 RECTANGLE_TOP_RIGHT_CORNER_RADIUS: 15, 2860 rectangleTopRightCornerRadius: 15, 2861 RECTANGLE_BOTTOM_LEFT_CORNER_RADIUS: 16, 2862 rectangleBottomLeftCornerRadius: 16, 2863 RECTANGLE_BOTTOM_RIGHT_CORNER_RADIUS: 17, 2864 rectangleBottomRightCornerRadius: 17, 2865 BORDER_TOP_WEIGHT: 18, 2866 borderTopWeight: 18, 2867 BORDER_BOTTOM_WEIGHT: 19, 2868 borderBottomWeight: 19, 2869 BORDER_LEFT_WEIGHT: 20, 2870 borderLeftWeight: 20, 2871 BORDER_RIGHT_WEIGHT: 21, 2872 borderRightWeight: 21, 2873 VARIANT_PROPERTIES: 22, 2874 variantProperties: 22, 2875 STACK_COUNTER_SPACING: 23, 2876 stackCounterSpacing: 23, 2877 MIN_WIDTH: 24, 2878 minWidth: 24, 2879 MAX_WIDTH: 25, 2880 maxWidth: 25, 2881 MIN_HEIGHT: 26, 2882 minHeight: 26, 2883 MAX_HEIGHT: 27, 2884 maxHeight: 27, 2885 FONT_FAMILY: 28, 2886 fontFamily: 28, 2887 FONT_STYLE: 29, 2888 fontStyle: 29, 2889 FONT_VARIATIONS: 30, 2890 fontVariations: 30, 2891 OPACITY: 31, 2892 opacity: 31, 2893 FONT_SIZE: 32, 2894 fontSize: 32, 2895 LETTER_SPACING: 34, 2896 letterSpacing: 34, 2897 LINE_HEIGHT: 36, 2898 lineHeight: 36, 2899 OVERRIDDEN_SYMBOL_ID: 37, 2900 overriddenSymbolId: 37, 2901 CMS_SERIALIZED_RICH_TEXT_DATA: 38, 2902 cmsSerializedRichTextData: 38, 2903 HYPERLINK: 39, 2904 hyperlink: 39, 2905 SLOT_CONTENT_ID: 40, 2906 slotContentId: 40, 2907 GRID_ROW_GAP: 41, 2908 gridRowGap: 41, 2909 GRID_COLUMN_GAP: 42, 2910 gridColumnGap: 42, 2911 RELATIVE_X_POSITION: 43, 2912 xPosition: 43, 2913 RELATIVE_Y_POSITION: 44, 2914 relativeYPosition: 44, 2915 RELATIVE_ROTATION: 45, 2916 relativeRotation: 45, 2917 MOTION_TRANSLATION_X: 46, 2918 motionTranslationX: 46, 2919 MOTION_TRANSLATION_Y: 47, 2920 motionTranslationY: 47, 2921 MOTION_ROTATION: 48, 2922 motionRotation: 48, 2923 MOTION_SCALE_X: 49, 2924 motionScaleX: 49, 2925 MOTION_SCALE_Y: 50, 2926 motionScaleY: 50, 2927 MOTION_SHEAR: 51, 2928 motionShear: 51, 2929 SCROLL_OFFSET_X: 52, 2930 scrollOffsetX: 52, 2931 SCROLL_OFFSET_Y: 53, 2932 scrollOffsetY: 53, 2933 PATH_TRIM_START: 54, 2934 pathTrimStart: 54, 2935 PATH_TRIM_END: 55, 2936 pathTrimEnd: 55, 2937 DISSOLVE_PROGRESS: 56, 2938 dissolveProgress: 56 2939 }; 2940 var Keyframe = class { 2941 constructor(data) { 2942 this.timelinePosition = Math.round(data.timelinePosition); 2943 this.easing = data.easing; 2944 this.value = data.value; 2945 } 2946 }; 2947 var KeyframeTrack = class { 2948 constructor(data) { 2949 this.topLevelField = data.topLevelField; 2950 this.parameterField = data.parameterField; 2951 this.index = data.index; 2952 this.effectParametrizedField = data.effectParametrizedField; 2953 this.keyframeOperation = data.keyframeOperation; 2954 this.keyframes = data.keyframes; 2955 this.enabled = !!data.enabled; 2956 } 2957 }; 2958 var AnimationPreset = class { 2959 constructor(data) { 2960 this.nodeId = data.nodeId; 2961 this.keyframeTracks = data.keyframeTracks; 2962 } 2963 }; 2964 var PARAMETER_FIELD_ALIAS_MAP = { 2965 translateX: ParameterField.MOTION_TRANSLATION_X, 2966 translateY: ParameterField.MOTION_TRANSLATION_Y, 2967 rotate: ParameterField.MOTION_ROTATION, 2968 scaleX: ParameterField.MOTION_SCALE_X, 2969 scaleY: ParameterField.MOTION_SCALE_Y, 2970 shear: ParameterField.MOTION_SHEAR 2971 }; 2972 var KEYFRAMEABLE_FIELDS = /* @__PURE__ */ new Set(["translateX", "translateY", "rotate", "scaleX", "scaleY", "shear", "cornerRadius", "strokeWeight", "rectangleTopLeftCornerRadius", "rectangleTopRightCornerRadius", "rectangleBottomLeftCornerRadius", "rectangleBottomRightCornerRadius", "stackSpacing", "stackPaddingLeft", "stackPaddingTop", "stackPaddingRight", "stackPaddingBottom", "width", "height", "borderTopWeight", "borderBottomWeight", "borderLeftWeight", "borderRightWeight", "stackCounterSpacing", "minWidth", "maxWidth", "minHeight", "maxHeight", "opacity", "gridRowGap", "gridColumnGap", "textData", "pathTrimStart", "pathTrimEnd"]); 2973 var MODE_TO_OPERATION = { 2974 set: KeyframeOperation.SET, 2975 SET: KeyframeOperation.SET, 2976 offset: KeyframeOperation.OFFSET, 2977 OFFSET: KeyframeOperation.OFFSET, 2978 scale: KeyframeOperation.SCALE, 2979 SCALE: KeyframeOperation.SCALE 2980 }; 2981 function normalizeEasing(easing) { 2982 if (easing === void 0) return void 0; 2983 if (easing === "hold") return { interpolationType: InterpolationType.HOLD }; 2984 if (typeof easing === "string") { 2985 const easingType = EasingType[easing]; 2986 if (easingType === void 0) throw new Error('normalizeEasing: unknown easing "' + easing + '"'); 2987 return { easingType }; 2988 } 2989 return easing; 2990 } 2991 function compileKeyframe({ timelinePosition, value, easing }) { 2992 return new Keyframe({ 2993 timelinePosition: timelinePosition * 1e6, 2994 easing: normalizeEasing(easing), 2995 value 2996 }); 2997 } 2998 function tween({ mode, timelinePosition = 0, duration, from, to, easing, enabled = true }) { 2999 if (duration < 0) throw new Error("tween: duration must be non-negative"); 3000 return { 3001 mode, 3002 enabled, 3003 keyframes: [ 3004 { timelinePosition, value: from, easing }, 3005 { timelinePosition: timelinePosition + duration, value: to, easing } 3006 ] 3007 }; 3008 } 3009 function animate(node, definition) { 3010 const nodeId = typeof node === "string" ? node : node.id;
3011 const keyframeTracks = []; 3012 for (const [key, trackDef] of Object.entries(definition)) { 3013 if (!KEYFRAMEABLE_FIELDS.has(key)) { 3014 throw new Error('animate: unknown or non-keyframeable property "' + key + '"'); 3015 } 3016 const parameterField = PARAMETER_FIELD_ALIAS_MAP[key] ?? ParameterField[key]; 3017 const operation = MODE_TO_OPERATION[trackDef.mode]; 3018 if (operation === void 0) throw new Error('animate: unknown mode "' + trackDef.mode + '"'); 3019 const seen = /* @__PURE__ */ new Map(); 3020 for (const kf of trackDef.keyframes) seen.set(kf.timelinePosition, kf); 3021 const sorted = [...seen.values()].sort((a, b) => a.timelinePosition - b.timelinePosition); 3022 keyframeTracks.push(new KeyframeTrack({ 3023 parameterField, 3024 keyframeOperation: operation, 3025 keyframes: sorted.map(compileKeyframe), 3026 enabled: trackDef.enabled !== false 3027 })); 3028 } 3029 return new AnimationPreset({ nodeId, keyframeTracks }); 3030 } 3031 3032
3032// ../../../../../../../../execroot/_main/bazel-out/k8-fastbuild/bin/share/motion/src/presets/source/path.ts 3033 var TYPE_DRAW = "draw"; 3034 var TYPE_ERASE = "erase"; 3035 var TYPE_TRAVEL = "travel"; 3036 var DIRECTION_FORWARD = "forward"; 3037 var AXIS_PATH_TRIM_START = "pathTrimStart"; 3038 var AXIS_PATH_TRIM_END = "pathTrimEnd"; 3039 var AXIS_COMBINED = "combined"; 3040 function percentToDecimal(value) { 3041 return value / 100; 3042 } 3043 function preset({ 3044 type, 3045 direction, 3046 segment, 3047 axis, 3048 pathStartStartFrame, 3049 pathStartEndWithoutDivider, 3050 pathEndStartWithDivider, 3051 pathEndEndFrame, 3052 pathEndStartWithoutDivider, 3053 pathStartEndWithDivider, 3054 duration, 3055 easing, 3056 target 3057 }) { 3058 const isForward = direction === DIRECTION_FORWARD; 3059 let startFrom; 3060 let startTo; 3061 let endFrom; 3062 let endTo; 3063 let startEnabled = true; 3064 let endEnabled = true; 3065 if (type === TYPE_DRAW || type === TYPE_ERASE) { 3066 const isDraw = type === TYPE_DRAW; 3067 if (isDraw && isForward) { 3068 startFrom = 0; 3069 startTo = 0; 3070 endFrom = 0; 3071 endTo = 1; 3072 } else if (isDraw && !isForward) { 3073 startFrom = 1; 3074 startTo = 0; 3075 endFrom = 1; 3076 endTo = 1; 3077 } else if (!isDraw && isForward) { 3078 startFrom = 0; 3079 startTo = 1; 3080 endFrom = 1; 3081 endTo = 1; 3082 } else { 3083 startFrom = 0; 3084 startTo = 0; 3085 endFrom = 1; 3086 endTo = 0; 3087 } 3088 } else if (type === TYPE_TRAVEL) { 3089 const segmentFraction = percentToDecimal(segment); 3090 startFrom = isForward ? 0 : 1 - segmentFraction; 3091 startTo = isForward ? 1 - segmentFraction : 0; 3092 endFrom = isForward ? segmentFraction : 1; 3093 endTo = isForward ? 1 : segmentFraction; 3094 } else { 3095 startEnabled = axis === AXIS_PATH_TRIM_START || axis === AXIS_COMBINED; 3096 endEnabled = axis === AXIS_PATH_TRIM_END || axis === AXIS_COMBINED; 3097 if (axis === AXIS_COMBINED) { 3098 const sFrom = percentToDecimal(pathStartStartFrame); 3099 const sTo = percentToDecimal(pathStartEndWithDivider); 3100 const eFrom = percentToDecimal(pathEndStartWithoutDivider); 3101 const eTo = percentToDecimal(pathEndEndFrame); 3102 startFrom = isForward ? sFrom : sTo; 3103 startTo = isForward ? sTo : sFrom; 3104 endFrom = isForward ? eFrom : eTo; 3105 endTo = isForward ? eTo : eFrom; 3106 } else { 3107 const sFrom = percentToDecimal(pathStartStartFrame); 3108 const sTo = percentToDecimal(pathStartEndWithoutDivider); 3109 const eFrom = percentToDecimal(pathEndStartWithDivider); 3110 const eTo = percentToDecimal(pathEndEndFrame); 3111 startFrom = isForward ? sFrom : sTo; 3112 startTo = isForward ? sTo : sFrom; 3113 endFrom = isForward ? eFrom : eTo; 3114 endTo = isForward ? eTo : eFrom; 3115 } 3116 } 3117 return [ 3118 animate(target, { 3119 pathTrimStart: tween({ 3120 mode: "set", 3121 duration, 3122 from: startFrom, 3123 to: startTo, 3124 easing, 3125 enabled: startEnabled 3126 }), 3127 pathTrimEnd: tween({ 3128 mode: "set", 3129 duration, 3130 from: endFrom, 3131 to: endTo, 3132 easing, 3133 enabled: endEnabled 3134 }) 3135 }) 3136 ]; 3137 } 3138 defineProperties(preset, { 3139 type: { 3140 label: "motion.preset_flyout.type", 3141 type: "string", 3142 defaultValue: "draw", 3143 control: "select", 3144 options: [ 3145 { value: "draw", label: "motion.preset_flyout.path.type.draw" }, 3146 { value: "erase", label: "motion.preset_flyout.path.type.erase" }, 3147 { value: "travel", label: "motion.preset_flyout.path.type.travel" }, 3148 { value: "custom", label: "motion.preset_flyout.type.custom" } 3149 ] 3150 }, 3151 direction: { 3152 label: "motion.preset_flyout.direction", 3153 type: "string", 3154 defaultValue: "forward", 3155 control: "select", 3156 options: [ 3157 { value: "forward", label: "motion.preset_flyout.path.direction.forward" }, 3158 { value: "reverse", label: "motion.preset_flyout.path.direction.reverse" } 3159 ] 3160 }, 3161 axis: { 3162 label: "motion.preset_flyout.path.trim", 3163 type: "string", 3164 defaultValue: "pathTrimStart", 3165 control: "select", 3166 options: [ 3167 { value: "pathTrimStart", label: "motion.preset_flyout.path.axis.path_trim_start" }, 3168 { value: "pathTrimEnd", label: "motion.preset_flyout.path.axis.path_trim_end" }, 3169 { value: "combined", label: "motion.preset_flyout.path.axis.combined" } 3170 ] 3171 }, 3172 segment: { 3173 label: "motion.preset_flyout.path.segment", 3174 type: "number", 3175 defaultValue: 10, 3176 control: "input", 3177 min: 0, 3178 max: 100, 3179 unit: "%" 3180 }, 3181 // Frame order drives the panel layout. Single-axis (pathTrimStart / pathTrimEnd) groups 3182 // its own Start + End. Combined groups both Starts then both Ends, so its inner pair uses 3183 // dedicated *Combined variants laid out between the single-axis Start/End rows and only 3184 // shown for Combined.
3185 // TODO(showDividerAbove-cleanup): the \`showDividerAbove\` flags in this file 3186 // are redundant \u2014 section dividers are now applied client-side in the preset 3187 // flyout via \`forceShowDividerAboveTransform\` 3188 pathStartStartFrame: { 3189 label: "motion.preset_flyout.start_frame", 3190 type: "number", 3191 defaultValue: 100, 3192 control: "input", 3193 unit: "%", 3194 showDividerAbove: true, 3195 icon: "path_trim_start" 3196 }, 3197 pathStartEndWithoutDivider: { 3198 label: "motion.preset_flyout.end_frame", 3199 type: "number", 3200 defaultValue: 0, 3201 control: "input", 3202 unit: "%", 3203 icon: "path_trim_start" 3204 }, 3205 // Combined-only: trimEnd's Start (2nd Start, grouped under the Starts divider) and 3206 // trimStart's End (1st End, opens the Ends group with its own divider). 3207 pathEndStartWithoutDivider: { 3208 label: "motion.preset_flyout.start_frame", 3209 type: "number", 3210 defaultValue: 20, 3211 control: "input", 3212 unit: "%", 3213 icon: "path_trim_end" 3214 }, 3215 pathStartEndWithDivider: { 3216 label: "motion.preset_flyout.end_frame", 3217 type: "number", 3218 defaultValue: 80, 3219 control: "input", 3220 unit: "%", 3221 showDividerAbove: true, 3222 icon: "path_trim_start" 3223 }, 3224 pathEndStartWithDivider: { 3225 label: "motion.preset_flyout.start_frame", 3226 type: "number", 3227 defaultValue: 0, 3228 control: "input", 3229 unit: "%", 3230 showDividerAbove: true, 3231 icon: "path_trim_end" 3232 }, 3233 pathEndEndFrame: { 3234 label: "motion.preset_flyout.end_frame", 3235 type: "number", 3236 defaultValue: 100, 3237 control: "input", 3238 unit: "%", 3239 icon: "path_trim_end" 3240 }, 3241 // Note: 'delay' is kept in sync with a preset's \`timelineOffset\`. 3242 delay: { 3243 label: "motion.preset_flyout.delay", 3244 type: "number", 3245 defaultValue: 0, 3246 control: "input", 3247 unit: "s", 3248 showDividerAbove: true, 3249 icon: "delay" 3250 }, 3251 duration: { 3252 label: "motion.preset_flyout.duration", 3253 type: "number", 3254 defaultValue: 0.5, 3255 control: "input", 3256 min: 0.01, 3257 unit: "s", 3258 icon: "time" 3259 }, 3260 easing: { 3261 label: "motion.preset_flyout.easing", 3262 type: "easing", 3263 defaultValue: { easingType: EasingType.OUT_CUBIC } 3264 } 3265 }); 3266 return __toCommonJS(path_exports); 3267})();`});var r0,o0,i0=Qt(()=>{r0=`// Source-of-truth for the PATH_DRAW first-party animation preset. 3268// 3269// The build-time preset-bundle codegen (see \`../scripts/generate_preset_bundles.ts\`) 3270// reads this file's raw text, esbuilds it into an IIFE with \`figma:motion\` 3271// resolved, and emits both strings into \`../generated/path_draw.generated.ts\`. 3272// The generated module is what runtime code consumes \u2014 never import this file 3273// directly from production code paths. 3274// 3275// This file is excluded from the share/motion \`ts_project\` compilation \u2014 it's 3276// only an input to the codegen tool, evaluated inside the QuickJS / iframe 3277// sandbox at runtime. 3278 3279import { animate, defineProperties, EasingType, tween } from 'figma:motion' 3280 3281import type { PresetArgs } from './preset_types' 3282 3283export default function preset({ duration, mode, direction, target }: PresetArgs) { 3284 const easing = { easingType: EasingType.LINEAR } 3285 3286 if (mode === 'reveal') { 3287 if (direction === 'forward') { 3288 // Draw from start to end of path: trimStart stays at 0, trimEnd goes from 0 to 1 3289 return [ 3290 animate(target, { 3291 pathTrimStart: tween({ mode: 'set', duration, from: 0, to: 0, easing }), 3292 pathTrimEnd: tween({ mode: 'set', duration, from: 0, to: 1, easing }), 3293 }), 3294 ] 3295 } else { 3296 // Draw from end to start of path: trimStart goes from 1 to 0, trimEnd stays at 1 3297 return [ 3298 animate(target, { 3299 pathTrimStart: tween({ mode: 'set', duration, from: 1, to: 0, easing }), 3300 pathTrimEnd: tween({ mode: 'set', duration, from: 1, to: 1, easing }), 3301 }), 3302 ] 3303 } 3304 } else { 3305 if (direction === 'forward') { 3306 // Hide from start to end of path: trimStart goes from 0 to 1, trimEnd stays at 1 3307 return [ 3308 animate(target, {
3309 pathTrimStart: tween({ mode: 'set', duration, from: 0, to: 1, easing }), 3310 pathTrimEnd: tween({ mode: 'set', duration, from: 1, to: 1, easing }), 3311 }), 3312 ] 3313 } else { 3314 // Hide from end to start of path: trimStart stays at 0, trimEnd goes from 1 to 0 3315 return [ 3316 animate(target, { 3317 pathTrimStart: tween({ mode: 'set', duration, from: 0, to: 0, easing }), 3318 pathTrimEnd: tween({ mode: 'set', duration, from: 1, to: 0, easing }), 3319 }), 3320 ] 3321 } 3322 } 3323} 3324 3325// KEEP_IN_SYNC(share/motion/src/presets/path_draw_meta.ts) \u2014 these 3326// property bounds (min/max/unit) must match \`PROP_DEFS[*].inputConfig\` so the 3327// panel-side TS metadata and the bundled IIFE agree on every prop's contract. 3328defineProperties(preset, { 3329 duration: { 3330 label: 'Duration', 3331 type: 'number', 3332 defaultValue: 0.5, 3333 control: 'input', 3334 min: 0.01, 3335 unit: 's', 3336 }, 3337 mode: { 3338 label: 'Mode', 3339 type: 'string', 3340 defaultValue: 'reveal', 3341 control: 'select', 3342 options: [ 3343 { value: 'reveal', label: 'Reveal' }, 3344 { value: 'hide', label: 'Hide' }, 3345 ], 3346 }, 3347 direction: { 3348 label: 'Direction', 3349 type: 'string', 3350 defaultValue: 'forward', 3351 control: 'select', 3352 options: [ 3353 { value: 'forward', label: 'Forward' }, 3354 { value: 'reverse', label: 'Reverse' }, 3355 ], 3356 }, 3357}) 3358`,o0=`var __presetBundle = (() => { 3359 var __defProp = Object.defineProperty; 3360 var __getOwnPropDesc = Object.getOwnPropertyDescriptor; 3361 var __getOwnPropNames = Object.getOwnPropertyNames; 3362 var __hasOwnProp = Object.prototype.hasOwnProperty; 3363 var __export = (target, all) => { 3364 for (var name in all) 3365 __defProp(target, name, { get: all[name], enumerable: true }); 3366 }; 3367 var __copyProps = (to, from, except, desc) => { 3368 if (from && typeof from === "object" || typeof from === "function") { 3369 for (let key of __getOwnPropNames(from)) 3370 if (!__hasOwnProp.call(to, key) && key !== except) 3371 __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable }); 3372 } 3373 return to; 3374 }; 3375 var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod); 3376 3377
3377// ../../../../../../../../execroot/_main/bazel-out/k8-fastbuild/bin/share/motion/src/presets/source/path_draw.ts 3378 var path_draw_exports = {}; 3379 __export(path_draw_exports, { 3380 default: () => preset 3381 }); 3382 3383 // figma-motion:figma:motion 3384 function defineProperties(component, spec) { 3385 Object.assign(component, { 3386 [/* @__PURE__ */ Symbol.for("figma.react.props")]: spec 3387 }); 3388 } 3389 var EasingType = { 3390 IN_CUBIC: 0, 3391 inCubic: 0, 3392 OUT_CUBIC: 1, 3393 outCubic: 1, 3394 INOUT_CUBIC: 2, 3395 inOutCubic: 2, 3396 LINEAR: 3, 3397 linear: 3, 3398 IN_BACK_CUBIC: 4, 3399 inBackCubic: 4, 3400 OUT_BACK_CUBIC: 5, 3401 outBackCubic: 5, 3402 INOUT_BACK_CUBIC: 6, 3403 inOutBackCubic: 6, 3404 CUSTOM_CUBIC: 7, 3405 customCubic: 7, 3406 SPRING: 8, 3407 spring: 8, 3408 GENTLE_SPRING: 9, 3409 gentleSpring: 9, 3410 CUSTOM_SPRING: 10, 3411 customSpring: 10, 3412 SPRING_PRESET_ONE: 11, 3413 springPresetOne: 11, 3414 SPRING_PRESET_TWO: 12, 3415 springPresetTwo: 12, 3416 SPRING_PRESET_THREE: 13, 3417 springPresetThree: 13, 3418 // For backwards compat 3419 bezier: 100, 3420 BEZIER: 100 3421 }; 3422 var InterpolationType = { 3423 HOLD: 0, 3424 hold: 0, 3425 BEZIER: 1, 3426 bezier: 1 3427 }; 3428 var KeyframeOperation = { 3429 SET: 0, 3430 set: 0, 3431 SCALE: 1, 3432 scale: 1, 3433 OFFSET: 2, 3434 offset: 2 3435 }; 3436 var ParameterField = { 3437 MISSING: 0, 3438 missing: 0, 3439 CORNER_RADIUS: 1, 3440 cornerRadius: 1, 3441 PARAGRAPH_SPACING: 2, 3442 paragraphSpacing: 2, 3443 PARAGRAPH_INDENT: 3, 3444 paragraphIndent: 3, 3445 STROKE_WEIGHT: 4, 3446 strokeWeight: 4, 3447 STACK_SPACING: 5, 3448 stackSpacing: 5, 3449 STACK_PADDING_LEFT: 6, 3450 stackPaddingLeft: 6, 3451 STACK_PADDING_TOP: 7, 3452 stackPaddingTop: 7, 3453 STACK_PADDING_RIGHT: 8, 3454 stackPaddingRight: 8, 3455 STACK_PADDING_BOTTOM: 9, 3456 stackPaddingBottom: 9, 3457 VISIBLE: 10, 3458 visible: 10, 3459 TEXT_DATA: 11, 3460 textData: 11, 3461 WIDTH: 12, 3462 width: 12, 3463 HEIGHT: 13, 3464 height: 13, 3465 RECTANGLE_TOP_LEFT_CORNER_RADIUS: 14, 3466 rectangleTopLeftCornerRadius: 14, 3467 RECTANGLE_TOP_RIGHT_CORNER_RADIUS: 15, 3468 rectangleTopRightCornerRadius: 15, 3469 RECTANGLE_BOTTOM_LEFT_CORNER_RADIUS: 16, 3470 rectangleBottomLeftCornerRadius: 16, 3471 RECTANGLE_BOTTOM_RIGHT_CORNER_RADIUS: 17, 3472 rectangleBottomRightCornerRadius: 17, 3473 BORDER_TOP_WEIGHT: 18, 3474 borderTopWeight: 18, 3475 BORDER_BOTTOM_WEIGHT: 19, 3476 borderBottomWeight: 19, 3477 BORDER_LEFT_WEIGHT: 20, 3478 borderLeftWeight: 20, 3479 BORDER_RIGHT_WEIGHT: 21, 3480 borderRightWeight: 21, 3481 VARIANT_PROPERTIES: 22, 3482 variantProperties: 22, 3483 STACK_COUNTER_SPACING: 23, 3484 stackCounterSpacing: 23, 3485 MIN_WIDTH: 24, 3486 minWidth: 24, 3487 MAX_WIDTH: 25, 3488 maxWidth: 25, 3489 MIN_HEIGHT: 26, 3490 minHeight: 26, 3491 MAX_HEIGHT: 27, 3492 maxHeight: 27, 3493 FONT_FAMILY: 28, 3494 fontFamily: 28, 3495 FONT_STYLE: 29, 3496 fontStyle: 29, 3497 FONT_VARIATIONS: 30, 3498 fontVariations: 30, 3499 OPACITY: 31, 3500 opacity: 31, 3501 FONT_SIZE: 32, 3502 fontSize: 32, 3503 LETTER_SPACING: 34, 3504 letterSpacing: 34, 3505 LINE_HEIGHT: 36, 3506 lineHeight: 36, 3507 OVERRIDDEN_SYMBOL_ID: 37, 3508 overriddenSymbolId: 37, 3509 CMS_SERIALIZED_RICH_TEXT_DATA: 38, 3510 cmsSerializedRichTextData: 38, 3511 HYPERLINK: 39, 3512 hyperlink: 39, 3513 SLOT_CONTENT_ID: 40, 3514 slotContentId: 40, 3515 GRID_ROW_GAP: 41, 3516 gridRowGap: 41, 3517 GRID_COLUMN_GAP: 42, 3518 gridColumnGap: 42, 3519 RELATIVE_X_POSITION: 43, 3520 xPosition: 43, 3521 RELATIVE_Y_POSITION: 44, 3522 relativeYPosition: 44, 3523 RELATIVE_ROTATION: 45, 3524 relativeRotation: 45, 3525 MOTION_TRANSLATION_X: 46, 3526 motionTranslationX: 46, 3527 MOTION_TRANSLATION_Y: 47, 3528 motionTranslationY: 47, 3529 MOTION_ROTATION: 48, 3530 motionRotation: 48, 3531 MOTION_SCALE_X: 49, 3532 motionScaleX: 49, 3533 MOTION_SCALE_Y: 50, 3534 motionScaleY: 50, 3535 MOTION_SHEAR: 51, 3536 motionShear: 51, 3537 SCROLL_OFFSET_X: 52, 3538 scrollOffsetX: 52, 3539 SCROLL_OFFSET_Y: 53, 3540 scrollOffsetY: 53, 3541 PATH_TRIM_START: 54, 3542 pathTrimStart: 54, 3543 PATH_TRIM_END: 55, 3544 pathTrimEnd: 55, 3545 DISSOLVE_PROGRESS: 56, 3546 dissolveProgress: 56 3547 }; 3548 var Keyframe = class { 3549 constructor(data) { 3550 this.timelinePosition = Math.round(data.timelinePosition); 3551 this.easing = data.easing; 3552 this.value = data.value; 3553 } 3554 }; 3555 var KeyframeTrack = class { 3556 constructor(data) { 3557 this.topLevelField = data.topLevelField; 3558 this.parameterField = data.parameterField; 3559 this.index = data.index; 3560 this.effectParametrizedField = data.effectParametrizedField; 3561 this.keyframeOperation = data.keyframeOperation; 3562 this.keyframes = data.keyframes; 3563 this.enabled = !!data.enabled; 3564 } 3565 }; 3566 var AnimationPreset = class { 3567 constructor(data) { 3568 this.nodeId = data.nodeId; 3569 this.keyframeTracks = data.keyframeTracks; 3570 } 3571 }; 3572 var PARAMETER_FIELD_ALIAS_MAP = { 3573 translateX: ParameterField.MOTION_TRANSLATION_X, 3574 translateY: ParameterField.MOTION_TRANSLATION_Y, 3575 rotate: ParameterField.MOTION_ROTATION, 3576 scaleX: ParameterField.MOTION_SCALE_X, 3577 scaleY: ParameterField.MOTION_SCALE_Y, 3578 shear: ParameterField.MOTION_SHEAR 3579 }; 3580 var KEYFRAMEABLE_FIELDS = /* @__PURE__ */ new Set(["translateX", "translateY", "rotate", "scaleX", "scaleY", "shear", "cornerRadius", "strokeWeight", "rectangleTopLeftCornerRadius", "rectangleTopRightCornerRadius", "rectangleBottomLeftCornerRadius", "rectangleBottomRightCornerRadius", "stackSpacing", "stackPaddingLeft", "stackPaddingTop", "stackPaddingRight", "stackPaddingBottom", "width", "height", "borderTopWeight", "borderBottomWeight", "borderLeftWeight", "borderRightWeight", "stackCounterSpacing", "minWidth", "maxWidth", "minHeight", "maxHeight", "opacity", "gridRowGap", "gridColumnGap", "textData", "pathTrimStart", "pathTrimEnd"]); 3581 var MODE_TO_OPERATION = { 3582 set: KeyframeOperation.SET, 3583 SET: KeyframeOperation.SET, 3584 offset: KeyframeOperation.OFFSET, 3585 OFFSET: KeyframeOperation.OFFSET, 3586 scale: KeyframeOperation.SCALE, 3587 SCALE: KeyframeOperation.SCALE 3588 }; 3589 function normalizeEasing(easing) { 3590 if (easing === void 0) return void 0; 3591 if (easing === "hold") return { interpolationType: InterpolationType.HOLD }; 3592 if (typeof easing === "string") { 3593 const easingType = EasingType[easing]; 3594 if (easingType === void 0) throw new Error('normalizeEasing: unknown easing "' + easing + '"'); 3595 return { easingType }; 3596 } 3597 return easing; 3598 } 3599 function compileKeyframe({ timelinePosition, value, easing }) { 3600 return new Keyframe({ 3601 timelinePosition: timelinePosition * 1e6, 3602 easing: normalizeEasing(easing), 3603 value 3604 }); 3605 } 3606 function tween({ mode, timelinePosition = 0, duration, from, to, easing, enabled = true }) { 3607 if (duration < 0) throw new Error("tween: duration must be non-negative"); 3608 return { 3609 mode, 3610 enabled, 3611 keyframes: [ 3612 { timelinePosition, value: from, easing }, 3613 { timelinePosition: timelinePosition + duration, value: to, easing } 3614 ] 3615 }; 3616 } 3617 function animate(node, definition) { 3618 const nodeId = typeof node === "string" ? node : node.id;
3619 const keyframeTracks = []; 3620 for (const [key, trackDef] of Object.entries(definition)) { 3621 if (!KEYFRAMEABLE_FIELDS.has(key)) { 3622 throw new Error('animate: unknown or non-keyframeable property "' + key + '"'); 3623 } 3624 const parameterField = PARAMETER_FIELD_ALIAS_MAP[key] ?? ParameterField[key]; 3625 const operation = MODE_TO_OPERATION[trackDef.mode]; 3626 if (operation === void 0) throw new Error('animate: unknown mode "' + trackDef.mode + '"'); 3627 const seen = /* @__PURE__ */ new Map(); 3628 for (const kf of trackDef.keyframes) seen.set(kf.timelinePosition, kf); 3629 const sorted = [...seen.values()].sort((a, b) => a.timelinePosition - b.timelinePosition); 3630 keyframeTracks.push(new KeyframeTrack({ 3631 parameterField, 3632 keyframeOperation: operation, 3633 keyframes: sorted.map(compileKeyframe), 3634 enabled: trackDef.enabled !== false 3635 })); 3636 } 3637 return new AnimationPreset({ nodeId, keyframeTracks }); 3638 } 3639 3640
3640// ../../../../../../../../execroot/_main/bazel-out/k8-fastbuild/bin/share/motion/src/presets/source/path_draw.ts 3641 function preset({ duration, mode, direction, target }) { 3642 const easing = { easingType: EasingType.LINEAR }; 3643 if (mode === "reveal") { 3644 if (direction === "forward") { 3645 return [ 3646 animate(target, { 3647 pathTrimStart: tween({ mode: "set", duration, from: 0, to: 0, easing }), 3648 pathTrimEnd: tween({ mode: "set", duration, from: 0, to: 1, easing }) 3649 }) 3650 ]; 3651 } else { 3652 return [ 3653 animate(target, { 3654 pathTrimStart: tween({ mode: "set", duration, from: 1, to: 0, easing }), 3655 pathTrimEnd: tween({ mode: "set", duration, from: 1, to: 1, easing }) 3656 }) 3657 ]; 3658 } 3659 } else { 3660 if (direction === "forward") { 3661 return [ 3662 animate(target, { 3663 pathTrimStart: tween({ mode: "set", duration, from: 0, to: 1, easing }), 3664 pathTrimEnd: tween({ mode: "set", duration, from: 1, to: 1, easing }) 3665 }) 3666 ]; 3667 } else { 3668 return [ 3669 animate(target, { 3670 pathTrimStart: tween({ mode: "set", duration, from: 0, to: 0, easing }), 3671 pathTrimEnd: tween({ mode: "set", duration, from: 1, to: 0, easing }) 3672 }) 3673 ]; 3674 } 3675 } 3676 } 3677 defineProperties(preset, { 3678 duration: { 3679 label: "Duration", 3680 type: "number", 3681 defaultValue: 0.5, 3682 control: "input", 3683 min: 0.01, 3684 unit: "s" 3685 }, 3686 mode: { 3687 label: "Mode", 3688 type: "string", 3689 defaultValue: "reveal", 3690 control: "select", 3691 options: [ 3692 { value: "reveal", label: "Reveal" }, 3693 { value: "hide", label: "Hide" } 3694 ] 3695 }, 3696 direction: { 3697 label: "Direction", 3698 type: "string", 3699 defaultValue: "forward", 3700 control: "select", 3701 options: [ 3702 { value: "forward", label: "Forward" }, 3703 { value: "reverse", label: "Reverse" } 3704 ] 3705 } 3706 }); 3707 return __toCommonJS(path_draw_exports); 3708})();`});var s0,a0,l0=Qt(()=>{s0=`// Source-of-truth for the PATH_TRAVEL first-party animation preset. 3709// 3710// The build-time preset-bundle codegen (see \`../scripts/generate_preset_bundles.ts\`) 3711// reads this file's raw text, esbuilds it into an IIFE with \`figma:motion\` 3712// resolved, and emits both strings into \`../generated/path_travel.generated.ts\`. 3713// The generated module is what runtime code consumes \u2014 never import this file 3714// directly from production code paths. 3715// 3716// This file is excluded from the share/motion \`ts_project\` compilation \u2014 it's 3717// only an input to the codegen tool, evaluated inside the QuickJS / iframe 3718// sandbox at runtime. 3719 3720import { animate, defineProperties, EasingType, tween } from 'figma:motion' 3721 3722import type { PresetArgs } from './preset_types' 3723 3724export default function preset({ 3725 duration, 3726 direction, 3727 segmentLength, 3728 loops, 3729 loopMode, 3730 target, 3731}: PresetArgs) { 3732 // Path Travel: A segment of the path travels along the entire path 3733 const segment = segmentLength / 100 // Convert percentage to 0-1 range 3734 const easing = { easingType: EasingType.LINEAR } 3735 3736 if (loopMode === 'circle') { 3737 // Circle mode: segment wraps around continuously 3738 if (direction === 'forward') { 3739 return [ 3740 animate(target, { 3741 pathTrimStart: tween({ mode: 'set', duration, from: 0, to: loops, easing }), 3742 pathTrimEnd: tween({ 3743 mode: 'set', 3744 duration, 3745 from: segment, 3746 to: segment + loops, 3747 easing, 3748 }), 3749 }), 3750 ] 3751 } else { 3752 return [ 3753 animate(target, { 3754 pathTrimStart: tween({ 3755 mode: 'set', 3756 duration, 3757 from: 1 - segment, 3758 to: 1 - segment - loops, 3759 easing, 3760 }), 3761 pathTrimEnd: tween({ mode: 'set', duration, from: 1, to: 1 - loops, easing }), 3762 }), 3763 ] 3764 } 3765 } 3766 3767 // Retrace mode: segment goes forward then backward for each loop 3768 const startKeyframes: Array<{ timelinePosition: number; value: number; easing: PresetArgs }> = [] 3769 const endKeyframes: Array<{ timelinePosition: number; value: number; easing: PresetArgs }> = [] 3770 const timePerLoop = duration / loops 3771 3772 if (direction === 'forward') { 3773 for (let i = 0; i < loops; i++) { 3774 const loopStartTime = i * timePerLoop 3775 const loopMidTime = loopStartTime + timePerLoop / 2 3776 const loopEndTime = loopStartTime + timePerLoop 3777 3778 // Forward phase 3779 startKeyframes.push({ timelinePosition: loopStartTime, value: 0, easing }) 3780 startKeyframes.push({ timelinePosition: loopMidTime, value: 1 - segment, easing }) 3781 // Backward phase 3782 startKeyframes.push({ timelinePosition: loopEndTime, value: 0, easing }) 3783 3784 endKeyframes.push({ timelinePosition: loopStartTime, value: segment, easing }) 3785 endKeyframes.push({ timelinePosition: loopMidTime, value: 1, easing }) 3786 endKeyframes.push({ timelinePosition: loopEndTime, value: segment, easing }) 3787 } 3788 } else { 3789 for (let i = 0; i < loops; i++) { 3790 const loopStartTime = i * timePerLoop 3791 const loopMidTime = loopStartTime + timePerLoop / 2 3792 const loopEndTime = loopStartTime + timePerLoop 3793 3794 // Backward phase 3795 startKeyframes.push({ timelinePosition: loopStartTime, value: 1 - segment, easing }) 3796 startKeyframes.push({ timelinePosition: loopMidTime, value: 0, easing }) 3797 // Forward phase 3798 startKeyframes.push({ timelinePosition: loopEndTime, value: 1 - segment, easing }) 3799 3800 endKeyframes.push({ timelinePosition: loopStartTime, value: 1, easing }) 3801 endKeyframes.push({ timelinePosition: loopMidTime, value: segment, easing }) 3802 endKeyframes.push({ timelinePosition: loopEndTime, value: 1, easing }) 3803 } 3804 } 3805 3806 return [ 3807 animate(target, {
3808 pathTrimStart: { mode: 'set', keyframes: startKeyframes }, 3809 pathTrimEnd: { mode: 'set', keyframes: endKeyframes }, 3810 }), 3811 ] 3812} 3813 3814// KEEP_IN_SYNC(share/motion/src/presets/path_travel_meta.ts) \u2014 these 3815// property bounds (min/max/unit) must match \`PROP_DEFS[*].inputConfig\` so the 3816// panel-side TS metadata and the bundled IIFE agree on every prop's contract. 3817defineProperties(preset, { 3818 duration: { 3819 label: 'Duration', 3820 type: 'number', 3821 defaultValue: 0.5, 3822 control: 'input', 3823 min: 0.01, 3824 unit: 's', 3825 }, 3826 direction: { 3827 label: 'Direction', 3828 type: 'string', 3829 defaultValue: 'forward', 3830 control: 'select', 3831 options: [ 3832 { value: 'forward', label: 'Forward' }, 3833 { value: 'reverse', label: 'Reverse' }, 3834 ], 3835 }, 3836 loopMode: { 3837 label: 'Loop Mode', 3838 type: 'string', 3839 defaultValue: 'circle', 3840 control: 'select', 3841 options: [ 3842 { value: 'circle', label: 'Circle Back' }, 3843 { value: 'retrace', label: 'Retrace Path' }, 3844 ], 3845 }, 3846 segmentLength: { 3847 label: 'Segment Length', 3848 type: 'number', 3849 defaultValue: 20, 3850 control: 'input', 3851 min: 0, 3852 max: 100, 3853 unit: '%', 3854 }, 3855 loops: { 3856 label: 'Loops', 3857 type: 'number', 3858 defaultValue: 1, 3859 control: 'input', 3860 min: 1, 3861 }, 3862}) 3863`,a0=`var __presetBundle = (() => { 3864 var __defProp = Object.defineProperty; 3865 var __getOwnPropDesc = Object.getOwnPropertyDescriptor; 3866 var __getOwnPropNames = Object.getOwnPropertyNames; 3867 var __hasOwnProp = Object.prototype.hasOwnProperty; 3868 var __export = (target, all) => { 3869 for (var name in all) 3870 __defProp(target, name, { get: all[name], enumerable: true }); 3871 }; 3872 var __copyProps = (to, from, except, desc) => { 3873 if (from && typeof from === "object" || typeof from === "function") { 3874 for (let key of __getOwnPropNames(from)) 3875 if (!__hasOwnProp.call(to, key) && key !== except) 3876 __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable }); 3877 } 3878 return to; 3879 }; 3880 var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod); 3881 3882
3882// ../../../../../../../../execroot/_main/bazel-out/k8-fastbuild/bin/share/motion/src/presets/source/path_travel.ts 3883 var path_travel_exports = {}; 3884 __export(path_travel_exports, { 3885 default: () => preset 3886 }); 3887 3888 // figma-motion:figma:motion 3889 function defineProperties(component, spec) { 3890 Object.assign(component, { 3891 [/* @__PURE__ */ Symbol.for("figma.react.props")]: spec 3892 }); 3893 } 3894 var EasingType = { 3895 IN_CUBIC: 0, 3896 inCubic: 0, 3897 OUT_CUBIC: 1, 3898 outCubic: 1, 3899 INOUT_CUBIC: 2, 3900 inOutCubic: 2, 3901 LINEAR: 3, 3902 linear: 3, 3903 IN_BACK_CUBIC: 4, 3904 inBackCubic: 4, 3905 OUT_BACK_CUBIC: 5, 3906 outBackCubic: 5, 3907 INOUT_BACK_CUBIC: 6, 3908 inOutBackCubic: 6, 3909 CUSTOM_CUBIC: 7, 3910 customCubic: 7, 3911 SPRING: 8, 3912 spring: 8, 3913 GENTLE_SPRING: 9, 3914 gentleSpring: 9, 3915 CUSTOM_SPRING: 10, 3916 customSpring: 10, 3917 SPRING_PRESET_ONE: 11, 3918 springPresetOne: 11, 3919 SPRING_PRESET_TWO: 12, 3920 springPresetTwo: 12, 3921 SPRING_PRESET_THREE: 13, 3922 springPresetThree: 13, 3923 // For backwards compat 3924 bezier: 100, 3925 BEZIER: 100 3926 }; 3927 var InterpolationType = { 3928 HOLD: 0, 3929 hold: 0, 3930 BEZIER: 1, 3931 bezier: 1 3932 }; 3933 var KeyframeOperation = { 3934 SET: 0, 3935 set: 0, 3936 SCALE: 1, 3937 scale: 1, 3938 OFFSET: 2, 3939 offset: 2 3940 }; 3941 var ParameterField = { 3942 MISSING: 0, 3943 missing: 0, 3944 CORNER_RADIUS: 1, 3945 cornerRadius: 1, 3946 PARAGRAPH_SPACING: 2, 3947 paragraphSpacing: 2, 3948 PARAGRAPH_INDENT: 3, 3949 paragraphIndent: 3, 3950 STROKE_WEIGHT: 4, 3951 strokeWeight: 4, 3952 STACK_SPACING: 5, 3953 stackSpacing: 5, 3954 STACK_PADDING_LEFT: 6, 3955 stackPaddingLeft: 6, 3956 STACK_PADDING_TOP: 7, 3957 stackPaddingTop: 7, 3958 STACK_PADDING_RIGHT: 8, 3959 stackPaddingRight: 8, 3960 STACK_PADDING_BOTTOM: 9, 3961 stackPaddingBottom: 9, 3962 VISIBLE: 10, 3963 visible: 10, 3964 TEXT_DATA: 11, 3965 textData: 11, 3966 WIDTH: 12, 3967 width: 12, 3968 HEIGHT: 13, 3969 height: 13, 3970 RECTANGLE_TOP_LEFT_CORNER_RADIUS: 14, 3971 rectangleTopLeftCornerRadius: 14, 3972 RECTANGLE_TOP_RIGHT_CORNER_RADIUS: 15, 3973 rectangleTopRightCornerRadius: 15, 3974 RECTANGLE_BOTTOM_LEFT_CORNER_RADIUS: 16, 3975 rectangleBottomLeftCornerRadius: 16, 3976 RECTANGLE_BOTTOM_RIGHT_CORNER_RADIUS: 17, 3977 rectangleBottomRightCornerRadius: 17, 3978 BORDER_TOP_WEIGHT: 18, 3979 borderTopWeight: 18, 3980 BORDER_BOTTOM_WEIGHT: 19, 3981 borderBottomWeight: 19, 3982 BORDER_LEFT_WEIGHT: 20, 3983 borderLeftWeight: 20, 3984 BORDER_RIGHT_WEIGHT: 21, 3985 borderRightWeight: 21, 3986 VARIANT_PROPERTIES: 22, 3987 variantProperties: 22, 3988 STACK_COUNTER_SPACING: 23, 3989 stackCounterSpacing: 23, 3990 MIN_WIDTH: 24, 3991 minWidth: 24, 3992 MAX_WIDTH: 25, 3993 maxWidth: 25, 3994 MIN_HEIGHT: 26, 3995 minHeight: 26, 3996 MAX_HEIGHT: 27, 3997 maxHeight: 27, 3998 FONT_FAMILY: 28, 3999 fontFamily: 28, 4000 FONT_STYLE: 29, 4001 fontStyle: 29, 4002 FONT_VARIATIONS: 30, 4003 fontVariations: 30, 4004 OPACITY: 31, 4005 opacity: 31, 4006 FONT_SIZE: 32, 4007 fontSize: 32, 4008 LETTER_SPACING: 34, 4009 letterSpacing: 34, 4010 LINE_HEIGHT: 36, 4011 lineHeight: 36, 4012 OVERRIDDEN_SYMBOL_ID: 37, 4013 overriddenSymbolId: 37, 4014 CMS_SERIALIZED_RICH_TEXT_DATA: 38, 4015 cmsSerializedRichTextData: 38, 4016 HYPERLINK: 39, 4017 hyperlink: 39, 4018 SLOT_CONTENT_ID: 40, 4019 slotContentId: 40, 4020 GRID_ROW_GAP: 41, 4021 gridRowGap: 41, 4022 GRID_COLUMN_GAP: 42, 4023 gridColumnGap: 42, 4024 RELATIVE_X_POSITION: 43, 4025 xPosition: 43, 4026 RELATIVE_Y_POSITION: 44, 4027 relativeYPosition: 44, 4028 RELATIVE_ROTATION: 45, 4029 relativeRotation: 45, 4030 MOTION_TRANSLATION_X: 46, 4031 motionTranslationX: 46, 4032 MOTION_TRANSLATION_Y: 47, 4033 motionTranslationY: 47, 4034 MOTION_ROTATION: 48, 4035 motionRotation: 48, 4036 MOTION_SCALE_X: 49, 4037 motionScaleX: 49, 4038 MOTION_SCALE_Y: 50, 4039 motionScaleY: 50, 4040 MOTION_SHEAR: 51, 4041 motionShear: 51, 4042 SCROLL_OFFSET_X: 52, 4043 scrollOffsetX: 52, 4044 SCROLL_OFFSET_Y: 53, 4045 scrollOffsetY: 53, 4046 PATH_TRIM_START: 54, 4047 pathTrimStart: 54, 4048 PATH_TRIM_END: 55, 4049 pathTrimEnd: 55, 4050 DISSOLVE_PROGRESS: 56, 4051 dissolveProgress: 56 4052 }; 4053 var Keyframe = class { 4054 constructor(data) { 4055 this.timelinePosition = Math.round(data.timelinePosition); 4056 this.easing = data.easing; 4057 this.value = data.value; 4058 } 4059 }; 4060 var KeyframeTrack = class { 4061 constructor(data) { 4062 this.topLevelField = data.topLevelField; 4063 this.parameterField = data.parameterField; 4064 this.index = data.index; 4065 this.effectParametrizedField = data.effectParametrizedField; 4066 this.keyframeOperation = data.keyframeOperation; 4067 this.keyframes = data.keyframes; 4068 this.enabled = !!data.enabled; 4069 } 4070 }; 4071 var AnimationPreset = class { 4072 constructor(data) { 4073 this.nodeId = data.nodeId; 4074 this.keyframeTracks = data.keyframeTracks; 4075 } 4076 }; 4077 var PARAMETER_FIELD_ALIAS_MAP = { 4078 translateX: ParameterField.MOTION_TRANSLATION_X, 4079 translateY: ParameterField.MOTION_TRANSLATION_Y, 4080 rotate: ParameterField.MOTION_ROTATION, 4081 scaleX: ParameterField.MOTION_SCALE_X, 4082 scaleY: ParameterField.MOTION_SCALE_Y, 4083 shear: ParameterField.MOTION_SHEAR 4084 }; 4085 var KEYFRAMEABLE_FIELDS = /* @__PURE__ */ new Set(["translateX", "translateY", "rotate", "scaleX", "scaleY", "shear", "cornerRadius", "strokeWeight", "rectangleTopLeftCornerRadius", "rectangleTopRightCornerRadius", "rectangleBottomLeftCornerRadius", "rectangleBottomRightCornerRadius", "stackSpacing", "stackPaddingLeft", "stackPaddingTop", "stackPaddingRight", "stackPaddingBottom", "width", "height", "borderTopWeight", "borderBottomWeight", "borderLeftWeight", "borderRightWeight", "stackCounterSpacing", "minWidth", "maxWidth", "minHeight", "maxHeight", "opacity", "gridRowGap", "gridColumnGap", "textData", "pathTrimStart", "pathTrimEnd"]); 4086 var MODE_TO_OPERATION = { 4087 set: KeyframeOperation.SET, 4088 SET: KeyframeOperation.SET, 4089 offset: KeyframeOperation.OFFSET, 4090 OFFSET: KeyframeOperation.OFFSET, 4091 scale: KeyframeOperation.SCALE, 4092 SCALE: KeyframeOperation.SCALE 4093 }; 4094 function normalizeEasing(easing) { 4095 if (easing === void 0) return void 0; 4096 if (easing === "hold") return { interpolationType: InterpolationType.HOLD }; 4097 if (typeof easing === "string") { 4098 const easingType = EasingType[easing]; 4099 if (easingType === void 0) throw new Error('normalizeEasing: unknown easing "' + easing + '"'); 4100 return { easingType }; 4101 } 4102 return easing; 4103 } 4104 function compileKeyframe({ timelinePosition, value, easing }) { 4105 return new Keyframe({ 4106 timelinePosition: timelinePosition * 1e6, 4107 easing: normalizeEasing(easing), 4108 value 4109 }); 4110 } 4111 function tween({ mode, timelinePosition = 0, duration, from, to, easing, enabled = true }) { 4112 if (duration < 0) throw new Error("tween: duration must be non-negative"); 4113 return { 4114 mode, 4115 enabled, 4116 keyframes: [ 4117 { timelinePosition, value: from, easing }, 4118 { timelinePosition: timelinePosition + duration, value: to, easing } 4119 ] 4120 }; 4121 } 4122 function animate(node, definition) { 4123 const nodeId = typeof node === "string" ? node : node.id;
4124 const keyframeTracks = []; 4125 for (const [key, trackDef] of Object.entries(definition)) { 4126 if (!KEYFRAMEABLE_FIELDS.has(key)) { 4127 throw new Error('animate: unknown or non-keyframeable property "' + key + '"'); 4128 } 4129 const parameterField = PARAMETER_FIELD_ALIAS_MAP[key] ?? ParameterField[key]; 4130 const operation = MODE_TO_OPERATION[trackDef.mode]; 4131 if (operation === void 0) throw new Error('animate: unknown mode "' + trackDef.mode + '"'); 4132 const seen = /* @__PURE__ */ new Map(); 4133 for (const kf of trackDef.keyframes) seen.set(kf.timelinePosition, kf); 4134 const sorted = [...seen.values()].sort((a, b) => a.timelinePosition - b.timelinePosition); 4135 keyframeTracks.push(new KeyframeTrack({ 4136 parameterField, 4137 keyframeOperation: operation, 4138 keyframes: sorted.map(compileKeyframe), 4139 enabled: trackDef.enabled !== false 4140 })); 4141 } 4142 return new AnimationPreset({ nodeId, keyframeTracks }); 4143 } 4144 4145
4145// ../../../../../../../../execroot/_main/bazel-out/k8-fastbuild/bin/share/motion/src/presets/source/path_travel.ts 4146 function preset({ 4147 duration, 4148 direction, 4149 segmentLength, 4150 loops, 4151 loopMode, 4152 target 4153 }) { 4154 const segment = segmentLength / 100; 4155 const easing = { easingType: EasingType.LINEAR }; 4156 if (loopMode === "circle") { 4157 if (direction === "forward") { 4158 return [ 4159 animate(target, { 4160 pathTrimStart: tween({ mode: "set", duration, from: 0, to: loops, easing }), 4161 pathTrimEnd: tween({ 4162 mode: "set", 4163 duration, 4164 from: segment, 4165 to: segment + loops, 4166 easing 4167 }) 4168 }) 4169 ]; 4170 } else { 4171 return [ 4172 animate(target, { 4173 pathTrimStart: tween({ 4174 mode: "set", 4175 duration, 4176 from: 1 - segment, 4177 to: 1 - segment - loops, 4178 easing 4179 }), 4180 pathTrimEnd: tween({ mode: "set", duration, from: 1, to: 1 - loops, easing }) 4181 }) 4182 ]; 4183 } 4184 } 4185 const startKeyframes = []; 4186 const endKeyframes = []; 4187 const timePerLoop = duration / loops; 4188 if (direction === "forward") { 4189 for (let i = 0; i < loops; i++) { 4190 const loopStartTime = i * timePerLoop; 4191 const loopMidTime = loopStartTime + timePerLoop / 2; 4192 const loopEndTime = loopStartTime + timePerLoop; 4193 startKeyframes.push({ timelinePosition: loopStartTime, value: 0, easing }); 4194 startKeyframes.push({ timelinePosition: loopMidTime, value: 1 - segment, easing }); 4195 startKeyframes.push({ timelinePosition: loopEndTime, value: 0, easing }); 4196 endKeyframes.push({ timelinePosition: loopStartTime, value: segment, easing }); 4197 endKeyframes.push({ timelinePosition: loopMidTime, value: 1, easing }); 4198 endKeyframes.push({ timelinePosition: loopEndTime, value: segment, easing }); 4199 } 4200 } else { 4201 for (let i = 0; i < loops; i++) { 4202 const loopStartTime = i * timePerLoop; 4203 const loopMidTime = loopStartTime + timePerLoop / 2; 4204 const loopEndTime = loopStartTime + timePerLoop; 4205 startKeyframes.push({ timelinePosition: loopStartTime, value: 1 - segment, easing }); 4206 startKeyframes.push({ timelinePosition: loopMidTime, value: 0, easing }); 4207 startKeyframes.push({ timelinePosition: loopEndTime, value: 1 - segment, easing }); 4208 endKeyframes.push({ timelinePosition: loopStartTime, value: 1, easing }); 4209 endKeyframes.push({ timelinePosition: loopMidTime, value: segment, easing }); 4210 endKeyframes.push({ timelinePosition: loopEndTime, value: 1, easing }); 4211 } 4212 } 4213 return [ 4214 animate(target, { 4215 pathTrimStart: { mode: "set", keyframes: startKeyframes }, 4216 pathTrimEnd: { mode: "set", keyframes: endKeyframes } 4217 }) 4218 ]; 4219 } 4220 defineProperties(preset, { 4221 duration: { 4222 label: "Duration", 4223 type: "number", 4224 defaultValue: 0.5, 4225 control: "input", 4226 min: 0.01, 4227 unit: "s" 4228 }, 4229 direction: { 4230 label: "Direction", 4231 type: "string", 4232 defaultValue: "forward", 4233 control: "select", 4234 options: [ 4235 { value: "forward", label: "Forward" }, 4236 { value: "reverse", label: "Reverse" } 4237 ] 4238 }, 4239 loopMode: { 4240 label: "Loop Mode", 4241 type: "string", 4242 defaultValue: "circle", 4243 control: "select", 4244 options: [ 4245 { value: "circle", label: "Circle Back" }, 4246 { value: "retrace", label: "Retrace Path" } 4247 ] 4248 }, 4249 segmentLength: { 4250 label: "Segment Length", 4251 type: "number", 4252 defaultValue: 20, 4253 control: "input", 4254 min: 0, 4255 max: 100, 4256 unit: "%" 4257 }, 4258 loops: { 4259 label: "Loops", 4260 type: "number", 4261 defaultValue: 1, 4262 control: "input", 4263 min: 1 4264 } 4265 }); 4266 return __toCommonJS(path_travel_exports); 4267})();`});var u0,c0,d0=Qt(()=>{u0=`// Source-of-truth for the POSITION first-party animation preset. 4268// 4269// The build-time preset-bundle codegen (see \`../scripts/generate_preset_bundles.ts\`) 4270// reads this file's raw text, esbuilds it into an IIFE with \`figma:motion\` 4271// resolved, and emits both strings into \`../generated/position.generated.ts\`. 4272// The generated module is what runtime code consumes \u2014 never import this file
4273// directly from production code paths. 4274// 4275// This file is excluded from the share/motion \`ts_project\` compilation \u2014 it's 4276// only an input to the codegen tool, evaluated inside the QuickJS / iframe 4277// sandbox at runtime. 4278 4279import { animate, defineProperties, EasingType, tween } from 'figma:motion' 4280 4281import type { PresetArgs, PresetTrackDefinitions } from './preset_types' 4282 4283function buildAxisTrack(from: number, to: number, duration: number, easing: unknown) { 4284 return tween({ 4285 mode: 'offset', 4286 timelinePosition: 0, 4287 duration, 4288 from, 4289 to, 4290 easing, 4291 }) 4292} 4293 4294export default function preset({ 4295 type, 4296 direction, 4297 distance, 4298 axis, 4299 startX, 4300 startY, 4301 endX, 4302 endY, 4303 duration, 4304 easing, 4305 node, 4306}: PresetArgs) { 4307 const safeDistance = typeof distance === 'number' ? distance : 0 4308 const safeStartX = typeof startX === 'number' ? startX : 200 4309 const safeStartY = typeof startY === 'number' ? startY : 200 4310 const safeEndX = typeof endX === 'number' ? endX : 0 4311 const safeEndY = typeof endY === 'number' ? endY : 0 4312 const safeDuration = typeof duration === 'number' ? duration : 0.5 4313 4314 const directionalOffsets: Record<string, [number, number]> = { 4315 left: [-safeDistance, 0], 4316 right: [safeDistance, 0], 4317 top: [0, -safeDistance], 4318 bottom: [0, safeDistance], 4319 top_left: [-safeDistance, -safeDistance], 4320 top_right: [safeDistance, -safeDistance], 4321 bottom_left: [-safeDistance, safeDistance], 4322 bottom_right: [safeDistance, safeDistance], 4323 } 4324 4325 const [offsetX, offsetY] = directionalOffsets[direction] ?? [0, 0] 4326 4327 let xTrack: [number, number] | null = null 4328 let yTrack: [number, number] | null = null 4329 4330 switch (type) { 4331 case 'slide_in': { 4332 xTrack = [offsetX, 0] 4333 yTrack = [offsetY, 0] 4334 break 4335 } 4336 case 'slide_out': { 4337 xTrack = [0, offsetX] 4338 yTrack = [0, offsetY] 4339 break 4340 } 4341 case 'custom': { 4342 switch (axis) { 4343 case 'x': { 4344 xTrack = [safeStartX, safeEndX] 4345 break 4346 } 4347 case 'y': { 4348 yTrack = [safeStartY, safeEndY] 4349 break 4350 } 4351 case 'xy': 4352 default: { 4353 xTrack = [safeStartX, safeEndX] 4354 yTrack = [safeStartY, safeEndY] 4355 break 4356 } 4357 } 4358 break 4359 } 4360 default: 4361 break 4362 } 4363 4364 const definition: PresetTrackDefinitions = {} 4365 if (xTrack) { 4366 definition.translateX = buildAxisTrack(xTrack[0], xTrack[1], safeDuration, easing) 4367 } 4368 if (yTrack) { 4369 definition.translateY = buildAxisTrack(yTrack[0], yTrack[1], safeDuration, easing) 4370 } 4371 4372 return [animate(node, definition)] 4373} 4374 4375defineProperties(preset, { 4376 type: { 4377 label: 'motion.preset_flyout.type', 4378 type: 'string', 4379 defaultValue: 'slide_in', 4380 control: 'select', 4381 options: [ 4382 { value: 'slide_in', label: 'motion.preset_flyout.position.type.slide_in' }, 4383 { value: 'slide_out', label: 'motion.preset_flyout.position.type.slide_out' }, 4384 { value: 'custom', label: 'motion.preset_flyout.type.custom' }, 4385 ], 4386 }, 4387 direction: { 4388 label: 'motion.preset_flyout.direction', 4389 type: 'string', 4390 defaultValue: 'left', 4391 control: 'select', 4392 options: [ 4393 { value: 'left', label: 'motion.preset_flyout.position.direction.left' }, 4394 { value: 'right', label: 'motion.preset_flyout.position.direction.right' }, 4395 { value: 'top', label: 'motion.preset_flyout.position.direction.top' }, 4396 { value: 'bottom', label: 'motion.preset_flyout.position.direction.bottom' }, 4397 { value: 'top_left', label: 'motion.preset_flyout.top_left' }, 4398 { value: 'top_right', label: 'motion.preset_flyout.top_right' }, 4399 { value: 'bottom_left', label: 'motion.preset_flyout.bottom_left' }, 4400 { value: 'bottom_right', label: 'motion.preset_flyout.bottom_right' }, 4401 ], 4402 }, 4403 distance: { 4404 label: 'motion.preset_flyout.position.distance', 4405 type: 'number', 4406 control: 'input', 4407 defaultValue: 200, 4408 unit: 'px', 4409 }, 4410 axis: { 4411 label: 'motion.preset_flyout.axis', 4412 type: 'string', 4413 defaultValue: 'xy', 4414 control: 'select', 4415 options: [ 4416 { value: 'x', label: 'motion.preset_flyout.x' }, 4417 { value: 'y', label: 'motion.preset_flyout.y' }, 4418 { value: 'xy', label: 'motion.preset_flyout.both' }, 4419 ], 4420 },
4421 // TODO(showDividerAbove-cleanup): the \`showDividerAbove\` flags in this file 4422 // are redundant \u2014 section dividers are now applied client-side in the preset 4423 // flyout via \`forceShowDividerAboveTransform\` 4424 startX: { 4425 label: 'motion.preset_flyout.start', 4426 type: 'number', 4427 control: 'input', 4428 defaultValue: 200, 4429 showDividerAbove: true, 4430 icon: 'x', 4431 }, 4432 startY: { 4433 label: 'motion.preset_flyout.start', 4434 type: 'number', 4435 control: 'input', 4436 defaultValue: 200, 4437 icon: 'y', 4438 }, 4439 endX: { 4440 label: 'motion.preset_flyout.end', 4441 type: 'number', 4442 control: 'input', 4443 defaultValue: 0, 4444 icon: 'x', 4445 }, 4446 endY: { 4447 label: 'motion.preset_flyout.end', 4448 type: 'number', 4449 control: 'input', 4450 defaultValue: 0, 4451 icon: 'y', 4452 }, 4453 // Note: 'delay' is kept in sync with a preset's \`timelineOffset\` 4454 delay: { 4455 label: 'motion.preset_flyout.delay', 4456 type: 'number', 4457 control: 'input', 4458 defaultValue: 0, 4459 unit: 's', 4460 showDividerAbove: true, 4461 icon: 'delay', 4462 }, 4463 duration: { 4464 label: 'motion.preset_flyout.duration', 4465 type: 'number', 4466 control: 'input', 4467 defaultValue: 0.5, 4468 min: 0.01, 4469 unit: 's', 4470 icon: 'time', 4471 }, 4472 easing: { 4473 label: 'motion.preset_flyout.easing', 4474 type: 'easing', 4475 defaultValue: { 4476 easingType: EasingType.OUT_CUBIC, 4477 }, 4478 }, 4479}) 4480`,c0=`var __presetBundle = (() => { 4481 var __defProp = Object.defineProperty; 4482 var __getOwnPropDesc = Object.getOwnPropertyDescriptor; 4483 var __getOwnPropNames = Object.getOwnPropertyNames; 4484 var __hasOwnProp = Object.prototype.hasOwnProperty; 4485 var __export = (target, all) => { 4486 for (var name in all) 4487 __defProp(target, name, { get: all[name], enumerable: true }); 4488 }; 4489 var __copyProps = (to, from, except, desc) => { 4490 if (from && typeof from === "object" || typeof from === "function") { 4491 for (let key of __getOwnPropNames(from)) 4492 if (!__hasOwnProp.call(to, key) && key !== except) 4493 __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable }); 4494 } 4495 return to; 4496 }; 4497 var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod); 4498 4499
4499// ../../../../../../../../execroot/_main/bazel-out/k8-fastbuild/bin/share/motion/src/presets/source/position.ts 4500 var position_exports = {}; 4501 __export(position_exports, { 4502 default: () => preset 4503 }); 4504 4505 // figma-motion:figma:motion 4506 function defineProperties(component, spec) { 4507 Object.assign(component, { 4508 [/* @__PURE__ */ Symbol.for("figma.react.props")]: spec 4509 }); 4510 } 4511 var EasingType = { 4512 IN_CUBIC: 0, 4513 inCubic: 0, 4514 OUT_CUBIC: 1, 4515 outCubic: 1, 4516 INOUT_CUBIC: 2, 4517 inOutCubic: 2, 4518 LINEAR: 3, 4519 linear: 3, 4520 IN_BACK_CUBIC: 4, 4521 inBackCubic: 4, 4522 OUT_BACK_CUBIC: 5, 4523 outBackCubic: 5, 4524 INOUT_BACK_CUBIC: 6, 4525 inOutBackCubic: 6, 4526 CUSTOM_CUBIC: 7, 4527 customCubic: 7, 4528 SPRING: 8, 4529 spring: 8, 4530 GENTLE_SPRING: 9, 4531 gentleSpring: 9, 4532 CUSTOM_SPRING: 10, 4533 customSpring: 10, 4534 SPRING_PRESET_ONE: 11, 4535 springPresetOne: 11, 4536 SPRING_PRESET_TWO: 12, 4537 springPresetTwo: 12, 4538 SPRING_PRESET_THREE: 13, 4539 springPresetThree: 13, 4540 // For backwards compat 4541 bezier: 100, 4542 BEZIER: 100 4543 }; 4544 var InterpolationType = { 4545 HOLD: 0, 4546 hold: 0, 4547 BEZIER: 1, 4548 bezier: 1 4549 }; 4550 var KeyframeOperation = { 4551 SET: 0, 4552 set: 0, 4553 SCALE: 1, 4554 scale: 1, 4555 OFFSET: 2, 4556 offset: 2 4557 }; 4558 var ParameterField = { 4559 MISSING: 0, 4560 missing: 0, 4561 CORNER_RADIUS: 1, 4562 cornerRadius: 1, 4563 PARAGRAPH_SPACING: 2, 4564 paragraphSpacing: 2, 4565 PARAGRAPH_INDENT: 3, 4566 paragraphIndent: 3, 4567 STROKE_WEIGHT: 4, 4568 strokeWeight: 4, 4569 STACK_SPACING: 5, 4570 stackSpacing: 5, 4571 STACK_PADDING_LEFT: 6, 4572 stackPaddingLeft: 6, 4573 STACK_PADDING_TOP: 7, 4574 stackPaddingTop: 7, 4575 STACK_PADDING_RIGHT: 8, 4576 stackPaddingRight: 8, 4577 STACK_PADDING_BOTTOM: 9, 4578 stackPaddingBottom: 9, 4579 VISIBLE: 10, 4580 visible: 10, 4581 TEXT_DATA: 11, 4582 textData: 11, 4583 WIDTH: 12, 4584 width: 12, 4585 HEIGHT: 13, 4586 height: 13, 4587 RECTANGLE_TOP_LEFT_CORNER_RADIUS: 14, 4588 rectangleTopLeftCornerRadius: 14, 4589 RECTANGLE_TOP_RIGHT_CORNER_RADIUS: 15, 4590 rectangleTopRightCornerRadius: 15, 4591 RECTANGLE_BOTTOM_LEFT_CORNER_RADIUS: 16, 4592 rectangleBottomLeftCornerRadius: 16, 4593 RECTANGLE_BOTTOM_RIGHT_CORNER_RADIUS: 17, 4594 rectangleBottomRightCornerRadius: 17, 4595 BORDER_TOP_WEIGHT: 18, 4596 borderTopWeight: 18, 4597 BORDER_BOTTOM_WEIGHT: 19, 4598 borderBottomWeight: 19, 4599 BORDER_LEFT_WEIGHT: 20, 4600 borderLeftWeight: 20, 4601 BORDER_RIGHT_WEIGHT: 21, 4602 borderRightWeight: 21, 4603 VARIANT_PROPERTIES: 22, 4604 variantProperties: 22, 4605 STACK_COUNTER_SPACING: 23, 4606 stackCounterSpacing: 23, 4607 MIN_WIDTH: 24, 4608 minWidth: 24, 4609 MAX_WIDTH: 25, 4610 maxWidth: 25, 4611 MIN_HEIGHT: 26, 4612 minHeight: 26, 4613 MAX_HEIGHT: 27, 4614 maxHeight: 27, 4615 FONT_FAMILY: 28, 4616 fontFamily: 28, 4617 FONT_STYLE: 29, 4618 fontStyle: 29, 4619 FONT_VARIATIONS: 30, 4620 fontVariations: 30, 4621 OPACITY: 31, 4622 opacity: 31, 4623 FONT_SIZE: 32, 4624 fontSize: 32, 4625 LETTER_SPACING: 34, 4626 letterSpacing: 34, 4627 LINE_HEIGHT: 36, 4628 lineHeight: 36, 4629 OVERRIDDEN_SYMBOL_ID: 37, 4630 overriddenSymbolId: 37, 4631 CMS_SERIALIZED_RICH_TEXT_DATA: 38, 4632 cmsSerializedRichTextData: 38, 4633 HYPERLINK: 39, 4634 hyperlink: 39, 4635 SLOT_CONTENT_ID: 40, 4636 slotContentId: 40, 4637 GRID_ROW_GAP: 41, 4638 gridRowGap: 41, 4639 GRID_COLUMN_GAP: 42, 4640 gridColumnGap: 42, 4641 RELATIVE_X_POSITION: 43, 4642 xPosition: 43, 4643 RELATIVE_Y_POSITION: 44, 4644 relativeYPosition: 44, 4645 RELATIVE_ROTATION: 45, 4646 relativeRotation: 45, 4647 MOTION_TRANSLATION_X: 46, 4648 motionTranslationX: 46, 4649 MOTION_TRANSLATION_Y: 47, 4650 motionTranslationY: 47, 4651 MOTION_ROTATION: 48, 4652 motionRotation: 48, 4653 MOTION_SCALE_X: 49, 4654 motionScaleX: 49, 4655 MOTION_SCALE_Y: 50, 4656 motionScaleY: 50, 4657 MOTION_SHEAR: 51, 4658 motionShear: 51, 4659 SCROLL_OFFSET_X: 52, 4660 scrollOffsetX: 52, 4661 SCROLL_OFFSET_Y: 53, 4662 scrollOffsetY: 53, 4663 PATH_TRIM_START: 54, 4664 pathTrimStart: 54, 4665 PATH_TRIM_END: 55, 4666 pathTrimEnd: 55, 4667 DISSOLVE_PROGRESS: 56, 4668 dissolveProgress: 56 4669 }; 4670 var Keyframe = class { 4671 constructor(data) { 4672 this.timelinePosition = Math.round(data.timelinePosition); 4673 this.easing = data.easing; 4674 this.value = data.value; 4675 } 4676 }; 4677 var KeyframeTrack = class { 4678 constructor(data) { 4679 this.topLevelField = data.topLevelField; 4680 this.parameterField = data.parameterField; 4681 this.index = data.index; 4682 this.effectParametrizedField = data.effectParametrizedField; 4683 this.keyframeOperation = data.keyframeOperation; 4684 this.keyframes = data.keyframes; 4685 this.enabled = !!data.enabled; 4686 } 4687 }; 4688 var AnimationPreset = class { 4689 constructor(data) { 4690 this.nodeId = data.nodeId; 4691 this.keyframeTracks = data.keyframeTracks; 4692 } 4693 }; 4694 var PARAMETER_FIELD_ALIAS_MAP = { 4695 translateX: ParameterField.MOTION_TRANSLATION_X, 4696 translateY: ParameterField.MOTION_TRANSLATION_Y, 4697 rotate: ParameterField.MOTION_ROTATION, 4698 scaleX: ParameterField.MOTION_SCALE_X, 4699 scaleY: ParameterField.MOTION_SCALE_Y, 4700 shear: ParameterField.MOTION_SHEAR 4701 }; 4702 var KEYFRAMEABLE_FIELDS = /* @__PURE__ */ new Set(["translateX", "translateY", "rotate", "scaleX", "scaleY", "shear", "cornerRadius", "strokeWeight", "rectangleTopLeftCornerRadius", "rectangleTopRightCornerRadius", "rectangleBottomLeftCornerRadius", "rectangleBottomRightCornerRadius", "stackSpacing", "stackPaddingLeft", "stackPaddingTop", "stackPaddingRight", "stackPaddingBottom", "width", "height", "borderTopWeight", "borderBottomWeight", "borderLeftWeight", "borderRightWeight", "stackCounterSpacing", "minWidth", "maxWidth", "minHeight", "maxHeight", "opacity", "gridRowGap", "gridColumnGap", "textData", "pathTrimStart", "pathTrimEnd"]); 4703 var MODE_TO_OPERATION = { 4704 set: KeyframeOperation.SET, 4705 SET: KeyframeOperation.SET, 4706 offset: KeyframeOperation.OFFSET, 4707 OFFSET: KeyframeOperation.OFFSET, 4708 scale: KeyframeOperation.SCALE, 4709 SCALE: KeyframeOperation.SCALE 4710 }; 4711 function normalizeEasing(easing) { 4712 if (easing === void 0) return void 0; 4713 if (easing === "hold") return { interpolationType: InterpolationType.HOLD }; 4714 if (typeof easing === "string") { 4715 const easingType = EasingType[easing]; 4716 if (easingType === void 0) throw new Error('normalizeEasing: unknown easing "' + easing + '"'); 4717 return { easingType }; 4718 } 4719 return easing; 4720 } 4721 function compileKeyframe({ timelinePosition, value, easing }) { 4722 return new Keyframe({ 4723 timelinePosition: timelinePosition * 1e6, 4724 easing: normalizeEasing(easing), 4725 value 4726 }); 4727 } 4728 function tween({ mode, timelinePosition = 0, duration, from, to, easing, enabled = true }) { 4729 if (duration < 0) throw new Error("tween: duration must be non-negative"); 4730 return { 4731 mode, 4732 enabled, 4733 keyframes: [ 4734 { timelinePosition, value: from, easing }, 4735 { timelinePosition: timelinePosition + duration, value: to, easing } 4736 ] 4737 }; 4738 } 4739 function animate(node, definition) { 4740 const nodeId = typeof node === "string" ? node : node.id;
4741 const keyframeTracks = []; 4742 for (const [key, trackDef] of Object.entries(definition)) { 4743 if (!KEYFRAMEABLE_FIELDS.has(key)) { 4744 throw new Error('animate: unknown or non-keyframeable property "' + key + '"'); 4745 } 4746 const parameterField = PARAMETER_FIELD_ALIAS_MAP[key] ?? ParameterField[key]; 4747 const operation = MODE_TO_OPERATION[trackDef.mode]; 4748 if (operation === void 0) throw new Error('animate: unknown mode "' + trackDef.mode + '"'); 4749 const seen = /* @__PURE__ */ new Map(); 4750 for (const kf of trackDef.keyframes) seen.set(kf.timelinePosition, kf); 4751 const sorted = [...seen.values()].sort((a, b) => a.timelinePosition - b.timelinePosition); 4752 keyframeTracks.push(new KeyframeTrack({ 4753 parameterField, 4754 keyframeOperation: operation, 4755 keyframes: sorted.map(compileKeyframe), 4756 enabled: trackDef.enabled !== false 4757 })); 4758 } 4759 return new AnimationPreset({ nodeId, keyframeTracks }); 4760 } 4761 4762
4762// ../../../../../../../../execroot/_main/bazel-out/k8-fastbuild/bin/share/motion/src/presets/source/position.ts 4763 function buildAxisTrack(from, to, duration, easing) { 4764 return tween({ 4765 mode: "offset", 4766 timelinePosition: 0, 4767 duration, 4768 from, 4769 to, 4770 easing 4771 }); 4772 } 4773 function preset({ 4774 type, 4775 direction, 4776 distance, 4777 axis, 4778 startX, 4779 startY, 4780 endX, 4781 endY, 4782 duration, 4783 easing, 4784 node 4785 }) { 4786 const safeDistance = typeof distance === "number" ? distance : 0; 4787 const safeStartX = typeof startX === "number" ? startX : 200; 4788 const safeStartY = typeof startY === "number" ? startY : 200; 4789 const safeEndX = typeof endX === "number" ? endX : 0; 4790 const safeEndY = typeof endY === "number" ? endY : 0; 4791 const safeDuration = typeof duration === "number" ? duration : 0.5; 4792 const directionalOffsets = { 4793 left: [-safeDistance, 0], 4794 right: [safeDistance, 0], 4795 top: [0, -safeDistance], 4796 bottom: [0, safeDistance], 4797 top_left: [-safeDistance, -safeDistance], 4798 top_right: [safeDistance, -safeDistance], 4799 bottom_left: [-safeDistance, safeDistance], 4800 bottom_right: [safeDistance, safeDistance] 4801 }; 4802 const [offsetX, offsetY] = directionalOffsets[direction] ?? [0, 0]; 4803 let xTrack = null; 4804 let yTrack = null; 4805 switch (type) { 4806 case "slide_in": { 4807 xTrack = [offsetX, 0]; 4808 yTrack = [offsetY, 0]; 4809 break; 4810 } 4811 case "slide_out": { 4812 xTrack = [0, offsetX]; 4813 yTrack = [0, offsetY]; 4814 break; 4815 } 4816 case "custom": { 4817 switch (axis) { 4818 case "x": { 4819 xTrack = [safeStartX, safeEndX]; 4820 break; 4821 } 4822 case "y": { 4823 yTrack = [safeStartY, safeEndY]; 4824 break; 4825 } 4826 case "xy": 4827 default: { 4828 xTrack = [safeStartX, safeEndX]; 4829 yTrack = [safeStartY, safeEndY]; 4830 break; 4831 } 4832 } 4833 break; 4834 } 4835 default: 4836 break; 4837 } 4838 const definition = {}; 4839 if (xTrack) { 4840 definition.translateX = buildAxisTrack(xTrack[0], xTrack[1], safeDuration, easing); 4841 } 4842 if (yTrack) { 4843 definition.translateY = buildAxisTrack(yTrack[0], yTrack[1], safeDuration, easing); 4844 } 4845 return [animate(node, definition)]; 4846 } 4847 defineProperties(preset, { 4848 type: { 4849 label: "motion.preset_flyout.type", 4850 type: "string", 4851 defaultValue: "slide_in", 4852 control: "select", 4853 options: [ 4854 { value: "slide_in", label: "motion.preset_flyout.position.type.slide_in" }, 4855 { value: "slide_out", label: "motion.preset_flyout.position.type.slide_out" }, 4856 { value: "custom", label: "motion.preset_flyout.type.custom" } 4857 ] 4858 }, 4859 direction: { 4860 label: "motion.preset_flyout.direction", 4861 type: "string", 4862 defaultValue: "left", 4863 control: "select", 4864 options: [ 4865 { value: "left", label: "motion.preset_flyout.position.direction.left" }, 4866 { value: "right", label: "motion.preset_flyout.position.direction.right" }, 4867 { value: "top", label: "motion.preset_flyout.position.direction.top" }, 4868 { value: "bottom", label: "motion.preset_flyout.position.direction.bottom" }, 4869 { value: "top_left", label: "motion.preset_flyout.top_left" }, 4870 { value: "top_right", label: "motion.preset_flyout.top_right" }, 4871 { value: "bottom_left", label: "motion.preset_flyout.bottom_left" }, 4872 { value: "bottom_right", label: "motion.preset_flyout.bottom_right" } 4873 ] 4874 }, 4875 distance: { 4876 label: "motion.preset_flyout.position.distance", 4877 type: "number", 4878 control: "input", 4879 defaultValue: 200, 4880 unit: "px" 4881 }, 4882 axis: { 4883 label: "motion.preset_flyout.axis", 4884 type: "string", 4885 defaultValue: "xy", 4886 control: "select", 4887 options: [ 4888 { value: "x", label: "motion.preset_flyout.x" }, 4889 { value: "y", label: "motion.preset_flyout.y" }, 4890 { value: "xy", label: "motion.preset_flyout.both" } 4891 ] 4892 },
4893 // TODO(showDividerAbove-cleanup): the \`showDividerAbove\` flags in this file 4894 // are redundant \u2014 section dividers are now applied client-side in the preset 4895 // flyout via \`forceShowDividerAboveTransform\` 4896 startX: { 4897 label: "motion.preset_flyout.start", 4898 type: "number", 4899 control: "input", 4900 defaultValue: 200, 4901 showDividerAbove: true, 4902 icon: "x" 4903 }, 4904 startY: { 4905 label: "motion.preset_flyout.start", 4906 type: "number", 4907 control: "input", 4908 defaultValue: 200, 4909 icon: "y" 4910 }, 4911 endX: { 4912 label: "motion.preset_flyout.end", 4913 type: "number", 4914 control: "input", 4915 defaultValue: 0, 4916 icon: "x" 4917 }, 4918 endY: { 4919 label: "motion.preset_flyout.end", 4920 type: "number", 4921 control: "input", 4922 defaultValue: 0, 4923 icon: "y" 4924 }, 4925 // Note: 'delay' is kept in sync with a preset's \`timelineOffset\` 4926 delay: { 4927 label: "motion.preset_flyout.delay", 4928 type: "number", 4929 control: "input", 4930 defaultValue: 0, 4931 unit: "s", 4932 showDividerAbove: true, 4933 icon: "delay" 4934 }, 4935 duration: { 4936 label: "motion.preset_flyout.duration", 4937 type: "number", 4938 control: "input", 4939 defaultValue: 0.5, 4940 min: 0.01, 4941 unit: "s", 4942 icon: "time" 4943 }, 4944 easing: { 4945 label: "motion.preset_flyout.easing", 4946 type: "easing", 4947 defaultValue: { 4948 easingType: EasingType.OUT_CUBIC 4949 } 4950 } 4951 }); 4952 return __toCommonJS(position_exports); 4953})();`});
4953var f0,p0,m0=Qt(()=>{f0=`// Source-of-truth for the RESIZE first-party animation preset. 4954// 4955// The build-time preset-bundle codegen (see \`../scripts/generate_preset_bundles.ts\`) 4956// reads this file's raw text, esbuilds it into an IIFE with \`figma:motion\` 4957// resolved, and emits both strings into \`../generated/resize.generated.ts\`. The 4958// generated module is what runtime code consumes \u2014 never import this file 4959// directly from production code paths. 4960// 4961// This file is excluded from the share/motion \`ts_project\` compilation \u2014 it's 4962// only an input to the codegen tool, evaluated inside the QuickJS / iframe 4963// sandbox at runtime. 4964 4965import { animate, defineProperties, EasingType, tween } from 'figma:motion' 4966 4967import type { PresetArgs, PresetTrackDefinitions } from './preset_types' 4968 4969export default function preset({ widthChange, heightChange, duration, easing, node }: PresetArgs) { 4970 const definition: PresetTrackDefinitions = {} 4971 4972 if (widthChange !== 0) 4973 definition.width = tween({ 4974 mode: 'offset', 4975 duration, 4976 from: 0, 4977 to: widthChange, 4978 easing, 4979 }) 4980 4981 if (heightChange !== 0) 4982 definition.height = tween({ 4983 mode: 'offset', 4984 duration, 4985 from: 0, 4986 to: heightChange, 4987 easing, 4988 }) 4989 4990 return [animate(node, definition)] 4991} 4992 4993defineProperties(preset, { 4994 widthChange: { 4995 label: 'Width Change', 4996 type: 'number', 4997 defaultValue: 100, 4998 control: 'input', 4999 }, 5000 heightChange: { 5001 label: 'Height Change', 5002 type: 'number', 5003 defaultValue: 0, 5004 control: 'input', 5005 }, 5006 duration: { 5007 label: 'Duration', 5008 type: 'number', 5009 defaultValue: 0.5, 5010 control: 'input', 5011 min: 0.01, 5012 unit: 's', 5013 }, 5014 easing: { 5015 label: 'Easing', 5016 type: 'easing', 5017 defaultValue: { 5018 easingType: EasingType.OUT_CUBIC, 5019 }, 5020 }, 5021}) 5022`,p0=`var __presetBundle = (() => { 5023 var __defProp = Object.defineProperty; 5024 var __getOwnPropDesc = Object.getOwnPropertyDescriptor; 5025 var __getOwnPropNames = Object.getOwnPropertyNames; 5026 var __hasOwnProp = Object.prototype.hasOwnProperty; 5027 var __export = (target, all) => { 5028 for (var name in all) 5029 __defProp(target, name, { get: all[name], enumerable: true }); 5030 }; 5031 var __copyProps = (to, from, except, desc) => { 5032 if (from && typeof from === "object" || typeof from === "function") { 5033 for (let key of __getOwnPropNames(from)) 5034 if (!__hasOwnProp.call(to, key) && key !== except) 5035 __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable }); 5036 } 5037 return to; 5038 }; 5039 var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod); 5040 5041
5041// ../../../../../../../../execroot/_main/bazel-out/k8-fastbuild/bin/share/motion/src/presets/source/resize.ts 5042 var resize_exports = {}; 5043 __export(resize_exports, { 5044 default: () => preset 5045 }); 5046 5047 // figma-motion:figma:motion 5048 function defineProperties(component, spec) { 5049 Object.assign(component, { 5050 [/* @__PURE__ */ Symbol.for("figma.react.props")]: spec 5051 }); 5052 } 5053 var EasingType = { 5054 IN_CUBIC: 0, 5055 inCubic: 0, 5056 OUT_CUBIC: 1, 5057 outCubic: 1, 5058 INOUT_CUBIC: 2, 5059 inOutCubic: 2, 5060 LINEAR: 3, 5061 linear: 3, 5062 IN_BACK_CUBIC: 4, 5063 inBackCubic: 4, 5064 OUT_BACK_CUBIC: 5, 5065 outBackCubic: 5, 5066 INOUT_BACK_CUBIC: 6, 5067 inOutBackCubic: 6, 5068 CUSTOM_CUBIC: 7, 5069 customCubic: 7, 5070 SPRING: 8, 5071 spring: 8, 5072 GENTLE_SPRING: 9, 5073 gentleSpring: 9, 5074 CUSTOM_SPRING: 10, 5075 customSpring: 10, 5076 SPRING_PRESET_ONE: 11, 5077 springPresetOne: 11, 5078 SPRING_PRESET_TWO: 12, 5079 springPresetTwo: 12, 5080 SPRING_PRESET_THREE: 13, 5081 springPresetThree: 13, 5082 // For backwards compat 5083 bezier: 100, 5084 BEZIER: 100 5085 }; 5086 var InterpolationType = { 5087 HOLD: 0, 5088 hold: 0, 5089 BEZIER: 1, 5090 bezier: 1 5091 }; 5092 var KeyframeOperation = { 5093 SET: 0, 5094 set: 0, 5095 SCALE: 1, 5096 scale: 1, 5097 OFFSET: 2, 5098 offset: 2 5099 }; 5100 var ParameterField = { 5101 MISSING: 0, 5102 missing: 0, 5103 CORNER_RADIUS: 1, 5104 cornerRadius: 1, 5105 PARAGRAPH_SPACING: 2, 5106 paragraphSpacing: 2, 5107 PARAGRAPH_INDENT: 3, 5108 paragraphIndent: 3, 5109 STROKE_WEIGHT: 4, 5110 strokeWeight: 4, 5111 STACK_SPACING: 5, 5112 stackSpacing: 5, 5113 STACK_PADDING_LEFT: 6, 5114 stackPaddingLeft: 6, 5115 STACK_PADDING_TOP: 7, 5116 stackPaddingTop: 7, 5117 STACK_PADDING_RIGHT: 8, 5118 stackPaddingRight: 8, 5119 STACK_PADDING_BOTTOM: 9, 5120 stackPaddingBottom: 9, 5121 VISIBLE: 10, 5122 visible: 10, 5123 TEXT_DATA: 11, 5124 textData: 11, 5125 WIDTH: 12, 5126 width: 12, 5127 HEIGHT: 13, 5128 height: 13, 5129 RECTANGLE_TOP_LEFT_CORNER_RADIUS: 14, 5130 rectangleTopLeftCornerRadius: 14, 5131 RECTANGLE_TOP_RIGHT_CORNER_RADIUS: 15, 5132 rectangleTopRightCornerRadius: 15, 5133 RECTANGLE_BOTTOM_LEFT_CORNER_RADIUS: 16, 5134 rectangleBottomLeftCornerRadius: 16, 5135 RECTANGLE_BOTTOM_RIGHT_CORNER_RADIUS: 17, 5136 rectangleBottomRightCornerRadius: 17, 5137 BORDER_TOP_WEIGHT: 18, 5138 borderTopWeight: 18, 5139 BORDER_BOTTOM_WEIGHT: 19, 5140 borderBottomWeight: 19, 5141 BORDER_LEFT_WEIGHT: 20, 5142 borderLeftWeight: 20, 5143 BORDER_RIGHT_WEIGHT: 21, 5144 borderRightWeight: 21, 5145 VARIANT_PROPERTIES: 22, 5146 variantProperties: 22, 5147 STACK_COUNTER_SPACING: 23, 5148 stackCounterSpacing: 23, 5149 MIN_WIDTH: 24, 5150 minWidth: 24, 5151 MAX_WIDTH: 25, 5152 maxWidth: 25, 5153 MIN_HEIGHT: 26, 5154 minHeight: 26, 5155 MAX_HEIGHT: 27, 5156 maxHeight: 27, 5157 FONT_FAMILY: 28, 5158 fontFamily: 28, 5159 FONT_STYLE: 29, 5160 fontStyle: 29, 5161 FONT_VARIATIONS: 30, 5162 fontVariations: 30, 5163 OPACITY: 31, 5164 opacity: 31, 5165 FONT_SIZE: 32, 5166 fontSize: 32, 5167 LETTER_SPACING: 34, 5168 letterSpacing: 34, 5169 LINE_HEIGHT: 36, 5170 lineHeight: 36, 5171 OVERRIDDEN_SYMBOL_ID: 37, 5172 overriddenSymbolId: 37, 5173 CMS_SERIALIZED_RICH_TEXT_DATA: 38, 5174 cmsSerializedRichTextData: 38, 5175 HYPERLINK: 39, 5176 hyperlink: 39, 5177 SLOT_CONTENT_ID: 40, 5178 slotContentId: 40, 5179 GRID_ROW_GAP: 41, 5180 gridRowGap: 41, 5181 GRID_COLUMN_GAP: 42, 5182 gridColumnGap: 42, 5183 RELATIVE_X_POSITION: 43, 5184 xPosition: 43, 5185 RELATIVE_Y_POSITION: 44, 5186 relativeYPosition: 44, 5187 RELATIVE_ROTATION: 45, 5188 relativeRotation: 45, 5189 MOTION_TRANSLATION_X: 46, 5190 motionTranslationX: 46, 5191 MOTION_TRANSLATION_Y: 47, 5192 motionTranslationY: 47, 5193 MOTION_ROTATION: 48, 5194 motionRotation: 48, 5195 MOTION_SCALE_X: 49, 5196 motionScaleX: 49, 5197 MOTION_SCALE_Y: 50, 5198 motionScaleY: 50, 5199 MOTION_SHEAR: 51, 5200 motionShear: 51, 5201 SCROLL_OFFSET_X: 52, 5202 scrollOffsetX: 52, 5203 SCROLL_OFFSET_Y: 53, 5204 scrollOffsetY: 53, 5205 PATH_TRIM_START: 54, 5206 pathTrimStart: 54, 5207 PATH_TRIM_END: 55, 5208 pathTrimEnd: 55, 5209 DISSOLVE_PROGRESS: 56, 5210 dissolveProgress: 56 5211 }; 5212 var Keyframe = class { 5213 constructor(data) { 5214 this.timelinePosition = Math.round(data.timelinePosition); 5215 this.easing = data.easing; 5216 this.value = data.value; 5217 } 5218 }; 5219 var KeyframeTrack = class { 5220 constructor(data) { 5221 this.topLevelField = data.topLevelField; 5222 this.parameterField = data.parameterField; 5223 this.index = data.index; 5224 this.effectParametrizedField = data.effectParametrizedField; 5225 this.keyframeOperation = data.keyframeOperation; 5226 this.keyframes = data.keyframes; 5227 this.enabled = !!data.enabled; 5228 } 5229 }; 5230 var AnimationPreset = class { 5231 constructor(data) { 5232 this.nodeId = data.nodeId; 5233 this.keyframeTracks = data.keyframeTracks; 5234 } 5235 }; 5236 var PARAMETER_FIELD_ALIAS_MAP = { 5237 translateX: ParameterField.MOTION_TRANSLATION_X, 5238 translateY: ParameterField.MOTION_TRANSLATION_Y, 5239 rotate: ParameterField.MOTION_ROTATION, 5240 scaleX: ParameterField.MOTION_SCALE_X, 5241 scaleY: ParameterField.MOTION_SCALE_Y, 5242 shear: ParameterField.MOTION_SHEAR 5243 }; 5244 var KEYFRAMEABLE_FIELDS = /* @__PURE__ */ new Set(["translateX", "translateY", "rotate", "scaleX", "scaleY", "shear", "cornerRadius", "strokeWeight", "rectangleTopLeftCornerRadius", "rectangleTopRightCornerRadius", "rectangleBottomLeftCornerRadius", "rectangleBottomRightCornerRadius", "stackSpacing", "stackPaddingLeft", "stackPaddingTop", "stackPaddingRight", "stackPaddingBottom", "width", "height", "borderTopWeight", "borderBottomWeight", "borderLeftWeight", "borderRightWeight", "stackCounterSpacing", "minWidth", "maxWidth", "minHeight", "maxHeight", "opacity", "gridRowGap", "gridColumnGap", "textData", "pathTrimStart", "pathTrimEnd"]); 5245 var MODE_TO_OPERATION = { 5246 set: KeyframeOperation.SET, 5247 SET: KeyframeOperation.SET, 5248 offset: KeyframeOperation.OFFSET, 5249 OFFSET: KeyframeOperation.OFFSET, 5250 scale: KeyframeOperation.SCALE, 5251 SCALE: KeyframeOperation.SCALE 5252 }; 5253 function normalizeEasing(easing) { 5254 if (easing === void 0) return void 0; 5255 if (easing === "hold") return { interpolationType: InterpolationType.HOLD }; 5256 if (typeof easing === "string") { 5257 const easingType = EasingType[easing]; 5258 if (easingType === void 0) throw new Error('normalizeEasing: unknown easing "' + easing + '"'); 5259 return { easingType }; 5260 } 5261 return easing; 5262 } 5263 function compileKeyframe({ timelinePosition, value, easing }) { 5264 return new Keyframe({ 5265 timelinePosition: timelinePosition * 1e6, 5266 easing: normalizeEasing(easing), 5267 value 5268 }); 5269 } 5270 function tween({ mode, timelinePosition = 0, duration, from, to, easing, enabled = true }) { 5271 if (duration < 0) throw new Error("tween: duration must be non-negative"); 5272 return { 5273 mode, 5274 enabled, 5275 keyframes: [ 5276 { timelinePosition, value: from, easing }, 5277 { timelinePosition: timelinePosition + duration, value: to, easing } 5278 ] 5279 }; 5280 } 5281 function animate(node, definition) { 5282 const nodeId = typeof node === "string" ? node : node.id;
5283 const keyframeTracks = []; 5284 for (const [key, trackDef] of Object.entries(definition)) { 5285 if (!KEYFRAMEABLE_FIELDS.has(key)) { 5286 throw new Error('animate: unknown or non-keyframeable property "' + key + '"'); 5287 } 5288 const parameterField = PARAMETER_FIELD_ALIAS_MAP[key] ?? ParameterField[key]; 5289 const operation = MODE_TO_OPERATION[trackDef.mode]; 5290 if (operation === void 0) throw new Error('animate: unknown mode "' + trackDef.mode + '"'); 5291 const seen = /* @__PURE__ */ new Map(); 5292 for (const kf of trackDef.keyframes) seen.set(kf.timelinePosition, kf); 5293 const sorted = [...seen.values()].sort((a, b) => a.timelinePosition - b.timelinePosition); 5294 keyframeTracks.push(new KeyframeTrack({ 5295 parameterField, 5296 keyframeOperation: operation, 5297 keyframes: sorted.map(compileKeyframe), 5298 enabled: trackDef.enabled !== false 5299 })); 5300 } 5301 return new AnimationPreset({ nodeId, keyframeTracks }); 5302 } 5303 5304
5304// ../../../../../../../../execroot/_main/bazel-out/k8-fastbuild/bin/share/motion/src/presets/source/resize.ts 5305 function preset({ widthChange, heightChange, duration, easing, node }) { 5306 const definition = {}; 5307 if (widthChange !== 0) 5308 definition.width = tween({ 5309 mode: "offset", 5310 duration, 5311 from: 0, 5312 to: widthChange, 5313 easing 5314 }); 5315 if (heightChange !== 0) 5316 definition.height = tween({ 5317 mode: "offset", 5318 duration, 5319 from: 0, 5320 to: heightChange, 5321 easing 5322 }); 5323 return [animate(node, definition)]; 5324 } 5325 defineProperties(preset, { 5326 widthChange: { 5327 label: "Width Change", 5328 type: "number", 5329 defaultValue: 100, 5330 control: "input" 5331 }, 5332 heightChange: { 5333 label: "Height Change", 5334 type: "number", 5335 defaultValue: 0, 5336 control: "input" 5337 }, 5338 duration: { 5339 label: "Duration", 5340 type: "number", 5341 defaultValue: 0.5, 5342 control: "input", 5343 min: 0.01, 5344 unit: "s" 5345 }, 5346 easing: { 5347 label: "Easing", 5348 type: "easing", 5349 defaultValue: { 5350 easingType: EasingType.OUT_CUBIC 5351 } 5352 } 5353 }); 5354 return __toCommonJS(resize_exports); 5355})();`});var E0,_0,T0=Qt(()=>{E0=`// Source-of-truth for the ROTATE first-party animation preset. 5356// 5357// The build-time preset-bundle codegen (see \`../scripts/generate_preset_bundles.ts\`) 5358// reads this file's raw text, esbuilds it into an IIFE with \`figma:motion\` 5359// resolved, and emits both strings into \`../generated/rotate.generated.ts\`. The 5360// generated module is what runtime code consumes \u2014 never import this file 5361// directly from production code paths. 5362// 5363// This file is excluded from the share/motion \`ts_project\` compilation \u2014 it's 5364// only an input to the codegen tool, evaluated inside the QuickJS / iframe 5365// sandbox at runtime. 5366 5367import { animate, defineProperties, EasingType, tween } from 'figma:motion' 5368 5369import type { PresetArgs, PresetTrackDefinitions } from './preset_types' 5370 5371export default function preset({ timing, rotation, duration, fade, easing, node }: PresetArgs) { 5372 const rotRad = rotation * (Math.PI / 180) 5373 const rFrom = timing === 'in' ? rotRad : 0 5374 const rTo = timing === 'in' ? 0 : rotRad 5375 const definition: PresetTrackDefinitions = { 5376 rotate: tween({ 5377 mode: 'offset', 5378 duration, 5379 from: rFrom, 5380 to: rTo, 5381 easing, 5382 }), 5383 } 5384 5385 if (fade) { 5386 const opFrom = timing === 'in' ? 0 : 1 5387 const opTo = timing === 'in' ? 1 : 0 5388 definition.opacity = tween({ 5389 mode: 'scale', 5390 duration, 5391 from: opFrom, 5392 to: opTo, 5393 easing, 5394 }) 5395 } 5396 5397 return [animate(node, definition)] 5398} 5399 5400defineProperties(preset, { 5401 timing: { 5402 label: 'Timing', 5403 type: 'string', 5404 defaultValue: 'out', 5405 control: 'select', 5406 options: [ 5407 { value: 'in', label: 'Rotate In' }, 5408 { value: 'out', label: 'Rotate Out' }, 5409 ], 5410 }, 5411 rotation: { 5412 label: 'Rotation', 5413 type: 'number', 5414 defaultValue: 180, 5415 control: 'input', 5416 }, 5417 duration: { 5418 label: 'Duration', 5419 type: 'number', 5420 defaultValue: 0.5, 5421 control: 'input', 5422 min: 0.01, 5423 unit: 's', 5424 }, 5425 fade: { 5426 label: 'Fade', 5427 type: 'boolean', 5428 defaultValue: false, 5429 }, 5430 easing: { 5431 label: 'Easing', 5432 type: 'easing', 5433 defaultValue: { 5434 easingType: EasingType.OUT_CUBIC, 5435 }, 5436 }, 5437}) 5438`,_0=`var __presetBundle = (() => { 5439 var __defProp = Object.defineProperty; 5440 var __getOwnPropDesc = Object.getOwnPropertyDescriptor; 5441 var __getOwnPropNames = Object.getOwnPropertyNames; 5442 var __hasOwnProp = Object.prototype.hasOwnProperty; 5443 var __export = (target, all) => { 5444 for (var name in all) 5445 __defProp(target, name, { get: all[name], enumerable: true }); 5446 }; 5447 var __copyProps = (to, from, except, desc) => { 5448 if (from && typeof from === "object" || typeof from === "function") { 5449 for (let key of __getOwnPropNames(from)) 5450 if (!__hasOwnProp.call(to, key) && key !== except) 5451 __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable }); 5452 } 5453 return to; 5454 }; 5455 var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod); 5456 5457
5457// ../../../../../../../../execroot/_main/bazel-out/k8-fastbuild/bin/share/motion/src/presets/source/rotate.ts 5458 var rotate_exports = {}; 5459 __export(rotate_exports, { 5460 default: () => preset 5461 }); 5462 5463 // figma-motion:figma:motion 5464 function defineProperties(component, spec) { 5465 Object.assign(component, { 5466 [/* @__PURE__ */ Symbol.for("figma.react.props")]: spec 5467 }); 5468 } 5469 var EasingType = { 5470 IN_CUBIC: 0, 5471 inCubic: 0, 5472 OUT_CUBIC: 1, 5473 outCubic: 1, 5474 INOUT_CUBIC: 2, 5475 inOutCubic: 2, 5476 LINEAR: 3, 5477 linear: 3, 5478 IN_BACK_CUBIC: 4, 5479 inBackCubic: 4, 5480 OUT_BACK_CUBIC: 5, 5481 outBackCubic: 5, 5482 INOUT_BACK_CUBIC: 6, 5483 inOutBackCubic: 6, 5484 CUSTOM_CUBIC: 7, 5485 customCubic: 7, 5486 SPRING: 8, 5487 spring: 8, 5488 GENTLE_SPRING: 9, 5489 gentleSpring: 9, 5490 CUSTOM_SPRING: 10, 5491 customSpring: 10, 5492 SPRING_PRESET_ONE: 11, 5493 springPresetOne: 11, 5494 SPRING_PRESET_TWO: 12, 5495 springPresetTwo: 12, 5496 SPRING_PRESET_THREE: 13, 5497 springPresetThree: 13, 5498 // For backwards compat 5499 bezier: 100, 5500 BEZIER: 100 5501 }; 5502 var InterpolationType = { 5503 HOLD: 0, 5504 hold: 0, 5505 BEZIER: 1, 5506 bezier: 1 5507 }; 5508 var KeyframeOperation = { 5509 SET: 0, 5510 set: 0, 5511 SCALE: 1, 5512 scale: 1, 5513 OFFSET: 2, 5514 offset: 2 5515 }; 5516 var ParameterField = { 5517 MISSING: 0, 5518 missing: 0, 5519 CORNER_RADIUS: 1, 5520 cornerRadius: 1, 5521 PARAGRAPH_SPACING: 2, 5522 paragraphSpacing: 2, 5523 PARAGRAPH_INDENT: 3, 5524 paragraphIndent: 3, 5525 STROKE_WEIGHT: 4, 5526 strokeWeight: 4, 5527 STACK_SPACING: 5, 5528 stackSpacing: 5, 5529 STACK_PADDING_LEFT: 6, 5530 stackPaddingLeft: 6, 5531 STACK_PADDING_TOP: 7, 5532 stackPaddingTop: 7, 5533 STACK_PADDING_RIGHT: 8, 5534 stackPaddingRight: 8, 5535 STACK_PADDING_BOTTOM: 9, 5536 stackPaddingBottom: 9, 5537 VISIBLE: 10, 5538 visible: 10, 5539 TEXT_DATA: 11, 5540 textData: 11, 5541 WIDTH: 12, 5542 width: 12, 5543 HEIGHT: 13, 5544 height: 13, 5545 RECTANGLE_TOP_LEFT_CORNER_RADIUS: 14, 5546 rectangleTopLeftCornerRadius: 14, 5547 RECTANGLE_TOP_RIGHT_CORNER_RADIUS: 15, 5548 rectangleTopRightCornerRadius: 15, 5549 RECTANGLE_BOTTOM_LEFT_CORNER_RADIUS: 16, 5550 rectangleBottomLeftCornerRadius: 16, 5551 RECTANGLE_BOTTOM_RIGHT_CORNER_RADIUS: 17, 5552 rectangleBottomRightCornerRadius: 17, 5553 BORDER_TOP_WEIGHT: 18, 5554 borderTopWeight: 18, 5555 BORDER_BOTTOM_WEIGHT: 19, 5556 borderBottomWeight: 19, 5557 BORDER_LEFT_WEIGHT: 20, 5558 borderLeftWeight: 20, 5559 BORDER_RIGHT_WEIGHT: 21, 5560 borderRightWeight: 21, 5561 VARIANT_PROPERTIES: 22, 5562 variantProperties: 22, 5563 STACK_COUNTER_SPACING: 23, 5564 stackCounterSpacing: 23, 5565 MIN_WIDTH: 24, 5566 minWidth: 24, 5567 MAX_WIDTH: 25, 5568 maxWidth: 25, 5569 MIN_HEIGHT: 26, 5570 minHeight: 26, 5571 MAX_HEIGHT: 27, 5572 maxHeight: 27, 5573 FONT_FAMILY: 28, 5574 fontFamily: 28, 5575 FONT_STYLE: 29, 5576 fontStyle: 29, 5577 FONT_VARIATIONS: 30, 5578 fontVariations: 30, 5579 OPACITY: 31, 5580 opacity: 31, 5581 FONT_SIZE: 32, 5582 fontSize: 32, 5583 LETTER_SPACING: 34, 5584 letterSpacing: 34, 5585 LINE_HEIGHT: 36, 5586 lineHeight: 36, 5587 OVERRIDDEN_SYMBOL_ID: 37, 5588 overriddenSymbolId: 37, 5589 CMS_SERIALIZED_RICH_TEXT_DATA: 38, 5590 cmsSerializedRichTextData: 38, 5591 HYPERLINK: 39, 5592 hyperlink: 39, 5593 SLOT_CONTENT_ID: 40, 5594 slotContentId: 40, 5595 GRID_ROW_GAP: 41, 5596 gridRowGap: 41, 5597 GRID_COLUMN_GAP: 42, 5598 gridColumnGap: 42, 5599 RELATIVE_X_POSITION: 43, 5600 xPosition: 43, 5601 RELATIVE_Y_POSITION: 44, 5602 relativeYPosition: 44, 5603 RELATIVE_ROTATION: 45, 5604 relativeRotation: 45, 5605 MOTION_TRANSLATION_X: 46, 5606 motionTranslationX: 46, 5607 MOTION_TRANSLATION_Y: 47, 5608 motionTranslationY: 47, 5609 MOTION_ROTATION: 48, 5610 motionRotation: 48, 5611 MOTION_SCALE_X: 49, 5612 motionScaleX: 49, 5613 MOTION_SCALE_Y: 50, 5614 motionScaleY: 50, 5615 MOTION_SHEAR: 51, 5616 motionShear: 51, 5617 SCROLL_OFFSET_X: 52, 5618 scrollOffsetX: 52, 5619 SCROLL_OFFSET_Y: 53, 5620 scrollOffsetY: 53, 5621 PATH_TRIM_START: 54, 5622 pathTrimStart: 54, 5623 PATH_TRIM_END: 55, 5624 pathTrimEnd: 55, 5625 DISSOLVE_PROGRESS: 56, 5626 dissolveProgress: 56 5627 }; 5628 var Keyframe = class { 5629 constructor(data) { 5630 this.timelinePosition = Math.round(data.timelinePosition); 5631 this.easing = data.easing; 5632 this.value = data.value; 5633 } 5634 }; 5635 var KeyframeTrack = class { 5636 constructor(data) { 5637 this.topLevelField = data.topLevelField; 5638 this.parameterField = data.parameterField; 5639 this.index = data.index; 5640 this.effectParametrizedField = data.effectParametrizedField; 5641 this.keyframeOperation = data.keyframeOperation; 5642 this.keyframes = data.keyframes; 5643 this.enabled = !!data.enabled; 5644 } 5645 }; 5646 var AnimationPreset = class { 5647 constructor(data) { 5648 this.nodeId = data.nodeId; 5649 this.keyframeTracks = data.keyframeTracks; 5650 } 5651 }; 5652 var PARAMETER_FIELD_ALIAS_MAP = { 5653 translateX: ParameterField.MOTION_TRANSLATION_X, 5654 translateY: ParameterField.MOTION_TRANSLATION_Y, 5655 rotate: ParameterField.MOTION_ROTATION, 5656 scaleX: ParameterField.MOTION_SCALE_X, 5657 scaleY: ParameterField.MOTION_SCALE_Y, 5658 shear: ParameterField.MOTION_SHEAR 5659 }; 5660 var KEYFRAMEABLE_FIELDS = /* @__PURE__ */ new Set(["translateX", "translateY", "rotate", "scaleX", "scaleY", "shear", "cornerRadius", "strokeWeight", "rectangleTopLeftCornerRadius", "rectangleTopRightCornerRadius", "rectangleBottomLeftCornerRadius", "rectangleBottomRightCornerRadius", "stackSpacing", "stackPaddingLeft", "stackPaddingTop", "stackPaddingRight", "stackPaddingBottom", "width", "height", "borderTopWeight", "borderBottomWeight", "borderLeftWeight", "borderRightWeight", "stackCounterSpacing", "minWidth", "maxWidth", "minHeight", "maxHeight", "opacity", "gridRowGap", "gridColumnGap", "textData", "pathTrimStart", "pathTrimEnd"]); 5661 var MODE_TO_OPERATION = { 5662 set: KeyframeOperation.SET, 5663 SET: KeyframeOperation.SET, 5664 offset: KeyframeOperation.OFFSET, 5665 OFFSET: KeyframeOperation.OFFSET, 5666 scale: KeyframeOperation.SCALE, 5667 SCALE: KeyframeOperation.SCALE 5668 }; 5669 function normalizeEasing(easing) { 5670 if (easing === void 0) return void 0; 5671 if (easing === "hold") return { interpolationType: InterpolationType.HOLD }; 5672 if (typeof easing === "string") { 5673 const easingType = EasingType[easing]; 5674 if (easingType === void 0) throw new Error('normalizeEasing: unknown easing "' + easing + '"'); 5675 return { easingType }; 5676 } 5677 return easing; 5678 } 5679 function compileKeyframe({ timelinePosition, value, easing }) { 5680 return new Keyframe({ 5681 timelinePosition: timelinePosition * 1e6, 5682 easing: normalizeEasing(easing), 5683 value 5684 }); 5685 } 5686 function tween({ mode, timelinePosition = 0, duration, from, to, easing, enabled = true }) { 5687 if (duration < 0) throw new Error("tween: duration must be non-negative"); 5688 return { 5689 mode, 5690 enabled, 5691 keyframes: [ 5692 { timelinePosition, value: from, easing }, 5693 { timelinePosition: timelinePosition + duration, value: to, easing } 5694 ] 5695 }; 5696 } 5697 function animate(node, definition) { 5698 const nodeId = typeof node === "string" ? node : node.id;
5699 const keyframeTracks = []; 5700 for (const [key, trackDef] of Object.entries(definition)) { 5701 if (!KEYFRAMEABLE_FIELDS.has(key)) { 5702 throw new Error('animate: unknown or non-keyframeable property "' + key + '"'); 5703 } 5704 const parameterField = PARAMETER_FIELD_ALIAS_MAP[key] ?? ParameterField[key]; 5705 const operation = MODE_TO_OPERATION[trackDef.mode]; 5706 if (operation === void 0) throw new Error('animate: unknown mode "' + trackDef.mode + '"'); 5707 const seen = /* @__PURE__ */ new Map(); 5708 for (const kf of trackDef.keyframes) seen.set(kf.timelinePosition, kf); 5709 const sorted = [...seen.values()].sort((a, b) => a.timelinePosition - b.timelinePosition); 5710 keyframeTracks.push(new KeyframeTrack({ 5711 parameterField, 5712 keyframeOperation: operation, 5713 keyframes: sorted.map(compileKeyframe), 5714 enabled: trackDef.enabled !== false 5715 })); 5716 } 5717 return new AnimationPreset({ nodeId, keyframeTracks }); 5718 } 5719 5720
5720// ../../../../../../../../execroot/_main/bazel-out/k8-fastbuild/bin/share/motion/src/presets/source/rotate.ts 5721 function preset({ timing, rotation, duration, fade, easing, node }) { 5722 const rotRad = rotation * (Math.PI / 180); 5723 const rFrom = timing === "in" ? rotRad : 0; 5724 const rTo = timing === "in" ? 0 : rotRad; 5725 const definition = { 5726 rotate: tween({ 5727 mode: "offset", 5728 duration, 5729 from: rFrom, 5730 to: rTo, 5731 easing 5732 }) 5733 }; 5734 if (fade) { 5735 const opFrom = timing === "in" ? 0 : 1; 5736 const opTo = timing === "in" ? 1 : 0; 5737 definition.opacity = tween({ 5738 mode: "scale", 5739 duration, 5740 from: opFrom, 5741 to: opTo, 5742 easing 5743 }); 5744 } 5745 return [animate(node, definition)]; 5746 } 5747 defineProperties(preset, { 5748 timing: { 5749 label: "Timing", 5750 type: "string", 5751 defaultValue: "out", 5752 control: "select", 5753 options: [ 5754 { value: "in", label: "Rotate In" }, 5755 { value: "out", label: "Rotate Out" } 5756 ] 5757 }, 5758 rotation: { 5759 label: "Rotation", 5760 type: "number", 5761 defaultValue: 180, 5762 control: "input" 5763 }, 5764 duration: { 5765 label: "Duration", 5766 type: "number", 5767 defaultValue: 0.5, 5768 control: "input", 5769 min: 0.01, 5770 unit: "s" 5771 }, 5772 fade: { 5773 label: "Fade", 5774 type: "boolean", 5775 defaultValue: false 5776 }, 5777 easing: { 5778 label: "Easing", 5779 type: "easing", 5780 defaultValue: { 5781 easingType: EasingType.OUT_CUBIC 5782 } 5783 } 5784 }); 5785 return __toCommonJS(rotate_exports); 5786})();`});var h0,O0,g0=Qt(()=>{h0=`// Source-of-truth for the NEW first-party animation preset. 5787// 5788// The build-time preset-bundle codegen (see \`../scripts/generate_preset_bundles.ts\`) 5789// reads this file's raw text, esbuilds it into an IIFE with \`figma:motion\` 5790// resolved, and emits both strings into \`../generated/new.generated.ts\`. The 5791// generated module is what runtime code consumes \u2014 never import this file 5792// directly from production code paths. 5793// 5794// This file is excluded from the share/motion \`ts_project\` compilation \u2014 it's 5795// only an input to the codegen tool, evaluated inside the QuickJS / iframe 5796// sandbox at runtime. 5797 5798import { animate, defineProperties, EasingType, tween } from 'figma:motion' 5799 5800import type { PresetArgs, PresetTrackDefinitions } from './preset_types' 5801 5802export default function preset({ 5803 type, 5804 direction, 5805 amount, 5806 start, 5807 end, 5808 duration, 5809 easing, 5810 node, 5811}: PresetArgs) { 5812 // Determine rotation values based on type 5813 let rotationStart: number 5814 let rotationEnd: number 5815 5816 if (type === 'custom') { 5817 // In custom mode, respect explicit start/end as entered by the user. 5818 rotationStart = start 5819 rotationEnd = end 5820 } else { 5821 // Direction/sign mapping (degrees): 5822 // - Clockwise: rotateIn -amount \u2192 0, rotateOut 0 \u2192 +amount 5823 // - Counter-clockwise: rotateIn +amount \u2192 0, rotateOut 0 \u2192 -amount 5824 const sign = direction === 'clockwise' ? -1 : 1 5825 if (type === 'rotateIn') { 5826 rotationStart = sign * amount 5827 rotationEnd = 0 5828 } else { 5829 // rotateOut 5830 rotationStart = 0 5831 rotationEnd = -sign * amount 5832 } 5833 } 5834 5835 // Convert degrees to radians 5836 const from = rotationStart * (Math.PI / 180) 5837 const to = rotationEnd * (Math.PI / 180) 5838 5839 const definition: PresetTrackDefinitions = {} 5840 definition.rotate = tween({ 5841 mode: 'offset', 5842 timelinePosition: 0, 5843 duration, 5844 from, 5845 to, 5846 easing, 5847 }) 5848 5849 return [animate(node, definition)] 5850} 5851 5852defineProperties(preset, { 5853 type: { 5854 label: 'motion.preset_flyout.type', 5855 type: 'string', 5856 defaultValue: 'rotateIn', 5857 control: 'select', 5858 options: [ 5859 { value: 'rotateIn', label: 'motion.preset_flyout.rotation.type.rotate_in' }, 5860 { value: 'rotateOut', label: 'motion.preset_flyout.rotation.type.rotate_out' }, 5861 { value: 'custom', label: 'motion.preset_flyout.type.custom' }, 5862 ], 5863 }, 5864 direction: { 5865 label: 'motion.preset_flyout.direction', 5866 type: 'string', 5867 defaultValue: 'clockwise', 5868 control: 'select', 5869 options: [ 5870 { value: 'clockwise', label: 'motion.preset_flyout.rotation.direction.clockwise' }, 5871 { 5872 value: 'counterClockwise', 5873 label: 'motion.preset_flyout.rotation.direction.counter_clockwise', 5874 }, 5875 ], 5876 }, 5877 amount: { 5878 label: 'motion.preset_flyout.amount', 5879 type: 'number', 5880 defaultValue: 180, 5881 control: 'input', 5882 unit: '\xB0', 5883 },
5884 // TODO(showDividerAbove-cleanup): the \`showDividerAbove\` flags in this file 5885 // are redundant \u2014 section dividers are now applied client-side in the preset 5886 // flyout via \`forceShowDividerAboveTransform\` 5887 start: { 5888 label: 'motion.preset_flyout.start', 5889 type: 'number', 5890 defaultValue: 180, 5891 control: 'input', 5892 unit: '\xB0', 5893 showDividerAbove: true, 5894 icon: 'rotation', 5895 }, 5896 end: { 5897 label: 'motion.preset_flyout.end', 5898 type: 'number', 5899 defaultValue: 0, 5900 control: 'input', 5901 unit: '\xB0', 5902 icon: 'rotation', 5903 }, 5904 delay: { 5905 label: 'motion.preset_flyout.delay', 5906 type: 'number', 5907 defaultValue: 0, 5908 control: 'input', 5909 unit: 's', 5910 showDividerAbove: true, 5911 icon: 'delay', 5912 }, 5913 duration: { 5914 label: 'motion.preset_flyout.duration', 5915 type: 'number', 5916 defaultValue: 0.5, 5917 control: 'input', 5918 min: 0.01, 5919 unit: 's', 5920 icon: 'time', 5921 }, 5922 easing: { 5923 label: 'motion.preset_flyout.easing', 5924 type: 'easing', 5925 defaultValue: { 5926 easingType: EasingType.OUT_CUBIC, 5927 }, 5928 }, 5929}) 5930`,O0=`var __presetBundle = (() => { 5931 var __defProp = Object.defineProperty; 5932 var __getOwnPropDesc = Object.getOwnPropertyDescriptor; 5933 var __getOwnPropNames = Object.getOwnPropertyNames; 5934 var __hasOwnProp = Object.prototype.hasOwnProperty; 5935 var __export = (target, all) => { 5936 for (var name in all) 5937 __defProp(target, name, { get: all[name], enumerable: true }); 5938 }; 5939 var __copyProps = (to, from, except, desc) => { 5940 if (from && typeof from === "object" || typeof from === "function") { 5941 for (let key of __getOwnPropNames(from)) 5942 if (!__hasOwnProp.call(to, key) && key !== except) 5943 __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable }); 5944 } 5945 return to; 5946 }; 5947 var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod); 5948 5949
5949// ../../../../../../../../execroot/_main/bazel-out/k8-fastbuild/bin/share/motion/src/presets/source/rotation.ts 5950 var rotation_exports = {}; 5951 __export(rotation_exports, { 5952 default: () => preset 5953 }); 5954 5955 // figma-motion:figma:motion 5956 function defineProperties(component, spec) { 5957 Object.assign(component, { 5958 [/* @__PURE__ */ Symbol.for("figma.react.props")]: spec 5959 }); 5960 } 5961 var EasingType = { 5962 IN_CUBIC: 0, 5963 inCubic: 0, 5964 OUT_CUBIC: 1, 5965 outCubic: 1, 5966 INOUT_CUBIC: 2, 5967 inOutCubic: 2, 5968 LINEAR: 3, 5969 linear: 3, 5970 IN_BACK_CUBIC: 4, 5971 inBackCubic: 4, 5972 OUT_BACK_CUBIC: 5, 5973 outBackCubic: 5, 5974 INOUT_BACK_CUBIC: 6, 5975 inOutBackCubic: 6, 5976 CUSTOM_CUBIC: 7, 5977 customCubic: 7, 5978 SPRING: 8, 5979 spring: 8, 5980 GENTLE_SPRING: 9, 5981 gentleSpring: 9, 5982 CUSTOM_SPRING: 10, 5983 customSpring: 10, 5984 SPRING_PRESET_ONE: 11, 5985 springPresetOne: 11, 5986 SPRING_PRESET_TWO: 12, 5987 springPresetTwo: 12, 5988 SPRING_PRESET_THREE: 13, 5989 springPresetThree: 13, 5990 // For backwards compat 5991 bezier: 100, 5992 BEZIER: 100 5993 }; 5994 var InterpolationType = { 5995 HOLD: 0, 5996 hold: 0, 5997 BEZIER: 1, 5998 bezier: 1 5999 }; 6000 var KeyframeOperation = { 6001 SET: 0, 6002 set: 0, 6003 SCALE: 1, 6004 scale: 1, 6005 OFFSET: 2, 6006 offset: 2 6007 }; 6008 var ParameterField = { 6009 MISSING: 0, 6010 missing: 0, 6011 CORNER_RADIUS: 1, 6012 cornerRadius: 1, 6013 PARAGRAPH_SPACING: 2, 6014 paragraphSpacing: 2, 6015 PARAGRAPH_INDENT: 3, 6016 paragraphIndent: 3, 6017 STROKE_WEIGHT: 4, 6018 strokeWeight: 4, 6019 STACK_SPACING: 5, 6020 stackSpacing: 5, 6021 STACK_PADDING_LEFT: 6, 6022 stackPaddingLeft: 6, 6023 STACK_PADDING_TOP: 7, 6024 stackPaddingTop: 7, 6025 STACK_PADDING_RIGHT: 8, 6026 stackPaddingRight: 8, 6027 STACK_PADDING_BOTTOM: 9, 6028 stackPaddingBottom: 9, 6029 VISIBLE: 10, 6030 visible: 10, 6031 TEXT_DATA: 11, 6032 textData: 11, 6033 WIDTH: 12, 6034 width: 12, 6035 HEIGHT: 13, 6036 height: 13, 6037 RECTANGLE_TOP_LEFT_CORNER_RADIUS: 14, 6038 rectangleTopLeftCornerRadius: 14, 6039 RECTANGLE_TOP_RIGHT_CORNER_RADIUS: 15, 6040 rectangleTopRightCornerRadius: 15, 6041 RECTANGLE_BOTTOM_LEFT_CORNER_RADIUS: 16, 6042 rectangleBottomLeftCornerRadius: 16, 6043 RECTANGLE_BOTTOM_RIGHT_CORNER_RADIUS: 17, 6044 rectangleBottomRightCornerRadius: 17, 6045 BORDER_TOP_WEIGHT: 18, 6046 borderTopWeight: 18, 6047 BORDER_BOTTOM_WEIGHT: 19, 6048 borderBottomWeight: 19, 6049 BORDER_LEFT_WEIGHT: 20, 6050 borderLeftWeight: 20, 6051 BORDER_RIGHT_WEIGHT: 21, 6052 borderRightWeight: 21, 6053 VARIANT_PROPERTIES: 22, 6054 variantProperties: 22, 6055 STACK_COUNTER_SPACING: 23, 6056 stackCounterSpacing: 23, 6057 MIN_WIDTH: 24, 6058 minWidth: 24, 6059 MAX_WIDTH: 25, 6060 maxWidth: 25, 6061 MIN_HEIGHT: 26, 6062 minHeight: 26, 6063 MAX_HEIGHT: 27, 6064 maxHeight: 27, 6065 FONT_FAMILY: 28, 6066 fontFamily: 28, 6067 FONT_STYLE: 29, 6068 fontStyle: 29, 6069 FONT_VARIATIONS: 30, 6070 fontVariations: 30, 6071 OPACITY: 31, 6072 opacity: 31, 6073 FONT_SIZE: 32, 6074 fontSize: 32, 6075 LETTER_SPACING: 34, 6076 letterSpacing: 34, 6077 LINE_HEIGHT: 36, 6078 lineHeight: 36, 6079 OVERRIDDEN_SYMBOL_ID: 37, 6080 overriddenSymbolId: 37, 6081 CMS_SERIALIZED_RICH_TEXT_DATA: 38, 6082 cmsSerializedRichTextData: 38, 6083 HYPERLINK: 39, 6084 hyperlink: 39, 6085 SLOT_CONTENT_ID: 40, 6086 slotContentId: 40, 6087 GRID_ROW_GAP: 41, 6088 gridRowGap: 41, 6089 GRID_COLUMN_GAP: 42, 6090 gridColumnGap: 42, 6091 RELATIVE_X_POSITION: 43, 6092 xPosition: 43, 6093 RELATIVE_Y_POSITION: 44, 6094 relativeYPosition: 44, 6095 RELATIVE_ROTATION: 45, 6096 relativeRotation: 45, 6097 MOTION_TRANSLATION_X: 46, 6098 motionTranslationX: 46, 6099 MOTION_TRANSLATION_Y: 47, 6100 motionTranslationY: 47, 6101 MOTION_ROTATION: 48, 6102 motionRotation: 48, 6103 MOTION_SCALE_X: 49, 6104 motionScaleX: 49, 6105 MOTION_SCALE_Y: 50, 6106 motionScaleY: 50, 6107 MOTION_SHEAR: 51, 6108 motionShear: 51, 6109 SCROLL_OFFSET_X: 52, 6110 scrollOffsetX: 52, 6111 SCROLL_OFFSET_Y: 53, 6112 scrollOffsetY: 53, 6113 PATH_TRIM_START: 54, 6114 pathTrimStart: 54, 6115 PATH_TRIM_END: 55, 6116 pathTrimEnd: 55, 6117 DISSOLVE_PROGRESS: 56, 6118 dissolveProgress: 56 6119 }; 6120 var Keyframe = class { 6121 constructor(data) { 6122 this.timelinePosition = Math.round(data.timelinePosition); 6123 this.easing = data.easing; 6124 this.value = data.value; 6125 } 6126 }; 6127 var KeyframeTrack = class { 6128 constructor(data) { 6129 this.topLevelField = data.topLevelField; 6130 this.parameterField = data.parameterField; 6131 this.index = data.index; 6132 this.effectParametrizedField = data.effectParametrizedField; 6133 this.keyframeOperation = data.keyframeOperation; 6134 this.keyframes = data.keyframes; 6135 this.enabled = !!data.enabled; 6136 } 6137 }; 6138 var AnimationPreset = class { 6139 constructor(data) { 6140 this.nodeId = data.nodeId; 6141 this.keyframeTracks = data.keyframeTracks; 6142 } 6143 }; 6144 var PARAMETER_FIELD_ALIAS_MAP = { 6145 translateX: ParameterField.MOTION_TRANSLATION_X, 6146 translateY: ParameterField.MOTION_TRANSLATION_Y, 6147 rotate: ParameterField.MOTION_ROTATION, 6148 scaleX: ParameterField.MOTION_SCALE_X, 6149 scaleY: ParameterField.MOTION_SCALE_Y, 6150 shear: ParameterField.MOTION_SHEAR 6151 }; 6152 var KEYFRAMEABLE_FIELDS = /* @__PURE__ */ new Set(["translateX", "translateY", "rotate", "scaleX", "scaleY", "shear", "cornerRadius", "strokeWeight", "rectangleTopLeftCornerRadius", "rectangleTopRightCornerRadius", "rectangleBottomLeftCornerRadius", "rectangleBottomRightCornerRadius", "stackSpacing", "stackPaddingLeft", "stackPaddingTop", "stackPaddingRight", "stackPaddingBottom", "width", "height", "borderTopWeight", "borderBottomWeight", "borderLeftWeight", "borderRightWeight", "stackCounterSpacing", "minWidth", "maxWidth", "minHeight", "maxHeight", "opacity", "gridRowGap", "gridColumnGap", "textData", "pathTrimStart", "pathTrimEnd"]); 6153 var MODE_TO_OPERATION = { 6154 set: KeyframeOperation.SET, 6155 SET: KeyframeOperation.SET, 6156 offset: KeyframeOperation.OFFSET, 6157 OFFSET: KeyframeOperation.OFFSET, 6158 scale: KeyframeOperation.SCALE, 6159 SCALE: KeyframeOperation.SCALE 6160 }; 6161 function normalizeEasing(easing) { 6162 if (easing === void 0) return void 0; 6163 if (easing === "hold") return { interpolationType: InterpolationType.HOLD }; 6164 if (typeof easing === "string") { 6165 const easingType = EasingType[easing]; 6166 if (easingType === void 0) throw new Error('normalizeEasing: unknown easing "' + easing + '"'); 6167 return { easingType }; 6168 } 6169 return easing; 6170 } 6171 function compileKeyframe({ timelinePosition, value, easing }) { 6172 return new Keyframe({ 6173 timelinePosition: timelinePosition * 1e6, 6174 easing: normalizeEasing(easing), 6175 value 6176 }); 6177 } 6178 function tween({ mode, timelinePosition = 0, duration, from, to, easing, enabled = true }) { 6179 if (duration < 0) throw new Error("tween: duration must be non-negative"); 6180 return { 6181 mode, 6182 enabled, 6183 keyframes: [ 6184 { timelinePosition, value: from, easing }, 6185 { timelinePosition: timelinePosition + duration, value: to, easing } 6186 ] 6187 }; 6188 } 6189 function animate(node, definition) { 6190 const nodeId = typeof node === "string" ? node : node.id;
6191 const keyframeTracks = []; 6192 for (const [key, trackDef] of Object.entries(definition)) { 6193 if (!KEYFRAMEABLE_FIELDS.has(key)) { 6194 throw new Error('animate: unknown or non-keyframeable property "' + key + '"'); 6195 } 6196 const parameterField = PARAMETER_FIELD_ALIAS_MAP[key] ?? ParameterField[key]; 6197 const operation = MODE_TO_OPERATION[trackDef.mode]; 6198 if (operation === void 0) throw new Error('animate: unknown mode "' + trackDef.mode + '"'); 6199 const seen = /* @__PURE__ */ new Map(); 6200 for (const kf of trackDef.keyframes) seen.set(kf.timelinePosition, kf); 6201 const sorted = [...seen.values()].sort((a, b) => a.timelinePosition - b.timelinePosition); 6202 keyframeTracks.push(new KeyframeTrack({ 6203 parameterField, 6204 keyframeOperation: operation, 6205 keyframes: sorted.map(compileKeyframe), 6206 enabled: trackDef.enabled !== false 6207 })); 6208 } 6209 return new AnimationPreset({ nodeId, keyframeTracks }); 6210 } 6211 6212
6212// ../../../../../../../../execroot/_main/bazel-out/k8-fastbuild/bin/share/motion/src/presets/source/rotation.ts 6213 function preset({ 6214 type, 6215 direction, 6216 amount, 6217 start, 6218 end, 6219 duration, 6220 easing, 6221 node 6222 }) { 6223 let rotationStart; 6224 let rotationEnd; 6225 if (type === "custom") { 6226 rotationStart = start; 6227 rotationEnd = end; 6228 } else { 6229 const sign = direction === "clockwise" ? -1 : 1; 6230 if (type === "rotateIn") { 6231 rotationStart = sign * amount; 6232 rotationEnd = 0; 6233 } else { 6234 rotationStart = 0; 6235 rotationEnd = -sign * amount; 6236 } 6237 } 6238 const from = rotationStart * (Math.PI / 180); 6239 const to = rotationEnd * (Math.PI / 180); 6240 const definition = {}; 6241 definition.rotate = tween({ 6242 mode: "offset", 6243 timelinePosition: 0, 6244 duration, 6245 from, 6246 to, 6247 easing 6248 }); 6249 return [animate(node, definition)]; 6250 } 6251 defineProperties(preset, { 6252 type: { 6253 label: "motion.preset_flyout.type", 6254 type: "string", 6255 defaultValue: "rotateIn", 6256 control: "select", 6257 options: [ 6258 { value: "rotateIn", label: "motion.preset_flyout.rotation.type.rotate_in" }, 6259 { value: "rotateOut", label: "motion.preset_flyout.rotation.type.rotate_out" }, 6260 { value: "custom", label: "motion.preset_flyout.type.custom" } 6261 ] 6262 }, 6263 direction: { 6264 label: "motion.preset_flyout.direction", 6265 type: "string", 6266 defaultValue: "clockwise", 6267 control: "select", 6268 options: [ 6269 { value: "clockwise", label: "motion.preset_flyout.rotation.direction.clockwise" }, 6270 { 6271 value: "counterClockwise", 6272 label: "motion.preset_flyout.rotation.direction.counter_clockwise" 6273 } 6274 ] 6275 }, 6276 amount: { 6277 label: "motion.preset_flyout.amount", 6278 type: "number", 6279 defaultValue: 180, 6280 control: "input", 6281 unit: "\\xB0" 6282 }, 6283 // TODO(showDividerAbove-cleanup): the \`showDividerAbove\` flags in this file 6284 // are redundant \u2014 section dividers are now applied client-side in the preset 6285 // flyout via \`forceShowDividerAboveTransform\` 6286 start: { 6287 label: "motion.preset_flyout.start", 6288 type: "number", 6289 defaultValue: 180, 6290 control: "input", 6291 unit: "\\xB0", 6292 showDividerAbove: true, 6293 icon: "rotation" 6294 }, 6295 end: { 6296 label: "motion.preset_flyout.end", 6297 type: "number", 6298 defaultValue: 0, 6299 control: "input", 6300 unit: "\\xB0", 6301 icon: "rotation" 6302 }, 6303 delay: { 6304 label: "motion.preset_flyout.delay", 6305 type: "number", 6306 defaultValue: 0, 6307 control: "input", 6308 unit: "s", 6309 showDividerAbove: true, 6310 icon: "delay" 6311 }, 6312 duration: { 6313 label: "motion.preset_flyout.duration", 6314 type: "number", 6315 defaultValue: 0.5, 6316 control: "input", 6317 min: 0.01, 6318 unit: "s", 6319 icon: "time" 6320 }, 6321 easing: { 6322 label: "motion.preset_flyout.easing", 6323 type: "easing", 6324 defaultValue: { 6325 easingType: EasingType.OUT_CUBIC 6326 } 6327 } 6328 }); 6329 return __toCommonJS(rotation_exports); 6330})();`});var I0,S0,R0=Qt(()=>{I0=`// Source-of-truth for the SCALE first-party animation preset. 6331// 6332// The build-time preset-bundle codegen (see \`../scripts/generate_preset_bundles.ts\`) 6333// reads this file's raw text, esbuilds it into an IIFE with \`figma:motion\` 6334// resolved, and emits both strings into \`../generated/scale.generated.ts\`. The 6335// generated module is what runtime code consumes \u2014 never import this file 6336// directly from production code paths. 6337// 6338// This file is excluded from the share/motion \`ts_project\` compilation \u2014 it's 6339// only an input to the codegen tool, evaluated inside the QuickJS / iframe 6340// sandbox at runtime. 6341 6342import { animate, defineProperties, EasingType, tween } from 'figma:motion' 6343 6344import type { PresetArgs, PresetTrackDefinitions } from './preset_types' 6345 6346export default function preset({ 6347 type, 6348 axis, 6349 amount, 6350 wStartWithDivider, 6351 wEndWithoutDivider, 6352 wEndWithDivider, 6353 hStartWithoutDivider, 6354 hStartWithDivider, 6355 hEndWithoutDivider, 6356 duration, 6357 easing, 6358 node, 6359}: PresetArgs) { 6360 const selectedType = type || 'scaleIn' 6361 const selectedAxis = axis || 'w' 6362 const safeAmount = (amount ?? 120) / 100 6363 6364 // Scale in should scale INTO the base size by growing/shrinking from amount -> base size 6365 // Scale out should scale OUT OF the base size by growing/shrinking from base size -> amount 6366 6367 function getWFromTo(): [number, number] { 6368 if (selectedType === 'custom') { 6369 if (selectedAxis === 'h') return [1, 1] 6370 if (selectedAxis === 'whCombined') { 6371 return [wStartWithDivider / 100, wEndWithDivider / 100] 6372 } 6373 return [wStartWithDivider / 100, wEndWithoutDivider / 100] 6374 } 6375 if (selectedType === 'scaleOut') return [1, safeAmount] 6376 return [safeAmount, 1] 6377 } 6378 function getHFromTo(): [number, number] { 6379 if (selectedType === 'custom') { 6380 if (selectedAxis === 'w') return [1, 1] 6381 if (selectedAxis === 'whCombined') { 6382 return [hStartWithoutDivider / 100, hEndWithoutDivider / 100] 6383 } 6384 return [hStartWithDivider / 100, hEndWithoutDivider / 100] 6385 } 6386 if (selectedType === 'scaleOut') return [1, safeAmount] 6387 return [safeAmount, 1] 6388 } 6389 6390 const [xFrom, xTo] = getWFromTo() 6391 const [yFrom, yTo] = getHFromTo() 6392 6393 // Both axes share the timing. The shared \`delay\` is synced to the preset's 6394 // \`timelineOffset\`, so it isn't baked into keyframe \`timelinePosition\`. 6395 const definition: PresetTrackDefinitions = {} 6396 definition.scaleX = tween({
6397 mode: 'scale', 6398 duration, 6399 from: xFrom, 6400 to: xTo, 6401 easing, 6402 }) 6403 definition.scaleY = tween({ 6404 mode: 'scale', 6405 duration, 6406 from: yFrom, 6407 to: yTo, 6408 easing, 6409 }) 6410 6411 return [animate(node, definition)] 6412} 6413 6414// KEEP_IN_SYNC(share/motion/src/presets/scale_meta.ts) \u2014 the 6415// property bounds (min/max/unit) must match \`PROP_DEFS[*].inputConfig\` so the 6416// panel-side TS metadata and the bundled IIFE agree on every prop's contract. 6417// 6418// Prop ORDER below drives the panel row order. 6419defineProperties(preset, { 6420 type: { 6421 label: 'motion.preset_flyout.type', 6422 type: 'string', 6423 defaultValue: 'scaleIn', 6424 control: 'select', 6425 options: [ 6426 { value: 'scaleIn', label: 'motion.preset_flyout.scale.type.scale_in' }, 6427 { value: 'scaleOut', label: 'motion.preset_flyout.scale.type.scale_out' }, 6428 { value: 'custom', label: 'motion.preset_flyout.type.custom' }, 6429 ], 6430 }, 6431 axis: { 6432 label: 'motion.preset_flyout.axis', 6433 type: 'string', 6434 defaultValue: 'whCombined', 6435 control: 'select', 6436 options: [ 6437 { value: 'w', label: 'motion.preset_flyout.w' }, 6438 { value: 'h', label: 'motion.preset_flyout.h' }, 6439 { value: 'whCombined', label: 'motion.preset_flyout.both' }, 6440 ], 6441 }, 6442 amount: { 6443 label: 'motion.preset_flyout.amount', 6444 type: 'number', 6445 defaultValue: 120, 6446 control: 'input', 6447 min: 0, 6448 unit: '%', 6449 }, 6450 // TODO(showDividerAbove-cleanup): the \`showDividerAbove\` flags in this file 6451 // are redundant \u2014 section dividers are now applied client-side in the preset 6452 // flyout via \`forceShowDividerAboveTransform\` 6453 wStartWithDivider: { 6454 label: 'motion.preset_flyout.start', 6455 type: 'number', 6456 defaultValue: 120, 6457 control: 'input', 6458 min: 0, 6459 unit: '%', 6460 showDividerAbove: true, 6461 icon: 'w', 6462 }, 6463 wEndWithoutDivider: { 6464 label: 'motion.preset_flyout.end', 6465 type: 'number', 6466 defaultValue: 100, 6467 control: 'input', 6468 min: 0, 6469 unit: '%', 6470 icon: 'w', 6471 }, 6472 // whCombined-only variants: hStartWithoutDivider groups under the Starts 6473 // divider (set by wStartWithDivider above), wEndWithDivider starts the Ends 6474 // group. Hidden for every other layout. 6475 hStartWithoutDivider: { 6476 label: 'motion.preset_flyout.start', 6477 type: 'number', 6478 defaultValue: 120, 6479 control: 'input', 6480 min: 0, 6481 unit: '%', 6482 icon: 'h', 6483 }, 6484 wEndWithDivider: { 6485 label: 'motion.preset_flyout.end', 6486 type: 'number', 6487 defaultValue: 100, 6488 control: 'input', 6489 min: 0, 6490 unit: '%', 6491 showDividerAbove: true, 6492 icon: 'w', 6493 }, 6494 hStartWithDivider: { 6495 label: 'motion.preset_flyout.start', 6496 type: 'number', 6497 defaultValue: 120, 6498 control: 'input', 6499 min: 0, 6500 unit: '%', 6501 showDividerAbove: true, 6502 icon: 'h', 6503 }, 6504 hEndWithoutDivider: { 6505 label: 'motion.preset_flyout.end', 6506 type: 'number', 6507 defaultValue: 100, 6508 control: 'input', 6509 min: 0, 6510 unit: '%', 6511 icon: 'h', 6512 }, 6513 // Note: 'delay' is kept in sync with a preset's \`timelineOffset\`. 6514 delay: { 6515 label: 'motion.preset_flyout.delay', 6516 type: 'number', 6517 defaultValue: 0, 6518 control: 'input', 6519 unit: 's', 6520 showDividerAbove: true, 6521 icon: 'delay', 6522 }, 6523 duration: { 6524 label: 'motion.preset_flyout.duration', 6525 type: 'number', 6526 defaultValue: 0.5, 6527 control: 'input', 6528 min: 0.01, 6529 unit: 's', 6530 icon: 'time', 6531 }, 6532 easing: { 6533 label: 'motion.preset_flyout.easing', 6534 type: 'easing', 6535 defaultValue: { easingType: EasingType.OUT_CUBIC }, 6536 }, 6537}) 6538`,S0=`var __presetBundle = (() => { 6539 var __defProp = Object.defineProperty; 6540 var __getOwnPropDesc = Object.getOwnPropertyDescriptor; 6541 var __getOwnPropNames = Object.getOwnPropertyNames; 6542 var __hasOwnProp = Object.prototype.hasOwnProperty; 6543 var __export = (target, all) => { 6544 for (var name in all) 6545 __defProp(target, name, { get: all[name], enumerable: true }); 6546 }; 6547 var __copyProps = (to, from, except, desc) => { 6548 if (from && typeof from === "object" || typeof from === "function") { 6549 for (let key of __getOwnPropNames(from)) 6550 if (!__hasOwnProp.call(to, key) && key !== except) 6551 __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable }); 6552 } 6553 return to; 6554 }; 6555 var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod); 6556 6557
6557// ../../../../../../../../execroot/_main/bazel-out/k8-fastbuild/bin/share/motion/src/presets/source/scale.ts 6558 var scale_exports = {}; 6559 __export(scale_exports, { 6560 default: () => preset 6561 }); 6562 6563 // figma-motion:figma:motion 6564 function defineProperties(component, spec) { 6565 Object.assign(component, { 6566 [/* @__PURE__ */ Symbol.for("figma.react.props")]: spec 6567 }); 6568 } 6569 var EasingType = { 6570 IN_CUBIC: 0, 6571 inCubic: 0, 6572 OUT_CUBIC: 1, 6573 outCubic: 1, 6574 INOUT_CUBIC: 2, 6575 inOutCubic: 2, 6576 LINEAR: 3, 6577 linear: 3, 6578 IN_BACK_CUBIC: 4, 6579 inBackCubic: 4, 6580 OUT_BACK_CUBIC: 5, 6581 outBackCubic: 5, 6582 INOUT_BACK_CUBIC: 6, 6583 inOutBackCubic: 6, 6584 CUSTOM_CUBIC: 7, 6585 customCubic: 7, 6586 SPRING: 8, 6587 spring: 8, 6588 GENTLE_SPRING: 9, 6589 gentleSpring: 9, 6590 CUSTOM_SPRING: 10, 6591 customSpring: 10, 6592 SPRING_PRESET_ONE: 11, 6593 springPresetOne: 11, 6594 SPRING_PRESET_TWO: 12, 6595 springPresetTwo: 12, 6596 SPRING_PRESET_THREE: 13, 6597 springPresetThree: 13, 6598 // For backwards compat 6599 bezier: 100, 6600 BEZIER: 100 6601 }; 6602 var InterpolationType = { 6603 HOLD: 0, 6604 hold: 0, 6605 BEZIER: 1, 6606 bezier: 1 6607 }; 6608 var KeyframeOperation = { 6609 SET: 0, 6610 set: 0, 6611 SCALE: 1, 6612 scale: 1, 6613 OFFSET: 2, 6614 offset: 2 6615 }; 6616 var ParameterField = { 6617 MISSING: 0, 6618 missing: 0, 6619 CORNER_RADIUS: 1, 6620 cornerRadius: 1, 6621 PARAGRAPH_SPACING: 2, 6622 paragraphSpacing: 2, 6623 PARAGRAPH_INDENT: 3, 6624 paragraphIndent: 3, 6625 STROKE_WEIGHT: 4, 6626 strokeWeight: 4, 6627 STACK_SPACING: 5, 6628 stackSpacing: 5, 6629 STACK_PADDING_LEFT: 6, 6630 stackPaddingLeft: 6, 6631 STACK_PADDING_TOP: 7, 6632 stackPaddingTop: 7, 6633 STACK_PADDING_RIGHT: 8, 6634 stackPaddingRight: 8, 6635 STACK_PADDING_BOTTOM: 9, 6636 stackPaddingBottom: 9, 6637 VISIBLE: 10, 6638 visible: 10, 6639 TEXT_DATA: 11, 6640 textData: 11, 6641 WIDTH: 12, 6642 width: 12, 6643 HEIGHT: 13, 6644 height: 13, 6645 RECTANGLE_TOP_LEFT_CORNER_RADIUS: 14, 6646 rectangleTopLeftCornerRadius: 14, 6647 RECTANGLE_TOP_RIGHT_CORNER_RADIUS: 15, 6648 rectangleTopRightCornerRadius: 15, 6649 RECTANGLE_BOTTOM_LEFT_CORNER_RADIUS: 16, 6650 rectangleBottomLeftCornerRadius: 16, 6651 RECTANGLE_BOTTOM_RIGHT_CORNER_RADIUS: 17, 6652 rectangleBottomRightCornerRadius: 17, 6653 BORDER_TOP_WEIGHT: 18, 6654 borderTopWeight: 18, 6655 BORDER_BOTTOM_WEIGHT: 19, 6656 borderBottomWeight: 19, 6657 BORDER_LEFT_WEIGHT: 20, 6658 borderLeftWeight: 20, 6659 BORDER_RIGHT_WEIGHT: 21, 6660 borderRightWeight: 21, 6661 VARIANT_PROPERTIES: 22, 6662 variantProperties: 22, 6663 STACK_COUNTER_SPACING: 23, 6664 stackCounterSpacing: 23, 6665 MIN_WIDTH: 24, 6666 minWidth: 24, 6667 MAX_WIDTH: 25, 6668 maxWidth: 25, 6669 MIN_HEIGHT: 26, 6670 minHeight: 26, 6671 MAX_HEIGHT: 27, 6672 maxHeight: 27, 6673 FONT_FAMILY: 28, 6674 fontFamily: 28, 6675 FONT_STYLE: 29, 6676 fontStyle: 29, 6677 FONT_VARIATIONS: 30, 6678 fontVariations: 30, 6679 OPACITY: 31, 6680 opacity: 31, 6681 FONT_SIZE: 32, 6682 fontSize: 32, 6683 LETTER_SPACING: 34, 6684 letterSpacing: 34, 6685 LINE_HEIGHT: 36, 6686 lineHeight: 36, 6687 OVERRIDDEN_SYMBOL_ID: 37, 6688 overriddenSymbolId: 37, 6689 CMS_SERIALIZED_RICH_TEXT_DATA: 38, 6690 cmsSerializedRichTextData: 38, 6691 HYPERLINK: 39, 6692 hyperlink: 39, 6693 SLOT_CONTENT_ID: 40, 6694 slotContentId: 40, 6695 GRID_ROW_GAP: 41, 6696 gridRowGap: 41, 6697 GRID_COLUMN_GAP: 42, 6698 gridColumnGap: 42, 6699 RELATIVE_X_POSITION: 43, 6700 xPosition: 43, 6701 RELATIVE_Y_POSITION: 44, 6702 relativeYPosition: 44, 6703 RELATIVE_ROTATION: 45, 6704 relativeRotation: 45, 6705 MOTION_TRANSLATION_X: 46, 6706 motionTranslationX: 46, 6707 MOTION_TRANSLATION_Y: 47, 6708 motionTranslationY: 47, 6709 MOTION_ROTATION: 48, 6710 motionRotation: 48, 6711 MOTION_SCALE_X: 49, 6712 motionScaleX: 49, 6713 MOTION_SCALE_Y: 50, 6714 motionScaleY: 50, 6715 MOTION_SHEAR: 51, 6716 motionShear: 51, 6717 SCROLL_OFFSET_X: 52, 6718 scrollOffsetX: 52, 6719 SCROLL_OFFSET_Y: 53, 6720 scrollOffsetY: 53, 6721 PATH_TRIM_START: 54, 6722 pathTrimStart: 54, 6723 PATH_TRIM_END: 55, 6724 pathTrimEnd: 55, 6725 DISSOLVE_PROGRESS: 56, 6726 dissolveProgress: 56 6727 }; 6728 var Keyframe = class { 6729 constructor(data) { 6730 this.timelinePosition = Math.round(data.timelinePosition); 6731 this.easing = data.easing; 6732 this.value = data.value; 6733 } 6734 }; 6735 var KeyframeTrack = class { 6736 constructor(data) { 6737 this.topLevelField = data.topLevelField; 6738 this.parameterField = data.parameterField; 6739 this.index = data.index; 6740 this.effectParametrizedField = data.effectParametrizedField; 6741 this.keyframeOperation = data.keyframeOperation; 6742 this.keyframes = data.keyframes; 6743 this.enabled = !!data.enabled; 6744 } 6745 }; 6746 var AnimationPreset = class { 6747 constructor(data) { 6748 this.nodeId = data.nodeId; 6749 this.keyframeTracks = data.keyframeTracks; 6750 } 6751 }; 6752 var PARAMETER_FIELD_ALIAS_MAP = { 6753 translateX: ParameterField.MOTION_TRANSLATION_X, 6754 translateY: ParameterField.MOTION_TRANSLATION_Y, 6755 rotate: ParameterField.MOTION_ROTATION, 6756 scaleX: ParameterField.MOTION_SCALE_X, 6757 scaleY: ParameterField.MOTION_SCALE_Y, 6758 shear: ParameterField.MOTION_SHEAR 6759 }; 6760 var KEYFRAMEABLE_FIELDS = /* @__PURE__ */ new Set(["translateX", "translateY", "rotate", "scaleX", "scaleY", "shear", "cornerRadius", "strokeWeight", "rectangleTopLeftCornerRadius", "rectangleTopRightCornerRadius", "rectangleBottomLeftCornerRadius", "rectangleBottomRightCornerRadius", "stackSpacing", "stackPaddingLeft", "stackPaddingTop", "stackPaddingRight", "stackPaddingBottom", "width", "height", "borderTopWeight", "borderBottomWeight", "borderLeftWeight", "borderRightWeight", "stackCounterSpacing", "minWidth", "maxWidth", "minHeight", "maxHeight", "opacity", "gridRowGap", "gridColumnGap", "textData", "pathTrimStart", "pathTrimEnd"]); 6761 var MODE_TO_OPERATION = { 6762 set: KeyframeOperation.SET, 6763 SET: KeyframeOperation.SET, 6764 offset: KeyframeOperation.OFFSET, 6765 OFFSET: KeyframeOperation.OFFSET, 6766 scale: KeyframeOperation.SCALE, 6767 SCALE: KeyframeOperation.SCALE 6768 }; 6769 function normalizeEasing(easing) { 6770 if (easing === void 0) return void 0; 6771 if (easing === "hold") return { interpolationType: InterpolationType.HOLD }; 6772 if (typeof easing === "string") { 6773 const easingType = EasingType[easing]; 6774 if (easingType === void 0) throw new Error('normalizeEasing: unknown easing "' + easing + '"'); 6775 return { easingType }; 6776 } 6777 return easing; 6778 } 6779 function compileKeyframe({ timelinePosition, value, easing }) { 6780 return new Keyframe({ 6781 timelinePosition: timelinePosition * 1e6, 6782 easing: normalizeEasing(easing), 6783 value 6784 }); 6785 } 6786 function tween({ mode, timelinePosition = 0, duration, from, to, easing, enabled = true }) { 6787 if (duration < 0) throw new Error("tween: duration must be non-negative"); 6788 return { 6789 mode, 6790 enabled, 6791 keyframes: [ 6792 { timelinePosition, value: from, easing }, 6793 { timelinePosition: timelinePosition + duration, value: to, easing } 6794 ] 6795 }; 6796 } 6797 function animate(node, definition) { 6798 const nodeId = typeof node === "string" ? node : node.id;
6799 const keyframeTracks = []; 6800 for (const [key, trackDef] of Object.entries(definition)) { 6801 if (!KEYFRAMEABLE_FIELDS.has(key)) { 6802 throw new Error('animate: unknown or non-keyframeable property "' + key + '"'); 6803 } 6804 const parameterField = PARAMETER_FIELD_ALIAS_MAP[key] ?? ParameterField[key]; 6805 const operation = MODE_TO_OPERATION[trackDef.mode]; 6806 if (operation === void 0) throw new Error('animate: unknown mode "' + trackDef.mode + '"'); 6807 const seen = /* @__PURE__ */ new Map(); 6808 for (const kf of trackDef.keyframes) seen.set(kf.timelinePosition, kf); 6809 const sorted = [...seen.values()].sort((a, b) => a.timelinePosition - b.timelinePosition); 6810 keyframeTracks.push(new KeyframeTrack({ 6811 parameterField, 6812 keyframeOperation: operation, 6813 keyframes: sorted.map(compileKeyframe), 6814 enabled: trackDef.enabled !== false 6815 })); 6816 } 6817 return new AnimationPreset({ nodeId, keyframeTracks }); 6818 } 6819 6820
6820// ../../../../../../../../execroot/_main/bazel-out/k8-fastbuild/bin/share/motion/src/presets/source/scale.ts 6821 function preset({ 6822 type, 6823 axis, 6824 amount, 6825 wStartWithDivider, 6826 wEndWithoutDivider, 6827 wEndWithDivider, 6828 hStartWithoutDivider, 6829 hStartWithDivider, 6830 hEndWithoutDivider, 6831 duration, 6832 easing, 6833 node 6834 }) { 6835 const selectedType = type || "scaleIn"; 6836 const selectedAxis = axis || "w"; 6837 const safeAmount = (amount ?? 120) / 100; 6838 function getWFromTo() { 6839 if (selectedType === "custom") { 6840 if (selectedAxis === "h") return [1, 1]; 6841 if (selectedAxis === "whCombined") { 6842 return [wStartWithDivider / 100, wEndWithDivider / 100]; 6843 } 6844 return [wStartWithDivider / 100, wEndWithoutDivider / 100]; 6845 } 6846 if (selectedType === "scaleOut") return [1, safeAmount]; 6847 return [safeAmount, 1]; 6848 } 6849 function getHFromTo() { 6850 if (selectedType === "custom") { 6851 if (selectedAxis === "w") return [1, 1]; 6852 if (selectedAxis === "whCombined") { 6853 return [hStartWithoutDivider / 100, hEndWithoutDivider / 100]; 6854 } 6855 return [hStartWithDivider / 100, hEndWithoutDivider / 100]; 6856 } 6857 if (selectedType === "scaleOut") return [1, safeAmount]; 6858 return [safeAmount, 1]; 6859 } 6860 const [xFrom, xTo] = getWFromTo(); 6861 const [yFrom, yTo] = getHFromTo(); 6862 const definition = {}; 6863 definition.scaleX = tween({ 6864 mode: "scale", 6865 duration, 6866 from: xFrom, 6867 to: xTo, 6868 easing 6869 }); 6870 definition.scaleY = tween({ 6871 mode: "scale", 6872 duration, 6873 from: yFrom, 6874 to: yTo, 6875 easing 6876 }); 6877 return [animate(node, definition)]; 6878 } 6879 defineProperties(preset, { 6880 type: { 6881 label: "motion.preset_flyout.type", 6882 type: "string", 6883 defaultValue: "scaleIn", 6884 control: "select", 6885 options: [ 6886 { value: "scaleIn", label: "motion.preset_flyout.scale.type.scale_in" }, 6887 { value: "scaleOut", label: "motion.preset_flyout.scale.type.scale_out" }, 6888 { value: "custom", label: "motion.preset_flyout.type.custom" } 6889 ] 6890 }, 6891 axis: { 6892 label: "motion.preset_flyout.axis", 6893 type: "string", 6894 defaultValue: "whCombined", 6895 control: "select", 6896 options: [ 6897 { value: "w", label: "motion.preset_flyout.w" }, 6898 { value: "h", label: "motion.preset_flyout.h" }, 6899 { value: "whCombined", label: "motion.preset_flyout.both" } 6900 ] 6901 }, 6902 amount: { 6903 label: "motion.preset_flyout.amount", 6904 type: "number", 6905 defaultValue: 120, 6906 control: "input", 6907 min: 0, 6908 unit: "%" 6909 }, 6910 // TODO(showDividerAbove-cleanup): the \`showDividerAbove\` flags in this file 6911 // are redundant \u2014 section dividers are now applied client-side in the preset 6912 // flyout via \`forceShowDividerAboveTransform\` 6913 wStartWithDivider: { 6914 label: "motion.preset_flyout.start", 6915 type: "number", 6916 defaultValue: 120, 6917 control: "input", 6918 min: 0, 6919 unit: "%", 6920 showDividerAbove: true, 6921 icon: "w" 6922 }, 6923 wEndWithoutDivider: { 6924 label: "motion.preset_flyout.end", 6925 type: "number", 6926 defaultValue: 100, 6927 control: "input", 6928 min: 0, 6929 unit: "%", 6930 icon: "w" 6931 }, 6932 // whCombined-only variants: hStartWithoutDivider groups under the Starts 6933 // divider (set by wStartWithDivider above), wEndWithDivider starts the Ends 6934 // group. Hidden for every other layout. 6935 hStartWithoutDivider: { 6936 label: "motion.preset_flyout.start", 6937 type: "number", 6938 defaultValue: 120, 6939 control: "input", 6940 min: 0, 6941 unit: "%", 6942 icon: "h" 6943 }, 6944 wEndWithDivider: { 6945 label: "motion.preset_flyout.end", 6946 type: "number", 6947 defaultValue: 100, 6948 control: "input", 6949 min: 0, 6950 unit: "%", 6951 showDividerAbove: true, 6952 icon: "w" 6953 }, 6954 hStartWithDivider: { 6955 label: "motion.preset_flyout.start", 6956 type: "number", 6957 defaultValue: 120, 6958 control: "input", 6959 min: 0, 6960 unit: "%", 6961 showDividerAbove: true, 6962 icon: "h" 6963 }, 6964 hEndWithoutDivider: { 6965 label: "motion.preset_flyout.end", 6966 type: "number", 6967 defaultValue: 100, 6968 control: "input", 6969 min: 0, 6970 unit: "%", 6971 icon: "h" 6972 }, 6973 // Note: 'delay' is kept in sync with a preset's \`timelineOffset\`. 6974 delay: { 6975 label: "motion.preset_flyout.delay", 6976 type: "number", 6977 defaultValue: 0, 6978 control: "input", 6979 unit: "s", 6980 showDividerAbove: true, 6981 icon: "delay" 6982 }, 6983 duration: { 6984 label: "motion.preset_flyout.duration", 6985 type: "number", 6986 defaultValue: 0.5, 6987 control: "input", 6988 min: 0.01, 6989 unit: "s", 6990 icon: "time" 6991 }, 6992 easing: { 6993 label: "motion.preset_flyout.easing", 6994 type: "easing", 6995 defaultValue: { easingType: EasingType.OUT_CUBIC } 6996 } 6997 });
6998 return __toCommonJS(scale_exports); 6999})();`});var A0,N0,y0=Qt(()=>{A0=`// Source-of-truth for the SIZE first-party animation preset. 7000// 7001// The build-time preset-bundle codegen (see \`../scripts/generate_preset_bundles.ts\`) 7002// reads this file's raw text, esbuilds it into an IIFE with \`figma:motion\` 7003// resolved, and emits both strings into \`../generated/size.generated.ts\`. 7004// The generated module is what runtime code consumes \u2014 never import this file 7005// directly from production code paths. 7006// 7007// This file is excluded from the share/motion \`ts_project\` compilation \u2014 it's 7008// only an input to the codegen tool, evaluated inside the QuickJS / iframe 7009// sandbox at runtime. 7010 7011import { animate, defineProperties, EasingType, tween } from 'figma:motion' 7012 7013import type { PresetArgs, PresetTrackDefinitions } from './preset_types' 7014 7015function buildAxisTrack( 7016 from: number, 7017 to: number, 7018 duration: number, 7019 easing: unknown, 7020 enabled: boolean, 7021) { 7022 // The runtime adds \`timelineOffset\` back in when placing keyframes on the parent timeline (\`keyframe_conversion.ts\`). 7023 // The \`delay\` prop is kept in sync with \`timelineOffset\`, so it must NOT be folded into \`timelinePosition\` here \u2014 that would double-count. 7024 return tween({ 7025 mode: 'offset', 7026 timelinePosition: 0, 7027 duration, 7028 from, 7029 to, 7030 easing, 7031 enabled, 7032 }) 7033} 7034 7035export default function preset({ 7036 type, 7037 amount, 7038 axis, 7039 startWidth, 7040 endWidth, 7041 startHeight, 7042 endHeight, 7043 duration, 7044 easing, 7045 node, 7046}: PresetArgs) { 7047 const safeAmount = typeof amount === 'number' ? amount : 0 7048 const safeStartWidth = typeof startWidth === 'number' ? startWidth : 50 7049 const safeEndWidth = typeof endWidth === 'number' ? endWidth : 100 7050 const safeStartHeight = typeof startHeight === 'number' ? startHeight : 50 7051 const safeEndHeight = typeof endHeight === 'number' ? endHeight : 100 7052 const safeDuration = typeof duration === 'number' ? duration : 0.5 7053 7054 let widthTrack: [number, number] | null = null 7055 let heightTrack: [number, number] | null = null 7056 let widthEnabled = true 7057 let heightEnabled = true 7058 7059 switch (type) { 7060 case 'resize_in': { 7061 // Resize INTO the base size by shrinking/growing from base + amount -> base 7062 widthTrack = [safeAmount, 0] 7063 heightTrack = [safeAmount, 0] 7064 break 7065 } 7066 case 'resize_out': { 7067 // Resize OUT OF the base size by shrinking/growing from base -> base + amount 7068 widthTrack = [0, safeAmount] 7069 heightTrack = [0, safeAmount] 7070 break 7071 } 7072 case 'custom': { 7073 widthEnabled = axis !== 'y' 7074 heightEnabled = axis !== 'x' 7075 widthTrack = [safeStartWidth, safeEndWidth] 7076 heightTrack = [safeStartHeight, safeEndHeight] 7077 break 7078 } 7079 default: 7080 break 7081 } 7082 7083 const definition: PresetTrackDefinitions = {} 7084 if (widthTrack) { 7085 definition.width = buildAxisTrack( 7086 widthTrack[0], 7087 widthTrack[1], 7088 safeDuration, 7089 easing, 7090 widthEnabled, 7091 ) 7092 } 7093 if (heightTrack) { 7094 definition.height = buildAxisTrack( 7095 heightTrack[0], 7096 heightTrack[1], 7097 safeDuration, 7098 easing, 7099 heightEnabled, 7100 ) 7101 } 7102 7103 return [animate(node, definition)] 7104} 7105 7106defineProperties(preset, { 7107 type: { 7108 label: 'motion.preset_flyout.type', 7109 type: 'string', 7110 defaultValue: 'resize_in', 7111 control: 'select', 7112 options: [ 7113 { value: 'resize_in', label: 'motion.preset_flyout.size.type.resize_in' }, 7114 { value: 'resize_out', label: 'motion.preset_flyout.size.type.resize_out' }, 7115 { value: 'custom', label: 'motion.preset_flyout.type.custom' }, 7116 ], 7117 }, 7118 amount: { 7119 label: 'motion.preset_flyout.amount', 7120 type: 'number', 7121 control: 'input', 7122 defaultValue: 50, 7123 unit: 'px', 7124 }, 7125 axis: { 7126 label: 'motion.preset_flyout.axis', 7127 type: 'string', 7128 defaultValue: 'xy', 7129 control: 'select', 7130 options: [ 7131 { value: 'x', label: 'motion.preset_flyout.x' }, 7132 { value: 'y', label: 'motion.preset_flyout.y' }, 7133 { value: 'xy', label: 'motion.preset_flyout.both' }, 7134 ], 7135 }, 7136 // TODO(showDividerAbove-cleanup): the \`showDividerAbove\` flags in this file 7137 // are redundant \u2014 section dividers are now applied client-side in the preset 7138 // flyout via \`forceShowDividerAboveTransform\`. 7139 // Order is start values then end values (startWidth, startHeight, endWidth, 7140 // endHeight) so the custom-xy flyout groups Starts then Ends, matching the
7141 // dividers in \`getSectionDividerProps\` (and the position preset's layout). 7142 startWidth: { 7143 label: 'motion.preset_flyout.start', 7144 type: 'number', 7145 control: 'input', 7146 defaultValue: 50, 7147 icon: 'w', 7148 showDividerAbove: true, 7149 }, 7150 startHeight: { 7151 label: 'motion.preset_flyout.start', 7152 type: 'number', 7153 control: 'input', 7154 defaultValue: 50, 7155 icon: 'h', 7156 }, 7157 endWidth: { 7158 label: 'motion.preset_flyout.end', 7159 type: 'number', 7160 control: 'input', 7161 defaultValue: 100, 7162 icon: 'w', 7163 }, 7164 endHeight: { 7165 label: 'motion.preset_flyout.end', 7166 type: 'number', 7167 control: 'input', 7168 defaultValue: 100, 7169 icon: 'h', 7170 }, 7171 // Note: 'delay' is kept in sync with a preset's \`timelineOffset\` 7172 delay: { 7173 label: 'motion.preset_flyout.delay', 7174 type: 'number', 7175 control: 'input', 7176 defaultValue: 0, 7177 unit: 's', 7178 showDividerAbove: true, 7179 icon: 'delay', 7180 }, 7181 duration: { 7182 label: 'motion.preset_flyout.duration', 7183 type: 'number', 7184 control: 'input', 7185 defaultValue: 0.5, 7186 min: 0.01, 7187 unit: 's', 7188 icon: 'time', 7189 }, 7190 easing: { 7191 label: 'motion.preset_flyout.easing', 7192 type: 'easing', 7193 defaultValue: { 7194 easingType: EasingType.OUT_CUBIC, 7195 }, 7196 }, 7197}) 7198`,N0=`var __presetBundle = (() => { 7199 var __defProp = Object.defineProperty; 7200 var __getOwnPropDesc = Object.getOwnPropertyDescriptor; 7201 var __getOwnPropNames = Object.getOwnPropertyNames; 7202 var __hasOwnProp = Object.prototype.hasOwnProperty; 7203 var __export = (target, all) => { 7204 for (var name in all) 7205 __defProp(target, name, { get: all[name], enumerable: true }); 7206 }; 7207 var __copyProps = (to, from, except, desc) => { 7208 if (from && typeof from === "object" || typeof from === "function") { 7209 for (let key of __getOwnPropNames(from)) 7210 if (!__hasOwnProp.call(to, key) && key !== except) 7211 __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable }); 7212 } 7213 return to; 7214 }; 7215 var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod); 7216 7217
7217// ../../../../../../../../execroot/_main/bazel-out/k8-fastbuild/bin/share/motion/src/presets/source/size.ts 7218 var size_exports = {}; 7219 __export(size_exports, { 7220 default: () => preset 7221 }); 7222 7223 // figma-motion:figma:motion 7224 function defineProperties(component, spec) { 7225 Object.assign(component, { 7226 [/* @__PURE__ */ Symbol.for("figma.react.props")]: spec 7227 }); 7228 } 7229 var EasingType = { 7230 IN_CUBIC: 0, 7231 inCubic: 0, 7232 OUT_CUBIC: 1, 7233 outCubic: 1, 7234 INOUT_CUBIC: 2, 7235 inOutCubic: 2, 7236 LINEAR: 3, 7237 linear: 3, 7238 IN_BACK_CUBIC: 4, 7239 inBackCubic: 4, 7240 OUT_BACK_CUBIC: 5, 7241 outBackCubic: 5, 7242 INOUT_BACK_CUBIC: 6, 7243 inOutBackCubic: 6, 7244 CUSTOM_CUBIC: 7, 7245 customCubic: 7, 7246 SPRING: 8, 7247 spring: 8, 7248 GENTLE_SPRING: 9, 7249 gentleSpring: 9, 7250 CUSTOM_SPRING: 10, 7251 customSpring: 10, 7252 SPRING_PRESET_ONE: 11, 7253 springPresetOne: 11, 7254 SPRING_PRESET_TWO: 12, 7255 springPresetTwo: 12, 7256 SPRING_PRESET_THREE: 13, 7257 springPresetThree: 13, 7258 // For backwards compat 7259 bezier: 100, 7260 BEZIER: 100 7261 }; 7262 var InterpolationType = { 7263 HOLD: 0, 7264 hold: 0, 7265 BEZIER: 1, 7266 bezier: 1 7267 }; 7268 var KeyframeOperation = { 7269 SET: 0, 7270 set: 0, 7271 SCALE: 1, 7272 scale: 1, 7273 OFFSET: 2, 7274 offset: 2 7275 }; 7276 var ParameterField = { 7277 MISSING: 0, 7278 missing: 0, 7279 CORNER_RADIUS: 1, 7280 cornerRadius: 1, 7281 PARAGRAPH_SPACING: 2, 7282 paragraphSpacing: 2, 7283 PARAGRAPH_INDENT: 3, 7284 paragraphIndent: 3, 7285 STROKE_WEIGHT: 4, 7286 strokeWeight: 4, 7287 STACK_SPACING: 5, 7288 stackSpacing: 5, 7289 STACK_PADDING_LEFT: 6, 7290 stackPaddingLeft: 6, 7291 STACK_PADDING_TOP: 7, 7292 stackPaddingTop: 7, 7293 STACK_PADDING_RIGHT: 8, 7294 stackPaddingRight: 8, 7295 STACK_PADDING_BOTTOM: 9, 7296 stackPaddingBottom: 9, 7297 VISIBLE: 10, 7298 visible: 10, 7299 TEXT_DATA: 11, 7300 textData: 11, 7301 WIDTH: 12, 7302 width: 12, 7303 HEIGHT: 13, 7304 height: 13, 7305 RECTANGLE_TOP_LEFT_CORNER_RADIUS: 14, 7306 rectangleTopLeftCornerRadius: 14, 7307 RECTANGLE_TOP_RIGHT_CORNER_RADIUS: 15, 7308 rectangleTopRightCornerRadius: 15, 7309 RECTANGLE_BOTTOM_LEFT_CORNER_RADIUS: 16, 7310 rectangleBottomLeftCornerRadius: 16, 7311 RECTANGLE_BOTTOM_RIGHT_CORNER_RADIUS: 17, 7312 rectangleBottomRightCornerRadius: 17, 7313 BORDER_TOP_WEIGHT: 18, 7314 borderTopWeight: 18, 7315 BORDER_BOTTOM_WEIGHT: 19, 7316 borderBottomWeight: 19, 7317 BORDER_LEFT_WEIGHT: 20, 7318 borderLeftWeight: 20, 7319 BORDER_RIGHT_WEIGHT: 21, 7320 borderRightWeight: 21, 7321 VARIANT_PROPERTIES: 22, 7322 variantProperties: 22, 7323 STACK_COUNTER_SPACING: 23, 7324 stackCounterSpacing: 23, 7325 MIN_WIDTH: 24, 7326 minWidth: 24, 7327 MAX_WIDTH: 25, 7328 maxWidth: 25, 7329 MIN_HEIGHT: 26, 7330 minHeight: 26, 7331 MAX_HEIGHT: 27, 7332 maxHeight: 27, 7333 FONT_FAMILY: 28, 7334 fontFamily: 28, 7335 FONT_STYLE: 29, 7336 fontStyle: 29, 7337 FONT_VARIATIONS: 30, 7338 fontVariations: 30, 7339 OPACITY: 31, 7340 opacity: 31, 7341 FONT_SIZE: 32, 7342 fontSize: 32, 7343 LETTER_SPACING: 34, 7344 letterSpacing: 34, 7345 LINE_HEIGHT: 36, 7346 lineHeight: 36, 7347 OVERRIDDEN_SYMBOL_ID: 37, 7348 overriddenSymbolId: 37, 7349 CMS_SERIALIZED_RICH_TEXT_DATA: 38, 7350 cmsSerializedRichTextData: 38, 7351 HYPERLINK: 39, 7352 hyperlink: 39, 7353 SLOT_CONTENT_ID: 40, 7354 slotContentId: 40, 7355 GRID_ROW_GAP: 41, 7356 gridRowGap: 41, 7357 GRID_COLUMN_GAP: 42, 7358 gridColumnGap: 42, 7359 RELATIVE_X_POSITION: 43, 7360 xPosition: 43, 7361 RELATIVE_Y_POSITION: 44, 7362 relativeYPosition: 44, 7363 RELATIVE_ROTATION: 45, 7364 relativeRotation: 45, 7365 MOTION_TRANSLATION_X: 46, 7366 motionTranslationX: 46, 7367 MOTION_TRANSLATION_Y: 47, 7368 motionTranslationY: 47, 7369 MOTION_ROTATION: 48, 7370 motionRotation: 48, 7371 MOTION_SCALE_X: 49, 7372 motionScaleX: 49, 7373 MOTION_SCALE_Y: 50, 7374 motionScaleY: 50, 7375 MOTION_SHEAR: 51, 7376 motionShear: 51, 7377 SCROLL_OFFSET_X: 52, 7378 scrollOffsetX: 52, 7379 SCROLL_OFFSET_Y: 53, 7380 scrollOffsetY: 53, 7381 PATH_TRIM_START: 54, 7382 pathTrimStart: 54, 7383 PATH_TRIM_END: 55, 7384 pathTrimEnd: 55, 7385 DISSOLVE_PROGRESS: 56, 7386 dissolveProgress: 56 7387 }; 7388 var Keyframe = class { 7389 constructor(data) { 7390 this.timelinePosition = Math.round(data.timelinePosition); 7391 this.easing = data.easing; 7392 this.value = data.value; 7393 } 7394 }; 7395 var KeyframeTrack = class { 7396 constructor(data) { 7397 this.topLevelField = data.topLevelField; 7398 this.parameterField = data.parameterField; 7399 this.index = data.index; 7400 this.effectParametrizedField = data.effectParametrizedField; 7401 this.keyframeOperation = data.keyframeOperation; 7402 this.keyframes = data.keyframes; 7403 this.enabled = !!data.enabled; 7404 } 7405 }; 7406 var AnimationPreset = class { 7407 constructor(data) { 7408 this.nodeId = data.nodeId; 7409 this.keyframeTracks = data.keyframeTracks; 7410 } 7411 }; 7412 var PARAMETER_FIELD_ALIAS_MAP = { 7413 translateX: ParameterField.MOTION_TRANSLATION_X, 7414 translateY: ParameterField.MOTION_TRANSLATION_Y, 7415 rotate: ParameterField.MOTION_ROTATION, 7416 scaleX: ParameterField.MOTION_SCALE_X, 7417 scaleY: ParameterField.MOTION_SCALE_Y, 7418 shear: ParameterField.MOTION_SHEAR 7419 }; 7420 var KEYFRAMEABLE_FIELDS = /* @__PURE__ */ new Set(["translateX", "translateY", "rotate", "scaleX", "scaleY", "shear", "cornerRadius", "strokeWeight", "rectangleTopLeftCornerRadius", "rectangleTopRightCornerRadius", "rectangleBottomLeftCornerRadius", "rectangleBottomRightCornerRadius", "stackSpacing", "stackPaddingLeft", "stackPaddingTop", "stackPaddingRight", "stackPaddingBottom", "width", "height", "borderTopWeight", "borderBottomWeight", "borderLeftWeight", "borderRightWeight", "stackCounterSpacing", "minWidth", "maxWidth", "minHeight", "maxHeight", "opacity", "gridRowGap", "gridColumnGap", "textData", "pathTrimStart", "pathTrimEnd"]); 7421 var MODE_TO_OPERATION = { 7422 set: KeyframeOperation.SET, 7423 SET: KeyframeOperation.SET, 7424 offset: KeyframeOperation.OFFSET, 7425 OFFSET: KeyframeOperation.OFFSET, 7426 scale: KeyframeOperation.SCALE, 7427 SCALE: KeyframeOperation.SCALE 7428 }; 7429 function normalizeEasing(easing) { 7430 if (easing === void 0) return void 0; 7431 if (easing === "hold") return { interpolationType: InterpolationType.HOLD }; 7432 if (typeof easing === "string") { 7433 const easingType = EasingType[easing]; 7434 if (easingType === void 0) throw new Error('normalizeEasing: unknown easing "' + easing + '"'); 7435 return { easingType }; 7436 } 7437 return easing; 7438 } 7439 function compileKeyframe({ timelinePosition, value, easing }) { 7440 return new Keyframe({ 7441 timelinePosition: timelinePosition * 1e6, 7442 easing: normalizeEasing(easing), 7443 value 7444 }); 7445 } 7446 function tween({ mode, timelinePosition = 0, duration, from, to, easing, enabled = true }) { 7447 if (duration < 0) throw new Error("tween: duration must be non-negative"); 7448 return { 7449 mode, 7450 enabled, 7451 keyframes: [ 7452 { timelinePosition, value: from, easing }, 7453 { timelinePosition: timelinePosition + duration, value: to, easing } 7454 ] 7455 }; 7456 } 7457 function animate(node, definition) { 7458 const nodeId = typeof node === "string" ? node : node.id;
7459 const keyframeTracks = []; 7460 for (const [key, trackDef] of Object.entries(definition)) { 7461 if (!KEYFRAMEABLE_FIELDS.has(key)) { 7462 throw new Error('animate: unknown or non-keyframeable property "' + key + '"'); 7463 } 7464 const parameterField = PARAMETER_FIELD_ALIAS_MAP[key] ?? ParameterField[key]; 7465 const operation = MODE_TO_OPERATION[trackDef.mode]; 7466 if (operation === void 0) throw new Error('animate: unknown mode "' + trackDef.mode + '"'); 7467 const seen = /* @__PURE__ */ new Map(); 7468 for (const kf of trackDef.keyframes) seen.set(kf.timelinePosition, kf); 7469 const sorted = [...seen.values()].sort((a, b) => a.timelinePosition - b.timelinePosition); 7470 keyframeTracks.push(new KeyframeTrack({ 7471 parameterField, 7472 keyframeOperation: operation, 7473 keyframes: sorted.map(compileKeyframe), 7474 enabled: trackDef.enabled !== false 7475 })); 7476 } 7477 return new AnimationPreset({ nodeId, keyframeTracks }); 7478 } 7479 7480
7480// ../../../../../../../../execroot/_main/bazel-out/k8-fastbuild/bin/share/motion/src/presets/source/size.ts 7481 function buildAxisTrack(from, to, duration, easing, enabled) { 7482 return tween({ 7483 mode: "offset", 7484 timelinePosition: 0, 7485 duration, 7486 from, 7487 to, 7488 easing, 7489 enabled 7490 }); 7491 } 7492 function preset({ 7493 type, 7494 amount, 7495 axis, 7496 startWidth, 7497 endWidth, 7498 startHeight, 7499 endHeight, 7500 duration, 7501 easing, 7502 node 7503 }) { 7504 const safeAmount = typeof amount === "number" ? amount : 0; 7505 const safeStartWidth = typeof startWidth === "number" ? startWidth : 50; 7506 const safeEndWidth = typeof endWidth === "number" ? endWidth : 100; 7507 const safeStartHeight = typeof startHeight === "number" ? startHeight : 50; 7508 const safeEndHeight = typeof endHeight === "number" ? endHeight : 100; 7509 const safeDuration = typeof duration === "number" ? duration : 0.5; 7510 let widthTrack = null; 7511 let heightTrack = null; 7512 let widthEnabled = true; 7513 let heightEnabled = true; 7514 switch (type) { 7515 case "resize_in": { 7516 widthTrack = [safeAmount, 0]; 7517 heightTrack = [safeAmount, 0]; 7518 break; 7519 } 7520 case "resize_out": { 7521 widthTrack = [0, safeAmount]; 7522 heightTrack = [0, safeAmount]; 7523 break; 7524 } 7525 case "custom": { 7526 widthEnabled = axis !== "y"; 7527 heightEnabled = axis !== "x"; 7528 widthTrack = [safeStartWidth, safeEndWidth]; 7529 heightTrack = [safeStartHeight, safeEndHeight]; 7530 break; 7531 } 7532 default: 7533 break; 7534 } 7535 const definition = {}; 7536 if (widthTrack) { 7537 definition.width = buildAxisTrack( 7538 widthTrack[0], 7539 widthTrack[1], 7540 safeDuration, 7541 easing, 7542 widthEnabled 7543 ); 7544 } 7545 if (heightTrack) { 7546 definition.height = buildAxisTrack( 7547 heightTrack[0], 7548 heightTrack[1], 7549 safeDuration, 7550 easing, 7551 heightEnabled 7552 ); 7553 } 7554 return [animate(node, definition)]; 7555 } 7556 defineProperties(preset, { 7557 type: { 7558 label: "motion.preset_flyout.type", 7559 type: "string", 7560 defaultValue: "resize_in", 7561 control: "select", 7562 options: [ 7563 { value: "resize_in", label: "motion.preset_flyout.size.type.resize_in" }, 7564 { value: "resize_out", label: "motion.preset_flyout.size.type.resize_out" }, 7565 { value: "custom", label: "motion.preset_flyout.type.custom" } 7566 ] 7567 }, 7568 amount: { 7569 label: "motion.preset_flyout.amount", 7570 type: "number", 7571 control: "input", 7572 defaultValue: 50, 7573 unit: "px" 7574 }, 7575 axis: { 7576 label: "motion.preset_flyout.axis", 7577 type: "string", 7578 defaultValue: "xy", 7579 control: "select", 7580 options: [ 7581 { value: "x", label: "motion.preset_flyout.x" }, 7582 { value: "y", label: "motion.preset_flyout.y" }, 7583 { value: "xy", label: "motion.preset_flyout.both" } 7584 ] 7585 }, 7586 // TODO(showDividerAbove-cleanup): the \`showDividerAbove\` flags in this file 7587 // are redundant \u2014 section dividers are now applied client-side in the preset 7588 // flyout via \`forceShowDividerAboveTransform\`. 7589 // Order is start values then end values (startWidth, startHeight, endWidth, 7590 // endHeight) so the custom-xy flyout groups Starts then Ends, matching the 7591 // dividers in \`getSectionDividerProps\` (and the position preset's layout). 7592 startWidth: { 7593 label: "motion.preset_flyout.start", 7594 type: "number", 7595 control: "input", 7596 defaultValue: 50, 7597 icon: "w", 7598 showDividerAbove: true 7599 }, 7600 startHeight: { 7601 label: "motion.preset_flyout.start", 7602 type: "number", 7603 control: "input", 7604 defaultValue: 50, 7605 icon: "h" 7606 }, 7607 endWidth: { 7608 label: "motion.preset_flyout.end", 7609 type: "number", 7610 control: "input", 7611 defaultValue: 100, 7612 icon: "w" 7613 }, 7614 endHeight: { 7615 label: "motion.preset_flyout.end", 7616 type: "number", 7617 control: "input", 7618 defaultValue: 100, 7619 icon: "h" 7620 }, 7621 // Note: 'delay' is kept in sync with a preset's \`timelineOffset\` 7622 delay: { 7623 label: "motion.preset_flyout.delay", 7624 type: "number", 7625 control: "input", 7626 defaultValue: 0, 7627 unit: "s", 7628 showDividerAbove: true, 7629 icon: "delay" 7630 }, 7631 duration: { 7632 label: "motion.preset_flyout.duration", 7633 type: "number", 7634 control: "input", 7635 defaultValue: 0.5, 7636 min: 0.01, 7637 unit: "s", 7638 icon: "time" 7639 }, 7640 easing: { 7641 label: "motion.preset_flyout.easing", 7642 type: "easing", 7643 defaultValue: { 7644 easingType: EasingType.OUT_CUBIC 7645 } 7646 } 7647 });
7648 return __toCommonJS(size_exports); 7649})();`});var b0,L0,C0=Qt(()=>{b0=`// Source-of-truth for the TEXT_DATA first-party animation preset. 7650// 7651// The build-time preset-bundle codegen (see \`../scripts/generate_preset_bundles.ts\`) 7652// reads this file's raw text, esbuilds it into an IIFE with \`figma:motion\` 7653// resolved, and emits both strings into \`../generated/text_data.generated.ts\`. 7654// The generated module is what runtime code consumes \u2014 never import this file 7655// directly from production code paths. 7656// 7657// This file is excluded from the share/motion \`ts_project\` compilation \u2014 it's 7658// only an input to the codegen tool, evaluated inside the QuickJS / iframe 7659// sandbox at runtime. 7660 7661import { animate, defineProperties, EasingType } from 'figma:motion' 7662 7663import type { PresetArgs } from './preset_types' 7664 7665function revealTextKeyframes({ text, by, duration, linesStartIndices, easing }: PresetArgs) { 7666 const keyframes: Array<{ timelinePosition: number; value: string; easing: PresetArgs }> = [] 7667 const push = (value: string, i: number, n: number) => 7668 keyframes.push({ 7669 timelinePosition: n <= 1 ? 0 : (i / (n - 1)) * duration, 7670 value, 7671 easing, 7672 }) 7673 7674 if (by === 'character') { 7675 const chars = Array.from(text) 7676 for (let i = 0; i <= chars.length; i++) push(chars.slice(0, i).join(''), i, chars.length + 1) 7677 } else if (by === 'word') { 7678 const wordEndIndices = [0] 7679 const wordRegex = /\\S+/g 7680 for (const match of text.matchAll(wordRegex)) { 7681 wordEndIndices.push(match.index + match[0].length) 7682 } 7683 const n = wordEndIndices.length 7684 for (let i = 0; i < n; i++) push(text.slice(0, wordEndIndices[i]), i, n) 7685 } else if (by === 'line') { 7686 const starts = linesStartIndices ?? [] 7687 const cuts = [0, ...starts, text.length + 1] 7688 for (let i = 0; i < cuts.length; i++) 7689 push(text.slice(0, Math.max(0, cuts[i] - 1)), i, cuts.length) 7690 } 7691 7692 return { mode: 'set', keyframes } 7693} 7694 7695export default function preset({ revealBy, duration, target, baseNodeData }: PresetArgs) { 7696 const easing = { easingType: EasingType.OUT_CUBIC } 7697 return [ 7698 animate(target, { 7699 textData: revealTextKeyframes({ 7700 text: baseNodeData.text, 7701 by: revealBy, 7702 duration, 7703 linesStartIndices: baseNodeData.linesStartIndices, 7704 easing, 7705 }), 7706 }), 7707 ] 7708} 7709
7710defineProperties(preset, { 7711 revealBy: { 7712 label: 'Reveal By', 7713 type: 'string', 7714 defaultValue: 'character', 7715 control: 'select', 7716 options: [ 7717 { value: 'character', label: 'Character' }, 7718 { value: 'word', label: 'Word' }, 7719 { value: 'line', label: 'Line' }, 7720 ], 7721 }, 7722 duration: { 7723 label: 'Duration', 7724 type: 'number', 7725 defaultValue: 1.5, 7726 control: 'input', 7727 min: 0.01, 7728 unit: 's', 7729 }, 7730}) 7731`,L0=`var __presetBundle = (() => { 7732 var __defProp = Object.defineProperty; 7733 var __getOwnPropDesc = Object.getOwnPropertyDescriptor; 7734 var __getOwnPropNames = Object.getOwnPropertyNames; 7735 var __hasOwnProp = Object.prototype.hasOwnProperty; 7736 var __export = (target, all) => { 7737 for (var name in all) 7738 __defProp(target, name, { get: all[name], enumerable: true }); 7739 }; 7740 var __copyProps = (to, from, except, desc) => { 7741 if (from && typeof from === "object" || typeof from === "function") { 7742 for (let key of __getOwnPropNames(from)) 7743 if (!__hasOwnProp.call(to, key) && key !== except) 7744 __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable }); 7745 } 7746 return to; 7747 }; 7748 var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod); 7749 7750
7750// ../../../../../../../../execroot/_main/bazel-out/k8-fastbuild/bin/share/motion/src/presets/source/text_data.ts 7751 var text_data_exports = {}; 7752 __export(text_data_exports, { 7753 default: () => preset 7754 }); 7755 7756 // figma-motion:figma:motion 7757 function defineProperties(component, spec) { 7758 Object.assign(component, { 7759 [/* @__PURE__ */ Symbol.for("figma.react.props")]: spec 7760 }); 7761 } 7762 var EasingType = { 7763 IN_CUBIC: 0, 7764 inCubic: 0, 7765 OUT_CUBIC: 1, 7766 outCubic: 1, 7767 INOUT_CUBIC: 2, 7768 inOutCubic: 2, 7769 LINEAR: 3, 7770 linear: 3, 7771 IN_BACK_CUBIC: 4, 7772 inBackCubic: 4, 7773 OUT_BACK_CUBIC: 5, 7774 outBackCubic: 5, 7775 INOUT_BACK_CUBIC: 6, 7776 inOutBackCubic: 6, 7777 CUSTOM_CUBIC: 7, 7778 customCubic: 7, 7779 SPRING: 8, 7780 spring: 8, 7781 GENTLE_SPRING: 9, 7782 gentleSpring: 9, 7783 CUSTOM_SPRING: 10, 7784 customSpring: 10, 7785 SPRING_PRESET_ONE: 11, 7786 springPresetOne: 11, 7787 SPRING_PRESET_TWO: 12, 7788 springPresetTwo: 12, 7789 SPRING_PRESET_THREE: 13, 7790 springPresetThree: 13, 7791 // For backwards compat 7792 bezier: 100, 7793 BEZIER: 100 7794 }; 7795 var InterpolationType = { 7796 HOLD: 0, 7797 hold: 0, 7798 BEZIER: 1, 7799 bezier: 1 7800 }; 7801 var KeyframeOperation = { 7802 SET: 0, 7803 set: 0, 7804 SCALE: 1, 7805 scale: 1, 7806 OFFSET: 2, 7807 offset: 2 7808 }; 7809 var ParameterField = { 7810 MISSING: 0, 7811 missing: 0, 7812 CORNER_RADIUS: 1, 7813 cornerRadius: 1, 7814 PARAGRAPH_SPACING: 2, 7815 paragraphSpacing: 2, 7816 PARAGRAPH_INDENT: 3, 7817 paragraphIndent: 3, 7818 STROKE_WEIGHT: 4, 7819 strokeWeight: 4, 7820 STACK_SPACING: 5, 7821 stackSpacing: 5, 7822 STACK_PADDING_LEFT: 6, 7823 stackPaddingLeft: 6, 7824 STACK_PADDING_TOP: 7, 7825 stackPaddingTop: 7, 7826 STACK_PADDING_RIGHT: 8, 7827 stackPaddingRight: 8, 7828 STACK_PADDING_BOTTOM: 9, 7829 stackPaddingBottom: 9, 7830 VISIBLE: 10, 7831 visible: 10, 7832 TEXT_DATA: 11, 7833 textData: 11, 7834 WIDTH: 12, 7835 width: 12, 7836 HEIGHT: 13, 7837 height: 13, 7838 RECTANGLE_TOP_LEFT_CORNER_RADIUS: 14, 7839 rectangleTopLeftCornerRadius: 14, 7840 RECTANGLE_TOP_RIGHT_CORNER_RADIUS: 15, 7841 rectangleTopRightCornerRadius: 15, 7842 RECTANGLE_BOTTOM_LEFT_CORNER_RADIUS: 16, 7843 rectangleBottomLeftCornerRadius: 16, 7844 RECTANGLE_BOTTOM_RIGHT_CORNER_RADIUS: 17, 7845 rectangleBottomRightCornerRadius: 17, 7846 BORDER_TOP_WEIGHT: 18, 7847 borderTopWeight: 18, 7848 BORDER_BOTTOM_WEIGHT: 19, 7849 borderBottomWeight: 19, 7850 BORDER_LEFT_WEIGHT: 20, 7851 borderLeftWeight: 20, 7852 BORDER_RIGHT_WEIGHT: 21, 7853 borderRightWeight: 21, 7854 VARIANT_PROPERTIES: 22, 7855 variantProperties: 22, 7856 STACK_COUNTER_SPACING: 23, 7857 stackCounterSpacing: 23, 7858 MIN_WIDTH: 24, 7859 minWidth: 24, 7860 MAX_WIDTH: 25, 7861 maxWidth: 25, 7862 MIN_HEIGHT: 26, 7863 minHeight: 26, 7864 MAX_HEIGHT: 27, 7865 maxHeight: 27, 7866 FONT_FAMILY: 28, 7867 fontFamily: 28, 7868 FONT_STYLE: 29, 7869 fontStyle: 29, 7870 FONT_VARIATIONS: 30, 7871 fontVariations: 30, 7872 OPACITY: 31, 7873 opacity: 31, 7874 FONT_SIZE: 32, 7875 fontSize: 32, 7876 LETTER_SPACING: 34, 7877 letterSpacing: 34, 7878 LINE_HEIGHT: 36, 7879 lineHeight: 36, 7880 OVERRIDDEN_SYMBOL_ID: 37, 7881 overriddenSymbolId: 37, 7882 CMS_SERIALIZED_RICH_TEXT_DATA: 38, 7883 cmsSerializedRichTextData: 38, 7884 HYPERLINK: 39, 7885 hyperlink: 39, 7886 SLOT_CONTENT_ID: 40, 7887 slotContentId: 40, 7888 GRID_ROW_GAP: 41, 7889 gridRowGap: 41, 7890 GRID_COLUMN_GAP: 42, 7891 gridColumnGap: 42, 7892 RELATIVE_X_POSITION: 43, 7893 xPosition: 43, 7894 RELATIVE_Y_POSITION: 44, 7895 relativeYPosition: 44, 7896 RELATIVE_ROTATION: 45, 7897 relativeRotation: 45, 7898 MOTION_TRANSLATION_X: 46, 7899 motionTranslationX: 46, 7900 MOTION_TRANSLATION_Y: 47, 7901 motionTranslationY: 47, 7902 MOTION_ROTATION: 48, 7903 motionRotation: 48, 7904 MOTION_SCALE_X: 49, 7905 motionScaleX: 49, 7906 MOTION_SCALE_Y: 50, 7907 motionScaleY: 50, 7908 MOTION_SHEAR: 51, 7909 motionShear: 51, 7910 SCROLL_OFFSET_X: 52, 7911 scrollOffsetX: 52, 7912 SCROLL_OFFSET_Y: 53, 7913 scrollOffsetY: 53, 7914 PATH_TRIM_START: 54, 7915 pathTrimStart: 54, 7916 PATH_TRIM_END: 55, 7917 pathTrimEnd: 55, 7918 DISSOLVE_PROGRESS: 56, 7919 dissolveProgress: 56 7920 }; 7921 var Keyframe = class { 7922 constructor(data) { 7923 this.timelinePosition = Math.round(data.timelinePosition); 7924 this.easing = data.easing; 7925 this.value = data.value; 7926 } 7927 }; 7928 var KeyframeTrack = class { 7929 constructor(data) { 7930 this.topLevelField = data.topLevelField; 7931 this.parameterField = data.parameterField; 7932 this.index = data.index; 7933 this.effectParametrizedField = data.effectParametrizedField; 7934 this.keyframeOperation = data.keyframeOperation; 7935 this.keyframes = data.keyframes; 7936 this.enabled = !!data.enabled; 7937 } 7938 }; 7939 var AnimationPreset = class { 7940 constructor(data) { 7941 this.nodeId = data.nodeId; 7942 this.keyframeTracks = data.keyframeTracks; 7943 } 7944 }; 7945 var PARAMETER_FIELD_ALIAS_MAP = { 7946 translateX: ParameterField.MOTION_TRANSLATION_X, 7947 translateY: ParameterField.MOTION_TRANSLATION_Y, 7948 rotate: ParameterField.MOTION_ROTATION, 7949 scaleX: ParameterField.MOTION_SCALE_X, 7950 scaleY: ParameterField.MOTION_SCALE_Y, 7951 shear: ParameterField.MOTION_SHEAR 7952 }; 7953 var KEYFRAMEABLE_FIELDS = /* @__PURE__ */ new Set(["translateX", "translateY", "rotate", "scaleX", "scaleY", "shear", "cornerRadius", "strokeWeight", "rectangleTopLeftCornerRadius", "rectangleTopRightCornerRadius", "rectangleBottomLeftCornerRadius", "rectangleBottomRightCornerRadius", "stackSpacing", "stackPaddingLeft", "stackPaddingTop", "stackPaddingRight", "stackPaddingBottom", "width", "height", "borderTopWeight", "borderBottomWeight", "borderLeftWeight", "borderRightWeight", "stackCounterSpacing", "minWidth", "maxWidth", "minHeight", "maxHeight", "opacity", "gridRowGap", "gridColumnGap", "textData", "pathTrimStart", "pathTrimEnd"]); 7954 var MODE_TO_OPERATION = { 7955 set: KeyframeOperation.SET, 7956 SET: KeyframeOperation.SET, 7957 offset: KeyframeOperation.OFFSET, 7958 OFFSET: KeyframeOperation.OFFSET, 7959 scale: KeyframeOperation.SCALE, 7960 SCALE: KeyframeOperation.SCALE 7961 }; 7962 function normalizeEasing(easing) { 7963 if (easing === void 0) return void 0; 7964 if (easing === "hold") return { interpolationType: InterpolationType.HOLD }; 7965 if (typeof easing === "string") { 7966 const easingType = EasingType[easing]; 7967 if (easingType === void 0) throw new Error('normalizeEasing: unknown easing "' + easing + '"'); 7968 return { easingType }; 7969 } 7970 return easing; 7971 } 7972 function compileKeyframe({ timelinePosition, value, easing }) { 7973 return new Keyframe({ 7974 timelinePosition: timelinePosition * 1e6, 7975 easing: normalizeEasing(easing), 7976 value 7977 }); 7978 } 7979 function animate(node, definition) { 7980 const nodeId = typeof node === "string" ? node : node.id;
7981 const keyframeTracks = []; 7982 for (const [key, trackDef] of Object.entries(definition)) { 7983 if (!KEYFRAMEABLE_FIELDS.has(key)) { 7984 throw new Error('animate: unknown or non-keyframeable property "' + key + '"'); 7985 } 7986 const parameterField = PARAMETER_FIELD_ALIAS_MAP[key] ?? ParameterField[key]; 7987 const operation = MODE_TO_OPERATION[trackDef.mode]; 7988 if (operation === void 0) throw new Error('animate: unknown mode "' + trackDef.mode + '"'); 7989 const seen = /* @__PURE__ */ new Map(); 7990 for (const kf of trackDef.keyframes) seen.set(kf.timelinePosition, kf); 7991 const sorted = [...seen.values()].sort((a, b) => a.timelinePosition - b.timelinePosition); 7992 keyframeTracks.push(new KeyframeTrack({ 7993 parameterField, 7994 keyframeOperation: operation, 7995 keyframes: sorted.map(compileKeyframe), 7996 enabled: trackDef.enabled !== false 7997 })); 7998 } 7999 return new AnimationPreset({ nodeId, keyframeTracks }); 8000 } 8001 8002
8002// ../../../../../../../../execroot/_main/bazel-out/k8-fastbuild/bin/share/motion/src/presets/source/text_data.ts 8003 function revealTextKeyframes({ text, by, duration, linesStartIndices, easing }) { 8004 const keyframes = []; 8005 const push = (value, i, n) => keyframes.push({ 8006 timelinePosition: n <= 1 ? 0 : i / (n - 1) * duration, 8007 value, 8008 easing 8009 }); 8010 if (by === "character") { 8011 const chars = Array.from(text); 8012 for (let i = 0; i <= chars.length; i++) push(chars.slice(0, i).join(""), i, chars.length + 1); 8013 } else if (by === "word") { 8014 const wordEndIndices = [0]; 8015 const wordRegex = /\\S+/g; 8016 for (const match of text.matchAll(wordRegex)) { 8017 wordEndIndices.push(match.index + match[0].length); 8018 } 8019 const n = wordEndIndices.length; 8020 for (let i = 0; i < n; i++) push(text.slice(0, wordEndIndices[i]), i, n); 8021 } else if (by === "line") { 8022 const starts = linesStartIndices ?? []; 8023 const cuts = [0, ...starts, text.length + 1]; 8024 for (let i = 0; i < cuts.length; i++) 8025 push(text.slice(0, Math.max(0, cuts[i] - 1)), i, cuts.length); 8026 } 8027 return { mode: "set", keyframes }; 8028 } 8029 function preset({ revealBy, duration, target, baseNodeData }) { 8030 const easing = { easingType: EasingType.OUT_CUBIC }; 8031 return [ 8032 animate(target, { 8033 textData: revealTextKeyframes({ 8034 text: baseNodeData.text, 8035 by: revealBy, 8036 duration, 8037 linesStartIndices: baseNodeData.linesStartIndices, 8038 easing 8039 }) 8040 }) 8041 ]; 8042 } 8043 defineProperties(preset, { 8044 revealBy: { 8045 label: "Reveal By", 8046 type: "string", 8047 defaultValue: "character", 8048 control: "select", 8049 options: [ 8050 { value: "character", label: "Character" }, 8051 { value: "word", label: "Word" }, 8052 { value: "line", label: "Line" } 8053 ] 8054 }, 8055 duration: { 8056 label: "Duration", 8057 type: "number", 8058 defaultValue: 1.5, 8059 control: "input", 8060 min: 0.01, 8061 unit: "s" 8062 } 8063 }); 8064 return __toCommonJS(text_data_exports); 8065})();`});var Sn,P0=Qt(()=>{Fe();Vx();Yx();Xx();Zx();Qx();n0();i0();l0();d0();m0();T0();g0();R0();y0();C0();Sn={[G.FADE_DEPRECATED]:{source:Hx,iife:Wx},[G.MOVE_DEPRECATED]:{source:Kx,iife:zx},[G.ROTATE_DEPRECATED]:{source:E0,iife:_0},[G.SCALE]:{source:I0,iife:S0},[G.RESIZE_DEPRECATED]:{source:f0,iife:p0},[G.NEW]:{source:jx,iife:$x},[G.TEXT_DATA]:{source:b0,iife:L0},[G.PATH_DRAW_DEPRECATED]:{source:r0,iife:o0},[G.PATH_TRAVEL_DEPRECATED]:{source:s0,iife:a0},[G.OPACITY]:{source:Jx,iife:qx},[G.CORNER_RADIUS]:{source:Bx,iife:Ux},[G.ROTATION]:{source:h0,iife:O0},[G.PATH]:{source:e0,iife:t0},[G.POSITION]:{source:u0,iife:c0},[G.SIZE]:{source:A0,iife:N0}}});var MB=ar(sN=>{"use strict";var X7=Symbol.for("react.fragment");sN.Fragment=X7;sN.jsxDEV=void 0});var aN=ar((_xe,GB)=>{"use strict";GB.exports=MB()});var aO=v(W()),lO=v(nE());var eW=0;function de(e,t){let n=`atom${++eW}`,r={toString(){return(import.meta.env?import.meta.env.MODE:void 0)!=="production"&&this.debugLabel?n+":"+this.debugLabel:n}};return typeof e=="function"?r.read=e:(r.init=e,r.read=tW,r.write=nW),t&&(r.write=t),r}function tW(e){return e(this)}function nW(e,t,n){return t(this,typeof n=="function"?n(e(this)):n)}var yC=(e,t)=>e.unstable_is?e.unstable_is(t):t===e,PI=e=>"init"in e,DI=e=>!!e.write,cf=Symbol((import.meta.env?import.meta.env.MODE:void 0)!=="production"?"CONTINUE_PROMISE":""),xI="pending",rW="fulfilled",oW="rejected",iW=e=>typeof e=="object"&&e!==null&&cf in e,rE=new WeakMap,sW=(e,t,n)=>{if(!rE.has(e)){let r,o=new Promise((i,s)=>{let a=e,l=c=>d=>{a===c&&(o.status=rW,o.value=d,i(d),n())},u=c=>d=>{a===c&&(o.status=oW,o.reason=d,s(d),n())};e.then(l(e),u(e)),r=(c,d)=>{c&&(rE.set(c,o),a=c,c.then(l(c),u(c)),t(),t=d)}});o.status=xI,o[cf]=r,rE.set(e,o)}return rE.get(e)},aW=e=>typeof e?.then=="function",bC=e=>"v"in e||"e"in e,oE=e=>{if("e"in e)throw e.e;if((import.meta.env?import.meta.env.MODE:void 0)!=="production"&&!("v"in e))throw new Error("[Bug] atom state is not initialized");return e.v},iE=e=>{let t=e.v;return iW(t)&&t.status===xI?t:null},PC=(e,t,n)=>{n.p.has(e)||(n.p.add(e),t.then(()=>{n.p.delete(e)},()=>{n.p.delete(e)}))},LC=(e,t,n,r,o)=>{var i;if((import.meta.env?import.meta.env.MODE:void 0)!=="production"&&r===t)throw new Error("[Bug] atom cannot depend on itself");n.d.set(r,o.n);let s=iE(n);s&&PC(t,s,o),(i=o.m)==null||i.t.add(t),e&&lW(e,r,t)},Iu=()=>[new Map,new Map,new Set],vI=(e,t,n)=>{e[0].has(t)||e[0].set(t,new Set),e[1].set(t,n)},lW=(e,t,n)=>{let r=e[0].get(t);r&&r.add(n)},uW=(e,t)=>e[0].get(t),CC=(e,t)=>{e[2].add(t)},ba=e=>{for(;e[1].size||e[2].size;){e[0].clear();let t=new Set(e[1].values());e[1].clear();let n=new Set(e[2]);e[2].clear(),t.forEach(r=>{var o;return(o=r.m)==null?void 0:o.l.forEach(i=>
8065i())}),n.forEach(r=>r())}},DC=e=>{let t;(import.meta.env?import.meta.env.MODE:void 0)!=="production"&&(t=new Set);let n=(T,h,m,E=()=>{},O=()=>{})=>{let g="v"in h,I=h.v,S=iE(h);if(aW(m))if(S)S!==m&&(S[cf](m,E),++h.n);else{let A=sW(m,E,O);if(A.status===xI)for(let R of h.d.keys())PC(T,A,e(R,h));h.v=A,delete h.e}else S&&S[cf](Promise.resolve(m),E),h.v=m,delete h.e;(!g||!Object.is(I,h.v))&&++h.n},r=(T,h,m,E)=>{if(!E?.(h)&&bC(m)&&(m.m||Array.from(m.d).every(([R,y])=>r(T,R,e(R,m),E).n===y)))return m;m.d.clear();let O=!0,g=R=>{if(yC(h,R)){let b=e(R,m);if(!bC(b))if(PI(R))n(R,b,R.init);else throw new Error("no atom init");return oE(b)}let y=r(T,R,e(R,m),E);if(O)LC(T,h,m,R,y);else{let b=Iu();LC(b,h,m,R,y),u(b,h,m),ba(b)}return oE(y)},I,S,A={get signal(){return I||(I=new AbortController),I.signal},get setSelf(){return(import.meta.env?import.meta.env.MODE:void 0)!=="production"&&!DI(h)&&console.warn("setSelf function cannot be used with read-only atom"),!S&&DI(h)&&(S=(...R)=>{if((import.meta.env?import.meta.env.MODE:void 0)!=="production"&&O&&console.warn("setSelf function cannot be called in sync"),!O)return l(h,...R)}),S}};try{let R=h.read(g,A);return n(h,m,R,()=>I?.abort(),()=>{if(m.m){let y=Iu();u(y,h,m),ba(y)}}),m}catch(R){return delete m.v,m.e=R,++m.n,m}finally{O=!1}},o=T=>oE(r(void 0,T,e(T))),i=(T,h,m)=>{var E,O;let g=new Map;for(let I of((E=m.m)==null?void 0:E.t)||[])g.set(I,e(I,m));for(let I of m.p)g.set(I,e(I,m));return(O=uW(T,h))==null||O.forEach(I=>{g.set(I,e(I,m))}),g},s=(T,h,m)=>{let E=[],O=new Set,g=(A,R)=>{if(!O.has(A)){O.add(A);for(let[y,b]of i(T,A,R))A!==y&&g(y,b);E.push([A,R,R.n])}};g(h,m);let I=new Set([h]),S=A=>O.has(A);for(let A=E.length-1;A>=0;--A){let[R,y,b]=E[A],L=!1;for(let D of y.d.keys())if(D!==R&&I.has(D)){L=!0;break}L&&(r(T,R,y,S),u(T,R,y),b!==y.n&&(vI(T,R,y),I.add(R))),O.delete(R)}},a=(T,h,m,...E)=>{let O=S=>oE(r(T,S,e(S,m))),g=(S,...A)=>{let R=e(S,m),y;if(yC(h,S)){if(!PI(S))throw new Error("atom not writable");let b="v"in R,L=R.v,D=A[0];n(S,R,D),u(T,S,R),(!b||!Object.is(L,R.v))&&(vI(T,S,R),s(T,S,R))}else y=a(T,S,R,...A);return ba(T),y};return h.write(O,g,...E)},l=(T,...h)=>{let m=Iu(),E=a(m,T,e(T),...h);return ba(m),E},u=(T,h,m)=>{if(m.m&&!iE(m)){for(let E of m.d.keys())m.m.d.has(E)||(c(T,E,e(E,m)).t.add(h),m.m.d.add(E));for(let E of m.m.d||[])if(!m.d.has(E)){m.m.d.delete(E);let O=d(T,E,e(E,m));O?.t.delete(h)}}},c=(T,h,m)=>{if(!m.m){r(T,h,m);for(let E of m.d.keys())c(T,E,e(E,m)).t.add(h);if(m.m={l:new Set,d:new Set(m.d.keys()),t:new Set},(import.meta.env?import.meta.env.MODE:void 0)!=="production"&&t.add(h),DI(h)&&h.onMount){let E=m.m,{onMount:O}=h;CC(T,()=>{let g=O((...I)=>a(T,h,m,...I));g&&(E.u=g)})}}return m.m},d=(T,h,m)=>{if(m.m&&!m.m.l.size&&!Array.from(m.m.t).some(E=>{var O;return(O=e(E,m).m)==null?void 0:O.d.has(h)})){let E=m.m.u;E&&CC(T,E),delete m.m,(import.meta.env?import.meta.env.MODE:void 0)!=="production"&&t.delete(h);for(let g of m.d.keys()){let I=d(T,g,e(g,m));I?.t.delete(h)}let O=iE(m);O&&O[cf](void 0,()=>{});return}return m.m},_={get:o,set:l,sub:(T,h)=>{let m=Iu(),E=e(T),O=c(m,T,E);ba(m);let g=O.l;return g.add(h),()=>{g.delete(h);let I=Iu();d(I,T,E),ba(I)}},unstable_derive:T=>DC(...T(e))};return(import.meta.env?import.meta.env.MODE:void 0)!=="production"&&Object.assign(_,{dev4_get_internal_weak_map:()=>({get:h=>{let m=e(h);if(m.n!==0)return m}}),dev4_get_mounted_atoms:()=>t,dev4_restore_atoms:h=>{let m=Iu();for(let[E,O]of h)if(PI(E)){let g=e(E),I="v"in g,S=g.v;n(E,g,O),u(m,E,g),(!I||!Object.is(S,g.v))&&(vI(m,E,g),s(m,E,g))}ba(m)}}),_},df=()=>{let e=new WeakMap;return DC(n=>{let r=e.get(n);return r||(r={d:new Map,p:new Set,n:0},e.set(n,r)),r})},uf,vC=()=>(uf||(uf=df(),(import.meta.env?import.meta.env.MODE:void 0)!=="production"&&(globalThis.__JOTAI_DEFAULT_STORE__||(globalThis.__JOTAI_DEFAULT_STORE__=uf),globalThis.__JOTAI_DEFAULT_STORE__!==uf&&console.warn("Detected multiple Jotai instances. It may cause unexpected behavior with the default store. https://github.com/pmndrs/jotai/discussions/2044"))),uf);var Ut=v(W(),1);var xC=(0,Ut.createContext)(void 0),MC=e=>{let t=(0,Ut.useContext)(xC);return e?.store||t||vC()},GC=({children:e,store:t})=>{let n=(0,Ut.useRef)();return!t&&!n.current&&(n.current=df()),(0,Ut.createElement)(xC.Provider,{value:t||n.current},e)},cW=e=>typeof e?.then=="function",dW=Ut.default.use||(e=>{if(e.status==="pending")throw e;if(e.status==="fulfilled")return e.value;throw e.status==="rejected"?e.reason:(e.status="pending",e.then(t=>{e.status="fulfilled",e.value=t},t=>{e.status="rejected",e.reason=t}),e)});function Ae(e,t){let n=MC(t),[[r,o,i],s]=(0,Ut.useReducer)(u=>{let c=n.get(e);return Object.is(u[0],c)&&u[1]===n&&u[2]===e?u:[c,n,e]},void 0,()=>[n.get(e),n,e]),a=r;(o!==n||i!==e)&&(s(),a=n.get(e));let l=t?.delay;return(0,Ut.useEffect)(()=>{let u=n.sub(e,()=>{if(typeof l=="number"){setTimeout(s,l);return}s()});return s(),u},[n,e,l]),(0,Ut.useDebugValue)(a),cW(a)?dW(a):a}function kC(e,t){let n=MC(t);return(0,Ut.useCallback)((...o)=>{if((import.meta.env?import.meta.env.MODE:void 0)!=="production"&&!("write"in e))throw new Error("not writable atom");return n.set(e,...o)},[n,e])}var Ln=v(_e()),ua=v(W());function UC(e,t,n){return e.renderHiddenRootNodes&&!n&&!t.visible}var iP=v(W()),sP=v(MI());function fo(e,t){return`node-${e.replace(/:/g,"_").replace(/;/g,"-")}${t?`_${t}`:""}`}function VC(e,t){return e in t}function HC(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var H=class{static fromFigVector(t){return new H(t.x,t.y)}static toVectorD(t){return{x:t.x,y:t.y}}static fromVectorD(t){return new H(t.x,t.y)}clone(){return new H(this.x,this.y)}equals(t){return this.x===t.x&&this.y===t.y}toString(){return`(${this.x}, ${this.y})`}add(t){return new H(this.x+t.x,this.y+t.y)}static add(...t){return t.filter(o=>o!=null).reduce((o,i)=>(o.x+=i.x,o.y+=i.y,o),{x:0,y:0})}subtract(t){return new H(this.x-t.x,this.y-t.y)}static subtract(t,n){return{x:t.x-n.x,y:t.y-n.y}}plus(t){return new H(this.x+t.x,this.y+t.y)}incrementBy(t){this.x=this.x+t.x,this.y=this.y+t.y}minus(t){return new H(this.x-t.x,this.y-t.y)}component(t){return t===0?this.x:this.y}length(){return Math.sqrt(this.x*this.x+this.y*this.y)}static scale(t,n){return{x:t*n.x,y:t*n.y}}static abs(t){return{x:Math.abs(t.x),y:Math.abs(t.y)}}scale(t){return new H(this.x*t,this.y*t)}multiply(t){return new H(this.x*t.x,this.y*t.y)}divide(t){return new H(this.x/t.x,this.y/t.y)}dot(t){return H.dot(this,t)}toAngle(){return Math.atan2(this.y,this.x)}
8065static bound(t,n){return n?{x:Math.max(Math.min(t.x,n.max.x),n.min.x),y:Math.max(Math.min(t.y,n.max.y),n.min.y)}:t}static dot(t,n){return t.x*n.x+t.y*n.y}static interpolate(t,n,r){return{x:t.x+(n.x-t.x)*r,y:t.y+(n.y-t.y)*r}}static rounded(t){return{x:Math.round(t.x),y:Math.round(t.y)}}static size(t){return Math.sqrt(H.dot(t,t))}size(){return H.size(this)}unit(){let t=this.size();return this.scale(t===0?0:1/t)}distanceTo(t){return H.size(this.subtract(t))}static distance(t,n){return H.size(H.subtract(t,n))}clamp(t){return new H(Math.max(t.x,Math.min(t.x+t.width,this.x)),Math.max(t.y,Math.min(t.y+t.height,this.y)))}clampX(t){return new H(Math.max(t.x,Math.min(t.x+t.width,this.x)),this.y)}clampY(t){return new H(this.x,Math.max(t.y,Math.min(t.y+t.height,this.y)))}rotate90(){return new H(-this.y,this.x)}hasNaN(){return Number.isNaN(this.x)||Number.isNaN(this.y)}isInvalid(){return this.hasNaN()}multiplyBy(t){return new H(this.x*t,this.y*t)}divideBy(t){return new H(this.x/t,this.y/t)}transpose(){return new H(this.y,this.x)}rounded(){return new H(Math.round(this.x),Math.round(this.y))}static max(t,n){return new H(Math.max(t.x,n.x),Math.max(t.y,n.y))}static min(t,n){return new H(Math.min(t.x,n.x),Math.min(t.y,n.y))}static infinity(){return new H(Number.POSITIVE_INFINITY,Number.POSITIVE_INFINITY)}static invalid(){return new H(Number.NaN,Number.NaN)}constructor(t=0,n=0){HC(this,"x",void 0),HC(this,"y",void 0),this.x=t,this.y=n}};function WC(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var Ke=class{static fromRectD(t){return new Ke(H.fromVectorD(t.origin),H.fromVectorD(t.size))}clone(){return new Ke(this.origin.clone(),this.size.clone())}equals(t){return this.origin.equals(t.origin)&&this.size.equals(t.size)}left(){return this.origin.x}top(){return this.origin.y}right(){return this.size.x===Number.POSITIVE_INFINITY?Number.POSITIVE_INFINITY:this.origin.x+this.width()}bottom(){return this.size.y===Number.POSITIVE_INFINITY?Number.POSITIVE_INFINITY:this.origin.y+this.height()}bottomRight(){return new H(this.right(),this.bottom())}bottomLeft(){return new H(this.left(),this.bottom())}topLeft(){return new H(this.left(),this.top())}topRight(){return new H(this.right(),this.top())}topCenter(){return new H(this.center().x,this.top())}bottomCenter(){return new H(this.center().x,this.bottom())}centerLeft(){return new H(this.left(),this.center().y)}centerRight(){return new H(this.right(),this.center().y)}center(){return new H(this.origin.x+this.size.x/2,this.origin.y+this.size.y/2)}width(){return this.size.x}height(){return this.size.y}transpose(){return new Ke(this.origin.transpose(),this.size.transpose())}offsetBy(t){return new Ke(this.origin.plus(t),this.size)}scaledBy(t){return new Ke(this.origin.multiplyBy(t),this.size.multiplyBy(t))}isInvalid(){return this.size.x<0||this.size.y<0||this.origin.hasNaN()||this.size.hasNaN()}isValid(){return!this.isInvalid()}isEmpty(){return this.isInvalid()?!0:this.size.x<=0||this.size.y<=0}isInfinite(){return this.origin.equals(H.infinity().multiplyBy(-1))&&this.size.equals(H.infinity())}unionWith(t){if(this.isInvalid())return t;if(t.isInvalid())return this;let n=H.min(this.origin,t.origin),r=H.max(this.bottomRight(),t.bottomRight());return n.equals(r)?this:new Ke(n,r.minus(n))}expandToInclude(t){if(this.isInvalid())return new Ke(t.clone(),new H(0,0));let n=H.min(this.origin,t),r=H.max(this.bottomRight(),t);return new Ke(n,r.minus(n))}containsIncludingBoundary(t){return!this.isEmpty()&&!t.isInvalid()&&this.left()<=t.left()&&this.right()>=t.right()&&this.top()<=t.top()&&this.bottom()>=t.bottom()}containsPointIncludingBoundary(t){return!this.isEmpty()&&this.left()<=t.x&&t.x<=this.right()&&this.top()<=t.y&&t.y<=this.bottom()}intersectWith(t){if(this.isInvalid()||t.isInvalid())return Ke.invalidRect();let n=H.max(this.origin,t.origin),r=H.min(this.bottomRight(),t.bottomRight()),o=new Ke(n,r.minus(n));if(o.origin.hasNaN()||o.size.hasNaN())throw new Error("Rect.intersectWith produced a result with NaN");return o.isInvalid()&&(o=Ke.invalidRect()),o}hasIntersectionWith(t){return!this.intersectWith(t).isEmpty()}expand(t){return this.isInvalid()?Ke.invalidRect():typeof t=="number"?Ke.fromOriginAndSize(this.origin.x-t,this.origin.y-t,this.size.x+2*t,this.size.y+2*t):new Ke(this.origin.minus(t),this.size.plus(t.multiplyBy(2)))}
8065static invalidRect(){return new Ke(new H(Number.POSITIVE_INFINITY,Number.POSITIVE_INFINITY),new H(Number.NEGATIVE_INFINITY,Number.NEGATIVE_INFINITY))}static infinite(){return new Ke(H.infinity().multiplyBy(-1),H.infinity())}static fromOriginAndSize(t,n,r,o){return new Ke(new H(t,n),new H(r,o))}static fromCenterSize(t,n){let r=n.divideBy(2);return new Ke(t.minus(r),n)}static fromFigRect(t){return new Ke(new H(t.x,t.y),new H(t.w,t.h))}static computeBounds(t,n){let r=H.min(t,n),o=H.max(t,n);return new Ke(r,o.minus(r))}static computeBoundsFromPointArray(t){let n=H.infinity(),r=H.infinity().multiplyBy(-1);for(let o of t)n=H.min(n,o),r=H.max(r,o);return new Ke(n,r.minus(n))}constructor(t=new H,n=new H){WC(this,"origin",void 0),WC(this,"size",void 0),this.origin=t,this.size=n}};function Es(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var ke=class{static identity(){return this.fromNumbers(1,0,0,0,1,0)}static fromNumbers(t,n,r,o,i,s){let a=new ke;return a.m00=t,a.m01=n,a.m02=r,a.m10=o,a.m11=i,a.m12=s,a}static copy(t){let n=new ke;return n.m00=t.m00,n.m01=t.m01,n.m02=t.m02,n.m10=t.m10,n.m11=t.m11,n.m12=t.m12,n}static fromArray(t){let n=new ke;return n.m00=t[0][0],n.m01=t[0][1],n.m02=t[0][2],n.m10=t[1][0],n.m11=t[1][1],n.m12=t[1][2],n}static fromVectors(t,n,r){let o=new ke;return o.m00=n.x,o.m01=r.x,o.m02=t.x,o.m10=n.y,o.m11=r.y,o.m12=t.y,o}static fromFigMatrix(t){let n=new ke;return n.m00=t.m00,n.m01=t.m01,n.m02=t.m02,n.m10=t.m10,n.m11=t.m11,n.m12=t.m12,n}toFigMatrix(){return{m00:this.m00,m01:this.m01,m02:this.m02,m10:this.m10,m11:this.m11,m12:this.m12}}toMatrix(){return[[this.m00,this.m01,this.m02],[this.m10,this.m11,this.m12]]}axisX(){return new H(this.m00,this.m10)}axisY(){return new H(this.m01,this.m11)}offset(){return new H(this.m02,this.m12)}toRadians(){return Math.atan2(this.m10,this.m00)}toDegrees(){return Math.atan2(this.m10,this.m00)*180/Math.PI}toScale(){let{m00:t,m01:n,m10:r,m11:o}=this;return new H(Math.sqrt(t*t+r*r),Math.sqrt(n*n+o*o))}hasNaN(){return this.m00!==this.m00&&this.m01!==this.m01&&this.m02!==this.m02&&this.m10!==this.m10&&this.m11!==this.m11&&this.m12!==this.m12}translate(t,n){this.m02=t*this.m00+n*this.m01+this.m02,this.m12=t*this.m10+n*this.m11+this.m12}rotate(t){if(t===0)return;let n=Math.sin(t),r=Math.cos(t),o=r*this.m00+n*this.m01,i=r*this.m01-n*this.m00,s=r*this.m10+n*this.m11,a=r*this.m11-n*this.m10;this.m00=o,this.m01=i,this.m10=s,this.m11=a}scale(t,n){this.m00*=t,this.m01*=n,this.m10*=t,this.m11*=n}multiply(t){let n=this.m00*t.m00+this.m01*t.m10,r=this.m00*t.m01+this.m01*t.m11,o=this.m00*t.m02+this.m01*t.m12+this.m02,i=this.m10*t.m00+this.m11*t.m10,s=this.m10*t.m01+this.m11*t.m11,a=this.m10*t.m02+this.m11*t.m12+this.m12;this.m00=n,this.m01=r,this.m02=o,this.m10=i,this.m11=s,this.m12=a}determinant(){return this.m00*this.m11-this.m01*this.m10}invert(){let t=1/this.determinant();if(!isFinite(t))return!1;let n=ke.fromNumbers(this.m11*t,-this.m01*t,(this.m01*this.m12-this.m11*this.m02)*t,-this.m10*t,this.m00*t,(this.m10*this.m02-this.m00*this.m12)*t);return n.hasNaN()?!1:(this.m00=n.m00,this.m01=n.m01,this.m02=n.m02,this.m10=n.m10,this.m11=n.m11,this.m12=n.m12,!0)}transformRect(t){if(t.isInvalid())return t;if(this.axisX().y===0&&this.axisY().x===0)return Ke.computeBounds(this.transformPoint(t.topLeft()),this.transformPoint(t.bottomRight()));let n=[this.transformPoint(t.topLeft()),this.transformPoint(t.topRight()),this.transformPoint(t.bottomLeft()),this.transformPoint(t.bottomRight())];return Ke.computeBoundsFromPointArray(n)}transformPoint(t){return new H(this.m00*t.x+this.m01*t.y+this.m02,this.m10*t.x+this.m11*t.y+this.m12)}transformDirection(t){return new H(this.m00*t.x+this.m01*t.y,this.m10*t.x+this.m11*t.y)}inverseTransformPoint(t){let n=1/this.determinant();if(!isFinite(n))return H.invalid();let r=new H((this.m11*t.x-this.m01*t.y+this.m01*this.m12-this.m11*this.m02)*n,(this.m00*t.y-this.m10*t.x+this.m10*this.m02-this.m00*this.m12)*n);return r.hasNaN()?H.invalid():r}toTrss(){let t=this.m00*this.m00+this.m10*this.m10,n=this.m01*this.m01+this.m11*this.m11;if(t===0||n===0)return{translationX:this.m02,translationY:this.m12,rotation:0,scaleX:this.m00,scaleY:this.m11,shear:0};let r=this.m00*this.m11-this.m01*this.m10,o=Math.atan2(this.m10,this.m00),i,s,a;return Math.abs(Math.cos(o))>Math.abs(Math.sin(o))?(i=this.m00/Math.cos(o),s=r/i,a=(this.m01+s*Math.sin(o))/this.m00):(i=this.m10/Math.sin(o),s=r/i,a=(this.m11-s*Math.cos(o))/this.m10),{translationX:this.m02,translationY:this.m12,rotation:o,scaleX:i,scaleY:s,shear:a}}constructor(){Es(this,"m00",void 0),Es(this,"m01",void 0),Es(this,"m02",void 0),Es(this,"m10",void 0),Es(this,"m11",void 0),Es(this,"m12",void 0),this.m00=this.m01=this.m02=this.m10=this.m11=this.m12=0}};Es(ke,"kEpsilon",1e-6);Es(ke,"kEpsilonSqr",ke.kEpsilon*ke.kEpsilon);var La=function(e){return e[e.SVG=0]="SVG",e[e.CSS=1]="CSS",e}(La||{});var Vt={colorProfile:0,colorspaceConversion:0};function ve(e){return String(+e.toPrecision(5))}function ff(e){return ke.fromNumbers(e[0][0],e[0][1],e[0][2],e[1][0],e[1][1],e[1][2])}function YC(e){let t=e.toFigMatrix();return[[t.m00,t.m01,t.m02],[t.m10,t.m11,t.m12]]}function _s(e){let t=e.toFigMatrix();return`matrix(${ve(t.m00)} ${ve(t.m10)} ${ve(t.m01)} ${ve(t.m11)} ${ve(t.m02)} ${ve(t.m12)})`}function x(e,t=3){return e===void 0?e:parseFloat(e.toFixed(t))}function Tt(e,t=10**-3){return Math.abs(e)<t?0:e}
8065function zC(e,t,n){return e+(t-e)*n}function KC(e){let{a:t,...n}=e;return{alpha:t,color:n}}function wI(e,t,n){return Object.keys(e).reduce((r,o)=>(r[o]=zC(e[o],t[o],n),r),{})}function hW(e,t){return Math.sqrt(((e.r-t.r)**2+(e.b-t.b)**2+(e.g-t.g)**2)/3)}function pf(e,t){return Object.keys(e).reduce((n,r)=>(n[r]=e[r]*t,n),{})}function GI(e){return e**2.2}function kI(e){return e**(1/2.2)}function lE(e){return{r:GI(e.r),g:GI(e.g),b:GI(e.b),a:e.a}}function XC(e){return{r:kI(e.r),g:kI(e.g),b:kI(e.b),a:e.a}}function uE(e,t,n){let r=lE(e),o=lE(t),{alpha:i,color:s}=KC(r),{alpha:a,color:l}=KC(o),u=pf(s,i),c=pf(l,a),d=zC(i,a,n),f=pf(wI(u,c,n),1/(d||1)),p={r:f.r,g:f.g,b:f.b,a:d};return XC(p)}function Ru(e,t,n){let r=lE(e),o=lE(t),i=wI(r,o,n);return XC(i)}function pi(e,t,n){return wI(e,t,n)}function FI(e){let{stop1:t,stop2:n,...r}=e,o=r.targetInterpolation(t.color,n.color,.5),{a:i,...s}=o,{a,...l}=r.actualInterpolation(t.color,n.color,.5);if(r.recursionLimit===0||hW(pf(s,i),pf(l,a))<=r.epsilon)return[t,n];let u=(t.position+n.position)/2,c={color:o,position:u},d=FI({...r,stop1:t,stop2:c,recursionLimit:r.recursionLimit-1}),f=FI({...r,stop1:c,stop2:n,recursionLimit:r.recursionLimit-1});return[...d,...f.slice(1)]}function mi(e){let{stops:t,epsilon:n,recursionLimit:r,targetInterpolation:o,actualInterpolation:i}=e,s=[];for(let a=0;a<t.length-1;a++){let l=t[a],u=t[a+1],c=Math.abs(l.position-u.position)<1e-8?[l,u]:FI({stop1:l,stop2:u,epsilon:n,recursionLimit:r,targetInterpolation:o,actualInterpolation:i});a!==0&&c.shift(),s.push(...c)}return s}var te=class extends Error{severity="high";errorDetail;constructor(t,n){super(t),Object.setPrototypeOf(this,te.prototype),n&&n instanceof Error&&(this.cause=n)}},ht=class extends te{constructor(t,n){super(t,n),this.severity="low"}};var BI="snapshot",UI="sandbox";
8065var OW=6,Y=class{contents;constructor(t){this.contents=t}static px(t){return new Y({type:"value",unit:"px",value:t})}static percent(t){return new Y({type:"value",unit:"%",value:t})}static number(t){return new Y({type:"value",unit:"",value:t})}static cqw(t){return new Y({type:"value",unit:"cqw",value:t})}static cqh(t){return new Y({type:"value",unit:"cqh",value:t})}static cssLength(t){let n=t.match(/^([0-9.]+)(cqw|cqh|px|%)$/);if(!n||n[1]===void 0)throw new te(`Unsupported CSS length: ${t}`);return new Y({type:"value",unit:n[2],value:parseFloat(n[1])})}static hypot(t,n){return new Y({type:"fn",fn:"hypot",args:[t,n]})}static cos(t){return new Y({type:"fn",fn:"cos",args:[t]})}static atan2(t,n){return new Y({type:"fn",fn:"atan2",args:[t,n]})}static var(t,n){return new Y({type:"variable",name:t,fallback:n})}add(t){return this.contents.type==="value"&&t.contents.type==="value"&&t.contents.value<0?this.subtract(new Y({type:"value",unit:t.contents.unit,value:-t.contents.value})):new Y({type:"operation",operation:"+",left:this,right:t})}subtract(t){return this.contents.type==="value"&&t.contents.type==="value"&&t.contents.value<0?this.add(new Y({type:"value",unit:t.contents.unit,value:-t.contents.value})):new Y({type:"operation",operation:"-",left:this,right:t})}multiply(t){return typeof t=="number"?this.multiply(Y.number(t)):new Y({type:"operation",operation:"*",left:this,right:t})}divide(t){return new Y({type:"operation",operation:"/",left:this,right:t})}static applyConstantOperation(t,n,r){switch(t){case"+":return n+r;case"-":return n-r;case"*":return n*r;case"/":return n/r}}toStringInner(t,{topLevel:n}={}){switch(this.contents.type){case"value":return`${parseFloat(this.contents.value.toPrecision(OW))}${this.contents.unit}`;case"variable":return`var(${[this.contents.name,this.contents.fallback].filter(r=>r!==void 0).join(",")})`;case"fn":{let r=t.forTailwind?",":", ";return`${this.contents.fn}(${this.contents.args.map(o=>o.toStringInner(t)).join(r)})`}case"operation":{let{left:r,right:o,operation:i}=this.contents,s=!1,a=!1;(i==="*"||i==="/")&&(s=r.contents.type==="operation"&&r.contents.operation!=="*"&&r.contents.operation!=="/",a=o.contents.type==="operation"&&(i==="/"?!0:o.contents.operation!=="*"&&o.contents.operation!=="/"));let l=t.forTailwind?i:` ${i} `,u=`${s?`(${r.toStringInner(t)})`:r.toStringInner(t)}${l}${a?`(${o.toStringInner(t)})`:o.toStringInner(t)}`;return n?`calc(${u})`:u}}}simplify(){if(this.contents.type==="value"||this.contents.type==="variable")return this;if(this.contents.type==="fn"){let{fn:o,args:i}=this.contents,s=i.map(l=>l.simplify());return s.some((l,u)=>l!==i[u])?new Y({type:"fn",fn:o,args:s}):this}let t=this.contents.left.simplify(),n=this.contents.right.simplify(),r=this.contents.operation;if(t.contents.type==="value"&&n.contents.type==="value"){let o=t.contents.unit,i=n.contents.unit;if(o===i||!o||!i){let s=o||i,a=Y.applyConstantOperation(r,t.contents.value,n.contents.value);return new Y({type:"value",unit:s,value:a})}}
8065return(r==="+"||r==="-")&&n.contents.type==="value"&&n.contents.value===0?t:r==="+"&&t.contents.type==="value"&&t.contents.value===0?n:this.contents.left!==t||this.contents.right!==n?new Y({type:"operation",operation:this.contents.operation,left:t,right:n}):this}toStyleValue(t){let n=this.simplify();return n.contents.type==="value"&&n.contents.unit==="px"?n.contents.value:n.toStringInner(t,{topLevel:!0})}toString(t){return this.simplify().toStringInner(t,{topLevel:!0})}};function mf(e,t){let n;if(e){let r=e.match(/^var\((--[^),\s]+)\s*(?:,[^)]*)?\)$/);r?n=r[1]:n=`--${e.replaceAll(" ","")}`}else t&&(n=`--${IW(t)}`);return n}function le(e,t,n){let r=mf(e,t);return r?`var(${r},${n})`:null}function cE(e,t,n){let r=mf(e,t);return r?Y.var(r,n):null}function gW(e){return e.split(" ").map(t=>t.toLowerCase()).join("-")}function VI(e,t=n=>"\\"+n){return e.replace(/./g,n=>{let r=n.charCodeAt(0);return/[a-zA-Z0-9_-]/.test(n)||r>=160?n:t(n)})}function IW(e){return e=gW(e),e=VI(e),e}var dE={"#000000":"black","#ffffff":"white","#ff0000":"red","#800080":"purple","#008000":"green","#ffff00":"yellow","#0000ff":"blue","#ffa500":"orange","#a52a2a":"brown","#ffc0cb":"pink"};function SW(e){return e!=null}function HI(e){return Math.round(e*255)}function RW(e){return+e.toFixed(2)}function AW(e){return`${Ca(e.r)}${Ca(e.g)}${Ca(e.b)}`}function NW(e,t=1){let{r:n,g:r,b:o,a:i=1}=e;return`${Ca(n)}${Ca(r)}${Ca(o)}${Ca(i*t)}`}function YI(e,t=1){let{r:n,g:r,b:o,a:i=1}=e;return`rgba(${HI(n)},${HI(r)},${HI(o)},${RW(i*t)})`}function jC(e){let t=e.a;return SW(t)&&t!==1}function Ca(e){return("00"+Math.round(e*255).toString(16)).slice(-2)}function KI(e,t,n=1){if(!jC(e)&&n===1){let{optimizeForTailwindConversion:r}=t,o=AW(e),i=r&&dE[`#${o}`];return i||(o[0]===o[1]&&o[2]===o[3]&&o[4]===o[5]?`#${o[0]}${o[2]}${o[4]}`:`#${o}`)}else{let r=NW(e,n);return r[0]===r[1]&&r[2]===r[3]&&r[4]===r[5]&&r[6]===r[7]?`#${r[0]}${r[2]}${r[4]}${r[6]}`:`#${r}`}}var Dt=class WI{color;renderOptions;opacity;colorManagement;variableName;codeSyntax;constructor(t,n,r=1,o=Vt,i,s){if(this.color=t,this.renderOptions=n,this.opacity=r,this.colorManagement=o,this.variableName=i,this.codeSyntax=s,t.r>1||t.g>1||t.b>1)throw new te(`Expected normalised color values (between 0 and 1) but got (${t.r}, ${t.g}, ${t.b})`)}static fromRGBA(t,n,r,o){return new WI(t,n,1,Vt,r,o)}get rawColor(){return new WI(this.color,this.renderOptions,this.opacity,this.colorManagement,this.variableName,this.codeSyntax)}get value(){let{shouldOutputVariables:t}=this.renderOptions,n=jC(this.color)||this.opacity!==1?YI(this.color,this.opacity):KI(this.color,this.renderOptions);if(t){let r=le(this.codeSyntax,this.variableName,n);if(r)return r}return n}equals(t){return this.value===t.value}};function Ts(e){return`url("data:image/svg+xml;utf8,${e.replace(/#/g,"%23").replace(/"/g,"'").replace(/\n\s*/g," ").replace(/'[^']*'/g,n=>`'${n.slice(1,-1).trim()}'`).replace(/\(\s*/g,"(").replace(/\s*\)/g,")").replace(/\s*<\s*/g,"<").replace(/\s*\/?>\s*/g,n=>n.includes("/")?"/>":">")}")`}function Au(e){return e.map(t=>{let{color:{r:n,g:r,b:o,a:i},position:s}=t,a=Math.round(n*255),l=Math.round(r*255),u=Math.round(o*255),c=ve(i),d=ve(s);return` 8066 <stop stop-color="rgba(${a},${l},${u},${c})" offset="${d}" /> 8067 `}).join("")}function $C(e,t){let{shouldOutputVariables:n,codeSyntaxLanguage:r}=t,o=e.color.a===1?KI(e.color,t):YI(e.color);if(n){let i=le(r&&e.boundVariables?.color?.resolvedCodeSyntax?.[r],e.boundVariables?.color?.resolvedName,o);if(i)return i}return o}function yW(e,t){let{shouldOutputVariables:n,codeSyntaxLanguage:r}=t,{color:{r:o,g:i,b:s,a}}=e,l=Math.round(o*255),u=Math.round(i*255),c=Math.round(s*255),d=x(a),f=ve(e.position*100),p=d===1?`rgb(${l}, ${u}, ${c})`:`rgba(${l}, ${u}, ${c}, ${d})`,_=`${f}%`;if(n){let T=le(r&&e.boundVariables?.color?.resolvedCodeSyntax?.[r],e.boundVariables?.color?.resolvedName,p);if(T)return`${T} ${_}`}return`${p} ${_}`}function fE(e,t){return e.map(n=>yW(n,t)).join(", ")}var Ht=10;function Ei(e){let{size:t,gradientTransform:n}=e,r=ke.identity();r.scale(Ht,Ht),r.scale(2,2),r.translate(-.5,-.5);let o=ke.copy(r);o.invert();let i=ke.fromArray(n);i.invert();let s=ke.copy(i);s.multiply(o);let a=ke.copy(s);a.invert();let l=ke.identity();return l.scale(t.width,t.height),l.multiply(s),{uvToUnitGradient:a,unitGradientToShape:l}}
8067function pE(e){return[new H(0,0),new H(Ht,0),new H(Ht,Ht),new H(0,Ht)].map(r=>e.transformPoint(r)).reduce((r,o)=>(r.x=Math.max(r.x,Math.abs(o.x)),r.y=Math.max(r.y,Math.abs(o.y)),r),{x:-1/0,y:-1/0})}function ZC(e,t){let n=t[1].minus(t[0]),r=e.minus(t[0]);return n.multiplyBy(r.dot(n)/n.dot(n)).plus(t[0])}var _i=class JC{paint;size;serializationFormat;renderOptions;static fromColor({color:t,opacity:n},r){let o={r:t.r,g:t.g,b:t.b,a:n*("a"in t?t.a:1)};return new JC({gradientTransform:ke.identity().toMatrix(),gradientStops:[{color:o,position:0},{color:o,position:1}]},Vt,{width:1,height:1},La.CSS,r)}constructor(t,n,r,o,i){this.paint=t,this.size=r,this.serializationFormat=o,this.renderOptions=i}get styleData(){let{preferCssGradients:t}=this.renderOptions,{unitGradientToShape:n}=Ei({size:this.size,gradientTransform:this.paint.gradientTransform}),r={origin:n.transformPoint(new H(-Ht,0)),primary:n.transformPoint(new H(Ht,0)),secondary:n.transformPoint(new H(-Ht,Ht))},o=r.secondary.minus(r.origin),i=new H(-o.y,o.x);i.dot(r.primary.minus(r.origin))<0&&(i=i.multiplyBy(-1));let s={start:new H(0,0),end:i};if(s.end.x<0){let d=new H(this.size.width,0);s.start=s.start.plus(d),s.end=s.end.plus(d)}if(s.end.y<0){let d=new H(0,this.size.height);s.start=s.start.plus(d),s.end=s.end.plus(d)}let a=new H(i.x<0?0:this.size.width,i.y<0?0:this.size.height);s.end=ZC(a,[s.start,s.end]);let l=s.end.minus(s.start).toAngle()*(180/Math.PI),u=this.paint.gradientStops.map(d=>{let f=r.origin.add(r.primary.minus(r.origin).multiplyBy(d.position)),_=ZC(f,[s.start,s.end]).minus(s.start).size()/s.end.minus(s.start).size(),T={...d.color,a:d.color.a*(this.paint.opacity??1)};return{...d,color:T,position:Tt(_)}}),c=u;return t||(c=mi({stops:u.map(d=>({...d})),epsilon:.01,recursionLimit:5,targetInterpolation:pi,actualInterpolation:uE}).map(d=>({...d,position:Tt(d.position)}))),{angle:l+90,colorStops:c}}get valueAsCss(){let{angle:t,colorStops:n}=this.styleData;return`linear-gradient(${t}deg, ${fE(n,this.renderOptions)})`}get valueAsSvg(){let{unitGradientToShape:t}=Ei({size:this.size,gradientTransform:this.paint.gradientTransform}),n=mi({stops:this.paint.gradientStops.map(o=>({...o})),epsilon:.01,recursionLimit:5,targetInterpolation:pi,actualInterpolation:Ru}).map(o=>({...o,position:Tt(o.position)})),r=` 8068 <svg viewBox='0 0 ${ve(this.size.width)} ${ve(this.size.height)}' xmlns='http://www.w3.org/2000/svg' preserveAspectRatio='none'> 8069 <rect x='0' y='0' height='100%' width='100%' fill='url(#grad)' opacity='${this.paint.opacity??1}' /> 8070 <defs> 8071 <linearGradient id='grad' gradientUnits='userSpaceOnUse' x1='${-Ht}' x2='${Ht}' y1='0' y2='0' gradientTransform='${_s(t)}'> 8072 ${Au(n)} 8073 </linearGradient> 8074 </defs> 8075 </svg> 8076 `;return Ts(r)}get value(){return this.serializationFormat===La.SVG?this.valueAsSvg:this.valueAsCss}equals(t){return this.value===t.value}};function xe(e,t){throw new te(t??`Uncaught type ${JSON.stringify(e)}`)}function ge(e,t){if(!e)throw new te(`Assertion failure${t?`: ${t}`:""}`)}var Q=class{functions;constructor(t){this.functions=t}static translateX(t){return new Q([{type:"translate",axis:"x",value:t}])}static translateY(t){return new Q([{type:"translate",axis:"y",value:t}])}static rotate(t){return new Q([{type:"rotate",value:t}])}static skewX(t){return new Q([{type:"skew",axis:"x",value:t}])}static skewY(t){return new Q([{type:"skew",axis:"y",value:t}])}static scaleX(t){return new Q([{type:"scale",axis:"x",value:t}])}static scaleY(t){return new Q([{type:"scale",axis:"y",value:t}])}static combineWithExplicitOrder(...t){return new Q(t.filter(n=>n!==void 0).flatMap(n=>n.functions))}static combineWithDefaultOrder(...t){let n=t.filter(r=>r!==void 0).flatMap(r=>r.functions);return n.sort((r,o)=>XI.indexOf(r.type)-XI.indexOf(o.type)),new Q(n)}toTailwindClasses(){return bW(this.functions)?this.functions.flatMap(t=>CW(t)):LW(this.functions)}get value(){return this.functions.map(t=>qC(t,!1)).join(" ")}},XI=["translate","rotate","skew","scale"];function bW(e){let t=-1;for(let n of e){if(n.value instanceof Y)return!1;let r=XI.indexOf(n.type);if(r<t)return!1;t=r}return!0}function LW(e){return[`[transform:${e.map(n=>qC(n,!0)).join("_")}]`]}function CW(e){switch(ge(!(e.value instanceof Y),"Calc values should use arbitrary transform syntax"),e.type){case"translate":return[DW(`${e.type}-${e.axis}`,e.value)];case"rotate":return Number.isInteger(e.value)?[zI("rotate",e.value)]:[`rotate-[${e.value}deg]`];case"skew":{let t=`skew-${e.axis}`;return Number.isInteger(e.value)?[zI(t,e.value)]:[`${t}-[${e.value}deg]`]}case"scale":{let t=e.value*100,n=`scale-${e.axis}`;return Number.isInteger(t)?[zI(n,t)]:[`${n}-[${t}%]`]}default:xe(e)}}function PW(e,t){if(e.value instanceof Y)return e.value.toString({forTailwind:t});switch(e.type){case"translate":return String(e.value);case"rotate":case"skew":return`${e.value}deg`;case"scale":return String(e.value);default:xe(e)}}function qC(e,t){let n=PW(e,t);switch(e.type){case"translate":return`translate${e.axis.toUpperCase()}(${n})`;case"rotate":return`rotate(${n})`;case"skew":return`skew${e.axis.toUpperCase()}(${n})`;case"scale":return`scale${e.axis.toUpperCase()}(${n})`;default:xe(e)}}var DW=(e,t)=>
8076{let r={"50%":"1/2","100%":"full","0%":"0"}[t];if(r)return`${e}-${r}`;let i={"-50%":"1/2","-100%":"full"}[t];return i?`-${e}-${i}`:`${e}-[${t}]`},zI=(e,t)=>t<0?`-${e}-${-t}`:`${e}-${t}`;function Ef(e){switch(e.units){case"PIXELS":return`${x(e.value)}px`;case"PERCENT":return`${x(e.value)}%`}}function QC(e){return`${Ef(e.x)} ${Ef(e.y)}`}function jI(e){return e.x.units==="PERCENT"&&e.x.value===50&&e.y.units==="PERCENT"&&e.y.value===50}function vW(e){return`matrix3d(${[e[0],e[4],e[8],e[12],e[1],e[5],e[9],e[13],e[2],e[6],e[10],e[14],e[3],e[7],e[11],e[15]].map(n=>x(n)).join(",")})`}function xW(e){switch(e.type){case"PERSPECTIVE":return e.perspective>0?`perspective(${x(e.perspective)}px)`:"";case"TRANSLATE_Z":return`translateZ(${x(e.translateZ)}px)`;case"ROTATE_X":return`rotateX(${x(e.angle)}deg)`;case"ROTATE_Y":return`rotateY(${x(e.angle)}deg)`;case"ROTATE_Z":return`rotateZ(${x(e.angle)}deg)`;case"MATRIX_3D":return vW(e.matrix3d);default:xe(e)}}function eP(e){if(e.type==="FIXED_ORDER"){let t=[],n=x(e.perspective),r=x(e.translateZ),o=x(e.rotateX),i=x(e.rotateY),s=x(e.rotateZ);return n>0&&t.push(`perspective(${n}px)`),r!==0&&t.push(`translateZ(${r}px)`),o!==0&&t.push(`rotateX(${o}deg)`),i!==0&&t.push(`rotateY(${i}deg)`),s!==0&&t.push(`rotateZ(${s}deg)`),t.join(" ")}return e.transformFunctions.map(xW).filter(t=>t.length>0).join(" ")}var MW={white:"white",black:"black"};function Nu(e,t,n){let r=MW[t];if(r)return`${e}-${r}`;let o=n&&t.startsWith("var(")?"color:":"";return`${e}-[${o}${t}]`}var GW=e=>({0:"t",90:"r",180:"b",270:"l"})[x(e,2)],nP={0:"0","0%":"0","25%":"1/4","50%":"1/2","75%":"3/4","100%":"full",none:"none"};function kW(e,t){if(t===1&&!(e in{tracking:!0,rounded:!0,"rounded-tl":!0,"rounded-tr":!0,"rounded-br":!0,"rounded-bl":!0}))return"px"}function FW(e,t){let n={fontFamily:"family-name",fontSize:"length",backgroundPosition:"position"}[e];return n&&typeof t=="string"&&t.startsWith("var(")?n:void 0}var ze=(e,t,n)=>{let r=nP[t]||kW(e,t);if(r)return`${e}-${r}`;let o=typeof t=="number"?`${t}px`:t;return`${e}-[${n?`${n}:`:""}${o}]`},rP={minHeight:"min-h",minWidth:"min-w",maxHeight:"max-h",maxWidth:"max-w",gap:"gap",rowGap:"gap-y",columnGap:"gap-x",marginInlineStart:"ms",boxShadow:"shadow",textShadow:"text-shadow",letterSpacing:"tracking",maskPosition:"mask-position",maskSize:"mask-size",fontFamily:"font",fontSize:"text",objectPosition:"object",backgroundPosition:"bg",flex:"flex",gridTemplateColumns:"grid-cols",gridTemplateRows:"grid-rows",textIndent:"indent"};function _f(e,t){let n=rP[e],r=typeof t=="string"?t.replaceAll(" ","_"):t,o=FW(e,t);return ze(n,r,o)}var wW={textDecorationStyle:"decoration",objectFit:"object",flexShrink:"shrink",borderStyle:"border",pointerEvents:"pointer-events",textAlign:"text",textOverflow:"text",cursor:"cursor",mixBlendMode:"mix-blend",whiteSpace:"whitespace",textWrap:"text"};function tP(e,t){return`${wW[e]}-${t}`}var BW={textBoxTrim:"text-box-trim",textBoxEdge:"text-box-edge",textUnderlinePosition:"text-underline-position",wordBreak:"word-break"};function UW(e,t){let n=BW[e],r=typeof t=="string"?t.replaceAll(" ","_"):t;return`[${n}:${r}]`}function VW(e){let{height:t,width:n}=e;return t!==void 0&&t===n?[ze("size",t)]:[t!==void 0?ze("h",t):null,n!==void 0?ze("w",n):null].filter(r=>r!=null)}function HW(e){let t={prefix:"m",base:e.margin,top:e.marginTop,right:e.marginRight instanceof Y?e.marginRight.toStyleValue({forTailwind:!0}):e.marginRight,bottom:e.marginBottom instanceof Y?e.marginBottom.toStyleValue({forTailwind:!0}):e.marginBottom,left:e.marginLeft},n={prefix:"p",base:e.padding,top:e.paddingTop,right:e.paddingRight,bottom:e.paddingBottom,left:e.paddingLeft},r=[];return[t,n].forEach(o=>{let{prefix:i,base:s,top:a,right:l,bottom:u,left:c}=o;if(s!==void 0){r.push(ze(i,s));return}if(a!==void 0&&a===l&&l===u&&u===c){r.push(ze(i,a));return}a!==void 0&&a===u?r.push(ze(i+"y",a)):(a!==void 0&&r.push(ze(i+"t",a)),u!==void 0&&r.push(ze(i+"b",u))),c!==void 0&&c===l?r.push(ze(i+"x",c)):(c!==void 0&&r.push(ze(i+"l",c)),l!==void 0&&r.push(ze(i+"r",l)))}),r}function WW(e){let{top:t,left:n,bottom:r,right:o,inset:i}=e;if(i!=null&&t==null&&r==null&&o==null&&n==null)return[ze("inset",i)];if(t!==void 0&&t===n&&t===r&&t===o)return[ze("inset",t)];let s=[t,n,r,o].some(a=>typeof a=="number"||a==="0"?!1:a&&nP[a]!==void 0);return t==null||r==null||o==null||n==null||s?[t!==void 0?ze("top",t):null,n!==void 0?ze("left",n):null,r!==void 0?ze("bottom",r):null,o!==void 0?ze("right",o):null].filter(a=>
8076a!=null):t===r&&n===o?[`inset-[${[t,n].map(l=>l&&typeof l=="number"?`${l}px`:l).join("_")}]`]:[`inset-[${[t,o,r,n].map(l=>l&&typeof l=="number"?`${l}px`:l).join("_")}]`]}function YW(e){return typeof e=="string"&&["cover","auto","contain"].includes(e)?`bg-${e}`:`bg-size-[${typeof e=="string"?e.replaceAll(" ","_"):e}]`}function KW(e,t){if(e instanceof _i){let{angle:r,colorStops:o}=e.styleData,i=GW(r);if(i!==void 0&&o.length<=3){let a=[];return a.push(`bg-gradient-to-${i}`),o.map((l,u)=>{let c;u===0?c="from":u===o.length-1?c="to":c="via",a.push(Nu(c,$C(l,t)));let d=x(l.position*100,3);d!==0&&d!==100&&a.push(ze(c,`${ve(d)}%`))}),{classes:a}}}return{backgroundImage:typeof e=="string"?e:e.value}}function zW(e,t){let n=rP[e];switch(t){case"top":case"left":case"center":case"right":case"bottom":return`${n}-${t}`;case"top right":case"bottom left":case"top left":case"bottom right":return`${n}-${t.replace(" ","-")}`}return _f(e,t)}function XW(e){switch(e){case"none":return"hidden";default:return e}}function jW(e,t){let n={alignContent:"content",alignItems:"items",justifyContent:"justify",placeItems:"place-items",alignSelf:"self",justifySelf:"justify-self"}[e];switch(t){case"flex-start":case"flex-end":case"space-between":return`${n}-${t.split("-")[1]}`;case"center":case"baseline":case"stretch":case"start":case"end":return`${n}-${t}`;default:throw new te(`Unsupported ${e}: ${t}`)}}function $W(e){let n=typeof e=="string"&&{"1/1":"square","16/9":"video"}[e];return n?`aspect-${n}`:`aspect-[${e}]`}function ZW(e){switch(e){case"border-box":return"box-border";case"content-box":return"box-content";default:throw new te(`Unsupported boxSizing: ${e}`)}}function JW(e){switch(e){case"isolate":return"isolate";default:throw new te(`Unsupported isolation: ${e}`)}}function qW(e){switch(e){case"0":case"10":case"20":case"30":case"40":case"50":case"auto":return`z-${e}`}return`z-[${e}]`}function QW(e){switch(e){case"1":return"leading-none";default:return`leading-[${e}]`}}function e3(e){switch(e){case"no-clip":return"mask-no-clip";default:throw new te(`Unsupported maskClip: ${e}`)}}function t3(e){switch(e){case"intersect":return"mask-intersect";default:throw new te(`Unsupported maskComposite: ${e}`)}}function n3(e){switch(e){case"no-repeat":return"mask-no-repeat";default:throw new te(`Unsupported maskRepeat: ${e}`)}}function r3(e){switch(e){case"alpha":return"mask-alpha";case"luminance":return"mask-luminance";default:throw new te(`Unsupported maskMode: ${e}`)}}function o3(e){switch(e){case"normal":return"not-italic";case"italic":return"italic";default:return`font-[${e}]`}}function i3({borderRadius:e,borderTopLeftRadius:t,borderTopRightRadius:n,borderBottomRightRadius:r,borderBottomLeftRadius:o}){return e!==void 0?[ze("rounded",e)]:t!==void 0&&t===n&&t===r&&t===o?[ze("rounded",t)]:[t!==void 0?ze("rounded-tl",t):null,n!==void 0?ze("rounded-tr",n):null,r!==void 0?ze("rounded-br",r):null,o!==void 0?ze("rounded-bl",o):null].filter(i=>i!=null)}function s3(e){switch(e){case"0 0 auto":return"flex-none";default:return _f("flex",e)}}function a3(e){return typeof e=="number"?`opacity-${x(e*100,0)}`:`opacity-[${e}]`}function l3({borderWidth:e,borderTopWidth:t,borderRightWidth:n,borderBottomWidth:r,borderLeftWidth:o}){let i=(s,a)=>a===1?s:Number.isInteger(a)?`${s}-${a}`:typeof a=="string"&&a.startsWith("var(")?ze(s,a,"length"):ze(s,a);return e!==void 0?[i("border",e)]:t!==void 0&&t===n&&t===r&&t===o?[i("border",t)]:[t?i("border-t",t):null,n?i("border-r",n):null,r?i("border-b",r):null,o?i("border-l",o):null].filter(s=>s!=null)}function u3(e){switch(e){case"column":return"flex-col";case"row":return"flex-row";case"column-reverse":return"flex-col-reverse";case"row-reverse":return"flex-row-reverse";default:throw new te(`Unsupported flexDirection: ${e}`)}}function c3(e){switch(e){case"wrap":return"flex-wrap";default:throw new te(`Unsupported flexWrap: ${e}`)}}function d3(e){switch(e){case"preserve-3d":return"transform-3d";case"flat":return"transform-flat";default:throw new te(`Unsupported transformStyle: ${e}`)}}function f3(e){switch(e){case"hidden":return"backface-hidden";case"visible":return"backface-visible";default:throw new te(`Unsupported backfaceVisibility: ${e}`)}}function p3(e){let n=typeof e=="number"&&{100:"thin",200:"extralight",300:"light",400:"normal",500:"medium",600:"semibold",700:"bold",800:"extrabold",900:"black"}[e];return n?`font-${n}`:`font-[${e}]`}function m3(e,t){let n=e==="backdropFilter"?"backdrop-":"",r=[],o=[];for(let[,i,s]of t.matchAll(/([\w-]+)\(((?:[^()]*|\((?:[^()]*|\([^()]
8076*\))*\))*)\)/g))switch(i){case"blur":r.push(`${n}blur-[${s}]`);break;case"drop-shadow":s&&o.push(s.replaceAll(" ","_"));break;default:throw new te(`Unsupported filter function: ${i}(${s})`)}return o.length>0&&r.push(`${n}drop-shadow-[${o.join(",")}]`),r}function E3(e){switch(e){case"padding-box":return"bg-clip-padding";case"border-box":return"bg-clip-border";case"content-box":return"bg-clip-content";case"text":return"bg-clip-text";default:throw new te(`Unsupported backgroundClip: ${e}`)}}function _3(e,t){let n={gridRow:"row",gridColumn:"col"}[e];return typeof t=="number"?`${n}-${t}`:`${n}-[${t.replaceAll(" ","_")}]`}function T3(e){switch(e){case"no-repeat":return{tailwindClass:"bg-no-repeat"};default:return{backgroundRepeat:e}}}function h3(e){return typeof e=="number"?`decoration-${e}`:e==="from-font"?"decoration-from-font":`decoration-[${e}]`}function O3({overflow:e,overflowX:t,overflowY:n}){return e!==void 0?[`overflow-${e}`]:t!==void 0&&t===n?[`overflow-${t}`]:[t!==void 0?`overflow-x-${t}`:null,n!==void 0?`overflow-y-${n}`:null].filter(r=>r!=null)}function $I(e){return String(e).replace(/ /g,"_")}function g3(e){return e instanceof Q?e.toTailwindClasses():[`transform-[${$I(e)}]`]}function I3(e){switch(e){case"none":return"list-none";case"disc":return"list-disc";case"decimal":return"list-decimal";default:return`list-[${e}]`}}function oP(e,t){let n={},{height:r,width:o,margin:i,marginTop:s,marginRight:a,marginBottom:l,marginLeft:u,padding:c,paddingTop:d,paddingRight:f,paddingBottom:p,paddingLeft:_,top:T,left:h,bottom:m,right:E,inset:O,borderRadius:g,borderTopLeftRadius:I,borderTopRightRadius:S,borderBottomRightRadius:A,borderBottomLeftRadius:R,borderWidth:y,borderTopWidth:b,borderRightWidth:L,borderBottomWidth:D,borderLeftWidth:F,overflow:U,overflowX:N,overflowY:K,...C}=e,M=[...VW({height:r,width:o}),...HW({margin:i,marginTop:s,marginRight:a,marginBottom:l,marginLeft:u,padding:c,paddingTop:d,paddingRight:f,paddingBottom:p,paddingLeft:_}),...WW({top:T,left:h,bottom:m,right:E,inset:O}),...i3({borderRadius:g,borderTopLeftRadius:I,borderTopRightRadius:S,borderBottomRightRadius:A,borderBottomLeftRadius:R}),...l3({borderWidth:y,borderTopWidth:b,borderRightWidth:L,borderBottomWidth:D,borderLeftWidth:F}),...O3({overflow:U,overflowX:N,overflowY:K})];for(let P in C)if(VC(P,C)&&C[P]!==void 0){if(P.startsWith("--")){n[P]=C[P];continue}try{switch(P){case"minHeight":case"minWidth":case"maxHeight":case"maxWidth":case"gap":case"rowGap":case"columnGap":case"marginInlineStart":case"boxShadow":case"textShadow":case"maskPosition":case"maskSize":case"fontFamily":case"gridTemplateColumns":case"gridTemplateRows":case"textIndent":M.push(_f(P,C[P]));break;case"letterSpacing":{let z=C[P];z!==0&&z!=="0px"&&z!=="0"&&M.push(_f(P,z));break}case"fontSize":{let z=C[P];z===0&&(z="0px"),M.push(_f(P,z));break}case"backgroundColor":M.push(Nu("bg",C[P]));break;case"color":M.push(Nu("text",C[P],!0));break;case"borderColor":M.push(Nu("border",C[P]));break;case"textDecorationColor":M.push(Nu("decoration",C[P]));break;case"textDecorationThickness":M.push(h3(C[P]));break;case"backgroundSize":M.push(YW(C[P]));break;case"backgroundImage":{let{classes:z,backgroundImage:Ee}=KW(C[P],t);z&&M.push(...z),Ee&&(n.backgroundImage=Ee);break}case"backgroundRepeat":{let{tailwindClass:z,backgroundRepeat:Ee}=T3(C[P]);z&&M.push(z),Ee&&(n.backgroundRepeat=Ee);break}case"backgroundClip":M.push(E3(C[P]));break;case"alignContent":case"alignItems":case"justifyContent":case"placeItems":case"alignSelf":case"justifySelf":M.push(jW(P,C[P]));break;case"aspectRatio":M.push($W(C[P]));break;case"boxSizing":M.push(ZW(C[P]));break;case"isolation":M.push(JW(C[P]));break;case"position":case"visibility":case"textDecorationLine":case"textTransform":M.push(C[P]);break;case"zIndex":M.push(qW(C[P]));break;case"lineHeight":M.push(QW(C[P]));break;case"maskClip":M.push(e3(C[P]));break;case"maskComposite":M.push(t3(C[P]));break;case"maskRepeat":M.push(n3(C[P]));break;case"maskMode":M.push(r3(C[P]));break;case"textDecorationStyle":case"objectFit":case"flexShrink":case"borderStyle":case"pointerEvents":case"textAlign":case"textOverflow":case"cursor":case"mixBlendMode":case"textWrap":M.push(tP(P,C[P]));break;case"whiteSpace":{M.push(tP(P,C[P]));break}case"fontStyle":M.push(o3(C[P]));break;case"fontWeight":M.push(p3(C[P]));break;case"textBoxTrim":case"textBoxEdge":case"textUnderlinePosition":case"wordBreak":M.push(UW(P,C[P]));break;case"objectPosition":case"backgroundPosition":M.push(zW(P,C[P]));break;case"flex":M.push(s3(C[P]));break;case"display":M.push(XW(C[P]));break;
8076case"flexDirection":M.push(u3(C[P]));break;case"opacity":M.push(a3(C[P]));break;case"flexWrap":M.push(c3(C[P]));break;case"backdropFilter":case"filter":M.push(...m3(P,C[P]));break;case"gridRow":case"gridColumn":M.push(_3(P,C[P]));break;case"textDecorationSkipInk":{let z={textDecorationSkipInk:"text-decoration-skip-ink"};M.push(`[${z[P]}:${C[P]}]`);break}case"transform":M.push(...g3(C[P]));break;case"transformOrigin":M.push(`origin-[${$I(C[P])}]`);break;case"transformStyle":M.push(d3(C[P]));break;case"perspective":M.push(`[perspective:${C[P]}]`);break;case"perspectiveOrigin":M.push(`perspective-origin-[${$I(C[P])}]`);break;case"backfaceVisibility":M.push(f3(C[P]));break;case"maskImage":n.maskImage=C[P];break;case"borderImage":n.borderImage=C[P];break;case"listStyleImage":n.listStyleImage=C[P];break;case"listStyleType":M.push(I3(C[P]));break;case"fontFeatureSettings":n.fontFeatureSettings=C[P];break;case"fontVariationSettings":{n.fontVariationSettings=C[P];break}case"containerType":n.containerType=C[P];break;default:console.warn(`Tailwind conversion is ignoring an unsupported style: ${P}`);break}}catch(z){console.warn(`Tailwind conversion is ignoring an unsupported style: ${P}`,z);continue}}return{tailwindClasses:M,inlineStyles:n}}function ne(e){return{kind:"element",...e}}function mr(e){return{kind:"fragment",...e}}function aP(e){return{kind:"raw_jsx",snippet:e}}function Ot(e){return{kind:"rendered",element:e}}function Ne(e,t){if(e==null)return null;if(typeof e=="string")return e;if(Array.isArray(e))return t.renderFragment({children:e.map(n=>Ne(n,t))});switch(e.kind){case"rendered":return e.element;case"raw_jsx":return e.snippet;case"element":{let{kind:n,children:r,...o}=e;return t.renderElement({...o,children:Ne(r??null,t)})}case"fragment":{let{kind:n,children:r,...o}=e;return t.renderFragment({...o,children:Ne(r??null,t)})}}}function S3(e,t){let n=[],r=[],o={};for(let i of e){if(i==null)continue;
8076if(typeof i=="string"){r.push(...i.split(" "));continue}let s="styles"in i?i.styles:i,a=oP(s,t);n.push(...a.tailwindClasses),Object.assign(o,a.inlineStyles)}return{classes:[...n,...r],style:o}}function lP({Tag:e,children:t,style:n,styleSet:r,key:o,nodeId:i,idSuffix:s,attributes:a},l){let u=S3(Array.isArray(r)?r:[r],l);return(0,iP.createElement)(e,{id:i&&!s?fo(i):void 0,...a,key:o,className:(0,sP.default)(u.classes),style:{...u.style,...n}},t)}var dP=v(W()),fP=v(ZI());var cP=v(ZI());var R3="api/figment-proxy/monitor",A3="sites.runtime_error",N3="figweb",y3=100,b3=new Set(["preview","published"]),L3=async(e,t,n,r)=>{if(!e||e==="")return;let o=`${e}/${R3}`;try{await fetch(o,{method:"POST",body:JSON.stringify(t),priority:"low",keepalive:r?.sendAsBeacon,headers:{"Content-Type":"application/json",...n},credentials:"omit"})}catch(i){console.error(i)}},C3=()=>/iPad/.test(navigator.userAgent)||/Mac/.test(navigator.userAgent)&&!/iPhone/.test(navigator.userAgent)&&navigator.maxTouchPoints&&navigator.maxTouchPoints>2||!1,EE;function JI(){if(EE===void 0)try{EE={...cP.default.detect(navigator.userAgent),isIpad:C3()}}catch{EE=null}return EE||null}var yu=class{env;rateLimiter;_shouldReportErrors;reportingDomain;analyticsHeaders;userId;bundleId;bundleCreationDate;_cachedInfo;constructor({env:t,reportingDomain:n,rateLimiter:r,analyticsHeaders:o,bundleId:i,bundleCreationDate:s,userId:a}){this.reportingDomain=n,this.env=t,this.rateLimiter=r,this.analyticsHeaders=o,this._shouldReportErrors=this.shouldReportErrors(),this.bundleId=i,this.bundleCreationDate=s,this.userId=a}shouldReportErrors=()=>{if(!b3.has(this.env))return!1;try{new URL(this.reportingDomain)}catch{return!1}return!0};getContext=()=>({page:{path:window.location.pathname,referrer:document.referrer,search:window.location.search,title:document.title,url:window.location.toString()},userAgent:window.navigator.userAgent,forwardToDatadog:!0});reportError=(t,n)=>{if(!this._shouldReportErrors||!(t instanceof te)||!this.rateLimiter.tryAdd(1))return;let r=new Date().toISOString(),o={event:A3,properties:{errorType:t.name,errorMessage:n?`[${n}]: ${t.message}`:t.message,stackTrace:t.stack||"",environment:this.env,bundleId:this.bundleId,bundleCreationDate:this.bundleCreationDate,severity:t.severity,errorDetail:t.errorDetail,...this.getBrowserInfoProps()},timestamp:r,sentAt:r,context:this.getContext()},i={namespace:N3,batched:"1"};this.userId&&(o.userId=this.userId);let s=[{data:o,figment_metadata:i}];L3(this.reportingDomain,s,this.analyticsHeaders)};getBrowserInfoProps=()=>{if(!this._cachedInfo)try{let t=JI();t&&(this._cachedInfo={browser_name:t.name,browser_version:+t.version,os_name:t?.isIpad?"iPadOS":t.osname,os_version:t?.isIpad?0:t.osversion})}catch{this._cachedInfo={}}return this._cachedInfo};static init(t){if(!this._ErrorReporter)for(this._ErrorReporter=new yu(t);this._errorQueue.length;)this.reportError(yu._errorQueue.pop())}static reset(){this._ErrorReporter=void 0,this._errorQueue=[]}static reportError(t,n){this._ErrorReporter?this.enabled&&this._ErrorReporter.reportError(t,n):this._errorQueue.length<y3&&this._errorQueue.push(t)}},Me=yu;Po(Me,"enabled",!0),Po(Me,"_ErrorReporter"),Po(Me,"_errorQueue",[]),Po(Me,"enable",()=>yu.enabled=!0),Po(Me,"disable",()=>yu.enabled=!1);var Pa=(e,t)=>n=>{try{e(n)}catch(r){throw Me.reportError(r,t),r instanceof te?new Error(r.message,r):r}},bu=(e,t)=>n=>{try{e(n)}catch(r){throw Me.reportError(r,t),r instanceof te?new Error(r.message,r):r}};var qI=de(new Map),Lu={SHIFT_CODE:16,CONTROL_CODE:17,ALT_CODE:18,META_CODE:91};function pP(e,t){let n=e.event?.keyTrigger?.triggerDevice==="KEYBOARD",r=e.event?.keyTrigger?.keyCodes;if(!r)return!1;let o=v3(t),i=r.length===t.length;return n&&i&&r.every(o)}function P3(e){return e===void 0?!1:(e=e.toUpperCase(),e==="SHIFT"||e==="CONTROL"||e==="ALT"||e==="META")}function D3(e){let t=[];return t.push(e.keyCode),e.shiftKey&&t.push(Lu.SHIFT_CODE),e.ctrlKey&&t.push(Lu.CONTROL_CODE),e.altKey&&t.push(Lu.ALT_CODE),e.metaKey&&t.push(Lu.META_CODE),t}function v3(e){let t=fP.default.mac;return n=>(n=n===Lu.META_CODE&&!t?Lu.CONTROL_CODE:n,e.some(r=>r===n))}function mP(){let e=Ae(qI);(0,dP.useEffect)(()=>{let t=bu(n=>{if(P3(n.key))return;let r=D3(n);e.forEach(o=>{o.keyCallback?.(r)})},"handleKeypressInteractions");return window.addEventListener("keydown",t),()=>{window.removeEventListener("keydown",t)}},[e])}function po(e){return e.some(t=>t.event?.interactionType==="ON_CLICK"&&t.actions?.some(n=>n.connectionType==="URL"||n.connectionType==="INTERNAL_NODE"&&n.navigationType==="NAVIGATE"))}function Fo(e){return e.some(t=>t.event?.interactionType==="ON_CLICK")&&!po(e)}function Tf(e,t,n){t===void 0&&(t=!0);let r=n==="preview"||t?"_blank":"_self";try{return new URL(e),{url:e,target:r}}catch{return{url:"https://"+e,target:r}}}function EP(e,t){if(!e.startsWith("/"))return e;if(t==="published")return window.location.host+e}function hf(e,t,n,r,o,i){let{env:s}=i,a=l=>{l.key==="Enter"&&e(l)};if((t==="INTERNAL_NODE"||t==="NODE")&&n){let l=()=>{i.preloadLocation(n)};return o||s==="preview"?{onClick:e,onKeyDown:a,onMouseDown:l,role:"link",tabIndex:0}:{href:n,target:r?"_blank":"_self",onMouseDown:l}}if(t==="URL"&&n){let{url:l,target:u}=Tf(n,r,s);return o?{role:"link",tabIndex:0,onClick:e,onKeyDown:a}:{href:l,target:u}}}var p1=v(W());var _P={sessionID:-1,localID:-1},Ze="-1:-1";function _E(e){return e?(e.localID|0)>=0&&(e.sessionID|0)>=0:!1}function ot(e){return e?`${e.sessionID|0}:${e.localID|0}`:null}function Of(e){if(!e)return null;let t=e.split(":");if(!t||t.length!==2)return null;let n,r;try{n=parseInt(t[0]),r=parseInt(t[1])}catch{return null}return!isFinite(n)||!isFinite(r)?null:{sessionID:n,localID:r}}var yt=function(e){return e.Appear="appear",e.Hover="hover",e.Press="press",e.Focus="focus",e.ScrollParallax="scrollParallax",e.ScrollTransform="scrollTransform",e.Cursor="cursor",e.Marquee="marquee",e.Code="code",e}({}
8076),On=function(e){return e.IN_CUBIC="IN_CUBIC",e.OUT_CUBIC="OUT_CUBIC",e.INOUT_CUBIC="INOUT_CUBIC",e.LINEAR="LINEAR",e.IN_BACK_CUBIC="IN_BACK_CUBIC",e.OUT_BACK_CUBIC="OUT_BACK_CUBIC",e.INOUT_BACK_CUBIC="INOUT_BACK_CUBIC",e.CUSTOM_CUBIC="CUSTOM_CUBIC",e.GENTLE_SPRING="GENTLE_SPRING",e.SPRING_PRESET_ONE="SPRING_PRESET_ONE",e.SPRING_PRESET_TWO="SPRING_PRESET_TWO",e.SPRING_PRESET_THREE="SPRING_PRESET_THREE",e.CUSTOM_SPRING="CUSTOM_SPRING",e.SPRING="SPRING",e}({}),mo=function(e){return e.ALL="ALL",e.OPACITY="OPACITY",e.TRANSLATION="TRANSLATION",e.ROTATION="ROTATION",e.SCALE="SCALE",e}({}),gt=function(e){return e.PASS_THROUGH="PASS_THROUGH",e.NORMAL="NORMAL",e.DARKEN="DARKEN",e.MULTIPLY="MULTIPLY",e.LINEAR_BURN="LINEAR_BURN",e.COLOR_BURN="COLOR_BURN",e.LIGHTEN="LIGHTEN",e.SCREEN="SCREEN",e.LINEAR_DODGE="LINEAR_DODGE",e.COLOR_DODGE="COLOR_DODGE",e.OVERLAY="OVERLAY",e.SOFT_LIGHT="SOFT_LIGHT",e.HARD_LIGHT="HARD_LIGHT",e.DIFFERENCE="DIFFERENCE",e.EXCLUSION="EXCLUSION",e.HUE="HUE",e.SATURATION="SATURATION",e.COLOR="COLOR",e.LUMINOSITY="LUMINOSITY",e}({}),Kn=function(e){return e.LEFT="LEFT",e.RIGHT="RIGHT",e.CENTER="CENTER",e.LEFT_RIGHT="LEFT_RIGHT",e.SCALE="SCALE",e}({}),Er=function(e){return e.TOP="TOP",e.BOTTOM="BOTTOM",e.CENTER="CENTER",e.TOP_BOTTOM="TOP_BOTTOM",e.SCALE="SCALE",e}({}),PJ=function(e){return e.SUPER="SUPER",e.SUB="SUB",e.NORMAL="NORMAL",e}({}),TP=function(e){return e.NONE="NONE",e.STRIKETHROUGH="STRIKETHROUGH",e.UNDERLINE="UNDERLINE",e}({}),Da=function(e){return e.ORDERED="ORDERED",e.UNORDERED="UNORDERED",e.NONE="NONE",e}({}),DJ=function(e){return e.SET="SET",e.SCALE="SCALE",e.OFFSET="OFFSET",e}({}),vJ=function(e){return e.FLOAT="FLOAT",e.COLOR="COLOR",e.VECTOR="VECTOR",e}({});var Cu={visible:!0,locked:!1,isFixed:!1,scrollBehavior:"SCROLLS"},gf={blendMode:gt.NORMAL,opacity:1},TE={constraints:{vertical:Er.TOP,horizontal:Kn.LEFT},layoutGrow:0,layoutAlign:"INHERIT",layoutPositioning:"AUTO",gridColumnAnchorIndex:0,gridRowAnchorIndex:0},hE={fills:[],strokes:[],strokeWeight:1},M3={effects:[]},OP={isMask:!1},hP={isBreakpointFrame:!1},GJ={interactions:[]},G3={clipsContent:!1,overflowDirection:"NONE",layoutMode:"NONE",primaryAxisSizingMode:"AUTO",counterAxisSizingMode:"AUTO",primaryAxisAlignItems:"MIN",counterAxisAlignItems:"MIN",paddingLeft:0,paddingRight:0,paddingTop:0,paddingBottom:0,itemSpacing:0,itemReverseZIndex:!1,strokesIncludedInLayout:!1,stackLayoutVersion:0,counterAxisAlignContent:"AUTO",layoutWrap:"NO_WRAP",counterAxisSpacing:0},QI={cornerRadius:0,rectangleCornerRadii:[0,0,0,0],rectangleCornerRadiiIndependent:!1},k3={isInAnimateTree:!1},Ur={...Cu,...gf,...TE,...G3,...QI,...hE,...M3,...OP,...hP,...hP,...k3},If={...Cu,...gf,...TE,...hE,...OP},kJ={...If,...QI},gP={...If,...QI},IP={listSpacing:0,textAutoResize:"NONE",paragraphIndent:0,paragraphSpacing:0,textAlignHorizontal:"LEFT",textAlignVertical:"TOP"},Sf={code:void 0,sourceCodeHash:void 0,codeExportName:"default"};var SP={...Ur},RP={...Ur},AP={...If},NP={...Cu,...gf,...TE,...hE},yP={...Ur},bP={...Ur},LP={...Ur},CP={...Ur,type:"REPEATER"},PP={...Ur,type:"CMS_RICH_TEXT"},DP={...Ur},vP={...gP},xP={...If,...IP},MP={...Cu,...gf},GP={...Ur,type:"WEBPAGE"},kP={...Ur,type:"CODE_INSTANCE",...Sf,componentProperties:{}},FP={...Ur,type:"CODE_LAYER",...Sf,componentProperties:{}},wP={...Cu,type:"CODE_COMPONENT",...Sf,componentProperties:{}},BP={type:"CODE_FILE",...Sf};function OE(e){switch(e.type){case"COMPONENT":return Object.assign(Object.create(SP),e);case"COMPONENT_SET":return Object.assign(Object.create(RP),e);case"FRAME":return Object.assign(Object.create(yP),e);case"SLOT":return Object.assign(Object.create(bP),e);case"GROUP":return Object.assign(Object.create(LP),e);case"IMAGE":return Object.assign(Object.create(NP),e);case"INSTANCE":return Object.assign(Object.create(DP),e);case"RECTANGLE":return Object.assign(Object.create(vP),e);case"SVG":return Object.assign(Object.create(AP),e);case"TEXT":return Object.assign(Object.create(xP),e);case"VARIABLE":return e;case"VARIABLE_COLLECTION":return e;case"STYLE":return e;case"WIDGET":return Object.assign(Object.create(MP),e);case"WEBPAGE":return Object.assign(Object.create(GP),e);case"CODE_INSTANCE":return Object.assign(Object.create(kP),e);case"CODE_LAYER":return Object.assign(Object.create(FP),e);case"CODE_COMPONENT":return Object.assign(Object.create(wP),e);case"CODE_FILE":return Object.assign(Object.create(BP),e);case"REPEATER":return Object.assign(Object.create(CP),e);case"CMS_RICH_TEXT":return Object.assign(Object.create(PP),e);case"KEYFRAME_TRACK":return e;case"KEYFRAME":return e;default:throw new Error("Unknown node type provided to applyDefaults")}}var Je=function(e){return e[e.ADDITION=0]="ADDITION",e[e.SUBTRACTION=1]="SUBTRACTION",e[e.RESOLVE_VARIANT=2]="RESOLVE_VARIANT",e[e.MULTIPLY=3]="MULTIPLY",e[e.DIVIDE=4]="DIVIDE",e[e.EQUALS=5]="EQUALS",e[e.NOT_EQUAL=6]="NOT_EQUAL",e[e.LESS_THAN=7]="LESS_THAN",e[e.LESS_THAN_OR_EQUAL=8]="LESS_THAN_OR_EQUAL",e[e.GREATER_THAN=9]="GREATER_THAN",e[e.GREATER_THAN_OR_EQUAL=10]="GREATER_THAN_OR_EQUAL",e[e.AND=11]="AND",e[e.OR=12]="OR",e[e.NOT=13]="NOT",e[e.STRINGIFY=14]="STRINGIFY",e[e.TERNARY=15]="TERNARY",e[e.VAR_MODE_LOOKUP=16]="VAR_MODE_LOOKUP",e[e.NEGATE=17]="NEGATE",e[e.IS_TRUTHY=18]="IS_TRUTHY",e}({});function Pu(e){return e.type==="GRADIENT_LINEAR"||e.type==="GRADIENT_RADIAL"||e.type==="GRADIENT_ANGULAR"||e.type==="GRADIENT_DIAMOND"}function YJ(e,t,n){let r=e,o=t.safeParse(e);if(o.success&&(r=o.data),!o.success){t.description||console.info("Zod schema provided to parseData has no description. Add a description via .describe for better error messages.");let i=`${t.description||"Zod"} schema error issues`,s=n?`Debug info: 8077${JSON.stringify(n,null,2)} 8078`:"",a=typeof window>"u",l=!1;if(a||l){if(a)for(let u of o.error.issues)console.error(`[SchemaErrorIssue] ${JSON.stringify({sc
8078hemaDescription:t.description,issue:u})}`);if(l)throw new Error(`${i} 8079${s}Issues: ${JSON.stringify(o.error.issues,null,2)}`)}else console.error(i,{issues:o.error.issues,debugInfo:n,data:e})}return r}var st={};GV(st,{BRAND:()=>lY,DIRTY:()=>va,EMPTY_PATH:()=>U3,INVALID:()=>ie,NEVER:()=>zY,OK:()=>In,ParseStatus:()=>vt,Schema:()=>Te,ZodAny:()=>gs,ZodArray:()=>Tr,ZodBigInt:()=>Uo,ZodBoolean:()=>xa,ZodBranded:()=>Af,ZodCatch:()=>Wa,ZodDate:()=>gi,ZodDefault:()=>Ha,ZodDiscriminatedUnion:()=>ku,ZodEffects:()=>Yr,ZodEnum:()=>Vo,ZodError:()=>gn,ZodFirstPartyTypeKind:()=>se,ZodFunction:()=>Os,ZodIntersection:()=>Fa,ZodIssueCode:()=>B,ZodLazy:()=>Ba,ZodLiteral:()=>Ua,ZodMap:()=>Fu,ZodNaN:()=>wu,ZodNativeEnum:()=>Va,ZodNever:()=>Eo,ZodNull:()=>Ga,ZodNullable:()=>Ho,ZodNumber:()=>Bo,ZodObject:()=>it,ZodOptional:()=>Vr,ZodParsedType:()=>j,ZodPipeline:()=>Ya,ZodPromise:()=>Is,ZodReadonly:()=>Ka,ZodRecord:()=>wa,ZodSchema:()=>Te,ZodSet:()=>Ii,ZodString:()=>_r,ZodSymbol:()=>Mu,ZodTransformer:()=>Yr,ZodTuple:()=>Wr,ZodType:()=>Te,ZodUndefined:()=>Ma,ZodUnion:()=>ka,ZodUnknown:()=>Oi,ZodVoid:()=>Gu,addIssueToContext:()=>X,any:()=>TY,array:()=>IY,bigint:()=>fY,boolean:()=>ZP,coerce:()=>KY,custom:()=>XP,date:()=>pY,datetimeRegex:()=>KP,defaultErrorMap:()=>Ti,discriminatedUnion:()=>NY,effect:()=>FY,enum:()=>MY,function:()=>DY,getErrorMap:()=>Du,getParsedType:()=>wo,instanceof:()=>cY,intersection:()=>yY,isAborted:()=>gE,isAsync:()=>vu,isDirty:()=>IE,isValid:()=>hs,late:()=>uY,lazy:()=>vY,literal:()=>xY,makeIssue:()=>Rf,map:()=>CY,nan:()=>dY,nativeEnum:()=>GY,never:()=>OY,null:()=>_Y,nullable:()=>BY,number:()=>$P,object:()=>SY,objectUtil:()=>eS,oboolean:()=>YY,onumber:()=>WY,optional:()=>wY,ostring:()=>HY,pipeline:()=>VY,preprocess:()=>UY,promise:()=>kY,quotelessJson:()=>F3,record:()=>LY,set:()=>PY,setErrorMap:()=>B3,strictObject:()=>RY,string:()=>jP,symbol:()=>mY,transformer:()=>FY,tuple:()=>bY,undefined:()=>EY,union:()=>AY,unknown:()=>hY,util:()=>Se,void:()=>gY});var Se;(function(e){e.assertEqual=o=>{};function t(o){}e.assertIs=t;function n(o){throw new Error}e.assertNever=n,e.arrayToEnum=o=>{let i={};for(let s of o)i[s]=s;return i},e.getValidEnumValues=o=>{let i=e.objectKeys(o).filter(a=>typeof o[o[a]]!="number"),s={};for(let a of i)s[a]=o[a];return e.objectValues(s)},e.objectValues=o=>e.objectKeys(o).map(function(i){return o[i]}),e.objectKeys=typeof Object.keys=="function"?o=>Object.keys(o):o=>{let i=[];for(let s in o)Object.prototype.hasOwnProperty.call(o,s)&&i.push(s);return i},e.find=(o,i)=>{for(let s of o)if(i(s))return s},e.isInteger=typeof Number.isInteger=="function"?o=>Number.isInteger(o):o=>typeof o=="number"&&Number.isFinite(o)&&Math.floor(o)===o;function r(o,i=" | "){return o.map(s=>typeof s=="string"?`'${s}'`:s).join(i)}e.joinValues=r,e.jsonStringifyReplacer=(o,i)=>typeof i=="bigint"?i.toString():i})(Se||(Se={}));var eS;(function(e){e.mergeShapes=(t,n)=>({...t,...n})})(eS||(eS={}));var j=Se.arrayToEnum(["string","nan","number","integer","float","boolean","date","bigint","symbol","function","undefined","null","array","object","unknown","promise","void","never","map","set"]),wo=e=>{switch(typeof e){case"undefined":return j.undefined;case"string":return j.string;case"number":return Number.isNaN(e)?j.nan:j.number;case"boolean":return j.boolean;case"function":return j.function;case"bigint":return j.bigint;case"symbol":return j.symbol;case"object":return Array.isArray(e)?j.array:e===null?j.null:e.then&&typeof e.then=="function"&&e.catch&&typeof e.catch=="function"?j.promise:typeof Map<"u"&&e instanceof Map?j.map:typeof Set<"u"&&e instanceof Set?j.set:typeof Date<"u"&&e instanceof Date?j.date:j.object;default:return j.unknown}};
vendor: 4,622 bytes, line 8079
8079var B=Se.arrayToEnum(["invalid_type","invalid_literal","custom","invalid_union","invalid_union_discriminator","invalid_enum_value","unrecognized_keys","invalid_arguments","invalid_return_type","invalid_date","invalid_string","too_small","too_big","invalid_intersection_types","not_multiple_of","not_finite"]),F3=e=>JSON.stringify(e,null,2).replace(/"([^"]+)":/g,"$1:"),gn=class extends Error{get errors(){return this.issues}constructor(t){super(),this.issues=[],this.addIssue=r=>{this.issues=[...this.issues,r]},this.addIssues=(r=[])=>{this.issues=[...this.issues,...r]};let n=new.target.prototype;Object.setPrototypeOf?Object.setPrototypeOf(this,n):this.__proto__=n,this.name="ZodError",this.issues=t}format(t){let n=t||function(i){return i.message},r={_errors:[]},o=i=>{for(let s of i.issues)if(s.code==="invalid_union")s.unionErrors.map(o);else if(s.code==="invalid_return_type")o(s.returnTypeError);else if(s.code==="invalid_arguments")o(s.argumentsError);else if(s.path.length===0)r._errors.push(n(s));else{let a=r,l=0;for(;l<s.path.length;){let u=s.path[l];l===s.path.length-1?(a[u]=a[u]||{_errors:[]},a[u]._errors.push(n(s))):a[u]=a[u]||{_errors:[]},a=a[u],l++}}};return o(this),r}static assert(t){if(!(t instanceof gn))throw new Error(`Not a ZodError: ${t}`)}toString(){return this.message}get message(){return JSON.stringify(this.issues,Se.jsonStringifyReplacer,2)}get isEmpty(){return this.issues.length===0}flatten(t=n=>n.message){let n={},r=[];for(let o of this.issues)o.path.length>0?(n[o.path[0]]=n[o.path[0]]||[],n[o.path[0]].push(t(o))):r.push(t(o));return{formErrors:r,fieldErrors:n}}get formErrors(){return this.flatten()}};gn.create=e=>new gn(e);var w3=(e,t)=>{let n;switch(e.code){case B.invalid_type:e.received===j.undefined?n="Required":n=`Expected ${e.expected}, received ${e.received}`;break;case B.invalid_literal:n=`Invalid literal value, expected ${JSON.stringify(e.expected,Se.jsonStringifyReplacer)}`;break;case B.unrecognized_keys:n=`Unrecognized key(s) in object: ${Se.joinValues(e.keys,", ")}`;break;case B.invalid_union:n="Invalid input";break;case B.invalid_union_discriminator:n=`Invalid discriminator value. Expected ${Se.joinValues(e.options)}`;break;case B.invalid_enum_value:n=`Invalid enum value. Expected ${Se.joinValues(e.options)}, received '${e.received}'`;break;case B.invalid_arguments:n="Invalid function arguments";break;case B.invalid_return_type:n="Invalid function return type";break;case B.invalid_date:n="Invalid date";break;case B.invalid_string:typeof e.validation=="object"?"includes"in e.validation?(n=`Invalid input: must include "${e.validation.includes}"`,typeof e.validation.position=="number"&&(n=`${n} at one or more positions greater than or equal to ${e.validation.position}`)):"startsWith"in e.validation?n=`Invalid input: must start with "${e.validation.startsWith}"`:"endsWith"in e.validation?n=`Invalid input: must end with "${e.validation.endsWith}"`:Se.assertNever(e.validation):e.validation!=="regex"?n=`Invalid ${e.validation}`:n="Invalid";break;case B.too_small:e.type==="array"?n=`Array must contain ${e.exact?"exactly":e.inclusive?"at least":"more than"} ${e.minimum} element(s)`:e.type==="string"?n=`String must contain ${e.exact?"exactly":e.inclusive?"at least":"over"} ${e.minimum} character(s)`:e.type==="number"?n=`Number must be ${e.exact?"exactly equal to ":e.inclusive?"greater than or equal to ":"greater than "}${e.minimum}`:e.type==="date"?n=`Date must be ${e.exact?"exactly equal to ":e.inclusive?"greater than or equal to ":"greater than "}${new Date(Number(e.minimum))}`:n="Invalid input";break;case B.too_big:e.type==="array"?n=`Array must contain ${e.exact?"exactly":e.inclusive?"at most":"less than"} ${e.maximum} element(s)`:e.type==="string"?n=`String must contain ${e.exact?"exactly":e.inclusive?"at most":"under"} ${e.maximum} character(s)`:e.type==="number"?n=`Number must be ${e.exact?"exactly":e.inclusive?"less than or equal to":"less than"} ${e.maximum}`:e.type==="bigint"?n=`BigInt must be ${e.exact?"exactly":e.inclusive?"less than or equal to":"less than"} ${e.maximum}`:e.type==="date"?n=`Date must be ${e.exact?"exactly":e.inclusive?"smaller than or equal to":"smaller than"} ${new Date(Number(e.maximum))}`:n="Invalid input";break;case B.custom:n="Invalid input";break;case B.invalid_intersection_types:n="Intersection results could not be merged";break;case B.not_multiple_of:n=`Number must be a multiple of ${e.multipleOf}`;break;case B.not_finite:n="Number must be finite";break;default:n=t.defaultError,Se.assertNever(e)}return{message:n}},Ti=w3;var UP=Ti;function B3(e){UP=e}function Du(){return UP}var Rf=e=>
vendor: 46,469 bytes, line 8079
8079{let{data:t,path:n,errorMaps:r,issueData:o}=e,i=[...n,...o.path||[]],s={...o,path:i};if(o.message!==void 0)return{...o,path:i,message:o.message};let a="",l=r.filter(u=>!!u).slice().reverse();for(let u of l)a=u(s,{data:t,defaultError:a}).message;return{...o,path:i,message:a}},U3=[];function X(e,t){let n=Du(),r=Rf({issueData:t,data:e.data,path:e.path,errorMaps:[e.common.contextualErrorMap,e.schemaErrorMap,n,n===Ti?void 0:Ti].filter(o=>!!o)});e.common.issues.push(r)}var vt=class{constructor(){this.value="valid"}dirty(){this.value==="valid"&&(this.value="dirty")}abort(){this.value!=="aborted"&&(this.value="aborted")}static mergeArray(t,n){let r=[];for(let o of n){if(o.status==="aborted")return ie;o.status==="dirty"&&t.dirty(),r.push(o.value)}return{status:t.value,value:r}}static async mergeObjectAsync(t,n){let r=[];for(let o of n){let i=await o.key,s=await o.value;r.push({key:i,value:s})}return vt.mergeObjectSync(t,r)}static mergeObjectSync(t,n){let r={};for(let o of n){let{key:i,value:s}=o;if(i.status==="aborted"||s.status==="aborted")return ie;i.status==="dirty"&&t.dirty(),s.status==="dirty"&&t.dirty(),i.value!=="__proto__"&&(typeof s.value<"u"||o.alwaysSet)&&(r[i.value]=s.value)}return{status:t.value,value:r}}},ie=Object.freeze({status:"aborted"}),va=e=>({status:"dirty",value:e}),In=e=>({status:"valid",value:e}),gE=e=>e.status==="aborted",IE=e=>e.status==="dirty",hs=e=>e.status==="valid",vu=e=>typeof Promise<"u"&&e instanceof Promise;var J;(function(e){e.errToObj=t=>typeof t=="string"?{message:t}:t||{},e.toString=t=>typeof t=="string"?t:t?.message})(J||(J={}));var Hr=class{constructor(t,n,r,o){this._cachedPath=[],this.parent=t,this.data=n,this._path=r,this._key=o}get path(){return this._cachedPath.length||(Array.isArray(this._key)?this._cachedPath.push(...this._path,...this._key):this._cachedPath.push(...this._path,this._key)),this._cachedPath}},VP=(e,t)=>{if(hs(t))return{success:!0,data:t.value};if(!e.common.issues.length)throw new Error("Validation failed but no issues detected.");return{success:!1,get error(){if(this._error)return this._error;let n=new gn(e.common.issues);return this._error=n,this._error}}};function me(e){if(!e)return{};let{errorMap:t,invalid_type_error:n,required_error:r,description:o}=e;if(t&&(n||r))throw new Error(`Can't use "invalid_type_error" or "required_error" in conjunction with custom error map.`);return t?{errorMap:t,description:o}:{errorMap:(s,a)=>{let{message:l}=e;return s.code==="invalid_enum_value"?{message:l??a.defaultError}:typeof a.data>"u"?{message:l??r??a.defaultError}:s.code!=="invalid_type"?{message:a.defaultError}:{message:l??n??a.defaultError}},description:o}}var Te=class{get description(){return this._def.description}_getType(t){return wo(t.data)}_getOrReturnCtx(t,n){return n||{common:t.parent.common,data:t.data,parsedType:wo(t.data),schemaErrorMap:this._def.errorMap,path:t.path,parent:t.parent}}_processInputParams(t){return{status:new vt,ctx:{common:t.parent.common,data:t.data,parsedType:wo(t.data),schemaErrorMap:this._def.errorMap,path:t.path,parent:t.parent}}}_parseSync(t){let n=this._parse(t);if(vu(n))throw new Error("Synchronous parse encountered promise.");return n}_parseAsync(t){let n=this._parse(t);return Promise.resolve(n)}parse(t,n){let r=this.safeParse(t,n);if(r.success)return r.data;throw r.error}safeParse(t,n){let r={common:{issues:[],async:n?.async??!1,contextualErrorMap:n?.errorMap},path:n?.path||[],schemaErrorMap:this._def.errorMap,parent:null,data:t,parsedType:wo(t)},o=this._parseSync({data:t,path:r.path,parent:r});return VP(r,o)}"~validate"(t){let n={common:{issues:[],async:!!this["~standard"].async},path:[],schemaErrorMap:this._def.errorMap,parent:null,data:t,parsedType:wo(t)};if(!this["~standard"].async)try{let r=this._parseSync({data:t,path:[],parent:n});return hs(r)?{value:r.value}:{issues:n.common.issues}}catch(r){r?.message?.toLowerCase()?.includes("encountered")&&(this["~standard"].async=!0),n.common={issues:[],async:!0}}return this._parseAsync({data:t,path:[],parent:n}).then(r=>hs(r)?{value:r.value}:{issues:n.common.issues})}async parseAsync(t,n){let r=await this.safeParseAsync(t,n);if(r.success)return r.data;throw r.error}async safeParseAsync(t,n){let r={common:{issues:[],contextualErrorMap:n?.errorMap,async:!0},path:n?.path||[],schemaErrorMap:this._def.errorMap,parent:null,data:t,parsedType:wo(t)},o=this._parse({data:t,path:r.path,parent:r}),i=await(vu(o)?o:Promise.resolve(o));return VP(r,i)}refine(t,n){let r=o=>typeof n=="string"||typeof n>"u"?{message:n}:typeof n=="function"?n(o):n;return this._refinement((o,i)=>{let s=t(o),a=()=>i.addIssue({code:B.custom,...r(o)});return typeof Promise<"u"&&s instanceof Promise?s.then(l=>l?!0:(a(),!1)):s?!0:(a(),!1)})}refinement(t,n){return this._refinement((r,o)=>t(r)?!0:(o.addIssue(typeof n=="function"?n(r,o):n),!1))}_refinement(t){return new Yr({schema:this,typeName:se.ZodEffects,effect:{type:"refinement",refinement:t}})}superRefine(t){return this._refinement(t)}constructor(t){this.spa=this.safeParseAsync,this._def=t,this.parse=this.parse.bind(this),this.safeParse=this.safeParse.bind(this),this.parseAsync=this.parseAsync.bind(this),this.safeParseAsync=this.safeParseAsync.bind(this),this.spa=this.spa.bind(this),this.refine=this.refine.bind(this),this.refinement=this.refinement.bind(this),this.superRefine=this.superRefine.bind(this),this.optional=this.optional.bind(this),this.nullable=this.nullable.bind(this),this.nullish=this.nullish.bind(this),this.array=this.array.bind(this),this.promise=this.promise.bind(this),this.or=this.or.bind(this),this.and=this.and.bind(this),this.transform=this.transform.bind(this),this.brand=this.brand.bind(this),this.default=this.default.bind(this),this.catch=this.catch.bind(this),this.describe=this.describe.bind(this),this.pipe=this.pipe.bind(this),this.readonly=this.readonly.bind(this),this.isNullable=this.isNullable.bind(this),this.isOptional=this.isOptional.bind(this),this["~standard"]={version:1,vendor:"zod",validate:n=>this["~validate"](n)}}optional(){return Vr.create(this,this._def)}nullable(){return Ho.create(this,this._def)}nullish(){return this.nullable().optional()}array(){return Tr.create(this)}promise(){return Is.create(this,this._def)}or(t){return ka.create([this,t],this._def)}and(t){return Fa.create(this,t,this._def)}transform(t){return new Yr({...me(this._def),schema:this,typeName:se.ZodEffects,effect:{type:"transform",transform:t}})}default(t){let n=typeof t=="function"?t:()=>t;return new Ha({...me(this._def),innerType:this,defaultValue:n,typeName:se.ZodDefault})}brand(){return new Af({typeName:se.ZodBranded,type:this,...me(this._def)})}catch(t){let n=typeof t=="function"?t:()=>t;return new Wa({...me(this._def),innerType:this,catchValue:n,typeName:se.ZodCatch})}describe(t){let n=this.constructor;return new n({...this._def,description:t})}pipe(t){return Ya.create(this,t)}readonly(){return Ka.create(this)}isOptional(){return this.safeParse(void 0).success}isNullable(){return this.safeParse(null).success}},V3=/^c[^\s-]{8,}$/i,H3=/^[0-9a-z]+$/,W3=/^[0-9A-HJKMNP-TV-Z]{26}$/i,Y3=/^[0-9a-fA-F]{8}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{12}$/i,K3=/^[a-z0-9_-]{21}$/i,z3=/^[A-Za-z0-9-_]+\.[A-Za-z0-9-_]+\.[A-Za-z0-9-_]*$/,X3=/^[-+]?P(?!$)(?:(?:[-+]?\d+Y)|(?:[-+]?\d+[.,]\d+Y$))?(?:(?:[-+]?\d+M)|(?:[-+]?\d+[.,]\d+M$))?(?:(?:[-+]?\d+W)|(?:[-+]?\d+[.,]\d+W$))?(?:(?:[-+]?\d+D)|(?:[-+]?\d+[.,]\d+D$))?(?:T(?=[\d+-])(?:(?:[-+]?\d+H)|(?:[-+]?\d+[.,]\d+H$))?(?:(?:[-+]?\d+M)|(?:[-+]?\d+[.,]\d+M$))?(?:[-+]?\d+(?:[.,]\d+)?S)?)??$/,j3=/^(?!\.)(?!.*\.\.)([A-Z0-9_'+\-\.]*)[A-Z0-9_+-]@([A-Z0-9][A-Z0-9\-]*\.)+[A-Z]{2,}$/i,$3="^(\\p{Extended_Pictographic}|\\p{Emoji_Component})+$",tS,Z3=/^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])$/,J3=/^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\/(3[0-2]|[12]?[0-9])$/,q3=/^(([0-9a-fA-F]{1,4}:){7,7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:)|fe80:(:[0-9a-fA-F]{0,4}){0,4}%[0-9a-zA-Z]{1,}|::(ffff(:0{1,4}){0,1}:){0,1}((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])|([0-9a-fA-F]{1,4}:){1,4}:((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9]))$/,Q3=/^(([0-9a-fA-F]{1,4}:){7,7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:)|fe80:(:[0-9a-fA-F]{0,4}){0,4}%[0-9a-zA-Z]{1,}|::(ffff(:0{1,4}){0,1}:){0,1}((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])|([0-9a-fA-F]{1,4}:){1,4}:((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9]))\/(12[0-8]|1[01][0-9]|[1-9]?[0-9])$/,eY=/^([0-9a-zA-Z+/]{4})*(([0-9a-zA-Z+/]{2}==)|([0-9a-zA-Z+/]{3}=))?$/,tY=/^([0-9a-zA-Z-_]{4})*(([0-9a-zA-Z-_]{2}(==)?)|([0-9a-zA-Z-_]{3}(=)?))?$/,WP="((\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-((0[13578]|1[02])-(0[1-9]|[12]\\d|3[01])|(0[469]|11)-(0[1-9]|[12]\\d|30)|(02)-(0[1-9]|1\\d|2[0-8])))",nY=new RegExp(`^${WP}$`);function YP(e){let t="[0-5]\\d";e.precision?t=`${t}\\.\\d{${e.precision}}`:e.precision==null&&(t=`${t}(\\.\\d+)?`);let n=e.precision?"+":"?";return`([01]\\d|2[0-3]):[0-5]\\d(:${t})${n}`}function rY(e){return new RegExp(`^${YP(e)}$`)}function KP(e){let t=`${WP}T${YP(e)}`,n=[];return n.push(e.local?"Z?":"Z"),e.offset&&n.push("([+-]\\d{2}:?\\d{2})"),t=`${t}(${n.join("|")})`,new RegExp(`^${t}$`)}function oY(e,t){return!!((t==="v4"||!t)&&Z3.test(e)||(t==="v6"||!t)&&q3.test(e))}function iY(e,t){if(!z3.test(e))return!1;try{let[n]=e.split("."),r=n.replace(/-/g,"+").replace(/_/g,"/").padEnd(n.length+(4-n.length%4)%4,"="),o=JSON.parse(atob(r));return!(typeof o!="object"||o===null||"typ"in o&&o?.typ!=="JWT"||!o.alg||t&&o.alg!==t)}catch{return!1}}function sY(e,t){return!!((t==="v4"||!t)&&J3.test(e)||(t==="v6"||!t)&&Q3.test(e))}var _r=class extends Te{_parse(t){if(this._def.coerce&&(t.data=String(t.data)),this._getType(t)!==j.string){let i=this._getOrReturnCtx(t);return X(i,{code:B.invalid_type,expected:j.string,received:i.parsedType}),ie}let r=new vt,o;for(let i of this._def.checks)if(i.kind==="min")t.data.length<i.value&&(o=this._getOrReturnCtx(t,o),X(o,{code:B.too_small,minimum:i.value,type:"string",inclusive:!0,exact:!1,message:i.message}),r.dirty());else if(i.kind==="max")t.data.length>i.value&&(o=this._getOrReturnCtx(t,o),X(o,{code:B.too_big,maximum:i.value,type:"string",inclusive:!0,exact:!1,message:i.message}),r.dirty());else if(i.kind==="length"){let s=t.data.length>i.value,a=t.data.length<i.value;(s||a)&&(o=this._getOrReturnCtx(t,o),s?X(o,{code:B.too_big,maximum:i.value,type:"string",inclusive:!0,exact:!0,message:i.message}):a&&X(o,{code:B.too_small,minimum:i.value,type:"string",inclusive:!0,exact:!0,message:i.message}),r.dirty())}else if(i.kind==="email")j3.test(t.data)||(o=this._getOrReturnCtx(t,o),X(o,{validation:"email",code:B.invalid_string,message:i.message}),r.dirty());else if(i.kind==="emoji")tS||(tS=new RegExp($3,"u")),tS.test(t.data)||(o=this._getOrReturnCtx(t,o),X(o,{validation:"emoji",code:B.invalid_string,message:i.message}),r.dirty());else if(i.kind==="uuid")Y3.test(t.data)||(o=this._getOrReturnCtx(t,o),X(o,{validation:"uuid",code:B.invalid_string,message:i.message}),r.dirty());else if(i.kind==="nanoid")K3.test(t.data)||(o=this._getOrReturnCtx(t,o),X(o,{validation:"nanoid",code:B.invalid_string,message:i.message}),r.dirty());else if(i.kind==="cuid")V3.test(t.data)||(o=this._getOrReturnCtx(t,o),X(o,{validation:"cuid",code:B.invalid_string,message:i.message}),r.dirty());else if(i.kind==="cuid2")H3.test(t.data)||(o=this._getOrReturnCtx(t,o),X(o,{validation:"cuid2",code:B.invalid_string,message:i.message}),r.dirty());else if(i.kind==="ulid")W3.test(t.data)||(o=this._getOrReturnCtx(t,o),X(o,{validation:"ulid",code:B.invalid_string,message:i.message}),r.dirty());else if(i.kind==="url")try{new URL(t.data)}catch{o=this._getOrReturnCtx(t,o),X(o,{validation:"url",code:B.invalid_string,message:i.message}),r.dirty()}else i.kind==="regex"?(i.regex.lastIndex=0,i.regex.test(t.data)||(o=this._getOrReturnCtx(t,o),X(o,{validation:"regex",code:B.invalid_string,message:i.message}),r.dirty())):i.kind==="trim"?t.data=t.data.trim():i.kind==="includes"?t.data.includes(i.value,i.position)||(o=this._getOrReturnCtx(t,o),X(o,{code:B.invalid_string,validation:{includes:i.value,position:i.position},message:i.message}),r.dirty()):i.kind==="toLowerCase"?t.data=t.data.toLowerCase():i.kind==="toUpperCase"?t.data=t.data.toUpperCase():i.kind==="startsWith"?t.data.startsWith(i.value)||(o=this._getOrReturnCtx(t,o),X(o,{code:B.invalid_string,validation:{startsWith:i.value},message:i.message}),r.dirty()):i.kind==="endsWith"?t.data.endsWith(i.value)||(o=this._getOrReturnCtx(t,o),X(o,{code:B.invalid_string,validation:{endsWith:i.value},message:i.message}),r.dirty()):i.kind==="datetime"?KP(i).test(t.data)||(o=this._getOrReturnCtx(t,o),X(o,{code:B.invalid_string,validation:"datetime",message:i.message}),r.dirty()):i.kind==="date"?nY.test(t.data)||(o=this._getOrReturnCtx(t,o),X(o,{code:B.invalid_string,validation:"date",message:i.message}),r.dirty()):i.kind==="time"?rY(i).test(t.data)||(o=this._getOrReturnCtx(t,o),X(o,{code:B.invalid_string,validation:"time",message:i.message}),r.dirty()):i.kind==="duration"?X3.test(t.data)||(o=this._getOrReturnCtx(t,o),X(o,{validation:"duration",code:B.invalid_string,message:i.message}),r.dirty()):i.kind==="ip"?oY(t.data,i.version)||(o=this._getOrReturnCtx(t,o),X(o,{validation:"ip",code:B.invalid_string,message:i.message}),r.dirty()):i.kind==="jwt"?iY(t.data,i.alg)||(o=this._getOrReturnCtx(t,o),X(o,{validation:"jwt",code:B.invalid_string,message:i.message}),r.dirty()):i.kind==="cidr"?sY(t.data,i.version)||(o=this._getOrReturnCtx(t,o),X(o,{validation:"cidr",code:B.invalid_string,message:i.message}),r.dirty()):i.kind==="base64"?eY.test(t.data)||(o=this._getOrReturnCtx(t,o),X(o,{validation:"base64",code:B.invalid_string,message:i.message}),r.dirty()):i.kind==="base64url"?tY.test(t.data)||(o=this._getOrReturnCtx(t,o),X(o,{validation:"base64url",code:B.invalid_string,message:i.message}),r.dirty()):Se.assertNever(i);return{status:r.value,value:t.data}}_regex(t,n,r){return this.refinement(o=>t.test(o),{validation:n,code:B.invalid_string,...J.errToObj(r)})}_addCheck(t){return new _r({...this._def,checks:[...this._def.checks,t]})}email(t){return this._addCheck({kind:"email",...J.errToObj(t)})}url(t){return this._addCheck({kind:"url",...J.errToObj(t)})}emoji(t){return this._addCheck({kind:"emoji",...J.errToObj(t)})}uuid(t){return this._addCheck({kind:"uuid",...J.errToObj(t)})}nanoid(t){return this._addCheck({kind:"nanoid",...J.errToObj(t)})}cuid(t){return this._addCheck({kind:"cuid",...J.errToObj(t)})}cuid2(t){return this._addCheck({kind:"cuid2",...J.errToObj(t)})}ulid(t){return this._addCheck({kind:"ulid",...J.errToObj(t)})}base64(t){return this._addCheck({kind:"base64",...J.errToObj(t)})}base64url(t){return this._addCheck({kind:"base64url",...J.errToObj(t)})}jwt(t){return this._addCheck({kind:"jwt",...J.errToObj(t)})}ip(t){return this._addCheck({kind:"ip",...J.errToObj(t)})}cidr(t){return this._addCheck({kind:"cidr",...J.errToObj(t)})}datetime(t){return typeof t=="string"?this._addCheck({kind:"datetime",precision:null,offset:!1,local:!1,message:t}):this._addCheck({kind:"datetime",precision:typeof t?.precision>"u"?null:t?.precision,offset:t?.offset??!1,local:t?.local??!1,...J.errToObj(t?.message)})}date(t){return this._addCheck({kind:"date",message:t})}time(t){return typeof t=="string"?this._addCheck({kind:"time",precision:null,message:t}):this._addCheck({kind:"time",precision:typeof t?.precision>"u"?null:t?.precision,...J.errToObj(t?.message)})}duration(t){return this._addCheck({kind:"duration",...J.errToObj(t)})}regex(t,n){return this._addCheck({kind:"regex",regex:t,...J.errToObj(n)})}includes(t,n){return this._addCheck({kind:"includes",value:t,position:n?.position,...J.errToObj(n?.message)})}startsWith(t,n){return this._addCheck({kind:"startsWith",value:t,...J.errToObj(n)})}endsWith(t,n){return this._addCheck({kind:"endsWith",value:t,...J.errToObj(n)})}min(t,n){return this._addCheck({kind:"min",value:t,...J.errToObj(n)})}max(t,n){return this._addCheck({kind:"max",value:t,...J.errToObj(n)})}length(t,n){return this._addCheck({kind:"length",value:t,...J.errToObj(n)})}nonempty(t){return this.min(1,J.errToObj(t))}trim(){return new _r({...this._def,checks:[...this._def.checks,{kind:"trim"}]})}toLowerCase(){return new _r({...this._def,checks:[...this._def.checks,{kind:"toLowerCase"}]})}toUpperCase(){return new _r({...this._def,checks:[...this._def.checks,{kind:"toUpperCase"}]})}get isDatetime(){return!!this._def.checks.find(t=>t.kind==="datetime")}get isDate(){return!!this._def.checks.find(t=>t.kind==="date")}get isTime(){return!!this._def.checks.find(t=>t.kind==="time")}get isDuration(){return!!this._def.checks.find(t=>t.kind==="duration")}get isEmail(){return!!this._def.checks.find(t=>t.kind==="email")}get isURL(){return!!this._def.checks.find(t=>t.kind==="url")}get isEmoji(){return!!this._def.checks.find(t=>t.kind==="emoji")}get isUUID(){return!!this._def.checks.find(t=>t.kind==="uuid")}get isNANOID(){return!!this._def.checks.find(t=>t.kind==="nanoid")}get isCUID(){return!!this._def.checks.find(t=>t.kind==="cuid")}get isCUID2(){return!!this._def.checks.find(t=>t.kind==="cuid2")}get isULID(){return!!this._def.checks.find(t=>t.kind==="ulid")}get isIP(){return!!this._def.checks.find(t=>t.kind==="ip")}get isCIDR(){return!!this._def.checks.find(t=>t.kind==="cidr")}get isBase64(){return!!this._def.checks.find(t=>t.kind==="base64")}get isBase64url(){return!!this._def.checks.find(t=>t.kind==="base64url")}get minLength(){let t=null;for(let n of this._def.checks)n.kind==="min"&&(t===null||n.value>t)&&(t=n.value);return t}get maxLength(){let t=null;for(let n of this._def.checks)n.kind==="max"&&(t===null||n.value<t)&&(t=n.value);return t}};_r.create=e=>new _r({checks:[],typeName:se.ZodString,coerce:e?.coerce??!1,...me(e)});function aY(e,t){let n=(e.toString().split(".")[1]||"").length,r=(t.toString().split(".")[1]||"").length,o=n>r?n:r,i=Number.parseInt(e.toFixed(o).replace(".","")),s=Number.parseInt(t.toFixed(o).replace(".",""));return i%s/10**o}var Bo=class extends Te{constructor(){super(...arguments),this.min=this.gte,this.max=this.lte,this.step=this.multipleOf}_parse(t){if(this._def.coerce&&(t.data=Number(t.data)),this._getType(t)!==j.number){let i=this._getOrReturnCtx(t);return X(i,{code:B.invalid_type,expected:j.number,received:i.parsedType}),ie}let r,o=new vt;for(let i of this._def.checks)i.kind==="int"?Se.isInteger(t.data)||(r=this._getOrReturnCtx(t,r),X(r,{code:B.invalid_type,expected:"integer",received:"float",message:i.message}),o.dirty()):i.kind==="min"?(i.inclusive?t.data<i.value:t.data<=i.value)&&(r=this._getOrReturnCtx(t,r),X(r,{code:B.too_small,minimum:i.value,type:"number",inclusive:i.inclusive,exact:!1,message:i.message}),o.dirty()):i.kind==="max"?(i.inclusive?t.data>i.value:t.data>=i.value)&&(r=this._getOrReturnCtx(t,r),X(r,{code:B.too_big,maximum:i.value,type:"number",inclusive:i.inclusive,exact:!1,message:i.message}),o.dirty()):i.kind==="multipleOf"?aY(t.data,i.value)!==0&&(r=this._getOrReturnCtx(t,r),X(r,{code:B.not_multiple_of,multipleOf:i.value,message:i.message}),o.dirty()):i.kind==="finite"?Number.isFinite(t.data)||(r=this._getOrReturnCtx(t,r),X(r,{code:B.not_finite,message:i.message}),o.dirty()):Se.assertNever(i);return{status:o.value,value:t.data}}gte(t,n){return this.setLimit("min",t,!0,J.toString(n))}gt(t,n){return this.setLimit("min",t,!1,J.toString(n))}lte(t,n){return this.setLimit("max",t,!0,J.toString(n))}lt(t,n){return this.setLimit("max",t,!1,J.toString(n))}setLimit(t,n,r,o){return new Bo({...this._def,checks:[...this._def.checks,{kind:t,value:n,inclusive:r,message:J.toString(o)}]})}_addCheck(t){return new Bo({...this._def,checks:[...this._def.checks,t]})}int(t){return this._addCheck({kind:"int",message:J.toString(t)})}positive(t){return this._addCheck({kind:"min",value:0,inclusive:!1,message:J.toString(t)})}negative(t){return this._addCheck({kind:"max",value:0,inclusive:!1,message:J.toString(t)})}nonpositive(t){return this._addCheck({kind:"max",value:0,inclusive:!0,message:J.toString(t)})}nonnegative(t){return this._addCheck({kind:"min",value:0,inclusive:!0,message:J.toString(t)})}multipleOf(t,n){return this._addCheck({kind:"multipleOf",value:t,message:J.toString(n)})}finite(t){return this._addCheck({kind:"finite",message:J.toString(t)})}safe(t){return this._addCheck({kind:"min",inclusive:!0,value:Number.MIN_SAFE_INTEGER,message:J.toString(t)})._addCheck({kind:"max",inclusive:!0,value:Number.MAX_SAFE_INTEGER,message:J.toString(t)})}get minValue(){let t=null;for(let n of this._def.checks)n.kind==="min"&&(t===null||n.value>t)&&(t=n.value);return t}get maxValue(){let t=null;for(let n of this._def.checks)n.kind==="max"&&(t===null||n.value<t)&&(t=n.value);return t}get isInt(){return!!this._def.checks.find(t=>t.kind==="int"||t.kind==="multipleOf"&&Se.isInteger(t.value))}get isFinite(){let t=null,n=null;for(let r of this._def.checks){if(r.kind==="finite"||r.kind==="int"||r.kind==="multipleOf")return!0;r.kind==="min"?(n===null||r.value>n)&&(n=r.value):r.kind==="max"&&(t===null||r.value<t)&&(t=r.value)}return Number.isFinite(n)&&Number.isFinite(t)}};Bo.create=e=>new Bo({checks:[],typeName:se.ZodNumber,coerce:e?.coerce||!1,...me(e)});var Uo=class extends Te{constructor(){super(...arguments),this.min=this.gte,this.max=this.lte}_parse(t){if(this._def.coerce)try{t.data=BigInt(t.data)}catch{return this._getInvalidInput(t)}if(this._getType(t)!==j.bigint)return this._getInvalidInput(t);let r,o=new vt;for(let i of this._def.checks)i.kind==="min"?(i.inclusive?t.data<i.value:t.data<=i.value)&&(r=this._getOrReturnCtx(t,r),X(r,{code:B.too_small,type:"bigint",minimum:i.value,inclusive:i.inclusive,message:i.message}),o.dirty()):i.kind==="max"?(i.inclusive?t.data>i.value:t.data>=i.value)&&(r=this._getOrReturnCtx(t,r),X(r,{code:B.too_big,type:"bigint",maximum:i.value,inclusive:i.inclusive,message:i.message}),o.dirty()):i.kind==="multipleOf"?t.data%i.value!==BigInt(0)&&(r=this._getOrReturnCtx(t,r),X(r,{code:B.not_multiple_of,multipleOf:i.value,message:i.message}),o.dirty()):Se.assertNever(i);return{status:o.value,value:t.data}}_getInvalidInput(t){let n=this._getOrReturnCtx(t);return X(n,{code:B.invalid_type,expected:j.bigint,received:n.parsedType}),ie}gte(t,n){return this.setLimit("min",t,!0,J.toString(n))}gt(t,n){return this.setLimit("min",t,!1,J.toString(n))}lte(t,n){return this.setLimit("max",t,!0,J.toString(n))}lt(t,n){return this.setLimit("max",t,!1,J.toString(n))}setLimit(t,n,r,o){return new Uo({...this._def,checks:[...this._def.checks,{kind:t,value:n,inclusive:r,message:J.toString(o)}]})}_addCheck(t){return new Uo({...this._def,checks:[...this._def.checks,t]})}positive(t){return this._addCheck({kind:"min",value:BigInt(0),inclusive:!1,message:J.toString(t)})}negative(t){return this._addCheck({kind:"max",value:BigInt(0),inclusive:!1,message:J.toString(t)})}nonpositive(t){return this._addCheck({kind:"max",value:BigInt(0),inclusive:!0,message:J.toString(t)})}nonnegative(t){return this._addCheck({kind:"min",value:BigInt(0),inclusive:!0,message:J.toString(t)})}multipleOf(t,n){return this._addCheck({kind:"multipleOf",value:t,message:J.toString(n)})}get minValue(){let t=null;for(let n of this._def.checks)n.kind==="min"&&(t===null||n.value>t)&&(t=n.value);return t}get maxValue(){let t=null;for(let n of this._def.checks)n.kind==="max"&&(t===null||n.value<t)&&(t=n.value);return t}};Uo.create=e=>new Uo({checks:[],typeName:se.ZodBigInt,coerce:e?.coerce??!1,...me(e)});var xa=class extends Te{_parse(t){if(this._def.coerce&&(t.data=Boolean(t.data)),this._getType(t)!==j.boolean){let r=this._getOrReturnCtx(t);return X(r,{code:B.invalid_type,expected:j.boolean,received:r.parsedType}),ie}return In(t.data)}};xa.create=e=>new xa({typeName:se.ZodBoolean,coerce:e?.coerce||!1,...me(e)});var gi=class extends Te{_parse(t){if(this._def.coerce&&(t.data=new Date(t.data)),this._getType(t)!==j.date){let i=this._getOrReturnCtx(t);return X(i,{code:B.invalid_type,expected:j.date,received:i.parsedType}),ie}if(Number.isNaN(t.data.getTime())){let i=this._getOrReturnCtx(t);return X(i,{code:B.invalid_date}),ie}let r=new vt,o;for(let i of this._def.checks)i.kind==="min"?t.data.getTime()<i.value&&(o=this._getOrReturnCtx(t,o),X(o,{code:B.too_small,message:i.message,inclusive:!0,exact:!1,minimum:i.value,type:"date"}),r.dirty()):i.kind==="max"?t.data.getTime()>i.value&&(o=this._getOrReturnCtx(t,o),X(o,{code:B.too_big,message:i.message,inclusive:!0,exact:!1,maximum:i.value,type:"date"}),r.dirty()):Se.assertNever(i);return{status:r.value,value:new Date(t.data.getTime())}}_addCheck(t){return new gi({...this._def,checks:[...this._def.checks,t]})}min(t,n){return this._addCheck({kind:"min",value:t.getTime(),message:J.toString(n)})}max(t,n){return this._addCheck({kind:"max",value:t.getTime(),message:J.toString(n)})}get minDate(){let t=null;for(let n of this._def.checks)n.kind==="min"&&(t===null||n.value>t)&&(t=n.value);return t!=null?new Date(t):null}get maxDate(){let t=null;for(let n of this._def.checks)n.kind==="max"&&(t===null||n.value<t)&&(t=n.value);return t!=null?new Date(t):null}};gi.create=e=>new gi({checks:[],coerce:e?.coerce||!1,typeName:se.ZodDate,...me(e)});var Mu=class extends Te{_parse(t){if(this._getType(t)!==j.symbol){let r=this._getOrReturnCtx(t);return X(r,{code:B.invalid_type,expected:j.symbol,received:r.parsedType}),ie}return In(t.data)}};Mu.create=e=>new Mu({typeName:se.ZodSymbol,...me(e)});var Ma=class extends Te{_parse(t){if(this._getType(t)!==j.undefined){let r=this._getOrReturnCtx(t);return X(r,{code:B.invalid_type,expected:j.undefined,received:r.parsedType}),ie}return In(t.data)}};Ma.create=e=>new Ma({typeName:se.ZodUndefined,...me(e)});var Ga=class extends Te{_parse(t){if(this._getType(t)!==j.null){let r=this._getOrReturnCtx(t);return X(r,{code:B.invalid_type,expected:j.null,received:r.parsedType}),ie}return In(t.data)}};Ga.create=e=>new Ga({typeName:se.ZodNull,...me(e)});var gs=class extends Te{constructor(){super(...arguments),this._any=!0}_parse(t){return In(t.data)}};gs.create=e=>new gs({typeName:se.ZodAny,...me(e)});var Oi=class extends Te{constructor(){super(...arguments),this._unknown=!0}_parse(t){return In(t.data)}};Oi.create=e=>new Oi({typeName:se.ZodUnknown,...me(e)});var Eo=class extends Te{_parse(t){let n=this._getOrReturnCtx(t);return X(n,{code:B.invalid_type,expected:j.never,received:n.parsedType}),ie}};Eo.create=e=>new Eo({typeName:se.ZodNever,...me(e)});var Gu=class extends Te{_parse(t){if(this._getType(t)!==j.undefined){let r=this._getOrReturnCtx(t);return X(r,{code:B.invalid_type,expected:j.void,received:r.parsedType}),ie}return In(t.data)}};Gu.create=e=>new Gu({typeName:se.ZodVoid,...me(e)});var Tr=class extends Te{_parse(t){let{ctx:n,status:r}=this._processInputParams(t),o=this._def;if(n.parsedType!==j.array)return X(n,{code:B.invalid_type,expected:j.array,received:n.parsedType}),ie;if(o.exactLength!==null){let s=n.data.length>o.exactLength.value,a=n.data.length<o.exactLength.value;(s||a)&&(X(n,{code:s?B.too_big:B.too_small,minimum:a?o.exactLength.value:void 0,maximum:s?o.exactLength.value:void 0,type:"array",inclusive:!0,exact:!0,message:o.exactLength.message}),r.dirty())}if(o.minLength!==null&&n.data.length<o.minLength.value&&(X(n,{code:B.too_small,minimum:o.minLength.value,type:"array",inclusive:!0,exact:!1,message:o.minLength.message}),r.dirty()),o.maxLength!==null&&n.data.length>o.maxLength.value&&(X(n,{code:B.too_big,maximum:o.maxLength.value,type:"array",inclusive:!0,exact:!1,message:o.maxLength.message}),r.dirty()),n.common.async)return Promise.all([...n.data].map((s,a)=>o.type._parseAsync(new Hr(n,s,n.path,a)))).then(s=>vt.mergeArray(r,s));let i=[...n.data].map((s,a)=>o.type._parseSync(new Hr(n,s,n.path,a)));return vt.mergeArray(r,i)}get element(){return this._def.type}min(t,n){return new Tr({...this._def,minLength:{value:t,message:J.toString(n)}})}max(t,n){return new Tr({...this._def,maxLength:{value:t,message:J.toString(n)}})}length(t,n){return new Tr({...this._def,exactLength:{value:t,message:J.toString(n)}})}nonempty(t){return this.min(1,t)}};Tr.create=(e,t)=>new Tr({type:e,minLength:null,maxLength:null,exactLength:null,typeName:se.ZodArray,...me(t)});function xu(e){if(e instanceof it){let t={};for(let n in e.shape){let r=e.shape[n];t[n]=Vr.create(xu(r))}return new it({...e._def,shape:()=>t})}else return e instanceof Tr?new Tr({...e._def,type:xu(e.element)}):e instanceof Vr?Vr.create(xu(e.unwrap())):e instanceof Ho?Ho.create(xu(e.unwrap())):e instanceof Wr?Wr.create(e.items.map(t=>xu(t))):e}var it=class extends Te{constructor(){super(...arguments),this._cached=null,this.nonstrict=this.passthrough,this.augment=this.extend}_getCached(){if(this._cached!==null)return this._cached;let t=this._def.shape(),n=Se.objectKeys(t);return this._cached={shape:t,keys:n},this._cached}_parse(t){if(this._getType(t)!==j.object){let u=this._getOrReturnCtx(t);return X(u,{code:B.invalid_type,expected:j.object,received:u.parsedType}),ie}let{status:r,ctx:o}=this._processInputParams(t),{shape:i,keys:s}=this._getCached(),a=[];if(!(this._def.catchall instanceof Eo&&this._def.unknownKeys==="strip"))for(let u in o.data)s.includes(u)||a.push(u);let l=[];for(let u of s){let c=i[u],d=o.data[u];l.push({key:{status:"valid",value:u},value:c._parse(new Hr(o,d,o.path,u)),alwaysSet:u in o.data})}if(this._def.catchall instanceof Eo){let u=this._def.unknownKeys;if(u==="passthrough")for(let c of a)l.push({key:{status:"valid",value:c},value:{status:"valid",value:o.data[c]}});else if(u==="strict")a.length>0&&(X(o,{code:B.unrecognized_keys,keys:a}),r.dirty());else if(u!=="strip")throw new Error("Internal ZodObject error: invalid unknownKeys value.")}else{let u=this._def.catchall;for(let c of a){let d=o.data[c];l.push({key:{status:"valid",value:c},value:u._parse(new Hr(o,d,o.path,c)),alwaysSet:c in o.data})}}return o.common.async?Promise.resolve().then(async()=>{let u=[];for(let c of l){let d=await c.key,f=await c.value;u.push({key:d,value:f,alwaysSet:c.alwaysSet})}return u}).then(u=>vt.mergeObjectSync(r,u)):vt.mergeObjectSync(r,l)}get shape(){return this._def.shape()}strict(t){return J.errToObj,new it({...this._def,unknownKeys:"strict",...t!==void 0?{errorMap:(n,r)=>{let o=this._def.errorMap?.(n,r).message??r.defaultError;return n.code==="unrecognized_keys"?{message:J.errToObj(t).message??o}:{message:o}}}:{}})}strip(){return new it({...this._def,unknownKeys:"strip"})}passthrough(){return new it({...this._def,unknownKeys:"passthrough"})}extend(t){return new it({...this._def,shape:()=>({...this._def.shape(),...t})})}merge(t){return new it({unknownKeys:t._def.unknownKeys,catchall:t._def.catchall,shape:()=>({...this._def.shape(),...t._def.shape()}),typeName:se.ZodObject})}setKey(t,n){return this.augment({[t]:n})}catchall(t){return new it({...this._def,catchall:t})}pick(t){let n={};for(let r of Se.objectKeys(t))t[r]&&this.shape[r]&&(n[r]=this.shape[r]);return new it({...this._def,shape:()=>n})}omit(t){let n={};for(let r of Se.objectKeys(this.shape))t[r]||(n[r]=this.shape[r]);return new it({...this._def,shape:()=>n})}deepPartial(){return xu(this)}partial(t){let n={};for(let r of Se.objectKeys(this.shape)){let o=this.shape[r];t&&!t[r]?n[r]=o:n[r]=o.optional()}return new it({...this._def,shape:()=>n})}required(t){let n={};for(let r of Se.objectKeys(this.shape))if(t&&!t[r])n[r]=this.shape[r];else{let i=this.shape[r];for(;i instanceof Vr;)i=i._def.innerType;n[r]=i}return new it({...this._def,shape:()=>n})}keyof(){return zP(Se.objectKeys(this.shape))}};it.create=(e,t)=>new it({shape:()=>e,unknownKeys:"strip",catchall:Eo.create(),typeName:se.ZodObject,...me(t)});it.strictCreate=(e,t)=>new it({shape:()=>e,unknownKeys:"strict",catchall:Eo.create(),typeName:se.ZodObject,...me(t)});it.lazycreate=(e,t)=>new it({shape:e,unknownKeys:"strip",catchall:Eo.create(),typeName:se.ZodObject,...me(t)});var ka=class extends Te{_parse(t){let{ctx:n}=this._processInputParams(t),r=this._def.options;function o(i){for(let a of i)if(a.result.status==="valid")return a.result;for(let a of i)if(a.result.status==="dirty")return n.common.issues.push(...a.ctx.common.issues),a.result;let s=i.map(a=>new gn(a.ctx.common.issues));return X(n,{code:B.invalid_union,unionErrors:s}),ie}if(n.common.async)return Promise.all(r.map(async i=>{let s={...n,common:{...n.common,issues:[]},parent:null};return{result:await i._parseAsync({data:n.data,path:n.path,parent:s}),ctx:s}})).then(o);{let i,s=[];for(let l of r){let u={...n,common:{...n.common,issues:[]},parent:null},c=l._parseSync({data:n.data,path:n.path,parent:u});if(c.status==="valid")return c;c.status==="dirty"&&!i&&(i={result:c,ctx:u}),u.common.issues.length&&s.push(u.common.issues)}if(i)return n.common.issues.push(...i.ctx.common.issues),i.result;let a=s.map(l=>new gn(l));return X(n,{code:B.invalid_union,unionErrors:a}),ie}}get options(){return this._def.options}};ka.create=(e,t)=>new ka({options:e,typeName:se.ZodUnion,...me(t)});var hi=e=>e instanceof Ba?hi(e.schema):e instanceof Yr?hi(e.innerType()):e instanceof Ua?[e.value]:e instanceof Vo?e.options:e instanceof Va?Se.objectValues(e.enum):e instanceof Ha?hi(e._def.innerType):e instanceof Ma?[void 0]:e instanceof Ga?[null]:e instanceof Vr?[void 0,...hi(e.unwrap())]:e instanceof Ho?[null,...hi(e.unwrap())]:e instanceof Af||e instanceof Ka?hi(e.unwrap()):e instanceof Wa?hi(e._def.innerType):[],ku=class extends Te{_parse(t){let{ctx:n}=this._processInputParams(t);if(n.parsedType!==j.object)return X(n,{code:B.invalid_type,expected:j.object,received:n.parsedType}),ie;let r=this.discriminator,o=n.data[r],i=this.optionsMap.get(o);return i?n.common.async?i._parseAsync({data:n.data,path:n.path,parent:n}):i._parseSync({data:n.data,path:n.path,parent:n}):(X(n,{code:B.invalid_union_discriminator,options:Array.from(this.optionsMap.keys()),path:[r]}),ie)}get discriminator(){return this._def.discriminator}get options(){return this._def.options}get optionsMap(){return this._def.optionsMap}static create(t,n,r){let o=new Map;for(let i of n){let s=hi(i.shape[t]);if(!s.length)throw new Error(`A discriminator value for key \`${t}\` could not be extracted from all schema options`);for(let a of s){if(o.has(a))throw new Error(`Discriminator property ${String(t)} has duplicate value ${String(a)}`);o.set(a,i)}}return new ku({typeName:se.ZodDiscriminatedUnion,discriminator:t,options:n,optionsMap:o,...me(r)})}};function nS(e,t){let n=wo(e),r=wo(t);if(e===t)return{valid:!0,data:e};if(n===j.object&&r===j.object){let o=Se.objectKeys(t),i=Se.objectKeys(e).filter(a=>o.indexOf(a)!==-1),s={...e,...t};for(let a of i){let l=nS(e[a],t[a]);if(!l.valid)return{valid:!1};s[a]=l.data}return{valid:!0,data:s}}else if(n===j.array&&r===j.array){if(e.length!==t.length)return{valid:!1};let o=[];for(let i=0;i<e.length;i++){let s=e[i],a=t[i],l=nS(s,a);if(!l.valid)return{valid:!1};o.push(l.data)}return{valid:!0,data:o}}else return n===j.date&&r===j.date&&+e==+t?{valid:!0,data:e}:{valid:!1}}var Fa=class extends Te{_parse(t){let{status:n,ctx:r}=this._processInputParams(t),o=(i,s)=>{if(gE(i)||gE(s))return ie;let a=nS(i.value,s.value);return a.valid?((IE(i)||IE(s))&&n.dirty(),{status:n.value,value:a.data}):(X(r,{code:B.invalid_intersection_types}),ie)};return r.common.async?Promise.all([this._def.left._parseAsync({data:r.data,path:r.path,parent:r}),this._def.right._parseAsync({data:r.data,path:r.path,parent:r})]).then(([i,s])=>o(i,s)):o(this._def.left._parseSync({data:r.data,path:r.path,parent:r}),this._def.right._parseSync({data:r.data,path:r.path,parent:r}))}};Fa.create=(e,t,n)=>new Fa({left:e,right:t,typeName:se.ZodIntersection,...me(n)});var Wr=class extends Te{_parse(t){let{status:n,ctx:r}=this._processInputParams(t);if(r.parsedType!==j.array)return X(r,{code:B.invalid_type,expected:j.array,received:r.parsedType}),ie;if(r.data.length<this._def.items.length)return X(r,{code:B.too_small,minimum:this._def.items.length,inclusive:!0,exact:!1,type:"array"}),ie;!this._def.rest&&r.data.length>this._def.items.length&&(X(r,{code:B.too_big,maximum:this._def.items.length,inclusive:!0,exact:!1,type:"array"}),n.dirty());let i=[...r.data].map((s,a)=>{let l=this._def.items[a]||this._def.rest;return l?l._parse(new Hr(r,s,r.path,a)):null}).filter(s=>!!s);return r.common.async?Promise.all(i).then(s=>vt.mergeArray(n,s)):vt.mergeArray(n,i)}get items(){return this._def.items}rest(t){return new Wr({...this._def,rest:t})}};Wr.create=(e,t)=>{if(!Array.isArray(e))throw new Error("You must pass an array of schemas to z.tuple([ ... ])");return new Wr({items:e,typeName:se.ZodTuple,rest:null,...me(t)})};var wa=class extends Te{get keySchema(){return this._def.keyType}get valueSchema(){return this._def.valueType}_parse(t){let{status:n,ctx:r}=this._processInputParams(t);if(r.parsedType!==j.object)return X(r,{code:B.invalid_type,expected:j.object,received:r.parsedType}),ie;let o=[],i=this._def.keyType,s=this._def.valueType;for(let a in r.data)o.push({key:i._parse(new Hr(r,a,r.path,a)),value:s._parse(new Hr(r,r.data[a],r.path,a)),alwaysSet:a in r.data});return r.common.async?vt.mergeObjectAsync(n,o):vt.mergeObjectSync(n,o)}get element(){return this._def.valueType}static create(t,n,r){return n instanceof Te?new wa({keyType:t,valueType:n,typeName:se.ZodRecord,...me(r)}):new wa({keyType:_r.create(),valueType:t,typeName:se.ZodRecord,...me(n)})}},Fu=class extends Te{get keySchema(){return this._def.keyType}get valueSchema(){return this._def.valueType}_parse(t){let{status:n,ctx:r}=this._processInputParams(t);if(r.parsedType!==j.map)return X(r,{code:B.invalid_type,expected:j.map,received:r.parsedType}),ie;let o=this._def.keyType,i=this._def.valueType,s=[...r.data.entries()].map(([a,l],u)=>({key:o._parse(new Hr(r,a,r.path,[u,"key"])),value:i._parse(new Hr(r,l,r.path,[u,"value"]))}));if(r.common.async){let a=new Map;return Promise.resolve().then(async()=>{for(let l of s){let u=await l.key,c=await l.value;if(u.status==="aborted"||c.status==="aborted")return ie;(u.status==="dirty"||c.status==="dirty")&&n.dirty(),a.set(u.value,c.value)}return{status:n.value,value:a}})}else{let a=new Map;for(let l of s){let u=l.key,c=l.value;if(u.status==="aborted"||c.status==="aborted")return ie;(u.status==="dirty"||c.status==="dirty")&&n.dirty(),a.set(u.value,c.value)}return{status:n.value,value:a}}}};Fu.create=(e,t,n)=>new Fu({valueType:t,keyType:e,typeName:se.ZodMap,...me(n)});var Ii=class extends Te{_parse(t){let{status:n,ctx:r}=this._processInputParams(t);if(r.parsedType!==j.set)return X(r,{code:B.invalid_type,expected:j.set,received:r.parsedType}),ie;let o=this._def;o.minSize!==null&&r.data.size<o.minSize.value&&(X(r,{code:B.too_small,minimum:o.minSize.value,type:"set",inclusive:!0,exact:!1,message:o.minSize.message}),n.dirty()),o.maxSize!==null&&r.data.size>o.maxSize.value&&(X(r,{code:B.too_big,maximum:o.maxSize.value,type:"set",inclusive:!0,exact:!1,message:o.maxSize.message}),n.dirty());let i=this._def.valueType;function s(l){let u=new Set;for(let c of l){if(c.status==="aborted")return ie;c.status==="dirty"&&n.dirty(),u.add(c.value)}return{status:n.value,value:u}}let a=[...r.data.values()].map((l,u)=>i._parse(new Hr(r,l,r.path,u)));return r.common.async?Promise.all(a).then(l=>s(l)):s(a)}min(t,n){return new Ii({...this._def,minSize:{value:t,message:J.toString(n)}})}max(t,n){return new Ii({...this._def,maxSize:{value:t,message:J.toString(n)}})}size(t,n){return this.min(t,n).max(t,n)}nonempty(t){return this.min(1,t)}};Ii.create=(e,t)=>new Ii({valueType:e,minSize:null,maxSize:null,typeName:se.ZodSet,...me(t)});var Os=class extends Te{constructor(){super(...arguments),this.validate=this.implement}_parse(t){let{ctx:n}=this._processInputParams(t);if(n.parsedType!==j.function)return X(n,{code:B.invalid_type,expected:j.function,received:n.parsedType}),ie;function r(a,l){return Rf({data:a,path:n.path,errorMaps:[n.common.contextualErrorMap,n.schemaErrorMap,Du(),Ti].filter(u=>!!u),issueData:{code:B.invalid_arguments,argumentsError:l}})}function o(a,l){return Rf({data:a,path:n.path,errorMaps:[n.common.contextualErrorMap,n.schemaErrorMap,Du(),Ti].filter(u=>!!u),issueData:{code:B.invalid_return_type,returnTypeError:l}})}let i={errorMap:n.common.contextualErrorMap},s=n.data;if(this._def.returns instanceof Is){let a=this;return In(async function(...l){let u=new gn([]),c=await a._def.args.parseAsync(l,i).catch(p=>{throw u.addIssue(r(l,p)),u}),d=await Reflect.apply(s,this,c);return await a._def.returns._def.type.parseAsync(d,i).catch(p=>{throw u.addIssue(o(d,p)),u})})}else{let a=this;return In(function(...l){let u=a._def.args.safeParse(l,i);if(!u.success)throw new gn([r(l,u.error)]);let c=Reflect.apply(s,this,u.data),d=a._def.returns.safeParse(c,i);if(!d.success)throw new gn([o(c,d.error)]);return d.data})}}parameters(){return this._def.args}returnType(){return this._def.returns}args(...t){return new Os({...this._def,args:Wr.create(t).rest(Oi.create())})}returns(t){return new Os({...this._def,returns:t})}implement(t){return this.parse(t)}strictImplement(t){return this.parse(t)}static create(t,n,r){return new Os({args:t||Wr.create([]).rest(Oi.create()),returns:n||Oi.create(),typeName:se.ZodFunction,...me(r)})}},Ba=class extends Te{get schema(){return this._def.getter()}_parse(t){let{ctx:n}=this._processInputParams(t);return this._def.getter()._parse({data:n.data,path:n.path,parent:n})}};Ba.create=(e,t)=>new Ba({getter:e,typeName:se.ZodLazy,...me(t)});var Ua=class extends Te{_parse(t){if(t.data!==this._def.value){let n=this._getOrReturnCtx(t);return X(n,{received:n.data,code:B.invalid_literal,expected:this._def.value}),ie}return{status:"valid",value:t.data}}get value(){return this._def.value}};Ua.create=(e,t)=>new Ua({value:e,typeName:se.ZodLiteral,...me(t)});function zP(e,t){return new Vo({values:e,typeName:se.ZodEnum,...me(t)})}var Vo=class extends Te{_parse(t){if(typeof t.data!="string"){let n=this._getOrReturnCtx(t),r=this._def.values;return X(n,{expected:Se.joinValues(r),received:n.parsedType,code:B.invalid_type}),ie}if(this._cache||(this._cache=new Set(this._def.values)),!this._cache.has(t.data)){let n=this._getOrReturnCtx(t),r=this._def.values;return X(n,{received:n.data,code:B.invalid_enum_value,options:r}),ie}return In(t.data)}get options(){return this._def.values}get enum(){let t={};for(let n of this._def.values)t[n]=n;return t}get Values(){let t={};for(let n of this._def.values)t[n]=n;return t}get Enum(){let t={};for(let n of this._def.values)t[n]=n;return t}extract(t,n=this._def){return Vo.create(t,{...this._def,...n})}exclude(t,n=this._def){return Vo.create(this.options.filter(r=>!t.includes(r)),{...this._def,...n})}};Vo.create=zP;var Va=class extends Te{_parse(t){let n=Se.getValidEnumValues(this._def.values),r=this._getOrReturnCtx(t);if(r.parsedType!==j.string&&r.parsedType!==j.number){let o=Se.objectValues(n);return X(r,{expected:Se.joinValues(o),received:r.parsedType,code:B.invalid_type}),ie}if(this._cache||(this._cache=new Set(Se.getValidEnumValues(this._def.values))),!this._cache.has(t.data)){let o=Se.objectValues(n);return X(r,{received:r.data,code:B.invalid_enum_value,options:o}),ie}return In(t.data)}get enum(){return this._def.values}};Va.create=(e,t)=>new Va({values:e,typeName:se.ZodNativeEnum,...me(t)});var Is=class extends Te{unwrap(){return this._def.type}_parse(t){let{ctx:n}=this._processInputParams(t);if(n.parsedType!==j.promise&&n.common.async===!1)return X(n,{code:B.invalid_type,expected:j.promise,received:n.parsedType}),ie;let r=n.parsedType===j.promise?n.data:Promise.resolve(n.data);return In(r.then(o=>this._def.type.parseAsync(o,{path:n.path,errorMap:n.common.contextualErrorMap})))}};Is.create=(e,t)=>new Is({type:e,typeName:se.ZodPromise,...me(t)});var Yr=class extends Te{innerType(){return this._def.schema}sourceType(){return this._def.schema._def.typeName===se.ZodEffects?this._def.schema.sourceType():this._def.schema}_parse(t){let{status:n,ctx:r}=this._processInputParams(t),o=this._def.effect||null,i={addIssue:s=>{X(r,s),s.fatal?n.abort():n.dirty()},get path(){return r.path}};if(i.addIssue=i.addIssue.bind(i),o.type==="preprocess"){let s=o.transform(r.data,i);if(r.common.async)return Promise.resolve(s).then(async a=>{if(n.value==="aborted")return ie;let l=await this._def.schema._parseAsync({data:a,path:r.path,parent:r});return l.status==="aborted"?ie:l.status==="dirty"?va(l.value):n.value==="dirty"?va(l.value):l});{if(n.value==="aborted")return ie;let a=this._def.schema._parseSync({data:s,path:r.path,parent:r});return a.status==="aborted"?ie:a.status==="dirty"?va(a.value):n.value==="dirty"?va(a.value):a}}if(o.type==="refinement"){let s=a=>{let l=o.refinement(a,i);if(r.common.async)return Promise.resolve(l);if(l instanceof Promise)throw new Error("Async refinement encountered during synchronous parse operation. Use .parseAsync instead.");return a};if(r.common.async===!1){let a=this._def.schema._parseSync({data:r.data,path:r.path,parent:r});return a.status==="aborted"?ie:(a.status==="dirty"&&n.dirty(),s(a.value),{status:n.value,value:a.value})}else return this._def.schema._parseAsync({data:r.data,path:r.path,parent:r}).then(a=>a.status==="aborted"?ie:(a.status==="dirty"&&n.dirty(),s(a.value).then(()=>({status:n.value,value:a.value}))))}if(o.type==="transform")if(r.common.async===!1){let s=this._def.schema._parseSync({data:r.data,path:r.path,parent:r});if(!hs(s))return ie;let a=o.transform(s.value,i);if(a instanceof Promise)throw new Error("Asynchronous transform encountered during synchronous parse operation. Use .parseAsync instead.");return{status:n.value,value:a}}else return this._def.schema._parseAsync({data:r.data,path:r.path,parent:r}).then(s=>hs(s)?Promise.resolve(o.transform(s.value,i)).then(a=>({status:n.value,value:a})):ie);Se.assertNever(o)}};
8079Yr.create=(e,t,n)=>new Yr({schema:e,typeName:se.ZodEffects,effect:t,...me(n)});Yr.createWithPreprocess=(e,t,n)=>new Yr({schema:t,effect:{type:"preprocess",transform:e},typeName:se.ZodEffects,...me(n)});var Vr=class extends Te{_parse(t){return this._getType(t)===j.undefined?In(void 0):this._def.innerType._parse(t)}unwrap(){return this._def.innerType}};Vr.create=(e,t)=>new Vr({innerType:e,typeName:se.ZodOptional,...me(t)});var Ho=class extends Te{_parse(t){return this._getType(t)===j.null?In(null):this._def.innerType._parse(t)}unwrap(){return this._def.innerType}};Ho.create=(e,t)=>new Ho({innerType:e,typeName:se.ZodNullable,...me(t)});var Ha=class extends Te{_parse(t){let{ctx:n}=this._processInputParams(t),r=n.data;return n.parsedType===j.undefined&&(r=this._def.defaultValue()),this._def.innerType._parse({data:r,path:n.path,parent:n})}removeDefault(){return this._def.innerType}};Ha.create=(e,t)=>new Ha({innerType:e,typeName:se.ZodDefault,defaultValue:typeof t.default=="function"?t.default:()=>t.default,...me(t)});var Wa=class extends Te{_parse(t){let{ctx:n}=this._processInputParams(t),r={...n,common:{...n.common,issues:[]}},o=this._def.innerType._parse({data:r.data,path:r.path,parent:{...r}});return vu(o)?o.then(i=>({status:"valid",value:i.status==="valid"?i.value:this._def.catchValue({get error(){return new gn(r.common.issues)},input:r.data})})):{status:"valid",value:o.status==="valid"?o.value:this._def.catchValue({get error(){return new gn(r.common.issues)},input:r.data})}}removeCatch(){return this._def.innerType}};Wa.create=(e,t)=>new Wa({innerType:e,typeName:se.ZodCatch,catchValue:typeof t.catch=="function"?t.catch:()=>t.catch,...me(t)});var wu=class extends Te{_parse(t){if(this._getType(t)!==j.nan){let r=this._getOrReturnCtx(t);return X(r,{code:B.invalid_type,expected:j.nan,received:r.parsedType}),ie}return{status:"valid",value:t.data}}};wu.create=e=>new wu({typeName:se.ZodNaN,...me(e)});var lY=Symbol("zod_brand"),Af=class extends Te{_parse(t){let{ctx:n}=this._processInputParams(t),r=n.data;return this._def.type._parse({data:r,path:n.path,parent:n})}unwrap(){return this._def.type}},Ya=class extends Te{_parse(t){let{status:n,ctx:r}=this._processInputParams(t);if(r.common.async)return(async()=>{let i=await this._def.in._parseAsync({data:r.data,path:r.path,parent:r});return i.status==="aborted"?ie:i.status==="dirty"?(n.dirty(),va(i.value)):this._def.out._parseAsync({data:i.value,path:r.path,parent:r})})();{let o=this._def.in._parseSync({data:r.data,path:r.path,parent:r});return o.status==="aborted"?ie:o.status==="dirty"?(n.dirty(),{status:"dirty",value:o.value}):this._def.out._parseSync({data:o.value,path:r.path,parent:r})}}static create(t,n){return new Ya({in:t,out:n,typeName:se.ZodPipeline})}},Ka=class extends Te{_parse(t){let n=this._def.innerType._parse(t),r=o=>(hs(o)&&(o.value=Object.freeze(o.value)),o);return vu(n)?n.then(o=>r(o)):r(n)}unwrap(){return this._def.innerType}};Ka.create=(e,t)=>new Ka({innerType:e,typeName:se.ZodReadonly,...me(t)});function HP(e,t){let n=typeof e=="function"?e(t):typeof e=="string"?{message:e}:e;return typeof n=="string"?{message:n}:n}function XP(e,t={},n){return e?gs.create().superRefine((r,o)=>{let i=e(r);if(i instanceof Promise)return i.then(s=>{if(!s){let a=HP(t,r),l=a.fatal??n??!0;o.addIssue({code:"custom",...a,fatal:l})}});if(!i){let s=HP(t,r),a=s.fatal??n??!0;o.addIssue({code:"custom",...s,fatal:a})}}):gs.create()}var uY={object:it.lazycreate},se;(function(e){e.ZodString="ZodString",e.ZodNumber="ZodNumber",e.ZodNaN="ZodNaN",e.ZodBigInt="ZodBigInt",e.ZodBoolean="ZodBoolean",e.ZodDate="ZodDate",e.ZodSymbol="ZodSymbol",e.ZodUndefined="ZodUndefined",e.ZodNull="ZodNull",e.ZodAny="ZodAny",e.ZodUnknown="ZodUnknown",e.ZodNever="ZodNever",e.ZodVoid="ZodVoid",e.ZodArray="ZodArray",e.ZodObject="ZodObject",e.ZodUnion="ZodUnion",e.ZodDiscriminatedUnion="ZodDiscriminatedUnion",e.ZodIntersection="ZodIntersection",e.ZodTuple="ZodTuple",e.ZodRecord="ZodRecord",e.ZodMap="ZodMap",e.ZodSet="ZodSet",e.ZodFunction="ZodFunction",e.ZodLazy="ZodLazy",e.ZodLiteral="ZodLiteral",e.ZodEnum="ZodEnum",e.ZodEffects="ZodEffects",e.ZodNativeEnum="ZodNativeEnum",e.ZodOptional="ZodOptional",e.ZodNullable="ZodNullable",e.ZodDefault="ZodDefault",e.ZodCatch="ZodCatch",e.ZodPromise="ZodPromise",e.ZodBranded="ZodBranded",e.ZodPipeline="ZodPipeline",e.ZodReadonly="ZodReadonly"})(se||(se={}));var cY=(e,t={message:`Input not instance of ${e.name}`})=>XP(n=>n instanceof e,t),jP=_r.create,$P=Bo.create,dY=wu.create,fY=Uo.create,ZP=xa.create,pY=gi.create,mY=Mu.create,EY=Ma.create,_Y=Ga.create,TY=gs.create,hY=Oi.create,OY=Eo.create,gY=Gu.create,IY=Tr.create,SY=it.create,RY=it.strictCreate,AY=ka.create,NY=ku.create,yY=Fa.create,bY=Wr.create,LY=wa.create,CY=Fu.create,PY=Ii.create,DY=Os.create,vY=Ba.create,xY=Ua.create,MY=Vo.create,GY=Va.create,kY=Is.create,FY=Yr.create,wY=Vr.create,BY=Ho.create,UY=Yr.createWithPreprocess,VY=Ya.create,HY=()=>jP().optional(),WY=()=>$P().optional(),YY=()=>ZP().optional(),KY={string:e=>_r.create({...e,coerce:!0}),number:e=>Bo.create({...e,coerce:!0}),boolean:e=>xa.create({...e,coerce:!0}),bigint:e=>Uo.create({...e,coerce:!0}),date:e=>gi.create({...e,coerce:!0})};var zY=ie;function Ss(e){return e}var Nf=Ss,JP=Ss,qP=Ss;var _o=Ss,QP=Ss,SE=Ss;var rS=Ss,eD=Ss;var Kr=function(e){return e[e.BOOLEAN=0]="BOOLEAN",e[e.FLOAT=1]="FLOAT",e[e.STRING=2]="STRING",e[e.ALIAS=3]="ALIAS",e[e.COLOR=4]="COLOR",e[e.EXPRESSION=5]="EXPRESSION",e[e.MAP=6]="MAP",e[e.SYMBOL_ID=7]="SYMBOL_ID",e}({}),oS=function(e){return e[e.BOOLEAN=0]="BOOLEAN",e[e.FLOAT=1]="FLOAT",e[e.STRING=2]="STRING",e[e.COLOR=3]="COLOR",e[e.MAP=4]="MAP",e[e.SYMBOL_ID=5]="SYMBOL_ID",e[e.FONT_STYLE=6]="FONT_STYLE",e[e.TEXT_DATA=7]="TEXT_DATA",e[e.IMAGE=8]="IMAGE",e[e.LINK=9]="LINK",e[e.JS_RUNTIME_ALIAS=10]="JS_RUNTIME_ALIAS",e[e.SLOT_CONTENT_ID=11]="SLOT_CONTENT_ID",e[e.KEYFRAME_TRACK_ID=12]="KEYFRAME_TRACK_ID",e[e.KEYFRAME_TRACK_PARAMETER_DATA=13]="KEYFRAME_TRACK_PARAMETER_DATA",e}({});function To(e,t){let n=null;return typeof t!="object"||"r"in t||"image"in t?n=t:t.type==="VARIABLE_ALIAS"?n=e.variableState.evaluateVariable(e.get,t.id,e.modeContext):t.type==="EXPRESSION"&&(n=XY(t,e)),n}function XY(e,t){let n=jY.find(({expressionFunction:r,resolvedType:o,argTypes:i})=>r===e.value.expressionFunction&&o===e.resolvedType&&e.value.expressionArguments.every((s,a)=>aS(s)===i[a]))?.implementation;return n?n(e.value.expressionArguments,t):(console.warn("expression type not implemented",e.value.expressionFunction),null)}function at(e,t,n,r){return{resolvedType:t,argTypes:n,implementation:r,expressionFunction:e}}var jY=[at(Je.ADDITION,"FLOAT",["FLOAT","FLOAT"],$Y),at(Je.SUBTRACTION,"FLOAT",["FLOAT","FLOAT"],ZY),at(Je.MULTIPLY,"FLOAT",["FLOAT","FLOAT"],JY),at(Je.DIVIDE,"FLOAT",["FLOAT","FLOAT"],qY),at(Je.AND,"BOOLEAN",["BOOLEAN","BOOLEAN"],QY),at(Je.OR,"BOOLEAN",["BOOLEAN","BOOLEAN"],eK),at(Je.NOT,"BOOLEAN",["BOOLEAN"],tK),at(Je.EQUALS,"BOOLEAN",["FLOAT","FLOAT"],nK),at(Je.NOT_EQUAL,"BOOLEAN",["FLOAT","FLOAT"],rK),at(Je.EQUALS,"BOOLEAN",["BOOLEAN","BOOLEAN"],oK),at(Je.NOT_EQUAL,"BOOLEAN",["BOOLEAN","BOOLEAN"],iK),at(Je.EQUALS,"BOOLEAN",["STRING","STRING"],sK),at(Je.NOT_EQUAL,"BOOLEAN",["STRING","STRING"],aK),at(Je.LESS_THAN,"BOOLEAN",["FLOAT","FLOAT"],lK),at(Je.LESS_THAN_OR_EQUAL,"BOOLEAN",["FLOAT","FLOAT"],uK),at(Je.GREATER_THAN,"BOOLEAN",["FLOAT","FLOAT"],cK),at(Je.GREATER_THAN_OR_EQUAL,"BOOLEAN",["FLOAT","FLOAT"],dK),at(Je.STRINGIFY,"STRING",["FLOAT"],fK),at(Je.STRINGIFY,"STRING",["BOOLEAN"],pK),at(Je.STRINGIFY,"STRING",["STRING"],mK),at(Je.ADDITION,"STRING",["STRING","STRING"],EK),at(Je.ADDITION,"STRING",["FLOAT","STRING"],_K),at(Je.ADDITION,"STRING",["STRING","FLOAT"],TK),at(Je.ADDITION,"STRING",["BOOLEAN","STRING"],hK),at(Je.ADDITION,"STRING",["STRING","BOOLEAN"],OK)];function $Y(e,t){return At(e,t,(n,r)=>n+r,"number")}function ZY(e,t){return At(e,t,(n,r)=>n-r,"number")}function JY(e,t){return At(e,t,(n,r)=>n*r,"number")}function qY(e,t){return At(e,t,(n,r)=>r===0?null:n/r,"number")}function QY(e,t){return At(e,t,(n,r)=>n&&r,"boolean")}function eK(e,t){return At(e,t,(n,r)=>n||r,"boolean")}function tK(e,t){let n=To(t,e[0]);return typeof n!="boolean"?RE(n,"boolean"):!n}function nK(e,t){return At(e,t,(n,r)=>n===r,"number")}function rK(e,t){return At(e,t,(n,r)=>n!==r,"number")}function oK(e,t){return At(e,t,(n,r)=>n===r,"boolean")}function iK(e,t){return At(e,t,(n,r)=>n!==r,"boolean")}function sK(e,t){return At(e,t,(n,r)=>n===r,"string")}function aK(e,t){return At(e,t,(n,r)=>n!==r,"string")}function lK(e,t){return At(e,t,(n,r)=>n<r,"number")}function uK(e,t){return At(e,t,(n,r)=>n<=r,"number")}function cK(e,t){return At(e,t,(n,r)=>n>r,"number")}function dK(e,t){return At(e,t,(n,r)=>n>=r,"number")}function iS(e){return Math.ceil(e)===e?String(e):e.toFixed(2)}function fK(e,t){return sS(e,t,n=>iS(n),"number")}function pK(e,t){return sS(e,t,n=>String(n),"boolean")}function mK(e,t){return sS(e,t,n=>n,"string")}function EK(e,t){return At(e,t,(n,r)=>n+r,"string")}function _K(e,t){return At(e,t,(n,r)=>iS(n)+r,"number","string")}function TK(e,t){return At(e,t,(n,r)=>n+iS(r),"string","number")}function hK(e,t){return At(e,t,(n,r)=>String(n)+r,"boolean","string")}function OK(e,t){return At(e,t,(n,r)=>n+String(r),"string","boolean")}function sS(e,t,n,r){let o=To(t,e[0]);return typeof o!==r?RE(o,r):n(o)}function At(e,t,n,r,o){let i=To(t,e[0]),s=To(t,e[1]);return typeof i!==r?RE(i,r):typeof s!==(o??r)?RE(s,o??r):n(i,s)}function RE(e,t){return console.warn(`Expected variable of type ${t}, but got variable ${JSON.stringify(e)} of type ${typeof e}`),null}function aS(e){let t=typeof e;if(t==="boolean")return"BOOLEAN";if(t==="number")return"FLOAT";if(t==="string")return"STRING";if(typeof e=="object"){if("image"in e)return"IMAGE";if("r"in e)return"COLOR";if(e.type==="EXPRESSION"||e.type==="VARIABLE_ALIAS")return e.resolvedType||null}return null}function Bu(e){switch(e.type){case Kr.BOOLEAN:case Kr.FLOAT:case Kr.STRING:case Kr.COLOR:return e.value;case Kr.ALIAS:return{type:"VARIABLE_ALIAS",id:e.value,resolvedType:tD(e.resolvedType)};case Kr.EXPRESSION:return{type:"EXPRESSION",value:{expressionFunction:e.value.expressionFunction,expressionArguments:e.value.expressionArguments.map(t=>Bu(t))},resolvedType:tD(e.resolvedType)};default:return null}}function tD(e){return e===0?"BOOLEAN":e===1?"FLOAT":e===2?"STRING":e===3?"COLOR":null}var Si,gK=(Si=class{activeHoverRects=new Map;hoverRectCounter=0;constructor(){}static getInstance(){}showHoverTargetRectangle(t,n){let r=`hover-debug-rect-${this.hoverRectCounter++}`,o=document.createElement("div");o.style.position="fixed",o.style.left=`${t.left}px`,o.style.top=`${t.top}px`,o.style.width=`${t.width}px`,o.style.height=`${t.height}px`,o.style.border=`2px solid ${n||"red"}`,o.style.pointerEvents="none",o.style.zIndex="9999",o.style.opacity="0.5",o.style.transition="opacity 200ms ease-out",document.body.appendChild(o);let i=window.setTimeout(()=>{o.style.opacity="0",window.setTimeout(()=>{document.body.removeChild(o),this.activeHoverRects.delete(r)},200)},200);return this.activeHoverRects.set(r,{id:r,element:o,timeoutId:i}),r}},Po(Si,"instance"),Si),AE=()=>gK.getInstance();var lS=e=>!1,ho=e=>{if(!lS(e))return;let t=e.renderOptions.testFlags?.animationProgress??.5;return{ease:()=>t,onAnimationComplete:()=>{}}},IK=["transitionToVisible","transitionToExit","transitionToAndFromHover","transitionToAndFromPress","transitionToAndFromFocus","transitionBasedOnScrollDirection","scrollTransformTransition"],nD=(e,t)=>{let n=ho(e);if(!n)return;let r={ease:n.ease,duration:1e4};IK.forEach(o=>{o in t&&t[o]!==void 0&&(t[o]=r)}
8079)};var rD=new Set(["vectorNetworkBlob","version"]);function Ue(e,t,n=!1,r=!1,o=!1){if(e===t||r&&(Array.isArray(e)&&e.length===0&&t===void 0||Array.isArray(t)&&t.length===0&&e===void 0||!e&&!t))return!0;let i=typeof e;if(typeof t!==i)return!1;if(i==="number")return Number.isNaN(e)||Number.isNaN(t)?r:n?!0:r?e-t<.01&&e-t>-.01:e===t;if(i!=="object")return e===t;if(e===null!=(t===null))return!1;if(e===null)return!0;if(Array.isArray(e)!==Array.isArray(t))return!1;if(Array.isArray(e))return e.length===t.length&&e.every((l,u)=>Ue(l,t[u],n,r,o));let s=Object.keys(e),a=Object.keys(t);return o&&(s=s.filter(l=>e[l]!==void 0),a=a.filter(l=>t[l]!==void 0)),s.length!==a.length||(r&&(s=s.filter(l=>!rD.has(l)),a=a.filter(l=>!rD.has(l))),s.sort(),a.sort(),!s.every((l,u)=>l===a[u]))?!1:s.every(l=>Ue(e[l],t[l],n,r,o))}var bs=v(W());var ee=function(e){return e.LAYOUT="layout",e.INSTANCE_SUBTREE="instanceSubtree",e.NONE="none",e}({});function SK(e){let t=[...e];if(!e.length)return t;if(e[0].position!==0){let n={...e[e.length-1]};n.position-=1,t.unshift(n)}if(e[e.length-1].position!==1){let n={...e[0]};n.position+=1,t.push(n)}return t}function RK(e,t){let n=mi({stops:SK(e.gradientStops),epsilon:.01,recursionLimit:5,targetInterpolation:pi,actualInterpolation:uE});return` 8080 <div 8081 xmlns='http://www.w3.org/1999/xhtml' 8082 style=' 8083 background-image: conic-gradient( 8084 from 90deg, 8085 ${fE(n,t)} 8086 ); 8087 opacity:${e.opacity??1}; 8088 height: 100%; 8089 width: 100%; 8090 '></div> 8091 `}function AK(e){let{size:t,paint:n,renderOptions:r}=e,{uvToUnitGradient:o,unitGradientToShape:i}=Ei({size:t,gradientTransform:n.gradientTransform}),s=pE(o),a=Math.max(s.x,s.y);return` 8092 <svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 ${ve(t.width)} ${ve(t.height)}' preserveAspectRatio='none'> 8093 <g transform='${_s(i)}'> 8094 <foreignObject x='${ve(-a)}' y='${ve(-a)}' width='${ve(2*a)}' height='${ve(2*a)}'> 8095 ${RK(n,r)} 8096 </foreignObject> 8097 </g> 8098 </svg> 8099 `}var Uu=class{renderOptions;paint;size;constructor(t,n=Vt,r,o){this.renderOptions=o,this.paint=t,this.size=r}get value(){let t=AK({size:this.size,paint:this.paint,renderOptions:this.renderOptions});return Ts(t)}equals(t){return this.value===t.value}};function NK(e){let{size:t,paint:n}=e,r=mi({stops:n.gradientStops.map(a=>({...a})),epsilon:.01,recursionLimit:5,targetInterpolation:pi,actualInterpolation:Ru}),{uvToUnitGradient:o,unitGradientToShape:i}=Ei({size:t,gradientTransform:n.gradientTransform}),s=pE(o);return` 8100 <svg viewBox='0 0 ${ve(t.width)} ${ve(t.height)}' xmlns='http://www.w3.org/2000/svg' preserveAspectRatio='none'> 8101 <g transform='${_s(i)}' opacity='${n.opacity??1}'> 8102 <rect height='${ve(s.y)}' width='${ve(s.x)}' fill='url(#grad)' id='quad' shape-rendering='crispEdges' /> 8103 <use href='#quad' transform='scale(1 -1)' /> 8104 <use href='#quad' transform='scale(-1 1)' /> 8105 <use href='#quad' transform='scale(-1 -1)' /> 8106 </g> 8107 <defs> 8108 <linearGradient id='grad' gradientUnits='userSpaceOnUse' x2='${.5*Ht}' y2='${.5*Ht}'> 8109 ${Au(r)} 8110 </linearGradient> 8111 </defs> 8112 </svg> 8113 `}var Vu=class{paint;size;constructor(t,n=Vt,r){this.size=r,this.paint=t}get value(){let t=NK({size:this.size,paint:this.paint});return Ts(t)}equals(t){return this.value===t.value}};var Hu=class{paint;size;constructor(t,n=Vt,r){this.paint=t,this.size=r}get value(){let t=mi({stops:this.paint.gradientStops.map(o=>({...o})),epsilon:.01,recursionLimit:5,targetInterpolation:pi,actualInterpolation:Ru}),{unitGradientToShape:n}=Ei({size:this.size,gradientTransform:this.paint.gradientTransform}),r=` 8114 <svg viewBox='0 0 ${ve(this.size.width)} ${ve(this.size.height)}' xmlns='http://www.w3.org/2000/svg' preserveAspectRatio='none'> 8115 <rect x='0' y='0' height='100%' width='100%' fill='url(#grad)' opacity='${this.paint.opacity??1}' /> 8116 <defs> 8117 <radialGradient id='grad' gradientUnits='userSpaceOnUse' cx='0' cy='0' r='${Ht}' gradientTransform='${_s(n)}'> 8118 ${Au(t)} 8119 </radialGradient> 8120 </defs> 8121 </svg> 8122 `;return Ts(r)}equals(t){return this.value===t.value}};function NE(e,t){return e instanceof _i||e instanceof Hu||e instanceof Uu||e instanceof Vu||e instanceof Q?e.value:e instanceof Y?e.toStyleValue({forTailwind:t}):e}var rn=1e-4;function Ri(e){return typeof structuredClone=="function"?structuredClone(e):JSON.parse(JSON.stringify(e))}function Ve(e,t,n=1e-6){return Math.abs(e-t)<n}function bE(e){return Object.freeze(e)}function uS(e){return e.type==="WEBPAGE"}function Wt(e,t){if(e===void 0)return t;let n=ff(t),r=ff(e);return r.multiply(n),xt(YC(r))}function xt(e){return[[Tt(e[0][0]),Tt(e[0][1]),Tt(e[0][2])],[Tt(e[1][0]),Tt(e[1][1]),Tt(e[1][2])]]}function zn(e){return`${x(e*100,2)}%`}var yE=[[1,0,0],[0,1,0]];function zr(e){if(e instanceof Q||!e)return yE;let n=/matrix\((.*)\)/.exec(e);if(!n)return yE;let r=n[1].split(",").map(o=>parseFloat(o));return r.length!==6?yE:[[r[0],r[2],r[4]],[r[1],r[3],r[5]]]}function yf(e){let t=e.unit==="PERCENT"?Tt(e.value,.1):e.value,n=x(t,2);return n===0?"0":`${n}${e.unit==="PERCENT"?"%":"px"}`}function za(){}var oD=()=>Promise.resolve();function LE(e,t,n){let r=e(t.roots).map(i=>
8122t.nodeById.get(i)),o=[];return n&&(o=r.filter(i=>i.name===n)),o.length>0?o:r}function iD(e){return"children"in e&&!!e.children&&e.children.length>0}function Wu(e){return e.optimizeForTailwindConversion}function sD(e){let{background:t,backgroundColor:n,backgroundImage:r,backgroundPosition:o,backgroundSize:i,border:s,borderBottom:a,borderBottomColor:l,borderBottomLeftRadius:u,borderBottomRightRadius:c,borderBottomWidth:d,borderColor:f,borderEndEndRadius:p,borderEndStartRadius:_,borderLeft:T,borderLeftColor:h,borderLeftWidth:m,borderRadius:E,borderRight:O,borderRightColor:g,borderRightWidth:I,borderStartEndRadius:S,borderStartStartRadius:A,borderStyle:R,borderTop:y,borderTopColor:b,borderTopLeftRadius:L,borderTopRightRadius:D,borderTopWidth:F,borderWidth:U,boxShadow:N,caretColor:K,clipPath:C,color:M,filter:P,font:z,fontSize:Ee,fontSizeAdjust:pe,fontStretch:ye,fontWeight:Le,fontVariationSettings:We,letterSpacing:De,lineHeight:ae,opacity:Oe,outline:oe,outlineColor:ft,outlineWidth:et,textDecoration:he,textDecorationColor:Ge,textDecorationThickness:Ye,textEmphasis:ce,textEmphasisColor:tt,textShadow:pn,visibility:Ft,wordSpacing:Cr,...sr}=e;return{motionStyles:{background:t,backgroundColor:n,backgroundImage:r,backgroundPosition:o,backgroundSize:i,border:s,borderBottom:a,borderBottomColor:l,borderBottomLeftRadius:u,borderBottomRightRadius:c,borderBottomWidth:d,borderColor:f,borderEndEndRadius:p,borderEndStartRadius:_,borderLeft:T,borderLeftColor:h,borderLeftWidth:m,borderRadius:E,borderRight:O,borderRightColor:g,borderRightWidth:I,borderStartEndRadius:S,borderStartStartRadius:A,borderStyle:R,borderTop:y,borderTopColor:b,borderTopLeftRadius:L,borderTopRightRadius:D,borderTopWidth:F,borderWidth:U,boxShadow:N,caretColor:K,clipPath:C,color:M,filter:P,font:z,fontSize:Ee,fontSizeAdjust:pe,fontStretch:ye,fontWeight:Le,fontVariationSettings:We,letterSpacing:De,lineHeight:ae,opacity:Oe,outline:oe,outlineColor:ft,outlineWidth:et,textDecoration:he,textDecorationColor:Ge,textDecorationThickness:Ye,textEmphasis:ce,textEmphasisColor:tt,textShadow:pn,visibility:Ft,wordSpacing:Cr},cssStyles:sr}}var cS=-1,Ku=(e,t,n,r,o,i)=>{if(e===ee.NONE)return{motionTransitionProps:void 0,cssStyles:n};let s=e===ee.INSTANCE_SUBTREE,{motionStyles:a,cssStyles:l}=s?sD(n):{motionStyles:{},cssStyles:n},u=aD(a),{correctlyTypedStyles:c,incorrectlyTypedStyles:d}=lD(u),f=s?{[be.VISIBLE_SMART_ANIMATE]:_=>Yu(c,t,_,o),[be.HIDDEN_SMART_ANIMATE]:_=>Yu(c,0,_,o),...r}:r;return{motionTransitionProps:{...s?{animate:be.VISIBLE_SMART_ANIMATE,exit:be.HIDDEN_SMART_ANIMATE,variants:f}:{},...o?{...s?{initial:be.HIDDEN_SMART_ANIMATE,onAnimationComplete:i}:{},onLayoutAnimationComplete:i,transition:{duration:o.durationSeconds,...o.motionAnimationData}}:{transition:{layout:{duration:0}}}},cssStyles:{...l,...d}}};function Yu(e,t,n,r){let o=n?.durationSeconds??r?.durationSeconds??0,i=n?.motionAnimationData??r?.motionAnimationData??{},s={};for(let[l,u]of Object.entries(e))s[l]=NE(u,!1);let a=n?.perPropertyTransitions??r?.perPropertyTransitions;return{...s,opacity:t,transition:a?{duration:o,...i,...a}:{duration:o,...i}}}function aD(e){let t,n={...e};for(t in n){let r=n[t];r==null&&delete n[t]}return n}function lD(e){let{mask:t,alignmentBaseline:n,fillRule:r,strokeLinecap:o,strokeLinejoin:i,...s}=e;return{correctlyTypedStyles:s,incorrectlyTypedStyles:{mask:t,alignmentBaseline:n,fillRule:r,strokeLinecap:o,strokeLinejoin:i}}}function Ai(e,t,n,r){return e!==ee.NONE?{layout:r?"position":!0,layoutDependency:t?.id??cS,transformTemplate:n?zu(n):void 0}:void 0}function uD(e,t){return{mode:"popLayout",custom:e,onExitComplete:t}}function on(e){return e?.onTransitionEnd??za}function cD(e,t,n,r){if(n)return ee.NONE;let o=r?.smartAnimateType??ee.NONE;return e?ee.INSTANCE_SUBTREE:o!==ee.NONE?o:t?ee.LAYOUT:ee.NONE}var Wo=(e,t)=>Boolean(e===ee.INSTANCE_SUBTREE&&t),dD=(e,t,n,r)=>{let o=aD(e),{correctlyTypedStyles:i}=lD(o),s={[be.VISIBLE_SMART_ANIMATE]:l=>Yu(i,1,l,n),[be.HIDDEN_SMART_ANIMATE]:l=>Yu({},0,l,n)};return{motionTransitionProps:{animate:t?be.VISIBLE_SMART_ANIMATE:"",exit:be.HIDDEN_SMART_ANIMATE,variants:s,...n?{initial:be.HIDDEN_SMART_ANIMATE,onAnimationComplete:r,onLayoutAnimationComplete:r,transition:{duration:n.durationSeconds,...n.motionAnimationData}}:{transition:{duration:0}}},cssStyles:{}}},fD=(e,t,n)=>{if(e===ee.NONE)return{motionTransitionProps:void 0,cssStyles:{}};let r=e===ee.INSTANCE_SUBTREE,o={[be.VISIBLE_SMART_ANIMATE]:s=>Yu({},1,s,t),[be.HIDDEN_SMART_ANIMATE]:s=>Yu({},0,s,t)};return{motionTransitionProps:{...r?{animate:be.VISIBLE_SMART_ANIMATE,exit:be.HIDDEN_SMART_ANIMATE,variants:o}:{},...t?{...r?{initial:be.HIDDEN_SMART_ANIMATE,onAnimationComplete:n}:{},onLayoutAnimationComplete:n,transition:{duration:t.durationSeconds,...t.motionAnimationData}}:{transition:{duration:0}}},cssStyles:{}}};var dS={[gt.NORMAL]:void 0,[gt.PASS_THROUGH]:void 0,[gt.DARKEN]:"darken",[gt.MULTIPLY]:"multiply",[gt.LINEAR_BURN]:void 0,[gt.COLOR_BURN]:"color-burn",[gt.LIGHTEN]:"lighten",[gt.SCREEN]:"screen",[gt.LINEAR_DODGE]:"plus-lighter",[gt.COLOR_DODGE]:"color-dodge",[gt.OVERLAY]:"overlay",[gt.SOFT_LIGHT]:"soft-light",[gt.HARD_LIGHT]:"hard-light",[gt.DIFFERENCE]:"difference",[gt.EXCLUSION]:"exclusion",[gt.HUE]:"hue",[gt.SATURATION]:"saturation",[gt.COLOR]:"color",[gt.LUMINOSITY]:"luminosity"};function Xu(e){if(e)return dS[e]}var fS=class{paint;constructor(t){this.paint=t}},yK=e=>{let t=["backgroundSize","backgroundPosition","backgroundRepeat"],n={backgroundImage:"none",backgroundSize:"auto auto",backgroundPosition:"top left",backgroundRepeat:"repeat"},r={};t.forEach(s=>{let a=e.map(l=>l[s]);if(a.some(l=>l!==void 0)){let l=a.map(c=>c??n[s]),u=l.every(c=>c===l[0]);r[s]=u?l[0]:l.join(",")}});let o=e.map(s=>s.backgroundImage);if(o.some(s=>
8122s!==void 0)){let s=o.map(l=>l===void 0?n.backgroundImage:l instanceof _i||l instanceof Hu||l instanceof Uu||l instanceof Vu?l.value:l),a=s.every(l=>l===s[0]);r.backgroundImage=a?o[0]:s.join(", ")}let i=e.find(s=>s.backgroundColor)?.backgroundColor;return i!==void 0&&(r.backgroundColor=i),r},bK=(e,t)=>{if(e.hasBlendMode||t.hasBlendMode||e.useImageTag||t.useImageTag||e.isCustomFill||t.isCustomFill)return!1;let n=e.uniqueTypes.has("IMAGE"),r=t.uniqueTypes.has("IMAGE");if(n!==r&&(e.opacity!==void 0||t.opacity!==void 0))return!1;let o=e.uniqueTypes.size===1&&n,i=t.uniqueTypes.size===1&&r;return!(o&&i&&e.opacity!==t.opacity)};function CE(e=[],t,n,r,o){if(!e.length)return[];let i=[];return e.filter(a=>a.visible!==!1).forEach(a=>{let l=CK(a,t,n,r,o);if(!l)return;let u=a.blendMode&&dS[a.blendMode],c=LK(a),d={hasBlendMode:!!u,useImageTag:pD(l),isCustomFill:l instanceof fS,uniqueTypes:new Set([a.type]),opacity:c},f=i[i.length-1],p=f?.comparator;!!f&&p&&bK(p,d)?(f.backgrounds.push(l),p.uniqueTypes.add(a.type)):i.push({backgrounds:[l],blendMode:u,opacity:c,comparator:d})}),i.map(({backgrounds:a,blendMode:l,opacity:u})=>{if(a[0]instanceof fS)return{backgroundStyles:{},needsBackgroundDiv:!0,customFill:a[0].paint};let{optimizeForTailwindConversion:c}=o.renderOptions,d=a.length===1&&pD(a[0]),f,p,_,T=a.find(m=>m instanceof mD);if(T){a.length>1&&console.warn("Multiple video fills found in background group. Only the first video fill will be used.");let m=T.value;f=m.styles,_=m.videoProps}else if(d){let m=a[0].value;f=m.styles,p=m.imageProps}else{let m=a.reverse().map((E,O)=>{if(E instanceof Dt&&a.length>1&&(c||O!==a.length-1)&&(E=_i.fromColor(E,o.renderOptions)),E instanceof pS)return E.value.styles;if(E instanceof _i||E instanceof Hu||E instanceof Uu||E instanceof Vu)return{backgroundImage:E};if(E instanceof Dt)return{backgroundColor:E.value};throw new te("Unsupported background type")});f=yK(m)}let h=!!p||!!_||u!==void 0||l!==void 0&&Boolean(r.hasChildren);return l!==void 0&&(f.mixBlendMode=l),u!==void 0&&(f.opacity=u),{backgroundStyles:f,imageProps:p,videoProps:_,needsBackgroundDiv:h}})}function LK(e){if((e.type==="VIDEO"||e.type==="IMAGE")&&e.opacity!==void 0&&e.opacity!==1)return x(e.opacity)}function CK(e,t,n,r,o){let{type:i}=e,{renderOptions:s}=o,{shouldOutputVariables:a,codeSyntaxLanguage:l}=s,u=Vt;if(i==="PATTERN")return null;if(i==="CUSTOM")return!s.shouldOutputCustomEffects||!e.customEffectId||!e.visible?null:new fS(e);if(i==="SOLID")return e.color?new Dt(e.color,s,e.opacity,u,e.boundVariables?.color?.resolvedName,l&&e.boundVariables?.color?.resolvedCodeSyntax?.[l]):null;if(i==="VIDEO")return DK(e,t,r);if(i==="IMAGE")return PK(e,t,r.disableImageTag,o);if(Pu(e)){let{gradientStops:c,transform:d,opacity:f}=e,p=c[0]?.color,_=c[0]?.boundVariables?.color?.resolvedName;if(p&&c.every(m=>new Dt(m.color,s).equals(new Dt(p,s)))&&(!a||c.every(m=>m.boundVariables?.color?.resolvedName===_)))return new Dt(p,s,f,u,l&&c[0]?.boundVariables?.color?.resolvedCodeSyntax?.[l]);let T={gradientTransform:d,gradientStops:c,opacity:f},{preferCssGradients:h}=o.renderOptions;switch(i){case"GRADIENT_LINEAR":return new _i(T,u,n,h?La.CSS:La.SVG,s);case"GRADIENT_RADIAL":return new Hu(T,u,n);case"GRADIENT_ANGULAR":return new Uu(T,u,n,s);case"GRADIENT_DIAMOND":return new Vu(T,u,n);default:xe(i)}}throw new te(`Unknown paint type: ${i}`)}var pS=class{paint;image;disableImageTag;websiteContext;constructor(t,n,r,o){this.paint=t,this.image=n,this.disableImageTag=r,this.websiteContext=o}useImageTag(){return this.paint.scaleMode!=="TILE"&&!this.disableImageTag}get value(){let{paint:t,image:n}=this,{disableImageOptimization:r}=this.websiteContext.renderOptions,o=this.websiteContext.getAssetURL,s={backgroundImage:`url("${o(n.url)}")`,backgroundRepeat:"no-repeat"},a;switch(t.scaleMode){case"FILL":s.backgroundSize="cover",s.backgroundPosition="center";break;case"FIT":s.backgroundSize="contain",s.backgroundPosition="center";break;case"STRETCH":{let{imageTransform:l}=t;if(!l)s.backgroundSize="100% 100%",s.backgroundPosition="bottom";else{let c=ED(l),{widthPercent:d,heightPercent:f}=c;if(this.useImageTag())a=c;else{s.backgroundSize=`${zn(d)} ${zn(f)}`;let p=l[0][0]===1?0:-l[0][2]/(l[0][0]-1),_=l[1][1]===1?0:-l[1][2]/(l[1][1]-1);s.backgroundPosition=`${zn(p)} ${zn(_)}`}}break}case"TILE":{let l=t.scalingFactor||1,u={width:n.size.x||100,height:n.size.y||100},c=u.width*l,d=u.height*l,f=`${c}px`,p=`${d}px`;if(!r){let _=Math.min(u.width,c*3),T=`url(${o(n.url,{width:c})}) 1x`;for(let h=2;c*h<=_;h++)T+=`, url(${o(n.url,{width:c*h})}) ${h}x`;s.backgroundImage=`image-set(${T})`}s.backgroundSize=t.rotation%360===0||t.rotation%360===180?`${f} ${p}`:`${p} ${f}`,s.backgroundPosition="top left",delete s.backgroundRepeat;break}default:xe(t.scaleMode)}if(this.useImageTag()){let l={url:n.url,size:n.size,cropDivInfo:a},{backgroundImage:u,backgroundRepeat:c,backgroundSize:d,backgroundPosition:f,...p}=s,_={...p};return f!=="center"&&(_.objectPosition=f),d!=="100% 100%"&&(_.objectFit=d),{styles:_,imageProps:l}}return{styles:s}}};function PE(e){return e.gifRef||e.imageRef}var PK=(e,t,n,r)=>{let o=t?.[PE(e)];return o.type,new pS(e,o,n,r)},pD=e=>e instanceof pS&&e.useImageTag(),mD=class{paint;video;isDecorative;constructor(t,n,r){this.paint=t,this.video=n,this.isDecorative=r.isDecorativeImage||!1}get value(){let{paint:t,video:n}=this,r={},o;switch(t.scaleMode){case"FIT":r.objectFit="contain";break;case"FILL":r.objectFit="cover";break;case"STRETCH":{let{imageTransform:s}=t;s?o=ED(s):r.objectFit="contain";break}case"TILE":break}let i={url:n.url,hash:t.videoRef,autoplay:t.autoplay??!1,mediaLoop:t.mediaLoop??!1,muted:t.muted??!1,showControls:t.showControls??!1,cropDivInfo:o,isDecorative:this.isDecorative};return{styles:r,videoProps:i}}},DK=(e,t,n)=>{let r=t?.[e.videoRef];return r.type,new mD(e,r,n)},ED=e=>{let t=1/(e[0][0]||1),n=1/(e[1][1]||1),r=-e[0][2]/(e[0][0]||1),o=-e[1][2]/(e[1][1]||1);return{widthPercent:t,heightPercent:n,leftPercent:r,topPercent:o}};function mS(e){let t="fills"in e?e.fills:void 0;return t!=null&&t.some(n=>n.visible!==!1&&n.opacity!==0&&(n.type!=="SOLID"||n.color.a!==0))}function TD(e,t){let n="effects"in e?e.effects??[]:[],r=t.length===0?n:[...t,...n];if(mS(e))return{ownEffects:r,childEffects:[]};let o=[],i=[];for(let s of r)s.type==="INNER_SHADOW"?i.push(s):o.push(s);return{ownEffects:o,childEffects:i}}function DE(e){return!("effects"in e)||!e.effects?[]:e.effects.filter(t=>t.type==="CUSTOM"&&t.visible!==!1&&!!t.customEffectId)}function vK(e){return DE(e).length>0}var _D=new Set(["DROP_SHADOW","LAYER_BLUR","BACKGROUND_BLUR"]);function Rs(e,t){let n="effects"in e?e.effects??[]:[];return vK(e)?t?n.filter(r=>_D.has(r.type)):n.filter(r=>!_D.has(r.type)):(ge(!t,"custom effect wrapper only exists when custom effect exists"),n)}function ES(e,t){return TD(e,t??[]).ownEffects}function bf(e,t){let n=TD(e,t??[]).childEffects;return n.length>0?n:void 0}
8122function vE(e,t=[],n){return{boxShadow:xK(e,t,n),filter:SD(t,n).filter,backdropFilter:hS(t,n).backdropFilter}}function xK(e,t,n){return[...t].reverse().map(o=>{if(o.type==="DROP_SHADOW")return hD(e,[o],n).boxShadow;if(o.type==="INNER_SHADOW")return TS(e,[o],n).boxShadow}).filter(o=>!!o).join(",")||void 0}function hD(e,t,n){let{codeSyntaxLanguage:r,shouldOutputVariables:o}=n;return{boxShadow:[...t].reverse().map(s=>{if(s.type!=="DROP_SHADOW")return;let a=`${x(s.offset.x)}px`,l=`${x(s.offset.y)}px`,u=`${x(s.radius)}px`,c=`${x(s.spread||0)}px`,d=Dt.fromRGBA(s.color,n,s.boundVariables?.color?.resolvedName,r&&s.boundVariables?.color?.resolvedCodeSyntax?.[r]).value;return o&&(a=le(r&&s.boundVariables?.offsetX?.resolvedCodeSyntax?.[r],s.boundVariables?.offsetX?.resolvedName,a)??a,l=le(r&&s.boundVariables?.offsetY?.resolvedCodeSyntax?.[r],s.boundVariables?.offsetY?.resolvedName,l)??l,u=le(r&&s.boundVariables?.radius?.resolvedCodeSyntax?.[r],s.boundVariables?.radius?.resolvedName,u)??u,c=le(r&&s.boundVariables?.spread?.resolvedCodeSyntax?.[r],s.boundVariables?.spread?.resolvedName,c)??c),_S(e)||(c="0px"),`${a} ${l} ${u} ${c} ${d}`}).filter(s=>!!s).join(",")||void 0}}var OD=2;function MK(e){return e/OD}function GK(e,t){let{codeSyntaxLanguage:n,shouldOutputVariables:r}=t;return{filter:[...e].reverse().map(s=>{if(s.type!=="DROP_SHADOW")return;let a=`${x(s.offset.x)}px`,l=`${x(s.offset.y)}px`,u=`${x(MK(s.radius))}px`,c=`${x(s.radius)}px`,d=Dt.fromRGBA(s.color,t,s.boundVariables?.color?.resolvedName,n&&s.boundVariables?.color?.resolvedCodeSyntax?.[n]).value;return r&&(a=le(n&&s.boundVariables?.offsetX?.resolvedCodeSyntax?.[n],s.boundVariables?.offsetX?.resolvedName,a)??a,l=le(n&&s.boundVariables?.offsetY?.resolvedCodeSyntax?.[n],s.boundVariables?.offsetY?.resolvedName,l)??l,u=cE(n&&s.boundVariables?.radius?.resolvedCodeSyntax?.[n],s.boundVariables?.radius?.resolvedName,c)?.divide(Y.number(OD)).toString({forTailwind:t.optimizeForTailwindConversion})??u),`drop-shadow(${a} ${l} ${u} ${d})`}).filter(s=>!!s).join(" ")||void 0}}function kK(e,t){let n=t.filter(p=>p.type==="DROP_SHADOW");if(n.length===0)return!1;let r=mS(e),o="fills"in e?e.fills:void 0,i=r&&o!=null&&!o.some(p=>p.visible!==!1&&p.opacity===1&&(p.type==="SOLID"&&p.color.a===1||Pu(p)&&p.gradientStops.every(_=>_.color.a===1))),s="strokes"in e?e.strokes:void 0,a=s!=null&&s.some(p=>p.visible!==!1&&p.opacity!==0&&(p.type!=="SOLID"||p.color.a!==0)),l=("clipsContent"in e?!e.clipsContent:!1)&&e.materializedChildNodeProps?.length,u=n.some(p=>p.spread!==0),c=n[0].color,d=!n.some(p=>!Ve(p.color.r,c.r)||!Ve(p.color.g,c.g)||!Ve(p.color.b,c.b)),f=n.every(p=>!p.showShadowBehindNode);return r&&!l||(!r&&a||i)&&f?!1:!!(!u&&d)}function gD(e,t,n){let r=SD(t,n);if(kK(e,t)){let o=GK(t,n).filter,i=[r?.filter,o].filter(Boolean);return{boxShadow:void 0,filter:i.length>0?i.join(" "):void 0}}else return{boxShadow:hD(e,t,n).boxShadow,filter:r?.filter}}function _S(e){return e.type==="RECTANGLE"?!0:e.type==="FRAME"||e.type==="SLOT"?e.clipsContent&&mS(e):!1}function FK(e){return e.some(t=>(t.type==="DROP_SHADOW"||t.type==="INNER_SHADOW")&&t.spread!==0)}function ID(e){"effects"in e&&e.effects&&FK(e.effects)&&!_S(e)&&(e.effects=e.effects.map(t=>t.type==="DROP_SHADOW"||t.type==="INNER_SHADOW"?{...t,spread:0}:t))}function TS(e,t,n){let{codeSyntaxLanguage:r,shouldOutputVariables:o}=n;return{boxShadow:[...t].reverse().map(s=>{if(s.type!=="INNER_SHADOW")return;let a=`${x(s.offset.x)}px`,l=`${x(s.offset.y)}px`,u=`${x(s.radius)}px`,c=`${x(s.spread||0)}px`,d=Dt.fromRGBA(s.color,n,s.boundVariables?.color?.resolvedName,r&&s.boundVariables?.color?.resolvedCodeSyntax?.[r]).value;return o&&(a=le(r&&s.boundVariables?.offsetX?.resolvedCodeSyntax?.[r],s.boundVariables?.offsetX?.resolvedName,a)??a,l=le(r&&s.boundVariables?.offsetY?.resolvedCodeSyntax?.[r],s.boundVariables?.offsetY?.resolvedName,l)??l,u=le(r&&s.boundVariables?.radius?.resolvedCodeSyntax?.[r],s.boundVariables?.radius?.resolvedName,u)??u,c=le(r&&s.boundVariables?.spread?.resolvedCodeSyntax?.[r],s.boundVariables?.spread?.resolvedName,c)??c),_S(e)||(c="0px"),`inset ${a} ${l} ${u} ${c} ${d}`}).filter(s=>!!s).join(",")||void 0}}function SD(e,t){let{shouldOutputVariables:n,codeSyntaxLanguage:r}=t,o=e.find(s=>
8122s.type==="LAYER_BLUR");if(!o)return{filter:void 0};let i=`${x(o.radius/2)}px`;if(n){let s=le(r&&o.boundVariables?.radius?.resolvedCodeSyntax?.[r],o.boundVariables?.radius?.resolvedName,i);s&&(i=s)}return{filter:`blur(${i})`}}function hS(e,t){let{shouldOutputVariables:n,codeSyntaxLanguage:r}=t,o=e.find(s=>s.type==="BACKGROUND_BLUR");if(!o)return{backdropFilter:void 0};let i=`${x(o.radius/2)}px`;if(n){let s=le(r&&o.boundVariables?.radius?.resolvedCodeSyntax?.[r],o.boundVariables?.radius?.resolvedName,i);s&&(i=s)}return{backdropFilter:`blur(${i})`}}function RD(e=[],t){let{shouldOutputVariables:n,codeSyntaxLanguage:r}=t;return e.reduce((o,i)=>{if(i.type==="INNER_SHADOW"||i.type==="BACKGROUND_BLUR")return o;if(i.type==="DROP_SHADOW"){let s=`${x(i.offset.x)}px`,a=`${x(i.offset.y)}px`,l=`${x(i.radius)}px`,u=Dt.fromRGBA(i.color,t,i.boundVariables?.color?.resolvedName,r&&i.boundVariables?.color?.resolvedCodeSyntax?.[r]).value;n&&(s=le(r&&i.boundVariables?.offsetX?.resolvedCodeSyntax?.[r],i.boundVariables?.offsetX?.resolvedName,s)??s,a=le(r&&i.boundVariables?.offsetY?.resolvedCodeSyntax?.[r],i.boundVariables?.offsetY?.resolvedName,a)??a,l=le(r&&i.boundVariables?.radius?.resolvedCodeSyntax?.[r],i.boundVariables?.radius?.resolvedName,l)??l),o.textShadow=`${o.textShadow?.length?`${o.textShadow},`:""}${s} ${a} ${l} ${u}`}else if(i.type==="LAYER_BLUR"){let s=`${x(i.radius/2)}px`;n&&(s=le(r&&i.boundVariables?.radius?.resolvedCodeSyntax?.[r],i.boundVariables?.radius?.resolvedName,s)??s),o.filter=`blur(${s})`}return o},{})}function AD(e,t,n){let{collectionId:r,itemId:o}=n;ge(r!==void 0,"collectionId is required for CMS binding context"),ge(o!==void 0,"itemId is required for CMS binding context");let i=e.collectionById.get(r);ge(i!==void 0,`collection with id ${r} not found in CMS Data State`);let s=i.itemById[o];ge(s!==void 0,`item with id ${o} not found in CMS Collection ${i.id}`);let a=new Map;s.fields.forEach(u=>{a.set(u.fieldSchemaId,u)});let l=i.fieldSchemas.find(u=>u.role==="slug"||u.type==="slug")?.id;return ge(l!==void 0,`slug field for item id ${o} not found in CMS Collection ${i.id}`),{item:s,fieldsBySchemaId:a,slugFieldSchemaId:l,guidToUrl:t,fieldBindingProperties:n}}function ju(e,t){let n=e.fieldsBySchemaId.get(t.fieldSchemaId);if(n!==void 0)return n.value}function ND(e,t){return e.slugFieldSchemaId===t.fieldSchemaId}function yD(e){let t=new Date(e);return e===""||isNaN(t.getTime())?{formattedValue:e,originalValue:e}:wK(t,e)}function wK(e,t){return{formattedValue:e.toLocaleDateString("en-US",{year:"numeric",month:"long",day:"numeric",hour12:!0,timeZone:"UTC"}),originalValue:t}}function BK(e,t){ge(e!==null,"GUID should not be null");let n=ot(e),r=t.get(n);return ge(r!==void 0,`url not in map for GUID ${n}`),ge(r?.length>0,`url empty for GUID ${n}`),r}function bD(e,t){let n=JSON.parse(e),r=n.guid?BK(n.guid,t):n.url;ge(r!==void 0,"url is undefined");let o=n.guid?"NODE":"URL";return{url:r,type:o}}function LD(e,t){let n=`/${e}`;return{url:t.endsWith(n)&&t!==n?t:`${t}${n}`,type:"NODE"}}function OS(e){let t={type:e.type};return e.type==="NODE"?t.nodeID=e.url:t.url=e.url,t}function CD(e){let t={connectionURL:e.url,connectionType:e.type==="NODE"?"INTERNAL_NODE":"URL"};return t.connectionType==="INTERNAL_NODE"&&(t.navigationType="NAVIGATE"),t}function gS(e,t,n){let r=ju(e,t);if(r!==void 0)return ND(e,t)?(ge(n!==void 0,`baseUrl is undefined for slug field binding on item ${e.item.id}`),LD(r,n)):bD(r,e.guidToUrl)}function UK(e,t,n){if(n.characters){if(e.type==="TEXT")return e.characters=ju(t,n.characters)??"",!0;console.warn(`text binding unsupported for ${e.type} node ${e.id}`)}return!1}function VK(e,t,n){if(n.date)if(e.type==="TEXT"){let r=ju(t,n.date);if(r===void 0)return e.characters="",!0;let o=yD(r);return e.characters=o.formattedValue,!0}else console.warn(`date in text binding unsupported for ${e.type} node ${e.id}`);return!1}function HK(e,t,n){if(n.hyperlink)if(e.type==="TEXT"){let r=gS(t,n.hyperlink,e.style.hyperlink?.nodeID);return r===void 0?(e.style.hyperlink=void 0,!1):(e.style.hyperlink||(e.style.hyperlink={}),Object.assign(e.style.hyperlink,OS(r)),!0)}else console.warn(`hyperlink binding unsupported for ${e.type} node ${e.id}`);return!1}function WK(e,t,n){if(n.richText)if(e.type==="CMS_RICH_TEXT"){let r=ju(t,n.richText);return e.richText=r===void 0?"":r,!0}else console.warn(`rich text binding unsupported for ${e.type} node ${e.id}`);return!1}function YK(e,t){let n=t.fieldBindingProperties.boundCmsVariables;if(!n)return!1;let r=[UK,VK,HK,WK],o=!1;for(let i of r)try{i(e,t,n)&&(o=!0)}catch(s){console.error(`Error applying binding function ${i.name} to node ${e.id}:`,s);continue}return o}function KK(e,t){let n=t.fieldBindingProperties.styleOverrideTableBoundCmsVariables;if(!n||Object.keys(n).length===0)return!1;if(e.type!=="TEXT")return console.warn(`styleOverrideTable hyperlink binding unsupported for ${e.type} node ${e.id}`),!1;let r=!1;for(let[o,i]of Object.entries(n)){let s=e.styleOverrideTable[o];if(i?.hyperlink&&s){let a=gS(t,i.hyperlink,s.hyperlink?.nodeID);if(a===void 0){s.hyperlink=void 0,r=!0;continue}s.hyperlink||(s.hyperlink={}),Object.assign(s.hyperlink,OS(a)),r=!0}}return r}function zK(e,t){let n=t.fieldBindingProperties.interactionsBoundCmsVariables;if(!n||Object.entries(n).length===0)return!1;if(!("interactions"in e))return console.warn(`interactions not defined for hyperlink prototype interaction binding on node ${e.id}`),!1;let r=!1,o=e.interactions??[];for(let i of o)for(let s of i.actions||[]){let a=s.linkParam?.value,l;if(a&&"fieldSchemaId"in a?l=a.fieldSchemaId:s.cmsTarget?.fieldSchemaId&&(l=s.cmsTarget?.fieldSchemaId),!!l){for(let u of n)if(l===u.hyperlink?.fieldSchemaId){let c=gS(t,u.hyperlink,s.c
8122onnectionURL);if(c===void 0){e.interactions?.splice(e.interactions.indexOf(i),1),r=!0;continue}Object.assign(s,CD(c)),r=!0}}}return r}function XK(e,t){let n=t.fieldBindingProperties.fillPaintsBoundCmsVariables;if(!n||Object.entries(n).length===0)return!1;if(!("fills"in e))return console.warn(`fills not defined for image fill binding on node ${e.id}`),!1;let r=!1;for(let o of n){if(!o.boundVariables.image)continue;let i=o.boundVariables.image.fieldSchemaId,s=-1;if(e.fills){for(let c=0;c<e.fills.length;c++)if(e.fills[c]?.imageVar?.value?.fieldSchemaId===i){s=c;break}}if(s===-1){console.warn(`No fill found with fieldSchemaId ${i} for node ${e.id}`);continue}let a=ju(t,o.boundVariables.image);if(a===void 0){s!==-1&&(e.fills?.splice(s,1),r=!0);continue}let u=e.fills[s];if(u){let c=JSON.parse(a);u.imageRef=c.image,e.accessibleLabel=c.altText,r=!0}}return r}function jK(e){return["FRAME","INSTANCE","RECTANGLE","TEXT","CMS_RICH_TEXT"].includes(e)}function PD(e,t,n){if(!jK(e.type)||!t||!("cmsItemFieldBindingProperties"in e)||!e.cmsItemFieldBindingProperties)return!1;if(!e.cmsItemFieldBindingProperties.itemId)return console.error("Missing itemId for bound node",e.id),!1;let r=AD(t,n,e.cmsItemFieldBindingProperties),o=[YK,KK,zK,XK],i=!1;for(let s of o)try{s(e,r)&&(i=!0)}catch(a){console.error(`Error applying binding function ${s.name} to node ${e.id}:`,a);continue}return i}function $K(e){let t=Ri(e);return t.type="CMS_RICH_TEXT",t}function DD(e){return e.type==="TEXT"&&e.cmsItemFieldBindingProperties?.boundCmsVariables?.richText?$K(e):e}var xD=v(_e()),Yo=v(W());var IS=()=>Promise.resolve(),vD=e=>{IS=e},xE=(e,t)=>IS?IS(e,t):Promise.resolve();var Lf=(0,Yo.createContext)({reportError:za,setMaterializationError:za});function MD({children:e,reportError:t}){let n=(0,Yo.useRef)({map:new Map,updatedSinceLastRender:!1});(0,Yo.useEffect)(()=>{let i=setInterval(()=>{n.current.updatedSinceLastRender&&(xE("updateMaterializationErrors",{errors:Array.from(n.current.map.values())}),n.current.updatedSinceLastRender=!1)},100);return()=>clearInterval(i)},[n]);let r=(0,Yo.useCallback)((i,s)=>{let a=n.current;s&&s.errorMessage?(console.error(`New error in ${s.nodeName} (${s.nodeId})`,s.errorMessage),a.map.set(i,s),a.updatedSinceLastRender=!0):a.map.has(i)&&(a.map.delete(i),a.updatedSinceLastRender=!0)},[n]),o=(0,Yo.useMemo)(()=>({reportError:t,setMaterializationError:r}),[t,r]);return(0,xD.jsx)(Lf.Provider,{value:o,children:e})}var SS=v(_e()),As=v(W());var GD=(0,As.createContext)(null),fe=()=>(0,As.useContext)(GD);function RS({websiteData:e,cmsBundleData:t,getCodeComponentURL:n,history:r,getAssetURL:o,getFontURL:i,getVideoURL:s,children:a,env:l,setLocation:u,preloadLocation:c,renderOptions:d,renderElement:f,renderFragment:p,withBaseStyles:_=!0,addHeadTag:T,addBodyScript:h,loadComponentsOverNetwork:m=!1,isFigmake:E=!1,enableMetaTags:O=!1,atomStore:g,globalVariableState:I,inheritedVariantPropertiesCache:S,processedNodesCache:A,computedVariantCache:R,sitesRenderers:y}){let b=Ae(e.siteSettings,{store:g}).labs,L=(0,As.useMemo)(()=>new Map,[]),D=(0,As.useMemo)(()=>new Map,[]),F=(0,As.useMemo)(()=>({websiteData:e,cmsBundleData:t,history:r,getAssetURL:o,getFontURL:i,getVideoURL:s,getCodeComponentURL:n,env:l,setLocation:u,preloadLocation:c,withBaseStyles:_,addHeadTag:T,addBodyScript:h,loadComponentsOverNetwork:m,labs:b,isFigmake:E,enableMetaTags:O,renderOptions:d,atomStore:g,fontsByStyleElId:L,globalVariableState:I,inheritedVariantPropertiesCache:S,processedNodesCache:A,computedVariantCache:R,instanceSwapComponentCache:D,renderElement:f,renderFragment:p,sitesRenderers:y}),[e,t,r,o,i,s,n,l,u,c,_,T,h,m,O,b,E,d,g,L,I,S,A,R,D,f,p,y]);return(0,SS.jsx)(GC,{store:g,children:(0,SS.jsx)(GD.Provider,{value:F,children:a})})}var $a=v(W());var FD=v(W());var Xr=class{map;fallback;disableErrors;constructor(t,n){this.map=new Map,this.fallback=t,this.disableErrors=n??!1}get(t,n=!1){return this.map.has(t)?this.map.get(t):(n===!1&&this.disableErrors===!1&&(this.map.has(t),`${JSON.stringify(t)}`,void 0),this.fallback)}set(t,n){if(this.map.has(t)){this.disableErrors===!1&&(Ue(this.map.get(t),n),`${JSON.stringify(t)}`,void 0);return}this.map.set(t,n)}_has(t){return this.map.has(t)}};var wD={title:""},Cf=de(!1),Pf=de(null),Zu=de(void 0),kD=de(void 0),ME=de(e=>({width:e(Zu),height:e(kD)}),(e,t,n)=>{t(Zu,n.width),t(kD,n.height)}),JK={type:"GENERATED_ASSET",url:"",size:{x:0,y:0},format:"PNG",offsets:{top:{value:0,unit:"PERCENT"},right:{value:0,unit:"PERCENT"},bottom:{value:0,unit:"PERCENT"},left:{value:0,unit:"PERCENT"}}},AS=OE({type:"FRAME",id:"missing",name:"missing",visible:!1,absoluteBoundingBox:{x:0,y:0,width:0,height:0},size:{x:0,y:0},relativeTransform:[[1,0,1],[0,1,1]],children:[]});function BD(){let e={collectionById:new Xr(void 0),slugByItemId:new Xr(void 0)};return bE(e),e}function UD(e,t){Xa(e.collectionById,t.collectionById),Xa(e.slugByItemId,t.slugByItemId)}function GE(){let e={siteSettings:de(wD),roots:de([]),nodeById:new Xr(AS),fonts:new Xr(void 0,!0),assets:new Xr(de(JK)),assetIdToGuid:new Xr(void 0),guidToUrl:new Xr(void 0),animateRootIds:new Set,stablePathToAssetInfo:new Xr(void 0,!0),stablePathToConstraints:new Xr(void 0,!0),compiledCode:de(""),globalStyles:de(""),sourceCodeHash:de("")};return bE(e),bE(e.assets),e}function kE(e,t,n){$u(e.siteSettings,t.siteSettings??wD,n);for(let[r,o]of Object.entries(t.nodeById))e.nodeById.set(r,rS(o,{nodeId:o?.id}));$u(e.roots,t.roots,n),Xa(e.fonts,t.fonts),Xa(e.assetIdToGuid,t.assetIdToGuid),Xa(e.guidToUrl,t.guidToUrl),NS(e,t.assets,n),t.stablePathToAssetInfo&&Xa(e.stablePathToAssetInfo,t.stablePathToAssetInfo),t.stablePathToConstraints&&Xa(e.stablePathToConstraints,t.stablePathToConstraints),qK(e.animateRootIds,t.animateRootIds),$u(e.compiledCode,t.compiledCode,n),$u(e.globalStyles,t.globalStyles,n),$u(e.sourceCodeHash,t.sourceCodeHash,n)}function NS(e,t,n){QK(e.assets,t,n)}function qK(e,t){e.clear(),t.forEach(n=>{e.add(n)})}function Xa(e,t){for(let[n,r]of Object.entries(t))e.set(n,r)}function QK(e,t,n,r){for(let[o,i]of Object.entries(t)){let s=e._has(o)?e.get(o):void 0,a=r?r(i):i;s===void 0?e.set(o,de(a)):$u(s,a,n)}}function $u(e,t,n){Ue(n.get(e),t)||n.set(e,t)}function VD(e,t){let n=(0,FD.useMemo)(()=>de(e),[e]);return Ae(t||n)}var Qu=v(W());var Z=[""],Ju={transparent:Z,...Object.fromEntries(Object.values(dE).map(e=>[e,Z]))},e4={"-webkit-text-fill-color":{partialSupportOk:!0,values:{...Ju}},"-ms-overflow-style":{partialSupportOk:!0,values:{none:!0}},"-webkit-box-orient":{alternateName:"box-orient",partialSupportOk:!0,values:{vertical:Z}}},HD={properties:{"align-items":{values:{"flex-start":["flex_context"],"flex-end":["flex_context"],center:Z,baseline:["flex_context.baseline"],start:["grid_context.start_end"],end:["grid_context.start_end"]},except:["flex_context.last_baseline","flex_context.safe_unsafe","flex_context.start_end"]},"align-self":{values:{"flex-start":["flex_context"],"flex-end":["flex_context"],stretch:["flex_context.stretch","grid_context"],center:Z},except:["flex_context.last_baseline","flex_context.safe_unsafe","position_absolute_context"]},"align-content":{values:{"flex-start":["flex_context"],"flex-end":["flex_context"],center:Z,"space-between":["flex_context"],baseline:["flex_context.baseline"],stretch:["flex_context.stretch"]},except:["flex_context.last_baseline","flex_context.safe_unsafe","flex_context.start_end","multicol_context","block_context"]},animation:{values:{scroll:Z,linear:Z,none:Z},except:["animation-timeline_included"]},"animation-play-state":{values:{paused:!0}},"animation-delay":{},"animation-direction":{},"animation-timing-function":{},"aspect-ratio":{values:{auto:!0}},"backdrop-filter":{},"backface-visibility":{},background:{values:{none:Z}},"background-clip":{values:{"padding-box":!0,text:!0}},"background-color":{values:Ju},"background-image":{values:{none:!0}},"background-position":{values:{bottom:!0,left:!0,right:!0,top:!0,center:!0}},"background-repeat":{values:{repeat:!0,"no-repeat":!0}},"background-size":{values:{auto:!0,contain:!0,cover:!0}},border:{values:{none:Z,solid:Z}},"border-bottom-left-radius":{},"border-bottom-right-radius":{},"border-bottom-width":{},"border-bottom-style":{values:{solid:Z,dashed:Z,none:Z}},"border-bottom-color":{},"border-color":{values:Ju},"border-left-width":{},"border-radius":{},"border-right-width":{},"border-style":{values:{solid:!0,dashed:!0,none:!0}},"border-top-left-radius":{},"border-top-right-radius":{},"border-top-width":{},bottom:{values:{auto:!0}},"box-shadow":{values:{inset:!0,...Ju}},"box-sizing":{values:{"border-box":!0}},color:{values:{revert:Z,...Ju}},"column-gap":{},"container-type":{values:{size:!0}},content:{except:["none_applies_to_elements","alt_text"]},cursor:{values:{pointer:!0,none:!0},except:["url_positioning_syntax"]},direction:{values:{ltr:!0,rtl:!0},except:["vertical_slider_direction"]},display:{values:{block:!0,"inline-block":!0,grid:!0,flex:!0,contents:!0,none:!0,"inline-grid":!0,"-webkit-box":!0},except:["contents.contents_unusual","contents.focusable_elements","none.option_is_hidden","is_transitionable","keyframe_animatable","multi-keyword_values"]},filter:{},flex:{values:{auto:Z}},"flex-direction":{values:{column:!0,"column-reverse":!0,row:!0,"row-reverse":!0}},"flex-shrink":{},"flex-wrap":{values:{wrap:!0}},"font-family":{values:{serif:Z,"sans-serif":Z}},"font-feature-settings":{},"font-size":{},"font-style":{values:{italic:!0,normal:!0}},"font-synthesis":{values:{none:!0},partialSupportOk:!0},"font-variant-caps":{values:{normal:!0,"small-caps":!0,"all-small-caps":!0}},"font-variation-settings":{values:{normal:Z}},"font-weight":{values:{normal:!0,bold:!0}},gap:{},"grid-column":{values:{span:Z}},"grid-row":{values:{span:Z}},"grid-template-columns":{values:{"max-content":!0}},"grid-auto-flow":{values:{row:!0}},"grid-template-rows":{values:{"max-content":!0}},height:{values:{auto:!0},except:["fit-content_function"]},inset:{},isolation:{values:{isolate:Z}},"justify-content":{values:{"flex-start":["flex_context"],"flex-end":["flex_context"],center:Z,"space-between":["flex_context"],"space-around":["flex_context"],"space-evenly":["flex_context.space-evenly"]},except:["flex_context.safe_unsafe","flex_context.start_end"]},"justify-items":{values:{"flex-start":["flex_context"],"flex-end":["flex_context"],center:Z,baseline:["flex_context"],start:["grid_context","flex_context"],end:["grid_context","flex_context"]}},"place-items":{values:{"flex-start":["flex_context"],"flex-end":["flex_context"],center:Z,baseline:["flex_context"],start:["grid_context","flex_context"],end:["grid_context","flex_context"]}},"justify-self":{values:{"flex-start":["grid_context"],"flex-end":["grid_context"],center:Z,baseline:["grid_context"],start:["grid_context"],end:["grid_context"],stretch:["grid_context"]},except:["position_absolute_context"]}
8122,left:{values:{auto:!0}},"letter-spacing":{},"line-height":{values:{normal:!0}},"list-style":{values:{none:Z}},"list-style-position":{values:{inside:!0}},"list-style-type":{values:{"lower-alpha":!0,"lower-roman":!0,decimal:!0,circle:!0}},margin:{values:{auto:!0}},"margin-bottom":{values:{auto:!0}},"margin-inline-start":{},"margin-left":{values:{auto:!0}},"margin-right":{values:{auto:!0}},"margin-top":{values:{auto:!0}},"mask-image":{needsPrefix:"-webkit-"},"mask-mode":{values:{alpha:!0,luminance:!0}},"mask-size":{needsPrefix:"-webkit-"},"mask-position":{needsPrefix:"-webkit-",values:{auto:Z}},"mask-repeat":{needsPrefix:"-webkit-",values:{"no-repeat":Z}},"mask-clip":{needsPrefix:"-webkit-",values:{"no-clip":Z}},"mask-origin":{needsPrefix:"-webkit-"},"mask-composite":{values:{intersect:!0}},"mask-type":{values:{alpha:!0,luminance:!0}},"max-width":{values:{none:!0},except:["fit-content_function"]},"max-height":{except:["fit-content_function"]},"min-width":{values:{auto:!0},except:["fit-content_function"]},"min-height":{except:["fit-content_function"]},"mix-blend-mode":{values:{darken:Z,multiply:Z,"plus-lighter":!0,"color-burn":Z,lighten:Z,screen:Z,"color-dodge":Z,overlay:Z,"soft-light":Z,"hard-light":Z,difference:Z,exclusion:Z,huge:Z,saturation:Z,color:Z,luminosity:Z}},"object-fit":{values:{contain:!0,cover:!0}},"object-position":{values:{bottom:Z,left:Z,right:Z,top:Z,center:Z}},opacity:{},order:{},overflow:{values:{auto:!0,hidden:!0,clip:!0,scroll:!0,visible:!0}},"overflow-x":{values:{auto:!0,hidden:!0,clip:!0,scroll:!0,visible:!0}},"overflow-y":{values:{auto:!0,hidden:!0,clip:!0,scroll:!0,visible:!0}},padding:{},"padding-bottom":{},"padding-inline-start":{},"padding-left":{},"padding-top":{},"padding-right":{},perspective:{},"perspective-origin":{values:{center:!0,top:!0,bottom:!0,left:!0,right:!0}},"pointer-events":{values:{none:Z,auto:Z}},position:{values:{absolute:!0,sticky:!0,relative:!0,fixed:!0}},right:{values:{auto:!0}},"row-gap":{},"scrollbar-width":{values:{none:!0}},"text-align":{values:{left:!0,right:!0,center:!0,justify:!0,start:!0,end:!0}},"text-box-edge":{values:{cap:Z,alphabetic:Z}},"text-box-trim":{values:{"trim-both":Z}},"text-decoration":{except:["includes_thickness","includes_color-and-style"],values:{none:Z}},"text-decoration-color":{},"text-decoration-line":{values:{none:!0,underline:!0,"line-through":!0}},"text-decoration-skip-ink":{values:{none:!0}},"text-decoration-style":{values:{solid:Z,wavy:Z,dotted:Z}},"text-decoration-thickness":{values:{"from-font":!0}},"text-indent":{},"text-overflow":{values:{ellipsis:!0},except:["two_value_syntax"]},"text-shadow":{},"text-transform":{values:{none:!0,uppercase:!0,lowercase:!0,capitalize:!0},except:["greek_accented_characters","dutch_ij_digraph"]},"text-underline-offset":{},top:{values:{auto:!0}},"text-underline-position":{values:{"from-font":!0}},transform:{},"transform-origin":{values:{top:!0,left:!0}},"transform-style":{values:{"preserve-3d":!0}},"transition-duration":{},"transition-property":{values:{all:!0,transform:Z}},"transition-timing-function":{values:{"ease-in-out":Z}},"transition-delay":{},"vertical-align":{values:{super:!0}},"white-space":{values:{pre:!0,"pre-wrap":!0,nowrap:!0},except:["svg_elements","shorthand_values"]},width:{values:{auto:!0,"min-content":!0},except:["fit-content_function"]},"word-break":{values:{"break-word":!0}},"z-index":{},"-webkit-text-size-adjust":{alternateName:"text-size-adjust",partialSupportOk:!0},"-webkit-tap-highlight-color":{partialSupportOk:!0,values:{...Ju}},"-webkit-font-smoothing":{alternateName:"font-smooth",partialSupportOk:!0,values:{antialiased:Z}},"-webkit-line-clamp":{alternateName:"line-clamp"},...e4},functionTypes:{calc:{key:"types.calc",except:["calc.color_component"]},var:{key:"types.var"},min:{key:"types.min"},max:{key:"types.max"},matrix:{key:"types.transform-function.matrix"},matrix3d:{key:"types.transform-function.matrix3d"},perspective:{key:"types.transform-function.perspective"},rotate:{key:"types.transform-function.rotate"},rotateX:{key:"types.transform-function.rotateX"},rotateY:{key:"types.transform-function.rotateY"},rotateZ:{key:"types.transform-function.rotateZ"},rotate3d:{key:"types.transform-function.rotate3d"},translate:{key:"types.transform-function.translate"},translateX:{key:"types.transform-function.translateX"},translateY:{key:"types.transform-function.translateY"},translateZ:{key:"types.transform-function.translateZ"},translate3d:{key:"types.transform-function.translate3d"},skew:{key:"types.transform-function.skew"}
8122,skewX:{key:"types.transform-function.skewX"},skewY:{key:"types.transform-function.skewY"},scale:{key:"types.transform-function.scale"},scaleX:{key:"types.transform-function.scaleX"},scaleY:{key:"types.transform-function.scaleY"},scale3d:{key:"types.transform-function.scale3d"},hypot:{key:"types.hypot"},cos:{key:"types.cos"},atan2:{key:"types.atan2"},rgb:{key:"types.color"},rgba:{key:"types.color"},clamp:{key:"types.clamp"},blur:{key:"types.filter-function.blur"},"drop-shadow":{key:"types.filter-function.drop-shadow"},"linear-gradient":{key:"types.gradient.linear-gradient",except:["gradient.linear-gradient.hue_interpolation_method","gradient.linear-gradient.interpolation_color_space","gradient.linear-gradient.single_color_stop"]},"image-set":{key:"types.image.image-set"},repeat:{key:"properties.grid-template-rows.repeat"},minmax:{key:"properties.grid-template-rows.minmax"},"fit-content":{key:"properties.grid-template-rows.fit-content"}},units:{px:{key:"types.length",except:["length.container_query_length_units","length.viewport_percentage_units_dynamic","length.viewport_percentage_units_large","length.viewport_percentage_units_small"]},em:{key:"types.length.em"},vw:{key:"types.length.vw"},vh:{key:"types.length.vh"},dvw:{key:"types.length.viewport_percentage_units_dynamic"},cqw:{key:"types.length.container_query_length_units"},cqh:{key:"types.length.container_query_length_units"},deg:{key:"types.angle.deg"},x:{key:"types.resolution.x"},fr:{key:"types.flex"},s:{key:"types.time"}}};var t4=new Map,n4=new Map;for(let[e,t]of Object.entries(HD.properties))if(t.needsPrefix){let n=`${t.needsPrefix}${e}`;t4.set(n,e),n4.set(e,n)}function ja({str:e,hashPrefix:t,isUniqueKey:n}){let r=(l,u)=>{let c=`${t}${Math.abs(l).toString(36)}`;return u?`${c}_${u}`:c},o=0,i=0,s,a=0;for(;o<5;){i=0;for(let l=0;l<e.length;l++){let u=e.charCodeAt(l);i=(i<<5)-i+u+o,i=i&i}if(s=r(i),n(s))return s;o++}for(;;)if(a++,s=r(i,a),n(s))return s}var WD=typeof window<"u"&&window.requestIdleCallback?window.requestIdleCallback:function(e){let t=Date.now();return setTimeout(()=>{e({didTimeout:!1,timeRemaining:()=>Math.max(0,50-(Date.now()-t))})},1)};var YD=v(W());function Ns(e,t){let n=(0,YD.useRef)(e);return t(n.current,e)||(n.current=e),n.current}var XD="#container",r4="css-",yS=new Set,bS=new Map,FE=0,LS=null,qu=new Map,Oo;var o4=1024,i4=new Set(["opacity","zIndex","fontWeight","flex","flexGrow","flexShrink","flexBasis","order","lineHeight","gridRow","gridColumn","gridRowStart","gridRowEnd","gridColumnStart","gridColumnEnd","WebkitLineClamp"]),s4=new Set(["font","fontFamily","fontSize","fontStyle","fontVariant","fontWeight","letterSpacing","lineHeight","textAlign","textDecoration","textIndent","textOverflow","textTransform","whiteSpace","wordBreak","wordSpacing"]),a4=new Set(["top","right","bottom","left","width","height","maxWidth","maxHeight","minWidth","minHeight"]),l4=new Set(["alignItems","alignSelf","border","borderBottom","borderBottomColor","borderBottomStyle","borderBottomWidth","borderColor","borderLeft","borderLeftColor","borderLeftStyle","borderLeftWidth","borderRadius","borderBottomLeftRadius","borderBottomRightRadius","borderTopLeftRadius","borderTopRightRadius","borderRight","borderRightColor","borderRightStyle","borderRightWidth","borderStyle","borderTop","borderTopColor","borderTopStyle","borderTopWidth","borderWidth","boxSizing","display","flex","flexBasis","flexDirection","flexGrow","flexShrink","flexWrap","gap","gridArea","gridAutoColumns","gridAutoFlow","gridAutoRows","gridColumn","gridRow","gridTemplate","justifyContent","placeItems","justifySelf","margin","marginBottom","marginLeft","marginRight","marginTop","order","padding","paddingBottom","paddingLeft","paddingRight","paddingTop","position"]);function u4(e){let t={...e};if("top"in e&&"right"in e&&"bottom"in e&&"left"in e){let n={top:e.top,right:e.right,bottom:e.bottom,left:e.left};Object.values(n).every(i=>i!==void 0)&&new Set(Object.values(n)).size===1&&(t={...t,inset:e.top,top:void 0,right:void 0,bottom:void 0,left:void 0})}if("borderTopStyle"in e&&"borderRightStyle"in e&&"borderBottomStyle"in e&&"borderLeftStyle"in e){let n={top:e.borderTopStyle,right:e.borderRightStyle,bottom:e.borderBottomStyle,left:e.borderLeftStyle};new Set(Object.values(n)).size===1&&n.top&&(t={...t,borderStyle:n.top,borderTopStyle:void 0,borderRightStyle:void 0,borderBottomStyle:void 0,borderLeftStyle:void 0})}if("borderTopLeftRadius"in e&&"borderTopRightRadius"in e&&"borderBottomRightRadius"in e&&"borderBottomLeftRadius"in e){let n={topLeft:e.borderTopLeftRadius,topRight:e.borderTopRightRadius,bottomRight:e.borderBottomRightRadius,bottomLeft:e.borderBottomLeftRadius};new Set(Object.values(n)).size===1&&n.topLeft!==void 0&&(t={...t,borderRadius:n.topLeft,borderTopLeftRadius:void 0,borderTopRightRadius:void 0,borderBottomRightRadius:void 0,borderBottomLeftRadius:void 0})}if("marginTop"in e&&"marginRight"in e&&"marginBottom"in e&&"marginLeft"in e){let n={top:e.marginTop,right:e.marginRight,bottom:e.marginBottom,left:e.marginLeft};new Set(Object.values(n)).size===1&&n.top!==void 0&&(t={...t,margin:n.top,marginTop:void 0,marginRight:void 0,marginBottom:void 0,marginLeft:void 0})}if("paddingTop"in e&&"paddingRight"in e&&"paddingBottom"in e&&"paddingLeft"in e){let n=typeof e.paddingTop=="number"?e.paddingTop+"px":e.paddingTop,r=typeof e.paddingRight=="number"?e.paddingRight+"px":e.paddingRight,o=typeof e.paddingBottom=="number"?e.paddingBottom+"px":e.paddingBottom,i=typeof e.paddingLeft=="number"?e.paddingLeft+"px":e.paddingLeft,s;new Set([n,r,o,i]).size===1&&n!==void 0?s=n:n===o&&n&&i===r&&r?s=`${n} ${i}`:n&&o&&i===r&&r&&(s=`${n} ${i} ${o}`),s!==void 0&&(t={...t,padding:s,paddingTop:void 0,paddingRight:void 0,paddingBottom:void 0,paddingLeft:void 0})}if("overflowX"in e&&"overflowY"in e){let n=e.overflowX,r=e.overflowY;n===r&&n!==void 0&&(t={...t,overflow:n,overflowX:void 0,overflowY:void 0})}return t}function KD(e){return s4.has(e)?"font":a4.has(e)?"dimension":l4.has(e)?"layout":"other"}function zD(e,t,n=XD){let r=o=>{let i=u4(o);return Object.entries(i).filter(([s,a])=>a!==void 0).map(([s,a])=>{let l=s.replace(/([A-Z])/g,"-$1").toLowerCase(),u=a;return typeof a=="number"&&!i4.has(s)&&(u=`${a}px`),`${l}: ${u};`}).join(" ")};return`${n?`${n} `:""}.${e} {${r(t)}}`}var CS=new Map;c4();function c4(){typeof window<"u"&&"__serverRenderedCSSClassNames"in window&&typeof window.__serverRenderedCSSClassNames=="object"&&Object.entries(window.__serverRenderedCSSClassNames||{}
8122).forEach(([e,t])=>{CS.set(e,t)})}function d4(e){if(Object.keys(e).length===0)return"";let t=JSON.stringify(e);if(t==="{}")return"";let n=ja({str:t,hashPrefix:r4,isUniqueKey:r=>{let o=bS.get(r);if(o)return o===t;if(CS.has(r)){let i=CS.get(r);return t===i}return!0}});return bS.set(n,t),n}var f4="font-faces-";function jD(e,t){let{fontsByStyleElId:n,env:r,addHeadTag:o}=t,i=ja({str:e,hashPrefix:f4,isUniqueKey:s=>{let a=n.get(s),l=!a||a===e;if(r==="server")return l;let u=document.getElementById(s),c=!u||u?.textContent===e;return l&&c}});return r==="server"&&!n.has(i)&&(o({type:"global-style",styleElId:i,styleSheet:e}),n.set(i,e)),i}function $D(e,t){let{fontsByStyleElId:n}=fe();(0,Qu.useInsertionEffect)(()=>{if(!e)return;let r=document.getElementById(t);if(r&&r.textContent===e)return;let o=document.createElement("style");return o.textContent=e,o.id=t,document.head.appendChild(o),n.set(t,e),()=>{document.head.removeChild(o),n.delete(t)}},[e])}function p4(e,t,n){return e.forEach(({className:r,styles:o,renderedByCode:i})=>{if(!r)return;let s=t||i?"":XD,a=qu.get(r);a===0&&FE--,qu.set(r,(a??0)+1),yS.has(r)||(yS.add(r),_4(r,o,s).forEach(u=>{Oo||(Oo=new CSSStyleSheet,document.adoptedStyleSheets.push(Oo)),u.toString(),i?Oo.insertRule(`@layer figoverridable { ${u} }`,Oo.cssRules.length):Oo.insertRule(u,Oo.cssRules.length)}))}),()=>{e.forEach(({className:r})=>{if(!r)return;let i=(qu.get(r)||0)-1;qu.set(r,i),i===0&&(FE++,Oo&&FE>o4&&!LS&&(LS=WD(E4)))})}}function m4(e){let t={};for(let[r,o]of Object.entries(e))if(!(o===void 0||o===""))if(r==="media")for(let[i,s]of Object.entries(o))for(let[a,l]of Object.entries(s)){let u=KD(a);t[u]||(t[u]={}),t[u].media||(t[u].media={}),t[u].media[i]||(t[u].media[i]={}),t[u].media[i][a]=l}else{let i=KD(r);t[i]||(t[i]={}),t[i][r]=NE(o,!1)}let n=[];for(let r of Object.values(t))n.push({className:d4(r),styles:r});return n}function ZD(e){let t=fe(),{disableHighSpecificityContainer:n}=t.renderOptions,r=Ns(e,Ue),o=(0,Qu.useMemo)(()=>{let l=[],u=[];for(let c of r){if(c==null)continue;if(typeof c=="string"){u.push(c);continue}let{styles:d,renderedByCode:f}="styles"in c?{styles:c.styles,renderedByCode:c.renderedByCode}:{styles:c,renderedByCode:void 0};for(let{className:p,styles:_}of m4(d))l.push({className:p,styles:_,renderedByCode:f})}return{generated:l,passthroughClassNames:u}},[r]),{addHeadTag:i,env:s}=fe();return(0,Qu.useInsertionEffect)(()=>p4(o.generated,n,s),[o]),s==="server"&&o.generated.forEach(({className:l,styles:u})=>{i({type:"class-style",className:l,cssProperties:u,classNameSourceStr:JSON.stringify(u)})}),[...o.generated.map(({className:l})=>l),...o.passthroughClassNames].filter(Boolean).join(" ")}function E4(){if(Oo){try{let t=Array.from(Oo.cssRules).filter(n=>{let r=n.selectorText.substring(1),o=qu.get(r)===0;return o&&(yS.delete(r),qu.delete(r),bS.delete(r)),!o});Oo.replace(t.map(n=>n.cssText).join(` 8123`))}catch(e){Me.reportError(new te("Error cleaning up styles",e)),console.error("Error cleaning CSS rules:",e)}FE=0,LS=null}}var PS="global-css-";function ec({cssString:e,styleElId:t,deleteElsWithPrefix:n,skipValidation:r,prepend:o}){let{addHeadTag:i,env:s}=fe();s==="server"&&e&&i({type:"global-style",styleElId:t,styleSheet:ys(e)}),(0,Qu.useInsertionEffect)(()=>{if(!e||(r||void 0,document.getElementById(t)))return;let l=[];n&&(l=Array.from(document.head.querySelectorAll(`style[id^="${n}"]`)));let u=document.createElement("style");return u.textContent=ys(e),u.id=t,o?document.head.insertBefore(u,document.head.firstChild):document.head.appendChild(u),n&&l.forEach(c=>{c.remove()}),()=>{document.head.removeChild(u)}},[e,t,o])}function ys(e){return e.replace(/\s+/g," ").replace(/\/\*.*?\*\//g,"").replace(/;\s*}/g,"}").replace(/\s*{\s*/g,"{").replace(/\s*:\s*/g,":").replace(/\s*;\s*/g,";").replace(/\s*,\s*/g,",").replace(/\s*}\s*/g,"}")}function _4(e,t,n){let{media:r,...o}=t,i=[zD(e,o,n)];if(r){let s=Object.entries(r).map(([a,l])=>`@media ${a} {${zD(e,l,n)}}`);i.push(...s)}return i}function sn(e,...t){let n="";return e.forEach((r,o)=>{n+=r+(t[o]||"")}),n}var T4="custom-cursor",tc="customCursor";function JD(){let e=Ae(Pf)!==null;return ec({cssString:e?h4:"",styleElId:T4}),null}var h4=sn` #container .${tc}a,#container .${tc}p,#container .${tc}div{cursor:none}`;function go(e,t){let n=e?.[t];return ge(n!==void 0,`Node asset with hash ${t} not found in used assets`),n}function O4(){let e=JI();return e?e.mobile||e.tablet||e.isIpad:!1}var tv=({ref:e,hasCursorBehavior:t,assets:n,behaviors:r})=>{let o=fe();O4()&&(t=!1);let i=(0,$a.useMemo)(()=>g4(t),[t]),s=(0,$a.useCallback)((a,l)=>{let{imageUrl:u,imageSize:c}=ev(r,n,o);a.style.backgroundImage=`url("${u}")`,c&&(a.style.width=`${c.x}px`,a.style.height=`${c.y}px`),a.style.visibility="visible",l.style.cursor="none",l.classList.add(tc)},[r,n,o]);(0,$a.useEffect)(()=>{e.current&&qD(e.current.id,o)&&i&&s(i,e.current)},[e,i,s,o]),(0,$a.useEffect)(()=>
8123{if(!e.current||!i||!t||!r?.cursor)return;let{imageUrl:a,imageSize:l}=ev(r,n,o);if(!a||!l)return;let u=e.current,c=r.cursor.hotspotX,d=r.cursor.hotspotY,f=bu(h=>{u&&(QD(u.id,o),s(i,u),i.style.transform=`translate(${h.clientX-c}px, ${h.clientY-d}px)`)},"showCursor"),p=bu(h=>{u&&(DS(o)===null&&f(h),qD(u.id,o)&&(i.style.transform=`translate(${h.clientX-c}px, ${h.clientY-d}px)`))},"moveCursor"),_=bu(()=>{i&&(QD(null,o),requestAnimationFrame(T))},"hideCursor"),T=()=>{i&&DS(o)===null&&(i.style.visibility="hidden",u.style.cursor="auto",u.classList.remove(tc))};return u.addEventListener("pointerenter",f),u.addEventListener("pointermove",p),u.addEventListener("pointerleave",_),()=>{u.removeEventListener("pointerenter",f),u.removeEventListener("pointermove",p),u.removeEventListener("pointerleave",_),_(new PointerEvent("pointerleave"))}},[t,r?.cursor,i,e,s,r,n,o])},nv="sites-cursor-element",g4=e=>{if(!e||typeof document>"u")return null;let t=document.getElementById(nv);return t||I4()},I4=()=>{let e=document.createElement("div");return document.body.appendChild(e),e.id=nv,e.style.position="fixed",e.style.top="0",e.style.left="0",e.style.visibility="hidden",e.style.pointerEvents="none",e.style.willChange="transform",e.style.zIndex="9999",e.ariaHidden="true",e.style.backgroundRepeat="no-repeat",e.style.backgroundSize="contain",e},qD=(e,t)=>DS(t)===e,QD=(e,t)=>{t.atomStore.set(Pf,e)},DS=e=>e.atomStore.get(Pf);function ev(e,t,n){let r=vS(e);if(r){let o=go(t,r);return{imageUrl:n.getAssetURL(o.url),imageSize:o.size}}return{imageUrl:void 0,imageSize:void 0}}function vS(e){return e?.cursor?.cursorFileName?.split(".")[0]}var rv=e=>{let{interactionHandlers:t,materializedChildNodeProps:n,...r}=e;"variableState"in r&&delete r.variableState;try{xE("nodeDebugInformation",{materializedNode:r})}catch{}};function iv(e,t,n,r,o){let i=t,s=!1,a=(d,f)=>(s=!0,n.evaluateVariable(e,d.id,r)??f),l=d=>{let f=n.getVariableName(d);return f!==void 0&&o.dashSeparatedVariableNames?VI(f,()=>"-"):f},u=d=>n.getVariableCodeSyntax(d);if(S4(i,a,l,u),!("boundVariables"in t&&t.boundVariables))return s;let c=t.boundVariables;if(c.opacity&&(i.opacity=a(c.opacity,i.opacity)/100,c.opacity.resolvedName=l(c.opacity.id),c.opacity.resolvedCodeSyntax=u(c.opacity.id)),c.size&&i.size&&(c.size.x&&(i.size.x=a(c.size.x,i.size.x),c.size.x.resolvedName=l(c.size.x.id),c.size.x.resolvedCodeSyntax=u(c.size.x.id)),c.size.y&&(i.size.y=a(c.size.y,i.size.y),c.size.y.resolvedName=l(c.size.y.id),c.size.y.resolvedCodeSyntax=u(c.size.y.id))),c.visible&&(i.visible=a(c.visible,i.visible),c.visible.resolvedName=l(c.visible.id),c.visible.resolvedCodeSyntax=u(c.visible.id)),i.rectangleCornerRadii===void 0)if(i.rectangleCornerRadiiIndependent)i.rectangleCornerRadii=[0,0,0,0];else{let d=i.cornerRadius??0;i.rectangleCornerRadii=[d,d,d,d]}return c.rectangleCornerRadii&&(c.rectangleCornerRadii.RECTANGLE_TOP_LEFT_CORNER_RADIUS&&(i.rectangleCornerRadii[0]=a(c.rectangleCornerRadii.RECTANGLE_TOP_LEFT_CORNER_RADIUS,i.rectangleCornerRadii[0]),c.rectangleCornerRadii.RECTANGLE_TOP_LEFT_CORNER_RADIUS.resolvedName=l(c.rectangleCornerRadii.RECTANGLE_TOP_LEFT_CORNER_RADIUS.id),c.rectangleCornerRadii.RECTANGLE_TOP_LEFT_CORNER_RADIUS.resolvedCodeSyntax=u(c.rectangleCornerRadii.RECTANGLE_TOP_LEFT_CORNER_RADIUS.id)),c.rectangleCornerRadii.RECTANGLE_TOP_RIGHT_CORNER_RADIUS&&(i.rectangleCornerRadii[1]=a(c.rectangleCornerRadii.RECTANGLE_TOP_RIGHT_CORNER_RADIUS,i.rectangleCornerRadii[1]),c.rectangleCornerRadii.RECTANGLE_TOP_RIGHT_CORNER_RADIUS.resolvedName=l(c.rectangleCornerRadii.RECTANGLE_TOP_RIGHT_CORNER_RADIUS.id),c.rectangleCornerRadii.RECTANGLE_TOP_RIGHT_CORNER_RADIUS.resolvedCodeSyntax=u(c.rectangleCornerRadii.RECTANGLE_TOP_RIGHT_CORNER_RADIUS.id)),c.rectangleCornerRadii.RECTANGLE_BOTTOM_RIGHT_CORNER_RADIUS&&(i.rectangleCornerRadii[2]=a(c.rectangleCornerRadii.RECTANGLE_BOTTOM_RIGHT_CORNER_RADIUS,i.rectangleCornerRadii[2]),c.rectangleCornerRadii.RECTANGLE_BOTTOM_RIGHT_CORNER_RADIUS.resolvedName=l(c.rectangleCornerRadii.RECTANGLE_BOTTOM_RIGHT_CORNER_RADIUS.id)??void 0,c.rectangleCornerRadii.RECTANGLE_BOTTOM_RIGHT_CORNER_RADIUS.resolvedCodeSyntax=u(c.rectangleCornerRadii.RECTANGLE_BOTTOM_RIGHT_CORNER_RADIUS.id)),c.rectangleCornerRadii.RECTANGLE_BOTTOM_LEFT_CORNER_RADIUS&&(i.rectangleCornerRadii[3]=a(c.rectangleCornerRadii.RECTANGLE_BOTTOM_LEFT_CORNER_RADIUS,i.rectangleCornerRadii[3]),c.rectangleCornerRadii.RECTANGLE_BOTTOM_LEFT_CORNER_RADIUS.resolvedName=l(c.rectangleCornerRadii.RECTANGLE_BOTTOM_LEFT_CORNER_RADIUS.id),c.rectangleCornerRadii.RECTANGLE_BOTTOM_LEFT_CORNER_RADIUS.resolvedCodeSyntax=u(c.rectangleCornerRadii.RECTANGLE_BOTTOM_LEFT_CORNER_RADIUS.id))),c.minWidth&&(i.minWidth=a(c.minWidth,i.minWidth),c.minWidth.resolvedName=l(c.minWidth.id),c.minWidth.resolvedCodeSyntax=u(c.minWidth.id)),c.maxWidth&&(i.maxWidth=a(c.maxWidth,i.maxWidth),c.maxWidth.resolvedName=l(c.maxWidth.id),c.maxWidth.resolvedCodeSyntax=u(c.maxWidth.id)),c.minHeight&&(i.minHeight=a(c.minHeight,i.minHeight),c.minHeight.resolvedName=l(c.minHeight.id),c.minHeight.resolvedCodeSyntax=u(c.minHeight.id)),c.maxHeight&&(i.maxHeight=a(c.maxHeight,i.maxHeight),c.maxHeight.resolvedName=l(c.maxHeight.id),c.maxHeight.resolvedCodeSyntax=u(c.maxHeight.id)),c.itemSpacing&&(i.itemSpacing=a(c.itemSpacing,i.itemSpacing),c.itemSpacing.resolvedName=l(c.itemSpacing.id),c.itemSpacing.resolvedCodeSyntax=u(c.itemSpacing.id)),c.paddingLeft&&(i.paddingLeft=a(c.paddingLeft,i.paddingLeft),c.paddingLeft.resolvedName=l(c.paddingLeft.id),c.paddingLeft.resolvedCodeSyntax=u(c.paddingLeft.id)),c.paddingRight&&(i.paddingRight=a(c.paddingRight,i.paddingRight),c.paddingRight.resolvedName=l(c.paddingRight.id),c.paddingRight.resolvedCodeSyntax=u(c.paddingRight.id)),c.paddingTop&&(i.paddingTop=a(c.paddingTop,i.paddingTop),c.paddingTop.resolvedName=l(c.paddingTop.id),c.paddingTop.resolvedCodeSyntax=u(c.paddingTop.id)),c.paddingBottom&&(i.paddingBottom=a(c.paddingBottom,i.paddingBottom),c.paddingBottom.resolvedName=l(c.paddingBottom.id),c.paddingBottom.resolvedCodeSyntax=u(c.paddingBottom.id)),c.counterAxisSpacing&&(i.counterAxisSpacing=a(c.counterAxisSpacing,i.counterAxisSpacing),c.counterAxisSpacing.resolvedName=l(c.counterAxisSpacing.id),c.counterAxisSpacing.resolvedCodeSyntax=u(c.counterAxisSpacing.id)),c.characters&&(i.characters=a(c.characters,i.characters)?.toString(),c.characters.resolvedName=l(c.characters.id),c.characters.resolvedCodeSyntax=u(c.characters.id)),c.individualStrokeWeights&&(i.individualStrokeWeights===void 0&&(i.individualStrokeWeights={top:0,right:0,bottom:0,left:0}),c.individualStrokeWeights.BORDER_BOTTOM_WEIGHT&&(i.individualStrokeWeights.bottom=a(c.individualStrokeWeights.BORDER_BOTTOM_WEIGHT,i.individualStrokeWeights.bottom),c.individualStrokeWeights.BORDER_BOTTOM_WEIGHT.resolvedName=l(c.individualStrokeWeights.BORDER_BOTTOM_WEIGHT.id),c.individualStrokeWeights.BORDER_BOTTOM_WEIGHT.resolvedCodeSyntax=u(c.individualStrokeWeights.BORDER_BOTTOM_WEIGHT.id)),c.individualStrokeWeights.BORDER_LEFT_WEIGHT&&(i.individualStrokeWeights.left=a(c.individualStrokeWeights.BORDER_LEFT_WEIGHT,i.individualStrokeWeights.left),c.individualStrokeWeights.BORDER_LEFT_WEIGHT.resolvedName=l(c.individualStrokeWeights.BORDER_LEFT_WEIGHT.id),c.individualStrokeWeights.BORDER_LEFT_WEIGHT.resolvedCodeSyntax=u(c.individualStrokeWeights.BORDER_LEFT_WEIGHT.id)),c.individualStrokeWeights.BORDER_RIGHT_WEIGHT&&(i.individualStrokeWeights.right=a(c.individualStrokeWeights.BORDER_RIGHT_WEIGHT,i.individualStrokeWeights.right),c.individualStrokeWeights.BORDER_RIGHT_WEIGHT.resolvedName=l(c.individualStrokeWeights.BORDER_RIGHT_WEIGHT.id),c.individualStrokeWeights.BORDER_RIGHT_WEIGHT.resolvedCodeSyntax=u(c.individualStrokeWeights.BORDER_RIGHT_WEIGHT.id)),c.individualStrokeWeights.BORDER_TOP_WEIGHT&&(i.individualStrokeWeights.top=a(c.individualStrokeWeights.BORDER_TOP_WEIGHT,i.individualStrokeWeights.top),c.individualStrokeWeights.BORDER_TOP_WEIGHT.resolvedName=l(c.individualStrokeWeights.BORDER_TOP_WEIGHT.id),c.individualStrokeWeights.BORDER_TOP_WEIGHT.resolvedCodeSyntax=u(c.individualStrokeWeights.BORDER_TOP_WEIGHT.id))),s}function S4(e,t,n,r){if(e.fills)for(let o of e.fills)if(o.type==="SOLID"){if(o.boundVariables?.color){let i=t(o.boundVariables.color,o.color);o.color={r:i.r,g:i.g,b:i.b,a:1},o.opacity=i.a,o.boundVariables.color.resolvedName=n(o.boundVariables.color.id),o.boundVariables.color.resolvedCodeSyntax=r(o.boundVariables.color.id)}}else if(o.type==="GRADIENT_RADIAL"||o.type==="GRADIENT_LINEAR"||o.type==="GRADIENT_ANGULAR"||o.type==="GRADIENT_DIAMOND")for(let i of o.gradientStops)i.boundVariables?.color&&(i.color=t(i.boundVariables.color,i.color),i.boundVariables.color.resolvedName=n(i.boundVariables.color.id),i.boundVariables.color.resolvedCodeSyntax=r(i.boundVariables.color.id));else o.type==="CUSTOM"&&ov(o.componentPropAssignments,t);
8123if(e.strokes){for(let o of e.strokes)if(o.type==="SOLID"){if(o.boundVariables?.color){let i=t(o.boundVariables.color,o.color);o.color={r:i.r,g:i.g,b:i.b,a:1},o.opacity=i.a,o.boundVariables.color.resolvedName=n(o.boundVariables.color.id),o.boundVariables.color.resolvedCodeSyntax=r(o.boundVariables.color.id)}}else if(o.type==="GRADIENT_RADIAL"||o.type==="GRADIENT_LINEAR"||o.type==="GRADIENT_ANGULAR"||o.type==="GRADIENT_DIAMOND")for(let i of o.gradientStops)i.boundVariables?.color&&(i.color=t(i.boundVariables.color,i.color),i.boundVariables.color.resolvedName=n(i.boundVariables.color.id),i.boundVariables.color.resolvedCodeSyntax=r(i.boundVariables.color.id))}if(e.effects)for(let o of e.effects){if(o.type==="DROP_SHADOW"||o.type==="INNER_SHADOW"){o.boundVariables?.color&&(o.color=t(o.boundVariables.color,o.color),o.boundVariables.color.resolvedName=n(o.boundVariables.color.id),o.boundVariables.color.resolvedCodeSyntax=r(o.boundVariables.color.id)),o.boundVariables?.radius&&(o.radius=t(o.boundVariables.radius,o.radius),o.boundVariables.radius.resolvedName=n(o.boundVariables.radius.id),o.boundVariables.radius.resolvedCodeSyntax=r(o.boundVariables.radius.id)),o.boundVariables?.spread&&(o.spread=t(o.boundVariables.spread,o.spread),o.boundVariables.spread.resolvedName=n(o.boundVariables.spread.id),o.boundVariables.spread.resolvedCodeSyntax=r(o.boundVariables.spread.id));let i=o.offset.x,s=o.offset.y;o.boundVariables?.offsetX&&(i=t(o.boundVariables.offsetX,o.offset.x),o.boundVariables.offsetX.resolvedName=n(o.boundVariables.offsetX.id),o.boundVariables.offsetX.resolvedCodeSyntax=r(o.boundVariables.offsetX.id)),o.boundVariables?.offsetY&&(s=t(o.boundVariables.offsetY,o.offset.x),o.boundVariables.offsetY.resolvedName=n(o.boundVariables.offsetY.id),o.boundVariables.offsetY.resolvedCodeSyntax=r(o.boundVariables.offsetY.id)),o.offset={x:i,y:s}}(o.type==="LAYER_BLUR"||o.type==="BACKGROUND_BLUR")&&o.boundVariables?.radius&&(o.radius=t(o.boundVariables.radius,o.radius),o.boundVariables.radius.resolvedName=n(o.boundVariables.radius.id),o.boundVariables.radius.resolvedCodeSyntax=r(o.boundVariables.radius.id)),o.type==="CUSTOM"&&ov(o.componentPropAssignments,t)}if(e.boundVariables?.fontFamily&&e.boundVariables.fontFamily.forEach(o=>{o.resolvedName=n(o.id),o.resolvedCodeSyntax=r(o.id)}),e.boundVariables?.fontSize&&e.boundVariables.fontSize.forEach(o=>{o.resolvedName=n(o.id),o.resolvedCodeSyntax=r(o.id)}),e.boundVariables?.fontWeight&&e.boundVariables.fontWeight.forEach(o=>{o.resolvedName=n(o.id),o.resolvedCodeSyntax=r(o.id)}),e.boundVariables?.fontStyle&&e.boundVariables.fontStyle.forEach(o=>{o.resolvedName=n(o.id),o.resolvedCodeSyntax=r(o.id)}),e.boundVariables?.lineHeight&&e.boundVariables.lineHeight.forEach(o=>{o.resolvedName=n(o.id),o.resolvedCodeSyntax=r(o.id)}),e.boundVariables?.letterSpacing&&e.boundVariables.letterSpacing.forEach(o=>{o.resolvedName=n(o.id),o.resolvedCodeSyntax=r(o.id)}),e.boundVariables?.paragraphSpacing&&e.boundVariables.paragraphSpacing.forEach(o=>{o.resolvedName=n(o.id),o.resolvedCodeSyntax=r(o.id)}),e.boundVariables?.paragraphIndent&&e.boundVariables.paragraphIndent.forEach(o=>{o.resolvedName=n(o.id),o.resolvedCodeSyntax=r(o.id)}),e.style?.boundVariables&&(e.style.boundVariables.fontFamily&&(e.style.fontFamily=t(e.style.boundVariables.fontFamily,e.style.fontFamily),e.style.boundVariables.fontFamily.resolvedName=n(e.style.boundVariables.fontFamily.id),e.style.boundVariables.fontFamily.resolvedCodeSyntax=r(e.style.boundVariables.fontFamily.id)),e.style.boundVariables.fontSize&&(e.style.fontSize=t(e.style.boundVariables.fontSize,e.style.fontSize),e.style.boundVariables.fontSize.resolvedName=n(e.style.boundVariables.fontSize.id),e.style.boundVariables.fontSize.resolvedCodeSyntax=r(e.style.boundVariables.fontSize.id)),e.style.boundVariables.fontWeight&&(e.style.fontVariations||(e.style.fontVariations={}),e.style.fontVariations.Weight=t(e.style.boundVariables.fontWeight,e.style.fontVariations.Weight),e.style.boundVariables.fontWeight.resolvedName=n(e.style.boundVariables.fontWeight.id),e.style.boundVariables.fontWeight.resolvedCodeSyntax=r(e.style.boun
8123dVariables.fontWeight.id)),e.style.boundVariables.fontStyle&&(e.style.fontStyle=t(e.style.boundVariables.fontStyle,e.style.fontStyle),e.style.boundVariables.fontStyle.resolvedName=n(e.style.boundVariables.fontStyle.id),e.style.boundVariables.fontStyle.resolvedCodeSyntax=r(e.style.boundVariables.fontStyle.id)),e.style.boundVariables.lineHeight&&(e.style.lineHeightPx=t(e.style.boundVariables.lineHeight,e.style.lineHeightPx),e.style.lineHeightUnit="PIXELS",e.style.boundVariables.lineHeight.resolvedName=n(e.style.boundVariables.lineHeight.id),e.style.boundVariables.lineHeight.resolvedCodeSyntax=r(e.style.boundVariables.lineHeight.id)),e.style.boundVariables.letterSpacing&&(e.style.letterSpacingValue=t(e.style.boundVariables.letterSpacing,e.style.letterSpacingValue),e.style.letterSpacingUnit="PIXELS",e.style.boundVariables.letterSpacing.resolvedName=n(e.style.boundVariables.letterSpacing.id),e.style.boundVariables.letterSpacing.resolvedCodeSyntax=r(e.style.boundVariables.letterSpacing.id)),e.style.boundVariables.paragraphSpacing&&(e.style.paragraphSpacing=t(e.style.boundVariables.paragraphSpacing,e.style.paragraphSpacing),e.style.boundVariables.paragraphSpacing.resolvedName=n(e.style.boundVariables.paragraphSpacing.id),e.style.boundVariables.paragraphSpacing.resolvedCodeSyntax=r(e.style.boundVariables.paragraphSpacing.id)),e.style.boundVariables.paragraphIndent&&(e.style.paragraphIndent=t(e.style.boundVariables.paragraphIndent,e.style.paragraphIndent),e.style.boundVariables.paragraphIndent.resolvedName=n(e.style.boundVariables.paragraphIndent.id),e.style.boundVariables.paragraphIndent.resolvedCodeSyntax=r(e.style.boundVariables.paragraphIndent.id))),e.style?.responsiveTextStyleVariants)for(let o of e.style.responsiveTextStyleVariants)o.boundVariables&&(o.boundVariables.fontSize&&(o.style.fontSize=t(o.boundVariables.fontSize,o.style.fontSize)),o.boundVariables.letterSpacing&&(o.style.letterSpacing=t(o.boundVariables.letterSpacing,o.style.letterSpacing)),o.boundVariables.lineHeight&&(o.style.lineHeightPx=t(o.boundVariables.lineHeight,o.style.lineHeightPx)),o.boundVariables.paragraphSpacing&&(o.style.paragraphSpacing=t(o.boundVariables.paragraphSpacing,o.style.paragraphSpacing)))}function ov(e,t){let{defs:n,assignments:r}=e;for(let[o,i]of Object.entries(r))i&&typeof i=="object"&&"type"in i&&i.type===Kr.ALIAS&&"value"in i&&typeof i.value=="string"&&(r[o]=t({type:"VARIABLE_ALIAS",id:i.value},n[o].defaultValue))}function Df(e,t){return e.length===1?e[0]:e.reduceRight((n,r)=>{let o=r.color,i=n.color,s=r.opacity,a=n.opacity,l=s*(1-a),u=l+a,c=l/u,d=a/u;return new Dt({r:o.r*c+i.r*d,g:o.g*c+i.g*d,b:o.b*c+i.b*d},t,u)})}function jr(e){return"stackLayoutVersion"in e&&e.stackLayoutVersion>=1}function $r(e){return e.strokes!==void 0&&e.strokes.length>0}function sv(e){return $r(e)&&e.strokeAlign!==void 0&&e.strokeAlign!=="INSIDE"}function Za(e){return!e||!("strokesIncludedInLayout"in e)||!e.strokesIncludedInLayout?!1:!jr(e)}function av(e,t){if(!Za(t))return{};let{top:n,right:r,bottom:o,left:i}=nc(e);return{borderLeftWidth:x(i),borderRightWidth:x(r),borderTopWidth:x(n),borderBottomWidth:x(o),borderColor:"transparent",borderStyle:"solid",backgroundClip:"padding-box"}}function wE(e,t){if(!(e.type==="FRAME"||e.type==="SLOT"||e.type==="RECTANGLE")||!Za(t))return 0;let r=nc(e);return x(r.left+r.right)}function BE(e,t){if(!(e.type==="FRAME"||e.type==="SLOT"||e.type==="RECTANGLE")||!Za(t))return 0;let r=nc(e);return x(r.top+r.bottom)}function nc(e){let t={top:0,right:0,bottom:0,left:0},n=vf(e);if(!$r(e))return t;switch(e.strokeAlign){case"CENTER":return{top:x(n.top/2),right:x(n.right/2),bottom:x(n.bottom/2),left:x(n.left/2)};case"OUTSIDE":return n;case"INSIDE":default:return t}}function UE(e){let t={top:0,right:0,bottom:0,left:0};if(!$r(e))return t;let n=vf(e);switch(e.strokeAlign){case"CENTER":return{top:n.top/2,right:n.right/2,bottom:n.bottom/2,left:n.left/2};case"OUTSIDE":return t;case"INSIDE":default:return n}}function VE(e,t){let{codeSyntaxLanguage:n}=t,r=e.map(o=>{if(o.visible!==!1&&o.type!=="IMAGE"&&o.type!=="VIDEO"&&o.type!=="PATTERN"){if(o.type==="SOLID")return o;if(Pu(o)&&o.gradientStops[0])return o.gradientStops[0]}}
8123).filter(Boolean);if(r.length!==0)return Df(r.map(o=>new Dt("color"in o?o.color:o,t,"opacity"in o?o.opacity:1,Vt,"boundVariables"in o?o.boundVariables?.color?.resolvedName:void 0,n&&("boundVariables"in o?o.boundVariables?.color?.resolvedCodeSyntax?.[n]:void 0))),t).value}function xS(e){if(e.rectangleCornerRadiiIndependent)return{topLeft:e.rectangleCornerRadii[0]?x(e.rectangleCornerRadii[0]):void 0,topRight:e.rectangleCornerRadii[1]?x(e.rectangleCornerRadii[1]):void 0,bottomRight:e.rectangleCornerRadii[2]?x(e.rectangleCornerRadii[2]):void 0,bottomLeft:e.rectangleCornerRadii[3]?x(e.rectangleCornerRadii[3]):void 0};let t=e.cornerRadius?x(e.cornerRadius):void 0;return{topLeft:t,topRight:t,bottomRight:t,bottomLeft:t}}function MS(e,t,n){let{codeSyntaxLanguage:r}=n,o={...e};return o.borderTopLeftRadius&&(o.borderTopLeftRadius=le(r&&t.boundVariables?.rectangleCornerRadii?.RECTANGLE_TOP_LEFT_CORNER_RADIUS?.resolvedCodeSyntax?.[r],t.boundVariables?.rectangleCornerRadii?.RECTANGLE_TOP_LEFT_CORNER_RADIUS?.resolvedName,`${o.borderTopLeftRadius}px`)??o.borderTopLeftRadius),o.borderTopRightRadius&&(o.borderTopRightRadius=le(r&&t.boundVariables?.rectangleCornerRadii?.RECTANGLE_TOP_RIGHT_CORNER_RADIUS?.resolvedCodeSyntax?.[r],t.boundVariables?.rectangleCornerRadii?.RECTANGLE_TOP_RIGHT_CORNER_RADIUS?.resolvedName,`${o.borderTopRightRadius}px`)??o.borderTopRightRadius),o.borderBottomRightRadius&&(o.borderBottomRightRadius=le(r&&t.boundVariables?.rectangleCornerRadii?.RECTANGLE_BOTTOM_RIGHT_CORNER_RADIUS?.resolvedCodeSyntax?.[r],t.boundVariables?.rectangleCornerRadii?.RECTANGLE_BOTTOM_RIGHT_CORNER_RADIUS?.resolvedName,`${o.borderBottomRightRadius}px`)??o.borderBottomRightRadius),o.borderBottomLeftRadius&&(o.borderBottomLeftRadius=le(r&&t.boundVariables?.rectangleCornerRadii?.RECTANGLE_BOTTOM_LEFT_CORNER_RADIUS?.resolvedCodeSyntax?.[r],t.boundVariables?.rectangleCornerRadii?.RECTANGLE_BOTTOM_LEFT_CORNER_RADIUS?.resolvedName,`${o.borderBottomLeftRadius}px`)??o.borderBottomLeftRadius),o}function lv(e,t,n,r){let{shouldOutputVariables:o}=r,i=xS(e),s=t?nc(e):{top:0,right:0,bottom:0,left:0},a={borderTopLeftRadius:i.topLeft?i.topLeft+Math.min(s.top,s.left):void 0,borderTopRightRadius:i.topRight?i.topRight+Math.min(s.top,s.right):void 0,borderBottomRightRadius:i.bottomRight?i.bottomRight+Math.min(s.bottom,s.right):void 0,borderBottomLeftRadius:i.bottomLeft?i.bottomLeft+Math.min(s.bottom,s.left):void 0},l=o?MS(a,e,r):a,u=VE(e.strokes,r),c=R4(e,r);return{...l,borderStyle:e.strokeDashes?"dashed":"solid",borderColor:n&&u===void 0?"rgba(0, 0, 0, 0)":u,borderTopWidth:c.top,borderBottomWidth:c.bottom,borderLeftWidth:c.left,borderRightWidth:c.right}}var HE=(e,t)=>{if(Za(t))return{top:0,left:0,right:0,bottom:0};let r=nc(e);return{top:-r.top,left:-r.left,right:-r.right,bottom:-r.bottom}};function R4(e,t){let{codeSyntaxLanguage:n,shouldOutputVariables:r}=t;if(e.individualStrokeWeights){let i=x(e.individualStrokeWeights.top),s=x(e.individualStrokeWeights.right),a=x(e.individualStrokeWeights.bottom),l=x(e.individualStrokeWeights.left);if(r){let u=le(n&&e.boundVariables?.individualStrokeWeights?.BORDER_TOP_WEIGHT?.resolvedCodeSyntax?.[n],e.boundVariables?.individualStrokeWeights?.BORDER_TOP_WEIGHT?.resolvedName,`${i}px`),c=le(n&&e.boundVariables?.individualStrokeWeights?.BORDER_RIGHT_WEIGHT?.resolvedCodeSyntax?.[n],e.boundVariables?.individualStrokeWeights?.BORDER_RIGHT_WEIGHT?.resolvedName,`${s}px`),d=le(n&&e.boundVariables?.individualStrokeWeights?.BORDER_BOTTOM_WEIGHT?.resolvedCodeSyntax?.[n],e.boundVariables?.individualStrokeWeights?.BORDER_BOTTOM_WEIGHT?.resolvedName,`${a}px`),f=le(n&&e.boundVariables?.individualStrokeWeights?.BORDER_LEFT_WEIGHT?.resolvedCodeSyntax?.[n],e.boundVariables?.individualStrokeWeights?.BORDER_LEFT_WEIGHT?.resolvedName,`${l}px`);return{top:u??i,right:c??s,bottom:d??a,left:f??l}}return{top:i,right:s,bottom:a,left:l}}let o=x(e.strokeWeight);return{top:o,right:o,bottom:o,left:o}}function vf(e){if(e.individualStrokeWeights)return{top:x(e.individualStrokeWeights.top),right:x(e.individualStrokeWeights.right),bottom:x(e.individualStrokeWeights.bottom),left:x(e.individualStrokeWeights.left)};let t=x(e.strokeWeight);return{top:t,right:t,bottom:t,left:t}}var A4=["ON_CLICK","ON_PRESS","MOUSE_DOWN","MOUSE_UP"];function Ni(e){let t=e.interactions??[];for(let n of t)if(A4.find(r=>r===n.event?.interactionType))return{cursor:"pointer"};return{}}var WE=e=>e.position==="absolute"&&["top","left","right","bottom"].every(n=>{let r=e[n];return r===0||r==="0"})?Object.entries(e).every(([n,r])=>r===void 0||["top","left","right","bottom","position"].includes(n)?!0:n==="display"?r==="block":!1):!1;function N4(e,t){return e.map(n=>
8123t.get(n)).filter(Boolean).filter(n=>n&&n.visible!==!1)}function uv(e,t){return e.filter(n=>{let r=t.get(n);return r?r.type!=="RECTANGLE":!0})}function cv(e,t,n,r){let o=e(Zu),i=N4(t,n),{renderOptions:s}=r,a=i.filter(d=>d.type==="FRAME");if(r.env==="server")return a.sort((d,f)=>d.size.x-f.size.x).map(d=>d.id);let u=GS(a,s),c=y4(u,o);return c?[c.nodeId]:[]}function GS(e,t){let n={breakpoints:[]};for(let r of e){let o="white";r.fills.every(a=>a.type==="SOLID")&&(o=VE(r.fills,t)??o);let s=r.name;n.breakpoints.push({nodeId:r.id,pageId:"",name:s,width:r.size.x,background:o})}return n.breakpoints.sort((r,o)=>o.width-r.width),n}function y4(e,t){let{breakpoints:n}=e;return t?n.find(r=>r.width<=t)??n[n.length-1]:n[0]}function dv(e,t,n,r){let o={...Ri(t),type:"INSTANCE",id:e.id,name:n?.name??t.name,mainComponentId:t.id,componentProperties:e.componentProperties,componentPropertyReferences:e.componentPropertyReferences,componentSetId:e.componentSetId,overrides:[]};for(let i of b4)i==="visible"&&r||(i in e?o[i]=e[i]:delete o[i]);return o}var b4=["constraints","constraintValues","layoutAlign","layoutGrow","gridColumnAnchorIndex","gridRowAnchorIndex","gridColumnSpan","gridRowSpan","layoutPositioning","relativeTransform","overrides","absoluteBoundingBox","isolatedAbsoluteRenderBounds","visible","scrollBehavior","maybeAnimateRotation"];function fv(e,t,n){if(t?.value?.mainComponentId)return!0;let r=e.componentPropertyReferences?.mainComponent;if(r){let o=n?.[r];if(o&&!("isDefault"in o&&o.isDefault))return!0}return!1}function pv(e,t,n,r,o,i,s){let a=t.mainComponentId,l,u=t.componentPropertyReferences?.mainComponent;if(u&&i?.[u])s?a=s:a=i[u].value;else if(t.componentSetId){l=n.get(t.componentSetId);let f=o.instanceState.backingComponentId.get(e,r);if(f)a=f;else if(t.componentProperties&&l.type==="COMPONENT_SET"){let p=l.children.map(h=>n.get(h)),_=Object.entries(l.componentPropertyDefinitions??{}).map(([h,m])=>{if(m.type!=="VARIANT")return;let E=t.componentProperties[h];if(!E){console.warn(`missing component property on instance for node ${t.id}`);return}if(E.type==="SLOT")return;let O=E.type==="TEXT"?E.value.characters:E.value,g="boundVariables"in E?E.boundVariables:void 0,I=O;if(g?.value&&(I=o.variableState.evaluateVariable(e,g.value.id,r)),typeof I=="boolean"&&m.variantOptions){let S=m.variantOptions.map(A=>A.toLowerCase());if(I===!0){let A=m.variantOptions.find((R,y)=>S[y]==="true");A&&(I=A)}else if(I===!1){let A=m.variantOptions.find((R,y)=>S[y]==="false");A&&(I=A)}}return I=m.variantOptions?.includes(String(I))?I:m.defaultValue,`${h}=${String(I)}`}).filter(Boolean).join(", "),T=p.find(h=>h.name===_);T&&(a=T.id)}}let c=n.get(a);return{componentSet:l,component:c}}function mv(e,t,n){if(e.type==="TEXT"&&"styleIdForText"in e.style&&e.style.styleIdForText){let r=e.style.styleIdForText,o=n.get(r);if(o){let i=t.get(o);i.type==="STYLE"&&i.styleType==="TEXT"&&Object.assign(e.style,Ri(i.style))}}}function kS(e,t){if(!t||!("componentPropertyReferences"in e)||!e.componentPropertyReferences)return;let n=e.componentPropertyReferences;for(let[r,o]of Object.entries(n)){if(t[o]===void 0){let a=L4(o);for(let[l,u]of Object.entries(t))if(l.startsWith(a)){e[r]=u.value;break}continue}let i=t[o],s="boundVariables"in i?i.boundVariables?.value:void 0;if(s){let a=e;a.boundVariables||(a.boundVariables={}),a.boundVariables[r]=s}if(i.type==="IMAGE"){console.warn(`Attempted to apply image prop on node ${e.id}`);continue}if(r==="characters")if(i.type==="TEXT")for(let[a,l]of Object.entries(i.value))e[a]=l;else e[r]=String(i.value);else e[r]=i.value}}function L4(e){let t=e.lastIndexOf("#");return e.slice(0,t+1)}function FS(e){if(e.startsWith("I")&&e.includes(";")){let t=e.split(";");if(t.length===2&&t[1])return t[1]}return e}function Ev(e){let t={},n=e.split(",").map(r=>r.trim());for(let r of n){let o=r.indexOf("=");if(o>0){let i=r.slice(0,o).trim(),s=r.slice(o+1).trim();t[i]=s}}return t}function C4(e,t){let n=new Map;if(!e.mainComponentId)return n;for(let r of e.overrides)if("componentProperties"in r.value&&"mainComponentId"in r.value){let i=t.get(r.value.mainComponentId).componentSetId;if(i)for(let[s,a]of Io(r.value.componentProperties)){let l=n.get(i);l?l.set(s,a.value):n.set(i,new Map([[s,a.value]]))}}return n}function P4(e){return"componentProperties"in e&&e.componentProperties!==void 0&&"componentSetId"in e&&e.componentSetId!==void 0}function D4(e,t,n,r){for(let o of n){let i=r.get(o)||new Map;i.set(e,t),r.set(o,i)}}function v4(e,t,n,r){let o=t.get(e.componentSetId);if(o)for(let[i,s]of Io(e.componentProperties))for(let[a,l]of o)Ue(s.value,l)&&Ue(i,a)&&D4(i,s.value,n,r)}function x4(e,t,n,r){if(!("children"in e)||!e.children||!t.size)return;let o=new Set,i=a=>
8123{if(a.type==="INSTANCE"&&a.componentSetId&&t.has(a.componentSetId)){o.add(a.id);return}if("children"in a&&a.children)for(let l of a.children){let u=FS(l);i(n.get(u))}};e.componentSetId&&i(n.get(e.componentSetId));function s(a){if(P4(a)&&v4(a,t,o,r),"children"in a&&a.children)for(let l of a.children){let u=FS(l),c=n.get(u);s(c)}}for(let a of e.children){let l=FS(a),u=n.get(l);s(u)}}function M4(e,t,n,r,o){if(!("children"in e)||!o.has(t.id))return;let i=o.get(t.id),s=new Map;for(let[u,c]of Io(t.componentProperties))i?.has(u)||s.set(u,c.value);let a=Ev(n.name);for(let[u,c]of Io(a))s?.has(u)||s.set(u,c);let l=e.children||[];for(let u of l){let c=r.get(u),d=Ev(c.name),f=Object.fromEntries(s);if(Ue(f,d)&&o.has(t.id))return c}}function _v(e,t){let{nodeById:n,websiteContext:{inheritedVariantPropertiesCache:r,processedNodesCache:o}}=t,i=n.get(e),s=n.get(i.mainComponentId);if(!o.has(i.id)){let a=C4(i,n);x4(s,a,n,r),o.add(i.id)}}function Tv(e,t,n,r,o){let{component:i}=t,{componentSet:s}=t;if(!s||!("children"in s))return i;let a=o.get(e.id);if(a)return n.get(a);let l=n.get(e.mainComponentId),u=M4(s,e,l,n,r);return u&&(i=u),i}function wS(e,t,n,r){let o={...e(r.modeContextState),...t};if(!("explicitVariableModes"in n)||!n.explicitVariableModes)return o;let i={};for(let[s,a]of Object.entries(n.explicitVariableModes)){let l=hv(s,r)||s,u=r.variableState.getAssetKeyOrLocalGuid(l);i[l]=a,i[u]=a}for(let[s,a]of Object.entries(o)){let l=hv(s,r)||s;if(!l)continue;i[l]===void 0&&(i[l]=a);let u=r.variableState.getAssetKeyOrLocalGuid(l);i[u]===void 0&&(i[u]=a)}return i}function hv(e,t){try{if(!t.variableState.hasAssetId(e))return;let n=t.variableState.getCollectionInfo(e);return n?n.baseCollectionId:void 0}catch{return}}var G4=["minWidth","maxWidth","minHeight","maxHeight","itemSpacing","paddingLeft","paddingTop","paddingRight","paddingBottom","counterAxisSpacing","strokeWeight"];function YE(e,t=1,n=1){if(t===1)return;let r=e;for(let o of G4)r[o]!==void 0&&(r[o]*=t);if(r.size){let{x:o,y:i}=r.size;r.size={x:o*t,y:i*t}}if(r.rectangleCornerRadii&&(r.rectangleCornerRadii=r.rectangleCornerRadii.map(o=>o*t)),r.individualStrokeWeights&&(r.individualStrokeWeights=Object.fromEntries(Object.entries(r.individualStrokeWeights).map(([o,i])=>[o,i*t]))),r.effects)for(let o of r.effects)"radius"in o&&o.radius&&(o.radius*=t),(o.type==="DROP_SHADOW"||o.type==="INNER_SHADOW")&&(o.offset.x*=t,o.offset.y*=t);if(r.constraintValues){let o=t/n;r.constraintValues=Object.fromEntries(Object.entries(r.constraintValues).map(([i,s])=>[i,{...s,pixelOffset:s.pixelOffset*o}]))}r.style?.fontSize&&(r.style.fontSize=Math.round(r.style.fontSize*t*100)/100),r.style?.lineHeightPx&&(r.style.lineHeightPx*=t),r.absoluteBoundingBox&&(r.absoluteBoundingBox.width*=t,r.absoluteBoundingBox.height*=t)}function Ov(e,t,n){let r=e.componentPropertyReferences?.slotContentId;if(!r)return null;let o=n[r];if(!o||o.type!=="SLOT")return Me.reportError("Slot content node not found or not a slot"),null;if(!_E(o.value.guid))return Me.reportError("Invalid slot content node ID"),null;let i=t.get(ot(o.value.guid));return i.type!=="FRAME"?(Me.reportError("Expected slot content node to be a frame"),null):i}function gv(e,t){return{...e,size:t.size,relativeTransform:t.relativeTransform,children:t.children,isAssignedSlot:!0}}var Iv="I";function k4(e){return e.startsWith(Iv)}function rc(e){return k4(e)?e:`${Iv}${e}`}function KE(e){let t=fe(),n=(0,bs.useContext)(Lf),r=(0,bs.useRef)(),o=r.current,i=new Map,s=e.map(d=>{let f=d.keyWithOverrides??d.key,p=o?o.get(f):void 0;return(!p||!Ue(p.args,d))&&(p={args:d,value:F4(d,n,t)}),i.set(f,p),p.value}),a=Ns(s,Ue),l=(0,bs.useMemo)(()=>de(d=>{let f=a.map(d),p=[],_=[];return f.forEach(T=>{"errorMessage"in T?_.push(T):p.push(T)}),{nodes:p,errors:_}}),[a]),{nodes:u,errors:c}=Ae(l);return(0,bs.useEffect)(()=>(c.forEach(d=>{n.setMaterializationError(d.nodeId,d)}),()=>{c.forEach(d=>{n.setMaterializationError(d.nodeId)})}),[c,n]),r.current=i,u}function F4(e,t,n){return de(r=>{try{let o=Sv(e,r,n);return r(Cf)&&rv(o),o}catch(o){return o instanceof Error?(t.reportError(o,{"error-boundary-name":e.keyWithOverrides??e.key}),{nodeName:e.keyWithOverrides??e.key,nodeId:e.nodeId,errorMessage:o.message+` 8124`+o.stack}):{nodeName:e.keyWithOverrides??e.key,nodeId:e.nodeId,errorMessage:String(o)}}})}var w4={mainComponentId:!0,overrides:!0,componentProperties:!0,componentPropertyDefinitions:!0,componentSetId:!0,mainComponent:!0,overrideKey:!0};function Ja(e,t,n){return Sv(t,e,n)}var B4=600;function Sv(e,t,n){let{key:r,parentState:o,nodeById:i,animateRootIds:s,animateProps:a,assetIdToGuid:l,guidToUrl:u}=e,{autoLayoutTransitionAtom:c,transitionProps:d}=a??{},f=e.overrides,p=i.get(e.backingLayerId??e.nodeId),_=p,T=_.timelineOffset,h=_.outerTimelineDuration,m=T??e.ancestorTimelineOffsetSec,E=T!=null?h:e.ancestorOuterTimelineDurationSec;if(p.type==="SLOT"){let ce=Ov(p,i,e.componentProperties??{});ce&&(p=gv(p,ce))}let O=s.has(e.backingLayerId??e.nodeId),g=Ri(p),I,S,A=!1,R=!1;
8124"isInAnimateTree"in g&&g.isInAnimateTree&&(R=!0),e.parentPath?(S=[...e.parentPath,r],g.type==="INSTANCE"?I=[]:I=S):g.type==="INSTANCE"&&(I=[],S=[]),n.renderOptions.useFigmaComponents&&"componentPropertyReferences"in g&&g.componentPropertyReferences&&g.componentPropertyReferences.visible&&(g.visible=!0),kS(g,e.componentProperties);let y=g.type==="INSTANCE"?g.mainComponentId:void 0;if(A=BS(g,S,f,void 0,"uniformScaleFactor"in g?g.uniformScaleFactor:void 0,e.componentProperties)||A,g.type==="INSTANCE"&&g.mainComponentId&&g.mainComponentId!==y){let ce=i.get(g.mainComponentId);ce.type==="COMPONENT"&&ce.componentSetId&&(g.componentSetId=ce.componentSetId)}if(g.type==="INSTANCE"){let ce=g.overrides?.find(tt=>tt.key.length===0);ce&&Av(g,ce)}let b=o.getChildState(r,g,i,n.atomStore),L=b.instanceState.backingComponentId,{parentStates:D}=e;g.type==="INSTANCE"&&(D===null&&(D=new Map),"componentSetId"in g&&g.componentSetId&&(D=new Map(D),D.set(g.componentSetId,{backingComponentIdState:L,transitionAtom:b.transitionAtom,parentAutoLayoutTransitionAtom:c,stateResetHandlers:b.stateResetHandlers})));let F,U,N=!1;try{if(g.type==="INSTANCE"){p.type;let ce=wS(t,e.modeContext,g,b),tt=xf(S,f),pn=tt?.value?.mainComponentId??void 0,Ft=pv(t,g,i,ce,b,e.componentProperties,pn);if(U=Ft.component,U.isUnreachable){let sr=new ht("Component node was incorrectly marked for pruning");sr.errorDetail=`instanceId: ${g.id}, componentId: ${U.id}`,Me.reportError(sr)}g.componentSetId&&s.has(g.componentSetId)&&(N=!0),U=Tv(g,{component:Ft.component,componentSet:Ft.componentSet},i,n.inheritedVariantPropertiesCache,n.computedVariantCache);let Cr=fv(g,tt,e.componentProperties);g=dv(g,U,Ft.componentSet?.type==="COMPONENT_SET"?Ft.componentSet:void 0,Cr),kS(g,e.componentProperties),Cr&&y!==g.mainComponentId&&(yv(g,p),bv(g,p,tt)),A=BS(g,I,_o(g.overrides,{nodeId:g.id}),{backingComponent:U,nodeById:i},"uniformScaleFactor"in p?p.uniformScaleFactor:void 0,g.componentProperties)||A}g=DD(g),mv(g,i,l),F=wS(t,e.modeContext,g,b),A=iv(t,g,b.variableState,F,n.renderOptions)||A,U4(t,g,e.nodeId,e.stablePathToAssetInfo,e.stablePathToConstraints,n.websiteData.assets),PD(g,b.cmsDataState,u),A&&g.type==="SVG"&&(g.isDynamic=!0)}catch(ce){throw console.error("Materialization error",ce),new te("Materialization error",ce)}Pv(g);let K={websiteContext:n,node:g,sourceStablePath:H4(g),variableState:b.variableState,backingComponentIdState:L,parentStates:D,transitionAtom:b.transitionAtom,nodeById:i,modeContext:F},C=VS(K),M=C?.length?Lv(t,K,C):void 0,P=Cv(t,b.transitionAtom,b.autoLayoutTransitionAtom),{disableBehaviors:z,disableImageOptimization:Ee,renderComponentSetNodes:pe}=n.renderOptions,ye=g;ye.timelineOffset==null&&m!=null&&(ye.timelineOffset=m,ye.outerTimelineDuration=E);let Le=US(g,ce=>i.get(ce)),We=cD(N,O,!!z,d),De={transitionData:P??d?.transitionData,smartAnimateType:We},ae=O||R?c??b.autoLayoutTransitionAtom:void 0,Oe=e.rootOffset??("absoluteBoundingBox"in g?{x:g.absoluteBoundingBox.x,y:g.absoluteBoundingBox.y}:void 0),oe=[];if("children"in g&&Array.isArray(g.children)){let ce=g.children,tt,{isFigmake:pn}=n;uS(p)&&(ce=cv(t,ce,i,n),tt=ce);let Ft=g.type==="FRAME"&&e.breakpointWidth!==void 0&&"size"in g&&Math.abs(g.size.x-e.breakpointWidth)<1;pn&&Ft&&(ce=uv(ce,i));let Cr=g.type==="INSTANCE"?Rv(g,{backingComponent:U,nodeById:i},_o(g.overrides,{nodeId:g.id})):f,sr=Cr?.filter(Dr=>Dr.value.name!==void 0),Yi=V4(e.stablePathPrefix,g),md=new Map,Pr=new Map,ca=[];for(let Dr=0;Dr<ce.length;Dr++){let Ki=ce[Dr],zi=tt?tt[Dr]:void 0,vr=i.get(Ki),Xi=vr.name,Lp=vr.overrideKey,Cp=uS(p)&&vr.type==="FRAME",ni=Cp?vr.size.x:void 0,Hl=Oe;if(Cp)Hl={x:vr.absoluteBoundingBox.x,y:vr.absoluteBoundingBox.y};else if(g.type==="INSTANCE"){let Dp={x:Oe.x-g.absoluteBoundingBox.x,y:Oe.y-g.absoluteBoundingBox.y};Hl={x:U.absoluteBoundingBox.x+Dp.x,y:U.absoluteBoundingBox.y+Dp.y}}let Pp=md.get(Xi)??0;md.set(Xi,Pp+1);let uO=oc(Xi,Pp,g),Ed=sr?Nv([...I??[],uO],sr)??Xi:Xi,Wl=Pr.get(Ed)??0;Pr.set(Ed,Wl+1);let da=Yi?Yi.concat(";",Lp??Ki):Ki;ca.push(da||Ki);let cO=(e.uniformScaleFactor||1)*("uniformScaleFactor"in vr&&vr.uniformScaleFactor?vr.uniformScaleFactor:1);oe.push({key:uO,keyWithOverrides:oc(Ed,Wl,g),parentState:b,nodeId:da,stablePathPrefix:Yi,backingLayerId:Ki,modeContext:F,parentPath:I,preexpandedNodeId:zi,nodeById:i,assets:e.assets,assetIdToGuid:l,guidToUrl:u,animateRootIds:s,stablePathToAssetInfo:e.stablePathToAssetInfo,stablePathToConstraints:e.stablePathToConstraints,overrides:Cr,componentProperties:g.type==="INSTANCE"||g.type==="CODE_INSTANCE"||g.type==="CODE_LAYER"?g.componentProperties:e.componentProperties,parentStates:D,animateProps:{transitionProps:De,autoLayoutTransitionAtom:ae},uniformScaleFactor:cO,breakpointWidth:ni??e.breakpointWidth,rootOffset:Hl,ancestorTimelineOffsetSec:m,ancestorOuterTimelineDurationSec:E})}g.children=ca}let ft=Y4(t,e.assets,g),et=W4(g,w4),he=et.type==="COMPONENT"||et.type==="INSTANCE"?et.type:void 0;he&&(et.type="FRAME");let Ge=OE(et),Ye=Ge.type;return`${Ye}`,Object.assign(Ge,{materializedChildNodeProps:oe,transitionProps:De,interactions:C,interactionHandlers:M,
8124key:e.keyWithOverrides??e.key,variableState:b.variableState,modeContext:F,keyframeData:Le,transitionOverrides:g.transitionOverrides,assets:ft}),(g.type==="CODE_INSTANCE"||g.type==="CODE_LAYER")&&Object.assign(Ge,{componentProperties:g.componentProperties}),(Ge.type==="RECTANGLE"||Ge.type==="IMAGE"||Ge.type==="FRAME"||Ge.type==="SVG")&&!Ee&&ft&&Object.values(ft).length&&(e.breakpointWidth,Ge.lazyLoad=Ge.absoluteBoundingBox.x>Oe.x+e.breakpointWidth||Ge.absoluteBoundingBox.y>Oe.y+B4),he&&Object.assign(Ge,{originalType:he}),ID(Ge),YE(Ge,e.uniformScaleFactor,"uniformScaleFactor"in p?p.uniformScaleFactor:void 0),Ge}function oc(e,t,n){return n?.type==="WEBPAGE"?"":e+t}function U4(e,t,n,r,o,i){if(!n.includes("I"))return;t.id=n;let s=o.get(n);if(s&&"constraintValues"in t&&(t.constraintValues=s),t.type==="SVG"||t.type==="IMAGE"){let a=r.get(n),l=a?.hash;if(l){let u=i.get(l);if(u){let c=e(u);c&&c.type==="GENERATED_ASSET"&&(t.hash=l,t.type=c?.format==="SVG"?"SVG":"IMAGE")}}a?.constraintValues&&(t.constraintValues=a.constraintValues)}}function V4(e,t){if(e)return t.type==="INSTANCE"||t.type==="SLOT"&&t.isAssignedSlot?rc(t.id):e;if(t.type==="INSTANCE")return rc(t.id)}function H4(e){return e.type==="INSTANCE"?rc(e.id):e.id}function W4(e,t){let n={...e};for(let r in t)delete n[r];return n}function Y4(e,t,n){let r,o=i=>{let s=t.get(i),a=e(s);r=r??{},r[i]=a};if("fills"in n)for(let i of n.fills)i.visible!==!1&&(i.type==="IMAGE"&&o(PE(i)),i.type==="VIDEO"&&o(i.videoRef));if("hash"in n&&o(n.hash),"behaviors"in n){let i=vS(n.behaviors);if(i&&o(i),n?.behaviors?.code!==void 0)for(let s of n.behaviors.code)for(let[a,l]of Object.entries(s.assignments))typeof l=="object"&&l.image!==null&&(o(l.image),l.animatedImage!==null&&o(l.animatedImage))}if("componentProperties"in n)for(let i of Object.values(n.componentProperties))i.type==="IMAGE"&&i.value.image&&(o(i.value.image),i.value.animatedImage!==null&&o(i.value.animatedImage));if("styleOverrideTable"in n){for(let i of Object.values(n.styleOverrideTable))if(i.fills)for(let s of i.fills)s.visible!==!1&&s.type==="IMAGE"&&o(PE(s))}return"effectSvgFileName"in n&&typeof n.effectSvgFileName=="string"&&o(n.effectSvgFileName.replace(".svg","")),r}function Rv(e,t,n){if(!n)return;let r=Mv(e,t),o=[];for(let i of n){if(i.key.length===0)continue;let s=Dv(i.key,e,t.nodeById),a=i.key,l=!1;if(!s){let d=i.key[i.key.length-1];let f=z4(d,e,t.nodeById);f&&(s=f.node,a=f.key,l=!0)}if(!s)continue;let u={key:a,value:i.value,componentId:i.componentId};if(r){u.value={};let d=Dv(i.key,r,t.nodeById);if(d===void 0){let f=new ht("No node in variant for override");f.errorDetail=JSON.stringify({overrideKey:i.key,nodeId:e.id,nodeName:e.name,variantId:r.id,variantName:r.name}),Me.reportError(f);continue}for(let[f,p]of Io(i.value)){let _=YS(f,p,s,d);_!==void 0&&(u.value[f]=_)}}let c=o.findIndex(d=>Ue(d.key,a));if(c>-1){let d=o[c];l?u.value=HS(u,d):u.value=HS(d,u),o[c]=u}else o.push(u)}return o}function xf(e,t){if(!(!t||!e))return t.find(n=>Ue(n.key,e))}var Io=e=>Object.entries(e);function xv(e,t){let n=e.filter(o=>ot(o.id)!==Ze),r=t.filter(o=>o.isDeleted).map(o=>ot(o.id));return n=n.filter(o=>!r.includes(ot(o.id))),t.forEach(o=>{if(o.isDeleted)return;let i=n.findIndex(s=>ot(s.id)===ot(o.id));i===-1?n.push(o):n[i]=o}),n}function BS(e,t,n,r,o=1,i){if(!t||!n)return!1;let s=xf(t,n);if(s?.value===void 0)return!1;let a=o!==0?1/o:1;YE(s.value,a,a);let l=Mv(e,r);for(let[u,c]of Io(s.value))X4(u,e,i)||(e.type==="INSTANCE"&&u==="overrides"?c=WS(_o(e.overrides,{nodeId:e.id}),_o(c,{nodePath:t})):u==="interactions"&&"interactions"in e&&(c=xv(e.interactions??[],c)),!(e.type==="INSTANCE"&&l&&(c=YS(u,c,r.backingComponent,l),c===void 0))&&(c===null?delete e[u]:e[u]=c));return!0}function Av(e,t){if(t.value.explicitVariableModes===null?delete e.explicitVariableModes:e.explicitVariableModes=t.value.explicitVariableModes,t.value.boundVariables===null||t.value.boundVariables?.componentProperties===null)for(let n in e.componentProperties){let r=e.componentProperties[n];r&&"boundVariables"in r&&r?.boundVariables&&delete r.boundVariables}else if(t.value.boundVariables?.componentProperties)for(let n in e.componentProperties){let r=e.componentProperties[n];let i=t.value.boundVariables.componentProperties[n];i&&"boundVariables"in r&&(r.boundVariables={value:i})}}function HS(e,t){let n=e.value,r=t?.value||{},o={...n,...r};return"overrides"in n&&"overrides"in r&&(o.overrides=WS(_o(n.overrides,{overrideId:n.id,overrideKey:n.overrideKey}),_o(r.overrides,{overrideId:r.id,overrideKey:r.overrideKey}
8124))),"interactions"in n&&"interactions"in r&&(o.interactions=xv(n.interactions??[],r.interactions??[])),o}function WS(e,t){if(!e)return t;if(!t)return e;if(e&&t){let n=[];for(let r of e){let o=xf(r.key,t);n.push({key:r.key,componentId:o?.componentId??r.componentId,value:HS(r,o)})}for(let r of t)xf(r.key,n)||n.push(r);return n}}var K4=new Set(["characters","characterStyleOverrides","styleOverrideTable","lineTypes","lineIndentations","fontSize","letterSpacing","lineHeight","fontStyle","fontVariations","inheritTextStyleId","lineStyleOverrides","resolvedParagraphValues"]);function YS(e,t,n,r){if(e==="name")return t;if(e==="interactions"){let o=e in r?r.interactions??[]:[],i=new Set(o.map(a=>ot(a.id)??Ze));return i.add(Ze),t.filter(a=>!i.has(ot(a.id)??Ze))}else if(e==="size"&&e in n&&e in r){let o=t;return{x:n.size.x===r.size.x?o.x:n.size.x,y:n.size.y===r.size.y?o.y:n.size.y}}else{if(e==="componentProperties")return t;if(e==="overrides"&&e in n&&e in r){let o=[];for(let i of _o(t,{newNodeId:n.id,origNodeId:r.id})){let s=n.overrides.find(c=>Ue(c.key,i.key)),a=r.overrides.find(c=>Ue(c.key,i.key));if(!s||!a){o.push(i);continue}let l={key:i.key,value:{},componentId:i.componentId},u=!1;for(let[c,d]of Io(i.value))d=YS(c,d,s.value,a.value),d!==void 0&&(l.value[c]=d,u=!0);u&&o.push(l)}return o}else if(K4.has(e))return t}if(Ue(n[e],r[e]))return t}function Mv(e,t){if(!(e.type==="INSTANCE"&&t&&e.componentSetId))return;let n=t.nodeById.get(e.componentSetId);n!==void 0&&n.type;let r=Io(e.componentProperties).map(([o,i])=>i.type!=="VARIANT"?void 0:`${o}=${String(i.value)}
8124`).filter(Boolean).join(", ");if(r&&t.backingComponent.name!==r){for(let o of n.children){let i=t.nodeById.get(o);if(i.name===r)return i}console.warn("Could not find initial variant for instance",e.id)}}function Gv(e,t){return e.type==="FRAME"||e.type==="SLOT"||e.type==="GROUP"||e.type==="INSTANCE"&&t.id===e.id||e.type==="COMPONENT"&&t.id===e.id||e.type==="REPEATER"}function Dv(e,t,n){let r=t;for(let o of e){if(!r||!Gv(r,t))return;let i=r.children.map(a=>n.get(a));r=void 0;let s=new Map;for(let a=0;a<i.length;++a){let l=i[a];let u=s.get(l.name)??0;s.set(l.name,u+1);let c=oc(l.name,u);if(o===c){r=l;break}}}return r}function z4(e,t,n){let r=[{key:[],node:t}],o=new Map;for(;r.length>0;){let i=r.pop();let s=o.get(i.node.name)??0;if(oc(i.node.name,s)===e)return i;if(o.set(i.node.name,s+1),!Gv(i.node,t))continue;let a=i.node.children.map(c=>n.get(c)),l=new Map,u=[];a.forEach(c=>{let d=l.get(c.name)??0;l.set(c.name,d+1),u.push({key:[...i.key,oc(c.name,d)],node:c})}),r.push(...u.reverse())}}function Nv(e,t){for(let n of t)if(n.value.name!==void 0&&n.value.name!==null&&Ue(n.key,e))return n.value.name}function yv(e,t){let n=e.overrides?.find(r=>r.key.length===0);if(n&&n.value.size){let r=n.value.size,o="uniformScaleFactor"in t?t.uniformScaleFactor:void 0,i=o?{x:r.x/o,y:r.y/o}:r;e.size=i}}function vv(e,t){return e?.filter(n=>n.componentId===t)??[]}function bv(e,t,n){let r=vv(_o(t.overrides),e.mainComponentId),o=n?.value?.overrides?vv(_o(n.value.overrides),e.mainComponentId):void 0;e.overrides=WS(r,o)??[]}function X4(e,t,n){if(!n||!("componentPropertyReferences"in t))return!1;let r=t.componentPropertyReferences?.[e];if(!r)return!1;let o=n[r];return o===void 0?!1:!("isDefault"in o&&o.isDefault)}var j4={E5FBBA911B2B7A09E649D4BE6CDF8591EAEFC881:!1};function zE(e){return e&&e.E5FBBA911B2B7A09E649D4BE6CDF8591EAEFC881!==void 0?e.E5FBBA911B2B7A09E649D4BE6CDF8591EAEFC881:j4.E5FBBA911B2B7A09E649D4BE6CDF8591EAEFC881}function ic(e,t){throw new Error(t??`Uncaught type ${JSON.stringify(e)}`)}function kv(e,t,...n){typeof FIGBUILD_PROD=="boolean"&&!FIGBUILD_PROD&&!e&&console.error(`Failed assertion: ${t}`,...n)}var $4={"size.x":"WIDTH","size.y":"HEIGHT",minWidth:"MIN_WIDTH",maxWidth:"MAX_WIDTH",minHeight:"MIN_HEIGHT",maxHeight:"MAX_HEIGHT",opacity:"OPACITY",visible:"VISIBLE",cornerRadius:"CORNER_RADIUS",topLeftRadius:"RECTANGLE_TOP_LEFT_CORNER_RADIUS",topRightRadius:"RECTANGLE_TOP_RIGHT_CORNER_RADIUS",bottomLeftRadius:"RECTANGLE_BOTTOM_LEFT_CORNER_RADIUS",bottomRightRadius:"RECTANGLE_BOTTOM_RIGHT_CORNER_RADIUS","rectangleCornerRadii.RECTANGLE_TOP_LEFT_CORNER_RADIUS":"RECTANGLE_TOP_LEFT_CORNER_RADIUS","rectangleCornerRadii.RECTANGLE_TOP_RIGHT_CORNER_RADIUS":"RECTANGLE_TOP_RIGHT_CORNER_RADIUS","rectangleCornerRadii.RECTANGLE_BOTTOM_LEFT_CORNER_RADIUS":"RECTANGLE_BOTTOM_LEFT_CORNER_RADIUS","rectangleCornerRadii.RECTANGLE_BOTTOM_RIGHT_CORNER_RADIUS":"RECTANGLE_BOTTOM_RIGHT_CORNER_RADIUS","individualStrokeWeights.BORDER_TOP_WEIGHT":"BORDER_TOP_WEIGHT","individualStrokeWeights.BORDER_RIGHT_WEIGHT":"BORDER_RIGHT_WEIGHT","individualStrokeWeights.BORDER_BOTTOM_WEIGHT":"BORDER_BOTTOM_WEIGHT","individualStrokeWeights.BORDER_LEFT_WEIGHT":"BORDER_LEFT_WEIGHT",paddingLeft:"STACK_PADDING_LEFT",paddingRight:"STACK_PADDING_RIGHT",paddingTop:"STACK_PADDING_TOP",paddingBottom:"STACK_PADDING_BOTTOM",itemSpacing:"STACK_SPACING",counterAxisSpacing:"STACK_COUNTER_SPACING",rotation:"MOTION_ROTATION",translationX:"MOTION_TRANSLATION_X",translationY:"MOTION_TRANSLATION_Y",translationXY:"MOTION_TRANSLATION_XY",scaleX:"MOTION_SCALE_X",scaleY:"MOTION_SCALE_Y",scaleXY:"MOTION_SCALE_XY",shear:"MOTION_SHEAR",fontSize:"FONT_SIZE",letterSpacing:"LETTER_SPACING",lineHeight:"LINE_HEIGHT",paragraphSpacing:"PARAGRAPH_SPACING",paragraphIndent:"PARAGRAPH_INDENT",characters:"TEXT_DATA",fills:"fills",strokes:"strokes"};function Z4(e){let t=[];if(!e.boundKeyframes)return[];for(let[n,r]of Object.entries(e.boundKeyframes))if(!(!r||typeof r!="object"))if("type"in r&&r.type==="EXPRESSION")t.push([n,r]);else if(Array.isArray(r)){let o=r[0];o&&typeof o=="object"&&"type"in o&&o.type==="EXPRESSION"&&t.push([n,o]
8124)}else for(let[o,i]of Object.entries(r))i&&typeof i=="object"&&i.type==="EXPRESSION"&&t.push([`${n}.${o}`,i]);return t}function J4(e,t){let n=t(e);if(!n||n.type!=="KEYFRAME_TRACK")return null;let r=n.children??[],o=[];for(let i of r){let s=t(i);!s||s.type!=="KEYFRAME"||o.push(s)}return{id:n.id,keyframes:o,keyframeOperation:n.keyframeOperation}}function US(e,t){let n={},r=Z4(e);if(r.length===0)return{};if(!e.timelineDuration)return{};let o=Math.round(e.timelineDuration*1e6),i=e,s=i.timelineOffset?Math.round(i.timelineOffset*1e6):0,a=i.outerTimelineDuration?Math.round(i.outerTimelineDuration*1e6):o;for(let[l,u]of r){let c=$4[l];if(!c)continue;let d=u.expressionArguments[0],f=u.expressionArguments[1],p=[];for(let _ of f.value.parameters){let T=J4(_.keyframeTrack,t);if(!T)continue;let h=T.keyframes.map(m=>{let E,O=m.easing,{type:g}=O;switch(g){case"CUSTOM_BEZIER":case"CUSTOM_CUBIC":E={type:"BEZIER",value:O.value};break;case"CUSTOM_SPRING":E={type:"SPRING",value:O.value};break;case"EASE_IN":E={type:"BEZIER",value:{p1x:.42,p1y:0,p2x:1,p2y:1}};break;case"EASE_OUT":E={type:"BEZIER",value:{p1x:0,p1y:0,p2x:.58,p2y:1}};break;case"EASE_IN_AND_OUT":E={type:"BEZIER",value:{p1x:.42,p1y:0,p2x:.58,p2y:1}};break;case"LINEAR":E={type:"LINEAR"};break;case"EASE_IN_BACK":E={type:"BEZIER",value:{p1x:.3,p1y:-.05,p2x:.7,p2y:-.5}};break;case"EASE_OUT_BACK":E={type:"BEZIER",value:{p1x:.45,p1y:1.45,p2x:.8,p2y:1}};break;case"EASE_IN_AND_OUT_BACK":E={type:"BEZIER",value:{p1x:.7,p1y:-.4,p2x:.4,p2y:1.4}};break;case"GENTLE":E={type:"SPRING",value:{mass:1,stiffness:100,damping:15}};break;case"QUICK":E={type:"SPRING",value:{mass:1,stiffness:300,damping:20}};break;case"BOUNCY":E={type:"SPRING",value:{mass:1,stiffness:600,damping:15}};break;case"SLOW":E={type:"SPRING",value:{mass:1,stiffness:80,damping:20}};break;case"SPRING":E={type:"SPRING",value:{mass:1,stiffness:100,damping:15}};break;case"HOLD":E={type:"HOLD"};break;default:ic(g)}return{...m,easing:E,timelinePosition:Math.round(m.timelinePosition*1e6)}});p.push({...T,keyframes:h})}if(p.length>0){let _={baseValue:d,tracks:p,timelineDuration:a,...s!==0?{accumulatedAncestorOffsetMicros:s}:{}};c==="fills"||c==="strokes"?n[c]={0:_}:n[c]=_}}return q4(n),n}function Fv(e,t){let n=e.baseValue;return{...e,baseValue:{type:"FLOAT",value:n.type==="VECTOR"?n.value[t]:0},tracks:e.tracks.map(r=>({...r,keyframes:r.keyframes.map(o=>({...o,value:{type:"FLOAT",value:o.value.type==="VECTOR"?o.value.value[t]:0}}))}))}}function q4(e){let t=e,n=[{vec:"MOTION_TRANSLATION_XY",x:"MOTION_TRANSLATION_X",y:"MOTION_TRANSLATION_Y"},{vec:"MOTION_SCALE_XY",x:"MOTION_SCALE_X",y:"MOTION_SCALE_Y"}];for(let r of n){let o=t[r.vec];o&&o.baseValue.type==="VECTOR"&&(t[r.x]||(t[r.x]=Fv(o,"x")),t[r.y]||(t[r.y]=Fv(o,"y")),delete t[r.vec])}}var Q4={motion:"easeInOut",css:"ease-in-out"},e5=[1,100,15],t5=On.OUT_CUBIC,wv=.3;function Bv(e,t){let n=ho(t);if(n)return{ease:n.ease};let r=e.easingType??t5,[o,i,s]=e.easingFunction&&e.easingFunction.length>=3?e.easingFunction:e5;switch(r){case On.LINEAR:return{ease:"linear"};case On.IN_CUBIC:return{ease:"easeIn"};case On.OUT_CUBIC:return{ease:"easeOut"};case On.INOUT_CUBIC:return{ease:"easeInOut"};case On.IN_BACK_CUBIC:return{ease:"backIn"};case On.OUT_BACK_CUBIC:return{ease:"backOut"};case On.INOUT_BACK_CUBIC:return{ease:"backInOut"};case On.CUSTOM_CUBIC:return{ease:e.easingFunction?e.easingFunction:Q4.motion};case On.SPRING:case On.CUSTOM_SPRING:case On.GENTLE_SPRING:case On.SPRING_PRESET_ONE:case On.SPRING_PRESET_TWO:case On.SPRING_PRESET_THREE:return{type:"spring",stiffness:i,damping:s,mass:o}}}var be=function(e){return e.VISIBLE="visible",e.INITIAL="initial",e.EXIT="exit",e.SCROLL_DIRECTION="scrollDirection",e.HOVER="hover",e.PRESS="press",e.FOCUS="focus",e.VISIBLE_SMART_ANIMATE="visibleSmartAnimate",e.HIDDEN_SMART_ANIMATE="hiddenSmartAnimate",e}({});function zu(e){return(t,n)=>e?`${e instanceof Q?e.value:e} ${n}`:n}var n5=new Set(Object.values(be));function r5(e){let t=[],n=e.filter(o=>o!==void 0),r=n.reduce((o,i)=>({...o,...i}));for(let o of n)for(let[i,s]of Io(o))if(i==="variants")for(let a in s)n5.has(a)?Ue(r.variants?.[a],s[a])||t.pu
8124sh(`variants: ${a} has been overwritten`):t.push(`variants: ${a} is not a valid variant`);else Ue(r[i],s)||t.push(`prop "${i}" has been overwritten`);return t}function Uv(e,t){if(zE(t.labs))return;let n=r5(e);n.length,`${n.join(", ")}`}Fe();var Fne={allowImageLasso:!1,allowsPDFImport:!1,canCreateCodeLayerFromDesign:!1,editorType:Hv.DESIGN,enabledDakota:!1,enabledFigmake:!1,enabledMakeInDesign:!1,enabledSites:!1,hasTextSuggestionsPermission:!1,isCooper:!1,isSlides:!1,supportsPrintMarks:!1,supportsRulerUnitChange:!1,toggleTimelineKeyframe:!1},wne={canHideUI:!0,canRedo:!1,canUndo:!1,collabToolsInDesign:!1,currentTool:Wv.NONE,editMode:Vv.DESIGN_LAYOUT,fileKeyIsValid:!1,hasActiveCanvas:!1,hasActiveDocument:!1,inBranchFile:!1,interopToolMode:0,isAiDisabled:!1,isAiDisabledFigJam:!1,isFocusModeActive:!1,isLayoutEditMode:!0,isReadOnly:!1,isRecording:!1,isRunningInteractionTests:!1,isSelectionMode:!0,isSelectionValidForSelectAllMatching:!1,isShapeEditMode:!0,isUndoRedoAllowed:!1,isUserLoggedIn:!1,toolsV2Enabled:!1,topLevelMode:0};Fe();function KS(e){return e}(function(e){e.INVALID=e("");function t(n){return n}e.toString=t})(KS||(KS={}));function Yv(e){return e}(function(e){e.INVALID=e("");function t(n){return n}e.toString=t})(Yv||(Yv={}));function Kv(e){return e}(function(e){e.INVALID=e("");function t(n){return n}e.toString=t})(Kv||(Kv={}));function zv(e){return e}(function(e){e.INVALID=e("");function t(n){return n}e.toString=t})(zv||(zv={}));function Xv(e){return e}(function(e){e.INVALID=e("");function t(n){return n}e.toString=t})(Xv||(Xv={}));function jv(e){return e}(function(e){e.INVALID=e("");function t(n){return n}e.toString=t})(jv||(jv={}));function $v(e){return e}(function(e){e.INVALID=e("");function t(n){return n}e.toString=t})($v||($v={}));function Zv(e){return e}(function(e){e.INVALID=e("");function t(n){return n}e.toString=t})(Zv||(Zv={}));function Jv(e){return e}(function(e){e.INVALID=e("");function t(n){return n}e.toString=t})(Jv||(Jv={}));function qv(e){return e}(function(e){e.INVALID=e("");function t(n){return n}e.toString=t})(qv||(qv={}));function Qv(e){return e}(function(e){e.INVALID=e("");function t(n){return n}e.toString=t})(Qv||(Qv={}));function ex(e){return e}(function(e){e.INVALID=e("");function t(n){return n}e.toString=t})(ex||(ex={}));function tx(e){return e}(function(e){e.INVALID=e("");function t(n){return n}e.toString=t})(tx||(tx={}));function nx(e){return e}(function(e){e.INVALID=e("");function t(n){return n}e.toString=t})(nx||(nx={}));function rx(e){return e}(function(e){e.INVALID=e("");function t(n){return n}e.toString=t})(rx||(rx={}));function ox(e){return e}(function(e){e.INVALID=e("");function t(n){return n}e.toString=t})(ox||(ox={}));function ix(e){return e}(function(e){e.INVALID=e("");function t(n){return n}e.toString=t})(ix||(ix={}));function sx(e){return e}(function(e){e.INVALID=e("");function t(n){return n}e.toString=t})(sx||(sx={}));function zS(e){return e}(function(e){e.INVALID=e("");function t(n){return n}e.toString=t})(zS||(zS={}));function ax(e){return e}(function(e){e.INVALID=e("");function t(n){return n}e.toString=t})(ax||(ax={}));function lx(e){return e}(function(e){e.INVALID=e("");function t(n){return n}e.toString=t})(lx||(lx={}));function ux(e){return e}(function(e){e.INVALID=e("");function t(n){return n}e.toString=t})(ux||(ux={}));function cx(e){return e}(function(e){e.INVALID=e("");function t(n){return n}e.toString=t})(cx||(cx={}));function dx(e){return e}(function(e){e.INVALID=e(""),e.DUMMY=e("-1:-1");function t(n){return n}e.toString=t})(dx||(dx={}));function fx(e){return e}(function(e){e.INVALID=e("");function t(n){return n}e.toString=t})(fx||(fx={}));function px(e){return e}(function(e){e.INVALID=e(""),e.DUMMY=e("-1:-1");function t(n){return n}e.toString=t})(px||(px={}));function mx(e){return e}(function(e){e.INVALID=e("");function t(n){return n}e.toString=t})(mx||(mx={}));function Ex(e){return e}(function(e){e.INVALID=e("");function t(n){return n}e.toString=t})(Ex||(Ex={}));function _x(e){return e}(function(e){e.INVALID=e("");function t(n){return n}e.toString=t})(_x||(_x={}));function Tx(e){return e}(function(e){e.INVALID=e("");function t(n){return n}e.toString=t})(Tx||(Tx={}));function hx(e){return e}(function(e){e.INVALID=e("");function t(n){return n}e.toString=t})(hx||(hx={}));function Ox(e){return e}(function(e){e.INVALID=e("");function t(n){return n}e.toString=t})(Ox||(Ox={}));function gx(e){return e}(function(e){e.INVALID=e("");function t(n){return n}e.toString=t})(gx||(gx={}));function Ix(e){return e}(function(e){e.INVALID=e("");function t(n){return n}e.toString=t})(Ix||(Ix={}));function Sx(e){return e}(function(e){e.INVALID=e("");function t(n){return n}e.toString=t})(Sx||(Sx={}));function Rx(e){return e}(function(e){e.INVALID=e("");function t(n){return n}e.toString=t})(Rx||(Rx={}));(function(e){e.toString=Yt,e.fromString=Kt,e.fromKiwi=zt,e.isEqual=Xt,e.isValid=jt})(Ax||(Ax={}));(function(e){e.toString=Yt,e.fromString=Kt,e.fromKiwi=zt,e.isEqual=Xt,e.isValid=jt})(Nx||(Nx={}));(function(e){e.toString=Yt,e.fromString=Kt,e.fromKiwi=zt,e.isEqual=Xt,e.isValid=jt})(XE||(XE={}));(function(e){e.toString=Yt,e.fromString=Kt,e.fromKiwi=zt,e.isEqual=Xt,e.isValid=jt})(jE||(jE={}));(function(e){e.toString=Yt,e.fromString=Kt,e.fromKiwi=zt,e.isEqual=Xt,e.isValid=jt})($E||($E={}));(function(e){e.toString=Yt,e.fromString=Kt,e.fromKiwi=zt,e.isEqual=Xt,e.isValid=jt})(ZE||(ZE={}));(function(e){e.toString=Yt,e.fromString=Kt,e.fromKiwi=zt,e.isEqual=Xt,e.isValid=jt})(JE||(JE={}));(function(e){e.toString=Yt,e.fromString=Kt,e.fromKiwi=zt,e.isEqual=Xt,e.isValid=jt})(Mf||(Mf={}));(function(e){e.toString=Yt,e.fromString=Kt,e.fromKiwi=zt,e.isEqual=Xt,e.isValid=jt})(qE||(qE={}));(function(e){e.toString=Yt,e.fromString=Kt,e.fromKiwi=zt,e.isEqual=Xt,e.isValid=jt})(QE||(QE={}));(function(e){e.toString=Yt,e.fromString=Kt,e.fromKiwi=zt,e.isEqual=Xt,e.isValid=jt})(e_||(e_={}));(function(e){e.toString=Yt,e.fromString=Kt,e.fromKiwi=zt,e.isEqual=Xt,e.isValid=jt})(t_||(t_={}));(function(e){e.toString=Yt,e.fromString=Kt,e.fromKiwi=zt,e.isEqual=Xt,e.isValid=jt})(n_||(n_={}));(function(e){e.toString=Yt,e.fromString=Kt,e.fromKiwi=zt,e.isEqual=Xt,e.isValid=jt})(r_||(r_={}));(function(e){e.toString=Yt,e.fromString=Kt,e.fromKiwi=zt,e.isEqual=Xt,e.isValid=jt})(o_||(o_={}));(function(e){e.toString=Yt,e.fromString=Kt,e.fromKiwi=zt,e.isEqual=Xt,e.isValid=jt})(i_||(i_={}));(function(e){e.toString=Yt,e.fromString=Kt,e.fromKiwi=zt,e.isEqual=Xt,e.isValid=jt})(s_||(s_={}));(function(e){e.toString=Yt,e.fromString=Kt,e.fromKiwi=zt,e.isEqual=Xt,e.isValid=jt})(a_||(a_={}));function Yt({key:e,version:t}){return`${KS.toString(e)}/${zS.toString(t)}`}function Kt(e){let t=e.split("/");if(t.length!==2)return null;let[n,r]=t;return n&&r?{key:n,version:r}:null}function zt({key:e,version:t}){return!e||!t?null:{key:e,version:t}}function Xt(e,t){return!e||!t?e===t:e.key===t.key&&e.version===t.version}function jt({key:e,version:t}){return Boolean(e&&t)}var Ax,Nx,XE,jE,$E,ZE,JE,Mf,qE,QE,e_,t_,n_,r_,o_,i_,s_,a_;
8124(function(e){let n=an("CodeLibraryId:",e_);e.INVALID=n.fromLocalNodeIdStr(Ze),e.toString=n.toString,e.toKiwi=n.toKiwi,e.toGuidObjIfLocal=n.toGuidObjIfLocal,e.toGuidStrIfLocal=n.toGuidStrIfLocal,e.toRefIfSubscribed=n.toRefIfSubscribed,e.fromString=n.fromString,e.fromLocalNodeIdObj=n.fromLocalNodeIdObj,e.fromLocalNodeIdStr=n.fromLocalNodeIdStr,e.fromRef=n.fromRef,e.fromKiwi=n.fromKiwi,e.isValid=n.isValid})(yx||(yx={}));(function(e){let n=an("CodeFileId:",t_);e.INVALID=n.fromLocalNodeIdStr(Ze),e.toString=n.toString,e.toKiwi=n.toKiwi,e.toGuidObjIfLocal=n.toGuidObjIfLocal,e.toGuidStrIfLocal=n.toGuidStrIfLocal,e.toRefIfSubscribed=n.toRefIfSubscribed,e.fromString=n.fromString,e.fromLocalNodeIdObj=n.fromLocalNodeIdObj,e.fromLocalNodeIdStr=n.fromLocalNodeIdStr,e.fromRef=n.fromRef,e.fromKiwi=n.fromKiwi,e.isValid=n.isValid})(bx||(bx={}));(function(e){let n=an("CodeComponentId:",n_);e.INVALID=n.fromLocalNodeIdStr(Ze),e.toString=n.toString,e.toKiwi=n.toKiwi,e.toGuidObjIfLocal=n.toGuidObjIfLocal,e.toGuidStrIfLocal=n.toGuidStrIfLocal,e.toRefIfSubscribed=n.toRefIfSubscribed,e.fromString=n.fromString,e.fromLocalNodeIdObj=n.fromLocalNodeIdObj,e.fromLocalNodeIdStr=n.fromLocalNodeIdStr,e.fromRef=n.fromRef,e.fromKiwi=n.fromKiwi,e.isValid=n.isValid})(XS||(XS={}));(function(e){let n=an("ManagedStringId:",r_);e.INVALID=n.fromLocalNodeIdStr(Ze),e.toString=n.toString,e.toKiwi=n.toKiwi,e.toGuidObjIfLocal=n.toGuidObjIfLocal,e.toGuidStrIfLocal=n.toGuidStrIfLocal,e.toRefIfSubscribed=n.toRefIfSubscribed,e.fromString=n.fromString,e.fromLocalNodeIdObj=n.fromLocalNodeIdObj,e.fromLocalNodeIdStr=n.fromLocalNodeIdStr,e.fromRef=n.fromRef,e.fromKiwi=n.fromKiwi,e.isValid=n.isValid})(Lx||(Lx={}));(function(e){let n=an("ResponsiveSetId:",QE);e.INVALID=n.fromLocalNodeIdStr(Ze),e.toString=n.toString,e.toKiwi=n.toKiwi,e.toGuidObjIfLocal=n.toGuidObjIfLocal,e.toGuidStrIfLocal=n.toGuidStrIfLocal,e.toRefIfSubscribed=n.toRefIfSubscribed,e.fromString=n.fromString,e.fromLocalNodeIdObj=n.fromLocalNodeIdObj,e.fromLocalNodeIdStr=n.fromLocalNodeIdStr,e.fromRef=n.fromRef,e.fromKiwi=n.fromKiwi,e.isValid=n.isValid})(Cx||(Cx={}));(function(e){let n=an("SymbolId:",XE);e.INVALID=n.fromLocalNodeIdStr(Ze),e.toString=n.toString,e.toKiwi=n.toKiwi,e.toGuidObjIfLocal=n.toGuidObjIfLocal,e.toGuidStrIfLocal=n.toGuidStrIfLocal,e.toRefIfSubscribed=n.toRefIfSubscribed,e.fromString=n.fromString,e.fromLocalNodeIdObj=n.fromLocalNodeIdObj,e.fromLocalNodeIdStr=n.fromLocalNodeIdStr,e.fromRef=n.fromRef,e.fromKiwi=n.fromKiwi,e.isValid=n.isValid})(Qa||(Qa={}));(function(e){let n=an("StateGroupId:",jE);e.INVALID=n.fromLocalNodeIdStr(Ze),e.toString=n.toString,e.toKiwi=n.toKiwi,e.toGuidObjIfLocal=n.toGuidObjIfLocal,e.toGuidStrIfLocal=n.toGuidStrIfLocal,e.toRefIfSubscribed=n.toRefIfSubscribed,e.fromString=n.fromString,e.fromLocalNodeIdObj=n.fromLocalNodeIdObj,e.fromLocalNodeIdStr=n.fromLocalNodeIdStr,e.fromRef=n.fromRef,e.fromKiwi=n.fromKiwi,e.isValid=n.isValid})(el||(el={}));(function(e){let n=an("StyleId:",$E);e.INVALID=n.fromLocalNodeIdStr(Ze),e.toString=n.toString,e.toKiwi=n.toKiwi,e.toGuidObjIfLocal=n.toGuidObjIfLocal,e.toGuidStrIfLocal=n.toGuidStrIfLocal,e.toRefIfSubscribed=n.toRefIfSubscribed,e.fromString=n.fromString,e.fromLocalNodeIdObj=n.fromLocalNodeIdObj,e.fromLocalNodeIdStr=n.fromLocalNodeIdStr,e.fromRef=n.fromRef,e.fromKiwi=n.fromKiwi,e.isValid=n.isValid;function r(o){return o.guid&&o.guid!==Ze?e.fromLocalNodeIdStr(o.guid):e.fromRef(o.ref)}e.fromBindingsObj=r})(Px||(Px={}));(function(e){let n=an("VariableID:",ZE);e.INVALID=n.fromLocalNodeIdStr(Ze),e.toString=n.toString,e.toKiwi=n.toKiwi,e.toGuidObjIfLocal=n.toGuidObjIfLocal,e.toGuidStrIfLocal=n.toGuidStrIfLocal,e.toRefIfSubscribed=n.toRefIfSubscribed,e.fromString=n.fromString,e.fromLocalNodeIdObj=n.fromLocalNodeIdObj,e.fromLocalNodeIdStr=n.fromLocalNodeIdStr,e.fromRef=n.fromRef,e.fromKiwi=n.fromKiwi,e.isValid=n.isValid})(Dx||(Dx={}));(function(e){let n=an("KeyframeTrackId:",o_);e.INVALID=n.fromLocalNodeIdStr(Ze),e.toString=n.toString,e.toKiwi=n.toKiwi,e.toGuidObjIfLocal=n.toGuidObjIfLocal,e.toGuidStrIfLocal=n.toGuidStrIfLocal,e.toRefIfSubscribed=n.toRefIfSubscribed,e.fromString=n.fromString,e.fromLocalNodeIdObj=n.fromLocalNodeIdObj,e.fromLocalNodeIdStr=n.fromLocalNodeIdStr,e.fromRef=n.fromRef,e.fromKiwi=n.fromKiwi,e.isValid=n.isValid})(jS||(jS={}));(function(e){let n=an("AnimationPresetId:",i_);e.INVALID=n.fromLocalNodeIdStr(Ze),e.toString=n.toString,e.toKiwi=n.toKiwi,e.toGuidObjIfLocal=n.toGuidObjIfLocal,e.toGuidStrIfLocal=n.toGuidStrIfLocal,e.toRefIfSubscribed=n.toRefIfSubscribed,e.fromString=n.fromString,e.fromLocalNodeIdObj=n.fromLocalNodeIdObj,e.fromLocalNodeIdStr=n.fromLocalNodeIdStr,e.fromRef=n.fromRef,e.fromKiwi=n.fromKiwi,e.isValid=n.isValid})(l_||(l_={}));(function(e){let n=an("ToolId:",s_);e.INVALID=n.fromLocalNodeIdStr(Ze),e.toString=n.toString,e.toKiwi=n.toKiwi,e.toGuidObjIfLocal=n.toGuidObjIfLocal,e.toGuidStrIfLocal=n.toGuidStrIfLocal,e.toRefIfSubscribed=n.toRefIfSubscribed,e.fromString=n.fromString,e.fromLocalNodeIdObj=n.fromLocalNodeIdObj,e.fromLocalNodeIdStr=n.fromLocalNodeIdStr,e.fromRef=n.fromRef,e.fromKiwi=n.fromKiwi,e.isValid=n.isValid})(vx||(vx={}));(function(e){let n=an("CustomEffectId:",a_);e.INVALID=n.fromLocalNodeIdStr(Ze),e.toString=n.toString,e.toKiwi=n.toKiwi,e.toGuidObjIfLocal=n.toGuidObjIfLocal,e.toGuidStrIfLocal=n.toGuidStrIfLocal,e.toRefIfSubscribed=n.toRefIfSubscribed,e.fromString=n.fromString,e.fromLocalNodeIdObj=n.fromLocalNodeIdObj,e.fromLocalNodeIdStr=n.fromLocalNodeIdStr,e.fromRef=n.fromRef,e.fromKiwi=n.fromKiwi,e.isValid=n.isValid})(xx||(xx={}));(function(e){let n=an("VariableOverrideId:",JE);e.INVALID=n.fromLocalNodeIdStr(Ze),e.toString=n.toString,e.toKiwi=n.toKiwi,e.toGuidObjIfLocal=n.toGuidObjIfLocal,e.toGuidStrIfLocal=n.toGuidStrIfLocal,e.toRefIfSubscribed=n.toRefIfSubscribed,e.fromString=n.fromString,e.fromLocalNodeIdObj=n.fromLocalNodeIdObj,e.fromLocalNodeIdStr=n.fromLocalNodeIdStr,e.fromRef=n.fromRef,e.fromKiwi=n.fromKiwi,e.isValid=n.isValid})(Mx||(Mx={}));(function(e){let t="VariableCollectionId:",n="VariableSetID:",r=an(t,Mf),o=an(n,Mf);e.INVALID=r.fromLocalNodeIdStr(Ze),e.toString=r.toString,e.toKiwi=i({current:r.toKiwi,deprecated:o.toKiwi}),e.toGuidObjIfLocal=i({current:r.toGuidObjIfLocal,deprecated:o.toGuidObjIfLocal}),e.toGuidStrIfLocal=i({current:r.toGuidStrIfLocal,deprecated:o.toGuidStrIfLocal}),e.toRefIfSubscribed=i({current:r.toRefIfSubscribed,deprecated:o.toRefIfSubscribed}),e.fromString=i({current:r.fromString,deprecated:o.fromString}),e.fromLocalNodeIdObj=r.fromLocalNodeIdObj,e.fromLocalNodeIdStr=r.fromLocalNodeIdStr,e.fromRef=r.fromRef,e.fromKiwi=r.fromKiwi,e.isValid=i({current:r.isValid,deprecated:o.isValid});function i({current:s,deprecated:a}){return l=>l.startsWith(n)?a(l):s(l)}})(Gx||(Gx={}));(function(e){let n=an("ModuleId:",qE);e.INVALID=n.fromLocalNodeIdStr(Ze),e.toString=n.toString,e.toKiwi=n.toKiwi,e.toGuidObjIfLocal=n.toGuidObjIfLocal,e.toGuidStrIfLocal=n.toGuidStrIfLocal,e.toRefIfSubscribed=n.toRefIfSubscribed,e.fromString=n.fromString,e.fromLocalNodeIdObj=n.fromLocalNodeIdObj,e.fromLocalNodeIdStr=n.fromLocalNodeIdStr,e.fromRef=n.fromRef,e.fromKiwi=n.fromKiwi,e.isValid=n.isValid})(kx||(kx={}));(function(e){e.fromKiwi=t=>{if(t.guid)return{type:"guid",guid:ot(t.guid)};if(t.stateGroupId){let n=el.fromKiwi(t.stateGroupId);if(n)return{type:"stateGroup",stateGroupId:n}}if(t.symbolId){let n=Qa.fromKiwi(t.symbolId);if(n)return{type:"symbol",symbolId:n}}kv(!1,"Unhandled CanvasNodeId type")},e.toGuidStrIfLocal=t=>{switch(t.type){case"guid":return t.guid;case"symbol":return Qa.toGuidStrIfLocal(t.symbolId);case"stateGroup":return el.toGuidStrIfLocal(t.stateGroupId)}},e.toRefIfSubscribed=t=>{switch(t.type){case"guid":return null;case"symbol":return Qa.toRefIfSubscribed(t.symbolId);case"stateGroup":return el.toRefIfSubscribed(t.stateGroupId)}},e.toString=t=>{switch(t.type){case"guid":return t.guid;case"symbol":return Qa.toString(t.symbolId);case"stateGroup":return el.toString(t.stateGroupId)}},e.fromString=t=>{let n=Qa.fromString(t);if(n)return{type:"symbol",symbolId:n};let r=el.fromString(t);return r?{type:"stateGroup",stateGroupId:r}:Of(t)?{type:"guid",guid:t}:null}})(Fx||(Fx={}));function an(e,t){function n(h){return h}function r(h,m){return h.startsWith(e)?m(h.slice(e.length)):null}function o(h){return Of(h)}function i(h){return t.fromString(h)}function s(h){return r(h,E=>{let O=i(E);if(O)return{assetRef:O};let g=o(E);if(g)return{guid:g}})??{guid:_P}}function a(h){return r(h,m=>i(m)?null:o(m))}function l(h){return r(h,m=>i(m)?null:m)}function u(h){return r(h,m=>i(m))}function c(h){return r(h,m=>o(m)||i(m)?h:null)}function d(h){return e+ot(h)}function f(h){return Of(h)?e+h:null}function p(h){return e+t.toString(h)}function _(h){if(!h)return null;let{guid:m,assetRef:E}=h;if(m&&!E)return d(m);if(!m&&E){let O=t.fromKiwi(E);if(O)return p(O)}return null}function T(h){let m=a(h);if(m)return _E(m);let E=u(h);return E?t.isValid(E):!1}return{toString:n,toKiwi:s,toGuidObjIfLocal:a,toGuidStrIfLocal:l,toRefIfSubscribed:u,fromString:c,fromLocalNodeIdObj:d,fromLocalNodeIdStr:f,fromRef:p,fromKiwi:_,isValid:T}}var yx,bx,XS,Lx,Cx,Qa,el,Px,Dx,jS,l_,vx,xx,Mx,Gx,kx,Fx;var Zne=new Intl.Collator("en",{numeric:!0,sensitivity:"base"});Fe();var ore=[qa.COLOR,qa.FLOAT,qa.STRING,qa.BOOLEAN];Fe();P0();Fe();Fe();var D0="Fade",v0=`Animates the opacity of an element to fade it in or out. Use this preset for entrance or exit animations, revealing content, or smooth visibility transitions. 8125 8126Properties: 8127- timing: Select "Fade In" to animate from transparent to opaque, or "Fade Out" to animate from opaque to transparent. 8128- duration: The length of the animation in seconds. 8129- easing: The easing curve that controls the acceleration of the fade.`,x0=[{name:"timing",type:k.TEXT,label:"Timing",defaultText:"in",selectConfig:{options:[{value:"in",label:"In"},{value:"out",label:"Out"}]}},{name:"duration",type:k.NUMBER,label:"Duration",defaultNumber:.5,inputConfig:{min:.01,unit:"s"},numberResolvedAsTiming:!0},{name:"easing",type:k.EASING,label:"Easing",defaultEasing:{easingType:w.OUT_CUBIC}}];Fe();var M0="Move",G0=`Translates an element along the X and Y axes to slide it in or out of position. Use this preset for slide-in or slide-out transitions, off-screen entrances, or directional movement effects. 8130 8131Properties: 8132- timing: Select "Move In" to slide from the offset position to the original position, or "Move Out" to slide from the original position to the offset. 8133- moveX: The horizontal translation offset in pixels. 8134- moveY: The vertical translation offset in pixels. 8135- duration: The length of the animation in seconds. 8136- fade: Enable to simultaneously fade the element's opacity during the move. 8137- easing: The easing curve that controls the acceleration of the movement.`,k0=[{name:"timing",type:k.TEXT,label:"Timing",defaultText:"out",selectConfig:{options:[{value:"in",label:"In"},{value:"out",label:"Out"}]}},{name:"moveX",type:k.NUMBER,label:"Move X",defaultNumber:100},{name:"moveY",type:k.NUMBER,label:"Move Y",defaultNumber:0},{name:"duration",type:k.NUMBER,label:"Duration",defaultNumber:.5,inputConfig:{min:.01,unit:"s"},numberResolvedAsTiming:!0},{name:"fade",type:k.BOOL,label:"Fade",defaultBool:!1},{name:"easing",type:k.EASING,label:"Easing",defaultEasing:{easingType:w.OUT_CUBIC}}];Fe();var F0="motion.preset_name.corner_radius",w0='Animates the corner radius of a node, either uniformly or per-corner. Use this preset for "round in / round out" reveal effects, or pick the Custom type for explicit start / end radiu
8137s values per corner.\n\nProperties:\n- type: "Round in" animates 0 \u2192 amount; "Round out" animates amount \u2192 0; "Custom" lets each corner specify explicit start / end values.\n- corner: "All" drives the shared `cornerRadius` field; the four specific corner values drive only that corner. Toggling between "All" and a specific corner relies on the C++ preset bind path to flip `rectangleCornerRadiiIndependent` (see `_bindKeyframeExpressionToParameterField`).\n- amount: For type=roundIn/roundOut, the target radius in px.\n- *StartFrame / *EndFrame: For type=custom, the per-corner start/end radii. Only the pair matching the current `corner` selection is animated.\n- delay / duration / easing: Shared timing for the animation.',B0=[{name:"type",type:k.TEXT,label:"motion.preset_flyout.type",defaultText:"roundIn",selectConfig:{options:[{value:"roundIn",label:"motion.preset_flyout.corner_radius.type.round_in"},{value:"roundOut",label:"motion.preset_flyout.corner_radius.type.round_out"},{value:"custom",label:"motion.preset_flyout.type.custom"}]}},{name:"corner",type:k.TEXT,label:"motion.preset_flyout.corner_radius.corner",defaultText:"all",selectConfig:{options:[{value:"all",label:"motion.preset_flyout.corner_radius.corner.all"},{value:"topLeft",label:"motion.preset_flyout.corner_radius.corner.top_left"},{value:"topRight",label:"motion.preset_flyout.corner_radius.corner.top_right"},{value:"bottomLeft",label:"motion.preset_flyout.corner_radius.corner.bottom_left"},{value:"bottomRight",label:"motion.preset_flyout.corner_radius.corner.bottom_right"}]}},{name:"amount",type:k.NUMBER,label:"motion.preset_flyout.amount",defaultNumber:10,inputConfig:{min:0,unit:"px"}},{name:"allStartFrame",type:k.NUMBER,label:"motion.preset_flyout.start_frame",defaultNumber:10,inputConfig:{min:0,unit:"px",icon:"radius_all"}},{name:"allEndFrame",type:k.NUMBER,label:"motion.preset_flyout.end_frame",defaultNumber:0,inputConfig:{min:0,unit:"px",icon:"radius_all"}},{name:"topLeftStartFrame",type:k.NUMBER,label:"motion.preset_flyout.start_frame",defaultNumber:0,inputConfig:{min:0,unit:"px",icon:"radius_top_left"}},{name:"topLeftEndFrame",type:k.NUMBER,label:"motion.preset_flyout.end_frame",defaultNumber:20,inputConfig:{min:0,unit:"px",icon:"radius_top_left"}},{name:"topRightStartFrame",type:k.NUMBER,label:"motion.preset_flyout.start_frame",defaultNumber:0,inputConfig:{min:0,unit:"px",icon:"radius_top_right"}},{name:"topRightEndFrame",type:k.NUMBER,label:"motion.preset_flyout.end_frame",defaultNumber:20,inputConfig:{min:0,unit:"px",icon:"radius_top_right"}},{name:"bottomLeftStartFrame",type:k.NUMBER,label:"motion.preset_flyout.start_frame",defaultNumber:0,inputConfig:{min:0,unit:"px",icon:"radius_bottom_left"}},{name:"bottomLeftEndFrame",type:k.NUMBER,label:"motion.preset_flyout.end_frame",defaultNumber:20,inputConfig:{min:0,unit:"px",icon:"radius_bottom_left"}},{name:"bottomRightStartFrame",type:k.NUMBER,label:"motion.preset_flyout.start_frame",defaultNumber:0,inputConfig:{min:0,unit:"px",icon:"radius_bottom_right"}},{name:"bottomRightEndFrame",type:k.NUMBER,label:"motion.preset_flyout.end_frame",defaultNumber:20,inputConfig:{min:0,unit:"px",icon:"radius_bottom_right"}},{name:"delay",type:k.NUMBER,label:"motion.preset_flyout.delay",defaultNumber:0,inputConfig:{unit:"s",icon:"delay"},numberResolvedAsTiming:!0},{name:"duration",type:k.NUMBER,label:"motion.preset_flyout.duration",defaultNumber:.5,inputConfig:{min:.01,unit:"s",icon:"time"},numberResolvedAsTiming:!0},{name:"easing",type:k.EASING,label:"motion.preset_flyout.easing",defaultEasing:{easingType:w.OUT_CUBIC}}];Fe();var U0="motion.preset_name.new",V0=`A minimal starter preset that fades an element in from transparent to opaque. Use this as a starting point for building custom animation presets \u2014 edit the generated code to add your own keyframe tracks and logic. 8138 8139Properties: 8140- duration: The length of the animation in seconds. 8141- easing: The easing curve that controls the acceleration of the animation.`,H0=[{name:"duration",type:k.NUMBER,label:"Duration",defaultNumber:.5,inputConfig:{min:.01,unit:"s"},numberResolvedAsTiming:!0},{name:"easing",type:k.EASING,label:"Easing",defaultEasing:{easingType:w.OUT_CUBIC}}];Fe();var W0="motion.preset_name.opacity",Y0=`Animates the opacity of an element. Use this preset for entrance / exit animations or emphasis effects. 8142 8143Properties: 8144- type: "Fade In" animates 0\u21921, "Fade Out" animates 1\u21920, "Custom" lets you specify start and end opacity via Start Frame / End Frame. 8145- startFrame / endFrame: Start and end opacity as percentages (only used when type is "Custom"). 8146- delay: How long to wait before the animation starts, in seconds. 8147- duration: The length of the animation, in seconds. 8148- easing: The easing curve that controls the acceleration of the animation.`,K0=[{name:"type",type:k.TEXT,label:"motion.preset_flyout.type",defaultText:"fadeIn",selectConfig:{options:[{value:"fadeIn",label:"motion.preset_flyout.opacity.type.fade_in"},{value:"fadeOut",label:"motion.preset_flyout.opacity.type.fade_out"},{value:"custom",label:"motion.preset_flyout.type.custom"}]}},{name:"amount",type:k.NUMBER,label:"motion.preset_flyout.amount",defaultNumber:0,inputConfig:{unit:"%",icon:"opacity"}},{name:"startFrame",type:k.NUMBER,label:"motion.preset_flyout.start",defaultNumber:0,inputConfig:{unit:"%",icon:"opacity"}},{name:"endFrame",type:k.NUMBER,label:"motion.preset_flyout.end",defaultNumber:100,inputConfig:{unit:"%",icon:"opacity"}},{name:"delay",type:k.NUMBER,label:"motion.preset_flyout.delay",defaultNumber:0,inputConfig:{unit:"s",icon:"delay"},numberResolvedAsTiming:!0},{name:"duration",type:k.NUMBER,label:"motion.preset_flyout.duration",defaultNumber:.5,inputConfig:{min:.01,unit:"s",icon:"time"},numberResolvedAsTiming:!0},{name:"easing",type:k.EASING,label:"motion.preset_flyout.easing",defaultEasing:{easingType:w.OUT_CUBIC}}];Fe();var z0="Path Draw",X0=`Animates the path trim of a stroke to draw it in or erase it over time. Use this preset for line drawing effects, signature animations, or progressive reveal of vector paths. 8149 8150Properties: 8151- duration: The length of the animation in seconds. 8152- direction: Select "Forward" to draw from the start of the path to the end, or "Reverse" to draw from the end of the path to the start.`,j0=[{name:"duration",type:k.NUMBER,label:"Duration",defaultNumber:.5,inputConfig:{min:.01,unit:"s"},numberResolvedAsTiming:!0},{name:"mode",type:k.TEXT,label:"Mode",defaultText:"reveal",selectConfig:{options:[{value:"reveal",label:"Reveal"},{value:"hide",label:"Hide"}]}},{name:"direction",type:k.TEXT,label:"Direction",defaultText:"forward",selectConfig:{options:[{value:"forward",label:"Forward"},{value:"reverse",label:"Reverse"}]}}];Fe();var $0="motion.preset_name.path",Z0='Animates the trim of a vector path. Replaces and subsumes Path Draw and Path Travel under a single preset; pick a `type` to drive the behaviour.\n\nProperties:\n- type: "Draw" reveals the path from start to end; "Erase" hides it; "Travel" runs a short segment along the path; "Custom" exposes raw `pathTrimStart` / `pathTrimEnd` control via the `axis` prop.\n- direction: "Forward" or "Reverse"; reverses the animation direction.\n- segment: For type=travel, length of the moving segment as a percentage of the path.\n- axis: For type=custom, picks which trim field(s) to animate. "Path trim start" and "Path trim end" each drive one field. "Combined" drives both with shared timing but distinct initial values (`pathStartStartFrame`, `pathEndStartWithDivider`).\n- pathStart{StartFrame,EndFrame} / pathEnd{StartFrame,EndFrame}: For type=custom, the per-trim frame values. The bespoke component shows only the subset relevant to the current axis selection.\n- delay / duration / easing: Shared timing for every type (Draw / Erase / Travel and Custom).',J0=[{name:"type",type:k.TEXT,label:"motion.preset_flyout.type",defaultText:"draw",selectConfig:{options:[{value:"draw",label:"motion.preset_flyout.path.type.draw"},{value:"erase",label:"motion.preset_flyout.path.type.erase"},{value:"travel",label:"motion.preset_flyout.path.type.travel"},{value:"custom",label:"motion.preset_flyout.type.custom"}]}},{name:"direction",type:k.TEXT,label:"motion.preset_flyout.direction",defaultText:"forward",selectConfig:{options:[{value:"forward",label:"motion.preset_flyout.path.direction.forward"},{value:"reverse",label:"motion.preset_flyout.path.direction.reverse"}]}},{name:"axis",type:k.TEXT,label:"motion.preset_flyout.path.trim",defaultText:"pathTrimStart",selectConfig:{options:[{value:"pathTrimStart",label:"motion.preset_flyout.path.axis.path_trim_start"},{value:"pathTrimEnd",label:"motion.preset_flyout.path.axis.path_trim_end"},{value:"combined",label:"motion.preset_flyout.path.axis.combined"}]}},{name:"segment",type:k.NUMBER,label:"motion.preset_flyout.path.segment",defaultNumber:10,inputConfig:{unit:"%"}},{name:"pathStartStartFrame",type:k.NUMBER,label:"motion.preset_flyout.start_frame",defaultNumber:100,inputConfig:{unit:"%",icon:"path_trim_start"}},{name:"pathStartEndWithoutDivider",type:k.NUMBER,label:"motion.preset_flyout.end_frame",defaultNumber:0,inputConfig:{unit:"%",icon:"path_trim_start"}},{name:"pathEndStartWithoutDivider",type:k.NUMBER,label:"motion.preset_flyout.start_frame",defaultNumber:20,inputConfig:{unit:"%",icon:"path_trim_end"}},{name:"pathStartEndWithDivider",type:k.NUMBER,label:"motion.preset_flyout.end_frame",defaultNumber:80,inputConfig:{unit:"%",icon:"path_trim_start"}},{name:"pathEndStartWithDivider",type:k.NUMBER,label:"motion.preset_flyout.start_frame",defaultNumber:0,inputConfig:{unit:"%",icon:"path_trim_end"}},{name:"pathEndEndFrame",type:k.NUMBER,label:"motion.preset_flyout.end_frame",defaultNumber:100,inputConfig:{unit:"%",icon:"path_trim_end"}},{name:"delay",type:k.NUMBER,label:"motion.preset_flyout.delay",defaultNumber:0,inputConfig:{unit:"s",icon:"delay"},numberResolvedAsTiming:!0},{name:"duration",type:k.NUMBER,label:"motion.preset_flyout.duration",defaultNumber:.5,inputConfig:{min:.01,unit:"s",icon:"time"},numberResolvedAsTiming:!0},{name:"easing",type:k.EASING,label:"motion.preset_flyout.easing",defaultEasing:{easingType:w.OUT_CUBIC}}];Fe();var q0="Path Travel",Q0=`Animates a segment of a stroke that travels along the entire path. Use this preset for moving highlight effects or traveling dash animations on vector paths. 8153 8154Properties: 8155- segmentLength: The length of the traveling segment as a percentage of the total path.
8156- loops: The number of times the segment travels along the path. 8157- loopMode: Select "Circle Back" to wrap continuously around the path, or "Retrace Path" to bounce forward then backward each loop. 8158- direction: Select "Forward" to travel from the start to the end of the path, or "Reverse" to travel from the end to the start. 8159- duration: The length of the animation in seconds.`,eM=[{name:"duration",type:k.NUMBER,label:"Duration",defaultNumber:.5,inputConfig:{min:.01,unit:"s"},numberResolvedAsTiming:!0},{name:"direction",type:k.TEXT,label:"Direction",defaultText:"forward",selectConfig:{options:[{value:"forward",label:"Forward"},{value:"reverse",label:"Reverse"}]}},{name:"loopMode",type:k.TEXT,label:"Loop Mode",defaultText:"circle",selectConfig:{options:[{value:"circle",label:"Circle Back"},{value:"retrace",label:"Retrace Path"}]}},{name:"segmentLength",type:k.NUMBER,label:"Segment Length",defaultNumber:20,inputConfig:{min:0,max:100,unit:"%"}},{name:"loops",type:k.NUMBER,label:"Loops",defaultNumber:1,inputConfig:{min:1}}];Fe();var tM="motion.preset_name.position",nM=`Animates a node along the X and/or Y axes. Use this preset for slide-in / slide-out entrances and exits, or fully custom translate animations. 8160 8161Properties: 8162- type: "Slide In" animates from an offset back to the resting position, "Slide Out" animates from the resting position to an offset, "Custom" lets you specify Start / End values explicitly. 8163- direction: For Slide In / Slide Out, the side the element slides from / to (only used when type is "Slide In" or "Slide Out"). 8164- distance: Slide distance in pixels (only used when type is "Slide In" or "Slide Out"). 8165- axis: For Custom, which axes to animate \u2014 "X" / "Y" animate one axis only, "XY" animates both (each axis keeps its own start/end and they share the timing). 8166- startX / endX: X-axis start and end translation in pixels (used when type is "Custom" and axis is "X" or "XY"). 8167- startY / endY: Y-axis start and end translation in pixels (used when type is "Custom" and axis is "Y" or "XY"). 8168- delay: How long to wait before the animation starts, in seconds. 8169- duration: The length of a single playthrough, in seconds. 8170- easing: The easing curve that controls the acceleration of the animation.`,rM=[{name:"type",type:k.TEXT,label:"motion.preset_flyout.type",defaultText:"slide_in",selectConfig:{options:[{value:"slide_in",label:"motion.preset_flyout.position.type.slide_in"},{value:"slide_out",label:"motion.preset_flyout.position.type.slide_out"},{value:"custom",label:"motion.preset_flyout.type.custom"}]}},{name:"direction",type:k.TEXT,label:"motion.preset_flyout.direction",defaultText:"left",selectConfig:{options:[{value:"left",label:"motion.preset_flyout.position.direction.left"},{value:"right",label:"motion.preset_flyout.position.direction.right"},{value:"top",label:"motion.preset_flyout.position.direction.top"},{value:"bottom",label:"motion.preset_flyout.position.direction.bottom"},{value:"top_left",label:"motion.preset_flyout.top_left"},{value:"top_right",label:"motion.preset_flyout.top_right"},{value:"bottom_left",label:"motion.preset_flyout.bottom_left"},{value:"bottom_right",label:"motion.preset_flyout.bottom_right"}]}},{name:"distance",type:k.NUMBER,label:"motion.preset_flyout.position.distance",defaultNumber:200,inputConfig:{unit:"px"}},{name:"axis",type:k.TEXT,label:"motion.preset_flyout.axis",defaultText:"xy",selectConfig:{options:[{value:"x",label:"motion.preset_flyout.x"},{value:"y",label:"motion.preset_flyout.y"},{value:"xy",label:"motion.preset_flyout.both"}]}},{name:"startX",type:k.NUMBER,label:"motion.preset_flyout.start",defaultNumber:200,inputConfig:{icon:"x"}},{name:"startY",type:k.NUMBER,label:"motion.preset_flyout.start",defaultNumber:200,inputConfig:{icon:"y"}},{name:"endX",type:k.NUMBER,label:"motion.preset_flyout.end",defaultNumber:0,inputConfig:{icon:"x"}},{name:"endY",type:k.NUMBER,label:"motion.preset_flyout.end",defaultNumber:0,inputConfig:{icon:"y"}},{name:"delay",type:k.NUMBER,label:"motion.preset_flyout.delay",defaultNumber:0,inputConfig:{unit:"s",icon:"delay"},numberResolvedAsTiming:!0},{name:"duration",type:k.NUMBER,label:"motion.preset_flyout.duration",defaultNumber:.5,inputConfig:{min:.01,unit:"s",icon:"time"},numberResolvedAsTiming:!0},{name:"easing",type:k.EASING,label:"motion.preset_flyout.easing",defaultEasing:{easingType:w.OUT_CUBIC}}];Fe();var oM="Resize",iM=`Changes the width and/or height of an element by a pixel offset over time. Use this preset for expanding panels, progress bar animations, or dynamic layout transitions. 8171 8172Properties: 8173- widthChange: The amount to change the element's width in pixels (0 for no width change). 8174- heightChange: The amount to change the element's height in pixels (0 for no height change). 8175- duration: The length of the animation in seconds. 8176- easing: The easing curve that controls the acceleration of the resize.`,sM=[{name:"widthChange",type:k.NUMBER,label:"Width Change",defaultNumber:100},{name:"heightChange",type:k.NUMBER,label:"Height Change",defaultNumber:0},{name:"duration",type:k.NUMBER,label:"Duration",defaultNumber:.5,inputConfig:{min:.01,unit:"s"},numberResolvedAsTiming:!0},{name:"easing",type:k.EASING,label:"Easing",defaultEasing:{easingType:w.OUT_CUBIC}}];Fe();var aM="Rotate",lM=`Rotates an element by a specified angle to spin it in or out. Use this preset for spinning entrance or exit effects, turning animations, or attention-grabbing rotations. 8177 8178Properties: 8179- timing: Select "Rotate In" to rotate from the specified angle back to the original orientation, or "Rotate Out" to rotate from the original orientation to the specified angle. 8180- rotation: The rotation amount in degrees. 8181- duration: The length of the animation in seconds. 8182- fade: Enable to simultaneously fade the element's opacity during the rotation. 8183- easing: The easing curve that controls the acceleration of the rotation.`,uM=[{name:"timing",type:k.TEXT,label:"Timing",defaultText:"out",selectConfig:{options:[{value:"in",label:"In"},{value:"out",label:"Out"}]}},{name:"rotation",type:k.NUMBER,label:"Rotation",defaultNumber:180},{name:"duration",type:k.NUMBER,label:"Duration",defaultNumber:.5,inputConfig:{min:.01,unit:"s"},numberResolvedAsTiming:!0},{name:"fade",type:k.BOOL,label:"Fade",defaultBool:!1},{name:"easing",type:k.EASING,label:"Easing",defaultEasing:{easingType:w.OUT_CUBIC}}];Fe();var cM="motion.preset_name.rotation",dM=`Animates the rotation of a node about its center. Use this preset for spin-in / spin-out reveal effects, or pick the Custom type for explicit start / end angles. 8184 8185Properties: 8186- type: "Rotate in" animates signed amount \u2192 0; "Rotate out" animates 0 \u2192 signed amount; "Custom" lets you specify explicit start / end angles in degrees. The signed amount is derived from Direction (see below). 8187- direction: "Clockwise" or "Counter-clockwise". Underlying \`rotate\` is in radians and uses screen Y-down coordinates. For "Rotate in", Clockwise yields a negative angle and Counter-clockwise yields a positive angle. For "Rotate out", Clockwise yields a positive angle and Counter-clockwise yields a negative angle \u2014 matching the visible spin labels in both types. 8188- amount: For type=rotateIn/rotateOut, the rotation magnitude in degrees. 8189- start / end: For type=custom, the explicit start / end angles in degrees. 8190- delay / duration / easing: Shared timing for the animation.`,fM=[{name:"type",type:k.TEXT,label:"motion.preset_flyout.type",defaultText:"rotateIn",selectConfig:{options:[{value:"rotateIn",label:"motion.preset_flyout.rotation.type.rotate_in"},{value:"rotateOut",label:"motion.preset_flyout.rotation.type.rotate_out"},{value:"custom",label:"motion.preset_flyout.type.custom"}]}},{name:"direction",type:k.TEXT,label:"motion.preset_flyout.direction",defaultText:"clockwise",selectConfig:{options:[{value:"clockwise",label:"motion.preset_flyout.rotation.direction.clockwise"},{value:"counterClockwise",label:"motion.preset_flyout.rotation.direction.counter_clockwise"}]}},{name:"amount",type:k.NUMBER,label:"motion.preset_flyout.amount",defaultNumber:180,inputConfig:{unit:"\xB0"}},{name:"start",type:k.NUMBER,label:"motion.preset_flyout.start",defaultNumber:180,inputConfig:{unit:"\xB0",icon:"rotation"}},{name:"end",type:k.NUMBER,label:"motion.preset_flyout.end",defaultNumber:0,inputConfig:{unit:"\xB0",icon:"rotation"}},{name:"delay",type:k.NUMBER,label:"motion.preset_flyout.delay",defaultNumber:0,inputConfig:{min:0,unit:"s",icon:"delay"},numberResolvedAsTiming:!0},{name:"duration",type:k.NUMBER,label:"motion.preset_flyout.duration",defaultNumber:.5,inputConfig:{min:.01,unit:"s",icon:"time"},numberResolvedAsTiming:!0},{name:"easing",type:k.EASING,label:"motion.preset_flyout.easing",defaultEasing:{easingType:w.OUT_CUBIC}}];Fe();var pM="motion.preset_name.scale",mM=`Animates a node by scaling it along the width and/or height axis. Use this preset for scale-in / scale-out reveal effects, or pick the Custom type for explicit start / end percentages on either axis. 8191 8192Properties: 8193- type: "Scale in" animates amount \u2192 100%; "Scale out" animates 100% \u2192 amount; "Custom" lets you specify explicit start / end percentages per axis. 8194- axis: For type=custom, picks which axis (W, H, or both combined) is animated. Ignored when type=scaleIn/scaleOut (both axes animate together). 8195- amount: For type=scaleIn/scaleOut, the scale magnitude in percent (e.g. 120%). 8196- {w,h}{Start,End}* / *WithDivider / *WithoutDivider: For type=custom, the explicit start / end percentages per axis. Single-axis groups each axis as Start+End; WH-combined groups both Starts together and both Ends together, using the alternate divider variants. Only the set visible in the current layout is editable. 8197- delay / duration / easing: Shared timing.`,EM=[{name:"type",type:k.TEXT,label:"motion.preset_flyout.type",defaultText:"scaleIn",selectConfig:{options:[{value:"scaleIn",label:"motion.preset_flyout.scale.type.scale_in"},{value:"scaleOut",label:"motion.preset_flyout.scale.type.scale_out"},{value:"custom",label:"motion.preset_flyout.type.custom"}]}},{name:"axis",type:k.TEXT,label:"motion.preset_flyout.axis",defaultText:"whCombined",selectConfig:{options:[{value:"w",label:"motion.preset_flyout.w"},{value:"h",label:"motion.preset_flyout.h"},{value:"whCombined",label:"motion.preset_flyout.both"}]}},{name:"amount",type:k.NUMBER,label:"motion.preset_flyout.amount",defaultNumber:120,inputConfig:{min:0,unit:"%"}},{name:"wStartWithDivider",type:k.NUMBER,label:"motion.preset_flyout.start",defaultNumber:120,inputConfig:{min:0,unit:"%",icon:"w"}},{name:"wEndWithoutDivider",type:k.NUMBER,label:"motion.preset_flyout.end",defaultNumber:100,inputConfig:{min:0,unit:"%",icon:"w"}},{name:"hStartWithoutDivider",type:k.NUMBER,label:"motion.preset_flyout.start",defaultNumber:120,inputConfig:{min:0,unit:"%",icon:"h"}},{name:"wEndWithDivider",type:k.NUMBER,label:"motion.preset_flyout.end",defaultNumber:100,inputConfig:{min:0,unit:"%",icon:"w"}},{name:"hStartWithDivider",type:k.NUMBER,label:"motion.preset_flyout.start",defaultNumber:120,inputConfig:{min:0,unit:"%",icon:"h"}},{name:"hEndWithoutDivider",type:k.NUMBER,label:"motion.preset_flyout.end",defaultNumber:100,inputConfig:{min:0,unit:"%",icon:"h"}},{name:"delay",type:k.NUMBER,label:"motion.preset_flyout.delay",defaultNumber:0,inputConfig:{unit:"s",icon:"delay"},numberResolvedAsTiming:!0},{name:"duration",type:k.NUMBER,label:"motion.preset_flyout.duration",defaultNumber:.5,inputConfig:{min:.01,unit:"s",icon:"time"},numberResolvedAsTiming:!0},{name:"easing",type:k.EASING,label:"motion.preset_flyout.easing",defaultEasing:{easingType:w.OUT_CUBIC}}];Fe();var _M="motion.preset_name.size",TM=`Animates a node\u2019s width and/or height. Use this preset for resize-in / resize-out entrances and exits, or fully custom resize animations. 8198 8199Properties: 8200- type: "Resize In" starts at the resting size and shrinks by \`amount\`, "Resize Out" starts shrunk by \`amount\` and grows back to the resting size, "Custom" lets you specify Start /
8200End values explicitly. 8201- amount: How many pixels to shrink the width AND height by (only used when type is "Resize In" or "Resize Out"). 8202- axis: For Custom, which axes to animate \u2014 "X" / "Y" animate one axis only, "Both" animates both (each axis keeps its own start/end and they share the timing). 8203- startWidth / endWidth: Width start and end offset in pixels relative to the resting size (used when type is "Custom" and axis is "X" or "Both"). 8204- startHeight / endHeight: Height start and end offset in pixels relative to the resting size (used when type is "Custom" and axis is "Y" or "Both"). 8205- delay: How long to wait before the animation starts, in seconds. 8206- duration: The length of a single playthrough, in seconds. 8207- easing: The easing curve that controls the acceleration of the animation.`,hM=[{name:"type",type:k.TEXT,label:"motion.preset_flyout.type",defaultText:"resize_in",selectConfig:{options:[{value:"resize_in",label:"motion.preset_flyout.size.type.resize_in"},{value:"resize_out",label:"motion.preset_flyout.size.type.resize_out"},{value:"custom",label:"motion.preset_flyout.type.custom"}]}},{name:"amount",type:k.NUMBER,label:"motion.preset_flyout.amount",defaultNumber:50,inputConfig:{unit:"px"}},{name:"axis",type:k.TEXT,label:"motion.preset_flyout.axis",defaultText:"xy",selectConfig:{options:[{value:"x",label:"motion.preset_flyout.x"},{value:"y",label:"motion.preset_flyout.y"},{value:"xy",label:"motion.preset_flyout.both"}]}},{name:"startWidth",type:k.NUMBER,label:"motion.preset_flyout.start",defaultNumber:50,inputConfig:{icon:"w"}},{name:"startHeight",type:k.NUMBER,label:"motion.preset_flyout.start",defaultNumber:50,inputConfig:{icon:"h"}},{name:"endWidth",type:k.NUMBER,label:"motion.preset_flyout.end",defaultNumber:100,inputConfig:{icon:"w"}},{name:"endHeight",type:k.NUMBER,label:"motion.preset_flyout.end",defaultNumber:100,inputConfig:{icon:"h"}},{name:"delay",type:k.NUMBER,label:"motion.preset_flyout.delay",defaultNumber:0,inputConfig:{unit:"s",icon:"delay"},numberResolvedAsTiming:!0},{name:"duration",type:k.NUMBER,label:"motion.preset_flyout.duration",defaultNumber:.5,inputConfig:{min:.01,unit:"s",icon:"time"},numberResolvedAsTiming:!0},{name:"easing",type:k.EASING,label:"motion.preset_flyout.easing",defaultEasing:{easingType:w.OUT_CUBIC}}];Fe();var OM="motion.preset_name.text",gM=`Animates the text content of an element by keyframing textData with string values. Use this preset for typewriter effects that reveal text by character, word, or line. 8208 8209Properties: 8210- revealBy: Select "Character", "Word", or "Line" to control how much text appears at each keyframe. 8211- duration: The length of the animation in seconds.`,IM=[{name:"revealBy",type:k.TEXT,label:"Reveal By",defaultText:"character",selectConfig:{options:[{value:"character",label:"Character"},{value:"word",label:"Word"},{value:"line",label:"Line"}]}},{name:"duration",type:k.NUMBER,label:"Duration",defaultNumber:1.5,inputConfig:{min:.01,unit:"s"},numberResolvedAsTiming:!0}];var ln={[G.FADE_DEPRECATED]:{name:D0,description:v0,propDefs:x0,manifest:{icon:"Fade",applicableNodeTypes:[],disallowedNodeTypes:[],requiredNodeFields:[],disallowedNodeFields:[]}},[G.MOVE_DEPRECATED]:{name:M0,description:G0,propDefs:k0,manifest:{icon:"Move",applicableNodeTypes:[],disallowedNodeTypes:[],requiredNodeFields:[],disallowedNodeFields:[]}},[G.ROTATE_DEPRECATED]:{name:aM,description:lM,propDefs:uM,manifest:{icon:"Rotate",applicableNodeTypes:[],disallowedNodeTypes:[],requiredNodeFields:[],disallowedNodeFields:[]}},[G.SCALE]:{name:pM,description:mM,propDefs:EM,manifest:{icon:"Scale",applicableNodeTypes:[],disallowedNodeTypes:[],requiredNodeFields:[],disallowedNodeFields:[]}},[G.RESIZE_DEPRECATED]:{name:oM,description:iM,propDefs:sM,manifest:{icon:"Resize",applicableNodeTypes:[],disallowedNodeTypes:[],requiredNodeFields:[],disallowedNodeFields:[]}},[G.NEW]:{name:U0,description:V0,propDefs:H0,manifest:{icon:"Default",applicableNodeTypes:[],disallowedNodeTypes:[],requiredNodeFields:[],disallowedNodeFields:[]}},[G.TEXT_DATA]:{name:OM,description:gM,propDefs:IM,manifest:{icon:"Text",applicableNodeTypes:["TEXT"],disallowedNodeTypes:[],requiredNodeFields:[],disallowedNodeFields:[]}},[G.PATH_DRAW_DEPRECATED]:{name:z0,description:X0,propDefs:j0,manifest:{icon:"PathDraw",applicableNodeTypes:[],disallowedNodeTypes:[],requiredNodeFields:["strokes"],disallowedNodeFields:[]}},[G.PATH_TRAVEL_DEPRECATED]:{name:q0,description:Q0,propDefs:eM,manifest:{icon:"PathTravel",applicableNodeTypes:[],disallowedNodeTypes:[],requiredNodeFields:["strokes"],disallowedNodeFields:[]}},[G.OPACITY]:{name:W0,description:Y0,propDefs:K0,manifest:{icon:"Opacity",applicableNodeTypes:[],disallowedNodeTypes:[],requiredNodeFields:[],disallowedNodeFields:[]}},[G.CORNER_RADIUS]:{name:F0,description:w0,propDefs:B0,manifest:{icon:"CornerRadius",applicableNodeTypes:[],disallowedNodeTypes:[],requiredNodeFields:[],disallowedNodeFields:[]}},[G.ROTATION]:{name:cM,description:dM,propDefs:fM,manifest:{icon:"Rotation",applicableNodeTypes:[],disallowedNodeTypes:[],requiredNodeFields:[],disallowedNodeFields:[]}},[G.PATH]:{name:$0,description:Z0,propDefs:J0,manifest:{icon:"Path",applicableNodeTypes:[],disallowedNodeTypes:[],requiredNodeFields:["strokes"],disallowedNodeFields:[]}},[G.POSITION]:{name:tM,description:nM,propDefs:rM,manifest:{icon:"Position",applicableNodeTypes:[],disallowedNodeTypes:[],requiredNodeFields:[],disallowedNodeFields:[]}},[G.SIZE]:{name:_M,description:TM,propDefs:hM,manifest:{icon:"Size",applicableNodeTypes:[],disallowedNodeTypes:[],requiredNodeFields:[],disallowedNodeFields:[]}}},o5={...Object.fromEntries(Object.entries(ln).map(([e,t])=>[t.name,Number(e)])),["Corner Radius"]:G.CORNER_RADIUS,New:G.NEW,Opacity:G.OPACITY,Path:G.PATH,Position:G.POSITION,Rotation:G.ROTATION,Scale:G.SCALE,Size:G.SIZE,Text:G.TEXT_DATA};var Rn={[G.FADE_DEPRECATED]:{...ln[G.FADE_DEPRECATED],...Sn[G.FADE_DEPRECATED]},[G.MOVE_DEPRECATED]:{...ln[G.MOVE_DEPRECATED],...Sn[G.MOVE_DEPRECATED]},[G.ROTATE_DEPRECATED]:{...ln[G.ROTATE_DEPRECATED],...Sn[G.ROTATE_DEPRECATED]},[G.SCALE]:{...ln[G.SCALE],...Sn[G.SCALE]},[G.RESIZE_DEPRECATED]:{...ln[G.RESIZE_DEPRECATED],...Sn[G.RESIZE_DEPRECATED]},[G.NEW]:{...ln[G.NEW],...Sn[G.NEW]},[G.TEXT_DATA]:{...ln[G.TEXT_DATA],...Sn[G.TEXT_DATA]},[G.PATH_DRAW_DEPRECATED]:{...ln[G.PATH_DRAW_DEPRECATED],...Sn[G.PATH_DRAW_DEPRECATED]},[G.PATH_TRAVEL_DEPRECATED]:{...ln[G.PATH_TRAVEL_DEPRECATED],...Sn[G.PATH_TRAVEL_DEPRECATED]},[G.OPACITY]:{...ln[G.OPACITY],...Sn[G.OPACITY]},[G.CORNER_RADIUS]:{...ln[G.CORNER_RADIUS],...Sn[G.CORNER_RADIUS]},[G.ROTATION]:{...ln[G.ROTATION],...Sn[G.ROTATION]},[G.PATH]:{...ln[G.PATH],...Sn[G.PATH]},[G.POSITION]:{...ln[G.POSITION],...Sn[G.POSITION]},[G.SIZE]:{...ln[G.SIZE],...Sn[G.SIZE]}};Fe();var woe=new Set([yi.PATH_TRIM_START,yi.PATH_TRIM_END]);var $oe=[{id:"Position",name:"motion.preset_name.position",type:G.POSITION,manifest:Rn[G.POSITION].manifest},{id:"Scale",name:"motion.preset_name.scale",type:G.SCALE,manifest:Rn[G.SCALE].manifest},{id:"Rotation",name:"motion.preset_name.rotation",type:G.ROTATION,manifest:Rn[G.ROTATION].manifest},{id:"Size",name:"motion.preset_name.size",type:G.SIZE,manifest:Rn[G.SIZE].manifest},{id:"Opacity",name:"motion.preset_name.opacity",type:G.OPACITY,manifest:Rn[G.OPACITY].manifest},{id:"CornerRadius",name:"motion.preset_name.corner_radius",type:G.CORNER_RADIUS,manifest:Rn[G.CORNER_RADIUS].manifest},{id:"Path",name:"motion.preset_name.path",type:G.PATH,manifest:Rn[G.PATH].manifest},{id:"New",name:"motion.preset_name.new",type:G.NEW,manifest:Rn[G.NEW].manifest},{id:"Text",name:"motion.preset_name.text",type:G.TEXT_DATA,manifest:Rn[G.TEXT_DATA].manifest},{id:"Fade",name:"Fade",type:G.FADE_DEPRECATED,manifest:Rn[G.FADE_DEPRECATED].manifest},{id:"Move",name:"Move",type:G.MOVE_DEPRECATED,manifest:Rn[G.MOVE_DEPRECATED].manifest},{id:"Rotate",name:"Rotate",type:G.ROTATE_DEPRECATED,manifest:Rn[G.ROTATE_DEPRECATED].manifest},{id:"Resize",name:"Resize",type:G.RESIZE_DEPRECATED,manifest:Rn[G.RESIZE_DEPRECATED].manifest},{id:"PathDraw",name:"Path Draw",type:G.PATH_DRAW_DEPRECATED,manifest:Rn[G.PATH_DRAW_DEPRECATED].manifest},{id:"PathTravel",name:"Path Travel",type:G.PATH_TRAVEL_DEPRECATED,manifest:Rn[G.PATH_TRAVEL_DEPRECATED].manifest}
8211],Zoe=new Set([G.FADE_DEPRECATED,G.MOVE_DEPRECATED,G.ROTATE_DEPRECATED,G.RESIZE_DEPRECATED,G.PATH_DRAW_DEPRECATED,G.PATH_TRAVEL_DEPRECATED]),Joe=new Set([G.PATH,G.PATH_DRAW_DEPRECATED,G.PATH_TRAVEL_DEPRECATED]);Fe();var eie={[sc.NONE]:null,[sc.INSTANCE_SUBLAYER]:"Cannot write animations to instance sublayers via the plugin API",[sc.TOP_LEVEL_FRAME_PARENT]:"Cannot write animations to top-level frame parents via the plugin API",[sc.PRODUCT_COMPONENT]:"Cannot write animations to product components via the plugin API",[sc.UNSUPPORTED_NODE_TYPE]:"Cannot write animations to this node type via the plugin API"};Fe();Fe();Fe();var RM=100,AM="bezier",NM=[.5,0,.5,1],c_={p1x:0,p1y:0,p2x:.58,p2y:1},u_={mass:1,stiffness:100,damping:15},oie={easingType:w.OUT_CUBIC,bezierValues:c_},s5={[w.IN_CUBIC]:{p1x:.42,p1y:0,p2x:1,p2y:1},[w.EASE_IN]:{p1x:.42,p1y:0,p2x:1,p2y:1},[w.OUT_CUBIC]:c_,[w.INOUT_CUBIC]:{p1x:.42,p1y:0,p2x:.58,p2y:1},[w.LINEAR]:{p1x:0,p1y:0,p2x:1,p2y:1},[w.IN_BACK_CUBIC]:{p1x:.3,p1y:-.05,p2x:.7,p2y:-.5},[w.OUT_BACK_CUBIC]:{p1x:.45,p1y:1.45,p2x:.8,p2y:1},[w.INOUT_BACK_CUBIC]:{p1x:.7,p1y:-.4,p2x:.4,p2y:1.4},[w.CUSTOM_CUBIC]:c_,[w.SPRING]:void 0,[w.GENTLE_SPRING]:void 0,[w.CUSTOM_SPRING]:void 0,[w.SPRING_PRESET_ONE]:void 0,[w.SPRING_PRESET_TWO]:void 0,[w.SPRING_PRESET_THREE]:void 0,[w.HOLD]:void 0},a5={[w.IN_CUBIC]:void 0,[w.EASE_IN]:void 0,[w.OUT_CUBIC]:void 0,[w.INOUT_CUBIC]:void 0,[w.LINEAR]:void 0,[w.IN_BACK_CUBIC]:void 0,[w.OUT_BACK_CUBIC]:void 0,[w.INOUT_BACK_CUBIC]:void 0,[w.CUSTOM_CUBIC]:void 0,[w.SPRING]:u_,[w.GENTLE_SPRING]:u_,[w.CUSTOM_SPRING]:u_,[w.SPRING_PRESET_ONE]:{mass:1,stiffness:300,damping:20},[w.SPRING_PRESET_TWO]:{mass:1,stiffness:600,damping:15},[w.SPRING_PRESET_THREE]:{mass:1,stiffness:80,damping:20},[w.HOLD]:void 0};function Gf(e){return s5[e]??c_}function kf(e){return a5[e]??u_}var yM=st.array(st.number()).length(4).readonly(),$S=st.object({mass:st.number(),stiffness:st.number(),damping:st.number()}),ZS=st.object({p1x:st.number(),p1y:st.number(),p2x:st.number(),p2y:st.number()}),l5=st.object({easingType:st.literal(RM),bezierValues:yM.optional().default(NM)}),u5=st.object({easingType:st.literal(AM),bezierValues:yM.optional().default(NM)}),c5=st.object({easingType:st.literal(w.CUSTOM_SPRING),springValues:$S.default(kf(w.CUSTOM_SPRING)),bezierValues:ZS.optional()}),d5=st.object({easingType:st.literal(w.CUSTOM_CUBIC),bezierValues:ZS.default(Gf(w.CUSTOM_CUBIC)),springValues:$S.optional()}),f5=st.object({easingType:st.nativeEnum(w),springValues:$S.optional(),bezierValues:ZS.optional()}).refine(({easingType:e})=>e!==w.CUSTOM_SPRING&&e!==w.CUSTOM_CUBIC,{message:"Use custom easing schema for CUSTOM_SPRING/CUSTOM_CUBIC types"}),iie=st.union([l5,u5,c5,d5,f5]).transform(e=>{let t=e.easingType;if(t===RM||t===AM){let o=e.bezierValues;return{easingType:w.CUSTOM_CUBIC,springValues:void 0,bezierValues:{p1x:o[0],p1y:o[1],p2x:o[2],p2y:o[3]}}}let n=t===w.CUSTOM_SPRING?e.springValues??kf(w.CUSTOM_SPRING):void 0,r=t===w.CUSTOM_CUBIC?e.bezierValues??Gf(w.CUSTOM_CUBIC):void 0;return{easingType:t,springValues:n,bezierValues:r}});var uie=new Set([w.SPRING,w.GENTLE_SPRING,w.CUSTOM_SPRING,w.SPRING_PRESET_ONE,w.SPRING_PRESET_TWO,w.SPRING_PRESET_THREE]),p5={EASE_IN:w.IN_CUBIC,EASE_OUT:w.OUT_CUBIC,EASE_IN_AND_OUT:w.INOUT_CUBIC,EASE_IN_BACK:w.IN_BACK_CUBIC,EASE_OUT_BACK:w.OUT_BACK_CUBIC,EASE_IN_AND_OUT_BACK:w.INOUT_BACK_CUBIC,CUSTOM_CUBIC_BEZIER:w.CUSTOM_CUBIC,GENTLE:w.GENTLE_SPRING,QUICK:w.SPRING_PRESET_ONE,BOUNCY:w.SPRING_PRESET_TWO,SLOW:w.SPRING_PRESET_THREE};function bM(e){if(typeof e=="number")return e;if(typeof e=="string"){let t=p5[e];if(t!==void 0)return t;let n=w[e];return typeof n=="number"?n:null}return null}var JS=["CORNER_RADIUS","STROKE_WEIGHT","STACK_SPACING","STACK_PADDING_LEFT","STACK_PADDING_TOP","STACK_PADDING_RIGHT","STACK_PADDING_BOTTOM","VISIBLE","WIDTH","HEIGHT","RECTANGLE_TOP_LEFT_CORNER_RADIUS","RECTANGLE_TOP_RIGHT_CORNER_RADIUS","RECTANGLE_BOTTOM_LEFT_CORNER_RADIUS","RECTANGLE_BOTTOM_RIGHT_CORNER_RADIUS","BORDER_TOP_WEIGHT","BORDER_BOTTOM_WEIGHT","BORDER_LEFT_WEIGHT","BORDER_RIGHT_WEIGHT","VARIANT_PROPERTIES","STACK_COUNTER_SPACING","OPACITY","GRID_ROW_GAP","GRID_COLUMN_GAP","MOTION_TRANSLATION_X","MOTION_TRANSLATION_Y","MOTION_TRANSLATION_XY","MOTION_TRANSFORM_ORIGIN_X","MOTION_TRANSFORM_ORIGIN_Y","MOTION_TRANSFORM_ORIGIN_XY","MOTION_ROTATION","MOTION_SCALE_X","MOTION_SCALE_Y","MOTION_SCALE_XY","MOTION_SHEAR","SCROLL_OFFSET_X","SCROLL_OFFSET_Y","PATH_TRIM_START","PATH_TRIM_END","DISSOLVE_PROGRESS","MEDIA_CURRENT_TIME","TRANSFORM_3D_PERSPECTIVE","TRANSFORM_3D_TRANSLATION_Z","TRANSFORM_3D_ROTATION_X","TRANSFORM_3D_ROTATION_Y","TRANSFORM_3D_ROTATION_Z","SCENE_3D_PERSPECTIVE","POLYGON_COUNT","ARC_DATA_STARTING_ANGLE","ARC_DATA_ENDING_ANGLE","ARC_DATA_INNER_RADIUS","STAR_INNER_SCALE"];var tl={MOTION_ROTATION:"ROTATION",MOTION_SCALE_X:"SCALE_X",MOTION_SCALE_Y:"SCALE_Y",MOTION_SCALE_XY:"SCALE_XY",MOTION_SHEAR:"SHEAR",MOTION_TRANSLATION_X:"TRANSLATION_X",MOTION_TRANSLATION_Y:"TRANSLATION_Y",MOTION_TRANSLATION_XY:"TRANSLATION_XY"},fie=Object.fromEntries(Object.entries(tl).map(([e,t])=>[t,e]));var d_=["OFFSET_X","OFFSET_Y","RADIUS","SPREAD","COLOR","REFRACTION_RADIUS","SPECULAR_ANGLE","SPECULAR_INTENSITY","CHROMATIC_ABERRATION","SPLAY","REFRACTION_INTENSITY","START_RADIUS","NOISE_SIZE_X","NOISE_SIZE_Y","DENSITY","EFFECT_OPACITY","SECONDARY_COLOR"];var mie=new Set(d_);var E5=["TRANSFORM_3D_TRANSLATION_Z","TRANSFORM_3D_ROTATION_X","TRANSFORM_3D_ROTATION_Y","TRANSFORM_3D_ROTATION_Z","SCENE_3D_PERSPECTIVE"],PM=["CORNER_RADIUS","STROKE_WEIGHT","STACK_SPACING","STACK_PADDING_LEFT","STACK_PADDING_TOP","STACK_PADDING_RIGHT","STACK_PADDING_BOTTOM","WIDTH","HEIGHT","RECTANGLE_TOP_LEFT_CORNER_RADIUS","RECTANGLE_TOP_RIGHT_CORNER_RADIUS","RECTANGLE_BOTTOM_LEFT_CORNER_RADIUS","RECTANGLE_BOTTOM_RIGHT_CORNER_RADIUS","BORDER_TOP_WEIGHT","BORDER_BOTTOM_WEIGHT","BORDER_LEFT_WEIGHT","BORDER_RIGHT_WEIGHT","STACK_COUNTER_SPACING","OPACITY","GRID_ROW_GAP","GRID_COLUMN_GAP","TRANSLATION_X","TRANSLATION_Y","TRANSLATION_XY","ROTATION","SCALE_X","SCALE_Y","SCALE_XY","PATH_TRIM_START","PATH_TRIM_END"],_5=new Set(PM),T5=new Set([...PM,...E5]);function h5(e){return Object.prototype.hasOwnProperty.call(tl,e)}function LM(e){return h5(e)?tl[e]:e}var O5=[LM(JS[0]),...JS.slice(1).map(LM)];function DM(e){return O5.filter(t=>e.has(t))}var g5=DM(_5),vM=DM(T5),hie=new Set(g5),Oie=new Set(vM);var xM=vM;var yie=Math.PI/180,bie=180/Math.PI;var I5=new Set(["TRANSLATION_XY","SCALE_XY"]),Lie=new Set(xM.filter(e=>!I5.has(e)));var Ls=[0,0,1,1];
8211function qS(e,t,n){let r=1-e;return 3*r*r*e*t+3*r*e*e*n+e*e*e}function S5(e,t,n){let r=1-e;return 3*r*r*t+6*r*e*(n-t)+3*e*e*(1-n)}function f_(e,t){if(e<=0)return 0;if(e>=1)return 1;let[n,r,o,i]=t;if(n===0&&r===0&&o===1&&i===1)return e;let s=e;for(let u=0;u<8;u+=1){let c=qS(s,n,o)-e,d=S5(s,n,o);if(Math.abs(c)<1e-6||Math.abs(d)<1e-6)break;s-=c/d}let a=0,l=1;s=Math.min(1,Math.max(0,s));for(let u=0;u<12;u+=1){let c=qS(s,n,o);if(Math.abs(c-e)<1e-6)break;c<e?a=s:l=s,s=(a+l)/2}return qS(s,r,i)}function Pe(e,t){let n=10**t;return Math.round(e*n)/n}var R5=.001,A5=.9999;var N5=.03;function GM(e,t,n){return Math.min(n,Math.max(t,e))}function p_(e){let t=e.damping/(2*Math.sqrt(e.stiffness*e.mass));return GM(t,N5,A5)}function QS(e,t){let{stiffness:n,mass:r}=e,o=Math.sqrt(n/r),i=p_(e),s;if(i<1){let a=o*Math.sqrt(1-i*i),l=1,u=i*o/a;s=Math.exp(-t*i*o)*(l*Math.cos(a*t)+u*Math.sin(a*t))}else s=(1+o*t)*Math.exp(-t*o);return 1-s}function Ff(e){return e.mass>0&&e.stiffness>0&&e.damping>0}function kM(e){let t=e.damping/(2*Math.sqrt(e.stiffness*e.mass));return GM(1-t,0,1)}function wf(e){let{mass:t,stiffness:n}=e,r=Math.sqrt(n/t),o=p_(e),i=o*r,s=r*Math.sqrt(1-o*o),a=o*r/s;return(-Math.log(R5)+Math.log(1+a))/i}function FM(e){if(!Ff(e))return n=>n;let t=wf(e);return n=>QS(e,n*t)}function Cs(e,t){if(e.length<=2)return e;let n=[];for(let r=0;r<e.length;r+=1){let o=r>0&&t(e[r])===t(e[r-1]),i=r<e.length-1&&t(e[r])===t(e[r+1]);o&&i||n.push(e[r])}return n}function Bf(e,t,n){switch(n){case"SET":return e;case"OFFSET":return t+e;case"SCALE":return t*e}}function y5(e,t){return f_(t,[e.value.p1x,e.value.p1y,e.value.p2x,e.value.p2y])}function b5(e,t){let{mass:n,stiffness:r,damping:o}=e.value;if(!(n>0)||!(r>0)||!(o>0))return t;let i=Math.max(0,t)*wf(e.value);return QS(e.value,i)}function BM(e,t){switch(e.type){case"LINEAR":return t;case"BEZIER":return y5(e,t);case"SPRING":return b5(e,t);case"HOLD":return 0}}function Or(e,t,n){if(e.keyframes.length===0)return t;let r=e.keyframes,o=r[r.length-1];if(o.timeMicros<=n)return Bf(o.value,t,e.keyframeOperation);for(let i=0;i<r.length;i+=1){let s=r[i];if(s.timeMicros>=n){let a=Bf(s.value,t,e.keyframeOperation),l=i===0?null:r[i-1];if(l==null||n===s.timeMicros)return a;let u=Bf(l.value,t,e.keyframeOperation),c=s.timeMicros-l.timeMicros;if(c<=0)return a;let d=(n-l.timeMicros)/c,f=BM(s.easing,d);return u+(a-u)*f}}return Bf(o.value,t,e.keyframeOperation)}var nl={type:"LINEAR"},L5=1e-6,C5=1e-4;function P5(e){return Math.max(1,Math.round(e*1e6))}function hr(e,t){return Math.abs(e-t)<L5}function tR(e,t){if(e.type!==t.type)return!1;switch(e.type){case"LINEAR":case"HOLD":return!0;case"BEZIER":{let n=t;return hr(e.value.p1x,n.value.p1x)&&hr(e.value.p1y,n.value.p1y)&&hr(e.value.p2x,n.value.p2x)&&hr(e.value.p2y,n.value.p2y)}case"SPRING":{let n=t;return hr(e.value.mass,n.value.mass)&&hr(e.value.stiffness,n.value.stiffness)&&hr(e.value.damping,n.value.damping)}}}function D5(e,t){let n=new Set([0,t]);for(let r of e)for(let o of r.keyframes)n.add(o.timeMicros);return Array.from(n).sort((r,o)=>r-o)}function m_(e,t,n){if(t.length===1)return Or(t[0],e,n);let r=e,o=[];for(let i of t)i.keyframeOperation==="SCALE"?o.push(i):r=Or(i,r,n);return o.length===0?r:r*v5(o,n)}function v5(e,t){let n=(l,u)=>Or(l,1,u),r=e.filter(l=>l.keyframes.length>0).map(l=>{let u=l.keyframes[0],c=l.keyframes[l.keyframes.length-1],d=n(l,c.timeMicros)>=n(l,u.timeMicros),f=t>=u.timeMicros;return{track:l,startMicros:u.timeMicros,increasing:d,started:f}}).sort((l,u)=>l.startMicros!==u.startMicros?l.startMicros-u.startMicros:Number(l.increasing)-Number(u.increasing));if(r.length===0)return 1;let o=r.some(({started:l})=>l),i=r[0].startMicros,s=r.filter(({started:l,startMicros:u})=>o?l:u===i),a=n(s[0].track,t);for(let l=1;l<s.length;l+=1){let{track:u,increasing:c}=s[l],d=n(u,t);a=c?Math.max(a,d):Math.min(a,d)}return a}function wM(e,t){let n=Or(e,0,t);return{scale:Or(e,1,t)-n,offset:n}}function eR(e){return e.kind==="varying"&&hr(e.startValue,e.endValue)?{kind:"constant",value:e.startValue}:e}function x5(e,t,n){let r=wM(e,t),o=wM(e,n);if(hr(r.scale,o.scale)&&hr(r.offset,o.offset))return{kind:"exact",transform:{kind:"constant",scale:r.scale,offset:r.offset}};let i=t+(n-t)/2,s=e.keyframes.findIndex(c=>c.timeMicros>=i);if(s<=0)return{kind:"sample",reason:"missingSegment"};let a=e.keyframes[s],u=e.keyframes[s-1].timeMicros===t&&a.timeMicros===n;return a.easing.type==="HOLD"?{kind:"exact",transform:{kind:"constant",scale:r.scale,offset:r.offset}}:!u&&a.easing.type!=="LINEAR"?{kind:"sample",reason:"nonlinearSubsegment"}:{kind:"exact",transform:{kind:"varying",easing:a.easing,scaleStart:r.scale,scaleEnd:o.scale,offsetStart:r.offset,offsetEnd:o.offset}}}function M5(e,t){if(t.kind==="constant")return e.kind==="constant"?{kind:"exact",interval:{kind:"constant",value:e.value*t.scale+t.offset}}:{kind:"exact",interval:eR({kind:"varying",easing:e.easing,startValue:e.startValue*t.scale+t.offset,endValue:e.endValue*t.scale+t.offset})};if(e.kind==="constant")return{kind:"exact",interval:eR({kind:"varying",easing:t.easing,startValue:e.value*t.scaleStart+t.offsetStart,endValue:e.value*t.scaleEnd+t.offsetEnd})};if(!tR(e.easing,t.easing))return{kind:"sample",reason:"mixedEasing"};if(!hr(t.scaleStart,t.scaleEnd))return{kind:"sample",reason:"varyingScale"};let n=t.scaleStart;return{kind:"exact",interval:eR({kind:"varying",easing:e.easing,startValue:e.startValue*n+t.offsetStart,endValue:e.endValue*n+t.offsetEnd})}}function G5(e,t,n,r){if(t.filter(s=>s.keyframeOperation==="SCALE").length>=2)return{kind:"sample",intervalStartMicros:n,intervalEndMicros:r,reason:"multipleScaleTracks"};let i={kind:"constant",value:e};for(let s of t){let a=x5(s,n,r);if(a.kind==="sample")return{kind:"sample",intervalStartMicros:n,intervalEndMicros:r,reason:a.reason};let l=M5(i,a.transform);if(l.kind==="sample")return{kind:"sample",intervalStartMicros:n,intervalEndMicros:r,reason:l.reason};i=l.interval}return{kind:"exact",intervalStartMicros:n,intervalEndMicros:r,interval:i}}
8211function k5(e,t,n){let r=[];for(let o=0;o<n.length-1;o+=1)r.push(G5(e,t,n[o],n[o+1]));return r}function F5(e,t,n,r,o){let i=[];for(let s of e){if(s.kind==="exact"){w5(i,r,s.intervalStartMicros,s.intervalEndMicros,s.interval);continue}B5(i,t,n,r,s.intervalStartMicros,s.intervalEndMicros,o)}if(i.length>0){let s=Pe(m_(t,n,r),3),a=i[i.length-1];a.time===1&&!hr(a.value,s)&&ac(i,r,r,s)}return i}function ac(e,t,n,r){let o=Pe(n/t,4),i=Pe(r,3),s=e[e.length-1];if(s&&o===s.time&&hr(i,s.value))return s;s&&o===s.time&&(s.time=Pe(Math.max(0,o-C5),4));let a={time:o,value:i,easing:nl};return e.push(a),a}function w5(e,t,n,r,o){let i=ac(e,t,n,o.kind==="constant"?o.value:o.startValue);if(o.kind==="constant"){i.easing=nl;let a=ac(e,t,r,o.value);a.easing=nl;return}i.easing=o.easing;let s=ac(e,t,r,o.endValue);s.easing=nl}function B5(e,t,n,r,o,i,s){let a=P5(s);for(let u=o;u<i;u+=a){let c=ac(e,r,u,m_(t,n,u));c.easing=nl}let l=ac(e,r,i,m_(t,n,i));l.easing=nl}function UM(e,t,n,r=.5){if(n<=0)return[];let o=D5(t,n);if(o.length===0)return[];if(o.length===1)return[{time:Pe(o[0]/n,4),value:Pe(m_(e,t,o[0]),3),easing:nl}];let i=k5(e,t,o);return F5(i,e,t,n,r)}function nR(e){return e*(180/Math.PI)}function xn(e,t){let n=Pe(e,3);switch(t){case"px":return`${n}px`;case"rad":return`${n}rad`;case"number":return`${n}`}}var An={MOTION_TRANSLATION_X:{css:{property:"translateX",unit:"px",transformFunction:"translateX"},motionDev:{property:"x",unit:"px"},svg:{exportVia:"css"}},MOTION_TRANSLATION_Y:{css:{property:"translateY",unit:"px",transformFunction:"translateY"},motionDev:{property:"y",unit:"px"},svg:{exportVia:"css"}},MOTION_ROTATION:{css:{property:"rotate",unit:"rad",transformFunction:"rotate"},motionDev:{property:"rotate",unit:"deg",mapValue:nR},svg:{exportVia:"css"}},MOTION_SCALE_X:{css:{property:"scaleX",unit:"number",transformFunction:"scaleX",propertyDeclarationInitialValue:"1"},motionDev:{property:"scaleX",unit:"number"},svg:{exportVia:"css"}},MOTION_SCALE_Y:{css:{property:"scaleY",unit:"number",transformFunction:"scaleY",propertyDeclarationInitialValue:"1"},motionDev:{property:"scaleY",unit:"number"},svg:{exportVia:"css"}},MOTION_SHEAR:{css:{property:"shear",unit:"rad",transformFunction:"skewX"},motionDev:{property:"skewX",unit:"deg",mapValue:nR},svg:{exportVia:"css"}},OPACITY:{css:{property:"opacity",unit:"number",generateOffset:!0,parameterUnitDivisor:100},motionDev:{property:"opacity",unit:"number",parameterUnitDivisor:100},svg:{exportVia:"css"}},WIDTH:{css:{property:"width",unit:"px",generateOffset:!0},motionDev:{property:"width",unit:"px"},svg:{exportVia:"smil",attributeName:"width"}},HEIGHT:{css:{property:"height",unit:"px",generateOffset:!0},motionDev:{property:"height",unit:"px"},svg:{exportVia:"smil",attributeName:"height"}},MIN_WIDTH:{css:{property:"min-width",unit:"px",generateOffset:!0},motionDev:{property:"minWidth",unit:"px"},svg:null},MAX_WIDTH:{css:{property:"max-width",unit:"px",generateOffset:!0},motionDev:{property:"maxWidth",unit:"px"},svg:null},MIN_HEIGHT:{css:{property:"min-height",unit:"px",generateOffset:!0},motionDev:{property:"minHeight",unit:"px"},svg:null},MAX_HEIGHT:{css:{property:"max-height",unit:"px",generateOffset:!0},motionDev:{property:"maxHeight",unit:"px"},svg:null},CORNER_RADIUS:{css:{property:"border-radius",unit:"px",generateOffset:!0},motionDev:{property:"borderRadius",unit:"px"},svg:{exportVia:"smil",attributeName:"rx"}},RECTANGLE_TOP_LEFT_CORNER_RADIUS:{css:{property:"border-top-left-radius",unit:"px",generateOffset:!0},motionDev:{property:"borderTopLeftRadius",unit:"px"},svg:null},RECTANGLE_TOP_RIGHT_CORNER_RADIUS:{css:{property:"border-top-right-radius",unit:"px",generateOffset:!0},motionDev:{property:"borderTopRightRadius",unit:"px"},svg:null},RECTANGLE_BOTTOM_LEFT_CORNER_RADIUS:{css:{property:"border-bottom-left-radius",unit:"px",generateOffset:!0},motionDev:{property:"borderBottomLeftRadius",unit:"px"},svg:null},RECTANGLE_BOTTOM_RIGHT_CORNER_RADIUS:{css:{property:"border-bottom-right-radius",unit:"px",generateOffset:!0},motionDev:{property:"borderBottomRightRadius",unit:"px"},svg:null},STROKE_WEIGHT:{css:{property:"border-width",unit:"px",generateOffset:!0},motionDev:{property:"borderWidth",unit:"px"},svg:{exportVia:"css",cssPropertyOverride:"stroke-width"}},BORDER_TOP_WEIGHT:{css:{property:"border-top-width",unit:"px",generateOffset:!0},motionDev:{property:"borderTopWidth",unit:"px"},svg:null},BORDER_RIGHT_WEIGHT:{css:{property:"border-right-width",unit:"px",generateOffset:!0},motionDev:{property:"borderRightWidth",unit:"px"},svg:null},BORDER_BOTTOM_WEIGHT:{css:{property:"border-bottom-width",unit:"px",generateOffset:!0},motionDev:{property:"borderBottomWidth",unit:"px"},svg:null},BORDER_LEFT_WEIGHT:{css:{property:"border-left-width",unit:"px",generateOffset:!0},motionDev:{property:"borderLeftWidth",unit:"px"},svg:null},TEXT_STROKE_WIDTH:{css:{property:"-webkit-text-stroke-width",unit:"px",generateOffset:!0},motionDev:{property:"WebkitTextStrokeWidth",unit:"px"},svg:null},STACK_PADDING_LEFT:{css:{property:"padding-left",unit:"px",generateOffset:!0},motionDev:{property:"paddingLeft",unit:"px"},svg:null},STACK_PADDING_TOP:{css:{property:"padding-top",unit:"px",generateOffset:!0},motionDev:{property:"paddingTop",unit:"px"},svg:null},STACK_PADDING_RIGHT:{css:{property:"padding-right",unit:"px",generateOffset:!0},motionDev:{property:"paddingRight",unit:"px"},svg:null},STACK_PADDING_BOTTOM:{css:{property:"padding-bottom",unit:"px",generateOffset:!0},motionDev:{property:"paddingBottom",unit:"px"},svg:null},STACK_SPACING:{css:{property:"gap",unit:"px",generateOffset:!0},motionDev:{property:"gap",unit:"px"},svg:null},STACK_COUNTER_SPACING:{css:{property:"gap",unit:"px",generateOffset:!0},motionDev:{property:"gap",unit:"px"},svg:null},GRID_ROW_GAP:{css:{property:"row-gap",unit:"px",generateOffset:!0},motionDev:{property:"rowGap",unit:"px"},svg:null},GRID_COLUMN_GAP:{css:{property:"column-gap",unit:"px",generateOffset:!0},motionDev:{property:"columnGap",unit:"px"},svg:null},FONT_SIZE:{css:{property:"font-size",unit:"px",generateOffset:!0},motionDev:{property:"fontSize",unit:"px"},svg:{exportVia:"css"}},LETTER_SPACING:{css:{property:"letter-spacing",unit:"px"},motionDev:{property:"letterSpacing",unit:"px"},svg:null},LINE_HEIGHT:{css:{property:"line-height",unit:"px",generateOffset:!0},motionDev:{property:"lineHeight",unit:"px"},svg:null},PARAGRAPH_SPACING:{css:{property:"margin-bottom",unit:"px"},motionDev:{property:"marginBottom",unit:"px"},svg:null},PARAGRAPH_INDENT:{css:{property:"text-indent",unit:"px"},motionDev:{property:"textIndent",unit:"px"},svg:null}};var rl=new Set([An.MOTION_TRANSLATION_X.motionDev.property,An.MOTION_TRANSLATION_Y.motionDev.property,An.MOTION_ROTATION.motionDev.property,An.MOTION_SCALE_X.motionDev.property,An.MOTION_SCALE_Y.motionDev.property,An.MOTION_SHEAR.motionDev.property]);var WM={fills:{css:{property:"background-color"},motionDev:{property:"background"},svg:{property:"fill"}},strokes:{css:{property:"border-color"},motionDev:{property:"borderColor"},svg:{property:"stroke"}}},V5={css:{property:"color"},motionDev:{property:"color"},svg:{property:"fill"}},H5={css:{property:"-webkit-text-stroke-color"},motionDev:{property:"WebkitTextStrokeColor"},svg:{property:"stroke"}};function iR(e){return e in WM}function sR(e,t){return t?.isTextNode?e==="fills"?V5:H5:WM[e]}var W5={LAYER_BLUR:{RADIUS:{css:{property:"filter",unit:"px",cssFunction:"blur"},motionDev:{property:"filter",unit:"px",motionDevFunction:"blur"}}},BACKGROUND_BLUR:{RADIUS:{css:{property:"backdrop-filter",unit:"px",cssFunction:"blur"},motionDev:{property:"backdropFilter",unit:"px",motionDevFunction:"blur"}}}};var Y5=W5;function aR(e,t){return Y5[e]?.[t]?.motionDev??null}function lR(e){return Object.keys(e).map(t=>Number(t)).filter(t=>Number.isFinite(t)).sort((t,n)=>t-n)}function bi(e,t,n,r){let o=rR(e),i=rR(t),s=rR(n),a=Math.min(1,Math.max(0,r));if(a>=1)return K5(o,i,s);let l=Pe(a,2);return`rgba(${o}, ${i}, ${s}, ${l})`}function rR(e){return Math.min(255,Math.max(0,Math.round(e*255)))}
8211function K5(e,t,n){let r=i=>i.toString(16).toUpperCase().padStart(2,"0"),o=`${r(e)}${r(t)}${r(n)}`;return o[0]===o[1]&&o[2]===o[3]&&o[4]===o[5]?`#${o[0]}${o[2]}${o[4]}`:`#${o}`}function Uf(e){if(!e?.tracks||e.baseValue.type!=="COLOR")return null;let t=e.baseValue.value,n=[],r=e.accumulatedAncestorOffsetMicros??0,o=[...e.tracks].filter(i=>i!=null).sort((i,s)=>{let a=i.animationPreset?.timelineOffset??0,l=s.animationPreset?.timelineOffset??0;return a-l});for(let i=0;i<o.length;i++){let s=o[i];for(let a of s.keyframes){if(a.value.type!=="COLOR")continue;let l=(s.animationPreset?.timelineOffset??0)*1e6,u=a.timelinePosition+l+r,{r:c,g:d,b:f,a:p}=a.value.value;n.push({absolutePositionMicros:u,trackIndex:i,r:c,g:d,b:f,a:p,easing:a.easing})}}return n.sort((i,s)=>i.absolutePositionMicros-s.absolutePositionMicros),n.length>0?{keyframes:n,baseColor:t}:null}function YM(e){return"parameterUnitDivisor"in e?e.parameterUnitDivisor:1}function E_(e){switch(e){case"SET":return 0;case"OFFSET":return 1;case"SCALE":return 2;default:return 3}}function VM(e,t){return"mapValue"in e?e.mapValue(t):t}function z5(e,t){if(t?.isTextNode&&e==="STROKE_WEIGHT")return An.TEXT_STROKE_WIDTH}function X5(e,t,n){let r=z5(e,n);if(r)return r.motionDev;let o=n?.layoutMode;if(o==="HORIZONTAL"){if(e==="STACK_SPACING")return An.GRID_COLUMN_GAP.motionDev;if(e==="STACK_COUNTER_SPACING")return An.GRID_ROW_GAP.motionDev}else if(o==="VERTICAL"){if(e==="STACK_SPACING")return An.GRID_ROW_GAP.motionDev;if(e==="STACK_COUNTER_SPACING")return An.GRID_COLUMN_GAP.motionDev}return t.motionDev}function HM(e){return typeof e=="object"&&e!==null&&"tracks"in e&&"timelineDuration"in e}function j5(e,t,n){let r=new Map,o=0;for(let[i,s]of Object.entries(e)){if(HM(s))o=Math.max(o,s.timelineDuration);else if(typeof s=="object"&&s!==null)for(let _ of Object.values(s))_&&typeof _=="object"&&"timelineDuration"in _&&(o=Math.max(o,_.timelineDuration));if(i==="fills"||i==="strokes"||!HM(s))continue;let a=An[i];if(!a)continue;if(s.baseValue.type!=="FLOAT"){console.warn("Keyframe conversion does not support non-float keyframes",{parameterField:i,type:s.baseValue.type});continue}let l=t(i,a),u=l.property,c=VM(l,s.baseValue.value),d=s.accumulatedAncestorOffsetMicros??0,f=s.tracks.filter(_=>_!=null).map(_=>{let T=(_.animationPreset?.timelineOffset??0)*1e6,h=_.keyframes.flatMap(m=>m.value.type!=="FLOAT"?[]:[{timeMicros:m.timelinePosition+T+d,value:VM(l,m.value.value),easing:m.easing}]).sort((m,E)=>m.timeMicros-E.timeMicros);return{keyframeOperation:_.keyframeOperation,keyframes:h}}).filter(_=>_.keyframes.length>0).sort((_,T)=>E_(_.keyframeOperation)-E_(T.keyframeOperation));if(f.length===0)continue;let p=r.get(u);if(p&&n?.mergeDuplicateProperties){p.timelineDurationMicros=Math.max(p.timelineDurationMicros,s.timelineDuration),p.tracks.push(...f),p.tracks.sort((_,T)=>E_(_.keyframeOperation)-E_(T.keyframeOperation));continue}r.set(u,{target:l,baseValue:c,timelineDurationMicros:s.timelineDuration,tracks:f})}return{durationMicros:o,propertiesByName:r}}function KM(e,t){return j5(e,(n,r)=>X5(n,r,t))}var zM={OFFSET_X:"offsetX",OFFSET_Y:"offsetY",RADIUS:"radius",SPREAD:"spread"};function J5(e){let t=e.tracks[0];if(!t||t.keyframes.length===0)return null;let n=e.accumulatedAncestorOffsetMicros??0,r=(t.animationPreset?.timelineOffset??0)*1e6,o=[];for(let i of t.keyframes)i.value.type==="FLOAT"&&o.push({timeMicros:i.timelinePosition+r+n,value:i.value.value,easing:i.easing});return o.length===0?null:(o.sort((i,s)=>i.timeMicros-s.timeMicros),{track:{keyframeOperation:t.keyframeOperation,keyframes:o},durationMicros:e.timelineDuration})}function q5(e){return e.map(t=>({timeMicros:t.absolutePositionMicros,r:t.r,g:t.g,b:t.b,a:t.a,easing:t.easing})).sort((t,n)=>t.timeMicros-n.timeMicros)}function Vf(e,t){if(!t||t.length===0)return{tracks:[],durationMicros:0};let n=e.effects,r=[],o=0,i=!1;for(let s=0;s<t.length;s++){let a=t[s];if(!a)continue;let l={effectIndex:s,base:a},u=n?.[s];if(u){for(let[c,d]of Object.entries(u))if(d){if(c==="COLOR"){let f=Uf(d);if(!f)continue;l.color=q5(f.keyframes),i=!0,o=Math.max(o,d.timelineDuration)}else if(c in zM){let f=J5(d);if(!f)continue;let p=zM[c];l[p]=f.track,i=!0,o=Math.max(o,f.durationMicros)}}}r.push(l)}return i?{tracks:r,durationMicros:o}:{tracks:[],durationMicros:0}}function XM(e,t,n){if(e.length===0)return t;let r=e[0];if(n<=r.timeMicros)return r;let o=e[e.length-1];if(n>=o.timeMicros)return o;for(let i=1;i<e.length;i++){let s=e[i];if(s.timeMicros>=n){let a=e[i-1],l=s.timeMicros-a.timeMicros;if(l<=0)return s;let u=(n-a.timeMicros)/l;
8211return{r:a.r+(s.r-a.r)*u,g:a.g+(s.g-a.g)*u,b:a.b+(s.b-a.b)*u,a:a.a+(s.a-a.a)*u}}}return o}function Q5(e,t){let n=e.offsetX?Or(e.offsetX,e.base.offsetX,t):e.base.offsetX,r=e.offsetY?Or(e.offsetY,e.base.offsetY,t):e.base.offsetY,o=e.radius?Or(e.radius,e.base.radius,t):e.base.radius,i=e.color?XM(e.color,e.base.color,t):e.base.color;return`drop-shadow(${xn(n,"px")} ${xn(r,"px")} ${xn(Math.max(0,o),"px")} ${bi(i.r,i.g,i.b,i.a)})`}function ez(e,t){let n=[];for(let r=e.length-1;r>=0;r--)n.push(Q5(e[r],t));return n.join(" ")}function tz(e,t,n){let r=e.offsetX?Or(e.offsetX,e.base.offsetX,t):e.base.offsetX,o=e.offsetY?Or(e.offsetY,e.base.offsetY,t):e.base.offsetY,i=e.radius?Or(e.radius,e.base.radius,t):e.base.radius,s=e.color?XM(e.color,e.base.color,t):e.base.color;if(n)return`${xn(r,"px")} ${xn(o,"px")} ${xn(i,"px")} `+bi(s.r,s.g,s.b,s.a);let a=e.spread?Or(e.spread,e.base.spread,t):e.base.spread,l=`${xn(r,"px")} ${xn(o,"px")} ${xn(i,"px")} ${xn(a,"px")} `+bi(s.r,s.g,s.b,s.a);return e.base.inset?`${l} inset`:l}function nz(e,t,n){let r=[];for(let o=e.length-1;o>=0;o--)r.push(tz(e[o],t,n));return r.join(", ")}function rz(e,t){for(let n of e.keyframes)if(n.timeMicros===t)return n.easing;return null}function oz(e,t){for(let n of e)if(n.timeMicros===t)return n.easing;return null}function iz(e,t,n){let r=!1,o=!1,i=!1;for(let s of e.keyframes){if(s.timeMicros===n)i=!0;else if(s.timeMicros>t&&s.timeMicros<n)return!0;s.timeMicros<=t&&(r=!0),s.timeMicros>n&&(o=!0)}return!i&&r&&o}function sz(e,t,n){let r=!1,o=!1,i=!1;for(let s of e){if(s.timeMicros===n)i=!0;else if(s.timeMicros>t&&s.timeMicros<n)return!0;s.timeMicros<=t&&(r=!0),s.timeMicros>n&&(o=!0)}return!i&&r&&o}function az(e,t,n){let r=[];for(let s of e){for(let a of["offsetX","offsetY","radius","spread"]){let l=s[a];if(!l)continue;if(iz(l,t,n))return{type:"LINEAR"};let u=rz(l,n);u&&r.push(u)}if(s.color){if(sz(s.color,t,n))return{type:"LINEAR"};let a=oz(s.color,n);a&&r.push(a)}}if(r.length===0)return null;let[o,...i]=r;return i.every(s=>tR(o,s))?o:{type:"LINEAR"}}function jM(e,t,n=!1){return $M(e,t,(r,o)=>nz(r,o,n))}function $M(e,t,n){let r=new Set([0,t]),o=a=>Math.min(t,Math.max(0,a));for(let a of e){for(let l of["offsetX","offsetY","radius","spread"]){let u=a[l];if(u)for(let c of u.keyframes)r.add(o(c.timeMicros))}if(a.color)for(let l of a.color)r.add(o(l.timeMicros))}let i=Array.from(r).sort((a,l)=>a-l),s=i.map((a,l)=>{let u=i[l+1];return{timeMicros:a,value:n(e,a),easing:u!=null?az(e,a,u):null}});return Cs(s,a=>a.value)}function ZM(e,t){let n=e.filter(o=>!o.base.inset),r=n.length!==e.length;return n.length===0?{keyframes:[],droppedInset:r}:{keyframes:$M(n,t,ez),droppedInset:r}}Fe();var Ez=new Set(["width","height","maxWidth","maxHeight","borderRadius","borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius","borderWidth","borderTopWidth","borderRightWidth","borderBottomWidth","borderLeftWidth","paddingLeft","paddingTop","paddingRight","paddingBottom","marginBottom","x","y","scaleX","scaleY","rotate","skewX"]),mR=new Set(Object.values(An).map(e=>e.motionDev).filter(e=>e.unit==="px"&&!Ez.has(e.property)).map(e=>e.property));function _z(e,t,n){let r={mass:e,stiffness:t,damping:n},o=Math.sqrt(t/e),i=p_(r),s=wf(r),a=FM(r);return Object.assign(a,{__springParams:{mass:e,stiffness:t,damping:n,zeta:i,w0:o,duration:s}})}function qM(e){return typeof e=="function"&&"__springParams"in e}function cR(e,t,n){if(n.length===1&&n[0]?.type==="SPRING"){let o=n[0];if(Ff(o.value))return{duration:e,type:"spring",bounce:kM(o.value)}}let r=n.map(o=>{let{type:i}=o;switch(i){case"LINEAR":return"linear";case"BEZIER":{let{p1x:s,p1y:a,p2x:l,p2y:u}=o.value;return[Pe(s,3),Pe(a,3),Pe(l,3),Pe(u,3)]}case"SPRING":return Ff(o.value)?_z(o.value.mass,o.value.stiffness,o.value.damping):"linear";case"HOLD":return"linear";default:ic(i)}});return{duration:e,times:t,ease:r}}var QM=1e-4;function Tz(e){if(e.length===0)return[];let t=[...e];t.length>1&&t[t.length-1].time<1&&t.push({...t[t.length-1],time:1});let n=Math.round(1/QM),r=t.map(o=>Math.round(o.time*n));for(let o=1;o<r.length;o+=1)r[o]=Math.max(r[o],r[o-1]+1);if(r[r.length-1]>n){r[r.length-1]=n;for(let o=r.length-2;o>=0;o-=1)r[o]=Math.min(r[o],r[o+1]-1)}if(r[0]<0){r[0]=0;for(let o=1;o<r.length;o+=1)r[o]=Math.max(r[o],r[o-1]+1)}return t.map((o,i)=>({...o,time:r[i]/n}))}function hz(e,t){let n=new Map;for(let[r,o]of e.propertiesByName){let i=UM(o.baseValue,o.tracks,e.durationMicros),s=t?.normalizeParameterUnits?YM(o.target):1,a=Tz(i.map(l=>({...l,value:l.value/s})));a.length>0&&n.set(r,{keyframes:a,baseValue:o.baseValue/s}
8211)}return n}function Oz(e,t,n){let r=new Map;for(let[o,i]of Object.entries(e)){if(!i||!iR(o))continue;let s=sR(o,{isTextNode:n}).motionDev.property,a=o==="fills",l=!("tracks"in i),u;if(l){let f=i;u=Object.keys(f).map(Number).filter(p=>!isNaN(p)).sort((p,_)=>p-_).map(p=>[p,f[p]])}else u=[[0,i]];let c=a&&!n&&u.length>1,d=c?u:u.slice(0,1);for(let[f,p]of d){let _=Uf(p);if(!_)continue;let T=c?`--fill-color-${f}`:s,h=bi(_.baseColor.r,_.baseColor.g,_.baseColor.b,_.baseColor.a),m=_.keyframes.map(E=>({time:Pe(E.absolutePositionMicros/t,4),colorString:bi(E.r,E.g,E.b,E.a),easing:E.easing}));if(m.length>0){m.sort((O,g)=>O.time-g.time);let E=m.map(O=>O.easing);for(let O=0;O<m.length;O++)m[O].easing=O<m.length-1?E[O+1]:{type:"LINEAR"};r.set(T,{property:T,keyframes:m,baseColorString:h})}}}return r}function gz(e,t,n,r){let o=e.effects;if(!o||n===0)return[];let i=[];for(let s of lR(o)){let a=o[s];if(!a)continue;let l=t?.[s];if(l)for(let[u,c]of Object.entries(a)){if(!c)continue;let d=aR(l,u),f=r&&l==="BACKGROUND_BLUR"&&d?{...d,property:"filter",motionDevFunction:"blur"}:d;if(!f||c.baseValue.type!=="FLOAT")continue;let p=c.tracks[0];if(!p||p.keyframes.length===0)continue;let _=JM(f,c.baseValue.value),T=[...p.keyframes].sort((E,O)=>E.timelinePosition-O.timelinePosition),h=[];for(let E of T)E.value.type==="FLOAT"&&h.push({time:Pe(E.timelinePosition/n,4),valueString:JM(f,E.value.value),easing:E.easing});if(h.length===0)continue;let m=h.map(E=>E.easing);for(let E=0;E<h.length;E++)h[E].easing=E<h.length-1?h[E].easing.type==="HOLD"?h[E].easing:m[E+1]:{type:"LINEAR"};i.push({effectIndex:s,property:f.property,keyframes:h,baseValueString:_})}}return i}function JM(e,t){return`${e.motionDevFunction}(${xn(t,e.unit)})`}var Iz="boxShadow",Sz="textShadow";function Rz(e,t,n,r,o){if(n===0)return null;let{tracks:i}=Vf(e,t),s=o?i.filter(o):i;if(s.length===0)return null;let a=jM(s,n,r).map(l=>({time:Pe(l.timeMicros/n,4),valueString:l.value,easing:l.easing??{type:"LINEAR"}}));return a.length===0?null:{effectIndex:s[0].effectIndex,property:r?Sz:Iz,keyframes:a,baseValueString:a[0].valueString}}function Az(e,t,n){let{tracks:r}=Vf(e,t),o=ZM(r,n);return o.keyframes.length===0?null:{effectIndex:r.find(i=>!i.base.inset)?.effectIndex??0,property:"filter",keyframes:o.keyframes.map(i=>({time:Pe(i.timeMicros/n,4),valueString:i.value,easing:i.easing??{type:"LINEAR"}})),baseValueString:o.keyframes[0].value}}function dR(e){if(e.length<2)return e;let t=[];for(let n=0;n<e.length;n++){let r=e[n];if(r.easing.type==="HOLD"&&n<e.length-1){let i=e[n+1].time-QM;if(i<=r.time){t.push({...r,easing:{type:"LINEAR"}});continue}t.push({...r,easing:{type:"LINEAR"}}),t.push({...r,time:Pe(i,4),easing:{type:"LINEAR"},isHoldDuplicate:!0})}else t.push(r)}return t}function fR(e,t){if(e.length===0)return!0;let n=t(e[0]);return e.every(r=>t(r)===n)}function Nz(e,t,n,r,o){let i={},s={},a={},l=new Map,u={},c={},d={},f={},p={},_={},T=Array.from(e.entries()).sort(([m],[E])=>m.localeCompare(E));for(let[m,E]of T){let{keyframes:O,baseValue:g}=E;if(O.length===0)continue;if(fR(O,L=>L.value)){let L=O[0].value;L!==g&&(i[m]=L);continue}i[m]=O[0].value;let I=Cs(O,L=>L.value),S=dR(I),A=S.map(L=>L.time),R=S.map(L=>L.value),y=new Set;S.forEach((L,D)=>{L.isHoldDuplicate&&y.add(D)}),y.size>0&&l.set(m,y);let b=S.slice(0,-1).map(L=>L.easing);s[m]=R,a[m]=cR(r,A,b),pR(a[m],o)}let h=Array.from(t.entries()).sort(([m],[E])=>m.localeCompare(E));for(let[m,E]of h){let{keyframes:O}=E;if(O.length===0)continue;if(fR(O,y=>y.colorString)){u[m]=O[0].colorString;continue}u[m]=E.baseColorString;let g=Cs(O,y=>y.colorString),I=dR(g),S=I.map(y=>y.time),A=I.map(y=>y.colorString),R=I.slice(0,-1).map(y=>y.easing);c[m]=A,d[m]=cR(r,S,R),pR(d[m],o)}for(let m of n){let{keyframes:E,property:O,baseValueString:g}=m;if(E.length===0)continue;if(fR(E,b=>b.valueString)){f[O]=E[0].valueString;continue}f[O]=g;let I=Cs(E,b=>b.valueString),S=dR(I),A=S.map(b=>b.time),R=S.map(b=>b.valueString),y=S.slice(0,-1).map(b=>b.easing);p[O]=R,_[O]=cR(r,A,y),pR(_[O],o)}return{props:{initial:i,animate:s,transition:a,colorInitial:u,colorAnimate:c,colorTransition:d,...Object.keys(f).length>0?{effectInitial:f}:{},...Object.keys(p).length>0?{effectAnimate:p}:{},...Object.keys(_).length>0?{effectTransition:_}:{}},holdDuplicateIndices:l}}function pR(e,t){!e||t!=="loop"&&t!=="boomerang"||(e.repeat=1/0,t==="boomerang"&&(e.repeatType="reverse"))}function yz(e,t){let n=KM(e,{layoutMode:t?.layoutMode,isTextNode:t?.isTextNode}),r=n.durationMicros;if(e.effects)for(let[u,c]of Object.entries(e.effects)){if(!c)continue;let d=t?.effectTypes?.[Number(u)];if(d)for(let[f,p]of Object.entries(c))p&&aR(d,f)&&(r=Math.max(r,p.timelineDuration))}if(r=Math.max(r,Vf(e,t?.shadowEffectBases).durationMicros),r===0)return null;n.durationMicros=r;let o=hz(n,{normalizeParameterUnits:t?.normalizeParameterUnits}),i=Oz(e,r,t?.isTextNode??!1),s=gz(e,t?.effectTypes,r,t?.isVectorNode??!1);if(t?.isVectorNode&&!t?.isTextNode){let u=Az(e,t?.shadowEffectBases,r);u&&s.push(u)}let a=Rz(e,t?.shadowEffectBases,r,t?.isTextNode??!1,t?.isVectorNode&&!t?.isTextNode?u=>u.base.inset:void 0);if(a&&s.push(a),o.size===0&&i.size===0&&s.length===0)return null;let l=Pe(r/1e6,3);return{propertiesByName:o,colorPropertiesByName:i,effectProperties:s,durationSeconds:l,durationMicros:r}}function Li(e,t){let n=yz(e,t);return n?Nz(n.propertiesByName,n.colorPropertiesByName,n.effectProperties,n.durationSeconds,t?.playbackStyle).props:null}var bz=new Set(["x","y","rotate","scaleX","scaleY","skewX","opacity"]),zse=new Set([...bz,"width","height"]);
8211function Lz(e){return e==="linear"?Ls:qM(e)?Ls:e}function Cz(e,t){return qM(t)?t(e):f_(e,Lz(t))}function So(e,t,n,r){if(t.length<2)return n[0]??0;let o=0;for(let d=0;d<t.length-1;d++)e>t[d+1]&&(o=d+1);o=Math.min(o,t.length-2);let i=t[o],s=t[o+1],a=n[o],l=n[o+1],u=s===i?0:Math.max(0,Math.min(1,(e-i)/(s-i))),c=Cz(u,r[o]??"linear");return a+c*(l-a)}function Pz(e){let t=/^#([0-9a-fA-F]{3}|[0-9a-fA-F]{6})$/.exec(e.trim());if(t){let r=t[1],o=r.length===3?`${r[0]}${r[0]}${r[1]}${r[1]}${r[2]}${r[2]}`:r;return[parseInt(o.slice(0,2),16),parseInt(o.slice(2,4),16),parseInt(o.slice(4,6),16),1]}let n=/rgba\(\s*(\d+(?:\.\d+)?)\s*,\s*(\d+(?:\.\d+)?)\s*,\s*(\d+(?:\.\d+)?)\s*,\s*(\d+(?:\.\d+)?)\s*\)/.exec(e);return n?[Number(n[1]),Number(n[2]),Number(n[3]),Number(n[4])]:null}function ol(e,t){let n={},r={},o={};for(let[l,u]of Object.entries(e.transition)){let c=e.animate[l];if(!c||!("times"in u)||!u.times||u.times.length<2){n[l]=e.initial[l]??0,r[l]=c??[],o[l]=u;continue}let{times:d,ease:f}=u,p=So(t,d,c,f);n[l]=p,r[l]=[p,p],o[l]={duration:0,times:[0,1],ease:["linear"]}}for(let l of Object.keys(e.initial))l in n||(n[l]=e.initial[l]??0,r[l]=e.animate[l]??[]);let i={},s={},a={};for(let l of Object.keys(e.colorAnimate??{})){let u=e.colorAnimate?.[l],c=e.colorTransition?.[l];if(!u||!c||!("times"in c)||!c.times||c.times.length<2){i[l]=e.colorInitial?.[l]??u?.[0]??"rgba(0, 0, 0, 1)",u&&(s[l]=u),c&&(a[l]=c);continue}let{times:d,ease:f}=c,p=u.map(Pz);if(p.some(O=>O===null)){i[l]=e.colorInitial?.[l]??u[0]??"rgba(0, 0, 0, 1)",s[l]=u,a[l]=c;continue}let _=So(t,d,p.map(O=>O[0]),f),T=So(t,d,p.map(O=>O[1]),f),h=So(t,d,p.map(O=>O[2]),f),m=So(t,d,p.map(O=>O[3]),f),E=bi(_/255,T/255,h/255,m);i[l]=E,s[l]=[E,E],a[l]={duration:0,times:[0,1],ease:["linear"]}}for(let l of Object.keys(e.colorInitial??{}))if(!(l in i)){i[l]=e.colorInitial?.[l]??"rgba(0, 0, 0, 1)";let u=e.colorAnimate?.[l];u&&(s[l]=u)}return{initial:n,animate:r,transition:o,colorInitial:i,colorAnimate:s,colorTransition:a}}function ER(e){return{initial:{...e.initial,...e.colorInitial},animate:{...e.animate,...e.colorAnimate},transition:{...e.transition,...e.colorTransition}}}Fe();var Dz=new Set([w.IN_CUBIC,w.EASE_IN,w.OUT_CUBIC,w.INOUT_CUBIC,w.IN_BACK_CUBIC,w.OUT_BACK_CUBIC,w.INOUT_BACK_CUBIC]),vz=new Set([w.SPRING,w.GENTLE_SPRING,w.CUSTOM_SPRING,w.SPRING_PRESET_ONE,w.SPRING_PRESET_TWO,w.SPRING_PRESET_THREE]);function Hf(e){let t=bM(e.easingType);if(t===w.LINEAR)return{type:"LINEAR"};if(t===w.HOLD)return{type:"HOLD"};if(e.springValues)return{type:"SPRING",value:e.springValues};if(t!=null&&vz.has(t))return{type:"SPRING",value:kf(t)};if(e.bezierValues){let{x1:n,y1:r,x2:o,y2:i}=e.bezierValues;return{type:"BEZIER",value:{p1x:n,p1y:r,p2x:o,p2y:i}}}return t!=null&&Dz.has(t)?{type:"BEZIER",value:Gf(t)}:{type:"LINEAR"}}function Wf(e){switch(e.type){case"SPRING":return{type:"spring",...e.value};case"BEZIER":{let{p1x:t,p1y:n,p2x:r,p2y:o}=e.value;return{ease:[Pe(t,3),Pe(n,3),Pe(r,3),Pe(o,3)]}}case"LINEAR":case"HOLD":return{ease:"linear"}}}var vae={[yi.MOTION_TRANSLATION_X]:"translationX",[yi.MOTION_TRANSLATION_Y]:"translationY",[yi.MOTION_ROTATION]:"rotation",[yi.MOTION_SHEAR]:"shear"};var xae=new Set(d_);Fe();var Mz=new Map([[mo.OPACITY,["opacity"]],[mo.TRANSLATION,["x","y"]],[mo.ROTATION,["rotate"]],[mo.SCALE,["scaleX","scaleY"]]]),nle=new Map([[mo.OPACITY,["opacity"]],[mo.TRANSLATION,["translate"]],[mo.ROTATION,["rotate"]],[mo.SCALE,["scale"]]]);function e1(e,t){for(let n of e)if(n.interactionIDs.includes(t))return n;return null}function Gz(e,t,n){if(!e)return new Map;let r=new Map,o=e[mo.ALL];if(o){let i=o.find(a=>a.interactionIDs.length===0);if(i)for(let[,a]of n)for(let l of a)r.set(l,i);let s=e1(o,t);if(s)for(let[,a]of n)for(let l of a)r.set(l,s)}for(let[i,s]of Object.entries(e)){if(i===mo.ALL)continue;let a=n.get(i);if(!a)continue;let l=e1(s,t);if(l)for(let u of a)r.set(u,l)}return r}function kz(e){return Wf(Hf(e))}function t1(e,t){let n=Gz(e,t,Mz);if(n.size===0)return null;let r={};for(let[o,i]of n)r[o]={...kz(i.easing),duration:i.duration,...i.delay>0?{delay:i.delay}:{}};return r}function n1(){return typeof window>"u"?!1:window.matchMedia("(prefers-reduced-motion: reduce)").matches}function Fz(e,t){return!!e(t.websiteData.siteSettings).ignoreReducedMotion}function Yf(){return!!VD(void 0,fe()?.websiteData.siteSettings)?.ignoreReducedMotion}function r1(e,t){return n1()&&!Fz(e,t)}function __(){let e=Yf();return n1()&&!e}var T_=new Map,h_=new Map;function O_(e){let t=T_.get(e);if(t)return Promise.resolve(t);let n=h_.get(e);if(n)return n.promise;let r=()=>{},o=new Promise(i=>r=i);return h_.set(e,{resolve:r,promise:o}),o}function _R(e,t){if(T_.has(e))return;T_.set(e,t);let n=h_.get(e)?.resolve;n&&(n(t),h_.delete(e))}function TR(e){T_.delete(e)}function o1(e){if(e.length===0)return Promise.resolve(null);let t=e.map(n=>O_(n));return Promise.any(t)}function hR(){return document.documentElement}function OR(){return document.body}function i1(e){if(!(e instanceof HTMLElement||e instanceof SVGElement))return!1;let t=getComputedStyle(e);return["overflow","overflow-x","overflow-y"].some(n=>{let r=t.getPropertyValue(n);return r==="auto"||r==="scroll"})}function s1(e){if(!(e instanceof HTMLElement||e instanceof SVGElement))return!1;let t=getComputedStyle(e);return t.overflowX==="auto"||t.overflowX==="scroll"}function a1(e){if(!(e instanceof HTMLElement||e instanceof SVGElement))return!1;let t=getComputedStyle(e);return t.overflowY==="auto"||t.overflowY==="scroll"}function l1(e){let t=e.parentElement;for(;t&&t!==document.documentElement;){if(i1(t))return t;t=t.parentElement}return OR()}function gR(e){let t=e.parentElement;for(;t&&t!==document.body;){if(i1(t))return t;t=t.parentElement}return hR()}var wz=.8;function Bz(e,t){return e?.filter(n=>n.event?.interactionType===t)?.map(n=>n.id)?.filter(n=>n!=null)?.map(n=>ot(n))??[]}function g_(e,t,n,r){let{variableState:o,websiteContext:{env:i,setLocation:s,history:a}}=r;for(let l of n)switch(l.connectionType){case"INTERNAL_NODE":Yz(e,r,l,t);break;case"URL":if(l.connectionURL){let u=EP(l.connectionURL,i);if(!u)s({url:l.connectionURL});else{let{url:c,target:d}=Tf(u,l.openUrlInNewTab,i);
8211window.open(c,d)?.focus()}}break;case"SET_VARIABLE":if(l.targetVariable&&l.targetVariable.id&&l.targetVariableData){let u=Bu(l.targetVariableData),c=u!==null?To({get:e,variableState:o,modeContext:r.modeContext},u):null;c!==null?o.setVariable(l.targetVariable.id,c,r.modeContext):console.warn("Error evaluating variable data",l.targetVariableData)}break;case"CONDITIONAL":if(l.conditionalActions)for(let u of l.conditionalActions){let c=u.condition?Bu(u.condition):void 0;if(c===null)break;if(c===void 0||To({get:e,variableState:o,modeContext:r.modeContext},c)){if(u.actions){let d=SE(u.actions);g_(e,t,d,r)}break}}break;case"BACK":a.back();break;default:console.warn("unknown action type",l)}}function Uz(e,t,n,r){let o=r.atomStore;return()=>{let i=ho(r);if(i?.onAnimationComplete){i.onAnimationComplete();return}let s=t.transitionAtom;e(s)?.id===n&&(u1(n),o.set(s,void 0));let a=t.autoLayoutTransitionAtom;a&&e(a)?.id===n&&o.set(a,void 0)}}var Vz=0;function Hz(e,t,n,r){if(e?.transitionType==="SMART_ANIMATE"){let o=Vz++;return{id:o,durationSeconds:e.transitionDuration??wv,onTransitionEnd:Uz(t,n,o,r),motionAnimationData:Bv(e,r)}}}function Wz(e,t){e.type==="COMPONENT"&&t.type;let n=e.size,r=t.size;return n.x!==r.x||n.y!==r.y}function IR(e,t,n,r,o,i){let s=t.nodeById.get(r),a=t.nodeById.get(o),l=Wz(s,a),u=jz(n,t,l),c=Hz(n,e,u,t.websiteContext);if(c&&"transitionOverrides"in t.node&&t.node.transitionOverrides&&i?.id){let d=`${i.id.sessionID}:${i.id.localID}`,f=t1(t.node.transitionOverrides,d);f&&(c.perPropertyTransitions=f)}t.websiteContext.atomStore.set(u.transitionAtom,c),u.autoLayoutTransitionAtom&&t.websiteContext.atomStore.set(u.autoLayoutTransitionAtom,c?{...c,layout:!0,onTransitionEnd:()=>{}}:void 0)}function Yz(e,t,n,r){switch(n.navigationType){case"NAVIGATE":I_(n.connectionURL,t.websiteContext,n.transitionType,n.transitionDuration);break;case"SWAP_STATE":{n.transitionNodeID;let o=t.node.id;_v(o,t);let i=VS(t),s=Bz(i,"AFTER_TIMEOUT"),a=SR(n,t);let l=Xz(e,a,t);let{sessionID:u,localID:c}=n.transitionNodeID,d=`${u}
8211:${c}`,f=t.nodeById.get(d);if(!f||f.id===AS.id)break;if(IR(e,t,n,l,d,r),a.set(e,t.modeContext,d),n.transitionResetInteractiveComponents){let p=n.stateGroupContext?t.parentStates?.get(n.stateGroupContext):null;p&&p.stateResetHandlers.forEach(_=>_(e,t.modeContext))}c1(t.node.id,s);break}case"SCROLL_TO":{n.transitionNodeID;let o=n.transitionNodeID,i=n.extraScrollOffset||{x:0,y:0},s=!!n.transitionType&&n.transitionType!=="INSTANT_TRANSITION",a=r1(e,t.websiteContext);zz(t,o,i,s&&!a);break}default:console.warn("unknown navigation type",n);break}}function Kz(e,t){let n=[];n.push(e);let r=t.sourceStablePath;if(r.includes("I")){let o=r.split(";");for(let i=0;i<o.length;i++){let a=`${o.slice(0,i+1).join(";")};${e}`;n.push(a)}}return n}function zz(e,t,n,r){if(!t)return;let{sessionID:o,localID:i}=t,s=`${o}:${i}`,a=Kz(s,e);o1(a).then(l=>{if(l){let u=l1(l);if(!u)return;let c=u===OR(),d=s1(u),f=a1(u)||c,p=l.getBoundingClientRect(),_=u.getBoundingClientRect(),T=p.top-_.top,h=p.left-_.left,m={x:d?u.scrollLeft+h+n.x:u.scrollLeft,y:f?u.scrollTop+T+n.y:u.scrollTop};(c?window:u).scrollTo({top:m.y,left:m.x,behavior:r?"smooth":"instant"})}})}function I_(e,t,n,r){let o=n==="SMART_ANIMATE"&&r?{duration:r}:void 0;ge(!!e,"No URL provided for internal navigation"),t.setLocation({url:e,transition:o})}function Xz(e,t,n){let r=t.get(e,n.modeContext);return r||(n.node.type==="INSTANCE"?n.node.mainComponentId:null)}function SR(e,t){let{backingComponentIdState:n,parentStates:r}=t,o=e.stateGroupContext;return(o?r?.get(o):null)?.backingComponentIdState??n}function jz(e,t,n){let{transitionAtom:r,parentStates:o}=t,i=e.stateGroupContext,s=i?o?.get(i):null,a={transitionAtom:s?.transitionAtom??r};return n&&s?.parentAutoLayoutTransitionAtom&&(a.autoLayoutTransitionAtom=s.parentAutoLayoutTransitionAtom),a}function VS(e){let{node:t}=e;if(!("interactions"in t)||!t.interactions)return;let n=t.interactions,r=n.filter(d=>d.event?.interactionType==="ON_PRESS");if(!r.length)return n;let o;for(let d of r)if(o=d.actions?.find(f=>f.navigationType==="SWAP_STATE"&&f.connectionType==="INTERNAL_NODE"),o)break;if(!o||!o.transitionNodeID)return n;n=n.filter(d=>d.event?.interactionType!=="ON_CLICK");let{sessionID:i,localID:s}=o.transitionNodeID,a=`${i}:${s}`,{nodeById:l}=e,u=l.get(a);if(!("interactions"in u)||!u.interactions)return n;let c=u.interactions.find(d=>d.event?.interactionType==="ON_CLICK");return c?[...n,c]:n}function Lv(e,t,n){let r={},o=[],i=[];for(let s of n){let a=s.event?.interactionType;if(a){if(a==="ON_KEY_DOWN"){o.push(s);continue}if(a==="AFTER_TIMEOUT"){i.push(s);continue}r[a]=$z(e,t,s)}}return o.length>0&&(r.ON_KEY_DOWN=Zz(e,t,o)),i.length>
82110&&(r.AFTER_TIMEOUT=i.map(s=>{let a=s.event.transitionTimeout||wz;return{callback:()=>{g_(e,s,s.actions||[],t)},delayMilliseconds:a*1e3,interactionGuid:ot(s.id)||Ze,nodeId:t.node.id}})),r}function Cv(e,t,n){let r=e(t);return r||e(n)}function $z(e,t,n){return{mouseCallback:r=>{let o=new S_(e,n,n.actions||[],t,r);g_(e,n,n.actions||[],t),o.completeTracking(e,t)}}}function Zz(e,t,n){return{keyCallback:r=>{for(let o of n)pP(o,r)&&g_(e,o,o.actions||[],t)}}}function Pv(e){if(!(!("accessibleHTMLTag"in e)||!e.accessibleHTMLTag)&&"interactions"in e&&e.accessibleHTMLTag==="BUTTON"&&!e.interactions.find(n=>n.event?.interactionType==="ON_CLICK")){let n={event:{interactionType:"ON_CLICK"},actions:[{noop:!0}]};e.interactions?e.interactions.push(n):e.interactions=[n]}}var RR;function R_(){return RR||(RR=new Map),RR}function Jz(e){let t=R_(),n=t.get(e)||{reverseStateInfo:[]};n.reverseStateInfo.push([]),t.set(e,n)}function qz(e){let n=R_().get(e.target);let r=n.reverseStateInfo[n.reverseStateInfo.length-1];r.push(e)}function Qz(e){let t=R_(),n=t.get(e.target);let r=n.reverseStateInfo[n.reverseStateInfo.length-1];let o=r.pop();r.length===0&&(n.reverseStateInfo.pop(),n.reverseStateInfo.length===0&&t.delete(e.target))}function e6(e,t,n,r){let{variableState:o}=r,i=r.backingComponentIdState,s=[],a=l=>{if(l.connectionType==="CONDITIONAL"){if(l.conditionalActions)for(let u of l.conditionalActions){let c=u.condition?Bu(u.condition):void 0;if(c===null)break;if(c===void 0||To({get:e,variableState:o,modeContext:{}},c)){u.actions&&SE(u.actions).forEach(a);break}}return}if(l.connectionType==="INTERNAL_NODE"&&l.navigationType==="SWAP_STATE"){l.transitionNodeID;let u=SR(l,r);let c=i.get(e,r.modeContext),d=c;c||r.node.type==="INSTANCE"&&(d=r.node.mainComponentId);let{sessionID:f,localID:p}=l.transitionNodeID,_=`${f}:${p}`;(t.event?.interactionType==="ON_HOVER"||t.event?.interactionType==="ON_PRESS")&&s.push({oldBackingComponentId:d,newBackingComponentId:_,oldBackingComponentIdStateContents:c,target:u,interactionId:ot(t.id),triggerType:t.event.interactionType,action:l,modeContext:r.modeContext,get:e})}};return n.forEach(a),s}var S_=class{executedReversibleInteractions;hoverInteractionCalc;constructor(t,n,r,o,i){if(this.executedReversibleInteractions=e6(t,n,r,o),this.executedReversibleInteractions.length>0)if(n.event?.interactionType==="ON_HOVER"){let s=i.currentTarget.offsetParent;this.hoverInteractionCalc={origin:i.currentTarget,originSize:i.currentTarget.getBoundingClientRect(),parentDeltaStack:[{target:i.currentTarget,delta:{x:0,y:0}}]};let a=this.hoverInteractionCalc.parentDeltaStack;for(;s!==null&&s instanceof HTMLElement;){let l=a[a.length-1];a.push({target:s,delta:{x:l.delta.x+l.target.offsetLeft,y:l.delta.y+l.target.offsetTop}}),s=s.offsetParent}this.hoverInteractionCalc.parentDeltaStack.shift()}else n.event?.interactionType}completeTracking(t,n){if(!this.executedReversibleInteractions)return;let r=new Map;for(let o of this.executedReversibleInteractions)r.has(o.target)||r.set(o.target,[]),r.get(o.target)?.push(o);for(let o of r.keys()){Jz(o);let i=r.get(o);for(let s of i){let a=()=>{let l=s.target,u=l?.get(t,n.modeContext);l&&u===s.newBackingComponentId&&(IR(t,n,s.action,s.newBackingComponentId,s.oldBackingComponentId),s.oldBackingComponentIdStateContents?l.set(t,n.modeContext,s.oldBackingComponentIdStateContents):l.reset()),Qz(s)};s.triggerType==="ON_HOVER"?(this.hoverInteractionCalc,s.undoInfo={type:"ON_HOVER",...this.hoverInteractionCalc,undo:a}):s.triggerType==="ON_PRESS"&&(s.undoInfo={type:"ON_PRESS",undo:a}),qz(s)}}}},AR=new Map;function NR(){return AR||(AR=new Map),AR}function d1(e,t){let n=NR();n.has(e)||n.set(e,[]);let r=n.get(e);r.push(t)}function f1(e,t){let r=NR().get(e);let o=r.indexOf(t);o!==-1&&r.splice(o,1)}function lc(e){let n=NR().get(e.nativeEvent.type)||[];for(let r of n)r(e.nativeEvent)}function m1(){(0,p1.useEffect)(()=>{let e=t=>{R_().forEach(r=>{let o=()=>{if(r.reverseStateInfo.length===0)return;let i=r.reverseStateInfo[r.reverseStateInfo.length-1];if(i.length===0)return;let s=i[i.length-1].undoInfo;if(s.type==="ON_HOVER"){let a;for(let l=s.parentDeltaStack.length-1;l>=0;l--){let u=s.parentDeltaStack[l].target;if(!document.contains(u))break;let c=window.getComputedStyle(u);if(c.overflow&&c.overflow!=="visible"){let f=u.getBoundingClientRect();if(t.clientX<=f.left||t.clientX>
8211=f.right||t.clientY<=f.top||t.clientY>=f.bottom){AE()?.showHoverTargetRectangle(f,"red"),a=!1;break}}}if(a===void 0)for(let{target:l,delta:u}of s.parentDeltaStack){if(!document.contains(l))continue;let c=l.getBoundingClientRect(),d=[c.left+u.x,c.top+u.y],f=[c.left+u.x+s.originSize.width,c.top+u.y+s.originSize.height],p=new DOMRect(d[0],d[1],s.originSize.width,s.originSize.height);AE()?.showHoverTargetRectangle(p,"blue"),t.clientX>d[0]&&t.clientX<f[0]&&t.clientY>d[1]&&t.clientY<f[1]?a=!0:(AE()?.showHoverTargetRectangle(c,"green"),a=!1);break}a===!1&&(s.undo(),o());return}else if(s.type==="ON_PRESS"){t.buttons===0&&(s.undo(),o());return}};o()})};return window.addEventListener("mousemove",e),d1("mousemove",e),window.addEventListener("mouseup",e),d1("mouseup",e),()=>{window.removeEventListener("mousemove",e),f1("mousemove",e),window.removeEventListener("mouseup",e),f1("mouseup",e)}},[])}var E1=!0;setTimeout(()=>{E1=!1},200);var t6=class{persistentTimeouts=new Map;nextId=0;getPersistentTimeouts(){return this.persistentTimeouts}registerPersistentTimeout(t,n,r,o){let i=`${t}:${n}`,s=this.persistentTimeouts.get(i);if(s){if(s.isMounted=!0,s.delayMilliseconds===o)return-1;clearTimeout(s.timeoutHandle),this.persistentTimeouts.delete(i)}let a=this.reserveTimeoutId(),l=Date.now(),u=setTimeout(()=>{r(),this.persistentTimeouts.delete(i)},o+(E1?200:0));return this.persistentTimeouts.set(i,{timeoutHandle:u,startTime:l,delayMilliseconds:o,callback:r,isMounted:!0}),a}markTimeoutsAsUnmounted(t){for(let[n,r]of this.persistentTimeouts)n.startsWith(`${t}:`)&&(r.isMounted=!1)}cleanupUnmountedTimeouts(t,n){if(n){let r=[];for(let o of n){let i=`${t}:${o}`,s=this.persistentTimeouts.get(i);s&&!s.isMounted&&(clearTimeout(s.timeoutHandle),r.push(i))}r.forEach(o=>this.persistentTimeouts.delete(o))}}clearTimeoutsByInteractionGuidsAndNodeId(t,n){let r=[];for(let o of n){let i=`${t}:${o}`,s=this.persistentTimeouts.get(i);s&&(clearTimeout(s.timeoutHandle),r.push(i))}r.length>0&&r.forEach(o=>this.persistentTimeouts.delete(o))}reserveTimeoutId(){return this.nextId++}},n6=new t6,Ps=n6;var r6=(e,t=[],n,r)=>
8211{let o=t.find(i=>i.event?.interactionType==="ON_CLICK");if(!o?.actions){o&&o.actions;return}for(let i of o?.actions??[])if(i.connectionType==="URL"||i.connectionType==="INTERNAL_NODE"&&i.navigationType==="NAVIGATE")return hf(e,i.connectionType,i.connectionURL,i.openUrlInNewTab,n,r);return(o?.actions?.length??0)>0?o6(e,n):void 0};function gr(e=[],t,n,r){if(!t)return{};let o={},i=s=>!!s&&!!s.mouseCallback;if(i(t?.ON_CLICK)){let s=Pa(l=>{t?.ON_CLICK?.mouseCallback?.(l),l.preventDefault(),l.stopPropagation()},"onClick"),a=r6(s,e,n,r);o={onClick:s,...o,...a}}return i(t?.MOUSE_ENTER)&&(o.onMouseEnter=Pa(s=>{t?.MOUSE_ENTER?.mouseCallback?.(s),lc(s),s.stopPropagation()},"onMouseEnter")),i(t?.MOUSE_LEAVE)&&(o.onMouseLeave=Pa(s=>{t?.MOUSE_LEAVE?.mouseCallback?.(s),lc(s),s.stopPropagation()},"onMouseLeave")),i(t?.MOUSE_DOWN||t?.ON_PRESS)&&(o.onMouseDown=Pa(s=>{t?.MOUSE_DOWN?.mouseCallback?.(s),t?.ON_PRESS?.mouseCallback?.(s),lc(s),s.preventDefault(),s.stopPropagation()},"onMouseDown")),i(t?.MOUSE_UP)&&(o.onMouseUp=Pa(s=>{t?.MOUSE_UP?.mouseCallback?.(s),lc(s),s.stopPropagation()},"onMouseUp")),i(t?.ON_HOVER)&&(o.onMouseMove=Pa(s=>{t?.ON_HOVER?.mouseCallback?.(s),lc(s),s.stopPropagation()},"onMouseMove")),o}var A_={};function _1(e,t){let n=[];return e?.AFTER_TIMEOUT&&e.AFTER_TIMEOUT.forEach(({callback:o,delayMilliseconds:i,interactionGuid:s,nodeId:a})=>{let l=Ps.reserveTimeoutId(),u=A_[t]??[];u.push({callback:o,delayMilliseconds:i,interactionGuid:s,nodeId:a}),A_[t]=u,n.push(l)}),n}function u1(e){let t=A_[e];t&&t.length&&(t.forEach(({callback:n,delayMilliseconds:r,interactionGuid:o,nodeId:i})=>{Ps.registerPersistentTimeout(i,o,n,r)}),delete A_[e])}function T1(e,t){let n=[],r=0;return t?.AFTER_TIMEOUT&&t.AFTER_TIMEOUT.forEach(({callback:i,delayMilliseconds:s,interactionGuid:a})=>{let l=Ps.registerPersistentTimeout(e,a,i,s);l!==-1?n.push(l):r++}),{timeoutIds:n,persistentTimeoutCount:r}}function c1(e,t){t&&Ps.clearTimeoutsByInteractionGuidsAndNodeId(e,t)}function o6(e,t){return t?{role:"button",tabIndex:0,onClick:e,onKeyDown:r=>{(r.key==="Enter"||r.key===" ")&&e(r)}}:{}}function h1(e,t){let n=null;return(...r)=>{n!==null&&clearTimeout(n),n=setTimeout(()=>{e(...r)},t)}}var na=v(W()),KA=v(W());var Zr=(e,t)=>{let n=e.scrollBehavior==="STICKY_SCROLLS"||e.scrollBehavior==="FIXED";return{[yt.ScrollParallax]:n||(t?.isInStickyOrFixedTree??!1)}};function Mn(e,t){return t.disableMarquee?!1:e.type==="FRAME"||e.type==="TEXT"||e.type==="REPEATER"?!!e.behaviors?.marquee:!1}function O1(e,t){return Mn(e,t)&&(e.type==="FRAME"||e.type==="REPEATER")?!e.accessibleLabel:!1}var re=function(e){return e.FIXED="FIXED",e.FILL_PARENT="FILL_PARENT",e.HUG_CONTENTS="HUG_CONTENTS",e}({});function It(e){return il(e)&&e.layoutMode!=="NONE"}function $t(e,t){return t?(ge(t.children.includes(e.id),"node is parent of other node"),It(t)&&e.layoutPositioning!=="ABSOLUTE"):!1}function il(e){return e.type==="FRAME"||e.type==="SLOT"||e.type==="CODE_INSTANCE"||e.type==="CODE_LAYER"||e.type==="REPEATER"||e.type==="CMS_RICH_TEXT"}function N_(e){let{minWidth:t,minHeight:n,maxWidth:r,maxHeight:o}=e,i={};return n&&(i.minHeight=n),o&&(i.maxHeight=o),t&&(i.minWidth=t),r&&(i.maxWidth=r),i}function Kf(e,t){return t==="primary"?!!e.layoutGrow:e.layoutAlign==="STRETCH"}function yR(e,t){return t==="width"&&(e==="HORIZONTAL"||e==="GRID")||t==="height"&&e==="VERTICAL"?"primary":"counter"}function g1(e,t,n,r,o,i){let s=bR(t,o.rootNodeStyle);if(n&&$t(t,n)){if(Kf(t,yR(n.layoutMode,e)))return"FILL_PARENT"}else if(n===null&&(s==="independent"||i?.renderedByCode))return"FILL_PARENT";if(il(t)&&i6(t)&&t.layoutMode!=="NONE"){let l=yR(t.layoutMode,e),u=l==="primary"?t.primaryAxisSizingMode:t.counterAxisSizingMode;switch(u){case"FIXED":return"FIXED";case"AUTO":case void 0:return!o.enforceLayoutInvariants&&r?.length&&r.every(c=>c.layoutPositioning!=="ABSOLUTE"&&Kf(c,l)||c.visible===!1)||r?.length&&r.every(c=>c.layoutPositioning==="ABSOLUTE"||c.visible===!1)?"FIXED":"HUG_CONTENTS";default:xe(u)}}return t.type==="TEXT"&&(t.textAutoResize==="WIDTH_AND_HEIGHT"||e==="height"&&t.textAutoResize==="HEIGHT")||t.type==="GROUP"?"HUG_CONTENTS":"FIXED"}function Mt(e,t,n,r,o){let i=g1("width",e,t,n,r,o);if(Mn(e,r)){let s=t&&Mt(t,null,n,r,o)==="HUG_CONTENTS";(i==="HUG_CONTENTS"||i==="FILL_PARENT"&&s)&&(i="FIXED")}return i}function un(e,t,n,r,o){return g1("height",e,t,n,r,o)}function i6(e){return It(e)?e.type==="CODE_INSTANCE"||e.type==="CODE_LAYER"||e.type==="REPEATER"||e.type==="CMS_RICH_TEXT"?!0:e.type==="FRAME"||e.type==="SLOT"?e.children.length>0:!1:!1}function uc(e,t){return!t||!It(t)||!$t(e,t)?!1:e.layoutAlign==="STRETCH"&&t.layoutMode==="HORIZONTAL"&&t.counterAxisAlignItems!=="MIN"&&(t.layoutWrap==="WRAP"||t.counterAxisSizingMode==="AUTO")}function bR(e,t){return t==="component"&&e.type==="FRAME"&&e.isSlotContent?"independent":t}function y_(e,t){let n=t?.layoutMode;return n==="HORIZONTAL"||n==="VERTICAL"?Kf(e,yR(n,"width")):!1}var Ds="--transform-inner-width",vs="--transform-inner-height";function s6(e){let t=e[0][0],n=e[1][0],r=e[0][1],o=e[1][1],i=Math.atan2(n,t)*(180/Math.PI);return x(i)%90===0&&Ve(t*r+n*o,0)}function sl(e,t){return t.useCssRotationConstraints||s6(e)}function xs(e,t,n){let r=xt(Wt(n?.group?.relativeTransform,e.relativeTransform));return t!==null&&S1(r)}function b_(e){let n=(Math.atan2(e[1][0],e[0][0])*180/Math.PI%360+360)%360;return n>=45&&n<135||n>=225&&n<315}function I1(e,t,n,r,o,i,s){let a=xt(Wt(o?.group?.relativeTransform,e.relativeTransform));if(t==null||!S1(a))return{};let l=a,u=Mt(e,t,n,r,o),c=un(e,t,n,r,o),d={};if(d.transform=R1(l[0][0],l[1][0],l[0][1],l[1][1],s,i,r),Ir(e,t)){(u===re.HUG_CONTENTS||c===re.HUG_CONTENTS)&&console.warn("Transformed sized determined by both constraints and hug not yet supported.");let p=sl(a,r)&&!i?a6("100cqw","100cqh",a,e.size,e.absoluteBoundingBox,r):L_(e.absoluteBoundingBox.width,e.absoluteBoundingBox.height,a,e.size,e.absoluteBoundingBox,r,i,s);d.width=p.width,d.height=p.height,d.transform=p.transform}else{let f=b_(a);
8211u===re.FILL_PARENT&&(f?d.height="100cqw":d.width="100%"),c===re.FILL_PARENT&&(f?d.width="100cqh":d.height="100%")}return d}function L_(e,t,n,r,o,i,s,a){let l=Ro(0,0,n),u=Ro(0,r.y||1,n),c=Ro(r.x||1,0,n),d={x:u.x-l.x,y:u.y-l.y},f={x:c.x-l.x,y:c.y-l.y},p=o.width?e/o.width:1,_=o.height?t/o.height:1,T=(A,R)=>Math.sqrt(A*A+R*R),h=T(p*f.x,_*f.y),m=T(p*d.x,_*d.y),E=p*f.x/h,O=_*f.y/h,g=p*d.x/m,I=_*d.y/m,S=R1(E,O,g,I,a,s,i);return{width:x(h),height:x(m),transform:S}}function a6(e,t,n,r,o,i){let s=Ro(0,0,n),a=Ro(0,r.y||1,n),l=Ro(r.x||1,0,n),u={x:a.x-s.x,y:a.y-s.y},c={x:l.x-s.x,y:l.y-s.y},d=o.width?Y.cssLength(e).multiply(1/o.width):Y.px(0),f=o.height?Y.cssLength(t).multiply(1/o.height):Y.px(0),p,_,T=d.multiply(c.x),h=f.multiply(c.y),m=d.multiply(u.x),E=f.multiply(u.y);c.y===0?p=d.multiply(Math.abs(c.x)):c.x===0?p=f.multiply(Math.abs(c.y)):p=Y.hypot(T,h),u.y===0?_=d.multiply(Math.abs(u.x)):u.x===0?_=f.multiply(Math.abs(u.y)):_=Y.hypot(m,E);let g=c.x*u.y-c.y*u.x<0,I=g?-c.x:c.x,S=g?-c.y:c.y,A=Math.atan2(S,I)*(180/Math.PI),R=x(A,2),y=Math.sqrt(c.x*c.x+c.y*c.y),b=Math.sqrt(u.x*u.x+u.y*u.y),L=c.x*u.x+c.y*u.y,F=90-Math.acos(L/(y*b))*(180/Math.PI),U=x(F,2),N=R%90===0,K=U!==0||!N,C={forTailwind:i.optimizeForTailwindConversion};if(K){let P=Q.combineWithExplicitOrder(R!==0?Q.rotate(R):void 0,U!==0?Q.skewX(U):void 0,g?Q.scaleX(-1):void 0),z=p.toString(C),Ee=_.toString(C);return{width:z,height:Ee,transform:P}}let M=Q.combineWithDefaultOrder(R!==0?Q.rotate(R):void 0,g?Q.scaleX(-1):void 0);return{width:p.toString(C),height:_.toString(C),transform:M}}function S1(e){return!Ve(e[0][0],1,rn)||!Ve(e[1][0],0,rn)||!Ve(e[0][1],0,rn)||!Ve(e[1][1],1,rn)}function cc(e){return!Ve(Math.abs(e[0][0]),1,rn)||!Ve(Math.abs(e[1][0]),0,rn)||!Ve(Math.abs(e[0][1]),0,rn)||!Ve(Math.abs(e[1][1]),1,rn)}function C_(e){let t=Math.abs(e[0][0]),n=Math.abs(e[0][1]);if(!(Ve(t,1,rn)&&Ve(n,0,rn)))return Y.px(1).multiply(Y.var(vs).multiply(n).add(Y.var(Ds).multiply(t)))}function P_(e){let t=Math.abs(e[1][0]),n=Math.abs(e[1][1]);if(!(Ve(n,1,rn)&&Ve(t,0,rn)))return Y.px(1).multiply(Y.var(Ds).multiply(t).add(Y.var(vs).multiply(n)))}function D_(e,t){let n=Math.abs(e[0][0]),r=Math.abs(e[0][1]);if(!(Ve(n,1,rn)&&Ve(r,0,rn)))return Y.px(x(t.y*r+t.x*n))}function v_(e,t){let n=Math.abs(e[1][0]),r=Math.abs(e[1][1]);if(!(Ve(r,1,rn)&&Ve(n,0,rn)))return Y.px(x(t.x*n+t.y*r))}function Ir(e,t){return x_(e,t)||M_(e,t)}function x_(e,t){let n=e.constraints;return $t(e,t)?!1:n?.vertical===Er.TOP_BOTTOM||n?.vertical===Er.SCALE}function M_(e,t){let n=e.constraints;return $t(e,t)?!1:n?.horizontal===Kn.LEFT_RIGHT||n?.horizontal===Kn.SCALE}function R1(e,t,n,r,o,i,s){let{optimizeForTailwindConversion:a}=s;if(!(i||a))return`matrix(${e}, ${t}, ${n}, ${r}, 0, 0)`;let u=Tt(e),c=Tt(t),d=Tt(n),f=Tt(r),p=Math.atan2(c,u)*(180/Math.PI),_=p*Math.PI/180,T=Math.cos(_),h=Math.sin(_),m=u*f-c*d,E=Math.sqrt(u*u+c*c),O=m/E,g=T,I=-h,S=h,A=T,R=(u*g+c*S)/E,y=(u*I+c*A)/E,b=(d*g+f*S)/O,L=(d*I+f*A)/O,D=Math.atan2(b,L)*(180/Math.PI),F=Math.atan2(y,R)*(180/Math.PI),U=Number(p.toFixed(2)),N=Number(D.toFixed(2)),K=Number(F.toFixed(2)),C=Number(E.toFixed(2)),M=Number(O.toFixed(2));if(i&&o){if(o.current!==U){let P=LR(o.current,U);U=o.current+P}o.current=U}return Q.combineWithDefaultOrder(i||U!==0?Q.rotate(U):void 0,i||N!==0?Q.skewX(N):void 0,i||K!==0?Q.skewY(K):void 0,i||C!==1?Q.scaleX(C):void 0,i||M!==1?Q.scaleY(M):void 0)}function LR(e,t){let n=(e%360+360)%360,r=(t%360+360)%360,o=r-n;return o>180?o-=360:o<-180&&(o+=360),Math.abs(o)===180?n===0&&r===180?-180:n===180&&r===0||e<t?180:-180:o}function k_(e){let{node:t,parent:n,context:r,renderOptions:o}=e,i={...N_(t)},{width:s,height:a,top:l,left:u,bottom:c,right:d,transform:f,aspectRatio:p}=d6(e),_={forTailwind:o.optimizeForTailwindConversion};if(s!==void 0&&(i.width=s.toStyleValue(_)),a!==void 0&&(i.height=a.toStyleValue(_)),f!==void 0&&(i.transform=f),p!==void 0&&(i.aspectRatio=p),r?.group?.withinAutoLayout){if(i.gridColumn=1,i.gridRow=1,i.position="relative",u&&(i.marginLeft=u.toStyleValue(_)),r?.group?.isHorizontalFillParent){let T=Y.percent(100);u&&(T=T.subtract(u)),d&&(T=T.subtract(d)),i.width=T.toStyleValue(_)}else d&&(i.marginRight=d);l&&(i.marginTop=l.toStyleValue(_)),c&&(i.marginBottom=c)}
8211else i.position=u6(t,n),u!==void 0&&(i.left=u.toStyleValue(_)),d!==void 0&&(i.right=d.toStyleValue(_)),l!==void 0&&(i.top=l.toStyleValue(_)),c!==void 0&&(i.bottom=c.toStyleValue(_));return zf(t,n)&&(i.zIndex=9999),i}function zf(e,t){return!("scrollBehavior"in e)||$t(e,t)?!1:Boolean(t?.type==="FRAME"&&t.isBreakpointFrame)&&e.scrollBehavior==="FIXED"}function u6(e,t){return e.scrollBehavior==="STICKY_SCROLLS"?"sticky":zf(e,t)?"fixed":"absolute"}function c6(e,t){if(t?.group?.withinAutoLayout)return{horizontal:t?.group?.isHorizontalFillParent?Kn.SCALE:Kn.LEFT,vertical:Er.TOP};let{horizontal:n=Kn.LEFT,vertical:r=Er.TOP}=e.constraints??{};return{horizontal:n,vertical:r}}function F_(e,t){let{horizontal:n,vertical:r}=c6(e,t),o=t?.borderDisplacement??{top:0,right:0,bottom:0,left:0},i=e.constraintValues?.left??{pixelOffset:0,sizeFraction:0},s=e.constraintValues?.right??{pixelOffset:0,sizeFraction:1},a=e.constraintValues?.top??{pixelOffset:0,sizeFraction:0},l=e.constraintValues?.bottom??{pixelOffset:0,sizeFraction:1};if(t?.groupFrameOffset){let{x:u,y:c,frameWidth:d,frameHeight:f,groupWidth:p,groupHeight:_}=t.groupFrameOffset,T=d-p,h=f-_;i={pixelOffset:i.pixelOffset-u+i.sizeFraction*T,sizeFraction:i.sizeFraction},s={pixelOffset:s.pixelOffset-u+s.sizeFraction*T,sizeFraction:s.sizeFraction},a={pixelOffset:a.pixelOffset-c+a.sizeFraction*h,sizeFraction:a.sizeFraction},l={pixelOffset:l.pixelOffset-c+l.sizeFraction*h,sizeFraction:l.sizeFraction}}return{horizontal:{type:n,left:{pixelOffset:i.pixelOffset-o.left,sizeFraction:i.sizeFraction},right:{pixelOffset:s.pixelOffset+o.right,sizeFraction:s.sizeFraction}},vertical:{type:r,top:{pixelOffset:a.pixelOffset-o.top,sizeFraction:a.sizeFraction},bottom:{pixelOffset:l.pixelOffset+o.bottom,sizeFraction:l.sizeFraction}}}}function d6({node:e,parent:t,children:n,shouldOutputVariables:r,codeSyntaxLanguage:o,context:i,renderOptions:s,precomputeTransforms:a,ignoreConstraints:l}){let{horizontal:u,vertical:c}=F_(e,i),d=xt(Wt(i?.group?.relativeTransform,e.relativeTransform)),f=dc(d,e.size),p=Ir(e,t),_=!p&&cc(d)?a?D_(d,e.size):C_(d):void 0,T=!p&&cc(d)?a?v_(d,e.size):P_(d):void 0,h=!i?.group?.withinAutoLayout,{transform:m,...E}=p6({nodeWidth:f.width,bboxWidth:_,constraintBox:u,borderDisplacement:i?.borderDisplacement,ignoreConstraints:l,useTransform:h,resizing:Mt(e,t,n,s,i),textAlign:e.type==="TEXT"?e.textAlignHorizontal:void 0}),{transform:O,...g}=m6({nodeHeight:f.height,bboxHeight:T,constraintBox:c,borderDisplacement:i?.borderDisplacement,ignoreConstraints:l,useTransform:h,resizing:un(e,t,n,s,i),textAlign:e.type==="TEXT"?e.textAlignVertical:void 0}),I;if(e.targetAspectRatio&&f6(e,t)){let S=cc(d)?`${f.width}/${f.height}`:`${e.targetAspectRatio.x}/${e.targetAspectRatio.y}`;x_(e,t)&&(I=S,E.width=void 0),M_(e,t)&&(I=S,g.height=void 0)}if(r){let S={forTailwind:s.optimizeForTailwindConversion};if(E.width){let A=mf(o&&e.boundVariables?.size?.x?.resolvedCodeSyntax?.[o],e.boundVariables?.size?.x?.resolvedName);if(A){let R=E.width.toString(S);E.width=Y.var(A,R)}}if(g.height){let A=mf(o&&e.boundVariables?.size?.y?.resolvedCodeSyntax?.[o],e.boundVariables?.size?.y?.resolvedName);if(A){let R=g.height.toString(S);g.height=Y.var(A,R)}}}return{...E,...g,aspectRatio:I,transform:m||O?Q.combineWithDefaultOrder(m,O):void 0}}function f6(e,t){let n=x_(e,t),r=M_(e,t);return!n&&!r?!0:n!==r}function G_(e,t,n=!1){return Gt(e.pixelOffset,e.sizeFraction,t,n)}function Gt(e,t,n,r=!1){if(t===0&&!r)return Y.px(x(e,2));if(t===1&&r){let o=x(e,2);return o===0?Y.px(0):Y.px(-o)}if(r){let o=x(100-t*100,2),i=(1-t)*n,s=x(e-i,2);return s===0?o===0?Y.px(0):Y.percent(o):Y.percent(o).subtract(Y.px(s))}else{let o=x(t*100,2),i=t*n,s=x(e+i,2);return s===0?o===0?Y.px(0):Y.percent(o):Y.percent(o).add(Y.px(s))}}function p6({nodeWidth:e,bboxWidth:t,constraintBox:n,borderDisplacement:r,ignoreConstraints:o,resizing:i,textAlign:s,useTransform:a}){let l,u,c,d,f=t??(i===re.FIXED?Y.px(x(e)):void 0),p=r?r.left+r.right:0;if(o)l=f;else if(n.type==="SCALE"||n.type==="LEFT_RIGHT")u=G_(n.left,p),c=G_(n.right,p,!0);else if(n.type==="RIGHT"){l=f;let{pixelOffset:_,sizeFraction:T}=n.right;switch(s){case"CENTER":{c=Gt(a?_-e/2:_,T,p,!0),d=a?Q.translateX("50%"):void 0;break}case void 0:case"RIGHT":{c=Gt(_,T,p,!0);break}case"LEFT":case"JUSTIFIED":{c=Gt(a?_-e:_,T,p,!0),d=a?Q.translateX("100%"):void 0;break}default:xe(s)}}else if(n.type==="CENTER"){l=f;let{pixelOffset:_,sizeFraction:T}=n.left,h=n.right.pixelOffset-_-p;switch(s){case void 0:case"CENTER":{u=Gt(a?_+h/2:_,T,p),d=a?Q.translateX("-50%"):void 0;break}case"LEFT":case"JUSTIFIED":{u=Gt(_,T,p);break}case"RIGHT":{u=Gt(a?_+h:_,T,p),d=a?Q.translateX("-100%"):void 0;break}default:xe(s)}}else if(n.type==="LEFT"){l=f;let{pixelOffset:_,sizeFraction:T}=n.left;switch(s){case"CENTER":{u=Gt(a?_+e/2:_,T,p),d=a?Q.translateX("-50%"):void 0;break}case"LEFT":case"JUSTIFIED":case void 0:{u=Gt(_,T,p);break}case"RIGHT":{u=Gt(a?_+e:_,T,p),d=a?Q.translateX("-100%"):void 0;break}default:xe(s)}}else xe(n);return{width:l,left:u,right:c,transform:d}}function m6({nodeHeight:e,bboxHeight:t,constraintBox:n,borderDisplacement:r,ignoreConstraints:o,useTransform:i,resizing:s,textAlign:a}){let l,u,c,d,f=t??(s===re.FIXED?Y.px(x(e)):void 0),p=r?r.top+r.bottom:0;if(o)l=f;else if(n.type==="SCALE"||n.type==="TOP_BOTTOM")u=G_(n.top,p),c=G_(n.bottom,p,!0);else if(n.type==="BOTTOM"){l=f;let{pixelOffset:_,sizeFraction:T}=n.bottom;switch(a){case"CENTER":{c=Gt(i?_-e/2:_,T,p,!0),d=i?Q.translateY("50%"):void 0;break}case void 0:case"BOTTOM":{c=Gt(_,T,p,!0);break}case"TOP":{c=Gt(i?_-e:_,T,p,!0),d=i?Q.translateY("100%"):void 0;break}default:xe(a)}}else if(n.type==="CENTER"){l=f;let{pixelOffset:_,sizeFraction:T}=n.top,h=n.bottom.pixelOffset-_-p;switch(a){case void 0:case"CENTER":{u=Gt(i?_+h/2:_,T,p),d=i?Q.translateY("-50%"):void 0;break}case"BOTTOM":{u=Gt(i?_+h:_,T,p),d=i?Q.translateY("-100%"):void 0;break}case"TOP":{u=Gt(_,T,p);break}default:xe(a)}}else if(n.type==="TOP"){l=f;let{pixelOffset:_,sizeFraction:T}=n.top;switch(a){case"CENTER":{u=Gt(i?_+e/2:_,T,p),d=i?Q.translateY("-50%"):void 0;break}case"BOTTOM":{u=Gt(i?_+e:_,T,p),d=i?Q.translateY("-100%"):void 0;break}case"TOP":case void 0:{u=Gt(_,T,p);break}default:xe(a)}}else xe(n);return{height:l,top:u,bottom:c,transform:d}}
8211function Ro(e,t,n){return{x:n[0][0]*e+n[0][1]*t+n[0][2]*1,y:n[1][0]*e+n[1][1]*t+n[1][2]*1}}function dc(e,t){let n=Ro(0,0,e),r=Ro(t.x,0,e),o=Ro(0,t.y,e),i=Ro(t.x,t.y,e),s=Math.min(n.x,r.x,o.x,i.x),a=Math.max(n.x,r.x,o.x,i.x),l=Math.min(n.y,r.y,o.y,i.y),u=Math.max(n.y,r.y,o.y,i.y),c=a-s,d=u-l,f=Tt(s),p=Tt(l),_=Tt(c),T=Tt(d);return{x:f,y:p,width:_,height:T}}var E6={GRID:void 0,NONE:void 0,HORIZONTAL:void 0,VERTICAL:"column"},w_={MIN:"flex-start",CENTER:"center",MAX:"flex-end",SPACE_BETWEEN:"space-between",SPACE_EVENLY:"space-evenly",SPACE_AROUND:"space-around",BASELINE:"baseline",STRETCH:"stretch"};function _6(e){return["SPACE_BETWEEN","SPACE_EVENLY","SPACE_AROUND"].includes(e)}function T6(e){return e.type==="TEXT"&&e.textAutoResize!=="WIDTH_AND_HEIGHT"}function A1(e,t=0){let n=x(t),r=n===0?"0":`${n}px`;return`${x(e)} 0 ${r}`}function N1(e,t,n,r,o,i,s){let a=N_(e);if(It(t),!t||!It(t))return a;let l=Mt(e,t,n,r,o),u=un(e,t,n,r,o);if(xs(e,t,o)){let _={forTailwind:r.optimizeForTailwindConversion},T=xt(Wt(o?.group?.relativeTransform,e.relativeTransform));if(l!==re.FILL_PARENT){let h=i?D_(T,e.size):C_(T);a.width=h?.toStyleValue(_)}if(u!==re.FILL_PARENT){let h=i?v_(T,e.size):P_(T);a.height=h?.toStyleValue(_)}}else l===re.FIXED&&(e.targetAspectRatio&&u!==re.FIXED?a.aspectRatio=`${e.targetAspectRatio.x}/${e.targetAspectRatio.y}`:a.width=x(e.size.x+wE(e,t))),u===re.FIXED&&(e.targetAspectRatio&&l!==re.FIXED?a.aspectRatio=`${e.targetAspectRatio.x}/${e.targetAspectRatio.y}`:a.height=x(e.size.y+BE(e,t)));a.position="relative",e.scrollBehavior==="STICKY_SCROLLS"&&(a.position="sticky",a.top=0),a.flexShrink=0;let c=t.layoutMode,d=c==="HORIZONTAL",f=c==="VERTICAL",p=c==="GRID"&&t.type!=="SLOT";if(d&&l===re.FILL_PARENT||f&&u===re.FILL_PARENT?(a.flex=A1(e.layoutGrow,0),delete a.flexShrink,d&&!e.minWidth&&(a.minWidth=1),f&&!e.minHeight&&(a.minHeight=1)):p&&(e.gridColumnAnchorIndex!==void 0&&e.gridRowAnchorIndex,t.gridItemsPositioning==="ROW_AUTO_FLOW"?(e.gridColumnSpan&&e.gridColumnSpan>1&&(a.gridColumn=`span ${e.gridColumnSpan}`),e.gridRowSpan&&e.gridRowSpan>1&&(a.gridRow=`span ${e.gridRowSpan}`)):(a.gridColumn=e.gridColumnSpan?`${e.gridColumnAnchorIndex+1}/span ${e.gridColumnSpan}`:e.gridColumnAnchorIndex+1,a.gridRow=e.gridRowSpan?`${e.gridRowAnchorIndex+1}/span ${e.gridRowSpan}`:e.gridRowAnchorIndex+1),(e.gridChildHorizontalAlign&&l===re.FIXED||l!==re.FIXED)&&(l===re.FILL_PARENT?a.justifySelf="stretch":a.justifySelf=w_[e.gridChildHorizontalAlign||"MIN"]),(e.gridChildVerticalAlign&&u===re.FIXED||u!==re.FIXED)&&(u===re.FILL_PARENT?a.alignSelf="stretch":a.alignSelf=w_[e.gridChildVerticalAlign||"MIN"])),(d&&u===re.FILL_PARENT||f&&l===re.FILL_PARENT)&&(f?T6(e)&&!o?.allChildrenAreFillWidth?(a.width="min-content",a.minWidth="100%"):a.width="100%":e.size.y===0&&(e.type==="SVG"||e.type==="IMAGE")&&!s?(a.height="0",a.alignSelf="center"):t.layoutWrap!=="WRAP"&&t.counterAxisSizingMode==="FIXED"||uc(e,t)?a.height="100%":a.alignSelf="stretch"),il(t),il(t)&&o?.negativeItemSpacing){let _=t.layoutMode==="HORIZONTAL"?"marginRight":"marginBottom";a[_]=Y.px(o.negativeItemSpacing)}return a}function y1(e,t){if(!It(t)||!jr(t)||!e.layoutGrow||t.layoutMode!=="HORIZONTAL"&&t.layoutMode!=="VERTICAL")return;let n=t.layoutMode==="HORIZONTAL",r=0;if(It(e)&&(r+=n?(e.paddingLeft||0)+(e.paddingRight||0):(e.paddingTop||0)+(e.paddingBottom||0)),"strokeAlign"in e&&e.strokeAlign==="INSIDE"&&$r(e)){let o=vf(e);r+=n?o.left+o.right:o.top+o.bottom}return r>0?A1(e.layoutGrow,r):void 0}var b1=(e,t,n,r,o)=>{if(e.type==="RECTANGLE"||n.length<=1||e.layoutMode==="NONE")return null;if(e.primaryAxisAlignItems==="SPACE_EVENLY_LEGACY"&&e.computedNegativeItemSpacing!=null&&e.computedNegativeItemSpacing<0)return x(e.computedNegativeItemSpacing);if(e.itemSpacing>=0)return x(e.itemSpacing);let i=-1/0,s=n.filter(a=>!Kf(a,"primary")&&a.layoutPositioning!=="ABSOLUTE");if(e.layoutMode==="HORIZONTAL")if(s.length>0){let a=s.map(l=>dc(l.relativeTransform,l.size).width);i=-Math.min(...a)}else Mt(e,t,n,r,o)!==re.FILL_PARENT&&(i=-e.size.x);else if(s.length>0){let a=s.map(l=>dc(l.relativeTransform,l.size).height);i=-Math.min(...a)}else un(e,t,n,r,o)!==re.FILL_PARENT&&(i=-e.size.y);return x(Math.max(i,e.itemSpacing))};function CR({node:e,parent:t,children:n,itemSpacing:r,shouldOutputVariables:o,codeSyntaxLanguage:i,renderOptions:s,context:a}){let l={},{layoutMode:u,counterAxisAlignItems:c,layoutWrap:d,counterAxisSpacing:f=0}=e;if(O6(l,e,o,i),u==="GRID"&&e.type!=="SLOT")l.display=Mt(e,t,n,s,a)===re.HUG_CONTENTS?"inline-grid":"grid",e.gridColumnsSizing&&(l.gridTemplateColumns=e.gridColumnsSizing),e.gridRowsSizing&&(l.gridTemplateRows=e.gridRowsSizing),e.gridColumnGap&&(l.columnGap=e.gridColumnGap
8211),e.gridRowGap&&(l.rowGap=e.gridRowGap),e.gridItemsPositioning==="ROW_AUTO_FLOW"&&(l.gridAutoFlow="row");else{l.display="flex";let p=g6(e,n,s,a);l.flexDirection=E6[u],e.itemReverseZIndex&&(l.isolation="isolate");let _=S6(e,n);if(_&&_!=="MIN"&&(l.justifyContent=w_[_]),c&&(l.alignItems=w_[c]),l.alignContent=p,d==="WRAP"&&(l.flexWrap="wrap"),!_6(_)&&r!=null?!d||d==="NO_WRAP"?r>0&&(l.gap=r):(r===f||f===void 0)&&p!=="space-between"?l.gap=r:p==="space-between"?l.columnGap=r:r<0?l.rowGap=f:l.gap=f===r?f:`${f}px ${r}px`:d==="WRAP"&&p!=="space-between"&&f&&(l.rowGap=f),o){let T=l.gap??(typeof e.itemSpacing=="number"&&e.itemSpacing>0?e.itemSpacing:0),h=le(i&&e.boundVariables?.itemSpacing?.resolvedCodeSyntax?.[i],e.boundVariables?.itemSpacing?.resolvedName,typeof T=="number"?`${T}px`:T);h&&(l.gap=h)}}return l}function h6(e,t,n,r){return t?t.filter(o=>o.layoutPositioning!=="ABSOLUTE").every(o=>I6(o,e,t,n,r)===re.FILL_PARENT):!0}function O6(e,t,n,r){let o=It(t)&&t.strokesIncludedInLayout&&!jr(t)&&t.type!=="CODE_INSTANCE"&&t.type!=="CODE_LAYER"?UE(t):{top:0,right:0,bottom:0,left:0},i=(c,d)=>{let f=r&&t.boundVariables?.[d]?.resolvedCodeSyntax?.[r];return n?le(f,t.boundVariables?.[d]?.resolvedName,`${c}px`)??c:c},s=i(x((t.paddingTop||0)+o.top),"paddingTop"),a=i(x((t.paddingBottom||0)+o.bottom),"paddingBottom"),l=i(x((t.paddingLeft||0)+o.left),"paddingLeft"),u=i(x((t.paddingRight||0)+o.right),"paddingRight");s!==0&&(e.paddingTop=s),a!==0&&(e.paddingBottom=a),l!==0&&(e.paddingLeft=l),u!==0&&(e.paddingRight=u)}function g6(e,t,n,r){if(e.counterAxisAlignContent==="SPACE_BETWEEN")return"space-between";if(e.layoutWrap==="WRAP"&&!h6(e,t,n,r)){let o=e.counterAxisAlignItems||"MIN";return PR(o)}return"stretch"}function PR(e){switch(e){case"MIN":return"flex-start";case"CENTER":return"center";case"MAX":return"flex-end";case"BASELINE":return"baseline"}}function I6(e,t,n,r,o){return t&&It(t)&&t.layoutMode==="VERTICAL"?Mt(e,t,n,r,o):un(e,t,n,r,o)}function S6(e,t){return e.primaryAxisAlignItems==="SPACE_EVENLY_LEGACY"?t.filter(r=>r.layoutPositioning!=="ABSOLUTE"&&r.visible).length===1?"CENTER":"SPACE_BETWEEN":e.primaryAxisAlignItems}function DR(e,t){return t.transform3dEnabled&&e.scene3d?.preserve3d===!0}function al(e,t){return t.transform3dEnabled&&(e.scene3d?.preserve3d===!0||!!e.transform3d)}var xR={top:0,left:void 0,right:void 0,bottom:void 0,pointerEvents:"auto"};function Xn({node:e,parent:t,context:n,children:r,zIndex:o,itemSpacing:i,codeSyntaxLanguage:s,options:a={isFlattened:!1,canAnimate:!1,previousRotation:void 0},renderOptions:l}){let{previewingCodeBehavior:u,optimizeForTailwindConversion:c,rootNodeStyle:d}=l,f=a.precomputeTransforms??!1,p=bR(e,d),_=a.shouldOutputVariables??!1,T=e.relativeTransform!=null&&b_(e.relativeTransform)&&(Mt(e,t,r,l,n)===re.FILL_PARENT||un(e,t,r,l,n)===re.FILL_PARENT),h;if($t(e,t))h=N1(e,t,r,l,n,f,T);else if(t===null)if(n?.renderedByCode||u)h={...k_({node:e,parent:t,children:r,shouldOutputVariables:_,codeSyntaxLanguage:s,renderOptions:l,context:n,precomputeTransforms:f}),position:"relative",top:void 0,right:void 0,bottom:void 0,left:void 0};else if(p==="independent")h=A6(e);else if(p==="component"){let R=k_({node:e,parent:t,children:r,shouldOutputVariables:_,codeSyntaxLanguage:s,renderOptions:l,context:n,precomputeTransforms:f,ignoreConstraints:!0}),{top:y,left:b,right:L,bottom:D,...F}=R;h={...F,position:"relative"}}else h=R6(e,r,l,n);else h=k_({node:e,parent:t,children:r,shouldOutputVariables:_,codeSyntaxLanguage:s,renderOptions:l,context:n,precomputeTransforms:f});h.mixBlendMode=n?.group?.mixBlendMode??Xu(e.blendMode),T&&(h.containerType="size"),e.relativeTransform!=null&&sl(e.relativeTransform,l)&&!a?.canAnimate&&xs(e,t,n)&&Ir(e,t)&&(h.containerType="size");let m=I1(e,t,r,l,n,a?.canAnimate,a?.previousRotation),E;!a.isFlattened&&It(e)&&(iD(e)||t&&jr(t)&&(e.paddingLeft>0||e.paddingRight>0||e.paddingTop>0||e.paddingBottom>0))?E=CR({node:e,parent:t,children:r,itemSpacing:i,shouldOutputVariables:_,codeSyntaxLanguage:s,renderOptions:l,context:n}):!a.isFlattened&&(e.type==="CODE_INSTANCE"||e.type==="CODE_LAYER")&&It(e)?E=CR({node:e,parent:t,children:r,itemSpacing:e.itemSpacing,shouldOutputVariables:_,codeSyntaxLanguage:s,renderOptions:l,context:n}):e.type==="GROUP"?(E=N6(e,t,n),E.display==="inline-grid"&&(h.lineHeight="0")):E={display:"block"};let g=h.position==="sticky"&&!$t(e,t),I;
8211if(g){let R=n?.borderDisplacement?.bottom??0,y;t?.size.y&&typeof h.top=="number"?y=t.size.y-h.top-R:h.top!==void 0?c?y=`calc(100%-${h.top}+${R}px)`:y=`calc(100% - ${h.top} + ${R}px)`:t?.size.y&&(y=t.size.y-R),I={position:"absolute",top:h.top,left:h.left,bottom:n?.borderDisplacement?.bottom?-n.borderDisplacement.bottom:0,right:h.right,height:y,pointerEvents:"none"},h={...h,...xR}}let S={};if(l.transform3dEnabled){if(e.transform3d){let R=eP(e.transform3d);R.length>0&&(S.transform=R,e.transformOrigin&&!jI(e.transformOrigin)&&(S.transformOrigin=QC(e.transformOrigin))),e.transform3d.backfaceHidden&&(S.backfaceVisibility="hidden")}e.scene3d&&e.scene3d.perspective>0&&(S.perspective=`${e.scene3d.perspective}px`,e.scene3d.perspectiveOrigin&&!jI(e.scene3d.perspectiveOrigin)&&(S.perspectiveOrigin=`${Ef(e.scene3d.perspectiveOrigin.x)} ${Ef(e.scene3d.perspectiveOrigin.y)}`)),DR(e,l)&&(S.transformStyle="preserve-3d",E.transformStyle="preserve-3d"),I&&al(e,l)&&(I.transformStyle="preserve-3d")}let A={inner:E,outer:h,stickyWrapper:I,transform:m,transform3d:S};return y6(A,o),A}function R6(e,t,n,r){let o=un(e,null,t,n,r)===re.HUG_CONTENTS?void 0:e.size.y,s=It(e)?void 0:e.size.x;return{position:"relative",minWidth:"var(--content-min-width)",width:"100%",height:un(e,null,t,n,r)===re.HUG_CONTENTS?void 0:"var(--content-min-height)","--content-min-width":s?`max(100%, ${s}px)`:"100%","--content-min-height":o?`max(var(--100dvh), ${o}px)`:"var(--100dvh)"}}function A6(e){return{position:"relative",width:"100%",height:"100%"}}function N6(e,t,n){let r={};if($t(e,t)||n?.group?.withinAutoLayout){let o=y_(e,t)||Boolean(n?.group?.isHorizontalFillParent);r.display="inline-grid",o||(r.gridTemplateColumns="max-content"),r.gridTemplateRows="max-content",r.placeItems="start"}else r.display="contents";return r}function y6(e,t){t!==void 0&&(e.outer.zIndex=t)}function fc(e,t,n,r){if(n?.renderedByCode)return{};if(DR(e,r.renderOptions))return{};if(t&&"clipsContent"in e&&e.clipsContent===!1)return{};let o=Mn(e,r.renderOptions),i=e.overflowDirection??"NONE",s=!o&&(i==="HORIZONTAL_SCROLLING"||i==="HORIZONTAL_AND_VERTICAL_SCROLLING"),a=!o&&(i==="VERTICAL_SCROLLING"||i==="HORIZONTAL_AND_VERTICAL_SCROLLING"),l=s?"auto":"clip";return t?{overflowX:l,overflowY:a?"auto":"clip"}:r.withBaseStyles?{overflowX:s?"auto":"hidden"}:{}}function L1(e,t,n,r,o,i,s){let{shouldOutputVariables:a}=s,{cursor:l,opacity:u,...c}=n,d,f,p,_,T=Rs(e,!1);if(e.effects&&!o){let{boxShadow:F,filter:U}=gD(e,T,s);d=F?{boxShadow:F}:void 0,_=U?{filter:U}:void 0,f=hS(T,s)}else o&&(p={filter:`url(${o})`});let m=$r(e)||r?lv(e,i,r,s):void 0,E={...d,...m},O=i?{...E,...HE(e,t),position:"absolute",pointerEvents:"none"}:void 0,g=xS(e),I={borderTopLeftRadius:g.topLeft,borderTopRightRadius:g.topRight,borderBottomRightRadius:g.bottomRight,borderBottomLeftRadius:g.bottomLeft},{borderTopLeftRadius:S,borderTopRightRadius:A,borderBottomRightRadius:R,borderBottomLeftRadius:y}=a?MS(I,e,s):I,b={borderTopLeftRadius:S,borderTopRightRadius:A,borderBottomRightRadius:R,borderBottomLeftRadius:y,cursor:l,opacity:u,..._,...i?{}:E},L={...c,...p},D={...f,borderTopLeftRadius:S,borderTopRightRadius:A,borderBottomRightRadius:R,borderBottomLeftRadius:y};return{containerStyles:b,clipperStyles:L,borderStyles:O,sharedBackgroundStyles:D,renderOptions:s}}function vR(e,t,n,r){let o=r?wE(t,n):0,i=Math.min(t.maxWidth||Number.POSITIVE_INFINITY,t.size.x);e.width=x(i+o)}function C1({node:e,parent:t,context:n,children:r,renderOptions:o}){let i={};if(Mn(e,o)&&Mt(e,t,r,o,n)===re.FIXED&&!Ir(e,t)){let s=$t(e,t);vR(i,e,t,s)}return i}function jn({node:e,parent:t,children:n,context:r,renderOptions:o}){let i={position:"relative"},{rootNodeStyle:s,previewingCodeBehavior:a}=o;if(!t&&!s&&!a)return i.width="100%",i.height="100%",i.minWidth="var(--content-min-width)",i.minHeight="var(--content-min-height)",i;let l=Mt(e,t,n,o,r);l!==re.HUG_CONTENTS&&(i.width="100%");let u=un(e,t,n,o,r);u!==re.HUG_CONTENTS&&(i.height="100%");let c=$t(e,t),d=()=>{let f=c?BE(e,t):0,p=Math.min(e.maxHeight||Number.POSITIVE_INFINITY,e.size.y);i.height=x(p+f)};if(Mn(e,o))e.type==="FRAME"&&n?.some(p=>Mt(p,e,n,o,r)===re.FILL_PARENT)&&vR(i,e,t,c);else if(!Ir(e,t)){let f=b_(e.relativeTransform),p=(h,m)=>!f||h===re.HUG_CONTENTS?h:m===re.FILL_PARENT?m:re.FIXED,_=p(l,u),T=p(u,l);_===re.FIXED&&(e.targetAspectRatio&&T!==re.FIXED?i.aspectRatio=`${e.targetAspectRatio.x}/${e.targetAspectRatio.y}`:vR(i,e,t,c)),T===re.FIXED&&(e.targetAspectRatio&&_!==re.FIXED?i.aspectRatio=`${e.targetAspectRatio.x}/${e.targetAspectRatio.y}`:d())}return i}function Ko(e,t){let n={};return e.isDecorativeImage&&(n.role="presentation",n["aria-hidden"]=!0),e.accessibleLabel&&!t&&(n["aria-label"]=e.accessibleLabel),e.ariaAttributes?.ariaHidden!==void 0&&(n["aria-hidden"]=e.ariaAttributes.ariaHidden),e.ariaAttributes?.ariaRole!==void 0&&(n.role=e.ariaAttributes.ariaRole.join(" ")),e.ariaAttributes?.ariaCurrent!==void 0&&(n["aria-current"]=e.ariaAttributes.ariaCurrent),n}var b6={ALPHA:"alpha",LUMINANCE:"luminance",VECTOR:"alpha"};function B_(e,t,n){return!e.enableGroupKeyframeAnimations||!t||t.maskReferenceBoundingBox===n?t:{...t,maskReferenceBoundingBox:n}}function $n({node:e,context:t,websiteContext:n}){let{optimizeForTailwindConversion:r}=n.renderOptions,{masks:o}=t||{};if(!o)return{};let i=F_(e,t),s=o.reduce((l,u)=>{let c=u;if(!c.hash)return l;let d=go(c.assets,c.hash),f=n.getAssetURL(d.url),{isolatedAbsoluteRenderBounds:p}=c,{absoluteBoundingBox:_}=e,T=t?.maskReferenceBoundingBox??_,h=F_(c,t);if(l.maskImage.push(`url("${f}")`),l.maskRepeat.push("no-repeat"),l.maskClip.push("no-clip"),l.maskComposite.push("intersect"),l.maskMode.push(c.maskType?b6[c.maskType]:"alph
8211a"),p){let m=p.x-T.x,E=p.y-T.y,O=[`${x(m)}px`,`${x(E)}px`],g=[`${x(p.width)}px`,`${x(p.height)}px`],I={forTailwind:r};if(h.horizontal.type===Kn.LEFT_RIGHT&&i.horizontal.type===h.horizontal.type){let S=h.horizontal.left.pixelOffset-i.horizontal.left.pixelOffset,A=h.horizontal.right.pixelOffset-i.horizontal.right.pixelOffset;O[0]=`${x(S)}px`,g[0]=Y.percent(100).subtract(Y.px(x(S-A))).toString(I)}if(h.vertical.type===Er.TOP_BOTTOM&&i.vertical.type===h.vertical.type){let S=h.vertical.top.pixelOffset-i.vertical.top.pixelOffset,A=h.vertical.bottom.pixelOffset-i.vertical.bottom.pixelOffset;O[1]=`${x(S)}px`,g[1]=Y.percent(100).subtract(Y.px(x(S-A))).toString(I)}l.maskPosition.push(O.join(" ")),l.maskSize.push(g.join(" "))}else l.maskSize.push("auto"),l.maskPosition.push("0px 0px");return l},{maskImage:[],maskPosition:[],maskRepeat:[],maskClip:[],maskComposite:[],maskSize:[],maskMode:[]}),a=Object.fromEntries(Object.entries(s).map(([l,u])=>[l,u.join(", ")]));return(a.maskPosition==="0px 0px"||a.maskPosition==="0% 0%"||a.maskPosition==="0 0")&&delete a.maskPosition,r||(a.WebkitMaskImage=a.maskImage,a.maskPosition&&(a.WebkitMaskPosition=a.maskPosition),a.WebkitMaskRepeat=a.maskRepeat,a.WebkitMaskClip=a.maskClip,a.WebkitMaskSize=a.maskSize),a}var P1=/^(-?[\d.]+)px (-?[\d.]+)px$/;
8211function D1(e){return typeof e?.maskPosition=="string"&&P1.test(e.maskPosition)}function v1(e,t,n){if(t===0&&n===0)return e;let r=i=>{if(typeof i!="string")return i;let s=P1.exec(i);return s?`${x(parseFloat(s[1])+t)}px ${x(parseFloat(s[2])+n)}px`:i},o={...e};return o.maskPosition!=null&&(o.maskPosition=r(o.maskPosition)),o.WebkitMaskPosition!=null&&(o.WebkitMaskPosition=r(o.WebkitMaskPosition)),o}function Gn(e,t=!1,n,r){if(e===void 0)return{};let o=x(e);if(t){let i=le(r,n,o);if(i)return{opacity:i}}return o===1?{}:{opacity:o}}function cn(e,t){let n=e?.group?.opacity??1,r=t.opacity??1;return n*r}function U_(e){let{env:t,labs:n}=e,r=zE(n);return t==="preview"&&r}function Jr(e,t){if(!(!(e.renderOptions.includeDataName||U_(e))||/^(Frame|Rectangle|Polygon|Star|Group|Line|Ellipse|Vector|Arrow) \d+$/.test(t.name)))return t.name.trim()}function L6(e,t,n,r){return e?n?"div":"a":t?n?"div":"button":r?"ul":null}function C6(e){switch(e){case"ARTICLE":return"article";case"ASIDE":return"aside";case"FIGURE":return"figure";case"FOOTER":return"footer";case"HEADER":return"header";case"MAIN":return"main";case"NAV":return"nav";case"SECTION":return"section";case"OL":return"ol";case"UL":return"ul";case"IMG":case"VIDEO":case"AUTO":case"DIV":default:return"div"}}function Ms(e){return e==="main"}function V_(e){return e.semanticTag==="ol"||e.semanticTag==="ul"?e.semanticTag:e.interactiveSemanticTag==="ul"?"ul":null}function Gs(e,t,n,r,o){return{interactiveSemanticTag:L6(t,n,r,o),semanticTag:C6(e.accessibleHTMLTag)}}function H_(e,t,n){let r=e!=="div"&&e!=="p",o=t!=null,i,s=!1,a=!1;return r?(i=e,o&&(s=!0),n&&(a=!0)):n?o?(a=!0,i=t):i="li":o?i=t:i=e,{finalInnerSemanticTag:i,needsInteractiveWrapper:s,needsListWrapper:a}}var jf=v(_e(),1),zo=v(W(),1);var x1=v(W(),1),pc=(0,x1.createContext)({});var M1=v(W(),1);function ks(e){let t=(0,M1.useRef)(null);return t.current===null&&(t.current=e()),t.current}var GR=v(_e(),1),B1=v(W(),1),ll=v(W(),1);var G1=v(W(),1),Fs=(0,G1.createContext)(null);var F1=v(_e(),1),W_=v(W(),1),Pi=v(W(),1);var k1=v(W(),1),Ci=(0,k1.createContext)({transformPagePoint:e=>e,isStatic:!1,reducedMotion:"never"});var MR=class extends W_.Component{getSnapshotBeforeUpdate(t){let n=this.props.childRef.current;if(n&&t.isPresent&&!this.props.isPresent){let r=n.offsetParent,o=r instanceof HTMLElement&&r.offsetWidth||0,i=this.props.sizeRef.current;i.height=n.offsetHeight||0,i.width=n.offsetWidth||0,i.top=n.offsetTop,i.left=n.offsetLeft,i.right=o-i.width-i.left}return null}componentDidUpdate(){}render(){return this.props.children}};function w1({children:e,isPresent:t,anchorX:n}){let r=(0,Pi.useId)(),o=(0,Pi.useRef)(null),i=(0,Pi.useRef)({width:0,height:0,top:0,left:0,right:0}),{nonce:s}=(0,Pi.useContext)(Ci);return(0,Pi.useInsertionEffect)(()=>{let{width:a,height:l,top:u,left:c,right:d}=i.current;if(t||!o.current||!a||!l)return;let f=n==="left"?`left: ${c}`:`right: ${d}`;o.current.dataset.motionPopId=r;let p=document.createElement("style");return s&&(p.nonce=s),document.head.appendChild(p),p.sheet&&p.sheet.insertRule(` 8212 [data-motion-pop-id="${r}"] { 8213 position: absolute !important; 8214 width: ${a}px !important; 8215 height: ${l}px !important; 8216 ${f}px !important; 8217 top: ${u}px !important; 8218 } 8219 `),()=>{document.head.removeChild(p)}},[t]),(0,F1.jsx)(MR,{isPresent:t,childRef:o,sizeRef:i,children:W_.cloneElement(e,{ref:o})})}var U1=({children:e,initial:t,isPresent:n,onExitComplete:r,custom:o,presenceAffectsLayout:i,mode:s,anchorX:a})=>{let l=ks(P6),u=(0,ll.useId)(),c=(0,ll.useCallback)(f=>{l.set(f,!0);for(let p of l.values())if(!p)return;r&&r()},[l,r]),d=(0,ll.useMemo)(()=>({id:u,initial:t,isPresent:n,custom:o,onExitComplete:c,register:f=>(l.set(f,!1),()=>l.delete(f))}),i?[Math.random(),c]:[n,c]);return(0,ll.useMemo)(()=>{l.forEach((f,p)=>l.set(p,!1))},[n]),B1.useEffect(()=>{!n&&!l.size&&r&&r()},[n]),s==="popLayout"&&(e=(0,GR.jsx)(w1,{isPresent:n,anchorX:a,children:e})),(0,GR.jsx)(Fs.Provider,{value:d,children:e})};function P6(){return new Map}var ws=v(W(),1);function Y_(e=!0){let t=(0,ws.useContext)(Fs);if(t===null)return[!0,null];let{isPresent:n,onExitComplete:r,register:o}=t,i=(0,ws.useId)();(0,ws.useEffect)(()=>
8219{if(e)return o(i)},[e]);let s=(0,ws.useCallback)(()=>e&&r&&r(i),[i,r,e]);return!n&&r?[!1,s]:[!0]}var K_=v(W(),1),Xf=e=>e.key||"";function kR(e){let t=[];return K_.Children.forEach(e,n=>{(0,K_.isValidElement)(n)&&t.push(n)}),t}var z_=v(W(),1);var mc=typeof window<"u";var X_=mc?z_.useLayoutEffect:z_.useEffect;var FR=({children:e,custom:t,initial:n=!0,onExitComplete:r,presenceAffectsLayout:o=!0,mode:i="sync",propagate:s=!1,anchorX:a="left"})=>{let[l,u]=Y_(s),c=(0,zo.useMemo)(()=>kR(e),[e]),d=s&&!l?[]:c.map(Xf),f=(0,zo.useRef)(!0),p=(0,zo.useRef)(c),_=ks(()=>new Map),[T,h]=(0,zo.useState)(c),[m,E]=(0,zo.useState)(c);X_(()=>{f.current=!1,p.current=c;for(let I=0;I<m.length;I++){let S=Xf(m[I]);d.includes(S)?_.delete(S):_.get(S)!==!0&&_.set(S,!1)}},[m,d.length,d.join("-")]);let O=[];if(c!==T){let I=[...c];for(let S=0;S<m.length;S++){let A=m[S],R=Xf(A);d.includes(R)||(I.splice(S,0,A),O.push(A))}return i==="wait"&&O.length&&(I=O),E(kR(I)),h(c),null}let{forceRender:g}=(0,zo.useContext)(pc);return(0,jf.jsx)(jf.Fragment,{children:m.map(I=>{let S=Xf(I),A=s&&!l?!1:c===m||d.includes(S),R=()=>{if(_.has(S))_.set(S,!0);else return;let y=!0;_.forEach(b=>{b||(y=!1)}),y&&(g?.(),E(p.current),s&&u?.(),r&&r())};return(0,jf.jsx)(U1,{isPresent:A,initial:!f.current||n?void 0:!1,custom:t,presenceAffectsLayout:o,mode:i,onExitComplete:A?void 0:R,anchorX:a,children:I},S)})})};var dt=e=>e;var Bs=dt,Sr=dt;var ul={skipAnimations:!1,useManualTiming:!1};var $f=["read","resolveKeyframes","update","preRender","render","postRender"];var Rr={value:null,addProjectionMetrics:null};function V1(e,t){let n=new Set,r=new Set,o=!1,i=!1,s=new WeakSet,a={delta:0,timestamp:0,isProcessing:!1},l=0;function u(d){s.has(d)&&(c.schedule(d),e()),l++,d(a)}let c={schedule:(d,f=!1,p=!1)=>{let T=p&&o?n:r;return f&&s.add(d),T.has(d)||T.add(d),d},cancel:d=>{r.delete(d),s.delete(d)},process:d=>{if(a=d,o){i=!0;return}o=!0,[n,r]=[r,n],n.forEach(u),t&&Rr.value&&Rr.value.frameloop[t].push(l),l=0,n.clear(),o=!1,i&&(i=!1,c.process(d))}};return c}var D6=40;function j_(e,t){let n=!1,r=!0,o={delta:0,timestamp:0,isProcessing:!1},i=()=>n=!0,s=$f.reduce((m,E)=>(m[E]=V1(i,t?E:void 0),m),{}),{read:a,resolveKeyframes:l,update:u,preRender:c,render:d,postRender:f}=s,p=()=>{let m=ul.useManualTiming?o.timestamp:performance.now();n=!1,ul.useManualTiming||(o.delta=r?1e3/60:Math.max(Math.min(m-o.timestamp,D6),1)),o.timestamp=m,o.isProcessing=!0,a.process(o),l.process(o),u.process(o),c.process(o),d.process(o),f.process(o),o.isProcessing=!1,n&&t&&(r=!1,e(p))},_=()=>{n=!0,r=!0,o.isProcessing||e(p)};return{schedule:$f.reduce((m,E)=>{let O=s[E];return m[E]=(g,I=!1,S=!1)=>(n||_(),O.schedule(g,I,S)),m},{}),cancel:m=>{for(let E=0;E<$f.length;E++)s[$f[E]].cancel(m)},state:o,steps:s}}var{schedule:ue,cancel:Zn,state:St,steps:Zf}=j_(typeof requestAnimationFrame<"u"?requestAnimationFrame:dt,!0);var H1=v(W(),1),$_=(0,H1.createContext)({strict:!1});var W1={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"]},Di={};for(let e in W1)Di[e]={isEnabled:t=>W1[e].some(n=>!!t[n])};function Y1(e){for(let t in e)Di[t]={...Di[t],...e[t]}}var X1=v(_e(),1),Z_=v(W(),1);var v6=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","ignoreStrict","viewport"]);function Jf(e){return e.startsWith("while")||e.startsWith("drag")&&e!=="draggable"||e.startsWith("layout")||e.startsWith("onTap")||e.startsWith("onPan")||e.startsWith("onLayout")||v6.has(e)}var K1=e=>!Jf(e);function wR(e){e&&(K1=t=>t.startsWith("on")?!Jf(t):e(t))}try{wR(MV("@emotion/is-prop-valid").default)}catch{}
8219function z1(e,t,n){let r={};for(let o in e)o==="values"&&typeof e.values=="object"||(K1(o)||n===!0&&Jf(o)||!t&&!Jf(o)||e.draggable&&o.startsWith("onDrag"))&&(r[o]=e[o]);return r}function BR({children:e,isValidProp:t,...n}){t&&wR(t),n={...(0,Z_.useContext)(Ci),...n},n.isStatic=ks(()=>n.isStatic);let r=(0,Z_.useMemo)(()=>n,[JSON.stringify(n.transition),n.transformPagePoint,n.reducedMotion]);return(0,X1.jsx)(Ci.Provider,{value:r,children:e})}function j1(e){if(typeof Proxy>"u")return e;let t=new Map,n=(...r)=>e(...r);return new Proxy(n,{get:(r,o)=>o==="create"?e:(t.has(o)||t.set(o,e(o)),t.get(o))})}var nT=v(_e(),1);var Tc=v(W(),1);var $1=v(W(),1),Us=(0,$1.createContext)({});var Q_=v(W(),1);function Vs(e){return e!==null&&typeof e=="object"&&typeof e.start=="function"}function vi(e){return typeof e=="string"||Array.isArray(e)}var J_=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],qf=["initial",...J_];function cl(e){return Vs(e.animate)||qf.some(t=>vi(e[t]))}function q_(e){return Boolean(cl(e)||e.variants)}function Z1(e,t){if(cl(e)){let{initial:n,animate:r}=e;return{initial:n===!1||vi(n)?n:void 0,animate:vi(r)?r:void 0}}return e.inherit!==!1?t:{}}function q1(e){let{initial:t,animate:n}=Z1(e,(0,Q_.useContext)(Us));return(0,Q_.useMemo)(()=>({initial:t,animate:n}),[J1(t),J1(n)])}function J1(e){return Array.isArray(e)?e.join(" "):e}var Q1=Symbol.for("motionComponentSymbol");var eG=v(W(),1);function xi(e){return e&&typeof e=="object"&&Object.prototype.hasOwnProperty.call(e,"current")}function tG(e,t,n){return(0,eG.useCallback)(r=>{r&&e.onMount&&e.onMount(r),t&&(r?t.mount(r):t.unmount()),n&&(typeof n=="function"?n(r):xi(n)&&(n.current=r))},[t])}var Jn=v(W(),1);var Ec=e=>e.replace(/([a-z])([A-Z])/gu,"$1-$2").toLowerCase();var x6="framerAppearId",eT="data-"+Ec(x6);var{schedule:_c,cancel:Ade}=j_(queueMicrotask,!1);var nG=v(W(),1),tT=(0,nG.createContext)({});function rG(e,t,n,r,o){var i,s;let{visualElement:a}=(0,Jn.useContext)(Us),l=(0,Jn.useContext)($_),u=(0,Jn.useContext)(Fs),c=(0,Jn.useContext)(Ci).reducedMotion,d=(0,Jn.useRef)(null);r=r||l.renderer,!d.current&&r&&(d.current=r(e,{visualState:t,parent:a,props:n,presenceContext:u,blockInitialAnimation:u?u.initial===!1:!1,reducedMotionConfig:c}));let f=d.current,p=(0,Jn.useContext)(tT);f&&!f.projection&&o&&(f.type==="html"||f.type==="svg")&&M6(d.current,n,o,p);let _=(0,Jn.useRef)(!1);(0,Jn.useInsertionEffect)(()=>{f&&_.current&&f.update(n,u)});let T=n[eT],h=(0,Jn.useRef)(Boolean(T)&&!(!((i=window.MotionHandoffIsComplete)===null||i===void 0)&&i.call(window,T))&&((s=window.MotionHasOptimisedAnimation)===null||s===void 0?void 0:s.call(window,T)));return X_(()=>{f&&(_.current=!0,window.MotionIsMounted=!0,f.updateFeatures(),_c.render(f.render),h.current&&f.animationState&&f.animationState.animateChanges())}),(0,Jn.useEffect)(()=>{f&&(!h.current&&f.animationState&&f.animationState.animateChanges(),h.current&&(queueMicrotask(()=>{var m;(m=window.MotionHandoffMarkAsComplete)===null||m===void 0||m.call(window,T)}),h.current=!1))}),f}function M6(e,t,n,r){let{layoutId:o,layout:i,drag:s,dragConstraints:a,layoutScroll:l,layoutRoot:u}=t;e.projection=new n(e.latestValues,t["data-framer-portal-id"]?void 0:oG(e.parent)),e.projection.setOptions({layoutId:o,layout:i,alwaysMeasureLayout:Boolean(s)||a&&xi(a),visualElement:e,animationType:typeof i=="string"?i:"both",initialPromotionConfig:r,layoutScroll:l,layoutRoot:u})}function oG(e){if(e)return e.options.allowProjection!==!1?e.projection:oG(e.parent)}function iG({preloadedFeatures:e,createVisualElement:t,useRender:n,useVisualState:r,Component:o}){var i,s;e&&Y1(e);function a(u,c){let d,f={...(0,Tc.useContext)(Ci),...u,layoutId:G6(u)},{isStatic:p}=f,_=q1(u),T=r(u,p);if(!p&&mc){k6(f,e);let h=F6(f);d=h.MeasureLayout,_.visualElement=rG(o,T,f,t,h.ProjectionNode)}return(0,nT.jsxs)(Us.Provider,{value:_,children:[d&&_.visualElement?(0,nT.jsx)(d,{visualElement:_.visualElement,...f}):null,n(o,u,tG(T,_.visualElement,c),T,p,_.visualElement)]})}a.displayName=`motion.${typeof o=="string"?o:`create(${(s=(i=o.displayName)!==null&&i!==void 0?i:o.name)!==null&&s!==void 0?s:""})`}`;let l=(0,Tc.forwardRef)(a);return l[Q1]=o,l}function G6({layoutId:e}){let t=(0,Tc.useContext)(pc).id;return t&&e!==void 0?t+"-"+e:e}function k6(e,t){let n=(0,Tc.useContext)($_).strict}function F6(e){let{drag:t,layout:n}=Di;if(!t&&!n)return{};let r={...t,...n};return{MeasureLayout:t?.isEnabled(e)||n?.isEnabled(e)?r.MeasureLayout:void 0,ProjectionNode:r.ProjectionNode}}
8219var yc=v(W(),1);var pG=v(W(),1);var sG=e=>t=>typeof t=="string"&&t.startsWith(e),hc=sG("--"),w6=sG("var(--"),Oc=e=>w6(e)?B6.test(e.split("/*")[0].trim()):!1,B6=/var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu;var dl={};function aG(e){for(let t in e)dl[t]=e[t],hc(t)&&(dl[t].isCSSVariable=!0)}var Xo=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],qn=new Set(Xo);function rT(e,{layout:t,layoutId:n}){return qn.has(e)||e.startsWith("origin")||(t||n!==void 0)&&(!!dl[e]||e==="opacity")}var we=e=>Boolean(e&&e.getVelocity);var oT=(e,t)=>t&&typeof e=="number"?t.transform(e):e;var dn=(e,t,n)=>n>t?t:n<e?e:n;var jo={test:e=>typeof e=="number",parse:parseFloat,transform:e=>e},Mi={...jo,transform:e=>dn(0,1,e)},Qf={...jo,default:1};var ep=e=>({test:t=>typeof t=="string"&&t.endsWith(e)&&t.split(" ").length===1,parse:parseFloat,transform:t=>`${t}${e}`}),$o=ep("deg"),kn=ep("%"),q=ep("px"),lG=ep("vh"),uG=ep("vw"),UR={...kn,parse:e=>kn.parse(e)/100,transform:e=>kn.transform(e*100)};var cG={borderWidth:q,borderTopWidth:q,borderRightWidth:q,borderBottomWidth:q,borderLeftWidth:q,borderRadius:q,radius:q,borderTopLeftRadius:q,borderTopRightRadius:q,borderBottomRightRadius:q,borderBottomLeftRadius:q,width:q,maxWidth:q,height:q,maxHeight:q,top:q,right:q,bottom:q,left:q,padding:q,paddingTop:q,paddingRight:q,paddingBottom:q,paddingLeft:q,margin:q,marginTop:q,marginRight:q,marginBottom:q,marginLeft:q,backgroundPositionX:q,backgroundPositionY:q};var dG={rotate:$o,rotateX:$o,rotateY:$o,rotateZ:$o,scale:Qf,scaleX:Qf,scaleY:Qf,scaleZ:Qf,skew:$o,skewX:$o,skewY:$o,distance:q,translateX:q,translateY:q,translateZ:q,x:q,y:q,z:q,perspective:q,transformPerspective:q,opacity:Mi,originX:UR,originY:UR,originZ:q};var VR={...jo,transform:Math.round};var gc={...cG,...dG,zIndex:VR,size:q,fillOpacity:Mi,strokeOpacity:Mi,numOctaves:VR};var U6={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},V6=Xo.length;function fG(e,t,n){let r="",o=!0;for(let i=0;i<V6;i++){let s=Xo[i],a=e[s];if(a===void 0)continue;let l=!0;if(typeof a=="number"?l=a===(s.startsWith("scale")?1:0):l=parseFloat(a)===0,!l||n){let u=oT(a,gc[s]);if(!l){o=!1;let c=U6[s]||s;r+=`${c}(${u}) `}n&&(t[s]=u)}}return r=r.trim(),n?r=n(t,o?"":r):o&&(r="none"),r}function Ic(e,t,n){let{style:r,vars:o,transformOrigin:i}=e,s=!1,a=!1;for(let l in t){let u=t[l];if(qn.has(l)){s=!0;continue}else if(hc(l)){o[l]=u;continue}else{let c=oT(u,gc[l]);l.startsWith("origin")?(a=!0,i[l]=c):r[l]=c}}if(t.transform||(s||n?r.transform=fG(t,e.transform,n):r.transform&&(r.transform="none")),a){let{originX:l="50%",originY:u="50%",originZ:c=0}=i;r.transformOrigin=`${l} ${u} ${c}`}}var Sc=()=>({style:{},transform:{},transformOrigin:{},vars:{}});function HR(e,t,n){for(let r in t)!we(t[r])&&!rT(r,n)&&(e[r]=t[r])}function H6({transformTemplate:e},t){return(0,pG.useMemo)(()=>{let n=Sc();return Ic(n,t,e),Object.assign({},n.vars,n.style)},[t])}function W6(e,t){let n=e.style||{},r={};return HR(r,n,e),Object.assign(r,H6(e,t)),r}function mG(e,t){let n={},r=W6(e,t);return e.drag&&e.dragListener!==!1&&(n.draggable=!1,r.userSelect=r.WebkitUserSelect=r.WebkitTouchCallout="none",r.touchAction=e.drag===!0?"none":`pan-${e.drag==="x"?"y":"x"}`),e.tabIndex===void 0&&(e.onTap||e.onTapStart||e.whileTap)&&(n.tabIndex=0),n.style=r,n}var EG=["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 Rc(e){return typeof e!="string"||e.includes("-")?!1:!!(EG.indexOf(e)>-1||/[A-Z]/u.test(e))}var OG=v(W(),1);var Y6={offset:"stroke-dashoffset",array:"stroke-dasharray"},K6={offset:"strokeDashoffset",array:"strokeDasharray"};function _G(e,t,n=1,r=0,o=!0){e.pathLength=1;let i=o?Y6:K6;e[i.offset]=q.transform(-r);let s=q.transform(t),a=q.transform(n);e[i.array]=`${s} ${a}`}function TG(e,t,n){return typeof e=="string"?e:q.transform(t+n*e)}function hG(e,t,n){let r=TG(t,e.x,e.width),o=TG(n,e.y,e.height);return`${r} ${o}`}function Ac(e,{attrX:t,attrY:n,attrScale:r,originX:o,originY:i,pathLength:s,pathSpacing:a=1,pathOffset:l=0,...u}
vendor: 8,938 bytes, line 8219
8219,c,d){if(Ic(e,u,d),c){e.style.viewBox&&(e.attrs.viewBox=e.style.viewBox);return}e.attrs=e.style,e.style={};let{attrs:f,style:p,dimensions:_}=e;f.transform&&(_&&(p.transform=f.transform),delete f.transform),_&&(o!==void 0||i!==void 0||p.transform)&&(p.transformOrigin=hG(_,o!==void 0?o:.5,i!==void 0?i:.5)),t!==void 0&&(f.x=t),n!==void 0&&(f.y=n),r!==void 0&&(f.scale=r),s!==void 0&&_G(f,s,a,l,!1)}var iT=()=>({...Sc(),attrs:{}});var Nc=e=>typeof e=="string"&&e.toLowerCase()==="svg";function gG(e,t,n,r){let o=(0,OG.useMemo)(()=>{let i=iT();return Ac(i,t,Nc(r),e.transformTemplate),{...i.attrs,style:{...i.style}}},[t]);if(e.style){let i={};HR(i,e.style,e),o.style={...i,...o.style}}return o}function IG(e=!1){return(n,r,o,{latestValues:i},s)=>{let l=(Rc(n)?gG:mG)(r,i,s,n),u=z1(r,typeof n=="string",e),c=n!==yc.Fragment?{...u,...l,ref:o}:{},{children:d}=r,f=(0,yc.useMemo)(()=>we(d)?d.get():d,[d]);return(0,yc.createElement)(n,{...c,children:f})}}var WR=v(W(),1);function SG(e){let t=[{},{}];return e?.values.forEach((n,r)=>{t[0][r]=n.get(),t[1][r]=n.getVelocity()}),t}function bc(e,t,n,r){if(typeof t=="function"){let[o,i]=SG(r);t=t(n!==void 0?n:e.custom,o,i)}if(typeof t=="string"&&(t=e.variants&&e.variants[t]),typeof t=="function"){let[o,i]=SG(r);t=t(n!==void 0?n:e.custom,o,i)}return t}var tp=e=>Array.isArray(e);var RG=e=>Boolean(e&&typeof e=="object"&&e.mix&&e.toValue),AG=e=>tp(e)?e[e.length-1]||0:e;function Lc(e){let t=we(e)?e.get():e;return RG(t)?t.toValue():t}function z6({scrapeMotionValuesFromProps:e,createRenderState:t,onUpdate:n},r,o,i){let s={latestValues:X6(r,o,i,e),renderState:t()};return n&&(s.onMount=a=>n({props:r,current:a,...s}),s.onUpdate=a=>n(a)),s}var sT=e=>(t,n)=>{let r=(0,WR.useContext)(Us),o=(0,WR.useContext)(Fs),i=()=>z6(e,t,r,o);return n?i():ks(i)};function X6(e,t,n,r){let o={},i=r(e,{});for(let f in i)o[f]=Lc(i[f]);let{initial:s,animate:a}=e,l=cl(e),u=q_(e);t&&u&&!l&&e.inherit!==!1&&(s===void 0&&(s=t.initial),a===void 0&&(a=t.animate));let c=n?n.initial===!1:!1;c=c||s===!1;let d=c?a:s;if(d&&typeof d!="boolean"&&!Vs(d)){let f=Array.isArray(d)?d:[d];for(let p=0;p<f.length;p++){let _=bc(e,f[p]);if(_){let{transitionEnd:T,transition:h,...m}=_;for(let E in m){let O=m[E];if(Array.isArray(O)){let g=c?O.length-1:0;O=O[g]}O!==null&&(o[E]=O)}for(let E in T)o[E]=T[E]}}}return o}function Cc(e,t,n){var r;let{style:o}=e,i={};for(let s in o)(we(o[s])||t.style&&we(t.style[s])||rT(s,e)||((r=n?.getValue(s))===null||r===void 0?void 0:r.liveStyle)!==void 0)&&(i[s]=o[s]);return i}var NG={useVisualState:sT({scrapeMotionValuesFromProps:Cc,createRenderState:Sc})};function aT(e,t){try{t.dimensions=typeof e.getBBox=="function"?e.getBBox():e.getBoundingClientRect()}catch{t.dimensions={x:0,y:0,width:0,height:0}}}function lT(e,{style:t,vars:n},r,o){Object.assign(e.style,t,o&&o.getProjectionStyles(r));for(let i in n)e.style.setProperty(i,n[i])}var uT=new Set(["baseFrequency","diffuseConstant","kernelMatrix","kernelUnitLength","keySplines","keyTimes","limitingConeAngle","markerHeight","markerWidth","numOctaves","targetX","targetY","surfaceScale","specularConstant","specularExponent","stdDeviation","tableValues","viewBox","gradientTransform","pathLength","startOffset","textLength","lengthAdjust"]);function cT(e,t,n,r){lT(e,t,void 0,r);for(let o in t.attrs)e.setAttribute(uT.has(o)?o:Ec(o),t.attrs[o])}function dT(e,t,n){let r=Cc(e,t,n);for(let o in e)if(we(e[o])||we(t[o])){let i=Xo.indexOf(o)!==-1?"attr"+o.charAt(0).toUpperCase()+o.substring(1):o;r[i]=e[o]}return r}var yG=["x","y","width","height","cx","cy","r"],bG={useVisualState:sT({scrapeMotionValuesFromProps:dT,createRenderState:iT,onUpdate:({props:e,prevProps:t,current:n,renderState:r,latestValues:o})=>{if(!n)return;let i=!!e.drag;if(!i){for(let a in o)if(qn.has(a)){i=!0;break}}if(!i)return;let s=!t;if(t)for(let a=0;a<yG.length;a++){let l=yG[a];e[l]!==t[l]&&(s=!0)}s&&ue.read(()=>{aT(n,r),ue.render(()=>{Ac(r,o,Nc(n.tagName),e.transformTemplate),cT(n,r)})})}})};function LG(e,t){return function(r,{forwardMotionProps:o}={forwardMotionProps:!1}){let s={...Rc(r)?bG:NG,preloadedFeatures:e,useRender:IG(o),createVisualElement:t,Component:r};return iG(s)}}function Gi(e,t,n){let r=e.getProps();return bc(r,t,n!==void 0?n:r.custom,e)}function Pc(e,t){return e?e[t]||e.default||e:void 0}var fT=new Set(["width","height","top","left","right","bottom",...Xo]);var pT;function j6(){pT=void 0}var Nn={now:()=>(pT===void 0&&Nn.set(St.isProcessing||ul.useManualTiming?St.timestamp:performance.now()),pT),set:e=>{pT=e,queueMicrotask(j6)}};function Dc(e,t){e.indexOf(t)===-1&&e.push(t)}function Hs(e,t){let n=e.indexOf(t);n>-1&&e.splice(n,1)}var Ws=class{constructor(){this.subscriptions=[]}add(t){return Dc(this.subscriptions,t),()=>Hs(this.subscriptions,t)}notify(t,n,r){let o=this.subscriptions.length;if(o)if(o===1)this.subscriptions[0](t,n,r);else for(let i=0;i<o;i++){let s=this.subscriptions[i];s&&s(t,n,r)}}getSize(){return this.subscriptions.length}clear(){this.subscriptions.length=0}};function mT(e,t){return t?e*(1e3/t):0}var CG=30,$6=e=>!isNaN(parseFloat(e)),PG={current:void 0},YR=class{constructor(t,n={}){this.version="12.4.9",this.canTrackVelocity=null,this.events={},this.updateAndNotify=(r,o=!0)=>{let i=Nn.now();this.updatedAt!==i&&this.setPrevFrameValue(),this.prev=this.current,this.setCurrent(r),this.current!==this.prev&&this.events.change&&this.events.change.notify(this.current),o&&this.events.renderRequest&&this.events.renderRequest.notify(this.current)},this.hasAnimated=!1,this.setCurrent(t),this.owner=n.owner}setCurrent(t){this.current=t,this.updatedAt=Nn.now(),this.canTrackVelocity===null&&t!==void 0&&(this.canTrackVelocity=$6(this.current))}setPrevFrameValue(t=this.current){this.prevFrameValue=t,this.prevUpdatedAt=this.updatedAt}onChange(t){return this.on("change",t)}on(t,n){this.events[t]||(this.events[t]=new Ws);let r=this.events[t].add(n);return t==="change"?()=>{r(),ue.read(()=>{this.events.change.getSize()||this.stop()})}:r}clearListeners(){for(let t in this.events)this.events[t].clear()}attach(t,n){this.passiveEffect=t,this.stopPassiveEffect=n}set(t,n=!0){!n||!this.passiveEffect?this.updateAndNotify(t,n):this.passiveEffect(t,this.updateAndNotify)}setWithVelocity(t,n,r){this.set(n),this.prev=void 0,this.prevFrameValue=t,this.prevUpdatedAt=this.updatedAt-r}jump(t,n=!0){this.updateAndNotify(t),this.prev=t,this.prevUpdatedAt=this.prevFrameValue=void 0,n&&this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}get(){return PG.current&&PG.current.push(this),this.current}getPrevious(){return this.prev}getVelocity(){let t=Nn.now();if(!this.canTrackVelocity||this.prevFrameValue===void 0||t-this.updatedAt>CG)return 0;let n=Math.min(this.updatedAt-this.prevUpdatedAt,CG);return mT(parseFloat(this.current)-parseFloat(this.prevFrameValue),n)}start(t){return this.stop(),new Promise(n=>{this.hasAnimated=!0,this.animation=t(n),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.clearListeners(),this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}};function ki(e,t){return new YR(e,t)}function Z6(e,t,n){e.hasValue(t)?e.getValue(t).set(n):e.addValue(t,ki(n))}function DG(e,t){let n=Gi(e,t),{transitionEnd:r={},transition:o={},...i}=n||{};i={...i,...r};for(let s in i){let a=AG(i[s]);Z6(e,s,a)}}function vG(e){return Boolean(we(e)&&e.add)}function np(e,t){let n=e.getValue("willChange");if(vG(n))return n.add(t)}function ET(e){return e.props[eT]}function vc(e){let t;return()=>(t===void 0&&(t=e()),t)}var xG=vc(()=>window.ScrollTimeline!==void 0);var _T=class{constructor(t){this.stop=()=>this.runAll("stop"),this.animations=t.filter(Boolean)}get finished(){return Promise.all(this.animations.map(t=>"finished"in t?t.finished:t))}getAll(t){return this.animations[0][t]}setAll(t,n){for(let r=0;r<this.animations.length;r++)this.animations[r][t]=n}attachTimeline(t,n){let r=this.animations.map(o=>{if(xG()&&o.attachTimeline)return o.attachTimeline(t);if(typeof n=="function")return n(o)});return()=>{r.forEach((o,i)=>{o&&o(),this.animations[i].stop()})}}get time(){return this.getAll("time")}set time(t){this.setAll("time",t)}get speed(){return this.getAll("speed")}set speed(t){this.setAll("speed",t)}get startTime(){return this.getAll("startTime")}get duration(){let t=0;for(let n=0;n<this.animations.length;n++)t=Math.max(t,this.animations[n].duration);return t}runAll(t){this.animations.forEach(n=>n[t]())}flatten(){this.runAll("flatten")}play(){this.runAll("play")}pause(){this.runAll("pause")}cancel(){this.runAll("cancel")}complete(){this.runAll("complete")}};var xc=class extends _T{then(t,n){return Promise.all(this.animations).then(t).cat
8219ch(n)}};var Zt=e=>e*1e3,yn=e=>e/1e3;var TT={current:!1};function Ys(e){return typeof e=="function"}function KR(e,t){e.timeline=t,e.onfinish=null}var rp=e=>Array.isArray(e)&&typeof e[0]=="number";var MG={linearEasing:void 0};function GG(e,t){let n=vc(e);return()=>{var r;return(r=MG[t])!==null&&r!==void 0?r:n()}}var Mc=GG(()=>{try{document.createElement("div").animate({opacity:0},{easing:"linear(0, 1)"})}catch{return!1}return!0},"linearEasing");var Ar=(e,t,n)=>{let r=t-e;return r===0?1:(n-e)/r};var hT=(e,t,n=10)=>{let r="",o=Math.max(Math.round(t/n),2);for(let i=0;i<o;i++)r+=e(Ar(0,o-1,i))+", ";return`linear(${r.substring(0,r.length-2)})`};function XR(e){return Boolean(typeof e=="function"&&Mc()||!e||typeof e=="string"&&(e in zR||Mc())||rp(e)||Array.isArray(e)&&e.every(XR))}var op=([e,t,n,r])=>`cubic-bezier(${e}, ${t}, ${n}, ${r})`,zR={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:op([0,.65,.55,1]),circOut:op([.55,0,1,.45]),backIn:op([.31,.01,.66,-.59]),backOut:op([.33,1.53,.69,.99])};function jR(e,t){if(e)return typeof e=="function"&&Mc()?hT(e,t):rp(e)?op(e):Array.isArray(e)?e.map(n=>jR(n,t)||zR.easeOut):zR[e]}var kG=(e,t,n)=>(((1-3*n+3*t)*e+(3*n-6*t))*e+3*t)*e,J6=1e-7,q6=12;function Q6(e,t,n,r,o){let i,s,a=0;do s=t+(n-t)/2,i=kG(s,r,o)-e,i>0?n=s:t=s;while(Math.abs(i)>J6&&++a<q6);return s}function Ks(e,t,n,r){if(e===t&&n===r)return dt;let o=i=>Q6(i,0,1,e,n);return i=>i===0||i===1?i:kG(o(i),t,r)}var OT=e=>t=>t<=.5?e(2*t)/2:(2-e(2*(1-t)))/2;var gT=e=>t=>1-e(1-t);var $R=Ks(.33,1.53,.69,.99),ip=gT($R),IT=OT(ip);var ST=e=>(e*=2)<1?.5*ip(e):.5*(2-Math.pow(2,-10*(e-1)));var RT=e=>1-Math.sin(Math.acos(e)),AT=gT(RT),NT=OT(RT);var yT=e=>/^0[^.\s]+$/u.test(e);function FG(e){return typeof e=="number"?e===0:e!==null?e==="none"||e==="0"||yT(e):!0}var zs=e=>Math.round(e*1e5)/1e5;var Gc=/-?(?:\d+(?:\.\d+)?|\.\d+)/gu;function wG(e){return e==null}var BG=/^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu;var kc=(e,t)=>n=>Boolean(typeof n=="string"&&BG.test(n)&&n.startsWith(e)||t&&!wG(n)&&Object.prototype.hasOwnProperty.call(n,t)),bT=(e,t,n)=>r=>{if(typeof r!="string")return r;let[o,i,s,a]=r.match(Gc);return{[e]:parseFloat(o),[t]:parseFloat(i),[n]:parseFloat(s),alpha:a!==void 0?parseFloat(a):1}};var eX=e=>dn(0,255,e),ZR={...jo,transform:e=>Math.round(eX(e))},Zo={test:kc("rgb","red"),parse:bT("red","green","blue"),transform:({red:e,green:t,blue:n,alpha:r=1})=>"rgba("+ZR.transform(e)+", "+ZR.transform(t)+", "+ZR.transform(n)+", "+zs(Mi.transform(r))+")"};function tX(e){let t="",n="",r="",o="";return e.length>5?(t=e.substring(1,3),n=e.substring(3,5),r=e.substring(5,7),o=e.substring(7,9)):(t=e.substring(1,2),n=e.substring(2,3),r=e.substring(3,4),o=e.substring(4,5),t+=t,n+=n,r+=r,o+=o),{red:parseInt(t,16),green:parseInt(n,16),blue:parseInt(r,16),alpha:o?parseInt(o,16)/255:1}}var sp={test:kc("#"),parse:tX,transform:Zo.transform};var Xs={test:kc("hsl","hue"),parse:bT("hue","saturation","lightness"),transform:({hue:e,saturation:t,lightness:n,alpha:r=1})=>"hsla("+Math.round(e)+", "+kn.transform(zs(t))+", "+kn.transform(zs(n))+", "+zs(Mi.transform(r))+")"};var Lt={test:e=>Zo.test(e)||sp.test(e)||Xs.test(e),parse:e=>Zo.test(e)?Zo.parse(e):Xs.test(e)?Xs.parse(e):sp.parse(e),transform:e=>typeof e=="string"?e:e.hasOwnProperty("red")?Zo.transform(e):Xs.transform(e)};var UG=/(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu;function nX(e){var t,n;return isNaN(e)&&typeof e=="string"&&(((t=e.match(Gc))===null||t===void 0?void 0:t.length)||0)+(((n=e.match(UG))===null||n===void 0?void 0:n.length)||0)>0}var HG="number",WG="color",rX="var",oX="var(",VG="${}",iX=/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 fl(e){let t=e.toString(),n=[],r={color:[],number:[],var:[]},o=[],i=0,a=t.replace(iX,l=>(Lt.test(l)?(r.color.push(i),o.push(WG),n.push(Lt.parse(l))):l.startsWith(oX)?(r.var.push(i),o.push(rX),n.push(l)):(r.number.push(i),o.push(HG),n.push(parseFloat(l))),++i,VG)).split(VG);return{values:n,split:a,indexes:r,types:o}}function YG(e){return fl(e).values}function KG(e){let{split:t,types:n}=fl(e),r=t.length;return o=>{let i="";for(let s=0;s<r;s++)if(i+=t[s],o[s]!==void 0){let a=n[s];a===HG?i+=zs(o[s]):a===WG?i+=Lt.transform(o[s]):i+=o[s]}return i}}var sX=e=>typeof e=="number"?0:e;function aX(e){let t=YG(e);return KG(e)(t.map(sX))}var Fn={test:nX,parse:YG,createTransformer:KG,getAnimatableNone:aX};var lX=new Set(["brightness","contrast","saturate","opacity"]);function uX(e){let[t,n]=e.slice(0,-1).split("(");if(t==="drop-shadow")return e;let[r]=n.match(Gc)||[];if(!r)return e;let o=n.replace(r,""),i=lX.has(t)?1:0;return r!==n&&(i*=100),t+"("+i+o+")"}var cX=/\b([a-z-]*)\(.*?\)/gu,ap={...Fn,getAnimatableNone:e=>{let t=e.match(cX);return t?t.map(uX).join(" "):e}};var dX={...gc,color:Lt,backgroundColor:Lt,outlineColor:Lt,fill:Lt,stroke:Lt,borderColor:Lt,borderTopColor:Lt,borderRightColor:Lt,borderBottomColor:Lt,borderLeftColor:Lt,filter:ap,WebkitFilter:ap},Fc=e=>dX[e];function LT(e,t){let n=Fc(e);return n!==ap&&(n=Fn),n.getAnimatableNone?n.getAnimatableNone(t):void 0}
vendor: 8,961 bytes, line 8219
8219var fX=new Set(["auto","none","0"]);function zG(e,t,n){let r=0,o;for(;r<e.length&&!o;){let i=e[r];typeof i=="string"&&!fX.has(i)&&fl(i).values.length&&(o=e[r]),r++}if(o&&n)for(let i of t)e[i]=LT(n,o)}var JR=e=>e===jo||e===q,XG=(e,t)=>parseFloat(e.split(", ")[t]),jG=(e,t)=>(n,{transform:r})=>{if(r==="none"||!r)return 0;let o=r.match(/^matrix3d\((.+)\)$/u);if(o)return XG(o[1],t);{let i=r.match(/^matrix\((.+)\)$/u);return i?XG(i[1],e):0}},pX=new Set(["x","y","z"]),mX=Xo.filter(e=>!pX.has(e));function $G(e){let t=[];return mX.forEach(n=>{let r=e.getValue(n);r!==void 0&&(t.push([n,r.get()]),r.set(n.startsWith("scale")?1:0))}),t}var pl={width:({x:e},{paddingLeft:t="0",paddingRight:n="0"})=>e.max-e.min-parseFloat(t)-parseFloat(n),height:({y:e},{paddingTop:t="0",paddingBottom:n="0"})=>e.max-e.min-parseFloat(t)-parseFloat(n),top:(e,{top:t})=>parseFloat(t),left:(e,{left:t})=>parseFloat(t),bottom:({y:e},{top:t})=>parseFloat(t)+(e.max-e.min),right:({x:e},{left:t})=>parseFloat(t)+(e.max-e.min),x:jG(4,13),y:jG(5,14)};pl.translateX=pl.x;pl.translateY=pl.y;var ml=new Set,qR=!1,QR=!1;function ZG(){if(QR){let e=Array.from(ml).filter(r=>r.needsMeasurement),t=new Set(e.map(r=>r.element)),n=new Map;t.forEach(r=>{let o=$G(r);o.length&&(n.set(r,o),r.render())}),e.forEach(r=>r.measureInitialState()),t.forEach(r=>{r.render();let o=n.get(r);o&&o.forEach(([i,s])=>{var a;(a=r.getValue(i))===null||a===void 0||a.set(s)})}),e.forEach(r=>r.measureEndState()),e.forEach(r=>{r.suspendedScrollY!==void 0&&window.scrollTo(0,r.suspendedScrollY)})}QR=!1,qR=!1,ml.forEach(e=>e.complete()),ml.clear()}function JG(){ml.forEach(e=>{e.readKeyframes(),e.needsMeasurement&&(QR=!0)})}function qG(){JG(),ZG()}var js=class{constructor(t,n,r,o,i,s=!1){this.isComplete=!1,this.isAsync=!1,this.needsMeasurement=!1,this.isScheduled=!1,this.unresolvedKeyframes=[...t],this.onComplete=n,this.name=r,this.motionValue=o,this.element=i,this.isAsync=s}scheduleResolve(){this.isScheduled=!0,this.isAsync?(ml.add(this),qR||(qR=!0,ue.read(JG),ue.resolveKeyframes(ZG))):(this.readKeyframes(),this.complete())}readKeyframes(){let{unresolvedKeyframes:t,name:n,element:r,motionValue:o}=this;for(let i=0;i<t.length;i++)if(t[i]===null)if(i===0){let s=o?.get(),a=t[t.length-1];if(s!==void 0)t[0]=s;else if(r&&n){let l=r.readValue(n,a);l!=null&&(t[0]=l)}t[0]===void 0&&(t[0]=a),o&&s===void 0&&o.set(t[0])}else t[i]=t[i-1]}setFinalKeyframe(){}measureInitialState(){}renderEndStyles(){}measureEndState(){}complete(){this.isComplete=!0,this.onComplete(this.unresolvedKeyframes,this.finalKeyframe),ml.delete(this)}cancel(){this.isComplete||(this.isScheduled=!1,ml.delete(this))}resume(){this.isComplete||this.scheduleResolve()}};var CT=e=>/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(e);var EX=/^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u;function _X(e){let t=EX.exec(e);if(!t)return[,];let[,n,r,o]=t;return[`--${n??r}`,o]}var TX=4;function eA(e,t,n=1){Sr(n<=TX,`Max CSS variable fallback depth detected in property "${e}". This may indicate a circular fallback dependency.`);let[r,o]=_X(e);if(!r)return;let i=window.getComputedStyle(t).getPropertyValue(r);if(i){let s=i.trim();return CT(s)?parseFloat(s):s}return Oc(o)?eA(o,t,n+1):o}var PT=e=>t=>t.test(e);var QG={test:e=>e==="auto",parse:e=>e};var tA=[jo,q,kn,$o,uG,lG,QG],nA=e=>tA.find(PT(e));var wc=class extends js{constructor(t,n,r,o,i){super(t,n,r,o,i,!0)}readKeyframes(){let{unresolvedKeyframes:t,element:n,name:r}=this;if(!n||!n.current)return;super.readKeyframes();for(let l=0;l<t.length;l++){let u=t[l];if(typeof u=="string"&&(u=u.trim(),Oc(u))){let c=eA(u,n.current);c!==void 0&&(t[l]=c),l===t.length-1&&(this.finalKeyframe=u)}}if(this.resolveNoneKeyframes(),!fT.has(r)||t.length!==2)return;let[o,i]=t,s=nA(o),a=nA(i);if(s!==a)if(JR(s)&&JR(a))for(let l=0;l<t.length;l++){let u=t[l];typeof u=="string"&&(t[l]=parseFloat(u))}else this.needsMeasurement=!0}resolveNoneKeyframes(){let{unresolvedKeyframes:t,name:n}=this,r=[];for(let o=0;o<t.length;o++)FG(t[o])&&r.push(o);r.length&&zG(t,r,n)}measureInitialState(){let{element:t,unresolvedKeyframes:n,name:r}=this;if(!t||!t.current)return;r==="height"&&(this.suspendedScrollY=window.pageYOffset),this.measuredOrigin=pl[r](t.measureViewportBox(),window.getComputedStyle(t.current)),n[0]=this.measuredOrigin;let o=n[n.length-1];o!==void 0&&t.getValue(r,o).jump(o,!1)}measureEndState(){var t;let{element:n,name:r,unresolvedKeyframes:o}=this;if(!n||!n.current)return;let i=n.getValue(r);i&&i.jump(this.measuredOrigin,!1);let s=o.length-1,a=o[s];o[s]=pl[r](n.measureViewportBox(),window.getComputedStyle(n.current)),a!==null&&this.finalKeyframe===void 0&&(this.finalKeyframe=a),!((t=this.removedTransforms)===null||t===void 0)&&t.length&&this.removedTransforms.forEach(([l,u])=>{n.getValue(l).set(u)}),this.resolveNoneKeyframes()}};var rA=(e,t)=>t==="zIndex"?!1:!!(typeof e=="number"||Array.isArray(e)||typeof e=="string"&&(Fn.test(e)||e==="0")&&!e.startsWith("url("));function hX(e){let t=e[0];if(e.length===1)return!0;for(let n=0;n<e.length;n++)if(e[n]!==t)return!0}function ek(e,t,n,r){let o=e[0];if(o===null)return!1;if(t==="display"||t==="visibility")return!0;let i=e[e.length-1],s=rA(o,t),a=rA(i,t);return Bs(s===a,`You are trying to animate ${t} from "${o}" to "${i}". ${o} is not an animatable value - to enable this animation set ${o} to a value animatable to ${i} via the \`style\` property.`),!s||!a?!1:hX(e)||(n==="spring"||Ys(n))&&r}var OX=e=>e!==null;function $s(e,{repeat:t,repeatType:n="loop"},r){let o=e.filter(OX),i=t&&n!=="loop"&&t%2===1?0:o.length-1;return!i||r===void 0?o[i]:r}var gX=40,Bc=class{constructor({autoplay:t=!0,delay:n=0,type:r="keyframes",repeat:o=0,repeatDelay:i=0,repeatType:s="loop",...a}){this.isStopped=!1,this.hasAttemptedResolve=!1,this.createdAt=Nn.now(),this.options={autoplay:t,delay:n,type:r,repeat:o,repeatDelay:i,repeatType:s,...a},this.updateFinishedPromise()}calcStartTime(){return this.resolvedAt?this.resolvedAt-this.createdAt>gX?this.resolvedAt:this.createdAt:this.createdAt}get resolved(){return!this._resolved&&!this.hasAttemptedResolve&&qG(),this._resolved}onKeyframesResolved(t,n){this.resolvedAt=Nn.now(),this.hasAttemptedResolve=!0;let{name:r,type:o,velocity:i,delay:s,onComplete:a,onUpdate:l,isGenerator:u}=this.options;if(!u&&!ek(t,r,o,i))if(TT.current||!s){l&&l($s(t,this.options,n)),a&&a(),this.resolveFinishedPromise();return}else this.options.duration=0;let c=this.initPlayback(t,n);c!==!1&&(this._resolved={keyframes:t,finalKeyframe:n,...c},this.onPostResolved())}onPostResolved(){}then(t,n){return this.currentFinishedPromise.then(t,n)}flatten(){this.options.type="keyframes",this.options.ease="linear"}updateFinishedPromise(){this.currentFinishedPromise=new Promise(t=>{this.resolveFinishedPromise=t})}};function Uc(e){let t=0,n=50,r=e.next(t);for(;!r.done&&t<2e4;)t+=n,r=e.next(t);return t>=2e4?1/0:t}var Jo={layout:0,mainThread:0,waapi:0};var Re=(e,t,n)=>e+(t-e)*n;function oA(e,t,n){return n<0&&(n+=1),n>1&&(n-=1),n<1/6?e+(t-e)*6*n:n<1/2?t:n<2/3?e+(t-e)*(2/3-n)*6:e}function tk({hue:e,saturation:t,lightness:n,alpha:r}){e/=360,t/=100,n/=100;let o=0,i=0,s=0;if(!t)o=i=s=n;else{let a=n<.5?n*(1+t):n+t-n*t,l=2*n-a;o=oA(l,a,e+1/3),i=oA(l,a,e),s=oA(l,a,e-1/3)}return{red:Math.round(o*255),green:Math.round(i*255),blue:Math.round(s*255),alpha:r}}function Vc(e,t){return n=>n>0?t:e}var iA=(e,t,n)=>{let r=e*e,o=n*(t*t-r)+r;return o<0?0:Math.sqrt(o)},IX=[sp,Zo,Xs],SX=e=>IX.find(t=>t.test(e));function nk(e){let t=SX(e);if(Bs(Boolean(t),`'${e}' is not an animatable color. Use the equivalent color code instead.`),!Boolean(t))return!1;let n=t.parse(e);return t===Xs&&(n=tk(n)),n}var sA=(e,t)=>{let n=nk(e),r=nk(t);if(!n||!r)return Vc(e,t);let o={...n};return i=>(o.red=iA(n.red,r.red,i),o.green=iA(n.green,r.green,i),o.blue=iA(n.blue,r.blue,i),o.alpha=Re(n.alpha,r.alpha,i),Zo.transform(o))};var RX=(e,t)=>n=>t(e(n)),qo=(...e)=>e.reduce(RX);var DT=new Set(["none","hidden"]);function rk(e,t){return DT.has(e)?n=>n<=0?e:t:n=>n>=1?t:e}function AX(e,t){return n=>Re(e,t,n)}function vT(e){return typeof e=="number"?AX:typeof e=="string"?Oc(e)?Vc:Lt.test(e)?sA:bX:Array.isArray(e)?ok:typeof e=="object"?Lt.test(e)?sA:NX:Vc}function ok(e,t){let n=[...e],r=n.length,o=e.map((i,s)=>vT(i)(i,t[s]));return i=>{for(let s=0;s<r;s++)n[s]=o[s](i);return n}}function NX(e,t){let n={...e,...t},r={};for(let o in n)e[o]!==void 0&&t[o]!==void 0&&(r[o]=vT(e[o])(e[o],t[o]));return o=>{for(let i in r)n[i]=r[i](o);return n}}function yX(e,t){var n;let r=[],o={color:0,var:0,number:0};for(let i=0;i<t.values.length;i++){let s=t.types[i],a=e.indexes[s][o[s]],l=(n=e.values[a])!==null&&n!==void 0?n:0;r[i]=l,o[s]++}return r}var bX=(e,t)=>{let n=Fn.createTransformer(t),r=fl(e),o=fl(t);return r.indexes.var.length===o.indexes.var.length&&r.indexes.color.length===o.indexes.color.length&&r.indexes.number.length>=o.indexes.number.length?DT.has(e)&&!o.values.length||DT.has(t)&&!r.values.length?rk(e,t):qo(ok(yX(r,o),o.values),n):(Bs(!0,`Complex values '${e}' and '${t}
8219' 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.`),Vc(e,t))};function xT(e,t,n){return typeof e=="number"&&typeof t=="number"&&typeof n=="number"?Re(e,t,n):vT(e)(e,t)}var LX=5;function MT(e,t,n){let r=Math.max(t-LX,0);return mT(n-e(r),t-r)}var lt={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};var aA=.001;function ik({duration:e=lt.duration,bounce:t=lt.bounce,velocity:n=lt.velocity,mass:r=lt.mass}){let o,i;Bs(e<=Zt(lt.maxDuration),"Spring duration must be 10 seconds or less");let s=1-t;s=dn(lt.minDamping,lt.maxDamping,s),e=dn(lt.minDuration,lt.maxDuration,yn(e)),s<1?(o=u=>{let c=u*s,d=c*e,f=c-n,p=GT(u,s),_=Math.exp(-d);return aA-f/p*_},i=u=>{let d=u*s*e,f=d*n+n,p=Math.pow(s,2)*Math.pow(u,2)*e,_=Math.exp(-d),T=GT(Math.pow(u,2),s);return(-o(u)+aA>0?-1:1)*((f-p)*_)/T}):(o=u=>{let c=Math.exp(-u*e),d=(u-n)*e+1;return-aA+c*d},i=u=>{let c=Math.exp(-u*e),d=(n-u)*(e*e);return c*d});let a=5/e,l=PX(o,i,a);if(e=Zt(e),isNaN(l))return{stiffness:lt.stiffness,damping:lt.damping,duration:e};{let u=Math.pow(l,2)*r;return{stiffness:u,damping:s*2*Math.sqrt(r*u),duration:e}}}var CX=12;function PX(e,t,n){let r=n;for(let o=1;o<CX;o++)r=r-e(r)/t(r);return r}function GT(e,t){return e*Math.sqrt(1-t*t)}var DX=["duration","bounce"],vX=["stiffness","damping","mass"];function sk(e,t){return t.some(n=>e[n]!==void 0)}function xX(e){let t={velocity:lt.velocity,stiffness:lt.stiffness,damping:lt.damping,mass:lt.mass,isResolvedFromDuration:!1,...e};if(!sk(e,vX)&&sk(e,DX))if(e.visualDuration){let n=e.visualDuration,r=2*Math.PI/(n*1.2),o=r*r,i=2*dn(.05,1,1-(e.bounce||0))*Math.sqrt(o);t={...t,mass:lt.mass,stiffness:o,damping:i}}else{let n=ik(e);t={...t,...n,mass:lt.mass},t.isResolvedFromDuration=!0}return t}function Hc(e=lt.visualDuration,t=lt.bounce){let n=typeof e!="object"?{visualDuration:e,keyframes:[0,1],bounce:t}:e,{restSpeed:r,restDelta:o}=n,i=n.keyframes[0],s=n.keyframes[n.keyframes.length-1],a={done:!1,value:i},{stiffness:l,damping:u,mass:c,duration:d,velocity:f,isResolvedFromDuration:p}=xX({...n,velocity:-yn(n.velocity||0)}),_=f||0,T=u/(2*Math.sqrt(l*c)),h=s-i,m=yn(Math.sqrt(l/c)),E=Math.abs(h)<5;r||(r=E?lt.restSpeed.granular:lt.restSpeed.default),o||(o=E?lt.restDelta.granular:lt.restDelta.default);let O;if(T<1){let I=GT(m,T);O=S=>{let A=Math.exp(-T*m*S);return s-A*((_+T*m*h)/I*Math.sin(I*S)+h*Math.cos(I*S))}}else if(T===1)O=I=>s-Math.exp(-m*I)*(h+(_+m*h)*I);else{let I=m*Math.sqrt(T*T-1);O=S=>{let A=Math.exp(-T*m*S),R=Math.min(I*S,300);return s-A*((_+T*m*h)*Math.sinh(R)+I*h*Math.cosh(R))/I}}let g={calculatedDuration:p&&d||null,next:I=>{let S=O(I);if(p)a.done=I>=d;else{let A=0;T<1&&(A=I===0?Zt(_):MT(O,I,S));let R=Math.abs(A)<=r,y=Math.abs(s-S)<=o;a.done=R&&y}return a.value=a.done?s:S,a},toString:()=>{let I=Math.min(Uc(g),2e4),S=hT(A=>g.next(I*A).value,I,30);return I+"ms "+S}};return g}function uA({keyframes:e,velocity:t=0,power:n=.8,timeConstant:r=325,bounceDamping:o=10,bounceStiffness:i=500,modifyTarget:s,min:a,max:l,restDelta:u=.5,restSpeed:c}){let d=e[0],f={done:!1,value:d},p=R=>a!==void 0&&R<a||l!==void 0&&R>l,_=R=>a===void 0?l:l===void 0||Math.abs(a-R)<Math.abs(l-R)?a:l,T=n*t,h=d+T,m=s===void 0?h:s(h);m!==h&&(T=m-d);let E=R=>-T*Math.exp(-R/r),O=R=>m+E(R),g=R=>{let y=E(R),b=O(R);f.done=Math.abs(y)<=u,f.value=f.done?m:b},I,S,A=R=>{p(f.value)&&(I=R,S=Hc({keyframes:[f.value,_(f.value)],velocity:MT(O,R,f.value),damping:o,stiffness:i,restDelta:u,restSpeed:c}))};return A(0),{calculatedDuration:null,next:R=>{let y=!1;return!S&&I===void 0&&(y=!0,g(R),A(R)),I!==void 0&&R>=I?S.next(R-I):(!y&&g(R),f)}}}var ak=Ks(.42,0,1,1),lk=Ks(0,0,.58,1),kT=Ks(.42,0,.58,1);var FT=e=>Array.isArray(e)&&typeof e[0]!="number";var uk={linear:dt,easeIn:ak,easeInOut:kT,easeOut:lk,circIn:RT,circInOut:NT,circOut:AT,backIn:ip,backInOut:IT,backOut:$R,anticipate:ST},cA=e=>{if(rp(e)){Sr(e.length===4,"Cubic bezier arrays must contain four numerical values.");let[t,n,r,o]=e;return Ks(t,n,r,o)}else if(typeof e=="string")return Sr(uk[e]!==void 0,`Invalid easing type '${e}'`),uk[e];return e};function MX(e,t,n){let r=[],o=n||xT,i=e.length-1;for(let s=0;s<i;s++){let a=o(e[s],e[s+1]);if(t){let l=Array.isArray(t)?t[s]||dt:t;a=qo(l,a)}r.push(a)}return r}function wT(e,t,{clamp:n=!0,ease:r,mixer:o}={}){let i=e.length;if(Sr(i===t.length,"Both input and output ranges must be the same length"),i===1)return()=>t[0];if(i===2&&t[0]===t[1])return()=>t[1];let s=e[0]===e[1];e[0]>e[i-1]&&(e=[...e].reverse(),t=[...t].reverse());let a=MX(t,r,o),l=a.length,u=c=>{if(s&&c<e[0])return t[0];let d=0;if(l>1)for(;d<e.length-2&&!(c<e[d+1]);d++);let f=Ar(e[d],e[d+1],c);return a[d](f)};return n?c=>u(dn(e[0],e[i-1],c)):u}function BT(e,t){let n=e[e.length-1];for(let r=1;r<=t;r++){let o=Ar(0,t,r);e.push(Re(n,1,o))}}function UT(e){let t=[0];return BT(t,e.length-1),t}function ck(e,t){return e.map(n=>n*t)}function GX(e,t){return e.map(()=>t||kT).splice(0,e.length-1)}function lp({duration:e=300,keyframes:t,times:n,ease:r="easeInOut"}){let o=FT(r)?r.map(cA):cA(r),i={done:!1,value:t[0]},s=ck(n&&n.length===t.length?n:UT(t),e),a=wT(s,t,{ease:Array.isArray(o)?o:GX(t,o)});return{calculatedDuration:e,next:l=>(i.value=a(l),i.done=l>=e,i)}}var dk=e=>{let t=({timestamp:n})=>e(n);return{start:()=>ue.update(t,!0),stop:()=>Zn(t),now:()=>St.isProcessing?St.timestamp:Nn.now()}};var kX={decay:uA,inertia:uA,tween:lp,keyframes:lp,spring:Hc},FX=e=>e/100,El=class extends Bc{constructor(t){super(t),this.holdTime=null,this.cancelTime=null,this.currentTime=0,this.playbackSpeed=1,this.pendingPlayState="running",this.startTime=null,this.state="idle",this.stop=()=>
vendor: 12,686 bytes, line 8219
8219{if(this.resolver.cancel(),this.isStopped=!0,this.state==="idle")return;this.teardown();let{onStop:l}=this.options;l&&l()};let{name:n,motionValue:r,element:o,keyframes:i}=this.options,s=o?.KeyframeResolver||js,a=(l,u)=>this.onKeyframesResolved(l,u);this.resolver=new s(i,a,n,r,o),this.resolver.scheduleResolve()}flatten(){super.flatten(),this._resolved&&Object.assign(this._resolved,this.initPlayback(this._resolved.keyframes))}initPlayback(t){let{type:n="keyframes",repeat:r=0,repeatDelay:o=0,repeatType:i,velocity:s=0}=this.options,a=Ys(n)?n:kX[n]||lp,l,u;a!==lp&&typeof t[0]!="number"&&(l=qo(FX,xT(t[0],t[1])),t=[0,100]);let c=a({...this.options,keyframes:t});i==="mirror"&&(u=a({...this.options,keyframes:[...t].reverse(),velocity:-s})),c.calculatedDuration===null&&(c.calculatedDuration=Uc(c));let{calculatedDuration:d}=c,f=d+o,p=f*(r+1)-o;return{generator:c,mirroredGenerator:u,mapPercentToKeyframes:l,calculatedDuration:d,resolvedDuration:f,totalDuration:p}}onPostResolved(){let{autoplay:t=!0}=this.options;Jo.mainThread++,this.play(),this.pendingPlayState==="paused"||!t?this.pause():this.state=this.pendingPlayState}tick(t,n=!1){let{resolved:r}=this;if(!r){let{keyframes:R}=this.options;return{done:!0,value:R[R.length-1]}}let{finalKeyframe:o,generator:i,mirroredGenerator:s,mapPercentToKeyframes:a,keyframes:l,calculatedDuration:u,totalDuration:c,resolvedDuration:d}=r;if(this.startTime===null)return i.next(0);let{delay:f,repeat:p,repeatType:_,repeatDelay:T,onUpdate:h}=this.options;this.speed>0?this.startTime=Math.min(this.startTime,t):this.speed<0&&(this.startTime=Math.min(t-c/this.speed,this.startTime)),n?this.currentTime=t:this.holdTime!==null?this.currentTime=this.holdTime:this.currentTime=Math.round(t-this.startTime)*this.speed;let m=this.currentTime-f*(this.speed>=0?1:-1),E=this.speed>=0?m<0:m>c;this.currentTime=Math.max(m,0),this.state==="finished"&&this.holdTime===null&&(this.currentTime=c);let O=this.currentTime,g=i;if(p){let R=Math.min(this.currentTime,c)/d,y=Math.floor(R),b=R%1;!b&&R>=1&&(b=1),b===1&&y--,y=Math.min(y,p+1),Boolean(y%2)&&(_==="reverse"?(b=1-b,T&&(b-=T/d)):_==="mirror"&&(g=s)),O=dn(0,1,b)*d}let I=E?{done:!1,value:l[0]}:g.next(O);a&&(I.value=a(I.value));let{done:S}=I;!E&&u!==null&&(S=this.speed>=0?this.currentTime>=c:this.currentTime<=0);let A=this.holdTime===null&&(this.state==="finished"||this.state==="running"&&S);return A&&o!==void 0&&(I.value=$s(l,this.options,o)),h&&h(I.value),A&&this.finish(),I}get duration(){let{resolved:t}=this;return t?yn(t.calculatedDuration):0}get time(){return yn(this.currentTime)}set time(t){t=Zt(t),this.currentTime=t,this.holdTime!==null||this.speed===0?this.holdTime=t:this.driver&&(this.startTime=this.driver.now()-t/this.speed)}get speed(){return this.playbackSpeed}set speed(t){let n=this.playbackSpeed!==t;this.playbackSpeed=t,n&&(this.time=yn(this.currentTime))}play(){if(this.resolver.isScheduled||this.resolver.resume(),!this._resolved){this.pendingPlayState="running";return}if(this.isStopped)return;let{driver:t=dk,onPlay:n,startTime:r}=this.options;this.driver||(this.driver=t(i=>this.tick(i))),n&&n();let o=this.driver.now();this.holdTime!==null?this.startTime=o-this.holdTime:this.startTime?this.state==="finished"&&(this.startTime=o):this.startTime=r??this.calcStartTime(),this.state==="finished"&&this.updateFinishedPromise(),this.cancelTime=this.startTime,this.holdTime=null,this.state="running",this.driver.start()}pause(){var t;if(!this._resolved){this.pendingPlayState="paused";return}this.state="paused",this.holdTime=(t=this.currentTime)!==null&&t!==void 0?t:0}complete(){this.state!=="running"&&this.play(),this.pendingPlayState=this.state="finished",this.holdTime=null}finish(){this.teardown(),this.state="finished";let{onComplete:t}=this.options;t&&t()}cancel(){this.cancelTime!==null&&this.tick(this.cancelTime),this.teardown(),this.updateFinishedPromise()}teardown(){this.state="idle",this.stopDriver(),this.resolveFinishedPromise(),this.updateFinishedPromise(),this.startTime=this.cancelTime=null,this.resolver.cancel(),Jo.mainThread--}stopDriver(){this.driver&&(this.driver.stop(),this.driver=void 0)}sample(t){return this.startTime=0,this.tick(t,!0)}};var fk=new Set(["opacity","clipPath","filter","transform"]);function pk(e,t,n,{delay:r=0,duration:o=300,repeat:i=0,repeatType:s="loop",ease:a="easeInOut",times:l}={}){let u={[t]:n};l&&(u.offset=l);let c=jR(a,o);Array.isArray(c)&&(u.easing=c),Rr.value&&Jo.waapi++;let d=e.animate(u,{delay:r,duration:o,easing:Array.isArray(c)?"linear":c,fill:"both",iterations:i+1,direction:s==="reverse"?"alternate":"normal"});return Rr.value&&d.finished.finally(()=>{Jo.waapi--}),d}var mk=vc(()=>Object.hasOwnProperty.call(Element.prototype,"animate"));var VT=10,wX=2e4;function BX(e){return Ys(e.type)||e.type==="spring"||!XR(e.ease)}function UX(e,t){let n=new El({...t,keyframes:e,repeat:0,delay:0,isGenerator:!0}),r={done:!1,value:e[0]},o=[],i=0;for(;!r.done&&i<wX;)r=n.sample(i),o.push(r.value),i+=VT;return{times:void 0,keyframes:o,duration:i-VT,ease:"linear"}}var Ek={anticipate:ST,backInOut:IT,circInOut:NT};function VX(e){return e in Ek}var up=class extends Bc{constructor(t){super(t);let{name:n,motionValue:r,element:o,keyframes:i}=this.options;this.resolver=new wc(i,(s,a)=>this.onKeyframesResolved(s,a),n,r,o),this.resolver.scheduleResolve()}initPlayback(t,n){let{duration:r=300,times:o,ease:i,type:s,motionValue:a,name:l,startTime:u}=this.options;if(!a.owner||!a.owner.current)return!1;if(typeof i=="string"&&Mc()&&VX(i)&&(i=Ek[i]),BX(this.options)){let{onComplete:d,onUpdate:f,motionValue:p,element:_,...T}=this.options,h=UX(t,T);t=h.keyframes,t.length===1&&(t[1]=t[0]),r=h.duration,o=h.times,i=h.ease,s="keyframes"}let c=pk(a.owner.current,l,t,{...this.options,duration:r,times:o,ease:i});return c.startTime=u??this.calcStartTime(),this.pendingTimeline?(KR(c,this.pendingTimeline),this.pendingTimeline=void 0):c.onfinish=()=>{let{onComplete:d}=this.options;a.set($s(t,this.options,n)),d&&d(),this.cancel(),this.resolveFinishedPromise()},{animation:c,duration:r,times:o,type:s,ease:i,keyframes:t}}get duration(){let{resolved:t}=this;if(!t)return 0;let{duration:n}=t;return yn(n)}get time(){let{resolved:t}=this;if(!t)return 0;let{animation:n}=t;return yn(n.currentTime||0)}set time(t){let{resolved:n}=this;if(!n)return;let{animation:r}=n;r.currentTime=Zt(t)}get speed(){let{resolved:t}=this;if(!t)return 1;let{animation:n}=t;return n.playbackRate}set speed(t){let{resolved:n}=this;if(!n)return;let{animation:r}=n;r.playbackRate=t}get state(){let{resolved:t}=this;if(!t)return"idle";let{animation:n}=t;return n.playState}get startTime(){let{resolved:t}=this;if(!t)return null;let{animation:n}=t;return n.startTime}attachTimeline(t){if(!this._resolved)this.pendingTimeline=t;else{let{resolved:n}=this;if(!n)return dt;let{animation:r}=n;KR(r,t)}return dt}play(){if(this.isStopped)return;let{resolved:t}=this;if(!t)return;let{animation:n}=t;n.playState==="finished"&&this.updateFinishedPromise(),n.play()}pause(){let{resolved:t}=this;if(!t)return;let{animation:n}=t;n.pause()}stop(){if(this.resolver.cancel(),this.isStopped=!0,this.state==="idle")return;this.resolveFinishedPromise(),this.updateFinishedPromise();let{resolved:t}=this;if(!t)return;let{animation:n,keyframes:r,duration:o,type:i,ease:s,times:a}=t;if(n.playState==="idle"||n.playState==="finished")return;if(this.time){let{motionValue:u,onUpdate:c,onComplete:d,element:f,...p}=this.options,_=new El({...p,keyframes:r,duration:o,type:i,ease:s,times:a,isGenerator:!0}),T=Zt(this.time);u.setWithVelocity(_.sample(T-VT).value,_.sample(T).value,VT)}let{onStop:l}=this.options;l&&l(),this.cancel()}complete(){let{resolved:t}=this;t&&t.animation.finish()}cancel(){let{resolved:t}=this;t&&t.animation.cancel()}static supports(t){let{motionValue:n,name:r,repeatDelay:o,repeatType:i,damping:s,type:a}=t;if(!n||!n.owner||!(n.owner.current instanceof HTMLElement))return!1;let{onUpdate:l,transformTemplate:u}=n.owner.getProps();return mk()&&r&&fk.has(r)&&!l&&!u&&!o&&i!=="mirror"&&s!==0&&a!=="inertia"}};var HX={type:"spring",stiffness:500,damping:25,restSpeed:10},WX=e=>({type:"spring",stiffness:550,damping:e===0?2*Math.sqrt(550):30,restSpeed:10}),YX={type:"keyframes",duration:.8},KX={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},_k=(e,{keyframes:t})=>t.length>2?YX:qn.has(e)?e.startsWith("scale")?WX(t[1]):HX:KX;function Tk({when:e,delay:t,delayChildren:n,staggerChildren:r,staggerDirection:o,repeat:i,repeatType:s,repeatDelay:a,from:l,elapsed:u,...c}){return!!Object.keys(c).length}var Wc=(e,t,n,r={},o,i)=>s=>{let a=Pc(r,e)||{},l=a.delay||r.delay||0,{elapsed:u=0}=r;u=u-Zt(l);let c={keyframes:Array.isArray(n)?n:[null,n],ease:"easeOut",velocity:t.getVelocity(),...a,delay:-u,onUpdate:f=>{t.set(f),a.onUpdate&&a.onUpdate(f)},onComplete:()=>{s(),a.onComplete&&a.onComplete()},name:e,motionValue:t,element:i?void 0:o};Tk(a)||(c={...c,..._k(e,c)}),c.duration&&(c.duration=Zt(c.duration)),c.repeatDelay&&(c.repeatDelay=Zt(c.repeatDelay)),c.from!==void 0&&(c.keyframes[0]=c.from);let d=!1;if((c.type===!1||c.duration===0&&!c.repeatDelay)&&(c.duration=0,c.delay===0&&(d=!0)),(TT.current||ul.skipAnimations)&&(d=!0,c.duration=0,c.delay=0),d&&!i&&t.get()!==void 0){let f=$s(c.keyframes,a);if(f!==void 0)return ue.update(()=>{c.onUpdate(f),c.onComplete()}),new xc([])}return!i&&up.supports(c)?new up(c):new El(c)};function zX({protectedKeys:e,needsAnimating:t},n){let r=e.hasOwnProperty(n)&&t[n]!==!0;return t[n]=!1,r}function Yc(e,t,{delay:n=0,transitionOverride:r,type:o}={}){var i;let{transition:s=e.getDefaultTransition(),transitionEnd:a,...l}=t;r&&(s=r);let u=[],c=o&&e.animationState&&e.animationState.getState()[o];for(let d in l){let f=e.getValue(d,(i=e.latestValues[d])!==null&&i!==void 0?i:null),p=l[d];if(p===void 0||c&&zX(c,d))continue;let _={delay:n,...Pc(s||{},d)},T=!1;if(window.MotionHandoffAnimation){let m=ET(e);if(m){let E=window.MotionHandoffAnimation(m,d,ue);E!==null&&(_.startTime=E,T=!0)}}np(e,d),f.start(Wc(d,f,p,e.shouldReduceMotion&&fT.has(d)?{type:!1}:_,e,T));let h=f.animation;h&&u.push(h)}return a&&Promise.all(u).then(()=>{ue.update(()=>{a&&DG(e,a)})}),u}function HT(e,t,n={}){var r;let o=Gi(e,t,n.type==="exit"?(r=e.presenceContext)===null||r===void 0?void 0:r.custom:void 0),{transition:i=e.getDefaultTransition()||{}}=o||{};n.transitionOverride&&(i=n.transitionOverride);let s=o?()=>Promise.all(Yc(e,o,n)):()=>Promise.resolve(),a=e.variantChildren&&e.variantChildren.size?(u=0)=>{let{delayChildren:c=0,staggerChildren:d,staggerDirection:f}=i;return XX(e,t,c+u,d,f,n)}:()=>Promise.resolve(),{when:l}=i;if(l){let[u,c]=l==="beforeChildren"?[s,a]:[a,s];return u().then(()=>c())}else return Promise.all([s(),a(n.delay)])}function XX(e,t,n=0,r=0,o=1,i){let s=[],a=(e.variantChildren.size-1)*r,l=o===1?(u=0)=>u*r:(u=0)=>a-u*r;return Array.from(e.variantChildren).sort(jX).forEach((u,c)=>{u.notify("AnimationStart",t),s.push(HT(u,t,{...i,delay:n+l(c)}).then(()=>u.notify("AnimationComplete",t)))}),Promise.all(s)}function jX(e,t){return e.sortNodePosition(t)}function hk(e,t,n={}){e.notify("AnimationStart",t);let r;if(Array.isArray(t)){let o=t.map(i=>HT(e,i,n));r=Promise.all(o)}else if(typeof t=="string")r=HT(e,t,n);else{let o=typeof t=="function"?Gi(e,t,n.custom):t;r=Promise.all(Yc(e,o,n))}return r.then(()=>{e.notify("AnimationComplete",t)})}function dA(e,t){if(!Array.isArray(t))return!1;let n=t.length;if(n!==e.length)return!1;for(let r=0;r<n;r++)if(t[r]!==e[r])return!1;return!0}var $X=qf.length;function fA(e){if(!e)return;if(!e.isControllingVariants){let n=e.parent?fA(e.parent)||{}:{};return e.props.initial!==void 0&&(n.initial=e.props.initial),n}let t={};for(let n=0;n<$X;n++){let r=qf[n],o=e.props[r];(vi(o)||o===!1)&&(t[r]=o)}return t}var ZX=[...J_].reverse(),JX=J_.length;function qX(e){return t=>Promise.all(t.map(({animation:n,options:r})=>hk(e,n,r)))}function gk(e){let t=qX(e),n=Ok(),r=!0,o=l=>(u,c)=>{var d;let f=Gi(e,c,l==="exit"?(d=e.presenceContext)===null||d===void 0?void 0:d.custom:void 0);if(f){let{transition:p,transitionEnd:_,...T}=f;u={...u,...T,..._}}return u};function i(l){t=l(e)}function s(l){let{props:u}=e,c=fA(e.parent)||{},d=[],f=new Set,p={},_=1/0;for(let h=0;h<JX;h++){let m=ZX[h],E=n[m],O=u[m]!==void 0?u[m]:c[m],g=vi(O),I=m===l?E.isActive:null;I===!1&&(_=h);let S=O===c[m]&&O!==u[m]&&g;if(S&&r&&e.manuallyAnimateOnMount&&(S=!1),E.protectedKeys={...p},!E.isActive&&I===null||!O&&!E.prevProp||Vs(O)||typeof O=="boolean")continue;let A=QX(E.prevProp,O),R=A||m===l&&E.isActive&&!S&&g||h>_&&g,y=!1,b=Array.isArray(O)?O:[O],L=b.reduce(o(m),{});I===!1&&(L={});let{prevResolvedValues:D={}}=E,F={...D,...L},U=C=>{R=!0,f.has(C)&&(y=!0,f.delete(C)),E.needsAnimating[C]=!0;let M=e.getValue(C);M&&(M.liveStyle=!1)};
8219for(let C in F){let M=L[C],P=D[C];if(p.hasOwnProperty(C))continue;let z=!1;tp(M)&&tp(P)?z=!dA(M,P):z=M!==P,z?M!=null?U(C):f.add(C):M!==void 0&&f.has(C)?U(C):E.protectedKeys[C]=!0}E.prevProp=O,E.prevResolvedValues=L,E.isActive&&(p={...p,...L}),r&&e.blockInitialAnimation&&(R=!1),R&&(!(S&&A)||y)&&d.push(...b.map(C=>({animation:C,options:{type:m}})))}if(f.size){let h={};if(typeof u.initial!="boolean"){let m=Gi(e,Array.isArray(u.initial)?u.initial[0]:u.initial);m&&m.transition&&(h.transition=m.transition)}f.forEach(m=>{let E=e.getBaseTarget(m),O=e.getValue(m);O&&(O.liveStyle=!0),h[m]=E??null}),d.push({animation:h})}let T=Boolean(d.length);return r&&(u.initial===!1||u.initial===u.animate)&&!e.manuallyAnimateOnMount&&(T=!1),r=!1,T?t(d):Promise.resolve()}function a(l,u){var c;if(n[l].isActive===u)return Promise.resolve();(c=e.variantChildren)===null||c===void 0||c.forEach(f=>{var p;return(p=f.animationState)===null||p===void 0?void 0:p.setActive(l,u)}),n[l].isActive=u;let d=s(l);for(let f in n)n[f].protectedKeys={};return d}return{animateChanges:s,setActive:a,setAnimateFunction:i,getState:()=>n,reset:()=>{n=Ok(),r=!0}}}function QX(e,t){return typeof t=="string"?t!==e:Array.isArray(t)?!dA(t,e):!1}function _l(e=!1){return{isActive:e,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function Ok(){return{animate:_l(!0),whileInView:_l(),whileHover:_l(),whileTap:_l(),whileDrag:_l(),whileFocus:_l(),exit:_l()}}var Jt=class{constructor(t){this.isMounted=!1,this.node=t}update(){}};var WT=class extends Jt{constructor(t){super(t),t.animationState||(t.animationState=gk(t))}updateAnimationControlsSubscription(){let{animate:t}=this.node.getProps();Vs(t)&&(this.unmountControls=t.subscribe(this.node))}mount(){this.updateAnimationControlsSubscription()}update(){let{animate:t}=this.node.getProps(),{animate:n}=this.node.prevProps||{};t!==n&&this.updateAnimationControlsSubscription()}unmount(){var t;this.node.animationState.reset(),(t=this.unmountControls)===null||t===void 0||t.call(this)}};var e8=0,YT=class extends Jt{constructor(){super(...arguments),this.id=e8++}update(){if(!this.node.presenceContext)return;let{isPresent:t,onExitComplete:n}=this.node.presenceContext,{isPresent:r}=this.node.prevPresenceContext||{};if(!this.node.animationState||t===r)return;let o=this.node.animationState.setActive("exit",!t);n&&!t&&o.then(()=>{n(this.id)})}mount(){let{register:t,onExitComplete:n}=this.node.presenceContext||{};n&&n(this.id),t&&(this.unmount=t(this.id))}unmount(){}};var Ik={animation:{Feature:WT},exit:{Feature:YT}};var qr={x:!1,y:!1};function KT(){return qr.x||qr.y}function Sk(e){return e==="x"||e==="y"?qr[e]?null:(qr[e]=!0,()=>{qr[e]=!1}):qr.x||qr.y?null:(qr.x=qr.y=!0,()=>{qr.x=qr.y=!1})}function Fi(e,t,n,r={passive:!0}){return e.addEventListener(t,n,r),()=>e.removeEventListener(t,n)}var Kc=e=>e.pointerType==="mouse"?typeof e.button!="number"||e.button<=0:e.isPrimary!==!1;function wi(e){return{point:{x:e.pageX,y:e.pageY}}}var Rk=e=>t=>Kc(t)&&e(t,wi(t));function Bi(e,t,n,r){return Fi(e,t,Rk(n),r)}function zT({top:e,left:t,right:n,bottom:r}){return{x:{min:t,max:n},y:{min:e,max:r}}}function Ak({x:e,y:t}){return{top:t.min,right:e.max,bottom:t.max,left:e.min}}function Nk(e,t){if(!t)return e;let n=t({x:e.left,y:e.top}),r=t({x:e.right,y:e.bottom});return{top:n.y,left:n.x,bottom:r.y,right:r.x}}var Ck=1e-4,t8=1-Ck,n8=1+Ck,Pk=.01,r8=0-Pk,o8=0+Pk;function kt(e){return e.max-e.min}function Dk(e,t,n){return Math.abs(e-t)<=n}function yk(e,t,n,r=.5){e.origin=r,e.originPoint=Re(t.min,t.max,e.origin),e.scale=kt(n)/kt(t),e.translate=Re(n.min,n.max,e.origin)-e.originPoint,(e.scale>=t8&&e.scale<=n8||isNaN(e.scale))&&(e.scale=1),(e.translate>=r8&&e.translate<=o8||isNaN(e.translate))&&(e.translate=0)}function zc(e,t,n,r){yk(e.x,t.x,n.x,r?r.originX:void 0),yk(e.y,t.y,n.y,r?r.originY:void 0)}function bk(e,t,n){e.min=n.min+t.min,e.max=e.min+kt(t)}function vk(e,t,n){bk(e.x,t.x,n.x),bk(e.y,t.y,n.y)}function Lk(e,t,n){e.min=t.min-n.min,e.max=e.min+kt(t)}function Xc(e,t,n){Lk(e.x,t.x,n.x),Lk(e.y,t.y,n.y)}var xk=()=>({translate:0,scale:1,origin:0,originPoint:0}),Tl=()=>({x:xk(),y:xk()}),Mk=()=>({min:0,max:0}),Xe=()=>({x:Mk(),y:Mk()});function Qn(e){return[e("x"),e("y")]}function pA(e){return e===void 0||e===1}function XT({scale:e,scaleX:t,scaleY:n}){return!pA(e)||!pA(t)||!pA(n)}function Ui(e){return XT(e)||mA(e)||e.z||e.rotate||e.rotateX||e.rotateY||e.skewX||e.skewY}function mA(e){return Gk(e.x)||Gk(e.y)}function Gk(e){return e&&e!=="0%"}
8219function cp(e,t,n){let r=e-n,o=t*r;return n+o}function kk(e,t,n,r,o){return o!==void 0&&(e=cp(e,o,r)),cp(e,n,r)+t}function EA(e,t=0,n=1,r,o){e.min=kk(e.min,t,n,r,o),e.max=kk(e.max,t,n,r,o)}function _A(e,{x:t,y:n}){EA(e.x,t.translate,t.scale,t.originPoint),EA(e.y,n.translate,n.scale,n.originPoint)}var Fk=.999999999999,wk=1.0000000000001;function Uk(e,t,n,r=!1){let o=n.length;if(!o)return;t.x=t.y=1;let i,s;for(let a=0;a<o;a++){i=n[a],s=i.projectionDelta;let{visualElement:l}=i.options;l&&l.props.style&&l.props.style.display==="contents"||(r&&i.options.layoutScroll&&i.scroll&&i!==i.root&&hl(e,{x:-i.scroll.offset.x,y:-i.scroll.offset.y}),s&&(t.x*=s.x.scale,t.y*=s.y.scale,_A(e,s)),r&&Ui(i.latestValues)&&hl(e,i.latestValues))}t.x<wk&&t.x>Fk&&(t.x=1),t.y<wk&&t.y>Fk&&(t.y=1)}function Zs(e,t){e.min=e.min+t,e.max=e.max+t}function Bk(e,t,n,r,o=.5){let i=Re(e.min,e.max,o);EA(e,t,n,i,r)}function hl(e,t){Bk(e.x,t.x,t.scaleX,t.scale,t.originX),Bk(e.y,t.y,t.scaleY,t.scale,t.originY)}function TA(e,t){return zT(Nk(e.getBoundingClientRect(),t))}function Vk(e,t,n){let r=TA(e,n),{scroll:o}=t;return o&&(Zs(r.x,o.offset.x),Zs(r.y,o.offset.y)),r}function Ol(e,t){let n=`${t}PointerCapture`;if(e.target instanceof Element&&n in e.target&&e.pointerId!==void 0)try{e.target[n](e.pointerId)}catch{}}var Hk=(e,t)=>Math.abs(e-t);function Wk(e,t){let n=Hk(e.x,t.x),r=Hk(e.y,t.y);return Math.sqrt(n**2+r**2)}var jc=class{constructor(t,n,{transformPagePoint:r,dragSnapToOrigin:o=!1}={}){if(this.startEvent=null,this.lastMoveEvent=null,this.lastMoveEventInfo=null,this.handlers={},this.updatePoint=()=>{if(!(this.lastMoveEvent&&this.lastMoveEventInfo))return;let c=OA(this.lastMoveEventInfo,this.history),d=this.startEvent!==null,f=Wk(c.offset,{x:0,y:0})>=3;if(!d&&!f)return;let{point:p}=c,{timestamp:_}=St;this.history.push({...p,timestamp:_});let{onStart:T,onMove:h}=this.handlers;d||(T&&T(this.lastMoveEvent,c),this.startEvent=this.lastMoveEvent),h&&h(this.lastMoveEvent,c)},this.handlePointerMove=(c,d)=>{if(this.index=Kk(c.currentTarget),c.target instanceof Element&&c.target.hasPointerCapture&&c.pointerId!==void 0)try{if(!c.target.hasPointerCapture(c.pointerId))return}catch{}this.lastMoveEvent=c,this.lastMoveEventInfo=hA(d,this.transformPagePoint),ue.update(this.updatePoint,!0)},this.handlePointerUp=(c,d)=>{Ol(c,"release"),this.end();let{onEnd:f,onSessionEnd:p,resumeAnimation:_}=this.handlers;if(this.dragSnapToOrigin&&_&&_(),!(this.lastMoveEvent&&this.lastMoveEventInfo))return;let T=OA(c.type==="pointercancel"||c.type==="lostpointercapture"?this.lastMoveEventInfo:hA(d,this.transformPagePoint),this.history);this.startEvent&&f&&f(c,T),p&&p(c,T)},!Kc(t))return;this.dragSnapToOrigin=o,this.handlers=n,this.transformPagePoint=r;let i=wi(t),s=hA(i,this.transformPagePoint),{point:a}=s,{timestamp:l}=St;this.history=[{...a,timestamp:l}];let{onSessionStart:u}=n;u&&u(t,OA(s,this.history)),Ol(t,"set"),this.removeListeners=qo(Bi(t.currentTarget,"pointermove",this.handlePointerMove),Bi(t.currentTarget,"pointerup",this.handlePointerUp),Bi(t.currentTarget,"pointercancel",this.handlePointerUp),Bi(t.currentTarget,"lostpointercapture",(c,d)=>{Kk(c.currentTarget)!==this.index?Ol(c,"set"):this.handlePointerUp(c,d)}))}updateHandlers(t){this.handlers=t}end(){this.removeListeners&&this.removeListeners(),Zn(this.updatePoint)}};function hA(e,t){return t?{point:t(e.point)}:e}function Yk(e,t){return{x:e.x-t.x,y:e.y-t.y}}function OA({point:e},t){return{point:e,delta:Yk(e,zk(t)),offset:Yk(e,i8(t)),velocity:s8(t,.1)}}function i8(e){return e[0]}function zk(e){return e[e.length-1]}function s8(e,t){if(e.length<2)return{x:0,y:0};let n=e.length-1,r=null,o=zk(e);for(;n>=0&&(r=e[n],!(o.timestamp-r.timestamp>Zt(t)));)n--;if(!r)return{x:0,y:0};let i=yn(o.timestamp-r.timestamp);if(i===0)return{x:0,y:0};let s={x:(o.x-r.x)/i,y:(o.y-r.y)/i};return s.x===1/0&&(s.x=0),s.y===1/0&&(s.y=0),s}function Kk(e){return e.parentNode?Array.from(e.parentNode.children).indexOf(e):-1}function Jk(e,{min:t,max:n},r){return t!==void 0&&e<t?e=r?Re(t,e,r.min):Math.max(e,t):n!==void 0&&e>n&&(e=r?Re(n,e,r.max):Math.min(e,n)),e}function Xk(e,t,n){return{min:t!==void 0?e.min+t:void 0,max:n!==void 0?e.max+n-(e.max-e.min):void 0}}function qk(e,{top:t,left:n,bottom:r,right:o}){return{x:Xk(e.x,n,o),y:Xk(e.y,t,r)}}function jk(e,t){let n=t.min-e.min,r=t.max-e.max;return t.max-t.min<e.max-e.min&&([n,r]=[r,n]),{min:n,max:r}}function Qk(e,t){return{x:jk(e.x,t.x),y:jk(e.y,t.y)}}function eF(e,t){let n=.5,r=kt(e),o=kt(t);return o>r?n=Ar(t.min,t.max-r,e.min):r>o&&(n=Ar(e.min,e.max-o,t.min)),dn(0,1,n)}function tF(e,t){let n={};return t.min!==void 0&&(n.min=t.min-e.min),t.max!==void 0&&(n.max=t.max-e.min),n}var jT=.35;function nF(e=jT){return e===!1?e=0:e===!0&&(e=jT),{x:$k(e,"left","right"),y:$k(e,"top","bottom")}}
vendor: 35,875 bytes, line 8219
8219function $k(e,t,n){return{min:Zk(e,t),max:Zk(e,n)}}function Zk(e,t){return typeof e=="number"?e:e[t]||0}var a8=new WeakMap,ZT=class{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=Xe(),this.visualElement=t}start(t,{snapToCursor:n=!1}={}){let{presenceContext:r}=this.visualElement;if(r&&r.isPresent===!1)return;let o=c=>{let{dragSnapToOrigin:d}=this.getProps();d?this.pauseAnimation():this.stopAnimation(),n&&this.snapToCursor(wi(c).point)},i=(c,d)=>{let{drag:f,dragPropagation:p,onDragStart:_}=this.getProps();if(f&&!p&&(this.openDragLock&&this.openDragLock(),this.openDragLock=Sk(f),!this.openDragLock))return;this.isDragging=!0,this.currentDirection=null,this.resolveConstraints(),this.visualElement.projection&&(this.visualElement.projection.isAnimationBlocked=!0,this.visualElement.projection.target=void 0),Qn(h=>{let m=this.getAxisMotionValue(h).get()||0;if(kn.test(m)){let{projection:E}=this.visualElement;if(E&&E.layout){let O=E.layout.layoutBox[h];O&&(m=kt(O)*(parseFloat(m)/100))}}this.originPoint[h]=m}),_&&ue.postRender(()=>_(c,d)),np(this.visualElement,"transform");let{animationState:T}=this.visualElement;T&&T.setActive("whileDrag",!0)},s=(c,d)=>{let{dragPropagation:f,dragDirectionLock:p,onDirectionLock:_,onDrag:T}=this.getProps();if(!f&&!this.openDragLock)return;let{offset:h}=d;if(p&&this.currentDirection===null){this.currentDirection=l8(h),this.currentDirection!==null&&_&&_(this.currentDirection);return}this.updateAxis("x",d.point,h),this.updateAxis("y",d.point,h),this.visualElement.render(),T&&T(c,d)},a=(c,d)=>this.stop(c,d),l=()=>Qn(c=>{var d;return this.getAnimationState(c)==="paused"&&((d=this.getAxisMotionValue(c).animation)===null||d===void 0?void 0:d.play())}),{dragSnapToOrigin:u}=this.getProps();this.panSession=new jc(t,{onSessionStart:o,onStart:i,onMove:s,onSessionEnd:a,resumeAnimation:l},{transformPagePoint:this.visualElement.getTransformPagePoint(),dragSnapToOrigin:u})}stop(t,n){let r=this.isDragging;if(this.cancel(),!r)return;let{velocity:o}=n;this.startAnimation(o);let{onDragEnd:i}=this.getProps();i&&ue.postRender(()=>i(t,n))}cancel(){this.isDragging=!1;let{projection:t,animationState:n}=this.visualElement;t&&(t.isAnimationBlocked=!1),this.panSession&&this.panSession.end(),this.panSession=void 0;let{dragPropagation:r}=this.getProps();!r&&this.openDragLock&&(this.openDragLock(),this.openDragLock=null),n&&n.setActive("whileDrag",!1)}updateAxis(t,n,r){let{drag:o}=this.getProps();if(!r||!$T(t,o,this.currentDirection))return;let i=this.getAxisMotionValue(t),s=this.originPoint[t]+r[t];this.constraints&&this.constraints[t]&&(s=Jk(s,this.constraints[t],this.elastic[t])),i.set(s)}resolveConstraints(){var t;let{dragConstraints:n,dragElastic:r}=this.getProps(),o=this.visualElement.projection&&!this.visualElement.projection.layout?this.visualElement.projection.measure(!1):(t=this.visualElement.projection)===null||t===void 0?void 0:t.layout,i=this.constraints;n&&xi(n)?this.constraints||(this.constraints=this.resolveRefConstraints()):n&&o?this.constraints=qk(o.layoutBox,n):this.constraints=!1,this.elastic=nF(r),i!==this.constraints&&o&&this.constraints&&!this.hasMutatedConstraints&&Qn(s=>{this.constraints!==!1&&this.getAxisMotionValue(s)&&(this.constraints[s]=tF(o.layoutBox[s],this.constraints[s]))})}resolveRefConstraints(){let{dragConstraints:t,onMeasureDragConstraints:n}=this.getProps();if(!t||!xi(t))return!1;let r=t.current;Sr(r!==null,"If `dragConstraints` is set as a React ref, that ref must be passed to another component's `ref` prop.");let{projection:o}=this.visualElement;if(!o||!o.layout)return!1;let i=Vk(r,o.root,this.visualElement.getTransformPagePoint()),s=Qk(o.layout.layoutBox,i);if(n){let a=n(Ak(s));this.hasMutatedConstraints=!!a,a&&(s=zT(a))}return s}startAnimation(t){let{drag:n,dragMomentum:r,dragElastic:o,dragTransition:i,dragSnapToOrigin:s,onDragTransitionEnd:a}=this.getProps(),l=this.constraints||{},u=Qn(c=>{if(!$T(c,n,this.currentDirection))return;let d=l&&l[c]||{};s&&(d={min:0,max:0});let f=o?200:1e6,p=o?40:1e7,_={type:"inertia",velocity:r?t[c]:0,bounceStiffness:f,bounceDamping:p,timeConstant:750,restDelta:1,restSpeed:10,...i,...d};return this.startAxisValueAnimation(c,_)});return Promise.all(u).then(a)}startAxisValueAnimation(t,n){let r=this.getAxisMotionValue(t);return np(this.visualElement,t),r.start(Wc(t,r,0,n,this.visualElement,!1))}stopAnimation(){Qn(t=>this.getAxisMotionValue(t).stop())}pauseAnimation(){Qn(t=>{var n;return(n=this.getAxisMotionValue(t).animation)===null||n===void 0?void 0:n.pause()})}getAnimationState(t){var n;return(n=this.getAxisMotionValue(t).animation)===null||n===void 0?void 0:n.state}getAxisMotionValue(t){let n=`_drag${t.toUpperCase()}`,r=this.visualElement.getProps(),o=r[n];return o||this.visualElement.getValue(t,(r.initial?r.initial[t]:void 0)||0)}snapToCursor(t){Qn(n=>{let{drag:r}=this.getProps();if(!$T(n,r,this.currentDirection))return;let{projection:o}=this.visualElement,i=this.getAxisMotionValue(n);if(o&&o.layout){let{min:s,max:a}=o.layout.layoutBox[n];i.set(t[n]-Re(s,a,.5))}})}scalePositionWithinConstraints(){if(!this.visualElement.current)return;let{drag:t,dragConstraints:n}=this.getProps(),{projection:r}=this.visualElement;if(!xi(n)||!r||!this.constraints)return;this.stopAnimation();let o={x:0,y:0};Qn(s=>{let a=this.getAxisMotionValue(s);if(a&&this.constraints!==!1){let l=a.get();o[s]=eF({min:l,max:l},this.constraints[s])}});let{transformTemplate:i}=this.visualElement.getProps();this.visualElement.current.style.transform=i?i({},""):"none",r.root&&r.root.updateScroll(),r.updateLayout(),this.resolveConstraints(),Qn(s=>{if(!$T(s,t,null))return;let a=this.getAxisMotionValue(s),{min:l,max:u}=this.constraints[s];a.set(Re(l,u,o[s]))})}addListeners(){if(!this.visualElement.current)return;a8.set(this.visualElement,this);let t=this.visualElement.current,n=Bi(t,"pointerdown",l=>{let{drag:u,dragListener:c=!0}=this.getProps();u&&c&&this.start(l)}),r=()=>{let{dragConstraints:l}=this.getProps();xi(l)&&l.current&&(this.constraints=this.resolveRefConstraints())},{projection:o}=this.visualElement,i=o.addEventListener("measure",r);o&&!o.layout&&(o.root&&o.root.updateScroll(),o.updateLayout()),ue.read(r);let s=Fi(window,"resize",()=>this.scalePositionWithinConstraints()),a=o.addEventListener("didUpdate",({delta:l,hasLayoutChanged:u})=>{this.isDragging&&u&&(Qn(c=>{let d=this.getAxisMotionValue(c);d&&(this.originPoint[c]+=l[c].translate,d.set(d.get()+l[c].translate))}),this.visualElement.render())});return()=>{s(),n(),i(),a&&a()}}getProps(){let t=this.visualElement.getProps(),{drag:n=!1,dragDirectionLock:r=!1,dragPropagation:o=!1,dragConstraints:i=!1,dragElastic:s=jT,dragMomentum:a=!0}=t;return{...t,drag:n,dragDirectionLock:r,dragPropagation:o,dragConstraints:i,dragElastic:s,dragMomentum:a}}};function $T(e,t,n){return(t===!0||t===e)&&(n===null||n===e)}function l8(e,t=10){let n=null;return Math.abs(e.y)>t?n="y":Math.abs(e.x)>t&&(n="x"),n}var JT=class extends Jt{constructor(t){super(t),this.removeGroupControls=dt,this.removeListeners=dt,this.controls=new ZT(t)}mount(){let{dragControls:t}=this.node.getProps();t&&(this.removeGroupControls=t.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||dt}unmount(){this.removeGroupControls(),this.removeListeners()}};var rF=e=>(t,n)=>{e&&ue.postRender(()=>e(t,n))},qT=class extends Jt{constructor(){super(...arguments),this.removePointerDownListener=dt}onPointerDown(t){this.session=new jc(t,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint()})}createPanHandlers(){let{onPanSessionStart:t,onPanStart:n,onPan:r,onPanEnd:o}=this.node.getProps();return{onSessionStart:rF(t),onStart:rF(n),onMove:r,onEnd:(i,s)=>{delete this.session,o&&ue.postRender(()=>o(i,s))}}}mount(){this.removePointerDownListener=Bi(this.node.current,"pointerdown",t=>this.onPointerDown(t))}update(){this.session&&this.session.updateHandlers(this.createPanHandlers())}unmount(){this.removePointerDownListener(),this.session&&this.session.end()}};var sF=v(_e(),1),dp=v(W(),1);var $c={hasAnimatedSinceResize:!0,hasEverUpdated:!1};function oF(e,t){return t.max===t.min?0:e/(t.max-t.min)*100}var Zc={correct:(e,t)=>{if(!t.target)return e;if(typeof e=="string")if(q.test(e))e=parseFloat(e);else return e;let n=oF(e,t.target.x),r=oF(e,t.target.y);return`${n}% ${r}%`}};var iF={correct:(e,{treeScale:t,projectionDelta:n})=>{let r=e,o=Fn.parse(e);if(o.length>5)return r;let i=Fn.createTransformer(e),s=typeof o[0]!="number"?1:0,a=n.x.scale*t.x,l=n.y.scale*t.y;o[0+s]/=a,o[1+s]/=l;let u=Re(a,l,.5);return typeof o[2+s]=="number"&&(o[2+s]/=u),typeof o[3+s]=="number"&&(o[3+s]/=u),i(o)}};var gA=class extends dp.Component{componentDidMount(){let{visualElement:t,layoutGroup:n,switchLayoutGroup:r,layoutId:o}=this.props,{projection:i}=t;aG(u8),i&&(n.group&&n.group.add(i),r&&r.register&&o&&r.register(i),i.root.didUpdate(),i.addEventListener("animationComplete",()=>{this.safeToRemove()}),i.setOptions({...i.options,onExitComplete:()=>this.safeToRemove()})),$c.hasEverUpdated=!0}getSnapshotBeforeUpdate(t){let{layoutDependency:n,visualElement:r,drag:o,isPresent:i}=this.props,s=r.projection;return s&&(s.isPresent=i,o||t.layoutDependency!==n||n===void 0||t.isPresent!==i?s.willUpdate():this.safeToRemove(),t.isPresent!==i&&(i?s.promote():s.relegate()||ue.postRender(()=>{let a=s.getStack();(!a||!a.members.length)&&this.safeToRemove()}))),null}componentDidUpdate(){let{projection:t}=this.props.visualElement;t&&(t.root.didUpdate(),_c.postRender(()=>{!t.currentAnimation&&t.isLead()&&this.safeToRemove()}))}componentWillUnmount(){let{visualElement:t,layoutGroup:n,switchLayoutGroup:r}=this.props,{projection:o}=t;o&&(o.scheduleCheckAfterUnmount(),n&&n.group&&n.group.remove(o),r&&r.deregister&&r.deregister(o))}safeToRemove(){let{safeToRemove:t}=this.props;t&&t()}render(){return null}};function QT(e){let[t,n]=Y_(),r=(0,dp.useContext)(pc);return(0,sF.jsx)(gA,{...e,layoutGroup:r,switchLayoutGroup:(0,dp.useContext)(tT),isPresent:t,safeToRemove:n})}var u8={borderRadius:{...Zc,applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]},borderTopLeftRadius:Zc,borderTopRightRadius:Zc,borderBottomLeftRadius:Zc,borderBottomRightRadius:Zc,boxShadow:iF};function eh(e,t,n){let r=we(e)?e:ki(e);return r.start(Wc("",r,t,n)),r.animation}function th(e){return e instanceof SVGElement&&e.tagName!=="svg"}var aF=(e,t)=>e.depth-t.depth;var nh=class{constructor(){this.children=[],this.isDirty=!1}add(t){Dc(this.children,t),this.isDirty=!0}remove(t){Hs(this.children,t),this.isDirty=!0}forEach(t){this.isDirty&&this.children.sort(aF),this.isDirty=!1,this.children.forEach(t)}};function lF(e,t){let n=Nn.now(),r=({timestamp:o})=>{let i=o-n;i>=t&&(Zn(r),e(i-t))};return ue.read(r,!0),()=>Zn(r)}var fF=["TopLeft","TopRight","BottomLeft","BottomRight"],c8=fF.length,uF=e=>typeof e=="string"?parseFloat(e):e,cF=e=>typeof e=="number"||q.test(e);function pF(e,t,n,r,o,i){o?(e.opacity=Re(0,n.opacity!==void 0?n.opacity:1,d8(r)),e.opacityExit=Re(t.opacity!==void 0?t.opacity:1,0,f8(r))):i&&(e.opacity=Re(t.opacity!==void 0?t.opacity:1,n.opacity!==void 0?n.opacity:1,r));for(let s=0;s<c8;s++){let a=`border${fF[s]}Radius`,l=dF(t,a),u=dF(n,a);if(l===void 0&&u===void 0)continue;l||(l=0),u||(u=0),l===0||u===0||cF(l)===cF(u)?(e[a]=Math.max(Re(uF(l),uF(u),r),0),(kn.test(u)||kn.test(l))&&(e[a]+="%")):e[a]=u}(t.rotate||n.rotate)&&(e.rotate=Re(t.rotate||0,n.rotate||0,r))}function dF(e,t){return e[t]!==void 0?e[t]:e.borderRadius}var d8=mF(0,.5,AT),f8=mF(.5,.95,dt);function mF(e,t,n){return r=>r<e?0:r>t?1:n(Ar(e,t,r))}function EF(e,t){e.min=t.min,e.max=t.max}function Nr(e,t){EF(e.x,t.x),EF(e.y,t.y)}function IA(e,t){e.translate=t.translate,e.scale=t.scale,e.originPoint=t.originPoint,e.origin=t.origin}function _F(e,t,n,r,o){return e-=t,e=cp(e,1/n,r),o!==void 0&&(e=cp(e,1/o,r)),e}function p8(e,t=0,n=1,r=.5,o,i=e,s=e){if(kn.test(t)&&(t=parseFloat(t),t=Re(s.min,s.max,t/100)-s.min),typeof t!="number")return;let a=Re(i.min,i.max,r);e===i&&(a-=t),e.min=_F(e.min,t,n,a,o),e.max=_F(e.max,t,n,a,o)}function TF(e,t,[n,r,o],i,s){p8(e,t[n],t[r],t[o],t.scale,i,s)}var m8=["x","scaleX","originX"],E8=["y","scaleY","originY"];function SA(e,t,n,r){TF(e.x,t,m8,n?n.x:void 0,r?r.x:void 0),TF(e.y,t,E8,n?n.y:void 0,r?r.y:void 0)}function hF(e){return e.translate===0&&e.scale===1}function RA(e){return hF(e.x)&&hF(e.y)}function OF(e,t){return e.min===t.min&&e.max===t.max}function IF(e,t){return OF(e.x,t.x)&&OF(e.y,t.y)}function gF(e,t){return Math.round(e.min)===Math.round(t.min)&&Math.round(e.max)===Math.round(t.max)}function AA(e,t){return gF(e.x,t.x)&&gF(e.y,t.y)}function NA(e){return kt(e.x)/kt(e.y)}function yA(e,t){return e.translate===t.translate&&e.scale===t.scale&&e.originPoint===t.originPoint}var rh=class{constructor(){this.members=[]}add(t){Dc(this.members,t),t.scheduleRender()}remove(t){if(Hs(this.members,t),t===this.prevLead&&(this.prevLead=void 0),t===this.lead){let n=this.members[this.members.length-1];n&&this.promote(n)}}relegate(t){let n=this.members.findIndex(o=>t===o);if(n===0)return!1;let r;for(let o=n;o>=0;o--){let i=this.members[o];if(i.isPresent!==!1){r=i;break}}return r?(this.promote(r),!0):!1}promote(t,n){let r=this.lead;if(t!==r&&(this.prevLead=r,this.lead=t,t.show(),r)){r.instance&&r.scheduleRender(),t.scheduleRender(),t.resumeFrom=r,n&&(t.resumeFrom.preserveOpacity=!0),r.snapshot&&(t.snapshot=r.snapshot,t.snapshot.latestValues=r.animationValues||r.latestValues),t.root&&t.root.isUpdating&&(t.isLayoutDirty=!0);let{crossfade:o}=t.options;o===!1&&r.hide()}}exitAnimationComplete(){this.members.forEach(t=>{let{options:n,resumingFrom:r}=t;n.onExitComplete&&n.onExitComplete(),r&&r.options.onExitComplete&&r.options.onExitComplete()})}scheduleRender(){this.members.forEach(t=>{t.instance&&t.scheduleRender(!1)})}removeLeadSnapshot(){this.lead&&this.lead.snapshot&&(this.lead.snapshot=void 0)}};function SF(e,t,n){let r="",o=e.x.translate/t.x,i=e.y.translate/t.y,s=n?.z||0;if((o||i||s)&&(r=`translate3d(${o}px, ${i}px, ${s}px) `),(t.x!==1||t.y!==1)&&(r+=`scale(${1/t.x}, ${1/t.y}) `),n){let{transformPerspective:u,rotate:c,rotateX:d,rotateY:f,skewX:p,skewY:_}=n;u&&(r=`perspective(${u}px) ${r}`),c&&(r+=`rotate(${c}deg) `),d&&(r+=`rotateX(${d}deg) `),f&&(r+=`rotateY(${f}deg) `),p&&(r+=`skewX(${p}deg) `),_&&(r+=`skewY(${_}deg) `)}let a=e.x.scale*t.x,l=e.y.scale*t.y;return(a!==1||l!==1)&&(r+=`scale(${a}, ${l})`),r||"none"}var gl={nodes:0,calculatedTargetDeltas:0,calculatedProjections:0},bA=["","X","Y","Z"],_8={visibility:"hidden"},RF=1e3,T8=0;function LA(e,t,n,r){let{latestValues:o}=t;o[e]&&(n[e]=o[e],t.setStaticValue(e,0),r&&(r[e]=0))}function DF(e){if(e.hasCheckedOptimisedAppear=!0,e.root===e)return;let{visualElement:t}=e.options;if(!t)return;let n=ET(t);if(window.MotionHasOptimisedAnimation(n,"transform")){let{layout:o,layoutId:i}=e.options;window.MotionCancelOptimisedAnimation(n,"transform",ue,!(o||i))}let{parent:r}=e;r&&!r.hasCheckedOptimisedAppear&&DF(r)}function oh({attachResizeListener:e,defaultParent:t,measureScroll:n,checkIsScrollRoot:r,resetTransform:o}){return class{constructor(s={},a=t?.()){this.id=T8++,this.animationId=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.updateScheduled=!1,this.scheduleUpdate=()=>this.update(),this.projectionUpdateScheduled=!1,this.checkUpdateFailed=()=>{this.isUpdating&&(this.isUpdating=!1,this.clearAllSnapshots())},this.updateProjection=()=>{this.projectionUpdateScheduled=!1,Rr.value&&(gl.nodes=gl.calculatedTargetDeltas=gl.calculatedProjections=0),this.nodes.forEach(g8),this.nodes.forEach(N8),this.nodes.forEach(y8),this.nodes.forEach(I8),Rr.addProjectionMetrics&&Rr.addProjectionMetrics(gl)},this.resolvedRelativeTargetAt=0,this.hasProjected=!1,this.isVisible=!0,this.animationProgress=0,this.sharedNodes=new Map,this.latestValues=s,this.root=a?a.root||a:this,this.path=a?[...a.path,a]:[],this.parent=a,this.depth=a?a.depth+1:0;for(let l=0;l<this.path.length;l++)this.path[l].shouldResetTransform=!0;this.root===this&&(this.nodes=new nh)}addEventListener(s,a){return this.eventHandlers.has(s)||this.eventHandlers.set(s,new Ws),this.eventHandlers.get(s).add(a)}notifyListeners(s,...a){let l=this.eventHandlers.get(s);l&&l.notify(...a)}hasListeners(s){return this.eventHandlers.has(s)}mount(s,a=this.root.hasTreeAnimated){if(this.instance)return;this.isSVG=th(s),this.instance=s;let{layoutId:l,layout:u,visualElement:c}=this.options;if(c&&!c.current&&c.mount(s),this.root.nodes.add(this),this.parent&&this.parent.children.add(this),a&&(u||l)&&(this.isLayoutDirty=!0),e){let d,f=()=>this.root.updateBlockedByResize=!1;e(s,()=>{this.root.updateBlockedByResize=!0,d&&d(),d=lF(f,250),$c.hasAnimatedSinceResize&&($c.hasAnimatedSinceResize=!1,this.nodes.forEach(NF))})}l&&this.root.registerSharedNode(l,this),this.options.animate!==!1&&c&&(l||u)&&this.addEventListener("didUpdate",({delta:d,hasLayoutChanged:f,hasRelativeLayoutChanged:p,layout:_})=>{if(this.isTreeAnimationBlocked()){this.target=void 0,this.relativeTarget=void 0;return}let T=this.options.transition||c.getDefaultTransition()||D8,{onLayoutAnimationStart:h,onLayoutAnimationComplete:m}=c.getProps(),E=!this.targetLayout||!AA(this.targetLayout,_),O=!f&&p;if(this.options.layoutRoot||this.resumeFrom||O||f&&(E||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0),this.setAnimationOrigin(d,O);let g={...Pc(T,"layout"),onPlay:h,onComplete:m};(c.shouldReduceMotion||this.options.layoutRoot)&&(g.delay=0,g.type=!1),this.startAnimation(g)}else f||NF(this),this.isLead()&&this.options.onExitComplete&&this.options.onExitComplete();this.targetLayout=_})}unmount(){this.options.layoutId&&this.willUpdate(),this.root.nodes.remove(this);let s=this.getStack();s&&s.remove(this),this.parent&&this.parent.children.delete(this),this.instance=void 0,Zn(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(b8),this.animationId++)}getTransformTemplate(){let{visualElement:s}=this.options;return s&&s.getProps().transformTemplate}willUpdate(s=!0){if(this.root.hasTreeAnimated=!0,this.root.isUpdateBlocked()){this.options.onExitComplete&&this.options.onExitComplete();return}if(window.MotionCancelOptimisedAnimation&&!this.hasCheckedOptimisedAppear&&DF(this),!this.root.isUpdating&&this.root.startUpdate(),this.isLayoutDirty)return;this.isLayoutDirty=!0;for(let c=0;c<this.path.length;c++){let d=this.path[c];d.shouldResetTransform=!0,d.updateScroll("snapshot"),d.options.layoutRoot&&d.willUpdate(!1)}let{layoutId:a,layout:l}=this.options;if(a===void 0&&!l)return;let u=this.getTransformTemplate();this.prevTransformTemplateValue=u?u(this.latestValues,""):void 0,this.updateSnapshot(),s&&this.notifyListeners("willUpdate")}update(){if(this.updateScheduled=!1,this.isUpdateBlocked()){this.unblockUpdate(),this.clearAllSnapshots(),this.nodes.forEach(AF);return}this.isUpdating||this.nodes.forEach(R8),this.isUpdating=!1,this.nodes.forEach(A8),this.nodes.forEach(h8),this.nodes.forEach(O8),this.clearAllSnapshots();let a=Nn.now();St.delta=dn(0,1e3/60,a-St.timestamp),St.timestamp=a,St.isProcessing=!0,Zf.update.process(St),Zf.preRender.process(St),Zf.render.process(St),St.isProcessing=!1}didUpdate(){this.updateScheduled||(this.updateScheduled=!0,_c.read(this.scheduleUpdate))}clearAllSnapshots(){this.nodes.forEach(S8),this.sharedNodes.forEach(L8)}scheduleUpdateProjection(){this.projectionUpdateScheduled||(this.projectionUpdateScheduled=!0,ue.preRender(this.updateProjection,!1,!0))}scheduleCheckAfterUnmount(){ue.postRender(()=>{this.isLayoutDirty?this.root.didUpdate():this.root.checkUpdateFailed()})}updateSnapshot(){this.snapshot||!this.instance||(this.snapshot=this.measure(),this.snapshot&&!kt(this.snapshot.measuredBox.x)&&!kt(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 l=0;l<this.path.length;l++)this.path[l].updateScroll();let s=this.layout;this.layout=this.measure(!1),this.layoutCorrected=Xe(),this.isLayoutDirty=!1,this.projectionDelta=void 0,this.notifyListeners("measure",this.layout.layoutBox);let{visualElement:a}=this.options;a&&a.notify("LayoutMeasure",this.layout.layoutBox,s?s.layoutBox:void 0)}updateScroll(s="measure"){let a=Boolean(this.options.layoutScroll&&this.instance);if(this.scroll&&this.scroll.animationId===this.root.animationId&&this.scroll.phase===s&&(a=!1),a){let l=r(this.instance);this.scroll={animationId:this.root.animationId,phase:s,isRoot:l,offset:n(this.instance),wasRoot:this.scroll?this.scroll.isRoot:l}}}resetTransform(){if(!o)return;let s=this.isLayoutDirty||this.shouldResetTransform||this.options.alwaysMeasureLayout,a=this.projectionDelta&&!RA(this.projectionDelta),l=this.getTransformTemplate(),u=l?l(this.latestValues,""):void 0,c=u!==this.prevTransformTemplateValue;s&&(a||Ui(this.latestValues)||c)&&(o(this.instance,u),this.shouldResetTransform=!1,this.scheduleRender())}measure(s=!0){let a=this.measurePageBox(),l=this.removeElementScroll(a);return s&&(l=this.removeTransform(l)),v8(l),{animationId:this.root.animationId,measuredBox:a,layoutBox:l,latestValues:{},source:this.id}}measurePageBox(){var s;let{visualElement:a}=this.options;if(!a)return Xe();let l=a.measureViewportBox();if(!(((s=this.scroll)===null||s===void 0?void 0:s.wasRoot)||this.path.some(x8))){let{scroll:c}=this.root;c&&(Zs(l.x,c.offset.x),Zs(l.y,c.offset.y))}return l}removeElementScroll(s){var a;let l=Xe();if(Nr(l,s),!((a=this.scroll)===null||a===void 0)&&a.wasRoot)return l;for(let u=0;u<this.path.length;u++){let c=this.path[u],{scroll:d,options:f}=c;c!==this.root&&d&&f.layoutScroll&&(d.wasRoot&&Nr(l,s),Zs(l.x,d.offset.x),Zs(l.y,d.offset.y))}return l}applyTransform(s,a=!1){let l=Xe();Nr(l,s);for(let u=0;u<this.path.length;u++){let c=this.path[u];!a&&c.options.layoutScroll&&c.scroll&&c!==c.root&&hl(l,{x:-c.scroll.offset.x,y:-c.scroll.offset.y}),Ui(c.latestValues)&&hl(l,c.latestValues)}return Ui(this.latestValues)&&hl(l,this.latestValues),l}removeTransform(s){let a=Xe();Nr(a,s);for(let l=0;l<this.path.length;l++){let u=this.path[l];if(!u.instance||!Ui(u.latestValues))continue;XT(u.latestValues)&&u.updateSnapshot();let c=Xe(),d=u.measurePageBox();Nr(c,d),SA(a,u.latestValues,u.snapshot?u.snapshot.layoutBox:void 0,c)}return Ui(this.latestValues)&&SA(a,this.latestValues),a}setTargetDelta(s){this.targetDelta=s,this.root.scheduleUpdateProjection(),this.isProjectionDirty=!0}setOptions(s){this.options={...this.options,...s,crossfade:s.crossfade!==void 0?s.crossfade:!0}}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!==St.timestamp&&this.relativeParent.resolveTargetDelta(!0)}resolveTargetDelta(s=!1){var a;let l=this.getLead();this.isProjectionDirty||(this.isProjectionDirty=l.isProjectionDirty),this.isTransformDirty||(this.isTransformDirty=l.isTransformDirty),this.isSharedProjectionDirty||(this.isSharedProjectionDirty=l.isSharedProjectionDirty);let u=Boolean(this.resumingFrom)||this!==l;if(!(s||u&&this.isSharedProjectionDirty||this.isProjectionDirty||!((a=this.parent)===null||a===void 0)&&a.isProjectionDirty||this.attemptToResolveRelativeTarget||this.root.updateBlockedByResize))return;let{layout:d,layoutId:f}=this.options;if(!(!this.layout||!(d||f))){if(this.resolvedRelativeTargetAt=St.timestamp,!this.targetDelta&&!this.relativeTarget){let p=this.getClosestProjectingParent();p&&p.layout&&this.animationProgress!==1?(this.relativeParent=p,this.forceRelativeParentToResolveTarget(),this.relativeTarget=Xe(),this.relativeTargetOrigin=Xe(),Xc(this.relativeTargetOrigin,this.layout.layoutBox,p.layout.layoutBox),Nr(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}if(!(!this.relativeTarget&&!this.targetDelta)){if(this.target||(this.target=Xe(),this.targetWithTransforms=Xe()),this.relativeTarget&&this.relativeTargetOrigin&&this.relativeParent&&this.relativeParent.target?(this.forceRelativeParentToResolveTarget(),vk(this.target,this.relativeTarget,this.relativeParent.target)):this.targetDelta?(Boolean(this.resumingFrom)?this.target=this.applyTransform(this.layout.layoutBox):Nr(this.target,this.layout.layoutBox),_A(this.target,this.targetDelta)):Nr(this.target,this.layout.layoutBox),this.attemptToResolveRelativeTarget){this.attemptToResolveRelativeTarget=!1;let p=this.getClosestProjectingParent();p&&Boolean(p.resumingFrom)===Boolean(this.resumingFrom)&&!p.options.layoutScroll&&p.target&&this.animationProgress!==1?(this.relativeParent=p,this.forceRelativeParentToResolveTarget(),this.relativeTarget=Xe(),this.relativeTargetOrigin=Xe(),Xc(this.relativeTargetOrigin,this.target,p.target),Nr(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}Rr.value&&gl.calculatedTargetDeltas++}}}getClosestProjectingParent(){if(!(!this.parent||XT(this.parent.latestValues)||mA(this.parent.latestValues)))return this.parent.isProjecting()?this.parent:this.parent.getClosestProjectingParent()}isProjecting(){return Boolean((this.relativeTarget||this.targetDelta||this.options.layoutRoot)&&this.layout)}calcProjection(){var s;let a=this.getLead(),l=Boolean(this.resumingFrom)||this!==a,u=!0;if((this.isProjectionDirty||!((s=this.parent)===null||s===void 0)&&s.isProjectionDirty)&&(u=!1),l&&(this.isSharedProjectionDirty||this.isTransformDirty)&&(u=!1),this.resolvedRelativeTargetAt===St.timestamp&&(u=!1),u)return;let{layout:c,layoutId:d}=this.options;if(this.isTreeAnimating=Boolean(this.parent&&this.parent.isTreeAnimating||this.currentAnimation||this.pendingAnimation),this.isTreeAnimating||(this.targetDelta=this.relativeTarget=void 0),!this.layout||!(c||d))return;Nr(this.layoutCorrected,this.layout.layoutBox);let f=this.treeScale.x,p=this.treeScale.y;Uk(this.layoutCorrected,this.treeScale,this.path,l),a.layout&&!a.target&&(this.treeScale.x!==1||this.treeScale.y!==1)&&(a.target=a.layout.layoutBox,a.targetWithTransforms=Xe());let{target:_}=a;if(!_){this.prevProjectionDelta&&(this.createProjectionDeltas(),this.scheduleRender());return}!this.projectionDelta||!this.prevProjectionDelta?this.createProjectionDeltas():(IA(this.prevProjectionDelta.x,this.projectionDelta.x),IA(this.prevProjectionDelta.y,this.projectionDelta.y)),zc(this.projectionDelta,this.layoutCorrected,_,this.latestValues),(this.treeScale.x!==f||this.treeScale.y!==p||!yA(this.projectionDelta.x,this.prevProjectionDelta.x)||!yA(this.projectionDelta.y,this.prevProjectionDelta.y))&&(this.hasProjected=!0,this.scheduleRender(),this.notifyListeners("projectionUpdate",_)),Rr.value&&gl.calculatedProjections++}hide(){this.isVisible=!1}show(){this.isVisible=!0}scheduleRender(s=!0){var a;if((a=this.options.visualElement)===null||a===void 0||a.scheduleRender(),s){let l=this.getStack();l&&l.scheduleRender()}this.resumingFrom&&!this.resumingFrom.instance&&(this.resumingFrom=void 0)}createProjectionDeltas(){this.prevProjectionDelta=Tl(),this.projectionDelta=Tl(),this.projectionDeltaWithTransform=Tl()}setAnimationOrigin(s,a=!1){let l=this.snapshot,u=l?l.latestValues:{},c={...this.latestValues},d=Tl();(!this.relativeParent||!this.relativeParent.options.layoutRoot)&&(this.relativeTarget=this.relativeTargetOrigin=void 0),this.attemptToResolveRelativeTarget=!a;let f=Xe(),p=l?l.source:void 0,_=this.layout?this.layout.source:void 0,T=p!==_,h=this.getStack(),m=!h||h.members.length<=1,E=Boolean(T&&!m&&this.options.crossfade===!0&&!this.path.some(P8));this.animationProgress=0;let O;this.mixTargetDelta=g=>{let I=g/1e3;yF(d.x,s.x,I),yF(d.y,s.y,I),this.setTargetDelta(d),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout&&(Xc(f,this.layout.layoutBox,this.relativeParent.layout.layoutBox),C8(this.relativeTarget,this.relativeTargetOrigin,f,I),O&&IF(this.relativeTarget,O)&&(this.isProjectionDirty=!1),O||(O=Xe()),Nr(O,this.relativeTarget)),T&&(this.animationValues=c,pF(c,u,this.latestValues,I,E,m)),this.root.scheduleUpdateProjection(),this.scheduleRender(),this.animationProgress=I},this.mixTargetDelta(this.options.layoutRoot?1e3:0)}startAnimation(s){this.notifyListeners("animationStart"),this.currentAnimation&&this.currentAnimation.stop(),this.resumingFrom&&this.resumingFrom.currentAnimation&&this.resumingFrom.currentAnimation.stop(),this.pendingAnimation&&(Zn(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=ue.update(()=>{$c.hasAnimatedSinceResize=!0,Jo.layout++,this.currentAnimation=eh(0,RF,{...s,onUpdate:a=>{this.mixTargetDelta(a),s.onUpdate&&s.onUpdate(a)},onStop:()=>{Jo.layout--},onComplete:()=>{Jo.layout--,s.onComplete&&s.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 s=this.getStack();s&&s.exitAnimationComplete(),this.resumingFrom=this.currentAnimation=this.animationValues=void 0,this.notifyListeners("animationComplete")}finishAnimation(){this.currentAnimation&&(this.mixTargetDelta&&this.mixTargetDelta(RF),this.currentAnimation.stop()),this.completeAnimation()}applyTransformsToTarget(){let s=this.getLead(),{targetWithTransforms:a,target:l,layout:u,latestValues:c}=s;if(!(!a||!l||!u)){if(this!==s&&this.layout&&u&&vF(this.options.animationType,this.layout.layoutBox,u.layoutBox)){l=this.target||Xe();let d=kt(this.layout.layoutBox.x);l.x.min=s.target.x.min,l.x.max=l.x.min+d;let f=kt(this.layout.layoutBox.y);l.y.min=s.target.y.min,l.y.max=l.y.min+f}Nr(a,l),hl(a,c),zc(this.projectionDeltaWithTransform,this.layoutCorrected,a,c)}}registerSharedNode(s,a){this.sharedNodes.has(s)||this.sharedNodes.set(s,new rh),this.sharedNodes.get(s).add(a);let u=a.options.initialPromotionConfig;a.promote({transition:u?u.transition:void 0,preserveFollowOpacity:u&&u.shouldPreserveFollowOpacity?u.shouldPreserveFollowOpacity(a):void 0})}isLead(){let s=this.getStack();return s?s.lead===this:!0}getLead(){var s;let{layoutId:a}=this.options;return a?((s=this.getStack())===null||s===void 0?void 0:s.lead)||this:this}getPrevLead(){var s;let{layoutId:a}=this.options;return a?(s=this.getStack())===null||s===void 0?void 0:s.prevLead:void 0}getStack(){let{layoutId:s}=this.options;if(s)return this.root.sharedNodes.get(s)}promote({needsReset:s,transition:a,preserveFollowOpacity:l}={}){let u=this.getStack();u&&u.promote(this,l),s&&(this.projectionDelta=void 0,this.needsReset=!0),a&&this.setOptions({transition:a})}relegate(){let s=this.getStack();return s?s.relegate(this):!1}resetSkewAndRotation(){let{visualElement:s}=this.options;if(!s)return;let a=!1,{latestValues:l}=s;if((l.z||l.rotate||l.rotateX||l.rotateY||l.rotateZ||l.skewX||l.skewY)&&(a=!0),!a)return;let u={};l.z&&LA("z",s,u,this.animationValues);for(let c=0;c<bA.length;c++)LA(`rotate${bA[c]}`,s,u,this.animationValues),LA(`skew${bA[c]}`,s,u,this.animationValues);s.render();for(let c in u)s.setStaticValue(c,u[c]),this.animationValues&&(this.animationValues[c]=u[c]);s.scheduleRender()}getProjectionStyles(s){var a,l;if(!this.instance||this.isSVG)return;if(!this.isVisible)return _8;let u={visibility:""},c=this.getTransformTemplate();if(this.needsReset)return this.needsReset=!1,u.opacity="",u.pointerEvents=Lc(s?.pointerEvents)||"",u.transform=c?c(this.latestValues,""):"none",u;let d=this.getLead();if(!this.projectionDelta||!this.layout||!d.target){let T={};return this.options.layoutId&&(T.opacity=this.latestValues.opacity!==void 0?this.latestValues.opacity:1,T.pointerEvents=Lc(s?.pointerEvents)||""),this.hasProjected&&!Ui(this.latestValues)&&(T.transform=c?c({},""):"none",this.hasProjected=!1),T}let f=d.animationValues||d.latestValues;this.applyTransformsToTarget(),u.transform=SF(this.projectionDeltaWithTransform,this.treeScale,f),c&&(u.transform=c(f,u.transform));let{x:p,y:_}=this.projectionDelta;u.transformOrigin=`${p.origin*100}% ${_.origin*100}% 0`,d.animationValues?u.opacity=d===this?(l=(a=f.opacity)!==null&&a!==void 0?a:this.latestValues.opacity)!==null&&l!==void 0?l:1:this.preserveOpacity?this.latestValues.opacity:f.opacityExit:u.opacity=d===this?f.opacity!==void 0?f.opacity:"":f.opacityExit!==void 0?f.opacityExit:0;for(let T in dl){if(f[T]===void 0)continue;let{correct:h,applyTo:m,isCSSVariable:E}=dl[T],O=u.transform==="none"?f[T]:h(f[T],d);if(m){let g=m.length;for(let I=0;I<g;I++)u[m[I]]=O}else E?this.options.visualElement.renderState.vars[T]=O:u[T]=O}return this.options.layoutId&&(u.pointerEvents=d===this?Lc(s?.pointerEvents)||"":"none"),u}clearSnapshot(){this.resumeFrom=this.snapshot=void 0}resetTree(){this.root.nodes.forEach(s=>{var a;return(a=s.currentAnimation)===null||a===void 0?void 0:a.stop()}),this.root.nodes.forEach(AF),this.root.sharedNodes.clear()}}}function h8(e){e.updateLayout()}function O8(e){var t;let n=((t=e.resumeFrom)===null||t===void 0?void 0:t.snapshot)||e.snapshot;if(e.isLead()&&e.layout&&n&&e.hasListeners("didUpdate")){let{layoutBox:r,measuredBox:o}=e.layout,{animationType:i}=e.options,s=n.source!==e.layout.source;i==="size"?Qn(d=>{let f=s?n.measuredBox[d]:n.layoutBox[d],p=kt(f);f.min=r[d].min,f.max=f.min+p}):vF(i,n.layoutBox,r)&&Qn(d=>{let f=s?n.measuredBox[d]:n.layoutBox[d],p=kt(r[d]);f.max=f.min+p,e.relativeTarget&&!e.currentAnimation&&(e.isProjectionDirty=!0,e.relativeTarget[d].max=e.relativeTarget[d].min+p)});let a=Tl();zc(a,r,n.layoutBox);let l=Tl();s?zc(l,e.applyTransform(o,!0),n.measuredBox):zc(l,r,n.layoutBox);let u=!RA(a),c=!1;if(!e.resumeFrom){let d=e.getClosestProjectingParent();if(d&&!d.resumeFrom){let{snapshot:f,layout:p}=d;if(f&&p){let _=Xe();Xc(_,n.layoutBox,f.layoutBox);let T=Xe();Xc(T,r,p.layoutBox),AA(_,T)||(c=!0),d.options.layoutRoot&&(e.relativeTarget=T,e.relativeTargetOrigin=_,e.relativeParent=d)}}}e.notifyListeners("didUpdate",{layout:r,snapshot:n,delta:l,layoutDelta:a,hasLayoutChanged:u,hasRelativeLayoutChanged:c})}else if(e.isLead()){let{onExitComplete:r}=e.options;r&&r()}e.options.transition=void 0}function g8(e){Rr.value&&gl.nodes++,e.parent&&(e.isProjecting()||(e.isProjectionDirty=e.parent.isProjectionDirty),e.isSharedProjectionDirty||(e.isSharedProjectionDirty=Boolean(e.isProjectionDirty||e.parent.isProjectionDirty||e.parent.isSharedProjectionDirty)),e.isTransformDirty||(e.isTransformDirty=e.parent.isTransformDirty))}function I8(e){e.isProjectionDirty=e.isSharedProjectionDirty=e.isTransformDirty=!1}function S8(e){e.clearSnapshot()}function AF(e){e.clearMeasurements()}function R8(e){e.isLayoutDirty=!1}function A8(e){let{visualElement:t}=e.options;t&&t.getProps().onBeforeLayoutMeasure&&t.notify("BeforeLayoutMeasure"),e.resetTransform()}function NF(e){e.finishAnimation(),e.targetDelta=e.relativeTarget=e.target=void 0,e.isProjectionDirty=!0}function N8(e){e.resolveTargetDelta()}function y8(e){e.calcProjection()}
8219function b8(e){e.resetSkewAndRotation()}function L8(e){e.removeLeadSnapshot()}function yF(e,t,n){e.translate=Re(t.translate,0,n),e.scale=Re(t.scale,1,n),e.origin=t.origin,e.originPoint=t.originPoint}function bF(e,t,n,r){e.min=Re(t.min,n.min,r),e.max=Re(t.max,n.max,r)}function C8(e,t,n,r){bF(e.x,t.x,n.x,r),bF(e.y,t.y,n.y,r)}function P8(e){return e.animationValues&&e.animationValues.opacityExit!==void 0}var D8={duration:.45,ease:[.4,0,.1,1]},LF=e=>typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().includes(e),CF=LF("applewebkit/")&&!LF("chrome/")?Math.round:dt;function PF(e){e.min=CF(e.min),e.max=CF(e.max)}function v8(e){PF(e.x),PF(e.y)}function vF(e,t,n){return e==="position"||e==="preserve-aspect"&&!Dk(NA(t),NA(n),.2)}function x8(e){var t;return e!==e.root&&((t=e.scroll)===null||t===void 0?void 0:t.wasRoot)}var xF=oh({attachResizeListener:(e,t)=>Fi(e,"resize",t),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body.scrollLeft,y:document.documentElement.scrollTop||document.body.scrollTop}),checkIsScrollRoot:()=>!0});var CA={current:void 0},ih=oh({measureScroll:e=>({x:e.scrollLeft,y:e.scrollTop}),defaultParent:()=>{if(!CA.current){let e=new xF({});e.mount(window),e.setOptions({layoutScroll:!0}),CA.current=e}return CA.current},resetTransform:(e,t)=>{e.style.transform=t!==void 0?t:"none"},checkIsScrollRoot:e=>Boolean(window.getComputedStyle(e).position==="fixed")});var MF={pan:{Feature:qT},drag:{Feature:JT,ProjectionNode:ih,MeasureLayout:QT}};function sh(e,t,n){var r;if(e instanceof EventTarget)return[e];if(typeof e=="string"){let o=document;t&&(o=t.current);let i=(r=n?.[e])!==null&&r!==void 0?r:o.querySelectorAll(e);return i?Array.from(i):[]}return Array.from(e)}function ah(e,t){let n=sh(e),r=new AbortController,o={passive:!0,...t,signal:r.signal};return[n,o,()=>r.abort()]}function GF(e){return!(e.pointerType==="touch"||KT())}function kF(e,t,n={}
8219){let[r,o,i]=ah(e,n),s=a=>{if(!GF(a))return;let{target:l}=a,u=t(l,a);if(typeof u!="function"||!l)return;let c=d=>{GF(d)&&(u(d),l.removeEventListener("pointerleave",c))};l.addEventListener("pointerleave",c,o)};return r.forEach(a=>{a.addEventListener("pointerenter",s,o)}),i}function FF(e,t,n){let{props:r}=e;e.animationState&&r.whileHover&&e.animationState.setActive("whileHover",n==="Start");let o="onHover"+n,i=r[o];i&&ue.postRender(()=>i(t,wi(t)))}var lh=class extends Jt{mount(){let{current:t}=this.node;t&&(this.unmount=kF(t,(n,r)=>(FF(this.node,r,"Start"),o=>FF(this.node,o,"End"))))}unmount(){}};var uh=class extends Jt{constructor(){super(...arguments),this.isActive=!1}onFocus(){let t=!1;try{t=this.node.current.matches(":focus-visible")}catch{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=qo(Fi(this.node.current,"focus",()=>this.onFocus()),Fi(this.node.current,"blur",()=>this.onBlur()))}unmount(){}};var PA=(e,t)=>t?e===t?!0:PA(e,t.parentElement):!1;var M8=new Set(["BUTTON","INPUT","SELECT","TEXTAREA","A"]);function wF(e){return M8.has(e.tagName)||e.tabIndex!==-1}var Il=new WeakSet;function BF(e){return t=>{t.key==="Enter"&&e(t)}}function DA(e,t){e.dispatchEvent(new PointerEvent("pointer"+t,{isPrimary:!0,bubbles:!0}))}var UF=(e,t)=>{let n=e.currentTarget;if(!n)return;let r=BF(()=>{if(Il.has(n))return;DA(n,"down");let o=BF(()=>{DA(n,"up")}),i=()=>DA(n,"cancel");n.addEventListener("keyup",o,t),n.addEventListener("blur",i,t)});n.addEventListener("keydown",r,t),n.addEventListener("blur",()=>n.removeEventListener("keydown",r),t)};function VF(e){return Kc(e)&&!KT()}function HF(e,t,n={}
8219){let[r,o,i]=ah(e,n),s=a=>{let l=a.currentTarget;if(!l||!VF(a)||Il.has(l))return;Il.add(l),Ol(a,"set");let u=t(l,a),c=(p,_)=>{l.removeEventListener("pointerup",d),l.removeEventListener("pointercancel",f),Ol(p,"release"),!(!VF(p)||!Il.has(l))&&(Il.delete(l),typeof u=="function"&&u(p,{success:_}))},d=p=>{(p.isTrusted?G8(p,l instanceof Element?l.getBoundingClientRect():{left:0,top:0,right:window.innerWidth,bottom:window.innerHeight}):!1)?c(p,!1):c(p,!(l instanceof Element)||PA(l,p.target))},f=p=>{c(p,!1)};l.addEventListener("pointerup",d,o),l.addEventListener("pointercancel",f,o),l.addEventListener("lostpointercapture",f,o)};return r.forEach(a=>{a=n.useGlobalTarget?window:a;let l=!1;a instanceof HTMLElement&&(l=!0,!wF(a)&&a.getAttribute("tabindex")===null&&(a.tabIndex=0)),a.addEventListener("pointerdown",s,o),l&&a.addEventListener("focus",u=>UF(u,o),o)}),i}function G8(e,t){return e.clientX<t.left||e.clientX>t.right||e.clientY<t.top||e.clientY>t.bottom}function WF(e,t,n){let{props:r}=e;if(e.current instanceof HTMLButtonElement&&e.current.disabled)return;e.animationState&&r.whileTap&&e.animationState.setActive("whileTap",n==="Start");let o="onTap"+(n==="End"?"":n),i=r[o];i&&ue.postRender(()=>i(t,wi(t)))}var ch=class extends Jt{mount(){let{current:t}=this.node;t&&(this.unmount=HF(t,(n,r)=>(WF(this.node,r,"Start"),(o,{success:i})=>WF(this.node,o,i?"End":"Cancel")),{useGlobalTarget:this.node.props.globalTapTarget}))}unmount(){}};var xA=new WeakMap,vA=new WeakMap,k8=e=>{let t=xA.get(e.target);t&&t(e)},F8=e=>{e.forEach(k8)};function w8({root:e,...t}){let n=e||document;vA.has(n)||vA.set(n,{});let r=vA.get(n),o=JSON.stringify(t);return r[o]||(r[o]=new IntersectionObserver(F8,{root:e,...t})),r[o]}function YF(e,t,n){let r=w8(t);return xA.set(e,n),r.observe(e),()=>{xA.delete(e),r.unobserve(e)}}var B8={some:0,all:1},dh=class extends Jt{constructor(){super(...arguments),this.hasEnteredView=!1,this.isInView=!1}startObserver(){this.unmount();let{viewport:t={}}=this.node.getProps(),{root:n,margin:r,amount:o="some",once:i}=t,s={root:n?n.current:void 0,rootMargin:r,threshold:typeof o=="number"?o:B8[o]},a=l=>{let{isIntersecting:u}=l;if(this.isInView===u||(this.isInView=u,i&&!u&&this.hasEnteredView))return;u&&(this.hasEnteredView=!0),this.node.animationState&&this.node.animationState.setActive("whileInView",u);let{onViewportEnter:c,onViewportLeave:d}=this.node.getProps(),f=u?c:d;f&&f(l)};return YF(this.node.current,s,a)}mount(){this.startObserver()}update(){if(typeof IntersectionObserver>"u")return;let{props:t,prevProps:n}=this.node;["amount","margin","root"].some(U8(t,n))&&this.startObserver()}unmount(){}};function U8({viewport:e={}},{viewport:t={}}={}){return n=>e[n]!==t[n]}var KF={inView:{Feature:dh},tap:{Feature:ch},focus:{Feature:uh},hover:{Feature:lh}};var zF={layout:{ProjectionNode:ih,MeasureLayout:QT}};var JF=v(W(),1);var fp={current:null},fh={current:!1};function XF(){if(fh.current=!0,!!mc)if(window.matchMedia){let e=window.matchMedia("(prefers-reduced-motion)"),t=()=>fp.current=e.matches;e.addListener(t),t()}else fp.current=!1}var V8=[...tA,Lt,Fn],jF=e=>V8.find(PT(e));var Js=new WeakMap;function $F(e,t,n){for(let r in t){let o=t[r],i=n[r];if(we(o))e.addValue(r,o);else if(we(i))e.addValue(r,ki(o,{owner:e}));else if(i!==o)if(e.hasValue(r)){let s=e.getValue(r);s.liveStyle===!0?s.jump(o):s.hasAnimated||s.set(o)}else{let s=e.getStaticValue(r);e.addValue(r,ki(s!==void 0?s:o,{owner:e}))}}for(let r in n)t[r]===void 0&&e.removeValue(r);return t}var ZF=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"],Jc=class{scrapeMotionValuesFromProps(t,n,r){return{}}constructor({parent:t,props:n,presenceContext:r,reducedMotionConfig:o,blockInitialAnimation:i,visualState:s},a={}){this.current=null,this.children=new Set,this.isVariantNode=!1,this.isControllingVariants=!1,this.shouldReduceMotion=null,this.values=new Map,this.KeyframeResolver=js,this.features={},this.valueSubscriptions=new Map,this.prevMotionValues={},this.events={},this.propEventSubscriptions={},this.notifyUpdate=()=>this.notify("Update",this.latestValues),this.render=()=>{this.current&&(this.triggerBuild(),this.renderInstance(this.current,this.renderState,this.props.style,this.projection))},this.renderScheduledAt=0,this.scheduleRender=()=>{let p=Nn.now();this.renderScheduledAt<p&&(this.renderScheduledAt=p,ue.render(this.render,!1,!0))};let{latestValues:l,renderState:u,onUpdate:c}=s;this.onUpdate=c,this.latestValues=l,this.baseTarget={...l},this.initialValues=n.initial?{...l}:{},this.renderState=u,this.parent=t,this.props=n,this.presenceContext=r,this.depth=t?t.depth+1:0,this.reducedMotionConfig=o,this.options=a,this.blockInitialAnimation=Boolean(i),this.isControllingVariants=cl(n),this.isVariantNode=q_(n),this.isVariantNode&&(this.variantChildren=new Set),this.manuallyAnimateOnMount=Boolean(t&&t.current);let{willChange:d,...f}=this.scrapeMotionValuesFromProps(n,{},this);for(let p in f){let _=f[p];l[p]!==void 0&&we(_)&&_.set(l[p],!1)}}mount(t){this.current=t,Js.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.forEac
vendor: 5,229 bytes, line 8219
8219h((n,r)=>this.bindToMotionValue(r,n)),fh.current||XF(),this.shouldReduceMotion=this.reducedMotionConfig==="never"?!1:this.reducedMotionConfig==="always"?!0:fp.current,this.parent&&this.parent.children.add(this),this.update(this.props,this.presenceContext)}unmount(){this.projection&&this.projection.unmount(),Zn(this.notifyUpdate),Zn(this.render),this.valueSubscriptions.forEach(t=>t()),this.valueSubscriptions.clear(),this.removeFromVariantTree&&this.removeFromVariantTree(),this.parent&&this.parent.children.delete(this);for(let t in this.events)this.events[t].clear();for(let t in this.features){let n=this.features[t];n&&(n.unmount(),n.isMounted=!1)}this.current=null}bindToMotionValue(t,n){this.valueSubscriptions.has(t)&&this.valueSubscriptions.get(t)();let r=qn.has(t);r&&this.onBindTransform&&this.onBindTransform();let o=n.on("change",a=>{this.latestValues[t]=a,this.props.onUpdate&&ue.preRender(this.notifyUpdate),r&&this.projection&&(this.projection.isTransformDirty=!0)}),i=n.on("renderRequest",this.scheduleRender),s;window.MotionCheckAppearSync&&(s=window.MotionCheckAppearSync(this,t,n)),this.valueSubscriptions.set(t,()=>{o(),i(),s&&s(),n.owner&&n.stop()})}sortNodePosition(t){return!this.current||!this.sortInstanceNodePosition||this.type!==t.type?0:this.sortInstanceNodePosition(this.current,t.current)}updateFeatures(){let t="animation";for(t in Di){let n=Di[t];if(!n)continue;let{isEnabled:r,Feature:o}=n;if(!this.features[t]&&o&&r(this.props)&&(this.features[t]=new o(this)),this.features[t]){let i=this.features[t];i.isMounted?i.update():(i.mount(),i.isMounted=!0)}}}triggerBuild(){this.build(this.renderState,this.latestValues,this.props)}measureViewportBox(){return this.current?this.measureInstanceViewportBox(this.current,this.props):Xe()}getStaticValue(t){return this.latestValues[t]}setStaticValue(t,n){this.latestValues[t]=n}update(t,n){(t.transformTemplate||this.props.transformTemplate)&&this.scheduleRender(),this.prevProps=this.props,this.props=t,this.prevPresenceContext=this.presenceContext,this.presenceContext=n;for(let r=0;r<ZF.length;r++){let o=ZF[r];this.propEventSubscriptions[o]&&(this.propEventSubscriptions[o](),delete this.propEventSubscriptions[o]);let i="on"+o,s=t[i];s&&(this.propEventSubscriptions[o]=this.on(o,s))}this.prevMotionValues=$F(this,this.scrapeMotionValuesFromProps(t,this.prevProps,this),this.prevMotionValues),this.handleChildMotionValue&&this.handleChildMotionValue(),this.onUpdate&&this.onUpdate(this)}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 n=this.getClosestVariantNode();if(n)return n.variantChildren&&n.variantChildren.add(t),()=>n.variantChildren.delete(t)}addValue(t,n){let r=this.values.get(t);n!==r&&(r&&this.removeValue(t),this.bindToMotionValue(t,n),this.values.set(t,n),this.latestValues[t]=n.get())}removeValue(t){this.values.delete(t);let n=this.valueSubscriptions.get(t);n&&(n(),this.valueSubscriptions.delete(t)),delete this.latestValues[t],this.removeValueFromRenderState(t,this.renderState)}hasValue(t){return this.values.has(t)}getValue(t,n){if(this.props.values&&this.props.values[t])return this.props.values[t];let r=this.values.get(t);return r===void 0&&n!==void 0&&(r=ki(n===null?void 0:n,{owner:this}),this.addValue(t,r)),r}readValue(t,n){var r;let o=this.latestValues[t]!==void 0||!this.current?this.latestValues[t]:(r=this.getBaseTargetFromProps(this.props,t))!==null&&r!==void 0?r:this.readValueFromInstance(this.current,t,this.options);return o!=null&&(typeof o=="string"&&(CT(o)||yT(o))?o=parseFloat(o):!jF(o)&&Fn.test(n)&&(o=LT(t,n)),this.setBaseTarget(t,we(o)?o.get():o)),we(o)?o.get():o}setBaseTarget(t,n){this.baseTarget[t]=n}getBaseTarget(t){var n;let{initial:r}=this.props,o;if(typeof r=="string"||typeof r=="object"){let s=bc(this.props,r,(n=this.presenceContext)===null||n===void 0?void 0:n.custom);s&&(o=s[t])}if(r&&o!==void 0)return o;let i=this.getBaseTargetFromProps(this.props,t);return i!==void 0&&!we(i)?i:this.initialValues[t]!==void 0&&o===void 0?void 0:this.baseTarget[t]}on(t,n){return this.events[t]||(this.events[t]=new Ws),this.events[t].add(n)}notify(t,...n){this.events[t]&&this.events[t].notify(...n)}};var qc=class extends Jc{constructor(){super(...arguments),this.KeyframeResolver=wc}sortInstanceNodePosition(t,n){return t.compareDocumentPosition(n)&2?1:-1}getBaseTargetFromProps(t,n){return t.style?t.style[n]:void 0}removeValueFromRenderState(t,{vars:n,style:r}){delete n[t],delete r[t]}handleChildMotionValue(){this.childSubscription&&(this.childSubscription(),delete this.childSubscription);let{children:t}=this.props;we(t)&&(this.childSubscription=t.on("change",n=>{this.current&&(this.current.textContent=`${n}`)}))}};function H8(e){return window.getComputedStyle(e)}var Qc=class extends qc{constructor(){super(...arguments),this.type="html",this.renderInstance=lT}readValueFromInstance(t,n){if(qn.has(n)){let r=Fc(n);return r&&r.default||0}else{let r=H8(t),o=(hc(n)?r.getPropertyValue(n):r[n])||0;
8219return typeof o=="string"?o.trim():o}}measureInstanceViewportBox(t,{transformPagePoint:n}){return TA(t,n)}build(t,n,r){Ic(t,n,r.transformTemplate)}scrapeMotionValuesFromProps(t,n,r){return Cc(t,n,r)}};var ed=class extends qc{constructor(){super(...arguments),this.type="svg",this.isSVGTag=!1,this.measureInstanceViewportBox=Xe,this.updateDimensions=()=>{this.current&&!this.renderState.dimensions&&aT(this.current,this.renderState)}}getBaseTargetFromProps(t,n){return t[n]}readValueFromInstance(t,n){if(qn.has(n)){let r=Fc(n);return r&&r.default||0}return n=uT.has(n)?n:Ec(n),t.getAttribute(n)}scrapeMotionValuesFromProps(t,n,r){return dT(t,n,r)}onBindTransform(){this.current&&!this.renderState.dimensions&&ue.postRender(this.updateDimensions)}build(t,n,r){Ac(t,n,this.isSVGTag,r.transformTemplate)}renderInstance(t,n,r,o){cT(t,n,r,o)}mount(t){this.isSVGTag=Nc(t.tagName),super.mount(t)}};var qF=(e,t)=>Rc(e)?new ed(t):new Qc(t,{allowProjection:e!==JF.Fragment});var QF=LG({...Ik,...KF,...MF,...zF},qF);var er=j1(QF);var W8=e=>e&&typeof e=="object"&&e.mix,Y8=e=>W8(e)?e.mix:void 0;function qs(...e){let t=!Array.isArray(e[0]),n=t?0:-1,r=e[0+n],o=e[1+n],i=e[2+n],s=e[3+n],a=wT(o,i,{mixer:Y8(i[0]),...s});return t?a(r):a}function ew(e,t=100,n){let r=n({...e,keyframes:[0,t]}),o=Math.min(Uc(r),2e4);return{type:"keyframes",ease:i=>r.next(o*i).value/t,duration:yn(o)}}var tw=(e,t,n)=>{let r=t-e;return((n-e)%r+r)%r+e};function ph(e,t){return FT(e)?e[tw(0,e.length,t)]:e}function pp(e){return typeof e=="object"&&!Array.isArray(e)}function mh(e,t,n,r){return typeof e=="string"&&pp(t)?sh(e,n,r):e instanceof NodeList?Array.from(e):Array.isArray(e)?e:[e]}function nw(e,t,n){return e*(t+1)}function MA(e,t,n,r){var o;return typeof t=="number"?t:t.startsWith("-")||t.startsWith("+")?Math.max(0,e+parseFloat(t)):t==="<"?n:(o=r.get(t))!==null&&o!==void 0?o:e}function K8(e,t,n){for(let r=0;r<e.length;r++){let o=e[r];o.at>t&&o.at<n&&(Hs(e,o),r--)}}function rw(e,t,n,r,o,i){K8(e,o,i);for(let s=0;s<t.length;s++)e.push({value:t[s],at:Re(o,i,r[s]),easing:ph(n,s)})}function ow(e,t){for(let n=0;n<e.length;n++)e[n]=e[n]/(t+1)}function iw(e,t){return e.at===t.at?e.value===null?1:t.value===null?-1:0:e.at-t.at}var z8="easeInOut",X8=20;function lw(e,{defaultTransition:t={},...n}={},r,o){let i=t.duration||.3,s=new Map,a=new Map,l={},u=new Map,c=0,d=0,f=0;for(let p=0;p<e.length;p++){let _=e[p];if(typeof _=="string"){u.set(_,d);continue}else if(!Array.isArray(_)){u.set(_.name,MA(d,_.at,c,u));continue}let[T,h,m={}]=_;m.at!==void 0&&(d=MA(d,m.at,c,u));let E=0,O=(g,I,S,A=0,R=0)=>{let y=j8(g),{delay:b=0,times:L=UT(y),type:D="keyframes",repeat:F,repeatType:U,repeatDelay:N=0,...K}=I,{ease:C=t.ease||"easeOut",duration:M}=I,P=typeof b=="function"?b(A,R):b,z=y.length,Ee=Ys(D)?D:o?.[D];if(z<=2&&Ee){let We=100;if(z===2&&J8(y)){let Oe=y[1]-y[0];We=Math.abs(Oe)}let De={...K};M!==void 0&&(De.duration=Zt(M));let ae=ew(De,We,Ee);C=ae.ease,M=ae.duration}M??(M=i);let pe=d+P;L.length===1&&L[0]===0&&(L[1]=1);let ye=L.length-y.length;if(ye>0&&BT(L,ye),y.length===1&&y.unshift(null),F){Sr(F<X8,"Repeat count too high, must be less than 20"),M=nw(M,F);let We=[...y],De=[...L];C=Array.isArray(C)?[...C]:[C];let ae=[...C];for(let Oe=0;Oe<F;Oe++){y.push(...We);for(let oe=0;oe<We.length;oe++)L.push(De[oe]+(Oe+1)),C.push(oe===0?"linear":ph(ae,oe-1))}ow(L,F)}let Le=pe+M;rw(S,y,C,L,pe,Le),E=Math.max(P+M,E),f=Math.max(Le,f)};if(we(T)){let g=sw(T,a);O(h,m,aw("default",g))}else{let g=mh(T,h,r,l),I=g.length;for(let S=0;S<I;S++){h=h,m=m;let A=g[S],R=sw(A,a);for(let y in h)O(h[y],$8(m,y),aw(y,R),S,I)}}c=d,d+=E}return a.forEach((p,_)=>{for(let T in p){let h=p[T];h.sort(iw);let m=[],E=[],O=[];for(let I=0;I<h.length;I++){let{at:S,value:A,easing:R}=h[I];m.push(A),E.push(Ar(0,f,S)),O.push(R||"easeOut")}E[0]!==0&&(E.unshift(0),m.unshift(m[0]),O.unshift(z8)),E[E.length-1]!==1&&(E.push(1),m.push(null)),s.has(_)||s.set(_,{keyframes:{},transition:{}});let g=s.get(_);g.keyframes[T]=m,g.transition[T]={...t,duration:f,ease:O,times:E,...n}}}),s}function sw(e,t){return!t.has(e)&&t.set(e,{}),t.get(e)}function aw(e,t){return t[e]||(t[e]=[]),t[e]}function j8(e){return Array.isArray(e)?e:[e]}function $8(e,t){return e&&e[t]?{...e,...e[t]}:{...e}}var Z8=e=>typeof e=="number",J8=e=>e.every(Z8);function q8(e,t){return e in t}var Eh=class extends Jc{constructor(){super(...arguments),this.type="object"}readValueFromInstance(t,n){if(q8(n,t)){let r=t[n];if(typeof r=="string"||typeof r=="number")return r}}getBaseTargetFromProps(){}removeValueFromRenderState(t,n){delete n.output[t]}measureInstanceViewportBox(){return Xe()}build(t,n){Object.assign(t.output,n)}renderInstance(t,{output:n}){Object.assign(t,n)}sortInstanceNodePosition(){return 0}};function uw(e){let t={presenceContext:null,props:{}
8219,visualState:{renderState:{transform:{},transformOrigin:{},style:{},vars:{},attrs:{}},latestValues:{}}},n=th(e)?new ed(t):new Qc(t);n.mount(e),Js.set(e,n)}function cw(e){let t={presenceContext:null,props:{},visualState:{renderState:{output:{}},latestValues:{}}},n=new Eh(t);n.mount(e),Js.set(e,n)}function Q8(e,t){return we(e)||typeof e=="number"||typeof e=="string"&&!pp(t)}function _h(e,t,n,r){let o=[];if(Q8(e,t))o.push(eh(e,pp(t)&&t.default||t,n&&(n.default||n)));else{let i=mh(e,t,r),s=i.length;Sr(Boolean(s),"No valid elements provided.");for(let a=0;a<s;a++){let l=i[a],u=l instanceof Element?uw:cw;Js.has(l)||u(l);let c=Js.get(l),d={...n};"delay"in d&&typeof d.delay=="function"&&(d.delay=d.delay(a,s)),o.push(...Yc(c,{...t,transition:d},{}))}}return o}function dw(e,t,n){let r=[];return lw(e,t,n,{spring:Hc}).forEach(({keyframes:i,transition:s},a)=>{r.push(..._h(a,i,s))}),r}function ej(e){return Array.isArray(e)&&e.some(Array.isArray)}function fw(e){function t(n,r,o){let i=[];ej(n)?i=dw(n,r,e):i=_h(n,r,o,e);let s=new xc(i);return e&&e.animations.push(s),s}return t}var tr=fw();function tj(e){return!("fills"in e)||!e.fills?[]:e.fills.filter(t=>t.type==="CUSTOM"&&t.visible!==!1&&t.opacity!==0&&!!t.customEffectId)}function nj(e,t){if(!t.hash)return;let n=go(t.assets,t.hash);if(n.type==="GENERATED_ASSET")return e.getAssetURL(n.url)}function pw(e,t){let n=tj(e);if(!t.renderOptions.shouldOutputCustomEffects||n.length===0)return[];let r=nj(t,e);return n.map(o=>Th({fill:o,mask:r}))}function Th({fill:e,styles:t,mask:n}){return ne({Tag:"ShaderFill",styleSet:[{position:"absolute",opacity:e.opacity<1?e.opacity:void 0,...t}],customFill:{id:e.customEffectId,params:e.componentPropAssignments??{defs:{},assignments:[]},mask:n}})}function hh(e,t,n,r,o){return{...e,initial:{...e.initial??{},[t]:n},animate:{...e.animate??{},[t]:r},transition:{...e.transition??{},[t]:o}}}function Oh(e,t){return e.renderOptions.disableClientOnlyComponents?t.fallback:e.sitesRenderers.renderClientOnly({children:t.children,fallback:Ne(t.fallback,e)})}function _w({node:e,parent:t,children:n,backgroundInfo:r,sharedBackgroundStyles:o,smartAnimateType:i,transitionData:s,context:a,fillColorKeyframeProps:l,websiteContext:u}){let c=on(s),f=i===ee.INSTANCE_SUBTREE&&r.length===0,p={position:"absolute",inset:0,pointerEvents:"none"};if(r.length===1||f){let h=f?o:{...r[0].backgroundStyles,...o},{motionTransitionProps:m,cssStyles:E}=Ku(i,f?0:1,h,void 0,s,f?void 0:c),O=Ai(i,s,h.transform),g=!f&&l?.colorAnimate?.background!==void 0,I=i!==ee.NONE||g,S={...m,...O},A=g?hh(S,"background",l.colorInitial.background,l.colorAnimate.background,l.colorTransition.background):S;return r[0]?.imageProps?mw({imageProps:r[0].imageProps,styles:{...r[0].backgroundStyles,...p,...E},node:e,parent:t,children:n,needsMotion:I,motionProps:A,context:a,websiteContext:u}):r[0]?.videoProps?ij({node:e,videoProps:r[0].videoProps,styles:{...r[0].backgroundStyles,...E},websiteContext:u}):r[0]?.customFill?Th({fill:r[0].customFill,styles:E}):ne({Tag:I?er.div:"div",nodeId:e.id,idSuffix:"background",styleSet:{...p,...E},attributes:{"aria-hidden":!0,...I?A:{}}})}else if(r.length===0)return null;let{backdropFilter:_,...T}=o;return ne({Tag:"div",nodeId:e.id,idSuffix:"background",attributes:{"aria-hidden":!0},styleSet:[p,T],children:r.map(({backgroundStyles:h,imageProps:m,customFill:E},O)=>{let g=O===r.length-1,I={...T,backdropFilter:g?_:void 0,...h};return E?Th({fill:E,styles:I}):m?mr({key:O,children:mw({imageProps:m,styles:I,node:e,parent:t,children:n,needsMotion:!1,motionProps:{},context:a,websiteContext:u})}):mr({key:O,children:ne({Tag:"div",styleSet:[p,I]})})})})}function mw({styles:e,node:t,parent:n,children:r,needsMotion:o,motionProps:i,imageProps:s,context:a,websiteContext:l}){let{getAssetURL:u,renderOptions:c}=l,{disableImageOptimization:d}=c,{url:f,cropDivInfo:p,size:_}=s,{srcset:T,sizes:h}=d?{srcset:void 0,sizes:void 0}:GA(u,t,n,r,f,_,p?{x:p.widthPercent,y:p.heightPercent}:void 0,c,a),m=p?{position:"absolute",width:zn(p.widthPercent),height:zn(p.heightPercent),top:zn(p.topPercent),left:zn(p.leftPercent),maxWidth:"none"}:{maxWidth:"none",position:"absolute",width:"100%",height:"100%",...e},E=ne({Tag:o?er.img:"img",nodeId:t.id,idSuffix:"background",styleSet:m,attributes:{loading:t.lazyLoad?"lazy":void 0,alt:t.accessibleLabel||"",src:u(f),srcSet:T,sizes:t.lazyLoad?`auto,${h}`:h,...o?i:{}}});return p?ne({Tag:"div",nodeId:t.id,idSuffix:"image-cropper",styleSet:{overflow:"hidden",position:"absolute",inset:0,...e},children:E}):E}var Ew=[64,128,256,512,1024,1536,2048,2560,3072,3584,4096],rj=3,oj=512;function GA(e,t,n,r,o,i,s,a,l){let u=Mt(t,n,r,a,l)===re.FIXED&&un(t,n,r,a,l)===re.FIXED&&!Ir(t,n),c=s??{x:1,y:1},d=`${Math.ceil(c.x*100)}vw`,f=oj,p=Math.max(i.x,i.y);if(u){let T={x:t.size.x*c.x,y:t.size.y*c.y};d=`${T.x}px`,f=i.x>=i.y?T.x:T.y,p=Math.min(p,f*rj)}let _=`${e(o)} ${Math.ceil(i.x)}w`;if(i.x>=i.y)for(let T of Ew){if(T<f)continue;if(T>p)break;let h=Math.ceil(T*c.x);_+=`, ${e(o,{width:h})} ${h}w`}else for(let T of Ew){if(T<f)continue;if(T>p)break;let h=i.x/i.y,m=Math.ceil(T*c.y);_+=`, ${e(o,{height:m})}
8219 ${Math.ceil(m*h)}w`}return{srcset:_,sizes:d}}function ij({node:e,videoProps:t,styles:n,websiteContext:r}){let{getVideoURL:o,env:i}=r,{cropDivInfo:s}=t;if(!["FRAME","RECTANGLE"].includes(e.type))return console.error("backgroundNonTileVideo: node is not a frame or rectangle",e),null;let a=t.autoplay||t.muted,l=e.accessibleLabel||"",u={autoPlay:t.autoplay,loop:t.mediaLoop,controls:t.showControls,muted:a,playsInline:t.autoplay};i==="published"&&matchMedia("(prefers-reduced-motion: reduce)").matches&&(u.autoPlay=!1),t.isDecorative&&(u.role="presentation",u["aria-hidden"]=!0);let c=s?{position:"absolute",width:zn(s.widthPercent),height:zn(s.heightPercent),top:zn(s.topPercent),left:zn(s.leftPercent),maxWidth:"none"}:{maxWidth:"none",position:"absolute",width:"100%",height:"100%",...n},d=Oh(r,{fallback:null,children:()=>r.renderElement({Tag:"video",attributes:{...u,controlsList:"nodownload","aria-label":l},styleSet:c,children:r.renderElement({Tag:"source",attributes:{src:o(t.url,t.hash)}})})});return s?ne({Tag:"div",nodeId:e.id,idSuffix:"video-cropper",styleSet:{overflow:"hidden",position:"absolute",inset:0,...n},children:d}):d}var sj={ALL:["x","y","opacity","rotate","scaleX","scaleY"],OPACITY:["opacity"],TRANSLATION:["x","y"],ROTATION:["rotate"],SCALE:["scaleX","scaleY"]};function aj(e){return"type"in e||e.ease==="linear"?"linear":[...e.ease]}function lj(e,t){let{duration:n}=e,r=Hf(e.easing),o=Wf(r);if("type"in o)return{...o,duration:n};let i=aj(o);return"times"in t?{...t,duration:n,ease:t.ease.map(()=>i)}:{duration:n,times:[0,1],ease:[i]}}function gh(e,t){if(!t)return e;let n={...e},r=["ALL","OPACITY","TRANSLATION","ROTATION","SCALE"];for(let o of r){let i=t[o];if(!i||i.length===0)continue;let s=i.find(a=>a.interactionIDs.length===0);if(s)for(let a of sj[o]){let l=n[a];l&&(n[a]=lj(s,l))}}return n}var uj="__figmaMotionSpringEasing";function Tw(e){return{children:e,dataMotionProps:void 0,elementMotionProps:void 0}}function cj(e){if(e)return e instanceof Q?e.value:e}function dj({keyframeMotionPropsOverride:e,node:t,normalizeParameterUnits:n=!1}){let r=e!==void 0?e:t.keyframeData?Li(t.keyframeData,{normalizeParameterUnits:n}):null;return r&&t.transitionOverrides&&(r={...r,transition:gh(r.transition,t.transitionOverrides)}),r}function Qs(e,t){return e===null||typeof e!="object"||Array.isArray(e)?{}:Object.fromEntries(Object.entries(e).filter(([n])=>t(n)))}function fj(e){return e==null?!1:Array.isArray(e)?e.length>0:typeof e=="object"?Object.keys(e).length>0:!0}function kA(e,t){return new Set([...Object.keys(e),...Object.keys(t)])}function hw(e){return kA(Qs(e.initial,()=>!0),Qs(e.animate,()=>!0))}function Ow(e,t){return!t.has(e)}function gw(e){if(!e)return e;let t=Qs(e.initial,s=>rl.has(s)),n=Qs(e.animate,s=>rl.has(s)),r=kA(t,n),o=hw(e),i=Qs(e.transition,s=>r.has(s)||Ow(s,o));return r.size===0?null:{initial:t,animate:n,transition:i}}function pj(e){if(!e)return e;let t=Qs(e.initial,f=>!rl.has(f)),n=Qs(e.animate,f=>!rl.has(f)),{initial:r,animate:o,transition:i,...s}=e,a=Object.values(s).some(fj),l=kA(t,n),u=hw(e),c=l.size>0||a,d=Qs(e.transition,f=>l.has(f)||c&&Ow(f,u));return l.size===0&&!a?null:{...e,initial:t,animate:n,transition:d}}function mj(e){let t=gw(e);return!!t&&(Object.keys(t.initial??{}).length>0||Object.keys(t.animate??{}).length>0)}function Ej(e){if(!e)return e;let t=mR,n={};for(let[o,i]of Object.entries(e.initial))n[o]=typeof i=="number"&&t.has(o)?`${i}px`:i;let r={};for(let[o,i]of Object.entries(e.animate))Array.isArray(i)&&t.has(o)?r[o]=i.map(s=>typeof s=="number"?`${s}px`:s):r[o]=i;return{...e,initial:n,animate:r}}function FA(e){let t=Ej(e);return JSON.stringify(t,(n,r)=>_j(r)?{[uj]:{zeta:r.__springParams.zeta,w0:r.__springParams.w0,duration:r.__springParams.duration}}:r)}function _j(e){return typeof e=="function"&&"__springParams"in e}function Tj({keyframeMotionProps:e,relativeTransform:t,renderOptions:n,smartAnimateType:r}){return t!==void 0&&n.metronomeEnabled&&r===ee.NONE&&sl(t,n)&&mj(e)}function hj({keyframeMotionPropsOverride:e,node:t,relativeTransform:n,renderOptions:r,smartAnimateType:o}){let i=dj({keyframeMotionPropsOverride:e,node:t,normalizeParameterUnits:r.emitMotionDataForCodegen});return Tj({keyframeMotionProps:i,relativeTransform:n,renderOptions:r,smartAnimateType:o})?{childKeyframeMotionPropsOverride:pj(i),wrapperKeyframeMotionPropsOverride:i}:{childKeyframeMotionPropsOverride:e,wrapperKeyframeMotionPropsOverride:void 0}}function Sl({keyframeMotionPropsOverride:e,node:t,context:n,renderOptions:r,smartAnimateType:o,wrappersToRender:i}){return i.needsTransformWrapper?hj({keyframeMotionPropsOverride:e,node:t,relativeTransform:xt(Wt(n?.group?.relativeTransform,t.relativeTransform)),renderOptions:r,smartAnimateType:o}):{childKeyframeMotionPropsOverride:e,wrapperKeyframeMotionPropsOverride:void 0}}function Iw({keyframeMotionPropsOverride:e}){let n=gw(e??null);return{shouldWrapKeyframeMotion:n!=null,transformKeyframeMotionProps:n}}function Oj({children:e,keyframeMotionPropsOverride:t,websiteContext:n}){let{shouldWrapKeyframeMotion:r,transformKeyframeMotionProps:o}=Iw({keyframeMotionPropsOverride:t}
8219),i=o?ho(n):null,s=r&&o?i?ol(o,i.ease()):o:void 0;return{childrenWithKeyframeMotionDisabled:e,keyframeDataMotionProps:void 0,keyframeMotionElementProps:s}}function gj({children:e,cssTransformString:t,keyframeMotionPropsOverride:n,nodeId:r}){let{shouldWrapKeyframeMotion:o,transformKeyframeMotionProps:i}=Iw({keyframeMotionPropsOverride:n});return{childrenWithKeyframeMotionDisabled:e,keyframeDataMotionProps:o&&i&&i?{"data-motion-props":FA(i),...t?{"data-motion-transform-template":t}:{},"data-motion-wrapper-for":r}:void 0,keyframeMotionElementProps:void 0}}function Ih({children:e,keyframeMotionPropsOverride:t,nodeId:n,outerTransform:r,renderOptions:o,renderMotionProps:i,websiteContext:s}){if(t===void 0)return Tw(e);if(o.emitMotionDataForCodegen){let{childrenWithKeyframeMotionDisabled:u,keyframeDataMotionProps:c}=gj({children:e,cssTransformString:cj(r),keyframeMotionPropsOverride:t,nodeId:n});return{children:u,dataMotionProps:c,elementMotionProps:void 0}}if(!i||!s)return Tw(e);let{childrenWithKeyframeMotionDisabled:a,keyframeMotionElementProps:l}=Oj({children:Ne(e,s),keyframeMotionPropsOverride:t,websiteContext:s});return{children:Ot(a),dataMotionProps:void 0,elementMotionProps:l!=null&&r?{...l,transformTemplate:zu(r)}:l}}function Ij(e,t){let n={...e,...t};if(e.transform!=null&&t.transform!=null){let r=e.transform instanceof Q?e.transform.value:e.transform,o=t.transform instanceof Q?t.transform.value:t.transform;n.transform=`${r} ${o}`}return n}function Ao(e){let{key:t,ref:n,children:r,semanticTagInfo:o,context:i,styles:s,additionalClassName:a,transitionProps:l,keyframeMotionPropsOverride:u,node:c,wrappers:{outerStyles:d,needsListItemTag:f},websiteContext:p,attributes:_,...T}=e,{tabIndex:h,...m}=_??{},{emitMotionDataForCodegen:E}=p.renderOptions,{semanticTag:O,interactiveSemanticTag:g}=o,{finalInnerSemanticTag:I,needsInteractiveWrapper:S,needsListWrapper:A}=H_(O,g,f),R=A||S?s:Ij(d,s),y=u!==void 0?u:c.keyframeData?Li(c.keyframeData,{normalizeParameterUnits:E}):null;if(y&&c.transitionOverrides){let oe=gh(y.transition,c.transitionOverrides);y={...y,transition:oe}}let b=R;if(E&&y&&R.transform){let oe=R.transform instanceof Q?R.transform.value:R.transform,ft=c.transform3d?.type==="FIXED_ORDER",et=Aj(y,oe,ft);et.motionProps!==y&&(y=et.motionProps,b={...R,transform:et.remainingTransform})}let L=c.type==="FRAME"&&c.isBreakpointFrame===!0,F=d.position==="fixed"||b.position==="fixed"||L?void 0:Ai(l.smartAnimateType,l.transitionData,b.transform),{motionTransitionProps:U,cssStyles:N}=Ku(l.smartAnimateType,l.opacity,b,l.behaviorProps?.variants,l.transitionData,l.onTransitionEnd),K=b.transform&&l.behaviorProps?.variants?{transformTemplate:zu(b.transform)}:void 0,C=E&&y?{"data-motion-props":FA(y)}:{},M=E&&!y&&c.transitionOverrides?{"data-transition-overrides":JSON.stringify(c.transitionOverrides)}:{};if(y){let oe=ho(p);if(oe){let ft=oe.ease();y=ol(y,ft)}}Uv([l.behaviorProps,K,U,F,E?void 0:y??void 0],p);let{style:P,...z}={...l.behaviorProps,...F,...U,...K,...!E&&y?ER(y):{}},Ee=i?.renderedByCode,pe={styles:d,renderedByCode:Ee},ye=[a,{styles:N,renderedByCode:Ee},i?.className],Le={width:"100%",height:"100%",display:"block"},We=g==="a"?{display:"block"}:{},ae=l.smartAnimateType!==ee.NONE||Object.keys(l.behaviorProps).length>0||!E&&!!y?er[I]:I;if(A)if(S){let oe=g,{href:ft,role:et,target:he,rel:Ge,onMouseDown:Ye,onClick:ce,onKeyDown:tt,...pn}=m??{};return ne({Tag:"li",key:t,styleSet:pe,children:ne({Tag:oe,styleSet:Le,attributes:{href:ft,target:he,role:et,rel:Ge,tabIndex:h,onMouseDown:Ye,onClick:ce,onKeyDown:tt},children:ne({Tag:ae,...T,attributes:{tabIndex:Ms(I)?-1:void 0,...z,...pn,...C,...M},ref:n,styleSet:[Le,...ye],style:P,children:r})})})}else return ne({Tag:"li",key:t,styleSet:pe,children:ne({Tag:ae,ref:n,attributes:{tabIndex:Ms(I)?-1:h,...z,...m,...C,...M},styleSet:[Le,...ye],style:P,children:r})});if(S){let{href:oe,role:ft,target:et,rel:he,onMouseDown:Ge,onClick:Ye,onKeyDown:ce,...tt}=m??{};return ne({Tag:g,key:t,styleSet:[pe,We],attributes:{href:oe,target:et,role:ft,rel:he,tabIndex:h,onMouseDown:Ge,onClick:Ye,onKeyDown:ce},children:ne({Tag:ae,...T,ref:n,attributes:{tabIndex:Ms(I)?-1:void 0,...z,...tt,...C,...M},styleSet:[Le,...ye],style:P,children:r})})}if(Object.keys(c.componentPropertyReferences??{}).length===0&&WE(N)&&!a&&!i?.className&&Object.keys(P??{}).length===0)return r;let Oe={...z,...m,...C,...M};
8219return ne({Tag:ae,key:t,...T,ref:n,styleSet:ye,style:P,attributes:{tabIndex:Ms(I)?-1:h,...Oe},children:r})}var Sj={translateX:"x",translateY:"y",translateZ:"z",rotate:"rotate",rotateZ:"rotateZ",rotateX:"rotateX",rotateY:"rotateY",scale:"scale",scaleX:"scaleX",scaleY:"scaleY",skewX:"skewX",skewY:"skewY",perspective:"transformPerspective"},Rj=new Set(["perspective","translateZ","rotateX","rotateY","rotateZ"]);function Aj(e,t,n=!1){if(!e)return{motionProps:e,remainingTransform:t};let r={...e.initial},o=[],i=!1;for(let{raw:s,fn:a,value:l}of Nj(t)){let u=Sj[a],c=Rj.has(a)&&!n;if(!u||u in r||c){o.push(s);continue}r[u]=l.trim(),i=!0}return i?{motionProps:{...e,initial:r},remainingTransform:o.length>0?o.join(" "):void 0}:{motionProps:e,remainingTransform:t}}function*Nj(e){let t=/(\w+)\(/g;for(;;){let n=t.exec(e);if(n===null)return;let r=n.index,o=t.lastIndex,i=1,s=o;for(;s<e.length&&i>0;){let a=e.charAt(s);a==="("?i++:a===")"&&i--,s++}if(i!==0)return;yield{raw:e.slice(r,s),fn:n[1],value:e.slice(o,s-1)},t.lastIndex=s}}function Sh(e,t,n,r){let{effects:o,nodeId:i,styles:s}=e;if(o.length===0)return t;let a=vE(n,Rs(n,!0),r);return ne({Tag:"ShaderEffect",nodeId:i,customEffects:o.map(l=>({id:l.customEffectId,params:l.componentPropAssignments??{defs:{},assignments:[]}})),children:t,styleSet:[s,a]})}var yj="ffw";function wA(e){let{parent:t,node:n,children:r,outerStyles:o,tag:i,nodeId:s,idSuffix:a}=e;if(!uc(n,t))return r;let l={display:"flex",flex:o.flex,flexDirection:t.layoutMode==="HORIZONTAL"?"row":"column",alignSelf:"stretch",alignItems:PR(t.counterAxisAlignItems)};return ne({Tag:i,key:yj,nodeId:s,idSuffix:a,styleSet:l,children:r})}function td(e,t){if(t.disableCodeBehaviors)return!1;switch(e.type){case"FRAME":case"RECTANGLE":case"TEXT":case"IMAGE":case"SVG":return!!e.behaviors?.code?.length;default:return!1}}var bj="sw";function mp(e){let{children:t,stickyWrapperStyles:n,nodeId:r,idSuffix:o,tag:i}=e;return n?ne({Tag:i,key:bj,nodeId:r,idSuffix:o,styleSet:n,children:t}):t}function Sw(e){return e==="flex-start"?"flex-end":e==="flex-end"?"flex-start":"center"}function Rh(e,t,n){if(!n)return;let r=!!(e.keyframeData&&"WIDTH"in e.keyframeData),o=!!(e.keyframeData&&"HEIGHT"in e.keyframeData);if(!r&&!o)return;let i=t!=null&&t[0][0]<0,s=t!=null&&t[1][1]<0,a="center";if(r){switch(e.constraints?.horizontal){case Kn.LEFT:a="flex-start";break;case Kn.RIGHT:a="flex-end";break;default:a="center";break}i&&(a=Sw(a))}let l="center";if(o){switch(e.constraints?.vertical){case Er.TOP:l="flex-start";break;case Er.BOTTOM:l="flex-end";break;default:l="center";break}s&&(l=Sw(l))}return{justifyContent:a,alignItems:l}}function Ah({outerStyles:e,childWrapperStyles:t,innerState:n,keyframeAlignmentOverride:r,preserve3d:o}){let i={display:"flex",alignItems:r?.alignItems??"center",justifyContent:r?.justifyContent??"center"},s=o?"preserve-3d":void 0;return{inner:{flex:"0 0 auto",...t,...n,transformStyle:s},outer:{...e,...i,transformStyle:s}}}function Nh({ref:e,outerStyles:t,...n}){return Oh(n.websiteContext,{fallback:Lj({outerStyles:t,...n}),children:()=>n.websiteContext.sitesRenderers.renderTransformWrapperLive({ref:e,outerStyles:t,...n})})}function Lj({children:e,outerStyles:t,childWrapperStyles:n,node:r,context:o,keyframeMotionPropsOverride:i,tag:s,nodeId:a,idSuffix:l,websiteContext:u}){let c=u.renderOptions,{metronomeEnabled:d}=c,f=xt(Wt(o?.group?.relativeTransform,r.relativeTransform)),p=Ih({children:e,keyframeMotionPropsOverride:i,nodeId:r.id,outerTransform:t.transform,renderMotionProps:!0,renderOptions:c,websiteContext:u}),{inner:_,outer:T}=Ah({outerStyles:t,childWrapperStyles:n,keyframeAlignmentOverride:Rh(r,f,d),preserve3d:al(r,c)});return ne({Tag:p.elementMotionProps!=null?er[s]:s,nodeId:a,idSuffix:l,styleSet:T,attributes:{...p.dataMotionProps,...p.elementMotionProps},children:ne({Tag:"div",styleSet:_,children:p.children})})}function yr(e){let{node:t,parent:n,context:r,children:o,transitionProps:i,layerRef:s,outerRef:a,previousRotation:l,codeBehaviorProps:u,keyframeMotionPropsOverride:c,codeBehaviorWrapperRef:d,wrappersToRender:f,websiteContext:p}=e,_=f.needsTransformWrapper||f.needsCodeBehaviorWrapper,T=Sh(f.customEffectWrapper,o,t,p.renderOptions),h=f.maskWrapper.maskStyles?ne({Tag:f.maskWrapper.tag,no
8219deId:f.maskWrapper.nodeId,idSuffix:f.maskWrapper.idSuffix,styleSet:[f.maskWrapper.maskStyles],children:T}):T;if(!_)return mp({nodeId:f.stickyWrapper.nodeId,idSuffix:f.stickyWrapper.idSuffix,stickyWrapperStyles:f.stickyWrapper.outerStyles,tag:f.stickyWrapper.tag,children:wA({node:t,parent:n,outerStyles:f.flexFillWrapper.outerStyles,tag:f.flexFillWrapper.tag,nodeId:f.flexFillWrapper.nodeId,idSuffix:f.flexFillWrapper.idSuffix,children:h})});let m=i?.transitionData,E=i?.smartAnimateType??ee.NONE,O=E===ee.INSTANCE_SUBTREE,g=t.type!=="WIDGET"&&Wo(E,t.maybeAnimateRotation),I=f.needsTransformWrapper?Nh({ref:g||O?s:null,context:r,node:t,parent:n,childWrapperStyles:f.transformWrapper.childWrapperStyles,transitionData:m,canAnimate:g,smartAnimateType:E,previousRotation:l,transformRef:a,codeBehaviorWrapperRef:d,keyframeMotionPropsOverride:c,outerStyles:f.transformWrapper.outerStyles,tag:f.transformWrapper.tag,nodeId:f.transformWrapper.nodeId,idSuffix:f.transformWrapper.idSuffix,websiteContext:p,children:h}):h;if(f.needsCodeBehaviorWrapper){td(t,p.renderOptions);let S=t.behaviors.code;return f.codeBehaviorWrapper.outerStyles,p.sitesRenderers.renderCodeBehaviorWrapper({codeBehaviors:S,variableState:t.variableState,modeContext:t.modeContext,ref:d,assets:t.assets,outerStyles:f.codeBehaviorWrapper.outerStyles,tag:f.codeBehaviorWrapper.tag,websiteContext:p,children:p.sitesRenderers.renderRenderHooksConsumer({node:t,renderNode:()=>Ne(I,p),codeBehaviorProps:{...u,transformRef:a}})})}return mp({nodeId:f.stickyWrapper.nodeId,idSuffix:f.stickyWrapper.idSuffix,stickyWrapperStyles:f.stickyWrapper.outerStyles,tag:f.stickyWrapper.tag,children:wA({node:t,parent:n,outerStyles:f.flexFillWrapper.outerStyles,tag:f.flexFillWrapper.tag,nodeId:f.flexFillWrapper.nodeId,idSuffix:f.flexFillWrapper.idSuffix,children:I})})}function Rw(e){let{node:t,parent:n,transitionProps:r,renderOptions:o,maskStyles:i}=e,s=t.keyframeData!=null&&Object.keys(t.keyframeData).length>0||(r?.smartAnimateType??ee.NONE)!==ee.NONE;return o.metronomeEnabled&&s&&i!=null&&Object.keys(i).length>0&&D1(i)&&!$t(t,n)}function Qr(e){return Rw(e)?void 0:e.maskStyles}function wn({node:e,parent:t,context:n,transitionProps:r,outerStyles:o,wrapperSizeStyles:i,stickyWrapperStyles:s,transformChildWrapperStyles:a,renderOptions:l,maskStyles:u}){let{hasCodeBehavior:c,hasTransform:d,hasFlexFill:f,hasSticky:p,hasCustomEffect:_}=Cj({node:e,parent:t,context:n,transitionProps:r,stickyWrapperStyles:s,renderOptions:l}),T=o,h=n?.parentIsList?"li":"div",m,E="div",O="div",g,I="div",S,A="div",R;c&&(m=T,E=h,T=void 0,h="div"),p&&(O=h,h="div"),f&&(g=T,I=h,h="div"),d&&(S=T??i,A=h,T=void 0,h="div"),_&&(R=T??i,T=i);let b=Rw({node:e,parent:t,transitionProps:r,renderOptions:l,maskStyles:u})?u:void 0;if(b&&e.absoluteBoundingBox&&t?.absoluteBoundingBox){let K=e.absoluteBoundingBox.x-t.absoluteBoundingBox.x,C=e.absoluteBoundingBox.y-t.absoluteBoundingBox.y;b=v1(b,K,C)}let L=l.shouldOutputCustomEffects?DE(e):[],D=l.assignNodeIdToOutermostWrapper,F=b!=null,U=D?p?"sticky":f?"flexFill":d?"transform":F?"mask":L.length>0?"customEffect":"main":"main",N=K=>U===K?e.id:void 0;return{needsTransformWrapper:d,needsCodeBehaviorWrapper:c,stickyWrapper:{outerStyles:s,tag:O,...D?{nodeId:N("sticky"),idSuffix:void 0}:{nodeId:e.id,idSuffix:"sticky-wrapper"}},flexFillWrapper:{outerStyles:g,tag:I,...D?{nodeId:N("flexFill"),idSuffix:void 0}:{nodeId:e.id,idSuffix:"fillWrapper"}},codeBehaviorWrapper:{outerStyles:m,tag:E},transformWrapper:{outerStyles:S,childWrapperStyles:a,tag:A,nodeId:N("transform"),idSuffix:void 0},motionLayerContent:{outerStyles:T??i,needsListItemTag:h==="li",nodeId:N("main")},maskWrapper:{maskStyles:b,tag:"div",nodeId:N("mask"),idSuffix:void 0},customEffectWrapper:{effects:L,styles:R,nodeId:N("customEffect")}}}function Cj({node:e,parent:t,context:n,transitionProps:r,stickyWrapperStyles:o,renderOptions:i}){let s=td(e,i);return{hasCodeBehavior:s,hasTransform:Pj({node:e,parent:t,context:n,transitionProps:r}),hasFlexFill:!s&&uc(e,t),hasSticky:!s&&o!==void 0,hasCustomEffect:i.shouldOutputCustomEffects?DE(e).length>0:!1}}
8219function Pj(e){let{context:t,node:n,parent:r,transitionProps:o}=e,i=xs(n,r,t);if(n.type==="GROUP")return i&&$t(n,r);{let s=n.type!=="WIDGET"&&Wo(o?.smartAnimateType??ee.NONE,n.maybeAnimateRotation);return i||s}}function Aw(e){let{node:t,parent:n,context:r,zIndex:o,smartAnimateType:i,previousRotation:s,precomputeTransforms:a,websiteContext:l}=e,{getAssetURL:u,renderOptions:c}=l,d=go(t.assets,t.hash);ge(d.type==="GENERATED_ASSET","Expected asset to be a generated asset");let f=u(d.url),p=Wo(i,t.maybeAnimateRotation),_=Xn({node:t,parent:n,context:r,zIndex:o,children:[],options:{isFlattened:!0,canAnimate:p,previousRotation:s,precomputeTransforms:a},renderOptions:c}),T=t.type==="SVG"?r?.group?.opacity??1:cn(r,t);return{nodeCanAnimateRotation:p,layoutStyles:_,opacity:T,asset:d,src:f}}function Nw(e){let{node:t,parent:n,interactionHandlers:r,context:o,transitionProps:i,codeBehaviorProps:s,websiteContext:a,layerData:l,hookState:u}=e,{layoutStyles:c,opacity:d,nodeCanAnimateRotation:f,asset:p,src:_}=l,{behaviorProps:T,key:h,behaviorsRef:m,mergedRef:E,outerRef:O,codeBehaviorWrapperRef:g,previousRotation:I,svgContainerRef:S,ref:A}=u,R=i?.smartAnimateType??ee.NONE,{renderOptions:y}=a,b=$n({node:t,context:o,websiteContext:a}),L=t?.interactions??[],D=o?.withinInteractiveElement||Object.keys(T).length>0||R===ee.INSTANCE_SUBTREE,F=gr(L,r,D,a),U=Fo(L),N=po(L),K=Gs(t,N,U,D,!1),C=Ko(t,!0),M=i?.transitionData,P=on(M),z=jn({node:t,parent:n,children:null,renderOptions:y}),{shouldOutputVariables:Ee,codeSyntaxLanguage:pe}=a.renderOptions,ye={...c.inner,...t.type==="IMAGE"?vE(t,Rs(t,!1),y):{},...Gn(d,Ee,t.boundVariables?.opacity?.resolvedName,pe&&t.boundVariables?.opacity?.resolvedCodeSyntax?.[pe]),...Ni(t),...Qr({node:t,parent:n,transitionProps:i,renderOptions:y,maskStyles:b}),...c.transform3d,...o?.style||{}},Le=Jr(a,t),{disableDataAttributes:We}=a.renderOptions,De=wn({node:t,parent:n,context:o,transitionProps:i,outerStyles:c.outer,wrapperSizeStyles:z,stickyWrapperStyles:c.stickyWrapper,transformChildWrapperStyles:c.transform,renderOptions:y,maskStyles:b}),ae=Sl({node:t,context:o,renderOptions:y,smartAnimateType:R,wrappersToRender:De}),Oe=mr({key:t.id,children:Dj({node:t,parent:n,context:o,websiteContext:a,asset:p,src:_,svgContainerRef:S})}),oe=Ao({node:t,semanticTagInfo:K,key:h,context:o,ref:f?m:E,nodeId:De.motionLayerContent.nodeId,styles:ye,transitionProps:{opacity:d,smartAnimateType:R,behaviorProps:T,transitionData:M,onTransitionEnd:P},keyframeMotionPropsOverride:ae.childKeyframeMotionPropsOverride,wrappers:De.motionLayerContent,websiteContext:a,attributes:{...F,...C,"data-name":Le,"data-isimage":We?void 0:!0,...o?.dataAttributes||{}},children:Oe});return yr({node:t,parent:n,context:o,transitionProps:i,codeBehaviorProps:s,layerRef:A,outerRef:O,codeBehaviorWrapperRef:g,previousRotation:I,wrappersToRender:De,websiteContext:a,keyframeMotionPropsOverride:ae.wrapperKeyframeMotionPropsOverride,children:oe})}function Dj({node:e,parent:t,context:n,websiteContext:r,asset:o,src:i,svgContainerRef:s}){let{url:a,offsets:l,size:u}=o,{disableInlineSvgGeneration:c,disableImageOptimization:d}=r.renderOptions,f=!c&&e.type==="SVG"&&e.isDynamic,p=e.accessibleLabel||"",_={position:"absolute",top:yf(l.top),left:yf(l.left),right:yf(l.right),bottom:yf(l.bottom)},T,h;if(u&&!d&&e.type==="IMAGE"){let{srcset:R,sizes:y}=GA(r.getAssetURL,e,t,null,a,u,void 0,r.renderOptions,n);T=R,h=e.lazyLoad?`auto,${y}`:y}let m={};f&&e.type==="SVG"&&(e.fills.forEach((R,y)=>{R.type==="SOLID"&&(m[`--fill-${y}`]=`rgba(${Math.round(R.color.r*255)}, ${Math.round(R.color.g*255)}, ${Math.round(R.color.b*255)}, ${x(R.color.a)})`)}),e.strokes.forEach((R,y)=>{R.type==="SOLID"&&(m[`--stroke-${y}`]=`rgba(${Math.round(R.color.r*255)}, ${Math.round(R.color.g*255)}, ${Math.round(R.color.b*255)}, ${x(R.color.a)})`)}));let E=!f&&WE(_),O=pw(e,r),g=O.length>0,I={display:"block",maxWidth:"none",width:"100%",height:"100%",...E&&{position:"absolute",inset:0},...g&&!E&&{position:"absolute",inset:0}},S=ne({Tag:"img",styleSet:I,attributes:{loading:e.lazyLoad?"lazy":void 0,src:i,alt:p,width:e.type==="IMAGE"&&u?x(u.x):void 0,height:e.type==="IMAGE"&&u?x(u.y):void 0,srcSet:T,sizes:h}}),A=g?[...O,S]:S;return E?A:ne({Tag:"div",ref:s,styleSet:_,style:m,children:A})}var nr=v(W());var yw=(e,t,n)=>Math.min(Math.max(n,e),t);var Rl=e=>typeof e=="number";var bw=e=>Array.isArray(e)&&!Rl(e[0]);var Lw=(e,t,n)=>{let r=t-e;return((n-e)%r+r)%r+e};function Cw(e,t){return bw(e)?e[Lw(0,e.length,t)]:e}var yh=(e,t,n)=>-n*e+n*t+e;var Ep=e=>e;
8219var Al=(e,t,n)=>t-e===0?1:(n-e)/(t-e);function bh(e,t){let n=e[e.length-1];for(let r=1;r<=t;r++){let o=Al(0,t,r);e.push(yh(n,1,o))}}function _p(e){let t=[0];return bh(t,e-1),t}function BA(e,t=_p(e.length),n=Ep){let r=e.length,o=r-t.length;return o>0&&bh(t,o),i=>{let s=0;for(;s<r-2&&!(i<t[s+1]);s++);let a=yw(0,1,Al(t[s],t[s+1],i));return a=Cw(n,s)(a),yh(e[s],e[s+1],a)}}var Nl=e=>typeof e=="function";var Tp=e=>typeof e=="string";function UA(e,t){return t?e*(1e3/t):0}function Lh(e,t){var n;return typeof e=="string"?t?((n=t[e])!==null&&n!==void 0||(t[e]=document.querySelectorAll(e)),e=t[e]):e=document.querySelectorAll(e):e instanceof Element&&(e=[e]),Array.from(e||[])}function Pw(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n}var vj={any:0,all:1};function VA(e,t,{root:n,margin:r,amount:o="any"}={}){if(typeof IntersectionObserver>"u")return()=>{};let i=Lh(e),s=new WeakMap,a=u=>{u.forEach(c=>{let d=s.get(c.target);if(c.isIntersecting!==Boolean(d))if(c.isIntersecting){let f=t(c);Nl(f)?s.set(c.target,f):l.unobserve(c.target)}else d&&(d(c),s.delete(c.target))})},l=new IntersectionObserver(a,{root:n,rootMargin:r,threshold:typeof o=="number"?o:vj[o]});return i.forEach(u=>l.observe(u)),()=>l.disconnect()}var Ch=new WeakMap,ea;function xj(e,t){if(t){let{inlineSize:n,blockSize:r}=t[0];return{width:n,height:r}}else return e instanceof SVGElement&&"getBBox"in e?e.getBBox():{width:e.offsetWidth,height:e.offsetHeight}}function Mj({target:e,contentRect:t,borderBoxSize:n}){var r;(r=Ch.get(e))===null||r===void 0||r.forEach(o=>{o({target:e,contentSize:t,get size(){return xj(e,n)}})})}function Gj(e){e.forEach(Mj)}function kj(){typeof ResizeObserver>"u"||(ea=new ResizeObserver(Gj))}function Dw(e,t){ea||kj();let n=Lh(e);return n.forEach(r=>{let o=Ch.get(r);o||(o=new Set,Ch.set(r,o)),o.add(t),ea?.observe(r)}),()=>{n.forEach(r=>{let o=Ch.get(r);o?.delete(t),o?.size||ea?.unobserve(r)})}}var Ph=new Set,hp;function Fj(){hp=()=>{let e={width:window.innerWidth,height:window.innerHeight},t={target:window,size:e,contentSize:e};Ph.forEach(n=>n(t))},window.addEventListener("resize",hp)}function vw(e){return Ph.add(e),hp||Fj(),()=>{Ph.delete(e),!Ph.size&&hp&&(hp=void 0)}}function xw(e,t){return Nl(e)?vw(e):Dw(e,t)}var wj=50,Mw=()=>({current:0,offset:[],progress:0,scrollLength:0,targetOffset:0,targetLength:0,containerLength:0,velocity:0}),kw=()=>({time:0,x:Mw(),y:Mw()}),Bj={x:{length:"Width",position:"Left"},y:{length:"Height",position:"Top"}};function Gw(e,t,n,r){let o=n[t],{length:i,position:s}=Bj[t],a=o.current,l=n.time;o.current=e["scroll"+s],o.scrollLength=e["scroll"+i]-e["client"+i],o.offset.length=0,o.offset[0]=0,o.offset[1]=o.scrollLength,o.progress=Al(0,o.scrollLength,o.current);let u=r-l;o.velocity=u>wj?0:UA(o.current-a,u)}function Fw(e,t,n){Gw(e,"x",t,n),Gw(e,"y",t,n),t.time=n}function ww(e,t){let n={x:0,y:0},r=e;for(;r&&r!==t;)if(r instanceof HTMLElement)n.x+=r.offsetLeft,n.y+=r.offsetTop,r=r.offsetParent;else if(r instanceof SVGGraphicsElement&&"getBBox"in r){let{top:o,left:i}=r.getBBox();for(n.x+=i,n.y+=o;r&&r.tagName!=="svg";)r=r.parentNode}return n}var Bw={Enter:[[0,1],[1,1]],Exit:[[0,0],[1,0]],Any:[[1,0],[0,1]],All:[[0,0],[1,1]]};var Dh={start:0,center:.5,end:1};function HA(e,t,n=0){let r=0;if(Dh[e]!==void 0&&(e=Dh[e]),Tp(e)){let o=parseFloat(e);e.endsWith("px")?r=o:e.endsWith("%")?e=o/100:e.endsWith("vw")?r=o/100*document.documentElement.clientWidth:e.endsWith("vh")?r=o/100*document.documentElement.clientHeight:e=o}return Rl(e)&&(r=t*e),n+r}var Uj=[0,0];function Uw(e,t,n,r){let o=Array.isArray(e)?e:Uj,i=0,s=0;return Rl(e)?o=[e,e]:Tp(e)&&(e=e.trim(),e.includes(" ")?o=e.split(" "):o=[e,Dh[e]?e:"0"]),i=HA(o[0],n,r),s=HA(o[1],t),i-s}var Vj={x:0,y:0};function Vw(e,t,n){let{offset:r=Bw.All}=n,{target:o=e,axis:i="y"}=n,s=i==="y"?"height":"width",a=o!==e?ww(o,e):Vj,l=o===e?{width:e.scrollWidth,height:e.scrollHeight}:{width:o.clientWidth,height:o.clientHeight}
8219,u={width:e.clientWidth,height:e.clientHeight};t[i].offset.length=0;let c=!t[i].interpolate,d=r.length;for(let f=0;f<d;f++){let p=Uw(r[f],u[s],l[s],a[i]);!c&&p!==t[i].interpolatorOffsets[f]&&(c=!0),t[i].offset[f]=p}c&&(t[i].interpolate=BA(_p(d),t[i].offset),t[i].interpolatorOffsets=[...t[i].offset]),t[i].progress=t[i].interpolate(t[i].current)}function Hj(e,t=e,n){if(n.x.targetOffset=0,n.y.targetOffset=0,t!==e){let r=t;for(;r&&r!=e;)n.x.targetOffset+=r.offsetLeft,n.y.targetOffset+=r.offsetTop,r=r.offsetParent}n.x.targetLength=t===e?t.scrollWidth:t.clientWidth,n.y.targetLength=t===e?t.scrollHeight:t.clientHeight,n.x.containerLength=e.clientWidth,n.y.containerLength=e.clientHeight}function Hw(e,t,n,r={}){let o=r.axis||"y";return{measure:()=>Hj(e,r.target,n),update:i=>{Fw(e,n,i),(r.offset||r.target)&&Vw(e,n,r)},notify:Nl(t)?()=>t(n):Wj(t,n[o])}}function Wj(e,t){return e.pause(),e.forEachNative((n,{easing:r})=>{var o,i;if(n.updateDuration)r||(n.easing=Ep),n.updateDuration(1);else{let s={duration:1e3};r||(s.easing="linear"),(i=(o=n.effect)===null||o===void 0?void 0:o.updateTiming)===null||i===void 0||i.call(o,s)}}),()=>{e.currentTime=t.progress}}var Op=new WeakMap,Ww=new WeakMap,WA=new WeakMap,Yw=e=>e===document.documentElement?window:e;function gp(e,t={}){var{container:n=document.documentElement}=t,r=Pw(t,["container"]);let o=WA.get(n);o||(o=new Set,WA.set(n,o));let i=kw(),s=Hw(n,e,i,r);if(o.add(s),!Op.has(n)){let u=()=>{let d=performance.now();for(let f of o)f.measure();for(let f of o)f.update(d);for(let f of o)f.notify()};Op.set(n,u);let c=Yw(n);window.addEventListener("resize",u,{passive:!0}),n!==document.documentElement&&Ww.set(n,xw(n,u)),c.addEventListener("scroll",u,{passive:!0})}let a=Op.get(n),l=requestAnimationFrame(a);return()=>{var u;typeof e!="function"&&e.stop(),cancelAnimationFrame(l);let c=WA.get(n);if(!c||(c.delete(s),c.size))return;let d=Op.get(n);Op.delete(n),d&&(Yw(n).removeEventListener("scroll",d),(u=Ww.get(n))===null||u===void 0||u(),window.removeEventListener("resize",d))}}var Kw={m00:1,m01:0,m02:0,m10:0,m11:1,m12:0};function nd(e,t,n=1){return{m00:n,m01:0,m02:e,m10:0,m11:n,m12:t}}var Yj={FADE_IN:{opacity:0,transform:Kw},SCALE_IN:{opacity:0,transform:nd(0,0,.5)},SCALE_IN_BOTTOM:{opacity:0,transform:nd(0,50,.5)},SLIDE_IN_TOP:{opacity:0,transform:nd(0,-150)},SLIDE_IN_BOTTOM:{opacity:0,transform:nd(0,150)},SLIDE_IN_LEFT:{opacity:0,transform:nd(-150,0)},SLIDE_IN_RIGHT:{opacity:0,transform:nd(150,0)},NONE:{opacity:1,transform:Kw}},Kj=.75,Qo={IN_CUBIC:[.55,.055,.675,.19],EASE_IN:[.55,.055,.675,.19],OUT_CUBIC:[.215,.61,.355,1],INOUT_CUBIC:[.645,.045,.355,1],LINEAR:[0,0,1,1],IN_BACK_CUBIC:[.3,-.05,.7,-.5],OUT_BACK_CUBIC:[.45,1.45,.8,1],INOUT_BACK_CUBIC:[.7,-.4,.4,1.4],GENTLE_SPRING:[1,100,15,0],SPRING_PRESET_ONE:[1,300,20,0],SPRING_PRESET_TWO:[1,600,15,0],SPRING_PRESET_THREE:[1,80,20,0],HOLD:[1,0,1,0]},zw={easingType:"OUT_CUBIC",easingFunction:Qo.OUT_CUBIC,transitionDuration:.3},zj={...zw,transitionDuration:.6},Xw=50,jw=!0,Xj={type:Kr.FLOAT,resolvedType:oS.FLOAT,value:Xw},jj={type:Kr.BOOLEAN,resolvedType:oS.BOOLEAN,value:jw};function bn(e,t){if(!e)return{};let n=t.transform?ff(t.transform):ke.identity();n.multiply($j(e.transform));let r=n.toScale(),o=n.offset(),i=n.toDegrees();return{opacity:e.opacity??t.opacity??1,scaleX:r?.x??1,scaleY:r?.y??1,translateX:o?.x??0,translateY:o?.y??0,rotate:i??0}}function YA(e,t,n,r){let o={key:void 0,hasBehaviors:!1,variants:{visible:{}},initial:"visible",appearBehaviorOtherLayer:void 0,scrollTransformOtherLayer:void 0,hasAppearLoadBehavior:!1,hasAppearScrollIntoViewBehavior:!1,hasAppearScrollDirectionBehavior:!1,hasHoverBehavior:!1,hasPressBehavior:!1,hasFocusBehavior:!1,hasScrollSpeedBehavior:!1,hasCursorBehavior:!1,transitionToVisible:void 0,transitionToExit:void 0,transitionToAndFromHover:void 0,transitionToAndFromPress:void 0,transitionToAndFromFocus:void 0,transitionBasedOnScrollDirection:void 0,scrollParallaxSpeed:1,replayAppearBehavior:!0,hasScrollTransformOnScrollBehavior:!1,hasScrollTransformIntoViewBehavior:!1,scrollTransformTransition:void 0,replayScrollTransformBehavior:!0,cursorBehaviorInfo:void 0,hasEnterAnimation:!0,hasExitAnimation:!0};if(e.length===0)return o;o.hasBehaviors=!0,o.variants={visible:bn({},t)};for(let i of e){let s=i.behaviorType,a=!1;switch(s){case yt.Appear:{let l=i;if(!l||n?.[yt.Appear])break;let u=l.trigger;switch(u){case"PAGE_LOAD":o.hasAppearLoadBehavior=!0,o.initial="initial",o.variants.initial=bn(i.enterState,t),o.transitionToVisible=eo(i.enterTransition);break;case"THIS_LAYER_IN_VIEW":o.hasAppearScrollIntoViewBehavior=!0,o.initial="initial",o.variants.initial=bn(i.enterState,t),o.variants.exit=bn(i.exitState??i.enterState,t),o.transitionToVisible=eo(i.enterTransition),o.transitionToExit=eo(i.exitTransition),o.replayAppearBehavior=!i.playsOnce;break;case"OTHER_LAYER_IN_VIEW":o.hasAppearScrollIntoViewBehavior=!0,o.initial="initial",o.variants.initial=bn(i.enterState,t),o.variants.exit=bn(i.exitState??i.enterState,t),o.appearBehaviorOtherLayer=ot(i.otherLayer),o.transitionToVisible=eo(i.enterTransition),o.transitionToExit=eo(i.exitTransition),o.replayAppearBehavior=!i.playsOnce;break;case"SCROLL_DIRECTION":o.hasAppearScrollDirectionBehavior=!0,o.variants.scrollDirection=bn(i.enterState,t),o.transitionBasedOnScrollDirection=eo(i.enterTransition),o.replayAppearBehavior=!i.playsOnce;break;default:xe(u)}break}case yt.ScrollTransform:{let l=i;if(!l||n?.[yt.ScrollTransform])break;
8219a=l.fromState.opacity!==l.toState.opacity;let u=l.trigger;switch(u){case"PAGE_HEIGHT":o.hasScrollTransformOnScrollBehavior=!0,o.initial="initial",o.variants.initial=bn(i.fromState,t),o.variants.exit=bn(i.toState,t),o.scrollTransformTransition=eo(i.transition);break;case"THIS_LAYER_IN_VIEW":o.hasScrollTransformIntoViewBehavior=!0,o.initial="initial",o.variants.initial=bn(i.fromState,t),o.variants.exit=bn(i.toState,t),o.scrollTransformTransition=eo(i.transition),o.replayScrollTransformBehavior=!i.playsOnce;break;case"OTHER_LAYER_IN_VIEW":o.hasScrollTransformIntoViewBehavior=!0,o.initial="initial",o.variants.initial=bn(i.fromState,t),o.variants.exit=bn(i.toState,t),o.scrollTransformTransition=eo(i.transition),o.scrollTransformOtherLayer=ot(i.otherLayer),o.replayScrollTransformBehavior=!i.playsOnce;break;default:xe(u)}break}case yt.Hover:o.hasHoverBehavior=!n?.[yt.Hover],o.variants.hover=bn(i.state,t),o.transitionToAndFromHover=eo(i.transition);break;case yt.Press:o.hasPressBehavior=!n?.[yt.Press],o.variants.press=bn(i.state,t),o.transitionToAndFromPress=eo(i.transition);break;case yt.Focus:o.hasFocusBehavior=!n?.[yt.Focus],o.variants.focus=bn(i.state,t),o.transitionToAndFromFocus=eo(i.transition);break;case yt.ScrollParallax:o.hasScrollSpeedBehavior=!n?.[yt.ScrollParallax],o.scrollParallaxSpeed=i.speed;break;case yt.Cursor:o.hasCursorBehavior=!n?.[yt.Cursor],o.cursorBehaviorInfo={cursorGuid:ot(i.cursorGuid),cursorImage:r,cursorHotspot:{x:i.hotspotX,y:i.hotspotY}};break;case yt.Marquee:break;case yt.Code:break;default:xe(s)}a&&o.scrollTransformTransition&&(o.scrollTransformTransition.repeatDelay=1)}return o.key=JSON.stringify(o),o}function $j(e){return Array.isArray(e)?ke.fromNumbers(e[0][0],e[0][1],e[0][2],e[1][0],e[1][1],e[1][2]):typeof e=="object"?ke.fromNumbers(e.m00,e.m01,e.m02,e.m10,e.m11,e.m12):ke.identity()}function eo(e){if(e)switch(e.easingType){case"IN_CUBIC":return{ease:"easeIn",duration:e.transitionDuration,delay:e.delay};case"OUT_CUBIC":return{ease:"easeOut",duration:e.transitionDuration,delay:e.delay};case"INOUT_CUBIC":return{ease:"easeInOut",duration:e.transitionDuration,delay:e.delay};case"LINEAR":return{ease:"linear",duration:e.transitionDuration,delay:e.delay};case"IN_BACK_CUBIC":return{ease:Qo.IN_BACK_CUBIC,duration:e.transitionDuration,delay:e.delay};case"OUT_BACK_CUBIC":return{ease:Qo.OUT_BACK_CUBIC,duration:e.transitionDuration,delay:e.delay};case"INOUT_BACK_CUBIC":return{ease:Qo.INOUT_BACK_CUBIC,duration:e.transitionDuration,delay:e.delay};case"CUSTOM_CUBIC":return{ease:e.easingFunction,duration:e.transitionDuration,delay:e.delay};case"GENTLE_SPRING":case"SPRING_PRESET_ONE":case"SPRING_PRESET_TWO":case"SPRING_PRESET_THREE":return{type:"spring",stiffness:Qo[e.easingType][1],damping:Qo[e.easingType][2],mass:Qo[e.easingType][0],delay:e.delay};case"CUSTOM_SPRING":{let t=e.easingFunction??Qo.GENTLE_SPRING;return{type:"spring",stiffness:t[1],damping:t[2],mass:t[0],delay:e.delay}}default:return e.easingType,`${e.easingType}`,{ease:"easeOut",duration:e.transitionDuration}}}var Zj=(...e)=>fe().env==="server"?()=>{}:(0,nr.useLayoutEffect)(...e);function to(e,t,n,r,o){let i=fe(),{disableBehaviors:s}=i.renderOptions,a=Ns(r,Ue),l=(0,nr.useRef)(null),u=(0,nr.useRef)(null),{key:c,hasBehaviors:d,variants:f,initial:p,appearBehaviorOtherLayer:_,scrollTransformOtherLayer:T,hasAppearLoadBehavior:h,hasAppearScrollIntoViewBehavior:m,hasAppearScrollDirectionBehavior:E,hasHoverBehavior:O,hasPressBehavior:g,hasScrollTransformOnScrollBehavior:I,hasScrollTransformIntoViewBehavior:S,hasScrollSpeedBehavior:A,hasCursorBehavior:R,transitionToVisible:y,transitionToExit:b,transitionToAndFromHover:L,transitionToAndFromPress:D,transitionBasedOnScrollDirection:F,scrollParallaxSpeed:U,replayAppearBehavior:N,replayScrollTransformBehavior:K,scrollTransformTransition:C}=(0,nr.useMemo)(()=>{let Le=Object.entries(s?{}:t??{}).map(([De,ae])=>({...ae,behaviorType:De})).filter(De=>De.behaviorType!=="code"),We=YA(Le,a,o);return nD(i,We),We},[s,t,a,o,i]),M=I||S,P=(0,nr.useMemo)(()=>M?{fromState:f[be.INITIAL],toState:f[be.EXIT]}:null,[M,f]),z=(0,nr.useCallback)(()=>Jj({domElement:l.current,hasBehaviors:d,variants:f,hasAppearLoadBehavior:h,hasAppearScrollIntoViewBehavior:m,hasAppearScrollDirectionBehavior:E,hasHoverBehavior:O,hasPressBehavior:g,hasScrollTransformBehavior:M,hasScrollTransformOnScrollBehavior:I,hasScrollTransformIntoViewBehavior:S,hasScrollSpeedBehavior:A,scrollTransformState:P,transitionToVisible:y,transitionToExit:b,transitionToAndFromHover:L,transitionToAndFromPress:D,transitionBasedOnScrollDirection:F,scrollTransformTransition:C,appearBehaviorOtherLayer:_,scrollTransformOtherLayer:T,replayAppearBehavior:N,replayScrollTransformBehavior:K,scrollParallaxSpeed:U}),[d,f,h,m,E,O,g,M,I,S,A,P,y,b,L,D,F,C,_,T,N,K,U]),Ee=(0,nr.useCallback)(ye=>{l.current&&u.current?.(),l.current=ye,u.current=z?.(),ye?_R(e,ye):TR(e)},[e,z]),pe=(0,nr.useRef)(e);return Zj(()=>{l.current&&_R(e,l.current),pe.current!==e&&(TR(pe.current),pe.current=e)},[l,e]),tv({ref:l,hasCursorBehavior:R,assets:n,behaviors:t}),(0,nr.useEffect)(()=>
8219{if(!(!l.current||!d))return u.current=z(),()=>u.current?.()},[z,d]),d?{ref:Ee,key:c,motionProps:{initial:p,variants:f}}:{ref:Ee,key:c,motionProps:{}}}function Jj(e){let{domElement:t,hasBehaviors:n,variants:r,hasAppearLoadBehavior:o,hasAppearScrollIntoViewBehavior:i,hasAppearScrollDirectionBehavior:s,hasHoverBehavior:a,hasPressBehavior:l,hasScrollTransformBehavior:u,hasScrollTransformOnScrollBehavior:c,hasScrollTransformIntoViewBehavior:d,hasScrollSpeedBehavior:f,scrollTransformState:p,transitionToVisible:_,transitionToExit:T,transitionToAndFromHover:h,transitionToAndFromPress:m,transitionBasedOnScrollDirection:E,scrollTransformTransition:O,appearBehaviorOtherLayer:g,scrollTransformOtherLayer:I,replayAppearBehavior:S,replayScrollTransformBehavior:A,scrollParallaxSpeed:R}=e;if(!t||!n)return()=>{};let y=!1,b=[()=>{y=!0}];if(o&&tr(t,r[be.VISIBLE],_),i){let L=D=>{let F=!1,U;function N(){y||!t||!F||U||(U=tr(t,r[be.VISIBLE],_).then(()=>{U=void 0,K()}),S||C())}function K(){y||!t||F||U||(U=tr(t,r[be.EXIT]??r[be.VISIBLE],T).then(()=>{U=void 0,tr(t,r[be.INITIAL]??r[be.VISIBLE],{duration:0}),N()}))}let C=VA(D,()=>(F=!0,N(),()=>{F=!1,K()}));b.push(C)};g?O_(g).then(D=>{y||L(D)}):t&&L(t)}if(s){let L=gp(D=>{let F=D.y.velocity;F>0?(tr(t,r[be.SCROLL_DIRECTION]??r[be.VISIBLE],E),S||L()):F<0&&tr(t,r[be.VISIBLE],E)},{container:hR()});b.push(L)}if(a){let L=F=>{F.pointerType!=="touch"&&tr(t,r[be.HOVER]??r[be.VISIBLE],h)},D=F=>{F.pointerType!=="touch"&&tr(t,r[be.VISIBLE],h)};t.addEventListener("pointerenter",L),t.addEventListener("pointerleave",D),b.push(()=>{t.removeEventListener("pointerenter",L),t.removeEventListener("pointerleave",D)})}if(l){let L=()=>{tr(t,r[be.PRESS]??r[be.VISIBLE],m),window.addEventListener("pointerup",D),window.addEventListener("pointercancel",D)},D=()=>{tr(t,r[be.VISIBLE],m),window.removeEventListener("pointerup",D),window.removeEventListener("pointercancel",D)};t.addEventListener("pointerdown",L),t.addEventListener("pointerup",D),t.addEventListener("pointercancel",D),b.push(()=>{t.removeEventListener("pointerdown",L),t.removeEventListener("pointerup",D),t.removeEventListener("pointercancel",D),window.removeEventListener("pointerup",D),window.removeEventListener("pointercancel",D)})}if(u){let L=D=>{let F=!1,U=gp(N=>{if(F)return;let K=0;if(c)K=N.y.scrollLength>0?N.y.current/N.y.scrollLength:1;else if(d){let De=N.y.current+N.y.containerLength,ae=N.y.targetOffset,Oe=N.y.targetLength,oe=(De-ae)/Oe;K=Math.min(1,Math.max(0,oe))}let{fromState:C,toState:M}=p,P=qs(K,[0,1],[C.opacity,M.opacity]),z=qs(K,[0,1],[C.scaleX,M.scaleX]),Ee=qs(K,[0,1],[C.scaleY,M.scaleY]),pe=qs(K,[0,1],[C.translateX,M.translateX]),ye=qs(K,[0,1],[C.translateY,M.translateY]),Le=qs(K,[0,1],[C.rotate,M.rotate]);K===1&&!A&&(F=!0);let We=()=>{tr(t,{opacity:P,scaleX:z,scaleY:Ee,translateX:pe,translateY:ye,rotate:Le},O)};ue.postRender(We)},{container:gR(D),target:D});b.push(U)};I?O_(I).then(D=>{y||L(D)}):t&&L(t)}if(f){let L=gp(D=>{if(R!==1){let F=D.y.current*(1-R);tr(t,{y:F},{duration:0})}},{container:gR(t),target:t});b.push(L)}return()=>{b.forEach(L=>L())}}var $w=v(W());function ei(...e){return(0,$w.useMemo)(()=>t=>{e.forEach(n=>{if(n!=null){if(typeof n=="function"){n(t);return}try{n.current=t}catch{throw new te(`Cannot assign value '${JSON.stringify(t)}' to ref '${JSON.stringify(n)}'`)}}})},e)}var Zw=v(W());function qj(){return()=>{}}function ta(){return Zw.useSyncExternalStore(qj,()=>!0,()=>!1)}function rr(){let e=!ta(),t=fe();return Wu(t.renderOptions)||e}var Jw=v(W());function rd(){return Jw.default.useRef(0)}function Qj({node:e,src:t,motionKey:n,websiteContext:r}){let o=na.useRef(null),i=e.accessibleLabel||"",{disableInlineSvgGeneration:s}
8219=r.renderOptions,a=!s&&e.type==="SVG"&&e.isDynamic,l=qw.get(e.hash),u=na.useCallback(c=>{if(o.current){o.current.replaceChildren(c.cloneNode(!0));let d=o.current.querySelector("svg");d&&(i?(d.setAttribute("aria-label",i),d.setAttribute("role","img")):d.setAttribute("role","presentation"))}},[i]);return na.useEffect(()=>{if(!a)return;if(l&&o.current){u(l);return}if(!t)return;let c=new AbortController,d=async()=>{try{let p=await fetch(t,{signal:c.signal});f(await p.text())}catch(p){if(console.error("Error loading SVG",p),p.name!=="AbortError")throw new ht("Error loading SVG",p)}},f=p=>{if(p==="")return;if(!p){console.warn("No SVG URL provided for",e.id);return}let _=new DOMParser().parseFromString(p,"image/svg+xml"),T=_.querySelector("svg"),h=_.querySelector("parsererror");if(!T||h){console.error("Unable to load SVG",h);return}qw.set(e.hash,T),u(T)};return d(),()=>{c.abort()}},[t,e.hash,l,e.id,e.type,a,n,u]),o}var qw=new Map,Qw=na.forwardRef(function({node:t,parent:n,interactionHandlers:r,context:o,zIndex:i,transitionProps:s,codeBehaviorProps:a,websiteContext:l},u){let c=rd(),d=rr(),f=(0,KA.useRef)(null),p=(0,KA.useRef)(null),_=s?.smartAnimateType??ee.NONE,{nodeCanAnimateRotation:T,layoutStyles:h,opacity:m,asset:E,src:O}=Aw({node:t,parent:n,context:o,zIndex:i,smartAnimateType:_,previousRotation:c,precomputeTransforms:d,websiteContext:l}),g={opacity:m,transform:zr(h.outer.transform)},I=Zr(t,o),{motionProps:S,key:A,ref:R}=to(t.id,t.behaviors,t.assets,g,I),y=ei(u,R),b=Qj({node:t,src:O,motionKey:A,websiteContext:l});return Ne(Nw({node:t,parent:n,interactionHandlers:r,context:o,transitionProps:s,codeBehaviorProps:a,websiteContext:l,layerData:{nodeCanAnimateRotation:T,layoutStyles:h,opacity:m,asset:E,src:O},hookState:{behaviorProps:S,key:A,behaviorsRef:R,mergedRef:y,outerRef:f,codeBehaviorWrapperRef:p,previousRotation:c,svgContainerRef:b,ref:u}}),l)});var od=v(W());function eB({node:e,smartAnimateType:t,nodeHasStrokes:n,transitionData:r,borderStyles:o,strokeColorKeyframeProps:i}){let s=on(r),{motionTransitionProps:a,cssStyles:l}=Ku(t,1,o??{},void 0,r,n?s:void 0),u=Ai(t,r,o?.transform),c=e.id,d=i?.colorAnimate?.borderColor!==void 0,f=t!==ee.NONE||d,p={...a,...u},_=d?hh(p,"borderColor",i.colorInitial.borderColor,i.colorAnimate.borderColor,i.colorTransition.borderColor):p;return ne({Tag:f?er.div:"div",key:"border",nodeId:c,idSuffix:"border",styleSet:l,attributes:{"aria-hidden":!0,...f?_:{}}})}function tB(e){let{children:t,parentTransitionProps:n,onTransitionEnd:r,websiteContext:o}=e;if(!((n?.smartAnimateType??ee.NONE)===ee.INSTANCE_SUBTREE))return t;let a=uD(n?.transitionData,r);return o.sitesRenderers.renderAnimatePresence({...a,children:t?.map(l=>Ne(l,o))})}var e7=e=>{let t=e.layoutMode;if(e.type!=="FRAME"||!(t==="HORIZONTAL"||t==="VERTICAL"))return;let n;e.primaryAxisAlignItems==="MAX"?n="flex-end":["CENTER","SPACE_EVENLY_LEGACY"].includes(e.primaryAxisAlignItems)&&(n="center");let r;if(e.counterAxisAlignItems==="MAX"?r="flex-end":e.counterAxisAlignItems==="CENTER"&&(r="center"),!(!n&&!r))return{display:"flex",flexDirection:t==="VERTICAL"?"column":"row",alignItems:r,justifyContent:n}};function nB({node:e,children:t,style:n,innerTag:r="div"}){let{overflow:o,overflowX:i,overflowY:s,borderRadius:a,...l}=n,u={overflow:o,overflowX:i,overflowY:s,...e7(e)},c=Object.values(u).some(m=>m!==void 0),d=ne({Tag:r,key:"clipper",nodeId:e.id,idSuffix:"al-clipper-inner",styleSet:l,children:t});if(!c)return d;let{minWidth:f,minHeight:p,maxWidth:_,maxHeight:T}=n,h=o!==void 0||i!==void 0||s!==void 0;return ne({Tag:"div",key:"clipper",nodeId:e.id,idSuffix:"al-clipper-outer",styleSet:{...u,borderRadius:h?a:void 0,width:"100%",height:"100%",minWidth:f,minHeight:p,maxWidth:_,maxHeight:T},children:d})}function rB({node:e,style:t,children:n,innerTag:r="div"}){return ne({Tag:r,key:"clipper",nodeId:e.id,idSuffix:"clipper",styleSet:t,children:n})}var oB=(e,t,n,r,o)=>{if(!It(e))return!1;let i=!!t,s=i&&It(t),a=i&&jr(t),l=e.paddingLeft+e.paddingRight;if(l>0){let c=Mt(e,t,n,o,r);switch(c){case re.FILL_PARENT:if(s&&!a)return!0;break;case re.HUG_CONTENTS:break;case re.FIXED:if(l>e.size.x)return!0;break;default:xe(c)}}let u=e.paddingTop+e.paddingBottom;if(u>0){let c=un(e,t,n,o,r);switch(c){case re.FILL_PARENT:if(s&&!a)return!0;break;case re.HUG_CONTENTS:break;case re.FIXED:if(u>e.size.y)return!0;break;default:xe(c)}}return!1};var t7={width:"100%",height:"100%",position:"relative"};function iB(e){let{parent:t,needsAutolayoutClipper:n,needsClipper:r,websiteContext:o,children:i,listTag:s,styles:{clipperStyles:a,innerStyles:l,overflowStyles:u,borderDisplacement:c,wrapperSizeStyles:d,marqueeSizeStyles:f}}=e,p=Mn(t,o.renderOptions),_=It(t),T={...d,...f,...u},h={};_&&(typeof t.minWidth=="number"&&(h.minWidth="inherit"),typeof t.minHeight=="number"&&(h.minHeight="inherit"),typeof t.maxWidth=="number"&&(h.maxWidth="inherit"),typeof t.maxHeight=="number"&&(h.maxHeight="inherit")),r&&(T={...T,...a});let m;if(n||r){let O=Object.values(u).some(I=>I!==void 0)?"inherit":void 0,g={node:t,innerTag:s,style:{...h,...a,...l,...u,...c,...p?d:t7,borderRadius:O},websiteContext:o,children:i};m=n?nB(g):rB(g)}else m=i;return p?o.sitesRenderers.renderMarquee({node:t,style:T,websiteContext:o,children:m}):m}function zA(e,t){return ES(e,t?.inheritedEffects).some(n=>n.type==="INNER_SHADOW")}
8219function sB({node:e,parent:t,context:n,alwaysRenderBorderStyles:r,websiteContext:o}){if(!zA(e,n))return null;let i=$r(e)||r?HE(e,t):void 0,s={position:"absolute",inset:0,borderRadius:"inherit",pointerEvents:"none",...TS(e,ES(e,n?.inheritedEffects),o.renderOptions),...i};return ne({Tag:"div",key:"innerShadow",nodeId:e.id,idSuffix:"shadow",styleSet:s})}function vh({children:e,context:t,parent:n,renderOptions:r,reverseZIndex:o=!1,codeBehaviorProps:i,renderFigmaLayer:s,websiteContext:a}){let l=n7({children:e,context:B_(r,t,n.absoluteBoundingBox),parent:n});return l.length?l.map(([u,{key:c,context:d}],f)=>s({name:"sites-layer",nodeId:u.id,childKey:c,node:u,parent:n,context:d,zIndex:o?l.length-f:void 0,codeBehaviorProps:i,websiteContext:a})):null}function n7({children:e,context:t,parent:n}){let r={...t},o=t?.masks||[];e.sort((a,l)=>zf(a,n)&&!zf(l,n)?-1:0);let i=[];for(let a of e)"isMask"in a&&a.visible&&a.isMask?r={...r,masks:[...o,a]}:i.push([a,{key:a.key,context:r}]);if(!t?.negativeItemSpacing)return i;let s=0;for(let a=i.length-1;a>=0;a--){let[l]=i[a];if(l.layoutPositioning!=="ABSOLUTE"&&l.visible){s=a;break}}return i.map(([a,l],u)=>a.layoutPositioning==="ABSOLUTE"||u===s?[a,{...l,context:{...l.context,negativeItemSpacing:void 0}}]:[a,l])}var XA="data-breakpoint",jA="data-breakpoint-id",r7="data-width",o7="data-height";function i7(e,t){let n=e.getAssetURL;if(!t||!n)return;let r="filter0";return`${n(t).split("#")[0]}#${r}`}var s7=(e,t,n,r,o,i,s,a,l,u)=>{let{minimizeAutoLayoutWrappers:c,dontUseChildDivForBorderStyles:d,useFigmaComponents:f}=u,p=f&&e.type==="FRAME"&&(e.originalType==="COMPONENT"||e.originalType==="INSTANCE"),_=t&&It(t),T=It(e),h=$r(e)||a,m=jr(e),E=_&&jr(t),O=h&&(sv(e)||T&&!m||T&&m&&!e.strokesIncludedInLayout||_&&!E),g=e.effects&&e.effects.some(L=>L.type==="BACKGROUND_BLUR")&&e.effects.some(L=>L.type==="LAYER_BLUR"),I=r.length>1||r.some(L=>L.needsBackgroundDiv)||i||g||zA(e,l),S;d?S=!1:S=h&&(p||O||I);let A=r.length>0&&I,R;c?R=!1:R=T&&(p||oB(e,t,n,l,u));let y=n.length>0&&(S&&o||R||Za(t)||i||s);return{needsBackgroundDiv:A,needsBorderDiv:S,needsClipper:y,needsAutolayoutClipper:T&&(R||s)}};function aB(e){let{node:t,parent:n,children:r,context:o,zIndex:i,smartAnimateType:s,previousRotation:a,precomputeTransforms:l,renderOptions:u}=e,{shouldOutputVariables:c,codeSyntaxLanguage:d}=u,f=b1(t,n,r,u,o),p=Wo(s,t.maybeAnimateRotation),_=Xn({node:t,parent:n,context:o,zIndex:i,children:r,itemSpacing:f,codeSyntaxLanguage:d,options:{canAnimate:p,previousRotation:a,shouldOutputVariables:c,precomputeTransforms:l},renderOptions:u}),T=cn(o,t);return{itemSpacing:f,nodeCanAnimateRotation:p,layoutStyles:_,opacity:T}}function lB(e){let{node:t,parent:n,children:r,context:o,interactionHandlers:i,transitionProps:s,ref:a,websiteContext:l,previousRotation:u,outerRef:c,codeBehaviorWrapperRef:d,smartAnimateType:f,itemSpacing:p,nodeCanAnimateRotation:_,layoutStyles:T,opacity:h,codeBehaviorProps:m,behaviorProps:E,behaviorKey:O,parentRefObject:g,combinedRef:I,mergedRef:S,renderFigmaLayer:A}=e,{renderOptions:R}=l,{useFigmaClipContentsForOverflow:y,rootNodeStyle:b,shouldOutputVariables:L,codeSyntaxLanguage:D}=R,F=$n({node:t,context:o,websiteContext:l}),U=CE(t.fills,t.assets,{width:t.size.x,height:t.size.y},{isDecorativeImage:t.isDecorativeImage??!1,hasChildren:r.length>0},l),N=s?.transitionData,K=on(N),C=t.interactions??[],M=Fo(C),P=po(C),z=Mn(t,l.renderOptions),Ee=U.some(no=>no.imageProps),pe=U.some(no=>no.videoProps),ye=Ko(t,Ee||pe||z),Le=i7(l,t.effectSvgFileName),We={...Gn(h,L,t.boundVariables?.opacity?.resolvedName,D&&t.boundVariables?.opacity?.resolvedCodeSyntax?.[D]),...Ni(t)},De=t.scrollBehavior==="FIXED"||t.scrollBehavior==="STICKY_SCROLLS",ae=f===ee.INSTANCE_SUBTREE,Oe=o?.withinInteractiveElement||Object.keys(E).length>0||ae,oe=Gs(t,P,M,Oe,z),ft=gr(C,i,Oe,l),et=V_(oe),he=et!==null,Ge=r?.every(no=>no.layoutAlign==="STRETCH")??!0,Ye=t.type==="RECTANGLE"||"clipsContent"in t&&t.clipsContent,ce=ae,{needsBackgroundDiv:tt,needsBorderDiv:pn,needsClipper:Ft,needsAutolayoutClipper:Cr}=s7(t,n,r,U,Ye,ae,z,ce,o,R),sr=a7(t,tt,pn,l),Yi={group:void 0,isInStickyOrFixedTree:De||(o?.isInStickyOrFixedTree??!1),negativeItemSpacing:p&&p<0?p:void 0,withinInteractiveElement:o?.withinInteractiveElement||P||M,parentIsList:he,allChildrenAreFillWidth:Ge,borderDisplacement:pn?void 0:UE(t),constrainingFrameSize:{
8219width:t.size.x,height:t.size.y},inheritedEffects:bf(t,o?.inheritedEffects)},Pr={"data-name":Jr(l,t)};o?.dataAttributes&&Object.entries(o.dataAttributes).forEach(([no,bV])=>{Pr[no]=bV});let ca=$r(t),Dr=av(t,n),{clipperStyles:Ki,containerStyles:zi,borderStyles:vr,sharedBackgroundStyles:Xi}=L1(t,n,We,ce,Le,pn,R),Lp=jn({node:t,parent:n,children:r,renderOptions:R}),Cp=C1({node:t,parent:n,context:o,children:r,renderOptions:R}),ni=r?.length?fc(t,n,o,l):{};n||(b==="component"?ni={overflow:Ye?"clip":void 0}:y?ni={overflow:Ye&&(zi.borderRadius||zi.borderTopLeftRadius||zi.borderTopRightRadius||zi.borderBottomLeftRadius||zi.borderBottomRightRadius)?"clip":void 0}:b==="independent"?ni={overflow:Ye?"clip":void 0}:o?.renderedByCode||l.withBaseStyles&&(Pr["data-page-overflowx"]=ni.overflowX,ni={overflow:"clip"}));let Hl=vr?eB({node:t,smartAnimateType:f,nodeHasStrokes:ca,transitionData:N,borderStyles:vr,strokeColorKeyframeProps:sr?.strokeColorKeyframeProps??null}):null,Pp=_w({node:t,parent:n,children:r,sharedBackgroundStyles:{...Xi,...Dr},backgroundInfo:U,smartAnimateType:f,transitionData:N,context:Yi,fillColorKeyframeProps:sr?.fillColorKeyframeProps??null,websiteContext:l});tt||(T.outer.mixBlendMode||=U[0]?.backgroundStyles?.mixBlendMode);let{mixBlendMode:uO,...Ed}=U[0]?.backgroundStyles??{},Wl=Ft||Cr,da={...zi,...Wl?{}:T.inner,...T.stickyWrapper?xR:{},...Wl?{}:Ki,...Wl?{}:ni,...!tt&&l.withBaseStyles?{...Xi,...Ed}:{},...Qr({node:t,parent:n,transitionProps:s,renderOptions:R,maskStyles:F}),...T.transform3d,...o?.style||{}};ft.onClick&&T.stickyWrapper&&da.display===void 0&&(da.display="block");let cO=t.type==="FRAME"&&t.isBreakpointFrame,Dp=vh({children:r,context:Yi,parent:t,renderOptions:R,reverseZIndex:t.type!=="RECTANGLE"&&"itemReverseZIndex"in t&&!!t.itemReverseZIndex,codeBehaviorProps:{parentRef:g},renderFigmaLayer:A,websiteContext:l}),zN=iB({parent:t,needsAutolayoutClipper:Cr,needsClipper:Ft,websiteContext:l,listTag:Ft&&he?et:void 0,styles:{clipperStyles:Ki,innerStyles:T.inner,overflowStyles:ni,borderDisplacement:Dr,wrapperSizeStyles:Lp,marqueeSizeStyles:Cp},children:tB({parentTransitionProps:t.transitionProps,onTransitionEnd:K,children:Dp,websiteContext:l})});if(cO&&(Pr[jA]=fo(t.id),Pr[XA]="true",Pr[r7]=t.size.x,Pr[o7]=t.size.y,l.isFigmake))return zN;if(n&&(Ft||pn)){let no=y1(t,n);no&&(T.outer.flex=no)}let vp=wn({node:t,parent:n,context:o,transitionProps:s,outerStyles:T.outer,wrapperSizeStyles:Lp,stickyWrapperStyles:T.stickyWrapper,transformChildWrapperStyles:T.transform,renderOptions:R,maskStyles:F}),AV=sr?.strippedProps,XN=Sl({keyframeMotionPropsOverride:AV,node:t,context:o,renderOptions:R,smartAnimateType:f,wrappersToRender:vp}),NV=mr({children:[tt?Pp:null,Ye?null:Hl,zN,sB({node:t,parent:n,context:o,alwaysRenderBorderStyles:ce,websiteContext:l}),Ye?Hl:null]}),yV=Ao({semanticTagInfo:{semanticTag:Ft&&he?"div":oe.semanticTag,interactiveSemanticTag:z&&oe.interactiveSemanticTag==="ul"?null:oe.interactiveSemanticTag},key:O,context:o,styles:da,ref:_?I:S,nodeId:vp.motionLayerContent.nodeId,attributes:{...ft,...Pr,...ye},node:t,keyframeMotionPropsOverride:XN.childKeyframeMotionPropsOverride,wrappers:vp.motionLayerContent,websiteContext:l,transitionProps:{opacity:h,smartAnimateType:f,behaviorProps:E,transitionData:N,onTransitionEnd:K},children:NV});return yr({node:t,parent:n,context:o,transitionProps:s,codeBehaviorProps:m,layerRef:a,outerRef:c,codeBehaviorWrapperRef:d,previousRotation:u,wrappersToRender:vp,websiteContext:l,keyframeMotionPropsOverride:XN.wrapperKeyframeMotionPropsOverride,children:yV})}function a7(e,t,n,r){if(!t&&!n)return null;let o=e.keyframeData;if(!o)return null;let i=Li(o);if(!i)return null;let s=ho(r),a=s?ol(i,s.ease()):i,l=t&&(a.colorAnimate.background!==void 0||a.colorInitial.background!==void 0),u=n&&(a.colorAnimate.borderColor!==void 0||a.colorInitial.borderColor!==void 0);if(!l&&!u)return null;let c=l?{colorInitial:{background:a.colorInitial.background},colorAnimate:{background:a.colorAnimate.background},colorTransition:{background:a.colorTransition.background}}:null,d=u?{colorInitial:{borderColor:a.colorInitial.borderColor},colorAnimate:{borderColor:a.colorAnimate.borderColor},colorTransition:{borderColor:a.colorTransition.borderColor}}:null,f={...i.colorInitial},p={...i.colorAnimate},_={...i.colorTransition};l&&(delete f.background,delete p.background,delete _.background),u&&(delete f.borderColor,delete p.borderColor,delete _.borderColor);let T={...i,colorInitial:f,colorAnimate:p,colorTransition:_};return{fillColorKeyframeProps:c,strokeColorKeyframeProps:d,strippedProps:T}}var xh=(0,od.forwardRef)(function({node:t,parent:n,children:r,context:o,zIndex:i,interactionHandlers:s,transitionProps:a,codeBehaviorProps:l,websiteContext:u},c){let{renderOptions:d}=u,f=rd(),p=rr(),_=(0,od.useRef)(null),T=(0,od.useRef)(null),h=a?.smartAnimateType??ee.NONE,{itemSpacing:m,nodeCanAnimateRotation:E,layoutStyles:O,opacity:g}=aB({node:t,parent:n,children:r,context:o,zIndex:i,smartAnimateType:h,previousRotation:f,precomputeTransforms:p,renderOptions:d}),I=Zr(t,o),{motionProps:S,key:A,ref:R}=to(t.id,t.behaviors,t.assets,{opacity:g,transform:zr(O.outer.transform)},I),y=(0,od.useRef)(null),b=ei(R,y),L=ei(c,b);return Ne(lB({node:t,parent:n,children:r,context:o,interactionHandlers:s,transitionProps:a,ref:c,websiteContext:u,previousRotation:f,outerRef:_,codeBehaviorWrapperRef:T,smartAnimateType:h,itemSpacing:m,nodeCanAnimateRotation:E,layoutStyles:O,opacity:g,codeBehaviorProps:l,behaviorProps:S,behaviorKey:A,parentRefObject:y,combinedRef:b,mergedRef:L,renderFigmaLayer:id}),u)});var ut=v(_e()),CB=v(W()),Vi=v(W());var l7={TOP:"flex-start",BOTTOM:"flex-end",CENTER:"center"},u7={NONE:"none",UNDERLINE:"underline",STRIKETHROUGH:"line-through"},c7={ORIGINAL:"none",SMALL_CAPS:"none",SMALL_CAPS_FORCED:"none",UPPER:"uppercase",LOWER:"lowercase",TITLE:"capitalize"},d7={ORIGINAL:"normal",SMALL_CAPS:"small-caps",SMALL_CAPS_FORCED:"all-small-caps",UPPER:"normal",LOWER:"normal",TITLE:"normal"},f7={SUPER:"0.55em",SUB:"-0.25em",NORMAL:void 0};function bl(e,t,n,r,o){let{shouldOutputVariables:i,codeSyntaxLanguage:s,optimizeForTailwindConversion:a,disableFontFallbacks:l}=o.renderOptions,{fallbackFonts:u,fontFamily:c,fontVariations:d,fontSize:f,fontStyle:p,textCase:_,opentypeFlags:T,letterSpacingUnit:h,letterSpacingValue:m}=e.style,E={};if(c){let g=`${c}:${p}`,I=p7(g,u??[],l);if(i){let D="boundVariables"in e?e.boundVariables:null,F=le(s&&D?.fontFamily?.[0]?.resolvedCodeSyntax?.[s],D?.fontFamily?.[0]?.resolvedName,I);E.fontFamily=F??I}else E.fontFamily=I;E.wordBreak="break-word";let S=n.get(g),A=u?.map(D=>n.get(`${D.fontFamily}:${D.fontStyle}`)).filter(D=>D?.variationAxes?.length)??[],R=!!S?.variationAxes?.length,y=!l&&A.length>0,b=R||A.length>0,L=S?.variationAxes??A[0]?.variationAxes??[];if(b){let D=[...L,{name:"OpticalSize",value:void 0,tag:"opsz"}].filter(F=>d?.[F.name]!==void 0||F.value!==void 0).filter(F=>F.tag==="wght"?!R&&y?!0:(E.fontWeight=d?.[F.name]??F.value,!1):F.tag==="slnt"?F.value===0?(E.fontStyle="normal",!1):d&&F.name in d:!0);D.length>0?E.fontVariationSettings=D.map(F=>{let U=d?.[F.name]??F.value;return`"${F.tag}" ${U}`}).join(", "):a||(E.fontVariationSettings="normal"),S?.italic&&(E.fontStyle="italic")}else E.fontStyle=S?.italic?"italic":"normal"}let O=e.style.fills||"fills"in e&&e.fills||null;if(O?.length===0&&(E.color="transparent",a||(E.WebkitTextFillColor="transparent")),O){let g=O.filter(S=>S.visible!==!1&&S.type==="SOLID"),I=O.filter(S=>S.visible!==!1&&S.type!=="SOLID");if(g.length>0){let S=Df(g.map(A=>
8219new Dt(A.color,o.renderOptions,A.opacity,Vt,A.boundVariables?.color?.resolvedName,s&&A.boundVariables?.color?.resolvedCodeSyntax?.[s])),o.renderOptions);E.color=S.value,a||(E.WebkitTextFillColor=S.value)}if(I.length){let S=CE(O,t,r,{isDecorativeImage:!1,disableImageTag:!0},o)[0]?.backgroundStyles;S&&Object.keys(S).length&&(E.color="transparent",E.backgroundClip="text",a||(E.WebkitBackgroundClip="text",E.WebkitTextFillColor="transparent"),Object.assign(E,S))}}if(_){let g=c7[_]||"none";g!=="none"&&(E.textTransform=g);let I=d7[_]||"normal";I!=="normal"&&(E.fontVariantCaps=I)}if(T&&(E.fontFeatureSettings=Object.entries(T).map(([g,I])=>`"${g.toLowerCase()}" ${I}`).join(", ")),f&&(E.fontSize=e.style.responsiveTextStyleVariants?.length&&!a?`var(--responsive-font-size,${x(f)}px)`:`${x(f)}px`),h&&m!==void 0){let g=h==="PIXELS"?`${x(m,4)}px`:`${x(m/100*(f??16),4)}px`;E.letterSpacing=e.style.responsiveTextStyleVariants?.length&&!a?`var(--responsive-letter-spacing,${g})`:g}if(!a&&e.style.responsiveTextStyleVariants?.length){let g=e.style.responsiveTextStyleVariants.sort((I,S)=>I.minWidth-S.minWidth);E.media=Object.fromEntries(g.map(I=>{let S=bl({...e,style:I.style},t,n,r,o),A={};if(I.style.fontSize!==void 0&&(A["--responsive-font-size"]=`${x(I.style.fontSize)}px`),I.style.letterSpacing!==void 0){let U=I.style.letterSpacingUnit==="PIXELS"?`${x(I.style.letterSpacing,4)}px`:`${x(I.style.letterSpacing/100*(I.style.fontSize??16),4)}px`;A["--responsive-letter-spacing"]=U}let R=yl(I,o.renderOptions);R&&(A["--responsive-line-height"]=R);let{fontSize:y,letterSpacing:b,lineHeight:L,...D}=S,F={...D,...A};return[`(min-width: ${I.minWidth}px)`,F]}))}if(i){let g="boundVariables"in e?e.boundVariables:null;E.fontStyle&&(E.fontStyle=le(s&&g?.fontStyle?.[0]?.resolvedCodeSyntax?.[s],g?.fontStyle?.[0]?.resolvedName,E.fontStyle)??E.fontStyle),E.fontWeight&&(E.fontWeight=le(s&&g?.fontWeight?.[0]?.resolvedCodeSyntax?.[s],g?.fontWeight?.[0]?.resolvedName,E.fontWeight)??E.fontWeight),E.fontSize&&(E.fontSize=le(s&&g?.fontSize?.[0]?.resolvedCodeSyntax?.[s],g?.fontSize?.[0]?.resolvedName,E.fontSize)??E.fontSize),E.letterSpacing&&(E.letterSpacing=le(s&&g?.letterSpacing?.[0]?.resolvedCodeSyntax?.[s],g?.letterSpacing?.[0]?.resolvedName,E.letterSpacing)??E.letterSpacing)}return E}function uB(e,t,n){let r={};return e.textAlignHorizontal&&e.textAlignHorizontal!=="LEFT"?r.textAlign=e.textAlignHorizontal==="JUSTIFIED"?"justify":e.textAlignHorizontal?.toLowerCase():(e.accessibleHTMLTag==="BUTTON"||n?.withinInteractiveElement||n?.hasButton)&&(!e.textAlignHorizontal||e.textAlignHorizontal==="LEFT")&&(r.textAlign="left"),e.textAlignVertical!=="TOP"&&(r.display="flex",r.flexDirection="column",r.justifyContent=l7[e.textAlignVertical||"TOP"]),t.leadingTrim==="CAP_HEIGHT"&&(r.textBoxTrim="trim-both",r.textBoxEdge="cap alphabetic"),r}function $A(e,t,n,r){return bl(t,e.assets,n,{width:e.size.x,height:e.size.y},r)}function ZA(e,t,n,r,o){let{renderOptions:i}=o,{codeSyntaxLanguage:s}=i,a=bl(n,e.assets,r,{width:e.size.x,height:e.size.y},o);function l(h){return n.style[h]??t.style[h]??e.style[h]}let u=l("textDecoration"),c=l("textDecorationThicknessUnit"),d=l("textDecorationThicknessValue");if(u&&u!==TP.NONE&&d!==0){a.textDecorationLine=n.characters.length>0?u7[u]:void 0;let h=l("textDecorationSkipInk"),m=l("textUnderlineOffsetUnit"),E=l("textUnderlineOffsetValue"),O=l("textDecorationStyle"),g=l("textDecorationFills");if(h!==void 0&&(a.textDecorationSkipInk=h?void 0:"none"),E!==void 0?a.textUnderlineOffset=`${E}${m==="PIXELS"?"px":"%"}`:a.textUnderlinePosition="from-font",d!==void 0?a.textDecorationThickness=`${d}${c==="PIXELS"?"px":"%"}`:a.textDecorationThickness="from-font",O!==void 0&&(a.textDecorationStyle=O),g!==void 0){let I=Df(g.filter(S=>S.type==="SOLID").map(S=>new Dt(S.color,i,S.opacity,Vt,S.boundVariables?.color?.resolvedName,s&&S.boundVariables?.color?.resolvedCodeSyntax?.[s])),i);a.textDecorationColor=I.value}}let f=n.style.fontVariantPosition??t.style.fontVariantPosition??e.style.fontVariantPosition;if(f&&(a.verticalAlign=f7[f],f!=="NORMAL")){let h=l("fontSize");a.fontSize=`${(h||0)*.645}px`}let p=yl(n,i),_=p??yl(t,i)??yl(e,i)??"normal",T=p?n.style.responsiveTextStyleVariants:e.style.responsiveTextStyleVariants;return a.lineHeight=JA({responsiveTextStyleVariants:T,defaultLineHeight:_,renderOptions:i}),(n.style.hyperlink||t.style.hyperlink||e.style.hyperlink)&&(a.cursor="pointer"),a}var cB=(e,t)=>{if(!(e==="NONE"||e==="UNORDERED"))return t===2||t===5?"lower-alpha":t===3?"lower-roman":"decimal"},JA=({responsiveTextStyleVariants:e,defaultLineHeight:t,renderOptions:n})=>{let{optimizeForTailwindConversion:r}=n;return e?.some(i=>yl(i,n))&&!r?`var(--responsive-line-height,${t})`:t},yl=(e,t)=>{let{shouldOutputVariables:n,codeSyntaxLanguage:r}=t,o=e.style.lineHeightUnit==="INTRINSIC_%"?e.style.lineHeightPercent===void 0||e.style.lineHeightPercent===100?void 0:`${e.style.lineHeightPercent}%`:e.style.lineHeightUnit==="FONT_SIZE_%"?`${x((e.style.lineHeightPercentFontSize??100)/100)}`:e.style.lineHeightUnit==="PIXELS"&&e.style.lineHeightPx!==void 0?`${x(e.style.lineHeightPx)}px`:void 0;if(n&&o){let i="boundVariables"in e?e.boundVariables:null;return le(r&&i?.lineHeight?.[0]?.resolvedCodeSyntax?.[r],i?.lineHeight?.[0]?.resolvedName,o)??o}return o},qA=e=>e.textAutoResize==="WIDTH_AND_HEIGHT"||e.style.textTruncation==="ENDING"&&e.style.maxLines===1;function p7(e,t,n=!1){return n?`"${e}"`:[`"${e}"`,...t.map(r=>`"${r.fontFamily}:${r.fontStyle}
8219"`),"sans-serif"].join(",")}function dB(e){if(typeof Intl<"u"&&Intl.Segmenter)try{let t=new Intl.Segmenter(void 0,{granularity:"grapheme"});return Array.from(t.segment(e),n=>n.segment)}catch{return Array.from(e)}return Array.from(e)}function Mh(e){if(typeof Intl<"u"&&Intl.Segmenter)try{let t=new Intl.Segmenter(void 0,{granularity:"grapheme"});return Array.from(t.segment(e)).length}catch{return Array.from(e).length}return Array.from(e).length}var fB=/(\s+)/;function pB(e,t){let{characterStyleOverrides:n,characters:r,lineIndentations:o,lineStyleOverrides:i,lineTextDirections:s,listStartOffsets:a,lineTypes:l,styleOverrideTable:u,lineStartsWithPunctuation:c,resolvedParagraphValues:d}=e;if(typeof r!="string"){let O=new ht("TextNode.characters is not a string");O.errorDetail=JSON.stringify({type:typeof r,value:r,nodeId:e.id,nodeName:e.name}),Me.reportError(O),console.error("TextNode.characters is not a string:",{type:typeof r,value:r,nodeId:e.id,nodeName:e.name})}let p=(typeof r=="string"?r:"").replace(/\r/g," ").split(` 8220`),_=e.style.maxLines;_&&(p=p.slice(0,_));let T=0,h=0,m=e.style.fontSize;return p.map((O,g)=>{let I=i[g]?u[i[g]]||{}:{},S=0,A=0,R=(e.renderTextWordHook?O.split(fB):e.renderTextCharacterHook?dB(O):e.renderTextLineHook?[O]:Array.from(O)).reduce((L,D)=>{let F=T+S,U=Array.from(D);if(e.renderTextWordHook||e.renderTextLineHook){let N=U.map((M,P)=>n[F+P]),K=N.every(M=>M===N[0]),C={};if(e.renderTextWordHook){if(D.length===0)return L;fB.test(D)||(C.wordIndex=A,A++),K||(C.originalWord=D)}K?L.push({characters:D,override:N[0],renderHookMetadata:C}):U.forEach((M,P)=>{L.push({characters:M,override:N[P],renderHookMetadata:C})})}else if(e.renderTextCharacterHook)L.push({characters:D,override:n[F],renderHookMetadata:{globalCharacterIndex:h}});else{let N=n[F],K=L[L.length-1];K&&K.override===N?K.characters+=D:L.push({characters:D,override:N})}return S+=U.length,h++,L},[]).map(L=>{let D=L.override?u[L.override]??{}:{};t.fontSize||(D.fontSize=D.fontSize??m);let F=e.style.responsiveTextStyleVariants;if(!D.responsiveTextStyleVariants){let N=F?.filter(K=>K.style.fontSize).map(K=>({...K,style:{fontSize:K.style.fontSize}}));N?.length&&(D.responsiveTextStyleVariants=N)}let U={characters:L.characters,style:D};return L.renderHookMetadata&&(U.renderHookMetadata=L.renderHookMetadata),U});T+=O.length;let y=n[T]&&u[n[T]]||{};T+=1,R.length===0&&R.push(m7(l[g]&&l[g]!==Da.NONE?m:y.fontSize??m));let b=d?.[g];return{spans:R,style:b?{...I,...b}:I,direction:s?.[g],indentation:o[g]||0,startOffset:a[g]??void 0,listOptions:{type:l[g]||Da.NONE},startsWithPunctuation:!!c?.[g]}})}function m7(e){return{characters:"",style:{fontSize:e}}}function QA(e,t,n){if(t&&!n)return"a";switch(e.accessibleHTMLTag){case"H1":return"h1";case"H2":return"h2";case"H3":return"h3";case"H4":return"h4";case"H5":return"h5";case"H6":return"h6";case"DIV":return"div";case"P":case"AUTO":default:return"p"}}function mB(e,t,n){return e?n?"div":"a":t?n?"div":"button":"div"}function Gh({children:e}){return e}function E7(e){return e.length>0&&e.every(t=>typeof t!="string"||t==="")}function _B(e,t,n){if(!e.characters.length)return{elements:["\u200B"]};if(n&&TB.test(e.characters)){let r=h7(e.characters,n),o=EB(r,t);return{elements:o,dropWrapper:E7(o)}}return{elements:EB([e.characters],t)}}var eN=/[\u2028\u2029]/,EB=(e,t)=>e.flatMap(n=>typeof n!="string"?[n]:n.split(eN).flatMap((r,o,i)=>o<i.length-1||t&&r===""?[r,ne({Tag:"br",key:"br"+o,attributes:{"aria-hidden":!0}})]:[r])),TB=/[\u{E000}-\u{F8FF}\u{F0000}-\u{10FFFD}]/u,_7=/([\u{E000}-\u{F8FF}]|[\u{F0000}-\u{10FFFD}])/u;function T7(e,t){let n=String(e.codePointAt(0));for(let r of t.groups){let o=r.codepointToName[n];if(o!==void 0)return{tagName:r.tagName,body:r.bodyTemplate.replace("{{name}}",o)}}}function h7(e,t){if(!TB.test(e))return[e];let n=new Map;return e.split(_7).reduce((r,o,i)=>{if(!o)return r;if(i%2===0)r.push(o);else{n.has(o)||n.set(o,T7(o,t));let s=n.get(o);s?r.push(ne({Tag:s.tagName,children:[aP(s.body)]})):r.push(o)}return r},[])}var tN=Da.NONE,O7="sp",g7="p",hB="s",I7="ws",S7=e=>e===void 0?void 0:`${e}px`;function gB(e){if(e)return"children"in e||e.block.listOptions&&e.block.listOptions.type!=="NONE"?"list":"paragraph"}function R7(e,t,n,r,o,i){return t.map((s,a)=>mr({key:a,children:RB({blockKey:a,tree:s,node:e,context:n,nextBlockType:gB(t[a+1]),props:r,websiteContext:o,outerStyles:i})}))}function IB(e){let{node:t,parent:n,context:r,zIndex:o,smartAnimateType:i,previousRotation:s,precomputeTransforms:a,renderOptions:l}=e,{shouldOutputVariables:u,codeSyntaxLanguage:c}=l,d=Wo(i,t.maybeAnimateRotation),f=Xn({node:t,parent:n,context:r,zIndex:o,children:[],codeSyntaxLanguage:c,options:{canAnimate:d,previousRotation:s,shouldOutputVariables:u,precomputeTransforms:a},renderOptions:l}),p=cn(r,t);return{nodeCanAnimateRotation:d,layoutStyles:f,opacity:p}}function SB(e){let{node:t,parent:n,context:r,interactionHandlers:o,transitionProps:i,codeBehaviorProps:s,ref:a,websiteContext:l,previousRotation:u,outerRef:c,codeBehaviorWrapperRef:d,smartAnimateType:f,canSmartAnimateInstance:p,nodeCanAnimateRotation:_,layoutStyles:T,opacity:h,behaviorProps:m,behaviorKey:E,behaviorsRef:O,mergedRef:g}=e,I=l.websiteData.fonts,S=l.renderOptions,{shouldOutputVariables:A,codeSyntaxLanguage:R,optimizeForTailwindConversion:y}=S,b=$n({node:t,context:r,websiteContext:l}),L=bl(t,t.assets,I,{width:t.size.x,height:t.size.y},l),D=t.interactions??[],F=Fo(D),U=po(D)||t.style.hyperlink!=null,N=Ko(t),K=td(t,S),C=xs(t,n,r)||_,M=jn({node:t,parent:n,children:null,renderOptions:S}),P=i?.transitionData,z=on(P),Ee={fontSize:Object.values(t.styleOverrideTable).find(he=>he.fontSize)?void 0:x(t.style.fontSize)},pe={...T.inner,...Gn(h,A,t.boundVariables?.opacity?.resolvedName,R&&t.boundVariables?.opacity?.resolvedCodeSyntax?.[R]),...Ni(t),...RD(Rs(t,!1),S),...L,...uB(t,t.style,{withinInteractiveElement:r?.
8220withinInteractiveElement,hasButton:F}),...b,...T.transform3d,...r?.style||{},fontSize:Ee.fontSize?L.fontSize:0,lineHeight:0};if(y||(pe["--letter-spacing"]=pe.letterSpacing??0),t.style.textTruncation==="ENDING"){let he=t.style.maxLines;he&&he>1&&(y||(pe.display="-webkit-box",pe.WebkitLineClamp=he,pe.WebkitBoxOrient="vertical"),pe.height&&(pe.maxHeight=pe.height,pe.height=void 0)),pe.overflow="hidden",pe.textOverflow="ellipsis"}qA(t)&&(pe.whiteSpace="nowrap");let ye=r?.withinInteractiveElement||Object.keys(m).length>0||f===ee.INSTANCE_SUBTREE,Le=gr(D,o,ye,l),We={semanticTag:mB(U,F,ye)},De=yB(t.style.hyperlink,ye,l),ae=l.renderOptions.optimizeForTailwindConversion?void 0:"textContents",Oe=Mn(t,l.renderOptions),oe=wn({node:t,parent:n,context:r,transitionProps:i,outerStyles:T.outer,wrapperSizeStyles:M,stickyWrapperStyles:T.stickyWrapper,transformChildWrapperStyles:T.transform,renderOptions:S}),ft=he=>{let Ge=he;if(he.renderTextHook){let ca=he.renderTextHook.renderText({characters:he.characters,length:Mh(he.characters),TextComponent:Dr=>(Dr.characters&&(he={...he,characters:Dr.characters}),null)});ca?.props?.characters&&(Ge={...he,characters:ca.props.characters})}let Ye=A7(pB(Ge,Ee),Ee),ce=p||Ye.length>1||U||F||t.textAlignVertical!=="TOP"||Oe||t.style.hangingList||K||r?.parentIsList,tt=_?O:g,pn={...N,...Le},Ft={nodeId:oe.motionLayerContent.nodeId,additionalClassName:ae,styles:pe,ref:tt,attributes:pn},Cr=ce?void 0:oe.motionLayerContent.outerStyles,sr=R7(he,Ye,r,ce?void 0:Ft,l,Cr),Yi=Oe?l.sitesRenderers.renderMarquee:Gh,md=C?Nh:Gh,Pr=ce?Ao:Gh;return md({ref:_||p||K?a:null,context:r,node:t,parent:n,childWrapperStyles:{...T.transform},transitionData:P,canAnimate:_,smartAnimateType:f,previousRotation:u,transformRef:c,codeBehaviorWrapperRef:d,outerStyles:oe.transformWrapper.outerStyles,tag:oe.transformWrapper.tag,nodeId:oe.transformWrapper.nodeId,idSuffix:oe.transformWrapper.idSuffix,websiteContext:l,children:Sh(oe.customEffectWrapper,mr({key:E,children:Pr({semanticTagInfo:{interactiveSemanticTag:null,semanticTag:We.semanticTag},...Ft,context:r,node:t,wrappers:oe.motionLayerContent,websiteContext:l,transitionProps:{opacity:h,smartAnimateType:f,behaviorProps:m,transitionData:P,onTransitionEnd:z},attributes:{...pn,...De,...r?.dataAttributes},children:Yi({node:he,websiteContext:l,children:sr})})}),t,l.renderOptions)})},et=K?l.sitesRenderers.renderCodeBehaviorWrapper({codeBehaviors:t.behaviors.code,ref:d,outerStyles:oe.codeBehaviorWrapper.outerStyles,tag:oe.codeBehaviorWrapper.tag,websiteContext:l,children:l.sitesRenderers.renderRenderHooksConsumer({node:t,renderNode:he=>Ne(ft(he),l),codeBehaviorProps:{...s,transformRef:c}})}):ft(t);return mp({nodeId:oe.stickyWrapper.nodeId,idSuffix:oe.stickyWrapper.idSuffix,stickyWrapperStyles:T.stickyWrapper,tag:oe.stickyWrapper.tag,children:et})}function A7(e,t){let n={children:[],type:tN,lineStyleType:void 0};t&&(n.style=t);let r=[n];for(let o of e){let i={block:o,style:t},s=o.listOptions?.type||tN;if(s!=="NONE"){let a=o.indentation+1;for(;r.length>a||r.length===a&&r[r.length-1].type!=="NONE"&&r[r.length-1].type!==s;)r.pop();for(;r.length<a;){let l=a-r.length===1?o.startOffset:void 0,u={children:[],lineStyleType:cB(s,r.length),type:s,start:l,style:{...o.style,...t}};r[r.length-1].children.push(u),r.push(u)}}else r=[n];r[r.length-1].children.push(i)}return n.children}function RB({nextBlockType:e,tree:t,node:n,context:r,blockKey:o,props:i,websiteContext:s,outerStyles:a}){if("children"in t)return b7({listNode:t,node:n,props:i,nextBlockType:e,websiteContext:s,outerStyles:a,children:t.children.map((f,p)=>mr({key:p,children:RB({blockKey:p,tree:f,node:n,context:r,nextBlockType:gB(t.children[p+1]),websiteContext:s,outerStyles:void 0})}))});let{block:l}=t,u;if(n.renderTextWordHook){let f=N7(l.spans);u=[];for(let p of f){if(p.length===0)continue;let _=p[0]?.renderHookMetadata?.wordIndex;if(_==null)for(let T of p)u.push(nN({spanKey:u.length,span:T,block:l,node:n,context:r,blockKey:o,websiteContext:s}));else u.push(OB({substringKey:u.length,spans:p,node:n,block:l,context:r,blockKey:o,wordIndex:_,websiteContext:s}))}}else n.renderTextLineHook?u=[OB({substringKey:0,spans:l.spans,node:n,block:l,context:r,blockKey:o,websiteContext:s})]:u=l.spans.map((f,p)=>nN({spanKey:p,span:f,block:l,node:n,context:r,spanIndex:p,blockKey:o,websiteContext:s}));if((l.listOptions?.type||tN)!=="NONE")return L7({node:n,block:l,commonFontSize:t.style?.fontSize,nextBlockType:e,websiteContext:s,children:u});let d=e===void 0;return u.length===1&&!n.renderTextCharacterHook&&!n.renderTextWordHook&&!n.renderTextLineHook&&!n.renderTextHook?y7({node:n,context:r,block:l,isLastBlock:d,props:i,websiteContext:s,outerStyles:a}):C7({node:n,block:l,children:u,props:i,isLastBlock:d,websiteContext:s,outerStyles:a})}function N7(e){let t=[];for(let n of e){let r=t[t.length-1];if(!r){t.push([n]);continue}r[0]?.renderHookMetadata?.wordIndex===n.renderHookMetadata?.wordIndex?r.push(n):t.push([n])}return t}var rN=(e,t)=>e===void 0?t:t===void 0?e:e.add(t);function y7({node:e,context:t,block:n,isLastBlock:r,props:o,websiteContext:i,outerStyles:s}){n.spans.length;let{style:a,props:l}=NB({node:e,block:n,isLastBlock:r,websiteContext:i}),u=!!e.style.hyperlink,c=!!t?.withinInteractiveElement||u,{style:d,className:f,children:p,attributes:_,isHyperlink:T,dropWrapper:h}=iN({node:e,withinInteractiveElement:c,block:n,span:n.spans[0],websiteContext:i});if(h)return mr({children:p});let{additionalClassName:m,styles:E,attributes:O,...g}=o??{},I={display:"block",...s,...E,...a,...d,marginBottom:rN(s?.marginBottom,a.marginBottom)},S=QA(e,T,c);return ne({Tag:S,key:O7,styleSet:[I,f,m],attributes:{...O,...l,..._},...g,children:p})}function b7({listNode:e,node:t,children:n,nextBlockType:r,props:o,websiteContext:i,outerStyles:s}){let a=e.children.find(g=>"block"in g)?.block,l=a?.spans[0],u=i.websiteData.fonts,c=e.type===Da.ORDERED,d=i.renderOptions,{disableTextMarkerVariables:f}=d,p=a&&l?ZA(t,a,l,u,i):{},_=f?{}:{"--list-marker-background-clip":p.backgroundClip??"initial","--list-marker-color":p.color??"initial","--list-marker-font-size":p.fontSize??"initial","--list-marker-line-height":p.lineHeight??"initial","--list-marker-text-fill-color":p.WebkitTextFillColor??"initial","--list-marker-vertical-align":p.verticalAlign??"initial"},{additionalClassName:T,styles:h,attributes:m,...E}=o??{},O={...s,...h,..._,listStyleType:c?e.lineStyleType:void 0,marginLeft:t.style.hangingList?"-1.5em":void 0,marginBottom:rN(s?.marginBottom,oN(t,void 0,r,d))};return ne({Tag:c?"ol":"ul",styleSet:[O,T],attributes:{...m,...c?{start:e.start}:{}},...E,children:n})}var oN=(e,t,n,r)=>{let{shouldOutputVariables:o,codeSyntaxLanguage:i}=r;if(n==="paragraph"){let s=t?.style.paragraphSpacing!==void 0?t.style.paragraphSpacing:e.style.paragraphSpacing;return o?cE(i&&e.boundVariables?.paragraphSpacing?.[0]?.resolvedCodeSyntax?.[i],e.boundVariables?.paragraphSpacing?.[0]?.resolvedName,`${s}px`)??Y.px(s):Y.px(s)}if(n==="list")return t?.style.listSpacing!==void 0?Y.px(t.style.listSpacing):Y.px(e.style.listSpacing)};function AB(e){switch(e){case"BALANCE":return"balance";case"PRETTY":return"pretty";default:return}}var kh=1.5;function L7({children:e,node:t,block:n,commonFontSize:r,nextBlockType:o,websiteContext:i}){let s=i.websiteData.fonts,{renderOptions:a}=i,{optimizeForTailwindConversion:l}=a,u=t.style.textAlignHorizontal==="LEFT"||t.style.textAlignHorizontal==="JUSTIFIED",c=$A(t,n,s,i),d=t.behaviors?.code?.length||n.spans.some(_=>_.characters.match(/\s{2,}/)),f=l&&n.listOptions?.type===Da.UNORDERED?"disc":void 0,p={whiteSpace:d?"pre-wrap":void 0,...c,listStylePosition:u?void 0:"inside",marginInlineStart:r?S7(kh*n.indentation*r):Y.var("--list-marker-font-size",0).multiply(kh).multiply(n.indentation).toStyleValue({forTailwind:l}),marginBottom:oN(t,n,o,a),"--letter-spacing":l?void 0:0,listStyleType:f,textWrap:AB(n.style.textWrapStyle)};return ne({Tag:"li",styleSet:p,children:e})}function C7({node:e,block:t,children:n,isLastBlock:r,props:o,websiteContext:i,outerStyles:s}){let{additionalClassName:a,styles:l,attributes:u,...c}=o??{},{style:d,props:f}=NB({node:e,block:t,isLastBlock:r,websiteContext:i}),p={...s,...l,...d,marginBottom:rN(s?.marginBottom,d.marginBottom)},_=QA(e,!1,!1);return ne({Tag:_,key:g7,styleSet:[p,a],attributes:{...u,...f},...c,children:n})}function NB({node:e,block:t,isLastBlock:n,websiteContext:r}){let o=r.websiteData.fonts,i=r.renderOptions,{shouldOutputVariables:s,codeSyntaxLanguage:a}=i,l=$A(e,t,o,r),u={lineHeight:0,...l,marginBottom:oN(e,t,n?void 0:"paragraph",i),textWrap:AB(t.style.textWrapStyle)},c=t.style.paragraphIndent??e.paragraphIndent;c&&(u.textIndent=c,s&&u.textIndent&&(u.textIndent=le(a&&e.boundVariables?.paragraphIndent?.[0]?.resolvedCodeSyntax?.[a],e.boundVariables?.paragraphIndent?.[0]?.resolvedName,isNaN(Number(u.textIndent))?u.textIndent:`${u.textIndent}px`)??u.textIndent));let d=l.fontSize??x(e.style.fontSize);return e.style.hangingPunctuation&&t.startsWithPunctuation&&(i.optimizeForTailwindConversion?u.textIndent=`calc(1px * (${c??0}px-0.45*${d}
8220px))`:u.textIndent=`calc(${c??0}px - 0.45 * ${d}px)`),e.style.textTruncation==="ENDING"&&(e.style.maxLines===1&&(u.overflow="hidden",u.textOverflow="ellipsis"),u.fontSize=d),(e.characters.match(/\s{2,}/)||e.behaviors?.code?.length)&&(u.whiteSpace=qA(e)?"pre":"pre-wrap"),{style:u,props:{dir:t.direction}}}function nN({node:e,context:t,block:n,span:r,spanIndex:o=0,blockKey:i,spanKey:s,websiteContext:a}){let l=!!e.style.hyperlink,u=!!t?.withinInteractiveElement||l,{style:c,className:d,children:f,attributes:p,isHyperlink:_}=iN({node:e,withinInteractiveElement:u,block:n,span:r,websiteContext:a}),T=[c,d],h=r.renderHookMetadata?.globalCharacterIndex,m;if(!e.renderTextCharacterHook)m=f;else{let O=e.renderTextCharacterHook.renderTextCharacter({character:r.characters,index:o,globalIndex:h??0,columnIndex:o,lineNumber:i,characters:e.characters,TextCharacterComponent:g=>g.character&&eN.test(g.character)?a.renderElement({Tag:"br"}):a.renderElement({Tag:"span",children:g.character??r.characters})});m=[O!=null?Ot(O):r.characters]}let E=ne({Tag:"span",key:`${hB}-${s}`,styleSet:T,attributes:p,children:m});return _&&!u?ne({Tag:"a",key:`${hB}-${s}`,styleSet:T,attributes:p,children:E}):E}function OB(e){return mr({key:`${I7}-${e.substringKey}`,children:P7(e)})}function P7({node:e,spans:t,block:n,context:r,blockKey:o,wordIndex:i=0,websiteContext:s}){let a=!!e.style.hyperlink,l=!!r?.withinInteractiveElement||a,{style:u,className:c,attributes:d}=iN({node:e,withinInteractiveElement:l,block:n,span:t[0],websiteContext:s}),f=t.map((E,O)=>nN({spanKey:O,span:E,block:n,node:e,context:r,blockKey:o,websiteContext:s})),p=null,_=e.renderTextWordHook;if(_!=null){let E=t[0]?.renderHookMetadata?.originalWord??t[0]?.characters??"";p=_.renderTextWord({word:E,index:i,characters:e.characters,length:Mh(E),TextWordComponent:O=>
8220O.word==null||O.word===E?s.renderFragment({children:f.map(g=>Ne(g,s))}):s.renderElement({Tag:"span",children:O.word})})}let T=null,h=e.renderTextLineHook;if(h!=null){let E=t.map(O=>O.characters).join("");T=h.renderTextLine({line:E,index:o,characters:e.characters,length:Mh(E),TextLineComponent:O=>O.line==null||O.line===E?s.renderFragment({children:f.map(g=>Ne(g,s))}):s.renderElement({Tag:"span",children:O.line})})}let m=p!=null?[Ot(p)]:T!=null?[Ot(T)]:f;return ne({Tag:"span",styleSet:[u,c],attributes:d,children:m})}function iN({node:e,withinInteractiveElement:t,block:n,span:r,websiteContext:o}){let i=o.websiteData.fonts,s=o.renderOptions,{disableAdjustLetterSpacing:a}=s,l=ZA(e,n,r,i,o),u=r===n.spans[n.spans.length-1],c=u&&D7(r,e.style),d=!a&&u&&c&&e.layoutAlign!=="STRETCH"&&e.layoutGrow!==1?"adjustLetterSpacing":void 0,{elements:f,dropWrapper:p}=_B(r,u,o.renderOptions.textCodepointSubstitution),_=r.style.hyperlink??n.style.hyperlink;if(_){let h=yB(_,t,o);return{isHyperlink:!0,dropWrapper:p,style:l,className:d,children:f,attributes:h}}return{isHyperlink:!1,dropWrapper:p,style:l,className:d,children:f}}function D7(e,t){return Boolean(e?.style.letterSpacing||t.letterSpacing)}function yB(e,t,n){if(!e||!e.type)return{};if(e.type==="NODE"&&e.nodeID)return hf(s=>{s.preventDefault(),s.stopPropagation(),I_(e.nodeID,n)},e.type,e.nodeID,!1,t,n);let r=!!e.openInNewTab;return hf(i=>{i.preventDefault(),i.stopPropagation(),window.open(e.url,r?"_blank":"_self")},e.type,e.url,r,t,n)}var bB=v(W());function Fh(e,t,n){return Ae((0,bB.useMemo)(()=>de(e),t),n)}var LB=v(W());function v7(e,t){if(t){e.stack+=` 8221 8222React stack:`+t.componentStack;let n=new Error("React component stack where the error occurred");n.stack=t.componentStack,e.cause=n}}var ra=class extends LB.default.Component{state={hasError:!1,error:null,errorInfo:null};componentDidCatch(t,n){this.setState({error:t,errorInfo:n}),v7(t,n),this.context.reportError(t,{"error-boundary-name":this.props.name}),this.context.setMaterializationError(this.props.nodeId,{nodeName:this.props.name,nodeId:this.props.nodeId,errorMessage:t.stack})}componentWillUnmount(){this.context.setMaterializationError(this.props.nodeId)}render(){return this.state.error?null:this.props.children}};Po(ra,"contextType",Lf);var oa=ra;var x7={fontFamily:'"Inter:Regular"',fontSize:"11px",fontWeight:"400",lineHeight:"1.5"},M7=16,PB={cursor:"pointer",textDecorationLine:"underline"},Ll=(0,Vi.createContext)({getRichTextBlockStyle:e=>({}),getRichTextSpanStyle:(e,t)=>({})});function Cl(e){let t={};return(e.format||e.format!=="")&&(t.textAlign=e.format),e.direction&&(t.direction=e.direction),t}function DB(e){switch(e.tag){case"h1":return"HEADING1";case"h2":return"HEADING2";case"h3":return"HEADING3";case"h4":return"HEADING4";case"h5":return"HEADING5";case"h6":return"HEADING6";default:xe(e.tag)}}function G7({lexicalNode:e,parentStyleClass:t,websiteContext:n}){let{getRichTextSpanStyle:r}=(0,Vi.useContext)(Ll),o={...r(t??"PARAGRAPH",e),whiteSpace:"pre-wrap"};return n.renderElement({Tag:"span",styleSet:o,children:e.text})}function k7({lexicalNode:e,children:t,websiteContext:n}){let{getRichTextBlockStyle:r}=(0,Vi.useContext)(Ll),o={...Cl(e),...r(DB(e))};switch(e.tag){case"h1":case"h2":case"h3":case"h4":case"h5":case"h6":return n.renderElement({Tag:e.tag,styleSet:o,children:t});default:xe(e.tag)}}function F7({lexicalNode:e,children:t,websiteContext:n}){let{getRichTextBlockStyle:r}=(0,Vi.useContext)(Ll),o={...Cl(e),...r("PARAGRAPH")};return n.renderElement({Tag:"p",styleSet:o,children:e.children.length===0?(0,ut.jsx)("br",{}):t})}function w7({lexicalNode:e,children:t,websiteContext:n}){let{getRichTextBlockStyle:r}=(0,Vi.useContext)(Ll),o={...Cl(e),...r("PARAGRAPH")};return n.renderElement({Tag:"blockquote",styleSet:o,children:(0,ut.jsx)("p",{children:t})})}function B7({lexicalNode:e,children:t,websiteContext:n}){let r={...Cl(e),...PB},o=e.url,i=e.target??"",s=n.env;if(s){let a=e.target==="_blank",l=Tf(e.url,a,s);o=l.url,i=l.target}return n.renderElement({Tag:"a",styleSet:r,attributes:{href:o,rel:e.rel??"",target:i,title:e.title??""},children:t})}
8222function U7(e,t,n){return e?t&&n?`${e}/${n}`:e:null}function V7({lexicalNode:e,children:t,websiteContext:n}){let r={...Cl(e),...PB},o=e.cmsTarget?.cmsItemId,i=o?n.cmsBundleData?.slugByItemId.get(o):void 0,s=n.websiteData.guidToUrl.get(e.nodeId);if(o&&!n.cmsBundleData)return(0,ut.jsx)(ut.Fragment,{children:t});let a=U7(s,o,i);if(!a)return(0,ut.jsx)(ut.Fragment,{children:t});let l=n.env,u=()=>{n.preloadLocation(a)},c=l==="preview"?{role:"link",tabIndex:0,onClick:d=>{d.preventDefault(),n.setLocation({url:a})},onMouseDown:u}:{href:a,target:"_self",onMouseDown:u};return n.renderElement({Tag:"a",styleSet:r,attributes:c,children:t})}function H7({lexicalNode:e,websiteContext:t}){let{getAssetURL:n,websiteData:{assets:r}}=t,o={maxWidth:"100%",display:"inline-block"};e.isFillWidth&&(o.width="100%");let i="",s=Fh(a=>{let l=r.get(e.hash);return l?a(l):null},[e.hash]);return s?.url&&(i=n(s.url)),t.renderElement({Tag:"img",styleSet:o,attributes:{src:i,alt:e.altText,loading:"lazy"}})}function W7({lexicalNode:e,children:t,websiteContext:n}){let{getRichTextBlockStyle:r}=(0,Vi.useContext)(Ll),o=r("PARAGRAPH"),i=Number(o.fontSize?.toString().replace("px","")),s=isNaN(i)?M7:i,a={...Cl(e),listStyleType:e.listType==="number"?"decimal":"disc",...o,marginLeft:s*kh};return n.renderElement({Tag:e.tag,styleSet:a,attributes:e.tag==="ol"?{start:e.start}:void 0,children:t})}function Y7({lexicalNode:e,children:t,parentListType:n,websiteContext:r}){let{getRichTextBlockStyle:o}=(0,Vi.useContext)(Ll),s=["decimal","lower-alpha","lower-roman","decimal","lower-alpha"][e.indent]??"decimal",a={...Cl(e),...o("PARAGRAPH"),listStyleType:n==="number"?s:"disc"};return r.renderElement({Tag:"li",styleSet:a,children:t})}function vB({lexicalNode:e,parentStyleClass:t,parentLexicalNode:n,websiteContext:r}){let o=e.type;if(!t)switch(o){case"heading":t=DB(e);break;case"paragraph":t="PARAGRAPH";break}let i="children"in e?e.children.map((s,a)=>(0,ut.jsx)(vB,{lexicalNode:s,parentStyleClass:t,parentLexicalNode:e,websiteContext:r},a)):[];switch(o){case"root":return(0,ut.jsx)("div",{className:"root",children:i});case"heading":return(0,ut.jsx)(k7,{lexicalNode:e,websiteContext:r,children:i});case"paragraph":return(0,ut.jsx)(F7,{lexicalNode:e,websiteContext:r,children:i});case"linebreak":return(0,ut.jsx)("br",{});case"text":return(0,ut.jsx)(G7,{lexicalNode:e,parentStyleClass:t,websiteContext:r});case"link":return(0,ut.jsx)(B7,{lexicalNode:e,websiteContext:r,children:i});case"internal-link":return(0,ut.jsx)(V7,{lexicalNode:e,websiteContext:r,children:i});case"image":return(0,ut.jsx)(H7,{lexicalNode:e,websiteContext:r});case"quote":return(0,ut.jsx)(w7,{lexicalNode:e,websiteContext:r,children:i});case"list":return(0,ut.jsx)(W7,{lexicalNode:e,websiteContext:r,children:i});case"listitem":{let s="bullet";return n&&n.type==="list"&&(s=n.listType==="number"?"number":"bullet"),e.children.length===1&&e.children[0].type==="list"?(0,ut.jsx)(ut.Fragment,{children:i}):(0,ut.jsx)(Y7,{lexicalNode:e,parentListType:s,websiteContext:r,children:i})}default:return console.warn(`Unsupported Lexical node type in CMS_RICH_TEXT: ${o}`),null}}function K7({node:e,websiteContext:t}){let{renderOptions:n,websiteData:r}=t,o=r.fonts,i=(c,d)=>o.get(`${c.style.fontFamily}:${d}`)?d:c.style.fontStyle,s=c=>c?bl(c,void 0,o,{width:0,height:0},t):{},a=c=>{if(!t)return null;let d=e.cmsRichTextStyleMap;if(!d)return console.warn("cmsRichTextStyleMap not found"),null;let f=t.websiteData.assetIdToGuid,p=t.websiteData.nodeById,_=d[c];if(_){let T=_.textStyleId,h=f.get(T);if(h){let m=p.get(h);if(m&&m.style){let E=Ri(m.style);return E.fills=e.fills,{spans:[],indentation:0,startOffset:0,style:E,startsWithPunctuation:!1}}}}return null};return{getRichTextBlockStyle:c=>{let d=a(c);if(d){let f=s(d),p=yl({style:d.style},n)||"normal";return f.lineHeight=JA({responsiveTextStyleVariants:d.style.responsiveTextStyleVariants,defaultLineHeight:p,renderOptions:n}),f}return x7},getRichTextSpanStyle:(c,d)=>{let f=a(c),p={},_=null,T=1,h=1<<1,m=1<<2,E=1<<3;return d.format&T&&(p.fontWeight="bold",_="Bold"),d.format&h&&(p.fontStyle="italic",_=_==="Bold"?"Bold Italic":"Italic"),d.format&m&&(p.textDecorationLine="line-through"),d.format&E&&(p.textDecorationLine="underline"),f&&_&&(f.
8222style.fontStyle=i(f,_)),{...s(f),...p}}}}function z7(e,t,n,r,o,i){let s=e.interactions??[],a=Ko(e),l=CB.useMemo(()=>({opacity:cn(t,e),transform:zr(n.outer.transform)}),[t,e,n.outer.transform]),u=Zr(e,t),{motionProps:c,key:d,ref:f}=to(e.id,e.behaviors,e.assets,l,u),p=gr(s,r,!0,i),_=o?.smartAnimateType??ee.NONE,T=cn(t,e),h=o?.transitionData,m=on(h);return{accessibilityProps:a,behaviorProps:c,interactionProps:p,behaviorsRef:f,key:d,transitionProps:{opacity:T,smartAnimateType:_,behaviorProps:c,transitionData:h,onTransitionEnd:m}}}function xB({node:e,parent:t,context:n,zIndex:r,interactionHandlers:o,transitionProps:i,websiteContext:s}){let{renderOptions:a}=s,{getRichTextBlockStyle:l,getRichTextSpanStyle:u}=K7({node:e,websiteContext:s}),c=rr(),d=Xn({node:e,parent:t,context:n,zIndex:r,children:[],options:{isFlattened:!0,precomputeTransforms:c},renderOptions:a}),f=$n({node:e,context:n,websiteContext:s}),p=jn({node:e,parent:t,children:null,renderOptions:a}),_={width:p.width,height:p.height},{accessibilityProps:T,interactionProps:h,behaviorsRef:m,key:E,transitionProps:O}=z7(e,n,d,o,i,s),g={..._,...d.inner,mixBlendMode:Xu(e.blendMode),...Gn(cn(n,e)),...fc(e,t,n,s),...Qr({node:e,parent:t,transitionProps:O,renderOptions:s.renderOptions,maskStyles:f}),...d.transform3d,...n?.style||{}},I=Jr(s,e);if(!e.richText||!s)return null;let S=eD(JSON.parse(e.richText)),A=wn({node:e,parent:t,context:n,transitionProps:O,outerStyles:d.outer,wrapperSizeStyles:p,stickyWrapperStyles:d.stickyWrapper,transformChildWrapperStyles:d.transform,renderOptions:s.renderOptions,maskStyles:f});return(0,ut.jsx)(oa,{name:"cms-rich-text",nodeId:e.id,children:Ne(yr({node:e,parent:t,context:n,transitionProps:O,wrappersToRender:A,websiteContext:s,children:Ao({node:e,ref:m,key:E,semanticTagInfo:{semanticTag:"div",interactiveSemanticTag:null},context:n,styles:g,nodeId:A.motionLayerContent.nodeId,transitionProps:O,wrappers:A.motionLayerContent,websiteContext:s,attributes:{"data-name":I,...h,...T},children:S.root?Ot((0,ut.jsx)(Ll.Provider,{value:{getRichTextBlockStyle:l,getRichTextSpanStyle:u},children:(0,ut.jsx)(vB,{lexicalNode:S.root,parentStyleClass:null,parentLexicalNode:null,websiteContext:s})})):null})}),s)})}var ud=v(_e()),kl=v(W()),m$=v(aN()),E$=v(_e()),_$=v(gu()),T$=v(nE());function ia(e){let t=fe().env;ge(t!=="server",`${e} should never be rendered on the server.`)}var gxe=v(W());function j7(e,t,n,r,o){Object.entries(e).forEach(([i,s])=>{(!r||!r[i])&&(t[s]=a=>{let l=n[i];typeof a!=typeof l&&console.error(`Expected value of type ${typeof l} for property ${i}, but got ${typeof a}`),n[i]=a,o?.()})})}function lN(e){let t={};if(!e)return t;for(let[n,r]of Object.entries(e))r.setter&&(t[n]=r.setter);return t}var kB={src:""};function wh(e){return e??!1?e:void 0}function Bh(e,t,n,r){if(!r||!n)return kB;let o=e?.image?t(r,e?.image):void 0,s=(e?.animatedImage?t(r,e.animatedImage):void 0)??o;if(!s)return kB;let a=wh(s.size?.y)??e.originalImageHeight,l=wh(s.size?.x)??e.originalImageWidth;return{src:n(s.url),height:wh(a),width:wh(l),alt:e.altText}}var FB=v(_e()),Uh=v(W()),sd=Uh.createContext({name:"",width:0,height:0});function uN({name:e,width:t,height:n,children:r}){let o=Uh.useMemo(()=>({name:e,width:t,height:n}),[e,t,n]);return(0,FB.jsx)(sd.Provider,{value:o,children:r})}var Pl=v(_e()),Rxe=v(W());function Dl({children:e,fallback:t=null}){return ta()?(0,Pl.jsx)(Pl.Fragment,{children:e()}):(0,Pl.jsx)(Pl.Fragment,{children:t})}var wB=({children:e,fallback:t})=>Ot((0,Pl.jsx)(Dl,{fallback:t,children:e}));var dN=v(_e()),ti=v(W());var Ip=class{backingComponentId;atomStore;constructor(t,n){this.atomStore=n,this.backingComponentId=de(t)}get(t,n){return t(this.backingComponentId)}set(t,n,r){this.atomStore.set(this.backingComponentId,r)}reset(){this.atomStore.set(this.backingComponentId,null)}},Vh=class{variableState;nodeById;componentSetId=null;boundVariantProperties;unboundVariantProperties;boolMap={true:!0,false:!1};atomStore;constructor(t,n,r,o,i=[],s){this.variableState=t,this.nodeById=n,this.componentSetId=r,this.boundVariantProperties=o.map(([a,l])=>[a,de(l)]),this.unboundVariantProperties=i.map(([a,l])=>[a,de(l)]),this.atomStore=s}get(t,n){let r=this.boundVariantProperties.map(([s,a])=>[s,this._convertResolvedVariableValueToStringVariantValue(this.variableState.evaluateVariable(t,t(a).id,n))]),o=this.unboundVariantProperties.map(([s,a])=>[s,t(a)]),i=[...r,...o];return this._instanceIdFromVariantProperties(i)}set(t,n,r){let o=Object.fromEntries(this._propertyValuesForVariant(r));
8222this.unboundVariantProperties.forEach(([i,s])=>{let a=o[i];this.atomStore.set(s,a)}),this.boundVariantProperties.forEach(([i,s])=>{let a=o[i];let l=this.variableState.getVariableType(t(s).id,t,n),u=this._convertStringVariantValueToResolvedVariableType(l,a);this.variableState.setVariable(t(s).id,u,n)})}_instanceIdFromVariantProperties(t){if(this.componentSetId===null)return null;let n=this.nodeById.get(this.componentSetId);return n.type,n.children.find(r=>this._propertyValuesMatch(t,this._propertyValuesForVariant(r)))??null}_propertyValuesMatch(t,n){let r=s=>new Set(s.map(([a,l])=>JSON.stringify([a.toLowerCase(),l.toLowerCase()]))),o=r(t),i=r(n);return o.size===i.size&&[...o].every(s=>i.has(s))}_propertyValuesForVariant(t){return this.nodeById.get(t).name.split(",").map(r=>{let[o,i]=r.split("=");return[(o??"").trim(),(i??"").trim()]})}_convertStringVariantValueToResolvedVariableType(t,n){switch(t){case"BOOLEAN":{let r=n.toLowerCase();return r in this.boolMap,`${n}`,this.boolMap[r]??n}case"FLOAT":{let r=n.trim(),o=Number(r),i=r!==""&&Number.isFinite(o);return`${n}`,i?o:n}case"COLOR":case"IMAGE":throw new te(`Cannot bind a variant property to a variable of type ${t}.`);case"STRING":case null:return n}}_convertResolvedVariableValueToStringVariantValue(t){if(t===null)return"null";switch(typeof t){case"string":return t;case"boolean":case"number":return String(t);default:throw new te(`Cannot bind a variant property to a variable of type ${typeof t}.`)}}reset(){}};var No=class{instanceState;modeContextState=de({});childNodeProps=new Map;transitionAtom=de(void 0);autoLayoutTransitionAtom=de(void 0);stateResetHandlers=[];variableState;cmsDataState=null;static createRoot(t,n,r){let o={backingComponentId:new Ip(null,n),componentPropState:new Map};return new No(r,t,o)}constructor(t,n,r){this.variableState=t,this.cmsDataState=n,this.instanceState=r}resetComponentState=(t,n)=>{this.instanceState.backingComponentId.reset(),this.stateResetHandlers.forEach(r=>r(t,n))};getChildState(t,n,r,o){let i="componentSetId"in n&&n.componentSetId?n.componentSetId:null,s=this.childNodeProps.get(t),a;if(n.type==="INSTANCE"){let l=Object.entries(n.componentProperties).filter(([f,p])=>p.type==="VARIANT"),u=l.filter(([f,p])=>!p.boundVariables?.value).map(([f,p])=>[f,p.value]),c=l.filter(([f,p])=>!!p.boundVariables?.value).map(([f,p])=>[f,p.boundVariables.value]);a={backingComponentId:c.length?new Vh(this.variableState,r,i,c,u,o):new Ip(null,o),componentPropState:new Map}}else a=this.instanceState;return s||(s=new No(this.variableState,this.cmsDataState,a),this.childNodeProps.set(t,s),i&&this.stateResetHandlers.push(s.resetComponentState)),s}};function cN(e,t,n){let r=e[t];if(r!=null||t==="default")return r;let o=e.default,i;if(typeof o=="function"?i=o:o&&typeof o=="object"&&(i=o[t]),i!=null){let a=`${n??"unknown-module"}::${t}`;if(!BB.has(a)){BB.add(a);let l=new ht("Code export resolved via default fallback");l.errorDetail=`warningKey: ${a}`,Me.reportError(l)}}return i}var BB=new Set;var $7={renderedByCode:!0};function Z7({guid:e,modeContext:t,...n}){let r=fe(),o=(0,ti.useMemo)(()=>r?[{key:e,nodeId:e,nodeById:r.websiteData.nodeById,assets:r.websiteData.assets,assetIdToGuid:r.websiteData.assetIdToGuid,guidToUrl:r.websiteData.guidToUrl,animateRootIds:r.websiteData.animateRootIds,stablePathToAssetInfo:r.websiteData.stablePathToAssetInfo,stablePathToConstraints:r.websiteData.stablePathToConstraints,modeContext:t??{},parentState:No.createRoot(null,r.atomStore,r.globalVariableState),parentStates:null}]:[],[e,r,t]),i=KE(o),s=(0,ti.useMemo)(()=>{let a=Object.fromEntries(Object.entries(n).filter(([l])=>l.startsWith("data-")));return{...$7,style:n.style,className:n.className,dataAttributes:a}},[n]);return i[0]?(0,dN.jsx)(Hi,{node:i[0],parent:null,context:s,websiteContext:r}):null}function UB(e,t,n){let[,r]=(0,ti.useReducer)(u=>u+1,0),{variableState:o,modeContext:i}=e,s=fe(),{finalProps:a,boundVariables:l}=(0,ti.useMemo)(()=>{let u=Object.fromEntries(Object.entries(KB(e.componentProperties,e.assets,n,s,i))),c=zB(e.componentProperties);return{finalProps:u,boundVariables:c}},[e.componentProperties,n,i,e.assets,s]);if(o&&i)for(let[u,c]of Object.entries(l)){let d=t[u];d&&(a[d]=XB(c,o,i,s)),jB(c,u,o,a,i,r,s)}return Object.entries(t).forEach(([u,c])=>{l[u]||(a[c]=d=>{let f=a[u];typeof d!=typeof f&&console.error(`Expected value of type ${typeof f} for property ${u}, but got ${typeof d}`),a[u]=d,r()})}),a}function VB(e){let t=fe(),{websiteData:n}=t??{},r=(0,ti.useMemo)(()=>!t||!n||!e?.length?[]:e.map(o=>{let i=o.codeComponentId,s=n.assetIdToGuid.get(i)?.toString(),a=s?n.nodeById.get(s):null;return a?{codeNode:a,codeComponentId:i}:null}).filter(o=>o!==null),[t,n,e]);return(0,ti.useMemo)(()=>r.map(o=>o.codeNode),[r])}function HB(e,t,n,r,o,i,s){let[,a]=(0,ti.useReducer)(_=>
8222_+1,0),l=fe(),{websiteData:u,getAssetURL:c}=l,d=u?.assetIdToGuid,{finalProps:f,boundVariables:p}=(0,ti.useMemo)(()=>{let _=Object.fromEntries(Object.entries(KB(e.componentPropertyDefinitions,s,i,l))),T=zB(e.componentPropertyDefinitions),h=(n??[]).find(m=>{let E=d?.get(m.codeComponentId);return e.id===E});if(!h)return{finalProps:_,boundVariables:T};for(let m of Object.keys(_))m in h.assignments&&h.assignments[m]!==void 0&&(typeof _[m]=="function"&&typeof h.assignments[m]=="string"?_[m]=YB(h.assignments[m],l.instanceSwapComponentCache):typeof h.assignments[m]=="object"&&"image"in h.assignments[m]?_[m]=Bh(h.assignments[m],go,c,s):_[m]=h.assignments[m]);return{finalProps:_,boundVariables:T}},[e.id,e.componentPropertyDefinitions,d,l,c,s,i,n]);if(r&&o)for(let[_,T]of Object.entries(p)){let h=t[_];h&&(f[h]=XB(T,r,o,l)),jB(T,_,r,f,o,a,l)}return Object.entries(t).forEach(([_,T])=>{p[_]||(f[T]=h=>{let m=f[_];typeof h!=typeof m&&console.error(`Expected value of type ${typeof m} for property ${_}, but got ${typeof h}`),f[_]=h,a()})}),f}function WB(e){let t=n=>{let{category:r,nodeTypes:o}=n.codeBehaviorData,i;switch(r){case"mouse":i=1;break;case"motion":i=2;break;default:i=3;break}return o&&o.includes("TEXT")&&(i=4),i};return[...e].sort((n,r)=>t(n)-t(r))}function YB(e,t,n){let r=t.get(e);return r||(r=function(i){return e?(0,dN.jsx)(Z7,{guid:e,modeContext:n,...i}):null},t.set(e,r),r)}function KB(e,t,n,r,o){let{instanceSwapComponentCache:i,getAssetURL:s}=r,a={};if(!e)return a;for(let l in e){let u=e[l],c=l.substring(0,l.lastIndexOf("#"));if(c&&u&&"type"in u)if(u.type==="INSTANCE_SWAP")if("value"in u&&u.value!=="-1:-1")a[c]=YB(u.value,i,o);else if(n?.[c]?.defaultValue){let d=n[c].defaultValue;a[c]=d??(()=>null)}else a[c]=()=>null;else if(u.type==="TEXT"){let d="value"in u?u.value:u.defaultValue;a[c]=d.characters}else if(u.type==="IMAGE")if("value"in u&&u.value!==null&&u.value.image)a[c]=Bh(u.value,go,s,t);else if(n?.[c]?.defaultValue){let d=n[c].defaultValue;a[c]=typeof d=="string"?{src:d}:QP(d)}else a[c]={src:""};else a[c]="value"in u?u.value:"defaultValue"in u?u.defaultValue:void 0}return a}function zB(e){let t={};if(!e)return t;for(let n in e){let r=e[n],o=n.substring(0,n.lastIndexOf("#"));if(o&&r&&"boundVariables"in r&&r.boundVariables){let i=r.boundVariables;i.value&&(t[o]=i.value.id)}}return t}function XB(e,t,n,r){return o=>{let{atomStore:i}=r,s=i.get,a=t.evaluateVariable(s,e,n);if(typeof o!=typeof a&&console.error(`Expected value of type ${typeof a} for variable ${e}, but got ${typeof o}`),typeof o=="function"){console.error("Cannot set function as variable value");return}if(typeof o=="object"&&"src"in o){console.error("Cannot set image prop as variable value");return}t.setVariable(e,o,n)}}function jB(e,t,n,r,o,i,s){let{atomStore:a}=s,l=a.get,u=n.getVariable(e);if(u){let d=u.value.getModeValue(o),f=n.evaluateVariable(l,e,o);return r[t]=f,a.sub(d,()=>{let _=n.evaluateVariable(l,e,o);r[t]=_,i()})}}async function Hh(e,t,n){let r=(t||"default").split(".");if(r.length===0)throw new te(`Code export name ${t} is empty`);let[o,i]=r;if(typeof e!="object")throw new te(`Code export ${t} is not an object`);let a=cN(e,o,n);if(r.length===1){if(a==null)throw new te(`Code export ${t} (${o}) is nullish`);return a}if(typeof a!="function")throw new te(`Code export ${t} (${o}) is not a function. The component may have failed to compile during publishing.`);let l=await a();if(typeof l!="object")throw new te(`Code export ${t} (${i}) is not an object`);let u=cN(l,i,n);if(u==null)throw new te(`Code export ${t} (${i}) is nullish`);return u}function $B(e){let t={};if(!e)return t;for(let[n,r]of Object.entries(e))r.setter&&(t[n]=r.setter);return t}var ad=(e,t,n)=>{let r=new ht(n);r.errorDetail=`sourceCodeHash: ${e}`,Me.reportError(r),console.error(n,t)};var br=v(_e()),Ml=v(W());var sa=v(_e());var vl=v(_e()),ZB=(0,vl.jsx)("svg",{width:"24",height:"24",fill:"none",viewBox:"0 0 24 24",children:(0,vl.jsx)("path",{fill:"#191919",fillRule:"evenodd",d:"M7 7c0 1.043.533 1.963 1.341 2.5A3 3 0 0 0 7 12c0 1.043.533 1.963 1.341 2.5A3 3 0 1 0 13 17v-2.764A3 3 0 1 0 16.659 9.5 3 3 0 0 0 15 4h-5a3 3 0 0 0-3 3m8 2a2 2 0 1 0 0-4h-2v4zm-2 3a2 2 0 1 0 4 0 2 2 0 0 0-4 0m-1 2h-2a2 2 0 1 1 0-4h2zm-2 1h2v2a2 2 0 1 1-2-2m2
8222-6h-2a2 2 0 1 1 0-4h2z",clipRule:"evenodd"})}),Wh=(0,vl.jsx)("svg",{width:"24",height:"24",fill:"none",viewBox:"0 0 24 24",children:(0,vl.jsx)("path",{fill:"#191919",fillRule:"evenodd",d:"M6.5 6a.5.5 0 0 1 .5.5V7h10a1 1 0 0 1 1 1v7a1 1 0 0 1-1 1H7v2.5a.5.5 0 0 1-1 0v-12a.5.5 0 0 1 .5-.5M7 8v7h10V8zm6.854 1.446a.5.5 0 0 1 0 .707L12.707 11.3l1.147 1.146a.5.5 0 0 1-.708.707L12 12.007l-1.146 1.146a.5.5 0 0 1-.708-.707l1.147-1.146-1.147-1.147a.5.5 0 0 1 .708-.707L12 10.593l1.146-1.147a.5.5 0 0 1 .708 0",clipRule:"evenodd"})}),JB=(0,vl.jsx)("svg",{width:"24",height:"24",fill:"none",viewBox:"0 0 24 24",children:(0,vl.jsx)("path",{fill:"#FFFFFF",d:"M13.992 12a.5.5 0 0 1 .5.507l-.002.172c-.049 1.564-.265 2.983-.598 4.064-.189.615-.425 1.149-.71 1.54-.276.38-.67.717-1.182.717-.513 0-.906-.337-1.183-.717-.284-.391-.52-.925-.71-1.54l-.055-.185c-.09-.322.175-.626.508-.605a.52.52 0 0 1 .467.375l.036.121c.173.561.369.98.563 1.246.2.276.333.305.374.305s.172-.028.374-.305c.194-.266.39-.685.562-1.246.3-.977.507-2.304.554-3.799l.002-.158a.5.5 0 0 1 .5-.492M7.44 10.054c.322-.091.625.173.606.506a.52.52 0 0 1-.374.467l-.122.037c-.56.172-.98.368-1.246.562-.277.202-.304.335-.304.374 0 .04.027.172.304.374.267.194.685.39 1.246.563.977.3 2.304.506 3.8.553l.157.002a.5.5 0 0 1-.015 1l-.171-.003c-1.564-.049-2.983-.264-4.065-.596-.614-.19-1.148-.426-1.54-.71C5.336 12.906 5 12.513 5 12s.336-.906.716-1.183c.392-.284.926-.52 1.54-.71zm5.238-.543c1.564.048 2.983.264 4.065.596.615.19 1.149.426 1.54.71.38.277.717.67.717 1.183s-.337.906-.717 1.183c-.391.284-.925.52-1.54.71q-.09.027-.185.053c-.322.09-.625-.174-.605-.508a.52.52 0 0 1 .374-.465l.122-.037c.561-.172.98-.368 1.246-.562.277-.202.305-.335.305-.374 0-.04-.028-.172-.305-.374-.267-.194-.685-.39-1.246-.562-.977-.301-2.304-.508-3.799-.554l-.158-.002a.5.5 0 0 1 .015-1zM12 5c.512 0 .906.337 1.182.717.285.391.521.925.71 1.54q.028.09.054.183a.484.484 0 0 1-.508.606.52.52 0 0 1-.467-.375l-.035-.12c-.172-.561-.368-.98-.562-1.246C12.172 6.028 12.039 6 12 6c-.04 0-.174.029-.374.305-.194.266-.39.685-.563 1.246-.31 1.01-.52 2.393-.558 3.949A.51.51 0 0 1 10 12a.49.49 0 0 1-.495-.5c.038-1.634.257-3.12.602-4.243.19-.615.426-1.149.71-1.54.277-.38.67-.717 1.183-.717"})});var J7={display:"flex",width:"100%",height:"var(--banner-height)",padding:"8px",flexDirection:"row",alignItems:"center",justifyContent:"space-between",flexShrink:0,position:"fixed",top:"calc(var(--banner-height) * -1)",left:"0",right:"0",zIndex:999,borderBottomWidth:"1px",borderBottomStyle:"solid",borderBottomColor:"#e1e2e2",backgroundColor:"#FFFFFF"},q7={display:"flex",padding:"4px",alignItems:"center",borderRadius:"5px",border:"1px solid #e1e2e2"},Q7={display:"flex",padding:"4px",alignItems:"center",borderRadius:"5px"},e$={display:"flex",minHeight:"32px",padding:"4px",paddingRight:"12px",alignItems:"center",borderRadius:"5px",background:"#1E1E1E",color:"#FFFFFF",textAlign:"center",fontFamily:"Inter, sans-serif",fontSize:"11px",fontStyle:"normal",fontWeight:"450",lineHeight:"16px",letterSpacing:"0.055px"},t$={display:"flex",alignItems:"center",flexDirection:"row",gap:"12px"};function qB({bannerUrlsAndStrings:e,websiteContext:t}){return t.renderElement({Tag:"div",styleSet:J7,children:(0,sa.jsxs)(sa.Fragment,{children:[t.renderElement({Tag:"a",styleSet:Q7,attributes:{href:e.figma_logo_url},children:ZB}),t.renderElement({Tag:"div",styleSet:t$,children:(0,sa.jsxs)(sa.Fragment,{children:[t.renderElement({Tag:"a",styleSet:q7,attributes:{target:"_blank",href:e.report_abuse_url,rel:"noreferrer",title:e.report_button_text,"aria-label":e.report_button_text},children:Wh}),t.renderElement({Tag:"a",styleSet:e$,attributes:{target:"_blank",href:e.hub_file_url,rel:"noreferrer"},children:(0,sa.jsxs)(sa.Fragment,{children:[JB,e.remix_button_text]})})]})})]})})}var qt=v(_e()),xl=v(W());var n$=(0,qt.jsx)("svg",{width:"24",height:"24",fill:"none",viewBox:"0 0 24 24",children:(0,qt.jsx)("path",{fill:"currentColor",d:"M13.992 12a.5.5 0 0 1 .5.507l-.002.172c-.049 1.564-.265 2.983-.598 4.064-.189.615-.425 1.149-.71 1.54-.276.38-.67.717-1.182.717-.513 0-.906-.337-1.183-.717-.284-.391-.52-.925-.71-1.54l-.055-.185c-.09-.322.175-.626.508-.605a.52.52 0 0 1 .467.375l.036.121c.173.561.369.98.563 1.246.2.276.333.305.374.305s.172-.028.374-.305c.194-.266.39-.685.562-1.246.3-.977.507-2.304.554-3.799l.002-.158a.5.5 0 0 1 .5-.492M7.44 10.054c.322-.091.625.173.606.506a.52.52 0 0 1-.374.467l-.122.037c-.56.172-.98.368-1.246.562-.277.202-.304.335-.304.374 0 .04.027.172.304.374.267.194.685.39 1.246.563.977.3 2.304.506 3.8.553l.157.002a.5.5 0 0 1-.015 1l-.171-.003c-1.564-.049-2.983-.264-4.065-.596-.614-.19-1.148-.426-1.54-.71C5.336 12.906 5 12.513 5 12s.336-.906.716-1.183c.392-.284.926-.52 1.54-.71zm5.238-.543c1.564.048 2.983.264 4.065.596.615.19 1.149.426 1.54.71.38.277.717.67.717 1.183s-.337.906-.717 1.183c-.391.284-.925.52-1.54.71q-.09.027-.185.053c-.322.09-.625-.174-.605-.508a.52.52 0 0 1 .374-.465l.122-.037c.561-.172.98-.368 1.246-.562.277-.202.305-.335.305-.374 0-.04-.028-.172-.305-.374-.267-.194-.685-.39-1.246-.562-.977-.301-2.304-.508-3.799-.554l-.158-.002a.5.5 0 0 1 .015-1zM12 5c.512 0 .906.337 1.182.717.285.391.521.925.71 1.54q.028.09.054.183a.484.484 0 0 1-.508.606.52.52 0 0 1-.467-.375l-.035-.12c-.172-.561-.368-.98-.562-1.246C12.172 6.028 12.039 6 12 6c-.04 0-.174.029-.374.305-.194.266-.39.685-.563 1.246-.31 1.01-.52 2.393-.558 3.949A.51.51 0 0 1 10 12a.49.49 0 0 1-.495-.5c.038-1.634.257-3.12.602-4.243.19-.615.426-1.149.71-1.54.277-.38.67-.717 1.183-.717"})}),r$=(0,qt.jsx)("svg",{width:"24",height:"24",fill:"none",viewBox:"0 0 24 24",children:(0,qt.jsx)("path",{fill:"currentColor",d:"M6 10.5C6.82843 10.5 7.5 11.1716 7.5 12C7.5 12.8284 6.82843 13.5 6 13.5C5.17157 13.5 4.5 12.8284 4.5 12C4.5 11.1716 5.17157 10.5 6 10.5ZM12 10.5C12.8284 10.5 13.5 11.1716 13.5 12C13.5 12.8284 12.8284 13.5 12 13.5C11.1716 13.5 10.5 12.8284 10.5 12C10.5 11.1716 11.1716 10.5 12 10.5ZM18 10.5C18.8284 10.5 19.5 11.1716 19.5 12C19.5 12.8284 18.8284 13.5 18 13.5C17.1716 13.5 16.5 12.8284 16.5 12C16.5 11.1716 17.1716 10.5 18 10.5Z"})}),o$=(0,qt.jsx)("svg",{width:"24",height:"24",fill:"none",viewBox:"0 0 24 24",children:(0,qt.jsx)("path",{fill:"currentColor",d:"M16.6465 6.64648C16.8417 6.45122 17.1583 6.45122 17.3535 6.64648C17.5488 6.84175 17.5488 7.15825 17.3535 7.35352L12.707 12L17.3535 16.6465C17.5488 16.8417 17.5488 17.1583 17.3535 17.3535C17.1583 17.5488 16.8417 17.5488 16.6465 17.3535L12 12.707L7.35352 17.3535C7.15825 17.5488 6.84175 17.5488 6.64648 17.3535C6.45122 17.1583 6.45122 16.8417 6.64648 16.6465L11.293 12L6.64648 7.35352C6.45127 7.15825 6.45124 6.84173 6.64648 6.64648C6.84173 6.45129 7.15827 6.45129 7.35352 6.64648L12 11.293L16.6465 6.64648Z"})}),i$={backgroundColor:"#ffffff",boxSizing:"border-box",display:"flex",gap:"8px",alignItems:"center",overflow:"visible",paddingLeft:"8px",paddingTop:"0px",paddingBottom:"0px",borderRadius:"13px",boxShadow:"0px 0px 0.5px 0px rgba(0,0,0,0.3), 0px 1px 3px 0px rgba(0,0,0,0.15)",width:"fit-content",height:"var(--banner-height-v2)",position:"fixed",bottom:"20px",right:"40px",zIndex:999},s$={color:"rgba(0, 0, 0, 0.9)"},a$={boxSizing:"border-box",display:"flex",alignItems:"center",paddingLeft:"4px",paddingRight:"4px",paddingTop:"8px",paddingBottom:"8px",fontFamily:"Inter, sans-serif",fontWeight:"550",fontStyle:"normal",fontSize:"11px",color:"rgba(0, 0, 0, 0.9)",lineHeight:"16px",letterSpacing:"0.055px"},l$={display:"flex",flexDirection:"row",alignItems:"center",alignSelf:"stretch",boxSizing:"border-box",height:"100%",
8222justifyContent:"flex-end",position:"relative",flexShrink:0},u$={backgroundColor:"#4D49FC",color:"#ffffff",border:"1px solid rgba(0, 0, 0, 0.1)",borderRadius:"0.3125rem",padding:"0 0.5rem",fontSize:"11px",fontFamily:"Inter, sans-serif",fontWeight:"450",lineHeight:"16px",letterSpacing:"0.055px",cursor:"pointer",display:"flex",alignItems:"center",minHeight:"24px",textDecoration:"none",marginRight:"0.5rem"},QB={borderLeft:"1px solid rgba(0, 0, 0, 0.1)",boxSizing:"border-box",display:"flex",height:"100%",alignItems:"center",paddingLeft:"0px",paddingRight:"0px",paddingTop:"0px",paddingBottom:"0px",position:"relative",flexShrink:0},eU={background:"none",border:"none",cursor:"pointer",padding:"0.5rem",display:"flex",alignItems:"center",justifyContent:"center",color:"rgba(0, 0, 0, 0.5)",borderRadius:"4px"},c$={backgroundColor:"#ffffff",borderRadius:"11px",boxShadow:"0px 0px 0.5px 0px rgba(0,0,0,0.3), 0px 1px 3px 0px rgba(0,0,0,0.15)",position:"absolute",bottom:"100%",right:"0px",marginBottom:"8px",width:"fit-content",zIndex:1e3,padding:"8px",boxSizing:"border-box"},d$={display:"flex",alignItems:"center",gap:"4px",width:"100%",backgroundColor:"transparent",border:"none",textAlign:"right",cursor:"pointer",fontSize:"11px",fontFamily:"Inter, sans-serif",fontWeight:"400",color:"rgba(0, 0, 0, 0.9)",lineHeight:"20px"};function tU({bannerUrlsAndStrings:e,websiteContext:t}){let[n,r]=(0,xl.useState)(!1),[o,i]=(0,xl.useState)(!1),s=(0,xl.useRef)(null);return(0,xl.useEffect)(()=>{let a=l=>{s.current&&!s.current.contains(l.target)&&i(!1)};return o&&document.addEventListener("mousedown",a),()=>{document.removeEventListener("mousedown",a)}},[o]),n?null:t.renderElement({Tag:"div",styleSet:[i$,"banner-v2-container"],children:(0,qt.jsxs)(qt.Fragment,{children:[t.renderElement({Tag:"div",styleSet:s$,children:n$}),t.renderElement({Tag:"div",styleSet:a$,children:(0,qt.jsx)("p",{children:e.banner_v2_text})}),t.renderElement({Tag:"div",styleSet:l$,children:(0,qt.jsxs)(qt.Fragment,{children:[t.renderElement({Tag:"a",styleSet:u$,attributes:{target:"_blank",href:e.hub_file_url,rel:"noreferrer"},children:e.remix_button_text}),t.renderElement({Tag:"div",styleSet:QB,ref:s,children:(0,qt.jsxs)(qt.Fragment,{children:[t.renderElement({Tag:"button",styleSet:eU,attributes:{onClick:()=>i(!o),title:e.more_options_text,"aria-label":e.more_options_text},children:r$}),o&&t.renderElement({Tag:"div",styleSet:c$,children:t.renderElement({Tag:"a",styleSet:d$,attributes:{target:"_blank",href:e.report_abuse_url,rel:"noreferrer",title:e.report_button_text,"aria-label":e.report_button_text},children:(0,qt.jsxs)(qt.Fragment,{children:[Wh," ",e.report_button_text]})})})]})}),t.renderElement({Tag:"div",styleSet:QB,children:t.renderElement({Tag:"button",styleSet:eU,attributes:{"aria-label":e.close_text,title:e.close_text,onClick:()=>r(!0)},children:o$})})]})})]})})}var Yh=de(!1);function f$({isLoading:e,bannerUrlsAndStrings:t,websiteContext:n}){return e||!t?null:t.banner_version==="2"?(0,br.jsx)(tU,{bannerUrlsAndStrings:t,websiteContext:n}):(0,br.jsx)(qB,{bannerUrlsAndStrings:t,websiteContext:n})}function nU({children:e}){let t=Ae(Yh),n=fe(),[r,o]=(0,Ml.useState)(!1),i=kC(Yh),[s,a]=(0,Ml.useState)(null),[l,u]=(0,Ml.useState)(!0);(0,Ml.useEffect)(()=>(o(!0),()=>{o(!1)}),[]),(0,Ml.useEffect)(()=>{r&&(async()=>{try{u(!0);let f=await fetch("/__figma__/api/community_published_banner_details",{redirect:"follow"});if(f.status===200){let p=await f.json();p.meta&&(a(p.meta),i(!0))}}catch(f){console.error("Error fetching hub file URL:",f)}finally{u(!1)}})()},[r,i]);let c=s?.banner_version==="2";return r?(0,br.jsx)(br.Fragment,{children:n.renderElement({Tag:"div",styleSet:t&&!c?[{transform:"translateY(var(--banner-height))",height:"var(--full-height-with-banner)"},"wrapper-with-banner"]:void 0,children:(0,br.jsxs)(br.Fragment,{children:[(0,br.jsx)(ra,{name:"banner-error-boundary",nodeId:"banner",children:(0,br.jsx)(f$,{isLoading:l,bannerUrlsAndStrings:s,websiteContext:n})}),n.renderElement({Tag:"div",styleSet:t&&!c?{height:"var(--full-height-with-banner)",position:"fixed",inset:"0",overflow:"auto"}:void 0,children:e})]})})}):(0,br.jsx)(br.Fragment,{children:e})}var rU=v(W());var oU=rU.default.forwardRef(function(t,n){let{semanticTag:r,context:o,styles:i,additionalClassName:s,tabIndex:a,websiteContext:l,wrappers:{outerStyles:u,needsListItemTag:c},...d}=t,f={...u,...i},p=[s,{styles:f,renderedByCode:o?.renderedByCode},o?.className],_={width:"100%",height:"100%"},{finalInnerSemanticTag:T,needsListWrapper:h}=H_(r,null,c),m=T;return h?l.renderElement({Tag:"li",styleSet:p,children:l.renderElement({Tag:m,attributes:{tabIndex:Ms(T)?-1:a},styleSet:_,...d,ref:n})}):l.renderElement({Tag:m,styleSet:p,...d,attributes:{tabIndex:Ms(T)?-1:a},ref:n})});var iU=v(W()),p$=class sU{renderHooks;constructor(t=[]){this.renderHooks=t}cloneWithAdditionalHook(t){return new sU([...this.renderHooks,t])}},Gl=iU.createContext(new p$);var aU=v(W()),Sp=aU.createContext({isSnapshot:!1,snapshot:()=>{},enableManualSnapshot:()=>{}});var lU=v(_e()),Kh=v(W());var ld=Kh.createContext({shouldReduceMotion:!1});function fN({children:e}){let t=__(),n=Kh.useMemo(()=>({shouldReduceMotion:t}),[t]);return(0,lU.jsx)(ld.Provider,{value:n,children:e})}function uU({node:e,parent:t,interactionHandlers:n,context:r,zIndex:o,websiteContext:i}){let{renderOptions:s}=i,a=rr(),l=Xn({node:e,parent:t,context:r,zIndex:o,children:[],options:{isFlattened:!0,prec
8222omputeTransforms:a},renderOptions:s}),u=cn(r,e),c=Zr(e,r),d=kl.useMemo(()=>({opacity:u,transform:zr(l.outer.transform)}),[u,l.outer.transform]),{motionProps:f,key:p,ref:_}=to(e.id,e.behaviors,e.assets,d,c),T=e.interactions??[],h=Fo(T),m=po(T),E=r?.withinInteractiveElement??!1,O=gr(T,n,E,i),{semanticTag:g}=Gs(e,m,h,E,!1),I=g,S=Ae(Yh),A=$n({node:e,context:r,websiteContext:i}),R=jn({node:e,parent:t,children:null,renderOptions:s}),y={...l.inner,...Gn(cn(r,e)),...fc(e,t,r,i),...Qr({node:e,parent:t,transitionProps:void 0,renderOptions:s,maskStyles:A}),...l.transform3d,...r?.style||{},...i.isFigmake?{height:S?"var(--full-height-with-banner)":"100dvh"}:{}},b=wn({node:e,parent:t,context:r,transitionProps:void 0,outerStyles:l.outer,wrapperSizeStyles:R,stickyWrapperStyles:l.stickyWrapper,transformChildWrapperStyles:l.transform,renderOptions:i.renderOptions,maskStyles:A});return Ne(yr({node:e,parent:t,context:r,wrappersToRender:b,websiteContext:i,children:Ot((0,ud.jsx)(oU,{semanticTag:I,nodeId:e.id,styles:y,additionalClassName:"tailwind",websiteContext:i,ref:_,wrappers:b.motionLayerContent,...f,...O,children:(0,ud.jsx)(Dl,{children:()=>(0,ud.jsx)(h$,{node:e,websiteContext:i})})},p))}),i)}function h$({node:e,websiteContext:t}){ia("CodeComponentContent");let n=ta(),r=t.getAssetURL,[o,i]=kl.useState(null);globalThis.__GLOBALS__={React:kl,ReactJSXRuntime:E$,ReactJSXDevRuntime:m$,ReactDOM:_$,ReactDOMClient:T$,SnapshotContext:Sp,RenderHooksContext:Gl,ActiveBreakpointContext:sd,WebsiteSettingsContext:ld,getAssetURL:r};let s=t.getCodeComponentURL(e),a=t.websiteData.sourceCodeHash,l=Ae(a);kl.useEffect(()=>{(async()=>{let p;try{p=await import(s)}catch(_){ad(l,_,"Failed to import code layer module");return}try{let _=await Hh(p,e.codeExportName,s);i(()=>_)}catch(_){ad(l,_,"Failed to execute code layer")}})()},[e.codeExportName,s,l]);let u=O$(o),c=lN(u),d=UB(e,c,u);return n&&o?(0,ud.jsx)(oa,{name:"code-component",nodeId:e.id,children:(0,ud.jsx)(o,{...d})}):null}function O$(e){return e?e[Symbol.for("figma.react.props")]??{}:null}function cU({node:e,children:t,context:n,websiteContext:r,renderFigmaLayer:o}){let i=Jr(r,e),s={"data-name":i};return n?.dataAttributes&&Object.entries(n.dataAttributes).forEach(([a,l])=>{s[a]=l}),ne({Tag:"div",nodeId:e.id,attributes:{"data-name":i,...s},children:t.map(a=>o({name:"sites-layer",nodeId:a.id,childKey:a.id,node:a,parent:null,context:void 0,websiteContext:r}))})}function dU({node:e,children:t,context:n,websiteContext:r}){return Ne(cU({node:e,children:t,context:n,websiteContext:r,renderFigmaLayer:id}),r)}var TU=v(W());function zh(e){return"type"in e&&e.type==="spring"}function cd(e){return Array(e.length-1).fill(Ls)}function g$(e,t,n,r){let o=e.map((i,s)=>s).sort((i,s)=>(e[i]??0)-(e[s]??0));return{times:o.map(i=>e[i]??0),scale:o.map(i=>t[i]??0),pos:o.map(i=>n[i]??0),ease:o.slice(0,-1).map(i=>r[i]??Ls)}}function fU(e){return e<=1?[0]:Array.from({length:e},(t,n)=>n/(e-1))}function pU(e,t,n,r,o){let i=e[n],s=t[n];if(!i||s&&zh(s)){e[n]=r,o&&(t[n]=o);return}let a=s?.times??fU(i.length),l=s?.ease??cd(a),u=o?.times??fU(r.length),c=o?.ease??cd(u),d=[...new Set([...a,...u])].sort((f,p)=>f-p);e[n]=d.map(f=>So(f,a,i,l)+So(f,u,r,c)),t[n]={duration:Math.max(s?.duration??0,o?.duration??0),times:d,ease:cd(d)}}function mU(e,t,n,r){let o=t[n];return Array.isArray(e[n])&&!!o&&(zh(o)||r!==void 0&&o.duration!==r)}function pN(e,t,n,r){let{dimensionKey:o,scaleKey:i,posKey:s,baseSize:a}=r;if(!(o in e)||typeof e[o]!="number"||a===0)return;let l=i in e||i in t,u=f=>a/2*(f-1),c=n[o],d=n[i];if(l&&Array.isArray(t[o])&&Array.isArray(t[i])){if(c&&zh(c)||d&&zh(d))return;let f=c,p=d,_=Math.max(f?.duration??0,p?.duration??0);if(mU(t,n,s,_))return;let T=f?.times,h=p?.times;if(!T||!h)return;let m=f?.ease??cd(T),E=p?.ease??cd(h),O=t[o].map(D=>D/a),g=t[i],I=T[0]??0,S=T[T.length-1]??0,A=h[0]??0,R=h[h.length-1]??0,y=S>A&&I<R,b;if(y){let D=[...new Set([...T,...h])].sort((U,N)=>U-N),F=D.map(U=>So(U,T,O,m)*So(U,h,g,E));b={times:D,scale:F,pos:F.map(u),ease:cd(D)}}else{let D=O[O.length-1]??1;b=g$([...T,...h],[...O,...g.map(F=>D*F)],[...O.map(u),...g.map(()=>u(D))],[...m,Ls,...E])}e[i]=e[o]/a*(e[i]??1),e[s]=(e[s]??0)+u(e[i]),delete e[o],t[i]=b.scale,delete t[o];let L={duration:_,times:b.times,ease:b.ease};n[i]=L,pU(t,n,s,b.pos,L),delete n[o]}else{let f=c;if(mU(t,n,s,f?.duration))return;let p=e[o]/a;if(e[i]=p,e[s]=(e[s]??0)+u(p),delete e[o],Array.isArray(t[o])){let _=t[o].map(T=>T/a);t[i]=_,pU(t,n,s,_.map(u),f),delete t[o]}c&&(n[i]=c,delete n[o])}}var I$=[[1,0,0],[0,1,0]],mN={position:"relative",width:"100%",height:"100%"};function S$(e,t,n,r,o,i){let s=e?.groupFrameOffset?.frameWidth??e?.constrainingFrameSize?.width??r?.size?.x??n.size.x,a=e?.groupFrameOffset?.frameHeight??e?.constrainingFrameSize?.height??r?.size?.y??n.size.y,l=e?.groupFrameOffset?.x??0,u=e?.groupFrameOffset?.y??0;
8222return{group:void 0,constrainingFrameSize:{width:n.size.x,height:n.size.y},groupFrameOffset:{x:l+(t?.x??0),y:u+(t?.y??0),frameWidth:s,frameHeight:a,groupWidth:n.size.x,groupHeight:n.size.y},parentIsList:o,masks:e?.masks,isInStickyOrFixedTree:i||(e?.isInStickyOrFixedTree??!1),withinInteractiveElement:e?.withinInteractiveElement,inheritedEffects:bf(n,e?.inheritedEffects)}}function EU(e){let{node:t,parent:n,children:r,context:o,zIndex:i,precomputeTransforms:s,renderOptions:a}=e,l=Xn({node:t,parent:n,context:o,zIndex:i,children:r??null,options:{precomputeTransforms:s},renderOptions:a}),u=cn(o,t);return{layoutStyles:l,opacity:u}}function _U({node:e,parent:t,children:n,interactionHandlers:r,context:o,transitionProps:i,websiteContext:s,outerRef:a,opacity:l,layoutStyles:u,behaviorProps:c,behaviorsKey:d,behaviorsRef:f,renderFigmaLayer:p}){let{renderOptions:_}=s,T=o?.group,h=$t(e,t),m=h?I$:e.relativeTransform,E=T?.withinAutoLayout||h,O=_.enableGroupKeyframeAnimations&&!E&&!!o?.masks?.length,g=_.enableGroupKeyframeAnimations&&!E&&(O||!!e.keyframeData&&Object.keys(e.keyframeData).length>0),I=!E&&!g,S=e.scrollBehavior==="FIXED"||e.scrollBehavior==="STICKY_SCROLLS",A=T?.isHorizontalFillParent||(E?y_(e,t):!1),R=e.interactions??[],y=Mn(e,_),b=Fo(R),L=po(R),D=Ko(e),F=jn({node:e,parent:t,children:n,renderOptions:_}),U={...u.outer,overflow:"visible",...g?{width:e.size.x,height:e.size.y}:{}},{shouldOutputVariables:N,codeSyntaxLanguage:K}=_,C={...u.inner,...I?{}:Gn(l,N,e.boundVariables?.opacity?.resolvedName,K&&e.boundVariables?.opacity?.resolvedCodeSyntax?.[K]),...Ni(e),...u.transform3d},M=B_(_,o,e.absoluteBoundingBox),P=O?$n({node:e,context:M,websiteContext:s}):{},z=i?.smartAnimateType??ee.NONE,Ee=on(i?.transitionData),pe=o?.withinInteractiveElement||Object.keys(c).length>0||z===ee.INSTANCE_SUBTREE,ye=gr(R,r,pe,s),Le=Gs(e,L,b,pe,y),We=V_(Le)!==null,De=Jr(s,e),ae=g?dc(xt(Wt(T?.relativeTransform,e.relativeTransform)),e.size):null,Oe=R$(g,e.keyframeData,e.size,_.emitMotionDataForCodegen),oe=g?S$(o,ae,e,t,We,S):{group:{withinAutoLayout:E,isHorizontalFillParent:A,relativeTransform:xt(Wt(T?.relativeTransform,m)),opacity:I?l:void 0,mixBlendMode:E?void 0:Xu(e.blendMode)},parentIsList:We,masks:o?.masks,constrainingFrameSize:o?.constrainingFrameSize,groupFrameOffset:o?.groupFrameOffset,isInStickyOrFixedTree:S||(o?.isInStickyOrFixedTree??!1),withinInteractiveElement:o?.withinInteractiveElement,inheritedEffects:bf(e,o?.inheritedEffects)},ft=O?{...oe,masks:void 0}:oe,et=vh({children:n,context:ft,parent:e,renderOptions:_,renderFigmaLayer:p,websiteContext:s});if(g){let Ye={...Qr({node:e,parent:t,transitionProps:i,renderOptions:_,maskStyles:P}),...Gn(l,N,e.boundVariables?.opacity?.resolvedName,K&&e.boundVariables?.opacity?.resolvedCodeSyntax?.[K]),...Ni(e),...u.transform3d},ce=wn({node:e,parent:t,context:o,transitionProps:i,outerStyles:mN,wrapperSizeStyles:mN,stickyWrapperStyles:u.stickyWrapper,transformChildWrapperStyles:u.transform,renderOptions:_,maskStyles:P}),tt=Sl({keyframeMotionPropsOverride:Oe,node:e,context:o,renderOptions:_,smartAnimateType:z,
8222wrappersToRender:ce});return ne({Tag:"div",styleSet:U,children:yr({node:e,parent:t,context:o,outerRef:a,transitionProps:i,wrappersToRender:ce,websiteContext:s,keyframeMotionPropsOverride:tt.wrapperKeyframeMotionPropsOverride,children:Ao({node:e,semanticTagInfo:Le,key:d,context:M,ref:f,nodeId:ce.motionLayerContent.nodeId,styles:Ye,keyframeMotionPropsOverride:tt.childKeyframeMotionPropsOverride,wrappers:{outerStyles:mN,needsListItemTag:ce.motionLayerContent.needsListItemTag,nodeId:ce.motionLayerContent.nodeId},websiteContext:s,transitionProps:{opacity:l,smartAnimateType:z,behaviorProps:c,transitionData:i?.transitionData,onTransitionEnd:Ee},attributes:{"data-name":De,...ye,...D},children:et})})})}let he=wn({node:e,parent:t,context:o,transitionProps:i,outerStyles:u.outer,wrapperSizeStyles:F,stickyWrapperStyles:u.stickyWrapper,transformChildWrapperStyles:u.transform,renderOptions:_}),Ge=Sl({keyframeMotionPropsOverride:Oe,node:e,context:o,renderOptions:_,smartAnimateType:z,wrappersToRender:he});return yr({node:e,parent:t,context:o,outerRef:a,transitionProps:i,wrappersToRender:he,websiteContext:s,keyframeMotionPropsOverride:Ge.wrapperKeyframeMotionPropsOverride,children:Ao({node:e,semanticTagInfo:Le,key:d,context:o,ref:f,nodeId:he.motionLayerContent.nodeId,styles:C,keyframeMotionPropsOverride:Ge.childKeyframeMotionPropsOverride,wrappers:he.motionLayerContent,websiteContext:s,transitionProps:{opacity:l,smartAnimateType:z,behaviorProps:c,transitionData:i?.transitionData,onTransitionEnd:Ee},attributes:{"data-name":De,...ye,...D},children:et})})}function R$(e,t,n,r=!1){if(!e||!t)return;let o=Li(t,{normalizeParameterUnits:r});if(!o)return null;let i={...o.initial},s={...o.animate},a={...o.transition};return pN(i,s,a,{dimensionKey:"width",scaleKey:"scaleX",posKey:"x",baseSize:n.x}),pN(i,s,a,{dimensionKey:"height",scaleKey:"scaleY",posKey:"y",baseSize:n.y}),{...o,initial:i,animate:s,transition:a}}function hU({node:e,parent:t,children:n,interactionHandlers:r,context:o,zIndex:i,transitionProps:s,websiteContext:a}){let{renderOptions:l}=a,u=(0,TU.useRef)(null),c=rr(),{layoutStyles:d,opacity:f}=EU({node:e,parent:t,children:n,context:o,zIndex:i,precomputeTransforms:c,renderOptions:l}),p={opacity:f,transform:zr(d.transform.transform)},_=Zr(e,o),{motionProps:T,key:h,ref:m}=to(e.id,e.behaviors,e.assets,p,_);return Ne(_U({node:e,parent:t,children:n,interactionHandlers:r,context:o,transitionProps:s,websiteContext:a,outerRef:u,opacity:f,layoutStyles:d,behaviorProps:T,behaviorsKey:h,behaviorsRef:m,renderFigmaLayer:id}),a)}var Ap=v(_e()),z1e=v(W());var or=v(_e()),Bn=v(W());var A$={url:""};var Xh="reset-css";function EN(e=!0){return sn` ${y$}${b$}${L$}${e?w$:""}`}var y$=sn` @layer figreset,figoverridable,reset,theme,base,figutils,components,utilities;`,b$=sn` @layer figoverridable{:root{font-synthesis:none}}`,L$=sn` @layer figutils{:root{--banner-height:48px;--banner-height-v2:40px;--full-height-with-banner:calc(100dvh - var(--banner-height))}@media (max-width:600px){.banner-v2-container{left:0 !important;right:0 !important;margin:0 auto !important}}.wrapper-with-banner .min-h-screen{min-height:var(--full-height-with-banner)}.wrapper-with-banner .h-screen{height:var(--full-height-with-banner)}}`,C$=sn` @layer figreset{:root{font-family:var( --default-font-family,ui-sans-serif,system-ui,sans-serif,'Apple Color Emoji','Segoe UI Emoji','Segoe UI Symbol','Noto Color Emoji' )}html{-webkit-text-size-adjust:100%;-webkit-tap-highlight-color:transparent;-webkit-font-smoothing:antialiased;width:100%}body{margin:0;width:100%}body:has([data-page-overflowx='hidden']){overflow-x:hidden}body:has([data-page-overflowx='auto']){overflow-x:auto}}@layer figutils{#container{width:100%}}`;var P$=sn` @layer figreset{*,*:before,*:after{box-sizing:border-box}a{color:inherit;text-decoration:none}button{border:none;background:none;padding:0}h1,h2,h3,h4,h5,h6,p{font-size:inherit;font-weight:inherit}blockquote,dl,dd,h1,h2,h3,h4,h5,h6,hr,figure,p,pre{margin:0}ol,ul,menu{list-style:none;margin:0;padding-inline-start:0}}`,D$=sn` @layer figutils{#container .marquee-container{overflow-x:hidden;display:flex;flex-direction:row;position:relative;width:var(--width);transform:var(--transform);&:hover div{animation-play-state:var(--pause-on-hover)}&:active div{animation-play-state:var(--pause-on-click)}&:focus-within > *{animation-play-state:paused !important}}#container .marquee{flex:0 0 auto;min-width:var(--min-width);display:flex;flex-direction:row;align-items:center;animation:scroll var(--duration) linear var(--delay) var(--iteration-count);animation-delay:var(--delay);animation-direction:var(--direction);animation-timing-function:var(--timing-function)}#container .marquee.reduced-motion{@media (prefers-reduced-motion:reduce){animation:none}}@keyframes scroll{0%{transform:translateX(0%)}100%{transform:translateX(-100%)}}#container .marquee-initial-child-container{flex:0 0 auto;display:flex;min-width:auto;flex-direction:row;align-items:center}#container .marquee-child{transform:var(--transform)}}`,v$=sn` @layer figutils{.code-behavior-wrapper > *{width:100%;height:100%}}`,x$=sn` @layer figutils{#container .embed{border:none}}`,M$=sn` @layer figutils{:is(.textContents ul,ul.textContents) > li:before{content:'\\2022';margin-left:-1.5em;display:inline-block;text-align:center;width:1.5em;-webkit-background-clip:var(--list-marker-background-clip);-webkit-text-fill-color:var(--list-marker-text-fill-color);background-clip:var(--list-marker-background-clip);color:var(--list-marker-color);font-size:var(--list-marker-font-size);line-height:var(--list-marker-line-height);vertical-align:var(--list-marker-vertical-align)}:is(.textContents ol,ol.textContents) > li::marker{color:var(--list-marker-color);font-size:var(--list-marker-font-size);line-height:var(--list-marker-line-height);vertical-align:var(--list-marker-vertical-align)}:is(.textContents,.textContents *).adjustLetterSpacing:after{content:'';margin-left:calc(var(--letter-spacing) * -1)}}`,G$=sn` @layer figutils{.bypass-link{position:fixed;top:16px;left:0;right:0;display:flex;justify-content:center;align-items:center;opacity:0;pointer-events:none}.bypass-link:focus-within{opacity:1;z-index:${1e4}}.bypass-link > a{background-color:#000;color:#fff;border:1px solid #fff;padding:12px 16px;font-size:16px;border-radius:12px;pointer-events:auto}}`,k$=sn` @layer figreset{:root{--100dvw:100vw;--100dvh:100vh}@supports (width:100dvw){:root{--100dvw:100dvw;--100dvh:100dvh}}}`,F$=sn` @layer figreset{:root{text-align:left;button{text-align:left}}}`,w$=sn` ${C$}${P$}${M$}${x$}${D$}${v$}${k$}${G$}${F$}`;var jh={thin:100,hairline:100,extralight:200,"extra light":200,ultralight:200,"ultra light":200,light:300,regular:400,normal:400,book:400,medium:500,semibold:600,"semi bold":600,demibold:600,"demi bold":600,bold:700,extrabold:800,"extra bold":800,ultrabold:800,"ultra bold":800,black:900,heavy:900,extrablack:950,"extra black":950,ultrablack:950,"ultra black":950};function OU(e){if(!e)return;
8222let t=e.toLowerCase().replace(/italic/gi,"").trim();if(jh[t]!==void 0)return jh[t];let n=Object.keys(jh).sort((r,o)=>o.length-r.length);for(let r of n)if(t.includes(r))return jh[r]}function $h(e,t){if(!e)return OU(t)}function aa(e){let{family:t,style:n,url:r,unicodeRange:o,weight:i}=e;return` 8223@font-face { 8224 font-family: "${t}"; 8225 font-style: ${n}; 8226 src: url("${r}"); 8227 font-display: block; 8228 ${i!==void 0?`font-weight: ${i};`:""} 8229 ${o&&o!=="*"?`unicode-range: ${o};`:""} 8230} 8231`}var _N="My Site",TN="Created with Figma";var hN=/^(https?:)?\/\/(www\.)?lottie\.host\//;var fn=v(_e()),eO=v(W());var NU=v(_e());var yo=function(e){return e.EXPLICIT="EXPLICIT",e.IMPLICIT="IMPLICIT",e}({}),Fl=function(e){return e.LEFT="LEFT",e.CENTER="CENTER",e.RIGHT="RIGHT",e}({}),wl=function(e){return e.TOP="TOP",e.CENTER="CENTER",e.BOTTOM="BOTTOM",e}({}),ON=function(e){return e.MODAL="MODAL",e.BANNER="BANNER",e}({});function Bl(){return{color:"rgba(0, 0, 0, 0.9)",fontWeight:450,fontSize:"var(--consent-font-size-medium)",lineHeight:"var(--consent-line-height-medium)"}}function B$(){return{color:"rgba(0, 0, 0, 0.9)",fontWeight:450,fontSize:"var(--consent-font-size-large)",lineHeight:"var(--consent-line-height-large)"}}function U$(){return{fontWeight:550}}function gN(){return{...Bl(),cursor:"pointer",backgroundColor:"transparent"}}function gU(){return{...U$(),...B$()}}function Zh(){return{...Bl(),color:"rgba(0, 0, 0, 0.5)"}}function IU(){return{...Bl(),backgroundColor:"black",color:"white",border:"1px solid black",height:"1.5rem",borderRadius:".3125rem",display:"flex",alignItems:"center",justifyContent:"center",padding:"0 .5rem",flexShrink:0,flexGrow:1,cursor:"pointer"}}function SU({wide:e}){return{display:"flex",gap:"0.5rem",flexShrink:0,alignItems:"center",width:e?"100%":void 0}}function Jh({checked:e,disabled:t}){return{input:{position:"absolute",opacity:0,width:32,height:16,margin:0,cursor:t?"unset":"pointer"},label:{display:"block",width:32,height:16,borderRadius:13,backgroundColor:e&&!t?"#1E1E1E":"#E6E6E6",position:"relative",cursor:t?"unset":"pointer",transition:"background-color 0.4s",pointerEvents:"none"},indicator:{position:"absolute",height:14,width:14,left:e?17:1,top:1,backgroundColor:"white",borderRadius:"50%",transition:"left 0.4s",boxShadow:"0 2px 4px rgba(0,0,0,0.2)",pointerEvents:"none"}}}function RU({yAlignment:e}){let t={};return e===wl.TOP?(t.top=0,t.borderBottom="1px solid #E6E6E6"):e===wl.BOTTOM&&(t.bottom=0,t.borderTop="1px solid #E6E6E6"),{position:"fixed",left:0,right:0,display:"flex",padding:"var(--consent-banner-padding)",justifyContent:"center",alignItems:"center",gap:"1rem",alignSelf:"stretch",backgroundColor:"white",color:"rgba(0, 0, 0, 0.5)",zIndex:9999,...t}}function AU({xAlignment:e,yAlignment:t}){let n={};return e===Fl.LEFT?n.left="1rem":e===Fl.RIGHT&&(n.right="1rem"),t===wl.TOP?n.top="1rem":t===wl.BOTTOM&&(n.bottom="1rem"),{...IN(),position:"fixed",padding:"1rem",zIndex:1e4,...n}}function IN(){return{position:"relative",backgroundColor:"white",borderRadius:".8125rem",padding:"1rem",width:330,maxHeight:"90%",maxWidth:"100%",boxShadow:"0px 0px 0px 1px rgba(0, 0, 0, 0.04), 0px 0px 0.5px 0px rgba(0, 0, 0, 0.12), 0px 10px 16px 0px rgba(0, 0, 0, 0.08), 0px 2px 6px 0px rgba(0, 0, 0, 0.12)",display:"flex",flexDirection:"column",alignItems:"center",gap:"1rem",overflowY:"auto"}}function dd({children:e,className:t,onClick:n}){return(0,NU.jsx)("button",{className:t,onClick:n,style:IU(),children:e})}var bo=v(_e());function V$({checked:e,disabled:t,onChange:n,label:r,id:o}){return(0,bo.jsxs)("div",{style:{display:"inline-block",position:"relative"},children:[(0,bo.jsx)("input",{"aria-disabled":t,disabled:t,type:"checkbox",id:o,checked:e,onChange:i=>n?.(i.target.checked),"aria-label":r,style:Jh({checked:e,disabled:t}).input}),(0,bo.jsx)("label",{htmlFor:o,style:Jh({checked:e,disabled:t}).label,children:(0,bo.jsx)("span",{style:Jh({checked:e,disabled:t}).indicator})})]})}function SN({id:e,checked:t,description:n,label:r,onChange:o,disabled:i}){return(0,bo.jsxs)("div",{onClick:i?void 0:()=>o(!t),style:{display:"flex",flexDirection:"column",padding:"0.5rem 0"},children:[(0,bo.jsxs)("div",{style:{display:"flex",alignItems:"center",gap:"0.5rem"},children:[(0,bo.jsx)(V$,{checked:t,disabled:i,onChange:i?void 0:o,label:r,id:e}),(0,bo.jsx)("label",{style:{...Bl(),color:i?"rgba(0, 0, 0, 0.3)":"rgba(0, 0, 0, 0.9)"},children:r})]}),(0,bo.jsx)("span",{style:{marginLeft:"2.5rem",...Zh()},children:n})]})}var Ul=v(_e()),RN=v(W()),yU=v(gu());var qh=v(W());function Qh(e){let[t,n]=(0,qh.useState)(null);return(0,qh.useLayoutEffect)(()=>
8231{if(typeof document>"u")return;let r=e?document.getElementById(e):null;n(r||null)},[e]),t}var H$={position:"fixed",inset:0,padding:"1rem",display:"flex",justifyContent:"center",alignItems:"center",zIndex:1e4},W$={display:"flex",justifyContent:"flex-end",position:"absolute",top:16,right:16,lineHeight:1,cursor:"pointer"},Y$={display:"flex",flexDirection:"column",gap:"0.5rem",width:"100%",height:"100%"};function AN({containerId:e,children:t,onClose:n,scrimBackground:r}){let o=Qh(e);return(0,RN.useEffect)(()=>{let i=s=>{s.key==="Escape"&&n()};return document.addEventListener("keydown",i),()=>{document.removeEventListener("keydown",i)}},[n]),(0,RN.useEffect)(()=>{let i=document.body.style.overflow;return o?o.style.overflow="hidden":document.body.style.overflow="hidden",()=>{o?o.style.overflow=i:document.body.style.overflow=i}},[o]),(0,yU.createPortal)((0,Ul.jsx)("div",{style:{...H$,...r?{backgroundColor:"rgba(0, 0, 0, 0.1)"}:{}},children:(0,Ul.jsxs)("div",{style:IN(),children:[(0,Ul.jsx)("div",{style:W$,children:(0,Ul.jsx)("button",{"aria-label":"Close modal",style:{fontSize:"16px",color:"black",backgroundColor:"transparent",border:"none",cursor:"pointer"},onClick:n,children:"\xD7"})}),(0,Ul.jsx)("div",{style:Y$,children:t})]})}),o||document.body)}var Rp=v(_e());function NN({policyLink:e,policyUrl:t,disclaimerText:n,guidToUrl:r,setLocation:o,reportError:i,isPreview:s}){let a=u=>{if(t)return(0,Rp.jsx)("a",{rel:"noopener noreferrer",target:"_blank",href:t,style:gN(),children:u},"policy-url");if(e){let c=s?"/":r?.get(e);return c?(0,Rp.jsx)("button",{onClick:()=>{o({url:c})},style:gN(),children:u},"policy-link"):(i(new Error("Sites cookie banner has an invalid policy link or is missing guidToUrl")),null)}return s||i(new Error("Sites cookie banner is enabled but no policy internal link or external URL is set")),null},l=n.split(/(<link>.*?<\/link>)/);return!l.length||!l.some(u=>u.match(/<link>(.*?)<\/link>/))?(i(new Error(`Formatting error in cookie banner disclaimer text: ${n}`)),null):(0,Rp.jsx)("div",{style:{lineHeight:"var(--consent-font-size-medium)"},children:l.map((u,c)=>{let d=u.match(/<link>(.*?)<\/link>/);return d&&d[1]?a(d[1]):(0,Rp.jsx)("p",{style:{display:"inline",...Zh()},children:u},c)})})}var bU=v(_e()),JMe=v(W()),LU=v(gu());function yN({containerId:e,xAlignment:t=Fl.CENTER,yAlignment:n=wl.CENTER,children:r}){let o=Qh(e);return(0,LU.createPortal)((0,bU.jsx)("div",{style:AU({xAlignment:t,yAlignment:n}),children:r}),o||document.body)}var CU=v(_e());function K$({xAlignment:e}){let t={bottom:0};return e===Fl.RIGHT?t.right="1.5rem":t.left="1.5rem",{...Bl(),position:"fixed",backgroundColor:"white",padding:".5rem 1rem",cursor:"pointer",borderRadius:"0.3125rem 0.3125rem 0 0",boxShadow:"0px 0px 0.5px 0px rgba(0, 0, 0, 0.18), 0px 3px 8px 0px rgba(0, 0, 0, 0.10), 0px 1px 3px 0px rgba(0, 0, 0, 0.10)",...t}}function bN({children:e,onClick:t,xAlignment:n}){return(0,CU.jsx)("button",{onClick:t,style:K$({xAlignment:n}),children:e})}var LN={"en-US":{noticeHeader:"This site uses cookies",noticeDisclaimerImplicit:"Cookies on this site help improve your experience and deliver personalized content. By continuing to browse, you consent to the use of these cookies. <link>Read more</link>",acceptText:"Accept all",manageText:"Manage",noticeDisclaimerExplicit:"Cookies on this site help improve your experience and deliver personalized content. Click \u201CAccept all\u201D to consent to the use of these cookies. <link>Read more</link>",rejectText:"Reject all",manageHeader:"Manage cookie preferences",manageDisclaimer:"Cookies on this site help improve your experience and deliver personalized content. You can\u2019t opt out of cookies that are essential for basic functionality, but you can decide not to allow other categories according to your preferences. <link>Read more</link>",necessaryText:"Essential cookies",necessaryDescription:"Required to enable core site functionality and preferences.",marketingText:"Marketing cookies",marketingDescription:"Allow tracking to enable ads personalization and tracking.",preferencesText:"Personalization cookies",preferencesDescription:"Allow tracking to tailor your site experience to your interests.",analyticsText:"Analytics cookies",analyticsDescription:"Allow tracking of site traffic to help improve site performance.",saveLabel:"Save preferences",triggerLabel:"Cookie preferences"}
8231,"en-GB":{noticeHeader:"This site uses cookies",noticeDisclaimerImplicit:"Cookies on this site help to improve your experience and deliver personalised content. By continuing to browse, you consent to the use of these cookies. <link>Read more</link>",acceptText:"Accept all",manageText:"Manage",noticeDisclaimerExplicit:"Cookies on this site help to improve your experience and deliver personalised content. Click \u2018Accept all\u2019 to consent to the use of these cookies. <link>Read more</link>",rejectText:"Reject all",manageHeader:"Manage cookie preferences",manageDisclaimer:"Cookies on this site help to improve your experience and deliver personalised content. You cannot opt out of cookies that are essential for basic functionality, but you can choose not to allow other categories according to your preferences. <link>Read more</link>",necessaryText:"Essential cookies",necessaryDescription:"Required to enable core site functionality and store your preferences.",marketingText:"Marketing cookies",marketingDescription:"Allow tracking to enable advertising personalisation and performance measurement.",preferencesText:"Personalisation cookies",preferencesDescription:"Allow tracking to tailor your site experience based on your interests.",analyticsText:"Analytics cookies",analyticsDescription:"Allow tracking of site usage to help improve performance.",saveLabel:"Save preferences",triggerLabel:"Cookie preferences"},"fr-FR":{noticeHeader:"Ce site utilise des cookies",noticeDisclaimerImplicit:"Les cookies pr\xE9sents sur ce site am\xE9liorent votre exp\xE9rience et fournissent un contenu personnalis\xE9. En continuant \xE0 naviguer, vous consentez \xE0 l'utilisation de ces cookies. <link>En savoir plus</link>",acceptText:"Tout accepter",manageText:"G\xE9rer",noticeDisclaimerExplicit:"Les cookies pr\xE9sents sur ce site am\xE9liorent votre exp\xE9rience et fournissent un contenu personnalis\xE9. Cliquez sur \u201CTout accepter\u201D pour consentir \xE0 l'utilisation de ces cookies. <link>En savoir plus</link>",rejectText:"Tout refuser",manageHeader:"G\xE9rer les pr\xE9f\xE9rences de cookies",manageDisclaimer:"Les cookies pr\xE9sents sur ce site am\xE9liorent votre exp\xE9rience et fournissent un contenu personnalis\xE9. Vous ne pouvez pas d\xE9sactiver les cookies essentiels au bon fonctionnement du site, mais vous pouvez choisir de ne pas autoriser certaines autres cat\xE9gories selon vos pr\xE9f\xE9rences. <link>En savoir plus</link>",necessaryText:"Cookies essentiels",necessaryDescription:"N\xE9cessaires pour activer les fonctionnalit\xE9s principales du site et m\xE9moriser vos pr\xE9f\xE9rences.",marketingText:"Cookies marketing",marketingDescription:"Autoriser le suivi pour personnaliser les publicit\xE9s et le marketing.",preferencesText:"Cookies de personnalisation",preferencesDescription:"Autoriser le suivi pour adapter l\u2019exp\xE9rience du site \xE0 vos centres d\u2019int\xE9r\xEAt.",analyticsText:"Cookies d\u2019analyse",analyticsDescription:"Autoriser le suivi du trafic du site pour am\xE9liorer ses performances.",saveLabel:"Enregistrer les pr\xE9f\xE9rences",triggerLabel:"Pr\xE9f\xE9rences de cookies"},"de-DE":{noticeHeader:"Diese Website verwendet Cookies",noticeDisclaimerImplicit:"Cookies auf dieser Website helfen dabei, Ihr Nutzungserlebnis zu verbessern und personalisierte Inhalte bereitzustellen. Wenn Sie weiter surfen, stimmen Sie der Verwendung dieser Cookies zu. <link>Mehr erfahren</link>",acceptText:"Alle akzeptieren",manageText:"Verwalten",noticeDisclaimerExplicit:"Cookies auf dieser Website helfen dabei, Ihr Nutzungserlebnis zu verbessern und personalisierte Inhalte bereitzustellen. Klicken Sie auf \u201EAlle akzeptieren\u201C, um der Verwendung dieser Cookies zuzustimmen. <link>Mehr erfahren</link>",rejectText:"Alle ablehnen",manageHeader:"Cookie-Einstellungen verwalten",manageDisclaimer:"Cookies auf dieser Website helfen dabei, Ihr Nutzungserlebnis zu verbessern und personalisierte Inhalte bereitzustellen. Sie k\xF6nnen essenzielle Cookies, die f\xFCr die grundlegende Funktionalit\xE4t erforderlich sind, nicht deaktivieren, aber Sie k\xF6nnen andere Kategorien nach Ihren Pr\xE4ferenzen ablehnen. <link>Mehr erfahren</link>",necessaryText:"Essenzielle Cookies",necessaryDescription:"Erforderlich zur Aktivierung der grundlegenden Website-Funktionen und zur Speicherung Ihrer Einstellungen.",marketingText:"Marketing-Cookie
8231s",marketingDescription:"Erlauben das Tracking zur Personalisierung von Werbung und zur Erfolgsmessung.",preferencesText:"Personalisierungs-Cookies",preferencesDescription:"Erlauben das Tracking, um Inhalte und Erlebnisse an Ihre Interessen anzupassen.",analyticsText:"Analyse-Cookies",analyticsDescription:"Erlauben das Tracking der Website-Nutzung zur Verbesserung der Leistung.",saveLabel:"Einstellungen speichern",triggerLabel:"Cookie-Einstellungen"},"es-ES":{noticeHeader:"Este sitio web utiliza cookies",noticeDisclaimerImplicit:"Las cookies en este sitio web ayudan a mejorar su experiencia y a ofrecer contenido personalizado. Al continuar navegando, acepta el uso de estas cookies. <link>Leer m\xE1s</link>",acceptText:"Aceptar todas",manageText:"Gestionar",noticeDisclaimerExplicit:"Las cookies en este sitio web ayudan a mejorar su experiencia y a ofrecer contenido personalizado. Haga clic en \u201CAceptar todas\u201D para consentir el uso de estas cookies. <link>Leer m\xE1s</link>",rejectText:"Rechazar todas",manageHeader:"Gestionar preferencias de cookies",manageDisclaimer:"Las cookies en este sitio web ayudan a mejorar su experiencia y a ofrecer contenido personalizado. No puede rechazar las cookies esenciales para el funcionamiento b\xE1sico, pero puede decidir no permitir otras categor\xEDas seg\xFAn sus preferencias. <link>Leer m\xE1s</link>",necessaryText:"Cookies esenciales",necessaryDescription:"Necesarias para activar las funciones b\xE1sicas del sitio y guardar sus preferencias.",marketingText:"Cookies de marketing",marketingDescription:"Permiten el seguimiento para personalizar la publicidad y medir su rendimiento.",preferencesText:"Cookies de personalizaci\xF3n",preferencesDescription:"Permiten el seguimiento para adaptar el sitio a sus intereses.",analyticsText:"Cookies de an\xE1lisis",analyticsDescription:"Permiten el seguimiento del uso del sitio para mejorar su rendimiento.",saveLabel:"Guardar preferencias",triggerLabel:"Preferencias de cookies"},"es-LA":{noticeHeader:"Este sitio utiliza cookies",noticeDisclaimerImplicit:"Las cookies en este sitio ayudan a mejorar su experiencia y a ofrecer contenido personalizado. Al seguir navegando, usted acepta el uso de estas cookies. <link>Leer m\xE1s</link>",acceptText:"Aceptar todas",manageText:"Administrar",noticeDisclaimerExplicit:"Las cookies en este sitio ayudan a mejorar su experiencia y a ofrecer contenido personalizado. Haga clic en \u201CAceptar todas\u201D para aceptar el uso de estas cookies. <link>Leer m\xE1s</link>",rejectText:"Rechazar todas",manageHeader:"Administrar preferencias de cookies",manageDisclaimer:"Las cookies en este sitio ayudan a mejorar su experiencia y a ofrecer contenido personalizado. No puede rechazar las cookies esenciales para el funcionamiento b\xE1sico, pero puede elegir no permitir otras categor\xEDas seg\xFAn sus preferencias. <link>Leer m\xE1s</link>",necessaryText:"Cookies esenciales",necessaryDescription:"Necesarias para habilitar funciones b\xE1sicas del sitio y guardar sus preferencias.",marketingText:"Cookies de marketing",marketingDescription:"Permiten el rastreo para personalizar anuncios y medir su rendimiento.",preferencesText:"Cookies de personalizaci\xF3n",preferencesDescription:"Permiten el rastreo para adaptar su experiencia seg\xFAn sus intereses.",analyticsText:"Cookies de an\xE1lisis",analyticsDescription:"Permiten el rastreo del uso del sitio para mejorar el rendimiento.",saveLabel:"Guardar preferencias",triggerLabel:"Preferencias de cookies"},"pt-BR":{noticeHeader:"Este site utiliza cookies",noticeDisclaimerImplicit:"Os cookies neste site ajudam a melhorar sua experi\xEAncia e a oferecer conte\xFAdo personalizado. Ao continuar navegando, voc\xEA concorda com o uso desses cookies. <link>Saiba mais</link>",acceptText:"Aceitar todos",manageText:"Gerenciar",noticeDisclaimerExplicit:"Os cookies neste site ajudam a melhorar sua experi\xEAncia e a oferecer conte\xFAdo personalizado. Clique em \u201CAceitar todos\u201D para consentir com o uso desses cookies. <link>Saiba mais</link>",rejectText:"Rejeitar todos",manageHeader:"Gerenciar prefer\xEAncias de cookies",manageDisclaimer:"Os cookies neste site ajudam a melhorar sua experi\xEAncia e a oferecer conte\xFAdo personalizado. N\xE3o \xE9 poss\xEDvel desativar os cookies essenciais para o funcionamento b\xE1sico, mas voc\xEA pode optar por n\xE3o permitir outras categorias de acordo com suas prefer\xEAncias. <link>Saiba mais</link>",necessaryText:"Cookies essenciais",necessaryDescription:"Necess\xE1rios para ativar funcionalidades principais do site e salvar suas prefer\xEAncias.",marketingText:"Cookies de marketing",marketingDescription:"Permitem o rastreamento para personalizar an\xFAncios e medir seu desempenho.",preferencesText:"Cookies de personaliza\xE7\xE3o",preferencesDescription:"Permitem o rastreamento para adaptar a experi\xEAncia do site aos seus interesses.",analyticsText:"Cookies de an\xE1lise",anal
8231yticsDescription:"Permitem o rastreamento do uso do site para melhorar seu desempenho.",saveLabel:"Salvar prefer\xEAncias",triggerLabel:"Prefer\xEAncias de cookies"},"ko-KR":{noticeHeader:"\uC774 \uC0AC\uC774\uD2B8\uB294 \uCFE0\uD0A4\uB97C \uC0AC\uC6A9\uD569\uB2C8\uB2E4",noticeDisclaimerImplicit:"\uC774 \uC0AC\uC774\uD2B8\uC758 \uCFE0\uD0A4\uB294 \uC0AC\uC6A9\uC790 \uACBD\uD5D8\uC744 \uAC1C\uC120\uD558\uACE0 \uAC1C\uC778\uD654\uB41C \uCF58\uD150\uCE20\uB97C \uC81C\uACF5\uD569\uB2C8\uB2E4. \uACC4\uC18D \uD0D0\uC0C9\uD558\uBA74 \uC774\uB7EC\uD55C \uCFE0\uD0A4 \uC0AC\uC6A9\uC5D0 \uB3D9\uC758\uD558\uB294 \uAC83\uC73C\uB85C \uAC04\uC8FC\uB429\uB2C8\uB2E4. <link>\uC790\uC138\uD788 \uC54C\uC544\uBCF4\uAE30</link>",acceptText:"\uBAA8\uB450 \uD5C8\uC6A9",manageText:"\uAD00\uB9AC",noticeDisclaimerExplicit:"\uC774 \uC0AC\uC774\uD2B8\uC758 \uCFE0\uD0A4\uB294 \uC0AC\uC6A9\uC790 \uACBD\uD5D8\uC744 \uAC1C\uC120\uD558\uACE0 \uAC1C\uC778\uD654\uB41C \uCF58\uD150\uCE20\uB97C \uC81C\uACF5\uD569\uB2C8\uB2E4. \u201C\uBAA8\uB450 \uD5C8\uC6A9\u201D\uC744 \uD074\uB9AD\uD558\uBA74 \uCFE0\uD0A4 \uC0AC\uC6A9\uC5D0 \uB3D9\uC758\uD558\uAC8C \uB429\uB2C8\uB2E4. <link>\uC790\uC138\uD788 \uC54C\uC544\uBCF4\uAE30</link>",rejectText:"\uBAA8\uB450 \uAC70\uBD80",manageHeader:"\uCFE0\uD0A4 \uD658\uACBD\uC124\uC815 \uAD00\uB9AC",manageDisclaimer:"\uC774 \uC0AC\uC774\uD2B8\uC758 \uCFE0\uD0A4\uB294 \uC0AC\uC6A9\uC790 \uACBD\uD5D8\uC744 \uAC1C\uC120\uD558\uACE0 \uAC1C\uC778\uD654\uB41C \uCF58\uD150\uCE20\uB97C \uC81C\uACF5\uD569\uB2C8\uB2E4. \uAE30\uBCF8 \uAE30\uB2A5\uC5D0 \uD544\uC218\uC801\uC778 \uCFE0\uD0A4\uB294 \uC120\uD0DD \uD574\uC81C\uD560 \uC218 \uC5C6\uC9C0\uB9CC, \uAE30\uD0C0 \uCE74\uD14C\uACE0\uB9AC\uB294 \uC124\uC815\uC5D0 \uB530\uB77C \uD5C8\uC6A9\uD558\uC9C0 \uC54A\uC744 \uC218 \uC788\uC2B5\uB2C8\uB2E4. <link>\uC790\uC138\uD788 \uC54C\uC544\uBCF4\uAE30</link>",necessaryText:"\uD544\uC218 \uCFE0\uD0A4",necessaryDescription:"\uD575\uC2EC \uC0AC\uC774\uD2B8 \uAE30\uB2A5 \uBC0F \uD658\uACBD\uC124\uC815 \uC720\uC9C0\uB97C \uC704\uD574 \uD544\uC694\uD569\uB2C8\uB2E4.",marketingText:"\uB9C8\uCF00\uD305 \uCFE0\uD0A4",marketingDescription:"\uAD11\uACE0 \uAC1C\uC778\uD654 \uBC0F \uCD94\uC801\uC744 \uC704\uD574 \uC0AC\uC6A9\uB429\uB2C8\uB2E4.",preferencesText:"\uAC1C\uC778\uD654 \uCFE0\uD0A4",preferencesDescription:"\uAD00\uC2EC\uC0AC\uC5D0 \uB9DE\uB294 \uCF58\uD150\uCE20 \uC81C\uACF5\uC744 \uC704\uD574 \uC0AC\uC6A9\uB429\uB2C8\uB2E4.",analyticsText:"\uBD84\uC11D \uCFE0\uD0A4",analyticsDescription:"\uC0AC\uC774\uD2B8 \uD2B8\uB798\uD53D \uBD84\uC11D \uBC0F \uC131\uB2A5 \uAC1C\uC120\uC744 \uC704\uD574 \uC0AC\uC6A9\uB429\uB2C8\uB2E4.",s
8231aveLabel:"\uD658\uACBD\uC124\uC815 \uC800\uC7A5",triggerLabel:"\uCFE0\uD0A4 \uD658\uACBD\uC124\uC815"},"ja-JP":{noticeHeader:"\u3053\u306E\u30B5\u30A4\u30C8\u306F\u30AF\u30C3\u30AD\u30FC\u3092\u4F7F\u7528\u3057\u3066\u3044\u307E\u3059",noticeDisclaimerImplicit:"\u3053\u306E\u30B5\u30A4\u30C8\u3067\u306F\u3001\u30AF\u30C3\u30AD\u30FC\u3092\u4F7F\u7528\u3057\u3066\u30E6\u30FC\u30B6\u30FC\u4F53\u9A13\u3092\u5411\u4E0A\u3055\u305B\u3001\u30D1\u30FC\u30BD\u30CA\u30E9\u30A4\u30BA\u3055\u308C\u305F\u30B3\u30F3\u30C6\u30F3\u30C4\u3092\u63D0\u4F9B\u3057\u3066\u3044\u307E\u3059\u3002\u5F15\u304D\u7D9A\u304D\u95B2\u89A7\u3092\u7D9A\u3051\u308B\u3053\u3068\u3067\u3001\u30AF\u30C3\u30AD\u30FC\u306E\u4F7F\u7528\u306B\u540C\u610F\u3057\u305F\u3082\u306E\u3068\u307F\u306A\u3055\u308C\u307E\u3059\u3002<link>\u8A73\u7D30\u3092\u898B\u308B</link>",acceptText:"\u3059\u3079\u3066\u8A31\u53EF",manageText:"\u7BA1\u7406",noticeDisclaimerExplicit:"\u3053\u306E\u30B5\u30A4\u30C8\u3067\u306F\u3001\u30AF\u30C3\u30AD\u30FC\u3092\u4F7F\u7528\u3057\u3066\u30E6\u30FC\u30B6\u30FC\u4F53\u9A13\u3092\u5411\u4E0A\u3055\u305B\u3001\u30D1\u30FC\u30BD\u30CA\u30E9\u30A4\u30BA\u3055\u308C\u305F\u30B3\u30F3\u30C6\u30F3\u30C4\u3092\u63D0\u4F9B\u3057\u3066\u3044\u307E\u3059\u3002\u300C\u3059\u3079\u3066\u8A31\u53EF\u300D\u3092\u30AF\u30EA\u30C3\u30AF\u3059\u308B\u3068\u3001\u30AF\u30C3\u30AD\u30FC\u306E\u4F7F\u7528\u306B\u540C\u610F\u3057\u305F\u3053\u3068\u306B\u306A\u308A\u307E\u3059\u3002<link>\u8A73\u7D30\u3092\u898B\u308B</link>",rejectText:"\u3059\u3079\u3066\u62D2\u5426",manageHeader:"\u30AF\u30C3\u30AD\u30FC\u8A2D\u5B9A\u3092\u7BA1\u7406",manageDisclaimer:"\u3053\u306E\u30B5\u30A4\u30C8\u3067\u306F\u3001\u30AF\u30C3\u30AD\u30FC\u3092\u4F7F\u7528\u3057\u3066\u30E6\u30FC\u30B6\u30FC\u4F53\u9A13\u3092\u5411\u4E0A\u3055\u305B\u3001\u30D1\u30FC\u30BD\u30CA\u30E9\u30A4\u30BA\u3055\u308C\u305F\u30B3\u30F3\u30C6\u30F3\u30C4\u3092\u63D0\u4F9B\u3057\u3066\u3044\u307E\u3059\u3002\u57FA\u672C\u7684\u306A\u6A5F\u80FD\u306B\u5FC5\u8981\u306A\u30AF\u30C3\u30AD\u30FC\u306F\u7121\u52B9\u306B\u3067\u304D\u307E\u305B\u3093\u304C\u3001\u305D\u308C\u4EE5\u5916\u306E\u30AB\u30C6\u30B4\u30EA\u306B\u3064\u3044\u3066\u306F\u8A2D\u5B9A\u306B\u5FDC\u3058\u3066\u7121\u52B9\u306B\u3067\u304D\u307E\u3059\u3002<link>\u8A73\u7D30\u3092\u898B\u308B</link>",necessaryText:"\u5FC5\u9808\u30AF\u30C3\u30AD\u30FC",necessaryDescription:"\u30B5\u30A4\u30C8\u306E\u57FA\u672C\u6A5F\u80FD\u3068\u8A2D\u5B9A\u306E\u4FDD\u6301\u306B\u5FC5\u8981\u3067\u3059\u3002",marketingText:"\u30DE\u30FC\u30B1\u30C6\u30A3\u30F3\u30B0\u30AF\u30C3\u30AD\u30FC",marketingDescription:"\u5E83\u544A\u306E\u30D1\u30FC\u30BD\u30CA\u30E9\u30A4\u30BA\u3068\u8FFD\u8DE1\u3092\u8A31\u53EF\u3057\u307E\u3059\u3002",preferencesText:"\u30D1\u30FC\u30BD\u30CA\u30E9\u30A4\u30BA\u30AF\u30C3\u30AD\u30FC",preferencesDescription:"\u8208\u5473\u306B\u57FA\u3065\u3044\u305F\u4F53\u9A13\u3092\u63D0\u4F9B\u3059\u308B\u305F\u3081\u306B\u4F7F\u7528\u3055\u308C\u307E\u3059\u3002",analyticsText:"\u5206\u6790\u30AF\u30C3\u30AD\u30FC",analyticsDescription:"\u30B5\u30A4\u30C8\u306E\u5229\u7528\u72B6\u6CC1\u3092\u8FFD\u8DE1\u3057\u3066\u30D1\u30D5\u30A9\u30FC\u30DE\u30F3\u30B9\u3092\u54
823111\u4E0A\u3055\u305B\u307E\u3059\u3002",saveLabel:"\u8A2D\u5B9A\u3092\u4FDD\u5B58",triggerLabel:"\u30AF\u30C3\u30AD\u30FC\u8A2D\u5B9A"},"pl-PL":{noticeHeader:"Ta strona korzysta z plik\xF3w cookie",noticeDisclaimerImplicit:"Pliki cookie na tej stronie pomagaj\u0105 ulepszy\u0107 Twoje do\u015Bwiadczenia i dostarcza\u0107 spersonalizowane tre\u015Bci. Kontynuuj\u0105c przegl\u0105danie, wyra\u017Casz zgod\u0119 na ich u\u017Cycie. <link>Dowiedz si\u0119 wi\u0119cej</link>",acceptText:"Zaakceptuj wszystkie",manageText:"Zarz\u0105dzaj",noticeDisclaimerExplicit:"Pliki cookie na tej stronie pomagaj\u0105 ulepszy\u0107 Twoje do\u015Bwiadczenia i dostarcza\u0107 spersonalizowane tre\u015Bci. Kliknij \u201EZaakceptuj wszystkie\u201D, aby wyrazi\u0107 zgod\u0119 na ich u\u017Cycie. <link>Dowiedz si\u0119 wi\u0119cej</link>",rejectText:"Odrzu\u0107 wszystkie",manageHeader:"Zarz\u0105dzaj preferencjami plik\xF3w cookie",manageDisclaimer:"Pliki cookie na tej stronie pomagaj\u0105 ulepszy\u0107 Twoje do\u015Bwiadczenia i dostarcza\u0107 spersonalizowane tre\u015Bci. Nie mo\u017Cesz zrezygnowa\u0107 z plik\xF3w cookie niezb\u0119dnych do podstawowego dzia\u0142ania witryny, ale mo\u017Cesz odrzuci\u0107 inne kategorie wed\u0142ug w\u0142asnych preferencji. <link>Dowiedz si\u0119 wi\u0119cej</link>",necessaryText:"Niezb\u0119dne pliki cookie",necessaryDescription:"Wymagane do dzia\u0142ania podstawowych funkcji witryny i zapami\u0119tywania ustawie\u0144.",marketingText:"Pliki cookie marketingowe",marketingDescription:"Pozwalaj\u0105 na \u015Bledzenie w celu personalizacji reklam i pomiaru skuteczno\u015Bci.",preferencesText:"Pliki cookie personalizuj\u0105ce",preferencesDescription:"Pozwalaj\u0105 na dostosowanie tre\u015Bci do Twoich zainteresowa\u0144.",analyticsText:"Pliki cookie analityczne",analyticsDescription:"Pozwalaj\u0105 na analiz\u0119 ruchu i popraw\u0119 wydajno\u015Bci witryny.",saveLabel:"Zapisz preferencje",triggerLabel:"Preferencje plik\xF3w cookie"},"nl-NL":{noticeHeader:"Deze website maakt gebruik van cookies",noticeDisclaimerImplicit:"Cookies op deze website helpen uw ervaring te verbeteren en gepersonaliseerde inhoud aan te bieden. Door verder te gaan, stemt u in met het gebruik van deze cookies. <link>Meer informatie</link>",acceptText:"Alles accepteren",manageText:"Beheren",noticeDisclaimerExplicit:"Cookies op deze website helpen uw ervaring te verbeteren en gepersonaliseerde inhoud aan te bieden. Klik op \u201CAlles accepteren\u201D om in te stemmen met het gebruik van deze cookies. <link>Meer informatie</link>",rejectText:"Alles weigeren",manageHeader:"Cookievoorkeuren beheren",manageDisclaimer:"Cookies op deze website helpen uw ervaring te verbeteren en gepersonaliseerde inhoud aan te bieden. U kunt essenti\xEBle cookies, die nodig zijn voor de basisfunctionaliteit, niet uitschakelen, maar u kunt andere categorie\xEBn weigeren op basis van uw voorkeuren. <link>Meer informatie</link>",necessaryText:"Essenti\xEBle cookies",necessaryDescription:"Noodzakelijk voor de kernfunctionaliteit van de site en het opslaan van uw voorkeuren.",marketingText:"Marketingcookies",marketingDescription:"Sta tracking toe voor gepersonaliseerde advertenties en het meten van prestaties.",preferencesText:"Personalisatiecookies",preferencesDescription:"Sta tracking toe om de site-ervaring aan te passen aan uw interesses.",analyticsText:"Analysecookies",analyticsDescription:"Sta tracking toe om sitegebruik te analyseren en prestaties te verbeteren.",saveLabel:"Voorkeuren opslaan",triggerLabel:"Cookievoorkeuren"},"it-IT":{noticeHeader:"Questo sito utilizza i cookie",noticeDisclaimerImplicit:"I cookie su questo sito aiutano a migliorare la tua esperienza e a fornire contenuti personalizzati. Continuando a navigare, acconsenti all\u2019uso dei cookie. <link>Scopri di pi\xF9</link>",acceptText:"Accetta tutti",manageText:"Gestisci",noticeDisclaimerExplicit:"I cookie su questo sito aiutano a migliorare la tua esperienza e a fornire contenuti personalizzati. Clicca su \u201CAccetta tutti\u201D per acconsentire all\u2019uso dei cookie. <link>Scopri di pi\xF9</link>",rejectText:"Rifiuta tutti",manageHeader:"Gestisci preferenze cookie",manageDisclaimer:"I cookie su questo sito aiutano a migliorare la tua esperienza e a fornire contenuti personalizzati. Non puoi disattivare i cookie essenziali per il funzionamento di base, ma puoi scegliere di non consentire altre categorie secondo le tue preferenze. <link>Scopri di pi\xF9</link>",necessaryText:"Cookie essenziali",necessaryDescription:"Necessari per il funzionamento base del sito e il salvataggio delle preferenze.",marketingText:"Cookie di marketing",marketingDescription:"Consentono il tracciamento per la personalizzazione degli annunci e la misurazione delle prestazioni.",preferencesText:"Cookie di personalizzazione",preferencesDescription:"Consentono il tracciamento per personalizzare l\u2019esperienza in base ai tuoi interessi.",analyticsText:"Cookie di analisi",analyticsDescription:"Consentono il tracciamento dell\u2019uso del sito per migliorarne le prestazioni.",saveLabel:"Salva preferenze",triggerLabel:"Preferenze cookie"},"pt-PT":{noticeHeader:"Este site utiliza cookies",noticeDisclaimerImplicit:"Os cookies neste site ajudam a melhorar a sua experi\xEAncia e a fornecer conte\xFAdo personalizado. Ao continuar a navegar, est\xE1 a consentir a utiliza\xE7\xE3o destes cookies. <link>Saiba mais</link>",acceptText:"Aceitar todos",manageText:"Gerir",noticeDisclaimerExplicit:"Os cookies neste site ajudam a melhorar a sua experi\xEAncia e a fornecer conte\xFAdo personalizado. Clique em \u201CAceitar todos\u201D para consentir a utiliza\xE7\xE3o destes cookies. <link>Saiba mais</link>",rejectText:"Rejeitar todos",manageHeader:"Gerir prefer\xEAncias de cookies",manageDisclaimer:"Os cookies neste site ajudam a melhorar a sua experi\xEAncia e a fornecer conte\xFAdo personalizado. N\xE3o pode desativar os cookies essenciais ao funcionamento b\xE1sico, mas pode recusar outras categorias de acordo com as suas prefer\xEAncias. <link>Saiba mais</link>",necessaryText:"Cookies essenciais",necessaryDescription:"Necess\xE1rios para ativar funcionalidades b\xE1sicas do site e guardar as suas prefer\xEAncias.",marketingText:"Cookies de marketing",marketingDescription:"Permitem a monitoriza\xE7\xE3o para personalizar an\xFAncios e medir o desempenho.",preferencesText:"Cookies de personaliza\xE7\xE3o",preferencesDescription:"Permitem a monitoriza\xE7\xE3o para adaptar a experi\xEAncia do site aos seus interesses.",analyticsText:"Cookies de an\xE1lise",anal
8231yticsDescription:"Permitem a monitoriza\xE7\xE3o da utiliza\xE7\xE3o do site para melhorar o desempenho.",saveLabel:"Guardar prefer\xEAncias",triggerLabel:"Prefer\xEAncias de cookies"},"sv-SE":{noticeHeader:"Den h\xE4r webbplatsen anv\xE4nder cookies",noticeDisclaimerImplicit:"Cookies p\xE5 den h\xE4r webbplatsen hj\xE4lper till att f\xF6rb\xE4ttra din upplevelse och visa personligt inneh\xE5ll. Genom att forts\xE4tta surfa samtycker du till anv\xE4ndningen av cookies. <link>L\xE4s mer</link>",acceptText:"Acceptera alla",manageText:"Hantera",noticeDisclaimerExplicit:"Cookies p\xE5 den h\xE4r webbplatsen hj\xE4lper till att f\xF6rb\xE4ttra din upplevelse och visa personligt inneh\xE5ll. Klicka p\xE5 \u201DAcceptera alla\u201D f\xF6r att godk\xE4nna anv\xE4ndningen av cookies. <link>L\xE4s mer</link>",rejectText:"Avvisa alla",manageHeader:"Hantera cookieinst\xE4llningar",manageDisclaimer:"Cookies p\xE5 den h\xE4r webbplatsen hj\xE4lper till att f\xF6rb\xE4ttra din upplevelse och visa personligt inneh\xE5ll. Du kan inte v\xE4lja bort cookies som \xE4r n\xF6dv\xE4ndiga f\xF6r grundl\xE4ggande funktioner, men du kan v\xE4lja bort andra kategorier enligt dina preferenser. <link>L\xE4s mer</link>",necessaryText:"N\xF6dv\xE4ndiga cookies",necessaryDescription:"Kr\xE4vs f\xF6r grundl\xE4ggande funktionalitet och f\xF6r att spara inst\xE4llningar.",marketingText:"Marknadsf\xF6ringscookies",marketingDescription:"Till\xE5ter sp\xE5rning f\xF6r att anpassa annonser och m\xE4ta resultat.",preferencesText:"Personaliseringcookies",preferencesDescription:"Till\xE5ter sp\xE5rning f\xF6r att anpassa upplevelsen efter dina intressen.",analyticsText:"Analyscookies",analyticsDescription:"Till\xE5ter sp\xE5rning av anv\xE4ndning f\xF6r att f\xF6rb\xE4ttra prestanda.",saveLabel:"Spara inst\xE4llningar",triggerLabel:"Cookieinst\xE4llningar"},"da-DK":{noticeHeader:"Dette websted bruger cookies",noticeDisclaimerImplicit:"Cookies p\xE5 dette websted hj\xE6lper med at forbedre din oplevelse og levere tilpasset indhold. Ved at forts\xE6tte med at bruge siden accepterer du brugen af cookies. <link>L\xE6s mere</link>",acceptText:"Accept\xE9r alle",manageText:"Administrer",noticeDisclaimerExplicit:'Cookies p\xE5 dette websted hj\xE6lper med at forbedre din oplevelse og levere tilpasset indhold. Klik p\xE5 "Accept\xE9r alle" for at acceptere brugen af cookies. <link>L\xE6s mere</link>',rejectText:"Afvis alle",manageHeader:"Administrer cookieindstillinger",manageDisclaimer:"Cookies p\xE5 dette websted hj\xE6lper med at forbedre din oplevelse og levere tilpasset indhold. Du kan ikke frav\xE6lge cookies, der er n\xF8dvendige for grundl\xE6ggende funktioner, men du kan v\xE6lge at afvise andre kategorier efter dine pr\xE6ferencer. <link>L\xE6s mere</link>",necessaryText:"N\xF8dvendige cookies",necessaryDescription:"N\xF8dvendige for grundl\xE6ggende funktionalitet og for at gemme dine indstillinger.",marketingText:"Marketingcookies",marketingDescription:"Tillad sporing for at aktivere tilpasning af annoncer og sporing.",preferencesText:"Tilpasningscookies",preferencesDescription:"Tillad sporing for at tilpasse webstedet efter dine interesser.",analyticsText:"Analysecookies",analyticsDescription:"Tillad sporing af webstedstrafik for at forbedre webstedets effektivitet.",saveLabel:"Gem indstillinger",triggerLabel:"Cookieindstillinger"},"fi-FI":{noticeHeader:"T\xE4m\xE4 sivusto k\xE4ytt\xE4\xE4 ev\xE4steit\xE4",noticeDisclaimerImplicit:"T\xE4m\xE4n sivuston ev\xE4steet parantavat k\xE4ytt\xF6kokemustasi ja tarjoavat personoitua sis\xE4lt\xF6\xE4. Jatkamalla selaamista hyv\xE4ksyt n\xE4iden ev\xE4steiden k\xE4yt\xF6n. <link>Lue lis\xE4\xE4</link>",acceptText:"Hyv\xE4ksy kaikki",manageText:"Hallitse",noticeDisclaimerExplicit:"T\xE4m\xE4n sivuston ev\xE4steet parantavat k\xE4ytt\xF6kokemustasi ja tarjoavat personoitua sis\xE4lt\xF6\xE4. Napsauta \u201DHyv\xE4ksy kaikki\u201D ev\xE4steiden k\xE4yt\xF6n hyv\xE4ksymiseksi. <link>Lue lis\xE4\xE4</link>",rejectText:"Hylk\xE4\xE4 kaikki",manageHeader:"Hallitse ev\xE4steasetuksia",manageDisclaimer:"T\xE4m\xE4n sivuston ev\xE4steet parantavat k\xE4ytt\xF6kokemustasi ja tarjoavat personoitua sis\xE4lt\xF6\xE4. V\xE4ltt\xE4m\xE4tt\xF6m
8231i\xE4 ev\xE4steit\xE4 ei voi poistaa k\xE4yt\xF6st\xE4, mutta voit est\xE4\xE4 muita ev\xE4stetyyppej\xE4 omien mieltymystesi mukaan. <link>Lue lis\xE4\xE4</link>",necessaryText:"V\xE4ltt\xE4m\xE4tt\xF6m\xE4t ev\xE4steet",necessaryDescription:"Tarvitaan sivuston perustoimintojen mahdollistamiseen ja asetusten tallentamiseen.",marketingText:"Markkinointiev\xE4steet",marketingDescription:"Sallivat seurannan mainonnan personointia ja mittaamista varten.",preferencesText:"Personointiev\xE4steet",preferencesDescription:"Sallivat seurannan sivuston k\xE4ytt\xF6kokemuksen r\xE4\xE4t\xE4l\xF6intiin omien kiinnostuksen kohteidesi mukaan.",analyticsText:"Analytiikkaev\xE4steet",analyticsDescription:"Sallivat sivuston verkkoliikenteen seurannan sivuston suorituskyvyn parantamiseksi.",saveLabel:"Tallenna asetukset",triggerLabel:"Ev\xE4steasetukset"},"cs-CZ":{noticeHeader:"Tato str\xE1nka pou\u017E\xEDv\xE1 soubory cookie",noticeDisclaimerImplicit:"Soubory cookie na t\xE9to str\xE1nce pom\xE1haj\xED zlep\u0161it va\u0161e zku\u0161enosti a poskytovat personalizovan\xFD obsah. Pokra\u010Dov\xE1n\xEDm v prohl\xED\u017Een\xED vyjad\u0159ujete souhlas s pou\u017E\xEDv\xE1n\xEDm t\u011Bchto soubor\u016F cookie. <link>V\xEDce informac\xED</link>",acceptText:"P\u0159ijmout v\u0161e",manageText:"Spravovat",noticeDisclaimerExplicit:"Soubory cookie na t\xE9to str\xE1nce pom\xE1haj\xED zlep\u0161it va\u0161e zku\u0161enosti a poskytovat personalizovan\xFD obsah. Kliknut\xEDm na \u201EP\u0159ijmout v\u0161e\u201C vyjad\u0159ujete souhlas s pou\u017E\xEDv\xE1n\xEDm t\u011Bchto soubor\u016F cookie. <link>V\xEDce informac\xED</link>",rejectText:"Odm\xEDtnout v\u0161e",manageHeader:"Spravovat p\u0159edvolby soubor\u
8231016F cookie",manageDisclaimer:"Soubory cookie na t\xE9to str\xE1nce pom\xE1haj\xED zlep\u0161it va\u0161e zku\u0161enosti a poskytovat personalizovan\xFD obsah. Nelze odm\xEDtnout soubory cookie, kter\xE9 jsou nezbytn\xE9 pro z\xE1kladn\xED funk\u010Dnost, ale m\u016F\u017Eete se rozhodnout nepovolit ostatn\xED kategorie podle sv\xFDch p\u0159edvoleb. <link>V\xEDce informac\xED</link>",necessaryText:"Nezbytn\xE9 soubory cookie",necessaryDescription:"Vy\u017Eadov\xE1ny k umo\u017En\u011Bn\xED z\xE1kladn\xED funk\u010Dnosti a p\u0159edvoleb str\xE1nky.",marketingText:"Marketingov\xE9 soubory cookie",marketingDescription:"Umo\u017E\u0148uj\xED sledov\xE1n\xED za \xFA\u010Delem personalizace reklam a m\u011B\u0159en\xED jejich \xFA\u010Dinnosti.",preferencesText:"Personaliza\u010Dn\xED soubory cookie",preferencesDescription:"Umo\u017E\u0148uj\xED sledov\xE1n\xED za \xFA\u010Delem p\u0159izp\u016Fsoben\xED prost\u0159ed\xED webu va\u0161im z\xE1jm\u016Fm.",analyticsText:"Analytick\xE9 soubory cookie",analyticsDescription:"Umo\u017E\u0148uj\xED sledov\xE1n\xED n\xE1v\u0161t\u011Bvnosti webu pro zlep\u0161en\xED jeho v\xFDkonu.",saveLabel:"Ulo\u017Eit p\u0159edvolby",triggerLabel:"P\u0159edvolby soubor\u
8231016F cookie"},"hu-HU":{noticeHeader:"Ez a webhely cookie-kat haszn\xE1l",noticeDisclaimerImplicit:"Ez a webhely cookie-kat haszn\xE1l az \xE9lm\xE9ny jav\xEDt\xE1sa \xE9s a szem\xE9lyre szabott tartalom megjelen\xEDt\xE9se \xE9rdek\xE9ben. A b\xF6ng\xE9sz\xE9s folytat\xE1s\xE1val \xD6n elfogadja a cookie-k haszn\xE1lat\xE1t. <link>Tov\xE1bbi inform\xE1ci\xF3</link>",acceptText:"\xD6sszes elfogad\xE1sa",manageText:"Kezel\xE9s",noticeDisclaimerExplicit:"Ez a webhely cookie-kat haszn\xE1l az \xE9lm\xE9ny jav\xEDt\xE1sa \xE9s a szem\xE9lyre szabott tartalom megjelen\xEDt\xE9se \xE9rdek\xE9ben. Kattintson az \u201E\xD6sszes elfogad\xE1sa\u201D gombra a cookie-k haszn\xE1lat\xE1nak enged\xE9lyez\xE9s\xE9hez. <link>Tov\xE1bbi inform\xE1ci\xF3</link>",rejectText:"\xD6sszes elutas\xEDt\xE1sa",manageHeader:"Cookie-be\xE1ll\xEDt\xE1sok kezel\xE9se",manageDisclaimer:"Ez a webhely cookie-kat haszn\xE1l az \xE9lm\xE9ny jav\xEDt\xE1sa \xE9s a szem\xE9lyre szabott tartalom megjelen\xEDt\xE9se \xE9rdek\xE9ben. Az alapvet\u0151 funkci\xF3khoz sz\xFCks\xE9ges cookie-kat nem lehet letiltani, de a t\xF6bbi kateg\xF3ria enged\xE9lyez\xE9s\xE9t be\xE1ll\xEDthatja a saj\xE1t preferenci\xE1i szerint. <link>Tov\xE1bbi inform\xE1ci\xF3</link>",necessaryText:"Alapvet\u0151 cookie-k",necessaryDescription:"A webhely alapvet\u0151 funkci\xF3inak m\u0171k\xF6d\xE9s\xE9hez \xE9s a be\xE1ll\xEDt\xE1sok ment\xE9s\xE9hez sz\xFCks\xE9gesek.",marketingText:"Marketing cookie-k",marketingDescription:"Lehet\u0151v\xE9 teszik a nyomon k\xF6vet\xE9st a hirdet\xE9sek szem\xE9lyre szab\xE1s\xE1hoz \xE9s teljes\xEDtm\xE9ny\xFCk m\xE9r\xE9s\xE9hez.",preferencesText:"Szem\xE9lyre szab\xE1si cookie-k",preferencesDescription:"Lehet\u0151v\xE9 teszik a felhaszn\xE1l\xF3i \xE9lm\xE9ny \xE9rdekl\u0151d\xE9si k\xF6r\xF6k\xF6n alapul\xF3 szem\xE9lyre szab\xE1s\xE1t.",analyticsText:"Analitikai cookie-k",analyticsDescription:"A webhelyhaszn\xE1lat nyomon k\xF6vet\xE9s\xE9re \xE9s a teljes\xEDtm\xE9ny jav\xEDt\xE1s\xE1ra szolg\xE1lnak.",saveLabel:"Be\xE1ll\xEDt\xE1sok ment\xE9se",triggerLabel:"Cookie-be\xE1ll\xEDt\xE1sok"}
8231,"el-GR":{noticeHeader:"\u0391\u03C5\u03C4\u03CC\u03C2 \u03BF \u03B9\u03C3\u03C4\u03CC\u03C4\u03BF\u03C0\u03BF\u03C2 \u03C7\u03C1\u03B7\u03C3\u03B9\u03BC\u03BF\u03C0\u03BF\u03B9\u03B5\u03AF cookies",noticeDisclaimerImplicit:"\u03A4\u03B1 cookies \u03C3\u03B5 \u03B1\u03C5\u03C4\u03CC\u03BD \u03C4\u03BF\u03BD \u03B9\u03C3\u03C4\u03CC\u03C4\u03BF\u03C0\u03BF \u03B2\u03BF\u03B7\u03B8\u03BF\u03CD\u03BD \u03C3\u03C4\u03B7 \u03B2\u03B5\u03BB\u03C4\u03AF\u03C9\u03C3\u03B7 \u03C4\u03B7\u03C2 \u03B5\u03BC\u03C0\u03B5\u03B9\u03C1\u03AF\u03B1\u03C2 \u03C3\u03B1\u03C2 \u03BA\u03B1\u03B9 \u03C3\u03C4\u03B7\u03BD \u03C0\u03B1\u03C1\u03BF\u03C7\u03AE \u03B5\u03BE\u03B1\u03C4\u03BF\u03BC\u03B9\u03BA\u03B5\u03C5\u03BC\u03AD\u03BD\u03BF\u03C5 \u03C0\u03B5\u03C1\u03B9\u03B5\u03C7\u03BF\u03BC\u03AD\u03BD\u03BF\u03C5. \u03A3\u03C5\u03BD\u03B5\u03C7\u03AF\u03B6\u03BF\u03BD\u03C4\u03B1\u03C2 \u03C4\u03B7\u03BD \u03C0\u03B5\u03C1\u03B9\u03AE\u03B3\u03B7\u03C3\u03B7, \u03B1\u03C0\u03BF\u03B4\u03AD\u03C7\u03B5\u03C3\u03C4\u03B5 \u03C4\u03B7 \u03C7\u03C1\u03AE\u03C3\u03B7 \u03C4\u03C9\u03BD cookies. <link>\u039C\u03AC\u03B8\u03B5\u03C4\u03B5 \u03C0\u03B5\u03C1\u03B9\u03C3\u03C3\u03CC\u03C4\u03B5\u03C1\u03B1</link>",acceptText:"\u0391\u03C0\u03BF\u03B4\u03BF\u03C7\u03AE \u03CC\u03BB\u03C9\u03BD",manageText:"\u0394\u03B9\u03B1\u03C7\u03B5\u03AF\u03C1\u03B9\u03C3\u03B7",noticeDisclaimerExplicit:"\u03A4\u03B1 cookies \u03C3\u03B5 \u03B1\u03C5\u03C4\u03CC\u03BD \u03C4\u03BF\u03BD \u03B9\u03C3\u03C4\u03CC\u03C4\u03BF\u03C0\u03BF \u03B2\u03BF\u03B7\u03B8\u03BF\u03CD\u03BD \u03C3\u03C4\u03B7 \u03B2\u03B5\u03BB\u03C4\u03AF\u03C9\u03C3\u03B7 \u03C4\u03B7\u03C2 \u03B5\u03BC\u03C0\u03B5\u03B9\u03C1\u03AF\u03B1\u03C2 \u03C3\u03B1\u03C2 \u03BA\u03B1\u03B9 \u03C3\u03C4\u03B7\u03BD \u03C0\u03B1\u03C1\u03BF\u03C7\u03AE \u03B5\u03BE\u03B1\u03C4\u03BF\u03BC\u03B9\u03BA\u03B5\u03C5\u03BC\u03AD\u03BD\u03BF\u03C5 \u03C0\u03B5\u03C1\u03B9\u03B5\u03C7\u03BF\u03BC\u03AD\u03BD\u03BF\u03C5. \u039A\u03AC\u03BD\u03C4\u03B5 \u03BA\u03BB\u03B9\u03BA \u03C3\u03C4\u03B7\u03BD \u03B5\u03C0\u03B9\u03BB\u03BF\u03B3\u03AE \u201C\u0391\u03C0\u03BF\u03B4\u03BF\u03C7\u03AE \u03CC\u03BB\u03C9\u03BD\u201D \u03B3\u03B9\u03B1 \u03BD\u03B1 \u03B4\u03CE\u03C3\u03B5\u03C4\u03B5 \u03C4\u03B7 \u03C3\u03C5\u03B3\u03BA\u03B1\u03C4\u03AC\u03B8\u03B5\u03C3\u03AE \u03C3\u03B1\u03C2 \u03C3\u03C4\u03B7 \u03C7\u03C1\u03AE\u03C3\u03B7 \u03C4\u03C9\u03BD cookies. <link>\u039C\u03AC\u03B8\u03B5\u03C4\u03B5 \u03C0\u03B5\u03C1\u03B9\u03C3\u03C3\u03CC\u03C4\u03B5\u03C1\u03B1</link>",rejectText:"\u0391\u03C0\u03CC\u03C1\u03C1\u03B9\u03C8\u03B7 \u03CC\u03BB\u03C9\u03BD",manageHeader:"\u0394\u03B9\u03B1\u03C7\u03B5\u03AF\u03C1\u03B9\u03C3\u03B7 \u03C0\u03C1\u03BF\u03C4\u03B9\u03BC\u03AE\u03C3\u03B5\u03C9\u03BD cookies",manageDisclaimer:"\u03A4\u03B1 cookies \u03C3\u03B5 \u03B1\u03C5\u03C4\u03CC\u03BD \u03C4\u03BF\u03BD \u03B9\u03C3\u03C4\u03CC\u03C4\u03BF\u03C0\u03BF \u03B2\u03BF\u03B7\u03B8\u03BF\u03CD\u03BD \u03C3\u03C4\u03B7 \u03B2\u03B5\u03BB\u03C4\u03AF\u03C9\u03C3\u03B7 \u03C4\u03B7\u03C2 \u03B5\u03BC\u03C0\u03B5\u03B9\u03C1\u03AF\u03B1\u03C2 \u03C3\u03B1\u03C2 \u03BA\u03B1\u03B9 \u03C3\u03C4\u03B7\u03BD \u03C0\u03B1\u03C1\u03BF\u03C7\u03AE \u03B5\u03BE\u03B1\u03C4\u03BF\u03BC\u03B9\u03BA\u03B5\u03C5\u03BC\u03AD\u03BD\u03BF\u03C5 \u03C0\u03B5\u03C1\u03B9\u03B5\u03C7\u03BF\u03BC\u03AD\u03BD\u03BF\u03C5. \u0394\u03B5\u03BD \u03BC\u03C0\u03BF\u03C1\u03B5\u03AF\u03C4\u03B5 \u03BD\u03B1 \u03B1\u03C0\u03BF\u03C1\u03C1\u03AF\u03C8\u03B5\u03C4\u03B5 \u03C4\u03B1 \u03B1\u03C0\u03BF\u03BB\u03CD\u03C4\u03C9\u03C2 \u03B1\u03C0\u03B1\u03C1\u03B1\u03AF\u03C4\u03B7\u03C4\u03B1 cookies, \u03B1\u03BB\u03BB\u03AC \u03BC\u03C0\u03BF\u03C1\u03B5\u03AF\u03C4\u03B5 \u03BD\u03B1 \u03B1\u03C0\u03B5\u03BD\u03B5\u03C1\u03B3\u03BF\u03C0\u03BF\u03B9\u03AE\u03C3\u03B5\u03C4\u03B5 \u03AC\u03BB\u03BB\u03B5\u03C2 \u03BA\u03B1\u03C4\u03B7\u03B3\u03BF\u03C1\u03AF\u03B5\u03C2 \u03C3\u03CD\u03BC\u03C6\u03C9\u03BD\u03B1 \u03BC\u03B5 \u03C4\u03B9\u03C2 \u03C0\u03C1\u03BF\u03C4\u03B9\u03BC\u03AE\u03C3\u03B5\u03B9\u03C2 \u03C3\u03B1\u03C2. <link>\u039C\u03AC\u03B8\u03B5\u03C4\u03B5 \u03C0\u03B5\u03C1\u03B9\u03C3\u03C3\u03CC\u03C4\u03B5\u03C1\u03B1</link>",necessaryText:"\u0391\u03C0\u03B1\u03C1\u03B1\u03AF\u03C4\u03B7\u03C4\u03B1 cookies",necessaryDescription:"\u0391\u03C0\u03B1\u03B9\u03C4\u03BF\u03CD\u03BD\u03C4\u03B1\u03B9 \u03B3\u03B9\u03B1 \u03B2\u03B1\u03C3\u03B9\u03BA\u03AD\u03C2 \u03BB\u03B5\u03B9\u03C4\u03BF\u03C5\u03C1\u03B3\u03AF\u03B5\u03C2 \u03C4\u03BF\u03C5 \u03B9\u03C3\u03C4\u03CC\u03C4\u03BF\u03C0\u03BF\u03C5 \u03BA\u03B1\u03B9 \u03B1\u03C0\u03BF\u03B8\u03AE\u03BA\u03B5\u03C5\u03C3\u03B7 \u03C0\u03C1\u03BF\u03C4\u03B9\u03BC\u03AE\u03C3\u03B5\u03C9\u03BD.",marketingText:"Cookies \u03BC\u03AC\u03C1\u03BA\u03B5\u03C4\u03B9\u03BD\u03B3\u03BA",marketingDescription:"\u0395\u03C0\u03B9\u03C4\u03C1\u03AD\u03C0\u03BF\u03C5\u03BD \u03C4\u03B7\u03BD \u03C0\u03B1\u03C1\u03B1\u03BA\u03BF\u03BB\u03BF\u03CD\u03B8\u03B7\u03C3\u03B7 \u03B3\u03B9\u03B1 \u03B5\u03BE\u03B1\u03C4\u03BF\u03BC\u03AF\u03BA\u03B5\u03C5\u03C3\u03B7 \u03B4\u03B9\u03B1\u03C6\u03B7\u03BC\u03AF\u03C3\u03B5\u03C9\u03BD \u03BA\u03B1\u03B9 \u03BC\u03AD\u03C4\u03C1\u03B7\u03C3\u03B7 \u03B1\u03C0\u03CC\u03B4\u03BF\u03C3\u03B7\u03C2.",preferencesText:"Cookies \u03B5\u03BE\u03B1\u03C4\u03BF\u03BC\u03AF\u03BA\u03B5\u03C5\u03C3\u03B7\u03C2",preferencesDescription:"\u0395\u03C0\u03B9\u03C4\u03C1\u03AD\u03C0\u03BF\u03C5\u03BD \u03C4\u03B7\u03BD \u03C0\u03B1\u03C1\u03B1\u03BA\u03BF\u03BB\u03BF\u03CD\u03B8\u03B7\u03C3\u03B7 \u03B3\u03B9\u03B1 \u03C0\u03C1\u03BF\u03C3\u03B1\u03C1\u03BC\u03BF\u03B3\u03AE \u03C4\u03B7\u03C2 \u03B5\u03BC\u03C0\u03B5\u03B9\u03C1\u03AF\u03B1\u03C2 \u03C3\u03CD\u03BC\u03C6\u03C9\u03BD\u03B1 \u03BC\u03B5 \u03C4\u03B1 \u03B5\u03BD\u03B4\u03B9\u03B1\u03C6\u03AD\u03C1\u03BF\u03BD\u03C4\u03AC \u03C3\u03B1\u03C2.",anal
8231yticsText:"Cookies \u03B1\u03BD\u03AC\u03BB\u03C5\u03C3\u03B7\u03C2",analyticsDescription:"\u0395\u03C0\u03B9\u03C4\u03C1\u03AD\u03C0\u03BF\u03C5\u03BD \u03C4\u03B7\u03BD \u03C0\u03B1\u03C1\u03B1\u03BA\u03BF\u03BB\u03BF\u03CD\u03B8\u03B7\u03C3\u03B7 \u03C4\u03B7\u03C2 \u03C7\u03C1\u03AE\u03C3\u03B7\u03C2 \u03C4\u03BF\u03C5 \u03B9\u03C3\u03C4\u03CC\u03C4\u03BF\u03C0\u03BF\u03C5 \u03B3\u03B9\u03B1 \u03C4\u03B7 \u03B2\u03B5\u03BB\u03C4\u03AF\u03C9\u03C3\u03B7 \u03C4\u03C9\u03BD \u03B5\u03C0\u03B9\u03B4\u03CC\u03C3\u03B5\u03C9\u03BD.",saveLabel:"\u0391\u03C0\u03BF\u03B8\u03AE\u03BA\u03B5\u03C5\u03C3\u03B7 \u03C0\u03C1\u03BF\u03C4\u03B9\u03BC\u03AE\u03C3\u03B5\u03C9\u03BD",triggerLabel:"\u03A0\u03C1\u03BF\u03C4\u03B9\u03BC\u03AE\u03C3\u03B5\u03B9\u03C2 cookies"},"ro-RO":{noticeHeader:"Acest site folose\u0219te cookie-uri",noticeDisclaimerImplicit:"Cookie-urile de pe acest site ajut\u0103 la \xEEmbun\u0103t\u0103\u021Birea experien\u021Bei \u0219i la furnizarea de con\u021Binut personalizat. Continu\xE2nd navigarea, sunte\u021Bi de acord cu utilizarea cookie-urilor. <link>Citi\u021Bi mai multe</link>",acceptText:"Accepta\u021Bi toate",manageText:"Gestionare",noticeDisclaimerExplicit:"Cookie-urile de pe acest site ajut\u0103 la \xEEmbun\u0103t\u0103\u021Birea experien\u021Bei \u0219i la furnizarea de con\u021Binut personalizat. Face\u021Bi clic pe \u201EAccepta\u021Bi toate\u201D pentru a v\u0103 da consim\u021B\u0103m\xE2ntul pentru utilizarea cookie-urilor. <link>Citi\u021Bi mai multe</link>",rejectText:"Respinge\u021Bi toate",manageHeader:"Gestiona\u021Bi preferin\u021Bele legate de cookie",manageDisclaimer:"Cookie-urile de pe acest site ajut\u0103 la \xEEmbun\u0103t\u0103\u021Birea experien\u021Bei \u0219i la furnizarea de con\u021Binut personalizat. Nu pute\u021Bi refuza cookie-urile esen\u021Biale pentru func\u021Bionalitatea de baz\u0103, dar pute\u021Bi refuza alte categorii conform preferin\u021Belor dvs. <link>Citi\u021Bi mai multe</link>",necessaryText:"Cookie-uri esen\u021Biale",necessaryDescription:"Necesare pentru func\u021Biile de baz\u0103 ale site-ului \u0219i salvarea preferin\u021Belor.",marketingText:"Cookie-uri de marketing",marketingDescription:"Permit urm\u0103rirea pentru personalizarea \u0219i urm\u0103rirea reclamelor.",preferencesText:"Cookie-uri de personalizare",preferencesDescription:"Permit urm\u0103rirea pentru adaptarea experien\u021Bei de utilizare a site-ului la interesele dvs.",analyticsText:"Cookie-uri de analiz\u0103",analyticsDescription:"Permit urm\u0103rirea traficului de pe site pentru \xEEmbun\u0103t\u0103\u021Birea performan\u021Bei.",saveLabel:"Salva\u021Bi preferin\u021Bele",triggerLabel:"Preferin\u021Be legate de cookie"},"sk-SK":{noticeHeader:"T\xE1to lokalita pou\u017E\xEDva s\xFAbory cookie",noticeDisclaimerImplicit:"S\xFAbory cookie na tejto lokalite pom\xE1haj\xFA zlep\u0161i\u0165 v\xE1\u0161 z\xE1\u017Eitok a poskytova\u0165 personalizovan\xFD obsah. Pokra\u010Dovan\xEDm v prehliadan\xED s\xFAhlas\xEDte s ich pou\u017E\xEDvan\xEDm. <link>Viac inform\xE1ci\xED</link>",acceptText:"Prija\u0165 v\u0161etky",manageText:"Spravova\u0165",noticeDisclaimerExplicit:"S\xFAbory cookie na tejto lokalite pom\xE1haj\xFA zlep\u0161i\u0165 v\xE1\u0161 z\xE1\u017Eitok a poskytova\u0165 personalizovan\xFD obsah. Kliknut\xEDm na tla\u010Didlo Prija\u0165 v\u0161etky s\xFAhlas\xEDte s ich pou\u017E\xEDvan\xEDm. <link>Viac inform\xE1ci\xED</link>",rejectText:"Odmietnu\u0165 v\u0161etky",manageHeader:"Spr\xE1va predvolieb s\xFAborov cookie",manageDisclaimer:"S\xFAbory cookie na tejto lokalite pom\xE1haj\xFA zlep\u0161i\u0165 v\xE1\u0161 z\xE1\u017Eitok a poskytova\u0165 personalizovan\xFD obsah. Nevyhnutn\xE9 s\xFAbory cookie, ktor\xE9 zabezpe\u010Duj\xFA z\xE1kladn\xE9 funkcie, nie je mo\u017En\xE9 zak\xE1za\u0165, ale in\xE9 kateg\xF3rie m\xF4\u017Eete zak\xE1za\u0165 pod\u013Ea svojich preferenci\xED. <link>Viac inform\xE1ci\xED</link>",necessaryText:"Nevyhnutn\xE9 s\xFAbory cookie",necessaryDescription:"Potrebn\xE9 na povolenie z\xE1kladn\xFDch funkci\xED lokality a predvolieb.",marketingText:"Marketingov\xE9 s\xFAbory cookie",marketingDescription:"Umo\u017E\u0148uj\xFA sledovanie na prisp\xF4sobenie a meranie v\xFDkonu rekl\xE1m.",preferencesText:"Personaliza\u010Dn\xE9 s\xFAbory cookie",preferencesDescription:"Umo\u017E\u0148uj\xFA sledovanie na prisp\xF4sobenie lokality pod\u013Ea va\u0161ich z\xE1ujmov.",analyticsText:"Analytick\xE9 s\xFAbory cookie",anal
8231yticsDescription:"Umo\u017E\u0148uj\xFA sledovanie pou\u017E\xEDvania lokality na zlep\u0161enie jej v\xFDkonnosti.",saveLabel:"Ulo\u017Ei\u0165 predvo\u013Eby",triggerLabel:"Predvo\u013Eby s\xFAborov cookie"},"bg-BG":{noticeHeader:"\u0422\u043E\u0437\u0438 \u0441\u0430\u0439\u0442 \u0438\u0437\u043F\u043E\u043B\u0437\u0432\u0430 \u0431\u0438\u0441\u043A\u0432\u0438\u0442\u043A\u0438",noticeDisclaimerImplicit:"\u0411\u0438\u0441\u043A\u0432\u0438\u0442\u043A\u0438\u0442\u0435 \u043D\u0430 \u0442\u043E\u0437\u0438 \u0441\u0430\u0439\u0442 \u043F\u043E\u043C\u0430\u0433\u0430\u0442 \u0437\u0430 \u043F\u043E\u0434\u043E\u0431\u0440\u044F\u0432\u0430\u043D\u0435 \u043D\u0430 \u0432\u0430\u0448\u0435\u0442\u043E \u0438\u0437\u0436\u0438\u0432\u044F\u0432\u0430\u043D\u0435 \u0438 \u043F\u0440\u0435\u0434\u043E\u0441\u0442\u0430\u0432\u044F\u043D\u0435 \u043D\u0430 \u043F\u0435\u0440\u0441\u043E\u043D\u0430\u043B\u0438\u0437\u0438\u0440\u0430\u043D\u043E \u0441\u044A\u0434\u044A\u0440\u0436\u0430\u043D\u0438\u0435. \u041F\u0440\u043E\u0434\u044A\u043B\u0436\u0430\u0432\u0430\u0439\u043A\u0438 \u0434\u0430 \u0440\u0430\u0437\u0433\u043B\u0435\u0436\u0434\u0430\u0442\u0435, \u0432\u0438\u0435 \u0441\u0435 \u0441\u044A\u0433\u043B\u0430\u0441\u044F\u0432\u0430\u0442\u0435 \u0441 \u0438\u0437\u043F\u043E\u043B\u0437\u0432\u0430\u043D\u0435\u0442\u043E \u043D\u0430 \u0431\u0438\u0441\u043A\u0432\u0438\u0442\u043A\u0438. <link>\u041D\u0430\u0443\u0447\u0435\u0442\u0435 \u043F\u043E\u0432\u0435\u0447\u0435</link>",acceptText:"\u041F\u0440\u0438\u0435\u043C\u0430\u043C \u0432\u0441\u0438\u0447\u043A\u0438",manageText:"\u0423\u043F\u0440\u0430\u0432\u043B\u0435\u043D\u0438\u0435",noticeDisclaimerExplicit:"\u0411\u0438\u0441\u043A\u0432\u0438\u0442\u043A\u0438\u0442\u0435 \u043D\u0430 \u0442\u043E\u0437\u0438 \u0441\u0430\u0439\u0442 \u043F\u043E\u043C\u0430\u0433\u0430\u0442 \u0437\u0430 \u043F\u043E\u0434\u043E\u0431\u0440\u044F\u0432\u0430\u043D\u0435 \u043D\u0430 \u0432\u0430\u0448\u0435\u0442\u043E \u0438\u0437\u0436\u0438\u0432\u044F\u0432\u0430\u043D\u0435 \u0438 \u043F\u0440\u0435\u0434\u043E\u0441\u0442\u0430\u0432\u044F\u043D\u0435 \u043D\u0430 \u043F\u0435\u0440\u0441\u043E\u043D\u0430\u043B\u0438\u0437\u0438\u0440\u0430\u043D\u043E \u0441\u044A\u0434\u044A\u0440\u0436\u0430\u043D\u0438\u0435. \u041D\u0430\u0442\u0438\u0441\u043D\u0435\u0442\u0435 \u201E\u041F\u0440\u0438\u0435\u043C\u0430\u043C \u0432\u0441\u0438\u0447\u043A\u0438\u201C, \u0437\u0430 \u0434\u0430 \u0441\u0435 \u0441\u044A\u0433\u043B\u0430\u0441\u0438\u0442\u0435 \u0441 \u0438\u0437\u043F\u043E\u043B\u0437\u0432\u0430\u043D\u0435\u0442\u043E \u043D\u0430 \u0431\u0438\u0441\u043A\u0432\u0438\u0442\u043A\u0438. <link>\u041D\u0430\u0443\u0447\u0435\u0442\u0435 \u043F\u043E\u0432\u0435\u0447\u0435</link>",rejectText:"\u041E\u0442\u043A\u0430\u0437\u0432\u0430\u043C \u0432\u0441\u0438\u0447\u043A\u0438",manageHeader:"\u0423\u043F\u0440\u0430\u0432\u043B\u0435\u043D\u0438\u0435 \u043D\u0430 \u043F\u0440\u0435\u0434\u043F\u043E\u0447\u0438\u0442\u0430\u043D\u0438\u044F\u0442\u0430 \u0437\u0430 \u0431\u0438\u0441\u043A\u0432\u0438\u0442\u043A\u0438",manageDisclaimer:"\u0411\u0438\u0441\u043A\u0432\u0438\u0442\u043A\u0438\u0442\u0435 \u043D\u0430 \u0442\u043E\u0437\u0438 \u0441\u0430\u0439\u0442 \u043F\u043E\u043C\u0430\u0433\u0430\u0442 \u0437\u0430 \u043F\u043E\u0434\u043E\u0431\u0440\u044F\u0432\u0430\u043D\u0435 \u043D\u0430 \u0432\u0430\u0448\u0435\u0442\u043E \u0438\u0437\u0436\u0438\u0432\u044F\u0432\u0430\u043D\u0435 \u0438 \u043F\u0440\u0435\u0434\u043E\u0441\u0442\u0430\u0432\u044F\u043D\u0435 \u043D\u0430 \u043F\u0435\u0440\u0441\u043E\u043D\u0430\u043B\u0438\u0437\u0438\u0440\u0430\u043D\u043E \u0441\u044A\u0434\u044A\u0440\u0436\u0430\u043D\u0438\u0435. \u041D\u0435 \u043C\u043E\u0436\u0435\u0442\u0435 \u0434\u0430 \u0441\u0435 \u043E\u0442\u043A\u0430\u0436\u0435\u0442\u0435 \u043E\u0442 \u043E\u0441\u043D\u043E\u0432\u043D\u0438\u0442\u0435 \u0431\u0438\u0441\u043A\u0432\u0438\u0442\u043A\u0438, \u043D\u0435\u043E\u0431\u0445\u043E\u0434\u0438\u043C\u0438 \u0437\u0430 \u0440\u0430\u0431\u043E\u0442\u0430\u0442\u0430 \u043D\u0430 \u0441\u0430\u0439\u0442\u0430, \u043D\u043E \u043C\u043E\u0436\u0435\u0442\u0435 \u0434\u0430 \u0438\u0437\u043A\u043B\u044E\u0447\u0438\u0442\u0435 \u0434\u0440\u0443\u0433\u0438 \u043A\u0430\u0442\u0435\u0433\u043E\u0440\u0438\u0438 \u0441\u043F\u043E\u0440\u0435\u0434 \u0432\u0430\u0448\u0438\u0442\u0435 \u043F\u0440\u0435\u0434\u043F\u043E\u0447\u0438\u0442\u0430\u043D\u0438\u044F. <link>\u041D\u0430\u0443\u0447\u0435\u0442\u0435 \u043F\u043E\u0432\u0435\u0447\u0435</link>",necessaryText:"\u0417\u0430\u0434\u044A\u043B\u0436\u0438\u0442\u0435\u043B\u043D\u0438 \u0431\u0438\u0441\u043A\u0432\u0438\u0442\u043A\u0438",necessaryDescription:"\u041D\u0435\u043E\u0431\u0445\u043E\u0434\u0438\u043C\u0438 \u0437\u0430 \u043E\u0441\u043D\u043E\u0432\u043D\u0438\u0442\u0435 \u0444\u0443\u043D\u043A\u0446\u0438\u0438 \u043D\u0430 \u0441\u0430\u0439\u0442\u0430 \u0438 \u0437\u0430\u043F\u0430\u0437\u0432\u0430\u043D\u0435 \u043D\u0430 \u043D\u0430\u0441\u0442\u0440\u043E\u0439\u043A\u0438\u0442\u0435.",marketingText:"\u041C\u0430\u0440\u043A\u0435\u0442\u0438\u043D\u0433\u043E\u0432\u0438 \u0431\u0438\u0441\u043A\u0432\u0438\u0442\u043A\u0438",marketingDescription:"\u041F\u043E\u0437\u0432\u043E\u043B\u044F\u0432\u0430\u0442 \u043F\u0440\u043E\u0441\u043B\u0435\u0434\u044F\u0432\u0430\u043D\u0435 \u0437\u0430 \u043F\u0435\u0440\u0441\u043E\u043D\u0430\u043B\u0438\u0437\u0438\u0440\u0430\u043D\u0430 \u0440\u0435\u043A\u043B\u0430\u043C\u0430 \u0438 \u0438\u0437\u043C\u0435\u0440\u0432\u0430\u043D\u0435 \u043D\u0430 \u0435\u0444\u0435\u043A\u0442\u0438\u0432\u043D\u043E\u0441\u0442\u0442\u0430.",preferencesText:"\u0411\u0438\u0441\u043A\u0432\u0438\u0442\u043A\u0438 \u0437\u0430 \u043F\u0435\u0440\u0441\u043E\u043D\u0430\u043B\u0438\u0437\u0430\u0446\u0438\u044F",preferencesDescription:"\u041F\u043E\u0437\u0432\u043E\u043B\u044F\u0432\u0430\u0442 \u043F\u0440\u043E\u0441\u043B\u0435\u0434\u044F\u0432\u0430\u043D\u0435 \u0437\u0430 \u043F\u0435\u0440\u0441\u043E\u043D\u0430\u043B\u0438\u0437\u0438\u0440\u0430\u043D\u0435 \u043D\u0430 \u0441\u044A\u0434\u044A\u0440\u0436\u0430\u043D\u0438\u0435\u0442\u043E \u0441\u043F\u043E\u0440\u0435\u0434 \u0432\u0430\u0448\u0438\u0442\u0435 \u0438\u043D\u0442\u0435\u0440\u0435\u0441\u0438.",anal
8231yticsText:"\u0410\u043D\u0430\u043B\u0438\u0442\u0438\u0447\u043D\u0438 \u0431\u0438\u0441\u043A\u0432\u0438\u0442\u043A\u0438",analyticsDescription:"\u041F\u043E\u0437\u0432\u043E\u043B\u044F\u0432\u0430\u0442 \u043F\u0440\u043E\u0441\u043B\u0435\u0434\u044F\u0432\u0430\u043D\u0435 \u043D\u0430 \u0443\u043F\u043E\u0442\u0440\u0435\u0431\u0430\u0442\u0430 \u043D\u0430 \u0441\u0430\u0439\u0442\u0430 \u0437\u0430 \u043F\u043E\u0434\u043E\u0431\u0440\u044F\u0432\u0430\u043D\u0435 \u043D\u0430 \u043F\u0440\u043E\u0438\u0437\u0432\u043E\u0434\u0438\u0442\u0435\u043B\u043D\u043E\u0441\u0442\u0442\u0430.",saveLabel:"\u0417\u0430\u043F\u0430\u0437\u0438 \u043F\u0440\u0435\u0434\u043F\u043E\u0447\u0438\u0442\u0430\u043D\u0438\u044F\u0442\u0430",triggerLabel:"\u041F\u0440\u0435\u0434\u043F\u043E\u0447\u0438\u0442\u0430\u043D\u0438\u044F \u0437\u0430 \u0431\u0438\u0441\u043A\u0432\u0438\u0442\u043A\u0438"}},PU=LN["en-US"];var Lo=v(W());var z$=["US","AU","HK","ID","KE","MX","NZ","NG","PH","ZA","TH"],X$=["AD","AR","AT","BE","BR","BG","CL","HR","CY","CZ","DK","EE","FI","FR","DE","GR","HU","IS","IN","IE","IT","JP","KR","LV","LI","LT","LU","MY","MT","MA","NL","NO","PL","PT","QA","RO","RU","SG","SK","SI","ES","SE","CH","GB"];function j$(e,t){return e.analytics!==t.analytics||e.preferences!==t.preferences||e.marketing!==t.marketing||e.necessary!==t.necessary}var DU="cookie-consent-mode",CN="cookie-consent-banner-seen",PN="cookie-consent-banner-interacted";function $$(){let e=typeof window<"u"?window.__cf_country:null;return!e||X$.includes(e)?yo.EXPLICIT:z$.includes(e)?yo.IMPLICIT:null}var Vl=class{consentType=null;constructor(t){this.consentType=t}start(){localStorage.setItem(CN,"true")}shouldShowNotice(){return this.consentType===yo.EXPLICIT&&localStorage.getItem(PN)!=="true"||this.consentType===yo.IMPLICIT&&localStorage.getItem(CN)!=="true"}shouldShowTag(){return this.consentType===yo.EXPLICIT&&localStorage.getItem(PN)==="true"||this.consentType===yo.IMPLICIT&&localStorage.getItem(CN)==="true"}getDefaultConsentStatus(){return this.consentType===yo.IMPLICIT?{necessary:!0,analytics:!0,preferences:!0,marketing:!0}:{necessary:!0,analytics:!1,preferences:!1,marketing:!1}}static getConsentStatus(){let t=localStorage.getItem(DU);if(!t||t==="null")return null;let n=JSON.parse(t);return{necessary:n.functionality_storage==="granted",analytics:n.analytics_storage==="granted",preferences:n.personalization_storage==="granted",marketing:n.ad_storage==="granted"}}setUserInteracted(){localStorage.setItem(PN,"true")}persist(t){let n={functionality_storage:t.necessary?"granted":"denied",ad_storage:t.marketing?"granted":"denied",analytics_storage:t.analytics?"granted":"denied",personalization_storage:t.preferences?"granted":"denied"};localStorage.setItem(DU,JSON.stringify(n))}};function DN({forceConsentType:e}){let t=$$(),n=e||t,r=(0,Lo.useMemo)(()=>new Vl(n),[n]),[o,i]=(0,Lo.useState)(!1),[s,a]=(0,Lo.useState)(!1),l=(T,h)=>({...T,...h}),[u,c]=(0,Lo.useReducer)(l,r.getDefaultConsentStatus()),d=(0,Lo.useRef)(!1);(0,Lo.useEffect)(()=>{if(d.current===e)return;a(r.shouldShowTag()),i(r.shouldShowNotice()),r.start();let T=Vl.getConsentStatus();e?c(r.getDefaultConsentStatus()):T?c(T):r.persist(r.getDefaultConsentStatus()),d.current=e},[u,r,e]);let f=()=>{let T={necessary:!0,analytics:!1,preferences:!1,marketing:!1};c(T),_(T)},p=()=>{let T={necessary:!0,analytics:!0,preferences:!0,marketing:!0};c(T),_(T)};function _(T,h){r.setUserInteracted();let m=T||u,E=Vl.getConsentStatus();!E||j$(m,E)?(r.persist(m),window.location.reload()):(i(!1),a(!0),h?.())}return{consent:u,shouldShowNotice:o,shouldShowTag:s,consentType:n,acceptOnlyNecessary:f,acceptAll:p,saveConsent:_,updateConsent:c}}var Z$=["necessary","marketing","preferences","analytics"];function J$({containerId:e,forceConsentType:t,forceStage:n,guidToUrl:r,setLocation:o,reportError:i,isManaging:s,setIsManaging:a,...l}){let u=LN[l.locale]||PU,{consent:c,shouldShowNotice:d,shouldShowTag:f,consentType:p,acceptOnlyNecessary:_,acceptAll:T,saveConsent:h,updateConsent:m}=DN({forceConsentType:t}),E=null;s||n==="manage"?E="manage":d||n==="notice"?E="notice":f&&(E="tag");let O=!!n;
8231if(E==="tag")return(0,fn.jsx)(bN,{onClick:()=>{a?.(!0)},xAlignment:l.triggerXAlignment,children:u.triggerLabel});let g=(0,fn.jsx)(NN,{disclaimerText:E==="manage"?u.manageDisclaimer:p===yo.EXPLICIT?u.noticeDisclaimerExplicit:u.noticeDisclaimerImplicit,policyLink:l.policyLink,policyUrl:l.policyUrl,reportError:i,guidToUrl:r,setLocation:o,isPreview:O}),I=(0,fn.jsxs)("div",{className:"cookie-consent-button-group",style:SU({wide:l.componentType===ON.MODAL}),children:[p===yo.EXPLICIT&&(0,fn.jsx)(dd,{onClick:_,children:u.rejectText}),(0,fn.jsx)(dd,{onClick:()=>a?.(!0),children:u.manageText}),(0,fn.jsx)(dd,{onClick:T,children:u.acceptText})]}),S=(0,fn.jsxs)("div",{style:{display:"flex",flexDirection:"column",gap:"0.25rem"},children:[(0,fn.jsx)("h1",{style:gU(),children:E==="notice"?u.noticeHeader:u.manageHeader}),g]});return E==="manage"?(0,fn.jsxs)(AN,{containerId:e,onClose:()=>a?.(!1),scrimBackground:!O,children:[S,(0,fn.jsx)("div",{style:{display:"flex",flexDirection:"column"},children:Z$.map(A=>(0,fn.jsx)(SN,{id:A,checked:c[A],description:u[`${A}Description`],disabled:A==="necessary",label:u[`${A}Text`],onChange:()=>m({[A]:!c[A]})},A))}),(0,fn.jsx)(dd,{className:"button-wide",onClick:()=>{h(void 0,()=>a?.(!1))},children:u.saveLabel})]}):E==="notice"?l.componentType===ON.MODAL?(0,fn.jsxs)(yN,{containerId:e,xAlignment:l.xAlignment,yAlignment:l.yAlignment,children:[S,I]}):(0,fn.jsxs)("div",{className:"cookie-consent-banner",style:RU({yAlignment:l.yAlignment}),children:[g,I]}):null}function vN(e){return(0,eO.useEffect)(()=>{let t="cookie-consent-styles",n=document.getElementById(t);n&&n.remove();let r=document.createElement("style");return r.id=t,r.textContent=` 8232 :root { 8233 --consent-font-size-medium: 11px; 8234 --consent-line-height-medium: 16px; 8235 --consent-font-size-large: 13px; 8236 --consent-line-height-large: 22px; 8237 --consent-banner-padding: 1rem; 8238 } 8239 8240 @media (max-width: 480px) { 8241 :root { 8242 --consent-font-size-medium: 13px; 8243 --consent-line-height-medium: 22px; 8244 --consent-font-size-large: 15px; 8245 --consent-line-height-large: 25px; 8246 --consent-banner-padding: 1.5rem; 8247 } 8248 } 8249 8250 .button-wide { 8251 width: 100%; 8252 } 8253 8254 @media (max-width: 480px) { 8255 .cookie-consent-banner { 8256 flex-direction: column; 8257 } 8258 8259 .cookie-consent-button-group { 8260 flex-direction: row; 8261 width: 100%; 8262 } 8263 } 8264 `,document.head.appendChild(r),()=>{let o=document.getElementById(t);o&&o.remove()}},[]),(0,fn.jsx)(J$,{...e})}var fd=(0,eO.createContext)({enabled:!1,openSettings:()=>{}});function vU(e){if(typeof window>"u")return!1;let t=Vl.getConsentStatus();return e.includes("youtube-nocookie.com")||e.includes("youtube.com")||e.includes("maps.google.com")||e.includes("docs.google.com")||e.includes("form.typeform.com")||e.includes("vimeo.com")?t?t.analytics&&t.preferences&&t.marketing:!1:!0}var q$=[{pattern:/^(https?:\/\/(www\.)?(youtube\.com|youtu\.be|youtube-nocookie\.com)\/.*)/,transform:Q$,embedType:"IFRAME"},{pattern:/^(?:https?:)?\/\/(www\.)?google\.com\/maps\/.*|^(?:https?:)?\/\/maps\.google\.com\/.*|^(?:https?:)?\/\/maps\.goo\.gl\/.*/,transform:e9,embedType:"IFRAME"},{pattern:/^(?:https?:)?\/\/(www\.)?typeform\.com\/.*|^(?:https?:)?\/\/form\.typeform\.com\/.*/,transform:GU,embedType:"HTML",htmlTransform:t9},{pattern:hN,transform:n9,embedType:"HTML",htmlTransform:r9},{pattern:/^(?:https?:)?\/\/(www\.)?docs\.google\.com\/forms\/.*|^(?:https?:)?\/\/forms\.gle\/.*/,transform:o9,embedType:"IFRAME"},{pattern:/^(?:https?:)?\/\/(www\.)?vimeo\.com\/.*$/,transform:i9,embedType:"IFRAME"}];function Q$(e){let t;try{let n=new URL(e);t=n.searchParams.get("v")||null;let o=/(?:https?:\/\/)?(?:www\.)?(youtube\.com|youtu\.be|youtube-nocookie\.com)\/(?:watch\?v=|embed\/)?([^&?]+)/,i=e.match(o);if(!t){let a=i?.[2]||null;a&&(t=a)}let s=new URL((i?.[1]||"")==="youtube-nocookie.com"?`https://www.youtube-nocookie.com/embed/${t}`:`https://www.youtube.com/embed/${t}`);return n.searchParams.forEach((a,l)=>{l!=="v"&&s.searchParams.set(l,a)}),s.toString()}catch{return e}}function e9(e){let t=new URL("https://maps.google.com/maps");return t.searchParams.set("output","embed"),new URL(e).searchParams.forEac
8264h((r,o)=>{t.searchParams.set(o,r)}),t.toString()}function GU(e){try{let t=/\/to\/([a-zA-Z0-9]+)/,n=e.match(t);return n&&n[1]?n[1]:e}catch{return e}}function t9(e){return`<div data-tf-widget="${GU(e)}" style="width:100%;height:100%;"></div><script src="//embed.typeform.com/next/embed.js"></script>`}function n9(e){return e}function r9(e){return`<script src="https://unpkg.com/@lottiefiles/[email protected]/dist/dotlottie-wc.js" type="module"></script><dotlottie-wc src="${e}" style="width: 100%; height: 100%;" speed="1" autoplay loop></dotlottie-wc>`}function o9(e){try{let t=new URL(e);return t.hostname.includes("forms.gle")||t.hostname.includes("docs.google.com")?(t.searchParams.set("embedded","true"),t.toString()):e}catch{return e}}function i9(e){try{let t=/\/(\d+)/,n=e.match(t);if(console.log(n),n&&n[1])return`https://player.vimeo.com/video/${n[1]}`}catch{return e}return e}function s9(e){return Bn.default.useMemo(()=>{for(let t of q$)if(e.match(t.pattern))return{transformedUrl:t.transform(e),embedType:t.embedType,htmlTransform:t.htmlTransform};return{transformedUrl:e,embedType:"IFRAME"}},[e])}var kU={overflow:"clip",width:"100%",height:"100%"};function FU({node:e,websiteContext:t}){ia("GenericEmbed");let n=__(),{embedURL:r,embedIframeHtml:o,embedCodeType:i,embedAllowFullscreen:s}=e.syncedState,{transformedUrl:a,embedType:l,htmlTransform:u}=s9(r),{enabled:c}=(0,Bn.useContext)(fd),d=(0,Bn.useMemo)(()=>{if(i==="html"){let f=new DOMParser().parseFromString(o,"text/html"),p=f.querySelector("iframe");return p?(p.style.width="100%",p.style.height="100%",{type:"iframe",html:p.outerHTML}):{type:"html",html:f.head.innerHTML.concat(f.body.innerHTML)}}else return},[i,o]);
8264if(i==="html")return!d||!d.html.trim()?(0,or.jsx)(MU,{websiteContext:t}):(0,or.jsx)(xU,{websiteContext:t,type:d.type,html:d.html});{if(c&&!vU(r))return(0,or.jsx)(c9,{websiteContext:t});if(!a.trim())return(0,or.jsx)(MU,{websiteContext:t});if(l==="HTML"&&u){let p=u(r);return(0,or.jsx)(xU,{websiteContext:t,type:"html",html:p})}let f=!n&&new URL(r).searchParams.get("autoplay")==="1";return t.renderElement({Tag:"iframe",styleSet:[kU,"embed"],attributes:{src:a,allowFullScreen:s,title:e.accessibleLabel,allow:f?"autoplay":void 0}})}}function xU({websiteContext:e,type:t,html:n}){let r=(0,Bn.useRef)(null);return(0,Bn.useEffect)(()=>{if(r.current&&t==="html"){let o=document.createRange();o.selectNode(r.current);let i=o.createContextualFragment(n);r.current.innerHTML="",r.current.append(i)}},[n,t]),e.renderElement({Tag:"div",styleSet:[kU,"embed"],ref:r,dangerouslySetInnerHTML:{__html:n}})}function a9(){let[e,t]=(0,Bn.useState)(200),n=(0,Bn.useRef)(null);return(0,Bn.useEffect)(()=>{let o=n.current?.parentElement;if(!o)return;let i=new ResizeObserver(s=>{t(s[0]?.contentRect.width??200)});return i.observe(o),t(o.getBoundingClientRect().width),()=>{i.disconnect()}},[]),[n,e]}var l9={width:"100%",height:"100%",backgroundColor:"#F5F5F5",display:"flex",flexDirection:"column",alignItems:"center",justifyContent:"center",overflow:"hidden",padding:"8px",fontSize:"11px",lineHeight:"16px",fontWeight:"450",color:"rgba(0, 0, 0, 0.9)",cursor:"pointer"},u9={width:24,height:24,display:"flex",alignItems:"center",justifyContent:"center"};function c9({websiteContext:e}){let[t,n]=a9(),{openSettings:r}=(0,Bn.useContext)(fd),o=e.renderElement({Tag:"div",styleSet:u9,ref:t,children:(0,or.jsx)("svg",{width:"13",height:"13",viewBox:"0 0 13 13",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:(0,or.jsx)("path",{d:"M2.91138 6.50781C3.10662 6.31259 3.42317 6.31258 3.61841 6.50781C3.8133 6.70307 3.81351 7.01972 3.61841 7.21484L2.38599 8.44727C1.6052 9.22815 1.60549 10.4943 2.38599 11.2754C3.16704 12.0561 4.43317 12.0562 5.21411 11.2754L6.44653 10.043C6.64178 9.84775 6.95833 9.84773 7.15356 10.043C7.34845 10.2382 7.34867 10.5549 7.15356 10.75L5.92114 11.9824C4.74968 13.1538 2.85053 13.1536 1.67896 11.9824C0.507937 10.8108 0.50764 8.91164 1.67896 7.74023L2.91138 6.50781ZM0.946533 1.00684C1.14177 0.8117 1.45833 0.811703 1.65356 1.00684L12.6536 12.0068C12.8488 12.2021 12.8487 12.5186 12.6536 12.7139C12.4583 12.9091 12.1418 12.9091 11.9465 12.7139L0.946533 1.71387C0.75137 1.5186 0.751304 1.20207 0.946533 1.00684ZM7.67896 1.74023C8.85039 0.568818 10.7495 0.569074 11.9211 1.74023C13.0924 2.91183 13.0926 4.81096 11.9211 5.98242L10.6887 7.21484C10.4936 7.40997 10.177 7.40974 9.98169 7.21484C9.78645 7.0196 9.78645 6.70305 9.98169 6.50781L11.2141 5.27539C11.995 4.49445 11.9948 3.22833 11.2141 2.44727C10.433 1.66663 9.1669 1.66637 8.38599 2.44727L7.15356 3.67969C6.95844 3.87481 6.6418 3.87459 6.44653 3.67969C6.25129 3.48445 6.25129 3.1679 6.44653 2.97266L7.67896 1.74023Z",fill:"black",fillOpacity:"0.5"})})});return e.renderElement({Tag:"button",styleSet:l9,attributes:{onClick:r},children:(0,or.jsxs)(or.Fragment,{children:[o,n>=80&&(0,or.jsx)("span",{children:"Allow cookies to view this content"})]})})}var d9={width:"100%",height:"100%",backgroundColor:"#D3D1FF",display:"flex",alignItems:"center",justifyContent:"center",overflow:"hidden"},f9={width:"min(93px, 100%)",height:"min(93px, 100%)",display:"flex",alignItems:"center",justifyContent:"center"},p9={width:"100%",height:"100%"};function MU({websiteContext:e}){return e.renderElement({Tag:"div",styleSet:d9,children:e.renderElement({Tag:"div",styleSet:f9,children:e.renderElement({Tag:"svg",styleSet:p9,attributes:{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 93 93",fill:"none"},children:(0,or.jsx)("path",{d:"M20.9465 32.2205C32.0947 21.0723 50.1694 21.0723 61.3176 32.2205L57.0744 36.4626L52.8322 40.7058C46.3704 34.2439 35.8937 34.244 29.4319 40.7058L18.1584 51.9792C11.
82646967 58.4411 11.6966 68.9178 18.1584 75.3796C24.6203 81.841 35.0971 81.8412 41.5588 75.3796C43.9019 73.0365 47.701 73.0365 50.0442 75.3796C52.3869 77.7228 52.3872 81.522 50.0442 83.865C38.8961 95.0129 20.8212 95.0127 9.67306 83.865C-1.47505 72.7169 -1.47496 54.6421 9.67306 43.4939L20.9465 32.2205ZM43.4924 9.67455C54.6405 -1.47358 72.7153 -1.47352 83.8635 9.67455C95.0116 20.8227 95.0116 38.8975 83.8635 50.0456L72.591 61.3191C61.617 72.2927 43.9309 72.4637 32.7473 61.8328L32.2199 61.3191L32.007 61.0945C29.8792 58.7393 29.9504 55.1037 32.2199 52.8337C34.4899 50.5639 38.1254 50.4929 40.4807 52.6208L40.7043 52.8337L41.011 53.1316C47.4933 59.2934 57.7448 59.1942 64.1057 52.8337L75.3781 41.5603L75.677 41.2546C81.8391 34.7722 81.739 24.5208 75.3781 18.1599C68.9163 11.6981 58.4396 11.6981 51.9778 18.1599L47.7356 13.9167L43.4924 9.67455ZM61.3176 32.2205C63.6603 34.5636 63.6606 38.3628 61.3176 40.7058C58.9746 43.0487 55.1754 43.0485 52.8322 40.7058L61.3176 32.2205ZM51.9778 18.1599C49.6346 20.5023 45.8353 20.5028 43.4924 18.1599C41.1496 15.817 41.15 12.0177 43.4924 9.67455L51.9778 18.1599Z",fill:"#3D32E2"})})})})}function wU({node:e,parent:t,context:n,zIndex:r,websiteContext:o}){let{renderOptions:i}=o,s=rr(),a=Xn({node:e,parent:t,context:n,zIndex:r,children:[],options:{isFlattened:!0,precomputeTransforms:s},renderOptions:i}),l=$n({node:e,context:n,websiteContext:o}),u=jn({node:e,parent:t,children:null,renderOptions:i}),c={...a.inner,...Gn(cn(n,e)),...Qr({node:e,parent:t,transitionProps:void 0,renderOptions:i,maskStyles:l}),...a.transform3d,...n?.style||{}},d=Jr(o,e),f=wn({node:e,parent:t,context:n,transitionProps:void 0,outerStyles:a.outer,wrapperSizeStyles:u,stickyWrapperStyles:a.stickyWrapper,transformChildWrapperStyles:a.transform,renderOptions:i,maskStyles:l});return Ne(yr({node:e,parent:t,context:n,wrappersToRender:f,websiteContext:o,children:Ot((0,Ap.jsx)(m9,{nodeId:e.id,style:c,dataName:d,context:n,outerStyles:f.motionLayerContent.outerStyles,websiteContext:o,children:(0,Ap.jsx)(Dl,{children:()=>(0,Ap.jsx)(E9,{node:e,websiteContext:o})})}))}),o)}function m9({nodeId:e,style:t,dataName:n,context:r,websiteContext:o,outerStyles:i,children:s}){return o.renderElement({Tag:"div",nodeId:e,styleSet:[i,t,r?.className],attributes:{"data-name":n,...r?.dataAttributes||{}},children:s})}function E9({node:e,websiteContext:t}){return ia("HTMLWidgetLayerContent"),(0,Ap.jsx)(FU,{node:e,websiteContext:t})}var xN=v(W()),BU=v(W());var UU=BU.forwardRef(function({node:t,parent:n,context:r,interactionHandlers:o,zIndex:i,transitionProps:s,codeBehaviorProps:a,websiteContext:l},u){let c=rd(),d=rr(),f=(0,xN.useRef)(null),p=(0,xN.useRef)(null),_=s?.smartAnimateType??ee.NONE,T=_===ee.INSTANCE_SUBTREE,{nodeCanAnimateRotation:h,layoutStyles:m,opacity:E}=IB({node:t,parent:n,context:r,zIndex:i,smartAnimateType:_,previousRotation:c,precomputeTransforms:d,renderOptions:l.renderOptions}),O={opacity:E,transform:zr(m.outer.transform)},g=Zr(t,r),{motionProps:I,key:S,ref:A}=to(t.id,t.behaviors,t.assets,O,g),R=ei(u,A);return Ne(SB({node:t,parent:n,context:r,interactionHandlers:o,transitionProps:s,codeBehaviorProps:a,ref:u,websiteContext:l,previousRotation:c,outerRef:f,codeBehaviorWrapperRef:p,smartAnimateType:_,canSmartAnimateInstance:T,nodeCanAnimateRotation:h,layoutStyles:m,opacity:E,behaviorProps:I,behaviorKey:S,behaviorsRef:A,mergedRef:R}),l)});var la=v(_e()),kN=v(W());var VU="breakpoint-css";function HU({breakpoints:e}){let{env:t,addHeadTag:n}=fe();if(t!=="server"||e.length===1)return;let r=e.sort((i,s)=>s.width-i.width),o=r.reduce((i,s,a)=>{let l=a===0,u=a===r.length-1,c=r[a-1]?.width||void 0,d=[];return l?d.push(`(width < ${s.width}px)`):u?c&&d.push(`(width >= ${c}px)`):(c&&d.push(`(width >= ${c}px)`),d.push(`(width < ${s.width}px)`)),d.length>0&&i.push(`@media ${d.join(" or ")} { 8265 [${jA}="${fo(s.nodeId)}"] {display: none !important} 8266 }`),i},[]);n({type:"global-style",styleElId:VU,styleSheet:ys(o.join(` 8267`))})}function WU(){let e=document.querySelectorAll(`[${XA}]`);e.length===0&&console.error("No breakpoints elements found during hydration."),e.forEach(n=>{window.getComputedStyle(n).display==="none"&&n.remove()});let t=document.querySelector(`#${VU}`);if(e.length>1&&!t){console.error("No breakpoint css style tag found during hydration.");return}t&&t.remove()}var KU=v(W());var MN=new Map;function YU(e,t){let n=JSON.stringify(e);return ja({str:n,hashPrefix:e.type+"-",isUniqueKey:o=>{let i=MN.get(o),s=i?JSON.stringify(i):null;if(t==="server")return!s||s===n;if(s&&s!==n)return!1;let a=document.getElementById(o);return a?zU(a,e):!0}})}function zU(e,t){if(e.tagName==="LINK"&&t.type==="link"){let n=e;return n.getAttribute("href")===t.href&&n.rel===t.rel}else if(e.tagName==="META"&&t.type==="meta"){let n=e,r=t.name||"",o=t.property||"",i=n.getAttribute("property")||"";return n.content===t.content&&n.name===r&&i===o}else if(e.tagName==="TITLE"&&t.type==="title")return e.textContent===t.title;return!1}function XU(e){let{addHeadTag:t,env:n}=fe();n==="server"&&e.forEach(r=>{let o=YU(r,n);
8267MN.has(o)||(t(r),MN.set(o,r))}),(0,KU.useInsertionEffect)(()=>{let r=[];return e.forEach(o=>{if(o.type==="title"){document.title=o.title;return}let i=YU(o,n),s=document.getElementById(i);if(!(s&&zU(s,o))){if(o.type==="meta"){let a=o.property?`meta[property="${o.property}"]`:`meta[name="${o.name}"]`,l=document.querySelector(a);if(l){if(l.getAttribute("content")===o.content)return;l.setAttribute("content",o.content);return}}else if(o.type==="link"){let a=`link[rel="${o.rel}"][href="${o.href}"]`;if(document.querySelector(a))return}if(o.type==="link"){let a=document.createElement("link");a.href=o.href,a.rel=o.rel,a.id=i,document.head.appendChild(a),r.push(a)}else if(o.type==="meta"){let a=document.createElement("meta");o.name&&(a.name=o.name),o.property&&a.setAttribute("property",o.property),a.content=o.content,a.id=i,document.head.appendChild(a),r.push(a)}}}),()=>{r.forEach(o=>{o.remove()})}},[e])}var jU=v(W());var GN="body-background-color";function $U({breakpoints:e}){let{env:t,addHeadTag:n}=fe(),r=e.sort((s,a)=>s.width-a.width),i=r.map((s,a)=>({layerName:s.name,minWidth:a===0?void 0:s.width,maxWidth:a<r.length-1?r[a+1]?.width:void 0,background:s.background,nodeId:s.nodeId})).map(({background:s,minWidth:a,maxWidth:l,nodeId:u})=>{let c=[];l!==void 0&&c.push(`(max-width: ${l-1}px)`),a!==void 0&&c.push(`(min-width: ${a}px)`);let d=`body:has([data-breakpoint-id="${fo(u)}"]) { background-color: ${s} }`;return c.length>0?`@media ${c.join(", ")} { ${d} }`:d}).join(` 8268`);t==="server"&&n({type:"global-style",styleElId:GN,styleSheet:i}),(0,jU.useInsertionEffect)(()=>{let s=document.getElementById(GN);if(s){s.textContent=i;return}let a=document.createElement("style");return a.textContent=i,a.id=GN,document.head.appendChild(a),()=>{document.head.removeChild(a)}},[e])}function _9(e,t,n,r){let o=typeof window<"u"?window.location.host:"{{HOSTNAME}}",i=r,s=[{type:"title",title:e?.title??_N},{type:"meta",name:"description",content:e?.description??TN}];if(e?.title&&s.push({type:"meta",name:"title",content:e.title}),s.push({type:"meta",name:"robots",content:e?.blockSearchIndexing?"noindex":"index,follow"}),n){if(s.push({type:"meta",name:"twitter:card",content:"summary_large_image"}),s.push({type:"meta",name:"twitter:url",content:`https://${o}${i}`}),e?.title&&s.push({type:"meta",name:"twitter:title",content:e.title}),e?.description&&s.push({type:"meta",name:"twitter:description",content:e.description}),e?.socialImageFilename){let a=t(e?.socialImageFilename),l=`https://${o}${a}`;s.push({type:"meta",name:"twitter:image",content:l}),e?.title&&s.push({type:"meta",name:"twitter:image:alt",content:e.title})}if(e?.title&&s.push({type:"meta",property:"og:title",content:e.title}),e?.description&&s.push({type:"meta",property:"og:description",content:e.description}),s.push({type:"meta",property:"og:type",content:"website"}),s.push({type:"meta",property:"og:url",content:`https://${o}${i}`}),e?.socialImageFilename){let a=t(e?.socialImageFilename),l=`https://${o}${a}`;s.push({type:"meta",property:"og:image",content:l}),e?.title&&s.push({type:"meta",property:"og:image:alt",content:e.title})}e?.title&&s.push({type:"meta",property:"og:site_name",content:e.title})}return!n&&e?.socialImageFilename&&s.push({type:"meta",property:"og:image",content:t(e?.socialImageFilename)},{type:"meta",property:"twitter:image",content:t(e?.socialImageFilename)}),e?.faviconFilename&&s.push({type:"link",rel:"icon",href:t(e?.faviconFilename)}),s}function ZU({node:e,children:t,websiteContext:n}){let{getAssetURL:r,renderOptions:o,enableMetaTags:i,websiteData:s}=n,a=Ae(s.siteSettings);t!==void 0&&t.length>0;let l=(0,kN.useMemo)(()=>GS(t.filter(d=>d.visible!==!1).filter(d=>il(d)).filter(d=>d.type==="FRAME"),o),[t,o]);HU({breakpoints:l.breakpoints}),$U({breakpoints:l.breakpoints});let u=e.name,c=(0,kN.useMemo)(()=>_9(a,r,i,u),[a,r,i,u]);return XU(c),(0,la.jsx)(la.Fragment,{children:t.map((d,f)=>(0,la.jsx)(fN,{children:(0,la.jsx)(uN,{name:d.name,width:d.size.x,height:d.size.y,children:(0,la.jsx)(oa,{name:"sites-layer",nodeId:d.id,children:(0,la.jsx)(Hi,{node:d,parent:null,websiteContext:n},f)},f)})},d.id))})}var Hi=(0,ua.forwardRef)(function({node:t,parent:n,context:r,zIndex:o,codeBehaviorProps:i,websiteContext:s},a){let l=KE(t.materializedChildNodeProps??[]),{interactionHandlers:u,transitionProps:c}=t;r=Ns(r,Ue);let{renderComponentSetNodes:d}=s.renderOptions,f=UC(s.renderOptions,t,n),p=Ae(qI);(0,ua.useEffect)(()=>
8268{if(t.visible&&!(u===void 0||u?.ON_KEY_DOWN===void 0))return p.set(t.id,u.ON_KEY_DOWN),()=>(p.delete(t.id),void 0)},[u,p,t.id,t.visible]);let _=c?.transitionData;return(0,ua.useEffect)(()=>{let T,h;return t.visible&&(_&&!_.layout?T=_1(u,_.id):T=T1(t.id,u).timeoutIds,T.length&&_&&(h=h1(()=>{setTimeout(()=>{_.onTransitionEnd?.()},500)},100),window.addEventListener("resize",h))),()=>{h&&setTimeout(()=>{removeEventListener("resize",h)}),Ps.markTimeoutsAsUnmounted(t.id),setTimeout(()=>{let m=u?.AFTER_TIMEOUT?.map(E=>E.interactionGuid);Ps.cleanupUnmountedTimeouts(t.id,m)},100)}},[t.id,u,t.visible]),(0,ua.useMemo)(()=>{if(!t||t.visible===!1&&!f)return null;let T=(()=>{switch(t.type){case"WEBPAGE":return(0,Ln.jsx)(ZU,{node:t,children:l,parent:n,context:r,interactionHandlers:u,websiteContext:s});case"FRAME":case"SLOT":return(0,Ln.jsx)(xh,{ref:a,node:t,children:l,parent:n,context:r,zIndex:o,interactionHandlers:u,transitionProps:c,codeBehaviorProps:i,websiteContext:s});case"COMPONENT_SET":return ge(d,"COMPONENT_SET nodes are not supported in sites"),(0,Ln.jsx)(dU,{node:t,children:l,parent:n,context:r,zIndex:o,interactionHandlers:u,transitionProps:c,codeBehaviorProps:i,websiteContext:s});case"RECTANGLE":return(0,Ln.jsx)(xh,{ref:a,node:t,children:l,parent:n,context:r,zIndex:o,interactionHandlers:u,transitionProps:c,codeBehaviorProps:i,websiteContext:s});case"GROUP":return(0,Ln.jsx)(hU,{node:t,children:l,parent:n,context:r,zIndex:o,interactionHandlers:u,transitionProps:c,websiteContext:s});case"IMAGE":case"SVG":return(0,Ln.jsx)(Qw,{ref:a,node:t,parent:n,zIndex:o,context:r,interactionHandlers:u,transitionProps:c,codeBehaviorProps:i,websiteContext:s});case"TEXT":return(0,Ln.jsx)(UU,{ref:a,node:t,parent:n,context:r,zIndex:o,interactionHandlers:u,transitionProps:c,codeBehaviorProps:i,websiteContext:s});case"WIDGET":return(0,Ln.jsx)(wU,{node:t,parent:n,context:r,zIndex:o,interactionHandlers:u,websiteContext:s});case"CODE_INSTANCE":case"CODE_LAYER":return(0,Ln.jsx)(uU,{node:t,parent:n,context:r,zIndex:o,interactionHandlers:u,websiteContext:s});case"REPEATER":return(0,Ln.jsx)(xh,{ref:a,node:t,children:l,parent:n,context:r,zIndex:o,interactionHandlers:u,transitionProps:c,websiteContext:s});case"CMS_RICH_TEXT":return(0,Ln.jsx)(xB,{node:t,parent:n,context:r,zIndex:o,interactionHandlers:u,websiteContext:s});default:xe(t)}})();return f?(0,Ln.jsx)("div",{style:{display:"none"},children:T}):T},[t,l,n,r,u,a,o,c,i,f,d,s])}),T9=(0,ua.forwardRef)(function({node:t,parent:n,context:r,zIndex:o,name:i,nodeId:s,childKey:a,codeBehaviorProps:l,websiteContext:u},c){return(0,Ln.jsx)(oa,{name:i,nodeId:s,children:(0,Ln.jsx)(Hi,{ref:c,node:t,parent:n,context:r,zIndex:o,codeBehaviorProps:l,websiteContext:u},a)})});function id({node:e,parent:t,context:n,zIndex:r,name:o,nodeId:i,childKey:s,codeBehaviorProps:a,websiteContext:l,ref:u}){return Ot((0,Ln.jsx)(T9,{ref:u,name:o,nodeId:i,childKey:s,node:e,parent:t,context:n,zIndex:r,codeBehaviorProps:a,websiteContext:l},s))}var Qe=v(_e()),ir=v(W());var pd=v(W());function FN({key:e,children:t}){let n=e==null?null:{key:e};return Array.isArray(t)?(0,pd.createElement)(pd.Fragment,n,...t):(0,pd.createElement)(pd.Fragment,n,t)}var JU=new Map;function wN(){let{env:e,websiteData:t}=fe(),n=ys(Ae(t.globalStyles)??""),r=ja({str:n??"",hashPrefix:PS,isUniqueKey:o=>
8268{if(e==="server"){let s=JU.get(o);return!s||s===n}let i=document.getElementById(o);return!i||i.textContent===n}});return n&&JU.set(r,n),ec({cssString:n??"",styleElId:r,deleteElsWithPrefix:PS,skipValidation:!0}),null}var tO=v(_e()),qU=v(W()),QU=(0,qU.forwardRef)(function({children:t},n){return(0,tO.jsx)(tO.Fragment,{children:t})});function BN({withBaseStyles:e,prepend:t=!1}){return ec({cssString:EN(e),styleElId:Xh,prepend:t}),null}var tV=v(_e());function eV(e,t,n){if(U_(e))return fo(t.id,n)}function nV({Tag:e,children:t,styleSet:n,elementRef:r,nodeId:o,idSuffix:i,attributes:s,...a}){let l=fe(),u=ZD(Array.isArray(n)?n:[n]);return(0,tV.jsx)(e,{...a,...s,id:o?eV(l,{id:o},i):void 0,className:u,ref:r,children:t})}var rV=v(_e());var oV=({children:e,...t})=>Ot((0,rV.jsx)(FR,{...t,children:e}));var Lr=v(_e()),Co=v(W()),h9=v(aN()),O9=v(_e()),g9=v(gu()),I9=v(nE());var iV=Co.forwardRef(({children:e,codeBehaviors:t,variableState:n,modeContext:r,assets:o,outerStyles:i,tag:s,websiteContext:a},l)=>(0,Lr.jsx)(Dl,{children:()=>a.renderElement({Tag:s,ref:l,styleSet:[{display:"flex",...i},"tailwind","code-behavior-wrapper"],children:(0,Lr.jsx)(R9,{codeBehaviors:t,variableState:n,modeContext:r,assets:o,websiteContext:a,children:e})})}));iV.displayName="CodeBehaviorWrapper";var sV=({ref:e,...t})=>Ot((0,Lr.jsx)(iV,{ref:e,...t}));function S9({node:e,Component:t,codeBehaviors:n,variableState:r,modeContext:o,children:i,assets:s}){let a=A9(t),l=$B(a),c={...HB(e,l,n,r,o,a,s),children:i};return(0,Lr.jsx)(t,{...c})}function R9({children:e,codeBehaviors:t,variableState:n,modeContext:r,assets:o,websiteContext:i}){ia("CodeComponentContent");let s=ta(),a=i.getAssetURL,[l,u]=Co.useState([]);globalThis.__GLOBALS__={React:Co,ReactJSXRuntime:O9,ReactJSXDevRuntime:h9,ReactDOM:g9,ReactDOMClient:I9,SnapshotContext:Sp,RenderHooksContext:Gl,ActiveBreakpointContext:sd,WebsiteSettingsContext:ld,getAssetURL:a};let c=Co.useMemo(()=>WB(t),[t]),d=VB(c),f=i.websiteData.sourceCodeHash,p=Ae(f),_=Co.useRef({});return Co.useEffect(()=>{if(!i||!d.length)return;let T=d.filter(h=>!_.current[h.id]);T.length!==0&&Promise.all(T.map(async h=>{try{let m=i.getCodeComponentURL(h),E=await import(m),g=await Hh(E,h.codeExportName,m);return _.current[h.id]=g,g}catch(m){return ad(p,m,"Failed to import code behavior module"),null}})).then(h=>{h.some(m=>m!==null)&&u(d.map(m=>_.current[m.id]||null))}).catch(h=>{ad(p,h,"Failed to load code behavior")})},[d,i,p]),!d.length||!i||!s?(0,Lr.jsx)(Lr.Fragment,{children:e}):l.length!==d.length||l.some(T=>T===null)?(0,Lr.jsx)(Lr.Fragment,{children:e}):(0,Lr.jsx)(Lr.Fragment,{children:[...d].reverse().reduce((T,h,m)=>{let E=l.length-1-m,O=l[E];return O?(0,Lr.jsx)(S9,{node:h,Component:O,codeBehaviors:t,variableState:n,modeContext:r,assets:o,children:T},h.id):T},e)})}function A9(e){return e?e[Symbol.for("figma.react.props")]??{}:null}var Wi=v(_e()),qe=v(W()),aV=v(MI());var N9="left",y9=6,b9=!1,L9="Scrolling content",C9=!1,lV=({children:e,...t})=>Ot((0,Wi.jsx)(P9,{...t,children:Ne(e,t.websiteContext)})),P9=qe.default.forwardRef(function({node:t,style:n={},className:r="",children:o,websiteContext:i},s){let a=t.behaviors?.marquee?.direction??N9,l=t.behaviors?.marquee?.speed??y9,u=t.behaviors?.marquee?.shouldLoopInfinitely??b9,c=O1(t,i.renderOptions)?L9:t.accessibleLabel,d=t.behaviors?.marquee?.pauseOnHover??C9,[f,p]=(0,qe.useState)(0),[_,T]=(0,qe.useState)(0),[h,m]=(0,qe.useState)(1),[E,O]=(0,qe.useState)(!1),g=(0,qe.useRef)(null),I=s||g,S=(0,qe.useRef)(null),A=Yf(),R=(0,aV.default)("marquee",A?"":"reduced-motion"),y=(0,qe.useCallback)(N=>{if(S.current&&I.current){let K=I.current.getBoundingClientRect(),C=S.current.getBoundingClientRect(),M=f===0?K.width:f,P=C.width;if((a==="UP"||a==="DOWN")&&(M=K.height,P=C.height),u&&M&&P){let z=P<M?Math.ceil(M/P):1;m(z)}else m(1);T(P),(f===0||N)&&p(K.width)}},[u,I,f,a]);(0,qe.useEffect)(()=>{if(E&&(y(),S.current&&I.current)){let N=new ResizeObserver(()=>{y(!0)});return N.observe(I.current),N.observe(S.current),()=>{N&&N.disconnect()}}},[y,I,E]),(0,qe.useEffect)(()=>{y()},[y,o]),(0,qe.useEffect)(()=>{O(!0)},[]);let b=(0,qe.useMemo)(()=>u?_*h/l:_<f?f/l:_/l,[u,f,_,h,l]),L=(0,qe.useMemo)(()=>({...n,["--width"]:a==="UP"||a==="DOWN"?"100vh":"100%",["--transform"]:a==="UP"?"rotate(-90deg)":a==="DOWN"?"rotate(90deg)":"none"}),[n,a]),D=(0,qe.useMemo)(()=>({["--direction"]:a==="LEFT"?"normal":"reverse",["--duration"]:`${b}s`,["--delay"]:"0s",["--iteration-count"]:"infinite",["--min-width"]:u?"auto":"100%",["--timing-function"]:lS(i)?"steps(3)":"linear",["--pause-on-hover"]:d?"paused":"running"}),[a,b,u,d,i]),F=(0,qe.useMemo)(()=>({["--transform"]:a==="UP"?"rotate(90deg)":a==="DOWN"?"rotate(-90deg)":"none"}),[a]),U=(0,qe.useCallback)((N,K)=>[...Array(Number.isFinite(N)&&N>=0?N:0)].map((C,M)=>(0,Wi.jsx)(qe.Fragment,{children:qe.Children.map(o,P=>(0,Wi.jsx)("div",{"aria-hidden":K?"true":void 0,style:F,className:"marquee-child",children:P}))},M)),[F,o]);return E?(0,Wi.jsxs)("div",{ref:I,style:L,className:"marquee-container "+r,tabIndex:0,role:"marquee","aria-label":c,children:[(0,Wi.jsxs)("div",{className:R,style:D,children:[(0,Wi.jsx)("div",{className:"marquee-initial-child-container",ref:S,
8268children:U(1)}),U(h-1,!0)]}),(0,Wi.jsx)("div",{className:R,style:D,children:U(h,!0)})]}):null});var yp=v(_e()),nO=v(W());var Yke=v(W());function uV(e,t,n,r,o){return n?t.getLayerRef({layerRef:n,parentRef:o,Component:()=>null}):r(e)||null}function Np(e,t){return t in e}function D9({renderNode:e,node:t,codeBehaviorProps:n}){let r=nO.useContext(Gl),o=nO.useRef(null),i=n?.transformRef||o,s=n?.parentRef;if(!r.renderHooks.length)return e(t)||(0,yp.jsx)(yp.Fragment,{});let a=t;for(let l of r.renderHooks)if(Np(l,"renderText"))a={...a,renderTextHook:l};else if(Np(l,"renderTextCharacter"))a={...a,renderTextCharacterHook:l};else if(Np(l,"renderTextLine"))a={...a,renderTextLineHook:l};else if(Np(l,"renderTextWord"))a={...a,renderTextWordHook:l};else if(Np(l,"getLayerRef"))uV(a,l,i,e,s);else throw new te("Render hook not supported.");return e(a)||null}var cV=e=>(0,yp.jsx)(D9,{...e});var UN=v(_e()),He=v(W());function rO(e,t){let n=(0,He.useRef)(null);(0,He.useLayoutEffect)(()=>{if(!e||!e.current)return;let r=new ResizeObserver(o=>{for(let i of o)if(e.current===i.target){let s=i.contentRect.width,a=i.contentRect.height;if(n&&n.current&&n.current.width===s&&n.current.height===a)continue;let u={width:i.contentRect.width,height:i.contentRect.height};n.current=u,t&&t(u)}});return r.observe(e.current),()=>r.disconnect()},[e,t])}var v9=He.default.forwardRef(function({node:t,parent:n,context:r,children:o,outerStyles:i,childWrapperStyles:s,transitionData:a,smartAnimateType:l,transformRef:u,codeBehaviorWrapperRef:c,keyframeMotionPropsOverride:d,tag:f,websiteContext:p},_){let T=t.id,h=(0,He.useRef)(null),m=u||h,E=ei(_,m),O=(0,He.useRef)(null),g=(0,He.useMemo)(()=>xt(Wt(r?.group?.relativeTransform,t.relativeTransform)),[r?.group?.relativeTransform,t.relativeTransform]),I=(0,He.useMemo)(()=>Ir(t,n),[t,n]),{renderOptions:S}=p,{disableConstraintsBasedSizing:A,metronomeEnabled:R}=S,y=(0,He.useCallback)(P=>{if(sl(g,S))return;let z=P.width,Ee=P.height;if(!A&&Ir(t,n)){let{width:pe,height:ye,transform:Le}=L_(z,Ee,g,t.size,t.absoluteBoundingBox,p.renderOptions);ge(O.current!==null,"TransformWrapperStatic innerRef not set when setting outer size"),O.current.style.setProperty("width",`${pe}px`),O.current.style.setProperty("height",`${ye}px`),O.current.style.setProperty("transform",Le instanceof Q?Le.value:Le)}else O.current?.style.removeProperty("width"),O.current?.style.removeProperty("height"),O.current?.style.removeProperty("transform")},[t,g,n,A,S,p.renderOptions]),b=(0,He.useCallback)(P=>{if(ge(m.current!==null,"TransformWrapperStatic outerRef not set when setting inner size"),I||!cc(g))return;let z=parseFloat(m.current.style.getPropertyValue(Ds)),Ee=parseFloat(m.current.style.getPropertyValue(vs));Ve(z,P.width,1e-4)||(m.current.style.setProperty(Ds,`${P.width}`),c?.current?.style.setProperty(Ds,`${P.width}`)),Ve(Ee,P.height,1e-4)||(m.current.style.setProperty(vs,`${P.height}`),c?.current?.style.setProperty(vs,`${P.height}`))},[m,I,g,c]);rO(m,y),rO(O,b),(0,He.useLayoutEffect)(()=>{m.current&&y({width:m.current.clientWidth,height:m.current.clientHeight}),O.current&&b({width:O.current.clientWidth,height:O.current.clientHeight})},[]),(0,He.useLayoutEffect)(()=>{if(m.current){let P=m.current.getBoundingClientRect(),z=P.width,Ee=P.height;y({width:z,height:Ee})}},[t.id]);let L=Ih({children:o,keyframeMotionPropsOverride:d,nodeId:t.id,outerTransform:i.transform,renderMotionProps:!0,renderOptions:S,websiteContext:p}),{inner:D,outer:F}=Ah({outerStyles:i,childWrapperStyles:s,keyframeAlignmentOverride:Rh(t,g,R),preserve3d:al(t,S)}),U=on(a),{motionTransitionProps:N}=fD(l??ee.NONE,a,U),K=Ai(l??ee.NONE,a,i.transform),M=!!l&&l!==ee.NONE||L.elementMotionProps!=null;return p.renderElement({Tag:M?er[f]:f,nodeId:T,idSuffix:"transform-wrapper-outer",ref:E,styleSet:F,attributes:{...M?{...N,...K,...L.elementMotionProps}:{},...L.dataMotionProps},children:p.renderElement({Tag:"div",nodeId:T,idSuffix:"transform-wrapper-inner",ref:O,styleSet:D,children:Ne(L.children,p)})})}),x9=He.default.forwardRef(function({node:t,parent:n,context:r,children:o,outerStyles:i,childWrapperStyles:s,transitionData:a,previousRotation:l,transformRef:u,codeBehaviorWrapperRef:c,tag:d,websiteContext:f},p){let{metronomeEnabled:_}
8268=f.renderOptions,T=t.id,h=(0,He.useRef)(null),m=u||h,E=ei(p,m),O=(0,He.useRef)(null),g=(0,He.useRef)(!1),I=(0,He.useRef)(!1),S=g.current&&I.current,[A,R]=(0,He.useState)(void 0),[y,b]=(0,He.useState)(void 0),L=Ir(t,n),D=(0,He.useCallback)(ae=>{let Oe=ae.width,oe=ae.height;if(g.current=!0,L){let ft=xt(Wt(r?.group?.relativeTransform,t.relativeTransform)),{width:et,height:he,transform:Ge}=L_(Oe,oe,ft,t.size,t.absoluteBoundingBox,f.renderOptions,!0,l);ge(O.current!==null,"TransformWrapperAnimate innerRef not set when setting outer size"),R({width:et,height:he,transform:Ge})}else R(void 0)},[t,r?.group?.relativeTransform,L,l,f.renderOptions]),F=(0,He.useCallback)(ae=>{I.current=!0,(!y||!Ve(y.width,ae.width,1e-4)||!Ve(y.height,ae.height,1e-4))&&(b({width:ae.width,height:ae.height}),c?.current?.style.setProperty(Ds,`${ae.width}`),c?.current?.style.setProperty(vs,`${ae.height}`))},[y,c]);rO(m,D),rO(O,F),(0,He.useLayoutEffect)(()=>{if(m.current){let ae=m.current.getBoundingClientRect(),Oe=ae.width,oe=ae.height;y&&!(Ve(Oe,y?.width??0,1e-4)&&Ve(oe,y?.height??0,1e-4))&&D({width:Oe,height:oe})}},[t.id]);let{transform:U,...N}=s,K=A?{width:A.width,height:A.height}:void 0;if(!A?.transform&&!U){let ae=LR(l.current,0);l.current=l.current+ae}let C=`rotate(${l.current}deg) skewX(0deg) skewY(0deg) scaleX(1) scaleY(1)`,M;L?M=A?.transform??U??C:M=U??A?.transform??C;let P=M instanceof Q?M.value:M,z=(0,He.useMemo)(()=>xt(Wt(r?.group?.relativeTransform,t.relativeTransform)),[r?.group?.relativeTransform,t.relativeTransform]),{inner:Ee,outer:pe}=Ah({outerStyles:i,childWrapperStyles:N,innerState:K,keyframeAlignmentOverride:Rh(t,z,_),preserve3d:al(t,f.renderOptions)}),ye={[Ds]:y?.width??0,[vs]:y?.height??0},Le=on(a),{motionTransitionProps:We}=dD(ye,S,a,S?Le:void 0),De=Ai(ee.INSTANCE_SUBTREE,a,i.transform);return f.renderElement({Tag:er[d],nodeId:T,idSuffix:"transform-wrapper-outer",ref:E,styleSet:pe,attributes:{...We,...De},children:f.renderElement({Tag:er.div,nodeId:T,idSuffix:"transform-wrapper-inner",styleSet:Ee,ref:O,attributes:{layout:!0,layoutDependency:a?.id??cS,transition:a?{duration:a.durationSeconds,...a.motionAnimationData}:{duration:0},initial:{transform:P},animate:{transform:P},onAnimationComplete:S?Le:void 0,onLayoutAnimationComplete:S?Le:void 0,transformTemplate:(ae,Oe)=>ae&&ae.transform?`${Oe} ${ae.transform}`:Oe},children:Ne(o,f)})})});function dV({ref:e,...t}){return t.canAnimate?(0,UN.jsx)(x9,{ref:e,...t}):(0,UN.jsx)(v9,{ref:e,...t})}var VN={renderTransformWrapperLive:dV,renderMarquee:lV,renderCodeBehaviorWrapper:sV,renderRenderHooksConsumer:cV,renderClientOnly:wB,renderAnimatePresence:oV};function M9(e,t){let n=w9(t.websiteData.fonts,t.getFontURL,e),r=jD(n,t);return{fontFaces:n,styleElId:r}}function fV(){let e=fe(),t=Ae(e.websiteData.sourceCodeHash),{fontFaces:n,styleElId:r}=M9(!!t,e);$D(n,r)}function G9(e,t,n){let r=new Map,o=e.split(":")[1],i=$h(t.variationAxes,o);if(t.subsets){let s=t.subsets.baseUrl;if(r.set(e,t.subsets.subsetMappings.sort((a,l)=>a.unicodeRange==="*"?-1:0).map(a=>aa({family:e,style:t.italic?"italic":"normal",url:s+a.file,unicodeRange:a.unicodeRange})).join(` 8269`)),n){let a=e.split(":"),l=a[0],u=a.length>1?a[1]:"normal";r.set(l,t.subsets.subsetMappings.sort((c,d)=>c.unicodeRange==="*"?-1:0).map(c=>aa({family:l,style:u,url:s+c.file,unicodeRange:c.unicodeRange,weight:i})).join(` 8270`))}}else if(r.set(e,aa({family:e,style:t.italic?"italic":"normal",url:t.url})),n){let s=e.split(":"),a=s[0],l=s.length>1?s[1]:"normal";r.set(a,aa({family:a,style:l,url:t.url,weight:i}))}return r}function k9(e,t,n,r){let o=new Map,i=t.url?n(t.url,"CUSTOM"):void 0,s=e.split(":")[1],a=$h(t.variationAxes,s);if(o.set(e,aa({family:e,style:t.italic?"italic":"normal",url:i})),r){let l=e.split(":"),u=l[0],c=l.length>1?l[1]:"normal";o.set(u,aa({family:u,style:c,url:i,weight:a}))}return o}function F9(e,t,n,r){return t?t.source===1?G9(e,t,r):k9(e,t,n,r):new Map}function w9(e,t,n){let r=Array.from(e.map).reduce((o,[i,s])=>new Map([...o,...F9(i,s,t,n)]),new Map);return ys([...r.values()].join(` 8271`))}function pV(e){return ir.default.useMemo(()=>e.optimizeForTailwindConversion?t=>lP(t,e):({key:t,ref:n,...r})=>(0,Qe.jsx)(nV,{elementRef:n,...r},t),[e])}function B9({rootMaterializedNodes:e,history:t,websiteData:n,cmsBundleData:r,getAssetURL:o,getFontURL:i,getVideoURL:s,getCodeComponentURL:a,env:l,currentLocation:u,setLocation:c,preloadLocation:d,onPageRendered:f,onReactError:p,renderOptions:_,addHeadTag:T,addBodyScript:h,loadComponentsOverNetwork:m,wasServerRendered:E=!1,withBaseStyles:O=!0,isFigmake:g,enableMetaTags:I,atomStore:S,globalVariableState:A,inheritedVariantPropertiesCache:R,processedNodesCache:y,computedVariantCache:b}){let L=pV(_),F=Ae(n.siteSettings,{store:S})?.cookieBanner,[U,N]=(0,ir.useState)(!1);z9(E);let C=l==="published"&&g&&window.self===window.top?nU:QU;return(0,Qe.jsx)(MD,{reportError:p,children:(0,Qe.jsx)(ra,{name:"root-error-boundary",nodeId:"root",children:(0,Qe.jsx)(RS,{websiteData:n,cmsBundleData:r,history:t,getAssetURL:o,getFontURL:i,getVideoURL:s,getCodeComponentURL:a,env:l,setLocation:c,preloadLocation:d,renderOptions:_,renderElement:L,renderFragment:FN,withBaseStyles:O,addHeadTag:T,addBodyScript:h,loadComponentsOverNetwork:m,isFigmake:g,enableMetaTags:I,atomStore:S,globalVariableState:A,inheritedVariantPropertiesCache:R,processedNodesCache:y,computedVariantCache:b,sitesRenderers:VN,children:(0,Qe.jsx)(fd.Provider,{value:{enabled:F?.enabled,openSettings:()=>N(!0)},children:(0,Qe.jsxs)(C,{children:[(0,Qe.jsx)(W9,{rootMaterializedNodes:e}),F?.enabled&&(0,Qe.jsx)(vN,{...F,guidToUrl:n.guidToUrl,setLocation:c,reportError:p,isManaging:U,setIsManaging:N}),(0,Qe.jsx)(U9,{currentLocation:u,onPageRendered:f})]})})})})})}function U9({currentLocation:e,onPageRendered:t}){let n=Ae(ME);return(0,ir.useEffect)(()=>{window.scrollTo(0,e?.scrollY??0)},[e?.scrollY,e?.url]),(0,ir.useEffect)(()=>{t&&e?.url&&t(e.url,n)},[e?.url,t,n]),mP(),null}function oO(e){let t=document.createRange().createContextualFragment(e);
8271return Array.from(t.children).forEach(r=>r.setAttribute("data-user-element","true")),t}function V9(e){let t=fe()?.websiteData.siteSettings??de(),n=Ae(t),r=n?.customCodeHeadStart,o=n?.customCodeHeadEnd,i=n?.customCodeBodyStart,s=n?.customCodeBodyEnd;(0,ir.useInsertionEffect)(()=>{if(e==="preview")return r&&document.head.prepend(oO(r)),o&&document.head.append(oO(o)),i&&document.body.prepend(oO(i)),s&&document.body.append(oO(s)),()=>{document.querySelectorAll("[data-user-element]").forEach(l=>l.remove())}},[e,r,o,i,s])}function H9(){let t=Ae(fe().websiteData.siteSettings)?.addBypassLinks,n=(0,ir.useCallback)(i=>{i.stopPropagation(),i.preventDefault();let s=document.querySelector("main");s&&s.focus()},[]),r=(0,ir.useCallback)(i=>{i.key==="Enter"&&n(i)},[n]),o=(0,ir.useCallback)(i=>{n(i)},[n]);return t?(0,Qe.jsx)("div",{className:"bypass-link",children:(0,Qe.jsx)("a",{role:"link",onKeyDown:r,onClick:o,tabIndex:0,children:"Skip to main content"})}):null}function mV(e){let t=Ae(e.rootMaterializedNodePropsArrayAtom,{store:e.atomStore}),n=Ae(e.renderOptionsAtom,{store:e.atomStore}),r=Ae(e.cmsBundleDataAtom,{store:e.atomStore}),o=Ae(e.currentLocationAtom,{store:e.atomStore}),i=Fh(s=>t.map(a=>Ja(s,a,{env:e.env,isFigmake:e.isFigmake,renderOptions:n,websiteData:e.websiteData,setLocation:e.setLocation,history:e.history,atomStore:e.atomStore,globalVariableState:e.globalVariableState,inheritedVariantPropertiesCache:e.inheritedVariantPropertiesCache,processedNodesCache:e.processedNodesCache,computedVariantCache:e.computedVariantCache})),[t,e.env,n],{store:e.atomStore});return(0,Qe.jsx)(B9,{...e,cmsBundleData:r,currentLocation:o,renderOptions:n,rootMaterializedNodes:i})}function W9({rootMaterializedNodes:e}){let t=fe(),{env:n,withBaseStyles:r}=t,o=Yf();return m1(),fV(),V9(n),e.length>0?(0,Qe.jsxs)(BR,{reducedMotion:o?"never":"user",children:[(0,Qe.jsx)(BN,{withBaseStyles:r}),(0,Qe.jsx)(wN,{}),(0,Qe.jsx)(JD,{}),(0,Qe.jsx)(H9,{},`bypass-${e[0]?.id}`),e.map(i=>(0,Qe.jsx)(Hi,{node:i,parent:null,websiteContext:t},`${i.id}`))]}):null}var Y9=()=>{};function HN({websiteData:e,cmsBundleData:t,history:n,getAssetURL:r,getFontURL:o,getVideoURL:i,getCodeComponentURL:s,env:a,setLocation:l,withBaseStyles:u=!0,addHeadTag:c,addBodyScript:d,loadComponentsOverNetwork:f=!1,isFigmake:p=!1,enableMetaTags:_=!1,renderOptions:T,children:h,atomStore:m,globalVariableState:E,inheritedVariantPropertiesCache:O,processedNodesCache:g,computedVariantCache:I}){let S=pV(T);return(0,Qe.jsx)(RS,{websiteData:e,cmsBundleData:t,history:n,getAssetURL:r,getFontURL:o,getVideoURL:i,getCodeComponentURL:s,env:a,setLocation:l,preloadLocation:Y9,renderOptions:T,renderElement:S,renderFragment:FN,withBaseStyles:u,addHeadTag:c,addBodyScript:d,loadComponentsOverNetwork:f,isFigmake:p,enableMetaTags:_,atomStore:m,globalVariableState:E,inheritedVariantPropertiesCache:O,processedNodesCache:g,computedVariantCache:I,sitesRenderers:VN,children:(0,Qe.jsxs)(Qe.Fragment,{children:[(0,Qe.jsx)(BN,{withBaseStyles:u,prepend:!0}),(0,Qe.jsx)(wN,{}),h]})})}var K9="[Hydrated]";function z9(e){(0,ir.useEffect)(()=>{e&&console.log(K9)},[e])}function X9({websiteData:e,cmsBundleData:t,atomStore:n,globalVariableState:r,url:o,get:i}){let s=LE(i,e,o);if(!s||s.length===0)throw new ht(`Not found: ${o}`);return s.map(a=>{let l=a.id;return{key:l,nodeById:e.nodeById,assets:e.assets,assetIdToGuid:e.assetIdToGuid,guidToUrl:e.guidToUrl,animateRootIds:e.animateRootIds,stablePathToAssetInfo:e.stablePathToAssetInfo,stablePathToConstraints:e.stablePathToConstraints,nodeId:l,preexpandedNodeId:l,stablePathPrefix:a.type==="INSTANCE"?rc(l):void 0,modeContext:{},parentStates:null,parentState:No.createRoot(t,n,r)}})}function EV({websiteData:e,cmsBundleDataAtom:t,atomStore:n,globalVariableState:r,getUrl:o,onResolved:i}){return de(s=>{let a=o(s);return a==null?[]:(i?.(),X9({websiteData:e,cmsBundleData:s(t),atomStore:n,globalVariableState:r,url:a,get:s}))})}function _V(){let e={},t={},n=[],r=[],o=[],i;return{classNamesToStyles:e,globalStyleSheets:t,linkTags:n,metaTags:r,bodyScripts:o,getTitle:()=>i,addHeadTag:s=>{s.type==="class-style"?e[s.className]={cssProperties:s.cssProperties,classNameSourceStr:s.classNameSourceStr}:s.type==="global-style"?t[s.styleElId]=s.styleSheet:s.type==="link"?n.push(s):s.type==="meta"?r.push(s):s.type==="title"&&(i=s.title)},addBodyScript:s=>{o.push(s)}}}function WN(e={}){let{isDesignToReact:t=!1,isMcp:n=!1,shouldOutputVariables:r,dashSeparatedVariableNames:o=!1,codeSyntaxLanguage:i,rootNodeStyle:s,useFigmaComponents:a=!0}=e,l=!!t;return{includeDataName:l,disableDataAttributes:l,shouldOutputCustomEffects:e.shouldOutputCustomEffects??!1,disableBehaviors:l,disableMarquee:l,disableCodeBehaviors:l,preferCssGradients:l,useFigmaClipContentsForOverflow:l,disableTextMarkerVariables:l,disableHighSpecificityContainer:l,disableConstraintsBasedSizing:l,renderHiddenRootNodes:l,renderComponentSetNodes:l,disableImageOptimization:l,disableVariableErrors:l,optimizeForTailwindConversion:l,disableInlineSvgGeneration:l,disableAdjustLetterSpacing:l,disableClientOnlyComponents:l,enableGroupKeyframeAnimations:e.enableGroupKeyframeAnimations??!1,metronomeEnabled:e.metronomeEnabled??!1,transform3dEnabled:e.transform3dEnabled??!1,emitMotionDataForCodegen:l,assignNodeIdToOutermostWrapper:l,useCssRotationConstraints:l,rootNodeStyle:s??(l?"independent":void 0),useFigmaComponents:l&&a,minimizeAutoLayoutWrappers:n,dontUseChildDivForBorderStyles:n,shouldOutputVariables:r??n,dashSeparatedVariableNames:o,disableFontFallbacks:n,codeSyntaxLanguage:i??void 0,previewingCodeBehavior:e.previewingCodeBehavior??!1,testFlags:e.testFlags,enforceLayoutInvariants:e.enforceLayoutInvariants??!1,textCodepointSubstitution:e.textCodepointSubstitution}}var bp=class{static parseModeId(t){let n=t.split("/");if(n.length<2)return null;if(n.length===3){let r=n.slice(0,2).join("/"),o=n[2];return o?{collectionId:r,modeGuid:o}:null}if(n.length===2){let r=n[0],o=n[1];return!r||!o?null:{collectionId:r,modeGuid:o}}return null}};function j9(e){let t=e.indexOf("/");return t===-1?e:e.substring(0,t)}var YN=class{variableOverrideCache=new Map;createCacheKey(t,n,r){return`${t}:${n}:${r}`}findVariableOrOverrideId(t,n,r,o){let i=o.getAssetGuid(n),s=o.nodeById.get(i,o.disableVariableErrors);if(s?.type!=="VARIABLE")return null;let a=o.getCollectionInfo(s.variableCollectionId);if(!a)return null;let l=a.baseCollectionId||s.variableCollectionId,u=r[l],c=u&&bp.parseModeId(u);if(!c)return null;let d=this.createCacheKey(l,c.modeGuid,n),f=this.variableOverrideCache.get(d);if(f!==void 0)return r[f.resolvedCollectionId]=`${f.resolvedCollectionId}/${f.resolvedModeGuid}`,f.resultId===n?null:f.resultId;let p=this.findVariableOverrideInCollectionHierarchy(t,n,c.collectionId,c.modeGuid,o),_=p?.overrideId||n;return this.variableOverrideCache.set(d,{resultId:_,resolvedCollectionId:p?.resolvedCollectionId,resolvedModeGuid:p?.resolvedModeGuid}),p?(r[p.resolvedCollectionId]=`${p.resolvedCollectionId}/${p.resolvedModeGuid}`,p.overrideId):null}findVariableOverrideInCollectionHierarchy(t,n,r,o,i){let s=i.getAssetGuid(r),a=i.nodeById.get(s,i.disableVariableErrors);if(!a||a.type!=="VARIABLE_COLLECTION")return null;let l=a.relatedVariableIds?.[n];if(l){let u=i.getAssetGuid(l),c=i.nodeById.get(u,i.disableVariableErrors);
8271if(c?.type==="VARIABLE"&&c.valuesByMode?.[o]!==void 0)return{overrideId:l,resolvedCollectionId:r,resolvedModeGuid:o}}if(a.parentVariableCollectionId){let u=this.getParentModeInfo(a,o);if(u){let{parentCollectionId:c,parentModeId:d}=u;return this.findVariableOverrideInCollectionHierarchy(t,n,c,d,i)}}return null}getParentModeInfo(t,n){if(!t.modes)return null;let r=t.modes.find(o=>o.modeId.endsWith(`/${n}`));if(!r||!r.parentModeId)return null;if(r.parentModeId.includes("/")){let o=bp.parseModeId(r.parentModeId);if(o)return{parentCollectionId:t.parentVariableCollectionId,parentModeId:o.modeGuid}}else return{parentCollectionId:t.parentVariableCollectionId,parentModeId:r.parentModeId};return null}},iO=class{nodeById;assetIdToGuid;atomStore;disableVariableErrors;map=new Map;assetIdToAssetKeyCache=new Map;hierarchyResolver=new YN;constructor(t,n,r,o){this.nodeById=t,this.assetIdToGuid=n,this.atomStore=r,this.disableVariableErrors=o}setVariable(t,n,r){let o=this.getVariable(t);o&&o.value.setModeValue(n,r)}evaluateVariable(t,n,r){let o=this.hierarchyResolver.findVariableOrOverrideId(t,n,r,this)||n,i=this.getVariable(o);if(!i)return null;let s=i.value,a=t(s.getModeValue(r));return To({get:t,variableState:this,modeContext:r},a)}getVariableCodeSyntax(t){let n=this.getVariable(t);return n?n.value.codeSyntax:{}}getVariableName(t){let n=this.getVariable(t);return n?n.value.name:void 0}getVariable(t){let n=this.getAssetGuid(t),r=this.nodeById.get(n,this.disableVariableErrors);if(!r||r.type!=="VARIABLE")return null;let o=this.map.get(r.id);if(o)return o;let i=new KN(r,this,this.nodeById,this.atomStore);return this.map.set(r.id,i),i}getVariableType(t,n,r){let o=this.evaluateVariable(n,t,r);return o===null?null:aS(o)}getAssetKeyOrLocalGuid(t){this.assetIdToAssetKeyCache.has(t)||this.assetIdToAssetKeyCache.set(t,j9(t));let n=this.assetIdToAssetKeyCache.get(t);return ge(n!==void 0,"assetKey is undefined"),n}getAssetGuid(t){return this.assetIdToGuid.get(t,this.disableVariableErrors)||t}hasAssetId(t){return this.assetIdToGuid.get(t,!0)!==void 0}getCollectionInfo(t){try{let n=this.getAssetGuid(t),r=this.nodeById.get(n,this.disableVariableErrors);return!r||r.type!=="VARIABLE_COLLECTION"?null:r}catch{return null}}},KN=class{atomStore;value;modeAtoms=new Map;constructor(t,n,r,o){this.atomStore=o;let i=r.get(n.getAssetGuid(t.variableCollectionId),n.disableVariableErrors),s=n.getAssetKeyOrLocalGuid(t.variableCollectionId),a=c=>{let d=t.variableCollectionId,f=c?.[d]??c?.[s];f||(f=i.defaultModeId);let _=bp.parseModeId(f)?.modeGuid||f,T=this.modeAtoms.get(f);return T||(T=new $9(t,_,this.atomStore),this.modeAtoms.set(f,T)),T},l=c=>a(c).atom,u=(c,d)=>a(d).setValue(c);this.value={name:t.name,codeSyntax:t.codeSyntax??{},getModeValue:l,setModeValue:u}}},$9=class{atomStore;valueAtom=de(void 0);atom;constructor(t,n,r){this.atomStore=r,this.atom=de(o=>{let i=t.valuesByMode[n];return o(this.valueAtom)??i})}setValue(t){this.atomStore.set(this.valueAtom,t)}};var sO=class{capacity;leakRate;currentVolume;lastTimestamp;constructor(t,n){this.capacity=t,this.leakRate=n,this.currentVolume=0,this.lastTimestamp=Date.now()}leak(){let t=Date.now(),r=(t-this.lastTimestamp)*this.leakRate;this.currentVolume=Math.max(0,this.currentVolume-r),this.lastTimestamp=t}tryAdd(t=1){return this.leak(),this.currentVolume+t<=this.capacity?(this.currentVolume+=t,!0):!1}};function TV(e){return(t,{width:n,height:r}={})=>{if(!e)return t;let o=new URLSearchParams;n&&o.set("w",n.toString()),r&&o.set("h",r.toString());let i=o.size>0?`?${o.toString()}`:"";return`/_assets/${e}/${t}${i}`}}function hV(e){return(t,n)=>n==="CUSTOM"?`/_user_fonts/${e||"v1"}/${t}`:t}function OV({env:e,videosVersion:t}){return(n,r)=>e==="preview"?n:`/_videos/${t||"v1"}/${r}`}function gV({codeComponentsVersion:e,atomStore:t,websiteData:n}){return()=>{if(e){let i=t.get(n.sourceCodeHash);return i?`/_components/${e}/${i}.js`:(console.warn("Source code hash not found"),"")}let r="data:text/javascript;charset=utf-8,",o=n.compiledCode;return o==null?(console.warn("Compiled code not found"),r):r+encodeURIComponent(t.get(o)??"")}}function Z9(e,t,n){let r=J9(e,t,n);return IV(r,n)}function J9(e,t,n){let{atomStore:r,globalVariableState:o}=n,i=GE();kE(i,Nf(e),r);let s=LE(r.get,i,t)[0];if(!s)throw new ht(`Not found: ${t}`);let a=s.id;return{key:"root",nodeById:i.nodeById,assets:i.assets,nodeId:a,preexpandedNodeId:a,parentStates:null,modeContext:{},parentState:No.createRoot(null,r,o),animateRootIds:new Set,stablePathToAssetInfo:i.stablePathToAssetInfo,stablePathToConstraints:i.stablePathToConstraints,assetIdToGuid:i.assetIdToGuid,guidToUrl:i.guidToUrl}}function IV(e,t){try{let n=Ja(t.atomStore.get,e,t),r=n.visible?n.materializedChildNodeProps?.map(i=>IV(i,t)):void 0,o=1;if(r)for(let i of r)o+=i.nodesInSubtree;return delete n.interactionHandlers,delete n.materializedChildNodeProps,delete n.transitionProps,delete n.variableState,delete n.modeContext,structuredClone(n),{node:n,children:r,nodesInSubtree:o}}catch(n){return console.log("Materialization error",n),{node:{type:"ERROR",name:n.message},nodesInSubtree:1}}}var q9="[Hydration Error]",Q9=["hydrat","Minified React error #418","Minified React error #423","Minified React error #424","Minified React error #425"],SV=class{root;container;websiteData;atomStore;cmsBundleDataAtom;env;pendingLocationAtom;currentLocationAtom;getPage;getAssetURL;getVideoURL;getFontURL;history;onWindowResize=null;rootMaterializedNodePropsArrayAtom;materializedRenderOptionsAtom;bundleId;loadComponentsOverNetwork;headTagCollector=_V();withBaseStyles;isFigmake;enableMetaTags;onPageRendered;onReactError;onLocationChange;needsHydration=!1;_resolveRootsRuntimeAtomForTests=void 0;_rootsRuntimeAtomForTestsPromise=void 0;getPagePreloadCache=new Map;materializedRenderOptions;globalVariableState;inheritedVariantPropertiesCache=new Map;processedNodesCache=new Set;computedVariantCache=new Map;constructor({container:t,env:n,loadComponentsOverNetwork:r=!1,history:o,getAssetURL:i=void 0,getFontURL:s=void 0,getVideoURL:a=void 0,getPage:l=void 0,onPageRendered:u,onReactError:c=za,onLocationChange:d,sendMessage:f=oD,codeComponentsVersion:p,assetsVersion:_,fontsVersion:T,videosVersion:h,bundleId:m,renderOptions:E={},withBaseStyles:O=!0,reportingDomain:g,userId:I,analyticsHeaders:S,bundleCreationDate:A,isFigmake:R,enableMetaTags:y}){if(n==="server")throw new te('SitesRuntime does not support env: "server". Use `renderPageAsString` instead.');this.container=t,this.bundleId=m,this.env=n,this.withBaseStyles=O,this.atomStore=df(),this.pendingLocationAtom=de(null),this.currentLocationAtom=de(null),this.getPage=l??this.defaultGetPage,this.getAssetURL=i||TV(_),this.getFontURL=s||hV(T),this.getVideoURL=a||OV({env:n,videosVersion:h}),vD(f),o||(o=new eZ(L=>this.setLocation(L,!0))),this.websiteData=GE(),this.cmsBundleDataAtom=de(null),this.history=o,this.loadComponentsOverNetwork=r,this.needsHydration=this.isPublished(),this.isFigmake=!!R,this.enableMetaTags=!!y,this.onPageRendered=u,this.onReactError=c,this.onLocationChange=d,Me.init({env:n,reportingDomain:g||"",rateLimiter:new sO(100,1/1e3),analyticsHeaders:S,userId:I,bundleId:m,bundleCreationDate:A}),this.materializedRenderOptions=WN(E),this.materializedRenderOptionsAtom=de(this.materializedRenderOptions),this.globalVariableState=new iO(this.websiteData.nodeById,this.websiteData.assetIdToGuid,this.atomStore,this.materializedRenderOptions.disableVariableErrors),this.rootMaterializedNodePropsArrayAtom=EV({websiteData:this.websiteData,cmsBundleDataAtom:this.cmsBundleDataAtom,atomStore:this.atomStore,globalVariableState:this.globalVariableState,getUrl:L=>L(this.currentLocationAtom)?.url,onResolved:()=>this._resolveRootsRuntimeAtomForTests?.()}),this.getCodeComponentURL=gV({codeComponentsVersion:p,atomStore:this.atomStore,websiteData:this.websiteData}),this.onWindowResize=()=>{this.atomStore.set(ME,{width:window.innerWidth,height:window.innerHeight})},this.onWindowResize(),window.addEventListener("resize",this.onWindowResize);let b=(L,D,F,U,N)=>{N&&Me.reportError(N)};if(window.addEventListener("error",b),this.isPreview()){if(!t)throw new te("Container is required in order to render the site.");this.root=(0,lO.createRoot)(t),this.root.render(this.createWebsiteElement())}}isPreview(){return this.env==="preview"}isPublished(){return this.env==="published"}createWebsiteElement(){return(0,aO.createElement)(mV,{...this.websiteContextForMaterialization,cmsBundleDataAtom:this.cmsBundleDataAtom,rootMaterializedNodePropsArrayAtom:this.rootMaterializedNodePropsArrayAtom,getAssetURL:this.getAssetURL,getFontURL:this.getFontURL,getVideoURL:this.getVideoURL,getCodeComponentURL:this.getCodeComponentURL,withBaseStyles:this.withBaseStyles,currentLocationAtom:this.currentLocationAtom,preloadLocation:t=>{this.preloadLocation(t)},onPageRendered:this.onPageRendered,onReactError:this.handleReactError,renderOptionsAtom:this.materializedRenderOptionsAtom,atomStore:this.atomStore,addHeadTag:this.headTagCollector.addHeadTag,addBodyScript:this.headTagCollector.addBodyScript,loadComponentsOverNetwork:this.loadComponentsOverNetwork,wasServerRendered:this.isPublished(),enableMetaTags:this.enableMetaTags})}defaultGetPage=async t=>{let n=t==="/"?"/_index":t,r=`/_json/${this.bundleId}${n}.json`,o=`/_json/${this.bundleId}/_cms${n}.json`,i=fetch(r,{method:"GET",credentials:"include",mode:"no-cors"}),s=new AbortController,a=this.isFigmake?Promise.resolve(null):fetch(o,{method:"GET",credentials:"include",mode:"no-cors",signal:s.signal}).catch(()=>null),l=await i;if(l.status===401&&l.headers.get("x-figma-needs-reauth"))throw console.log("Re-authentication required; navigating to",t),window.location.href=t,new ht("Authentication required");let u=await l.json(),c=!1;if(u.nodeById)for(let f in u.nodeById){let p=u.nodeById[f];if(p&&(p.cmsCollectionBindingProperties||p.cmsItemFieldBindingProperties)){c=!0;break}}let d=null;if(c){let f=await a;if(f&&f.ok)try{d=await f.json()}catch(p){Me.reportError(new ht("Error parsing CMS resource",p)),console.error(p)}else Me.reportError(new ht(`CMS resource expected but failed to load: ${o}`)),console.error(`CMS resource expected but failed to load: ${o}`)}else s.abort();return{resource:u,cmsResource:d}};preloadLocation(t){let n=this.getPagePreloadCache.get(t);return n||(n=this.getPage(t),this.getPagePreloadCache.set(t,n)),n}setLocation(t,n){t.url!==""&&(this.atomStore.set(this.pendingLocationAtom,t),this.preloadLocation(t.url).then(({resource:r,cmsResource:o})=>{if(this.websiteData.nodeById.map.clear(),kE(this.websiteData,Nf(r),this.atomStore),o){let i=qP(o),s=BD();UD(s,i),this.atomStore.set(this.cmsBundleDataAtom,s)}n||this.history.push(t),this.atomStore.set(this.currentLocationAtom,t),this.onLocationChange?.(this),this.needsHydration&&(this.needsHydration=!1,this.hydrate())}).catch(r=>{let o=r instanceof Error;if(o){let i=r.message;if(i===BI||i===UI)return}throw o?r:new Error("Error setting location "+String(r))}).finally(()=>{this.getPagePreloadCache.delete(t.url)}))}getCodeComponentURL;createSnapshotWrapper(t){return(0,aO.createElement)(HN,{...this.websiteContextForMaterialization,cmsBundleData:this.atomStore.get(this.cmsBundleDataAtom),getAssetURL:this.getAssetURL,getFontURL:this.getFontURL,getVideoURL:this.getVideoURL,getCodeComponentURL:this.getCodeComponentURL,setLocation:()=>{},addHeadTag:()=>{},addBodyScript:()=>{},loadComponentsOverNetwork:this.loadComponentsOverNetwork,withBaseStyles:this.withBaseStyles,enableMetaTags:this.enableMetaTags},t)}get websiteContextForMaterialization(){return{env:this.env,isFigmake:this.isFigmake,renderOptions:this.materializedRenderOptions,websiteData:this.websiteData,setLocation:t=>this.setLocation(t,!1),history:this.history,atomStore:this.atomStore,globalVariableState:this.globalVariableState,inheritedVariantPropertiesCache:this.inheritedVariantPropertiesCache,processedNodesCache:this.processedNodesCache,computedVariantCache:this.computedVariantCache}}createLayerElement({guid:t,renderedByCode:n}){this.atomStore.set(this.currentLocationAtom,{url:"/"});let r=this.websiteData.nodeById.get(t),o=this.atomStore.get(this.rootMaterializedNodePropsArrayAtom),i;o&&(i=o[0]);let s=this.atomStore.get(Zu);
8271if(!i||!r)return null;i.nodeId=t,i.preexpandedNodeId=t,i.breakpointWidth=s;let a=Ja(this.atomStore.get,i,this.websiteContextForMaterialization);return function(u){let c=u?Object.fromEntries(Object.entries(u).filter(([p])=>p.startsWith("data-"))):{},d={renderedByCode:n,style:u?.style,className:u?.className,dataAttributes:c},f=fe();return f?(0,aO.createElement)(Hi,{node:a,parent:null,context:d,websiteContext:f}):null}}refresh(){window.location.reload()}pushAssetData(t){NS(this.websiteData,JP(t),this.atomStore)}unmount(){this.onWindowResize&&window.removeEventListener("resize",this.onWindowResize),setTimeout(()=>{this.root?.unmount()})}hydrate(){this.isPublished(),ge(!!this.container,"Container must be provided in order to hydrate the site."),this.isFigmake||WU(),(0,lO.hydrateRoot)(this.container,this.createWebsiteElement(),{onRecoverableError:(t,n)=>{let r=t.message.toLocaleLowerCase(),o=!1;for(let i of Q9)if(r.includes(i.toLocaleLowerCase())){o=!0;break}o?console.error(q9,t,t.cause??"",n.componentStack):console.error(t,n.componentStack)}})}toggleDebugTools(){this.atomStore.set(Cf,!this.atomStore.get(Cf))}_convertMaterializedNodePropsDataForTest(t){let n=Ja(this.atomStore.get,t,this.websiteContextForMaterialization),r=n.materializedChildNodeProps;return delete n.interactionHandlers,delete n.materializedChildNodeProps,delete n.transitionProps,"variableState"in n&&delete n.variableState,"modeContext"in n&&delete n.modeContext,{materializedNode:n,materializedChildNodeProps:r}}async _getSerializedMaterializedNodePropsArrayDataForTests(){this.atomStore.get(this.rootMaterializedNodePropsArrayAtom)||(this._rootsRuntimeAtomForTestsPromise=new Promise(i=>{this._resolveRootsRuntimeAtomForTests=i})),await this._rootsRuntimeAtomForTestsPromise;let t=this.atomStore.get(this.rootMaterializedNodePropsArrayAtom);ge(!!t&&t.length>0,"Root nodes not found");let n={},r=i=>{let s=this._convertMaterializedNodePropsDataForTest(i);n[s.materializedNode.id]=s.materializedNode,s.materializedChildNodeProps?.forEach(a=>r(a))};return{rootIds:t.map(i=>(r(i),this._convertMaterializedNodePropsDataForTest(i).materializedNode.id)),nodeByGuidMap:n}}listenForTestEvent(t){return new Promise(n=>{let r=o=>{let i=o.detail.name;t===i&&(window.removeEventListener("FigmaTestEvent",r),n(t))};window.addEventListener("FigmaTestEvent",r)})}setRenderOptions(t){let n=WN(t);Object.assign(this.materializedRenderOptions,n),this.atomStore.set(this.materializedRenderOptionsAtom,n)}handleReactError=(t,n={})=>{try{this.onReactError(t,n)}catch{}Me.reportError(t)}},eZ=class{onPopState;constructor(t){this.onPopState=t,window.addEventListener("popstate",n=>{let r=n.state;this.onPopState({...this.current,scrollY:r?.scrollY})}),history.replaceState({},"",this.href),t(this.current)}get current(){return{url:window.location.pathname,search:window.location.search}}get href(){let{url:t,search:n}=this.current;return RV(t,n)}push(t){history.replaceState({scrollY:window.scrollY},"",this.href),history.pushState({},"",RV(t.url||"/",t.search||""))}forward(){history.forward()}back(){history.back()}},RV=(e,t)=>e+t;export{sd as ActiveBreakpointContext,uN as ActiveBreakpointProvider,zj as AppearBehaviorPresetTransition,ON as BannerComponentType,Qo as BehaviorPresetEasingFunctions,Kj as BehaviorPresetScrollParallaxSpeed,Yj as BehaviorPresetStates,zw as BehaviorPresetTransition,yt as BehaviorType,gt as BlendMode,PP as CmsRichTextNodeDefaults,wP as CodeComponentNodeDefaults,BP as CodeFileNodeDefaults,kP as CodeInstanceNodeDefaults,FP as CodeLayerNodeDefaults,SP as ComponentNodeDefaults,RP as ComponentSetNodeDefaults,yo as ConsentType,vN as CookieConsentBanner,fd as CookieConsentContext,kJ as CornerRadiusShapeTraitsDefaults,QI as CornerTraitDefaults,A$ as DEFAULT_HISTORY_STATE,TN as DEFAULT_SITE_DESCRIPTION,_N as DEFAULT_SITE_TITLE,If as DefaultShapeTraitsDefaults,On as EasingType,Je as ExpressionFunction,PJ as FontVariantPosition,yP as FrameNodeDefaults,Ur as FrameTraitsDefaults,LP as GroupNodeDefaults,gf as HasBlendModeAndOpacityTraitDefaults,M3 as HasEffectsTraitDefaults,G3 as HasFramePropertiesTraitDefaults,hE as HasGeometryTraitDefaults,TE as HasLayoutTraitDefaults,OP as HasMaskTraitDefaults,NP as ImageNodeDefaults,DP as InstanceNodeDefaults,GJ as InteractionTraitDefaults,k3 as IsInAnimateTreeTraitDefaults,Cu as IsLayerTraitDefaults,DJ as KeyframeOperation,vJ as KeyframeValueType,hN as LOTTIEFILES_REGEX,Kn as LayoutConstraintHorizontal,Er as LayoutConstraintVertical,Da as LineTypes,jw as MARQUEE_PRESET_DEFAULT_PAUSE_ON_HOVER,jj as MARQUEE_PRESET_DEFAULT_PAUSE_ON_HOVER_VAR,Xw as MARQUEE_PRESET_DEFAULT_SPEED,Xj as MARQUEE_PRESET_DEFAULT_SPEED_VAR,Xh as RESET_STYLES_ID,vP as RectangleNodeDefaults,gP as RectangularShapeTraitsDefaults,Gl as RenderHooksContext,CP as RepeaterNodeDefaults,hP as ResponsiveTraitDefaults,UI as SITES_PREVIEW_GET_PAGE_ER
8271ROR_SANDBOX,BI as SITES_PREVIEW_GET_PAGE_ERROR_SNAPSHOT,SV as SitesRuntime,bP as SlotNodeDefaults,ee as SmartAnimateType,Sp as SnapshotContext,HN as SnapshotWebsiteProvider,Sf as SourceCodeTraitsDefaults,AP as SvgNodeDefaults,TP as TextDecoration,xP as TextNodeDefaults,mo as TransitionOverrideProp,IP as TypePropertiesTraitDefaults,GP as WebpageNodeDefaults,ld as WebsiteSettingsContext,fN as WebsiteSettingsProvider,MP as WidgetNodeDefaults,Fl as XAlignment,wl as YAlignment,OE as applyDefaultsToPrototype,aa as buildFontFace,j7 as createPropertySetters,$h as getFontWeight,Bh as getImageProp,Z9 as getMaterializedTreeForWebsite,lN as getPropertySetterNameMap,fo as guidToDOMId,Pu as isPaintGradient,YA as makeFramerMotionDefinition,Nf as parseBundle,OU as parseFontWeightFromStyleName,rS as parseNode,YJ as parseSchemaData,EN as resetCSS,VE as solidColor}; 8272/*! 8273 Copyright (c) 2018 Jed Watson. 8274 Licensed under the MIT License (MIT), see 8275 http://jedwatson.github.io/classnames 8276*/ 8277/*! 8278 * Bowser - a browser detector 8279 * https://github.com/ded/bowser 8280 * MIT License | (c) Dustin Diaz 2015 8281 */ 8282/** 8283 * @license React 8284 * react-dom.production.min.js 8285 * 8286 * Copyright (c) Facebook, Inc. and its affiliates. 8287 * 8288 * This source code is licensed under the MIT license found in the 8289 * LICENSE file in the root directory of this source tree. 8290 */ 8291/** 8292 * @license React 8293 * react-jsx-dev-runtime.production.min.js 8294 * 8295 * Copyright (c) Facebook, Inc. and its affiliates. 8296 * 8297 * This source code is licensed under the MIT license found in the 8298 * LICENSE file in the root directory of this source tree. 8299 */ 8300/** 8301 * @license React 8302 * react-jsx-runtime.production.min.js 8303 * 8304 * Copyright (c) Facebook, Inc. and its affiliates. 8305 * 8306 * This source code is licensed under the MIT license found in the 8307 * LICENSE file in the root directory of this source tree. 8308 */ 8309/** 8310 * @license React 8311 * react.production.min.js 8312 * 8313 * Copyright (c) Facebook, Inc. and its affiliates. 8314 * 8315 * This source code is licensed under the MIT license found in the 8316 * LICENSE file in the root directory of this source tree. 8317 */ 8318/** 8319 * @license React 8320 * scheduler.production.min.js 8321 * 8322 * Copyright (c) Facebook, Inc. and its affiliates. 8323 * 8324 * This source code is licensed under the MIT license found in the 8325 * LICENSE file in the root directory of this source tree. 8326 */ 8327/** 8328 * @license react-fast-marquee 8329 * 8330 * Adapted from https://github.com/justin-chu/react-fast-marquee/blob/master/src/components/Marquee.tsx 8331 * Copyright (c) 2020 justin-chu 8332 * MIT License 8333 */ 8334/** 8335 * Subset of the Tailwind Preflight CSS styles applied in Sites only, but not in 8336 * Make, as not all Sites will use Tailwind via Code Layers. 8337 * 8338 * TODO(@akern): Further align this so it is an exact subset of the Tailwind 8339 * Preflight CSS, because it isn't yet, and until it is, code layer styles may 8340 * not be applied correctly. 8341 * 8342 * @license Tailwind 8343 * https://github.com/tailwindlabs/tailwindcss/blob/v3.4.17/src/css/preflight.css 8344 * 8345 * Copyright (c) Tailwind Labs, Inc. 8346 * 8347 * Some of the source code in this file comes from the TailwindCSS project, which is licnesed under the MIT license 8348 * https://github.com/tailwindlabs/tailwindcss/blob/main/LICENSE 8349 */ 8350 8351// #version: ee1f9a125bdd3197b74d0777def90b0b8aa9d30a
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.