@zenith-open/zenithcms-admin 1.0.0-beta.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.
- package/LICENSE +21 -0
- package/README.md +43 -0
- package/dist/assets/ApiExplorerPage-UJpoKRI0.js +42 -0
- package/dist/assets/ApiExplorerPage-UJpoKRI0.js.map +1 -0
- package/dist/assets/AuditLogPage-8xYlRl1I.js +1 -0
- package/dist/assets/AuditLogPage-8xYlRl1I.js.map +1 -0
- package/dist/assets/BlockBuilderPage-DcOo3Vnt.js +1 -0
- package/dist/assets/BlockBuilderPage-DcOo3Vnt.js.map +1 -0
- package/dist/assets/BuilderPage-Iu8F_bN1.js +1 -0
- package/dist/assets/BuilderPage-Iu8F_bN1.js.map +1 -0
- package/dist/assets/CollectionHooksPage-Dn_ujtlp.js +7 -0
- package/dist/assets/CollectionHooksPage-Dn_ujtlp.js.map +1 -0
- package/dist/assets/CollectionsPage-BSPHf7H2.js +1 -0
- package/dist/assets/CollectionsPage-BSPHf7H2.js.map +1 -0
- package/dist/assets/ComponentBuilderPage-CT6S12LA.js +14 -0
- package/dist/assets/ComponentBuilderPage-CT6S12LA.js.map +1 -0
- package/dist/assets/DashboardBuilder-Cbi9Ddiu.js +1 -0
- package/dist/assets/DashboardBuilder-Cbi9Ddiu.js.map +1 -0
- package/dist/assets/EmptyState-X_SXKpQY.js +1 -0
- package/dist/assets/EmptyState-X_SXKpQY.js.map +1 -0
- package/dist/assets/MediaLibrary-BzXE95xo.js +1 -0
- package/dist/assets/MediaLibrary-BzXE95xo.js.map +1 -0
- package/dist/assets/PluginsPage-5YRpbP-N.js +10 -0
- package/dist/assets/PluginsPage-5YRpbP-N.js.map +1 -0
- package/dist/assets/RedirectsPage-D_4jAdaI.js +1 -0
- package/dist/assets/RedirectsPage-D_4jAdaI.js.map +1 -0
- package/dist/assets/SchemaBuilderPage-EFA5XIAa.js +14 -0
- package/dist/assets/SchemaBuilderPage-EFA5XIAa.js.map +1 -0
- package/dist/assets/SettingsPage-BRpcMw48.js +33 -0
- package/dist/assets/SettingsPage-BRpcMw48.js.map +1 -0
- package/dist/assets/SetupWizard-D57HIkrs.js +62 -0
- package/dist/assets/SetupWizard-D57HIkrs.js.map +1 -0
- package/dist/assets/SpatialEditor-CPgS7Zrd.js +3 -0
- package/dist/assets/SpatialEditor-CPgS7Zrd.js.map +1 -0
- package/dist/assets/TemplatesPage-B-nNYv3o.js +1 -0
- package/dist/assets/TemplatesPage-B-nNYv3o.js.map +1 -0
- package/dist/assets/TrashPage-Ccusal1w.js +1 -0
- package/dist/assets/TrashPage-Ccusal1w.js.map +1 -0
- package/dist/assets/index-ChcKY5Xe.js +11 -0
- package/dist/assets/index-ChcKY5Xe.js.map +1 -0
- package/dist/assets/index-CxhwdV2K.css +1 -0
- package/dist/assets/login-bg.png +0 -0
- package/dist/assets/rolldown-runtime-CNC7AqOf.js +1 -0
- package/dist/assets/useUnsavedGuard-CMMKQT9a.js +1 -0
- package/dist/assets/useUnsavedGuard-CMMKQT9a.js.map +1 -0
- package/dist/assets/utils-fgvbH6CB.js +1 -0
- package/dist/assets/utils-fgvbH6CB.js.map +1 -0
- package/dist/assets/vendor-C-9IqjvY.js +1 -0
- package/dist/assets/vendor-C-9IqjvY.js.map +1 -0
- package/dist/assets/vendor-forms-BnBLxarY.js +1 -0
- package/dist/assets/vendor-forms-BnBLxarY.js.map +1 -0
- package/dist/assets/vendor-react-DQVTOTFO.js +195 -0
- package/dist/assets/vendor-react-DQVTOTFO.js.map +1 -0
- package/dist/favicon.svg +1 -0
- package/dist/icons.svg +24 -0
- package/dist/index.html +30 -0
- package/dist/logo/zenith.svg +9 -0
- package/dist/sw.js +3 -0
- package/dist/sw.js.map +1 -0
- package/dist/workbox-9c191d2f.js +3 -0
- package/dist/workbox-9c191d2f.js.map +1 -0
- package/dist/zenith.svg +9 -0
- package/package.json +60 -0
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{n as e,r as t,t as n}from"./rolldown-runtime-CNC7AqOf.js";var r=n((e=>{function t(e,t){var n=e.length;e.push(t);a:for(;0<n;){var r=n-1>>>1,a=e[r];if(0<i(a,t))e[r]=t,e[n]=a,n=r;else break a}}function n(e){return e.length===0?null:e[0]}function r(e){if(e.length===0)return null;var t=e[0],n=e.pop();if(n!==t){e[0]=n;a:for(var r=0,a=e.length,o=a>>>1;r<o;){var s=2*(r+1)-1,c=e[s],l=s+1,u=e[l];if(0>i(c,n))l<a&&0>i(u,c)?(e[r]=u,e[l]=n,r=l):(e[r]=c,e[s]=n,r=s);else if(l<a&&0>i(u,n))e[r]=u,e[l]=n,r=l;else break a}}return t}function i(e,t){var n=e.sortIndex-t.sortIndex;return n===0?e.id-t.id:n}if(e.unstable_now=void 0,typeof performance==`object`&&typeof performance.now==`function`){var a=performance;e.unstable_now=function(){return a.now()}}else{var o=Date,s=o.now();e.unstable_now=function(){return o.now()-s}}var c=[],l=[],u=1,d=null,f=3,p=!1,m=!1,h=!1,g=!1,_=typeof setTimeout==`function`?setTimeout:null,v=typeof clearTimeout==`function`?clearTimeout:null,y=typeof setImmediate<`u`?setImmediate:null;function b(e){for(var i=n(l);i!==null;){if(i.callback===null)r(l);else if(i.startTime<=e)r(l),i.sortIndex=i.expirationTime,t(c,i);else break;i=n(l)}}function x(e){if(h=!1,b(e),!m)if(n(c)!==null)m=!0,S||(S=!0,D());else{var t=n(l);t!==null&&O(x,t.startTime-e)}}var S=!1,C=-1,w=5,T=-1;function ee(){return g?!0:!(e.unstable_now()-T<w)}function E(){if(g=!1,S){var t=e.unstable_now();T=t;var i=!0;try{a:{m=!1,h&&(h=!1,v(C),C=-1),p=!0;var a=f;try{b:{for(b(t),d=n(c);d!==null&&!(d.expirationTime>t&&ee());){var o=d.callback;if(typeof o==`function`){d.callback=null,f=d.priorityLevel;var s=o(d.expirationTime<=t);if(t=e.unstable_now(),typeof s==`function`){d.callback=s,b(t),i=!0;break b}d===n(c)&&r(c),b(t)}else r(c);d=n(c)}if(d!==null)i=!0;else{var u=n(l);u!==null&&O(x,u.startTime-t),i=!1}}break a}finally{d=null,f=a,p=!1}i=void 0}}finally{i?D():S=!1}}}var D;if(typeof y==`function`)D=function(){y(E)};else if(typeof MessageChannel<`u`){var te=new MessageChannel,ne=te.port2;te.port1.onmessage=E,D=function(){ne.postMessage(null)}}else D=function(){_(E,0)};function O(t,n){C=_(function(){t(e.unstable_now())},n)}e.unstable_IdlePriority=5,e.unstable_ImmediatePriority=1,e.unstable_LowPriority=4,e.unstable_NormalPriority=3,e.unstable_Profiling=null,e.unstable_UserBlockingPriority=2,e.unstable_cancelCallback=function(e){e.callback=null},e.unstable_forceFrameRate=function(e){0>e||125<e?console.error(`forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported`):w=0<e?Math.floor(1e3/e):5},e.unstable_getCurrentPriorityLevel=function(){return f},e.unstable_next=function(e){switch(f){case 1:case 2:case 3:var t=3;break;default:t=f}var n=f;f=t;try{return e()}finally{f=n}},e.unstable_requestPaint=function(){g=!0},e.unstable_runWithPriority=function(e,t){switch(e){case 1:case 2:case 3:case 4:case 5:break;default:e=3}var n=f;f=e;try{return t()}finally{f=n}},e.unstable_scheduleCallback=function(r,i,a){var o=e.unstable_now();switch(typeof a==`object`&&a?(a=a.delay,a=typeof a==`number`&&0<a?o+a:o):a=o,r){case 1:var s=-1;break;case 2:s=250;break;case 5:s=1073741823;break;case 4:s=1e4;break;default:s=5e3}return s=a+s,r={id:u++,callback:i,priorityLevel:r,startTime:a,expirationTime:s,sortIndex:-1},a>o?(r.sortIndex=a,t(l,r),n(c)===null&&r===n(l)&&(h?(v(C),C=-1):h=!0,O(x,a-o))):(r.sortIndex=s,t(c,r),m||p||(m=!0,S||(S=!0,D()))),r},e.unstable_shouldYield=ee,e.unstable_wrapCallback=function(e){var t=f;return function(){var n=f;f=t;try{return e.apply(this,arguments)}finally{f=n}}}})),i=n(((e,t)=>{t.exports=r()}));function a(e,t){e.indexOf(t)===-1&&e.push(t)}function o(e,t){let n=e.indexOf(t);n>-1&&e.splice(n,1)}function s([...e],t,n){let r=t<0?e.length+t:t;if(r>=0&&r<e.length){let r=n<0?e.length+n:n,[i]=e.splice(t,1);e.splice(r,0,i)}return e}var c=(e,t,n)=>n>t?t:n<e?e:n,l=()=>{},u={},d=e=>/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(e);function f(e){return typeof e==`object`&&!!e}var p=e=>/^0[^.\s]+$/u.test(e);function m(e){let t;return()=>(t===void 0&&(t=e()),t)}var h=e=>e,g=(e,t)=>n=>t(e(n)),_=(...e)=>e.reduce(g),v=(e,t,n)=>{let r=t-e;return r===0?1:(n-e)/r},y=class{constructor(){this.subscriptions=[]}add(e){return a(this.subscriptions,e),()=>o(this.subscriptions,e)}notify(e,t,n){let r=this.subscriptions.length;if(r)if(r===1)this.subscriptions[0](e,t,n);else for(let i=0;i<r;i++){let r=this.subscriptions[i];r&&r(e,t,n)}}getSize(){return this.subscriptions.length}clear(){this.subscriptions.length=0}},b=e=>e*1e3,x=e=>e/1e3;function S(e,t){return t?1e3/t*e:0}var C=(e,t,n)=>(((1-3*n+3*t)*e+(3*n-6*t))*e+3*t)*e,w=1e-7,T=12;function ee(e,t,n,r,i){let a,o,s=0;do o=t+(n-t)/2,a=C(o,r,i)-e,a>0?n=o:t=o;while(Math.abs(a)>w&&++s<T);return o}function E(e,t,n,r){if(e===t&&n===r)return h;let i=t=>ee(t,0,1,e,n);return e=>e===0||e===1?e:C(i(e),t,r)}var D=e=>t=>t<=.5?e(2*t)/2:(2-e(2*(1-t)))/2,te=e=>t=>1-e(1-t),ne=E(.33,1.53,.69,.99),O=te(ne),k=D(O),re=e=>e>=1?1:(e*=2)<1?.5*O(e):.5*(2-2**(-10*(e-1))),ie=e=>1-Math.sin(Math.acos(e)),ae=te(ie),A=D(ie),oe=E(.42,0,1,1),se=E(0,0,.58,1),ce=E(.42,0,.58,1),le=e=>Array.isArray(e)&&typeof e[0]==`number`,j=e=>Array.isArray(e)&&typeof e[0]!=`number`,M={linear:h,easeIn:oe,easeInOut:ce,easeOut:se,circIn:ie,circInOut:A,circOut:ae,backIn:O,backInOut:k,backOut:ne,anticipate:re},ue=e=>typeof e==`string`,de=e=>{if(le(e)){e.length;let[t,n,r,i]=e;return E(t,n,r,i)}else if(ue(e))return M[e],`${e}`,M[e];return e},N=[`setup`,`read`,`resolveKeyframes`,`preUpdate`,`update`,`preRender`,`render`,`postRender`],P={value:null,addProjectionMetrics:null};function fe(e,t){let n=new Set,r=new Set,i=!1,a=!1,o=new WeakSet,s={delta:0,timestamp:0,isProcessing:!1},c=0;function l(t){o.has(t)&&(u.schedule(t),e()),c++,t(s)}let u={schedule:(e,t=!1,a=!1)=>{let s=a&&i?n:r;return t&&o.add(e),s.add(e),e},cancel:e=>{r.delete(e),o.delete(e)},process:e=>{if(s=e,i){a=!0;return}i=!0;let o=n;n=r,r=o,n.forEach(l),t&&P.value&&P.value.frameloop[t].push(c),c=0,n.clear(),i=!1,a&&(a=!1,u.process(e))}};return u}var pe=40;function me(e,t){let n=!1,r=!0,i={delta:0,timestamp:0,isProcessing:!1},a=()=>n=!0,o=N.reduce((e,n)=>(e[n]=fe(a,t?n:void 0),e),{}),{setup:s,read:c,resolveKeyframes:l,preUpdate:d,update:f,preRender:p,render:m,postRender:h}=o,g=()=>{let a=u.useManualTiming,o=a?i.timestamp:performance.now();n=!1,a||(i.delta=r?1e3/60:Math.max(Math.min(o-i.timestamp,pe),1)),i.timestamp=o,i.isProcessing=!0,s.process(i),c.process(i),l.process(i),d.process(i),f.process(i),p.process(i),m.process(i),h.process(i),i.isProcessing=!1,n&&t&&(r=!1,e(g))},_=()=>{n=!0,r=!0,i.isProcessing||e(g)};return{schedule:N.reduce((e,t)=>{let r=o[t];return e[t]=(e,t=!1,i=!1)=>(n||_(),r.schedule(e,t,i)),e},{}),cancel:e=>{for(let t=0;t<N.length;t++)o[N[t]].cancel(e)},state:i,steps:o}}var{schedule:F,cancel:he,state:I,steps:ge}=me(typeof requestAnimationFrame<`u`?requestAnimationFrame:h,!0),_e;function ve(){_e=void 0}var L={now:()=>(_e===void 0&&L.set(I.isProcessing||u.useManualTiming?I.timestamp:performance.now()),_e),set:e=>{_e=e,queueMicrotask(ve)}},ye={layout:0,mainThread:0,waapi:0},be=e=>t=>typeof t==`string`&&t.startsWith(e),xe=be(`--`),Se=be(`var(--`),Ce=e=>Se(e)?we.test(e.split(`/*`)[0].trim()):!1,we=/var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu;function Te(e){return typeof e==`string`?e.split(`/*`)[0].includes(`var(--`):!1}var Ee={test:e=>typeof e==`number`,parse:parseFloat,transform:e=>e},De={...Ee,transform:e=>c(0,1,e)},Oe={...Ee,default:1},ke=e=>Math.round(e*1e5)/1e5,Ae=/-?(?:\d+(?:\.\d+)?|\.\d+)/gu;function je(e){return e==null}var Me=/^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu,Ne=(e,t)=>n=>!!(typeof n==`string`&&Me.test(n)&&n.startsWith(e)||t&&!je(n)&&Object.prototype.hasOwnProperty.call(n,t)),Pe=(e,t,n)=>r=>{if(typeof r!=`string`)return r;let[i,a,o,s]=r.match(Ae);return{[e]:parseFloat(i),[t]:parseFloat(a),[n]:parseFloat(o),alpha:s===void 0?1:parseFloat(s)}},Fe=e=>c(0,255,e),Ie={...Ee,transform:e=>Math.round(Fe(e))},Le={test:Ne(`rgb`,`red`),parse:Pe(`red`,`green`,`blue`),transform:({red:e,green:t,blue:n,alpha:r=1})=>`rgba(`+Ie.transform(e)+`, `+Ie.transform(t)+`, `+Ie.transform(n)+`, `+ke(De.transform(r))+`)`};function Re(e){let t=``,n=``,r=``,i=``;return e.length>5?(t=e.substring(1,3),n=e.substring(3,5),r=e.substring(5,7),i=e.substring(7,9)):(t=e.substring(1,2),n=e.substring(2,3),r=e.substring(3,4),i=e.substring(4,5),t+=t,n+=n,r+=r,i+=i),{red:parseInt(t,16),green:parseInt(n,16),blue:parseInt(r,16),alpha:i?parseInt(i,16)/255:1}}var ze={test:Ne(`#`),parse:Re,transform:Le.transform},Be=e=>({test:t=>typeof t==`string`&&t.endsWith(e)&&t.split(` `).length===1,parse:parseFloat,transform:t=>`${t}${e}`}),Ve=Be(`deg`),He=Be(`%`),R=Be(`px`),Ue=Be(`vh`),We=Be(`vw`),Ge={...He,parse:e=>He.parse(e)/100,transform:e=>He.transform(e*100)},Ke={test:Ne(`hsl`,`hue`),parse:Pe(`hue`,`saturation`,`lightness`),transform:({hue:e,saturation:t,lightness:n,alpha:r=1})=>`hsla(`+Math.round(e)+`, `+He.transform(ke(t))+`, `+He.transform(ke(n))+`, `+ke(De.transform(r))+`)`},z={test:e=>Le.test(e)||ze.test(e)||Ke.test(e),parse:e=>Le.test(e)?Le.parse(e):Ke.test(e)?Ke.parse(e):ze.parse(e),transform:e=>typeof e==`string`?e:e.hasOwnProperty(`red`)?Le.transform(e):Ke.transform(e),getAnimatableNone:e=>{let t=z.parse(e);return t.alpha=0,z.transform(t)}},qe=/(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu;function Je(e){return isNaN(e)&&typeof e==`string`&&(e.match(Ae)?.length||0)+(e.match(qe)?.length||0)>0}var Ye=`number`,Xe=`color`,Ze=`var`,Qe=`var(`,$e="${}",et=/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 tt(e){let t=e.toString(),n=[],r={color:[],number:[],var:[]},i=[],a=0;return{values:n,split:t.replace(et,e=>(z.test(e)?(r.color.push(a),i.push(Xe),n.push(z.parse(e))):e.startsWith(Qe)?(r.var.push(a),i.push(Ze),n.push(e)):(r.number.push(a),i.push(Ye),n.push(parseFloat(e))),++a,$e)).split($e),indexes:r,types:i}}function nt(e){return tt(e).values}function rt({split:e,types:t}){let n=e.length;return r=>{let i=``;for(let a=0;a<n;a++)if(i+=e[a],r[a]!==void 0){let e=t[a];e===Ye?i+=ke(r[a]):e===Xe?i+=z.transform(r[a]):i+=r[a]}return i}}function it(e){return rt(tt(e))}var at=e=>typeof e==`number`?0:z.test(e)?z.getAnimatableNone(e):e,ot=(e,t)=>typeof e==`number`?t?.trim().endsWith(`/`)?e:0:at(e);function st(e){let t=tt(e);return rt(t)(t.values.map((e,n)=>ot(e,t.split[n])))}var B={test:Je,parse:nt,createTransformer:it,getAnimatableNone:st};function ct(e,t,n){return n<0&&(n+=1),n>1&&--n,n<1/6?e+(t-e)*6*n:n<1/2?t:n<2/3?e+(t-e)*(2/3-n)*6:e}function lt({hue:e,saturation:t,lightness:n,alpha:r}){e/=360,t/=100,n/=100;let i=0,a=0,o=0;if(!t)i=a=o=n;else{let r=n<.5?n*(1+t):n+t-n*t,s=2*n-r;i=ct(s,r,e+1/3),a=ct(s,r,e),o=ct(s,r,e-1/3)}return{red:Math.round(i*255),green:Math.round(a*255),blue:Math.round(o*255),alpha:r}}function ut(e,t){return n=>n>0?t:e}var V=(e,t,n)=>e+(t-e)*n,dt=(e,t,n)=>{let r=e*e,i=n*(t*t-r)+r;return i<0?0:Math.sqrt(i)},ft=[ze,Le,Ke],pt=e=>ft.find(t=>t.test(e));function mt(e){let t=pt(e);if(`${e}`,!t)return!1;let n=t.parse(e);return t===Ke&&(n=lt(n)),n}var ht=(e,t)=>{let n=mt(e),r=mt(t);if(!n||!r)return ut(e,t);let i={...n};return e=>(i.red=dt(n.red,r.red,e),i.green=dt(n.green,r.green,e),i.blue=dt(n.blue,r.blue,e),i.alpha=V(n.alpha,r.alpha,e),Le.transform(i))},gt=new Set([`none`,`hidden`]);function _t(e,t){return gt.has(e)?n=>n<=0?e:t:n=>n>=1?t:e}function vt(e,t){return n=>V(e,t,n)}function yt(e){return typeof e==`number`?vt:typeof e==`string`?Ce(e)?ut:z.test(e)?ht:Ct:Array.isArray(e)?bt:typeof e==`object`?z.test(e)?ht:xt:ut}function bt(e,t){let n=[...e],r=n.length,i=e.map((e,n)=>yt(e)(e,t[n]));return e=>{for(let t=0;t<r;t++)n[t]=i[t](e);return n}}function xt(e,t){let n={...e,...t},r={};for(let i in n)e[i]!==void 0&&t[i]!==void 0&&(r[i]=yt(e[i])(e[i],t[i]));return e=>{for(let t in r)n[t]=r[t](e);return n}}function St(e,t){let n=[],r={color:0,var:0,number:0};for(let i=0;i<t.values.length;i++){let a=t.types[i],o=e.indexes[a][r[a]];n[i]=e.values[o]??0,r[a]++}return n}var Ct=(e,t)=>{let n=B.createTransformer(t),r=tt(e),i=tt(t);return r.indexes.var.length===i.indexes.var.length&&r.indexes.color.length===i.indexes.color.length&&r.indexes.number.length>=i.indexes.number.length?gt.has(e)&&!i.values.length||gt.has(t)&&!r.values.length?_t(e,t):_(bt(St(r,i),i.values),n):(`${e}${t}`,ut(e,t))};function wt(e,t,n){return typeof e==`number`&&typeof t==`number`&&typeof n==`number`?V(e,t,n):yt(e)(e,t)}var Tt=e=>{let t=({timestamp:t})=>e(t);return{start:(e=!0)=>F.update(t,e),stop:()=>he(t),now:()=>I.isProcessing?I.timestamp:L.now()}},Et=(e,t,n=10)=>{let r=``,i=Math.max(Math.round(t/n),2);for(let t=0;t<i;t++)r+=Math.round(e(t/(i-1))*1e4)/1e4+`, `;return`linear(${r.substring(0,r.length-2)})`},Dt=2e4;function Ot(e){let t=0,n=e.next(t);for(;!n.done&&t<2e4;)t+=50,n=e.next(t);return t>=2e4?1/0:t}function kt(e,t=100,n){let r=n({...e,keyframes:[0,t]}),i=Math.min(Ot(r),Dt);return{type:`keyframes`,ease:e=>r.next(i*e).value/t,duration:x(i)}}var H={stiffness:100,damping:10,mass:1,velocity:0,duration:800,bounce:.3,visualDuration:.3,restSpeed:{granular:.01,default:2},restDelta:{granular:.005,default:.5},minDuration:.01,maxDuration:10,minDamping:.05,maxDamping:1};function At(e,t){return e*Math.sqrt(1-t*t)}var jt=12;function Mt(e,t,n){let r=n;for(let n=1;n<jt;n++)r-=e(r)/t(r);return r}var Nt=.001;function Pt({duration:e=H.duration,bounce:t=H.bounce,velocity:n=H.velocity,mass:r=H.mass}){let i,a;H.maxDuration;let o=1-t;o=c(H.minDamping,H.maxDamping,o),e=c(H.minDuration,H.maxDuration,x(e)),o<1?(i=t=>{let r=t*o,i=r*e,a=r-n,s=At(t,o),c=Math.exp(-i);return Nt-a/s*c},a=t=>{let r=t*o*e,a=r*n+n,s=o**2*t**2*e,c=Math.exp(-r),l=At(t**2,o);return(-i(t)+Nt>0?-1:1)*((a-s)*c)/l}):(i=t=>-.001+Math.exp(-t*e)*((t-n)*e+1),a=t=>Math.exp(-t*e)*((n-t)*(e*e)));let s=5/e,l=Mt(i,a,s);if(e=b(e),isNaN(l))return{stiffness:H.stiffness,damping:H.damping,duration:e};{let t=l**2*r;return{stiffness:t,damping:o*2*Math.sqrt(r*t),duration:e}}}var Ft=[`duration`,`bounce`],It=[`stiffness`,`damping`,`mass`];function Lt(e,t){return t.some(t=>e[t]!==void 0)}function Rt(e){let t={velocity:H.velocity,stiffness:H.stiffness,damping:H.damping,mass:H.mass,isResolvedFromDuration:!1,...e};if(!Lt(e,It)&&Lt(e,Ft))if(t.velocity=0,e.visualDuration){let n=e.visualDuration,r=2*Math.PI/(n*1.2),i=r*r,a=2*c(.05,1,1-(e.bounce||0))*Math.sqrt(i);t={...t,mass:H.mass,stiffness:i,damping:a}}else{let n=Pt({...e,velocity:0});t={...t,...n,mass:H.mass},t.isResolvedFromDuration=!0}return t}function zt(e=H.visualDuration,t=H.bounce){let n=typeof e==`object`?e:{visualDuration:e,keyframes:[0,1],bounce:t},{restSpeed:r,restDelta:i}=n,a=n.keyframes[0],o=n.keyframes[n.keyframes.length-1],s={done:!1,value:a},{stiffness:c,damping:l,mass:u,duration:d,velocity:f,isResolvedFromDuration:p}=Rt({...n,velocity:-x(n.velocity||0)}),m=f||0,h=l/(2*Math.sqrt(c*u)),g=o-a,_=x(Math.sqrt(c/u)),v=Math.abs(g)<5;r||=v?H.restSpeed.granular:H.restSpeed.default,i||=v?H.restDelta.granular:H.restDelta.default;let y,S,C,w,T,ee;if(h<1)C=At(_,h),w=(m+h*_*g)/C,y=e=>o-Math.exp(-h*_*e)*(w*Math.sin(C*e)+g*Math.cos(C*e)),T=h*_*w+g*C,ee=h*_*g-w*C,S=e=>Math.exp(-h*_*e)*(T*Math.sin(C*e)+ee*Math.cos(C*e));else if(h===1){y=e=>o-Math.exp(-_*e)*(g+(m+_*g)*e);let e=m+_*g;S=t=>Math.exp(-_*t)*(_*e*t-m)}else{let e=_*Math.sqrt(h*h-1);y=t=>{let n=Math.exp(-h*_*t),r=Math.min(e*t,300);return o-n*((m+h*_*g)*Math.sinh(r)+e*g*Math.cosh(r))/e};let t=(m+h*_*g)/e,n=h*_*t-g*e,r=h*_*g-t*e;S=t=>{let i=Math.exp(-h*_*t),a=Math.min(e*t,300);return i*(n*Math.sinh(a)+r*Math.cosh(a))}}let E={calculatedDuration:p&&d||null,velocity:e=>b(S(e)),next:e=>{if(!p&&h<1){let t=Math.exp(-h*_*e),n=Math.sin(C*e),a=Math.cos(C*e),c=o-t*(w*n+g*a),l=b(t*(T*n+ee*a));return s.done=Math.abs(l)<=r&&Math.abs(o-c)<=i,s.value=s.done?o:c,s}let t=y(e);if(p)s.done=e>=d;else{let n=b(S(e));s.done=Math.abs(n)<=r&&Math.abs(o-t)<=i}return s.value=s.done?o:t,s},toString:()=>{let e=Math.min(Ot(E),Dt),t=Et(t=>E.next(e*t).value,e,30);return e+`ms `+t},toTransition:()=>{}};return E}zt.applyToOptions=e=>{let t=kt(e,100,zt);return e.ease=t.ease,e.duration=b(t.duration),e.type=`keyframes`,e};var Bt=5;function Vt(e,t,n){let r=Math.max(t-Bt,0);return S(n-e(r),t-r)}function Ht({keyframes:e,velocity:t=0,power:n=.8,timeConstant:r=325,bounceDamping:i=10,bounceStiffness:a=500,modifyTarget:o,min:s,max:c,restDelta:l=.5,restSpeed:u}){let d=e[0],f={done:!1,value:d},p=e=>s!==void 0&&e<s||c!==void 0&&e>c,m=e=>s===void 0?c:c===void 0||Math.abs(s-e)<Math.abs(c-e)?s:c,h=n*t,g=d+h,_=o===void 0?g:o(g);_!==g&&(h=_-d);let v=e=>-h*Math.exp(-e/r),y=e=>_+v(e),b=e=>{let t=v(e),n=y(e);f.done=Math.abs(t)<=l,f.value=f.done?_:n},x,S,C=e=>{p(f.value)&&(x=e,S=zt({keyframes:[f.value,m(f.value)],velocity:Vt(y,e,f.value),damping:i,stiffness:a,restDelta:l,restSpeed:u}))};return C(0),{calculatedDuration:null,next:e=>{let t=!1;return!S&&x===void 0&&(t=!0,b(e),C(e)),x!==void 0&&e>=x?S.next(e-x):(!t&&b(e),f)}}}function Ut(e,t,n){let r=[],i=n||u.mix||wt,a=e.length-1;for(let n=0;n<a;n++){let a=i(e[n],e[n+1]);t&&(a=_(Array.isArray(t)?t[n]||h:t,a)),r.push(a)}return r}function Wt(e,t,{clamp:n=!0,ease:r,mixer:i}={}){let a=e.length;if(t.length,a===1)return()=>t[0];if(a===2&&t[0]===t[1])return()=>t[1];let o=e[0]===e[1];e[0]>e[a-1]&&(e=[...e].reverse(),t=[...t].reverse());let s=Ut(t,r,i),l=s.length,u=n=>{if(o&&n<e[0])return t[0];let r=0;if(l>1)for(;r<e.length-2&&!(n<e[r+1]);r++);let i=v(e[r],e[r+1],n);return s[r](i)};return n?t=>u(c(e[0],e[a-1],t)):u}function Gt(e,t){let n=e[e.length-1];for(let r=1;r<=t;r++){let i=v(0,t,r);e.push(V(n,1,i))}}function Kt(e){let t=[0];return Gt(t,e.length-1),t}function qt(e,t){return e.map(e=>e*t)}function Jt(e,t){return e.map(()=>t||ce).splice(0,e.length-1)}function Yt({duration:e=300,keyframes:t,times:n,ease:r=`easeInOut`}){let i=j(r)?r.map(de):de(r),a={done:!1,value:t[0]},o=Wt(qt(n&&n.length===t.length?n:Kt(t),e),t,{ease:Array.isArray(i)?i:Jt(t,i)});return{calculatedDuration:e,next:t=>(a.value=o(t),a.done=t>=e,a)}}var Xt=e=>e!==null;function Zt(e,{repeat:t,repeatType:n=`loop`},r,i=1){let a=e.filter(Xt),o=i<0||t&&n!==`loop`&&t%2==1?0:a.length-1;return!o||r===void 0?a[o]:r}var Qt={decay:Ht,inertia:Ht,tween:Yt,keyframes:Yt,spring:zt};function $t(e){typeof e.type==`string`&&(e.type=Qt[e.type])}var en=class{constructor(){this.updateFinished()}get finished(){return this._finished}updateFinished(){this._finished=new Promise(e=>{this.resolve=e})}notifyFinished(){this.resolve()}then(e,t){return this.finished.then(e,t)}},tn=e=>e/100,nn=class extends en{constructor(e){super(),this.state=`idle`,this.startTime=null,this.isStopped=!1,this.currentTime=0,this.holdTime=null,this.playbackSpeed=1,this.delayState={done:!1,value:void 0},this.stop=()=>{let{motionValue:e}=this.options;e&&e.updatedAt!==L.now()&&this.tick(L.now()),this.isStopped=!0,this.state!==`idle`&&(this.teardown(),this.options.onStop?.())},ye.mainThread++,this.options=e,this.initAnimation(),this.play(),e.autoplay===!1&&this.pause()}initAnimation(){let{options:e}=this;$t(e);let{type:t=Yt,repeat:n=0,repeatDelay:r=0,repeatType:i,velocity:a=0}=e,{keyframes:o}=e,s=t||Yt;s!==Yt&&typeof o[0]!=`number`&&(this.mixKeyframes=_(tn,wt(o[0],o[1])),o=[0,100]);let c=s({...e,keyframes:o});i===`mirror`&&(this.mirroredGenerator=s({...e,keyframes:[...o].reverse(),velocity:-a})),c.calculatedDuration===null&&(c.calculatedDuration=Ot(c));let{calculatedDuration:l}=c;this.calculatedDuration=l,this.resolvedDuration=l+r,this.totalDuration=this.resolvedDuration*(n+1)-r,this.generator=c}updateTime(e){let t=Math.round(e-this.startTime)*this.playbackSpeed;this.holdTime===null?this.currentTime=t:this.currentTime=this.holdTime}tick(e,t=!1){let{generator:n,totalDuration:r,mixKeyframes:i,mirroredGenerator:a,resolvedDuration:o,calculatedDuration:s}=this;if(this.startTime===null)return n.next(0);let{delay:l=0,keyframes:u,repeat:d,repeatType:f,repeatDelay:p,type:m,onUpdate:h,finalKeyframe:g}=this.options;this.speed>0?this.startTime=Math.min(this.startTime,e):this.speed<0&&(this.startTime=Math.min(e-r/this.speed,this.startTime)),t?this.currentTime=e:this.updateTime(e);let _=this.currentTime-l*(this.playbackSpeed>=0?1:-1),v=this.playbackSpeed>=0?_<0:_>r;this.currentTime=Math.max(_,0),this.state===`finished`&&this.holdTime===null&&(this.currentTime=r);let y=this.currentTime,b=n;if(d){let e=Math.min(this.currentTime,r)/o,t=Math.floor(e),n=e%1;!n&&e>=1&&(n=1),n===1&&t--,t=Math.min(t,d+1),t%2&&(f===`reverse`?(n=1-n,p&&(n-=p/o)):f===`mirror`&&(b=a)),y=c(0,1,n)*o}let x;v?(this.delayState.value=u[0],x=this.delayState):x=b.next(y),i&&!v&&(x.value=i(x.value));let{done:S}=x;!v&&s!==null&&(S=this.playbackSpeed>=0?this.currentTime>=r:this.currentTime<=0);let C=this.holdTime===null&&(this.state===`finished`||this.state===`running`&&S);return C&&m!==Ht&&(x.value=Zt(u,this.options,g,this.speed)),h&&h(x.value),C&&this.finish(),x}then(e,t){return this.finished.then(e,t)}get duration(){return x(this.calculatedDuration)}get iterationDuration(){let{delay:e=0}=this.options||{};return this.duration+x(e)}get time(){return x(this.currentTime)}set time(e){e=b(e),this.currentTime=e,this.startTime===null||this.holdTime!==null||this.playbackSpeed===0?this.holdTime=e:this.driver&&(this.startTime=this.driver.now()-e/this.playbackSpeed),this.driver?this.driver.start(!1):(this.startTime=0,this.state=`paused`,this.holdTime=e,this.tick(e))}getGeneratorVelocity(){let e=this.currentTime;if(e<=0)return this.options.velocity||0;if(this.generator.velocity)return this.generator.velocity(e);let t=this.generator.next(e).value;return Vt(e=>this.generator.next(e).value,e,t)}get speed(){return this.playbackSpeed}set speed(e){let t=this.playbackSpeed!==e;t&&this.driver&&this.updateTime(L.now()),this.playbackSpeed=e,t&&this.driver&&(this.time=x(this.currentTime))}play(){if(this.isStopped)return;let{driver:e=Tt,startTime:t}=this.options;this.driver||=e(e=>this.tick(e)),this.options.onPlay?.();let n=this.driver.now();this.state===`finished`?(this.updateFinished(),this.startTime=n):this.holdTime===null?this.startTime||=t??n:this.startTime=n-this.holdTime,this.state===`finished`&&this.speed<0&&(this.startTime+=this.calculatedDuration),this.holdTime=null,this.state=`running`,this.driver.start()}pause(){this.state=`paused`,this.updateTime(L.now()),this.holdTime=this.currentTime}complete(){this.state!==`running`&&this.play(),this.state=`finished`,this.holdTime=null}finish(){this.notifyFinished(),this.teardown(),this.state=`finished`,this.options.onComplete?.()}cancel(){this.holdTime=null,this.startTime=0,this.tick(0),this.teardown(),this.options.onCancel?.()}teardown(){this.state=`idle`,this.stopDriver(),this.startTime=this.holdTime=null,ye.mainThread--}stopDriver(){this.driver&&=(this.driver.stop(),void 0)}sample(e){return this.startTime=0,this.tick(e,!0)}attachTimeline(e){return this.options.allowFlatten&&(this.options.type=`keyframes`,this.options.ease=`linear`,this.initAnimation()),this.driver?.stop(),e.observe(this)}};function rn(e){for(let t=1;t<e.length;t++)e[t]??(e[t]=e[t-1])}var an=e=>e*180/Math.PI,on=e=>cn(an(Math.atan2(e[1],e[0]))),sn={x:4,y:5,translateX:4,translateY:5,scaleX:0,scaleY:3,scale:e=>(Math.abs(e[0])+Math.abs(e[3]))/2,rotate:on,rotateZ:on,skewX:e=>an(Math.atan(e[1])),skewY:e=>an(Math.atan(e[2])),skew:e=>(Math.abs(e[1])+Math.abs(e[2]))/2},cn=e=>(e%=360,e<0&&(e+=360),e),ln=on,un=e=>Math.sqrt(e[0]*e[0]+e[1]*e[1]),dn=e=>Math.sqrt(e[4]*e[4]+e[5]*e[5]),fn={x:12,y:13,z:14,translateX:12,translateY:13,translateZ:14,scaleX:un,scaleY:dn,scale:e=>(un(e)+dn(e))/2,rotateX:e=>cn(an(Math.atan2(e[6],e[5]))),rotateY:e=>cn(an(Math.atan2(-e[2],e[0]))),rotateZ:ln,rotate:ln,skewX:e=>an(Math.atan(e[4])),skewY:e=>an(Math.atan(e[1])),skew:e=>(Math.abs(e[1])+Math.abs(e[4]))/2};function pn(e){return+!!e.includes(`scale`)}function mn(e,t){if(!e||e===`none`)return pn(t);let n=e.match(/^matrix3d\(([-\d.e\s,]+)\)$/u),r,i;if(n)r=fn,i=n;else{let t=e.match(/^matrix\(([-\d.e\s,]+)\)$/u);r=sn,i=t}if(!i)return pn(t);let a=r[t],o=i[1].split(`,`).map(gn);return typeof a==`function`?a(o):o[a]}var hn=(e,t)=>{let{transform:n=`none`}=getComputedStyle(e);return mn(n,t)};function gn(e){return parseFloat(e.trim())}var _n=[`transformPerspective`,`x`,`y`,`z`,`translateX`,`translateY`,`translateZ`,`scale`,`scaleX`,`scaleY`,`rotate`,`rotateX`,`rotateY`,`rotateZ`,`skew`,`skewX`,`skewY`],vn=new Set(_n),yn=e=>e===Ee||e===R,bn=new Set([`x`,`y`,`z`]),xn=_n.filter(e=>!bn.has(e));function Sn(e){let t=[];return xn.forEach(n=>{let r=e.getValue(n);r!==void 0&&(t.push([n,r.get()]),r.set(+!!n.startsWith(`scale`)))}),t}var Cn={width:({x:e},{paddingLeft:t=`0`,paddingRight:n=`0`,boxSizing:r})=>{let i=e.max-e.min;return r===`border-box`?i:i-parseFloat(t)-parseFloat(n)},height:({y:e},{paddingTop:t=`0`,paddingBottom:n=`0`,boxSizing:r})=>{let i=e.max-e.min;return r===`border-box`?i:i-parseFloat(t)-parseFloat(n)},top:(e,{top:t})=>parseFloat(t),left:(e,{left:t})=>parseFloat(t),bottom:({y:e},{top:t})=>parseFloat(t)+(e.max-e.min),right:({x:e},{left:t})=>parseFloat(t)+(e.max-e.min),x:(e,{transform:t})=>mn(t,`x`),y:(e,{transform:t})=>mn(t,`y`)};Cn.translateX=Cn.x,Cn.translateY=Cn.y;var wn=new Set,Tn=!1,En=!1,Dn=!1;function On(){if(En){let e=Array.from(wn).filter(e=>e.needsMeasurement),t=new Set(e.map(e=>e.element)),n=new Map;t.forEach(e=>{let t=Sn(e);t.length&&(n.set(e,t),e.render())}),e.forEach(e=>e.measureInitialState()),t.forEach(e=>{e.render();let t=n.get(e);t&&t.forEach(([t,n])=>{e.getValue(t)?.set(n)})}),e.forEach(e=>e.measureEndState()),e.forEach(e=>{e.suspendedScrollY!==void 0&&window.scrollTo(0,e.suspendedScrollY)})}En=!1,Tn=!1,wn.forEach(e=>e.complete(Dn)),wn.clear()}function kn(){wn.forEach(e=>{e.readKeyframes(),e.needsMeasurement&&(En=!0)})}function An(){Dn=!0,kn(),On(),Dn=!1}var jn=class{constructor(e,t,n,r,i,a=!1){this.state=`pending`,this.isAsync=!1,this.needsMeasurement=!1,this.unresolvedKeyframes=[...e],this.onComplete=t,this.name=n,this.motionValue=r,this.element=i,this.isAsync=a}scheduleResolve(){this.state=`scheduled`,this.isAsync?(wn.add(this),Tn||(Tn=!0,F.read(kn),F.resolveKeyframes(On))):(this.readKeyframes(),this.complete())}readKeyframes(){let{unresolvedKeyframes:e,name:t,element:n,motionValue:r}=this;if(e[0]===null){let i=r?.get(),a=e[e.length-1];if(i!==void 0)e[0]=i;else if(n&&t){let r=n.readValue(t,a);r!=null&&(e[0]=r)}e[0]===void 0&&(e[0]=a),r&&i===void 0&&r.set(e[0])}rn(e)}setFinalKeyframe(){}measureInitialState(){}renderEndStyles(){}measureEndState(){}complete(e=!1){this.state=`complete`,this.onComplete(this.unresolvedKeyframes,this.finalKeyframe,e),wn.delete(this)}cancel(){this.state===`scheduled`&&(wn.delete(this),this.state=`pending`)}resume(){this.state===`pending`&&this.scheduleResolve()}},Mn=e=>e.startsWith(`--`);function Nn(e,t,n){Mn(t)?e.style.setProperty(t,n):e.style[t]=n}var Pn={};function Fn(e,t){let n=m(e);return()=>Pn[t]??n()}var In=Fn(()=>window.ScrollTimeline!==void 0,`scrollTimeline`),Ln=Fn(()=>{try{document.createElement(`div`).animate({opacity:0},{easing:`linear(0, 1)`})}catch{return!1}return!0},`linearEasing`),Rn=([e,t,n,r])=>`cubic-bezier(${e}, ${t}, ${n}, ${r})`,zn={linear:`linear`,ease:`ease`,easeIn:`ease-in`,easeOut:`ease-out`,easeInOut:`ease-in-out`,circIn:Rn([0,.65,.55,1]),circOut:Rn([.55,0,1,.45]),backIn:Rn([.31,.01,.66,-.59]),backOut:Rn([.33,1.53,.69,.99])};function Bn(e,t){if(e)return typeof e==`function`?Ln()?Et(e,t):`ease-out`:le(e)?Rn(e):Array.isArray(e)?e.map(e=>Bn(e,t)||zn.easeOut):zn[e]}function Vn(e,t,n,{delay:r=0,duration:i=300,repeat:a=0,repeatType:o=`loop`,ease:s=`easeOut`,times:c}={},l=void 0){let u={[t]:n};c&&(u.offset=c);let d=Bn(s,i);Array.isArray(d)&&(u.easing=d),P.value&&ye.waapi++;let f={delay:r,duration:i,easing:Array.isArray(d)?`linear`:d,fill:`both`,iterations:a+1,direction:o===`reverse`?`alternate`:`normal`};l&&(f.pseudoElement=l);let p=e.animate(u,f);return P.value&&p.finished.finally(()=>{ye.waapi--}),p}function Hn(e){return typeof e==`function`&&`applyToOptions`in e}function Un({type:e,...t}){return Hn(e)&&Ln()?e.applyToOptions(t):(t.duration??=300,t.ease??=`easeOut`,t)}var Wn=class extends en{constructor(e){if(super(),this.finishedTime=null,this.isStopped=!1,this.manualStartTime=null,!e)return;let{element:t,name:n,keyframes:r,pseudoElement:i,allowFlatten:a=!1,finalKeyframe:o,onComplete:s}=e;this.isPseudoElement=!!i,this.allowFlatten=a,this.options=e,e.type;let c=Un(e);this.animation=Vn(t,n,r,c,i),c.autoplay===!1&&this.animation.pause(),this.animation.onfinish=()=>{if(this.finishedTime=this.time,!i){let e=Zt(r,this.options,o,this.speed);this.updateMotionValue&&this.updateMotionValue(e),Nn(t,n,e),this.animation.cancel()}s?.(),this.notifyFinished()}}play(){this.isStopped||(this.manualStartTime=null,this.animation.play(),this.state===`finished`&&this.updateFinished())}pause(){this.animation.pause()}complete(){this.animation.finish?.()}cancel(){try{this.animation.cancel()}catch{}}stop(){if(this.isStopped)return;this.isStopped=!0;let{state:e}=this;e===`idle`||e===`finished`||(this.updateMotionValue?this.updateMotionValue():this.commitStyles(),this.isPseudoElement||this.cancel())}commitStyles(){let e=this.options?.element;!this.isPseudoElement&&e?.isConnected&&this.animation.commitStyles?.()}get duration(){let e=this.animation.effect?.getComputedTiming?.().duration||0;return x(Number(e))}get iterationDuration(){let{delay:e=0}=this.options||{};return this.duration+x(e)}get time(){return x(Number(this.animation.currentTime)||0)}set time(e){let t=this.finishedTime!==null;this.manualStartTime=null,this.finishedTime=null,this.animation.currentTime=b(e),t&&this.animation.pause()}get speed(){return this.animation.playbackRate}set speed(e){e<0&&(this.finishedTime=null),this.animation.playbackRate=e}get state(){return this.finishedTime===null?this.animation.playState:`finished`}get startTime(){return this.manualStartTime??Number(this.animation.startTime)}set startTime(e){this.manualStartTime=this.animation.startTime=e}attachTimeline({timeline:e,rangeStart:t,rangeEnd:n,observe:r}){return this.allowFlatten&&this.animation.effect?.updateTiming({easing:`linear`}),this.animation.onfinish=null,e&&In()?(this.animation.timeline=e,t&&(this.animation.rangeStart=t),n&&(this.animation.rangeEnd=n),h):r(this)}},Gn={anticipate:re,backInOut:k,circInOut:A};function Kn(e){return e in Gn}function qn(e){typeof e.ease==`string`&&Kn(e.ease)&&(e.ease=Gn[e.ease])}var Jn=10,Yn=class extends Wn{constructor(e){qn(e),$t(e),super(e),e.startTime!==void 0&&e.autoplay!==!1&&(this.startTime=e.startTime),this.options=e}updateMotionValue(e){let{motionValue:t,onUpdate:n,onComplete:r,element:i,...a}=this.options;if(!t)return;if(e!==void 0){t.set(e);return}let o=new nn({...a,autoplay:!1}),s=Math.max(Jn,L.now()-this.startTime),l=c(0,Jn,s-Jn),u=o.sample(s).value,{name:d}=this.options;i&&d&&Nn(i,d,u),t.setWithVelocity(o.sample(Math.max(0,s-l)).value,u,l),o.stop()}},Xn=(e,t)=>t===`zIndex`?!1:!!(typeof e==`number`||Array.isArray(e)||typeof e==`string`&&(B.test(e)||e===`0`)&&!e.startsWith(`url(`));function Zn(e){let t=e[0];if(e.length===1)return!0;for(let n=0;n<e.length;n++)if(e[n]!==t)return!0}function Qn(e,t,n,r){let i=e[0];if(i===null)return!1;if(t===`display`||t===`visibility`)return!0;let a=e[e.length-1],o=Xn(i,t),s=Xn(a,t);return`${t}${i}${a}${o?a:i}`,!o||!s?!1:Zn(e)||(n===`spring`||Hn(n))&&r}function $n(e){e.duration=0,e.type=`keyframes`}var er=new Set([`opacity`,`clipPath`,`filter`,`transform`]),tr=/^(?:oklch|oklab|lab|lch|color|color-mix|light-dark)\(/;function nr(e){for(let t=0;t<e.length;t++)if(typeof e[t]==`string`&&tr.test(e[t]))return!0;return!1}var rr=new Set([`color`,`backgroundColor`,`outlineColor`,`fill`,`stroke`,`borderColor`,`borderTopColor`,`borderRightColor`,`borderBottomColor`,`borderLeftColor`]),ir=m(()=>Object.hasOwnProperty.call(Element.prototype,`animate`));function ar(e){let{motionValue:t,name:n,repeatDelay:r,repeatType:i,damping:a,type:o,keyframes:s}=e;if(!(t?.owner?.current instanceof HTMLElement))return!1;let{onUpdate:c,transformTemplate:l}=t.owner.getProps();return ir()&&n&&(er.has(n)||rr.has(n)&&nr(s))&&(n!==`transform`||!l)&&!c&&!r&&i!==`mirror`&&a!==0&&o!==`inertia`}var or=40,sr=class extends en{constructor({autoplay:e=!0,delay:t=0,type:n=`keyframes`,repeat:r=0,repeatDelay:i=0,repeatType:a=`loop`,keyframes:o,name:s,motionValue:c,element:l,...u}){super(),this.stop=()=>{this._animation&&(this._animation.stop(),this.stopTimeline?.()),this.keyframeResolver?.cancel()},this.createdAt=L.now();let d={autoplay:e,delay:t,type:n,repeat:r,repeatDelay:i,repeatType:a,name:s,motionValue:c,element:l,...u},f=l?.KeyframeResolver||jn;this.keyframeResolver=new f(o,(e,t,n)=>this.onKeyframesResolved(e,t,d,!n),s,c,l),this.keyframeResolver?.scheduleResolve()}onKeyframesResolved(e,t,n,r){this.keyframeResolver=void 0;let{name:i,type:a,velocity:o,delay:s,isHandoff:c,onUpdate:l}=n;this.resolvedAt=L.now();let d=!0;Qn(e,i,a,o)||(d=!1,(u.instantAnimations||!s)&&l?.(Zt(e,n,t)),e[0]=e[e.length-1],$n(n),n.repeat=0);let f={startTime:r?this.resolvedAt&&this.resolvedAt-this.createdAt>or?this.resolvedAt:this.createdAt:void 0,finalKeyframe:t,...n,keyframes:e},p=d&&!c&&ar(f),m=f.motionValue?.owner?.current,g;if(p)try{g=new Yn({...f,element:m})}catch{g=new nn(f)}else g=new nn(f);g.finished.then(()=>{this.notifyFinished()}).catch(h),this.pendingTimeline&&=(this.stopTimeline=g.attachTimeline(this.pendingTimeline),void 0),this._animation=g}get finished(){return this._animation?this.animation.finished:this._finished}then(e,t){return this.finished.finally(e).then(()=>{})}get animation(){return this._animation||(this.keyframeResolver?.resume(),An()),this._animation}get duration(){return this.animation.duration}get iterationDuration(){return this.animation.iterationDuration}get time(){return this.animation.time}set time(e){this.animation.time=e}get speed(){return this.animation.speed}get state(){return this.animation.state}set speed(e){this.animation.speed=e}get startTime(){return this.animation.startTime}attachTimeline(e){return this._animation?this.stopTimeline=this.animation.attachTimeline(e):this.pendingTimeline=e,()=>this.stop()}play(){this.animation.play()}pause(){this.animation.pause()}complete(){this.animation.complete()}cancel(){this._animation&&this.animation.cancel(),this.keyframeResolver?.cancel()}};function cr(e,t){if(e?.inherit&&t){let{inherit:n,...r}=e;return{...t,...r}}return e}function lr(e,t){let n=e?.[t]??e?.default??e;return n===e?n:cr(n,e)}var ur={type:`spring`,stiffness:500,damping:25,restSpeed:10},dr=e=>({type:`spring`,stiffness:550,damping:e===0?2*Math.sqrt(550):30,restSpeed:10}),fr={type:`keyframes`,duration:.8},pr={type:`keyframes`,ease:[.25,.1,.35,1],duration:.3},mr=(e,{keyframes:t})=>t.length>2?fr:vn.has(e)?e.startsWith(`scale`)?dr(t[1]):ur:pr,hr=new Set([`when`,`delay`,`delayChildren`,`staggerChildren`,`staggerDirection`,`repeat`,`repeatType`,`repeatDelay`,`from`,`elapsed`]);function gr(e){for(let t in e)if(!hr.has(t))return!0;return!1}var _r=(e,t,n,r={},i,a)=>o=>{let s=lr(r,e)||{},c=s.delay||r.delay||0,{elapsed:l=0}=r;l-=b(c);let d={keyframes:Array.isArray(n)?n:[null,n],ease:`easeOut`,velocity:t.getVelocity(),...s,delay:-l,onUpdate:e=>{t.set(e),s.onUpdate&&s.onUpdate(e)},onComplete:()=>{o(),s.onComplete&&s.onComplete()},name:e,motionValue:t,element:a?void 0:i};gr(s)||Object.assign(d,mr(e,d)),d.duration&&=b(d.duration),d.repeatDelay&&=b(d.repeatDelay),d.from!==void 0&&(d.keyframes[0]=d.from);let f=!1;if((d.type===!1||d.duration===0&&!d.repeatDelay)&&($n(d),d.delay===0&&(f=!0)),(u.instantAnimations||u.skipAnimations||i?.shouldSkipAnimations)&&(f=!0,$n(d),d.delay=0),d.allowFlatten=!s.type&&!s.ease,f&&!a&&t.get()!==void 0){let e=Zt(d.keyframes,s);if(e!==void 0){F.update(()=>{d.onUpdate(e),d.onComplete()});return}}return s.isSync?new nn(d):new sr(d)};function vr(e){return e.replace(/([A-Z])/g,e=>`-${e.toLowerCase()}`)}var yr=`data-`+vr(`framerAppearId`),{schedule:br,cancel:xr}=me(queueMicrotask,!1),U={x:!1,y:!1};function Sr(){return U.x||U.y}function Cr(e){return e===`x`||e===`y`?U[e]?null:(U[e]=!0,()=>{U[e]=!1}):U.x||U.y?null:(U.x=U.y=!0,()=>{U.x=U.y=!1})}function wr(e,t,n){if(e==null)return[];if(e instanceof EventTarget)return[e];if(typeof e==`string`){let r=document;t&&(r=t.current);let i=n?.[e]??r.querySelectorAll(e);return i?Array.from(i):[]}return Array.from(e).filter(e=>e!=null)}function Tr(e,t){let n=wr(e),r=new AbortController;return[n,{passive:!0,...t,signal:r.signal},()=>r.abort()]}function Er(e){return!(e.pointerType===`touch`||Sr())}function Dr(e,t,n={}){let[r,i,a]=Tr(e,n);return r.forEach(e=>{let n=!1,r=!1,a,o=()=>{e.removeEventListener(`pointerleave`,u)},s=e=>{a&&=(a(e),void 0),o()},c=e=>{n=!1,window.removeEventListener(`pointerup`,c),window.removeEventListener(`pointercancel`,c),r&&(r=!1,s(e))},l=()=>{n=!0,window.addEventListener(`pointerup`,c,i),window.addEventListener(`pointercancel`,c,i)},u=e=>{if(e.pointerType!==`touch`){if(n){r=!0;return}s(e)}};e.addEventListener(`pointerenter`,n=>{if(!Er(n))return;r=!1;let o=t(e,n);typeof o==`function`&&(a=o,e.addEventListener(`pointerleave`,u,i))},i),e.addEventListener(`pointerdown`,l,i)}),a}function Or(e){return f(e)&&`offsetHeight`in e&&!(`ownerSVGElement`in e)}var kr=(e,t)=>t?e===t?!0:kr(e,t.parentElement):!1,Ar=e=>e.pointerType===`mouse`?typeof e.button!=`number`||e.button<=0:e.isPrimary!==!1,jr=new Set([`BUTTON`,`INPUT`,`SELECT`,`TEXTAREA`,`A`]);function Mr(e){return jr.has(e.tagName)||e.isContentEditable===!0}var Nr=new Set([`INPUT`,`SELECT`,`TEXTAREA`]);function Pr(e){return Nr.has(e.tagName)||e.isContentEditable===!0}var Fr=new WeakSet;function Ir(e){return t=>{t.key===`Enter`&&e(t)}}function Lr(e,t){e.dispatchEvent(new PointerEvent(`pointer`+t,{isPrimary:!0,bubbles:!0}))}var Rr=(e,t)=>{let n=e.currentTarget;if(!n)return;let r=Ir(()=>{if(Fr.has(n))return;Lr(n,`down`);let e=Ir(()=>{Lr(n,`up`)});n.addEventListener(`keyup`,e,t),n.addEventListener(`blur`,()=>Lr(n,`cancel`),t)});n.addEventListener(`keydown`,r,t),n.addEventListener(`blur`,()=>n.removeEventListener(`keydown`,r),t)};function zr(e){return Ar(e)&&!Sr()}var Br=new WeakSet;function Vr(e,t,n={}){let[r,i,a]=Tr(e,n),o=e=>{let r=e.currentTarget;if(!zr(e)||Br.has(e))return;Fr.add(r),n.stopPropagation&&Br.add(e);let a=t(r,e),o=(e,t)=>{window.removeEventListener(`pointerup`,s),window.removeEventListener(`pointercancel`,c),Fr.has(r)&&Fr.delete(r),zr(e)&&typeof a==`function`&&a(e,{success:t})},s=e=>{o(e,r===window||r===document||n.useGlobalTarget||kr(r,e.target))},c=e=>{o(e,!1)};window.addEventListener(`pointerup`,s,i),window.addEventListener(`pointercancel`,c,i)};return r.forEach(e=>{(n.useGlobalTarget?window:e).addEventListener(`pointerdown`,o,i),Or(e)&&(e.addEventListener(`focus`,e=>Rr(e,i)),!Mr(e)&&!e.hasAttribute(`tabindex`)&&(e.tabIndex=0))}),a}function Hr(e){return f(e)&&`ownerSVGElement`in e}var Ur=new WeakMap,Wr,Gr=(e,t,n)=>(r,i)=>i&&i[0]?i[0][e+`Size`]:Hr(r)&&`getBBox`in r?r.getBBox()[t]:r[n],Kr=Gr(`inline`,`width`,`offsetWidth`),qr=Gr(`block`,`height`,`offsetHeight`);function Jr({target:e,borderBoxSize:t}){Ur.get(e)?.forEach(n=>{n(e,{get width(){return Kr(e,t)},get height(){return qr(e,t)}})})}function Yr(e){e.forEach(Jr)}function Xr(){typeof ResizeObserver>`u`||(Wr=new ResizeObserver(Yr))}function Zr(e,t){Wr||Xr();let n=wr(e);return n.forEach(e=>{let n=Ur.get(e);n||(n=new Set,Ur.set(e,n)),n.add(t),Wr?.observe(e)}),()=>{n.forEach(e=>{let n=Ur.get(e);n?.delete(t),n?.size||Wr?.unobserve(e)})}}var Qr=new Set,$r;function ei(){$r=()=>{let e={get width(){return window.innerWidth},get height(){return window.innerHeight}};Qr.forEach(t=>t(e))},window.addEventListener(`resize`,$r)}function ti(e){return Qr.add(e),$r||ei(),()=>{Qr.delete(e),!Qr.size&&typeof $r==`function`&&(window.removeEventListener(`resize`,$r),$r=void 0)}}function ni(e,t){return typeof e==`function`?ti(e):Zr(e,t)}function ri(...e){let t=!Array.isArray(e[0]),n=t?0:-1,r=e[0+n],i=e[1+n],a=e[2+n],o=e[3+n],s=Wt(i,a,o);return t?s(r):s}var ii=30,ai=e=>!isNaN(parseFloat(e)),oi={current:void 0},si=class{constructor(e,t={}){this.canTrackVelocity=null,this.events={},this.updateAndNotify=e=>{let t=L.now();if(this.updatedAt!==t&&this.setPrevFrameValue(),this.prev=this.current,this.setCurrent(e),this.current!==this.prev&&(this.events.change?.notify(this.current),this.dependents))for(let e of this.dependents)e.dirty()},this.hasAnimated=!1,this.setCurrent(e),this.owner=t.owner}setCurrent(e){this.current=e,this.updatedAt=L.now(),this.canTrackVelocity===null&&e!==void 0&&(this.canTrackVelocity=ai(this.current))}setPrevFrameValue(e=this.current){this.prevFrameValue=e,this.prevUpdatedAt=this.updatedAt}onChange(e){return this.on(`change`,e)}on(e,t){this.events[e]||(this.events[e]=new y);let n=this.events[e].add(t);return e===`change`?()=>{n(),F.read(()=>{this.events.change.getSize()||this.stop()})}:n}clearListeners(){for(let e in this.events)this.events[e].clear()}attach(e,t){this.passiveEffect=e,this.stopPassiveEffect=t}set(e){this.passiveEffect?this.passiveEffect(e,this.updateAndNotify):this.updateAndNotify(e)}setWithVelocity(e,t,n){this.set(t),this.prev=void 0,this.prevFrameValue=e,this.prevUpdatedAt=this.updatedAt-n}jump(e,t=!0){this.updateAndNotify(e),this.prev=e,this.prevUpdatedAt=this.prevFrameValue=void 0,t&&this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}dirty(){this.events.change?.notify(this.current)}addDependent(e){this.dependents||=new Set,this.dependents.add(e)}removeDependent(e){this.dependents&&this.dependents.delete(e)}get(){return oi.current&&oi.current.push(this),this.current}getPrevious(){return this.prev}getVelocity(){let e=L.now();if(!this.canTrackVelocity||this.prevFrameValue===void 0||e-this.updatedAt>ii)return 0;let t=Math.min(this.updatedAt-this.prevUpdatedAt,ii);return S(parseFloat(this.current)-parseFloat(this.prevFrameValue),t)}start(e){return this.stop(),new Promise(t=>{this.hasAnimated=!0,this.animation=e(t),this.events.animationStart&&this.events.animationStart.notify()}).then(()=>{this.events.animationComplete&&this.events.animationComplete.notify(),this.clearAnimation()})}stop(){this.animation&&(this.animation.stop(),this.events.animationCancel&&this.events.animationCancel.notify()),this.clearAnimation()}isAnimating(){return!!this.animation}clearAnimation(){delete this.animation}destroy(){this.dependents?.clear(),this.events.destroy?.notify(),this.clearListeners(),this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}};function ci(e,t){return new si(e,t)}var W=e=>!!(e&&e.getVelocity);function li(e){return!!(W(e)&&e.add)}function ui(e,t){let n=e.getValue(`willChange`);if(li(n))return n.add(t);if(!n&&u.WillChange){let n=new u.WillChange(`auto`);e.addValue(`willChange`,n),n.add(t)}}var di=class{constructor(e){this.isMounted=!1,this.node=e}update(){}};function fi({top:e,left:t,right:n,bottom:r}){return{x:{min:t,max:n},y:{min:e,max:r}}}function pi({x:e,y:t}){return{top:t.min,right:e.max,bottom:t.max,left:e.min}}function mi(e,t){if(!t)return e;let n=t({x:e.left,y:e.top}),r=t({x:e.right,y:e.bottom});return{top:n.y,left:n.x,bottom:r.y,right:r.x}}function hi(e){return e===void 0||e===1}function gi({scale:e,scaleX:t,scaleY:n}){return!hi(e)||!hi(t)||!hi(n)}function _i(e){return gi(e)||vi(e)||e.z||e.rotate||e.rotateX||e.rotateY||e.skewX||e.skewY}function vi(e){return yi(e.x)||yi(e.y)}function yi(e){return e&&e!==`0%`}function bi(e,t,n){return n+t*(e-n)}function xi(e,t,n,r,i){return i!==void 0&&(e=bi(e,i,r)),bi(e,n,r)+t}function Si(e,t=0,n=1,r,i){e.min=xi(e.min,t,n,r,i),e.max=xi(e.max,t,n,r,i)}function Ci(e,{x:t,y:n}){Si(e.x,t.translate,t.scale,t.originPoint),Si(e.y,n.translate,n.scale,n.originPoint)}var wi=.999999999999,Ti=1.0000000000001;function Ei(e,t,n,r=!1){let i=n.length;if(!i)return;t.x=t.y=1;let a,o;for(let s=0;s<i;s++){a=n[s],o=a.projectionDelta;let{visualElement:i}=a.options;i&&i.props.style&&i.props.style.display===`contents`||(r&&a.options.layoutScroll&&a.scroll&&a!==a.root&&(Di(e.x,-a.scroll.offset.x),Di(e.y,-a.scroll.offset.y)),o&&(t.x*=o.x.scale,t.y*=o.y.scale,Ci(e,o)),r&&_i(a.latestValues)&&Ai(e,a.latestValues,a.layout?.layoutBox))}t.x<Ti&&t.x>wi&&(t.x=1),t.y<Ti&&t.y>wi&&(t.y=1)}function Di(e,t){e.min+=t,e.max+=t}function Oi(e,t,n,r,i=.5){Si(e,t,n,V(e.min,e.max,i),r)}function ki(e,t){return typeof e==`string`?parseFloat(e)/100*(t.max-t.min):e}function Ai(e,t,n){let r=n??e;Oi(e.x,ki(t.x,r.x),t.scaleX,t.scale,t.originX),Oi(e.y,ki(t.y,r.y),t.scaleY,t.scale,t.originY)}function ji(e,t){return fi(mi(e.getBoundingClientRect(),t))}function Mi(e,t,n){let r=ji(e,n),{scroll:i}=t;return i&&(Di(r.x,i.offset.x),Di(r.y,i.offset.y)),r}var Ni=new Set([`width`,`height`,`top`,`left`,`right`,`bottom`,..._n]),Pi={test:e=>e===`auto`,parse:e=>e},Fi=e=>t=>t.test(e),Ii=[Ee,R,He,Ve,We,Ue,Pi],Li=e=>Ii.find(Fi(e)),Ri=/^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u;function zi(e){let t=Ri.exec(e);if(!t)return[,];let[,n,r,i]=t;return[`--${n??r}`,i]}function Bi(e,t,n=1){`${e}`;let[r,i]=zi(e);if(!r)return;let a=window.getComputedStyle(t).getPropertyValue(r);if(a){let e=a.trim();return d(e)?parseFloat(e):e}return Ce(i)?Bi(i,t,n+1):i}function Vi(e){return typeof e==`number`?e===0:e===null?!0:e===`none`||e===`0`||p(e)}var Hi=new Set([`brightness`,`contrast`,`saturate`,`opacity`]);function Ui(e){let[t,n]=e.slice(0,-1).split(`(`);if(t===`drop-shadow`)return e;let[r]=n.match(Ae)||[];if(!r)return e;let i=n.replace(r,``),a=+!!Hi.has(t);return r!==n&&(a*=100),t+`(`+a+i+`)`}var Wi=/\b([a-z-]*)\(.*?\)/gu,Gi={...B,getAnimatableNone:e=>{let t=e.match(Wi);return t?t.map(Ui).join(` `):e}},Ki={...B,getAnimatableNone:e=>{let t=B.parse(e);return B.createTransformer(e)(t.map(e=>typeof e==`number`?0:typeof e==`object`?{...e,alpha:1}:e))}},qi={...Ee,transform:Math.round},Ji={borderWidth:R,borderTopWidth:R,borderRightWidth:R,borderBottomWidth:R,borderLeftWidth:R,borderRadius:R,borderTopLeftRadius:R,borderTopRightRadius:R,borderBottomRightRadius:R,borderBottomLeftRadius:R,width:R,maxWidth:R,height:R,maxHeight:R,top:R,right:R,bottom:R,left:R,inset:R,insetBlock:R,insetBlockStart:R,insetBlockEnd:R,insetInline:R,insetInlineStart:R,insetInlineEnd:R,padding:R,paddingTop:R,paddingRight:R,paddingBottom:R,paddingLeft:R,paddingBlock:R,paddingBlockStart:R,paddingBlockEnd:R,paddingInline:R,paddingInlineStart:R,paddingInlineEnd:R,margin:R,marginTop:R,marginRight:R,marginBottom:R,marginLeft:R,marginBlock:R,marginBlockStart:R,marginBlockEnd:R,marginInline:R,marginInlineStart:R,marginInlineEnd:R,fontSize:R,backgroundPositionX:R,backgroundPositionY:R,rotate:Ve,rotateX:Ve,rotateY:Ve,rotateZ:Ve,scale:Oe,scaleX:Oe,scaleY:Oe,scaleZ:Oe,skew:Ve,skewX:Ve,skewY:Ve,distance:R,translateX:R,translateY:R,translateZ:R,x:R,y:R,z:R,perspective:R,transformPerspective:R,opacity:De,originX:Ge,originY:Ge,originZ:R,zIndex:qi,fillOpacity:De,strokeOpacity:De,numOctaves:qi},Yi={...Ji,color:z,backgroundColor:z,outlineColor:z,fill:z,stroke:z,borderColor:z,borderTopColor:z,borderRightColor:z,borderBottomColor:z,borderLeftColor:z,filter:Gi,WebkitFilter:Gi,mask:Ki,WebkitMask:Ki},Xi=e=>Yi[e],Zi=new Set([Gi,Ki]);function Qi(e,t){let n=Xi(e);return Zi.has(n)||(n=B),n.getAnimatableNone?n.getAnimatableNone(t):void 0}var $i=new Set([`auto`,`none`,`0`]);function ea(e,t,n){let r=0,i;for(;r<e.length&&!i;){let t=e[r];typeof t==`string`&&!$i.has(t)&&tt(t).values.length&&(i=e[r]),r++}if(i&&n)for(let r of t)e[r]=Qi(n,i)}var ta=class extends jn{constructor(e,t,n,r,i){super(e,t,n,r,i,!0)}readKeyframes(){let{unresolvedKeyframes:e,element:t,name:n}=this;if(!t||!t.current)return;super.readKeyframes();for(let n=0;n<e.length;n++){let r=e[n];if(typeof r==`string`&&(r=r.trim(),Ce(r))){let i=Bi(r,t.current);i!==void 0&&(e[n]=i),n===e.length-1&&(this.finalKeyframe=r)}}if(this.resolveNoneKeyframes(),!Ni.has(n)||e.length!==2)return;let[r,i]=e,a=Li(r),o=Li(i);if(Te(r)!==Te(i)&&Cn[n]){this.needsMeasurement=!0;return}if(a!==o)if(yn(a)&&yn(o))for(let t=0;t<e.length;t++){let n=e[t];typeof n==`string`&&(e[t]=parseFloat(n))}else Cn[n]&&(this.needsMeasurement=!0)}resolveNoneKeyframes(){let{unresolvedKeyframes:e,name:t}=this,n=[];for(let t=0;t<e.length;t++)(e[t]===null||Vi(e[t]))&&n.push(t);n.length&&ea(e,n,t)}measureInitialState(){let{element:e,unresolvedKeyframes:t,name:n}=this;if(!e||!e.current)return;n===`height`&&(this.suspendedScrollY=window.pageYOffset),this.measuredOrigin=Cn[n](e.measureViewportBox(),window.getComputedStyle(e.current)),t[0]=this.measuredOrigin;let r=t[t.length-1];r!==void 0&&e.getValue(n,r).jump(r,!1)}measureEndState(){let{element:e,name:t,unresolvedKeyframes:n}=this;if(!e||!e.current)return;let r=e.getValue(t);r&&r.jump(this.measuredOrigin,!1);let i=n.length-1,a=n[i];n[i]=Cn[t](e.measureViewportBox(),window.getComputedStyle(e.current)),a!==null&&this.finalKeyframe===void 0&&(this.finalKeyframe=a),this.removedTransforms?.length&&this.removedTransforms.forEach(([t,n])=>{e.getValue(t).set(n)}),this.resolveNoneKeyframes()}},na=()=>({translate:0,scale:1,origin:0,originPoint:0}),ra=()=>({x:na(),y:na()}),ia=()=>({min:0,max:0}),G=()=>({x:ia(),y:ia()}),aa=[...Ii,z,B],oa=e=>aa.find(Fi(e)),sa=new WeakMap;function ca(e){return typeof e==`object`&&!!e&&typeof e.start==`function`}function la(e){return typeof e==`string`||Array.isArray(e)}var ua=[`animate`,`whileInView`,`whileFocus`,`whileHover`,`whileTap`,`whileDrag`,`exit`],da=[`initial`,...ua];function fa(e){return ca(e.animate)||da.some(t=>la(e[t]))}function pa(e){return!!(fa(e)||e.variants)}function ma(e,t,n){for(let r in t){let i=t[r],a=n[r];if(W(i))e.addValue(r,i);else if(W(a))e.addValue(r,ci(i,{owner:e}));else if(a!==i)if(e.hasValue(r)){let t=e.getValue(r);t.liveStyle===!0?t.jump(i):t.hasAnimated||t.set(i)}else{let t=e.getStaticValue(r);e.addValue(r,ci(t===void 0?i:t,{owner:e}))}}for(let r in n)t[r]===void 0&&e.removeValue(r);return t}var ha={current:null},ga={current:!1},_a=typeof window<`u`;function va(){if(ga.current=!0,_a)if(window.matchMedia){let e=window.matchMedia(`(prefers-reduced-motion)`),t=()=>ha.current=e.matches;e.addEventListener(`change`,t),t()}else ha.current=!1}function ya(e){let t=[{},{}];return e?.values.forEach((e,n)=>{t[0][n]=e.get(),t[1][n]=e.getVelocity()}),t}function ba(e,t,n,r){if(typeof t==`function`){let[i,a]=ya(r);t=t(n===void 0?e.custom:n,i,a)}if(typeof t==`string`&&(t=e.variants&&e.variants[t]),typeof t==`function`){let[i,a]=ya(r);t=t(n===void 0?e.custom:n,i,a)}return t}var xa=[`AnimationStart`,`AnimationComplete`,`Update`,`BeforeLayoutMeasure`,`LayoutMeasure`,`LayoutAnimationStart`,`LayoutAnimationComplete`],Sa={};function Ca(e){Sa=e}function wa(){return Sa}var Ta=class{scrapeMotionValuesFromProps(e,t,n){return{}}constructor({parent:e,props:t,presenceContext:n,reducedMotionConfig:r,skipAnimations:i,blockInitialAnimation:a,visualState:o},s={}){this.current=null,this.children=new Set,this.isVariantNode=!1,this.isControllingVariants=!1,this.shouldReduceMotion=null,this.shouldSkipAnimations=!1,this.values=new Map,this.KeyframeResolver=jn,this.features={},this.valueSubscriptions=new Map,this.prevMotionValues={},this.hasBeenMounted=!1,this.events={},this.propEventSubscriptions={},this.notifyUpdate=()=>this.notify(`Update`,this.latestValues),this.render=()=>{this.current&&(this.triggerBuild(),this.renderInstance(this.current,this.renderState,this.props.style,this.projection))},this.renderScheduledAt=0,this.scheduleRender=()=>{let e=L.now();this.renderScheduledAt<e&&(this.renderScheduledAt=e,F.render(this.render,!1,!0))};let{latestValues:c,renderState:l}=o;this.latestValues=c,this.baseTarget={...c},this.initialValues=t.initial?{...c}:{},this.renderState=l,this.parent=e,this.props=t,this.presenceContext=n,this.depth=e?e.depth+1:0,this.reducedMotionConfig=r,this.skipAnimationsConfig=i,this.options=s,this.blockInitialAnimation=!!a,this.isControllingVariants=fa(t),this.isVariantNode=pa(t),this.isVariantNode&&(this.variantChildren=new Set),this.manuallyAnimateOnMount=!!(e&&e.current);let{willChange:u,...d}=this.scrapeMotionValuesFromProps(t,{},this);for(let e in d){let t=d[e];c[e]!==void 0&&W(t)&&t.set(c[e])}}mount(e){if(this.hasBeenMounted)for(let e in this.initialValues)this.values.get(e)?.jump(this.initialValues[e]),this.latestValues[e]=this.initialValues[e];this.current=e,sa.set(e,this),this.projection&&!this.projection.instance&&this.projection.mount(e),this.parent&&this.isVariantNode&&!this.isControllingVariants&&(this.removeFromVariantTree=this.parent.addVariantChild(this)),this.values.forEach((e,t)=>this.bindToMotionValue(t,e)),this.reducedMotionConfig===`never`?this.shouldReduceMotion=!1:this.reducedMotionConfig===`always`?this.shouldReduceMotion=!0:(ga.current||va(),this.shouldReduceMotion=ha.current),this.shouldSkipAnimations=this.skipAnimationsConfig??!1,this.parent?.addChild(this),this.update(this.props,this.presenceContext),this.hasBeenMounted=!0}unmount(){this.projection&&this.projection.unmount(),he(this.notifyUpdate),he(this.render),this.valueSubscriptions.forEach(e=>e()),this.valueSubscriptions.clear(),this.removeFromVariantTree&&this.removeFromVariantTree(),this.parent?.removeChild(this);for(let e in this.events)this.events[e].clear();for(let e in this.features){let t=this.features[e];t&&(t.unmount(),t.isMounted=!1)}this.current=null}addChild(e){this.children.add(e),this.enteringChildren??=new Set,this.enteringChildren.add(e)}removeChild(e){this.children.delete(e),this.enteringChildren&&this.enteringChildren.delete(e)}bindToMotionValue(e,t){if(this.valueSubscriptions.has(e)&&this.valueSubscriptions.get(e)(),t.accelerate&&er.has(e)&&this.current instanceof HTMLElement){let{factory:n,keyframes:r,times:i,ease:a,duration:o}=t.accelerate,s=new Wn({element:this.current,name:e,keyframes:r,times:i,ease:a,duration:b(o)}),c=n(s);this.valueSubscriptions.set(e,()=>{c(),s.cancel()});return}let n=vn.has(e);n&&this.onBindTransform&&this.onBindTransform();let r=t.on(`change`,t=>{this.latestValues[e]=t,this.props.onUpdate&&F.preRender(this.notifyUpdate),n&&this.projection&&(this.projection.isTransformDirty=!0),this.scheduleRender()}),i;typeof window<`u`&&window.MotionCheckAppearSync&&(i=window.MotionCheckAppearSync(this,e,t)),this.valueSubscriptions.set(e,()=>{r(),i&&i(),t.owner&&t.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 Sa){let t=Sa[e];if(!t)continue;let{isEnabled:n,Feature:r}=t;if(!this.features[e]&&r&&n(this.props)&&(this.features[e]=new r(this)),this.features[e]){let t=this.features[e];t.isMounted?t.update():(t.mount(),t.isMounted=!0)}}}triggerBuild(){this.build(this.renderState,this.latestValues,this.props)}measureViewportBox(){return this.current?this.measureInstanceViewportBox(this.current,this.props):G()}getStaticValue(e){return this.latestValues[e]}setStaticValue(e,t){this.latestValues[e]=t}update(e,t){(e.transformTemplate||this.props.transformTemplate)&&this.scheduleRender(),this.prevProps=this.props,this.props=e,this.prevPresenceContext=this.presenceContext,this.presenceContext=t;for(let t=0;t<xa.length;t++){let n=xa[t];this.propEventSubscriptions[n]&&(this.propEventSubscriptions[n](),delete this.propEventSubscriptions[n]);let r=e[`on`+n];r&&(this.propEventSubscriptions[n]=this.on(n,r))}this.prevMotionValues=ma(this,this.scrapeMotionValuesFromProps(e,this.prevProps||{},this),this.prevMotionValues),this.handleChildMotionValue&&this.handleChildMotionValue()}getProps(){return this.props}getVariant(e){return this.props.variants?this.props.variants[e]:void 0}getDefaultTransition(){return this.props.transition}getTransformPagePoint(){return this.props.transformPagePoint}getClosestVariantNode(){return this.isVariantNode?this:this.parent?this.parent.getClosestVariantNode():void 0}addVariantChild(e){let t=this.getClosestVariantNode();if(t)return t.variantChildren&&t.variantChildren.add(e),()=>t.variantChildren.delete(e)}addValue(e,t){let n=this.values.get(e);t!==n&&(n&&this.removeValue(e),this.bindToMotionValue(e,t),this.values.set(e,t),this.latestValues[e]=t.get())}removeValue(e){this.values.delete(e);let t=this.valueSubscriptions.get(e);t&&(t(),this.valueSubscriptions.delete(e)),delete this.latestValues[e],this.removeValueFromRenderState(e,this.renderState)}hasValue(e){return this.values.has(e)}getValue(e,t){if(this.props.values&&this.props.values[e])return this.props.values[e];let n=this.values.get(e);return n===void 0&&t!==void 0&&(n=ci(t===null?void 0:t,{owner:this}),this.addValue(e,n)),n}readValue(e,t){let n=this.latestValues[e]!==void 0||!this.current?this.latestValues[e]:this.getBaseTargetFromProps(this.props,e)??this.readValueFromInstance(this.current,e,this.options);return n!=null&&(typeof n==`string`&&(d(n)||p(n))?n=parseFloat(n):!oa(n)&&B.test(t)&&(n=Qi(e,t)),this.setBaseTarget(e,W(n)?n.get():n)),W(n)?n.get():n}setBaseTarget(e,t){this.baseTarget[e]=t}getBaseTarget(e){let{initial:t}=this.props,n;if(typeof t==`string`||typeof t==`object`){let r=ba(this.props,t,this.presenceContext?.custom);r&&(n=r[e])}if(t&&n!==void 0)return n;let r=this.getBaseTargetFromProps(this.props,e);return r!==void 0&&!W(r)?r:this.initialValues[e]!==void 0&&n===void 0?void 0:this.baseTarget[e]}on(e,t){return this.events[e]||(this.events[e]=new y),this.events[e].add(t)}notify(e,...t){this.events[e]&&this.events[e].notify(...t)}scheduleRenderMicrotask(){br.render(this.render)}},Ea=class extends Ta{constructor(){super(...arguments),this.KeyframeResolver=ta}sortInstanceNodePosition(e,t){return e.compareDocumentPosition(t)&2?1:-1}getBaseTargetFromProps(e,t){let n=e.style;return n?n[t]:void 0}removeValueFromRenderState(e,{vars:t,style:n}){delete t[e],delete n[e]}handleChildMotionValue(){this.childSubscription&&(this.childSubscription(),delete this.childSubscription);let{children:e}=this.props;W(e)&&(this.childSubscription=e.on(`change`,e=>{this.current&&(this.current.textContent=`${e}`)}))}},Da=(e,t)=>t&&typeof e==`number`?t.transform(e):e,Oa={x:`translateX`,y:`translateY`,z:`translateZ`,transformPerspective:`perspective`},ka=_n.length;function Aa(e,t,n){let r=``,i=!0;for(let a=0;a<ka;a++){let o=_n[a],s=e[o];if(s===void 0)continue;let c=!0;if(typeof s==`number`)c=s===+!!o.startsWith(`scale`);else{let e=parseFloat(s);c=o.startsWith(`scale`)?e===1:e===0}if(!c||n){let e=Da(s,Ji[o]);if(!c){i=!1;let t=Oa[o]||o;r+=`${t}(${e}) `}n&&(t[o]=e)}}return r=r.trim(),n?r=n(t,i?``:r):i&&(r=`none`),r}function ja(e,t,n){let{style:r,vars:i,transformOrigin:a}=e,o=!1,s=!1;for(let e in t){let n=t[e];if(vn.has(e)){o=!0;continue}else if(xe(e)){i[e]=n;continue}else{let t=Da(n,Ji[e]);e.startsWith(`origin`)?(s=!0,a[e]=t):r[e]=t}}if(t.transform||(o||n?r.transform=Aa(t,e.transform,n):r.transform&&=`none`),s){let{originX:e=`50%`,originY:t=`50%`,originZ:n=0}=a;r.transformOrigin=`${e} ${t} ${n}`}}function Ma(e,{style:t,vars:n},r,i){let a=e.style,o;for(o in t)a[o]=t[o];for(o in i?.applyProjectionStyles(a,r),n)a.setProperty(o,n[o])}function Na(e,t){return t.max===t.min?0:e/(t.max-t.min)*100}var Pa={correct:(e,t)=>{if(!t.target)return e;if(typeof e==`string`)if(R.test(e))e=parseFloat(e);else return e;return`${Na(e,t.target.x)}% ${Na(e,t.target.y)}%`}},Fa={correct:(e,{treeScale:t,projectionDelta:n})=>{let r=e,i=B.parse(e);if(i.length>5)return r;let a=B.createTransformer(e),o=typeof i[0]==`number`?0:1,s=n.x.scale*t.x,c=n.y.scale*t.y;i[0+o]/=s,i[1+o]/=c;let l=V(s,c,.5);return typeof i[2+o]==`number`&&(i[2+o]/=l),typeof i[3+o]==`number`&&(i[3+o]/=l),a(i)}},Ia={borderRadius:{...Pa,applyTo:[`borderTopLeftRadius`,`borderTopRightRadius`,`borderBottomLeftRadius`,`borderBottomRightRadius`]},borderTopLeftRadius:Pa,borderTopRightRadius:Pa,borderBottomLeftRadius:Pa,borderBottomRightRadius:Pa,boxShadow:Fa};function La(e,{layout:t,layoutId:n}){return vn.has(e)||e.startsWith(`origin`)||(t||n!==void 0)&&(!!Ia[e]||e===`opacity`)}function Ra(e,t,n){let r=e.style,i=t?.style,a={};if(!r)return a;for(let t in r)(W(r[t])||i&&W(i[t])||La(t,e)||n?.getValue(t)?.liveStyle!==void 0)&&(a[t]=r[t]);return a}function za(e){return window.getComputedStyle(e)}var Ba=class extends Ea{constructor(){super(...arguments),this.type=`html`,this.renderInstance=Ma}readValueFromInstance(e,t){if(vn.has(t))return this.projection?.isProjecting?pn(t):hn(e,t);{let n=za(e),r=(xe(t)?n.getPropertyValue(t):n[t])||0;return typeof r==`string`?r.trim():r}}measureInstanceViewportBox(e,{transformPagePoint:t}){return ji(e,t)}build(e,t,n){ja(e,t,n.transformTemplate)}scrapeMotionValuesFromProps(e,t,n){return Ra(e,t,n)}},Va={offset:`stroke-dashoffset`,array:`stroke-dasharray`},Ha={offset:`strokeDashoffset`,array:`strokeDasharray`};function Ua(e,t,n=1,r=0,i=!0){e.pathLength=1;let a=i?Va:Ha;e[a.offset]=`${-r}`,e[a.array]=`${t} ${n}`}var Wa=[`offsetDistance`,`offsetPath`,`offsetRotate`,`offsetAnchor`];function Ga(e,{attrX:t,attrY:n,attrScale:r,pathLength:i,pathSpacing:a=1,pathOffset:o=0,...s},c,l,u){if(ja(e,s,l),c){e.style.viewBox&&(e.attrs.viewBox=e.style.viewBox);return}e.attrs=e.style,e.style={};let{attrs:d,style:f}=e;d.transform&&(f.transform=d.transform,delete d.transform),(f.transform||d.transformOrigin)&&(f.transformOrigin=d.transformOrigin??`50% 50%`,delete d.transformOrigin),f.transform&&(f.transformBox=u?.transformBox??`fill-box`,delete d.transformBox);for(let e of Wa)d[e]!==void 0&&(f[e]=d[e],delete d[e]);t!==void 0&&(d.x=t),n!==void 0&&(d.y=n),r!==void 0&&(d.scale=r),i!==void 0&&Ua(d,i,a,o,!1)}var Ka=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`]),qa=e=>typeof e==`string`&&e.toLowerCase()===`svg`;function Ja(e,t,n,r){Ma(e,t,void 0,r);for(let n in t.attrs)e.setAttribute(Ka.has(n)?n:vr(n),t.attrs[n])}function Ya(e,t,n){let r=Ra(e,t,n);for(let n in e)if(W(e[n])||W(t[n])){let t=_n.indexOf(n)===-1?n:`attr`+n.charAt(0).toUpperCase()+n.substring(1);r[t]=e[n]}return r}var Xa=class extends Ea{constructor(){super(...arguments),this.type=`svg`,this.isSVGTag=!1,this.measureInstanceViewportBox=G}getBaseTargetFromProps(e,t){return e[t]}readValueFromInstance(e,t){if(vn.has(t)){let e=Xi(t);return e&&e.default||0}return t=Ka.has(t)?t:vr(t),e.getAttribute(t)}scrapeMotionValuesFromProps(e,t,n){return Ya(e,t,n)}build(e,t,n){Ga(e,t,this.isSVGTag,n.transformTemplate,n.style)}renderInstance(e,t,n,r){Ja(e,t,n,r)}mount(e){this.isSVGTag=qa(e.tagName),super.mount(e)}};function Za(e,t,n){let r=e.getProps();return ba(r,t,n===void 0?r.custom:n,e)}var Qa=e=>Array.isArray(e);function $a(e,t,n){e.hasValue(t)?e.getValue(t).set(n):e.addValue(t,ci(n))}function eo(e){return Qa(e)?e[e.length-1]||0:e}function to(e,t){let{transitionEnd:n={},transition:r={},...i}=Za(e,t)||{};i={...i,...n};for(let t in i)$a(e,t,eo(i[t]))}function no(e){return e.props[yr]}function ro({protectedKeys:e,needsAnimating:t},n){let r=e.hasOwnProperty(n)&&t[n]!==!0;return t[n]=!1,r}function io(e,t,{delay:n=0,transitionOverride:r,type:i}={}){let{transition:a,transitionEnd:o,...s}=t,c=e.getDefaultTransition();a=a?cr(a,c):c;let l=a?.reduceMotion;r&&(a=r);let u=[],d=i&&e.animationState&&e.animationState.getState()[i];for(let t in s){let r=e.getValue(t,e.latestValues[t]??null),i=s[t];if(i===void 0||d&&ro(d,t))continue;let o={delay:n,...lr(a||{},t)},c=r.get();if(c!==void 0&&!r.isAnimating()&&!Array.isArray(i)&&i===c&&!o.velocity){F.update(()=>r.set(i));continue}let f=!1;if(window.MotionHandoffAnimation){let n=no(e);if(n){let e=window.MotionHandoffAnimation(n,t,F);e!==null&&(o.startTime=e,f=!0)}}ui(e,t);let p=l??e.shouldReduceMotion;r.start(_r(t,r,i,p&&Ni.has(t)?{type:!1}:o,e,f));let m=r.animation;m&&u.push(m)}if(o){let t=()=>F.update(()=>{o&&to(e,o)});u.length?Promise.all(u).then(t):t()}return u}function ao(e,t,n,r=0,i=1){let a=Array.from(e).sort((e,t)=>e.sortNodePosition(t)).indexOf(t),o=e.size,s=(o-1)*r;return typeof n==`function`?n(a,o):i===1?a*r:s-a*r}function oo(e,t,n={}){let r=Za(e,t,n.type===`exit`?e.presenceContext?.custom:void 0),{transition:i=e.getDefaultTransition()||{}}=r||{};n.transitionOverride&&(i=n.transitionOverride);let a=r?()=>Promise.all(io(e,r,n)):()=>Promise.resolve(),o=e.variantChildren&&e.variantChildren.size?(r=0)=>{let{delayChildren:a=0,staggerChildren:o,staggerDirection:s}=i;return so(e,t,r,a,o,s,n)}:()=>Promise.resolve(),{when:s}=i;if(s){let[e,t]=s===`beforeChildren`?[a,o]:[o,a];return e().then(()=>t())}else return Promise.all([a(),o(n.delay)])}function so(e,t,n=0,r=0,i=0,a=1,o){let s=[];for(let c of e.variantChildren)c.notify(`AnimationStart`,t),s.push(oo(c,t,{...o,delay:n+(typeof r==`function`?0:r)+ao(e.variantChildren,c,r,i,a)}).then(()=>c.notify(`AnimationComplete`,t)));return Promise.all(s)}function co(e,t,n={}){e.notify(`AnimationStart`,t);let r;if(Array.isArray(t)){let i=t.map(t=>oo(e,t,n));r=Promise.all(i)}else if(typeof t==`string`)r=oo(e,t,n);else{let i=typeof t==`function`?Za(e,t,n.custom):t;r=Promise.all(io(e,i,n))}return r.then(()=>{e.notify(`AnimationComplete`,t)})}var lo=da.length;function uo(e){if(!e)return;if(!e.isControllingVariants){let t=e.parent&&uo(e.parent)||{};return e.props.initial!==void 0&&(t.initial=e.props.initial),t}let t={};for(let n=0;n<lo;n++){let r=da[n],i=e.props[r];(la(i)||i===!1)&&(t[r]=i)}return t}function fo(e,t){if(!Array.isArray(t))return!1;let n=t.length;if(n!==e.length)return!1;for(let r=0;r<n;r++)if(t[r]!==e[r])return!1;return!0}var po=[...ua].reverse(),mo=ua.length;function ho(e){return t=>Promise.all(t.map(({animation:t,options:n})=>co(e,t,n)))}function go(e){let t=ho(e),n=yo(),r=!0,i=!1,a=t=>(n,r)=>{let i=Za(e,r,t===`exit`?e.presenceContext?.custom:void 0);if(i){let{transition:e,transitionEnd:t,...r}=i;n={...n,...r,...t}}return n};function o(n){t=n(e)}function s(o){let{props:s}=e,c=uo(e.parent)||{},l=[],u=new Set,d={},f=1/0;for(let t=0;t<mo;t++){let p=po[t],m=n[p],h=s[p]===void 0?c[p]:s[p],g=la(h),_=p===o?m.isActive:null;_===!1&&(f=t);let v=h===c[p]&&h!==s[p]&&g;if(v&&(r||i)&&e.manuallyAnimateOnMount&&(v=!1),m.protectedKeys={...d},!m.isActive&&_===null||!h&&!m.prevProp||ca(h)||typeof h==`boolean`)continue;if(p===`exit`&&m.isActive&&_!==!0){m.prevResolvedValues&&(d={...d,...m.prevResolvedValues});continue}let y=_o(m.prevProp,h),b=y||p===o&&m.isActive&&!v&&g||t>f&&g,x=!1,S=Array.isArray(h)?h:[h],C=S.reduce(a(p),{});_===!1&&(C={});let{prevResolvedValues:w={}}=m,T={...w,...C},ee=t=>{b=!0,u.has(t)&&(x=!0,u.delete(t)),m.needsAnimating[t]=!0;let n=e.getValue(t);n&&(n.liveStyle=!1)};for(let e in T){let t=C[e],n=w[e];if(d.hasOwnProperty(e))continue;let r=!1;r=Qa(t)&&Qa(n)?!fo(t,n):t!==n,r?t==null?u.add(e):ee(e):t!==void 0&&u.has(e)?ee(e):m.protectedKeys[e]=!0}m.prevProp=h,m.prevResolvedValues=C,m.isActive&&(d={...d,...C}),(r||i)&&e.blockInitialAnimation&&(b=!1);let E=v&&y;b&&(!E||x)&&l.push(...S.map(t=>{let n={type:p};if(typeof t==`string`&&(r||i)&&!E&&e.manuallyAnimateOnMount&&e.parent){let{parent:r}=e,i=Za(r,t);if(r.enteringChildren&&i){let{delayChildren:t}=i.transition||{};n.delay=ao(r.enteringChildren,e,t)}}return{animation:t,options:n}}))}if(u.size){let t={};if(typeof s.initial!=`boolean`){let n=Za(e,Array.isArray(s.initial)?s.initial[0]:s.initial);n&&n.transition&&(t.transition=n.transition)}u.forEach(n=>{let r=e.getBaseTarget(n),i=e.getValue(n);i&&(i.liveStyle=!0),t[n]=r??null}),l.push({animation:t})}let p=!!l.length;return r&&(s.initial===!1||s.initial===s.animate)&&!e.manuallyAnimateOnMount&&(p=!1),r=!1,i=!1,p?t(l):Promise.resolve()}function c(t,r){if(n[t].isActive===r)return Promise.resolve();e.variantChildren?.forEach(e=>e.animationState?.setActive(t,r)),n[t].isActive=r;let i=s(t);for(let e in n)n[e].protectedKeys={};return i}return{animateChanges:s,setActive:c,setAnimateFunction:o,getState:()=>n,reset:()=>{n=yo(),i=!0}}}function _o(e,t){return typeof t==`string`?t!==e:Array.isArray(t)?!fo(t,e):!1}function vo(e=!1){return{isActive:e,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function yo(){return{animate:vo(!0),whileInView:vo(),whileHover:vo(),whileTap:vo(),whileDrag:vo(),whileFocus:vo(),exit:vo()}}var bo=.9999,xo=1.0001,So=-.01,Co=.01;function K(e){return e.max-e.min}function wo(e,t,n){return Math.abs(e-t)<=n}function To(e,t,n,r=.5){e.origin=r,e.originPoint=V(t.min,t.max,e.origin),e.scale=K(n)/K(t),e.translate=V(n.min,n.max,e.origin)-e.originPoint,(e.scale>=bo&&e.scale<=xo||isNaN(e.scale))&&(e.scale=1),(e.translate>=So&&e.translate<=Co||isNaN(e.translate))&&(e.translate=0)}function Eo(e,t,n,r){To(e.x,t.x,n.x,r?r.originX:void 0),To(e.y,t.y,n.y,r?r.originY:void 0)}function Do(e,t,n,r=0){e.min=(r?V(n.min,n.max,r):n.min)+t.min,e.max=e.min+K(t)}function Oo(e,t,n,r){Do(e.x,t.x,n.x,r?.x),Do(e.y,t.y,n.y,r?.y)}function ko(e,t,n,r=0){let i=r?V(n.min,n.max,r):n.min;e.min=t.min-i,e.max=e.min+K(t)}function Ao(e,t,n,r){ko(e.x,t.x,n.x,r?.x),ko(e.y,t.y,n.y,r?.y)}function jo(e){return[e(`x`),e(`y`)]}function Mo(e,t,n,r={passive:!0}){return e.addEventListener(t,n,r),()=>e.removeEventListener(t,n)}function No(e){return W(e)?e.get():e}function Po(e,t,n){let r=W(e)?e:ci(e);return r.start(_r(``,r,t,n)),r.animation}function Fo(e,t){let n=L.now(),r=({timestamp:i})=>{let a=i-n;a>=t&&(he(r),e(a-t))};return F.setup(r,!0),()=>he(r)}function Io(e){return Hr(e)&&e.tagName===`svg`}var Lo=[`borderTopLeftRadius`,`borderTopRightRadius`,`borderBottomLeftRadius`,`borderBottomRightRadius`],Ro=Lo.length,zo=e=>typeof e==`string`?parseFloat(e):e,Bo=e=>typeof e==`number`||R.test(e);function Vo(e,t,n,r,i,a){i?(e.opacity=V(0,n.opacity??1,Uo(r)),e.opacityExit=V(t.opacity??1,0,Wo(r))):a&&(e.opacity=V(t.opacity??1,n.opacity??1,r));for(let i=0;i<Ro;i++){let a=Lo[i],o=Ho(t,a),s=Ho(n,a);o===void 0&&s===void 0||(o||=0,s||=0,o===0||s===0||Bo(o)===Bo(s)?(e[a]=Math.max(V(zo(o),zo(s),r),0),(He.test(s)||He.test(o))&&(e[a]+=`%`)):e[a]=s)}(t.rotate||n.rotate)&&(e.rotate=V(t.rotate||0,n.rotate||0,r))}function Ho(e,t){return e[t]===void 0?e.borderRadius:e[t]}var Uo=Go(0,.5,ae),Wo=Go(.5,.95,h);function Go(e,t,n){return r=>r<e?0:r>t?1:n(v(e,t,r))}function Ko(e,t){e.min=t.min,e.max=t.max}function q(e,t){Ko(e.x,t.x),Ko(e.y,t.y)}function qo(e,t){e.translate=t.translate,e.scale=t.scale,e.originPoint=t.originPoint,e.origin=t.origin}function Jo(e,t,n,r,i){return e-=t,e=bi(e,1/n,r),i!==void 0&&(e=bi(e,1/i,r)),e}function Yo(e,t=0,n=1,r=.5,i,a=e,o=e){if(He.test(t)&&(t=parseFloat(t),t=V(o.min,o.max,t/100)-o.min),typeof t!=`number`)return;let s=V(a.min,a.max,r);e===a&&(s-=t),e.min=Jo(e.min,t,n,s,i),e.max=Jo(e.max,t,n,s,i)}function Xo(e,t,[n,r,i],a,o){Yo(e,t[n],t[r],t[i],t.scale,a,o)}var Zo=[`x`,`scaleX`,`originX`],Qo=[`y`,`scaleY`,`originY`];function $o(e,t,n,r){Xo(e.x,t,Zo,n?n.x:void 0,r?r.x:void 0),Xo(e.y,t,Qo,n?n.y:void 0,r?r.y:void 0)}function es(e){return e.translate===0&&e.scale===1}function ts(e){return es(e.x)&&es(e.y)}function ns(e,t){return e.min===t.min&&e.max===t.max}function rs(e,t){return ns(e.x,t.x)&&ns(e.y,t.y)}function is(e,t){return Math.round(e.min)===Math.round(t.min)&&Math.round(e.max)===Math.round(t.max)}function as(e,t){return is(e.x,t.x)&&is(e.y,t.y)}function os(e){return K(e.x)/K(e.y)}function ss(e,t){return e.translate===t.translate&&e.scale===t.scale&&e.originPoint===t.originPoint}var cs=class{constructor(){this.members=[]}add(e){a(this.members,e);for(let t=this.members.length-1;t>=0;t--){let n=this.members[t];if(n===e||n===this.lead||n===this.prevLead)continue;let r=n.instance;(!r||r.isConnected===!1)&&!n.snapshot&&(o(this.members,n),n.unmount())}e.scheduleRender()}remove(e){if(o(this.members,e),e===this.prevLead&&(this.prevLead=void 0),e===this.lead){let e=this.members[this.members.length-1];e&&this.promote(e)}}relegate(e){for(let t=this.members.indexOf(e)-1;t>=0;t--){let e=this.members[t];if(e.isPresent!==!1&&e.instance?.isConnected!==!1)return this.promote(e),!0}return!1}promote(e,t){let n=this.lead;if(e!==n&&(this.prevLead=n,this.lead=e,e.show(),n)){n.updateSnapshot(),e.scheduleRender();let{layoutDependency:r}=n.options,{layoutDependency:i}=e.options;(r===void 0||r!==i)&&(e.resumeFrom=n,t&&(n.preserveOpacity=!0),n.snapshot&&(e.snapshot=n.snapshot,e.snapshot.latestValues=n.animationValues||n.latestValues),e.root?.isUpdating&&(e.isLayoutDirty=!0)),e.options.crossfade===!1&&n.hide()}}exitAnimationComplete(){this.members.forEach(e=>{e.options.onExitComplete?.(),e.resumingFrom?.options.onExitComplete?.()})}scheduleRender(){this.members.forEach(e=>e.instance&&e.scheduleRender(!1))}removeLeadSnapshot(){this.lead?.snapshot&&(this.lead.snapshot=void 0)}};function ls(e,t,n){let r=``,i=e.x.translate/t.x,a=e.y.translate/t.y,o=n?.z||0;if((i||a||o)&&(r=`translate3d(${i}px, ${a}px, ${o}px) `),(t.x!==1||t.y!==1)&&(r+=`scale(${1/t.x}, ${1/t.y}) `),n){let{transformPerspective:e,rotate:t,rotateX:i,rotateY:a,skewX:o,skewY:s}=n;e&&(r=`perspective(${e}px) ${r}`),t&&(r+=`rotate(${t}deg) `),i&&(r+=`rotateX(${i}deg) `),a&&(r+=`rotateY(${a}deg) `),o&&(r+=`skewX(${o}deg) `),s&&(r+=`skewY(${s}deg) `)}let s=e.x.scale*t.x,c=e.y.scale*t.y;return(s!==1||c!==1)&&(r+=`scale(${s}, ${c})`),r||`none`}var us=(e,t)=>e.depth-t.depth,ds=class{constructor(){this.children=[],this.isDirty=!1}add(e){a(this.children,e),this.isDirty=!0}remove(e){o(this.children,e),this.isDirty=!0}forEach(e){this.isDirty&&this.children.sort(us),this.isDirty=!1,this.children.forEach(e)}},fs={hasAnimatedSinceResize:!0,hasEverUpdated:!1},ps={nodes:0,calculatedTargetDeltas:0,calculatedProjections:0},ms=[``,`X`,`Y`,`Z`],hs=1e3,gs=0;function _s(e,t,n,r){let{latestValues:i}=t;i[e]&&(n[e]=i[e],t.setStaticValue(e,0),r&&(r[e]=0))}function vs(e){if(e.hasCheckedOptimisedAppear=!0,e.root===e)return;let{visualElement:t}=e.options;if(!t)return;let n=no(t);if(window.MotionHasOptimisedAnimation(n,`transform`)){let{layout:t,layoutId:r}=e.options;window.MotionCancelOptimisedAnimation(n,`transform`,F,!(t||r))}let{parent:r}=e;r&&!r.hasCheckedOptimisedAppear&&vs(r)}function ys({attachResizeListener:e,defaultParent:t,measureScroll:n,checkIsScrollRoot:r,resetTransform:i}){return class{constructor(e={},n=t?.()){this.id=gs++,this.animationId=0,this.animationCommitId=0,this.children=new Set,this.options={},this.isTreeAnimating=!1,this.isAnimationBlocked=!1,this.isLayoutDirty=!1,this.isProjectionDirty=!1,this.isSharedProjectionDirty=!1,this.isTransformDirty=!1,this.updateManuallyBlocked=!1,this.updateBlockedByResize=!1,this.isUpdating=!1,this.isSVG=!1,this.needsReset=!1,this.shouldResetTransform=!1,this.hasCheckedOptimisedAppear=!1,this.treeScale={x:1,y:1},this.eventHandlers=new Map,this.hasTreeAnimated=!1,this.layoutVersion=0,this.updateScheduled=!1,this.scheduleUpdate=()=>this.update(),this.projectionUpdateScheduled=!1,this.checkUpdateFailed=()=>{this.isUpdating&&(this.isUpdating=!1,this.clearAllSnapshots())},this.updateProjection=()=>{this.projectionUpdateScheduled=!1,P.value&&(ps.nodes=ps.calculatedTargetDeltas=ps.calculatedProjections=0),this.nodes.forEach(Ss),this.nodes.forEach(js),this.nodes.forEach(Ms),this.nodes.forEach(Cs),P.addProjectionMetrics&&P.addProjectionMetrics(ps)},this.resolvedRelativeTargetAt=0,this.linkedParentVersion=0,this.hasProjected=!1,this.isVisible=!0,this.animationProgress=0,this.sharedNodes=new Map,this.latestValues=e,this.root=n?n.root||n:this,this.path=n?[...n.path,n]:[],this.parent=n,this.depth=n?n.depth+1:0;for(let e=0;e<this.path.length;e++)this.path[e].shouldResetTransform=!0;this.root===this&&(this.nodes=new ds)}addEventListener(e,t){return this.eventHandlers.has(e)||this.eventHandlers.set(e,new y),this.eventHandlers.get(e).add(t)}notifyListeners(e,...t){let n=this.eventHandlers.get(e);n&&n.notify(...t)}hasListeners(e){return this.eventHandlers.has(e)}mount(t){if(this.instance)return;this.isSVG=Hr(t)&&!Io(t),this.instance=t;let{layoutId:n,layout:r,visualElement:i}=this.options;if(i&&!i.current&&i.mount(t),this.root.nodes.add(this),this.parent&&this.parent.children.add(this),this.root.hasTreeAnimated&&(r||n)&&(this.isLayoutDirty=!0),e){let n,r=0,i=()=>this.root.updateBlockedByResize=!1;F.read(()=>{r=window.innerWidth}),e(t,()=>{let e=window.innerWidth;e!==r&&(r=e,this.root.updateBlockedByResize=!0,n&&n(),n=Fo(i,250),fs.hasAnimatedSinceResize&&(fs.hasAnimatedSinceResize=!1,this.nodes.forEach(As)))})}n&&this.root.registerSharedNode(n,this),this.options.animate!==!1&&i&&(n||r)&&this.addEventListener(`didUpdate`,({delta:e,hasLayoutChanged:t,hasRelativeLayoutChanged:n,layout:r})=>{if(this.isTreeAnimationBlocked()){this.target=void 0,this.relativeTarget=void 0;return}let a=this.options.transition||i.getDefaultTransition()||zs,{onLayoutAnimationStart:o,onLayoutAnimationComplete:s}=i.getProps(),c=!this.targetLayout||!as(this.targetLayout,r),l=!t&&n;if(this.options.layoutRoot||this.resumeFrom||l||t&&(c||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0);let t={...lr(a,`layout`),onPlay:o,onComplete:s};(i.shouldReduceMotion||this.options.layoutRoot)&&(t.delay=0,t.type=!1),this.startAnimation(t),this.setAnimationOrigin(e,l)}else t||As(this),this.isLead()&&this.options.onExitComplete&&this.options.onExitComplete();this.targetLayout=r})}unmount(){this.options.layoutId&&this.willUpdate(),this.root.nodes.remove(this);let e=this.getStack();e&&e.remove(this),this.parent&&this.parent.children.delete(this),this.instance=void 0,this.eventHandlers.clear(),he(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(Ns),this.animationId++)}getTransformTemplate(){let{visualElement:e}=this.options;return e&&e.getProps().transformTemplate}willUpdate(e=!0){if(this.root.hasTreeAnimated=!0,this.root.isUpdateBlocked()){this.options.onExitComplete&&this.options.onExitComplete();return}if(window.MotionCancelOptimisedAnimation&&!this.hasCheckedOptimisedAppear&&vs(this),!this.root.isUpdating&&this.root.startUpdate(),this.isLayoutDirty)return;this.isLayoutDirty=!0;for(let e=0;e<this.path.length;e++){let t=this.path[e];t.shouldResetTransform=!0,(typeof t.latestValues.x==`string`||typeof t.latestValues.y==`string`)&&(t.isLayoutDirty=!0),t.updateScroll(`snapshot`),t.options.layoutRoot&&t.willUpdate(!1)}let{layoutId:t,layout:n}=this.options;if(t===void 0&&!n)return;let r=this.getTransformTemplate();this.prevTransformTemplateValue=r?r(this.latestValues,``):void 0,this.updateSnapshot(),e&&this.notifyListeners(`willUpdate`)}update(){if(this.updateScheduled=!1,this.isUpdateBlocked()){let e=this.updateBlockedByResize;this.unblockUpdate(),this.updateBlockedByResize=!1,this.clearAllSnapshots(),e&&this.nodes.forEach(Es),this.nodes.forEach(Ts);return}if(this.animationId<=this.animationCommitId){this.nodes.forEach(Ds);return}this.animationCommitId=this.animationId,this.isUpdating?(this.isUpdating=!1,this.nodes.forEach(Os),this.nodes.forEach(ks),this.nodes.forEach(bs),this.nodes.forEach(xs)):this.nodes.forEach(Ds),this.clearAllSnapshots();let e=L.now();I.delta=c(0,1e3/60,e-I.timestamp),I.timestamp=e,I.isProcessing=!0,ge.update.process(I),ge.preRender.process(I),ge.render.process(I),I.isProcessing=!1}didUpdate(){this.updateScheduled||(this.updateScheduled=!0,br.read(this.scheduleUpdate))}clearAllSnapshots(){this.nodes.forEach(ws),this.sharedNodes.forEach(Ps)}scheduleUpdateProjection(){this.projectionUpdateScheduled||(this.projectionUpdateScheduled=!0,F.preRender(this.updateProjection,!1,!0))}scheduleCheckAfterUnmount(){F.postRender(()=>{this.isLayoutDirty?this.root.didUpdate():this.root.checkUpdateFailed()})}updateSnapshot(){this.snapshot||!this.instance||(this.snapshot=this.measure(),this.snapshot&&!K(this.snapshot.measuredBox.x)&&!K(this.snapshot.measuredBox.y)&&(this.snapshot=void 0))}updateLayout(){if(!this.instance||(this.updateScroll(),!(this.options.alwaysMeasureLayout&&this.isLead())&&!this.isLayoutDirty))return;if(this.resumeFrom&&!this.resumeFrom.instance)for(let e=0;e<this.path.length;e++)this.path[e].updateScroll();let e=this.layout;this.layout=this.measure(!1),this.layoutVersion++,this.layoutCorrected||=G(),this.isLayoutDirty=!1,this.projectionDelta=void 0,this.notifyListeners(`measure`,this.layout.layoutBox);let{visualElement:t}=this.options;t&&t.notify(`LayoutMeasure`,this.layout.layoutBox,e?e.layoutBox:void 0)}updateScroll(e=`measure`){let t=!!(this.options.layoutScroll&&this.instance);if(this.scroll&&this.scroll.animationId===this.root.animationId&&this.scroll.phase===e&&(t=!1),t&&this.instance){let t=r(this.instance);this.scroll={animationId:this.root.animationId,phase:e,isRoot:t,offset:n(this.instance),wasRoot:this.scroll?this.scroll.isRoot:t}}}resetTransform(){if(!i)return;let e=this.isLayoutDirty||this.shouldResetTransform||this.options.alwaysMeasureLayout,t=this.projectionDelta&&!ts(this.projectionDelta),n=this.getTransformTemplate(),r=n?n(this.latestValues,``):void 0,a=r!==this.prevTransformTemplateValue;e&&this.instance&&(t||_i(this.latestValues)||a)&&(i(this.instance,r),this.shouldResetTransform=!1,this.scheduleRender())}measure(e=!0){let t=this.measurePageBox(),n=this.removeElementScroll(t);return e&&(n=this.removeTransform(n)),Us(n),{animationId:this.root.animationId,measuredBox:t,layoutBox:n,latestValues:{},source:this.id}}measurePageBox(){let{visualElement:e}=this.options;if(!e)return G();let t=e.measureViewportBox();if(!(this.scroll?.wasRoot||this.path.some(Gs))){let{scroll:e}=this.root;e&&(Di(t.x,e.offset.x),Di(t.y,e.offset.y))}return t}removeElementScroll(e){let t=G();if(q(t,e),this.scroll?.wasRoot)return t;for(let n=0;n<this.path.length;n++){let r=this.path[n],{scroll:i,options:a}=r;r!==this.root&&i&&a.layoutScroll&&(i.wasRoot&&q(t,e),Di(t.x,i.offset.x),Di(t.y,i.offset.y))}return t}applyTransform(e,t=!1,n){let r=n||G();q(r,e);for(let e=0;e<this.path.length;e++){let n=this.path[e];!t&&n.options.layoutScroll&&n.scroll&&n!==n.root&&(Di(r.x,-n.scroll.offset.x),Di(r.y,-n.scroll.offset.y)),_i(n.latestValues)&&Ai(r,n.latestValues,n.layout?.layoutBox)}return _i(this.latestValues)&&Ai(r,this.latestValues,this.layout?.layoutBox),r}removeTransform(e){let t=G();q(t,e);for(let e=0;e<this.path.length;e++){let n=this.path[e];if(!_i(n.latestValues))continue;let r;n.instance&&(gi(n.latestValues)&&n.updateSnapshot(),r=G(),q(r,n.measurePageBox())),$o(t,n.latestValues,n.snapshot?.layoutBox,r)}return _i(this.latestValues)&&$o(t,this.latestValues),t}setTargetDelta(e){this.targetDelta=e,this.root.scheduleUpdateProjection(),this.isProjectionDirty=!0}setOptions(e){this.options={...this.options,...e,crossfade:e.crossfade===void 0?!0:e.crossfade}}clearMeasurements(){this.scroll=void 0,this.layout=void 0,this.snapshot=void 0,this.prevTransformTemplateValue=void 0,this.targetDelta=void 0,this.target=void 0,this.isLayoutDirty=!1}forceRelativeParentToResolveTarget(){this.relativeParent&&this.relativeParent.resolvedRelativeTargetAt!==I.timestamp&&this.relativeParent.resolveTargetDelta(!0)}resolveTargetDelta(e=!1){let t=this.getLead();this.isProjectionDirty||=t.isProjectionDirty,this.isTransformDirty||=t.isTransformDirty,this.isSharedProjectionDirty||=t.isSharedProjectionDirty;let n=!!this.resumingFrom||this!==t;if(!(e||n&&this.isSharedProjectionDirty||this.isProjectionDirty||this.parent?.isProjectionDirty||this.attemptToResolveRelativeTarget||this.root.updateBlockedByResize))return;let{layout:r,layoutId:i}=this.options;if(!this.layout||!(r||i))return;this.resolvedRelativeTargetAt=I.timestamp;let a=this.getClosestProjectingParent();a&&this.linkedParentVersion!==a.layoutVersion&&!a.options.layoutRoot&&this.removeRelativeTarget(),!this.targetDelta&&!this.relativeTarget&&(this.options.layoutAnchor!==!1&&a&&a.layout?this.createRelativeTarget(a,this.layout.layoutBox,a.layout.layoutBox):this.removeRelativeTarget()),!(!this.relativeTarget&&!this.targetDelta)&&(this.target||(this.target=G(),this.targetWithTransforms=G()),this.relativeTarget&&this.relativeTargetOrigin&&this.relativeParent&&this.relativeParent.target?(this.forceRelativeParentToResolveTarget(),Oo(this.target,this.relativeTarget,this.relativeParent.target,this.options.layoutAnchor||void 0)):this.targetDelta?(this.resumingFrom?this.applyTransform(this.layout.layoutBox,!1,this.target):q(this.target,this.layout.layoutBox),Ci(this.target,this.targetDelta)):q(this.target,this.layout.layoutBox),this.attemptToResolveRelativeTarget&&(this.attemptToResolveRelativeTarget=!1,this.options.layoutAnchor!==!1&&a&&!!a.resumingFrom==!!this.resumingFrom&&!a.options.layoutScroll&&a.target&&this.animationProgress!==1?this.createRelativeTarget(a,this.target,a.target):this.relativeParent=this.relativeTarget=void 0),P.value&&ps.calculatedTargetDeltas++)}getClosestProjectingParent(){if(!(!this.parent||gi(this.parent.latestValues)||vi(this.parent.latestValues)))return this.parent.isProjecting()?this.parent:this.parent.getClosestProjectingParent()}isProjecting(){return!!((this.relativeTarget||this.targetDelta||this.options.layoutRoot)&&this.layout)}createRelativeTarget(e,t,n){this.relativeParent=e,this.linkedParentVersion=e.layoutVersion,this.forceRelativeParentToResolveTarget(),this.relativeTarget=G(),this.relativeTargetOrigin=G(),Ao(this.relativeTargetOrigin,t,n,this.options.layoutAnchor||void 0),q(this.relativeTarget,this.relativeTargetOrigin)}removeRelativeTarget(){this.relativeParent=this.relativeTarget=void 0}calcProjection(){let e=this.getLead(),t=!!this.resumingFrom||this!==e,n=!0;if((this.isProjectionDirty||this.parent?.isProjectionDirty)&&(n=!1),t&&(this.isSharedProjectionDirty||this.isTransformDirty)&&(n=!1),this.resolvedRelativeTargetAt===I.timestamp&&(n=!1),n)return;let{layout:r,layoutId:i}=this.options;if(this.isTreeAnimating=!!(this.parent&&this.parent.isTreeAnimating||this.currentAnimation||this.pendingAnimation),this.isTreeAnimating||(this.targetDelta=this.relativeTarget=void 0),!this.layout||!(r||i))return;q(this.layoutCorrected,this.layout.layoutBox);let a=this.treeScale.x,o=this.treeScale.y;Ei(this.layoutCorrected,this.treeScale,this.path,t),e.layout&&!e.target&&(this.treeScale.x!==1||this.treeScale.y!==1)&&(e.target=e.layout.layoutBox,e.targetWithTransforms=G());let{target:s}=e;if(!s){this.prevProjectionDelta&&(this.createProjectionDeltas(),this.scheduleRender());return}!this.projectionDelta||!this.prevProjectionDelta?this.createProjectionDeltas():(qo(this.prevProjectionDelta.x,this.projectionDelta.x),qo(this.prevProjectionDelta.y,this.projectionDelta.y)),Eo(this.projectionDelta,this.layoutCorrected,s,this.latestValues),(this.treeScale.x!==a||this.treeScale.y!==o||!ss(this.projectionDelta.x,this.prevProjectionDelta.x)||!ss(this.projectionDelta.y,this.prevProjectionDelta.y))&&(this.hasProjected=!0,this.scheduleRender(),this.notifyListeners(`projectionUpdate`,s)),P.value&&ps.calculatedProjections++}hide(){this.isVisible=!1}show(){this.isVisible=!0}scheduleRender(e=!0){if(this.options.visualElement?.scheduleRender(),e){let e=this.getStack();e&&e.scheduleRender()}this.resumingFrom&&!this.resumingFrom.instance&&(this.resumingFrom=void 0)}createProjectionDeltas(){this.prevProjectionDelta=ra(),this.projectionDelta=ra(),this.projectionDeltaWithTransform=ra()}setAnimationOrigin(e,t=!1){let n=this.snapshot,r=n?n.latestValues:{},i={...this.latestValues},a=ra();(!this.relativeParent||!this.relativeParent.options.layoutRoot)&&(this.relativeTarget=this.relativeTargetOrigin=void 0),this.attemptToResolveRelativeTarget=!t;let o=G(),s=(n?n.source:void 0)!==(this.layout?this.layout.source:void 0),c=this.getStack(),l=!c||c.members.length<=1,u=!!(s&&!l&&this.options.crossfade===!0&&!this.path.some(Rs));this.animationProgress=0;let d;this.mixTargetDelta=t=>{let n=t/1e3;Fs(a.x,e.x,n),Fs(a.y,e.y,n),this.setTargetDelta(a),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout&&(Ao(o,this.layout.layoutBox,this.relativeParent.layout.layoutBox,this.options.layoutAnchor||void 0),Ls(this.relativeTarget,this.relativeTargetOrigin,o,n),d&&rs(this.relativeTarget,d)&&(this.isProjectionDirty=!1),d||=G(),q(d,this.relativeTarget)),s&&(this.animationValues=i,Vo(i,r,this.latestValues,n,u,l)),this.root.scheduleUpdateProjection(),this.scheduleRender(),this.animationProgress=n},this.mixTargetDelta(this.options.layoutRoot?1e3:0)}startAnimation(e){this.notifyListeners(`animationStart`),this.currentAnimation?.stop(),this.resumingFrom?.currentAnimation?.stop(),this.pendingAnimation&&=(he(this.pendingAnimation),void 0),this.pendingAnimation=F.update(()=>{fs.hasAnimatedSinceResize=!0,ye.layout++,this.motionValue||=ci(0),this.motionValue.jump(0,!1),this.currentAnimation=Po(this.motionValue,[0,1e3],{...e,velocity:0,isSync:!0,onUpdate:t=>{this.mixTargetDelta(t),e.onUpdate&&e.onUpdate(t)},onStop:()=>{ye.layout--},onComplete:()=>{ye.layout--,e.onComplete&&e.onComplete(),this.completeAnimation()}}),this.resumingFrom&&(this.resumingFrom.currentAnimation=this.currentAnimation),this.pendingAnimation=void 0})}completeAnimation(){this.resumingFrom&&(this.resumingFrom.currentAnimation=void 0,this.resumingFrom.preserveOpacity=void 0);let e=this.getStack();e&&e.exitAnimationComplete(),this.resumingFrom=this.currentAnimation=this.animationValues=void 0,this.notifyListeners(`animationComplete`)}finishAnimation(){this.currentAnimation&&(this.mixTargetDelta&&this.mixTargetDelta(hs),this.currentAnimation.stop()),this.completeAnimation()}applyTransformsToTarget(){let e=this.getLead(),{targetWithTransforms:t,target:n,layout:r,latestValues:i}=e;if(!(!t||!n||!r)){if(this!==e&&this.layout&&r&&Ws(this.options.animationType,this.layout.layoutBox,r.layoutBox)){n=this.target||G();let t=K(this.layout.layoutBox.x);n.x.min=e.target.x.min,n.x.max=n.x.min+t;let r=K(this.layout.layoutBox.y);n.y.min=e.target.y.min,n.y.max=n.y.min+r}q(t,n),Ai(t,i),Eo(this.projectionDeltaWithTransform,this.layoutCorrected,t,i)}}registerSharedNode(e,t){this.sharedNodes.has(e)||this.sharedNodes.set(e,new cs),this.sharedNodes.get(e).add(t);let n=t.options.initialPromotionConfig;t.promote({transition:n?n.transition:void 0,preserveFollowOpacity:n&&n.shouldPreserveFollowOpacity?n.shouldPreserveFollowOpacity(t):void 0})}isLead(){let e=this.getStack();return e?e.lead===this:!0}getLead(){let{layoutId:e}=this.options;return e&&this.getStack()?.lead||this}getPrevLead(){let{layoutId:e}=this.options;return e?this.getStack()?.prevLead:void 0}getStack(){let{layoutId:e}=this.options;if(e)return this.root.sharedNodes.get(e)}promote({needsReset:e,transition:t,preserveFollowOpacity:n}={}){let r=this.getStack();r&&r.promote(this,n),e&&(this.projectionDelta=void 0,this.needsReset=!0),t&&this.setOptions({transition:t})}relegate(){let e=this.getStack();return e?e.relegate(this):!1}resetSkewAndRotation(){let{visualElement:e}=this.options;if(!e)return;let t=!1,{latestValues:n}=e;if((n.z||n.rotate||n.rotateX||n.rotateY||n.rotateZ||n.skewX||n.skewY)&&(t=!0),!t)return;let r={};n.z&&_s(`z`,e,r,this.animationValues);for(let t=0;t<ms.length;t++)_s(`rotate${ms[t]}`,e,r,this.animationValues),_s(`skew${ms[t]}`,e,r,this.animationValues);e.render();for(let t in r)e.setStaticValue(t,r[t]),this.animationValues&&(this.animationValues[t]=r[t]);e.scheduleRender()}applyProjectionStyles(e,t){if(!this.instance||this.isSVG)return;if(!this.isVisible){e.visibility=`hidden`;return}let n=this.getTransformTemplate();if(this.needsReset){this.needsReset=!1,e.visibility=``,e.opacity=``,e.pointerEvents=No(t?.pointerEvents)||``,e.transform=n?n(this.latestValues,``):`none`;return}let r=this.getLead();if(!this.projectionDelta||!this.layout||!r.target){this.options.layoutId&&(e.opacity=this.latestValues.opacity===void 0?1:this.latestValues.opacity,e.pointerEvents=No(t?.pointerEvents)||``),this.hasProjected&&!_i(this.latestValues)&&(e.transform=n?n({},``):`none`,this.hasProjected=!1);return}e.visibility=``;let i=r.animationValues||r.latestValues;this.applyTransformsToTarget();let a=ls(this.projectionDeltaWithTransform,this.treeScale,i);n&&(a=n(i,a)),e.transform=a;let{x:o,y:s}=this.projectionDelta;e.transformOrigin=`${o.origin*100}% ${s.origin*100}% 0`,r.animationValues?e.opacity=r===this?i.opacity??this.latestValues.opacity??1:this.preserveOpacity?this.latestValues.opacity:i.opacityExit:e.opacity=r===this?i.opacity===void 0?``:i.opacity:i.opacityExit===void 0?0:i.opacityExit;for(let t in Ia){if(i[t]===void 0)continue;let{correct:n,applyTo:o,isCSSVariable:s}=Ia[t],c=a===`none`?i[t]:n(i[t],r);if(o){let t=o.length;for(let n=0;n<t;n++)e[o[n]]=c}else s?this.options.visualElement.renderState.vars[t]=c:e[t]=c}this.options.layoutId&&(e.pointerEvents=r===this?No(t?.pointerEvents)||``:`none`)}clearSnapshot(){this.resumeFrom=this.snapshot=void 0}resetTree(){this.root.nodes.forEach(e=>e.currentAnimation?.stop()),this.root.nodes.forEach(Ts),this.root.sharedNodes.clear()}}}function bs(e){e.updateLayout()}function xs(e){let t=e.resumeFrom?.snapshot||e.snapshot;if(e.isLead()&&e.layout&&t&&e.hasListeners(`didUpdate`)){let{layoutBox:n,measuredBox:r}=e.layout,{animationType:i}=e.options,a=t.source!==e.layout.source;if(i===`size`)jo(e=>{let r=a?t.measuredBox[e]:t.layoutBox[e],i=K(r);r.min=n[e].min,r.max=r.min+i});else if(i===`x`||i===`y`){let e=i===`x`?`y`:`x`;Ko(a?t.measuredBox[e]:t.layoutBox[e],n[e])}else Ws(i,t.layoutBox,n)&&jo(r=>{let i=a?t.measuredBox[r]:t.layoutBox[r],o=K(n[r]);i.max=i.min+o,e.relativeTarget&&!e.currentAnimation&&(e.isProjectionDirty=!0,e.relativeTarget[r].max=e.relativeTarget[r].min+o)});let o=ra();Eo(o,n,t.layoutBox);let s=ra();a?Eo(s,e.applyTransform(r,!0),t.measuredBox):Eo(s,n,t.layoutBox);let c=!ts(o),l=!1;if(!e.resumeFrom){let r=e.getClosestProjectingParent();if(r&&!r.resumeFrom){let{snapshot:i,layout:a}=r;if(i&&a){let o=e.options.layoutAnchor||void 0,s=G();Ao(s,t.layoutBox,i.layoutBox,o);let c=G();Ao(c,n,a.layoutBox,o),as(s,c)||(l=!0),r.options.layoutRoot&&(e.relativeTarget=c,e.relativeTargetOrigin=s,e.relativeParent=r)}}}e.notifyListeners(`didUpdate`,{layout:n,snapshot:t,delta:s,layoutDelta:o,hasLayoutChanged:c,hasRelativeLayoutChanged:l})}else if(e.isLead()){let{onExitComplete:t}=e.options;t&&t()}e.options.transition=void 0}function Ss(e){P.value&&ps.nodes++,e.parent&&(e.isProjecting()||(e.isProjectionDirty=e.parent.isProjectionDirty),e.isSharedProjectionDirty||=!!(e.isProjectionDirty||e.parent.isProjectionDirty||e.parent.isSharedProjectionDirty),e.isTransformDirty||=e.parent.isTransformDirty)}function Cs(e){e.isProjectionDirty=e.isSharedProjectionDirty=e.isTransformDirty=!1}function ws(e){e.clearSnapshot()}function Ts(e){e.clearMeasurements()}function Es(e){e.isLayoutDirty=!0,e.updateLayout()}function Ds(e){e.isLayoutDirty=!1}function Os(e){e.isAnimationBlocked&&e.layout&&!e.isLayoutDirty&&(e.snapshot=e.layout,e.isLayoutDirty=!0)}function ks(e){let{visualElement:t}=e.options;t&&t.getProps().onBeforeLayoutMeasure&&t.notify(`BeforeLayoutMeasure`),e.resetTransform()}function As(e){e.finishAnimation(),e.targetDelta=e.relativeTarget=e.target=void 0,e.isProjectionDirty=!0}function js(e){e.resolveTargetDelta()}function Ms(e){e.calcProjection()}function Ns(e){e.resetSkewAndRotation()}function Ps(e){e.removeLeadSnapshot()}function Fs(e,t,n){e.translate=V(t.translate,0,n),e.scale=V(t.scale,1,n),e.origin=t.origin,e.originPoint=t.originPoint}function Is(e,t,n,r){e.min=V(t.min,n.min,r),e.max=V(t.max,n.max,r)}function Ls(e,t,n,r){Is(e.x,t.x,n.x,r),Is(e.y,t.y,n.y,r)}function Rs(e){return e.animationValues&&e.animationValues.opacityExit!==void 0}var zs={duration:.45,ease:[.4,0,.1,1]},Bs=e=>typeof navigator<`u`&&navigator.userAgent&&navigator.userAgent.toLowerCase().includes(e),Vs=Bs(`applewebkit/`)&&!Bs(`chrome/`)?Math.round:h;function Hs(e){e.min=Vs(e.min),e.max=Vs(e.max)}function Us(e){Hs(e.x),Hs(e.y)}function Ws(e,t,n){return e===`position`||e===`preserve-aspect`&&!wo(os(t),os(n),.2)}function Gs(e){return e!==e.root&&e.scroll?.wasRoot}var Ks=ys({attachResizeListener:(e,t)=>Mo(e,`resize`,t),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body?.scrollLeft||0,y:document.documentElement.scrollTop||document.body?.scrollTop||0}),checkIsScrollRoot:()=>!0}),qs={current:void 0},Js=ys({measureScroll:e=>({x:e.scrollLeft,y:e.scrollTop}),defaultParent:()=>{if(!qs.current){let e=new Ks({});e.mount(window),e.setOptions({layoutScroll:!0}),qs.current=e}return qs.current},resetTransform:(e,t)=>{e.style.transform=t===void 0?`none`:t},checkIsScrollRoot:e=>window.getComputedStyle(e).position===`fixed`});function Ys(e){var t=Object.create(null);return function(n){return t[n]===void 0&&(t[n]=e(n)),t[n]}}var Xs=e((()=>{})),Zs=t({default:()=>$s}),Qs,$s,ec=e((()=>{Xs(),Qs=/^((children|dangerouslySetInnerHTML|key|ref|autoFocus|defaultValue|defaultChecked|innerHTML|suppressContentEditableWarning|suppressHydrationWarning|valueLink|abbr|accept|acceptCharset|accessKey|action|allow|allowUserMedia|allowPaymentRequest|allowFullScreen|allowTransparency|alt|async|autoComplete|autoPlay|capture|cellPadding|cellSpacing|challenge|charSet|checked|cite|classID|className|cols|colSpan|content|contentEditable|contextMenu|controls|controlsList|coords|crossOrigin|data|dateTime|decoding|default|defer|dir|disabled|disablePictureInPicture|disableRemotePlayback|download|draggable|encType|enterKeyHint|fetchpriority|fetchPriority|form|formAction|formEncType|formMethod|formNoValidate|formTarget|frameBorder|headers|height|hidden|high|href|hrefLang|htmlFor|httpEquiv|id|inputMode|integrity|is|keyParams|keyType|kind|label|lang|list|loading|loop|low|marginHeight|marginWidth|max|maxLength|media|mediaGroup|method|min|minLength|multiple|muted|name|nonce|noValidate|open|optimum|pattern|placeholder|playsInline|poster|preload|profile|radioGroup|readOnly|referrerPolicy|rel|required|reversed|role|rows|rowSpan|sandbox|scope|scoped|scrolling|seamless|selected|shape|size|sizes|slot|span|spellCheck|src|srcDoc|srcLang|srcSet|start|step|style|summary|tabIndex|target|title|translate|type|useMap|value|width|wmode|wrap|about|datatype|inlist|prefix|property|resource|typeof|vocab|autoCapitalize|autoCorrect|autoSave|color|incremental|fallback|inert|itemProp|itemScope|itemType|itemID|itemRef|on|option|results|security|unselectable|accentHeight|accumulate|additive|alignmentBaseline|allowReorder|alphabetic|amplitude|arabicForm|ascent|attributeName|attributeType|autoReverse|azimuth|baseFrequency|baselineShift|baseProfile|bbox|begin|bias|by|calcMode|capHeight|clip|clipPathUnits|clipPath|clipRule|colorInterpolation|colorInterpolationFilters|colorProfile|colorRendering|contentScriptType|contentStyleType|cursor|cx|cy|d|decelerate|descent|diffuseConstant|direction|display|divisor|dominantBaseline|dur|dx|dy|edgeMode|elevation|enableBackground|end|exponent|externalResourcesRequired|fill|fillOpacity|fillRule|filter|filterRes|filterUnits|floodColor|floodOpacity|focusable|fontFamily|fontSize|fontSizeAdjust|fontStretch|fontStyle|fontVariant|fontWeight|format|from|fr|fx|fy|g1|g2|glyphName|glyphOrientationHorizontal|glyphOrientationVertical|glyphRef|gradientTransform|gradientUnits|hanging|horizAdvX|horizOriginX|ideographic|imageRendering|in|in2|intercept|k|k1|k2|k3|k4|kernelMatrix|kernelUnitLength|kerning|keyPoints|keySplines|keyTimes|lengthAdjust|letterSpacing|lightingColor|limitingConeAngle|local|markerEnd|markerMid|markerStart|markerHeight|markerUnits|markerWidth|mask|maskContentUnits|maskUnits|mathematical|mode|numOctaves|offset|opacity|operator|order|orient|orientation|origin|overflow|overlinePosition|overlineThickness|panose1|paintOrder|pathLength|patternContentUnits|patternTransform|patternUnits|pointerEvents|points|pointsAtX|pointsAtY|pointsAtZ|preserveAlpha|preserveAspectRatio|primitiveUnits|r|radius|refX|refY|renderingIntent|repeatCount|repeatDur|requiredExtensions|requiredFeatures|restart|result|rotate|rx|ry|scale|seed|shapeRendering|slope|spacing|specularConstant|specularExponent|speed|spreadMethod|startOffset|stdDeviation|stemh|stemv|stitchTiles|stopColor|stopOpacity|strikethroughPosition|strikethroughThickness|string|stroke|strokeDasharray|strokeDashoffset|strokeLinecap|strokeLinejoin|strokeMiterlimit|strokeOpacity|strokeWidth|surfaceScale|systemLanguage|tableValues|targetX|targetY|textAnchor|textDecoration|textRendering|textLength|to|transform|u1|u2|underlinePosition|underlineThickness|unicode|unicodeBidi|unicodeRange|unitsPerEm|vAlphabetic|vHanging|vIdeographic|vMathematical|values|vectorEffect|version|vertAdvY|vertOriginX|vertOriginY|viewBox|viewTarget|visibility|widths|wordSpacing|writingMode|x|xHeight|x1|x2|xChannelSelector|xlinkActuate|xlinkArcrole|xlinkHref|xlinkRole|xlinkShow|xlinkTitle|xlinkType|xmlBase|xmlns|xmlnsXlink|xmlLang|xmlSpace|y|y1|y2|yChannelSelector|z|zoomAndPan|for|class|autofocus)|(([Dd][Aa][Tt][Aa]|[Aa][Rr][Ii][Aa]|x)-.*))$/,$s=Ys(function(e){return Qs.test(e)||e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)<91})})),tc={data:``},nc=e=>{if(typeof window==`object`){let t=(e?e.querySelector(`#_goober`):window._goober)||Object.assign(document.createElement(`style`),{innerHTML:` `,id:`_goober`});return t.nonce=window.__nonce__,t.parentNode||(e||document.head).appendChild(t),t.firstChild}return e||tc},rc=/(?:([\u0080-\uFFFF\w-%@]+) *:? *([^{;]+?);|([^;}{]*?) *{)|(}\s*)/g,ic=/\/\*[^]*?\*\/| +/g,ac=/\n+/g,oc=(e,t)=>{let n=``,r=``,i=``;for(let a in e){let o=e[a];a[0]==`@`?a[1]==`i`?n=a+` `+o+`;`:r+=a[1]==`f`?oc(o,a):a+`{`+oc(o,a[1]==`k`?``:t)+`}`:typeof o==`object`?r+=oc(o,t?t.replace(/([^,])+/g,e=>a.replace(/([^,]*:\S+\([^)]*\))|([^,])+/g,t=>/&/.test(t)?t.replace(/&/g,e):e?e+` `+t:t)):a):o!=null&&(a=/^--/.test(a)?a:a.replace(/[A-Z]/g,`-$&`).toLowerCase(),i+=oc.p?oc.p(a,o):a+`:`+o+`;`)}return n+(t&&i?t+`{`+i+`}`:i)+r},sc={},cc=e=>{if(typeof e==`object`){let t=``;for(let n in e)t+=n+cc(e[n]);return t}return e},lc=(e,t,n,r,i)=>{let a=cc(e),o=sc[a]||(sc[a]=(e=>{let t=0,n=11;for(;t<e.length;)n=101*n+e.charCodeAt(t++)>>>0;return`go`+n})(a));if(!sc[o]){let t=a===e?(e=>{let t,n,r=[{}];for(;t=rc.exec(e.replace(ic,``));)t[4]?r.shift():t[3]?(n=t[3].replace(ac,` `).trim(),r.unshift(r[0][n]=r[0][n]||{})):r[0][t[1]]=t[2].replace(ac,` `).trim();return r[0]})(e):e;sc[o]=oc(i?{[`@keyframes `+o]:t}:t,n?``:`.`+o)}let s=n&&sc.g?sc.g:null;return n&&(sc.g=sc[o]),((e,t,n,r)=>{r?t.data=t.data.replace(r,e):t.data.indexOf(e)===-1&&(t.data=n?e+t.data:t.data+e)})(sc[o],t,r,s),o},uc=(e,t,n)=>e.reduce((e,r,i)=>{let a=t[i];if(a&&a.call){let e=a(n),t=e&&e.props&&e.props.className||/^go/.test(e)&&e;a=t?`.`+t:e&&typeof e==`object`?e.props?``:oc(e,``):!1===e?``:e}return e+r+(a??``)},``);function dc(e){let t=this||{},n=e.call?e(t.p):e;return lc(n.unshift?n.raw?uc(n,[].slice.call(arguments,1),t.p):n.reduce((e,n)=>Object.assign(e,n&&n.call?n(t.p):n),{}):n,nc(t.target),t.g,t.o,t.k)}var fc,pc,mc;dc.bind({g:1});var hc=dc.bind({k:1});function gc(e,t,n,r){oc.p=t,fc=e,pc=n,mc=r}function _c(e,t){let n=this||{};return function(){let r=arguments;function i(a,o){let s=Object.assign({},a),c=s.className||i.className;n.p=Object.assign({theme:pc&&pc()},s),n.o=/ *go\d+/.test(c),s.className=dc.apply(n,r)+(c?` `+c:``),t&&(s.ref=o);let l=e;return e[0]&&(l=s.as||e,delete s.as),mc&&l[0]&&mc(s),fc(l,s)}return t?t(i):i}}function vc(e){var t,n,r=``;if(typeof e==`string`||typeof e==`number`)r+=e;else if(typeof e==`object`)if(Array.isArray(e)){var i=e.length;for(t=0;t<i;t++)e[t]&&(n=vc(e[t]))&&(r&&(r+=` `),r+=n)}else for(n in e)e[n]&&(r&&(r+=` `),r+=n);return r}function yc(){for(var e,t,n=0,r=``,i=arguments.length;n<i;n++)(e=arguments[n])&&(t=vc(e))&&(r&&(r+=` `),r+=t);return r}var bc=(e,t)=>{let n=Array(e.length+t.length);for(let t=0;t<e.length;t++)n[t]=e[t];for(let r=0;r<t.length;r++)n[e.length+r]=t[r];return n},xc=(e,t)=>({classGroupId:e,validator:t}),Sc=(e=new Map,t=null,n)=>({nextPart:e,validators:t,classGroupId:n}),Cc=`-`,wc=[],Tc=`arbitrary..`,Ec=e=>{let t=kc(e),{conflictingClassGroups:n,conflictingClassGroupModifiers:r}=e;return{getClassGroupId:e=>{if(e.startsWith(`[`)&&e.endsWith(`]`))return Oc(e);let n=e.split(Cc);return Dc(n,+(n[0]===``&&n.length>1),t)},getConflictingClassGroupIds:(e,t)=>{if(t){let t=r[e],i=n[e];return t?i?bc(i,t):t:i||wc}return n[e]||wc}}},Dc=(e,t,n)=>{if(e.length-t===0)return n.classGroupId;let r=e[t],i=n.nextPart.get(r);if(i){let n=Dc(e,t+1,i);if(n)return n}let a=n.validators;if(a===null)return;let o=t===0?e.join(Cc):e.slice(t).join(Cc),s=a.length;for(let e=0;e<s;e++){let t=a[e];if(t.validator(o))return t.classGroupId}},Oc=e=>e.slice(1,-1).indexOf(`:`)===-1?void 0:(()=>{let t=e.slice(1,-1),n=t.indexOf(`:`),r=t.slice(0,n);return r?Tc+r:void 0})(),kc=e=>{let{theme:t,classGroups:n}=e;return Ac(n,t)},Ac=(e,t)=>{let n=Sc();for(let r in e){let i=e[r];jc(i,n,r,t)}return n},jc=(e,t,n,r)=>{let i=e.length;for(let a=0;a<i;a++){let i=e[a];Mc(i,t,n,r)}},Mc=(e,t,n,r)=>{if(typeof e==`string`){Nc(e,t,n);return}if(typeof e==`function`){Pc(e,t,n,r);return}Fc(e,t,n,r)},Nc=(e,t,n)=>{let r=e===``?t:Ic(t,e);r.classGroupId=n},Pc=(e,t,n,r)=>{if(Lc(e)){jc(e(r),t,n,r);return}t.validators===null&&(t.validators=[]),t.validators.push(xc(n,e))},Fc=(e,t,n,r)=>{let i=Object.entries(e),a=i.length;for(let e=0;e<a;e++){let[a,o]=i[e];jc(o,Ic(t,a),n,r)}},Ic=(e,t)=>{let n=e,r=t.split(Cc),i=r.length;for(let e=0;e<i;e++){let t=r[e],i=n.nextPart.get(t);i||(i=Sc(),n.nextPart.set(t,i)),n=i}return n},Lc=e=>`isThemeGetter`in e&&e.isThemeGetter===!0,Rc=e=>{if(e<1)return{get:()=>void 0,set:()=>{}};let t=0,n=Object.create(null),r=Object.create(null),i=(i,a)=>{n[i]=a,t++,t>e&&(t=0,r=n,n=Object.create(null))};return{get(e){let t=n[e];if(t!==void 0)return t;if((t=r[e])!==void 0)return i(e,t),t},set(e,t){e in n?n[e]=t:i(e,t)}}},zc=`!`,Bc=`:`,Vc=[],Hc=(e,t,n,r,i)=>({modifiers:e,hasImportantModifier:t,baseClassName:n,maybePostfixModifierPosition:r,isExternal:i}),Uc=e=>{let{prefix:t,experimentalParseClassName:n}=e,r=e=>{let t=[],n=0,r=0,i=0,a,o=e.length;for(let s=0;s<o;s++){let o=e[s];if(n===0&&r===0){if(o===Bc){t.push(e.slice(i,s)),i=s+1;continue}if(o===`/`){a=s;continue}}o===`[`?n++:o===`]`?n--:o===`(`?r++:o===`)`&&r--}let s=t.length===0?e:e.slice(i),c=s,l=!1;s.endsWith(zc)?(c=s.slice(0,-1),l=!0):s.startsWith(zc)&&(c=s.slice(1),l=!0);let u=a&&a>i?a-i:void 0;return Hc(t,l,c,u)};if(t){let e=t+Bc,n=r;r=t=>t.startsWith(e)?n(t.slice(e.length)):Hc(Vc,!1,t,void 0,!0)}if(n){let e=r;r=t=>n({className:t,parseClassName:e})}return r},Wc=e=>{let t=new Map;return e.orderSensitiveModifiers.forEach((e,n)=>{t.set(e,1e6+n)}),e=>{let n=[],r=[];for(let i=0;i<e.length;i++){let a=e[i],o=a[0]===`[`,s=t.has(a);o||s?(r.length>0&&(r.sort(),n.push(...r),r=[]),n.push(a)):r.push(a)}return r.length>0&&(r.sort(),n.push(...r)),n}},Gc=e=>({cache:Rc(e.cacheSize),parseClassName:Uc(e),sortModifiers:Wc(e),...Ec(e)}),Kc=/\s+/,qc=(e,t)=>{let{parseClassName:n,getClassGroupId:r,getConflictingClassGroupIds:i,sortModifiers:a}=t,o=[],s=e.trim().split(Kc),c=``;for(let e=s.length-1;e>=0;--e){let t=s[e],{isExternal:l,modifiers:u,hasImportantModifier:d,baseClassName:f,maybePostfixModifierPosition:p}=n(t);if(l){c=t+(c.length>0?` `+c:c);continue}let m=!!p,h=r(m?f.substring(0,p):f);if(!h){if(!m){c=t+(c.length>0?` `+c:c);continue}if(h=r(f),!h){c=t+(c.length>0?` `+c:c);continue}m=!1}let g=u.length===0?``:u.length===1?u[0]:a(u).join(`:`),_=d?g+zc:g,v=_+h;if(o.indexOf(v)>-1)continue;o.push(v);let y=i(h,m);for(let e=0;e<y.length;++e){let t=y[e];o.push(_+t)}c=t+(c.length>0?` `+c:c)}return c},Jc=(...e)=>{let t=0,n,r,i=``;for(;t<e.length;)(n=e[t++])&&(r=Yc(n))&&(i&&(i+=` `),i+=r);return i},Yc=e=>{if(typeof e==`string`)return e;let t,n=``;for(let r=0;r<e.length;r++)e[r]&&(t=Yc(e[r]))&&(n&&(n+=` `),n+=t);return n},Xc=(e,...t)=>{let n,r,i,a,o=o=>(n=Gc(t.reduce((e,t)=>t(e),e())),r=n.cache.get,i=n.cache.set,a=s,s(o)),s=e=>{let t=r(e);if(t)return t;let a=qc(e,n);return i(e,a),a};return a=o,(...e)=>a(Jc(...e))},Zc=[],J=e=>{let t=t=>t[e]||Zc;return t.isThemeGetter=!0,t},Qc=/^\[(?:(\w[\w-]*):)?(.+)\]$/i,$c=/^\((?:(\w[\w-]*):)?(.+)\)$/i,el=/^\d+(?:\.\d+)?\/\d+(?:\.\d+)?$/,tl=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,nl=/\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/,rl=/^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/,il=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,al=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,ol=e=>el.test(e),Y=e=>!!e&&!Number.isNaN(Number(e)),sl=e=>!!e&&Number.isInteger(Number(e)),cl=e=>e.endsWith(`%`)&&Y(e.slice(0,-1)),ll=e=>tl.test(e),ul=()=>!0,dl=e=>nl.test(e)&&!rl.test(e),fl=()=>!1,pl=e=>il.test(e),ml=e=>al.test(e),hl=e=>!X(e)&&!Z(e),gl=e=>jl(e,Fl,fl),X=e=>Qc.test(e),_l=e=>jl(e,Il,dl),vl=e=>jl(e,Ll,Y),yl=e=>jl(e,zl,ul),bl=e=>jl(e,Rl,fl),xl=e=>jl(e,Nl,fl),Sl=e=>jl(e,Pl,ml),Cl=e=>jl(e,Bl,pl),Z=e=>$c.test(e),wl=e=>Ml(e,Il),Tl=e=>Ml(e,Rl),El=e=>Ml(e,Nl),Dl=e=>Ml(e,Fl),Ol=e=>Ml(e,Pl),kl=e=>Ml(e,Bl,!0),Al=e=>Ml(e,zl,!0),jl=(e,t,n)=>{let r=Qc.exec(e);return r?r[1]?t(r[1]):n(r[2]):!1},Ml=(e,t,n=!1)=>{let r=$c.exec(e);return r?r[1]?t(r[1]):n:!1},Nl=e=>e===`position`||e===`percentage`,Pl=e=>e===`image`||e===`url`,Fl=e=>e===`length`||e===`size`||e===`bg-size`,Il=e=>e===`length`,Ll=e=>e===`number`,Rl=e=>e===`family-name`,zl=e=>e===`number`||e===`weight`,Bl=e=>e===`shadow`,Vl=Xc(()=>{let e=J(`color`),t=J(`font`),n=J(`text`),r=J(`font-weight`),i=J(`tracking`),a=J(`leading`),o=J(`breakpoint`),s=J(`container`),c=J(`spacing`),l=J(`radius`),u=J(`shadow`),d=J(`inset-shadow`),f=J(`text-shadow`),p=J(`drop-shadow`),m=J(`blur`),h=J(`perspective`),g=J(`aspect`),_=J(`ease`),v=J(`animate`),y=()=>[`auto`,`avoid`,`all`,`avoid-page`,`page`,`left`,`right`,`column`],b=()=>[`center`,`top`,`bottom`,`left`,`right`,`top-left`,`left-top`,`top-right`,`right-top`,`bottom-right`,`right-bottom`,`bottom-left`,`left-bottom`],x=()=>[...b(),Z,X],S=()=>[`auto`,`hidden`,`clip`,`visible`,`scroll`],C=()=>[`auto`,`contain`,`none`],w=()=>[Z,X,c],T=()=>[ol,`full`,`auto`,...w()],ee=()=>[sl,`none`,`subgrid`,Z,X],E=()=>[`auto`,{span:[`full`,sl,Z,X]},sl,Z,X],D=()=>[sl,`auto`,Z,X],te=()=>[`auto`,`min`,`max`,`fr`,Z,X],ne=()=>[`start`,`end`,`center`,`between`,`around`,`evenly`,`stretch`,`baseline`,`center-safe`,`end-safe`],O=()=>[`start`,`end`,`center`,`stretch`,`center-safe`,`end-safe`],k=()=>[`auto`,...w()],re=()=>[ol,`auto`,`full`,`dvw`,`dvh`,`lvw`,`lvh`,`svw`,`svh`,`min`,`max`,`fit`,...w()],ie=()=>[ol,`screen`,`full`,`dvw`,`lvw`,`svw`,`min`,`max`,`fit`,...w()],ae=()=>[ol,`screen`,`full`,`lh`,`dvh`,`lvh`,`svh`,`min`,`max`,`fit`,...w()],A=()=>[e,Z,X],oe=()=>[...b(),El,xl,{position:[Z,X]}],se=()=>[`no-repeat`,{repeat:[``,`x`,`y`,`space`,`round`]}],ce=()=>[`auto`,`cover`,`contain`,Dl,gl,{size:[Z,X]}],le=()=>[cl,wl,_l],j=()=>[``,`none`,`full`,l,Z,X],M=()=>[``,Y,wl,_l],ue=()=>[`solid`,`dashed`,`dotted`,`double`],de=()=>[`normal`,`multiply`,`screen`,`overlay`,`darken`,`lighten`,`color-dodge`,`color-burn`,`hard-light`,`soft-light`,`difference`,`exclusion`,`hue`,`saturation`,`color`,`luminosity`],N=()=>[Y,cl,El,xl],P=()=>[``,`none`,m,Z,X],fe=()=>[`none`,Y,Z,X],pe=()=>[`none`,Y,Z,X],me=()=>[Y,Z,X],F=()=>[ol,`full`,...w()];return{cacheSize:500,theme:{animate:[`spin`,`ping`,`pulse`,`bounce`],aspect:[`video`],blur:[ll],breakpoint:[ll],color:[ul],container:[ll],"drop-shadow":[ll],ease:[`in`,`out`,`in-out`],font:[hl],"font-weight":[`thin`,`extralight`,`light`,`normal`,`medium`,`semibold`,`bold`,`extrabold`,`black`],"inset-shadow":[ll],leading:[`none`,`tight`,`snug`,`normal`,`relaxed`,`loose`],perspective:[`dramatic`,`near`,`normal`,`midrange`,`distant`,`none`],radius:[ll],shadow:[ll],spacing:[`px`,Y],text:[ll],"text-shadow":[ll],tracking:[`tighter`,`tight`,`normal`,`wide`,`wider`,`widest`]},classGroups:{aspect:[{aspect:[`auto`,`square`,ol,X,Z,g]}],container:[`container`],columns:[{columns:[Y,X,Z,s]}],"break-after":[{"break-after":y()}],"break-before":[{"break-before":y()}],"break-inside":[{"break-inside":[`auto`,`avoid`,`avoid-page`,`avoid-column`]}],"box-decoration":[{"box-decoration":[`slice`,`clone`]}],box:[{box:[`border`,`content`]}],display:[`block`,`inline-block`,`inline`,`flex`,`inline-flex`,`table`,`inline-table`,`table-caption`,`table-cell`,`table-column`,`table-column-group`,`table-footer-group`,`table-header-group`,`table-row-group`,`table-row`,`flow-root`,`grid`,`inline-grid`,`contents`,`list-item`,`hidden`],sr:[`sr-only`,`not-sr-only`],float:[{float:[`right`,`left`,`none`,`start`,`end`]}],clear:[{clear:[`left`,`right`,`both`,`none`,`start`,`end`]}],isolation:[`isolate`,`isolation-auto`],"object-fit":[{object:[`contain`,`cover`,`fill`,`none`,`scale-down`]}],"object-position":[{object:x()}],overflow:[{overflow:S()}],"overflow-x":[{"overflow-x":S()}],"overflow-y":[{"overflow-y":S()}],overscroll:[{overscroll:C()}],"overscroll-x":[{"overscroll-x":C()}],"overscroll-y":[{"overscroll-y":C()}],position:[`static`,`fixed`,`absolute`,`relative`,`sticky`],inset:[{inset:T()}],"inset-x":[{"inset-x":T()}],"inset-y":[{"inset-y":T()}],start:[{"inset-s":T(),start:T()}],end:[{"inset-e":T(),end:T()}],"inset-bs":[{"inset-bs":T()}],"inset-be":[{"inset-be":T()}],top:[{top:T()}],right:[{right:T()}],bottom:[{bottom:T()}],left:[{left:T()}],visibility:[`visible`,`invisible`,`collapse`],z:[{z:[sl,`auto`,Z,X]}],basis:[{basis:[ol,`full`,`auto`,s,...w()]}],"flex-direction":[{flex:[`row`,`row-reverse`,`col`,`col-reverse`]}],"flex-wrap":[{flex:[`nowrap`,`wrap`,`wrap-reverse`]}],flex:[{flex:[Y,ol,`auto`,`initial`,`none`,X]}],grow:[{grow:[``,Y,Z,X]}],shrink:[{shrink:[``,Y,Z,X]}],order:[{order:[sl,`first`,`last`,`none`,Z,X]}],"grid-cols":[{"grid-cols":ee()}],"col-start-end":[{col:E()}],"col-start":[{"col-start":D()}],"col-end":[{"col-end":D()}],"grid-rows":[{"grid-rows":ee()}],"row-start-end":[{row:E()}],"row-start":[{"row-start":D()}],"row-end":[{"row-end":D()}],"grid-flow":[{"grid-flow":[`row`,`col`,`dense`,`row-dense`,`col-dense`]}],"auto-cols":[{"auto-cols":te()}],"auto-rows":[{"auto-rows":te()}],gap:[{gap:w()}],"gap-x":[{"gap-x":w()}],"gap-y":[{"gap-y":w()}],"justify-content":[{justify:[...ne(),`normal`]}],"justify-items":[{"justify-items":[...O(),`normal`]}],"justify-self":[{"justify-self":[`auto`,...O()]}],"align-content":[{content:[`normal`,...ne()]}],"align-items":[{items:[...O(),{baseline:[``,`last`]}]}],"align-self":[{self:[`auto`,...O(),{baseline:[``,`last`]}]}],"place-content":[{"place-content":ne()}],"place-items":[{"place-items":[...O(),`baseline`]}],"place-self":[{"place-self":[`auto`,...O()]}],p:[{p:w()}],px:[{px:w()}],py:[{py:w()}],ps:[{ps:w()}],pe:[{pe:w()}],pbs:[{pbs:w()}],pbe:[{pbe:w()}],pt:[{pt:w()}],pr:[{pr:w()}],pb:[{pb:w()}],pl:[{pl:w()}],m:[{m:k()}],mx:[{mx:k()}],my:[{my:k()}],ms:[{ms:k()}],me:[{me:k()}],mbs:[{mbs:k()}],mbe:[{mbe:k()}],mt:[{mt:k()}],mr:[{mr:k()}],mb:[{mb:k()}],ml:[{ml:k()}],"space-x":[{"space-x":w()}],"space-x-reverse":[`space-x-reverse`],"space-y":[{"space-y":w()}],"space-y-reverse":[`space-y-reverse`],size:[{size:re()}],"inline-size":[{inline:[`auto`,...ie()]}],"min-inline-size":[{"min-inline":[`auto`,...ie()]}],"max-inline-size":[{"max-inline":[`none`,...ie()]}],"block-size":[{block:[`auto`,...ae()]}],"min-block-size":[{"min-block":[`auto`,...ae()]}],"max-block-size":[{"max-block":[`none`,...ae()]}],w:[{w:[s,`screen`,...re()]}],"min-w":[{"min-w":[s,`screen`,`none`,...re()]}],"max-w":[{"max-w":[s,`screen`,`none`,`prose`,{screen:[o]},...re()]}],h:[{h:[`screen`,`lh`,...re()]}],"min-h":[{"min-h":[`screen`,`lh`,`none`,...re()]}],"max-h":[{"max-h":[`screen`,`lh`,...re()]}],"font-size":[{text:[`base`,n,wl,_l]}],"font-smoothing":[`antialiased`,`subpixel-antialiased`],"font-style":[`italic`,`not-italic`],"font-weight":[{font:[r,Al,yl]}],"font-stretch":[{"font-stretch":[`ultra-condensed`,`extra-condensed`,`condensed`,`semi-condensed`,`normal`,`semi-expanded`,`expanded`,`extra-expanded`,`ultra-expanded`,cl,X]}],"font-family":[{font:[Tl,bl,t]}],"font-features":[{"font-features":[X]}],"fvn-normal":[`normal-nums`],"fvn-ordinal":[`ordinal`],"fvn-slashed-zero":[`slashed-zero`],"fvn-figure":[`lining-nums`,`oldstyle-nums`],"fvn-spacing":[`proportional-nums`,`tabular-nums`],"fvn-fraction":[`diagonal-fractions`,`stacked-fractions`],tracking:[{tracking:[i,Z,X]}],"line-clamp":[{"line-clamp":[Y,`none`,Z,vl]}],leading:[{leading:[a,...w()]}],"list-image":[{"list-image":[`none`,Z,X]}],"list-style-position":[{list:[`inside`,`outside`]}],"list-style-type":[{list:[`disc`,`decimal`,`none`,Z,X]}],"text-alignment":[{text:[`left`,`center`,`right`,`justify`,`start`,`end`]}],"placeholder-color":[{placeholder:A()}],"text-color":[{text:A()}],"text-decoration":[`underline`,`overline`,`line-through`,`no-underline`],"text-decoration-style":[{decoration:[...ue(),`wavy`]}],"text-decoration-thickness":[{decoration:[Y,`from-font`,`auto`,Z,_l]}],"text-decoration-color":[{decoration:A()}],"underline-offset":[{"underline-offset":[Y,`auto`,Z,X]}],"text-transform":[`uppercase`,`lowercase`,`capitalize`,`normal-case`],"text-overflow":[`truncate`,`text-ellipsis`,`text-clip`],"text-wrap":[{text:[`wrap`,`nowrap`,`balance`,`pretty`]}],indent:[{indent:w()}],"vertical-align":[{align:[`baseline`,`top`,`middle`,`bottom`,`text-top`,`text-bottom`,`sub`,`super`,Z,X]}],whitespace:[{whitespace:[`normal`,`nowrap`,`pre`,`pre-line`,`pre-wrap`,`break-spaces`]}],break:[{break:[`normal`,`words`,`all`,`keep`]}],wrap:[{wrap:[`break-word`,`anywhere`,`normal`]}],hyphens:[{hyphens:[`none`,`manual`,`auto`]}],content:[{content:[`none`,Z,X]}],"bg-attachment":[{bg:[`fixed`,`local`,`scroll`]}],"bg-clip":[{"bg-clip":[`border`,`padding`,`content`,`text`]}],"bg-origin":[{"bg-origin":[`border`,`padding`,`content`]}],"bg-position":[{bg:oe()}],"bg-repeat":[{bg:se()}],"bg-size":[{bg:ce()}],"bg-image":[{bg:[`none`,{linear:[{to:[`t`,`tr`,`r`,`br`,`b`,`bl`,`l`,`tl`]},sl,Z,X],radial:[``,Z,X],conic:[sl,Z,X]},Ol,Sl]}],"bg-color":[{bg:A()}],"gradient-from-pos":[{from:le()}],"gradient-via-pos":[{via:le()}],"gradient-to-pos":[{to:le()}],"gradient-from":[{from:A()}],"gradient-via":[{via:A()}],"gradient-to":[{to:A()}],rounded:[{rounded:j()}],"rounded-s":[{"rounded-s":j()}],"rounded-e":[{"rounded-e":j()}],"rounded-t":[{"rounded-t":j()}],"rounded-r":[{"rounded-r":j()}],"rounded-b":[{"rounded-b":j()}],"rounded-l":[{"rounded-l":j()}],"rounded-ss":[{"rounded-ss":j()}],"rounded-se":[{"rounded-se":j()}],"rounded-ee":[{"rounded-ee":j()}],"rounded-es":[{"rounded-es":j()}],"rounded-tl":[{"rounded-tl":j()}],"rounded-tr":[{"rounded-tr":j()}],"rounded-br":[{"rounded-br":j()}],"rounded-bl":[{"rounded-bl":j()}],"border-w":[{border:M()}],"border-w-x":[{"border-x":M()}],"border-w-y":[{"border-y":M()}],"border-w-s":[{"border-s":M()}],"border-w-e":[{"border-e":M()}],"border-w-bs":[{"border-bs":M()}],"border-w-be":[{"border-be":M()}],"border-w-t":[{"border-t":M()}],"border-w-r":[{"border-r":M()}],"border-w-b":[{"border-b":M()}],"border-w-l":[{"border-l":M()}],"divide-x":[{"divide-x":M()}],"divide-x-reverse":[`divide-x-reverse`],"divide-y":[{"divide-y":M()}],"divide-y-reverse":[`divide-y-reverse`],"border-style":[{border:[...ue(),`hidden`,`none`]}],"divide-style":[{divide:[...ue(),`hidden`,`none`]}],"border-color":[{border:A()}],"border-color-x":[{"border-x":A()}],"border-color-y":[{"border-y":A()}],"border-color-s":[{"border-s":A()}],"border-color-e":[{"border-e":A()}],"border-color-bs":[{"border-bs":A()}],"border-color-be":[{"border-be":A()}],"border-color-t":[{"border-t":A()}],"border-color-r":[{"border-r":A()}],"border-color-b":[{"border-b":A()}],"border-color-l":[{"border-l":A()}],"divide-color":[{divide:A()}],"outline-style":[{outline:[...ue(),`none`,`hidden`]}],"outline-offset":[{"outline-offset":[Y,Z,X]}],"outline-w":[{outline:[``,Y,wl,_l]}],"outline-color":[{outline:A()}],shadow:[{shadow:[``,`none`,u,kl,Cl]}],"shadow-color":[{shadow:A()}],"inset-shadow":[{"inset-shadow":[`none`,d,kl,Cl]}],"inset-shadow-color":[{"inset-shadow":A()}],"ring-w":[{ring:M()}],"ring-w-inset":[`ring-inset`],"ring-color":[{ring:A()}],"ring-offset-w":[{"ring-offset":[Y,_l]}],"ring-offset-color":[{"ring-offset":A()}],"inset-ring-w":[{"inset-ring":M()}],"inset-ring-color":[{"inset-ring":A()}],"text-shadow":[{"text-shadow":[`none`,f,kl,Cl]}],"text-shadow-color":[{"text-shadow":A()}],opacity:[{opacity:[Y,Z,X]}],"mix-blend":[{"mix-blend":[...de(),`plus-darker`,`plus-lighter`]}],"bg-blend":[{"bg-blend":de()}],"mask-clip":[{"mask-clip":[`border`,`padding`,`content`,`fill`,`stroke`,`view`]},`mask-no-clip`],"mask-composite":[{mask:[`add`,`subtract`,`intersect`,`exclude`]}],"mask-image-linear-pos":[{"mask-linear":[Y]}],"mask-image-linear-from-pos":[{"mask-linear-from":N()}],"mask-image-linear-to-pos":[{"mask-linear-to":N()}],"mask-image-linear-from-color":[{"mask-linear-from":A()}],"mask-image-linear-to-color":[{"mask-linear-to":A()}],"mask-image-t-from-pos":[{"mask-t-from":N()}],"mask-image-t-to-pos":[{"mask-t-to":N()}],"mask-image-t-from-color":[{"mask-t-from":A()}],"mask-image-t-to-color":[{"mask-t-to":A()}],"mask-image-r-from-pos":[{"mask-r-from":N()}],"mask-image-r-to-pos":[{"mask-r-to":N()}],"mask-image-r-from-color":[{"mask-r-from":A()}],"mask-image-r-to-color":[{"mask-r-to":A()}],"mask-image-b-from-pos":[{"mask-b-from":N()}],"mask-image-b-to-pos":[{"mask-b-to":N()}],"mask-image-b-from-color":[{"mask-b-from":A()}],"mask-image-b-to-color":[{"mask-b-to":A()}],"mask-image-l-from-pos":[{"mask-l-from":N()}],"mask-image-l-to-pos":[{"mask-l-to":N()}],"mask-image-l-from-color":[{"mask-l-from":A()}],"mask-image-l-to-color":[{"mask-l-to":A()}],"mask-image-x-from-pos":[{"mask-x-from":N()}],"mask-image-x-to-pos":[{"mask-x-to":N()}],"mask-image-x-from-color":[{"mask-x-from":A()}],"mask-image-x-to-color":[{"mask-x-to":A()}],"mask-image-y-from-pos":[{"mask-y-from":N()}],"mask-image-y-to-pos":[{"mask-y-to":N()}],"mask-image-y-from-color":[{"mask-y-from":A()}],"mask-image-y-to-color":[{"mask-y-to":A()}],"mask-image-radial":[{"mask-radial":[Z,X]}],"mask-image-radial-from-pos":[{"mask-radial-from":N()}],"mask-image-radial-to-pos":[{"mask-radial-to":N()}],"mask-image-radial-from-color":[{"mask-radial-from":A()}],"mask-image-radial-to-color":[{"mask-radial-to":A()}],"mask-image-radial-shape":[{"mask-radial":[`circle`,`ellipse`]}],"mask-image-radial-size":[{"mask-radial":[{closest:[`side`,`corner`],farthest:[`side`,`corner`]}]}],"mask-image-radial-pos":[{"mask-radial-at":b()}],"mask-image-conic-pos":[{"mask-conic":[Y]}],"mask-image-conic-from-pos":[{"mask-conic-from":N()}],"mask-image-conic-to-pos":[{"mask-conic-to":N()}],"mask-image-conic-from-color":[{"mask-conic-from":A()}],"mask-image-conic-to-color":[{"mask-conic-to":A()}],"mask-mode":[{mask:[`alpha`,`luminance`,`match`]}],"mask-origin":[{"mask-origin":[`border`,`padding`,`content`,`fill`,`stroke`,`view`]}],"mask-position":[{mask:oe()}],"mask-repeat":[{mask:se()}],"mask-size":[{mask:ce()}],"mask-type":[{"mask-type":[`alpha`,`luminance`]}],"mask-image":[{mask:[`none`,Z,X]}],filter:[{filter:[``,`none`,Z,X]}],blur:[{blur:P()}],brightness:[{brightness:[Y,Z,X]}],contrast:[{contrast:[Y,Z,X]}],"drop-shadow":[{"drop-shadow":[``,`none`,p,kl,Cl]}],"drop-shadow-color":[{"drop-shadow":A()}],grayscale:[{grayscale:[``,Y,Z,X]}],"hue-rotate":[{"hue-rotate":[Y,Z,X]}],invert:[{invert:[``,Y,Z,X]}],saturate:[{saturate:[Y,Z,X]}],sepia:[{sepia:[``,Y,Z,X]}],"backdrop-filter":[{"backdrop-filter":[``,`none`,Z,X]}],"backdrop-blur":[{"backdrop-blur":P()}],"backdrop-brightness":[{"backdrop-brightness":[Y,Z,X]}],"backdrop-contrast":[{"backdrop-contrast":[Y,Z,X]}],"backdrop-grayscale":[{"backdrop-grayscale":[``,Y,Z,X]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[Y,Z,X]}],"backdrop-invert":[{"backdrop-invert":[``,Y,Z,X]}],"backdrop-opacity":[{"backdrop-opacity":[Y,Z,X]}],"backdrop-saturate":[{"backdrop-saturate":[Y,Z,X]}],"backdrop-sepia":[{"backdrop-sepia":[``,Y,Z,X]}],"border-collapse":[{border:[`collapse`,`separate`]}],"border-spacing":[{"border-spacing":w()}],"border-spacing-x":[{"border-spacing-x":w()}],"border-spacing-y":[{"border-spacing-y":w()}],"table-layout":[{table:[`auto`,`fixed`]}],caption:[{caption:[`top`,`bottom`]}],transition:[{transition:[``,`all`,`colors`,`opacity`,`shadow`,`transform`,`none`,Z,X]}],"transition-behavior":[{transition:[`normal`,`discrete`]}],duration:[{duration:[Y,`initial`,Z,X]}],ease:[{ease:[`linear`,`initial`,_,Z,X]}],delay:[{delay:[Y,Z,X]}],animate:[{animate:[`none`,v,Z,X]}],backface:[{backface:[`hidden`,`visible`]}],perspective:[{perspective:[h,Z,X]}],"perspective-origin":[{"perspective-origin":x()}],rotate:[{rotate:fe()}],"rotate-x":[{"rotate-x":fe()}],"rotate-y":[{"rotate-y":fe()}],"rotate-z":[{"rotate-z":fe()}],scale:[{scale:pe()}],"scale-x":[{"scale-x":pe()}],"scale-y":[{"scale-y":pe()}],"scale-z":[{"scale-z":pe()}],"scale-3d":[`scale-3d`],skew:[{skew:me()}],"skew-x":[{"skew-x":me()}],"skew-y":[{"skew-y":me()}],transform:[{transform:[Z,X,``,`none`,`gpu`,`cpu`]}],"transform-origin":[{origin:x()}],"transform-style":[{transform:[`3d`,`flat`]}],translate:[{translate:F()}],"translate-x":[{"translate-x":F()}],"translate-y":[{"translate-y":F()}],"translate-z":[{"translate-z":F()}],"translate-none":[`translate-none`],accent:[{accent:A()}],appearance:[{appearance:[`none`,`auto`]}],"caret-color":[{caret:A()}],"color-scheme":[{scheme:[`normal`,`dark`,`light`,`light-dark`,`only-dark`,`only-light`]}],cursor:[{cursor:[`auto`,`default`,`pointer`,`wait`,`text`,`move`,`help`,`not-allowed`,`none`,`context-menu`,`progress`,`cell`,`crosshair`,`vertical-text`,`alias`,`copy`,`no-drop`,`grab`,`grabbing`,`all-scroll`,`col-resize`,`row-resize`,`n-resize`,`e-resize`,`s-resize`,`w-resize`,`ne-resize`,`nw-resize`,`se-resize`,`sw-resize`,`ew-resize`,`ns-resize`,`nesw-resize`,`nwse-resize`,`zoom-in`,`zoom-out`,Z,X]}],"field-sizing":[{"field-sizing":[`fixed`,`content`]}],"pointer-events":[{"pointer-events":[`auto`,`none`]}],resize:[{resize:[`none`,``,`y`,`x`]}],"scroll-behavior":[{scroll:[`auto`,`smooth`]}],"scroll-m":[{"scroll-m":w()}],"scroll-mx":[{"scroll-mx":w()}],"scroll-my":[{"scroll-my":w()}],"scroll-ms":[{"scroll-ms":w()}],"scroll-me":[{"scroll-me":w()}],"scroll-mbs":[{"scroll-mbs":w()}],"scroll-mbe":[{"scroll-mbe":w()}],"scroll-mt":[{"scroll-mt":w()}],"scroll-mr":[{"scroll-mr":w()}],"scroll-mb":[{"scroll-mb":w()}],"scroll-ml":[{"scroll-ml":w()}],"scroll-p":[{"scroll-p":w()}],"scroll-px":[{"scroll-px":w()}],"scroll-py":[{"scroll-py":w()}],"scroll-ps":[{"scroll-ps":w()}],"scroll-pe":[{"scroll-pe":w()}],"scroll-pbs":[{"scroll-pbs":w()}],"scroll-pbe":[{"scroll-pbe":w()}],"scroll-pt":[{"scroll-pt":w()}],"scroll-pr":[{"scroll-pr":w()}],"scroll-pb":[{"scroll-pb":w()}],"scroll-pl":[{"scroll-pl":w()}],"snap-align":[{snap:[`start`,`end`,`center`,`align-none`]}],"snap-stop":[{snap:[`normal`,`always`]}],"snap-type":[{snap:[`none`,`x`,`y`,`both`]}],"snap-strictness":[{snap:[`mandatory`,`proximity`]}],touch:[{touch:[`auto`,`none`,`manipulation`]}],"touch-x":[{"touch-pan":[`x`,`left`,`right`]}],"touch-y":[{"touch-pan":[`y`,`up`,`down`]}],"touch-pz":[`touch-pinch-zoom`],select:[{select:[`none`,`text`,`all`,`auto`]}],"will-change":[{"will-change":[`auto`,`scroll`,`contents`,`transform`,Z,X]}],fill:[{fill:[`none`,...A()]}],"stroke-w":[{stroke:[Y,wl,_l,vl]}],stroke:[{stroke:[`none`,...A()]}],"forced-color-adjust":[{"forced-color-adjust":[`auto`,`none`]}]},conflictingClassGroups:{overflow:[`overflow-x`,`overflow-y`],overscroll:[`overscroll-x`,`overscroll-y`],inset:[`inset-x`,`inset-y`,`inset-bs`,`inset-be`,`start`,`end`,`top`,`right`,`bottom`,`left`],"inset-x":[`right`,`left`],"inset-y":[`top`,`bottom`],flex:[`basis`,`grow`,`shrink`],gap:[`gap-x`,`gap-y`],p:[`px`,`py`,`ps`,`pe`,`pbs`,`pbe`,`pt`,`pr`,`pb`,`pl`],px:[`pr`,`pl`],py:[`pt`,`pb`],m:[`mx`,`my`,`ms`,`me`,`mbs`,`mbe`,`mt`,`mr`,`mb`,`ml`],mx:[`mr`,`ml`],my:[`mt`,`mb`],size:[`w`,`h`],"font-size":[`leading`],"fvn-normal":[`fvn-ordinal`,`fvn-slashed-zero`,`fvn-figure`,`fvn-spacing`,`fvn-fraction`],"fvn-ordinal":[`fvn-normal`],"fvn-slashed-zero":[`fvn-normal`],"fvn-figure":[`fvn-normal`],"fvn-spacing":[`fvn-normal`],"fvn-fraction":[`fvn-normal`],"line-clamp":[`display`,`overflow`],rounded:[`rounded-s`,`rounded-e`,`rounded-t`,`rounded-r`,`rounded-b`,`rounded-l`,`rounded-ss`,`rounded-se`,`rounded-ee`,`rounded-es`,`rounded-tl`,`rounded-tr`,`rounded-br`,`rounded-bl`],"rounded-s":[`rounded-ss`,`rounded-es`],"rounded-e":[`rounded-se`,`rounded-ee`],"rounded-t":[`rounded-tl`,`rounded-tr`],"rounded-r":[`rounded-tr`,`rounded-br`],"rounded-b":[`rounded-br`,`rounded-bl`],"rounded-l":[`rounded-tl`,`rounded-bl`],"border-spacing":[`border-spacing-x`,`border-spacing-y`],"border-w":[`border-w-x`,`border-w-y`,`border-w-s`,`border-w-e`,`border-w-bs`,`border-w-be`,`border-w-t`,`border-w-r`,`border-w-b`,`border-w-l`],"border-w-x":[`border-w-r`,`border-w-l`],"border-w-y":[`border-w-t`,`border-w-b`],"border-color":[`border-color-x`,`border-color-y`,`border-color-s`,`border-color-e`,`border-color-bs`,`border-color-be`,`border-color-t`,`border-color-r`,`border-color-b`,`border-color-l`],"border-color-x":[`border-color-r`,`border-color-l`],"border-color-y":[`border-color-t`,`border-color-b`],translate:[`translate-x`,`translate-y`,`translate-none`],"translate-none":[`translate`,`translate-x`,`translate-y`,`translate-z`],"scroll-m":[`scroll-mx`,`scroll-my`,`scroll-ms`,`scroll-me`,`scroll-mbs`,`scroll-mbe`,`scroll-mt`,`scroll-mr`,`scroll-mb`,`scroll-ml`],"scroll-mx":[`scroll-mr`,`scroll-ml`],"scroll-my":[`scroll-mt`,`scroll-mb`],"scroll-p":[`scroll-px`,`scroll-py`,`scroll-ps`,`scroll-pe`,`scroll-pbs`,`scroll-pbe`,`scroll-pt`,`scroll-pr`,`scroll-pb`,`scroll-pl`],"scroll-px":[`scroll-pr`,`scroll-pl`],"scroll-py":[`scroll-pt`,`scroll-pb`],touch:[`touch-x`,`touch-y`,`touch-pz`],"touch-x":[`touch`],"touch-y":[`touch`],"touch-pz":[`touch`]},conflictingClassGroupModifiers:{"font-size":[`leading`]},orderSensitiveModifiers:[`*`,`**`,`after`,`backdrop`,`before`,`details-content`,`file`,`first-letter`,`first-line`,`marker`,`placeholder`,`selection`]}}),Hl=Object.prototype.hasOwnProperty;function Ul(e,t){var n,r;if(e===t)return!0;if(e&&t&&(n=e.constructor)===t.constructor){if(n===Date)return e.getTime()===t.getTime();if(n===RegExp)return e.toString()===t.toString();if(n===Array){if((r=e.length)===t.length)for(;r--&&Ul(e[r],t[r]););return r===-1}if(!n||typeof e==`object`){for(n in r=0,e)if(Hl.call(e,n)&&++r&&!Hl.call(t,n)||!(n in t)||!Ul(e[n],t[n]))return!1;return Object.keys(t).length===r}}return e!==e&&t!==t}var Wl=Symbol.for(`immer-nothing`),Gl=Symbol.for(`immer-draftable`),Q=Symbol.for(`immer-state`);function Kl(e,...t){throw Error(`[Immer] minified error nr: ${e}. Full error at: https://bit.ly/3cXEKWf`)}var $=Object,ql=$.getPrototypeOf,Jl=`constructor`,Yl=`prototype`,Xl=`configurable`,Zl=`enumerable`,Ql=`writable`,$l=`value`,eu=e=>!!e&&!!e[Q];function tu(e){return e?iu(e)||du(e)||!!e[Gl]||!!e[Jl]?.[Gl]||fu(e)||pu(e):!1}var nu=$[Yl][Jl].toString(),ru=new WeakMap;function iu(e){if(!e||!mu(e))return!1;let t=ql(e);if(t===null||t===$[Yl])return!0;let n=$.hasOwnProperty.call(t,Jl)&&t[Jl];if(n===Object)return!0;if(!hu(n))return!1;let r=ru.get(n);return r===void 0&&(r=Function.toString.call(n),ru.set(n,r)),r===nu}function au(e,t,n=!0){ou(e)===0?(n?Reflect.ownKeys(e):$.keys(e)).forEach(n=>{t(n,e[n],e)}):e.forEach((n,r)=>t(r,n,e))}function ou(e){let t=e[Q];return t?t.type_:du(e)?1:fu(e)?2:pu(e)?3:0}var su=(e,t,n=ou(e))=>n===2?e.has(t):$[Yl].hasOwnProperty.call(e,t),cu=(e,t,n=ou(e))=>n===2?e.get(t):e[t],lu=(e,t,n,r=ou(e))=>{r===2?e.set(t,n):r===3?e.add(n):e[t]=n};function uu(e,t){return e===t?e!==0||1/e==1/t:e!==e&&t!==t}var du=Array.isArray,fu=e=>e instanceof Map,pu=e=>e instanceof Set,mu=e=>typeof e==`object`,hu=e=>typeof e==`function`,gu=e=>typeof e==`boolean`;function _u(e){let t=+e;return Number.isInteger(t)&&String(t)===e}var vu=e=>e.copy_||e.base_,yu=e=>e.modified_?e.copy_:e.base_;function bu(e,t){if(fu(e))return new Map(e);if(pu(e))return new Set(e);if(du(e))return Array[Yl].slice.call(e);let n=iu(e);if(t===!0||t===`class_only`&&!n){let t=$.getOwnPropertyDescriptors(e);delete t[Q];let n=Reflect.ownKeys(t);for(let r=0;r<n.length;r++){let i=n[r],a=t[i];a[Ql]===!1&&(a[Ql]=!0,a[Xl]=!0),(a.get||a.set)&&(t[i]={[Xl]:!0,[Ql]:!0,[Zl]:a[Zl],[$l]:e[i]})}return $.create(ql(e),t)}else{let t=ql(e);if(t!==null&&n)return{...e};let r=$.create(t);return $.assign(r,e)}}function xu(e,t=!1){return wu(e)||eu(e)||!tu(e)?e:(ou(e)>1&&$.defineProperties(e,{set:Cu,add:Cu,clear:Cu,delete:Cu}),$.freeze(e),t&&au(e,(e,t)=>{xu(t,!0)},!1),e)}function Su(){Kl(2)}var Cu={[$l]:Su};function wu(e){return e===null||!mu(e)?!0:$.isFrozen(e)}var Tu=`MapSet`,Eu=`Patches`,Du=`ArrayMethods`,Ou={};function ku(e){let t=Ou[e];return t||Kl(0,e),t}var Au=e=>!!Ou[e],ju,Mu=()=>ju,Nu=(e,t)=>({drafts_:[],parent_:e,immer_:t,canAutoFreeze_:!0,unfinalizedDrafts_:0,handledSet_:new Set,processedForPatches_:new Set,mapSetPlugin_:Au(Tu)?ku(Tu):void 0,arrayMethodsPlugin_:Au(Du)?ku(Du):void 0});function Pu(e,t){t&&(e.patchPlugin_=ku(Eu),e.patches_=[],e.inversePatches_=[],e.patchListener_=t)}function Fu(e){Iu(e),e.drafts_.forEach(Ru),e.drafts_=null}function Iu(e){e===ju&&(ju=e.parent_)}var Lu=e=>ju=Nu(ju,e);function Ru(e){let t=e[Q];t.type_===0||t.type_===1?t.revoke_():t.revoked_=!0}function zu(e,t){t.unfinalizedDrafts_=t.drafts_.length;let n=t.drafts_[0];if(e!==void 0&&e!==n){n[Q].modified_&&(Fu(t),Kl(4)),tu(e)&&(e=Bu(t,e));let{patchPlugin_:r}=t;r&&r.generateReplacementPatches_(n[Q].base_,e,t)}else e=Bu(t,n);return Vu(t,e,!0),Fu(t),t.patches_&&t.patchListener_(t.patches_,t.inversePatches_),e===Wl?void 0:e}function Bu(e,t){if(wu(t))return t;let n=t[Q];if(!n)return Yu(t,e.handledSet_,e);if(!Uu(n,e))return t;if(!n.modified_)return n.base_;if(!n.finalized_){let{callbacks_:t}=n;if(t)for(;t.length>0;)t.pop()(e);qu(n,e)}return n.copy_}function Vu(e,t,n=!1){!e.parent_&&e.immer_.autoFreeze_&&e.canAutoFreeze_&&xu(t,n)}function Hu(e){e.finalized_=!0,e.scope_.unfinalizedDrafts_--}var Uu=(e,t)=>e.scope_===t,Wu=[];function Gu(e,t,n,r){let i=vu(e),a=e.type_;if(r!==void 0&&cu(i,r,a)===t){lu(i,r,n,a);return}if(!e.draftLocations_){let t=e.draftLocations_=new Map;au(i,(e,n)=>{if(eu(n)){let r=t.get(n)||[];r.push(e),t.set(n,r)}})}let o=e.draftLocations_.get(t)??Wu;for(let e of o)lu(i,e,n,a)}function Ku(e,t,n){e.callbacks_.push(function(r){let i=t;if(!i||!Uu(i,r))return;r.mapSetPlugin_?.fixSetContents(i);let a=yu(i);Gu(e,i.draft_??i,a,n),qu(i,r)})}function qu(e,t){if(e.modified_&&!e.finalized_&&(e.type_===3||e.type_===1&&e.allIndicesReassigned_||(e.assigned_?.size??0)>0)){let{patchPlugin_:n}=t;if(n){let r=n.getPath(e);r&&n.generatePatches_(e,r,t)}Hu(e)}}function Ju(e,t,n){let{scope_:r}=e;if(eu(n)){let i=n[Q];Uu(i,r)&&i.callbacks_.push(function(){rd(e),Gu(e,n,yu(i),t)})}else tu(n)&&e.callbacks_.push(function(){let i=vu(e);e.type_===3?i.has(n)&&Yu(n,r.handledSet_,r):cu(i,t,e.type_)===n&&r.drafts_.length>1&&(e.assigned_.get(t)??!1)===!0&&e.copy_&&Yu(cu(e.copy_,t,e.type_),r.handledSet_,r)})}function Yu(e,t,n){return!n.immer_.autoFreeze_&&n.unfinalizedDrafts_<1||eu(e)||t.has(e)||!tu(e)||wu(e)?e:(t.add(e),au(e,(r,i)=>{if(eu(i)){let t=i[Q];Uu(t,n)&&(lu(e,r,yu(t),e.type_),Hu(t))}else tu(i)&&Yu(i,t,n)}),e)}function Xu(e,t){let n=du(e),r={type_:+!!n,scope_:t?t.scope_:Mu(),modified_:!1,finalized_:!1,assigned_:void 0,parent_:t,base_:e,draft_:null,copy_:null,revoke_:null,isManual_:!1,callbacks_:void 0},i=r,a=Zu;n&&(i=[r],a=Qu);let{revoke:o,proxy:s}=Proxy.revocable(i,a);return r.draft_=s,r.revoke_=o,[s,r]}var Zu={get(e,t){if(t===Q)return e;let n=e.scope_.arrayMethodsPlugin_,r=e.type_===1&&typeof t==`string`;if(r&&n?.isArrayOperationMethod(t))return n.createMethodInterceptor(e,t);let i=vu(e);if(!su(i,t,e.type_))return ed(e,i,t);let a=i[t];if(e.finalized_||!tu(a)||r&&e.operationMethod&&n?.isMutatingArrayMethod(e.operationMethod)&&_u(t))return a;if(a===$u(e.base_,t)){rd(e);let n=e.type_===1?+t:t,r=ad(e.scope_,a,e,n);return e.copy_[n]=r}return a},has(e,t){return t in vu(e)},ownKeys(e){return Reflect.ownKeys(vu(e))},set(e,t,n){let r=td(vu(e),t);if(r?.set)return r.set.call(e.draft_,n),!0;if(!e.modified_){let r=$u(vu(e),t),i=r?.[Q];if(i&&i.base_===n)return e.copy_[t]=n,e.assigned_.set(t,!1),!0;if(uu(n,r)&&(n!==void 0||su(e.base_,t,e.type_)))return!0;rd(e),nd(e)}return e.copy_[t]===n&&(n!==void 0||t in e.copy_)||Number.isNaN(n)&&Number.isNaN(e.copy_[t])?!0:(e.copy_[t]=n,e.assigned_.set(t,!0),Ju(e,t,n),!0)},deleteProperty(e,t){return rd(e),$u(e.base_,t)!==void 0||t in e.base_?(e.assigned_.set(t,!1),nd(e)):e.assigned_.delete(t),e.copy_&&delete e.copy_[t],!0},getOwnPropertyDescriptor(e,t){let n=vu(e),r=Reflect.getOwnPropertyDescriptor(n,t);return r&&{[Ql]:!0,[Xl]:e.type_!==1||t!==`length`,[Zl]:r[Zl],[$l]:n[t]}},defineProperty(){Kl(11)},getPrototypeOf(e){return ql(e.base_)},setPrototypeOf(){Kl(12)}},Qu={};for(let e in Zu){let t=Zu[e];Qu[e]=function(){let e=arguments;return e[0]=e[0][0],t.apply(this,e)}}Qu.deleteProperty=function(e,t){return Qu.set.call(this,e,t,void 0)},Qu.set=function(e,t,n){return Zu.set.call(this,e[0],t,n,e[0])};function $u(e,t){let n=e[Q];return(n?vu(n):e)[t]}function ed(e,t,n){let r=td(t,n);return r?$l in r?r[$l]:r.get?.call(e.draft_):void 0}function td(e,t){if(!(t in e))return;let n=ql(e);for(;n;){let e=Object.getOwnPropertyDescriptor(n,t);if(e)return e;n=ql(n)}}function nd(e){e.modified_||(e.modified_=!0,e.parent_&&nd(e.parent_))}function rd(e){e.copy_||=(e.assigned_=new Map,bu(e.base_,e.scope_.immer_.useStrictShallowCopy_))}var id=class{constructor(e){this.autoFreeze_=!0,this.useStrictShallowCopy_=!1,this.useStrictIteration_=!1,this.produce=(e,t,n)=>{if(hu(e)&&!hu(t)){let n=t;t=e;let r=this;return function(e=n,...i){return r.produce(e,e=>t.call(this,e,...i))}}hu(t)||Kl(6),n!==void 0&&!hu(n)&&Kl(7);let r;if(tu(e)){let i=Lu(this),a=ad(i,e,void 0),o=!0;try{r=t(a),o=!1}finally{o?Fu(i):Iu(i)}return Pu(i,n),zu(r,i)}else if(!e||!mu(e)){if(r=t(e),r===void 0&&(r=e),r===Wl&&(r=void 0),this.autoFreeze_&&xu(r,!0),n){let t=[],i=[];ku(Eu).generateReplacementPatches_(e,r,{patches_:t,inversePatches_:i}),n(t,i)}return r}else Kl(1,e)},this.produceWithPatches=(e,t)=>{if(hu(e))return(t,...n)=>this.produceWithPatches(t,t=>e(t,...n));let n,r;return[this.produce(e,t,(e,t)=>{n=e,r=t}),n,r]},gu(e?.autoFreeze)&&this.setAutoFreeze(e.autoFreeze),gu(e?.useStrictShallowCopy)&&this.setUseStrictShallowCopy(e.useStrictShallowCopy),gu(e?.useStrictIteration)&&this.setUseStrictIteration(e.useStrictIteration)}createDraft(e){tu(e)||Kl(8),eu(e)&&(e=od(e));let t=Lu(this),n=ad(t,e,void 0);return n[Q].isManual_=!0,Iu(t),n}finishDraft(e,t){let n=e&&e[Q];(!n||!n.isManual_)&&Kl(9);let{scope_:r}=n;return Pu(r,t),zu(void 0,r)}setAutoFreeze(e){this.autoFreeze_=e}setUseStrictShallowCopy(e){this.useStrictShallowCopy_=e}setUseStrictIteration(e){this.useStrictIteration_=e}shouldUseStrictIteration(){return this.useStrictIteration_}applyPatches(e,t){let n;for(n=t.length-1;n>=0;n--){let r=t[n];if(r.path.length===0&&r.op===`replace`){e=r.value;break}}n>-1&&(t=t.slice(n+1));let r=ku(Eu).applyPatches_;return eu(e)?r(e,t):this.produce(e,e=>r(e,t))}};function ad(e,t,n,r){let[i,a]=fu(t)?ku(Tu).proxyMap_(t,n):pu(t)?ku(Tu).proxySet_(t,n):Xu(t,n);return(n?.scope_??Mu()).drafts_.push(i),a.callbacks_=n?.callbacks_??[],a.key_=r,n&&r!==void 0?Ku(n,a,r):a.callbacks_.push(function(e){e.mapSetPlugin_?.fixSetContents(a);let{patchPlugin_:t}=e;a.modified_&&t&&t.generatePatches_(a,[],e)}),i}function od(e){return eu(e)||Kl(10,e),sd(e)}function sd(e){if(!tu(e)||wu(e))return e;let t=e[Q],n,r=!0;if(t){if(!t.modified_)return t.base_;t.finalized_=!0,n=bu(e,t.scope_.immer_.useStrictShallowCopy_),r=t.scope_.immer_.shouldUseStrictIteration()}else n=bu(e,!0);return au(n,(e,t)=>{lu(n,e,sd(t))},r),t&&(t.finalized_=!1),n}var cd=new id().produce;export{_r as $,fa as A,W as B,Ba as C,wa as D,ja as E,Mi as F,Vr as G,ci as H,fi as I,Or as J,Pr as K,pi as L,la as M,ca as N,Ca as O,G as P,yr as Q,di as R,Ga as S,La as T,ri as U,oi as V,ni as W,Cr as X,Dr as Y,br as Z,go as _,hc as a,x as at,Ya as b,_c as c,_ as ct,Js as d,c as dt,V as et,fs as f,s as ft,K as g,jo as h,yc as i,I as it,pa as j,ba as k,Zs as l,h as lt,Mo as m,Ul as n,he as nt,gc as o,b as ot,No as p,i as pt,Ar as q,Vl as r,F as rt,dc as s,v as st,cd as t,He as tt,ec as u,l as ut,Za as v,Ra as w,qa as x,Xa as y,ui as z};
|