PageSourceSearch

https://www.zoneadsl.com/_next/static/chunks/3ocakl2ijc2y_.js

js zoneadsl.com collected 2026-10-02 17:17:49 UTC 426,977 bytes, 9 lines download raw bytes

1(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,570606,35166,e=>{"use strict";function t(e){var t=Object.create(null);return function(n){return void 0===t[n]&&(t[n]=e(n)),t[n]}}e.s(["default",0,t],35166);var n=/^((children|dangerouslySetInnerHTML|key|ref|autoFocus|defaultValue|defaultChecked|innerHTML|suppressContentEditableWarning|suppressHydrationWarning|valueLink|abbr|accept|acceptCharset|accessKey|action|allow|allowUserMedia|allowPaymentRequest|allowFullScreen|allowTransparency|alt|async|autoComplete|autoPlay|capture|cellPadding|cellSpacing|challenge|charSet|checked|cite|classID|className|cols|colSpan|content|contentEditable|contextMenu|controls|controlsList|coords|crossOrigin|data|dateTime|decoding|default|defer|dir|disabled|disablePictureInPicture|disableRemotePlayback|download|draggable|encType|enterKeyHint|fetchpriority|fetchPriority|form|formAction|formEncType|formMethod|formNoValidate|formTarget|frameBorder|headers|height|hidden|high|href|hrefLang|htmlFor|httpEquiv|id|inputMode|integrity|is|keyParams|keyType|kind|label|lang|list|loading|loop|low|marginHeight|marginWidth|max|maxLength|media|mediaGroup|method|min|minLength|multiple|muted|name|nonce|noValidate|open|optimum|pattern|placeholder|playsInline|popover|popoverTarget|popoverTargetAction|poster|preload|profile|radioGroup|readOnly|referrerPolicy|rel|required|reversed|role|rows|rowSpan|sandbox|scope|scoped|scrolling|seamless|selected|shape|size|sizes|slot|span|spellCheck|src|srcDoc|srcLang|srcSet|start|step|style|summary|tabIndex|target|title|translate|type|useMap|value|width|wmode|wrap|about|datatype|inlist|prefix|property|resource|typeof|vocab|autoCapitalize|autoCorrect|autoSave|color|incremental|fallback|inert|itemProp|itemScope|itemType|itemID|itemRef|on|option|results|security|unselectable|accentHeight|accumulate|additive|alignmentBaseline|allowReorder|alphabetic|amplitude|arabicForm|ascent|attributeName|attributeType|autoReverse|azimuth|baseFrequency|baselineShift|baseProfile|bbox|begin|bias|by|calcMode|capHeight|clip|clipPathUnits|clipPath|clipRule|colorInterpolation|colorInterpolationFilters|colorProfile|colorRendering|contentScriptType|contentStyleType|cursor|cx|cy|d|decelerate|descent|diffuseConstant|direction|display|divisor|dominantBaseline|dur|dx|dy|edgeMode|elevation|enableBackground|end|exponent|externalResourcesRequired|fill|fillOpacity|fillRule|filter|filterRes|filterUnits|floodColor|floodOpacity|focusable|fontFamily|fontSize|fontSizeAdjust|fontStretch|fontStyle|fontVariant|fontWeight|format|from|fr|fx|fy|g1|g2|glyphName|glyphOrientationHorizontal|glyphOrientationVertical|glyphRef|gradientTransform|gradientUnits|hanging|horizAdvX|horizOriginX|ideographic|imageRendering|in|in2|intercept|k|k1|k2|k3|k4|kernelMatrix|kernelUnitLength|kerning|keyPoints|keySplines|keyTimes|lengthAdjust|letterSpacing|lightingColor|limitingConeAngle|local|markerEnd|markerMid|markerStart|markerHeight|markerUnits|markerWidth|mask|maskContentUnits|maskUnits|mathematical|mode|numOctaves|offset|opacity|operator|order|orient|orientation|origin|overflow|overlinePosition|overlineThickness|panose1|paintOrder|pathLength|patternContentUnits|patternTransform|patternUnits|pointerEvents|points|pointsAtX|pointsAtY|pointsAtZ|preserveAlpha|preserveAspectRatio|primitiveUnits|r|radius|refX|refY|renderingIntent|repeatCount|repeatDur|requiredExtensions|requiredFeatures|restart|result|rotate|rx|ry|scale|seed|shapeRendering|slope|spacing|specularConstant|specularExponent|speed|spreadMethod|startOffset|stdDeviation|stemh|stemv|stitchTiles|stopColor|stopOpacity|strikethroughPosition|strikethroughThickness|string|stroke|strokeDasharray|strokeDashoffset|strokeLinecap|strokeLinejoin|strokeMiterlimit|strokeOpacity|strokeWidth|surfaceScale|systemLanguage|tableValues|targetX|targetY|textAnchor|textDecoration|textRendering|textLength|to|transform|u1|u2|underlinePosition|underlineThickness|unicode|unicodeBidi|unicodeRange|unitsPerEm|vAlphabetic|vHanging|vIdeographic|vMathematical|values|vectorEffect|version|vertAdvY|vertOriginX|vertOriginY|viewBox|viewTarget|visibility|widths|wordSpacing|writingMode|x|xHeight|x1|x2|xChannelSelector|xlinkActuate|xlinkArcrole|xlinkHref|xlinkRole|xlinkShow|xlinkTitle|xlinkType|xmlBase|xmlns|xmlnsXlink|xmlLang|xmlSpace|y|y1|y2|yChannelSelector|z|zoomAndPan|for|class|autofocus)|(([Dd][Aa][Tt][Aa]|[Aa][Rr][Ii][Aa]|x)-.*))$/,r=t(function(e){return n.test(e)||111===e.charCodeAt(0)&&110===e.charCodeAt(1)&&91>e.charCodeAt(2)});e.s(["default",0,r],570606)},507640,40558,e=>{"use strict";var t,n,r,i=[],o="ResizeObserver loop completed with undelivered notifications.",a=function(){var e;"function"==typeof ErrorEvent?e=new ErrorEvent("error",{message:o}):((e=document.createEvent("Event")).initEvent("error",!1,!1),e.message=o
1),window.dispatchEvent(e)};(t=n||(n={})).BORDER_BOX="border-box",t.CONTENT_BOX="content-box",t.DEVICE_PIXEL_CONTENT_BOX="device-pixel-content-box";var s=function(e){return Object.freeze(e)},l=function(e,t){this.inlineSize=e,this.blockSize=t,s(this)},d=function(){function e(e,t,n,r){return this.x=e,this.y=t,this.width=n,this.height=r,this.top=this.y,this.left=this.x,this.bottom=this.top+this.height,this.right=this.left+this.width,s(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}(),u=function(e){return e instanceof SVGElement&&"getBBox"in e},c=function(e){if(u(e)){var t=e.getBBox(),n=t.width,r=t.height;return!n&&!r}var i=e.offsetWidth,o=e.offsetHeight;return!(i||o||e.getClientRects().length)},h=function(e){if(e instanceof Element)return!0;var t,n=null==(t=null==e?void 0:e.ownerDocument)?void 0:t.defaultView;return!!(n&&e instanceof n.Element)},f=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},p="u">typeof window?window:{},m=new WeakMap,g=/auto|scroll/,b=/^tb|vertical/,y=/msie|trident/i.test(p.navigator&&p.navigator.userAgent),v=function(e){return parseFloat(e||"0")},x=function(e,t,n){return void 0===e&&(e=0),void 0===t&&(t=0),void 0===n&&(n=!1),new l((n?t:e)||0,(n?e:t)||0)},w=s({devicePixelContentBoxSize:x(),borderBoxSize:x(),contentBoxSize:x(),contentRect:new d(0,0,0,0)}),k=function(e,t){if(void 0===t&&(t=!1),m.has(e)&&!t)return m.get(e);if(c(e))return m.set(e,w),w;var n=getComputedStyle(e),r=u(e)&&e.ownerSVGElement&&e.getBBox(),i=!y&&"border-box"===n.boxSizing,o=b.test(n.writingMode||""),a=!r&&g.test(n.overflowY||""),l=!r&&g.test(n.overflowX||""),h=r?0:v(n.paddingTop),f=r?0:v(n.paddingRight),p=r?0:v(n.paddingBottom),k=r?0:v(n.paddingLeft),S=r?0:v(n.borderTopWidth),$=r?0:v(n.borderRightWidth),C=r?0:v(n.borderBottomWidth),E=r?0:v(n.borderLeftWidth),R=k+f,T=h+p,A=E+$,P=S+C,j=l?e.offsetHeight-P-e.clientHeight:0,M=a?e.offsetWidth-A-e.clientWidth:0,I=r?r.width:v(n.width)-(i?R+A:0)-M,_=r?r.height:v(n.height)-(i?T+P:0)-j,z=I+R+M+A,O=_+T+j+P,L=s({devicePixelContentBoxSize:x(Math.round(I*devicePixelRatio),Math.round(_*devicePixelRatio),o),borderBoxSize:x(z,O,o),contentBoxSize:x(I,_,o),contentRect:new d(k,h,I,_)});return m.set(e,L),L},S=function(e,t,r){var i=k(e,r),o=i.borderBoxSize,a=i.contentBoxSize,s=i.devicePixelContentBoxSize;switch(t){case n.DEVICE_PIXEL_CONTENT_BOX:return s;case n.BORDER_BOX:return o;default:return a}},$=function(e){var t=k(e);this.target=e,this.contentRect=t.contentRect,this.borderBoxSize=s([t.borderBoxSize]),this.contentBoxSize=s([t.contentBoxSize]),this.devicePixelContentBoxSize=s([t.devicePixelContentBoxSize])},C=function(e){if(c(e))return 1/0;for(var t=0,n=e.parentNode;n;)t+=1,n=n.parentNode;return t},E=function(){var e=1/0,t=[];i.forEach(function(n){if(0!==n.activeTargets.length){var r=[];n.activeTargets.forEach(function(t){var n=new $(t.target),i=C(t.target);r.push(n),t.lastReportedSize=S(t.target,t.observedBox),i<e&&(e=i)}),t.push(function(){n.callback.call(n.observer,r,n.observer)}),n.activeTargets.splice(0,n.activeTargets.length)}});for(var n=0;n<t.length;n++)(0,t[n])();return e},R=function(e){i.forEach(function(t){t.activeTargets.splice(0,t.activeTargets.length),t.skippedTargets.splice(0,t.skippedTargets.length),t.observationTargets.forEach(function(n){n.isActive()&&(C(n.target)>e?t.activeTargets.push(n):t.skippedTargets.push(n))})})},T=function(){var e=0;for(R(0);i.some(function(e){return e.activeTargets.length>0});)R(e=E());return i.some(function(e){return e.skippedTargets.length>0})&&a(),e>0},A=[],P=function(e){if(!r){var t=0,n=document.createTextNode("");new MutationObserver(function(){return A.splice(0).forEach(function(e){return e()})}).observe(n,{characterData:!0}),r=function(){n.textContent="".concat(t?t--:t++)}}A.push(e),r()},j=function(e){P(function(){requestAnimationFrame(e)})},M=0,I={attributes:!0,characterData:!0,childList:!0,subtree:!0},_=["resize","load","transitionend","animationend","animationstart","animationiteration","keyup","keydown","mouseup","mousedown","mouseover","mouseout","blur","focus"],z=function(e){return void 0===e&&(e=0),Date.now()+e},O=!1,L=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),!O){O=!0;var n=z(e);j(function(){var r=!1;try{r=T()}finally{if(O=!1,e=n-z(),!M)return;r?t.run(1e3):e>0?t.run(e):t.start()}})}},e.prototype.schedule=function(){this.stop(),this.run()},e.prototype.observe=function(){var e=this,t=function(){return e.observer&&e.observer.observe(document.body,I)};document.body?t():p.addEventListener("DOMContentLoaded",t)},e.prototype.start=function(){var e=this;this.stopped&&(this.stopped=!1,this.observer=new MutationObserver(this.listener),this.observe(),_.forEach(function(t){return p.addEventListener(t,e.listener,!0)}))},e.prototype.stop=function(){var e=this;this.stopped||(this.observer&&this.observer.disconnect(),_.forEach(function(t){return p.removeEventListener(t,e.listener,!0)}),this.stopped=!0)},e}()),D=function(e){!M&&e>0&&L.start(),(M+=e)||L.stop()},V=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=S(this.target,this.observedBox,!0);return u(e=this.target)||f(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,F=function(e,t){for(var n=0;n<e.length;n+=1)if(e[n].target===t)return n;return -1},H=function(){function e(){}return e.connect=function(e,t){var n=new B(e,t);N.set(e,n)},e.observe=function(e,t,n){var r=N.get(e),o=0===r.observationTargets.length;0>F(r.observationTargets,t)&&(o&&i.push(r),r.observationTargets.push(new V(t,n&&n.box)),D(1),L.schedule())},e.unobserve=function(e,t){var n=N.get(e),r=F(n.observationTargets,t),o=1===n.observationTargets.length;r>=0&&(o&&i.splice(i.indexOf(n),1),n.observationTargets.splice(r,1),D(-1))},e.disconnect=function(e){var t=this,n=N.get(e);
1n.observationTargets.slice().forEach(function(n){return t.unobserve(e,n.target)}),n.activeTargets.splice(0,n.activeTargets.length)},e}(),W=function(){function e(e){if(0==arguments.length)throw TypeError("Failed to construct 'ResizeObserver': 1 argument required, but only 0 present.");if("function"!=typeof e)throw TypeError("Failed to construct 'ResizeObserver': The callback provided as parameter 1 is not a function.");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(!h(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(!h(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}();e.s(["ResizeObserver",0,W],40558),e.s([],507640)},933644,65457,702826,42353,825339,501583,788261,8252,45414,e=>{"use strict";let t,n,r,i,o=["gray","blue","purple","magenta","red","orange","yellow","green","cyan"],a=["50","100","200","300","400","500","600","700","800","900","950"],s={title:"Black",hex:"#0d0e12"},l={title:"White",hex:"#ffffff"},d={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"}},u={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"}},c={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"}},h={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"}},f={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"}},p={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"}},m={gray:d,blue:u,purple:c,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:h,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:f,green:p,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"}}},g={black:s,white:l,...m};e.s(["COLOR_HUES",0,o,"COLOR_TINTS",0,a,"black",0,s,"blue",0,u,"color",0,g,"gray",0,d,"green",0,p,"hues",0,m,"purple",0,c,"red",0,h,"white",0,l,"yellow",0,f],65457);let b={sizes:[{distance:-4,size:19},{distance:-4,size:25},{distance:-8,size:33},{distance:-12,size:49}],focusRing:{offset:1,width:1}},y={textWeight:"medium",border:{width:1},focusRing:{offset:-1,width:1}},v={border:{width:1},focusRing:{offset:-1,width:1},shadow:{outline:.5}},x=[320,640,960,1280,1600,1920],w=[360,600,900,1200,1800,2400],k={dialog:{zOffset:600},popover:{zOffset:400},tooltip:{zOffset:200}},S=[0,1,3,6,9,12,21],$=[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]}],C=[0,4,8,12,20,32,52,84,136,220],E={border:{width:1},checkbox:{size:17,focusRing:{offset:-1,width:1}}
1,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}}},R={button:{root:{transition:"background-color 100ms,border-color 100ms,color 100ms"}}},T={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}]}};function A(e,t,n){Object.defineProperty(e,t,{get(){let r=n();return Object.defineProperty(e,t,{value:r,enumerable:!0,writable:!1,configurable:!1}),r},enumerable:!0,configurable:!0})}let P=new WeakMap,j=["transparent","default","primary","positive","caution","critical"];function M(e,t){let n={};for(let r of j)A(n,r,()=>{var n;return{base:{bg:(n=t[e][r]).bg,fg:n.fg,border:n.border,focusRing:n.focusRing,shadow:n.shadow},button:n.button,card:n.selectable.default,dark:n._dark,input:{default:_(n.input.default),invalid:_(n.input.invalid)},muted:{...n.button.ghost,transparent:n.button.ghost.default},solid:{...n.button.default,transparent:n.button.default.default},selectable:n.selectable,spot:{gray:n.avatar.gray.bg,blue:n.avatar.blue.bg,purple:n.avatar.purple.bg,magenta:n.avatar.magenta.bg,red:n.avatar.red.bg,orange:n.avatar.orange.bg,yellow:n.avatar.yellow.bg,green:n.avatar.green.bg,cyan:n.avatar.cyan.bg},syntax:n.syntax}});return n}function I(e){let t=P.get(e);if(t)return t;
1let{avatar:n,button:r,color:i,container:o,font:a,input:s,media:l,radius:d,shadow:u,space:c,style:h}=e,f={};A(f,"light",()=>M("light",i)),A(f,"dark",()=>M("dark",i));let p={_version:0,avatar:n,button:r,container:o,color:f,focusRing:s.text.focusRing,fonts:a,input:s,media:l,radius:d,shadows:u,space:c,styles:h,v2:e};return P.set(e,p),p}function _(e){return{enabled:z(e.enabled),disabled:z(e.disabled),readOnly:z(e.readOnly),hovered:z(e.hovered)}}function z(e){return{bg:e.bg,bg2:e.muted.bg,border:e.border,fg:e.fg,placeholder:e.placeholder}}let O=["multiply","screen"],L=["transparent","default","neutral","primary","suggest","positive","caution","critical"],D=["default","neutral","primary","suggest","positive","caution","critical"],V=["enabled","hovered","pressed","selected","disabled"],B=["default","ghost","bleed"],N=["default","invalid"],F=["enabled","hovered","readOnly","disabled"];function H(e){return a.includes(e)}function W(e){return"0"===e||/^0\.[0-9]+$/.test(e)||"1"===e}function U(e){return/^\d+%$/.test(e)}function G(e){let t=e.split("/"),n=t.shift()||"",[r,i]=n.split(" ");if(H(r)){let e=t.shift()||"";return U(i)?{type:"color",tint:r,mix:Number(i.slice(0,-1))/100}:W(e)?{type:"color",tint:r,opacity:Number(e)}:{type:"color",tint:r}}if("black"===r||"white"===r){let e=t.shift()||"";return U(i)?{type:"color",key:r,mix:Number(i.slice(0,-1))/100}:W(e)?{type:"color",key:r,opacity:Number(e)}:{type:"color",key:r}}if(o.includes(r)){let[e,i]=(n=t.shift()||"").split(" ");if(H(e)){let n=t.shift()||"";return U(i)?{type:"color",hue:r,tint:e,mix:Number(i.slice(0,-1))/100}:W(n)?{type:"color",hue:r,tint:e,opacity:Number(n)}:{type:"color",hue:r,tint:e}}return{type:"hue",value:r}}if(O.includes(r))return{type:"blendMode",value:r}}[...o],[...L],[...D],[...V],[...N],[...F];let X=["500","500"];function Y(e,t=X){var n;let r,{hue:i,scheme:o}=e,a=G(t[+("light"!==o)]);if(!a||"color"!==a.type)throw Error(`Invalid color token: ${t[0]}`);return n={...a,hue:a.hue||i},r="",r="black"===n.key||"white"===n.key?n.key:`${n.hue}/${n.tint}`,void 0===n.mix?(void 0!==n.opacity&&(r+=`/${n.opacity}`),r):`${r} ${100*n.mix}%`}
1let q={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"]}},badge:{"*":{_hue:"gray",bg:["50","950"],fg:["gray/200","gray/800"],dot:["gray/200","gray/800"],icon:["gray/200","gray/800"]}},border:["100","900"],code:{bg:["50","950"],fg:["200","800"]},fg:["400","600"],icon:["300","700"],muted:{fg:["300","700"]},kbd:{bg:["white","black"],fg:["200","800"],border:["100","900"]},link:{fg:["200","800"]}}},positive:{"*":{border:["600 20%","800"]}},caution:{"*":{border:["600 20%","800"]}}},bleed:{"*":{"*":{_blend:["multiply","screen"],accent:{fg:["purple/700 70%","purple/300 70%"]},avatar:{"*":{_blend:["screen","multiply"],bg:["500","400"],fg:["white","black"]}},badge:{"*":{bg:["100","900"],fg:["600","400"],dot:["500","500"],icon:["500","500"]}},bg:["white","black"],border:["white/0","black/0"],code:{bg:["50","950"],fg:["700 75%","300 75%"]},fg:["700","300"],icon:["700 75%","300 75%"],kbd:{bg:["white","black"],fg:["700","300"],border:["200","800"]},link:{fg:["blue/700 70%","blue/300 70%"]},muted:{bg:["100","950"],fg:["700 75%","300 75%"]},skeleton:{from:["100","900"],to:["100 50%","900 50%"]}},hovered:{bg:["50","900"],fg:["800","200"],icon:["800 70%","300 70%"]},pressed:{bg:["100","800"],fg:["800","200"],icon:["800 70%","200 70%"]},selected:{bg:["100","900"],fg:["800","200"],icon:["800 60%","200 60%"]},disabled:{_hue:"gray",accent:{fg:["200","800"]},avatar:{"*":{_blend:["screen","multiply"],bg:["gray/100","gray/900"],fg:["white","black"]}}
1,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"],cdata:["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 K(e){return!!(e&&"object"==typeof e&&!Array.isArray(e))}function Z(...e){let t=e.filter(Boolean);return 0===t.length?{}:t.reduce(J,{})}function J(e,t){for(let n of Object.keys(t)){let r=e[n],i=t[n];e[n]=K(r)&&K(i)?Z(r,i):i}return e}function Q(e,t){let{scheme:n}=e,r={};for(let e of L)A(r,e,()=>(function(e,t){let{scheme:n,tone:r}=e,i=t?.color?.base?.[r],o={hue:i?._hue||"gray",scheme:n};return{_blend:(i?._blend||["multiply","screen"])[+("light"!==n)],_dark:"dark"===n,accent:{fg:Y(o,i?.accent?.fg)},avatar:ee({scheme:n},i),backdrop:Y(o,i?.backdrop),badge:en(i?.badge,{scheme:n},t),bg:Y(o,i?.bg),border:Y(o,i?.border),button:function(e,t){let{scheme:n,tone:r}=e,i={};for(let e of B)i[e]=function(e,t){let{cardTone:n,mode:r,scheme:i}=e,o={};for(let e of D)o[e]=function(e,t){let{cardTone:n,mode:r,scheme:i,tone:o}=e,a={};for(let e of V)a[e]=function(e,t){let{cardTone:n,mode:r,tone:i,scheme:o,state:a}=e,s=t?.color?.base?.[n],l=t?.color?.button?.[r]?.[i]?.[a],d=l?._hue||s?._hue||"gray",u=l?._blend||["screen","multiply"],c={hue:d,scheme:o};return{_blend:u[+("light"!==o)],accent:{fg:Y(c,l?.accent?.fg)},avatar:ee({scheme:o},l),badge:en(l?.badge,{scheme:o},t),bg:Y(c,l?.bg),border:Y(c,l?.border),code:{bg:Y(c,l?.code?.bg),fg:Y(c,l?.code?.fg)},fg:Y(c,l?.fg),icon:Y(c,l?.icon),muted:{bg:Y(c,l?.muted?.bg),fg:Y(c,l?.muted?.fg)},kbd:{bg:Y(c,l?.kbd?.bg),fg:Y(c,l?.kbd?.fg),border:Y(c,l?.kbd?.border)},link:{fg:Y(c,l?.link?.fg)},skeleton:{from:Y(c,l?.skeleton?.from),to:Y(c,l?.skeleton?.to)}}}({cardTone:n,mode:r,tone:o,scheme:i,state:e},t);return a}({cardTone:n,mode:r,scheme:i,tone:e},t);return o}({cardTone:r,scheme:n,mode:e},t);return i}({scheme:n,tone:r},t),code:{bg:Y(o,i?.code?.bg),fg:Y(o,i?.code?.fg)}
1,fg:Y(o,i?.fg),focusRing:Y(o,i?.focusRing),icon:Y(o,i?.icon),input:function(e,t){let{scheme:n,tone:r}=e;return{default:er({mode:"default",scheme:n,tone:r},t),invalid:er({mode:"invalid",scheme:n,tone:r},t)}}({scheme:n,tone:r},t),kbd:{bg:Y(o,i?.kbd?.bg),fg:Y(o,i?.kbd?.fg),border:Y(o,i?.kbd?.border)},link:{fg:Y(o,i?.link?.fg)},muted:{bg:Y(o,i?.muted?.bg),fg:Y(o,i?.muted?.fg)},selectable:function(e,t){let{scheme:n,tone:r}=e,i={};for(let e of D)i[e]=function(e,t){let{cardTone:n,scheme:r,tone:i}=e,o={};for(let e of V)o[e]=function(e,t){let{cardTone:n,scheme:r,state:i,tone:o}=e,a=t?.color?.base?.[n],s=t?.color?.selectable?.[o]?.[i],l=s?._hue||a?._hue||"gray",d=s?._blend||["screen","multiply"],u={hue:l,scheme:r};return{_blend:d[+("light"!==r)],accent:{fg:Y(u,s?.accent?.fg)},avatar:ee({scheme:r},s),badge:en(s?.badge,{scheme:r},t),bg:Y(u,s?.bg),border:Y(u,s?.border),code:{bg:Y(u,s?.code?.bg),fg:Y(u,s?.code?.fg)},fg:Y(u,s?.fg),icon:Y(u,s?.icon),muted:{bg:Y(u,s?.muted?.bg),fg:Y(u,s?.muted?.fg)},kbd:{bg:Y(u,s?.kbd?.bg),fg:Y(u,s?.kbd?.fg),border:Y(u,s?.kbd?.border)},link:{fg:Y(u,s?.link?.fg)},skeleton:{from:Y(u,s?.skeleton?.from),to:Y(u,s?.skeleton?.to)}}}({cardTone:n,tone:i,scheme:r,state:e},t);return o}({cardTone:r,scheme:n,tone:e},t);return i}({scheme:n,tone:r},t),shadow:function(e,t){let{scheme:n,tone:r}=e,i=t?.color?.base?.[r],o={hue:i?._hue||"gray",scheme:n};return{outline:Y(o,i?.shadow?.outline),umbra:Y(o,i?.shadow?.umbra),penumbra:Y(o,i?.shadow?.penumbra),ambient:Y(o,i?.shadow?.ambient)}}({scheme:n,tone:r},t),skeleton:{from:Y(o,i?.skeleton?.from),to:Y(o,i?.skeleton?.to)},syntax:function(e,t){let{scheme:n}=e,r=t?.color?.syntax,i={hue:"gray",scheme:n};return{atrule:Y(i,r?.atrule),attrName:Y(i,r?.attrName),attrValue:Y(i,r?.attrValue),attribute:Y(i,r?.attribute),boolean:Y(i,r?.boolean),builtin:Y(i,r?.builtin),cdata:Y(i,r?.cdata),char:Y(i,r?.char),class:Y(i,r?.class),className:Y(i,r?.className),comment:Y(i,r?.comment),constant:Y(i,r?.constant),deleted:Y(i,r?.deleted),doctype:Y(i,r?.doctype),entity:Y(i,r?.entity),function:Y(i,r?.function),hexcode:Y(i,r?.hexcode),id:Y(i,r?.id),important:Y(i,r?.important),inserted:Y(i,r?.inserted),keyword:Y(i,r?.keyword),number:Y(i,r?.number),operator:Y(i,r?.operator),prolog:Y(i,r?.prolog),property:Y(i,r?.property),pseudoClass:Y(i,r?.pseudoClass),pseudoElement:Y(i,r?.pseudoElement),punctuation:Y(i,r?.punctuation),regex:Y(i,r?.regex),selector:Y(i,r?.selector),string:Y(i,r?.string),symbol:Y(i,r?.symbol),tag:Y(i,r?.tag),unit:Y(i,r?.unit),url:Y(i,r?.url),variable:Y(i,r?.variable)}}({scheme:n},t)}})({scheme:n,tone:e},t));return r}function ee(e,t){let{scheme:n}=e;return{gray:et({color:"gray",scheme:n},t),blue:et({color:"blue",scheme:n},t),purple:et({color:"purple",scheme:n},t),magenta:et({color:"magenta",scheme:n},t),red:et({color:"red",scheme:n},t),orange:et({color:"orange",scheme:n},t),yellow:et({color:"yellow",scheme:n},t),green:et({color:"green",scheme:n},t),cyan:et({color:"cyan",scheme:n},t)}}function et(e,t){let{color:n,scheme:r}=e,i=t?.avatar?.[n],o={hue:i?._hue||"gray",scheme:r};return{_blend:(i?._blend||["screen","multiply"])[+("light"!==r)],bg:Y(o,i?.bg),fg:Y(o,i?.fg)}}function en(e,t,n){let{scheme:r}=t,i={};for(let t of D)i[t]=function(e,t,n){let{scheme:r,tone:i}=t,o=e?.[i],a={hue:o?._hue||n?.color?.base?.[i]?._hue||"gray",scheme:r};return{bg:Y(a,o?.bg),fg:Y(a,o?.fg),dot:Y(a,o?.dot),icon:Y(a,o?.icon)}}(e,{scheme:r,tone:t},n);return i}function er(e,t){let{mode:n,scheme:r,tone:i}=e;return{enabled:ei({mode:n,scheme:r,state:"enabled",cardTone:i},t),hovered:ei({mode:n,scheme:r,state:"hovered",cardTone:i},t),readOnly:ei({mode:n,scheme:r,state:"readOnly",cardTone:i},t),disabled:ei({mode:n,scheme:r,state:"disabled",cardTone:i},t)}}function ei(e,t){let{cardTone:n,mode:r,scheme:i,state:o}=e,a=t?.color?.base?.[n],s=t?.color?.input?.[r]?.[o],l=s?._hue||a?._hue||"gray",d=s?._blend||["screen","multiply"],u={hue:l,scheme:i};return{_blend:d[+("light"!==i)],bg:Y(u,s?.bg),border:Y(u,s?.border),fg:Y(u,s?.fg),muted:{bg:Y(u,s?.muted?.bg)},placeholder:Y(u,s?.placeholder)}}function eo(e,t=0,n=1){return Math.min(n,Math.max(t,e))}function ea(e,t,n,r,i){var o;return n*(1-(o=eo((i-e)/(t-e))))+r*o}function es(e){return Math.round(e)}function el(e){if(4===e.length){let t=e.slice(1,2),n=e.slice(2,3),r=e.slice(3,4);return{r:parseInt(t+t,16),g:parseInt(n+n,16),b:parseInt(r+r,16)}}return{r:parseInt(e.slice(1,3),16),g:parseInt(e.slice(3,5),16),b:parseInt(e.slice(5,7),16)}}function ed(e){let t=es(eo(Math.round(e.r),0,255)),n=es(eo(Math.round(e.g),0,255)),r=es(eo(Math.round(e.b),0,255));return"a"in e?`rgba(${t},${n},${r},${e.a})`:"#"+(0x1000000+(t<<16)+(n<<8)+r).toString(16).slice(1)}function eu(e){let t=e.s/100,n=e.l/100,r=(1-Math.abs(2*n-1))*t,i=r*(1-Math.abs(e.h/60%2-1)),o=n-r/2,a=0,s=0,l=0;return 0<=e.h&&e.h<60?(a=r,s=i,l=0):60<=e.h&&e.h<120?(a=i,s=r,l=0):120<=e.h&&e.h<180?(a=0,s=r,l=i):180<=e.h&&e.h<240?(a=0,s=i,l=r):240<=e.h&&e.h<300?(a=i,s=0,l=r):300<=e.h&&e.h<360&&(a=r,s=0,l=i),{r:Math.round((a+o)*255),g:Math.round((s+o)*255),b:Math.round((l+o)*255)}}let ec=/hsl\(\s*(\d+)\s*,\s*((\d+(?:\.\d+)?)%)\s*,\s*((\d+(?:\.\d+)?)%)\s*\)/i;function eh(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 el(e);if(e.startsWith("hsl("))return eu(function(e){let t=ec.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;return{r:parseInt((t=e.replace(/rgba\(|\)/g,"").split(","))[0]),g:parseInt(t[1]),b:parseInt(t[2]),a:parseFloat(t[3])}}throw Error(`parseColor: unexpected color format: "${e}"`)}function ef(e,t){let n=eh(e);return`rgba(${n.r},${n.g},${n.b},${t})`}function ep(e,t){return{r:255*(e.r/255*(t.r/255)),g:255*(e.g/255*(t.g/255)),b:255*(e.b/255*(t.b/255))}}function em(e,t){var n,r,i,o,a,s;return{r:255*((n=e.r/255)+(r=t.r/255)-n*r),g:255*((i=e.g/255)+(o=t.g/255)-i*o),b:255*((a=e.b/255)+(s=t.b/255)-a*s)}}let eg=[0,255];function eb(e,t){let{bg:n,blendMode:r,colorPalette:i}=t;if("white"===n)throw Error("Cannot blend with white background");let o=G(e);if(!o||"color"!==o.type)throw Error(`Invalid color token value: ${e}`);let a="";if("black"===o.key&&(a=ey(i.black)),"white"===o.key&&(a=ey(i.white)),o.hue&&o.tint&&(a=ey(i[o.hue][o.tint])),!a)throw Error(`Invalid color token value: ${e}`);let s=a,l={blendMode:r,bg:n,black:ey(i.black),white:ey(i.white)};try{var d,u,c,h,f,p,m,g,b;a=function(e,t){let{blendMode:n}=t,r=eh(e),i=eh(t.black),o=eh(t.white),a=t.bg?eh(t.bg):"multiply"===n?o:i,s={r:[i.r,o.r],g:[i.g,o.g],b:[i.b,o.b]},l={r:eo(ea(...s.r,...eg,a.r),...eg),g:eo(ea(...s.g,...eg,a.g),...eg),b:eo(ea(...s.b,...eg,a.b),...eg)},d={r:eo(ea(...s.r,...eg,r.r),...eg),g:eo(ea(...s.g,...eg,r.g),...eg),b:eo(ea(...s.b,...eg,r.b),...eg)},u="multiply"===n?ep(l,d):em(l,d);return ed({r:eo(ea(...eg,...s.r,u.r),...s.r),g:eo(ea(...eg,...s.g,u.g),...s.g),b:eo(ea(...eg,...s.b,u.b),...s.b)})}(a,l),n&&void 0!==o.mix&&(a=ed((d=el(n),u=el(a),c=o.mix,{r:(h=d.r,f=u.r,h+(f-h)*c),g:(p=d.g,m=u.g,p+(m-p)*c),b:(g=d.b,b=u.b,g+(b-g)*c)})))}catch(e){throw console.warn("could not blend",a,l),e}
1return"#aN"===a&&(console.warn(`invalid color token value: ${e}`),a=s),void 0!==o.opacity&&(a=ef(a,o.opacity)),a}function ey(e){return"string"==typeof e?e:e.hex}function ev(e,t){let n=ex(t.default,{colorPalette:e}),r=n.bg;if("white"===r)throw Error("Cannot blend with white background");let i={default:n};for(let n of L){if("default"===n)continue;let o="transparent"===n?{colorPalette:e}:{bg:r,colorPalette:e};A(i,n,()=>ex(t[n],o))}return i}function ex(e,t){var n,r,i,o;let{colorPalette:a,bg:s}=t,l=e._blend||"multiply",d=eb(e.bg,{colorPalette:a,bg:s,blendMode:l}),u={colorPalette:a,bg:d,blendMode:l},c=(n=e.button,r={baseBg:d,blendMode:l,colorPalette:a},{default:eS(n.default,r),ghost:eS(n.ghost,r),bleed:eS(n.bleed,r)}),h=function(e,t){let n={};for(let o of D){var r,i;n[o]=(r=e[o],i=t,{enabled:e$(r.enabled,i),hovered:e$(r.hovered,i),pressed:e$(r.pressed,i),selected:e$(r.selected,i),disabled:e$(r.disabled,i)})}return n}(e.selectable,{colorPalette:a,baseBg:d,blendMode:l}),f={outline:eb(e.shadow.outline,u),umbra:eb(e.shadow.umbra,{...u,bg:void 0,colorPalette:{...a,black:"#000000"}}),penumbra:eb(e.shadow.penumbra,{...u,bg:void 0,colorPalette:{...a,black:"#000000"}}),ambient:eb(e.shadow.ambient,{...u,bg:void 0,colorPalette:{...a,black:"#000000"}})};return{_blend:l,_dark:e._dark,accent:{fg:eb(e.accent.fg,u)},avatar:ew(e.avatar,{baseBg:d,colorPalette:a,blendMode:l}),backdrop:eb(e.backdrop,u),badge:ek(e.badge,{baseBg:d,colorPalette:a,blendMode:l}),bg:d,border:eb(e.border,u),button:c,code:{bg:eb(e.code.bg,u),fg:eb(e.code.fg,u)},fg:eb(e.fg,u),focusRing:eb(e.focusRing,u),icon:eb(e.icon,u),input:(i=e.input,o={baseBg:d,colorPalette:a,blendMode:l},{default:eC(i.default,o),invalid:eC(i.invalid,o)}),kbd:function(e,t){let{baseBg:n,blendMode:r,colorPalette:i}=t,o=eb(e.bg,{bg:n,blendMode:r,colorPalette:i}),a={bg:o,blendMode:r,colorPalette:i};return{bg:o,fg:eb(e.fg,a),border:eb(e.border,a)}}(e.kbd,{baseBg:d,colorPalette:a,blendMode:l}),link:{fg:eb(e.link.fg,u)},muted:{bg:eb(e.muted.bg,u),fg:eb(e.muted.fg,u)},shadow:f,skeleton:{from:eb(e.skeleton.from,u),to:eb(e.skeleton.to,u)},syntax:function(e,t){let{colorPalette:n,baseBg:r,blendMode:i}=t,o={colorPalette:n,bg:r,blendMode:i};return{atrule:eb(e.atrule,o),attrName:eb(e.attrName,o),attrValue:eb(e.attrValue,o),attribute:eb(e.attribute,o),boolean:eb(e.boolean,o),builtin:eb(e.builtin,o),cdata:eb(e.cdata,o),char:eb(e.char,o),class:eb(e.class,o),className:eb(e.className,o),comment:eb(e.comment,o),constant:eb(e.constant,o),deleted:eb(e.deleted,o),doctype:eb(e.doctype,o),entity:eb(e.entity,o),function:eb(e.function,o),hexcode:eb(e.hexcode,o),id:eb(e.id,o),important:eb(e.important,o),inserted:eb(e.inserted,o),keyword:eb(e.keyword,o),number:eb(e.number,o),operator:eb(e.operator,o),prolog:eb(e.prolog,o),property:eb(e.property,o),pseudoClass:eb(e.pseudoClass,o),pseudoElement:eb(e.pseudoElement,o),punctuation:eb(e.punctuation,o),regex:eb(e.regex,o),selector:eb(e.selector,o),string:eb(e.string,o),symbol:eb(e.symbol,o),tag:eb(e.tag,o),unit:eb(e.unit,o),url:eb(e.url,o),variable:eb(e.variable,o)}}(e.syntax,{baseBg:d,colorPalette:a,blendMode:l}),selectable:h}}function ew(e,t){let n={};for(let r of o)n[r]=function(e,t){let{baseBg:n,blendMode:r,colorPalette:i}=t,o=e._blend||"multiply",a=eb(e.bg,{bg:n,blendMode:r,colorPalette:i});return{_blend:o,bg:a,fg:eb(e.fg,{bg:a,blendMode:o,colorPalette:i})}}(e[r],t);return n}function ek(e,t){let n={};for(let r of D)n[r]=function(e,t){let{baseBg:n,blendMode:r,colorPalette:i}=t,o=eb(e.bg,{bg:n,blendMode:r,colorPalette:i}),a={bg:o,blendMode:r,colorPalette:i};return{bg:o,dot:eb(e.dot,a),fg:eb(e.fg,a),icon:eb(e.icon,a)}}(e[r],t);return n}function eS(e,t){let n={};for(let o of D){var r,i;n[o]=(r=e[o],i=t,{enabled:e$(r.enabled,i),hovered:e$(r.hovered,i),pressed:e$(r.pressed,i),selected:e$(r.selected,i),disabled:e$(r.disabled,i)})}return n}function e$(e,t){let{baseBg:n,blendMode:r,colorPalette:i}=t,o=e._blend||"multiply",a=eb(e.bg,{bg:n,blendMode:r,colorPalette:i}),s={bg:a,blendMode:o,colorPalette:i};return{_blend:o,accent:{fg:eb(e.accent.fg,s)},avatar:ew(e.avatar,{baseBg:a,colorPalette:i,blendMode:o}
1),badge:ek(e.badge,{baseBg:a,colorPalette:i,blendMode:o}),bg:a,border:eb(e.border,s),code:{bg:eb(e.code.bg,s),fg:eb(e.code.fg,s)},fg:eb(e.fg,s),icon:eb(e.icon,s),link:{fg:eb(e.link.fg,s)},muted:{bg:eb(e.muted.bg,s),fg:eb(e.muted.fg,s)},kbd:{bg:eb(e.kbd.bg,s),fg:eb(e.kbd.fg,s),border:eb(e.kbd.border,s)},skeleton:{from:eb(e.skeleton?.from,s),to:eb(e.skeleton?.to,s)}}}function eC(e,t){return{enabled:eE(e.enabled,t),hovered:eE(e.hovered,t),readOnly:eE(e.readOnly,t),disabled:eE(e.disabled,t)}}function eE(e,t){let{baseBg:n,blendMode:r,colorPalette:i}=t,o=e._blend||"multiply",a=eb(e.bg,{colorPalette:i,bg:n,blendMode:r}),s={colorPalette:i,bg:a,blendMode:o};return{_blend:o,bg:a,border:eb(e.border,s),fg:eb(e.fg,s),muted:{bg:eb(e.muted.bg,s)},placeholder:eb(e.placeholder,s)}}function eR(e,t,n,r,i,o){return{enabled:e.selectable({base:t,dark:n,solid:r,muted:i,state:"enabled",tone:o}),hovered:e.selectable({base:t,dark:n,solid:r,muted:i,state:"hovered",tone:o}),pressed:e.selectable({base:t,dark:n,solid:r,muted:i,state:"pressed",tone:o}),selected:e.selectable({base:t,dark:n,solid:r,muted:i,state:"selected",tone:o}),disabled:e.selectable({base:t,dark:n,solid:r,muted:i,state:"disabled",tone:o})}}function eT(e,t,n,r,i,o){return{default:e.button({base:t,dark:n,solid:r.default,muted:i.default,mode:o}),primary:e.button({base:t,dark:n,solid:r.primary,muted:i.primary,mode:o}),positive:e.button({base:t,dark:n,solid:r.positive,muted:i.positive,mode:o}),caution:e.button({base:t,dark:n,solid:r.caution,muted:i.caution,mode:o}),critical:e.button({base:t,dark:n,solid:r.critical,muted:i.critical,mode:o})}}let eA="hsl(0, 0%, 0%)",eP="hsl(0, 0%, 100%)",ej={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%)"}},eM={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%)"},eI={transparent:{bg:[ej.transparent.darkest,ej.transparent.lightest],fg:[ej.transparent.lightest,ej.transparent.darkest],border:[ej.transparent.darker,ej.transparent.lighter],focusRing:[ej.transparent.base,ej.transparent.base]},primary:{bg:[ej.primary.darkest,ej.primary.lightest],fg:[ej.primary.lightest,ej.primary.darkest],border:[ej.primary.darker,ej.primary.lighter],focusRing:[ej.primary.base,ej.primary.base]},positive:{bg:[ej.positive.darkest,ej.positive.lightest],fg:[ej.positive.lightest,ej.positive.darkest],border:[ej.positive.darker,ej.positive.lighter],focusRing:[ej.positive.base,ej.positive.base]},caution:{bg:[ej.caution.darkest,ej.caution.lightest],fg:[ej.caution.lightest,ej.caution.darkest],border:[ej.caution.darker,ej.caution.lighter],focusRing:[ej.caution.base,ej.caution.base]},critical:{bg:[ej.critical.darkest,ej.critical.lightest],fg:[ej.critical.lightest,ej.critical.darkest],border:[ej.critical.darker,ej.critical.lighter],focusRing:[ej.critical.base,ej.critical.base]}},e_={base:({dark:e,name:t})=>"default"===t?{bg:e?eA:eP,fg:e?eP:eA,border:e?ej.default.darkest:ej.default.lightest,focusRing:ej.primary.base,shadow:{outline:eA,umbra:eA,penumbra:eA,ambient:eA},skeleton:{from:e?eP:eA,to:e?eP:eA}}:{bg:eI[t].bg[+!e],fg:eI[t].fg[+!e],border:eI[t].border[+!e],focusRing:eI[t].focusRing[+!e],shadow:{outline:eA,umbra:eA,penumbra:eA,ambient:eA},skeleton:{from:e?eP:eA,to:e?eP:eA}},solid:({base:e,dark:t,state:n,tone:r})=>{let i=ej[r];return"hovered"===n?{bg:t?i.light:i.dark,bg2:t?i.light:i.dark,border:t?i.lighter:i.darker,fg:t?i.darkest:i.lightest,icon:t?i.darkest:i.lightest,muted:{fg:eA},accent:{fg:eA},link:{fg:eA},code:{bg:eA,fg:eA},skeleton:e.skeleton}:{bg:i.base,bg2:i.base,border:t?i.light:i.dark,fg:t?i.darkest:i.lightest,icon:t?i.darkest:i.lightest,muted:{fg:eA},accent:{fg:eA},link:{fg:eA},code:{bg:eA,fg:eA},skeleton:e.skeleton}},muted:({base:e,dark:t,state:n,tone:r})=>{let i=ej[r];return"hovered"===n?{bg:t?i.darker:i.lighter,bg2:t?i.darker:i.lighter,border:t?i.lighter:i.darker,fg:t?i.lightest:i.darkest,icon:t?i.lightest:i.darkest,muted:{fg:eA},accent:{fg:eA},link:{fg:eA},code:{bg:eA,fg:eA},skeleton:e.skeleton}:{bg:t?i.darkest:i.lightest,bg2:t?i.darkest:i.lightest,border:t?i.darker:i.lighter,fg:t?i.lighter:i.darker,icon:t?i.lighter:i.darker,muted:{fg:eA},accent:{fg:eA},link:{fg:eA},code:{bg:eA,fg:eA},skeleton:e.skeleton}},button:({base:e,mode:t,muted:n,solid:r})=>"bleed"===t?{...n,enabled:{bg:"transparent",bg2:"transparent",fg:n.enabled.fg,icon:n.enabled.fg,border:"transparent",muted:{fg:eA},accent:{fg:eA},link:{fg:eA},code:{bg:eA,fg:eA},skeleton:e.skeleton},hovered:{bg:n.enabled.bg,bg2:n.enabled.bg,fg:n.hovered.fg,icon:n.hovered.fg,border:"transparent",muted:{fg:eA},accent:{fg:eA},link:{fg:eA},code:{bg:eA,fg:eA},skeleton:e.skeleton}}:"ghost"===t?{...r,enabled:n.enabled}:r,card:({base:e})=>({bg:eA,bg2:eA,fg:eA,icon:eA,border:eA,muted:{fg:eA},accent:{fg:eA},link:{fg:eA},code:{bg:eA,fg:eA},skeleton:e.skeleton}
1),input:()=>({bg:eA,bg2:eA,fg:eA,border:eA,placeholder:eA}),selectable:({muted:e,state:t,tone:n})=>e[n][t],spot:({key:e})=>eM[e],syntax:()=>({atrule:eA,attrName:eA,attrValue:eA,attribute:eA,boolean:eA,builtin:eA,cdata:eA,char:eA,class:eA,className:eA,comment:eA,constant:eA,deleted:eA,doctype:eA,entity:eA,function:eA,hexcode:eA,id:eA,important:eA,inserted:eA,keyword:eA,number:eA,operator:eA,prolog:eA,property:eA,pseudoClass:eA,pseudoElement:eA,punctuation:eA,regex:eA,selector:eA,string:eA,symbol:eA,tag:eA,unit:eA,url:eA,variable:eA})};function ez(e,t){return{default:eO(e,t,"default"),transparent:eO(e,t,"transparent"),primary:eO(e,t,"primary"),positive:eO(e,t,"positive"),caution:eO(e,t,"caution"),critical:eO(e,t,"critical")}}function eO(e,t,n){let r=e.base({dark:t,name:n}),i={default:{enabled:e.solid({base:r,dark:t,tone:"default",name:n,state:"enabled"}),disabled:e.solid({base:r,dark:t,tone:"default",name:n,state:"disabled"}),hovered:e.solid({base:r,dark:t,tone:"default",name:n,state:"hovered"}),pressed:e.solid({base:r,dark:t,tone:"default",name:n,state:"pressed"}),selected:e.solid({base:r,dark:t,tone:"default",name:n,state:"selected"})},transparent:{enabled:e.solid({base:r,dark:t,tone:"transparent",name:n,state:"enabled"}),disabled:e.solid({base:r,dark:t,tone:"transparent",name:n,state:"disabled"}),hovered:e.solid({base:r,dark:t,tone:"transparent",name:n,state:"hovered"}),pressed:e.solid({base:r,dark:t,tone:"transparent",name:n,state:"pressed"}),selected:e.solid({base:r,dark:t,tone:"transparent",name:n,state:"selected"})},primary:{enabled:e.solid({base:r,dark:t,tone:"primary",name:n,state:"enabled"}),disabled:e.solid({base:r,dark:t,tone:"primary",name:n,state:"disabled"}),hovered:e.solid({base:r,dark:t,tone:"primary",name:n,state:"hovered"}),pressed:e.solid({base:r,dark:t,tone:"primary",name:n,state:"pressed"}),selected:e.solid({base:r,dark:t,tone:"primary",name:n,state:"selected"})},positive:{enabled:e.solid({base:r,dark:t,tone:"positive",name:n,state:"enabled"}),disabled:e.solid({base:r,dark:t,tone:"positive",name:n,state:"disabled"}),hovered:e.solid({base:r,dark:t,tone:"positive",name:n,state:"hovered"}),pressed:e.solid({base:r,dark:t,tone:"positive",name:n,state:"pressed"}),selected:e.solid({base:r,dark:t,tone:"positive",name:n,state:"selected"})},caution:{enabled:e.solid({base:r,dark:t,tone:"caution",name:n,state:"enabled"}),disabled:e.solid({base:r,dark:t,tone:"caution",name:n,state:"disabled"}),hovered:e.solid({base:r,dark:t,tone:"caution",name:n,state:"hovered"}),pressed:e.solid({base:r,dark:t,tone:"caution",name:n,state:"pressed"}),selected:e.solid({base:r,dark:t,tone:"caution",name:n,state:"selected"})},critical:{enabled:e.solid({base:r,dark:t,tone:"critical",name:n,state:"enabled"}),disabled:e.solid({base:r,dark:t,tone:"critical",name:n,state:"disabled"}),hovered:e.solid({base:r,dark:t,tone:"critical",name:n,state:"hovered"}),pressed:e.solid({base:r,dark:t,tone:"critical",name:n,state:"pressed"}),selected:e.solid({base:r,dark:t,tone:"critical",name:n,state:"selected"})}},o={default:{enabled:e.muted({base:r,dark:t,tone:"default",name:n,state:"enabled"}),disabled:e.muted({base:r,dark:t,tone:"default",name:n,state:"disabled"}),hovered:e.muted({base:r,dark:t,tone:"default",name:n,state:"hovered"}),pressed:e.muted({base:r,dark:t,tone:"default",name:n,state:"pressed"}),selected:e.muted({base:r,dark:t,tone:"default",name:n,state:"selected"})},transparent:{enabled:e.muted({base:r,dark:t,tone:"transparent",name:n,state:"enabled"}),disabled:e.muted({base:r,dark:t,tone:"transparent",name:n,state:"disabled"}),hovered:e.muted({base:r,dark:t,tone:"transparent",name:n,state:"hovered"}),pressed:e.muted({base:r,dark:t,tone:"transparent",name:n,state:"pressed"}),selected:e.muted({base:r,dark:t,tone:"transparent",name:n,state:"selected"})},primary:{enabled:e.muted({base:r,dark:t,tone:"primary",name:n,state:"enabled"}),disabled:e.muted({base:r,dark:t,tone:"primary",name:n,state:"disabled"}),hovered:e.muted({base:r,dark:t,tone:"primary",name:n,state:"hovered"}),pressed:e.muted({base:r,dark:t,tone:"primary",name:n,state:"pressed"}),selected:e.muted({base:r,dark:t,tone:"primary",name:n,state:"selected"})},positive:{enabled:e.muted({base:r,dark:t,tone:"positive",name:n,state:"enabled"}),disabled:e.muted({base:r,dark:t,tone:"positive",name:n,state:"disabled"}),hovered:e.muted({base:r,dark:t,tone:"positive",name:n,state:"hovered"}),pressed:e.muted({base:r,dark:t,tone:"positive",name:n,state:"pressed"}),selected:e.muted({base:r,dark:t,tone:"positive",name:n,state:"selected"})},caution:{enabled:e.muted({base:r,dark:t,tone:"caution",name:n,state:"enabled"}),disabled:e.muted({base:r,dark:t,tone:"caution",name:n,state:"disabled"}),hovered:e.muted({base:r,dark:t,tone:"caution",name:n,state:"hovered"}),pressed:e.muted({base:r,dark:t,tone:"caution",name:n,state:"pressed"}),selected:e.muted({base:r,dark:t,tone:"caution",name:n,state:"selected"})},critical:{enabled:e.muted({base:r,dark:t,tone:"critical",name:n,state:"enabled"}),disabled:e.muted({base:r,dark:t,tone:"critical",name:n,state:"disabled"}),hovered:e.muted({base:r,dark:t,tone:"critical",name:n,state:"hovered"}),pressed:e.muted({base:r,dark:t,tone:"critical",name:n,state:"pressed"}),selected:e.muted({base:r,dark:t,tone:"critical",name:n,state:"selected"})}};return{base:r,button:{default:eT(e,r,t,i,o,"default"),ghost:eT(e,r,t,i,o,"ghost"),bleed:eT(e,r,t,i,o,"bleed")},card:{enabled:e.card({base:r,dark:t,name:n,state:"enabled",solid:i,muted:o}),disabled:e.card({base:r,dark:t,name:n,state:"disabled",solid:i,muted:o}),hovered:e.card({base:r,dark:t,name:n,state:"hovered",solid:i,muted:o}),pressed:e.card({base:r,dark:t,name:n,state:"pressed",solid:i,muted:o}),selected:e.card({base:r,dark:t,name:n,state:"selected",solid:i,muted:o})},dark:t,input:{default:{enabled:e.input({base:r,dark:t,mode:"default",state:"enabled",solid:i.default,muted:o.default}),disabled:e.input({base:r,dark:t,mode:"default",state:"disabled",solid:i.default,muted:o.default}),hovered:e.input({base:r,dark:t,mode:"default",state:"hovered",solid:i.default,muted:o.default}),readOnly:e.input({base:r,dark:t,mode:"default",state:"readOnly",solid:i.default,muted:o.default})},invalid:{enabled:e.input({base:r,dark:t,mode:"invalid",state:"enabled",solid:i.default,muted:o.default}),disabled:e.input({base:r,dark:t,mode:"invalid",state:"disabled",solid:i.default,muted:o.default}),hovered:e.input({base:r,dark:t,mode:"invalid",state:"hovered",solid:i.default,muted:o.default}),readOnly:e.input({base:r,dark:t,mode:"invalid",state:"readOnly",solid:i.default,muted:o.default})}},selectable:{default:eR(e,r,t,i,o,"default"),primary:eR(e,r,t,i,o,"primary"),positive:eR(e,r,t,i,o,"positive"),caution:eR(e,r,t,i,o,"caution"),critical:eR(e,r,t,i,o,"critical")},spot:{gray:e.spot({base:r,dark:t,key:"gray"}),blue:e.spot({base:r,dark:t,key:"blue"}),purple:e.spot({base:r,dark:t,key:"purple"}),magenta:e.spot({base:r,dark:t,key:"magenta"}),red:e.spot({base:r,dark:t,key:"red"}),orange:e.spot({base:r,dark:t,key:"orange"}),yellow:e.spot({base:r,dark:t,key:"yellow"}),green:e.spot({base:r,dark:t,key:"green"}),cyan:e.spot({base:r,dark:t,key:"cyan"})},syntax:e.syntax({base:r,dark:t}),solid:i,muted:o}}let eL=new WeakMap;function eD(e){let t=eL.get(e);if(t)return t;let n=eB(e,e.card.enabled),r={_blend:e._blend||(e.dark?"screen":"multiply"),_dark:e.dark,accent:n.accent,avatar:n.avatar,backdrop:e.base.shadow.ambient,badge:n.badge,bg:e.base.bg,border:e.base.border,button:{default:eV(e,e.button.default),ghost:eV(e,e.button.ghost),bleed:eV(e,e.button.bleed)}
1,code:n.code,fg:e.base.fg,focusRing:e.base.focusRing,icon:n.muted.fg,input:{default:eN(e.input.default),invalid:eN(e.input.invalid)},kbd:n.kbd,link:n.link,muted:{...n.muted,bg:e.selectable?.default.enabled.bg2||e.base.bg},selectable:eV(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 eL.set(e,r),r}function eV(e,t){return{default:{enabled:eB(e,t.default.enabled),hovered:eB(e,t.default.hovered),pressed:eB(e,t.default.pressed),selected:eB(e,t.default.selected),disabled:eB(e,t.default.disabled)},neutral:{enabled:eB(e,t.default.enabled),hovered:eB(e,t.default.hovered),pressed:eB(e,t.default.pressed),selected:eB(e,t.default.selected),disabled:eB(e,t.default.disabled)},primary:{enabled:eB(e,t.primary.enabled),hovered:eB(e,t.primary.hovered),pressed:eB(e,t.primary.pressed),selected:eB(e,t.primary.selected),disabled:eB(e,t.primary.disabled)},suggest:{enabled:eB(e,t.primary.enabled),hovered:eB(e,t.primary.hovered),pressed:eB(e,t.primary.pressed),selected:eB(e,t.primary.selected),disabled:eB(e,t.primary.disabled)},positive:{enabled:eB(e,t.positive.enabled),hovered:eB(e,t.positive.hovered),pressed:eB(e,t.positive.pressed),selected:eB(e,t.positive.selected),disabled:eB(e,t.positive.disabled)},caution:{enabled:eB(e,t.caution.enabled),hovered:eB(e,t.caution.hovered),pressed:eB(e,t.caution.pressed),selected:eB(e,t.caution.selected),disabled:eB(e,t.caution.disabled)},critical:{enabled:eB(e,t.critical.enabled),hovered:eB(e,t.critical.hovered),pressed:eB(e,t.critical.pressed),selected:eB(e,t.critical.selected),disabled:eB(e,t.critical.disabled)}}}function eB(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},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 eN(e){return{enabled:eF(e.enabled),disabled:eF(e.disabled),readOnly:eF(e.readOnly),hovered:eF(e.hovered)}}function eF(e){return{bg:e.bg,border:e.border,fg:e.fg,muted:{bg:e.bg2},placeholder:e.placeholder}}let eH=new WeakMap;function eW(e){return 2===e._version}let eU=new WeakMap,eG=new Map;e.s(["a",0,function(e={}){let t={...e_,...e};return{light:ez(t,!1),dark:ez(t,!0)}},"c",0,ep,"d",0,el,"f",0,eu,"i",0,function(e){if(e.sanity.v2?._resolved)return e.sanity.v2;let t=eH.get(e);if(t)return t;let n={_version:2,_resolved:!0,avatar:{...b,...e.sanity.avatar},button:{...y,...e.sanity.button},card:v,color:eD(e.sanity.color),container:e.sanity.container,font:e.sanity.fonts,input:{...E,...e.sanity.input,checkbox:{...E.checkbox,...e.sanity.input.checkbox},radio:{...E.radio,...e.sanity.input.radio},switch:{...E.switch,...e.sanity.input.switch}},layer:e.sanity.layer??k,media:e.sanity.media,radius:e.sanity.radius,shadow:e.sanity.shadows,space:e.sanity.space,style:e.sanity.styles};return eH.set(e,n),n},"l",0,ef,"m",0,function({r:e,g:t,b:n}){e/=255;
1let r=Math.min(e,t/=255,n/=255),i=Math.max(e,t,n),o=i-r,a=0,s=0,l=0;return(a=Math.round(60*(a=0==o?0:i==e?(t-n)/o%6:i==t?(n-e)/o+2:(e-t)/o+4)))<0&&(a+=360),l=(i+r)/2,{h:a,s:s=+(100*(s=0==o?0:o/(1-Math.abs(2*l-1)))).toFixed(1),l:l=+(100*l).toFixed(1)}},"o",0,function(e){var t;let n,r,i,a,s,l=(r={...t=e,color:{base:function(e){let t={};for(let n of L)t[n]=function(e,t){let n=Z(e?.base?.["*"],e?.base?.[t]),r=n._hue||e?.base?.[t]?._hue||"gray";return{...n,_hue:r,avatar:o.reduce((e,t)=>({...e,[t]:Z({_hue:t},n.avatar?.["*"],n.avatar?.[t])}),{}),badge:D.reduce((t,i)=>({...t,[i]:{_hue:e?.base?.[i]?._hue||r,...n.badge?.["*"],...n.badge?.[i]}}),{})}}(e,n);return t}(n=Z(q,t?.color)),button:function(e){let t={};for(let n of B)t[n]=function(e,t){let n={};for(let r of D)n[r]=function(e,t,n){let r={};for(let i of V)r[i]=function(e,t,n,r){let i=Z(e?.button?.[n]?.["*"]?.["*"],e?.button?.[n]?.[t]?.["*"],e?.button?.[n]?.["*"]?.[r],e?.button?.[n]?.[t]?.[r]),a=i._hue||e?.base?.[t]?._hue;return{...i,_hue:a,avatar:o.reduce((e,t)=>({...e,[t]:Z({_hue:t},i.avatar?.["*"],i.avatar?.[t])}),{}),badge:D.reduce((t,n)=>({...t,[n]:{_hue:e?.base?.[n]?._hue||a,...i.badge?.["*"],...i.badge?.[n]}}),{})}}(e,n,t,i);return r}(e,t,r);return n}(e,n);return t}(n),input:function(e){let t={};for(let n of N)t[n]=function(e,t){let n={};for(let r of F)n[r]=function(e,t,n){let r=Z(e?.input?.["*"]?.["*"],e?.
1input?.[t]?.["*"],e?.input?.["*"]?.[n],e?.input?.[t]?.[n]),i=r._hue||e?.input?.[t]?._hue;return{...r,_hue:i}}(e,t,r);return n}(e,n);return t}(n),selectable:function(e){let t={};for(let n of D)t[n]=function(e,t){let n={_hue:e?.selectable?.[t]?._hue||e?.base?.[t]?._hue};for(let r of V)n[r]=function(e,t,n){let r=Z(e?.selectable?.["*"]?.["*"],e?.selectable?.[t]?.["*"],e?.selectable?.["*"]?.[n],e?.selectable?.[t]?.[n]),i=r._hue||e?.base?.[t]?._hue;return{...r,_hue:i,avatar:o.reduce((e,t)=>({...e,[t]:Z({_hue:t},r.avatar?.["*"],r.avatar?.[t])}),{}),badge:D.reduce((t,n)=>({...t,[n]:{_hue:e?.base?.[n]?._hue||i,...r.badge?.["*"],...r.badge?.[n]}}),{})}}(e,t,r);return n}(e,n);return t}(n),syntax:n.syntax}},A(i={},"light",()=>Q({scheme:"light"},r)),A(i,"dark",()=>Q({scheme:"dark"},r)),i);return I({_version:2,avatar:e?.avatar??b,button:e?.button??y,card:e?.card??v,color:(a=e?.palette??g,A(s={},"light",()=>ev(a,l.light)),A(s,"dark",()=>ev(a,l.dark)),s),container:e?.container??x,font:e?.font??T,input:e?.input??E,layer:e?.layer??k,media:e?.media??w,radius:e?.radius??S,shadow:e?.shadow??$,space:e?.space??C,style:e?.style??R})},"p",0,ed,"s",0,em,"t",0,function(e,t,n){var r,i,o,a,s;let l,d=function(e,t,n){let r=eG.get(t);if(!r)return;let i=r.get(n);if(i)return i.get(e)}(e,t,n);if(d)return d;let u=eW(e)?I(e):e,c=eW(e)?e:function(e){if(e.v2)return e.v2;let t=eU.get(e);if(t)return t;let{avatar:n,button:r,color:i,container:o,focusRing:a,fonts:s,input:l,layer:d,media:u,radius:c,shadows:h,space:f,styles:p}=e,m={_version:2,avatar:{...b,...n},button:{...y,...r},card:v,color:{light:{transparent:eD(i.light.transparent),default:eD(i.light.default),neutral:eD(i.light.transparent),primary:eD(i.light.primary),suggest:eD(i.light.primary),positive:eD(i.light.positive),caution:eD(i.light.caution),critical:eD(i.light.critical)},dark:{transparent:eD(i.dark.transparent),default:eD(i.dark.default),neutral:eD(i.dark.transparent),primary:eD(i.dark.primary),suggest:eD(i.dark.primary),positive:eD(i.dark.positive),caution:eD(i.dark.caution),critical:eD(i.dark.critical)}},container:o,font:s,input:{...E,...l,checkbox:{...E.checkbox,...l.checkbox},radio:{...E.radio,...l.radio},switch:{...E.switch,...l.switch}},layer:d??k,media:u,radius:c,shadow:h,space:f,style:p};return eU.set(e,m),m}(e),h=u.layer||k,f=c.color[t]||c.color.light,p="neutral"in(r=f[n]||f.default).badge?r:{...r,badge:{...r.badge,neutral:r.badge.default,suggest:r.badge.primary},button:{bleed:{...r.button.bleed,neutral:r.button.bleed.default,suggest:r.button.bleed.primary},default:{...r.button.default,neutral:r.button.default.default,suggest:r.button.default.primary},ghost:{...r.button.ghost,neutral:r.button.ghost.default,suggest:r.button.ghost.primary}},selectable:{...r.selectable,neutral:r.selectable.default,suggest:r.selectable.primary}},m=c.layer||k,{color:g,...x}=u,w={...x,layer:h,v2:{...c,_resolved:!0,color:p,layer:m}};A(w,"color",()=>{let e=u.color[t]||u.color.light;return e[n]||e.default});let S={sanity:w};return i=e,o=t,a=n,s=S,eG.has(o)||eG.set(o,new Map),(l=eG.get(o)).has(a)||l.set(a,new WeakMap),l.get(a).set(i,s),S},"u",0,eh],933644);var eX,eY,eq,eK=e.i(700381);e.i(570606);var eZ=e.i(62471),eJ="-ms-",eQ="-moz-",e0="-webkit-",e1="comm",e2="rule",e3="decl",e5="@keyframes",e4=Math.abs,e6=String.fromCharCode,e7=Object.assign;function e9(e,t){return(e=t.exec(e))?e[0]:e}function e8(e,t,n){return e.replace(t,n)}function te(e,t,n){return e.indexOf(t,n)}function tt(e,t){return 0|e.charCodeAt(t)}function tn(e,t,n){return e.slice(t,n)}function tr(e){return e.length}function ti(e,t){return t.push(e),e}function to(e,t){return e.filter(function(e){return!e9(e,t)})}var ta=1,ts=1,tl=0,td=0,tu=0,tc="";function th(e,t,n,r,i,o,a,s){return{value:e,root:t,parent:n,type:r,props:i,children:o,line:ta,column:ts,length:a,return:"",siblings:s}}function tf(e,t){return e7(th("",null,null,"",null,null,0,e.siblings),e,{length:-e.length},t)}function tp(e){for(;e.root;)e=tf(e.root,{children:[e]});ti(e,e.siblings)}function tm(){return tu=td<tl?tt(tc,td++):0,ts++,10===tu&&(ts=1,ta++),tu}function tg(){return tt(tc,td)}function tb(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 ty(e){var t,n;return(t=td-1,n=function e(t){for(;tm();)switch(tu){case t:return td;case 34:case 39:34!==t&&39!==t&&e(tu);break;case 40:41===t&&e(t);break;case 92:tm()}return td}(91===e?e+2:40===e?e+1:e),tn(tc,t,n)).trim()}function tv(e,t){for(var n="",r=0;r<e.length;r++)n+=t(e[r],r,e,t)||"";return n}function tx(e,t,n,r){switch(e.type){case"@layer":if(e.children.length)break;case"@import":case"@namespace":case e3:return e.return=e.return||e.value;case e1:return"";case e5:return e.return=e.value+"{"+tv(e.children,r)+"}";case e2:if(!tr(e.value=e.props.join(",")))return""}return tr(n=tv(e.children,r))?e.return=e.value+"{"+n+"}":""}function tw(e,t,n,r){if(e.length>-1&&!e.return)switch(e.type){case e3:e.return=function e(t,n,r){var i;
vendor: 1,187 bytes, line 1
1switch(i=n,45^tt(t,0)?(((i<<2^tt(t,0))<<2^tt(t,1))<<2^tt(t,2))<<2^tt(t,3):0){case 5103:return e0+"print-"+t+t;case 5737:case 4201:case 3177:case 3433:case 1641:case 4457:case 2921:case 5572:case 6356:case 5844:case 3191:case 6645:case 3005:case 4215:case 6389:case 5109:case 5365:case 5621:case 3829:case 6391:case 5879:case 5623:case 6135:case 4599:return e0+t+t;case 4855:return e0+t.replace("add","source-over").replace("substract","source-out").replace("intersect","source-in").replace("exclude","xor")+t;case 4789:return eQ+t+t;case 5349:case 4246:case 4810:case 6968:case 2756:return e0+t+eQ+t+eJ+t+t;case 5936:switch(tt(t,n+11)){case 114:return e0+t+eJ+e8(t,/[svh]\w+-[tblr]{2}/,"tb")+t;case 108:return e0+t+eJ+e8(t,/[svh]\w+-[tblr]{2}/,"tb-rl")+t;case 45:return e0+t+eJ+e8(t,/[svh]\w+-[tblr]{2}/,"lr")+t}case 6828:case 4268:case 2903:return e0+t+eJ+t+t;case 6165:return e0+t+eJ+"flex-"+t+t;case 5187:return e0+t+e8(t,/(\w+).+(:[^]+)/,e0+"box-$1$2"+eJ+"flex-$1$2")+t;case 5443:return e0+t+eJ+"flex-item-"+e8(t,/flex-|-self/g,"")+(e9(t,/flex-|baseline/)?"":eJ+"grid-row-"+e8(t,/flex-|-self/g,""))+t;case 4675:return e0+t+eJ+"flex-line-pack"+e8(t,/align-content|flex-|-self/g,"")+t;
1case 5548:return e0+t+eJ+e8(t,"shrink","negative")+t;case 5292:return e0+t+eJ+e8(t,"basis","preferred-size")+t;case 6060:return e0+"box-"+e8(t,"-grow","")+e0+t+eJ+e8(t,"grow","positive")+t;case 4554:return e0+e8(t,/([^-])(transform)/g,"$1"+e0+"$2")+t;case 6187:return e8(e8(e8(t,/(zoom-|grab)/,e0+"$1"),/(image-set)/,e0+"$1"),t,"")+t;case 5495:case 3959:return e8(t,/(image-set\([^]*)/,e0+"$1$`$1");case 4968:return e8(e8(t,/(.+:)(flex-)?(.*)/,e0+"box-pack:$3"+eJ+"flex-pack:$3"),/space-between/,"justify")+e0+t+t;case 4200:if(!e9(t,/flex-|baseline/))return eJ+"grid-column-align"+tn(t,n)+t;break;case 2592:case 3360:return eJ+e8(t,"template-","")+t;case 4384:case 3616:if(r&&r.some(function(e,t){return n=t,e9(e.props,/grid-\w+-end/)}))return~te(t+(r=r[n].value),"span",0)?t:eJ+e8(t,"-start","")+t+eJ+"grid-row-span:"+(~te(r,"span",0)?e9(r,/\d+/):e9(r,/\d+/)-e9(t,/\d+/))+";";return eJ+e8(t,"-start","")+t;case 4896:case 4128:return r&&r.some(function(e){return e9(e.props,/grid-\w+-start/)})?t:eJ+e8(e8(t,"-end","-span"),"span ","")+t;case 4095:case 3583:case 4068:case 2532:return e8(t,/(.+)-inline(.+)/,e0+"$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(tr(t)-1-n>6)switch(tt(t,n+1)){case 109:if(45!==tt(t,n+4))break;case 102:return e8(t,/(.+:)(.+)-([^]+)/,"$1"+e0+"$2-$3$1"+eQ+(108==tt(t,n+3)?"$3":"$2-$3"))+t;case 115:return~te(t,"stretch",0)?e(e8(t,"stretch","fill-available"),n,r)+t:t}break;case 5152:case 5920:return e8(t,/(.+?):(\d+)(\s*\/\s*(span)?\s*(\d+))?(.*)/,function(e,n,r,i,o,a,s){return eJ+n+":"+r+s+(i?eJ+n+"-span:"+(o?a:a-r)+s:"")+t});case 4949:if(121===tt(t,n+6))return e8(t,":",":"+e0)+t;break;case 6444:switch(tt(t,45===tt(t,14)?18:11)){case 120:return e8(t,/(.+:)([^;\s!]+)(;|(\s+)?!.+)?/,"$1"+e0+(45===tt(t,14)?"inline-":"")+"box$3$1"+e0+"$2$3$1"+eJ+"$2box$3")+t;case 100:return e8(t,":",":"+eJ)+t}break;case 5719:case 2647:case 2135:case 3927:case 2391:return e8(t,"scroll-","scroll-snap-")+t}return t}(e.value,e.length,n);return;case e5:return tv([tf(e,{value:e8(e.value,"@","@"+e0)})],r);case e2:if(e.length){var i,o;return i=n=e.props,o=function(t){switch(e9(t,r=/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":tp(tf(e,{props:[e8(t,/:(read-\w+)/,":"+eQ+"$1")]})),tp(tf(e,{props:[t]})),e7(e,{props:to(n,r)});break;case"::placeholder":tp(tf(e,{props:[e8(t,/:(plac\w+)/,":"+e0+"input-$1")]})),tp(tf(e,{props:[e8(t,/:(plac\w+)/,":"+eQ+"$1")]})),tp(tf(e,{props:[e8(t,/:(plac\w+)/,eJ+"input-$1")]})),tp(tf(e,{props:[t]})),e7(e,{props:to(n,r)})}return""},i.map(o).join("")}}}function tk(e,t,n,r,i,o,a,s,l,d,u,c){for(var h=i-1,f=0===i?o:[""],p=f.length,m=0,g=0,b=0;m<r;++m)for(var y=0,v=tn(e,h+1,h=e4(g=a[m])),x=e;y<p;++y)(x=(g>0?f[y]+" "+v:e8(v,/&\f/g,f[y])).trim())&&(l[b++]=x);return th(e,t,n,0===i?e2:s,l,d,u,c)}function tS(e,t,n,r,i){return th(e,t,n,e3,tn(e,0,r),tn(e,r+1,-1),r,i)}let t$=void 0!==eK.default&&void 0!==eK.default.env&&(eK.default.env.REACT_APP_SC_ATTR||eK.default.env.SC_ATTR)||"data-styled",tC="active",tE="data-styled-version",tR="6.5.3",tT="/*!sc*/\n",tA="u">typeof window&&"u">typeof document;function tP(e){if(void 0!==eK.default&&void 0!==eK.default.env){let t=eK.default.env[e];if(void 0!==t&&""!==t)return"false"!==t}}let tj=!!("boolean"==typeof SC_DISABLE_SPEEDY?SC_DISABLE_SPEEDY:null!=(eY=null!=(eX=tP("REACT_APP_SC_DISABLE_SPEEDY"))?eX:tP("SC_DISABLE_SPEEDY"))?eY:void 0!==eK.default&&void 0!==eK.default.env&&!1),tM="sc-keyframes-",tI={};function t_(e,...t){return Error(`An error occurred. See https://github.com/styled-components/styled-components/blob/main/packages/styled-components/src/utils/errors.md#${e} for more information.${t.length>0?` Args: ${t.join(", ")}`:""}`)}let tz=new Map,tO=new Map,tL=1,tD=e=>{if(tz.has(e))return tz.get(e);for(;tO.has(tL);)tL++;let t=tL++;return tz.set(e,t),tO.set(t,e),t},tV=e=>tO.get(e),tB=(e,t)=>{tL=t+1,tz.set(e,t),tO.set(t,e)},tN=Object.freeze([]),tF=Object.freeze({});function tH(e,t,n=tF){return e.theme!==n.theme&&e.theme||t||n.theme}let tW=/[!"#$%&'()*+,./:;<=>?@[\\\]^`{|}~-]+/g,tU=/(^-|-$)/g;function tG(e){return e.replace(tW,"-").replace(tU,"")}let tX=/(a)(d)/gi,tY=e=>String.fromCharCode(e+(e>25?39:97));function tq(e){let t,n="";for(t=Math.abs(e);t>52;t=t/52|0)n=tY(t%52)+n;return(tY(t%52)+n).replace(tX,"$1-$2")}let tK=(e,t)=>{let n=t.length;for(;n;)e=33*e^t.charCodeAt(--n);return e};function tZ(e){return tq(tK(5381,e)>>>0)}function tJ(e){return"string"==typeof e}let tQ=Symbol.for("react.memo"),t0=Symbol.for("react.forward_ref"),t1={contextType:!0,defaultProps:!0,displayName:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,propTypes:!0,type:!0},t2={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},t3={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},t5={[t0]:{$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},[tQ]:t3};function t4(e){return("type"in e&&e.type.$$typeof)===tQ?t3:"$$typeof"in e?t5[e.$$typeof]:t1}let t6=Object.defineProperty,t7=Object.getOwnPropertyNames,t9=Object.getOwnPropertySymbols,t8=Object.getOwnPropertyDescriptor,ne=Object.getPrototypeOf,nt=Object.prototype;function nn(e){return"function"==typeof e}let nr=Symbol.for("react.forward_ref");function ni(e){return null!=e&&("object"==typeof e||"function"==typeof e)&&e.$$typeof===nr&&"styledComponentId"in e}function no(e,t){return e&&t?e+" "+t:e||t||""}function na(e,t){return e.join(t||"")}function ns(e){return null!==e&&"object"==typeof e&&e.constructor.name===Object.name&&!("props"in e&&e.$$typeof)}function nl(e,t){Object.defineProperty(e,"toString",{value:t})}let nd=class{constructor(e){this.groupSizes=new Uint32Array(512),this.length=512,this.tag=e,this._cGroup=0,this._cIndex=0}indexOfGroup(e){if(e===this._cGroup)return this._cIndex;let t=this._cIndex;if(e>this._cGroup)for(let n=this._cGroup;n<e;n++)t+=this.groupSizes[n];else for(let n=this._cGroup-1;n>=e;n--)t-=this.groupSizes[n];return this._cGroup=e,this._cIndex=t,t}insertRules(e,t){if(e>=this.groupSizes.length){let t=this.groupSizes,n=t.length,r=n;for(;e>=r;)if((r<<=1)<0)throw t_(16,`${e}`);this.groupSizes=new Uint32Array(r),this.groupSizes.set(t),this.length=r;for(let e=n;e<r;e++)this.groupSizes[e]=0}let n=this.indexOfGroup(e+1),r=0;for(let i=0,o=t.length;i<o;i++)this.tag.insertRule(n,t[i])&&(this.groupSizes[e]++,n++,r++);r>0&&this._cGroup>e&&(this._cIndex+=r)}clearGroup(e){if(e<this.length){let t=this.groupSizes[e],n=this.indexOfGroup(e),r=n+t;this.groupSizes[e]=0;for(let e=n;e<r;e++)this.tag.deleteRule(n);t>0&&this._cGroup>e&&(this._cIndex-=t)}}getGroup(e){let t="";if(e>=this.length||0===this.groupSizes[e])return t;let n=this.groupSizes[e],r=this.indexOfGroup(e),i=r+n;for(let e=r;e<i;e++)t+=this.tag.getRule(e)+tT;return t}},nu=`style[${t$}][${tE}="${tR}"]`,nc=RegExp(`^${t$}\\.g(\\d+)\\[id="([\\w\\d-]+)"\\].*?"([^"]*)`),nh=e=>"u">typeof ShadowRoot&&e instanceof ShadowRoot||"host"in e&&11===e.nodeType,nf=e=>{if(!e)return document;if(nh(e))return e;if("getRootNode"in e){let t=e.getRootNode();if(nh(t))return t}return document},np=(e,t,n)=>{let r,i=n.split(",");for(let n=0,o=i.length;n<o;n++)(r=i[n])&&e.registerName(t,r)},nm=(e,t)=>{var n;let r=(null!=(n=t.textContent)?n:"").split(tT),i=[];for(let t=0,n=r.length;t<n;t++){let n=r[t].trim();if(!n)continue;let o=n.match(nc);if(o){let t=0|parseInt(o[1],10),n=o[2];0!==t&&(tB(n,t),np(e,n,o[3]),e.getTag().insertRules(t,i)),i.length=0}else i.push(n)}},ng=e=>{let t=nf(e.options.target).querySelectorAll(nu);for(let n=0,r=t.length;n<r;n++){let r=t[n];r&&r.getAttribute(t$)!==tC&&(nm(e,r),r.parentNode&&r.parentNode.removeChild(r))}},nb=!1,ny=(e,t)=>{let n,r=document.head,i=e||r,o=document.createElement("style"),a=(n=Array.from(i.querySelectorAll(`style[${t$}]`)))[n.length-1],s=void 0!==a?a.nextSibling:null;o.setAttribute(t$,tC),o.setAttribute(tE,tR);let l=t||function(){if(!1!==nb)return nb;if("u">typeof document){let e=document.head.querySelector('meta[property="csp-nonce"]');if(e)return nb=e.nonce||e.getAttribute("content")||void 0;let t=document.head.querySelector('meta[name="sc-nonce"]');if(t)return nb=t.getAttribute("content")||void 0}return nb="u">typeof __webpack_nonce__?__webpack_nonce__:void 0}();return l&&o.setAttribute("nonce",l),i.insertBefore(o,s),o},nv=class{constructor(e,t){this.element=ny(e,t),this.element.appendChild(document.createTextNode("")),this.sheet=(e=>{var t;if(e.sheet)return e.sheet;let n=null!=(t=e.getRootNode().styleSheets)?t:document.styleSheets;for(let t=0,r=n.length;t<r;t++){let r=n[t];if(r.ownerNode===e)return r}throw t_(17)})(this.element),this.length=0}insertRule(e,t){try{return this.sheet.insertRule(t,e),this.length++,!0}catch(e){return!1}}deleteRule(e){this.sheet.deleteRule(e),this.length--}getRule(e){let t=this.sheet.cssRules[e];return t&&t.cssText?t.cssText:""}}
1,nx=class{constructor(e,t){this.element=ny(e,t),this.nodes=this.element.childNodes,this.length=0}insertRule(e,t){if(e<=this.length&&e>=0){let n=document.createTextNode(t);return this.element.insertBefore(n,this.nodes[e]||null),this.length++,!0}return!1}deleteRule(e){this.element.removeChild(this.nodes[e]),this.length--}getRule(e){return e<this.length?this.nodes[e].textContent:""}},nw=tA,nk={isServer:!tA,useCSSOMInjection:!tj};class nS{static registerId(e){return tD(e)}constructor(e=tF,t={},n){this.options=Object.assign(Object.assign({},nk),e),this.gs=t,this.keyframeIds=new Set,this.names=new Map(n),this.server=!!e.isServer,!this.server&&tA&&nw&&(nw=!1,ng(this)),nl(this,()=>(e=>{let t=e.getTag(),{length:n}=t,r="";for(let i=0;i<n;i++){let n=tV(i);if(void 0===n)continue;let o=e.names.get(n);if(void 0===o||!o.size)continue;let a=t.getGroup(i);if(0===a.length)continue;let s=t$+".g"+i+'[id="'+n+'"]',l="";for(let e of o)e.length>0&&(l+=e+",");r+=a+s+'{content:"'+l+'"}'+tT}return r})(this))}rehydrate(){!this.server&&tA&&ng(this)}reconstructWithOptions(e,t=!0){let n=new nS(Object.assign(Object.assign({},this.options),e),this.gs,t&&this.names||void 0);return n.keyframeIds=new Set(this.keyframeIds),!this.server&&tA&&e.target!==this.options.target&&nf(this.options.target)!==nf(e.target)&&ng(n),n}allocateGSInstance(e){return this.gs[e]=(this.gs[e]||0)+1}getTag(){return this.tag||(this.tag=new nd((({useCSSOMInjection:e,target:t,nonce:n})=>e?new nv(t,n):new nx(t,n))(this.options)))}hasNameForId(e,t){var n,r;return null!=(r=null==(n=this.names.get(e))?void 0:n.has(t))&&r}registerName(e,t){tD(e),e.startsWith(tM)&&this.keyframeIds.add(e);let n=this.names.get(e);n?n.add(t):this.names.set(e,new Set([t]))}insertRules(e,t,n){this.registerName(e,t),this.getTag().insertRules(tD(e),n)}clearNames(e){this.names.has(e)&&this.names.get(e).clear()}clearRules(e){this.getTag().clearGroup(tD(e)),this.clearNames(e)}clearTag(){this.tag=void 0}}let n$=new WeakSet,nC={animationIterationCount:1,aspectRatio:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexShrink:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,scale:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1};function nE(e){if(45===e.charCodeAt(0)&&45===e.charCodeAt(1))return e;let t="";for(let n=0;n<e.length;n++){let r=e.charCodeAt(n);t+=r>=65&&r<=90?"-"+String.fromCharCode(r+32):e[n]}return t.startsWith("ms-")?"-"+t:t}let nR=Symbol.for("sc-keyframes");function nT(e){return nn(e)&&!(e.prototype&&e.prototype.isReactComponent)}let nA=e=>null==e||!1===e||""===e,nP=Symbol.for("react.client.reference");function nj(e){return e.$$typeof===nP}function nM(e,t,n,r,i=[]){if(nA(e))return i;let o=typeof e;if("string"===o)return i.push(e),i;if("function"===o)return nj(e)?i:nT(e)&&t?nM(e(t),t,n,r,i):(i.push(e),i);if(Array.isArray(e)){for(let o=0;o<e.length;o++)nM(e[o],t,n,r,i);return i}return ni(e)?i.push(`.${e.styledComponentId}`):"object"==typeof e&&null!==e&&nR in e?n?(e.inject(n,r),i.push(e.getName(r))):i.push(e):nj(e)||(ns(e)?e.toString!==Object.prototype.toString?i.push(e.toString()):function e(t,n){for(let r in t){let i=t[r];t.hasOwnProperty(r)&&!nA(i)&&(Array.isArray(i)&&n$.has(i)||nn(i)?n.push(nE(r)+":",i,";"):ns(i)?(n.push(r+" {"),e(i,n),n.push("}")):n.push(nE(r)+": "+(null==i||"boolean"==typeof i||""===i?"":"number"!=typeof i||0===i||r in nC||r.startsWith("--")?String(i).trim():i+"px")+";"))}}(e,i):i.push(e.toString())),i}let nI=tK(5381,tR);class n_{constructor(e,t,n){this.rules=e,this.componentId=t,this.baseHash=tK(nI,t),this.baseStyle=n,nS.registerId(t)}generateAndInjectStyles(e,t,n){let r=this.baseStyle?this.baseStyle.generateAndInjectStyles(e,t,n):"";{let i="";for(let r=0;r<this.rules.length;r++){let o=this.rules[r];if("string"==typeof o)i+=o;else if(o)if(nT(o)){let r=o(e);"string"==typeof r?i+=r:null!=r&&!1!==r&&(i+=na(nM(r,e,t,n)))}else i+=na(nM(o,e,t,n))}
1if(i){this.dynamicNameCache||(this.dynamicNameCache=new Map);let e=n.hash?n.hash+i:i,o=this.dynamicNameCache.get(e);if(!o){if(o=tq(tK(tK(this.baseHash,n.hash),i)>>>0),this.dynamicNameCache.size>=200){let e=this.dynamicNameCache.keys().next().value;void 0!==e&&this.dynamicNameCache.delete(e)}this.dynamicNameCache.set(e,o)}if(!t.hasNameForId(this.componentId,o)){let e=n(i,"."+o,void 0,this.componentId);t.insertRules(this.componentId,o,e)}r=no(r,o)}}return r}}let nz=/&/g;function nO(e,t){let n=0;for(;--t>=0&&92===e.charCodeAt(t);)n++;return!(1&~n)}function nL(e){let t=e.length,n="",r=0,i=0,o=0,a=!1,s=!1;for(let l=0;l<t;l++){let d=e.charCodeAt(l);if(0!==o||a||47!==d||42!==e.charCodeAt(l+1))if(a)42===d&&47===e.charCodeAt(l+1)&&(a=!1,l++);else if(34!==d&&39!==d||nO(e,l)){if(0===o)if(123===d)i++;else if(125===d){if(--i<0){s=!0;let n=l+1;for(;n<t;){let t=e.charCodeAt(n);if(59===t||10===t)break;n++}n<t&&59===e.charCodeAt(n)&&n++,i=0,l=n-1,r=n;continue}0===i&&(n+=e.substring(r,l+1),r=l+1)}else 59===d&&0===i&&(n+=e.substring(r,l+1),r=l+1)}else 0===o?o=d:o===d&&(o=0);else a=!0,l++}return s||0!==i||0!==o?(r<t&&0===i&&0===o&&(n+=e.substring(r)),n):e}let nD=new nS,nV=function({options:e=tF,plugins:t=tN}=tF){var n,r,i;let o,a,s,l=(e,t,n)=>n.startsWith(a)&&n.endsWith(a)&&n.replaceAll(a,"").length>0?`.${o}`:e,d=t.slice();d.push(e=>{e.type===e2&&e.value.includes("&")&&(s||(s=RegExp(`\\${a}\\b`,"g")),e.props[0]=e.props[0].replace(nz,a).replace(s,l))}),e.prefix&&d.push(tw),d.push(tx);let u=[],c=(i=(r=d.concat((n=e=>u.push(e),function(e){!e.root&&(e=e.return)&&n(e)}))).length,function(e,t,n,o){for(var a="",s=0;s<i;s++)a+=r[s](e,t,n,o)||"";return a}),h=(t,n="",r="",i="&")=>{var l,d,h;o=i,a=n,s=void 0;let f=function(e){let t=-1!==e.indexOf("//"),n=-1!==e.indexOf("}");if(!t&&!n)return e;if(!t)return nL(e);let r=e.length,i="",o=0,a=0,s=0,l=0,d=0,u=!1;for(;a<r;){let t=e.charCodeAt(a);if(34!==t&&39!==t||nO(e,a))if(0===s)if(47===t&&a+1<r&&42===e.charCodeAt(a+1)){for(a+=2;a+1<r&&(42!==e.charCodeAt(a)||47!==e.charCodeAt(a+1));)a++;a+=2}else if(40!==t)if(41!==t)if(l>0)a++;else if(42===t&&a+1<r&&47===e.charCodeAt(a+1))i+=e.substring(o,a),a+=2,o=a,u=!0;else if(47===t&&a+1<r&&47===e.charCodeAt(a+1)){for(i+=e.substring(o,a);a<r&&10!==e.charCodeAt(a);)a++;o=a,u=!0}else 123===t?d++:125===t&&d--,a++;else l>0&&l--,a++;else l++,a++;else a++;else 0===s?s=t:s===t&&(s=0),a++}return u?(o<r&&(i+=e.substring(o)),0===d?i:nL(i)):0===d?e:nL(e)}(t),p=(h=function e(t,n,r,i,o,a,s,l,d){for(var u,c,h,f,p=0,m=0,g=s,b=0,y=0,v=0,x=1,w=1,k=1,S=0,$="",C=o,E=a,R=i,T=$;w;)switch(v=S,S=tm()){case 40:if(108!=v&&58==tt(T,g-1)){-1!=te(T+=e8(ty(S),"&","&\f"),"&\f",e4(p?l[p-1]:0))&&(k=-1);break}case 34:case 39:case 91:T+=ty(S);break;case 9:case 10:case 13:case 32:T+=function(e){for(;tu=tg();)if(tu<33)tm();else break;return tb(e)>2||tb(tu)>3?"":" "}(v);break;case 92:T+=function(e,t){for(var n;--t&&tm()&&!(tu<48)&&!(tu>102)&&(!(tu>57)||!(tu<65))&&(!(tu>70)||!(tu<97)););return n=td+(t<6&&32==tg()&&32==tm()),tn(tc,e,n)}(td-1,7);continue;case 47:switch(tg()){case 42:case 47:ti((u=function(e,t){for(;tm();)if(e+tu===57)break;else if(e+tu===84&&47===tg())break;return"/*"+tn(tc,t,td-1)+"*"+e6(47===e?e:tm())}(tm(),td),c=n,h=r,f=d,th(u,c,h,e1,e6(tu),tn(u,2,-2),0,f)),d),(5==tb(v||1)||5==tb(tg()||1))&&tr(T)&&" "!==tn(T,-1,void 0)&&(T+=" ");break;default:T+="/"}break;case 123*x:l[p++]=tr(T)*k;case 125*x:case 59:case 0:switch(S){case 0:case 125:w=0;case 59+m:-1==k&&(T=e8(T,/\f/g,"")),y>0&&(tr(T)-g||0===x&&47===v)&&ti(y>32?tS(T+";",i,r,g-1,d):tS(e8(T," ","")+";",i,r,g-2,d),d);break;case 59:T+=";";default:if(ti(R=tk(T,n,r,p,m,o,l,$,C=[],E=[],g,a),a),123===S)if(0===m)e(T,n,R,R,C,a,g,l,E);else{switch(b){case 99:if(110===tt(T,3))break;case 108:if(97===tt(T,2))break;default:m=0;case 100:case 109:case 115:}m?e(t,R,R,i&&ti(tk(t,R,R,0,0,o,l,$,o,C=[],g,E),E),o,E,g,l,i?C:E):e(T,R,R,R,[""],E,0,l,E)}}p=m=y=0,x=k=1,$=T="",g=s;break;case 58:g=1+tr(T),y=v;default:if(x<1){if(123==S)--x;else if(125==S&&0==x++&&125==(tu=td>0?tt(tc,--td):0,ts--,10===tu&&(ts=1,ta--),tu))continue}switch(T+=e6(S),S*x){case 38:k=m>0?1:(T+="\f",-1);break;case 44:l[p++]=(tr(T)-1)*k,k=1;break;case 64:45===tg()&&(T+=ty(tm())),b=tg(),m=g=tr($=T+=function(e){for(;!tb(tg());)tm();return tn(tc,e,td)}(td)),S++;break;case 45:45===v&&2==tr(T)&&(x=0)}}return a}("",null,null,null,[""],(d=l=r||n?r+" "+n+" { "+f+" }":f,ta=ts=1,tl=tr(tc=d),td=0,l=[]),0,[0],l),tc="",h);return e.namespace&&(p=function e(t,n){let r=n+" ",i=","+r;for(let o=0;o<t.length;o++){let a=t[o];if("rule"===a.type){a.value=(r+a.value).replaceAll(",",i);let e=a.props,t=[];for(let n=0;n<e.length;n++)t[n]=r+e[n];a.props=t}Array.isArray(a.children)&&"@keyframes"!==a.type&&e(a.children,n)}return t}(p,e.namespace)),u=[],tv(p,c),u},f=5381;for(let e=0;e<t.length;e++)t[e].name||t_(15),f=tK(f,t[e].name);
1return(null==e?void 0:e.namespace)&&(f=tK(f,e.namespace)),(null==e?void 0:e.prefix)&&(f=tK(f,"p")),h.hash=5381!==f?f.toString():"",h}(),nB=eZ.default.createContext({shouldForwardProp:void 0,styleSheet:nD,stylis:nV,stylisPlugins:void 0});function nN(){return eZ.default.useContext(nB)}nB.Consumer;let nF=eZ.default.createContext(void 0);nF.Consumer;let nH=Object.prototype.hasOwnProperty,nW={};function nU(e,t,n){var r,i;let o,a,s=ni(e),l=!tJ(e),{attrs:d=tN,componentId:u=(r=t.displayName,i=t.parentComponentId,nW[o="string"!=typeof r?"sc":tG(r)]=(nW[o]||0)+1,a=o+"-"+tZ(tR+o+nW[o]),i?i+"-"+a:a),displayName:c=tJ(e)?`styled.${e}`:`Styled(${e.displayName||e.name||"Component"})`}=t,h=t.displayName&&t.componentId?tG(t.displayName)+"-"+t.componentId:t.componentId||u,f=s&&e.attrs?e.attrs.concat(d).filter(Boolean):d,{shouldForwardProp:p}=t;if(s&&e.shouldForwardProp){let n=e.shouldForwardProp;if(t.shouldForwardProp){let e=t.shouldForwardProp;p=(t,r)=>n(t,r)&&e(t,r)}else p=n}let m=new n_(n,h,s?e.componentStyle:void 0);function g(e,t){return function(e,t,n){let r,i,{attrs:o,componentStyle:a,defaultProps:s,foldedComponentIds:l,styledComponentId:d,target:u}=e,c=eZ.default.useContext(nF),h=nN(),f=e.shouldForwardProp||h.shouldForwardProp,p=tH(t,c,s)||tF;{let e=eZ.default.useRef(null),n=e.current;if(null!==n&&n[1]===p&&n[2]===h.styleSheet&&n[3]===h.stylis&&n[7]===a&&function(e,t,n){let r=0;for(let n in t)if(nH.call(t,n)&&(r++,e[n]!==t[n]))return!1;return r===n}(n[0],t,n[4]))r=n[5],i=n[6];else{r=function(e,t,n){let r=Object.assign(Object.assign({},t),{className:void 0,theme:n}),i=e.length>1;for(let n=0;n<e.length;n++){let o=e[n],a=nn(o)?o(i?Object.assign({},r):r):o;for(let e in a)"className"===e?r.className=no(r.className,a[e]):"style"===e?r.style=Object.assign(Object.assign({},r.style),a[e]):e in t&&void 0===t[e]||(r[e]=a[e])}return"className"in t&&"string"==typeof t.className&&(r.className=no(r.className,t.className)),r}(o,t,p),i=a.generateAndInjectStyles(r,h.styleSheet,h.stylis);let n=0;for(let e in t)nH.call(t,e)&&n++;e.current=[t,p,h.styleSheet,h.stylis,n,r,i,a]}}let m=r.as||u,g=function(e,t,n,r){let i={};for(let o in e)void 0===e[o]||"$"===o[0]||"as"===o||"theme"===o&&e.theme===n||("forwardedAs"===o?i.as=e.forwardedAs:r&&!r(o,t)||(i[o]=e[o]));return i}(r,m,p,f),b=no(l,d);return i&&(b+=" "+i),r.className&&(b+=" "+r.className),g[tJ(m)&&m.includes("-")?"class":"className"]=b,n&&(g.ref=n),(0,eZ.createElement)(m,g)}(b,e,t)}g.displayName=c;let b=eZ.default.forwardRef(g);return b.attrs=f,b.componentStyle=m,b.displayName=c,b.shouldForwardProp=p,b.foldedComponentIds=s?no(e.foldedComponentIds,e.styledComponentId):"",b.styledComponentId=h,b.target=s?e.target:e,Object.defineProperty(b,"defaultProps",{get(){return this._foldedDefaultProps},set(t){this._foldedDefaultProps=s?function(e,...t){for(let n of t)!function e(t,n,r=!1){if(!r&&!ns(t)&&!Array.isArray(t))return n;if(Array.isArray(n))for(let r=0;r<n.length;r++)t[r]=e(t[r],n[r]);else if(ns(n))for(let r in n)t[r]=e(t[r],n[r]);return t}(e,n,!0);return e}({},e.defaultProps,t):t}}),nl(b,()=>`.${b.styledComponentId}`),l&&function e(t,n,r){if("string"!=typeof n){let i=ne(n);i&&i!==nt&&e(t,i,r);let o=t7(n).concat(t9(n)),a=t4(t),s=t4(n);for(let e=0;e<o.length;++e){let i=o[e];if(!(i in t2||r&&r[i]||s&&i in s||a&&i in a)){let e=t8(n,i);try{t6(t,i,e)}catch(e){}}}}return t}(b,e,{attrs:!0,componentStyle:!0,displayName:!0,foldedComponentIds:!0,shouldForwardProp:!0,styledComponentId:!0,target:!0}),b}var nG=new Set(["a","abbr","address","area","article","aside","audio","b","bdi","bdo","blockquote","body","button","br","canvas","caption","cite","code","col","colgroup","data","datalist","dd","del","details","dfn","dialog","div","dl","dt","em","embed","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","header","hgroup","hr","html","i","iframe","img","input","ins","kbd","label","legend","li","main","map","mark","menu","meter","nav","object","ol","optgroup","option","output","p","picture","pre","progress","q","rp","rt","ruby","s","samp","search","section","select","slot","small","span","strong","sub","summary","sup","table","tbody","td","template","textarea","tfoot","th","thead","time","tr","u","ul","var","video","wbr","circle","clipPath","defs","ellipse","feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feDropShadow","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence","filter","foreignObject","g","image","line","linearGradient","marker","mask","path","pattern","polygon","polyline","radialGradient","rect","stop","svg","switch","symbol","text","textPath","tspan","use"]);function nX(e,t){let n=[e[0]];for(let r=0,i=t.length;r<i;r+=1)n.push(t[r],e[r+1]);return n}let nY=e=>(n$.add(e),e);function nq(e,...t){return nn(e)||ns(e)?nY(nM(nX(tN,[e,...t]))):0===t.length&&1===e.length&&"string"==typeof e[0]?nM(e):nY(nM(nX(e,t)))}let nK=e=>(function e(t,n,r=tF){if(!n)throw t_(1,n);let i=(e,...i)=>t(n,r,nq(e,...i));return i.attrs=i=>e(t,n,Object.assign(Object.assign({}
1,r),{attrs:Array.prototype.concat(r.attrs,i).filter(Boolean)})),i.withConfig=i=>e(t,n,Object.assign(Object.assign({},r),i)),i})(nU,e);nG.forEach(e=>{nK[e]=nK(e)});class nZ{constructor(e,t){this.instanceRules=new Map,this.rules=e,this.componentId=t,this.isStatic=function(e){for(let t=0;t<e.length;t+=1){let n=e[t];if(nn(n)&&!ni(n))return!1}return!0}(e),nS.registerId(this.componentId)}removeStyles(e,t){this.instanceRules.delete(e),this.rebuildGroup(t)}renderStyles(e,t,n,r){let i=this.componentId;if(this.isStatic){if(n.hasNameForId(i,i+e))this.instanceRules.has(e)||this.computeRules(e,t,n,r);else{let o=this.computeRules(e,t,n,r);n.insertRules(i,o.name,o.rules)}return}let o=this.instanceRules.get(e);if(this.computeRules(e,t,n,r),!n.server&&o){let t=o.rules,n=this.instanceRules.get(e).rules;if(t.length===n.length){let e=!0;for(let r=0;r<t.length;r++)if(t[r]!==n[r]){e=!1;break}if(e)return}}this.rebuildGroup(n)}computeRules(e,t,n,r){let i=na(nM(this.rules,t,n,r)),o={name:this.componentId+e,rules:r(i,"")};return this.instanceRules.set(e,o),o}rebuildGroup(e){let t=this.componentId;for(let n of(e.clearRules(t),this.instanceRules.values()))e.insertRules(t,n.name,n.rules)}}class nJ{constructor(e,t){this[eq]=!0,this.inject=(e,t=nV)=>{let n=this.getName(t);if(!e.hasNameForId(this.id,n)){let r=t(this.rules,n,"@keyframes");e.insertRules(this.id,n,r)}},this.name=e,this.id=tM+e,this.rules=t,tD(this.id),nl(this,()=>{throw t_(12,String(this.name))})}getName(e=nV){return e.hash?this.name+tq(e.hash>>>0):this.name}}eq=nR,e.s(["ThemeProvider",0,function(e){let t=eZ.default.useContext(nF),n=eZ.default.useMemo(()=>(function(e,t){if(!e)throw t_(14);if(nn(e))return e(t);if(Array.isArray(e)||"object"!=typeof e)throw t_(8);return t?Object.assign(Object.assign({},t),e):e})(e.theme,t),[e.theme,t]);return e.children?eZ.default.createElement(nF.Provider,{value:n},e.children):null},"createGlobalStyle",0,function(e,...t){let n=nq(e,...t),r=`sc-global-${tZ(JSON.stringify(n))}`,i=new nZ(n,r),o=e=>{let t,n=nN(),o=eZ.default.useContext(nF);{let e=eZ.default.useRef(null);null===e.current&&(e.current=n.styleSheet.allocateGSInstance(r)),t=e.current}n.styleSheet.server&&a(t,e,n.styleSheet,o,n.stylis);{let s=i.isStatic?[t,n.styleSheet,i]:[t,e,n.styleSheet,o,n.stylis,i],l=eZ.default.useRef(i);eZ.default.useLayoutEffect(()=>{n.styleSheet.server||(l.current!==i&&(n.styleSheet.clearRules(r),l.current=i),a(t,e,n.styleSheet,o,n.stylis))},s),eZ.default.useLayoutEffect(()=>()=>{n.styleSheet.server||i.removeStyles(t,n.styleSheet)},[t,n.styleSheet,i])}return n.styleSheet.server&&i.instanceRules.delete(t),null};function a(e,t,n,r,a){if(i.isStatic)i.renderStyles(e,tI,n,a);else{let s=Object.assign(Object.assign({},t),{theme:tH(t,r,o.defaultProps)});i.renderStyles(e,s,n,a)}}return eZ.default.memo(o)},"css",0,nq,"default",0,nK,"keyframes",0,function(e,...t){let n=na(nq(e,...t));return new nJ(tZ(n),n)},"styled",0,nK,"useTheme",0,function(){let e=eZ.default.useContext(nF);if(!e)throw t_(18);return e}],702826);var nQ=e.i(836193);let n0=(0,eZ.forwardRef)(function(e,t){return(0,nQ.jsx)("svg",{"data-sanity-icon":"spinner",width:"1em",height:"1em",viewBox:"0 0 25 25",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e,ref:t,children:(0,nQ.jsx)("path",{d:"M4.5 12.5C4.5 16.9183 8.08172 20.5 12.5 20.5C16.9183 20.5 20.5 16.9183 20.5 12.5C20.5 8.08172 16.9183 4.5 12.5 4.5",stroke:"currentColor",strokeWidth:1.2,strokeLinejoin:"round"})})});e.s(["SpinnerIcon",0,n0],42353);let n1=["top","right","bottom","left"],n2=n1.reduce((e,t)=>e.concat(t,t+"-start",t+"-end"),[]),n3=Math.min,n5=Math.max,n4=Math.round,n6=Math.floor,n7=e=>({x:e,y:e}),n9={left:"right",right:"left",bottom:"top",top:"bottom"};function n8(e,t){return"function"==typeof e?e(t):e}function re(e){return e.split("-")[0]}function rt(e){return e.split("-")[1]}function rn(e){return"x"===e?"y":"x"}function rr(e){return"y"===e?"height":"width"}function ri(e){let t=e[0];return"t"===t||"b"===t?"y":"x"}function ro(e,t,n){void 0===n&&(n=!1);let r=rt(e),i=rn(ri(e)),o=rr(i),a="x"===i?r===(n?"end":"start")?"right":"left":"start"===r?"bottom":"top";return t.reference[o]>t.floating[o]&&(a=rc(a)),[a,rc(a)]}function ra(e){return e.includes("start")?e.replace("start","end"):e.replace("end","start")}let rs=["left","right"],rl=["right","left"],rd=["top","bottom"],ru=["bottom","top"];function rc(e){let t=re(e);return n9[t]+e.slice(t.length)}function rh(e){var t,n,r,i;return"number"!=typeof e?{top:null!=(t=e.top)?t:0,right:null!=(n=e.right)?n:0,bottom:null!=(r=e.bottom)?r:0,left:null!=(i=e.left)?i:0}:{top:e,right:e,bottom:e,left:e}}function rf(e){let{x:t,y:n,width:r,height:i}=e;return{width:r,height:i,top:n,left:t,right:t+r,bottom:n+i,x:t,y:n}}function rp(e,t,n){let r,{reference:i,floating:o}=e,a=ri(t),s=rn(ri(t)),l=rr(s),d=re(t),u=i.x+i.width/2-o.width/2,c=i.y+i.height/2-o.height/2,h=i[l]/2-o[l]/2;switch(d){case"top":r={x:u,y:i.y-o.height};break;case"bottom":r={x:u,y:i.y+i.height};break;case"right":r={x:i.x+i.width,y:c};break;case"left":r={x:i.x-o.width,y:c};break;default:r={x:i.x,y:i.y}}let f=rt(t);return f&&(r[s]+=h*("end"===f?1:-1)*(n&&"y"===a?-1:1)),r}async function rm(e,t){var n;void 0===t&&(t={});let{x:r,y:i,platform:o,rects:a,elements:s,strategy:l}=e,{boundary:d="clippingAncestors",rootBoundary:u="viewport",elementContext:c="floating",altBoundary:h=!1,padding:f=0}=n8(t,e),p=rh(f),m=s[h?"floating"===c?"reference":"floating":c],g=rf(await o.getClippingRect
1({element:null==(n=await (null==o.isElement?void 0:o.isElement(m)))||n?m:m.contextElement||await (null==o.getDocumentElement?void 0:o.getDocumentElement(s.floating)),boundary:d,rootBoundary:u,strategy:l})),b="floating"===c?{x:r,y:i,width:a.floating.width,height:a.floating.height}:a.reference,y=await (null==o.getOffsetParent?void 0:o.getOffsetParent(s.floating)),v=await (null==o.isElement?void 0:o.isElement(y))&&await (null==o.getScale?void 0:o.getScale(y))||{x:1,y:1},x=rf(o.convertOffsetParentRelativeRectToViewportRelativeRect?await o.convertOffsetParentRelativeRectToViewportRelativeRect({elements:s,rect:b,offsetParent:y,strategy:l}):b);return{top:(g.top-x.top+p.top)/v.y,bottom:(x.bottom-g.bottom+p.bottom)/v.y,left:(g.left-x.left+p.left)/v.x,right:(x.right-g.right+p.right)/v.x}}let rg=async(e,t,n)=>{let{placement:r="bottom",strategy:i="absolute",middleware:o=[],platform:a}=n,s=a.detectOverflow?a:{...a,detectOverflow:rm},l=await (null==a.isRTL?void 0:a.isRTL(t)),d=await a.getElementRects({reference:e,floating:t,strategy:i}),{x:u,y:c}=rp(d,r,l),h=r,f=0,p={};for(let n=0;n<o.length;n++){let m=o[n];if(!m)continue;let{name:g,fn:b}=m,{x:y,y:v,data:x,reset:w}=await b({x:u,y:c,initialPlacement:r,placement:h,strategy:i,middlewareData:p,rects:d,platform:s,elements:{reference:e,floating:t}});u=null!=y?y:u,c=null!=v?v:c,p[g]={...p[g],...x},w&&f<50&&(f++,"object"==typeof w&&(w.placement&&(h=w.placement),w.rects&&(d=!0===w.rects?await a.getElementRects({reference:e,floating:t,strategy:i}):w.rects),{x:u,y:c}=rp(d,h,l)),n=-1)}return{x:u,y:c,placement:h,strategy:i,middlewareData:p}};function rb(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function ry(e){return n1.some(t=>e[t]>=0)}function rv(e){let t=n3(...e.map(e=>e.left)),n=n3(...e.map(e=>e.top));return{x:t,y:n,width:n5(...e.map(e=>e.right))-t,height:n5(...e.map(e=>e.bottom))-n}}let rx=new Set(["left","top"]);async function rw(e,t){let{placement:n,platform:r,elements:i}=e,o=await (null==r.isRTL?void 0:r.isRTL(i.floating)),a=re(n),s=rt(n),l="y"===ri(n),d=rx.has(a)?-1:1,u=o&&l?-1:1,c=n8(t,e),{mainAxis:h,crossAxis:f,alignmentAxis:p}="number"==typeof c?{mainAxis:c,crossAxis:0,alignmentAxis:null}:{mainAxis:c.mainAxis||0,crossAxis:c.crossAxis||0,alignmentAxis:c.alignmentAxis};return s&&"number"==typeof p&&(f="end"===s?-1*p:p),l?{x:f*u,y:h*d}:{x:h*d,y:f*u}}function rk(){return"u">typeof window}function rS(e){return rE(e)?(e.nodeName||"").toLowerCase():"#document"}function r$(e){var t;return(null==e||null==(t=e.ownerDocument)?void 0:t.defaultView)||window}function rC(e){var t;return null==(t=(rE(e)?e.ownerDocument:e.document)||window.document)?void 0:t.documentElement}function rE(e){return!!rk()&&(e instanceof Node||e instanceof r$(e).Node)}function rR(e){return!!rk()&&(e instanceof Element||e instanceof r$(e).Element)}function rT(e){return!!rk()&&(e instanceof HTMLElement||e instanceof r$(e).HTMLElement)}function rA(e){return!(!rk()||"u"<typeof ShadowRoot)&&(e instanceof ShadowRoot||e instanceof r$(e).ShadowRoot)}function rP(e){let{overflow:t,overflowX:n,overflowY:r,display:i}=rD(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&"inline"!==i&&"contents"!==i}function rj(e){try{if(e.matches(":popover-open"))return!0}catch(e){}try{return e.matches(":modal")}catch(e){return!1}}let rM=/transform|translate|scale|rotate|perspective|filter/,rI=/paint|layout|strict|content/,r_=e=>!!e&&"none"!==e;function rz(e){let t=rR(e)?rD(e):e;return r_(t.transform)||r_(t.translate)||r_(t.scale)||r_(t.rotate)||r_(t.perspective)||!rO()&&(r_(t.backdropFilter)||r_(t.filter))||rM.test(t.willChange||"")||rI.test(t.contain||"")}function rO(){return null==t&&(t="u">typeof CSS&&CSS.supports&&CSS.supports("-webkit-backdrop-filter","none")),t}function rL(e){return/^(html|body|#document)$/.test(rS(e))}function rD(e){return r$(e).getComputedStyle(e)}function rV(e){return rR(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function rB(e){if("html"===rS(e))return e;let t=e.assignedSlot||e.parentNode||rA(e)&&e.host||rC(e);return rA(t)?t.host:t}function rN(e,t,n){var r;void 0===t&&(t=[]),void 0===n&&(n=!0);let i=function e(t){let n=rB(t);return rL(n)?(t.ownerDocument||t).body:rT(n)&&rP(n)?n:e(n)}(e),o=i===(null==(r=e.ownerDocument)?void 0:r.body),a=r$(i);if(!o)return t.concat(i,rN(i,[],n));{let e=rF(a);
1return t.concat(a,a.visualViewport||[],rP(i)?i:[],e&&n?rN(e):[])}}function rF(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function rH(e){let t=rD(e),n=parseFloat(t.width)||0,r=parseFloat(t.height)||0,i=rT(e),o=i?e.offsetWidth:n,a=i?e.offsetHeight:r,s=n4(n)!==o||n4(r)!==a;return s&&(n=o,r=a),{width:n,height:r,$:s}}function rW(e){return rR(e)?e:e.contextElement}function rU(e){let t=rW(e);if(!rT(t))return n7(1);let n=t.getBoundingClientRect(),{width:r,height:i,$:o}=rH(t),a=(o?n4(n.width):n.width)/r,s=(o?n4(n.height):n.height)/i;return a&&Number.isFinite(a)||(a=1),s&&Number.isFinite(s)||(s=1),{x:a,y:s}}let rG=n7(0);function rX(e){let t=r$(e);return rO()&&t.visualViewport?{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}:rG}function rY(e,t,n,r){var i;void 0===t&&(t=!1),void 0===n&&(n=!1);let o=e.getBoundingClientRect(),a=rW(e),s=n7(1);t&&(r?rR(r)&&(s=rU(r)):s=rU(e));let l=(void 0===(i=n)&&(i=!1),r&&i&&r===r$(a))?rX(a):n7(0),d=(o.left+l.x)/s.x,u=(o.top+l.y)/s.y,c=o.width/s.x,h=o.height/s.y;if(a&&r){let e=r$(a),t=rR(r)?r$(r):r,n=e,i=rF(n);for(;i&&t!==n;){let e=rU(i),t=i.getBoundingClientRect(),r=rD(i),o=t.left+(i.clientLeft+parseFloat(r.paddingLeft))*e.x,a=t.top+(i.clientTop+parseFloat(r.paddingTop))*e.y;d*=e.x,u*=e.y,c*=e.x,h*=e.y,d+=o,u+=a,i=rF(n=r$(i))}}return rf({width:c,height:h,x:d,y:u})}function rq(e,t){let n=rV(e).scrollLeft;return t?t.left+n:rY(rC(e)).left+n}function rK(e,t){let n=e.getBoundingClientRect();return{x:n.left+t.scrollLeft-rq(e,n),y:n.top+t.scrollTop}}function rZ(e,t,n){var r;let i;if("viewport"===t||"layoutViewport"===t)i=function(e,t,n){void 0===n&&(n="viewport");let r="layoutViewport"===n,i=r$(e),o=rC(e),a=i.visualViewport,s=o.clientWidth,l=o.clientHeight,d=0,u=0;if(a){let e=!rO()||"fixed"===t;r?e||(d=-a.offsetLeft,u=-a.offsetTop):(s=a.width,l=a.height,e&&(d=a.offsetLeft,u=a.offsetTop))}if(0>=rq(o)){let e=o.ownerDocument,t=e.body,n=getComputedStyle(t),r="CSS1Compat"===e.compatMode&&parseFloat(n.marginLeft)+parseFloat(n.marginRight)||0,i=Math.abs(o.clientWidth-t.clientWidth-r),a="stable both-edges"===getComputedStyle(o).scrollbarGutter?i/2:i;a<=25&&(s-=a)}return{width:s,height:l,x:d,y:u}}(e,n,t);else if("document"===t){let t,n,o,a,s,l;t=rV(r=rC(e)),n=r.ownerDocument.body,o=n5(r.scrollWidth,r.clientWidth,n.scrollWidth,n.clientWidth),a=n5(r.scrollHeight,r.clientHeight,n.scrollHeight,n.clientHeight),s=-t.scrollLeft+rq(r),l=-t.scrollTop,"rtl"===rD(n).direction&&(s+=n5(r.clientWidth,n.clientWidth)-o),i={width:o,height:a,x:s,y:l}}else if(rR(t)){let e,r,o,a,s,l;r=(e=rY(t,!0,"fixed"===n)).top+t.clientTop,o=e.left+t.clientLeft,a=rU(t),s=t.clientWidth*a.x,l=t.clientHeight*a.y,i={width:s,height:l,x:o*a.x,y:r*a.y}}else{let n=rX(e);i={x:t.x-n.x,y:t.y-n.y,width:t.width,height:t.height}}return rf(i)}function rJ(e){return"static"===rD(e).position}function rQ(e,t){if(!rT(e)||"fixed"===rD(e).position)return null;if(t)return t(e);let n=e.offsetParent;return rC(e)===n&&(n=n.ownerDocument.body),n}function r0(e,t){var n;let r=r$(e);if(rj(e))return r;if(!rT(e)){let t=rB(e);for(;t&&!rL(t);){if(rR(t)&&!rJ(t))return t;t=rB(t)}return r}let i=rQ(e,t);for(;i&&(n=i,/^(table|td|th)$/.test(rS(n)))&&rJ(i);)i=rQ(i,t);return i&&rL(i)&&rJ(i)&&!rz(i)?r:i||function(e){let t=rB(e);for(;rT(t)&&!rL(t);){if(rz(t))return t;if(rj(t))break;t=rB(t)}return null}(e)||r}let r1=async function(e){let t=this.getOffsetParent||r0,n=this.getDimensions,r=await n(e.floating);return{reference:function(e,t,n){let r=rT(t),i=rC(t),o="fixed"===n,a=rY(e,!0,o,t),s={scrollLeft:0,scrollTop:0},l=n7(0);if((r||!o)&&(("body"!==rS(t)||rP(i))&&(s=rV(t)),r)){let e=rY(t,!0,o,t);l.x=e.x+t.clientLeft,l.y=e.y+t.clientTop}!r&&i&&(l.x=rq(i));let d=!i||r||o?n7(0):rK(i,s);return{x:a.left+s.scrollLeft-l.x-d.x,y:a.top+s.scrollTop-l.y-d.y,width:a.width,height:a.height}}(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:r.width,height:r.height}}},r2={convertOffsetParentRelativeRectToViewportRelativeRect:function(e){let{elements:t,rect:n,offsetParent:r,strategy:i}=e,o="fixed"===i,a=rC(r),s=!!t&&rj(t.floating);if(r===a||s&&o)return n;let l={scrollLeft:0,scrollTop:0},d=n7(1),u=n7(0),c=rT(r);
1if((c||!o)&&(("body"!==rS(r)||rP(a))&&(l=rV(r)),c)){let e=rY(r);d=rU(r),u.x=e.x+r.clientLeft,u.y=e.y+r.clientTop}let h=!a||c||o?n7(0):rK(a,l);return{width:n.width*d.x,height:n.height*d.y,x:n.x*d.x-l.scrollLeft*d.x+u.x+h.x,y:n.y*d.y-l.scrollTop*d.y+u.y+h.y}},getDocumentElement:rC,getClippingRect:function(e){let{element:t,boundary:n,rootBoundary:r,strategy:i}=e,o=[..."clippingAncestors"===n?rj(t)?[]:function(e,t){let n=t.get(e);if(n)return n;let r=rN(e,[],!1).filter(e=>rR(e)&&"body"!==rS(e)),i=null,o="fixed"===rD(e).position,a=o?rB(e):e;for(;rR(a)&&!rL(a);){let e=rD(a),t=rz(a),n=i?i.position:o?"fixed":"";t||"fixed"!==n&&("absolute"!==n||"static"!==e.position)?i=e:r=r.filter(e=>e!==a),a=rB(a)}return t.set(e,r),r}(t,this._c):[].concat(n),r],a=rZ(t,o[0],i),s=a.top,l=a.right,d=a.bottom,u=a.left;for(let e=1;e<o.length;e++){let n=rZ(t,o[e],i);s=n5(n.top,s),l=n3(n.right,l),d=n3(n.bottom,d),u=n5(n.left,u)}return{width:l-u,height:d-s,x:u,y:s}},getOffsetParent:r0,getElementRects:r1,getClientRects:function(e){return e.getClientRects?Array.from(e.getClientRects()):[]},getDimensions:function(e){let{width:t,height:n}=rH(e);return{width:t,height:n}},getScale:rU,isElement:rR,isRTL:function(e){return"rtl"===rD(e).direction}};function r3(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}let r5=function(e){return void 0===e&&(e=0),{name:"offset",options:e,async fn(t){var n,r;let{x:i,y:o,placement:a,middlewareData:s}=t,l=await rw(t,e);return a===(null==(n=s.offset)?void 0:n.placement)&&null!=(r=s.arrow)&&r.alignmentOffset?{}:{x:i+l.x,y:o+l.y,data:{...l,placement:a}}}}},r4=function(e){return void 0===e&&(e={}),{name:"autoPlacement",options:e,async fn(t){var n,r,i,o;let{rects:a,middlewareData:s,placement:l,platform:d,elements:u}=t,{crossAxis:c=!1,alignment:h,allowedPlacements:f=n2,autoAlignment:p=!0,...m}=n8(e,t),g=void 0!==h||f===n2?((o=h||null)?[...f.filter(e=>rt(e)===o),...f.filter(e=>rt(e)!==o)]:f.filter(e=>re(e)===e)).filter(e=>!o||rt(e)===o||!!p&&ra(e)!==e):f,b=(null==(n=s.autoPlacement)?void 0:n.index)||0,y=g[b];if(null==y)return{};if(l!==y)return{reset:{placement:g[0]}};let v=await d.detectOverflow(t,m),x=ro(y,a,await (null==d.isRTL?void 0:d.isRTL(u.floating))),w=[v[re(y)],v[x[0]],v[x[1]]],k=[...(null==(r=s.autoPlacement)?void 0:r.overflows)||[],{placement:y,overflows:w}],S=g[b+1];if(S)return{data:{index:b+1,overflows:k},reset:{placement:S}};let $=k.map(e=>{let t=rt(e.placement);return[e.placement,t&&c?e.overflows.slice(0,2).reduce((e,t)=>e+t,0):e.overflows[0],e.overflows]}).sort((e,t)=>e[1]-t[1]),C=(null==(i=$.filter(e=>e[2].slice(0,rt(e[0])?2:3).every(e=>e<=0))[0])?void 0:i[0])||$[0][0];return C!==l?{data:{index:b+1,overflows:k},reset:{placement:C}}:{}}}},r6=function(e){return void 0===e&&(e={}),{name:"shift",options:e,async fn(t){let{x:n,y:r,placement:i,platform:o}=t,{mainAxis:a=!0,crossAxis:s=!1,limiter:l={fn:e=>{let{x:t,y:n}=e;return{x:t,y:n}}},...d}=n8(e,t),u={x:n,y:r},c=await o.detectOverflow(t,d),h=ri(i),f=rn(h),p=u[f],m=u[h],g=(e,t)=>n5(t+c["y"===e?"top":"left"],n3(t,t-c["y"===e?"bottom":"right"]));a&&(p=g(f,p)),s&&(m=g(h,m));let b=l.fn({...t,[f]:p,[h]:m});return{...b,data:{x:b.x-n,y:b.y-r,enabled:{[f]:a,[h]:s}}}}}},r7=function(e){return void 0===e&&(e={}),{name:"flip",options:e,async fn(t){var n,r,i,o,a;let s,l,d,{placement:u,middlewareData:c,rects:h,initialPlacement:f,platform:p,elements:m}=t,{mainAxis:g=!0,crossAxis:b=!0,fallbackPlacements:y,fallbackStrategy:v="bestFit",fallbackAxisSideDirection:x="none",flipAlignment:w=!0,...k}=n8(e,t);if(null!=(n=c.arrow)&&n.alignmentOffset)return{};let S=re(u),$=ri(f),C=re(f)===f,E=await (null==p.isRTL?void 0:p.isRTL(m.floating)),R=y||(C||!w?[rc(f)]:(s=rc(f),[ra(f),s,ra(s)])),T="none"!==x;!y&&T&&R.push(...(l=rt(f),d=function(e,t,n){switch(e){case"top":case"bottom":if(n)return t?rl:rs;return t?rs:rl;case"left":case"right":return t?rd:ru;default:return[]}}(re(f),"start"===x,E),l&&(d=d.map(e=>e+"-"+l),w&&(d=d.concat(d.map(ra)))),d));let A=[f,...R],P=await p.detectOverflow(t,k),j=[],M=(null==(r=c.flip)?void 0:r.overflows)||[];if(g&&j.push(P[S]),b){let e=ro(u,h,E);j.push(P[e[0]],P[e[1]])}if(M=[...M,{placement:u,overflows:j}],!j.every(e=>e<=0)){let e=((null==(i=c.flip)?void 0:i.index)||0)+1,t=A[e];if(t&&("alignment"!==b||$===ri(t)||M.every(e=>ri(e.placement)!==$||e.overflows[0]>0)))return{data:{index:e,overflows:M},reset:{placement:t}};let n=null==(o=M.filter(e=>e.overflows[0]<=0).sort((e,t)=>
1e.overflows[1]-t.overflows[1])[0])?void 0:o.placement;if(!n)switch(v){case"bestFit":{let e=null==(a=M.filter(e=>{if(T){let t=ri(e.placement);return t===$||"y"===t}return!0}).map(e=>[e.placement,e.overflows.filter(e=>e>0).reduce((e,t)=>e+t,0)]).sort((e,t)=>e[1]-t[1])[0])?void 0:a[0];e&&(n=e);break}case"initialPlacement":n=f}if(u!==n)return{reset:{placement:n}}}return{}}}},r9=function(e){return void 0===e&&(e={}),{name:"hide",options:e,async fn(t){let{rects:n,platform:r}=t,{strategy:i="referenceHidden",...o}=n8(e,t);switch(i){case"referenceHidden":{let e=rb(await r.detectOverflow(t,{...o,elementContext:"reference"}),n.reference);return{data:{referenceHiddenOffsets:e,referenceHidden:ry(e)}}}case"escaped":{let e=rb(await r.detectOverflow(t,{...o,altBoundary:!0}),n.floating);return{data:{escapedOffsets:e,escaped:ry(e)}}}default:return{}}}}},r8=e=>({name:"arrow",options:e,async fn(t){let{x:n,y:r,placement:i,rects:o,platform:a,elements:s,middlewareData:l}=t,{element:d,padding:u=0}=n8(e,t)||{};if(null==d)return{};let c=rh(u),h={x:n,y:r},f=rn(ri(i)),p=rr(f),m=await a.getDimensions(d),g="y"===f,b=g?"clientHeight":"clientWidth",y=o.reference[p]+o.reference[f]-h[f]-o.floating[p],v=h[f]-o.reference[f],x=await (null==a.getOffsetParent?void 0:a.getOffsetParent(d)),w=x?x[b]:0;w&&await (null==a.isElement?void 0:a.isElement(x))||(w=s.floating[b]||o.floating[p]);let k=w/2-m[p]/2-1,S=n3(c[g?"top":"left"],k),$=n3(c[g?"bottom":"right"],k),C=w-m[p]-$,E=w/2-m[p]/2+(y/2-v/2),R=n5(S,n3(E,C)),T=!l.arrow&&null!=rt(i)&&E!==R&&o.reference[p]/2-(E<S?S:$)-m[p]/2<0,A=T?E<S?E-S:E-C:0;return{[f]:h[f]+A,data:{[f]:R,centerOffset:E-R-A,...T&&{alignmentOffset:A}},reset:T}}}),ie=(e,t,n)=>{let r=new Map,i=null!=n?n:{},o={...r2,...i.platform,_c:r};return rg(e,t,{...i,platform:o})};e.s(["arrow",0,r8,"autoPlacement",0,r4,"autoUpdate",0,function(e,t,n,r){let i;void 0===r&&(r={});let{ancestorScroll:o=!0,ancestorResize:a=!0,elementResize:s="function"==typeof ResizeObserver,layoutShift:l="function"==typeof IntersectionObserver,animationFrame:d=!1}=r,u=rW(e),c=o||a?[...u?rN(u):[],...t?rN(t):[]]:[];c.forEach(e=>{o&&e.addEventListener("scroll",n),a&&e.addEventListener("resize",n)});let h=u&&l?function(e,t,n){let r,i=null,o=rC(e);function a(){var e;clearTimeout(r),null==(e=i)||e.disconnect(),i=null}function s(n,l){void 0===n&&(n=!1),void 0===l&&(l=1),a();let d=e.getBoundingClientRect(),{left:u,top:c,width:h,height:f}=d;if(n||t(),!h||!f)return;let p={rootMargin:-n6(c)+"px "+-n6(o.clientWidth-(u+h))+"px "+-n6(o.clientHeight-(c+f))+"px "+-n6(u)+"px",threshold:n5(0,n3(1,l))||1},m=!0;function g(t){let n=t[0].intersectionRatio;if(!r3(d,e.getBoundingClientRect()))return s();if(n!==l){if(!m)return s();n?s(!1,n):r=setTimeout(()=>{s(!1,1e-7)},1e3)}m=!1}try{i=new IntersectionObserver(g,{...p,root:o.ownerDocument})}catch(e){i=new IntersectionObserver(g,p)}i.observe(e)}let l=r$(e),d=()=>s(n);return l.addEventListener("resize",d),s(!0),()=>{l.removeEventListener("resize",d),a()}}(u,n,a):null,f=-1,p=null;s&&(p=new ResizeObserver(e=>{let[r]=e;r&&r.target===u&&p&&t&&(p.unobserve(t),cancelAnimationFrame(f),f=requestAnimationFrame(()=>{var e;null==(e=p)||e.observe(t)})),n()}),u&&!d&&p.observe(u),t&&p.observe(t));let m=d?rY(e):null;return d&&function t(){let r=rY(e);m&&!r3(m,r)&&n(),m=r,i=requestAnimationFrame(t)}(),n(),()=>{var e;c.forEach(e=>{o&&e.removeEventListener("scroll",n),a&&e.removeEventListener("resize",n)}),null==h||h(),null==(e=p)||e.disconnect(),p=null,d&&cancelAnimationFrame(i)}},"computePosition",0,ie,"detectOverflow",0,rm,"flip",0,r7,"hide",0,r9,"inline",0,function(e){return void 0===e&&(e={}),{name:"inline",options:e,async fn(t){let{placement:n,elements:r,rects:i,platform:o,strategy:a}=t,{padding:s=2,x:l,y:d}=n8(e,t),u=Array.from(await (null==o.getClientRects?void 0:o.getClientRects(r.reference))||[]);if(!u.length)return{};let c=function(e){let t=e.slice().sort((e,t)=>e.y-t.y),n=[],r=null;for(let e=0;e<t.length;e++){let i=t[e];!r||i.y-r.y>r.height/2?n.push([i]):n[n.length-1].push(i),r=i}return n.map(e=>rf(rv(e)))}(u),h=rf(rv(u)),f=rh(s),p=await o.getElementRects({reference:{getBoundingClientRect:function(){if(2===c.length&&(c[0].left>c[1].right||c[1].left>c[0].right)&&null!=l&&null!=d)return c.find(e=>l>e.left-f.left&&l<e.right+f.right&&d>
1e.top-f.top&&d<e.bottom+f.bottom)||h;if(c.length>=2){if("y"===ri(n)){let e=c[0],t=c[c.length-1],r="top"===re(n),i=e.top,o=t.bottom,a=r?e.left:t.left;return rf({x:a,y:i,width:(r?e.right:t.right)-a,height:o-i})}let e="left"===re(n),t=n5(...c.map(e=>e.right)),r=n3(...c.map(e=>e.left)),i=c.filter(n=>e?n.left===r:n.right===t),o=i[0].top;return rf({x:r,y:o,width:t-r,height:i[i.length-1].bottom-o})}return h}},floating:r.floating,strategy:a});return i.reference.x!==p.reference.x||i.reference.y!==p.reference.y||i.reference.width!==p.reference.width||i.reference.height!==p.reference.height?{reset:{rects:p}}:{}}}},"limitShift",0,function(e){return void 0===e&&(e={}),{options:e,fn(t){var n,r,i,o;let{x:a,y:s,placement:l,rects:d,middlewareData:u}=t,{offset:c=0,mainAxis:h=!0,crossAxis:f=!0}=n8(e,t),p={x:a,y:s},m=ri(l),g=rn(m),b=p[g],y=p[m],v=n8(c,t),x="number"==typeof v?{mainAxis:v,crossAxis:0}:{mainAxis:null!=(n=v.mainAxis)?n:0,crossAxis:null!=(r=v.crossAxis)?r:0};if(h){let e="y"===g?"height":"width",t=d.reference[g]-d.floating[e]+x.mainAxis,n=d.reference[g]+d.reference[e]-x.mainAxis;b<t?b=t:b>n&&(b=n)}if(f){let e="y"===g?"width":"height",t=rx.has(re(l)),n=d.reference[m]-d.floating[e]+(t&&(null==(i=u.offset)?void 0:i[m])||0)+(t?0:x.crossAxis),r=d.reference[m]+d.reference[e]+(t?0:(null==(o=u.offset)?void 0:o[m])||0)-(t?x.crossAxis:0);y<n?y=n:y>r&&(y=r)}return{[g]:b,[m]:y}}}},"offset",0,r5,"shift",0,r6,"size",0,function(e){return void 0===e&&(e={}),{name:"size",options:e,async fn(t){let n,r,{placement:i,rects:o,platform:a,elements:s}=t,{apply:l=()=>{},...d}=n8(e,t),u=await a.detectOverflow(t,d),c=re(i),h=rt(i),f="y"===ri(i),{width:p,height:m}=o.floating;"top"===c||"bottom"===c?(n=c,r=h===(await (null==a.isRTL?void 0:a.isRTL(s.floating))?"start":"end")?"left":"right"):(r=c,n="end"===h?"top":"bottom");let g=m-u.top-u.bottom,b=p-u.left-u.right,y=n3(m-u[n],g),v=n3(p-u[r],b),x=t.middlewareData.shift,w=!x,k=y,S=v;null!=x&&x.enabled.x&&(S=b),null!=x&&x.enabled.y&&(k=g),w&&!h&&(f?S=p-2*n5(u.left,u.right):k=m-2*n5(u.top,u.bottom)),await l({...t,availableWidth:S,availableHeight:k});let $=await a.getDimensions(s.floating);return p!==$.width||m!==$.height?{reset:{rects:!0}}:{}}}}],825339);var it=e.i(212310),ir="u">typeof document?eZ.useLayoutEffect:function(){};function ii(e,t){let n,r,i;if(e===t)return!0;if(typeof e!=typeof t)return!1;if("function"==typeof e&&e.toString()===t.toString())return!0;if(e&&t&&"object"==typeof e){if(Array.isArray(e)){if((n=e.length)!==t.length)return!1;for(r=n;0!=r--;)if(!ii(e[r],t[r]))return!1;return!0}if((n=(i=Object.keys(e)).length)!==Object.keys(t).length)return!1;for(r=n;0!=r--;)if(!({}).hasOwnProperty.call(t,i[r]))return!1;for(r=n;0!=r--;){let n=i[r];if(("_owner"!==n||!e.$$typeof)&&!ii(e[n],t[n]))return!1}return!0}return e!=e&&t!=t}function io(e){return"u"<typeof window?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function ia(e,t){let n=io(e);return Math.round(t*n)/n}function is(e){let t=eZ.useRef(e);return ir(()=>{t.current=e}),t}e.s(["arrow",0,(e,t)=>{let n={name:"arrow",options:e,fn(t){let{element:n,padding:r}="function"==typeof e?e(t):e;return n&&({}).hasOwnProperty.call(n,"current")?null!=n.current?r8({element:n.current,padding:r}).fn(t):{}:n?r8({element:n,padding:r}).fn(t):{}}};return{name:n.name,fn:n.fn,options:[e,t]}},"autoPlacement",0,(e,t)=>{let n=r4(e);return{name:n.name,fn:n.fn,options:[e,t]}},"flip",0,(e,t)=>{let n=r7(e);return{name:n.name,fn:n.fn,options:[e,t]}},"hide",0,(e,t)=>{let n=r9(e);return{name:n.name,fn:n.fn,options:[e,t]}},"offset",0,(e,t)=>{let n=r5(e);return{name:n.name,fn:n.fn,options:[e,t]}},"shift",0,(e,t)=>{let n=r6(e);return{name:n.name,fn:n.fn,options:[e,t]}},"useFloating",0,function(e){void 0===e&&(e={});let{placement:t="bottom",strategy:n="absolute",middleware:r=[],platform:i,elements:{reference:o,floating:a}={},transform:s=!0,whileElementsMounted:l,open:d}=e,[u,c]=eZ.useState({x:0,y:0,strategy:n,placement:t,middlewareData:{},isPositioned:!1}),[h,f]=eZ.useState(r);ii(h,r)||f(r);let[p,m]=eZ.useState(null),[g,b]=eZ.useState(null),y=eZ.useCallback(e=>{e!==k.current&&(k.current=e,m(e))},[]),v=eZ.useCallback(e=>
1{e!==S.current&&(S.current=e,b(e))},[]),x=o||p,w=a||g,k=eZ.useRef(null),S=eZ.useRef(null),$=eZ.useRef(u),C=null!=l,E=is(l),R=is(i),T=is(d),A=eZ.useCallback(()=>{if(!k.current||!S.current)return;let e={placement:t,strategy:n,middleware:h};R.current&&(e.platform=R.current),ie(k.current,S.current,e).then(e=>{let t={...e,isPositioned:!1!==T.current};P.current&&!ii($.current,t)&&($.current=t,it.flushSync(()=>{c(t)}))})},[h,t,n,R,T]);ir(()=>{!1===d&&$.current.isPositioned&&($.current.isPositioned=!1,c(e=>({...e,isPositioned:!1})))},[d]);let P=eZ.useRef(!1);ir(()=>(P.current=!0,()=>{P.current=!1}),[]),ir(()=>{if(x&&(k.current=x),w&&(S.current=w),x&&w){if(E.current)return E.current(x,w,A);A()}},[x,w,A,E,C]);let j=eZ.useMemo(()=>({reference:k,floating:S,setReference:y,setFloating:v}),[y,v]),M=eZ.useMemo(()=>({reference:x,floating:w}),[x,w]),I=eZ.useMemo(()=>{let e={position:n,left:0,top:0};if(!M.floating)return e;let t=ia(M.floating,u.x),r=ia(M.floating,u.y);return s?{...e,transform:"translate("+t+"px, "+r+"px)",...io(M.floating)>=1.5&&{willChange:"transform"}}:{position:n,left:t,top:r}},[n,s,M.floating,u.x,u.y]);return eZ.useMemo(()=>({...u,update:A,refs:j,elements:M,floatingStyles:I}),[u,A,j,M,I])}],501583);let il=(0,eZ.createContext)({});function id(e){let t=(0,eZ.useRef)(null);return null===t.current&&(t.current=e()),t.current}let iu="u">typeof window?eZ.useLayoutEffect:eZ.useEffect,ic=(0,eZ.createContext)(null),ih=e=>"object"==typeof e&&null!==e;function ip(e){return ih(e)&&"offsetHeight"in e&&!("ownerSVGElement"in e)}var im=eZ;let ig=(0,eZ.createContext)({transformPagePoint:e=>e,isStatic:!1,reducedMotion:"never"});function ib(e,t){if("function"==typeof e)return e(t);null!=e&&(e.current=t)}class iy extends im.Component{getSnapshotBeforeUpdate(e){let t=this.props.childRef.current;if(ip(t)&&e.isPresent&&!this.props.isPresent&&!1!==this.props.pop){let e=t.offsetParent,n=ip(e)&&e.offsetWidth||0,r=ip(e)&&e.offsetHeight||0,i=getComputedStyle(t),o=this.props.sizeRef.current;o.height=parseFloat(i.height),o.width=parseFloat(i.width),o.top=t.offsetTop,o.left=t.offsetLeft,o.right=n-o.width-o.left,o.bottom=r-o.height-o.top,o.direction=i.direction}return null}componentDidUpdate(){}render(){return this.props.children}}function iv({children:e,isPresent:t,anchorX:n,anchorY:r,root:i,pop:o}){let a=(0,im.useId)(),s=(0,im.useRef)(null),l=(0,im.useRef)({width:0,height:0,top:0,left:0,right:0,bottom:0,direction:"ltr"}),{nonce:d}=(0,im.useContext)(ig),u=function(...e){return eZ.useCallback(function(...e){return t=>{let n=!1,r=e.map(e=>{let r=ib(e,t);return n||"function"!=typeof r||(n=!0),r});if(n)return()=>{for(let t=0;t<r.length;t++){let n=r[t];"function"==typeof n?n():ib(e[t],null)}}}}(...e),e)}(s,!1!==o?e.props?.ref??e?.ref:void 0);return(0,im.useInsertionEffect)(()=>{let{width:e,height:u,top:c,left:h,right:f,bottom:p,direction:m}=l.current;if(t||!1===o||!s.current||!e||!u)return;let g="rtl"===m,b="left"===n?g?`right: ${f}`:`left: ${h}`:g?`left: ${h}`:`right: ${f}`,y="bottom"===r?`bottom: ${p}`:`top: ${c}`;s.current.dataset.motionPopId=a;let v=document.createElement("style");d&&(v.nonce=d);let x=i??document.head;return x.appendChild(v),v.sheet&&v.sheet.insertRule(`
2          [data-motion-pop-id="${a}"] {
3            position: absolute !important;
4            width: ${e}px !important;
5            height: ${u}px !important;
6            ${b}px !important;
7            ${y}px !important;
8          }
9        `),()=>{s.current?.removeAttribute("data-motion-pop-id"),x.contains(v)&&x.removeChild(v)}},[t]),(0,nQ.jsx)(iy,{isPresent:t,childRef:s,sizeRef:l,pop:o,children:!1===o?e:im.cloneElement(e,{ref:u})})}let ix=({children:e,initial:t,isPresent:n,onExitComplete:r,custom:i,presenceAffectsLayout:o,mode:a,anchorX:s,anchorY:l,root:d})=>{let u=id(iw),c=(0,eZ.useId)(),h=(0,eZ.useRef)(n),f=(0,eZ.useRef)(r);iu(()=>{h.current=n,f.current=r});let p=!0,m=(0,eZ.useMemo)(()=>(p=!1,{id:c,initial:t,isPresent:n,custom:i,onExitComplete:e=>
9{for(let t of(u.set(e,!0),u.values()))if(!t)return;r&&r()},register:e=>(u.set(e,!1),()=>{u.delete(e),h.current||u.size||f.current?.()})}),[n,u,r]);return o&&p&&(m={...m}),(0,eZ.useMemo)(()=>{u.forEach((e,t)=>u.set(t,!1))},[n]),eZ.useEffect(()=>{n||u.size||!r||r()},[n]),e=(0,nQ.jsx)(iv,{pop:"popLayout"===a,isPresent:n,anchorX:s,anchorY:l,root:d,children:e}),(0,nQ.jsx)(ic.Provider,{value:m,children:e})};function iw(){return new Map}function ik(e=!0){let t=(0,eZ.useContext)(ic);if(null===t)return[!0,null];let{isPresent:n,onExitComplete:r,register:i}=t,o=(0,eZ.useId)();(0,eZ.useEffect)(()=>{if(e)return i(o)},[e]);let a=(0,eZ.useCallback)(()=>e&&r&&r(o),[o,r,e]);return!n&&r?[!1,a]:[!0]}let iS=e=>e.key||"";function i$(e){let t=[];return eZ.Children.forEach(e,e=>{(0,eZ.isValidElement)(e)&&t.push(e)}),t}e.s(["AnimatePresence",0,({children:e,custom:t,initial:n=!0,onExitComplete:r,presenceAffectsLayout:i=!0,mode:o="sync",propagate:a=!1,anchorX:s="left",anchorY:l="top",root:d})=>{let[u,c]=ik(a),h=(0,eZ.useMemo)(()=>i$(e),[e]),f=a&&!u?[]:h.map(iS),p=(0,eZ.useRef)(!0),m=(0,eZ.useRef)(h),g=id(()=>new Map),b=(0,eZ.useRef)(new Set),[y,v]=(0,eZ.useState)(h),[x,w]=(0,eZ.useState)(h);iu(()=>{!a||u||x.length||c?.()},[u,a,x.length,c]),iu(()=>{p.current=!1,m.current=h;for(let e=0;e<x.length;e++){let t=iS(x[e]);f.includes(t)?(g.delete(t),b.current.delete(t)):!0!==g.get(t)&&g.set(t,!1)}},[x,f.length,f.join("-")]);let k=[];if(h!==y){let e=[...h],t=0;for(let n of x){let r=f.indexOf(iS(n));-1===r?(e.splice(t++,0,n),k.push(n)):t=r+k.length+1}return"wait"===o&&k.length&&(e=k),w(i$(e)),v(h),null}let{forceRender:S}=(0,eZ.useContext)(il);return(0,nQ.jsx)(nQ.Fragment,{children:x.map(e=>{let y=iS(e),v=(!a||!!u)&&(h===x||f.includes(y));return(0,nQ.jsx)(ix,{isPresent:v,initial:(!p.current||!!n)&&void 0,custom:t,presenceAffectsLayout:i,mode:o,root:d,onExitComplete:v?void 0:()=>{if(b.current.has(y)||!g.has(y))return;b.current.add(y),g.set(y,!0);let e=!0;g.forEach(t=>{t||(e=!1)}),e&&(S?.(),w(m.current),a&&c?.(),r&&r())},anchorX:s,anchorY:l,children:e},y)})})}],788261);let iC=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],iE=new Set([...iC,"pathRotation"]),iR=(e,t,n)=>n>t?t:n<e?e:n,iT={test:e=>"number"==typeof e,parse:parseFloat,transform:e=>e},iA={...iT,transform:e=>iR(0,1,e)},iP={...iT,default:1},ij=e=>Math.round(1e5*e)/1e5,iM=/-?(?:\d+(?:\.\d+)?|\.\d+)/gu,iI=/^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu,i_=(e,t)=>n=>!!("string"==typeof n&&iI.test(n)&&n.startsWith(e)||t&&null!=n&&Object.prototype.hasOwnProperty.call(n,t)),iz=(e,t,n)=>r=>{if("string"!=typeof r)return r;let[i,o,a,s]=r.match(iM);return{[e]:parseFloat(i),[t]:parseFloat(o),[n]:parseFloat(a),alpha:void 0!==s?parseFloat(s):1}},iO={...iT,transform:e=>Math.round(iR(0,255,e))},iL={test:i_("rgb","red"),parse:iz("red","green","blue"),transform:({red:e,green:t,blue:n,alpha:r=1})=>"rgba("+iO.transform(e)+", "+iO.transform(t)+", "+iO.transform(n)+", "+ij(iA.transform(r))+")"},iD={test:i_("#"),parse:function(e){let t="",n="",r="",i="";return e.length>5?(t=e.substring(1,3),n=e.substring(3,5),r=e.substring(5,7),i=e.substring(7,9)):(t=e.substring(1,2),n=e.substring(2,3),r=e.substring(3,4),i=e.substring(4,5),t+=t,n+=n,r+=r,i+=i),{red:parseInt(t,16),green:parseInt(n,16),blue:parseInt(r,16),alpha:i?parseInt(i,16)/255:1}},transform:iL.transform},iV=e=>({test:t=>"string"==typeof t&&t.endsWith(e)&&1===t.split(" ").length,parse:parseFloat,transform:t=>`${t}${e}`}),iB=iV("deg"),iN=iV("%"),iF=iV("px"),iH=iV("vh"),iW=iV("vw"),iU={...iN,parse:e=>iN.parse(e)/100,transform:e=>iN.transform(100*e)},iG={test:i_("hsl","hue"),parse:iz("hue","saturation","lightness"),transform:({hue:e,saturation:t,lightness:n,alpha:r=1})=>"hsla("+Math.round(e)+", "+iN.transform(ij(t))+", "+iN.transform(ij(n))+", "+ij(iA.transform(r))+")"},iX={test:e=>iL.test(e)||iD.test(e)||iG.test(e),parse:e=>iL.test(e)?iL.parse(e):iG.test(e)?iG.parse(e):iD.parse(e),transform:e=>
9"string"==typeof e?e:e.hasOwnProperty("red")?iL.transform(e):iG.transform(e),getAnimatableNone:e=>{let t=iX.parse(e);return t.alpha=0,iX.transform(t)}},iY=/(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu,iq="number",iK="color",iZ=/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 iJ(e){let t=e.toString(),n=[],r={color:[],number:[],var:[]},i=[],o=0,a=t.replace(iZ,e=>(iX.test(e)?(r.color.push(o),i.push(iK),n.push(iX.parse(e))):e.startsWith("var(")?(r.var.push(o),i.push("var"),n.push(e)):(r.number.push(o),i.push(iq),n.push(parseFloat(e))),++o,"${}")).split("${}");return{values:n,split:a,indexes:r,types:i}}function iQ({split:e,types:t}){let n=e.length;return r=>{let i="";for(let o=0;o<n;o++)if(i+=e[o],void 0!==r[o]){let e=t[o];e===iq?i+=ij(r[o]):e===iK?i+=iX.transform(r[o]):i+=r[o]}return i}}let i0={test:function(e){return isNaN(e)&&"string"==typeof e&&(e.match(iM)?.length||0)+(e.match(iY)?.length||0)>0},parse:function(e){return iJ(e).values},createTransformer:function(e){return iQ(iJ(e))},getAnimatableNone:function(e){let t=iJ(e);return iQ(t)(t.values.map((e,n)=>((e,t)=>"number"==typeof e?t?.trim().endsWith("/")?e:0:"number"==typeof e?0:iX.test(e)?iX.getAnimatableNone(e):e)(e,t.split[n])))}},i1=new Set(["brightness","contrast","saturate","opacity"]);function i2(e){let[t,n]=e.slice(0,-1).split("(");if("drop-shadow"===t)return e;let[r]=n.match(iM)||[];if(!r)return e;let i=n.replace(r,""),o=+!!i1.has(t);return r!==n&&(o*=100),t+"("+o+i+")"}let i3=/\b([a-z-]*)\(.*?\)/gu,i5={...i0,getAnimatableNone:e=>{let t=e.match(i3);return t?t.map(i2).join(" "):e}},i4={...i0,getAnimatableNone:e=>{let t=i0.parse(e);return i0.createTransformer(e)(t.map(e=>"number"==typeof e?0:"object"==typeof e?{...e,alpha:1}:e))}},i6={...iT,transform:Math.round},i7={borderWidth:iF,borderTopWidth:iF,borderRightWidth:iF,borderBottomWidth:iF,borderLeftWidth:iF,borderRadius:iF,borderTopLeftRadius:iF,borderTopRightRadius:iF,borderBottomRightRadius:iF,borderBottomLeftRadius:iF,width:iF,maxWidth:iF,height:iF,maxHeight:iF,top:iF,right:iF,bottom:iF,left:iF,inset:iF,insetBlock:iF,insetBlockStart:iF,insetBlockEnd:iF,insetInline:iF,insetInlineStart:iF,insetInlineEnd:iF,padding:iF,paddingTop:iF,paddingRight:iF,paddingBottom:iF,paddingLeft:iF,paddingBlock:iF,paddingBlockStart:iF,paddingBlockEnd:iF,paddingInline:iF,paddingInlineStart:iF,paddingInlineEnd:iF,margin:iF,marginTop:iF,marginRight:iF,marginBottom:iF,marginLeft:iF,marginBlock:iF,marginBlockStart:iF,marginBlockEnd:iF,marginInline:iF,marginInlineStart:iF,marginInlineEnd:iF,fontSize:iF,backgroundPositionX:iF,backgroundPositionY:iF,rotate:iB,pathRotation:iB,rotateX:iB,rotateY:iB,rotateZ:iB,scale:iP,scaleX:iP,scaleY:iP,scaleZ:iP,skew:iB,skewX:iB,skewY:iB,distance:iF,translateX:iF,translateY:iF,translateZ:iF,x:iF,y:iF,z:iF,perspective:iF,transformPerspective:iF,opacity:iA,originX:iU,originY:iU,originZ:iF,zIndex:i6,fillOpacity:iA,strokeOpacity:iA,numOctaves:i6},i9={...i7,color:iX,backgroundColor:iX,outlineColor:iX,fill:iX,stroke:iX,borderColor:iX,borderTopColor:iX,borderRightColor:iX,borderBottomColor:iX,borderLeftColor:iX,filter:i5,WebkitFilter:i5,mask:i4,WebkitMask:i4},i8=e=>i9[e],oe=()=>({translate:0,scale:1,origin:0,originPoint:0}),ot=()=>({x:oe(),y:oe()}),on=()=>({min:0,max:0}),or=()=>({x:on(),y:on()}),oi=e=>!!(e&&e.getVelocity),oo=new Set(["width","height","top","left","right","bottom",...iC]),oa=e=>t=>t.test(e),os=[iT,iF,iN,iB,iW,iH,{test:e=>"auto"===e,parse:e=>e}],ol=e=>os.find(oa(e)),od=()=>{},ou=()=>{};eK.default;let oc=e=>t=>"string"==typeof t&&t.startsWith(e),oh=oc("--"),of=oc("var(--"),op=e=>!!of(e)&&om.test(e.split("/*")[0].trim()),om=/var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu;function og(e){return"string"==typeof e&&e.split("/*")[0].includes("var(--")}let ob=/^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u,oy=e=>180*e/Math.PI,ov=e=>ow(oy(Math.atan2(e[1],e[0]))),ox={x:4,y:5,translateX:4,translateY:5,scaleX:0,scaleY:3,scale:e=>(Math.abs(e[0])+Math.abs(e[3]))/2,rotate:ov,rotateZ:ov,skewX:e=>oy(Math.atan(e[1])),skewY:e=>oy(Math.atan(e[2])),skew:e=>(Math.abs(e[1])+Math.abs(e[2]))/2},ow=e=>((e%=360)<0&&(e+=360),e),ok=e=>Math.sqrt(e[0]*e[0]+e[1]*e[1]),oS=e=>Math.sqrt(e[4]*e[4]+e[5]*e[5]),o$={x:12,y:13,z:14,translateX:12,translateY:13,translateZ:14,scaleX:ok,scaleY:oS,scale:e=>(ok(e)+oS(e))/2,rotateX:e=>ow(oy(Math.atan2(e[6],e[5]))),rotateY:e=>ow(oy(Math.atan2(-e[2],e[0]))),rotateZ:ov,rotate:ov,skewX:e=>oy(Math.atan(e[4])),skewY:e=>oy(Math.atan(e[1])),skew:e=>(Math.abs(e[1])+Math.abs(e[4]))/2};function oC(e){return+!!e.includes("scale")}function oE(e,t){let n,r;if(!e||"none"===e)return oC(t);let i=e.match(/^matrix3d\(([-\d.e\s,]+)\)$/u);if(i)n=o$,r=i;else{let t=e.match(/^matrix\(([-\d.e\s,]+)\)$/u);n=ox,r=t}if(!r)return oC(t);let o=n[t],a=r[1].split(",").map(oR);return"function"==typeof o?o(a):a[o]}function oR(e){return parseFloat(e.trim())}let oT=e=>e===iT||e===iF,oA=new Set(["x","y","z"]),oP=iC.filter(e=>!oA.has(e)),oj={width:({x:e},{paddingLeft:t="0",paddingRight:n="0",boxSizing:r})=>{let i=e.max-e.min;return"border-box"===r?i:i-parseFloat(t)-parseFloat(n)},height:({y:e},{paddingTop:t="0",paddingBottom:n="0",boxSizing:r})=>{let i=e.max-e.min;return"border-box"===r?i:i-parseFloat(t)-parseFloat(n)},top:(e,{top:t})=>parseFloat(t),left:(e,{left:t})=>parseFloat(t),bottom:({y:e},{top:t})=>parseFloat(t)+(e.max-e.min),right:({x:e},{left:t})=>parseFloat(t)+(e.max-e.min),x:(e,{transform:t})=>oE(t,"x"),y:(e,{transform:t})=>oE(t,"y")};oj.translateX=oj.x,oj.translateY=oj.y;let oM=e=>e,oI={},o_=["setup","read","resolveKeyframes","preUpdate","update","preRender","render","postRender"];function oz(e,t){let n=!1,r=!0,i={delta:0,timestamp:0,isProcessing:!1},o=()=>n=!0,a=o_.reduce((e,t)=>
9(e[t]=function(e){let t=new Set,n=new Set,r=!1,i=!1,o=new WeakSet,a={delta:0,timestamp:0,isProcessing:!1};function s(t){o.has(t)&&(l.schedule(t),e()),t(a)}let l={schedule:(e,i=!1,a=!1)=>{let s=a&&r?t:n;return i&&o.add(e),s.add(e),e},cancel:e=>{n.delete(e),o.delete(e)},process:e=>{if(a=e,r){i=!0;return}r=!0;let o=t;t=n,n=o,t.forEach(s),t.clear(),r=!1,i&&(i=!1,l.process(e))}};return l}(o),e),{}),{setup:s,read:l,resolveKeyframes:d,preUpdate:u,update:c,preRender:h,render:f,postRender:p}=a,m=()=>{let o=oI.useManualTiming,a=o?i.timestamp:performance.now();n=!1,o||(i.delta=r?1e3/60:Math.max(Math.min(a-i.timestamp,40),1)),i.timestamp=a,i.isProcessing=!0,s.process(i),l.process(i),d.process(i),u.process(i),c.process(i),h.process(i),f.process(i),p.process(i),i.isProcessing=!1,n&&t&&(r=!1,e(m))};return{schedule:o_.reduce((t,o)=>{let s=a[o];return t[o]=(t,o=!1,a=!1)=>(!n&&(n=!0,r=!0,i.isProcessing||e(m)),s.schedule(t,o,a)),t},{}),cancel:e=>{for(let t=0;t<o_.length;t++)a[o_[t]].cancel(e)},state:i,steps:a}}let{schedule:oO,cancel:oL,state:oD,steps:oV}=oz("u">typeof requestAnimationFrame?requestAnimationFrame:oM,!0),oB=new Set,oN=!1,oF=!1,oH=!1;function oW(){if(oF){let e=Array.from(oB).filter(e=>e.needsMeasurement),t=new Set(e.map(e=>e.element)),n=new Map;t.forEach(e=>{let t,r=(t=[],oP.forEach(n=>{let r=e.getValue(n);void 0!==r&&(t.push([n,r.get()]),r.set(+!!n.startsWith("scale")))}),t);r.length&&(n.set(e,r),e.render())}),e.forEach(e=>e.measureInitialState()),t.forEach(e=>{e.render();let t=n.get(e);t&&t.forEach(([t,n])=>{e.getValue(t)?.set(n)})}),e.forEach(e=>e.measureEndState()),e.forEach(e=>{void 0!==e.suspendedScrollY&&window.scrollTo(0,e.suspendedScrollY)})}oF=!1,oN=!1,oB.forEach(e=>e.complete(oH)),oB.clear()}function oU(){oB.forEach(e=>{e.readKeyframes(),e.needsMeasurement&&(oF=!0)})}class oG{constructor(e,t,n,r,i,o=!1){this.state="pending",this.isAsync=!1,this.needsMeasurement=!1,this.unresolvedKeyframes=[...e],this.onComplete=t,this.name=n,this.motionValue=r,this.element=i,this.isAsync=o}scheduleResolve(){this.state="scheduled",this.isAsync?(oB.add(this),oN||(oN=!0,oO.read(oU),oO.resolveKeyframes(oW))):(this.readKeyframes(),this.complete())}readKeyframes(){let{unresolvedKeyframes:e,name:t,element:n,motionValue:r}=this;if(null===e[0]){let i=r?.get(),o=e[e.length-1];if(void 0!==i)e[0]=i;else if(n&&t){let r=n.readValue(t,o);null!=r&&(e[0]=r)}void 0===e[0]&&(e[0]=o),r&&void 0===i&&r.set(e[0])}for(let t=1;t<e.length;t++)e[t]??(e[t]=e[t-1])}setFinalKeyframe(){}measureInitialState(){}renderEndStyles(){}measureEndState(){}complete(e=!1){this.state="complete",this.onComplete(this.unresolvedKeyframes,this.finalKeyframe,e),oB.delete(this)}cancel(){"scheduled"===this.state&&(oB.delete(this),this.state="pending")}resume(){"pending"===this.state&&this.scheduleResolve()}}let oX=new Set([i5,i4]);function oY(e,t){let n=i8(e);return oX.has(n)||(n=i0),n.getAnimatableNone?n.getAnimatableNone(t):void 0}let oq=new Set(["auto","none","0"]);class oK extends oG{constructor(e,t,n,r,i){super(e,t,n,r,i,!0)}readKeyframes(){let{unresolvedKeyframes:e,element:t,name:n}=this;if(!t||!t.current)return;super.readKeyframes();for(let n=0;n<e.length;n++){let r=e[n];if("string"==typeof r&&op(r=r.trim())){let i=function e(t,n,r=1){ou(`Max CSS variable fallback depth detected in property "${t}". This may indicate a circular fallback dependency.`);let[i,o]=function(e){let t=ob.exec(e);if(!t)return[,];let[,n,r,i]=t;return[`--${n??r}`,i]}(t);if(!i)return;let a=window.getComputedStyle(n).getPropertyValue(i);if(a){let e=a.trim();return/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(e)?parseFloat(e):e}return op(o)?e(o,n,r+1):o}(r,t.current);void 0!==i&&(e[n]=i),n===e.length-1&&(this.finalKeyframe=r)}}if(this.resolveNoneKeyframes(),!oo.has(n)||2!==e.length)return;let[r,i]=e,o=ol(r),a=ol(i);if(og(r)!==og(i)&&oj[n]){this.needsMeasurement=!0;return}if(o!==a)if(oT(o)&&oT(a))for(let t=0;t<e.length;t++){let n=e[t];"string"==typeof n&&(e[t]=parseFloat(n))}else oj[n]&&(this.needsMeasurement=!0)}resolveNoneKeyframes(){let{unresolvedKeyframes:e,name:t}=this,n=[];for(let t=0;t<e.length;t++)(null===e[t]||function(e){if("number"==typeof e)return 0===e;if(null===e)return!0;return"none"===e||"0"===e||/^0[^.\s]+$/u.test(e)}(e[t]))&&n.push(t);n.length&&function(e,t,n){let r,i=0;for(;i<e.length&&!r;){let t=e[i];"string"==typeof t&&!oq.has(t)&&iJ(t).values.length&&(r=e[i]),i++}if(r&&n)for(let i of t)e[i]=oY(n,r)}(e,n,t)}measureInitialState(){let{element:e,unresolvedKeyframes:t,name:n}=this;if(!e||!e.current)return;"height"===n&&(this.suspendedScrollY=window.pageYOffset),this.measuredOrigin=oj[n](e.measureViewportBox(),window.getComputedStyle(e.current)),t[0]=this.measuredOrigin;let r=t[t.length-1];void 0!==r&&e.getValue(n,r).jump(r,!1)}measureEndState(){let{element:e,name:t,unresolvedKeyframes:n}=this;if(!e||!e.current)return;let r=e.getValue(t);r&&r.jump(this.measuredOrigin,!1);let i=n.length-1,o=n[i];n[i]=oj[t](e.measureViewportBox(),window.getComputedStyle(e.current)),null!==o&&void 0===this.finalKeyframe&&(this.finalKeyframe=o),this.removedTransforms?.length&&this.removedTransforms.forEac
9h(([t,n])=>{e.getValue(t).set(n)}),this.resolveNoneKeyframes()}}let oZ=e=>1e3*e;function oJ(e,t){-1===e.indexOf(t)&&e.push(t)}function oQ(e,t){let n=e.indexOf(t);n>-1&&e.splice(n,1)}class o0{constructor(){this.subscriptions=[]}add(e){return oJ(this.subscriptions,e),()=>oQ(this.subscriptions,e)}notify(e,t,n){let r=this.subscriptions.length;if(r)if(1===r)this.subscriptions[0](e,t,n);else for(let i=0;i<r;i++){let r=this.subscriptions[i];r&&r(e,t,n)}}getSize(){return this.subscriptions.length}clear(){this.subscriptions.length=0}}function o1(e,t,n){t.startsWith("--")?e.style.setProperty(t,n):e.style[t]=n}function o2(e){let t;return()=>(void 0===t&&(t=e()),t)}let o3={};function o5(e,t){let n=o2(e);return()=>o3[t]??n()}let o4=o5(()=>void 0!==window.ScrollTimeline,"scrollTimeline"),o6=e=>null!==e;function o7(e,{repeat:t,repeatType:n="loop"},r,i=1){let o=e.filter(o6),a=i<0||t&&"loop"!==n&&t%2==1?0:o.length-1;return a&&void 0!==r?r:o[a]}class o9{constructor(){this.updateFinished()}get finished(){return this._finished}updateFinished(){this._finished=new Promise(e=>{this.resolve=e})}notifyFinished(){this.resolve()}then(e,t){return this.finished.then(e,t)}}let o8=e=>Array.isArray(e)&&"number"==typeof e[0],ae=o5(()=>{try{document.createElement("div").animate({opacity:0}
9,{easing:"linear(0, 1)"})}catch(e){return!1}return!0},"linearEasing"),at=(e,t,n=10)=>{let r="",i=Math.max(Math.round(t/n),2);for(let t=0;t<i;t++)r+=Math.round(1e4*e(t/(i-1)))/1e4+", ";return`linear(${r.substring(0,r.length-2)})`},an=([e,t,n,r])=>`cubic-bezier(${e}, ${t}, ${n}, ${r})`,ar={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:an([0,.65,.55,1]),circOut:an([.55,0,1,.45]),backIn:an([.31,.01,.66,-.59]),backOut:an([.33,1.53,.69,.99])};function ai(e){return"function"==typeof e&&"applyToOptions"in e}class ao extends o9{constructor(e){if(super(),this.finishedTime=null,this.isStopped=!1,this.manualStartTime=null,!e)return;const{element:t,name:n,keyframes:r,pseudoElement:i,allowFlatten:o=!1,finalKeyframe:a,onComplete:s}=e;this.isPseudoElement=!!i,this.allowFlatten=o,this.options=e,ou(e.type);const l=function({type:e,...t}){return ai(e)&&ae()?e.applyToOptions(t):(t.duration??(t.duration=300),t.ease??(t.ease="easeOut"),t)}(e);this.animation=function(e,t,n,{delay:r=0,duration:i=300,repeat:o=0,repeatType:a="loop",ease:s="easeOut",times:l}={},d){let u={[t]:n};l&&(u.offset=l);let c=function e(t,n){if(t)return"function"==typeof t?ae()?at(t,n):"ease-out":o8(t)?an(t):Array.isArray(t)?t.map(t=>e(t,n)||ar.easeOut):ar[t]}(s,i);Array.isArray(c)&&(u.easing=c);let h={delay:r,duration:i,easing:Array.isArray(c)?"linear":c,fill:"both",iterations:o+1,direction:"reverse"===a?"alternate":"normal"};return d&&(h.pseudoElement=d),e.animate(u,h)}(t,n,r,l,i),!1===l.autoplay&&this.animation.pause(),this.animation.onfinish=()=>{if(this.finishedTime=this.time,!i){let e=o7(r,this.options,a,this.speed);this.updateMotionValue&&this.updateMotionValue(e),o1(t,n,e),this.animation.cancel()}s?.(),this.notifyFinished()}}play(){this.isStopped||(this.manualStartTime=null,this.animation.play(),"finished"===this.state&&this.updateFinished())}pause(){this.animation.pause()}complete(){this.animation.finish?.()}cancel(){try{this.animation.cancel()}catch(e){}}stop(){if(this.isStopped)return;this.isStopped=!0;let{state:e}=this;"idle"!==e&&"finished"!==e&&(this.updateMotionValue?this.updateMotionValue():this.commitStyles(),this.isPseudoElement||this.cancel())}commitStyles(){let e=this.options?.element;!this.isPseudoElement&&e?.isConnected&&this.animation.commitStyles?.()}get duration(){return Number(this.animation.effect?.getComputedTiming?.().duration||0)/1e3}get iterationDuration(){let{delay:e=0}=this.options||{};return this.duration+e/1e3}get time(){return(Number(this.animation.currentTime)||0)/1e3}set time(e){let t=null!==this.finishedTime;this.manualStartTime=null,this.finishedTime=null,this.animation.currentTime=oZ(e),t&&this.animation.pause()}get speed(){return this.animation.playbackRate}set speed(e){e<0&&(this.finishedTime=null),this.animation.playbackRate=e}get state(){return null!==this.finishedTime?"finished":this.animation.playState}get startTime(){return this.manualStartTime??Number(this.animation.startTime)}set startTime(e){this.manualStartTime=this.animation.startTime=e}attachTimeline({timeline:e,rangeStart:t,rangeEnd:n,observe:r}){return(this.allowFlatten&&this.animation.effect?.updateTiming({easing:"linear"}),this.animation.onfinish=null,e&&o4())?(this.animation.timeline=e,t&&(this.animation.rangeStart=t),n&&(this.animation.rangeEnd=n),oM):r(this)}}let aa=new Set(["opacity","clipPath","filter","transform","backgroundColor"]),{schedule:as}=oz(queueMicrotask,!1);function al(){n=void 0}let ad={now:()=>(void 0===n&&ad.set(oD.isProcessing||oI.useManualTiming?oD.timestamp:performance.now()),n),set:e=>{n=e,queueMicrotask(al)}},au=(e,t)=>t?1e3/t*e:0,ac;class ah{constructor(e,t={}){this.canTrackVelocity=null,this.events={},this.updateAndNotify=e=>{let t=ad.now();if(this.updatedAt!==t&&this.setPrevFrameValue(),this.prev=this.current,this.setCurrent(e),this.current!==this.prev&&(this.events.change?.notify(this.current),this.dependents))for(let e of this.dependents)e.dirty()},this.hasAnimated=!1,this.setCurrent(e),this.owner=t.owner}setCurrent(e){this.current=e,this.updatedAt=ad.now(),null===this.canTrackVelocity&&void 0!==e&&(this.canTrackVelocity=!isNaN(parseFloat(this.current)))}setPrevFrameValue(e=this.current){this.prevFrameValue=e,this.prevUpdatedAt=this.updatedAt}onChange(e){return this.on("change",e)}on(e,t){this.events[e]||(this.events[e]=new o0);let n=this.events[e].add(t);return"change"===e?()=>{n(),oO.read(()=>{this.events.change.getSize()||this.stop()})}:n}clearListeners(){for(let e in this.events)this.events[e].clear()}attach(e,t){this.passiveEffect=e,this.stopPassiveEffect=t}set(e){this.passiveEffect?this.passiveEffect(e,this.updateAndNotify):this.updateAndNotify(e)}
9setWithVelocity(e,t,n){this.set(t),this.prev=void 0,this.prevFrameValue=e,this.prevUpdatedAt=this.updatedAt-n}jump(e,t=!0){this.updateAndNotify(e),this.prev=e,this.prevUpdatedAt=this.prevFrameValue=void 0,t&&this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}dirty(){this.events.change?.notify(this.current)}addDependent(e){this.dependents||(this.dependents=new Set),this.dependents.add(e)}removeDependent(e){this.dependents&&this.dependents.delete(e)}get(){return ac&&ac.push(this),this.current}getPrevious(){return this.prev}getVelocity(){let e=ad.now();if(!this.canTrackVelocity||void 0===this.prevFrameValue||e-this.updatedAt>30)return 0;let t=Math.min(this.updatedAt-this.prevUpdatedAt,30);return au(parseFloat(this.current)-parseFloat(this.prevFrameValue),t)}start(e){return this.stop(),new Promise(t=>{this.hasAnimated=!0,this.animation=e(t),this.events.animationStart&&this.events.animationStart.notify()}).then(()=>{this.events.animationComplete&&this.events.animationComplete.notify(),this.clearAnimation()})}stop(){this.animation&&(this.animation.stop(),this.events.animationCancel&&this.events.animationCancel.notify()),this.clearAnimation()}isAnimating(){return!!this.animation}clearAnimation(){delete this.animation}destroy(){this.dependents?.clear(),this.events.destroy?.notify(),this.clearListeners(),this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}}function af(e,t){return new ah(e,t)}let ap=[...os,iX,i0],am=new WeakMap;function ag(e){return null!==e&&"object"==typeof e&&"function"==typeof e.start}function ab(e){return"string"==typeof e||Array.isArray(e)}let ay=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],av=["initial",...ay];function ax(e){return ag(e.animate)||av.some(t=>ab(e[t]))}function aw(e){return!!(ax(e)||e.variants)}let ak={current:null},aS={current:!1},a$="u">typeof window;function aC(e){let t=[{},{}];return e?.values.forEach((e,n)=>{t[0][n]=e.get(),t[1][n]=e.getVelocity()}),t}function aE(e,t,n,r){if("function"==typeof t){let[i,o]=aC(r);t=t(void 0!==n?n:e.custom,i,o)}if("string"==typeof t&&(t=e.variants&&e.variants[t]),"function"==typeof t){let[i,o]=aC(r);t=t(void 0!==n?n:e.custom,i,o)}return t}let aR=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"],aT={};class aA{scrapeMotionValuesFromProps(e,t,n){return{}}constructor({parent:e,props:t,presenceContext:n,reducedMotionConfig:r,skipAnimations:i,blockInitialAnimation:o,visualState:a},s={}){this.current=null,this.children=new Set,this.isVariantNode=!1,this.isControllingVariants=!1,this.shouldReduceMotion=null,this.shouldSkipAnimations=!1,this.values=new Map,this.KeyframeResolver=oG,this.features={},this.valueSubscriptions=new Map,this.prevMotionValues={},this.hasBeenMounted=!1,this.events={},this.propEventSubscriptions={},this.notifyUpdate=()=>this.notify("Update",this.latestValues),this.render=()=>{this.current&&(this.triggerBuild(),this.renderInstance(this.current,this.renderState,this.props.style,this.projection))},this.renderScheduledAt=0,this.scheduleRender=()=>{let e=ad.now();this.renderScheduledAt<e&&(this.renderScheduledAt=e,oO.render(this.render,!1,!0))};const{latestValues:l,renderState:d}=a;this.latestValues=l,this.baseTarget={...l},this.initialValues=t.initial?{...l}:{},this.renderState=d,this.parent=e,this.props=t,this.presenceContext=n,this.depth=e?e.depth+1:0,this.reducedMotionConfig=r,this.skipAnimationsConfig=i,this.options=s,this.blockInitialAnimation=!!o,this.isControllingVariants=ax(t),this.isVariantNode=aw(t),this.isVariantNode&&(this.variantChildren=new Set),this.manuallyAnimateOnMount=!!(e&&e.current);const{willChange:u,...c}=this.scrapeMotionValuesFromProps(t,{},this);for(const e in c){const t=c[e];void 0!==l[e]&&oi(t)&&t.set(l[e])}}mount(e){if(this.hasBeenMounted)for(let e in this.initialValues)this.values.get(e)?.jump(this.initialValues[e]),this.latestValues[e]=this.initialValues[e];this.current=e,am.set(e,this),this.projection&&!this.projection.instance&&this.projection.mount(e),this.parent&&this.isVariantNode&&!this.isControllingVariants&&(this.removeFromVariantTree=this.parent.addVariantChild(this)),this.values.forEac
9h((e,t)=>this.bindToMotionValue(t,e)),"never"===this.reducedMotionConfig?this.shouldReduceMotion=!1:"always"===this.reducedMotionConfig?this.shouldReduceMotion=!0:(aS.current||function(){if(aS.current=!0,a$)if(window.matchMedia){let e=window.matchMedia("(prefers-reduced-motion)"),t=()=>ak.current=e.matches;e.addEventListener("change",t),t()}else ak.current=!1}(),this.shouldReduceMotion=ak.current),this.shouldSkipAnimations=this.skipAnimationsConfig??!1,this.parent?.addChild(this),this.update(this.props,this.presenceContext),this.hasBeenMounted=!0}unmount(){for(let e in this.projection&&this.projection.unmount(),oL(this.notifyUpdate),oL(this.render),this.valueSubscriptions.forEach(e=>e()),this.valueSubscriptions.clear(),this.removeFromVariantTree&&this.removeFromVariantTree(),this.parent?.removeChild(this),this.events)this.events[e].clear();for(let e in this.features){let t=this.features[e];t&&(t.unmount(),t.isMounted=!1)}this.current=null}addChild(e){this.children.add(e),this.enteringChildren??(this.enteringChildren=new Set),this.enteringChildren.add(e)}removeChild(e){this.children.delete(e),this.enteringChildren&&this.enteringChildren.delete(e)}bindToMotionValue(e,t){let n;if(this.valueSubscriptions.has(e)&&this.valueSubscriptions.get(e)(),t.accelerate&&aa.has(e)&&this.current instanceof HTMLElement){let{factory:n,keyframes:r,times:i,ease:o,duration:a}=t.accelerate,s=new ao({element:this.current,name:e,keyframes:r,times:i,ease:o,duration:oZ(a)}),l=n(s);this.valueSubscriptions.set(e,()=>{l(),s.cancel()});return}let r=iE.has(e);r&&this.onBindTransform&&this.onBindTransform();let i=t.on("change",t=>{this.latestValues[e]=t,this.props.onUpdate&&oO.preRender(this.notifyUpdate),r&&this.projection&&(this.projection.isTransformDirty=!0),this.scheduleRender()});"u">typeof window&&window.MotionCheckAppearSync&&(n=window.MotionCheckAppearSync(this,e,t)),this.valueSubscriptions.set(e,()=>{i(),n&&n()})}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 aT){let t=aT[e];if(!t)continue;let{isEnabled:n,Feature:r}=t;if(!this.features[e]&&r&&n(this.props)&&(this.features[e]=new r(this)),this.features[e]){let t=this.features[e];t.isMounted?t.update():(t.mount(),t.isMounted=!0)}}}triggerBuild(){this.build(this.renderState,this.latestValues,this.props)}measureViewportBox(){return this.current?this.measureInstanceViewportBox(this.current,this.props):or()}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<aR.length;t++){let n=aR[t];this.propEventSubscriptions[n]&&(this.propEventSubscriptions[n](),delete this.propEventSubscriptions[n]);let r=e["on"+n];r&&(this.propEventSubscriptions[n]=this.on(n,r))}this.prevMotionValues=function(e,t,n){for(let r in t){let i=t[r],o=n[r];if(oi(i))e.addValue(r,i);else if(oi(o))e.addValue(r,af(i,{owner:e}));else if(o!==i)if(e.hasValue(r)){let t=e.getValue(r);!0===t.liveStyle?t.jump(i):t.hasAnimated||t.set(i)}else{let t=e.getStaticValue(r);e.addValue(r,af(void 0!==t?t:i,{owner:e}))}}for(let r in n)void 0===t[r]&&e.removeValue(r);return t}(this,this.scrapeMotionValuesFromProps(e,this.prevProps||{},this),this.prevMotionValues),this.handleChildMotionValue&&this.handleChildMotionValue()}getProps(){return this.props}getVariant(e){return this.props.variants?this.props.variants[e]:void 0}getDefaultTransition(){return this.props.transition}getTransformPagePoint(){return this.props.transformPagePoint}getClosestVariantNode(){return this.isVariantNode?this:this.parent?this.parent.getClosestVariantNode():void 0}addVariantChild(e){let t=this.getClosestVariantNode();if(t)return t.variantChildren&&t.variantChildren.add(e),()=>t.variantChildren.delete(e)}addValue(e,t){let n=this.values.get(e);t!==n&&(n&&this.removeValue(e),this.bindToMotionValue(e,t),this.values.set(e,t),this.latestValues[e]=t.get())}removeValue(e){this.values.delete(e);let t=this.valueSubscriptions.get(e);t&&(t(),this.valueSubscriptions.delete(e)),delete this.latestValues[e],this.removeValueFromRenderState(e,this.renderState)}hasValue(e){return this.values.has(e)}getValue(e,t){if(this.props.values&&this.props.values[e])return this.props.values[e];let n=this.values.get(e);return void 0===n&&void 0!==t&&(n=af(null===t?void 0:t,{owner:this}),this.addValue(e,n)),n}readValue(e,t){let n=void 0===this.latestValues[e]&&this.current?this.getBaseTargetFromProps(this.props,e)??this.readValueFromInstance(this.current,e,this.options):this.latestValues[e];if(null!=n){let r,i;if("string"==typeof n&&(r=n,/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(r)||(i=n,/^0[^.\s]+$/u.test(i))))n=parseFloat(n);else{let r;r=n,!ap.find(oa(r))&&i0.test(t)&&(n=oY(e,t))}this.setBaseTarget(e,oi(n)?n.get():n)}return oi(n)?n.get():n}setBaseTarget(e,t){this.baseTarget[e]=t}getBaseTarget(e){let t,{initial:n}=this.props;if("string"==typeof n||"object"==typeof n){let r=aE(this.props,n,this.presenceContext?.custom);r&&(t=r[e])}if(n&&void 0!==t)return t;let r=this.getBaseTargetFromProps(this.props,e);return void 0===r||oi(r)?void 0!==this.initialValues[e]&&void 0===t?void 0:this.baseTarget[e]:r}on(e,t){return this.events[e]||(this.events[e]=new o0),this.events[e].add(t)}notify(e,...t){this.events[e]&&this.events[e].notify(...t)}scheduleRenderMicrotask(){as.render(this.render)}}class aP extends aA{constructor(){super(...arguments),this.KeyframeResolver=oK}sortInstanceNodePosition(e,t){return 2&e.compareDocumentPosition(t)?1:-1}getBaseTargetFromProps(e,t){let n=e.style;return n?n[t]:void 0}removeValueFromRenderState(e,{vars:t,style:n}){delete t[e],delete n[e]}handleChildMotionValue(){this.childSubscription&&(this.childSubscription(),delete this.childSubscription);let{children:e}=this.props;oi(e)&&(this.childSubscription=e.on("change",e=>{this.current&&(this.current.textContent=`${e}`)}))}}function aj(e){return e.replace(/([A-Z])/g,e=>`-${e.toLowerCase()}`)}let aM=(e,t)=>t&&"number"==typeof e?t.transform(e):e,aI={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},a_=iC.length;function az(e,t,n){let{style:r,vars:i,transformOrigin:o}=e,a=!1,s=!1;for(let e in t){let n=t[e];if(iE.has(e)){a=!0;continue}if(oh(e)){i[e]=n;continue}{let t=aM(n,i7[e]);e.startsWith("origin")?(s=!0,o[e]=t):r[e]=t}}if(!t.transform&&(a||n?r.transform=function(e,t,n){let r="",i=!0;for(let o=0;o<a_;o++){let a=iC[o],s=e[a];if(void 0===s)continue;let l=!0;if("number"==typeof s)l=s===+!!a.startsWith("scale");else{let e=parseFloat(s);l=a.startsWith("scale")?1===e:0===e}if(!l||n){let e=aM(s,i7[a]);if(!l){i=!1;let t=aI[a]||a;r+=`${t}(${e}) `}n&&(t[a]=e)}}let o=e.pathRotation;return o&&(i=!1,r+=`rotate(${aM(o,i7.pathRotation)}) `),r=r.trim(),n?r=n(t,i?"":r):i&&(r="none"),r}(t,e.transform,n):r.transform&&(r.transform="none")),s){let{originX:e="50%",originY:t="50%",originZ:n=0}=o;r.transformOrigin=`${e} ${t} ${n}`}}let aO={offset:"stroke-dashoffset",array:"stroke-dasharray"},aL={offset:"strokeDashoffset",array:"strokeDasharray"},aD=["transform","opacity","offsetDistance","offsetPath","offsetRotate","offsetAnchor"];function aV(e,{attrX:t,attrY:n,attrScale:r,pathLength:i,pathSpacing:o=1,pathOffset:a=0,...s}
9,l,d,u){if(az(e,s,d),l){e.style.viewBox&&(e.attrs.viewBox=e.style.viewBox);return}e.attrs=e.style,e.style={};let{attrs:c,style:h}=e;for(let e of aD)void 0!==c[e]&&(h[e]=c[e],delete c[e]);(h.transform||c.transformOrigin)&&(h.transformOrigin=c.transformOrigin??"50% 50%",delete c.transformOrigin),h.transform&&(h.transformBox=u?.transformBox??"fill-box",delete c.transformBox),void 0!==t&&(c.x=t),void 0!==n&&(c.y=n),void 0!==r&&(c.scale=r),void 0!==i&&function(e,t,n=1,r=0,i=!0){e.pathLength=1;let o=i?aO:aL;e[o.offset]=`${-r}`,e[o.array]=`${t} ${n}`}(c,i,o,a,!1)}let aB=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"]),aN=e=>"string"==typeof e&&"svg"===e.toLowerCase();function aF(e,{style:t,vars:n},r,i){let o,a=e.style;for(o in t)a[o]=t[o];for(o in i?.applyProjectionStyles(a,r),n)a.setProperty(o,n[o])}let aH=["borderTopLeftRadius","borderTopRightRadius","borderBottomRightRadius","borderBottomLeftRadius"];function aW(e,t){return t.max===t.min?0:e/(t.max-t.min)*100}let aU={correct:(e,t)=>{if(!t.target)return e;if("string"==typeof e)if(!iF.test(e))return e;else e=parseFloat(e);let n=aW(e,t.target.x),r=aW(e,t.target.y);return`${n}% ${r}%`}},aG=(e,t,n)=>e+(t-e)*n,aX={borderRadius:{...aU,applyTo:[...aH]},borderTopLeftRadius:aU,borderTopRightRadius:aU,borderBottomLeftRadius:aU,borderBottomRightRadius:aU,boxShadow:{correct:(e,{treeScale:t,projectionDelta:n})=>{let r=i0.parse(e);if(r.length>5)return e;let i=i0.createTransformer(e),o=+("number"!=typeof r[0]),a=n.x.scale*t.x,s=n.y.scale*t.y;r[0+o]/=a,r[1+o]/=s;let l=aG(a,s,.5);return"number"==typeof r[2+o]&&(r[2+o]/=l),"number"==typeof r[3+o]&&(r[3+o]/=l),i(r)}}};function aY(e,{layout:t,layoutId:n}){return iE.has(e)||e.startsWith("origin")||(t||void 0!==n)&&(!!aX[e]||"opacity"===e)}function aq(e,t,n){let r=e.style,i=t?.style,o={};if(!r)return o;for(let t in r)(oi(r[t])||i&&oi(i[t])||aY(t,e)||n?.getValue(t)?.liveStyle!==void 0)&&(o[t]=r[t]);return o}function aK(e,t,n){let r=aq(e,t,n);for(let n in e)(oi(e[n])||oi(t[n]))&&(r[-1!==iC.indexOf(n)?"attr"+n.charAt(0).toUpperCase()+n.substring(1):n]=e[n]);return r}class aZ extends aP{constructor(){super(...arguments),this.type="svg",this.isSVGTag=!1,this.measureInstanceViewportBox=or}getBaseTargetFromProps(e,t){return e[t]}readValueFromInstance(e,t){if(iE.has(t)){let e=i8(t);return e&&e.default||0}if(aD.includes(t)){let n=getComputedStyle(e)[t];if("string"==typeof n&&n)return n.trim()}return t=aB.has(t)?t:aj(t),e.getAttribute(t)}scrapeMotionValuesFromProps(e,t,n){return aK(e,t,n)}
9build(e,t,n){aV(e,t,this.isSVGTag,n.transformTemplate,n.style)}renderInstance(e,t,n,r){for(let n in aF(e,t,void 0,r),t.attrs)e.setAttribute(aB.has(n)?n:aj(n),t.attrs[n])}mount(e){this.isSVGTag=aN(e.tagName),super.mount(e)}}function aJ({top:e,left:t,right:n,bottom:r}){return{x:{min:t,max:n},y:{min:e,max:r}}}function aQ(e){return void 0===e||1===e}function a0({scale:e,scaleX:t,scaleY:n}){return!aQ(e)||!aQ(t)||!aQ(n)}function a1(e){return a0(e)||a2(e)||e.z||e.rotate||e.rotateX||e.rotateY||e.skewX||e.skewY}function a2(e){var t,n;return(t=e.x)&&"0%"!==t||(n=e.y)&&"0%"!==n}function a3(e,t,n,r,i){return void 0!==i&&(e=r+i*(e-r)),r+n*(e-r)+t}function a5(e,t=0,n=1,r,i){e.min=a3(e.min,t,n,r,i),e.max=a3(e.max,t,n,r,i)}function a4(e,{x:t,y:n}){a5(e.x,t.translate,t.scale,t.originPoint),a5(e.y,n.translate,n.scale,n.originPoint)}function a6(e,t){e.min+=t,e.max+=t}function a7(e,t,n,r,i=.5){let o=aG(e.min,e.max,i);a5(e,t,n,o,r)}function a9(e,t){return"string"==typeof e?parseFloat(e)/100*(t.max-t.min):e}function a8(e,t,n){let r=n??e;a7(e.x,a9(t.x,r.x),t.scaleX,t.scale,t.originX),a7(e.y,a9(t.y,r.y),t.scaleY,t.scale,t.originY)}function se(e,t){return aJ(function(e,t){if(!t)return e;let n=t({x:e.left,y:e.top}),r=t({x:e.right,y:e.bottom});return{top:n.y,left:n.x,bottom:r.y,right:r.x}}(e.getBoundingClientRect(),t))}class st extends aP{constructor(){super(...arguments),this.type="html",this.renderInstance=aF}mount(e){ou(e.style),super.mount(e)}readValueFromInstance(e,t){if(iE.has(t))return this.projection?.isProjecting?oC(t):((e,t)=>{let{transform:n="none"}=getComputedStyle(e);return oE(n,t)})(e,t);{let n=window.getComputedStyle(e),r=(oh(t)?n.getPropertyValue(t):n[t])||0;return"string"==typeof r?r.trim():r}}measureInstanceViewportBox(e,{transformPagePoint:t}){return se(e,t)}build(e,t,n){az(e,t,n.transformTemplate)}scrapeMotionValuesFromProps(e,t,n){return aq(e,t,n)}}let sn=["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 sr(e){if("string"!=typeof e||e.includes("-"));else if(sn.indexOf(e)>-1||/[A-Z]/u.test(e))return!0;return!1}let si=(0,eZ.createContext)({strict:!1}),so=(0,eZ.createContext)({});function sa(e){return Array.isArray(e)?e.join(" "):e}let ss=()=>({style:{},transform:{},transformOrigin:{},vars:{}});function sl(e,t,n){for(let r in t)oi(t[r])||aY(r,n)||(e[r]=t[r])}let sd=()=>({...ss(),attrs:{}}),su=new Set(["animate","exit","variants","initial","style","values","variants","transition","transformTemplate","custom","inherit","onBeforeLayoutMeasure","onAnimationStart","onAnimationComplete","onUpdate","onDragStart","onDrag","onDragEnd","onMeasureDragConstraints","onDirectionLock","onDragTransitionEnd","_dragX","_dragY","onHoverStart","onHoverEnd","onViewportEnter","onViewportLeave","globalTapTarget","propagate","ignoreStrict","viewport"]);function sc(e){return e.startsWith("while")||e.startsWith("drag")&&"draggable"!==e||e.startsWith("layout")||e.startsWith("onTap")||e.startsWith("onPan")||e.startsWith("onLayout")||su.has(e)}function sh(e){return oi(e)?e.get():e}let sf=e=>(t,n)=>{let r=(0,eZ.useContext)(so),i=(0,eZ.useContext)(ic),o=()=>(function({scrapeMotionValuesFromProps:e,createRenderState:t},n,r,i){return{latestValues:function(e,t,n,r){let i={},o=r(e,{});for(let e in o)i[e]=sh(o[e]);let{initial:a,animate:s}=e,l=ax(e),d=aw(e);t&&d&&!l&&!1!==e.inherit&&(void 0===a&&(a=t.initial),void 0===s&&(s=t.animate));let u=!!n&&!1===n.initial,c=(u=u||!1===a)?s:a;if(c&&"boolean"!=typeof c&&!ag(c)){let t=Array.isArray(c)?c:[c];for(let n=0;n<t.length;n++){let r=aE(e,t[n]);if(r){let{transitionEnd:e,transition:t,...n}=r;for(let e in n){let t=n[e];if(Array.isArray(t)){let e=u?t.length-1:0;t=t[e]}null!==t&&(i[e]=t)}for(let t in e)i[t]=e[t]}}}return i}(n,r,i,e),renderState:t()}})(e,t,r,i);return n?o():id(o)},sp=sf({scrapeMotionValuesFromProps:aq,createRenderState:ss}),sm=sf({scrapeMotionValuesFromProps:aK,createRenderState:sd}),sg={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"]},sb=!1;function sy(){return!function(){if(sb)return;let e={};for(let t in sg)e[t]={isEnabled:e=>sg[t].some(t=>!!e[t])};aT=e,sb=!0}(),aT}let sv=Symbol.for("motionComponentSymbol"),sx="data-"+aj("framerAppearId"),sw=(0,eZ.createContext)({});function sk(e){return e&&"object"==typeof e&&Object.prototype.hasOwnProperty.call(e,"current")}function sS(e,{forwardMotionProps:t=!1,type:n}={},r,i){r&&function(e){let t=sy();for(let n in e)t[n]={...t[n],...e[n]};aT=t}(r);let o=n?"svg"===n:sr(e),a=o?sm:sp;function s(n,r){var s;let l,d,u,c={...(0,eZ.useContext)(ig),...n,layoutId:function({layoutId:e}){let t=(0,eZ.useContext)(il).id;return t&&void 0!==e?t+"-"+e:e}(n)},{isStatic:h,isValidProp:f}=c,p=function(e){let{initial:t,animate:n}=function(e,t){if(ax(e)){let{initial:t,animate:n}=e;return{initial:!1===t||ab(t)?t:void 0,animate:ab(n)?n:void 0}}return!1!==e.inherit?t:{}}
9(e,(0,eZ.useContext)(so));return(0,eZ.useMemo)(()=>({initial:t,animate:n}),[sa(t),sa(n)])}(n),m=a(n,h);if(!h&&"u">typeof window){(0,eZ.useContext)(si).strict;let t=function(e){let{drag:t,layout:n}=sy();if(!t&&!n)return{};let r={...t,...n};return{MeasureLayout:t?.isEnabled(e)||n?.isEnabled(e)?r.MeasureLayout:void 0,ProjectionNode:r.ProjectionNode}}(c);l=t.MeasureLayout,p.visualElement=function(e,t,n,r,i,o){let{visualElement:a}=(0,eZ.useContext)(so),s=(0,eZ.useContext)(si),l=(0,eZ.useContext)(ic),d=(0,eZ.useContext)(ig),u=d.reducedMotion,c=d.skipAnimations,h=(0,eZ.useRef)(null),f=(0,eZ.useRef)(!1);r=r||s.renderer,!h.current&&r&&(h.current=r(e,{visualState:t,parent:a,props:n,presenceContext:l,blockInitialAnimation:!!l&&!1===l.initial,reducedMotionConfig:u,skipAnimations:c,isSVG:o}),f.current&&h.current&&(h.current.manuallyAnimateOnMount=!0));let p=h.current,m=(0,eZ.useContext)(sw);p&&!p.projection&&i&&("html"===p.type||"svg"===p.type)&&function(e,t,n,r){let{layoutId:i,layout:o,drag:a,dragConstraints:s,layoutScroll:l,layoutRoot:d,layoutAnchor:u,layoutCrossfade:c}=t;e.projection=new n(e.latestValues,t["data-framer-portal-id"]?void 0:function e(t){if(t)return!1!==t.options.allowProjection?t.projection:e(t.parent)}(e.parent)),e.projection.setOptions({layoutId:i,layout:o,alwaysMeasureLayout:!!a||s&&sk(s),visualElement:e,animationType:"string"==typeof o?o:"both",initialPromotionConfig:r,crossfade:c,layoutScroll:l,layoutRoot:d,layoutAnchor:u})}(h.current,n,i,m);let g=(0,eZ.useRef)(!1);(0,eZ.useInsertionEffect)(()=>{p&&g.current&&p.update(n,l)});let b=n[sx],y=(0,eZ.useRef)(!!b&&"u">typeof window&&!window.MotionHandoffIsComplete?.(b)&&window.MotionHasOptimisedAnimation?.(b));return iu(()=>{f.current=!0,p&&(g.current=!0,window.MotionIsMounted=!0,p.updateFeatures(),p.scheduleRenderMicrotask(),y.current&&p.animationState&&p.animationState.animateChanges())}),(0,eZ.useEffect)(()=>{p&&(!y.current&&p.animationState&&p.animationState.animateChanges(),y.current&&(queueMicrotask(()=>{window.MotionHandoffMarkAsComplete?.(b)}),y.current=!1),p.enteringChildren=void 0)}),p}(e,m,c,i,t.ProjectionNode,o)}return(0,nQ.jsxs)(so.Provider,{value:p,children:[l&&p.visualElement?(0,nQ.jsx)(l,{visualElement:p.visualElement,...c}):null,function(e,t,n,{latestValues:r},i,o=!1,a,s){let l=(a??sr(e)?function(e,t,n,r){let i=(0,eZ.useMemo)(()=>{let n=sd();return aV(n,t,aN(r),e.transformTemplate,e.style),{...n.attrs,style:{...n.style}}},[t]);if(e.style){let t={};sl(t,e.style,e),i.style={...t,...i.style}}return i}:function(e,t){let n,r,i={},o=(n=e.style||{},sl(r={},n,e),Object.assign(r,function({transformTemplate:e},t){return(0,eZ.useMemo)(()=>{let n=ss();return az(n,t,e),Object.assign({},n.vars,n.style)},[t])}(e,t)),r);return e.drag&&!1!==e.dragListener&&(i.draggable=!1,o.userSelect=o.WebkitUserSelect=o.WebkitTouchCallout="none",o.touchAction=!0===e.drag?"none":`pan-${"x"===e.drag?"y":"x"}`),void 0===e.tabIndex&&(e.onTap||e.onTapStart||e.whileTap)&&(i.tabIndex=0),i.style=o,i})(t,r,i,e),d=function(e,t,n,r){let i={};for(let o in e)("values"!==o||"object"!=typeof e.values)&&!oi(e[o])&&((o.startsWith("on")?!sc(o):r?.(o)??!sc(o))||!0===n&&sc(o)||!t&&!sc(o)||e.draggable&&o.startsWith("onDrag"))&&(i[o]=e[o]);return i}(t,"string"==typeof e,o,s),u=e!==eZ.Fragment?{...d,...l,ref:n}:{},{children:c}=t,h=(0,eZ.useMemo)(()=>oi(c)?c.get():c,[c]);return(0,eZ.createElement)(e,{...u,children:h})}(e,n,(s=p.visualElement,d=(0,eZ.useRef)(r),(0,eZ.useInsertionEffect)(()=>{d.current=r}),u=(0,eZ.useRef)(null),(0,eZ.useCallback)(e=>{e&&m.onMount?.(e),s&&(e?s.mount(e):s.unmount());let t=d.current;if("function"==typeof t)if(e){let n=t(e);"function"==typeof n&&(u.current=n)}else u.current?(u.current(),u.current=null):t(e);else t&&(t.current=e)},[s])),m,h,t,o,f)]})}s.displayName=`motion.${"string"==typeof e?e:`create(${e.displayName??e.name??""})`}`;let l=(0,eZ.forwardRef)(s);return l[sv]=e,l}class s${constructor(e){this.isMounted=!1,this.node=e}update(){}}function sC(e,t,n){let r=e.getProps();return aE(r,t,void 0!==n?n:r.custom,e)}function sE(e,t){if(e?.inherit&&t){let{inherit:n,...r}=e;return{...t,...r}}return e}function sR(e,t){let n=e?.[t]??e?.default??e;return n!==e?sE(n,e):n}let sT=e=>Array.isArray(e);function sA(e,t){let n=e.getValue("willChange");if(oi(n)&&n.add)return n.add(t);if(!n&&oI.WillChange){let n=new oI.WillChange("auto");e.addValue("willChange",n),n.add(t)}}let sP=(...e)=>e.reduce((e,t)=>
9n=>t(e(n)));function sj(e,t,n){return(n<0&&(n+=1),n>1&&(n-=1),n<1/6)?e+(t-e)*6*n:n<.5?t:n<2/3?e+(t-e)*(2/3-n)*6:e}function sM(e,t){return n=>n>0?t:e}let sI=(e,t,n)=>{let r=e*e,i=n*(t*t-r)+r;return i<0?0:Math.sqrt(i)},s_=[iD,iL,iG];function sz(e){let t=s_.find(t=>t.test(e));if(od(`'${e}' is not an animatable color. Use the equivalent color code instead.`),!t)return!1;let n=t.parse(e);return t===iG&&(n=function({hue:e,saturation:t,lightness:n,alpha:r}){e/=360,n/=100;let i=0,o=0,a=0;if(t/=100){let r=n<.5?n*(1+t):n+t-n*t,s=2*n-r;i=sj(s,r,e+1/3),o=sj(s,r,e),a=sj(s,r,e-1/3)}else i=o=a=n;return{red:Math.round(255*i),green:Math.round(255*o),blue:Math.round(255*a),alpha:r}}(n)),n}let sO=(e,t)=>{let n=sz(e),r=sz(t);if(!n||!r)return sM(e,t);let i={...n};return e=>(i.red=sI(n.red,r.red,e),i.green=sI(n.green,r.green,e),i.blue=sI(n.blue,r.blue,e),i.alpha=aG(n.alpha,r.alpha,e),iL.transform(i))},sL=new Set(["none","hidden"]);function sD(e,t){return n=>aG(e,t,n)}function sV(e){return"number"==typeof e?sD:"string"==typeof e?op(e)?sM:iX.test(e)?sO:sF:Array.isArray(e)?sB:"object"==typeof e?iX.test(e)?sO:sN:sM}function sB(e,t){let n=[...e],r=n.length,i=e.map((e,n)=>sV(e)(e,t[n]));return e=>{for(let t=0;t<r;t++)n[t]=i[t](e);return n}}function sN(e,t){let n={...e,...t},r={};for(let i in n)void 0!==e[i]&&void 0!==t[i]&&(r[i]=sV(e[i])(e[i],t[i]));return e=>{for(let t in r)n[t]=r[t](e);return n}}let sF=(e,t)=>{let n=i0.createTransformer(t),r=iJ(e),i=iJ(t);if(!(r.indexes.var.length===i.indexes.var.length&&r.indexes.color.length===i.indexes.color.length&&r.indexes.number.length>=i.indexes.number.length))return od(`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.`),sM(e,t);if(sL.has(e)&&!i.values.length||sL.has(t)&&!r.values.length)return sL.has(e)?n=>n<=0?e:t:n=>n>=1?t:e;return sP(sB(function(e,t){let n=[],r={color:0,var:0,number:0};for(let i=0;i<t.values.length;i++){let o=t.types[i],a=e.indexes[o][r[o]],s=e.values[a]??0;n[i]=s,r[o]++}return n}(r,i),i.values),n)};function sH(e,t,n){return"number"==typeof e&&"number"==typeof t&&"number"==typeof n?aG(e,t,n):sV(e)(e,t)}let sW=e=>{let t=({timestamp:t})=>e(t);return{start:(e=!0)=>oO.update(t,e),stop:()=>oL(t),now:()=>oD.isProcessing?oD.timestamp:ad.now()}};function sU(e,t=50,n=2e4,r){let i=0,o=e.next(i);for(r?.push(o.value);!o.done&&i<n;)i+=t,o=e.next(i),r?.push(o.value);return i>=n?1/0:i}let sG=.01,sX=2,sY=.005,sq=.5;function sK(e,t){return e*Math.sqrt(1-t*t)}let sZ=["duration","bounce"],sJ=["stiffness","damping","mass"];function sQ(e,t){return t.some(t=>void 0!==e[t])}function s0(e=.3,t=.3){let n,r,i="object"!=typeof e?{visualDuration:e,keyframes:[0,1],bounce:t}:e,{restSpeed:o,restDelta:a}=i,s=i.keyframes[0],l=i.keyframes[i.keyframes.length-1],d={done:!1,value:s},{stiffness:u,damping:c,mass:h,duration:f,velocity:p,isResolvedFromDuration:m}=function(e){let t={velocity:0,stiffness:100,damping:10,mass:1,isResolvedFromDuration:!1,...e};if(!sQ(e,sJ)&&sQ(e,sZ))if(t.velocity=0,e.visualDuration){let n=2*Math.PI/(1.2*e.visualDuration),r=n*n,i=2*iR(.05,1,1-(e.bounce||0))*Math.sqrt(r);t={...t,mass:1,stiffness:r,damping:i}}else{let n=function({duration:e=800,bounce:t=.3,velocity:n=0,mass:r=1}){let i,o;od(oZ(10));let a=1-t;a=iR(.05,1,a),e=iR(.01,10,e/1e3),a<1?(i=t=>{let r=t*a,i=r*e;return .001-(r-n)/sK(t,a)*Math.exp(-i)},o=t=>{let r=t*a*e,o=a*a*t*t*e,s=Math.exp(-r),l=sK(t*t,a);return(r*n+n-o)*s*(-i(t)+.001>0?-1:1)/l}):(i=t=>-.001+Math.exp(-t*e)*((t-n)*e+1),o=t=>e*e*(n-t)*Math.exp(-t*e));let s=function(e,t,n){let r=n;for(let n=1;n<12;n++)r-=e(r)/t(r);return r}(i,o,5/e);if(e=oZ(e),isNaN(s))return{stiffness:100,damping:10,duration:e};{let t=s*s*r;return{stiffness:t,damping:2*a*Math.sqrt(r*t),duration:e}}}({...e,velocity:0});(t={...t,...n,mass:1}).isResolvedFromDuration=!0}return t}({...i,velocity:-((i.velocity||0)/1e3)}),g=p||0,b=c/(2*Math.sqrt(u*h)),y=l-s,v=Math.sqrt(u/h)/1e3,x=b*v,w=5>Math.abs(y);if(o||(o=w?sG:sX),a||(a=w?sY:sq),b<1){let e=sK(v,b),t=(g+x*y)/e,i=x*t+y*e,o=x*y-t*e,a=-1,s=0,d=0,u=n=>{if(n!==a){a=n;
9let r=Math.exp(-x*n),u=Math.sin(e*n),c=Math.cos(e*n);s=l-r*(t*u+y*c),d=r*(i*u+o*c)}};n=e=>(u(e),s),r=e=>(u(e),d)}else if(1===b){n=e=>l-Math.exp(-v*e)*(y+(g+v*y)*e);let e=g+v*y;r=t=>Math.exp(-v*t)*(v*e*t-g)}else{let e=v*Math.sqrt(b*b-1);n=t=>{let n=Math.exp(-x*t),r=Math.min(e*t,300);return l-n*((g+x*y)*Math.sinh(r)+e*y*Math.cosh(r))/e};let t=(g+x*y)/e,i=x*t-y*e,o=x*y-t*e;r=t=>{let n=Math.exp(-x*t),r=Math.min(e*t,300);return n*(i*Math.sinh(r)+o*Math.cosh(r))}}let k={calculatedDuration:m&&f||null,velocity:e=>oZ(r(e)),next:e=>{let t=n(e);return m?d.done=e>=f:d.done=Math.abs(oZ(r(e)))<=o&&Math.abs(l-t)<=a,d.value=d.done?l:t,d},toString:()=>{let e=Math.min(sU(k),2e4),t=at(t=>k.next(e*t).value,e,30);return e+"ms "+t},toTransition:()=>{}};return k}function s1({keyframes:e,velocity:t=0,power:n=.8,timeConstant:r=325,bounceDamping:i=10,bounceStiffness:o=500,modifyTarget:a,min:s,max:l,restDelta:d=.5,restSpeed:u}){let c,h,f=e[0],p={done:!1,value:f},m=n*t,g=f+m,b=void 0===a?g:a(g);b!==g&&(m=b-f);let y=e=>-m*Math.exp(-e/r),v=e=>{let t=y(e);p.done=Math.abs(t)<=d,p.value=p.done?b:b+t},x=e=>{let t;if((t=p.value)<s||t>l){var n;c=e,h=s0({keyframes:[p.value,(n=p.value,void 0===s?l:void 0===l||Math.abs(s-n)<Math.abs(l-n)?s:l)],velocity:-y(e)/r*1e3,damping:i,stiffness:o,restDelta:d,restSpeed:u})}};return x(0),{calculatedDuration:null,next:e=>{let t=!1;return(h||void 0!==c||(t=!0,v(e),x(e)),void 0!==c&&e>=c)?h.next(e-c):(t||v(e),p)}}}s0.applyToOptions=e=>{let t=function(e,t=100,n){let r=n({...e,keyframes:[0,t]}),i=Math.min(sU(r),2e4);return{type:"keyframes",ease:e=>r.next(i*e).value/t,duration:i/1e3}}(e,100,s0);return e.ease=t.ease,e.duration=oZ(t.duration),e.type="keyframes",e};let s2=(e,t,n)=>(((1-3*n+3*t)*e+(3*n-6*t))*e+3*t)*e;function s3(e,t,n,r){return e===t&&n===r?oM:i=>0===i||1===i?i:s2(function(e,t,n,r,i){let o,a,s=0;do(o=s2(a=t+(n-t)/2,r,i)-e)>0?n=a:t=a;while(Math.abs(o)>1e-7&&++s<12)return a}(i,0,1,e,n),t,r)}let s5=s3(.42,0,1,1),s4=s3(0,0,.58,1),s6=s3(.42,0,.58,1),s7=e=>t=>t<=.5?e(2*t)/2:(2-e(2*(1-t)))/2,s9=e=>t=>1-e(1-t),s8=s3(.33,1.53,.69,.99),le=s9(s8),lt=s7(le),ln=e=>e>=1?1:(e*=2)<1?.5*le(e):.5*(2-Math.pow(2,-10*(e-1))),lr=e=>1-Math.sin(Math.acos(e)),li=s9(lr),lo=s7(lr),la={linear:oM,easeIn:s5,easeInOut:s6,easeOut:s4,circIn:lr,circInOut:lo,circOut:li,backIn:le,backInOut:lt,backOut:s8,anticipate:ln},ls=e=>{if(o8(e)){ou(e.length);let[t,n,r,i]=e;return s3(t,n,r,i)}return"string"==typeof e?(ou(la[e],`Invalid easing type '${e}'`),la[e]):e};e.s(["easingDefinitionToFunction",0,ls],8252);let ll=(e,t,n)=>{let r=t-e;return r?(n-e)/r:1};function ld({duration:e=300,keyframes:t,times:n,ease:r="easeInOut"}){var i;let o,a=Array.isArray(r)&&"number"!=typeof r[0]?r.map(ls):ls(r),s={done:!1,value:t[0]},l=function(e,t,{clamp:n=!0,ease:r,mixer:i}={}){let o=e.length;if(ou(t.length),1===o)return()=>t[0];if(2===o&&t[0]===t[1])return()=>t[1];let a=e[0]===e[1];e[0]>e[o-1]&&(e=[...e].reverse(),t=[...t].reverse());let s=function(e,t,n){let r=[],i=n||oI.mix||sH,o=e.length-1;for(let n=0;n<o;n++){let o=i(e[n],e[n+1]);t&&(o=sP(Array.isArray(t)?t[n]||oM:t,o)),r.push(o)}return r}(t,r,i),l=s.length,d=n=>{if(a&&n<e[0])return t[0];let r=0;if(l>1)for(;r<e.length-2&&!(n<e[r+1]);r++);let i=ll(e[r],e[r+1],n);return s[r](i)};return n?t=>d(iR(e[0],e[o-1],t)):d}((i=n&&n.length===t.length?n:(!function(e,t){let n=e[e.length-1];for(let r=1;r<=t;r++){let i=ll(0,t,r);e.push(aG(n,1,i))}}(o=[0],t.length-1),o),i.map(t=>t*e)),t,{ease:Array.isArray(a)?a:t.map(()=>a||s6).splice(0,t.length-1)});return{calculatedDuration:e,next:t=>(s.value=l(t),s.done=t>=e,s)}}let lu={decay:s1,inertia:s1,tween:ld,keyframes:ld,spring:s0};function lc(e){"string"==typeof e.type&&(e.type=lu[e.type])}let lh=e=>e/100;class lf extends o9{constructor(e){super(),this.state="idle",this.startTime=null,this.isStopped=!1,this.currentTime=0,this.holdTime=null,this.playbackSpeed=1,this.delayState={done:!1,value:void 0},this.stop=()=>{let{motionValue:e}=this.options;e&&e.updatedAt!==ad.now()&&this.tick(ad.now()),this.isStopped=!0,"idle"!==this.state&&(this.teardown(),this.options.onStop?.())},this.options=e,this.initAnimation(),this.play(),!1===e.autoplay&&this.pause()}initAnimation(){let{options:e}=this;lc(e);let{type:t=ld,repeat:n=0,repeatDelay:r=0,repeatType:i,velocity:o=0}=e,{keyframes:a}=e,s=t||ld;s!==ld&&"number"!=typeof a[0]&&(this.mixKeyframes=sP(lh,sH(a[0],a[1])),a=[0,100]);let l=s({...e,keyframes:a});"mirror"===i&&(this.mirroredGenerator=s({...e,keyframes:[...a].reverse(),velocity:-o})),null===l.calculatedDuration&&(l.calculatedDuration=sU(l));let{calculatedDuration:d}=l;this.calculatedDuration=d,this.resolvedDuration=d+r,this.totalDuration=this.resolvedDuration*(n+1)-r,this.generator=l}updateTime(e){let t=Math.round(e-this.startTime)*this.playbackSpeed;null!==this.holdTime?this.currentTime=this.holdTime:this.currentTime=t}tick(e,t=!1){let n,{generator:r,totalDuration:i,mixKeyframes:o,mirroredGenerator:a,resolvedDuration:s,calculatedDuration:l}=this;if(null===this.startTime)return r.next(0);let{delay:d=0,keyframes:u,repeat:c,repeatType:h,repeatDelay:f,type:p,onUpdate:m,finalKeyframe:g}=this.options;this.speed>0?this.startTime=Math.min(this.startTime,e):this.speed<0&&(this.startTime=Math.min(e-i/this.speed,this.startTime)),t?this.currentTime=e:this.updateTime(e);let b=this.currentTime-d*(this.playbackSpeed>=0?1:-1),y=this.playbackSpeed>=0?b<0:b>i;this.currentTime=Math.max(b,0),"finished"===this.state&&null===this.holdTime&&(this.currentTime=i);let v=this.currentTime,x=r;if(c){let e=Math.min(this.currentTime,i)/s,t=Math.floor(e),n=e%1;!n&&e>=1&&(n=1),1===n&&t--,(t=Math.min(t,c+1))%2&&("reverse"===h?(n=1-n,f&&(n-=f/s)):"mirror"===h&&(x=a)),v=iR(0,1,n)*s}y?(this.delayState.value=u[0],n=this.delayState):n=x.next(v),o&&!y&&(n.value=o(n.value));let{done:w}=n;y||null===l||(w=this.playbackSpeed>=0?this.currentTime>=i:this.currentTime<=0);let k=null===this.holdTime&&("finished"===this.state||"running"===this.state&&w);return k&&p!==s1&&(n.value=o7(u,this.options,g,this.speed)),m&&m(n.value),k&&this.finish(),n}then(e,t){return this.finished.then(e,t)}get duration(){return this.calculatedDuration/1e3}get iterationDuration(){let{delay:e=0}=this.options||{};return this.duration+e/1e3}get time(){return this.currentTime/1e3}set time(e){e=oZ(e),this.currentTime=e,null===this.startTime||null!==this.holdTime||0===this.playbackSpeed?this.holdTime=e:this.driver&&(this.startTime=this.driver.now()-e/this.playbackSpeed),this.driver?this.driver.start(!1):(this.startTime=0,this.state="paused",this.holdTime=e,this.tick(e))}getGeneratorVelocity(){let e,t=this.currentTime;
9if(t<=0)return this.options.velocity||0;if(this.generator.velocity)return this.generator.velocity(t);let n=this.generator.next(t).value;return au(n-(e=>this.generator.next(e).value)(e=Math.max(t-5,0)),t-e)}get speed(){return this.playbackSpeed}set speed(e){let t=this.playbackSpeed!==e;t&&this.driver&&this.updateTime(ad.now()),this.playbackSpeed=e,t&&this.driver&&(this.time=this.currentTime/1e3)}play(){if(this.isStopped)return;let{driver:e=sW,startTime:t}=this.options;this.driver||(this.driver=e(e=>this.tick(e))),this.options.onPlay?.();let n=this.driver.now();"finished"===this.state?(this.updateFinished(),this.startTime=n):null!==this.holdTime?this.startTime=n-this.holdTime:this.startTime||(this.startTime=t??n),"finished"===this.state&&this.speed<0&&(this.startTime+=this.calculatedDuration),this.holdTime=null,this.state="running",this.driver.start()}pause(){this.state="paused",this.updateTime(ad.now()),this.holdTime=this.currentTime}complete(){"running"!==this.state&&this.play(),this.state="finished",this.holdTime=null}finish(){this.notifyFinished(),this.teardown(),this.state="finished",this.options.onComplete?.()}cancel(){this.holdTime=null,this.startTime=0,this.tick(0),this.teardown(),this.options.onCancel?.()}teardown(){this.state="idle",this.stopDriver(),this.startTime=this.holdTime=null}stopDriver(){this.driver&&(this.driver.stop(),this.driver=void 0)}sample(e){return this.startTime=0,this.tick(e,!0)}attachTimeline(e){return this.options.allowFlatten&&(this.options.type="keyframes",this.options.ease="linear",this.initAnimation()),this.driver?.stop(),e.observe(this)}}let lp={anticipate:ln,backInOut:lt,circInOut:lo};class lm extends ao{constructor(e){!function(e){"string"==typeof e.ease&&e.ease in lp&&(e.ease=lp[e.ease])}(e),lc(e),super(e),void 0!==e.startTime&&!1!==e.autoplay&&(this.startTime=e.startTime),this.options=e}updateMotionValue(e){let{motionValue:t,onUpdate:n,onComplete:r,element:i,...o}=this.options;if(!t)return;if(void 0!==e)return void t.set(e);let a=new lf({...o,autoplay:!1}),s=Math.max(10,ad.now()-this.startTime),l=iR(0,10,s-10),d=a.sample(s).value,{name:u}=this.options;i&&u&&o1(i,u,d),t.setWithVelocity(a.sample(Math.max(0,s-l)).value,d,l),a.stop()}}let lg=(e,t)=>"zIndex"!==t&&!!("number"==typeof e||Array.isArray(e)||"string"==typeof e&&(i0.test(e)||"0"===e)&&!e.startsWith("url("));function lb(e){e.duration=0,e.type="keyframes"}let ly=/^(?:oklch|oklab|lab|lch|color|color-mix|light-dark)\(/,lv=new Set(["color","backgroundColor","outlineColor","fill","stroke","borderColor","borderTopColor","borderRightColor","borderBottomColor","borderLeftColor"]),lx=o2(()=>Object.hasOwnProperty.call(Element.prototype,"animate"));class lw extends o9{constructor({autoplay:e=!0,delay:t=0,type:n="keyframes",repeat:r=0,repeatDelay:i=0,repeatType:o="loop",keyframes:a,name:s,motionValue:l,element:d,...u}){super(),this.stop=()=>{this._animation&&(this._animation.stop(),this.stopTimeline?.()),this.keyframeResolver?.cancel()},this.createdAt=ad.now();const c={autoplay:e,delay:t,type:n,repeat:r,repeatDelay:i,repeatType:o,name:s,motionValue:l,element:d,...u},h=d?.KeyframeResolver||oG;this.keyframeResolver=new h(a,(e,t,n)=>this.onKeyframesResolved(e,t,c,!n),s,l,d),this.keyframeResolver?.scheduleResolve()}onKeyframesResolved(e,t,n,r){let i;this.keyframeResolver=void 0;let{name:o,type:a,velocity:s,delay:l,isHandoff:d,onUpdate:u}=n;this.resolvedAt=ad.now();let c=!0;!function(e,t,n,r){let i=e[0];if(null===i)return!1;if("display"===t||"visibility"===t)return!0;let o=e[e.length-1],a=lg(i,t),s=lg(o,t);return od(`You are trying to animate ${t} from "${i}" to "${o}". "${a?o:i}" is not an animatable value.`),!!a&&!!s&&(function(e){let t=e[0];if(1===e.length)return!0;for(let n=0;n<e.length;n++)if(e[n]!==t)return!0}(e)||("spring"===n||ai(n))&&r)}(e,o,a,s)&&(c=!1,(oI.instantAnimations||!l)&&u?.(o7(e,n,t)),e[0]=e[e.length-1],lb(n),n.repeat=0);let h={startTime:r?this.resolvedAt&&this.resolvedAt-this.createdAt>40?this.resolvedAt:this.createdAt:void 0,finalKeyframe:t,...n,keyframes:e},f=c&&!d&&function(e){let{motionValue:t,name:n,repeatDelay:r,repeatType:i,damping:o,type:a,keyframes:s}=e,l=t?.owner?.current;if(!(l instanceof HTMLElement)&&!(l instanceof SVGElement))return!1;
9let{onUpdate:d,transformTemplate:u}=t.owner.getProps();return lx()&&n&&(aa.has(n)||lv.has(n)&&function(e){for(let t=0;t<e.length;t++)if("string"==typeof e[t]&&ly.test(e[t]))return!0;return!1}(s))&&("transform"!==n||!u)&&!d&&!r&&"mirror"!==i&&0!==o&&"inertia"!==a}(h),p=h.motionValue?.owner?.current;if(f)try{i=new lm({...h,element:p})}catch{i=new lf(h)}else i=new lf(h);i.finished.then(()=>{this.notifyFinished()}).catch(oM),this.pendingTimeline&&(this.stopTimeline=i.attachTimeline(this.pendingTimeline),this.pendingTimeline=void 0),this._animation=i}get finished(){return this._animation?this.animation.finished:this._finished}then(e,t){return this.finished.finally(e).then(()=>{})}get animation(){return this._animation||(this.keyframeResolver?.resume(),oH=!0,oU(),oW(),oH=!1),this._animation}get duration(){return this.animation.duration}get iterationDuration(){return this.animation.iterationDuration}get time(){return this.animation.time}set time(e){this.animation.time=e}get speed(){return this.animation.speed}get state(){return this.animation.state}set speed(e){this.animation.speed=e}get startTime(){return this.animation.startTime}attachTimeline(e){return this._animation?this.stopTimeline=this.animation.attachTimeline(e):this.pendingTimeline=e,()=>this.stop()}play(){this.animation.play()}pause(){this.animation.pause()}complete(){this.animation.complete()}cancel(){this._animation&&this.animation.cancel(),this.keyframeResolver?.cancel()}}let lk={type:"spring",stiffness:500,damping:25,restSpeed:10},lS={type:"keyframes",duration:.8},l$={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},lC=new Set(["when","delay","delayChildren","staggerChildren","staggerDirection","repeat","repeatType","repeatDelay","from","elapsed"]),lE=(e,t,n,r={},i,o)=>a=>{let s=sR(r,e)||{},l=s.delay||r.delay||0,{elapsed:d=0}=r;d-=oZ(l);let u={keyframes:Array.isArray(n)?n:[null,n],ease:"easeOut",velocity:t.getVelocity(),...s,delay:-d,onUpdate:e=>{t.set(e),s.onUpdate&&s.onUpdate(e)},onComplete:()=>{a(),s.onComplete&&s.onComplete()},name:e,motionValue:t,element:o?void 0:i};!function(e){for(let t in e)if(!lC.has(t))return!0;return!1}(s)&&Object.assign(u,((e,{keyframes:t})=>t.length>2?lS:iE.has(e)?e.startsWith("scale")?{type:"spring",stiffness:550,damping:0===t[1]?2*Math.sqrt(550):30,restSpeed:10}:lk:l$)(e,u)),u.duration&&(u.duration=oZ(u.duration)),u.repeatDelay&&(u.repeatDelay=oZ(u.repeatDelay)),void 0!==u.from&&(u.keyframes[0]=u.from);let c=!1;if(!1!==u.type&&(0!==u.duration||u.repeatDelay)||(lb(u),0===u.delay&&(c=!0)),(oI.instantAnimations||oI.skipAnimations||i?.shouldSkipAnimations||s.skipAnimations)&&(c=!0,lb(u),u.delay=0),u.allowFlatten=!s.type&&!s.ease,c&&!o&&void 0!==t.get()){let e=o7(u.keyframes,s);if(void 0!==e)return void oO.update(()=>{u.onUpdate(e),u.onComplete()})}return s.isSync?new lf(u):new lw(u)},lR="u">typeof window;function lT(e,t,{delay:n=0,transitionOverride:r,type:i}={}){let{transition:o,transitionEnd:a,...s}=t,l=e.getDefaultTransition();o=o?sE(o,l):l;let d=o?.reduceMotion,u=o?.skipAnimations;r&&(o=r);let c=[],h=i&&e.animationState&&e.animationState.getState()[i],f=o?.path;for(let t in f&&f.animateVisualElement(e,s,o,n,c),s){let r=e.getValue(t,e.latestValues[t]??null),i=s[t];if(void 0===i||h&&function({protectedKeys:e,needsAnimating:t},n){let r=e.hasOwnProperty(n)&&!0!==t[n];return t[n]=!1,r}(h,t))continue;let a={delay:n,...sR(o||{},t)};u&&(a.skipAnimations=!0);let l=r.get();if(void 0!==l&&!r.isAnimating()&&!Array.isArray(i)&&i===l&&!a.velocity){oO.update(()=>r.set(i));continue}let f=!1;if(lR&&window.MotionHandoffAnimation){let n=e.props[sx];if(n){let e=window.MotionHandoffAnimation(n,t,oO);null!==e&&(a.startTime=e,f=!0)}}sA(e,t);let p=d??e.shouldReduceMotion;r.start(lE(t,r,i,p&&oo.has(t)?{type:!1}:a,e,f));let m=r.animation;m&&c.push(m)}if(a){let t=()=>oO.update(()=>{a&&function(e,t){let{transitionEnd:n={},transition:r={},...i}=sC(e,t)||{};for(let t in i={...i,...n}){var o;let n=sT(o=i[t])?o[o.length-1]||0:o;e.hasValue(t)?e.getValue(t).set(n):e.addValue(t,af(n))}}(e,a)});c.length?Promise.all(c).then(t):t()}return c}function lA(e,t,n,r=0,i=1){let o=Array.from(e).sort((e,t)=>
9e.sortNodePosition(t)).indexOf(t),a=e.size,s=(a-1)*r;return"function"==typeof n?n(o,a):1===i?o*r:s-o*r}function lP(e,t,n={}){let r=sC(e,t,"exit"===n.type?e.presenceContext?.custom:void 0),{transition:i=e.getDefaultTransition()||{}}=r||{};n.transitionOverride&&(i=n.transitionOverride);let o=r?()=>Promise.all(lT(e,r,n)):()=>Promise.resolve(),a=e.variantChildren&&e.variantChildren.size?(r=0)=>{let{delayChildren:o=0,staggerChildren:a,staggerDirection:s}=i;return function(e,t,n=0,r=0,i=0,o=1,a){let s=[];for(let l of e.variantChildren)l.notify("AnimationStart",t),s.push(lP(l,t,{...a,delay:n+("function"==typeof r?0:r)+lA(e.variantChildren,l,r,i,o)}).then(()=>l.notify("AnimationComplete",t)));return Promise.all(s)}(e,t,r,o,a,s,n)}:()=>Promise.resolve(),{when:s}=i;if(!s)return Promise.all([o(),a(n.delay)]);{let[e,t]="beforeChildren"===s?[o,a]:[a,o];return e().then(()=>t())}}let lj=av.length;function lM(e,t){if(!Array.isArray(t))return!1;let n=t.length;if(n!==e.length)return!1;for(let r=0;r<n;r++)if(t[r]!==e[r])return!1;return!0}let lI=[...ay].reverse(),l_=ay.length;function lz(e=!1){return{isActive:e,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function lO(){return{animate:lz(!0),whileInView:lz(),whileHover:lz(),whileTap:lz(),whileDrag:lz(),whileFocus:lz(),exit:lz()}}let lL=0;function lD(e){return[e("x"),e("y")]}function lV(e,t,n,r={passive:!0}){return e.addEventListener(t,n,r),()=>e.removeEventListener(t,n,r)}let lB={x:!1,y:!1};function lN(e){return e.max-e.min}function lF(e,t,n,r=.5){e.origin=r,e.originPoint=aG(t.min,t.max,e.origin),e.scale=lN(n)/lN(t),e.translate=aG(n.min,n.max,e.origin)-e.originPoint,(e.scale>=.9999&&e.scale<=1.0001||isNaN(e.scale))&&(e.scale=1),(e.translate>=-.01&&e.translate<=.01||isNaN(e.translate))&&(e.translate=0)}function lH(e,t,n,r){lF(e.x,t.x,n.x,r?r.originX:void 0),lF(e.y,t.y,n.y,r?r.originY:void 0)}function lW(e,t,n,r=0){e.min=(r?aG(n.min,n.max,r):n.min)+t.min,e.max=e.min+lN(t)}function lU(e,t,n,r=0){let i=r?aG(n.min,n.max,r):n.min;e.min=t.min-i,e.max=e.min+lN(t)}function lG(e,t,n,r){lU(e.x,t.x,n.x,r?.x),lU(e.y,t.y,n.y,r?.y)}function lX(e){return ih(e)&&"ownerSVGElement"in e}function lY(e,t,n){if(null==e)return[];if(e instanceof EventTarget)return[e];if("string"==typeof e){let r=document;t&&(r=t.current);let i=n?.[e]??r.querySelectorAll(e);return i?Array.from(i):[]}return Array.from(e).filter(e=>null!=e)}let lq=new WeakMap,lK=(e,t,n)=>(r,i)=>i&&i[0]?i[0][e+"Size"]:lX(r)&&"getBBox"in r?r.getBBox()[t]:r[n],lZ=lK("inline","width","offsetWidth"),lJ=lK("block","height","offsetHeight");function lQ({target:e,borderBoxSize:t}){lq.get(e)?.forEach(n=>{n(e,{get width(){return lZ(e,t)},get height(){return lJ(e,t)}})})}function l0(e){e.forEach(lQ)}let l1=new Set;function l2(e,t){let n;return"function"==typeof e?(l1.add(e),i||(i=()=>{let e={get width(){return window.innerWidth},get height(){return window.innerHeight}};l1.forEach(t=>t(e))},window.addEventListener("resize",i)),()=>{l1.delete(e),l1.size||"function"!=typeof i||(window.removeEventListener("resize",i),i=void 0)}):(!r&&"u">typeof ResizeObserver&&(r=new ResizeObserver(l0)),(n=lY(e)).forEac
9h(e=>{let n=lq.get(e);n||(n=new Set,lq.set(e,n)),n.add(t),r?.observe(e)}),()=>{n.forEach(e=>{let n=lq.get(e);n?.delete(t),n?.size||r?.unobserve(e)})})}let l3=new Set(["BUTTON","INPUT","SELECT","TEXTAREA","A"]),l5=new Set(["INPUT","SELECT","TEXTAREA"]),l4=e=>"mouse"===e.pointerType?"number"!=typeof e.button||e.button<=0:!1!==e.isPrimary;function l6(e){return{point:{x:e.pageX,y:e.pageY}}}function l7(e,t,n,r){return lV(e,t,e=>l4(e)&&n(e,l6(e)),r)}let l9=({current:e})=>e?e.ownerDocument.defaultView:null,l8=(e,t)=>Math.abs(e-t),de=new Set(["auto","scroll"]);class dt{constructor(e,t,{transformPagePoint:n,contextWindow:r=window,dragSnapToOrigin:i=!1,distanceThreshold:o=3,element:a}={}){if(this.startEvent=null,this.lastMoveEvent=null,this.lastMoveEventInfo=null,this.lastRawMoveEventInfo=null,this.handlers={},this.contextWindow=window,this.scrollPositions=new Map,this.removeScrollListeners=null,this.onElementScroll=e=>{this.handleScroll(e.target)},this.onWindowScroll=()=>{this.handleScroll(window)},this.updatePoint=()=>{var e,t;if(!(this.lastMoveEvent&&this.lastMoveEventInfo))return;this.lastRawMoveEventInfo&&(this.lastMoveEventInfo=dn(this.lastRawMoveEventInfo,this.transformPagePoint));let n=di(this.lastMoveEventInfo,this.history),r=null!==this.startEvent,i=(e=n.offset,t={x:0,y:0},Math.sqrt(l8(e.x,t.x)**2+l8(e.y,t.y)**2)>=this.distanceThreshold);if(!r&&!i)return;let{point:o}=n,{timestamp:a}=oD;this.history.push({...o,timestamp:a});let{onStart:s,onMove:l}=this.handlers;r||(s&&s(this.lastMoveEvent,n),this.startEvent=this.lastMoveEvent),l&&l(this.lastMoveEvent,n)},this.handlePointerMove=(e,t)=>{this.lastMoveEvent=e,this.lastRawMoveEventInfo=t,this.lastMoveEventInfo=dn(t,this.transformPagePoint),oO.update(this.updatePoint,!0)},this.handlePointerUp=(e,t)=>{this.end();let{onEnd:n,onSessionEnd:r,resumeAnimation:i}=this.handlers;if((this.dragSnapToOrigin||!this.startEvent)&&i&&i(),!(this.lastMoveEvent&&this.lastMoveEventInfo))return;let o=di("pointercancel"===e.type?this.lastMoveEventInfo:dn(t,this.transformPagePoint),this.history);this.startEvent&&n&&n(e,o),r&&r(e,o)},!l4(e))return;this.dragSnapToOrigin=i,this.handlers=t,this.transformPagePoint=n,this.distanceThreshold=o,this.contextWindow=r||window;const s=dn(l6(e),this.transformPagePoint),{point:l}=s,{timestamp:d}=oD;this.history=[{...l,timestamp:d}];const{onSessionStart:u}=t;u&&u(e,di(s,this.history));const c={passive:!0,capture:!0};this.removeListeners=sP(l7(this.contextWindow,"pointermove",this.handlePointerMove,c),l7(this.contextWindow,"pointerup",this.handlePointerUp,c),l7(this.contextWindow,"pointercancel",this.handlePointerUp,c)),a&&this.startScrollTracking(a)}startScrollTracking(e){let t=e.parentElement;for(;t;){let e=getComputedStyle(t);(de.has(e.overflowX)||de.has(e.overflowY))&&this.scrollPositions.set(t,{x:t.scrollLeft,y:t.scrollTop}),t=t.parentElement}this.scrollPositions.set(window,{x:window.scrollX,y:window.scrollY}),window.addEventListener("scroll",this.onElementScroll,{capture:!0}),window.addEventListener("scroll",this.onWindowScroll),this.removeScrollListeners=()=>{window.removeEventListener("scroll",this.onElementScroll,{capture:!0}),window.removeEventListener("scroll",this.onWindowScroll)}}handleScroll(e){let t=this.scrollPositions.get(e);if(!t)return;let n=e===window,r=n?{x:window.scrollX,y:window.scrollY}:{x:e.scrollLeft,y:e.scrollTop},i={x:r.x-t.x,y:r.y-t.y};(0!==i.x||0!==i.y)&&(n?this.lastMoveEventInfo&&(this.lastMoveEventInfo.point.x+=i.x,this.lastMoveEventInfo.point.y+=i.y):this.history.length>0&&(this.history[0].x-=i.x,this.history[0].y-=i.y),this.scrollPositions.set(e,r),oO.update(this.updatePoint,!0))}updateHandlers(e){this.handlers=e}end(){this.removeListeners&&this.removeListeners(),this.removeScrollListeners&&this.removeScrollListeners(),this.scrollPositions.clear(),oL(this.updatePoint)}}function dn(e,t){return t?{point:t(e.point)}:e}function dr(e,t){return{x:e.x-t.x,y:e.y-t.y}}function di({point:e},t){return{point:e,delta:dr(e,da(t)),offset:dr(e,t[0]),velocity:function(e){if(e.length<2)return{x:0,y:0};let t=e.length-1,n=null,r=da(e);for(;t>=0&&(n=e[t],!(r.timestamp-n.timestamp>oZ(.1)));)t--;if(!n)return{x:0,y:0};n===e[0]&&e.length>2&&r.timestamp-n.timestamp>
92*oZ(.1)&&(n=e[1]);let i=(r.timestamp-n.timestamp)/1e3;if(0===i)return{x:0,y:0};let o={x:(r.x-n.x)/i,y:(r.y-n.y)/i};return o.x===1/0&&(o.x=0),o.y===1/0&&(o.y=0),o}(t)}}function da(e){return e[e.length-1]}function ds(e,t,n){return{min:void 0!==t?e.min+t:void 0,max:void 0!==n?e.max+n-(e.max-e.min):void 0}}function dl(e,t){let n=t.min-e.min,r=t.max-e.max;return t.max-t.min<e.max-e.min&&([n,r]=[r,n]),{min:n,max:r}}function dd(e,t,n){return{min:du(e,t),max:du(e,n)}}function du(e,t){return"number"==typeof e?e:e[t]||0}let dc=new WeakMap;class dh{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=or(),this.latestPointerEvent=null,this.latestPanInfo=null,this.visualElement=e}start(e,{snapToCursor:t=!1,distanceThreshold:n}={}){let{presenceContext:r}=this.visualElement;if(r&&!1===r.isPresent)return;let i=e=>{t&&this.snapToCursor(l6(e).point),this.stopAnimation()},o=(e,t)=>{let{drag:n,dragPropagation:r,onDragStart:i}=this.getProps();if(n&&!r&&(this.openDragLock&&this.openDragLock(),this.openDragLock=function(e){if("x"===e||"y"===e)if(lB[e])return null;else return lB[e]=!0,()=>{lB[e]=!1};return lB.x||lB.y?null:(lB.x=lB.y=!0,()=>{lB.x=lB.y=!1})}(n),!this.openDragLock))return;this.latestPointerEvent=e,this.latestPanInfo=t,this.isDragging=!0,this.currentDirection=null,this.resolveConstraints(),this.visualElement.projection&&(this.visualElement.projection.isAnimationBlocked=!0,this.visualElement.projection.target=void 0),lD(e=>{let t=this.getAxisMotionValue(e).get()||0;if(iN.test(t)){let{projection:n}=this.visualElement;if(n&&n.layout){let r=n.layout.layoutBox[e];r&&(t=lN(r)*(parseFloat(t)/100))}}this.originPoint[e]=t}),i&&oO.update(()=>i(e,t),!1,!0),sA(this.visualElement,"transform");let{animationState:o}=this.visualElement;o&&o.setActive("whileDrag",!0)},a=(e,t)=>{this.latestPointerEvent=e,this.latestPanInfo=t;let{dragPropagation:n,dragDirectionLock:r,onDirectionLock:i,onDrag:o}=this.getProps();if(!n&&!this.openDragLock)return;let{offset:a}=t;if(r&&null===this.currentDirection){this.currentDirection=function(e,t=10){let n=null;return Math.abs(e.y)>t?n="y":Math.abs(e.x)>t&&(n="x"),n}(a),null!==this.currentDirection&&i&&i(this.currentDirection);return}this.updateAxis("x",t.point,a),this.updateAxis("y",t.point,a),this.visualElement.render(),o&&oO.update(()=>o(e,t),!1,!0)},s=(e,t)=>{this.latestPointerEvent=e,this.latestPanInfo=t,this.stop(e,t),this.latestPointerEvent=null,this.latestPanInfo=null},l=()=>{let{dragSnapToOrigin:e}=this.getProps();(e||this.constraints)&&this.startAnimation({x:0,y:0})},{dragSnapToOrigin:d}=this.getProps();this.panSession=new dt(e,{onSessionStart:i,onStart:o,onMove:a,onSessionEnd:s,resumeAnimation:l},{transformPagePoint:this.visualElement.getTransformPagePoint(),dragSnapToOrigin:d,distanceThreshold:n,contextWindow:l9(this.visualElement),element:this.visualElement.current})}stop(e,t){let n=e||this.latestPointerEvent,r=t||this.latestPanInfo,i=this.isDragging;if(this.cancel(),!i||!r||!n)return;let{velocity:o}=r;this.startAnimation(o);let{onDragEnd:a}=this.getProps();a&&oO.postRender(()=>a(n,r))}cancel(){this.isDragging=!1;let{projection:e,animationState:t}=this.visualElement;e&&(e.isAnimationBlocked=!1),this.endPanSession();let{dragPropagation:n}=this.getProps();!n&&this.openDragLock&&(this.openDragLock(),this.openDragLock=null),t&&t.setActive("whileDrag",!1)}endPanSession(){this.panSession&&this.panSession.end(),this.panSession=void 0}updateAxis(e,t,n){let{drag:r}=this.getProps();if(!n||!dp(e,r,this.currentDirection))return;let i=this.getAxisMotionValue(e),o=this.originPoint[e]+n[e];this.constraints&&this.constraints[e]&&(o=function(e,{min:t,max:n},r){return void 0!==t&&e<t?e=r?aG(t,e,r.min):Math.max(e,t):void 0!==n&&e>n&&(e=r?aG(n,e,r.max):Math.min(e,n)),e}(o,this.constraints[e],this.elastic[e])),i.set(o)}resolveConstraints(){let{dragConstraints:e,dragElastic:t}=this.getProps(),n=this.visualElement.projection&&!this.visualElement.projection.layout?this.visualElement.projection.measure(!1):this.visualElement.projection?.layout,r=this.constraints;e&&sk(e)?this.constraints||(this.constraints=this.resolveRefConstraints()):e&&n?this.constraints=function(e,{top:t,left:n,bottom:r,right:i}){return{x:ds(e.x,n,i),y:ds(e.y,t,r)}}(n.layoutBox,e):this.constraints=!1,this.elastic=function(e=.35){return!1===e?e=0:!0===e&&(e=.35),{x:dd(e,"left","right"),y:dd(e,"top","bottom")}}(t),r!==this.constraints&&!sk(e)&&n&&this.constraints&&!this.hasMutatedConstraints&&lD(e=>{var t,r;let i;!1!==this.constraints&&this.getAxisMotionValue(e)&&(this.constraints[e]=(t=n.layoutBox[e],r=this.constraints[e],i={},void 0!==r.min&&(i.min=r.min-t.min),void 0!==r.max&&(i.max=r.max-t.min),i))})}resolveRefConstraints(){var e;let{dragConstraints:t,onMeasureDragConstraints:n}=this.getProps();if(!t||!sk(t))return!1;let r=t.current;ou();let{projection:i}=this.visualElement;if(!i||!i.layout)return!1;i.root&&(i.root.scroll=void 0,i.root.updateScroll());let o=function(e,t,n){let r=se(e,n),{scroll:i}=t;return i&&(a6(r.x,i.offset.x),a6(r.y,i.offset.y)),r}(r,i.root,this.visualElement.getTransformPagePoint()),a=(e=i.layout.layoutBox,{x:dl(e.x,o.x),y:dl(e.y,o.y)});if(n){let e=n(function({x:e,y:t}){return{top:t.min,right:e.max,bottom:t.max,left:e.min}}(a));this.hasMutatedConstraints=!!e,e&&(a=aJ(e))}return a}startAnimation(e){let{drag:t,dragMomentum:n,dragElastic:r,dragTransition:i,dragSnapToOrigin:o,onDragTransitionEnd:a}=this.getProps(),s=this.constraints||{};return Promise.all(lD(a=>
9{if(!dp(a,t,this.currentDirection))return;let l=s&&s[a]||{};(!0===o||o===a)&&(l={min:0,max:0});let d={type:"inertia",velocity:n?e[a]:0,bounceStiffness:r?200:1e6,bounceDamping:r?40:1e7,timeConstant:750,restDelta:1,restSpeed:10,...i,...l};return this.startAxisValueAnimation(a,d)})).then(a)}startAxisValueAnimation(e,t){let n=this.getAxisMotionValue(e);return sA(this.visualElement,e),n.start(lE(e,n,0,t,this.visualElement,!1))}stopAnimation(){lD(e=>this.getAxisMotionValue(e).stop())}getAxisMotionValue(e){let t=`_drag${e.toUpperCase()}`;return this.visualElement.getProps()[t]||this.visualElement.getValue(e,this.visualElement.latestValues[e]??0)}snapToCursor(e){lD(t=>{let{drag:n}=this.getProps();if(!dp(t,n,this.currentDirection))return;let{projection:r}=this.visualElement,i=this.getAxisMotionValue(t);if(r&&r.layout){let{min:n,max:o}=r.layout.layoutBox[t],a=i.get()||0;i.set(e[t]-aG(n,o,.5)+a)}})}scalePositionWithinConstraints(){if(!this.visualElement.current)return;let{drag:e,dragConstraints:t}=this.getProps(),{projection:n}=this.visualElement;if(!sk(t)||!n||!this.constraints)return;this.stopAnimation();let r={x:0,y:0};lD(e=>{let t=this.getAxisMotionValue(e);if(t&&!1!==this.constraints){var n,i;let o,a,s,l=t.get();r[e]=(n={min:l,max:l},i=this.constraints[e],o=.5,a=lN(n),(s=lN(i))>a?o=ll(i.min,i.max-a,n.min):a>s&&(o=ll(n.min,n.max-s,i.min)),iR(0,1,o))}});let{transformTemplate:i}=this.visualElement.getProps();this.visualElement.current.style.transform=i?i({},""):"none",n.root&&n.root.updateScroll(),n.updateLayout(),this.constraints=!1,this.resolveConstraints(),lD(t=>{if(!dp(t,e,null))return;let n=this.getAxisMotionValue(t),{min:i,max:o}=this.constraints[t];n.set(aG(i,o,r[t]))}),this.visualElement.render()}addListeners(){let e;if(!this.visualElement.current)return;dc.set(this.visualElement,this);let t=this.visualElement.current,n=l7(t,"pointerdown",e=>{let{drag:n,dragListener:r=!0}=this.getProps(),i=e.target,o=i!==t&&(l5.has(i.tagName)||!0===i.isContentEditable);n&&r&&!o&&this.start(e)}),r=()=>{var n,r,i;let o,a,{dragConstraints:s}=this.getProps();sk(s)&&s.current&&(this.constraints=this.resolveRefConstraints(),e||(n=t,r=s.current,o=l2(n,df(i=()=>this.scalePositionWithinConstraints())),a=l2(r,df(i)),e=()=>{o(),a()}))},{projection:i}=this.visualElement,o=i.addEventListener("measure",r);i&&!i.layout&&(i.root&&i.root.updateScroll(),i.updateLayout()),oO.read(r);let a=lV(window,"resize",()=>this.scalePositionWithinConstraints()),s=i.addEventListener("didUpdate",({delta:e,hasLayoutChanged:t})=>{this.isDragging&&t&&(lD(t=>{let n=this.getAxisMotionValue(t);n&&(this.originPoint[t]+=e[t].translate,n.set(n.get()+e[t].translate))}),this.visualElement.render())});return()=>{a(),n(),o(),s&&s(),e&&e()}}getProps(){let e=this.visualElement.getProps(),{drag:t=!1,dragDirectionLock:n=!1,dragPropagation:r=!1,dragConstraints:i=!1,dragElastic:o=.35,dragMomentum:a=!0}=e;return{...e,drag:t,dragDirectionLock:n,dragPropagation:r,dragConstraints:i,dragElastic:o,dragMomentum:a}}}function df(e){let t=!0;return()=>{if(t){t=!1;return}e()}}function dp(e,t,n){return(!0===t||t===e)&&(null===n||n===e)}let dm=e=>(t,n)=>{e&&oO.update(()=>e(t,n),!1,!0)},dg={hasAnimatedSinceResize:!0,hasEverUpdated:!1};var db=eZ;let dy=!1;class dv extends db.Component{componentDidMount(){let{visualElement:e,layoutGroup:t,switchLayoutGroup:n,layoutId:r}=this.props,{projection:i}=e;i&&(t.group&&t.group.add(i),n&&n.register&&r&&n.register(i),dy&&i.root.didUpdate(),i.addEventListener("animationComplete",()=>{this.safeToRemove()}),i.setOptions({...i.options,layoutDependency:this.props.layoutDependency,onExitComplete:()=>this.safeToRemove()})),dg.hasEverUpdated=!0}getSnapshotBeforeUpdate(e){let{layoutDependency:t,visualElement:n,drag:r,isPresent:i}=this.props,{projection:o}=n;return o&&(o.isPresent=i,e.layoutDependency!==t&&o.setOptions({...o.options,layoutDependency:t}),dy=!0,r||e.layoutDependency!==t||void 0===t||e.isPresent!==i?o.willUpdate():this.safeToRemove(),e.isPresent!==i&&(i?o.promote():o.relegate()||oO.postRender(()=>{let e=o.getStack();e&&e.members.length||this.safeToRemove()}))),null}componentDidUpdate(){let{visualElement:e,layoutAnchor:t}=this.props,{projection:n}=e;n&&(n.options.layoutAnchor=t,n.root.didUpdate(),as.postRender(()=>{!n.currentAnimation&&n.isLead()&&this.safeToRemove()}))}componentWillUnmount(){let{visualElement:e,layoutGroup:t,switchLayoutGroup:n}=this.props,{projection:r}=e;dy=!0,r&&(r.scheduleCheckAfterUnmount(),t&&t.group&&t.group.remove(r),n&&n.deregister&&n.deregister(r))}safeToRemove(){let{safeToRemove:e}=this.props;e&&e()}render(){return null}}function dx(e){let[t,n]=ik(),r=(0,db.useContext)(il);return(0,nQ.jsx)(dv,{...e,layoutGroup:r,switchLayoutGroup:(0,db.useContext)(sw),isPresent:t,safeToRemove:n})}let dw=aH.length,dk=e=>"string"==typeof e?parseFloat(e):e,dS=e=>"number"==typeof e||iF.test(e);function d$(e,t){return void 0!==e[t]?e[t]:e.borderRadius}let dC=dR(0,.5,li),dE=dR(.5,.95,oM);
9function dR(e,t,n){return r=>r<e?0:r>t?1:n(ll(e,t,r))}function dT(e,t){e.min=t.min,e.max=t.max}function dA(e,t){dT(e.x,t.x),dT(e.y,t.y)}function dP(e,t){e.translate=t.translate,e.scale=t.scale,e.originPoint=t.originPoint,e.origin=t.origin}function dj(e,t,n,r,i){return e-=t,e=r+1/n*(e-r),void 0!==i&&(e=r+1/i*(e-r)),e}function dM(e,t,[n,r,i],o,a){!function(e,t=0,n=1,r=.5,i,o=e,a=e){if(iN.test(t)&&(t=parseFloat(t),t=aG(a.min,a.max,t/100)-a.min),"number"!=typeof t)return;let s=aG(o.min,o.max,r);e===o&&(s-=t),e.min=dj(e.min,t,n,s,i),e.max=dj(e.max,t,n,s,i)}(e,t[n],t[r],t[i],t.scale,o,a)}let dI=["x","scaleX","originX"],d_=["y","scaleY","originY"];function dz(e,t,n,r){dM(e.x,t,dI,n?n.x:void 0,r?r.x:void 0),dM(e.y,t,d_,n?n.y:void 0,r?r.y:void 0)}function dO(e){return 0===e.translate&&1===e.scale}function dL(e){return dO(e.x)&&dO(e.y)}function dD(e,t){return e.min===t.min&&e.max===t.max}function dV(e,t){return Math.round(e.min)===Math.round(t.min)&&Math.round(e.max)===Math.round(t.max)}function dB(e,t){return dV(e.x,t.x)&&dV(e.y,t.y)}function dN(e){return lN(e.x)/lN(e.y)}function dF(e,t){return e.translate===t.translate&&e.scale===t.scale&&e.originPoint===t.originPoint}class dH{constructor(){this.members=[]}add(e){oJ(this.members,e);for(let t=this.members.length-1;t>=0;t--){let n=this.members[t];if(n===e||n===this.lead||n===this.prevLead)continue;let r=n.instance;r&&!1!==r.isConnected||n.snapshot||(oQ(this.members,n),n.unmount())}e.scheduleRender()}remove(e){if(oQ(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){for(let t=this.members.indexOf(e)-1;t>=0;t--){let e=this.members[t];if(!1!==e.isPresent&&e.instance?.isConnected!==!1)return this.promote(e),!0}return!1}promote(e,t){let n=this.lead;if(e!==n&&(this.prevLead=n,this.lead=e,e.show(),n)){n.updateSnapshot(),e.scheduleRender();let{layoutDependency:r}=n.options,{layoutDependency:i}=e.options;(void 0===r||r!==i)&&(e.resumeFrom=n,t&&(n.preserveOpacity=!0),n.snapshot&&(e.snapshot=n.snapshot,e.snapshot.latestValues=n.animationValues||n.latestValues),e.root?.isUpdating&&(e.isLayoutDirty=!0)),!1===e.options.crossfade&&n.hide()}}exitAnimationComplete(){this.members.forEach(e=>{e.options.onExitComplete?.(),e.resumingFrom?.options.onExitComplete?.()})}scheduleRender(){this.members.forEach(e=>e.instance&&e.scheduleRender(!1))}removeLeadSnapshot(){this.lead?.snapshot&&(this.lead.snapshot=void 0)}}let dW=(e,t)=>e.depth-t.depth;class dU{constructor(){this.children=[],this.isDirty=!1}add(e){oJ(this.children,e),this.isDirty=!0}remove(e){oQ(this.children,e),this.isDirty=!0}forEach(e){this.isDirty&&this.children.sort(dW),this.isDirty=!1,this.children.forEach(e)}}let dG=["","X","Y","Z"],dX=0;function dY(e,t,n,r){let{latestValues:i}=t;i[e]&&(n[e]=i[e],t.setStaticValue(e,0),r&&(r[e]=0))}function dq({attachResizeListener:e,defaultParent:t,measureScroll:n,checkIsScrollRoot:r,resetTransform:i}){return class{constructor(e={},n=t?.()){this.id=dX++,this.animationId=0,this.animationCommitId=0,this.children=new Set,this.options={},this.isTreeAnimating=!1,this.isAnimationBlocked=!1,this.isLayoutDirty=!1,this.isProjectionDirty=!1,this.isSharedProjectionDirty=!1,this.isTransformDirty=!1,this.updateManuallyBlocked=!1,this.updateBlockedByResize=!1,this.isUpdating=!1,this.isSVG=!1,this.needsReset=!1,this.shouldResetTransform=!1,this.hasCheckedOptimisedAppear=!1,this.treeScale={x:1,y:1},this.eventHandlers=new Map,this.hasTreeAnimated=!1,this.layoutVersion=0,this.updateScheduled=!1,this.scheduleUpdate=()=>this.update(),this.projectionUpdateScheduled=!1,this.checkUpdateFailed=()=>{this.isUpdating&&(this.isUpdating=!1,this.clearAllSnapshots())},this.updateProjection=()=>{this.projectionUpdateScheduled=!1,this.nodes.forEach(dJ),this.nodes.forEach(d7),this.nodes.forEach(d9),this.nodes.forEach(dQ)},this.resolvedRelativeTargetAt=0,this.linkedParentVersion=0,this.hasProjected=!1,this.isVisible=!0,this.animationProgress=0,this.sharedNodes=new Map,this.latestValues=e,this.root=n?n.root||n:this,this.path=n?[...n.path,n]:[],this.parent=n,this.depth=n?n.depth+1:0;for(let e=0;e<this.path.length;e++)this.path[e].shouldResetTransform=!0;this.root===this&&(this.nodes=new dU)}addEventListener(e,t){return this.eventHandlers.has(e)||this.eventHandlers.set(e,new o0),this.eventHandlers.get(e).add(t)}notifyListeners(e,...t){let n=this.eventHandlers.get(e);n&&n.notify(...t)}hasListeners(e){return this.eventHandlers.has(e)}mount(t){if(this.instance)return;this.isSVG=lX(t)&&!(lX(t)&&"svg"===t.tagName),this.instance=t;let{layoutId:n,layout:r,visualElement:i}=this.options;if(i&&!i.current&&i.mount(t),this.root.nodes.add(this),this.parent&&this.parent.children.add(this),this.root.hasTreeAnimated&&(r||n)&&(this.isLayoutDirty=!0),e){let n,r=0,i=()=>this.root.updateBlockedByResize=!1;oO.read(()=>{r=window.innerWidth}),e(t,()=>{let e=window.innerWidth;if(e!==r){let t,o;r=e,this.root.updateBlockedByResize=!0,n&&n(),t=ad.now(),o=({timestamp:e})=>{let n=e-t;n>=250&&(oL(o),i())},oO.setup(o,!0),n=()=>oL(o),dg.hasAnimatedSinceResize&&(dg.hasAnimatedSinceResize=!1,this.nodes.forEac
9h(d6))}})}n&&this.root.registerSharedNode(n,this),!1!==this.options.animate&&i&&(n||r)&&this.addEventListener("didUpdate",({delta:e,hasLayoutChanged:t,hasRelativeLayoutChanged:n,layout:r})=>{if(this.isTreeAnimationBlocked()){this.target=void 0,this.relativeTarget=void 0;return}let o=this.options.transition||i.getDefaultTransition()||ui,{onLayoutAnimationStart:a,onLayoutAnimationComplete:s}=i.getProps(),l=!this.targetLayout||!dB(this.targetLayout,r),d=!t&&n;if(this.options.layoutRoot||this.resumeFrom||d||t&&(l||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0);let t={...sR(o,"layout"),onPlay:a,onComplete:s};(i.shouldReduceMotion||this.options.layoutRoot)&&(t.delay=0,t.type=!1),this.startAnimation(t),this.setAnimationOrigin(e,d,t.path)}else t||d6(this),this.isLead()&&this.options.onExitComplete&&this.options.onExitComplete();this.targetLayout=r})}unmount(){this.options.layoutId&&this.willUpdate(),this.root.nodes.remove(this);let e=this.getStack();e&&e.remove(this),this.parent&&this.parent.children.delete(this),this.instance=void 0,this.eventHandlers.clear(),oL(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(d8),this.animationId++)}getTransformTemplate(){let{visualElement:e}=this.options;return e&&e.getProps().transformTemplate}willUpdate(e=!0){if(this.root.hasTreeAnimated=!0,this.root.isUpdateBlocked()){this.options.onExitComplete&&this.options.onExitComplete();return}if(window.MotionCancelOptimisedAnimation&&!this.hasCheckedOptimisedAppear&&function e(t){if(t.hasCheckedOptimisedAppear=!0,t.root===t)return;let{visualElement:n}=t.options;if(!n)return;let r=n.props[sx];if(window.MotionHasOptimisedAnimation(r,"transform")){let{layout:e,layoutId:n}=t.options;window.MotionCancelOptimisedAnimation(r,"transform",oO,!(e||n))}let{parent:i}=t;i&&!i.hasCheckedOptimisedAppear&&e(i)}(this),this.root.isUpdating||this.root.startUpdate(),this.isLayoutDirty)return;this.isLayoutDirty=!0;for(let e=0;e<this.path.length;e++){let t=this.path[e];t.shouldResetTransform=!0,("string"==typeof t.latestValues.x||"string"==typeof t.latestValues.y)&&(t.isLayoutDirty=!0),t.updateScroll("snapshot"),t.options.layoutRoot&&t.willUpdate(!1)}let{layoutId:t,layout:n}=this.options;if(void 0===t&&!n)return;let r=this.getTransformTemplate();this.prevTransformTemplateValue=r?r(this.latestValues,""):void 0,this.updateSnapshot(),e&&this.notifyListeners("willUpdate")}update(){if(this.updateScheduled=!1,this.isUpdateBlocked()){let e=this.updateBlockedByResize;this.unblockUpdate(),this.updateBlockedByResize=!1,this.clearAllSnapshots(),e&&this.nodes.forEach(d2),this.nodes.forEach(d1);return}if(this.animationId<=this.animationCommitId)return void this.nodes.forEach(d3);this.animationCommitId=this.animationId,this.isUpdating?(this.isUpdating=!1,this.nodes.forEach(d5),this.nodes.forEach(d4),this.nodes.forEach(dK),this.nodes.forEach(dZ)):this.nodes.forEach(d3),this.clearAllSnapshots();let e=ad.now();oD.delta=iR(0,1e3/60,e-oD.timestamp),oD.timestamp=e,oD.isProcessing=!0,oV.update.process(oD),oV.preRender.process(oD),oV.render.process(oD),oD.isProcessing=!1}didUpdate(){this.updateScheduled||(this.updateScheduled=!0,as.read(this.scheduleUpdate))}clearAllSnapshots(){this.nodes.forEach(d0),this.sharedNodes.forEach(ue)}scheduleUpdateProjection(){this.projectionUpdateScheduled||(this.projectionUpdateScheduled=!0,oO.preRender(this.updateProjection,!1,!0))}scheduleCheckAfterUnmount(){oO.postRender(()=>{this.isLayoutDirty?this.root.didUpdate():this.root.checkUpdateFailed()})}updateSnapshot(){!this.snapshot&&this.instance&&(this.snapshot=this.measure(),!this.snapshot||lN(this.snapshot.measuredBox.x)||lN(this.snapshot.measuredBox.y)||(this.snapshot=void 0))}updateLayout(){if(!this.instance||(this.updateScroll(),!(this.options.alwaysMeasureLayout&&this.isLead())&&!this.isLayoutDirty))return;if(this.resumeFrom&&!this.resumeFrom.instance)for(let e=0;e<this.path.length;e++)this.path[e].updateScroll();let e=this.layout;this.layout=this.measure(!1),this.layoutVersion++,this.layoutCorrected||(this.layoutCorrected=or()),this.isLayoutDirty=!1,this.projectionDelta=void 0,this.notifyListeners("measure",this.layout.layoutBox);let{visualElement:t}=this.options;t&&t.notify("LayoutMeasure",this.layout.layoutBox,e?e.layoutBox:void 0)}updateScroll(e="measure"){let t=!!(this.options.layoutScroll&&this.instance);if(this.scroll&&this.scroll.animationId===this.root.animationId&&this.scroll.phase===e&&(t=!1),t&&this.instance){let t=r(this.instance);this.scroll={animationId:this.root.animationId,phase:e,isRoot:t,offset:n(this.instance),wasRoot:this.scroll?this.scroll.isRoot:t}}}resetTransform(){if(!i)return;let e=this.isLayoutDirty||this.shouldResetTransform||this.options.alwaysMeasureLayout,t=this.projectionDelta&&!dL(this.projectionDelta),n=this.getTransformTemplate(),r=n?n(this.latestValues,""):void 0,o=r!==this.prevTransformTemplateValue;e&&this.instance&&(t||a1(this.latestValues)||o)&&(i(this.instance,r),this.shouldResetTransform=!1,this.scheduleRender())}measure(e=!0){var t;let n=this.measurePageBox(),r=this.removeElementScroll(n);return e&&(r=this.removeTransform(r)),us((t=r).x),us(t.y),{animationId:this.root.animationId,measuredBox:n,layoutBox:r,latestValues:{},source:this.id}}measurePageBox(){let{visualElement:e}=this.options;if(!e)return or();let t=e.measureViewportBox();if(!(this.scroll?.wasRoot||this.path.some(ud))){let{scroll:e}=this.root;e&&(a6(t.x,e.offset.x),a6(t.y,e.offset.y))}return t}removeElementScroll(e){let t=or();if(dA(t,e),this.scroll?.wasRoot)return t;for(let n=0;n<this.path.length;n++){let r=this.path[n],{scroll:i,options:o}=r;r!==this.root&&i&&o.layoutScroll&&(i.wasRoot&&dA(t,e),a6(t.x,i.offset.x),a6(t.y,i.offset.y))}return t}applyTransform(e,t=!1,n){let r=n||or();dA(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&&(a6(r.x,-n.scroll.offset.x),a6(r.y,-n.scroll.offset.y)),a1(n.latestValues)&&a8(r,n.latestValues,n.layout?.layoutBox)}return a1(this.latestValues)&&a8(r,this.latestValues,this.layout?.layoutBox),r}removeTransform(e){let t=or();dA(t,e);for(let e=0;e<this.path.length;e++){let n,r=this.path[e];a1(r.latestValues)&&(r.instance&&(a0(r.latestValues)&&r.updateSnapshot(),dA(n=or(),r.measurePageBox())),dz(t,r.latestValues,r.snapshot?.layoutBox,n))}return a1(this.latestValues)&&dz(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!==oD.timestamp&&this.relativeParent.resolveTargetDelta(!0)}resolveTargetDelta(e=!1){let t=this.getLead();this.isProjectionDirty||(this.isProjectionDirty=t.isProjectionDirty),this.isTransformDirty||(this.isTransformDirty=t.
9isTransformDirty),this.isSharedProjectionDirty||(this.isSharedProjectionDirty=t.isSharedProjectionDirty);let n=!!this.resumingFrom||this!==t;if(!(e||n&&this.isSharedProjectionDirty||this.isProjectionDirty||this.parent?.isProjectionDirty||this.attemptToResolveRelativeTarget||this.root.updateBlockedByResize))return;let{layout:r,layoutId:i}=this.options;if(!this.layout||!(r||i))return;this.resolvedRelativeTargetAt=oD.timestamp;let o=this.getClosestProjectingParent();if(o&&this.linkedParentVersion!==o.layoutVersion&&!o.options.layoutRoot&&this.removeRelativeTarget(),this.targetDelta||this.relativeTarget||(!1!==this.options.layoutAnchor&&o&&o.layout?this.createRelativeTarget(o,this.layout.layoutBox,o.layout.layoutBox):this.removeRelativeTarget()),this.relativeTarget||this.targetDelta){if(this.target||(this.target=or(),this.targetWithTransforms=or()),this.relativeTarget&&this.relativeTargetOrigin&&this.relativeParent&&this.relativeParent.target){var a,s,l,d;this.forceRelativeParentToResolveTarget(),a=this.target,s=this.relativeTarget,l=this.relativeParent.target,d=this.options.layoutAnchor||void 0,lW(a.x,s.x,l.x,d?.x),lW(a.y,s.y,l.y,d?.y)}else this.targetDelta?(this.resumingFrom?this.applyTransform(this.layout.layoutBox,!1,this.target):dA(this.target,this.layout.layoutBox),a4(this.target,this.targetDelta)):dA(this.target,this.layout.layoutBox);this.attemptToResolveRelativeTarget&&(this.attemptToResolveRelativeTarget=!1,!1!==this.options.layoutAnchor&&o&&!!o.resumingFrom==!!this.resumingFrom&&!o.options.layoutScroll&&o.target&&1!==this.animationProgress?this.createRelativeTarget(o,this.target,o.target):this.relativeParent=this.relativeTarget=void 0)}}getClosestProjectingParent(){if(!(!this.parent||a0(this.parent.latestValues)||a2(this.parent.latestValues)))if(this.parent.isProjecting())return this.parent;else return this.parent.getClosestProjectingParent()}isProjecting(){return!!((this.relativeTarget||this.targetDelta||this.options.layoutRoot)&&this.layout)}createRelativeTarget(e,t,n){this.relativeParent=e,this.linkedParentVersion=e.layoutVersion,this.forceRelativeParentToResolveTarget(),this.relativeTarget=or(),this.relativeTargetOrigin=or(),lG(this.relativeTargetOrigin,t,n,this.options.layoutAnchor||void 0),dA(this.relativeTarget,this.relativeTargetOrigin)}removeRelativeTarget(){this.relativeParent=this.relativeTarget=void 0}calcProjection(){let e=this.getLead(),t=!!this.resumingFrom||this!==e,n=!0;if((this.isProjectionDirty||this.parent?.isProjectionDirty)&&(n=!1),t&&(this.isSharedProjectionDirty||this.isTransformDirty)&&(n=!1),this.resolvedRelativeTargetAt===oD.timestamp&&(n=!1),n)return;let{layout:r,layoutId:i}=this.options;if(this.isTreeAnimating=!!(this.parent&&this.parent.isTreeAnimating||this.currentAnimation||this.pendingAnimation),this.isTreeAnimating||(this.targetDelta=this.relativeTarget=void 0),!this.layout||!(r||i))return;dA(this.layoutCorrected,this.layout.layoutBox);let o=this.treeScale.x,a=this.treeScale.y;!function(e,t,n,r=!1){let i,o,a=n.length;if(a){t.x=t.y=1;for(let s=0;s<a;s++){o=(i=n[s]).projectionDelta;let{visualElement:a}=i.options;(!a||!a.props.style||"contents"!==a.props.style.display)&&(r&&i.options.layoutScroll&&i.scroll&&i!==i.root&&(a6(e.x,-i.scroll.offset.x),a6(e.y,-i.scroll.offset.y)),o&&(t.x*=o.x.scale,t.y*=o.y.scale,a4(e,o)),r&&a1(i.latestValues)&&a8(e,i.latestValues,i.layout?.layoutBox))}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=or());let{target:s}=e;if(!s){this.prevProjectionDelta&&(this.createProjectionDeltas(),this.scheduleRender());return}this.projectionDelta&&this.prevProjectionDelta?(dP(this.prevProjectionDelta.x,this.projectionDelta.x),dP(this.prevProjectionDelta.y,this.projectionDelta.y)):this.createProjectionDeltas(),lH(this.projectionDelta,this.layoutCorrected,s,this.latestValues),this.treeScale.x===o&&this.treeScale.y===a&&dF(this.projectionDelta.x,this.prevProjectionDelta.x)&&dF(this.projectionDelta.y,this.prevProjectionDelta.y)||(this.hasProjected=!0,this.scheduleRender(),this.notifyListeners("projectionUpdate",s))}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=ot(),this.projectionDelta=ot(),this.projectionDeltaWithTransform=ot()}setAnimationOrigin(e,t=!1,n){let r,i=this.snapshot,o=i?i.latestValues:{},a={...this.latestValues},s=ot();this.relativeParent&&this.relativeParent.options.layoutRoot||(this.relativeTarget=this.relativeTargetOrigin=void 0),this.attemptToResolveRelativeTarget=!t;let l=or(),d=(i?i.source:void 0)!==(this.layout?this.layout.source:void 0),u=this.getStack(),c=!u||u.members.length<=1,h=!!(d&&!c&&!0===this.options.crossfade&&!this.path.some(ur));this.animationProgress=0;let f=n?.interpolateProjection(e);this.mixTargetDelta=t=>{let n=t/1e3,i=f?.(n);if(i?(s.x.translate=i.x,s.x.scale=aG(e.x.scale,1,n),s.x.origin=e.x.origin,s.x.originPoint=e.x.originPoint,s.y.translate=i.y,s.y.scale=aG(e.y.scale,1,n),s.y.origin=e.y.origin,s.y.originPoint=e.y.originPoint):(ut(s.x,e.x,n),ut(s.y,e.y,n)),this.setTargetDelta(s),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout){var u,p,m,g,b,y;lG(l,this.layout.layoutBox,this.relativeParent.layout.layoutBox,this.options.layoutAnchor||void 0),m=this.relativeTarget,g=this.relativeTargetOrigin,b=l,y=n,un(m.x,g.x,b.x,y),un(m.y,g.y,b.y,y),r&&(u=this.relativeTarget,p=r,dD(u.x,p.x)&&dD(u.y,p.y))&&(this.isProjectionDirty=!1),r||(r=or()),dA(r,this.relativeTarget)}d&&(this.animationValues=a,function(e,t,n,r,i,o){i?(e.opacity=aG(0,n.opacity??1,dC(r)),e.opacityExit=aG(t.opacity??1,0,dE(r))):o&&(e.opacity=aG(t.opacity??1,n.opacity??1,r));for(let i=0;i<dw;i++){let o=aH[i],a=d$(t,o),s=d$(n,o);(void 0!==a||void 0!==s)&&(a||(a=0),s||(s=0),0===a||0===s||dS(a)===dS(s)?(e[o]=Math.max(aG(dk(a),dk(s),r),0),(iN.test(s)||iN.test(a))&&(e[o]+="%")):e[o]=s)}(t.rotate||n.rotate)&&(e.rotate=aG(t.rotate||0,n.rotate||0,r))}(a,o,this.latestValues,n,h,c)),i&&void 0!==i.rotate&&(this.animationValues||(this.animationValues=a),this.animationValues.pathRotation=i.rotate),this.root.scheduleUpdateProjection(),this.scheduleRender(),this.animationProgress=n},this.mixTargetDelta(1e3*!!this.options.layoutRoot)}startAnimation(e){this.notifyListeners("animationStart"),this.currentAnimation?.stop(),this.resumingFrom?.currentAnimation?.stop(),this.pendingAnimation&&(oL(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=oO.update(()=>{var t,n,r;let i;dg.hasAnimatedSinceResize=!0,this.motionValue||(this.motionValue=af(0)),this.motionValue.jump(0,!1),this.currentAnimation=(t=this.motionValue,n=[0,1e3],r={...e,velocity:0,isSync:!0,onUpdate:t=>{this.mixTargetDelta(t),e.onUpdate&&e.onUpdate(t)},onComplete:()=>{e.onComplete&&e.onComplete(),this.completeAnimation()}},(i=oi(t)?t:af(t)).start(lE("",i,n,r)),i.animation),this.resumingFrom&&(this.resumingFrom.currentAnimation=this.currentAnimation),this.pendingAnimation=void 0})}completeAnimation(){this.resumingFrom&&(this.resumingFrom.currentAnimation=void 0,this.resumingFrom.preserveOpacity=void 0);let e=this.getStack();e&&e.exitAnimationComplete(),this.resumingFrom=this.currentAnimation=this.animationValues=void 0,this.notifyListeners("animationComplete")}finishAnimation(){this.currentAnimation&&(this.mixTargetDelta&&this.mixTargetDelta(1e3),this.currentAnimation.stop()),this.completeAnimation()}applyTransformsToTarget(){let e=this.getLead(),{targetWithTransforms:t,target:n,layout:r,latestValues:i}=e;if(t&&n&&r){if(this!==e&&this.layout&&r&&ul(this.options.animationType,this.layout.layoutBox,r.layoutBox)){n=this.target||or();let t=lN(this.layout.layoutBox.x);n.x.min=e.target.x.min,n.x.max=n.x.min+t;let r=lN(this.layout.layoutBox.y);n.y.min=e.target.y.min,n.y.max=n.y.min+r}dA(t,n),a8(t,i),lH(this.projectionDeltaWithTransform,this.layoutCorrected,t,i
9)}}registerSharedNode(e,t){this.sharedNodes.has(e)||this.sharedNodes.set(e,new dH),this.sharedNodes.get(e).add(t);let n=t.options.initialPromotionConfig;t.promote({transition:n?n.transition:void 0,preserveFollowOpacity:n&&n.shouldPreserveFollowOpacity?n.shouldPreserveFollowOpacity(t):void 0})}isLead(){let e=this.getStack();return!e||e.lead===this}getLead(){let{layoutId:e}=this.options;return e&&this.getStack()?.lead||this}getPrevLead(){let{layoutId:e}=this.options;return e?this.getStack()?.prevLead:void 0}getStack(){let{layoutId:e}=this.options;if(e)return this.root.sharedNodes.get(e)}promote({needsReset:e,transition:t,preserveFollowOpacity:n}={}){let r=this.getStack();r&&r.promote(this,n),e&&(this.projectionDelta=void 0,this.needsReset=!0),t&&this.setOptions({transition:t})}relegate(){let e=this.getStack();return!!e&&e.relegate(this)}resetSkewAndRotation(){let{visualElement:e}=this.options;if(!e)return;let t=!1,{latestValues:n}=e;if((n.z||n.rotate||n.rotateX||n.rotateY||n.rotateZ||n.skewX||n.skewY)&&(t=!0),!t)return;let r={};n.z&&dY("z",e,r,this.animationValues);for(let t=0;t<dG.length;t++)dY(`rotate${dG[t]}`,e,r,this.animationValues),dY(`skew${dG[t]}`,e,r,this.animationValues);for(let t in e.render(),r)e.setStaticValue(t,r[t]),this.animationValues&&(this.animationValues[t]=r[t]);e.scheduleRender()}applyProjectionStyles(e,t){if(!this.instance||this.isSVG)return;if(!this.isVisible){e.visibility="hidden";return}let n=this.getTransformTemplate();if(this.needsReset){this.needsReset=!1,e.visibility="",e.opacity="",e.pointerEvents=sh(t?.pointerEvents)||"",e.transform=n?n(this.latestValues,""):"none";return}let r=this.getLead();if(!this.projectionDelta||!this.layout||!r.target){this.options.layoutId&&(e.opacity=void 0!==this.latestValues.opacity?this.latestValues.opacity:1,e.pointerEvents=sh(t?.pointerEvents)||""),this.hasProjected&&!a1(this.latestValues)&&(e.transform=n?n({},""):"none",this.hasProjected=!1);return}e.visibility="";let i=r.animationValues||r.latestValues;this.applyTransformsToTarget();
9let o=function(e,t,n){let r="",i=e.x.translate/t.x,o=e.y.translate/t.y,a=n?.z||0;if((i||o||a)&&(r=`translate3d(${i}px, ${o}px, ${a}px) `),(1!==t.x||1!==t.y)&&(r+=`scale(${1/t.x}, ${1/t.y}) `),n){let{transformPerspective:e,rotate:t,pathRotation:i,rotateX:o,rotateY:a,skewX:s,skewY:l}=n;e&&(r=`perspective(${e}px) ${r}`),t&&(r+=`rotate(${t}deg) `),i&&(r+=`rotate(${i}deg) `),o&&(r+=`rotateX(${o}deg) `),a&&(r+=`rotateY(${a}deg) `),s&&(r+=`skewX(${s}deg) `),l&&(r+=`skewY(${l}deg) `)}let s=e.x.scale*t.x,l=e.y.scale*t.y;return(1!==s||1!==l)&&(r+=`scale(${s}, ${l})`),r||"none"}(this.projectionDeltaWithTransform,this.treeScale,i);n&&(o=n(i,o)),e.transform=o;let{x:a,y:s}=this.projectionDelta;for(let t in e.transformOrigin=`${100*a.origin}% ${100*s.origin}% 0`,r.animationValues?e.opacity=r===this?i.opacity??this.latestValues.opacity??1:this.preserveOpacity?this.latestValues.opacity:i.opacityExit:e.opacity=r===this?void 0!==i.opacity?i.opacity:"":void 0!==i.opacityExit?i.opacityExit:0,aX){if(void 0===i[t])continue;let{correct:n,applyTo:a,isCSSVariable:s}=aX[t],l="none"===o?i[t]:n(i[t],r);if(a){let t=a.length;for(let n=0;n<t;n++)e[a[n]]=l}else s?this.options.visualElement.renderState.vars[t]=l:e[t]=l}this.options.layoutId&&(e.pointerEvents=r===this?sh(t?.pointerEvents)||"":"none")}clearSnapshot(){this.resumeFrom=this.snapshot=void 0}resetTree(){this.root.nodes.forEach(e=>e.currentAnimation?.stop()),this.root.nodes.forEach(d1),this.root.sharedNodes.clear()}}}function dK(e){e.updateLayout()}function dZ(e){let t=e.resumeFrom?.snapshot||e.snapshot;if(e.isLead()&&e.layout&&t&&e.hasListeners("didUpdate")){let{layoutBox:n,measuredBox:r}=e.layout,{animationType:i}=e.options,o=t.source!==e.layout.source;if("size"===i)lD(e=>{let r=o?t.measuredBox[e]:t.layoutBox[e],i=lN(r);r.min=n[e].min,r.max=r.min+i});else if("x"===i||"y"===i){let e="x"===i?"y":"x";dT(o?t.measuredBox[e]:t.layoutBox[e],n[e])}else ul(i,t.layoutBox,n)&&lD(r=>{let i=o?t.measuredBox[r]:t.layoutBox[r],a=lN(n[r]);i.max=i.min+a,e.relativeTarget&&!e.currentAnimation&&(e.isProjectionDirty=!0,e.relativeTarget[r].max=e.relativeTarget[r].min+a)});let a=ot();lH(a,n,t.layoutBox);let s=ot();o?lH(s,e.applyTransform(r,!0),t.measuredBox):lH(s,n,t.layoutBox);let l=!dL(a),d=!1;if(!e.resumeFrom){let r=e.getClosestProjectingParent();if(r&&!r.resumeFrom){let{snapshot:i,layout:o}=r;if(i&&o){let a=e.options.layoutAnchor||void 0,s=or();lG(s,t.layoutBox,i.layoutBox,a);let l=or();lG(l,n,o.layoutBox,a),dB(s,l)||(d=!0),r.options.layoutRoot&&(e.relativeTarget=l,e.relativeTargetOrigin=s,e.relativeParent=r)}}}e.notifyListeners("didUpdate",{layout:n,snapshot:t,delta:s,layoutDelta:a,hasLayoutChanged:l,hasRelativeLayoutChanged:d})}else if(e.isLead()){let{onExitComplete:t}=e.options;t&&t()}e.options.transition=void 0}function dJ(e){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 dQ(e){e.isProjectionDirty=e.isSharedProjectionDirty=e.isTransformDirty=!1}function d0(e){e.clearSnapshot()}function d1(e){e.clearMeasurements()}function d2(e){e.isLayoutDirty=!0,e.updateLayout()}function d3(e){e.isLayoutDirty=!1}function d5(e){e.isAnimationBlocked&&e.layout&&!e.isLayoutDirty&&(e.snapshot=e.layout,e.isLayoutDirty=!0)}function d4(e){let{visualElement:t}=e.options;t&&t.getProps().onBeforeLayoutMeasure&&t.notify("BeforeLayoutMeasure"),e.resetTransform()}function d6(e){e.finishAnimation(),e.targetDelta=e.relativeTarget=e.target=void 0,e.isProjectionDirty=!0}function d7(e){e.resolveTargetDelta()}function d9(e){e.calcProjection()}function d8(e){e.resetSkewAndRotation()}function ue(e){e.removeLeadSnapshot()}function ut(e,t,n){e.translate=aG(t.translate,0,n),e.scale=aG(t.scale,1,n),e.origin=t.origin,e.originPoint=t.originPoint}function un(e,t,n,r){e.min=aG(t.min,n.min,r),e.max=aG(t.max,n.max,r)}function ur(e){return e.animationValues&&void 0!==e.animationValues.opacityExit}let ui={duration:.45,ease:[.4,0,.1,1]},uo=e=>"u">typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().includes(e),ua=uo("applewebkit/")&&!uo("chrome/")?Math.round:oM;function us(e){e.min=ua(e.min),e.max=ua(e.max)}function ul(e,t,n){return"position"===e||"preserve-aspect"===e&&!(.2>=Math.abs(dN(t)-dN(n)))}function ud(e){return e!==e.root&&e.scroll?.wasRoot}let uu=dq({attachResizeListener:(e,t)=>lV(e,"resize",t),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body?.scrollLeft||0,y:document.documentElement.scrollTop||document.body?.scrollTop||0}),checkIsScrollRoot:()=>!0}),uc={current:void 0},uh=dq({measureScroll:e=>({x:e.scrollLeft,y:e.scrollTop}),defaultParent:()=>{if(!uc.current){let e=new uu({});e.mount(window),e.setOptions({layoutScroll:!0}),uc.current=e}return uc.current},resetTransform:(e,t)=>
9{e.style.transform=void 0!==t?t:"none"},checkIsScrollRoot:e=>"fixed"===window.getComputedStyle(e).position});function uf(e,t){let n=lY(e),r=new AbortController;return[n,{passive:!0,...t,signal:r.signal},()=>r.abort()]}function up(e,t,n){let{props:r}=e;e.animationState&&r.whileHover&&e.animationState.setActive("whileHover","Start"===n);let i=r["onHover"+n];i&&oO.postRender(()=>i(t,l6(t)))}let um=(e,t)=>!!t&&(e===t||um(e,t.parentElement)),ug=new WeakSet;function ub(e){return t=>{"Enter"===t.key&&e(t)}}function uy(e,t){e.dispatchEvent(new PointerEvent("pointer"+t,{isPrimary:!0,bubbles:!0}))}function uv(e){return l4(e)&&!(lB.x||lB.y)}let ux=new WeakSet;function uw(e,t,n){let{props:r}=e;if(e.current instanceof HTMLButtonElement&&e.current.disabled)return;e.animationState&&r.whileTap&&e.animationState.setActive("whileTap","Start"===n);let i=r["onTap"+("End"===n?"":n)];i&&oO.postRender(()=>i(t,l6(t)))}let uk=new WeakMap,uS=new WeakMap,u$=e=>{let t=uk.get(e.target);t&&t(e)},uC=e=>{e.forEach(u$)},uE={some:0,all:1},uR=function(e,t){if("u"<typeof Proxy)return sS;let n=new Map,r=(n,r)=>sS(n,r,e,t);return new Proxy((e,t)=>r(e,t),{get:(i,o)=>"create"===o?r:(n.has(o)||n.set(o,sS(o,void 0,e,t)),n.get(o))})}({animation:{Feature:class extends s${constructor(e){super(e),e.animationState||(e.animationState=function(e){let t=t=>Promise.all(t.map(({animation:t,options:n})=>(function(e,t,n={}){let r;if(e.notify("AnimationStart",t),Array.isArray(t))r=Promise.all(t.map(t=>lP(e,t,n)));else if("string"==typeof t)r=lP(e,t,n);else{let i="function"==typeof t?sC(e,t,n.custom):t;r=Promise.all(lT(e,i,n))}return r.then(()=>{e.notify("AnimationComplete",t)})})(e,t,n))),n=lO(),r=!0,i=!1,o=t=>(n,r)=>{let i=sC(e,r,"exit"===t?e.presenceContext?.custom:void 0);if(i){let{transition:e,transitionEnd:t,...r}=i;n={...n,...r,...t}}return n};function a(a){let{props:s}=e,l=function e(t){if(!t)return;if(!t.isControllingVariants){let n=t.parent&&e(t.parent)||{};return void 0!==t.props.initial&&(n.initial=t.props.initial),n}let n={};for(let e=0;e<lj;e++){let r=av[e],i=t.props[r];(ab(i)||!1===i)&&(n[r]=i)}return n}(e.parent)||{},d=[],u=new Set,c={},h=1/0;for(let t=0;t<l_;t++){var f,p;let m=lI[t],g=n[m],b=void 0!==s[m]?s[m]:l[m],y=ab(b),v=m===a?g.isActive:null;!1===v&&(h=t);let x=b===l[m]&&b!==s[m]&&y;if(x&&(r||i)&&e.manuallyAnimateOnMount&&(x=!1),g.protectedKeys={...c},!g.isActive&&null===v||!b&&!g.prevProp||ag(b)||"boolean"==typeof b)continue;if("exit"===m&&g.isActive&&!0!==v){g.prevResolvedValues&&(c={...c,...g.prevResolvedValues});continue}let w=(f=g.prevProp,"string"==typeof(p=b)?p!==f:!!Array.isArray(p)&&!lM(p,f)),k=w||m===a&&g.isActive&&!x&&y||t>h&&y,S=!1,$=Array.isArray(b)?b:[b],C=$.reduce(o(m),{});!1===v&&(C={});let{prevResolvedValues:E={}}=g,R={...E,...C},T=t=>{k=!0,u.has(t)&&(S=!0,u.delete(t)),g.needsAnimating[t]=!0;let n=e.getValue(t);n&&(n.liveStyle=!1)};for(let e in R){let t=C[e],n=E[e];if(!c.hasOwnProperty(e))(sT(t)&&sT(n)?!lM(t,n)||w:t!==n)?null!=t?T(e):u.add(e):void 0!==t&&u.has(e)?T(e):g.protectedKeys[e]=!0}g.prevProp=b,g.prevResolvedValues=C,g.isActive&&(c={...c,...C}),(r||i)&&e.blockInitialAnimation&&(k=!1);let A=x&&w,P=!A||S;k&&P&&d.push(...$.map(t=>{let n={type:m};if("string"==typeof t&&(r||i)&&!A&&e.manuallyAnimateOnMount&&e.parent){let{parent:r}=e,i=sC(r,t);if(r.enteringChildren&&i){let{delayChildren:t}=i.transition||{};n.delay=lA(r.enteringChildren,e,t)}}return{animation:t,options:n}}))}if(u.size){let t={};if("boolean"!=typeof s.initial){let n=sC(e,Array.isArray(s.initial)?s.initial[0]:s.initial);n&&n.transition&&(t.transition=n.transition)}u.forEach(n=>{let r=e.getBaseTarget(n),i=e.getValue(n);i&&(i.liveStyle=!0),t[n]=r??null}),d.push({animation:t})}let m=!!d.length;return r&&(!1===s.initial||s.initial===s.animate)&&!e.manuallyAnimateOnMount&&(m=!1),r=!1,i=!1,m?t(d):Promise.resolve()}return{animateChanges:a,setActive:function(t,r){if(n[t].isActive===r)return Promise.resolve();e.variantChildren?.forEach(e=>e.animationState?.setActive(t,r)),n[t].isActive=r;let i=a(t);for(let e in n)n[e].protectedKeys={};return i},setAnimateFunction:function(n){t=n(e)},getState:()=>n,reset:()=>{n=lO(),i=!0}}}(e))}updateAnimationControlsSubscription(){let{animate:e}=this.node.getProps();ag(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?.()}}},exit:{Feature:class extends s${constructor(){super(...arguments),this.id=lL++,this.isExitComplete=!1}update(){if(!this.node.presenceContext)return;let{isPresent:e,onExitComplete:t}=this.node.presenceContext,{isPresent:n}=this.node.prevPresenceContext||{};if(!this.node.animationState||e===n)return;if(e&&!1===n){if(this.isExitComplete){let{initial:e,custom:t}=this.node.getProps();if("string"==typeof e||"object"==typeof e&&null!==e&&!Array.isArray(e)){let n=sC(this.node,e,t);if(n){let{transition:e,transitionEnd:t,...r}=n;for(let e in r)this.node.getValue(e)?.jump(r[e])}}this.node.animationState.reset(),this.node.animationState.animateChanges()}else this.node.animationState.setActive("exit",!1);this.isExitComplete=!1;return}let r=this.node.animationState.setActive("exit",!e);t&&!e&&r.then(()=>
9{this.isExitComplete=!0,t(this.id)})}mount(){let{register:e,onExitComplete:t}=this.node.presenceContext||{};t&&t(this.id),e&&(this.unmount=e(this.id))}unmount(){}}},inView:{Feature:class extends s${constructor(){super(...arguments),this.hasEnteredView=!1,this.isInView=!1}startObserver(){var e;let t;this.stopObserver?.();let{viewport:n={}}=this.node.getProps(),{root:r,margin:i,amount:o="some",once:a}=n,s={root:r?r.current:void 0,rootMargin:i,threshold:"number"==typeof o?o:uE[o]},l=e=>{let{isIntersecting:t}=e;if(this.isInView===t||(this.isInView=t,a&&!t&&this.hasEnteredView))return;t&&(this.hasEnteredView=!0),this.node.animationState&&this.node.animationState.setActive("whileInView",t);let{onViewportEnter:n,onViewportLeave:r}=this.node.getProps(),i=t?n:r;i&&i(e)};this.stopObserver=(e=this.node.current,t=function({root:e,...t}){let n=e||document;uS.has(n)||uS.set(n,{});let r=uS.get(n),i=JSON.stringify(t);return r[i]||(r[i]=new IntersectionObserver(uC,{root:e,...t})),r[i]}(s),uk.set(e,l),t.observe(e),()=>{uk.delete(e),t.unobserve(e)})}mount(){this.startObserver()}update(){if("u"<typeof IntersectionObserver)return;let{props:e,prevProps:t}=this.node;["amount","margin","root"].some(function({viewport:e={}},{viewport:t={}}={}){return n=>e[n]!==t[n]}(e,t))&&this.startObserver()}unmount(){this.stopObserver?.(),this.hasEnteredView=!1,this.isInView=!1}}},tap:{Feature:class extends s${mount(){let{current:e}=this.node;if(!e)return;let{globalTapTarget:t,propagate:n}=this.node.props;this.unmount=function(e,t,n={}){let[r,i,o]=uf(e,n),a=e=>{let r=e.currentTarget;if(!uv(e)||ux.has(e))return;ug.add(r),n.stopPropagation&&ux.add(e);let o=t(r,e),a={...i,capture:!0},s=(e,t)=>{window.removeEventListener("pointerup",l,a),window.removeEventListener("pointercancel",d,a),ug.has(r)&&ug.delete(r),uv(e)&&"function"==typeof o&&o(e,{success:t})},l=e=>{s(e,r===window||r===document||n.useGlobalTarget||um(r,e.target))},d=e=>{s(e,!1)};window.addEventListener("pointerup",l,a),window.addEventListener("pointercancel",d,a)};return r.forEach(e=>{((n.useGlobalTarget?window:e).addEventListener("pointerdown",a,i),ip(e))&&(e.addEventListener("focus",e=>((e,t)=>{let n=e.currentTarget;if(!n)return;let r=ub(()=>{if(ug.has(n))return;uy(n,"down");let e=ub(()=>{uy(n,"up")});n.addEventListener("keyup",e,t),n.addEventListener("blur",()=>uy(n,"cancel"),t)});n.addEventListener("keydown",r,t),n.addEventListener("blur",()=>n.removeEventListener("keydown",r),t)})(e,i)),l3.has(e.tagName)||!0===e.isContentEditable||e.hasAttribute("tabindex")||(e.tabIndex=0))}),o}(e,(e,t)=>(uw(this.node,t,"Start"),(e,{success:t})=>uw(this.node,e,t?"End":"Cancel")),{useGlobalTarget:t,stopPropagation:n?.tap===!1})}unmount(){}}},focus:{Feature:class extends s${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=sP(lV(this.node.current,"focus",()=>this.onFocus()),lV(this.node.current,"blur",()=>this.onBlur()))}unmount(){}}},hover:{Feature:class extends s${mount(){let{current:e}=this.node;e&&(this.unmount=function(e,t,n={}){let[r,i,o]=uf(e,n);return r.forEach(e=>{let n,r=!1,o=!1,a=t=>{n&&(n(t),n=void 0),e.removeEventListener("pointerleave",l)},s=e=>{r=!1,window.removeEventListener("pointerup",s),window.removeEventListener("pointercancel",s),o&&(o=!1,a(e))},l=e=>{if("touch"!==e.pointerType){if(r){o=!0;return}a(e)}};e.addEventListener("pointerenter",r=>{if("touch"===r.pointerType||lB.x||lB.y)return;o=!1;let a=t(e,r);"function"==typeof a&&(n=a,e.addEventListener("pointerleave",l,i))},i),e.addEventListener("pointerdown",()=>{r=!0,window.addEventListener("pointerup",s,i),window.addEventListener("pointercancel",s,i)},i)}),o}(e,(e,t)=>(up(this.node,t,"Start"),e=>up(this.node,e,"End"))))}unmount(){}}},pan:{Feature:class extends s${constructor(){super(...arguments),this.removePointerDownListener=oM}onPointerDown(e){this.session=new dt(e,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint(),contextWindow:l9(this.node)})}createPanHandlers(){let{onPanSessionStart:e,onPanStart:t,onPan:n,onPanEnd:r}=this.node.getProps();return{onSessionStart:dm(e),onStart:dm(t),onMove:dm(n),onEnd:(e,t)=>{delete this.session,r&&oO.postRender(()=>r(e,t))}}}mount(){this.removePointerDownListener=l7(this.node.current,"pointerdown",e=>this.onPointerDown(e))}update(){this.session&&this.session.updateHandlers(this.createPanHandlers())}unmount(){this.removePointerDownListener(),this.session&&this.session.end()}}},drag:{Feature:class extends s${constructor(e){super(e),this.removeGroupControls=oM,this.removeListeners=oM,this.controls=new dh(e)}mount(){let{dragControls:e}=this.node.getProps();e&&(this.removeGroupControls=e.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||oM}update(){let{dragControls:e}=this.node.getProps(),{dragControls:t}=this.node.prevProps||{};e!==t&&(this.removeGroupControls(),e&&(this.removeGroupControls=e.subscribe(this.controls)))}unmount(){this.removeGroupControls(),this.removeListeners(),this.controls.isDragging||this.controls.endPanSession()}},ProjectionNode:uh,MeasureLayout:dx},layout:{ProjectionNode:uh,MeasureLayout:dx}},(e,t)=>t.isSVG??sr(e)?new aZ(t):new st(t,{allowProjection:e!==eZ.Fragment}));e.s(["motion",0,uR],45414)},785891,607833,119860,438924,e=>{"use strict";let t,n;var r=e.i(933644),i=e.i(339720),o=e.i(62471),a=e.i(702826),s=e.i(836193),l=e.i(127841),d=e.i(42353),u=e.i(501583),c=e.i(825339),h=e.i(788261),f=e.i(45414);e.i(507640);var p=e.i(40558),m=e.i(212310);let g=(0,o.forwardRef)(function(e,t){return(0,s.jsx)("svg",{"data-sanity-icon":"close",width:"1em",height:"1em",viewBox:"0 0 25 25",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e,ref:t,children:(0,s.jsx)("path",{d:"M18 7L7 18M7 7L18 18",stroke:"currentColor",strokeWidth:1.2,strokeLinejoin:"round"})})});e.s(["CloseIcon",0,g],607833);let b=o.default.createContext(!0);function y(){throw Error("A function wrapped in useEffectEvent can't be called during rendering.")}let v="use"in o.default?()=>{try{return o.default.use(b)}catch{return!1}}:()=>!1;function x(e){let t=o.default.useRef(y);o.default.useInsertionEffect(()=>{t.current=e},[e]);let[n]=o.default.useState(()=>(...e)=>(v()&&y(),(0,t.current)(...e)));return n}e.s(["useEffectEvent",0,x],119860);let w=(0,o.forwardRef)(function(e,t){return(0,s.jsx)("svg",{"data-sanity-icon":"chevron-right",width:"1em",height:"1em",viewBox:"0 0 25 25",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e,ref:t,children:(0,s.jsx)("path",{d:"M10 8L14.5 12.5L10 17",stroke:"currentColor",strokeWidth:1.2,strokeLinejoin:"round"})})}),k=r.a,S=r.d,$=r.f,C=r.c,E=r.u,R=r.p,T=r.m,A=r.l,P=r.s,j=(0,r.o)(),M=[],I={},_={initial:{scale:.97,willChange:"transform"},hidden:{opacity:0}
9,visible:{opacity:1,transition:{when:"beforeChildren",duration:.1}},scaleIn:{scale:1},scaleOut:{scale:.97}},z={hidden:{opacity:0},visible:{opacity:1}},O={type:"spring",visualDuration:.2,bounce:.25};function L(e){return e instanceof Node&&e.nodeType===Node.ELEMENT_NODE}function D(e){return L(e)&&"A"===e.nodeName}function V(e){return L(e)&&"BUTTON"===e.nodeName}function B(e,t){return e.contains(t)||e===t}function N(e,t){return e.reduce((e,n)=>(e[n]=t,e),{})}function F(e){return 0===e?0:`${e/16}rem`}function H(e,t,n){return(t?.map(n)||[]).map((t,n)=>0===n?t:{[`@media screen and (min-width: ${e[n-1]}px)`]:t})}function W(e,t){return void 0===e?t||M:Array.isArray(e)?e:[e]}function U(e,t,n=M){if(!Array.isArray(n))throw Error("the property must be array of numbers");if(0===n.length)return null;let{media:i,space:o}=(0,r.i)(e);return H(i,n,e=>N(t,F(o[e])))}let G={'&[data-as="ul"],&[data-as="ol"]':{listStyle:"none"}},X={content:"content-box",border:"border-box"},Y={stretch:"stretch",fill:"100%"};function q(e){let{media:t}=(0,r.i)(e.theme);return H(t,e.$display,e=>({"&:not([hidden])":{display:e}}))}function K(e){let{media:t}=(0,r.i)(e.theme);return H(t,e.$sizing,e=>({boxSizing:X[e]}))}function Z(e){let{media:t}=(0,r.i)(e.theme);return H(t,e.$height,e=>({height:Y[e]}))}function J(e){let{media:t}=(0,r.i)(e.theme);return H(t,e.$overflow,e=>({overflow:e}))}let Q={minWidth:0,minHeight:0};function ee(){return[Q,et]}function et(e){let{media:t}=(0,r.i)(e.theme);return e.$flex?H(t,e.$flex,e=>({flex:`${e}`})):M}let en={auto:"auto",full:"1 / -1"},er={auto:"auto",full:"1 / -1"};function ei(e){let{media:t}=(0,r.i)(e.theme);return H(t,e.$row,e=>"number"==typeof e?{gridRow:`span ${e} / span ${e}`}:{gridRow:en[e]})}function eo(e){let{media:t}=(0,r.i)(e.theme);return H(t,e.$rowStart,e=>({gridRowStart:`${e}`}))}function ea(e){let{media:t}=(0,r.i)(e.theme);return H(t,e.$rowEnd,e=>({gridRowEnd:`${e}`}))}function es(e){let{media:t}=(0,r.i)(e.theme);return H(t,e.$column,e=>"number"==typeof e?{gridColumn:`span ${e} / span ${e}`}:{gridColumn:er[e]})}function el(e){let{media:t}=(0,r.i)(e.theme);return H(t,e.$columnStart,e=>({gridColumnStart:`${e}`}))}function ed(e){let{media:t}=(0,r.i)(e.theme);return H(t,e.$columnEnd,e=>({gridColumnEnd:`${e}`}))}function eu(e){let{theme:t}=e;return[U(t,["padding"],e.$padding),U(t,["paddingLeft","paddingRight"],e.$paddingX),U(t,["paddingTop","paddingBottom"],e.$paddingY),U(t,["paddingTop"],e.$paddingTop),U(t,["paddingRight"],e.$paddingRight),U(t,["paddingBottom"],e.$paddingBottom),U(t,["paddingLeft"],e.$paddingLeft)].filter(Boolean)}let ec=a.styled.div.withConfig({displayName:"StyledBox",componentId:"sc-00g4gn-0"})(function(){return G},ee,function(){return[K,Z,J,q]},function(){return[ei,eo,ea,es,el,ed]},function(e){let{theme:t}=e;return[U(t,["margin"],e.$margin),U(t,["marginLeft","marginRight"],e.$marginX),U(t,["marginTop","marginBottom"],e.$marginY),U(t,["marginTop"],e.$marginTop),U(t,["marginRight"],e.$marginRight),U(t,["marginBottom"],e.$marginBottom),U(t,["marginLeft"],e.$marginLeft)].filter(Boolean)},eu),eh=(0,o.forwardRef)(function(e,t){let n,r,o,a,l,d,u,c,h,f,p,m,g,b,y,v,x,w,k,S,$,C,E,R,T,A=(0,i.c)(115),P,j,M,I,_,z,O,L,D,V,B,N,F,H,U,G,X,Y,q,K,Z,J,Q,ee,et,en,er,ei,eo,ea,es,el,ed;A[0]===e?(P=A[1],j=A[2],M=A[3],I=A[4],_=A[5],z=A[6],O=A[7],L=A[8],D=A[9],V=A[10],B=A[11],N=A[12],F=A[13],H=A[14],U=A[15],G=A[16],X=A[17],Y=A[18],q=A[19],K=A[20],Z=A[21],J=A[22],Q=A[23],ee=A[24],et=A[25],en=A[26],er=A[27],ei=A[28],eo=A[29],ea=A[30],es=A[31],el=A[32],ed=A[33]):({as:ea,gridColumn:L,column:P,gridColumnStart:V,columnStart:M,gridColumnEnd:D,columnEnd:j,display:es,flex:O,height:H,margin:el,marginX:q,marginY:K,marginTop:Y,marginRight:X,marginBottom:U,marginLeft:G,overflow:Z,padding:ed,paddingX:en,paddingY:er,paddingTop:et,paddingRight:ee,paddingBottom:J,paddingLeft:Q,gridRow:B,row:I,gridRowStart:F,rowStart:z,gridRowEnd:N,rowEnd:_,sizing:eo,...ei}=e,A[0]=e,A[1]=P,A[2]=j,A[3]=M,A[4]=I,A[5]=_,A[6]=z,A[7]=O,A[8]=L,A[9]=D,A[10]=V,A[11]=B,A[12]=N,A[13]=F,A[14]=H,A[15]=U,A[16]=G,A[17]=X,A[18]=Y,A[19]=q,A[20]=K,A[21]=Z,A[22]=J,A[23]=Q,A[24]=ee,A[25]=et,A[26]=en,A[27]=er,A[28]=ei,A[29]=eo,A[30]=ea,A[31]=es,A[32]=el,A[33]=ed);let eu=void 0===ea?"div":ea,eh=void 0===es?"block":es,ef=void 0===el?0:el,ep=void 0===ed?0:ed,em=void 0===L?P:L,eg=void 0===V?M:V,eb=void 0===D?j:D,ey=void 0===B?I:B,ev=void 0===F?z:F,ex=void 0===N?_:N,ew="string"==typeof eu?eu:void 0,ek;return A[34]===em?ek=A[35]:(ek=W(em),A[34]=em,A[35]=ek),A[36]===eg?r=A[37]:(r=W(eg),A[36]=eg,A[37]=r),A[38]===eb?o=A[39]:(o=W(eb),A[38]=eb,A[39]=o),A[40]===eh?a=A[41]:(a=W(eh),A[40]=eh,A[41]=a),A[42]===O?l=A[43]:(l=W(O),A[42]=O,A[43]=l),A[44]===H?d=A[45]:(d=W(H),A[44]=H,A[45]=d),A[46]===ef?u=A[47]:(u=W(ef),A[46]=ef,A[47]=u),A[48]===q?c=A[49]:(c=W(q),A[48]=q,A[49]=c),A[50]===K?h=A[51]:(h=W(K),A[50]=K,A[51]=h),A[52]===Y?f=A[53]:(f=W(Y),A[52]=Y,A[53]=f),A[54]===X?p=A[55]:(p=W(X),A[54]=X,A[55]=p),A[56]===U?m=A[57]:(m=W(U),A[56]=U,A[57]=m),A[58]===G?g=A[59]:(g=W(G),A[58]=G,A[59]=g),A[60]===Z?b=A[61]:(b=W(Z),A[60]=Z,A[61]=b),A[62]===ep?y=A[63]:(y=W(ep),A[62]=ep,A[63]=y),A[64]===en?v=A[65]:(v=W(en),A[64]=en,A[65]=v),A[66]===er?x=A[67]:(x=W(er),A[66]=er,A[67]=x),A[68]===et?w=A[69]:(w=W(et),A[68]=et,A[69]=w),A[70]===ee?k=A[71]:(k=W(ee),A[70]=ee,A[71]=k),A[72]===J?S=A[73]:(S=W(J),A[72]=J,A[73]=S),A[74]===Q?$=A[75]:($=W(Q),A[74]=Q,A[75]=$),A[76]===ey?C=A[77]:(C=W(ey),A[76]=ey,A[77]=C),A[78]===ev?E=A[79]:(E=W(ev),A[78]=ev,A[79]=E),A[80]===ex?R=A[81]:(R=W(ex),A[80]=ex,A[81]=R),A[82]===eo?T=A[83]:(T=W(eo),A[82]=eo,A[83]=T),A[84]!==e.children||A[85]!==t||A[86]!==ei||A[87]!==d||A[88]!==u||A[89]!==c||A[90]!==h||A[91]!==f||A[92]!==p||A[93]!==m||A[94]!==g||A[95]!==b||A[96]!==y||A[97]!==v||A[98]!==x||A[99]!==w||A[100]!==k||A[101]!==S||A[102]!==$||A[103]!==C||A[104]!==E||A[105]!==R||A[106]!==T||A[107]!==eu||A[108]!==ew||A[109]!==ek||A[110]!==r||A[111]!==o||A[112]!==a||A[113]!==l?(n=(0,s.jsx)(ec,{"data-as":ew,"data-ui":"Box",...ei,$column:ek,$columnStart:r,$columnEnd:o,$dis
9play:a,$flex:l,$height:d,$margin:u,$marginX:c,$marginY:h,$marginTop:f,$marginRight:p,$marginBottom:m,$marginLeft:g,$overflow:b,$padding:y,$paddingX:v,$paddingY:x,$paddingTop:w,$paddingRight:k,$paddingBottom:S,$paddingLeft:$,$row:C,$rowStart:E,$rowEnd:R,$sizing:T,as:eu,ref:t,children:e.children}),A[84]=e.children,A[85]=t,A[86]=ei,A[87]=d,A[88]=u,A[89]=c,A[90]=h,A[91]=f,A[92]=p,A[93]=m,A[94]=g,A[95]=b,A[96]=y,A[97]=v,A[98]=x,A[99]=w,A[100]=k,A[101]=S,A[102]=$,A[103]=C,A[104]=E,A[105]=R,A[106]=T,A[107]=eu,A[108]=ew,A[109]=ek,A[110]=r,A[111]=o,A[112]=a,A[113]=l,A[114]=n):n=A[114],n});function ef(e){let{media:t,radius:n}=(0,r.i)(e.theme);return H(t,e.$radius,e=>{let t=0;return"number"==typeof e&&(t=F(n[e])),"full"===e&&(t="9999px"),{borderRadius:t}})}function ep(){let e=(0,i.c)(2),t=(0,a.useTheme)(),n;return e[0]===t?n=e[1]:(n=(0,r.i)(t),e[0]=t,e[1]=n),n}let em={"&&:not([hidden])":{display:"flex"}};function eg(e){let{media:t}=(0,r.i)(e.theme);return H(t,e.$align,e=>({alignItems:e}))}function eb(e){let{media:t,space:n}=(0,r.i)(e.theme);return H(t,e.$gap,e=>({gap:e?F(n[e]):void 0}))}function ey(e){let{media:t}=(0,r.i)(e.theme);return H(t,e.$wrap,e=>({flexWrap:e}))}function ev(e){let{media:t}=(0,r.i)(e.theme);return H(t,e.$justify,e=>({justifyContent:e}))}function ex(e){let{media:t}=(0,r.i)(e.theme);return H(t,e.$direction,e=>({flexDirection:e}))}let ew=(0,a.styled)(eh).withConfig({displayName:"StyledFlex",componentId:"sc-5lzqa2-0"})(ee,function(){return[em,eg,eb,ey,ev,ex]}),ek=(0,o.forwardRef)(function(e,t){let n,r,o,a,l,d=(0,i.c)(27),u,c,h,f,p,m,g;d[0]===e?(u=d[1],c=d[2],h=d[3],f=d[4],p=d[5],m=d[6],g=d[7]):({align:u,as:c,direction:m,gap:h,justify:f,wrap:g,...p}=e,d[0]=e,d[1]=u,d[2]=c,d[3]=h,d[4]=f,d[5]=p,d[6]=m,d[7]=g);let b=void 0===m?"row":m,y;return d[8]===u?y=d[9]:(y=W(u),d[8]=u,d[9]=y),d[10]===b?n=d[11]:(n=W(b),d[10]=b,d[11]=n),d[12]===h?r=d[13]:(r=W(h),d[12]=h,d[13]=r),d[14]===f?o=d[15]:(o=W(f),d[14]=f,d[15]=o),d[16]===g?a=d[17]:(a=W(g),d[16]=g,d[17]=a),d[18]!==c||d[19]!==t||d[20]!==p||d[21]!==y||d[22]!==n||d[23]!==r||d[24]!==o||d[25]!==a?(l=(0,s.jsx)(ew,{"data-ui":"Flex",...p,$align:y,$direction:n,$gap:r,$justify:o,$wrap:a,forwardedAs:c,ref:t}),d[18]=c,d[19]=t,d[20]=p,d[21]=y,d[22]=n,d[23]=r,d[24]=o,d[25]=a,d[26]=l):l=d[26],l});function eS(e){let{media:t}=(0,r.i)(e.theme);return H(t,e.$align,e=>({textAlign:e}))}function e$(e,t){let{$size:n,$weight:i}=t,{font:o,media:a}=(0,r.i)(t.theme),{family:s,sizes:l,weights:d}=o[e],u=i&&d[i]||d.regular,c=l[2],h={position:"relative",fontFamily:s,fontWeight:`${u}`,padding:"1px 0",margin:0,"&:before":{content:'""',display:"block",height:0},"&:after":{content:'""',display:"block",height:0},"& > code, & > span":{display:"block"},"&:not([hidden])":{display:"block"}};return n?[h,...H(a,n,e=>(function(e){let{ascenderHeight:t,descenderHeight:n,fontSize:r,iconSize:i,letterSpacing:o,lineHeight:a}=e,s=t+n,l=a-s,d=2*Math.floor(1.125*r/2)+1;return{fontSize:F(r),lineHeight:`calc(${a} / ${r})`,letterSpacing:F(o),transform:`translateY(${F(n)})`,"&:before":{marginTop:`calc(${F(0-s)} - 1px)`},"&:after":{marginBottom:"-1px"},"& svg:not([data-sanity-icon])":{fontSize:`calc(${d} / 16 * 1rem)`,margin:F((l-d)/2)},"& [data-sanity-icon]":{fontSize:`calc(${i} / 16 * 1rem)`,margin:F((l-i)/2)}}})(l[e]||c))]:(e$.warned||=(console.warn("No size specified for responsive font",{fontKey:e,$size:n,props:t,base:h}),!0),[h])}function eC(e){return e$("text",e)}let eE=a.styled.span.withConfig({displayName:"SpanWithTextOverflow",componentId:"sc-xkyu3h-0"})`display:block;white-space:nowrap;text-overflow:ellipsis;overflow:hidden;overflow:clip;`,eR=a.styled.div.withConfig({displayName:"StyledText",componentId:"sc-m7q2yn-0"})(eC,eS,function(e){let{$accent:t,$muted:n}=e,{font:i}=(0,r.i)(e.theme);return a.css`color:var(--card-fg-color);${t&&a.css`color:var(--card-accent-fg-color);`} ${n&&a.css`color:var(--card-muted-fg-color);`} & code{font-family:${i.code.family};border-radius:1px;background-color:var(--card-code-bg-color);color:var(--card-code-fg-color);}& a{text-decoration:none;border-radius:1px;color:var(--card-link-color);outline:none;@media (hover:hover){&:hover{text-decoration:underline;}}
9&:focus{box-shadow:0 0 0 1px var(--card-bg-color),0 0 0 3px var(--card-focus-ring-color);}&:focus:not(:focus-visible){box-shadow:none;}}& strong{font-weight:${i.text.weights.bold};}& svg{display:inline;}& [data-sanity-icon]{vertical-align:baseline;color:var(--card-icon-color);& path{vector-effect:non-scaling-stroke !important;}}`}),eT=(0,o.forwardRef)(function(e,t){let n,r,o,a,l=(0,i.c)(26),d,u,c,h,f,p,m,g;l[0]===e?(d=l[1],u=l[2],c=l[3],h=l[4],f=l[5],p=l[6],m=l[7],g=l[8]):({accent:h,align:d,children:u,muted:f,size:p,textOverflow:m,weight:g,...c}=e,l[0]=e,l[1]=d,l[2]=u,l[3]=c,l[4]=h,l[5]=f,l[6]=p,l[7]=m,l[8]=g);let b=void 0!==h&&h,y=void 0!==f&&f,v=void 0===p?2:p,x=u;if("ellipsis"===m){let e;l[9]===x?e=l[10]:(e=(0,s.jsx)(eE,{children:x}),l[9]=x,l[10]=e),x=e}return l[11]===d?n=l[12]:(n=W(d),l[11]=d,l[12]=n),l[13]===v?r=l[14]:(r=W(v),l[13]=v,l[14]=r),l[15]===x?o=l[16]:(o=(0,s.jsx)("span",{children:x}),l[15]=x,l[16]=o),l[17]!==b||l[18]!==y||l[19]!==t||l[20]!==c||l[21]!==n||l[22]!==r||l[23]!==o||l[24]!==g?(a=(0,s.jsx)(eR,{"data-ui":"Text",...c,$accent:b,$align:n,$muted:y,ref:t,$size:r,$weight:g,children:o}),l[17]=b,l[18]=y,l[19]=t,l[20]=c,l[21]=n,l[22]=r,l[23]=o,l[24]=g,l[25]=a):a=l[25],a}),eA=a.keyframes`from{transform:rotate(0deg);}to{transform:rotate(360deg);}`,eP=(0,a.styled)(eT).withConfig({displayName:"StyledSpinner",componentId:"sc-k51eu1-0"})`& > span > svg{animation:${eA} 500ms linear infinite;}`,ej=(0,o.forwardRef)(function(e,t){let n,r=(0,i.c)(4),o;return r[0]===Symbol.for("react.memo_cache_sentinel")?(o=(0,s.jsx)(d.SpinnerIcon,{}),r[0]=o):o=r[0],r[1]!==e||r[2]!==t?(n=(0,s.jsx)(eP,{"data-ui":"Spinner",...e,ref:t,children:o}),r[1]=e,r[2]=t,r[3]=n):n=r[3],n});function eM(e,t,n=!1){return{"--card-backdrop-color":e.backdrop,"--card-focus-ring-color":e.focusRing,"--card-shadow-outline-color":e.shadow.outline,"--card-shadow-umbra-color":e.shadow.umbra,"--card-shadow-penumbra-color":e.shadow.penumbra,"--card-shadow-ambient-color":e.shadow.ambient,"--card-accent-fg-color":t.accent.fg,"--card-avatar-gray-bg-color":t.avatar.gray.bg,"--card-avatar-gray-fg-color":t.avatar.gray.fg,"--card-avatar-blue-bg-color":t.avatar.blue.bg,"--card-avatar-blue-fg-color":t.avatar.blue.fg,"--card-avatar-purple-bg-color":t.avatar.purple.bg,"--card-avatar-purple-fg-color":t.avatar.purple.fg,"--card-avatar-magenta-bg-color":t.avatar.magenta.bg,"--card-avatar-magenta-fg-color":t.avatar.magenta.fg,"--card-avatar-red-bg-color":t.avatar.red.bg,"--card-avatar-red-fg-color":t.avatar.red.fg,"--card-avatar-orange-bg-color":t.avatar.orange.bg,"--card-avatar-orange-fg-color":t.avatar.orange.fg,"--card-avatar-yellow-bg-color":t.avatar.yellow.bg,"--card-avatar-yellow-fg-color":t.avatar.yellow.fg,"--card-avatar-green-bg-color":t.avatar.green.bg,"--card-avatar-green-fg-color":t.avatar.green.fg,"--card-avatar-cyan-bg-color":t.avatar.cyan.bg,"--card-avatar-cyan-fg-color":t.avatar.cyan.fg,"--card-bg-color":t.bg,"--card-bg-image":n?`repeating-conic-gradient(${t.bg} 0% 25%, ${t.muted.bg} 0% 50%)`:void 0,"--card-border-color":t.border,"--card-badge-default-bg-color":t.badge.default.bg,"--card-badge-default-dot-color":t.badge.default.dot,"--card-badge-default-fg-color":t.badge.default.fg,"--card-badge-default-icon-color":t.badge.default.icon,"--card-badge-neutral-bg-color":t.badge.neutral?.bg,"--card-badge-neutral-dot-color":t.badge.neutral?.dot,"--card-badge-neutral-fg-color":t.badge.neutral?.fg,"--card-badge-neutral-icon-color":t.badge.neutral?.icon,"--card-badge-primary-bg-color":t.badge.primary.bg,"--card-badge-primary-dot-color":t.badge.primary.dot,"--card-badge-primary-fg-color":t.badge.primary.fg,"--card-badge-primary-icon-color":t.badge.primary.icon,"--card-badge-suggest-bg-color":t.badge.suggest?.bg,"--card-badge-suggest-dot-color":t.badge.suggest?.dot,"--card-badge-suggest-fg-color":t.badge.suggest?.fg,"--card-badge-suggest-icon-color":t.badge.suggest?.icon,"--card-badge-positive-bg-color":t.badge.positive.bg,"--card-badge-positive-dot-color":t.badge.positive.dot,"--card-badge-positive-fg-color":t.badge.positive.fg,"--card-badge-positive-icon-color":t.badge.positive.icon,"--card-badge-caution-bg-color":t.badge.caution.bg,"--card-badge-caution-dot-color":t.badge.caution.dot,"--card-badge-caution-fg-color":t.badge.caution.fg,"--card-badge-caution-icon-color":t.badge.caution.icon,"--card-badge-critical-bg-color":t.badge.critical.bg,"--card-badge-critical-dot-color":t.badge.critical.dot,"--card-badge-critical-fg-color":t.badge.critical.fg,"--card-badge-critical-icon-color":t.badge.critical.icon,"--card-code-bg-color":t.code.bg,"--card-code-fg-color":t.code.fg,"--card-fg-color":t.fg,"--card-icon-color":t.icon,"--card-kbd-bg-color":t.kbd.bg,"--card-kbd-border-color":t.kbd.border,"--card-kbd-fg-color":t.kbd.fg,"--card-link-fg-color":t.link.fg,"--card-muted-bg-color":t.muted.bg,"--card-muted-fg-color":t.muted.fg,"--card-skeleton-color-from":t.skeleton.from,"--card-skeleton-color-to":t.skeleton.to,"--card-bg2-color":t.muted.bg,"--card-link-color":t.link.fg,"--card-hairline-soft-color":t.border,"--card-hairline-hard-color":t.border}}function eI(e){return`inset 0 0 0 ${e.width}px ${e.color}`}function e_(e){let{base:t,border:n,focusRing:r}=e,i=r.offset+r.width,o=0-r.offset,a=t?t.bg:"var(--card-bg-color)";return[o>0&&`inset 0 0 0 ${o}px var(--card-focus-ring-color)`,n&&eI(n),o<0&&`0 0 0 ${0-o}px ${a}`,i>0&&`0 0 0 ${i}
9px var(--card-focus-ring-color)`].filter(Boolean).join(",")}function ez(...e){return e.filter(Boolean).join(",")}let eO=a.styled.button.withConfig({displayName:"StyledButton",componentId:"sc-5eghxe-0"})(ef,function(e){let{$width:t}=e,{style:n}=(0,r.i)(e.theme);return a.css`${n?.button};-webkit-font-smoothing:inherit;appearance:none;display:inline-flex;align-items:center;font:inherit;border:0;outline:none;user-select:none;text-decoration:none;border:0;box-sizing:border-box;padding:0;margin:0;white-space:nowrap;text-align:left;position:relative;vertical-align:top;${"fill"===t&&a.css`width:-moz-available;width:-webkit-fill-available;width:stretch;`} & > span{display:block;flex:1;min-width:0;border-radius:inherit;}&::-moz-focus-inner{border:0;padding:0;}`},function(e){let{$mode:t}=e,{button:n,color:i,style:o}=(0,r.i)(e.theme);e.$mode;let a=i.button[t]||i.button.default,s=a[e.$tone]||a.default,l={width:n.border.width,color:"var(--card-border-color)"};return[eM(i,s.enabled),{backgroundColor:"var(--card-bg-color)",color:"var(--card-fg-color)",boxShadow:eI(l),'&:disabled, &[data-disabled="true"]':eM(i,s.disabled),"&:not([data-disabled='true'])":{boxShadow:ez(eI(l),void 0),"&:focus":{boxShadow:e_({base:i,border:{width:2,color:i.bg},focusRing:n.focusRing})},"&:focus:not(:focus-visible)":{boxShadow:ez(eI(l),void 0)},"@media (hover: hover)":{"&:hover":eM(i,s.hovered),"&:active":eM(i,s.pressed),"&[data-hovered]":eM(i,s.hovered)},"&[data-selected]":eM(i,s.pressed)}}
9,o?.button?.root].filter(Boolean)}),eL=a.styled.div.withConfig({displayName:"LoadingBox",componentId:"sc-5eghxe-1"})`position:absolute;top:0;left:0;right:0;bottom:0;display:flex;align-items:center;justify-content:center;background-color:var(--card-bg-color);border-radius:inherit;z-index:1;box-shadow:inherit;`,eD=(0,o.forwardRef)(function(e,t){let n,r,a,d=(0,i.c)(87),u,c,h,f,p,m,g,b,y,v,x,w,k,S,$,C,E,R,T,A,P,j,M,I,_,z,O;d[0]===e?(u=d[1],c=d[2],h=d[3],f=d[4],p=d[5],m=d[6],g=d[7],b=d[8],y=d[9],v=d[10],x=d[11],w=d[12],k=d[13],S=d[14],$=d[15],C=d[16],E=d[17],R=d[18],T=d[19],A=d[20],P=d[21],j=d[22],M=d[23],I=d[24],_=d[25],z=d[26],O=d[27]):({children:h,disabled:f,fontSize:$,icon:u,iconRight:c,justify:C,loading:m,mode:E,padding:R,paddingX:x,paddingY:w,paddingTop:v,paddingBottom:g,paddingLeft:b,paddingRight:y,radius:T,selected:S,gap:p,space:A,text:I,textAlign:_,textWeight:z,tone:P,type:j,muted:M,width:O,...k}=e,d[0]=e,d[1]=u,d[2]=c,d[3]=h,d[4]=f,d[5]=p,d[6]=m,d[7]=g,d[8]=b,d[9]=y,d[10]=v,d[11]=x,d[12]=w,d[13]=k,d[14]=S,d[15]=$,d[16]=C,d[17]=E,d[18]=R,d[19]=T,d[20]=A,d[21]=P,d[22]=j,d[23]=M,d[24]=I,d[25]=_,d[26]=z,d[27]=O);let L=void 0===$?1:$,D=void 0===C?"center":C,V=void 0===E?"default":E,B=void 0===R?3:R,N=void 0===T?2:T,F=void 0===A?3:A,H=void 0===P?"default":P,U=void 0===j?"button":j,G=void 0!==M&&M,{button:X}=ep(),Y;d[28]===D?Y=d[29]:(Y=W(D),d[28]=D,d[29]=Y);let q=Y,K;d[30]===B?K=d[31]:(K=W(B),d[30]=B,d[31]=K);let Z=K,J;d[32]===x?J=d[33]:(J=W(x),d[32]=x,d[33]=J);let Q=J,ee;
9d[34]===w?ee=d[35]:(ee=W(w),d[34]=w,d[35]=ee);let et=ee,en;d[36]===v?en=d[37]:(en=W(v),d[36]=v,d[37]=en);let er=en,ei;d[38]===g?ei=d[39]:(ei=W(g),d[38]=g,d[39]=ei);let eo=ei,ea;d[40]===b?ea=d[41]:(ea=W(b),d[40]=b,d[41]=ea);let es=ea,el;d[42]===y?el=d[43]:(el=W(y),d[42]=y,d[43]=el);let ed=el,eu;d[44]===N?eu=d[45]:(eu=W(N),d[44]=N,d[45]=eu);let ec=eu,ef=void 0===p?F:p,em;d[46]===ef?em=d[47]:(em=W(ef),d[46]=ef,d[47]=em);let eg=em,eb;d[48]!==Z||d[49]!==eo||d[50]!==es||d[51]!==ed||d[52]!==er||d[53]!==Q||d[54]!==et?(eb={padding:Z,paddingX:Q,paddingY:et,paddingTop:er,paddingBottom:eo,paddingLeft:es,paddingRight:ed},d[48]=Z,d[49]=eo,d[50]=es,d[51]=ed,d[52]=er,d[53]=Q,d[54]=et,d[55]=eb):eb=d[55];let ey=eb,ev=!!(m||f),ex=S?"":void 0,ew=!!(m||f),eS;return d[56]===m?eS=d[57]:(eS=!!m&&(0,s.jsx)(eL,{children:(0,s.jsx)(ej,{})}),d[56]=m,d[57]=eS),d[58]!==u||d[59]!==c||d[60]!==ey||d[61]!==X||d[62]!==L||d[63]!==q||d[64]!==G||d[65]!==eg||d[66]!==I||d[67]!==_||d[68]!==z?(n=(u||I||c)&&(0,s.jsx)(eh,{as:"span",...ey,children:(0,s.jsxs)(ek,{as:"span",justify:q,gap:eg,children:[u&&(0,s.jsxs)(eT,{size:L,children:[(0,o.isValidElement)(u)&&u,(0,l.isValidElementType)(u)&&(0,s.jsx)(u,{})]}),I&&(0,s.jsx)(eh,{children:(0,s.jsx)(eT,{muted:G,align:_,size:L,textOverflow:"ellipsis",weight:z??X.textWeight,children:I})}),c&&(0,s.jsxs)(eT,{size:L,children:[(0,o.isValidElement)(c)&&c,(0,l.isValidElementType)(c)&&(0,s.jsx)(c,{})]})]})}),d[58]=u,d[59]=c,d[60]=ey,d[61]=X,d[62]=L,d[63]=q,d[64]=G,d[65]=eg,d[66]=I,d[67]=_,d[68]=z,d[69]=n):n=d[69],d[70]!==ey||d[71]!==h?(r=h&&(0,s.jsx)(eh,{as:"span",...ey,children:h}),d[70]=ey,d[71]=h,d[72]=r):r=d[72],d[73]!==V||d[74]!==ec||d[75]!==t||d[76]!==k||d[77]!==ev||d[78]!==ex||d[79]!==ew||d[80]!==eS||d[81]!==n||d[82]!==r||d[83]!==H||d[84]!==U||d[85]!==O?(a=(0,s.jsxs)(eO,{"data-ui":"Button",...k,$mode:V,$radius:ec,$tone:H,"data-disabled":ev,"data-selected":ex,disabled:ew,ref:t,type:U,$width:O,children:[eS,n,r]}),d[73]=V,d[74]=ec,d[75]=t,d[76]=k,d[77]=ev,d[78]=ex,d[79]=ew,d[80]=eS,d[81]=n,d[82]=r,d[83]=H,d[84]=U,d[85]=O,d[86]=a):a=d[86],a});function eV(e){let{card:t,media:n}=(0,r.i)(e.theme),i=`${t.border?.width??1}px solid var(--card-border-color)`;return H(n,e.$border,e=>e?{"&&":{border:i}}:{"&&":{border:0}})}function eB(e){let{card:t,media:n}=(0,r.i)(e.theme),i=`${t.border?.width??1}px solid var(--card-border-color)`;return H(n,e.$borderTop,e=>e?{"&&":{borderTop:i}}:{"&&":{borderTop:0}})}function eN(e){let{card:t,media:n}=(0,r.i)(e.theme),i=`${t.border?.width??1}px solid var(--card-border-color)`;return H(n,e.$borderRight,e=>e?{"&&":{borderRight:i}}:{"&&":{borderRight:0}})}function eF(e){let{card:t,media:n}=(0,r.i)(e.theme),i=`${t.border?.width??1}px solid var(--card-border-color)`;return H(n,e.$borderBottom,e=>e?{"&&":{borderBottom:i}}:{"&&":{borderBottom:0}})}function eH(e){let{card:t,media:n}=(0,r.i)(e.theme),i=`${t.border?.width??1}px solid var(--card-border-color)`;return H(n,e.$borderLeft,e=>e?{"&&":{borderLeft:i}}:{"&&":{borderLeft:0}})}function eW(e,t){return`${e.map(F).join(" ")} ${t}`}let eU="u">typeof globalThis?globalThis:"u">typeof window?window:"u">typeof self?self:e.g;function eG(e,t){let n=Symbol.for(e);if(typeof document>"u"){let n=(0,o.createContext)(t);return n.displayName=e,n}return eU[n]=eU[n]||(0,o.createContext)(t),eU[n]}let eX=eG("@sanity/ui/context/theme",null);function eY(e){let t,n,l=(0,i.c)(15),d=(0,o.useContext)(eX),{children:u}=e,c=e.scheme??(d?.scheme||"light"),h=e.theme??(d?.theme||null),f=e.tone??(d?.tone||"default"),p;e:{let e;if(!h){p=null;break e}l[0]!==h||l[1]!==c||l[2]!==f?(e={version:0,theme:h,scheme:c,tone:f},l[0]=h,l[1]=c,l[2]=f,l[3]=e):e=l[3],p=e}let m=p,g;t:{let e;if(!h){g=null;break t}l[4]!==h||l[5]!==c||l[6]!==f?(e=(0,r.t)(h,c,f),l[4]=h,l[5]=c,l[6]=f,l[7]=e):e=l[7],g=e}let b=g;if(!b){let e;return l[8]===Symbol.for("react.memo_cache_sentinel")?(e=(0,s.jsx)("pre",{children:'ThemeProvider: no "theme" property provided'}),l[8]=e):e=l[8],e}return l[9]!==u||l[10]!==b?(t=(0,s.jsx)(a.ThemeProvider,{theme:b,children:u}),l[9]=u,l[10]=b,l[11]=t):t=l[11],l[12]!==t||l[13]!==m?(n=(0,s.jsx)(eX.Provider,{value:m,children:t}),l[12]=t,l[13]=m,l[14]=n):n=l[14],n}function eq(){let e=(0,o.useContext)(eX);
9if(!e)throw Error("useRootTheme(): missing context value");return e}function eK(e){let t=(0,i.c)(5),{children:n,scheme:r,tone:o}=e,a=eq(),l=r||a.scheme,d;return t[0]!==n||t[1]!==a.theme||t[2]!==l||t[3]!==o?(d=(0,s.jsx)(eY,{scheme:l,theme:a.theme,tone:o,children:n}),t[0]=n,t[1]=a.theme,t[2]=l,t[3]=o,t[4]=d):d=t[4],d}let eZ=(0,a.styled)(eh).withConfig({displayName:"StyledCard",componentId:"sc-63y21e-0"})(function(){return[eV,eB,eN,eF,eH]},ef,function(e){let{card:t,media:n,shadow:i}=(0,r.i)(e.theme);return H(n,e.$shadow,e=>(function(e,t=1){return e?{boxShadow:`0 0 0 ${F(t)} var(--card-shadow-outline-color), ${eW(e.umbra,"var(--card-shadow-umbra-color)")}, ${eW(e.penumbra,"var(--card-shadow-penumbra-color)")}, ${eW(e.ambient,"var(--card-shadow-ambient-color)")}`}:I})(i[e],t.shadow.outline))},function(e){return[function(e){let{$checkered:t}=e,{space:n}=(0,r.i)(e.theme);return a.css`${t&&a.css`background-size:${n[3]}px ${n[3]}px;background-position:50% 50%;background-image:var(--card-bg-image);`} &[data-as='button']{-webkit-font-smoothing:inherit;appearance:none;outline:none;font:inherit;text-align:inherit;border:0;width:-moz-available;width:-webkit-fill-available;width:stretch;}&[data-as='a']{outline:none;text-decoration:none;}&[data-as='pre']{font:inherit;}`}(e),function(e){let{$checkered:t,$focusRing:n,$muted:i}=e,{card:o,color:s,style:l}=(0,r.i)(e.theme),d={width:o.border.width,color:"var(--card-border-color)"};return a.css`color-scheme:${s._dark?"dark":"light"};${eM(s,s,t)} background-color:${i?"var(--card-muted-bg-color)":"var(--card-bg-color)"};color:var(--card-fg-color);&[data-as='button']{--card-focus-ring-box-shadow:none;cursor:default;box-shadow:var(--card-focus-ring-box-shadow);&:disabled{${eM(s,s.selectable.default.disabled,t)}}&:not(:disabled){&[data-pressed]{${eM(s,s.selectable.default.pressed,t)}}&[data-selected]{${eM(s,s.selectable.default.selected,t)}}@media (hover:hover){&:not([data-pressed]):not([data-selected]){&[data-hovered],&:hover{${eM(s,s.selectable.default.hovered,t)}}&:active{${eM(s,s.selectable.default.pressed,t)}}}}&:focus-visible{--card-focus-ring-box-shadow:${n?e_({base:s,border:d,focusRing:o.focusRing}):void 0};}}}&[data-as='a']{cursor:pointer;box-shadow:var(--card-focus-ring-box-shadow);&[data-disabled]{${eM(s,s.selectable.default.disabled,t)}}&:not([data-disabled]){&[data-pressed]{${eM(s,s.selectable.default.pressed,t)}}&[data-selected]{${eM(s,s.selectable.default.selected,t)}}@media (hover:hover){&:not([data-pressed]):not([data-selected]){&[data-hovered],&:hover{${eM(s,s.selectable.default.hovered,t)}}&:active{${eM(s,s.selectable.default.pressed,t)}}}}&:focus-visible{--card-focus-ring-box-shadow:${n?e_({base:s,border:d,focusRing:o.focusRing}):void 0};}}}${l?.card?.root}`}(e)]}),eJ=(0,o.forwardRef)(function(e,t){let n,r,o,a,d,u,c=(0,i.c)(56),h,f,p,m,g,b,y,v,x,w,k,S,$,C,E,R;c[0]===e?(h=c[1],f=c[2],p=c[3],m=c[4],g=c[5],b=c[6],y=c[7],v=c[8],x=c[9],w=c[10],k=c[11],S=c[12],$=c[13],C=c[14],E=c[15],R=c[16]):({__unstable_checkered:$,__unstable_focusRing:C,as:h,border:f,borderTop:b,borderRight:g,borderBottom:p,borderLeft:m,muted:y,pressed:v,radius:E,scheme:w,selected:k,shadow:S,tone:R,...x}=e,c[0]=e,c[1]=h,c[2]=f,c[3]=p,c[4]=m,c[5]=g,c[6]=b,c[7]=y,c[8]=v,c[9]=x,c[10]=w,c[11]=k,c[12]=S,c[13]=$,c[14]=C,c[15]=E,c[16]=R);let T=void 0!==$&&$,A=void 0!==C&&C,P=void 0===E?0:E,j=void 0===R?"default":R,M=(0,l.isValidElementType)(h)?h:"div",I=eq(),_="inherit"===j?I.tone:j,z="string"==typeof M?M:void 0,O=I.scheme,L;c[17]===f?L=c[18]:(L=W(f),c[17]=f,c[18]=L),c[19]===b?n=c[20]:(n=W(b),c[19]=b,c[20]=n),c[21]===g?r=c[22]:(r=W(g),c[21]=g,c[22]=r),c[23]===p?o=c[24]:(o=W(p),c[23]=p,c[24]=o),c[25]===m?a=c[26]:(a=W(m),c[25]=m,c[26]=a);let D=y??!1,V;c[27]===P?V=c[28]:(V=W(P),c[27]=P,c[28]=V),c[29]===S?d=c[30]:(d=W(S),c[29]=S,c[30]=d);let B=T?"":void 0,N=v?"":void 0,F=k?"":void 0,H;return c[31]!==M||c[32]!==T||c[33]!==A||c[34]!==t||c[35]!==x||c[36]!==I.scheme||c[37]!==k||c[38]!==a||c[39]!==D||c[40]!==V||c[41]!==d||c[42]!==B||c[43]!==N||c[44]!==F||c[45]!==z||c[46]!==L||c[47]!==n||c[48]!==r||c[49]!==o||c[50]!==_?(H=(0,s.jsx)(eZ,{"data-as":z,"data-scheme":O,"data-ui":"Card","data-tone":_,...x,$border:L,$borderTop:n,$borderRight:r,$borderBottom:o,$borderLeft:a,$checkered:T,$focusRing:A,$muted:D,$radiu
9s:V,$shadow:d,$tone:_,"data-checkered":B,"data-pressed":N,"data-selected":F,forwardedAs:M,ref:t,selected:k}),c[31]=M,c[32]=T,c[33]=A,c[34]=t,c[35]=x,c[36]=I.scheme,c[37]=k,c[38]=a,c[39]=D,c[40]=V,c[41]=d,c[42]=B,c[43]=N,c[44]=F,c[45]=z,c[46]=L,c[47]=n,c[48]=r,c[49]=o,c[50]=_,c[51]=H):H=c[51],c[52]!==w||c[53]!==H||c[54]!==_?(u=(0,s.jsx)(eK,{scheme:w,tone:_,children:H}),c[52]=w,c[53]=H,c[54]=_,c[55]=u):u=c[55],u}),eQ="u">typeof document&&"u">typeof window&&window.ResizeObserver?window.ResizeObserver:p.ResizeObserver,e0=(t=new WeakMap,n=new WeakMap,{subscribe(e,r){let i=n.get(e)||[],o=t.get(e);return n.has(e)||(n.set(e,i),o=({subscribe(e,t){let n=new eQ(([e])=>{t({_contentRect:e.contentRect,border:{width:e.borderBoxSize[0].inlineSize,height:e.borderBoxSize[0].blockSize},content:{width:e.contentRect.width,height:e.contentRect.height}})});return n.observe(e),()=>{n.unobserve(e),n.disconnect()}}}).subscribe(e,e=>{for(let t of i)t(e)})),i.push(r),()=>{let e=i.indexOf(r);e>-1&&i.splice(e,1),0===i.length&&o&&o()}}});function e1(e){let t=(0,i.c)(3),[n,r]=(0,o.useState)(null),a,s;return t[0]===e?(a=t[1],s=t[2]):(a=()=>{if(e)return e0.subscribe(e,r)},s=[e],t[0]=e,t[1]=a,t[2]=s),(0,o.useEffect)(a,s),n}function e2(){return 0}function e3(){let e,t,n,r=(0,i.c)(2),{media:a}=ep(),s;r[0]===a?s=r[1]:(e=a.length,n=()=>{if(!t){t=[];for(let r=e;r>-1;--r){var n;let e=0===(n=r)?`screen and (max-width: ${a[n]-1}px)`:n===a.length?`screen and (min-width: ${a[n-1]}px)`:`screen and (min-width: ${a[n-1]}px) and (max-width: ${a[n]-1}px)`;t.push({index:r,mq:window.matchMedia(e)})}}return t},s={getSnapshot:()=>{for(let{index:e,mq:t}of n())if(t.matches)return e;return 0},subscribe:e=>{let t=[];for(let{mq:r}of n()){let n=()=>{r.matches&&e()};r.addEventListener("change",n),t.push(()=>r.removeEventListener("change",n))}return()=>{for(let e of t)e()}}},r[0]=a,r[1]=s);let l=s;return(0,o.useSyncExternalStore)(l.subscribe,l.getSnapshot,e2)}function e5(e,t){let n,r,a=(0,i.c)(4);return(0,o.useDebugValue)(e),a[0]===e?n=a[1]:(n=t=>{let n=window.matchMedia(e);return n.addEventListener("change",t),()=>n.removeEventListener("change",t)},a[0]=e,a[1]=n),a[2]===e?r=a[3]:(r=()=>window.matchMedia(e).matches,a[2]=e,a[3]=r),(0,o.useSyncExternalStore)(n,r,t)}function e4(e){return e5("(prefers-reduced-motion: reduce)",void 0===e?e6:e)}function e6(){return!1}let e7={name:"@sanity/ui/origin",fn({middlewareData:e,placement:t,rects:n}){let[r]=t.split("-"),i=n.floating.width,o=n.floating.height,a=e.shift?.x||0,s=e.shift?.y||0;if(i<=0||o<=0)return{};let{originX:l,originY:d}=["bottom","top"].includes(r)?{originX:e9(.5-a/i,0,1),originY:+("bottom"!==r)}:{originX:+("left"===r),originY:e9(.5-s/o,0,1)};return{data:{originX:l,originY:d}}}};function e9(e,t,n){return Math.min(Math.max(e,t),n)}function e8(e){return!!(e&&"object"==typeof e&&!Array.isArray(e))}let te=eG("@sanity/ui/context/boundaryElement",null),tt={version:0,element:null};function tn(){let e=(0,o.useContext)(te);if(e&&(!e8(e)||0!==e.version))throw Error("useBoundaryElement(): the context value is not compatible");return e||tt}function tr(e){let t=Object.getOwnPropertyDescriptor(e.props,"ref")?.get,n=t&&"isReactWarning"in t&&t.isReactWarning;return n?e.ref:(n=(t=Object.getOwnPropertyDescriptor(e,"ref")?.get)&&"isReactWarning"in t&&t.isReactWarning)?e.props.ref:e.props.ref||e.ref}function ti(e){if(!e8(e)||0!==e.version)throw Error("the context value is not compatible");if(!e)throw Error("components using `useLayer()` should be wrapped in a <LayerProvider>.");if(0===e.version)return e;throw Error("could not get layer context")}let to=eG("@sanity/ui/context/layer",null);function ta(e){let t,n=(0,i.c)(21),{children:r,zOffset:a}=e,l=void 0===a?0:a,d=(0,o.useContext)(to),u;n[0]===d?u=n[1]:(u=d&&ti(d),n[0]=d,n[1]=u);let c=u,h=c?.registerChild,f=(c?.level??0)+1,p;n[2]===l?p=n[3]:(p=W(l),n[2]=l,n[3]=p);let m=p,g=m.length-1,b=Math.min(e3(),g),y=c?c.zIndex+m[b]:m[b],v;n[4]===Symbol.for("react.memo_cache_sentinel")?(v={},n[4]=v):v=n[4];let[,x]=(0,o.useState)(v),[w,k]=(0,o.useState)(0),S=0===w,$;n[5]!==h||n[6]!==x?($=e=>{let t=h?.(e);return void 0===e?k(tl):x(t=>{let n=t[e]??0,r={...t,[e]:n+1};return k(Object.keys(r).length),r}),()=>{void 0===e?k(ts):x(t=>{let n={...t};return 1===n[e]?(delete n[e],k(Object.keys(n).length)):n[e]=n[e]-1,n}),t?.()}},n[5]=h,n[6]=x,n[7]=$):$=n[7];let C=$,E,R;n[8]!==f||n[9]!==h?(E=()=>h?.(f),R=[f,h],n[8]=f,n[9]=h,n[10]=E,n[11]=R):(E=n[10],R=n[11]),(0,o.useEffect)(E,R),n[12]!==S||n[13]!==f||n[14]!==C||n[15]!==w||n[16]!==y?(t={version:0,isTopLayer:S,level:f,registerChild:C,size:w,zIndex:y},n[12]=S,n[13]=f,n[14]=C,n[15]=w,n[16]=y,n[17]=t):t=n[17];let T=t,A;return n[18]!==r||n[19]!==T?(A=(0,s.jsx)(to.Provider,{value:T,children:r}),n[18]=r,n[19]=T,n[20]=A):A=n[20],A}function ts(e){return e-1}function tl(e){return e+1}function td(){let e=(0,i.c)(2),t=(0,o.useContext)(to);if(!t)throw Error("useLayer(): missing context value");try{let n;return e[0]===t?n=e[1]:(n=ti(t),e[0]=t,e[1]=n),n}catch(e){throw e instanceof Error?Error(`useLayer(): ${e.message}`):Error(`useLayer(): ${e}`)}}let tu="@sanity/ui/context/portal",tc=Symbol.for(`${tu}/element`);eU[tc]=null;
9let th=eG(tu,{version:0,boundaryElement:null,get element(){return typeof document>"u"?null:(eU[tc]||(eU[tc]=document.createElement("div"),eU[tc].setAttribute("data-portal",""),document.body.appendChild(eU[tc])),eU[tc])}});function tf(){let e=(0,o.useContext)(th);if(!e)throw Error("usePortal(): missing context value");if(!e8(e)||0!==e.version)throw Error("usePortal(): the context value is not compatible");return e}function tp(e){let t,n=(0,i.c)(3),{children:r,__unstable_name:o}=e,a=tf(),s=(o?a.elements&&a.elements[o]:a.element)||a.elements?.default;return s?(n[0]!==r||n[1]!==s?(t=(0,m.createPortal)(r,s),n[0]=r,n[1]=s,n[2]=t):t=n[2],t):null}let tm=[0,0,0,0],tg={top:["bottom","left","right"],"top-start":["bottom-start","left-start","right-start"],"top-end":["bottom-end","left-end","right-end"],bottom:["top","left","right"],"bottom-start":["top-start","left-start","right-start"],"bottom-end":["top-end","left-end","right-end"],left:["right","top","bottom"],"left-start":["right-start","top-start","bottom-start"],"left-end":["right-end","top-end","bottom-end"],right:["left","top","bottom"],"right-start":["left-start","top-start","bottom-start"],"right-end":["left-end","top-end","bottom-end"]};function tb(e,t,n){let r=t.x-e.x,i=t.y-e.y;return ty(e,t,Math.min(1,n/Math.sqrt(r*r+i*i)))}function ty(e,t,n){return{x:e.x+(t.x-e.x)*n,y:e.y+(t.y-e.y)*n}}let tv=a.styled.div.withConfig({displayName:"StyledArrow",componentId:"sc-ivw6of-0"})(({$w:e})=>a.css`position:absolute;width:${e}px;height:${e}px;:empty + &{display:none;}& > svg{display:block;line-height:0;transform-origin:${e/2}px ${e/2}px;}[data-placement^='top'] > &{bottom:-${e}px;& > svg{transform:rotate(0);}}[data-placement^='right'] > &{left:-${e}px;& > svg{transform:rotate(90deg);}}[data-placement^='left'] > &{right:-${e}px;& > svg{transform:rotate(-90deg);}}[data-placement^='bottom'] > &{top:-${e}px;& > svg{transform:rotate(180deg);}}`),tx=a.styled.path.withConfig({displayName:"StrokePath",componentId:"sc-ivw6of-1"})`stroke:var(--card-shadow-outline-color);`,tw=a.styled.path.withConfig({displayName:"ShapePath",componentId:"sc-ivw6of-2"})`fill:var(--card-bg-color);`,tk=(0,o.forwardRef)(function(e,t){let n,r,o,a=(0,i.c)(29),l,d,u,c;a[0]===e?(l=a[1],d=a[2],u=a[3],c=a[4]):({width:c,height:l,radius:u,...d}=e,a[0]=e,a[1]=l,a[2]=d,a[3]=u,a[4]=c);let h=void 0===u?0:u,{card:f}=ep(),p=f.shadow.outline,m=c/2,g;a[5]!==m||a[6]!==l||a[7]!==h||a[8]!==c?(g=(function(e){let t=e.length,n=[];for(let r=0;r<t;r+=1){let t=e[r],i=e[r-1],o=e[r+1];if(i&&t.radius){let e=tb(t,i,t.radius),r=tb(t,o,t.radius),a=ty(e,t,.5),s=ty(t,r,.5);n.push({type:"point",...e}),n.push({type:"curve",curveEnd:r,startControl:a,endControl:s})}else n.push({type:"point",...t})}return n})([{x:0,y:0},{x:h,y:0,radius:h},{x:m,y:l-1,radius:h},{x:c-h,y:0,radius:h},{x:c,y:0}]).map((e,t)=>"point"===e.type?`${0===t?"M":"L"} ${e.x} ${e.y}`:"curve"===e.type?`C ${e.startControl.x} ${e.startControl.y} ${e.endControl.x} ${e.endControl.y} ${e.curveEnd.x} ${e.curveEnd.y}`:"").join(" "),a[5]=m,a[6]=l,a[7]=h,a[8]=c,a[9]=g):g=a[9];let b=g,y=`${b}`,v=`${b} M ${c} -1 M 0 -1 Z`,x=`0 0 ${c} ${c}`,w;a[10]!==p||a[11]!==c?(w=(0,s.jsx)("mask",{id:"stroke-mask",children:(0,s.jsx)("rect",{x:0,y:p,width:c,height:c,fill:"white"})}),a[10]=p,a[11]=c,a[12]=w):w=a[12];let k=2*p,S;return a[13]!==y||a[14]!==k?(S=(0,s.jsx)(tx,{d:y,mask:"url(#stroke-mask)",strokeWidth:k}),a[13]=y,a[14]=k,a[15]=S):S=a[15],a[16]===v?n=a[17]:(n=(0,s.jsx)(tw,{d:v}),a[16]=v,a[17]=n),a[18]!==x||a[19]!==w||a[20]!==S||a[21]!==n||a[22]!==c?(r=(0,s.jsxs)("svg",{width:c,height:c,viewBox:x,children:[w,S,n]}),a[18]=x,a[19]=w,a[20]=S,a[21]=n,a[22]=c,a[23]=r):r=a[23],a[24]!==t||a[25]!==d||a[26]!==r||a[27]!==c?(o=(0,s.jsx)(tv,{...d,$w:c,ref:t,children:r}),a[24]=t,a[25]=d,a[26]=r,a[27]=c,a[28]=o):o=a[28],o}),tS=(0,a.styled)(f.motion.create(eJ)).withConfig({displayName:"MotionCard",componentId:"sc-uyh6zp-0"})`&:not([hidden]){display:flex;}flex-direction:column;width:max-content;min-width:min-content;will-change:transform;`,t$=(0,a.styled)(f.motion.create(ek)).withConfig({displayName:"MotionFlex",componentId:"sc-uyh6zp-1"})`will-change:opacity;`,tC=(0,o.forwardRef)(function(e,t){let n,r,o,a,l,d,u=(0,i.c)(66),c,h,f,p,m,g,b,y,v,x,w,k,S,$,C,E,R,T,A,P,j,M;u[0]===e?(c=u[1],h=u[2],f=u[3],p=u[4],m=u[5],g=u[6],b=u[7],y=u[8],v=u[9],x=u[10],w=u[11],k=u[12],S=u[13],$=u[14],C=u[15],E=u[16],R=u[17],T=u[18],A=u[19],P=u[20],j=u[21],M=u[22]):({__unstable_margins:b,animate:c,arrow:h,arrowRef:f,arrowX:p,arrowY:m,children:g,padding:w,placement:k,originX:y,originY:v,overflow:x,radius:S,scheme:C,shadow:E,strategy:R,style:T,tone:A,width:P,x:j,y:M,...$}=e,u[0]=e,u[1]=c,u[2]=h,u[3]=f,u[4]=p,u[5]=m,u[6]=g,u[7]=b,u[8]=y,u[9]=v,u[10]=x,u[11]=w,u[12]=k,u[13]=S,u[14]=$,u[15]=C,u[16]=E,u[17]=R,u[18]=T,u[19]=A,u[20]=P,u[21]=j,u[22]=M);let{zIndex:I}=td(),L=b||tm,D=(j??0)+L[3],V=(M??0)+L[0],B=c?"transform":void 0,N;u[23]!==y||u[24]!==v||u[25]!==R||u[26]!==T||u[27]!==B||u[28]!==P||u[29]!==D||u[30]!==V||u[31]!==I?(N={left:D,originX:y,originY:v,position:R,top:V,width:P,zIndex:I,willChange:B,...T},u[23]=y,u[24]=v,u[25]=R,u[26]=T,u[27]=B,u[28]=P,u[29]=D,u[30]=V,u[31]=I,u[32]=N):N=u[32];let F=N,H=null===p?void 0:p,W=null===m?void 0:m,U;u[33]!==H||u[34]!==W?(U={left:H,top:W,right:void 0,bottom:void 0},u[33]=H,u[34]=W,u[35]=U):U=u[35];let G=U,X;return u[36]===c?X=u[37]:(X=c?["hidden","initial"]:void 0,u[36]=c,u[37]=X),u[38]===c?n=u[39]:(n=c?["visible","scaleIn"]:void 0,u[38]=c,u[39]=n),u[40]===c?r=u[41]:(r=c?["hidden","scaleOut"]:void 0,u[40]=c,u[41]=r),u[42]!==g||u[43]!==w?(o=(0,s.jsx)(ek,{direction:"column",flex:1,padding:w,children:g}),u[42]=g,u[43]=w,u[44]=o):o=u[44],u[45]!==x||u[46]!==o?(a=(0,s.jsx)(t$,{"data-ui":"Popover__wrapper",direction:"column",flex:1,overflow:x,variants:z,transition:O,children:o}),u[45]=x,u[46]=o,u[47]=a):a=u[47],u[48]!==h||u[49]!==f||u[50]!==G?(l=h&&(0,s.jsx)(tk,{ref:f,style:G,width:19,height:8,radius:2}),u[48]=h,u[49]=f,u[50]=G,u[51]=l):l=u[51],u[52]!==k||u[53]!==S||u[54]!==t||u[55]!==$||u[56]!==F||u[57]!==C||u[58]!==E||u[59]!==l||u[60]!==X||u[61]!==n||u[62]!==r||u[63]!==a||u[64]!==A?(d=(0,s.jsxs)(tS,{"data-ui":"Popover",...$,"data-placement":k,radius:S,ref:t,scheme:C,shadow:E,sizing:"border",style:F,tone:A,variants:_,transition:O,initial:X,animate:n,exit:r,children:[a,l]}),u[52]=k,u[53]=S,u[54]=t,u[55]=$,u[56]=F,u[57]=C,u[58]=E,u[59]=l,u[60]=X,u[61]=n,u[62]=r,u[63]=a,u[64]=A,u[65]=d):d=u[65],d}),tE=()=>{let e=(0,i.c)(2),{zIndex:t}=td(),n;return e[0]===t?n=e[1]:(n=(0,s.jsx)("div",{style:{height:"100vh",inset:0,position:"fixed",width:"100vw",zIndex:t}}),e[0]=t,e[1]=n),n},tR=(0,o.forwardRef)(function(e,t){let n,r,a,l,d,f,p,m=(0,i.c)(126),{container:g,layer:b}=ep(),y=tn(),v,x,w,k,S,$,C,E,R,T,A,P,j,M,I,_,z,O,L,D,V,B,N,F,H,U,G,X,Y;if(m[0]!==e){let{__unstable_margins:t,animate:n,arrow:r,boundaryElement:i,
9children:o,constrainSize:a,content:s,disabled:l,fallbackPlacements:d,matchReferenceWidth:u,floatingBoundary:c,modal:h,onActivate:f,open:p,overflow:g,padding:b,placement:y,placementStrategy:W,portal:q,preventOverflow:K,radius:Z,referenceBoundary:J,referenceElement:Q,scheme:ee,shadow:et,tone:en,width:er,zOffset:ei,updateRef:eo,...ea}=e;z=t,O=n,V=r,v=i,$=o,B=a,C=s,E=l,x=d,R=u,w=c,T=h,A=p,N=g,P=b,F=y,H=W,j=q,U=K,G=Z,k=J,M=Q,_=ee,X=et,L=en,D=er,S=ei,Y=eo,I=ea,m[0]=e,m[1]=v,m[2]=x,m[3]=w,m[4]=k,m[5]=S,m[6]=$,m[7]=C,m[8]=E,m[9]=R,m[10]=T,m[11]=A,m[12]=P,m[13]=j,m[14]=M,m[15]=I,m[16]=_,m[17]=z,m[18]=O,m[19]=L,m[20]=D,m[21]=V,m[22]=B,m[23]=N,m[24]=F,m[25]=H,m[26]=U,m[27]=G,m[28]=X,m[29]=Y}else v=m[1],x=m[2],w=m[3],k=m[4],S=m[5],$=m[6],C=m[7],E=m[8],R=m[9],T=m[10],A=m[11],P=m[12],j=m[13],M=m[14],I=m[15],_=m[16],z=m[17],O=m[18],L=m[19],D=m[20],V=m[21],B=m[22],N=m[23],F=m[24],H=m[25],U=m[26],G=m[27],X=m[28],Y=m[29];let q=void 0===z?tm:z,K=void 0!==O&&O,Z=void 0!==V&&V,J=void 0!==B&&B,Q=void 0===N?"hidden":N,ee=void 0===F?"bottom":F,et=void 0===H?"flip":H,en=void 0===U||U,er=void 0===G?3:G,ei=void 0===X?3:X,eo=void 0===L?"inherit":L,ea=void 0===D?"auto":D,es=v??y?.element,el=x??tg[e.placement??"bottom"],ed=w??e.boundaryElement??y.element,eu=k??e.boundaryElement??y.element,ec=S??b.popover.zOffset,eh=!e4()&&K,ef=e1(es)?.border,em;m[30]===P?em=m[31]:(em=W(P),m[30]=P,m[31]=em);let eg=em,eb;m[32]===er?eb=m[33]:(eb=W(er),m[32]=er,m[33]=eb);let ey=eb,ev;m[34]===ei?ev=m[35]:(ev=W(ei),m[34]=ei,m[35]=ev);let ex=ev,ew=W(ea),ek;m[36]===ec?ek=m[37]:(ek=W(ec),m[36]=ec,m[37]=ek);let eS=ek,e$=(0,o.useRef)(null),eC=(0,o.useRef)(null),eE;m[38]===Symbol.for("react.memo_cache_sentinel")?(eE=()=>e$.current,m[38]=eE):eE=m[38],(0,o.useImperativeHandle)(t,eE);let eR=e3(),eT=J||en?ef?.width:void 0,eA=function(e){let{container:t,mediaIndex:n,width:r}=e,i=r[n],o=void 0===i?r[r.length-1]:i;return"number"==typeof o?t[o]:void 0}({container:g,mediaIndex:eR,width:ew}),eP=(0,o.useRef)(eA),ej,eM;m[39]===eA?(ej=m[40],eM=m[41]):(ej=()=>{eP.current=eA},eM=[eA],m[39]=eA,m[40]=ej,m[41]=eM),(0,o.useEffect)(ej,eM),m[42]!==eT||m[43]!==eA?(n=function(e){let{boundaryWidth:t,currentWidth:n}=e;if(void 0!==n||void 0!==t)return Math.min(n??1/0,(t||1/0)-8)}({boundaryWidth:eT,currentWidth:eA}),m[42]=eT,m[43]=eA,m[44]=n):n=m[44];let eI=n,e_=(0,o.useRef)(eI),ez,eO;m[45]===eI?(ez=m[46],eO=m[47]):(ez=()=>{e_.current=eI},eO=[eI],m[45]=eI,m[46]=ez,m[47]=eO),(0,o.useEffect)(ez,eO);let eL=(0,o.useRef)(void 0),eD,eV;m[48]!==R||m[49]!==eI||m[50]!==A||m[51]!==eA?(eD=()=>{let e=e$.current;if(!A||!e)return;let t=eL.current;R?void 0!==t&&(e.style.width=`${t}px`):void 0!==eA&&(e.style.width=`${eA}px`),"number"==typeof eI&&(e.style.maxWidth=`${eI}px`)},eV=[eA,R,eI,A],m[48]=R,m[49]=eI,m[50]=A,m[51]=eA,m[52]=eD,m[53]=eV):(eD=m[52],eV=m[53]),(0,o.useEffect)(eD,eV);let[eB,eN]=(0,o.useState)(void 0),eF;m[54]!==eh||m[55]!==Z||m[56]!==J||m[57]!==el||m[58]!==ed||m[59]!==q||m[60]!==R||m[61]!==ee||m[62]!==et||m[63]!==en||m[64]!==eu?(eF={animate:eh,arrowProp:Z,arrowRef:eC,constrainSize:J,fallbackPlacements:el,floatingBoundary:ed,margins:q,matchReferenceWidth:R,maxWidthRef:e_,placementProp:ee,placementStrategy:et,preventOverflow:en,referenceBoundary:eu,referenceWidthRef:eL,rootBoundary:"viewport",setReferenceWidth:eN,widthRef:eP},m[54]=eh,m[55]=Z,m[56]=J,m[57]=el,m[58]=ed,m[59]=q,m[60]=R,m[61]=ee,m[62]=et,m[63]=en,m[64]=eu,m[65]=eF):eF=m[65];let eH=function(e){let t=(0,i.c)(42),{animate:n,arrowProp:r,arrowRef:o,constrainSize:a,fallbackPlacements:s,floatingBoundary:l,margins:d,matchReferenceWidth:h,maxWidthRef:f,placementProp:p,placementStrategy:m,preventOverflow:g,referenceBoundary:b,referenceWidthRef:y,rootBoundary:v,setReferenceWidth:x,widthRef:w}=e,k;if(t[0]!==n||t[1]!==r||t[2]!==o||t[3]!==a||t[4]!==s||t[5]!==l||t[6]!==d||t[7]!==h||t[8]!==f||t[9]!==p||t[10]!==m||t[11]!==g||t[12]!==b||t[13]!==y||t[14]!==v||t[15]!==x||t[16]!==w){let e;if(k=[],a||g)if("autoPlacement"===m){let e;t[18]!==s||t[19]!==p?(e=(0,u.autoPlacement)({allowedPlacements:[p].concat(s)}),t[18]=s,t[19]=p,t[20]=e):e=t[20],k.push(e)}else{let e=l||void 0,n;t[21]!==s||t[22]!==v||t[23]!==e?(n=(0,u.flip)({boundary:e,fallbackPlacements:s,padding:4,rootBoundary:v}),t[21]=s,t[22]=v,t[23]=e,t[24]=n):n=t[24],k.push(n)}if(t[25]===Symbol.for("react.memo_cache_sentinel")?(e=(0,u.offset)({mainAxis:4}
9),t[25]=e):e=t[25],k.push(e),a||h){let e=l||void 0,n;t[26]!==a||t[27]!==d||t[28]!==h||t[29]!==f||t[30]!==y||t[31]!==x||t[32]!==e||t[33]!==w?(n=function(e){let{constrainSize:t,margins:n,matchReferenceWidth:r,maxWidthRef:i,padding:o=0,referenceWidthRef:a,setReferenceWidth:s,widthRef:l}=e;return{name:"@sanity/ui/size",async fn(d){let{elements:u,placement:h,platform:f,rects:p}=d,{floating:m,reference:g}=p,b=await (0,c.detectOverflow)(d,{altBoundary:!0,boundary:e.boundaryElement||void 0,elementContext:"floating",padding:o,rootBoundary:"viewport"}),y=1/0,v=1/0,x=m.width,w=m.height;h.includes("top")&&(y=x-(b.left+b.right),v=w-b.top),h.includes("right")&&(y=x-b.right,v=w-(b.top+b.bottom)),h.includes("bottom")&&(y=x-(b.left+b.right),v=w-b.bottom),h.includes("left")&&(y=x-b.left,v=w-(b.top+b.bottom));let k=y-n[1]-n[3],S=v-n[0]-n[2],$=g.width-n[1]-n[3];a.current=$,s($),r?u.floating.style.width=`${$}px`:void 0!==l.current&&(u.floating.style.width=`${l.current}px`),t&&(u.floating.style.maxWidth=`${Math.min(k,i.current??1/0)}px`,u.floating.style.maxHeight=`${S}px`);let C=await f.getDimensions(u.floating),E=C.height;return x!==C.width||w!==E?{reset:{rects:!0}}:{}}}}({boundaryElement:e,constrainSize:a,margins:d,matchReferenceWidth:h,maxWidthRef:f,padding:4,referenceWidthRef:y,setReferenceWidth:x,widthRef:w}),t[26]=a,t[27]=d,t[28]=h,t[29]=f,t[30]=y,t[31]=x,t[32]=e,t[33]=w,t[34]=n):n=t[34],k.push(n)}if(g){let e=l||void 0,n;t[35]!==v||t[36]!==e?(n=(0,u.shift)({boundary:e,rootBoundary:v,padding:4}),t[35]=v,t[36]=e,t[37]=n):n=t[37],k.push(n)}if(r){let e;t[38]===o?e=t[39]:(e=(0,u.arrow)({element:o,padding:4}),t[38]=o,t[39]=e),k.push(e)}n&&k.push(e7);let i=b||void 0,S;t[40]===i?S=t[41]:(S=(0,u.hide)({boundary:i,padding:4,strategy:"referenceHidden"}),t[40]=i,t[41]=S),k.push(S),t[0]=n,t[1]=r,t[2]=o,t[3]=a,t[4]=s,t[5]=l,t[6]=d,t[7]=h,t[8]=f,t[9]=p,t[10]=m,t[11]=g,t[12]=b,t[13]=y,t[14]=v,t[15]=x,t[16]=w,t[17]=k}else k=t[17];return k}(eF),eW;m[66]===M?eW=m[67]:(eW=M?{reference:M}:void 0,m[66]=M,m[67]=eW),m[68]!==eH||m[69]!==ee||m[70]!==eW?(r={middleware:eH,placement:ee,whileElementsMounted:c.autoUpdate,elements:eW},m[68]=eH,m[69]=ee,m[70]=eW,m[71]=r):r=m[71];let{x:eU,y:eG,middlewareData:eX,placement:eY,refs:eq,strategy:eK,update:eZ}=(0,u.useFloating)(r),eJ=eX.hide?.referenceHidden,eQ=eX.arrow?.x,e0=eX.arrow?.y,e2=eX["@sanity/ui/origin"]?.originX,e5=eX["@sanity/ui/origin"]?.originY,e6;m[72]===Symbol.for("react.memo_cache_sentinel")?(e6=e=>{eC.current=e},m[72]=e6):e6=m[72];let e9=e6,e8;m[73]===eq?e8=m[74]:(e8=e=>{e$.current=e,eq.setFloating(e)},m[73]=eq,m[74]=e8);let te=e8,tt;m[75]===$?tt=m[76]:(tt=$?tr($):null,m[75]=$,m[76]=tt),m[77]===eq.reference.current?a=m[78]:(a=()=>eq.reference.current,m[77]=eq.reference.current,m[78]=a),(0,o.useImperativeHandle)(tt,a);e:{let e;if(M){l=$;break e}if(!$){l=null;break e}m[79]!==$||m[80]!==eq.setReference?(e=(0,o.cloneElement)($,{ref:eq.setReference}),m[79]=$,m[80]=eq.setReference,m[81]=e):e=m[81],l=e}let ti=l,to,ts;if(m[82]===eZ?(to=m[83],ts=m[84]):(to=()=>eZ,ts=[eZ],m[82]=eZ,m[83]=to,m[84]=ts),(0,o.useImperativeHandle)(Y,to,ts),E){let e;return m[85]===$?e=m[86]:(e=$||(0,s.jsx)(s.Fragment,{}),m[85]=$,m[86]=e),e}m[87]===T?d=m[88]:(d=T&&(0,s.jsx)(tE,{}),m[87]=T,m[88]=d);let tl=R?eB:eA,td;m[89]!==eh||m[90]!==Z||m[91]!==eQ||m[92]!==e0||m[93]!==C||m[94]!==q||m[95]!==e2||m[96]!==e5||m[97]!==Q||m[98]!==eg||m[99]!==eY||m[100]!==ey||m[101]!==eJ||m[102]!==I||m[103]!==_||m[104]!==te||m[105]!==ex||m[106]!==eK||m[107]!==tl||m[108]!==eo||m[109]!==eU||m[110]!==eG?(td=(0,s.jsx)(tC,{...I,__unstable_margins:q,animate:eh,arrow:Z,arrowRef:e9,arrowX:eQ,arrowY:e0,hidden:eJ,overflow:Q,padding:eg,placement:eY,radius:ey,ref:te,scheme:_,shadow:ex,originX:e2,originY:e5,strategy:eK,tone:eo,width:tl,x:eU,y:eG,children:C}),m[89]=eh,m[90]=Z,m[91]=eQ,m[92]=e0,m[93]=C,m[94]=q,m[95]=e2,m[96]=e5,m[97]=Q,m[98]=eg,m[99]=eY,m[100]=ey,m[101]=eJ,m[102]=I,m[103]=_,m[104]=te,m[105]=ex,m[106]=eK,m[107]=tl,m[108]=eo,m[109]=eU,m[110]=eG,m[111]=td):td=m[111],m[112]!==d||m[113]!==td||m[114]!==eS?(f=(0,s.jsxs)(ta,{zOffset:eS,children:[d,td]}),m[112]=d,m[113]=td,m[114]=eS,m[115]=f):f=m[115];let tu=f,tc;m[116]!==A||m[117]!==tu||m[118]!==j?(tc=A&&(j?(0,s.jsx)(tp,{__unstable_name:"string"==typeof j?j:void 0,children:tu}):tu),m[116]=A,m[117]=tu,m[118]=j,m[119]=tc):tc=m[119];let th=tc,tf;return m[120]!==eh||m[121]!==th?(tf=eh?(0,s.jsx)(h.AnimatePresence,{children:th}):th,m[120]=eh,m[121]=th,m[122]=tf):tf=m[122],m[123]!==ti||m[124]!==tf?(p=(0,s.jsxs)(s.Fragment,{children:[tf,ti]}),m[123]=ti,m[124]=tf,m[125]=p):p=m[125],p}),tT={"&&:not([hidden])":{display:"grid"},'&[data-as="ul"],&[data-as="ol"]':{listStyle:"none"},gridTemplateColumns:"minmax(0, 1fr)",gridAutoRows:"min-content"},tA=(0,a.styled)(eh).withConfig({displayName:"StyledStack",componentId:"sc-ux0lrj-0"})(function(){return tT}
9,function(e){let{media:t,space:n}=(0,r.i)(e.theme);return H(t,e.$space,e=>({gridGap:F(n[e])}))}),tP=(0,o.forwardRef)(function(e,t){let n,r=(0,i.c)(13),o,a,l,d;r[0]===e?(o=r[1],a=r[2],l=r[3],d=r[4]):({as:o,gap:l,space:a,...d}=e,r[0]=e,r[1]=o,r[2]=a,r[3]=l,r[4]=d);let u=void 0===l?a:l,c="string"==typeof o?o:void 0,h;return r[5]===u?h=r[6]:(h=W(u),r[5]=u,r[6]=h),r[7]!==o||r[8]!==t||r[9]!==d||r[10]!==c||r[11]!==h?(n=(0,s.jsx)(tA,{"data-as":c,"data-ui":"Stack",...d,$space:h,forwardedAs:o,ref:t}),r[7]=o,r[8]=t,r[9]=d,r[10]=c,r[11]=h,r[12]=n):n=r[12],n});function tj(e,t){let n=(0,i.c)(4),r,a;n[0]!==t||n[1]!==e?(r=()=>{e.current?.setCustomValidity(t||"")},a=[t,e],n[0]=t,n[1]=e,n[2]=r,n[3]=a):(r=n[2],a=n[3]),(0,o.useEffect)(r,a)}function tM(e){let{$fontSize:t,$iconLeft:n,$iconRight:i,$padding:o,$space:a}=e,{font:s,media:l,space:d}=(0,r.i)(e.theme),u=Math.max(o.length,a.length,t.length),c=[],h=[],f=[];for(let e=0;e<u;e+=1)f[e]=void 0===t[e]?f[e-1]:t[e],c[e]=void 0===o[e]?c[e-1]:o[e],h[e]=void 0===a[e]?h[e-1]:a[e];return H(l,c,(e,t)=>{let r=s.text.sizes[f[t]]||s.text.sizes[2],o=r.lineHeight-r.ascenderHeight-r.descenderHeight,a=d[c[t]],l=d[h[t]],u={paddingTop:F(a-r.ascenderHeight),paddingRight:F(a),paddingBottom:F(a-r.descenderHeight),paddingLeft:F(a)};return i&&(u.paddingRight=F(a+o+l)),n&&(u.paddingLeft=F(a+o+l)),u})}let tI=a.css`&:not([hidden]){display:flex;}align-items:center;`;function t_(){return tI}function tz(e){let{$scheme:t,$tone:n,$weight:i}=e,{color:o,font:s}=(0,r.i)(e.theme);return a.css`appearance:none;background:none;border:0;border-radius:0;outline:none;width:100%;box-sizing:border-box;font-family:${s.text.family};font-weight:${i&&s.text.weights[i]||s.text.weights.regular};margin:0;position:relative;z-index:1;display:block;&:-webkit-autofill,&:-webkit-autofill:hover,&:-webkit-autofill:focus,&:-webkit-autofill:active{-webkit-text-fill-color:var(--input-fg-color) !important;transition:background-color 5000s;transition-delay:86400s;}&[data-as='textarea']{resize:none;}color:var(--input-fg-color);&::placeholder{color:var(--input-placeholder-color);}&[data-scheme='${t}'][data-tone='${n}']{--input-fg-color:${o.input.default.enabled.fg};--input-placeholder-color:${o.input.default.enabled.placeholder};&:not(:invalid):not(:disabled):not(:read-only){--input-fg-color:${o.input.default.enabled.fg};--input-placeholder-color:${o.input.default.enabled.placeholder};}&:not(:invalid):disabled{--input-fg-color:${o.input.default.disabled.fg};--input-placeholder-color:${o.input.default.disabled.placeholder};}&:invalid{--input-fg-color:${o.input.invalid.enabled.fg};--input-placeholder-color:${o.input.invalid.enabled.placeholder};}&:read-only{--input-fg-color:${o.input.default.readOnly.fg};--input-placeholder-color:${o.input.default.readOnly.placeholder};}}`}function tO(e){let{font:t,media:n}=(0,r.i)(e.theme);return H(n,e.$fontSize,e=>{let n=t.text.sizes[e]||t.text.sizes[2];return{fontSize:F(n.fontSize),lineHeight:`${n.lineHeight/n.fontSize}`}})}function tL(e){let{$hasPrefix:t,$hasSuffix:n,$scheme:i,$tone:o,$unstableDisableFocusRing:s}=e,{color:l,input:d}=(0,r.i)(e.theme);return a.css`--input-box-shadow:none;position:absolute;top:0;left:0;right:0;bottom:0;display:block;pointer-events:none;z-index:0;background-color:var(--card-bg-color);box-shadow:var(--input-box-shadow);border-top-left-radius:${t?0:void 0};border-bottom-left-radius:${t?0:void 0};border-top-right-radius:${n?0:void 0};border-bottom-right-radius:${n?0:void 0};&[data-scheme='${i}'][data-tone='${o}']{--card-bg-color:${l.input.default.enabled.bg};--card-fg-color:${l.input.default.enabled.fg};*:not(:disabled) + &[data-border]{--input-box-shadow:${eI({color:l.input.default.enabled.border,width:d.border.width})};}*:not(:disabled):invalid + &{--card-bg-color:${l.input.invalid.enabled.bg};--card-fg-color:${l.input.invalid.enabled.fg};&[data-border]{--input-box-shadow:${eI({color:l.input.invalid.enabled.border,width:d.border.width})};}}*:not(:disabled):focus + &{&[data-border]{--input-box-shadow:${s?void 0:e_({border:{color:l.input.default.enabled.border,width:d.border.width},focusRing:d.text.focusRing})};}&:not([data-border]){--input-box-shadow:${s?void 0:e_({focusRing:d.text.focusRing})};}}*:not(:invalid):disabled + &{--card-bg-color:${l.input.default.disabled.bg} !important;--card-fg-color:${l.input.default.disabled.fg} !important;--card-icon-color:${l.input.default.disabled.fg} !important;&[data-border]{--input-box-shadow:${eI({color:l.input.default.disabled.border,width:d.border.width})};}}*:invalid:disabled + &{--card-bg-color:${l.input.invalid.disabled.bg} !important;--card-fg-color:${l.input.invalid.disabled.fg} !important;--card-icon-color:${l.input.invalid.disabled.fg} !important;&[data-border]{--input-box-shadow:${eI({color:l.input.invalid.disabled.border,width:d.border.width})};}}*:not(:invalid):read-only + &{--card-bg-color:${l.input.default.readOnly.bg} !important;--card-fg-color:${l.input.default.readOnly.fg} !important;}*:invalid:read-only + &{--card-bg-color:${l.input.invalid.readOnly.bg} !important;--card-fg-color:${l.input.invalid.readOnly.fg} !important;}@media (hover:hover){*:not(:disabled):not(:read-only):not(:invalid):hover + &{--card-bg-color:${l.input.default.hovered.bg};--card-fg-color:${l.input.default.hovered.fg};}*:invalid:not(:disabled):not(:read-only):hover + &{--card-bg-color:${l.input.invalid.hovered.bg};--card-fg-color:${l.input.invalid.hovered.fg};}
9*:not(:disabled):not(:read-only):not(:invalid):not(:focus):hover + &[data-border]{--input-box-shadow:${eI({color:l.input.default.hovered.border,width:d.border.width})};}*:invalid:not(:disabled):not(:read-only):not(:focus):hover + &[data-border]{--input-box-shadow:${eI({color:l.input.invalid.hovered.border,width:d.border.width})};}}}`}let tD={zIndex:2},tV=(0,a.styled)(eJ).attrs({forwardedAs:"span"}).withConfig({displayName:"StyledTextInput",componentId:"sc-7gzsyi-0"})(t_),tB=a.styled.span.withConfig({displayName:"InputRoot",componentId:"sc-7gzsyi-1"})`flex:1;min-width:0;display:block;position:relative;`,tN=(0,a.styled)(eJ).attrs({forwardedAs:"span"}).withConfig({displayName:"Prefix",componentId:"sc-7gzsyi-2"})`border-top-right-radius:0;border-bottom-right-radius:0;& > span{display:block;margin:-1px;}`,tF=(0,a.styled)(eJ).attrs({forwardedAs:"span"}).withConfig({displayName:"Suffix",componentId:"sc-7gzsyi-3"})`border-top-left-radius:0;border-bottom-left-radius:0;& > span{display:block;margin:-1px;}`,tH=a.styled.input.withConfig({displayName:"Input",componentId:"sc-7gzsyi-4"})(tM,tz,tO),tW=a.styled.span.withConfig({displayName:"Presentation",componentId:"sc-7gzsyi-5"})(ef,tL),tU=(0,a.styled)(eh).withConfig({displayName:"LeftBox",componentId:"sc-7gzsyi-6"})`position:absolute;top:0;left:0;`,tG=(0,a.styled)(eh).withConfig({displayName:"RightBox",componentId:"sc-7gzsyi-7"})`position:absolute;top:0;right:0;`,tX=(0,a.styled)(eJ).withConfig({displayName:"RightCard",componentId:"sc-7gzsyi-8"})`background-color:transparent;position:absolute;top:0;right:0;`,tY=(0,a.styled)(eD).withConfig({displayName:"TextInputClearButton",componentId:"sc-7gzsyi-9"})({"&:not([hidden])":{display:"block"}}),tq=(0,o.forwardRef)(function(e,t){let n,r,a,d,u,c=(0,i.c)(93),h,f,p,m,b,y,v,x,w,k,S,$,C,E,R,T,A,P,j;c[0]===e?(h=c[1],f=c[2],p=c[3],m=c[4],b=c[5],y=c[6],v=c[7],x=c[8],w=c[9],k=c[10],S=c[11],$=c[12],C=c[13],E=c[14],R=c[15],T=c[16],A=c[17],P=c[18],j=c[19]):({__unstable_disableFocusRing:p,border:$,clearButton:m,disabled:C,fontSize:E,gap:y,icon:h,iconRight:f,onClear:v,padding:R,prefix:x,radius:T,readOnly:w,space:A,suffix:S,customValidity:b,type:P,weight:j,...k}=e,c[0]=e,c[1]=h,c[2]=f,c[3]=p,c[4]=m,c[5]=b,c[6]=y,c[7]=v,c[8]=x,c[9]=w,c[10]=k,c[11]=S,c[12]=$,c[13]=C,c[14]=E,c[15]=R,c[16]=T,c[17]=A,c[18]=P,c[19]=j);let M=void 0===$||$,_=void 0!==C&&C,z=void 0===E?2:E,O=void 0===R?3:R,L=void 0===T?2:T,D=void 0===A?3:A,V=void 0===P?"text":P,B=(0,o.useRef)(null),N=eq(),F;c[20]===z?F=c[21]:(F=W(z),c[20]=z,c[21]=F);let H=F,U;c[22]===O?U=c[23]:(U=W(O),c[22]=O,c[23]=U);let G=U,X;c[24]===L?X=c[25]:(X=W(L),c[24]=L,c[25]=X);let Y=X,q=void 0===y?D:y,K;c[26]===q?K=c[27]:(K=W(q),c[26]=q,c[27]=K);let Z=K,J=!!m,Q=!!h,ee=!!f,et=!!S,en=!!x,er;c[28]===Symbol.for("react.memo_cache_sentinel")?(er=()=>B.current,c[28]=er):er=c[28],(0,o.useImperativeHandle)(t,er),tj(B,b),c[29]===v?n=c[30]:(n=e=>{e.preventDefault(),e.stopPropagation(),v&&v(),B.current?.focus()},c[29]=v,c[30]=n);let ei=n,eo;c[31]!==x||c[32]!==Y?(eo=x&&(0,s.jsx)(tN,{borderTop:!0,borderLeft:!0,borderBottom:!0,radius:Y,sizing:"border",tone:"inherit",children:(0,s.jsx)("span",{children:x})}),c[31]=x,c[32]=Y,c[33]=eo):eo=c[33];let ea=eo,es=M?"":void 0,el;c[34]!==h||c[35]!==H||c[36]!==G?(el=h&&(0,s.jsx)(tU,{padding:G,children:(0,s.jsxs)(eT,{size:H,children:[(0,o.isValidElement)(h)&&h,(0,l.isValidElementType)(h)&&(0,s.jsx)(h,{})]})}),c[34]=h,c[35]=H,c[36]=G,c[37]=el):el=c[37],c[38]!==J||c[39]!==f||c[40]!==H||c[41]!==G?(r=!J&&f&&(0,s.jsx)(tG,{padding:G,children:(0,s.jsxs)(eT,{size:H,children:[(0,o.isValidElement)(f)&&f,(0,l.isValidElementType)(f)&&(0,s.jsx)(f,{})]})}),c[38]=J,c[39]=f,c[40]=H,c[41]=G,c[42]=r):r=c[42],c[43]!==en||c[44]!==et||c[45]!==p||c[46]!==Y||c[47]!==N.scheme||c[48]!==N.tone||c[49]!==es||c[50]!==el||c[51]!==r?(a=(0,s.jsxs)(tW,{$hasPrefix:en,$unstableDisableFocusRing:p,$hasSuffix:et,$radius:Y,$scheme:N.scheme,$tone:N.tone,"data-border":es,"data-scheme":N.scheme,"data-tone":N.tone,children:[el,r]}),c[43]=en,c[44]=et,c[45]=p,c[46]=Y,c[47]=N.scheme,c[48]=N.tone,c[49]=es,c[50]=el,c[51]=r,c[52]=a):a=c[52];let ed=a,eu;c[53]===G?eu=c[54]:(eu=G.map(tZ),c[53]=G,c[54]=eu);let ec=eu,eh;c[55]===G?eh=c[56]:(eh=G.map(tJ),c[55]=G,c[56]=eh);let ef=eh,ep="object"==typeof m?m:I,em;c[57]!==m||c[58]!==ec||c[59]!==ef||c[60]!==ep||c[61]!==b||c[62]!==_||c[63]!==H||c[64]!==ei||c[65]!==Y||c[66]!==w?(em=!_&&!w&&m&&(0,s.jsx)(tX,{forwardedAs:"span",padding:ec,style:tD,tone:b?"critical":"inherit",children:(0,s.jsx)(tY,{"aria-label":"Clear","data-qa":"clear-button",fontSize:H,icon:g,mode:"bleed",padding:ef,radiu
9s:Y,...ep,onClick:ei,onMouseDown:tK})}),c[57]=m,c[58]=ec,c[59]=ef,c[60]=ep,c[61]=b,c[62]=_,c[63]=H,c[64]=ei,c[65]=Y,c[66]=w,c[67]=em):em=c[67];let eg=em,eb;c[68]!==Y||c[69]!==S?(eb=S&&(0,s.jsx)(tF,{borderTop:!0,borderRight:!0,borderBottom:!0,radius:Y,sizing:"border",tone:"inherit",children:(0,s.jsx)("span",{children:S})}),c[68]=Y,c[69]=S,c[70]=eb):eb=c[70];let ey=eb,ev=ee||J,ex;return c[71]!==Q||c[72]!==_||c[73]!==H||c[74]!==G||c[75]!==w||c[76]!==k||c[77]!==N.scheme||c[78]!==N.tone||c[79]!==Z||c[80]!==ev||c[81]!==V||c[82]!==j?(ex=(0,s.jsx)(tH,{"data-as":"input","data-scheme":N.scheme,"data-tone":N.tone,...k,$fontSize:H,$iconLeft:Q,$iconRight:ev,$padding:G,$scheme:N.scheme,$space:Z,$tone:N.tone,$weight:j,disabled:_,readOnly:w,ref:B,type:V}),c[71]=Q,c[72]=_,c[73]=H,c[74]=G,c[75]=w,c[76]=k,c[77]=N.scheme,c[78]=N.tone,c[79]=Z,c[80]=ev,c[81]=V,c[82]=j,c[83]=ex):ex=c[83],c[84]!==eg||c[85]!==ed||c[86]!==ex?(d=(0,s.jsxs)(tB,{children:[ex,ed,eg]}),c[84]=eg,c[85]=ed,c[86]=ex,c[87]=d):d=c[87],c[88]!==ea||c[89]!==N.tone||c[90]!==ey||c[91]!==d?(u=(0,s.jsxs)(tV,{"data-ui":"TextInput",tone
9:N.tone,children:[ea,d,ey]}),c[88]=ea,c[89]=N.tone,c[90]=ey,c[91]=d,c[92]=u):u=c[92],u});function tK(e){e.preventDefault(),e.stopPropagation()}function tZ(e){return 0===e?0:1===e||2===e?1:e-2}function tJ(e){return 0===e||1===e?0:2===e?1:e-1}function tQ(e,t,n){let r,a=(0,i.c)(9),s=void 0===t?t0:t,l;a[0]!==n||a[1]!==s||a[2]!==e?(l=t=>{if(!e)return;let r=t.target;if(!(r instanceof Node))return;let i=n?.();if(!i||i.contains(r)){for(let e of s().flat())if(e&&(r===e||e.contains(r)))return;e(t)}},a[0]=n,a[1]=s,a[2]=e,a[3]=l):l=a[3];let d=x(l),u=!!e,c;a[4]!==u||a[5]!==d?(c=()=>{if(!u)return;let e=e=>d(e);return document.addEventListener("mousedown",e),()=>{document.removeEventListener("mousedown",e)}},a[4]=u,a[5]=d,a[6]=c):c=a[6],a[7]===u?r=a[8]:(r=[u],a[7]=u,a[8]=r),(0,o.useEffect)(c,r),(0,o.useDebugValue)(e?"MouseDown On":"MouseDown Off")}function t0(){return M}function t1(e,t){let n,r=(0,i.c)(7),a;r[0]===e?a=r[1]:(a=t=>e(t),r[0]=e,r[1]=a);let s=x(a),l;r[2]!==s||r[3]!==t?(l=()=>{let e=e=>s(e);return window.addEventListener("keydown",e,t),()=>window.removeEventListener("keydown",e,t)},r[2]=s,r[3]=t,r[4]=l):l=r[4],r[5]===t?n=r[6]:(n=[t],r[5]=t,r[6]=n),(0,o.useEffect)(l,n)}let t2=a.styled.div.withConfig({displayName:"StyledLayer",componentId:"sc-c59p9w-0"})({position:"relative"}),t3=(0,o.forwardRef)(function(e,t){let n,r,a,l,d=(0,i.c)(22),u,c,h,f,p;d[0]===e?(u=d[1],c=d[2],h=d[3],f=d[4],p=d[5]):({children:u,onActivate:c,onFocus:h,style:p,...f}=e,d[0]=e,d[1]=u,d[2]=c,d[3]=h,d[4]=f,d[5]=p);let m=void 0===p?I:p,{zIndex:g,isTopLayer:b}=td(),y=(0,o.useRef)(null),v=(0,o.useRef)(null),x=(0,o.useRef)(b),w;d[6]===Symbol.for("react.memo_cache_sentinel")?(w=()=>v.current,d[6]=w):w=d[6],(0,o.useImperativeHandle)(t,w),d[7]!==b||d[8]!==c?(n=()=>{x.current!==b&&b&&c?.({activeElement:y.current}),x.current=b},r=[b,c],d[7]=b,d[8]=c,d[9]=n,d[10]=r):(n=d[9],r=d[10]),(0,o.useEffect)(n,r),d[11]!==b||d[12]!==h?(a=e=>{h?.(e);let t=v.current,n=document.activeElement;!b||!t||!n||L(n)&&B(t,n)&&(y.current=n)},d[11]=b,d[12]=h,d[13]=a):a=d[13];let k=a,S;return d[14]!==m||d[15]!==g?(S={...m,zIndex:g},d[14]=m,d[15]=g,d[16]=S):S=d[16],d[17]!==u||d[18]!==k||d[19]!==f||d[20]!==S?(l=(0,s.jsx)(t2,{...f,"data-ui":"Layer",onFocus:k,ref:v,style:S,children:u}),d[17]=u,d[18]=k,d[19]=f,d[20]=S,d[21]=l):l=d[21],l}),t5=(0,o.forwardRef)(function(e,t){let n,r=(0,i.c)(11),o,a,l;r[0]===e?(o=r[1],a=r[2],l=r[3]):({children:o,zOffset:l,...a}=e,r[0]=e,r[1]=o,r[2]=a,r[3]=l);let d=void 0===l?1:l,u;return r[4]!==o||r[5]!==t||r[6]!==a?(u=(0,s.jsx)(t3,{...a,ref:t,children:o}),r[4]=o,r[5]=t,r[6]=a,r[7]=u):u=r[7],r[8]!==u||r[9]!==d?(n=(0,s.jsx)(ta,{zOffset:d,children:u}),r[8]=u,r[9]=d,r[10]=n):n=r[10],n}),t4=(0,a.styled)(eh).withConfig({displayName:"StyledInline",componentId:"sc-zsbqh7-0"})(function(){return{lineHeight:"0","&&:not([hidden])":{display:"block"},"& > div":{display:"inline-block",verticalAlign:"middle"}}},function(e){let{media:t,space:n}=(0,r.i)(e.theme);return H(t,e.$space,e=>{let t=F(.5===e?n[1]/2:n[e]);return{margin:`-${t} 0 0 -${t}`,"& > div":{padding:`${t} 0 0 ${t}`}}})}),t6=(0,o.forwardRef)(function(e,t){let n,r=(0,i.c)(16),a,l,d,u,c;r[0]===e?(a=r[1],l=r[2],d=r[3],u=r[4],c=r[5]):({as:a,children:l,gap:u,space:d,...c}=e,r[0]=e,r[1]=a,r[2]=l,r[3]=d,r[4]=u,r[5]=c);let h=void 0===u?d:u,f;r[6]===l?f=r[7]:(f=o.Children.map(l,t7),r[6]=l,r[7]=f);let p=f,m;return r[8]===h?m=r[9]:(m=W(h),r[8]=h,r[9]=m),r[10]!==a||r[11]!==p||r[12]!==c||r[13]!==m||r[14]!==t?(n=(0,s.jsx)(t4,{"data-ui":"Inline",...c,$space:m,forwardedAs:a,ref:t,children:p}),r[10]=a,r[11]=p,r[12]=c,r[13]=m,r[14]=t,r[15]=n):n=r[15],n});function t7(e){return e&&(0,s.jsx)("div",{children:e})}let t9=a.styled.kbd.withConfig({displayName:"StyledKBD",componentId:"sc-xzhxcv-0"})(ef,function(){return a.css`--card-bg-color:var(--card-kbd-bg-color);--card-border-color:var(--card-kbd-border-color);--card-fg-color:var(--card-kbd-fg-color);box-shadow:inset 0 0 0 1px var(--card-border-color);background:var(--card-bg-color);font:inherit;vertical-align:top;&:not([hidden]){display:inline-block;}`}),t8=(0,o.forwardRef)(function(e,t){let n,r,o,a=(0,i.c)(19),l,d,u,c,h;a[0]===e?(l=a[1],d=a[2],u=a[3],c=a[4],h=a[5]):({children:l,fontSize:u,padding:c,radius:h,...d}=e,a[0]=e,a[1]=l,a[2]=d,a[3]=u,a[4]=c,a[5]=h);let f=void 0===u?0:u,p=void 0===c?1:c,m=void 0===h?2:h,g;return a[6]===m?g=a[7]:(g=W(m),a[6]=m,a[7]=g),a[8]!==l||a[9]!==f?(n=(0,s.jsx)(eT,{as:"span",size:f,weight:"semibold",children:l}),a[8]=l,a[9]=f,a[10]=n):n=a[10],a[11]!==p||a[12]!==n?(r=(0,s.jsx)(eh,{as:"span",padding:p,children:n}),a[11]=p,a[12]=n,a[13]=r):r=a[13],a[14]!==t||a[15]!==d||a[16]!==g||a[17]!==r?(o=(0,s.jsx)(t9,{"data-ui":"KBD",...d,$radius:g,ref:t,children:r}),a[14]=t,a[15]=d,a[16]=g,a[17]=r,a[18]=o):o=a[18],o}),ne=a.styled.kbd.withConfig({displayName:"StyledHotkeys",componentId:"sc-1soubc-0"})`font:inherit;padding:1px;&:not([hidden]){display:block;}`,nt=(0,a.styled)(t8).withConfig({displayName:"Key",componentId:"sc-1soubc-1"})`&:not([hidden]){display:block;}`,nn=(0,o.forwardRef)(function(e,t){let n,r,o,a=(0,i.c)(27),l,d,u,c,h,f,p;a[0]===e?(l=a[1],d=a[2],u=a[3],c=a[4],h=a[5],f=a[6],p=a[7]):({fontSize:l,gap:d,keys:u,padding:c,radius:h,space:p,...f}=e,a[0]=e,a[1]=l,a[2]=d,a[3]=u,a[4]=c,a[5]=h,a[6]=f,a[7]=p);let m=void 0===d?void 0===p?.5:p:d,g;a[8]===m?g=a[9]:(g=W(m),a[8]=m,a[9]=g);let b=g;if(!u||0===u.length){let e;return a[10]===Symbol.for("react.memo_cache_sentinel")?(e=(0,s.jsx)(s.Fragment,{}),a[10]=e):e=a[10],e}if(a[11]!==l||a[12]!==u||a[13]!==c||a[14]!==h){let e;a[16]!==l||a[17]!==c||a[18]!==h?(e=(e,t)=>(0,s.jsx)(nt,{fontSize:l,padding:c,radius:h,children:e},t),a[16]=l,a[17]=c,a[18]=h,a[19]=e):e=a[19],n=u.map(e),a[11]=l,a[12]=u,a[13]=c,a[14]=h,a[15]=n}else n=a[15];return a[20]!==b||a[21]!==n?(r=(0,s.jsx)(t6,{as:"span",gap:b,children:n}),a[20]=b,a[21]=n,a[22]=r):r=a[22],a[23]!==t||a[24]!==f||a[25]!==r?(o=(0,s.jsx)(ne,{"data-ui":"Hotkeys",...f,ref:t,children:r}),a[23]=t,a[24]=f,a[25]=r,a[26]=o):o=a[26],o}),nr=eG("@sanity/ui/context/menu",null);function ni(e){return D(e)&&"true"!==e.getAttribute("data-disabled")||V(e)&&!e.disabled}function no(e){return e.filter(ni)}let na=[];function ns(){}let nl=(0,a.styled)(eh).withConfig({displayName:"StyledMenu",componentId:"sc-xvs9y5-0"})`outline:none;overflow:auto;`,nd=(0,o.forwardRef)(function(e,t){let n,r,a,l,d,u=(0,i.c)(50),c,h,f,p,m,g,b,y,v,x,w,k,S;if(u[0]!==e){let{children:t,focusFirst:n,focusLast:r,onClickOutside:i,onEscape:o,onItemClick:a,onItemSelect:s,onKeyDown:l,originElement:d,padding:$,registerElement:C,shouldFocus:E,gap:R,space:T,...A}=e;h=t,p=i,m=o,g=a,b=s,y=l,v=d,k=$,x=C,c=E,f=R,S=T,w=A,u[0]=e,u[1]=c,u[2]=h,u[3]=f,u[4]=p,u[5]=m,u[6]=g,u[7]=b,u[8]=y,u[9]=v,u[10]=x,u[11]=w,u[12]=k,u[13]=S}else c=u[1],h=u[2],f=u[3],p=u[4],m=u[5],g=u[6],b=u[7],y=u[8],v=u[9],x=u[10],w=u[11],k=u[12],S=u[13];let $=void 0===k?1:k,C=void 0===f?void 0===S?1:S:f,E=c??(e.focusFirst&&"first"||e.focusLast&&"last"||null),R=(0,o.useRef)(null),T;u[14]===Symbol.for("react.memo_cache_sentinel")?(T=()=>R.current,u[14]=T):T=u[14],(0,o.useImperativeHandle)(t,T);let{isTopLayer:A}=td(),P;u[15]!==y||u[16]!==v||u[17]!==E?(P={onKeyDown:y,originElement:v,shouldFocus:E,rootElementRef:R},u[15]=y,u[16]=v,u[17]=E,u[18]=P):P=u[18];let{activeElement:j,activeIndex:M,handleItemMouseEnter:I,handleItemMouseLeave:_,handleKeyDown:z,mount:O}=function(e){let t,n=(0,i.c)(21),{onKeyDown:r,originElement:a,shouldFocus:s,rootElementRef:l}=e,d;n[0]===Symbol.for("react.memo_cache_sentinel")?(d=[],n[0]=d):d=n[0];let u=(0,o.useRef)(d),[c,h]=(0,o.useState)(-1),f=(0,o.useRef)(c),[p,m]=(0,o.useState)(null),g;n[1]===Symbol.for("react.memo_cache_sentinel")?(g=e=>{h(e),f.current=e,m(u.current[e]||null)},n[1]=g):g=n[1];let b=g,y;n[2]===l?y=n[3]:(y=(e,t)=>e?(-1===u.current.indexOf(e)&&(u.current.push(e),function(e,t){if(!e)return;let n=new WeakMap;for(let r of t)n.set(r,function(e,t){let n=[],r=t;for(;r!==e;){let t=r.parentElement;if(!t)break;let i=Array.from(t.childNodes).indexOf(r);if(n.unshift(i),t===e)break;r=t}return n}(e,r));t.sort((e,t)=>
9{let r=n.get(e)||na,i=n.get(t)||na,o=Math.max(r.length,i.length);for(let e=0;e<o;e+=1){let t=r[e]||-1,n=i[e]||-1;if(t!==n)return t-n}return 0})}(l.current,u.current)),t&&b(u.current.indexOf(e)),()=>{let t=u.current.indexOf(e);t>-1&&u.current.splice(t,1)}):ns,n[2]=l,n[3]=y);let v=y,x;n[4]!==r||n[5]!==a?(x=e=>{if("Tab"===e.key){a&&a.focus();return}if("Home"===e.key){e.preventDefault(),e.stopPropagation();let t=no(u.current)[0];if(!t)return;b(u.current.indexOf(t));return}if("End"===e.key){e.preventDefault(),e.stopPropagation();let t=no(u.current),n=t[t.length-1];if(!n)return;b(u.current.indexOf(n));return}if("ArrowUp"===e.key){e.preventDefault(),e.stopPropagation();let t=no(u.current),n=t.length;if(0===n)return;let r=u.current[f.current],i=t.indexOf(r),o=t[i=(i-1+n)%n];b(u.current.indexOf(o));return}if("ArrowDown"===e.key){e.preventDefault(),e.stopPropagation();let t=no(u.current),n=t.length;if(0===n)return;let r=u.current[f.current],i=t.indexOf(r),o=t[i=(i+1)%n];b(u.current.indexOf(o));return}r&&r(e)},n[4]=r,n[5]=a,n[6]=x):x=n[6];let w=x,k;n[7]===Symbol.for("react.memo_cache_sentinel")?(k=e=>{let t=e.currentTarget;b(u.current.indexOf(t))},n[7]=k):k=n[7];let S=k,$;n[8]===l?$=n[9]:($=()=>{b(-2),l.current?.focus()},n[8]=l,n[9]=$);let C=$,E,R;return n[10]!==c||n[11]!==l||n[12]!==s?(E=()=>{if(!l.current)return;let e=requestAnimationFrame(()=>{if(-1===c){if("first"===s){let e=no(u.current)[0];e&&b(u.current.indexOf(e))}if("last"===s){let e=no(u.current),t=e[e.length-1];t&&b(u.current.indexOf(t))}return}(u.current[c]||null)?.focus()});return()=>cancelAnimationFrame(e)},R=[c,l,b,s],n[10]=c,n[11]=l,n[12]=s,n[13]=E,n[14]=R):(E=n[13],R=n[14]),(0,o.useEffect)(E,R),n[15]!==p||n[16]!==c||n[17]!==C||n[18]!==w||n[19]!==v?(t={activeElement:p,activeIndex:c,handleItemMouseEnter:S,handleItemMouseLeave:C,handleKeyDown:w,mount:v},n[15]=p,n[16]=c,n[17]=C,n[18]=w,n[19]=v,n[20]=t):t=n[20],t}(P),L=(0,o.useRef)(null),D;u[19]===x?D=u[20]:(D=e=>{L.current&&=(L.current(),null),R.current=e,R.current&&x&&(L.current=x(R.current))},u[19]=x,u[20]=D);let V=D,B,N;u[21]!==M||u[22]!==b?(B=()=>{b&&b(M)},N=[M,b],u[21]=M,u[22]=b,u[23]=B,u[24]=N):(B=u[23],N=u[24]),(0,o.useEffect)(B,N),u[25]===Symbol.for("react.memo_cache_sentinel")?(n=()=>[R.current],u[25]=n):n=u[25],tQ(A&&p,n),u[26]!==A||u[27]!==m?(r=e=>{A&&"Escape"===e.key&&(e.stopPropagation(),m&&m())},u[26]=A,u[27]=m,u[28]=r):r=u[28],t1(r),u[29]!==j||u[30]!==I||u[31]!==_||u[32]!==O||u[33]!==p||u[34]!==m||u[35]!==g||u[36]!==x?(a={version:2,activeElement:j,mount:O,onClickOutside:p,onEscape:m,onItemClick:g,onItemMouseEnter:I,onItemMouseLeave:_,registerElement:x},u[29]=j,u[30]=I,u[31]=_,u[32]=O,u[33]=p,u[34]=m,u[35]=g,u[36]=x,u[37]=a):a=u[37];let F=a,H;return u[38]!==h||u[39]!==C?(H=(0,s.jsx)(tP,{gap:C,children:h}),u[38]=h,u[39]=C,u[40]=H):H=u[40],u[41]!==z||u[42]!==V||u[43]!==$||u[44]!==w||u[45]!==H?(l=(0,s.jsx)(nl,{"data-ui":"Menu",...w,onKeyDown:z,padding:$,ref:V,role:"menu",tabIndex:-1,children:H}),u[41]=z,u[42]=V,u[43]=$,u[44]=w,u[45]=H,u[46]=l):l=u[46],u[47]!==l||u[48]!==F?(d=(0,s.jsx)(nr.Provider,{value:F,children:l}),u[47]=l,u[48]=F,u[49]=d):d=u[49],d}),nu=a.styled.hr.withConfig({displayName:"MenuDivider",componentId:"sc-sxuath-0"})`height:1px;border:0;background:var(--card-hairline-soft-color);margin:0;`,nc=(0,a.styled)(eh).withConfig({displayName:"Selectable",componentId:"sc-njdnrn-0"})(ef,function(){return a.css`background-color:inherit;color:inherit;&[data-as='button']{-webkit-font-smoothing:inherit;appearance:none;outline:none;font:inherit;text-align:inherit;border:0;width:-moz-available;width:-webkit-fill-available;width:stretch;}&[data-as='a']{text-decoration:none;}`},function(e){let{$tone:t}=e,{color:n,style:i}=(0,r.i)(e.theme),o=n.selectable[t];return a.css`${eM(n,o.enabled)} background-color:var(--card-bg-color);color:var(--card-fg-color);outline:none;&[data-as='button']{&:disabled{${eM(n,o.disabled)}}&:not(:disabled){&[aria-pressed='true']{${eM(n,o.pressed)}}&[data-selected],&[aria-selected='true'] > &{${eM(n,o.selected)}}@media (hover:hover){&:not([data-selected]){&[data-hovered],&:hover{${eM(n,o.hovered)}}&:active{${eM(n,o.pressed)}}}}}}&[data-as='a']{&[data-disabled]{${eM(n,o.disabled)}}&:not([data-disabled]){&[data-pressed]{${eM(n,o.pressed)}}&[data-selected]{${eM(n,o.selected)}}@media (hover:hover){&:not([data-selected]){&[data-hovered],&:hover{${eM(n,o.hovered)}}&:active{${eM(n,o.pressed)}}}}}}${i?.card?.root}`});function nh(){let e=(0,o.useContext)(nr);if(!e)throw Error("useMenu(): missing context value");if(!e8(e)||2!==e.version)throw Error("useMenu(): the context value is not compatible");return e}let nf=(0,o.forwardRef)(function(e,t){let n,r,a,d,u,c,h=(0,i.c)(
976),f,p,m,g,b,y,v,x,w,k,S,$,C,E,R,T,A,P,j,M,I,_,z;h[0]===e?(f=h[1],p=h[2],m=h[3],g=h[4],b=h[5],y=h[6],v=h[7],x=h[8],w=h[9],k=h[10],S=h[11],$=h[12],C=h[13],E=h[14],R=h[15],T=h[16],A=h[17],P=h[18],j=h[19],M=h[20],I=h[21],_=h[22],z=h[23]):({as:A,children:m,disabled:g,fontSize:P,hotkeys:y,icon:f,iconRight:p,onClick:v,padding:j,paddingX:$,paddingY:C,paddingTop:S,paddingRight:k,paddingBottom:x,paddingLeft:w,pressed:E,radius:M,selected:T,gap:b,space:I,text:z,tone:_,...R}=e,h[0]=e,h[1]=f,h[2]=p,h[3]=m,h[4]=g,h[5]=b,h[6]=y,h[7]=v,h[8]=x,h[9]=w,h[10]=k,h[11]=S,h[12]=$,h[13]=C,h[14]=E,h[15]=R,h[16]=T,h[17]=A,h[18]=P,h[19]=j,h[20]=M,h[21]=I,h[22]=_,h[23]=z);let O=void 0===A?"button":A,L=void 0===P?1:P,D=void 0===j?3:j,V=void 0===M?2:M,B=void 0===I?3:I,N=void 0===_?"default":_,F=void 0===b?B:b,{scheme:H}=eq(),U=nh(),{activeElement:G,mount:X,onItemClick:Y,onItemMouseEnter:q,onItemMouseLeave:K}=U,Z=q??U.onItemMouseEnter,J=K??U.onItemMouseLeave,[Q,ee]=(0,o.useState)(null),et=!!G&&G===Q,en=(0,o.useRef)(null),er;h[24]===Symbol.for("react.memo_cache_sentinel")?(er=()=>en.current,h[24]=er):er=h[24],(0,o.useImperativeHandle)(t,er),h[25]!==X||h[26]!==Q||h[27]!==T?(n=()=>X(Q,T),r=[X,Q,T],h[25]=X,h[26]=Q,h[27]=T,h[28]=n,h[29]=r):(n=h[28],r=h[29]),(0,o.useEffect)(n,r),h[30]!==g||h[31]!==v||h[32]!==Y?(a=e=>{g||(v&&v(e),Y&&Y())},h[30]=g,h[31]=v,h[32]=Y,h[33]=a):a=h[33];let ei=a,eo;h[34]!==D||h[35]!==x||h[36]!==w||h[37]!==k||h[38]!==S||h[39]!==$||h[40]!==C?(eo={padding:D,paddingX:$,paddingY:C,paddingTop:S,paddingRight:k,paddingBottom:x,paddingLeft:w},h[34]=D,h[35]=x,h[36]=w,h[37]=k,h[38]=S,h[39]=$,h[40]=C,h[41]=eo):eo=h[41];let ea=eo,es;h[42]===L?es=h[43]:(es=W(L).map(np),h[42]=L,h[43]=es);let el=es,ed;h[44]===Symbol.for("react.memo_cache_sentinel")?(ed=e=>{en.current=e,ee(e)},h[44]=ed):ed=h[44];let eu=ed,ec="button"!==O&&E?"":void 0,ef=et?"":void 0,ep=g?"":void 0,em;h[45]===V?em=h[46]:(em=W(V),h[45]=V,h[46]=em),h[47]===Symbol.for("react.memo_cache_sentinel")?(d=W(0),h[47]=d):d=h[47];let eg=g?"default":N,eb="button"===O?"button":void 0,ey;return h[48]!==f||h[49]!==p||h[50]!==L||h[51]!==y||h[52]!==el||h[53]!==ea||h[54]!==F||h[55]!==z?(ey=(f||z||p)&&(0,s.jsxs)(ek,{as:"span",gap:F,align:"center",...ea,children:[f&&(0,s.jsxs)(eT,{size:L,children:[(0,o.isValidElement)(f)&&f,(0,l.isValidElementType)(f)&&(0,s.jsx)(f,{})]}),z&&(0,s.jsx)(eh,{flex:1,children:(0,s.jsx)(eT,{size:L,textOverflow:"ellipsis",weight:"medium",children:z})}),y&&(0,s.jsx)(nn,{fontSize:el,keys:y,style:{marginTop:-4,marginBottom:-4}}),p&&(0,s.jsxs)(eT,{size:L,children:[(0,o.isValidElement)(p)&&p,(0,l.isValidElementType)(p)&&(0,s.jsx)(p,{})]})]}),h[48]=f,h[49]=p,h[50]=L,h[51]=y,h[52]=el,h[53]=ea,h[54]=F,h[55]=z,h[56]=ey):ey=h[56],h[57]!==m||h[58]!==ea?(u=m&&(0,s.jsx)(eh,{as:"span",...ea,children:m}),h[57]=m,h[58]=ea,h[59]=u):u=h[59],h[60]!==O||h[61]!==g||h[62]!==ei||h[63]!==Z||h[64]!==J||h[65]!==R||h[66]!==H||h[67]!==ec||h[68]!==ef||h[69]!==ep||h[70]!==em||h[71]!==eg||h[72]!==eb||h[73]!==ey||h[74]!==u?(c=(0,s.jsxs)(nc,{"data-ui":"MenuItem",role:"menuitem",...R,"data-pressed":ec,"data-selected":ef,"data-disabled":ep,forwardedAs:O,$radius:em,$padding:d,$tone:eg,$scheme:H,disabled:g,onClick:ei,onMouseEnter:Z,onMouseLeave:J,ref:eu,tabIndex:-1,type:eb,children:[ey,u]}),h[60]=O,h[61]=g,h[62]=ei,h[63]=Z,h[64]=J,h[65]=R,h[66]=H,h[67]=ec,h[68]=ef,h[69]=ep,h[70]=em,h[71]=eg,h[72]=eb,h[73]=ey,h[74]=u,h[75]=c):c=h[75],c});function np(e){return e-1}let nm=(0,a.styled)(eD).withConfig({displayName:"CustomButton",componentId:"sc-whlh6p-0"})`max-width:100%;`,ng=(0,o.forwardRef)(function(e,t){let n,r=(0,i.c)(30),a,l,d,u,c,h,f,p,m,g;r[0]===e?(a=r[1],l=r[2],d=r[3],u=r[4],c=r[5],h=r[6],f=r[7],p=r[8],m=r[9],g=r[10]):({icon:l,id:d,focused:a,fontSize:m,label:u,onClick:c,onFocus:h,padding:g,selected:p,...f}=e,r[0]=e,r[1]=a,r[2]=l,r[3]=d,r[4]=u,r[5]=c,r[6]=h,r[7]=f,r[8]=p,r[9]=m,r[10]=g);let b=void 0===m?1:m,y=void 0===g?2:g,v=(0,o.useRef)(null),x=(0,o.useRef)(!1),w;r[11]===Symbol.for("react.memo_cache_sentinel")?(w=()=>v.current,r[11]=w):w=r[11],(0,o.useImperativeHandle)(t,w),r[12]===Symbol.for("react.memo_cache_sentinel")?(n=()=>{x.current=!1},r[12]=n):n=r[12];let k=n,S;
9r[13]===h?S=r[14]:(S=e=>{x.current=!0,h&&h(e)},r[13]=h,r[14]=S);let $=S,C,E;r[15]===a?(C=r[16],E=r[17]):(C=()=>{a&&!x.current&&(v.current&&v.current.focus(),x.current=!0)},E=[a],r[15]=a,r[16]=C,r[17]=E),(0,o.useEffect)(C,E);let R=p?"true":"false",T=p?0:-1,A;return r[18]!==b||r[19]!==$||r[20]!==l||r[21]!==d||r[22]!==u||r[23]!==c||r[24]!==y||r[25]!==f||r[26]!==p||r[27]!==R||r[28]!==T?(A=(0,s.jsx)(nm,{"data-ui":"Tab",...f,"aria-selected":R,fontSize:b,icon:l,id:d,mode:"bleed",onClick:c,onBlur:k,onFocus:$,padding:y,ref:v,role:"tab",selected:p,tabIndex:T,text:u,type:"button"}),r[18]=b,r[19]=$,r[20]=l,r[21]=d,r[22]=u,r[23]=c,r[24]=y,r[25]=f,r[26]=p,r[27]=R,r[28]=T,r[29]=A):A=r[29],A}),nb=(0,a.styled)(t6).withConfig({displayName:"CustomInline",componentId:"sc-tlz8f1-0"})`& > div{display:inline-block;vertical-align:middle;max-width:100%;box-sizing:border-box;}`,ny=(0,o.forwardRef)(function(e,t){let n=(0,i.c)(15),r,a;n[0]===e?(r=n[1],a=n[2]):({children:r,...a}=e,n[0]=e,n[1]=r,n[2]=a);let[l,d]=(0,o.useState)(-1),u;if(n[3]!==r||n[4]!==l){let e=o.Children.toArray(r).filter(o.isValidElement),t;n[6]===l?t=n[7]:(t=(e,t)=>
9(0,o.cloneElement)(e,{focused:l===t,key:t,onFocus:()=>d(t)}),n[6]=l,n[7]=t),u=e.map(t),n[3]=r,n[4]=l,n[5]=u}else u=n[5];let c=u,h=c.length,f;n[8]===h?f=n[9]:(f=e=>{"ArrowLeft"===e.key&&d(e=>(e+h-1)%h),"ArrowRight"===e.key&&d(e=>(e+1)%h)},n[8]=h,n[9]=f);let p=f,m;return n[10]!==p||n[11]!==t||n[12]!==a||n[13]!==c?(m=(0,s.jsx)(nb,{"data-ui":"TabList",...a,onKeyDown:p,ref:t,role:"tablist",children:c}),n[10]=p,n[11]=t,n[12]=a,n[13]=c,n[14]=m):m=n[14],m}),nv={"&&:not([hidden])":{display:"grid"},'&[data-as="ul"],&[data-as="ol"]':{listStyle:"none"}},nx={auto:"auto",min:"min-content",max:"max-content",fr:"minmax(0, 1fr)"},nw={auto:"auto",min:"min-content",max:"max-content",fr:"minmax(0, 1fr)"};function nk(e){let{media:t}=(0,r.i)(e.theme);return H(t,e.$autoFlow,e=>({gridAutoFlow:e}))}function nS(e){let{media:t}=(0,r.i)(e.theme);return H(t,e.$autoRows,e=>({gridAutoRows:e&&nw[e]}))}function n$(e){let{media:t}=(0,r.i)(e.theme);return H(t,e.$autoCols,e=>({gridAutoColumns:e&&nx[e]}))}function nC(e){let{media:t}=(0,r.i)(e.theme);return H(t,e.$columns,e=>({gridTemplateColumns:e&&`repeat(${e},minmax(0,1fr));`}))}function nE(e){let{media:t}=(0,r.i)(e.theme);return H(t,e.$rows,e=>({gridTemplateRows:e&&`repeat(${e},minmax(0,1fr));`}))}function nR(e){let{media:t,space:n}=(0,r.i)(e.theme);return H(t,e.$gap,e=>({gridGap:e?F(n[e]):void 0}))}function nT(e){let{media:t,space:n}=(0,r.i)(e.theme);return H(t,e.$gapX,e=>({columnGap:e?F(n[e]):void 0}))}function nA(e){let{media:t,space:n}=(0,r.i)(e.theme);return H(t,e.$gapY,e=>({rowGap:e?F(n[e]):void 0}))}let nP=(0,a.styled)(eh).withConfig({displayName:"StyledGrid",componentId:"sc-osmjhz-0"})(function(){return[nv,nk,nS,n$,nC,nE,nR,nT,nA]}),nj=(0,o.forwardRef)(function(e,t){let n,r,o,a,l,d,u=(0,i.c)(44),c,h,f,p,m,g,b,y,v,x,w,k,S;u[0]===e?(c=u[1],h=u[2],f=u[3],p=u[4],m=u[5],g=u[6],b=u[7],y=u[8],v=u[9],x=u[10],w=u[11],k=u[12],S=u[13]):({as:c,autoRows:p,autoCols:h,autoFlow:f,columns:g,gridTemplateColumns:x,gap:b,gapX:y,gapY:v,rows:S,gridTemplateRows:w,children:m,...k}=e,u[0]=e,u[1]=c,u[2]=h,u[3]=f,u[4]=p,u[5]=m,u[6]=g,u[7]=b,u[8]=y,u[9]=v,u[10]=x,u[11]=w,u[12]=k,u[13]=S);let $="string"==typeof c?c:void 0,C;u[14]===p?C=u[15]:(C=W(p),u[14]=p,u[15]=C),u[16]===h?n=u[17]:(n=W(h),u[16]=h,u[17]=n),u[18]===f?r=u[19]:(r=W(f),u[18]=f,u[19]=r);let E=void 0===x?g:x,R;u[20]===E?R=u[21]:(R=W(E),u[20]=E,u[21]=R),u[22]===b?o=u[23]:(o=W(b),u[22]=b,u[23]=o),u[24]===y?a=u[25]:(a=W(y),u[24]=y,u[25]=a),u[26]===v?l=u[27]:(l=W(v),u[26]=v,u[27]=l);let T=void 0===w?S:w,A;return u[28]===T?A=u[29]:(A=W(T),u[28]=T,u[29]=A),u[30]!==c||u[31]!==m||u[32]!==t||u[33]!==k||u[34]!==$||u[35]!==C||u[36]!==A||u[37]!==n||u[38]!==r||u[39]!==R||u[40]!==o||u[41]!==a||u[42]!==l?(d=(0,s.jsx)(nP,{"data-as":$,"data-ui":"Grid",...k,$autoRows:C,$autoCols:n,$autoFlow:r,$columns:R,$gap:o,$gapX:a,$gapY:l,$rows:A,forwardedAs:c,ref:t,children:m}),u[30]=c,u[31]=m,u[32]=t,u[33]=k,u[34]=$,u[35]=C,u[36]=A,u[37]=n,u[38]=r,u[39]=R,u[40]=o,u[41]=a,u[42]=l,u[43]=d):d=u[43],d});function nM(){return!1}function nI(e){let t,n=(0,i.c)(5),[r,a]=(0,o.useState)(e),s=(0,o.useRef)(void 0),l;n[0]===Symbol.for("react.memo_cache_sentinel")?(l=(e,t)=>{let n=()=>{a(e)};if(s.current&&=void clearTimeout(s.current),!t)return n();s.current=setTimeout(n,t)},n[0]=l):l=n[0];let d=l,u,c;return n[1]===Symbol.for("react.memo_cache_sentinel")?(u=()=>()=>{s.current&&clearTimeout(s.current)},c=[],n[1]=u,n[2]=c):(u=n[1],c=n[2]),(0,o.useEffect)(u,c),n[3]===r?t=n[4]:(t=[r,d],n[3]=r,n[4]=t),t}let n_={top:["top-end","top-start","bottom","left","right"],"top-start":["top","top-end","bottom-start","left-start","right-start"],"top-end":["top","top-start","bottom-end","left-end","right-end"],bottom:["bottom-end","bottom-start","top","left","right"],"bottom-start":["bottom","bottom-end","top-start","left-start","right-start"],"bottom-end":["bottom","bottom-start","top-end","left-end","right-end"],left:["left-end","left-start","right","top","bottom"],"left-start":["left","left-end","right-start","top-start","bottom-start"],"left-end":["left","left-start","right-end","top-end","bottom-end"],right:["right-end","right-start","left","top","bottom"],"right-start":["right","right-end","left-start","to
9p-start","bottom-start"],"right-end":["right","right-start","left-end","top-end","bottom-end"]},nz=(0,a.styled)(f.motion.create(eJ)).withConfig({displayName:"MotionCard",componentId:"sc-gv6m6q-0"})`will-change:transform;`,nO=(0,o.forwardRef)(function(e,t){let n,r,o,a,l=(0,i.c)(48),d,u,c,h,f,p,m,g,b,y,v,x,w,k,S;l[0]===e?(d=l[1],u=l[2],c=l[3],h=l[4],f=l[5],p=l[6],m=l[7],g=l[8],b=l[9],y=l[10],v=l[11],x=l[12],w=l[13],k=l[14],S=l[15]):({animate:d,arrow:u,arrowRef:c,arrowX:h,arrowY:f,children:p,originX:m,originY:g,padding:b,placement:y,radius:v,scheme:w,shadow:k,style:S,...x}=e,l[0]=e,l[1]=d,l[2]=u,l[3]=c,l[4]=h,l[5]=f,l[6]=p,l[7]=m,l[8]=g,l[9]=b,l[10]=y,l[11]=v,l[12]=x,l[13]=w,l[14]=k,l[15]=S);let $=d?"transform":void 0,C;l[16]!==m||l[17]!==g||l[18]!==S||l[19]!==$?(C={originX:m,originY:g,willChange:$,...S},l[16]=m,l[17]=g,l[18]=S,l[19]=$,l[20]=C):C=l[20];let E=C,R=null===h?void 0:h,T=null===f?void 0:f,A;l[21]!==R||l[22]!==T?(A={left:R,top:T,right:void 0,bottom:void 0},l[21]=R,l[22]=T,l[23]=A):A=l[23];let P=A,j;return l[24]===d?j=l[25]:(j=d?["hidden","initial"]:void 0,l[24]=d,l[25]=j),l[26]===d?n=l[27]:(n=d?["visible","scaleIn"]:void 0,l[26]=d,l[27]=n),l[28]===d?r=l[29]:(r=d?["hidden","scaleOut"]:void 0,l[28]=d,l[29]=r),l[30]!==u||l[31]!==c||l[32]!==P?(o=u&&(0,s.jsx)(tk,{ref:c,style:P,width:15,height:6,radius:2}),l[30]=u,l[31]=c,l[32]=P,l[33]=o):o=l[33],l[34]!==p||l[35]!==b||l[36]!==y||l[37]!==v||l[38]!==t||l[39]!==x||l[40]!==E||l[41]!==w||l[42]!==k||l[43]!==j||l[44]!==n||l[45]!==r||l[46]!==o?(a=(0,s.jsxs)(nz,{"data-ui":"Tooltip__card",...x,"data-placement":y,padding:b,radius:v,ref:t,scheme:w,shadow:k,style:E,variants:_,transition:O,initial:j,animate:n,exit:r,children:[p,o]}),l[34]=p,l[35]=b,l[36]=y,l[37]=v,l[38]=t,l[39]=x,l[40]=E,l[41]=w,l[42]=k,l[43]=j,l[44]=n,l[45]=r,l[46]=o,l[47]=a):a=l[47],a}),nL=eG("@sanity/ui/context/tooltipDelayGroup",null);function nD(){return(0,o.useContext)(nL)}let nV=(0,a.styled)(t5).withConfig({displayName:"StyledTooltip",componentId:"sc-4nppkj-0"})`pointer-events:none;`,nB=(0,o.forwardRef)(function(e,t){let n,r,a,l,d,f,p,m,g,b,y,v,w,k,S,$=(0,i.c)(137),C=tn(),{layer:E}=ep(),R,T,A,P,j,M,I,_,z,O,L,D,V,B,N,F;$[0]===e?(R=$[1],T=$[2],A=$[3],P=$[4],j=$[5],M=$[6],I=$[7],_=$[8],z=$[9],O=$[10],L=$[11],D=$[12],V=$[13],B=$[14],N=$[15],F=$[16]):({animate:L,arrow:D,boundaryElement:R,children:P,content:j,disabled:I,fallbackPlacements:T,padding:V,placement:B,portal:_,radius:N,scheme:O,shadow:F,zOffset:A,delay:M,...z}=e,$[0]=e,$[1]=R,$[2]=T,$[3]=A,$[4]=P,$[5]=j,$[6]=M,$[7]=I,$[8]=_,$[9]=z,$[10]=O,$[11]=L,$[12]=D,$[13]=V,$[14]=B,$[15]=N,$[16]=F);let H=void 0!==L&&L,U=void 0!==D&&D,G=void 0===V?2:V,X=void 0===B?"bottom":B,Y=void 0===N?2:N,q=void 0===F?2:F,K=R??C?.element,Z=T??n_[e.placement??"bottom"],J=A??E.tooltip.zOffset,Q=!e4()&&H,ee;$[17]===Z?ee=$[18]:(ee=W(Z),$[17]=Z,$[18]=ee);let et=ee,en=(0,o.useRef)(null),[er,ei]=(0,o.useState)(null),eo=(0,o.useRef)(null),[ea,es]=(0,o.useState)(0),el;$[19]===Symbol.for("react.memo_cache_sentinel")?(el=()=>en.current,$[19]=el):el=$[19],(0,o.useImperativeHandle)(t,el);let ed=tf(),eu="string"==typeof _?ed.elements?.[_]||null:ed.element,ec;$[20]!==Q||$[21]!==U||$[22]!==K||$[23]!==et?(ec={animate:Q,arrowProp:U,arrowRef:eo,boundaryElement:K,fallbackPlacements:et,rootBoundary:"viewport"},$[20]=Q,$[21]=U,$[22]=K,$[23]=et,$[24]=ec):ec=$[24];let eh=function(e){let t=(0,i.c)(17),{animate:n,arrowProp:r,arrowRef:o,boundaryElement:a,fallbackPlacements:s,rootBoundary:l}=e,d;if(t[0]!==n||t[1]!==r||t[2]!==o||t[3]!==a||t[4]!==s||t[5]!==l){let e;d=[];let i=a||void 0,c;t[7]!==s||t[8]!==l||t[9]!==i?(c=(0,u.flip)({boundary:i,fallbackPlacements:s,padding:4,rootBoundary:l}),t[7]=s,t[8]=l,t[9]=i,t[10]=c):c=t[10],d.push(c),t[11]===Symbol.for("react.memo_cache_sentinel")?(e=(0,u.offset)({mainAxis:4}),t[11]=e):e=t[11],d.push(e);let h=a||void 0,f;if(t[12]!==l||t[13]!==h?(f=(0,u.shift)({boundary:h,rootBoundary:l,padding:4}),t[12]=l,t[13]=h,t[14]=f):f=t[14],d.push(f),r){let e;t[15]===o?e=t[16]:(e=(0,u.arrow)({element:o,padding:4}),t[15]=o,t[16]=e),d.push(e)}n&&d.push(e7),t[0]=n,t[1]=r,t[2]=o,t[3]=a,t[4]=s,t[5]=l,t[6]=d}else d=t[6];return d}(ec),ef;$[25]===er?ef=$[26]:(ef={reference:er},$[25]=er,$[26]=ef),$[27]!==eh||$[28]!==X||$[29]!==ef?(n={middleware:eh,placement:X,whileElementsMounted:c.autoUpdate,elements:ef},$[27]=eh,$[28]=X,$[29]=ef,$[30]=n):n=$[30];let{floatingStyles:em,placement:eg,middlewareData:eb,refs:ey,update:ev}=(0,u.useFloating)(n),ex=eb.arrow?.x,ew=eb.arrow?.y,ek=eb["@sanity/ui/origin"]?.originX,eS=eb["@sanity/ui/origin"]?.originY,e$=(0,o.useId)(),[eC,eE]=nI(!1),eR=nD(),eT;$[31]===eR?eT=$[32]:(eT=eR||{},$[31]=eR,$[32]=eT);let{setIsGroupActive:eA,setOpenTooltipId:eP}=eT,ej=eC||eR?.openTooltipId===e$,eM=null!==eR,eI="number"==typeof M?M:M?.open||0,e_="number"==typeof M?M:M?.close||0,ez=eM?eR.openDelay:eI,eO=eM?eR.closeDelay:e_,eL;$[33]!==eO||$[34]!==eM||$[35]!==ez||$[36]!==eA||$[37]!==eE||$[38]!==eP||$[39]!==e$?(eL=(e,t)=>{if(eM)if(e){let n=t?0:ez;eA?.(e,n),eP?.(e$,n)}else eA?.(e,eO>200?eO:200),eP?.(null,t?0:eO);else eE(e,t?0:e?ez:eO)},$[33]=eO,$[34]=eM,$[35]=ez,$[36]=eA,$[37]=eE,$[38]=eP,$[39]=e$,$[40]=eL):eL=$[40];let eD=eL,eV;$[41]!==P?.props||$[42]!==eD?(eV=e=>{eD(!1),P?.props?.onBlur?.(e)},$[41]=P?.props,$[42]=eD,$[43]=eV):eV=$[43],P?.props;let eB=eV,eN;$[44]!==P?.props||$[45]!==eD?(eN=e=>{eD(!1,!0),P?.props.onClick?.(e)},$[44]=P?.props,$[45]=eD,$[46]=eN):eN=$[46],P?.props;let eF=eN,eH;$[47]!==P?.props||$[48]!==eD?(eH=e=>{eD(!1,!0),P?.props.onContextMenu?.(e)},$[47]=P?.props,$[48]=eD,$[49]=eH):eH=$[49],P?.props;let eW=eH,eU;$[50]!==P?.props||$[51]!==eD?(eU=e=>{eD(!0),P?.props?.onFocus?.(e)},$[50]=P?.props,$[51]=eD,$[52]=eU):eU=$[52],P?.props;let eG=eU,eX;$[53]!==P?.props||$[54]!==eD?(eX=e=>{eD(!0),P?.props?.onMouseEnter?.(e)},$[53]=P?.props,$[54]=eD,$[55]=eX):eX=$[55],P?.props;let eY=eX,eq;$[56]!==P?.props||$[57]!==eD?(eq=e=>{eD(!1),P?.props?.onMouseLeave?.(e)},$[56]=P?.props,$[57]=eD,$[58]=eq):eq=$[58],P?.props;let eK=eq,eZ;$[59]!==eD||$[60]!==eM||$[61]!==er||$[62]!==ej?(eZ={handleIsOpenChange:eD,referenceElement:er,showTooltip:ej,isInsideGroup:eM},$[59]=eD,$[60]=eM,$[61]=er,$[62]=ej,$[63]=eZ):eZ=$[63],function(e){let t,n=(0,i.c)(10),{handleIsOpenChange:r,referenceElement:a,showTooltip:s,isInsideGroup:l}=e,d;n[0]!==r||n[1]!==a?(d=(e,t)=>{a&&(a===e||e instanceof Node&&a.contains(e)||(r(!1),t()))},n[0]=r,n[1]=a,n[2]=d):d=n[2];let u=x(d),c;n[3]!==l||n[4]!==u||n[5]!==s?(c=()=>
9{if(!s||l)return;let e=t=>{u(t.target,()=>window.removeEventListener("mousemove",e))};return window.addEventListener("mousemove",e),()=>window.removeEventListener("mousemove",e)},n[3]=l,n[4]=u,n[5]=s,n[6]=c):c=n[6],n[7]!==l||n[8]!==s?(t=[l,s],n[7]=l,n[8]=s,n[9]=t):t=n[9],(0,o.useEffect)(c,t)}(eZ),$[64]!==I||$[65]!==eD||$[66]!==ej?(r=()=>{I&&ej&&eD(!1)},a=[I,eD,ej],$[64]=I,$[65]=eD,$[66]=ej,$[67]=r,$[68]=a):(r=$[67],a=$[68]),(0,o.useEffect)(r,a),$[69]!==j||$[70]!==eD||$[71]!==ej?(l=()=>{!j&&ej&&eD(!1)},d=[j,eD,ej],$[69]=j,$[70]=eD,$[71]=ej,$[72]=l,$[73]=d):(l=$[72],d=$[73]),(0,o.useEffect)(l,d),$[74]!==eD||$[75]!==ej?(f=()=>{if(!ej)return;let e=function(e){"Escape"===e.key&&eD(!1,!0)};return window.addEventListener("keydown",e),()=>{window.removeEventListener("keydown",e)}},p=[eD,ej],$[74]=eD,$[75]=ej,$[76]=f,$[77]=p):(f=$[76],p=$[77]),(0,o.useEffect)(f,p),$[78]!==K||$[79]!==eu?.offsetWidth?(m=()=>{es(Math.min(...K?[K.offsetWidth]:[],eu?.offsetWidth||document.body.offsetWidth)-8)},$[78]=K,$[79]=eu?.offsetWidth,$[80]=m):m=$[80],$[81]!==K||$[82]!==eu?(g=[K,eu],$[81]=K,$[82]=eu,$[83]=g):g=$[83],(0,o.useLayoutEffect)(m,g),$[84]===ev?b=$[85]:(b=e=>{eo.current=e,ev()},$[84]=ev,$[85]=b);let eJ=b,eQ;$[86]===ey?eQ=$[87]:(eQ=e=>{en.current=e,ey.setFloating(e)},$[86]=ey,$[87]=eQ);let e0=eQ,e1;e:{let e;if(!P){e1=null;break e}$[88]!==P||$[89]!==eB||$[90]!==eF||$[91]!==eW||$[92]!==eG||$[93]!==eY||$[94]!==eK?(e=(0,o.cloneElement)(P,{onBlur:eB,onFocus:eG,onMouseEnter:eY,onMouseLeave:eK,onClick:eF,onContextMenu:eW,ref:ei}),$[88]=P,$[89]=eB,$[90]=eF,$[91]=eW,$[92]=eG,$[93]=eY,$[94]=eK,$[95]=e):e=$[95],e1=e}let e2=e1,e3;if($[96]===P?e3=$[97]:(e3=P?tr(P):null,$[96]=P,$[97]=e3),$[98]===er?(y=$[99],v=$[100]):(y=()=>er,v=[er],$[98]=er,$[99]=y,$[100]=v),(0,o.useImperativeHandle)(e3,y,v),!e2){let e;return $[101]===Symbol.for("react.memo_cache_sentinel")?(e=(0,s.jsx)(s.Fragment,{}),$[101]=e):e=$[101],e}if(I)return e2;let e5=ea>0?`${ea}px`:void 0,e6;$[102]!==em||$[103]!==e5?(e6={...em,maxWidth:e5},$[102]=em,$[103]=e5,$[104]=e6):e6=$[104],$[105]!==Q||$[106]!==U||$[107]!==ex||$[108]!==ew||$[109]!==j||$[110]!==ek||$[111]!==eS||$[112]!==G||$[113]!==eg||$[114]!==Y||$[115]!==z||$[116]!==O||$[117]!==eJ||$[118]!==e0||$[119]!==q?(w=(0,s.jsx)(nO,{...z,animate:Q,arrow:U,arrowRef:eJ,arrowX:ex,arrowY:ew,originX:ek,originY:eS,padding:G,placement:eg,radius:Y,ref:e0,scheme:O,shadow:q,children:j}),$[105]=Q,$[106]=U,$[107]=ex,$[108]=ew,$[109]=j,$[110]=ek,$[111]=eS,$[112]=G,$[113]=eg,$[114]=Y,$[115]=z,$[116]=O,$[117]=eJ,$[118]=e0,$[119]=q,$[120]=w):w=$[120],$[121]!==z||$[122]!==e0||$[123]!==e6||$[124]!==w||$[125]!==J?(k=(0,s.jsx)(nV,{"data-ui":"Tooltip",...z,ref:e0,style:e6,zOffset:J,children:w}),$[121]=z,$[122]=e0,$[123]=e6,$[124]=w,$[125]=J,$[126]=k):k=$[126];let e9=k,e8;$[127]!==_||$[128]!==ej||$[129]!==e9?(e8=ej&&(_?(0,s.jsx)(tp,{__unstable_name:"string"==typeof _?_:void 0,children:e9}):e9),$[127]=_,$[128]=ej,$[129]=e9,$[130]=e8):e8=$[130];let te=e8,tt;return $[131]!==Q||$[132]!==te?(tt=Q?(0,s.jsx)(h.AnimatePresence,{children:te}):te,$[131]=Q,$[132]=te,$[133]=tt):tt=$[133],$[134]!==e2||$[135]!==tt?(S=(0,s.jsxs)(s.Fragment,{children:[tt,e2]}),$[134]=e2,$[135]=tt,$[136]=S):S=$[136],S});function nN(){return null}function nF(){return document.body}let nH=()=>()=>{};e.s(["$",0,ej,"A",0,tk,"At",0,E,"B",0,e3,"C",0,tL,"Ct",0,function(e){return L(e)&&"TEXTAREA"===e.nodeName},"D",0,tj,"Dt",0,S,"E",0,tM,"Et",0,k,"F",0,tn,"Ft",0,j,"G",0,eK,"H",0,e0,"I",0,te,"J",0,eG,"K",0,eq,"L",0,e8,"M",0,tf,"Mt",0,T,"N",0,td,"Nt",0,A,"O",0,tP,"Ot",0,$,"P",0,ta,"Pt",0,P,"Q",0,eM,"R",0,e4,"S",0,tO,"St",0,function(e){return L(e)&&"SELECT"===e.nodeName},"T",0,function(e){return tM({...e,$iconRight:!0})},"Tt",0,I,"U",0,eQ,"V",0,e1,"W",0,eJ,"X",0,eI,"Y",0,eD,"Z",0,e_,"_",0,t5,"_t",0,B,"a",0,nI,"at",0,ek,"b",0,tq,"bt",0,L,"c",0,ny,"ct",0,ef,"d",0,function(e){let t,n,r,a,d,u,c,h,f,p,m,g,b,y=(0,i.c)(82),v,x,k,S,$,C,E,R,T,A,P,j,M,I;y[0]===e?(v=y[1],x=y[2],k=y[3],S=y[4],$=y[5],C=y[6],E=y[7],R=y[8],T=y[9],A=y[10],P=y[11],j=y[12],M=y[13],I=y[14]):({as:R,children:x,fontSize:T,icon:v,menu:S,onClick:$,padding:A,popover:C,radius:P,gap:k,space:j,text:I,tone:M,...E}=e,y[0]=e,y[1]=v,y[2]=x,y[3]=k,y[4]=S,y[5]=$,y[6]=C,y[7]=E,y[8]=R,y[9]=T,y[10]=A,y[11]=P,y[
912]=j,y[13]=M,y[14]=I);let _=void 0===R?"button":R,z=void 0===T?1:T,O=void 0===A?3:A,L=void 0===P?2:P,D=void 0===j?3:j,V=void 0===M?"default":M,B=void 0===k?D:k,N=nh(),{scheme:F}=eq(),{activeElement:H,mount:U,onClickOutside:G,onEscape:X,onItemClick:Y,onItemMouseEnter:q,registerElement:K}=N,Z=q??N.onItemMouseEnter,[J,Q]=(0,o.useState)(null),[ee,et]=(0,o.useState)(!1),[en,er]=(0,o.useState)(null),ei=!!H&&H===J,[eo,ea]=(0,o.useState)(!1),es;y[15]===Z?es=y[16]:(es=e=>{ea(!1),Z(e),et(!0)},y[15]=Z,y[16]=es);let el=es,ed;y[17]===J?ed=y[18]:(ed=e=>{"ArrowLeft"===e.key&&(e.stopPropagation(),et(!1),requestAnimationFrame(()=>{J?.focus()}))},y[17]=J,y[18]=ed);let eu=ed,ec;y[19]===$?ec=y[20]:(ec=e=>{$?.(e),er("first"),et(!0)},y[19]=$,y[20]=ec);let ef=ec,ep;y[21]===Y?ep=y[22]:(ep=()=>{et(!1),Y?.()},y[21]=Y,y[22]=ep);let em=ep,eg;y[23]===Symbol.for("react.memo_cache_sentinel")?(eg=()=>ea(!0),y[23]=eg):eg=y[23];let eb=eg,ey,ev;y[24]!==U||y[25]!==J?(ey=()=>U(J),ev=[U,J],y[24]=U,y[25]=J,y[26]=ey,y[27]=ev):(ey=y[26],ev=y[27]),(0,o.useEffect)(ey,ev),y[28]===ei?(t=y[29],n=y[30]):(t=()=>{ei||et(!1)},n=[ei],y[28]=ei,y[29]=t,y[30]=n),(0,o.useEffect)(t,n),y[31]===ee?(r=y[32],a=y[33]):(r=()=>{ee||ea(!1)},a=[ee],y[31]=ee,y[32]=r,y[33]=a),(0,o.useEffect)(r,a),y[34]===en?(d=y[35],u=y[36]):(d=()=>{if(!en)return;let e=requestAnimationFrame(()=>er(null));return()=>cancelAnimationFrame(e)},u=[en],y[34]=en,y[35]=d,y[36]=u),(0,o.useEffect)(d,u),y[37]!==x||y[38]!==em||y[39]!==eu||y[40]!==S||y[41]!==G||y[42]!==X||y[43]!==K||y[44]!==en?(c=(0,s.jsx)(nd,{...S,onClickOutside:G,onEscape:X,onItemClick:em,onKeyDown:eu,onMouseEnter:eb,registerElement:K,shouldFocus:en,children:x}),y[37]=x,y[38]=em,y[39]=eu,y[40]=S,y[41]=G,y[42]=X,y[43]=K,y[44]=en,y[45]=c):c=y[45];let ex=c,ew;y[46]===Symbol.for("react.memo_cache_sentinel")?(ew=e=>{let t=e.currentTarget;if(document.activeElement===t&&"ArrowRight"===e.key){er("first"),et(!0),ea(!0);return}},y[46]=ew):ew=y[46];let eS=ew,e$="button"===_?eo:void 0,eC="button"===_?void 0:eo,eE=!eo&&ei?"":void 0,eR;y[47]===L?eR=y[48]:(eR=W(L),y[47]=L,y[48]=eR);let eA="button"===_?"button":void 0,eP;return y[49]!==v||y[50]!==z?(eP=v&&(0,s.jsxs)(eT,{size:z,children:[(0,o.isValidElement)(v)&&v,(0,l.isValidElementType)(v)&&(0,s.jsx)(v,{})]}),y[49]=v,y[50]=z,y[51]=eP):eP=y[51],y[52]!==z||y[53]!==I?(h=(0,s.jsx)(eh,{flex:1,children:(0,s.jsx)(eT,{size:z,textOverflow:"ellipsis",weight:"medium",children:I})}),y[52]=z,y[53]=I,y[54]=h):h=y[54],y[55]===Symbol.for("react.memo_cache_sentinel")?(f=(0,s.jsx)(w,{}),y[55]=f):f=y[55],y[56]===z?p=y[57]:(p=(0,s.jsx)(eT,{size:z,children:f}),y[56]=z,y[57]=p),y[58]!==O||y[59]!==B||y[60]!==eP||y[61]!==h||y[62]!==p?(m=(0,s.jsxs)(ek,{gap:B,padding:O,children:[eP,h,p]}),y[58]=O,y[59]=B,y[60]=eP,y[61]=h,y[62]=p,y[63]=m):m=y[63],y[64]!==_||y[65]!==ef||y[66]!==el||y[67]!==E||y[68]!==F||y[69]!==e$||y[70]!==eC||y[71]!==eE||y[72]!==eR||y[73]!==eA||y[74]!==m||y[75]!==V?(g=(0,s.jsx)(nc,{"data-as":_,"data-ui":"MenuGroup",forwardedAs:_,...E,"aria-pressed":e$,"data-pressed":eC,"data-selected":eE,$radius:eR,$tone:V,$scheme:F,onClick:ef,onKeyDown:eS,onMouseEnter:el,ref:Q,tabIndex:-1,type:eA,children:m}),y[64]=_,y[65]=ef,y[66]=el,y[67]=E,y[68]=F,y[69]=e$,y[70]=eC,y[71]=eE,y[72]=eR,y[73]=eA,y[74]=m,y[75]=V,y[76]=g):g=y[76],y[77]!==ex||y[78]!==ee||y[79]!==C||y[80]!==g?(b=(0,s.jsx)(tR,{...C,content:ex,"data-ui":"MenuGroup__popover",open:ee,children:g}),y[77]=ex,y[78]=ee,y[79]=C,y[80]=g,y[81]=b):b=y[81],b},"dt",0,N,"et",0,eT,"f",0,nu,"ft",0,W,"g",0,t6,"gt",0,function(e){return D(e)||V(e)},"h",0,t8,"ht",0,F,"i",0,nL,"it",0,eS,"j",0,tp,"jt",0,R,"k",0,tR,"kt",0,C,"l",0,ng,"lt",0,eh,"m",0,nn,"mt",0,H,"n",0,nB,"nt",0,eC,"o",0,function(e){return e5("(prefers-color-scheme: dark)",void 0===e?nM:e)},"ot",0,function(){return(0,a.useTheme)()},"p",0,nd,"pt",0,U,"q",0,eY,"r",0,nD,"rt",0,e$,"s",0,nj,"st",0,ep,"t",0,function(e){let t=(0,i.c)(7),{boundaryElement:n,children:r,element:a,__unstable_elements:l}=e,d=(0,o.useSyncExternalStore)(nH,nF,nN),u=n||null,c=a||d,h;t[0]!==l||t[1]!==u||t[2]!==c?(h={version:0,boundaryElement:u,element:c,elements:l},t[0]=l,t[1]=u,t[2]=c,t[3]=h):h=t[3];let f=h,p;return t[4]!==r||t[5]!==f?(p=(0,s.jsx)(th.Provider,{value:f,children:r}),t[4]=r,t[5]=f,t[6]=p):p=t[6],p},"tt",0,eE,"u",0,nf,"ut",0,eu,"v",0,t1,"vt",0,D,"w",0,t_,"wt",0,M,"x",0,tz,"xt",0,function(e){return L(e)&&"INPUT"===e.nodeName},"y",0,tQ,"yt",0,V,"z",0,e5],785891),e.s(["Text",0,eT],438924)},19710,e=>{"use strict";var t=e.i(785891);e.s(["Card",()=>t.W])},930357,693469,e=>{"use strict";var t=e.i(933644),n=e.i(785891),r=e.i(339720),i=e.i(62471),o=e.i(836193);let a=(0,i.forwardRef)(function(e,t){return(0,o.jsx)("svg",{"data-sanity-icon":"chevron-down",width:"1em",height:"1em",viewBox:"0 0 25 25",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e,ref:t,children:(0,o.jsx)("path",{d:"M17 10L12.5 14.5L8 10",stroke:"currentColor",strokeWidth:1.2,strokeLinejoin:"round"})})});var s=i,l=e.i(702826),d=e.i(127841),u=e.i(42353),c=e.i(788261),h=e.i(45414),f=e.i(8252),p=e.i(607833);let m=(0,i.forwardRef)(function(e,t){return(0,o.jsx)("svg",{"data-sanity-icon":"checkmark",width:"1em",height:"1em",viewBox:"0 0 25 25",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e,ref:t,children:(0,o.jsx)("path",{d:"M5.5 11.5L10.5 16.5L19.5 7.60001",stroke:"currentColor",strokeWidth:1.2,strokeLinejoin:"round"})})}),g=(0,i.forwardRef)(function(e,t){return(0,o.jsx)("svg",{"data-sanity-icon":"remove",width:"1em",height:"1em",viewBox:"0 0 25 25",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e,ref:t,children:(0,o.jsx)("path",{d:"M5 12.5H20",stroke:"currentColor",strokeWidth:1.2,strokeLinejoin:"round"})})});function b(e){let t=requestAnimationFrame(e);return()=>{cancelAnimationFrame(t)}}function y(e){if(!(e.tabIndex>0||0===e.tabIndex&&null!==e.getAttribute("tabIndex")||((0,n.vt)(e)?!!e.href&&"ignore"!==e.rel:(0,n.xt)(e)?"hidden"
9!==e.type&&"file"!==e.type&&!e.disabled:!!((0,n.yt)(e)||(0,n.St)(e)||(0,n.Ct)(e))&&!e.disabled)))return!1;try{e.focus()}catch{}return document.activeElement===e}function v(e){for(let t=0;t<e.childNodes.length;t++){let r=e.childNodes[t];if((0,n.bt)(r)&&(y(r)||v(r)))return!0}return!1}function x(e){for(let t=e.childNodes.length-1;t>=0;t--){let r=e.childNodes[t];if((0,n.bt)(r)&&(y(r)||x(r)))return!0}return!1}let w=l.styled.div.withConfig({displayName:"StyledAutocomplete",componentId:"sc-ilitn5-0"})`line-height:0;`,k=(0,l.styled)(n.lt).withConfig({displayName:"ListBox",componentId:"sc-ilitn5-1"})`& > ul{list-style:none;padding:0;margin:0;}`,S=l.keyframes`from{transform:rotate(0deg);}to{transform:rotate(360deg);}`,$=(0,l.styled)(u.SpinnerIcon).withConfig({displayName:"AnimatedSpinnerIcon",componentId:"sc-ilitn5-2"})`animation:${S} 500ms linear infinite;`;function C(e){let t=(0,r.c)(11),{children:i,id:a,onSelect:s,selected:l,value:d}=e,u;t[0]!==s||t[1]!==d?(u=()=>{setTimeout(()=>{s(d)},0)},t[0]=s,t[1]=d,t[2]=u):u=t[2];let c=u,h;t[3]===c?h=t[4]:(h=e=>{"Enter"!==e.key||(0,n.gt)(e.currentTarget)||c()},t[3]=c,t[4]=h);let f=h,p;return t[5]!==i||t[6]!==c||t[7]!==f||t[8]!==a||t[9]!==l?(p=(0,o.jsx)("li",{"aria-selected":l,"data-ui":"AutocompleteOption",id:a,role:"option",onClick:c,onKeyDown:f,children:i}),t[5]=i,t[6]=c,t[7]=f,t[8]=a,t[9]=l,t[10]=p):p=t[10],p}function E(e,t){return"input/change"===t.type?{...e,activeValue:null,focused:!0,query:t.query}:"input/focus"===t.type?{...e,focused:!0}:"root/blur"===t.type?{...e,focused:!1,query:null}:"root/clear"===t.type?{...e,activeValue:null,query:null,value:null}:"root/escape"===t.type?{...e,focused:!1,query:null}:"root/open"===t.type?{...e,query:e.query||t.query}:"root/setActiveValue"===t.type?{...e,activeValue:t.value,listFocused:t.listFocused||e.listFocused}:"root/setListFocused"===t.type?{...e,listFocused:t.listFocused}:"value/change"===t.type?{...e,activeValue:t.value,query:null,value:t.value}:e}let R=["Control","Shift","Alt","Enter","Home","End","PageUp","PageDown","Meta","Tab","CapsLock"],T=["bottom-start","top-start"],A=(e,t)=>t?t.value:e,P=(e,t)=>t.value.toLowerCase().indexOf(e.toLowerCase())>-1,j=(0,s.forwardRef)(function(e,t){let i,l,d,u,c,h,f,p,m=(0,r.c)(181),g,y,x,S,j,z,O,L,D,V,B,N,F,H,W,U,G,X,Y,q,K,Z,J,Q,ee,et,en,er,ei;m[0]===e?(g=m[1],y=m[2],x=m[3],S=m[4],j=m[5],z=m[6],O=m[7],L=m[8],D=m[9],V=m[10],B=m[11],N=m[12],F=m[13],H=m[14],W=m[15],U=m[16],G=m[17],X=m[18],Y=m[19],q=m[20],K=m[21],Z=m[22],J=m[23],Q=m[24],ee=m[25],et=m[26],en=m[27],er=m[28],ei=m[29]):({border:Z,customValidity:g,disabled:y,filterOption:x,fontSize:J,icon:S,id:j,listBox:Q,loading:z,onBlur:O,onChange:L,onFocus:D,onQueryChange:V,onSelect:B,openButton:N,openOnFocus:F,options:H,padding:ee,popover:et,prefix:W,radius:en,readOnly:U,relatedElements:G,renderOption:X,renderPopover:Y,renderValue:er,suffix:K,value:ei,...q}=e,m[0]=e,m[1]=g,m[2]=y,m[3]=x,m[4]=S,m[5]=j,m[6]=z,m[7]=O,m[8]=L,m[9]=D,m[10]=V,m[11]=B,m[12]=N,m[13]=F,m[14]=H,m[15]=W,m[16]=U,m[17]=G,m[18]=X,m[19]=Y,m[20]=q,m[21]=K,m[22]=Z,m[23]=J,m[24]=Q,m[25]=ee,m[26]=et,m[27]=en,m[28]=er,m[29]=ei);let eo=void 0===Z||Z,ea=void 0===J?2:J,es=void 0===Q?n.Tt:Q,el=void 0===ee?3:ee,ed=void 0===et?n.Tt:et,eu=void 0===en?2:en,ec=void 0===er?A:er,eh=ei||null,ef=ei||null,ep;m[30]!==eh||m[31]!==ef?(ep={activeValue:eh,focused:!1,listFocused:!1,query:null,value:ef},m[30]=eh,m[31]=ef,m[32]=ep):ep=m[32];let[em,eg]=(0,s.useReducer)(E,ep),{activeValue:eb,focused:ey,listFocused:ev,query:ex,value:ew}=em,ek;m[33]!==ea||m[34]!==el?(ek=e=>{let{value:t}=e;return(0,o.jsx)(n.W,{"data-as":"button",padding:el,radius:2,tone:"inherit",children:(0,o.jsx)(n.et,{size:ea,textOverflow:"ellipsis",children:t})})},m[33]=ea,m[34]=el,m[35]=ek):ek=m[35];let eS="function"==typeof X?X:ek,e$="function"==typeof x?x:P,eC=(0,s.useRef)(null),eE=(0,s.useRef)(null),eR=(0,s.useRef)(null),eT=(0,s.useRef)(null),[eA,eP]=(0,s.useState)(null),ej;m[36]===Symbol.for("react.memo_cache_sentinel")?(ej=e=>{(0,s.startTransition)(()=>eP(e))},m[36]=ej):ej=m[36];let eM=ej,eI=(0,s.useRef)(!1),e_=(0,s.useRef)(ew),ez=(0,s.useRef)(e
9i),eO=(0,s.useRef)(!1),eL,eD;m[37]===eA?(eL=m[38],eD=m[39]):(eL=()=>eA,eD=[eA],m[37]=eA,m[38]=eL,m[39]=eD),(0,s.useImperativeHandle)(eR,eL,eD),m[40]===eA?(i=m[41],l=m[42]):(i=()=>eA,l=[eA],m[40]=eA,m[41]=i,m[42]=l),(0,s.useImperativeHandle)(t,i,l);let eV=`${j}-listbox`,eB=Array.isArray(H)?H:n.wt,eN=(0,n.ft)(el),eF;m[43]!==eB||m[44]!==ew?(eF=null===ew?void 0:eB.find(e=>e.value===ew),m[43]=eB,m[44]=ew,m[45]=eF):eF=m[45];let eH=eF,eW;if(m[46]!==e$||m[47]!==eB||m[48]!==ex){let e;m[50]!==e$||m[51]!==ex?(e=e=>!ex||e$(ex,e),m[50]=e$,m[51]=ex,m[52]=e):e=m[52],eW=eB.filter(e),m[46]=e$,m[47]=eB,m[48]=ex,m[49]=eW}else eW=m[49];let eU=eW,eG=eU.length,eX=eb?`${j}-option-${eb}`:void 0,eY=null!==ex&&z||ey&&null!==ex,eq;m[53]!==O||m[54]!==V||m[55]!==G?(eq=e=>{setTimeout(()=>{if(eO.current)return;let t=(G||[]).concat(eC.current?[eC.current]:[],eE.current?[eE.current]:[]),n=!1;if(document.activeElement){for(let e of t)if(e===document.activeElement||e.contains(document.activeElement)){n=!0;break}}!1===n&&(eg({type:"root/blur"}),eO.current=!1,V&&V(null),O&&O(e))},0)},m[53]=O,m[54]=V,m[55]=G,m[56]=eq):eq=m[56];let eK=eq,eZ;m[57]===Symbol.for("react.memo_cache_sentinel")?(eZ=e=>{let t=eT.current,n=e.target instanceof HTMLElement?e.target:null,r=t?.contains(n)||!1;r!==eI.current&&(eI.current=r,eg({type:"root/setListFocused",listFocused:r}))},m[57]=eZ):eZ=m[57];let eJ=eZ,eQ;m[58]!==L||m[59]!==V||m[60]!==B?(eQ=e=>{eg({type:"value/change",value:e}),eO.current=!1,B&&B(e),e_.current=e,L&&L(e),V&&V(null),eR.current?.focus()},m[58]=L,m[59]=V,m[60]=B,m[61]=eQ):eQ=m[61];let e0=eQ,e1;m[62]!==eb||m[63]!==eU||m[64]!==eG||m[65]!==V?(e1=e=>{if("ArrowDown"===e.key){if(e.preventDefault(),!eG)return;let t=eU.find(e=>e.value===eb),n=t?eU.indexOf(t):-1,r=eU[(n+1)%eG];r&&eg({type:"root/setActiveValue",value:r.value,listFocused:!0});return}if("ArrowUp"===e.key){if(e.preventDefault(),!eG)return;let t=eU.find(e=>e.value===eb),n=t?eU.indexOf(t):-1,r=eU[-1===n?eG-1:(eG+n-1)%eG];r&&eg({type:"root/setActiveValue",value:r.value,listFocused:!0});return}if("Escape"===e.key){eg({type:"root/escape"}),eO.current=!1,V&&V(null),eR.current?.focus();return}let t=e.target,n=eT.current;if((n===t||n?.contains(t))&&!R.includes(e.key))return void eR.current?.focus()},m[62]=eb,m[63]=eU,m[64]=eG,m[65]=V,m[66]=e1):e1=m[66];let e2=e1,e3;m[67]===V?e3=m[68]:(e3=e=>{let t=e.currentTarget.value;eg({type:"input/change",query:t}),V&&V(t)},m[67]=V,m[68]=e3);let e5=e3,e4;m[69]!==eH||m[70]!==ec||m[71]!==ew?(e4=()=>{eg({type:"root/open",query:ew?ec(ew,eH):""})},m[69]=eH,m[70]=ec,m[71]=ew,m[72]=e4):e4=m[72];let e6=e4,e7;m[73]!==e6||m[74]!==ey||m[75]!==D||m[76]!==F?(e7=e=>{ey||(eg({type:"input/focus"}),D&&D(e),F&&e6())},m[73]=e6,m[74]=ey,m[75]=D,m[76]=F,m[77]=e7):e7=m[77];let e9=e7,e8;m[78]===Symbol.for("react.memo_cache_sentinel")?(e8=()=>{eO.current=!0},m[78]=e8):e8=m[78];let te=e8,tt;m[79]===Symbol.for("react.memo_cache_sentinel")?(tt=()=>{eO.current=!1},m[79]=tt):tt=m[79];let tn=tt,tr;m[80]!==L||m[81]!==V?(tr=()=>{eg({type:"root/clear"}),e_.current="",L&&L(""),V&&V(null),eR.current?.focus()},m[80]=L,m[81]=V,m[82]=tr):tr=m[82];let ti=tr,to;m[83]===Symbol.for("react.memo_cache_sentinel")?(to=()=>{eg({type:"input/focus"})},m[83]=to):to=m[83];let ta=to,ts,tl;m[84]===ei?(ts=m[85],tl=m[86]):(ts=()=>
9{if(ei!==ez.current){ez.current=ei,void 0!==ei&&(eg({type:"value/change",value:ei}),e_.current=ei);return}ei!==e_.current&&(e_.current=ei||null,eg({type:"value/change",value:ei||null}))},tl=[ei],m[84]=ei,m[85]=ts,m[86]=tl),(0,s.useEffect)(ts,tl),m[87]===ey?(d=m[88],u=m[89]):(d=()=>{!ey&&e_.current&&eg({type:"root/setActiveValue",value:e_.current})},u=[ey],m[87]=ey,m[88]=d,m[89]=u),(0,s.useEffect)(d,u),m[90]!==eb||m[91]!==eU?(c=()=>{let e=eT.current;if(!e)return;let t=eU.find(e=>e.value===eb);if(t){let n=eU.indexOf(t),r=e.childNodes[n];if(r){if(document.activeElement&&r.contains(document.activeElement))return;v(r)}}},h=[eb,eU],m[90]=eb,m[91]=eU,m[92]=c,m[93]=h):(c=m[92],h=m[93]),(0,s.useEffect)(c,h);e:{if(!z&&!y&&ew){let e;m[94]===Symbol.for("react.memo_cache_sentinel")?(e={"aria-label":"Clear",onFocus:ta},m[94]=e):e=m[94],f=e;break e}f=void 0}let td=f,tu=eN.map(I),tc=eN.map(_),th="object"==typeof N?N:n.Tt,tf;m[95]!==e6||m[96]!==th?(tf=e=>{e6(),th.onClick&&th.onClick(e),b(()=>eR.current?.focus())},m[95]=e6,m[96]=th,m[97]=tf):tf=m[97];let tp=tf,tm;m[98]!==y||m[99]!==eY||m[100]!==ea||m[101]!==tp||m[102]!==N||m[103]!==tu||m[104]!==tc||m[105]!==th||m[106]!==U?(tm=y||U||!N?void 0:(0,o.jsx)(n.lt,{"aria-hidden":eY,padding:tu,children:(0,o.jsx)(n.Y,{"aria-label":"Open",disabled:eY,fontSize:ea,icon:a,mode:"bleed",padding:tc,...th,onClick:tp})}),m[98]=y,m[99]=eY,m[100]=ea,m[101]=tp,m[102]=N,m[103]=tu,m[104]=tc,m[105]=th,m[106]=U,m[107]=tm):tm=m[107];let tg=tm,tb;t:{if(null===ex){if(null!==ew){let e;m[108]!==eH||m[109]!==ec||m[110]!==ew?(e=ec(ew,eH),m[108]=eH,m[109]=ec,m[110]=ew,m[111]=e):e
9=m[111],tb=e;break t}tb="";break t}tb=ex}let ty=tb,tv;m[112]===ev?tv=m[113]:(tv=e=>{"Tab"===e.key&&ev&&eR.current?.focus()},m[112]=ev,m[113]=tv);let tx=tv,tw;n:{let e,t,r;if(0===eU.length){tw=null;break n}if(m[114]!==eb||m[115]!==eH||m[116]!==eU||m[117]!==e0||m[118]!==j||m[119]!==ev||m[120]!==z||m[121]!==eS){let t;m[123]!==eb||m[124]!==eH||m[125]!==e0||m[126]!==j||m[127]!==ev||m[128]!==z||m[129]!==eS?(t=e=>{let t=null===eb?eH===e:e.value===eb;return(0,o.jsx)(C,{id:`${j}-option-${e.value}`,onSelect:e0,selected:t,value:e.value,children:(0,s.cloneElement)(eS(e),{disabled:z,selected:t,tabIndex:ev&&t?0:-1})},e.value)},m[123]=eb,m[124]=eH,m[125]=e0,m[126]=j,m[127]=ev,m[128]=z,m[129]=eS,m[130]=t):t=m[130],e=eU.map(t),m[114]=eb,m[115]=eH,m[116]=eU,m[117]=e0,m[118]=j,m[119]=ev,m[120]=z,m[121]=eS,m[122]=e}else e=m[122];m[131]!==eV||m[132]!==e?(t=(0,o.jsx)(n.O,{as:"ul","aria-multiselectable":!1,"data-ui":"AutoComplete__resultsList",id:eV,ref:eT,role:"listbox",gap:1,children:e}),m[131]=eV,m[132]=e,m[133]=t):t=m[133],m[134]!==tx||m[135]!==es||m[136]!==t?(r=(0,o.jsx)(k,{"data-ui":"AutoComplete__results",onKeyDown:tx,padding:1,...es,tabIndex:-1,children:t}),m[134]=tx,m[135]=es,m[136]=t,m[137]=r):r=m[137],tw=r}let tk=tw,tS;r:{let e;if(Y){let e=!eY,t;m[138]!==tk||m[139]!==te||m[140]!==tn||m[141]!==eA||m[142]!==Y||m[143]!==e?(t=(0,o.jsx)(M,{content:tk,hidden:e,inputElement:eA,onMouseEnter:te,onMouseLeave:tn,resultsPopoverElementRef:eE,renderPopover:Y}),m[138]=tk,m[139]=te,m[140]=tn,m[141]=eA,m[142]=Y,m[143]=e,m[144]=t):t=m[144],tS=t;break r}if(0===eG){tS=null;break r}m[145]!==tk||m[146]!==eY||m[147]!==te||m[148]!==tn||m[149]!==eA||m[150]!==ed||m[151]!==eu?(e=(0,o.jsx)(n.k,{arrow:!1,constrainSize:!0,content:tk,fallbackPlacements:T,matchReferenceWidth:!0,onMouseEnter:te,onMouseLeave:tn,open:eY,overflow:"auto",placement:"bottom-start",portal:!0,radius:eu,ref:eE,referenceElement:eA,...ed}),m[145]=tk,m[146]=eY,m[147]=te,m[148]=tn,m[149]=eA,m[150]=ed,m[151]=eu,m[152]=e):e=m[152],tS=e}let t$=tS,tC=z&&$,tE=K||tg,tR;return m[153]!==eX||m[154]!==eo||m[155]!==td||m[156]!==g||m[157]!==y||m[158]!==eY||m[159]!==ea||m[160]!==ti||m[161]!==e5||m[162]!==e9||m[163]!==S||m[164]!==j||m[165]!==ty||m[166]!==eV||m[167]!==eN||m[168]!==W||m[169]!==eu||m[170]!==U||m[171]!==q||m[172]!==tC||m[173]!==tE?(tR=(0,o.jsx)(n.b,{...q,"aria-activedescendant":eX,"aria-autocomplete":"list","aria-expanded":eY,"aria-owns":eV,autoCapitalize:"off",autoComplete:"off",autoCorrect:"off",border:eo,clearButton:td,customValidity:g,disabled:y,fontSize:ea,icon:S,iconRight:tC,id:j,inputMode:"search",onChange:e5,onClear:ti,onFocus:e9,padding:eN,prefix:W,radius:eu,readOnly:U,ref:eM,role:"combobox",spellCheck:!1,suffix:tE,value:ty}),m[153]=eX,m[154]=eo,m[155]=td,m[156]=g,m[157]=y,m[158]=eY,m[159]=ea,m[160]=ti,m[161]=e5,m[162]=e9,m[163]=S,m[164]=j,m[165]=ty,m[166]=eV,m[167]=eN,m[168]=W,m[169]=eu,m[170]=U,m[171]=q,m[172]=tC,m[173]=tE,m[174]=tR):tR=m[174],m[175]!==eK||m[176]!==eJ||m[177]!==e2||m[178]!==t$||m[179]!==tR?(p=(0,o.jsxs)(w,{"data-ui":"Autocomplete",onBlur:eK,onFocus:eJ,onKeyDown:e2,ref:eC,children:[tR,t$]}),m[175]=eK,m[176]=eJ,m[177]=e2,m[178]=t$,m[179]=tR,m[180]=p):p=m[180],p});function M({renderPopover:e,content:t,hidden:n,inputElement:r,onMouseEnter:i,onMouseLeave:o,resultsPopoverElementRef:a}){return e({content:t,hidden:n,inputElement:r,onMouseEnter:i,onMouseLeave:o},a)}function I(e){return 0===e?0:1===e||2===e?1:e-2}function _(e){return Math.max(e-1,0)}let z=l.styled.ol.withConfig({displayName:"StyledBreadcrumbs",componentId:"sc-s3y9xo-0"})`margin:0;padding:0;display:flex;list-style:none;align-items:center;white-space:nowrap;line-height:0;`,O=(0,l.styled)(n.Y).withConfig({displayName:"ExpandButton",componentId:"sc-s3y9xo-1"})`appearance:none;margin:-4px;`,L=(0,s.forwardRef)(function(e,t){let i,a,l=(0,r.c)(30),d,u,c,h,f,p;l[0]===e?(d=l[1],u=l[2],c=l[3],h=l[4],f=l[5],p=l[6]):({children:d,gap:u,maxLength:c,separator:f,space:p,...h}=e,l[0]=e,l[1]=d,l[2]=u,l[3]=c,l[4]=h,l[5]=f,l[6]=p);let m=void 0===u?void 0===p?2:p:u,g;l[7]===m?g=l[8]:(g=(0,n.ft)(m),l[7]=m,l[8]=g);
9let b=g,[y,v]=(0,s.useState)(!1),x=(0,s.useRef)(null),w=(0,s.useRef)(null),k;l[9]===Symbol.for("react.memo_cache_sentinel")?(k=()=>v(!1),l[9]=k):k=l[9];let S=k,$;l[10]===Symbol.for("react.memo_cache_sentinel")?($=()=>v(!0),l[10]=$):$=l[10];let C=$,E;l[11]===Symbol.for("react.memo_cache_sentinel")?(E=()=>[x.current,w.current],l[11]=E):E=l[11],(0,n.y)(S,E),l[12]===d?i=l[13]:(i=s.Children.toArray(d).filter(s.isValidElement),l[12]=d,l[13]=i);let R=i,T;l[14]!==c||l[15]!==y||l[16]!==R||l[17]!==b?(T={collapse:S,expand:C,expandElementRef:x,maxLength:c,open:y,popoverElementRef:w,rawItems:R,space:b},l[14]=c,l[15]=y,l[16]=R,l[17]=b,l[18]=T):T=l[18];let A=function(e){let t=(0,r.c)(28),{collapse:i,expand:a,expandElementRef:s,maxLength:l,open:d,popoverElementRef:u,rawItems:c,space:h}=e,f=c.length;if(l&&f>l){let e=Math.ceil(l/2),r=Math.floor(l/2),p;if(t[0]!==r||t[1]!==e||t[2]!==i||t[3]!==a||t[4]!==s||t[5]!==f||t[6]!==d||t[7]!==u||t[8]!==c||t[9]!==h){let l,m,g=c.slice(0,e-1),b;t[11]!==r||t[12]!==e||t[13]!==f||t[14]!==c?(b=c.slice(e-1,f-r),t[11]=r,t[12]=e,t[13]=f,t[14]=c,t[15]=b):b=t[15],t[16]!==h||t[17]!==b?(l=(0,o.jsx)(n.O,{as:"ol",overflow:"auto",padding:h,gap:h,children:b}),t[16]=h,t[17]=b,t[18]=l):l=t[18];let y=d?i:a,v;t[19]!==s||t[20]!==d||t[21]!==y?(v=(0,o.jsx)(O,{fontSize:1,mode:"bleed",onClick:y,padding:1,ref:s,selected:d,text:"…"}),t[19]=s,t[20]=d,t[21]=y,t[22]=v):v=t[22],t[23]!==d||t[24]!==u||t[25]!==l||t[26]!==v?(m=(0,o.jsx)(n.k,{constrainSize:!0,content:l,open:d,placement:"top",portal:!0,ref:u,children:v},"button"),t[23]=d,t[24]=u,t[25]=l,t[26]=v,t[27]=m):m=t[27],p=[...g,m,...c.slice(f-r)],t[0]=r,t[1]=e,t[2]=i,t[3]=a,t[4]=s,t[5]=f,t[6]=d,t[7]=u,t[8]=c,t[9]=h,t[10]=p}else p=t[10];return p}return c}(T),P;if(l[19]!==A||l[20]!==f||l[21]!==b){let e;l[23]!==f||l[24]!==b?(e=(e,t)=>(0,o.jsxs)(s.Fragment,{children:[t>0&&(0,o.jsx)(n.lt,{"aria-hidden":!0,as:"li",paddingX:b,children:f||(0,o.jsx)(n.et,{muted:!0,children:"/"})}),(0,o.jsx)(n.lt,{as:"li",children:e})]},t),l[23]=f,l[24]=b,l[25]=e):e=l[25],P=A.map(e),l[19]=A,l[20]=f,l[21]=b,l[22]=P}else P=l[22];return l[26]!==t||l[27]!==h||l[28]!==P?(a=(0,o.jsx)(z,{"data-ui":"Breadcrumbs",...h,ref:t,children:P}),l[26]=t,l[27]=h,l[28]=P,l[29]=a):a=l[29],a}),D={width:"100%",margin:"0 auto"},V=(0,l.styled)(n.lt).withConfig({displayName:"StyledContainer",componentId:"sc-nbeafu-0"})(function(){return D},function(e){let{container:r,media:i}=(0,t.i)(e.theme);return(0,n.mt)(i,e.$width,e=>({maxWidth:"auto"===e?"none":(0,n.ht)(r[e])}))}),B=(0,s.forwardRef)(function(e,t){let i,a=(0,r.c)(11),s,l,d;a[0]===e?(s=a[1],l=a[2],d=a[3]):({as:s,width:d,...l}=e,a[0]=e,a[1]=s,a[2]=l,a[3]=d);let u=void 0===d?2:d,c;return a[4]===u?c=a[5]:(c=(0,n.ft)(u),a[4]=u,a[5]=c),a[6]!==s||a[7]!==t||a[8]!==l||a[9]!==c?(i=(0,o.jsx)(V,{"data-ui":"Container",...l,$width:c,forwardedAs:s,ref:t}),a[6]=s,a[7]=t,a[8]=l,a[9]=c,a[10]=i):i=a[10],i}),N=(0,n.J)("@sanity/ui/context/dialog",{version:0});function F(e,t,r){return!e||!t||(0,n._t)(e,r)||(0,n._t)(t,r)}let H=(0,l.styled)(n._).withConfig({displayName:"StyledDialog",componentId:"sc-x279l-0"})(n.ut,function({theme:e}){let{color:n}=(0,t.i)(e);return{"&:not([hidden])":{display:"flex"},top:0,left:0,right:0,bottom:0,alignItems:"center",justifyContent:"center",outline:"none",background:n.backdrop}},function(e){let{media:r}=(0,t.i)(e.theme);return(0,n.mt)(r,e.$position,e=>({"&&":{position:e}}))},function(e){return e.$animate?l.css`@keyframes zoomIn{from{opacity:0;transform:scale(0.95);}to{opacity:1;transform:scale(1);}}@keyframes fadeIn{from{opacity:0;}to{opacity:1;}}animation:fadeIn 200ms ease-out;& > [data-ui='DialogCard']{animation:zoomIn 200ms ease-out;}`:l.css``}),W=(0,l.styled)(B).withConfig({displayName:"DialogContainer",componentId:"sc-x279l-1"})`&:not([hidden]){display:flex;}width:100%;height:100%;flex-direction:column;align-items:center;justify-content:center;`,U=(0,l.styled)(n.W).withConfig({displayName:"DialogCardRoot",componentId:"sc-x279l-2"})`&:not([hidden]){display:flex;}width:100%;min-height:0;max-height:100%;overflow:hidden;overflow:clip;`,G=(0,l.styled)(n.at).withConfig({displayName:"DialogLayout",componentId:"sc-x279l-3"})`flex:1;min-height:0;width:100%;`,X=(0,l.styled)(n.lt).withConfig({displayName:"DialogHeader",componentId:"sc-x279l-4"})`position:relative;z-index:2;`,Y=(0,l.styled)(n.lt).withConfig({displayName:"DialogContent",componentId:"sc-x279l-5"})`position:relative;z-index:1;overflow:auto;outline:none;`,q=(0,l.styled)(n.lt).withConfig({displayName:"DialogFooter",componentId:"sc-x279l-6"})`position:relative;z-index:3;`,K=(0,s.forwardRef)(function(e,t){let i,a,l,d,u,c,h,f,m,g,b,y,x=(0,r.c)(44),{__unstable_autoFocus:w,__unstable_hideCloseButton:k,children:S,contentRef:$,footer
9:C,header:E,id:R,onClickOutside:T,onClose:A,portal:P,radius:j,scheme:M,shadow:I,width:_}=e,z=(0,n.M)(),O=P?z.elements?.[P]||null:z.element,L=(0,n.F)().element,D;x[0]===j?D=x[1]:(D=(0,n.ft)(j),x[0]=j,x[1]=D);let V=D,B;x[2]===I?B=x[3]:(B=(0,n.ft)(I),x[2]=I,x[3]=B);let N=B,H;x[4]===_?H=x[5]:(H=(0,n.ft)(_),x[4]=_,x[5]=H);let K=H,Z=(0,s.useRef)(null),J=(0,s.useRef)(null),{isTopLayer:Q}=(0,n.N)(),ee=`${R}_label`,et=!!A&&!1===k,en=!!E||et,er;return x[6]===Symbol.for("react.memo_cache_sentinel")?(er=()=>Z.current,x[6]=er):er=x[6],(0,s.useImperativeHandle)(t,er),x[7]===Symbol.for("react.memo_cache_sentinel")?(i=()=>J.current,x[7]=i):i=x[7],(0,s.useImperativeHandle)($,i),x[8]===w?(a=x[9],l=x[10]):(a=()=>{w&&Z.current&&v(Z.current)},l=[w,Z],x[8]=w,x[9]=a,x[10]=l),(0,s.useEffect)(a,l),x[11]!==L||x[12]!==Q||x[13]!==A||x[14]!==O?(d=e=>{if(!Q||!A)return;let t=document.activeElement;t&&!F(L,O,t)||"Escape"===e.key&&(e.preventDefault(),e.stopPropagation(),A())},x[11]=L,x[12]=Q,x[13]=A,x[14]=O,x[15]=d):d=x[15],(0,n.v)(d),x[16]!==L||x[17]!==Q||x[18]!==T||x[19]!==O?(u=Q&&T&&(e=>{let t=e.target;t&&!F(L,O,t)||T()}),x[16]=L,x[17]=Q,x[18]=T,x[19]=O,x[20]=u):u=x[20],x[21]===Symbol.for("react.memo_cache_sentinel")?(c=()=>[Z.current],x[21]=c):c=x[21],(0,n.y)(u,c),x[22]!==E||x[23]!==ee||x[24]!==A||x[25]!==et||x[26]!==en?(h=en&&(0,o.jsx)(X,{children:(0,o.jsxs)(n.at,{align:"flex-start",padding:3,children:[(0,o.jsx)(n.lt,{flex:1,padding:2,children:E&&(0,o.jsx)(n.et,{id:ee,size:1,weight:"semibold",children:E})}),et&&(0,o.jsx)(n.lt,{flex:"none",children:(0,o.jsx)(n.Y,{"aria-label":"Close dialog",disabled:!A,icon:p.CloseIcon,mode:"bleed",onClick:A,padding:2})})]})}),x[22]=E,x[23]=ee,x[24]=A,x[25]=et,x[26]=en,x[27]=h):h=x[27],x[28]===S?f=x[29]:(f=(0,o.jsx)(Y,{flex:1,ref:J,tabIndex:-1,children:S}),x[28]=S,x[29]=f),x[30]===C?m=x[31]:(m=C&&(0,o.jsx)(q,{children:C}),x[30]=C,x[31]=m),x[32]!==h||x[33]!==f||x[34]!==m?(g=(0,o.jsxs)(G,{direction:"column",children:[h,f,m]}),x[32]=h,x[33]=f,x[34]=m,x[35]=g):g=x[35],x[36]!==V||x[37]!==M||x[38]!==N||x[39]!==g?(b=(0,o.jsx)(U,{radius:V,ref:Z,scheme:M,shadow:N,children:g}),x[36]=V,x[37]=M,x[38]=N,x[39]=g,x[40]=b):b=x[40],x[41]!==b||x[42]!==K?(y=(0,o.jsx)(W,{"data-ui":"DialogCard",width:K,children:b}),x[41]=b,x[42]=K,x[43]=y):y=x[43],y}),Z=(0,s.forwardRef)(function(e,t){let i,a,l,d,u=(0,r.c)(70),c=(0,s.useContext)(N),{layer:h}=(0,n.st)(),f,p,m,g,b,y,w,k,S,$,C,E,R,T,A,P,j,M,I,_,z;u[0]===e?(f=u[1],p=u[2],m=u[3],g=u[4],b=u[5],y=u[6],w=u[7],k=u[8],S=u[9],$=u[10],C=u[11],E=u[12],R=u[13],T=u[14],A=u[15],P=u[16],j=u[17],M=u[18],I=u[19],_=u[20],z=u[21]):({__unstable_autoFocus:A,__unstable_hideCloseButton:P,cardRadius:j,cardShadow:M,children:m,contentRef:g,footer:b,header:y,id:w,onActivate:k,onClickOutside:S,onClose:$,onFocus:C,padding:I,portal:E,position:f,scheme:T,width:_,zOffset:p,animate:z,...R}=e,u[0]=e,u[1]=f,u[2]=p,u[3]=m,u[4]=g,u[5]=b,u[6]=y,u[7]=w,u[8]=k,u[9]=S,u[10]=$,u[11]=C,u[12]=E,u[13]=R,u[14]=T,u[15]=A,u[16]=P,u[17]=j,u[18]=M,u[19]=I,u[20]=_,u[21]=z);let O=void 0===A||A,L=void 0!==P&&P,D=void 0===j?4:j,V=void 0===M?3:M,B=void 0===I?3:I,W=void 0===_?0:_,U=void 0!==z&&z,G=f??(c.position||"fixed"),X=p??(c.zOffset||h.dialog.zOffset),Y=!(0,n.R)()&&U,q=(0,n.M)(),Z=E?q.elements?.[E]||null:q.element,J=(0,n.F)().element,Q;u[22]===D?Q=u[23]:(Q=(0,n.ft)(D),u[22]=D,u[23]=Q);let ee=Q,et;u[24]===B?et=u[25]:(et=(0,n.ft)(B),u[24]=B,u[25]=et);let en=et,er;u[26]===G?er=u[27]:(er=(0,n.ft)(G),u[26]=G,u[27]=er);let ei=er,eo;u[28]===W?eo=u[29]:(eo=(0,n.ft)(W),u[28]=W,u[29]=eo);let ea=eo,es;u[30]===X?es=u[31]:(es=(0,n.ft)(X),u[30]=X,u[31]=es);let el=es,ed=(0,s.useRef)(null),eu=(0,s.useRef)(null),ec=(0,s.useRef)(null),eh=(0,s.useRef)(null),ef;u[32]===C?ef=u[33]:(ef=e=>{C?.(e);let t=e.target,r=ec.current;r&&t===ed.current?x(r):r&&t===eu.current?v(r):(0,n.bt)(e.target)&&(eh.current=e.target)},u[32]=C,u[33]=ef);let ep=ef,em=`${w}_label`,eg=(0,s.useRef)(void 0),eb;u[34]!==J||u[35]!==Z?(eb=()=>{eg.current&&clearTimeout(eg.current),eg.current=setTimeout(()=>{let e=document.activeElement;if(e&&!F(J,Z,e)){let e=eh.current;if(!e||!document.body.contains(e)){let e=ec.current;e&&v(e);return}
9e.focus()}},0)},u[34]=J,u[35]=Z,u[36]=eb):eb=u[36];let ey=eb,ev;return u[37]===Symbol.for("react.memo_cache_sentinel")?(ev=(0,o.jsx)("div",{ref:ed,tabIndex:0}),u[37]=ev):ev=u[37],u[38]!==O||u[39]!==ee||u[40]!==V||u[41]!==m||u[42]!==g||u[43]!==b||u[44]!==y||u[45]!==L||u[46]!==w||u[47]!==S||u[48]!==$||u[49]!==E||u[50]!==T||u[51]!==ea?(i=(0,o.jsx)(K,{__unstable_autoFocus:O,__unstable_hideCloseButton:L,contentRef:g,footer:b,header:y,id:w,onClickOutside:S,onClose:$,portal:E,radius:ee,ref:ec,scheme:T,shadow:V,width:ea,children:m}),u[38]=O,u[39]=ee,u[40]=V,u[41]=m,u[42]=g,u[43]=b,u[44]=y,u[45]=L,u[46]=w,u[47]=S,u[48]=$,u[49]=E,u[50]=T,u[51]=ea,u[52]=i):i=u[52],u[53]===Symbol.for("react.memo_cache_sentinel")?(a=(0,o.jsx)("div",{ref:eu,tabIndex:0}),u[53]=a):a=u[53],u[54]!==Y||u[55]!==ep||u[56]!==ey||u[57]!==w||u[58]!==em||u[59]!==k||u[60]!==en||u[61]!==ei||u[62]!==t||u[63]!==R||u[64]!==i||u[65]!==el?(l=(0,o.jsxs)(H,{...R,$animate:Y,$padding:en,$position:ei,"aria-labelledby":em,"aria-modal":!0,"data-ui":"Dialog",id:w,onActivate:k,onClick:ey,onFocus:ep,ref:t,role:"dialog",zOffset:el,children:[ev,i,a]}),u[54]=Y,u[55]=ep,u[56]=ey,u[57]=w,u[58]=em,u[59]=k,u[60]=en,u[61]=ei,u[62]=t,u[63]=R,u[64]=i,u[65]=el,u[66]=l):l=u[66],u[67]!==E||u[68]!==l?(d=(0,o.jsx)(n.j,{__unstable_name:E,children:l}),u[67]=E,u[68]=l,u[69]=d):d=u[69],d}),J=(0,s.forwardRef)(function(e,t){let i,a,l,d,u,c,h,f,p=(0,r.c)(62),{__unstable_disableRestoreFocusOnClose:m,boundaryElement:g,button:b,id:y,menu:v,onClose:x,onOpen:w,placement:k,popoverScheme:S,portal:$,popover:C,popoverRadius:E,preventOverflow:R}=e,T=void 0!==m&&m,A=void 0===$||$,[P,j]=(0,s.useState)(!1),[M,I]=(0,s.useState)(null),[_,z]=(0,s.useState)(null),O;p[0]===Symbol.for("react.memo_cache_sentinel")?(O=[],p[0]=O):O=p[0];let[L,D]=(0,s.useState)(O),V=(0,s.useRef)(P),B,N;p[1]!==w||p[2]!==P?(B=()=>{w&&P&&!V.current&&w()},N=[w,P],p[1]=w,p[2]=P,p[3]=B,p[4]=N):(B=p[3],N=p[4]),(0,s.useEffect)(B,N),p[5]!==x||p[6]!==P?(i=()=>{x&&!P&&V.current&&x()},a=[x,P],p[5]=x,p[6]=P,p[7]=i,p[8]=a):(i=p[7],a=p[8]),(0,s.useEffect)(i,a),p[9]===P?(l=p[10],d=p[11]):(l=()=>{V.current=P},d=[P],p[9]=P,p[10]=l,p[11]=d),(0,s.useEffect)(l,d),p[12]===Symbol.for("react.memo_cache_sentinel")?(u=()=>{j(Q),I(null)},p[12]=u):u=p[12];let F=u,H;p[13]===P?H=p[14]:(H=e=>{P&&e.preventDefault()},p[13]=P,p[14]=H);let W=H,U;p[15]===Symbol.for("react.memo_cache_sentinel")?(U=e=>{if("ArrowDown"===e.key||"Enter"===e.key||" "===e.key){e.preventDefault(),j(!0),I("first");return}if("ArrowUp"===e.key){e.preventDefault(),j(!0),I("last");return}},p[15]=U):U=p[15];let G=U,X;p[16]!==_||p[17]!==L?(X=e=>{let t=e.target;if(t instanceof Node&&!(_&&(t===_||_.contains(t)))){for(let e of L)if(t===e||e.contains(t))return;j(!1)}},p[16]=_,p[17]=L,p[18]=X):X=p[18];let Y=X,q;p[19]!==_||p[20]!==T?(q=()=>{j(!1),!T&&_&&_.focus()},p[19]=_,p[20]=T,p[21]=q):q=p[21];let K=q,Z;p[22]===L?Z=p[23]:(Z=e=>{let t=e.relatedTarget;if(t instanceof Node){for(let e of L)if(e===t||e.contains(t))return;j(!1)}},p[22]=L,p[23]=Z);let J=Z,ee;p[24]!==_||p[25]!==T?(ee=()=>{j(!1),!T&&_&&_.focus()},p[24]=_,p[25]=T,p[26]=ee):ee=p[26];let et=ee,en;p[27]===Symbol.for("react.memo_cache_sentinel")?(en=e=>(D(t=>t.concat([e])),()=>D(t=>t.filter(t=>t!==e))),p[27]=en):en=p[27];let er=en,ei;p[28]!==_||p[29]!==J||p[30]!==et||p[31]!==Y||p[32]!==K||p[33]!==y||p[34]!==v||p[35]!==M?(ei=v&&(0,s.cloneElement)(v,{"aria-labelledby":y,onBlurCapture:J,onClickOutside:Y,onEscape:K,onItemClick:et,originElement:_,registerElement:er,shouldFocus:M}),p[28]=_,p[29]=J,p[30]=et,p[31]=Y,p[32]=K,p[33]=y,p[34]=v,p[35]=M,p[36]=ei):ei=p[36];let eo=ei,ea;p[37]!==b||p[38]!==W||p[39]!==y||p[40]!==P?(ea=b&&(0,s.cloneElement)(b,{"data-ui":"MenuButton",id:y,onClick:F,onKeyDown:G,onMouseDown:W,"aria-haspopup":!0,"aria-expanded":P,ref:z,selected:b.props.selected??P}),p[37]=b,p[38]=W,p[39]=y,p[40]=P,p[41]=ea):ea=p[41];let es=ea,el,ed;p[42]===_?(el=p[43],ed=p[44]):(el=()=>_,ed=[_],p[42]=_,p[43]=el,p[44]=ed),(0,s.useImperativeHandle)(t,el,ed),p[45]===C?c=p[46]:(c=C||{},p[45]=C,p[46]=c),p[47]!==g||p[48]!==k||p[49]!==E||p[50]!==S||p[51]!==A||p[52]!==R||p[53]!==c?(h={boundaryElement:g,overflow:"auto",placement:k,portal:A,preventOverflow:R,radius:E,scheme:S,...c},p[47]=g,p[48]=k,p[49]=E,p[50]=S,p[51]=A,p[52]=R,p[53]=c,p[54]=h):h=p[54];let eu=h,ec;return p[55]===es?ec=p[56]:(ec=es||(0,o.jsx)(o.Fragment,{}),p[55]=es,p[56]=ec),p[57]!==eo||p[58]!==P||p[59]!==eu||p[60]!==ec?(f=(0,o.jsx)(n.k,{"data-ui":"MenuButton__popover",...eu,content:eo,open:P,children:ec}),p[57]=eo,p[58]=P,p[59]=eu,p[60]=ec,p[61]=f):f=p[61],f});function Q(e){return!e}let ee=l.keyframes`0%{background-position:100%;}100%{background-position:-100%;}`,et=l.css`background-image:linear-gradient( to right,var(--card-skeleton-color-from),var(--card-skeleton-color-to),var(--card-skeleton-color-from),var(--card-skeleton-color-from),var(--card-skeleton-color-from) );background-position:100%;background-size:200% 100%;background-attachment:fixed;animation-name:${ee};animation-timing-function:ease-in-out;animation-iteration-count:infinite;animation-duration:2000ms;`,en=l.css`opacity:${({$visible:e})=>+!!e};transition:opacity 200ms ease-in;@media screen and (prefers-reduced-motion:no-preference){${({$animated:e})=>e?et:l.css`background-color:var(--card-skeleton-color-from);`}}@media screen and (prefers-reduced-motion:reduce){background-color:var(--card-skeleton-color-from);}`,er=(0,l.styled)(n.lt).withConfig({displayName:"StyledSkeleton",componentId:"sc-6p2gkd-0"})(n.ct,en),ei=(0,s.forwardRef)(function(e,t){let i,a=(0,r.c)(16),l,d,u,c;a[0]===e?(l=a[1],d=a[2],u=a[3],c=a[4]):({animated:c,delay:l,radiu
9s:d,...u}=e,a[0]=e,a[1]=l,a[2]=d,a[3]=u,a[4]=c);let h=void 0!==c&&c,[f,p]=(0,s.useState)(!l),m,g;a[5]===l?(m=a[6],g=a[7]):(m=()=>{if(!l)return;let e=setTimeout(()=>{p(!0)},l);return()=>{clearTimeout(e)}},g=[l],a[5]=l,a[6]=m,a[7]=g),(0,s.useEffect)(m,g),a[8]===d?i=a[9]:(i=(0,n.ft)(d),a[8]=d,a[9]=i);let b=!l||f,y;return a[10]!==h||a[11]!==t||a[12]!==u||a[13]!==i||a[14]!==b?(y=(0,o.jsx)(er,{...u,$animated:h,$radius:i,$visible:b,ref:t}),a[10]=h,a[11]=t,a[12]=u,a[13]=i,a[14]=b,a[15]=y):y=a[15],y}),eo=(0,l.styled)(ei).withConfig({displayName:"StyledSkeleton",componentId:"sc-ilblpm-0"})(e=>{let{$size:r,$style:i}=e,{font:o,media:a}=(0,t.i)(e.theme),s=o[i];return(0,n.mt)(a,r,e=>{let t=s.sizes[e];return{height:t.lineHeight-t.ascenderHeight-t.descenderHeight}})}),ea=(0,s.forwardRef)(function(e,t){let i=(0,r.c)(9),a,s;i[0]===e?(a=i[1],s=i[2]):({size:s,...a}=e,i[0]=e,i[1]=a,i[2]=s);let l=void 0===s?2:s,d;i[3]===l?d=i[4]:(d=(0,n.ft)(l),i[3]=l,i[4]=d);let u=d,c;return i[5]!==u||i[6]!==t||i[7]!==a?(c=(0,o.jsx)(eo,{...a,$size:u,ref:t,$style:"text"}),i[5]=u,i[6]=t,i[7]=a,i[8]=c):c=i[8],c}),es=((0,s.forwardRef)(function(e,t){let i=(0,r.c)(9),a,s;i[0]===e?(a=i[1],s=i[2]):({size:s,...a}=e,i[0]=e,i[1]=a,i[2]=s);let l=void 0===s?2:s,d;i[3]===l?d=i[4]:(d=(0,n.ft)(l),i[3]=l,i[4]=d);let u=d,c;return i[5]!==u||i[6]!==t||i[7]!==a?(c=(0,o.jsx)(eo,{...a,$size:u,ref:t,$style:"label"}),i[5]=u,i[6]=t,i[7]=a,i[8]=c):c=i[8],c}),(0,s.forwardRef)(function(e,t){let i=(0,r.c)(9),a,s;i[0]===e?(a=i[1],s=i[2]):({size:s,...a}=e,i[0]=e,i[1]=a,i[2]=s);let l=void 0===s?2:s,d;i[3]===l?d=i[4]:(d=(0,n.ft)(l),i[3]=l,i[4]=d);let u=d,c;return i[5]!==u||i[6]!==t||i[7]!==a?(c=(0,o.jsx)(eo,{...a,$size:u,ref:t,$style:"heading"}),i[5]=u,i[6]=t,i[7]=a,i[8]=c):c=i[8],c}),(0,s.forwardRef)(function(e,t){let i=(0,r.c)(9),a,s;i[0]===e?(a=i[1],s=i[2]):({size:s,...a}=e,i[0]=e,i[1]=a,i[2]=s);let l=void 0===s?2:s,d;i[3]===l?d=i[4]:(d=(0,n.ft)(l),i[3]=l,i[4]=d);let u=d,c;return i[5]!==u||i[6]!==t||i[7]!==a?(c=(0,o.jsx)(eo,{...a,$size:u,ref:t,$style:"code"}),i[5]=u,i[6]=t,i[7]=a,i[8]=c):c=i[8],c}),(0,s.forwardRef)(function(e,t){let i=(0,r.c)(9),a,s;i[0]===e?(a=i[1],s=i[2]):({flex:a,...s}=e,i[0]=e,i[1]=a,i[2]=s);let l=void 0===e.tabIndex?0:e.tabIndex,d;return i[3]!==a||i[4]!==e.children||i[5]!==t||i[6]!==s||i[7]!==l?(d=(0,o.jsx)(n.lt,{"data-ui":"TabPanel",...s,flex:a,ref:t,role:"tabpanel",tabIndex:l,children:e.children}),i[3]=a,i[4]=e.children,i[5]=t,i[6]=s,i[7]=l,i[8]=d):d=i[8],d})),el={error:"critical",warning:"caution",success:"positive",info:"neutral"},ed={error:"critical",warning:"caution",success:"positive",info:"neutral"},eu=(0,l.styled)(n.at).withConfig({displayName:"TextBox",componentId:"sc-xd2ehd-0"})`overflow-x:auto;`,ec=(0,l.styled)(n.W).withConfig({displayName:"StyledToast",componentId:"sc-xd2ehd-1"})`pointer-events:all;width:100%;position:relative;overflow:hidden;overflow:clip;&[data-has-duration]{padding-bottom:calc(${2}px / 2);}`,eh=l.styled.div.withConfig({displayName:"LoadingBar",componentId:"sc-xd2ehd-2"})`display:flex;position:absolute;bottom:0px;top:0px;left:0px;right:0px;pointer-events:none;z-index:-1;overflow:hidden;overflow:clip;background:transparent;align-items:flex-end;will-change:opacity;`,ef=(0,l.styled)(n.W).withConfig({displayName:"LoadingBarMask",componentId:"sc-xd2ehd-3"})`position:absolute;top:0;left:-${2}px;right:-${2}px;bottom:${2}px;z-index:1;`,ep=(0,l.styled)(n.W).withConfig({displayName:"LoadingBarProgress",componentId:"sc-xd2ehd-4"})`display:block;height:100%;width:100%;transform-origin:0% 50%;background-color:${e=>{let{color:n}=(0,t.i)(e.theme);return n.button.default[e.tone].enabled.bg}};`,em={error:"alert",warning:"alert",success:"alert",info:"alert"};function eg(e){let t,i,a,s,l,d,u=(0,r.c)(50),c,h,f,m,g,b,y,v,x;u[0]===e?(c=u[1],h=u[2],f=u[3],m=u[4],g=u[5],b=u[6],y=u[7],v=u[8],x=u[9]):({closable:c,description:h,duration:f,onClose:m,radius:y,title:v,status:b,updatedAt:x,...g}=e,u[0]=e,u[1]=c,u[2]=h,u[3]=f,u[4]=m,u[5]=g,u[6]=b,u[7]=y,u[8]=v,u[9]=x);let w=void 0===y?3:y,k=b?el[b]:"default",S=b?ed[b]:"default",$=b?em[b]:"status",C=.26*!(0,n.R)(),E;u[10]===C?E=u[11]:(E=C?{type:"spring",visualDuration:C,bounce:.25}:{duration:0}
9,u[10]=C,u[11]=E);let R=E,T=f&&isFinite(f)&&f<20736e5,A;u[12]===Symbol.for("react.memo_cache_sentinel")?(A=["hidden","initial"],u[12]=A):A=u[12];let P=A,j;u[13]===Symbol.for("react.memo_cache_sentinel")?(j=["visible","slideIn"],u[13]=j):j=u[13];let M=j,I;u[14]===Symbol.for("react.memo_cache_sentinel")?(I=["hidden","slideOut"],u[14]=I):I=u[14];let _=I,z=T?"":void 0,O;return u[15]===v?O=u[16]:(O=v&&(0,o.jsx)(n.et,{size:1,weight:"medium",children:v}),u[15]=v,u[16]=O),u[17]!==h||u[18]!==R?(t=h&&(0,o.jsx)(ew,{muted:!0,size:1,variants:ey,transition:R,children:h}),u[17]=h,u[18]=R,u[19]=t):t=u[19],u[20]!==O||u[21]!==t?(i=(0,o.jsx)(eu,{flex:1,padding:3,children:(0,o.jsxs)(n.O,{gap:3,children:[O,t]})}),u[20]=O,u[21]=t,u[22]=i):i=u[22],u[23]!==S||u[24]!==c||u[25]!==m?(a=c&&(0,o.jsx)(n.lt,{padding:1,children:(0,o.jsx)(n.Y,{as:"button",icon:p.CloseIcon,mode:"bleed",padding:2,tone:S,onClick:m,style:{verticalAlign:"top"}})}),u[23]=S,u[24]=c,u[25]=m,u[26]=a):a=u[26],u[27]!==i||u[28]!==a||u[29]!==R?(s=(0,o.jsxs)(ex,{align:"flex-start",variants:ey,transition:R,children:[i,a]}),u[27]=i,u[28]=a,u[29]=R,u[30]=s):s=u[30],u[31]!==k||u[32]!==f||u[33]!==T||u[34]!==m||u[35]!==w||u[36]!==R||u[37]!==x||u[38]!==C?(l=T&&(0,o.jsxs)(ek,{variants:ey,transition:R,children:[(0,o.jsx)(ef,{tone:k,radius:w}),(0,o.jsx)(eS,{tone:k,initial:{scaleX:0},animate:{scaleX:1},transition:{delay:C,duration:f/1e3,ease:"linear"},onAnimationComplete:m},`progress-${x}`)]}),u[31]=k,u[32]=f,u[33]=T,u[34]=m,u[35]=w,u[36]=R,u[37]=x,u[38]=C,u[39]=l):l=u[39],u[40]!==k||u[41]!==w||u[42]!==g||u[43]!==$||u[44]!==s||u[45]!==l||u[46]!==z||u[47]!==R||u[48]!==C?(d=(0,o.jsxs)(ev,{"data-ui":"Toast",role:$,...g,"data-has-duration":z,custom:C,radius:w,shadow:2,tone:k,forwardedAs:"li",layout:"position",variants:eb,initial:P,animate:M,exit:_,transition:R,children:[s,l]}),u[40]=k,u[41]=w,u[42]=g,u[43]=$,u[44]=s,u[45]=l,u[46]=z,u[47]=R,u[48]=C,u[49]=d):d=u[49],d}let eb={initial:{y:32,scale:.5,zIndex:1},hidden:{opacity:0},visible:e=>e?{opacity:1,transition:{when:"beforeChildren",delayChildren:function(e=.1,{startDelay:t=0,from:n=0,ease:r}={}){return(i,o)=>{let a=e*Math.abs(("number"==typeof n?n:function(e,t){if("first"===e)return 0;{let n=t-1;return"last"===e?n:n/2}}(n,o))-i);if(r){let t=o*e;a=(0,f.easingDefinitionToFunction)(r)(a/t)*t}return t+a}}(e/3),duration:e/3}}:{opacity:1},slideIn:{y:0,scale:1},slideOut:{zIndex:0,scale:.75}},ey={initial:{willChange:"transform"},hidden:{opacity:0},visible:{opacity:1}},ev=h.motion.create(ec),ex=h.motion.create(n.at),ew=h.motion.create(n.et),ek=h.motion.create(eh),eS=h.motion.create(ep);function e$(){return!1}function eC(){return!0}let eE=()=>()=>{},eR=(0,n.J)("@sanity/ui/context/toast",null);function eT(e){let t,i=(0,r.c)(9),{children:a,padding:s,paddingX:l,paddingY:d,gap:u}=e,c=void 0===s?4:s,h=void 0===u?3:u,{zIndex:f}=(0,n.N)(),p;return i[0]===f?p=i[1]:(p={zIndex:f},i[0]=f,i[1]=p),i[2]!==a||i[3]!==h||i[4]!==c||i[5]!==l||i[6]!==d||i[7]!==p?(t=(0,o.jsx)(eA,{forwardedAs:"ul","data-ui":"ToastProvider",padding:c,paddingX:l,paddingY:d,gap:h,columns:1,style:p,children:a}),i[2]=a,i[3]=h,i[4]=c,i[5]=l,i[6]=d,i[7]=p,i[8]=t):t=i[8],t}let eA=(0,l.styled)(n.s).withConfig({displayName:"StyledLayer",componentId:"sc-vx00k8-0"})`box-sizing:border-box;position:fixed;right:0;bottom:0;list-style:none;pointer-events:none;max-width:420px;width:100%;`,eP=0;function ej(e){let{dismiss:t,id:n,params:r,updatedAt:i}=e;return(0,o.jsx)(eg,{closable:r.closable,description:r.description,onClose:t,status:r.status,title:r.title,duration:r.duration,updatedAt:i},n)}function eM(e){if("treeitem"===e.getAttribute("role")&&e.focus(),"none"===e.getAttribute("role")){let t=e.firstChild;t&&t instanceof HTMLElement&&t.focus()}}let eI=(0,n.J)("@sanity/ui/context/tree",null);function e_(e,t){let n=[e];for(let e of t)Array.isArray(e)?n.push(...e):n.push(e);return n.filter(Boolean)}(0,s.forwardRef)(function(e,t){let i,a,l,d,u,c,h,f,p=(0,r.c)(38),m,g,b,y,v;p[0]===e?(m=p[1],g=p[2],b=p[3],y=p[4],v=p[5]):({children:m,gap:g,space:v,onFocus:b,...y}=e,p[0]=e,p[1]=m,p[2]=g,p[3]=b,p[4]=y,p[5]=v);let x=void 0===g?void 0===v?1:v:g,w=(0,s.useRef)(null),[k,S]=(0,s.use
9State)(null),$=(0,s.useRef)(k),C;p[6]===Symbol.for("react.memo_cache_sentinel")?(C=[],p[6]=C):C=p[6];let E=C,R;p[7]===Symbol.for("react.memo_cache_sentinel")?(R=[],p[7]=R):R=p[7];let[T,A]=(0,s.useState)(R),P;p[8]===Symbol.for("react.memo_cache_sentinel")?(P={},p[8]=P):P=p[8];let[j,M]=(0,s.useState)(P),I=(0,s.useRef)(j),_;p[9]===Symbol.for("react.memo_cache_sentinel")?(_=()=>w.current,p[9]=_):_=p[9],(0,s.useImperativeHandle)(t,_),p[10]===k?(i=p[11],a=p[12]):(i=()=>{$.current=k},a=[k],p[10]=k,p[11]=i,p[12]=a),(0,s.useEffect)(i,a),p[13]===j?(l=p[14],d=p[15]):(l=()=>{I.current=j},d=[j],p[13]=j,p[14]=l,p[15]=d),(0,s.useEffect)(l,d),p[16]===Symbol.for("react.memo_cache_sentinel")?(u=(e,t,n,r)=>(M(r=>({...r,[t]:{element:e,expanded:n}})),r&&S(e),()=>{M(e=>{let n={...e};return delete n[t],n})}),p[16]=u):u=p[16];let z=u,O;p[17]===Symbol.for("react.memo_cache_sentinel")?(O=(e,t)=>{M(n=>{let r=n[e];return r?{...n,[e]:{...r,expanded:t}}:n})},p[17]=O):O=p[17];let L=O,D=k||T[0]||null,V;p[18]!==x||p[19]!==j||p[20]!==D?(V={version:0,focusedElement:D,level:0,path:E,registerItem:z,setExpanded:L,setFocusedElement:S,gap:x,space:x,state:j},p[18]=x,p[19]=j,p[20]=D,p[21]=V):V=p[21];let B=V,N;p[22]===T?N=p[23]:(N=e=>{if($.current){if("ArrowDown"===e.key){e.preventDefault();let t=function(e,t,n){let r=t.indexOf(n),i=t.slice(r),o=t.length;for(let t=1;t<o;t+=1){if(!i[t])continue;let n=i[t].getAttribute("data-tree-key");if(!n)continue;let r=n.split("/");r.pop();let o=[],a=!0;for(let t=0;t<r.length;t+=1)if(o.push(r[t]),!e[o.join("/")]?.expanded){a=!1;break}if(a)return i[t]}return null}(I.current,T,$.current);t&&(eM(t),S(t));return}if("ArrowUp"===e.key){e.preventDefault();let t=function(e,t,n){let r=t.indexOf(n),i=t.slice(0,r),o=i.length;for(let t=o-1;t>=0;--t){let n=i[t].getAttribute("data-tree-key");if(!n)continue;let r=n.split("/");r.pop();let o=[],a=!0;for(let t=0;t<r.length;t+=1)if(o.push(r[t]),!e[o.join("/")]?.expanded){a=!1;break}if(a)return i[t]}return null}(I.current,T,$.current);t&&(eM(t),S(t));return}if("ArrowLeft"===e.key){e.preventDefault();let t=$.current.getAttribute("data-tree-key");if(!t)return;let n=I.current[t];if(!n)return;if(n.expanded)M(e=>{let n=e[t];return n?{...e,[t]:{...n,expanded:!1}}:e});else{let e=t.split("/");e.pop();let n=e.join("/"),r=n&&I.current[n];r&&(r.element.focus(),S(r.element))}return}if("ArrowRight"===e.key){e.preventDefault();let t=$.current.getAttribute("data-tree-key");if(!t)return;I.current[t]?.expanded||M(e=>{let n=e[t];return n?{...e,[t]:{...n,expanded:!0}}:e});return}}},p[22]=T,p[23]=N);let F=N,H;p[24]===b?H=p[25]:(H=e=>{S(e.target),b?.(e)},p[24]=b,p[25]=H);let W=H,U;return p[26]===Symbol.for("react.memo_cache_sentinel")?(U=()=>{w.current&&A(Array.from(w.current.querySelectorAll('[data-ui="TreeItem"]')))},p[26]=U):U=p[26],p[27]===m?c=p[28]:(c=[m],p[27]=m,p[28]=c),(0,s.useEffect)(U,c),p[29]!==m||p[30]!==W||p[31]!==F||p[32]!==y||p[33]!==x?(h=(0,o.jsx)(n.O,{as:"ul","data-ui":"Tree",...y,onFocus:W,onKeyDown:F,ref:w,role:"tree",gap:x,children:m}),p[29]=m,p[30]=W,p[31]=F,p[32]=y,p[33]=x,p[34]=h):h=p[34],p[35]!==B||p[36]!==h?(f=(0,o.jsx)(eI.Provider,{value:B,children:h}),p[35]=B,p[36]=h,p[37]=f):f=p[37],f}),(0,l.styled)(n.et).withConfig({displayName:"ToggleArrowText",componentId:"sc-qnd0f7-2"})`& > svg{transition:transform 100ms;}`;let ez=l.styled.div.withConfig({displayName:"StyledLabel",componentId:"sc-6qcmll-0"})(function(e){return(0,n.rt)("label",e)},n.it,function(e){let{$accent:n,$muted:r}=e,{font:i}=(0,t.i)(e.theme);return l.css`text-transform:uppercase;${n&&l.css`color:var(--card-accent-fg-color);`} ${r&&l.css`color:var(--card-muted-fg-color);`} & code{font-family:${i.code.family};border-radius:1px;}& a{text-decoration:none;border-radius:1px;}& svg{display:inline;}& [data-sanity-icon]{vertical-align:baseline;}`}),eO=(0,s.forwardRef)(function(e,t){let i,a,s,l=(0,r.c)(26),d,u,c,h,f,p,m,g;l[0]===e?(d=l[1],u=l[2],c=l[3],h=l[4],f=l[5],p=l[6],m=l[7],g=l[8]):({accent:d,align:u,children:c,muted:f,size:p,textOverflow:m,weight:g,...h}=e,l[0]=e,l[1]=d,l[2]=u,l[3]=c,l[4]=h,l[5]=f,l[6]=p,l[7]=m,l[8]=g);let b=void 0!==f&&f,y=void 0===p?2:p,v=c;if("ellipsis"===m){let e;l[9]===v?e=l[10]:(e=(0,o.jsx)(n.tt,{children:v}),l[9]=v,l[10]=e),v=e}else{let e;l[11]===v?e=l[12]:(e=(0,o.jsx)("span",{children:v}),l[11]=v,l[12]=e),v=e}return l[13]===u?i=l[14]:(i=(0,n.ft)(u),l[13]=u,l[14]=i),l[15]===y?a=l[16]:(a=(0,n.ft)(y),l[15]=y,l[16]=a),l[17]!==d||l[18]!==v||l[19]!==b||l[20]!==t||l[21]!==h||l[22]!==i||l[23]!==a||l[24]!==g?(s=(0,o.jsx)(ez,{"data-ui":"Label",...h,$accent:d,$align:i,$muted:b,$size:a,$weight:g,ref:t,children:v}),l[17]=d,l[18]=v,l[19]=b,l[20]=t,l[21]=h,l[22]=i,l[23]=a,l[24]=g,l[25]=s):s=l[25],s}),eL=l.styled.div.withConfig({displayName:"StyledAvatar",componentId:"sc-hfmugy-0"})(function(e){let{avatar:r,media:i}=(0,t.i)(e.theme);return(0,n.mt)(i,e.$size,e=>{let t=r.sizes[e]||r.sizes[0];return{width:(0,n.ht)(t.size),height:(0,n.ht)(t.size),borderRadius:(0,n.ht)(t.size/2),"&>svg":{width:(0,n.ht)(t.size),height:(0,n.ht)(t.size),borderRadius:(0,n.ht)(t.size/2)}}})},function(e){let{$color:r}=e,{avatar:i}=(0,t.i)(e.theme);return{"--avatar-bg-color":`var(--card-avatar-${r}-bg-color)`,"--avatar-fg-color":`var(--card-avatar-${r}-fg-color)`,backgroundColor:"var(--avatar-bg-color)",position:"relative",boxSizing:"border-box",userSelect:"none",boxShadow:"0 0 0 1px var(--card-bg-color)",'&[data-status="inactive"]':{o
9pacity:"0.5"},"&>svg":{"&:not([hidden])":{display:"block"}},'&[data-as="button"]':{WebkitFontSmoothing:"inherit",appearance:"none",margin:0,padding:0,border:0,font:"inherit",color:"inherit",outline:"none","&:focus":{boxShadow:(0,n.Z)({focusRing:i.focusRing})},"&:focus:not(:focus-visible)":{boxShadow:"none"}}}}),eD=l.styled.div.withConfig({displayName:"Arrow",componentId:"sc-hfmugy-1"})(function(){return{position:"absolute",boxSizing:"border-box",zIndex:"0",opacity:"0",transition:"all 0.2s linear",transform:"rotate(-90deg) translate3d(0, 6px, 0)",left:0,right:0,top:0,bottom:0,"& > svg":{width:"11px",height:"7px",position:"absolute",top:"-5px",left:"50%",transform:"translateX(-6px)","&:not([hidden])":{display:"block"}},"[data-arrow-position='inside'] > &":{transform:"rotate(-90deg) translate3d(0, 6px, 0)",opacity:"0"},"[data-arrow-position='top'] > &":{opacity:"1",transform:"rotate(0deg)"},"[data-arrow-position='bottom'] > &":{opacity:"1",transform:"rotate(-180deg)"}}}),eV=l.styled.ellipse.withConfig({displayName:"BgStroke",componentId:"sc-hfmugy-2"})(function(){return{strokeWidth:"4px",stroke:"var(--card-bg-color)"}}),eB=l.styled.ellipse.withConfig({displayName:"Stroke",componentId:"sc-hfmugy-3"})(function(){return{strokeWidth:"2px",stroke:"var(--avatar-bg-color)",'[data-status="editing"] &':{strokeDasharray:"2 4",strokeLinecap:"round"}}}),eN=l.styled.div.withConfig({displayName:"Initials",componentId:"sc-hfmugy-4"})(function(){return{width:"100%",height:"100%",color:"var(--avatar-fg-color)",alignItems:"center",justifyContent:"center",textTransform:"uppercase",textAlign:"center",borderRadius:"50%","&:not([hidden])":{display:"flex"}}}),eF=(0,l.styled)(eO).withConfig({displayName:"InitialsLabel",componentId:"sc-hfmugy-5"})({color:"inherit"}),eH=l.styled.svg.withConfig({displayName:"AvatarImage",componentId:"sc-hfmugy-6"})(function(){return{position:"relative"}}),eW=(0,s.forwardRef)(function(e,t){let i,a,l,u,c=(0,r.c)(46),h,f,p,m,g,b,y,v,x,w,k,S;c[0]===e?(h=c[1],f=c[2],p=c[3],m=c[4],g=c[5],b=c[6],y=c[7],v=c[8],x=c[9],w=c[10],k=c[11],S=c[12]):({__unstable_hideInnerStroke:h,as:m,color:x,src:v,title:S,initials:g,onImageLoadError:b,arrowPosition:p,animateArrowFrom:f,status:w,size:k,...y}=e,c[0]=e,c[1]=h,c[2]=f,c[3]=p,c[4]=m,c[5]=g,c[6]=b,c[7]=y,c[8]=v,c[9]=x,c[10]=w,c[11]=k,c[12]=S);let $=void 0===x?"gray":x,C=void 0===w?"online":w,E=void 0===k?1:k,{avatar:R}=(0,n.st)(),T=d.default.isValidElementType(m)?m:"div",A=(0,n.ft)(E),P=(R.sizes[A[0]]||R.sizes[0]).size,j=P/2,M=(0,s.useId)(),[I,_]=(0,s.useState)(f||p||"inside"),[z,O]=(0,s.useState)(!1),L=`avatar-image-${M}`,D,V;c[13]!==I||c[14]!==p?(D=()=>{if(I===p)return;let e=requestAnimationFrame(()=>_(p));return()=>cancelAnimationFrame(e)},V=[I,p],c[13]=I,c[14]=p,c[15]=D,c[16]=V):(D=c[15],V=c[16]),(0,s.useEffect)(D,V),c[17]===v?(i=c[18],a=c[19]):(i=()=>{v&&O(!1)},a=[v],c[17]=v,c[18]=i,c[19]=a),(0,s.useEffect)(i,a),c[20]===b?l=c[21]:(l=()=>{O(!0),b&&b(Error("Avatar: the image failed to load"))},c[20]=b,c[21]=l);let B=l,N="string"==typeof T?T:void 0,F;c[22]===$?F=c[23]:(F=(0,o.jsx)(eD,{children:(0,o.jsx)("svg",{width:"11",height:"7",viewBox:"0 0 11 7",fill:"none",children:(0,o.jsx)("path",{d:"M6.67948 1.50115L11 7L0 7L4.32052 1.50115C4.92109 0.736796 6.07891 0.736795 6.67948 1.50115Z",fill:$})})}),c[22]=$,c[23]=F),c[24]!==h||c[25]!==j||c[26]!==P||c[27]!==B||c[28]!==z||c[29]!==L||c[30]!==v?(u=!z&&v&&(0,o.jsxs)(eH,{viewBox:`0 0 ${P} ${P}`,fill:"none",children:[(0,o.jsx)("defs",{children:(0,o.jsx)("pattern",{id:L,patternContentUnits:"objectBoundingBox",width:"1",height:"1",children:(0,o.jsx)("image",{href:v,width:"1",height:"1",onError:B})})}),(0,o.jsx)("circle",{cx:j,cy:j,r:j,fill:`url(#${L})`}),!h&&(0,o.jsx)(eV,{cx:j,cy:j,rx:j,ry:j,vectorEffect:"non-scaling-stroke"}),(0,o.jsx)(eB,{cx:j,cy:j,rx:j,ry:j,vectorEffect:"non-scaling-stroke"})]}),c[24]=h,c[25]=j,c[26]=P,c[27]=B,c[28]=z,c[29]=L,c[30]=v,c[31]=u):u=c[31];let H=(z||!v)&&g&&(0,o.jsx)(o.Fragment,{children:(0,o.jsx)(eN,{children:(0,o.jsx)(eF,{forwardedAs:"span",size:A.map(eU),weight:"medium",children:g})})}),W;return c[32]!==eL||c[33]!==I||c[34]!==T||c[35]!==$||c[36]!==t||c[37]!==y||c[38]!==A||c[39]!==C||c[40]!==F||c[41]!==u||c[42]!==H||c[43]!==N||c[44]!==S?(W=(0,o.jsxs)(eL,{as:T,"data-as":N,"data-ui":"Avatar",...y,$color:$,$size:A,"aria-label":S,"data-arrow-position":I,"data-status":C,ref:t,title:S,children:[F,u,H]}),c[32]=eL,c[33]=I,c[34]=T,c[35]=$,c[36]=t,c[37]=y,c[38]=A,c[39]=C,c[40]=F,c[41]=u,c[42]=H,c[43]=N,c[44]=S,c[45]=W):W=c[45],W});function eU(e){return 1===e?1:2===e?3:5*(3===e)}let eG=l.styled.div.withConfig({displayName:"StyledAvatarCounter",componentId:"sc-miwe8s-0"})(function(e){let{avatar:r,media:i}=(0,t.i)(e.theme);return(0,n.mt)(i,e.$size,e=>{let t=r.sizes[e];return t?{borderRadius:(0,n.ht)(t.size/2),minWidth:(0,n.ht)(t.size),height:(0,n.ht)(t.size)}:n.Tt})},function(e){let{space:r}=(0,t.i)(e.theme);return l.css`align-items:center;justify-content:center;box-sizing:border-box;user-select:none;color:inherit;color:var(--card-fg-color);background:var(--card-bg-color);box-shadow:0 0 0 1px var(--card-bg-color),inset 0 0 0 1px var(--card-hairline-hard-color);padding:0 ${(0,n.ht)(r[2])};&:not([hidden]){display:flex;}`}),eX=(0,s.forwardRef)(function(e,t){let i,a,s=(0,r.c)(20),{count:l,size:d}=e,u=void 0===d?1:d,c,h,f,p,m,g,b;if(s[0]!==t||s[1]!==u){let e=(0,n.ft)(u);h=eG,m=e,g="AvatarCounter",b=t,c=eO,f="span",p=e.map(eY),s[0]=t,s[1]=u,s[2]=c,s[3]=h,s[4]=f,s[5]=p,s[6]=m,s[7]=g,s[8]=b}else c=s[2],h=s[3],f=s[4],p=s[5],m=s[6],g=s[7],b=s[8];return s[9]!==c||s[10]!==l||s[11]!==f||s[12]!==p?(i=(0,o.jsx)(c,{as:f,size:p,weight:"medium",children:l}),s[9]=c,s[10]=l,s[11]=f,s[12]=p,s[13]=i):i=s[13],s[14]!==h||s[15]!==m||s[16]!==g||s[17]!==b||s[18]!==i?(a=(0,o.jsx)(h,{$size:m,"data-ui":g,ref:b,children:i}),s[14]=h,s[15]=m,s[16]=g,s[17]=b,s[18]=i,s[19]=a):a=s[19],a}
9);function eY(e){return 1===e?1:2===e?3:5*(3===e)}let eq=l.css`white-space:nowrap;& > div{vertical-align:top;&:not([hidden]){display:inline-block;}}`,eK=l.styled.div.withConfig({displayName:"StyledAvatarStack",componentId:"sc-m8rww4-0"})(function(e){let{avatar:r,media:i}=(0,t.i)(e.theme);return(0,n.mt)(i,e.$size,e=>{let t=r.sizes[e];return t?{"& > div + div":{marginLeft:(0,n.ht)(t.distance)}}:n.Tt})},function(){return eq}),eZ=(0,s.forwardRef)(function(e,t){let i,a=(0,r.c)(38),l,d,u,c;a[0]===e?(l=a[1],d=a[2],u=a[3],c=a[4]):({children:l,maxLength:u,size:c,...d}=e,a[0]=e,a[1]=l,a[2]=d,a[3]=u,a[4]=c);let h=void 0===u?4:u,f=void 0===c?1:c,p,m,g,b,y,v,x,w;if(a[5]!==l||a[6]!==h||a[7]!==t||a[8]!==d||a[9]!==f){let e,r=s.Children.toArray(l).filter(s.isValidElement),i=Math.max(h,0),u;a[18]===f?u=a[19]:(u=(0,n.ft)(f),a[18]=f,a[19]=u);let c=u,k=r.length,S=k-(i-1),$=S>1?r.slice(S,k):r;p=eK,m="AvatarStack",g=d,b=t,y=c,a[20]!==k||a[21]!==c?(v=0===k&&(0,o.jsx)("div",{children:(0,o.jsx)(eX,{count:k,size:c})}),a[20]=k,a[21]=c,a[22]=v):v=a[22],a[23]!==S||a[24]!==k||a[25]!==c?(x=0!==k&&S>1&&(0,o.jsx)("div",{children:(0,o.jsx)(eX,{count:S,size:c})}),a[23]=S,a[24]=k,a[25]=c,a[26]=x):x=a[26],a[27]===c?e=a[28]:(e=(e,t)=>(0,o.jsx)("div",{children:(0,s.cloneElement)(e,{size:c})},String(t)),a[27]=c,a[28]=e),w=$.map(e),a[5]=l,a[6]=h,a[7]=t,a[8]=d,a[9]=f,a[10]=p,a[11]=m,a[12]=g,a[13]=b,a[14]=y,a[15]=v,a[16]=x,a[17]=w}else p=a[10],m=a[11],g=a[12],b=a[13],y=a[14],v=a[15],x=a[16],w=a[17];return a[29]!==p||a[30]!==m||a[31]!==g||a[32]!==b||a[33]!==y||a[34]!==v||a[35]!==x||a[36]!==w?(i=(0,o.jsxs)(p,{"data-ui":m,...g,ref:b,$size:y,children:[v,x,w]}),a[29]=p,a[30]=m,a[31]=g,a[32]=b,a[33]=y,a[34]=v,a[35]=x,a[36]=w,a[37]=i):i=a[37],i}),eJ=(0,l.styled)(n.lt).withConfig({displayName:"StyledBadge",componentId:"sc-4z4hgx-0"})(n.ct,function(e){let{$tone:t}=e;return{"--card-bg-color":`var(--card-badge-${t}-bg-color)`,"--card-fg-color":`var(--card-badge-${t}-fg-color)`,backgroundColor:"var(--card-bg-color)",cursor:"default","&:not([hidden])":{display:"inline-block",verticalAlign:"top"}}}),eQ=(0,s.forwardRef)(function(e,t){let i,a,s,l=(0,r.c)(21),d,u,c,h,f,p;if(l[0]!==e){let{children:t,fontSize:n,mode:r,padding:i,radius:o,tone:a,...s}=e;d=t,c=n,h=i,f=o,p=a,u=s,l[0]=e,l[1]=d,l[2]=u,l[3]=c,l[4]=h,l[5]=f,l[6]=p}else d=l[1],u=l[2],c=l[3],h=l[4],f=l[5],p=l[6];let m=void 0===c?1:c,g=void 0===h?1:h,b=void 0===f?"full":f,y=void 0===p?"default":p,v;return l[7]===b?v=l[8]:(v=(0,n.ft)(b),l[7]=b,l[8]=v),l[9]===g?i=l[10]:(i=(0,n.ft)(g),l[9]=g,l[10]=i),l[11]!==d||l[12]!==m?(a=(0,o.jsx)(n.et,{size:m,children:d}),l[11]=d,l[12]=m,l[13]=a):a=l[13],l[14]!==t||l[15]!==u||l[16]!==v||l[17]!==i||l[18]!==a||l[19]!==y?(s=(0,o.jsx)(eJ,{"data-ui":"Badge",...u,$tone:y,$radius:v,padding:i,ref:t,children:a}),l[14]=t,l[15]=u,l[16]=v,l[17]=i,l[18]=a,l[19]=y,l[20]=s):s=l[20],s}),e0=l.styled.div.withConfig({displayName:"StyledCheckbox",componentId:"sc-33tf77-0"})(function(){return l.css`position:relative;display:inline-block;`}),e1=l.styled.input.withConfig({displayName:"Input",componentId:"sc-33tf77-1"})(function(e){let{color:r,input:i,radius:o}=(0,t.i)(e.theme),{focusRing:a}=i.checkbox;return l.css`position:absolute;top:0;left:0;width:100%;height:100%;outline:none;opacity:0;z-index:1;padding:0;margin:0;& + span{position:relative;display:block;height:${(0,n.ht)(i.checkbox.size)};width:${(0,n.ht)(i.checkbox.size)};box-sizing:border-box;box-shadow:${(0,n.X)({color:r.input.default.enabled.border,width:i.border.width})};border-radius:${(0,n.ht)(o[2])};line-height:1;background-color:${r.input.default.enabled.bg};& > svg{display:block;position:absolute;opacity:0;height:100%;width:100%;& > path{vector-effect:non-scaling-stroke;stroke-width:1.5px !important;}}}&:checked + span{background:${r.input.default.enabled.fg};box-shadow:${(0,n.X)({color:r.input.default.enabled.fg,width:i.border.width})};color:${r.input.default.enabled.bg};}&:not(:disabled):focus:focus-visible + span{box-shadow:${(0,n.Z)({focusRing:a})};}&:not(:disabled):focus:focus-visible&:checked + span{box-shadow:${(0,n.Z)({focusRing:{width:1,offset:1}})};}&[data-error] + span{background-color:${r.input.invalid.enabled.border};box-shadow:${(0,n.X)({width:i.border.width,color:r.input.invalid.enabled.muted.bg})};color:${r.input.default.disabled.fg};}&[data-error]&:checked + span{background-color:${r.input.invalid.enabled.muted.bg};color:${r.input.default.enabled.bg};}&[data-error]&:checked&:not(:disabled):focus:focus-visible + span{box-shadow:${(0,n.Z)({border:{width:i.border.width,color:r.input.invalid.readOnly.muted.bg},focusRing:{width:1,offset:1}})};}&:disabled + span{background-color:${r.input.default.disabled.bg};box-shadow:${(0,n.X)({width:i.border.width,color:r.input.default.disabled.border})};color:${r.input.default.disabled.fg};}&:disabled&:checked + span{background-color:${r.input.default.disabled.muted.bg};}&[data-read-only] + span{background-color:${r.input.default.readOnly.bg};box-shadow:${(0,n.X)({width:i.border.width,color:r.input.default.readOnly.border})};color:${r.input.default.readOnly.fg};}&[data-read-only]&:checked + span{background-color:${r.input.default.readOnly.muted.bg};}&:checked + span > svg:first-child{opacity:1;}
9&:indeterminate + span > svg:last-child{opacity:1;}`}),e2=(0,s.forwardRef)(function(e,t){let i,a,l,d,u=(0,r.c)(25),c,h,f,p,b,y,v,x;u[0]===e?(c=u[1],h=u[2],f=u[3],p=u[4],b=u[5],y=u[6],v=u[7],x=u[8]):({checked:c,className:h,disabled:p,indeterminate:b,customValidity:f,readOnly:y,style:x,...v}=e,u[0]=e,u[1]=c,u[2]=h,u[3]=f,u[4]=p,u[5]=b,u[6]=y,u[7]=v,u[8]=x);let w=(0,s.useRef)(null),k;u[9]===Symbol.for("react.memo_cache_sentinel")?(k=()=>w.current,u[9]=k):k=u[9],(0,s.useImperativeHandle)(t,k),u[10]===b?(i=u[11],a=u[12]):(i=()=>{w.current&&(w.current.indeterminate=b||!1)},a=[b],u[10]=b,u[11]=i,u[12]=a),(0,s.useEffect)(i,a),(0,n.D)(w,f);let S=!p&&y?"":void 0,$=f?"":void 0,C=p||y,E;return u[13]!==c||u[14]!==y||u[15]!==v||u[16]!==S||u[17]!==$||u[18]!==C?(E=(0,o.jsx)(e1,{"data-read-only":S,"data-error":$,...v,checked:c,disabled:C,type:"checkbox",readOnly:y,ref:w}),u[13]=c,u[14]=y,u[15]=v,u[16]=S,u[17]=$,u[18]=C,u[19]=E):E=u[19],u[20]===Symbol.for("react.memo_cache_sentinel")?(l=(0,o.jsxs)("span",{children:[(0,o.jsx)(m,{}),(0,o.jsx)(g,{})]}),u[20]=l):l=u[20],u[21]!==h||u[22]!==x||u[23]!==E?(d=(0,o.jsxs)(e0,{className:h,"data-ui":"Checkbox",style:x,children:[E,l]}),u[21]=h,u[22]=x,u[23]=E,u[24]=d):d=u[24],d});function e3({theme:e}){let{color:{syntax:n}}=(0,t.i)(e);return{"&.atrule":{color:n.atrule},"&.attr-name":{color:n.attrName},"&.attr-value":{color:n.attrValue},"&.attribute":{color:n.attribute},"&.boolean":{color:n.boolean},"&.builtin":{color:n.builtin},"&.cdata":{color:n.cdata},"&.char":{color:n.char},"&.class":{color:n.class},"&.class-name":{color:n.className},"&.comment":{color:n.comment},"&.constant":{color:n.constant},"&.deleted":{color:n.deleted},"&.doctype":{color:n.doctype},"&.entity":{color:n.entity},"&.function":{color:n.function},"&.hexcode":{color:n.hexcode},"&.id":{color:n.id},"&.important":{color:n.important},"&.inserted":{color:n.inserted},"&.keyword":{color:n.keyword},"&.number":{color:n.number},"&.operator":{color:n.operator},"&.prolog":{color:n.prolog},"&.property":{color:n.property},"&.pseudo-class":{color:n.pseudoClass},"&.pseudo-element":{color:n.pseudoElement},"&.punctuation":{color:n.punctuation},"&.regex":{color:n.regex},"&.selector":{color:n.selector},"&.string":{color:n.string},"&.symbol":{color:n.symbol},"&.tag":{color:n.tag},"&.unit":{color:n.unit},"&.url":{color:n.url},"&.variable":{color:n.variable}}}let e5=(0,s.lazy)(()=>e.A(280382)),e4=l.styled.pre.withConfig({displayName:"StyledCode",componentId:"sc-4i8yh-0"})(function(){return l.css`color:var(--card-code-fg-color);& code{font-family:inherit;&.refractor .token{${e3}}}& a{color:inherit;text-decoration:underline;border-radius:1px;}& svg{display:inline;}& [data-sanity-icon]{vertical-align:baseline;}`},function(e){return(0,n.rt)("code",e)}),e6=(0,s.forwardRef)(function(e,t){let i,a,l,d=(0,r.c)(22),u,c,h,f,p;d[0]===e?(u=d[1],c=d[2],h=d[3],f=d[4],p=d[5]):({children:u,language:c,size:f,weight:p,...h}=e,d[0]=e,d[1]=u,d[2]=c,d[3]=h,d[4]=f,d[5]=p);let m=void 0===f?2:f,g;d[6]===m?g=d[7]:(g=(0,n.ft)(m),d[6]=m,d[7]=g);let b=p,y;return d[8]===u?y=d[9]:(y=(0,o.jsx)("code",{children:u}),d[8]=u,d[9]=y),d[10]!==u||d[11]!==c?(i=(0,o.jsx)(e5,{language:c,value:u}),d[10]=u,d[11]=c,d[12]=i):i=d[12],d[13]!==y||d[14]!==i?(a=(0,o.jsx)(s.Suspense,{fallback:y,children:i}),d[13]=y,d[14]=i,d[15]=a):a=d[15],d[16]!==t||d[17]!==h||d[18]!==g||d[19]!==b||d[20]!==a?(l=(0,o.jsx)(e4,{"data-ui":"Code",...h,$size:g,$weight:b,ref:t,children:a}),d[16]=t,d[17]=h,d[18]=g,d[19]=b,d[20]=a,d[21]=l):l=d[21],l}),e7=l.styled.div.withConfig({displayName:"StyledHeading",componentId:"sc-kfxezu-0"})(function(e){let{$accent:n,$muted:r}=e,{font:i}=(0,t.i)(e.theme);return l.css`${n&&l.css`color:var(--card-accent-fg-color);`} ${r&&l.css`color:var(--card-muted-fg-color);`} & code{font-family:${i.code.family};border-radius:1px;}& a{text-decoration:none;border-radius:1px;color:var(--card-link-color);outline:none;@media (hover:hover){&:hover{text-decoration:underline;}}&:focus{box-shadow:0 0 0 1px var(--card-bg-color),0 0 0 3px var(--card-focus-ring-color);}&:focus:not(:focus-visible){box-shadow:none;}}& strong{font-weight:${i.heading.weights.bold};}& svg{display:inline;}& [data-sanity-icon]{vertical-align:baseline;}`},n.it,function(e){return(0,n.rt)("heading",e)}),e9=(0,s.forwardRef)(function(e,t){let i,a,s,l,d=(0,r.c)(26),u,c,h,f,p,m,g,b;d[0]===e?(u=d[1],c=d[2],h=d[3],f=d[4],p=d[5],m=d[6],g=d[7],b=d[8]):({accent:f,align:u,children:c,muted:p,size:m,textOverflow:g,weight:b,...h}=e,d[0]=e,d[1]=u,d[2]=c,d[3]=h,d[4]=f,d[5]=p,d[6]=m,d[7]=g,d[8]=b);let y=void 0!==f&&f,v=void 0!==p&&p,x=void 0===m?2:m,w=c;if("ellipsis"===g){let e;d[9]===w?e=d[10]:(e=(0,o.jsx)(n.tt,{children:w}),d[9]=w,d[10]=e),w=e}return d[11]===u?i=d[12]:(i=(0,n.ft)(u),d[11]=u,d[12]=i),d[13]===x?a=d[14]:(a=(0,n.ft)(x),d[13]=x,d[14]=a),d[15]===w?s=d[16]:(s=(0,o.jsx)("span",{children:w}),d[15]=w,d[16]=s),d[17]!==y||d[18]!==v||d[19]!==t||d[20]!==h||d[21]!==i||d[22]!==a||d[23]!==s||d[24]!==b?(l=(0,o.jsx)(e7,{"data-ui":"Heading",...h,$accent:y,$align:i,$muted:v,$size:a,$weight:b,ref:t,children:s}),d[17]=y,d[18]=v,d[19]=t,d[20]=h,d[21]=i,d[22]=a,d[23]=s,d[24]=b,d[25]=l):l=d[25],l}),e8=l.styled.div.withConfig({displayName:"StyledRadio",componentId:"sc-f02knx-0"})(function(){return l.css`position:relative;&:not([hidden]){display:inline-block;}&[data-read-only]{outline:1px solid red;}`}),te=l.styled.input.withConfig({displayName:"Input",componentId:"sc-f02knx-1"}
9)(function(e){let{color:r,input:i}=(0,t.i)(e.theme),o=(i.radio.size-i.radio.markSize)/2;return l.css`appearance:none;position:absolute;top:0;left:0;opacity:0;height:100%;width:100%;outline:none;z-index:1;padding:0;margin:0;border-radius:${(0,n.ht)(i.radio.size/2)};border:none;& + span{display:block;position:relative;height:${(0,n.ht)(i.radio.size)};width:${(0,n.ht)(i.radio.size)};border-radius:${(0,n.ht)(i.radio.size/2)};background:${r.input.default.enabled.bg};box-shadow:${(0,n.X)({color:r.input.default.enabled.border,width:i.border.width})};&::after{content:'';position:absolute;top:${(0,n.ht)(o)};left:${(0,n.ht)(o)};height:${(0,n.ht)(i.radio.markSize)};width:${(0,n.ht)(i.radio.markSize)};border-radius:${(0,n.ht)(i.radio.markSize/2)};background:${r.input.default.enabled.fg};opacity:0;}}&:not(:disabled):focus + span{box-shadow:${(0,n.Z)({border:{width:i.border.width,color:r.input.default.enabled.border},focusRing:i.radio.focusRing})};}&:not(:disabled):focus:not(:focus-visible) + span{box-shadow:${(0,n.X)({color:r.input.default.enabled.border,width:i.border.width})};}&:checked + span::after{opacity:1;}&[data-error] + span{background-color:${r.input.invalid.enabled.border};box-shadow:${(0,n.X)({width:i.border.width,color:r.input.invalid.enabled.muted.bg})};&::after{background:${r.input.invalid.enabled.muted.bg};}}&[data-read-only] + span{box-shadow:0 0 0 1px ${r.input.default.readOnly.border};background:${r.input.default.readOnly.bg};&::after{background:${r.input.default.readOnly.border};}}&:not([data-read-only]):disabled + span{box-shadow:0 0 0 1px ${r.input.default.disabled.border};background:${r.input.default.disabled.bg};&::after{background:${r.input.default.disabled.border};}}`}),tt=(0,s.forwardRef)(function(e,t){let i,a,l=(0,r.c)(19),d,u,c,h,f,p;l[0]===e?(d=l[1],u=l[2],c=l[3],h=l[4],f=l[5],p=l[6]):({className:d,disabled:c,style:p,customValidity:u,readOnly:h,...f}=e,l[0]=e,l[1]=d,l[2]=u,l[3]=c,l[4]=h,l[5]=f,l[6]=p);let m=(0,s.useRef)(null),g;l[7]===Symbol.for("react.memo_cache_sentinel")?(g=()=>m.current,l[7]=g):g=l[7],(0,s.useImperativeHandle)(t,g),(0,n.D)(m,u);let b=!c&&h?"":void 0,y=u?"":void 0,v=c||h,x;return l[8]!==h||l[9]!==f||l[10]!==b||l[11]!==y||l[12]!==v?(x=(0,o.jsx)(te,{"data-read-only":b,"data-error":y,...f,disabled:v,readOnly:h,ref:m,type:"radio"}),l[8]=h,l[9]=f,l[10]=b,l[11]=y,l[12]=v,l[13]=x):x=l[13],l[14]===Symbol.for("react.memo_cache_sentinel")?(i=(0,o.jsx)("span",{}),l[14]=i):i=l[14],l[15]!==d||l[16]!==p||l[17]!==x?(a=(0,o.jsxs)(e8,{className:d,"data-ui":"Radio",style:p,children:[x,i]}),l[15]=d,l[16]=p,l[17]=x,l[18]=a):a=l[18],a});function tn(e){let{font:n}=(0,t.i)(e.theme);return l.css`-webkit-font-smoothing:antialiased;appearance:none;border:0;font-family:${n.text.family};color:inherit;width:100%;outline:none;margin:0;&:disabled{opacity:1;}`}function tr(e){let{color:r,input:i}=(0,t.i)(e.theme);return l.css`background-color:${r.input.default.enabled.bg};color:${r.input.default.enabled.fg};box-shadow:${(0,n.X)({color:r.input.default.enabled.border,width:i.border.width})};@media (hover:hover){&:not(:disabled):hover{background-color:${r.input.default.hovered.bg};color:${r.input.default.hovered.fg};box-shadow:${(0,n.X)({color:r.input.default.hovered.border,width:i.border.width})};}}&:not(:disabled):focus{box-shadow:${(0,n.Z)({border:{width:i.border.width,color:r.input.default.enabled.border},focusRing:i.select.focusRing})};}&[data-read-only]{background-color:${r.input.default.readOnly.bg};color:${r.input.default.readOnly.fg};box-shadow:${(0,n.X)({color:r.input.default.readOnly.border,width:i.border.width})};}&:not([data-read-only]):disabled{background-color:${r.input.default.disabled.bg};color:${r.input.default.disabled.fg};box-shadow:${(0,n.X)({color:r.input.default.disabled.border,width:i.border.width})};}`}function ti(e){let{$fontSize:r}=e,{font:i,media:o}=(0,t.i)(e.theme);return(0,n.mt)(o,r,e=>{var t;return t=i.text.sizes[e]||i.text.sizes[2],{fontSize:(0,n.ht)(t.fontSize),lineHeight:`${(0,n.ht)(t.lineHeight)}`}})}let to=l.styled.div.withConfig({displayName:"StyledSelect",componentId:"sc-fjdmul-0"})(function(){return l.css`position:relative;width:-moz-available;width:-webkit-fill-available;width:stretch;&:not([hidden]){display:inline-block;}`}),ta=l.styled.select.withConfig({displayName:"Input",componentId:"sc-fjdmul-1"})(function(){return[n.ct,tn,tr,ti,n.T]}),ts=(0,l.styled)(n.lt).withConfig({displayName:"IconBox",componentId:"sc-fjdmul-2"}
9)(function(e){let{color:n}=(0,t.i)(e.theme);return l.css`pointer-events:none;position:absolute;top:0;right:0;--card-fg-color:${n.input.default.enabled.fg};@media (hover:hover){select:not(disabled):not(:read-only):hover + &&{--card-fg-color:${n.input.default.hovered.fg};}}select:disabled + &&{--card-fg-color:${n.input.default.disabled.fg};}select[data-read-only] + &&{--card-fg-color:${n.input.default.readOnly.fg};}`}),tl=(0,s.forwardRef)(function(e,t){let i,l,d,u,c,h,f,p=(0,r.c)(38),m,g,b,y,v,x,w,k,S,$;p[0]===e?(m=p[1],g=p[2],b=p[3],y=p[4],v=p[5],x=p[6],w=p[7],k=p[8],S=p[9],$=p[10]):({children:m,customValidity:g,disabled:b,fontSize:w,gap:y,padding:k,radius:S,readOnly:v,space:$,...x}=e,p[0]=e,p[1]=m,p[2]=g,p[3]=b,p[4]=y,p[5]=v,p[6]=x,p[7]=w,p[8]=k,p[9]=S,p[10]=$);let C=void 0===w?2:w,E=void 0===k?3:k,R=void 0===S?2:S,T=void 0===y?void 0===$?3:$:y,A=(0,s.useRef)(null),P;p[11]===Symbol.for("react.memo_cache_sentinel")?(P=()=>A.current,p[11]=P):P=p[11],(0,s.useImperativeHandle)(t,P),(0,n.D)(A,g);let j=!b&&v?"":void 0,M;p[12]===C?M=p[13]:(M=(0,n.ft)(C),p[12]=C,p[13]=M),p[14]===E?i=p[15]:(i=(0,n.ft)(E),p[14]=E,p[15]=i),p[16]===R?l=p[17]:(l=(0,n.ft)(R),p[16]=R,p[17]=l),p[18]===T?d=p[19]:(d=(0,n.ft)(T),p[18]=T,p[19]=d);let I=b||v,_;return p[20]!==m||p[21]!==x||p[22]!==I||p[23]!==j||p[24]!==M||p[25]!==i||p[26]!==l||p[27]!==d?(_=(0,o.jsx)(ta,{"data-read-only":j,"data-ui":"Select",...x,$fontSize:M,$padding:i,$radius:l,$space
9:d,disabled:I,ref:A,children:m}),p[20]=m,p[21]=x,p[22]=I,p[23]=j,p[24]=M,p[25]=i,p[26]=l,p[27]=d,p[28]=_):_=p[28],p[29]===Symbol.for("react.memo_cache_sentinel")?(u=(0,o.jsx)(a,{}),p[29]=u):u=p[29],p[30]===C?c=p[31]:(c=(0,o.jsx)(n.et,{size:C,children:u}),p[30]=C,p[31]=c),p[32]!==E||p[33]!==c?(h=(0,o.jsx)(ts,{padding:E,children:c}),p[32]=E,p[33]=c,p[34]=h):h=p[34],p[35]!==_||p[36]!==h?(f=(0,o.jsxs)(to,{"data-ui":"Select",children:[_,h]}),p[35]=_,p[36]=h,p[37]=f):f=p[37],f}),td=l.styled.span.withConfig({displayName:"StyledSwitch",componentId:"sc-aod7y9-0"})(function(){return l.css`position:relative;&:not([hidden]){display:inline-block;}`}),tu=l.styled.input.withConfig({displayName:"Input",componentId:"sc-aod7y9-1"})(function(){return l.css`position:absolute;top:0;right:0;bottom:0;left:0;opacity:0;height:100%;width:100%;outline:none;padding:0;margin:0;z-index:1;`}),tc=l.styled.span.withConfig({displayName:"Representation",componentId:"sc-aod7y9-2"})(function(e){let{color:r,input:i}=(0,t.i)(e.theme);return l.css`--switch-bg-color:${r.input.default.enabled.border};--switch-fg-color:${r.input.default.enabled.bg};--switch-box-shadow:none;&:not([hidden]){display:block;}position:relative;width:${(0,n.ht)(i.switch.width)};height:${(0,n.ht)(i.switch.height)};border-radius:${(0,n.ht)(i.switch.height/2)};pointer-events:none;&:after{content:'';display:block;position:absolute;top:0;left:0;right:0;bottom:0;z-index:1;box-shadow:var(--switch-box-shadow);border-radius:inherit;}input:focus + &&{--switch-box-shadow:${(0,n.Z)({focusRing:i.switch.focusRing})};}input:focus:not(:focus-visible) + &&{--switch-box-shadow:none;}input:checked + &&{--switch-bg-color:${r.input.default.enabled.fg};--switch-fg-color:${r.input.default.enabled.bg};}@media (hover:hover){input:not(:disabled):hover + &&{--switch-bg-color:${r.input.default.hovered.border};--switch-fg-color:${r.input.default.hovered.bg};}input:not(:disabled):checked:hover + &&{--switch-bg-color:${r.input.default.enabled.fg};--switch-fg-color:${r.input.default.enabled.bg};}}input:not([data-read-only]):disabled + &&{--switch-bg-color:${r.input.default.disabled.border};--switch-fg-color:${r.input.default.disabled.bg};}input[data-read-only]:disabled + &&{--switch-bg-color:${r.input.default.readOnly.border};--switch-fg-color:${r.input.default.readOnly.bg};}input:checked[data-read-only]:disabled + &&{--switch-bg-color:${r.input.default.readOnly.fg};--switch-fg-color:${r.input.default.readOnly.bg};}`}),th=l.styled.span.withConfig({displayName:"Track",componentId:"sc-aod7y9-3"})(function(e){let{input:r}=(0,t.i)(e.theme);return l.css`&:not([hidden]){display:block;}background-color:var(--switch-bg-color);position:absolute;left:0;top:0;width:${(0,n.ht)(r.switch.width)};height:${(0,n.ht)(r.switch.height)};border-radius:${(0,n.ht)(r.switch.height/2)};`}),tf=l.styled.span.withConfig({displayName:"Thumb",componentId:"sc-aod7y9-4"})(function(e){let{$indeterminate:r}
9=e,{input:i}=(0,t.i)(e.theme),o=i.switch.width,a=i.switch.height,s=i.switch.padding,d=a-2*i.switch.padding,u=o-2*s-d,c=o/2-d/2-s,h=!0!==r&&!0===e.$checked;return l.css`&:not([hidden]){display:block;}position:absolute;left:${(0,n.ht)(s)};top:${(0,n.ht)(s)};height:${(0,n.ht)(d)};width:${(0,n.ht)(d)};border-radius:${(0,n.ht)(d/2)};transition-property:transform;transition-duration:${i.switch.transitionDurationMs}ms;transition-timing-function:${i.switch.transitionTimingFunction};background:var(--switch-fg-color);transform:translate3d(0,0,0);box-shadow:0px 1px 0px 0px rgba(0,0,0,0.05);${h&&l.css`transform:translate3d(${u}px,0,0);`} ${r&&l.css`transform:translate3d(${c}px,0,0);`}`}),tp=(0,s.forwardRef)(function(e,t){let n,i,a,l,d,u=(0,r.c)(26),c,h,f,p,m,g,b;u[0]===e?(c=u[1],h=u[2],f=u[3],p=u[4],m=u[5],g=u[6],b=u[7]):({checked:c,className:h,disabled:f,indeterminate:p,readOnly:m,style:b,...g}=e,u[0]=e,u[1]=c,u[2]=h,u[3]=f,u[4]=p,u[5]=m,u[6]=g,u[7]=b);let y=(0,s.useRef)(null),v;u[8]===Symbol.for("react.memo_cache_sentinel")?(v=()=>y.current,u[8]=v):v=u[8],(0,s.useImperativeHandle)(t,v),u[9]===p?(n=u[10],i=u[11]):(n=()=>{y.current&&(y.current.indeterminate=p||!1)},i=[p],u[9]=p,u[10]=n,u[11]=i),(0,s.useEffect)(n,i);let x=!f&&m?"":void 0,w=!0!==p&&c,k=f||m,S;return u[12]!==g||u[13]!==x||u[14]!==w||u[15]!==k?(S=(0,o.jsx)(tu,{"data-read-only":x,...g,checked:w,disabled:k,type:"checkbox",ref:y}),u[12]=g,u[13]=x,u[14]=w,u[15]=k,u[16]=S):S=u[16],u[17]===Symbol.for("react.memo_cache_sentinel")?(a=(0,o.jsx)(th,{}),u[17]=a):a=u[17],u[18]!==c||u[19]!==p?(l=(0,o.jsxs)(tc,{"aria-hidden":!0,"data-name":"representation",children:[a,(0,o.jsx)(tf,{$checked:c,$indeterminate:p})]}),u[18]=c,u[19]=p,u[20]=l):l=u[20],u[21]!==h||u[22]!==b||u[23]!==S||u[24]!==l?(d=(0,o.jsxs)(td,{className:h,"data-ui":"Switch",style:b,children:[S,l]}),u[21]=h,u[22]=b,u[23]=S,u[24]=l,u[25]=d):d=u[25],d}),tm=l.styled.span.withConfig({displayName:"StyledTextArea",componentId:"sc-ndqkyw-0"})(n.w),tg=l.styled.span.withConfig({displayName:"InputRoot",componentId:"sc-ndqkyw-1"})`flex:1;min-width:0;display:block;position:relative;`,tb=l.styled.textarea.withConfig({displayName:"Input",componentId:"sc-ndqkyw-2"})(n.E,n.x,n.S),ty=l.styled.div.withConfig({displayName:"Presentation",componentId:"sc-ndqkyw-3"})(n.ct,n.C),tv=(0,s.forwardRef)(function(e,t){let i,a,l,d,u=(0,r.c)(35),c,h,f,p,m,g,b,y,v;u[0]===e?(c=u[1],h=u[2],f=u[3],p=u[4],m=u[5],g=u[6],b=u[7],y=u[8],v=u[9]):({border:p,customValidity:h,disabled:m,fontSize:g,padding:b,radius:y,weight:v,__unstable_disableFocusRing:c,...f}=e,u[0]=e,u[1]=c,u[2]=h,u[3]=f,u[4]=p,u[5]=m,u[6]=g,u[7]=b,u[8]=y,u[9]=v);let x=void 0===p||p,w=void 0!==m&&m,k=void 0===g?2:g,S=void 0===b?3:b,$=void 0===y?2:y,C=(0,s.useRef)(null),E=(0,n.K)(),R;u[10]===Symbol.for("react.memo_cache_sentinel")?(R=()=>C.current,u[10]=R):R=u[10],(0,s.useImperativeHandle)(t,R),(0,n.D)(C,h);let T=E.scheme,A=E.tone,P;u[11]===k?P=u[12]:(P=(0,n.ft)(k),u[11]=k,u[12]=P),u[13]===S?i=u[14]:(i=(0,n.ft)(S),u[13]=S,u[14]=i);let j=E.scheme,M;u[15]===Symbol.for("react.memo_cache_sentinel")?(M=(0,n.ft)(0),u[15]=M):M=u[15],u[16]!==w||u[17]!==f||u[18]!==E.scheme||u[19]!==E.tone||u[20]!==P||u[21]!==i||u[22]!==v?(a=(0,o.jsx)(tb,{"data-as":"textarea","data-scheme":T,"data-tone":A,...f,$fontSize:P,$padding:i,$scheme:j,$space:M,$tone:E.tone,$weight:v,disabled:w,ref:C}),u[16]=w,u[17]=f,u[18]=E.scheme,u[19]=E.tone,u[20]=P,u[21]=i,u[22]=v,u[23]=a):a=u[23],u[24]===$?l=u[25]:(l=(0,n.ft)($),u[24]=$,u[25]=l);let I=x?"":void 0,_;return u[26]!==c||u[27]!==E.scheme||u[28]!==E.tone||u[29]!==l||u[30]!==I?(_=(0,o.jsx)(ty,{$radius:l,$unstableDisableFocusRing:c,$scheme:E.scheme,$tone:E.tone,"data-border":I,"data-scheme":E.scheme,"data-tone":E.tone}),u[26]=c,u[27]=E.scheme,u[28]=E.tone,u[29]=l,u[30]=I,u[31]=_):_=u[31],u[32]!==a||u[33]!==_?(d=(0,o.jsx)(tm,{"data-ui":"TextArea",children:(0,o.jsxs)(tg,{children:[a,_]})}),u[32]=a,u[33]=_,u[34]=d):d=u[34],d}),tx=(0,s.forwardRef)(function(e,t){let i,a=(0,r.c)(18),l=(0,n.st)(),d,u,c;a[0]===e?(d=a[1],u=a[2],c=a[3]):({children:u,media:d,...c}=e,a[0]=e,a[1]=d,a[2]=u,a[3]=c);
9let h=d??l.media,[f,p]=(0,s.useState)(null),m=(0,n.V)(f)?.border.width??window.innerWidth,g;if(a[4]!==h||a[5]!==m){let e=function(e,t){let n=[];for(let r=0;r<e.length;r+=1)e[r]>t&&n.push(r);return n}(h,m);g=e.length?e.join(" "):void 0,a[4]=h,a[5]=m,a[6]=g}else g=a[6];let b=g,y;if(a[7]!==h||a[8]!==m){let e=function(e,t){let n=[];for(let r=0;r<e.length;r+=1)e[r]<=t&&n.push(r);return n}(h,m);y=e.length?e.join(" "):void 0,a[7]=h,a[8]=m,a[9]=y}else y=a[9];let v=y,x,w;return a[10]===f?(x=a[11],w=a[12]):(x=()=>f,w=[f],a[10]=f,a[11]=x,a[12]=w),(0,s.useImperativeHandle)(t,x,w),a[13]!==u||a[14]!==b||a[15]!==v||a[16]!==c?(i=(0,o.jsx)("div",{"data-ui":"ElementQuery",...c,"data-eq-max":b,"data-eq-min":v,ref:p,children:u}),a[13]=u,a[14]=b,a[15]=v,a[16]=c,a[17]=i):i=a[17],i});var tw=class extends s.Component{state={error:null};static getDerivedStateFromError(e){return{error:e}}componentDidCatch(e,t){this.props.onCatch({error:e,info:t})}render(){let{error:e}=this.state;if(e){let t="string"==typeof e?.message?e.message:"Error";return(0,o.jsx)(e6,{children:t})}return this.props.children}};let tk=l.styled.div.withConfig({displayName:"StyledSrOnly",componentId:"sc-ow9exq-0"})`display:block;width:0;height:0;position:absolute;overflow:hidden;overflow:clip;`,tS=((0,s.forwardRef)(function(e,t){let n=(0,r.c)(4),{as:i,children:a}=e,s;return n[0]!==i||n[1]!==a||n[2]!==t?(s=(0,o.jsx)(tk,{"aria-hidden":!0,as:i,"data-ui":"SrOnly",ref:t,children:a}),n[0]=i,n[1]=a,n[2]=t,n[3]=s):s=n[3],s}),l.styled.div.withConfig({displayName:"StyledVirtualList",componentId:"sc-xt8qd-0"})`position:relative;`),t$=l.styled.div.withConfig({displayName:"ItemWrapper",componentId:"sc-xt8qd-1"})`position:absolute;left:0;right:0;`,tC=(0,s.forwardRef)(function(e,t){let i,a,l,d,u,c,h,f=(0,r.c)(44),p,m,g,b,y,v,x;f[0]===e?(p=f[1],m=f[2],g=f[3],b=f[4],y=f[5],v=f[6],x=f[7]):({as:y,gap:v,getItemKey:p,items:x,onChange:m,renderItem:g,...b}=e,f[0]=e,f[1]=p,f[2]=m,f[3]=g,f[4]=b,f[5]=y,f[6]=v,f[7]=x);let w=void 0===y?"div":y,k=void 0===v?0:v,S;f[8]===x?S=f[9]:(S=void 0===x?[]:x,f[8]=x,f[9]=S);let $=S,{space:C}=(0,n.st)(),E=(0,s.useRef)(null),R=(0,s.useRef)(null),[T,A]=(0,s.useState)(0),[P,j]=(0,s.useState)(0),[M,I]=(0,s.useState)(-1),_;f[10]===Symbol.for("react.memo_cache_sentinel")?(_=()=>E.current,f[10]=_):_=f[10],(0,s.useImperativeHandle)(t,_),f[11]===Symbol.for("react.memo_cache_sentinel")?(i=()=>{if(!R.current)return;let e=R.current.firstChild;e instanceof HTMLElement&&I(e.offsetHeight)},f[11]=i):i=f[11],f[12]===g?a=f[13]:(a=[g],f[12]=g,f[13]=a),(0,s.useEffect)(i,a),f[14]===Symbol.for("react.memo_cache_sentinel")?(l=()=>{if(!E.current)return;let e=function(e){let t=e;for(;t&&!function(e){if(!(e instanceof Element))return!1;let t=window.getComputedStyle(e);return t.overflowX.includes("auto")||t.overflowX.includes("scroll")||t.overflowY.includes("auto")||t.overflowY.includes("scroll")}(t);)t=t.parentNode;return t}(E.current.parentNode);if(e){if(!(e instanceof HTMLElement))return;let t=()=>{A(e.scrollTop)};e.addEventListener("scroll",t,{passive:!0});let r=new n.U(e=>{j(e[0].contentRect.height)});return r.observe(e),t(),()=>{e.removeEventListener("scroll",t),r.unobserve(e),r.disconnect()}}let t=()=>{A(window.scrollY)},r=()=>{j(window.innerHeight)};return window.addEventListener("scroll",t,{passive:!0}),window.addEventListener("resize",r),j(window.innerHeight),t(),()=>{window.removeEventListener("scroll",t),window.removeEventListener("resize",r)}},d=[],f[14]=l,f[15]=d):(l=f[14],d=f[15]),(0,s.useEffect)(l,d);let z=$.length,O=M?z*(M+C[k])-C[k]:0,L=O?Math.max(Math.floor(T/O*z)-2,0):0,D=O?Math.ceil((T+P)/O*z)+1:0,V,B;f[16]!==L||f[17]!==k||f[18]!==M||f[19]!==m||f[20]!==P||f[21]!==T||f[22]!==C||f[23]!==D?(B=()=>{m&&m({fromIndex:L,gap:C[k],itemHeight:M,scrollHeight:P,scrollTop:T,toIndex:D})},V=[L,k,M,m,P,T,C,D],f[16]=L,f[17]=k,f[18]=M,f[19]=m,f[20]=P,f[21]=T,f[22]=C,f[23]=D,f[24]=V,f[25]=B):(V=f[24],B=f[25]),(0,s.useEffect)(B,V),f[26]!==L||f[27]!==k||f[28]!==p||f[29]!==M||f[30]!==$||f[31]!==g||f[32]!==C||f[33]!==D?(u={fromIndex:L,gap:k,itemHeight:M,space:C,toIndex:D,getItemKey:p,items:$,renderItem:g},f[26]=L,f[27]=k,f[28]=p,f[29]=M,f[30]=$,f[31]=g,f[32]=C,f[33]=D,f[34]=u):u=f[34];let N=function(e){let t,n=(0,r.c)(21),{fromIndex:i,gap:a,getItemKey:s,itemHeight:l,items:d,renderItem:u,space:c,toIndex:h}=e;if(!u||0===d.length)return null;if(-1===l){let e,t;return n[0]!==d[0]||n[1]!==u?(e=u(d[0]),n[0]=d[0],n[1]=u,n[2]=e):e=n[2],n[3]===e?t=n[4]:(t=[(0,o.jsx)(t$,{children:e},0)],n[3]=e,n[4]=t),t}if(n[5]!==i||n[6]!==a||n[7]!==s||n[8]!==l||n[9]!==d||n[10]!==u||n[11]!==c||n[12]!==h){let e;n[14]!==i||n[15]!==a||n[16]!==s||n[17]!==l||n[18]!==u||n[19]!==c?(e=(e,t)=>{let n=i+t,r=u(e),d=s?s(e,n):n;
9return(0,o.jsx)(t$,{style:{top:n*(l+c[a])},children:r},d)},n[14]=i,n[15]=a,n[16]=s,n[17]=l,n[18]=u,n[19]=c,n[20]=e):e=n[20],t=d.slice(i,h).map(e),n[5]=i,n[6]=a,n[7]=s,n[8]=l,n[9]=d,n[10]=u,n[11]=c,n[12]=h,n[13]=t}else t=n[13];return t}(u),F;return f[35]===O?F=f[36]:(F={height:O},f[35]=O,f[36]=F),f[37]!==N||f[38]!==F?(c=(0,o.jsx)("div",{ref:R,style:F,children:N}),f[37]=N,f[38]=F,f[39]=c):c=f[39],f[40]!==b||f[41]!==w||f[42]!==c?(h=(0,o.jsx)(tS,{as:w,"data-ui":"VirtualList",...b,ref:E,children:c}),f[40]=b,f[41]=w,f[42]=c,f[43]=h):h=f[43],h});e.s(["Autocomplete",0,j,"Avatar",0,eW,"AvatarCounter",0,eX,"AvatarStack",0,eZ,"Badge",0,eQ,"BoundaryElementProvider",0,function(e){let t=(0,r.c)(5),{children:i,element:a}=e,s;t[0]===a?s=t[1]:(s={version:0,element:a},t[0]=a,t[1]=s);let l=s,d;return t[2]!==i||t[3]!==l?(d=(0,o.jsx)(n.I.Provider,{value:l,children:i}),t[2]=i,t[3]=l,t[4]=d):d=t[4],d},"Breadcrumbs",0,L,"Checkbox",0,e2,"Code",0,e6,"Container",0,B,"Dialog",0,Z,"DialogProvider",0,function(e){let t=(0,r.c)(6),{children:n,position:i,zOffset:a}=e,s;t[0]!==i||t[1]!==a?(s={version:0,position:i,zOffset:a},t[0]=i,t[1]=a,t[2]=s):s=t[2];let l=s,d;return t[3]!==n||t[4]!==l?(d=(0,o.jsx)(N.Provider,{value:l,children:n}),t[3]=n,t[4]=l,t[5]=d):d=t[5],d},"ElementQuery",0,tx,"ErrorBoundary",0,tw,"Heading",0,e9,"Label",0,eO,"MenuButton",0,J,"Radio",0,tt,"Select",0,tl,"Skeleton",0,ei,"Switch",0,tp,"TabPanel",0,es,"TextArea",0,tv,"TextSkeleton",0,ea,"ToastProvider",0,function(e){let t,i=(0,r.c)(13),{children:a,padding:l,paddingX:d,paddingY:u,gap:h,zOffset:f}=e,p=void 0===f?1:f,m;i[0]===Symbol.for("react.memo_cache_sentinel")?(m=[],i[0]=m):m=i[0];let[g,b]=(0,s.useState)(m),y=(0,s.useSyncExternalStore)(eE,eC,e$),v;i[1]===Symbol.for("react.memo_cache_sentinel")?(v={version:0,push:e=>{let t=e.id||String(eP++),n=e.duration||5e3;return(0,s.startTransition)(()=>{b(r=>.01===n?r.filter(e=>e.id!==t):[...r.filter(e=>e.id!==t),{dismiss:()=>(0,s.startTransition)(()=>b(e=>e.filter(e=>e.id!==t))),id:t,updatedAt:Date.now(),params:{...e,duration:n}}])}),t}},i[1]=v):v=i[1];let x=v,w;return i[2]!==h||i[3]!==y||i[4]!==l||i[5]!==d||i[6]!==u||i[7]!==g||i[8]!==p?(w=y&&(0,o.jsx)(n.P,{zOffset:p,children:(0,o.jsx)(eT,{padding:l,paddingX:d,paddingY:u,gap:h,children:(0,o.jsx)(c.AnimatePresence,{initial:!1,mode:"popLayout",children:g.map(ej)})})}),i[2]=h,i[3]=y,i[4]=l,i[5]=d,i[6]=u,i[7]=g,i[8]=p,i[9]=w):w=i[9],i[10]!==a||i[11]!==w?(t=(0,o.jsxs)(eR.Provider,{value:x,children:[a,w]}),i[10]=a,i[11]=w,i[12]=t):t=i[12],t},"TooltipDelayGroupProvider",0,function(e){let t=(0,r.c)(9),{children:i,delay:a}=e,[s,l]=(0,n.a)(!1),[d,u]=(0,n.a)(null),c="number"==typeof a?a:a?.open||0,h="number"==typeof a?a:a?.close||0,f=s?1:c,p;t[0]!==h||t[1]!==d||t[2]!==l||t[3]!==u||t[4]!==f?(p={setIsGroupActive:l,openTooltipId:d,setOpenTooltipId:u,openDelay:f,closeDelay:h},t[0]=h,t[1]=d,t[2]=l,t[3]=u,t[4]=f,t[5]=p):p=t[5];let m=p,g;return t[6]!==i||t[7]!==m?(g=(0,o.jsx)(n.i.Provider,{value:m,children:i}),t[6]=i,t[7]=m,t[8]=g):g=t[8],g},"VirtualList",0,tC,"_raf2",0,function(e){let t=null,n=b(()=>{t=b(e)});return()=>{t&&t(),n()}},"focusFirstDescendant",0,v,"focusLastDescendant",0,x,"useArrayProp",0,function(e,t){let i=(0,r.c)(3),o;return i[0]!==t||i[1]!==e?(o=(0,n.ft)(e,t),i[0]=t,i[1]=e,i[2]=o):o=i[2],o},"useClickOutside",0,function(e,t,i){let o,a,l=(0,r.c)(12),d=void 0===t?n.wt:t,[u,c]=(0,s.useState)(null),h;l[0]!==u||l[1]!==d?(h=()=>e_(u,d),l[0]=u,l[1]=d,l[2]=h):h=l[2];let[f,p]=(0,s.useState)(h),m=(0,s.useRef)(f),g,b;return l[3]!==u||l[4]!==d?(g=()=>{let e=m.current,t=e_(u,d);if(e.length!==t.length){p(t),m.current=t;return}for(let n of e)if(!t.includes(n)){p(t),m.current=t;return}for(let n of t)if(!e.includes(n)){p(t),m.current=t;return}},b=[u,d],l[3]=u,l[4]=d,l[5]=g,l[6]=b):(g=l[5],b=l[6]),(0,s.useEffect)(g,b),l[7]!==i||l[8]!==f||l[9]!==e?(o=()=>{if(!e)return;let t=t=>{let n=t.target;if(n instanceof Node&&!(i&&!i.contains(n))){for(let e of f)if(n===e||e.contains(n))return;e(t)}};return window.addEventListener("mousedown",t),()=>{window.removeEventListener("mousedown",t)}},a=[i,e,f],l[7]=i,l[8]=f,l[9]=e,l[10]=o,l[11]=a):(o=l[10],a=l[11]),(0,s.useEffect)(o,a),c},"useElementRect",0,function(e){return(0,n.V)(e)?._contentRect||null},"useToast",0,function(){let e=(0,s.useContext)(eR);if(!e)throw Error("useToast(): missing context value");if(!(0,n.L)(e)||0!==e.version)throw Error("useToast(): the context value is not compatible");return e}],930357),e.s(["Stack",()=>n.O],693469)},720968,(e,t,n)=>{"use strict";var r=Symbol.for("react.transitional.element"),i=Symbol.for("react.portal"),o=Symbol.for("react.fragment"),a=Symbol.for("react.strict_mode"),s=Symbol.for("react.profiler"),l=Symbol.for("react.consumer"),d=Symbol.for("react.context"),u=Symbol.for("react.forward_ref"),c=Symbol.for("react.suspense"),h=Symbol.for("react.suspense_list"),f=Symbol.for("react.memo"),p=Symbol.for("react.lazy"),m=Symbol.for("react.view_transition"),g=Symbol.for("react.client.reference");function b(e){if("object"==typeof e&&null!==e){var t=e.$$typeof;switch(t){case r:switch(e=e.type){case o:case s:case a:case c:case h:case m:return e;default:switch(e=e&&e.$$typeof){case d:case u:case p:case f:case l:return e;default:return t}}case i:return t}}}n.ContextConsumer=l,n.ContextProvider=d,n.Element=r,n.ForwardRef=u,n.Fragment=o,n.Lazy=p,n.Memo=f,n.Portal=i,n.Profiler=s,n.StrictMode=a,n.Suspense=c,n.SuspenseList=h,n.isContextConsumer=function(e){return b(e)===l},n.isContextProvider=function(e){return b(e)===d},n.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===r},n.isForwardRef=function(e){return b(e)===u},n.isFragment=function(e){return b(e)===o},n.isLazy=function(e){return b(e)===p},n.isMemo=function(e){return b(e)===f},n.isPortal=function(e){return b(e)===i},n.isProfiler=function(e){return b(e)===s},n.isStrictMode=function(e){return b(e)===a},n.isSuspense=function(e){return b(e)===c},n.isSuspenseList=function(e){return b(e)===h},n.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===o||e===s||e===a||e===c||e===h||"object"==typeof e&&null!==e&&(e.$$typeof===p||e.$$typeof===f||e.$$typeof===d||e.$$typeof===l||e.$$typeof===u||e.$$typeof===g||void 0!==e.getModuleId)||!1},n.typeOf=b},127841,(e,t,n)=>{"use strict";e.i(700381),t.exports=e.r(720968)}]);

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.