PageSourceSearch

https://www.hotel-royal.it/_next/static/chunks/3204-21f7502aefd02b55.js

js hotel-royal.it collected 2026-10-04 01:49:06 UTC 262,195 bytes, 5 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[3204],{1072:e=>{e.exports=function(e,t,r,n){var i=r?r.call(n,e,t):void 0;if(void 0!==i)return!!i;if(e===t)return!0;if("object"!=typeof e||!e||"object"!=typeof t||!t)return!1;var s=Object.keys(e),a=Object.keys(t);if(s.length!==a.length)return!1;for(var o=Object.prototype.hasOwnProperty.bind(t),l=0;l<s.length;l++){var u=s[l];if(!o(u))return!1;var c=e[u],h=t[u];if(!1===(i=r?r.call(n,c,h,u):void 0)||void 0===i&&c!==h)return!1}return!0}},1083: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)}},6814:(e,t,r)=>{"use strict";r.d(t,{C:()=>d,IM:()=>b,T4:()=>m,iz:()=>y});let n=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,i=/_key\s*==\s*['"](.*)['"]/,s=/^\d*:\d*$/;function a(e){return"number"==typeof e||"string"==typeof e&&/^\[\d+\]$/.test(e)}function o(e){return"string"==typeof e?i.test(e.trim()):"object"==typeof e&&"_key"in e}function l(e){if("string"==typeof e&&s.test(e))return!0;if(!Array.isArray(e)||2!==e.length)return!1;let[t,r]=e;return("number"==typeof t||""===t)&&("number"==typeof r||""===r)}function u(e){if(!Array.isArray(e))throw Error("Path is not an array");return e.reduce((e,t,r)=>{let n=typeof t;if("number"===n)return`${e}[${t}]`;if("string"===n)return`${e}${0===r?"":"."}${t}`;if(o(t)&&t._key)return`${e}[_key=="${t._key}"]`;if(Array.isArray(t)){let[r,n]=t;return`${e}[${r}:${n}]`}throw Error(`Unsupported path segment \`${JSON.stringify(t)}\``)},"")}function c(e){if("string"!=typeof e)throw Error("Path is not a string");let t=e.match(n);if(!t)throw Error("Invalid path string");return t.map(h)}function h(e){return a(e)?Number(e.replace(/[^\d]/g,"")):o(e)?{_key:e.match(i)[1]}:l(e)?function(e){let[t,r]=e.split(":").map(e=>""===e?e:Number(e));return[t,r]}(e):e}var d=Object.freeze({__proto__:null,fromString:c,get:function(e,t,r){let n="string"==typeof t?c(t):t;if(!Array.isArray(n))throw Error("Path must be an array or a string");let i=e;for(let e=0;e<n.length;e++){let t=n[e];if(a(t)){if(!Array.isArray(i))return r;i=i[t]}if(o(t)){if(!Array.isArray(i))return r;i=i.find(e=>e._key===t._key)}if("string"==typeof t&&(i="object"==typeof i&&null!==i?i[t]:void 0),typeof i>"u")return r}return i},isIndexSegment:a,isIndexTuple:l,isKeySegment:o,reKeySegment:i,toString:u});let f="drafts.";function p(e){return e.startsWith(f)}function g(e){return e.startsWith("versions.")}function m(e){return g(e)?f+b(e):p(e)?e:f+e}function b(e){return g(e)?e.split(".").slice(2).join("."):p(e)?e.slice(f.length):e}function y(e){let{baseUrl:t,workspace:r="default",tool:n="default",id:i,type:s,path:a,projectId:o,dataset:l}=e;if(!t)throw Error("baseUrl is required");if(!a)throw Error("path is required");if(!i)throw Error("id is required");if("/"!==t&&t.endsWith("/"))throw Error("baseUrl must not end with a slash");let c="default"===r?void 0:r,h="default"===n?void 0:n,d=b(i),f=Array.isArray(a)?u(a.map(e=>{if("string"==typeof e||"number"==typeof e)return e;if(""!==e._key)return{_key:e._key};if(-1!==e._index)return e._index;throw Error(`invalid segment:${JSON.stringify(e)}`)})):a,m=new URLSearchParams({baseUrl:t,id:d,type:s,path:f});if(c&&m.set("workspace",c),h&&m.set("tool",h),o&&m.set("projectId",o),l&&m.set("dataset",l),p(i)||g(i)){if(g(i)){let e=function(e){if(!g(e))return;let[t,r,...n]=e.split(".");return r}(i);m.set("perspective",e)}}else m.set("perspective","published");let y=["/"===t?"":t];c&&y.push(c);let v=["mode=presentation",`id=${d}`,`type=${s}`,`path=${encodeURIComponent(f)}`];return h&&v.push(`tool=${h}`),y.push("intent","edit",`${v.join(";")}?${m}`),y.join("/")}},7021:(e,t,r)=>{"use strict";r.d(t,{Z:()=>p});var n=r(22342),i=r(43377),s=r(90330),a=r(83060),o=r(8561),l=r(33670),u=r(53588);function c(e){let t=function e(t){var r;return!!(r=t)&&("object"==typeof r||"function"==typeof r)&&("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 h(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 d="all-items",f={gridTemplateColumns:"repeat(auto-fill, minmax(118px, 1fr))"};function p(e){let t,r,u,p,y,v,w,k,P,A,E,T,M,C,R,j,O=(0,i.c)(54),I=void 0===e.showIcons||e.showIcons,V=void 0===e.filter||"auto"===e.filter?e.schemaTypes.length>5:e.filter;O[0]!==e.groups||O[1]!==e.labels?(t=e.groups?[{name:d,title:e.labels["insert-menu.filter.all-items"],selected:!0},...e.groups.map(b)]:[],O[0]=e.groups,O[1]=e.labels,O[2]=t):t=O[2],O[3]!==e.views?(r=e.views??[{name:"list"}],O[3]=e.views,O[4]=r):r=O[4],O[5]!==r?(u=r.map(m),O[5]=r,O[6]=u):u=O[6],O[7]!==t||O[8]!==u?(p={query:"",groups:t,views:u}
1,O[7]=t,O[8]=u,O[9]=p):p=O[9];let[D,L]=(0,l.useReducer)(h,p);if(O[10]!==e||O[11]!==V||O[12]!==I||O[13]!==D.groups||O[14]!==D.query||O[15]!==D.views){var $,_,F;let t,r,i,l=($=e.schemaTypes,_=D.query,F=D.groups,$.filter(e=>(function(e,t){let r=t.find(e=>e.selected);return!r||r.name===d||r.of?.includes(e.name)})(e,F)&&function(e,t){let r=t.trim().toLowerCase();return e.title?e.title?.toLowerCase().includes(r):e.name.includes(r)}(e,_))),u=D.views.find(g),h=V||D.views.length>1,p=D.groups&&D.groups.length>0,m=h||p;w=a.W1,M=0,v=a.so,A="column",E="fill",O[25]!==m?(t=m?{style:{borderBottom:"1px solid var(--card-border-color)"},paddingBottom:1}:{},O[25]=m,O[26]=t):t=O[26],O[27]!==e.labels||O[28]!==V||O[29]!==h||O[30]!==D.query||O[31]!==D.views?(r=h?(0,n.jsxs)(a.so,{flex:"none",align:"center",paddingTop:1,paddingX:1,gap:1,children:[V?(0,n.jsx)(a.az,{flex:1,children:(0,n.jsx)(a.ks,{autoFocus:!0,border:!1,fontSize:1,icon:s.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,n.jsx)(a.az,{flex:"none",children:(0,n.jsx)(x,{views:D.views,onToggle:e=>{L({type:"toggle view",name:e})},labels:e.labels})}):null]}):null,O[27]=e.labels,O[28]=V,O[29]=h,O[30]=D.query,O[31]=D.views,O[32]=r):r=O[32],O[33]!==p||O[34]!==D.groups?(i=p?(0,n.jsx)(a.az,{paddingTop:1,paddingX:1,children:(0,n.jsx)(a.wb,{space:1,children:D.groups.map(e=>(0,n.jsx)(a.oz,{id:`${e.name}-tab`,"aria-controls":`${e.name}-panel`,label:e.title??o(e.name),selected:e.selected,onClick:()=>{L({type:"select group",name:e.name})}},e.name))})}):null,O[33]=p,O[34]=D.groups,O[35]=i):i=O[35],O[36]!==t||O[37]!==r||O[38]!==i?(T=(0,n.jsxs)(a.az,{...t,children:[r,i]}),O[36]=t,O[37]=r,O[38]=i,O[39]=T):T=O[39],y=a.az,k=1,P=0===l.length?(0,n.jsx)(a.az,{padding:2,children:(0,n.jsx)(a.EY,{muted:!0,size:1,children:e.labels["insert-menu.search.no-results"]})}):u?"grid"===u.name?(0,n.jsx)(a.xA,{autoRows:"auto",flex:1,gap:1,style:f,children:l.map(t=>(0,n.jsx)(S,{icon:I?c(t):void 0,onClick:()=>{e.onSelect(t)},previewImageUrl:u.previewImageUrl?.(t.name),schemaType:t},t.name))}):(0,n.jsx)(a.BJ,{flex:1,space:1,children:l.map(t=>(0,n.jsx)(a.Dr,{icon:I?c(t):void 0,onClick:()=>{e.onSelect(t)},text:t.title??o(t.name)},t.name))}):null,O[10]=e,O[11]=V,O[12]=I,O[13]=D.groups,O[14]=D.query,O[15]=D.views,O[16]=y,O[17]=v,O[18]=w,O[19]=k,O[20]=P,O[21]=A,O[22]=E,O[23]=T,O[24]=M}else y=O[16],v=O[17],w=O[18],k=O[19],P=O[20],A=O[21],E=O[22],T=O[23],M=O[24];return O[40]!==y||O[41]!==k||O[42]!==P?(C=(0,n.jsx)(y,{padding:k,children:P}),O[40]=y,O[41]=k,O[42]=P,O[43]=C):C=O[43],O[44]!==v||O[45]!==C||O[46]!==A||O[47]!==E||O[48]!==T?(R=(0,n.jsxs)(v,{direction:A,height:E,children:[T,C]}),O[44]=v,O[45]=C,O[46]=A,O[47]=E,O[48]=T,O[49]=R):R=O[49],O[50]!==w||O[51]!==R||O[52]!==M?(j=(0,n.jsx)(w,{padding:M,children:R}),O[50]=w,O[51]=R,O[52]=M,O[53]=j):j=O[53],j}function g(e){return e.selected}function m(e,t){return{...e,selected:0===t}}function b(e){return{...e,selected:!1}}let y={grid:s.jxC,list:s.r$9},v={grid:"insert-menu.toggle-grid-view.tooltip",list:"insert-menu.toggle-list-view.tooltip"};function x(e){let t,r,s,o,l=(0,i.c)(11),u=e.views.findIndex(w),c=e.views[u+1]??e.views[0],h=e.labels[v[c.name]];l[0]!==h?(t=(0,n.jsx)(a.EY,{size:1,children:h}),l[0]=h,l[1]=t):t=l[1];let d=y[c.name];return l[2]!==c.name||l[3]!==e?(r=()=>{e.onToggle(c.name)},l[2]=c.name,l[3]=e,l[4]=r):r=l[4],l[5]!==d||l[6]!==r?(s=(0,n.jsx)(a.$n,{mode:"bleed",icon:d,onClick:r}),l[5]=d,l[6]=r,l[7]=s):s=l[7],l[8]!==t||l[9]!==s?(o=(0,n.jsx)(a.m_,{content:t,placement:"top",portal:!0,children:s}),l[8]=t,l[9]=s,l[10]=o):o=l[10],o}function w(e){return e.selected}function S(e){let t,r,s,o,c,h,d,f,p,g=(0,i.c)(19),[m,b]=(0,l.useState)(!1),y=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")?(r={backgroundColor:"var(--card-muted-bg-color)",paddingBottom:"66.6%",position:"relative"},g[1]=r):r=g[1],g[2]!==y?(s=(0,u.isValidElementType)(y)?(0,n.jsx)(a.so,{align:"center",justify:"center",style:{position:"absolute",top:0,left:0,width:"100%",height:"100%"},children:(0,n.jsx)(a.EY,{size:1,children:(0,n.jsx)(y,{})})}):null,g[2]=y,g[3]=s):s=g[3],g[4]!==m||g[5]!==e.previewImageUrl?(o=!e.previewImageUrl||m?null:(0,n.jsx)("img",{src:e.previewImageUrl,style:{objectFit:"contain",width:"100%",height:"100%",position:"absolute",inset:0},onError:()=>{b(!0)}}),g[4]=m,g[5]=e.previewImageUrl,g[6]=o):o=g[6],g[7]===Symbol.for("react.memo_cache_sentinel")?(c=(0,n.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]!==s||g[9]!==o?(h=(0,n.jsxs)(a.az,{flex:"none",style:r,children:[s,o,c]}),g[8]=s,g[9]=o,g[10]=h):h=g[10];
1let v=e.schemaType.title??e.schemaType.name;return g[11]!==v?(d=(0,n.jsx)(a.az,{flex:1,padding:2,children:(0,n.jsx)(a.EY,{size:1,weight:"medium",children:v})}),g[11]=v,g[12]=d):d=g[12],g[13]!==h||g[14]!==d?(f=(0,n.jsxs)(a.so,{direction:"column",gap:1,padding:1,children:[h,d]}),g[13]=h,g[14]=d,g[15]=f):f=g[15],g[16]!==e.onClick||g[17]!==f?(p=(0,n.jsx)(a.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}},7985:(e,t,r)=>{e.exports="object"==typeof r.g&&r.g&&r.g.Object===Object&&r.g},8561:(e,t,r)=>{var n=r(34642),i=r(23633);e.exports=n(function(e,t,r){return e+(r?" ":"")+i(t)})},14229:(e,t,r)=>{var n=r(84342),i=r(85855),s=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,a=RegExp("[\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff]","g");e.exports=function(e){return(e=i(e))&&e.replace(s,n).replace(a,"")}},16613:(e,t,r)=>{var n=r(24376),i=r(57213),s=r(39608),a=r(70771),o=1/0,l=n?n.prototype:void 0,u=l?l.toString:void 0;e.exports=function e(t){if("string"==typeof t)return t;if(s(t))return i(t,e)+"";if(a(t))return u?u.call(t):"";var r=t+"";return"0"==r&&1/t==-o?"-0":r}},17855:e=>{var t="\ud800-\udfff",r="[\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff]",n="\ud83c[\udffb-\udfff]",i="[^"+t+"]",s="(?:\ud83c[\udde6-\uddff]){2}",a="[\ud800-\udbff][\udc00-\udfff]",o="(?:"+r+"|"+n+")?",l="[\\ufe0e\\ufe0f]?",u="(?:\\u200d(?:"+[i,s,a].join("|")+")"+l+o+")*",c=RegExp(n+"(?="+n+")|"+("(?:"+[i+r+"?",r,s,a,"["+t+"]"].join("|"))+")"+(l+o+u),"g");e.exports=function(e){return e.match(c)||[]}},20570:(e,t,r)=>{var n=r(24376),i=Object.prototype,s=i.hasOwnProperty,a=i.toString,o=n?n.toStringTag:void 0;e.exports=function(e){var t=s.call(e,o),r=e[o];try{e[o]=void 0;var n=!0}catch(e){}var i=a.call(e);return n&&(t?e[o]=r:delete e[o]),i}},23633:(e,t,r)=>{e.exports=r(62962)("toUpperCase")},24376:(e,t,r)=>{e.exports=r(82500).Symbol},28460:(e,t,r)=>{"use strict";r.d(t,{tb:()=>W});var n,i,s=[],a="ResizeObserver loop completed with undelivered notifications.",o=function(){var e;"function"==typeof ErrorEvent?e=new ErrorEvent("error",{message:a}):((e=document.createEvent("Event")).initEvent("error",!1,!1),e.message=a),window.dispatchEvent(e)};!function(e){e.BORDER_BOX="border-box",e.CONTENT_BOX="content-box",e.DEVICE_PIXEL_CONTENT_BOX="device-pixel-content-box"}(n||(n={}));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,r,n){return this.x=e,this.y=t,this.width=r,this.height=n,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}(),h=function(e){return e instanceof SVGElement&&"getBBox"in e},d=function(e){if(h(e)){var t=e.getBBox(),r=t.width,n=t.height;return!r&&!n}var i=e.offsetWidth,s=e.offsetHeight;return!(i||s||e.getClientRects().length)},f=function(e){if(e instanceof Element)return!0;var t,r=null===(t=null==e?void 0:e.ownerDocument)||void 0===t?void 0:t.defaultView;return!!(r&&e instanceof r.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,b=/auto|scroll/,y=/^tb|vertical/,v=/msie|trident/i.test(g.navigator&&g.navigator.userAgent),x=function(e){return parseFloat(e||"0")},w=function(e,t,r){return void 0===e&&(e=0),void 0===t&&(t=0),void 0===r&&(r=!1),new u((r?t:e)||0,(r?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(d(e))return m.set(e,S),S;var r=getComputedStyle(e),n=h(e)&&e.ownerSVGElement&&e.getBBox(),i=!v&&"border-box"===r.boxSizing,s=y.test(r.writingMode||""),a=!n&&b.test(r.overflowY||""),o=!n&&b.test(r.overflowX||""),u=n?0:x(r.paddingTop),f=n?0:x(r.paddingRight),p=n?0:x(r.paddingBottom),g=n?0:x(r.paddingLeft),k=n?0:x(r.borderTopWidth),P=n?0:x(r.borderRightWidth),A=n?0:x(r.borderBottomWidth),E=n?0:x(r.borderLeftWidth),T=g+f,M=u+p,C=E+P,R=k+A,j=o?e.offsetHeight-R-e.clientHeight:0,O=a?e.offsetWidth-C-e.clientWidth:0,I=n?n.width:x(r.width)-(i?T+C:0)-O,V=n?n.height:x(r.height)-(i?M+R:0)-j,D=I+T+O+C,L=V+M+j+R,$=l({devicePixelContentBoxSize:w(Math.round(I*devicePixelRatio),Math.round(V*devicePixelRatio),s),borderBoxSize:w(D,L,s),c
1ontentBoxSize:w(I,V,s),contentRect:new c(g,u,I,V)});return m.set(e,$),$},P=function(e,t,r){var i=k(e,r),s=i.borderBoxSize,a=i.contentBoxSize,o=i.devicePixelContentBoxSize;switch(t){case n.DEVICE_PIXEL_CONTENT_BOX:return o;case n.BORDER_BOX:return s;default:return a}},A=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])},E=function(e){if(d(e))return 1/0;for(var t=0,r=e.parentNode;r;)t+=1,r=r.parentNode;return t},T=function(){var e=1/0,t=[];s.forEach(function(r){if(0!==r.activeTargets.length){var n=[];r.activeTargets.forEach(function(t){var r=new A(t.target),i=E(t.target);n.push(r),t.lastReportedSize=P(t.target,t.observedBox),i<e&&(e=i)}),t.push(function(){r.callback.call(r.observer,n,r.observer)}),r.activeTargets.splice(0,r.activeTargets.length)}});for(var r=0;r<t.length;r++)(0,t[r])();return e},M=function(e){s.forEach(function(t){t.activeTargets.splice(0,t.activeTargets.length),t.skippedTargets.splice(0,t.skippedTargets.length),t.observationTargets.forEach(function(r){r.isActive()&&(E(r.target)>e?t.activeTargets.push(r):t.skippedTargets.push(r))})})},C=function(){var e=0;for(M(0);s.some(function(e){return e.activeTargets.length>0});)M(e=T());return s.some(function(e){return e.skippedTargets.length>0})&&o(),e>0},R=[],j=function(e){if(!i){var t=0,r=document.createTextNode("");new MutationObserver(function(){return R.splice(0).forEach(function(e){return e()})}).observe(r,{characterData:!0}),i=function(){r.textContent="".concat(t?t--:t++)}}R.push(e),i()},O=function(e){j(function(){requestAnimationFrame(e)})},I=0,V={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,_=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 r=L(e);O(function(){var n=!1;try{n=C()}finally{if($=!1,e=r-L(),!I)return;n?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,V)};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}()),F=function(e){!I&&e>0&&_.start(),(I+=e)||_.stop()},z=function(){function e(e,t){this.target=e,this.observedBox=t||n.CONTENT_BOX,this.lastReportedSize={inlineSize:0,blockSize:0}}return e.prototype.isActive=function(){var e,t=P(this.target,this.observedBox,!0);return!h(e=this.target)&&!p(e)&&"inline"===getComputedStyle(e).display&&(this.lastReportedSize=t),this.lastReportedSize.inlineSize!==t.inlineSize||this.lastReportedSize.blockSize!==t.blockSize},e}(),B=function(e,t){this.activeTargets=[],this.skippedTargets=[],this.observationTargets=[],this.observer=e,this.callback=t},N=new WeakMap,U=function(e,t){for(var r=0;r<e.length;r+=1)if(e[r].target===t)return r;return -1},H=function(){function e(){}return e.connect=function(e,t){var r=new B(e,t);N.set(e,r)},e.observe=function(e,t,r){var n=N.get(e),i=0===n.observationTargets.length;0>U(n.observationTargets,t)&&(i&&s.push(n),n.observationTargets.push(new z(t,r&&r.box)),F(1),_.schedule())},e.unobserve=function(e,t){var r=N.get(e),n=U(r.observationTargets,t),i=1===r.observationTargets.length;n>=0&&(i&&s.splice(s.indexOf(r),1),r.observationTargets.splice(n,1),F(-1))},e.disconnect=function(e){var t=this,r=N.get(e);
1r.observationTargets.slice().forEach(function(r){return t.unobserve(e,r.target)}),r.activeTargets.splice(0,r.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.");H.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");H.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");H.unobserve(this,e)},e.prototype.disconnect=function(){H.disconnect(this)},e.toString=function(){return"function ResizeObserver () { [polyfill code] }"},e}()},29564:(e,t,r)=>{"use strict";r.d(t,{$:()=>p});var n,i=r(39249),s=r(82959),a=1,o={};function l(e){return e in o&&(delete o[e],!0)}var u={setImmediate:function(e){var t=a++;return o[t]=!0,n||(n=Promise.resolve()),n.then(function(){return l(t)&&e()}),t},clearImmediate:function(e){l(e)}},c=u.setImmediate,h=u.clearImmediate,d={setImmediate:function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var r=d.delegate;return((null==r?void 0:r.setImmediate)||c).apply(void 0,(0,i.fX)([],(0,i.zs)(e)))},clearImmediate:function(e){var t=d.delegate;return((null==t?void 0:t.clearImmediate)||h)(e)},delegate:void 0},f=function(e){function t(t,r){var n=e.call(this,t,r)||this;
1return n.scheduler=t,n.work=r,n}return(0,i.C6)(t,e),t.prototype.requestAsyncId=function(t,r,n){return(void 0===n&&(n=0),null!==n&&n>0)?e.prototype.requestAsyncId.call(this,t,r,n):(t.actions.push(this),t._scheduled||(t._scheduled=d.setImmediate(t.flush.bind(t,void 0))))},t.prototype.recycleAsyncId=function(t,r,n){if(void 0===n&&(n=0),null!=n?n>0:this.delay>0)return e.prototype.recycleAsyncId.call(this,t,r,n);var i,s=t.actions;null!=r&&(null===(i=s[s.length-1])||void 0===i?void 0:i.id)!==r&&(d.clearImmediate(r),t._scheduled===r&&(t._scheduled=void 0))},t}(s.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,r=this._scheduled;this._scheduled=void 0;var n=this.actions;e=e||n.shift();do if(t=e.execute(e.state,e.delay))break;while((e=n[0])&&e.id===r&&n.shift());if(this._active=!1,t){for(;(e=n[0])&&e.id===r&&n.shift();)e.unsubscribe();throw t}},t}(r(35227).q))(f)},32082:(e,t,r)=>{"use strict";r.d(t,{xQ:()=>s});var n=r(33670),i=r(80845);function s(e=!0){let t=(0,n.useContext)(i.t);if(null===t)return[!0,null];let{isPresent:r,onExitComplete:a,register:o}=t,l=(0,n.useId)();(0,n.useEffect)(()=>{if(e)return o(l)},[e]);let u=(0,n.useCallback)(()=>e&&a&&a(l),[l,a,e]);return!r&&a?[!1,u]:[!0]}},34642:(e,t,r)=>{var n=r(62795),i=r(14229),s=r(89364),a=RegExp("['’]","g");e.exports=function(e){return function(t){return n(s(i(t).replace(a,"")),e,"")}}},37929:e=>{e.exports=function(e,t,r){var n=-1,i=e.length;t<0&&(t=-t>i?0:i+t),(r=r>i?i:r)<0&&(r+=i),i=t>r?0:r-t>>>0,t>>>=0;for(var s=Array(i);++n<i;)s[n]=e[n+t];return s}},39608:e=>{e.exports=Array.isArray},43377:(e,t,r)=>{"use strict";var n,i,s=Object.create,a=Object.defineProperty,o=Object.getOwnPropertyDescriptor,l=Object.getOwnPropertyNames,u=Object.getPrototypeOf,c=Object.prototype.hasOwnProperty,h=(e,t,r,n)=>{if(t&&"object"==typeof t||"function"==typeof t)for(let i of l(t))c.call(e,i)||i===r||a(e,i,{get:()=>t[i],enumerable:!(n=o(t,i))||n.enumerable});return e},d={};((e,t)=>{for(var r in t)a(e,r,{get:t[r],enumerable:!0})})(d,{$dispatcherGuard:()=>P,$makeReadOnly:()=>E,$reset:()=>A,$structuralCheck:()=>j,c:()=>v,clearRenderCounterRegistry:()=>M,renderCounterRegistry:()=>T,useRenderCounter:()=>C}),e.exports=h(a({},"__esModule",{value:!0}),d);var f=((e,t,r)=>(r=null!=e?s(u(e)):{},h(!t&&e&&e.__esModule?r:a(r,"default",{value:e,enumerable:!0}),e)))(r(33670)),{useRef:p,useEffect:g,isValidElement:m}=f,b=null!=(n=f.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE)?n:f.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,y=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 r=0;r<e;r++)t[r]=y;return t[y]=!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 b.ReactCurrentDispatcher.current=e,b.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 P(e){let t=b.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 A(e){for(let t=0;t<e.length;t++)e[t]=y}function E(){throw Error("TODO: implement $makeReadOnly in react-compiler-runtime")}var T=new Map;
1function M(){for(let e of T.values())e.forEach(e=>{e.count=0})}function C(e){let t=p(null);null!=t.current&&(t.current.count+=1),g(()=>{if(null==t.current){let r,n={count:0};null==(r=T.get(e))&&(r=new Set,T.set(e,r)),r.add(n),t.current=n}return()=>{if(null!==t.current){var r=t.current;let n=T.get(e);null!=n&&n.delete(r)}}})}var R=new Set;function j(e,t,r,n,i,s){function a(e,t,a,o){let l=`${n}:${s} [${i}] ${r}${a} changed from ${e} to ${t} at depth ${o}`;R.has(l)||(R.add(l),console.error(l))}!function e(t,r,n,i){if(!(i>2)){if(t!==r)if(typeof t!=typeof r)a(`type ${typeof t}`,`type ${typeof r}`,n,i);else if("object"==typeof t){let s=Array.isArray(t),o=Array.isArray(r);if(null===t&&null!==r)a("null",`type ${typeof r}`,n,i);else if(null===r)a(`type ${typeof t}`,"null",n,i);else if(t instanceof Map)if(r instanceof Map)if(t.size!==r.size)a(`Map instance with size ${t.size}`,`Map instance with size ${r.size}`,n,i);else for(let[s,o]of t)r.has(s)?e(o,r.get(s),`${n}.get(${s})`,i+1):a(`Map instance with key ${s}`,`Map instance without key ${s}`,n,i);else a("Map instance","other value",n,i);else if(r instanceof Map)a("other value","Map instance",n,i);else if(t instanceof Set)if(r instanceof Set)if(t.size!==r.size)a(`Set instance with size ${t.size}`,`Set instance with size ${r.size}`,n,i);else for(let e of r)t.has(e)||a(`Set instance without element ${e}`,`Set instance with element ${e}`,n,i);else a("Set instance","other value",n,i);else if(r instanceof Set)a("other value","Set instance",n,i);else if(s||o)if(s!==o)a(`type ${s?"array":"object"}`,`type ${o?"array":"object"}`,n,i);else if(t.length!==r.length)a(`array with length ${t.length}`,`array with length ${r.length}`,n,i);else for(let s=0;s<t.length;s++)e(t[s],r[s],`${n}[${s}]`,i+1);else if(m(t)||m(r))m(t)!==m(r)?a(`type ${m(t)?"React element":"object"}`,`type ${m(r)?"React element":"object"}`,n,i):t.type!==r.type?a(`React element of type ${t.type}`,`React element of type ${r.type}`,n,i):e(t.props,r.props,`[props of ${n}]`,i+1);else{for(let e in r)e in t||a(`object without key ${e}`,`object with key ${e}`,n,i);for(let s in t)s in r?e(t[s],r[s],`${n}.${s}`,i+1):a(`object with key ${s}`,`object without key ${s}`,n,i)}}else{if("function"==typeof t)return;isNaN(t)||isNaN(r)?isNaN(t)!==isNaN(r)&&a(`${isNaN(t)?"NaN":"non-NaN value"}`,`${isNaN(r)?"NaN":"non-NaN value"}`,n,i):t!==r&&a(t,r,n,i)}}}(e,t,"",0)}},44987:(e,t,r)=>{"use strict";r.d(t,{E:()=>tx,ID:()=>e9,NP:()=>tu,DU:()=>ty,AH:()=>tp,Ay:()=>tm,i7:()=>tv,I4:()=>tm,DP:()=>tl});var n=function(){return(n=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var i in t=arguments[r])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e}).apply(this,arguments)};Object.create;function i(e,t,r){if(r||2==arguments.length)for(var n,i=0,s=t.length;i<s;i++)!n&&i in t||(n||(n=Array.prototype.slice.call(t,0,i)),n[i]=t[i]);return e.concat(n||Array.prototype.slice.call(t))}Object.create,"function"==typeof SuppressedError&&SuppressedError;var s=r(33670),a=r(1072),o=r.n(a),l="-ms-",u="-moz-",c="-webkit-",h="comm",d="rule",f="decl",p="@keyframes",g=Math.abs,m=String.fromCharCode,b=Object.assign;function y(e,t){return(e=t.exec(e))?e[0]:e}function v(e,t,r){return e.replace(t,r)}function x(e,t,r){return e.indexOf(t,r)}function w(e,t){return 0|e.charCodeAt(t)}function S(e,t,r){return e.slice(t,r)}function k(e){return e.length}function P(e,t){return t.push(e),e}function A(e,t){return e.filter(function(e){return!y(e,t)})}var E=1,T=1,M=0,C=0,R=0,j="";function O(e,t,r,n,i,s,a,o){return{value:e,root:t,parent:r,type:n,props:i,children:s,line:E,column:T,length:a,return:"",siblings:o}}function I(e,t){return b(O("",null,null,"",null,null,0,e.siblings),e,{length:-e.length},t)}function V(e){for(;e.root;)e=I(e.root,{children:[e]});P(e,e.siblings)}function D(){return R=C<M?w(j,C++):0,T++,10===R&&(T=1,E++),R}function L(){return w(j,C)}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 _(e){var t,r;return(t=C-1,r=function e(t){for(;D();)switch(R){case t:return C;case 34:case 39:34!==t&&39!==t&&e(R);break;case 40:41===t&&e(t);break;case 92:D()}return C}(91===e?e+2:40===e?e+1:e),S(j,t,r)).trim()}function F(e,t){for(var r="",n=0;n<e.length;n++)r+=t(e[n],n,e,t)||"";return r}function z(e,t,r,n){switch(e.type){case"@layer":if(e.children.length)break;case"@import":case f:return e.return=e.return||e.value;case h:return"";case p:return e.return=e.value+"{"+F(e.children,n)+"}";case d:if(!k(e.value=e.props.join(",")))return""}return k(r=F(e.children,n))?e.return=e.value+"{"+r+"}":""}function B(e,t,r,n){if(e.length>-1&&!e.return)switch(e.type){case f:e.return=function e(t,r,n){var i;switch(i=r,45^w(t,0)?(((i<<2^w(t,0))<<2^w(t,1))<<2^w(t,2))<<2^w(t,3):0){case 5103:return c+"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 6391:case 5879:case 5623:case 6135:case 4599:case 4855:case 4215:case 6389:case 5109:case 5365:case 5621:case 3829:return c+t+t;case 4789:return u+t+t;
vendor: 9,688 bytes, line 1
1case 5349:case 4246:case 4810:case 6968:case 2756:return c+t+u+t+l+t+t;case 5936:switch(w(t,r+11)){case 114:return c+t+l+v(t,/[svh]\w+-[tblr]{2}/,"tb")+t;case 108:return c+t+l+v(t,/[svh]\w+-[tblr]{2}/,"tb-rl")+t;case 45:return c+t+l+v(t,/[svh]\w+-[tblr]{2}/,"lr")+t}case 6828:case 4268:case 2903:return c+t+l+t+t;case 6165:return c+t+l+"flex-"+t+t;case 5187:return c+t+v(t,/(\w+).+(:[^]+)/,c+"box-$1$2"+l+"flex-$1$2")+t;case 5443:return c+t+l+"flex-item-"+v(t,/flex-|-self/g,"")+(y(t,/flex-|baseline/)?"":l+"grid-row-"+v(t,/flex-|-self/g,""))+t;case 4675:return c+t+l+"flex-line-pack"+v(t,/align-content|flex-|-self/g,"")+t;case 5548:return c+t+l+v(t,"shrink","negative")+t;case 5292:return c+t+l+v(t,"basis","preferred-size")+t;case 6060:return c+"box-"+v(t,"-grow","")+c+t+l+v(t,"grow","positive")+t;case 4554:return c+v(t,/([^-])(transform)/g,"$1"+c+"$2")+t;case 6187:return v(v(v(t,/(zoom-|grab)/,c+"$1"),/(image-set)/,c+"$1"),t,"")+t;case 5495:case 3959:return v(t,/(image-set\([^]*)/,c+"$1$`$1");case 4968:return v(v(t,/(.+:)(flex-)?(.*)/,c+"box-pack:$3"+l+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+c+t+t;case 4200:if(!y(t,/flex-|baseline/))return l+"grid-column-align"+S(t,r)+t;break;case 2592:case 3360:return l+v(t,"template-","")+t;case 4384:case 3616:if(n&&n.some(function(e,t){return r=t,y(e.props,/grid-\w+-end/)}))return~x(t+(n=n[r].value),"span",0)?t:l+v(t,"-start","")+t+l+"grid-row-span:"+(~x(n,"span",0)?y(n,/\d+/):+y(n,/\d+/)-+y(t,/\d+/))+";";return l+v(t,"-start","")+t;case 4896:case 4128:return n&&n.some(function(e){return y(e.props,/grid-\w+-start/)})?t:l+v(v(t,"-end","-span"),"span ","")+t;case 4095:case 3583:case 4068:case 2532:return v(t,/(.+)-inline(.+)/,c+"$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(k(t)-1-r>6)switch(w(t,r+1)){case 109:if(45!==w(t,r+4))break;case 102:return v(t,/(.+:)(.+)-([^]+)/,"$1"+c+"$2-$3$1"+u+(108==w(t,r+3)?"$3":"$2-$3"))+t;case 115:return~x(t,"stretch",0)?e(v(t,"stretch","fill-available"),r,n)+t:t}break;case 5152:case 5920:return v(t,/(.+?):(\d+)(\s*\/\s*(span)?\s*(\d+))?(.*)/,function(e,r,n,i,s,a,o){return l+r+":"+n+o+(i?l+r+"-span:"+(s?a:+a-+n)+o:"")+t});case 4949:if(121===w(t,r+6))return v(t,":",":"+c)+t;break;case 6444:switch(w(t,45===w(t,14)?18:11)){case 120:return v(t,/(.+:)([^;\s!]+)(;|(\s+)?!.+)?/,"$1"+c+(45===w(t,14)?"inline-":"")+"box$3$1"+c+"$2$3$1"+l+"$2box$3")+t;case 100:return v(t,":",":"+l)+t}break;case 5719:case 2647:case 2135:case 3927:case 2391:return v(t,"scroll-","scroll-snap-")+t}return t}(e.value,e.length,r);return;case p:return F([I(e,{value:v(e.value,"@","@"+c)})],n);case d:if(e.length)return(r=e.props).map(function(t){switch(y(t,n=/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":V(I(e,{props:[v(t,/:(read-\w+)/,":"+u+"$1")]})),V(I(e,{props:[t]})),b(e,{props:A(r,n)});break;case"::placeholder":V(I(e,{props:[v(t,/:(plac\w+)/,":"+c+"input-$1")]})),V(I(e,{props:[v(t,/:(plac\w+)/,":"+u+"$1")]})),V(I(e,{props:[v(t,/:(plac\w+)/,l+"input-$1")]})),V(I(e,{props:[t]})),b(e,{props:A(r,n)})}return""}).join("")}}function N(e,t,r,n,i,s,a,o,l,u,c,h){for(var f=i-1,p=0===i?s:[""],m=p.length,b=0,y=0,x=0;b<n;++b)for(var w=0,k=S(e,f+1,f=g(y=a[b])),P=e;w<m;++w)(P=(y>0?p[w]+" "+k:v(k,/&\f/g,p[w])).trim())&&(l[x++]=P);return O(e,t,r,0===i?d:o,l,u,c,h)}function U(e,t,r,n,i){return O(e,t,r,f,S(e,0,n),S(e,n+1,-1),n,i)}var H={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,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},W=r(87358),G=void 0!==W&&void 0!==W.env&&(W.env.REACT_APP_SC_ATTR||W.env.SC_ATTR)||"data-styled",Y="active",X="data-styled-version",q="6.1.17",K="/*!sc*/\n",Z="undefined"!=typeof window&&"HTMLElement"in window,J=!!("boolean"==typeof SC_DISABLE_SPEEDY?SC_DISABLE_SPEEDY:void 0!==W&&void 0!==W.env&&void 0!==W.env.REACT_APP_SC_DISABLE_SPEEDY&&""!==W.env.REACT_APP_SC_DISABLE_SPEEDY?"false"!==W.env.REACT_APP_SC_DISABLE_SPEEDY&&W.env.REACT_APP_SC_DISABLE_SPEEDY:void 0!==W&&void 0!==W.env&&void 0!==W.env.SC_DISABLE_SPEEDY&&""!==W.env.SC_DISABLE_SPEEDY&&"false"!==W.env.SC_DISABLE_SPEEDY&&W.env.SC_DISABLE_SPEEDY),Q={},ee=Object.freeze([]),et=Object.freeze({});function er(e,t,r){return void 0===r&&(r=et),e.theme!==r.theme&&e.theme||t||r.theme}var en=new Set(["a","abbr","address","area","article","aside","audio","b","base","bdi","bdo","big","blockquote","body","br","button","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","keygen","label","legend","li","link","main","map","mark","menu","menuitem","meta","meter","nav","noscript","object","ol","optgroup","option","output","p","param","picture","pre","progress","q","rp","rt","ruby","s","samp","script","section","select","small","source","span","strong","style","sub","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","tr","track","u","ul","use","var","video","wbr","circle","clipPath","defs","ellipse","foreignObject","g","image","line","linearGradient","marker","mask","path","pattern","polygon","polyline","radialGradient","rect","stop","svg","text","tspan"]),ei=/[!"#$%&'()*+,./:;<=>?@[\\\]^`{|}~-]+/g,es=/(^-|-$)/g;function ea(e){return e.replace(ei,"-").replace(es,"")}var eo=/(a)(d)/gi,el=function(e){return String.fromCharCode(e+(e>25?39:97))};function eu(e){var t,r="";for(t=Math.abs(e);t>52;t=t/52|0)r=el(t%52)+r;return(el(t%52)+r).replace(eo,"$1-$2")}var ec,eh=function(e,t){for(var r=t.length;r;)e=33*e^t.charCodeAt(--r);return e},ed=function(e){return eh(5381,e)};function ef(e){return eu(ed(e)>>>0)}function ep(e){return"string"==typeof e}var eg="function"==typeof Symbol&&Symbol.for,em=eg?Symbol.for("react.memo"):60115,eb=eg?Symbol.for("react.forward_ref"):60112,ey={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},ev={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},ex={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},ew=((ec={})[eb]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},ec[em]=ex,ec);function eS(e){return("type"in e&&e.type.$$typeof)===em?ex:"$$typeof"in e?ew[e.$$typeof]:ey}var ek=Object.defineProperty,eP=Object.getOwnPropertyNames,eA=Object.getOwnPropertySymbols,eE=Object.getOwnPropertyDescriptor,eT=Object.getPrototypeOf,eM=Object.prototype;function eC(e){return"function"==typeof e}function eR(e){return"object"==typeof e&&"styledComponentId"in e}function ej(e,t){return e&&t?"".concat(e," ").concat(t):e||t||""}function eO(e,t){if(0===e.length)return"";for(var r=e[0],n=1;n<e.length;n++)r+=t?t+e[n]:e[n];return r}function eI(e){return null!==e&&"object"==typeof e&&e.constructor.name===Object.name&&!("props"in e&&e.$$typeof)}function eV(e,t){Object.defineProperty(e,"toString",{value:t})}function eD(e){for(var t=[],r=1;r<arguments.length;r++)t[r-1]=arguments[r];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 eL=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,r=0;r<e;r++)t+=this.groupSizes[r];return t},e.prototype.insertRules=function(e,t){if(e>=this.groupSizes.length){for(var r=this.groupSizes,n=r.length,i=n;e>=i;)if((i<<=1)<0)throw eD(16,"".concat(e));this.groupSizes=new Uint32Array(i),this.groupSizes.set(r),this.length=i;for(var s=n;s<i;s++)this.groupSizes[s]=0}for(var a=this.indexOfGroup(e+1),o=(s=0,t.length);s<o;s++)this.tag.insertRule(a,t[s])&&(this.groupSizes[e]++,a++)},e.prototype.clearGroup=function(e){if(e<this.length){var t=this.groupSizes[e],r=this.indexOfGroup(e),n=r+t;this.groupSizes[e]=0;for(var i=r;i<n;i++)this.tag.deleteRule(r)}},e.prototype.getGroup=function(e){var t="";if(e>=this.length||0===this.groupSizes[e])return t;for(var r=this.groupSizes[e],n=this.indexOfGroup(e),i=n+r,s=n;s<i;s++)t+="".concat(this.tag.getRule(s)).concat(K);return t},e}(),e$=new Map,e_=new Map,eF=1,ez=function(e){if(e$.has(e))return e$.get(e);for(;e_.has(eF);)eF++;var t=eF++;return e$.set(e,t),e_.set(t,e),t},eB=function(e,t){eF=t+1,e$.set(e,t),e_.set(t,e)},eN="style[".concat(G,"][").concat(X,'="').concat(q,'"]'),eU=new RegExp("^".concat(G,'\\.g(\\d+)\\[id="([\\w\\d-]+)"\\].*?"([^"]*)')),eH=function(e,t,r){for(var n,i=r.split(","),s=0,a=i.length;s<a;s++)(n=i[s])&&e.registerName(t,n)},eW=function(e,t){for(var r,n=(null!==(r=t.textContent)&&void 0!==r?r:"").split(K),i=[],s=0,a=n.length;s<a;s++){var o=n[s].trim();if(o){var l=o.match(eU);if(l){var u=0|parseInt(l[1],10),c=l[2];0!==u&&(eB(c,u),eH(e,c,l[3]),e.getTag().insertRules(u,i)),i.length=0}else i.push(o)}}},eG=function(e){for(var t=document.querySelectorAll(eN),r=0,n=t.length;r<n;r++){var i=t[r];
1i&&i.getAttribute(G)!==Y&&(eW(e,i),i.parentNode&&i.parentNode.removeChild(i))}},eY=function(e){var t,n=document.head,i=e||n,s=document.createElement("style"),a=(t=Array.from(i.querySelectorAll("style[".concat(G,"]"))))[t.length-1],o=void 0!==a?a.nextSibling:null;s.setAttribute(G,Y),s.setAttribute(X,q);var l=r.nc;return l&&s.setAttribute("nonce",l),i.insertBefore(s,o),s},eX=function(){function e(e){this.element=eY(e),this.element.appendChild(document.createTextNode("")),this.sheet=function(e){if(e.sheet)return e.sheet;for(var t=document.styleSheets,r=0,n=t.length;r<n;r++){var i=t[r];if(i.ownerNode===e)return i}throw eD(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}(),eq=function(){function e(e){this.element=eY(e),this.nodes=this.element.childNodes,this.length=0}return e.prototype.insertRule=function(e,t){if(e<=this.length&&e>=0){var r=document.createTextNode(t);return this.element.insertBefore(r,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}(),eK=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}(),eZ=Z,eJ={isServer:!Z,useCSSOMInjection:!J},eQ=function(){function e(e,t,r){void 0===e&&(e=et),void 0===t&&(t={});var i=this;this.options=n(n({},eJ),e),this.gs=t,this.names=new Map(r),this.server=!!e.isServer,!this.server&&Z&&eZ&&(eZ=!1,eG(this)),eV(this,function(){for(var e=i.getTag(),t=e.length,r="",n=0;n<t;n++)(function(t){var n=e_.get(t);if(void 0===n)return;var s=i.names.get(n),a=e.getGroup(t);if(void 0!==s&&s.size&&0!==a.length){var o="".concat(G,".g").concat(t,'[id="').concat(n,'"]'),l="";void 0!==s&&s.forEach(function(e){e.length>0&&(l+="".concat(e,","))}),r+="".concat(a).concat(o,'{content:"').concat(l,'"}').concat(K)}})(n);return r})}return e.registerId=function(e){return ez(e)},e.prototype.rehydrate=function(){!this.server&&Z&&eG(this)},e.prototype.reconstructWithOptions=function(t,r){return void 0===r&&(r=!0),new e(n(n({},this.options),t),this.gs,r&&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,r;return this.tag||(this.tag=(t=(e=this.options).useCSSOMInjection,r=e.target,new eL(e.isServer?new eK(r):t?new eX(r):new eq(r))))},e.prototype.hasNameForId=function(e,t){return this.names.has(e)&&this.names.get(e).has(t)},e.prototype.registerName=function(e,t){if(ez(e),this.names.has(e))this.names.get(e).add(t);else{var r=new Set;r.add(t),this.names.set(e,r)}},e.prototype.insertRules=function(e,t,r){this.registerName(e,t),this.getTag().insertRules(ez(e),r)},e.prototype.clearNames=function(e){this.names.has(e)&&this.names.get(e).clear()},e.prototype.clearRules=function(e){this.getTag().clearGroup(ez(e)),this.clearNames(e)},e.prototype.clearTag=function(){this.tag=void 0},e}(),e0=/&/g,e1=/^\s*\/\/.*$/gm;function e2(e){var t,r,n,i=void 0===e?et:e,s=i.options,a=void 0===s?et:s,o=i.plugins,l=void 0===o?ee:o,u=function(e,n,i){return i.startsWith(r)&&i.endsWith(r)&&i.replaceAll(r,"").length>0?".".concat(t):e},c=l.slice();c.push(function(e){e.type===d&&e.value.includes("&")&&(e.props[0]=e.props[0].replace(e0,r).replace(n,u))}),a.prefix&&c.push(B),c.push(z);var f=function(e,i,s,o){void 0===i&&(i=""),void 0===s&&(s=""),void 0===o&&(o="&"),t=o,r=i,n=RegExp("\\".concat(r,"\\b"),"g");var l,u,d,f,p,b=e.replace(e1,""),y=(p=function e(t,r,n,i,s,a,o,l,u){for(var c,d,f,p,b=0,y=0,A=o,M=0,I=0,V=0,F=1,z=1,B=1,H=0,W="",G=s,Y=a,X=i,q=W;z;)switch(V=H,H=D()){case 40:if(108!=V&&58==w(q,A-1)){-1!=x(q+=v(_(H),"&","&\f"),"&\f",g(b?l[b-1]:0))&&(B=-1);break}case 34:case 39:case 91:q+=_(H);break;case 9:case 10:case 13:case 32:q+=function(e){for(;R=L();)if(R<33)D();else break;return $(e)>2||$(R)>3?"":" "}(V);break;case 92:q+=function(e,t){for(var r;--t&&D()&&!(R<48)&&!(R>102)&&(!(R>57)||!(R<65))&&(!(R>70)||!(R<97)););return r=C+(t<6&&32==L()&&32==D()),S(j,e,r)}(C-1,7);continue;case 47:switch(L()){case 42:case 47:P((c=function(e,t){for(;D();)if(e+R===57)break;else if(e+R===84&&47===L())break;return"/*"+S(j,t,C-1)+"*"+m(47===e?e:D())}(D(),C),d=r,f=n,p=u,O(c,d,f,h,m(R),S(c,2,-2),0,p)),u);break;default:q+="/"}break;case 123*F:l[b++]=k(q)*B;case 125*F:case 59:case 0:switch(H){case 0:case 125:z=0;case 59+y:-1==B&&(q=v(q,/\f/g,"")),I>0&&k(q)-A&&P(I>32?U(q+";",i,n,A-1,u):U(v(q," ","")+";",i,n,A-2,u),u);break;case 59:q+=";";default:if(P(X=N(q,r,n,b,y,s,l,W,G=[],Y=[],A,a),a),123===H)if(0===y)e(q,r,X,X,G,a,A,l,Y);else switch(99===M&&110===w(q,3)?100:M){case 100:case 108:case 109:case 115:e(t,X,X,i&&P(N(t,X,X,0,0,s,l,W,s,G=[],A,Y),Y),s,Y,A,l,i?G:Y);break;default:e(q,X,X,X,[""],Y,0,l,Y)}}b=y=I=0,F=B=1,W=q="",A=o;break;case 58:A=1+k(q),I=V;default:if(F<1){if(123==H)--F;else if(125==H&&0==F++&&125==(R=C>0?w(j,--C):0,T--,10===R&&(T=1,E--),R))continue}switch(q+=m(H),H*F){case 38:B=y>0?1:(q+="\f",-1);break;case 44:l[b++]=(k(q)-1)*B,B=1;break;case 64:45===L()&&(q+=_(D())),M=L(),y=A=k(W=q+=function(e){for(;!$(L());)D();return S(j,e,C)}(C)),H++;break;case 45:45===V&&2==k(q)&&(F=0)}}return a}("",null,null,null,[""],(d=f=s||i?"".concat(s," ").concat(i," { ").concat(b," }"):b,E=T=1,M=k(j=d),C=0,f=[]),0,[0],f),j="",p);a.namespace&&(y=function e(t,r){return t.map(function(t){return"rule"===t.type&&(t.value="".concat(r," ").concat(t.value),t.value=t.value.replaceAll(",",",".concat(r," ")),t.props=t.props.map(function(e){return"".concat(r," ").concat(e)})),Array.isArray(t.children)&&"@keyframes"!==t.type&&(t.children=e(t.children,r)),t})}(y,a.namespace));var A=[];return F(y,(u=(l=c.concat(function(e){var t;!e.root&&(e=e.return)&&(t=e,A.push(t))})).length,function(e,t,r,n){for(var i="",s=0;s<u;s++)i+=l[s](e,t,r,n)||"";return i})),A};return f.hash=l.length?l.reduce(function(e,t){return t.name||eD(15),eh(e,t.name)},5381).toString():"",f}var e5=new eQ,e3=e2(),e4=s.createContext({shouldForwardProp:void 0,styleSheet:e5,stylis:e3}),e8=(e4.Consumer,s.createContext(void 0));function e6(){return(0,s.useContext)(e4)}
1function e9(e){var t=(0,s.useState)(e.stylisPlugins),r=t[0],n=t[1],i=e6().styleSheet,a=(0,s.useMemo)(function(){var t=i;return e.sheet?t=e.sheet:e.target&&(t=t.reconstructWithOptions({target:e.target},!1)),e.disableCSSOMInjection&&(t=t.reconstructWithOptions({useCSSOMInjection:!1})),t},[e.disableCSSOMInjection,e.sheet,e.target,i]),l=(0,s.useMemo)(function(){return e2({options:{namespace:e.namespace,prefix:e.enableVendorPrefixes},plugins:r})},[e.enableVendorPrefixes,e.namespace,r]);(0,s.useEffect)(function(){o()(r,e.stylisPlugins)||n(e.stylisPlugins)},[e.stylisPlugins]);var u=(0,s.useMemo)(function(){return{shouldForwardProp:e.shouldForwardProp,styleSheet:a,stylis:l}},[e.shouldForwardProp,a,l]);return s.createElement(e4.Provider,{value:u},s.createElement(e8.Provider,{value:l},e.children))}var e7=function(){function e(e,t){var r=this;this.inject=function(e,t){void 0===t&&(t=e3);var n=r.name+t.hash;e.hasNameForId(r.id,n)||e.insertRules(r.id,n,t(r.rules,n,"@keyframes"))},this.name=e,this.id="sc-keyframes-".concat(e),this.rules=t,eV(this,function(){throw eD(12,String(r.name))})}return e.prototype.getName=function(e){return void 0===e&&(e=e3),this.name+e.hash},e}();function te(e){for(var t="",r=0;r<e.length;r++){var n=e[r];if(1===r&&"-"===n&&"-"===e[0])return e;n>="A"&&n<="Z"?t+="-"+n.toLowerCase():t+=n}return t.startsWith("ms-")?"-"+t:t}var tt=function(e){return null==e||!1===e||""===e},tr=function(e){var t=[];for(var r in e){var n=e[r];e.hasOwnProperty(r)&&!tt(n)&&(Array.isArray(n)&&n.isCss||eC(n)?t.push("".concat(te(r),":"),n,";"):eI(n)?t.push.apply(t,i(i(["".concat(r," {")],tr(n),!1),["}"],!1)):t.push("".concat(te(r),": ").concat(null==n||"boolean"==typeof n||""===n?"":"number"!=typeof n||0===n||r in H||r.startsWith("--")?String(n).trim():"".concat(n,"px"),";")))}return t};function tn(e,t,r,n){if(tt(e))return[];if(eR(e))return[".".concat(e.styledComponentId)];if(eC(e))return!eC(e)||e.prototype&&e.prototype.isReactComponent||!t?[e]:tn(e(t),t,r,n);return e instanceof e7?r?(e.inject(r,n),[e.getName(n)]):[e]:eI(e)?tr(e):Array.isArray(e)?Array.prototype.concat.apply(ee,e.map(function(e){return tn(e,t,r,n)})):[e.toString()]}function ti(e){for(var t=0;t<e.length;t+=1){var r=e[t];if(eC(r)&&!eR(r))return!1}return!0}var ts=ed(q),ta=function(){function e(e,t,r){this.rules=e,this.staticRulesId="",this.isStatic=(void 0===r||r.isStatic)&&ti(e),this.componentId=t,this.baseHash=eh(ts,t),this.baseStyle=r,eQ.registerId(t)}return e.prototype.generateAndInjectStyles=function(e,t,r){var n=this.baseStyle?this.baseStyle.generateAndInjectStyles(e,t,r):"";if(this.isStatic&&!r.hash)if(this.staticRulesId&&t.hasNameForId(this.componentId,this.staticRulesId))n=ej(n,this.staticRulesId);else{var i=eO(tn(this.rules,e,t,r)),s=eu(eh(this.baseHash,i)>>>0);if(!t.hasNameForId(this.componentId,s)){var a=r(i,".".concat(s),void 0,this.componentId);t.insertRules(this.componentId,s,a)}n=ej(n,s),this.staticRulesId=s}else{for(var o=eh(this.baseHash,r.hash),l="",u=0;u<this.rules.length;u++){var c=this.rules[u];if("string"==typeof c)l+=c;else if(c){var h=eO(tn(c,e,t,r));o=eh(o,h+u),l+=h}}if(l){var d=eu(o>>>0);t.hasNameForId(this.componentId,d)||t.insertRules(this.componentId,d,r(l,".".concat(d),void 0,this.componentId)),n=ej(n,d)}}return n},e}(),to=s.createContext(void 0);function tl(){var e=(0,s.useContext)(to);if(!e)throw eD(18);return e}function tu(e){var t=s.useContext(to),r=(0,s.useMemo)(function(){var r=e.theme;if(!r)throw eD(14);if(eC(r))return r(t);if(Array.isArray(r)||"object"!=typeof r)throw eD(8);return t?n(n({},t),r):r},[e.theme,t]);return e.children?s.createElement(to.Provider,{value:r},e.children):null}to.Consumer;var tc={};function th(e,t,r){var i,a,o,l,u,c=eR(e),h=!ep(e),d=t.attrs,f=void 0===d?ee:d,p=t.componentId,g=void 0===p?(a=t.displayName,o=t.parentComponentId,tc[l="string"!=typeof a?"sc":ea(a)]=(tc[l]||0)+1,u="".concat(l,"-").concat(ef(q+l+tc[l])),o?"".concat(o,"-").concat(u):u):p,m=t.displayName,b=void 0===m?ep(e)?"styled.".concat(e):"Styled(".concat((i=e).displayName||i.name||"Component",")"):m,y=t.displayName&&t.componentId?"".concat(ea(t.displayName),"-").concat(t.componentId):t.componentId||g,v=c&&e.attrs?e.attrs.concat(f).filter(
vendor: 4,104 bytes, line 1
1Boolean):f,x=t.shouldForwardProp;if(c&&e.shouldForwardProp){var w=e.shouldForwardProp;if(t.shouldForwardProp){var S=t.shouldForwardProp;x=function(e,t){return w(e,t)&&S(e,t)}}else x=w}var k=new ta(r,y,c?e.componentStyle:void 0);function P(e,t){return function(e,t,r){var i,a=e.attrs,o=e.componentStyle,l=e.defaultProps,u=e.foldedComponentIds,c=e.styledComponentId,h=e.target,d=s.useContext(to),f=e6(),p=e.shouldForwardProp||f.shouldForwardProp,g=er(t,d,l)||et,m=function(e,t,r){for(var i,s=n(n({},t),{className:void 0,theme:r}),a=0;a<e.length;a+=1){var o=eC(i=e[a])?i(s):i;for(var l in o)s[l]="className"===l?ej(s[l],o[l]):"style"===l?n(n({},s[l]),o[l]):o[l]}return t.className&&(s.className=ej(s.className,t.className)),s}(a,t,g),b=m.as||h,y={};for(var v in m)void 0===m[v]||"$"===v[0]||"as"===v||"theme"===v&&m.theme===g||("forwardedAs"===v?y.as=m.forwardedAs:p&&!p(v,b)||(y[v]=m[v]));var x=(i=e6(),o.generateAndInjectStyles(m,i.styleSheet,i.stylis)),w=ej(u,c);return x&&(w+=" "+x),m.className&&(w+=" "+m.className),y[ep(b)&&!en.has(b)?"class":"className"]=w,r&&(y.ref=r),(0,s.createElement)(b,y)}(A,e,t)}P.displayName=b;var A=s.forwardRef(P);return A.attrs=v,A.componentStyle=k,A.displayName=b,A.shouldForwardProp=x,A.foldedComponentIds=c?ej(e.foldedComponentIds,e.styledComponentId):"",A.styledComponentId=y,A.target=c?e.target:e,Object.defineProperty(A,"defaultProps",{get:function(){return this._foldedDefaultProps},set:function(t){this._foldedDefaultProps=c?function(e){for(var t=[],r=1;r<arguments.length;r++)t[r-1]=arguments[r];for(var n=0;n<t.length;n++)(function e(t,r,n){if(void 0===n&&(n=!1),!n&&!eI(t)&&!Array.isArray(t))return r;if(Array.isArray(r))for(var i=0;i<r.length;i++)t[i]=e(t[i],r[i]);else if(eI(r))for(var i in r)t[i]=e(t[i],r[i]);return t})(e,t[n],!0);return e}({},e.defaultProps,t):t}}),eV(A,function(){return".".concat(A.styledComponentId)}),h&&function e(t,r,n){if("string"!=typeof r){if(eM){var i=eT(r);i&&i!==eM&&e(t,i,n)}var s=eP(r);eA&&(s=s.concat(eA(r)));for(var a=eS(t),o=eS(r),l=0;l<s.length;++l){var u=s[l];if(!(u in ev||n&&n[u]||o&&u in o||a&&u in a)){var c=eE(r,u);try{ek(t,u,c)}catch(e){}}}}return t}(A,e,{attrs:!0,componentStyle:!0,displayName:!0,foldedComponentIds:!0,shouldForwardProp:!0,styledComponentId:!0,target:!0}),A}function td(e,t){for(var r=[e[0]],n=0,i=t.length;n<i;n+=1)r.push(t[n],e[n+1]);return r}var tf=function(e){return Object.assign(e,{isCss:!0})};function tp(e){for(var t=[],r=1;r<arguments.length;r++)t[r-1]=arguments[r];return eC(e)||eI(e)?tf(tn(td(ee,i([e],t,!0)))):0===t.length&&1===e.length&&"string"==typeof e[0]?tn(e):tf(tn(td(e,t)))}var tg=function(e){return function e(t,r,s){if(void 0===s&&(s=et),!r)throw eD(1,r);var a=function(e){for(var n=[],a=1;a<arguments.length;a++)n[a-1]=arguments[a];return t(r,s,tp.apply(void 0,i([e],n,!1)))};return a.attrs=function(i){return e(t,r,n(n({},s),{attrs:Array.prototype.concat(s.attrs,i).filter(Boolean)}))},a.withConfig=function(i){return e(t,r,n(n({},s),i))},a}(th,e)},tm=tg;en.forEach(function(e){tm[e]=tg(e)});var tb=function(){function e(e,t){this.rules=e,this.componentId=t,this.isStatic=ti(e),eQ.registerId(this.componentId+1)}return e.prototype.createStyles=function(e,t,r,n){var i=n(eO(tn(this.rules,t,r,n)),""),s=this.componentId+e;r.insertRules(s,s,i)},e.prototype.removeStyles=function(e,t){t.clearRules(this.componentId+e)},e.prototype.renderStyles=function(e,t,r,n){e>2&&eQ.registerId(this.componentId+e),this.removeStyles(e,r),this.createStyles(e,t,r,n)},e}();function ty(e){for(var t=[],r=1;r<arguments.length;r++)t[r-1]=arguments[r];var a=tp.apply(void 0,i([e],t,!1)),o="sc-global-".concat(ef(JSON.stringify(a))),l=new tb(a,o),u=function(e){var t=e6(),r=s.useContext(to),n=s.useRef(t.styleSheet.allocateGSInstance(o)).current;return t.styleSheet.server&&c(n,e,t.styleSheet,r,t.stylis),s.useLayoutEffect(function(){if(!t.styleSheet.server)return c(n,e,t.styleSheet,r,t.stylis),function(){return l.removeStyles(n,t.styleSheet)}},[n,e,t.styleSheet,r,t.stylis]),null};function c(e,t,r,i,s){if(l.isStatic)l.renderStyles(e,Q,r,s);else{var a=n(n({},t),{theme:er(t,i,u.defaultProps)});
1l.renderStyles(e,a,r,s)}}return s.memo(u)}function tv(e){for(var t=[],r=1;r<arguments.length;r++)t[r-1]=arguments[r];var n=eO(tp.apply(void 0,i([e],t,!1)));return new e7(ef(n),n)}var tx=function(){function e(){var e=this;this._emitSheetCSS=function(){var t=e.instance.toString();if(!t)return"";var n=r.nc,i=eO([n&&'nonce="'.concat(n,'"'),"".concat(G,'="true"'),"".concat(X,'="').concat(q,'"')].filter(Boolean)," ");return"<style ".concat(i,">").concat(t,"</style>")},this.getStyleTags=function(){if(e.sealed)throw eD(2);return e._emitSheetCSS()},this.getStyleElement=function(){if(e.sealed)throw eD(2);var t,i=e.instance.toString();if(!i)return[];var a=((t={})[G]="",t[X]=q,t.dangerouslySetInnerHTML={__html:i},t),o=r.nc;return o&&(a.nonce=o),[s.createElement("style",n({},a,{key:"sc-0-0"}))]},this.seal=function(){e.sealed=!0},this.instance=new eQ({isServer:!0}),this.sealed=!1}return e.prototype.collectStyles=function(e){if(this.sealed)throw eD(2);return s.createElement(e9,{sheet:this.instance},e)},e.prototype.interleaveWithNodeStream=function(e){throw eD(3)},e}()},48505:e=>{e.exports=function(e){return function(t){return null==e?void 0:e[t]}}},48611:e=>{e.exports=function(e){return null!=e&&"object"==typeof e}},48659:(e,t,r)=>{var n=r(37929);e.exports=function(e,t,r){var i=e.length;return r=void 0===r?i:r,!t&&r>=i?e:n(e,t,r)}},50330:(e,t,r)=>{"use strict";e.exports=r(53588)},50851:e=>{e.exports=function(e){return e.split("")}},51508:(e,t,r)=>{"use strict";r.d(t,{Q:()=>n});let n=(0,r(33670).createContext)({transformPagePoint:e=>e,isStatic:!1,reducedMotion:"never"})},53588:(e,t)=>{"use strict";var r=Symbol.for("react.transitional.element"),n=Symbol.for("react.portal"),i=Symbol.for("react.fragment"),s=Symbol.for("react.strict_mode"),a=Symbol.for("react.profiler");Symbol.for("react.provider");var o=Symbol.for("react.consumer"),l=Symbol.for("react.context"),u=Symbol.for("react.forward_ref"),c=Symbol.for("react.suspense"),h=Symbol.for("react.suspense_list"),d=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 r:switch(e=e.type){case i:case a:case s:case c:case h:case p:return e;default:switch(e=e&&e.$$typeof){case l:case u:case f:case d:case o:return e;default:return t}}case n:return t}}}t.ContextConsumer=o,t.ContextProvider=l,t.Element=r,t.ForwardRef=u,t.Fragment=i,t.Lazy=f,t.Memo=d,t.Portal=n,t.Profiler=a,t.StrictMode=s,t.Suspense=c,t.SuspenseList=h,t.isContextConsumer=function(e){return m(e)===o},t.isContextProvider=function(e){return m(e)===l},t.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===r},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)===d},t.isPortal=function(e){return m(e)===n},t.isProfiler=function(e){return m(e)===a},t.isStrictMode=function(e){return m(e)===s},t.isSuspense=function(e){return m(e)===c},t.isSuspenseList=function(e){return m(e)===h},t.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===i||e===a||e===s||e===c||e===h||"object"==typeof e&&null!==e&&(e.$$typeof===f||e.$$typeof===d||e.$$typeof===l||e.$$typeof===o||e.$$typeof===u||e.$$typeof===g||void 0!==e.getModuleId)||!1},t.typeOf=m},55325:(e,t,r)=>{"use strict";r.d(t,{Cv:()=>n,D9:()=>h,ON:()=>a,OZ:()=>f,Ql:()=>s,V0:()=>i,Zp:()=>u,wL:()=>d,wm:()=>o,wv:()=>c,yW:()=>p,z1:()=>l});let n=["gray","blue","purple","magenta","red","orange","yellow","green","cyan"],i=["50","100","200","300","400","500","600","700","800","900","950"],s={title:"Black",hex:"#0d0e12"},a={title:"White",hex:"#ffffff"},o={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"}},h={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"}},d={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:o,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:h,green:d,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:s,white:a,...f}},57213:e=>{e.exports=function(e,t){for(var r=-1,n=null==e?0:e.length,i=Array(n);++r<n;)i[r]=t(e[r],r,e);return i}},57480:(e,t,r)=>{"use strict";function n(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)}r.d(t,{A:()=>n})},58784:(e,t,r)=>{"use strict";function n(e){let[t,r]=e;return[t,r]}function i(e,t){let r=e,n=t,i=r.length,s=n.length;if(0===i||0===s)return 0;i>s?r=r.substring(i-s):i<s&&(n=n.substring(0,i));let a=Math.min(i,s);if(r===n)return a;let o=0,l=1;for(let e=0;-1!==e;){let t=r.substring(a-l);if(-1===(e=n.indexOf(t)))break;l+=e,(0===e||r.substring(a-l)===n.substring(0,l))&&(o=l,l++)}return o}function s(e,t){if(!e||!t||e[0]!==t[0])return 0;let r=0,n=Math.min(e.length,t.length),i=n,s=0;for(;r<i;)e.substring(s,i)===t.substring(s,i)?s=r=i:n=i,i=Math.floor((n-r)/2+r);return i}function a(e,t){if(!e||!t||e[e.length-1]!==t[t.length-1])return 0;let r=0,n=Math.min(e.length,t.length),i=n,s=0;for(;r<i;)e.substring(e.length-i,e.length-s)===t.substring(t.length-i,t.length-s)?s=r=i:n=i,i=Math.floor((n-r)/2+r);return i}function o(e){let t=e.charCodeAt(0);return t>=56320&&t<=57343}function l(e,t,r,n,i){let s=e.substring(0,r),a=t.substring(0,n),o=e.substring(r),l=t.substring(n),u=x(s,a,{checkLines:!1,deadline:i}),c=x(o,l,{checkLines:!1,deadline:i});return u.concat(c)}function u(e,t,r){let n=e.slice(r,r+Math.floor(e.length/4)),i=-1,o="",l,u,c,h;for(;-1!==(i=t.indexOf(n,i+1));){let n=s(e.slice(r),t.slice(i)),d=a(e.slice(0,r),t.slice(0,i));o.length<d+n&&(o=t.slice(i-d,i)+t.slice(i,i+n),l=e.slice(0,r-d),u=e.slice(r+n),c=t.slice(0,i-d),h=t.slice(i+n))}return 2*o.length>=e.length?[l||"",u||"",c||"",h||"",o||""]:null}r.d(t,{$i:()=>Y,Cm:()=>m,Ug:()=>b,Vx:()=>P,iU:()=>v,iz:()=>ea,jW:()=>er,lw:()=>y,sw:()=>O,w1:()=>el});var c=Object.defineProperty,h=Object.getOwnPropertySymbols,d=Object.prototype.hasOwnProperty,f=Object.prototype.propertyIsEnumerable,p=(e,t,r)=>t in e?c(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,g=(e,t)=>{for(var r in t||(t={}))d.call(t,r)&&p(e,r,t[r]);if(h)for(var r of h(t))f.call(t,r)&&p(e,r,t[r]);return e};let m=-1,b=1,y=0;function v(e,t,r){var n,i;let s;if(null===e||null===t)throw Error("Null input. (diff)");let a=x(e,t,g({checkLines:!0,deadline:(i=(n=r||{}).timeout||1,s=1,"u">typeof i&&(s=i<=0?Number.MAX_VALUE:i),Date.now()+1e3*s)},n));return function(e){for(let t=0;t<e.length;t++){let[r,n]=e[t];if(0===n.length)continue;let i=n[0];(function(e){let t=e.charCodeAt(0);return t>=55296&&t<=56319})(n[n.length-1])&&r===y&&k(e,t,1),o(i)&&r===y&&k(e,t,-1)}for(let t=0;t<e.length;t++)0===e[t][1].length&&e.splice(t,1)}(a),a}function x(e,t,r){let n=e,i=t;if(n===i)return n?[[y,n]]:[];let o=s(n,i),c=n.substring(0,o);o=a(n=n.substring(o),i=i.substring(o));let h=n.substring(n.length-o),d=function(e,t,r){let n;if(!e)return[[b,t]];if(!t)return[[m,e]];let i=e.length>t.length?e:t,s=e.length>t.length?t:e,a=i.indexOf(s);if(-1!==a)return n=[[b,i.substring(0,a)],[y,s],[b,i.substring(a+s.length)]],e.length>t.length&&(n[0][0]=m,n[2][0]=m),n;if(1===s.length)return[[m,e],[b,t]];let o=function(e,t,r=1){let n,i,s,a,o;if(r<=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 h=u(l,c,Math.ceil(l.length/4)),d=u(l,c,Math.ceil(l.length/2));if(h&&d)n=h[4].length>d[4].length?h:d;else{if(!h&&!d)return null;d?h||(n=d):n=h}if(!n)throw Error("Unable to find a half match.");return e.length>t.length?(i=n[0],s=n[1],a=n[2],o=n[3]):(a=n[0],o=n[1],i=n[2],s=n[3]),[i,s,a,o,n[4]]}(e,t);if(o){let e=o[0],t=o[1],n=o[2],i=o[3],s=o[4],a=x(e,n,r),l=x(t,i,r);return a.concat([[y,s]],l)}return r.checkLines&&e.length>100&&t.length>100?function(e,t,r){let n=e,i=t,s=function(e,t){let r=[],n={};function i(e){let t="",i=0,a=-1,o=r.length;for(;a<e.length-1;){-1===(a=e.indexOf(`
2`,i))&&(a=e.length-1);let l=e.slice(i,a+1);(n.hasOwnProperty?n.hasOwnProperty(l):void 0!==n[l])?t+=String.fromCharCode(n[l]):(o===s&&(l=e.slice(i),a=e.length),t+=String.fromCharCode(o),n[l]=o,r[o++]=l),i=a+1}return t}r[0]="";let s=4e4,a=i(e);return s=65535,{chars1:a,chars2:i(t),lineArray:r}}(n,i);n=s.chars1,i=s.chars2;let a=s.lineArray,o=x(n,i,{checkLines:!1,deadline:r.deadline});(function(e,t){for(let r=0;r<e.length;r++){let n=e[r][1],i=[];for(let e=0;e<n.length;e++)i[e]=t[n.charCodeAt(e)];e[r][1]=i.join("")}})(o,a),(o=P(o)).push([y,""]);let l=0,u=0,c=0,h="",d="";for(;l<o.length;){switch(o[l][0]){case b:c++,d+=o[l][1];break;case m:u++,h+=o[l][1];break;case y:if(u>=1&&c>=1){o.splice(l-u-c,u+c),l=l-u-c;let e=x(h,d,{checkLines:!1,deadline:r.deadline});for(let t=e.length-1;t>=0;t--)o.splice(l,0,e[t]);l+=e.length}c=0,u=0,h="",d="";break;default:throw Error("Unknown diff operation.")}l++}return o.pop(),o}(e,t,r):function(e,t,r){let n=e.length,i=t.length,s=Math.ceil((n+i)/2),a=2*s,o=Array(a),u=Array(a);for(let e=0;e<a;e++)o[e]=-1,u[e]=-1;o[s+1]=0,u[s+1]=0;let c=n-i,h=c%2!=0,d=0,f=0,p=0,g=0;for(let m=0;m<s&&!(Date.now()>r);m++){for(let p=-m+d;p<=m-f;p+=2){let g,b=s+p,y=(g=p===-m||p!==m&&o[b-1]<o[b+1]?o[b+1]:o[b-1]+1)-p;for(;g<n&&y<i&&e.charAt(g)===t.charAt(y);)g++,y++;if(o[b]=g,g>n)f+=2;else if(y>i)d+=2;else if(h){let i=s+c-p;if(i>=0&&i<a&&-1!==u[i]&&g>=n-u[i])return l(e,t,g,y,r)}}for(let d=-m+p;d<=m-g;d+=2){let f,b=s+d,y=(f=d===-m||d!==m&&u[b-1]<u[b+1]?u[b+1]:u[b-1]+1)-d;for(;f<n&&y<i&&e.charAt(n-f-1)===t.charAt(i-y-1);)f++,y++;if(u[b]=f,f>n)g+=2;else if(y>i)p+=2;else if(!h){let i=s+c-d;if(i>=0&&i<a&&-1!==o[i]){let a=o[i],u=s+a-i;if(a>=(f=n-f))return l(e,t,a,u,r)}}}}return[[m,e],[b,t]]}(e,t,r.deadline)}(n=n.substring(0,n.length-o),i=i.substring(0,i.length-o),r);return c&&d.unshift([y,c]),h&&d.push([y,h]),d=j(d)}function w(e,t,r){return 1===r?e+t:t+e}function S(e,t){return 1===t?[e.substring(0,e.length-1),e[e.length-1]]:[e.substring(1),e[0]]}function k(e,t,r){var n,i;let s=1===r?-1:1,a=null,o=null,l=t+r;for(;l>=0&&l<e.length&&(null===a||null===o);l+=r){let[n,i]=e[l];if(0!==i.length){if(n===b){null===a&&(a=l);continue}else if(n===m){null===o&&(o=l);continue}else if(n===y){if(null===a&&null===o){let[n,i]=S(e[t][1],r);e[t][1]=n,e[l][1]=w(e[l][1],i,s);return}break}}}if(null!==a&&null!==o&&(n=a,i=o,1===r?e[n][1][e[n][1].length-1]===e[i][1][e[i][1].length-1]:e[n][1][0]===e[i][1][0])){let[
2n,i]=S(e[a][1],s),[l]=S(e[o][1],s);e[a][1]=n,e[o][1]=l,e[t][1]=w(e[t][1],i,r);return}let[u,c]=S(e[t][1],r);e[t][1]=u,null===a?(e.splice(l,0,[b,c]),null!==o&&o>=l&&o++):e[a][1]=w(e[a][1],c,s),null===o?e.splice(l,0,[m,c]):e[o][1]=w(e[o][1],c,s)}function P(e){let t=e.map(e=>n(e)),r=!1,s=[],a=0,o=null,l=0,u=0,c=0,h=0,d=0;for(;l<t.length;)t[l][0]===y?(s[a++]=l,u=h,c=d,h=0,d=0,o=t[l][1]):(t[l][0]===b?h+=t[l][1].length:d+=t[l][1].length,o&&o.length<=Math.max(u,c)&&o.length<=Math.max(h,d)&&(t.splice(s[a-1],0,[m,o]),t[s[a-1]+1][0]=b,a--,l=--a>0?s[a-1]:-1,u=0,c=0,h=0,d=0,o=null,r=!0)),l++;for(r&&(t=j(t)),t=R(t),l=1;l<t.length;){if(t[l-1][0]===m&&t[l][0]===b){let e=t[l-1][1],r=t[l][1],n=i(e,r),s=i(r,e);n>=s?(n>=e.length/2||n>=r.length/2)&&(t.splice(l,0,[y,r.substring(0,n)]),t[l-1][1]=e.substring(0,e.length-n),t[l+1][1]=r.substring(n),l++):(s>=e.length/2||s>=r.length/2)&&(t.splice(l,0,[y,e.substring(0,s)]),t[l-1][0]=b,t[l-1][1]=r.substring(0,r.length-s),t[l+1][0]=m,t[l+1][1]=e.substring(s),l++),l++}l++}return t}let A=/[^a-zA-Z0-9]/,E=/\s/,T=/[\r\n]/,M=/\n\r?\n$/,C=/^\r?\n\r?\n/;function R(e){let t=e.map(e=>n(e));function r(e,t){if(!e||!t)return 6;let r=e.charAt(e.length-1),n=t.charAt(0),i=r.match(A),s=n.match(A),a=i&&r.match(E),o=s&&n.match(E),l=a&&r.match(T),u=o&&n.match(T),c=l&&e.match(M),h=u&&t.match(C);return c||h?5:l||u?4:i&&!a&&o?3:a||o?2:i||s?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],n=t[i][1],s=t[i+1][1],o=a(e,n);if(o){let t=n.substring(n.length-o);e=e.substring(0,e.length-o),n=t+n.substring(0,n.length-o),s=t+s}let l=e,u=n,c=s,h=r(e,n)+r(n,s);for(;n.charAt(0)===s.charAt(0);){e+=n.charAt(0),n=n.substring(1)+s.charAt(0),s=s.substring(1);let t=r(e,n)+r(n,s);t>=h&&(h=t,l=e,u=n,c=s)}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 j(e){let t=e.map(e=>n(e));t.push([y,""]);let r=0,i=0,o=0,l="",u="",c;for(;r<t.length;)switch(t[r][0]){case b:o++,u+=t[r][1],r++;break;case m:i++,l+=t[r][1],r++;break;case y:i+o>1?(0!==i&&0!==o&&(0!==(c=s(u,l))&&(r-i-o>0&&t[r-i-o-1][0]===y?t[r-i-o-1][1]+=u.substring(0,c):(t.splice(0,0,[y,u.substring(0,c)]),r++),u=u.substring(c),l=l.substring(c)),0!==(c=a(u,l))&&(t[r][1]=u.substring(u.length-c)+t[r][1],u=u.substring(0,u.length-c),l=l.substring(0,l.length-c))),r-=i+o,t.splice(r,i+o),l.length&&(t.splice(r,0,[m,l]),r++),u.length&&(t.splice(r,0,[b,u]),r++),r++):0!==r&&t[r-1][0]===y?(t[r-1][1]+=t[r][1],t.splice(r,1)):r++,o=0,i=0,l="",u="";break;default:throw Error("Unknown diff operation")}""===t[t.length-1][1]&&t.pop();let h=!1;for(r=1;r<t.length-1;)t[r-1][0]===y&&t[r+1][0]===y&&(t[r][1].substring(t[r][1].length-t[r-1][1].length)===t[r-1][1]?(t[r][1]=t[r-1][1]+t[r][1].substring(0,t[r][1].length-t[r-1][1].length),t[r+1][1]=t[r-1][1]+t[r+1][1],t.splice(r-1,1),h=!0):t[r][1].substring(0,t[r+1][1].length)===t[r+1][1]&&(t[r-1][1]+=t[r+1][1],t[r][1]=t[r][1].substring(t[r+1][1].length)+t[r+1][1],t.splice(r+1,1),h=!0)),r++;return h&&(t=j(t)),t}function O(e,t=4){let r=e.map(e=>n(e)),i=!1,s=[],a=0,o=null,l=0,u=!1,c=!1,h=!1,d=!1;for(;l<r.length;)r[l][0]===y?(r[l][1].length<t&&(h||d)?(s[a++]=l,u=h,c=d,o=r[l][1]):(a=0,o=null),h=!1,d=!1):(r[l][0]===m?d=!0:h=!0,o&&(u&&c&&h&&d||o.length<t/2&&3===function(...e){return e.reduce((e,t)=>e+ +!!t,0)}(u,c,h,d))&&(r.splice(s[a-1],0,[m,o]),r[s[a-1]+1][0]=b,a--,o=null,u&&c?(h=!0,d=!0,a=0):(l=--a>0?s[a-1]:-1,h=!1,d=!1),i=!0)),l++;return i&&(r=j(r)),r}var I=Object.defineProperty,V=Object.getOwnPropertySymbols,D=Object.prototype.hasOwnProperty,L=Object.prototype.propertyIsEnumerable,$=(e,t,r)=>t in e?I(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,_=(e,t)=>{for(var r in t||(t={}))D.call(t,r)&&$(e,r,t[r]);if(V)for(var r of V(t))L.call(t,r)&&$(e,r,t[r]);return e};let F={threshold:.5,distance:1e3};function z(e,t,r,n={}){if(null===e||null===t||null===r)throw Error("Null input. (match())");let i=Math.max(0,Math.min(r,e.length));return e===t?0:e.length?e.substring(i,i+t.length)===t?i:function(e,t,r,n={}){if(t.length>32)throw Error("Pattern too long for this browser.");let i=_(_({},F),n),s=function(e){let t={};for(let r=0;r<e.length;r++)t[e.charAt(r)]=0;for(let r=0;r<e.length;r++)t[e.charAt(r)]|=1<<e.length-r-1;return t}(t);function a(e,n){let s=e/t.length,a=Math.abs(r-n);return i.distance?s+a/i.distance:a?1:s}let o=i.threshold,l=e.indexOf(t,r);-1!==l&&(o=Math.min(a(0,l),o),-1!==(l=e.lastIndexOf(t,r+t.length))&&(o=Math.min(a(0,l),o)));let u=1<<t.length-1;l=-1;let c,h,d=t.length+e.length,f=[];for(let n=0;n<t.length;n++){for(c=0,h=d;c<h;)a(n,r+h)<=o?c=h:d=h,h=Math.floor((d-c)/2+c);d=h;let i=Math.max(1,r-h+1),p=Math.min(r+h,e.length)+t.length,g=Array(p+2);g[p+1]=(1<<n)-1;for(let t=p;t>=i;t--){let c=s[e.charAt(t-1)];if(0===n?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=a(n,t-1);if(e<=o)if(o=e,(l=t-1)>r)i=Math.max(1,2*r-l);else break}}if(a(n+1,r)>o)break;f=g}return l}(e,t,i,n):-1}function B(e){let t=[];for(let r=0;r<e.length;r++)e[r][0]!==b&&(t[r]=e[r][1]);return t.join("")}function N(e){let t=[];for(let r=0;r<e.length;r++)e[r][0]!==m&&(t[r]=e[r][1]);return t.join("")}function U(e,t){let r=0,n=0,i=0,s=0,a;for(a=0;a<e.length&&(e[a][0]!==b&&(r+=e[a][1].length),e[a][0]!==m&&(n+=e[a][1].length),!(r>t));a++)i=r,s=n;return e.length!==a&&e[a][0]===m?s:s+(t-i)}function H(e){let t=0;for(let r=0;r<e.length;r++){let n=e.codePointAt(r);if(typeof n>"u")throw Error("Failed to get codepoint");t+=W(n)}return t}function W(e){return e<=127?1:e<=2047?2:e<=65535?3:4}function G(e,t){return{diffs:[],start1:e,start2:t,utf8Start1:e,utf8Start2:t,length1:0,length2:0,utf8Length1:0,utf8Length2:0}}function Y(e,t,r={}){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 s=function(e,t,r={}){let i=0,s=0;function a(e){for(;i<e;){let e=t.codePointAt(s);if(typeof e>"u")return s;i+=W(e),e>65535?s+=2:s+=1}if(!r.allowExceedingIndices&&i!==e)throw Error("Failed to determine byte offset");return s}let o=[];for(let t of e)o.push({diffs:t.diffs.map(e=>n(e)),start1:a(t.start1),start2:a(t.start2),utf8Start1:t.utf8Start1,utf8Start2:t.utf8Start2,length1:t.length1,length2:t.length2,utf8Length1:t.utf8Length1,utf8Length2:t.utf8Length2});return o}(e,i,{allowExceedingIndices:r.allowExceedingIndices}),a=r.margin||4,o=r.deleteThreshold||.4,l=function(e,t=4){let r="";for(let e=1;e<=t;e++)r+=String.fromCharCode(e);for(let r of e)r.start1+=t,r.start2+=t,r.utf8Start1+=t,r.utf8Start2+=t;let n=e[0],i=n.diffs;if(0===i.length||i[0][0]!==y)i.unshift([y,r]),n.start1-=t,n.start2-=t,n.utf8Start1-=t,n.utf8Start2-=t,n.length1+=t,n.length2+=t,n.utf8Length1+=t,n.utf8Length2+=t;else if(t>i[0][1].length){let e=i[0][1].length,s=t-e;i[0][1]=r.substring(e)+i[0][1],n.start1-=s,n.start2-=s,n.utf8Start1-=s,n.utf8Start2-=s,n.length1+=s,n.length2+=s,n.utf8Length1+=s,n.utf8Length2+=s}if(0===(i=(n=e[e.length-1]).diffs).length||i[i.length-1][0]!==y)i.push([y,r]),n.length1+=t,n.length2+=t,n.utf8Length1+=t,n.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]+=r.substring(0,e),n.length1+=e,n.length2+=e,n.utf8Length1+=e,n.utf8Length2+=e}return r}(s,a);i=l+i+l,function(e,t=4){for(let r=0;r<e.length;r++){if(e[r].length1<=32)continue;let n=e[r];
2e.splice(r--,1);let i=n.start1,s=n.start2,a="";for(;0!==n.diffs.length;){let o=G(i-a.length,s-a.length),l=!0;if(""!==a){let e=H(a);o.length1=a.length,o.utf8Length1=e,o.length2=a.length,o.utf8Length2=e,o.diffs.push([y,a])}for(;0!==n.diffs.length&&o.length1<32-t;){let e=n.diffs[0][0],r=n.diffs[0][1],a=H(r);if(e===b){o.length2+=r.length,o.utf8Length2+=a,s+=r.length;let e=n.diffs.shift();e&&o.diffs.push(e),l=!1}else e===m&&1===o.diffs.length&&o.diffs[0][0]===y&&r.length>64?(o.length1+=r.length,o.utf8Length1+=a,i+=r.length,l=!1,o.diffs.push([e,r]),n.diffs.shift()):(a=H(r=r.substring(0,32-o.length1-t)),o.length1+=r.length,o.utf8Length1+=a,i+=r.length,e===y?(o.length2+=r.length,o.utf8Length2+=a,s+=r.length):l=!1,o.diffs.push([e,r]),r===n.diffs[0][1]?n.diffs.shift():n.diffs[0][1]=n.diffs[0][1].substring(r.length))}a=(a=N(o.diffs)).substring(a.length-t);let u=B(n.diffs).substring(0,t),c=H(u);""!==u&&(o.length1+=u.length,o.length2+=u.length,o.utf8Length1+=c,o.utf8Length2+=c,0!==o.diffs.length&&o.diffs[o.diffs.length-1][0]===y?o.diffs[o.diffs.length-1][1]+=u:o.diffs.push([y,u])),l||e.splice(++r,0,o)}}}(s,a);let u=0,c=[];for(let e=0;e<s.length;e++){let t=s[e].start2+u,r=B(s[e].diffs),n,a=-1;if(r.length>32?-1!==(n=z(i,r.substring(0,32),t))&&(-1===(a=z(i,r.substring(r.length-32),t+r.length-32))||n>=a)&&(n=-1):n=z(i,r,t),-1===n)c[e]=!1,u-=s[e].length2-s[e].length1;else{let l;if(c[e]=!0,u=n-t,l=-1===a?i.substring(n,n+r.length):i.substring(n,a+32),r===l)i=i.substring(0,n)+N(s[e].diffs)+i.substring(n+r.length);else{let t=v(r,l,{checkLines:!1});if(r.length>32&&function(e){let t=0,r=0,n=0;for(let i=0;i<e.length;i++){let s=e[i][0],a=e[i][1];switch(s){case b:r+=a.length;break;case m:n+=a.length;break;case y:t+=Math.max(r,n),r=0,n=0;break;default:throw Error("Unknown diff operation.")}}return t+Math.max(r,n)}(t)/r.length>o)c[e]=!1;else{t=R(t);let r=0,a=0;for(let o=0;o<s[e].diffs.length;o++){let l=s[e].diffs[o];l[0]!==y&&(a=U(t,r)),l[0]===b?i=i.substring(0,n+a)+l[1]+i.substring(n+a):l[0]===m&&(i=i.substring(0,n+a)+i.substring(n+U(t,r+l[1].length))),l[0]!==m&&(r+=l[1].length)}}}}}return[i=i.substring(l.length,i.length-l.length),c]}var X=Object.defineProperty,q=Object.getOwnPropertySymbols,K=Object.prototype.hasOwnProperty,Z=Object.prototype.propertyIsEnumerable,J=(e,t,r)=>t in e?X(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,Q=(e,t)=>{for(var r in t||(t={}))K.call(t,r)&&J(e,r,t[r]);if(q)for(var r of q(t))Z.call(t,r)&&J(e,r,t[r]);return e};let ee={margin:4};function et(e={}){return Q(Q({},ee),e)}function er(e,t,r){if("string"==typeof e&&"string"==typeof t){let n=v(e,t,{checkLines:!0});return n.length>2&&(n=O(n=P(n))),en(e,n,et(r))}if(e&&Array.isArray(e)&&typeof t>"u")return en(B(e),e,et(r));if("string"==typeof e&&t&&Array.isArray(t))return en(e,t,et(r));throw Error("Unknown call format to make()")}function en(e,t,r){if(0===t.length)return[];let n=[],i=G(0,0),s=0,a=0,o=0,l=0,u=0,c=e,h=e;for(let e=0;e<t.length;e++){let d=t[e],[f,p]=d,g=p.length,v=H(p);switch(s||f===y||(i.start1=a,i.start2=o,i.utf8Start1=l,i.utf8Start2=u),f){case b:i.diffs[s++]=d,i.length2+=g,i.utf8Length2+=v,h=h.substring(0,o)+p+h.substring(o);break;case m:i.length1+=g,i.utf8Length1+=v,i.diffs[s++]=d,h=h.substring(0,o)+h.substring(o+g);break;case y:g<=2*r.margin&&s&&t.length!==e+1?(i.diffs[s++]=d,i.length1+=g,i.length2+=g,i.utf8Length1+=v,i.utf8Length2+=v):g>=2*r.margin&&s&&(ei(i,c,r),n.push(i),i=G(-1,-1),s=0,c=h,a=o,l=u);break;default:throw Error("Unknown diff type")}f!==b&&(a+=g,l+=v),f!==m&&(o+=g,u+=v)}return s&&(ei(i,c,r),n.push(i)),n}function ei(e,t,r){if(0===t.length)return;let n=t.substring(e.start2,e.start2+e.length1),i=0;for(;t.indexOf(n)!==t.lastIndexOf(n)&&n.length<32-r.margin-r.margin;)i+=r.margin,n=t.substring(e.start2-i,e.start2+e.length1+i);i+=r.margin;let s=e.start2-i;s>=1&&o(t[s])&&s--;let a=t.substring(s,e.start2);a&&e.diffs.unshift([y,a]);let l=a.length,u=H(a),c=e.start2+e.length1+i;c<t.length&&o(t[c])&&c++;let h=t.substring(e.start2+e.length1,c);h&&e.diffs.push([y,h]);let d=h.length,f=H(h);e.start1-=l,e.start2-=l,e.utf8Start1-=u,e.utf8Start2-=u,e.length1+=l+d,e.length2+=l+d,e.utf8Length1+=u+f,e.utf8Length2+=u+f}let es=/^@@ -(\d+),?(\d*) \+(\d+),?(\d*) @@$/;function ea(e){if(!e)return[];let t=[],r=e.split(`
3`),n=0;for(;n<r.length;){let e=r[n].match(es);if(!e)throw Error(`Invalid patch string: ${r[n]}`);let i=G(eo(e[1]),eo(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=eo(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=eo(e[4]),i.length2=i.utf8Length2),n++;n<r.length;){let e,t=r[n],s=t.charAt(0);if("@"===s)break;if(""===s){n++;continue}try{e=decodeURI(t.slice(1))}catch(e){throw Error(`Illegal escape in parse: ${t}`)}let a=H(e)-e.length;if("-"===s)i.diffs.push([m,e]),i.length1-=a;else if("+"===s)i.diffs.push([b,e]),i.length2-=a;else if(" "===s)i.diffs.push([y,e]),i.length1-=a,i.length2-=a;else throw Error(`Invalid patch mode "${s}" in: ${e}`);n++}}return t}function eo(e){return parseInt(e,10)}function el(e){return e.map(eu).join("")}function eu(e){let t,r,n,{utf8Length1:i,utf8Length2:s,utf8Start1:a,utf8Start2:o,diffs:l}=e;t=0===i?`${a},0`:1===i?`${a+1}`:`${a+1},${i}`,r=0===s?`${o},0`:1===s?`${o+1}`:`${o+1},${s}`;let u=[`@@ -${t} +${r} @@
4`];for(let e=0;e<l.length;e++){switch(l[e][0]){case b:n="+";break;case m:n="-";break;case y:n=" ";break;default:throw Error("Unknown patch operation.")}u[e+1]=`${n+encodeURI(l[e][1])}
5`}return u.join("").replace(/%20/g," ")}},59132:e=>{var t=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g;e.exports=function(e){return e.match(t)||[]}}
5,60760:(e,t,r)=>{"use strict";r.d(t,{N:()=>b});var n=r(22342),i=r(33670),s=r(90869),a=r(82885),o=r(97494),l=r(80845),u=r(51508);class c extends i.Component{getSnapshotBeforeUpdate(e){let t=this.props.childRef.current;if(t&&e.isPresent&&!this.props.isPresent){let e=t.offsetParent,r=e instanceof HTMLElement&&e.offsetWidth||0,n=this.props.sizeRef.current;n.height=t.offsetHeight||0,n.width=t.offsetWidth||0,n.top=t.offsetTop,n.left=t.offsetLeft,n.right=r-n.width-n.left}return null}componentDidUpdate(){}render(){return this.props.children}}function h(e){let{children:t,isPresent:r,anchorX:s}=e,a=(0,i.useId)(),o=(0,i.useRef)(null),l=(0,i.useRef)({width:0,height:0,top:0,left:0,right:0}),{nonce:h}=(0,i.useContext)(u.Q);return(0,i.useInsertionEffect)(()=>{let{width:e,height:t,top:n,left:i,right:u}=l.current;if(r||!o.current||!e||!t)return;o.current.dataset.motionPopId=a;let c=document.createElement("style");return h&&(c.nonce=h),document.head.appendChild(c),c.sheet&&c.sheet.insertRule('\n          [data-motion-pop-id="'.concat(a,'"] {\n            position: absolute !important;\n            width: ').concat(e,"px !important;\n            height: ").concat(t,"px !important;\n            ").concat("left"===s?"left: ".concat(i):"right: ".concat(u),"px !important;\n            top: ").concat(n,"px !important;\n          }\n        ")),()=>{document.head.removeChild(c)}},[r]),(0,n.jsx)(c,{isPresent:r,childRef:o,sizeRef:l,children:i.cloneElement(t,{ref:o})})}let d=e=>{let{children:t,initial:r,isPresent:s,onExitComplete:o,custom:u,presenceAffectsLayout:c,mode:d,anchorX:p}=e,g=(0,a.M)(f),m=(0,i.useId)(),b=(0,i.useCallback)(e=>{for(let t of(g.set(e,!0),g.values()))if(!t)return;o&&o()},[g,o]),y=(0,i.useMemo)(()=>({id:m,initial:r,isPresent:s,custom:u,onExitComplete:b,register:e=>(g.set(e,!1),()=>g.delete(e))}),c?[Math.random(),b]:[s,b]);return(0,i.useMemo)(()=>{g.forEach((e,t)=>g.set(t,!1))},[s]),i.useEffect(()=>{s||g.size||!o||o()},[s]),"popLayout"===d&&(t=(0,n.jsx)(h,{isPresent:s,anchorX:p,children:t})),(0,n.jsx)(l.t.Provider,{value:y,children:t})};function f(){return new Map}var p=r(32082);let g=e=>e.key||"";function m(e){let t=[];return i.Children.forEach(e,e=>{(0,i.isValidElement)(e)&&t.push(e)}),t}let b=e=>{let{children:t,custom:r,initial:l=!0,onExitComplete:u,presenceAffectsLayout:c=!0,mode:h="sync",propagate:f=!1,anchorX:b="left"}=e,[y,v]=(0,p.xQ)(f),x=(0,i.useMemo)(()=>m(t),[t]),w=f&&!y?[]:x.map(g),S=(0,i.useRef)(!0),k=(0,i.useRef)(x),P=(0,a.M)(()=>new Map),[A,E]=(0,i.useState)(x),[T,M]=(0,i.useState)(x);(0,o.E)(()=>{S.current=!1,k.current=x;for(let e=0;e<T.length;e++){let t=g(T[e]);w.includes(t)?P.delete(t):!0!==P.get(t)&&P.set(t,!1)}},[T,w.length,w.join("-")]);let C=[];if(x!==A){let e=[...x];for(let t=0;t<T.length;t++){let r=T[t],n=g(r);w.includes(n)||(e.splice(t,0,r),C.push(r))}return"wait"===h&&C.length&&(e=C),M(m(e)),E(x),null}let{forceRender:R}=(0,i.useContext)(s.L);return(0,n.jsx)(n.Fragment,{children:T.map(e=>{let t=g(e),i=(!f||!!y)&&(x===T||w.includes(t));return(0,n.jsx)(d,{isPresent:i,initial:(!S.current||!!l)&&void 0,custom:r,presenceAffectsLayout:c,mode:h,onExitComplete:i?void 0:()=>{if(!P.has(t))return;P.set(t,!0);let e=!0;P.forEach(t=>{t||(e=!1)}),e&&(null==R||R(),M(k.current),f&&(null==v||v()),u&&u())},anchorX:b,children:e},t)})})}},62795:e=>{e.exports=function(e,t,r,n){var i=-1,s=null==e?0:e.length;for(n&&s&&(r=e[++i]);++i<s;)r=t(r,e[i],i,e);return r}},62962:(e,t,r)=>{var n=r(48659),i=r(65531),s=r(75145),a=r(85855);e.exports=function(e){return function(t){var r=i(t=a(t))?s(t):void 0,o=r?r[0]:t.charAt(0),l=r?n(r,1).join(""):t.slice(1);return o[e]()+l}}},64384:e=>{var t="\ud800-\udfff",r="\\u2700-\\u27bf",n="a-z\\xdf-\\xf6\\xf8-\\xff",i="A-Z\\xc0-\\xd6\\xd8-\\xde",s="\\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",a="['’]",o="["+s+"]",l="["+n+"]",u="[^"+t+s+"\\d+"+r+n+i+"]",c="(?:\ud83c[\udde6-\uddff]){2}",h="[\ud800-\udbff][\udc00-\udfff]",d="["+i+"]",f="(?:"+l+"|"+u+")",p="(?:"+d+"|"+u+")",g="(?:"+a+"(?:d|ll|m|re|s|t|ve))?",m="(?:"+a+"(?:D|LL|M|RE|S|T|VE))?",b="(?:[\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff]|\ud83c[\udffb-\udfff])?",y="[\\ufe0e\\ufe0f]?",v="(?:\\u200d(?:"+["[^"+t+"]",c,h].join("|")+")"+y+b+")*",x="(?:"+["["+r+"]",c,h].join("|")+")"+(y+b+v),w=RegExp([d+"?"+l+"+"+g+"(?="+[o,d,"$"].join("|")+")",p+"+"+m+"(?="+[o,d+f,"$"].join("|")+")",d+"?"+f+"+"+g,d+"+"+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)||[]}},64439:e=>{var t=Object.prototype.toString;e.exports=function(e){return t.call(e)}},65432:(e,t,r)=>{"use strict";r.d(t,{B3:()=>eo,JW:()=>w,me:()=>
5ev,sR:()=>ew});var n=r(55325);function i(e,t,r,n,i,s){return{enabled:e.selectable({base:t,dark:r,solid:n,muted:i,state:"enabled",tone:s}),hovered:e.selectable({base:t,dark:r,solid:n,muted:i,state:"hovered",tone:s}),pressed:e.selectable({base:t,dark:r,solid:n,muted:i,state:"pressed",tone:s}),selected:e.selectable({base:t,dark:r,solid:n,muted:i,state:"selected",tone:s}),disabled:e.selectable({base:t,dark:r,solid:n,muted:i,state:"disabled",tone:s})}}function s(e,t,r,n,i,s){return{default:e.button({base:t,dark:r,solid:n.default,muted:i.default,mode:s}),primary:e.button({base:t,dark:r,solid:n.primary,muted:i.primary,mode:s}),positive:e.button({base:t,dark:r,solid:n.positive,muted:i.positive,mode:s}),caution:e.button({base:t,dark:r,solid:n.caution,muted:i.caution,mode:s}),critical:e.button({base:t,dark:r,solid:n.critical,muted:i.critical,mode:s})}}let a="hsl(0, 0%, 0%)",o="hsl(0, 0%, 100%)",l={default:{lightest:"hsl(0, 0%, 95%)",lighter:"hsl(0, 0%, 70%)",light:"hsl(0, 0%, 65%)",base:"hsl(0, 0%, 50%)",dark:"hsl(0, 0%, 35%)",darker:"hsl(0, 0%, 20%)",darkest:"hsl(0, 0%, 5%)"},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%)"}},u={gray:"hsl(0, 0%, 50%)",red:"hsl(0, 100%, 50%)",orange:"hsl(30, 100%, 50%)",yellow:"hsl(60, 100%, 50%)",green:"hsl(120, 100%, 50%)",cyan:"hsl(180, 100%, 50%)",blue:"hsl(240, 100%, 50%)",purple:"hsl(270, 100%, 50%)",magenta:"hsl(300, 100%, 50%)"},c={transparent:{bg:[l.transparent.darkest,l.transparent.lightest],fg:[l.transparent.lightest,l.transparent.darkest],border:[l.transparent.darker,l.transparent.lighter],focusRing:[l.transparent.base,l.transparent.base]},primary:{bg:[l.primary.darkest,l.primary.lightest],fg:[l.primary.lightest,l.primary.darkest],border:[l.primary.darker,l.primary.lighter],focusRing:[l.primary.base,l.primary.base]},positive:{bg:[l.positive.darkest,l.positive.lightest],fg:[l.positive.lightest,l.positive.darkest],border:[l.positive.darker,l.positive.lighter],focusRing:[l.positive.base,l.positive.base]},caution:{bg:[l.caution.darkest,l.caution.lightest],fg:[l.caution.lightest,l.caution.darkest],border:[l.caution.darker,l.caution.lighter],focusRing:[l.caution.base,l.caution.base]},critical:{bg:[l.critical.darkest,l.critical.lightest],fg:[l.critical.lightest,l.critical.darkest],border:[l.critical.darker,l.critical.lighter],focusRing:[l.critical.base,l.critical.base]}};function h(e,t,r){let n=e.base({dark:t,name:r}),a={default:{enabled:e.solid({base:n,dark:t,tone:"default",name:r,state:"enabled"}),disabled:e.solid({base:n,dark:t,tone:"default",name:r,state:"disabled"}),hovered:e.solid({base:n,dark:t,tone:"default",name:r,state:"hovered"}),pressed:e.solid({base:n,dark:t,tone:"default",name:r,state:"pressed"}),selected:e.solid({base:n,dark:t,tone:"default",name:r,state:"selected"})},transparent:{enabled:e.solid({base:n,dark:t,tone:"transparent",name:r,state:"enabled"}),disabled:e.solid({base:n,dark:t,tone:"transparent",name:r,state:"disabled"}),hovered:e.solid({base:n,dark:t,tone:"transparent",name:r,state:"hovered"}),pressed:e.solid({base:n,dark:t,tone:"transparent",name:r,state:"pressed"}),selected:e.solid({base:n,dark:t,tone:"transparent",name:r,state:"selected"})},primary:{enabled:e.solid({base:n,dark:t,tone:"primary",name:r,state:"enabled"}),disabled:e.solid({base:n,dark:t,tone:"primary",name:r,state:"disabled"}),hovered:e.solid({base:n,dark:t,tone:"primary",name:r,state:"hovered"}),pressed:e.solid({base:n,dark:t,tone:"primary",name:r,state:"pressed"}),selected:e.solid({base:n,dark:t,tone:"primary",name:r,state:"selected"})},positive:{enabled:e.solid({base:n,dark:t,tone:"positive",name:r,state:"enabled"}),disabled:e.solid({base:n,dark:t,tone:"positive",name:r,state:"disabled"}),hovered:e.solid({base:n,dark:t,tone:"positive",name:r,state:"hovered"}),pressed:e.solid({base:n,dark:t,tone:"positive",name:r,state:"pressed"}),selected:e.solid({base:n,dark:t,tone:"positive",name:r,state:"selected"})},caution:{enabled:e.solid({base:n,dark:t,tone:"caution",name:r,state:"enabled"}),disabled:e.solid({base:n,dark:t,tone:"caution",name:r,state:"disabled"}),hovered:e.solid({base:n,dark:t,tone:"caution",name:r,state:"hovered"}),pressed:e.solid({base:n,dark:t,tone:"caution",name:r,state:"pressed"}),selected:e.solid({base:n,dark:t,tone:"caution",name:r,state:"selected"})},critical:{enabled:e.solid({base:n,dark:t,tone:"critical",name:r,state:"enabled"}),disabled:e.solid({base:n,dark:t,tone:"critical",name:r,state:"disabled"}),hovered:e.solid({base:n,dark:t,tone:"critical",name:r,state:"hovered"}),pressed:e.solid({base:n,dark:t,tone:"critical",name:r,state:"pressed"}),selected:e.solid({base:n,dark:t,tone:"critical",name:r,state:"selected"})}},o={default:{enabled:e.muted({base:n,dark:t,tone:"default",name:r,state:"enabled"}),disabled:e.muted({base:n,dark:t,tone:"default",name:r,state:"disabled"}),hovered:e.muted({base:n,dark:t,tone:"default",name:r,state:"hovered"}),pressed:e.muted({base:n,dark:t,tone:"default",name:r,state:"pressed"}),selected:e.muted({base:n,dark:t,tone:"default",name:r,state:"selected"})},transparent:{enabled:e.muted({base:n,dark:t,tone:"transparent",name:r,state:"enabled"}),disabled:e.muted({base:n,dark:t,tone:"transparent",name:r,state:"disabled"}),hovered:e.muted({base:n,dark:t,tone:"transparent",name:r,state:"hovered"}),pressed:e.muted({base:n,dark:t,tone:"transparent",name:r,state:"pressed"}),selected:e.muted({base:n,dark:t,tone:"transparent",name:r,state:"selected"})},primary:{enabled:e.muted({base:n,dark:t,tone:"primary",name:r,state:"enabled"}),disabled:e.muted({base:n,dark:t,tone:"primary",name:r,state:"disabled"}),hovered:e.muted({base:n,dark:t,tone:"primary",name:r,state:"hovered"}),pressed:e.muted({base:n,dark:t,tone:"primary",name:r,state:"pressed"}),selected:e.muted({base:n,dark:t,tone:"primary",name:r,state:"selected"})},positive:{enabled:e.muted({base:n,dark:t,tone:"positive",name:r,state:"enabled"}),disabled:e.muted({base:n,dark:t,tone:"positive",name:r,state:"disabled"}),hovered:e.muted({base:n,dark:t,tone:"positive",name:r,state:"hovered"}),pressed:e.muted({base:n,dark:t,tone:"positive",name:r,state:"pressed"}),selected:e.muted({base:n,dark:t,tone:"positive",name:r,state:"selected"})},caution:{enabled:e.muted({base:n,dark:t,tone:"caution",name:r,state:"enabled"}),disabled:e.muted({base:n,dark:t,tone:"caution",name:r,state:"disabled"}),hovered:e.muted({base:n,dark:t,tone:"caution",name:r,state:"hovered"}),pressed:e.muted({base:n,dark:t,tone:"caution",name:r,state:"pressed"}),selected:e.muted({base:n,dark:t,tone:"caution",name:r,state:"selected"})},critical:{enabled:e.muted({base:n,dark:t,tone:"critical",name:r,state:"enabled"}),disabled:e.muted({base:n,dark:t,tone:"critical",name:r,state:"disabled"}),hovered:e.muted({base:n,dark:t,tone:"critical",name:r,state:"hovered"}),pressed:e.muted({base:n,dark:t,tone:"critical",name:r,state:"pressed"}),selected:e.muted({base:n,dark:t,tone:"critical",name:r,state:"selected"})}};return{base:n,button:{default:s(e,n,t,a,o,"default"),ghost:s(e,n,t,a,o,"ghost"),bleed:s(e,n,t,a,o,"bleed")},card:{enabled:e.card({base:n,dark:t,name:r,state:"enabled",solid:a,muted:o}),disabled:e.card({base:n,dark:t,name:r,state:"disabled",solid:a,muted:o}),hovered:e.card({base:n,dark:t,name:r,state:"hovered",solid:a,muted:o}),pressed:e.card({base:n,dark:t,name:r,state:"pressed",solid:a,muted:o}),selected:e.card({base:n,dark:t,name:r,state:"selected",solid:a,muted:o})},dark:t,input:{default:{enabled:e.input({base:n,dark:t,mode:"default",state:"enabled",solid:a.default,muted:o.default}),disabled:e.input({base:n,dark:t,mode:"default",state:"disabled",solid:a.default,muted:o.default}),hovered:e.input({base:n,dark:t,mode:"default",state:"hovered",solid:a.default,muted:o.default}),readOnly:e.input({base:n,dark:t,mode:"default",state:"readOnly",solid:a.default,muted:o.default})},invalid:{enabled:e.input({base:n,dark:t,mode:"invalid",state:"enabled",solid:a.default,muted:o.default}),disabled:e.input({base:n,dark:t,mode:"invalid",state:"disabled",solid:a.default,muted:o.default}),hovered:e.input({base:n,dark:t,mode:"invalid",state:"hovered",solid:a.default,muted:o.default}),readOnly:e.input({base:n,dark:t,mode:"invalid",state:"readOnly",solid:a.default,muted:o.default})}},selectable:{default:i(e,n,t,a,o,"default"),primary:i(e,n,t,a,o,"primary"),positive:i(e,n,t,a,o,"positive"),caution:i(e,n,t,a,o,"caution"),critical:i(e,n,t,a,o,"critical")},spot:{gray:e.spot({base:n,dark:t,key:"gray"}),blue:e.spot({base:n,dark:t,key:"blue"}),purple:e.spot({base:n,dark:t,key:"purple"}),magenta:e.spot({base:n,dark:t,key:"magenta"}),red:e.spot({base:n,dark:t,key:"red"}),orange:e.spot({base:n,dark:t,key:"orange"}),yellow:e.spot({base:n,dark:t,key:"yellow"}),green:e.spot({base:n,dark:t,key:"green"}),cyan:e.spot({base:n,dark:t,key:"cyan"})},syntax:e.syntax({base:n,dark:t}),solid:a,muted:o}}let d={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"}}}},f={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}]}},p=new WeakMap;function g(e){let t=p.get(e);if(t)return t;let r=b(e,e.card.enabled),n={_blend:e._blend||(e.dark?"screen":"multiply"),_dark:e.dark,accent:r.accent,avatar:r.avatar,backdrop:e.base.shadow.ambient,badge:r.badge,bg:e.base.bg,border:e.base.border,button:{default:m(e,e.button.default),ghost:m(e,e.button.ghost),bleed:m(e,e.button.bleed)},code:r.code,fg:e.base.fg,focusRing:e.base.focusRing,icon:r.muted.fg,input:{default:y(e.input.default),invalid:y(e.input.invalid)},kbd:r.kbd,link:r.link,muted:{...r.muted,bg:e.selectable?.default.enabled.bg2||e.base.bg},selectable:m(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 p.set(e,n),n}function m(e,t){return{default:{enabled:b(e,t.default.enabled),hovered:b(e,t.default.hovered),pressed:b(e,t.default.pressed),selected:b(e,t.default.selected),disabled:b(e,t.default.disabled)},neutral:{enabled:b(e,t.default.enabled),hovered:b(e,t.default.hovered),pressed:b(e,t.default.pressed),selected:b(e,t.default.selected),disabled:b(e,t.default.disabled)},primary:{enabled:b(e,t.primary.enabled),hovered:b(e,t.primary.hovered),pressed:b(e,t.primary.pressed),selected:b(e,t.primary.selected),disabled:b(e,t.primary.disabled)},suggest:{enabled:b(e,t.primary.enabled),hovered:b(e,t.primary.hovered),pressed:b(e,t.primary.pressed),selected:b(e,t.primary.selected),disabled:b(e,t.primary.disabled)},positive:{enabled:b(e,t.positive.enabled),hovered:b(e,t.positive.hovered),pressed:b(e,t.positive.pressed),selected:b(e,t.positive.selected),disabled:b(e,t.positive.disabled)},caution:{enabled:b(e,t.caution.enabled),hovered:b(e,t.caution.hovered),pressed:b(e,t.caution.pressed),selected:b(e,t.caution.selected),disabled:b(e,t.caution.disabled)},critical:{enabled:b(e,t.critical.enabled),hovered:b(e,t.critical.hovered),pressed:b(e,t.critical.pressed),selected:b(e,t.critical.selected),disabled:b(e,t.critical.disabled)}}}function b(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 y(e){return{enabled:v(e.enabled),disabled:v(e.disabled),readOnly:v(e.readOnly),hovered:v(e.hovered)}}function v(e){return{bg:e.bg,border:e.border,fg:e.fg,muted:{bg:e.bg2},placeholder:e.placeholder}}let x=new WeakMap;function w(e){if(e.sanity.v2?._resolved)return e.sanity.v2;let t=x.get(e);if(t)return t;let r={_version:2,_resolved:!0,avatar:{...d.avatar,...e.sanity.avatar},button:{...d.button,...e.sanity.button},card:d.card,color:g(e.sanity.color),container:e.sanity.container,font:e.sanity.fonts,input:{...d.input,...e.sanity.input,checkbox:{...d.input.checkbox,...e.sanity.input.checkbox},radio:{...d.input.radio,...e.sanity.input.radio},switch:{...d.input.switch,...e.sanity.input.switch}},layer:e.sanity.layer??d.layer,media:e.sanity.media,radius:e.sanity.radius,shadow:e.sanity.shadows,space:e.sanity.space,style:e.sanity.styles};return x.set(e,r),r}function S(e){return 2===e._version}let k=new WeakMap,P=new WeakMap;function A(e){let t=P.get(e);if(t)return t;let{avatar:r,button:n,color:i,container:s,font:a,input:o,media:l,radius:u,shadow:c,space:h,style:d}=e;return{_version:0,avatar:r,button:n,container:s,color:{light:{transparent:E(i.light.transparent),default:E(i.light.default),primary:E(i.light.primary),positive:E(i.light.positive),caution:E(i.light.caution),critical:E(i.light.critical)},dark:{transparent:E(i.dark.transparent),default:E(i.dark.default),primary:E(i.dark.primary),positive:E(i.dark.positive),caution:E(i.dark.caution),critical:E(i.dark.critical)}},focusRing:o.text.focusRing,fonts:a,input:o,media:l,radius:u,shadows:c,space:h,styles:d,v2:e}}function E(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:T(e.input.default),invalid:T(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 T(e){return{enabled:M(e.enabled),disabled:M(e.disabled),readOnly:M(e.readOnly),hovered:M(e.hovered)}}function M(e){return{bg:e.bg,bg2:e.muted.bg,border:e.border,fg:e.fg,placeholder:e.placeholder}}let C=["multiply","screen"],R=["transparent","default","neutral","primary","suggest","positive","caution","critical"],j=["default","neutral","primary","suggest","positive","caution","critical"],O=["enabled","hovered","pressed","selected","disabled"],I=["default","ghost","bleed"],V=["default","invalid"],D=["enabled","hovered","readOnly","disabled"];function L(e){return n.V0.includes(e)}function $(e){return/^\d+%$/.test(e)}function _(e){var t;let r=e.split("/"),i=r.shift()||"",[s,a]=i.split(" ");if(L(s)){let e=r.shift()||"";return $(a)?{type:"color",tint:s,mix:Number(a.slice(0,-1))/100}:F(e)?{type:"color",tint:s,opacity:Number(e)}:{type:"color",tint:s}}if("black"===(t=s)||"white"===t){let e=r.shift()||"";return $(a)?{type:"color",key:s,mix:Number(a.slice(0,-1))/100}:F(e)?{type:"color",key:s,opacity:Number(e)}:{type:"color",key:s}}if(n.Cv.includes(s)){let[e,t]=(i=r.shift()||"").split(" ");if(L(e)){let n=r.shift()||"";return $(t)?{type:"color",hue:s,tint:e,mix:Number(t.slice(0,-1))/100}:F(n)?{type:"color",hue:s,tint:e,opacity:Number(n)}:{type:"color",hue:s,tint:e}}return{type:"hue",value:s}}if(C.includes(s))return{type:"blendMode",value:s}}[...n.Cv],[...R],[...j],[...O],[...V],[...D];function F(e){return"0"===e||/^0\.[0-9]+$/.test(e)||"1"===e}let z=["500","500"];function B(e,t=z){var r;let n,{hue:i,scheme:s}=e,a=_(t[+("light"!==s)]);if(!a||"color"!==a.type)throw Error(`Invalid color token: ${t[0]}`);return r={...a,hue:a.hue||i},n="",n="black"===r.key||"white"===r.key?r.key:`${r.hue}/${r.tint}`,void 0!==r.mix?`${n} ${100*r.mix}%`:(void 0!==r.opacity&&(n+=`/${r.opacity}`),n)}let N={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","950"],fg:["800","200"],icon:["800 70%","300 70%"]},pressed:{bg:["100","900"],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 U(e){return!!(e&&"object"==typeof e&&!Array.isArray(e))}function H(...e){let t=e.filter(Boolean);return 0===t.length?{}:t.reduce(W,{})}function W(e,t){for(let r of Object.keys(t)){let n=e[r],i=t[r];U(n)&&U(i)?e[r]=H(n,i):e[r]=i}return e}function G(e,t){let{scheme:r}=e,n={};for(let e of R)n[e]=function(e,t){let{scheme:r,tone:n}=e,i=t?.color?.base?.[n],s={hue:i?._hue||"gray",scheme:r};return{_blend:(i?._blend||["multiply","screen"])[+("light"!==r)],_dark:"dark"===r,accent:{fg:B(s,i?.accent?.fg)},avatar:Y({scheme:r},i),backdrop:B(s,i?.backdrop),badge:q(i?.badge,{scheme:r},t),bg:B(s,i?.bg),border:B(s,i?.border),button:function(e,t){let{scheme:r,tone:n}=e,i={};for(let e of I)i[e]=function(e,t){let{cardTone:r,mode:n,scheme:i}=e,s={};for(let e of j)s[e]=function(e,t){let{cardTone:r,mode:n,scheme:i,tone:s}=e,a={};for(let e of O)a[e]=function(e,t){let{cardTone:r,mode:n,tone:i,scheme:s,state:a}=e,o=t?.color?.base?.[r],l=t?.color?.button?.[n]?.[i]?.[a],u=l?._hue||o?._hue||"gray",c=l?._blend||["screen","multiply"],h={hue:u,scheme:s};return{_blend:c[+("light"!==s)],accent:{fg:B(h,l?.accent?.fg)},avatar:Y({scheme:s},l),badge:q(l?.badge,{scheme:s},t),bg:B(h,l?.bg),border:B(h,l?.border),code:{bg:B(h,l?.code?.bg),fg:B(h,l?.code?.fg)},fg:B(h,l?.fg),icon:B(h,l?.icon),muted:{bg:B(h,l?.muted?.bg),fg:B(h,l?.muted?.fg)},kbd:{bg:B(h,l?.kbd?.bg),fg:B(h,l?.kbd?.fg),border:B(h,l?.kbd?.border)},link:{fg:B(h,l?.link?.fg)},skeleton:{from:B(h,l?.skeleton?.from),to:B(h,l?.skeleton?.to)}}}({cardTone:r,mode:n,tone:s,scheme:i,state:e},t);return a}({cardTone:r,mode:n,scheme:i,tone:e},t);return s}({cardTone:n,scheme:r,mode:e},t);return i}({scheme:r,tone:n},t),code:{bg:B(s,i?.code?.bg),fg:B(s,i?.code?.fg)},fg:B(s,i?.fg),focusRing:B(s,i?.focusRing),icon:B(s,i?.icon),input:function(e,t){let{scheme:r,tone:n}=e;return{default:K({mode:"default",scheme:r,tone:n},t),invalid:K({mode:"invalid",scheme:r,tone:n},t)}}({scheme:r,tone:n},t),kbd:{bg:B(s,i?.kbd?.bg),fg:B(s,i?.kbd?.fg),border:B(s,i?.kbd?.border)},link:{fg:B(s,i?.link?.fg)},muted:{bg:B(s,i?.muted?.bg),fg:B(s,i?.muted?.fg)},selectable:function(e,t){let{scheme:r,tone:n}=e,i={};for(let e of j)i[e]=function(e,t){let{cardTone:r,scheme:n,tone:i}=e,s={};for(let e of O)s[e]=function(e,t){let{cardTone:r,scheme:n,state:i,tone:s}=e,a=t?.color?.base?.[r],o=t?.color?.selectable?.[s]?.[i],l=o?._hue||a?._hue||"gray",u=o?._blend||["screen","multiply"],c={hue:l,scheme:n};return{_blend:u[+("light"!==n)],accent:{fg:B(c,o?.accent?.fg)},avatar:Y({scheme:n},o),badge:q(o?.badge,{scheme:n},t),bg:B(c,o?.bg),border:B(c,o?.border),code:{bg:B(c,o?.code?.bg),fg:B(c,o?.code?.fg)},fg:B(c,o?.fg),icon:B(c,o?.icon),muted:{bg:B(c,o?.muted?.bg),fg:B(c,o?.muted?.fg)},kbd:{bg:B(c,o?.kbd?.bg),fg:B(c,o?.kbd?.fg),border:B(c,o?.kbd?.border)},link:{fg:B(c,o?.link?.fg)},skeleton:{from:B(c,o?.skeleton?.from),to:B(c,o?.skeleton?.to)}}}({cardTone:r,tone:i,scheme:n,state:e},t);return s}({cardTone:n,scheme:r,tone:e},t);return i}({scheme:r,tone:n},t),shadow:function(e,t){let{scheme:r,tone:n}=e,i=t?.color?.base?.[n],s={hue:i?._hue||"gray",scheme:r};return{outline:B(s,i?.shadow?.outline),umbra:B(s,i?.shadow?.umbra),penumbra:B(s,i?.shadow?.penumbra),ambient:B(s,i?.shadow?.ambient)}}
5({scheme:r,tone:n},t),skeleton:{from:B(s,i?.skeleton?.from),to:B(s,i?.skeleton?.to)},syntax:function(e,t){let{scheme:r}=e,n=t?.color?.syntax,i={hue:"gray",scheme:r};return{atrule:B(i,n?.atrule),attrName:B(i,n?.attrName),attrValue:B(i,n?.attrValue),attribute:B(i,n?.attribute),boolean:B(i,n?.boolean),builtin:B(i,n?.builtin),cdata:B(i,n?.cdata),char:B(i,n?.char),class:B(i,n?.class),className:B(i,n?.className),comment:B(i,n?.comment),constant:B(i,n?.constant),deleted:B(i,n?.deleted),doctype:B(i,n?.doctype),entity:B(i,n?.entity),function:B(i,n?.function),hexcode:B(i,n?.hexcode),id:B(i,n?.id),important:B(i,n?.important),inserted:B(i,n?.inserted),keyword:B(i,n?.keyword),number:B(i,n?.number),operator:B(i,n?.operator),prolog:B(i,n?.prolog),property:B(i,n?.property),pseudoClass:B(i,n?.pseudoClass),pseudoElement:B(i,n?.pseudoElement),punctuation:B(i,n?.punctuation),regex:B(i,n?.regex),selector:B(i,n?.selector),string:B(i,n?.string),symbol:B(i,n?.symbol),tag:B(i,n?.tag),unit:B(i,n?.unit),url:B(i,n?.url),variable:B(i,n?.variable)}}({scheme:r},t)}}({scheme:r,tone:e},t);return n}function Y(e,t){let{scheme:r}=e;return{gray:X({color:"gray",scheme:r},t),blue:X({color:"blue",scheme:r},t),purple:X({color:"purple",scheme:r},t),magenta:X({color:"magenta",scheme:r},t),red:X({color:"red",scheme:r},t),orange:X({color:"orange",scheme:r},t),yellow:X({color:"yellow",scheme:r},t),green:X({color:"green",scheme:r},t),cyan:X({color:"cyan",scheme:r},t)}}function X(e,t){let{color:r,scheme:n}=e,i=t?.avatar?.[r],s={hue:i?._hue||"gray",scheme:n};return{_blend:(i?._blend||["screen","multiply"])[+("light"!==n)],bg:B(s,i?.bg),fg:B(s,i?.fg)}}function q(e,t,r){let{scheme:n}=t,i={};for(let t of j)i[t]=function(e,t,r){let{scheme:n,tone:i}=t,s=e?.[i],a={hue:s?._hue||r?.color?.base?.[i]?._hue||"gray",scheme:n};return{bg:B(a,s?.bg),fg:B(a,s?.fg),dot:B(a,s?.dot),icon:B(a,s?.icon)}}(e,{scheme:n,tone:t},r);return i}function K(e,t){let{mode:r,scheme:n,tone:i}=e;return{enabled:Z({mode:r,scheme:n,state:"enabled",cardTone:i},t),hovered:Z({mode:r,scheme:n,state:"hovered",cardTone:i},t),readOnly:Z({mode:r,scheme:n,state:"readOnly",cardTone:i},t),disabled:Z({mode:r,scheme:n,state:"disabled",cardTone:i},t)}}function Z(e,t){let{cardTone:r,mode:n,scheme:i,state:s}=e,a=t?.color?.base?.[r],o=t?.color?.input?.[n]?.[s],l=o?._hue||a?._hue||"gray",u=o?._blend||["screen","multiply"],c={hue:l,scheme:i};return{_blend:u[+("light"!==i)],bg:B(c,o?.bg),border:B(c,o?.border),fg:B(c,o?.fg),muted:{bg:B(c,o?.muted?.bg)},placeholder:B(c,o?.placeholder)}}let J=n.yW;function Q(e,t=0,r=1){return Math.min(r,Math.max(t,e))}function ee(e,t,r,n,i){var s;return r*(1-(s=Q((i-e)/(t-e))))+n*s}function et(e){return Math.round(e)}function er(e){if(4===e.length){let t=e.slice(1,2),r=e.slice(2,3),n=e.slice(3,4);return{r:parseInt(t+t,16),g:parseInt(r+r,16),b:parseInt(n+n,16)}}return{r:parseInt(e.slice(1,3),16),g:parseInt(e.slice(3,5),16),b:parseInt(e.slice(5,7),16)}}function en(e){let t=et(Q(Math.round(e.r),0,255)),r=et(Q(Math.round(e.g),0,255)),n=et(Q(Math.round(e.b),0,255));return"a"in e?`rgba(${t},${r},${n},${e.a})`:"#"+(0x1000000+(t<<16)+(r<<8)+n).toString(16).slice(1)}let ei=/hsl\(\s*(\d+)\s*,\s*((\d+(?:\.\d+)?)%)\s*,\s*((\d+(?:\.\d+)?)%)\s*\)/i;function es(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 er(e);if(e.startsWith("hsl("))return function(e){let t=e.s/100,r=e.l/100,n=(1-Math.abs(2*r-1))*t,i=n*(1-Math.abs(e.h/60%2-1)),s=r-n/2,a=0,o=0,l=0;return 0<=e.h&&e.h<60?(a=n,o=i,l=0):60<=e.h&&e.h<120?(a=i,o=n,l=0):120<=e.h&&e.h<180?(a=0,o=n,l=i):180<=e.h&&e.h<240?(a=0,o=i,l=n):240<=e.h&&e.h<300?(a=i,o=0,l=n):300<=e.h&&e.h<360&&(a=n,o=0,l=i),{r:Math.round((a+s)*255),g:Math.round((o+s)*255),b:Math.round((l+s)*255)}}(function(e){let t=ei.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 ea(e){return e<=.04045?e/12.92:((e+.055)/1.055)**2.4}function eo(e,t){let r=es(e);return`rgba(${r.r},${r.g},${r.b},${t})`}let el=[0,255];function eu(e,t){let{bg:r,blendMode:n,colorPalette:i}=t;if("white"===r)throw Error("Cannot blend with white background");let s=_(e);if(!s||"color"!==s.type)throw Error(`Invalid color token value: ${e}`);let a="";if("black"===s.key&&(a=ec(i.black)),"white"===s.key&&(a=ec(i.white)),s.hue&&s.tint&&(a=ec(i[s.hue][s.tint])),!a)throw Error(`Invalid color token value: ${e}`);let o=a,l={blendMode:n,bg:r,black:ec(i.black),white:ec(i.white)};try{if(a=function(e,t){var r,n,i,s,a,o;let{blendMode:l}=t,u=es(e),c=es(t.black),h=es(t.white),d=t.bg?es(t.bg):"multiply"===l?h:c,f={r:[c.r,h.r],g:[c.g,h.g],b:[c.b,h.b]},p={r:Q(ee(...f.r,...el,d.r),...el),g:Q(ee(...f.g,...el,d.g),...el),b:Q(ee(...f.b,...el,d.b),...el)},g={r:Q(ee(...f.r,...el,u.r),...el),g:Q(ee(...f.g,...el,u.g),...el),b:Q(ee(...f.b,...el,u.b),...el)},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*((r=p.r/255)+(n=g.r/255)-r*n),g:255*((i=p.g/255)+(s=g.g/255)-i*s),b:255*((a=p.b/255)+(o=g.b/255)-a*o)};return en({r:Q(ee(...el,...f.r,m.r),...f.r),g:Q(ee(...el,...f.g,m.g),...f.g),b:Q(ee(...el,...f.b,m.b),...f.b)})}(a,l),r&&void 0!==s.mix){var u,c,h,d,f,p,g;let e=er(r),t=er(a);a=en((u=s.mix,{r:(c=e.r,h=t.r,c+(h-c)*u),g:(d=e.g,f=t.g,d+(f-d)*u),b:(p=e.b,g=t.b,p+(g-p)*u)}))}}catch(e){throw console.warn("could not blend",a,l),e}
5return"#aN"===a&&(console.warn(`invalid color token value: ${e}`),a=o),void 0!==s.opacity&&(a=eo(a,s.opacity)),a}function ec(e){return"string"==typeof e?e:e.hex}function eh(e,t){let r=Object.entries(t),[,n]=r.find(([e])=>"transparent"===e),[,i]=r.find(([e])=>"default"===e),s=ed(n,{colorPalette:e}),a=ed(i,{colorPalette:e}),o=a.bg;if("white"===o)throw Error("Cannot blend with white background");return Object.fromEntries([["transparent",s],["default",a],...r.filter(([e])=>"default"!==e&&"transparent"!==e).map(([t,r])=>[t,ed(r,{bg:o,colorPalette:e})])])}function ed(e,t){var r,n,i,s;let{colorPalette:a,bg:o}=t,l=e._blend||"multiply",u=eu(e.bg,{colorPalette:a,bg:o,blendMode:l}),c={colorPalette:a,bg:u,blendMode:l},h=(r=e.button,n={baseBg:u,blendMode:l,colorPalette:a},{default:eg(r.default,n),ghost:eg(r.ghost,n),bleed:eg(r.bleed,n)}),d=function(e,t){let r={};for(let s of j){var n,i;r[s]=(n=e[s],i=t,{enabled:em(n.enabled,i),hovered:em(n.hovered,i),pressed:em(n.pressed,i),selected:em(n.selected,i),disabled:em(n.disabled,i)})}return r}(e.selectable,{colorPalette:a,baseBg:u,blendMode:l}),f={outline:eu(e.shadow.outline,c),umbra:eu(e.shadow.umbra,{...c,bg:void 0,colorPalette:{...a,black:"#000000"}}),penumbra:eu(e.shadow.penumbra,{...c,bg:void 0,colorPalette:{...a,black:"#000000"}}),ambient:eu(e.shadow.ambient,{...c,bg:void 0,colorPalette:{...a,black:"#000000"}})};return{_blend:l,_dark:e._dark,accent:{fg:eu(e.accent.fg,c)},avatar:ef(e.avatar,{baseBg:u,colorPalette:a,blendMode:l}),backdrop:eu(e.backdrop,c),badge:ep(e.badge,{baseBg:u,colorPalette:a,blendMode:l}),bg:u,border:eu(e.border,c),button:h,code:{bg:eu(e.code.bg,c),fg:eu(e.code.fg,c)},fg:eu(e.fg,c),focusRing:eu(e.focusRing,c),icon:eu(e.icon,c),input:(i=e.input,s={baseBg:u,colorPalette:a,blendMode:l},{default:eb(i.default,s),invalid:eb(i.invalid,s)}),kbd:function(e,t){let{baseBg:r,blendMode:n,colorPalette:i}=t,s=eu(e.bg,{bg:r,blendMode:n,colorPalette:i}),a={bg:s,blendMode:n,colorPalette:i};return{bg:s,fg:eu(e.fg,a),border:eu(e.border,a)}}(e.kbd,{baseBg:u,colorPalette:a,blendMode:l}),link:{fg:eu(e.link.fg,c)},muted:{bg:eu(e.muted.bg,c),fg:eu(e.muted.fg,c)},shadow:f,skeleton:{from:eu(e.skeleton.from,c),to:eu(e.skeleton.to,c)},syntax:function(e,t){let{colorPalette:r,baseBg:n,blendMode:i}=t,s={colorPalette:r,bg:n,blendMode:i};return{atrule:eu(e.atrule,s),attrName:eu(e.attrName,s),attrValue:eu(e.attrValue,s),attribute:eu(e.attribute,s),boolean:eu(e.boolean,s),builtin:eu(e.builtin,s),cdata:eu(e.cdata,s),char:eu(e.char,s),class:eu(e.class,s),className:eu(e.className,s),comment:eu(e.comment,s),constant:eu(e.constant,s),deleted:eu(e.deleted,s),doctype:eu(e.doctype,s),entity:eu(e.entity,s),function:eu(e.function,s),hexcode:eu(e.hexcode,s),id:eu(e.id,s),important:eu(e.important,s),inserted:eu(e.inserted,s),keyword:eu(e.keyword,s),number:eu(e.number,s),operator:eu(e.operator,s),prolog:eu(e.prolog,s),property:eu(e.property,s),pseudoClass:eu(e.pseudoClass,s),pseudoElement:eu(e.pseudoElement,s),punctuation:eu(e.punctuation,s),regex:eu(e.regex,s),selector:eu(e.selector,s),string:eu(e.string,s),symbol:eu(e.symbol,s),tag:eu(e.tag,s),unit:eu(e.unit,s),url:eu(e.url,s),variable:eu(e.variable,s)}}(e.syntax,{baseBg:u,colorPalette:a,blendMode:l}),selectable:d}}function ef(e,t){let r={};for(let i of n.Cv)r[i]=function(e,t){let{baseBg:r,blendMode:n,colorPalette:i}=t,s=e._blend||"multiply",a=eu(e.bg,{bg:r,blendMode:n,colorPalette:i});return{_blend:s,bg:a,fg:eu(e.fg,{bg:a,blendMode:s,colorPalette:i})}}(e[i],t);return r}function ep(e,t){let r={};for(let n of j)r[n]=function(e,t){let{baseBg:r,blendMode:n,colorPalette:i}=t,s=eu(e.bg,{bg:r,blendMode:n,colorPalette:i}),a={bg:s,blendMode:n,colorPalette:i};return{bg:s,dot:eu(e.dot,a),fg:eu(e.fg,a),icon:eu(e.icon,a)}}(e[n],t);return r}function eg(e,t){let r={};for(let s of j){var n,i;r[s]=(n=e[s],i=t,{enabled:em(n.enabled,i),hovered:em(n.hovered,i),pressed:em(n.pressed,i),selected:em(n.selected,i),disabled:em(n.disabled,i)})}return r}function em(e,t){let{baseBg:r,blendMode:n,colorPalette:i}=t,s=e._blend||"multiply",a=eu(e.bg,{bg:r,blendMode:n,colorPalette:i}),o={bg:a,blendMode:s,colorPalette:i};return{_blend:s,accent:{fg:eu(e.accent.fg,o)}
5,avatar:ef(e.avatar,{baseBg:a,colorPalette:i,blendMode:s}),badge:ep(e.badge,{baseBg:a,colorPalette:i,blendMode:s}),bg:a,border:eu(e.border,o),code:{bg:eu(e.code.bg,o),fg:eu(e.code.fg,o)},fg:eu(e.fg,o),icon:eu(e.icon,o),link:{fg:eu(e.link.fg,o)},muted:{bg:eu(e.muted.bg,o),fg:eu(e.muted.fg,o)},kbd:{bg:eu(e.kbd.bg,o),fg:eu(e.kbd.fg,o),border:eu(e.kbd.border,o)},skeleton:{from:eu(e.skeleton?.from,o),to:eu(e.skeleton?.to,o)}}}function eb(e,t){return{enabled:ey(e.enabled,t),hovered:ey(e.hovered,t),readOnly:ey(e.readOnly,t),disabled:ey(e.disabled,t)}}function ey(e,t){let{baseBg:r,blendMode:n,colorPalette:i}=t,s=e._blend||"multiply",a=eu(e.bg,{colorPalette:i,bg:r,blendMode:n}),o={colorPalette:i,bg:a,blendMode:s};return{_blend:s,bg:a,border:eu(e.border,o),fg:eu(e.fg,o),muted:{bg:eu(e.muted.bg,o)},placeholder:eu(e.placeholder,o)}}function ev(e){let t=function(e){let t={color:function(e){let t=H(N,e);return{base:function(e){let t={};for(let r of R)t[r]=function(e,t){let r=H(e?.base?.["*"],e?.base?.[t]),i=r._hue||e?.base?.[t]?._hue||"gray";return{...r,_hue:i,avatar:n.Cv.reduce((e,t)=>({...e,[t]:H({_hue:t},r.avatar?.["*"],r.avatar?.[t])}),{}),badge:j.reduce((t,n)=>({...t,[n]:{_hue:e?.base?.[n]?._hue||i,...r.badge?.["*"],...r.badge?.[n]}}),{})}}(e,r);return t}(t),button:function(e){let t={};for(let r of I)t[r]=function(e,t){let r={};for(let i of j)r[i]=function(e,t,r){let i={};for(let s of O)i[s]=function(e,t,r,i){let s=H(e?.button?.[r]?.["*"]?.["*"],e?.button?.[r]?.[t]?.["*"],e?.button?.[r]?.["*"]?.[i],e?.button?.[r]?.[t]?.[i]),a=s._hue||e?.base?.[t]?._hue;return{...s,_hue:a,avatar:n.Cv.reduce((e,t)=>({...e,[t]:H({_hue:t},s.avatar?.["*"],s.avatar?.[t])}),{}),badge:j.reduce((t,r)=>({...t,[r]:{_hue:e?.base?.[r]?._hue||a,...s.badge?.["*"],...s.badge?.[r]}}),{})}}(e,r,t,s);return i}(e,t,i);return r}(e,r);return t}(t),input:function(e){let t={};for(let r of V)t[r]=function(e,t){let r={};for(let n of D)r[n]=function(e,t,r){let n=H(e?.input?.["*"]?.["*"],e?.
5input?.[t]?.["*"],e?.input?.["*"]?.[r],e?.input?.[t]?.[r]),i=n._hue||e?.input?.[t]?._hue;return{...n,_hue:i}}(e,t,n);return r}(e,r);return t}(t),selectable:function(e){let t={};for(let r of j)t[r]=function(e,t){let r={_hue:e?.selectable?.[t]?._hue||e?.base?.[t]?._hue};for(let i of O)r[i]=function(e,t,r){let i=H(e?.selectable?.["*"]?.["*"],e?.selectable?.[t]?.["*"],e?.selectable?.["*"]?.[r],e?.selectable?.[t]?.[r]),s=i._hue||e?.base?.[t]?._hue;return{...i,_hue:s,avatar:n.Cv.reduce((e,t)=>({...e,[t]:H({_hue:t},i.avatar?.["*"],i.avatar?.[t])}),{}),badge:j.reduce((t,r)=>({...t,[r]:{_hue:e?.base?.[r]?._hue||s,...i.badge?.["*"],...i.badge?.[r]}}),{})}}(e,t,i);return r}(e,r);return t}(t),syntax:t.syntax}}(e?.color)};return{light:G({scheme:"light"},t),dark:G({scheme:"dark"},t)}}(e);return A({_version:2,avatar:e?.avatar??d.avatar,button:e?.button??d.button,card:e?.card??d.card,color:function(e,t){let r=t?.palette??J;return{light:eh(r,e.light),dark:eh(r,e.dark)}}(t,e),container:e?.container??d.container,font:e?.font??f,input:e?.input??d.input,layer:e?.layer??d.layer,media:e?.media??d.media,radius:e?.radius??d.radius,shadow:e?.shadow??d.shadow,space:e?.space??d.space,style:e?.style??d.style})}let ex=new Map;function ew(e,t,r){var n;let i=function(e,t,r){let n=ex.get(t);if(!n)return;let i=n.get(r);if(i)return i.get(e)}(e,t,r);if(i)return i;let s=S(e)?A(e):e,a=S(e)?e:function(e){if(e.v2)return e.v2;let t=k.get(e);if(t)return t;let{avatar:r,button:n,color:i,container:s,fonts:a,input:o,layer:l,media:u,radius:c,shadows:h,space:f,styles:p}=e,m={_version:2,avatar:{...d.avatar,...r},button:{...d.button,...n},card:d.card,color:{light:{transparent:g(i.light.transparent),default:g(i.light.default),neutral:g(i.light.transparent),primary:g(i.light.primary),suggest:g(i.light.primary),positive:g(i.light.positive),caution:g(i.light.caution),critical:g(i.light.critical)},dark:{transparent:g(i.dark.transparent),default:g(i.dark.default),neutral:g(i.dark.transparent),primary:g(i.dark.primary),suggest:g(i.dark.primary),positive:g(i.dark.positive),caution:g(i.dark.caution),critical:g(i.dark.critical)}},container:s,font:a,input:{...d.input,...o,checkbox:{...d.input.checkbox,...o.checkbox},radio:{...d.input.radio,...o.radio},switch:{...d.input.switch,...o.switch}},layer:l??d.layer,media:u,radius:c,shadow:h,space:f,style:p};return k.set(e,m),m}(e),o=s.color[t]||s.color.light,l=o[r]||o.default,u=s.layer||d.layer,c=a.color[t]||a.color.light,h="neutral"in(n=c[r]||c.default).badge?n:{...n,badge:{...n.badge,neutral:n.badge.default,suggest:n.badge.primary},button:{bleed:{...n.button.bleed,neutral:n.button.bleed.default,suggest:n.button.bleed.primary},default:{...n.button.default,neutral:n.button.default.default,suggest:n.button.default.primary},ghost:{...n.button.ghost,neutral:n.button.ghost.default,suggest:n.button.ghost.primary}},selectable:{...n.selectable,neutral:n.selectable.default,suggest:n.selectable.primary}},f=a.layer||d.layer,p={sanity:{...s,color:l,layer:u,v2:{...a,_resolved:!0,color:h,layer:f}}};return function(e,t,r,n){ex.has(t)||ex.set(t,new Map);let i=ex.get(t);i.has(r)||i.set(r,new WeakMap),i.get(r).set(e,n)}(e,t,r,p),p}},65531:e=>{var t=RegExp("[\\u200d\ud800-\udfff\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff\\ufe0e\\ufe0f]");e.exports=function(e){return t.test(e)}},68972:(e,t,r)=>{"use strict";r.d(t,{B:()=>n});let n="undefined"!=typeof window},70771:(e,t,r)=>{var n=r(98233),i=r(48611);e.exports=function(e){return"symbol"==typeof e||i(e)&&"[object Symbol]"==n(e)}},75145:(e,t,r)=>{var n=r(50851),i=r(65531),s=r(17855);e.exports=function(e){return i(e)?s(e):n(e)}},78048:(e,t,r)=>{"use strict";r.d(t,{A:()=>c});let n=e=>"object"==typeof e&&null!=e&&1===e.nodeType,i=(e,t)=>(!t||"hidden"!==e)&&"visible"!==e&&"clip"!==e,s=(e,t)=>{if(e.clientHeight<e.scrollHeight||e.clientWidth<e.scrollWidth){let r=getComputedStyle(e,null);return i(r.overflowY,t)||i(r.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},a=(e,t,r,n,i,s,a,o)=>s<e&&a>t||s>e&&a<t?0:s<=e&&o<=r||a>=t&&o>=r?s-e-n:a>t&&o<r||s<e&&o>r?a-t+i:0,o=e=>{let t=e.parentElement;return null==t?e.getRootNode().host||null:t},l=(e,t)=>
5{var r,i,l,u;if("undefined"==typeof document)return[];let{scrollMode:c,block:h,inline:d,boundary:f,skipOverflowHiddenElements:p}=t,g="function"==typeof f?f:e=>e!==f;if(!n(e))throw TypeError("Invalid target");let m=document.scrollingElement||document.documentElement,b=[],y=e;for(;n(y)&&g(y);){if((y=o(y))===m){b.push(y);break}null!=y&&y===document.body&&s(y)&&!s(document.documentElement)||null!=y&&s(y,p)&&b.push(y)}let v=null!=(i=null==(r=window.visualViewport)?void 0:r.width)?i:innerWidth,x=null!=(u=null==(l=window.visualViewport)?void 0:l.height)?u:innerHeight,{scrollX:w,scrollY:S}=window,{height:k,width:P,top:A,right:E,bottom:T,left:M}=e.getBoundingClientRect(),{top:C,right:R,bottom:j,left:O}=(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),I="start"===h||"nearest"===h?A-C:"end"===h?T+j:A+k/2-C+j,V="center"===d?M+P/2-O+R:"end"===d?E+R:M-O,D=[];for(let e=0;e<b.length;e++){let t=b[e],{height:r,width:n,top:i,right:o,bottom:l,left:u}=t.getBoundingClientRect();if("if-needed"===c&&A>=0&&M>=0&&T<=x&&E<=v&&(t===m&&!s(t)||A>=i&&T<=l&&M>=u&&E<=o))break;let f=getComputedStyle(t),p=parseInt(f.borderLeftWidth,10),g=parseInt(f.borderTopWidth,10),y=parseInt(f.borderRightWidth,10),C=parseInt(f.borderBottomWidth,10),R=0,j=0,O="offsetWidth"in t?t.offsetWidth-t.clientWidth-p-y:0,L="offsetHeight"in t?t.offsetHeight-t.clientHeight-g-C:0,$="offsetWidth"in t?0===t.offsetWidth?0:n/t.offsetWidth:0,_="offsetHeight"in t?0===t.offsetHeight?0:r/t.offsetHeight:0;if(m===t)R="start"===h?I:"end"===h?I-x:"nearest"===h?a(S,S+x,x,g,C,S+I,S+I+k,k):I-x/2,j="start"===d?V:"center"===d?V-v/2:"end"===d?V-v:a(w,w+v,v,p,y,w+V,w+V+P,P),R=Math.max(0,R+S),j=Math.max(0,j+w);else{R="start"===h?I-i-g:"end"===h?I-l+C+L:"nearest"===h?a(i,l,r,g,C+L,I,I+k,k):I-(i+r/2)+L/2,j="start"===d?V-u-p:"center"===d?V-(u+n/2)+O/2:"end"===d?V-o+y+O:a(u,o,n,p,y+O,V,V+P,P);let{scrollLeft:e,scrollTop:s}=t;R=0===_?0:Math.max(0,Math.min(s+R/_,t.scrollHeight-r/_+L)),j=0===$?0:Math.max(0,Math.min(e+j/$,t.scrollWidth-n/$+O)),I+=s-R,V+=e-j}D.push({el:t,top:R,left:j})}return D},u=e=>!1===e?{block:"end",inline:"nearest"}:(e=>e===Object(e)&&0!==Object.keys(e).length)(e)?e:{block:"start",inline:"nearest"};function c(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 r=(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 n="boolean"==typeof t||null==t?void 0:t.behavior;for(let{el:i,top:s,left:a}of l(e,u(t))){let e=s-r.top+r.bottom,t=a-r.left+r.right;i.scroll({top:e,left:t,behavior:n})}}},80845:(e,t,r)=>{"use strict";r.d(t,{t:()=>n});let n=(0,r(33670).createContext)(null)},82500:(e,t,r)=>{var n=r(7985),i="object"==typeof self&&self&&self.Object===Object&&self;e.exports=n||i||Function("return this")()},82885:(e,t,r)=>{"use strict";r.d(t,{M:()=>i});var n=r(33670);function i(e){let t=(0,n.useRef)(null);return null===t.current&&(t.current=e()),t.current}},84342:(e,t,r)=>{e.exports=r(48505)({À:"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"})},85855:(e,t,r)=>{var n=r(16613);e.exports=function(e){return null==e?"":n(e)}},86413:(e,t,r)=>{"use strict";let n;function i(e,t){-1===e.indexOf(t)&&e.push(t)}function s(e,t){let r=e.indexOf(t);r>-1&&e.splice(r,1)}r.d(t,{P:()=>sI});let a=()=>{},o=()=>{},l={skipAnimations:!1,useManualTiming:!1};function u(e){let t;return()=>(void 0===t&&(t=e()),t)}let c=e=>e,h=(e,t,r)=>{let n=t-e;return 0===n?1:(r-e)/n};class d{constructor(){this.subscriptions=[]}add(e){return i(this.subscriptions,e),()=>s(this.subscriptions,e)}notify(e,t,r){let n=this.subscriptions.length;if(n)if(1===n)this.subscriptions[0](e,t,r);else for(let i=0;i<n;i++){let n=this.subscriptions[i];n&&n(e,t,r)}}getSize(){return this.subscriptions.length}clear(){this.subscriptions.length=0}}let f=e=>1e3*e,p=e=>e/1e3;function g(e){return null!==e&&"object"==typeof e&&"function"==typeof e.start}function m(e){let t=[{},{}];
5return e?.values.forEach((e,r)=>{t[0][r]=e.get(),t[1][r]=e.getVelocity()}),t}function b(e,t,r,n){if("function"==typeof t){let[i,s]=m(n);t=t(void 0!==r?r:e.custom,i,s)}if("string"==typeof t&&(t=e.variants&&e.variants[t]),"function"==typeof t){let[i,s]=m(n);t=t(void 0!==r?r:e.custom,i,s)}return t}function y(e,t,r){let n=e.getProps();return b(n,t,void 0!==r?r:n.custom,e)}let v=u(()=>void 0!==window.ScrollTimeline);class x{constructor(e){this.stop=()=>this.runAll("stop"),this.animations=e.filter(Boolean)}get finished(){return Promise.all(this.animations.map(e=>e.finished))}getAll(e){return this.animations[0][e]}setAll(e,t){for(let r=0;r<this.animations.length;r++)this.animations[r][e]=t}attachTimeline(e,t){let r=this.animations.map(r=>v()&&r.attachTimeline?r.attachTimeline(e):"function"==typeof t?t(r):void 0);return()=>{r.forEach((e,t)=>{e&&e(),this.animations[t].stop()})}}get time(){return this.getAll("time")}set time(e){this.setAll("time",e)}get speed(){return this.getAll("speed")}set speed(e){this.setAll("speed",e)}get startTime(){return this.getAll("startTime")}get duration(){let e=0;for(let t=0;t<this.animations.length;t++)e=Math.max(e,this.animations[t].duration);return e}runAll(e){this.animations.forEach(t=>t[e]())}flatten(){this.runAll("flatten")}play(){this.runAll("play")}pause(){this.runAll("pause")}cancel(){this.runAll("cancel")}complete(){this.runAll("complete")}}class w extends x{then(e,t){return this.finished.finally(e).then(()=>{})}}let S={layout:0,mainThread:0,waapi:0},k={value:null,addProjectionMetrics:null},P=e=>Array.isArray(e)&&"number"==typeof e[0],A={},E=function(e,t){let r=u(e);return()=>A[t]??r()}(()=>{try{document.createElement("div").animate({opacity:0}
5,{easing:"linear(0, 1)"})}catch(e){return!1}return!0},"linearEasing"),T=(e,t,r=10)=>{let n="",i=Math.max(Math.round(t/r),2);for(let t=0;t<i;t++)n+=e(t/(i-1))+", ";return`linear(${n.substring(0,n.length-2)})`},M=([e,t,r,n])=>`cubic-bezier(${e}, ${t}, ${r}, ${n})`,C={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:M([0,.65,.55,1]),circOut:M([.55,0,1,.45]),backIn:M([.31,.01,.66,-.59]),backOut:M([.33,1.53,.69,.99])};function R(e,t){return e?.[t]??e?.default??e}function j(e){let t=0,r=e.next(t);for(;!r.done&&t<2e4;)t+=50,r=e.next(t);return t>=2e4?1/0:t}function O(e){return"function"==typeof e&&"applyToOptions"in e}function I(e,t){e.timeline=t,e.onfinish=null}new WeakMap;let V=["read","resolveKeyframes","update","preRender","render","postRender"];function D(e,t){let r=!1,n=!0,i={delta:0,timestamp:0,isProcessing:!1},s=()=>r=!0,a=V.reduce((e,r)=>(e[r]=function(e,t){let r=new Set,n=new Set,i=!1,s=!1,a=new WeakSet,o={delta:0,timestamp:0,isProcessing:!1},l=0;function u(t){a.has(t)&&(c.schedule(t),e()),l++,t(o)}let c={schedule:(e,t=!1,s=!1)=>{let o=s&&i?r:n;return t&&a.add(e),o.has(e)||o.add(e),e},cancel:e=>{n.delete(e),a.delete(e)},process:e=>{if(o=e,i){s=!0;return}i=!0,[r,n]=[n,r],r.forEach(u),t&&k.value&&k.value.frameloop[t].push(l),l=0,r.clear(),i=!1,s&&(s=!1,c.process(e))}};return c}(s,t?r:void 0),e),{}),{read:o,resolveKeyframes:u,update:c,preRender:h,render:d,postRender:f}=a,p=()=>{let s=l.useManualTiming?i.timestamp:performance.now();r=!1,l.useManualTiming||(i.delta=n?1e3/60:Math.max(Math.min(s-i.timestamp,40),1)),i.timestamp=s,i.isProcessing=!0,o.process(i),u.process(i),c.process(i),h.process(i),d.process(i),f.process(i),i.isProcessing=!1,r&&t&&(n=!1,e(p))},g=()=>{r=!0,n=!0,i.isProcessing||e(p)};return{schedule:V.reduce((e,t)=>{let n=a[t];return e[t]=(e,t=!1,i=!1)=>(r||g(),n.schedule(e,t,i)),e},{}),cancel:e=>{for(let t=0;t<V.length;t++)a[V[t]].cancel(e)},state:i,steps:a}}let{schedule:L,cancel:$,state:_,steps:F}=D("undefined"!=typeof requestAnimationFrame?requestAnimationFrame:c,!0),{schedule:z}=D(queueMicrotask,!1);function B(){n=void 0}let N={now:()=>(void 0===n&&N.set(_.isProcessing||l.useManualTiming?_.timestamp:performance.now()),n),set:e=>{n=e,queueMicrotask(B)}},U={x:!1,y:!1};function H(e,t){let r=function(e,t,r){if(e instanceof EventTarget)return[e];if("string"==typeof e){let t=document,r=(void 0)??t.querySelectorAll(e);return r?Array.from(r):[]}return Array.from(e)}(e),n=new AbortController;return[r,{passive:!0,...t,signal:n.signal},()=>n.abort()]}function W(e){return!("touch"===e.pointerType||U.x||U.y)}let G=(e,t)=>!!t&&(e===t||G(e,t.parentElement)),Y=e=>"mouse"===e.pointerType?"number"!=typeof e.button||e.button<=0:!1!==e.isPrimary,X=new Set(["BUTTON","INPUT","SELECT","TEXTAREA","A"]),q=new WeakSet;function K(e){return t=>{"Enter"===t.key&&e(t)}}function Z(e,t){e.dispatchEvent(new PointerEvent("pointer"+t,{isPrimary:!0,bubbles:!0}))}let J=(e,t)=>
5{let r=e.currentTarget;if(!r)return;let n=K(()=>{if(q.has(r))return;Z(r,"down");let e=K(()=>{Z(r,"up")});r.addEventListener("keyup",e,t),r.addEventListener("blur",()=>Z(r,"cancel"),t)});r.addEventListener("keydown",n,t),r.addEventListener("blur",()=>r.removeEventListener("keydown",n),t)};function Q(e){return Y(e)&&!(U.x||U.y)}function ee(){let{value:e}=statsBuffer;if(null===e){cancelFrame(ee);return}e.frameloop.rate.push(frameData.delta),e.animations.mainThread.push(activeAnimations.mainThread),e.animations.waapi.push(activeAnimations.waapi),e.animations.layout.push(activeAnimations.layout)}function et(e){return e.reduce((e,t)=>e+t,0)/e.length}function er(e,t=et){return 0===e.length?{min:0,max:0,avg:0}:{min:Math.min(...e),max:Math.max(...e),avg:t(e)}}let en=e=>Math.round(1e3/e),ei=e=>!isNaN(parseFloat(e)),es={current:void 0};class ea{constructor(e,t={}){this.version="12.6.3",this.canTrackVelocity=null,this.events={},this.updateAndNotify=(e,t=!0)=>{let r=N.now();this.updatedAt!==r&&this.setPrevFrameValue(),this.prev=this.current,this.setCurrent(e),this.current!==this.prev&&this.events.change&&this.events.change.notify(this.current),t&&this.events.renderRequest&&this.events.renderRequest.notify(this.current)},this.hasAnimated=!1,this.setCurrent(e),this.owner=t.owner}setCurrent(e){this.current=e,this.updatedAt=N.now(),null===this.canTrackVelocity&&void 0!==e&&(this.canTrackVelocity=ei(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 d);let r=this.events[e].add(t);return"change"===e?()=>{r(),L.read(()=>{this.events.change.getSize()||this.stop()})}:r}clearListeners(){for(let e in this.events)this.events[e].clear()}attach(e,t){this.passiveEffect=e,this.stopPassiveEffect=t}set(e,t=!0){t&&this.passiveEffect?this.passiveEffect(e,this.updateAndNotify):this.updateAndNotify(e,t)}setWithVelocity(e,t,r){this.set(t),this.prev=void 0,this.prevFrameValue=e,this.prevUpdatedAt=this.updatedAt-r}jump(e,t=!0){this.updateAndNotify(e),this.prev=e,this.prevUpdatedAt=this.prevFrameValue=void 0,t&&this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}get(){return es.current&&es.current.push(this),this.current}getPrevious(){return this.prev}getVelocity(){var e;let t=N.now();if(!this.canTrackVelocity||void 0===this.prevFrameValue||t-this.updatedAt>30)return 0;let r=Math.min(this.updatedAt-this.prevUpdatedAt,30);return e=parseFloat(this.current)-parseFloat(this.prevFrameValue),r?1e3/r*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.clearListeners(),this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}}function eo(e,t){return new ea(e,t)}let el=null,eu=null,ec=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],eh=new Set(ec),ed=new Set(["width","height","top","left","right","bottom",...ec]),ef=e=>Array.isArray(e),ep=e=>!!(e&&"object"==typeof e&&e.mix&&e.toValue),eg=e=>ef(e)?e[e.length-1]||0:e,em=e=>!!(e&&e.getVelocity);function eb(e,t){let r=e.getValue("willChange");if(em(r)&&r.add)return r.add(t)}let ey=e=>e.replace(/([a-z])([A-Z])/gu,"$1-$2").toLowerCase(),ev="data-"+ey("framerAppearId"),ex={current:!1},ew=(e,t,r)=>(((1-3*r+3*t)*e+(3*r-6*t))*e+3*t)*e;function eS(e,t,r,n){if(e===t&&r===n)return c;let i=t=>(function(e,t,r,n,i){let s,a,o=0;do(s=ew(a=t+(r-t)/2,n,i)-e)>0?r=a:t=a;while(Math.abs(s)>1e-7&&++o<12);return a})(t,0,1,e,r);return e=>0===e||1===e?e:ew(i(e),t,n)}let ek=e=>t=>t<=.5?e(2*t)/2:(2-e(2*(1-t)))/2,eP=e=>t=>1-e(1-t),eA=eS(.33,1.53,.69,.99),eE=eP(eA),eT=ek(eE),eM=e=>(e*=2)<1?.5*eE(e):.5*(2-Math.pow(2,-10*(e-1))),eC=e=>1-Math.sin(Math.acos(e)),eR=eP(eC),ej=ek(eC),eO=e=>/^0[^.\s]+$/u.test(e),eI=(e,t,r)=>r>t?t:r<e?e:r,eV={test:e=>"number"==typeof e,parse:parseFloat,transform:e=>e},eD={...eV,transform:e=>eI(0,1,e)},eL={...eV,default:1},e$=e=>Math.round(1e5*e)/1e5,e_=/-?(?:\d+(?:\.\d+)?|\.\d+)/gu,eF=/^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu,ez=(e,t)=>r=>!!("string"==typeof r&&eF.test(r)&&r.startsWith(e)||t&&null!=r&&Object.prototype.hasOwnProperty.call(r,t)),eB=(e,t,r)=>n=>{if("string"!=typeof n)return n;let[i,s,a,o]=n.match(e_);return{[e]:parseFloat(i),[t]:parseFloat(s),[r]:parseFloat(a),alpha:void 0!==o?parseFloat(o):1}},eN=e=>eI(0,255,e),eU={...eV,transform:e=>Math.round(eN(e))},eH={test:ez("rgb","red"),parse:eB("red","green","blue"),transform:({red:e,green:t,blue:r,alpha:n=1})=>"rgba("+eU.transform(e)+", "+eU.transform(t)+", "+eU.transform(r)+", "+e$(eD.transform(n))+")"},eW={test:ez("#"),parse:function(e){let t="",r="",n="",i="";return e.length>5?(t=e.substring(1,3),r=e.substring(3,5),n=e.substring(5,7),i=e.substring(7,9)):(t=e.substring(1,2),r=e.substring(2,3),n=e.substring(3,4),i=e.substring(4,5),t+=t,r+=r,n+=n,i+=i),{red:parseInt(t,16),green:parseInt(r,16),blue:parseInt(n,16),alph
5a:i?parseInt(i,16)/255:1}},transform:eH.transform},eG=e=>({test:t=>"string"==typeof t&&t.endsWith(e)&&1===t.split(" ").length,parse:parseFloat,transform:t=>`${t}${e}`}),eY=eG("deg"),eX=eG("%"),eq=eG("px"),eK=eG("vh"),eZ=eG("vw"),eJ={...eX,parse:e=>eX.parse(e)/100,transform:e=>eX.transform(100*e)},eQ={test:ez("hsl","hue"),parse:eB("hue","saturation","lightness"),transform:({hue:e,saturation:t,lightness:r,alpha:n=1})=>"hsla("+Math.round(e)+", "+eX.transform(e$(t))+", "+eX.transform(e$(r))+", "+e$(eD.transform(n))+")"},e0={test:e=>eH.test(e)||eW.test(e)||eQ.test(e),parse:e=>eH.test(e)?eH.parse(e):eQ.test(e)?eQ.parse(e):eW.parse(e),transform:e=>"string"==typeof e?e:e.hasOwnProperty("red")?eH.transform(e):eQ.transform(e)},e1=/(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu,e2="number",e5="color",e3=/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 e4(e){let t=e.toString(),r=[],n={color:[],number:[],var:[]},i=[],s=0,a=t.replace(e3,e=>(e0.test(e)?(n.color.push(s),i.push(e5),r.push(e0.parse(e))):e.startsWith("var(")?(n.var.push(s),i.push("var"),r.push(e)):(n.number.push(s),i.push(e2),r.push(parseFloat(e))),++s,"${}")).split("${}");return{values:r,split:a,indexes:n,types:i}}function e8(e){return e4(e).values}function e6(e){let{split:t,types:r}=e4(e),n=t.length;return e=>{let i="";for(let s=0;s<n;s++)if(i+=t[s],void 0!==e[s]){let t=r[s];t===e2?i+=e$(e[s]):t===e5?i+=e0.transform(e[s]):i+=e[s]}return i}}let e9=e=>"number"==typeof e?0:e,e7={test:function(e){return isNaN(e)&&"string"==typeof e&&(e.match(e_)?.length||0)+(e.match(e1)?.length||0)>0},parse:e8,createTransformer:e6,getAnimatableNone:function(e){let t=e8(e);return e6(e)(t.map(e9))}},te=new Set(["brightness","contrast","saturate","opacity"]);function tt(e){let[t,r]=e.slice(0,-1).split("(");if("drop-shadow"===t)return e;let[n]=r.match(e_)||[];if(!n)return e;let i=r.replace(n,""),s=+!!te.has(t);return n!==r&&(s*=100),t+"("+s+i+")"}let tr=/\b([a-z-]*)\(.*?\)/gu,tn={...e7,getAnimatableNone:e=>{let t=e.match(tr);return t?t.map(tt).join(" "):e}},ti={...eV,transform:Math.round},ts={borderWidth:eq,borderTopWidth:eq,borderRightWidth:eq,borderBottomWidth:eq,borderLeftWidth:eq,borderRadius:eq,radius:eq,borderTopLeftRadius:eq,borderTopRightRadius:eq,borderBottomRightRadius:eq,borderBottomLeftRadius:eq,width:eq,maxWidth:eq,height:eq,maxHeight:eq,top:eq,right:eq,bottom:eq,left:eq,padding:eq,paddingTop:eq,paddingRight:eq,paddingBottom:eq,paddingLeft:eq,margin:eq,marginTop:eq,marginRight:eq,marginBottom:eq,marginLeft:eq,backgroundPositionX:eq,backgroundPositionY:eq,rotate:eY,rotateX:eY,rotateY:eY,rotateZ:eY,scale:eL,scaleX:eL,scaleY:eL,scaleZ:eL,skew:eY,skewX:eY,skewY:eY,distance:eq,translateX:eq,translateY:eq,translateZ:eq,x:eq,y:eq,z:eq,perspective:eq,transformPerspective:eq,opacity:eD,originX:eJ,originY:eJ,originZ:eq,zIndex:ti,size:eq,fillOpacity:eD,strokeOpacity:eD,numOctaves:ti},ta={...ts,color:e0,backgroundColor:e0,outlineColor:e0,fill:e0,stroke:e0,borderColor:e0,borderTopColor:e0,borderRightColor:e0,borderBottomColor:e0,borderLeftColor:e0,filter:tn,WebkitFilter:tn},to=e=>ta[e];function tl(e,t){let r=to(e);return r!==tn&&(r=e7),r.getAnimatableNone?r.getAnimatableNone(t):void 0}let tu=new Set(["auto","none","0"]),tc=e=>180*e/Math.PI,th=e=>tf(tc(Math.atan2(e[1],e[0]))),td={x:4,y:5,translateX:4,translateY:5,scaleX:0,scaleY:3,scale:e=>(Math.abs(e[0])+Math.abs(e[3]))/2,rotate:th,rotateZ:th,skewX:e=>tc(Math.atan(e[1])),skewY:e=>tc(Math.atan(e[2])),skew:e=>(Math.abs(e[1])+Math.abs(e[2]))/2},tf=e=>((e%=360)<0&&(e+=360),e),tp=e=>Math.sqrt(e[0]*e[0]+e[1]*e[1]),tg=e=>Math.sqrt(e[4]*e[4]+e[5]*e[5]),tm={x:12,y:13,z:14,translateX:12,translateY:13,translateZ:14,scaleX:tp,scaleY:tg,scale:e=>(tp(e)+tg(e))/2,rotateX:e=>tf(tc(Math.atan2(e[6],e[5]))),rotateY:e=>tf(tc(Math.atan2(-e[2],e[0]))),rotateZ:th,rotate:th,skewX:e=>tc(Math.atan(e[4])),skewY:e=>tc(Math.atan(e[1])),skew:e=>(Math.abs(e[1])+Math.abs(e[4]))/2};function tb(e){return+!!e.includes("scale")}function ty(e,t){let r,n;if(!e||"none"===e)return tb(t);let i=e.match(/^matrix3d\(([-\d.e\s,]+)\)$/u);if(i)r=tm,n=i;else{let t=e.match(/^matrix\(([-\d.e\s,]+)\)$/u);r=td,n=t}if(!n)return tb(t);let s=r[t],a=n[1].split(",").map(tx);return"function"==typeof s?s(a):a[s]}let tv=(e,t)=>
5{let{transform:r="none"}=getComputedStyle(e);return ty(r,t)};function tx(e){return parseFloat(e.trim())}let tw=e=>e===eV||e===eq,tS=new Set(["x","y","z"]),tk=ec.filter(e=>!tS.has(e)),tP={width:({x:e},{paddingLeft:t="0",paddingRight:r="0"})=>e.max-e.min-parseFloat(t)-parseFloat(r),height:({y:e},{paddingTop:t="0",paddingBottom:r="0"})=>e.max-e.min-parseFloat(t)-parseFloat(r),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})=>ty(t,"x"),y:(e,{transform:t})=>ty(t,"y")};tP.translateX=tP.x,tP.translateY=tP.y;let tA=new Set,tE=!1,tT=!1;function tM(){if(tT){let e=Array.from(tA).filter(e=>e.needsMeasurement),t=new Set(e.map(e=>e.element)),r=new Map;t.forEach(e=>{let t=function(e){let t=[];return tk.forEach(r=>{let n=e.getValue(r);void 0!==n&&(t.push([r,n.get()]),n.set(+!!r.startsWith("scale")))}),t}(e);t.length&&(r.set(e,t),e.render())}),e.forEach(e=>e.measureInitialState()),t.forEach(e=>{e.render();let t=r.get(e);t&&t.forEach(([t,r])=>{e.getValue(t)?.set(r)})}),e.forEach(e=>e.measureEndState()),e.forEach(e=>{void 0!==e.suspendedScrollY&&window.scrollTo(0,e.suspendedScrollY)})}tT=!1,tE=!1,tA.forEach(e=>e.complete()),tA.clear()}function tC(){tA.forEach(e=>{e.readKeyframes(),e.needsMeasurement&&(tT=!0)})}class tR{constructor(e,t,r,n,i,s=!1){this.isComplete=!1,this.isAsync=!1,this.needsMeasurement=!1,this.isScheduled=!1,this.unresolvedKeyframes=[...e],this.onComplete=t,this.name=r,this.motionValue=n,this.element=i,this.isAsync=s}scheduleResolve(){this.isScheduled=!0,this.isAsync?(tA.add(this),tE||(tE=!0,L.read(tC),L.resolveKeyframes(tM))):(this.readKeyframes(),this.complete())}readKeyframes(){let{unresolvedKeyframes:e,name:t,element:r,motionValue:n}=this;for(let i=0;i<e.length;i++)if(null===e[i])if(0===i){let i=n?.get(),s=e[e.length-1];if(void 0!==i)e[0]=i;else if(r&&t){let n=r.readValue(t,s);null!=n&&(e[0]=n)}void 0===e[0]&&(e[0]=s),n&&void 0===i&&n.set(e[0])}else e[i]=e[i-1]}setFinalKeyframe(){}measureInitialState(){}renderEndStyles(){}measureEndState(){}complete(){this.isComplete=!0,this.onComplete(this.unresolvedKeyframes,this.finalKeyframe),tA.delete(this)}cancel(){this.isComplete||(this.isScheduled=!1,tA.delete(this))}resume(){this.isComplete||this.scheduleResolve()}}let tj=e=>/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(e),tO=e=>t=>"string"==typeof t&&t.startsWith(e),tI=tO("--"),tV=tO("var(--"),tD=e=>!!tV(e)&&tL.test(e.split("/*")[0].trim()),tL=/var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu,t$=/^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u,t_=e=>t=>t.test(e),tF=[eV,eq,eX,eY,eZ,eK,{test:e=>"auto"===e,parse:e=>e}],tz=e=>tF.find(t_(e));class tB extends tR{constructor(e,t,r,n,i){super(e,t,r,n,i,!0)}readKeyframes(){let{unresolvedKeyframes:e,element:t,name:r}=this;if(!t||!t.current)return;super.readKeyframes();for(let r=0;r<e.length;r++){let n=e[r];if("string"==typeof n&&tD(n=n.trim())){let i=function e(t,r,n=1){o(n<=4,`Max CSS variable fallback depth detected in property "${t}". This may indicate a circular fallback dependency.`);let[i,s]=function(e){let t=t$.exec(e);if(!t)return[,];let[,r,n,i]=t;return[`--${r??n}`,i]}(t);if(!i)return;let a=window.getComputedStyle(r).getPropertyValue(i);if(a){let e=a.trim();return tj(e)?parseFloat(e):e}return tD(s)?e(s,r,n+1):s}(n,t.current);void 0!==i&&(e[r]=i),r===e.length-1&&(this.finalKeyframe=n)}}if(this.resolveNoneKeyframes(),!ed.has(r)||2!==e.length)return;let[n,i]=e,s=tz(n),a=tz(i);if(s!==a)if(tw(s)&&tw(a))for(let t=0;t<e.length;t++){let r=e[t];"string"==typeof r&&(e[t]=parseFloat(r))}else this.needsMeasurement=!0}resolveNoneKeyframes(){let{unresolvedKeyframes:e,name:t}=this,r=[];for(let t=0;t<e.length;t++){var n;("number"==typeof(n=e[t])?0===n:null===n||"none"===n||"0"===n||eO(n))&&r.push(t)}if(r.length){let n,i=0;for(;i<e.length&&!n;){let t=e[i];"string"==typeof t&&!tu.has(t)&&e4(t).values.length&&(n=e[i]),i++}if(n&&t)for(let i of r)e[i]=tl(t,n)}}measureInitialState(){let{element:e,unresolvedKeyframes:t,name:r}=this;if(!e||!e.current)return;"height"===r&&(this.suspendedScrollY=window.pageYOffset),this.measuredOrigin=tP[r](e.measureViewportBox(),window.getComputedStyle(e.current)),t[0]=this.measuredOrigin;let n=t[t.length-1];void 0!==n&&e.getValue(r,n).jump(n,!1)}measureEndState(){let{element:e,name:t,unresolvedKeyframes:r}=this;if(!e||!e.current)return;let n=e.getValue(t);n&&n.jump(this.measuredOrigin,!1);let i=r.length-1,s=r[i];r[i]=tP[t](e.measureViewportBox(),window.getComputedStyle(e.current)),null!==s&&void 0===this.finalKeyframe&&(this.finalKeyframe=s),this.removedTransforms?.length&&this.removedTransforms.forEac
5h(([t,r])=>{e.getValue(t).set(r)}),this.resolveNoneKeyframes()}}let tN=(e,t)=>"zIndex"!==t&&!!("number"==typeof e||Array.isArray(e)||"string"==typeof e&&(e7.test(e)||"0"===e)&&!e.startsWith("url(")),tU=e=>null!==e;function tH(e,{repeat:t,repeatType:r="loop"},n){let i=e.filter(tU),s=t&&"loop"!==r&&t%2==1?0:i.length-1;return s&&void 0!==n?n:i[s]}class tW{constructor({autoplay:e=!0,delay:t=0,type:r="keyframes",repeat:n=0,repeatDelay:i=0,repeatType:s="loop",...a}){this.isStopped=!1,this.hasAttemptedResolve=!1,this.createdAt=N.now(),this.options={autoplay:e,delay:t,type:r,repeat:n,repeatDelay:i,repeatType:s,...a},this.updateFinishedPromise()}calcStartTime(){return this.resolvedAt&&this.resolvedAt-this.createdAt>40?this.resolvedAt:this.createdAt}get resolved(){return this._resolved||this.hasAttemptedResolve||(tC(),tM()),this._resolved}onKeyframesResolved(e,t){this.resolvedAt=N.now(),this.hasAttemptedResolve=!0;let{name:r,type:n,velocity:i,delay:s,onComplete:o,onUpdate:l,isGenerator:u}=this.options;if(!u&&!function(e,t,r,n){let i=e[0];if(null===i)return!1;if("display"===t||"visibility"===t)return!0;let s=e[e.length-1],o=tN(i,t),l=tN(s,t);return a(o===l,`You are trying to animate ${t} from "${i}" to "${s}". ${i} is not an animatable value - to enable this animation set ${i} to a value animatable to ${s} via the \`style\` property.`),!!o&&!!l&&(function(e){let t=e[0];if(1===e.length)return!0;for(let r=0;r<e.length;r++)if(e[r]!==t)return!0}(e)||("spring"===r||O(r))&&n)}(e,r,n,i))if(ex.current||!s){l&&l(tH(e,this.options,t)),o&&o(),this.resolveFinishedPromise();return}else this.options.duration=0;let c=this.initPlayback(e,t);!1!==c&&(this._resolved={keyframes:e,finalKeyframe:t,...c},this.onPostResolved())}onPostResolved(){}then(e,t){return this.currentFinishedPromise.then(e,t)}flatten(){this.options.allowFlatten&&(this.options.type="keyframes",this.options.ease="linear")}updateFinishedPromise(){this.currentFinishedPromise=new Promise(e=>{this.resolveFinishedPromise=e})}}let tG=(e,t,r)=>e+(t-e)*r;function tY(e,t,r){return(r<0&&(r+=1),r>1&&(r-=1),r<1/6)?e+(t-e)*6*r:r<.5?t:r<2/3?e+(t-e)*(2/3-r)*6:e}function tX(e,t){return r=>r>0?t:e}let tq=(e,t,r)=>{let n=e*e,i=r*(t*t-n)+n;return i<0?0:Math.sqrt(i)},tK=[eW,eH,eQ],tZ=e=>tK.find(t=>t.test(e));function tJ(e){let t=tZ(e);if(a(!!t,`'${e}' is not an animatable color. Use the equivalent color code instead.`),!t)return!1;let r=t.parse(e);return t===eQ&&(r=function({hue:e,saturation:t,lightness:r,alpha:n}){e/=360,r/=100;let i=0,s=0,a=0;if(t/=100){let n=r<.5?r*(1+t):r+t-r*t,o=2*r-n;i=tY(o,n,e+1/3),s=tY(o,n,e),a=tY(o,n,e-1/3)}else i=s=a=r;return{red:Math.round(255*i),green:Math.round(255*s),blue:Math.round(255*a),alpha:n}}(r)),r}let tQ=(e,t)=>{let r=tJ(e),n=tJ(t);if(!r||!n)return tX(e,t);let i={...r};return e=>(i.red=tq(r.red,n.red,e),i.green=tq(r.green,n.green,e),i.blue=tq(r.blue,n.blue,e),i.alpha=tG(r.alpha,n.alpha,e),eH.transform(i))},t0=(e,t)=>r=>t(e(r)),t1=(...e)=>e.reduce(t0),t2=new Set(["none","hidden"]);function t5(e,t){return r=>tG(e,t,r)}function t3(e){return"number"==typeof e?t5:"string"==typeof e?tD(e)?tX:e0.test(e)?tQ:t6:Array.isArray(e)?t4:"object"==typeof e?e0.test(e)?tQ:t8:tX}function t4(e,t){let r=[...e],n=r.length,i=e.map((e,r)=>t3(e)(e,t[r]));return e=>{for(let t=0;t<n;t++)r[t]=i[t](e);return r}}function t8(e,t){let r={...e,...t},n={};for(let i in r)void 0!==e[i]&&void 0!==t[i]&&(n[i]=t3(e[i])(e[i],t[i]));return e=>{for(let t in n)r[t]=n[t](e);return r}}let t6=(e,t)=>{let r=e7.createTransformer(t),n=e4(e),i=e4(t);return n.indexes.var.length===i.indexes.var.length&&n.indexes.color.length===i.indexes.color.length&&n.indexes.number.length>=i.indexes.number.length?t2.has(e)&&!i.values.length||t2.has(t)&&!n.values.length?function(e,t){return t2.has(e)?r=>r<=0?e:t:r=>r>=1?t:e}(e,t):t1(t4(function(e,t){let r=[],n={color:0,var:0,number:0};for(let i=0;i<t.values.length;i++){let s=t.types[i],a=e.indexes[s][n[s]],o=e.values[a]??0;r[i]=o,n[s]++}return r}(n,i),i.values),r):(a(!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.`),tX(e,t))};function t9(e,t,r){return"number"==typeof e&&"number"==typeof t&&"number"==typeof r?tG(e,t,r):t3(e)(e,t)}function t7(e,t,r){var n,i;let s=Math.max(t-5,0);return n=r-e(s),(i=t-s)?1e3/i*n:0}let re={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 rt(e,t){return e*Math.sqrt(1-t*t)}let rr=["duration","bounce"],rn=["stiffness","damping","mass"];function ri(e,t){return t.some(t=>void 0!==e[t])}function rs(e=re.visualDuration,t=re.bounce){let r,n="object"!=typeof e?{visualDuration:e,keyframes:[0,1],bounce:t}:e,{restSpeed:i,restDelta:s}=n,o=n.keyframes[0],l=n.keyframes[n.keyframes.length-1],u={done:!1,value:o},{stiffness:c,damping:h,mass:d,duration:g,velocity:m,isResolvedFromDuration:b}=function(e){let t={velocity:re.velocity,stiffness:re.stiffness,damping:re.damping,mass:re.mass,isResolvedFromDuration:!1,...e};if(!ri(e,rn)&&ri(e,rr))if(e.visualDuration){let r=2*Math.PI/(1.2*e.visualDuration),n=r*r,i=2*eI(.05,1,1-(e.bounce||0))*Math.sqrt(n);t={...t,mass:re.mass,stiffness:n,damping:i}}else{let r=function({duration:e=re.duration,bounce:t=re.bounce,velocity:r=re.velocity,mass:n=re.mass}){let i,s;a(e<=f(re.maxDuration),"Spring duration must be 10 seconds or less");let o=1-t;o=eI(re.minDamping,re.maxDamping,o),e=eI(re.minDuration,re.maxDuration,p(e)),o<1?(i=t=>{let n=t*o,i=n*e;return .001-(n-r)/rt(t,o)*Math.exp(-i)},s=t=>{let n=t*o*e,s=Math.pow(o,2)*Math.pow(t,2)*e,a=Math.exp(-n),l=rt(Math.pow(t,2),o);return(n*r+r-s)*a*(-i(t)+.001>0?-1:1)/l}):(i=t=>-.001+Math.exp(-t*e)*((t-r)*e+1),s=t=>e*e*(r-t)*Math.exp(-t*e));let l=function(e,t,r){let n=r;for(let r=1;r<12;r++)n-=e(n)/t(n);return n}(i,s,5/e);if(e=f(e),isNaN(l))return{stiffness:re.stiffness,damping:re.damping,duration:e};{let t=Math.pow(l,2)*n;return{stiffness:t,damping:2*o*Math.sqrt(n*t),duration:e}}}(e);(t={...t,...r,mass:re.mass}).isResolvedFromDuration=!0}return t}({...n,velocity:-p(n.velocity||0)}),y=m||0,v=h/(2*Math.sqrt(c*d)),x=l-o,w=p(Math.sqrt(c/d)),S=5>Math.abs(x);if(i||(i=S?re.restSpeed.granular:re.restSpeed.default),s||(s=S?re.restDelta.granular:re.restDelta.default),v<1){let e=rt(w,v);r=t=>l-Math.exp(-v*w*t)*((y+v*w*x)/e*Math.sin(e*t)+x*Math.cos(e*t))}else if(1===v)r=e=>l-Math.exp(-w*e)*(x+(y+w*x)*e);else{let e=w*Math.sqrt(v*v-1);r=t=>{let r=Math.exp(-v*w*t),n=Math.min(e*t,300);return l-r*((y+v*w*x)*Math.sinh(n)+e*x*Math.cosh(n))/e}}let k={calculatedDuration:b&&g||null,next:e=>{let t=r(e);if(b)u.done=e>=g;else{let n=0;v<1&&(n=0===e?f(y):t7(r,e,t));let a=Math.abs(l-t)<=s;u.done=Math.abs(n)<=i&&a}return u.value=u.done?l:t,u},toString:()=>{let e=Math.min(j(k),2e4),t=T(t=>k.next(e*t).value,e,30);return e+"ms "+t},toTransition:()=>{}};return k}function ra({keyframes:e,velocity:t=0,power:r=.8,timeConstant:n=325,bounceDamping:i=10,bounceStiffness:s=500,modifyTarget:a,min:o,max:l,restDelta:u=.5,restSpeed:c}){let h,d,f=e[0],p={done:!1,value:f},g=e=>void 0!==o&&e<o||void 0!==l&&e>l,m=e=>void 0===o?l:void 0===l?o:Math.abs(o-e)<Math.abs(l-e)?o:l,b=r*t,y=f+b,v=void 0===a?y:a(y);v!==y&&(b=v-f);let x=e=>-b*Math.exp(-e/n),w=e=>v+x(e),S=e=>{let t=x(e),r=w(e);p.done=Math.abs(t)<=u,p.value=p.done?v:r},k=e=>{g(p.value)&&(h=e,d=rs({keyframes:[p.value,m(p.value)],velocity:t7(w,e,p.value),damping:i,stiffness:s,restDelta:u,restSpeed:c}))};return k(0),{calculatedDuration:null,next:e=>{let t=!1;return(d||void 0!==h||(t=!0,S(e),k(e)),void 0!==h&&e>
5=h)?d.next(e-h):(t||S(e),p)}}}rs.applyToOptions=e=>{let t=function(e,t=100,r){let n=r({...e,keyframes:[0,t]}),i=Math.min(j(n),2e4);return{type:"keyframes",ease:e=>n.next(i*e).value/t,duration:p(i)}}(e,100,rs);return e.ease=E()?t.ease:"easeOut",e.duration=f(t.duration),e.type="keyframes",e};let ro=eS(.42,0,1,1),rl=eS(0,0,.58,1),ru=eS(.42,0,.58,1),rc=e=>Array.isArray(e)&&"number"!=typeof e[0],rh={linear:c,easeIn:ro,easeInOut:ru,easeOut:rl,circIn:eC,circInOut:ej,circOut:eR,backIn:eE,backInOut:eT,backOut:eA,anticipate:eM},rd=e=>{if(P(e)){o(4===e.length,"Cubic bezier arrays must contain four numerical values.");let[t,r,n,i]=e;return eS(t,r,n,i)}return"string"==typeof e?(o(void 0!==rh[e],`Invalid easing type '${e}'`),rh[e]):e};function rf({duration:e=300,keyframes:t,times:r,ease:n="easeInOut"}){let i=rc(n)?n.map(rd):rd(n),s={done:!1,value:t[0]},a=function(e,t,{clamp:r=!0,ease:n,mixer:i}={}){let s=e.length;if(o(s===t.length,"Both input and output ranges must be the same length"),1===s)return()=>t[0];if(2===s&&t[0]===t[1])return()=>t[1];let a=e[0]===e[1];e[0]>e[s-1]&&(e=[...e].reverse(),t=[...t].reverse());let l=function(e,t,r){let n=[],i=r||t9,s=e.length-1;for(let r=0;r<s;r++){let s=i(e[r],e[r+1]);t&&(s=t1(Array.isArray(t)?t[r]||c:t,s)),n.push(s)}return n}(t,n,i),u=l.length,d=r=>{if(a&&r<e[0])return t[0];let n=0;if(u>1)for(;n<e.length-2&&!(r<e[n+1]);n++);let i=h(e[n],e[n+1],r);return l[n](i)};return r?t=>d(eI(e[0],e[s-1],t)):d}((r&&r.length===t.length?r:function(e){let t=[0];return function(e,t){let r=e[e.length-1];for(let n=1;n<=t;n++){let i=h(0,t,n);e.push(tG(r,1,i))}}(t,e.length-1),t}(t)).map(t=>t*e),t,{ease:Array.isArray(i)?i:t.map(()=>i||ru).splice(0,t.length-1)});return{calculatedDuration:e,next:t=>(s.value=a(t),s.done=t>=e,s)}}let rp=e=>{let t=({timestamp:t})=>e(t);return{start:()=>L.update(t,!0),stop:()=>$(t),now:()=>_.isProcessing?_.timestamp:N.now()}},rg={decay:ra,inertia:ra,tween:rf,keyframes:rf,spring:rs},rm=e=>e/100;class rb extends tW{constructor(e){super(e),this.holdTime=null,this.cancelTime=null,this.currentTime=0,this.playbackSpeed=1,this.pendingPlayState="running",this.startTime=null,this.state="idle",this.stop=()=>{if(this.resolver.cancel(),this.isStopped=!0,"idle"===this.state)return;this.teardown();let{onStop:e}=this.options;e&&e()};let{name:t,motionValue:r,element:n,keyframes:i}=this.options,s=n?.KeyframeResolver||tR;this.resolver=new s(i,(e,t)=>this.onKeyframesResolved(e,t),t,r,n),this.resolver.scheduleResolve()}flatten(){super.flatten(),this._resolved&&Object.assign(this._resolved,this.initPlayback(this._resolved.keyframes))}initPlayback(e){let t,r,{type:n="keyframes",repeat:i=0,repeatDelay:s=0,repeatType:a,velocity:o=0}=this.options,l=O(n)?n:rg[n]||rf;l!==rf&&"number"!=typeof e[0]&&(t=t1(rm,t9(e[0],e[1])),e=[0,100]);let u=l({...this.options,keyframes:e});"mirror"===a&&(r=l({...this.options,keyframes:[...e].reverse(),velocity:-o})),null===u.calculatedDuration&&(u.calculatedDuration=j(u));let{calculatedDuration:c}=u,h=c+s;return{generator:u,mirroredGenerator:r,mapPercentToKeyframes:t,calculatedDuration:c,resolvedDuration:h,totalDuration:h*(i+1)-s}}onPostResolved(){let{autoplay:e=!0}=this.options;S.mainThread++,this.play(),"paused"!==this.pendingPlayState&&e?this.state=this.pendingPlayState:this.pause()}tick(e,t=!1){let{resolved:r}=this;if(!r){let{keyframes:e}=this.options;return{done:!0,value:e[e.length-1]}}let{finalKeyframe:n,generator:i,mirroredGenerator:s,mapPercentToKeyframes:a,keyframes:o,calculatedDuration:l,totalDuration:u,resolvedDuration:c}=r;if(null===this.startTime)return i.next(0);let{delay:h,repeat:d,repeatType:f,repeatDelay:p,onUpdate:g}=this.options;this.speed>0?this.startTime=Math.min(this.startTime,e):this.speed<0&&(this.startTime=Math.min(e-u/this.speed,this.startTime)),t?this.currentTime=e:null!==this.holdTime?this.currentTime=this.holdTime:this.currentTime=Math.round(e-this.startTime)*this.speed;let m=this.currentTime-h*(this.speed>=0?1:-1),b=this.speed>=0?m<0:m>u;this.currentTime=Math.max(m,0),"finished"===this.state&&null===this.holdTime&&(this.currentTime=u);let y=this.currentTime,v=i;if(d){let e=Math.min(this.currentTime,u)/c,t=Math.floor(e),r=e%1;!r&&e>=1&&(r=1),1===r&&t--,(t=Math.min(t,d+1))%2&&("reverse"===f?(r=1-r,p&&(r-=p/c)):"mirror"===f&&(v=s)),y=eI(0,1,r)*c}let x=b?{done:!1,value:o[0]}:v.next(y);a&&(x.value=a(x.value));let{done:w}=x;b||null===l||(w=this.speed>=0?this.currentTime>=u:this.currentTime<=0);let S=null===this.holdTime&&("finished"===this.state||"running"===this.state&&w);return S&&void 0!==n&&(x.value=tH(o,this.options,n)),g&&g(x.value),S&&this.finish(),x}
5get duration(){let{resolved:e}=this;return e?p(e.calculatedDuration):0}get time(){return p(this.currentTime)}set time(e){e=f(e),this.currentTime=e,null!==this.holdTime||0===this.speed?this.holdTime=e:this.driver&&(this.startTime=this.driver.now()-e/this.speed)}get speed(){return this.playbackSpeed}set speed(e){let t=this.playbackSpeed!==e;this.playbackSpeed=e,t&&(this.time=p(this.currentTime))}play(){if(this.resolver.isScheduled||this.resolver.resume(),!this._resolved){this.pendingPlayState="running";return}if(this.isStopped)return;let{driver:e=rp,onPlay:t,startTime:r}=this.options;this.driver||(this.driver=e(e=>this.tick(e))),t&&t();let n=this.driver.now();null!==this.holdTime?this.startTime=n-this.holdTime:this.startTime?"finished"===this.state&&(this.startTime=n):this.startTime=r??this.calcStartTime(),"finished"===this.state&&this.updateFinishedPromise(),this.cancelTime=this.startTime,this.holdTime=null,this.state="running",this.driver.start()}pause(){if(!this._resolved){this.pendingPlayState="paused";return}this.state="paused",this.holdTime=this.currentTime??0}complete(){"running"!==this.state&&this.play(),this.pendingPlayState=this.state="finished",this.holdTime=null}finish(){this.teardown(),this.state="finished";let{onComplete:e}=this.options;e&&e()}cancel(){null!==this.cancelTime&&this.tick(this.cancelTime),this.teardown(),this.updateFinishedPromise()}teardown(){this.state="idle",this.stopDriver(),this.resolveFinishedPromise(),this.updateFinishedPromise(),this.startTime=this.cancelTime=null,this.resolver.cancel(),S.mainThread--}stopDriver(){this.driver&&(this.driver.stop(),this.driver=void 0)}sample(e){return this.startTime=0,this.tick(e,!0)}get finished(){return this.currentFinishedPromise}}let ry=new Set(["opacity","clipPath","filter","transform"]),rv=u(()=>Object.hasOwnProperty.call(Element.prototype,"animate")),rx={anticipate:eM,backInOut:eT,circInOut:ej};class rw extends tW{constructor(e){super(e);let{name:t,motionValue:r,element:n,keyframes:i}=this.options;this.resolver=new tB(i,(e,t)=>this.onKeyframesResolved(e,t),t,r,n),this.resolver.scheduleResolve()}initPlayback(e,t){var r;let{duration:n=300,times:i,ease:s,type:a,motionValue:o,name:l,startTime:u}=this.options;if(!o.owner||!o.owner.current)return!1;if("string"==typeof s&&E()&&s in rx&&(s=rx[s]),O((r=this.options).type)||"spring"===r.type||!function e(t){return!!("function"==typeof t&&E()||!t||"string"==typeof t&&(t in C||E())||P(t)||Array.isArray(t)&&t.every(e))}(r.ease)){let{onComplete:t,onUpdate:r,motionValue:o,element:l,...u}=this.options,c=function(e,t){let r=new rb({...t,keyframes:e,repeat:0,delay:0,isGenerator:!0}),n={done:!1,value:e[0]},i=[],s=0;for(;!n.done&&s<2e4;)i.push((n=r.sample(s)).value),s+=10;return{times:void 0,keyframes:i,duration:s-10,ease:"linear"}}(e,u);1===(e=c.keyframes).length&&(e[1]=e[0]),n=c.duration,i=c.times,s=c.ease,a="keyframes"}let c=function(e,t,r,{delay:n=0,duration:i=300,repeat:s=0,repeatType:a="loop",ease:o="easeInOut",times:l}={},u){let c={[t]:r};l&&(c.offset=l);let h=function e(t,r){if(t)return"function"==typeof t&&E()?T(t,r):P(t)?M(t):Array.isArray(t)?t.map(t=>e(t,r)||C.easeOut):C[t]}(o,i);Array.isArray(h)&&(c.easing=h),k.value&&S.waapi++;let d=e.animate(c,{delay:n,duration:i,easing:Array.isArray(h)?"linear":h,fill:"both",iterations:s+1,direction:"reverse"===a?"alternate":"normal",pseudoElement:void 0});return k.value&&d.finished.finally(()=>{S.waapi--}),d}(o.owner.current,l,e,{...this.options,duration:n,times:i,ease:s});return c.startTime=u??this.calcStartTime(),this.pendingTimeline?(I(c,this.pendingTimeline),this.pendingTimeline=void 0):c.onfinish=()=>{let{onComplete:r}=this.options;o.set(tH(e,this.options,t)),r&&r(),this.cancel(),this.resolveFinishedPromise()},{animation:c,duration:n,times:i,type:a,ease:s,keyframes:e}}get duration(){let{resolved:e}=this;if(!e)return 0;let{duration:t}=e;return p(t)}get time(){let{resolved:e}=this;if(!e)return 0;let{animation:t}=e;return p(t.currentTime||0)}set time(e){let{resolved:t}=this;if(!t)return;let{animation:r}=t;r.currentTime=f(e)}get speed(){let{resolved:e}=this;if(!e)return 1;let{animation:t}=e;return t.playbackRate}get finished(){return this.resolved.animation.finished}set speed(e){let{resolved:t}=this;if(!t)return;let{animation:r}=t;r.playbackRate=e}get state(){let{resolved:e}=this;if(!e)return"idle";let{animation:t}=e;return t.playState}get startTime(){let{resolved:e}=this;if(!e)return null;let{animation:t}=e;return t.startTime}attachTimeline(e){if(this._resolved){let{resolved:t}=this;if(!t)return c;let{animation:r}=t;I(r,e)}else this.pendingTimeline=e;return c}play(){if(this.isStopped)return;let{resolved:e}=this;if(!e)return;let{animation:t}=e;
5"finished"===t.playState&&this.updateFinishedPromise(),t.play()}pause(){let{resolved:e}=this;if(!e)return;let{animation:t}=e;t.pause()}stop(){if(this.resolver.cancel(),this.isStopped=!0,"idle"===this.state)return;this.resolveFinishedPromise(),this.updateFinishedPromise();let{resolved:e}=this;if(!e)return;let{animation:t,keyframes:r,duration:n,type:i,ease:s,times:a}=e;if("idle"===t.playState||"finished"===t.playState)return;if(this.time){let{motionValue:e,onUpdate:t,onComplete:o,element:l,...u}=this.options,c=new rb({...u,keyframes:r,duration:n,type:i,ease:s,times:a,isGenerator:!0}),h=f(this.time);e.setWithVelocity(c.sample(h-10).value,c.sample(h).value,10)}let{onStop:o}=this.options;o&&o(),this.cancel()}complete(){let{resolved:e}=this;e&&e.animation.finish()}cancel(){let{resolved:e}=this;e&&e.animation.cancel()}static supports(e){let{motionValue:t,name:r,repeatDelay:n,repeatType:i,damping:s,type:a}=e;if(!t||!t.owner||!(t.owner.current instanceof HTMLElement))return!1;let{onUpdate:o,transformTemplate:l}=t.owner.getProps();return rv()&&r&&ry.has(r)&&("transform"!==r||!l)&&!o&&!n&&"mirror"!==i&&0!==s&&"inertia"!==a}}let rS={type:"spring",stiffness:500,damping:25,restSpeed:10},rk=e=>({type:"spring",stiffness:550,damping:0===e?2*Math.sqrt(550):30,restSpeed:10}),rP={type:"keyframes",duration:.8},rA={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},rE=(e,{keyframes:t})=>t.length>2?rP:eh.has(e)?e.startsWith("scale")?rk(t[1]):rS:rA,rT=(e,t,r,n={},i,s)=>a=>{let o=R(n,e)||{},u=o.delay||n.delay||0,{elapsed:c=0}=n;c-=f(u);let h={keyframes:Array.isArray(r)?r:[null,r],ease:"easeOut",velocity:t.getVelocity(),...o,delay:-c,onUpdate:e=>{t.set(e),o.onUpdate&&o.onUpdate(e)},onComplete:()=>{a(),o.onComplete&&o.onComplete()},name:e,motionValue:t,element:s?void 0:i};!function({when:e,delay:t,delayChildren:r,staggerChildren:n,staggerDirection:i,repeat:s,repeatType:a,repeatDelay:o,from:l,elapsed:u,...c}){return!!Object.keys(c).length}(o)&&(h={...h,...rE(e,h)}),h.duration&&(h.duration=f(h.duration)),h.repeatDelay&&(h.repeatDelay=f(h.repeatDelay)),void 0!==h.from&&(h.keyframes[0]=h.from);let d=!1;if(!1!==h.type&&(0!==h.duration||h.repeatDelay)||(h.duration=0,0!==h.delay||(d=!0)),(ex.current||l.skipAnimations)&&(d=!0,h.duration=0,h.delay=0),h.allowFlatten=!o.type&&!o.ease,d&&!s&&void 0!==t.get()){let e=tH(h.keyframes,o);if(void 0!==e)return L.update(()=>{h.onUpdate(e),h.onComplete()}),new w([])}return!s&&rw.supports(h)?new rw(h):new rb(h)};function rM(e,t,{delay:r=0,transitionOverride:n,type:i}={}){let{transition:s=e.getDefaultTransition(),transitionEnd:a,...o}=t;n&&(s=n);let l=[],u=i&&e.animationState&&e.animationState.getState()[i];for(let t in o){let n=e.getValue(t,e.latestValues[t]??null),i=o[t];if(void 0===i||u&&function({protectedKeys:e,needsAnimating:t},r){let n=e.hasOwnProperty(r)&&!0!==t[r];return t[r]=!1,n}(u,t))continue;let a={delay:r,...R(s||{},t)},c=!1;if(window.MotionHandoffAnimation){let r=e.props[ev];if(r){let e=window.MotionHandoffAnimation(r,t,L);null!==e&&(a.startTime=e,c=!0)}}eb(e,t),n.start(rT(t,n,i,e.shouldReduceMotion&&ed.has(t)?{type:!1}:a,e,c));let h=n.animation;h&&l.push(h)}return a&&Promise.all(l).then(()=>{L.update(()=>{a&&function(e,t){let{transitionEnd:r={},transition:n={},...i}=y(e,t)||{};for(let t in i={...i,...r}){let r=eg(i[t]);e.hasValue(t)?e.getValue(t).set(r):e.addValue(t,eo(r))}}(e,a)})}),l}function rC(e,t,r={}){let n=y(e,t,"exit"===r.type?e.presenceContext?.custom:void 0),{transition:i=e.getDefaultTransition()||{}}=n||{};r.transitionOverride&&(i=r.transitionOverride);let s=n?()=>Promise.all(rM(e,n,r)):()=>Promise.resolve(),a=e.variantChildren&&e.variantChildren.size?(n=0)=>{let{delayChildren:s=0,staggerChildren:a,staggerDirection:o}=i;return function(e,t,r=0,n=0,i=1,s){let a=[],o=(e.variantChildren.size-1)*n,l=1===i?(e=0)=>e*n:(e=0)=>o-e*n;return Array.from(e.variantChildren).sort(rR).forEach((e,n)=>{e.notify("AnimationStart",t),a.push(rC(e,t,{...s,delay:r+l(n)}).then(()=>e.notify("AnimationComplete",t)))}),Promise.all(a)}(e,t,s+n,a,o,r)}:()=>Promise.resolve(),{when:o}=i;if(!o)return Promise.all([s(),a(r.delay)]);{let[e,t]="beforeChildren"===o?[s,a]:[a,s];return e().then(()=>t())}}function rR(e,t){return e.sortNodePosition(t)}function rj(e,t){if(!Array.isArray(t))return!1;let r=t.length;if(r!==e.length)return!1;for(let n=0;n<r;n++)if(t[n]!==e[n])return!1;return!0}function rO(e){return"string"==typeof e||Array.isArray(e)}let rI=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],rV=["initial",...rI],rD=rV.length,rL=[...rI].reverse(),r$=rI.length;function r_(e=!1){return{isActive:e,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function rF(){return{animate:r_(!0),whileInView:r_(),whileHover:r_(),whileTap:r_(),whileDrag:r_(),whileFocus:r_(),exit:r_()}}class rz{constructor(e){this.isMounted=!1,this.node=e}update(){}}class rB extends rz{constructor(e){super(e),e.animationState||(e.animationState=function(e){let t=t=>Promise.all(t.map(({animation:t,options:r})=>(function(e,t,r={}){let n;if(e.notify("AnimationStart",t),Array.isArray(t))n=Promise.all(t.map(t=>rC(e,t,r)));else if("string"==typeof t)n=rC(e,t,r);else{let i="function"==typeof t?y(e,t,r.custom):t;n=Promise.all(rM(e,i,r))}return n.then(()=>
5{e.notify("AnimationComplete",t)})})(e,t,r))),r=rF(),n=!0,i=t=>(r,n)=>{let i=y(e,n,"exit"===t?e.presenceContext?.custom:void 0);if(i){let{transition:e,transitionEnd:t,...n}=i;r={...r,...n,...t}}return r};function s(s){let{props:a}=e,o=function e(t){if(!t)return;if(!t.isControllingVariants){let r=t.parent&&e(t.parent)||{};return void 0!==t.props.initial&&(r.initial=t.props.initial),r}let r={};for(let e=0;e<rD;e++){let n=rV[e],i=t.props[n];(rO(i)||!1===i)&&(r[n]=i)}return r}(e.parent)||{},l=[],u=new Set,c={},h=1/0;for(let t=0;t<r$;t++){var d,f;let p=rL[t],m=r[p],b=void 0!==a[p]?a[p]:o[p],y=rO(b),v=p===s?m.isActive:null;!1===v&&(h=t);let x=b===o[p]&&b!==a[p]&&y;if(x&&n&&e.manuallyAnimateOnMount&&(x=!1),m.protectedKeys={...c},!m.isActive&&null===v||!b&&!m.prevProp||g(b)||"boolean"==typeof b)continue;let w=(d=m.prevProp,"string"==typeof(f=b)?f!==d:!!Array.isArray(f)&&!rj(f,d)),S=w||p===s&&m.isActive&&!x&&y||t>h&&y,k=!1,P=Array.isArray(b)?b:[b],A=P.reduce(i(p),{});!1===v&&(A={});let{prevResolvedValues:E={}}=m,T={...E,...A},M=t=>{S=!0,u.has(t)&&(k=!0,u.delete(t)),m.needsAnimating[t]=!0;let r=e.getValue(t);r&&(r.liveStyle=!1)};for(let e in T){let t=A[e],r=E[e];if(c.hasOwnProperty(e))continue;let n=!1;(ef(t)&&ef(r)?rj(t,r):t===r)?void 0!==t&&u.has(e)?M(e):m.protectedKeys[e]=!0:null!=t?M(e):u.add(e)}m.prevProp=b,m.prevResolvedValues=A,m.isActive&&(c={...c,...A}),n&&e.blockInitialAnimation&&(S=!1);let C=!(x&&w)||k;S&&C&&l.push(...P.map(e=>({animation:e,options:{type:p}})))}if(u.size){let t={};if("boolean"!=typeof a.initial){let r=y(e,Array.isArray(a.initial)?a.initial[0]:a.initial);r&&r.transition&&(t.transition=r.transition)}u.forEach(r=>{let n=e.getBaseTarget(r),i=e.getValue(r);i&&(i.liveStyle=!0),t[r]=n??null}),l.push({animation:t})}let p=!!l.length;return n&&(!1===a.initial||a.initial===a.animate)&&!e.manuallyAnimateOnMount&&(p=!1),n=!1,p?t(l):Promise.resolve()}return{animateChanges:s,setActive:function(t,n){if(r[t].isActive===n)return Promise.resolve();e.variantChildren?.forEach(e=>e.animationState?.setActive(t,n)),r[t].isActive=n;let i=s(t);for(let e in r)r[e].protectedKeys={};return i},setAnimateFunction:function(r){t=r(e)},getState:()=>r,reset:()=>{r=rF(),n=!0}}}(e))}updateAnimationControlsSubscription(){let{animate:e}=this.node.getProps();g(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 rN=0;class rU extends rz{constructor(){super(...arguments),this.id=rN++}update(){if(!this.node.presenceContext)return;let{isPresent:e,onExitComplete:t}=this.node.presenceContext,{isPresent:r}=this.node.prevPresenceContext||{};if(!this.node.animationState||e===r)return;let n=this.node.animationState.setActive("exit",!e);t&&!e&&n.then(()=>{t(this.id)})}mount(){let{register:e,onExitComplete:t}=this.node.presenceContext||{};t&&t(this.id),e&&(this.unmount=e(this.id))}unmount(){}}function rH(e,t,r,n={passive:!0}){return e.addEventListener(t,r,n),()=>e.removeEventListener(t,r)}function rW(e){return{point:{x:e.pageX,y:e.pageY}}}let rG=e=>t=>Y(t)&&e(t,rW(t));function rY(e,t,r,n){return rH(e,t,rG(r),n)}function rX({top:e,left:t,right:r,bottom:n}){return{x:{min:t,max:r},y:{min:e,max:n}}}function rq(e){return e.max-e.min}function rK(e,t,r,n=.5){e.origin=n,e.originPoint=tG(t.min,t.max,e.origin),e.scale=rq(r)/rq(t),e.translate=tG(r.min,r.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 rZ(e,t,r,n){rK(e.x,t.x,r.x,n?n.originX:void 0),rK(e.y,t.y,r.y,n?n.originY:void 0)}function rJ(e,t,r){e.min=r.min+t.min,e.max=e.min+rq(t)}function rQ(e,t,r){e.min=t.min-r.min,e.max=e.min+rq(t)}function r0(e,t,r){rQ(e.x,t.x,r.x),rQ(e.y,t.y,r.y)}let r1=()=>({translate:0,scale:1,origin:0,originPoint:0}),r2=()=>({x:r1(),y:r1()}),r5=()=>({min:0,max:0}),r3=()=>({x:r5(),y:r5()});function r4(e){return[e("x"),e("y")]}function r8(e){return void 0===e||1===e}function r6({scale:e,scaleX:t,scaleY:r}){return!r8(e)||!r8(t)||!r8(r)}function r9(e){return r6(e)||r7(e)||e.z||e.rotate||e.rotateX||e.rotateY||e.skewX||e.skewY}function r7(e){var t,r;return(t=e.x)&&"0%"!==t||(r=e.y)&&"0%"!==r}function ne(e,t,r,n,i){return void 0!==i&&(e=n+i*(e-n)),n+r*(e-n)+t}function nt(e,t=0,r=1,n,i){e.min=ne(e.min,t,r,n,i),e.max=ne(e.max,t,r,n,i)}function nr(e,{x:t,y:r}){nt(e.x,t.translate,t.scale,t.originPoint),nt(e.y,r.translate,r.scale,r.originPoint)}function nn(e,t){e.min=e.min+t,e.max=e.max+t}function ni(e,t,r,n,i=.5){let s=tG(e.min,e.max,i);nt(e,t,r,s,n)}function ns(e,t){ni(e.x,t.x,t.scaleX,t.scale,t.originX),ni(e.y,t.y,t.scaleY,t.scale,t.originY)}function na(e,t){return rX(function(e,t){if(!t)return e;let r=t({x:e.left,y:e.top}),n=t({x:e.right,y:e.bottom});return{top:r.y,left:r.x,bottom:n.y,right:n.x}}(e.getBoundingClientRect(),t))}let no=({current:e})=>e?e.ownerDocument.defaultView:null;function nl(e){return e&&"object"==typeof e&&Object.prototype.hasOwnProperty.call(e,"current")}let nu=(e,t)=>Math.abs(e-t);class nc{constructor(e,t,{transformPagePoint:r,contextWindow:n,dragSnapToOrigin:i=!1}={}){if(this.startEvent=null,this.lastMoveEvent=null,this.lastMoveEventInfo=null,this.handlers={},this.contextWindow=window,this.updatePoint=()=>{if(!(this.lastMoveEvent&&this.lastMoveEventInfo))return;let e=nf(this.lastMoveEventInfo,this.history),t=null!==this.startEvent,r=function(e,t){return Math.sqrt(nu(e.x,t.x)**2+nu(e.y,t.y)**2)}(e.offset,{x:0,y:0})>=3;if(!t&&!r)return;let{point:n}=e,{timestamp:i}=_;this.history.push({...n,timestamp:i});let{onStart:s,onMove:a}=this.handlers;t||(s&&s(this.lastMoveEvent,e),this.startEvent=this.lastMoveEvent),a&&a(this.lastMoveEvent,e)},this.handlePointerMove=(e,t)=>
5{this.lastMoveEvent=e,this.lastMoveEventInfo=nh(t,this.transformPagePoint),L.update(this.updatePoint,!0)},this.handlePointerUp=(e,t)=>{this.end();let{onEnd:r,onSessionEnd:n,resumeAnimation:i}=this.handlers;if(this.dragSnapToOrigin&&i&&i(),!(this.lastMoveEvent&&this.lastMoveEventInfo))return;let s=nf("pointercancel"===e.type?this.lastMoveEventInfo:nh(t,this.transformPagePoint),this.history);this.startEvent&&r&&r(e,s),n&&n(e,s)},!Y(e))return;this.dragSnapToOrigin=i,this.handlers=t,this.transformPagePoint=r,this.contextWindow=n||window;let s=nh(rW(e),this.transformPagePoint),{point:a}=s,{timestamp:o}=_;this.history=[{...a,timestamp:o}];let{onSessionStart:l}=t;l&&l(e,nf(s,this.history)),this.removeListeners=t1(rY(this.contextWindow,"pointermove",this.handlePointerMove),rY(this.contextWindow,"pointerup",this.handlePointerUp),rY(this.contextWindow,"pointercancel",this.handlePointerUp))}updateHandlers(e){this.handlers=e}end(){this.removeListeners&&this.removeListeners(),$(this.updatePoint)}}function nh(e,t){return t?{point:t(e.point)}:e}function nd(e,t){return{x:e.x-t.x,y:e.y-t.y}}function nf({point:e},t){return{point:e,delta:nd(e,np(t)),offset:nd(e,t[0]),velocity:function(e,t){if(e.length<2)return{x:0,y:0};let r=e.length-1,n=null,i=np(e);for(;r>=0&&(n=e[r],!(i.timestamp-n.timestamp>f(.1)));)r--;if(!n)return{x:0,y:0};let s=p(i.timestamp-n.timestamp);if(0===s)return{x:0,y:0};let a={x:(i.x-n.x)/s,y:(i.y-n.y)/s};return a.x===1/0&&(a.x=0),a.y===1/0&&(a.y=0),a}(t,.1)}}function np(e){return e[e.length-1]}function ng(e,t,r){return{min:void 0!==t?e.min+t:void 0,max:void 0!==r?e.max+r-(e.max-e.min):void 0}}function nm(e,t){let r=t.min-e.min,n=t.max-e.max;return t.max-t.min<e.max-e.min&&([r,n]=[n,r]),{min:r,max:n}}function nb(e,t,r){return{min:ny(e,t),max:ny(e,r)}}function ny(e,t){return"number"==typeof e?e:e[t]||0}let nv=new WeakMap;class nx{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=r3(),this.visualElement=e}start(e,{snapToCursor:t=!1}={}){let{presenceContext:r}=this.visualElement;if(r&&!1===r.isPresent)return;let{dragSnapToOrigin:n}=this.getProps();this.panSession=new nc(e,{onSessionStart:e=>{let{dragSnapToOrigin:r}=this.getProps();r?this.pauseAnimation():this.stopAnimation(),t&&this.snapToCursor(rW(e).point)},onStart:(e,t)=>{let{drag:r,dragPropagation:n,onDragStart:i}=this.getProps();if(r&&!n&&(this.openDragLock&&this.openDragLock(),this.openDragLock=function(e){if("x"===e||"y"===e)if(U[e])return null;else return U[e]=!0,()=>{U[e]=!1};return U.x||U.y?null:(U.x=U.y=!0,()=>{U.x=U.y=!1})}(r),!this.openDragLock))return;this.isDragging=!0,this.currentDirection=null,this.resolveConstraints(),this.visualElement.projection&&(this.visualElement.projection.isAnimationBlocked=!0,this.visualElement.projection.target=void 0),r4(e=>{let t=this.getAxisMotionValue(e).get()||0;if(eX.test(t)){let{projection:r}=this.visualElement;if(r&&r.layout){let n=r.layout.layoutBox[e];n&&(t=rq(n)*(parseFloat(t)/100))}}this.originPoint[e]=t}),i&&L.postRender(()=>i(e,t)),eb(this.visualElement,"transform");let{animationState:s}=this.visualElement;s&&s.setActive("whileDrag",!0)},onMove:(e,t)=>{let{dragPropagation:r,dragDirectionLock:n,onDirectionLock:i,onDrag:s}=this.getProps();if(!r&&!this.openDragLock)return;let{offset:a}=t;if(n&&null===this.currentDirection){this.currentDirection=function(e,t=10){let r=null;return Math.abs(e.y)>t?r="y":Math.abs(e.x)>t&&(r="x"),r}(a),null!==this.currentDirection&&i&&i(this.currentDirection);return}this.updateAxis("x",t.point,a),this.updateAxis("y",t.point,a),this.visualElement.render(),s&&s(e,t)},onSessionEnd:(e,t)=>this.stop(e,t),resumeAnimation:()=>r4(e=>"paused"===this.getAnimationState(e)&&this.getAxisMotionValue(e).animation?.play())},{transformPagePoint:this.visualElement.getTransformPagePoint(),dragSnapToOrigin:n,contextWindow:no(this.visualElement)})}stop(e,t){let r=this.isDragging;if(this.cancel(),!r)return;let{velocity:n}=t;this.startAnimation(n);let{onDragEnd:i}=this.getProps();i&&L.postRender(()=>i(e,t))}cancel(){this.isDragging=!1;let{projection:e,animationState:t}=this.visualElement;e&&(e.isAnimationBlocked=!1),this.panSession&&this.panSession.end(),this.panSession=void 0;let{dragPropagation:r}=this.getProps();!r&&this.openDragLock&&(this.openDragLock(),this.openDragLock=null),t&&t.setActive("whileDrag",!1)}updateAxis(e,t,r){let{drag:n}=this.getProps();if(!r||!nw(e,n,this.currentDirection))return;let i=this.getAxisMotionValue(e),s=this.originPoint[e]+r[e];this.constraints&&this.constraints[e]&&(s=function(e,{min:t,max:r},n){return void 0!==t&&e<t?e=n?tG(t,e,n.min):Math.max(e,t):void 0!==r&&e>r&&(e=n?tG(r,e,n.max):Math.min(e,r)),e}(s,this.constraints[e],this.elastic[e])),i.set(s)}resolveConstraints(){let{dragConstraints:e,dragElastic:t}=this.getProps(),r=this.visualElement.projection&&!this.visualElement.projection.layout?this.visualElement.projection.measure(!1):this.visualElement.projection?.layout,n=this.constraints;e&&nl(e)?this.constraints||(this.constraints=this.resolveRefConstraints()):e&&r?this.constraints=function(e,{top:t,left:r,bottom:n,right:i}){return{x:ng(e.x,r,i),y:ng(e.y,t,n)}}(r.layoutBox,e):this.constraints=!1,this.elastic=function(e=.35){return!1===e?e=0:!0===e&&(e=.35),{x:nb(e,"left","right"),y:nb(e,"top","bottom")}}(t),n!==this.constraints&&r&&this.constraints&&!this.hasMutatedConstraints&&r4(e=>{!1!==this.constraints&&this.getAxisMotionValue(e)&&(this.constraints[e]=function(e,t){let r={};return void 0!==t.min&&(r.min=t.min-e.min),void 0!==t.max&&(r.max=t.max-e.min),r}(r.layoutBox[e],this.constraints[e]))})}resolveRefConstraints(){var e;let{dragConstraints:t,onMeasureDragConstraints:r}=this.getProps();if(!t||!nl(t))return!1;let n=t.current;o(null!==n,"If `dragConstraints` is set as a React ref, that ref must be passed to another component's `ref` prop.");let{projection:i}=this.visualElement;if(!i||!i.layout)return!1;let s=function(e,t,r){let n=na(e,r),{scroll:i}=t;return i&&(nn(n.x,i.offset.x),nn(n.y,i.offset.y)),n}(n,i.root,this.visualElement.getTransformPagePoint()),a={x:nm((e=i.layout.layoutBox).x,s.x),y:nm(e.y,s.y)};if(r){let e=r(function({x:e,y:t}){return{top:t.min,right:e.max,bottom:t.max,left:e.min}}(a));this.hasMutatedConstraints=!!e,e&&(a=rX(e))}return a}startAnimation(e){let{drag:t,dragMomentum:r,dragElastic:n,dragTransition:i,dragSnapToOrigin:s,onDragTransitionEnd:a}=this.getProps(),o=this.constraints||{};return Promise.all(r4(a=>{if(!nw(a,t,this.currentDirection))return;let l=o&&o[a]||{};s&&(l={min:0,max:0});let u={type:"inertia",velocity:r?e[a]:0,bounceStiffness:n?200:1e6,bounceDamping:n?40:1e7,timeConstant:750,restDelta:1,restSpeed:10,...i,...l};return this.startAxisValueAnimation(a,u)})).then(a)}startAxisValueAnimation(e,t){let r=this.getAxisMotionValue(e);return eb(this.visualElement,e),r.start(rT(e,r,0,t,this.visualElement,!1))}stopAnimation(){r4(e=>this.getAxisMotionValue(e).stop())}pauseAnimation(){r4(e=>this.getAxisMotionValue(e).animation?.pause())}getAnimationState(e){return this.getAxisMotionValue(e).animation?.state}getAxisMotionValue(e){let t=`_drag${e.toUpperCase()}`,r=this.visualElement.getProps();return r[t]||this.visualElement.getValue(e,(r.initial?r.initial[e]:void 0)||0)}snapToCursor(e){r4(t=>{let{drag:r}=this.getProps();if(!nw(t,r,this.currentDirection))return;let{projection:n}=this.visualElement,i=this.getAxisMotionValue(t);if(n&&n.layout){let{min:r,max:s}=n.layout.layoutBox[t];i.set(e[t]-tG(r,s,.5))}})}scalePositionWithinConstraints(){if(!this.visualElement.current)return;let{drag:e,dragConstraints:t}=this.getProps(),{projection:r}=this.visualElement;if(!nl(t)||!r||!this.constraints)return;this.stopAnimation();let n={x:0,y:0};r4(e=>{let t=this.getAxisMotionValue(e);if(t&&!1!==this.constraints){let r=t.get();n[e]=function(e,t){let r=.5,n=rq(e),i=rq(t);return i>n?r=h(t.min,t.max-n,e.min):n>i&&(r=h(e.min,e.max-i,t.min)),eI(0,1,r)}({min:r,max:r},this.constraints[e])}});let{transformTemplate:i}=this.visualElement.getProps();this.visualElement.current.style.transform=i?i({},""):"none",r.root&&r.root.updateScroll(),r.updateLayout(),this.resolveConstraints(),r4(t=>{if(!nw(t,e,null))return;let r=this.getAxisMotionValue(t),{min:i,max:s}=this.constraints[t];r.set(tG(i,s,n[t]))})}addListeners(){if(!this.visualElement.current)return;nv.set(this.visualElement,this);let e=rY(this.visualElement.current,"pointerdown",e=>{let{drag:t,dragListener:r=!0}=this.getProps();t&&r&&this.start(e)}),t=()=>{let{dragConstraints:e}=this.getProps();nl(e)&&e.current&&(this.constraints=this.resolveRefConstraints())},{projection:r}=this.visualElement,n=r.addEventListener("measure",t);r&&!r.layout&&(r.root&&r.root.updateScroll(),r.updateLayout()),L.read(t);let i=rH(window,"resize",()=>this.scalePositionWithinConstraints()),s=r.addEventListener("didUpdate",({delta:e,hasLayoutChanged:t})=>{this.isDragging&&t&&(r4(t=>{let r=this.getAxisMotionValue(t);r&&(this.originPoint[t]+=e[t].translate,r.set(r.get()+e[t].translate))}),this.visualElement.render())});return()=>{i(),e(),n(),s&&s()}}getProps(){let e=this.visualElement.getProps(),{drag:t=!1,dragDirectionLock:r=!1,dragPropagation:n=!1,dragConstraints:i=!1,dragElastic:s=.35,dragMomentum:a=!0}=e;return{...e,drag:t,dragDirectionLock:r,dragPropagation:n,dragConstraints:i,dragElastic:s,dragMomentum:a}}}function nw(e,t,r){return(!0===t||t===e)&&(null===r||r===e)}class nS extends rz{constructor(e){super(e),this.removeGroupControls=c,this.removeListeners=c,this.controls=new nx(e)}mount(){let{dragControls:e}=this.node.getProps();e&&(this.removeGroupControls=e.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||c}unmount(){this.removeGroupControls(),this.removeListeners()}}let nk=e=>(t,r)=>{e&&L.postRender(()=>e(t,r))};
5class nP extends rz{constructor(){super(...arguments),this.removePointerDownListener=c}onPointerDown(e){this.session=new nc(e,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint(),contextWindow:no(this.node)})}createPanHandlers(){let{onPanSessionStart:e,onPanStart:t,onPan:r,onPanEnd:n}=this.node.getProps();return{onSessionStart:nk(e),onStart:nk(t),onMove:r,onEnd:(e,t)=>{delete this.session,n&&L.postRender(()=>n(e,t))}}}mount(){this.removePointerDownListener=rY(this.node.current,"pointerdown",e=>this.onPointerDown(e))}update(){this.session&&this.session.updateHandlers(this.createPanHandlers())}unmount(){this.removePointerDownListener(),this.session&&this.session.end()}}var nA,nE,nT=r(22342),nM=r(33670),nC=r(32082),nR=r(90869);let nj=(0,nM.createContext)({}),nO={hasAnimatedSinceResize:!0,hasEverUpdated:!1};function nI(e,t){return t.max===t.min?0:e/(t.max-t.min)*100}let nV={correct:(e,t)=>{if(!t.target)return e;if("string"==typeof e)if(!eq.test(e))return e;else e=parseFloat(e);let r=nI(e,t.target.x),n=nI(e,t.target.y);return`${r}% ${n}%`}},nD={};class nL extends nM.Component{componentDidMount(){let{visualElement:e,layoutGroup:t,switchLayoutGroup:r,layoutId:n}=this.props,{projection:i}=e;for(let e in n_)nD[e]=n_[e],tI(e)&&(nD[e].isCSSVariable=!0);i&&(t.group&&t.group.add(i),r&&r.register&&n&&r.register(i),i.root.didUpdate(),i.addEventListener("animationComplete",()=>{this.safeToRemove()}),i.setOptions({...i.options,onExitComplete:()=>this.safeToRemove()})),nO.hasEverUpdated=!0}getSnapshotBeforeUpdate(e){let{layoutDependency:t,visualElement:r,drag:n,isPresent:i}=this.props,s=r.projection;return s&&(s.isPresent=i,n||e.layoutDependency!==t||void 0===t||e.isPresent!==i?s.willUpdate():this.safeToRemove(),e.isPresent===i||(i?s.promote():s.relegate()||L.postRender(()=>{let e=s.getStack();e&&e.members.length||this.safeToRemove()}))),null}componentDidUpdate(){let{projection:e}=this.props.visualElement;e&&(e.root.didUpdate(),z.postRender(()=>{!e.currentAnimation&&e.isLead()&&this.safeToRemove()}))}componentWillUnmount(){let{visualElement:e,layoutGroup:t,switchLayoutGroup:r}=this.props,{projection:n}=e;n&&(n.scheduleCheckAfterUnmount(),t&&t.group&&t.group.remove(n),r&&r.deregister&&r.deregister(n))}safeToRemove(){let{safeToRemove:e}=this.props;e&&e()}render(){return null}}function n$(e){let[t,r]=(0,nC.xQ)(),n=(0,nM.useContext)(nR.L);return(0,nT.jsx)(nL,{...e,layoutGroup:n,switchLayoutGroup:(0,nM.useContext)(nj),isPresent:t,safeToRemove:r})}let n_={borderRadius:{...nV,applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]},borderTopLeftRadius:nV,borderTopRightRadius:nV,borderBottomLeftRadius:nV,borderBottomRightRadius:nV,boxShadow:{correct:(e,{treeScale:t,projectionDelta:r})=>{let n=e7.parse(e);if(n.length>5)return e;let i=e7.createTransformer(e),s=+("number"!=typeof n[0]),a=r.x.scale*t.x,o=r.y.scale*t.y;n[0+s]/=a,n[1+s]/=o;let l=tG(a,o,.5);return"number"==typeof n[2+s]&&(n[2+s]/=l),"number"==typeof n[3+s]&&(n[3+s]/=l),i(n)}}},nF=(e,t)=>e.depth-t.depth;class nz{constructor(){this.children=[],this.isDirty=!1}add(e){i(this.children,e),this.isDirty=!0}remove(e){s(this.children,e),this.isDirty=!0}forEach(e){this.isDirty&&this.children.sort(nF),this.isDirty=!1,this.children.forEach(e)}}function nB(e){let t=em(e)?e.get():e;return ep(t)?t.toValue():t}let nN=["TopLeft","TopRight","BottomLeft","BottomRight"],nU=nN.length,nH=e=>"string"==typeof e?parseFloat(e):e,nW=e=>"number"==typeof e||eq.test(e);function nG(e,t){return void 0!==e[t]?e[t]:e.borderRadius}let nY=nq(0,.5,eR),nX=nq(.5,.95,c);function nq(e,t,r){return n=>n<e?0:n>
5t?1:r(h(e,t,n))}function nK(e,t){e.min=t.min,e.max=t.max}function nZ(e,t){nK(e.x,t.x),nK(e.y,t.y)}function nJ(e,t){e.translate=t.translate,e.scale=t.scale,e.originPoint=t.originPoint,e.origin=t.origin}function nQ(e,t,r,n,i){return e-=t,e=n+1/r*(e-n),void 0!==i&&(e=n+1/i*(e-n)),e}function n0(e,t,[r,n,i],s,a){!function(e,t=0,r=1,n=.5,i,s=e,a=e){if(eX.test(t)&&(t=parseFloat(t),t=tG(a.min,a.max,t/100)-a.min),"number"!=typeof t)return;let o=tG(s.min,s.max,n);e===s&&(o-=t),e.min=nQ(e.min,t,r,o,i),e.max=nQ(e.max,t,r,o,i)}(e,t[r],t[n],t[i],t.scale,s,a)}let n1=["x","scaleX","originX"],n2=["y","scaleY","originY"];function n5(e,t,r,n){n0(e.x,t,n1,r?r.x:void 0,n?n.x:void 0),n0(e.y,t,n2,r?r.y:void 0,n?n.y:void 0)}function n3(e){return 0===e.translate&&1===e.scale}function n4(e){return n3(e.x)&&n3(e.y)}function n8(e,t){return e.min===t.min&&e.max===t.max}function n6(e,t){return Math.round(e.min)===Math.round(t.min)&&Math.round(e.max)===Math.round(t.max)}function n9(e,t){return n6(e.x,t.x)&&n6(e.y,t.y)}function n7(e){return rq(e.x)/rq(e.y)}function ie(e,t){return e.translate===t.translate&&e.scale===t.scale&&e.originPoint===t.originPoint}class it{constructor(){this.members=[]}add(e){i(this.members,e),e.scheduleRender()}remove(e){if(s(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,r=this.members.findIndex(t=>e===t);if(0===r)return!1;for(let e=r;e>=0;e--){let r=this.members[e];if(!1!==r.isPresent){t=r;break}}return!!t&&(this.promote(t),!0)}promote(e,t){let r=this.lead;if(e!==r&&(this.prevLead=r,this.lead=e,e.show(),r)){r.instance&&r.scheduleRender(),e.scheduleRender(),e.resumeFrom=r,t&&(e.resumeFrom.preserveOpacity=!0),r.snapshot&&(e.snapshot=r.snapshot,e.snapshot.latestValues=r.animationValues||r.latestValues),e.root&&e.root.isUpdating&&(e.isLayoutDirty=!0);let{crossfade:n}=e.options;!1===n&&r.hide()}}exitAnimationComplete(){this.members.forEach(e=>{let{options:t,resumingFrom:r}=e;t.onExitComplete&&t.onExitComplete(),r&&r.options.onExitComplete&&r.options.onExitComplete()})}scheduleRender(){this.members.forEach(e=>{e.instance&&e.scheduleRender(!1)})}removeLeadSnapshot(){this.lead&&this.lead.snapshot&&(this.lead.snapshot=void 0)}}let ir={nodes:0,calculatedTargetDeltas:0,calculatedProjections:0},ii=["","X","Y","Z"],is={visibility:"hidden"},ia=0;function io(e,t,r,n){let{latestValues:i}=t;i[e]&&(r[e]=i[e],t.setStaticValue(e,0),n&&(n[e]=0))}function il({attachResizeListener:e,defaultParent:t,measureScroll:r,checkIsScrollRoot:n,resetTransform:i}){return class{constructor(e={},r=t?.()){this.id=ia++,this.animationId=0,this.children=new Set,this.options={},this.isTreeAnimating=!1,this.isAnimationBlocked=!1,this.isLayoutDirty=!1,this.isProjectionDirty=!1,this.isSharedProjectionDirty=!1,this.isTransformDirty=!1,this.updateManuallyBlocked=!1,this.updateBlockedByResize=!1,this.isUpdating=!1,this.isSVG=!1,this.needsReset=!1,this.shouldResetTransform=!1,this.hasCheckedOptimisedAppear=!1,this.treeScale={x:1,y:1},this.eventHandlers=new Map,this.hasTreeAnimated=!1,this.updateScheduled=!1,this.scheduleUpdate=()=>this.update(),this.projectionUpdateScheduled=!1,this.checkUpdateFailed=()=>{this.isUpdating&&(this.isUpdating=!1,this.clearAllSnapshots())},this.updateProjection=()=>{this.projectionUpdateScheduled=!1,k.value&&(ir.nodes=ir.calculatedTargetDeltas=ir.calculatedProjections=0),this.nodes.forEach(ih),this.nodes.forEach(iv),this.nodes.forEach(ix),this.nodes.forEach(id),k.addProjectionMetrics&&k.addProjectionMetrics(ir)},this.resolvedRelativeTargetAt=0,this.hasProjected=!1,this.isVisible=!0,this.animationProgress=0,this.sharedNodes=new Map,this.latestValues=e,this.root=r?r.root||r:this,this.path=r?[...r.path,r]:[],this.parent=r,this.depth=r?r.depth+1:0;for(let e=0;e<this.path.length;e++)this.path[e].shouldResetTransform=!0;this.root===this&&(this.nodes=new nz)}addEventListener(e,t){return this.eventHandlers.has(e)||this.eventHandlers.set(e,new d),this.eventHandlers.get(e).add(t)}notifyListeners(e,...t){let r=this.eventHandlers.get(e);r&&r.notify(...t)}hasListeners(e){return this.eventHandlers.has(e)}mount(t,r=this.root.hasTreeAnimated){if(this.instance)return;this.isSVG=t instanceof SVGElement&&"svg"!==t.tagName,this.instance=t;let{layoutId:n,layout:i,visualElement:s}=this.options;if(s&&!s.current&&s.mount(t),this.root.nodes.add(this),this.parent&&this.parent.children.add(this),r&&(i||n)&&(this.isLayoutDirty=!0),e){let r,n=()=>this.root.updateBlockedByResize=!1;e(t,()=>{this.root.updateBlockedByResize=!0,r&&r(),r=function(e,t){let r=N.now(),n=({timestamp:i})=>{let s=i-r;s>=250&&($(n),e(s-t))};return L.read(n,!0),()=>$(n)}(n,250),nO.hasAnimatedSinceResize&&(nO.hasAnimatedSinceResize=!1,this.nodes.forEac
5h(iy))})}n&&this.root.registerSharedNode(n,this),!1!==this.options.animate&&s&&(n||i)&&this.addEventListener("didUpdate",({delta:e,hasLayoutChanged:t,hasRelativeLayoutChanged:r,layout:n})=>{if(this.isTreeAnimationBlocked()){this.target=void 0,this.relativeTarget=void 0;return}let i=this.options.transition||s.getDefaultTransition()||iE,{onLayoutAnimationStart:a,onLayoutAnimationComplete:o}=s.getProps(),l=!this.targetLayout||!n9(this.targetLayout,n),u=!t&&r;if(this.options.layoutRoot||this.resumeFrom||u||t&&(l||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0),this.setAnimationOrigin(e,u);let t={...R(i,"layout"),onPlay:a,onComplete:o};(s.shouldReduceMotion||this.options.layoutRoot)&&(t.delay=0,t.type=!1),this.startAnimation(t)}else t||iy(this),this.isLead()&&this.options.onExitComplete&&this.options.onExitComplete();this.targetLayout=n})}unmount(){this.options.layoutId&&this.willUpdate(),this.root.nodes.remove(this);let e=this.getStack();e&&e.remove(this),this.parent&&this.parent.children.delete(this),this.instance=void 0,$(this.updateProjection)}blockUpdate(){this.updateManuallyBlocked=!0}unblockUpdate(){this.updateManuallyBlocked=!1}isUpdateBlocked(){return this.updateManuallyBlocked||this.updateBlockedByResize}isTreeAnimationBlocked(){return this.isAnimationBlocked||this.parent&&this.parent.isTreeAnimationBlocked()||!1}startUpdate(){!this.isUpdateBlocked()&&(this.isUpdating=!0,this.nodes&&this.nodes.forEach(iw),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:r}=t.options;if(!r)return;let n=r.props[ev];if(window.MotionHasOptimisedAnimation(n,"transform")){let{layout:e,layoutId:r}=t.options;window.MotionCancelOptimisedAnimation(n,"transform",L,!(e||r))}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:r}=this.options;if(void 0===t&&!r)return;let n=this.getTransformTemplate();this.prevTransformTemplateValue=n?n(this.latestValues,""):void 0,this.updateSnapshot(),e&&this.notifyListeners("willUpdate")}update(){if(this.updateScheduled=!1,this.isUpdateBlocked()){this.unblockUpdate(),this.clearAllSnapshots(),this.nodes.forEach(ig);return}this.isUpdating||this.nodes.forEach(im),this.isUpdating=!1,this.nodes.forEach(ib),this.nodes.forEach(iu),this.nodes.forEach(ic),this.clearAllSnapshots();let e=N.now();_.delta=eI(0,1e3/60,e-_.timestamp),_.timestamp=e,_.isProcessing=!0,F.update.process(_),F.preRender.process(_),F.render.process(_),_.isProcessing=!1}didUpdate(){this.updateScheduled||(this.updateScheduled=!0,z.read(this.scheduleUpdate))}clearAllSnapshots(){this.nodes.forEach(ip),this.sharedNodes.forEach(iS)}scheduleUpdateProjection(){this.projectionUpdateScheduled||(this.projectionUpdateScheduled=!0,L.preRender(this.updateProjection,!1,!0))}scheduleCheckAfterUnmount(){L.postRender(()=>{this.isLayoutDirty?this.root.didUpdate():this.root.checkUpdateFailed()})}updateSnapshot(){this.snapshot||!this.instance||(this.snapshot=this.measure(),!this.snapshot||rq(this.snapshot.measuredBox.x)||rq(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.layoutCorrected=r3(),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){let t=n(this.instance);this.scroll={animationId:this.root.animationId,phase:e,isRoot:t,offset:r(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&&!n4(this.projectionDelta),r=this.getTransformTemplate(),n=r?r(this.latestValues,""):void 0,s=n!==this.prevTransformTemplateValue;e&&(t||r9(this.latestValues)||s)&&(i(this.instance,n),this.shouldResetTransform=!1,this.scheduleRender())}measure(e=!0){var t;let r=this.measurePageBox(),n=this.removeElementScroll(r);return e&&(n=this.removeTransform(n)),iC((t=n).x),iC(t.y),{animationId:this.root.animationId,measuredBox:r,layoutBox:n,latestValues:{},source:this.id}}measurePageBox(){let{visualElement:e}=this.options;if(!e)return r3();let t=e.measureViewportBox();if(!(this.scroll?.wasRoot||this.path.some(ij))){let{scroll:e}=this.root;e&&(nn(t.x,e.offset.x),nn(t.y,e.offset.y))}return t}removeElementScroll(e){let t=r3();if(nZ(t,e),this.scroll?.wasRoot)return t;for(let r=0;r<this.path.length;r++){let n=this.path[r],{scroll:i,options:s}=n;n!==this.root&&i&&s.layoutScroll&&(i.wasRoot&&nZ(t,e),nn(t.x,i.offset.x),nn(t.y,i.offset.y))}return t}applyTransform(e,t=!1){let r=r3();nZ(r,e);for(let e=0;e<this.path.length;e++){let n=this.path[e];!t&&n.options.layoutScroll&&n.scroll&&n!==n.root&&ns(r,{x:-n.scroll.offset.x,y:-n.scroll.offset.y}),r9(n.latestValues)&&ns(r,n.latestValues)}return r9(this.latestValues)&&ns(r,this.latestValues),r}removeTransform(e){let t=r3();nZ(t,e);for(let e=0;e<this.path.length;e++){let r=this.path[e];if(!r.instance||!r9(r.latestValues))continue;r6(r.latestValues)&&r.updateSnapshot();let n=r3();nZ(n,r.measurePageBox()),n5(t,r.latestValues,r.snapshot?r.snapshot.layoutBox:void 0,n)}return r9(this.latestValues)&&n5(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!==_.timestamp&&this.relativeParent.resolveTargetDelta(!0)}resolveTargetDelta(e=!1){let t=this.getLead();this.isProjectionDirty||(this.isProjectionDirty=t.isProjectionDirty),this.isTransformDirty||(this.isTransformDirty=t.
5isTransformDirty),this.isSharedProjectionDirty||(this.isSharedProjectionDirty=t.isSharedProjectionDirty);let r=!!this.resumingFrom||this!==t;if(!(e||r&&this.isSharedProjectionDirty||this.isProjectionDirty||this.parent?.isProjectionDirty||this.attemptToResolveRelativeTarget||this.root.updateBlockedByResize))return;let{layout:n,layoutId:i}=this.options;if(this.layout&&(n||i)){if(this.resolvedRelativeTargetAt=_.timestamp,!this.targetDelta&&!this.relativeTarget){let e=this.getClosestProjectingParent();e&&e.layout&&1!==this.animationProgress?(this.relativeParent=e,this.forceRelativeParentToResolveTarget(),this.relativeTarget=r3(),this.relativeTargetOrigin=r3(),r0(this.relativeTargetOrigin,this.layout.layoutBox,e.layout.layoutBox),nZ(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}if(this.relativeTarget||this.targetDelta){if(this.target||(this.target=r3(),this.targetWithTransforms=r3()),this.relativeTarget&&this.relativeTargetOrigin&&this.relativeParent&&this.relativeParent.target){var s,a,o;this.forceRelativeParentToResolveTarget(),s=this.target,a=this.relativeTarget,o=this.relativeParent.target,rJ(s.x,a.x,o.x),rJ(s.y,a.y,o.y)}else this.targetDelta?(this.resumingFrom?this.target=this.applyTransform(this.layout.layoutBox):nZ(this.target,this.layout.layoutBox),nr(this.target,this.targetDelta)):nZ(this.target,this.layout.layoutBox);if(this.attemptToResolveRelativeTarget){this.attemptToResolveRelativeTarget=!1;let e=this.getClosestProjectingParent();e&&!!e.resumingFrom==!!this.resumingFrom&&!e.options.layoutScroll&&e.target&&1!==this.animationProgress?(this.relativeParent=e,this.forceRelativeParentToResolveTarget(),this.relativeTarget=r3(),this.relativeTargetOrigin=r3(),r0(this.relativeTargetOrigin,this.target,e.target),nZ(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}k.value&&ir.calculatedTargetDeltas++}}}getClosestProjectingParent(){if(!(!this.parent||r6(this.parent.latestValues)||r7(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)}calcProjection(){let e=this.getLead(),t=!!this.resumingFrom||this!==e,r=!0;if((this.isProjectionDirty||this.parent?.isProjectionDirty)&&(r=!1),t&&(this.isSharedProjectionDirty||this.isTransformDirty)&&(r=!1),this.resolvedRelativeTargetAt===_.timestamp&&(r=!1),r)return;let{layout:n,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||!(n||i))return;nZ(this.layoutCorrected,this.layout.layoutBox);let s=this.treeScale.x,a=this.treeScale.y;!function(e,t,r,n=!1){let i,s,a=r.length;if(a){t.x=t.y=1;for(let o=0;o<a;o++){s=(i=r[o]).projectionDelta;let{visualElement:a}=i.options;(!a||!a.props.style||"contents"!==a.props.style.display)&&(n&&i.options.layoutScroll&&i.scroll&&i!==i.root&&ns(e,{x:-i.scroll.offset.x,y:-i.scroll.offset.y}),s&&(t.x*=s.x.scale,t.y*=s.y.scale,nr(e,s)),n&&r9(i.latestValues)&&ns(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=r3());let{target:o}=e;if(!o){this.prevProjectionDelta&&(this.createProjectionDeltas(),this.scheduleRender());return}this.projectionDelta&&this.prevProjectionDelta?(nJ(this.prevProjectionDelta.x,this.projectionDelta.x),nJ(this.prevProjectionDelta.y,this.projectionDelta.y)):this.createProjectionDeltas(),rZ(this.projectionDelta,this.layoutCorrected,o,this.latestValues),this.treeScale.x===s&&this.treeScale.y===a&&ie(this.projectionDelta.x,this.prevProjectionDelta.x)&&ie(this.projectionDelta.y,this.prevProjectionDelta.y)||(this.hasProjected=!0,this.scheduleRender(),this.notifyListeners("projectionUpdate",o)),k.value&&ir.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=r2(),this.projectionDelta=r2(),this.projectionDeltaWithTransform=r2()}setAnimationOrigin(e,t=!1){let r,n=this.snapshot,i=n?n.latestValues:{},s={...this.latestValues},a=r2();this.relativeParent&&this.relativeParent.options.layoutRoot||(this.relativeTarget=this.relativeTargetOrigin=void 0),this.attemptToResolveRelativeTarget=!t;let o=r3(),l=(n?n.source:void 0)!==(this.layout?this.layout.source:void 0),u=this.getStack(),c=!u||u.members.length<=1,h=!!(l&&!c&&!0===this.options.crossfade&&!this.path.some(iA));this.animationProgress=0,this.mixTargetDelta=t=>{let n=t/1e3;if(ik(a.x,e.x,n),ik(a.y,e.y,n),this.setTargetDelta(a),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout){var u,d,f,p,g,m;if(r0(o,this.layout.layoutBox,this.relativeParent.layout.layoutBox),f=this.relativeTarget,p=this.relativeTargetOrigin,g=o,m=n,iP(f.x,p.x,g.x,m),iP(f.y,p.y,g.y,m),r&&(u=this.relativeTarget,d=r,n8(u.x,d.x)&&n8(u.y,d.y)))this.isProjectionDirty=!1;r||(r=r3()),nZ(r,this.relativeTarget)}l&&(this.animationValues=s,function(e,t,r,n,i,s){i?(e.opacity=tG(0,void 0!==r.opacity?r.opacity:1,nY(n)),e.opacityExit=tG(void 0!==t.opacity?t.opacity:1,0,nX(n))
5):s&&(e.opacity=tG(void 0!==t.opacity?t.opacity:1,void 0!==r.opacity?r.opacity:1,n));for(let i=0;i<nU;i++){let s=`border${nN[i]}Radius`,a=nG(t,s),o=nG(r,s);(void 0!==a||void 0!==o)&&(a||(a=0),o||(o=0),0===a||0===o||nW(a)===nW(o)?(e[s]=Math.max(tG(nH(a),nH(o),n),0),(eX.test(o)||eX.test(a))&&(e[s]+="%")):e[s]=o)}(t.rotate||r.rotate)&&(e.rotate=tG(t.rotate||0,r.rotate||0,n))}(s,i,this.latestValues,n,h,c)),this.root.scheduleUpdateProjection(),this.scheduleRender(),this.animationProgress=n},this.mixTargetDelta(1e3*!!this.options.layoutRoot)}startAnimation(e){this.notifyListeners("animationStart"),this.currentAnimation&&this.currentAnimation.stop(),this.resumingFrom&&this.resumingFrom.currentAnimation&&this.resumingFrom.currentAnimation.stop(),this.pendingAnimation&&($(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=L.update(()=>{nO.hasAnimatedSinceResize=!0,S.layout++,this.currentAnimation=function(e,t,r){let n=em(0)?0:eo(e);return n.start(rT("",n,1e3,r)),n.animation}(0,0,{...e,onUpdate:t=>{this.mixTargetDelta(t),e.onUpdate&&e.onUpdate(t)},onStop:()=>{S.layout--},onComplete:()=>{S.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:r,layout:n,latestValues:i}=e;if(t&&r&&n){if(this!==e&&this.layout&&n&&iR(this.options.animationType,this.layout.layoutBox,n.layoutBox)){r=this.target||r3();let t=rq(this.layout.layoutBox.x);r.x.min=e.target.x.min,r.x.max=r.x.min+t;let n=rq(this.layout.layoutBox.y);r.y.min=e.target.y.min,r.y.max=r.y.min+n}nZ(t,r),ns(t,i),rZ(this.projectionDeltaWithTransform,this.layoutCorrected,t,i)}}registerSharedNode(e,t){this.sharedNodes.has(e)||this.sharedNodes.set(e,new it),this.sharedNodes.get(e).add(t);let r=t.options.initialPromotionConfig;t.promote({transition:r?r.transition:void 0,preserveFollowOpacity:r&&r.shouldPreserveFollowOpacity?r.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:r}={}){let n=this.getStack();n&&n.promote(this,r),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:r}=e;if((r.z||r.rotate||r.rotateX||r.rotateY||r.rotateZ||r.skewX||r.skewY)&&(t=!0),!t)return;let n={};r.z&&io("z",e,n,this.animationValues);for(let t=0;t<ii.length;t++)io(`rotate${ii[t]}`,e,n,this.animationValues),io(`skew${ii[t]}`,e,n,this.animationValues);for(let t in e.render(),n)e.setStaticValue(t,n[t]),this.animationValues&&(this.animationValues[t]=n[t]);e.scheduleRender()}getProjectionStyles(e){if(!this.instance||this.isSVG)return;if(!this.isVisible)return is;let t={visibility:""},r=this.getTransformTemplate();if(this.needsReset)return this.needsReset=!1,t.opacity="",t.pointerEvents=nB(e?.pointerEvents)||"",t.transform=r?r(this.latestValues,""):"none",t;let n=this.getLead();if(!this.projectionDelta||!this.layout||!n.target){let t={};return this.options.layoutId&&(t.opacity=void 0!==this.latestValues.opacity?this.latestValues.opacity:1,t.pointerEvents=nB(e?.pointerEvents)||""),this.hasProjected&&!r9(this.latestValues)&&(t.transform=r?r({},""):"none",this.hasProjected=!1),t}let i=n.animationValues||n.latestValues;this.applyTransformsToTarget(),t.transform=function(e,t,r){let n="",i=e.x.translate/t.x,s=e.y.translate/t.y,a=r?.z||0;if((i||s||a)&&(n=`translate3d(${i}px, ${s}px, ${a}px) `),(1!==t.x||1!==t.y)&&(n+=`scale(${1/t.x}, ${1/t.y}) `),r){let{transformPerspective:e,rotate:t,rotateX:i,rotateY:s,skewX:a,skewY:o}=r;e&&(n=`perspective(${e}px) ${n}`),t&&(n+=`rotate(${t}deg) `),i&&(n+=`rotateX(${i}deg) `),s&&(n+=`rotateY(${s}deg) `),a&&(n+=`skewX(${a}deg) `),o&&(n+=`skewY(${o}deg) `)}let o=e.x.scale*t.x,l=e.y.scale*t.y;return(1!==o||1!==l)&&(n+=`scale(${o}, ${l})`),n||"none"}(this.projectionDeltaWithTransform,this.treeScale,i),r&&(t.transform=r(i,t.transform));let{x:s,y:a}=this.projectionDelta;for(let e in t.transformOrigin=`${100*s.origin}% ${100*a.origin}% 0`,n.animationValues?t.opacity=n===this?i.opacity??this.latestValues.opacity??1:this.preserveOpacity?this.latestValues.opacity:i.opacityExit:t.opacity=n===this?void 0!==i.opacity?i.opacity:"":void 0!==i.opacityExit?i.opacityExit:0,nD){if(void 0===i[e])continue;let{correct:r,applyTo:s,isCSSVariable:a}=nD[e],o="none"===t.transform?i[e]:r(i[e],n);if(s){let e=s.length;for(let r=0;r<e;r++)t[s[r]]=o}
5else a?this.options.visualElement.renderState.vars[e]=o:t[e]=o}return this.options.layoutId&&(t.pointerEvents=n===this?nB(e?.pointerEvents)||"":"none"),t}clearSnapshot(){this.resumeFrom=this.snapshot=void 0}resetTree(){this.root.nodes.forEach(e=>e.currentAnimation?.stop()),this.root.nodes.forEach(ig),this.root.sharedNodes.clear()}}}function iu(e){e.updateLayout()}function ic(e){let t=e.resumeFrom?.snapshot||e.snapshot;if(e.isLead()&&e.layout&&t&&e.hasListeners("didUpdate")){let{layoutBox:r,measuredBox:n}=e.layout,{animationType:i}=e.options,s=t.source!==e.layout.source;"size"===i?r4(e=>{let n=s?t.measuredBox[e]:t.layoutBox[e],i=rq(n);n.min=r[e].min,n.max=n.min+i}):iR(i,t.layoutBox,r)&&r4(n=>{let i=s?t.measuredBox[n]:t.layoutBox[n],a=rq(r[n]);i.max=i.min+a,e.relativeTarget&&!e.currentAnimation&&(e.isProjectionDirty=!0,e.relativeTarget[n].max=e.relativeTarget[n].min+a)});let a=r2();rZ(a,r,t.layoutBox);let o=r2();s?rZ(o,e.applyTransform(n,!0),t.measuredBox):rZ(o,r,t.layoutBox);let l=!n4(a),u=!1;if(!e.resumeFrom){let n=e.getClosestProjectingParent();if(n&&!n.resumeFrom){let{snapshot:i,layout:s}=n;if(i&&s){let a=r3();r0(a,t.layoutBox,i.layoutBox);let o=r3();r0(o,r,s.layoutBox),n9(a,o)||(u=!0),n.options.layoutRoot&&(e.relativeTarget=o,e.relativeTargetOrigin=a,e.relativeParent=n)}}}e.notifyListeners("didUpdate",{layout:r,snapshot:t,delta:o,layoutDelta:a,hasLayoutChanged:l,hasRelativeLayoutChanged:u})}else if(e.isLead()){let{onExitComplete:t}=e.options;t&&t()}e.options.transition=void 0}function ih(e){k.value&&ir.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 id(e){e.isProjectionDirty=e.isSharedProjectionDirty=e.isTransformDirty=!1}function ip(e){e.clearSnapshot()}function ig(e){e.clearMeasurements()}function im(e){e.isLayoutDirty=!1}function ib(e){let{visualElement:t}=e.options;t&&t.getProps().onBeforeLayoutMeasure&&t.notify("BeforeLayoutMeasure"),e.resetTransform()}function iy(e){e.finishAnimation(),e.targetDelta=e.relativeTarget=e.target=void 0,e.isProjectionDirty=!0}function iv(e){e.resolveTargetDelta()}function ix(e){e.calcProjection()}function iw(e){e.resetSkewAndRotation()}function iS(e){e.removeLeadSnapshot()}function ik(e,t,r){e.translate=tG(t.translate,0,r),e.scale=tG(t.scale,1,r),e.origin=t.origin,e.originPoint=t.originPoint}function iP(e,t,r,n){e.min=tG(t.min,r.min,n),e.max=tG(t.max,r.max,n)}function iA(e){return e.animationValues&&void 0!==e.animationValues.opacityExit}let iE={duration:.45,ease:[.4,0,.1,1]},iT=e=>"undefined"!=typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().includes(e),iM=iT("applewebkit/")&&!iT("chrome/")?Math.round:c;function iC(e){e.min=iM(e.min),e.max=iM(e.max)}function iR(e,t,r){return"position"===e||"preserve-aspect"===e&&!(.2>=Math.abs(n7(t)-n7(r)))}function ij(e){return e!==e.root&&e.scroll?.wasRoot}let iO=il({attachResizeListener:(e,t)=>rH(e,"resize",t),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body.scrollLeft,y:document.documentElement.scrollTop||document.body.scrollTop}),checkIsScrollRoot:()=>!0}),iI={current:void 0},iV=il({measureScroll:e=>({x:e.scrollLeft,y:e.scrollTop}),defaultParent:()=>{if(!iI.current){let e=new iO({});e.mount(window),e.setOptions({layoutScroll:!0}),iI.current=e}return iI.current},resetTransform:(e,t)=>{e.style.transform=void 0!==t?t:"none"},checkIsScrollRoot:e=>"fixed"===window.getComputedStyle(e).position});function iD(e,t,r){let{props:n}=e;e.animationState&&n.whileHover&&e.animationState.setActive("whileHover","Start"===r);let i=n["onHover"+r];i&&L.postRender(()=>i(t,rW(t)))}class iL extends rz{mount(){let{current:e}=this.node;e&&(this.unmount=function(e,t,r={}){let[n,i,s]=H(e,r),a=e=>{if(!W(e))return;let{target:r}=e,n=t(r,e);if("function"!=typeof n||!r)return;let s=e=>{W(e)&&(n(e),r.removeEventListener("pointerleave",s))};r.addEventListener("pointerleave",s,i)};
5return n.forEach(e=>{e.addEventListener("pointerenter",a,i)}),s}(e,(e,t)=>(iD(this.node,t,"Start"),e=>iD(this.node,e,"End"))))}unmount(){}}class i$ extends rz{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=t1(rH(this.node.current,"focus",()=>this.onFocus()),rH(this.node.current,"blur",()=>this.onBlur()))}unmount(){}}function i_(e,t,r){let{props:n}=e;if(e.current instanceof HTMLButtonElement&&e.current.disabled)return;e.animationState&&n.whileTap&&e.animationState.setActive("whileTap","Start"===r);let i=n["onTap"+("End"===r?"":r)];i&&L.postRender(()=>i(t,rW(t)))}class iF extends rz{mount(){let{current:e}=this.node;e&&(this.unmount=function(e,t,r={}){let[n,i,s]=H(e,r),a=e=>{let n=e.currentTarget;if(!Q(e)||q.has(n))return;q.add(n);let s=t(n,e),a=(e,t)=>{window.removeEventListener("pointerup",o),window.removeEventListener("pointercancel",l),Q(e)&&q.has(n)&&(q.delete(n),"function"==typeof s&&s(e,{success:t}))},o=e=>{a(e,n===window||n===document||r.useGlobalTarget||G(n,e.target))},l=e=>{a(e,!1)};window.addEventListener("pointerup",o,i),window.addEventListener("pointercancel",l,i)};return n.forEach(e=>{if((r.useGlobalTarget?window:e).addEventListener("pointerdown",a,i),e instanceof HTMLElement)e.addEventListener("focus",e=>J(e,i)),!X.has(e.tagName)&&-1===e.tabIndex&&!e.hasAttribute("tabindex")&&(e.tabIndex=0)}),s}(e,(e,t)=>(i_(this.node,t,"Start"),(e,{success:t})=>i_(this.node,e,t?"End":"Cancel")),{useGlobalTarget:this.node.props.globalTapTarget}))}unmount(){}}let iz=new WeakMap,iB=new WeakMap,iN=e=>{let t=iz.get(e.target);t&&t(e)},iU=e=>{e.forEach(iN)},iH={some:0,all:1};class iW extends rz{constructor(){super(...arguments),this.hasEnteredView=!1,this.isInView=!1}startObserver(){this.unmount();let{viewport:e={}}=this.node.getProps(),{root:t,margin:r,amount:n="some",once:i}=e,s={root:t?t.current:void 0,rootMargin:r,threshold:"number"==typeof n?n:iH[n]};return function(e,t,r){let n=function({root:e,...t}){let r=e||document;iB.has(r)||iB.set(r,{});let n=iB.get(r),i=JSON.stringify(t);return n[i]||(n[i]=new IntersectionObserver(iU,{root:e,...t})),n[i]}(t);return iz.set(e,r),n.observe(e),()=>{iz.delete(e),n.unobserve(e)}}(this.node.current,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:r,onViewportLeave:n}=this.node.getProps(),s=t?r:n;s&&s(e)})}mount(){this.startObserver()}update(){if("undefined"==typeof IntersectionObserver)return;let{props:e,prevProps:t}=this.node;["amount","margin","root"].some(function({viewport:e={}},{viewport:t={}}={}){return r=>e[r]!==t[r]}(e,t))&&this.startObserver()}unmount(){}}let iG=(0,nM.createContext)({strict:!1});var iY=r(51508);let iX=(0,nM.createContext)({});function iq(e){return g(e.animate)||rV.some(t=>rO(e[t]))}function iK(e){return!!(iq(e)||e.variants)}function iZ(e){return Array.isArray(e)?e.join(" "):e}var iJ=r(68972);let iQ={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"]},i0={};for(let e in iQ)i0[e]={isEnabled:t=>iQ[e].some(e=>!!t[e])};let i1=Symbol.for("motionComponentSymbol");var i2=r(80845),i5=r(97494);function i3(e,{layout:t,layoutId:r}){return eh.has(e)||e.startsWith("origin")||(t||void 0!==r)&&(!!nD[e]||"opacity"===e)}let i4=(e,t)=>t&&"number"==typeof e?t.transform(e):e,i8={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},i6=ec.length;function i9(e,t,r){let{style:n,vars:i,transformOrigin:s}=e,a=!1,o=!1;for(let e in t){let r=t[e];if(eh.has(e)){a=!0;continue}
5if(tI(e)){i[e]=r;continue}{let t=i4(r,ts[e]);e.startsWith("origin")?(o=!0,s[e]=t):n[e]=t}}if(!t.transform&&(a||r?n.transform=function(e,t,r){let n="",i=!0;for(let s=0;s<i6;s++){let a=ec[s],o=e[a];if(void 0===o)continue;let l=!0;if(!(l="number"==typeof o?o===+!!a.startsWith("scale"):0===parseFloat(o))||r){let e=i4(o,ts[a]);if(!l){i=!1;let t=i8[a]||a;n+=`${t}(${e}) `}r&&(t[a]=e)}}return n=n.trim(),r?n=r(t,i?"":n):i&&(n="none"),n}(t,e.transform,r):n.transform&&(n.transform="none")),o){let{originX:e="50%",originY:t="50%",originZ:r=0}=s;n.transformOrigin=`${e} ${t} ${r}`}}let i7=()=>({style:{},transform:{},transformOrigin:{},vars:{}});function se(e,t,r){for(let n in t)em(t[n])||i3(n,r)||(e[n]=t[n])}let st=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 sr(e){return e.startsWith("while")||e.startsWith("drag")&&"draggable"!==e||e.startsWith("layout")||e.startsWith("onTap")||e.startsWith("onPan")||e.startsWith("onLayout")||st.has(e)}let sn=e=>!sr(e);try{!function(e){e&&(sn=t=>t.startsWith("on")?!sr(t):e(t))}(require("@emotion/is-prop-valid").default)}catch{}let si=["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 ss(e){if("string"!=typeof e||e.includes("-"));else if(si.indexOf(e)>-1||/[A-Z]/u.test(e))return!0;return!1}let sa={offset:"stroke-dashoffset",array:"stroke-dasharray"},so={offset:"strokeDashoffset",array:"strokeDasharray"};function sl(e,t,r){return"string"==typeof e?e:eq.transform(t+r*e)}function su(e,{attrX:t,attrY:r,attrScale:n,originX:i,originY:s,pathLength:a,pathSpacing:o=1,pathOffset:l=0,...u},c,h){if(i9(e,u,h),c){e.style.viewBox&&(e.attrs.viewBox=e.style.viewBox);return}e.attrs=e.style,e.style={};let{attrs:d,style:f,dimensions:p}=e;d.transform&&(p&&(f.transform=d.transform),delete d.transform),p&&(void 0!==i||void 0!==s||f.transform)&&(f.transformOrigin=function(e,t,r){let n=sl(t,e.x,e.width),i=sl(r,e.y,e.height);return`${n} ${i}`}(p,void 0!==i?i:.5,void 0!==s?s:.5)),void 0!==t&&(d.x=t),void 0!==r&&(d.y=r),void 0!==n&&(d.scale=n),void 0!==a&&function(e,t,r=1,n=0,i=!0){e.pathLength=1;let s=i?sa:so;e[s.offset]=eq.transform(-n);let a=eq.transform(t),o=eq.transform(r);e[s.array]=`${a} ${o}`}(d,a,o,l,!1)}let sc=()=>({...i7(),attrs:{}}),sh=e=>"string"==typeof e&&"svg"===e.toLowerCase();var sd=r(82885);let sf=e=>(t,r)=>{let n=(0,nM.useContext)(iX),i=(0,nM.useContext)(i2.t),s=()=>(function({scrapeMotionValuesFromProps:e,createRenderState:t,onUpdate:r},n,i,s){let a={latestValues:function(e,t,r,n){let i={},s=n(e,{});for(let e in s)i[e]=nB(s[e]);let{initial:a,animate:o}=e,l=iq(e),u=iK(e);t&&u&&!l&&!1!==e.inherit&&(void 0===a&&(a=t.initial),void 0===o&&(o=t.animate));let c=!!r&&!1===r.initial,h=(c=c||!1===a)?o:a;if(h&&"boolean"!=typeof h&&!g(h)){let t=Array.isArray(h)?h:[h];for(let r=0;r<t.length;r++){let n=b(e,t[r]);if(n){let{transitionEnd:e,transition:t,...r}=n;for(let e in r){let t=r[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}(n,i,s,e),renderState:t()};return r&&(a.onMount=e=>r({props:n,current:e,...a}),a.onUpdate=e=>r(e)),a})(e,t,n,i);return r?s():(0,sd.M)(s)};function sp(e,t,r){let{style:n}=e,i={};for(let s in n)(em(n[s])||t.style&&em(t.style[s])||i3(s,e)||r?.getValue(s)?.liveStyle!==void 0)&&(i[s]=n[s]);return i}let sg={useVisualState:sf({scrapeMotionValuesFromProps:sp,createRenderState:i7})};function sm(e,t){try{t.dimensions="function"==typeof e.getBBox?e.getBBox():e.getBoundingClientRect()}catch(e){t.dimensions={x:0,y:0,width:0,height:0}}}function sb(e,{style:t,vars:r},n,i){for(let s in Object.assign(e.style,t,i&&i.getProjectionStyles(n)),r)e.style.setProperty(s,r[s])}let sy=new Set(["baseFrequency","diffuseConstant","kernelMatrix","kernelUnitLength","keySplines","keyTimes","limitingConeAngle","markerHeight","markerWidth","numOctaves","targetX","targetY","surfaceScale","specularConstant","specularExponent","stdDeviation","tableValues","viewBox","gradientTransform","pathLength","startOffset","textLength","lengthAdjust"]);function sv(e,t,r,n){for(let r in sb(e,t,void 0,n),t.attrs)e.setAttribute(sy.has(r)?r:ey(r),t.attrs[r])}function sx(e,t,r){let n=sp(e,t,r);for(let r in e)(em(e[r])||em(t[r]))&&(n[-1!==ec.indexOf(r)?"attr"+r.charAt(0).toUpperCase()+r.substring(1):r]=e[r]);return n}let sw=["x","y","width","height","cx","cy","r"],sS={useVisualState:sf({scrapeMotionValuesFromProps:sx,createRenderState:sc,onUpdate:({props:e,prevProps:t,current:r,render
5State:n,latestValues:i})=>{if(!r)return;let s=!!e.drag;if(!s){for(let e in i)if(eh.has(e)){s=!0;break}}if(!s)return;let a=!t;if(t)for(let r=0;r<sw.length;r++){let n=sw[r];e[n]!==t[n]&&(a=!0)}a&&L.read(()=>{sm(r,n),L.render(()=>{su(n,i,sh(r.tagName),e.transformTemplate),sv(r,n)})})}})},sk={current:null},sP={current:!1},sA=[...tF,e0,e7],sE=e=>sA.find(t_(e)),sT=new WeakMap,sM=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"];class sC{scrapeMotionValuesFromProps(e,t,r){return{}}constructor({parent:e,props:t,presenceContext:r,reducedMotionConfig:n,blockInitialAnimation:i,visualState:s},a={}){this.current=null,this.children=new Set,this.isVariantNode=!1,this.isControllingVariants=!1,this.shouldReduceMotion=null,this.values=new Map,this.KeyframeResolver=tR,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=N.now();this.renderScheduledAt<e&&(this.renderScheduledAt=e,L.render(this.render,!1,!0))};let{latestValues:o,renderState:l,onUpdate:u}=s;this.onUpdate=u,this.latestValues=o,this.baseTarget={...o},this.initialValues=t.initial?{...o}:{},this.renderState=l,this.parent=e,this.props=t,this.presenceContext=r,this.depth=e?e.depth+1:0,this.reducedMotionConfig=n,this.options=a,this.blockInitialAnimation=!!i,this.isControllingVariants=iq(t),this.isVariantNode=iK(t),this.isVariantNode&&(this.variantChildren=new Set),this.manuallyAnimateOnMount=!!(e&&e.current);let{willChange:c,...h}=this.scrapeMotionValuesFromProps(t,{},this);for(let e in h){let t=h[e];void 0!==o[e]&&em(t)&&t.set(o[e],!1)}}mount(e){if(this.current=e,sT.set(e,this),this.projection&&!this.projection.instance&&this.projection.mount(e),this.parent&&this.isVariantNode&&!this.isControllingVariants&&(this.removeFromVariantTree=this.parent.addVariantChild(this)),this.values.forEach((e,t)=>this.bindToMotionValue(t,e)),!sP.current&&(sP.current=!0,iJ.B))if(window.matchMedia){let e=window.matchMedia("(prefers-reduced-motion)"),t=()=>sk.current=e.matches;e.addListener(t),t()}else sk.current=!1;this.shouldReduceMotion="never"!==this.reducedMotionConfig&&("always"===this.reducedMotionConfig||sk.current),this.parent&&this.parent.children.add(this),this.update(this.props,this.presenceContext)}unmount(){for(let e in this.projection&&this.projection.unmount(),$(this.notifyUpdate),$(this.render),this.valueSubscriptions.forEach(e=>e()),this.valueSubscriptions.clear(),this.removeFromVariantTree&&this.removeFromVariantTree(),this.parent&&this.parent.children.delete(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}bindToMotionValue(e,t){let r;this.valueSubscriptions.has(e)&&this.valueSubscriptions.get(e)();let n=eh.has(e);n&&this.onBindTransform&&this.onBindTransform();let i=t.on("change",t=>{this.latestValues[e]=t,this.props.onUpdate&&L.preRender(this.notifyUpdate),n&&this.projection&&(this.projection.isTransformDirty=!0)}),s=t.on("renderRequest",this.scheduleRender);window.MotionCheckAppearSync&&(r=window.MotionCheckAppearSync(this,e,t)),this.valueSubscriptions.set(e,()=>{i(),s(),r&&r(),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 i0){let t=i0[e];if(!t)continue;let{isEnabled:r,Feature:n}=t;if(!this.features[e]&&n&&r(this.props)&&(this.features[e]=new n(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):r3()}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<sM.length;t++){let r=sM[t];this.propEventSubscriptions[r]&&(this.propEventSubscriptions[r](),delete this.propEventSubscriptions[r]);let n=e["on"+r];n&&(this.propEventSubscriptions[r]=this.on(r,n))}this.prevMotionValues=function(e,t,r){for(let n in t){let i=t[n],s=r[n];if(em(i))e.addValue(n,i);else if(em(s))e.addValue(n,eo(i,{owner:e}));else if(s!==i)if(e.hasValue(n)){let t=e.getValue(n);!0===t.liveStyle?t.jump(i):t.hasAnimated||t.set(i)}else{let t=e.getStaticValue(n);e.addValue(n,eo(void 0!==t?t:i,{owner:e}))}}for(let n in r)void 0===t[n]&&e.removeValue(n);return t}(this,this.scrapeMotionValuesFromProps(e,this.prevProps,this),this.prevMotionValues),this.handleChildMotionValue&&this.handleChildMotionValue(),this.onUpdate&&this.onUpdate(this)}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}
5addVariantChild(e){let t=this.getClosestVariantNode();if(t)return t.variantChildren&&t.variantChildren.add(e),()=>t.variantChildren.delete(e)}addValue(e,t){let r=this.values.get(e);t!==r&&(r&&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 r=this.values.get(e);return void 0===r&&void 0!==t&&(r=eo(null===t?void 0:t,{owner:this}),this.addValue(e,r)),r}readValue(e,t){let r=void 0===this.latestValues[e]&&this.current?this.getBaseTargetFromProps(this.props,e)??this.readValueFromInstance(this.current,e,this.options):this.latestValues[e];return null!=r&&("string"==typeof r&&(tj(r)||eO(r))?r=parseFloat(r):!sE(r)&&e7.test(t)&&(r=tl(e,t)),this.setBaseTarget(e,em(r)?r.get():r)),em(r)?r.get():r}setBaseTarget(e,t){this.baseTarget[e]=t}getBaseTarget(e){let t,{initial:r}=this.props;if("string"==typeof r||"object"==typeof r){let n=b(this.props,r,this.presenceContext?.custom);n&&(t=n[e])}if(r&&void 0!==t)return t;let n=this.getBaseTargetFromProps(this.props,e);return void 0===n||em(n)?void 0!==this.initialValues[e]&&void 0===t?void 0:this.baseTarget[e]:n}on(e,t){return this.events[e]||(this.events[e]=new d),this.events[e].add(t)}notify(e,...t){this.events[e]&&this.events[e].notify(...t)}}class sR extends sC{constructor(){super(...arguments),this.KeyframeResolver=tB}sortInstanceNodePosition(e,t){return 2&e.compareDocumentPosition(t)?1:-1}getBaseTargetFromProps(e,t){return e.style?e.style[t]:void 0}removeValueFromRenderState(e,{vars:t,style:r}){delete t[e],delete r[e]}handleChildMotionValue(){this.childSubscription&&(this.childSubscription(),delete this.childSubscription);let{children:e}=this.props;em(e)&&(this.childSubscription=e.on("change",e=>{this.current&&(this.current.textContent=`${e}`)}))}}class sj extends sR{constructor(){super(...arguments),this.type="html",this.renderInstance=sb}readValueFromInstance(e,t){if(eh.has(t))return tv(e,t);{let r=window.getComputedStyle(e),n=(tI(t)?r.getPropertyValue(t):r[t])||0;return"string"==typeof n?n.trim():n}}measureInstanceViewportBox(e,{transformPagePoint:t}){return na(e,t)}build(e,t,r){i9(e,t,r.transformTemplate)}scrapeMotionValuesFromProps(e,t,r){return sp(e,t,r)}}class sO extends sR{constructor(){super(...arguments),this.type="svg",this.isSVGTag=!1,this.measureInstanceViewportBox=r3,this.updateDimensions=()=>{this.current&&!this.renderState.dimensions&&sm(this.current,this.renderState)}}getBaseTargetFromProps(e,t){return e[t]}readValueFromInstance(e,t){if(eh.has(t)){let e=to(t);return e&&e.default||0}return t=sy.has(t)?t:ey(t),e.getAttribute(t)}scrapeMotionValuesFromProps(e,t,r){return sx(e,t,r)}onBindTransform(){this.current&&!this.renderState.dimensions&&L.postRender(this.updateDimensions)}build(e,t,r){su(e,t,this.isSVGTag,r.transformTemplate)}renderInstance(e,t,r,n){sv(e,t,r,n)}mount(e){this.isSVGTag=sh(e.tagName),super.mount(e)}}let sI=function(e){if("undefined"==typeof Proxy)return e;let t=new Map;return new Proxy((...t)=>e(...t),{get:(r,n)=>"create"===n?e:(t.has(n)||t.set(n,e(n)),t.get(n))})}((nA={animation:{Feature:rB},exit:{Feature:rU},inView:{Feature:iW},tap:{Feature:iF},focus:{Feature:i$},hover:{Feature:iL},pan:{Feature:nP},drag:{Feature:nS,ProjectionNode:iV,MeasureLayout:n$},layout:{ProjectionNode:iV,MeasureLayout:n$}},nE=(e,t)=>ss(e)?new sO(t):new sj(t,{allowProjection:e!==nM.Fragment}),function(e,{forwardMotionProps:t}={forwardMotionProps:!1}){return function(e){var t,r;let{preloadedFeatures:n,createVisualElement:i,useRender:s,useVisualState:a,Component:o}=e;function l(e,t){var r,n,l;let u,c={...(0,nM.useContext)(iY.Q),...e,layoutId:function(e){let{layoutId:t}=e,r=(0,nM.useContext)(nR.L).id;return r&&void 0!==t?r+"-"+t:t}(e)},{isStatic:h}=c,d=function(e){let{initial:t,animate:r}=function(e,t){if(iq(e)){let{initial:t,animate:r}=e;return{initial:!1===t||rO(t)?t:void 0,animate:rO(r)?r:void 0}}return!1!==e.inherit?t:{}}(e,(0,nM.useContext)(iX));return(0,nM.useMemo)(()=>({initial:t,animate:r}),[iZ(t),iZ(r)])}(e),f=a(e,h);if(!h&&iJ.B){n=0,l=0,(0,nM.useContext)(iG).strict;let e=function(e){let{drag:t,layout:r}=i0;if(!t&&!r)return{};let n={...t,...r};return{MeasureLayout:(null==t?void 0:t.isEnabled(e))||(null==r?void 0:r.isEnabled(e))?n.MeasureLayout:void 0,ProjectionNode:n.ProjectionNode}}
5(c);u=e.MeasureLayout,d.visualElement=function(e,t,r,n,i){let{visualElement:s}=(0,nM.useContext)(iX),a=(0,nM.useContext)(iG),o=(0,nM.useContext)(i2.t),l=(0,nM.useContext)(iY.Q).reducedMotion,u=(0,nM.useRef)(null);n=n||a.renderer,!u.current&&n&&(u.current=n(e,{visualState:t,parent:s,props:r,presenceContext:o,blockInitialAnimation:!!o&&!1===o.initial,reducedMotionConfig:l}));let c=u.current,h=(0,nM.useContext)(nj);c&&!c.projection&&i&&("html"===c.type||"svg"===c.type)&&function(e,t,r,n){let{layoutId:i,layout:s,drag:a,dragConstraints:o,layoutScroll:l,layoutRoot:u}=t;e.projection=new r(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:s,alwaysMeasureLayout:!!a||o&&nl(o),visualElement:e,animationType:"string"==typeof s?s:"both",initialPromotionConfig:n,layoutScroll:l,layoutRoot:u})}(u.current,r,i,h);let d=(0,nM.useRef)(!1);(0,nM.useInsertionEffect)(()=>{c&&d.current&&c.update(r,o)});let f=r[ev],p=(0,nM.useRef)(!!f&&!window.MotionHandoffIsComplete?.(f)&&window.MotionHasOptimisedAnimation?.(f));return(0,i5.E)(()=>{c&&(d.current=!0,window.MotionIsMounted=!0,c.updateFeatures(),z.render(c.render),p.current&&c.animationState&&c.animationState.animateChanges())}),(0,nM.useEffect)(()=>{c&&(!p.current&&c.animationState&&c.animationState.animateChanges(),p.current&&(queueMicrotask(()=>{window.MotionHandoffMarkAsComplete?.(f)}),p.current=!1))}),c}(o,f,c,i,e.ProjectionNode)}return(0,nT.jsxs)(iX.Provider,{value:d,children:[u&&d.visualElement?(0,nT.jsx)(u,{visualElement:d.visualElement,...c}):null,s(o,e,(r=d.visualElement,(0,nM.useCallback)(e=>{e&&f.onMount&&f.onMount(e),r&&(e?r.mount(e):r.unmount()),t&&("function"==typeof t?t(e):nl(t)&&(t.current=e))},[r])),f,h,d.visualElement)]})}n&&function(e){for(let t in e)i0[t]={...i0[t],...e[t]}}(n),l.displayName="motion.".concat("string"==typeof o?o:"create(".concat(null!==(r=null!==(t=o.displayName)&&void 0!==t?t:o.name)&&void 0!==r?r:"",")"));let u=(0,nM.forwardRef)(l);return u[i1]=o,u}({...ss(e)?sS:sg,preloadedFeatures:nA,useRender:function(e=!1){return(t,r,n,{latestValues:i},s)=>{let a=(ss(t)?function(e,t,r,n){let i=(0,nM.useMemo)(()=>{let r=sc();return su(r,t,sh(n),e.transformTemplate),{...r.attrs,style:{...r.style}}},[t]);if(e.style){let t={};se(t,e.style,e),i.style={...t,...i.style}}return i}:function(e,t){let r={},n=function(e,t){let r=e.style||{},n={};return se(n,r,e),Object.assign(n,function({transformTemplate:e},t){return(0,nM.useMemo)(()=>{let r=i7();return i9(r,t,e),Object.assign({},r.vars,r.style)},[t])}(e,t)),n}(e,t);return e.drag&&!1!==e.dragListener&&(r.draggable=!1,n.userSelect=n.WebkitUserSelect=n.WebkitTouchCallout="none",n.touchAction=!0===e.drag?"none":`pan-${"x"===e.drag?"y":"x"}`),void 0===e.tabIndex&&(e.onTap||e.onTapStart||e.whileTap)&&(r.tabIndex=0),r.style=n,r})(r,i,s,t),o=function(e,t,r){let n={};for(let i in e)("values"!==i||"object"!=typeof e.values)&&(sn(i)||!0===r&&sr(i)||!t&&!sr(i)||e.draggable&&i.startsWith("onDrag"))&&(n[i]=e[i]);return n}(r,"string"==typeof t,e),l=t!==nM.Fragment?{...o,...a,ref:n}:{},{children:u}=r,c=(0,nM.useMemo)(()=>em(u)?u.get():u,[u]);return(0,nM.createElement)(t,{...l,children:c})}}(t),createVisualElement:nE,Component:e})}))},89364:(e,t,r)=>{var n=r(59132),i=r(1083),s=r(85855),a=r(64384);e.exports=function(e,t,r){return(e=s(e),void 0===(t=r?void 0:t))?i(e)?a(e):n(e):e.match(t)||[]}},90869:(e,t,r)=>{"use strict";r.d(t,{L:()=>n});let n=(0,r(33670).createContext)({})},97091:(e,t,r)=>{"use strict";r.d(t,{X:()=>f,r:()=>h});let n=["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,r){this.model=e,this.root=t,this.patch=r,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=n[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),r=this.outputArray();this.model.arrayAppendValue(r,t)}processReturnIntoObject(){let e=this.read(),t=this.outputStack.pop(),r=this.finalizeOutput(t);r=this.model.markChanged(r);let n=this.outputObject();this.model.objectSetField(n,e,r)}processReturnIntoObjectSameKey(){let e=this.inputEntry(),t=this.outputStack.pop(),r=this.finalizeOutput(t),n=this.outputObject();this.model.objectSetField(n,e.key,r)}processPushField(){let e=this.read(),t=this.inputEntry(),r=this.inputKey(t,e),n=this.model.objectGetField(t.value,r);this.inputStack.push({value:n,key:r})}processPushElement(){let e=this.read(),t=this.inputEntry(),r=this.model.arrayGetElement(t.value,e);this.inputStack.push({value:r})}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(),r=this.inputKey(t,e),n=this.outputObject();this.model.objectDeleteField(n,r)}processArrayAppendValue(){let e=this.model.wrap(this.read()),t=this.outputArray();this.model.arrayAppendValue(t,e)}processArrayAppendSlice(){let e=this.read(),t=this.read(),r=this.outputArray(),n=this.inputEntry().value;this.model.arrayAppendSlice(r,n,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(),r=this.outputString(),n=this.inputEntry().value;this.model.stringAppendSlice(r,n,e,t)}}function s(e){return e>>16?4:e>>11?3:e>>7?2:1}function a(e){let t=0;for(let r=0;r<e.length;r++){let n=s(e.codePointAt(r));4==n&&r++,t+=n}return t}function o(e,t,r=0){let n=r,i=0;for(i=r;n<t;i++){let t=s(e.codePointAt(i));4===t&&i++,n+=t}return i}class l{meta;constructor(e){this.meta=e}wrap(e){return this.wrapWithMeta(e,this.meta,this.meta)}wrapWithMeta(e,t,r=this.meta){return{data:e,startMeta:t,endMeta:r}}asObject(e){if(!e.content){let t={};for(let[r,n]of Object.entries(e.data))t[r]=this.wrapWithMeta(n,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)),r=t.map(()=>this.meta);e.content={type:"array",elements:t,metas:r}}return e.content}asString(e){if(!e.content){let t=e.data,r={value:t,utf8size:a(t),uses:[],startMeta:e.startMeta,endMeta:e.endMeta};e.content=this.stringFromParts([r])}return e.content}stringFromParts(e){let t={type:"string",parts:e};for(let r of e)r.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 r=this.asObject(e);Object.assign(t.fields,r.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,r){e.fields[t]=r}objectDeleteField(e,t){delete e.fields[t]}arrayAppendValue(e,t){e.elements.push(t),e.metas.push(this.meta)}arrayAppendSlice(e,t,r,n){let i=this.asArray(t),s=i.elements.length===r;if(e.elements.push(...i.elements.slice(r,n)),s)e.metas.push(...i.metas.slice(r,n));else for(let t=r;t<n;t++)e.metas.push(this.meta)}stringAppendValue(e,t){for(let r of this.asString(t).parts)this.stringAppendPart(e,r)}stringAppendPart(e,t){e.parts.push(t),t.uses.push(e)}resolveStringPart(e,t,r){if(0===r)return t;for(let n=t;n<e.parts.length;n++){let t=e.parts[n];if(r===t.utf8size)return n+1;if(r<t.utf8size)return this.splitString(t,r),n+1;r-=t.utf8size}throw Error("splitting string out of bounds")}
5splitString(e,t){let r,n=t,i=e.utf8size-n;if(e.utf8size!==e.value.length){let r=0;for(t=0;r<n;t++){let n=s(e.value.codePointAt(t));4===n&&t++,r+=n}}r=e.value.slice(0,t);let a={value:e.value.slice(t),utf8size:i,uses:e.uses.slice(),startMeta:e.startMeta,endMeta:e.endMeta};for(let t of(e.value=r,e.utf8size=n,e.uses)){let r=t.parts.indexOf(e);if(-1===r)throw Error("bug: mismatch between string parts and use.");t.parts.splice(r+1,0,a)}}stringAppendSlice(e,t,r,n){let i=this.asString(t),s=this.resolveStringPart(i,0,r),a=this.resolveStringPart(i,s,n-r);for(let t=s;t<a;t++){let r=i.parts[t];this.stringAppendPart(e,r)}}}function u(e){if("u">typeof e.data)return e.data;let t,r=e.content;switch(r.type){case"string":t=r.parts.map(e=>e.value).join("");break;case"array":t=r.elements.map(e=>u(e));break;case"object":for(let[e,n]of(t={},Object.entries(r.fields)))t[e]=u(n)}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 h=Object.freeze({__proto__:null,applyPatch:function(e,t,r){return new i(new l(r),e,t).process()},getType:c,rebaseValue:function e(t,r){let n=c(t);if(n!==c(r))return r;let i=new l(t.endMeta),o=new l(r.endMeta);switch(n){case"object":{let n=i.asObject(t),s=o.asObject(r),a=0,l=Object.keys(n.fields).length,u=Object.keys(s.fields).length;for(let[t,r]of Object.entries(s.fields)){let i=n.fields[t];i&&(s.fields[t]=e(i,r),s.fields[t]===i&&a++)}return l===u&&l===a?t:r}case"array":{let n=i.asArray(t),s=o.asArray(r);if(n.elements.length!==s.elements.length)break;let a=0;for(let t=0;t<s.elements.length;t++)s.elements[t]=e(n.elements[t],s.elements[t]),s.elements[t]!==n.elements[t]&&a++;return 0===a?t:r}case"null":case"boolean":case"number":if(u(t)===u(r))return t;break;case"string":{let e=u(t),n=u(r);if(e===n)return t;let i=o.copyString(null),l=function(e,t){let r=Math.min(e.length,t.length),n=0;for(let i=0;i<r;){let r=e.codePointAt(i);if(r!==t.codePointAt(i))break;let a=s(r);n+=a,i+=4===a?2:1}return n}(e,n),c=function(e,t,r=0){let n=Math.min(e.length,t.length)-r,i=0;for(let r=0;r<n;){let n=e.codePointAt(e.length-1-r);if(n!==t.codePointAt(t.length-1-r))break;let a=s(n);i+=a,r+=4===a?2:1}return i}(e,n,l),h=a(n),d=a(e);0<l&&o.stringAppendSlice(i,t,0,l),l<h-c&&o.stringAppendSlice(i,r,l,h-c),d-c<d&&o.stringAppendSlice(i,t,d-c,d);let f=o.finalize(i);if(u(f)!==n)throw Error("incorrect string rebase");return f}}return r},unwrap:u,wrap:function(e,t){return{data:e,startMeta:t,endMeta:t}}});class d{wrap(e){return e}finalize(e){return Array.isArray(e)?e:e.data}markChanged(e){return e}objectGetKeys(e){return Object.keys(e)}objectGetField(e,t){return e[t]}arrayGetElement(e,t){return e[t]}copyObject(e){let t={type:"object",data:{}};if(null!==e)for(let[r,n]of Object.entries(e))t.data[r]=n;return t}copyArray(e){return null===e?[]:e.slice()}copyString(e){return{type:"string",data:null===e?"":e}}objectSetField(e,t,r){e.data[t]=r}objectDeleteField(e,t){delete e.data[t]}arrayAppendValue(e,t){e.push(t)}arrayAppendSlice(e,t,r,n){e.push(...t.slice(r,n))}stringAppendSlice(e,t,r,n){let i=o(t,r),s=o(t,n,i);e.data+=t.slice(i,s)}stringAppendValue(e,t){e.data+=t}}function f(e,t){return new i(new d,e,t).process()}},97494:(e,t,r)=>{"use strict";r.d(t,{E:()=>i});var n=r(33670);let i=r(68972).B?n.useLayoutEffect:n.useEffect},98233:(e,t,r)=>{var n=r(24376),i=r(20570),s=r(64439),a=n?n.toStringTag:void 0;e.exports=function(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":a&&a in Object(e)?i(e):s(e)}}}]);

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.