slds-json-schema-renderer 1.3.0 → 1.3.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(Y,a){typeof exports=="object"&&typeof module<"u"?a(exports,require("vue")):typeof define=="function"&&define.amd?define(["exports","vue"],a):(Y=typeof globalThis<"u"?globalThis:Y||self,a(Y.JsonSchemaDocs={},Y.Vue))})(this,function(Y,a){"use strict";const $o={class:"slds-p-around_medium slds-theme_shade slds-text-align_center slds-text-body_small slds-mt-auto"},jo={class:"slds-grid slds-grid_align-spread slds-wrap"},Fo={class:"slds-col slds-size_1-of-1 slds-medium-size_1-of-3 slds-p-vertical_x-small"},Io={key:0,class:"slds-text-color_weak"},Uo={class:"slds-col slds-size_1-of-1 slds-medium-size_1-of-3 slds-p-vertical_x-small"},zo={class:"slds-text-color_weak"},Ko={class:"slds-col slds-size_1-of-1 slds-medium-size_1-of-3 slds-p-vertical_x-small"},Go={class:"slds-text-color_weak"},Wo={__name:"FooterLayout",props:{description:{type:String,default:""},generatedAt:{type:String,default:()=>new Date().toISOString()},schemaCount:{type:Number,default:0}},setup(t){function e(s){return new Date(s).toLocaleString()}return(s,n)=>(a.openBlock(),a.createElementBlock("footer",$o,[a.createElementVNode("div",jo,[a.createElementVNode("div",Fo,[t.description?(a.openBlock(),a.createElementBlock("span",Io,a.toDisplayString(t.description),1)):a.createCommentVNode("",!0)]),a.createElementVNode("div",Uo,[a.createElementVNode("span",zo,a.toDisplayString(t.schemaCount)+" schema"+a.toDisplayString(t.schemaCount!==1?"s":"")+" documented ",1)]),a.createElementVNode("div",Ko,[a.createElementVNode("span",Go," Generated at: "+a.toDisplayString(e(t.generatedAt)),1)])])]))}},hs="data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20height='100'%20width='100'%20viewBox='0%200%201000%201000'%20fill='%23fff'%3e%3cpath%20d='M738%20200H262c-34%200-62%2028-62%2062v476c0%2034%2028%2062%2062%2062h476c34%200%2062-28%2062-62V262c0-34-28-62-62-62zm-455%2062h434c11%200%2021%209%2021%2021v39H262v-39c0-12%209-21%2021-21zm434%20476H283c-11%200-21-9-21-21V382h476v335c0%2012-9%2021-21%2021zM467%20633l-66-66%2066-66c4-4%204-10%200-14l-28-28c-4-4-10-4-14%200l-73%2073-15%2015-13%2013c-2%202-3%205-3%207%200%203%201%205%203%207l102%20102c4%204%2010%204%2014%200l28-28c3-5%203-11-1-15zm210-74-13-13-15-15-73-73c-4-4-10-4-14%200l-28%2028c-4%204-4%2010%200%2014l66%2066-66%2066c-4%204-4%2010%200%2014l28%2028c4%204%2010%204%2014%200l102-102c2-2%203-5%203-7z'/%3e%3c/svg%3e",Ho={class:"slds-page-header"},qo={class:"slds-page-header__row"},Yo={class:"slds-page-header__col-title"},Xo={class:"slds-media"},Zo={class:"slds-media__body"},Jo={class:"slds-page-header__name"},Qo={class:"slds-page-header__name-title"},tr=["title"],er={__name:"HeaderLayout",props:{title:{type:String,default:"JSON Schema Documentation"}},setup(t){return(e,s)=>(a.openBlock(),a.createElementBlock("header",Ho,[a.createElementVNode("div",qo,[a.createElementVNode("div",Yo,[a.createElementVNode("div",Xo,[s[0]||(s[0]=a.createElementVNode("div",{class:"slds-media__figure"},[a.createElementVNode("span",{class:"slds-icon_container slds-icon-standard-account"},[a.createElementVNode("img",{src:hs,class:"slds-icon slds-icon_small",alt:""})])],-1)),a.createElementVNode("div",Zo,[a.createElementVNode("div",Jo,[a.createElementVNode("div",Qo,[a.createElementVNode("h1",{class:"slds-page-header__title slds-truncate",title:t.title},a.toDisplayString(t.title),9,tr)])])])])])])]))}},ms=t=>e=>typeof e=="string"&&e.startsWith(t),ae=ms("--"),sr=ms("var(--"),le=t=>sr(t)?nr.test(t.split("/*")[0].trim()):!1,nr=/var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu,ft={};function fs(t){for(const e in t)ft[e]=t[e],ae(e)&&(ft[e].isCSSVariable=!0)}function pt(t,e){const s=typeof t=="string"?`${t}Context`:e,n=Symbol(s);return[o=>{const l=a.inject(n,o);if(l||l===null)return l;throw new Error(`Injection \`${n.toString()}\` not found. Component must be used within ${Array.isArray(t)?`one of the following components: ${t.join(", ")}`:`\`${t}\``}`)},o=>(a.provide(n,o),o)]}const[ir,or]=pt("Motion"),[rr,rm]=pt("LayoutGroup");function ps(t){return t!==null&&typeof t=="object"&&typeof t.start=="function"}class K{constructor(e){this.state=e}beforeMount(){}mount(){}unmount(){}update(){}beforeUpdate(){}beforeUnmount(){}}var rt=function(){},jt=function(){};process.env.NODE_ENV!=="production"&&(rt=function(t,e){!t&&typeof console<"u"&&console.warn(e)},jt=function(t,e){if(!t)throw new Error(e)});function gt(t,e,s){if(Array.isArray(t))return t.reduce((n,i)=>{const r=gt(i,e,s);return r?{...n,...r}:n},{});if(typeof t=="object")return t;if(t&&e){const n=e[t];return typeof n=="function"?n(s):n}}function ar(t,e){return typeof t!=typeof e?!0:Array.isArray(t)&&Array.isArray(e)?!lr(t,e):t!==e}function lr(t,e){const s=e.length;if(s!==t.length)return!1;for(let n=0;n<s;n++)if(e[n]!==t[n])return!1;return!0}function gs(t){return t==null?void 0:t.startsWith("--")}const cr=t=>t;function ur(t){return typeof t=="number"}const dr=["animate","circle","defs","desc","ellipse","g","image","line","filter","marker","mask","metadata","path","pattern","polygon","polyline","rect","stop","svg","switch","symbol","text","tspan","use","view","clipPath","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","foreignObject","linearGradient","radialGradient","textPath"],hr=new Set(dr);function ys(t){return hr.has(t)}function mr(t,e){const s=t.animate,n=e.animate;if(s===n)return!1;if(!s||!n)return!0;if(typeof s=="object"||typeof n=="object"){const i=Object.keys(s),r=Object.keys(n);return i.length!==r.length?!0:i.some(o=>{if(o==="transition")return!1;const l=s[o],c=n[o];return l!==c})}return s!==n}class fr{constructor(e){this.features=[];const{features:s=[],lazyMotionContext:n}=e.options,i=s.concat(n.features.value);this.features=i.map(o=>new o(e));const r=this.features;a.watch(n.features,o=>{o.forEach(l=>{if(!i.includes(l)){i.push(l);const c=new l(e);r.push(c),e.isMounted()&&(c.beforeMount(),c.mount())}})},{flush:"pre"})}mount(){this.features.forEach(e=>e.mount())}beforeMount(){this.features.forEach(e=>{var s;return(s=e.beforeMount)==null?void 0:s.call(e)})}unmount(){this.features.forEach(e=>e.unmount())}update(){this.features.forEach(e=>{var s;return(s=e.update)==null?void 0:s.call(e)})}beforeUpdate(){this.features.forEach(e=>e.beforeUpdate())}beforeUnmount(){this.features.forEach(e=>e.beforeUnmount())}}const ce=new WeakMap,[pr,am]=pt("AnimatePresenceContext");function gr(t){return typeof t=="string"||t===!1||Array.isArray(t)}const B=t=>t;let yt=B,X=B;process.env.NODE_ENV!=="production"&&(yt=(t,e)=>{!t&&typeof console<"u"&&console.warn(e)},X=(t,e)=>{if(!t)throw new Error(e)});const Ft=["read","resolveKeyframes","update","preRender","render","postRender"];function yr(t,e){let s=new Set,n=new Set,i=!1,r=!1;const o=new WeakSet;let l={delta:0,timestamp:0,isProcessing:!1};function c(u){o.has(u)&&(d.schedule(u),t()),u(l)}const d={schedule:(u,h=!1,m=!1)=>{const p=m&&i?s:n;return h&&o.add(u),p.has(u)||p.add(u),u},cancel:u=>{n.delete(u),o.delete(u)},process:u=>{if(l=u,i){r=!0;return}i=!0,[s,n]=[n,s],s.forEach(c),s.clear(),i=!1,r&&(r=!1,d.process(u))}};return d}const vr=40;function vs(t,e){let s=!1,n=!0;const i={delta:0,timestamp:0,isProcessing:!1},r=()=>s=!0,o=Ft.reduce((y,S)=>(y[S]=yr(r),y),{}),{read:l,resolveKeyframes:c,update:d,preRender:u,render:h,postRender:m}=o,f=()=>{const y=performance.now();s=!1,i.delta=n?1e3/60:Math.max(Math.min(y-i.timestamp,vr),1),i.timestamp=y,i.isProcessing=!0,l.process(i),c.process(i),d.process(i),u.process(i),h.process(i),m.process(i),i.isProcessing=!1,s&&e&&(n=!1,t(f))},p=()=>{s=!0,n=!0,i.isProcessing||t(f)};return{schedule:Ft.reduce((y,S)=>{const E=o[S];return y[S]=(T,b=!1,_=!1)=>(s||p(),E.schedule(T,b,_)),y},{}),cancel:y=>{for(let S=0;S<Ft.length;S++)o[Ft[S]].cancel(y)},state:i,steps:o}}const{schedule:P,cancel:G,state:M,steps:ue}=vs(typeof requestAnimationFrame<"u"?requestAnimationFrame:B,!0),bs=new WeakMap;let br=0;const de=new Set;class xr{constructor(e,s){var n;this.element=null,this.isSafeToRemove=!1,this.isVShow=!1,this.children=new Set,this.activeStates={initial:!0,animate:!0},this.currentProcess=null,this._context=null,this.animateUpdates=B,this.id=`motion-state-${br++}`,this.options=e,this.parent=s,(n=s==null?void 0:s.children)==null||n.add(this),this.depth=(s==null?void 0:s.depth)+1||0;const r=(e.initial===void 0&&e.variants?this.context.initial:e.initial)===!1?["initial","animate"]:["initial"];this.initTarget(r),this.featureManager=new fr(this),this.type=ys(this.options.as)?"svg":"html"}get context(){if(!this._context){const e={get:(s,n)=>{var i;return gr(this.options[n])?this.options[n]:(i=this.parent)==null?void 0:i.context[n]}};this._context=new Proxy({},e)}return this._context}initTarget(e){this.baseTarget=e.reduce((s,n)=>({...s,...gt(this.options[n]||this.context[n],this.options.variants)}),{}),this.target={}}updateOptions(){var e;(e=this.visualElement)==null||e.update({...this.options,whileTap:this.options.whilePress,reducedMotionConfig:this.options.motionConfig.reduceMotion},{isPresent:!ce.has(this.element)})}beforeMount(){this.featureManager.beforeMount()}mount(e,s,n=!1){var i;jt(!!e,"Animation state must be mounted with valid Element"),this.element=e,this.options=s,this.updateOptions(),this.featureManager.mount(),!n&&this.options.animate&&(this.type==="svg"&&this.visualElement.updateDimensions(),(i=this.startAnimation)==null||i.call(this)),this.options.layoutId&&(de.add(this.options.layoutId),P.render(()=>{de.clear()}))}clearAnimation(){var e,s;this.currentProcess&&G(this.currentProcess),this.currentProcess=null,(s=(e=this.visualElement)==null?void 0:e.variantChildren)==null||s.forEach(n=>{n.state.clearAnimation()})}startAnimation(){this.clearAnimation(),this.currentProcess=P.render(()=>{this.currentProcess=null,this.animateUpdates()})}beforeUnmount(){this.featureManager.beforeUnmount()}unmount(e=!1){const s=this.options.layoutId&&!de.has(this.options.layoutId);(()=>{e&&Array.from(this.children).reverse().forEach(this.unmountChild);const i=()=>{var r,o,l;(o=(r=this.parent)==null?void 0:r.children)==null||o.delete(this),bs.delete(this.element),this.featureManager.unmount(),(l=this.visualElement)==null||l.unmount()};s?Promise.resolve().then(i):i()})()}unmountChild(e){e.unmount(!0)}beforeUpdate(){this.featureManager.beforeUpdate()}update(e){const s=mr(this.options,e);this.options=e,this.updateOptions(),this.featureManager.update(),s&&this.startAnimation()}setActive(e,s,n=!0){var i;!this.element||this.activeStates[e]===s||(this.activeStates[e]=s,(i=this.visualElement.variantChildren)==null||i.forEach(r=>{r.state.setActive(e,s,!1)}),n&&this.animateUpdates({isFallback:!s&&e!=="exit"&&this.visualElement.isControllingVariants,isExit:e==="exit"&&this.activeStates.exit}))}isMounted(){return!!this.element}willUpdate(e){var s;(this.options.layout||this.options.layoutId)&&((s=this.visualElement.projection)==null||s.willUpdate())}}const et=new WeakMap;function xs(t,e,s){return new CustomEvent(t,{detail:{target:e,isExit:s}})}const Ss={syntax:"<angle>",initialValue:"0deg",toDefaultUnit:t=>`${t}deg`},Sr={translate:{syntax:"<length-percentage>",initialValue:"0px",toDefaultUnit:t=>`${t}px`},rotate:Ss,scale:{syntax:"<number>",initialValue:1,toDefaultUnit:cr},skew:Ss},Er=["translate","scale","rotate","skew"],Vr=["","X","Y","Z"],he=new Map,It=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"];Er.forEach(t=>{Vr.forEach(e=>{It.push(t+e),he.set(t+e,Sr[t])})});const Tr=new Set(It),_r=t=>Tr.has(t),Es={x:"translateX",y:"translateY",z:"translateZ"};function wr([t],[e]){return It.indexOf(t)-It.indexOf(e)}function Pr(t,[e,s]){return`${t} ${e}(${s})`}function Ar(t){return t.sort(wr).reduce(Pr,"").trim()}const Vs={translate:[0,0],rotate:0,scale:1,skew:0,x:0,y:0,z:0};function Ts(t){return{test:e=>typeof e=="string"&&e.endsWith(t)&&e.split(" ").length===1,parse:parseFloat,transform:e=>`${e}${t}`}}const Cr=Ts("%"),me=Ts("px");function Ut(t){return!!(t&&t.getVelocity)}const Dr={get:(t,e)=>{let s=gs(e)?t.style.getPropertyValue(e):getComputedStyle(t)[e];if(!s&&s!=="0"){const n=he.get(e);n&&(s=n.initialValue)}return s},set:(t,e,s)=>{gs(e)?t.style.setProperty(e,s):t.style[e]=s}};function kr(t){var e;const s={},n=[];for(let i in t){let r=t[i];r=Ut(r)?r.get():r,_r(i)&&i in Es&&(i=Es[i]);let o=Array.isArray(r)?r[0]:r;const l=he.get(i);l?(o=ur(r)?(e=l.toDefaultUnit)==null?void 0:e.call(l,r):r,n.push([i,o])):s[i]=o}return n.length&&(s.transform=Ar(n)),Object.keys(s).length===0?null:s}const Mr={fill:!0,stroke:!0,opacity:!0,"stroke-width":!0,"fill-opacity":!0,"stroke-opacity":!0,"stroke-linecap":!0,"stroke-linejoin":!0,"stroke-dasharray":!0,"stroke-dashoffset":!0,cx:!0,cy:!0,r:!0,d:!0,x1:!0,y1:!0,x2:!0,y2:!0,points:!0,"path-length":!0,viewBox:!0,width:!0,height:!0,"preserve-aspect-ratio":!0,"clip-path":!0,filter:!0,mask:!0,"stop-color":!0,"stop-opacity":!0,"gradient-transform":!0,"gradient-units":!0,"spread-method":!0,"marker-end":!0,"marker-mid":!0,"marker-start":!0,"text-anchor":!0,"dominant-baseline":!0,"font-family":!0,"font-size":!0,"font-weight":!0,"letter-spacing":!0,"vector-effect":!0};function Br(t){return t.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase()}function Nr(t,e,s=1,n=0){t.pathLength=1,delete t["path-length"],t["stroke-dashoffset"]=me.transform(-n);const i=me.transform(e),r=me.transform(s);t["stroke-dasharray"]=`${i} ${r}`}function Or(t){const e={},s={};for(const n in t){const i=Br(n);if(i in Mr){const r=t[n];e[i]=Ut(r)?r.get():r}else s[n]=t[n]}return e["path-length"]!==void 0&&Nr(e,e["path-length"],e["path-spacing"],e["path-offset"]),{attributes:e,style:s}}typeof WorkerGlobalScope<"u"&&globalThis instanceof WorkerGlobalScope;const fe=t=>typeof t<"u";function Lr({top:t,left:e,right:s,bottom:n}){return{x:{min:e,max:s},y:{min:t,max:n}}}function Rr(t,e){if(!e)return t;const s=e({x:t.left,y:t.top}),n=e({x:t.right,y:t.bottom});return{top:s.y,left:s.x,bottom:n.y,right:n.x}}function $r(t,e){return Lr(Rr(t.getBoundingClientRect(),e))}const N=t=>!!(t&&t.getVelocity);function pe(t,e){t.indexOf(e)===-1&&t.push(e)}function zt(t,e){const s=t.indexOf(e);s>-1&&t.splice(s,1)}class ge{constructor(){this.subscriptions=[]}add(e){return pe(this.subscriptions,e),()=>zt(this.subscriptions,e)}notify(e,s,n){const i=this.subscriptions.length;if(i)if(i===1)this.subscriptions[0](e,s,n);else for(let r=0;r<i;r++){const o=this.subscriptions[r];o&&o(e,s,n)}}getSize(){return this.subscriptions.length}clear(){this.subscriptions.length=0}}const _s=new Set;function ye(t,e,s){t||_s.has(e)||(console.warn(e),_s.add(e))}const jr={useManualTiming:!1};let Kt;function Fr(){Kt=void 0}const F={now:()=>(Kt===void 0&&F.set(M.isProcessing||jr.useManualTiming?M.timestamp:performance.now()),Kt),set:t=>{Kt=t,queueMicrotask(Fr)}};function ws(t,e){return e?t*(1e3/e):0}const Ps=30,Ir=t=>!isNaN(parseFloat(t));class Ur{constructor(e,s={}){this.version="12.5.0",this.canTrackVelocity=null,this.events={},this.updateAndNotify=(n,i=!0)=>{const r=F.now();this.updatedAt!==r&&this.setPrevFrameValue(),this.prev=this.current,this.setCurrent(n),this.current!==this.prev&&this.events.change&&this.events.change.notify(this.current),i&&this.events.renderRequest&&this.events.renderRequest.notify(this.current)},this.hasAnimated=!1,this.setCurrent(e),this.owner=s.owner}setCurrent(e){this.current=e,this.updatedAt=F.now(),this.canTrackVelocity===null&&e!==void 0&&(this.canTrackVelocity=Ir(this.current))}setPrevFrameValue(e=this.current){this.prevFrameValue=e,this.prevUpdatedAt=this.updatedAt}onChange(e){return process.env.NODE_ENV!=="production"&&ye(!1,'value.onChange(callback) is deprecated. Switch to value.on("change", callback).'),this.on("change",e)}on(e,s){this.events[e]||(this.events[e]=new ge);const n=this.events[e].add(s);return e==="change"?()=>{n(),P.read(()=>{this.events.change.getSize()||this.stop()})}:n}clearListeners(){for(const e in this.events)this.events[e].clear()}attach(e,s){this.passiveEffect=e,this.stopPassiveEffect=s}set(e,s=!0){!s||!this.passiveEffect?this.updateAndNotify(e,s):this.passiveEffect(e,this.updateAndNotify)}setWithVelocity(e,s,n){this.set(s),this.prev=void 0,this.prevFrameValue=e,this.prevUpdatedAt=this.updatedAt-n}jump(e,s=!0){this.updateAndNotify(e),this.prev=e,this.prevUpdatedAt=this.prevFrameValue=void 0,s&&this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}get(){return this.current}getPrevious(){return this.prev}getVelocity(){const e=F.now();if(!this.canTrackVelocity||this.prevFrameValue===void 0||e-this.updatedAt>Ps)return 0;const s=Math.min(this.updatedAt-this.prevUpdatedAt,Ps);return ws(parseFloat(this.current)-parseFloat(this.prevFrameValue),s)}start(e){return this.stop(),new Promise(s=>{this.hasAnimated=!0,this.animation=e(s),this.events.animationStart&&this.events.animationStart.notify()}).then(()=>{this.events.animationComplete&&this.events.animationComplete.notify(),this.clearAnimation()})}stop(){this.animation&&(this.animation.stop(),this.events.animationCancel&&this.events.animationCancel.notify()),this.clearAnimation()}isAnimating(){return!!this.animation}clearAnimation(){delete this.animation}destroy(){this.clearListeners(),this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}}function vt(t,e){return new Ur(t,e)}const As={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"]},ve={};for(const t in As)ve[t]={isEnabled:e=>As[t].some(s=>!!e[s])};const Cs=()=>({translate:0,scale:1,origin:0,originPoint:0}),at=()=>({x:Cs(),y:Cs()}),Ds=()=>({min:0,max:0}),C=()=>({x:Ds(),y:Ds()}),ks=t=>/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(t),Ms=t=>/^0[^.\s]+$/u.test(t),zr=typeof window<"u",be={current:null},Bs={current:!1};function Kr(){if(Bs.current=!0,!!zr)if(window.matchMedia){const t=window.matchMedia("(prefers-reduced-motion)"),e=()=>be.current=t.matches;t.addListener(e),e()}else be.current=!1}const Z=(t,e,s)=>s>e?e:s<t?t:s,lt={test:t=>typeof t=="number",parse:parseFloat,transform:t=>t},bt={...lt,transform:t=>Z(0,1,t)},Gt={...lt,default:1},xt=t=>Math.round(t*1e5)/1e5,xe=/-?(?:\d+(?:\.\d+)?|\.\d+)/gu;function Gr(t){return t==null}const Wr=/^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu,Se=(t,e)=>s=>!!(typeof s=="string"&&Wr.test(s)&&s.startsWith(t)||e&&!Gr(s)&&Object.prototype.hasOwnProperty.call(s,e)),Ns=(t,e,s)=>n=>{if(typeof n!="string")return n;const[i,r,o,l]=n.match(xe);return{[t]:parseFloat(i),[e]:parseFloat(r),[s]:parseFloat(o),alpha:l!==void 0?parseFloat(l):1}},Hr=t=>Z(0,255,t),Ee={...lt,transform:t=>Math.round(Hr(t))},st={test:Se("rgb","red"),parse:Ns("red","green","blue"),transform:({red:t,green:e,blue:s,alpha:n=1})=>"rgba("+Ee.transform(t)+", "+Ee.transform(e)+", "+Ee.transform(s)+", "+xt(bt.transform(n))+")"};function qr(t){let e="",s="",n="",i="";return t.length>5?(e=t.substring(1,3),s=t.substring(3,5),n=t.substring(5,7),i=t.substring(7,9)):(e=t.substring(1,2),s=t.substring(2,3),n=t.substring(3,4),i=t.substring(4,5),e+=e,s+=s,n+=n,i+=i),{red:parseInt(e,16),green:parseInt(s,16),blue:parseInt(n,16),alpha:i?parseInt(i,16)/255:1}}const Ve={test:Se("#"),parse:qr,transform:st.transform},St=t=>({test:e=>typeof e=="string"&&e.endsWith(t)&&e.split(" ").length===1,parse:parseFloat,transform:e=>`${e}${t}`}),J=St("deg"),W=St("%"),x=St("px"),Yr=St("vh"),Xr=St("vw"),Os={...W,parse:t=>W.parse(t)/100,transform:t=>W.transform(t*100)},ct={test:Se("hsl","hue"),parse:Ns("hue","saturation","lightness"),transform:({hue:t,saturation:e,lightness:s,alpha:n=1})=>"hsla("+Math.round(t)+", "+W.transform(xt(e))+", "+W.transform(xt(s))+", "+xt(bt.transform(n))+")"},O={test:t=>st.test(t)||Ve.test(t)||ct.test(t),parse:t=>st.test(t)?st.parse(t):ct.test(t)?ct.parse(t):Ve.parse(t),transform:t=>typeof t=="string"?t:t.hasOwnProperty("red")?st.transform(t):ct.transform(t)},Zr=/(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu;function Jr(t){var e,s;return isNaN(t)&&typeof t=="string"&&(((e=t.match(xe))===null||e===void 0?void 0:e.length)||0)+(((s=t.match(Zr))===null||s===void 0?void 0:s.length)||0)>0}const Ls="number",Rs="color",Qr="var",ta="var(",$s="${}",ea=/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 Et(t){const e=t.toString(),s=[],n={color:[],number:[],var:[]},i=[];let r=0;const l=e.replace(ea,c=>(O.test(c)?(n.color.push(r),i.push(Rs),s.push(O.parse(c))):c.startsWith(ta)?(n.var.push(r),i.push(Qr),s.push(c)):(n.number.push(r),i.push(Ls),s.push(parseFloat(c))),++r,$s)).split($s);return{values:s,split:l,indexes:n,types:i}}function js(t){return Et(t).values}function Fs(t){const{split:e,types:s}=Et(t),n=e.length;return i=>{let r="";for(let o=0;o<n;o++)if(r+=e[o],i[o]!==void 0){const l=s[o];l===Ls?r+=xt(i[o]):l===Rs?r+=O.transform(i[o]):r+=i[o]}return r}}const sa=t=>typeof t=="number"?0:t;function na(t){const e=js(t);return Fs(t)(e.map(sa))}const Q={test:Jr,parse:js,createTransformer:Fs,getAnimatableNone:na},ia=new Set(["brightness","contrast","saturate","opacity"]);function oa(t){const[e,s]=t.slice(0,-1).split("(");if(e==="drop-shadow")return t;const[n]=s.match(xe)||[];if(!n)return t;const i=s.replace(n,"");let r=ia.has(e)?1:0;return n!==s&&(r*=100),e+"("+r+i+")"}const ra=/\b([a-z-]*)\(.*?\)/gu,Te={...Q,getAnimatableNone:t=>{const e=t.match(ra);return e?e.map(oa).join(" "):t}},aa={borderWidth:x,borderTopWidth:x,borderRightWidth:x,borderBottomWidth:x,borderLeftWidth:x,borderRadius:x,radius:x,borderTopLeftRadius:x,borderTopRightRadius:x,borderBottomRightRadius:x,borderBottomLeftRadius:x,width:x,maxWidth:x,height:x,maxHeight:x,top:x,right:x,bottom:x,left:x,padding:x,paddingTop:x,paddingRight:x,paddingBottom:x,paddingLeft:x,margin:x,marginTop:x,marginRight:x,marginBottom:x,marginLeft:x,backgroundPositionX:x,backgroundPositionY:x},la={rotate:J,rotateX:J,rotateY:J,rotateZ:J,scale:Gt,scaleX:Gt,scaleY:Gt,scaleZ:Gt,skew:J,skewX:J,skewY:J,distance:x,translateX:x,translateY:x,translateZ:x,x,y:x,z:x,perspective:x,transformPerspective:x,opacity:bt,originX:Os,originY:Os,originZ:x},Is={...lt,transform:Math.round},_e={...aa,...la,zIndex:Is,size:x,fillOpacity:bt,strokeOpacity:bt,numOctaves:Is},ca={..._e,color:O,backgroundColor:O,outlineColor:O,fill:O,stroke:O,borderColor:O,borderTopColor:O,borderRightColor:O,borderBottomColor:O,borderLeftColor:O,filter:Te,WebkitFilter:Te},Us=t=>ca[t];function zs(t,e){let s=Us(t);return s!==Te&&(s=Q),s.getAnimatableNone?s.getAnimatableNone(e):void 0}const Ks=t=>e=>e.test(t),Gs=[lt,x,W,J,Xr,Yr,{test:t=>t==="auto",parse:t=>t}],Ws=t=>Gs.find(Ks(t)),ua=[...Gs,O,Q],da=t=>ua.find(Ks(t)),ut=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],dt=new Set(ut);function ha(t){return t!==null&&typeof t=="object"&&typeof t.start=="function"}function ma(t){return typeof t=="string"||Array.isArray(t)}const fa=["initial",...["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"]];function Hs(t){return ha(t.animate)||fa.some(e=>ma(t[e]))}function pa(t){return!!(Hs(t)||t.variants)}const nt=t=>t*180/Math.PI,we=t=>{const e=nt(Math.atan2(t[1],t[0]));return Pe(e)},ga={x:4,y:5,translateX:4,translateY:5,scaleX:0,scaleY:3,scale:t=>(Math.abs(t[0])+Math.abs(t[3]))/2,rotate:we,rotateZ:we,skewX:t=>nt(Math.atan(t[1])),skewY:t=>nt(Math.atan(t[2])),skew:t=>(Math.abs(t[1])+Math.abs(t[2]))/2},Pe=t=>(t=t%360,t<0&&(t+=360),t),qs=we,Ys=t=>Math.sqrt(t[0]*t[0]+t[1]*t[1]),Xs=t=>Math.sqrt(t[4]*t[4]+t[5]*t[5]),ya={x:12,y:13,z:14,translateX:12,translateY:13,translateZ:14,scaleX:Ys,scaleY:Xs,scale:t=>(Ys(t)+Xs(t))/2,rotateX:t=>Pe(nt(Math.atan2(t[6],t[5]))),rotateY:t=>Pe(nt(Math.atan2(-t[2],t[0]))),rotateZ:qs,rotate:qs,skewX:t=>nt(Math.atan(t[4])),skewY:t=>nt(Math.atan(t[1])),skew:t=>(Math.abs(t[1])+Math.abs(t[4]))/2};function Zs(t){return t.includes("scale")?1:0}function Ae(t,e){if(!t||t==="none")return Zs(e);const s=t.match(/^matrix3d\(([-\d.e\s,]+)\)$/u);let n,i;if(s)n=ya,i=s;else{const l=t.match(/^matrix\(([-\d.e\s,]+)\)$/u);n=ga,i=l}if(!i)return Zs(e);const r=n[e],o=i[1].split(",").map(ba);return typeof r=="function"?r(o):o[r]}const va=(t,e)=>{const{transform:s="none"}=getComputedStyle(t);return Ae(s,e)};function ba(t){return parseFloat(t.trim())}const Js=t=>t===lt||t===x,xa=new Set(["x","y","z"]),Sa=ut.filter(t=>!xa.has(t));function Ea(t){const e=[];return Sa.forEach(s=>{const n=t.getValue(s);n!==void 0&&(e.push([s,n.get()]),n.set(s.startsWith("scale")?1:0))}),e}const ht={width:({x:t},{paddingLeft:e="0",paddingRight:s="0"})=>t.max-t.min-parseFloat(e)-parseFloat(s),height:({y:t},{paddingTop:e="0",paddingBottom:s="0"})=>t.max-t.min-parseFloat(e)-parseFloat(s),top:(t,{top:e})=>parseFloat(e),left:(t,{left:e})=>parseFloat(e),bottom:({y:t},{top:e})=>parseFloat(e)+(t.max-t.min),right:({x:t},{left:e})=>parseFloat(e)+(t.max-t.min),x:(t,{transform:e})=>Ae(e,"x"),y:(t,{transform:e})=>Ae(e,"y")};ht.translateX=ht.x,ht.translateY=ht.y;const it=new Set;let Ce=!1,De=!1;function Qs(){if(De){const t=Array.from(it).filter(n=>n.needsMeasurement),e=new Set(t.map(n=>n.element)),s=new Map;e.forEach(n=>{const i=Ea(n);i.length&&(s.set(n,i),n.render())}),t.forEach(n=>n.measureInitialState()),e.forEach(n=>{n.render();const i=s.get(n);i&&i.forEach(([r,o])=>{var l;(l=n.getValue(r))===null||l===void 0||l.set(o)})}),t.forEach(n=>n.measureEndState()),t.forEach(n=>{n.suspendedScrollY!==void 0&&window.scrollTo(0,n.suspendedScrollY)})}De=!1,Ce=!1,it.forEach(t=>t.complete()),it.clear()}function tn(){it.forEach(t=>{t.readKeyframes(),t.needsMeasurement&&(De=!0)})}function Va(){tn(),Qs()}class ke{constructor(e,s,n,i,r,o=!1){this.isComplete=!1,this.isAsync=!1,this.needsMeasurement=!1,this.isScheduled=!1,this.unresolvedKeyframes=[...e],this.onComplete=s,this.name=n,this.motionValue=i,this.element=r,this.isAsync=o}scheduleResolve(){this.isScheduled=!0,this.isAsync?(it.add(this),Ce||(Ce=!0,P.read(tn),P.resolveKeyframes(Qs))):(this.readKeyframes(),this.complete())}readKeyframes(){const{unresolvedKeyframes:e,name:s,element:n,motionValue:i}=this;for(let r=0;r<e.length;r++)if(e[r]===null)if(r===0){const o=i==null?void 0:i.get(),l=e[e.length-1];if(o!==void 0)e[0]=o;else if(n&&s){const c=n.readValue(s,l);c!=null&&(e[0]=c)}e[0]===void 0&&(e[0]=l),i&&o===void 0&&i.set(e[0])}else e[r]=e[r-1]}setFinalKeyframe(){}measureInitialState(){}renderEndStyles(){}measureEndState(){}complete(){this.isComplete=!0,this.onComplete(this.unresolvedKeyframes,this.finalKeyframe),it.delete(this)}cancel(){this.isComplete||(this.isScheduled=!1,it.delete(this))}resume(){this.isComplete||this.scheduleResolve()}}function Ta(t,e,s){for(const n in e){const i=e[n],r=s[n];if(N(i))t.addValue(n,i),process.env.NODE_ENV==="development"&&ye(i.version==="12.5.0",`Attempting to mix Motion versions ${i.version} with 12.5.0 may not work as expected.`);else if(N(r))t.addValue(n,vt(i,{owner:t}));else if(r!==i)if(t.hasValue(n)){const o=t.getValue(n);o.liveStyle===!0?o.jump(i):o.hasAnimated||o.set(i)}else{const o=t.getStaticValue(n);t.addValue(n,vt(o!==void 0?o:i,{owner:t}))}}for(const n in s)e[n]===void 0&&t.removeValue(n);return e}function en(t){const e=[{},{}];return t==null||t.values.forEach((s,n)=>{e[0][n]=s.get(),e[1][n]=s.getVelocity()}),e}function sn(t,e,s,n){if(typeof e=="function"){const[i,r]=en(n);e=e(s!==void 0?s:t.custom,i,r)}if(typeof e=="string"&&(e=t.variants&&t.variants[e]),typeof e=="function"){const[i,r]=en(n);e=e(s!==void 0?s:t.custom,i,r)}return e}const nn=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"];class on{scrapeMotionValuesFromProps(e,s,n){return{}}constructor({parent:e,props:s,presenceContext:n,reducedMotionConfig:i,blockInitialAnimation:r,visualState:o},l={}){this.current=null,this.children=new Set,this.isVariantNode=!1,this.isControllingVariants=!1,this.shouldReduceMotion=null,this.values=new Map,this.KeyframeResolver=ke,this.features={},this.valueSubscriptions=new Map,this.prevMotionValues={},this.events={},this.propEventSubscriptions={},this.notifyUpdate=()=>this.notify("Update",this.latestValues),this.render=()=>{this.current&&(this.triggerBuild(),this.renderInstance(this.current,this.renderState,this.props.style,this.projection))},this.renderScheduledAt=0,this.scheduleRender=()=>{const f=F.now();this.renderScheduledAt<f&&(this.renderScheduledAt=f,P.render(this.render,!1,!0))};const{latestValues:c,renderState:d,onUpdate:u}=o;this.onUpdate=u,this.latestValues=c,this.baseTarget={...c},this.initialValues=s.initial?{...c}:{},this.renderState=d,this.parent=e,this.props=s,this.presenceContext=n,this.depth=e?e.depth+1:0,this.reducedMotionConfig=i,this.options=l,this.blockInitialAnimation=!!r,this.isControllingVariants=Hs(s),this.isVariantNode=pa(s),this.isVariantNode&&(this.variantChildren=new Set),this.manuallyAnimateOnMount=!!(e&&e.current);const{willChange:h,...m}=this.scrapeMotionValuesFromProps(s,{},this);for(const f in m){const p=m[f];c[f]!==void 0&&N(p)&&p.set(c[f],!1)}}mount(e){this.current=e,et.set(e,this),this.projection&&!this.projection.instance&&this.projection.mount(e),this.parent&&this.isVariantNode&&!this.isControllingVariants&&(this.removeFromVariantTree=this.parent.addVariantChild(this)),this.values.forEach((s,n)=>this.bindToMotionValue(n,s)),Bs.current||Kr(),this.shouldReduceMotion=this.reducedMotionConfig==="never"?!1:this.reducedMotionConfig==="always"?!0:be.current,process.env.NODE_ENV!=="production"&&ye(this.shouldReduceMotion!==!0,"You have Reduced Motion enabled on your device. Animations may not appear as expected."),this.parent&&this.parent.children.add(this),this.update(this.props,this.presenceContext)}unmount(){this.projection&&this.projection.unmount(),G(this.notifyUpdate),G(this.render),this.valueSubscriptions.forEach(e=>e()),this.valueSubscriptions.clear(),this.removeFromVariantTree&&this.removeFromVariantTree(),this.parent&&this.parent.children.delete(this);for(const e in this.events)this.events[e].clear();for(const e in this.features){const s=this.features[e];s&&(s.unmount(),s.isMounted=!1)}this.current=null}bindToMotionValue(e,s){this.valueSubscriptions.has(e)&&this.valueSubscriptions.get(e)();const n=dt.has(e);n&&this.onBindTransform&&this.onBindTransform();const i=s.on("change",l=>{this.latestValues[e]=l,this.props.onUpdate&&P.preRender(this.notifyUpdate),n&&this.projection&&(this.projection.isTransformDirty=!0)}),r=s.on("renderRequest",this.scheduleRender);let o;window.MotionCheckAppearSync&&(o=window.MotionCheckAppearSync(this,e,s)),this.valueSubscriptions.set(e,()=>{i(),r(),o&&o(),s.owner&&s.stop()})}sortNodePosition(e){return!this.current||!this.sortInstanceNodePosition||this.type!==e.type?0:this.sortInstanceNodePosition(this.current,e.current)}updateFeatures(){let e="animation";for(e in ve){const s=ve[e];if(!s)continue;const{isEnabled:n,Feature:i}=s;if(!this.features[e]&&i&&n(this.props)&&(this.features[e]=new i(this)),this.features[e]){const r=this.features[e];r.isMounted?r.update():(r.mount(),r.isMounted=!0)}}}triggerBuild(){this.build(this.renderState,this.latestValues,this.props)}measureViewportBox(){return this.current?this.measureInstanceViewportBox(this.current,this.props):C()}getStaticValue(e){return this.latestValues[e]}setStaticValue(e,s){this.latestValues[e]=s}update(e,s){(e.transformTemplate||this.props.transformTemplate)&&this.scheduleRender(),this.prevProps=this.props,this.props=e,this.prevPresenceContext=this.presenceContext,this.presenceContext=s;for(let n=0;n<nn.length;n++){const i=nn[n];this.propEventSubscriptions[i]&&(this.propEventSubscriptions[i](),delete this.propEventSubscriptions[i]);const r="on"+i,o=e[r];o&&(this.propEventSubscriptions[i]=this.on(i,o))}this.prevMotionValues=Ta(this,this.scrapeMotionValuesFromProps(e,this.prevProps,this),this.prevMotionValues),this.handleChildMotionValue&&this.handleChildMotionValue(),this.onUpdate&&this.onUpdate(this)}getProps(){return this.props}getVariant(e){return this.props.variants?this.props.variants[e]:void 0}getDefaultTransition(){return this.props.transition}getTransformPagePoint(){return this.props.transformPagePoint}getClosestVariantNode(){return this.isVariantNode?this:this.parent?this.parent.getClosestVariantNode():void 0}addVariantChild(e){const s=this.getClosestVariantNode();if(s)return s.variantChildren&&s.variantChildren.add(e),()=>s.variantChildren.delete(e)}addValue(e,s){const n=this.values.get(e);s!==n&&(n&&this.removeValue(e),this.bindToMotionValue(e,s),this.values.set(e,s),this.latestValues[e]=s.get())}removeValue(e){this.values.delete(e);const s=this.valueSubscriptions.get(e);s&&(s(),this.valueSubscriptions.delete(e)),delete this.latestValues[e],this.removeValueFromRenderState(e,this.renderState)}hasValue(e){return this.values.has(e)}getValue(e,s){if(this.props.values&&this.props.values[e])return this.props.values[e];let n=this.values.get(e);return n===void 0&&s!==void 0&&(n=vt(s===null?void 0:s,{owner:this}),this.addValue(e,n)),n}readValue(e,s){var n;let i=this.latestValues[e]!==void 0||!this.current?this.latestValues[e]:(n=this.getBaseTargetFromProps(this.props,e))!==null&&n!==void 0?n:this.readValueFromInstance(this.current,e,this.options);return i!=null&&(typeof i=="string"&&(ks(i)||Ms(i))?i=parseFloat(i):!da(i)&&Q.test(s)&&(i=zs(e,s)),this.setBaseTarget(e,N(i)?i.get():i)),N(i)?i.get():i}setBaseTarget(e,s){this.baseTarget[e]=s}getBaseTarget(e){var s;const{initial:n}=this.props;let i;if(typeof n=="string"||typeof n=="object"){const o=sn(this.props,n,(s=this.presenceContext)===null||s===void 0?void 0:s.custom);o&&(i=o[e])}if(n&&i!==void 0)return i;const r=this.getBaseTargetFromProps(this.props,e);return r!==void 0&&!N(r)?r:this.initialValues[e]!==void 0&&i===void 0?void 0:this.baseTarget[e]}on(e,s){return this.events[e]||(this.events[e]=new ge),this.events[e].add(s)}notify(e,...s){this.events[e]&&this.events[e].notify(...s)}}function _a(t){return typeof t=="number"?t===0:t!==null?t==="none"||t==="0"||Ms(t):!0}const rn=new Set(["width","height","top","left","right","bottom",...ut]),wa=new Set(["auto","none","0"]);function Pa(t,e,s){let n=0,i;for(;n<t.length&&!i;){const r=t[n];typeof r=="string"&&!wa.has(r)&&Et(r).values.length&&(i=t[n]),n++}if(i&&s)for(const r of e)t[r]=zs(s,i)}const Aa=/^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u;function Ca(t){const e=Aa.exec(t);if(!e)return[,];const[,s,n,i]=e;return[`--${s??n}`,i]}const Da=4;function an(t,e,s=1){X(s<=Da,`Max CSS variable fallback depth detected in property "${t}". This may indicate a circular fallback dependency.`);const[n,i]=Ca(t);if(!n)return;const r=window.getComputedStyle(e).getPropertyValue(n);if(r){const o=r.trim();return ks(o)?parseFloat(o):o}return le(i)?an(i,e,s+1):i}class ln extends ke{constructor(e,s,n,i,r){super(e,s,n,i,r,!0)}readKeyframes(){const{unresolvedKeyframes:e,element:s,name:n}=this;if(!s||!s.current)return;super.readKeyframes();for(let c=0;c<e.length;c++){let d=e[c];if(typeof d=="string"&&(d=d.trim(),le(d))){const u=an(d,s.current);u!==void 0&&(e[c]=u),c===e.length-1&&(this.finalKeyframe=d)}}if(this.resolveNoneKeyframes(),!rn.has(n)||e.length!==2)return;const[i,r]=e,o=Ws(i),l=Ws(r);if(o!==l)if(Js(o)&&Js(l))for(let c=0;c<e.length;c++){const d=e[c];typeof d=="string"&&(e[c]=parseFloat(d))}else this.needsMeasurement=!0}resolveNoneKeyframes(){const{unresolvedKeyframes:e,name:s}=this,n=[];for(let i=0;i<e.length;i++)_a(e[i])&&n.push(i);n.length&&Pa(e,n,s)}measureInitialState(){const{element:e,unresolvedKeyframes:s,name:n}=this;if(!e||!e.current)return;n==="height"&&(this.suspendedScrollY=window.pageYOffset),this.measuredOrigin=ht[n](e.measureViewportBox(),window.getComputedStyle(e.current)),s[0]=this.measuredOrigin;const i=s[s.length-1];i!==void 0&&e.getValue(n,i).jump(i,!1)}measureEndState(){var e;const{element:s,name:n,unresolvedKeyframes:i}=this;if(!s||!s.current)return;const r=s.getValue(n);r&&r.jump(this.measuredOrigin,!1);const o=i.length-1,l=i[o];i[o]=ht[n](s.measureViewportBox(),window.getComputedStyle(s.current)),l!==null&&this.finalKeyframe===void 0&&(this.finalKeyframe=l),!((e=this.removedTransforms)===null||e===void 0)&&e.length&&this.removedTransforms.forEach(([c,d])=>{s.getValue(c).set(d)}),this.resolveNoneKeyframes()}}class cn extends on{constructor(){super(...arguments),this.KeyframeResolver=ln}sortInstanceNodePosition(e,s){return e.compareDocumentPosition(s)&2?1:-1}getBaseTargetFromProps(e,s){return e.style?e.style[s]:void 0}removeValueFromRenderState(e,{vars:s,style:n}){delete s[e],delete n[e]}handleChildMotionValue(){this.childSubscription&&(this.childSubscription(),delete this.childSubscription);const{children:e}=this.props;N(e)&&(this.childSubscription=e.on("change",s=>{this.current&&(this.current.textContent=`${s}`)}))}}const un=(t,e)=>e&&typeof t=="number"?e.transform(t):t,ka={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},Ma=ut.length;function Ba(t,e,s){let n="",i=!0;for(let r=0;r<Ma;r++){const o=ut[r],l=t[o];if(l===void 0)continue;let c=!0;if(typeof l=="number"?c=l===(o.startsWith("scale")?1:0):c=parseFloat(l)===0,!c||s){const d=un(l,_e[o]);if(!c){i=!1;const u=ka[o]||o;n+=`${u}(${d}) `}s&&(e[o]=d)}}return n=n.trim(),s?n=s(e,i?"":n):i&&(n="none"),n}function dn(t,e,s){const{style:n,vars:i,transformOrigin:r}=t;let o=!1,l=!1;for(const c in e){const d=e[c];if(dt.has(c)){o=!0;continue}else if(ae(c)){i[c]=d;continue}else{const u=un(d,_e[c]);c.startsWith("origin")?(l=!0,r[c]=u):n[c]=u}}if(e.transform||(o||s?n.transform=Ba(e,t.transform,s):n.transform&&(n.transform="none")),l){const{originX:c="50%",originY:d="50%",originZ:u=0}=r;n.transformOrigin=`${c} ${d} ${u}`}}function hn(t,{style:e,vars:s},n,i){Object.assign(t.style,e,i&&i.getProjectionStyles(n));for(const r in s)t.style.setProperty(r,s[r])}function Na(t,{layout:e,layoutId:s}){return dt.has(t)||t.startsWith("origin")||(e||s!==void 0)&&(!!ft[t]||t==="opacity")}function mn(t,e,s){var n;const{style:i}=t,r={};for(const o in i)(N(i[o])||e.style&&N(e.style[o])||Na(o,t)||((n=s==null?void 0:s.getValue(o))===null||n===void 0?void 0:n.liveStyle)!==void 0)&&(r[o]=i[o]);return r}function Oa(t){return window.getComputedStyle(t)}class fn extends cn{constructor(){super(...arguments),this.type="html",this.renderInstance=hn}readValueFromInstance(e,s){if(dt.has(s))return va(e,s);{const n=Oa(e),i=(ae(s)?n.getPropertyValue(s):n[s])||0;return typeof i=="string"?i.trim():i}}measureInstanceViewportBox(e,{transformPagePoint:s}){return $r(e,s)}build(e,s,n){dn(e,s,n.transformTemplate)}scrapeMotionValuesFromProps(e,s,n){return mn(e,s,n)}}const Me=t=>t.replace(/([a-z])([A-Z])/gu,"$1-$2").toLowerCase(),La={offset:"stroke-dashoffset",array:"stroke-dasharray"},Ra={offset:"strokeDashoffset",array:"strokeDasharray"};function $a(t,e,s=1,n=0,i=!0){t.pathLength=1;const r=i?La:Ra;t[r.offset]=x.transform(-n);const o=x.transform(e),l=x.transform(s);t[r.array]=`${o} ${l}`}function pn(t,e,s){return typeof t=="string"?t:x.transform(e+s*t)}function ja(t,e,s){const n=pn(e,t.x,t.width),i=pn(s,t.y,t.height);return`${n} ${i}`}function Fa(t,{attrX:e,attrY:s,attrScale:n,originX:i,originY:r,pathLength:o,pathSpacing:l=1,pathOffset:c=0,...d},u,h){if(dn(t,d,h),u){t.style.viewBox&&(t.attrs.viewBox=t.style.viewBox);return}t.attrs=t.style,t.style={};const{attrs:m,style:f,dimensions:p}=t;m.transform&&(p&&(f.transform=m.transform),delete m.transform),p&&(i!==void 0||r!==void 0||f.transform)&&(f.transformOrigin=ja(p,i!==void 0?i:.5,r!==void 0?r:.5)),e!==void 0&&(m.x=e),s!==void 0&&(m.y=s),n!==void 0&&(m.scale=n),o!==void 0&&$a(m,o,l,c,!1)}const gn=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"]),Ia=t=>typeof t=="string"&&t.toLowerCase()==="svg";function Ua(t,e){try{e.dimensions=typeof t.getBBox=="function"?t.getBBox():t.getBoundingClientRect()}catch{e.dimensions={x:0,y:0,width:0,height:0}}}function za(t,e,s,n){hn(t,e,void 0,n);for(const i in e.attrs)t.setAttribute(gn.has(i)?i:Me(i),e.attrs[i])}function Ka(t,e,s){const n=mn(t,e,s);for(const i in t)if(N(t[i])||N(e[i])){const r=ut.indexOf(i)!==-1?"attr"+i.charAt(0).toUpperCase()+i.substring(1):i;n[r]=t[i]}return n}class yn extends cn{constructor(){super(...arguments),this.type="svg",this.isSVGTag=!1,this.measureInstanceViewportBox=C,this.updateDimensions=()=>{this.current&&!this.renderState.dimensions&&Ua(this.current,this.renderState)}}getBaseTargetFromProps(e,s){return e[s]}readValueFromInstance(e,s){if(dt.has(s)){const n=Us(s);return n&&n.default||0}return s=gn.has(s)?s:Me(s),e.getAttribute(s)}scrapeMotionValuesFromProps(e,s,n){return Ka(e,s,n)}onBindTransform(){this.current&&!this.renderState.dimensions&&P.postRender(this.updateDimensions)}build(e,s,n){Fa(e,s,this.isSVGTag,n.transformTemplate)}renderInstance(e,s,n,i){za(e,s,n,i)}mount(e){this.isSVGTag=Ia(e.tagName),super.mount(e)}}function Ga(t,e){return ys(t)?new yn(e):new fn(e)}function Be(t){let e;return()=>(e===void 0&&(e=t()),e)}const Wa=Be(()=>window.ScrollTimeline!==void 0);class Ha{constructor(e){this.stop=()=>this.runAll("stop"),this.animations=e.filter(Boolean)}get finished(){return Promise.all(this.animations.map(e=>"finished"in e?e.finished:e))}getAll(e){return this.animations[0][e]}setAll(e,s){for(let n=0;n<this.animations.length;n++)this.animations[n][e]=s}attachTimeline(e,s){const n=this.animations.map(i=>{if(Wa()&&i.attachTimeline)return i.attachTimeline(e);if(typeof s=="function")return s(i)});return()=>{n.forEach((i,r)=>{i&&i(),this.animations[r].stop()})}}get time(){return this.getAll("time")}set time(e){this.setAll("time",e)}get speed(){return this.getAll("speed")}set speed(e){this.setAll("speed",e)}get startTime(){return this.getAll("startTime")}get duration(){let e=0;for(let s=0;s<this.animations.length;s++)e=Math.max(e,this.animations[s].duration);return e}runAll(e){this.animations.forEach(s=>s[e]())}flatten(){this.runAll("flatten")}play(){this.runAll("play")}pause(){this.runAll("pause")}cancel(){this.runAll("cancel")}complete(){this.runAll("complete")}}class vn extends Ha{then(e,s){return Promise.all(this.animations).then(e).catch(s)}}const I=t=>t*1e3,H=t=>t/1e3,Wt=2e4;function Ne(t){let e=0;const s=50;let n=t.next(e);for(;!n.done&&e<Wt;)e+=s,n=t.next(e);return e>=Wt?1/0:e}const Vt=(t,e,s)=>{const n=e-t;return n===0?1:(s-t)/n},bn=(t,e,s=10)=>{let n="";const i=Math.max(Math.round(e/s),2);for(let r=0;r<i;r++)n+=t(Vt(0,i-1,r))+", ";return`linear(${n.substring(0,n.length-2)})`},qa=5;function xn(t,e,s){const n=Math.max(e-qa,0);return ws(s-t(n),e-n)}const A={stiffness:100,damping:10,mass:1,velocity:0,duration:800,bounce:.3,visualDuration:.3,restSpeed:{granular:.01,default:2},restDelta:{granular:.005,default:.5},minDuration:.01,maxDuration:10,minDamping:.05,maxDamping:1},Sn=.001;function Ya({duration:t=A.duration,bounce:e=A.bounce,velocity:s=A.velocity,mass:n=A.mass}){let i,r;yt(t<=I(A.maxDuration),"Spring duration must be 10 seconds or less");let o=1-e;o=Z(A.minDamping,A.maxDamping,o),t=Z(A.minDuration,A.maxDuration,H(t)),o<1?(i=d=>{const u=d*o,h=u*t,m=u-s,f=Oe(d,o),p=Math.exp(-h);return Sn-m/f*p},r=d=>{const h=d*o*t,m=h*s+s,f=Math.pow(o,2)*Math.pow(d,2)*t,p=Math.exp(-h),g=Oe(Math.pow(d,2),o);return(-i(d)+Sn>0?-1:1)*((m-f)*p)/g}):(i=d=>{const u=Math.exp(-d*t),h=(d-s)*t+1;return-.001+u*h},r=d=>{const u=Math.exp(-d*t),h=(s-d)*(t*t);return u*h});const l=5/t,c=Za(i,r,l);if(t=I(t),isNaN(c))return{stiffness:A.stiffness,damping:A.damping,duration:t};{const d=Math.pow(c,2)*n;return{stiffness:d,damping:o*2*Math.sqrt(n*d),duration:t}}}const Xa=12;function Za(t,e,s){let n=s;for(let i=1;i<Xa;i++)n=n-t(n)/e(n);return n}function Oe(t,e){return t*Math.sqrt(1-e*e)}const Ja=["duration","bounce"],Qa=["stiffness","damping","mass"];function En(t,e){return e.some(s=>t[s]!==void 0)}function tl(t){let e={velocity:A.velocity,stiffness:A.stiffness,damping:A.damping,mass:A.mass,isResolvedFromDuration:!1,...t};if(!En(t,Qa)&&En(t,Ja))if(t.visualDuration){const s=t.visualDuration,n=2*Math.PI/(s*1.2),i=n*n,r=2*Z(.05,1,1-(t.bounce||0))*Math.sqrt(i);e={...e,mass:A.mass,stiffness:i,damping:r}}else{const s=Ya(t);e={...e,...s,mass:A.mass},e.isResolvedFromDuration=!0}return e}function Le(t=A.visualDuration,e=A.bounce){const s=typeof t!="object"?{visualDuration:t,keyframes:[0,1],bounce:e}:t;let{restSpeed:n,restDelta:i}=s;const r=s.keyframes[0],o=s.keyframes[s.keyframes.length-1],l={done:!1,value:r},{stiffness:c,damping:d,mass:u,duration:h,velocity:m,isResolvedFromDuration:f}=tl({...s,velocity:-H(s.velocity||0)}),p=m||0,g=d/(2*Math.sqrt(c*u)),v=o-r,y=H(Math.sqrt(c/u)),S=Math.abs(v)<5;n||(n=S?A.restSpeed.granular:A.restSpeed.default),i||(i=S?A.restDelta.granular:A.restDelta.default);let E;if(g<1){const b=Oe(y,g);E=_=>{const k=Math.exp(-g*y*_);return o-k*((p+g*y*v)/b*Math.sin(b*_)+v*Math.cos(b*_))}}else if(g===1)E=b=>o-Math.exp(-y*b)*(v+(p+y*v)*b);else{const b=y*Math.sqrt(g*g-1);E=_=>{const k=Math.exp(-g*y*_),V=Math.min(b*_,300);return o-k*((p+g*y*v)*Math.sinh(V)+b*v*Math.cosh(V))/b}}const T={calculatedDuration:f&&h||null,next:b=>{const _=E(b);if(f)l.done=b>=h;else{let k=0;g<1&&(k=b===0?I(p):xn(E,b,_));const V=Math.abs(k)<=n,w=Math.abs(o-_)<=i;l.done=V&&w}return l.value=l.done?o:_,l},toString:()=>{const b=Math.min(Ne(T),Wt),_=bn(k=>T.next(b*k).value,b,30);return b+"ms "+_}};return T}function el(t,e=100,s){const n=s({...t,keyframes:[0,e]}),i=Math.min(Ne(n),Wt);return{type:"keyframes",ease:r=>n.next(i*r).value/e,duration:H(i)}}function Ht(t){return typeof t=="function"}const sl=(t,e,s)=>{const n=e-t;return((s-t)%n+n)%n+t},Vn=t=>Array.isArray(t)&&typeof t[0]!="number";function Tn(t,e){return Vn(t)?t[sl(0,t.length,e)]:t}const D=(t,e,s)=>t+(e-t)*s;function _n(t,e){const s=t[t.length-1];for(let n=1;n<=e;n++){const i=Vt(0,e,n);t.push(D(s,1,i))}}function wn(t){const e=[0];return _n(e,t.length-1),e}function Re(t,e,s){var n;if(t instanceof EventTarget)return[t];if(typeof t=="string"){let i=document;const r=(n=s==null?void 0:s[t])!==null&&n!==void 0?n:i.querySelectorAll(t);return r?Array.from(r):[]}return Array.from(t)}function $e(t){return typeof t=="object"&&!Array.isArray(t)}function Pn(t,e,s,n){return typeof t=="string"&&$e(e)?Re(t,s,n):t instanceof NodeList?Array.from(t):Array.isArray(t)?t:[t]}function nl(t,e,s){return t*(e+1)}function An(t,e,s,n){var i;return typeof e=="number"?e:e.startsWith("-")||e.startsWith("+")?Math.max(0,t+parseFloat(e)):e==="<"?s:(i=n.get(e))!==null&&i!==void 0?i:t}function il(t,e,s){for(let n=0;n<t.length;n++){const i=t[n];i.at>e&&i.at<s&&(zt(t,i),n--)}}function ol(t,e,s,n,i,r){il(t,i,r);for(let o=0;o<e.length;o++)t.push({value:e[o],at:D(i,r,n[o]),easing:Tn(s,o)})}function rl(t,e){for(let s=0;s<t.length;s++)t[s]=t[s]/(e+1)}function al(t,e){return t.at===e.at?t.value===null?1:e.value===null?-1:0:t.at-e.at}const ll="easeInOut",cl=20;function ul(t,{defaultTransition:e={},...s}={},n,i){const r=e.duration||.3,o=new Map,l=new Map,c={},d=new Map;let u=0,h=0,m=0;for(let f=0;f<t.length;f++){const p=t[f];if(typeof p=="string"){d.set(p,h);continue}else if(!Array.isArray(p)){d.set(p.name,An(h,p.at,u,d));continue}let[g,v,y={}]=p;y.at!==void 0&&(h=An(h,y.at,u,d));let S=0;const E=(T,b,_,k=0,V=0)=>{const w=dl(T),{delay:L=0,times:z=wn(w),type:ds="keyframes",repeat:Ot,repeatType:pm,repeatDelay:gm=0,...om}=b;let{ease:tt=e.ease||"easeOut",duration:j}=b;const Mo=typeof L=="function"?L(k,V):L,Bo=w.length,No=Ht(ds)?ds:i==null?void 0:i[ds];if(Bo<=2&&No){let Lt=100;if(Bo===2&&fl(w)){const Rt=w[1]-w[0];Lt=Math.abs(Rt)}const oe={...om};j!==void 0&&(oe.duration=I(j));const re=el(oe,Lt,No);tt=re.ease,j=re.duration}j??(j=r);const Oo=h+Mo;z.length===1&&z[0]===0&&(z[1]=1);const Lo=z.length-w.length;if(Lo>0&&_n(z,Lo),w.length===1&&w.unshift(null),Ot){X(Ot<cl,"Repeat count too high, must be less than 20"),j=nl(j,Ot);const Lt=[...w],oe=[...z];tt=Array.isArray(tt)?[...tt]:[tt];const re=[...tt];for(let Rt=0;Rt<Ot;Rt++){w.push(...Lt);for(let $t=0;$t<Lt.length;$t++)z.push(oe[$t]+(Rt+1)),tt.push($t===0?"linear":Tn(re,$t-1))}rl(z,Ot)}const Ro=Oo+j;ol(_,w,tt,z,Oo,Ro),S=Math.max(Mo+j,S),m=Math.max(Ro,m)};if(N(g)){const T=Cn(g,l);E(v,y,Dn("default",T))}else{const T=Pn(g,v,n,c),b=T.length;for(let _=0;_<b;_++){v=v,y=y;const k=T[_],V=Cn(k,l);for(const w in v)E(v[w],hl(y,w),Dn(w,V),_,b)}}u=h,h+=S}return l.forEach((f,p)=>{for(const g in f){const v=f[g];v.sort(al);const y=[],S=[],E=[];for(let b=0;b<v.length;b++){const{at:_,value:k,easing:V}=v[b];y.push(k),S.push(Vt(0,m,_)),E.push(V||"easeOut")}S[0]!==0&&(S.unshift(0),y.unshift(y[0]),E.unshift(ll)),S[S.length-1]!==1&&(S.push(1),y.push(null)),o.has(p)||o.set(p,{keyframes:{},transition:{}});const T=o.get(p);T.keyframes[g]=y,T.transition[g]={...e,duration:m,ease:E,times:S,...s}}}),o}function Cn(t,e){return!e.has(t)&&e.set(t,{}),e.get(t)}function Dn(t,e){return e[t]||(e[t]=[]),e[t]}function dl(t){return Array.isArray(t)?t:[t]}function hl(t,e){return t&&t[e]?{...t,...t[e]}:{...t}}const ml=t=>typeof t=="number",fl=t=>t.every(ml);function je(t,e){return t?t[e]||t.default||t:void 0}const pl=t=>Array.isArray(t),gl=t=>!!(t&&typeof t=="object"&&t.mix&&t.toValue),yl=t=>pl(t)?t[t.length-1]||0:t;function vl(t,e,s){const n=t.getProps();return sn(n,e,n.custom,t)}function bl(t,e,s){t.hasValue(e)?t.getValue(e).set(s):t.addValue(e,vt(s))}function xl(t,e){const s=vl(t,e);let{transitionEnd:n={},transition:i={},...r}=s||{};r={...r,...n};for(const o in r){const l=yl(r[o]);bl(t,o,l)}}function Sl(t){return!!(N(t)&&t.add)}function El(t,e){const s=t.getValue("willChange");if(Sl(s))return s.add(e)}const Vl="data-"+Me("framerAppearId");function kn(t){return t.props[Vl]}function Mn(t,e){t.timeline=e,t.onfinish=null}const Fe=t=>Array.isArray(t)&&typeof t[0]=="number",Tl={linearEasing:void 0};function _l(t,e){const s=Be(t);return()=>{var n;return(n=Tl[e])!==null&&n!==void 0?n:s()}}const qt=_l(()=>{try{document.createElement("div").animate({opacity:0},{easing:"linear(0, 1)"})}catch{return!1}return!0},"linearEasing");function Bn(t){return!!(typeof t=="function"&&qt()||!t||typeof t=="string"&&(t in Ie||qt())||Fe(t)||Array.isArray(t)&&t.every(Bn))}const Tt=([t,e,s,n])=>`cubic-bezier(${t}, ${e}, ${s}, ${n})`,Ie={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:Tt([0,.65,.55,1]),circOut:Tt([.55,0,1,.45]),backIn:Tt([.31,.01,.66,-.59]),backOut:Tt([.33,1.53,.69,.99])};function Nn(t,e){if(t)return typeof t=="function"&&qt()?bn(t,e):Fe(t)?Tt(t):Array.isArray(t)?t.map(s=>Nn(s,e)||Ie.easeOut):Ie[t]}const On=(t,e,s)=>(((1-3*s+3*e)*t+(3*s-6*e))*t+3*e)*t,wl=1e-7,Pl=12;function Al(t,e,s,n,i){let r,o,l=0;do o=e+(s-e)/2,r=On(o,n,i)-t,r>0?s=o:e=o;while(Math.abs(r)>wl&&++l<Pl);return o}function _t(t,e,s,n){if(t===e&&s===n)return B;const i=r=>Al(r,0,1,t,s);return r=>r===0||r===1?r:On(i(r),e,n)}const Ln=t=>e=>e<=.5?t(2*e)/2:(2-t(2*(1-e)))/2,Rn=t=>e=>1-t(1-e),$n=_t(.33,1.53,.69,.99),Ue=Rn($n),jn=Ln(Ue),Fn=t=>(t*=2)<1?.5*Ue(t):.5*(2-Math.pow(2,-10*(t-1))),ze=t=>1-Math.sin(Math.acos(t)),In=Rn(ze),Un=Ln(ze),zn=(t,e)=>e==="zIndex"?!1:!!(typeof t=="number"||Array.isArray(t)||typeof t=="string"&&(Q.test(t)||t==="0")&&!t.startsWith("url("));function Cl(t){const e=t[0];if(t.length===1)return!0;for(let s=0;s<t.length;s++)if(t[s]!==e)return!0}function Dl(t,e,s,n){const i=t[0];if(i===null)return!1;if(e==="display"||e==="visibility")return!0;const r=t[t.length-1],o=zn(i,e),l=zn(r,e);return yt(o===l,`You are trying to animate ${e} from "${i}" to "${r}". ${i} is not an animatable value - to enable this animation set ${i} to a value animatable to ${r} via the \`style\` property.`),!o||!l?!1:Cl(t)||(s==="spring"||Ht(s))&&n}const kl=t=>t!==null;function Yt(t,{repeat:e,repeatType:s="loop"},n){const i=t.filter(kl),r=e&&s!=="loop"&&e%2===1?0:i.length-1;return!r||n===void 0?i[r]:n}const Ml=40;class Kn{constructor({autoplay:e=!0,delay:s=0,type:n="keyframes",repeat:i=0,repeatDelay:r=0,repeatType:o="loop",...l}){this.isStopped=!1,this.hasAttemptedResolve=!1,this.createdAt=F.now(),this.options={autoplay:e,delay:s,type:n,repeat:i,repeatDelay:r,repeatType:o,...l},this.updateFinishedPromise()}calcStartTime(){return this.resolvedAt?this.resolvedAt-this.createdAt>Ml?this.resolvedAt:this.createdAt:this.createdAt}get resolved(){return!this._resolved&&!this.hasAttemptedResolve&&Va(),this._resolved}onKeyframesResolved(e,s){this.resolvedAt=F.now(),this.hasAttemptedResolve=!0;const{name:n,type:i,velocity:r,delay:o,onComplete:l,onUpdate:c,isGenerator:d}=this.options;if(!d&&!Dl(e,n,i,r))if(o)this.options.duration=0;else{c&&c(Yt(e,this.options,s)),l&&l(),this.resolveFinishedPromise();return}const u=this.initPlayback(e,s);u!==!1&&(this._resolved={keyframes:e,finalKeyframe:s,...u},this.onPostResolved())}onPostResolved(){}then(e,s){return this.currentFinishedPromise.then(e,s)}flatten(){this.options.allowFlatten&&(this.options.type="keyframes",this.options.ease="linear")}updateFinishedPromise(){this.currentFinishedPromise=new Promise(e=>{this.resolveFinishedPromise=e})}}function Ke(t,e,s){return s<0&&(s+=1),s>1&&(s-=1),s<1/6?t+(e-t)*6*s:s<1/2?e:s<2/3?t+(e-t)*(2/3-s)*6:t}function Bl({hue:t,saturation:e,lightness:s,alpha:n}){t/=360,e/=100,s/=100;let i=0,r=0,o=0;if(!e)i=r=o=s;else{const l=s<.5?s*(1+e):s+e-s*e,c=2*s-l;i=Ke(c,l,t+1/3),r=Ke(c,l,t),o=Ke(c,l,t-1/3)}return{red:Math.round(i*255),green:Math.round(r*255),blue:Math.round(o*255),alpha:n}}function Xt(t,e){return s=>s>0?e:t}const Ge=(t,e,s)=>{const n=t*t,i=s*(e*e-n)+n;return i<0?0:Math.sqrt(i)},Nl=[Ve,st,ct],Ol=t=>Nl.find(e=>e.test(t));function Gn(t){const e=Ol(t);if(yt(!!e,`'${t}' is not an animatable color. Use the equivalent color code instead.`),!e)return!1;let s=e.parse(t);return e===ct&&(s=Bl(s)),s}const Wn=(t,e)=>{const s=Gn(t),n=Gn(e);if(!s||!n)return Xt(t,e);const i={...s};return r=>(i.red=Ge(s.red,n.red,r),i.green=Ge(s.green,n.green,r),i.blue=Ge(s.blue,n.blue,r),i.alpha=D(s.alpha,n.alpha,r),st.transform(i))},Ll=(t,e)=>s=>e(t(s)),wt=(...t)=>t.reduce(Ll),We=new Set(["none","hidden"]);function Rl(t,e){return We.has(t)?s=>s<=0?t:e:s=>s>=1?e:t}function $l(t,e){return s=>D(t,e,s)}function He(t){return typeof t=="number"?$l:typeof t=="string"?le(t)?Xt:O.test(t)?Wn:Il:Array.isArray(t)?Hn:typeof t=="object"?O.test(t)?Wn:jl:Xt}function Hn(t,e){const s=[...t],n=s.length,i=t.map((r,o)=>He(r)(r,e[o]));return r=>{for(let o=0;o<n;o++)s[o]=i[o](r);return s}}function jl(t,e){const s={...t,...e},n={};for(const i in s)t[i]!==void 0&&e[i]!==void 0&&(n[i]=He(t[i])(t[i],e[i]));return i=>{for(const r in n)s[r]=n[r](i);return s}}function Fl(t,e){var s;const n=[],i={color:0,var:0,number:0};for(let r=0;r<e.values.length;r++){const o=e.types[r],l=t.indexes[o][i[o]],c=(s=t.values[l])!==null&&s!==void 0?s:0;n[r]=c,i[o]++}return n}const Il=(t,e)=>{const s=Q.createTransformer(e),n=Et(t),i=Et(e);return n.indexes.var.length===i.indexes.var.length&&n.indexes.color.length===i.indexes.color.length&&n.indexes.number.length>=i.indexes.number.length?We.has(t)&&!i.values.length||We.has(e)&&!n.values.length?Rl(t,e):wt(Hn(Fl(n,i),i.values),s):(yt(!0,`Complex values '${t}' and '${e}' too different to mix. Ensure all colors are of the same type, and that each contains the same quantity of number and color values. Falling back to instant transition.`),Xt(t,e))};function qn(t,e,s){return typeof t=="number"&&typeof e=="number"&&typeof s=="number"?D(t,e,s):He(t)(t,e)}function Yn({keyframes:t,velocity:e=0,power:s=.8,timeConstant:n=325,bounceDamping:i=10,bounceStiffness:r=500,modifyTarget:o,min:l,max:c,restDelta:d=.5,restSpeed:u}){const h=t[0],m={done:!1,value:h},f=V=>l!==void 0&&V<l||c!==void 0&&V>c,p=V=>l===void 0?c:c===void 0||Math.abs(l-V)<Math.abs(c-V)?l:c;let g=s*e;const v=h+g,y=o===void 0?v:o(v);y!==v&&(g=y-h);const S=V=>-g*Math.exp(-V/n),E=V=>y+S(V),T=V=>{const w=S(V),L=E(V);m.done=Math.abs(w)<=d,m.value=m.done?y:L};let b,_;const k=V=>{f(m.value)&&(b=V,_=Le({keyframes:[m.value,p(m.value)],velocity:xn(E,V,m.value),damping:i,stiffness:r,restDelta:d,restSpeed:u}))};return k(0),{calculatedDuration:null,next:V=>{let w=!1;return!_&&b===void 0&&(w=!0,T(V),k(V)),b!==void 0&&V>=b?_.next(V-b):(!w&&T(V),m)}}}const Ul=_t(.42,0,1,1),zl=_t(0,0,.58,1),Xn=_t(.42,0,.58,1),Zn={linear:B,easeIn:Ul,easeInOut:Xn,easeOut:zl,circIn:ze,circInOut:Un,circOut:In,backIn:Ue,backInOut:jn,backOut:$n,anticipate:Fn},Jn=t=>{if(Fe(t)){X(t.length===4,"Cubic bezier arrays must contain four numerical values.");const[e,s,n,i]=t;return _t(e,s,n,i)}else if(typeof t=="string")return X(Zn[t]!==void 0,`Invalid easing type '${t}'`),Zn[t];return t};function Kl(t,e,s){const n=[],i=s||qn,r=t.length-1;for(let o=0;o<r;o++){let l=i(t[o],t[o+1]);if(e){const c=Array.isArray(e)?e[o]||B:e;l=wt(c,l)}n.push(l)}return n}function Gl(t,e,{clamp:s=!0,ease:n,mixer:i}={}){const r=t.length;if(X(r===e.length,"Both input and output ranges must be the same length"),r===1)return()=>e[0];if(r===2&&e[0]===e[1])return()=>e[1];const o=t[0]===t[1];t[0]>t[r-1]&&(t=[...t].reverse(),e=[...e].reverse());const l=Kl(e,n,i),c=l.length,d=u=>{if(o&&u<t[0])return e[0];let h=0;if(c>1)for(;h<t.length-2&&!(u<t[h+1]);h++);const m=Vt(t[h],t[h+1],u);return l[h](m)};return s?u=>d(Z(t[0],t[r-1],u)):d}function Wl(t,e){return t.map(s=>s*e)}function Hl(t,e){return t.map(()=>e||Xn).splice(0,t.length-1)}function Pt({duration:t=300,keyframes:e,times:s,ease:n="easeInOut"}){const i=Vn(n)?n.map(Jn):Jn(n),r={done:!1,value:e[0]},o=Wl(s&&s.length===e.length?s:wn(e),t),l=Gl(o,e,{ease:Array.isArray(i)?i:Hl(e,i)});return{calculatedDuration:t,next:c=>(r.value=l(c),r.done=c>=t,r)}}const ql=t=>{const e=({timestamp:s})=>t(s);return{start:()=>P.update(e,!0),stop:()=>G(e),now:()=>M.isProcessing?M.timestamp:F.now()}},Yl={decay:Yn,inertia:Yn,tween:Pt,keyframes:Pt,spring:Le},Xl=t=>t/100;class qe extends Kn{constructor(e){super(e),this.holdTime=null,this.cancelTime=null,this.currentTime=0,this.playbackSpeed=1,this.pendingPlayState="running",this.startTime=null,this.state="idle",this.stop=()=>{if(this.resolver.cancel(),this.isStopped=!0,this.state==="idle")return;this.teardown();const{onStop:c}=this.options;c&&c()};const{name:s,motionValue:n,element:i,keyframes:r}=this.options,o=(i==null?void 0:i.KeyframeResolver)||ke,l=(c,d)=>this.onKeyframesResolved(c,d);this.resolver=new o(r,l,s,n,i),this.resolver.scheduleResolve()}flatten(){super.flatten(),this._resolved&&Object.assign(this._resolved,this.initPlayback(this._resolved.keyframes))}initPlayback(e){const{type:s="keyframes",repeat:n=0,repeatDelay:i=0,repeatType:r,velocity:o=0}=this.options,l=Ht(s)?s:Yl[s]||Pt;let c,d;process.env.NODE_ENV!=="production"&&l!==Pt&&X(e.length<=2,`Only two keyframes currently supported with spring and inertia animations. Trying to animate ${e}`),l!==Pt&&typeof e[0]!="number"&&(c=wt(Xl,qn(e[0],e[1])),e=[0,100]);const u=l({...this.options,keyframes:e});r==="mirror"&&(d=l({...this.options,keyframes:[...e].reverse(),velocity:-o})),u.calculatedDuration===null&&(u.calculatedDuration=Ne(u));const{calculatedDuration:h}=u,m=h+i,f=m*(n+1)-i;return{generator:u,mirroredGenerator:d,mapPercentToKeyframes:c,calculatedDuration:h,resolvedDuration:m,totalDuration:f}}onPostResolved(){const{autoplay:e=!0}=this.options;this.play(),this.pendingPlayState==="paused"||!e?this.pause():this.state=this.pendingPlayState}tick(e,s=!1){const{resolved:n}=this;if(!n){const{keyframes:V}=this.options;return{done:!0,value:V[V.length-1]}}const{finalKeyframe:i,generator:r,mirroredGenerator:o,mapPercentToKeyframes:l,keyframes:c,calculatedDuration:d,totalDuration:u,resolvedDuration:h}=n;if(this.startTime===null)return r.next(0);const{delay:m,repeat:f,repeatType:p,repeatDelay:g,onUpdate:v}=this.options;this.speed>0?this.startTime=Math.min(this.startTime,e):this.speed<0&&(this.startTime=Math.min(e-u/this.speed,this.startTime)),s?this.currentTime=e:this.holdTime!==null?this.currentTime=this.holdTime:this.currentTime=Math.round(e-this.startTime)*this.speed;const y=this.currentTime-m*(this.speed>=0?1:-1),S=this.speed>=0?y<0:y>u;this.currentTime=Math.max(y,0),this.state==="finished"&&this.holdTime===null&&(this.currentTime=u);let E=this.currentTime,T=r;if(f){const V=Math.min(this.currentTime,u)/h;let w=Math.floor(V),L=V%1;!L&&V>=1&&(L=1),L===1&&w--,w=Math.min(w,f+1),!!(w%2)&&(p==="reverse"?(L=1-L,g&&(L-=g/h)):p==="mirror"&&(T=o)),E=Z(0,1,L)*h}const b=S?{done:!1,value:c[0]}:T.next(E);l&&(b.value=l(b.value));let{done:_}=b;!S&&d!==null&&(_=this.speed>=0?this.currentTime>=u:this.currentTime<=0);const k=this.holdTime===null&&(this.state==="finished"||this.state==="running"&&_);return k&&i!==void 0&&(b.value=Yt(c,this.options,i)),v&&v(b.value),k&&this.finish(),b}get duration(){const{resolved:e}=this;return e?H(e.calculatedDuration):0}get time(){return H(this.currentTime)}set time(e){e=I(e),this.currentTime=e,this.holdTime!==null||this.speed===0?this.holdTime=e:this.driver&&(this.startTime=this.driver.now()-e/this.speed)}get speed(){return this.playbackSpeed}set speed(e){const s=this.playbackSpeed!==e;this.playbackSpeed=e,s&&(this.time=H(this.currentTime))}play(){if(this.resolver.isScheduled||this.resolver.resume(),!this._resolved){this.pendingPlayState="running";return}if(this.isStopped)return;const{driver:e=ql,onPlay:s,startTime:n}=this.options;this.driver||(this.driver=e(r=>this.tick(r))),s&&s();const i=this.driver.now();this.holdTime!==null?this.startTime=i-this.holdTime:this.startTime?this.state==="finished"&&(this.startTime=i):this.startTime=n??this.calcStartTime(),this.state==="finished"&&this.updateFinishedPromise(),this.cancelTime=this.startTime,this.holdTime=null,this.state="running",this.driver.start()}pause(){var e;if(!this._resolved){this.pendingPlayState="paused";return}this.state="paused",this.holdTime=(e=this.currentTime)!==null&&e!==void 0?e:0}complete(){this.state!=="running"&&this.play(),this.pendingPlayState=this.state="finished",this.holdTime=null}finish(){this.teardown(),this.state="finished";const{onComplete:e}=this.options;e&&e()}cancel(){this.cancelTime!==null&&this.tick(this.cancelTime),this.teardown(),this.updateFinishedPromise()}teardown(){this.state="idle",this.stopDriver(),this.resolveFinishedPromise(),this.updateFinishedPromise(),this.startTime=this.cancelTime=null,this.resolver.cancel()}stopDriver(){this.driver&&(this.driver.stop(),this.driver=void 0)}sample(e){return this.startTime=0,this.tick(e,!0)}}const Zl=new Set(["opacity","clipPath","filter","transform"]);function Jl(t,e,s,{delay:n=0,duration:i=300,repeat:r=0,repeatType:o="loop",ease:l="easeInOut",times:c}={}){const d={[e]:s};c&&(d.offset=c);const u=Nn(l,i);return Array.isArray(u)&&(d.easing=u),t.animate(d,{delay:n,duration:i,easing:Array.isArray(u)?"linear":u,fill:"both",iterations:r+1,direction:o==="reverse"?"alternate":"normal"})}const Ql=Be(()=>Object.hasOwnProperty.call(Element.prototype,"animate")),Zt=10,tc=2e4;function ec(t){return Ht(t.type)||t.type==="spring"||!Bn(t.ease)}function sc(t,e){const s=new qe({...e,keyframes:t,repeat:0,delay:0,isGenerator:!0});let n={done:!1,value:t[0]};const i=[];let r=0;for(;!n.done&&r<tc;)n=s.sample(r),i.push(n.value),r+=Zt;return{times:void 0,keyframes:i,duration:r-Zt,ease:"linear"}}const Qn={anticipate:Fn,backInOut:jn,circInOut:Un};function nc(t){return t in Qn}class ti extends Kn{constructor(e){super(e);const{name:s,motionValue:n,element:i,keyframes:r}=this.options;this.resolver=new ln(r,(o,l)=>this.onKeyframesResolved(o,l),s,n,i),this.resolver.scheduleResolve()}initPlayback(e,s){let{duration:n=300,times:i,ease:r,type:o,motionValue:l,name:c,startTime:d}=this.options;if(!l.owner||!l.owner.current)return!1;if(typeof r=="string"&&qt()&&nc(r)&&(r=Qn[r]),ec(this.options)){const{onComplete:h,onUpdate:m,motionValue:f,element:p,...g}=this.options,v=sc(e,g);e=v.keyframes,e.length===1&&(e[1]=e[0]),n=v.duration,i=v.times,r=v.ease,o="keyframes"}const u=Jl(l.owner.current,c,e,{...this.options,duration:n,times:i,ease:r});return u.startTime=d??this.calcStartTime(),this.pendingTimeline?(Mn(u,this.pendingTimeline),this.pendingTimeline=void 0):u.onfinish=()=>{const{onComplete:h}=this.options;l.set(Yt(e,this.options,s)),h&&h(),this.cancel(),this.resolveFinishedPromise()},{animation:u,duration:n,times:i,type:o,ease:r,keyframes:e}}get duration(){const{resolved:e}=this;if(!e)return 0;const{duration:s}=e;return H(s)}get time(){const{resolved:e}=this;if(!e)return 0;const{animation:s}=e;return H(s.currentTime||0)}set time(e){const{resolved:s}=this;if(!s)return;const{animation:n}=s;n.currentTime=I(e)}get speed(){const{resolved:e}=this;if(!e)return 1;const{animation:s}=e;return s.playbackRate}set speed(e){const{resolved:s}=this;if(!s)return;const{animation:n}=s;n.playbackRate=e}get state(){const{resolved:e}=this;if(!e)return"idle";const{animation:s}=e;return s.playState}get startTime(){const{resolved:e}=this;if(!e)return null;const{animation:s}=e;return s.startTime}attachTimeline(e){if(!this._resolved)this.pendingTimeline=e;else{const{resolved:s}=this;if(!s)return B;const{animation:n}=s;Mn(n,e)}return B}play(){if(this.isStopped)return;const{resolved:e}=this;if(!e)return;const{animation:s}=e;s.playState==="finished"&&this.updateFinishedPromise(),s.play()}pause(){const{resolved:e}=this;if(!e)return;const{animation:s}=e;s.pause()}stop(){if(this.resolver.cancel(),this.isStopped=!0,this.state==="idle")return;this.resolveFinishedPromise(),this.updateFinishedPromise();const{resolved:e}=this;if(!e)return;const{animation:s,keyframes:n,duration:i,type:r,ease:o,times:l}=e;if(s.playState==="idle"||s.playState==="finished")return;if(this.time){const{motionValue:d,onUpdate:u,onComplete:h,element:m,...f}=this.options,p=new qe({...f,keyframes:n,duration:i,type:r,ease:o,times:l,isGenerator:!0}),g=I(this.time);d.setWithVelocity(p.sample(g-Zt).value,p.sample(g).value,Zt)}const{onStop:c}=this.options;c&&c(),this.cancel()}complete(){const{resolved:e}=this;e&&e.animation.finish()}cancel(){const{resolved:e}=this;e&&e.animation.cancel()}static supports(e){const{motionValue:s,name:n,repeatDelay:i,repeatType:r,damping:o,type:l}=e;if(!s||!s.owner||!(s.owner.current instanceof HTMLElement))return!1;const{onUpdate:c,transformTemplate:d}=s.owner.getProps();return Ql()&&n&&Zl.has(n)&&!c&&!d&&!i&&r!=="mirror"&&o!==0&&l!=="inertia"}}const ic={type:"spring",stiffness:500,damping:25,restSpeed:10},oc=t=>({type:"spring",stiffness:550,damping:t===0?2*Math.sqrt(550):30,restSpeed:10}),rc={type:"keyframes",duration:.8},ac={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},lc=(t,{keyframes:e})=>e.length>2?rc:dt.has(t)?t.startsWith("scale")?oc(e[1]):ic:ac;function cc({when:t,delay:e,delayChildren:s,staggerChildren:n,staggerDirection:i,repeat:r,repeatType:o,repeatDelay:l,from:c,elapsed:d,...u}){return!!Object.keys(u).length}const Ye=(t,e,s,n={},i,r)=>o=>{const l=je(n,t)||{},c=l.delay||n.delay||0;let{elapsed:d=0}=n;d=d-I(c);let u={keyframes:Array.isArray(s)?s:[null,s],ease:"easeOut",velocity:e.getVelocity(),...l,delay:-d,onUpdate:m=>{e.set(m),l.onUpdate&&l.onUpdate(m)},onComplete:()=>{o(),l.onComplete&&l.onComplete()},name:t,motionValue:e,element:r?void 0:i};cc(l)||(u={...u,...lc(t,u)}),u.duration&&(u.duration=I(u.duration)),u.repeatDelay&&(u.repeatDelay=I(u.repeatDelay)),u.from!==void 0&&(u.keyframes[0]=u.from);let h=!1;if((u.type===!1||u.duration===0&&!u.repeatDelay)&&(u.duration=0,u.delay===0&&(h=!0)),u.allowFlatten=!l.type&&!l.ease,h&&!r&&e.get()!==void 0){const m=Yt(u.keyframes,l);if(m!==void 0)return P.update(()=>{u.onUpdate(m),u.onComplete()}),new vn([])}return!r&&ti.supports(u)?new ti(u):new qe(u)};function uc({protectedKeys:t,needsAnimating:e},s){const n=t.hasOwnProperty(s)&&e[s]!==!0;return e[s]=!1,n}function dc(t,e,{delay:s=0,transitionOverride:n,type:i}={}){var r;let{transition:o=t.getDefaultTransition(),transitionEnd:l,...c}=e;n&&(o=n);const d=[],u=i&&t.animationState&&t.animationState.getState()[i];for(const h in c){const m=t.getValue(h,(r=t.latestValues[h])!==null&&r!==void 0?r:null),f=c[h];if(f===void 0||u&&uc(u,h))continue;const p={delay:s,...je(o||{},h)};let g=!1;if(window.MotionHandoffAnimation){const y=kn(t);if(y){const S=window.MotionHandoffAnimation(y,h,P);S!==null&&(p.startTime=S,g=!0)}}El(t,h),m.start(Ye(h,m,f,t.shouldReduceMotion&&rn.has(h)?{type:!1}:p,t,g));const v=m.animation;v&&d.push(v)}return l&&Promise.all(d).then(()=>{P.update(()=>{l&&xl(t,l)})}),d}function ei(t){return t instanceof SVGElement&&t.tagName!=="svg"}function hc(t,e){return t in e}class mc extends on{constructor(){super(...arguments),this.type="object"}readValueFromInstance(e,s){if(hc(s,e)){const n=e[s];if(typeof n=="string"||typeof n=="number")return n}}getBaseTargetFromProps(){}removeValueFromRenderState(e,s){delete s.output[e]}measureInstanceViewportBox(){return C()}build(e,s){Object.assign(e.output,s)}renderInstance(e,{output:s}){Object.assign(e,s)}sortInstanceNodePosition(){return 0}}function fc(t){const e={presenceContext:null,props:{},visualState:{renderState:{transform:{},transformOrigin:{},style:{},vars:{},attrs:{}},latestValues:{}}},s=ei(t)?new yn(e):new fn(e);s.mount(t),et.set(t,s)}function pc(t){const e={presenceContext:null,props:{},visualState:{renderState:{output:{}},latestValues:{}}},s=new mc(e);s.mount(t),et.set(t,s)}function si(t,e,s){const n=N(t)?t:vt(t);return n.start(Ye("",n,e,s)),n.animation}function gc(t,e){return N(t)||typeof t=="number"||typeof t=="string"&&!$e(e)}function ni(t,e,s,n){const i=[];if(gc(t,e))i.push(si(t,$e(e)&&e.default||e,s&&(s.default||s)));else{const r=Pn(t,e,n),o=r.length;X(!!o,"No valid elements provided.");for(let l=0;l<o;l++){const c=r[l],d=c instanceof Element?fc:pc;et.has(c)||d(c);const u=et.get(c),h={...s};"delay"in h&&typeof h.delay=="function"&&(h.delay=h.delay(l,o)),i.push(...dc(u,{...e,transition:h},{}))}}return i}function yc(t,e,s){const n=[];return ul(t,e,s,{spring:Le}).forEach(({keyframes:r,transition:o},l)=>{n.push(...ni(l,r,o))}),n}function vc(t){return Array.isArray(t)&&t.some(Array.isArray)}function bc(t){function e(s,n,i){let r=[];return vc(s)?r=yc(s,n,t):r=ni(s,n,i,t),new vn(r)}return e}const xc=bc(),Sc=["initial","animate","whileInView","whileHover","whilePress","whileDrag","whileFocus","exit"];class Ec extends K{constructor(e){var s;super(e),this.animateUpdates=({controlActiveState:n,directAnimate:i,directTransition:r,controlDelay:o=0,isFallback:l,isExit:c}={})=>{const d=this.state.target;this.state.target={...this.state.baseTarget};let u={};const h={...this.state.options.transition};u=this.resolveStateAnimation({controlActiveState:n,directAnimate:i,directTransition:r});const m=this.createAnimationFactories(d,u,o),{getChildAnimations:f,childAnimations:p}=this.setupChildAnimations(u,this.state.activeStates,l);return this.executeAnimations({factories:m,getChildAnimations:f,childAnimations:p,transition:h,controlActiveState:n,isExit:c})},this.state.visualElement=Ga(this.state.options.as,{presenceContext:null,parent:(s=this.state.parent)==null?void 0:s.visualElement,props:{...this.state.options,whileTap:this.state.options.whilePress},visualState:{renderState:{transform:{},transformOrigin:{},style:{},vars:{},attrs:{}},latestValues:{...this.state.baseTarget}},reducedMotionConfig:this.state.options.motionConfig.reduceMotion}),this.state.animateUpdates=this.animateUpdates,this.state.isMounted()&&this.state.startAnimation()}updateAnimationControlsSubscription(){const{animate:e}=this.state.options;ps(e)&&(this.unmountControls=e.subscribe(this.state))}executeAnimations({factories:e,getChildAnimations:s,transition:n,controlActiveState:i,isExit:r=!1}){const o=()=>Promise.all(e.map(h=>h()).filter(Boolean)),l={...this.state.target},c=this.state.element,d=h=>{var m,f;c.dispatchEvent(xs("motionstart",l)),(f=(m=this.state.options).onAnimationStart)==null||f.call(m,l),h.then(()=>{var p,g;c.dispatchEvent(xs("motioncomplete",l,r)),(g=(p=this.state.options).onAnimationComplete)==null||g.call(p,l)}).catch(B)},u=()=>{const h=n!=null&&n.when?(n.when==="beforeChildren"?o():s()).then(()=>n.when==="beforeChildren"?s():o()):Promise.all([o(),s()]);return d(h),h};return i?u:u()}setupChildAnimations(e,s,n){var i;if(!((i=this.state.visualElement.variantChildren)!=null&&i.size)||!s)return{getChildAnimations:()=>Promise.resolve(),childAnimations:[]};const{staggerChildren:r=0,staggerDirection:o=1,delayChildren:l=0}=e||{},c=(this.state.visualElement.variantChildren.size-1)*r,d=o===1?(h=0)=>h*r:(h=0)=>c-h*r,u=Array.from(this.state.visualElement.variantChildren).map((h,m)=>{const f=l+d(m);return h.state.animateUpdates({controlActiveState:s,controlDelay:n?0:f})}).filter(Boolean);return{getChildAnimations:()=>Promise.all(u.map(h=>h==null?void 0:h())),childAnimations:u}}createAnimationFactories(e,s,n){const i=[];return Object.keys(this.state.target).forEach(r=>{var o;if(!ar(e[r],this.state.target[r]))return;(o=this.state.baseTarget)[r]??(o[r]=Dr.get(this.state.element,r));const l=this.state.target[r]==="none"&&fe(Vs[r])?Vs[r]:this.state.target[r];i.push(()=>{var c;return xc(this.state.element,{[r]:l},{...(s==null?void 0:s[r])||s,delay:(((c=s==null?void 0:s[r])==null?void 0:c.delay)||(s==null?void 0:s.delay)||0)+n})})}),i}resolveStateAnimation({controlActiveState:e,directAnimate:s,directTransition:n}){let i=this.state.options.transition,r={};const{variants:o,custom:l,transition:c,animatePresenceContext:d}=this.state.options,u=fe(l)?l:d==null?void 0:d.custom;return this.state.activeStates={...this.state.activeStates,...e},Sc.forEach(h=>{if(!this.state.activeStates[h]||ps(this.state.options[h]))return;const m=this.state.options[h];let f=fe(m)?gt(m,o,u):void 0;if(this.state.visualElement.isVariantNode){const p=gt(this.state.context[h],o,u);f=p?Object.assign(p||{},f):r}f&&(h!=="initial"&&(i=f.transition||this.state.options.transition||{}),r=Object.assign(r,f))}),s&&(r=gt(s,o,u),i=r.transition||n||c),Object.entries(r).forEach(([h,m])=>{h!=="transition"&&(this.state.target[h]=m)}),i}mount(){const{element:e}=this.state;bs.set(e,this.state),et.get(e)||(this.state.visualElement.mount(e),et.set(e,this.state.visualElement)),this.state.visualElement.state=this.state,this.updateAnimationControlsSubscription()}update(){const{animate:e}=this.state.options,{animate:s}=this.state.visualElement.prevProps||{};e!==s&&this.updateAnimationControlsSubscription()}unmount(){var e;(e=this.unmountControls)==null||e.call(this)}}const Vc={y:!1};function Tc(){return Vc.y}function ii(t,e){const s=`${e}PointerCapture`;if(t.target instanceof Element&&s in t.target&&t.pointerId!==void 0)try{t.target[s](t.pointerId)}catch{}}const oi=(t,e)=>e?t===e?!0:oi(t,e.parentElement):!1,_c=t=>t.pointerType==="mouse"?typeof t.button!="number"||t.button<=0:t.isPrimary!==!1;function ri(t,e){const s=Re(t),n=new AbortController,i={passive:!0,...e,signal:n.signal};return[s,i,()=>n.abort()]}const wc=new Set(["BUTTON","INPUT","SELECT","TEXTAREA","A"]);function Pc(t){return wc.has(t.tagName)||t.tabIndex!==-1}const At=new WeakSet;function ai(t){return e=>{e.key==="Enter"&&t(e)}}function Xe(t,e){t.dispatchEvent(new PointerEvent("pointer"+e,{isPrimary:!0,bubbles:!0}))}const Ac=(t,e)=>{const s=t.currentTarget;if(!s)return;const n=ai(()=>{if(At.has(s))return;Xe(s,"down");const i=ai(()=>{Xe(s,"up")}),r=()=>Xe(s,"cancel");s.addEventListener("keyup",i,e),s.addEventListener("blur",r,e)});s.addEventListener("keydown",n,e),s.addEventListener("blur",()=>s.removeEventListener("keydown",n),e)};function li(t){return _c(t)&&!0}function Cc(t,e,s={}){const[n,i,r]=ri(t,s),o=l=>{const c=l.currentTarget;if(!c||!li(l)||At.has(c))return;At.add(c),ii(l,"set");const d=e(c,l),u=(f,p)=>{c.removeEventListener("pointerup",h),c.removeEventListener("pointercancel",m),ii(f,"release"),!(!li(f)||!At.has(c))&&(At.delete(c),typeof d=="function"&&d(f,{success:p}))},h=f=>{(f.isTrusted?Dc(f,c instanceof Element?c.getBoundingClientRect():{left:0,top:0,right:window.innerWidth,bottom:window.innerHeight}):!1)?u(f,!1):u(f,!(c instanceof Element)||oi(c,f.target))},m=f=>{u(f,!1)};c.addEventListener("pointerup",h,i),c.addEventListener("pointercancel",m,i),c.addEventListener("lostpointercapture",m,i)};return n.forEach(l=>{l=s.useGlobalTarget?window:l;let c=!1;l instanceof HTMLElement&&(c=!0,!Pc(l)&&l.getAttribute("tabindex")===null&&(l.tabIndex=0)),l.addEventListener("pointerdown",o,i),c&&l.addEventListener("focus",d=>Ac(d,i),i)}),r}function Dc(t,e){return t.clientX<e.left||t.clientX>e.right||t.clientY<e.top||t.clientY>e.bottom}function ci(t){return{point:{x:t.pageX,y:t.pageY}}}function ui(t,e,s){const n=t.options;n.whilePress&&t.setActive("whilePress",s==="Start");const i=`onPress${s==="End"?"":s}`,r=n[i];r&&P.postRender(()=>r(e,ci(e)))}class kc extends K{isActive(){const{whilePress:e,onPress:s,onPressCancel:n,onPressStart:i}=this.state.options;return!!(e||s||n||i)}constructor(e){super(e)}mount(){this.register()}update(){const{whilePress:e,onPress:s,onPressCancel:n,onPressStart:i}=this.state.options;e||s||n||i||this.register()}register(){const e=this.state.element;!e||!this.isActive()||(this.unmount(),this.unmount=Cc(e,(s,n)=>(ui(this.state,n,"Start"),(i,{success:r})=>ui(this.state,i,r?"End":"Cancel")),{useGlobalTarget:this.state.options.globalPressTarget}))}}function di(t){return!(t.pointerType==="touch"||Tc())}function Mc(t,e,s={}){const[n,i,r]=ri(t,s),o=l=>{if(!di(l))return;const{target:c}=l,d=e(c,l);if(typeof d!="function"||!c)return;const u=h=>{di(h)&&(d(h),c.removeEventListener("pointerleave",u))};c.addEventListener("pointerleave",u,i)};return n.forEach(l=>{l.addEventListener("pointerenter",o,i)}),r}function hi(t,e,s){const n=t.options;n.whileHover&&t.setActive("whileHover",s==="Start");const i=`onHover${s}`,r=n[i];r&&P.postRender(()=>r(e,ci(e)))}class Bc extends K{isActive(){const{whileHover:e,onHoverStart:s,onHoverEnd:n}=this.state.options;return!!(e||s||n)}constructor(e){super(e)}mount(){this.register()}update(){const{whileHover:e,onHoverStart:s,onHoverEnd:n}=this.state.visualElement.prevProps;e||s||n||this.register()}register(){const e=this.state.element;!e||!this.isActive()||(this.unmount(),this.unmount=Mc(e,(s,n)=>(hi(this.state,n,"Start"),i=>{hi(this.state,i,"End")})))}}const Nc={some:0,all:1};function Oc(t,e,{root:s,margin:n,amount:i="some"}={}){const r=Re(t),o=new WeakMap,l=d=>{d.forEach(u=>{const h=o.get(u.target);if(u.isIntersecting!==!!h)if(u.isIntersecting){const m=e(u.target,u);typeof m=="function"?o.set(u.target,m):c.unobserve(u.target)}else typeof h=="function"&&(h(u),o.delete(u.target))})},c=new IntersectionObserver(l,{root:s,rootMargin:n,threshold:typeof i=="number"?i:Nc[i]});return r.forEach(d=>c.observe(d)),()=>c.disconnect()}function mi(t,e,s){const n=t.options;n.whileInView&&t.setActive("whileInView",s==="Enter");const i=`onViewport${s}`,r=n[i];r&&P.postRender(()=>r(e))}class Lc extends K{isActive(){return!!this.state.options.whileInView}constructor(e){super(e)}startObserver(){const e=this.state.element;if(!e||!this.isActive())return;this.unmount();const{once:s,...n}=this.state.options.inViewOptions||{};this.unmount=Oc(e,(i,r)=>{if(mi(this.state,r,"Enter"),!s)return o=>{mi(this.state,r,"Leave")}},n)}mount(){this.startObserver()}update(){const{props:e,prevProps:s}=this.state.visualElement;["amount","margin","root"].some(Rc(e,s))&&this.startObserver()}}function Rc({inViewOptions:t={}},{inViewOptions:e={}}={}){return s=>t[s]!==e[s]}function Jt(t,e,s,n={passive:!0}){return t.addEventListener(e,s,n),()=>t.removeEventListener(e,s)}class $c extends K{constructor(){super(...arguments),this.isActive=!1}onFocus(){let e=!1;try{e=this.state.element.matches(":focus-visible")}catch{e=!0}e&&(this.state.setActive("whileFocus",!0),this.isActive=!0)}onBlur(){this.isActive&&(this.state.setActive("whileFocus",!1),this.isActive=!1)}mount(){this.unmount=wt(Jt(this.state.element,"focus",()=>this.onFocus()),Jt(this.state.element,"blur",()=>this.onBlur()))}}const{schedule:jc}=vs(queueMicrotask,!1),Fc=(t,e)=>t.depth-e.depth;class Ic{constructor(){this.children=[],this.isDirty=!1}add(e){pe(this.children,e),this.isDirty=!0}remove(e){zt(this.children,e),this.isDirty=!0}forEach(e){this.isDirty&&this.children.sort(Fc),this.isDirty=!1,this.children.forEach(e)}}function Uc(t,e){const s=F.now(),n=({timestamp:i})=>{const r=i-s;r>=e&&(G(n),t(r-e))};return P.read(n,!0),()=>G(n)}function Ze(t){const e=N(t)?t.get():t;return gl(e)?e.toValue():e}const fi=["TopLeft","TopRight","BottomLeft","BottomRight"],zc=fi.length,pi=t=>typeof t=="string"?parseFloat(t):t,gi=t=>typeof t=="number"||x.test(t);function Kc(t,e,s,n,i,r){i?(t.opacity=D(0,s.opacity!==void 0?s.opacity:1,Gc(n)),t.opacityExit=D(e.opacity!==void 0?e.opacity:1,0,Wc(n))):r&&(t.opacity=D(e.opacity!==void 0?e.opacity:1,s.opacity!==void 0?s.opacity:1,n));for(let o=0;o<zc;o++){const l=`border${fi[o]}Radius`;let c=yi(e,l),d=yi(s,l);if(c===void 0&&d===void 0)continue;c||(c=0),d||(d=0),c===0||d===0||gi(c)===gi(d)?(t[l]=Math.max(D(pi(c),pi(d),n),0),(W.test(d)||W.test(c))&&(t[l]+="%")):t[l]=d}(e.rotate||s.rotate)&&(t.rotate=D(e.rotate||0,s.rotate||0,n))}function yi(t,e){return t[e]!==void 0?t[e]:t.borderRadius}const Gc=vi(0,.5,In),Wc=vi(.5,.95,B);function vi(t,e,s){return n=>n<t?0:n>e?1:s(Vt(t,e,n))}function bi(t,e){t.min=e.min,t.max=e.max}function R(t,e){bi(t.x,e.x),bi(t.y,e.y)}function xi(t,e){t.translate=e.translate,t.scale=e.scale,t.originPoint=e.originPoint,t.origin=e.origin}function Je(t){return t===void 0||t===1}function Qe({scale:t,scaleX:e,scaleY:s}){return!Je(t)||!Je(e)||!Je(s)}function ot(t){return Qe(t)||Si(t)||t.z||t.rotate||t.rotateX||t.rotateY||t.skewX||t.skewY}function Si(t){return Ei(t.x)||Ei(t.y)}function Ei(t){return t&&t!=="0%"}function Qt(t,e,s){const n=t-s,i=e*n;return s+i}function Vi(t,e,s,n,i){return i!==void 0&&(t=Qt(t,i,n)),Qt(t,s,n)+e}function ts(t,e=0,s=1,n,i){t.min=Vi(t.min,e,s,n,i),t.max=Vi(t.max,e,s,n,i)}function Ti(t,{x:e,y:s}){ts(t.x,e.translate,e.scale,e.originPoint),ts(t.y,s.translate,s.scale,s.originPoint)}const _i=.999999999999,wi=1.0000000000001;function Hc(t,e,s,n=!1){const i=s.length;if(!i)return;e.x=e.y=1;let r,o;for(let l=0;l<i;l++){r=s[l],o=r.projectionDelta;const{visualElement:c}=r.options;c&&c.props.style&&c.props.style.display==="contents"||(n&&r.options.layoutScroll&&r.scroll&&r!==r.root&&mt(t,{x:-r.scroll.offset.x,y:-r.scroll.offset.y}),o&&(e.x*=o.x.scale,e.y*=o.y.scale,Ti(t,o)),n&&ot(r.latestValues)&&mt(t,r.latestValues))}e.x<wi&&e.x>_i&&(e.x=1),e.y<wi&&e.y>_i&&(e.y=1)}function te(t,e){t.min=t.min+e,t.max=t.max+e}function Pi(t,e,s,n,i=.5){const r=D(t.min,t.max,i);ts(t,e,s,r,n)}function mt(t,e){Pi(t.x,e.x,e.scaleX,e.scale,e.originX),Pi(t.y,e.y,e.scaleY,e.scale,e.originY)}const Ai=1e-4,qc=1-Ai,Yc=1+Ai,Ci=.01,Xc=0-Ci,Zc=0+Ci;function $(t){return t.max-t.min}function Jc(t,e,s){return Math.abs(t-e)<=s}function Di(t,e,s,n=.5){t.origin=n,t.originPoint=D(e.min,e.max,t.origin),t.scale=$(s)/$(e),t.translate=D(s.min,s.max,t.origin)-t.originPoint,(t.scale>=qc&&t.scale<=Yc||isNaN(t.scale))&&(t.scale=1),(t.translate>=Xc&&t.translate<=Zc||isNaN(t.translate))&&(t.translate=0)}function Ct(t,e,s,n){Di(t.x,e.x,s.x,n?n.originX:void 0),Di(t.y,e.y,s.y,n?n.originY:void 0)}function ki(t,e,s){t.min=s.min+e.min,t.max=t.min+$(e)}function Qc(t,e,s){ki(t.x,e.x,s.x),ki(t.y,e.y,s.y)}function Mi(t,e,s){t.min=e.min-s.min,t.max=t.min+$(e)}function Dt(t,e,s){Mi(t.x,e.x,s.x),Mi(t.y,e.y,s.y)}function Bi(t,e,s,n,i){return t-=e,t=Qt(t,1/s,n),i!==void 0&&(t=Qt(t,1/i,n)),t}function tu(t,e=0,s=1,n=.5,i,r=t,o=t){if(W.test(e)&&(e=parseFloat(e),e=D(o.min,o.max,e/100)-o.min),typeof e!="number")return;let l=D(r.min,r.max,n);t===r&&(l-=e),t.min=Bi(t.min,e,s,l,i),t.max=Bi(t.max,e,s,l,i)}function Ni(t,e,[s,n,i],r,o){tu(t,e[s],e[n],e[i],e.scale,r,o)}const eu=["x","scaleX","originX"],su=["y","scaleY","originY"];function Oi(t,e,s,n){Ni(t.x,e,eu,s?s.x:void 0,n?n.x:void 0),Ni(t.y,e,su,s?s.y:void 0,n?n.y:void 0)}function Li(t){return t.translate===0&&t.scale===1}function Ri(t){return Li(t.x)&&Li(t.y)}function $i(t,e){return t.min===e.min&&t.max===e.max}function nu(t,e){return $i(t.x,e.x)&&$i(t.y,e.y)}function ji(t,e){return Math.round(t.min)===Math.round(e.min)&&Math.round(t.max)===Math.round(e.max)}function Fi(t,e){return ji(t.x,e.x)&&ji(t.y,e.y)}function Ii(t){return $(t.x)/$(t.y)}function Ui(t,e){return t.translate===e.translate&&t.scale===e.scale&&t.originPoint===e.originPoint}class iu{constructor(){this.members=[]}add(e){pe(this.members,e),e.scheduleRender()}remove(e){if(zt(this.members,e),e===this.prevLead&&(this.prevLead=void 0),e===this.lead){const s=this.members[this.members.length-1];s&&this.promote(s)}}relegate(e){const s=this.members.findIndex(i=>e===i);if(s===0)return!1;let n;for(let i=s;i>=0;i--){const r=this.members[i];if(r.isPresent!==!1){n=r;break}}return n?(this.promote(n),!0):!1}promote(e,s){const n=this.lead;if(e!==n&&(this.prevLead=n,this.lead=e,e.show(),n)){n.instance&&n.scheduleRender(),e.scheduleRender(),e.resumeFrom=n,s&&(e.resumeFrom.preserveOpacity=!0),n.snapshot&&(e.snapshot=n.snapshot,e.snapshot.latestValues=n.animationValues||n.latestValues),e.root&&e.root.isUpdating&&(e.isLayoutDirty=!0);const{crossfade:i}=e.options;i===!1&&n.hide()}}exitAnimationComplete(){this.members.forEach(e=>{const{options:s,resumingFrom:n}=e;s.onExitComplete&&s.onExitComplete(),n&&n.options.onExitComplete&&n.options.onExitComplete()})}scheduleRender(){this.members.forEach(e=>{e.instance&&e.scheduleRender(!1)})}removeLeadSnapshot(){this.lead&&this.lead.snapshot&&(this.lead.snapshot=void 0)}}function ou(t,e,s){let n="";const i=t.x.translate/e.x,r=t.y.translate/e.y,o=(s==null?void 0:s.z)||0;if((i||r||o)&&(n=`translate3d(${i}px, ${r}px, ${o}px) `),(e.x!==1||e.y!==1)&&(n+=`scale(${1/e.x}, ${1/e.y}) `),s){const{transformPerspective:d,rotate:u,rotateX:h,rotateY:m,skewX:f,skewY:p}=s;d&&(n=`perspective(${d}px) ${n}`),u&&(n+=`rotate(${u}deg) `),h&&(n+=`rotateX(${h}deg) `),m&&(n+=`rotateY(${m}deg) `),f&&(n+=`skewX(${f}deg) `),p&&(n+=`skewY(${p}deg) `)}const l=t.x.scale*e.x,c=t.y.scale*e.y;return(l!==1||c!==1)&&(n+=`scale(${l}, ${c})`),n||"none"}function zi(t){return[t("x"),t("y")]}const ee={hasAnimatedSinceResize:!0,hasEverUpdated:!1},es=["","X","Y","Z"],ru={visibility:"hidden"},Ki=1e3;let au=0;function ss(t,e,s,n){const{latestValues:i}=e;i[t]&&(s[t]=i[t],e.setStaticValue(t,0),n&&(n[t]=0))}function Gi(t){if(t.hasCheckedOptimisedAppear=!0,t.root===t)return;const{visualElement:e}=t.options;if(!e)return;const s=kn(e);if(window.MotionHasOptimisedAnimation(s,"transform")){const{layout:i,layoutId:r}=t.options;window.MotionCancelOptimisedAnimation(s,"transform",P,!(i||r))}const{parent:n}=t;n&&!n.hasCheckedOptimisedAppear&&Gi(n)}function Wi({attachResizeListener:t,defaultParent:e,measureScroll:s,checkIsScrollRoot:n,resetTransform:i}){return class{constructor(o={},l=e==null?void 0:e()){this.id=au++,this.animationId=0,this.children=new Set,this.options={},this.isTreeAnimating=!1,this.isAnimationBlocked=!1,this.isLayoutDirty=!1,this.isProjectionDirty=!1,this.isSharedProjectionDirty=!1,this.isTransformDirty=!1,this.updateManuallyBlocked=!1,this.updateBlockedByResize=!1,this.isUpdating=!1,this.isSVG=!1,this.needsReset=!1,this.shouldResetTransform=!1,this.hasCheckedOptimisedAppear=!1,this.treeScale={x:1,y:1},this.eventHandlers=new Map,this.hasTreeAnimated=!1,this.updateScheduled=!1,this.scheduleUpdate=()=>this.update(),this.projectionUpdateScheduled=!1,this.checkUpdateFailed=()=>{this.isUpdating&&(this.isUpdating=!1,this.clearAllSnapshots())},this.updateProjection=()=>{this.projectionUpdateScheduled=!1,this.nodes.forEach(uu),this.nodes.forEach(pu),this.nodes.forEach(gu),this.nodes.forEach(du)},this.resolvedRelativeTargetAt=0,this.hasProjected=!1,this.isVisible=!0,this.animationProgress=0,this.sharedNodes=new Map,this.latestValues=o,this.root=l?l.root||l:this,this.path=l?[...l.path,l]:[],this.parent=l,this.depth=l?l.depth+1:0;for(let c=0;c<this.path.length;c++)this.path[c].shouldResetTransform=!0;this.root===this&&(this.nodes=new Ic)}addEventListener(o,l){return this.eventHandlers.has(o)||this.eventHandlers.set(o,new ge),this.eventHandlers.get(o).add(l)}notifyListeners(o,...l){const c=this.eventHandlers.get(o);c&&c.notify(...l)}hasListeners(o){return this.eventHandlers.has(o)}mount(o,l=this.root.hasTreeAnimated){if(this.instance)return;this.isSVG=ei(o),this.instance=o;const{layoutId:c,layout:d,visualElement:u}=this.options;if(u&&!u.current&&u.mount(o),this.root.nodes.add(this),this.parent&&this.parent.children.add(this),l&&(d||c)&&(this.isLayoutDirty=!0),t){let h;const m=()=>this.root.updateBlockedByResize=!1;t(o,()=>{this.root.updateBlockedByResize=!0,h&&h(),h=Uc(m,250),ee.hasAnimatedSinceResize&&(ee.hasAnimatedSinceResize=!1,this.nodes.forEach(qi))})}c&&this.root.registerSharedNode(c,this),this.options.animate!==!1&&u&&(c||d)&&this.addEventListener("didUpdate",({delta:h,hasLayoutChanged:m,hasRelativeLayoutChanged:f,layout:p})=>{if(this.isTreeAnimationBlocked()){this.target=void 0,this.relativeTarget=void 0;return}const g=this.options.transition||u.getDefaultTransition()||Su,{onLayoutAnimationStart:v,onLayoutAnimationComplete:y}=u.getProps(),S=!this.targetLayout||!Fi(this.targetLayout,p),E=!m&&f;if(this.options.layoutRoot||this.resumeFrom||E||m&&(S||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0),this.setAnimationOrigin(h,E);const T={...je(g,"layout"),onPlay:v,onComplete:y};(u.shouldReduceMotion||this.options.layoutRoot)&&(T.delay=0,T.type=!1),this.startAnimation(T)}else m||qi(this),this.isLead()&&this.options.onExitComplete&&this.options.onExitComplete();this.targetLayout=p})}unmount(){this.options.layoutId&&this.willUpdate(),this.root.nodes.remove(this);const o=this.getStack();o&&o.remove(this),this.parent&&this.parent.children.delete(this),this.instance=void 0,G(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(yu),this.animationId++)}getTransformTemplate(){const{visualElement:o}=this.options;return o&&o.getProps().transformTemplate}willUpdate(o=!0){if(this.root.hasTreeAnimated=!0,this.root.isUpdateBlocked()){this.options.onExitComplete&&this.options.onExitComplete();return}if(window.MotionCancelOptimisedAnimation&&!this.hasCheckedOptimisedAppear&&Gi(this),!this.root.isUpdating&&this.root.startUpdate(),this.isLayoutDirty)return;this.isLayoutDirty=!0;for(let u=0;u<this.path.length;u++){const h=this.path[u];h.shouldResetTransform=!0,h.updateScroll("snapshot"),h.options.layoutRoot&&h.willUpdate(!1)}const{layoutId:l,layout:c}=this.options;if(l===void 0&&!c)return;const d=this.getTransformTemplate();this.prevTransformTemplateValue=d?d(this.latestValues,""):void 0,this.updateSnapshot(),o&&this.notifyListeners("willUpdate")}update(){if(this.updateScheduled=!1,this.isUpdateBlocked()){this.unblockUpdate(),this.clearAllSnapshots(),this.nodes.forEach(Hi);return}this.isUpdating||this.nodes.forEach(mu),this.isUpdating=!1,this.nodes.forEach(fu),this.nodes.forEach(lu),this.nodes.forEach(cu),this.clearAllSnapshots();const l=F.now();M.delta=Z(0,1e3/60,l-M.timestamp),M.timestamp=l,M.isProcessing=!0,ue.update.process(M),ue.preRender.process(M),ue.render.process(M),M.isProcessing=!1}didUpdate(){this.updateScheduled||(this.updateScheduled=!0,jc.read(this.scheduleUpdate))}clearAllSnapshots(){this.nodes.forEach(hu),this.sharedNodes.forEach(vu)}scheduleUpdateProjection(){this.projectionUpdateScheduled||(this.projectionUpdateScheduled=!0,P.preRender(this.updateProjection,!1,!0))}scheduleCheckAfterUnmount(){P.postRender(()=>{this.isLayoutDirty?this.root.didUpdate():this.root.checkUpdateFailed()})}updateSnapshot(){this.snapshot||!this.instance||(this.snapshot=this.measure(),this.snapshot&&!$(this.snapshot.measuredBox.x)&&!$(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 c=0;c<this.path.length;c++)this.path[c].updateScroll();const o=this.layout;this.layout=this.measure(!1),this.layoutCorrected=C(),this.isLayoutDirty=!1,this.projectionDelta=void 0,this.notifyListeners("measure",this.layout.layoutBox);const{visualElement:l}=this.options;l&&l.notify("LayoutMeasure",this.layout.layoutBox,o?o.layoutBox:void 0)}updateScroll(o="measure"){let l=!!(this.options.layoutScroll&&this.instance);if(this.scroll&&this.scroll.animationId===this.root.animationId&&this.scroll.phase===o&&(l=!1),l){const c=n(this.instance);this.scroll={animationId:this.root.animationId,phase:o,isRoot:c,offset:s(this.instance),wasRoot:this.scroll?this.scroll.isRoot:c}}}resetTransform(){if(!i)return;const o=this.isLayoutDirty||this.shouldResetTransform||this.options.alwaysMeasureLayout,l=this.projectionDelta&&!Ri(this.projectionDelta),c=this.getTransformTemplate(),d=c?c(this.latestValues,""):void 0,u=d!==this.prevTransformTemplateValue;o&&(l||ot(this.latestValues)||u)&&(i(this.instance,d),this.shouldResetTransform=!1,this.scheduleRender())}measure(o=!0){const l=this.measurePageBox();let c=this.removeElementScroll(l);return o&&(c=this.removeTransform(c)),Eu(c),{animationId:this.root.animationId,measuredBox:l,layoutBox:c,latestValues:{},source:this.id}}measurePageBox(){var o;const{visualElement:l}=this.options;if(!l)return C();const c=l.measureViewportBox();if(!(((o=this.scroll)===null||o===void 0?void 0:o.wasRoot)||this.path.some(Vu))){const{scroll:u}=this.root;u&&(te(c.x,u.offset.x),te(c.y,u.offset.y))}return c}removeElementScroll(o){var l;const c=C();if(R(c,o),!((l=this.scroll)===null||l===void 0)&&l.wasRoot)return c;for(let d=0;d<this.path.length;d++){const u=this.path[d],{scroll:h,options:m}=u;u!==this.root&&h&&m.layoutScroll&&(h.wasRoot&&R(c,o),te(c.x,h.offset.x),te(c.y,h.offset.y))}return c}applyTransform(o,l=!1){const c=C();R(c,o);for(let d=0;d<this.path.length;d++){const u=this.path[d];!l&&u.options.layoutScroll&&u.scroll&&u!==u.root&&mt(c,{x:-u.scroll.offset.x,y:-u.scroll.offset.y}),ot(u.latestValues)&&mt(c,u.latestValues)}return ot(this.latestValues)&&mt(c,this.latestValues),c}removeTransform(o){const l=C();R(l,o);for(let c=0;c<this.path.length;c++){const d=this.path[c];if(!d.instance||!ot(d.latestValues))continue;Qe(d.latestValues)&&d.updateSnapshot();const u=C(),h=d.measurePageBox();R(u,h),Oi(l,d.latestValues,d.snapshot?d.snapshot.layoutBox:void 0,u)}return ot(this.latestValues)&&Oi(l,this.latestValues),l}setTargetDelta(o){this.targetDelta=o,this.root.scheduleUpdateProjection(),this.isProjectionDirty=!0}setOptions(o){this.options={...this.options,...o,crossfade:o.crossfade!==void 0?o.crossfade:!0}}clearMeasurements(){this.scroll=void 0,this.layout=void 0,this.snapshot=void 0,this.prevTransformTemplateValue=void 0,this.targetDelta=void 0,this.target=void 0,this.isLayoutDirty=!1}forceRelativeParentToResolveTarget(){this.relativeParent&&this.relativeParent.resolvedRelativeTargetAt!==M.timestamp&&this.relativeParent.resolveTargetDelta(!0)}resolveTargetDelta(o=!1){var l;const c=this.getLead();this.isProjectionDirty||(this.isProjectionDirty=c.isProjectionDirty),this.isTransformDirty||(this.isTransformDirty=c.isTransformDirty),this.isSharedProjectionDirty||(this.isSharedProjectionDirty=c.isSharedProjectionDirty);const d=!!this.resumingFrom||this!==c;if(!(o||d&&this.isSharedProjectionDirty||this.isProjectionDirty||!((l=this.parent)===null||l===void 0)&&l.isProjectionDirty||this.attemptToResolveRelativeTarget||this.root.updateBlockedByResize))return;const{layout:h,layoutId:m}=this.options;if(!(!this.layout||!(h||m))){if(this.resolvedRelativeTargetAt=M.timestamp,!this.targetDelta&&!this.relativeTarget){const f=this.getClosestProjectingParent();f&&f.layout&&this.animationProgress!==1?(this.relativeParent=f,this.forceRelativeParentToResolveTarget(),this.relativeTarget=C(),this.relativeTargetOrigin=C(),Dt(this.relativeTargetOrigin,this.layout.layoutBox,f.layout.layoutBox),R(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}if(!(!this.relativeTarget&&!this.targetDelta)&&(this.target||(this.target=C(),this.targetWithTransforms=C()),this.relativeTarget&&this.relativeTargetOrigin&&this.relativeParent&&this.relativeParent.target?(this.forceRelativeParentToResolveTarget(),Qc(this.target,this.relativeTarget,this.relativeParent.target)):this.targetDelta?(this.resumingFrom?this.target=this.applyTransform(this.layout.layoutBox):R(this.target,this.layout.layoutBox),Ti(this.target,this.targetDelta)):R(this.target,this.layout.layoutBox),this.attemptToResolveRelativeTarget)){this.attemptToResolveRelativeTarget=!1;const f=this.getClosestProjectingParent();f&&!!f.resumingFrom==!!this.resumingFrom&&!f.options.layoutScroll&&f.target&&this.animationProgress!==1?(this.relativeParent=f,this.forceRelativeParentToResolveTarget(),this.relativeTarget=C(),this.relativeTargetOrigin=C(),Dt(this.relativeTargetOrigin,this.target,f.target),R(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}}}getClosestProjectingParent(){if(!(!this.parent||Qe(this.parent.latestValues)||Si(this.parent.latestValues)))return this.parent.isProjecting()?this.parent:this.parent.getClosestProjectingParent()}isProjecting(){return!!((this.relativeTarget||this.targetDelta||this.options.layoutRoot)&&this.layout)}calcProjection(){var o;const l=this.getLead(),c=!!this.resumingFrom||this!==l;let d=!0;if((this.isProjectionDirty||!((o=this.parent)===null||o===void 0)&&o.isProjectionDirty)&&(d=!1),c&&(this.isSharedProjectionDirty||this.isTransformDirty)&&(d=!1),this.resolvedRelativeTargetAt===M.timestamp&&(d=!1),d)return;const{layout:u,layoutId:h}=this.options;if(this.isTreeAnimating=!!(this.parent&&this.parent.isTreeAnimating||this.currentAnimation||this.pendingAnimation),this.isTreeAnimating||(this.targetDelta=this.relativeTarget=void 0),!this.layout||!(u||h))return;R(this.layoutCorrected,this.layout.layoutBox);const m=this.treeScale.x,f=this.treeScale.y;Hc(this.layoutCorrected,this.treeScale,this.path,c),l.layout&&!l.target&&(this.treeScale.x!==1||this.treeScale.y!==1)&&(l.target=l.layout.layoutBox,l.targetWithTransforms=C());const{target:p}=l;if(!p){this.prevProjectionDelta&&(this.createProjectionDeltas(),this.scheduleRender());return}!this.projectionDelta||!this.prevProjectionDelta?this.createProjectionDeltas():(xi(this.prevProjectionDelta.x,this.projectionDelta.x),xi(this.prevProjectionDelta.y,this.projectionDelta.y)),Ct(this.projectionDelta,this.layoutCorrected,p,this.latestValues),(this.treeScale.x!==m||this.treeScale.y!==f||!Ui(this.projectionDelta.x,this.prevProjectionDelta.x)||!Ui(this.projectionDelta.y,this.prevProjectionDelta.y))&&(this.hasProjected=!0,this.scheduleRender(),this.notifyListeners("projectionUpdate",p))}hide(){this.isVisible=!1}show(){this.isVisible=!0}scheduleRender(o=!0){var l;if((l=this.options.visualElement)===null||l===void 0||l.scheduleRender(),o){const c=this.getStack();c&&c.scheduleRender()}this.resumingFrom&&!this.resumingFrom.instance&&(this.resumingFrom=void 0)}createProjectionDeltas(){this.prevProjectionDelta=at(),this.projectionDelta=at(),this.projectionDeltaWithTransform=at()}setAnimationOrigin(o,l=!1){const c=this.snapshot,d=c?c.latestValues:{},u={...this.latestValues},h=at();(!this.relativeParent||!this.relativeParent.options.layoutRoot)&&(this.relativeTarget=this.relativeTargetOrigin=void 0),this.attemptToResolveRelativeTarget=!l;const m=C(),f=c?c.source:void 0,p=this.layout?this.layout.source:void 0,g=f!==p,v=this.getStack(),y=!v||v.members.length<=1,S=!!(g&&!y&&this.options.crossfade===!0&&!this.path.some(xu));this.animationProgress=0;let E;this.mixTargetDelta=T=>{const b=T/1e3;Yi(h.x,o.x,b),Yi(h.y,o.y,b),this.setTargetDelta(h),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout&&(Dt(m,this.layout.layoutBox,this.relativeParent.layout.layoutBox),bu(this.relativeTarget,this.relativeTargetOrigin,m,b),E&&nu(this.relativeTarget,E)&&(this.isProjectionDirty=!1),E||(E=C()),R(E,this.relativeTarget)),g&&(this.animationValues=u,Kc(u,d,this.latestValues,b,S,y)),this.root.scheduleUpdateProjection(),this.scheduleRender(),this.animationProgress=b},this.mixTargetDelta(this.options.layoutRoot?1e3:0)}startAnimation(o){this.notifyListeners("animationStart"),this.currentAnimation&&this.currentAnimation.stop(),this.resumingFrom&&this.resumingFrom.currentAnimation&&this.resumingFrom.currentAnimation.stop(),this.pendingAnimation&&(G(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=P.update(()=>{ee.hasAnimatedSinceResize=!0,this.currentAnimation=si(0,Ki,{...o,onUpdate:l=>{this.mixTargetDelta(l),o.onUpdate&&o.onUpdate(l)},onStop:()=>{},onComplete:()=>{o.onComplete&&o.onComplete(),this.completeAnimation()}}),this.resumingFrom&&(this.resumingFrom.currentAnimation=this.currentAnimation),this.pendingAnimation=void 0})}completeAnimation(){this.resumingFrom&&(this.resumingFrom.currentAnimation=void 0,this.resumingFrom.preserveOpacity=void 0);const o=this.getStack();o&&o.exitAnimationComplete(),this.resumingFrom=this.currentAnimation=this.animationValues=void 0,this.notifyListeners("animationComplete")}finishAnimation(){this.currentAnimation&&(this.mixTargetDelta&&this.mixTargetDelta(Ki),this.currentAnimation.stop()),this.completeAnimation()}applyTransformsToTarget(){const o=this.getLead();let{targetWithTransforms:l,target:c,layout:d,latestValues:u}=o;if(!(!l||!c||!d)){if(this!==o&&this.layout&&d&&to(this.options.animationType,this.layout.layoutBox,d.layoutBox)){c=this.target||C();const h=$(this.layout.layoutBox.x);c.x.min=o.target.x.min,c.x.max=c.x.min+h;const m=$(this.layout.layoutBox.y);c.y.min=o.target.y.min,c.y.max=c.y.min+m}R(l,c),mt(l,u),Ct(this.projectionDeltaWithTransform,this.layoutCorrected,l,u)}}registerSharedNode(o,l){this.sharedNodes.has(o)||this.sharedNodes.set(o,new iu),this.sharedNodes.get(o).add(l);const d=l.options.initialPromotionConfig;l.promote({transition:d?d.transition:void 0,preserveFollowOpacity:d&&d.shouldPreserveFollowOpacity?d.shouldPreserveFollowOpacity(l):void 0})}isLead(){const o=this.getStack();return o?o.lead===this:!0}getLead(){var o;const{layoutId:l}=this.options;return l?((o=this.getStack())===null||o===void 0?void 0:o.lead)||this:this}getPrevLead(){var o;const{layoutId:l}=this.options;return l?(o=this.getStack())===null||o===void 0?void 0:o.prevLead:void 0}getStack(){const{layoutId:o}=this.options;if(o)return this.root.sharedNodes.get(o)}promote({needsReset:o,transition:l,preserveFollowOpacity:c}={}){const d=this.getStack();d&&d.promote(this,c),o&&(this.projectionDelta=void 0,this.needsReset=!0),l&&this.setOptions({transition:l})}relegate(){const o=this.getStack();return o?o.relegate(this):!1}resetSkewAndRotation(){const{visualElement:o}=this.options;if(!o)return;let l=!1;const{latestValues:c}=o;if((c.z||c.rotate||c.rotateX||c.rotateY||c.rotateZ||c.skewX||c.skewY)&&(l=!0),!l)return;const d={};c.z&&ss("z",o,d,this.animationValues);for(let u=0;u<es.length;u++)ss(`rotate${es[u]}`,o,d,this.animationValues),ss(`skew${es[u]}`,o,d,this.animationValues);o.render();for(const u in d)o.setStaticValue(u,d[u]),this.animationValues&&(this.animationValues[u]=d[u]);o.scheduleRender()}getProjectionStyles(o){var l,c;if(!this.instance||this.isSVG)return;if(!this.isVisible)return ru;const d={visibility:""},u=this.getTransformTemplate();if(this.needsReset)return this.needsReset=!1,d.opacity="",d.pointerEvents=Ze(o==null?void 0:o.pointerEvents)||"",d.transform=u?u(this.latestValues,""):"none",d;const h=this.getLead();if(!this.projectionDelta||!this.layout||!h.target){const g={};return this.options.layoutId&&(g.opacity=this.latestValues.opacity!==void 0?this.latestValues.opacity:1,g.pointerEvents=Ze(o==null?void 0:o.pointerEvents)||""),this.hasProjected&&!ot(this.latestValues)&&(g.transform=u?u({},""):"none",this.hasProjected=!1),g}const m=h.animationValues||h.latestValues;this.applyTransformsToTarget(),d.transform=ou(this.projectionDeltaWithTransform,this.treeScale,m),u&&(d.transform=u(m,d.transform));const{x:f,y:p}=this.projectionDelta;d.transformOrigin=`${f.origin*100}% ${p.origin*100}% 0`,h.animationValues?d.opacity=h===this?(c=(l=m.opacity)!==null&&l!==void 0?l:this.latestValues.opacity)!==null&&c!==void 0?c:1:this.preserveOpacity?this.latestValues.opacity:m.opacityExit:d.opacity=h===this?m.opacity!==void 0?m.opacity:"":m.opacityExit!==void 0?m.opacityExit:0;for(const g in ft){if(m[g]===void 0)continue;const{correct:v,applyTo:y,isCSSVariable:S}=ft[g],E=d.transform==="none"?m[g]:v(m[g],h);if(y){const T=y.length;for(let b=0;b<T;b++)d[y[b]]=E}else S?this.options.visualElement.renderState.vars[g]=E:d[g]=E}return this.options.layoutId&&(d.pointerEvents=h===this?Ze(o==null?void 0:o.pointerEvents)||"":"none"),d}clearSnapshot(){this.resumeFrom=this.snapshot=void 0}resetTree(){this.root.nodes.forEach(o=>{var l;return(l=o.currentAnimation)===null||l===void 0?void 0:l.stop()}),this.root.nodes.forEach(Hi),this.root.sharedNodes.clear()}}}function lu(t){t.updateLayout()}function cu(t){var e;const s=((e=t.resumeFrom)===null||e===void 0?void 0:e.snapshot)||t.snapshot;if(t.isLead()&&t.layout&&s&&t.hasListeners("didUpdate")){const{layoutBox:n,measuredBox:i}=t.layout,{animationType:r}=t.options,o=s.source!==t.layout.source;r==="size"?zi(h=>{const m=o?s.measuredBox[h]:s.layoutBox[h],f=$(m);m.min=n[h].min,m.max=m.min+f}):to(r,s.layoutBox,n)&&zi(h=>{const m=o?s.measuredBox[h]:s.layoutBox[h],f=$(n[h]);m.max=m.min+f,t.relativeTarget&&!t.currentAnimation&&(t.isProjectionDirty=!0,t.relativeTarget[h].max=t.relativeTarget[h].min+f)});const l=at();Ct(l,n,s.layoutBox);const c=at();o?Ct(c,t.applyTransform(i,!0),s.measuredBox):Ct(c,n,s.layoutBox);const d=!Ri(l);let u=!1;if(!t.resumeFrom){const h=t.getClosestProjectingParent();if(h&&!h.resumeFrom){const{snapshot:m,layout:f}=h;if(m&&f){const p=C();Dt(p,s.layoutBox,m.layoutBox);const g=C();Dt(g,n,f.layoutBox),Fi(p,g)||(u=!0),h.options.layoutRoot&&(t.relativeTarget=g,t.relativeTargetOrigin=p,t.relativeParent=h)}}}t.notifyListeners("didUpdate",{layout:n,snapshot:s,delta:c,layoutDelta:l,hasLayoutChanged:d,hasRelativeLayoutChanged:u})}else if(t.isLead()){const{onExitComplete:n}=t.options;n&&n()}t.options.transition=void 0}function uu(t){t.parent&&(t.isProjecting()||(t.isProjectionDirty=t.parent.isProjectionDirty),t.isSharedProjectionDirty||(t.isSharedProjectionDirty=!!(t.isProjectionDirty||t.parent.isProjectionDirty||t.parent.isSharedProjectionDirty)),t.isTransformDirty||(t.isTransformDirty=t.parent.isTransformDirty))}function du(t){t.isProjectionDirty=t.isSharedProjectionDirty=t.isTransformDirty=!1}function hu(t){t.clearSnapshot()}function Hi(t){t.clearMeasurements()}function mu(t){t.isLayoutDirty=!1}function fu(t){const{visualElement:e}=t.options;e&&e.getProps().onBeforeLayoutMeasure&&e.notify("BeforeLayoutMeasure"),t.resetTransform()}function qi(t){t.finishAnimation(),t.targetDelta=t.relativeTarget=t.target=void 0,t.isProjectionDirty=!0}function pu(t){t.resolveTargetDelta()}function gu(t){t.calcProjection()}function yu(t){t.resetSkewAndRotation()}function vu(t){t.removeLeadSnapshot()}function Yi(t,e,s){t.translate=D(e.translate,0,s),t.scale=D(e.scale,1,s),t.origin=e.origin,t.originPoint=e.originPoint}function Xi(t,e,s,n){t.min=D(e.min,s.min,n),t.max=D(e.max,s.max,n)}function bu(t,e,s,n){Xi(t.x,e.x,s.x,n),Xi(t.y,e.y,s.y,n)}function xu(t){return t.animationValues&&t.animationValues.opacityExit!==void 0}const Su={duration:.45,ease:[.4,0,.1,1]},Zi=t=>typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().includes(t),Ji=Zi("applewebkit/")&&!Zi("chrome/")?Math.round:B;function Qi(t){t.min=Ji(t.min),t.max=Ji(t.max)}function Eu(t){Qi(t.x),Qi(t.y)}function to(t,e,s){return t==="position"||t==="preserve-aspect"&&!Jc(Ii(e),Ii(s),.2)}function Vu(t){var e;return t!==t.root&&((e=t.scroll)===null||e===void 0?void 0:e.wasRoot)}function Tu(t,e,s,n={passive:!0}){return t.addEventListener(e,s,n),()=>t.removeEventListener(e,s)}const _u=Wi({attachResizeListener:(t,e)=>Tu(t,"resize",e),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body.scrollLeft,y:document.documentElement.scrollTop||document.body.scrollTop}),checkIsScrollRoot:()=>!0}),ns={current:void 0},wu=Wi({measureScroll:t=>({x:t.scrollLeft,y:t.scrollTop}),defaultParent:()=>{if(!ns.current){const t=new _u({});t.mount(window),t.setOptions({layoutScroll:!0}),ns.current=t}return ns.current},resetTransform:(t,e)=>{t.style.transform=e!==void 0?e:"none"},checkIsScrollRoot:t=>window.getComputedStyle(t).position==="fixed"});function eo(t){if(t)return t.options.allowProjection!==!1?t.projection:eo(t.parent)}function so(t,e){return e.max===e.min?0:t/(e.max-e.min)*100}const kt={correct:(t,e)=>{if(!e.target)return t;if(typeof t=="string")if(x.test(t))t=parseFloat(t);else return t;const s=so(t,e.target.x),n=so(t,e.target.y);return`${s}% ${n}%`}},Pu={correct:(t,{treeScale:e,projectionDelta:s})=>{const n=t,i=Q.parse(t);if(i.length>5)return n;const r=Q.createTransformer(t),o=typeof i[0]!="number"?1:0,l=s.x.scale*e.x,c=s.y.scale*e.y;i[0+o]/=l,i[1+o]/=c;const d=D(l,c,.5);return typeof i[2+o]=="number"&&(i[2+o]/=d),typeof i[3+o]=="number"&&(i[3+o]/=d),r(i)}},no={borderRadius:{...kt,applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]},borderTopLeftRadius:kt,borderTopRightRadius:kt,borderBottomLeftRadius:kt,borderBottomRightRadius:kt,boxShadow:Pu};function Mt(t){return typeof t=="object"&&t!==null&&"nodeType"in t}class Au extends K{constructor(e){super(e),fs(no)}initProjection(){const e=this.state.options;this.state.visualElement.projection=new wu(this.state.visualElement.latestValues,e["data-framer-portal-id"]?void 0:eo(this.state.visualElement.parent)),this.state.visualElement.projection.isPresent=!0,this.setOptions()}beforeMount(){this.initProjection()}setOptions(){const e=this.state.options;this.state.visualElement.projection.setOptions({layout:e.layout,layoutId:e.layoutId,alwaysMeasureLayout:!!e.drag||e.dragConstraints&&Mt(e.dragConstraints),visualElement:this.state.visualElement,animationType:typeof e.layout=="string"?e.layout:"both",layoutRoot:e.layoutRoot,layoutScroll:e.layoutScroll,crossfade:e.crossfade,onExitComplete:()=>{var s;if(!((s=this.state.visualElement.projection)!=null&&s.isPresent)){const n=ce.get(this.state.element);this.state.isSafeToRemove=!0,n&&n({detail:{isExit:!0}},!0)}}})}update(){this.setOptions()}mount(){var e;(e=this.state.visualElement.projection)==null||e.mount(this.state.element)}}function io(t){return t.pointerType==="mouse"?typeof t.button!="number"||t.button<=0:t.isPrimary!==!1}function is(t,e="page"){return{point:{x:t[`${e}X`],y:t[`${e}Y`]}}}function Cu(t){return e=>io(e)&&t(e,is(e))}function Bt(t,e,s,n){return Jt(t,e,Cu(s),n)}function oo(t){let e=null;return()=>{const s=()=>{e=null};return e===null?(e=t,s):!1}}const ro=oo("dragHorizontal"),ao=oo("dragVertical");function Du(t){let e=!1;if(t==="y")e=ao();else if(t==="x")e=ro();else{const s=ro(),n=ao();s&&n?e=()=>{s(),n()}:(s&&s(),n&&n())}return e}function os(t){return t.max-t.min}function ku(t,e,s){return s>e?e:s<t?t:s}function se(t,e,s){return t+(e-t)*s}function lo(t,e,s){const n=e-t;return n===0?1:(s-t)/n}function Mu(t,{min:e,max:s},n){return e!==void 0&&t<e?t=n?se(e,t,n.min):Math.max(t,e):s!==void 0&&t>s&&(t=n?se(s,t,n.max):Math.min(t,s)),t}const rs=.35;function Bu(t,{top:e,left:s,bottom:n,right:i}){return{x:co(t.x,s,i),y:co(t.y,e,n)}}function co(t,e,s){return{min:e!==void 0?t.min+e:void 0,max:s!==void 0?t.max+s-(t.max-t.min):void 0}}function Nu(t=rs){return t===!1?t=0:t===!0&&(t=rs),{x:uo(t,"left","right"),y:uo(t,"top","bottom")}}function uo(t,e,s){return{min:ho(t,e),max:ho(t,s)}}function ho(t,e){return typeof t=="number"?t:t[e]||0}function Ou(t,e){const s={};return e.min!==void 0&&(s.min=e.min-t.min),e.max!==void 0&&(s.max=e.max-t.min),s}function Lu(t,e){return{x:mo(t.x,e.x),y:mo(t.y,e.y)}}function mo(t,e){let s=e.min-t.min,n=e.max-t.max;return e.max-e.min<t.max-t.min&&([s,n]=[n,s]),{min:s,max:n}}function Ru(t,e){let s=.5;const n=os(t),i=os(e);return i>n?s=lo(e.min,e.max-n,t.min):n>i&&(s=lo(t.min,t.max-i,e.min)),ku(0,1,s)}const fo=(t,e)=>Math.abs(t-e);function $u(t,e){const s=fo(t.x,e.x),n=fo(t.y,e.y);return Math.sqrt(s**2+n**2)}const ju=t=>t*1e3;function Fu(t){return t/1e3}class po{constructor(e,s,{transformPagePoint:n,contextWindow:i,dragSnapToOrigin:r=!1}={}){if(this.startEvent=null,this.lastMoveEvent=null,this.lastMoveEventInfo=null,this.handlers={},this.contextWindow=window,this.updatePoint=()=>{if(!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const h=ls(this.lastMoveEventInfo,this.history),m=this.startEvent!==null,f=$u(h.offset,{x:0,y:0})>=3;if(!m&&!f)return;const{point:p}=h,{timestamp:g}=M;this.history.push({...p,timestamp:g});const{onStart:v,onMove:y}=this.handlers;m||(v&&v(this.lastMoveEvent,h),this.startEvent=this.lastMoveEvent),y&&y(this.lastMoveEvent,h)},this.handlePointerMove=(h,m)=>{this.lastMoveEvent=h,this.lastMoveEventInfo=as(m,this.transformPagePoint),P.update(this.updatePoint,!0)},this.handlePointerUp=(h,m)=>{this.end();const{onEnd:f,onSessionEnd:p,resumeAnimation:g}=this.handlers;if(this.dragSnapToOrigin&&g&&g(),!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const v=ls(h.type==="pointercancel"?this.lastMoveEventInfo:as(m,this.transformPagePoint),this.history);this.startEvent&&f&&f(h,v),p&&p(h,v)},!io(e))return;this.dragSnapToOrigin=r,this.handlers=s,this.transformPagePoint=n,this.contextWindow=i||window;const o=is(e),l=as(o,this.transformPagePoint),{point:c}=l,{timestamp:d}=M;this.history=[{...c,timestamp:d}];const{onSessionStart:u}=s;u&&u(e,ls(l,this.history)),this.removeListeners=wt(Bt(this.contextWindow,"pointermove",this.handlePointerMove),Bt(this.contextWindow,"pointerup",this.handlePointerUp),Bt(this.contextWindow,"pointercancel",this.handlePointerUp))}updateHandlers(e){this.handlers=e}end(){this.removeListeners&&this.removeListeners(),G(this.updatePoint)}}function as(t,e){return e?{point:e(t.point)}:t}function go(t,e){return{x:t.x-e.x,y:t.y-e.y}}function ls({point:t},e){return{point:t,delta:go(t,yo(e)),offset:go(t,Iu(e)),velocity:Uu(e,.1)}}function Iu(t){return t[0]}function yo(t){return t[t.length-1]}function Uu(t,e){if(t.length<2)return{x:0,y:0};let s=t.length-1,n=null;const i=yo(t);for(;s>=0&&(n=t[s],!(i.timestamp-n.timestamp>ju(e)));)s--;if(!n)return{x:0,y:0};const r=Fu(i.timestamp-n.timestamp);if(r===0)return{x:0,y:0};const o={x:(i.x-n.x)/r,y:(i.y-n.y)/r};return o.x===1/0&&(o.x=0),o.y===1/0&&(o.y=0),o}const vo=()=>({min:0,max:0});function zu(){return{x:vo(),y:vo()}}function U(t){return[t("x"),t("y")]}function Ku(t){return!!(Ut(t)&&t.add)}function bo(t,e){const s=t.getValue("willChange");if(Ku(s))return s.add(e)}function xo({top:t,left:e,right:s,bottom:n}){return{x:{min:e,max:s},y:{min:t,max:n}}}function Gu(t,e){if(!e)return t;const s=e({x:t.left,y:t.top}),n=e({x:t.right,y:t.bottom});return{top:s.y,left:s.x,bottom:n.y,right:n.x}}function Wu({x:t,y:e}){return{top:e.min,right:t.max,bottom:e.max,left:t.min}}function So(t,e){t.min=t.min+e,t.max=t.max+e}function Hu(t,e){return xo(Gu(t.getBoundingClientRect(),e))}function qu(t,e,s){const n=Hu(t,s),{scroll:i}=e;return i&&(So(n.x,i.offset.x),So(n.y,i.offset.y)),n}function Eo(t){return!ce.has(t.current)}function Vo({current:t}){return t?t.ownerDocument.defaultView:null}const Yu=new WeakMap;class Xu{constructor(e){this.openGlobalLock=null,this.isDragging=!1,this.currentDirection=null,this.originPoint={x:0,y:0},this.constraints=!1,this.hasMutatedConstraints=!1,this.elastic=zu(),this.visualElement=e}start(e,{snapToCursor:s=!1}={}){if(!Eo(this.visualElement))return;const n=d=>{const{dragSnapToOrigin:u}=this.getProps();u?this.pauseAnimation():this.stopAnimation(),s&&this.snapToCursor(is(d,"page").point)},i=(d,u)=>{const{drag:h,dragPropagation:m,onDragStart:f}=this.getProps();if(h&&!m&&(this.openGlobalLock&&this.openGlobalLock(),this.openGlobalLock=Du(h),!this.openGlobalLock))return;this.isDragging=!0,this.currentDirection=null,this.resolveConstraints(),this.visualElement.projection&&(this.visualElement.projection.isAnimationBlocked=!0,this.visualElement.projection.target=void 0),U(g=>{let v=this.getAxisMotionValue(g).get()||0;if(Cr.test(v)){const{projection:y}=this.visualElement;if(y&&y.layout){const S=y.layout.layoutBox[g];S&&(v=os(S)*(parseFloat(v)/100))}}this.originPoint[g]=v}),f&&P.postRender(()=>f(d,u)),bo(this.visualElement,"transform"),this.visualElement.state.setActive("whileDrag",!0)},r=(d,u)=>{const{dragPropagation:h,dragDirectionLock:m,onDirectionLock:f,onDrag:p}=this.getProps();if(!h&&!this.openGlobalLock)return;const{offset:g}=u;if(m&&this.currentDirection===null){this.currentDirection=Zu(g),this.currentDirection!==null&&f&&f(this.currentDirection);return}this.updateAxis("x",u.point,g),this.updateAxis("y",u.point,g),this.visualElement.render(),p&&p(d,u)},o=(d,u)=>this.stop(d,u),l=()=>U(d=>{var u;return this.getAnimationState(d)==="paused"&&((u=this.getAxisMotionValue(d).animation)==null?void 0:u.play())}),{dragSnapToOrigin:c}=this.getProps();this.panSession=new po(e,{onSessionStart:n,onStart:i,onMove:r,onSessionEnd:o,resumeAnimation:l},{transformPagePoint:this.visualElement.getTransformPagePoint(),dragSnapToOrigin:c,contextWindow:Vo(this.visualElement)})}stop(e,s){const n=this.isDragging;if(this.cancel(),!n)return;const{velocity:i}=s;this.startAnimation(i);const{onDragEnd:r}=this.getProps();r&&P.postRender(()=>r(e,s))}cancel(){this.isDragging=!1;const{projection:e,animationState:s}=this.visualElement;e&&(e.isAnimationBlocked=!1),this.panSession&&this.panSession.end(),this.panSession=void 0;const{dragPropagation:n}=this.getProps();!n&&this.openGlobalLock&&(this.openGlobalLock(),this.openGlobalLock=null),this.visualElement.state.setActive("whileDrag",!1)}updateAxis(e,s,n){const{drag:i}=this.getProps();if(!n||!ne(e,i,this.currentDirection))return;const r=this.getAxisMotionValue(e);let o=this.originPoint[e]+n[e];this.constraints&&this.constraints[e]&&(o=Mu(o,this.constraints[e],this.elastic[e])),r.set(o)}resolveConstraints(){var e;const{dragConstraints:s,dragElastic:n}=this.getProps(),i=this.visualElement.projection&&!this.visualElement.projection.layout?this.visualElement.projection.measure(!1):(e=this.visualElement.projection)==null?void 0:e.layout,r=this.constraints;s&&Mt(s)?this.constraints||(this.constraints=this.resolveRefConstraints()):s&&i?this.constraints=Bu(i.layoutBox,s):this.constraints=!1,this.elastic=Nu(n),r!==this.constraints&&i&&this.constraints&&!this.hasMutatedConstraints&&U(o=>{this.constraints!==!1&&this.getAxisMotionValue(o)&&(this.constraints[o]=Ou(i.layoutBox[o],this.constraints[o]))})}resolveRefConstraints(){const{dragConstraints:e,onMeasureDragConstraints:s}=this.getProps();if(!e||!Mt(e))return!1;const n=e;jt(n!==null,"If `dragConstraints` is set as a React ref, that ref must be passed to another component's `ref` prop.");const{projection:i}=this.visualElement;if(!i||!i.layout)return!1;const r=qu(n,i.root,this.visualElement.getTransformPagePoint());let o=Lu(i.layout.layoutBox,r);if(s){const l=s(Wu(o));this.hasMutatedConstraints=!!l,l&&(o=xo(l))}return o}startAnimation(e){const{drag:s,dragMomentum:n,dragElastic:i,dragTransition:r,dragSnapToOrigin:o,onDragTransitionEnd:l}=this.getProps(),c=this.constraints||{},d=U(u=>{if(!ne(u,s,this.currentDirection))return;let h=c&&c[u]||{};o&&(h={min:0,max:0});const m=i?200:1e6,f=i?40:1e7,p={type:"inertia",velocity:n?e[u]:0,bounceStiffness:m,bounceDamping:f,timeConstant:750,restDelta:1,restSpeed:10,...r,...h};return this.startAxisValueAnimation(u,p)});return Promise.all(d).then(l)}startAxisValueAnimation(e,s){const n=this.getAxisMotionValue(e);return bo(this.visualElement,e),n.start(Ye(e,n,0,s,this.visualElement,!1))}stopAnimation(){Eo(this.visualElement)&&U(e=>this.getAxisMotionValue(e).stop())}pauseAnimation(){U(e=>{var s;return(s=this.getAxisMotionValue(e).animation)==null?void 0:s.pause()})}getAnimationState(e){var s;return(s=this.getAxisMotionValue(e).animation)==null?void 0:s.state}getAxisMotionValue(e){const s=`_drag${e.toUpperCase()}`,n=this.visualElement.getProps();return n[s]||this.visualElement.getValue(e,(n.initial?n.initial[e]:void 0)||0)}snapToCursor(e){U(s=>{const{drag:n}=this.getProps();if(!ne(s,n,this.currentDirection))return;const{projection:i}=this.visualElement,r=this.getAxisMotionValue(s);if(i&&i.layout){const{min:o,max:l}=i.layout.layoutBox[s];r.set(e[s]-se(o,l,.5))}})}scalePositionWithinConstraints(){if(!this.visualElement.current)return;const{drag:e,dragConstraints:s}=this.getProps(),{projection:n}=this.visualElement;if(!Mt(s)||!n||!this.constraints)return;this.stopAnimation();const i={x:0,y:0};U(o=>{const l=this.getAxisMotionValue(o);if(l&&this.constraints!==!1){const c=l.get();i[o]=Ru({min:c,max:c},this.constraints[o])}});const{transformTemplate:r}=this.visualElement.getProps();this.visualElement.current.style.transform=r?r({},""):"none",n.root&&n.root.updateScroll(),n.updateLayout(),this.resolveConstraints(),U(o=>{if(!ne(o,e,null))return;const l=this.getAxisMotionValue(o),{min:c,max:d}=this.constraints[o];l.set(se(c,d,i[o]))})}addListeners(){if(!this.visualElement.current)return;Yu.set(this.visualElement,this);const e=this.visualElement.current,s=Bt(e,"pointerdown",c=>{const{drag:d,dragListener:u=!0}=this.getProps();d&&u&&this.start(c)}),n=()=>{const{dragConstraints:c}=this.getProps();Mt(c)&&(this.constraints=this.resolveRefConstraints())},{projection:i}=this.visualElement,r=i.addEventListener("measure",n);i&&!i.layout&&(i.root&&i.root.updateScroll(),i.updateLayout()),P.read(n);const o=Jt(window,"resize",()=>this.scalePositionWithinConstraints()),l=i.addEventListener("didUpdate",({delta:c,hasLayoutChanged:d})=>{this.isDragging&&d&&(U(u=>{const h=this.getAxisMotionValue(u);h&&(this.originPoint[u]+=c[u].translate,h.set(h.get()+c[u].translate))}),this.visualElement.render())});return()=>{o(),s(),r(),l&&l()}}getProps(){const e=this.visualElement.getProps(),{drag:s=!1,dragDirectionLock:n=!1,dragPropagation:i=!1,dragConstraints:r=!1,dragElastic:o=rs,dragMomentum:l=!0}=e;return{...e,drag:s,dragDirectionLock:n,dragPropagation:i,dragConstraints:r,dragElastic:o,dragMomentum:l}}}function ne(t,e,s){return(e===!0||e===t)&&(s===null||s===t)}function Zu(t,e=10){let s=null;return Math.abs(t.y)>e?s="y":Math.abs(t.x)>e&&(s="x"),s}class Ju extends K{constructor(e){super(e),this.removeGroupControls=B,this.removeListeners=B,this.controls=new Xu(e.visualElement)}mount(){const{dragControls:e}=this.state.options;e&&(this.removeGroupControls=e.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||B}unmount(){this.removeGroupControls(),this.removeListeners()}}class Qu extends K{constructor(e){super(e),fs(no)}beforeUpdate(){this.state.willUpdate("beforeUpdate")}update(){this.didUpdate()}didUpdate(){var e,s;(this.state.options.layout||this.state.options.layoutId||this.state.options.drag)&&((s=(e=this.state.visualElement.projection)==null?void 0:e.root)==null||s.didUpdate())}mount(){var e;const s=this.state.options,n=this.state.options.layoutGroup;if(s.layout||s.layoutId){const i=this.state.visualElement.projection;i&&(i.promote(),(e=n==null?void 0:n.group)==null||e.add(i)),ee.hasEverUpdated=!0}this.didUpdate()}beforeUnmount(){const e=this.state.visualElement.projection;e&&(this.state.willUpdate("beforeUnmount"),this.state.options.layoutId?(e.isPresent=!1,e.relegate()):this.state.options.layout&&(this.state.isSafeToRemove=!0))}unmount(){const e=this.state.options.layoutGroup,s=this.state.visualElement.projection;s&&(e!=null&&e.group&&e.group.remove(s),this.didUpdate())}}function To(t){return(e,s)=>{t&&P.postRender(()=>t(e,s))}}class td extends K{constructor(){super(...arguments),this.removePointerDownListener=B}onPointerDown(e){this.session=new po(e,this.createPanHandlers(),{transformPagePoint:this.state.visualElement.getTransformPagePoint(),contextWindow:Vo(this.state.visualElement)})}createPanHandlers(){return{onSessionStart:To((e,s)=>{const{onPanSessionStart:n}=this.state.options;n&&n(e,s)}),onStart:To((e,s)=>{const{onPanStart:n}=this.state.options;n&&n(e,s)}),onMove:(e,s)=>{const{onPan:n}=this.state.options;n&&n(e,s)},onEnd:(e,s)=>{const{onPanEnd:n}=this.state.options;delete this.session,n&&P.postRender(()=>n(e,s))}}}mount(){this.removePointerDownListener=Bt(this.state.element,"pointerdown",this.onPointerDown.bind(this))}update(){}unmount(){this.removePointerDownListener(),this.session&&this.session.end()}}const ed=[Ec,kc,Bc,Lc,$c,Au,td,Ju,Qu],sd={reduceMotion:"never",transition:void 0,nonce:void 0},[nd,dm]=pt("MotionConfig");function id(){return nd(a.computed(()=>sd))}function ie(t){return(t==null?void 0:t.nodeType)===3||(t==null?void 0:t.nodeType)===8?ie(t.nextSibling):t}const[od,hm]=pt("LazyMotionContext");function rd(t){var e;const s=ir(null),n=rr({}),i=id(),r=pr({}),o=od({features:a.ref([]),strict:!1});if(process.env.NODE_ENV!=="production"&&((e=t.features)!=null&&e.length)&&o.strict){const p="You have rendered a `motion` component within a `LazyMotion` component. This will break tree shaking. Import and render a `m` component instead.";t.ignoreStrict?rt(!1,p):jt(!1,p)}const l=a.useAttrs();function c(){return n.id&&t.layoutId?`${n.id}-${t.layoutId}`:t.layoutId||void 0}function d(){return{...t,lazyMotionContext:o,layoutId:c(),transition:t.transition??i.value.transition,layoutGroup:n,motionConfig:i.value,inViewOptions:t.inViewOptions??i.value.inViewOptions,animatePresenceContext:r,initial:r.initial===!1?r.initial:t.initial===!0?void 0:t.initial}}function u(){return{...l,...d()}}const h=new xr(u(),s);or(h);function m(){var p;const g=h.type==="svg",v={...l};Object.keys(l).forEach(E=>{Ut(l[E])&&(v[E]=l[E].get())});let y={...t.style,...g?{}:((p=h.visualElement)==null?void 0:p.latestValues)||h.baseTarget};if(g){const{attributes:E,style:T}=Or({...h.isMounted()?h.target:h.baseTarget,...y});Object.assign(v,E),y=T}t.drag&&t.dragListener!==!1&&Object.assign(y,{userSelect:"none",WebkitUserSelect:"none",WebkitTouchCallout:"none",touchAction:t.drag===!0?"none":`pan-${t.drag==="x"?"y":"x"}`});const S=kr(y);return S&&(v.style=S),v}const f=a.getCurrentInstance().proxy;return a.onBeforeMount(()=>{h.beforeMount()}),a.onMounted(()=>{h.mount(ie(f.$el),u(),ld(f))}),a.onBeforeUnmount(()=>h.beforeUnmount()),a.onUnmounted(()=>{const p=ie(f.$el);p!=null&&p.isConnected||h.unmount()}),a.onBeforeUpdate(()=>{h.beforeUpdate()}),a.onUpdated(()=>{h.update(u())}),{getProps:d,getAttrs:m,layoutGroup:n,state:h}}const ad={ignoreStrict:{type:Boolean},forwardMotionProps:{type:Boolean,default:!1},asChild:{type:Boolean,default:!1},hover:{type:[String,Array,Object]},press:{type:[String,Array,Object]},inView:{type:[String,Array,Object]},focus:{type:[String,Array,Object]},whileDrag:{type:[String,Array,Object]},whileHover:{type:[String,Array,Object],default:({hover:t})=>(process.env.NODE_ENV==="development"&&t&&rt(!0,"hover is deprecated. Use whileHover instead."),t)},whilePress:{type:[String,Array,Object],default:({press:t})=>(process.env.NODE_ENV==="development"&&t&&rt(!0,"press is deprecated. Use whilePress instead."),t)},whileInView:{type:[String,Array,Object],default:({inView:t})=>(process.env.NODE_ENV==="development"&&t&&rt(!0,"inView is deprecated. Use whileInView instead."),t)},whileFocus:{type:[String,Array,Object],default:({focus:t})=>(process.env.NODE_ENV==="development"&&t&&rt(!0,"focus is deprecated. Use whileFocus instead."),t)},custom:{type:[String,Number,Object,Array]},initial:{type:[String,Array,Object,Boolean],default:void 0},animate:{type:[String,Array,Object],default:void 0},exit:{type:[String,Array,Object]},variants:{type:Object},inherit:{type:Boolean},style:{type:Object},transformTemplate:{type:Function},transition:{type:Object},layoutGroup:{type:Object},motionConfig:{type:Object},onAnimationComplete:{type:Function},onUpdate:{type:Function},layout:{type:[Boolean,String],default:!1},layoutId:{type:String,default:void 0},layoutScroll:{type:Boolean,default:!1},layoutRoot:{type:Boolean,default:!1},"data-framer-portal-id":{type:String},crossfade:{type:Boolean,default:!0},layoutDependency:{type:[String,Number,Object,Array]},onBeforeLayoutMeasure:{type:Function},onLayoutMeasure:{type:Function},onLayoutAnimationStart:{type:Function},onLayoutAnimationComplete:{type:Function},globalPressTarget:{type:Boolean},onPressStart:{type:Function},onPress:{type:Function},onPressCancel:{type:Function},onHoverStart:{type:Function},onHoverEnd:{type:Function},inViewOptions:{type:Object},onViewportEnter:{type:Function},onViewportLeave:{type:Function},drag:{type:[Boolean,String]},dragSnapToOrigin:{type:Boolean},dragDirectionLock:{type:Boolean},dragPropagation:{type:Boolean},dragConstraints:{type:[Boolean,Object]},dragElastic:{type:[Boolean,Number,Object],default:.5},dragMomentum:{type:Boolean,default:!0},dragTransition:{type:Object},dragListener:{type:Boolean,default:!0},dragControls:{type:Object},onDragStart:{type:Function},onDragEnd:{type:Function},onDrag:{type:Function},onDirectionLock:{type:Function},onDragTransitionEnd:{type:Function},onMeasureDragConstraints:{type:Function},onPanSessionStart:{type:Function},onPanStart:{type:Function},onPan:{type:Function},onPanEnd:{type:Function}};function ld(t){var e;const s=((e=ie(t.$el))==null?void 0:e.style.display)==="none";return t.$.vnode.transition&&s}const cd=new Map,ud=new Map;function dd(t){if(!Array.isArray(t))return[t];const e=[];for(const s of t)Array.isArray(s)?e.push(...s):e.push(s);return e}const hd=["area","img","input"];function md(t,e,s){var n,i;if(typeof t=="string"&&hd.includes(t))return a.h(t,e);if(t==="template"){if(!s.default)return null;const r=dd(s.default()),o=r.findIndex(u=>u.type!==a.Comment);if(o===-1)return r;const l=r[o];(n=l.props)==null||delete n.ref;const c=l.props?a.mergeProps(e,l.props):e;e.class&&((i=l.props)!=null&&i.class)&&delete l.props.class;const d=a.cloneVNode(l,c);for(const u in c)u.startsWith("on")&&(d.props||(d.props={}),d.props[u]=c[u]);return r.length===1?d:(r[o]=d,r)}return null}function _o(t,e={}){var s;const n=typeof t=="string",i=n?t:t.name||"",r=((s=e.features)==null?void 0:s.length)>0?cd:ud;if(n&&(r!=null&&r.has(t)))return r.get(t);const o=a.defineComponent({inheritAttrs:!1,props:{...ad,features:{type:Object,default:()=>e.features||[]},as:{type:[String,Object],default:t||"div"}},name:i?`motion.${i}`:"Motion",setup(l,{slots:c}){const{getProps:d,getAttrs:u,state:h}=rd(l);function m(){const f=h.element;if((!(typeof l.as=="object")||l.asChild)&&f){const{style:g}=u();if(g)for(const[v,y]of Object.entries(g))f.style[v]=y}}return()=>{const f=d(),p=u(),g=l.asChild?"template":l.as,v={...e.forwardMotionProps||l.forwardMotionProps?f:{},...p,onVnodeUpdated:m},y=md(g,v,c);return y!==null?y:a.h(g,{...v},c)}}});return n&&(r==null||r.set(t,o)),o}function fd(t=[]){return new Proxy({},{get(e,s){return s==="create"?(n,i)=>_o(n,{...i,features:t}):_o(s,{features:t})}})}const wo=fd(ed);wo.create("div");const pd={class:"slds-navigation-list--vertical"},gd={class:"slds-navigation-list__item-content"},yd={class:"slds-navigation-list__item-title"},vd={__name:"SidebarLayout",props:{schemas:{type:Array,required:!0},selectedSchema:{type:Object,default:null}},emits:["selectSchema"],setup(t,{emit:e}){var l;const s=t,n=e,i=a.ref(((l=s.selectedSchema)==null?void 0:l.fileName)||null);function r(c){i.value=c.fileName,n("selectSchema",c)}function o(c){var d;return((d=c.schema)==null?void 0:d.title)||c.fileName||"Untitled Schema"}return(c,d)=>(a.openBlock(),a.createElementBlock("div",pd,[d[0]||(d[0]=a.createElementVNode("div",{class:"slds-navigation-list__item"},[a.createElementVNode("div",{class:"slds-navigation-list__item-content"},[a.createElementVNode("div",{class:"slds-navigation-list__item-title"},[a.createElementVNode("span",{class:"slds-text-heading_small"},"Schemas")])])],-1)),(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(t.schemas,u=>(a.openBlock(),a.createElementBlock("div",{key:u.fileName,class:"slds-navigation-list__item"},[a.createElementVNode("div",gd,[a.createElementVNode("div",yd,[a.createVNode(a.unref(wo).button,{"while-hover":{scale:1.05},"while-press":{scale:.95},class:a.normalizeClass(["slds-button slds-button_neutral slds-button_stretch",{"slds-is-active":i.value===u.fileName}]),onClick:h=>r(u)},{default:a.withCtx(()=>[a.createTextVNode(a.toDisplayString(o(u)),1)]),_:2},1032,["class","onClick"])])])]))),128))]))}},Po="data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20height='52'%20width='52'%20viewBox='0%200%20520%20520'%20fill='%23fff'%3e%3cpath%20d='M514%20425%20285%2055a28%2028%200%200%200-50%200L6%20425c-14%2023%200%2055%2025%2055h458c25%200%2040-32%2025-55zm-254-25c-17%200-30-13-30-30s13-30%2030-30%2030%2013%2030%2030-13%2030-30%2030zm30-90c0%206-4%2010-10%2010h-40c-6%200-10-4-10-10V180c0-6%204-10%2010-10h40c6%200%2010%204%2010%2010v130z'/%3e%3c/svg%3e",Ao=(t,e)=>{const s=t.__vccOpts||t;for(const[n,i]of e)s[n]=i;return s},bd={class:"slds-notify slds-notify_alert slds-theme_alert-texture slds-theme_warning",role:"alert"},xd={class:"slds-notify__content"},Co=Ao({__name:"NoPropertiesMessage",props:{title:{type:String,default:"No Properties Defined"},message:{type:String,default:"This object doesn't have any properties defined in the schema."}},setup(t){return(e,s)=>(a.openBlock(),a.createElementBlock("div",bd,[s[0]||(s[0]=a.createElementVNode("span",{class:"slds-assistive-text"},"warning",-1)),s[1]||(s[1]=a.createElementVNode("span",{class:"slds-icon_container slds-icon-utility-warning slds-m-right_x-small"},[a.createElementVNode("img",{src:Po,class:"slds-icon slds-icon_x-small warning-icon",alt:""})],-1)),a.createElementVNode("h2",null,a.toDisplayString(t.title),1),a.createElementVNode("div",xd,[a.createElementVNode("p",null,a.toDisplayString(t.message),1)])]))}},[["__scopeId","data-v-a28aa892"]]),Sd={key:0,class:"slds-m-top_medium"},Ed={class:"slds-box slds-theme_shade"},Vd={class:"slds-grid slds-wrap slds-gutters"},Td={class:"constraint-item"},_d={class:"slds-text-title_caps slds-text-color_default"},wd={class:"slds-text-body_regular slds-m-top_xx-small"},cs={__name:"SchemaConstraints",props:{schema:{type:Object,required:!0}},setup(t){const e=t,s=a.computed(()=>{const l={};return["minimum","maximum","exclusiveMinimum","exclusiveMaximum","minLength","maxLength","pattern","minItems","maxItems","uniqueItems","minProperties","maxProperties"].forEach(d=>{e.schema[d]!==void 0&&(l[d]=e.schema[d])}),l}),n=a.computed(()=>Object.entries(s.value).length!==0);function i(l){return l.replace(/([A-Z])/g," $1").replace(/^./,c=>c.toUpperCase())}function r(l){return typeof l=="boolean"?l?"Yes":"No":typeof l=="string"&&l.startsWith("^")?`Pattern: ${l}`:l}function o(l){return typeof l=="boolean"?l?"slds-badge_success":"slds-badge_inverse":typeof l=="number"?"slds-badge_warning":typeof l=="string"&&l.startsWith("^")?"slds-badge_info":""}return(l,c)=>n.value?(a.openBlock(),a.createElementBlock("div",Sd,[c[0]||(c[0]=a.createElementVNode("div",{class:"slds-text-heading_small slds-m-bottom_small"}," Constraints ",-1)),a.createElementVNode("div",Ed,[a.createElementVNode("div",Vd,[(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(s.value,(d,u)=>(a.openBlock(),a.createElementBlock("div",{key:u,class:"slds-col slds-size_1-of-2 slds-p-around_xx-small"},[a.createElementVNode("div",Td,[a.createElementVNode("div",_d,a.toDisplayString(i(u)),1),a.createElementVNode("div",wd,[a.createElementVNode("span",{class:a.normalizeClass(["slds-badge",o(d)])},a.toDisplayString(r(d)),3)])])]))),128))])])])):a.createCommentVNode("",!0)}},Pd={class:"array-schema"},Ad={class:"slds-box slds-theme_shade"},Cd={class:"slds-grid slds-gutters"},Dd={key:0,class:"slds-col"},kd={class:"slds-badge"},Md={key:1,class:"slds-m-top_medium"},Bd={class:"slds-text-title_caps slds-m-bottom_xx-small"},Nd={key:3,class:"slds-m-top_medium"},Od={key:4,class:"slds-m-top_medium"},Ld={key:0,class:"slds-m-top_xx-small"},Rd={__name:"ArraySchema",props:{schema:{type:Object,required:!0},rootSchema:{type:Object,required:!0}},setup(t){const e=t,s=a.computed(()=>["minItems","maxItems","uniqueItems"].some(r=>r in e.schema)),n=a.computed(()=>e.schema.items?Array.isArray(e.schema.items)?"Tuple":e.schema.items.type||"Not specified":"Not defined");return(i,r)=>(a.openBlock(),a.createElementBlock("div",Pd,[a.createElementVNode("div",Ad,[a.createElementVNode("div",Cd,[r[1]||(r[1]=a.createElementVNode("div",{class:"slds-col"},[a.createElementVNode("div",{class:"slds-text-title_caps slds-m-bottom_xx-small"}," Type "),a.createElementVNode("div",{class:"slds-badge"}," array ")],-1)),t.schema.items?(a.openBlock(),a.createElementBlock("div",Dd,[r[0]||(r[0]=a.createElementVNode("div",{class:"slds-text-title_caps slds-m-bottom_xx-small"}," Items Type ",-1)),a.createElementVNode("div",kd,a.toDisplayString(n.value),1)])):a.createCommentVNode("",!0)])]),s.value?(a.openBlock(),a.createBlock(cs,{key:0,schema:t.schema},null,8,["schema"])):a.createCommentVNode("",!0),t.schema.items?(a.openBlock(),a.createElementBlock("div",Md,[r[2]||(r[2]=a.createElementVNode("div",{class:"slds-text-heading_small slds-m-bottom_small"}," Items Schema ",-1)),Array.isArray(t.schema.items)?(a.openBlock(!0),a.createElementBlock(a.Fragment,{key:0},a.renderList(t.schema.items,(o,l)=>(a.openBlock(),a.createElementBlock("div",{key:l,class:"slds-m-bottom_medium"},[a.createElementVNode("div",Bd," Index "+a.toDisplayString(l),1),a.createVNode(q,{schema:o,"root-schema":t.rootSchema,"is-root":!1},null,8,["schema","root-schema"])]))),128)):(a.openBlock(),a.createBlock(q,{key:1,schema:t.schema.items,"root-schema":t.rootSchema,"is-root":!1},null,8,["schema","root-schema"]))])):(a.openBlock(),a.createBlock(Co,{key:2,title:"No Items Defined",message:"This array doesn't have any items defined in the schema."})),t.schema.contains?(a.openBlock(),a.createElementBlock("div",Nd,[r[3]||(r[3]=a.createElementVNode("div",{class:"slds-text-heading_small slds-m-bottom_small"}," Contains ",-1)),a.createVNode(q,{schema:t.schema.contains,"root-schema":t.rootSchema,"is-root":!1},null,8,["schema","root-schema"])])):a.createCommentVNode("",!0),t.schema.additionalItems!==void 0&&Array.isArray(t.schema.items)?(a.openBlock(),a.createElementBlock("div",Od,[r[4]||(r[4]=a.createElementVNode("div",{class:"slds-text-heading_small slds-m-bottom_small"}," Additional Items ",-1)),typeof t.schema.additionalItems=="boolean"?(a.openBlock(),a.createElementBlock("div",Ld,[a.createElementVNode("span",{class:a.normalizeClass(t.schema.additionalItems?"status-allowed":"status-denied")},a.toDisplayString(t.schema.additionalItems?"Allowed":"Not allowed"),3)])):(a.openBlock(),a.createBlock(q,{key:1,schema:t.schema.additionalItems,"root-schema":t.rootSchema,"is-root":!1},null,8,["schema","root-schema"]))])):a.createCommentVNode("",!0)]))}},$d={class:"slds-box slds-theme_shade"},jd={class:"slds-text-heading_small slds-m-bottom_small"},Fd={class:"slds-tabs_default"},Id={class:"slds-tabs_default__nav",role:"tablist"},Ud=["aria-selected","aria-controls","onClick"],zd={class:"slds-tabs_default__title"},Kd=["id"],Gd={class:"slds-p-around_medium"},Wd={class:"slds-text-title_caps slds-m-bottom_small"},Hd={__name:"CompositionSchema",props:{schema:{type:Object,required:!0},rootSchema:{type:Object,required:!0}},setup(t){const e=t,s=a.computed(()=>e.schema.anyOf?"anyOf":e.schema.oneOf?"oneOf":e.schema.allOf?"allOf":null),n=a.ref(0),i=a.computed(()=>e.schema[s.value]||[]);a.watchEffect(()=>{i.value.forEach(d=>{d.type||(d.type=e.schema.type)})});const r=a.computed(()=>{switch(s.value){case"oneOf":return"One Of (Choose One)";case"anyOf":return"Any Of (Choose Any)";case"allOf":return"All Of (Must Match All)";default:return s.value}}),o=a.computed(()=>{switch(e.compositionType){case"oneOf":return"slds-badge_success";case"anyOf":return"slds-badge_warning";case"allOf":return"slds-badge_inverse";default:return""}});function l(d){return Array.isArray(d.type)?d.type.join(" | "):d.type||"object"}function c(d,u){return d.title?d.title:`Option ${u+1}`}return(d,u)=>(a.openBlock(),a.createElementBlock("div",$d,[a.createElementVNode("div",jd,[a.createElementVNode("span",{class:a.normalizeClass(["slds-badge",o.value])},a.toDisplayString(r.value),3)]),a.createElementVNode("div",Fd,[a.createElementVNode("ul",Id,[(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(i.value,(h,m)=>(a.openBlock(),a.createElementBlock("li",{key:m,class:a.normalizeClass(["slds-tabs_default__item",{"slds-is-active":n.value===m}]),role:"presentation"},[a.createElementVNode("a",{class:"slds-tabs_default__link",role:"tab",tabindex:"0","aria-selected":n.value===m,"aria-controls":`tab-${m}`,onClick:f=>n.value=m},[a.createElementVNode("span",zd,a.toDisplayString(c(h,m)),1)],8,Ud)],2))),128))]),(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(i.value,(h,m)=>(a.openBlock(),a.createElementBlock("div",{id:`tab-${m}`,key:m,class:a.normalizeClass(["slds-tabs_default__content",{"slds-show":n.value===m,"slds-hide":n.value!==m}]),role:"tabpanel"},[a.createElementVNode("div",Gd,[a.createElementVNode("div",Wd," Schema Type: "+a.toDisplayString(l(h)),1),a.createVNode(q,{schema:h,"root-schema":t.rootSchema,"is-root":!1},null,8,["schema","root-schema"])])],10,Kd))),128))])]))}},qd={class:"slds-box slds-theme_shade"},Yd={class:"slds-grid slds-wrap slds-gutters"},Xd={class:"slds-badge slds-badge_inverse"},Zd={__name:"EnumSchema",props:{schema:{type:Object,required:!0},rootSchema:{type:Object,required:!0}},setup(t){const e=t,s=a.computed(()=>e.schema.enum);return(n,i)=>(a.openBlock(),a.createElementBlock("div",qd,[i[0]||(i[0]=a.createElementVNode("div",{class:"slds-text-heading_small slds-m-bottom_small"}," Enum Values ",-1)),a.createElementVNode("div",Yd,[(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(s.value,(r,o)=>(a.openBlock(),a.createElementBlock("div",{key:o,class:"slds-col slds-size_1-of-3 slds-p-around_xx-small"},[a.createElementVNode("div",Xd,a.toDisplayString(r),1)]))),128))])]))}},Jd="data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20height='52'%20width='52'%20viewBox='0%200%20520%20520'%20fill='%23fff'%3e%3cpath%20d='M476%20178%20271%20385c-6%206-16%206-22%200L44%20178c-6-6-6-16%200-22l22-22c6-6%2016-6%2022%200l161%20163c6%206%2016%206%2022%200l161-163c6-6%2016-6%2022%200l22%2022c5%207%205%2016%200%2022z'/%3e%3c/svg%3e",Qd={key:0},th={key:1},eh={class:"slds-box slds-m-top_small"},sh={class:"slds-table_container"},nh={class:"slds-table slds-table_cell-buffer slds-table_bordered"},ih=["onClick"],oh=["title"],rh={class:"slds-truncate"},ah={class:"slds-badge"},lh=["title"],ch={class:"slds-truncate"},uh={key:0,class:"slds-badge slds-badge_success"},dh={key:1,class:"slds-badge slds-badge_inverse"},hh={key:0},mh={colspan:"4",class:"slds-p-around_medium"},fh={class:"slds-box slds-theme_shade"},ph={key:2},gh={key:3},yh={key:0},vh={__name:"ObjectSchema",props:{schema:{type:Object,required:!0},rootSchema:{type:Object,required:!0}},setup(t){const e=t,s=a.ref({}),n=a.computed(()=>e.schema.properties&&Object.keys(e.schema.properties).length>0||e.schema.patternProperties&&Object.keys(e.schema.patternProperties).length>0);function i(l){return e.schema.required&&e.schema.required.includes(l)}function r(l){return l.type?l.type:l.oneOf||l.allOf||l.anyOf?"composition":l.enum?"enum":"No type found"}function o(l){s.value[l]=!s.value[l]}return(l,c)=>(a.openBlock(),a.createElementBlock("div",null,[c[6]||(c[6]=a.createElementVNode("div",null,[a.createElementVNode("div",null,"Type: object")],-1)),a.createVNode(cs,{schema:t.schema},null,8,["schema"]),t.schema.required&&t.schema.required.length>0?(a.openBlock(),a.createElementBlock("div",Qd,[c[0]||(c[0]=a.createElementVNode("span",null,"Required properties:",-1)),a.createElementVNode("span",null,a.toDisplayString(t.schema.required.join(", ")),1)])):a.createCommentVNode("",!0),n.value?(a.openBlock(),a.createElementBlock("div",th,[a.createElementVNode("div",eh,[c[2]||(c[2]=a.createElementVNode("div",{class:"slds-text-heading_small slds-m-bottom_small"}," Properties ",-1)),a.createElementVNode("div",sh,[a.createElementVNode("table",nh,[c[1]||(c[1]=a.createElementVNode("thead",null,[a.createElementVNode("tr",{class:"slds-line-height_reset"},[a.createElementVNode("th",{class:"slds-text-title_caps",scope:"col"},[a.createElementVNode("div",{class:"slds-truncate",title:"Property"}," Property ")]),a.createElementVNode("th",{class:"slds-text-title_caps",scope:"col"},[a.createElementVNode("div",{class:"slds-truncate",title:"Type"}," Type ")]),a.createElementVNode("th",{class:"slds-text-title_caps",scope:"col"},[a.createElementVNode("div",{class:"slds-truncate",title:"Description"}," Description ")]),a.createElementVNode("th",{class:"slds-text-title_caps",scope:"col"},[a.createElementVNode("div",{class:"slds-truncate",title:"Required"}," Required ")])])],-1)),a.createElementVNode("tbody",null,[(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(t.schema.properties,(d,u)=>(a.openBlock(),a.createElementBlock(a.Fragment,{key:u},[a.createElementVNode("tr",{class:"slds-hint-parent is-interactive",onClick:h=>o(u)},[a.createElementVNode("td",null,[a.createElementVNode("div",{class:"slds-truncate",title:u},[a.createElementVNode("img",{src:Jd,class:a.normalizeClass(["slds-button__icon",{expanded:s.value[u]}]),alt:""},null,2),a.createTextVNode(" "+a.toDisplayString(u),1)],8,oh)]),a.createElementVNode("td",null,[a.createElementVNode("div",rh,[a.createElementVNode("span",ah,a.toDisplayString(r(d)),1)])]),a.createElementVNode("td",null,[a.createElementVNode("div",{class:"slds-truncate",title:d.description},a.toDisplayString(d.description||"No description"),9,lh)]),a.createElementVNode("td",null,[a.createElementVNode("div",ch,[i(u)?(a.openBlock(),a.createElementBlock("span",uh,"Required")):(a.openBlock(),a.createElementBlock("span",dh,"Optional"))])])],8,ih),a.createVNode(a.Transition,null,{default:a.withCtx(()=>[s.value[u]?(a.openBlock(),a.createElementBlock("tr",hh,[a.createElementVNode("td",mh,[a.createElementVNode("div",fh,[a.createVNode(q,{schema:d,"root-schema":t.rootSchema,"is-root":!1},null,8,["schema","root-schema"])])])])):a.createCommentVNode("",!0)]),_:2},1024)],64))),128))])])])])])):a.createCommentVNode("",!0),t.schema.patternProperties?(a.openBlock(),a.createElementBlock("div",ph,[c[4]||(c[4]=a.createElementVNode("div",null,"Pattern Properties",-1)),a.createElementVNode("div",null,[(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(t.schema.patternProperties,(d,u)=>(a.openBlock(),a.createElementBlock("div",{key:u},[a.createElementVNode("div",null,[a.createElementVNode("div",null,[c[3]||(c[3]=a.createElementVNode("span",null,"Pattern:",-1)),a.createElementVNode("code",null,a.toDisplayString(u),1)])]),a.createVNode(q,{schema:d,"root-schema":t.rootSchema,"is-root":!1},null,8,["schema","root-schema"])]))),128))])])):a.createCommentVNode("",!0),t.schema.additionalProperties!==void 0?(a.openBlock(),a.createElementBlock("div",gh,[c[5]||(c[5]=a.createElementVNode("div",null,"Additional Properties",-1)),typeof t.schema.additionalProperties=="boolean"?(a.openBlock(),a.createElementBlock("div",yh,[a.createElementVNode("span",{class:a.normalizeClass(t.schema.additionalProperties?"status-allowed":"status-denied")},a.toDisplayString(t.schema.additionalProperties?"Allowed":"Not allowed"),3)])):(a.openBlock(),a.createBlock(q,{key:1,schema:t.schema.additionalProperties,"root-schema":t.rootSchema,"is-root":!1},null,8,["schema","root-schema"]))])):a.createCommentVNode("",!0),n.value?a.createCommentVNode("",!0):(a.openBlock(),a.createBlock(Co,{key:4}))]))}},bh={class:"slds-box slds-m-top_small"},xh={class:"slds-box slds-theme_shade"},Sh={class:"slds-text-body_regular"},Eh={class:"slds-grid slds-gutters"},Vh={class:"slds-col"},Th={class:"slds-badge"},_h={class:"slds-col"},Nt={__name:"PrimitiveSchema",props:{schema:{type:Object,required:!0}},setup(t){return(e,s)=>(a.openBlock(),a.createElementBlock("div",bh,[s[2]||(s[2]=a.createElementVNode("div",{class:"slds-text-heading_small slds-m-bottom_small"}," Type Information ",-1)),a.createElementVNode("div",xh,[a.createElementVNode("div",Sh,[a.createElementVNode("div",Eh,[a.createElementVNode("div",Vh,[s[0]||(s[0]=a.createElementVNode("div",{class:"slds-text-title_caps slds-m-bottom_xx-small"}," Type ",-1)),a.createElementVNode("div",Th,a.toDisplayString(t.schema.type),1)]),a.createElementVNode("div",_h,[s[1]||(s[1]=a.createElementVNode("div",{class:"slds-text-title_caps slds-m-bottom_xx-small"}," Description ",-1)),a.createElementVNode("div",null,a.toDisplayString(t.schema.description||"No description"),1)])])])]),a.createVNode(cs,{schema:t.schema},null,8,["schema"])]))}},wh={object:vh,array:Rd,string:Nt,number:Nt,integer:Nt,boolean:Nt,null:Nt},us={hasComposition:t=>!!(t.anyOf||t.oneOf||t.allOf),isEnum:t=>t.enum&&Array.isArray(t.enum),getComponentForSchema:t=>us.hasComposition(t)?Hd:us.isEnum(t)?Zd:wh[t.type]||null},Ph={class:"slds-grid slds-grid_vertical"},Ah={class:"slds-col slds-size_1-of-1"},Ch={class:"slds-card"},Dh={class:"slds-card__body slds-card__body_inner"},kh={__name:"SchemaLayout",setup(t){return(e,s)=>(a.openBlock(),a.createElementBlock("div",Ph,[a.createElementVNode("div",Ah,[a.createElementVNode("div",Ch,[a.createElementVNode("div",Dh,[a.renderSlot(e.$slots,"default")])])])]))}},Mh={class:"slds-box"},Bh={class:"slds-box slds-theme_shade"},Nh={__name:"PlainSchemaView",props:{schema:{type:Object,required:!0}},setup(t){const e=t,s=a.computed(()=>JSON.stringify(e.schema,null,2));return(n,i)=>(a.openBlock(),a.createElementBlock("div",Mh,[i[0]||(i[0]=a.createElementVNode("div",{class:"slds-text-heading_small slds-m-bottom_small"}," Raw JSON Schema ",-1)),a.createElementVNode("pre",Bh,[a.createElementVNode("code",null,a.toDisplayString(s.value),1)])]))}},Oh={class:"slds-page-header"},Lh={class:"slds-page-header__row"},Rh={class:"slds-page-header__col-title"},$h={class:"slds-media"},jh={class:"slds-media__body"},Fh={class:"slds-page-header__name"},Ih={class:"slds-page-header__name-title"},Uh={class:"slds-page-header__title slds-truncate",title:"{{ schema.title || 'Schema' }}"},zh={class:"slds-page-header__meta-text"},Kh={__name:"SchemaHeader",props:{schema:{type:Object,required:!0}},setup(t){return(e,s)=>(a.openBlock(),a.createElementBlock("div",Oh,[a.createElementVNode("div",Lh,[a.createElementVNode("div",Rh,[a.createElementVNode("div",$h,[s[0]||(s[0]=a.createElementVNode("div",{class:"slds-media__figure"},[a.createElementVNode("span",{class:"slds-icon_container slds-icon-standard-account"},[a.createElementVNode("img",{src:hs,class:"slds-icon slds-icon_small",alt:""})])],-1)),a.createElementVNode("div",jh,[a.createElementVNode("div",Fh,[a.createElementVNode("div",Ih,[a.createElementVNode("h1",Uh,a.toDisplayString(t.schema.title||"Schema"),1)])]),a.createElementVNode("div",zh,a.toDisplayString(t.schema.description||"No description provided"),1)])])])])]))}},Gh={class:"slds-tabs_default__nav",role:"tablist"},Wh={__name:"SchemaTabs",props:{modelValue:{type:String,required:!0}},emits:["update:modelValue"],setup(t){return(e,s)=>(a.openBlock(),a.createElementBlock("ul",Gh,[a.createElementVNode("li",{class:a.normalizeClass(["slds-tabs_default__item",{"slds-is-active":t.modelValue==="visual"}]),role:"presentation"},[a.createElementVNode("a",{class:"slds-tabs_default__link",role:"tab",tabindex:"0","aria-selected":"true","aria-controls":"visual-tab",onClick:s[0]||(s[0]=n=>e.$emit("update:modelValue","visual"))},s[2]||(s[2]=[a.createElementVNode("span",{class:"slds-tabs_default__title"},"Visual",-1)]))],2),a.createElementVNode("li",{class:a.normalizeClass(["slds-tabs_default__item",{"slds-is-active":t.modelValue==="plain"}]),role:"presentation"},[a.createElementVNode("a",{class:"slds-tabs_default__link",role:"tab",tabindex:"0","aria-selected":"true","aria-controls":"plain-tab",onClick:s[1]||(s[1]=n=>e.$emit("update:modelValue","plain"))},s[3]||(s[3]=[a.createElementVNode("span",{class:"slds-tabs_default__title"},"Plain JSON",-1)]))],2)]))}},Hh={class:"slds-notify slds-notify_alert slds-theme_alert-texture slds-theme_warning",role:"alert"},qh={class:"slds-notify__content"},Yh=Ao({__name:"UnknownSchemaMessage",props:{title:{type:String,default:"Unknown schema"},message:{type:String,default:"This schema doesen't have proper handling yet."}},setup(t){return(e,s)=>(a.openBlock(),a.createElementBlock("div",Hh,[s[0]||(s[0]=a.createElementVNode("span",{class:"slds-assistive-text"},"warning",-1)),s[1]||(s[1]=a.createElementVNode("span",{class:"slds-icon_container slds-icon-utility-warning slds-m-right_x-small"},[a.createElementVNode("img",{src:Po,class:"slds-icon slds-icon_x-small warning-icon",alt:""})],-1)),a.createElementVNode("h2",null,a.toDisplayString(t.title),1),a.createElementVNode("div",qh,[a.createElementVNode("p",null,a.toDisplayString(t.message),1)])]))}},[["__scopeId","data-v-bde50c13"]]),Xh={class:"slds-tabs_default"},Zh={class:"slds-p-around_medium"},Jh={class:"slds-m-top_medium"},Qh={class:"slds-p-around_medium"},q={__name:"SchemaViewer",props:{schema:{type:Object,required:!0},rootSchema:{type:Object,default:null},isRoot:{type:Boolean,default:!0}},setup(t){const e=t,s=a.ref("visual"),n=a.computed(()=>e.isRoot?e.schema:e.rootSchema);a.provide("rootSchema",n);const i=a.computed(()=>us.getComponentForSchema(e.schema));return(r,o)=>(a.openBlock(),a.createBlock(kh,null,{default:a.withCtx(()=>[a.createElementVNode("div",Xh,[a.createVNode(Wh,{modelValue:s.value,"onUpdate:modelValue":o[0]||(o[0]=l=>s.value=l)},null,8,["modelValue"]),a.createElementVNode("div",{class:a.normalizeClass({"slds-show":s.value==="visual","slds-hide":s.value!=="visual"})},[a.createElementVNode("div",Zh,[a.createVNode(Kh,{schema:t.schema},null,8,["schema"]),a.createElementVNode("div",Jh,[i.value?(a.openBlock(),a.createBlock(a.resolveDynamicComponent(i.value),{key:0,schema:t.schema,"root-schema":n.value},null,8,["schema","root-schema"])):(a.openBlock(),a.createBlock(Yh,{key:1}))])])],2),a.createElementVNode("div",{class:a.normalizeClass({"slds-show":s.value==="plain","slds-hide":s.value!=="plain"})},[a.createElementVNode("div",Qh,[a.createVNode(Nh,{schema:t.schema},null,8,["schema"])])],2)])]),_:1}))}},tm={class:"slds-grid slds-grid_vertical"},em={class:"slds-grid slds-gutters slds-grid_vertical-fill"},sm={class:"slds-col slds-size_2-of-12"},nm={class:"slds-col slds-size_10-of-12"},im={key:1,class:"slds-p-around_medium"},Do={__name:"App",props:{title:{type:String,default:"JSON Schema Documentation"},description:{type:String,default:""},schemas:{type:Array,default:()=>[]},generatedAt:{type:String,default:()=>new Date().toISOString()}},setup(t){const e=t,s=a.ref(e.schemas.length>0?e.schemas[0]:null);function n(i){s.value=i}return(i,r)=>(a.openBlock(),a.createElementBlock("div",tm,[a.createVNode(er,{title:t.title},null,8,["title"]),a.createElementVNode("div",em,[a.createElementVNode("div",sm,[a.createVNode(vd,{schemas:t.schemas,"selected-schema":s.value,onSelectSchema:n},null,8,["schemas","selected-schema"])]),a.createElementVNode("div",nm,[s.value?(a.openBlock(),a.createBlock(q,{key:0,schema:s.value.schema,"is-root":!0},null,8,["schema"])):(a.openBlock(),a.createElementBlock("div",im,r[0]||(r[0]=[a.createStaticVNode('<div class="slds-text-align_center"><svg viewBox="0 0 454 272" aria-hidden="true" xmlns="http://www.w3.org/2000/svg"><g stroke="none" stroke-width="1" fill="none" fill-rule="evenodd"><circle vector-effect="non-scaling-stroke" cx="150" cy="150" r="40" fill="#F9F9F9"></circle><circle vector-effect="non-scaling-stroke" cx="150" cy="150" r="30" fill="#ECEBEA"></circle><circle vector-effect="non-scaling-stroke" cx="150" cy="150" r="20" fill="#D9D7D5"></circle></g></svg></div><div class="slds-text-align_center slds-m-top_medium"><h3 class="slds-text-heading_medium"> No Schema Selected </h3><p class="slds-text-body_regular slds-m-top_small"> Select a schema from the sidebar to view its documentation. </p></div>',2)])))])]),a.createVNode(Wo,{description:t.description,"generated-at":t.generatedAt,"schema-count":t.schemas.length},null,8,["description","generated-at","schema-count"])]))}};async function ko(){const t=window.__JSON_SCHEMA_DOCS_DATA__||{title:"JSON Schema Documentation",description:"",schemas:[],generatedAt:new Date().toISOString()};document.getElementById("app")&&a.createApp(Do,t).mount("#app")}document.readyState==="loading"?document.addEventListener("DOMContentLoaded",ko):ko(),Object.defineProperty(Y,"createApp",{enumerable:!0,get:()=>a.createApp}),Y.App=Do,Object.defineProperty(Y,Symbol.toStringTag,{value:"Module"})});
|
|
1
|
+
(function(Y,a){typeof exports=="object"&&typeof module<"u"?a(exports,require("vue")):typeof define=="function"&&define.amd?define(["exports","vue"],a):(Y=typeof globalThis<"u"?globalThis:Y||self,a(Y.JsonSchemaDocs={},Y.Vue))})(this,function(Y,a){"use strict";const Mo={class:"slds-p-around_medium slds-theme_shade slds-text-align_center slds-text-body_small slds-mt-auto"},Bo={class:"slds-grid slds-grid_align-spread slds-wrap"},No={class:"slds-col slds-size_1-of-1 slds-medium-size_1-of-3 slds-p-vertical_x-small"},Oo={key:0,class:"slds-text-color_weak"},Lo={class:"slds-col slds-size_1-of-1 slds-medium-size_1-of-3 slds-p-vertical_x-small"},Ro={class:"slds-text-color_weak"},$o={class:"slds-col slds-size_1-of-1 slds-medium-size_1-of-3 slds-p-vertical_x-small"},jo={class:"slds-text-color_weak"},Fo={__name:"FooterLayout",props:{description:{type:String,default:""},generatedAt:{type:String,default:()=>new Date().toISOString()},schemaCount:{type:Number,default:0}},setup(t){function e(s){return new Date(s).toLocaleString()}return(s,n)=>(a.openBlock(),a.createElementBlock("footer",Mo,[a.createElementVNode("div",Bo,[a.createElementVNode("div",No,[t.description?(a.openBlock(),a.createElementBlock("span",Oo,a.toDisplayString(t.description),1)):a.createCommentVNode("",!0)]),a.createElementVNode("div",Lo,[a.createElementVNode("span",Ro,a.toDisplayString(t.schemaCount)+" schema"+a.toDisplayString(t.schemaCount!==1?"s":"")+" documented ",1)]),a.createElementVNode("div",$o,[a.createElementVNode("span",jo," Generated at: "+a.toDisplayString(e(t.generatedAt)),1)])])]))}},as="data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20height='100'%20width='100'%20viewBox='0%200%201000%201000'%20fill='%23fff'%3e%3cpath%20d='M738%20200H262c-34%200-62%2028-62%2062v476c0%2034%2028%2062%2062%2062h476c34%200%2062-28%2062-62V262c0-34-28-62-62-62zm-455%2062h434c11%200%2021%209%2021%2021v39H262v-39c0-12%209-21%2021-21zm434%20476H283c-11%200-21-9-21-21V382h476v335c0%2012-9%2021-21%2021zM467%20633l-66-66%2066-66c4-4%204-10%200-14l-28-28c-4-4-10-4-14%200l-73%2073-15%2015-13%2013c-2%202-3%205-3%207%200%203%201%205%203%207l102%20102c4%204%2010%204%2014%200l28-28c3-5%203-11-1-15zm210-74-13-13-15-15-73-73c-4-4-10-4-14%200l-28%2028c-4%204-4%2010%200%2014l66%2066-66%2066c-4%204-4%2010%200%2014l28%2028c4%204%2010%204%2014%200l102-102c2-2%203-5%203-7z'/%3e%3c/svg%3e",Io={class:"slds-page-header"},Uo={class:"slds-page-header__row"},zo={class:"slds-page-header__col-title"},Ko={class:"slds-media"},Go={class:"slds-media__body"},Wo={class:"slds-page-header__name"},Ho={class:"slds-page-header__name-title"},qo=["title"],Yo={__name:"HeaderLayout",props:{title:{type:String,default:"JSON Schema Documentation"}},setup(t){return(e,s)=>(a.openBlock(),a.createElementBlock("header",Io,[a.createElementVNode("div",Uo,[a.createElementVNode("div",zo,[a.createElementVNode("div",Ko,[s[0]||(s[0]=a.createElementVNode("div",{class:"slds-media__figure"},[a.createElementVNode("span",{class:"slds-icon_container slds-icon-standard-account"},[a.createElementVNode("img",{src:as,class:"slds-icon slds-icon_small",alt:""})])],-1)),a.createElementVNode("div",Go,[a.createElementVNode("div",Wo,[a.createElementVNode("div",Ho,[a.createElementVNode("h1",{class:"slds-page-header__title slds-truncate",title:t.title},a.toDisplayString(t.title),9,qo)])])])])])])]))}},ls=t=>e=>typeof e=="string"&&e.startsWith(t),ne=ls("--"),Xo=ls("var(--"),ie=t=>Xo(t)?Zo.test(t.split("/*")[0].trim()):!1,Zo=/var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu,ht={};function cs(t){for(const e in t)ht[e]=t[e],ne(e)&&(ht[e].isCSSVariable=!0)}function mt(t,e){const s=typeof t=="string"?`${t}Context`:e,n=Symbol(s);return[o=>{const l=a.inject(n,o);if(l||l===null)return l;throw new Error(`Injection \`${n.toString()}\` not found. Component must be used within ${Array.isArray(t)?`one of the following components: ${t.join(", ")}`:`\`${t}\``}`)},o=>(a.provide(n,o),o)]}const[Jo,Qo]=mt("Motion"),[tr,Qh]=mt("LayoutGroup");function us(t){return t!==null&&typeof t=="object"&&typeof t.start=="function"}class z{constructor(e){this.state=e}beforeMount(){}mount(){}unmount(){}update(){}beforeUpdate(){}beforeUnmount(){}}function ft(t,e,s){if(Array.isArray(t))return t.reduce((n,i)=>{const r=ft(i,e,s);return r?{...n,...r}:n},{});if(typeof t=="object")return t;if(t&&e){const n=e[t];return typeof n=="function"?n(s):n}}function er(t,e){return typeof t!=typeof e?!0:Array.isArray(t)&&Array.isArray(e)?!sr(t,e):t!==e}function sr(t,e){const s=e.length;if(s!==t.length)return!1;for(let n=0;n<s;n++)if(e[n]!==t[n])return!1;return!0}function ds(t){return t==null?void 0:t.startsWith("--")}const nr=t=>t;function ir(t){return typeof t=="number"}const or=["animate","circle","defs","desc","ellipse","g","image","line","filter","marker","mask","metadata","path","pattern","polygon","polyline","rect","stop","svg","switch","symbol","text","tspan","use","view","clipPath","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","foreignObject","linearGradient","radialGradient","textPath"],rr=new Set(or);function hs(t){return rr.has(t)}function ar(t,e){const s=t.animate,n=e.animate;if(s===n)return!1;if(!s||!n)return!0;if(typeof s=="object"||typeof n=="object"){const i=Object.keys(s),r=Object.keys(n);return i.length!==r.length?!0:i.some(o=>{if(o==="transition")return!1;const l=s[o],c=n[o];return l!==c})}return s!==n}class lr{constructor(e){this.features=[];const{features:s=[],lazyMotionContext:n}=e.options,i=s.concat(n.features.value);this.features=i.map(o=>new o(e));const r=this.features;a.watch(n.features,o=>{o.forEach(l=>{if(!i.includes(l)){i.push(l);const c=new l(e);r.push(c),e.isMounted()&&(c.beforeMount(),c.mount())}})},{flush:"pre"})}mount(){this.features.forEach(e=>e.mount())}beforeMount(){this.features.forEach(e=>{var s;return(s=e.beforeMount)==null?void 0:s.call(e)})}unmount(){this.features.forEach(e=>e.unmount())}update(){this.features.forEach(e=>{var s;return(s=e.update)==null?void 0:s.call(e)})}beforeUpdate(){this.features.forEach(e=>e.beforeUpdate())}beforeUnmount(){this.features.forEach(e=>e.beforeUnmount())}}const oe=new WeakMap,[cr,tm]=mt("AnimatePresenceContext");function ur(t){return typeof t=="string"||t===!1||Array.isArray(t)}const O=t=>t;let ms=O;const Nt=["read","resolveKeyframes","update","preRender","render","postRender"];function dr(t,e){let s=new Set,n=new Set,i=!1,r=!1;const o=new WeakSet;let l={delta:0,timestamp:0,isProcessing:!1};function c(u){o.has(u)&&(d.schedule(u),t()),u(l)}const d={schedule:(u,h=!1,m=!1)=>{const p=m&&i?s:n;return h&&o.add(u),p.has(u)||p.add(u),u},cancel:u=>{n.delete(u),o.delete(u)},process:u=>{if(l=u,i){r=!0;return}i=!0,[s,n]=[n,s],s.forEach(c),s.clear(),i=!1,r&&(r=!1,d.process(u))}};return d}const hr=40;function fs(t,e){let s=!1,n=!0;const i={delta:0,timestamp:0,isProcessing:!1},r=()=>s=!0,o=Nt.reduce((y,S)=>(y[S]=dr(r),y),{}),{read:l,resolveKeyframes:c,update:d,preRender:u,render:h,postRender:m}=o,f=()=>{const y=performance.now();s=!1,i.delta=n?1e3/60:Math.max(Math.min(y-i.timestamp,hr),1),i.timestamp=y,i.isProcessing=!0,l.process(i),c.process(i),d.process(i),u.process(i),h.process(i),m.process(i),i.isProcessing=!1,s&&e&&(n=!1,t(f))},p=()=>{s=!0,n=!0,i.isProcessing||t(f)};return{schedule:Nt.reduce((y,S)=>{const E=o[S];return y[S]=(_,b=!1,T=!1)=>(s||p(),E.schedule(_,b,T)),y},{}),cancel:y=>{for(let S=0;S<Nt.length;S++)o[Nt[S]].cancel(y)},state:i,steps:o}}const{schedule:w,cancel:K,state:M,steps:re}=fs(typeof requestAnimationFrame<"u"?requestAnimationFrame:O,!0),ps=new WeakMap;let mr=0;const ae=new Set;class fr{constructor(e,s){var n;this.element=null,this.isSafeToRemove=!1,this.isVShow=!1,this.children=new Set,this.activeStates={initial:!0,animate:!0},this.currentProcess=null,this._context=null,this.animateUpdates=O,this.id=`motion-state-${mr++}`,this.options=e,this.parent=s,(n=s==null?void 0:s.children)==null||n.add(this),this.depth=(s==null?void 0:s.depth)+1||0;const r=(e.initial===void 0&&e.variants?this.context.initial:e.initial)===!1?["initial","animate"]:["initial"];this.initTarget(r),this.featureManager=new lr(this),this.type=hs(this.options.as)?"svg":"html"}get context(){if(!this._context){const e={get:(s,n)=>{var i;return ur(this.options[n])?this.options[n]:(i=this.parent)==null?void 0:i.context[n]}};this._context=new Proxy({},e)}return this._context}initTarget(e){this.baseTarget=e.reduce((s,n)=>({...s,...ft(this.options[n]||this.context[n],this.options.variants)}),{}),this.target={}}updateOptions(){var e;(e=this.visualElement)==null||e.update({...this.options,whileTap:this.options.whilePress,reducedMotionConfig:this.options.motionConfig.reduceMotion},{isPresent:!oe.has(this.element)})}beforeMount(){this.featureManager.beforeMount()}mount(e,s,n=!1){var i;this.element=e,this.options=s,this.updateOptions(),this.featureManager.mount(),!n&&this.options.animate&&(this.type==="svg"&&this.visualElement.updateDimensions(),(i=this.startAnimation)==null||i.call(this)),this.options.layoutId&&(ae.add(this.options.layoutId),w.render(()=>{ae.clear()}))}clearAnimation(){var e,s;this.currentProcess&&K(this.currentProcess),this.currentProcess=null,(s=(e=this.visualElement)==null?void 0:e.variantChildren)==null||s.forEach(n=>{n.state.clearAnimation()})}startAnimation(){this.clearAnimation(),this.currentProcess=w.render(()=>{this.currentProcess=null,this.animateUpdates()})}beforeUnmount(){this.featureManager.beforeUnmount()}unmount(e=!1){const s=this.options.layoutId&&!ae.has(this.options.layoutId);(()=>{e&&Array.from(this.children).reverse().forEach(this.unmountChild);const i=()=>{var r,o,l;(o=(r=this.parent)==null?void 0:r.children)==null||o.delete(this),ps.delete(this.element),this.featureManager.unmount(),(l=this.visualElement)==null||l.unmount()};s?Promise.resolve().then(i):i()})()}unmountChild(e){e.unmount(!0)}beforeUpdate(){this.featureManager.beforeUpdate()}update(e){const s=ar(this.options,e);this.options=e,this.updateOptions(),this.featureManager.update(),s&&this.startAnimation()}setActive(e,s,n=!0){var i;!this.element||this.activeStates[e]===s||(this.activeStates[e]=s,(i=this.visualElement.variantChildren)==null||i.forEach(r=>{r.state.setActive(e,s,!1)}),n&&this.animateUpdates({isFallback:!s&&e!=="exit"&&this.visualElement.isControllingVariants,isExit:e==="exit"&&this.activeStates.exit}))}isMounted(){return!!this.element}willUpdate(e){var s;(this.options.layout||this.options.layoutId)&&((s=this.visualElement.projection)==null||s.willUpdate())}}const tt=new WeakMap;function gs(t,e,s){return new CustomEvent(t,{detail:{target:e,isExit:s}})}const ys={syntax:"<angle>",initialValue:"0deg",toDefaultUnit:t=>`${t}deg`},pr={translate:{syntax:"<length-percentage>",initialValue:"0px",toDefaultUnit:t=>`${t}px`},rotate:ys,scale:{syntax:"<number>",initialValue:1,toDefaultUnit:nr},skew:ys},gr=["translate","scale","rotate","skew"],yr=["","X","Y","Z"],le=new Map,Ot=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"];gr.forEach(t=>{yr.forEach(e=>{Ot.push(t+e),le.set(t+e,pr[t])})});const vr=new Set(Ot),br=t=>vr.has(t),vs={x:"translateX",y:"translateY",z:"translateZ"};function xr([t],[e]){return Ot.indexOf(t)-Ot.indexOf(e)}function Sr(t,[e,s]){return`${t} ${e}(${s})`}function Vr(t){return t.sort(xr).reduce(Sr,"").trim()}const bs={translate:[0,0],rotate:0,scale:1,skew:0,x:0,y:0,z:0};function xs(t){return{test:e=>typeof e=="string"&&e.endsWith(t)&&e.split(" ").length===1,parse:parseFloat,transform:e=>`${e}${t}`}}const Er=xs("%"),ce=xs("px");function Lt(t){return!!(t&&t.getVelocity)}const Tr={get:(t,e)=>{let s=ds(e)?t.style.getPropertyValue(e):getComputedStyle(t)[e];if(!s&&s!=="0"){const n=le.get(e);n&&(s=n.initialValue)}return s},set:(t,e,s)=>{ds(e)?t.style.setProperty(e,s):t.style[e]=s}};function _r(t){var e;const s={},n=[];for(let i in t){let r=t[i];r=Lt(r)?r.get():r,br(i)&&i in vs&&(i=vs[i]);let o=Array.isArray(r)?r[0]:r;const l=le.get(i);l?(o=ir(r)?(e=l.toDefaultUnit)==null?void 0:e.call(l,r):r,n.push([i,o])):s[i]=o}return n.length&&(s.transform=Vr(n)),Object.keys(s).length===0?null:s}const Pr={fill:!0,stroke:!0,opacity:!0,"stroke-width":!0,"fill-opacity":!0,"stroke-opacity":!0,"stroke-linecap":!0,"stroke-linejoin":!0,"stroke-dasharray":!0,"stroke-dashoffset":!0,cx:!0,cy:!0,r:!0,d:!0,x1:!0,y1:!0,x2:!0,y2:!0,points:!0,"path-length":!0,viewBox:!0,width:!0,height:!0,"preserve-aspect-ratio":!0,"clip-path":!0,filter:!0,mask:!0,"stop-color":!0,"stop-opacity":!0,"gradient-transform":!0,"gradient-units":!0,"spread-method":!0,"marker-end":!0,"marker-mid":!0,"marker-start":!0,"text-anchor":!0,"dominant-baseline":!0,"font-family":!0,"font-size":!0,"font-weight":!0,"letter-spacing":!0,"vector-effect":!0};function wr(t){return t.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase()}function Ar(t,e,s=1,n=0){t.pathLength=1,delete t["path-length"],t["stroke-dashoffset"]=ce.transform(-n);const i=ce.transform(e),r=ce.transform(s);t["stroke-dasharray"]=`${i} ${r}`}function Cr(t){const e={},s={};for(const n in t){const i=wr(n);if(i in Pr){const r=t[n];e[i]=Lt(r)?r.get():r}else s[n]=t[n]}return e["path-length"]!==void 0&&Ar(e,e["path-length"],e["path-spacing"],e["path-offset"]),{attributes:e,style:s}}typeof WorkerGlobalScope<"u"&&globalThis instanceof WorkerGlobalScope;const ue=t=>typeof t<"u";function Dr({top:t,left:e,right:s,bottom:n}){return{x:{min:e,max:s},y:{min:t,max:n}}}function kr(t,e){if(!e)return t;const s=e({x:t.left,y:t.top}),n=e({x:t.right,y:t.bottom});return{top:s.y,left:s.x,bottom:n.y,right:n.x}}function Mr(t,e){return Dr(kr(t.getBoundingClientRect(),e))}const B=t=>!!(t&&t.getVelocity);function de(t,e){t.indexOf(e)===-1&&t.push(e)}function Rt(t,e){const s=t.indexOf(e);s>-1&&t.splice(s,1)}class he{constructor(){this.subscriptions=[]}add(e){return de(this.subscriptions,e),()=>Rt(this.subscriptions,e)}notify(e,s,n){const i=this.subscriptions.length;if(i)if(i===1)this.subscriptions[0](e,s,n);else for(let r=0;r<i;r++){const o=this.subscriptions[r];o&&o(e,s,n)}}getSize(){return this.subscriptions.length}clear(){this.subscriptions.length=0}}const Br={useManualTiming:!1};let $t;function Nr(){$t=void 0}const F={now:()=>($t===void 0&&F.set(M.isProcessing||Br.useManualTiming?M.timestamp:performance.now()),$t),set:t=>{$t=t,queueMicrotask(Nr)}};function Ss(t,e){return e?t*(1e3/e):0}const Vs=30,Or=t=>!isNaN(parseFloat(t));class Lr{constructor(e,s={}){this.version="12.5.0",this.canTrackVelocity=null,this.events={},this.updateAndNotify=(n,i=!0)=>{const r=F.now();this.updatedAt!==r&&this.setPrevFrameValue(),this.prev=this.current,this.setCurrent(n),this.current!==this.prev&&this.events.change&&this.events.change.notify(this.current),i&&this.events.renderRequest&&this.events.renderRequest.notify(this.current)},this.hasAnimated=!1,this.setCurrent(e),this.owner=s.owner}setCurrent(e){this.current=e,this.updatedAt=F.now(),this.canTrackVelocity===null&&e!==void 0&&(this.canTrackVelocity=Or(this.current))}setPrevFrameValue(e=this.current){this.prevFrameValue=e,this.prevUpdatedAt=this.updatedAt}onChange(e){return this.on("change",e)}on(e,s){this.events[e]||(this.events[e]=new he);const n=this.events[e].add(s);return e==="change"?()=>{n(),w.read(()=>{this.events.change.getSize()||this.stop()})}:n}clearListeners(){for(const e in this.events)this.events[e].clear()}attach(e,s){this.passiveEffect=e,this.stopPassiveEffect=s}set(e,s=!0){!s||!this.passiveEffect?this.updateAndNotify(e,s):this.passiveEffect(e,this.updateAndNotify)}setWithVelocity(e,s,n){this.set(s),this.prev=void 0,this.prevFrameValue=e,this.prevUpdatedAt=this.updatedAt-n}jump(e,s=!0){this.updateAndNotify(e),this.prev=e,this.prevUpdatedAt=this.prevFrameValue=void 0,s&&this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}get(){return this.current}getPrevious(){return this.prev}getVelocity(){const e=F.now();if(!this.canTrackVelocity||this.prevFrameValue===void 0||e-this.updatedAt>Vs)return 0;const s=Math.min(this.updatedAt-this.prevUpdatedAt,Vs);return Ss(parseFloat(this.current)-parseFloat(this.prevFrameValue),s)}start(e){return this.stop(),new Promise(s=>{this.hasAnimated=!0,this.animation=e(s),this.events.animationStart&&this.events.animationStart.notify()}).then(()=>{this.events.animationComplete&&this.events.animationComplete.notify(),this.clearAnimation()})}stop(){this.animation&&(this.animation.stop(),this.events.animationCancel&&this.events.animationCancel.notify()),this.clearAnimation()}isAnimating(){return!!this.animation}clearAnimation(){delete this.animation}destroy(){this.clearListeners(),this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}}function pt(t,e){return new Lr(t,e)}const Es={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"]},me={};for(const t in Es)me[t]={isEnabled:e=>Es[t].some(s=>!!e[s])};const Ts=()=>({translate:0,scale:1,origin:0,originPoint:0}),ot=()=>({x:Ts(),y:Ts()}),_s=()=>({min:0,max:0}),C=()=>({x:_s(),y:_s()}),Ps=t=>/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(t),ws=t=>/^0[^.\s]+$/u.test(t),Rr=typeof window<"u",fe={current:null},As={current:!1};function $r(){if(As.current=!0,!!Rr)if(window.matchMedia){const t=window.matchMedia("(prefers-reduced-motion)"),e=()=>fe.current=t.matches;t.addListener(e),e()}else fe.current=!1}const X=(t,e,s)=>s>e?e:s<t?t:s,rt={test:t=>typeof t=="number",parse:parseFloat,transform:t=>t},gt={...rt,transform:t=>X(0,1,t)},jt={...rt,default:1},yt=t=>Math.round(t*1e5)/1e5,pe=/-?(?:\d+(?:\.\d+)?|\.\d+)/gu;function jr(t){return t==null}const Fr=/^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu,ge=(t,e)=>s=>!!(typeof s=="string"&&Fr.test(s)&&s.startsWith(t)||e&&!jr(s)&&Object.prototype.hasOwnProperty.call(s,e)),Cs=(t,e,s)=>n=>{if(typeof n!="string")return n;const[i,r,o,l]=n.match(pe);return{[t]:parseFloat(i),[e]:parseFloat(r),[s]:parseFloat(o),alpha:l!==void 0?parseFloat(l):1}},Ir=t=>X(0,255,t),ye={...rt,transform:t=>Math.round(Ir(t))},et={test:ge("rgb","red"),parse:Cs("red","green","blue"),transform:({red:t,green:e,blue:s,alpha:n=1})=>"rgba("+ye.transform(t)+", "+ye.transform(e)+", "+ye.transform(s)+", "+yt(gt.transform(n))+")"};function Ur(t){let e="",s="",n="",i="";return t.length>5?(e=t.substring(1,3),s=t.substring(3,5),n=t.substring(5,7),i=t.substring(7,9)):(e=t.substring(1,2),s=t.substring(2,3),n=t.substring(3,4),i=t.substring(4,5),e+=e,s+=s,n+=n,i+=i),{red:parseInt(e,16),green:parseInt(s,16),blue:parseInt(n,16),alpha:i?parseInt(i,16)/255:1}}const ve={test:ge("#"),parse:Ur,transform:et.transform},vt=t=>({test:e=>typeof e=="string"&&e.endsWith(t)&&e.split(" ").length===1,parse:parseFloat,transform:e=>`${e}${t}`}),Z=vt("deg"),G=vt("%"),x=vt("px"),zr=vt("vh"),Kr=vt("vw"),Ds={...G,parse:t=>G.parse(t)/100,transform:t=>G.transform(t*100)},at={test:ge("hsl","hue"),parse:Cs("hue","saturation","lightness"),transform:({hue:t,saturation:e,lightness:s,alpha:n=1})=>"hsla("+Math.round(t)+", "+G.transform(yt(e))+", "+G.transform(yt(s))+", "+yt(gt.transform(n))+")"},N={test:t=>et.test(t)||ve.test(t)||at.test(t),parse:t=>et.test(t)?et.parse(t):at.test(t)?at.parse(t):ve.parse(t),transform:t=>typeof t=="string"?t:t.hasOwnProperty("red")?et.transform(t):at.transform(t)},Gr=/(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu;function Wr(t){var e,s;return isNaN(t)&&typeof t=="string"&&(((e=t.match(pe))===null||e===void 0?void 0:e.length)||0)+(((s=t.match(Gr))===null||s===void 0?void 0:s.length)||0)>0}const ks="number",Ms="color",Hr="var",qr="var(",Bs="${}",Yr=/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 bt(t){const e=t.toString(),s=[],n={color:[],number:[],var:[]},i=[];let r=0;const l=e.replace(Yr,c=>(N.test(c)?(n.color.push(r),i.push(Ms),s.push(N.parse(c))):c.startsWith(qr)?(n.var.push(r),i.push(Hr),s.push(c)):(n.number.push(r),i.push(ks),s.push(parseFloat(c))),++r,Bs)).split(Bs);return{values:s,split:l,indexes:n,types:i}}function Ns(t){return bt(t).values}function Os(t){const{split:e,types:s}=bt(t),n=e.length;return i=>{let r="";for(let o=0;o<n;o++)if(r+=e[o],i[o]!==void 0){const l=s[o];l===ks?r+=yt(i[o]):l===Ms?r+=N.transform(i[o]):r+=i[o]}return r}}const Xr=t=>typeof t=="number"?0:t;function Zr(t){const e=Ns(t);return Os(t)(e.map(Xr))}const J={test:Wr,parse:Ns,createTransformer:Os,getAnimatableNone:Zr},Jr=new Set(["brightness","contrast","saturate","opacity"]);function Qr(t){const[e,s]=t.slice(0,-1).split("(");if(e==="drop-shadow")return t;const[n]=s.match(pe)||[];if(!n)return t;const i=s.replace(n,"");let r=Jr.has(e)?1:0;return n!==s&&(r*=100),e+"("+r+i+")"}const ta=/\b([a-z-]*)\(.*?\)/gu,be={...J,getAnimatableNone:t=>{const e=t.match(ta);return e?e.map(Qr).join(" "):t}},ea={borderWidth:x,borderTopWidth:x,borderRightWidth:x,borderBottomWidth:x,borderLeftWidth:x,borderRadius:x,radius:x,borderTopLeftRadius:x,borderTopRightRadius:x,borderBottomRightRadius:x,borderBottomLeftRadius:x,width:x,maxWidth:x,height:x,maxHeight:x,top:x,right:x,bottom:x,left:x,padding:x,paddingTop:x,paddingRight:x,paddingBottom:x,paddingLeft:x,margin:x,marginTop:x,marginRight:x,marginBottom:x,marginLeft:x,backgroundPositionX:x,backgroundPositionY:x},sa={rotate:Z,rotateX:Z,rotateY:Z,rotateZ:Z,scale:jt,scaleX:jt,scaleY:jt,scaleZ:jt,skew:Z,skewX:Z,skewY:Z,distance:x,translateX:x,translateY:x,translateZ:x,x,y:x,z:x,perspective:x,transformPerspective:x,opacity:gt,originX:Ds,originY:Ds,originZ:x},Ls={...rt,transform:Math.round},xe={...ea,...sa,zIndex:Ls,size:x,fillOpacity:gt,strokeOpacity:gt,numOctaves:Ls},na={...xe,color:N,backgroundColor:N,outlineColor:N,fill:N,stroke:N,borderColor:N,borderTopColor:N,borderRightColor:N,borderBottomColor:N,borderLeftColor:N,filter:be,WebkitFilter:be},Rs=t=>na[t];function $s(t,e){let s=Rs(t);return s!==be&&(s=J),s.getAnimatableNone?s.getAnimatableNone(e):void 0}const js=t=>e=>e.test(t),Fs=[rt,x,G,Z,Kr,zr,{test:t=>t==="auto",parse:t=>t}],Is=t=>Fs.find(js(t)),ia=[...Fs,N,J],oa=t=>ia.find(js(t)),lt=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],ct=new Set(lt);function ra(t){return t!==null&&typeof t=="object"&&typeof t.start=="function"}function aa(t){return typeof t=="string"||Array.isArray(t)}const la=["initial",...["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"]];function Us(t){return ra(t.animate)||la.some(e=>aa(t[e]))}function ca(t){return!!(Us(t)||t.variants)}const st=t=>t*180/Math.PI,Se=t=>{const e=st(Math.atan2(t[1],t[0]));return Ve(e)},ua={x:4,y:5,translateX:4,translateY:5,scaleX:0,scaleY:3,scale:t=>(Math.abs(t[0])+Math.abs(t[3]))/2,rotate:Se,rotateZ:Se,skewX:t=>st(Math.atan(t[1])),skewY:t=>st(Math.atan(t[2])),skew:t=>(Math.abs(t[1])+Math.abs(t[2]))/2},Ve=t=>(t=t%360,t<0&&(t+=360),t),zs=Se,Ks=t=>Math.sqrt(t[0]*t[0]+t[1]*t[1]),Gs=t=>Math.sqrt(t[4]*t[4]+t[5]*t[5]),da={x:12,y:13,z:14,translateX:12,translateY:13,translateZ:14,scaleX:Ks,scaleY:Gs,scale:t=>(Ks(t)+Gs(t))/2,rotateX:t=>Ve(st(Math.atan2(t[6],t[5]))),rotateY:t=>Ve(st(Math.atan2(-t[2],t[0]))),rotateZ:zs,rotate:zs,skewX:t=>st(Math.atan(t[4])),skewY:t=>st(Math.atan(t[1])),skew:t=>(Math.abs(t[1])+Math.abs(t[4]))/2};function Ws(t){return t.includes("scale")?1:0}function Ee(t,e){if(!t||t==="none")return Ws(e);const s=t.match(/^matrix3d\(([-\d.e\s,]+)\)$/u);let n,i;if(s)n=da,i=s;else{const l=t.match(/^matrix\(([-\d.e\s,]+)\)$/u);n=ua,i=l}if(!i)return Ws(e);const r=n[e],o=i[1].split(",").map(ma);return typeof r=="function"?r(o):o[r]}const ha=(t,e)=>{const{transform:s="none"}=getComputedStyle(t);return Ee(s,e)};function ma(t){return parseFloat(t.trim())}const Hs=t=>t===rt||t===x,fa=new Set(["x","y","z"]),pa=lt.filter(t=>!fa.has(t));function ga(t){const e=[];return pa.forEach(s=>{const n=t.getValue(s);n!==void 0&&(e.push([s,n.get()]),n.set(s.startsWith("scale")?1:0))}),e}const ut={width:({x:t},{paddingLeft:e="0",paddingRight:s="0"})=>t.max-t.min-parseFloat(e)-parseFloat(s),height:({y:t},{paddingTop:e="0",paddingBottom:s="0"})=>t.max-t.min-parseFloat(e)-parseFloat(s),top:(t,{top:e})=>parseFloat(e),left:(t,{left:e})=>parseFloat(e),bottom:({y:t},{top:e})=>parseFloat(e)+(t.max-t.min),right:({x:t},{left:e})=>parseFloat(e)+(t.max-t.min),x:(t,{transform:e})=>Ee(e,"x"),y:(t,{transform:e})=>Ee(e,"y")};ut.translateX=ut.x,ut.translateY=ut.y;const nt=new Set;let Te=!1,_e=!1;function qs(){if(_e){const t=Array.from(nt).filter(n=>n.needsMeasurement),e=new Set(t.map(n=>n.element)),s=new Map;e.forEach(n=>{const i=ga(n);i.length&&(s.set(n,i),n.render())}),t.forEach(n=>n.measureInitialState()),e.forEach(n=>{n.render();const i=s.get(n);i&&i.forEach(([r,o])=>{var l;(l=n.getValue(r))===null||l===void 0||l.set(o)})}),t.forEach(n=>n.measureEndState()),t.forEach(n=>{n.suspendedScrollY!==void 0&&window.scrollTo(0,n.suspendedScrollY)})}_e=!1,Te=!1,nt.forEach(t=>t.complete()),nt.clear()}function Ys(){nt.forEach(t=>{t.readKeyframes(),t.needsMeasurement&&(_e=!0)})}function ya(){Ys(),qs()}class Pe{constructor(e,s,n,i,r,o=!1){this.isComplete=!1,this.isAsync=!1,this.needsMeasurement=!1,this.isScheduled=!1,this.unresolvedKeyframes=[...e],this.onComplete=s,this.name=n,this.motionValue=i,this.element=r,this.isAsync=o}scheduleResolve(){this.isScheduled=!0,this.isAsync?(nt.add(this),Te||(Te=!0,w.read(Ys),w.resolveKeyframes(qs))):(this.readKeyframes(),this.complete())}readKeyframes(){const{unresolvedKeyframes:e,name:s,element:n,motionValue:i}=this;for(let r=0;r<e.length;r++)if(e[r]===null)if(r===0){const o=i==null?void 0:i.get(),l=e[e.length-1];if(o!==void 0)e[0]=o;else if(n&&s){const c=n.readValue(s,l);c!=null&&(e[0]=c)}e[0]===void 0&&(e[0]=l),i&&o===void 0&&i.set(e[0])}else e[r]=e[r-1]}setFinalKeyframe(){}measureInitialState(){}renderEndStyles(){}measureEndState(){}complete(){this.isComplete=!0,this.onComplete(this.unresolvedKeyframes,this.finalKeyframe),nt.delete(this)}cancel(){this.isComplete||(this.isScheduled=!1,nt.delete(this))}resume(){this.isComplete||this.scheduleResolve()}}function va(t,e,s){for(const n in e){const i=e[n],r=s[n];if(B(i))t.addValue(n,i);else if(B(r))t.addValue(n,pt(i,{owner:t}));else if(r!==i)if(t.hasValue(n)){const o=t.getValue(n);o.liveStyle===!0?o.jump(i):o.hasAnimated||o.set(i)}else{const o=t.getStaticValue(n);t.addValue(n,pt(o!==void 0?o:i,{owner:t}))}}for(const n in s)e[n]===void 0&&t.removeValue(n);return e}function Xs(t){const e=[{},{}];return t==null||t.values.forEach((s,n)=>{e[0][n]=s.get(),e[1][n]=s.getVelocity()}),e}function Zs(t,e,s,n){if(typeof e=="function"){const[i,r]=Xs(n);e=e(s!==void 0?s:t.custom,i,r)}if(typeof e=="string"&&(e=t.variants&&t.variants[e]),typeof e=="function"){const[i,r]=Xs(n);e=e(s!==void 0?s:t.custom,i,r)}return e}const Js=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"];class Qs{scrapeMotionValuesFromProps(e,s,n){return{}}constructor({parent:e,props:s,presenceContext:n,reducedMotionConfig:i,blockInitialAnimation:r,visualState:o},l={}){this.current=null,this.children=new Set,this.isVariantNode=!1,this.isControllingVariants=!1,this.shouldReduceMotion=null,this.values=new Map,this.KeyframeResolver=Pe,this.features={},this.valueSubscriptions=new Map,this.prevMotionValues={},this.events={},this.propEventSubscriptions={},this.notifyUpdate=()=>this.notify("Update",this.latestValues),this.render=()=>{this.current&&(this.triggerBuild(),this.renderInstance(this.current,this.renderState,this.props.style,this.projection))},this.renderScheduledAt=0,this.scheduleRender=()=>{const f=F.now();this.renderScheduledAt<f&&(this.renderScheduledAt=f,w.render(this.render,!1,!0))};const{latestValues:c,renderState:d,onUpdate:u}=o;this.onUpdate=u,this.latestValues=c,this.baseTarget={...c},this.initialValues=s.initial?{...c}:{},this.renderState=d,this.parent=e,this.props=s,this.presenceContext=n,this.depth=e?e.depth+1:0,this.reducedMotionConfig=i,this.options=l,this.blockInitialAnimation=!!r,this.isControllingVariants=Us(s),this.isVariantNode=ca(s),this.isVariantNode&&(this.variantChildren=new Set),this.manuallyAnimateOnMount=!!(e&&e.current);const{willChange:h,...m}=this.scrapeMotionValuesFromProps(s,{},this);for(const f in m){const p=m[f];c[f]!==void 0&&B(p)&&p.set(c[f],!1)}}mount(e){this.current=e,tt.set(e,this),this.projection&&!this.projection.instance&&this.projection.mount(e),this.parent&&this.isVariantNode&&!this.isControllingVariants&&(this.removeFromVariantTree=this.parent.addVariantChild(this)),this.values.forEach((s,n)=>this.bindToMotionValue(n,s)),As.current||$r(),this.shouldReduceMotion=this.reducedMotionConfig==="never"?!1:this.reducedMotionConfig==="always"?!0:fe.current,this.parent&&this.parent.children.add(this),this.update(this.props,this.presenceContext)}unmount(){this.projection&&this.projection.unmount(),K(this.notifyUpdate),K(this.render),this.valueSubscriptions.forEach(e=>e()),this.valueSubscriptions.clear(),this.removeFromVariantTree&&this.removeFromVariantTree(),this.parent&&this.parent.children.delete(this);for(const e in this.events)this.events[e].clear();for(const e in this.features){const s=this.features[e];s&&(s.unmount(),s.isMounted=!1)}this.current=null}bindToMotionValue(e,s){this.valueSubscriptions.has(e)&&this.valueSubscriptions.get(e)();const n=ct.has(e);n&&this.onBindTransform&&this.onBindTransform();const i=s.on("change",l=>{this.latestValues[e]=l,this.props.onUpdate&&w.preRender(this.notifyUpdate),n&&this.projection&&(this.projection.isTransformDirty=!0)}),r=s.on("renderRequest",this.scheduleRender);let o;window.MotionCheckAppearSync&&(o=window.MotionCheckAppearSync(this,e,s)),this.valueSubscriptions.set(e,()=>{i(),r(),o&&o(),s.owner&&s.stop()})}sortNodePosition(e){return!this.current||!this.sortInstanceNodePosition||this.type!==e.type?0:this.sortInstanceNodePosition(this.current,e.current)}updateFeatures(){let e="animation";for(e in me){const s=me[e];if(!s)continue;const{isEnabled:n,Feature:i}=s;if(!this.features[e]&&i&&n(this.props)&&(this.features[e]=new i(this)),this.features[e]){const r=this.features[e];r.isMounted?r.update():(r.mount(),r.isMounted=!0)}}}triggerBuild(){this.build(this.renderState,this.latestValues,this.props)}measureViewportBox(){return this.current?this.measureInstanceViewportBox(this.current,this.props):C()}getStaticValue(e){return this.latestValues[e]}setStaticValue(e,s){this.latestValues[e]=s}update(e,s){(e.transformTemplate||this.props.transformTemplate)&&this.scheduleRender(),this.prevProps=this.props,this.props=e,this.prevPresenceContext=this.presenceContext,this.presenceContext=s;for(let n=0;n<Js.length;n++){const i=Js[n];this.propEventSubscriptions[i]&&(this.propEventSubscriptions[i](),delete this.propEventSubscriptions[i]);const r="on"+i,o=e[r];o&&(this.propEventSubscriptions[i]=this.on(i,o))}this.prevMotionValues=va(this,this.scrapeMotionValuesFromProps(e,this.prevProps,this),this.prevMotionValues),this.handleChildMotionValue&&this.handleChildMotionValue(),this.onUpdate&&this.onUpdate(this)}getProps(){return this.props}getVariant(e){return this.props.variants?this.props.variants[e]:void 0}getDefaultTransition(){return this.props.transition}getTransformPagePoint(){return this.props.transformPagePoint}getClosestVariantNode(){return this.isVariantNode?this:this.parent?this.parent.getClosestVariantNode():void 0}addVariantChild(e){const s=this.getClosestVariantNode();if(s)return s.variantChildren&&s.variantChildren.add(e),()=>s.variantChildren.delete(e)}addValue(e,s){const n=this.values.get(e);s!==n&&(n&&this.removeValue(e),this.bindToMotionValue(e,s),this.values.set(e,s),this.latestValues[e]=s.get())}removeValue(e){this.values.delete(e);const s=this.valueSubscriptions.get(e);s&&(s(),this.valueSubscriptions.delete(e)),delete this.latestValues[e],this.removeValueFromRenderState(e,this.renderState)}hasValue(e){return this.values.has(e)}getValue(e,s){if(this.props.values&&this.props.values[e])return this.props.values[e];let n=this.values.get(e);return n===void 0&&s!==void 0&&(n=pt(s===null?void 0:s,{owner:this}),this.addValue(e,n)),n}readValue(e,s){var n;let i=this.latestValues[e]!==void 0||!this.current?this.latestValues[e]:(n=this.getBaseTargetFromProps(this.props,e))!==null&&n!==void 0?n:this.readValueFromInstance(this.current,e,this.options);return i!=null&&(typeof i=="string"&&(Ps(i)||ws(i))?i=parseFloat(i):!oa(i)&&J.test(s)&&(i=$s(e,s)),this.setBaseTarget(e,B(i)?i.get():i)),B(i)?i.get():i}setBaseTarget(e,s){this.baseTarget[e]=s}getBaseTarget(e){var s;const{initial:n}=this.props;let i;if(typeof n=="string"||typeof n=="object"){const o=Zs(this.props,n,(s=this.presenceContext)===null||s===void 0?void 0:s.custom);o&&(i=o[e])}if(n&&i!==void 0)return i;const r=this.getBaseTargetFromProps(this.props,e);return r!==void 0&&!B(r)?r:this.initialValues[e]!==void 0&&i===void 0?void 0:this.baseTarget[e]}on(e,s){return this.events[e]||(this.events[e]=new he),this.events[e].add(s)}notify(e,...s){this.events[e]&&this.events[e].notify(...s)}}function ba(t){return typeof t=="number"?t===0:t!==null?t==="none"||t==="0"||ws(t):!0}const tn=new Set(["width","height","top","left","right","bottom",...lt]),xa=new Set(["auto","none","0"]);function Sa(t,e,s){let n=0,i;for(;n<t.length&&!i;){const r=t[n];typeof r=="string"&&!xa.has(r)&&bt(r).values.length&&(i=t[n]),n++}if(i&&s)for(const r of e)t[r]=$s(s,i)}const Va=/^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u;function Ea(t){const e=Va.exec(t);if(!e)return[,];const[,s,n,i]=e;return[`--${s??n}`,i]}function en(t,e,s=1){const[n,i]=Ea(t);if(!n)return;const r=window.getComputedStyle(e).getPropertyValue(n);if(r){const o=r.trim();return Ps(o)?parseFloat(o):o}return ie(i)?en(i,e,s+1):i}class sn extends Pe{constructor(e,s,n,i,r){super(e,s,n,i,r,!0)}readKeyframes(){const{unresolvedKeyframes:e,element:s,name:n}=this;if(!s||!s.current)return;super.readKeyframes();for(let c=0;c<e.length;c++){let d=e[c];if(typeof d=="string"&&(d=d.trim(),ie(d))){const u=en(d,s.current);u!==void 0&&(e[c]=u),c===e.length-1&&(this.finalKeyframe=d)}}if(this.resolveNoneKeyframes(),!tn.has(n)||e.length!==2)return;const[i,r]=e,o=Is(i),l=Is(r);if(o!==l)if(Hs(o)&&Hs(l))for(let c=0;c<e.length;c++){const d=e[c];typeof d=="string"&&(e[c]=parseFloat(d))}else this.needsMeasurement=!0}resolveNoneKeyframes(){const{unresolvedKeyframes:e,name:s}=this,n=[];for(let i=0;i<e.length;i++)ba(e[i])&&n.push(i);n.length&&Sa(e,n,s)}measureInitialState(){const{element:e,unresolvedKeyframes:s,name:n}=this;if(!e||!e.current)return;n==="height"&&(this.suspendedScrollY=window.pageYOffset),this.measuredOrigin=ut[n](e.measureViewportBox(),window.getComputedStyle(e.current)),s[0]=this.measuredOrigin;const i=s[s.length-1];i!==void 0&&e.getValue(n,i).jump(i,!1)}measureEndState(){var e;const{element:s,name:n,unresolvedKeyframes:i}=this;if(!s||!s.current)return;const r=s.getValue(n);r&&r.jump(this.measuredOrigin,!1);const o=i.length-1,l=i[o];i[o]=ut[n](s.measureViewportBox(),window.getComputedStyle(s.current)),l!==null&&this.finalKeyframe===void 0&&(this.finalKeyframe=l),!((e=this.removedTransforms)===null||e===void 0)&&e.length&&this.removedTransforms.forEach(([c,d])=>{s.getValue(c).set(d)}),this.resolveNoneKeyframes()}}class nn extends Qs{constructor(){super(...arguments),this.KeyframeResolver=sn}sortInstanceNodePosition(e,s){return e.compareDocumentPosition(s)&2?1:-1}getBaseTargetFromProps(e,s){return e.style?e.style[s]:void 0}removeValueFromRenderState(e,{vars:s,style:n}){delete s[e],delete n[e]}handleChildMotionValue(){this.childSubscription&&(this.childSubscription(),delete this.childSubscription);const{children:e}=this.props;B(e)&&(this.childSubscription=e.on("change",s=>{this.current&&(this.current.textContent=`${s}`)}))}}const on=(t,e)=>e&&typeof t=="number"?e.transform(t):t,Ta={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},_a=lt.length;function Pa(t,e,s){let n="",i=!0;for(let r=0;r<_a;r++){const o=lt[r],l=t[o];if(l===void 0)continue;let c=!0;if(typeof l=="number"?c=l===(o.startsWith("scale")?1:0):c=parseFloat(l)===0,!c||s){const d=on(l,xe[o]);if(!c){i=!1;const u=Ta[o]||o;n+=`${u}(${d}) `}s&&(e[o]=d)}}return n=n.trim(),s?n=s(e,i?"":n):i&&(n="none"),n}function rn(t,e,s){const{style:n,vars:i,transformOrigin:r}=t;let o=!1,l=!1;for(const c in e){const d=e[c];if(ct.has(c)){o=!0;continue}else if(ne(c)){i[c]=d;continue}else{const u=on(d,xe[c]);c.startsWith("origin")?(l=!0,r[c]=u):n[c]=u}}if(e.transform||(o||s?n.transform=Pa(e,t.transform,s):n.transform&&(n.transform="none")),l){const{originX:c="50%",originY:d="50%",originZ:u=0}=r;n.transformOrigin=`${c} ${d} ${u}`}}function an(t,{style:e,vars:s},n,i){Object.assign(t.style,e,i&&i.getProjectionStyles(n));for(const r in s)t.style.setProperty(r,s[r])}function wa(t,{layout:e,layoutId:s}){return ct.has(t)||t.startsWith("origin")||(e||s!==void 0)&&(!!ht[t]||t==="opacity")}function ln(t,e,s){var n;const{style:i}=t,r={};for(const o in i)(B(i[o])||e.style&&B(e.style[o])||wa(o,t)||((n=s==null?void 0:s.getValue(o))===null||n===void 0?void 0:n.liveStyle)!==void 0)&&(r[o]=i[o]);return r}function Aa(t){return window.getComputedStyle(t)}class cn extends nn{constructor(){super(...arguments),this.type="html",this.renderInstance=an}readValueFromInstance(e,s){if(ct.has(s))return ha(e,s);{const n=Aa(e),i=(ne(s)?n.getPropertyValue(s):n[s])||0;return typeof i=="string"?i.trim():i}}measureInstanceViewportBox(e,{transformPagePoint:s}){return Mr(e,s)}build(e,s,n){rn(e,s,n.transformTemplate)}scrapeMotionValuesFromProps(e,s,n){return ln(e,s,n)}}const we=t=>t.replace(/([a-z])([A-Z])/gu,"$1-$2").toLowerCase(),Ca={offset:"stroke-dashoffset",array:"stroke-dasharray"},Da={offset:"strokeDashoffset",array:"strokeDasharray"};function ka(t,e,s=1,n=0,i=!0){t.pathLength=1;const r=i?Ca:Da;t[r.offset]=x.transform(-n);const o=x.transform(e),l=x.transform(s);t[r.array]=`${o} ${l}`}function un(t,e,s){return typeof t=="string"?t:x.transform(e+s*t)}function Ma(t,e,s){const n=un(e,t.x,t.width),i=un(s,t.y,t.height);return`${n} ${i}`}function Ba(t,{attrX:e,attrY:s,attrScale:n,originX:i,originY:r,pathLength:o,pathSpacing:l=1,pathOffset:c=0,...d},u,h){if(rn(t,d,h),u){t.style.viewBox&&(t.attrs.viewBox=t.style.viewBox);return}t.attrs=t.style,t.style={};const{attrs:m,style:f,dimensions:p}=t;m.transform&&(p&&(f.transform=m.transform),delete m.transform),p&&(i!==void 0||r!==void 0||f.transform)&&(f.transformOrigin=Ma(p,i!==void 0?i:.5,r!==void 0?r:.5)),e!==void 0&&(m.x=e),s!==void 0&&(m.y=s),n!==void 0&&(m.scale=n),o!==void 0&&ka(m,o,l,c,!1)}const dn=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"]),Na=t=>typeof t=="string"&&t.toLowerCase()==="svg";function Oa(t,e){try{e.dimensions=typeof t.getBBox=="function"?t.getBBox():t.getBoundingClientRect()}catch{e.dimensions={x:0,y:0,width:0,height:0}}}function La(t,e,s,n){an(t,e,void 0,n);for(const i in e.attrs)t.setAttribute(dn.has(i)?i:we(i),e.attrs[i])}function Ra(t,e,s){const n=ln(t,e,s);for(const i in t)if(B(t[i])||B(e[i])){const r=lt.indexOf(i)!==-1?"attr"+i.charAt(0).toUpperCase()+i.substring(1):i;n[r]=t[i]}return n}class hn extends nn{constructor(){super(...arguments),this.type="svg",this.isSVGTag=!1,this.measureInstanceViewportBox=C,this.updateDimensions=()=>{this.current&&!this.renderState.dimensions&&Oa(this.current,this.renderState)}}getBaseTargetFromProps(e,s){return e[s]}readValueFromInstance(e,s){if(ct.has(s)){const n=Rs(s);return n&&n.default||0}return s=dn.has(s)?s:we(s),e.getAttribute(s)}scrapeMotionValuesFromProps(e,s,n){return Ra(e,s,n)}onBindTransform(){this.current&&!this.renderState.dimensions&&w.postRender(this.updateDimensions)}build(e,s,n){Ba(e,s,this.isSVGTag,n.transformTemplate)}renderInstance(e,s,n,i){La(e,s,n,i)}mount(e){this.isSVGTag=Na(e.tagName),super.mount(e)}}function $a(t,e){return hs(t)?new hn(e):new cn(e)}function Ae(t){let e;return()=>(e===void 0&&(e=t()),e)}const ja=Ae(()=>window.ScrollTimeline!==void 0);class Fa{constructor(e){this.stop=()=>this.runAll("stop"),this.animations=e.filter(Boolean)}get finished(){return Promise.all(this.animations.map(e=>"finished"in e?e.finished:e))}getAll(e){return this.animations[0][e]}setAll(e,s){for(let n=0;n<this.animations.length;n++)this.animations[n][e]=s}attachTimeline(e,s){const n=this.animations.map(i=>{if(ja()&&i.attachTimeline)return i.attachTimeline(e);if(typeof s=="function")return s(i)});return()=>{n.forEach((i,r)=>{i&&i(),this.animations[r].stop()})}}get time(){return this.getAll("time")}set time(e){this.setAll("time",e)}get speed(){return this.getAll("speed")}set speed(e){this.setAll("speed",e)}get startTime(){return this.getAll("startTime")}get duration(){let e=0;for(let s=0;s<this.animations.length;s++)e=Math.max(e,this.animations[s].duration);return e}runAll(e){this.animations.forEach(s=>s[e]())}flatten(){this.runAll("flatten")}play(){this.runAll("play")}pause(){this.runAll("pause")}cancel(){this.runAll("cancel")}complete(){this.runAll("complete")}}class mn extends Fa{then(e,s){return Promise.all(this.animations).then(e).catch(s)}}const W=t=>t*1e3,H=t=>t/1e3,Ft=2e4;function Ce(t){let e=0;const s=50;let n=t.next(e);for(;!n.done&&e<Ft;)e+=s,n=t.next(e);return e>=Ft?1/0:e}const xt=(t,e,s)=>{const n=e-t;return n===0?1:(s-t)/n},fn=(t,e,s=10)=>{let n="";const i=Math.max(Math.round(e/s),2);for(let r=0;r<i;r++)n+=t(xt(0,i-1,r))+", ";return`linear(${n.substring(0,n.length-2)})`},Ia=5;function pn(t,e,s){const n=Math.max(e-Ia,0);return Ss(s-t(n),e-n)}const A={stiffness:100,damping:10,mass:1,velocity:0,duration:800,bounce:.3,visualDuration:.3,restSpeed:{granular:.01,default:2},restDelta:{granular:.005,default:.5},minDuration:.01,maxDuration:10,minDamping:.05,maxDamping:1},gn=.001;function Ua({duration:t=A.duration,bounce:e=A.bounce,velocity:s=A.velocity,mass:n=A.mass}){let i,r,o=1-e;o=X(A.minDamping,A.maxDamping,o),t=X(A.minDuration,A.maxDuration,H(t)),o<1?(i=d=>{const u=d*o,h=u*t,m=u-s,f=De(d,o),p=Math.exp(-h);return gn-m/f*p},r=d=>{const h=d*o*t,m=h*s+s,f=Math.pow(o,2)*Math.pow(d,2)*t,p=Math.exp(-h),g=De(Math.pow(d,2),o);return(-i(d)+gn>0?-1:1)*((m-f)*p)/g}):(i=d=>{const u=Math.exp(-d*t),h=(d-s)*t+1;return-.001+u*h},r=d=>{const u=Math.exp(-d*t),h=(s-d)*(t*t);return u*h});const l=5/t,c=Ka(i,r,l);if(t=W(t),isNaN(c))return{stiffness:A.stiffness,damping:A.damping,duration:t};{const d=Math.pow(c,2)*n;return{stiffness:d,damping:o*2*Math.sqrt(n*d),duration:t}}}const za=12;function Ka(t,e,s){let n=s;for(let i=1;i<za;i++)n=n-t(n)/e(n);return n}function De(t,e){return t*Math.sqrt(1-e*e)}const Ga=["duration","bounce"],Wa=["stiffness","damping","mass"];function yn(t,e){return e.some(s=>t[s]!==void 0)}function Ha(t){let e={velocity:A.velocity,stiffness:A.stiffness,damping:A.damping,mass:A.mass,isResolvedFromDuration:!1,...t};if(!yn(t,Wa)&&yn(t,Ga))if(t.visualDuration){const s=t.visualDuration,n=2*Math.PI/(s*1.2),i=n*n,r=2*X(.05,1,1-(t.bounce||0))*Math.sqrt(i);e={...e,mass:A.mass,stiffness:i,damping:r}}else{const s=Ua(t);e={...e,...s,mass:A.mass},e.isResolvedFromDuration=!0}return e}function ke(t=A.visualDuration,e=A.bounce){const s=typeof t!="object"?{visualDuration:t,keyframes:[0,1],bounce:e}:t;let{restSpeed:n,restDelta:i}=s;const r=s.keyframes[0],o=s.keyframes[s.keyframes.length-1],l={done:!1,value:r},{stiffness:c,damping:d,mass:u,duration:h,velocity:m,isResolvedFromDuration:f}=Ha({...s,velocity:-H(s.velocity||0)}),p=m||0,g=d/(2*Math.sqrt(c*u)),v=o-r,y=H(Math.sqrt(c/u)),S=Math.abs(v)<5;n||(n=S?A.restSpeed.granular:A.restSpeed.default),i||(i=S?A.restDelta.granular:A.restDelta.default);let E;if(g<1){const b=De(y,g);E=T=>{const k=Math.exp(-g*y*T);return o-k*((p+g*y*v)/b*Math.sin(b*T)+v*Math.cos(b*T))}}else if(g===1)E=b=>o-Math.exp(-y*b)*(v+(p+y*v)*b);else{const b=y*Math.sqrt(g*g-1);E=T=>{const k=Math.exp(-g*y*T),V=Math.min(b*T,300);return o-k*((p+g*y*v)*Math.sinh(V)+b*v*Math.cosh(V))/b}}const _={calculatedDuration:f&&h||null,next:b=>{const T=E(b);if(f)l.done=b>=h;else{let k=0;g<1&&(k=b===0?W(p):pn(E,b,T));const V=Math.abs(k)<=n,P=Math.abs(o-T)<=i;l.done=V&&P}return l.value=l.done?o:T,l},toString:()=>{const b=Math.min(Ce(_),Ft),T=fn(k=>_.next(b*k).value,b,30);return b+"ms "+T}};return _}function qa(t,e=100,s){const n=s({...t,keyframes:[0,e]}),i=Math.min(Ce(n),Ft);return{type:"keyframes",ease:r=>n.next(i*r).value/e,duration:H(i)}}function It(t){return typeof t=="function"}const Ya=(t,e,s)=>{const n=e-t;return((s-t)%n+n)%n+t},vn=t=>Array.isArray(t)&&typeof t[0]!="number";function bn(t,e){return vn(t)?t[Ya(0,t.length,e)]:t}const D=(t,e,s)=>t+(e-t)*s;function xn(t,e){const s=t[t.length-1];for(let n=1;n<=e;n++){const i=xt(0,e,n);t.push(D(s,1,i))}}function Sn(t){const e=[0];return xn(e,t.length-1),e}function Me(t,e,s){var n;if(t instanceof EventTarget)return[t];if(typeof t=="string"){let i=document;const r=(n=s==null?void 0:s[t])!==null&&n!==void 0?n:i.querySelectorAll(t);return r?Array.from(r):[]}return Array.from(t)}function Be(t){return typeof t=="object"&&!Array.isArray(t)}function Vn(t,e,s,n){return typeof t=="string"&&Be(e)?Me(t,s,n):t instanceof NodeList?Array.from(t):Array.isArray(t)?t:[t]}function Xa(t,e,s){return t*(e+1)}function En(t,e,s,n){var i;return typeof e=="number"?e:e.startsWith("-")||e.startsWith("+")?Math.max(0,t+parseFloat(e)):e==="<"?s:(i=n.get(e))!==null&&i!==void 0?i:t}function Za(t,e,s){for(let n=0;n<t.length;n++){const i=t[n];i.at>e&&i.at<s&&(Rt(t,i),n--)}}function Ja(t,e,s,n,i,r){Za(t,i,r);for(let o=0;o<e.length;o++)t.push({value:e[o],at:D(i,r,n[o]),easing:bn(s,o)})}function Qa(t,e){for(let s=0;s<t.length;s++)t[s]=t[s]/(e+1)}function tl(t,e){return t.at===e.at?t.value===null?1:e.value===null?-1:0:t.at-e.at}const el="easeInOut";function sl(t,{defaultTransition:e={},...s}={},n,i){const r=e.duration||.3,o=new Map,l=new Map,c={},d=new Map;let u=0,h=0,m=0;for(let f=0;f<t.length;f++){const p=t[f];if(typeof p=="string"){d.set(p,h);continue}else if(!Array.isArray(p)){d.set(p.name,En(h,p.at,u,d));continue}let[g,v,y={}]=p;y.at!==void 0&&(h=En(h,y.at,u,d));let S=0;const E=(_,b,T,k=0,V=0)=>{const P=nl(_),{delay:L=0,times:U=Sn(P),type:rs="keyframes",repeat:te,repeatType:lm,repeatDelay:cm=0,...Jh}=b;let{ease:Q=e.ease||"easeOut",duration:j}=b;const Po=typeof L=="function"?L(k,V):L,wo=P.length,Ao=It(rs)?rs:i==null?void 0:i[rs];if(wo<=2&&Ao){let kt=100;if(wo===2&&rl(P)){const Mt=P[1]-P[0];kt=Math.abs(Mt)}const ee={...Jh};j!==void 0&&(ee.duration=W(j));const se=qa(ee,kt,Ao);Q=se.ease,j=se.duration}j??(j=r);const Co=h+Po;U.length===1&&U[0]===0&&(U[1]=1);const Do=U.length-P.length;if(Do>0&&xn(U,Do),P.length===1&&P.unshift(null),te){j=Xa(j,te);const kt=[...P],ee=[...U];Q=Array.isArray(Q)?[...Q]:[Q];const se=[...Q];for(let Mt=0;Mt<te;Mt++){P.push(...kt);for(let Bt=0;Bt<kt.length;Bt++)U.push(ee[Bt]+(Mt+1)),Q.push(Bt===0?"linear":bn(se,Bt-1))}Qa(U,te)}const ko=Co+j;Ja(T,P,Q,U,Co,ko),S=Math.max(Po+j,S),m=Math.max(ko,m)};if(B(g)){const _=Tn(g,l);E(v,y,_n("default",_))}else{const _=Vn(g,v,n,c),b=_.length;for(let T=0;T<b;T++){v=v,y=y;const k=_[T],V=Tn(k,l);for(const P in v)E(v[P],il(y,P),_n(P,V),T,b)}}u=h,h+=S}return l.forEach((f,p)=>{for(const g in f){const v=f[g];v.sort(tl);const y=[],S=[],E=[];for(let b=0;b<v.length;b++){const{at:T,value:k,easing:V}=v[b];y.push(k),S.push(xt(0,m,T)),E.push(V||"easeOut")}S[0]!==0&&(S.unshift(0),y.unshift(y[0]),E.unshift(el)),S[S.length-1]!==1&&(S.push(1),y.push(null)),o.has(p)||o.set(p,{keyframes:{},transition:{}});const _=o.get(p);_.keyframes[g]=y,_.transition[g]={...e,duration:m,ease:E,times:S,...s}}}),o}function Tn(t,e){return!e.has(t)&&e.set(t,{}),e.get(t)}function _n(t,e){return e[t]||(e[t]=[]),e[t]}function nl(t){return Array.isArray(t)?t:[t]}function il(t,e){return t&&t[e]?{...t,...t[e]}:{...t}}const ol=t=>typeof t=="number",rl=t=>t.every(ol);function Ne(t,e){return t?t[e]||t.default||t:void 0}const al=t=>Array.isArray(t),ll=t=>!!(t&&typeof t=="object"&&t.mix&&t.toValue),cl=t=>al(t)?t[t.length-1]||0:t;function ul(t,e,s){const n=t.getProps();return Zs(n,e,n.custom,t)}function dl(t,e,s){t.hasValue(e)?t.getValue(e).set(s):t.addValue(e,pt(s))}function hl(t,e){const s=ul(t,e);let{transitionEnd:n={},transition:i={},...r}=s||{};r={...r,...n};for(const o in r){const l=cl(r[o]);dl(t,o,l)}}function ml(t){return!!(B(t)&&t.add)}function fl(t,e){const s=t.getValue("willChange");if(ml(s))return s.add(e)}const pl="data-"+we("framerAppearId");function Pn(t){return t.props[pl]}function wn(t,e){t.timeline=e,t.onfinish=null}const Oe=t=>Array.isArray(t)&&typeof t[0]=="number",gl={linearEasing:void 0};function yl(t,e){const s=Ae(t);return()=>{var n;return(n=gl[e])!==null&&n!==void 0?n:s()}}const Ut=yl(()=>{try{document.createElement("div").animate({opacity:0},{easing:"linear(0, 1)"})}catch{return!1}return!0},"linearEasing");function An(t){return!!(typeof t=="function"&&Ut()||!t||typeof t=="string"&&(t in Le||Ut())||Oe(t)||Array.isArray(t)&&t.every(An))}const St=([t,e,s,n])=>`cubic-bezier(${t}, ${e}, ${s}, ${n})`,Le={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:St([0,.65,.55,1]),circOut:St([.55,0,1,.45]),backIn:St([.31,.01,.66,-.59]),backOut:St([.33,1.53,.69,.99])};function Cn(t,e){if(t)return typeof t=="function"&&Ut()?fn(t,e):Oe(t)?St(t):Array.isArray(t)?t.map(s=>Cn(s,e)||Le.easeOut):Le[t]}const Dn=(t,e,s)=>(((1-3*s+3*e)*t+(3*s-6*e))*t+3*e)*t,vl=1e-7,bl=12;function xl(t,e,s,n,i){let r,o,l=0;do o=e+(s-e)/2,r=Dn(o,n,i)-t,r>0?s=o:e=o;while(Math.abs(r)>vl&&++l<bl);return o}function Vt(t,e,s,n){if(t===e&&s===n)return O;const i=r=>xl(r,0,1,t,s);return r=>r===0||r===1?r:Dn(i(r),e,n)}const kn=t=>e=>e<=.5?t(2*e)/2:(2-t(2*(1-e)))/2,Mn=t=>e=>1-t(1-e),Bn=Vt(.33,1.53,.69,.99),Re=Mn(Bn),Nn=kn(Re),On=t=>(t*=2)<1?.5*Re(t):.5*(2-Math.pow(2,-10*(t-1))),$e=t=>1-Math.sin(Math.acos(t)),Ln=Mn($e),Rn=kn($e),$n=(t,e)=>e==="zIndex"?!1:!!(typeof t=="number"||Array.isArray(t)||typeof t=="string"&&(J.test(t)||t==="0")&&!t.startsWith("url("));function Sl(t){const e=t[0];if(t.length===1)return!0;for(let s=0;s<t.length;s++)if(t[s]!==e)return!0}function Vl(t,e,s,n){const i=t[0];if(i===null)return!1;if(e==="display"||e==="visibility")return!0;const r=t[t.length-1],o=$n(i,e),l=$n(r,e);return!o||!l?!1:Sl(t)||(s==="spring"||It(s))&&n}const El=t=>t!==null;function zt(t,{repeat:e,repeatType:s="loop"},n){const i=t.filter(El),r=e&&s!=="loop"&&e%2===1?0:i.length-1;return!r||n===void 0?i[r]:n}const Tl=40;class jn{constructor({autoplay:e=!0,delay:s=0,type:n="keyframes",repeat:i=0,repeatDelay:r=0,repeatType:o="loop",...l}){this.isStopped=!1,this.hasAttemptedResolve=!1,this.createdAt=F.now(),this.options={autoplay:e,delay:s,type:n,repeat:i,repeatDelay:r,repeatType:o,...l},this.updateFinishedPromise()}calcStartTime(){return this.resolvedAt?this.resolvedAt-this.createdAt>Tl?this.resolvedAt:this.createdAt:this.createdAt}get resolved(){return!this._resolved&&!this.hasAttemptedResolve&&ya(),this._resolved}onKeyframesResolved(e,s){this.resolvedAt=F.now(),this.hasAttemptedResolve=!0;const{name:n,type:i,velocity:r,delay:o,onComplete:l,onUpdate:c,isGenerator:d}=this.options;if(!d&&!Vl(e,n,i,r))if(o)this.options.duration=0;else{c&&c(zt(e,this.options,s)),l&&l(),this.resolveFinishedPromise();return}const u=this.initPlayback(e,s);u!==!1&&(this._resolved={keyframes:e,finalKeyframe:s,...u},this.onPostResolved())}onPostResolved(){}then(e,s){return this.currentFinishedPromise.then(e,s)}flatten(){this.options.allowFlatten&&(this.options.type="keyframes",this.options.ease="linear")}updateFinishedPromise(){this.currentFinishedPromise=new Promise(e=>{this.resolveFinishedPromise=e})}}function je(t,e,s){return s<0&&(s+=1),s>1&&(s-=1),s<1/6?t+(e-t)*6*s:s<1/2?e:s<2/3?t+(e-t)*(2/3-s)*6:t}function _l({hue:t,saturation:e,lightness:s,alpha:n}){t/=360,e/=100,s/=100;let i=0,r=0,o=0;if(!e)i=r=o=s;else{const l=s<.5?s*(1+e):s+e-s*e,c=2*s-l;i=je(c,l,t+1/3),r=je(c,l,t),o=je(c,l,t-1/3)}return{red:Math.round(i*255),green:Math.round(r*255),blue:Math.round(o*255),alpha:n}}function Kt(t,e){return s=>s>0?e:t}const Fe=(t,e,s)=>{const n=t*t,i=s*(e*e-n)+n;return i<0?0:Math.sqrt(i)},Pl=[ve,et,at],wl=t=>Pl.find(e=>e.test(t));function Fn(t){const e=wl(t);if(!e)return!1;let s=e.parse(t);return e===at&&(s=_l(s)),s}const In=(t,e)=>{const s=Fn(t),n=Fn(e);if(!s||!n)return Kt(t,e);const i={...s};return r=>(i.red=Fe(s.red,n.red,r),i.green=Fe(s.green,n.green,r),i.blue=Fe(s.blue,n.blue,r),i.alpha=D(s.alpha,n.alpha,r),et.transform(i))},Al=(t,e)=>s=>e(t(s)),Et=(...t)=>t.reduce(Al),Ie=new Set(["none","hidden"]);function Cl(t,e){return Ie.has(t)?s=>s<=0?t:e:s=>s>=1?e:t}function Dl(t,e){return s=>D(t,e,s)}function Ue(t){return typeof t=="number"?Dl:typeof t=="string"?ie(t)?Kt:N.test(t)?In:Bl:Array.isArray(t)?Un:typeof t=="object"?N.test(t)?In:kl:Kt}function Un(t,e){const s=[...t],n=s.length,i=t.map((r,o)=>Ue(r)(r,e[o]));return r=>{for(let o=0;o<n;o++)s[o]=i[o](r);return s}}function kl(t,e){const s={...t,...e},n={};for(const i in s)t[i]!==void 0&&e[i]!==void 0&&(n[i]=Ue(t[i])(t[i],e[i]));return i=>{for(const r in n)s[r]=n[r](i);return s}}function Ml(t,e){var s;const n=[],i={color:0,var:0,number:0};for(let r=0;r<e.values.length;r++){const o=e.types[r],l=t.indexes[o][i[o]],c=(s=t.values[l])!==null&&s!==void 0?s:0;n[r]=c,i[o]++}return n}const Bl=(t,e)=>{const s=J.createTransformer(e),n=bt(t),i=bt(e);return n.indexes.var.length===i.indexes.var.length&&n.indexes.color.length===i.indexes.color.length&&n.indexes.number.length>=i.indexes.number.length?Ie.has(t)&&!i.values.length||Ie.has(e)&&!n.values.length?Cl(t,e):Et(Un(Ml(n,i),i.values),s):Kt(t,e)};function zn(t,e,s){return typeof t=="number"&&typeof e=="number"&&typeof s=="number"?D(t,e,s):Ue(t)(t,e)}function Kn({keyframes:t,velocity:e=0,power:s=.8,timeConstant:n=325,bounceDamping:i=10,bounceStiffness:r=500,modifyTarget:o,min:l,max:c,restDelta:d=.5,restSpeed:u}){const h=t[0],m={done:!1,value:h},f=V=>l!==void 0&&V<l||c!==void 0&&V>c,p=V=>l===void 0?c:c===void 0||Math.abs(l-V)<Math.abs(c-V)?l:c;let g=s*e;const v=h+g,y=o===void 0?v:o(v);y!==v&&(g=y-h);const S=V=>-g*Math.exp(-V/n),E=V=>y+S(V),_=V=>{const P=S(V),L=E(V);m.done=Math.abs(P)<=d,m.value=m.done?y:L};let b,T;const k=V=>{f(m.value)&&(b=V,T=ke({keyframes:[m.value,p(m.value)],velocity:pn(E,V,m.value),damping:i,stiffness:r,restDelta:d,restSpeed:u}))};return k(0),{calculatedDuration:null,next:V=>{let P=!1;return!T&&b===void 0&&(P=!0,_(V),k(V)),b!==void 0&&V>=b?T.next(V-b):(!P&&_(V),m)}}}const Nl=Vt(.42,0,1,1),Ol=Vt(0,0,.58,1),Gn=Vt(.42,0,.58,1),Ll={linear:O,easeIn:Nl,easeInOut:Gn,easeOut:Ol,circIn:$e,circInOut:Rn,circOut:Ln,backIn:Re,backInOut:Nn,backOut:Bn,anticipate:On},Wn=t=>{if(Oe(t)){ms(t.length===4);const[e,s,n,i]=t;return Vt(e,s,n,i)}else if(typeof t=="string")return Ll[t];return t};function Rl(t,e,s){const n=[],i=s||zn,r=t.length-1;for(let o=0;o<r;o++){let l=i(t[o],t[o+1]);if(e){const c=Array.isArray(e)?e[o]||O:e;l=Et(c,l)}n.push(l)}return n}function $l(t,e,{clamp:s=!0,ease:n,mixer:i}={}){const r=t.length;if(ms(r===e.length),r===1)return()=>e[0];if(r===2&&e[0]===e[1])return()=>e[1];const o=t[0]===t[1];t[0]>t[r-1]&&(t=[...t].reverse(),e=[...e].reverse());const l=Rl(e,n,i),c=l.length,d=u=>{if(o&&u<t[0])return e[0];let h=0;if(c>1)for(;h<t.length-2&&!(u<t[h+1]);h++);const m=xt(t[h],t[h+1],u);return l[h](m)};return s?u=>d(X(t[0],t[r-1],u)):d}function jl(t,e){return t.map(s=>s*e)}function Fl(t,e){return t.map(()=>e||Gn).splice(0,t.length-1)}function Gt({duration:t=300,keyframes:e,times:s,ease:n="easeInOut"}){const i=vn(n)?n.map(Wn):Wn(n),r={done:!1,value:e[0]},o=jl(s&&s.length===e.length?s:Sn(e),t),l=$l(o,e,{ease:Array.isArray(i)?i:Fl(e,i)});return{calculatedDuration:t,next:c=>(r.value=l(c),r.done=c>=t,r)}}const Il=t=>{const e=({timestamp:s})=>t(s);return{start:()=>w.update(e,!0),stop:()=>K(e),now:()=>M.isProcessing?M.timestamp:F.now()}},Ul={decay:Kn,inertia:Kn,tween:Gt,keyframes:Gt,spring:ke},zl=t=>t/100;class ze extends jn{constructor(e){super(e),this.holdTime=null,this.cancelTime=null,this.currentTime=0,this.playbackSpeed=1,this.pendingPlayState="running",this.startTime=null,this.state="idle",this.stop=()=>{if(this.resolver.cancel(),this.isStopped=!0,this.state==="idle")return;this.teardown();const{onStop:c}=this.options;c&&c()};const{name:s,motionValue:n,element:i,keyframes:r}=this.options,o=(i==null?void 0:i.KeyframeResolver)||Pe,l=(c,d)=>this.onKeyframesResolved(c,d);this.resolver=new o(r,l,s,n,i),this.resolver.scheduleResolve()}flatten(){super.flatten(),this._resolved&&Object.assign(this._resolved,this.initPlayback(this._resolved.keyframes))}initPlayback(e){const{type:s="keyframes",repeat:n=0,repeatDelay:i=0,repeatType:r,velocity:o=0}=this.options,l=It(s)?s:Ul[s]||Gt;let c,d;l!==Gt&&typeof e[0]!="number"&&(c=Et(zl,zn(e[0],e[1])),e=[0,100]);const u=l({...this.options,keyframes:e});r==="mirror"&&(d=l({...this.options,keyframes:[...e].reverse(),velocity:-o})),u.calculatedDuration===null&&(u.calculatedDuration=Ce(u));const{calculatedDuration:h}=u,m=h+i,f=m*(n+1)-i;return{generator:u,mirroredGenerator:d,mapPercentToKeyframes:c,calculatedDuration:h,resolvedDuration:m,totalDuration:f}}onPostResolved(){const{autoplay:e=!0}=this.options;this.play(),this.pendingPlayState==="paused"||!e?this.pause():this.state=this.pendingPlayState}tick(e,s=!1){const{resolved:n}=this;if(!n){const{keyframes:V}=this.options;return{done:!0,value:V[V.length-1]}}const{finalKeyframe:i,generator:r,mirroredGenerator:o,mapPercentToKeyframes:l,keyframes:c,calculatedDuration:d,totalDuration:u,resolvedDuration:h}=n;if(this.startTime===null)return r.next(0);const{delay:m,repeat:f,repeatType:p,repeatDelay:g,onUpdate:v}=this.options;this.speed>0?this.startTime=Math.min(this.startTime,e):this.speed<0&&(this.startTime=Math.min(e-u/this.speed,this.startTime)),s?this.currentTime=e:this.holdTime!==null?this.currentTime=this.holdTime:this.currentTime=Math.round(e-this.startTime)*this.speed;const y=this.currentTime-m*(this.speed>=0?1:-1),S=this.speed>=0?y<0:y>u;this.currentTime=Math.max(y,0),this.state==="finished"&&this.holdTime===null&&(this.currentTime=u);let E=this.currentTime,_=r;if(f){const V=Math.min(this.currentTime,u)/h;let P=Math.floor(V),L=V%1;!L&&V>=1&&(L=1),L===1&&P--,P=Math.min(P,f+1),!!(P%2)&&(p==="reverse"?(L=1-L,g&&(L-=g/h)):p==="mirror"&&(_=o)),E=X(0,1,L)*h}const b=S?{done:!1,value:c[0]}:_.next(E);l&&(b.value=l(b.value));let{done:T}=b;!S&&d!==null&&(T=this.speed>=0?this.currentTime>=u:this.currentTime<=0);const k=this.holdTime===null&&(this.state==="finished"||this.state==="running"&&T);return k&&i!==void 0&&(b.value=zt(c,this.options,i)),v&&v(b.value),k&&this.finish(),b}get duration(){const{resolved:e}=this;return e?H(e.calculatedDuration):0}get time(){return H(this.currentTime)}set time(e){e=W(e),this.currentTime=e,this.holdTime!==null||this.speed===0?this.holdTime=e:this.driver&&(this.startTime=this.driver.now()-e/this.speed)}get speed(){return this.playbackSpeed}set speed(e){const s=this.playbackSpeed!==e;this.playbackSpeed=e,s&&(this.time=H(this.currentTime))}play(){if(this.resolver.isScheduled||this.resolver.resume(),!this._resolved){this.pendingPlayState="running";return}if(this.isStopped)return;const{driver:e=Il,onPlay:s,startTime:n}=this.options;this.driver||(this.driver=e(r=>this.tick(r))),s&&s();const i=this.driver.now();this.holdTime!==null?this.startTime=i-this.holdTime:this.startTime?this.state==="finished"&&(this.startTime=i):this.startTime=n??this.calcStartTime(),this.state==="finished"&&this.updateFinishedPromise(),this.cancelTime=this.startTime,this.holdTime=null,this.state="running",this.driver.start()}pause(){var e;if(!this._resolved){this.pendingPlayState="paused";return}this.state="paused",this.holdTime=(e=this.currentTime)!==null&&e!==void 0?e:0}complete(){this.state!=="running"&&this.play(),this.pendingPlayState=this.state="finished",this.holdTime=null}finish(){this.teardown(),this.state="finished";const{onComplete:e}=this.options;e&&e()}cancel(){this.cancelTime!==null&&this.tick(this.cancelTime),this.teardown(),this.updateFinishedPromise()}teardown(){this.state="idle",this.stopDriver(),this.resolveFinishedPromise(),this.updateFinishedPromise(),this.startTime=this.cancelTime=null,this.resolver.cancel()}stopDriver(){this.driver&&(this.driver.stop(),this.driver=void 0)}sample(e){return this.startTime=0,this.tick(e,!0)}}const Kl=new Set(["opacity","clipPath","filter","transform"]);function Gl(t,e,s,{delay:n=0,duration:i=300,repeat:r=0,repeatType:o="loop",ease:l="easeInOut",times:c}={}){const d={[e]:s};c&&(d.offset=c);const u=Cn(l,i);return Array.isArray(u)&&(d.easing=u),t.animate(d,{delay:n,duration:i,easing:Array.isArray(u)?"linear":u,fill:"both",iterations:r+1,direction:o==="reverse"?"alternate":"normal"})}const Wl=Ae(()=>Object.hasOwnProperty.call(Element.prototype,"animate")),Wt=10,Hl=2e4;function ql(t){return It(t.type)||t.type==="spring"||!An(t.ease)}function Yl(t,e){const s=new ze({...e,keyframes:t,repeat:0,delay:0,isGenerator:!0});let n={done:!1,value:t[0]};const i=[];let r=0;for(;!n.done&&r<Hl;)n=s.sample(r),i.push(n.value),r+=Wt;return{times:void 0,keyframes:i,duration:r-Wt,ease:"linear"}}const Hn={anticipate:On,backInOut:Nn,circInOut:Rn};function Xl(t){return t in Hn}class qn extends jn{constructor(e){super(e);const{name:s,motionValue:n,element:i,keyframes:r}=this.options;this.resolver=new sn(r,(o,l)=>this.onKeyframesResolved(o,l),s,n,i),this.resolver.scheduleResolve()}initPlayback(e,s){let{duration:n=300,times:i,ease:r,type:o,motionValue:l,name:c,startTime:d}=this.options;if(!l.owner||!l.owner.current)return!1;if(typeof r=="string"&&Ut()&&Xl(r)&&(r=Hn[r]),ql(this.options)){const{onComplete:h,onUpdate:m,motionValue:f,element:p,...g}=this.options,v=Yl(e,g);e=v.keyframes,e.length===1&&(e[1]=e[0]),n=v.duration,i=v.times,r=v.ease,o="keyframes"}const u=Gl(l.owner.current,c,e,{...this.options,duration:n,times:i,ease:r});return u.startTime=d??this.calcStartTime(),this.pendingTimeline?(wn(u,this.pendingTimeline),this.pendingTimeline=void 0):u.onfinish=()=>{const{onComplete:h}=this.options;l.set(zt(e,this.options,s)),h&&h(),this.cancel(),this.resolveFinishedPromise()},{animation:u,duration:n,times:i,type:o,ease:r,keyframes:e}}get duration(){const{resolved:e}=this;if(!e)return 0;const{duration:s}=e;return H(s)}get time(){const{resolved:e}=this;if(!e)return 0;const{animation:s}=e;return H(s.currentTime||0)}set time(e){const{resolved:s}=this;if(!s)return;const{animation:n}=s;n.currentTime=W(e)}get speed(){const{resolved:e}=this;if(!e)return 1;const{animation:s}=e;return s.playbackRate}set speed(e){const{resolved:s}=this;if(!s)return;const{animation:n}=s;n.playbackRate=e}get state(){const{resolved:e}=this;if(!e)return"idle";const{animation:s}=e;return s.playState}get startTime(){const{resolved:e}=this;if(!e)return null;const{animation:s}=e;return s.startTime}attachTimeline(e){if(!this._resolved)this.pendingTimeline=e;else{const{resolved:s}=this;if(!s)return O;const{animation:n}=s;wn(n,e)}return O}play(){if(this.isStopped)return;const{resolved:e}=this;if(!e)return;const{animation:s}=e;s.playState==="finished"&&this.updateFinishedPromise(),s.play()}pause(){const{resolved:e}=this;if(!e)return;const{animation:s}=e;s.pause()}stop(){if(this.resolver.cancel(),this.isStopped=!0,this.state==="idle")return;this.resolveFinishedPromise(),this.updateFinishedPromise();const{resolved:e}=this;if(!e)return;const{animation:s,keyframes:n,duration:i,type:r,ease:o,times:l}=e;if(s.playState==="idle"||s.playState==="finished")return;if(this.time){const{motionValue:d,onUpdate:u,onComplete:h,element:m,...f}=this.options,p=new ze({...f,keyframes:n,duration:i,type:r,ease:o,times:l,isGenerator:!0}),g=W(this.time);d.setWithVelocity(p.sample(g-Wt).value,p.sample(g).value,Wt)}const{onStop:c}=this.options;c&&c(),this.cancel()}complete(){const{resolved:e}=this;e&&e.animation.finish()}cancel(){const{resolved:e}=this;e&&e.animation.cancel()}static supports(e){const{motionValue:s,name:n,repeatDelay:i,repeatType:r,damping:o,type:l}=e;if(!s||!s.owner||!(s.owner.current instanceof HTMLElement))return!1;const{onUpdate:c,transformTemplate:d}=s.owner.getProps();return Wl()&&n&&Kl.has(n)&&!c&&!d&&!i&&r!=="mirror"&&o!==0&&l!=="inertia"}}const Zl={type:"spring",stiffness:500,damping:25,restSpeed:10},Jl=t=>({type:"spring",stiffness:550,damping:t===0?2*Math.sqrt(550):30,restSpeed:10}),Ql={type:"keyframes",duration:.8},tc={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},ec=(t,{keyframes:e})=>e.length>2?Ql:ct.has(t)?t.startsWith("scale")?Jl(e[1]):Zl:tc;function sc({when:t,delay:e,delayChildren:s,staggerChildren:n,staggerDirection:i,repeat:r,repeatType:o,repeatDelay:l,from:c,elapsed:d,...u}){return!!Object.keys(u).length}const Ke=(t,e,s,n={},i,r)=>o=>{const l=Ne(n,t)||{},c=l.delay||n.delay||0;let{elapsed:d=0}=n;d=d-W(c);let u={keyframes:Array.isArray(s)?s:[null,s],ease:"easeOut",velocity:e.getVelocity(),...l,delay:-d,onUpdate:m=>{e.set(m),l.onUpdate&&l.onUpdate(m)},onComplete:()=>{o(),l.onComplete&&l.onComplete()},name:t,motionValue:e,element:r?void 0:i};sc(l)||(u={...u,...ec(t,u)}),u.duration&&(u.duration=W(u.duration)),u.repeatDelay&&(u.repeatDelay=W(u.repeatDelay)),u.from!==void 0&&(u.keyframes[0]=u.from);let h=!1;if((u.type===!1||u.duration===0&&!u.repeatDelay)&&(u.duration=0,u.delay===0&&(h=!0)),u.allowFlatten=!l.type&&!l.ease,h&&!r&&e.get()!==void 0){const m=zt(u.keyframes,l);if(m!==void 0)return w.update(()=>{u.onUpdate(m),u.onComplete()}),new mn([])}return!r&&qn.supports(u)?new qn(u):new ze(u)};function nc({protectedKeys:t,needsAnimating:e},s){const n=t.hasOwnProperty(s)&&e[s]!==!0;return e[s]=!1,n}function ic(t,e,{delay:s=0,transitionOverride:n,type:i}={}){var r;let{transition:o=t.getDefaultTransition(),transitionEnd:l,...c}=e;n&&(o=n);const d=[],u=i&&t.animationState&&t.animationState.getState()[i];for(const h in c){const m=t.getValue(h,(r=t.latestValues[h])!==null&&r!==void 0?r:null),f=c[h];if(f===void 0||u&&nc(u,h))continue;const p={delay:s,...Ne(o||{},h)};let g=!1;if(window.MotionHandoffAnimation){const y=Pn(t);if(y){const S=window.MotionHandoffAnimation(y,h,w);S!==null&&(p.startTime=S,g=!0)}}fl(t,h),m.start(Ke(h,m,f,t.shouldReduceMotion&&tn.has(h)?{type:!1}:p,t,g));const v=m.animation;v&&d.push(v)}return l&&Promise.all(d).then(()=>{w.update(()=>{l&&hl(t,l)})}),d}function Yn(t){return t instanceof SVGElement&&t.tagName!=="svg"}function oc(t,e){return t in e}class rc extends Qs{constructor(){super(...arguments),this.type="object"}readValueFromInstance(e,s){if(oc(s,e)){const n=e[s];if(typeof n=="string"||typeof n=="number")return n}}getBaseTargetFromProps(){}removeValueFromRenderState(e,s){delete s.output[e]}measureInstanceViewportBox(){return C()}build(e,s){Object.assign(e.output,s)}renderInstance(e,{output:s}){Object.assign(e,s)}sortInstanceNodePosition(){return 0}}function ac(t){const e={presenceContext:null,props:{},visualState:{renderState:{transform:{},transformOrigin:{},style:{},vars:{},attrs:{}},latestValues:{}}},s=Yn(t)?new hn(e):new cn(e);s.mount(t),tt.set(t,s)}function lc(t){const e={presenceContext:null,props:{},visualState:{renderState:{output:{}},latestValues:{}}},s=new rc(e);s.mount(t),tt.set(t,s)}function Xn(t,e,s){const n=B(t)?t:pt(t);return n.start(Ke("",n,e,s)),n.animation}function cc(t,e){return B(t)||typeof t=="number"||typeof t=="string"&&!Be(e)}function Zn(t,e,s,n){const i=[];if(cc(t,e))i.push(Xn(t,Be(e)&&e.default||e,s&&(s.default||s)));else{const r=Vn(t,e,n),o=r.length;for(let l=0;l<o;l++){const c=r[l],d=c instanceof Element?ac:lc;tt.has(c)||d(c);const u=tt.get(c),h={...s};"delay"in h&&typeof h.delay=="function"&&(h.delay=h.delay(l,o)),i.push(...ic(u,{...e,transition:h},{}))}}return i}function uc(t,e,s){const n=[];return sl(t,e,s,{spring:ke}).forEach(({keyframes:r,transition:o},l)=>{n.push(...Zn(l,r,o))}),n}function dc(t){return Array.isArray(t)&&t.some(Array.isArray)}function hc(t){function e(s,n,i){let r=[];return dc(s)?r=uc(s,n,t):r=Zn(s,n,i,t),new mn(r)}return e}const mc=hc(),fc=["initial","animate","whileInView","whileHover","whilePress","whileDrag","whileFocus","exit"];class pc extends z{constructor(e){var s;super(e),this.animateUpdates=({controlActiveState:n,directAnimate:i,directTransition:r,controlDelay:o=0,isFallback:l,isExit:c}={})=>{const d=this.state.target;this.state.target={...this.state.baseTarget};let u={};const h={...this.state.options.transition};u=this.resolveStateAnimation({controlActiveState:n,directAnimate:i,directTransition:r});const m=this.createAnimationFactories(d,u,o),{getChildAnimations:f,childAnimations:p}=this.setupChildAnimations(u,this.state.activeStates,l);return this.executeAnimations({factories:m,getChildAnimations:f,childAnimations:p,transition:h,controlActiveState:n,isExit:c})},this.state.visualElement=$a(this.state.options.as,{presenceContext:null,parent:(s=this.state.parent)==null?void 0:s.visualElement,props:{...this.state.options,whileTap:this.state.options.whilePress},visualState:{renderState:{transform:{},transformOrigin:{},style:{},vars:{},attrs:{}},latestValues:{...this.state.baseTarget}},reducedMotionConfig:this.state.options.motionConfig.reduceMotion}),this.state.animateUpdates=this.animateUpdates,this.state.isMounted()&&this.state.startAnimation()}updateAnimationControlsSubscription(){const{animate:e}=this.state.options;us(e)&&(this.unmountControls=e.subscribe(this.state))}executeAnimations({factories:e,getChildAnimations:s,transition:n,controlActiveState:i,isExit:r=!1}){const o=()=>Promise.all(e.map(h=>h()).filter(Boolean)),l={...this.state.target},c=this.state.element,d=h=>{var m,f;c.dispatchEvent(gs("motionstart",l)),(f=(m=this.state.options).onAnimationStart)==null||f.call(m,l),h.then(()=>{var p,g;c.dispatchEvent(gs("motioncomplete",l,r)),(g=(p=this.state.options).onAnimationComplete)==null||g.call(p,l)}).catch(O)},u=()=>{const h=n!=null&&n.when?(n.when==="beforeChildren"?o():s()).then(()=>n.when==="beforeChildren"?s():o()):Promise.all([o(),s()]);return d(h),h};return i?u:u()}setupChildAnimations(e,s,n){var i;if(!((i=this.state.visualElement.variantChildren)!=null&&i.size)||!s)return{getChildAnimations:()=>Promise.resolve(),childAnimations:[]};const{staggerChildren:r=0,staggerDirection:o=1,delayChildren:l=0}=e||{},c=(this.state.visualElement.variantChildren.size-1)*r,d=o===1?(h=0)=>h*r:(h=0)=>c-h*r,u=Array.from(this.state.visualElement.variantChildren).map((h,m)=>{const f=l+d(m);return h.state.animateUpdates({controlActiveState:s,controlDelay:n?0:f})}).filter(Boolean);return{getChildAnimations:()=>Promise.all(u.map(h=>h==null?void 0:h())),childAnimations:u}}createAnimationFactories(e,s,n){const i=[];return Object.keys(this.state.target).forEach(r=>{var o;if(!er(e[r],this.state.target[r]))return;(o=this.state.baseTarget)[r]??(o[r]=Tr.get(this.state.element,r));const l=this.state.target[r]==="none"&&ue(bs[r])?bs[r]:this.state.target[r];i.push(()=>{var c;return mc(this.state.element,{[r]:l},{...(s==null?void 0:s[r])||s,delay:(((c=s==null?void 0:s[r])==null?void 0:c.delay)||(s==null?void 0:s.delay)||0)+n})})}),i}resolveStateAnimation({controlActiveState:e,directAnimate:s,directTransition:n}){let i=this.state.options.transition,r={};const{variants:o,custom:l,transition:c,animatePresenceContext:d}=this.state.options,u=ue(l)?l:d==null?void 0:d.custom;return this.state.activeStates={...this.state.activeStates,...e},fc.forEach(h=>{if(!this.state.activeStates[h]||us(this.state.options[h]))return;const m=this.state.options[h];let f=ue(m)?ft(m,o,u):void 0;if(this.state.visualElement.isVariantNode){const p=ft(this.state.context[h],o,u);f=p?Object.assign(p||{},f):r}f&&(h!=="initial"&&(i=f.transition||this.state.options.transition||{}),r=Object.assign(r,f))}),s&&(r=ft(s,o,u),i=r.transition||n||c),Object.entries(r).forEach(([h,m])=>{h!=="transition"&&(this.state.target[h]=m)}),i}mount(){const{element:e}=this.state;ps.set(e,this.state),tt.get(e)||(this.state.visualElement.mount(e),tt.set(e,this.state.visualElement)),this.state.visualElement.state=this.state,this.updateAnimationControlsSubscription()}update(){const{animate:e}=this.state.options,{animate:s}=this.state.visualElement.prevProps||{};e!==s&&this.updateAnimationControlsSubscription()}unmount(){var e;(e=this.unmountControls)==null||e.call(this)}}const gc={y:!1};function yc(){return gc.y}function Jn(t,e){const s=`${e}PointerCapture`;if(t.target instanceof Element&&s in t.target&&t.pointerId!==void 0)try{t.target[s](t.pointerId)}catch{}}const Qn=(t,e)=>e?t===e?!0:Qn(t,e.parentElement):!1,vc=t=>t.pointerType==="mouse"?typeof t.button!="number"||t.button<=0:t.isPrimary!==!1;function ti(t,e){const s=Me(t),n=new AbortController,i={passive:!0,...e,signal:n.signal};return[s,i,()=>n.abort()]}const bc=new Set(["BUTTON","INPUT","SELECT","TEXTAREA","A"]);function xc(t){return bc.has(t.tagName)||t.tabIndex!==-1}const Tt=new WeakSet;function ei(t){return e=>{e.key==="Enter"&&t(e)}}function Ge(t,e){t.dispatchEvent(new PointerEvent("pointer"+e,{isPrimary:!0,bubbles:!0}))}const Sc=(t,e)=>{const s=t.currentTarget;if(!s)return;const n=ei(()=>{if(Tt.has(s))return;Ge(s,"down");const i=ei(()=>{Ge(s,"up")}),r=()=>Ge(s,"cancel");s.addEventListener("keyup",i,e),s.addEventListener("blur",r,e)});s.addEventListener("keydown",n,e),s.addEventListener("blur",()=>s.removeEventListener("keydown",n),e)};function si(t){return vc(t)&&!0}function Vc(t,e,s={}){const[n,i,r]=ti(t,s),o=l=>{const c=l.currentTarget;if(!c||!si(l)||Tt.has(c))return;Tt.add(c),Jn(l,"set");const d=e(c,l),u=(f,p)=>{c.removeEventListener("pointerup",h),c.removeEventListener("pointercancel",m),Jn(f,"release"),!(!si(f)||!Tt.has(c))&&(Tt.delete(c),typeof d=="function"&&d(f,{success:p}))},h=f=>{(f.isTrusted?Ec(f,c instanceof Element?c.getBoundingClientRect():{left:0,top:0,right:window.innerWidth,bottom:window.innerHeight}):!1)?u(f,!1):u(f,!(c instanceof Element)||Qn(c,f.target))},m=f=>{u(f,!1)};c.addEventListener("pointerup",h,i),c.addEventListener("pointercancel",m,i),c.addEventListener("lostpointercapture",m,i)};return n.forEach(l=>{l=s.useGlobalTarget?window:l;let c=!1;l instanceof HTMLElement&&(c=!0,!xc(l)&&l.getAttribute("tabindex")===null&&(l.tabIndex=0)),l.addEventListener("pointerdown",o,i),c&&l.addEventListener("focus",d=>Sc(d,i),i)}),r}function Ec(t,e){return t.clientX<e.left||t.clientX>e.right||t.clientY<e.top||t.clientY>e.bottom}function ni(t){return{point:{x:t.pageX,y:t.pageY}}}function ii(t,e,s){const n=t.options;n.whilePress&&t.setActive("whilePress",s==="Start");const i=`onPress${s==="End"?"":s}`,r=n[i];r&&w.postRender(()=>r(e,ni(e)))}class Tc extends z{isActive(){const{whilePress:e,onPress:s,onPressCancel:n,onPressStart:i}=this.state.options;return!!(e||s||n||i)}constructor(e){super(e)}mount(){this.register()}update(){const{whilePress:e,onPress:s,onPressCancel:n,onPressStart:i}=this.state.options;e||s||n||i||this.register()}register(){const e=this.state.element;!e||!this.isActive()||(this.unmount(),this.unmount=Vc(e,(s,n)=>(ii(this.state,n,"Start"),(i,{success:r})=>ii(this.state,i,r?"End":"Cancel")),{useGlobalTarget:this.state.options.globalPressTarget}))}}function oi(t){return!(t.pointerType==="touch"||yc())}function _c(t,e,s={}){const[n,i,r]=ti(t,s),o=l=>{if(!oi(l))return;const{target:c}=l,d=e(c,l);if(typeof d!="function"||!c)return;const u=h=>{oi(h)&&(d(h),c.removeEventListener("pointerleave",u))};c.addEventListener("pointerleave",u,i)};return n.forEach(l=>{l.addEventListener("pointerenter",o,i)}),r}function ri(t,e,s){const n=t.options;n.whileHover&&t.setActive("whileHover",s==="Start");const i=`onHover${s}`,r=n[i];r&&w.postRender(()=>r(e,ni(e)))}class Pc extends z{isActive(){const{whileHover:e,onHoverStart:s,onHoverEnd:n}=this.state.options;return!!(e||s||n)}constructor(e){super(e)}mount(){this.register()}update(){const{whileHover:e,onHoverStart:s,onHoverEnd:n}=this.state.visualElement.prevProps;e||s||n||this.register()}register(){const e=this.state.element;!e||!this.isActive()||(this.unmount(),this.unmount=_c(e,(s,n)=>(ri(this.state,n,"Start"),i=>{ri(this.state,i,"End")})))}}const wc={some:0,all:1};function Ac(t,e,{root:s,margin:n,amount:i="some"}={}){const r=Me(t),o=new WeakMap,l=d=>{d.forEach(u=>{const h=o.get(u.target);if(u.isIntersecting!==!!h)if(u.isIntersecting){const m=e(u.target,u);typeof m=="function"?o.set(u.target,m):c.unobserve(u.target)}else typeof h=="function"&&(h(u),o.delete(u.target))})},c=new IntersectionObserver(l,{root:s,rootMargin:n,threshold:typeof i=="number"?i:wc[i]});return r.forEach(d=>c.observe(d)),()=>c.disconnect()}function ai(t,e,s){const n=t.options;n.whileInView&&t.setActive("whileInView",s==="Enter");const i=`onViewport${s}`,r=n[i];r&&w.postRender(()=>r(e))}class Cc extends z{isActive(){return!!this.state.options.whileInView}constructor(e){super(e)}startObserver(){const e=this.state.element;if(!e||!this.isActive())return;this.unmount();const{once:s,...n}=this.state.options.inViewOptions||{};this.unmount=Ac(e,(i,r)=>{if(ai(this.state,r,"Enter"),!s)return o=>{ai(this.state,r,"Leave")}},n)}mount(){this.startObserver()}update(){const{props:e,prevProps:s}=this.state.visualElement;["amount","margin","root"].some(Dc(e,s))&&this.startObserver()}}function Dc({inViewOptions:t={}},{inViewOptions:e={}}={}){return s=>t[s]!==e[s]}function Ht(t,e,s,n={passive:!0}){return t.addEventListener(e,s,n),()=>t.removeEventListener(e,s)}class kc extends z{constructor(){super(...arguments),this.isActive=!1}onFocus(){let e=!1;try{e=this.state.element.matches(":focus-visible")}catch{e=!0}e&&(this.state.setActive("whileFocus",!0),this.isActive=!0)}onBlur(){this.isActive&&(this.state.setActive("whileFocus",!1),this.isActive=!1)}mount(){this.unmount=Et(Ht(this.state.element,"focus",()=>this.onFocus()),Ht(this.state.element,"blur",()=>this.onBlur()))}}const{schedule:Mc}=fs(queueMicrotask,!1),Bc=(t,e)=>t.depth-e.depth;class Nc{constructor(){this.children=[],this.isDirty=!1}add(e){de(this.children,e),this.isDirty=!0}remove(e){Rt(this.children,e),this.isDirty=!0}forEach(e){this.isDirty&&this.children.sort(Bc),this.isDirty=!1,this.children.forEach(e)}}function Oc(t,e){const s=F.now(),n=({timestamp:i})=>{const r=i-s;r>=e&&(K(n),t(r-e))};return w.read(n,!0),()=>K(n)}function We(t){const e=B(t)?t.get():t;return ll(e)?e.toValue():e}const li=["TopLeft","TopRight","BottomLeft","BottomRight"],Lc=li.length,ci=t=>typeof t=="string"?parseFloat(t):t,ui=t=>typeof t=="number"||x.test(t);function Rc(t,e,s,n,i,r){i?(t.opacity=D(0,s.opacity!==void 0?s.opacity:1,$c(n)),t.opacityExit=D(e.opacity!==void 0?e.opacity:1,0,jc(n))):r&&(t.opacity=D(e.opacity!==void 0?e.opacity:1,s.opacity!==void 0?s.opacity:1,n));for(let o=0;o<Lc;o++){const l=`border${li[o]}Radius`;let c=di(e,l),d=di(s,l);if(c===void 0&&d===void 0)continue;c||(c=0),d||(d=0),c===0||d===0||ui(c)===ui(d)?(t[l]=Math.max(D(ci(c),ci(d),n),0),(G.test(d)||G.test(c))&&(t[l]+="%")):t[l]=d}(e.rotate||s.rotate)&&(t.rotate=D(e.rotate||0,s.rotate||0,n))}function di(t,e){return t[e]!==void 0?t[e]:t.borderRadius}const $c=hi(0,.5,Ln),jc=hi(.5,.95,O);function hi(t,e,s){return n=>n<t?0:n>e?1:s(xt(t,e,n))}function mi(t,e){t.min=e.min,t.max=e.max}function R(t,e){mi(t.x,e.x),mi(t.y,e.y)}function fi(t,e){t.translate=e.translate,t.scale=e.scale,t.originPoint=e.originPoint,t.origin=e.origin}function He(t){return t===void 0||t===1}function qe({scale:t,scaleX:e,scaleY:s}){return!He(t)||!He(e)||!He(s)}function it(t){return qe(t)||pi(t)||t.z||t.rotate||t.rotateX||t.rotateY||t.skewX||t.skewY}function pi(t){return gi(t.x)||gi(t.y)}function gi(t){return t&&t!=="0%"}function qt(t,e,s){const n=t-s,i=e*n;return s+i}function yi(t,e,s,n,i){return i!==void 0&&(t=qt(t,i,n)),qt(t,s,n)+e}function Ye(t,e=0,s=1,n,i){t.min=yi(t.min,e,s,n,i),t.max=yi(t.max,e,s,n,i)}function vi(t,{x:e,y:s}){Ye(t.x,e.translate,e.scale,e.originPoint),Ye(t.y,s.translate,s.scale,s.originPoint)}const bi=.999999999999,xi=1.0000000000001;function Fc(t,e,s,n=!1){const i=s.length;if(!i)return;e.x=e.y=1;let r,o;for(let l=0;l<i;l++){r=s[l],o=r.projectionDelta;const{visualElement:c}=r.options;c&&c.props.style&&c.props.style.display==="contents"||(n&&r.options.layoutScroll&&r.scroll&&r!==r.root&&dt(t,{x:-r.scroll.offset.x,y:-r.scroll.offset.y}),o&&(e.x*=o.x.scale,e.y*=o.y.scale,vi(t,o)),n&&it(r.latestValues)&&dt(t,r.latestValues))}e.x<xi&&e.x>bi&&(e.x=1),e.y<xi&&e.y>bi&&(e.y=1)}function Yt(t,e){t.min=t.min+e,t.max=t.max+e}function Si(t,e,s,n,i=.5){const r=D(t.min,t.max,i);Ye(t,e,s,r,n)}function dt(t,e){Si(t.x,e.x,e.scaleX,e.scale,e.originX),Si(t.y,e.y,e.scaleY,e.scale,e.originY)}const Vi=1e-4,Ic=1-Vi,Uc=1+Vi,Ei=.01,zc=0-Ei,Kc=0+Ei;function $(t){return t.max-t.min}function Gc(t,e,s){return Math.abs(t-e)<=s}function Ti(t,e,s,n=.5){t.origin=n,t.originPoint=D(e.min,e.max,t.origin),t.scale=$(s)/$(e),t.translate=D(s.min,s.max,t.origin)-t.originPoint,(t.scale>=Ic&&t.scale<=Uc||isNaN(t.scale))&&(t.scale=1),(t.translate>=zc&&t.translate<=Kc||isNaN(t.translate))&&(t.translate=0)}function _t(t,e,s,n){Ti(t.x,e.x,s.x,n?n.originX:void 0),Ti(t.y,e.y,s.y,n?n.originY:void 0)}function _i(t,e,s){t.min=s.min+e.min,t.max=t.min+$(e)}function Wc(t,e,s){_i(t.x,e.x,s.x),_i(t.y,e.y,s.y)}function Pi(t,e,s){t.min=e.min-s.min,t.max=t.min+$(e)}function Pt(t,e,s){Pi(t.x,e.x,s.x),Pi(t.y,e.y,s.y)}function wi(t,e,s,n,i){return t-=e,t=qt(t,1/s,n),i!==void 0&&(t=qt(t,1/i,n)),t}function Hc(t,e=0,s=1,n=.5,i,r=t,o=t){if(G.test(e)&&(e=parseFloat(e),e=D(o.min,o.max,e/100)-o.min),typeof e!="number")return;let l=D(r.min,r.max,n);t===r&&(l-=e),t.min=wi(t.min,e,s,l,i),t.max=wi(t.max,e,s,l,i)}function Ai(t,e,[s,n,i],r,o){Hc(t,e[s],e[n],e[i],e.scale,r,o)}const qc=["x","scaleX","originX"],Yc=["y","scaleY","originY"];function Ci(t,e,s,n){Ai(t.x,e,qc,s?s.x:void 0,n?n.x:void 0),Ai(t.y,e,Yc,s?s.y:void 0,n?n.y:void 0)}function Di(t){return t.translate===0&&t.scale===1}function ki(t){return Di(t.x)&&Di(t.y)}function Mi(t,e){return t.min===e.min&&t.max===e.max}function Xc(t,e){return Mi(t.x,e.x)&&Mi(t.y,e.y)}function Bi(t,e){return Math.round(t.min)===Math.round(e.min)&&Math.round(t.max)===Math.round(e.max)}function Ni(t,e){return Bi(t.x,e.x)&&Bi(t.y,e.y)}function Oi(t){return $(t.x)/$(t.y)}function Li(t,e){return t.translate===e.translate&&t.scale===e.scale&&t.originPoint===e.originPoint}class Zc{constructor(){this.members=[]}add(e){de(this.members,e),e.scheduleRender()}remove(e){if(Rt(this.members,e),e===this.prevLead&&(this.prevLead=void 0),e===this.lead){const s=this.members[this.members.length-1];s&&this.promote(s)}}relegate(e){const s=this.members.findIndex(i=>e===i);if(s===0)return!1;let n;for(let i=s;i>=0;i--){const r=this.members[i];if(r.isPresent!==!1){n=r;break}}return n?(this.promote(n),!0):!1}promote(e,s){const n=this.lead;if(e!==n&&(this.prevLead=n,this.lead=e,e.show(),n)){n.instance&&n.scheduleRender(),e.scheduleRender(),e.resumeFrom=n,s&&(e.resumeFrom.preserveOpacity=!0),n.snapshot&&(e.snapshot=n.snapshot,e.snapshot.latestValues=n.animationValues||n.latestValues),e.root&&e.root.isUpdating&&(e.isLayoutDirty=!0);const{crossfade:i}=e.options;i===!1&&n.hide()}}exitAnimationComplete(){this.members.forEach(e=>{const{options:s,resumingFrom:n}=e;s.onExitComplete&&s.onExitComplete(),n&&n.options.onExitComplete&&n.options.onExitComplete()})}scheduleRender(){this.members.forEach(e=>{e.instance&&e.scheduleRender(!1)})}removeLeadSnapshot(){this.lead&&this.lead.snapshot&&(this.lead.snapshot=void 0)}}function Jc(t,e,s){let n="";const i=t.x.translate/e.x,r=t.y.translate/e.y,o=(s==null?void 0:s.z)||0;if((i||r||o)&&(n=`translate3d(${i}px, ${r}px, ${o}px) `),(e.x!==1||e.y!==1)&&(n+=`scale(${1/e.x}, ${1/e.y}) `),s){const{transformPerspective:d,rotate:u,rotateX:h,rotateY:m,skewX:f,skewY:p}=s;d&&(n=`perspective(${d}px) ${n}`),u&&(n+=`rotate(${u}deg) `),h&&(n+=`rotateX(${h}deg) `),m&&(n+=`rotateY(${m}deg) `),f&&(n+=`skewX(${f}deg) `),p&&(n+=`skewY(${p}deg) `)}const l=t.x.scale*e.x,c=t.y.scale*e.y;return(l!==1||c!==1)&&(n+=`scale(${l}, ${c})`),n||"none"}function Ri(t){return[t("x"),t("y")]}const Xt={hasAnimatedSinceResize:!0,hasEverUpdated:!1},Xe=["","X","Y","Z"],Qc={visibility:"hidden"},$i=1e3;let tu=0;function Ze(t,e,s,n){const{latestValues:i}=e;i[t]&&(s[t]=i[t],e.setStaticValue(t,0),n&&(n[t]=0))}function ji(t){if(t.hasCheckedOptimisedAppear=!0,t.root===t)return;const{visualElement:e}=t.options;if(!e)return;const s=Pn(e);if(window.MotionHasOptimisedAnimation(s,"transform")){const{layout:i,layoutId:r}=t.options;window.MotionCancelOptimisedAnimation(s,"transform",w,!(i||r))}const{parent:n}=t;n&&!n.hasCheckedOptimisedAppear&&ji(n)}function Fi({attachResizeListener:t,defaultParent:e,measureScroll:s,checkIsScrollRoot:n,resetTransform:i}){return class{constructor(o={},l=e==null?void 0:e()){this.id=tu++,this.animationId=0,this.children=new Set,this.options={},this.isTreeAnimating=!1,this.isAnimationBlocked=!1,this.isLayoutDirty=!1,this.isProjectionDirty=!1,this.isSharedProjectionDirty=!1,this.isTransformDirty=!1,this.updateManuallyBlocked=!1,this.updateBlockedByResize=!1,this.isUpdating=!1,this.isSVG=!1,this.needsReset=!1,this.shouldResetTransform=!1,this.hasCheckedOptimisedAppear=!1,this.treeScale={x:1,y:1},this.eventHandlers=new Map,this.hasTreeAnimated=!1,this.updateScheduled=!1,this.scheduleUpdate=()=>this.update(),this.projectionUpdateScheduled=!1,this.checkUpdateFailed=()=>{this.isUpdating&&(this.isUpdating=!1,this.clearAllSnapshots())},this.updateProjection=()=>{this.projectionUpdateScheduled=!1,this.nodes.forEach(nu),this.nodes.forEach(lu),this.nodes.forEach(cu),this.nodes.forEach(iu)},this.resolvedRelativeTargetAt=0,this.hasProjected=!1,this.isVisible=!0,this.animationProgress=0,this.sharedNodes=new Map,this.latestValues=o,this.root=l?l.root||l:this,this.path=l?[...l.path,l]:[],this.parent=l,this.depth=l?l.depth+1:0;for(let c=0;c<this.path.length;c++)this.path[c].shouldResetTransform=!0;this.root===this&&(this.nodes=new Nc)}addEventListener(o,l){return this.eventHandlers.has(o)||this.eventHandlers.set(o,new he),this.eventHandlers.get(o).add(l)}notifyListeners(o,...l){const c=this.eventHandlers.get(o);c&&c.notify(...l)}hasListeners(o){return this.eventHandlers.has(o)}mount(o,l=this.root.hasTreeAnimated){if(this.instance)return;this.isSVG=Yn(o),this.instance=o;const{layoutId:c,layout:d,visualElement:u}=this.options;if(u&&!u.current&&u.mount(o),this.root.nodes.add(this),this.parent&&this.parent.children.add(this),l&&(d||c)&&(this.isLayoutDirty=!0),t){let h;const m=()=>this.root.updateBlockedByResize=!1;t(o,()=>{this.root.updateBlockedByResize=!0,h&&h(),h=Oc(m,250),Xt.hasAnimatedSinceResize&&(Xt.hasAnimatedSinceResize=!1,this.nodes.forEach(Ui))})}c&&this.root.registerSharedNode(c,this),this.options.animate!==!1&&u&&(c||d)&&this.addEventListener("didUpdate",({delta:h,hasLayoutChanged:m,hasRelativeLayoutChanged:f,layout:p})=>{if(this.isTreeAnimationBlocked()){this.target=void 0,this.relativeTarget=void 0;return}const g=this.options.transition||u.getDefaultTransition()||fu,{onLayoutAnimationStart:v,onLayoutAnimationComplete:y}=u.getProps(),S=!this.targetLayout||!Ni(this.targetLayout,p),E=!m&&f;if(this.options.layoutRoot||this.resumeFrom||E||m&&(S||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0),this.setAnimationOrigin(h,E);const _={...Ne(g,"layout"),onPlay:v,onComplete:y};(u.shouldReduceMotion||this.options.layoutRoot)&&(_.delay=0,_.type=!1),this.startAnimation(_)}else m||Ui(this),this.isLead()&&this.options.onExitComplete&&this.options.onExitComplete();this.targetLayout=p})}unmount(){this.options.layoutId&&this.willUpdate(),this.root.nodes.remove(this);const o=this.getStack();o&&o.remove(this),this.parent&&this.parent.children.delete(this),this.instance=void 0,K(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(uu),this.animationId++)}getTransformTemplate(){const{visualElement:o}=this.options;return o&&o.getProps().transformTemplate}willUpdate(o=!0){if(this.root.hasTreeAnimated=!0,this.root.isUpdateBlocked()){this.options.onExitComplete&&this.options.onExitComplete();return}if(window.MotionCancelOptimisedAnimation&&!this.hasCheckedOptimisedAppear&&ji(this),!this.root.isUpdating&&this.root.startUpdate(),this.isLayoutDirty)return;this.isLayoutDirty=!0;for(let u=0;u<this.path.length;u++){const h=this.path[u];h.shouldResetTransform=!0,h.updateScroll("snapshot"),h.options.layoutRoot&&h.willUpdate(!1)}const{layoutId:l,layout:c}=this.options;if(l===void 0&&!c)return;const d=this.getTransformTemplate();this.prevTransformTemplateValue=d?d(this.latestValues,""):void 0,this.updateSnapshot(),o&&this.notifyListeners("willUpdate")}update(){if(this.updateScheduled=!1,this.isUpdateBlocked()){this.unblockUpdate(),this.clearAllSnapshots(),this.nodes.forEach(Ii);return}this.isUpdating||this.nodes.forEach(ru),this.isUpdating=!1,this.nodes.forEach(au),this.nodes.forEach(eu),this.nodes.forEach(su),this.clearAllSnapshots();const l=F.now();M.delta=X(0,1e3/60,l-M.timestamp),M.timestamp=l,M.isProcessing=!0,re.update.process(M),re.preRender.process(M),re.render.process(M),M.isProcessing=!1}didUpdate(){this.updateScheduled||(this.updateScheduled=!0,Mc.read(this.scheduleUpdate))}clearAllSnapshots(){this.nodes.forEach(ou),this.sharedNodes.forEach(du)}scheduleUpdateProjection(){this.projectionUpdateScheduled||(this.projectionUpdateScheduled=!0,w.preRender(this.updateProjection,!1,!0))}scheduleCheckAfterUnmount(){w.postRender(()=>{this.isLayoutDirty?this.root.didUpdate():this.root.checkUpdateFailed()})}updateSnapshot(){this.snapshot||!this.instance||(this.snapshot=this.measure(),this.snapshot&&!$(this.snapshot.measuredBox.x)&&!$(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 c=0;c<this.path.length;c++)this.path[c].updateScroll();const o=this.layout;this.layout=this.measure(!1),this.layoutCorrected=C(),this.isLayoutDirty=!1,this.projectionDelta=void 0,this.notifyListeners("measure",this.layout.layoutBox);const{visualElement:l}=this.options;l&&l.notify("LayoutMeasure",this.layout.layoutBox,o?o.layoutBox:void 0)}updateScroll(o="measure"){let l=!!(this.options.layoutScroll&&this.instance);if(this.scroll&&this.scroll.animationId===this.root.animationId&&this.scroll.phase===o&&(l=!1),l){const c=n(this.instance);this.scroll={animationId:this.root.animationId,phase:o,isRoot:c,offset:s(this.instance),wasRoot:this.scroll?this.scroll.isRoot:c}}}resetTransform(){if(!i)return;const o=this.isLayoutDirty||this.shouldResetTransform||this.options.alwaysMeasureLayout,l=this.projectionDelta&&!ki(this.projectionDelta),c=this.getTransformTemplate(),d=c?c(this.latestValues,""):void 0,u=d!==this.prevTransformTemplateValue;o&&(l||it(this.latestValues)||u)&&(i(this.instance,d),this.shouldResetTransform=!1,this.scheduleRender())}measure(o=!0){const l=this.measurePageBox();let c=this.removeElementScroll(l);return o&&(c=this.removeTransform(c)),pu(c),{animationId:this.root.animationId,measuredBox:l,layoutBox:c,latestValues:{},source:this.id}}measurePageBox(){var o;const{visualElement:l}=this.options;if(!l)return C();const c=l.measureViewportBox();if(!(((o=this.scroll)===null||o===void 0?void 0:o.wasRoot)||this.path.some(gu))){const{scroll:u}=this.root;u&&(Yt(c.x,u.offset.x),Yt(c.y,u.offset.y))}return c}removeElementScroll(o){var l;const c=C();if(R(c,o),!((l=this.scroll)===null||l===void 0)&&l.wasRoot)return c;for(let d=0;d<this.path.length;d++){const u=this.path[d],{scroll:h,options:m}=u;u!==this.root&&h&&m.layoutScroll&&(h.wasRoot&&R(c,o),Yt(c.x,h.offset.x),Yt(c.y,h.offset.y))}return c}applyTransform(o,l=!1){const c=C();R(c,o);for(let d=0;d<this.path.length;d++){const u=this.path[d];!l&&u.options.layoutScroll&&u.scroll&&u!==u.root&&dt(c,{x:-u.scroll.offset.x,y:-u.scroll.offset.y}),it(u.latestValues)&&dt(c,u.latestValues)}return it(this.latestValues)&&dt(c,this.latestValues),c}removeTransform(o){const l=C();R(l,o);for(let c=0;c<this.path.length;c++){const d=this.path[c];if(!d.instance||!it(d.latestValues))continue;qe(d.latestValues)&&d.updateSnapshot();const u=C(),h=d.measurePageBox();R(u,h),Ci(l,d.latestValues,d.snapshot?d.snapshot.layoutBox:void 0,u)}return it(this.latestValues)&&Ci(l,this.latestValues),l}setTargetDelta(o){this.targetDelta=o,this.root.scheduleUpdateProjection(),this.isProjectionDirty=!0}setOptions(o){this.options={...this.options,...o,crossfade:o.crossfade!==void 0?o.crossfade:!0}}clearMeasurements(){this.scroll=void 0,this.layout=void 0,this.snapshot=void 0,this.prevTransformTemplateValue=void 0,this.targetDelta=void 0,this.target=void 0,this.isLayoutDirty=!1}forceRelativeParentToResolveTarget(){this.relativeParent&&this.relativeParent.resolvedRelativeTargetAt!==M.timestamp&&this.relativeParent.resolveTargetDelta(!0)}resolveTargetDelta(o=!1){var l;const c=this.getLead();this.isProjectionDirty||(this.isProjectionDirty=c.isProjectionDirty),this.isTransformDirty||(this.isTransformDirty=c.isTransformDirty),this.isSharedProjectionDirty||(this.isSharedProjectionDirty=c.isSharedProjectionDirty);const d=!!this.resumingFrom||this!==c;if(!(o||d&&this.isSharedProjectionDirty||this.isProjectionDirty||!((l=this.parent)===null||l===void 0)&&l.isProjectionDirty||this.attemptToResolveRelativeTarget||this.root.updateBlockedByResize))return;const{layout:h,layoutId:m}=this.options;if(!(!this.layout||!(h||m))){if(this.resolvedRelativeTargetAt=M.timestamp,!this.targetDelta&&!this.relativeTarget){const f=this.getClosestProjectingParent();f&&f.layout&&this.animationProgress!==1?(this.relativeParent=f,this.forceRelativeParentToResolveTarget(),this.relativeTarget=C(),this.relativeTargetOrigin=C(),Pt(this.relativeTargetOrigin,this.layout.layoutBox,f.layout.layoutBox),R(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}if(!(!this.relativeTarget&&!this.targetDelta)&&(this.target||(this.target=C(),this.targetWithTransforms=C()),this.relativeTarget&&this.relativeTargetOrigin&&this.relativeParent&&this.relativeParent.target?(this.forceRelativeParentToResolveTarget(),Wc(this.target,this.relativeTarget,this.relativeParent.target)):this.targetDelta?(this.resumingFrom?this.target=this.applyTransform(this.layout.layoutBox):R(this.target,this.layout.layoutBox),vi(this.target,this.targetDelta)):R(this.target,this.layout.layoutBox),this.attemptToResolveRelativeTarget)){this.attemptToResolveRelativeTarget=!1;const f=this.getClosestProjectingParent();f&&!!f.resumingFrom==!!this.resumingFrom&&!f.options.layoutScroll&&f.target&&this.animationProgress!==1?(this.relativeParent=f,this.forceRelativeParentToResolveTarget(),this.relativeTarget=C(),this.relativeTargetOrigin=C(),Pt(this.relativeTargetOrigin,this.target,f.target),R(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}}}getClosestProjectingParent(){if(!(!this.parent||qe(this.parent.latestValues)||pi(this.parent.latestValues)))return this.parent.isProjecting()?this.parent:this.parent.getClosestProjectingParent()}isProjecting(){return!!((this.relativeTarget||this.targetDelta||this.options.layoutRoot)&&this.layout)}calcProjection(){var o;const l=this.getLead(),c=!!this.resumingFrom||this!==l;let d=!0;if((this.isProjectionDirty||!((o=this.parent)===null||o===void 0)&&o.isProjectionDirty)&&(d=!1),c&&(this.isSharedProjectionDirty||this.isTransformDirty)&&(d=!1),this.resolvedRelativeTargetAt===M.timestamp&&(d=!1),d)return;const{layout:u,layoutId:h}=this.options;if(this.isTreeAnimating=!!(this.parent&&this.parent.isTreeAnimating||this.currentAnimation||this.pendingAnimation),this.isTreeAnimating||(this.targetDelta=this.relativeTarget=void 0),!this.layout||!(u||h))return;R(this.layoutCorrected,this.layout.layoutBox);const m=this.treeScale.x,f=this.treeScale.y;Fc(this.layoutCorrected,this.treeScale,this.path,c),l.layout&&!l.target&&(this.treeScale.x!==1||this.treeScale.y!==1)&&(l.target=l.layout.layoutBox,l.targetWithTransforms=C());const{target:p}=l;if(!p){this.prevProjectionDelta&&(this.createProjectionDeltas(),this.scheduleRender());return}!this.projectionDelta||!this.prevProjectionDelta?this.createProjectionDeltas():(fi(this.prevProjectionDelta.x,this.projectionDelta.x),fi(this.prevProjectionDelta.y,this.projectionDelta.y)),_t(this.projectionDelta,this.layoutCorrected,p,this.latestValues),(this.treeScale.x!==m||this.treeScale.y!==f||!Li(this.projectionDelta.x,this.prevProjectionDelta.x)||!Li(this.projectionDelta.y,this.prevProjectionDelta.y))&&(this.hasProjected=!0,this.scheduleRender(),this.notifyListeners("projectionUpdate",p))}hide(){this.isVisible=!1}show(){this.isVisible=!0}scheduleRender(o=!0){var l;if((l=this.options.visualElement)===null||l===void 0||l.scheduleRender(),o){const c=this.getStack();c&&c.scheduleRender()}this.resumingFrom&&!this.resumingFrom.instance&&(this.resumingFrom=void 0)}createProjectionDeltas(){this.prevProjectionDelta=ot(),this.projectionDelta=ot(),this.projectionDeltaWithTransform=ot()}setAnimationOrigin(o,l=!1){const c=this.snapshot,d=c?c.latestValues:{},u={...this.latestValues},h=ot();(!this.relativeParent||!this.relativeParent.options.layoutRoot)&&(this.relativeTarget=this.relativeTargetOrigin=void 0),this.attemptToResolveRelativeTarget=!l;const m=C(),f=c?c.source:void 0,p=this.layout?this.layout.source:void 0,g=f!==p,v=this.getStack(),y=!v||v.members.length<=1,S=!!(g&&!y&&this.options.crossfade===!0&&!this.path.some(mu));this.animationProgress=0;let E;this.mixTargetDelta=_=>{const b=_/1e3;zi(h.x,o.x,b),zi(h.y,o.y,b),this.setTargetDelta(h),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout&&(Pt(m,this.layout.layoutBox,this.relativeParent.layout.layoutBox),hu(this.relativeTarget,this.relativeTargetOrigin,m,b),E&&Xc(this.relativeTarget,E)&&(this.isProjectionDirty=!1),E||(E=C()),R(E,this.relativeTarget)),g&&(this.animationValues=u,Rc(u,d,this.latestValues,b,S,y)),this.root.scheduleUpdateProjection(),this.scheduleRender(),this.animationProgress=b},this.mixTargetDelta(this.options.layoutRoot?1e3:0)}startAnimation(o){this.notifyListeners("animationStart"),this.currentAnimation&&this.currentAnimation.stop(),this.resumingFrom&&this.resumingFrom.currentAnimation&&this.resumingFrom.currentAnimation.stop(),this.pendingAnimation&&(K(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=w.update(()=>{Xt.hasAnimatedSinceResize=!0,this.currentAnimation=Xn(0,$i,{...o,onUpdate:l=>{this.mixTargetDelta(l),o.onUpdate&&o.onUpdate(l)},onStop:()=>{},onComplete:()=>{o.onComplete&&o.onComplete(),this.completeAnimation()}}),this.resumingFrom&&(this.resumingFrom.currentAnimation=this.currentAnimation),this.pendingAnimation=void 0})}completeAnimation(){this.resumingFrom&&(this.resumingFrom.currentAnimation=void 0,this.resumingFrom.preserveOpacity=void 0);const o=this.getStack();o&&o.exitAnimationComplete(),this.resumingFrom=this.currentAnimation=this.animationValues=void 0,this.notifyListeners("animationComplete")}finishAnimation(){this.currentAnimation&&(this.mixTargetDelta&&this.mixTargetDelta($i),this.currentAnimation.stop()),this.completeAnimation()}applyTransformsToTarget(){const o=this.getLead();let{targetWithTransforms:l,target:c,layout:d,latestValues:u}=o;if(!(!l||!c||!d)){if(this!==o&&this.layout&&d&&qi(this.options.animationType,this.layout.layoutBox,d.layoutBox)){c=this.target||C();const h=$(this.layout.layoutBox.x);c.x.min=o.target.x.min,c.x.max=c.x.min+h;const m=$(this.layout.layoutBox.y);c.y.min=o.target.y.min,c.y.max=c.y.min+m}R(l,c),dt(l,u),_t(this.projectionDeltaWithTransform,this.layoutCorrected,l,u)}}registerSharedNode(o,l){this.sharedNodes.has(o)||this.sharedNodes.set(o,new Zc),this.sharedNodes.get(o).add(l);const d=l.options.initialPromotionConfig;l.promote({transition:d?d.transition:void 0,preserveFollowOpacity:d&&d.shouldPreserveFollowOpacity?d.shouldPreserveFollowOpacity(l):void 0})}isLead(){const o=this.getStack();return o?o.lead===this:!0}getLead(){var o;const{layoutId:l}=this.options;return l?((o=this.getStack())===null||o===void 0?void 0:o.lead)||this:this}getPrevLead(){var o;const{layoutId:l}=this.options;return l?(o=this.getStack())===null||o===void 0?void 0:o.prevLead:void 0}getStack(){const{layoutId:o}=this.options;if(o)return this.root.sharedNodes.get(o)}promote({needsReset:o,transition:l,preserveFollowOpacity:c}={}){const d=this.getStack();d&&d.promote(this,c),o&&(this.projectionDelta=void 0,this.needsReset=!0),l&&this.setOptions({transition:l})}relegate(){const o=this.getStack();return o?o.relegate(this):!1}resetSkewAndRotation(){const{visualElement:o}=this.options;if(!o)return;let l=!1;const{latestValues:c}=o;if((c.z||c.rotate||c.rotateX||c.rotateY||c.rotateZ||c.skewX||c.skewY)&&(l=!0),!l)return;const d={};c.z&&Ze("z",o,d,this.animationValues);for(let u=0;u<Xe.length;u++)Ze(`rotate${Xe[u]}`,o,d,this.animationValues),Ze(`skew${Xe[u]}`,o,d,this.animationValues);o.render();for(const u in d)o.setStaticValue(u,d[u]),this.animationValues&&(this.animationValues[u]=d[u]);o.scheduleRender()}getProjectionStyles(o){var l,c;if(!this.instance||this.isSVG)return;if(!this.isVisible)return Qc;const d={visibility:""},u=this.getTransformTemplate();if(this.needsReset)return this.needsReset=!1,d.opacity="",d.pointerEvents=We(o==null?void 0:o.pointerEvents)||"",d.transform=u?u(this.latestValues,""):"none",d;const h=this.getLead();if(!this.projectionDelta||!this.layout||!h.target){const g={};return this.options.layoutId&&(g.opacity=this.latestValues.opacity!==void 0?this.latestValues.opacity:1,g.pointerEvents=We(o==null?void 0:o.pointerEvents)||""),this.hasProjected&&!it(this.latestValues)&&(g.transform=u?u({},""):"none",this.hasProjected=!1),g}const m=h.animationValues||h.latestValues;this.applyTransformsToTarget(),d.transform=Jc(this.projectionDeltaWithTransform,this.treeScale,m),u&&(d.transform=u(m,d.transform));const{x:f,y:p}=this.projectionDelta;d.transformOrigin=`${f.origin*100}% ${p.origin*100}% 0`,h.animationValues?d.opacity=h===this?(c=(l=m.opacity)!==null&&l!==void 0?l:this.latestValues.opacity)!==null&&c!==void 0?c:1:this.preserveOpacity?this.latestValues.opacity:m.opacityExit:d.opacity=h===this?m.opacity!==void 0?m.opacity:"":m.opacityExit!==void 0?m.opacityExit:0;for(const g in ht){if(m[g]===void 0)continue;const{correct:v,applyTo:y,isCSSVariable:S}=ht[g],E=d.transform==="none"?m[g]:v(m[g],h);if(y){const _=y.length;for(let b=0;b<_;b++)d[y[b]]=E}else S?this.options.visualElement.renderState.vars[g]=E:d[g]=E}return this.options.layoutId&&(d.pointerEvents=h===this?We(o==null?void 0:o.pointerEvents)||"":"none"),d}clearSnapshot(){this.resumeFrom=this.snapshot=void 0}resetTree(){this.root.nodes.forEach(o=>{var l;return(l=o.currentAnimation)===null||l===void 0?void 0:l.stop()}),this.root.nodes.forEach(Ii),this.root.sharedNodes.clear()}}}function eu(t){t.updateLayout()}function su(t){var e;const s=((e=t.resumeFrom)===null||e===void 0?void 0:e.snapshot)||t.snapshot;if(t.isLead()&&t.layout&&s&&t.hasListeners("didUpdate")){const{layoutBox:n,measuredBox:i}=t.layout,{animationType:r}=t.options,o=s.source!==t.layout.source;r==="size"?Ri(h=>{const m=o?s.measuredBox[h]:s.layoutBox[h],f=$(m);m.min=n[h].min,m.max=m.min+f}):qi(r,s.layoutBox,n)&&Ri(h=>{const m=o?s.measuredBox[h]:s.layoutBox[h],f=$(n[h]);m.max=m.min+f,t.relativeTarget&&!t.currentAnimation&&(t.isProjectionDirty=!0,t.relativeTarget[h].max=t.relativeTarget[h].min+f)});const l=ot();_t(l,n,s.layoutBox);const c=ot();o?_t(c,t.applyTransform(i,!0),s.measuredBox):_t(c,n,s.layoutBox);const d=!ki(l);let u=!1;if(!t.resumeFrom){const h=t.getClosestProjectingParent();if(h&&!h.resumeFrom){const{snapshot:m,layout:f}=h;if(m&&f){const p=C();Pt(p,s.layoutBox,m.layoutBox);const g=C();Pt(g,n,f.layoutBox),Ni(p,g)||(u=!0),h.options.layoutRoot&&(t.relativeTarget=g,t.relativeTargetOrigin=p,t.relativeParent=h)}}}t.notifyListeners("didUpdate",{layout:n,snapshot:s,delta:c,layoutDelta:l,hasLayoutChanged:d,hasRelativeLayoutChanged:u})}else if(t.isLead()){const{onExitComplete:n}=t.options;n&&n()}t.options.transition=void 0}function nu(t){t.parent&&(t.isProjecting()||(t.isProjectionDirty=t.parent.isProjectionDirty),t.isSharedProjectionDirty||(t.isSharedProjectionDirty=!!(t.isProjectionDirty||t.parent.isProjectionDirty||t.parent.isSharedProjectionDirty)),t.isTransformDirty||(t.isTransformDirty=t.parent.isTransformDirty))}function iu(t){t.isProjectionDirty=t.isSharedProjectionDirty=t.isTransformDirty=!1}function ou(t){t.clearSnapshot()}function Ii(t){t.clearMeasurements()}function ru(t){t.isLayoutDirty=!1}function au(t){const{visualElement:e}=t.options;e&&e.getProps().onBeforeLayoutMeasure&&e.notify("BeforeLayoutMeasure"),t.resetTransform()}function Ui(t){t.finishAnimation(),t.targetDelta=t.relativeTarget=t.target=void 0,t.isProjectionDirty=!0}function lu(t){t.resolveTargetDelta()}function cu(t){t.calcProjection()}function uu(t){t.resetSkewAndRotation()}function du(t){t.removeLeadSnapshot()}function zi(t,e,s){t.translate=D(e.translate,0,s),t.scale=D(e.scale,1,s),t.origin=e.origin,t.originPoint=e.originPoint}function Ki(t,e,s,n){t.min=D(e.min,s.min,n),t.max=D(e.max,s.max,n)}function hu(t,e,s,n){Ki(t.x,e.x,s.x,n),Ki(t.y,e.y,s.y,n)}function mu(t){return t.animationValues&&t.animationValues.opacityExit!==void 0}const fu={duration:.45,ease:[.4,0,.1,1]},Gi=t=>typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().includes(t),Wi=Gi("applewebkit/")&&!Gi("chrome/")?Math.round:O;function Hi(t){t.min=Wi(t.min),t.max=Wi(t.max)}function pu(t){Hi(t.x),Hi(t.y)}function qi(t,e,s){return t==="position"||t==="preserve-aspect"&&!Gc(Oi(e),Oi(s),.2)}function gu(t){var e;return t!==t.root&&((e=t.scroll)===null||e===void 0?void 0:e.wasRoot)}function yu(t,e,s,n={passive:!0}){return t.addEventListener(e,s,n),()=>t.removeEventListener(e,s)}const vu=Fi({attachResizeListener:(t,e)=>yu(t,"resize",e),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body.scrollLeft,y:document.documentElement.scrollTop||document.body.scrollTop}),checkIsScrollRoot:()=>!0}),Je={current:void 0},bu=Fi({measureScroll:t=>({x:t.scrollLeft,y:t.scrollTop}),defaultParent:()=>{if(!Je.current){const t=new vu({});t.mount(window),t.setOptions({layoutScroll:!0}),Je.current=t}return Je.current},resetTransform:(t,e)=>{t.style.transform=e!==void 0?e:"none"},checkIsScrollRoot:t=>window.getComputedStyle(t).position==="fixed"});function Yi(t){if(t)return t.options.allowProjection!==!1?t.projection:Yi(t.parent)}function Xi(t,e){return e.max===e.min?0:t/(e.max-e.min)*100}const wt={correct:(t,e)=>{if(!e.target)return t;if(typeof t=="string")if(x.test(t))t=parseFloat(t);else return t;const s=Xi(t,e.target.x),n=Xi(t,e.target.y);return`${s}% ${n}%`}},xu={correct:(t,{treeScale:e,projectionDelta:s})=>{const n=t,i=J.parse(t);if(i.length>5)return n;const r=J.createTransformer(t),o=typeof i[0]!="number"?1:0,l=s.x.scale*e.x,c=s.y.scale*e.y;i[0+o]/=l,i[1+o]/=c;const d=D(l,c,.5);return typeof i[2+o]=="number"&&(i[2+o]/=d),typeof i[3+o]=="number"&&(i[3+o]/=d),r(i)}},Zi={borderRadius:{...wt,applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]},borderTopLeftRadius:wt,borderTopRightRadius:wt,borderBottomLeftRadius:wt,borderBottomRightRadius:wt,boxShadow:xu};function At(t){return typeof t=="object"&&t!==null&&"nodeType"in t}class Su extends z{constructor(e){super(e),cs(Zi)}initProjection(){const e=this.state.options;this.state.visualElement.projection=new bu(this.state.visualElement.latestValues,e["data-framer-portal-id"]?void 0:Yi(this.state.visualElement.parent)),this.state.visualElement.projection.isPresent=!0,this.setOptions()}beforeMount(){this.initProjection()}setOptions(){const e=this.state.options;this.state.visualElement.projection.setOptions({layout:e.layout,layoutId:e.layoutId,alwaysMeasureLayout:!!e.drag||e.dragConstraints&&At(e.dragConstraints),visualElement:this.state.visualElement,animationType:typeof e.layout=="string"?e.layout:"both",layoutRoot:e.layoutRoot,layoutScroll:e.layoutScroll,crossfade:e.crossfade,onExitComplete:()=>{var s;if(!((s=this.state.visualElement.projection)!=null&&s.isPresent)){const n=oe.get(this.state.element);this.state.isSafeToRemove=!0,n&&n({detail:{isExit:!0}},!0)}}})}update(){this.setOptions()}mount(){var e;(e=this.state.visualElement.projection)==null||e.mount(this.state.element)}}function Ji(t){return t.pointerType==="mouse"?typeof t.button!="number"||t.button<=0:t.isPrimary!==!1}function Qe(t,e="page"){return{point:{x:t[`${e}X`],y:t[`${e}Y`]}}}function Vu(t){return e=>Ji(e)&&t(e,Qe(e))}function Ct(t,e,s,n){return Ht(t,e,Vu(s),n)}function Qi(t){let e=null;return()=>{const s=()=>{e=null};return e===null?(e=t,s):!1}}const to=Qi("dragHorizontal"),eo=Qi("dragVertical");function Eu(t){let e=!1;if(t==="y")e=eo();else if(t==="x")e=to();else{const s=to(),n=eo();s&&n?e=()=>{s(),n()}:(s&&s(),n&&n())}return e}function ts(t){return t.max-t.min}function Tu(t,e,s){return s>e?e:s<t?t:s}function Zt(t,e,s){return t+(e-t)*s}function so(t,e,s){const n=e-t;return n===0?1:(s-t)/n}function _u(t,{min:e,max:s},n){return e!==void 0&&t<e?t=n?Zt(e,t,n.min):Math.max(t,e):s!==void 0&&t>s&&(t=n?Zt(s,t,n.max):Math.min(t,s)),t}const es=.35;function Pu(t,{top:e,left:s,bottom:n,right:i}){return{x:no(t.x,s,i),y:no(t.y,e,n)}}function no(t,e,s){return{min:e!==void 0?t.min+e:void 0,max:s!==void 0?t.max+s-(t.max-t.min):void 0}}function wu(t=es){return t===!1?t=0:t===!0&&(t=es),{x:io(t,"left","right"),y:io(t,"top","bottom")}}function io(t,e,s){return{min:oo(t,e),max:oo(t,s)}}function oo(t,e){return typeof t=="number"?t:t[e]||0}function Au(t,e){const s={};return e.min!==void 0&&(s.min=e.min-t.min),e.max!==void 0&&(s.max=e.max-t.min),s}function Cu(t,e){return{x:ro(t.x,e.x),y:ro(t.y,e.y)}}function ro(t,e){let s=e.min-t.min,n=e.max-t.max;return e.max-e.min<t.max-t.min&&([s,n]=[n,s]),{min:s,max:n}}function Du(t,e){let s=.5;const n=ts(t),i=ts(e);return i>n?s=so(e.min,e.max-n,t.min):n>i&&(s=so(t.min,t.max-i,e.min)),Tu(0,1,s)}const ao=(t,e)=>Math.abs(t-e);function ku(t,e){const s=ao(t.x,e.x),n=ao(t.y,e.y);return Math.sqrt(s**2+n**2)}const Mu=t=>t*1e3;function Bu(t){return t/1e3}class lo{constructor(e,s,{transformPagePoint:n,contextWindow:i,dragSnapToOrigin:r=!1}={}){if(this.startEvent=null,this.lastMoveEvent=null,this.lastMoveEventInfo=null,this.handlers={},this.contextWindow=window,this.updatePoint=()=>{if(!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const h=ns(this.lastMoveEventInfo,this.history),m=this.startEvent!==null,f=ku(h.offset,{x:0,y:0})>=3;if(!m&&!f)return;const{point:p}=h,{timestamp:g}=M;this.history.push({...p,timestamp:g});const{onStart:v,onMove:y}=this.handlers;m||(v&&v(this.lastMoveEvent,h),this.startEvent=this.lastMoveEvent),y&&y(this.lastMoveEvent,h)},this.handlePointerMove=(h,m)=>{this.lastMoveEvent=h,this.lastMoveEventInfo=ss(m,this.transformPagePoint),w.update(this.updatePoint,!0)},this.handlePointerUp=(h,m)=>{this.end();const{onEnd:f,onSessionEnd:p,resumeAnimation:g}=this.handlers;if(this.dragSnapToOrigin&&g&&g(),!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const v=ns(h.type==="pointercancel"?this.lastMoveEventInfo:ss(m,this.transformPagePoint),this.history);this.startEvent&&f&&f(h,v),p&&p(h,v)},!Ji(e))return;this.dragSnapToOrigin=r,this.handlers=s,this.transformPagePoint=n,this.contextWindow=i||window;const o=Qe(e),l=ss(o,this.transformPagePoint),{point:c}=l,{timestamp:d}=M;this.history=[{...c,timestamp:d}];const{onSessionStart:u}=s;u&&u(e,ns(l,this.history)),this.removeListeners=Et(Ct(this.contextWindow,"pointermove",this.handlePointerMove),Ct(this.contextWindow,"pointerup",this.handlePointerUp),Ct(this.contextWindow,"pointercancel",this.handlePointerUp))}updateHandlers(e){this.handlers=e}end(){this.removeListeners&&this.removeListeners(),K(this.updatePoint)}}function ss(t,e){return e?{point:e(t.point)}:t}function co(t,e){return{x:t.x-e.x,y:t.y-e.y}}function ns({point:t},e){return{point:t,delta:co(t,uo(e)),offset:co(t,Nu(e)),velocity:Ou(e,.1)}}function Nu(t){return t[0]}function uo(t){return t[t.length-1]}function Ou(t,e){if(t.length<2)return{x:0,y:0};let s=t.length-1,n=null;const i=uo(t);for(;s>=0&&(n=t[s],!(i.timestamp-n.timestamp>Mu(e)));)s--;if(!n)return{x:0,y:0};const r=Bu(i.timestamp-n.timestamp);if(r===0)return{x:0,y:0};const o={x:(i.x-n.x)/r,y:(i.y-n.y)/r};return o.x===1/0&&(o.x=0),o.y===1/0&&(o.y=0),o}const ho=()=>({min:0,max:0});function Lu(){return{x:ho(),y:ho()}}function I(t){return[t("x"),t("y")]}function Ru(t){return!!(Lt(t)&&t.add)}function mo(t,e){const s=t.getValue("willChange");if(Ru(s))return s.add(e)}function fo({top:t,left:e,right:s,bottom:n}){return{x:{min:e,max:s},y:{min:t,max:n}}}function $u(t,e){if(!e)return t;const s=e({x:t.left,y:t.top}),n=e({x:t.right,y:t.bottom});return{top:s.y,left:s.x,bottom:n.y,right:n.x}}function ju({x:t,y:e}){return{top:e.min,right:t.max,bottom:e.max,left:t.min}}function po(t,e){t.min=t.min+e,t.max=t.max+e}function Fu(t,e){return fo($u(t.getBoundingClientRect(),e))}function Iu(t,e,s){const n=Fu(t,s),{scroll:i}=e;return i&&(po(n.x,i.offset.x),po(n.y,i.offset.y)),n}function go(t){return!oe.has(t.current)}function yo({current:t}){return t?t.ownerDocument.defaultView:null}const Uu=new WeakMap;class zu{constructor(e){this.openGlobalLock=null,this.isDragging=!1,this.currentDirection=null,this.originPoint={x:0,y:0},this.constraints=!1,this.hasMutatedConstraints=!1,this.elastic=Lu(),this.visualElement=e}start(e,{snapToCursor:s=!1}={}){if(!go(this.visualElement))return;const n=d=>{const{dragSnapToOrigin:u}=this.getProps();u?this.pauseAnimation():this.stopAnimation(),s&&this.snapToCursor(Qe(d,"page").point)},i=(d,u)=>{const{drag:h,dragPropagation:m,onDragStart:f}=this.getProps();if(h&&!m&&(this.openGlobalLock&&this.openGlobalLock(),this.openGlobalLock=Eu(h),!this.openGlobalLock))return;this.isDragging=!0,this.currentDirection=null,this.resolveConstraints(),this.visualElement.projection&&(this.visualElement.projection.isAnimationBlocked=!0,this.visualElement.projection.target=void 0),I(g=>{let v=this.getAxisMotionValue(g).get()||0;if(Er.test(v)){const{projection:y}=this.visualElement;if(y&&y.layout){const S=y.layout.layoutBox[g];S&&(v=ts(S)*(parseFloat(v)/100))}}this.originPoint[g]=v}),f&&w.postRender(()=>f(d,u)),mo(this.visualElement,"transform"),this.visualElement.state.setActive("whileDrag",!0)},r=(d,u)=>{const{dragPropagation:h,dragDirectionLock:m,onDirectionLock:f,onDrag:p}=this.getProps();if(!h&&!this.openGlobalLock)return;const{offset:g}=u;if(m&&this.currentDirection===null){this.currentDirection=Ku(g),this.currentDirection!==null&&f&&f(this.currentDirection);return}this.updateAxis("x",u.point,g),this.updateAxis("y",u.point,g),this.visualElement.render(),p&&p(d,u)},o=(d,u)=>this.stop(d,u),l=()=>I(d=>{var u;return this.getAnimationState(d)==="paused"&&((u=this.getAxisMotionValue(d).animation)==null?void 0:u.play())}),{dragSnapToOrigin:c}=this.getProps();this.panSession=new lo(e,{onSessionStart:n,onStart:i,onMove:r,onSessionEnd:o,resumeAnimation:l},{transformPagePoint:this.visualElement.getTransformPagePoint(),dragSnapToOrigin:c,contextWindow:yo(this.visualElement)})}stop(e,s){const n=this.isDragging;if(this.cancel(),!n)return;const{velocity:i}=s;this.startAnimation(i);const{onDragEnd:r}=this.getProps();r&&w.postRender(()=>r(e,s))}cancel(){this.isDragging=!1;const{projection:e,animationState:s}=this.visualElement;e&&(e.isAnimationBlocked=!1),this.panSession&&this.panSession.end(),this.panSession=void 0;const{dragPropagation:n}=this.getProps();!n&&this.openGlobalLock&&(this.openGlobalLock(),this.openGlobalLock=null),this.visualElement.state.setActive("whileDrag",!1)}updateAxis(e,s,n){const{drag:i}=this.getProps();if(!n||!Jt(e,i,this.currentDirection))return;const r=this.getAxisMotionValue(e);let o=this.originPoint[e]+n[e];this.constraints&&this.constraints[e]&&(o=_u(o,this.constraints[e],this.elastic[e])),r.set(o)}resolveConstraints(){var e;const{dragConstraints:s,dragElastic:n}=this.getProps(),i=this.visualElement.projection&&!this.visualElement.projection.layout?this.visualElement.projection.measure(!1):(e=this.visualElement.projection)==null?void 0:e.layout,r=this.constraints;s&&At(s)?this.constraints||(this.constraints=this.resolveRefConstraints()):s&&i?this.constraints=Pu(i.layoutBox,s):this.constraints=!1,this.elastic=wu(n),r!==this.constraints&&i&&this.constraints&&!this.hasMutatedConstraints&&I(o=>{this.constraints!==!1&&this.getAxisMotionValue(o)&&(this.constraints[o]=Au(i.layoutBox[o],this.constraints[o]))})}resolveRefConstraints(){const{dragConstraints:e,onMeasureDragConstraints:s}=this.getProps();if(!e||!At(e))return!1;const n=e,{projection:i}=this.visualElement;if(!i||!i.layout)return!1;const r=Iu(n,i.root,this.visualElement.getTransformPagePoint());let o=Cu(i.layout.layoutBox,r);if(s){const l=s(ju(o));this.hasMutatedConstraints=!!l,l&&(o=fo(l))}return o}startAnimation(e){const{drag:s,dragMomentum:n,dragElastic:i,dragTransition:r,dragSnapToOrigin:o,onDragTransitionEnd:l}=this.getProps(),c=this.constraints||{},d=I(u=>{if(!Jt(u,s,this.currentDirection))return;let h=c&&c[u]||{};o&&(h={min:0,max:0});const m=i?200:1e6,f=i?40:1e7,p={type:"inertia",velocity:n?e[u]:0,bounceStiffness:m,bounceDamping:f,timeConstant:750,restDelta:1,restSpeed:10,...r,...h};return this.startAxisValueAnimation(u,p)});return Promise.all(d).then(l)}startAxisValueAnimation(e,s){const n=this.getAxisMotionValue(e);return mo(this.visualElement,e),n.start(Ke(e,n,0,s,this.visualElement,!1))}stopAnimation(){go(this.visualElement)&&I(e=>this.getAxisMotionValue(e).stop())}pauseAnimation(){I(e=>{var s;return(s=this.getAxisMotionValue(e).animation)==null?void 0:s.pause()})}getAnimationState(e){var s;return(s=this.getAxisMotionValue(e).animation)==null?void 0:s.state}getAxisMotionValue(e){const s=`_drag${e.toUpperCase()}`,n=this.visualElement.getProps();return n[s]||this.visualElement.getValue(e,(n.initial?n.initial[e]:void 0)||0)}snapToCursor(e){I(s=>{const{drag:n}=this.getProps();if(!Jt(s,n,this.currentDirection))return;const{projection:i}=this.visualElement,r=this.getAxisMotionValue(s);if(i&&i.layout){const{min:o,max:l}=i.layout.layoutBox[s];r.set(e[s]-Zt(o,l,.5))}})}scalePositionWithinConstraints(){if(!this.visualElement.current)return;const{drag:e,dragConstraints:s}=this.getProps(),{projection:n}=this.visualElement;if(!At(s)||!n||!this.constraints)return;this.stopAnimation();const i={x:0,y:0};I(o=>{const l=this.getAxisMotionValue(o);if(l&&this.constraints!==!1){const c=l.get();i[o]=Du({min:c,max:c},this.constraints[o])}});const{transformTemplate:r}=this.visualElement.getProps();this.visualElement.current.style.transform=r?r({},""):"none",n.root&&n.root.updateScroll(),n.updateLayout(),this.resolveConstraints(),I(o=>{if(!Jt(o,e,null))return;const l=this.getAxisMotionValue(o),{min:c,max:d}=this.constraints[o];l.set(Zt(c,d,i[o]))})}addListeners(){if(!this.visualElement.current)return;Uu.set(this.visualElement,this);const e=this.visualElement.current,s=Ct(e,"pointerdown",c=>{const{drag:d,dragListener:u=!0}=this.getProps();d&&u&&this.start(c)}),n=()=>{const{dragConstraints:c}=this.getProps();At(c)&&(this.constraints=this.resolveRefConstraints())},{projection:i}=this.visualElement,r=i.addEventListener("measure",n);i&&!i.layout&&(i.root&&i.root.updateScroll(),i.updateLayout()),w.read(n);const o=Ht(window,"resize",()=>this.scalePositionWithinConstraints()),l=i.addEventListener("didUpdate",({delta:c,hasLayoutChanged:d})=>{this.isDragging&&d&&(I(u=>{const h=this.getAxisMotionValue(u);h&&(this.originPoint[u]+=c[u].translate,h.set(h.get()+c[u].translate))}),this.visualElement.render())});return()=>{o(),s(),r(),l&&l()}}getProps(){const e=this.visualElement.getProps(),{drag:s=!1,dragDirectionLock:n=!1,dragPropagation:i=!1,dragConstraints:r=!1,dragElastic:o=es,dragMomentum:l=!0}=e;return{...e,drag:s,dragDirectionLock:n,dragPropagation:i,dragConstraints:r,dragElastic:o,dragMomentum:l}}}function Jt(t,e,s){return(e===!0||e===t)&&(s===null||s===t)}function Ku(t,e=10){let s=null;return Math.abs(t.y)>e?s="y":Math.abs(t.x)>e&&(s="x"),s}class Gu extends z{constructor(e){super(e),this.removeGroupControls=O,this.removeListeners=O,this.controls=new zu(e.visualElement)}mount(){const{dragControls:e}=this.state.options;e&&(this.removeGroupControls=e.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||O}unmount(){this.removeGroupControls(),this.removeListeners()}}class Wu extends z{constructor(e){super(e),cs(Zi)}beforeUpdate(){this.state.willUpdate("beforeUpdate")}update(){this.didUpdate()}didUpdate(){var e,s;(this.state.options.layout||this.state.options.layoutId||this.state.options.drag)&&((s=(e=this.state.visualElement.projection)==null?void 0:e.root)==null||s.didUpdate())}mount(){var e;const s=this.state.options,n=this.state.options.layoutGroup;if(s.layout||s.layoutId){const i=this.state.visualElement.projection;i&&(i.promote(),(e=n==null?void 0:n.group)==null||e.add(i)),Xt.hasEverUpdated=!0}this.didUpdate()}beforeUnmount(){const e=this.state.visualElement.projection;e&&(this.state.willUpdate("beforeUnmount"),this.state.options.layoutId?(e.isPresent=!1,e.relegate()):this.state.options.layout&&(this.state.isSafeToRemove=!0))}unmount(){const e=this.state.options.layoutGroup,s=this.state.visualElement.projection;s&&(e!=null&&e.group&&e.group.remove(s),this.didUpdate())}}function vo(t){return(e,s)=>{t&&w.postRender(()=>t(e,s))}}class Hu extends z{constructor(){super(...arguments),this.removePointerDownListener=O}onPointerDown(e){this.session=new lo(e,this.createPanHandlers(),{transformPagePoint:this.state.visualElement.getTransformPagePoint(),contextWindow:yo(this.state.visualElement)})}createPanHandlers(){return{onSessionStart:vo((e,s)=>{const{onPanSessionStart:n}=this.state.options;n&&n(e,s)}),onStart:vo((e,s)=>{const{onPanStart:n}=this.state.options;n&&n(e,s)}),onMove:(e,s)=>{const{onPan:n}=this.state.options;n&&n(e,s)},onEnd:(e,s)=>{const{onPanEnd:n}=this.state.options;delete this.session,n&&w.postRender(()=>n(e,s))}}}mount(){this.removePointerDownListener=Ct(this.state.element,"pointerdown",this.onPointerDown.bind(this))}update(){}unmount(){this.removePointerDownListener(),this.session&&this.session.end()}}const qu=[pc,Tc,Pc,Cc,kc,Su,Hu,Gu,Wu],Yu={reduceMotion:"never",transition:void 0,nonce:void 0},[Xu,im]=mt("MotionConfig");function Zu(){return Xu(a.computed(()=>Yu))}function Qt(t){return(t==null?void 0:t.nodeType)===3||(t==null?void 0:t.nodeType)===8?Qt(t.nextSibling):t}const[Ju,om]=mt("LazyMotionContext");function Qu(t){const e=Jo(null),s=tr({}),n=Zu(),i=cr({}),r=Ju({features:a.ref([]),strict:!1}),o=a.useAttrs();function l(){return s.id&&t.layoutId?`${s.id}-${t.layoutId}`:t.layoutId||void 0}function c(){return{...t,lazyMotionContext:r,layoutId:l(),transition:t.transition??n.value.transition,layoutGroup:s,motionConfig:n.value,inViewOptions:t.inViewOptions??n.value.inViewOptions,animatePresenceContext:i,initial:i.initial===!1?i.initial:t.initial===!0?void 0:t.initial}}function d(){return{...o,...c()}}const u=new fr(d(),e);Qo(u);function h(){var f;const p=u.type==="svg",g={...o};Object.keys(o).forEach(S=>{Lt(o[S])&&(g[S]=o[S].get())});let v={...t.style,...p?{}:((f=u.visualElement)==null?void 0:f.latestValues)||u.baseTarget};if(p){const{attributes:S,style:E}=Cr({...u.isMounted()?u.target:u.baseTarget,...v});Object.assign(g,S),v=E}t.drag&&t.dragListener!==!1&&Object.assign(v,{userSelect:"none",WebkitUserSelect:"none",WebkitTouchCallout:"none",touchAction:t.drag===!0?"none":`pan-${t.drag==="x"?"y":"x"}`});const y=_r(v);return y&&(g.style=y),g}const m=a.getCurrentInstance().proxy;return a.onBeforeMount(()=>{u.beforeMount()}),a.onMounted(()=>{u.mount(Qt(m.$el),d(),ed(m))}),a.onBeforeUnmount(()=>u.beforeUnmount()),a.onUnmounted(()=>{const f=Qt(m.$el);f!=null&&f.isConnected||u.unmount()}),a.onBeforeUpdate(()=>{u.beforeUpdate()}),a.onUpdated(()=>{u.update(d())}),{getProps:c,getAttrs:h,layoutGroup:s,state:u}}const td={ignoreStrict:{type:Boolean},forwardMotionProps:{type:Boolean,default:!1},asChild:{type:Boolean,default:!1},hover:{type:[String,Array,Object]},press:{type:[String,Array,Object]},inView:{type:[String,Array,Object]},focus:{type:[String,Array,Object]},whileDrag:{type:[String,Array,Object]},whileHover:{type:[String,Array,Object],default:({hover:t})=>t},whilePress:{type:[String,Array,Object],default:({press:t})=>t},whileInView:{type:[String,Array,Object],default:({inView:t})=>t},whileFocus:{type:[String,Array,Object],default:({focus:t})=>t},custom:{type:[String,Number,Object,Array]},initial:{type:[String,Array,Object,Boolean],default:void 0},animate:{type:[String,Array,Object],default:void 0},exit:{type:[String,Array,Object]},variants:{type:Object},inherit:{type:Boolean},style:{type:Object},transformTemplate:{type:Function},transition:{type:Object},layoutGroup:{type:Object},motionConfig:{type:Object},onAnimationComplete:{type:Function},onUpdate:{type:Function},layout:{type:[Boolean,String],default:!1},layoutId:{type:String,default:void 0},layoutScroll:{type:Boolean,default:!1},layoutRoot:{type:Boolean,default:!1},"data-framer-portal-id":{type:String},crossfade:{type:Boolean,default:!0},layoutDependency:{type:[String,Number,Object,Array]},onBeforeLayoutMeasure:{type:Function},onLayoutMeasure:{type:Function},onLayoutAnimationStart:{type:Function},onLayoutAnimationComplete:{type:Function},globalPressTarget:{type:Boolean},onPressStart:{type:Function},onPress:{type:Function},onPressCancel:{type:Function},onHoverStart:{type:Function},onHoverEnd:{type:Function},inViewOptions:{type:Object},onViewportEnter:{type:Function},onViewportLeave:{type:Function},drag:{type:[Boolean,String]},dragSnapToOrigin:{type:Boolean},dragDirectionLock:{type:Boolean},dragPropagation:{type:Boolean},dragConstraints:{type:[Boolean,Object]},dragElastic:{type:[Boolean,Number,Object],default:.5},dragMomentum:{type:Boolean,default:!0},dragTransition:{type:Object},dragListener:{type:Boolean,default:!0},dragControls:{type:Object},onDragStart:{type:Function},onDragEnd:{type:Function},onDrag:{type:Function},onDirectionLock:{type:Function},onDragTransitionEnd:{type:Function},onMeasureDragConstraints:{type:Function},onPanSessionStart:{type:Function},onPanStart:{type:Function},onPan:{type:Function},onPanEnd:{type:Function}};function ed(t){var e;const s=((e=Qt(t.$el))==null?void 0:e.style.display)==="none";return t.$.vnode.transition&&s}const sd=new Map,nd=new Map;function id(t){if(!Array.isArray(t))return[t];const e=[];for(const s of t)Array.isArray(s)?e.push(...s):e.push(s);return e}const od=["area","img","input"];function rd(t,e,s){var n,i;if(typeof t=="string"&&od.includes(t))return a.h(t,e);if(t==="template"){if(!s.default)return null;const r=id(s.default()),o=r.findIndex(u=>u.type!==a.Comment);if(o===-1)return r;const l=r[o];(n=l.props)==null||delete n.ref;const c=l.props?a.mergeProps(e,l.props):e;e.class&&((i=l.props)!=null&&i.class)&&delete l.props.class;const d=a.cloneVNode(l,c);for(const u in c)u.startsWith("on")&&(d.props||(d.props={}),d.props[u]=c[u]);return r.length===1?d:(r[o]=d,r)}return null}function bo(t,e={}){var s;const n=typeof t=="string",i=n?t:t.name||"",r=((s=e.features)==null?void 0:s.length)>0?sd:nd;if(n&&(r!=null&&r.has(t)))return r.get(t);const o=a.defineComponent({inheritAttrs:!1,props:{...td,features:{type:Object,default:()=>e.features||[]},as:{type:[String,Object],default:t||"div"}},name:i?`motion.${i}`:"Motion",setup(l,{slots:c}){const{getProps:d,getAttrs:u,state:h}=Qu(l);function m(){const f=h.element;if((!(typeof l.as=="object")||l.asChild)&&f){const{style:g}=u();if(g)for(const[v,y]of Object.entries(g))f.style[v]=y}}return()=>{const f=d(),p=u(),g=l.asChild?"template":l.as,v={...e.forwardMotionProps||l.forwardMotionProps?f:{},...p,onVnodeUpdated:m},y=rd(g,v,c);return y!==null?y:a.h(g,{...v},c)}}});return n&&(r==null||r.set(t,o)),o}function ad(t=[]){return new Proxy({},{get(e,s){return s==="create"?(n,i)=>bo(n,{...i,features:t}):bo(s,{features:t})}})}const xo=ad(qu);xo.create("div");const ld={class:"slds-navigation-list--vertical"},cd={class:"slds-navigation-list__item-content"},ud={class:"slds-navigation-list__item-title"},dd={__name:"SidebarLayout",props:{schemas:{type:Array,required:!0},selectedSchema:{type:Object,default:null}},emits:["selectSchema"],setup(t,{emit:e}){var l;const s=t,n=e,i=a.ref(((l=s.selectedSchema)==null?void 0:l.fileName)||null);function r(c){i.value=c.fileName,n("selectSchema",c)}function o(c){var d;return((d=c.schema)==null?void 0:d.title)||c.fileName||"Untitled Schema"}return(c,d)=>(a.openBlock(),a.createElementBlock("div",ld,[d[0]||(d[0]=a.createElementVNode("div",{class:"slds-navigation-list__item"},[a.createElementVNode("div",{class:"slds-navigation-list__item-content"},[a.createElementVNode("div",{class:"slds-navigation-list__item-title"},[a.createElementVNode("span",{class:"slds-text-heading_small"},"Schemas")])])],-1)),(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(t.schemas,u=>(a.openBlock(),a.createElementBlock("div",{key:u.fileName,class:"slds-navigation-list__item"},[a.createElementVNode("div",cd,[a.createElementVNode("div",ud,[a.createVNode(a.unref(xo).button,{"while-hover":{scale:1.05},"while-press":{scale:.95},class:a.normalizeClass(["slds-button slds-button_neutral slds-button_stretch",{"slds-is-active":i.value===u.fileName}]),onClick:h=>r(u)},{default:a.withCtx(()=>[a.createTextVNode(a.toDisplayString(o(u)),1)]),_:2},1032,["class","onClick"])])])]))),128))]))}},So="data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20height='52'%20width='52'%20viewBox='0%200%20520%20520'%20fill='%23fff'%3e%3cpath%20d='M514%20425%20285%2055a28%2028%200%200%200-50%200L6%20425c-14%2023%200%2055%2025%2055h458c25%200%2040-32%2025-55zm-254-25c-17%200-30-13-30-30s13-30%2030-30%2030%2013%2030%2030-13%2030-30%2030zm30-90c0%206-4%2010-10%2010h-40c-6%200-10-4-10-10V180c0-6%204-10%2010-10h40c6%200%2010%204%2010%2010v130z'/%3e%3c/svg%3e",Vo=(t,e)=>{const s=t.__vccOpts||t;for(const[n,i]of e)s[n]=i;return s},hd={class:"slds-notify slds-notify_alert slds-theme_alert-texture slds-theme_warning",role:"alert"},md={class:"slds-notify__content"},Eo=Vo({__name:"NoPropertiesMessage",props:{title:{type:String,default:"No Properties Defined"},message:{type:String,default:"This object doesn't have any properties defined in the schema."}},setup(t){return(e,s)=>(a.openBlock(),a.createElementBlock("div",hd,[s[0]||(s[0]=a.createElementVNode("span",{class:"slds-assistive-text"},"warning",-1)),s[1]||(s[1]=a.createElementVNode("span",{class:"slds-icon_container slds-icon-utility-warning slds-m-right_x-small"},[a.createElementVNode("img",{src:So,class:"slds-icon slds-icon_x-small warning-icon",alt:""})],-1)),a.createElementVNode("h2",null,a.toDisplayString(t.title),1),a.createElementVNode("div",md,[a.createElementVNode("p",null,a.toDisplayString(t.message),1)])]))}},[["__scopeId","data-v-a28aa892"]]),fd={key:0,class:"slds-m-top_medium"},pd={class:"slds-box slds-theme_shade"},gd={class:"slds-grid slds-wrap slds-gutters"},yd={class:"constraint-item"},vd={class:"slds-text-title_caps slds-text-color_default"},bd={class:"slds-text-body_regular slds-m-top_xx-small"},is={__name:"SchemaConstraints",props:{schema:{type:Object,required:!0}},setup(t){const e=t,s=a.computed(()=>{const l={};return["minimum","maximum","exclusiveMinimum","exclusiveMaximum","minLength","maxLength","pattern","minItems","maxItems","uniqueItems","minProperties","maxProperties"].forEach(d=>{e.schema[d]!==void 0&&(l[d]=e.schema[d])}),l}),n=a.computed(()=>Object.entries(s.value).length!==0);function i(l){return l.replace(/([A-Z])/g," $1").replace(/^./,c=>c.toUpperCase())}function r(l){return typeof l=="boolean"?l?"Yes":"No":typeof l=="string"&&l.startsWith("^")?`Pattern: ${l}`:l}function o(l){return typeof l=="boolean"?l?"slds-badge_success":"slds-badge_inverse":typeof l=="number"?"slds-badge_warning":typeof l=="string"&&l.startsWith("^")?"slds-badge_info":""}return(l,c)=>n.value?(a.openBlock(),a.createElementBlock("div",fd,[c[0]||(c[0]=a.createElementVNode("div",{class:"slds-text-heading_small slds-m-bottom_small"}," Constraints ",-1)),a.createElementVNode("div",pd,[a.createElementVNode("div",gd,[(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(s.value,(d,u)=>(a.openBlock(),a.createElementBlock("div",{key:u,class:"slds-col slds-size_1-of-2 slds-p-around_xx-small"},[a.createElementVNode("div",yd,[a.createElementVNode("div",vd,a.toDisplayString(i(u)),1),a.createElementVNode("div",bd,[a.createElementVNode("span",{class:a.normalizeClass(["slds-badge",o(d)])},a.toDisplayString(r(d)),3)])])]))),128))])])])):a.createCommentVNode("",!0)}},xd={class:"array-schema"},Sd={class:"slds-box slds-theme_shade"},Vd={class:"slds-grid slds-gutters"},Ed={key:0,class:"slds-col"},Td={class:"slds-badge"},_d={key:1,class:"slds-m-top_medium"},Pd={class:"slds-text-title_caps slds-m-bottom_xx-small"},wd={key:3,class:"slds-m-top_medium"},Ad={key:4,class:"slds-m-top_medium"},Cd={key:0,class:"slds-m-top_xx-small"},Dd={__name:"ArraySchema",props:{schema:{type:Object,required:!0},rootSchema:{type:Object,required:!0}},setup(t){const e=t,s=a.computed(()=>["minItems","maxItems","uniqueItems"].some(r=>r in e.schema)),n=a.computed(()=>e.schema.items?Array.isArray(e.schema.items)?"Tuple":e.schema.items.type||"Not specified":"Not defined");return(i,r)=>(a.openBlock(),a.createElementBlock("div",xd,[a.createElementVNode("div",Sd,[a.createElementVNode("div",Vd,[r[1]||(r[1]=a.createElementVNode("div",{class:"slds-col"},[a.createElementVNode("div",{class:"slds-text-title_caps slds-m-bottom_xx-small"}," Type "),a.createElementVNode("div",{class:"slds-badge"}," array ")],-1)),t.schema.items?(a.openBlock(),a.createElementBlock("div",Ed,[r[0]||(r[0]=a.createElementVNode("div",{class:"slds-text-title_caps slds-m-bottom_xx-small"}," Items Type ",-1)),a.createElementVNode("div",Td,a.toDisplayString(n.value),1)])):a.createCommentVNode("",!0)])]),s.value?(a.openBlock(),a.createBlock(is,{key:0,schema:t.schema},null,8,["schema"])):a.createCommentVNode("",!0),t.schema.items?(a.openBlock(),a.createElementBlock("div",_d,[r[2]||(r[2]=a.createElementVNode("div",{class:"slds-text-heading_small slds-m-bottom_small"}," Items Schema ",-1)),Array.isArray(t.schema.items)?(a.openBlock(!0),a.createElementBlock(a.Fragment,{key:0},a.renderList(t.schema.items,(o,l)=>(a.openBlock(),a.createElementBlock("div",{key:l,class:"slds-m-bottom_medium"},[a.createElementVNode("div",Pd," Index "+a.toDisplayString(l),1),a.createVNode(q,{schema:o,"root-schema":t.rootSchema,"is-root":!1},null,8,["schema","root-schema"])]))),128)):(a.openBlock(),a.createBlock(q,{key:1,schema:t.schema.items,"root-schema":t.rootSchema,"is-root":!1},null,8,["schema","root-schema"]))])):(a.openBlock(),a.createBlock(Eo,{key:2,title:"No Items Defined",message:"This array doesn't have any items defined in the schema."})),t.schema.contains?(a.openBlock(),a.createElementBlock("div",wd,[r[3]||(r[3]=a.createElementVNode("div",{class:"slds-text-heading_small slds-m-bottom_small"}," Contains ",-1)),a.createVNode(q,{schema:t.schema.contains,"root-schema":t.rootSchema,"is-root":!1},null,8,["schema","root-schema"])])):a.createCommentVNode("",!0),t.schema.additionalItems!==void 0&&Array.isArray(t.schema.items)?(a.openBlock(),a.createElementBlock("div",Ad,[r[4]||(r[4]=a.createElementVNode("div",{class:"slds-text-heading_small slds-m-bottom_small"}," Additional Items ",-1)),typeof t.schema.additionalItems=="boolean"?(a.openBlock(),a.createElementBlock("div",Cd,[a.createElementVNode("span",{class:a.normalizeClass(t.schema.additionalItems?"status-allowed":"status-denied")},a.toDisplayString(t.schema.additionalItems?"Allowed":"Not allowed"),3)])):(a.openBlock(),a.createBlock(q,{key:1,schema:t.schema.additionalItems,"root-schema":t.rootSchema,"is-root":!1},null,8,["schema","root-schema"]))])):a.createCommentVNode("",!0)]))}},kd={class:"slds-box slds-theme_shade"},Md={class:"slds-text-heading_small slds-m-bottom_small"},Bd={class:"slds-tabs_default"},Nd={class:"slds-tabs_default__nav",role:"tablist"},Od=["aria-selected","aria-controls","onClick"],Ld={class:"slds-tabs_default__title"},Rd=["id"],$d={class:"slds-p-around_medium"},jd={class:"slds-text-title_caps slds-m-bottom_small"},Fd={__name:"CompositionSchema",props:{schema:{type:Object,required:!0},rootSchema:{type:Object,required:!0}},setup(t){const e=t,s=a.computed(()=>e.schema.anyOf?"anyOf":e.schema.oneOf?"oneOf":e.schema.allOf?"allOf":null),n=a.ref(0),i=a.computed(()=>e.schema[s.value]||[]);a.watchEffect(()=>{i.value.forEach(d=>{d.type||(d.type=e.schema.type)})});const r=a.computed(()=>{switch(s.value){case"oneOf":return"One Of (Choose One)";case"anyOf":return"Any Of (Choose Any)";case"allOf":return"All Of (Must Match All)";default:return s.value}}),o=a.computed(()=>{switch(e.compositionType){case"oneOf":return"slds-badge_success";case"anyOf":return"slds-badge_warning";case"allOf":return"slds-badge_inverse";default:return""}});function l(d){return Array.isArray(d.type)?d.type.join(" | "):d.type||"object"}function c(d,u){return d.title?d.title:`Option ${u+1}`}return(d,u)=>(a.openBlock(),a.createElementBlock("div",kd,[a.createElementVNode("div",Md,[a.createElementVNode("span",{class:a.normalizeClass(["slds-badge",o.value])},a.toDisplayString(r.value),3)]),a.createElementVNode("div",Bd,[a.createElementVNode("ul",Nd,[(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(i.value,(h,m)=>(a.openBlock(),a.createElementBlock("li",{key:m,class:a.normalizeClass(["slds-tabs_default__item",{"slds-is-active":n.value===m}]),role:"presentation"},[a.createElementVNode("a",{class:"slds-tabs_default__link",role:"tab",tabindex:"0","aria-selected":n.value===m,"aria-controls":`tab-${m}`,onClick:f=>n.value=m},[a.createElementVNode("span",Ld,a.toDisplayString(c(h,m)),1)],8,Od)],2))),128))]),(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(i.value,(h,m)=>(a.openBlock(),a.createElementBlock("div",{id:`tab-${m}`,key:m,class:a.normalizeClass(["slds-tabs_default__content",{"slds-show":n.value===m,"slds-hide":n.value!==m}]),role:"tabpanel"},[a.createElementVNode("div",$d,[a.createElementVNode("div",jd," Schema Type: "+a.toDisplayString(l(h)),1),a.createVNode(q,{schema:h,"root-schema":t.rootSchema,"is-root":!1},null,8,["schema","root-schema"])])],10,Rd))),128))])]))}},Id={class:"slds-box slds-theme_shade"},Ud={class:"slds-grid slds-wrap slds-gutters"},zd={class:"slds-badge slds-badge_inverse"},Kd={__name:"EnumSchema",props:{schema:{type:Object,required:!0},rootSchema:{type:Object,required:!0}},setup(t){const e=t,s=a.computed(()=>e.schema.enum);return(n,i)=>(a.openBlock(),a.createElementBlock("div",Id,[i[0]||(i[0]=a.createElementVNode("div",{class:"slds-text-heading_small slds-m-bottom_small"}," Enum Values ",-1)),a.createElementVNode("div",Ud,[(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(s.value,(r,o)=>(a.openBlock(),a.createElementBlock("div",{key:o,class:"slds-col slds-size_1-of-3 slds-p-around_xx-small"},[a.createElementVNode("div",zd,a.toDisplayString(r),1)]))),128))])]))}},Gd="data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20height='52'%20width='52'%20viewBox='0%200%20520%20520'%20fill='%23fff'%3e%3cpath%20d='M476%20178%20271%20385c-6%206-16%206-22%200L44%20178c-6-6-6-16%200-22l22-22c6-6%2016-6%2022%200l161%20163c6%206%2016%206%2022%200l161-163c6-6%2016-6%2022%200l22%2022c5%207%205%2016%200%2022z'/%3e%3c/svg%3e",Wd={key:0},Hd={key:1},qd={class:"slds-box slds-m-top_small"},Yd={class:"slds-table_container"},Xd={class:"slds-table slds-table_cell-buffer slds-table_bordered"},Zd=["onClick"],Jd=["title"],Qd={class:"slds-truncate"},th={class:"slds-badge"},eh=["title"],sh={class:"slds-truncate"},nh={key:0,class:"slds-badge slds-badge_success"},ih={key:1,class:"slds-badge slds-badge_inverse"},oh={key:0},rh={colspan:"4",class:"slds-p-around_medium"},ah={class:"slds-box slds-theme_shade"},lh={key:2},ch={key:3},uh={key:0},dh={__name:"ObjectSchema",props:{schema:{type:Object,required:!0},rootSchema:{type:Object,required:!0}},setup(t){const e=t,s=a.ref({}),n=a.computed(()=>e.schema.properties&&Object.keys(e.schema.properties).length>0||e.schema.patternProperties&&Object.keys(e.schema.patternProperties).length>0);function i(l){return e.schema.required&&e.schema.required.includes(l)}function r(l){return l.type?l.type:l.oneOf||l.allOf||l.anyOf?"composition":l.enum?"enum":"No type found"}function o(l){s.value[l]=!s.value[l]}return(l,c)=>(a.openBlock(),a.createElementBlock("div",null,[c[6]||(c[6]=a.createElementVNode("div",null,[a.createElementVNode("div",null,"Type: object")],-1)),a.createVNode(is,{schema:t.schema},null,8,["schema"]),t.schema.required&&t.schema.required.length>0?(a.openBlock(),a.createElementBlock("div",Wd,[c[0]||(c[0]=a.createElementVNode("span",null,"Required properties:",-1)),a.createElementVNode("span",null,a.toDisplayString(t.schema.required.join(", ")),1)])):a.createCommentVNode("",!0),n.value?(a.openBlock(),a.createElementBlock("div",Hd,[a.createElementVNode("div",qd,[c[2]||(c[2]=a.createElementVNode("div",{class:"slds-text-heading_small slds-m-bottom_small"}," Properties ",-1)),a.createElementVNode("div",Yd,[a.createElementVNode("table",Xd,[c[1]||(c[1]=a.createElementVNode("thead",null,[a.createElementVNode("tr",{class:"slds-line-height_reset"},[a.createElementVNode("th",{class:"slds-text-title_caps",scope:"col"},[a.createElementVNode("div",{class:"slds-truncate",title:"Property"}," Property ")]),a.createElementVNode("th",{class:"slds-text-title_caps",scope:"col"},[a.createElementVNode("div",{class:"slds-truncate",title:"Type"}," Type ")]),a.createElementVNode("th",{class:"slds-text-title_caps",scope:"col"},[a.createElementVNode("div",{class:"slds-truncate",title:"Description"}," Description ")]),a.createElementVNode("th",{class:"slds-text-title_caps",scope:"col"},[a.createElementVNode("div",{class:"slds-truncate",title:"Required"}," Required ")])])],-1)),a.createElementVNode("tbody",null,[(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(t.schema.properties,(d,u)=>(a.openBlock(),a.createElementBlock(a.Fragment,{key:u},[a.createElementVNode("tr",{class:"slds-hint-parent is-interactive",onClick:h=>o(u)},[a.createElementVNode("td",null,[a.createElementVNode("div",{class:"slds-truncate",title:u},[a.createElementVNode("img",{src:Gd,class:a.normalizeClass(["slds-button__icon",{expanded:s.value[u]}]),alt:""},null,2),a.createTextVNode(" "+a.toDisplayString(u),1)],8,Jd)]),a.createElementVNode("td",null,[a.createElementVNode("div",Qd,[a.createElementVNode("span",th,a.toDisplayString(r(d)),1)])]),a.createElementVNode("td",null,[a.createElementVNode("div",{class:"slds-truncate",title:d.description},a.toDisplayString(d.description||"No description"),9,eh)]),a.createElementVNode("td",null,[a.createElementVNode("div",sh,[i(u)?(a.openBlock(),a.createElementBlock("span",nh,"Required")):(a.openBlock(),a.createElementBlock("span",ih,"Optional"))])])],8,Zd),a.createVNode(a.Transition,null,{default:a.withCtx(()=>[s.value[u]?(a.openBlock(),a.createElementBlock("tr",oh,[a.createElementVNode("td",rh,[a.createElementVNode("div",ah,[a.createVNode(q,{schema:d,"root-schema":t.rootSchema,"is-root":!1},null,8,["schema","root-schema"])])])])):a.createCommentVNode("",!0)]),_:2},1024)],64))),128))])])])])])):a.createCommentVNode("",!0),t.schema.patternProperties?(a.openBlock(),a.createElementBlock("div",lh,[c[4]||(c[4]=a.createElementVNode("div",null,"Pattern Properties",-1)),a.createElementVNode("div",null,[(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(t.schema.patternProperties,(d,u)=>(a.openBlock(),a.createElementBlock("div",{key:u},[a.createElementVNode("div",null,[a.createElementVNode("div",null,[c[3]||(c[3]=a.createElementVNode("span",null,"Pattern:",-1)),a.createElementVNode("code",null,a.toDisplayString(u),1)])]),a.createVNode(q,{schema:d,"root-schema":t.rootSchema,"is-root":!1},null,8,["schema","root-schema"])]))),128))])])):a.createCommentVNode("",!0),t.schema.additionalProperties!==void 0?(a.openBlock(),a.createElementBlock("div",ch,[c[5]||(c[5]=a.createElementVNode("div",null,"Additional Properties",-1)),typeof t.schema.additionalProperties=="boolean"?(a.openBlock(),a.createElementBlock("div",uh,[a.createElementVNode("span",{class:a.normalizeClass(t.schema.additionalProperties?"status-allowed":"status-denied")},a.toDisplayString(t.schema.additionalProperties?"Allowed":"Not allowed"),3)])):(a.openBlock(),a.createBlock(q,{key:1,schema:t.schema.additionalProperties,"root-schema":t.rootSchema,"is-root":!1},null,8,["schema","root-schema"]))])):a.createCommentVNode("",!0),n.value?a.createCommentVNode("",!0):(a.openBlock(),a.createBlock(Eo,{key:4}))]))}},hh={class:"slds-box slds-m-top_small"},mh={class:"slds-box slds-theme_shade"},fh={class:"slds-text-body_regular"},ph={class:"slds-grid slds-gutters"},gh={class:"slds-col"},yh={class:"slds-badge"},vh={class:"slds-col"},Dt={__name:"PrimitiveSchema",props:{schema:{type:Object,required:!0}},setup(t){return(e,s)=>(a.openBlock(),a.createElementBlock("div",hh,[s[2]||(s[2]=a.createElementVNode("div",{class:"slds-text-heading_small slds-m-bottom_small"}," Type Information ",-1)),a.createElementVNode("div",mh,[a.createElementVNode("div",fh,[a.createElementVNode("div",ph,[a.createElementVNode("div",gh,[s[0]||(s[0]=a.createElementVNode("div",{class:"slds-text-title_caps slds-m-bottom_xx-small"}," Type ",-1)),a.createElementVNode("div",yh,a.toDisplayString(t.schema.type),1)]),a.createElementVNode("div",vh,[s[1]||(s[1]=a.createElementVNode("div",{class:"slds-text-title_caps slds-m-bottom_xx-small"}," Description ",-1)),a.createElementVNode("div",null,a.toDisplayString(t.schema.description||"No description"),1)])])])]),a.createVNode(is,{schema:t.schema},null,8,["schema"])]))}},bh={object:dh,array:Dd,string:Dt,number:Dt,integer:Dt,boolean:Dt,null:Dt},os={hasComposition:t=>!!(t.anyOf||t.oneOf||t.allOf),isEnum:t=>t.enum&&Array.isArray(t.enum),getComponentForSchema:t=>os.hasComposition(t)?Fd:os.isEnum(t)?Kd:bh[t.type]||null},xh={class:"slds-grid slds-grid_vertical"},Sh={class:"slds-col slds-size_1-of-1"},Vh={class:"slds-card"},Eh={class:"slds-card__body slds-card__body_inner"},Th={__name:"SchemaLayout",setup(t){return(e,s)=>(a.openBlock(),a.createElementBlock("div",xh,[a.createElementVNode("div",Sh,[a.createElementVNode("div",Vh,[a.createElementVNode("div",Eh,[a.renderSlot(e.$slots,"default")])])])]))}},_h={class:"slds-box"},Ph={class:"slds-box slds-theme_shade"},wh={__name:"PlainSchemaView",props:{schema:{type:Object,required:!0}},setup(t){const e=t,s=a.computed(()=>JSON.stringify(e.schema,null,2));return(n,i)=>(a.openBlock(),a.createElementBlock("div",_h,[i[0]||(i[0]=a.createElementVNode("div",{class:"slds-text-heading_small slds-m-bottom_small"}," Raw JSON Schema ",-1)),a.createElementVNode("pre",Ph,[a.createElementVNode("code",null,a.toDisplayString(s.value),1)])]))}},Ah={class:"slds-page-header"},Ch={class:"slds-page-header__row"},Dh={class:"slds-page-header__col-title"},kh={class:"slds-media"},Mh={class:"slds-media__body"},Bh={class:"slds-page-header__name"},Nh={class:"slds-page-header__name-title"},Oh={class:"slds-page-header__title slds-truncate",title:"{{ schema.title || 'Schema' }}"},Lh={class:"slds-page-header__meta-text"},Rh={__name:"SchemaHeader",props:{schema:{type:Object,required:!0}},setup(t){return(e,s)=>(a.openBlock(),a.createElementBlock("div",Ah,[a.createElementVNode("div",Ch,[a.createElementVNode("div",Dh,[a.createElementVNode("div",kh,[s[0]||(s[0]=a.createElementVNode("div",{class:"slds-media__figure"},[a.createElementVNode("span",{class:"slds-icon_container slds-icon-standard-account"},[a.createElementVNode("img",{src:as,class:"slds-icon slds-icon_small",alt:""})])],-1)),a.createElementVNode("div",Mh,[a.createElementVNode("div",Bh,[a.createElementVNode("div",Nh,[a.createElementVNode("h1",Oh,a.toDisplayString(t.schema.title||"Schema"),1)])]),a.createElementVNode("div",Lh,a.toDisplayString(t.schema.description||"No description provided"),1)])])])])]))}},$h={class:"slds-tabs_default__nav",role:"tablist"},jh={__name:"SchemaTabs",props:{modelValue:{type:String,required:!0}},emits:["update:modelValue"],setup(t){return(e,s)=>(a.openBlock(),a.createElementBlock("ul",$h,[a.createElementVNode("li",{class:a.normalizeClass(["slds-tabs_default__item",{"slds-is-active":t.modelValue==="visual"}]),role:"presentation"},[a.createElementVNode("a",{class:"slds-tabs_default__link",role:"tab",tabindex:"0","aria-selected":"true","aria-controls":"visual-tab",onClick:s[0]||(s[0]=n=>e.$emit("update:modelValue","visual"))},s[2]||(s[2]=[a.createElementVNode("span",{class:"slds-tabs_default__title"},"Visual",-1)]))],2),a.createElementVNode("li",{class:a.normalizeClass(["slds-tabs_default__item",{"slds-is-active":t.modelValue==="plain"}]),role:"presentation"},[a.createElementVNode("a",{class:"slds-tabs_default__link",role:"tab",tabindex:"0","aria-selected":"true","aria-controls":"plain-tab",onClick:s[1]||(s[1]=n=>e.$emit("update:modelValue","plain"))},s[3]||(s[3]=[a.createElementVNode("span",{class:"slds-tabs_default__title"},"Plain JSON",-1)]))],2)]))}},Fh={class:"slds-notify slds-notify_alert slds-theme_alert-texture slds-theme_warning",role:"alert"},Ih={class:"slds-notify__content"},Uh=Vo({__name:"UnknownSchemaMessage",props:{title:{type:String,default:"Unknown schema"},message:{type:String,default:"This schema doesen't have proper handling yet."}},setup(t){return(e,s)=>(a.openBlock(),a.createElementBlock("div",Fh,[s[0]||(s[0]=a.createElementVNode("span",{class:"slds-assistive-text"},"warning",-1)),s[1]||(s[1]=a.createElementVNode("span",{class:"slds-icon_container slds-icon-utility-warning slds-m-right_x-small"},[a.createElementVNode("img",{src:So,class:"slds-icon slds-icon_x-small warning-icon",alt:""})],-1)),a.createElementVNode("h2",null,a.toDisplayString(t.title),1),a.createElementVNode("div",Ih,[a.createElementVNode("p",null,a.toDisplayString(t.message),1)])]))}},[["__scopeId","data-v-bde50c13"]]),zh={class:"slds-tabs_default"},Kh={class:"slds-p-around_medium"},Gh={class:"slds-m-top_medium"},Wh={class:"slds-p-around_medium"},q={__name:"SchemaViewer",props:{schema:{type:Object,required:!0},rootSchema:{type:Object,default:null},isRoot:{type:Boolean,default:!0}},setup(t){const e=t,s=a.ref("visual"),n=a.computed(()=>e.isRoot?e.schema:e.rootSchema);a.provide("rootSchema",n);const i=a.computed(()=>os.getComponentForSchema(e.schema));return(r,o)=>(a.openBlock(),a.createBlock(Th,null,{default:a.withCtx(()=>[a.createElementVNode("div",zh,[a.createVNode(jh,{modelValue:s.value,"onUpdate:modelValue":o[0]||(o[0]=l=>s.value=l)},null,8,["modelValue"]),a.createElementVNode("div",{class:a.normalizeClass({"slds-show":s.value==="visual","slds-hide":s.value!=="visual"})},[a.createElementVNode("div",Kh,[a.createVNode(Rh,{schema:t.schema},null,8,["schema"]),a.createElementVNode("div",Gh,[i.value?(a.openBlock(),a.createBlock(a.resolveDynamicComponent(i.value),{key:0,schema:t.schema,"root-schema":n.value},null,8,["schema","root-schema"])):(a.openBlock(),a.createBlock(Uh,{key:1}))])])],2),a.createElementVNode("div",{class:a.normalizeClass({"slds-show":s.value==="plain","slds-hide":s.value!=="plain"})},[a.createElementVNode("div",Wh,[a.createVNode(wh,{schema:t.schema},null,8,["schema"])])],2)])]),_:1}))}},Hh={class:"slds-grid slds-grid_vertical"},qh={class:"slds-grid slds-gutters slds-grid_vertical-fill"},Yh={class:"slds-col slds-size_2-of-12"},Xh={class:"slds-col slds-size_10-of-12"},Zh={key:1,class:"slds-p-around_medium"},To={__name:"App",props:{title:{type:String,default:"JSON Schema Documentation"},description:{type:String,default:""},schemas:{type:Array,default:()=>[]},generatedAt:{type:String,default:()=>new Date().toISOString()}},setup(t){const e=t,s=a.ref(e.schemas.length>0?e.schemas[0]:null);function n(i){s.value=i}return(i,r)=>(a.openBlock(),a.createElementBlock("div",Hh,[a.createVNode(Yo,{title:t.title},null,8,["title"]),a.createElementVNode("div",qh,[a.createElementVNode("div",Yh,[a.createVNode(dd,{schemas:t.schemas,"selected-schema":s.value,onSelectSchema:n},null,8,["schemas","selected-schema"])]),a.createElementVNode("div",Xh,[s.value?(a.openBlock(),a.createBlock(q,{key:0,schema:s.value.schema,"is-root":!0},null,8,["schema"])):(a.openBlock(),a.createElementBlock("div",Zh,r[0]||(r[0]=[a.createStaticVNode('<div class="slds-text-align_center"><svg viewBox="0 0 454 272" aria-hidden="true" xmlns="http://www.w3.org/2000/svg"><g stroke="none" stroke-width="1" fill="none" fill-rule="evenodd"><circle vector-effect="non-scaling-stroke" cx="150" cy="150" r="40" fill="#F9F9F9"></circle><circle vector-effect="non-scaling-stroke" cx="150" cy="150" r="30" fill="#ECEBEA"></circle><circle vector-effect="non-scaling-stroke" cx="150" cy="150" r="20" fill="#D9D7D5"></circle></g></svg></div><div class="slds-text-align_center slds-m-top_medium"><h3 class="slds-text-heading_medium"> No Schema Selected </h3><p class="slds-text-body_regular slds-m-top_small"> Select a schema from the sidebar to view its documentation. </p></div>',2)])))])]),a.createVNode(Fo,{description:t.description,"generated-at":t.generatedAt,"schema-count":t.schemas.length},null,8,["description","generated-at","schema-count"])]))}};async function _o(){const t=window.__JSON_SCHEMA_DOCS_DATA__||{title:"JSON Schema Documentation",description:"",schemas:[],generatedAt:new Date().toISOString()};document.getElementById("app")&&a.createApp(To,t).mount("#app")}document.readyState==="loading"?document.addEventListener("DOMContentLoaded",_o):_o(),Object.defineProperty(Y,"createApp",{enumerable:!0,get:()=>a.createApp}),Y.App=To,Object.defineProperty(Y,Symbol.toStringTag,{value:"Module"})});
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "slds-json-schema-renderer",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "1.3.
|
|
4
|
+
"version": "1.3.1",
|
|
5
5
|
"description": "A CLI tool to generate documentation from JSON schema files",
|
|
6
6
|
"author": "PhyberApex",
|
|
7
7
|
"license": "MIT",
|
|
@@ -50,12 +50,10 @@
|
|
|
50
50
|
"commander": "13.1.0",
|
|
51
51
|
"fs-extra": "11.3.0",
|
|
52
52
|
"glob": "11.0.2",
|
|
53
|
-
"motion-v": "
|
|
54
|
-
"process": "^0.11.10",
|
|
55
|
-
"shx": "0.4.0"
|
|
53
|
+
"motion-v": "1.0.0"
|
|
56
54
|
},
|
|
57
55
|
"devDependencies": {
|
|
58
|
-
"@antfu/eslint-config": "
|
|
56
|
+
"@antfu/eslint-config": "4.12.0",
|
|
59
57
|
"@babel/cli": "7.27.0",
|
|
60
58
|
"@babel/core": "7.26.10",
|
|
61
59
|
"@babel/preset-env": "7.26.9",
|
|
@@ -74,6 +72,7 @@
|
|
|
74
72
|
"semantic-release": "24.2.3",
|
|
75
73
|
"style-loader": "4.0.0",
|
|
76
74
|
"vite": "6.3.3",
|
|
75
|
+
"vite-plugin-node-polyfills": "^0.23.0",
|
|
77
76
|
"vite-plugin-vue-devtools": "7.7.5",
|
|
78
77
|
"vue": "3.5.13"
|
|
79
78
|
},
|