PageSourceSearch

https://atmabodhwellness.com/_next/static/chunks/4460-513b47ce8a541188.js

js atmabodhwellness.com collected 2026-10-04 03:10:11 UTC 324,889 bytes, 149 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[4460],{3983:e=>{var t="\ud800-\udfff",n="\\u2700-\\u27bf",r="a-z\\xdf-\\xf6\\xf8-\\xff",i="A-Z\\xc0-\\xd6\\xd8-\\xde",o="\\xac\\xb1\\xd7\\xf7\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf\\u2000-\\u206f \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",s="['’]",a="["+o+"]",l="["+r+"]",u="[^"+t+o+"\\d+"+n+r+i+"]",c="(?:\ud83c[\udde6-\uddff]){2}",d="[\ud800-\udbff][\udc00-\udfff]",h="["+i+"]",f="(?:"+l+"|"+u+")",p="(?:"+h+"|"+u+")",g="(?:"+s+"(?:d|ll|m|re|s|t|ve))?",m="(?:"+s+"(?:D|LL|M|RE|S|T|VE))?",y="(?:[\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff]|\ud83c[\udffb-\udfff])?",b="[\\ufe0e\\ufe0f]?",v="(?:\\u200d(?:"+["[^"+t+"]",c,d].join("|")+")"+b+y+")*",x="(?:"+["["+n+"]",c,d].join("|")+")"+(b+y+v),w=RegExp([h+"?"+l+"+"+g+"(?="+[a,h,"$"].join("|")+")",p+"+"+m+"(?="+[a,h+f,"$"].join("|")+")",h+"?"+f+"+"+g,h+"+"+m,"\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])|\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])|\\d+",x].join("|"),"g");e.exports=function(e){return e.match(w)||[]}},10883:(e,t,n)=>{var r=n(95918),i=n(57716),o=n(71624),s=n(32438);e.exports=function(e){return function(t){var n=i(t=s(t))?o(t):void 0,a=n?n[0]:t.charAt(0),l=n?r(n,1).join(""):t.slice(1);return a[e]()+l}}},11748:(e,t,n)=>{"use strict";var r,i,o=Object.create,s=Object.defineProperty,a=Object.getOwnPropertyDescriptor,l=Object.getOwnPropertyNames,u=Object.getPrototypeOf,c=Object.prototype.hasOwnProperty,d=(e,t,n,r)=>{if(t&&"object"==typeof t||"function"==typeof t)for(let i of l(t))c.call(e,i)||i===n||s(e,i,{get:()=>t[i],enumerable:!(r=a(t,i))||r.enumerable});return e},h={};((e,t)=>{for(var n in t)s(e,n,{get:t[n],enumerable:!0})})(h,{$dispatcherGuard:()=>C,$makeReadOnly:()=>A,$reset:()=>E,$structuralCheck:()=>j,c:()=>v,clearRenderCounterRegistry:()=>P,renderCounterRegistry:()=>T,useRenderCounter:()=>R}),e.exports=d(s({},"__esModule",{value:!0}),h);var f=((e,t,n)=>(n=null!=e?o(u(e)):{},d(!t&&e&&e.__esModule?n:s(n,"default",{value:e,enumerable:!0}),e)))(n(12115)),{useRef:p,useEffect:g,isValidElement:m}=f,y=null!=(r=f.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE)?r:f.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,b=Symbol.for("react.memo_cache_sentinel"),v="function"==typeof(null==(i=f.__COMPILER_RUNTIME)?void 0:i.c)?f.__COMPILER_RUNTIME.c:function(e){return f.useMemo(()=>{let t=Array(e);for(let n=0;n<e;n++)t[n]=b;return t[b]=!0,t},[])},x={};["readContext","useCallback","useContext","useEffect","useImperativeHandle","useInsertionEffect","useLayoutEffect","useMemo","useReducer","useRef","useState","useDebugValue","useDeferredValue","useTransition","useMutableSource","useSyncExternalStore","useId","unstable_isNewReconciler","getCacheSignal","getCacheForType","useCacheRefresh"].forEach(e=>{x[e]=()=>{throw Error(`[React] Unexpected React hook call (${e}) from a React compiled function. Check that all hooks are called directly and named according to convention ('use[A-Z]') `)}});var w=null;function S(e){return y.ReactCurrentDispatcher.current=e,y.ReactCurrentDispatcher.current}x.useMemoCache=e=>{if(null!=w)return w.useMemoCache(e);throw Error("React Compiler internal invariant violation: unexpected null dispatcher")};var k=[];function C(e){let t=y.ReactCurrentDispatcher.current;if(0===e){if(k.push(t),1===k.length&&(w=t),t===x)throw Error("[React] Unexpected call to custom hook or component from a React compiled function. Check that (1) all hooks are called directly and named according to convention ('use[A-Z]') and (2) components are returned as JSX instead of being directly invoked.");S(x)}else if(1===e){let e=k.pop();if(null==e)throw Error("React Compiler internal error: unexpected null in guard stack");0===k.length&&(w=null),S(e)}else if(2===e)k.push(t),S(w);else if(3===e){let e=k.pop();if(null==e)throw Error("React Compiler internal error: unexpected null in guard stack");S(e)}else throw Error("React Compiler internal error: unreachable block"+e)}function E(e){for(let t=0;t<e.length;t++)e[t]=b}function A(){throw Error("TODO: implement $makeReadOnly in react-compiler-runtime")}var T=new Map;
1function P(){for(let e of T.values())e.forEach(e=>{e.count=0})}function R(e){let t=p(null);null!=t.current&&(t.current.count+=1),g(()=>{if(null==t.current){let n,r={count:0};null==(n=T.get(e))&&(n=new Set,T.set(e,n)),n.add(r),t.current=r}return()=>{null!==t.current&&function(e,t){let n=T.get(e);null!=n&&n.delete(t)}(e,t.current)}})}var M=new Set;function j(e,t,n,r,i,o){function s(e,t,s,a){let l=`${r}:${o} [${i}] ${n}${s} changed from ${e} to ${t} at depth ${a}`;M.has(l)||(M.add(l),console.error(l))}!function e(t,n,r,i){if(!(i>2)){if(t!==n)if(typeof t!=typeof n)s(`type ${typeof t}`,`type ${typeof n}`,r,i);else if("object"==typeof t){let o=Array.isArray(t),a=Array.isArray(n);if(null===t&&null!==n)s("null",`type ${typeof n}`,r,i);else if(null===n)s(`type ${typeof t}`,"null",r,i);else if(t instanceof Map)if(n instanceof Map)if(t.size!==n.size)s(`Map instance with size ${t.size}`,`Map instance with size ${n.size}`,r,i);else for(let[o,a]of t)n.has(o)?e(a,n.get(o),`${r}.get(${o})`,i+1):s(`Map instance with key ${o}`,`Map instance without key ${o}`,r,i);else s("Map instance","other value",r,i);else if(n instanceof Map)s("other value","Map instance",r,i);else if(t instanceof Set)if(n instanceof Set)if(t.size!==n.size)s(`Set instance with size ${t.size}`,`Set instance with size ${n.size}`,r,i);else for(let e of n)t.has(e)||s(`Set instance without element ${e}`,`Set instance with element ${e}`,r,i);else s("Set instance","other value",r,i);else if(n instanceof Set)s("other value","Set instance",r,i);else if(o||a)if(o!==a)s(`type ${o?"array":"object"}`,`type ${a?"array":"object"}`,r,i);else if(t.length!==n.length)s(`array with length ${t.length}`,`array with length ${n.length}`,r,i);else for(let o=0;o<t.length;o++)e(t[o],n[o],`${r}[${o}]`,i+1);else if(m(t)||m(n))m(t)!==m(n)?s(`type ${m(t)?"React element":"object"}`,`type ${m(n)?"React element":"object"}`,r,i):t.type!==n.type?s(`React element of type ${t.type}`,`React element of type ${n.type}`,r,i):e(t.props,n.props,`[props of ${r}]`,i+1);else{for(let e in n)e in t||s(`object without key ${e}`,`object with key ${e}`,r,i);for(let o in t)o in n?e(t[o],n[o],`${r}.${o}`,i+1):s(`object with key ${o}`,`object without key ${o}`,r,i)}}else{if("function"==typeof t)return;isNaN(t)||isNaN(n)?isNaN(t)!==isNaN(n)&&s(`${isNaN(t)?"NaN":"non-NaN value"}`,`${isNaN(n)?"NaN":"non-NaN value"}`,r,i):t!==n&&s(t,n,r,i)}}}(e,t,"",0)}},13456:e=>{var t=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/;e.exports=function(e){return t.test(e)}},13862:(e,t,n)=>{"use strict";n.d(t,{$:()=>p});var r,i=n(71450),o=n(33421),s=1,a={};function l(e){return e in a&&(delete a[e],!0)}var u={setImmediate:function(e){var t=s++;return a[t]=!0,r||(r=Promise.resolve()),r.then(function(){return l(t)&&e()}),t},clearImmediate:function(e){l(e)}},c=u.setImmediate,d=u.clearImmediate,h={setImmediate:function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var n=h.delegate;return((null==n?void 0:n.setImmediate)||c).apply(void 0,(0,i.fX)([],(0,i.zs)(e)))},clearImmediate:function(e){var t=h.delegate;return((null==t?void 0:t.clearImmediate)||d)(e)},delegate:void 0},f=function(e){function t(t,n){var r=e.call(this,t,n)||this;return r.scheduler=t,r.work=n,r}return(0,i.C6)(t,e),t.prototype.requestAsyncId=function(t,n,r){return(void 0===r&&(r=0),null!==r&&r>0)?e.prototype.requestAsyncId.call(this,t,n,r):(t.actions.push(this),t._scheduled||(t._scheduled=h.setImmediate(t.flush.bind(t,void 0))))},t.prototype.recycleAsyncId=function(t,n,r){if(void 0===r&&(r=0),null!=r?r>0:this.delay>0)return e.prototype.recycleAsyncId.call(this,t,n,r);var i,o=t.actions;null!=n&&(null==(i=o[o.length-1])?void 0:i.id)!==n&&(h.clearImmediate(n),t._scheduled===n&&(t._scheduled=void 0))},t}(o.R),p=new(function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return(0,i.C6)(t,e),t.prototype.flush=function(e){this._active=!0;var t,n=this._scheduled;this._scheduled=void 0;var r=this.actions;e=e||r.shift();do if(t=e.execute(e.state,e.delay))break;while((e=r[0])&&e.id===n&&r.shift());if(this._active=!1,t){for(;(e=r[0])&&e.id===n&&r.shift();)e.unsubscribe();throw t}},t}(n(44289).q))(f)}
1,15374:(e,t,n)=>{"use strict";n.d(t,{Cv:()=>r,D9:()=>d,ON:()=>s,OZ:()=>f,Ql:()=>o,V0:()=>i,Zp:()=>u,wL:()=>h,wm:()=>a,wv:()=>c,yW:()=>p,z1:()=>l});let r=["gray","blue","purple","magenta","red","orange","yellow","green","cyan"],i=["50","100","200","300","400","500","600","700","800","900","950"],o={title:"Black",hex:"#0d0e12"},s={title:"White",hex:"#ffffff"},a={50:{title:"Gray 50",hex:"#f6f6f8"},100:{title:"Gray 100",hex:"#eeeef1"},200:{title:"Gray 200",hex:"#e3e4e8"},300:{title:"Gray 300",hex:"#bbbdc9"},400:{title:"Gray 400",hex:"#9499ad"},500:{title:"Gray 500",hex:"#727892"},600:{title:"Gray 600",hex:"#515870"},700:{title:"Gray 700",hex:"#383d51"},800:{title:"Gray 800",hex:"#252837"},900:{title:"Gray 900",hex:"#1b1d27"},950:{title:"Gray 950",hex:"#13141b"}},l={50:{title:"Blue 50",hex:"#f5f8ff"},100:{title:"Blue 100",hex:"#e5edff"},200:{title:"Blue 200",hex:"#dbe5ff"},300:{title:"Blue 300",hex:"#a8bfff"},400:{title:"Blue 400",hex:"#7595ff"},500:{title:"Blue 500",hex:"#556bfc"},600:{title:"Blue 600",hex:"#4043e7"},700:{title:"Blue 700",hex:"#2927aa"},800:{title:"Blue 800",hex:"#192457"},900:{title:"Blue 900",hex:"#161a41"},950:{title:"Blue 950",hex:"#101228"}},u={50:{title:"Purple 50",hex:"#f8f5ff"},100:{title:"Purple 100",hex:"#f1ebff"},200:{title:"Purple 200",hex:"#ece1fe"},300:{title:"Purple 300",hex:"#ccb1fc"},400:{title:"Purple 400",hex:"#b087f7"},500:{title:"Purple 500",hex:"#8f57ef"},600:{title:"Purple 600",hex:"#721fe5"},700:{title:"Purple 700",hex:"#4c1a9e"},800:{title:"Purple 800",hex:"#2f1862"},900:{title:"Purple 900",hex:"#23173f"},950:{title:"Purple 950",hex:"#181128"}},c={50:{title:"Red 50",hex:"#fff6f5"},100:{title:"Red 100",hex:"#ffe7e5"},200:{title:"Red 200",hex:"#ffdedc"},300:{title:"Red 300",hex:"#fdada5"},400:{title:"Red 400",hex:"#f77769"},500:{title:"Red 500",hex:"#ef4434"},600:{title:"Red 600",hex:"#cc2819"},700:{title:"Red 700",hex:"#8b2018"},800:{title:"Red 800",hex:"#4d1714"},900:{title:"Red 900",hex:"#321615"},950:{title:"Red 950",hex:"#1e1011"}},d={50:{title:"Yellow 50",hex:"#fefae1"},100:{title:"Yellow 100",hex:"#fcf3bb"},200:{title:"Yellow 200",hex:"#f9e994"},300:{title:"Yellow 300",hex:"#f7d455"},400:{title:"Yellow 400",hex:"#f9bc15"},500:{title:"Yellow 500",hex:"#d28a04"},600:{title:"Yellow 600",hex:"#965908"},700:{title:"Yellow 700",hex:"#653a0b"},800:{title:"Yellow 800",hex:"#3b220c"},900:{title:"Yellow 900",hex:"#271a11"},950:{title:"Yellow 950",hex:"#181410"}},h={50:{title:"Green 50",hex:"#e7fef5"},100:{title:"Green 100",hex:"#c5fce8"},200:{title:"Green 200",hex:"#a9f9dc"},300:{title:"Green 300",hex:"#59f3ba"},400:{title:"Green 400",hex:"#0ff0a1"},500:{title:"Green 500",hex:"#04b97a"},600:{title:"Green 600",hex:"#01794f"},700:{title:"Green 700",hex:"#015133"},800:{title:"Green 800",hex:"#023120"},900:{title:"Green 900",hex:"#06231a"},950:{title:"Green 950",hex:"#071715"}},f={gray:a,blue:l,purple:u,magenta:{50:{title:"Magenta 50",hex:"#fef6f9"},100:{title:"Magenta 100",hex:"#fde8ef"},200:{title:"Magenta 200",hex:"#fcdee9"},300:{title:"Magenta 300",hex:"#f7abc5"},400:{title:"Magenta 400",hex:"#f0709b"},500:{title:"Magenta 500",hex:"#e72767"},600:{title:"Magenta 600",hex:"#b11651"},700:{title:"Magenta 700",hex:"#7c1342"},800:{title:"Magenta 800",hex:"#4b1130"},900:{title:"Magenta 900",hex:"#341325"},950:{title:"Magenta 950",hex:"#1f0f14"}},red:c,orange:{50:{title:"Orange 50",hex:"#fff7f0"},100:{title:"Orange 100",hex:"#ffeadb"},200:{title:"Orange 200",hex:"#ffddc7"},300:{title:"Orange 300",hex:"#ffb685"},400:{title:"Orange 400",hex:"#ff8e42"},500:{title:"Orange 500",hex:"#fa6400"},600:{title:"Orange 600",hex:"#b14802"},700:{title:"Orange 700",hex:"#7c3404"},800:{title:"Orange 800",hex:"#461e07"},900:{title:"Orange 900",hex:"#32160b"},950:{title:"Orange 950",hex:"#21120d"}},yellow:d,green:h,cyan:{50:{title:"Cyan 50",hex:"#e7fefe"},100:{title:"Cyan 100",hex:"#c5fcfc"},200:{title:"Cyan 200",hex:"#96f8f8"},300:{title:"Cyan 300",hex:"#62efef"},400:{title:"Cyan 400",hex:"#18e2e2"},500:{title:"Cyan 500",hex:"#04b8be"},600:{title:"Cyan 600",hex:"#037782"},700:{title:"Cyan 700",hex:"#024950"},800:{title:"Cyan 800",hex:"#042f34"},900:{title:"Cyan 900",hex:"#072227"},950:{title:"Cyan 950",hex:"#0d181c"}}},p={black:o,white:s,...f}},16001:(e,t,n)=>{"use strict";let r;n.d(t,{P:()=>ox});let i=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],o=new Set(i),s=(e,t,n)=>n>t?t:n<e?e:n,a={test:e=>"number"==typeof e,parse:parseFloat,transform:e=>e},l={...a,transform:e=>s(0,1,e)},u={...a,default:1},c=e=>Math.round(1e5*e)/1e5,d=/-?(?:\d+(?:\.\d+)?|\.\d+)/gu,h=/^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu,f=(e,t)=>n=>!!("string"==typeof n&&h.test(n)&&n.startsWith(e)||t&&null!=n&&Object.prototype.hasOwnProperty.call(n,t)),p=(e,t,n)=>r=>{if("string"!=typeof r)return r;let[i,o,s,a]=r.match(d);return{[e]:parseFloat(i),[t]:parseFloat(o),[n]:parseFloat(s),alpha:void 0!==a?parseFloat(a):1}},g={...a,transform:e=>Math.round(s(0,255,e))},m={test:f("rgb","red"),parse:p("red","green","blue"),transform:({red:e,green:t,blue:n,alpha:r=1})=>"rgba("+g.transform(e)+", "+g.transform(t)+", "+g.transform(n)+", "+c(l.transform(r))+")"},y={test:f("#"),parse:function(e){let t="",n="",r="",i="";return e.length>5?(t=e.substring(1,3),n=e.substring(3,5),r=e.substring(5,7),i=e.substring(7,9)):(t=e.substring(1,2),n=e.substring(2,3),r=e.substring(3,4),i=e.substring(4,5),t+=t,n+=n,r+=r,i+=i),{red:parseInt(t,16),green:parseInt(n,16),blue:parseInt(r,16),alph
1a:i?parseInt(i,16)/255:1}},transform:m.transform},b=e=>({test:t=>"string"==typeof t&&t.endsWith(e)&&1===t.split(" ").length,parse:parseFloat,transform:t=>`${t}${e}`}),v=b("deg"),x=b("%"),w=b("px"),S=b("vh"),k=b("vw"),C={...x,parse:e=>x.parse(e)/100,transform:e=>x.transform(100*e)},E={test:f("hsl","hue"),parse:p("hue","saturation","lightness"),transform:({hue:e,saturation:t,lightness:n,alpha:r=1})=>"hsla("+Math.round(e)+", "+x.transform(c(t))+", "+x.transform(c(n))+", "+c(l.transform(r))+")"},A={test:e=>m.test(e)||y.test(e)||E.test(e),parse:e=>m.test(e)?m.parse(e):E.test(e)?E.parse(e):y.parse(e),transform:e=>"string"==typeof e?e:e.hasOwnProperty("red")?m.transform(e):E.transform(e),getAnimatableNone:e=>{let t=A.parse(e);return t.alpha=0,A.transform(t)}},T=/(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu,P="number",R="color",M=/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 j(e){let t=e.toString(),n=[],r={color:[],number:[],var:[]},i=[],o=0,s=t.replace(M,e=>(A.test(e)?(r.color.push(o),i.push(R),n.push(A.parse(e))):e.startsWith("var(")?(r.var.push(o),i.push("var"),n.push(e)):(r.number.push(o),i.push(P),n.push(parseFloat(e))),++o,"${}")).split("${}");return{values:n,split:s,indexes:r,types:i}}function I(e){return j(e).values}function O(e){let{split:t,types:n}=j(e),r=t.length;return e=>{let i="";for(let o=0;o<r;o++)if(i+=t[o],void 0!==e[o]){let t=n[o];t===P?i+=c(e[o]):t===R?i+=A.transform(e[o]):i+=e[o]}return i}}let _=e=>"number"==typeof e?0:A.test(e)?A.getAnimatableNone(e):e,D={test:function(e){return isNaN(e)&&"string"==typeof e&&(e.match(d)?.length||0)+(e.match(T)?.length||0)>0},parse:I,createTransformer:O,getAnimatableNone:function(e){let t=I(e);return O(e)(t.map(_))}},L=new Set(["brightness","contrast","saturate","opacity"]);function $(e){let[t,n]=e.slice(0,-1).split("(");if("drop-shadow"===t)return e;let[r]=n.match(d)||[];if(!r)return e;let i=n.replace(r,""),o=+!!L.has(t);return r!==n&&(o*=100),t+"("+o+i+")"}let V=/\b([a-z-]*)\(.*?\)/gu,N={...D,getAnimatableNone:e=>{let t=e.match(V);return t?t.map($).join(" "):e}},z={...a,transform:Math.round},F={borderWidth:w,borderTopWidth:w,borderRightWidth:w,borderBottomWidth:w,borderLeftWidth:w,borderRadius:w,borderTopLeftRadius:w,borderTopRightRadius:w,borderBottomRightRadius:w,borderBottomLeftRadius:w,width:w,maxWidth:w,height:w,maxHeight:w,top:w,right:w,bottom:w,left:w,inset:w,insetBlock:w,insetBlockStart:w,insetBlockEnd:w,insetInline:w,insetInlineStart:w,insetInlineEnd:w,padding:w,paddingTop:w,paddingRight:w,paddingBottom:w,paddingLeft:w,paddingBlock:w,paddingBlockStart:w,paddingBlockEnd:w,paddingInline:w,paddingInlineStart:w,paddingInlineEnd:w,margin:w,marginTop:w,marginRight:w,marginBottom:w,marginLeft:w,marginBlock:w,marginBlockStart:w,marginBlockEnd:w,marginInline:w,marginInlineStart:w,marginInlineEnd:w,fontSize:w,backgroundPositionX:w,backgroundPositionY:w,rotate:v,rotateX:v,rotateY:v,rotateZ:v,scale:u,scaleX:u,scaleY:u,scaleZ:u,skew:v,skewX:v,skewY:v,distance:w,translateX:w,translateY:w,translateZ:w,x:w,y:w,z:w,perspective:w,transformPerspective:w,opacity:l,originX:C,originY:C,originZ:w,zIndex:z,fillOpacity:l,strokeOpacity:l,numOctaves:z},B={...F,color:A,backgroundColor:A,outlineColor:A,fill:A,stroke:A,borderColor:A,borderTopColor:A,borderRightColor:A,borderBottomColor:A,borderLeftColor:A,filter:N,WebkitFilter:N},H=e=>B[e],U=()=>({translate:0,scale:1,origin:0,originPoint:0}),W=()=>({x:U(),y:U()}),Y=()=>({min:0,max:0}),G=()=>({x:Y(),y:Y()}),X=e=>!!(e&&e.getVelocity),K=new Set(["width","height","top","left","right","bottom",...i]),q=e=>t=>t.test(e),Z=[a,w,x,v,k,S,{test:e=>"auto"===e,parse:e=>e}],J=e=>Z.find(q(e));n(87358);let Q=()=>{},ee=()=>{},et=e=>/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(e),en=e=>t=>"string"==typeof t&&t.startsWith(e),er=en("--"),ei=en("var(--"),eo=e=>!!ei(e)&&es.test(e.split("/*")[0].trim()),es=/var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu;function ea(e){return"string"==typeof e&&e.split("/*")[0].includes("var(--")}let el=/^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u,eu=e=>180*e/Math.PI,ec=e=>eh(eu(Math.atan2(e[1],e[0]))),ed={x:4,y:5,translateX:4,translateY:5,scaleX:0,scaleY:3,scale:e=>(Math.abs(e[0])+Math.abs(e[3]))/2,rotate:ec,rotateZ:ec,skewX:e=>
1eu(Math.atan(e[1])),skewY:e=>eu(Math.atan(e[2])),skew:e=>(Math.abs(e[1])+Math.abs(e[2]))/2},eh=e=>((e%=360)<0&&(e+=360),e),ef=e=>Math.sqrt(e[0]*e[0]+e[1]*e[1]),ep=e=>Math.sqrt(e[4]*e[4]+e[5]*e[5]),eg={x:12,y:13,z:14,translateX:12,translateY:13,translateZ:14,scaleX:ef,scaleY:ep,scale:e=>(ef(e)+ep(e))/2,rotateX:e=>eh(eu(Math.atan2(e[6],e[5]))),rotateY:e=>eh(eu(Math.atan2(-e[2],e[0]))),rotateZ:ec,rotate:ec,skewX:e=>eu(Math.atan(e[4])),skewY:e=>eu(Math.atan(e[1])),skew:e=>(Math.abs(e[1])+Math.abs(e[4]))/2};function em(e){return+!!e.includes("scale")}function ey(e,t){let n,r;if(!e||"none"===e)return em(t);let i=e.match(/^matrix3d\(([-\d.e\s,]+)\)$/u);if(i)n=eg,r=i;else{let t=e.match(/^matrix\(([-\d.e\s,]+)\)$/u);n=ed,r=t}if(!r)return em(t);let o=n[t],s=r[1].split(",").map(eb);return"function"==typeof o?o(s):s[o]}function eb(e){return parseFloat(e.trim())}let ev=e=>e===a||e===w,ex=new Set(["x","y","z"]),ew=i.filter(e=>!ex.has(e)),eS={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:(e,{transform:t})=>ey(t,"x"),y:(e,{transform:t})=>ey(t,"y")};eS.translateX=eS.x,eS.translateY=eS.y;let ek=e=>e,eC={},eE=["setup","read","resolveKeyframes","preUpdate","update","preRender","render","postRender"],eA={value:null,addProjectionMetrics:null};function eT(e,t){let n=!1,r=!0,i={delta:0,timestamp:0,isProcessing:!1},o=()=>n=!0,s=eE.reduce((e,n)=>(e[n]=function(e,t){let n=new Set,r=new Set,i=!1,o=!1,s=new WeakSet,a={delta:0,timestamp:0,isProcessing:!1},l=0;function u(t){s.has(t)&&(c.schedule(t),e()),l++,t(a)}let c={schedule:(e,t=!1,o=!1)=>{let a=o&&i?n:r;return t&&s.add(e),a.has(e)||a.add(e),e},cancel:e=>{r.delete(e),s.delete(e)},process:e=>{if(a=e,i){o=!0;return}i=!0,[n,r]=[r,n],n.forEach(u),t&&eA.value&&eA.value.frameloop[t].push(l),l=0,n.clear(),i=!1,o&&(o=!1,c.process(e))}};return c}(o,t?n:void 0),e),{}),{setup:a,read:l,resolveKeyframes:u,preUpdate:c,update:d,preRender:h,render:f,postRender:p}=s,g=()=>{let o=eC.useManualTiming?i.timestamp:performance.now();n=!1,eC.useManualTiming||(i.delta=r?1e3/60:Math.max(Math.min(o-i.timestamp,40),1)),i.timestamp=o,i.isProcessing=!0,a.process(i),l.process(i),u.process(i),c.process(i),d.process(i),h.process(i),f.process(i),p.process(i),i.isProcessing=!1,n&&t&&(r=!1,e(g))};return{schedule:eE.reduce((t,o)=>{let a=s[o];return t[o]=(t,o=!1,s=!1)=>(!n&&(n=!0,r=!0,i.isProcessing||e(g)),a.schedule(t,o,s)),t},{}),cancel:e=>{for(let t=0;t<eE.length;t++)s[eE[t]].cancel(e)},state:i,steps:s}}let{schedule:eP,cancel:eR,state:eM,steps:ej}=eT("undefined"!=typeof requestAnimationFrame?requestAnimationFrame:ek,!0),eI=new Set,eO=!1,e_=!1,eD=!1;function eL(){if(e_){let e=Array.from(eI).filter(e=>e.needsMeasurement),t=new Set(e.map(e=>e.element)),n=new Map;t.forEach(e=>{let t=function(e){let t=[];return ew.forEach(n=>{let r=e.getValue(n);void 0!==r&&(t.push([n,r.get()]),r.set(+!!n.startsWith("scale")))}),t}(e);t.length&&(n.set(e,t),e.render())}),e.forEach(e=>e.measureInitialState()),t.forEach(e=>{e.render();let t=n.get(e);t&&t.forEach(([t,n])=>{e.getValue(t)?.set(n)})}),e.forEach(e=>e.measureEndState()),e.forEach(e=>{void 0!==e.suspendedScrollY&&window.scrollTo(0,e.suspendedScrollY)})}e_=!1,eO=!1,eI.forEach(e=>e.complete(eD)),eI.clear()}function e$(){eI.forEach(e=>{e.readKeyframes(),e.needsMeasurement&&(e_=!0)})}class eV{constructor(e,t,n,r,i,o=!1){this.state="pending",this.isAsync=!1,this.needsMeasurement=!1,this.unresolvedKeyframes=[...e],this.onComplete=t,this.name=n,this.motionValue=r,this.element=i,this.isAsync=o}scheduleResolve(){this.state="scheduled",this.isAsync?(eI.add(this),eO||(eO=!0,eP.read(e$),eP.resolveKeyframes(eL))):(this.readKeyframes(),this.complete())}readKeyframes(){let{unresolvedKeyframes:e,name:t,element:n,motionValue:r}=this;if(null===e[0]){let i=r?.get(),o=e[e.length-1];if(void 0!==i)e[0]=i;else if(n&&t){let r=n.readValue(t,o);null!=r&&(e[0]=r)}void 0===e[0]&&(e[0]=o),r&&void 0===i&&r.set(e[0])}for(let t=1;t<e.length;t++)e[t]??(e[t]=e[t-1])}setFinalKeyframe(){}measureInitialState(){}renderEndStyles(){}measureEndState(){}complete(e=!1){this.state="complete",this.onComplete(this.unresolvedKeyframes,this.finalKeyframe,e),eI.delete(this)}cancel(){"scheduled"===this.state&&(eI.delete(this),this.state="pending")}resume(){"pending"===this.state&&this.scheduleResolve()}}let eN=e=>/^0[^.\s]+$/u.test(e);function ez(e,t){let n=H(e);return n!==N&&(n=D),n.getAnimatableNone?n.getAnimatableNone(t):void 0}
1let eF=new Set(["auto","none","0"]);class eB extends eV{constructor(e,t,n,r,i){super(e,t,n,r,i,!0)}readKeyframes(){let{unresolvedKeyframes:e,element:t,name:n}=this;if(!t||!t.current)return;super.readKeyframes();for(let n=0;n<e.length;n++){let r=e[n];if("string"==typeof r&&eo(r=r.trim())){let i=function e(t,n,r=1){ee(r<=4,`Max CSS variable fallback depth detected in property "${t}". This may indicate a circular fallback dependency.`,"max-css-var-depth");let[i,o]=function(e){let t=el.exec(e);if(!t)return[,];let[,n,r,i]=t;return[`--${n??r}`,i]}(t);if(!i)return;let s=window.getComputedStyle(n).getPropertyValue(i);if(s){let e=s.trim();return et(e)?parseFloat(e):e}return eo(o)?e(o,n,r+1):o}(r,t.current);void 0!==i&&(e[n]=i),n===e.length-1&&(this.finalKeyframe=r)}}if(this.resolveNoneKeyframes(),!K.has(n)||2!==e.length)return;let[r,i]=e,o=J(r),s=J(i);if(ea(r)!==ea(i)&&eS[n]){this.needsMeasurement=!0;return}if(o!==s)if(ev(o)&&ev(s))for(let t=0;t<e.length;t++){let n=e[t];"string"==typeof n&&(e[t]=parseFloat(n))}else eS[n]&&(this.needsMeasurement=!0)}resolveNoneKeyframes(){let{unresolvedKeyframes:e,name:t}=this,n=[];for(let t=0;t<e.length;t++){var r;(null===e[t]||("number"==typeof(r=e[t])?0===r:null===r||"none"===r||"0"===r||eN(r)))&&n.push(t)}n.length&&function(e,t,n){let r,i=0;for(;i<e.length&&!r;){let t=e[i];"string"==typeof t&&!eF.has(t)&&j(t).values.length&&(r=e[i]),i++}if(r&&n)for(let i of t)e[i]=ez(n,r)}(e,n,t)}measureInitialState(){let{element:e,unresolvedKeyframes:t,name:n}=this;if(!e||!e.current)return;"height"===n&&(this.suspendedScrollY=window.pageYOffset),this.measuredOrigin=eS[n](e.measureViewportBox(),window.getComputedStyle(e.current)),t[0]=this.measuredOrigin;let r=t[t.length-1];void 0!==r&&e.getValue(n,r).jump(r,!1)}measureEndState(){let{element:e,name:t,unresolvedKeyframes:n}=this;if(!e||!e.current)return;let r=e.getValue(t);r&&r.jump(this.measuredOrigin,!1);let i=n.length-1,o=n[i];n[i]=eS[t](e.measureViewportBox(),window.getComputedStyle(e.current)),null!==o&&void 0===this.finalKeyframe&&(this.finalKeyframe=o),this.removedTransforms?.length&&this.removedTransforms.forEac
1h(([t,n])=>{e.getValue(t).set(n)}),this.resolveNoneKeyframes()}}function eH(e,t){-1===e.indexOf(t)&&e.push(t)}function eU(e,t){let n=e.indexOf(t);n>-1&&e.splice(n,1)}class eW{constructor(){this.subscriptions=[]}add(e){return eH(this.subscriptions,e),()=>eU(this.subscriptions,e)}notify(e,t,n){let r=this.subscriptions.length;if(r)if(1===r)this.subscriptions[0](e,t,n);else for(let i=0;i<r;i++){let r=this.subscriptions[i];r&&r(e,t,n)}}getSize(){return this.subscriptions.length}clear(){this.subscriptions.length=0}}let{schedule:eY}=eT(queueMicrotask,!1);function eG(){r=void 0}let eX={now:()=>(void 0===r&&eX.set(eM.isProcessing||eC.useManualTiming?eM.timestamp:performance.now()),r),set:e=>{r=e,queueMicrotask(eG)}},eK={current:void 0};class eq{constructor(e,t={}){this.canTrackVelocity=null,this.events={},this.updateAndNotify=e=>{let t=eX.now();if(this.updatedAt!==t&&this.setPrevFrameValue(),this.prev=this.current,this.setCurrent(e),this.current!==this.prev&&(this.events.change?.notify(this.current),this.dependents))for(let e of this.dependents)e.dirty()},this.hasAnimated=!1,this.setCurrent(e),this.owner=t.owner}setCurrent(e){this.current=e,this.updatedAt=eX.now(),null===this.canTrackVelocity&&void 0!==e&&(this.canTrackVelocity=!isNaN(parseFloat(this.current)))}setPrevFrameValue(e=this.current){this.prevFrameValue=e,this.prevUpdatedAt=this.updatedAt}onChange(e){return this.on("change",e)}on(e,t){this.events[e]||(this.events[e]=new eW);let n=this.events[e].add(t);return"change"===e?()=>{n(),eP.read(()=>{this.events.change.getSize()||this.stop()})}:n}clearListeners(){for(let e in this.events)this.events[e].clear()}attach(e,t){this.passiveEffect=e,this.stopPassiveEffect=t}set(e){this.passiveEffect?this.passiveEffect(e,this.updateAndNotify):this.updateAndNotify(e)}setWithVelocity(e,t,n){this.set(t),this.prev=void 0,this.prevFrameValue=e,this.prevUpdatedAt=this.updatedAt-n}jump(e,t=!0){this.updateAndNotify(e),this.prev=e,this.prevUpdatedAt=this.prevFrameValue=void 0,t&&this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}dirty(){this.events.change?.notify(this.current)}addDependent(e){this.dependents||(this.dependents=new Set),this.dependents.add(e)}removeDependent(e){this.dependents&&this.dependents.delete(e)}get(){return eK.current&&eK.current.push(this),this.current}getPrevious(){return this.prev}getVelocity(){var e;let t=eX.now();if(!this.canTrackVelocity||void 0===this.prevFrameValue||t-this.updatedAt>30)return 0;let n=Math.min(this.updatedAt-this.prevUpdatedAt,30);return e=parseFloat(this.current)-parseFloat(this.prevFrameValue),n?1e3/n*e:0}start(e){return this.stop(),new Promise(t=>{this.hasAnimated=!0,this.animation=e(t),this.events.animationStart&&this.events.animationStart.notify()}).then(()=>{this.events.animationComplete&&this.events.animationComplete.notify(),this.clearAnimation()})}stop(){this.animation&&(this.animation.stop(),this.events.animationCancel&&this.events.animationCancel.notify()),this.clearAnimation()}isAnimating(){return!!this.animation}clearAnimation(){delete this.animation}destroy(){this.dependents?.clear(),this.events.destroy?.notify(),this.clearListeners(),this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}}function eZ(e,t){return new eq(e,t)}let eJ=[...Z,A,D],eQ={current:null},e0={current:!1},e1="undefined"!=typeof window,e2=new WeakMap;function e5(e){return null!==e&&"object"==typeof e&&"function"==typeof e.start}function e3(e){return"string"==typeof e||Array.isArray(e)}let e4=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],e6=["initial",...e4];function e8(e){return e5(e.animate)||e6.some(t=>e3(e[t]))}function e9(e){return!!(e8(e)||e.variants)}function e7(e){let t=[{},{}];return e?.values.forEach((e,n)=>{t[0][n]=e.get(),t[1][n]=e.getVelocity()}),t}function te(e,t,n,r){if("function"==typeof t){let[i,o]=e7(r);t=t(void 0!==n?n:e.custom,i,o)}if("string"==typeof t&&(t=e.variants&&e.variants[t]),"function"==typeof t){let[i,o]=e7(r);t=t(void 0!==n?n:e.custom,i,o)}return t}let tt=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"],tn={};class tr{scrapeMotionValuesFromProps(e,t,n){return{}}constructor({parent:e,props:t,presenceContext:n,reducedMotionConfig:r,blockInitialAnimation:i,visualState:o},s={}){this.current=null,this.children=new Set,this.isVariantNode=!1,this.isControllingVariants=!1,this.shouldReduceMotion=null,this.values=new Map,this.KeyframeResolver=eV,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 e=eX.now();this.renderScheduledAt<e&&(this.renderScheduledAt=e,eP.render(this.render,!1,!0))};let{latestValues:a,renderState:l}=o;this.latestValues=a,this.baseTarget={...a},this.initialValues=t.initial?{...a}:{},this.renderState=l,this.parent=e,this.props=t,this.presenceContext=n,this.depth=e?e.depth+1:0,this.reducedMotionConfig=r,this.options=s,this.blockInitialAnimation=!!i,this.isControllingVariants=e8(t),this.isVariantNode=e9(t),this.isVariantNode&&(this.variantChildren=new Set),this.manuallyAnimateOnMount=!!(e&&e.current);let{willChange:u,...c}=this.scrapeMotionValuesFromProps(t,{},this);for(let e in c){let t=c[e];void 0!==a[e]&&X(t)&&t.set(a[e])}}mount(e){this.current=e,e2.set(e,this),this.projection&&!this.projection.instance&&this.projection.mount(e),this.parent&&this.isVariantNode&&!this.isControllingVariants&&(this.removeFromVariantTree=this.parent.addVariantChild(this)),this.values.forEac
1h((e,t)=>this.bindToMotionValue(t,e)),"never"===this.reducedMotionConfig?this.shouldReduceMotion=!1:"always"===this.reducedMotionConfig?this.shouldReduceMotion=!0:(e0.current||function(){if(e0.current=!0,e1)if(window.matchMedia){let e=window.matchMedia("(prefers-reduced-motion)"),t=()=>eQ.current=e.matches;e.addEventListener("change",t),t()}else eQ.current=!1}(),this.shouldReduceMotion=eQ.current),this.parent?.addChild(this),this.update(this.props,this.presenceContext)}unmount(){for(let e in this.projection&&this.projection.unmount(),eR(this.notifyUpdate),eR(this.render),this.valueSubscriptions.forEach(e=>e()),this.valueSubscriptions.clear(),this.removeFromVariantTree&&this.removeFromVariantTree(),this.parent?.removeChild(this),this.events)this.events[e].clear();for(let e in this.features){let t=this.features[e];t&&(t.unmount(),t.isMounted=!1)}this.current=null}addChild(e){this.children.add(e),this.enteringChildren??(this.enteringChildren=new Set),this.enteringChildren.add(e)}removeChild(e){this.children.delete(e),this.enteringChildren&&this.enteringChildren.delete(e)}bindToMotionValue(e,t){let n;this.valueSubscriptions.has(e)&&this.valueSubscriptions.get(e)();let r=o.has(e);r&&this.onBindTransform&&this.onBindTransform();let i=t.on("change",t=>{this.latestValues[e]=t,this.props.onUpdate&&eP.preRender(this.notifyUpdate),r&&this.projection&&(this.projection.isTransformDirty=!0),this.scheduleRender()});"undefined"!=typeof window&&window.MotionCheckAppearSync&&(n=window.MotionCheckAppearSync(this,e,t)),this.valueSubscriptions.set(e,()=>{i(),n&&n(),t.owner&&t.stop()})}sortNodePosition(e){return this.current&&this.sortInstanceNodePosition&&this.type===e.type?this.sortInstanceNodePosition(this.current,e.current):0}updateFeatures(){let e="animation";for(e in tn){let t=tn[e];if(!t)continue;let{isEnabled:n,Feature:r}=t;if(!this.features[e]&&r&&n(this.props)&&(this.features[e]=new r(this)),this.features[e]){let t=this.features[e];t.isMounted?t.update():(t.mount(),t.isMounted=!0)}}}triggerBuild(){this.build(this.renderState,this.latestValues,this.props)}measureViewportBox(){return this.current?this.measureInstanceViewportBox(this.current,this.props):G()}getStaticValue(e){return this.latestValues[e]}setStaticValue(e,t){this.latestValues[e]=t}update(e,t){(e.transformTemplate||this.props.transformTemplate)&&this.scheduleRender(),this.prevProps=this.props,this.props=e,this.prevPresenceContext=this.presenceContext,this.presenceContext=t;for(let t=0;t<tt.length;t++){let n=tt[t];this.propEventSubscriptions[n]&&(this.propEventSubscriptions[n](),delete this.propEventSubscriptions[n]);let r=e["on"+n];r&&(this.propEventSubscriptions[n]=this.on(n,r))}this.prevMotionValues=function(e,t,n){for(let r in t){let i=t[r],o=n[r];if(X(i))e.addValue(r,i);else if(X(o))e.addValue(r,eZ(i,{owner:e}));else if(o!==i)if(e.hasValue(r)){let t=e.getValue(r);!0===t.liveStyle?t.jump(i):t.hasAnimated||t.set(i)}else{let t=e.getStaticValue(r);e.addValue(r,eZ(void 0!==t?t:i,{owner:e}))}}for(let r in n)void 0===t[r]&&e.removeValue(r);return t}(this,this.scrapeMotionValuesFromProps(e,this.prevProps||{},this),this.prevMotionValues),this.handleChildMotionValue&&this.handleChildMotionValue()}getProps(){return this.props}getVariant(e){return this.props.variants?this.props.variants[e]:void 0}getDefaultTransition(){return this.props.transition}getTransformPagePoint(){return this.props.transformPagePoint}getClosestVariantNode(){return this.isVariantNode?this:this.parent?this.parent.getClosestVariantNode():void 0}addVariantChild(e){let t=this.getClosestVariantNode();if(t)return t.variantChildren&&t.variantChildren.add(e),()=>t.variantChildren.delete(e)}addValue(e,t){let n=this.values.get(e);t!==n&&(n&&this.removeValue(e),this.bindToMotionValue(e,t),this.values.set(e,t),this.latestValues[e]=t.get())}removeValue(e){this.values.delete(e);let t=this.valueSubscriptions.get(e);t&&(t(),this.valueSubscriptions.delete(e)),delete this.latestValues[e],this.removeValueFromRenderState(e,this.renderState)}hasValue(e){return this.values.has(e)}getValue(e,t){if(this.props.values&&this.props.values[e])return this.props.values[e];let n=this.values.get(e);return void 0===n&&void 0!==t&&(n=eZ(null===t?void 0:t,{owner:this}),this.addValue(e,n)),n}readValue(e,t){let n=void 0===this.latestValues[e]&&this.current?this.getBaseTargetFromProps(this.props,e)??this.readValueFromInstance(this.current,e,this.options):this.latestValues[e];if(null!=n){if("string"==typeof n&&(et(n)||eN(n)))n=parseFloat(n);else{let r;r=n,!eJ.find(q(r))&&D.test(t)&&(n=ez(e,t))}this.setBaseTarget(e,X(n)?n.get():n)}return X(n)?n.get():n}setBaseTarget(e,t){this.baseTarget[e]=t}getBaseTarget(e){let t,{initial:n}=this.props;if("string"==typeof n||"object"==typeof n){let r=te(this.props,n,this.presenceContext?.custom);r&&(t=r[e])}if(n&&void 0!==t)return t;let r=this.getBaseTargetFromProps(this.props,e);return void 0===r||X(r)?void 0!==this.initialValues[e]&&void 0===t?void 0:this.baseTarget[e]:r}on(e,t){return this.events[e]||(this.events[e]=new eW),this.events[e].add(t)}notify(e,...t){this.events[e]&&this.events[e].notify(...t)}scheduleRenderMicrotask(){eY.render(this.render)}}class ti extends tr{constructor(){super(...arguments),this.KeyframeResolver=eB}sortInstanceNodePosition(e,t){return 2&e.compareDocumentPosition(t)?1:-1}getBaseTargetFromProps(e,t){let n=e.style;return n?n[t]:void 0}removeValueFromRenderState(e,{vars:t,style:n}){delete t[e],delete n[e]}handleChildMotionValue(){this.childSubscription&&(this.childSubscription(),delete this.childSubscription);let{children:e}=this.props;X(e)&&(this.childSubscription=e.on("change",e=>{this.current&&(this.current.textContent=`${e}`)}))}}function to(e){return e.replace(/([A-Z])/g,e=>`-${e.toLowerCase()}`)}let ts=(e,t)=>t&&"number"==typeof e?t.transform(e):e,ta={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},tl=i.length;function tu(e,t,n){let{style:r,vars:s,transformOrigin:a}=e,l=!1,u=!1;for(let e in t){let n=t[e];if(o.has(e)){l=!0;continue}if(er(e)){s[e]=n;continue}{let t=ts(n,F[e]);e.startsWith("origin")?(u=!0,a[e]=t):r[e]=t}}if(!t.transform&&(l||n?r.transform=function(e,t,n){let r="",o=!0;for(let s=0;s<tl;s++){let a=i[s],l=e[a];if(void 0===l)continue;let u=!0;
1if("number"==typeof l)u=l===+!!a.startsWith("scale");else{let e=parseFloat(l);u=a.startsWith("scale")?1===e:0===e}if(!u||n){let e=ts(l,F[a]);if(!u){o=!1;let t=ta[a]||a;r+=`${t}(${e}) `}n&&(t[a]=e)}}return r=r.trim(),n?r=n(t,o?"":r):o&&(r="none"),r}(t,e.transform,n):r.transform&&(r.transform="none")),u){let{originX:e="50%",originY:t="50%",originZ:n=0}=a;r.transformOrigin=`${e} ${t} ${n}`}}let tc={offset:"stroke-dashoffset",array:"stroke-dasharray"},td={offset:"strokeDashoffset",array:"strokeDasharray"},th=["offsetDistance","offsetPath","offsetRotate","offsetAnchor"];function tf(e,{attrX:t,attrY:n,attrScale:r,pathLength:i,pathSpacing:o=1,pathOffset:s=0,...a},l,u,c){if(tu(e,a,u),l){e.style.viewBox&&(e.attrs.viewBox=e.style.viewBox);return}e.attrs=e.style,e.style={};let{attrs:d,style:h}=e;for(let e of(d.transform&&(h.transform=d.transform,delete d.transform),(h.transform||d.transformOrigin)&&(h.transformOrigin=d.transformOrigin??"50% 50%",delete d.transformOrigin),h.transform&&(h.transformBox=c?.transformBox??"fill-box",delete d.transformBox),th))void 0!==d[e]&&(h[e]=d[e],delete d[e]);void 0!==t&&(d.x=t),void 0!==n&&(d.y=n),void 0!==r&&(d.scale=r),void 0!==i&&function(e,t,n=1,r=0,i=!0){e.pathLength=1;let o=i?tc:td;e[o.offset]=`${-r}`,e[o.array]=`${t} ${n}`}(d,i,o,s,!1)}let tp=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"]),tg=e=>"string"==typeof e&&"svg"===e.toLowerCase();function tm(e,{style:t,vars:n},r,i){let o,s=e.style;for(o in t)s[o]=t[o];for(o in i?.applyProjectionStyles(s,r),n)s.setProperty(o,n[o])}function ty(e,t){return t.max===t.min?0:e/(t.max-t.min)*100}let tb={correct:(e,t)=>{if(!t.target)return e;if("string"==typeof e)if(!w.test(e))return e;else e=parseFloat(e);let n=ty(e,t.target.x),r=ty(e,t.target.y);return`${n}% ${r}%`}},tv=(e,t,n)=>e+(t-e)*n,tx={borderRadius:{...tb,applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]},borderTopLeftRadius:tb,borderTopRightRadius:tb,borderBottomLeftRadius:tb,borderBottomRightRadius:tb,boxShadow:{correct:(e,{treeScale:t,projectionDelta:n})=>{let r=D.parse(e);if(r.length>5)return e;let i=D.createTransformer(e),o=+("number"!=typeof r[0]),s=n.x.scale*t.x,a=n.y.scale*t.y;r[0+o]/=s,r[1+o]/=a;let l=tv(s,a,.5);return"number"==typeof r[2+o]&&(r[2+o]/=l),"number"==typeof r[3+o]&&(r[3+o]/=l),i(r)}}};function tw(e,{layout:t,layoutId:n}){return o.has(e)||e.startsWith("origin")||(t||void 0!==n)&&(!!tx[e]||"opacity"===e)}function tS(e,t,n){let r=e.style,i=t?.style,o={};if(!r)return o;for(let t in r)(X(r[t])||i&&X(i[t])||tw(t,e)||n?.getValue(t)?.liveStyle!==void 0)&&(o[t]=r[t]);return o}function tk(e,t,n){let r=tS(e,t,n);for(let n in e)(X(e[n])||X(t[n]))&&(r[-1!==i.indexOf(n)?"attr"+n.charAt(0).toUpperCase()+n.substring(1):n]=e[n]);return r}class tC extends ti{constructor(){super(...arguments),this.type="svg",this.isSVGTag=!1,this.measureInstanceViewportBox=G}getBaseTargetFromProps(e,t){return e[t]}readValueFromInstance(e,t){if(o.has(t)){let e=H(t);return e&&e.default||0}return t=tp.has(t)?t:to(t),e.getAttribute(t)}scrapeMotionValuesFromProps(e,t,n){return tk(e,t,n)}
1build(e,t,n){tf(e,t,this.isSVGTag,n.transformTemplate,n.style)}renderInstance(e,t,n,r){for(let n in tm(e,t,void 0,r),t.attrs)e.setAttribute(tp.has(n)?n:to(n),t.attrs[n])}mount(e){this.isSVGTag=tg(e.tagName),super.mount(e)}}function tE({top:e,left:t,right:n,bottom:r}){return{x:{min:t,max:n},y:{min:e,max:r}}}function tA(e){return void 0===e||1===e}function tT({scale:e,scaleX:t,scaleY:n}){return!tA(e)||!tA(t)||!tA(n)}function tP(e){return tT(e)||tR(e)||e.z||e.rotate||e.rotateX||e.rotateY||e.skewX||e.skewY}function tR(e){var t,n;return(t=e.x)&&"0%"!==t||(n=e.y)&&"0%"!==n}function tM(e,t,n,r,i){return void 0!==i&&(e=r+i*(e-r)),r+n*(e-r)+t}function tj(e,t=0,n=1,r,i){e.min=tM(e.min,t,n,r,i),e.max=tM(e.max,t,n,r,i)}function tI(e,{x:t,y:n}){tj(e.x,t.translate,t.scale,t.originPoint),tj(e.y,n.translate,n.scale,n.originPoint)}function tO(e,t){e.min=e.min+t,e.max=e.max+t}function t_(e,t,n,r,i=.5){let o=tv(e.min,e.max,i);tj(e,t,n,o,r)}function tD(e,t){t_(e.x,t.x,t.scaleX,t.scale,t.originX),t_(e.y,t.y,t.scaleY,t.scale,t.originY)}function tL(e,t){return tE(function(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}}(e.getBoundingClientRect(),t))}class t$ extends ti{constructor(){super(...arguments),this.type="html",this.renderInstance=tm}readValueFromInstance(e,t){if(o.has(t))return this.projection?.isProjecting?em(t):((e,t)=>{let{transform:n="none"}=getComputedStyle(e);return ey(n,t)})(e,t);{let n=window.getComputedStyle(e),r=(er(t)?n.getPropertyValue(t):n[t])||0;return"string"==typeof r?r.trim():r}}measureInstanceViewportBox(e,{transformPagePoint:t}){return tL(e,t)}build(e,t,n){tu(e,t,n.transformTemplate)}scrapeMotionValuesFromProps(e,t,n){return tS(e,t,n)}}var tV=n(12115);let tN=["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 tz(e){if("string"!=typeof e||e.includes("-"));else if(tN.indexOf(e)>-1||/[A-Z]/u.test(e))return!0;return!1}var tF=n(95155),tB=n(60296);let tH=(0,tV.createContext)({strict:!1});var tU=n(53127);let tW=(0,tV.createContext)({});function tY(e){return Array.isArray(e)?e.join(" "):e}let tG=()=>({style:{},transform:{},transformOrigin:{},vars:{}});function tX(e,t,n){for(let r in t)X(t[r])||tw(r,n)||(e[r]=t[r])}let tK=()=>({...tG(),attrs:{}}),tq=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 tZ(e){return e.startsWith("while")||e.startsWith("drag")&&"draggable"!==e||e.startsWith("layout")||e.startsWith("onTap")||e.startsWith("onPan")||e.startsWith("onLayout")||tq.has(e)}let tJ=e=>!tZ(e);try{!function(e){"function"==typeof e&&(tJ=t=>t.startsWith("on")?!tZ(t):e(t))}(require("@emotion/is-prop-valid").default)}catch{}function tQ(e){return X(e)?e.get():e}var t0=n(59686),t1=n(94416);let t2=e=>(t,n)=>{let r=(0,tV.useContext)(tW),i=(0,tV.useContext)(t0.t),o=()=>(function(e,t,n,r){let{scrapeMotionValuesFromProps:i,createRenderState:o}=e;return{latestValues:function(e,t,n,r){let i={},o=r(e,{});for(let e in o)i[e]=tQ(o[e]);let{initial:s,animate:a}=e,l=e8(e),u=e9(e);t&&u&&!l&&!1!==e.inherit&&(void 0===s&&(s=t.initial),void 0===a&&(a=t.animate));let c=!!n&&!1===n.initial,d=(c=c||!1===s)?a:s;if(d&&"boolean"!=typeof d&&!e5(d)){let t=Array.isArray(d)?d:[d];for(let n=0;n<t.length;n++){let r=te(e,t[n]);if(r){let{transitionEnd:e,transition:t,...n}=r;for(let e in n){let t=n[e];if(Array.isArray(t)){let e=c?t.length-1:0;t=t[e]}null!==t&&(i[e]=t)}for(let t in e)i[t]=e[t]}}}return i}(t,n,r,i),renderState:o()}})(e,t,r,i);return n?o():(0,t1.M)(o)},t5=t2({scrapeMotionValuesFromProps:tS,createRenderState:tG}),t3=t2({scrapeMotionValuesFromProps:tk,createRenderState:tK});var t4=n(33577);let t6={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"]},t8=!1;function t9(){return!function(){if(t8)return;let e={};for(let t in t6)e[t]={isEnabled:e=>t6[t].some(t=>!!e[t])};
1tn=e,t8=!0}(),tn}let t7=Symbol.for("motionComponentSymbol"),ne="data-"+to("framerAppearId"),nt=(0,tV.createContext)({});function nn(e){return e&&"object"==typeof e&&Object.prototype.hasOwnProperty.call(e,"current")}var nr=n(86553);function ni(e){var t,n;let{forwardMotionProps:r=!1,type:i}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},o=arguments.length>2?arguments[2]:void 0,s=arguments.length>3?arguments[3]:void 0;o&&function(e){let t=t9();for(let n in e)t[n]={...t[n],...e[n]};tn=t}(o);let a=i?"svg"===i:tz(e),l=a?t3:t5;function u(t,n){let i,o={...(0,tV.useContext)(tU.Q),...t,layoutId:function(e){let{layoutId:t}=e,n=(0,tV.useContext)(tB.L).id;return n&&void 0!==t?n+"-"+t:t}(t)},{isStatic:u}=o,c=function(e){let{initial:t,animate:n}=function(e,t){if(e8(e)){let{initial:t,animate:n}=e;return{initial:!1===t||e3(t)?t:void 0,animate:e3(n)?n:void 0}}return!1!==e.inherit?t:{}}(e,(0,tV.useContext)(tW));return(0,tV.useMemo)(()=>({initial:t,animate:n}),[tY(t),tY(n)])}(t),d=l(t,u);if(!u&&t4.B){(0,tV.useContext)(tH).strict;let t=function(e){let{drag:t,layout:n}=t9();if(!t&&!n)return{};let r={...t,...n};return{MeasureLayout:(null==t?void 0:t.isEnabled(e))||(null==n?void 0:n.isEnabled(e))?r.MeasureLayout:void 0,ProjectionNode:r.ProjectionNode}}(o);i=t.MeasureLayout,c.visualElement=function(e,t,n,r,i,o){var s,a,l,u;let{visualElement:c}=(0,tV.useContext)(tW),d=(0,tV.useContext)(tH),h=(0,tV.useContext)(t0.t),f=(0,tV.useContext)(tU.Q).reducedMotion,p=(0,tV.useRef)(null),g=(0,tV.useRef)(!1);r=r||d.renderer,!p.current&&r&&(p.current=r(e,{visualState:t,parent:c,props:n,presenceContext:h,blockInitialAnimation:!!h&&!1===h.initial,reducedMotionConfig:f,isSVG:o}),g.current&&p.current&&(p.current.manuallyAnimateOnMount=!0));let m=p.current,y=(0,tV.useContext)(nt);m&&!m.projection&&i&&("html"===m.type||"svg"===m.type)&&function(e,t,n,r){let{layoutId:i,layout:o,drag:s,dragConstraints:a,layoutScroll:l,layoutRoot:u,layoutCrossfade:c}=t;e.projection=new n(e.latestValues,t["data-framer-portal-id"]?void 0:function e(t){if(t)return!1!==t.options.allowProjection?t.projection:e(t.parent)}(e.parent)),e.projection.setOptions({layoutId:i,layout:o,alwaysMeasureLayout:!!s||a&&nn(a),visualElement:e,animationType:"string"==typeof o?o:"both",initialPromotionConfig:r,crossfade:c,layoutScroll:l,layoutRoot:u})}(p.current,n,i,y);let b=(0,tV.useRef)(!1);(0,tV.useInsertionEffect)(()=>{m&&b.current&&m.update(n,h)});let v=n[ne],x=(0,tV.useRef)(!!v&&!(null==(s=(a=window).MotionHandoffIsComplete)?void 0:s.call(a,v))&&(null==(l=(u=window).MotionHasOptimisedAnimation)?void 0:l.call(u,v)));return(0,nr.E)(()=>{g.current=!0,m&&(b.current=!0,window.MotionIsMounted=!0,m.updateFeatures(),m.scheduleRenderMicrotask(),x.current&&m.animationState&&m.animationState.animateChanges())}),(0,tV.useEffect)(()=>{m&&(!x.current&&m.animationState&&m.animationState.animateChanges(),x.current&&(queueMicrotask(()=>{var e,t;null==(e=(t=window).MotionHandoffMarkAsComplete)||e.call(t,v)}),x.current=!1),m.enteringChildren=void 0)}),m}(e,d,o,s,t.ProjectionNode,a)}return(0,tF.jsxs)(tW.Provider,{value:c,children:[i&&c.visualElement?(0,tF.jsx)(i,{visualElement:c.visualElement,...o}):null,function(e,t,n,r,i){let{latestValues:o}=r,s=arguments.length>5&&void 0!==arguments[5]&&arguments[5],a=arguments.length>6?arguments[6]:void 0,l=((null!=a?a:tz(e))?function(e,t,n,r){let i=(0,tV.useMemo)(()=>{let n=tK();return tf(n,t,tg(r),e.transformTemplate,e.style),{...n.attrs,style:{...n.style}}},[t]);if(e.style){let t={};tX(t,e.style,e),i.style={...t,...i.style}}return i}:function(e,t){let n={},r=function(e,t){let n=e.style||{},r={};return tX(r,n,e),Object.assign(r,function(e,t){let{transformTemplate:n}=e;return(0,tV.useMemo)(()=>{let e=tG();return tu(e,t,n),Object.assign({},e.vars,e.style)},[t])}(e,t)),r}(e,t);return e.drag&&!1!==e.dragListener&&(n.draggable=!1,r.userSelect=r.WebkitUserSelect=r.WebkitTouchCallout="none",r.touchAction=!0===e.drag?"none":"pan-".concat("x"===e.drag?"y":"x")),void 0===e.tabIndex&&(e.onTap||e.onTapStart||e.whileTap)&&(n.tabIndex=0),n.style=r,n})(t,o,i,e),u=function(e,t,n){let r={};for(let i in e)("values"!==i||"object"!=typeof e.values)&&(tJ(i)||!0===n&&tZ(i)||!t&&!tZ(i)||e.draggable&&i.startsWith("onDrag"))&&(r[i]=e[i]);return r}(t,"string"==typeof e,s),c=e!==tV.Fragment?{...u,...l,ref:n}:{},{children:d}=t,h=(0,tV.useMemo)(()=>X(d)?d.get():d,[d]);return(0,tV.createElement)(e,{...c,children:h})}(e,t,function(e,t,n){let r=(0,tV.useRef)(n);(0,tV.useInsertionEffect)(()=>{r.current=n});let i=(0,tV.useRef)(null);return(0,tV.useCallback)(n=>{if(n){var o;null==(o=e.onMount)||o.call(e,n)}t&&(n?t.mount(n):t.unmount());let s=r.current;if("function"==typeof s)if(n){let e=s(n);"function"==typeof e&&(i.current=e)}else i.current?(i.current(),i.current=null):s(n);else s&&(s.current=n)},[t])}(d,c.visualElement,n),d,u,r,a)]})}u.displayName="motion.".concat("string"==typeof e?e:"create(".concat(null!=(n=null!=(t=e.displayName)?t:e.name)?n:"",")"));let c=(0,tV.forwardRef)(u);return c[t7]=e,c}class no{constructor(e){this.isMounted=!1,this.node=e}update(){}}function ns(e,t,n){let r=e.getProps();return te(r,t,void 0!==n?n:r.custom,e)}function na(e,t){return e?.[t]??e?.default??e}let nl=e=>Array.isArray(e);function nu(e,t){let n=e.getValue("willChange");if(X(n)&&n.add)return n.add(t);if(!n&&eC.WillChange){let n=new eC.WillChange("auto");e.addValue("willChange",n),n.add(t)}}let nc=e=>1e3*e,nd=(e,t)=>n=>t(e(n)),nh=(...e)=>e.reduce(nd),nf={layout:0,mainThread:0,waapi:0};
1function np(e,t,n){return(n<0&&(n+=1),n>1&&(n-=1),n<1/6)?e+(t-e)*6*n:n<.5?t:n<2/3?e+(t-e)*(2/3-n)*6:e}function ng(e,t){return n=>n>0?t:e}let nm=(e,t,n)=>{let r=e*e,i=n*(t*t-r)+r;return i<0?0:Math.sqrt(i)},ny=[y,m,E];function nb(e){let t=ny.find(t=>t.test(e));if(Q(!!t,`'${e}' is not an animatable color. Use the equivalent color code instead.`,"color-not-animatable"),!t)return!1;let n=t.parse(e);return t===E&&(n=function({hue:e,saturation:t,lightness:n,alpha:r}){e/=360,n/=100;let i=0,o=0,s=0;if(t/=100){let r=n<.5?n*(1+t):n+t-n*t,a=2*n-r;i=np(a,r,e+1/3),o=np(a,r,e),s=np(a,r,e-1/3)}else i=o=s=n;return{red:Math.round(255*i),green:Math.round(255*o),blue:Math.round(255*s),alpha:r}}(n)),n}let nv=(e,t)=>{let n=nb(e),r=nb(t);if(!n||!r)return ng(e,t);let i={...n};return e=>(i.red=nm(n.red,r.red,e),i.green=nm(n.green,r.green,e),i.blue=nm(n.blue,r.blue,e),i.alpha=tv(n.alpha,r.alpha,e),m.transform(i))},nx=new Set(["none","hidden"]);function nw(e,t){return n=>tv(e,t,n)}function nS(e){return"number"==typeof e?nw:"string"==typeof e?eo(e)?ng:A.test(e)?nv:nE:Array.isArray(e)?nk:"object"==typeof e?A.test(e)?nv:nC:ng}function nk(e,t){let n=[...e],r=n.length,i=e.map((e,n)=>nS(e)(e,t[n]));return e=>{for(let t=0;t<r;t++)n[t]=i[t](e);return n}}function nC(e,t){let n={...e,...t},r={};for(let i in n)void 0!==e[i]&&void 0!==t[i]&&(r[i]=nS(e[i])(e[i],t[i]));return e=>{for(let t in r)n[t]=r[t](e);return n}}let nE=(e,t)=>{let n=D.createTransformer(t),r=j(e),i=j(t);return r.indexes.var.length===i.indexes.var.length&&r.indexes.color.length===i.indexes.color.length&&r.indexes.number.length>=i.indexes.number.length?nx.has(e)&&!i.values.length||nx.has(t)&&!r.values.length?function(e,t){return nx.has(e)?n=>n<=0?e:t:n=>n>=1?t:e}(e,t):nh(nk(function(e,t){let n=[],r={color:0,var:0,number:0};for(let i=0;i<t.values.length;i++){let o=t.types[i],s=e.indexes[o][r[o]],a=e.values[s]??0;n[i]=a,r[o]++}return n}(r,i),i.values),n):(Q(!0,`Complex values '${e}' and '${t}' too different to mix. Ensure all colors are of the same type, and that each contains the same quantity of number and color values. Falling back to instant transition.`,"complex-values-different"),ng(e,t))};function nA(e,t,n){return"number"==typeof e&&"number"==typeof t&&"number"==typeof n?tv(e,t,n):nS(e)(e,t)}let nT=e=>{let t=({timestamp:t})=>e(t);return{start:(e=!0)=>eP.update(t,e),stop:()=>eR(t),now:()=>eM.isProcessing?eM.timestamp:eX.now()}},nP=(e,t,n=10)=>{let r="",i=Math.max(Math.round(t/n),2);for(let t=0;t<i;t++)r+=Math.round(1e4*e(t/(i-1)))/1e4+", ";return`linear(${r.substring(0,r.length-2)})`};function nR(e){let t=0,n=e.next(t);for(;!n.done&&t<2e4;)t+=50,n=e.next(t);return t>=2e4?1/0:t}function nM(e,t,n){var r,i;let o=Math.max(t-5,0);return r=n-e(o),(i=t-o)?1e3/i*r:0}let nj={stiffness:100,damping:10,mass:1,velocity:0,duration:800,bounce:.3,visualDuration:.3,restSpeed:{granular:.01,default:2},restDelta:{granular:.005,default:.5},minDuration:.01,maxDuration:10,minDamping:.05,maxDamping:1};function nI(e,t){return e*Math.sqrt(1-t*t)}let nO=["duration","bounce"],n_=["stiffness","damping","mass"];function nD(e,t){return t.some(t=>void 0!==e[t])}function nL(e=nj.visualDuration,t=nj.bounce){let n,r="object"!=typeof e?{visualDuration:e,keyframes:[0,1],bounce:t}:e,{restSpeed:i,restDelta:o}=r,a=r.keyframes[0],l=r.keyframes[r.keyframes.length-1],u={done:!1,value:a},{stiffness:c,damping:d,mass:h,duration:f,velocity:p,isResolvedFromDuration:g}=function(e){let t={velocity:nj.velocity,stiffness:nj.stiffness,damping:nj.damping,mass:nj.mass,isResolvedFromDuration:!1,...e};if(!nD(e,n_)&&nD(e,nO))if(e.visualDuration){let n=2*Math.PI/(1.2*e.visualDuration),r=n*n,i=2*s(.05,1,1-(e.bounce||0))*Math.sqrt(r);t={...t,mass:nj.mass,stiffness:r,damping:i}}else{let n=function({duration:e=nj.duration,bounce:t=nj.bounce,velocity:n=nj.velocity,mass:r=nj.mass}){let i,o;Q(e<=nc(nj.maxDuration),"Spring duration must be 10 seconds or less","spring-duration-limit");let a=1-t;a=s(nj.minDamping,nj.maxDamping,a),e=s(nj.minDuration,nj.maxDuration,e/1e3),a<1?(i=t=>{let r=t*a,i=r*e;return .001-(r-n)/nI(t,a)*Math.exp(-i)},o=t=>{let r=t*a*e,o=Math.pow(a,2)*Math.pow(t,2)*e,s=Math.exp(-r),l=nI(Math.pow(t,2),a);return(r*n+n-o)*s*(-i(t)+.001>0?-1:1)/l}):(i=t=>-.001+Math.exp(-t*e)*((t-n)*e+1),o=t=>e*e*(n-t)*Math.exp(-t*e));let l=function(e,t,n){let r=n;for(let n=1;n<12;n++)r-=e(r)/t(r);return r}(i,o,5/e);if(e=nc(e),isNaN(l))return{stiffness:nj.stiffness,damping:nj.damping,duration:e};{let t=Math.pow(l,2)*r;
1return{stiffness:t,damping:2*a*Math.sqrt(r*t),duration:e}}}(e);(t={...t,...n,mass:nj.mass}).isResolvedFromDuration=!0}return t}({...r,velocity:-((r.velocity||0)/1e3)}),m=p||0,y=d/(2*Math.sqrt(c*h)),b=l-a,v=Math.sqrt(c/h)/1e3,x=5>Math.abs(b);if(i||(i=x?nj.restSpeed.granular:nj.restSpeed.default),o||(o=x?nj.restDelta.granular:nj.restDelta.default),y<1){let e=nI(v,y);n=t=>l-Math.exp(-y*v*t)*((m+y*v*b)/e*Math.sin(e*t)+b*Math.cos(e*t))}else if(1===y)n=e=>l-Math.exp(-v*e)*(b+(m+v*b)*e);else{let e=v*Math.sqrt(y*y-1);n=t=>{let n=Math.exp(-y*v*t),r=Math.min(e*t,300);return l-n*((m+y*v*b)*Math.sinh(r)+e*b*Math.cosh(r))/e}}let w={calculatedDuration:g&&f||null,next:e=>{let t=n(e);if(g)u.done=e>=f;else{let r=0===e?m:0;y<1&&(r=0===e?nc(m):nM(n,e,t));let s=Math.abs(l-t)<=o;u.done=Math.abs(r)<=i&&s}return u.value=u.done?l:t,u},toString:()=>{let e=Math.min(nR(w),2e4),t=nP(t=>w.next(e*t).value,e,30);return e+"ms "+t},toTransition:()=>{}};return w}function n$({keyframes:e,velocity:t=0,power:n=.8,timeConstant:r=325,bounceDamping:i=10,bounceStiffness:o=500,modifyTarget:s,min:a,max:l,restDelta:u=.5,restSpeed:c}){let d,h,f=e[0],p={done:!1,value:f},g=n*t,m=f+g,y=void 0===s?m:s(m);y!==m&&(g=y-f);let b=e=>-g*Math.exp(-e/r),v=e=>y+b(e),x=e=>{let t=b(e),n=v(e);p.done=Math.abs(t)<=u,p.value=p.done?y:n},w=e=>{let t;if(t=p.value,void 0!==a&&t<a||void 0!==l&&t>l){var n;d=e,h=nL({keyframes:[p.value,(n=p.value,void 0===a?l:void 0===l||Math.abs(a-n)<Math.abs(l-n)?a:l)],velocity:nM(v,e,p.value),damping:i,stiffness:o,restDelta:u,restSpeed:c})}};return w(0),{calculatedDuration:null,next:e=>{let t=!1;return(h||void 0!==d||(t=!0,x(e),w(e)),void 0!==d&&e>=d)?h.next(e-d):(t||x(e),p)}}}nL.applyToOptions=e=>{let t=function(e,t=100,n){let r=n({...e,keyframes:[0,t]}),i=Math.min(nR(r),2e4);return{type:"keyframes",ease:e=>r.next(i*e).value/t,duration:i/1e3}}(e,100,nL);return e.ease=t.ease,e.duration=nc(t.duration),e.type="keyframes",e};let nV=(e,t,n)=>(((1-3*n+3*t)*e+(3*n-6*t))*e+3*t)*e;function nN(e,t,n,r){return e===t&&n===r?ek:i=>0===i||1===i?i:nV(function(e,t,n,r,i){let o,s,a=0;do(o=nV(s=t+(n-t)/2,r,i)-e)>0?n=s:t=s;while(Math.abs(o)>1e-7&&++a<12);return s}(i,0,1,e,n),t,r)}let nz=nN(.42,0,1,1),nF=nN(0,0,.58,1),nB=nN(.42,0,.58,1),nH=e=>t=>t<=.5?e(2*t)/2:(2-e(2*(1-t)))/2,nU=e=>t=>1-e(1-t),nW=nN(.33,1.53,.69,.99),nY=nU(nW),nG=nH(nY),nX=e=>(e*=2)<1?.5*nY(e):.5*(2-Math.pow(2,-10*(e-1))),nK=e=>1-Math.sin(Math.acos(e)),nq=nU(nK),nZ=nH(nK),nJ=e=>Array.isArray(e)&&"number"==typeof e[0],nQ={linear:ek,easeIn:nz,easeInOut:nB,easeOut:nF,circIn:nK,circInOut:nZ,circOut:nq,backIn:nY,backInOut:nG,backOut:nW,anticipate:nX},n0=e=>{if(nJ(e)){ee(4===e.length,"Cubic bezier arrays must contain four numerical values.","cubic-bezier-length");let[t,n,r,i]=e;return nN(t,n,r,i)}return"string"==typeof e?(ee(void 0!==nQ[e],`Invalid easing type '${e}'`,"invalid-easing-type"),nQ[e]):e},n1=(e,t,n)=>{let r=t-e;return 0===r?1:(n-e)/r};function n2({duration:e=300,keyframes:t,times:n,ease:r="easeInOut"}){var i;let o=Array.isArray(r)&&"number"!=typeof r[0]?r.map(n0):n0(r),a={done:!1,value:t[0]},l=function(e,t,{clamp:n=!0,ease:r,mixer:i}={}){let o=e.length;if(ee(o===t.length,"Both input and output ranges must be the same length","range-length"),1===o)return()=>t[0];if(2===o&&t[0]===t[1])return()=>t[1];let a=e[0]===e[1];e[0]>e[o-1]&&(e=[...e].reverse(),t=[...t].reverse());let l=function(e,t,n){let r=[],i=n||eC.mix||nA,o=e.length-1;for(let n=0;n<o;n++){let o=i(e[n],e[n+1]);t&&(o=nh(Array.isArray(t)?t[n]||ek:t,o)),r.push(o)}return r}(t,r,i),u=l.length,c=n=>{if(a&&n<e[0])return t[0];let r=0;if(u>1)for(;r<e.length-2&&!(n<e[r+1]);r++);let i=n1(e[r],e[r+1],n);return l[r](i)};return n?t=>c(s(e[0],e[o-1],t)):c}((i=n&&n.length===t.length?n:function(e){let t=[0];return!function(e,t){let n=e[e.length-1];for(let r=1;r<=t;r++){let i=n1(0,t,r);e.push(tv(n,1,i))}}(t,e.length-1),t}(t),i.map(t=>t*e)),t,{ease:Array.isArray(o)?o:t.map(()=>o||nB).splice(0,t.length-1)});return{calculatedDuration:e,next:t=>(a.value=l(t),a.done=t>=e,a)}}let n5=e=>null!==e;function n3(e,{repeat:t,repeatType:n="loop"},r,i=1){let o=e.filter(n5),s=i<0||t&&"loop"!==n&&t%2==1?0:o.length-1;return s&&void 0!==r?r:o[s]}let n4={decay:n$,inertia:n$,tween:n2,keyframes:n2,spring:nL};function n6(e){"string"==typeof e.type&&(e.type=n4[e.type])}class n8{constructor(){this.updateFinished()}get finished(){return this._finished}updateFinished(){this._finished=new Promise(e=>{this.resolve=e})}notifyFinished(){this.resolve()}then(e,t){return this.finished.then(e,t)}}let n9=e=>e/100;class n7 extends n8{constructor(e){super(),this.state="idle",this.startTime=null,this.isStopped=!1,this.currentTime=0,this.holdTime=null,this.playbackSpeed=1,this.stop=()=>{let{motionValue:e}=this.options;e&&e.updatedAt!==eX.now()&&this.tick(eX.now()),this.isStopped=!0,"idle"!==this.state&&(this.teardown(),this.options.onStop?.())},nf.mainThread++,this.options=e,this.initAnimation(),this.play(),!1===e.autoplay&&this.pause()}initAnimation(){let{options:e}=this;n6(e);let{type:t=n2,repeat:n=0,repeatDelay:r=0,repeatType:i,velocity:o=0}=e,{keyframes:s}=e,a=t||n2;a!==n2&&"number"!=typeof s[0]&&(this.mixKeyframes=nh(n9,nA(s[0],s[1])),s=[0,100]);let l=a({...e,keyframes:s}
1);"mirror"===i&&(this.mirroredGenerator=a({...e,keyframes:[...s].reverse(),velocity:-o})),null===l.calculatedDuration&&(l.calculatedDuration=nR(l));let{calculatedDuration:u}=l;this.calculatedDuration=u,this.resolvedDuration=u+r,this.totalDuration=this.resolvedDuration*(n+1)-r,this.generator=l}updateTime(e){let t=Math.round(e-this.startTime)*this.playbackSpeed;null!==this.holdTime?this.currentTime=this.holdTime:this.currentTime=t}tick(e,t=!1){let{generator:n,totalDuration:r,mixKeyframes:i,mirroredGenerator:o,resolvedDuration:a,calculatedDuration:l}=this;if(null===this.startTime)return n.next(0);let{delay:u=0,keyframes:c,repeat:d,repeatType:h,repeatDelay:f,type:p,onUpdate:g,finalKeyframe:m}=this.options;this.speed>0?this.startTime=Math.min(this.startTime,e):this.speed<0&&(this.startTime=Math.min(e-r/this.speed,this.startTime)),t?this.currentTime=e:this.updateTime(e);let y=this.currentTime-u*(this.playbackSpeed>=0?1:-1),b=this.playbackSpeed>=0?y<0:y>r;this.currentTime=Math.max(y,0),"finished"===this.state&&null===this.holdTime&&(this.currentTime=r);let v=this.currentTime,x=n;if(d){let e=Math.min(this.currentTime,r)/a,t=Math.floor(e),n=e%1;!n&&e>=1&&(n=1),1===n&&t--,(t=Math.min(t,d+1))%2&&("reverse"===h?(n=1-n,f&&(n-=f/a)):"mirror"===h&&(x=o)),v=s(0,1,n)*a}let w=b?{done:!1,value:c[0]}:x.next(v);i&&(w.value=i(w.value));let{done:S}=w;b||null===l||(S=this.playbackSpeed>=0?this.currentTime>=r:this.currentTime<=0);let k=null===this.holdTime&&("finished"===this.state||"running"===this.state&&S);return k&&p!==n$&&(w.value=n3(c,this.options,m,this.speed)),g&&g(w.value),k&&this.finish(),w}then(e,t){return this.finished.then(e,t)}get duration(){return this.calculatedDuration/1e3}get iterationDuration(){let{delay:e=0}=this.options||{};return this.duration+e/1e3}get time(){return this.currentTime/1e3}set time(e){e=nc(e),this.currentTime=e,null===this.startTime||null!==this.holdTime||0===this.playbackSpeed?this.holdTime=e:this.driver&&(this.startTime=this.driver.now()-e/this.playbackSpeed),this.driver?.start(!1)}get speed(){return this.playbackSpeed}set speed(e){this.updateTime(eX.now());let t=this.playbackSpeed!==e;this.playbackSpeed=e,t&&(this.time=this.currentTime/1e3)}play(){if(this.isStopped)return;let{driver:e=nT,startTime:t}=this.options;this.driver||(this.driver=e(e=>this.tick(e))),this.options.onPlay?.();let n=this.driver.now();"finished"===this.state?(this.updateFinished(),this.startTime=n):null!==this.holdTime?this.startTime=n-this.holdTime:this.startTime||(this.startTime=t??n),"finished"===this.state&&this.speed<0&&(this.startTime+=this.calculatedDuration),this.holdTime=null,this.state="running",this.driver.start()}pause(){this.state="paused",this.updateTime(eX.now()),this.holdTime=this.currentTime}complete(){"running"!==this.state&&this.play(),this.state="finished",this.holdTime=null}finish(){this.notifyFinished(),this.teardown(),this.state="finished",this.options.onComplete?.()}cancel(){this.holdTime=null,this.startTime=0,this.tick(0),this.teardown(),this.options.onCancel?.()}teardown(){this.state="idle",this.stopDriver(),this.startTime=this.holdTime=null,nf.mainThread--}stopDriver(){this.driver&&(this.driver.stop(),this.driver=void 0)}sample(e){return this.startTime=0,this.tick(e,!0)}attachTimeline(e){return this.options.allowFlatten&&(this.options.type="keyframes",this.options.ease="linear",this.initAnimation()),this.driver?.stop(),e.observe(this)}}function re(e){let t;return()=>(void 0===t&&(t=e()),t)}let rt=re(()=>void 0!==window.ScrollTimeline),rn={},rr=function(e,t){let n=re(e);return()=>rn[t]??n()}(()=>{try{document.createElement("div").animate({opacity:0}
1,{easing:"linear(0, 1)"})}catch(e){return!1}return!0},"linearEasing"),ri=([e,t,n,r])=>`cubic-bezier(${e}, ${t}, ${n}, ${r})`,ro={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:ri([0,.65,.55,1]),circOut:ri([.55,0,1,.45]),backIn:ri([.31,.01,.66,-.59]),backOut:ri([.33,1.53,.69,.99])};function rs(e){return"function"==typeof e&&"applyToOptions"in e}class ra extends n8{constructor(e){if(super(),this.finishedTime=null,this.isStopped=!1,this.manualStartTime=null,!e)return;let{element:t,name:n,keyframes:r,pseudoElement:i,allowFlatten:o=!1,finalKeyframe:s,onComplete:a}=e;this.isPseudoElement=!!i,this.allowFlatten=o,this.options=e,ee("string"!=typeof e.type,'Mini animate() doesn\'t support "type" as a string.',"mini-spring");let l=function({type:e,...t}){return rs(e)&&rr()?e.applyToOptions(t):(t.duration??(t.duration=300),t.ease??(t.ease="easeOut"),t)}(e);this.animation=function(e,t,n,{delay:r=0,duration:i=300,repeat:o=0,repeatType:s="loop",ease:a="easeOut",times:l}={},u){let c={[t]:n};l&&(c.offset=l);let d=function e(t,n){if(t)return"function"==typeof t?rr()?nP(t,n):"ease-out":nJ(t)?ri(t):Array.isArray(t)?t.map(t=>e(t,n)||ro.easeOut):ro[t]}(a,i);Array.isArray(d)&&(c.easing=d),eA.value&&nf.waapi++;let h={delay:r,duration:i,easing:Array.isArray(d)?"linear":d,fill:"both",iterations:o+1,direction:"reverse"===s?"alternate":"normal"};u&&(h.pseudoElement=u);let f=e.animate(c,h);return eA.value&&f.finished.finally(()=>{nf.waapi--}),f}(t,n,r,l,i),!1===l.autoplay&&this.animation.pause(),this.animation.onfinish=()=>{if(this.finishedTime=this.time,!i){let e=n3(r,this.options,s,this.speed);this.updateMotionValue?this.updateMotionValue(e):function(e,t,n){t.startsWith("--")?e.style.setProperty(t,n):e.style[t]=n}(t,n,e),this.animation.cancel()}a?.(),this.notifyFinished()}}play(){this.isStopped||(this.manualStartTime=null,this.animation.play(),"finished"===this.state&&this.updateFinished())}pause(){this.animation.pause()}complete(){this.animation.finish?.()}cancel(){try{this.animation.cancel()}catch(e){}}stop(){if(this.isStopped)return;this.isStopped=!0;let{state:e}=this;"idle"!==e&&"finished"!==e&&(this.updateMotionValue?this.updateMotionValue():this.commitStyles(),this.isPseudoElement||this.cancel())}commitStyles(){this.isPseudoElement||this.animation.commitStyles?.()}get duration(){return Number(this.animation.effect?.getComputedTiming?.().duration||0)/1e3}get iterationDuration(){let{delay:e=0}=this.options||{};return this.duration+e/1e3}get time(){return(Number(this.animation.currentTime)||0)/1e3}set time(e){this.manualStartTime=null,this.finishedTime=null,this.animation.currentTime=nc(e)}get speed(){return this.animation.playbackRate}set speed(e){e<0&&(this.finishedTime=null),this.animation.playbackRate=e}get state(){return null!==this.finishedTime?"finished":this.animation.playState}get startTime(){return this.manualStartTime??Number(this.animation.startTime)}set startTime(e){this.manualStartTime=this.animation.startTime=e}attachTimeline({timeline:e,observe:t}){return(this.allowFlatten&&this.animation.effect?.updateTiming({easing:"linear"}),this.animation.onfinish=null,e&&rt())?(this.animation.timeline=e,ek):t(this)}}let rl={anticipate:nX,backInOut:nG,circInOut:nZ};class ru extends ra{constructor(e){!function(e){"string"==typeof e.ease&&e.ease in rl&&(e.ease=rl[e.ease])}(e),n6(e),super(e),void 0!==e.startTime&&(this.startTime=e.startTime),this.options=e}updateMotionValue(e){let{motionValue:t,onUpdate:n,onComplete:r,element:i,...o}=this.options;if(!t)return;if(void 0!==e)return void t.set(e);let a=new n7({...o,autoplay:!1}),l=Math.max(10,eX.now()-this.startTime),u=s(0,10,l-10);t.setWithVelocity(a.sample(Math.max(0,l-u)).value,a.sample(l).value,u),a.stop()}}let rc=(e,t)=>"zIndex"!==t&&!!("number"==typeof e||Array.isArray(e)||"string"==typeof e&&(D.test(e)||"0"===e)&&!e.startsWith("url("));function rd(e){e.duration=0,e.type="keyframes"}let rh=new Set(["opacity","clipPath","filter","transform"]),rf=re(()=>Object.hasOwnProperty.call(Element.prototype,"animate"));class rp extends n8{constructor({autoplay:e=!0,delay:t=0,type:n="keyframes",repeat:r=0,repeatDelay:i=0,repeatType:
1o="loop",keyframes:s,name:a,motionValue:l,element:u,...c}){super(),this.stop=()=>{this._animation&&(this._animation.stop(),this.stopTimeline?.()),this.keyframeResolver?.cancel()},this.createdAt=eX.now();let d={autoplay:e,delay:t,type:n,repeat:r,repeatDelay:i,repeatType:o,name:a,motionValue:l,element:u,...c},h=u?.KeyframeResolver||eV;this.keyframeResolver=new h(s,(e,t,n)=>this.onKeyframesResolved(e,t,d,!n),a,l,u),this.keyframeResolver?.scheduleResolve()}onKeyframesResolved(e,t,n,r){this.keyframeResolver=void 0;let{name:i,type:o,velocity:s,delay:a,isHandoff:l,onUpdate:u}=n;this.resolvedAt=eX.now(),!function(e,t,n,r){let i=e[0];if(null===i)return!1;if("display"===t||"visibility"===t)return!0;let o=e[e.length-1],s=rc(i,t),a=rc(o,t);return Q(s===a,`You are trying to animate ${t} from "${i}" to "${o}". "${s?o:i}" is not an animatable value.`,"value-not-animatable"),!!s&&!!a&&(function(e){let t=e[0];if(1===e.length)return!0;for(let n=0;n<e.length;n++)if(e[n]!==t)return!0}(e)||("spring"===n||rs(n))&&r)}(e,i,o,s)&&((eC.instantAnimations||!a)&&u?.(n3(e,n,t)),e[0]=e[e.length-1],rd(n),n.repeat=0);let c={startTime:r?this.resolvedAt&&this.resolvedAt-this.createdAt>40?this.resolvedAt:this.createdAt:void 0,finalKeyframe:t,...n,keyframes:e},d=!l&&function(e){let{motionValue:t,name:n,repeatDelay:r,repeatType:i,damping:o,type:s}=e;if(!(t?.owner?.current instanceof HTMLElement))return!1;let{onUpdate:a,transformTemplate:l}=t.owner.getProps();return rf()&&n&&rh.has(n)&&("transform"!==n||!l)&&!a&&!r&&"mirror"!==i&&0!==o&&"inertia"!==s}(c),h=c.motionValue?.owner?.current,f=d?new ru({...c,element:h}):new n7(c);f.finished.then(()=>{this.notifyFinished()}).catch(ek),this.pendingTimeline&&(this.stopTimeline=f.attachTimeline(this.pendingTimeline),this.pendingTimeline=void 0),this._animation=f}get finished(){return this._animation?this.animation.finished:this._finished}then(e,t){return this.finished.finally(e).then(()=>{})}get animation(){return this._animation||(this.keyframeResolver?.resume(),eD=!0,e$(),eL(),eD=!1),this._animation}get duration(){return this.animation.duration}get iterationDuration(){return this.animation.iterationDuration}get time(){return this.animation.time}set time(e){this.animation.time=e}get speed(){return this.animation.speed}get state(){return this.animation.state}set speed(e){this.animation.speed=e}get startTime(){return this.animation.startTime}attachTimeline(e){return this._animation?this.stopTimeline=this.animation.attachTimeline(e):this.pendingTimeline=e,()=>this.stop()}play(){this.animation.play()}pause(){this.animation.pause()}complete(){this.animation.complete()}cancel(){this._animation&&this.animation.cancel(),this.keyframeResolver?.cancel()}}let rg={type:"spring",stiffness:500,damping:25,restSpeed:10},rm={type:"keyframes",duration:.8},ry={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},rb=e=>null!==e,rv=(e,t,n,r={},i,s)=>a=>{let l=na(r,e)||{},u=l.delay||r.delay||0,{elapsed:c=0}=r;c-=nc(u);let d={keyframes:Array.isArray(n)?n:[null,n],ease:"easeOut",velocity:t.getVelocity(),...l,delay:-c,onUpdate:e=>{t.set(e),l.onUpdate&&l.onUpdate(e)},onComplete:()=>{a(),l.onComplete&&l.onComplete()},name:e,motionValue:t,element:s?void 0:i};!function({when:e,delay:t,delayChildren:n,staggerChildren:r,staggerDirection:i,repeat:o,repeatType:s,repeatDelay:a,from:l,elapsed:u,...c}){return!!Object.keys(c).length}(l)&&Object.assign(d,((e,{keyframes:t})=>t.length>2?rm:o.has(e)?e.startsWith("scale")?{type:"spring",stiffness:550,damping:0===t[1]?2*Math.sqrt(550):30,restSpeed:10}:rg:ry)(e,d)),d.duration&&(d.duration=nc(d.duration)),d.repeatDelay&&(d.repeatDelay=nc(d.repeatDelay)),void 0!==d.from&&(d.keyframes[0]=d.from);let h=!1;if(!1!==d.type&&(0!==d.duration||d.repeatDelay)||(rd(d),0===d.delay&&(h=!0)),(eC.instantAnimations||eC.skipAnimations)&&(h=!0,rd(d),d.delay=0),d.allowFlatten=!l.type&&!l.ease,h&&!s&&void 0!==t.get()){let e=function(e,{repeat:t,repeatType:n="loop"},r){let i=e.filter(rb),o=t&&"loop"!==n&&t%2==1?0:i.length-1;return i[o]}(d.keyframes,l);if(void 0!==e)return void eP.update(()=>{d.onUpdate(e),d.onComplete()})}return l.isSync?new n7(d):new rp(d)};function rx(e,t,{delay:n=0,transitionOverride:r,type:i}={}){let{transition:o=e.getDefaultTransition(),transitionEnd:s,...a}=t,l=o?.reduceMotion;r&&(o=r);let u=[],c=i&&e.animationState&&e.animationState.getState()[i];for(let t in a){let r=e.getValue(t,e.latestValues[t]??null),i=a[t];if(void 0===i||c&&function({protectedKeys:e,needsAnimating:t},n){let r=e.hasOwnProperty(n)&&!0!==t[n];return t[n]=!1,r}(c,t))continue;let s={delay:n,...na(o||{},t)},d=r.get();if(void 0!==d&&!r.isAnimating&&!Array.isArray(i)&&i===d&&!s.velocity)continue;let h=!1;if(window.MotionHandoffAnimation){let n=e.props[ne];if(n){let e=window.MotionHandoffAnimation(n,t,eP);null!==e&&(s.startTime=e,h=!0)}}nu(e,t);let f=l??e.shouldReduceMotion;r.start(rv(t,r,i,f&&K.has(t)?{type:!1}:s,e,h));let p=r.animation;p&&u.push(p)}return s&&Promise.all(u).then(()=>{eP.update(()=>{s&&function(e,t){let{transitionEnd:n={},transition:r={},...i}=ns(e,t)||{};for(let t in i={...i,...n}){var o;let n=nl(o=i[t])?o[o.length-1]||0:o;e.hasValue(t)?e.getValue(t).set(n):e.addValue(t,eZ(n))}}(e,s)})}),u}function rw(e,t,n,r=0,i=1){let o=Array.from(e).sort((e,t)=>
1e.sortNodePosition(t)).indexOf(t),s=e.size,a=(s-1)*r;return"function"==typeof n?n(o,s):1===i?o*r:a-o*r}function rS(e,t,n={}){let r=ns(e,t,"exit"===n.type?e.presenceContext?.custom:void 0),{transition:i=e.getDefaultTransition()||{}}=r||{};n.transitionOverride&&(i=n.transitionOverride);let o=r?()=>Promise.all(rx(e,r,n)):()=>Promise.resolve(),s=e.variantChildren&&e.variantChildren.size?(r=0)=>{let{delayChildren:o=0,staggerChildren:s,staggerDirection:a}=i;return function(e,t,n=0,r=0,i=0,o=1,s){let a=[];for(let l of e.variantChildren)l.notify("AnimationStart",t),a.push(rS(l,t,{...s,delay:n+("function"==typeof r?0:r)+rw(e.variantChildren,l,r,i,o)}).then(()=>l.notify("AnimationComplete",t)));return Promise.all(a)}(e,t,r,o,s,a,n)}:()=>Promise.resolve(),{when:a}=i;if(!a)return Promise.all([o(),s(n.delay)]);{let[e,t]="beforeChildren"===a?[o,s]:[s,o];return e().then(()=>t())}}let rk=e6.length;function rC(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}let rE=[...e4].reverse(),rA=e4.length;function rT(e=!1){return{isActive:e,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function rP(){return{animate:rT(!0),whileInView:rT(),whileHover:rT(),whileTap:rT(),whileDrag:rT(),whileFocus:rT(),exit:rT()}}class rR extends no{constructor(e){super(e),e.animationState||(e.animationState=function(e){let t=t=>Promise.all(t.map(({animation:t,options:n})=>(function(e,t,n={}){let r;if(e.notify("AnimationStart",t),Array.isArray(t))r=Promise.all(t.map(t=>
1rS(e,t,n)));else if("string"==typeof t)r=rS(e,t,n);else{let i="function"==typeof t?ns(e,t,n.custom):t;r=Promise.all(rx(e,i,n))}return r.then(()=>{e.notify("AnimationComplete",t)})})(e,t,n))),n=rP(),r=!0,i=t=>(n,r)=>{let i=ns(e,r,"exit"===t?e.presenceContext?.custom:void 0);if(i){let{transition:e,transitionEnd:t,...r}=i;n={...n,...r,...t}}return n};function o(o){let{props:s}=e,a=function e(t){if(!t)return;if(!t.isControllingVariants){let n=t.parent&&e(t.parent)||{};return void 0!==t.props.initial&&(n.initial=t.props.initial),n}let n={};for(let e=0;e<rk;e++){let r=e6[e],i=t.props[r];(e3(i)||!1===i)&&(n[r]=i)}return n}(e.parent)||{},l=[],u=new Set,c={},d=1/0;for(let t=0;t<rA;t++){var h,f;let p=rE[t],g=n[p],m=void 0!==s[p]?s[p]:a[p],y=e3(m),b=p===o?g.isActive:null;!1===b&&(d=t);let v=m===a[p]&&m!==s[p]&&y;if(v&&r&&e.manuallyAnimateOnMount&&(v=!1),g.protectedKeys={...c},!g.isActive&&null===b||!m&&!g.prevProp||e5(m)||"boolean"==typeof m)continue;let x=(h=g.prevProp,"string"==typeof(f=m)?f!==h:!!Array.isArray(f)&&!rC(f,h)),w=x||p===o&&g.isActive&&!v&&y||t>d&&y,S=!1,k=Array.isArray(m)?m:[m],C=k.reduce(i(p),{});!1===b&&(C={});let{prevResolvedValues:E={}}=g,A={...E,...C},T=t=>{w=!0,u.has(t)&&(S=!0,u.delete(t)),g.needsAnimating[t]=!0;let n=e.getValue(t);n&&(n.liveStyle=!1)};for(let e in A){let t=C[e],n=E[e];if(!c.hasOwnProperty(e))(nl(t)&&nl(n)?rC(t,n):t===n)?void 0!==t&&u.has(e)?T(e):g.protectedKeys[e]=!0:null!=t?T(e):u.add(e)}g.prevProp=m,g.prevResolvedValues=C,g.isActive&&(c={...c,...C}),r&&e.blockInitialAnimation&&(w=!1);let P=v&&x,R=!P||S;w&&R&&l.push(...k.map(t=>{let n={type:p};if("string"==typeof t&&r&&!P&&e.manuallyAnimateOnMount&&e.parent){let{parent:r}=e,i=ns(r,t);if(r.enteringChildren&&i){let{delayChildren:t}=i.transition||{};n.delay=rw(r.enteringChildren,e,t)}}return{animation:t,options:n}}))}if(u.size){let t={};if("boolean"!=typeof s.initial){let n=ns(e,Array.isArray(s.initial)?s.initial[0]:s.initial);n&&n.transition&&(t.transition=n.transition)}u.forEach(n=>{let r=e.getBaseTarget(n),i=e.getValue(n);i&&(i.liveStyle=!0),t[n]=r??null}),l.push({animation:t})}let p=!!l.length;return r&&(!1===s.initial||s.initial===s.animate)&&!e.manuallyAnimateOnMount&&(p=!1),r=!1,p?t(l):Promise.resolve()}return{animateChanges:o,setActive:function(t,r){if(n[t].isActive===r)return Promise.resolve();e.variantChildren?.forEach(e=>e.animationState?.setActive(t,r)),n[t].isActive=r;let i=o(t);for(let e in n)n[e].protectedKeys={};return i},setAnimateFunction:function(n){t=n(e)},getState:()=>n,reset:()=>{n=rP()}}}(e))}updateAnimationControlsSubscription(){let{animate:e}=this.node.getProps();e5(e)&&(this.unmountControls=e.subscribe(this.node))}mount(){this.updateAnimationControlsSubscription()}update(){let{animate:e}=this.node.getProps(),{animate:t}=this.node.prevProps||{};e!==t&&this.updateAnimationControlsSubscription()}unmount(){this.node.animationState.reset(),this.unmountControls?.()}}let rM=0;class rj extends no{constructor(){super(...arguments),this.id=rM++}update(){if(!this.node.presenceContext)return;let{isPresent:e,onExitComplete:t}=this.node.presenceContext,{isPresent:n}=this.node.prevPresenceContext||{};if(!this.node.animationState||e===n)return;let r=this.node.animationState.setActive("exit",!e);t&&!e&&r.then(()=>{t(this.id)})}mount(){let{register:e,onExitComplete:t}=this.node.presenceContext||{};t&&t(this.id),e&&(this.unmount=e(this.id))}unmount(){}}let rI={x:!1,y:!1};function rO(e){return[e("x"),e("y")]}function r_(e){return e.max-e.min}function rD(e,t,n,r=.5){e.origin=r,e.originPoint=tv(t.min,t.max,e.origin),e.scale=r_(n)/r_(t),e.translate=tv(n.min,n.max,e.origin)-e.originPoint,(e.scale>=.9999&&e.scale<=1.0001||isNaN(e.scale))&&(e.scale=1),(e.translate>=-.01&&e.translate<=.01||isNaN(e.translate))&&(e.translate=0)}function rL(e,t,n,r){rD(e.x,t.x,n.x,r?r.originX:void 0),rD(e.y,t.y,n.y,r?r.originY:void 0)}function r$(e,t,n){e.min=n.min+t.min,e.max=e.min+r_(t)}function rV(e,t,n){e.min=t.min-n.min,e.max=e.min+r_(t)}function rN(e,t,n){rV(e.x,t.x,n.x),rV(e.y,t.y,n.y)}let rz=new Set(["BUTTON","INPUT","SELECT","TEXTAREA","A"]);function rF(e){return rz.has(e.tagName)||!0===e.isContentEditable}function rB(e,t,n,r={passive:!0}){return e.addEventListener(t,n,r),()=>e.removeEventListener(t,n)}let rH=e=>
1"mouse"===e.pointerType?"number"!=typeof e.button||e.button<=0:!1!==e.isPrimary;function rU(e){return{point:{x:e.pageX,y:e.pageY}}}function rW(e,t,n,r){return rB(e,t,e=>rH(e)&&n(e,rU(e)),r)}let rY=({current:e})=>e?e.ownerDocument.defaultView:null,rG=(e,t)=>Math.abs(e-t),rX=new Set(["auto","scroll"]);class rK{constructor(e,t,{transformPagePoint:n,contextWindow:r=window,dragSnapToOrigin:i=!1,distanceThreshold:o=3,element:s}={}){if(this.startEvent=null,this.lastMoveEvent=null,this.lastMoveEventInfo=null,this.handlers={},this.contextWindow=window,this.scrollPositions=new Map,this.removeScrollListeners=null,this.onElementScroll=e=>{this.handleScroll(e.target)},this.onWindowScroll=()=>{this.handleScroll(window)},this.updatePoint=()=>{if(!(this.lastMoveEvent&&this.lastMoveEventInfo))return;let e=rJ(this.lastMoveEventInfo,this.history),t=null!==this.startEvent,n=function(e,t){return Math.sqrt(rG(e.x,t.x)**2+rG(e.y,t.y)**2)}(e.offset,{x:0,y:0})>=this.distanceThreshold;if(!t&&!n)return;let{point:r}=e,{timestamp:i}=eM;this.history.push({...r,timestamp:i});let{onStart:o,onMove:s}=this.handlers;t||(o&&o(this.lastMoveEvent,e),this.startEvent=this.lastMoveEvent),s&&s(this.lastMoveEvent,e)},this.handlePointerMove=(e,t)=>{this.lastMoveEvent=e,this.lastMoveEventInfo=rq(t,this.transformPagePoint),eP.update(this.updatePoint,!0)},this.handlePointerUp=(e,t)=>{this.end();let{onEnd:n,onSessionEnd:r,resumeAnimation:i}=this.handlers;if((this.dragSnapToOrigin||!this.startEvent)&&i&&i(),!(this.lastMoveEvent&&this.lastMoveEventInfo))return;let o=rJ("pointercancel"===e.type?this.lastMoveEventInfo:rq(t,this.transformPagePoint),this.history);this.startEvent&&n&&n(e,o),r&&r(e,o)},!rH(e))return;this.dragSnapToOrigin=i,this.handlers=t,this.transformPagePoint=n,this.distanceThreshold=o,this.contextWindow=r||window;let a=rq(rU(e),this.transformPagePoint),{point:l}=a,{timestamp:u}=eM;this.history=[{...l,timestamp:u}];let{onSessionStart:c}=t;c&&c(e,rJ(a,this.history)),this.removeListeners=nh(rW(this.contextWindow,"pointermove",this.handlePointerMove),rW(this.contextWindow,"pointerup",this.handlePointerUp),rW(this.contextWindow,"pointercancel",this.handlePointerUp)),s&&this.startScrollTracking(s)}startScrollTracking(e){let t=e.parentElement;for(;t;){let e=getComputedStyle(t);(rX.has(e.overflowX)||rX.has(e.overflowY))&&this.scrollPositions.set(t,{x:t.scrollLeft,y:t.scrollTop}),t=t.parentElement}this.scrollPositions.set(window,{x:window.scrollX,y:window.scrollY}),window.addEventListener("scroll",this.onElementScroll,{capture:!0,passive:!0}),window.addEventListener("scroll",this.onWindowScroll,{passive:!0}),this.removeScrollListeners=()=>{window.removeEventListener("scroll",this.onElementScroll,{capture:!0}),window.removeEventListener("scroll",this.onWindowScroll)}}handleScroll(e){let t=this.scrollPositions.get(e);if(!t)return;let n=e===window,r=n?{x:window.scrollX,y:window.scrollY}:{x:e.scrollLeft,y:e.scrollTop},i={x:r.x-t.x,y:r.y-t.y};(0!==i.x||0!==i.y)&&(n?this.lastMoveEventInfo&&(this.lastMoveEventInfo.point.x+=i.x,this.lastMoveEventInfo.point.y+=i.y):this.history.length>0&&(this.history[0].x-=i.x,this.history[0].y-=i.y),this.scrollPositions.set(e,r),eP.update(this.updatePoint,!0))}updateHandlers(e){this.handlers=e}end(){this.removeListeners&&this.removeListeners(),this.removeScrollListeners&&this.removeScrollListeners(),this.scrollPositions.clear(),eR(this.updatePoint)}}function rq(e,t){return t?{point:t(e.point)}:e}function rZ(e,t){return{x:e.x-t.x,y:e.y-t.y}}function rJ({point:e},t){return{point:e,delta:rZ(e,rQ(t)),offset:rZ(e,t[0]),velocity:function(e,t){if(e.length<2)return{x:0,y:0};let n=e.length-1,r=null,i=rQ(e);for(;n>=0&&(r=e[n],!(i.timestamp-r.timestamp>nc(.1)));)n--;if(!r)return{x:0,y:0};let o=(i.timestamp-r.timestamp)/1e3;if(0===o)return{x:0,y:0};let s={x:(i.x-r.x)/o,y:(i.y-r.y)/o};return s.x===1/0&&(s.x=0),s.y===1/0&&(s.y=0),s}(t,.1)}}function rQ(e){return e[e.length-1]}function r0(e,t,n){return{min:void 0!==t?e.min+t:void 0,max:void 0!==n?e.max+n-(e.max-e.min):void 0}}function r1(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 r2(e,t,n){return{min:r5(e,t),max:r5(e,n)}}function r5(e,t){return"number"==typeof e?e:e[t]||0}let r3=new WeakMap;class r4{constructor(e){this.openDragLock=null,this.isDragging=!1,this.currentDirection=null,this.originPoint={x:0,y:0},this.constraints=!1,this.hasMutatedConstraints=!1,this.elastic=G(),this.latestPointerEvent=null,this.latestPanInfo=null,this.visualElement=e}start(e,{snapToCursor:t=!1,distanceThreshold:n}={}){let{presenceContext:r}=this.visualElement;if(r&&!1===r.isPresent)return;let i=e=>{t?(this.stopAnimation(),this.snapToCursor(rU(e).point)):this.pauseAnimation()},o=(e,t)=>{this.stopAnimation();let{drag:n,dragPropagation:r,onDragStart:i}=this.getProps();if(n&&!r&&(this.openDragLock&&this.openDragLock(),this.openDragLock=function(e){if("x"===e||"
1y"===e)if(rI[e])return null;else return rI[e]=!0,()=>{rI[e]=!1};return rI.x||rI.y?null:(rI.x=rI.y=!0,()=>{rI.x=rI.y=!1})}(n),!this.openDragLock))return;this.latestPointerEvent=e,this.latestPanInfo=t,this.isDragging=!0,this.currentDirection=null,this.resolveConstraints(),this.visualElement.projection&&(this.visualElement.projection.isAnimationBlocked=!0,this.visualElement.projection.target=void 0),rO(e=>{let t=this.getAxisMotionValue(e).get()||0;if(x.test(t)){let{projection:n}=this.visualElement;if(n&&n.layout){let r=n.layout.layoutBox[e];r&&(t=r_(r)*(parseFloat(t)/100))}}this.originPoint[e]=t}),i&&eP.postRender(()=>i(e,t)),nu(this.visualElement,"transform");let{animationState:o}=this.visualElement;o&&o.setActive("whileDrag",!0)},s=(e,t)=>{this.latestPointerEvent=e,this.latestPanInfo=t;let{dragPropagation:n,dragDirectionLock:r,onDirectionLock:i,onDrag:o}=this.getProps();if(!n&&!this.openDragLock)return;let{offset:s}=t;if(r&&null===this.currentDirection){this.currentDirection=function(e,t=10){let n=null;return Math.abs(e.y)>t?n="y":Math.abs(e.x)>t&&(n="x"),n}(s),null!==this.currentDirection&&i&&i(this.currentDirection);return}this.updateAxis("x",t.point,s),this.updateAxis("y",t.point,s),this.visualElement.render(),o&&o(e,t)},a=(e,t)=>{this.latestPointerEvent=e,this.latestPanInfo=t,this.stop(e,t),this.latestPointerEvent=null,this.latestPanInfo=null},l=()=>rO(e=>"paused"===this.getAnimationState(e)&&this.getAxisMotionValue(e).animation?.play()),{dragSnapToOrigin:u}=this.getProps();this.panSession=new rK(e,{onSessionStart:i,onStart:o,onMove:s,onSessionEnd:a,resumeAnimation:l},{transformPagePoint:this.visualElement.getTransformPagePoint(),dragSnapToOrigin:u,distanceThreshold:n,contextWindow:rY(this.visualElement),element:this.visualElement.current})}stop(e,t){let n=e||this.latestPointerEvent,r=t||this.latestPanInfo,i=this.isDragging;if(this.cancel(),!i||!r||!n)return;let{velocity:o}=r;this.startAnimation(o);let{onDragEnd:s}=this.getProps();s&&eP.postRender(()=>s(n,r))}cancel(){this.isDragging=!1;let{projection:e,animationState:t}=this.visualElement;e&&(e.isAnimationBlocked=!1),this.endPanSession();let{dragPropagation:n}=this.getProps();!n&&this.openDragLock&&(this.openDragLock(),this.openDragLock=null),t&&t.setActive("whileDrag",!1)}endPanSession(){this.panSession&&this.panSession.end(),this.panSession=void 0}updateAxis(e,t,n){let{drag:r}=this.getProps();if(!n||!r6(e,r,this.currentDirection))return;let i=this.getAxisMotionValue(e),o=this.originPoint[e]+n[e];this.constraints&&this.constraints[e]&&(o=function(e,{min:t,max:n},r){return void 0!==t&&e<t?e=r?tv(t,e,r.min):Math.max(e,t):void 0!==n&&e>n&&(e=r?tv(n,e,r.max):Math.min(e,n)),e}(o,this.constraints[e],this.elastic[e])),i.set(o)}resolveConstraints(){let{dragConstraints:e,dragElastic:t}=this.getProps(),n=this.visualElement.projection&&!this.visualElement.projection.layout?this.visualElement.projection.measure(!1):this.visualElement.projection?.layout,r=this.constraints;e&&nn(e)?this.constraints||(this.constraints=this.resolveRefConstraints()):e&&n?this.constraints=function(e,{top:t,left:n,bottom:r,right:i}){return{x:r0(e.x,n,i),y:r0(e.y,t,r)}}(n.layoutBox,e):this.constraints=!1,this.elastic=function(e=.35){return!1===e?e=0:!0===e&&(e=.35),{x:r2(e,"left","right"),y:r2(e,"top","bottom")}}(t),r!==this.constraints&&n&&this.constraints&&!this.hasMutatedConstraints&&rO(e=>{!1!==this.constraints&&this.getAxisMotionValue(e)&&(this.constraints[e]=function(e,t){let n={};return void 0!==t.min&&(n.min=t.min-e.min),void 0!==t.max&&(n.max=t.max-e.min),n}(n.layoutBox[e],this.constraints[e]))})}resolveRefConstraints(){var e;let{dragConstraints:t,onMeasureDragConstraints:n}=this.getProps();if(!t||!nn(t))return!1;let r=t.current;ee(null!==r,"If `dragConstraints` is set as a React ref, that ref must be passed to another component's `ref` prop.","drag-constraints-ref");let{projection:i}=this.visualElement;if(!i||!i.layout)return!1;let o=function(e,t,n){let r=tL(e,n),{scroll:i}=t;return i&&(tO(r.x,i.offset.x),tO(r.y,i.offset.y)),r}(r,i.root,this.visualElement.getTransformPagePoint()),s=(e=i.layout.layoutBox,{x:r1(e.x,o.x),y:r1(e.y,o.y)});if(n){let e=n(function({x:e,y:t}){return{top:t.min,right:e.max,bottom:t.max,left:e.min}}(s));this.hasMutatedConstraints=!!e,e&&(s=tE(e))}return s}startAnimation(e){let{drag:t,dragMomentum:n,dragElastic:r,dragTransition:i,dragSnapToOrigin:o,onDragTransitionEnd:s}=this.getProps(),a=this.constraints||{};return Promise.all(rO(s=>{if(!r6(s,t,this.currentDirection))return;let l=a&&a[s]||{};o&&(l={min:0,max:0});let u={type:"inertia",velocity:n?e[s]:0,bounceStiffness:r?200:1e6,bounceDamping:r?40:1e7,timeConstant:750,restDelta:1,restSpeed:10,...i,...l};return this.startAxisValueAnimation(s,u)})).then(s)}startAxisValueAnimation(e,t){let n=this.getAxisMotionValue(e);return nu(this.visualElement,e),n.start(rv(e,n,0,t,this.visualElement,!1))}stopAnimation(){rO(e=>this.getAxisMotionValue(e).stop())}pauseAnimation(){rO(e=>this.getAxisMotionValue(e).animation?.pause())}getAnimationState(e){return this.getAxisMotionValue(e).animation?.state}getAxisMotionValue(e){let t=`_drag${e.toUpperCase()}`,n=this.visualElement.getProps();return n[t]||this.visualElement.getValue(e,(n.initial?n.initial[e]:void 0)||0)}snapToCursor(e){rO(t=>{let{drag:n}=this.getProps();if(!r6(t,n,this.currentDirection))return;let{projection:r}=this.visualElement,i=this.getAxisMotionValue(t);if(r&&r.layout){let{min:n,max:o}=r.layout.layoutBox[t],s=i.get()||0;i.set(e[t]-tv(n,o,.5)+s)}})}scalePositionWithinConstraints(){if(!this.visualElement.current)return;let{drag:e,dragConstraints:t}=this.getProps(),{projection:n}=this.visualElement;if(!nn(t)||!n||!this.constraints)return;this.stopAnimation();let r={x:0,y:0};rO(e=>{let t=this.getAxisMotionValue(e);if(t&&!1!==this.constraints){let n=t.get();r[e]=function(e,t){let n=.5,r=r_(e),i=r_(t);return i>r?n=n1(t.min,t.max-r,e.min):r>i&&(n=n1(e.min,e.max-i,t.min)),s(0,1,n)}({min:n,max:n},this.constraints[e])}});let{transformTemplate:i}=this.visualElement.getProps();this.visualElement.current.style.transform=i?i({},""):"none",n.root&&n.root.updateScroll(),n.updateLayout(),this.resolveConstraints(),rO(t=>{if(!r6(t,e,null))return;let n=this.getAxisMotionValue(t),{min:i,max:o}=this.constraints[t];n.set(tv(i,o,r[t]))})}addListeners(){if(!this.visualElement.current)return;r3.set(this.visualElement,this);let e=this.visualElement.current,t=rW(e,"pointerdown",t=>{let{drag:n,dragListener:r=!0}=this.getProps(),i=t.target,o=i!==e&&rF(i);n&&r&&!o&&this.start(t)}),n=()=>{let{dragConstraints:e}=this.getProps();nn(e)&&e.current&&(this.constraints=this.resolveRefConstraints())},{projection:r}=this.visualElement,i=r.addEventListener("measure",n);r&&!r.layout&&(r.root&&r.root.updateScroll(),r.updateLayout()),eP.read(n);let o=rB(window,"resize",()=>this.scalePositionWithinConstraints()),s=r.addEventListener("didUpdate",({delta:e,hasLayoutChanged:t})=>{this.isDragging&&t&&(rO(t=>{let n=this.getAxisMotionValue(t);n&&(this.originPoint[t]+=e[t].translate,n.set(n.get()+e[t].translate))}),this.visualElement.render())});return()=>{o(),t(),i(),s&&s()}}getProps(){let e=this.visualElement.getProps(),{drag:t=!1,dragDirectionLock:n=!1,dragPropagation:r=!1,dragConstraints:i=!1,dragElastic:o=.35,dragMomentum:s=!0}=e;return{...e,drag:t,dragDirectionLock:n,dragPropagation:r,dragConstraints:i,dragElastic:o,dragMomentum:s}}}
1function r6(e,t,n){return(!0===t||t===e)&&(null===n||n===e)}class r8 extends no{constructor(e){super(e),this.removeGroupControls=ek,this.removeListeners=ek,this.controls=new r4(e)}mount(){let{dragControls:e}=this.node.getProps();e&&(this.removeGroupControls=e.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||ek}update(){let{dragControls:e}=this.node.getProps(),{dragControls:t}=this.node.prevProps||{};e!==t&&(this.removeGroupControls(),e&&(this.removeGroupControls=e.subscribe(this.controls)))}unmount(){this.removeGroupControls(),this.removeListeners(),this.controls.isDragging||this.controls.endPanSession()}}let r9=e=>(t,n)=>{e&&eP.postRender(()=>e(t,n))};class r7 extends no{constructor(){super(...arguments),this.removePointerDownListener=ek}onPointerDown(e){this.session=new rK(e,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint(),contextWindow:rY(this.node)})}createPanHandlers(){let{onPanSessionStart:e,onPanStart:t,onPan:n,onPanEnd:r}=this.node.getProps();return{onSessionStart:r9(e),onStart:r9(t),onMove:n,onEnd:(e,t)=>{delete this.session,r&&eP.postRender(()=>r(e,t))}}}mount(){this.removePointerDownListener=rW(this.node.current,"pointerdown",e=>this.onPointerDown(e))}update(){this.session&&this.session.updateHandlers(this.createPanHandlers())}unmount(){this.removePointerDownListener(),this.session&&this.session.end()}}let ie={hasAnimatedSinceResize:!0,hasEverUpdated:!1};var it=n(75601);let ir=!1;class ii extends tV.Component{componentDidMount(){let{visualElement:e,layoutGroup:t,switchLayoutGroup:n,layoutId:r}=this.props,{projection:i}=e;i&&(t.group&&t.group.add(i),n&&n.register&&r&&n.register(i),ir&&i.root.didUpdate(),i.addEventListener("animationComplete",()=>{this.safeToRemove()}),i.setOptions({...i.options,layoutDependency:this.props.layoutDependency,onExitComplete:()=>this.safeToRemove()})),ie.hasEverUpdated=!0}getSnapshotBeforeUpdate(e){let{layoutDependency:t,visualElement:n,drag:r,isPresent:i}=this.props,{projection:o}=n;return o&&(o.isPresent=i,e.layoutDependency!==t&&o.setOptions({...o.options,layoutDependency:t}),ir=!0,r||e.layoutDependency!==t||void 0===t||e.isPresent!==i?o.willUpdate():this.safeToRemove(),e.isPresent!==i&&(i?o.promote():o.relegate()||eP.postRender(()=>{let e=o.getStack();e&&e.members.length||this.safeToRemove()}))),null}componentDidUpdate(){let{projection:e}=this.props.visualElement;e&&(e.root.didUpdate(),eY.postRender(()=>{!e.currentAnimation&&e.isLead()&&this.safeToRemove()}))}componentWillUnmount(){let{visualElement:e,layoutGroup:t,switchLayoutGroup:n}=this.props,{projection:r}=e;ir=!0,r&&(r.scheduleCheckAfterUnmount(),t&&t.group&&t.group.remove(r),n&&n.deregister&&n.deregister(r))}safeToRemove(){let{safeToRemove:e}=this.props;e&&e()}render(){return null}}function io(e){let[t,n]=(0,it.xQ)(),r=(0,tV.useContext)(tB.L);return(0,tF.jsx)(ii,{...e,layoutGroup:r,switchLayoutGroup:(0,tV.useContext)(nt),isPresent:t,safeToRemove:n})}var is=n(73142);function ia(e){return(0,is.G)(e)&&"ownerSVGElement"in e}let il=["TopLeft","TopRight","BottomLeft","BottomRight"],iu=il.length,ic=e=>"string"==typeof e?parseFloat(e):e,id=e=>"number"==typeof e||w.test(e);function ih(e,t){return void 0!==e[t]?e[t]:e.borderRadius}let ip=im(0,.5,nq),ig=im(.5,.95,ek);function im(e,t,n){return r=>r<e?0:r>t?1:n(n1(e,t,r))}function iy(e,t){e.min=t.min,e.max=t.max}function ib(e,t){iy(e.x,t.x),iy(e.y,t.y)}function iv(e,t){e.translate=t.translate,e.scale=t.scale,e.originPoint=t.originPoint,e.origin=t.origin}function ix(e,t,n,r,i){return e-=t,e=r+1/n*(e-r),void 0!==i&&(e=r+1/i*(e-r)),e}function iw(e,t,[n,r,i],o,s){!function(e,t=0,n=1,r=.5,i,o=e,s=e){if(x.test(t)&&(t=parseFloat(t),t=tv(s.min,s.max,t/100)-s.min),"number"!=typeof t)return;let a=tv(o.min,o.max,r);e===o&&(a-=t),e.min=ix(e.min,t,n,a,i),e.max=ix(e.max,t,n,a,i)}(e,t[n],t[r],t[i],t.scale,o,s)}let iS=["x","scaleX","originX"],ik=["y","scaleY","originY"];function iC(e,t,n,r){iw(e.x,t,iS,n?n.x:void 0,r?r.x:void 0),iw(e.y,t,ik,n?n.y:void 0,r?r.y:void 0)}function iE(e){return 0===e.translate&&1===e.scale}function iA(e){return iE(e.x)&&iE(e.y)}function iT(e,t){return e.min===t.min&&e.max===t.max}function iP(e,t){return Math.round(e.min)===Math.round(t.min)&&Math.round(e.max)===Math.round(t.max)}function iR(e,t){return iP(e.x,t.x)&&iP(e.y,t.y)}function iM(e){return r_(e.x)/r_(e.y)}function ij(e,t){return e.translate===t.translate&&e.scale===t.scale&&e.originPoint===t.originPoint}class iI{constructor(){this.members=[]}add(e){eH(this.members,e),e.scheduleRender()}remove(e){if(eU(this.members,e),e===this.prevLead&&(this.prevLead=void 0),e===this.lead){let e=this.members[this.members.length-1];e&&this.promote(e)}}relegate(e){let t,n=this.members.findIndex(t=>e===t);if(0===n)return!1;for(let e=n;e>=0;e--){let n=this.members[e];if(!1!==n.isPresent){t=n;break}}return!!t&&(this.promote(t),!0)}promote(e,t){let n=this.lead;if(e!==n&&(this.prevLead=n,this.lead=e,e.show(),n)){n.instance&&n.scheduleRender(),e.scheduleRender();let r=n.options.layoutDependency,i=e.options.layoutDependency;(void 0===r||void 0===i||r!==i)&&(e.resumeFrom=n,t&&(e.resumeFrom.preserveOpacity=!0),n.snapshot&&(e.snapshot=n.snapshot,e.snapshot.latestValues=n.animationValues||n.latestValues),e.root&&e.root.isUpdating&&(e.isLayoutDirty=!0));let{crossfade:o}=e.options;!1===o&&n.hide()}}
1exitAnimationComplete(){this.members.forEach(e=>{let{options:t,resumingFrom:n}=e;t.onExitComplete&&t.onExitComplete(),n&&n.options.onExitComplete&&n.options.onExitComplete()})}scheduleRender(){this.members.forEach(e=>{e.instance&&e.scheduleRender(!1)})}removeLeadSnapshot(){this.lead&&this.lead.snapshot&&(this.lead.snapshot=void 0)}}let iO=(e,t)=>e.depth-t.depth;class i_{constructor(){this.children=[],this.isDirty=!1}add(e){eH(this.children,e),this.isDirty=!0}remove(e){eU(this.children,e),this.isDirty=!0}forEach(e){this.isDirty&&this.children.sort(iO),this.isDirty=!1,this.children.forEach(e)}}let iD={nodes:0,calculatedTargetDeltas:0,calculatedProjections:0},iL=["","X","Y","Z"],i$=0;function iV(e,t,n,r){let{latestValues:i}=t;i[e]&&(n[e]=i[e],t.setStaticValue(e,0),r&&(r[e]=0))}function iN({attachResizeListener:e,defaultParent:t,measureScroll:n,checkIsScrollRoot:r,resetTransform:i}){return class{constructor(e={},n=t?.()){this.id=i$++,this.animationId=0,this.animationCommitId=0,this.children=new Set,this.options={},this.isTreeAnimating=!1,this.isAnimationBlocked=!1,this.isLayoutDirty=!1,this.isProjectionDirty=!1,this.isSharedProjectionDirty=!1,this.isTransformDirty=!1,this.updateManuallyBlocked=!1,this.updateBlockedByResize=!1,this.isUpdating=!1,this.isSVG=!1,this.needsReset=!1,this.shouldResetTransform=!1,this.hasCheckedOptimisedAppear=!1,this.treeScale={x:1,y:1},this.eventHandlers=new Map,this.hasTreeAnimated=!1,this.layoutVersion=0,this.updateScheduled=!1,this.scheduleUpdate=()=>this.update(),this.projectionUpdateScheduled=!1,this.checkUpdateFailed=()=>{this.isUpdating&&(this.isUpdating=!1,this.clearAllSnapshots())},this.updateProjection=()=>{this.projectionUpdateScheduled=!1,eA.value&&(iD.nodes=iD.calculatedTargetDeltas=iD.calculatedProjections=0),this.nodes.forEach(iB),this.nodes.forEach(iK),this.nodes.forEach(iq),this.nodes.forEach(iH),eA.addProjectionMetrics&&eA.addProjectionMetrics(iD)},this.resolvedRelativeTargetAt=0,this.linkedParentVersion=0,this.hasProjected=!1,this.isVisible=!0,this.animationProgress=0,this.sharedNodes=new Map,this.latestValues=e,this.root=n?n.root||n:this,this.path=n?[...n.path,n]:[],this.parent=n,this.depth=n?n.depth+1:0;for(let e=0;e<this.path.length;e++)this.path[e].shouldResetTransform=!0;this.root===this&&(this.nodes=new i_)}addEventListener(e,t){return this.eventHandlers.has(e)||this.eventHandlers.set(e,new eW),this.eventHandlers.get(e).add(t)}notifyListeners(e,...t){let n=this.eventHandlers.get(e);n&&n.notify(...t)}hasListeners(e){return this.eventHandlers.has(e)}mount(t){if(this.instance)return;this.isSVG=ia(t)&&!(ia(t)&&"svg"===t.tagName),this.instance=t;let{layoutId:n,layout:r,visualElement:i}=this.options;if(i&&!i.current&&i.mount(t),this.root.nodes.add(this),this.parent&&this.parent.children.add(this),this.root.hasTreeAnimated&&(r||n)&&(this.isLayoutDirty=!0),e){let n,r=0,i=()=>this.root.updateBlockedByResize=!1;eP.read(()=>{r=window.innerWidth}),e(t,()=>{let e=window.innerWidth;e!==r&&(r=e,this.root.updateBlockedByResize=!0,n&&n(),n=function(e,t){let n=eX.now(),r=({timestamp:t})=>{let i=t-n;i>=250&&(eR(r),e(i-250))};return eP.setup(r,!0),()=>eR(r)}(i,250),ie.hasAnimatedSinceResize&&(ie.hasAnimatedSinceResize=!1,this.nodes.forEach(iX)))})}n&&this.root.registerSharedNode(n,this),!1!==this.options.animate&&i&&(n||r)&&this.addEventListener("didUpdate",({delta:e,hasLayoutChanged:t,hasRelativeLayoutChanged:n,layout:r})=>{if(this.isTreeAnimationBlocked()){this.target=void 0,this.relativeTarget=void 0;return}let o=this.options.transition||i.getDefaultTransition()||i2,{onLayoutAnimationStart:s,onLayoutAnimationComplete:a}=i.getProps(),l=!this.targetLayout||!iR(this.targetLayout,r),u=!t&&n;if(this.options.layoutRoot||this.resumeFrom||u||t&&(l||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0);let t={...na(o,"layout"),onPlay:s,onComplete:a};(i.shouldReduceMotion||this.options.layoutRoot)&&(t.delay=0,t.type=!1),this.startAnimation(t),this.setAnimationOrigin(e,u)}else t||iX(this),this.isLead()&&this.options.onExitComplete&&this.options.onExitComplete();this.targetLayout=r})}unmount(){this.options.layoutId&&this.willUpdate(),this.root.nodes.remove(this);let e=this.getStack();e&&e.remove(this),this.parent&&this.parent.children.delete(this),this.instance=void 0,this.eventHandlers.clear(),eR(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.forEac
1h(iZ),this.animationId++)}getTransformTemplate(){let{visualElement:e}=this.options;return e&&e.getProps().transformTemplate}willUpdate(e=!0){if(this.root.hasTreeAnimated=!0,this.root.isUpdateBlocked()){this.options.onExitComplete&&this.options.onExitComplete();return}if(window.MotionCancelOptimisedAnimation&&!this.hasCheckedOptimisedAppear&&function e(t){if(t.hasCheckedOptimisedAppear=!0,t.root===t)return;let{visualElement:n}=t.options;if(!n)return;let r=n.props[ne];if(window.MotionHasOptimisedAnimation(r,"transform")){let{layout:e,layoutId:n}=t.options;window.MotionCancelOptimisedAnimation(r,"transform",eP,!(e||n))}let{parent:i}=t;i&&!i.hasCheckedOptimisedAppear&&e(i)}(this),this.root.isUpdating||this.root.startUpdate(),this.isLayoutDirty)return;this.isLayoutDirty=!0;for(let e=0;e<this.path.length;e++){let t=this.path[e];t.shouldResetTransform=!0,t.updateScroll("snapshot"),t.options.layoutRoot&&t.willUpdate(!1)}let{layoutId:t,layout:n}=this.options;if(void 0===t&&!n)return;let r=this.getTransformTemplate();this.prevTransformTemplateValue=r?r(this.latestValues,""):void 0,this.updateSnapshot(),e&&this.notifyListeners("willUpdate")}update(){if(this.updateScheduled=!1,this.isUpdateBlocked()){this.unblockUpdate(),this.clearAllSnapshots(),this.nodes.forEach(iW);return}if(this.animationId<=this.animationCommitId)return void this.nodes.forEach(iY);this.animationCommitId=this.animationId,this.isUpdating?(this.isUpdating=!1,this.nodes.forEach(iG),this.nodes.forEach(iz),this.nodes.forEach(iF)):this.nodes.forEach(iY),this.clearAllSnapshots();let e=eX.now();eM.delta=s(0,1e3/60,e-eM.timestamp),eM.timestamp=e,eM.isProcessing=!0,ej.update.process(eM),ej.preRender.process(eM),ej.render.process(eM),eM.isProcessing=!1}didUpdate(){this.updateScheduled||(this.updateScheduled=!0,eY.read(this.scheduleUpdate))}clearAllSnapshots(){this.nodes.forEach(iU),this.sharedNodes.forEach(iJ)}scheduleUpdateProjection(){this.projectionUpdateScheduled||(this.projectionUpdateScheduled=!0,eP.preRender(this.updateProjection,!1,!0))}scheduleCheckAfterUnmount(){eP.postRender(()=>{this.isLayoutDirty?this.root.didUpdate():this.root.checkUpdateFailed()})}updateSnapshot(){!this.snapshot&&this.instance&&(this.snapshot=this.measure(),!this.snapshot||r_(this.snapshot.measuredBox.x)||r_(this.snapshot.measuredBox.y)||(this.snapshot=void 0))}updateLayout(){if(!this.instance||(this.updateScroll(),!(this.options.alwaysMeasureLayout&&this.isLead())&&!this.isLayoutDirty))return;if(this.resumeFrom&&!this.resumeFrom.instance)for(let e=0;e<this.path.length;e++)this.path[e].updateScroll();let e=this.layout;this.layout=this.measure(!1),this.layoutVersion++,this.layoutCorrected=G(),this.isLayoutDirty=!1,this.projectionDelta=void 0,this.notifyListeners("measure",this.layout.layoutBox);let{visualElement:t}=this.options;t&&t.notify("LayoutMeasure",this.layout.layoutBox,e?e.layoutBox:void 0)}updateScroll(e="measure"){let t=!!(this.options.layoutScroll&&this.instance);if(this.scroll&&this.scroll.animationId===this.root.animationId&&this.scroll.phase===e&&(t=!1),t&&this.instance){let t=r(this.instance);this.scroll={animationId:this.root.animationId,phase:e,isRoot:t,offset:n(this.instance),wasRoot:this.scroll?this.scroll.isRoot:t}}}resetTransform(){if(!i)return;let e=this.isLayoutDirty||this.shouldResetTransform||this.options.alwaysMeasureLayout,t=this.projectionDelta&&!iA(this.projectionDelta),n=this.getTransformTemplate(),r=n?n(this.latestValues,""):void 0,o=r!==this.prevTransformTemplateValue;e&&this.instance&&(t||tP(this.latestValues)||o)&&(i(this.instance,r),this.shouldResetTransform=!1,this.scheduleRender())}measure(e=!0){var t;let n=this.measurePageBox(),r=this.removeElementScroll(n);return e&&(r=this.removeTransform(r)),i4((t=r).x),i4(t.y),{animationId:this.root.animationId,measuredBox:n,layoutBox:r,latestValues:{},source:this.id}}measurePageBox(){let{visualElement:e}=this.options;if(!e)return G();let t=e.measureViewportBox();if(!(this.scroll?.wasRoot||this.path.some(i8))){let{scroll:e}=this.root;e&&(tO(t.x,e.offset.x),tO(t.y,e.offset.y))}return t}removeElementScroll(e){let t=G();if(ib(t,e),this.scroll?.wasRoot)return t;for(let n=0;n<this.path.length;n++){let r=this.path[n],{scroll:i,options:o}=r;r!==this.root&&i&&o.layoutScroll&&(i.wasRoot&&ib(t,e),tO(t.x,i.offset.x),tO(t.y,i.offset.y))}return t}applyTransform(e,t=!1){let n=G();ib(n,e);for(let e=0;e<this.path.length;e++){let r=this.path[e];!t&&r.options.layoutScroll&&r.scroll&&r!==r.root&&tD(n,{x:-r.scroll.offset.x,y:-r.scroll.offset.y}),tP(r.latestValues)&&tD(n,r.latestValues)}return tP(this.latestValues)&&tD(n,this.latestValues),n}removeTransform(e){let t=G();ib(t,e);for(let e=0;e<this.path.length;e++){let n=this.path[e];if(!n.instance||!tP(n.latestValues))continue;tT(n.latestValues)&&n.updateSnapshot();let r=G();ib(r,n.measurePageBox()),iC(t,n.latestValues,n.snapshot?n.snapshot.layoutBox:void 0,r)}return tP(this.latestValues)&&iC(t,this.latestValues),t}setTargetDelta(e){this.targetDelta=e,this.root.scheduleUpdateProjection(),this.isProjectionDirty=!0}setOptions(e){this.options={...this.options,...e,crossfade:void 0===e.crossfade||e.crossfade}}clearMeasurements(){this.scroll=void 0,this.layout=void 0,this.snapshot=void 0,this.prevTransformTemplateValue=void 0,this.targetDelta=void 0,this.target=void 0,this.isLayoutDirty=!1}forceRelativeParentToResolveTarget(){this.relativeParent&&this.relativeParent.resolvedRelativeTargetAt!==eM.timestamp&&this.relativeParent.resolveTargetDelta(!0)}resolveTargetDelta(e=!1){let t=this.getLead();this.isProjectionDirty||(this.isProjectionDirty=t.isProjectionDirty),this.isTransformDirty||(this.isTransformDirty=t.
1isTransformDirty),this.isSharedProjectionDirty||(this.isSharedProjectionDirty=t.isSharedProjectionDirty);let n=!!this.resumingFrom||this!==t;if(!(e||n&&this.isSharedProjectionDirty||this.isProjectionDirty||this.parent?.isProjectionDirty||this.attemptToResolveRelativeTarget||this.root.updateBlockedByResize))return;let{layout:r,layoutId:i}=this.options;if(!this.layout||!(r||i))return;this.resolvedRelativeTargetAt=eM.timestamp;let o=this.getClosestProjectingParent();if(o&&this.linkedParentVersion!==o.layoutVersion&&!o.options.layoutRoot&&this.removeRelativeTarget(),this.targetDelta||this.relativeTarget||(o&&o.layout?this.createRelativeTarget(o,this.layout.layoutBox,o.layout.layoutBox):this.removeRelativeTarget()),this.relativeTarget||this.targetDelta){if(this.target||(this.target=G(),this.targetWithTransforms=G()),this.relativeTarget&&this.relativeTargetOrigin&&this.relativeParent&&this.relativeParent.target){var s,a,l;this.forceRelativeParentToResolveTarget(),s=this.target,a=this.relativeTarget,l=this.relativeParent.target,r$(s.x,a.x,l.x),r$(s.y,a.y,l.y)}else this.targetDelta?(this.resumingFrom?this.target=this.applyTransform(this.layout.layoutBox):ib(this.target,this.layout.layoutBox),tI(this.target,this.targetDelta)):ib(this.target,this.layout.layoutBox);this.attemptToResolveRelativeTarget&&(this.attemptToResolveRelativeTarget=!1,o&&!!o.resumingFrom==!!this.resumingFrom&&!o.options.layoutScroll&&o.target&&1!==this.animationProgress?this.createRelativeTarget(o,this.target,o.target):this.relativeParent=this.relativeTarget=void 0),eA.value&&iD.calculatedTargetDeltas++}}getClosestProjectingParent(){if(!(!this.parent||tT(this.parent.latestValues)||tR(this.parent.latestValues)))if(this.parent.isProjecting())return this.parent;else return this.parent.getClosestProjectingParent()}isProjecting(){return!!((this.relativeTarget||this.targetDelta||this.options.layoutRoot)&&this.layout)}createRelativeTarget(e,t,n){this.relativeParent=e,this.linkedParentVersion=e.layoutVersion,this.forceRelativeParentToResolveTarget(),this.relativeTarget=G(),this.relativeTargetOrigin=G(),rN(this.relativeTargetOrigin,t,n),ib(this.relativeTarget,this.relativeTargetOrigin)}removeRelativeTarget(){this.relativeParent=this.relativeTarget=void 0}calcProjection(){let e=this.getLead(),t=!!this.resumingFrom||this!==e,n=!0;if((this.isProjectionDirty||this.parent?.isProjectionDirty)&&(n=!1),t&&(this.isSharedProjectionDirty||this.isTransformDirty)&&(n=!1),this.resolvedRelativeTargetAt===eM.timestamp&&(n=!1),n)return;let{layout:r,layoutId:i}=this.options;if(this.isTreeAnimating=!!(this.parent&&this.parent.isTreeAnimating||this.currentAnimation||this.pendingAnimation),this.isTreeAnimating||(this.targetDelta=this.relativeTarget=void 0),!this.layout||!(r||i))return;ib(this.layoutCorrected,this.layout.layoutBox);let o=this.treeScale.x,s=this.treeScale.y;!function(e,t,n,r=!1){let i,o,s=n.length;if(s){t.x=t.y=1;for(let a=0;a<s;a++){o=(i=n[a]).projectionDelta;let{visualElement:s}=i.options;(!s||!s.props.style||"contents"!==s.props.style.display)&&(r&&i.options.layoutScroll&&i.scroll&&i!==i.root&&tD(e,{x:-i.scroll.offset.x,y:-i.scroll.offset.y}),o&&(t.x*=o.x.scale,t.y*=o.y.scale,tI(e,o)),r&&tP(i.latestValues)&&tD(e,i.latestValues))}t.x<1.0000000000001&&t.x>.999999999999&&(t.x=1),t.y<1.0000000000001&&t.y>.999999999999&&(t.y=1)}}(this.layoutCorrected,this.treeScale,this.path,t),e.layout&&!e.target&&(1!==this.treeScale.x||1!==this.treeScale.y)&&(e.target=e.layout.layoutBox,e.targetWithTransforms=G());let{target:a}=e;if(!a){this.prevProjectionDelta&&(this.createProjectionDeltas(),this.scheduleRender());return}this.projectionDelta&&this.prevProjectionDelta?(iv(this.prevProjectionDelta.x,this.projectionDelta.x),iv(this.prevProjectionDelta.y,this.projectionDelta.y)):this.createProjectionDeltas(),rL(this.projectionDelta,this.layoutCorrected,a,this.latestValues),this.treeScale.x===o&&this.treeScale.y===s&&ij(this.projectionDelta.x,this.prevProjectionDelta.x)&&ij(this.projectionDelta.y,this.prevProjectionDelta.y)||(this.hasProjected=!0,this.scheduleRender(),this.notifyListeners("projectionUpdate",a)),eA.value&&iD.calculatedProjections++}hide(){this.isVisible=!1}show(){this.isVisible=!0}scheduleRender(e=!0){if(this.options.visualElement?.scheduleRender(),e){let e=this.getStack();e&&e.scheduleRender()}this.resumingFrom&&!this.resumingFrom.instance&&(this.resumingFrom=void 0)}createProjectionDeltas(){this.prevProjectionDelta=W(),this.projectionDelta=W(),this.projectionDeltaWithTransform=W()}setAnimationOrigin(e,t=!1){let n,r=this.snapshot,i=r?r.latestValues:{},o={...this.latestValues},s=W();this.relativeParent&&this.relativeParent.options.layoutRoot||(this.relativeTarget=this.relativeTargetOrigin=void 0),this.attemptToResolveRelativeTarget=!t;let a=G(),l=(r?r.source:void 0)!==(this.layout?this.layout.source:void 0),u=this.getStack(),c=!u||u.members.length<=1,d=!!(l&&!c&&!0===this.options.crossfade&&!this.path.some(i1));this.animationProgress=0,this.mixTargetDelta=t=>{let r=t/1e3;if(iQ(s.x,e.x,r),iQ(s.y,e.y,r),this.setTargetDelta(s),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout){var u,h,f,p,g,m;rN(a,this.layout.layoutBox,this.relativeParent.layout.layoutBox),f=this.relativeTarget,p=this.relativeTargetOrigin,g=a,m=r,i0(f.x,p.x,g.x,m),i0(f.y,p.y,g.y,m),n&&(u=this.relativeTarget,h=n,iT(u.x,h.x)&&iT(u.y,h.y))&&(this.isProjectionDirty=!1),n||(n=G()),ib(n,this.relativeTarget)}l&&(this.animationValues=o,function(e,t,n,r,i,o){i?(e.opacity=tv(0,n.opacity??1,ip(r)),e.opacityExit=tv(t.opacity??1,0,ig(r))):o&&(e.opacity=tv(t.opacity??1,n.opacity??1,r));for(let i=0;i<iu;i++){let o=`border${il[i]}Radius`,s=ih(t,o),a=ih(n,o);(void 0!==s||void 0!==a)&&(s||(s=0),a||(a=0),0===s||0===a||id(s)===id(a)?(e[o]=Math.max(tv(ic(s),ic(a),r),0),(x.test(a)||x.test(s))&&(e[o]+="%")):e[o]=a)}(t.rotate||n.rotate)&&(e.rotate=tv(t.rotate||0,n.rotate||0,r))}(o,i,this.latestValues,r,d,c)),this.root.scheduleUpdateProjection(),this.scheduleRender(),this.animationProgress=r},this.mixTargetDelta(1e3*!!this.options.layoutRoot)}startAnimation(e){this.notifyListeners("animationStart"),this.currentAnimation?.stop(),this.resumingFrom?.currentAnimation?.stop(),this.pendingAnimation&&(eR(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=eP.update(()=>{ie.hasAnimatedSinceResize=!0,nf.layout++,this.motionValue||(this.motionValue=eZ(0)),this.currentAnimation=function(e,t,n){let r=X(e)?e:eZ(e);return r.start(rv("",r,t,n)),r.animation}(this.motionValue,[0,1e3],{...e,velocity:0,isSync:!0,onUpdate:t=>{this.mixTargetDelta(t),e.onUpdate&&e.onUpdate(t)},onStop:()=>{nf.layout--},onComplete:()=>{nf.layout--,e.onComplete&&e.onComplete(),this.completeAnimation()}}),this.resumingFrom&&(this.resumingFrom.currentAnimation=this.currentAnimation),this.pendingAnimation=void 0})}completeAnimation(){this.resumingFrom&&(this.resumingFrom.currentAnimation=void 0,this.resumingFrom.preserveOpacity=void 0);let e=this.getStack();e&&e.exitAnimationComplete(),this.resumingFrom=this.currentAnimation=this.animationValues=void 0,this.notifyListeners("animationComplete")}finishAnimation(){this.currentAnimation&&(this.mixTargetDelta&&this.mixTargetDelta(1e3),this.currentAnimation.stop()),this.completeAnimation()}applyTransformsToTarget(){let e=this.getLead(),{targetWithTransforms:t,target:n,layout:r,latestValues:i}=e;if(t&&n&&r){if(this!==e&&this.layout&&r&&i6(this.options.animationType,this.layout.layoutBox,r.layoutBox)){n=this.target||G();let t=r_(this.layout.layoutBox.x);n.x.min=e.target.x.min,n.x.max=n.x.min+t;let r=r_(this.layout.layoutBox.y);n.y.min=e.target.y.min,n.y.max=n.y.min+r}ib(t,n),tD(t,i),rL(this.projectionDeltaWithTransform,this.layoutCorrected,t,i
1)}}registerSharedNode(e,t){this.sharedNodes.has(e)||this.sharedNodes.set(e,new iI),this.sharedNodes.get(e).add(t);let n=t.options.initialPromotionConfig;t.promote({transition:n?n.transition:void 0,preserveFollowOpacity:n&&n.shouldPreserveFollowOpacity?n.shouldPreserveFollowOpacity(t):void 0})}isLead(){let e=this.getStack();return!e||e.lead===this}getLead(){let{layoutId:e}=this.options;return e&&this.getStack()?.lead||this}getPrevLead(){let{layoutId:e}=this.options;return e?this.getStack()?.prevLead:void 0}getStack(){let{layoutId:e}=this.options;if(e)return this.root.sharedNodes.get(e)}promote({needsReset:e,transition:t,preserveFollowOpacity:n}={}){let r=this.getStack();r&&r.promote(this,n),e&&(this.projectionDelta=void 0,this.needsReset=!0),t&&this.setOptions({transition:t})}relegate(){let e=this.getStack();return!!e&&e.relegate(this)}resetSkewAndRotation(){let{visualElement:e}=this.options;if(!e)return;let t=!1,{latestValues:n}=e;if((n.z||n.rotate||n.rotateX||n.rotateY||n.rotateZ||n.skewX||n.skewY)&&(t=!0),!t)return;let r={};n.z&&iV("z",e,r,this.animationValues);for(let t=0;t<iL.length;t++)iV(`rotate${iL[t]}`,e,r,this.animationValues),iV(`skew${iL[t]}`,e,r,this.animationValues);for(let t in e.render(),r)e.setStaticValue(t,r[t]),this.animationValues&&(this.animationValues[t]=r[t]);e.scheduleRender()}applyProjectionStyles(e,t){if(!this.instance||this.isSVG)return;if(!this.isVisible){e.visibility="hidden";return}let n=this.getTransformTemplate();if(this.needsReset){this.needsReset=!1,e.visibility="",e.opacity="",e.pointerEvents=tQ(t?.pointerEvents)||"",e.transform=n?n(this.latestValues,""):"none";return}let r=this.getLead();if(!this.projectionDelta||!this.layout||!r.target){this.options.layoutId&&(e.opacity=void 0!==this.latestValues.opacity?this.latestValues.opacity:1,e.pointerEvents=tQ(t?.pointerEvents)||""),this.hasProjected&&!tP(this.latestValues)&&(e.transform=n?n({},""):"none",this.hasProjected=!1);return}e.visibility="";let i=r.animationValues||r.latestValues;this.applyTransformsToTarget();
1let o=function(e,t,n){let r="",i=e.x.translate/t.x,o=e.y.translate/t.y,s=n?.z||0;if((i||o||s)&&(r=`translate3d(${i}px, ${o}px, ${s}px) `),(1!==t.x||1!==t.y)&&(r+=`scale(${1/t.x}, ${1/t.y}) `),n){let{transformPerspective:e,rotate:t,rotateX:i,rotateY:o,skewX:s,skewY:a}=n;e&&(r=`perspective(${e}px) ${r}`),t&&(r+=`rotate(${t}deg) `),i&&(r+=`rotateX(${i}deg) `),o&&(r+=`rotateY(${o}deg) `),s&&(r+=`skewX(${s}deg) `),a&&(r+=`skewY(${a}deg) `)}let a=e.x.scale*t.x,l=e.y.scale*t.y;return(1!==a||1!==l)&&(r+=`scale(${a}, ${l})`),r||"none"}(this.projectionDeltaWithTransform,this.treeScale,i);n&&(o=n(i,o)),e.transform=o;let{x:s,y:a}=this.projectionDelta;for(let t in e.transformOrigin=`${100*s.origin}% ${100*a.origin}% 0`,r.animationValues?e.opacity=r===this?i.opacity??this.latestValues.opacity??1:this.preserveOpacity?this.latestValues.opacity:i.opacityExit:e.opacity=r===this?void 0!==i.opacity?i.opacity:"":void 0!==i.opacityExit?i.opacityExit:0,tx){if(void 0===i[t])continue;let{correct:n,applyTo:s,isCSSVariable:a}=tx[t],l="none"===o?i[t]:n(i[t],r);if(s){let t=s.length;for(let n=0;n<t;n++)e[s[n]]=l}else a?this.options.visualElement.renderState.vars[t]=l:e[t]=l}this.options.layoutId&&(e.pointerEvents=r===this?tQ(t?.pointerEvents)||"":"none")}clearSnapshot(){this.resumeFrom=this.snapshot=void 0}resetTree(){this.root.nodes.forEach(e=>e.currentAnimation?.stop()),this.root.nodes.forEach(iW),this.root.sharedNodes.clear()}}}function iz(e){e.updateLayout()}function iF(e){let t=e.resumeFrom?.snapshot||e.snapshot;if(e.isLead()&&e.layout&&t&&e.hasListeners("didUpdate")){let{layoutBox:n,measuredBox:r}=e.layout,{animationType:i}=e.options,o=t.source!==e.layout.source;"size"===i?rO(e=>{let r=o?t.measuredBox[e]:t.layoutBox[e],i=r_(r);r.min=n[e].min,r.max=r.min+i}):i6(i,t.layoutBox,n)&&rO(r=>{let i=o?t.measuredBox[r]:t.layoutBox[r],s=r_(n[r]);i.max=i.min+s,e.relativeTarget&&!e.currentAnimation&&(e.isProjectionDirty=!0,e.relativeTarget[r].max=e.relativeTarget[r].min+s)});let s=W();rL(s,n,t.layoutBox);let a=W();o?rL(a,e.applyTransform(r,!0),t.measuredBox):rL(a,n,t.layoutBox);let l=!iA(s),u=!1;if(!e.resumeFrom){let r=e.getClosestProjectingParent();if(r&&!r.resumeFrom){let{snapshot:i,layout:o}=r;if(i&&o){let s=G();rN(s,t.layoutBox,i.layoutBox);let a=G();rN(a,n,o.layoutBox),iR(s,a)||(u=!0),r.options.layoutRoot&&(e.relativeTarget=a,e.relativeTargetOrigin=s,e.relativeParent=r)}}}e.notifyListeners("didUpdate",{layout:n,snapshot:t,delta:a,layoutDelta:s,hasLayoutChanged:l,hasRelativeLayoutChanged:u})}else if(e.isLead()){let{onExitComplete:t}=e.options;t&&t()}e.options.transition=void 0}function iB(e){eA.value&&iD.nodes++,e.parent&&(e.isProjecting()||(e.isProjectionDirty=e.parent.isProjectionDirty),e.isSharedProjectionDirty||(e.isSharedProjectionDirty=!!(e.isProjectionDirty||e.parent.isProjectionDirty||e.parent.isSharedProjectionDirty)),e.isTransformDirty||(e.isTransformDirty=e.parent.isTransformDirty))}function iH(e){e.isProjectionDirty=e.isSharedProjectionDirty=e.isTransformDirty=!1}function iU(e){e.clearSnapshot()}function iW(e){e.clearMeasurements()}function iY(e){e.isLayoutDirty=!1}function iG(e){let{visualElement:t}=e.options;t&&t.getProps().onBeforeLayoutMeasure&&t.notify("BeforeLayoutMeasure"),e.resetTransform()}function iX(e){e.finishAnimation(),e.targetDelta=e.relativeTarget=e.target=void 0,e.isProjectionDirty=!0}function iK(e){e.resolveTargetDelta()}function iq(e){e.calcProjection()}function iZ(e){e.resetSkewAndRotation()}function iJ(e){e.removeLeadSnapshot()}function iQ(e,t,n){e.translate=tv(t.translate,0,n),e.scale=tv(t.scale,1,n),e.origin=t.origin,e.originPoint=t.originPoint}function i0(e,t,n,r){e.min=tv(t.min,n.min,r),e.max=tv(t.max,n.max,r)}function i1(e){return e.animationValues&&void 0!==e.animationValues.opacityExit}let i2={duration:.45,ease:[.4,0,.1,1]},i5=e=>"undefined"!=typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().includes(e),i3=i5("applewebkit/")&&!i5("chrome/")?Math.round:ek;function i4(e){e.min=i3(e.min),e.max=i3(e.max)}function i6(e,t,n){return"position"===e||"preserve-aspect"===e&&!(.2>=Math.abs(iM(t)-iM(n)))}function i8(e){return e!==e.root&&e.scroll?.wasRoot}let i9=iN({attachResizeListener:(e,t)=>rB(e,"resize",t),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body?.scrollLeft||0,y:document.documentElement.scrollTop||document.body?.scrollTop||0}),checkIsScrollRoot:()=>!0}),i7={current:void 0},oe=iN({measureScroll:e=>({x:e.scrollLeft,y:e.scrollTop}),defaultParent:()=>{if(!i7.current){let e=new i9({});e.mount(window),e.setOptions({layoutScroll:!0}),i7.current=e}return i7.current},resetTransform:(e,t)=>
1{e.style.transform=void 0!==t?t:"none"},checkIsScrollRoot:e=>"fixed"===window.getComputedStyle(e).position});function ot(e,t){let n=function(e,t,n){if(null==e)return[];if(e instanceof EventTarget)return[e];if("string"==typeof e){let t=document,n=(void 0)??t.querySelectorAll(e);return n?Array.from(n):[]}return Array.from(e).filter(e=>null!=e)}(e),r=new AbortController;return[n,{passive:!0,...t,signal:r.signal},()=>r.abort()]}function on(e){return!("touch"===e.pointerType||rI.x||rI.y)}function or(e,t,n){let{props:r}=e;e.animationState&&r.whileHover&&e.animationState.setActive("whileHover","Start"===n);let i=r["onHover"+n];i&&eP.postRender(()=>i(t,rU(t)))}class oi extends no{mount(){let{current:e}=this.node;e&&(this.unmount=function(e,t,n={}){let[r,i,o]=ot(e,n),s=e=>{if(!on(e))return;let{target:n}=e,r=t(n,e);if("function"!=typeof r||!n)return;let o=e=>{on(e)&&(r(e),n.removeEventListener("pointerleave",o))};n.addEventListener("pointerleave",o,i)};return r.forEach(e=>{e.addEventListener("pointerenter",s,i)}),o}(e,(e,t)=>(or(this.node,t,"Start"),e=>or(this.node,e,"End"))))}unmount(){}}class oo extends no{constructor(){super(...arguments),this.isActive=!1}onFocus(){let e=!1;try{e=this.node.current.matches(":focus-visible")}catch(t){e=!0}e&&this.node.animationState&&(this.node.animationState.setActive("whileFocus",!0),this.isActive=!0)}onBlur(){this.isActive&&this.node.animationState&&(this.node.animationState.setActive("whileFocus",!1),this.isActive=!1)}mount(){this.unmount=nh(rB(this.node.current,"focus",()=>this.onFocus()),rB(this.node.current,"blur",()=>this.onBlur()))}unmount(){}}var os=n(81402);let oa=(e,t)=>!!t&&(e===t||oa(e,t.parentElement)),ol=new WeakSet;function ou(e){return t=>{"Enter"===t.key&&e(t)}}function oc(e,t){e.dispatchEvent(new PointerEvent("pointer"+t,{isPrimary:!0,bubbles:!0}))}function od(e){return rH(e)&&!(rI.x||rI.y)}function oh(e,t,n){let{props:r}=e;if(e.current instanceof HTMLButtonElement&&e.current.disabled)return;e.animationState&&r.whileTap&&e.animationState.setActive("whileTap","Start"===n);let i=r["onTap"+("End"===n?"":n)];i&&eP.postRender(()=>i(t,rU(t)))}class of extends no{mount(){let{current:e}=this.node;e&&(this.unmount=function(e,t,n={}){let[r,i,o]=ot(e,n),s=e=>{let r=e.currentTarget;if(!od(e))return;ol.add(r);let o=t(r,e),s=(e,t)=>{window.removeEventListener("pointerup",a),window.removeEventListener("pointercancel",l),ol.has(r)&&ol.delete(r),od(e)&&"function"==typeof o&&o(e,{success:t})},a=e=>{s(e,r===window||r===document||n.useGlobalTarget||oa(r,e.target))},l=e=>{s(e,!1)};window.addEventListener("pointerup",a,i),window.addEventListener("pointercancel",l,i)};return r.forEach(e=>{(n.useGlobalTarget?window:e).addEventListener("pointerdown",s,i),(0,os.s)(e)&&(e.addEventListener("focus",e=>((e,t)=>{let n=e.currentTarget;if(!n)return;let r=ou(()=>{if(ol.has(n))return;oc(n,"down");let e=ou(()=>{oc(n,"up")});n.addEventListener("keyup",e,t),n.addEventListener("blur",()=>oc(n,"cancel"),t)});n.addEventListener("keydown",r,t),n.addEventListener("blur",()=>n.removeEventListener("keydown",r),t)})(e,i)),rF(e)||e.hasAttribute("tabindex")||(e.tabIndex=0))}),o}(e,(e,t)=>(oh(this.node,t,"Start"),(e,{success:t})=>oh(this.node,e,t?"End":"Cancel")),{useGlobalTarget:this.node.props.globalTapTarget}))}unmount(){}}let op=new WeakMap,og=new WeakMap,om=e=>{let t=op.get(e.target);t&&t(e)},oy=e=>{e.forEach(om)},ob={some:0,all:1};class ov extends no{constructor(){super(...arguments),this.hasEnteredView=!1,this.isInView=!1}startObserver(){this.unmount();let{viewport:e={}}=this.node.getProps(),{root:t,margin:n,amount:r="some",once:i}=e,o={root:t?t.current:void 0,rootMargin:n,threshold:"number"==typeof r?r:ob[r]},s=e=>{let{isIntersecting:t}=e;if(this.isInView===t||(this.isInView=t,i&&!t&&this.hasEnteredView))return;t&&(this.hasEnteredView=!0),this.node.animationState&&this.node.animationState.setActive("whileInView",t);let{onViewportEnter:n,onViewportLeave:r}=this.node.getProps(),o=t?n:r;o&&o(e)};var a=this.node.current;let l=function({root:e,...t}){let n=e||document;og.has(n)||og.set(n,{});let r=og.get(n),i=JSON.stringify(t);return r[i]||(r[i]=new IntersectionObserver(oy,{root:e,...t})),r[i]}(o);return op.set(a,s),l.observe(a),()=>{op.delete(a),l.unobserve(a)}}mount(){this.startObserver()}update(){if("undefined"==typeof IntersectionObserver)return;let{props:e,prevProps:t}=this.node;["amount","margin","root"].some(function({viewport:e={}},{viewport:t={}}={}){return n=>e[n]!==t[n]}(e,t))&&this.startObserver()}unmount(){}}let ox=function(e,t){if("undefined"==typeof Proxy)return ni;let n=new Map,r=(n,r)=>ni(n,r,e,t);return new Proxy((e,t)=>r(e,t),{get:(i,o)=>"create"===o?r:(n.has(o)||n.set(o,ni(o,void 0,e,t)),n.get(o))})}({animation:{Feature:rR},exit:{Feature:rj},inView:{Feature:ov},tap:{Feature:of},focus:{Feature:oo},hover:{Feature:oi},pan:{Feature:r7},drag:{Feature:r8,ProjectionNode:oe,MeasureLayout:io},layout:{ProjectionNode:oe,MeasureLayout:io}},(e,t)=>t.isSVG??tz(e)?new tC(t):new t$(t,{allowProjection:e!==tV.Fragment}))}
1,24402:(e,t,n)=>{e.exports="object"==typeof n.g&&n.g&&n.g.Object===Object&&n.g},25411:e=>{e.exports=Array.isArray},26497:(e,t,n)=>{"use strict";n.d(t,{N:()=>v});var r=n(95155),i=n(12115),o=n(60296),s=n(94416),a=n(86553),l=n(59686),u=n(81402),c=n(53127);function d(e,t){if("function"==typeof e)return e(t);null!=e&&(e.current=t)}class h extends i.Component{getSnapshotBeforeUpdate(e){let t=this.props.childRef.current;if(t&&e.isPresent&&!this.props.isPresent){let e=t.offsetParent,n=(0,u.s)(e)&&e.offsetWidth||0,r=(0,u.s)(e)&&e.offsetHeight||0,i=this.props.sizeRef.current;i.height=t.offsetHeight||0,i.width=t.offsetWidth||0,i.top=t.offsetTop,i.left=t.offsetLeft,i.right=n-i.width-i.left,i.bottom=r-i.height-i.top}return null}componentDidUpdate(){}render(){return this.props.children}}function f(e){var t,n;let{children:o,isPresent:s,anchorX:a,anchorY:l,root:u}=e,f=(0,i.useId)(),p=(0,i.useRef)(null),g=(0,i.useRef)({width:0,height:0,top:0,left:0,right:0,bottom:0}),{nonce:m}=(0,i.useContext)(c.Q),y=function(...e){return i.useCallback(function(...e){return t=>{let n=!1,r=e.map(e=>{let r=d(e,t);return n||"function"!=typeof r||(n=!0),r});if(n)return()=>{for(let t=0;t<r.length;t++){let n=r[t];"function"==typeof n?n():d(e[t],null)}}}}(...e),e)}(p,null!=(n=null==(t=o.props)?void 0:t.ref)?n:null==o?void 0:o.ref);return(0,i.useInsertionEffect)(()=>{let{width:e,height:t,top:n,left:r,right:i,bottom:o}=g.current;if(s||!p.current||!e||!t)return;p.current.dataset.motionPopId=f;let c=document.createElement("style");m&&(c.nonce=m);let d=null!=u?u:document.head;return d.appendChild(c),c.sheet&&c.sheet.insertRule('\n          [data-motion-pop-id="'.concat(f,'"] {\n            position: absolute !important;\n            width: ').concat(e,"px !important;\n            height: ").concat(t,"px !important;\n            ").concat("left"===a?"left: ".concat(r):"right: ".concat(i),"px !important;\n            ").concat("bottom"===l?"bottom: ".concat(o):"top: ".concat(n),"px !important;\n          }\n        ")),()=>{d.contains(c)&&d.removeChild(c)}},[s]),(0,r.jsx)(h,{isPresent:s,childRef:p,sizeRef:g,children:i.cloneElement(o,{ref:y})})}let p=e=>{let{children:t,initial:n,isPresent:o,onExitComplete:a,custom:u,presenceAffectsLayout:c,mode:d,anchorX:h,anchorY:p,root:m}=e,y=(0,s.M)(g),b=(0,i.useId)(),v=!0,x=(0,i.useMemo)(()=>(v=!1,{id:b,initial:n,isPresent:o,custom:u,onExitComplete:e=>{for(let t of(y.set(e,!0),y.values()))if(!t)return;a&&a()},register:e=>(y.set(e,!1),()=>y.delete(e))}),[o,y,a]);return c&&v&&(x={...x}),(0,i.useMemo)(()=>{y.forEach((e,t)=>y.set(t,!1))},[o]),i.useEffect(()=>{o||y.size||!a||a()},[o]),"popLayout"===d&&(t=(0,r.jsx)(f,{isPresent:o,anchorX:h,anchorY:p,root:m,children:t})),(0,r.jsx)(l.t.Provider,{value:x,children:t})};function g(){return new Map}var m=n(75601);let y=e=>e.key||"";function b(e){let t=[];return i.Children.forEach(e,e=>{(0,i.isValidElement)(e)&&t.push(e)}),t}let v=e=>{let{children:t,custom:n,initial:l=!0,onExitComplete:u,presenceAffectsLayout:c=!0,mode:d="sync",propagate:h=!1,anchorX:f="left",anchorY:g="top",root:v}=e,[x,w]=(0,m.xQ)(h),S=(0,i.useMemo)(()=>b(t),[t]),k=h&&!x?[]:S.map(y),C=(0,i.useRef)(!0),E=(0,i.useRef)(S),A=(0,s.M)(()=>new Map),T=(0,i.useRef)(new Set),[P,R]=(0,i.useState)(S),[M,j]=(0,i.useState)(S);(0,a.E)(()=>{C.current=!1,E.current=S;for(let e=0;e<M.length;e++){let t=y(M[e]);k.includes(t)?(A.delete(t),T.current.delete(t)):!0!==A.get(t)&&A.set(t,!1)}},[M,k.length,k.join("-")]);let I=[];if(S!==P){let e=[...S];for(let t=0;t<M.length;t++){let n=M[t],r=y(n);k.includes(r)||(e.splice(t,0,n),I.push(n))}return"wait"===d&&I.length&&(e=I),j(b(e)),R(S),null}let{forceRender:O}=(0,i.useContext)(o.L);return(0,r.jsx)(r.Fragment,{children:M.map(e=>{let t=y(e),i=(!h||!!x)&&(S===M||k.includes(t));return(0,r.jsx)(p,{isPresent:i,initial:(!C.current||!!l)&&void 0,custom:n,presenceAffectsLayout:c,mode:d,root:v,onExitComplete:i?void 0:()=>{if(T.current.has(t)||(T.current.add(t),!A.has(t)))return;A.set(t,!0);let e=!0;A.forEach(t=>{t||(e=!1)}),e&&(null==O||O(),j(E.current),h&&(null==w||w()),u&&u())},anchorX:f,anchorY:g,children:e},t)})})}},26526:e=>{e.exports=function(e){return null!=e&&"object"==typeof e}},26719:(e,t,n)=>{"use strict";n.d(t,{A:()=>u});let r=e=>"object"==typeof e&&null!=e&&1===e.nodeType,i=(e,t)=>
1(!t||"hidden"!==e)&&"visible"!==e&&"clip"!==e,o=(e,t)=>{if(e.clientHeight<e.scrollHeight||e.clientWidth<e.scrollWidth){let n=getComputedStyle(e,null);return i(n.overflowY,t)||i(n.overflowX,t)||(e=>{let t=(e=>{if(!e.ownerDocument||!e.ownerDocument.defaultView)return null;try{return e.ownerDocument.defaultView.frameElement}catch(e){return null}})(e);return!!t&&(t.clientHeight<e.scrollHeight||t.clientWidth<e.scrollWidth)})(e)}return!1},s=(e,t,n,r,i,o,s,a)=>o<e&&s>t||o>e&&s<t?0:o<=e&&a<=n||s>=t&&a>=n?o-e-r:s>t&&a<n||o<e&&a>n?s-t+i:0,a=e=>{let t=e.parentElement;return null==t?e.getRootNode().host||null:t},l=(e,t)=>{var n,i,l,u;if("undefined"==typeof document)return[];let{scrollMode:c,block:d,inline:h,boundary:f,skipOverflowHiddenElements:p}=t,g="function"==typeof f?f:e=>e!==f;if(!r(e))throw TypeError("Invalid target");let m=document.scrollingElement||document.documentElement,y=[],b=e;for(;r(b)&&g(b);){if((b=a(b))===m){y.push(b);break}null!=b&&b===document.body&&o(b)&&!o(document.documentElement)||null!=b&&o(b,p)&&y.push(b)}let v=null!=(i=null==(n=window.visualViewport)?void 0:n.width)?i:innerWidth,x=null!=(u=null==(l=window.visualViewport)?void 0:l.height)?u:innerHeight,{scrollX:w,scrollY:S}=window,{height:k,width:C,top:E,right:A,bottom:T,left:P}=e.getBoundingClientRect(),{top:R,right:M,bottom:j,left:I}=(e=>{let t=window.getComputedStyle(e);return{top:parseFloat(t.scrollMarginTop)||0,right:parseFloat(t.scrollMarginRight)||0,bottom:parseFloat(t.scrollMarginBottom)||0,left:parseFloat(t.scrollMarginLeft)||0}})(e),O="start"===d||"nearest"===d?E-R:"end"===d?T+j:E+k/2-R+j,_="center"===h?P+C/2-I+M:"end"===h?A+M:P-I,D=[];for(let e=0;e<y.length;e++){let t=y[e],{height:n,width:r,top:i,right:a,bottom:l,left:u}=t.getBoundingClientRect();if("if-needed"===c&&E>=0&&P>=0&&T<=x&&A<=v&&(t===m&&!o(t)||E>=i&&T<=l&&P>=u&&A<=a))break;let f=getComputedStyle(t),p=parseInt(f.borderLeftWidth,10),g=parseInt(f.borderTopWidth,10),b=parseInt(f.borderRightWidth,10),R=parseInt(f.borderBottomWidth,10),M=0,j=0,I="offsetWidth"in t?t.offsetWidth-t.clientWidth-p-b:0,L="offsetHeight"in t?t.offsetHeight-t.clientHeight-g-R:0,$="offsetWidth"in t?0===t.offsetWidth?0:r/t.offsetWidth:0,V="offsetHeight"in t?0===t.offsetHeight?0:n/t.offsetHeight:0;if(m===t)M="start"===d?O:"end"===d?O-x:"nearest"===d?s(S,S+x,x,g,R,S+O,S+O+k,k):O-x/2,j="start"===h?_:"center"===h?_-v/2:"end"===h?_-v:s(w,w+v,v,p,b,w+_,w+_+C,C),M=Math.max(0,M+S),j=Math.max(0,j+w);else{M="start"===d?O-i-g:"end"===d?O-l+R+L:"nearest"===d?s(i,l,n,g,R+L,O,O+k,k):O-(i+n/2)+L/2,j="start"===h?_-u-p:"center"===h?_-(u+r/2)+I/2:"end"===h?_-a+b+I:s(u,a,r,p,b+I,_,_+C,C);let{scrollLeft:e,scrollTop:o}=t;M=0===V?0:Math.max(0,Math.min(o+M/V,t.scrollHeight-n/V+L)),j=0===$?0:Math.max(0,Math.min(e+j/$,t.scrollWidth-r/$+I)),O+=o-M,_+=e-j}D.push({el:t,top:M,left:j})}return D};function u(e,t){if(!e.isConnected||!(e=>{let t=e;for(;t&&t.parentNode;){if(t.parentNode===document)return!0;t=t.parentNode instanceof ShadowRoot?t.parentNode.host:t.parentNode}return!1})(e))return;let n=(e=>{let t=window.getComputedStyle(e);return{top:parseFloat(t.scrollMarginTop)||0,right:parseFloat(t.scrollMarginRight)||0,bottom:parseFloat(t.scrollMarginBottom)||0,left:parseFloat(t.scrollMarginLeft)||0}})(e);if("object"==typeof t&&"function"==typeof t.behavior)return t.behavior(l(e,t));let r="boolean"==typeof t||null==t?void 0:t.behavior;for(let{el:i,top:o,left:s}of l(e,!1===t?{block:"end",inline:"nearest"}:t===Object(t)&&0!==Object.keys(t).length?t:{block:"start",inline:"nearest"})){let e=o-n.top+n.bottom,t=s-n.left+n.right;i.scroll({top:e,left:t,behavior:r})}}},28423:(e,t,n)=>{"use strict";function r(e){let t="undefined"!=typeof window&&"crypto"in window?window.crypto:globalThis.crypto;if(!t||!t.getRandomValues)throw Error("WebCrypto not available in this environment");return t.getRandomValues(e)}n.d(t,{A:()=>r})},28568:(e,t,n)=>{e.exports=n(10883)("toUpperCase")},32438:(e,t,n)=>{var r=n(50030);e.exports=function(e){return null==e?"":r(e)}},33577:(e,t,n)=>{"use strict";n.d(t,{B:()=>r});let r="undefined"!=typeof window},35443:(e,t,n)=>{var r=n(73423),i=Object.prototype,o=i.hasOwnProperty,s=i.toString,a=r?r.toStringTag:void 0;e.exports=function(e){var t=o.call(e,a),n=e[a];try{e[a]=void 0;var r=!0}catch(e){}var i=s.call(e);return r&&(t?e[a]=n:delete e[a]),i}}
1,36702:(e,t,n)=>{var r=n(80942),i=n(26526);e.exports=function(e){return"symbol"==typeof e||i(e)&&"[object Symbol]"==r(e)}},37121:(e,t,n)=>{"use strict";function r(e){let[t,n]=e;return[t,n]}function i(e,t){let n=e,r=t,i=n.length,o=r.length;if(0===i||0===o)return 0;i>o?n=n.substring(i-o):i<o&&(r=r.substring(0,i));let s=Math.min(i,o);if(n===r)return s;let a=0,l=1;for(let e=0;-1!==e;){let t=n.substring(s-l);if(-1===(e=r.indexOf(t)))break;l+=e,(0===e||n.substring(s-l)===r.substring(0,l))&&(a=l,l++)}return a}function o(e,t){if(!e||!t||e[0]!==t[0])return 0;let n=0,r=Math.min(e.length,t.length),i=r,o=0;for(;n<i;)e.substring(o,i)===t.substring(o,i)?o=n=i:r=i,i=Math.floor((r-n)/2+n);return i}function s(e,t){if(!e||!t||e[e.length-1]!==t[t.length-1])return 0;let n=0,r=Math.min(e.length,t.length),i=r,o=0;for(;n<i;)e.substring(e.length-i,e.length-o)===t.substring(t.length-i,t.length-o)?o=n=i:r=i,i=Math.floor((r-n)/2+n);return i}function a(e){let t=e.charCodeAt(0);return t>=56320&&t<=57343}function l(e,t,n,r,i){let o=e.substring(0,n),s=t.substring(0,r),a=e.substring(n),l=t.substring(r),u=v(o,s,{checkLines:!1,deadline:i}),c=v(a,l,{checkLines:!1,deadline:i});return u.concat(c)}function u(e,t,n){let r=e.slice(n,n+Math.floor(e.length/4)),i=-1,a="",l,u,c,d;for(;-1!==(i=t.indexOf(r,i+1));){let r=o(e.slice(n),t.slice(i)),h=s(e.slice(0,n),t.slice(0,i));a.length<h+r&&(a=t.slice(i-h,i)+t.slice(i,i+r),l=e.slice(0,n-h),u=e.slice(n+r),c=t.slice(0,i-h),d=t.slice(i+r))}return 2*a.length>=e.length?[l||"",u||"",c||"",d||"",a||""]:null}n.d(t,{$i:()=>Y,Cm:()=>g,Ug:()=>m,Vx:()=>k,iU:()=>b,iz:()=>eo,jW:()=>et,lw:()=>y,sw:()=>j,w1:()=>ea});var c=Object.defineProperty,d=Object.getOwnPropertySymbols,h=Object.prototype.hasOwnProperty,f=Object.prototype.propertyIsEnumerable,p=(e,t,n)=>t in e?c(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n;let g=-1,m=1,y=0;function b(e,t,n){if(null===e||null===t)throw Error("Null input. (diff)");let r=v(e,t,function(e){let t;var n,r={checkLines:!0,deadline:(n=e.timeout||1,t=1,"u">typeof n&&(t=n<=0?Number.MAX_VALUE:n),Date.now()+1e3*t)},i=e;for(var o in i||(i={}))h.call(i,o)&&p(r,o,i[o]);if(d)for(var o of d(i))f.call(i,o)&&p(r,o,i[o]);return r}(n||{}));return function(e){for(let t=0;t<e.length;t++){let[n,r]=e[t];if(0===r.length)continue;let i=r[0];(function(e){let t=e.charCodeAt(0);return t>=55296&&t<=56319})(r[r.length-1])&&n===y&&S(e,t,1),a(i)&&n===y&&S(e,t,-1)}for(let t=0;t<e.length;t++)0===e[t][1].length&&e.splice(t,1)}(r),r}function v(e,t,n){let r=e,i=t;if(r===i)return r?[[y,r]]:[];let a=o(r,i),c=r.substring(0,a);a=s(r=r.substring(a),i=i.substring(a));let d=r.substring(r.length-a),h=function(e,t,n){let r;if(!e)return[[m,t]];if(!t)return[[g,e]];let i=e.length>t.length?e:t,o=e.length>t.length?t:e,s=i.indexOf(o);if(-1!==s)return r=[[m,i.substring(0,s)],[y,o],[m,i.substring(s+o.length)]],e.length>t.length&&(r[0][0]=g,r[2][0]=g),r;if(1===o.length)return[[g,e],[m,t]];let a=function(e,t,n=1){let r,i,o,s,a;if(n<=0)return null;let l=e.length>t.length?e:t,c=e.length>t.length?t:e;if(l.length<4||2*c.length<l.length)return null;let d=u(l,c,Math.ceil(l.length/4)),h=u(l,c,Math.ceil(l.length/2));if(d&&h)r=d[4].length>h[4].length?d:h;else{if(!d&&!h)return null;h?d||(r=h):r=d}if(!r)throw Error("Unable to find a half match.");return e.length>t.length?(i=r[0],o=r[1],s=r[2],a=r[3]):(s=r[0],a=r[1],i=r[2],o=r[3]),[i,o,s,a,r[4]]}(e,t);if(a){let e=a[0],t=a[1],r=a[2],i=a[3],o=a[4],s=v(e,r,n),l=v(t,i,n);return s.concat([[y,o]],l)}return n.checkLines&&e.length>100&&t.length>100?function(e,t,n){let r=e,i=t,o=function(e,t){let n=[],r={};function i(e){let t="",i=0,s=-1,a=n.length;for(;s<e.length-1;){-1===(s=e.indexOf(`
2`,i))&&(s=e.length-1);let l=e.slice(i,s+1);(r.hasOwnProperty?r.hasOwnProperty(l):void 0!==r[l])?t+=String.fromCharCode(r[l]):(a===o&&(l=e.slice(i),s=e.length),t+=String.fromCharCode(a),r[l]=a,n[a++]=l),i=s+1}return t}n[0]="";let o=4e4,s=i(e);return o=65535,{chars1:s,chars2:i(t),lineArray:n}}(r,i);r=o.chars1,i=o.chars2;let s=o.lineArray,a=v(r,i,{checkLines:!1,deadline:n.deadline});(function(e,t){for(let n=0;n<e.length;n++){let r=e[n][1],i=[];for(let e=0;e<r.length;e++)i[e]=t[r.charCodeAt(e)];e[n][1]=i.join("")}})(a,s),(a=k(a)).push([y,""]);let l=0,u=0,c=0,d="",h="";for(;l<a.length;){switch(a[l][0]){case m:c++,h+=a[l][1];break;case g:u++,d+=a[l][1];break;case y:if(u>=1&&c>=1){a.splice(l-u-c,u+c),l=l-u-c;let e=v(d,h,{checkLines:!1,deadline:n.deadline});for(let t=e.length-1;t>=0;t--)a.splice(l,0,e[t]);l+=e.length}c=0,u=0,d="",h="";break;default:throw Error("Unknown diff operation.")}l++}return a.pop(),a}(e,t,n):function(e,t,n){let r=e.length,i=t.length,o=Math.ceil((r+i)/2),s=2*o,a=Array(s),u=Array(s);for(let e=0;e<s;e++)a[e]=-1,u[e]=-1;a[o+1]=0,u[o+1]=0;let c=r-i,d=c%2!=0,h=0,f=0,p=0,y=0;for(let g=0;g<o&&!(Date.now()>n);g++){for(let p=-g+h;p<=g-f;p+=2){let m,y=o+p,b=(m=p===-g||p!==g&&a[y-1]<a[y+1]?a[y+1]:a[y-1]+1)-p;for(;m<r&&b<i&&e.charAt(m)===t.charAt(b);)m++,b++;if(a[y]=m,m>r)f+=2;else if(b>i)h+=2;else if(d){let i=o+c-p;if(i>=0&&i<s&&-1!==u[i]&&m>=r-u[i])return l(e,t,m,b,n)}}for(let h=-g+p;h<=g-y;h+=2){let f,m=o+h,b=(f=h===-g||h!==g&&u[m-1]<u[m+1]?u[m+1]:u[m-1]+1)-h;for(;f<r&&b<i&&e.charAt(r-f-1)===t.charAt(i-b-1);)f++,b++;if(u[m]=f,f>r)y+=2;else if(b>i)p+=2;else if(!d){let i=o+c-h;if(i>=0&&i<s&&-1!==a[i]){let s=a[i],u=o+s-i;if(s>
2=(f=r-f))return l(e,t,s,u,n)}}}}return[[g,e],[m,t]]}(e,t,n.deadline)}(r=r.substring(0,r.length-a),i=i.substring(0,i.length-a),n);return c&&h.unshift([y,c]),d&&h.push([y,d]),h=M(h)}function x(e,t,n){return 1===n?e+t:t+e}function w(e,t){return 1===t?[e.substring(0,e.length-1),e[e.length-1]]:[e.substring(1),e[0]]}function S(e,t,n){var r,i;let o=1===n?-1:1,s=null,a=null,l=t+n;for(;l>=0&&l<e.length&&(null===s||null===a);l+=n){let[r,i]=e[l];if(0!==i.length){if(r===m){null===s&&(s=l);continue}else if(r===g){null===a&&(a=l);continue}else if(r===y){if(null===s&&null===a){let[r,i]=w(e[t][1],n);e[t][1]=r,e[l][1]=x(e[l][1],i,o);return}break}}}if(null!==s&&null!==a&&(r=s,i=a,1===n?e[r][1][e[r][1].length-1]===e[i][1][e[i][1].length-1]:e[r][1][0]===e[i][1][0])){let[r,i]=w(e[s][1],o),[l]=w(e[a][1],o);e[s][1]=r,e[a][1]=l,e[t][1]=x(e[t][1],i,n);return}let[u,c]=w(e[t][1],n);e[t][1]=u,null===s?(e.splice(l,0,[m,c]),null!==a&&a>=l&&a++):e[s][1]=x(e[s][1],c,o),null===a?e.splice(l,0,[g,c]):e[a][1]=x(e[a][1],c,o)}function k(e){let t=e.map(e=>r(e)),n=!1,o=[],s=0,a=null,l=0,u=0,c=0,d=0,h=0;for(;l<t.length;)t[l][0]===y?(o[s++]=l,u=d,c=h,d=0,h=0,a=t[l][1]):(t[l][0]===m?d+=t[l][1].length:h+=t[l][1].length,a&&a.length<=Math.max(u,c)&&a.length<=Math.max(d,h)&&(t.splice(o[s-1],0,[g,a]),t[o[s-1]+1][0]=m,s--,l=--s>0?o[s-1]:-1,u=0,c=0,d=0,h=0,a=null,n=!0)),l++;for(n&&(t=M(t)),t=R(t),l=1;l<t.length;){if(t[l-1][0]===g&&t[l][0]===m){let e=t[l-1][1],n=t[l][1],r=i(e,n),o=i(n,e);r>=o?(r>=e.length/2||r>=n.length/2)&&(t.splice(l,0,[y,n.substring(0,r)]),t[l-1][1]=e.substring(0,e.length-r),t[l+1][1]=n.substring(r),l++):(o>=e.length/2||o>=n.length/2)&&(t.splice(l,0,[y,e.substring(0,o)]),t[l-1][0]=m,t[l-1][1]=n.substring(0,n.length-o),t[l+1][0]=g,t[l+1][1]=e.substring(o),l++),l++}l++}return t}let C=/[^a-zA-Z0-9]/,E=/\s/,A=/[\r\n]/,T=/\n\r?\n$/,P=/^\r?\n\r?\n/;function R(e){let t=e.map(e=>r(e));function n(e,t){if(!e||!t)return 6;let n=e.charAt(e.length-1),r=t.charAt(0),i=n.match(C),o=r.match(C),s=i&&n.match(E),a=o&&r.match(E),l=s&&n.match(A),u=a&&r.match(A),c=l&&e.match(T),d=u&&t.match(P);return c||d?5:l||u?4:i&&!s&&a?3:s||a?2:i||o?1:0}let i=1;for(;i<t.length-1;){if(t[i-1][0]===y&&t[i+1][0]===y){let e=t[i-1][1],r=t[i][1],o=t[i+1][1],a=s(e,r);if(a){let t=r.substring(r.length-a);e=e.substring(0,e.length-a),r=t+r.substring(0,r.length-a),o=t+o}let l=e,u=r,c=o,d=n(e,r)+n(r,o);for(;r.charAt(0)===o.charAt(0);){e+=r.charAt(0),r=r.substring(1)+o.charAt(0),o=o.substring(1);let t=n(e,r)+n(r,o);t>=d&&(d=t,l=e,u=r,c=o)}t[i-1][1]!==l&&(l?t[i-1][1]=l:(t.splice(i-1,1),i--),t[i][1]=u,c?t[i+1][1]=c:(t.splice(i+1,1),i--))}i++}return t}function M(e){let t=e.map(e=>r(e));t.push([y,""]);let n=0,i=0,a=0,l="",u="",c;for(;n<t.length;)switch(t[n][0]){case m:a++,u+=t[n][1],n++;break;case g:i++,l+=t[n][1],n++;break;case y:i+a>1?(0!==i&&0!==a&&(0!==(c=o(u,l))&&(n-i-a>0&&t[n-i-a-1][0]===y?t[n-i-a-1][1]+=u.substring(0,c):(t.splice(0,0,[y,u.substring(0,c)]),n++),u=u.substring(c),l=l.substring(c)),0!==(c=s(u,l))&&(t[n][1]=u.substring(u.length-c)+t[n][1],u=u.substring(0,u.length-c),l=l.substring(0,l.length-c))),n-=i+a,t.splice(n,i+a),l.length&&(t.splice(n,0,[g,l]),n++),u.length&&(t.splice(n,0,[m,u]),n++),n++):0!==n&&t[n-1][0]===y?(t[n-1][1]+=t[n][1],t.splice(n,1)):n++,a=0,i=0,l="",u="";break;default:throw Error("Unknown diff operation")}""===t[t.length-1][1]&&t.pop();let d=!1;for(n=1;n<t.length-1;)t[n-1][0]===y&&t[n+1][0]===y&&(t[n][1].substring(t[n][1].length-t[n-1][1].length)===t[n-1][1]?(t[n][1]=t[n-1][1]+t[n][1].substring(0,t[n][1].length-t[n-1][1].length),t[n+1][1]=t[n-1][1]+t[n+1][1],t.splice(n-1,1),d=!0):t[n][1].substring(0,t[n+1][1].length)===t[n+1][1]&&(t[n-1][1]+=t[n+1][1],t[n][1]=t[n][1].substring(t[n+1][1].length)+t[n+1][1],t.splice(n+1,1),d=!0)),n++;return d&&(t=M(t)),t}function j(e,t=4){let n=e.map(e=>r(e)),i=!1,o=[],s=0,a=null,l=0,u=!1,c=!1,d=!1,h=!1;for(;l<n.length;)n[l][0]===y?(n[l][1].length<t&&(d||h)?(o[s++]=l,u=d,c=h,a=n[l][1]):(s=0,a=null),d=!1,h=!1):(n[l][0]===g?h=!0:d=!0,a&&(u&&c&&d&&h||a.length<t/2&&3===function(...e){return e.reduce((e,t)=>e+ +!!t,0)}
2(u,c,d,h))&&(n.splice(o[s-1],0,[g,a]),n[o[s-1]+1][0]=m,s--,a=null,u&&c?(d=!0,h=!0,s=0):(l=--s>0?o[s-1]:-1,d=!1,h=!1),i=!0)),l++;return i&&(n=M(n)),n}var I=Object.defineProperty,O=Object.getOwnPropertySymbols,_=Object.prototype.hasOwnProperty,D=Object.prototype.propertyIsEnumerable,L=(e,t,n)=>t in e?I(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,$=(e,t)=>{for(var n in t||(t={}))_.call(t,n)&&L(e,n,t[n]);if(O)for(var n of O(t))D.call(t,n)&&L(e,n,t[n]);return e};let V={threshold:.5,distance:1e3};function N(e,t,n,r={}){if(null===e||null===t||null===n)throw Error("Null input. (match())");let i=Math.max(0,Math.min(n,e.length));return e===t?0:e.length?e.substring(i,i+t.length)===t?i:function(e,t,n,r={}){if(t.length>32)throw Error("Pattern too long for this browser.");let i=$($({},V),r),o=function(e){let t={};for(let n=0;n<e.length;n++)t[e.charAt(n)]=0;for(let n=0;n<e.length;n++)t[e.charAt(n)]|=1<<e.length-n-1;return t}(t);function s(e,r){let o=e/t.length,s=Math.abs(n-r);return i.distance?o+s/i.distance:s?1:o}let a=i.threshold,l=e.indexOf(t,n);-1!==l&&(a=Math.min(s(0,l),a),-1!==(l=e.lastIndexOf(t,n+t.length))&&(a=Math.min(s(0,l),a)));let u=1<<t.length-1;l=-1;let c,d,h=t.length+e.length,f=[];for(let r=0;r<t.length;r++){for(c=0,d=h;c<d;)s(r,n+d)<=a?c=d:h=d,d=Math.floor((h-c)/2+c);h=d;let i=Math.max(1,n-d+1),p=Math.min(n+d,e.length)+t.length,g=Array(p+2);g[p+1]=(1<<r)-1;for(let t=p;t>=i;t--){let c=o[e.charAt(t-1)];if(0===r?g[t]=(g[t+1]<<1|1)&c:g[t]=(g[t+1]<<1|1)&c|((f[t+1]|f[t])<<1|1)|f[t+1],g[t]&u){let e=s(r,t-1);if(e<=a)if(a=e,(l=t-1)>n)i=Math.max(1,2*n-l);else break}}if(s(r+1,n)>a)break;f=g}return l}(e,t,i,r):-1}function z(e){let t=[];for(let n=0;n<e.length;n++)e[n][0]!==m&&(t[n]=e[n][1]);return t.join("")}function F(e){let t=[];for(let n=0;n<e.length;n++)e[n][0]!==g&&(t[n]=e[n][1]);return t.join("")}function B(e,t){let n=0,r=0,i=0,o=0,s;for(s=0;s<e.length&&(e[s][0]!==m&&(n+=e[s][1].length),e[s][0]!==g&&(r+=e[s][1].length),!(n>t));s++)i=n,o=r;return e.length!==s&&e[s][0]===g?o:o+(t-i)}function H(e){let t=0;for(let n=0;n<e.length;n++){let r=e.codePointAt(n);if(typeof r>"u")throw Error("Failed to get codepoint");t+=U(r)}return t}function U(e){return e<=127?1:e<=2047?2:e<=65535?3:4}function W(e,t){return{diffs:[],start1:e,start2:t,utf8Start1:e,utf8Start2:t,length1:0,length2:0,utf8Length1:0,utf8Length2:0}}function Y(e,t,n={}){if("string"==typeof e)throw Error("Patches must be an array - pass the patch to `parsePatch()` first");let i=t;if(0===e.length)return[i,[]];let o=function(e,t,n={}){let i=0,o=0;function s(e){for(;i<e;){let e=t.codePointAt(o);if(typeof e>"u")return o;i+=U(e),e>65535?o+=2:o+=1}if(!n.allowExceedingIndices&&i!==e)throw Error("Failed to determine byte offset");return o}let a=[];for(let t of e)a.push({diffs:t.diffs.map(e=>r(e)),start1:s(t.start1),start2:s(t.start2),utf8Start1:t.utf8Start1,utf8Start2:t.utf8Start2,length1:t.length1,length2:t.length2,utf8Length1:t.utf8Length1,utf8Length2:t.utf8Length2});return a}(e,i,{allowExceedingIndices:n.allowExceedingIndices}),s=n.margin||4,a=n.deleteThreshold||.4,l=function(e,t=4){let n="";for(let e=1;e<=t;e++)n+=String.fromCharCode(e);for(let n of e)n.start1+=t,n.start2+=t,n.utf8Start1+=t,n.utf8Start2+=t;let r=e[0],i=r.diffs;if(0===i.length||i[0][0]!==y)i.unshift([y,n]),r.start1-=t,r.start2-=t,r.utf8Start1-=t,r.utf8Start2-=t,r.length1+=t,r.length2+=t,r.utf8Length1+=t,r.utf8Length2+=t;else if(t>i[0][1].length){let e=i[0][1].length,o=t-e;i[0][1]=n.substring(e)+i[0][1],r.start1-=o,r.start2-=o,r.utf8Start1-=o,r.utf8Start2-=o,r.length1+=o,r.length2+=o,r.utf8Length1+=o,r.utf8Length2+=o}if(0===(i=(r=e[e.length-1]).diffs).length||i[i.length-1][0]!==y)i.push([y,n]),r.length1+=t,r.length2+=t,r.utf8Length1+=t,r.utf8Length2+=t;else if(t>i[i.length-1][1].length){let e=t-i[i.length-1][1].length;i[i.length-1][1]+=n.substring(0,e),r.length1+=e,r.length2+=e,r.utf8Length1+=e,r.utf8Length2+=e}return n}(o,s);i=l+i+l,function(e,t=4){for(let n=0;n<e.length;n++){if(e[n].length1<=32)continue;let r=e[n];e.splice(n--,1);let i=r.start1,o=r.start2,s="";for(;0!==r.diffs.length;){let a=W(i-s.length,o-s.length),l=!0;if(""!==s){let e=H(s);a.length1=s.length,a.utf8Length1=e,a.length2=s.length,a.utf8Length2=e,a.diffs.push([y,s])}for(;0!==r.diffs.length&&a.length1<32-t;){let e=r.diffs[0][0],n=r.diffs[0][1],s=H(n);if(e===m){a.length2+=n.length,a.utf8Length2+=s,o+=n.length;let e=r.diffs.shift();e&&a.diffs.push(e),l=!1}else e===g&&1===a.diffs.length&&a.diffs[0][0]===y&&n.length>64?(a.length1+=n.length,a.utf8Length1+=s,i+=n.length,l=!1,a.diffs.push([e,n]),r.diffs.shift()):(s=H(n=n.substring(0,32-a.length1-t)),a.length1+=n.length,a.utf8Length1+=s,i+=n.length,e===y?(a.length2+=n.length,a.utf8Length2+=s,o+=n.length):l=!1,a.diffs.push([e,n]),n===r.diffs[0][1]?r.diffs.shift():r.diffs[0][1]=r.diffs[0][1].substring(n.length))}s=(s=F(a.diffs)).substring(s.length-t);let u=z(r.diffs).substring(0,t),c=H(u);""!==u&&(a.length1+=u.length,a.length2+=u.length,a.utf8Length1+=c,a.utf8Length2+=c,0!==a.diffs.length&&a.diffs[a.diffs.length-1][0]===y?a.diffs[a.diffs.length-1][1]+=u:a.diffs.push([y,u])),l||e.splice(++n,0,a)}}}(o,s);let u=0,c=[];for(let e=0;e<o.length;
2e++){let t=o[e].start2+u,n=z(o[e].diffs),r,s=-1;if(n.length>32?-1!==(r=N(i,n.substring(0,32),t))&&(-1===(s=N(i,n.substring(n.length-32),t+n.length-32))||r>=s)&&(r=-1):r=N(i,n,t),-1===r)c[e]=!1,u-=o[e].length2-o[e].length1;else{let l;if(c[e]=!0,u=r-t,l=-1===s?i.substring(r,r+n.length):i.substring(r,s+32),n===l)i=i.substring(0,r)+F(o[e].diffs)+i.substring(r+n.length);else{let t=b(n,l,{checkLines:!1});if(n.length>32&&function(e){let t=0,n=0,r=0;for(let i=0;i<e.length;i++){let o=e[i][0],s=e[i][1];switch(o){case m:n+=s.length;break;case g:r+=s.length;break;case y:t+=Math.max(n,r),n=0,r=0;break;default:throw Error("Unknown diff operation.")}}return t+Math.max(n,r)}(t)/n.length>a)c[e]=!1;else{t=R(t);let n=0,s=0;for(let a=0;a<o[e].diffs.length;a++){let l=o[e].diffs[a];l[0]!==y&&(s=B(t,n)),l[0]===m?i=i.substring(0,r+s)+l[1]+i.substring(r+s):l[0]===g&&(i=i.substring(0,r+s)+i.substring(r+B(t,n+l[1].length))),l[0]!==g&&(n+=l[1].length)}}}}}return[i=i.substring(l.length,i.length-l.length),c]}var G=Object.defineProperty,X=Object.getOwnPropertySymbols,K=Object.prototype.hasOwnProperty,q=Object.prototype.propertyIsEnumerable,Z=(e,t,n)=>t in e?G(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,J=(e,t)=>{for(var n in t||(t={}))K.call(t,n)&&Z(e,n,t[n]);if(X)for(var n of X(t))q.call(t,n)&&Z(e,n,t[n]);return e};let Q={margin:4};function ee(e={}){return J(J({},Q),e)}function et(e,t,n){if("string"==typeof e&&"string"==typeof t){let r=b(e,t,{checkLines:!0});return r.length>2&&(r=j(r=k(r))),en(e,r,ee(n))}if(e&&Array.isArray(e)&&typeof t>"u")return en(z(e),e,ee(n));if("string"==typeof e&&t&&Array.isArray(t))return en(e,t,ee(n));throw Error("Unknown call format to make()")}function en(e,t,n){if(0===t.length)return[];let r=[],i=W(0,0),o=0,s=0,a=0,l=0,u=0,c=e,d=e;for(let e=0;e<t.length;e++){let h=t[e],[f,p]=h,b=p.length,v=H(p);switch(!o&&f!==y&&(i.start1=s,i.start2=a,i.utf8Start1=l,i.utf8Start2=u),f){case m:i.diffs[o++]=h,i.length2+=b,i.utf8Length2+=v,d=d.substring(0,a)+p+d.substring(a);break;case g:i.length1+=b,i.utf8Length1+=v,i.diffs[o++]=h,d=d.substring(0,a)+d.substring(a+b);break;case y:b<=2*n.margin&&o&&t.length!==e+1?(i.diffs[o++]=h,i.length1+=b,i.length2+=b,i.utf8Length1+=v,i.utf8Length2+=v):b>=2*n.margin&&o&&(er(i,c,n),r.push(i),i=W(-1,-1),o=0,c=d,s=a,l=u);break;default:throw Error("Unknown diff type")}f!==m&&(s+=b,l+=v),f!==g&&(a+=b,u+=v)}return o&&(er(i,c,n),r.push(i)),r}function er(e,t,n){if(0===t.length)return;let r=t.substring(e.start2,e.start2+e.length1),i=0;for(;t.indexOf(r)!==t.lastIndexOf(r)&&r.length<32-n.margin-n.margin;)i+=n.margin,r=t.substring(e.start2-i,e.start2+e.length1+i);i+=n.margin;let o=e.start2-i;o>=1&&a(t[o])&&o--;let s=t.substring(o,e.start2);s&&e.diffs.unshift([y,s]);let l=s.length,u=H(s),c=e.start2+e.length1+i;c<t.length&&a(t[c])&&c++;let d=t.substring(e.start2+e.length1,c);d&&e.diffs.push([y,d]);let h=d.length,f=H(d);e.start1-=l,e.start2-=l,e.utf8Start1-=u,e.utf8Start2-=u,e.length1+=l+h,e.length2+=l+h,e.utf8Length1+=u+f,e.utf8Length2+=u+f}let ei=/^@@ -(\d+),?(\d*) \+(\d+),?(\d*) @@$/;function eo(e){if(!e)return[];let t=[],n=e.split(`
3`),r=0;for(;r<n.length;){let e=n[r].match(ei);if(!e)throw Error(`Invalid patch string: ${n[r]}`);let i=W(es(e[1]),es(e[3]));for(t.push(i),""===e[2]?(i.start1--,i.utf8Start1--,i.length1=1,i.utf8Length1=1):"0"===e[2]?(i.length1=0,i.utf8Length1=0):(i.start1--,i.utf8Start1--,i.utf8Length1=es(e[2]),i.length1=i.utf8Length1),""===e[4]?(i.start2--,i.utf8Start2--,i.length2=1,i.utf8Length2=1):"0"===e[4]?(i.length2=0,i.utf8Length2=0):(i.start2--,i.utf8Start2--,i.utf8Length2=es(e[4]),i.length2=i.utf8Length2),r++;r<n.length;){let e,t=n[r],o=t.charAt(0);if("@"===o)break;if(""===o){r++;continue}try{e=decodeURI(t.slice(1))}catch(e){throw Error(`Illegal escape in parse: ${t}`)}let s=H(e)-e.length;if("-"===o)i.diffs.push([g,e]),i.length1-=s;else if("+"===o)i.diffs.push([m,e]),i.length2-=s;else if(" "===o)i.diffs.push([y,e]),i.length1-=s,i.length2-=s;else throw Error(`Invalid patch mode "${o}" in: ${e}`);r++}}return t}function es(e){return parseInt(e,10)}function ea(e){return e.map(el).join("")}function el(e){let t,n,r,{utf8Length1:i,utf8Length2:o,utf8Start1:s,utf8Start2:a,diffs:l}=e;t=0===i?`${s},0`:1===i?`${s+1}`:`${s+1},${i}`,n=0===o?`${a},0`:1===o?`${a+1}`:`${a+1},${o}`;let u=[`@@ -${t} +${n} @@
4`];for(let e=0;e<l.length;e++){switch(l[e][0]){case m:r="+";break;case g:r="-";break;case y:r=" ";break;default:throw Error("Unknown patch operation.")}u[e+1]=`${r+encodeURI(l[e][1])}
5`}return u.join("").replace(/%20/g," ")}}
5,37849:(e,t,n)=>{"use strict";e.exports=n(50475)},38208:e=>{e.exports=function(e){return e.split("")}},49095:(e,t,n)=>{var r=n(67367),i=n(13456),o=n(32438),s=n(3983);e.exports=function(e,t,n){return(e=o(e),void 0===(t=n?void 0:t))?i(e)?s(e):r(e):e.match(t)||[]}},50030:(e,t,n)=>{var r=n(73423),i=n(91426),o=n(25411),s=n(36702),a=1/0,l=r?r.prototype:void 0,u=l?l.toString:void 0;e.exports=function e(t){if("string"==typeof t)return t;if(o(t))return i(t,e)+"";if(s(t))return u?u.call(t):"";var n=t+"";return"0"==n&&1/t==-a?"-0":n}},50475:(e,t)=>{"use strict";var n=Symbol.for("react.transitional.element"),r=Symbol.for("react.portal"),i=Symbol.for("react.fragment"),o=Symbol.for("react.strict_mode"),s=Symbol.for("react.profiler"),a=Symbol.for("react.consumer"),l=Symbol.for("react.context"),u=Symbol.for("react.forward_ref"),c=Symbol.for("react.suspense"),d=Symbol.for("react.suspense_list"),h=Symbol.for("react.memo"),f=Symbol.for("react.lazy"),p=Symbol.for("react.view_transition"),g=Symbol.for("react.client.reference");function m(e){if("object"==typeof e&&null!==e){var t=e.$$typeof;switch(t){case n:switch(e=e.type){case i:case s:case o:case c:case d:case p:return e;default:switch(e=e&&e.$$typeof){case l:case u:case f:case h:case a:return e;default:return t}}case r:return t}}}t.ContextConsumer=a,t.ContextProvider=l,t.Element=n,t.ForwardRef=u,t.Fragment=i,t.Lazy=f,t.Memo=h,t.Portal=r,t.Profiler=s,t.StrictMode=o,t.Suspense=c,t.SuspenseList=d,t.isContextConsumer=function(e){return m(e)===a},t.isContextProvider=function(e){return m(e)===l},t.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===n},t.isForwardRef=function(e){return m(e)===u},t.isFragment=function(e){return m(e)===i},t.isLazy=function(e){return m(e)===f},t.isMemo=function(e){return m(e)===h},t.isPortal=function(e){return m(e)===r},t.isProfiler=function(e){return m(e)===s},t.isStrictMode=function(e){return m(e)===o},t.isSuspense=function(e){return m(e)===c},t.isSuspenseList=function(e){return m(e)===d},t.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===i||e===s||e===o||e===c||e===d||"object"==typeof e&&null!==e&&(e.$$typeof===f||e.$$typeof===h||e.$$typeof===l||e.$$typeof===a||e.$$typeof===u||e.$$typeof===g||void 0!==e.getModuleId)||!1},t.typeOf=m},51483:(e,t,n)=>{var r=n(24402),i="object"==typeof self&&self&&self.Object===Object&&self;e.exports=r||i||Function("return this")()},53127:(e,t,n)=>{"use strict";n.d(t,{Q:()=>r});let r=(0,n(12115).createContext)({transformPagePoint:e=>e,isStatic:!1,reducedMotion:"never"})},56555:(e,t,n)=>{"use strict";n.d(t,{B3:()=>Q,JW:()=>p,me:()=>ed,sR:()=>ef});var r=n(15374);let i={transparent:{lightest:"hsl(240, 100%, 95%)",lighter:"hsl(240, 100%, 70%)",light:"hsl(240, 100%, 65%)",base:"hsl(240, 100%, 50%)",dark:"hsl(240, 100%, 35%)",darker:"hsl(240, 100%, 20%)",darkest:"hsl(240, 100%, 5%)"},primary:{lightest:"hsl(240, 100%, 95%)",lighter:"hsl(240, 100%, 70%)",light:"hsl(240, 100%, 65%)",base:"hsl(240, 100%, 50%)",dark:"hsl(240, 100%, 35%)",darker:"hsl(240, 100%, 20%)",darkest:"hsl(240, 100%, 5%)"},positive:{lightest:"hsl(120, 100%, 95%)",lighter:"hsl(120, 100%, 70%)",light:"hsl(120, 100%, 65%)",base:"hsl(120, 100%, 50%)",dark:"hsl(120, 100%, 35%)",darker:"hsl(120, 100%, 20%)",darkest:"hsl(120, 100%, 5%)"},caution:{lightest:"hsl(60, 100%, 95%)",lighter:"hsl(60, 100%, 70%)",light:"hsl(60, 100%, 65%)",base:"hsl(60, 100%, 50%)",dark:"hsl(60, 100%, 35%)",darker:"hsl(60, 100%, 20%)",darkest:"hsl(60, 100%, 5%)"},critical:{lightest:"hsl(0, 100%, 95%)",lighter:"hsl(0, 100%, 70%)",light:"hsl(0, 100%, 65%)",base:"hsl(0, 100%, 50%)",dark:"hsl(0, 100%, 35%)",darker:"hsl(0, 100%, 20%)",darkest:"hsl(0, 100%, 5%)"}};i.transparent.darkest,i.transparent.lightest,i.transparent.lightest,i.transparent.darkest,i.transparent.darker,i.transparent.lighter,i.transparent.base,i.transparent.base,i.primary.darkest,i.primary.lightest,i.primary.lightest,i.primary.darkest,i.primary.darker,i.primary.lighter,i.primary.base,i.primary.base,i.positive.darkest,i.positive.lightest,i.positive.lightest,i.positive.darkest,i.positive.darker,i.positive.lighter,i.positive.base,i.positive.base,i.caution.darkest,i.caution.lightest,i.caution.lightest,i.caution.darkest,i.caution.darker,i.caution.lighter,i.caution.base,i.caution.base,i.critical.darkest,i.critical.lightest,i.critical.lightest,i.critical.darkest,i.critical.darker,i.critical.lighter,i.critical.base,i.critical.base;let o={avatar:{sizes:[{distance:-4,size:19},{distance:-4,size:25},{distance:-8,size:33},{distance:-12,size:49}],focusRing:{offset:1,width:1}},button:{textWeight:"medium",border:{width:1},focusRing:{offset:-1,width:1}},card:{border:{width:1},focusRing:{offset:-1,width:1},shadow:{outline:.5}},container:[320,640,960,1280,1600,1920],media:[360,600,900,1200,1800,2400],layer:{dialog:{zOffset:600},popover:{zOffset:400},tooltip:{zOffset:200}},radius:[0,1,3,6,9,12,21],shadow:[null,{umbra:[0,0,0,0],penumbra:[0,0,0,0],ambient:[0,0,0,0]},{umbra:[0,3,5,-2],penumbra:[0,6,10,0],ambient:[0,1,18,1]},{umbra:[0,7,8,-4],penumbra:[0,12,17,2],ambient:[0,5,22,4]},{umbra:[0,9,11,-5],penumbra:[0,18,28,2],ambient:[0,7,34,6]},{umbra:[0,11,15,-7],penumbra:[0,24,38,3],ambient:[0,9,46,8]}],space:[0,4,8,12,20,32,52,84,136,220],input:{border:{width:1},checkbox:{size:17,focusRing:{offset:-1,width:1}}
5,radio:{size:17,markSize:9,focusRing:{offset:-1,width:1}},switch:{width:25,height:17,padding:5,transitionDurationMs:150,transitionTimingFunction:"ease-out",focusRing:{offset:1,width:1}},select:{focusRing:{offset:-1,width:1}},text:{focusRing:{offset:-1,width:1}}},style:{button:{root:{transition:"background-color 100ms,border-color 100ms,color 100ms"}}}},s={code:{family:"ui-monospace, SFMono-Regular, SF Mono, Menlo, Consolas, Liberation Mono, monospace",weights:{regular:400,medium:500,semibold:600,bold:700},sizes:[{ascenderHeight:4,descenderHeight:4,fontSize:10,iconSize:17,lineHeight:15,letterSpacing:0},{ascenderHeight:5,descenderHeight:5,fontSize:13,iconSize:21,lineHeight:19,letterSpacing:0},{ascenderHeight:6,descenderHeight:6,fontSize:16,iconSize:25,lineHeight:23,letterSpacing:0},{ascenderHeight:7,descenderHeight:7,fontSize:19,iconSize:29,lineHeight:27,letterSpacing:0},{ascenderHeight:8,descenderHeight:8,fontSize:22,iconSize:33,lineHeight:31,letterSpacing:0}]},heading:{family:'Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", "Liberation Sans", Helvetica, Arial, system-ui, sans-serif',weights:{regular:700,medium:800,semibold:900,bold:900},sizes:[{ascenderHeight:5,descenderHeight:5,fontSize:13,iconSize:17,lineHeight:19,letterSpacing:0},{ascenderHeight:6,descenderHeight:6,fontSize:16,iconSize:25,lineHeight:23,letterSpacing:0},{ascenderHeight:7,descenderHeight:7,fontSize:21,iconSize:33,lineHeight:29,letterSpacing:0},{ascenderHeight:8,descenderHeight:8,fontSize:27,iconSize:41,lineHeight:35,letterSpacing:0},{ascenderHeight:9.5,descenderHeight:8.5,fontSize:33,iconSize:49,lineHeight:41,letterSpacing:0},{ascenderHeight:10.5,descenderHeight:9.5,fontSize:38,iconSize:53,lineHeight:47,letterSpacing:0}]},label:{family:'Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", "Liberation Sans", system-ui, sans-serif',weights:{regular:600,medium:700,semibold:800,bold:900},sizes:[{ascenderHeight:2,descenderHeight:2,fontSize:8.1,iconSize:13,lineHeight:10,letterSpacing:.5},{ascenderHeight:2,descenderHeight:2,fontSize:9.5,iconSize:15,lineHeight:11,letterSpacing:.5},{ascenderHeight:2,descenderHeight:2,fontSize:10.8,iconSize:17,lineHeight:12,letterSpacing:.5},{ascenderHeight:2,descenderHeight:2,fontSize:12.25,iconSize:19,lineHeight:13,letterSpacing:.5},{ascenderHeight:2,descenderHeight:2,fontSize:13.6,iconSize:21,lineHeight:14,letterSpacing:.5},{ascenderHeight:2,descenderHeight:2,fontSize:15,iconSize:23,lineHeight:15,letterSpacing:.5}]},text:{family:'Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", "Liberation Sans", Helvetica, Arial, system-ui, sans-serif',weights:{regular:400,medium:500,semibold:600,bold:700},sizes:[{ascenderHeight:4,descenderHeight:4,fontSize:10,iconSize:17,lineHeight:15,letterSpacing:0},{ascenderHeight:5,descenderHeight:5,fontSize:13,iconSize:21,lineHeight:19,letterSpacing:0},{ascenderHeight:6,descenderHeight:6,fontSize:15,iconSize:25,lineHeight:23,letterSpacing:0},{ascenderHeight:7,descenderHeight:7,fontSize:18,iconSize:29,lineHeight:27,letterSpacing:0},{ascenderHeight:8,descenderHeight:8,fontSize:21,iconSize:33,lineHeight:31,letterSpacing:0}]}},a=new WeakMap;function l(e){let t=a.get(e);if(t)return t;let n=c(e,e.card.enabled),r={_blend:e._blend||(e.dark?"screen":"multiply"),_dark:e.dark,accent:n.accent,avatar:n.avatar,backdrop:e.base.shadow.ambient,badge:n.badge,bg:e.base.bg,border:e.base.border,button:{default:u(e,e.button.default),ghost:u(e,e.button.ghost),bleed:u(e,e.button.bleed)},code:n.code,fg:e.base.fg,focusRing:e.base.focusRing,icon:n.muted.fg,input:{default:d(e.input.default),invalid:d(e.input.invalid)},kbd:n.kbd,link:n.link,muted:{...n.muted,bg:e.selectable?.default.enabled.bg2||e.base.bg},selectable:u(e,e.selectable||e.muted),shadow:e.base.shadow,skeleton:{from:e.skeleton?.from||e.base.border,to:e.skeleton?.to||e.base.border},syntax:e.syntax};return a.set(e,r),r}function u(e,t){return{default:{enabled:c(e,t.default.enabled),hovered:c(e,t.default.hovered),pressed:c(e,t.default.pressed),selected:c(e,t.default.selected),disabled:c(e,t.default.disabled)},neutral:{enabled:c(e,t.default.enabled),hovered:c(e,t.default.hovered),pressed:c(e,t.default.pressed),selected:c(e,t.default.selected),disabled:c(e,t.default.disabled)},primary:{enabled:c(e,t.primary.enabled),hovered:c(e,t.primary.hovered),pressed:c(e,t.primary.pressed),selected:c(e,t.primary.selected),disabled:c(e,t.primary.disabled)},suggest:{enabled:c(e,t.primary.enabled),hovered:c(e,t.primary.hovered),pressed:c(e,t.primary.pressed),selected:c(e,t.primary.selected),disabled:c(e,t.primary.disabled)},positive:{enabled:c(e,t.positive.enabled),hovered:c(e,t.positive.hovered),pressed:c(e,t.positive.pressed),selected:c(e,t.positive.selected),disabled:c(e,t.positive.disabled)},caution:{enabled:c(e,t.caution.enabled),hovered:c(e,t.caution.hovered),pressed:c(e,t.caution.pressed),selected:c(e,t.caution.selected),disabled:c(e,t.caution.disabled)},critical:{enabled:c(e,t.critical.enabled),hovered:c(e,t.critical.hovered),pressed:c(e,t.critical.pressed),selected:c(e,t.critical.selected),disabled:c(e,t.critical.disabled)}}}function c(e,t){return{...t,avatar:{gray:{bg:e.spot.gray,fg:e.base.bg},blue:{bg:e.spot.blue,fg:e.base.bg},purple:{bg:e.spot.purple,fg:e.base.bg},magenta:{bg:e.spot.magenta,fg:e.base.bg},red:{bg:e.spot.red,fg:e.base.bg},orange:{bg:e.spot.orange,fg:e.base.bg},yellow:{bg:e.spot.yellow,fg:e.base.bg},green:{bg:e.spot.green,fg:e.base.bg}
5,cyan:{bg:e.spot.cyan,fg:e.base.bg}},badge:{default:{bg:e.muted.default.enabled.bg,fg:e.muted.default.enabled.fg,dot:e.muted.default.enabled.muted.fg,icon:e.muted.default.enabled.muted.fg},neutral:{bg:e.muted.transparent.enabled.bg,fg:e.muted.transparent.enabled.fg,dot:e.muted.transparent.enabled.muted.fg,icon:e.muted.transparent.enabled.muted.fg},primary:{bg:e.muted.primary.enabled.bg,fg:e.muted.primary.enabled.fg,dot:e.muted.primary.enabled.muted.fg,icon:e.muted.primary.enabled.muted.fg},suggest:{bg:e.muted.primary.enabled.bg,fg:e.muted.primary.enabled.fg,dot:e.muted.primary.enabled.muted.fg,icon:e.muted.primary.enabled.muted.fg},positive:{bg:e.muted.positive.enabled.bg,fg:e.muted.positive.enabled.fg,dot:e.muted.positive.enabled.muted.fg,icon:e.muted.positive.enabled.muted.fg},caution:{bg:e.muted.caution.enabled.bg,fg:e.muted.caution.enabled.fg,dot:e.muted.caution.enabled.muted.fg,icon:e.muted.caution.enabled.muted.fg},critical:{bg:e.muted.critical.enabled.bg,fg:e.muted.critical.enabled.fg,dot:e.muted.critical.enabled.muted.fg,icon:e.muted.critical.enabled.muted.fg}},kbd:{bg:e.muted.default.enabled.bg,fg:e.muted.default.enabled.fg,border:e.muted.default.enabled.border},muted:{...e.muted.default.enabled.muted,bg:t.bg2||t.bg},skeleton:{from:t.skeleton?.from||t.border,to:t.skeleton?.to||t.border}}}function d(e){return{enabled:h(e.enabled),disabled:h(e.disabled),readOnly:h(e.readOnly),hovered:h(e.hovered)}}function h(e){return{bg:e.bg,border:e.border,fg:e.fg,muted:{bg:e.bg2},placeholder:e.placeholder}}let f=new WeakMap;function p(e){if(e.sanity.v2?._resolved)return e.sanity.v2;let t=f.get(e);if(t)return t;let n={_version:2,_resolved:!0,avatar:{...o.avatar,...e.sanity.avatar},button:{...o.button,...e.sanity.button},card:o.card,color:l(e.sanity.color),container:e.sanity.container,font:e.sanity.fonts,input:{...o.input,...e.sanity.input,checkbox:{...o.input.checkbox,...e.sanity.input.checkbox},radio:{...o.input.radio,...e.sanity.input.radio},switch:{...o.input.switch,...e.sanity.input.switch}},layer:e.sanity.layer??o.layer,media:e.sanity.media,radius:e.sanity.radius,shadow:e.sanity.shadows,space:e.sanity.space,style:e.sanity.styles};return f.set(e,n),n}function g(e){return 2===e._version}let m=new WeakMap,y=new WeakMap;function b(e){let t=y.get(e);if(t)return t;let{avatar:n,button:r,color:i,container:o,font:s,input:a,media:l,radius:u,shadow:c,space:d,style:h}=e;return{_version:0,avatar:n,button:r,container:o,color:{light:{transparent:v(i.light.transparent),default:v(i.light.default),primary:v(i.light.primary),positive:v(i.light.positive),caution:v(i.light.caution),critical:v(i.light.critical)},dark:{transparent:v(i.dark.transparent),default:v(i.dark.default),primary:v(i.dark.primary),positive:v(i.dark.positive),caution:v(i.dark.caution),critical:v(i.dark.critical)}},focusRing:a.text.focusRing,fonts:s,input:a,media:l,radius:u,shadows:c,space:d,styles:h,v2:e}}function v(e){return{base:{bg:e.bg,fg:e.fg,border:e.border,focusRing:e.focu
5sRing,shadow:e.shadow},button:e.button,card:e.selectable.default,dark:e._dark,input:{default:x(e.input.default),invalid:x(e.input.invalid)},muted:{...e.button.ghost,transparent:e.button.ghost.default},solid:{...e.button.default,transparent:e.button.default.default},selectable:e.selectable,spot:{gray:e.avatar.gray.bg,blue:e.avatar.blue.bg,purple:e.avatar.purple.bg,magenta:e.avatar.magenta.bg,red:e.avatar.red.bg,orange:e.avatar.orange.bg,yellow:e.avatar.yellow.bg,green:e.avatar.green.bg,cyan:e.avatar.cyan.bg},syntax:e.syntax}}function x(e){return{enabled:w(e.enabled),disabled:w(e.disabled),readOnly:w(e.readOnly),hovered:w(e.hovered)}}function w(e){return{bg:e.bg,bg2:e.muted.bg,border:e.border,fg:e.fg,placeholder:e.placeholder}}let S=["multiply","screen"],k=["transparent","default","neutral","primary","suggest","positive","caution","critical"],C=["default","neutral","primary","suggest","positive","caution","critical"],E=["enabled","hovered","pressed","selected","disabled"],A=["default","ghost","bleed"],T=["default","invalid"],P=["enabled","hovered","readOnly","disabled"];function R(e){return r.V0.includes(e)}function M(e){return/^\d+%$/.test(e)}function j(e){var t;let n=e.split("/"),i=n.shift()||"",[o,s]=i.split(" ");if(R(o)){let e=n.shift()||"";return M(s)?{type:"color",tint:o,mix:Number(s.slice(0,-1))/100}:I(e)?{type:"color",tint:o,opacity:Number(e)}:{type:"color",tint:o}}if("black"===(t=o)||"white"===t){let e=n.shift()||"";return M(s)?{type:"color",key:o,mix:Number(s.slice(0,-1))/100}:I(e)?{type:"color",key:o,opacity:Number(e)}:{type:"color",key:o}}if(r.Cv.includes(o)){let[e,t]=(i=n.shift()||"").split(" ");if(R(e)){let r=n.shift()||"";return M(t)?{type:"color",hue:o,tint:e,mix:Number(t.slice(0,-1))/100}:I(r)?{type:"color",hue:o,tint:e,opacity:Number(r)}:{type:"color",hue:o,tint:e}}return{type:"hue",value:o}}if(S.includes(o))return{type:"blendMode",value:o}}function I(e){return"0"===e||/^0\.[0-9]+$/.test(e)||"1"===e}[...r.Cv],[...k],[...C],[...E],[...T],[...P];let O=["500","500"];function _(e,t=O){var n;let r,{hue:i,scheme:o}=e,s=j(t[+("light"!==o)]);if(!s||"color"!==s.type)throw Error(`Invalid color token: ${t[0]}`);return n={...s,hue:s.hue||i},r="",r="black"===n.key||"white"===n.key?n.key:`${n.hue}/${n.tint}`,void 0!==n.mix?`${r} ${100*n.mix}%`:(void 0!==n.opacity&&(r+=`/${n.opacity}`),r)}let D={base:{"*":{_blend:["multiply","screen"],accent:{fg:["purple/600","purple/400"]},avatar:{"*":{_blend:["screen","multiply"],bg:["500","400"],fg:["white","black"]}},backdrop:["gray/200/0.5","black/0.5"],badge:{"*":{bg:["100","900"],fg:["600","400"],icon:["500","500"],dot:["500","500"]},positive:{bg:["200 50%","900"],fg:["600","500"]},caution:{bg:["200 50%","900"],fg:["600","500"]}},bg:["50","950"],border:["200","800"],code:{bg:["50","950"],fg:["600","400"]},fg:["800","200"],focusRing:["blue/500","blue/500"],icon:["600","400"],kbd:{bg:["white","black"],fg:["600","400"],border:["200","800"]},link:{fg:["blue/600","blue/300"]},muted:{bg:["50","950"],fg:["700 75%","300 75%"]},shadow:{outline:["500/0.3","500/0.4"],umbra:["gray/500/0.1","black/0.2"],penumbra:["gray/500/0.07","black/0.14"],ambient:["gray/500/0.06","black/0.12"]},skeleton:{from:["100","900"],to:["100 50%","900 50%"]}},transparent:{bg:["50","black"]},default:{bg:["white","950"],fg:["800","200"],muted:{fg:["600","400"]}},primary:{_hue:"blue"},suggest:{_hue:"purple"},positive:{_hue:"green",shadow:{outline:["500/0.4","500/0.4"]}},caution:{_hue:"yellow",shadow:{outline:["600/0.3","500/0.4"]}},critical:{_hue:"red"}},button:{default:{"*":{"*":{_blend:["screen","multiply"],accent:{fg:["purple/300","purple/700"]},avatar:{"*":{_blend:["screen","multiply"],bg:["500","400"],fg:["white","black"]}},badge:{"*":{bg:["900","100"],fg:["400","600"],dot:["500","500"],icon:["500","500"]}},bg:["500","400"],border:["500/0","400/0"],code:{bg:["500 20%","400 20%"],fg:["200","600"]},fg:["white","black"],icon:["100 70%","900 70%"],kbd:{bg:["black","white"],fg:["200","600"],border:["800","200"]},link:{fg:["blue/200","blue/600"]},muted:{bg:["950","50"],fg:["100 70%","900 70%"]},skeleton:{from:["900","100"],to:["900 50%","100 50%"]}},hovered:{bg:["600","300"],border:["700/0","300/0"]},pressed:{bg:["700","300"]},selected:{bg:["700","300"]},disabled:{_hue:"gray",accent:{fg:["100 70%","900 70%"]},avatar:{"*":{_blend:["screen","multiply"],bg:["gray/500","gray/400"],fg:["white","black"]}},badge:{"*":{bg:["gray/700","gray/300"],fg:["white","black"],dot:["white","black"],icon:["white","black"]}},bg:["300","600"],code:{bg:["950","50"],fg:["300","600"]},fg:["300","600"],muted:{bg:["950","50"],fg:["300","600"]},kbd:{bg:["black","white"],fg:["white","black"],border:["700","300"]},link:{fg:["100 70%","900 70%"]}}},default:{"*":{avatar:{"*":{_blend:["screen","multiply"],bg:["500","400"],fg:["white","black"]}},bg:["800","200"],muted:{bg:["950","50"],fg:["400","600"]}},hovered:{bg:["900","100"]},pressed:{bg:["black","white"]},selected:{bg:["black","white"]}}},ghost:{"*":{"*":{_blend:["multiply","screen"],accent:{fg:["purple/700 60%","purple/300 70%"]},avatar:{"*":{_blend:["screen","multiply"],bg:["500","400"],fg:["white","black"]}},badge:{"*":{bg:["100","900"],fg:["600","400"],dot:["500","500"],icon:["500","500"]}},bg:["50","950"],border:["100","900"],code:{bg:["500 10%","400 10%"],fg:["700 60%","400 60%"]},fg:["600","400"],icon:["700 60%","300 60%"],kbd:{bg:["white","black"],fg:["600","400"],border:["200","800"]},link:{fg:["blue/700 60%","blue/300 60%"]},muted:{bg:["100","950"],fg:["700 60%","300 60%"]},skeleton:{from:["100","900"],to:["100 50%","900 50%"]}},hovered:{bg:["100","900"],fg:["700","300"]},pressed:{bg:["200","800"],fg:["800","200"]},selected:{bg:["200","800"],fg:["800","200"]},disabled:{_hue:"gray",accent:{fg:["200","800"]},avatar:{"*":{_blend:["screen","multiply"],bg:["gray/100","gray/900"],fg:["white","black"]}}
5,badge:{"*":{_hue:"gray",bg:["50","950"],fg:["gray/200","gray/800"],dot:["gray/200","gray/800"],icon:["gray/200","gray/800"]}},border:["100","900"],code:{bg:["50","950"],fg:["200","800"]},fg:["400","600"],icon:["300","700"],muted:{fg:["300","700"]},kbd:{bg:["white","black"],fg:["200","800"],border:["100","900"]},link:{fg:["200","800"]}}},positive:{"*":{border:["600 20%","800"]}},caution:{"*":{border:["600 20%","800"]}}},bleed:{"*":{"*":{_blend:["multiply","screen"],accent:{fg:["purple/700 70%","purple/300 70%"]},avatar:{"*":{_blend:["screen","multiply"],bg:["500","400"],fg:["white","black"]}},badge:{"*":{bg:["100","900"],fg:["600","400"],dot:["500","500"],icon:["500","500"]}},bg:["white","black"],border:["white/0","black/0"],code:{bg:["50","950"],fg:["700 75%","300 75%"]},fg:["700","300"],icon:["700 75%","300 75%"],kbd:{bg:["white","black"],fg:["700","300"],border:["200","800"]},link:{fg:["blue/700 70%","blue/300 70%"]},muted:{bg:["100","950"],fg:["700 75%","300 75%"]},skeleton:{from:["100","900"],to:["100 50%","900 50%"]}},hovered:{bg:["50","900"],fg:["800","200"],icon:["800 70%","300 70%"]},pressed:{bg:["100","800"],fg:["800","200"],icon:["800 70%","200 70%"]},selected:{bg:["100","900"],fg:["800","200"],icon:["800 60%","200 60%"]},disabled:{_hue:"gray",accent:{fg:["200","800"]},avatar:{"*":{_blend:["screen","multiply"],bg:["gray/100","gray/900"],fg:["white","black"]}},badge:{"*":{_hue:"gray",bg:["50","950"],fg:["gray/200","gray/800"],dot:["gray/200","gray/800"],icon:["gray/200","gray/800"]}},code:{bg:["50","950"],fg:["200","800"]},fg:["400","600"],icon:["300","700"],muted:{fg:["400","600"]},kbd:{bg:["white","black"],fg:["200","800"],border:["100","900"]},link:{fg:["200","800"]}}}}},input:{"*":{"*":{_blend:["multiply","screen"],bg:["white","black"],border:["200","700"],fg:["black","200"],muted:{bg:["50","950"]},placeholder:["400","600"]},hovered:{border:["300","700"]},readOnly:{bg:["50","950"],border:["200","800"],fg:["800","200"]},disabled:{bg:["50","950"],fg:["400","600"],border:["100","900"],placeholder:["200","800 50%"]}},invalid:{"*":{_hue:"red",bg:["100","950"]}}},selectable:{"*":{"*":{_blend:["multiply","screen"],accent:{fg:["purple/700 70%","purple/300 70%"]},avatar:{"*":{_blend:["screen","multiply"],bg:["500","400"],fg:["white","black"]}},badge:{"*":{bg:["100","900"],fg:["600","400"],dot:["500","500"],icon:["500","500"]}},bg:["white","black"],border:["200","800"],code:{bg:["50","950"],fg:["600","400"]},fg:["700","300"],icon:["700 75%","300 75%"],kbd:{bg:["white","black"],fg:["600","400"],border:["200","800"]},link:{fg:["blue/700 70%","blue/300 70%"]},muted:{bg:["50","950"],fg:["700 75%","300 75%"]},skeleton:{from:["100","900"],to:["100 50%","900 50%"]}},hovered:{bg:["50","950"]},pressed:{bg:["100","900"]},selected:{_blend:["screen","multiply"],accent:{fg:["purple/300","purple/700"]},avatar:{"*":{_blend:["multiply","screen"],bg:["white","black"],fg:["black","white"]}},badge:{"*":{bg:["900","100"],fg:["400","600"],dot:["500","500"],icon:["500","500"]}},bg:["500","400"],border:["500 20%","400 20%"],code:{bg:["500 20%","400 20%"],fg:["200","600"]},fg:["white","black"],icon:["100 70%","900 70%"],kbd:{bg:["black","white"],fg:["200","600"],border:["800","200"]},link:{fg:["blue/200","blue/600"]},muted:{bg:["500 10%","400 10%"],fg:["100 70%","900 70%"]},skeleton:{from:["900","100"],to:["900 50%","100 50%"]}},disabled:{_hue:"gray",accent:{fg:["200","800"]},avatar:{"*":{_blend:["screen","multiply"],bg:["gray/100","gray/900"],fg:["white","black"]}},badge:{"*":{_hue:"gray",bg:["50","950"],fg:["gray/200","gray/800"],dot:["gray/200","gray/800"],icon:["gray/200","gray/800"]}},border:["100","900"],code:{bg:["50","950"],fg:["200","800"]},fg:["200","800"],icon:["200","800"],kbd:{bg:["white","black"],fg:["200","800"],border:["100","900"]},link:{fg:["200","800"]},muted:{bg:["50 50%","950 50%"],fg:["200","800"]}}},default:{selected:{_hue:"blue"}},critical:{disabled:{bg:["50 50%","950 50%"]}}},syntax:{atrule:["purple/600","purple/400"],attrName:["green/600","green/400"],attrValue:["yellow/600","yellow/400"],attribute:["yellow/600","yellow/400"],boolean:["purple/600","purple/400"],builtin:["purple/600","purple/400"],c
5data:["yellow/600","yellow/400"],char:["yellow/600","yellow/400"],class:["orange/600","orange/400"],className:["cyan/600","cyan/400"],comment:["gray/400","gray/600"],constant:["purple/600","purple/400"],deleted:["red/600","red/400"],entity:["red/600","red/400"],function:["green/600","green/400"],hexcode:["blue/600","blue/400"],id:["purple/600","purple/400"],important:["purple/600","purple/400"],inserted:["yellow/600","yellow/400"],keyword:["magenta/600","magenta/400"],number:["purple/600","purple/400"],operator:["magenta/600","magenta/400"],property:["blue/600","blue/400"],pseudoClass:["yellow/600","yellow/400"],pseudoElement:["yellow/600","yellow/400"],punctuation:["gray/600","gray/400"],regex:["blue/600","blue/400"],selector:["red/600","red/400"],string:["yellow/600","yellow/400"],symbol:["purple/600","purple/400"],tag:["red/600","red/400"],unit:["orange/600","orange/400"],url:["red/600","red/400"],variable:["red/600","red/400"]}};function L(e){return!!(e&&"object"==typeof e&&!Array.isArray(e))}function $(...e){let t=e.filter(Boolean);return 0===t.length?{}:t.reduce(V,{})}function V(e,t){for(let n of Object.keys(t)){let r=e[n],i=t[n];L(r)&&L(i)?e[n]=$(r,i):e[n]=i}return e}function N(e,t){let{scheme:n}=e,r={};for(let e of k)r[e]=function(e,t){let{scheme:n,tone:r}=e,i=t?.color?.base?.[r],o={hue:i?._hue||"gray",scheme:n};return{_blend:(i?._blend||["multiply","screen"])[+("light"!==n)],_dark:"dark"===n,accent:{fg:_(o,i?.accent?.fg)},avatar:z({scheme:n},i),backdrop:_(o,i?.backdrop),badge:B(i?.badge,{scheme:n},t),bg:_(o,i?.bg),border:_(o,i?.border),button:function(e,t){let{scheme:n,tone:r}=e,i={};for(let e of A)i[e]=function(e,t){let{cardTone:n,mode:r,scheme:i}=e,o={};for(let e of C)o[e]=function(e,t){let{cardTone:n,mode:r,scheme:i,tone:o}=e,s={};for(let e of E)s[e]=function(e,t){let{cardTone:n,mode:r,tone:i,scheme:o,state:s}=e,a=t?.color?.base?.[n],l=t?.color?.button?.[r]?.[i]?.[s],u=l?._hue||a?._hue||"gray",c=l?._blend||["screen","multiply"],d={hue:u,scheme:o};return{_blend:c[+("light"!==o)],accent:{fg:_(d,l?.accent?.fg)},avatar:z({scheme:o},l),badge:B(l?.badge,{scheme:o},t),bg:_(d,l?.bg),border:_(d,l?.border),code:{bg:_(d,l?.code?.bg),fg:_(d,l?.code?.fg)},fg:_(d,l?.fg),icon:_(d,l?.icon),muted:{bg:_(d,l?.muted?.bg),fg:_(d,l?.muted?.fg)},kbd:{bg:_(d,l?.kbd?.bg),fg:_(d,l?.kbd?.fg),border:_(d,l?.kbd?.border)},link:{fg:_(d,l?.link?.fg)},skeleton:{from:_(d,l?.skeleton?.from),to:_(d,l?.skeleton?.to)}}}({cardTone:n,mode:r,tone:o,scheme:i,state:e},t);return s}({cardTone:n,mode:r,scheme:i,tone:e},t);return o}({cardTone:r,scheme:n,mode:e},t);return i}({scheme:n,tone:r},t),code:{bg:_(o,i?.code?.bg),fg:_(o,i?.code?.fg)},fg:_(o,i?.fg),focusRing:_(o,i?.focusRing),icon:_(o,i?.icon),input:function(e,t){let{scheme:n,tone:r}=e;return{default:H({mode:"default",scheme:n,tone:r},t),invalid:H({mode:"invalid",scheme:n,tone:r},t)}}({scheme:n,tone:r},t),kbd:{bg:_(o,i?.kbd?.bg),fg:_(o,i?.kbd?.fg),border:_(o,i?.kbd?.border)},link:{fg:_(o,i?.link?.fg)},muted:{bg:_(o,i?.muted?.bg),fg:_(o,i?.muted?.fg)},selectable:function(e,t){let{scheme:n,tone:r}=e,i={};for(let e of C)i[e]=function(e,t){let{cardTone:n,scheme:r,tone:i}=e,o={};for(let e of E)o[e]=function(e,t){let{cardTone:n,scheme:r,state:i,tone:o}=e,s=t?.color?.base?.[n],a=t?.color?.selectable?.[o]?.[i],l=a?._hue||s?._hue||"gray",u=a?._blend||["screen","multiply"],c={hue:l,scheme:r};return{_blend:u[+("light"!==r)],accent:{fg:_(c,a?.accent?.fg)},avatar:z({scheme:r},a),badge:B(a?.badge,{scheme:r},t),bg:_(c,a?.bg),border:_(c,a?.border),code:{bg:_(c,a?.code?.bg),fg:_(c,a?.code?.fg)},fg:_(c,a?.fg),icon:_(c,a?.icon),muted:{bg:_(c,a?.muted?.bg),fg:_(c,a?.muted?.fg)},kbd:{bg:_(c,a?.kbd?.bg),fg:_(c,a?.kbd?.fg),border:_(c,a?.kbd?.border)},link:{fg:_(c,a?.link?.fg)},skeleton:{from:_(c,a?.skeleton?.from),to:_(c,a?.skeleton?.to)}}}({cardTone:n,tone:i,scheme:r,state:e},t);return o}({cardTone:r,scheme:n,tone:e},t);return i}({scheme:n,tone:r},t),shadow:function(e,t){let{scheme:n,tone:r}=e,i=t?.color?.base?.[r],o={hue:i?._hue||"gray",scheme:n};return{outline:_(o,i?.shadow?.outline),umbra:_(o,i?.shadow?.umbra),penumbra:_(o,i?.shadow?.penumbra),ambient:_(o,i?.shadow?.ambient)}}
5({scheme:n,tone:r},t),skeleton:{from:_(o,i?.skeleton?.from),to:_(o,i?.skeleton?.to)},syntax:function(e,t){let{scheme:n}=e,r=t?.color?.syntax,i={hue:"gray",scheme:n};return{atrule:_(i,r?.atrule),attrName:_(i,r?.attrName),attrValue:_(i,r?.attrValue),attribute:_(i,r?.attribute),boolean:_(i,r?.boolean),builtin:_(i,r?.builtin),cdata:_(i,r?.cdata),char:_(i,r?.char),class:_(i,r?.class),className:_(i,r?.className),comment:_(i,r?.comment),constant:_(i,r?.constant),deleted:_(i,r?.deleted),doctype:_(i,r?.doctype),entity:_(i,r?.entity),function:_(i,r?.function),hexcode:_(i,r?.hexcode),id:_(i,r?.id),important:_(i,r?.important),inserted:_(i,r?.inserted),keyword:_(i,r?.keyword),number:_(i,r?.number),operator:_(i,r?.operator),prolog:_(i,r?.prolog),property:_(i,r?.property),pseudoClass:_(i,r?.pseudoClass),pseudoElement:_(i,r?.pseudoElement),punctuation:_(i,r?.punctuation),regex:_(i,r?.regex),selector:_(i,r?.selector),string:_(i,r?.string),symbol:_(i,r?.symbol),tag:_(i,r?.tag),unit:_(i,r?.unit),url:_(i,r?.url),variable:_(i,r?.variable)}}({scheme:n},t)}}({scheme:n,tone:e},t);return r}function z(e,t){let{scheme:n}=e;return{gray:F({color:"gray",scheme:n},t),blue:F({color:"blue",scheme:n},t),purple:F({color:"purple",scheme:n},t),magenta:F({color:"magenta",scheme:n},t),red:F({color:"red",scheme:n},t),orange:F({color:"orange",scheme:n},t),yellow:F({color:"yellow",scheme:n},t),green:F({color:"green",scheme:n},t),cyan:F({color:"cyan",scheme:n},t)}}function F(e,t){let{color:n,scheme:r}=e,i=t?.avatar?.[n],o={hue:i?._hue||"gray",scheme:r};return{_blend:(i?._blend||["screen","multiply"])[+("light"!==r)],bg:_(o,i?.bg),fg:_(o,i?.fg)}}function B(e,t,n){let{scheme:r}=t,i={};for(let t of C)i[t]=function(e,t,n){let{scheme:r,tone:i}=t,o=e?.[i],s={hue:o?._hue||n?.color?.base?.[i]?._hue||"gray",scheme:r};return{bg:_(s,o?.bg),fg:_(s,o?.fg),dot:_(s,o?.dot),icon:_(s,o?.icon)}}(e,{scheme:r,tone:t},n);return i}function H(e,t){let{mode:n,scheme:r,tone:i}=e;return{enabled:U({mode:n,scheme:r,state:"enabled",cardTone:i},t),hovered:U({mode:n,scheme:r,state:"hovered",cardTone:i},t),readOnly:U({mode:n,scheme:r,state:"readOnly",cardTone:i},t),disabled:U({mode:n,scheme:r,state:"disabled",cardTone:i},t)}}function U(e,t){let{cardTone:n,mode:r,scheme:i,state:o}=e,s=t?.color?.base?.[n],a=t?.color?.input?.[r]?.[o],l=a?._hue||s?._hue||"gray",u=a?._blend||["screen","multiply"],c={hue:l,scheme:i};return{_blend:u[+("light"!==i)],bg:_(c,a?.bg),border:_(c,a?.border),fg:_(c,a?.fg),muted:{bg:_(c,a?.muted?.bg)},placeholder:_(c,a?.placeholder)}}let W=r.yW;function Y(e,t=0,n=1){return Math.min(n,Math.max(t,e))}function G(e,t,n,r,i){var o;return n*(1-(o=Y((i-e)/(t-e))))+r*o}function X(e){return Math.round(e)}function K(e){if(4===e.length){let t=e.slice(1,2),n=e.slice(2,3),r=e.slice(3,4);return{r:parseInt(t+t,16),g:parseInt(n+n,16),b:parseInt(r+r,16)}}return{r:parseInt(e.slice(1,3),16),g:parseInt(e.slice(3,5),16),b:parseInt(e.slice(5,7),16)}}function q(e){let t=X(Y(Math.round(e.r),0,255)),n=X(Y(Math.round(e.g),0,255)),r=X(Y(Math.round(e.b),0,255));return"a"in e?`rgba(${t},${n},${r},${e.a})`:"#"+(0x1000000+(t<<16)+(n<<8)+r).toString(16).slice(1)}let Z=/hsl\(\s*(\d+)\s*,\s*((\d+(?:\.\d+)?)%)\s*,\s*((\d+(?:\.\d+)?)%)\s*\)/i;function J(e){if(!e)return{r:0,g:0,b:0};if("string"!=typeof e)throw Error("parseColor: expected a string");if("#"===e[0]&&(4===e.length||7===e.length)&&function(e){for(let t of e)if(-1==="0123456789ABCDEFabcdef".indexOf(t))return!1;return!0}(e.slice(1)))return K(e);if(e.startsWith("hsl("))return function(e){let t=e.s/100,n=e.l/100,r=(1-Math.abs(2*n-1))*t,i=r*(1-Math.abs(e.h/60%2-1)),o=n-r/2,s=0,a=0,l=0;return 0<=e.h&&e.h<60?(s=r,a=i,l=0):60<=e.h&&e.h<120?(s=i,a=r,l=0):120<=e.h&&e.h<180?(s=0,a=r,l=i):180<=e.h&&e.h<240?(s=0,a=i,l=r):240<=e.h&&e.h<300?(s=i,a=0,l=r):300<=e.h&&e.h<360&&(s=r,a=0,l=i),{r:Math.round((s+o)*255),g:Math.round((a+o)*255),b:Math.round((l+o)*255)}}(function(e){let t=Z.exec(e);if(!t)throw Error(`parseHsl: string is not a HSL color: "${e}"`);return{h:parseInt(t[1]),s:parseFloat(t[3]),l:parseFloat(t[5])}}(e));if(e.startsWith("rgba(")){let t=e.replace(/rgba\(|\)/g,"").split(",");return{r:parseInt(t[0]),g:parseInt(t[1]),b:parseInt(t[2]),a:parseFloat(t[3])}}throw Error(`parseColor: unexpected color format: "${e}"`)}function Q(e,t){let n=J(e);return`rgba(${n.r},${n.g},${n.b},${t})`}let ee=[0,255];function et(e,t){let{bg:n,blendMode:r,colorPalette:i}=t;if("white"===n)throw Error("Cannot blend with white background");let o=j(e);if(!o||"color"!==o.type)throw Error(`Invalid color token value: ${e}`);let s="";if("black"===o.key&&(s=en(i.black)),"white"===o.key&&(s=en(i.white)),o.hue&&o.tint&&(s=en(i[o.hue][o.tint])),!s)throw Error(`Invalid color token value: ${e}`);let a=s,l={blendMode:r,bg:n,black:en(i.black),white:en(i.white)};try{if(s=function(e,t){var n,r,i,o,s,a;let{blendMode:l}=t,u=J(e),c=J(t.black),d=J(t.white),h=t.bg?J(t.bg):"multiply"===l?d:c,f={r:[c.r,d.r],g:[c.g,d.g],b:[c.b,d.b]},p={r:Y(G(...f.r,...ee,h.r),...ee),g:Y(G(...f.g,...ee,h.g),...ee),b:Y(G(...f.b,...ee,h.b),...ee)},g={r:Y(G(...f.r,...ee,u.r),...ee),g:Y(G(...f.g,...ee,u.g),...ee),b:Y(G(...f.b,...ee,u.b),...ee)},m="multiply"===l?{r:255*(p.r/255*(g.r/255)),g:255*(p.g/255*(g.g/255)),b:255*(p.b/255*(g.b/255))}:{r:255*((n=p.r/255)+(r=g.r/255)-n*r),g:255*((i=p.g/255)+(o=g.g/255)-i*o),b:255*((s=p.b/255)+(a=g.b/255)-s*a)};return q({r:Y(G(...ee,...f.r,m.r),...f.r),g:Y(G(...ee,...f.g,m.g),...f.g),b:Y(G(...ee,...f.b,m.b),...f.b)})}(s,l),n&&void 0!==o.mix){var u,c,d,h,f,p,g;let e=K(n),t=K(s);s=q((u=o.mix,{r:(c=e.r,d=t.r,c+(d-c)*u),g:(h=e.g,f=t.g,h+(f-h)*u),b:(p=e.b,g=t.b,p+(g-p)*u)}))}}catch(e){throw console.warn("could not blend",s,l),e}
5return"#aN"===s&&(console.warn(`invalid color token value: ${e}`),s=a),void 0!==o.opacity&&(s=Q(s,o.opacity)),s}function en(e){return"string"==typeof e?e:e.hex}function er(e,t){let n=Object.entries(t),[,r]=n.find(([e])=>"transparent"===e),[,i]=n.find(([e])=>"default"===e),o=ei(r,{colorPalette:e}),s=ei(i,{colorPalette:e}),a=s.bg;if("white"===a)throw Error("Cannot blend with white background");return Object.fromEntries([["transparent",o],["default",s],...n.filter(([e])=>"default"!==e&&"transparent"!==e).map(([t,n])=>[t,ei(n,{bg:a,colorPalette:e})])])}function ei(e,t){var n,r,i,o;let{colorPalette:s,bg:a}=t,l=e._blend||"multiply",u=et(e.bg,{colorPalette:s,bg:a,blendMode:l}),c={colorPalette:s,bg:u,blendMode:l},d=(n=e.button,r={baseBg:u,blendMode:l,colorPalette:s},{default:ea(n.default,r),ghost:ea(n.ghost,r),bleed:ea(n.bleed,r)}),h=function(e,t){let n={};for(let o of C){var r,i;n[o]=(r=e[o],i=t,{enabled:el(r.enabled,i),hovered:el(r.hovered,i),pressed:el(r.pressed,i),selected:el(r.selected,i),disabled:el(r.disabled,i)})}return n}(e.selectable,{colorPalette:s,baseBg:u,blendMode:l}),f={outline:et(e.shadow.outline,c),umbra:et(e.shadow.umbra,{...c,bg:void 0,colorPalette:{...s,black:"#000000"}}),penumbra:et(e.shadow.penumbra,{...c,bg:void 0,colorPalette:{...s,black:"#000000"}}),ambient:et(e.shadow.ambient,{...c,bg:void 0,colorPalette:{...s,black:"#000000"}})};return{_blend:l,_dark:e._dark,accent:{fg:et(e.accent.fg,c)},avatar:eo(e.avatar,{baseBg:u,colorPalette:s,blendMode:l}),backdrop:et(e.backdrop,c),badge:es(e.badge,{baseBg:u,colorPalette:s,blendMode:l}),bg:u,border:et(e.border,c),button:d,code:{bg:et(e.code.bg,c),fg:et(e.code.fg,c)},fg:et(e.fg,c),focusRing:et(e.focusRing,c),icon:et(e.icon,c),input:(i=e.input,o={baseBg:u,colorPalette:s,blendMode:l},{default:eu(i.default,o),invalid:eu(i.invalid,o)}),kbd:function(e,t){let{baseBg:n,blendMode:r,colorPalette:i}=t,o=et(e.bg,{bg:n,blendMode:r,colorPalette:i}),s={bg:o,blendMode:r,colorPalette:i};return{bg:o,fg:et(e.fg,s),border:et(e.border,s)}}(e.kbd,{baseBg:u,colorPalette:s,blendMode:l}),link:{fg:et(e.link.fg,c)},muted:{bg:et(e.muted.bg,c),fg:et(e.muted.fg,c)},shadow:f,skeleton:{from:et(e.skeleton.from,c),to:et(e.skeleton.to,c)},syntax:function(e,t){let{colorPalette:n,baseBg:r,blendMode:i}=t,o={colorPalette:n,bg:r,blendMode:i};return{atrule:et(e.atrule,o),attrName:et(e.attrName,o),attrValue:et(e.attrValue,o),attribute:et(e.attribute,o),boolean:et(e.boolean,o),builtin:et(e.builtin,o),cdata:et(e.cdata,o),char:et(e.char,o),class:et(e.class,o),className:et(e.className,o),comment:et(e.comment,o),constant:et(e.constant,o),deleted:et(e.deleted,o),doctype:et(e.doctype,o),entity:et(e.entity,o),function:et(e.function,o),hexcode:et(e.hexcode,o),id:et(e.id,o),important:et(e.important,o),inserted:et(e.inserted,o),keyword:et(e.keyword,o),number:et(e.number,o),operator:et(e.operator,o),prolog:et(e.prolog,o),property:et(e.property,o),pseudoClass:et(e.pseudoClass,o),pseudoElement:et(e.pseudoElement,o),punctuation:et(e.punctuation,o),regex:et(e.regex,o),selector:et(e.selector,o),string:et(e.string,o),symbol:et(e.symbol,o),tag:et(e.tag,o),unit:et(e.unit,o),url:et(e.url,o),variable:et(e.variable,o)}}(e.syntax,{baseBg:u,colorPalette:s,blendMode:l}),selectable:h}}function eo(e,t){let n={};for(let i of r.Cv)n[i]=function(e,t){let{baseBg:n,blendMode:r,colorPalette:i}=t,o=e._blend||"multiply",s=et(e.bg,{bg:n,blendMode:r,colorPalette:i});return{_blend:o,bg:s,fg:et(e.fg,{bg:s,blendMode:o,colorPalette:i})}}(e[i],t);return n}function es(e,t){let n={};for(let r of C)n[r]=function(e,t){let{baseBg:n,blendMode:r,colorPalette:i}=t,o=et(e.bg,{bg:n,blendMode:r,colorPalette:i}),s={bg:o,blendMode:r,colorPalette:i};return{bg:o,dot:et(e.dot,s),fg:et(e.fg,s),icon:et(e.icon,s)}}(e[r],t);return n}function ea(e,t){let n={};for(let o of C){var r,i;n[o]=(r=e[o],i=t,{enabled:el(r.enabled,i),hovered:el(r.hovered,i),pressed:el(r.pressed,i),selected:el(r.selected,i),disabled:el(r.disabled,i)})}return n}function el(e,t){let{baseBg:n,blendMode:r,colorPalette:i}=t,o=e._blend||"multiply",s=et(e.bg,{bg:n,blendMode:r,colorPalette:i}),a={bg:s,blendMode:o,colorPalette:i};return{_blend:o,accent:{fg:et(e.accent.fg,a)},avatar:eo(e.avatar,{baseBg:s,colorPalette:i,blendMode:o}),badge:es(e.badge,{baseBg:s,colorPalette:i,blendMode:o}),bg:s,border:et(e.border,a),code:{bg:et(e.code.bg,a),fg:et(e.code.fg,a)},fg:et(e.fg,a),icon:et(e.icon,a),link:{fg:et(e.link.fg,a)},muted:{bg:et(e.muted.bg,a),fg:et(e.muted.fg,a)},kbd:{bg:et(e.kbd.bg,a),fg:et(e.kbd.fg,a),border:et(e.kbd.border,a)},skeleton:{from:et(e.skeleton?.from,a),to:et(e.skeleton?.to,a)}}}function eu(e,t){return{enabled:ec(e.enabled,t),hovered:ec(e.hovered,t),readOnly:ec(e.readOnly,t),disabled:ec(e.disabled,t)}}function ec(e,t){let{baseBg:n,blendMode:r,colorPalette:i}=t,o=e._blend||"multiply",s=et(e.bg,{colorPalette:i,bg:n,blendMode:r}),a={colorPalette:i,bg:s,blendMode:o};return{_blend:o,bg:s,border:et(e.border,a),fg:et(e.fg,a),muted:{bg:et(e.muted.bg,a)},placeholder:et(e.placeholder,a)}}function ed(e){let t=function(e){let t={color:function(e){let t=$(D,e);return{base:function(e){let t={};for(let n of k)t[n]=function(e,t){let n=$(e?.base?.["*"],e?.base?.[t]),i=n._hue||e?.base?.[t]?._hue||"gray";return{...n,_hue:i,avatar:r.Cv.reduce((e,t)=>
5({...e,[t]:$({_hue:t},n.avatar?.["*"],n.avatar?.[t])}),{}),badge:C.reduce((t,r)=>({...t,[r]:{_hue:e?.base?.[r]?._hue||i,...n.badge?.["*"],...n.badge?.[r]}}),{})}}(e,n);return t}(t),button:function(e){let t={};for(let n of A)t[n]=function(e,t){let n={};for(let i of C)n[i]=function(e,t,n){let i={};for(let o of E)i[o]=function(e,t,n,i){let o=$(e?.button?.[n]?.["*"]?.["*"],e?.button?.[n]?.[t]?.["*"],e?.button?.[n]?.["*"]?.[i],e?.button?.[n]?.[t]?.[i]),s=o._hue||e?.base?.[t]?._hue;return{...o,_hue:s,avatar:r.Cv.reduce((e,t)=>({...e,[t]:$({_hue:t},o.avatar?.["*"],o.avatar?.[t])}),{}),badge:C.reduce((t,n)=>({...t,[n]:{_hue:e?.base?.[n]?._hue||s,...o.badge?.["*"],...o.badge?.[n]}}),{})}}(e,n,t,o);return i}(e,t,i);return n}(e,n);return t}(t),input:function(e){let t={};for(let n of T)t[n]=function(e,t){let n={};for(let r of P)n[r]=function(e,t,n){let r=$(e?.input?.["*"]?.["*"],e?.input?.[t]?.["*"],e?.input?.["*"]?.[n],e?.input?.[t]?.[n]),i=r._hue||e?.input?.[t]?._hue;return{...r,_hue:i}}(e,t,r);return n}(e,n);return t}(t),selectable:function(e){let t={};for(let n of C)t[n]=function(e,t){let n={_hue:e?.selectable?.[t]?._hue||e?.base?.[t]?._hue};for(let i of E)n[i]=function(e,t,n){let i=$(e?.selectable?.["*"]?.["*"],e?.selectable?.[t]?.["*"],e?.selectable?.["*"]?.[n],e?.selectable?.[t]?.[n]),o=i._hue||e?.base?.[t]?._hue;return{...i,_hue:o,avatar:r.Cv.reduce((e,t)=>({...e,[t]:$({_hue:t},i.avatar?.["*"],i.avatar?.[t])}),{}),badge:C.reduce((t,n)=>({...t,[n]:{_hue:e?.base?.[n]?._hue||o,...i.badge?.["*"],...i.badge?.[n]}}),{})}}(e,t,i);return n}(e,n);return t}(t),syntax:t.syntax}}(e?.color)};return{light:N({scheme:"light"},t),dark:N({scheme:"dark"},t)}}(e);return b({_version:2,avatar:e?.avatar??o.avatar,button:e?.button??o.button,card:e?.card??o.card,color:function(e,t){let n=t?.palette??W;return{light:er(n,e.light),dark:er(n,e.dark)}}(t,e),container:e?.container??o.container,font:e?.font??s,input:e?.input??o.input,layer:e?.layer??o.layer,media:e?.media??o.media,radius:e?.radius??o.radius,shadow:e?.shadow??o.shadow,space:e?.space??o.space,style:e?.style??o.style})}let eh=new Map;function ef(e,t,n){var r;let i=function(e,t,n){let r=eh.get(t);if(!r)return;let i=r.get(n);if(i)return i.get(e)}(e,t,n);if(i)return i;let s=g(e)?b(e):e,a=g(e)?e:function(e){if(e.v2)return e.v2;let t=m.get(e);if(t)return t;let{avatar:n,button:r,color:i,container:s,fonts:a,input:u,layer:c,media:d,radius:h,shadows:f,space:p,styles:g}=e,y={_version:2,avatar:{...o.avatar,...n},button:{...o.button,...r},card:o.card,color:{light:{transparent:l(i.light.transparent),default:l(i.light.default),neutral:l(i.light.transparent),primary:l(i.light.primary),suggest:l(i.light.primary),positive:l(i.light.positive),caution:l(i.light.caution),critical:l(i.light.critical)},dark:{transparent:l(i.dark.transparent),default:l(i.dark.default),neutral:l(i.dark.transparent),primary:l(i.dark.primary),suggest:l(i.dark.primary),positive:l(i.dark.positive),caution:l(i.dark.caution),critical:l(i.dark.critical)}},container:s,font:a,input:{...o.input,...u,checkbox:{...o.input.checkbox,...u.checkbox},radio:{...o.input.radio,...u.radio},switch:{...o.input.switch,...u.switch}},layer:c??o.layer,media:d,radius:h,shadow:f,space:p,style:g};return m.set(e,y),y}(e),u=s.color[t]||s.color.light,c=u[n]||u.default,d=s.layer||o.layer,h=a.color[t]||a.color.light,f="neutral"in(r=h[n]||h.default).badge?r:{...r,badge:{...r.badge,neutral:r.badge.default,suggest:r.badge.primary},button:{bleed:{...r.button.bleed,neutral:r.button.bleed.default,suggest:r.button.bleed.primary},default:{...r.button.default,neutral:r.button.default.default,suggest:r.button.default.primary},ghost:{...r.button.ghost,neutral:r.button.ghost.default,suggest:r.button.ghost.primary}},selectable:{...r.selectable,neutral:r.selectable.default,suggest:r.selectable.primary}},p=a.layer||o.layer,y={sanity:{...s,color:c,layer:d,v2:{...a,_resolved:!0,color:f,layer:p}}};return function(e,t,n,r){eh.has(t)||eh.set(t,new Map);let i=eh.get(t);i.has(n)||i.set(n,new WeakMap),i.get(n).set(e,r)}(e,t,n,y),y}},57716:e=>{var t=RegExp("[\\u200d\ud800-\udfff\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff\\ufe0e\\ufe0f]");e.exports=function(e){return t.test(e)}},58146:(e,t,n)=>{"use strict";n.d(t,{UE:()=>eR,RK:()=>eE,ll:()=>eS,rD:()=>eM,__:()=>ek,UU:()=>eT,jD:()=>eP,cY:()=>eC,BN:()=>eA});let r=["top","right","bottom","left"],i=r.reduce((e,t)=>
5e.concat(t,t+"-start",t+"-end"),[]),o=Math.min,s=Math.max,a=Math.round,l=Math.floor,u=e=>({x:e,y:e}),c={left:"right",right:"left",bottom:"top",top:"bottom"},d={start:"end",end:"start"};function h(e,t){return"function"==typeof e?e(t):e}function f(e){return e.split("-")[0]}function p(e){return e.split("-")[1]}function g(e){return"x"===e?"y":"x"}function m(e){return"y"===e?"height":"width"}let y=new Set(["top","bottom"]);function b(e){return y.has(f(e))?"y":"x"}function v(e,t,n){void 0===n&&(n=!1);let r=p(e),i=g(b(e)),o=m(i),s="x"===i?r===(n?"end":"start")?"right":"left":"start"===r?"bottom":"top";return t.reference[o]>t.floating[o]&&(s=E(s)),[s,E(s)]}function x(e){return e.replace(/start|end/g,e=>d[e])}let w=["left","right"],S=["right","left"],k=["top","bottom"],C=["bottom","top"];function E(e){return e.replace(/left|right|bottom|top/g,e=>c[e])}function A(e){return"number"!=typeof e?{top:0,right:0,bottom:0,left:0,...e}:{top:e,right:e,bottom:e,left:e}}function T(e){let{x:t,y:n,width:r,height:i}=e;return{width:r,height:i,top:n,left:t,right:t+r,bottom:n+i,x:t,y:n}}function P(e,t,n){let r,{reference:i,floating:o}=e,s=b(t),a=g(b(t)),l=m(a),u=f(t),c="y"===s,d=i.x+i.width/2-o.width/2,h=i.y+i.height/2-o.height/2,y=i[l]/2-o[l]/2;switch(u){case"top":r={x:d,y:i.y-o.height};break;case"bottom":r={x:d,y:i.y+i.height};break;case"right":r={x:i.x+i.width,y:h};break;case"left":r={x:i.x-o.width,y:h};break;default:r={x:i.x,y:i.y}}switch(p(t)){case"start":r[a]-=y*(n&&c?-1:1);break;case"end":r[a]+=y*(n&&c?-1:1)}return r}async function R(e,t){var n;void 0===t&&(t={});let{x:r,y:i,platform:o,rects:s,elements:a,strategy:l}=e,{boundary:u="clippingAncestors",rootBoundary:c="viewport",elementContext:d="floating",altBoundary:f=!1,padding:p=0}=h(t,e),g=A(p),m=a[f?"floating"===d?"reference":"floating":d],y=T(await o.getClippingRect({element:null==(n=await (null==o.isElement?void 0:o.isElement(m)))||n?m:m.contextElement||await (null==o.getDocumentElement?void 0:o.getDocumentElement(a.floating)),boundary:u,rootBoundary:c,strategy:l})),b="floating"===d?{x:r,y:i,width:s.floating.width,height:s.floating.height}:s.reference,v=await (null==o.getOffsetParent?void 0:o.getOffsetParent(a.floating)),x=await (null==o.isElement?void 0:o.isElement(v))&&await (null==o.getScale?void 0:o.getScale(v))||{x:1,y:1},w=T(o.convertOffsetParentRelativeRectToViewportRelativeRect?await o.convertOffsetParentRelativeRectToViewportRelativeRect({elements:a,rect:b,offsetParent:v,strategy:l}):b);return{top:(y.top-w.top+g.top)/x.y,bottom:(w.bottom-y.bottom+g.bottom)/x.y,left:(y.left-w.left+g.left)/x.x,right:(w.right-y.right+g.right)/x.x}}let M=async(e,t,n)=>{let{placement:r="bottom",strategy:i="absolute",middleware:o=[],platform:s}=n,a=o.filter(Boolean),l=await (null==s.isRTL?void 0:s.isRTL(t)),u=await s.getElementRects({reference:e,floating:t,strategy:i}),{x:c,y:d}=P(u,r,l),h=r,f={},p=0;for(let n=0;n<a.length;n++){var g;let{name:o,fn:m}=a[n],{x:y,y:b,data:v,reset:x}=await m({x:c,y:d,initialPlacement:r,placement:h,strategy:i,middlewareData:f,re
5cts:u,platform:{...s,detectOverflow:null!=(g=s.detectOverflow)?g:R},elements:{reference:e,floating:t}});c=null!=y?y:c,d=null!=b?b:d,f={...f,[o]:{...f[o],...v}},x&&p<=50&&(p++,"object"==typeof x&&(x.placement&&(h=x.placement),x.rects&&(u=!0===x.rects?await s.getElementRects({reference:e,floating:t,strategy:i}):x.rects),{x:c,y:d}=P(u,h,l)),n=-1)}return{x:c,y:d,placement:h,strategy:i,middlewareData:f}};function j(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function I(e){return r.some(t=>e[t]>=0)}let O=new Set(["left","top"]);async function _(e,t){let{placement:n,platform:r,elements:i}=e,o=await (null==r.isRTL?void 0:r.isRTL(i.floating)),s=f(n),a=p(n),l="y"===b(n),u=O.has(s)?-1:1,c=o&&l?-1:1,d=h(t,e),{mainAxis:g,crossAxis:m,alignmentAxis:y}="number"==typeof d?{mainAxis:d,crossAxis:0,alignmentAxis:null}:{mainAxis:d.mainAxis||0,crossAxis:d.crossAxis||0,alignmentAxis:d.alignmentAxis};return a&&"number"==typeof y&&(m="end"===a?-1*y:y),l?{x:m*c,y:g*u}:{x:g*u,y:m*c}}function D(){return"undefined"!=typeof window}function L(e){return N(e)?(e.nodeName||"").toLowerCase():"#document"}function $(e){var t;return(null==e||null==(t=e.ownerDocument)?void 0:t.defaultView)||window}function V(e){var t;return null==(t=(N(e)?e.ownerDocument:e.document)||window.document)?void 0:t.documentElement}function N(e){return!!D()&&(e instanceof Node||e instanceof $(e).Node)}function z(e){return!!D()&&(e instanceof Element||e instanceof $(e).Element)}function F(e){return!!D()&&(e instanceof HTMLElement||e instanceof $(e).HTMLElement)}function B(e){return!!D()&&"undefined"!=typeof ShadowRoot&&(e instanceof ShadowRoot||e instanceof $(e).ShadowRoot)}let H=new Set(["inline","contents"]);function U(e){let{overflow:t,overflowX:n,overflowY:r,display:i}=et(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&!H.has(i)}let W=new Set(["table","td","th"]),Y=[":popover-open",":modal"];function G(e){return Y.some(t=>{try{return e.matches(t)}catch(e){return!1}})}let X=["transform","translate","scale","rotate","perspective"],K=["transform","translate","scale","rotate","perspective","filter"],q=["paint","layout","strict","content"];function Z(e){let t=J(),n=z(e)?et(e):e;return X.some(e=>!!n[e]&&"none"!==n[e])||!!n.containerType&&"normal"!==n.containerType||!t&&!!n.backdropFilter&&"none"!==n.backdropFilter||!t&&!!n.filter&&"none"!==n.filter||K.some(e=>(n.willChange||"").includes(e))||q.some(e=>(n.contain||"").includes(e))}function J(){return"undefined"!=typeof CSS&&!!CSS.supports&&CSS.supports("-webkit-backdrop-filter","none")}let Q=new Set(["html","body","#document"]);function ee(e){return Q.has(L(e))}function et(e){return $(e).getComputedStyle(e)}function en(e){return z(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function er(e){if("html"===L(e))return e;let t=e.assignedSlot||e.parentNode||B(e)&&e.host||V(e);return B(t)?t.host:t}function ei(e,t,n){var r;void 0===t&&(t=[]),void 0===n&&(n=!0);let i=function e(t){let n=er(t);return ee(n)?t.ownerDocument?t.ownerDocument.body:t.body:F(n)&&U(n)?n:e(n)}(e),o=i===(null==(r=e.ownerDocument)?void 0:r.body),s=$(i);if(o){let e=eo(s);return t.concat(s,s.visualViewport||[],U(i)?i:[],e&&n?ei(e):[])}return t.concat(i,ei(i,[],n))}function eo(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function es(e){let t=et(e),n=parseFloat(t.width)||0,r=parseFloat(t.height)||0,i=F(e),o=i?e.offsetWidth:n,s=i?e.offsetHeight:r,l=a(n)!==o||a(r)!==s;return l&&(n=o,r=s),{width:n,height:r,$:l}}function ea(e){return z(e)?e:e.contextElement}function el(e){let t=ea(e);if(!F(t))return u(1);let n=t.getBoundingClientRect(),{width:r,height:i,$:o}=es(t),s=(o?a(n.width):n.width)/r,l=(o?a(n.height):n.height)/i;return s&&Number.isFinite(s)||(s=1),l&&Number.isFinite(l)||(l=1),{x:s,y:l}}let eu=u(0);function ec(e){let t=$(e);return J()&&t.visualViewport?{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}:eu}function ed(e,t,n,r){var i;void 0===t&&(t=!1),void 0===n&&(n=!1);let o=e.getBoundingClientRect(),s=ea(e),a=u(1);t&&(r?z(r)&&(a=el(r)):a=el(e));let l=(void 0===(i=n)&&(i=!1),r&&(!i||r===$(s))&&i)?ec(s):u(0),c=(o.left+l.x)/a.x,d=(o.top+l.y)/a.y,h=o.width/a.x,f=o.height/a.y;if(s){let e=$(s),t=r&&z(r)?$(r):r,n=e,i=eo(n);for(;i&&r&&t!==n;){let e=el(i),t=i.getBoundingClientRect(),r=et(i),o=t.left+(i.clientLeft+parseFloat(r.paddingLeft))*e.x,s=t.top+(i.clientTop+parseFloat(r.paddingTop))*e.y;c*=e.x,d*=e.y,h*=e.x,f*=e.y,c+=o,d+=s,i=eo(n=$(i))}}return T({width:h,height:f,x:c,y:d})}function eh(e,t){let n=en(e).scrollLeft;return t?t.left+n:ed(V(e)).left+n}function ef(e,t){let n=e.getBoundingClientRect();return{x:n.left+t.scrollLeft-eh(e,n),y:n.top+t.scrollTop}}let ep=new Set(["absolute","fixed"]);function eg(e,t,n){let r;if("viewport"===t)r=function(e,t){let n=$(e),r=V(e),i=n.visualVie
5wport,o=r.clientWidth,s=r.clientHeight,a=0,l=0;if(i){o=i.width,s=i.height;let e=J();(!e||e&&"fixed"===t)&&(a=i.offsetLeft,l=i.offsetTop)}let u=eh(r);if(u<=0){let e=r.ownerDocument,t=e.body,n=getComputedStyle(t),i="CSS1Compat"===e.compatMode&&parseFloat(n.marginLeft)+parseFloat(n.marginRight)||0,s=Math.abs(r.clientWidth-t.clientWidth-i);s<=25&&(o-=s)}else u<=25&&(o+=u);return{width:o,height:s,x:a,y:l}}(e,n);else if("document"===t)r=function(e){let t=V(e),n=en(e),r=e.ownerDocument.body,i=s(t.scrollWidth,t.clientWidth,r.scrollWidth,r.clientWidth),o=s(t.scrollHeight,t.clientHeight,r.scrollHeight,r.clientHeight),a=-n.scrollLeft+eh(e),l=-n.scrollTop;return"rtl"===et(r).direction&&(a+=s(t.clientWidth,r.clientWidth)-i),{width:i,height:o,x:a,y:l}}(V(e));else if(z(t))r=function(e,t){let n=ed(e,!0,"fixed"===t),r=n.top+e.clientTop,i=n.left+e.clientLeft,o=F(e)?el(e):u(1),s=e.clientWidth*o.x,a=e.clientHeight*o.y;return{width:s,height:a,x:i*o.x,y:r*o.y}}(t,n);else{let n=ec(e);r={x:t.x-n.x,y:t.y-n.y,width:t.width,height:t.height}}return T(r)}function em(e){return"static"===et(e).position}function ey(e,t){if(!F(e)||"fixed"===et(e).position)return null;if(t)return t(e);let n=e.offsetParent;return V(e)===n&&(n=n.ownerDocument.body),n}function eb(e,t){var n;let r=$(e);if(G(e))return r;if(!F(e)){let t=er(e);for(;t&&!ee(t);){if(z(t)&&!em(t))return t;t=er(t)}return r}let i=ey(e,t);for(;i&&(n=i,W.has(L(n)))&&em(i);)i=ey(i,t);return i&&ee(i)&&em(i)&&!Z(i)?r:i||function(e){let t=er(e);for(;F(t)&&!ee(t);){if(Z(t))return t;if(G(t))break;t=er(t)}return null}(e)||r}let ev=async function(e){let t=this.getOffsetParent||eb,n=this.getDimensions,r=await n(e.floating);return{reference:function(e,t,n){let r=F(t),i=V(t),o="fixed"===n,s=ed(e,!0,o,t),a={scrollLeft:0,scrollTop:0},l=u(0);if(r||!r&&!o)if(("body"!==L(t)||U(i))&&(a=en(t)),r){let e=ed(t,!0,o,t);l.x=e.x+t.clientLeft,l.y=e.y+t.clientTop}else i&&(l.x=eh(i));o&&!r&&i&&(l.x=eh(i));let c=!i||r||o?u(0):ef(i,a);return{x:s.left+a.scrollLeft-l.x-c.x,y:s.top+a.scrollTop-l.y-c.y,width:s.width,height:s.height}}(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:r.width,height:r.height}}},ex={convertOffsetParentRelativeRectToViewportRelativeRect:function(e){let{elements:t,rect:n,offsetParent:r,strategy:i}=e,o="fixed"===i,s=V(r),a=!!t&&G(t.floating);if(r===s||a&&o)return n;let l={scrollLeft:0,scrollTop:0},c=u(1),d=u(0),h=F(r);if((h||!h&&!o)&&(("body"!==L(r)||U(s))&&(l=en(r)),F(r))){let e=ed(r);c=el(r),d.x=e.x+r.clientLeft,d.y=e.y+r.clientTop}let f=!s||h||o?u(0):ef(s,l);return{width:n.width*c.x,height:n.height*c.y,x:n.x*c.x-l.scrollLeft*c.x+d.x+f.x,y:n.y*c.y-l.scrollTop*c.y+d.y+f.y}},getDocumentElement:V,getClippingRect:function(e){let{element:t,boundary:n,rootBoundary:r,strategy:i}=e,a=[..."clippingAncestors"===n?G(t)?[]:function(e,t){let n=t.get(e);if(n)return n;let r=ei(e,[],!1).filter(e=>z(e)&&"body"!==L(e)),i=null,o="fixed"===et(e).position,s=o?er(e):e;for(;z(s)&&!ee(s);){let t=et(s),n=Z(s);n||"fixed"!==t.position||(i=null),(o?!n&&!i:!n&&"static"===t.position&&!!i&&ep.has(i.position)||U(s)&&!n&&function e(t,n){let r=er(t);return!(r===n||!z(r)||ee(r))&&("fixed"===et(r).position||e(r,n))}(e,s))?r=r.filter(e=>e!==s):i=t,s=er(s)}return t.set(e,r),r}(t,this._c):[].concat(n),r],l=a[0],u=a.reduce((e,n)=>{let r=eg(t,n,i);return e.top=s(r.top,e.top),e.right=o(r.right,e.right),e.bottom=o(r.bottom,e.bottom),e.left=s(r.left,e.left),e},eg(t,l,i));return{width:u.right-u.left,height:u.bottom-u.top,x:u.left,y:u.top}},getOffsetParent:eb,getElementRects:ev,getClientRects:function(e){return Array.from(e.getClientRects())},getDimensions:function(e){let{width:t,height:n}=es(e);return{width:t,height:n}},getScale:el,isElement:z,isRTL:function(e){return"rtl"===et(e).direction}};function ew(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}function eS(e,t,n,r){let i;void 0===r&&(r={});let{ancestorScroll:a=!0,ancestorResize:u=!0,elementResize:c="function"==typeof ResizeObserver,layoutShift:d="function"==typeof IntersectionObserver,animationFrame:h=!1}=r,f=ea(e),p=a||u?[...f?ei(f):[],...ei(t)]:[];
5p.forEach(e=>{a&&e.addEventListener("scroll",n,{passive:!0}),u&&e.addEventListener("resize",n)});let g=f&&d?function(e,t){let n,r=null,i=V(e);function a(){var e;clearTimeout(n),null==(e=r)||e.disconnect(),r=null}return!function u(c,d){void 0===c&&(c=!1),void 0===d&&(d=1),a();let h=e.getBoundingClientRect(),{left:f,top:p,width:g,height:m}=h;if(c||t(),!g||!m)return;let y=l(p),b=l(i.clientWidth-(f+g)),v={rootMargin:-y+"px "+-b+"px "+-l(i.clientHeight-(p+m))+"px "+-l(f)+"px",threshold:s(0,o(1,d))||1},x=!0;function w(t){let r=t[0].intersectionRatio;if(r!==d){if(!x)return u();r?u(!1,r):n=setTimeout(()=>{u(!1,1e-7)},1e3)}1!==r||ew(h,e.getBoundingClientRect())||u(),x=!1}try{r=new IntersectionObserver(w,{...v,root:i.ownerDocument})}catch(e){r=new IntersectionObserver(w,v)}r.observe(e)}(!0),a}(f,n):null,m=-1,y=null;c&&(y=new ResizeObserver(e=>{let[r]=e;r&&r.target===f&&y&&(y.unobserve(t),cancelAnimationFrame(m),m=requestAnimationFrame(()=>{var e;null==(e=y)||e.observe(t)})),n()}),f&&!h&&y.observe(f),y.observe(t));let b=h?ed(e):null;return h&&function t(){let r=ed(e);b&&!ew(b,r)&&n(),b=r,i=requestAnimationFrame(t)}(),n(),()=>{var e;p.forEach(e=>{a&&e.removeEventListener("scroll",n),u&&e.removeEventListener("resize",n)}),null==g||g(),null==(e=y)||e.disconnect(),y=null,h&&cancelAnimationFrame(i)}}let ek=R,eC=function(e){return void 0===e&&(e=0),{name:"offset",options:e,async fn(t){var n,r;let{x:i,y:o,placement:s,middlewareData:a}=t,l=await _(t,e);return s===(null==(n=a.offset)?void 0:n.placement)&&null!=(r=a.arrow)&&r.alignmentOffset?{}:{x:i+l.x,y:o+l.y,data:{...l,placement:s}}}}},eE=function(e){return void 0===e&&(e={}),{name:"autoPlacement",options:e,async fn(t){var n,r,o,s;let{rects:a,middlewareData:l,placement:u,platform:c,elements:d}=t,{crossAxis:g=!1,alignment:m,allowedPlacements:y=i,autoAlignment:b=!0,...w}=h(e,t),S=void 0!==m||y===i?((s=m||null)?[...y.filter(e=>p(e)===s),...y.filter(e=>p(e)!==s)]:y.filter(e=>f(e)===e)).filter(e=>!s||p(e)===s||!!b&&x(e)!==e):y,k=await c.detectOverflow(t,w),C=(null==(n=l.autoPlacement)?void 0:n.index)||0,E=S[C];if(null==E)return{};let A=v(E,a,await (null==c.isRTL?void 0:c.isRTL(d.floating)));if(u!==E)return{reset:{placement:S[0]}};let T=[k[f(E)],k[A[0]],k[A[1]]],P=[...(null==(r=l.autoPlacement)?void 0:r.overflows)||[],{placement:E,overflows:T}],R=S[C+1];if(R)return{data:{index:C+1,overflows:P},reset:{placement:R}};let M=P.map(e=>{let t=p(e.placement);return[e.placement,t&&g?e.overflows.slice(0,2).reduce((e,t)=>e+t,0):e.overflows[0],e.overflows]}).sort((e,t)=>e[1]-t[1]),j=(null==(o=M.filter(e=>e[2].slice(0,p(e[0])?2:3).every(e=>e<=0))[0])?void 0:o[0])||M[0][0];return j!==u?{data:{index:C+1,overflows:P},reset:{placement:j}}:{}}}},eA=function(e){return void 0===e&&(e={}),{name:"shift",options:e,async fn(t){let{x:n,y:r,placement:i,platform:a}=t,{mainAxis:l=!0,crossAxis:u=!1,limiter:c={fn:e=>{let{x:t,y:n}=e;return{x:t,y:n}}},...d}=h(e,t),p={x:n,y:r},m=await a.detectOverflow(t,d),y=b(f(i)),v=g(y),x=p[v],w=p[y];if(l){let e="y"===v?"top":"left",t="y"===v?"bottom":"right",n=x+m[e],r=x-m[t];x=s(n,o(x,r))}if(u){let e="y"===y?"top":"left",t="y"===y?"bottom":"right",n=w+m[e],r=w-m[t];w=s(n,o(w,r))}let S=c.fn({...t,[v]:x,[y]:w});return{...S,data:{x:S.x-n,y:S.y-r,enabled:{[v]:l,[y]:u}}}}}},eT=function(e){return void 0===e&&(e={}),{name:"flip",options:e,async fn(t){var n,r,i,o,s;let{placement:a,middlewareData:l,rects:u,initialPlacement:c,platform:d,elements:g}=t,{mainAxis:m=!0,crossAxis:y=!0,fallbackPlacements:A,fallbackStrategy:T="bestFit",fallbackAxisSideDirection:P="none",flipAlignment:R=!0,...M}=h(e,t);if(null!=(n=l.arrow)&&n.alignmentOffset)return{};let j=f(a),I=b(c),O=f(c)===c,_=await (null==d.isRTL?void 0:d.isRTL(g.floating)),D=A||(O||!R?[E(c)]:function(e){let t=E(e);return[x(e),t,x(t)]}(c)),L="none"!==P;!A&&L&&D.push(...function(e,t,n,r){let i=p(e),o=function(e,t,n){switch(e){case"top":case"bottom":if(n)return t?S:w;return t?w:S;case"left":case"right":return t?k:C;default:return[]}}(f(e),"start"===n,r);return i&&(o=o.map(e=>e+"-"+i),t&&(o=o.concat(o.map(x)))),o}(c,R,P,_));let $=[c,...D],V=await d.detectOverflow(t,M),N=[],z=(null==(r=l.flip)?void 0:r.overflows)||[];if(m&&N.push(V[j]),y){let e=v(a,u,_);N.push(V[e[0]],V[e[1]])}if(z=[...z,{placement:a,overflows:N}],!N.every(e=>e<=0)){let e=((null==(i=l.flip)?void 0:i.index)||0)+1,t=$[e];if(t&&("alignment"!==y||I===b(t)||z.every(e=>b(e.placement)!==I||e.overflows[0]>0)))return{data:{index:e,overflows:z},reset:{placement:t}};let n=null==(o=z.filter(e=>e.overflows[0]<=0).sort((e,t)=>
5e.overflows[1]-t.overflows[1])[0])?void 0:o.placement;if(!n)switch(T){case"bestFit":{let e=null==(s=z.filter(e=>{if(L){let t=b(e.placement);return t===I||"y"===t}return!0}).map(e=>[e.placement,e.overflows.filter(e=>e>0).reduce((e,t)=>e+t,0)]).sort((e,t)=>e[1]-t[1])[0])?void 0:s[0];e&&(n=e);break}case"initialPlacement":n=c}if(a!==n)return{reset:{placement:n}}}return{}}}},eP=function(e){return void 0===e&&(e={}),{name:"hide",options:e,async fn(t){let{rects:n,platform:r}=t,{strategy:i="referenceHidden",...o}=h(e,t);switch(i){case"referenceHidden":{let e=j(await r.detectOverflow(t,{...o,elementContext:"reference"}),n.reference);return{data:{referenceHiddenOffsets:e,referenceHidden:I(e)}}}case"escaped":{let e=j(await r.detectOverflow(t,{...o,altBoundary:!0}),n.floating);return{data:{escapedOffsets:e,escaped:I(e)}}}default:return{}}}}},eR=e=>({name:"arrow",options:e,async fn(t){let{x:n,y:r,placement:i,rects:a,platform:l,elements:u,middlewareData:c}=t,{element:d,padding:f=0}=h(e,t)||{};if(null==d)return{};let y=A(f),v={x:n,y:r},x=g(b(i)),w=m(x),S=await l.getDimensions(d),k="y"===x,C=k?"clientHeight":"clientWidth",E=a.reference[w]+a.reference[x]-v[x]-a.floating[w],T=v[x]-a.reference[x],P=await (null==l.getOffsetParent?void 0:l.getOffsetParent(d)),R=P?P[C]:0;R&&await (null==l.isElement?void 0:l.isElement(P))||(R=u.floating[C]||a.floating[w]);
5let M=R/2-S[w]/2-1,j=o(y[k?"top":"left"],M),I=o(y[k?"bottom":"right"],M),O=R-S[w]-I,_=R/2-S[w]/2+(E/2-T/2),D=s(j,o(_,O)),L=!c.arrow&&null!=p(i)&&_!==D&&a.reference[w]/2-(_<j?j:I)-S[w]/2<0,$=L?_<j?_-j:_-O:0;return{[x]:v[x]+$,data:{[x]:D,centerOffset:_-D-$,...L&&{alignmentOffset:$}},reset:L}}}),eM=(e,t,n)=>{let r=new Map,i={platform:ex,...n},o={...i.platform,_c:r};return M(e,t,{...i,platform:o})}},58496:(e,t,n)=>{"use strict";n.d(t,{X:()=>f,r:()=>d});let r=["Value","Copy","Blank","ReturnIntoArray","ReturnIntoObject","ReturnIntoObjectSameKey","PushField","PushElement","PushParent","Pop","PushFieldCopy","PushFieldBlank","PushElementCopy","PushElementBlank","ReturnIntoObjectPop","ReturnIntoObjectSameKeyPop","ReturnIntoArrayPop","ObjectSetFieldValue","ObjectCopyField","ObjectDeleteField","ArrayAppendValue","ArrayAppendSlice","StringAppendString","StringAppendSlice"];class i{model;root;patch;i;inputStack;outputStack;constructor(e,t,n){this.model=e,this.root=t,this.patch=n,this.i=0,this.inputStack=[],this.outputStack=[]}read(){return this.patch[this.i++]}process(){for(this.inputStack.push({value:this.root}),this.outputStack.push({value:this.root});this.i<this.patch.length;){let e=this.read(),t=r[e];if(!t)throw Error(`Unknown opcode: ${e}`);this[`process${t}`].apply(this)}let e=this.outputStack.pop();return this.finalizeOutput(e)}inputEntry(){return this.inputStack[this.inputStack.length-1]}inputKey(e,t){return e.keys||(e.keys=this.model.objectGetKeys(e.value).sort()),e.keys[t]}outputEntry(){return this.outputStack[this.outputStack.length-1]}outputArray(){let e=this.outputEntry();return e.writeValue||(e.writeValue=this.model.copyArray(e.value)),e.writeValue}outputObject(){let e=this.outputEntry();return e.writeValue||(e.writeValue=this.model.copyObject(e.value)),e.writeValue}outputString(){let e=this.outputEntry();return e.writeValue||(e.writeValue=this.model.copyString(e.value)),e.writeValue}finalizeOutput(e){return e.writeValue?this.model.finalize(e.writeValue):e.value}processValue(){let e=this.model.wrap(this.read());this.outputStack.push({value:e})}processCopy(){let e=this.inputEntry();this.outputStack.push({value:e.value})}processBlank(){this.outputStack.push({value:null})}processReturnIntoArray(){let e=this.outputStack.pop(),t=this.finalizeOutput(e),n=this.outputArray();this.model.arrayAppendValue(n,t)}processReturnIntoObject(){let e=this.read(),t=this.outputStack.pop(),n=this.finalizeOutput(t);n=this.model.markChanged(n);let r=this.outputObject();this.model.objectSetField(r,e,n)}processReturnIntoObjectSameKey(){let e=this.inputEntry(),t=this.outputStack.pop(),n=this.finalizeOutput(t),r=this.outputObject();this.model.objectSetField(r,e.key,n)}processPushField(){let e=this.read(),t=this.inputEntry(),n=this.inputKey(t,e),r=this.model.objectGetField(t.value,n);this.inputStack.push({value:r,key:n})}processPushElement(){let e=this.read(),t=this.inputEntry(),n=this.model.arrayGetElement(t.value,e);this.inputStack.push({value:n})}processPop(){this.inputStack.pop()}processPushFieldCopy(){this.processPushField(),this.processCopy()}processPushFieldBlank(){this.processPushField(),this.processBlank()}processPushElementCopy(){this.processPushElement(),this.processCopy()}processPushElementBlank(){this.processPushElement(),this.processBlank()}processReturnIntoObjectPop(){this.processReturnIntoObject(),this.processPop()}processReturnIntoObjectSameKeyPop(){this.processReturnIntoObjectSameKey(),this.processPop()}processReturnIntoArrayPop(){this.processReturnIntoArray(),this.processPop()}processObjectSetFieldValue(){this.processValue(),this.processReturnIntoObject()}processObjectCopyField(){this.processPushField(),this.processCopy(),this.processReturnIntoObjectSameKey(),this.processPop()}processObjectDeleteField(){let e=this.read(),t=this.inputEntry(),n=this.inputKey(t,e),r=this.outputObject();this.model.objectDeleteField(r,n)}processArrayAppendValue(){let e=this.model.wrap(this.read()),t=this.outputArray();this.model.arrayAppendValue(t,e)}processArrayAppendSlice(){let e=this.read(),t=this.read(),n=this.outputArray(),r=this.inputEntry().value;this.model.arrayAppendSlice(n,r,e,t)}processStringAppendString(){let e=this.model.wrap(this.read()),t=this.outputString();this.model.stringAppendValue(t,e)}processStringAppendSlice(){let e=this.read(),t=this.read(),n=this.outputString(),r=this.inputEntry().value;this.model.stringAppendSlice(n,r,e,t)}}function o(e){return e>>16?4:e>>11?3:e>>7?2:1}function s(e){let t=0;for(let n=0;n<e.length;n++){let r=o(e.codePointAt(n));4==r&&n++,t+=r}return t}function a(e,t,n=0){let r=n,i=0;for(i=n;r<t;
5i++){let t=o(e.codePointAt(i));4===t&&i++,r+=t}return i}class l{meta;constructor(e){this.meta=e}wrap(e){return this.wrapWithMeta(e,this.meta,this.meta)}wrapWithMeta(e,t,n=this.meta){return{data:e,startMeta:t,endMeta:n}}asObject(e){if(!e.content){let t={};for(let[n,r]of Object.entries(e.data))t[n]=this.wrapWithMeta(r,e.startMeta);e.content={type:"object",fields:t}}return e.content}asArray(e){if(!e.content){let t=e.data.map(t=>this.wrapWithMeta(t,e.startMeta)),n=t.map(()=>this.meta);e.content={type:"array",elements:t,metas:n}}return e.content}asString(e){if(!e.content){let t=e.data,n={value:t,utf8size:s(t),uses:[],startMeta:e.startMeta,endMeta:e.endMeta};e.content=this.stringFromParts([n])}return e.content}stringFromParts(e){let t={type:"string",parts:e};for(let n of e)n.uses.push(t);return t}objectGetKeys(e){return e.content?Object.keys(e.content.fields):Object.keys(e.data)}objectGetField(e,t){return this.asObject(e).fields[t]}arrayGetElement(e,t){return this.asArray(e).elements[t]}finalize(e){return this.updateEndMeta(e),{content:e,startMeta:this.meta,endMeta:this.meta}}markChanged(e){return this.wrap(u(e))}updateEndMeta(e){if("string"==e.type)for(let t of e.parts)t.endMeta=this.meta;else if("array"===e.type)for(let t of e.elements)t.content&&t.endMeta!==this.meta&&this.updateEndMeta(t.content),t.endMeta=this.meta;else for(let t of Object.values(e.fields))t.content&&t.endMeta!==this.meta&&this.updateEndMeta(t.content),t.endMeta=this.meta}copyString(e){if(!e)return{type:"string",parts:[]};{let t=this.asString(e);return this.stringFromParts(t.parts.slice())}}copyObject(e){let t={type:"object",fields:{}};if(e){let n=this.asObject(e);Object.assign(t.fields,n.fields)}return t}copyArray(e){let t=e?this.asArray(e):null;return{type:"array",elements:t?t.elements:[],metas:t?t.metas:[]}}objectSetField(e,t,n){e.fields[t]=n}objectDeleteField(e,t){delete e.fields[t]}arrayAppendValue(e,t){e.elements.push(t),e.metas.push(this.meta)}arrayAppendSlice(e,t,n,r){let i=this.asArray(t),o=i.elements.length===n;if(e.elements.push(...i.elements.slice(n,r)),o)e.metas.push(...i.metas.slice(n,r));else for(let t=n;t<r;t++)e.metas.push(this.meta)}stringAppendValue(e,t){for(let n of this.asString(t).parts)this.stringAppendPart(e,n)}stringAppendPart(e,t){e.parts.push(t),t.uses.push(e)}resolveStringPart(e,t,n){if(0===n)return t;for(let r=t;r<e.parts.length;r++){let t=e.parts[r];if(n===t.utf8size)return r+1;if(n<t.utf8size)return this.splitString(t,n),r+1;n-=t.utf8size}throw Error("splitting string out of bounds")}splitString(e,t){let n,r=t,i=e.utf8size-r;if(e.utf8size!==e.value.length){let n=0;for(t=0;n<r;t++){let r=o(e.value.codePointAt(t));4===r&&t++,n+=r}}n=e.value.slice(0,t);let s={value:e.value.slice(t),utf8size:i,uses:e.uses.slice(),startMeta:e.startMeta,endMeta:e.endMeta};for(let t of(e.value=n,e.utf8size=r,e.uses)){let n=t.parts.indexOf(e);if(-1===n)throw Error("bug: mismatch between string parts and use.");t.parts.splice(n+1,0,s)}}stringAppendSlice(e,t,n,r){let i=this.asString(t),o=this.resolveStringPart(i,0,n),s=this.resolveStringPart(i,o,r-n);for(let t=o;t<s;t++){let n=i.parts[t];this.stringAppendPart(e,n)}}}function u(e){if("u">typeof e.data)return e.data;let t,n=e.content;switch(n.type){case"string":t=n.parts.map(e=>e.value).join("");break;case"array":t=n.elements.map(e=>u(e));break;case"object":for(let[e,r]of(t={},Object.entries(n.fields)))t[e]=u(r)}return e.data=t,t}function c(e){return e.content?e.content.type:Array.isArray(e.data)?"array":null===e.data?"null":typeof e.data}var d=Object.freeze({__proto__:null,applyPatch:function(e,t,n){return new i(new l(n),e,t).process()},getType:c,rebaseValue:function e(t,n){let r=c(t);if(r!==c(n))return n;let i=new l(t.endMeta),a=new l(n.endMeta);switch(r){case"object":{let r=i.asObject(t),o=a.asObject(n),s=0,l=Object.keys(r.fields).length,u=Object.keys(o.fields).length;for(let[t,n]of Object.entries(o.fields)){let i=r.fields[t];i&&(o.fields[t]=e(i,n),o.fields[t]===i&&s++)}return l===u&&l===s?t:n}case"array":{let r=i.asArray(t),o=a.asArray(n);if(r.elements.length!==o.elements.length)break;let s=0;for(let t=0;t<o.elements.length;t++)o.elements[t]=e(r.elements[t],o.elements[t]),o.elements[t]!==r.elements[t]&&s++;return 0===s?t:n}case"null":case"boolean":case"number":if(u(t)===u(n))return t;break;case"string":{let e=u(t),r=u(n);if(e===r)return t;let i=a.copyString(null),l=function(e,t){let n=Math.min(e.length,t.length),r=0;for(let i=0;i<n;){let n=e.codePointAt(i);if(n!==t.codePointAt(i))break;let s=o(n);r+=s,i+=4===s?2:1}return r}(e,r),c=function(e,t,n=0){let r=Math.min(e.length,t.length)-n,i=0;for(let n=0;n<r;){let r=e.codePointAt(e.length-1-n);if(r!==t.codePointAt(t.length-1-n))break;let s=o(r);i+=s,n+=4===s?2:1}return i}(e,r,l),d=s(r),h=s(e);0<l&&a.stringAppendSlice(i,t,0,l),l<d-c&&a.stringAppendSlice(i,n,l,d-c),h-c<h&&a.stringAppendSlice(i,t,h-c,h);let f=a.finalize(i);if(u(f)!==r)throw Error("incorrect string rebase");return f}}return n},unwrap:u,wrap:function(e,t){return{data:e,startMeta:t,endMeta:t}}});class h{wrap(e){return e}finalize(e){return Array.isArray(e)?e:e.data}markChanged(e){return e}objectGetKeys(e){return Object.keys(e)}
5objectGetField(e,t){return e[t]}arrayGetElement(e,t){return e[t]}copyObject(e){let t={type:"object",data:{}};if(null!==e)for(let[n,r]of Object.entries(e))t.data[n]=r;return t}copyArray(e){return null===e?[]:e.slice()}copyString(e){return{type:"string",data:null===e?"":e}}objectSetField(e,t,n){e.data[t]=n}objectDeleteField(e,t){delete e.data[t]}arrayAppendValue(e,t){e.push(t)}arrayAppendSlice(e,t,n,r){e.push(...t.slice(n,r))}stringAppendSlice(e,t,n,r){let i=a(t,n),o=a(t,r,i);e.data+=t.slice(i,o)}stringAppendValue(e,t){e.data+=t}}function f(e,t){return new i(new h,e,t).process()}},58840:e=>{var t=Object.prototype.toString;e.exports=function(e){return t.call(e)}},59452:(e,t,n)=>{"use strict";n.d(t,{BI:()=>O,Co:()=>W,EA:()=>J,IU:()=>Y,Ki:()=>m,Kp:()=>et,X:()=>f,dj:()=>eT,jT:()=>M,lG:()=>U,r5:()=>ee,s5:()=>g,sQ:()=>y,tE:()=>eE,tH:()=>b});var r=n(64509),i=n(95155),o=n(96241),s=n(12115),a=n(60308),l=n(11748),u=n(56555),c=n(16001),d=n(26497);function h(e){let t=requestAnimationFrame(e);return()=>{cancelAnimationFrame(t)}}function f(e){let t=null,n=h(()=>{t=h(e)});return()=>{t&&t(),n()}}function p(e){if(!(e.tabIndex>0||0===e.tabIndex&&null!==e.getAttribute("tabIndex")||((0,r.nY)(e)?!!e.href&&"ignore"!==e.rel:(0,r.A3)(e)?"hidden"!==e.type&&"file"!==e.type&&!e.disabled:!!((0,r.WE)(e)||(0,r.q4)(e)||(0,r.QY)(e))&&!e.disabled)))return!1;try{e.focus()}catch{}return document.activeElement===e}function g(e){for(let t=0;t<e.childNodes.length;t++){let n=e.childNodes[t];if((0,r.sb)(n)&&(p(n)||g(n)))return!0}return!1}function m(e){for(let t=e.childNodes.length-1;t>=0;t--){let n=e.childNodes[t];if((0,r.sb)(n)&&(p(n)||m(n)))return!0}return!1}function y(e){return(0,r.cF)(e)?._contentRect||null}class b extends s.Component{state={error:null};static getDerivedStateFromError(e){return{error:e}}componentDidCatch(e,t){this.props.onCatch({error:e,info:t})}render(){let{error:e}=this.state;if(e){let t="string"==typeof e?.message?e.message:"Error";return(0,i.jsx)(r.Cy,{children:t})}return this.props.children}}let v=a.I4.div.withConfig({displayName:"StyledAutocomplete",componentId:"sc-1igauft-0"})`line-height:0;`,x=(0,a.I4)(r.az).withConfig({displayName:"ListBox",componentId:"sc-1igauft-1"})`& > ul{list-style:none;padding:0;margin:0;}`,w=(0,a.i7)`
6  from {
7    transform: rotate(0deg);
8  }
9
10  to {
11    transform: rotate(360deg);
12  }
13`,S=(0,a.I4)(o.Nl1).withConfig({displayName:"AnimatedSpinnerIcon",componentId:"sc-1igauft-2"})`animation:${w} 500ms linear infinite;`;function k(e){let t,n,o,s=(0,l.c)(11),{children:a,id:u,onSelect:c,selected:d,value:h}=e;s[0]!==c||s[1]!==h?(t=()=>{setTimeout(()=>{c(h)},0)},s[0]=c,s[1]=h,s[2]=t):t=s[2];let f=t;s[3]!==f?(n=e=>{"Enter"!==e.key||(0,r.zd)(e.currentTarget)||f()},s[3]=f,s[4]=n):n=s[4];let p=n;return s[5]!==a||s[6]!==f||s[7]!==p||s[8]!==u||s[9]!==d?(o=(0,i.jsx)("li",{"aria-selected":d,"data-ui":"AutocompleteOption",id:u,role:"option",onClick:f,onKeyDown:p,children:a}),s[5]=a,s[6]=f,s[7]=p,s[8]=u,s[9]=d,s[10]=o):o=s[10],o}function C(e,t){return"input/change"===t.type?{...e,activeValue:null,focused:!0,query:t.query}:"input/focus"===t.type?{...e,focused:!0}:"root/blur"===t.type?{...e,focused:!1,query:null}:"root/clear"===t.type?{...e,activeValue:null,query:null,value:null}:"root/escape"===t.type?{...e,focused:!1,query:null}:"root/open"===t.type?{...e,query:e.query||t.query}:"root/setActiveValue"===t.type?{...e,activeValue:t.value,listFocused:t.listFocused||e.listFocused}:"root/setListFocused"===t.type?{...e,listFocused:t.listFocused}:"value/change"===t.type?{...e,activeValue:t.value,query:null,value:t.value}:e}let E=["Control","Shift","Alt","Enter","Home","End","PageUp","PageDown","Meta","Tab","CapsLock"],A=["bottom-start","top-start"],T=(e,t)=>t?t.value:e,P=(e,t)=>t.value.toLowerCase().indexOf(e.toLowerCase())>-1,R=(0,s.forwardRef)(function(e,t){let{border:n=!0,customValidity:a,disabled:l,filterOption:u,fontSize:c=2,icon:d,id:f,listBox:p=r.sU,loading:m,onBlur:y,onChange:b,onFocus:w,onQueryChange:R,onSelect:M,openButton:j,openOnFocus:I,options:O,padding:_=3,popover:D=r.sU,prefix:L,radius:$=2,readOnly:V,relatedElements:N,renderOption:z,renderPopover:F,renderValue:B=T,suffix:H,value:U,...W}=e,[Y,G]=(0,s.useReducer)(C,{activeValue:U||null,focused:!1,listFocused:!1,query:null,value:U||null}),{activeValue:X,focused:K,listFocused:q,query:Z,value:J}=Y,Q=(0,s.useCallback)(({value:e})=>(0,i.jsx)(r.Zp,{"data-as":"button",padding:_,radius:2,tone:"inherit",children:(0,i.jsx)(r.EY,{size:c,textOverflow:"ellipsis",children:e})}),[c,_]),ee="function"==typeof z?z:Q,et="function"==typeof u?u:P,en=(0,s.useRef)(null),er=(0,s.useRef)(null),ei=(0,s.useRef)(null),eo=(0,s.useRef)(null),es=(0,s.useRef)(!1),ea=(0,s.useRef)(J),el=(0,s.useRef)(U),eu=(0,s.useRef)(!1);(0,s.useImperativeHandle)(t,()=>ei.current);let ec=`${f}-listbox`,ed=Array.isArray(O)?O:r.Ml,eh=(0,r.KC)(_),ef=(0,s.useMemo)(()=>null!==J?ed.find(e=>e.value===J):void 0,[ed,J]),ep=(0,s.useMemo)(()=>ed.filter(e=>!Z||et(Z,e)),[et,ed,Z]),eg=ep.length,em=X?`${f}-option-${X}`:void 0,ey=null!==Z&&m||K&&null!==Z,eb=(0,s.useCallback)(e=>{setTimeout(()=>{if(eu.current)return;let t=(N||[]).concat(en.current?[en.current]:[],er.current?[er.current]:[]),n=!1;if(document.activeElement){for(let e of t)if(e===document.activeElement||e.contains(document.activeElement)){n=!0;break}}!1===n&&(G({type:"root/blur"}),eu.current=!1,R&&R(null),y&&y(e))},0)},[y,R,N]),ev=(0,s.useCallback)(e=>{let t=eo.current,n=e.target instanceof HTMLElement?e.target:null,r=t?.contains(n)||!1;r!==es.current&&(es.current=r,G({type:"root/setListFocused",listFocused:r}))},[]),ex=(0,s.useCallback)(e=>{G({type:"value/change",value:e}),eu.current=!1,M&&M(e),ea.current=e,b&&b(e),R&&R(null),ei.current?.focus()},[b,M,R]),ew=(0,s.useCallback)(e=>{if("ArrowDown"===e.key){if(e.preventDefault(),!eg)return;let t=ep.find(e=>e.value===X),n=t?ep.indexOf(t):-1,r=ep[(n+1)%eg];r&&G({type:"root/setActiveValue",value:r.value,listFocused:!0});return}if("ArrowUp"===e.key){if(e.preventDefault(),!eg)return;let t=ep.find(e=>e.value===X),n=t?ep.indexOf(t):-1,r=ep[-1===n?eg-1:(eg+n-1)%eg];r&&G({type:"root/setActiveValue",value:r.value,listFocused:!0});return}if("Escape"===e.key){G({type:"root/escape"}),eu.current=!1,R&&R(null),ei.current?.focus();return}let t=e.target,n=eo.current;
13if((n===t||n?.contains(t))&&!E.includes(e.key))return void ei.current?.focus()},[X,ep,eg,R]),eS=(0,s.useCallback)(e=>{let t=e.currentTarget.value;G({type:"input/change",query:t}),R&&R(t)},[R]),ek=(0,s.useCallback)(()=>{G({type:"root/open",query:J?B(J,ef):""})},[ef,B,J]),eC=(0,s.useCallback)(e=>{K||(G({type:"input/focus"}),w&&w(e),I&&ek())},[K,w,I,ek]),eE=(0,s.useCallback)(()=>{eu.current=!0},[]),eA=(0,s.useCallback)(()=>{eu.current=!1},[]),eT=(0,s.useCallback)(()=>{G({type:"root/clear"}),ea.current="",b&&b(""),R&&R(null),ei.current?.focus()},[b,R]),eP=(0,s.useCallback)(()=>{G({type:"input/focus"})},[]);(0,s.useEffect)(()=>{if(U!==el.current){el.current=U,void 0!==U&&(G({type:"value/change",value:U}),ea.current=U);return}U!==ea.current&&(ea.current=U||null,G({type:"value/change",value:U||null}))},[U]),(0,s.useEffect)(()=>{!K&&ea.current&&G({type:"root/setActiveValue",value:ea.current})},[K]),(0,s.useEffect)(()=>{let e=eo.current;if(!e)return;let t=ep.find(e=>e.value===X);if(t){let n=ep.indexOf(t),r=e.childNodes[n];if(r){if(document.activeElement&&r.contains(document.activeElement))return;g(r)}}},[X,ep]);let eR=(0,s.useMemo)(()=>{if(!m&&!l&&J)return{"aria-label":"Clear",onFocus:eP}},[l,eP,m,J]),eM=(0,s.useMemo)(()=>eh.map(e=>0===e?0:1===e||2===e?1:e-2),[eh]),ej=(0,s.useMemo)(()=>eh.map(e=>Math.max(e-1,0)),[eh]),eI=(0,s.useMemo)(()=>"object"==typeof j?j:r.sU,[j]),eO=(0,s.useCallback)(e=>{ek(),eI.onClick&&eI.onClick(e),h(()=>ei.current?.focus())},[eI,ek]),e_=(0,s.useMemo)(()=>l||V||!j?void 0:(0,i.jsx)(r.az,{"aria-hidden":ey,padding:eM,children:(0,i.jsx)(r.$n,{"aria-label":"Open",disabled:ey,fontSize:c,icon:o.D3D,mode:"bleed",padding:ej,...eI,onClick:eO})}),[l,ey,c,eO,j,eM,ej,eI,V]),eD=(0,s.useMemo)(()=>null===Z?null!==J?B(J,ef):"":Z,[ef,Z,B,J]),eL=(0,i.jsx)(r.ks,{...W,"aria-activedescendant":em,"aria-autocomplete":"list","aria-expanded":ey,"aria-owns":ec,autoCapitalize:"off",autoComplete:"off",autoCorrect:"off",border:n,clearButton:eR,customValidity:a,disabled:l,fontSize:c,icon:d,iconRight:m&&S,id:f,inputMode:"search",onChange:eS,onClear:eT,onFocus:eC,padding:eh,prefix:L,radius:$,readOnly:V,ref:ei,role:"combobox",spellCheck:!1,suffix:H||e_,value:eD}),e$=(0,s.useCallback)(e=>{"Tab"===e.key&&q&&ei.current?.focus()},[q]),eV=(0,s.useMemo)(()=>0===ep.length?null:(0,i.jsx)(x,{"data-ui":"AutoComplete__results",onKeyDown:e$,padding:1,...p,tabIndex:-1,children:(0,i.jsx)(r.BJ,{as:"ul","aria-multiselectable":!1,"data-ui":"AutoComplete__resultsList",id:ec,ref:eo,role:"listbox",space:1,children:ep.map(e=>{let t=null!==X?e.value===X:ef===e;return(0,i.jsx)(k,{id:`${f}-option-${e.value}`,onSelect:ex,selected:t,value:e.value,children:(0,s.cloneElement)(ee(e),{disabled:m,selected:t,tabIndex:q&&t?0:-1})},e.value)})})}),[X,ef,ep,ex,e$,f,p,ec,q,m,ee]),eN=(0,s.useMemo)(()=>F?F({content:eV,hidden:!ey,inputElement:ei.current,onMouseEnter:eE,onMouseLeave:eA},er):0===eg?null:(0,i.jsx)(r.AM,{arrow:!1,constrainSize:!0,content:eV,fallbackPlacements:A,matchReferenceWidth:!0,onMouseEnter:eE,onMouseLeave:eA,open:ey,overflow:"auto",placement:"bottom-start",portal:!0,radius:$,ref:er,referenceElement:ei.current,...D}),[eV,ey,eg,eE,eA,D,$,F]);return(0,i.jsxs)(v,{"data-ui":"Autocomplete",onBlur:eb,onFocus:ev,onKeyDown:ew,ref:en,children:[eL,eN]})});R.displayName="ForwardRef(Autocomplete)";let M=R,j=a.I4.ol.withConfig({displayName:"StyledBreadcrumbs",componentId:"sc-1es8h8q-0"})`margin:0;padding:0;display:flex;list-style:none;align-items:center;white-space:nowrap;line-height:0;`,I=(0,a.I4)(r.$n).withConfig({displayName:"ExpandButton",componentId:"sc-1es8h8q-1"})`appearance:none;margin:-4px;`,O=(0,s.forwardRef)(function(e,t){let n,o,a,u,c,d,h,f,p,g,m,y,b=(0,l.c)(44);b[0]!==e?({children:n,maxLength:o,separator:u,space:c,...a}=e,b[0]=e,b[1]=n,b[2]=o,b[3]=a,b[4]=u,b[5]=c):(n=b[1],o=b[2],a=b[3],u=b[4],c=b[5]);let v=(0,r.KC)(void 0===c?2:c),[x,w]=(0,s.useState)(!1),S=(0,s.useRef)(null),k=(0,s.useRef)(null);b[6]===Symbol.for("react.memo_cache_sentinel")?(d=()=>w(!1),b[6]=d):d=b[6];let C=d;b[7]===Symbol.for("react.memo_cache_sentinel")?(h=()=>w(!0),b[7]=h):h=b[7];let E=h;b[8]===Symbol.for("react.memo_cache_sentinel")?(f=()=>[S.current,k.current],b[8]=f):f=b[8],(0,r.PR)(C,f),b[9]!==n?(p=s.Children.toArray(n).filter(s.isValidElement),b[9]=n,b[10]=p):p=b[10];let A=p;e:{let e=A.length;if(o&&e>o){let t,n=Math.ceil(o/2),s=Math.floor(o/2);if(b[11]!==s||b[12]!==n||b[13]!==e||b[14]!==x||b[15]!==A||b[16]!==v){let o,a,l,u,c=A.slice(0,n-1);b[18]!==s||b[19]!==n||b[20]!==e||b[21]!==A?(o=A.slice(n-1,e-s),b[18]=s,b[19]=n,b[20]=e,b[21]=A,b[22]=o):o=b[22],b[23]!==v||b[24]!==o?(a=(0,i.jsx)(r.BJ,{as:"ol",overflow:"auto",padding:v,space:v,children:o}),b[23]=v,b[24]=o,b[25]=a):a=b[25];let d=x?C:E;b[26]!==x||b[27]!==d?(l=(0,i.jsx)(I,{fontSize:1,mode:"bleed",onClick:d,padding:1,ref:S,selected:x,text:"…"}),b[26]=x,b[27]=d,b[28]=l):l=b[28],b[29]!==x||b[30]!==l||b[31]!==a?(u=(0,i.jsx)(r.AM,{constrainSize:!0,content:a,open:x,placement:"top",portal:!0,ref:k,children:l},"button"),b[29]=x,b[30]=l,b[31]=a,b[32]=u):u=b[32],t=[...c,u,...A.slice(e-s)],b[11]=s,b[12]=n,b[13]=e,b[14]=x,b[15]=A,b[16]=v,b[17]=t}else t=b[17];g=t;break e}g=A}let T=g;if(b[33]!==T||b[34]!==u||b[35]!==v){let e;
13b[37]!==u||b[38]!==v?(e=(e,t)=>(0,i.jsxs)(s.Fragment,{children:[t>0&&(0,i.jsx)(r.az,{"aria-hidden":!0,as:"li",paddingX:v,children:u||(0,i.jsx)(r.EY,{muted:!0,children:"/"})}),(0,i.jsx)(r.az,{as:"li",children:e})]},t),b[37]=u,b[38]=v,b[39]=e):e=b[39],m=T.map(e),b[33]=T,b[34]=u,b[35]=v,b[36]=m}else m=b[36];return b[40]!==t||b[41]!==a||b[42]!==m?(y=(0,i.jsx)(j,{"data-ui":"Breadcrumbs",...a,ref:t,children:m}),b[40]=t,b[41]=a,b[42]=m,b[43]=y):y=b[43],y});O.displayName="ForwardRef(Breadcrumbs)";let _=(0,r.bz)("@sanity/ui/context/dialog",{version:0});function D(e,t,n){return!e||!t||(0,r.Q3)(e,n)||(0,r.Q3)(t,n)}let L=(0,a.I4)(r.Wd).withConfig({displayName:"StyledDialog",componentId:"sc-4n4xb3-0"})(r.l_,function({theme:e}){let{color:t}=(0,u.JW)(e);return{"&:not([hidden])":{display:"flex"},top:0,left:0,right:0,bottom:0,alignItems:"center",justifyContent:"center",outline:"none",background:t.backdrop}},function(e){let{media:t}=(0,u.JW)(e.theme);return(0,r.U1)(t,e.$position,e=>({"&&":{position:e}}))},function(e){return e.$animate?(0,a.AH)`
14    @keyframes zoomIn {
15      from {
16        opacity: 0;
17        transform: scale(0.95);
18      }
19      to {
20        opacity: 1;
21        transform: scale(1);
22      }
23    }
24    @keyframes fadeIn {
25      from {
26        opacity: 0;
27      }
28      to {
29        opacity: 1;
30      }
31    }
32
33    animation: fadeIn 200ms ease-out;
34    // Animates the dialog card.
35    & > [data-ui='DialogCard'] {
36      animation: zoomIn 200ms ease-out;
37    }
38  `:(0,a.AH)``}),$=(0,a.I4)(r.mc).withConfig({displayName:"DialogContainer",componentId:"sc-4n4xb3-1"})`&:not([hidden]){display:flex;}width:100%;height:100%;flex-direction:column;align-items:center;justify-content:center;`,V=(0,a.I4)(r.Zp).withConfig({displayName:"DialogCardRoot",componentId:"sc-4n4xb3-2"})`&:not([hidden]){display:flex;}width:100%;min-height:0;max-height:100%;overflow:hidden;overflow:clip;`,N=(0,a.I4)(r.so).withConfig({displayName:"DialogLayout",componentId:"sc-4n4xb3-3"})`flex:1;min-height:0;width:100%;`,z=(0,a.I4)(r.az).withConfig({displayName:"DialogHeader",componentId:"sc-4n4xb3-4"})`position:relative;z-index:2;`,F=(0,a.I4)(r.az).withConfig({displayName:"DialogContent",componentId:"sc-4n4xb3-5"})`position:relative;z-index:1;overflow:auto;outline:none;`,B=(0,a.I4)(r.az).withConfig({displayName:"DialogFooter",componentId:"sc-4n4xb3-6"})`position:relative;z-index:3;`,H=(0,s.forwardRef)(function(e,t){let n,a,u,c,d,h,f,p,m,y,b,v,x,w=(0,l.c)(38),{__unstable_autoFocus:S,__unstable_hideCloseButton:k,children:C,contentRef:E,footer:A,header:T,id:P,onClickOutside:R,onClose:M,portal:j,radius:I,scheme:O,shadow:_,width:L}=e,H=(0,r.WP)(),U=j?H.elements?.[j]||null:H.element,W=(0,r.$w)().element,Y=(0,r.KC)(I),G=(0,r.KC)(_),X=(0,r.KC)(L),K=(0,s.useRef)(null),q=(0,s.useRef)(null),{isTopLayer:Z}=(0,r.Z4)(),J=`${P}_label`,Q=!!M&&!1===k,ee=!!T||Q;return w[0]===Symbol.for("react.memo_cache_sentinel")?(n=()=>K.current,w[0]=n):n=w[0],(0,s.useImperativeHandle)(t,n),w[1]===Symbol.for("react.memo_cache_sentinel")?(a=()=>q.current,w[1]=a):a=w[1],(0,s.useImperativeHandle)(E,a),w[2]!==S?(u=()=>{S&&K.current&&g(K.current)},c=[S,K],w[2]=S,w[3]=u,w[4]=c):(u=w[3],c=w[4]),(0,s.useEffect)(u,c),w[5]!==W||w[6]!==Z||w[7]!==M||w[8]!==U?(d=e=>{if(!Z||!M)return;let t=document.activeElement;t&&!D(W,U,t)||"Escape"===e.key&&(e.preventDefault(),e.stopPropagation(),M())},w[5]=W,w[6]=Z,w[7]=M,w[8]=U,w[9]=d):d=w[9],(0,r.Pm)(d),w[10]!==W||w[11]!==Z||w[12]!==R||w[13]!==U?(h=Z&&R&&(e=>{let t=e.target;t&&!D(W,U,t)||R()}),w[10]=W,w[11]=Z,w[12]=R,w[13]=U,w[14]=h):h=w[14],w[15]===Symbol.for("react.memo_cache_sentinel")?(f=()=>[K.current],w[15]=f):f=w[15],(0,r.PR)(h,f),w[16]!==T||w[17]!==J||w[18]!==M||w[19]!==Q||w[20]!==ee?(p=ee&&(0,i.jsx)(z,{children:(0,i.jsxs)(r.so,{align:"flex-start",padding:3,children:[(0,i.jsx)(r.az,{flex:1,padding:2,children:T&&(0,i.jsx)(r.EY,{id:J,size:1,weight:"semibold",children:T})}),Q&&(0,i.jsx)(r.az,{flex:"none",children:(0,i.jsx)(r.$n,{"aria-label":"Close dialog",disabled:!M,icon:o.USm,mode:"bleed",onClick:M,padding:2})})]})}),w[16]=T,w[17]=J,w[18]=M,w[19]=Q,w[20]=ee,w[21]=p):p=w[21],w[22]!==C?(m=(0,i.jsx)(F,{flex:1,ref:q,tabIndex:-1,
38children:C}),w[22]=C,w[23]=m):m=w[23],w[24]!==A?(y=A&&(0,i.jsx)(B,{children:A}),w[24]=A,w[25]=y):y=w[25],w[26]!==p||w[27]!==m||w[28]!==y?(b=(0,i.jsxs)(N,{direction:"column",children:[p,m,y]}),w[26]=p,w[27]=m,w[28]=y,w[29]=b):b=w[29],w[30]!==Y||w[31]!==O||w[32]!==G||w[33]!==b?(v=(0,i.jsx)(V,{radius:Y,ref:K,scheme:O,shadow:G,children:b}),w[30]=Y,w[31]=O,w[32]=G,w[33]=b,w[34]=v):v=w[34],w[35]!==v||w[36]!==X?(x=(0,i.jsx)($,{"data-ui":"DialogCard",width:X,children:v}),w[35]=v,w[36]=X,w[37]=x):x=w[37],x});H.displayName="ForwardRef(DialogCard)";let U=(0,s.forwardRef)(function(e,t){let n,o,a,u,c,d,h,f,p,y,b,v,x,w,S,k,C,E,A,T,P,R,M,j,I,O,$,V,N=(0,l.c)(60),z=(0,s.useContext)(_),{layer:F}=(0,r.M4)();N[0]!==e?({__unstable_autoFocus:S,__unstable_hideCloseButton:k,cardRadius:C,cardShadow:E,children:a,contentRef:u,footer:c,header:d,id:h,onActivate:f,onClickOutside:p,onClose:y,onFocus:b,padding:A,portal:v,position:n,scheme:w,width:T,zOffset:o,animate:P,...x}=e,N[0]=e,N[1]=n,N[2]=o,N[3]=a,N[4]=u,N[5]=c,N[6]=d,N[7]=h,N[8]=f,N[9]=p,N[10]=y,N[11]=b,N[12]=v,N[13]=x,N[14]=w,N[15]=S,N[16]=k,N[17]=C,N[18]=E,N[19]=A,N[20]=T,N[21]=P):(n=N[1],o=N[2],a=N[3],u=N[4],c=N[5],d=N[6],h=N[7],f=N[8],p=N[9],y=N[10],b=N[11],v=N[12],x=N[13],w=N[14],S=N[15],k=N[16],C=N[17],E=N[18],A=N[19],T=N[20],P=N[21]);let B=void 0===S||S,U=void 0!==k&&k,W=void 0===C?4:C,Y=void 0===E?3:E,G=void 0===A?3:A,X=void 0===T?0:T,K=void 0!==P&&P,q=n??(z.position||"fixed"),Z=o??(z.zOffset||F.dialog.zOffset),J=!(0,r.jt)()&&K,Q=(0,r.WP)(),ee=v?Q.elements?.[v]||null:Q.element,et=(0,r.$w)().element,en=(0,r.KC)(W),er=(0,r.KC)(G),ei=(0,r.KC)(q),eo=(0,r.KC)(X),es=(0,r.KC)(Z),ea=(0,s.useRef)(null),el=(0,s.useRef)(null),eu=(0,s.useRef)(null),ec=(0,s.useRef)(null);N[22]!==b?(R=e=>{b?.(e);let t=e.target,n=eu.current;return n&&t===ea.current?void m(n):n&&t===el.current?void g(n):void((0,r.sb)(e.target)&&(ec.current=e.target))},N[22]=b,N[23]=R):R=N[23];let ed=R,eh=`${h}_label`,ef=(0,s.useRef)(void 0);N[24]!==et||N[25]!==ee?(M=()=>{ef.current&&clearTimeout(ef.current),ef.current=setTimeout(()=>{let e=document.activeElement;if(e&&!D(et,ee,e)){let e=ec.current;if(!e||!document.body.contains(e)){let e=eu.current;e&&g(e);return}
38e.focus()}},0)},N[24]=et,N[25]=ee,N[26]=M):M=N[26];let ep=M;return N[27]===Symbol.for("react.memo_cache_sentinel")?(j=(0,i.jsx)("div",{ref:ea,tabIndex:0}),N[27]=j):j=N[27],N[28]!==B||N[29]!==en||N[30]!==Y||N[31]!==a||N[32]!==u||N[33]!==c||N[34]!==d||N[35]!==U||N[36]!==h||N[37]!==p||N[38]!==y||N[39]!==v||N[40]!==w||N[41]!==eo?(I=(0,i.jsx)(H,{__unstable_autoFocus:B,__unstable_hideCloseButton:U,contentRef:u,footer:c,header:d,id:h,onClickOutside:p,onClose:y,portal:v,radius:en,ref:eu,scheme:w,shadow:Y,width:eo,children:a}),N[28]=B,N[29]=en,N[30]=Y,N[31]=a,N[32]=u,N[33]=c,N[34]=d,N[35]=U,N[36]=h,N[37]=p,N[38]=y,N[39]=v,N[40]=w,N[41]=eo,N[42]=I):I=N[42],N[43]===Symbol.for("react.memo_cache_sentinel")?(O=(0,i.jsx)("div",{ref:el,tabIndex:0}),N[43]=O):O=N[43],N[44]!==J||N[45]!==ed||N[46]!==ep||N[47]!==h||N[48]!==eh||N[49]!==f||N[50]!==er||N[51]!==ei||N[52]!==t||N[53]!==x||N[54]!==I||N[55]!==es?($=(0,i.jsxs)(L,{...x,$animate:J,$padding:er,$position:ei,"aria-labelledby":eh,"aria-modal":!0,"data-ui":"Dialog",id:h,onActivate:f,onClick:ep,onFocus:ed,ref:t,role:"dialog",zOffset:es,children:[j,I,O]}),N[44]=J,N[45]=ed,N[46]=ep,N[47]=h,N[48]=eh,N[49]=f,N[50]=er,N[51]=ei,N[52]=t,N[53]=x,N[54]=I,N[55]=es,N[56]=$):$=N[56],N[57]!==v||N[58]!==$?(V=(0,i.jsx)(r.ZL,{__unstable_name:v,children:$}),N[57]=v,N[58]=$,N[59]=V):V=N[59],V});function W(e){let t,n,r=(0,l.c)(6),{children:o,position:s,zOffset:a}=e;r[0]!==s||r[1]!==a?(t={version:0,position:s,zOffset:a},r[0]=s,r[1]=a,r[2]=t):t=r[2];let u=t;return r[3]!==o||r[4]!==u?(n=(0,i.jsx)(_.Provider,{value:u,children:o}),r[3]=o,r[4]=u,r[5]=n):n=r[5],n}U.displayName="ForwardRef(Dialog)",W.displayName="DialogProvider";let Y=(0,s.forwardRef)(function(e,t){let n,o,a,u,c,d,h,f,p,g,m,y,b,v,x,w,S,k,C,E,A,T,P,R=(0,l.c)(62),{__unstable_disableRestoreFocusOnClose:M,boundaryElement:j,button:I,id:O,menu:_,onClose:D,onOpen:L,placement:$,popoverScheme:V,portal:N,popover:z,popoverRadius:F,preventOverflow:B}=e,H=void 0!==M&&M,U=void 0===N||N,[W,Y]=(0,s.useState)(!1),[X,K]=(0,s.useState)(null),[q,Z]=(0,s.useState)(null);R[0]===Symbol.for("react.memo_cache_sentinel")?(n=[],R[0]=n):n=R[0];let[J,Q]=(0,s.useState)(n),ee=(0,s.useRef)(W);R[1]!==L||R[2]!==W?(o=()=>{L&&W&&!ee.current&&L()},a=[L,W],R[1]=L,R[2]=W,R[3]=o,R[4]=a):(o=R[3],a=R[4]),(0,s.useEffect)(o,a),R[5]!==D||R[6]!==W?(u=()=>{D&&!W&&ee.current&&D()},c=[D,W],R[5]=D,R[6]=W,R[7]=u,R[8]=c):(u=R[7],c=R[8]),(0,s.useEffect)(u,c),R[9]!==W?(d=()=>{ee.current=W},h=[W],R[9]=W,R[10]=d,R[11]=h):(d=R[10],h=R[11]),(0,s.useEffect)(d,h),R[12]===Symbol.for("react.memo_cache_sentinel")?(f=()=>{Y(G),K(null)},R[12]=f):f=R[12];let et=f;R[13]!==W?(p=e=>{W&&e.preventDefault()},R[13]=W,R[14]=p):p=R[14];let en=p;R[15]===Symbol.for("react.memo_cache_sentinel")?(g=e=>{if("ArrowDown"===e.key||"Enter"===e.key||" "===e.key){e.preventDefault(),Y(!0),K("first");return}if("ArrowUp"===e.key){e.preventDefault(),Y(!0),K("last");return}},R[15]=g):g=R[15];let er=g;R[16]!==q||R[17]!==J?(m=e=>{let t=e.target;if(t instanceof Node&&!(q&&(t===q||q.contains(t)))){for(let e of J)if(t===e||e.contains(t))return;Y(!1)}},R[16]=q,R[17]=J,R[18]=m):m=R[18];let ei=m;R[19]!==q||R[20]!==H?(y=()=>{Y(!1),!H&&q&&q.focus()},R[19]=q,R[20]=H,R[21]=y):y=R[21];let eo=y;R[22]!==J?(b=e=>{let t=e.relatedTarget;if(t instanceof Node){for(let e of J)if(e===t||e.contains(t))return;Y(!1)}},R[22]=J,R[23]=b):b=R[23];let es=b;R[24]!==q||R[25]!==H?(v=()=>{Y(!1),!H&&q&&q.focus()},R[24]=q,R[25]=H,R[26]=v):v=R[26];let ea=v;R[27]===Symbol.for("react.memo_cache_sentinel")?(x=e=>(Q(t=>t.concat([e])),()=>Q(t=>t.filter(t=>t!==e))),R[27]=x):x=R[27];let el=x;R[28]!==q||R[29]!==es||R[30]!==ea||R[31]!==ei||R[32]!==eo||R[33]!==O||R[34]!==_||R[35]!==X?(w=_&&(0,s.cloneElement)(_,{"aria-labelledby":O,onBlurCapture:es,onClickOutside:ei,onEscape:eo,onItemClick:ea,originElement:q,registerElement:el,shouldFocus:X}),R[28]=q,R[29]=es,R[30]=ea,R[31]=ei,R[32]=eo,R[33]=O,R[34]=_,R[35]=X,R[36]=w):w=R[36];let eu=w;R[37]!==I||R[38]!==en||R[39]!==O||R[40]!==W?(S=I&&(0,s.cloneElement)(I,{"data-ui":"MenuButton",id:O,onClick:et,onKeyDown:er,onMouseDown:en,"aria-haspopup":!0,"aria-expanded":W,ref:Z,selected:I.props.selected??W}),R[37]=I,R[38]=en,R[39]=O,R[40]=W,R[41]=S):S=R[41];let ec=S;R[42]!==q?(k=()=>q,C=[q],R[42]=q,R[43]=k,R[44]=C):(k=R[43],C=R[44]),(0,s.useImperativeHandle)(t,k,C),R[45]!==z?(E=z||{},R[45]=z,R[46]=E):E=R[46],R[47]!==j||R[48]!==$||R[49]!==F||R[50]!==V||R[51]!==U||R[52]!==B||R[53]!==E?(A={boun
38daryElement:j,overflow:"auto",placement:$,portal:U,preventOverflow:B,radius:F,scheme:V,...E},R[47]=j,R[48]=$,R[49]=F,R[50]=V,R[51]=U,R[52]=B,R[53]=E,R[54]=A):A=R[54];let ed=A;return R[55]!==ec?(T=ec||(0,i.jsx)(i.Fragment,{}),R[55]=ec,R[56]=T):T=R[56],R[57]!==eu||R[58]!==W||R[59]!==ed||R[60]!==T?(P=(0,i.jsx)(r.AM,{"data-ui":"MenuButton__popover",...ed,content:eu,open:W,children:T}),R[57]=eu,R[58]=W,R[59]=ed,R[60]=T,R[61]=P):P=R[61],P});function G(e){return!e}Y.displayName="ForwardRef(MenuButton)";let X=(0,a.i7)`
39  0% {
40    background-position: 100%;
41  }
42  100% {
43    background-position: -100%;
44  }
45`,K=(0,a.AH)`
46  background-image: linear-gradient(
47    to right,
48    var(--card-skeleton-color-from),
49    var(--card-skeleton-color-to),
50    var(--card-skeleton-color-from),
51    var(--card-skeleton-color-from),
52    var(--card-skeleton-color-from)
53  );
54  background-position: 100%;
55  background-size: 200% 100%;
56  background-attachment: fixed;
57  animation-name: ${X};
58  animation-timing-function: ease-in-out;
59  animation-iteration-count: infinite;
60  animation-duration: 2000ms;
61`,q=(0,a.AH)`
62  opacity: ${({$visible:e})=>+!!e};
63  transition: opacity 200ms ease-in;
64
65  @media screen and (prefers-reduced-motion: no-preference) {
66    ${({$animated:e})=>e?K:(0,a.AH)`
67            background-color: var(--card-skeleton-color-from);
68          `}
69  }
70
71  @media screen and (prefers-reduced-motion: reduce) {
72    background-color: var(--card-skeleton-color-from);
73  }
74`,Z=(0,a.I4)(r.az).withConfig({displayName:"StyledSkeleton",componentId:"sc-ebtpni-0"})(r.gK,q),J=(0,s.forwardRef)(function(e,t){let n,o,a,u,c,d,h,f=(0,l.c)(14);f[0]!==e?({animated:u,delay:n,radius:o,...a}=e,f[0]=e,f[1]=n,f[2]=o,f[3]=a,f[4]=u):(n=f[1],o=f[2],a=f[3],u=f[4]);let p=void 0!==u&&u,[g,m]=(0,s.useState)(!n);f[5]!==n?(c=()=>{if(!n)return m(!0);let e=setTimeout(()=>{m(!0)},n);return()=>{clearTimeout(e)}},d=[n],f[5]=n,f[6]=c,f[7]=d):(c=f[6],d=f[7]),(0,s.useEffect)(c,d);let y=(0,r.KC)(o);return f[8]!==p||f[9]!==t||f[10]!==a||f[11]!==y||f[12]!==g?(h=(0,i.jsx)(Z,{...a,$animated:p,$radius:y,$visible:g,ref:t}),f[8]=p,f[9]=t,f[10]=a,f[11]=y,f[12]=g,f[13]=h):h=f[13],h});J.displayName="ForwardRef(Skeleton)";let Q=(0,a.I4)(J).withConfig({displayName:"StyledSkeleton",componentId:"sc-2p7a1v-0"})(e=>{let{$size:t,$style:n}=e,{font:i,media:o}=(0,u.JW)(e.theme),s=i[n];return(0,r.U1)(o,t,e=>{let t=s.sizes[e];return{height:t.lineHeight-t.ascenderHeight-t.descenderHeight}})}),ee=(0,s.forwardRef)(function(e,t){let n,o,s,a=(0,l.c)(7);a[0]!==e?({size:o,...n}=e,a[0]=e,a[1]=n,a[2]=o):(n=a[1],o=a[2]);let u=(0,r.KC)(void 0===o?2:o);return a[3]!==u||a[4]!==t||a[5]!==n?(s=(0,i.jsx)(Q,{...n,$size:u,ref:t,$style:"text"}),a[3]=u,a[4]=t,a[5]=n,a[6]=s):s=a[6],s});ee.displayName="ForwardRef(TextSkeleton)",(0,s.forwardRef)(function(e,t){let n,o,s,a=(0,l.c)(7);a[0]!==e?({size:o,...n}=e,a[0]=e,a[1]=n,a[2]=o):(n=a[1],o=a[2]);let u=(0,r.KC)(void 0===o?2:o);return a[3]!==u||a[4]!==t||a[5]!==n?(s=(0,i.jsx)(Q,{...n,$size:u,ref:t,$style:"label"}),a[3]=u,a[4]=t,a[5]=n,a[6]=s):s=a[6],s}).displayName="ForwardRef(LabelSkeleton)",(0,s.forwardRef)(function(e,t){let n,o,s,a=(0,l.c)(7);a[0]!==e?({size:o,...n}=e,a[0]=e,a[1]=n,a[2]=o):(n=a[1],o=a[2]);let u=(0,r.KC)(void 0===o?2:o);return a[3]!==u||a[4]!==t||a[5]!==n?(s=(0,i.jsx)(Q,{...n,$size:u,ref:t,$style:"heading"}),a[3]=u,a[4]=t,a[5]=n,a[6]=s):s=a[6],s}).displayName="ForwardRef(HeadingSkeleton)",(0,s.forwardRef)(function(e,t){let n,o,s,a=(0,l.c)(7);a[0]!==e?({size:o,...n}=e,a[0]=e,a[1]=n,a[2]=o):(n=a[1],o=a[2]);let u=(0,r.KC)(void 0===o?2:o);return a[3]!==u||a[4]!==t||a[5]!==n?(s=(0,i.jsx)(Q,{...n,$size:u,ref:t,$style:"code"}),a[3]=u,a[4]=t,a[5]=n,a[6]=s):s=a[6],s}).displayName="ForwardRef(CodeSkeleton)";let et=(0,s.forwardRef)(function(e,t){let n,o,s,a=(0,l.c)(9);a[0]!==e?({flex:n,...o}=e,a[0]=e,a[1]=n,a[2]=o):(n=a[1],o=a[2]);let u=void 0===e.tabIndex?0:e.tabIndex;return a[3]!==n||a[4]!==e.children||a[5]!==t||a[6]!==o||a[7]!==u?(s=(0,i.jsx)(r.az,{"data-ui":"TabPanel",...o,flex:n,ref:t,role:"tabpanel",tabIndex:u,children:e.children}),a[3]=n,a[4]=e.children,a[5]=t,a[6]=o,a[7]=u,a[8]=s):s=a[8],s});et.displayName="ForwardRef(TabPanel)";
74let en={error:"critical",warning:"caution",success:"positive",info:"neutral"},er={error:"critical",warning:"caution",success:"positive",info:"neutral"},ei=(0,a.I4)(r.so).withConfig({displayName:"TextBox",componentId:"sc-1rr7rxo-0"})`overflow-x:auto;`,eo=(0,a.I4)(r.Zp).withConfig({displayName:"StyledToast",componentId:"sc-1rr7rxo-1"})`pointer-events:all;width:100%;position:relative;overflow:hidden;overflow:clip;&[data-has-duration]{padding-bottom:calc(${2}px / 2);}`,es=a.I4.div.withConfig({displayName:"LoadingBar",componentId:"sc-1rr7rxo-2"})`display:flex;position:absolute;bottom:0px;top:0px;left:0px;right:0px;pointer-events:none;z-index:-1;overflow:hidden;overflow:clip;background:transparent;align-items:flex-end;will-change:opacity;`,ea=(0,a.I4)(r.Zp).withConfig({displayName:"LoadingBarMask",componentId:"sc-1rr7rxo-3"})`position:absolute;top:0;left:-${2}px;right:-${2}px;bottom:${2}px;z-index:1;`,el=(0,a.I4)(r.Zp).withConfig({displayName:"LoadingBarProgress",componentId:"sc-1rr7rxo-4"})`display:block;height:100%;width:100%;transform-origin:0% 50%;background-color:${e=>{let{color:t}=(0,u.JW)(e.theme);return t.button.default[e.tone].enabled.bg}};`,eu={error:"alert",warning:"alert",success:"alert",info:"alert"};function ec(e){let t,n,s,a,u,c,d,h,f,p,g,m,y,b,v,x,w,S,k,C,E=(0,l.c)(50);E[0]!==e?({closable:t,description:n,duration:s,onClose:a,radius:d,title:h,status:c,updatedAt:f,...u}=e,E[0]=e,E[1]=t,E[2]=n,E[3]=s,E[4]=a,E[5]=u,E[6]=c,E[7]=d,E[8]=h,E[9]=f):(t=E[1],n=E[2],s=E[3],a=E[4],u=E[5],c=E[6],d=E[7],h=E[8],f=E[9]);let A=void 0===d?3:d,T=c?en[c]:"default",P=c?er[c]:"default",R=c?eu[c]:"status",M=.26*!(0,r.jt)();E[10]!==M?(p=M?{type:"spring",visualDuration:M,bounce:.25}:{duration:0},E[10]=M,E[11]=p):p=E[11];let j=p,I=s&&isFinite(s)&&s<20736e5;E[12]===Symbol.for("react.memo_cache_sentinel")?(g=["hidden","initial"],E[12]=g):g=E[12];let O=g;E[13]===Symbol.for("react.memo_cache_sentinel")?(m=["visible","slideIn"],E[13]=m):m=E[13];let _=m;E[14]===Symbol.for("react.memo_cache_sentinel")?(y=["hidden","slideOut"],E[14]=y):y=E[14];let D=y,L=I?"":void 0;return E[15]!==h?(b=h&&(0,i.jsx)(r.EY,{size:1,weight:"medium",children:h}),E[15]=h,E[16]=b):b=E[16],E[17]!==n||E[18]!==j?(v=n&&(0,i.jsx)(eg,{muted:!0,size:1,variants:eh,transition:j,children:n}),E[17]=n,E[18]=j,E[19]=v):v=E[19],E[20]!==b||E[21]!==v?(x=(0,i.jsx)(ei,{flex:1,padding:3,children:(0,i.jsxs)(r.BJ,{space:3,children:[b,v]})}),E[20]=b,E[21]=v,E[22]=x):x=E[22],E[23]!==P||E[24]!==t||E[25]!==a?(w=t&&(0,i.jsx)(r.az,{padding:1,children:(0,i.jsx)(r.$n,{as:"button",icon:o.USm,mode:"bleed",padding:2,tone:P,onClick:a,style:{verticalAlign:"top"}})}),E[23]=P,E[24]=t,E[25]=a,E[26]=w):w=E[26],E[27]!==x||E[28]!==w||E[29]!==j?(S=(0,i.jsxs)(ep,{align:"flex-start",variants:eh,transition:j,children:[x,w]}),E[27]=x,E[28]=w,E[29]=j,E[30]=S):S=E[30],E[31]!==T||E[32]!==s||E[33]!==I||E[34]!==a||E[35]!==A||E[36]!==j||E[37]!==f||E[38]!==M?(k=I&&(0,i.jsxs)(em,{variants:eh,transition:j,children:[(0,i.jsx)(ea,{tone:T,radius:A}),(0,i.jsx)(ey,{tone:T,initial:{scaleX:0},animate:{scaleX:1},transition:{delay:M,duration:s/1e3,ease:"linear"},onAnimationComplete:a},`progress-${f}`)]}),E[31]=T,E[32]=s,E[33]=I,E[34]=a,E[35]=A,E[36]=j,E[37]=f,E[38]=M,E[39]=k):k=E[39],E[40]!==T||E[41]!==A||E[42]!==u||E[43]!==R||E[44]!==S||E[45]!==k||E[46]!==L||E[47]!==j||E[48]!==M?(C=(0,i.jsxs)(ef,{"data-ui":"Toast",role:R,...u,"data-has-duration":L,
74custom:M,radius:A,shadow:2,tone:T,forwardedAs:"li",layout:"position",variants:ed,initial:O,animate:_,exit:D,transition:j,children:[S,k]}),E[40]=T,E[41]=A,E[42]=u,E[43]=R,E[44]=S,E[45]=k,E[46]=L,E[47]=j,E[48]=M,E[49]=C):C=E[49],C}ec.displayName="Toast";let ed={initial:{y:32,scale:.5,zIndex:1},hidden:{opacity:0},visible:e=>e?{opacity:1,transition:{when:"beforeChildren",staggerChildren:e/3,duration:e/3}}:{opacity:1},slideIn:{y:0,scale:1},slideOut:{zIndex:0,scale:.75}},eh={initial:{willChange:"transform"},hidden:{opacity:0},visible:{opacity:1}},ef=c.P.create(eo),ep=c.P.create(r.so),eg=c.P.create(r.EY),em=c.P.create(es),ey=c.P.create(el);function eb(){return!1}function ev(){return!0}let ex=()=>()=>{},ew=(0,r.bz)("@sanity/ui/context/toast",null);function eS(e){let t,n,o=(0,l.c)(9),{children:s,padding:a,paddingX:u,paddingY:c,gap:d}=e,h=void 0===a?4:a,f=void 0===d?3:d,{zIndex:p}=(0,r.Z4)();return o[0]!==p?(t={zIndex:p},o[0]=p,o[1]=t):t=o[1],o[2]!==s||o[3]!==f||o[4]!==h||o[5]!==u||o[6]!==c||o[7]!==t?(n=(0,i.jsx)(ek,{forwardedAs:"ul","data-ui":"ToastProvider",padding:h,paddingX:u,paddingY:c,gap:f,columns:1,style:t,children:s}),o[2]=s,o[3]=f,o[4]=h,o[5]=u,o[6]=c,o[7]=t,o[8]=n):n=o[8],n}eS.displayName="ToastLayer";let ek=(0,a.I4)(r.xA).withConfig({displayName:"StyledLayer",componentId:"sc-1tbwn58-0"})`box-sizing:border-box;position:fixed;right:0;bottom:0;list-style:none;pointer-events:none;max-width:420px;width:100%;`,eC=0;function eE(e){let t,n,o,a,u=(0,l.c)(13),{children:c,padding:h,paddingX:f,paddingY:p,gap:g,zOffset:m}=e,y=void 0===m?1:m;u[0]===Symbol.for("react.memo_cache_sentinel")?(t=[],u[0]=t):t=u[0];let[b,v]=(0,s.useState)(t),x=(0,s.useSyncExternalStore)(ex,ev,eb);u[1]===Symbol.for("react.memo_cache_sentinel")?(n={version:0,push:e=>{let t=e.id||String(eC++),n=e.duration||5e3;return(0,s.startTransition)(()=>{v(r=>.01===n?r.filter(e=>e.id!==t):[...r.filter(e=>e.id!==t),{dismiss:()=>(0,s.startTransition)(()=>v(e=>e.filter(e=>e.id!==t))),id:t,updatedAt:Date.now(),params:{...e,duration:n}}])}),t}},u[1]=n):n=u[1];let w=n;return u[2]!==g||u[3]!==x||u[4]!==h||u[5]!==f||u[6]!==p||u[7]!==b||u[8]!==y?(o=x&&(0,i.jsx)(r.XS,{zOffset:y,children:(0,i.jsx)(eS,{padding:h,paddingX:f,paddingY:p,gap:g,children:(0,i.jsx)(d.N,{initial:!1,mode:"popLayout",children:b.map(eA)})})}),u[2]=g,u[3]=x,u[4]=h,u[5]=f,u[6]=p,u[7]=b,u[8]=y,u[9]=o):o=u[9],u[10]!==c||u[11]!==o?(a=(0,i.jsxs)(ew.Provider,{value:w,children:[c,o]}),u[10]=c,u[11]=o,u[12]=a):a=u[12],a}function eA(e){let{dismiss:t,id:n,params:r,updatedAt:o}=e;return(0,i.jsx)(ec,{closable:r.closable,description:r.description,onClose:t,status:r.status,title:r.title,duration:r.duration,updatedAt:o},n)}function eT(){let e=(0,s.useContext)(ew);if(!e)throw Error("useToast(): missing context value");if(!(0,r.u4)(e)||0!==e.version)throw Error("useToast(): the context value is not compatible");return e}function eP(e){if("treeitem"===e.getAttribute("role")&&e.focus(),"none"===e.getAttribute("role")){let t=e.firstChild;t&&t instanceof HTMLElement&&t.focus()}}eE.displayName="ToastProvider";let eR=(0,r.bz)("@sanity/ui/context/tree",null);function eM(){let e=(0,s.useContext)(eR);if(!e)throw Error("Tree: missing context value");return e}(0,s.memo)((0,s.forwardRef)(function(e,t){let n,o,a,u,c,d,h,f,p,g,m,y,b,v,x,w,S,k,C,E,A,T=(0,l.c)(37);T[0]!==e?({children:n,space:u,onFocus:o,...a}=e,T[0]=e,T[1]=n,T[2]=o,T[3]=a,T[4]=u):(n=T[1],o=T[2],a=T[3],u=T[4]);let P=void 0===u?1:u,R=(0,s.useRef)(null),[M,j]=(0,s.useState)(null),I=(0,s.useRef)(M);T[5]===Symbol.for("react.memo_cache_sentinel")?(c=[],T[5]=c):c=T[5];let O=c;T[6]===Symbol.for("react.memo_cache_sentinel")?(d=[],T[6]=d):d=T[6];
74let[_,D]=(0,s.useState)(d);T[7]===Symbol.for("react.memo_cache_sentinel")?(h={},T[7]=h):h=T[7];let[L,$]=(0,s.useState)(h),V=(0,s.useRef)(L);T[8]===Symbol.for("react.memo_cache_sentinel")?(f=()=>R.current,T[8]=f):f=T[8],(0,s.useImperativeHandle)(t,f),T[9]!==M?(p=()=>{I.current=M},g=[M],T[9]=M,T[10]=p,T[11]=g):(p=T[10],g=T[11]),(0,s.useEffect)(p,g),T[12]!==L?(m=()=>{V.current=L},y=[L],T[12]=L,T[13]=m,T[14]=y):(m=T[13],y=T[14]),(0,s.useEffect)(m,y),T[15]===Symbol.for("react.memo_cache_sentinel")?(b=(e,t,n,r)=>($(r=>({...r,[t]:{element:e,expanded:n}})),r&&j(e),()=>{$(e=>{let n={...e};return delete n[t],n})}),T[15]=b):b=T[15];let N=b;T[16]===Symbol.for("react.memo_cache_sentinel")?(v=(e,t)=>{$(n=>{let r=n[e];return r?{...n,[e]:{...r,expanded:t}}:n})},T[16]=v):v=T[16];let z=v,F=M||_[0]||null;T[17]!==P||T[18]!==L||T[19]!==F?(x={version:0,focusedElement:F,level:0,path:O,registerItem:N,setExpanded:z,setFocusedElement:j,space:P,state:L},T[17]=P,T[18]=L,T[19]=F,T[20]=x):x=T[20];let B=x;T[21]!==_?(w=e=>{if(I.current){if("ArrowDown"===e.key){e.preventDefault();let t=function(e,t,n){let r=t.indexOf(n),i=t.slice(r),o=t.length;for(let t=1;t<o;t+=1){if(!i[t])continue;let n=i[t].getAttribute("data-tree-key");if(!n)continue;let r=n.split("/");r.pop();let o=[],s=!0;for(let t=0;t<r.length;t+=1){o.push(r[t]);let n=o.join("/");if(!e[n]?.expanded){s=!1;break}}if(s)return i[t]}return null}(V.current,_,I.current);t&&(eP(t),j(t));return}if("ArrowUp"===e.key){e.preventDefault();let t=function(e,t,n){let r=t.indexOf(n),i=t.slice(0,r),o=i.length;for(let t=o-1;t>=0;t-=1){let n=i[t].getAttribute("data-tree-key");if(!n)continue;let r=n.split("/");r.pop();let o=[],s=!0;for(let t=0;t<r.length;t+=1){o.push(r[t]);let n=o.join("/");if(!e[n]?.expanded){s=!1;break}}if(s)return i[t]}return null}(V.current,_,I.current);t&&(eP(t),j(t));return}if("ArrowLeft"===e.key){e.preventDefault();let t=I.current.getAttribute("data-tree-key");if(!t)return;let n=V.current[t];if(!n)return;if(n.expanded)$(e=>{let n=e[t];return n?{...e,[t]:{...n,expanded:!1}}:e});else{let e=t.split("/");e.pop();let n=e.join("/"),r=n&&V.current[n];r&&(r.element.focus(),j(r.element))}return}if("ArrowRight"===e.key){e.preventDefault();let t=I.current.getAttribute("data-tree-key");if(!t)return;V.current[t]?.expanded||$(e=>{let n=e[t];return n?{...e,[t]:{...n,expanded:!0}}:e});return}}},T[21]=_,T[22]=w):w=T[22];let H=w;T[23]!==o?(S=e=>{j(e.target),o?.(e)},T[23]=o,T[24]=S):S=T[24];let U=S;return T[25]===Symbol.for("react.memo_cache_sentinel")?(k=()=>{R.current&&D(Array.from(R.current.querySelectorAll('[data-ui="TreeItem"]')))},T[25]=k):k=T[25],T[26]!==n?(C=[n],T[26]=n,T[27]=C):C=T[27],(0,s.useEffect)(k,C),T[28]!==n||T[29]!==U||T[30]!==H||T[31]!==a||T[32]!==P?(E=(0,i.jsx)(r.BJ,{as:"ul","data-ui":"Tree",...a,onFocus:U,onKeyDown:H,ref:R,role:"tree",space:P,children:n}),T[28]=n,T[29]=U,T[30]=H,T[31]=a,T[32]=P,T[33]=E):E=T[33],T[34]!==B||T[35]!==E?(A=(0,i.jsx)(eR.Provider,{value:B,children:E}),T[34]=B,T[35]=E,T[36]=A):A=T[36],A})).displayName="Memo(ForwardRef(Tree))";let ej=(0,s.memo)(function(e){let t,n,o,s,a=(0,l.c)(9);a[0]!==e?({children:t,expanded:o,...n}=e,a[0]=e,a[1]=t,a[2]=n,a[3]=o):(t=a[1],n=a[2],o=a[3]);let u=void 0!==o&&o,c=eM(),d=!u;return a[4]!==t||a[5]!==n||a[6]!==d||a[7]!==c.space?(s=(0,i.jsx)(r.BJ,{as:"ul","data-ui":"TreeGroup",...n,hidden:d,marginTop:c.space,role:"group",space:c.space,children:t}),a[4]=t,a[5]=n,a[6]=d,a[7]=c.space,a[8]=s):s=a[8],s}),eI=(0,s.memo)(a.I4.li.withConfig({displayName:"StyledTreeItem",componentId:"sc-iiskig-0"})(function(){return(0,a.AH)`
75    &[role='none'] > [role='treeitem'] {
76      outline: none;
77      cursor: default;
78      border-radius: 3px;
79
80      background-color: var(--card-bg-color);
81      color: var(--treeitem-fg-color);
82
83      &:focus {
84        position: relative;
85      }
86    }
87
88    &[role='treeitem'] {
89      outline: none;
90
91      & > div {
92        cursor: default;
93        border-radius: 3px;
94
95        background-color: var(--card-bg-color);
96        color: var(--treeitem-fg-color);
97      }
98
99      &:focus > div {
100        position: relative;
101      }
102    }
103  `}
103,function(e){let{color:t}=(0,u.JW)(e.theme),n=t.selectable.default;return(0,a.AH)`
104    &[role='none'] {
105      & > [role='treeitem'] {
106        ${(0,r.g5)(t,n.enabled)}
107      }
108
109      &[data-selected] > [role='treeitem'] {
110        ${(0,r.g5)(t,n.pressed)}
111      }
112
113      @media (hover: hover) {
114        &:not([data-selected]) > [role='treeitem']:not(:focus):hover {
115          ${(0,r.g5)(t,n.hovered)}
116        }
117
118        & > [role='treeitem']:focus {
119          ${(0,r.g5)(t,n.selected)}
120        }
121      }
122    }
123
124    &[role='treeitem'] {
125      & > [data-ui='TreeItem__box'] {
126        ${(0,r.g5)(t,n.enabled)}
127      }
128
129      &[data-selected] > [data-ui='TreeItem__box'] {
130        ${(0,r.g5)(t,n.pressed)}
131      }
132
133      @media (hover: hover) {
134        &:not([data-selected]):not(:focus) > [data-ui='TreeItem__box']:hover {
135          ${(0,r.g5)(t,n.hovered)}
136        }
137
138        &:focus > [data-ui='TreeItem__box'] {
139          ${(0,r.g5)(t,n.selected)}
140        }
141      }
142    }
143  `})),eO=(0,a.I4)(r.az).attrs({forwardedAs:"a"}).withConfig({displayName:"TreeItemBox",componentId:"sc-iiskig-1"})(function(e){let{$level:t}=e,{space:n}=(0,u.JW)(e.theme);return(0,a.AH)`
144    padding-left: ${(0,r.D0)(n[2]*t)};
145
146    &[data-as='a'] {
147      text-decoration: none;
148    }
149  `}),e_=(0,a.I4)(r.EY).withConfig({displayName:"ToggleArrowText",componentId:"sc-iiskig-2"})`& > svg{transition:transform 100ms;}`;(0,s.memo)(function(e){let{children:t,expanded:n=!1,fontSize:a=1,href:l,icon:u,id:c,linkAs:d,muted:h,onClick:f,padding:p=2,selected:g=!1,space:m=2,text:y,weight:b,...v}=e,x=(0,s.useRef)(null),w=(0,s.useRef)(null),S=eM(),{path:k,registerItem:C,setExpanded:E,setFocusedElement:A}=S,T=(0,s.useId)(),P=c||T,R=(0,s.useMemo)(()=>k.concat([P||""]),[P,k]),M=R.join("/"),j=S.state[M],I=S.focusedElement===x.current,O=j?.expanded===void 0?n:j?.expanded||!1,_=S.focusedElement&&S.focusedElement===x.current?0:-1,D=(0,s.useMemo)(()=>({...S,level:S.level+1,path:R}),[R,S]),L=(0,s.useCallback)(e=>{f&&f(e);let t=e.target;t instanceof HTMLElement&&("TreeItem"===t.getAttribute("data-ui")||t.closest('[data-ui="TreeItem__box"]'))&&(e.stopPropagation(),E(M,!O),A(x.current))},[O,M,f,E,A]),$=(0,s.useCallback)(e=>{I&&"Enter"===e.key&&(w.current||x.current)?.click()},[I]);(0,s.useEffect)(()=>{if(x.current)return C(x.current,R.join("/"),O,g)},[O,R,C,g]);let V=(0,i.jsxs)(r.so,{padding:p,children:[(0,i.jsxs)(r.az,{marginRight:m,style:{visibility:u||t?"visible":"hidden",pointerEvents:"none"},children:[u&&(0,i.jsx)(r.EY,{muted:h,size:a,weight:b,children:(0,i.jsx)(u,{})}),!u&&(0,i.jsx)(e_,{muted:h,size:a,weight:b,children:(0,i.jsx)(o.nVd,{style:{transform:O?"rotate(90deg)":void 0}})})]}),(0,i.jsx)(r.az,{flex:1,children:(0,i.jsx)(r.EY,{muted:h,size:a,textOverflow:"ellipsis",weight:b,children:y})})]});return l?(0,i.jsxs)(eI,{"data-selected":g?"":void 0,"data-tree-id":P,"data-tree-key":M,"data-ui":"TreeItem",...v,onClick:L,ref:x,role:"none",children:[(0,i.jsx)(eO,{$level:S.level,"aria-expanded":O,as:d,"data-ui":"TreeItem__box",href:l,ref:w,role:"treeitem",tabIndex:_,children:V}),(0,i.jsx)(eR.Provider,{value:D,children:t&&(0,i.jsx)(ej,{hidden:!O,children:t})})]}):(0,i.jsxs)(eI,{"data-selected":g?"":void 0,"data-ui":"TreeItem","data-tree-id":P,"data-tree-key":M,...v,"aria-expanded":O,onClick:L,onKeyDown:$,ref:x,role:"treeitem",tabIndex:_,children:[(0,i.jsx)(eO,{$level:S.level,as:"div","data-ui":"TreeItem__box",children:V}),(0,i.jsx)(eR.Provider,{value:D,children:t&&(0,i.jsx)(ej,{expanded:O,children:t})})]})}).displayName="Memo(TreeItem)"},59686:(e,t,n)=>{"use strict";n.d(t,{t:()=>r});let r=(0,n(12115).createContext)(null)},60296:(e,t,n)=>{"use strict";n.d(t,{L:()=>r});let r=(0,n(12115).createContext)({})},60308:(e,t,n)=>{"use strict";n.d(t,{E:()=>tv,ID:()=>e8,NP:()=>tl,DU:()=>ty,AH:()=>tf,i7:()=>tb,I4:()=>tg,DP:()=>ta});var r=n(71450),i=n(12115),o="-ms-",s="-moz-",a="-webkit-",l="comm",u="rule",c="decl",d="@keyframes",h=Math.abs,f=String.fromCharCode,p=Object.assign;function g(e,t){return(e=t.exec(e))?e[0]:e}function m(e,t,n){return e.replace(t,n)}function y(e,t,n){return e.indexOf(t,n)}function b(e,t){return 0|e.charCodeAt(t)}function v(e,t,n){return e.slice(t,n)}function x(e){return e.length}function w(e,t){return t.push(e),e}function S(e,t){return e.filter(function(e){return!g(e,t)})}var k=1,C=1,E=0,A=0,T=0,P="";function R(e,t,n,r,i,o,s,a){return{value:e,root:t,parent:n,type:r,props:i,children:o,line:k,column:C,length:s,return:"",siblings:a}}function M(e,t){return p(R("",null,null,"",null,null,0,e.siblings),e,{length:-e.length},t)}function j(e){for(;e.root;)e=M(e.root,{children:[e]});w(e,e.siblings)}function I(){return T=A<E?b(P,A++):0,C++,10===T&&(C=1,k++),T}function O(){return b(P,A)}function _(e){switch(e){case 0:case 9:case 10:case 13:case 32:return 5;case 33:case 43:case 44:case 47:case 62:case 64:case 126:case 59:case 123:case 125:return 4;case 58:return 3;case 34:case 39:case 40:case 91:return 2;case 41:case 93:return 1}return 0}function D(e){var t,n;return(t=A-1,n=function e(t){for(;I();)switch(T){case t:return A;case 34:case 39:34!==t&&39!==t&&e(T);break;case 40:41===t&&e(t);break;case 92:I()}return A}(91===e?e+2:40===e?e+1:e),v(P,t,n)).trim()}function L(e,t){for(var n="",r=0;r<e.length;r++)n+=t(e[r],r,e,t)||"";return n}function $(e,t,n,r){switch(e.type){case"@layer":if(e.children.length)break;case"@import":case"@namespace":case c:return e.return=e.return||e.value;case l:return"";case d:return e.return=e.value+"{"+L(e.children,r)+"}";case u:if(!x(e.value=e.props.join(",")))return""}return x(n=L(e.children,r))?e.return=e.value+"{"+n+"}":""}function V(e,t,n,r){if(e.length>-1&&!e.return)switch(e.type){case c:e.return=function e(t,n,r){var i;switch(i=n,45^b(t,0)?(((i<<2^b(t,0))<<2^b(t,1))<<2^b(t,2))<<2^b(t,3):0){case 5103:return a+"print-"+t+t;case 5737:case 4201:case 3177:case 3433:case 1641:case 4457:case 2921:case 5572:case 6356:case 5844:case 3191:case 6645:case 3005:case 4215:case 6389:case 5109:case 5365:case 5621:case 3829:case 6391:case 5879:case 5623:case 6135:case 4599:return a+t+t;case 4855:return a+t.replace("add","source-over").replace("substract","source-out").replace("intersect","source-in").replace("exclude","xor")+t;case 4789:return s+t+t;
vendor: 12,190 bytes, line 149
149case 5349:case 4246:case 4810:case 6968:case 2756:return a+t+s+t+o+t+t;case 5936:switch(b(t,n+11)){case 114:return a+t+o+m(t,/[svh]\w+-[tblr]{2}/,"tb")+t;case 108:return a+t+o+m(t,/[svh]\w+-[tblr]{2}/,"tb-rl")+t;case 45:return a+t+o+m(t,/[svh]\w+-[tblr]{2}/,"lr")+t}case 6828:case 4268:case 2903:return a+t+o+t+t;case 6165:return a+t+o+"flex-"+t+t;case 5187:return a+t+m(t,/(\w+).+(:[^]+)/,a+"box-$1$2"+o+"flex-$1$2")+t;case 5443:return a+t+o+"flex-item-"+m(t,/flex-|-self/g,"")+(g(t,/flex-|baseline/)?"":o+"grid-row-"+m(t,/flex-|-self/g,""))+t;case 4675:return a+t+o+"flex-line-pack"+m(t,/align-content|flex-|-self/g,"")+t;case 5548:return a+t+o+m(t,"shrink","negative")+t;case 5292:return a+t+o+m(t,"basis","preferred-size")+t;case 6060:return a+"box-"+m(t,"-grow","")+a+t+o+m(t,"grow","positive")+t;case 4554:return a+m(t,/([^-])(transform)/g,"$1"+a+"$2")+t;case 6187:return m(m(m(t,/(zoom-|grab)/,a+"$1"),/(image-set)/,a+"$1"),t,"")+t;case 5495:case 3959:return m(t,/(image-set\([^]*)/,a+"$1$`$1");case 4968:return m(m(t,/(.+:)(flex-)?(.*)/,a+"box-pack:$3"+o+"flex-pack:$3"),/space-between/,"justify")+a+t+t;case 4200:if(!g(t,/flex-|baseline/))return o+"grid-column-align"+v(t,n)+t;break;case 2592:case 3360:return o+m(t,"template-","")+t;case 4384:case 3616:if(r&&r.some(function(e,t){return n=t,g(e.props,/grid-\w+-end/)}))return~y(t+(r=r[n].value),"span",0)?t:o+m(t,"-start","")+t+o+"grid-row-span:"+(~y(r,"span",0)?g(r,/\d+/):g(r,/\d+/)-g(t,/\d+/))+";";return o+m(t,"-start","")+t;case 4896:case 4128:return r&&r.some(function(e){return g(e.props,/grid-\w+-start/)})?t:o+m(m(t,"-end","-span"),"span ","")+t;case 4095:case 3583:case 4068:case 2532:return m(t,/(.+)-inline(.+)/,a+"$1$2")+t;case 8116:case 7059:case 5753:case 5535:case 5445:case 5701:case 4933:case 4677:case 5533:case 5789:case 5021:case 4765:if(x(t)-1-n>6)switch(b(t,n+1)){case 109:if(45!==b(t,n+4))break;case 102:return m(t,/(.+:)(.+)-([^]+)/,"$1"+a+"$2-$3$1"+s+(108==b(t,n+3)?"$3":"$2-$3"))+t;case 115:return~y(t,"stretch",0)?e(m(t,"stretch","fill-available"),n,r)+t:t}break;case 5152:case 5920:return m(t,/(.+?):(\d+)(\s*\/\s*(span)?\s*(\d+))?(.*)/,function(e,n,r,i,s,a,l){return o+n+":"+r+l+(i?o+n+"-span:"+(s?a:a-r)+l:"")+t});case 4949:if(121===b(t,n+6))return m(t,":",":"+a)+t;break;case 6444:switch(b(t,45===b(t,14)?18:11)){case 120:return m(t,/(.+:)([^;\s!]+)(;|(\s+)?!.+)?/,"$1"+a+(45===b(t,14)?"inline-":"")+"box$3$1"+a+"$2$3$1"+o+"$2box$3")+t;case 100:return m(t,":",":"+o)+t}break;case 5719:case 2647:case 2135:case 3927:case 2391:return m(t,"scroll-","scroll-snap-")+t}return t}(e.value,e.length,n);return;case d:return L([M(e,{value:m(e.value,"@","@"+a)})],r);case u:if(e.length){var i,l;return i=n=e.props,l=function(t){switch(g(t,r=/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":j(M(e,{props:[m(t,/:(read-\w+)/,":"+s+"$1")]})),j(M(e,{props:[t]})),p(e,{props:S(n,r)});break;case"::placeholder":j(M(e,{props:[m(t,/:(plac\w+)/,":"+a+"input-$1")]})),j(M(e,{props:[m(t,/:(plac\w+)/,":"+s+"$1")]})),j(M(e,{props:[m(t,/:(plac\w+)/,o+"input-$1")]})),j(M(e,{props:[t]})),p(e,{props:S(n,r)})}return""},i.map(l).join("")}}}function N(e,t,n,r,i,o,s,a,l,c,d,f){for(var p=i-1,g=0===i?o:[""],y=g.length,b=0,x=0,w=0;b<r;++b)for(var S=0,k=v(e,p+1,p=h(x=s[b])),C=e;S<y;++S)(C=(x>0?g[S]+" "+k:m(k,/&\f/g,g[S])).trim())&&(l[w++]=C);return R(e,t,n,0===i?u:a,l,c,d,f)}function z(e,t,n,r,i){return R(e,t,n,c,v(e,0,r),v(e,r+1,-1),r,i)}var F={animationIterationCount:1,aspectRatio:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,scale:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1},B=n(87358),H=void 0!==B&&void 0!==B.env&&(B.env.REACT_APP_SC_ATTR||B.env.SC_ATTR)||"data-styled",U="active",W="data-styled-version",Y="6.3.8",G="/*!sc*/\n",X="undefined"!=typeof window&&"undefined"!=typeof document,K=void 0===i.createContext,q=!!("boolean"==typeof SC_DISABLE_SPEEDY?SC_DISABLE_SPEEDY:void 0!==B&&void 0!==B.env&&void 0!==B.env.REACT_APP_SC_DISABLE_SPEEDY&&""!==B.env.REACT_APP_SC_DISABLE_SPEEDY?"false"!==B.env.REACT_APP_SC_DISABLE_SPEEDY&&B.env.REACT_APP_SC_DISABLE_SPEEDY:void 0!==B&&void 0!==B.env&&void 0!==B.env.SC_DISABLE_SPEEDY&&""!==B.env.SC_DISABLE_SPEEDY&&"false"!==B.env.SC_DISABLE_SPEEDY&&B.env.SC_DISABLE_SPEEDY),Z={},J=Object.freeze([]),Q=Object.freeze({});function ee(e,t,n){return void 0===n&&(n=Q),e.theme!==n.theme&&e.theme||t||n.theme}var et=new Set(["a","abbr","address","area","article","aside","audio","b","bdi","bdo","blockquote","body","button","br","canvas","caption","cite","code","col","colgroup","data","datalist","dd","del","details","dfn","dialog","div","dl","dt","em","embed","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","header","hgroup","hr","html","i","iframe","img","input","ins","kbd","label","legend","li","main","map","mark","menu","meter","nav","object","ol","optgroup","option","output","p","picture","pre","progress","q","rp","rt","ruby","s","samp","search","section","select","slot","small","span","strong","sub","summary","sup","table","tbody","td","template","textarea","tfoot","th","thead","time","tr","u","ul","var","video","wbr","circle","clipPath","defs","ellipse","feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feDropShadow","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence","filter","foreignObject","g","image","line","linearGradient","marker","mask","path","pattern","polygon","polyline","radialGradient","rect","stop","svg","switch","symbol","text","textPath","tspan","use"]),en=/[!"#$%&'()*+,./:;<=>?@[\\\]^`{|}~-]+/g,er=/(^-|-$)/g;function ei(e){return e.replace(en,"-").replace(er,"")}var eo=/(a)(d)/gi,es=function(e){return String.fromCharCode(e+(e>25?39:97))};function ea(e){var t,n="";for(t=Math.abs(e);t>52;t=t/52|0)n=es(t%52)+n;return(es(t%52)+n).replace(eo,"$1-$2")}var el,eu=function(e,t){for(var n=t.length;n;)e=33*e^t.charCodeAt(--n);return e},ec=function(e){return eu(5381,e)};function ed(e){return ea(ec(e)>>>0)}function eh(e){return"string"==typeof e}var ef="function"==typeof Symbol&&Symbol.for,ep=ef?Symbol.for("react.memo"):60115,eg=ef?Symbol.for("react.forward_ref"):60112,em={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},ey={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},eb={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},ev=((el={})[eg]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},el[ep]=eb,el);function ex(e){return("type"in e&&e.type.$$typeof)===ep?eb:"$$typeof"in e?ev[e.$$typeof]:em}var ew=Object.defineProperty,eS=Object.getOwnPropertyNames,ek=Object.getOwnPropertySymbols,eC=Object.getOwnPropertyDescriptor,eE=Object.getPrototypeOf,eA=Object.prototype;function eT(e){return"function"==typeof e}function eP(e){return"object"==typeof e&&"styledComponentId"in e}function eR(e,t){return e&&t?"".concat(e," ").concat(t):e||t||""}function eM(e,t){if(0===e.length)return"";for(var n=e[0],r=1;r<e.length;r++)n+=t?t+e[r]:e[r];return n}function ej(e){return null!==e&&"object"==typeof e&&e.constructor.name===Object.name&&!("props"in e&&e.$$typeof)}function eI(e,t){Object.defineProperty(e,"toString",{value:t})}function eO(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];return Error("An error occurred. See https://github.com/styled-components/styled-components/blob/main/packages/styled-components/src/utils/errors.md#".concat(e," for more information.").concat(t.length>0?" Args: ".concat(t.join(", ")):""))}var e_=function(){function e(e){this.groupSizes=new Uint32Array(512),this.length=512,this.tag=e}return e.prototype.indexOfGroup=function(e){for(var t=0,n=0;n<e;n++)t+=this.groupSizes[n];return t},e.prototype.insertRules=function(e,t){if(e>=this.groupSizes.length){for(var n=this.groupSizes,r=n.length,i=r;e>=i;)if((i<<=1)<0)throw eO(16,"".concat(e));this.groupSizes=new Uint32Array(i),this.groupSizes.set(n),this.length=i;for(var o=r;o<i;o++)this.groupSizes[o]=0}for(var s=this.indexOfGroup(e+1),a=(o=0,t.length);o<a;o++)this.tag.insertRule(s,t[o])&&(this.groupSizes[e]++,s++)},e.prototype.clearGroup=function(e){if(e<this.length){var t=this.groupSizes[e],n=this.indexOfGroup(e),r=n+t;this.groupSizes[e]=0;for(var i=n;i<r;i++)this.tag.deleteRule(n)}},e.prototype.getGroup=function(e){var t="";if(e>=this.length||0===this.groupSizes[e])return t;for(var n=this.groupSizes[e],r=this.indexOfGroup(e),i=r+n,o=r;o<i;o++)t+="".concat(this.tag.getRule(o)).concat(G);return t},e}(),eD=new Map,eL=new Map,e$=1,eV=function(e){if(eD.has(e))return eD.get(e);for(;eL.has(e$);)e$++;var t=e$++;return eD.set(e,t),eL.set(t,e),t},eN=function(e,t){e$=t+1,eD.set(e,t),eL.set(t,e)},ez="style[".concat(H,"][").concat(W,'="').concat(Y,'"]'),eF=new RegExp("^".concat(H,'\\.g(\\d+)\\[id="([\\w\\d-]+)"\\].*?"([^"]*)')),eB=function(e,t,n){for(var r,i=n.split(","),o=0,s=i.length;o<s;o++)(r=i[o])&&e.registerName(t,r)},eH=function(e,t){for(var n,r=(null!=(n=t.textContent)?n:"").split(G),i=[],o=0,s=r.length;o<s;o++){var a=r[o].trim();if(a){var l=a.match(eF);if(l){var u=0|parseInt(l[1],10),c=l[2];0!==u&&(eN(c,u),eB(e,c,l[3]),e.getTag().insertRules(u,i)),i.length=0}else i.push(a)}}},eU=function(e){for(var t=document.querySelectorAll(ez),n=0,r=t.length;n<r;n++){var i=t[n];i&&i.getAttribute(H)!==U&&(eH(e,i),i.parentNode&&i.parentNode.removeChild(i))}},eW=function(e){var t,r=document.head,i=e||r,o=document.createElement("style"),s=(t=Array.from(i.querySelectorAll("style[".concat(H,"]"))))[t.length-1],a=void 0!==s?s.nextSibling:null;o.setAttribute(H,U),o.setAttribute(W,Y);var l=n.nc;return l&&o.setAttribute("nonce",l),i.insertBefore(o,a),o},eY=function(){function e(e){this.element=eW(e),this.element.appendChild(document.createTextNode("")),this.sheet=function(e){if(e.sheet)return e.sheet;for(var t=document.styleSheets,n=0,r=t.length;n<r;n++){var i=t[n];if(i.ownerNode===e)return i}throw eO(17)}(this.element),this.length=0}return e.prototype.insertRule=function(e,t){try{return this.sheet.insertRule(t,e),this.length++,!0}catch(e){return!1}},e.prototype.deleteRule=function(e){this.sheet.deleteRule(e),this.length--},e.prototype.getRule=function(e){var t=this.sheet.cssRules[e];return t&&t.cssText?t.cssText:""},e}(),eG=function(){function e(e){this.element=eW(e),this.nodes=this.element.childNodes,this.length=0}return e.prototype.insertRule=function(e,t){if(e<=this.length&&e>=0){var n=document.createTextNode(t);return this.element.insertBefore(n,this.nodes[e]||null),this.length++,!0}return!1},e.prototype.deleteRule=function(e){this.element.removeChild(this.nodes[e]),this.length--},e.prototype.getRule=function(e){return e<this.length?this.nodes[e].textContent:""},e}(),eX=function(){function e(e){this.rules=[],this.length=0}return e.prototype.insertRule=function(e,t){return e<=this.length&&(this.rules.splice(e,0,t),this.length++,!0)},e.prototype.deleteRule=function(e){this.rules.splice(e,1),this.length--},e.prototype.getRule=function(e){return e<this.length?this.rules[e]:""},e}(),eK=X,eq={isServer:!X,useCSSOMInjection:!q},eZ=function(){function e(e,t,n){void 0===e&&(e=Q),void 0===t&&(t={});var i=this;this.options=(0,r.Cl)((0,r.Cl)({},eq),e),this.gs=t,this.names=new Map(n),this.server=!!e.isServer,!this.server&&X&&eK&&(eK=!1,eU(this)),eI(this,function(){for(var e=i.getTag(),t=e.length,n="",r=0;r<t;r++)!function(t){var r=eL.get(t);if(void 0===r)return;var o=i.names.get(r),s=e.getGroup(t);
149if(void 0!==o&&o.size&&0!==s.length){var a="".concat(H,".g").concat(t,'[id="').concat(r,'"]'),l="";void 0!==o&&o.forEach(function(e){e.length>0&&(l+="".concat(e,","))}),n+="".concat(s).concat(a,'{content:"').concat(l,'"}').concat(G)}}(r);return n})}return e.registerId=function(e){return eV(e)},e.prototype.rehydrate=function(){!this.server&&X&&eU(this)},e.prototype.reconstructWithOptions=function(t,n){return void 0===n&&(n=!0),new e((0,r.Cl)((0,r.Cl)({},this.options),t),this.gs,n&&this.names||void 0)},e.prototype.allocateGSInstance=function(e){return this.gs[e]=(this.gs[e]||0)+1},e.prototype.getTag=function(){var e,t,n;return this.tag||(this.tag=(t=(e=this.options).useCSSOMInjection,n=e.target,new e_(e.isServer?new eX(n):t?new eY(n):new eG(n))))},e.prototype.hasNameForId=function(e,t){return this.names.has(e)&&this.names.get(e).has(t)},e.prototype.registerName=function(e,t){if(eV(e),this.names.has(e))this.names.get(e).add(t);else{var n=new Set;n.add(t),this.names.set(e,n)}},e.prototype.insertRules=function(e,t,n){this.registerName(e,t),this.getTag().insertRules(eV(e),n)},e.prototype.clearNames=function(e){this.names.has(e)&&this.names.get(e).clear()},e.prototype.clearRules=function(e){this.getTag().clearGroup(eV(e)),this.clearNames(e)},e.prototype.clearTag=function(){this.tag=void 0},e}(),eJ=/&/g;function eQ(e){if(-1===e.indexOf("}"))return!1;for(var t=e.length,n=0,r=0,i=!1,o=0;o<t;o++){var s=e.charCodeAt(o);if(0!==r||i||47!==s||42!==e.charCodeAt(o+1))if(i)42===s&&47===e.charCodeAt(o+1)&&(i=!1,o++);else if(34!==s&&39!==s||0!==o&&92===e.charCodeAt(o-1)){if(0===r){if(123===s)n++;else if(125===s&&--n<0)return!0}}else 0===r?r=s:r===s&&(r=0);else i=!0,o++}return 0!==n||0!==r}function e0(e){var t,n,r,i=void 0===e?Q:e,o=i.options,s=void 0===o?Q:o,a=i.plugins,c=void 0===a?J:a,d=function(e,r,i){return i.startsWith(n)&&i.endsWith(n)&&i.replaceAll(n,"").length>0?".".concat(t):e},p=c.slice();p.push(function(e){e.type===u&&e.value.includes("&")&&(e.props[0]=e.props[0].replace(eJ,n).replace(r,d))}),s.prefix&&p.push(V),p.push($);var g=function(e,i,o,a){void 0===i&&(i=""),void 0===o&&(o=""),void 0===a&&(a="&"),t=a,n=i,r=RegExp("\\".concat(n,"\\b"),"g");var u,c,d,g,S,M,j=function(e){if(!eQ(e))return e;for(var t=e.length,n="",r=0,i=0,o=0,s=!1,a=0;a<t;a++){var l=e.charCodeAt(a);if(0!==o||s||47!==l||42!==e.charCodeAt(a+1))if(s)42===l&&47===e.charCodeAt(a+1)&&(s=!1,a++);else if(34!==l&&39!==l||0!==a&&92===e.charCodeAt(a-1)){if(0===o)if(123===l)i++;else if(125===l){if(--i<0){for(var u=a+1;u<t;){var c=e.charCodeAt(u);if(59===c||10===c)break;u++}u<t&&59===e.charCodeAt(u)&&u++,i=0,a=u-1,r=u;continue}0===i&&(n+=e.substring(r,a+1),r=a+1)}else 59===l&&0===i&&(n+=e.substring(r,a+1),r=a+1)}else 0===o?o=l:o===l&&(o=0);else s=!0,a++}if(r<t){var d=e.substring(r);eQ(d)||(n+=d)}return n}(function(e){if(-1===e.indexOf("//"))return e;for(var t=e.length,n=[],r=0,i=0,o=0,s=0;i<t;){var a=e.charCodeAt(i);if(34!==a&&39!==a||0!==i&&92===e.charCodeAt(i-1))if(0===o)if(40===a&&i>=3&&108==(32|e.charCodeAt(i-1))&&114==(32|e.charCodeAt(i-2))&&117==(32|e.charCodeAt(i-3)))s=1,i++;else if(s>0)41===a?s--:40===a&&s++,i++;else if(47===a&&i+1<t&&47===e.charCodeAt(i+1)){for(i>r&&n.push(e.substring(r,i));i<t&&10!==e.charCodeAt(i);)i++;r=i}else i++;else i++;else 0===o?o=a:o===a&&(o=0),i++}return 0===r?e:(r<t&&n.push(e.substring(r)),n.join(""))}(e)),$=(S=function e(t,n,r,i,o,s,a,u,c){for(var d,p,g,S,E=0,M=0,j=a,L=0,$=0,V=0,F=1,B=1,H=1,U=0,W="",Y=o,G=s,X=i,K=W;B;)switch(V=U,U=I()){case 40:if(108!=V&&58==b(K,j-1)){-1!=y(K+=m(D(U),"&","&\f"),"&\f",h(E?u[E-1]:0))&&(H=-1);break}case 34:case 39:case 91:K+=D(U);break;case 9:case 10:case 13:case 32:K+=function(e){for(;T=O();)if(T<33)I();else break;return _(e)>2||_(T)>3?"":" "}(V);break;case 92:K+=function(e,t){for(var n;--t&&I()&&!(T<48)&&!(T>102)&&(!(T>57)||!(T<65))&&(!(T>70)||!(T<97)););return n=A+(t<6&&32==O()&&32==I()),v(P,e,n)}(A-1,7);continue;case 47:switch(O()){case 42:case 47:w((d=function(e,t){for(;I();)if(e+T===57)break;else if(e+T===84&&47===O())break;return"/*"+v(P,t,A-1)+"*"+f(47===e?e:I())}(I(),A),p=n,g=r,S=c,R(d,p,g,l,f(T),v(d,2,-2),0,S)),c),(5==_(V||1)||5==_(O()||1))&&x(K)&&" "!==v(K,-1,void 0)&&(K+=" ");break;default:K+="/"}break;case 123*F:u[E++]=x(K)*H;case 125*F:case 59:case 0:switch(U){case 0:case 125:B=0;case 59+M:-1==H&&(K=m(K,/\f/g,"")),$>0&&(x(K)-j||0===F&&47===V)&&w($>32?z(K+";",i,r,j-1,c):z(m(K," ","")+";",i,r,j-2,c),c);break;case 59:K+=";";default:if(w(X=N(K,n,r,E,M,o,u,W,Y=[],G=[],j,s),s),123===U)if(0===M)e(K,n,X,X,Y,s,j,u,G);else{switch(L){case 99:if(110===b(K,3))break;case 108:if(97===b(K,2))break;default:M=0;case 100:case 109:case 115:}M?e(t,X,X,i&&w(N(t,X,X,0,0,o,u,W,o,Y=[],j,G),G),o,G,j,u,i?Y:G):e(K,
149X,X,X,[""],G,0,u,G)}}E=M=$=0,F=H=1,W=K="",j=a;break;case 58:j=1+x(K),$=V;default:if(F<1){if(123==U)--F;else if(125==U&&0==F++&&125==(T=A>0?b(P,--A):0,C--,10===T&&(C=1,k--),T))continue}switch(K+=f(U),U*F){case 38:H=M>0?1:(K+="\f",-1);break;case 44:u[E++]=(x(K)-1)*H,H=1;break;case 64:45===O()&&(K+=D(I())),L=O(),M=j=x(W=K+=function(e){for(;!_(O());)I();return v(P,e,A)}(A)),U++;break;case 45:45===V&&2==x(K)&&(F=0)}}return s}("",null,null,null,[""],(g=d=o||i?"".concat(o," ").concat(i," { ").concat(j," }"):j,k=C=1,E=x(P=g),A=0,d=[]),0,[0],d),P="",S);s.namespace&&($=function e(t,n){return t.map(function(t){return"rule"===t.type&&(t.value="".concat(n," ").concat(t.value),t.value=t.value.replaceAll(",",",".concat(n," ")),t.props=t.props.map(function(e){return"".concat(n," ").concat(e)})),Array.isArray(t.children)&&"@keyframes"!==t.type&&(t.children=e(t.children,n)),t})}($,s.namespace));var V=[];return L($,(c=(u=p.concat((M=function(e){return V.push(e)},function(e){!e.root&&(e=e.return)&&M(e)}))).length,function(e,t,n,r){for(var i="",o=0;o<c;o++)i+=u[o](e,t,n,r)||"";return i})),V};return g.hash=c.length?c.reduce(function(e,t){return t.name||eO(15),eu(e,t.name)},5381).toString():"",g}var e1=new eZ,e2=e0(),e5={shouldForwardProp:void 0,styleSheet:e1,stylis:e2},e3=K?{Provider:function(e){return e.children},Consumer:function(e){return(0,e.children)(e5)}}:i.createContext(e5),e4=(e3.Consumer,K?{Provider:function(e){return e.children},Consumer:function(e){return(0,e.children)(void 0)}}:i.createContext(void 0));function e6(){return K?e5:i.useContext(e3)}function e8(e){if(K||!i.useMemo)return e.children;var t=e6().styleSheet,n=i.useMemo(function(){var n=t;return e.sheet?n=e.sheet:e.target&&(n=n.reconstructWithOptions({target:e.target},!1)),e.disableCSSOMInjection&&(n=n.reconstructWithOptions({useCSSOMInjection:!1})),n},[e.disableCSSOMInjection,e.sheet,e.target,t]),r=i.useMemo(function(){return e0({options:{namespace:e.namespace,prefix:e.enableVendorPrefixes},plugins:e.stylisPlugins})},[e.enableVendorPrefixes,e.namespace,e.stylisPlugins]),o=i.useMemo(function(){return{shouldForwardProp:e.shouldForwardProp,styleSheet:n,stylis:r}},[e.shouldForwardProp,n,r]);return i.createElement(e3.Provider,{value:o},i.createElement(e4.Provider,{value:r},e.children))}var e9=function(){function e(e,t){var n=this;this.inject=function(e,t){void 0===t&&(t=e2);var r=n.name+t.hash;e.hasNameForId(n.id,r)||e.insertRules(n.id,r,t(n.rules,r,"@keyframes"))},this.name=e,this.id="sc-keyframes-".concat(e),this.rules=t,eI(this,function(){throw eO(12,String(n.name))})}return e.prototype.getName=function(e){return void 0===e&&(e=e2),this.name+e.hash},e}();function e7(e){for(var t="",n=0;n<e.length;n++){var r=e[n];if(1===n&&"-"===r&&"-"===e[0])return e;r>="A"&&r<="Z"?t+="-"+r.toLowerCase():t+=r}return t.startsWith("ms-")?"-"+t:t}var te=function(e){return null==e||!1===e||""===e},tt=function(e){var t=[];for(var n in e){var i=e[n];e.hasOwnProperty(n)&&!te(i)&&(Array.isArray(i)&&i.isCss||eT(i)?t.push("".concat(e7(n),":"),i,";"):ej(i)?t.push.apply(t,(0,r.fX)((0,r.fX)(["".concat(n," {")],tt(i),!1),["}"],!1)):t.push("".concat(e7(n),": ").concat(null==i||"boolean"==typeof i||""===i?"":"number"!=typeof i||0===i||n in F||n.startsWith("--")?String(i).trim():"".concat(i,"px"),";")))}return t};function tn(e,t,n,r){if(te(e))return[];if(eP(e))return[".".concat(e.styledComponentId)];if(eT(e))return!eT(e)||e.prototype&&e.prototype.isReactComponent||!t?[e]:tn(e(t),t,n,r);return e instanceof e9?n?(e.inject(n,r),[e.getName(r)]):[e]:ej(e)?tt(e):Array.isArray(e)?Array.prototype.concat.apply(J,e.map(function(e){return tn(e,t,n,r)})):[e.toString()]}function tr(e){for(var t=0;t<e.length;t+=1){var n=e[t];if(eT(n)&&!eP(n))return!1}return!0}var ti=ec(Y),to=function(){function e(e,t,n){this.rules=e,this.staticRulesId="",this.isStatic=(void 0===n||n.isStatic)&&tr(e),this.componentId=t,this.baseHash=eu(ti,t),this.baseStyle=n,eZ.registerId(t)}return e.prototype.generateAndInjectStyles=function(e,t,n){var r=this.baseStyle?this.baseStyle.generateAndInjectStyles(e,t,n).className:"";if(this.isStatic&&!n.hash)if(this.staticRulesId&&t.hasNameForId(this.componentId,this.staticRulesId))r=eR(r,this.staticRulesId);else{var i=eM(tn(this.rules,e,t,n)),o=ea(eu(this.baseHash,i)>>>0);if(!t.hasNameForId(this.componentId,o)){var s=n(i,".".concat(o),void 0,this.componentId);t.insertRules(this.componentId,o,s)}r=eR(r,o),this.staticRulesId=o}else{for(var a=eu(this.baseHash,n.hash),l="",u=0;u<this.rules.length;u++){var c=this.rules[u];if("string"==typeof c)l+=c;else if(c){var d=eM(tn(c,e,t,n));a=eu(a,d+u),l+=d}}if(l){var h=ea(a>>>0);if(!t.hasNameForId(this.componentId,h)){var f=n(l,".".concat(h),void 0,this.componentId);t.insertRules(this.componentId,h,f)}r=eR(r,h)}}return{className:r,css:"undefined"==typeof window?t.getTag().getGroup(eV(this.componentId)):""}},e}(),ts=K?{Provider:function(e){return e.children},Consumer:function(e){return(0,e.children)(void 0)}}:i.createContext(void 0);function ta(){var e=K?void 0:i.useContext(ts);if(!e)throw eO(18);return e}function tl(e){if(K)return e.children;var t=i.useContext(ts),n=i.useMemo(function(){var n=e.theme;if(!n)throw eO(14);if(eT(n))return n(t);if(Array.isArray(n)||"object"!=typeof n)throw eO(8);return t?(0,r.Cl)((0,r.Cl)({},t),n):n},[e.theme,t]);return e.children?i.createElement(ts.Provider,{value:n},e.children):null}ts.Consumer;var tu={};
149function tc(e,t,n){var o,s,a,l,u=eP(e),c=!eh(e),d=t.attrs,h=void 0===d?J:d,f=t.componentId,p=void 0===f?(o=t.displayName,s=t.parentComponentId,tu[a="string"!=typeof o?"sc":ei(o)]=(tu[a]||0)+1,l="".concat(a,"-").concat(ed(Y+a+tu[a])),s?"".concat(s,"-").concat(l):l):f,g=t.displayName,m=void 0===g?eh(e)?"styled.".concat(e):"Styled(".concat(e.displayName||e.name||"Component",")"):g,y=t.displayName&&t.componentId?"".concat(ei(t.displayName),"-").concat(t.componentId):t.componentId||p,b=u&&e.attrs?e.attrs.concat(h).filter(Boolean):h,v=t.shouldForwardProp;if(u&&e.shouldForwardProp){var x=e.shouldForwardProp;if(t.shouldForwardProp){var w=t.shouldForwardProp;v=function(e,t){return x(e,t)&&w(e,t)}}else v=x}var S=new to(n,y,u?e.componentStyle:void 0);function k(e,t){return function(e,t,n){var o,s=e.attrs,a=e.componentStyle,l=e.defaultProps,u=e.foldedComponentIds,c=e.styledComponentId,d=e.target,h=K?void 0:i.useContext(ts),f=e6(),p=e.shouldForwardProp||f.shouldForwardProp,g=ee(t,h,l)||Q,m=function(e,t,n){for(var i,o=(0,r.Cl)((0,r.Cl)({},t),{className:void 0,theme:n}),s=0;s<e.length;s+=1){var a=eT(i=e[s])?i(o):i;for(var l in a)"className"===l?o.className=eR(o.className,a[l]):"style"===l?o.style=(0,r.Cl)((0,r.Cl)({},o.style),a[l]):o[l]=a[l]}return"className"in t&&"string"==typeof t.className&&(o.className=eR(o.className,t.className)),o}(s,t,g),y=m.as||d,b={};for(var v in m)void 0===m[v]||"$"===v[0]||"as"===v||"theme"===v&&m.theme===g||("forwardedAs"===v?b.as=m.forwardedAs:p&&!p(v,y)||(b[v]=m[v]));var x=(o=e6(),a.generateAndInjectStyles(m,o.styleSheet,o.stylis)),w=x.className,S=x.css,k=eR(u,c);w&&(k+=" "+w),m.className&&(k+=" "+m.className),b[eh(y)&&!et.has(y)?"class":"className"]=k,n&&(b.ref=n);var C=(0,i.createElement)(y,b);return K&&S?i.createElement(i.Fragment,null,i.createElement("style",{precedence:"styled-components",href:"sc-".concat(c,"-").concat(w),children:S}),C):C}(C,e,t)}k.displayName=m;var C=i.forwardRef(k);return C.attrs=b,C.componentStyle=S,C.displayName=m,C.shouldForwardProp=v,C.foldedComponentIds=u?eR(e.foldedComponentIds,e.styledComponentId):"",C.styledComponentId=y,C.target=u?e.target:e,Object.defineProperty(C,"defaultProps",{get:function(){return this._foldedDefaultProps},set:function(t){this._foldedDefaultProps=u?function(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];for(var r=0;r<t.length;r++)!function e(t,n,r){if(void 0===r&&(r=!1),!r&&!ej(t)&&!Array.isArray(t))return n;if(Array.isArray(n))for(var i=0;i<n.length;i++)t[i]=e(t[i],n[i]);else if(ej(n))for(var i in n)t[i]=e(t[i],n[i]);return t}(e,t[r],!0);return e}({},e.defaultProps,t):t}}),eI(C,function(){return".".concat(C.styledComponentId)}),c&&function e(t,n,r){if("string"!=typeof n){if(eA){var i=eE(n);i&&i!==eA&&e(t,i,r)}var o=eS(n);ek&&(o=o.concat(ek(n)));for(var s=ex(t),a=ex(n),l=0;l<o.length;++l){var u=o[l];if(!(u in ey||r&&r[u]||a&&u in a||s&&u in s)){var c=eC(n,u);try{ew(t,u,c)}catch(e){}}}}return t}(C,e,{attrs:!0,componentStyle:!0,displayName:!0,foldedComponentIds:!0,shouldForwardProp:!0,styledComponentId:!0,target:!0}),C}function td(e,t){for(var n=[e[0]],r=0,i=t.length;r<i;r+=1)n.push(t[r],e[r+1]);return n}var th=function(e){return Object.assign(e,{isCss:!0})};function tf(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];return eT(e)||ej(e)?th(tn(td(J,(0,r.fX)([e],t,!0)))):0===t.length&&1===e.length&&"string"==typeof e[0]?tn(e):th(tn(td(e,t)))}var tp=function(e){return function e(t,n,i){if(void 0===i&&(i=Q),!n)throw eO(1,n);var o=function(e){for(var o=[],s=1;s<arguments.length;s++)o[s-1]=arguments[s];return t(n,i,tf.apply(void 0,(0,r.fX)([e],o,!1)))};return o.attrs=function(o){return e(t,n,(0,r.Cl)((0,r.Cl)({},i),{attrs:Array.prototype.concat(i.attrs,o).filter(Boolean)}))},o.withConfig=function(o){return e(t,n,(0,r.Cl)((0,r.Cl)({},i),o))},o}(tc,e)},tg=tp;et.forEach(function(e){tg[e]=tp(e)});var tm=function(){function e(e,t){this.rules=e,this.componentId=t,this.isStatic=tr(e),eZ.registerId(this.componentId+1)}return e.prototype.createStyles=function(e,t,n,r){var i=r(eM(tn(this.rules,t,n,r)),""),o=this.componentId+e;n.insertRules(o,o,i)},e.prototype.removeStyles=function(e,t){t.clearRules(this.componentId+e)},e.prototype.renderStyles=function(e,t,n,r){e>2&&eZ.registerId(this.componentId+e);var i=this.componentId+e;this.isStatic?n.hasNameForId(i,i)||this.createStyles(e,t,n,r):(this.removeStyles(e,n),this.createStyles(e,t,n,r))},e}();function ty(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];var o=tf.apply(void 0,(0,r.fX)([e],t,!1)),s="sc-global-".concat(ed(JSON.stringify(o))),a=new tm(o,s),l=new WeakMap,u=function(e){var t=e6(),n=K?void 0:i.useContext(ts),o=l.get(t.
149styleSheet);if(void 0===o&&(o=t.styleSheet.allocateGSInstance(s),l.set(t.styleSheet,o)),"undefined"!=typeof window&&t.styleSheet.server||function(e,t,n,i,o){if(a.isStatic)a.renderStyles(e,Z,n,o);else{var s=(0,r.Cl)((0,r.Cl)({},t),{theme:ee(t,i,u.defaultProps)});a.renderStyles(e,s,n,o)}}(o,e,t.styleSheet,n,t.stylis),!K){var c=i.useRef(!0);i.useLayoutEffect(function(){return c.current=!1,function(){c.current=!0,queueMicrotask(function(){c.current&&(a.removeStyles(o,t.styleSheet),"undefined"!=typeof document&&document.querySelectorAll('style[data-styled-global="'.concat(s,'"]')).forEach(function(e){return e.remove()}))})}},[o,t.styleSheet])}if(K){var d=s+o,h="undefined"==typeof window?t.styleSheet.getTag().getGroup(eV(d)):"";if(h){var f="".concat(s,"-").concat(o);return i.createElement("style",{key:f,"data-styled-global":s,precedence:"styled-components",href:f,children:h})}}return null};return i.memo(u)}function tb(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];var i=eM(tf.apply(void 0,(0,r.fX)([e],t,!1)));return new e9(ed(i),i)}var tv=function(){function e(){var e=this;this._emitSheetCSS=function(){var t=e.instance.toString();if(!t)return"";var r=n.nc,i=eM([r&&'nonce="'.concat(r,'"'),"".concat(H,'="true"'),"".concat(W,'="').concat(Y,'"')].filter(Boolean)," ");return"<style ".concat(i,">").concat(t,"</style>")},this.getStyleTags=function(){if(e.sealed)throw eO(2);return e._emitSheetCSS()}
149,this.getStyleElement=function(){if(e.sealed)throw eO(2);var t,o=e.instance.toString();if(!o)return[];var s=((t={})[H]="",t[W]=Y,t.dangerouslySetInnerHTML={__html:o},t),a=n.nc;return a&&(s.nonce=a),[i.createElement("style",(0,r.Cl)({},s,{key:"sc-0-0"}))]},this.seal=function(){e.sealed=!0},this.instance=new eZ({isServer:!0}),this.sealed=!1}return e.prototype.collectStyles=function(e){if(this.sealed)throw eO(2);return i.createElement(e8,{sheet:this.instance},e)},e.prototype.interleaveWithNodeStream=function(e){throw eO(3)},e}()},67367:e=>{var t=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g;e.exports=function(e){return e.match(t)||[]}},69096:e=>{e.exports=function(e,t,n){var r=-1,i=e.length;t<0&&(t=-t>i?0:i+t),(n=n>i?i:n)<0&&(n+=i),i=t>n?0:n-t>>>0,t>>>=0;for(var o=Array(i);++r<i;)o[r]=e[r+t];return o}},70189:(e,t,n)=>{"use strict";n.d(t,{tb:()=>W});var r,i,o=[],s="ResizeObserver loop completed with undelivered notifications.",a=function(){var e;"function"==typeof ErrorEvent?e=new ErrorEvent("error",{message:s}):((e=document.createEvent("Event")).initEvent("error",!1,!1),e.message=s),window.dispatchEvent(e)};!function(e){e.BORDER_BOX="border-box",e.CONTENT_BOX="content-box",e.DEVICE_PIXEL_CONTENT_BOX="device-pixel-content-box"}(r||(r={}));var l=function(e){return Object.freeze(e)},u=function(e,t){this.inlineSize=e,this.blockSize=t,l(this)},c=function(){function e(e,t,n,r){return this.x=e,this.y=t,this.width=n,this.height=r,this.top=this.y,this.left=this.x,this.bottom=this.top+this.height,this.right=this.left+this.width,l(this)}return e.prototype.toJSON=function(){return{x:this.x,y:this.y,top:this.top,right:this.right,bottom:this.bottom,left:this.left,width:this.width,height:this.height}},e.fromRect=function(t){return new e(t.x,t.y,t.width,t.height)},e}(),d=function(e){return e instanceof SVGElement&&"getBBox"in e},h=function(e){if(d(e)){var t=e.getBBox(),n=t.width,r=t.height;return!n&&!r}var i=e.offsetWidth,o=e.offsetHeight;return!(i||o||e.getClientRects().length)},f=function(e){if(e instanceof Element)return!0;var t,n=null==(t=null==e?void 0:e.ownerDocument)?void 0:t.defaultView;return!!(n&&e instanceof n.Element)},p=function(e){switch(e.tagName){case"INPUT":if("image"!==e.type)break;case"VIDEO":case"AUDIO":case"EMBED":case"OBJECT":case"CANVAS":case"IFRAME":case"IMG":return!0}return!1},g="undefined"!=typeof window?window:{},m=new WeakMap,y=/auto|scroll/,b=/^tb|vertical/,v=/msie|trident/i.test(g.navigator&&g.navigator.userAgent),x=function(e){return parseFloat(e||"0")},w=function(e,t,n){return void 0===e&&(e=0),void 0===t&&(t=0),void 0===n&&(n=!1),new u((n?t:e)||0,(n?e:t)||0)},S=l({devicePixelContentBoxSize:w(),borderBoxSize:w(),contentBoxSize:w(),contentRect:new c(0,0,0,0)}),k=function(e,t){if(void 0===t&&(t=!1),m.has(e)&&!t)return m.get(e);if(h(e))return m.set(e,S),S;var n=getComputedStyle(e),r=d(e)&&e.ownerSVGElement&&e.getBBox(),i=!v&&"border-box"===n.boxSizing,o=b.test(n.writingMode||""),s=!r&&y.test(n.overflowY||""),a=!r&&y.test(n.overflowX||""),u=r?0:x(n.paddingTop),f=r?0:x(n.paddingRight),p=r?0:x(n.paddingBottom),g=r?0:x(n.paddingLeft),k=r?0:x(n.borderTopWidth),C=r?0:x(n.borderRightWidth),E=r?0:x(n.borderBottomWidth),A=r?0:x(n.borderLeftWidth),T=g+f,P=u+p,R=A+C,M=k+E,j=a?e.offsetHeight-M-e.clientHeight:0,I=s?e.offsetWidth-R-e.clientWidth:0,O=r?r.width:x(n.width)-(i?T+R:0)-I,_=r?r.height:x(n.height)-(i?P+M:0)-j,D=O+T+I+R,L=_+P+j+M,$=l({devicePixelContentBoxSize:w(Math.round(O*devicePixelRatio),Math.round(_*devicePixelRatio),o),borderBoxSize:w(D,L,o),contentBoxSize:w(O,_,o),contentRect:new c(g,u,O,_)});return m.set(e,$),$},C=function(e,t,n){var i=k(e,n),o=i.borderBoxSize,s=i.contentBoxSize,a=i.devicePixelContentBoxSize;switch(t){case r.DEVICE_PIXEL_CONTENT_BOX:return a;case r.BORDER_BOX:return o;default:return s}},E=function(e){var t=k(e);this.target=e,this.contentRect=t.contentRect,this.borderBoxSize=l([t.borderBoxSize]),this.contentBoxSize=l([t.contentBoxSize]),this.devicePixelContentBoxSize=l([t.devicePixelContentBoxSize])},A=function(e){if(h(e))return 1/0;for(var t=0,n=e.parentNode;n;)t+=1,n=n.parentNode;return t},T=function(){var e=1/0,t=[];o.forEach(function(n){if(0!==n.activeTargets.length){var r=[];
149n.activeTargets.forEach(function(t){var n=new E(t.target),i=A(t.target);r.push(n),t.lastReportedSize=C(t.target,t.observedBox),i<e&&(e=i)}),t.push(function(){n.callback.call(n.observer,r,n.observer)}),n.activeTargets.splice(0,n.activeTargets.length)}});for(var n=0;n<t.length;n++)(0,t[n])();return e},P=function(e){o.forEach(function(t){t.activeTargets.splice(0,t.activeTargets.length),t.skippedTargets.splice(0,t.skippedTargets.length),t.observationTargets.forEach(function(n){n.isActive()&&(A(n.target)>e?t.activeTargets.push(n):t.skippedTargets.push(n))})})},R=function(){var e=0;for(P(0);o.some(function(e){return e.activeTargets.length>0});)P(e=T());return o.some(function(e){return e.skippedTargets.length>0})&&a(),e>0},M=[],j=function(e){if(!i){var t=0,n=document.createTextNode("");new MutationObserver(function(){return M.splice(0).forEach(function(e){return e()})}).observe(n,{characterData:!0}),i=function(){n.textContent="".concat(t?t--:t++)}}M.push(e),i()},I=function(e){j(function(){requestAnimationFrame(e)})},O=0,_={attributes:!0,characterData:!0,childList:!0,subtree:!0},D=["resize","load","transitionend","animationend","animationstart","animationiteration","keyup","keydown","mouseup","mousedown","mouseover","mouseout","blur","focus"],L=function(e){return void 0===e&&(e=0),Date.now()+e},$=!1,V=new(function(){function e(){var e=this;this.stopped=!0,this.listener=function(){return e.schedule()}}return e.prototype.run=function(e){var t=this;if(void 0===e&&(e=250),!$){$=!0;var n=L(e);I(function(){var r=!1;try{r=R()}finally{if($=!1,e=n-L(),!O)return;r?t.run(1e3):e>0?t.run(e):t.start()}})}},e.prototype.schedule=function(){this.stop(),this.run()},e.prototype.observe=function(){var e=this,t=function(){return e.observer&&e.observer.observe(document.body,_)};document.body?t():g.addEventListener("DOMContentLoaded",t)},e.prototype.start=function(){var e=this;this.stopped&&(this.stopped=!1,this.observer=new MutationObserver(this.listener),this.observe(),D.forEach(function(t){return g.addEventListener(t,e.listener,!0)}))},e.prototype.stop=function(){var e=this;this.stopped||(this.observer&&this.observer.disconnect(),D.forEach(function(t){return g.removeEventListener(t,e.listener,!0)}),this.stopped=!0)},e}()),N=function(e){!O&&e>0&&V.start(),(O+=e)||V.stop()},z=function(){function e(e,t){this.target=e,this.observedBox=t||r.CONTENT_BOX,this.lastReportedSize={inlineSize:0,blockSize:0}}return e.prototype.isActive=function(){var e,t=C(this.target,this.observedBox,!0);return d(e=this.target)||p(e)||"inline"!==getComputedStyle(e).display||(this.lastReportedSize=t),this.lastReportedSize.inlineSize!==t.inlineSize||this.lastReportedSize.blockSize!==t.blockSize},e}(),F=function(e,t){this.activeTargets=[],this.skippedTargets=[],this.observationTargets=[],this.observer=e,this.callback=t},B=new WeakMap,H=function(e,t){for(var n=0;n<e.length;n+=1)if(e[n].target===t)return n;return -1},U=function(){function e(){}return e.connect=function(e,t){var n=new F(e,t);B.set(e,n)},e.observe=function(e,t,n){var r=B.get(e),i=0===r.observationTargets.length;0>H(r.observationTargets,t)&&(i&&o.push(r),r.observationTargets.push(new z(t,n&&n.box)),N(1),V.schedule())},e.unobserve=function(e,t){var n=B.get(e),r=H(n.observationTargets,t),i=1===n.observationTargets.length;r>=0&&(i&&o.splice(o.indexOf(n),1),n.observationTargets.splice(r,1),N(-1))},e.disconnect=function(e){var t=this,n=B.get(e);n.observationTargets.slice().forEach(function(n){return t.unobserve(e,n.target)}),n.activeTargets.splice(0,n.activeTargets.length)},e}(),W=function(){function e(e){if(0==arguments.length)throw TypeError("Failed to construct 'ResizeObserver': 1 argument required, but only 0 present.");if("function"!=typeof e)throw TypeError("Failed to construct 'ResizeObserver': The callback provided as parameter 1 is not a function.");U.connect(this,e)}return e.prototype.observe=function(e,t){if(0==arguments.length)throw TypeError("Failed to execute 'observe' on 'ResizeObserver': 1 argument required, but only 0 present.");if(!f(e))throw TypeError("Failed to execute 'observe' on 'ResizeObserver': parameter 1 is not of type 'Element");U.observe(this,e,t)},e.prototype.unobserve=function(e){if(0==arguments.length)throw TypeError("Failed to execute 'unobserve' on 'ResizeObserver': 1 argument required, but only 0 present.");if(!f(e))throw TypeError("Failed to execute 'unobserve' on 'ResizeObserver': parameter 1 is not of type 'Element");U.unobserve(this,e)},e.prototype.disconnect=function(){U.disconnect(this)},e.toString=function(){return"function ResizeObserver () { [polyfill code] }"},e}()},71624:(e,t,n)=>{var r=n(38208),i=n(57716),o=n(79608);e.exports=function(e){return i(e)?o(e):r(e)}},73142:(e,t,n)=>{"use strict";function r(e){return"object"==typeof e&&null!==e}n.d(t,{G:()=>r})}
149,73423:(e,t,n)=>{e.exports=n(51483).Symbol},75601:(e,t,n)=>{"use strict";n.d(t,{xQ:()=>o});var r=n(12115),i=n(59686);function o(){let e=!(arguments.length>0)||void 0===arguments[0]||arguments[0],t=(0,r.useContext)(i.t);if(null===t)return[!0,null];let{isPresent:n,onExitComplete:o,register:s}=t,a=(0,r.useId)();(0,r.useEffect)(()=>{if(e)return s(a)},[e]);let l=(0,r.useCallback)(()=>e&&o&&o(a),[a,o,e]);return!n&&o?[!1,l]:[!0]}},79608:e=>{var t="\ud800-\udfff",n="[\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff]",r="\ud83c[\udffb-\udfff]",i="[^"+t+"]",o="(?:\ud83c[\udde6-\uddff]){2}",s="[\ud800-\udbff][\udc00-\udfff]",a="(?:"+n+"|"+r+")?",l="[\\ufe0e\\ufe0f]?",u="(?:\\u200d(?:"+[i,o,s].join("|")+")"+l+a+")*",c=RegExp(r+"(?="+r+")|"+("(?:"+[i+n+"?",n,o,s,"["+t+"]"].join("|"))+")"+(l+a+u),"g");e.exports=function(e){return e.match(c)||[]}},80276:(e,t,n)=>{var r=n(85309),i=n(32438),o=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,s=RegExp("[\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff]","g");e.exports=function(e){return(e=i(e))&&e.replace(o,r).replace(s,"")}},80942:(e,t,n)=>{var r=n(73423),i=n(35443),o=n(58840),s=r?r.toStringTag:void 0;e.exports=function(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":s&&s in Object(e)?i(e):o(e)}},81402:(e,t,n)=>{"use strict";n.d(t,{s:()=>i});var r=n(73142);function i(e){return(0,r.G)(e)&&"offsetHeight"in e}},81490:(e,t,n)=>{"use strict";var r,i,o=Object.create,s=Object.defineProperty,a=Object.getOwnPropertyDescriptor,l=Object.getOwnPropertyNames,u=Object.getPrototypeOf,c=Object.prototype.hasOwnProperty,d=(e,t,n,r)=>{if(t&&"object"==typeof t||"function"==typeof t)for(let i of l(t))c.call(e,i)||i===n||s(e,i,{get:()=>t[i],enumerable:!(r=a(t,i))||r.enumerable});return e},h={};((e,t)=>{for(var n in t)s(e,n,{get:t[n],enumerable:!0})})(h,{$dispatcherGuard:()=>C,$makeReadOnly:()=>A,$reset:()=>E,$structuralCheck:()=>j,c:()=>v,clearRenderCounterRegistry:()=>P,renderCounterRegistry:()=>T,useRenderCounter:()=>R}),e.exports=d(s({},"__esModule",{value:!0}),h);var f=((e,t,n)=>(n=null!=e?o(u(e)):{},d(!t&&e&&e.__esModule?n:s(n,"default",{value:e,enumerable:!0}),e)))(n(12115)),{useRef:p,useEffect:g,isValidElement:m}=f,y=null!=(r=f.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE)?r:f.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,b=Symbol.for("react.memo_cache_sentinel"),v="function"==typeof(null==(i=f.__COMPILER_RUNTIME)?void 0:i.c)?f.__COMPILER_RUNTIME.c:function(e){return f.useMemo(()=>{let t=Array(e);for(let n=0;n<e;n++)t[n]=b;return t[b]=!0,t},[])},x={};["readContext","useCallback","useContext","useEffect","useImperativeHandle","useInsertionEffect","useLayoutEffect","useMemo","useReducer","useRef","useState","useDebugValue","useDeferredValue","useTransition","useMutableSource","useSyncExternalStore","useId","unstable_isNewReconciler","getCacheSignal","getCacheForType","useCacheRefresh"].forEach(e=>{x[e]=()=>{throw Error(`[React] Unexpected React hook call (${e}) from a React compiled function. Check that all hooks are called directly and named according to convention ('use[A-Z]') `)}});var w=null;function S(e){return y.ReactCurrentDispatcher.current=e,y.ReactCurrentDispatcher.current}x.useMemoCache=e=>{if(null!=w)return w.useMemoCache(e);throw Error("React Compiler internal invariant violation: unexpected null dispatcher")};var k=[];function C(e){let t=y.ReactCurrentDispatcher.current;if(0===e){if(k.push(t),1===k.length&&(w=t),t===x)throw Error("[React] Unexpected call to custom hook or component from a React compiled function. Check that (1) all hooks are called directly and named according to convention ('use[A-Z]') and (2) components are returned as JSX instead of being directly invoked.");S(x)}else if(1===e){let e=k.pop();if(null==e)throw Error("React Compiler internal error: unexpected null in guard stack");0===k.length&&(w=null),S(e)}else if(2===e)k.push(t),S(w);else if(3===e){let e=k.pop();if(null==e)throw Error("React Compiler internal error: unexpected null in guard stack");S(e)}else throw Error("React Compiler internal error: unreachable block"+e)}function E(e){for(let t=0;t<e.length;t++)e[t]=b}function A(){throw Error("TODO: implement $makeReadOnly in react-compiler-runtime")}var T=new Map;
149function P(){for(let e of T.values())e.forEach(e=>{e.count=0})}function R(e){let t=p(null);null!=t.current&&(t.current.count+=1),g(()=>{if(null==t.current){let n,r={count:0};null==(n=T.get(e))&&(n=new Set,T.set(e,n)),n.add(r),t.current=r}return()=>{null!==t.current&&function(e,t){let n=T.get(e);null!=n&&n.delete(t)}(e,t.current)}})}var M=new Set;function j(e,t,n,r,i,o){function s(e,t,s,a){let l=`${r}:${o} [${i}] ${n}${s} changed from ${e} to ${t} at depth ${a}`;M.has(l)||(M.add(l),console.error(l))}!function e(t,n,r,i){if(!(i>2)){if(t!==n)if(typeof t!=typeof n)s(`type ${typeof t}`,`type ${typeof n}`,r,i);else if("object"==typeof t){let o=Array.isArray(t),a=Array.isArray(n);if(null===t&&null!==n)s("null",`type ${typeof n}`,r,i);else if(null===n)s(`type ${typeof t}`,"null",r,i);else if(t instanceof Map)if(n instanceof Map)if(t.size!==n.size)s(`Map instance with size ${t.size}`,`Map instance with size ${n.size}`,r,i);else for(let[o,a]of t)n.has(o)?e(a,n.get(o),`${r}.get(${o})`,i+1):s(`Map instance with key ${o}`,`Map instance without key ${o}`,r,i);else s("Map instance","other value",r,i);else if(n instanceof Map)s("other value","Map instance",r,i);else if(t instanceof Set)if(n instanceof Set)if(t.size!==n.size)s(`Set instance with size ${t.size}`,`Set instance with size ${n.size}`,r,i);else for(let e of n)t.has(e)||s(`Set instance without element ${e}`,`Set instance with element ${e}`,r,i);else s("Set instance","other value",r,i);else if(n instanceof Set)s("other value","Set instance",r,i);else if(o||a)if(o!==a)s(`type ${o?"array":"object"}`,`type ${a?"array":"object"}`,r,i);else if(t.length!==n.length)s(`array with length ${t.length}`,`array with length ${n.length}`,r,i);else for(let o=0;o<t.length;o++)e(t[o],n[o],`${r}[${o}]`,i+1);else if(m(t)||m(n))m(t)!==m(n)?s(`type ${m(t)?"React element":"object"}`,`type ${m(n)?"React element":"object"}`,r,i):t.type!==n.type?s(`React element of type ${t.type}`,`React element of type ${n.type}`,r,i):e(t.props,n.props,`[props of ${r}]`,i+1);else{for(let e in n)e in t||s(`object without key ${e}`,`object with key ${e}`,r,i);for(let o in t)o in n?e(t[o],n[o],`${r}.${o}`,i+1):s(`object with key ${o}`,`object without key ${o}`,r,i)}}else{if("function"==typeof t)return;isNaN(t)||isNaN(n)?isNaN(t)!==isNaN(n)&&s(`${isNaN(t)?"NaN":"non-NaN value"}`,`${isNaN(n)?"NaN":"non-NaN value"}`,r,i):t!==n&&s(t,n,r,i)}}}(e,t,"",0)}},85309:(e,t,n)=>{e.exports=n(95142)({À:"A",Á:"A",Â:"A",Ã:"A",Ä:"A",Å:"A",à:"a",á:"a",â:"a",ã:"a",ä:"a",å:"a",Ç:"C",ç:"c",Ð:"D",ð:"d",È:"E",É:"E",Ê:"E",Ë:"E",è:"e",é:"e",ê:"e",ë:"e",Ì:"I",Í:"I",Î:"I",Ï:"I",ì:"i",í:"i",î:"i",ï:"i",Ñ:"N",ñ:"n",Ò:"O",Ó:"O",Ô:"O",Õ:"O",Ö:"O",Ø:"O",ò:"o",ó:"o",ô:"o",õ:"o",ö:"o",ø:"o",Ù:"U",Ú:"U",Û:"U",Ü:"U",ù:"u",ú:"u",û:"u",ü:"u",Ý:"Y",ý:"y",ÿ:"y",Æ:"Ae",æ:"ae",Þ:"Th",þ:"th",ß:"ss",Ā:"A",Ă:"A",Ą:"A",ā:"a",ă:"a",ą:"a",Ć:"C",Ĉ:"C",Ċ:"C",Č:"C",ć:"c",ĉ:"c",ċ:"c",č:"c",Ď:"D",Đ:"D",ď:"d",đ:"d",Ē:"E",Ĕ:"E",Ė:"E",Ę:"E",Ě:"E",ē:"e",ĕ:"e",ė:"e",ę:"e",ě:"e",Ĝ:"G",Ğ:"G",Ġ:"G",Ģ:"G",ĝ:"g",ğ:"g",ġ:"g",ģ:"g",Ĥ:"H",Ħ:"H",ĥ:"h",ħ:"h",Ĩ:"I",Ī:"I",Ĭ:"I",Į:"I",İ:"I",ĩ:"i",ī:"i",ĭ:"i",į:"i",ı:"i",Ĵ:"J",ĵ:"j",Ķ:"K",ķ:"k",ĸ:"k",Ĺ:"L",Ļ:"L",Ľ:"L",Ŀ:"L",Ł:"L",ĺ:"l",ļ:"l",ľ:"l",ŀ:"l",ł:"l",Ń:"N",Ņ:"N",Ň:"N",Ŋ:"N",ń:"n",ņ:"n",ň:"n",ŋ:"n",Ō:"O",Ŏ:"O",Ő:"O",ō:"o",ŏ:"o",ő:"o",Ŕ:"R",Ŗ:"R",Ř:"R",ŕ:"r",ŗ:"r",ř:"r",Ś:"S",Ŝ:"S",Ş:"S",Š:"S",ś:"s",ŝ:"s",ş:"s",š:"s",Ţ:"T",Ť:"T",Ŧ:"T",ţ:"t",ť:"t",ŧ:"t",Ũ:"U",Ū:"U",Ŭ:"U",Ů:"U",Ű:"U",Ų:"U",ũ:"u",ū:"u",ŭ:"u",ů:"u",ű:"u",ų:"u",Ŵ:"W",ŵ:"w",Ŷ:"Y",ŷ:"y",Ÿ:"Y",Ź:"Z",Ż:"Z",Ž:"Z",ź:"z",ż:"z",ž:"z",IJ:"IJ",ij:"ij",Œ:"Oe",œ:"oe",ʼn:"'n",ſ:"s"})},86553:(e,t,n)=>{"use strict";n.d(t,{E:()=>i});var r=n(12115);let i=n(33577).B?r.useLayoutEffect:r.useEffect},87282:(e,t,n)=>{var r=n(88325),i=n(28568);e.exports=r(function(e,t,n){return e+(n?" ":"")+i(t)})},88325:(e,t,n)=>{var r=n(94774),i=n(80276),o=n(49095),s=RegExp("['’]","g");e.exports=function(e){return function(t){return r(o(i(t).replace(s,"")),e,"")}}},88334:(e,t,n)=>{"use strict";n.d(t,{BN:()=>f,RK:()=>g,UE:()=>y,UU:()=>p,cY:()=>h,jD:()=>m,we:()=>d});var r=n(58146),i=n(12115),o=n(47650),s="undefined"!=typeof document?i.useLayoutEffect:function(){};function a(e,t){let n,r,i;if(e===t)return!0;
149if(typeof e!=typeof t)return!1;if("function"==typeof e&&e.toString()===t.toString())return!0;if(e&&t&&"object"==typeof e){if(Array.isArray(e)){if((n=e.length)!==t.length)return!1;for(r=n;0!=r--;)if(!a(e[r],t[r]))return!1;return!0}if((n=(i=Object.keys(e)).length)!==Object.keys(t).length)return!1;for(r=n;0!=r--;)if(!({}).hasOwnProperty.call(t,i[r]))return!1;for(r=n;0!=r--;){let n=i[r];if(("_owner"!==n||!e.$$typeof)&&!a(e[n],t[n]))return!1}return!0}return e!=e&&t!=t}function l(e){return"undefined"==typeof window?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function u(e,t){let n=l(e);return Math.round(t*n)/n}function c(e){let t=i.useRef(e);return s(()=>{t.current=e}),t}function d(e){void 0===e&&(e={});let{placement:t="bottom",strategy:n="absolute",middleware:d=[],platform:h,elements:{reference:f,floating:p}={},transform:g=!0,whileElementsMounted:m,open:y}=e,[b,v]=i.useState({x:0,y:0,strategy:n,placement:t,middlewareData:{},isPositioned:!1}),[x,w]=i.useState(d);a(x,d)||w(d);let[S,k]=i.useState(null),[C,E]=i.useState(null),A=i.useCallback(e=>{e!==M.current&&(M.current=e,k(e))},[]),T=i.useCallback(e=>{e!==j.current&&(j.current=e,E(e))},[]),P=f||S,R=p||C,M=i.useRef(null),j=i.useRef(null),I=i.useRef(b),O=null!=m,_=c(m),D=c(h),L=c(y),$=i.useCallback(()=>{if(!M.current||!j.current)return;let e={placement:t,strategy:n,middleware:x};D.current&&(e.platform=D.current),(0,r.rD)(M.current,j.current,e).then(e=>{let t={...e,isPositioned:!1!==L.current};V.current&&!a(I.current,t)&&(I.current=t,o.flushSync(()=>{v(t)}))})},[x,t,n,D,L]);s(()=>{!1===y&&I.current.isPositioned&&(I.current.isPositioned=!1,v(e=>({...e,isPositioned:!1})))},[y]);let V=i.useRef(!1);s(()=>(V.current=!0,()=>{V.current=!1}),[]),s(()=>{if(P&&(M.current=P),R&&(j.current=R),P&&R){if(_.current)return _.current(P,R,$);$()}},[P,R,$,_,O]);let N=i.useMemo(()=>({reference:M,floating:j,setReference:A,setFloating:T}),[A,T]),z=i.useMemo(()=>({reference:P,floating:R}),[P,R]),F=i.useMemo(()=>{let e={position:n,left:0,top:0};if(!z.floating)return e;let t=u(z.floating,b.x),r=u(z.floating,b.y);return g?{...e,transform:"translate("+t+"px, "+r+"px)",...l(z.floating)>=1.5&&{willChange:"transform"}}:{position:n,left:t,top:r}},[n,g,z.floating,b.x,b.y]);return i.useMemo(()=>({...b,update:$,refs:N,elements:z,floatingStyles:F}),[b,$,N,z,F])}let h=(e,t)=>({...(0,r.cY)(e),options:[e,t]}),f=(e,t)=>({...(0,r.BN)(e),options:[e,t]}),p=(e,t)=>({...(0,r.UU)(e),options:[e,t]}),g=(e,t)=>({...(0,r.RK)(e),options:[e,t]}),m=(e,t)=>({...(0,r.jD)(e),options:[e,t]}),y=(e,t)=>({...(e=>({name:"arrow",options:e,fn(t){let{element:n,padding:i}="function"==typeof e?e(t):e;return n&&({}).hasOwnProperty.call(n,"current")?null!=n.current?(0,r.UE)({element:n.current,padding:i}).fn(t):{}:n?(0,r.UE)({element:n,padding:i}).fn(t):{}}}))(e),options:[e,t]})},90886:(e,t,n)=>{"use strict";n.d(t,{Z:()=>p});var r=n(95155),i=n(81490),o=n(96241),s=n(64509),a=n(87282),l=n(12115),u=n(50475);function c(e){let t=function e(t){var n;return!!(n=t)&&("object"==typeof n||"function"==typeof n)&&("reference"===t.name||e(t.type))}(e)&&1===(e.to??[]).length?e.to[0].icon:void 0;return e.icon??e.type?.icon??t}function d(e,t){return{query:"change query"===t.type?t.query:e.query,groups:"select group"===t.type?e.groups.map(e=>({...e,selected:t.name===e.name})):e.groups,views:"toggle view"===t.type?e.views.map(e=>({...e,selected:t.name===e.name})):e.views}}let h="all-items",f={gridTemplateColumns:"repeat(auto-fill, minmax(118px, 1fr))"};function p(e){let t,n,u,p,b,v,w,k,C,E,A,T,P,R,M,j,I=(0,i.c)(54),O=void 0===e.showIcons||e.showIcons,_=void 0===e.filter||"auto"===e.filter?e.schemaTypes.length>5:e.filter;I[0]!==e.groups||I[1]!==e.labels?(t=e.groups?[{name:h,title:e.labels["insert-menu.filter.all-items"],selected:!0},...e.groups.map(y)]:[],I[0]=e.groups,I[1]=e.labels,I[2]=t):t=I[2],I[3]!==e.views?(n=e.views??[{name:"list"}],I[3]=e.views,I[4]=n):n=I[4],I[5]!==n?(u=n.map(m),I[5]=n,I[6]=u):u=I[6],I[7]!==t||I[8]!==u?(p={query:"",groups:t,views:u},I[7]=t,I[8]=u,I[9]=p):p=I[9];let[D,L]=(0,l.useReducer)(d,p);if(I[10]!==e||I[11]!==_||I[12]!==O||I[13]!==D.groups||I[14]!==D.query||I[15]!==D.views){var $,V,N;let t,n,i,l=($=e.schemaTypes,V=D.query,N=D.groups,$.filter(e=>(function(e,t){let n=t.find(e=>e.selected);return!n||n.name===h||n.of?.includes(e.name)})(e,N)&&function(e,t){let n=t.trim().toLowerCase();return e.title?e.title?.toLowerCase().includes(n):e.name.includes(n)}(e,V))),u=D.views.find(g),d=_||D.views.length>1,p=D.groups&&D.groups.length>0,m=d||p;w=s.W1,P=0,v=s.so,E="column",A="fill",I[25]!==m?(t=m?{style:{borderBottom:"1px solid var(--card-border-color)"},paddingBottom:1}:{},I[25]=m,I[26]=t):t=I[26],I[27]!==e.labels||I[28]!==_||I[29]!==d||I[30]!==D.query||I[31]!==D.views?(n=d?(0,r.jsxs)(s.so,{flex:"none",align:"center",paddingTop:1,paddingX:1,gap:1,children:[_?(0,r.jsx)(s.az,{flex:1,children:(0,r.jsx)(s.ks,{autoFocus:!0,border:!1,fontSize:1,icon:o.WIv,onChange:e=>{L({type:"change query",query:e.target.value})},placeholder:e.labels["insert-menu.search.placeholder"],value:D.query})}):null,D.views.length>1?(0,r.jsx)(s.az,{flex:"none",children:(0,r.jsx)(x,{views:D.views,onToggle:e=>{L({type:"toggle view",name:e})},labels:e.labels})}):null]}):null,I[27]=e.labels,I[28]=_,I[29]=d,I[30]=D.query,I[31]=D.views,I[32]=n):n=I[32],I[33]!==p||I[34]!==D.groups?(i=p?(0,r.jsx)(s.az,{paddingTop:1,paddingX:1,children:(0,r.jsx)(s.wb,{space:1,children:D.groups.map(e=>(0,r.jsx)(s.oz,{id:`${e.name}-tab`,"aria-controls":`${e.name}-panel`,label:e.title??a(e.name),selected:e.selected,onClick:()=>{L({type:"select group",name:e.name})}},e.name))})}):null,I[33]=p,I[34]=D.groups,I[35]=i):i=I[35],I[36]!==t||I[37]!==n||I[38]!==i?(T=(0,r.jsxs)(s.az,{...t,children:[n,i]}),I[36]=t,I[37]=n,I[38]=i,I[39]=T):T=I[39],b=s.az,k=1,C=0===l.length?(0,r.jsx)(s.az,{padding:2,children:(0,r.jsx)(s.EY,{muted:!0,size:1,children:e.labels["insert-menu.search.no-results"]})}):u?"grid"===u.name?(0,r.jsx)(s.xA,{autoRows:"auto",flex:1,gap:1,style:f,children:l.map(t=>(0,r.jsx)(S,{icon:O?c(t):void 0,onClick:()=>{e.onSelect(t)},previewImageUrl:u.previewImageUrl?.(t.name),schemaType:t}
149,t.name))}):(0,r.jsx)(s.BJ,{flex:1,space:1,children:l.map(t=>(0,r.jsx)(s.Dr,{icon:O?c(t):void 0,onClick:()=>{e.onSelect(t)},text:t.title??a(t.name)},t.name))}):null,I[10]=e,I[11]=_,I[12]=O,I[13]=D.groups,I[14]=D.query,I[15]=D.views,I[16]=b,I[17]=v,I[18]=w,I[19]=k,I[20]=C,I[21]=E,I[22]=A,I[23]=T,I[24]=P}else b=I[16],v=I[17],w=I[18],k=I[19],C=I[20],E=I[21],A=I[22],T=I[23],P=I[24];return I[40]!==b||I[41]!==k||I[42]!==C?(R=(0,r.jsx)(b,{padding:k,children:C}),I[40]=b,I[41]=k,I[42]=C,I[43]=R):R=I[43],I[44]!==v||I[45]!==R||I[46]!==E||I[47]!==A||I[48]!==T?(M=(0,r.jsxs)(v,{direction:E,height:A,children:[T,R]}),I[44]=v,I[45]=R,I[46]=E,I[47]=A,I[48]=T,I[49]=M):M=I[49],I[50]!==w||I[51]!==M||I[52]!==P?(j=(0,r.jsx)(w,{padding:P,children:M}),I[50]=w,I[51]=M,I[52]=P,I[53]=j):j=I[53],j}function g(e){return e.selected}function m(e,t){return{...e,selected:0===t}}function y(e){return{...e,selected:!1}}let b={grid:o.jxC,list:o.r$9},v={grid:"insert-menu.toggle-grid-view.tooltip",list:"insert-menu.toggle-list-view.tooltip"};function x(e){let t,n,o,a,l=(0,i.c)(11),u=e.views.findIndex(w),c=e.views[u+1]??e.views[0],d=e.labels[v[c.name]];l[0]!==d?(t=(0,r.jsx)(s.EY,{size:1,children:d}),l[0]=d,l[1]=t):t=l[1];let h=b[c.name];return l[2]!==c.name||l[3]!==e?(n=()=>{e.onToggle(c.name)},l[2]=c.name,l[3]=e,l[4]=n):n=l[4],l[5]!==h||l[6]!==n?(o=(0,r.jsx)(s.$n,{mode:"bleed",icon:h,onClick:n}),l[5]=h,l[6]=n,l[7]=o):o=l[7],l[8]!==t||l[9]!==o?(a=(0,r.jsx)(s.m_,{content:t,placement:"top",portal:!0,children:o}),l[8]=t,l[9]=o,l[10]=a):a=l[10],a}function w(e){return e.selected}function S(e){let t,n,o,a,c,d,h,f,p,g=(0,i.c)(19),[m,y]=(0,l.useState)(!1),b=e.icon;g[0]===Symbol.for("react.memo_cache_sentinel")?(t={overflow:"hidden"},g[0]=t):t=g[0],g[1]===Symbol.for("react.memo_cache_sentinel")?(n={backgroundColor:"var(--card-muted-bg-color)",paddingBottom:"66.6%",position:"relative"},g[1]=n):n=g[1],g[2]!==b?(o=(0,u.isValidElementType)(b)?(0,r.jsx)(s.so,{align:"center",justify:"center",style:{position:"absolute",top:0,left:0,width:"100%",height:"100%"},children:(0,r.jsx)(s.EY,{size:1,children:(0,r.jsx)(b,{})})}):null,g[2]=b,g[3]=o):o=g[3],g[4]!==m||g[5]!==e.previewImageUrl?(a=!e.previewImageUrl||m?null:(0,r.jsx)("img",{src:e.previewImageUrl,style:{objectFit:"contain",width:"100%",height:"100%",position:"absolute",inset:0},onError:()=>{y(!0)}}),g[4]=m,g[5]=e.previewImageUrl,g[6]=a):a=g[6],g[7]===Symbol.for("react.memo_cache_sentinel")?(c=(0,r.jsx)("div",{style:{position:"absolute",top:0,left:0,width:"100%",height:"100%",boxShadow:"inset 0 0 0 0.5px var(--card-fg-color)",opacity:.1}}),g[7]=c):c=g[7],g[8]!==o||g[9]!==a?(d=(0,r.jsxs)(s.az,{flex:"none",style:n,children:[o,a,c]}),g[8]=o,g[9]=a,g[10]=d):d=g[10];let v=e.schemaType.title??e.schemaType.name;return g[11]!==v?(h=(0,r.jsx)(s.az,{flex:1,padding:2,children:(0,r.jsx)(s.EY,{size:1,weight:"medium",children:v})}),g[11]=v,g[12]=h):h=g[12],g[13]!==d||g[14]!==h?(f=(0,r.jsxs)(s.so,{direction:"column",gap:1,padding:1,children:[d,h]}),g[13]=d,g[14]=h,g[15]=f):f=g[15],g[16]!==e.onClick||g[17]!==f?(p=(0,r.jsx)(s.Dr,{padding:0,radius:2,onClick:e.onClick,style:t,children:f}),g[16]=e.onClick,g[17]=f,g[18]=p):p=g[18],p}},91426:e=>{e.exports=function(e,t){for(var n=-1,r=null==e?0:e.length,i=Array(r);++n<r;)i[n]=t(e[n],n,e);return i}},94416:(e,t,n)=>{"use strict";n.d(t,{M:()=>i});var r=n(12115);function i(e){let t=(0,r.useRef)(null);return null===t.current&&(t.current=e()),t.current}},94774:e=>{e.exports=function(e,t,n,r){var i=-1,o=null==e?0:e.length;for(r&&o&&(n=e[++i]);++i<o;)n=t(n,e[i],i,e);return n}},95142:e=>{e.exports=function(e){return function(t){return null==e?void 0:e[t]}}},95918:(e,t,n)=>{var r=n(69096);e.exports=function(e,t,n){var i=e.length;return n=void 0===n?i:n,!t&&n>=i?e:r(e,t,n)}}}]);

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.