@frumu/tandem-panel 0.4.0 → 0.4.3

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.
@@ -0,0 +1,60 @@
1
+ const{entries:on,setPrototypeOf:Yt,isFrozen:Fn,getPrototypeOf:Bn,getOwnPropertyDescriptor:Hn}=Object;let{freeze:P,seal:z,create:ot}=Object,{apply:ct,construct:ut}=typeof Reflect<"u"&&Reflect;P||(P=function(e){return e});z||(z=function(e){return e});ct||(ct=function(e,n){for(var s=arguments.length,t=new Array(s>2?s-2:0),a=2;a<s;a++)t[a-2]=arguments[a];return e.apply(n,t)});ut||(ut=function(e){for(var n=arguments.length,s=new Array(n>1?n-1:0),t=1;t<n;t++)s[t-1]=arguments[t];return new e(...s)});const Oe=M(Array.prototype.forEach),Gn=M(Array.prototype.lastIndexOf),jt=M(Array.prototype.pop),fe=M(Array.prototype.push),Wn=M(Array.prototype.splice),Me=M(String.prototype.toLowerCase),nt=M(String.prototype.toString),rt=M(String.prototype.match),ge=M(String.prototype.replace),qn=M(String.prototype.indexOf),Zn=M(String.prototype.trim),U=M(Object.prototype.hasOwnProperty),O=M(RegExp.prototype.test),de=Yn(TypeError);function M(r){return function(e){e instanceof RegExp&&(e.lastIndex=0);for(var n=arguments.length,s=new Array(n>1?n-1:0),t=1;t<n;t++)s[t-1]=arguments[t];return ct(r,e,s)}}function Yn(r){return function(){for(var e=arguments.length,n=new Array(e),s=0;s<e;s++)n[s]=arguments[s];return ut(r,n)}}function d(r,e){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:Me;Yt&&Yt(r,null);let s=e.length;for(;s--;){let t=e[s];if(typeof t=="string"){const a=n(t);a!==t&&(Fn(e)||(e[s]=a),t=a)}r[t]=!0}return r}function jn(r){for(let e=0;e<r.length;e++)U(r,e)||(r[e]=null);return r}function W(r){const e=ot(null);for(const[n,s]of on(r))U(r,n)&&(Array.isArray(s)?e[n]=jn(s):s&&typeof s=="object"&&s.constructor===Object?e[n]=W(s):e[n]=s);return e}function me(r,e){for(;r!==null;){const s=Hn(r,e);if(s){if(s.get)return M(s.get);if(typeof s.value=="function")return M(s.value)}r=Bn(r)}function n(){return null}return n}const Xt=P(["a","abbr","acronym","address","area","article","aside","audio","b","bdi","bdo","big","blink","blockquote","body","br","button","canvas","caption","center","cite","code","col","colgroup","content","data","datalist","dd","decorator","del","details","dfn","dialog","dir","div","dl","dt","element","em","fieldset","figcaption","figure","font","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","img","input","ins","kbd","label","legend","li","main","map","mark","marquee","menu","menuitem","meter","nav","nobr","ol","optgroup","option","output","p","picture","pre","progress","q","rp","rt","ruby","s","samp","search","section","select","shadow","slot","small","source","spacer","span","strike","strong","style","sub","summary","sup","table","tbody","td","template","textarea","tfoot","th","thead","time","tr","track","tt","u","ul","var","video","wbr"]),st=P(["svg","a","altglyph","altglyphdef","altglyphitem","animatecolor","animatemotion","animatetransform","circle","clippath","defs","desc","ellipse","enterkeyhint","exportparts","filter","font","g","glyph","glyphref","hkern","image","inputmode","line","lineargradient","marker","mask","metadata","mpath","part","path","pattern","polygon","polyline","radialgradient","rect","stop","style","switch","symbol","text","textpath","title","tref","tspan","view","vkern"]),it=P(["feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feDropShadow","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence"]),Xn=P(["animate","color-profile","cursor","discard","font-face","font-face-format","font-face-name","font-face-src","font-face-uri","foreignobject","hatch","hatchpath","mesh","meshgradient","meshpatch","meshrow","missing-glyph","script","set","solidcolor","unknown","use"]),lt=P(["math","menclose","merror","mfenced","mfrac","mglyph","mi","mlabeledtr","mmultiscripts","mn","mo","mover","mpadded","mphantom","mroot","mrow","ms","mspace","msqrt","mstyle","msub","msup","msubsup","mtable","mtd","mtext","mtr","munder","munderover","mprescripts"]),Qn=P(["maction","maligngroup","malignmark","mlongdiv","mscarries","mscarry","msgroup","mstack","msline","msrow","semantics","annotation","annotation-xml","mprescripts","none"]),Qt=P(["#text"]),Vt=P(["accept","action","align","alt","autocapitalize","autocomplete","autopictureinpicture","autoplay","background","bgcolor","border","capture","cellpadding","cellspacing","checked","cite","class","clear","color","cols","colspan","controls","controlslist","coords","crossorigin","datetime","decoding","default","dir","disabled","disablepictureinpicture","disableremoteplayback","download","draggable","enctype","enterkeyhint","exportparts","face","for","headers","height","hidden","high","href","hreflang","id","inert","inputmode","integrity","ismap","kind","label","lang","list","loading","loop","low","max","maxlength","media","method","min","minlength","multiple","muted","name","nonce","noshade","novalidate","nowrap","open","optimum","part","pattern","placeholder","playsinline","popover","popovertarget","popovertargetaction","poster","preload","pubdate","radiogroup","readonly","rel","required","rev","reversed","role","rows","rowspan","spellcheck","scope","selected","shape","size","sizes","slot","span","srclang","start","src","srcset","step","style","summary","tabindex","title","translate","type","usemap","valign","value","width","wrap","xmlns","slot"]),at=P(["accent-height","accumulate","additive","alignment-baseline","amplitude","ascent","attributename","attributetype","azimuth","basefrequency","baseline-shift","begin","bias","by","class","clip","clippathunits","clip-path","clip-rule","color","color-interpolation","color-interpolation-filters","color-profile","color-rendering","cx","cy","d","dx","dy","diffuseconstant","direction","display","divisor","dur","edgemode","elevation","end","exponent","fill","fill-opacity","fill-rule","filter","filterunits","flood-color","flood-opacity","font-family","font-size","font-size-adjust","font-stretch","font-style","font-variant","font-weight","fx","fy","g1","g2","glyph-name","glyphref","gradientunits","gradienttransform","height","href","id","image-rendering","in","in2","intercept","k","k1","k2","k3","k4","kerning","keypoints","keysplines","keytimes","lang","lengthadjust","letter-spacing","kernelmatrix","kernelunitlength","lighting-color","local","marker-end","marker-mid","marker-start","markerheight","markerunits","markerwidth","maskcontentunits","maskunits","max","mask","mask-type","media","method","mode","min","name","numoctaves","offset","operator","opacity","order","orient","orientation","origin","overflow","paint-order","path","pathlength","patterncontentunits","patterntransform","patternunits","points","preservealpha","preserveaspectratio","primitiveunits","r","rx","ry","radius","refx","refy","repeatcount","repeatdur","restart","result","rotate","scale","seed","shape-rendering","slope","specularconstant","specularexponent","spreadmethod","startoffset","stddeviation","stitchtiles","stop-color","stop-opacity","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke","stroke-width","style","surfacescale","systemlanguage","tabindex","tablevalues","targetx","targety","transform","transform-origin","text-anchor","text-decoration","text-rendering","textlength","type","u1","u2","unicode","values","viewbox","visibility","version","vert-adv-y","vert-origin-x","vert-origin-y","width","word-spacing","wrap","writing-mode","xchannelselector","ychannelselector","x","x1","x2","xmlns","y","y1","y2","z","zoomandpan"]),Kt=P(["accent","accentunder","align","bevelled","close","columnsalign","columnlines","columnspan","denomalign","depth","dir","display","displaystyle","encoding","fence","frame","height","href","id","largeop","length","linethickness","lspace","lquote","mathbackground","mathcolor","mathsize","mathvariant","maxsize","minsize","movablelimits","notation","numalign","open","rowalign","rowlines","rowspacing","rowspan","rspace","rquote","scriptlevel","scriptminsize","scriptsizemultiplier","selection","separator","separators","stretchy","subscriptshift","supscriptshift","symmetric","voffset","width","xmlns"]),Ne=P(["xlink:href","xml:id","xlink:title","xml:space","xmlns:xlink"]),Vn=z(/\{\{[\w\W]*|[\w\W]*\}\}/gm),Kn=z(/<%[\w\W]*|[\w\W]*%>/gm),Jn=z(/\$\{[\w\W]*/gm),er=z(/^data-[\-\w.\u00B7-\uFFFF]+$/),tr=z(/^aria-[\-\w]+$/),cn=z(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp|matrix):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),nr=z(/^(?:\w+script|data):/i),rr=z(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),un=z(/^html$/i),sr=z(/^[a-z][.\w]*(-[.\w]+)+$/i);var Jt=Object.freeze({__proto__:null,ARIA_ATTR:tr,ATTR_WHITESPACE:rr,CUSTOM_ELEMENT:sr,DATA_ATTR:er,DOCTYPE_NAME:un,ERB_EXPR:Kn,IS_ALLOWED_URI:cn,IS_SCRIPT_OR_DATA:nr,MUSTACHE_EXPR:Vn,TMPLIT_EXPR:Jn});const ke={element:1,text:3,progressingInstruction:7,comment:8,document:9},ir=function(){return typeof window>"u"?null:window},lr=function(e,n){if(typeof e!="object"||typeof e.createPolicy!="function")return null;let s=null;const t="data-tt-policy-suffix";n&&n.hasAttribute(t)&&(s=n.getAttribute(t));const a="dompurify"+(s?"#"+s:"");try{return e.createPolicy(a,{createHTML(l){return l},createScriptURL(l){return l}})}catch{return console.warn("TrustedTypes policy "+a+" could not be created."),null}},en=function(){return{afterSanitizeAttributes:[],afterSanitizeElements:[],afterSanitizeShadowDOM:[],beforeSanitizeAttributes:[],beforeSanitizeElements:[],beforeSanitizeShadowDOM:[],uponSanitizeAttribute:[],uponSanitizeElement:[],uponSanitizeShadowNode:[]}};function pn(){let r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:ir();const e=g=>pn(g);if(e.version="3.3.1",e.removed=[],!r||!r.document||r.document.nodeType!==ke.document||!r.Element)return e.isSupported=!1,e;let{document:n}=r;const s=n,t=s.currentScript,{DocumentFragment:a,HTMLTemplateElement:l,Node:u,Element:o,NodeFilter:f,NamedNodeMap:p=r.NamedNodeMap||r.MozNamedAttrMap,HTMLFormElement:b,DOMParser:m,trustedTypes:A}=r,x=o.prototype,$=me(x,"cloneNode"),Ae=me(x,"remove"),_e=me(x,"nextSibling"),Ee=me(x,"childNodes"),ne=me(x,"parentNode");if(typeof l=="function"){const g=n.createElement("template");g.content&&g.content.ownerDocument&&(n=g.content.ownerDocument)}let y,Z="";const{implementation:Y,createNodeIterator:En,createDocumentFragment:Sn,getElementsByTagName:Rn}=n,{importNode:yn}=s;let C=en();e.isSupported=typeof on=="function"&&typeof ne=="function"&&Y&&Y.createHTMLDocument!==void 0;const{MUSTACHE_EXPR:Be,ERB_EXPR:He,TMPLIT_EXPR:Ge,DATA_ATTR:Ln,ARIA_ATTR:In,IS_SCRIPT_OR_DATA:Dn,ATTR_WHITESPACE:_t,CUSTOM_ELEMENT:Cn}=Jt;let{IS_ALLOWED_URI:Et}=Jt,R=null;const St=d({},[...Xt,...st,...it,...lt,...Qt]);let L=null;const Rt=d({},[...Vt,...at,...Kt,...Ne]);let _=Object.seal(ot(null,{tagNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},allowCustomizedBuiltInElements:{writable:!0,configurable:!1,enumerable:!0,value:!1}})),ue=null,We=null;const re=Object.seal(ot(null,{tagCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeCheck:{writable:!0,configurable:!1,enumerable:!0,value:null}}));let yt=!0,qe=!0,Lt=!1,It=!0,se=!1,Se=!0,V=!1,Ze=!1,Ye=!1,ie=!1,Re=!1,ye=!1,Dt=!0,Ct=!1;const On="user-content-";let je=!0,pe=!1,le={},H=null;const Xe=d({},["annotation-xml","audio","colgroup","desc","foreignobject","head","iframe","math","mi","mn","mo","ms","mtext","noembed","noframes","noscript","plaintext","script","style","svg","template","thead","title","video","xmp"]);let Ot=null;const Nt=d({},["audio","video","img","source","image","track"]);let Qe=null;const Pt=d({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),Le="http://www.w3.org/1998/Math/MathML",Ie="http://www.w3.org/2000/svg",j="http://www.w3.org/1999/xhtml";let ae=j,Ve=!1,Ke=null;const Nn=d({},[Le,Ie,j],nt);let De=d({},["mi","mo","mn","ms","mtext"]),Ce=d({},["annotation-xml"]);const Pn=d({},["title","style","font","a","script"]);let he=null;const Mn=["application/xhtml+xml","text/html"],vn="text/html";let S=null,oe=null;const zn=n.createElement("form"),Mt=function(i){return i instanceof RegExp||i instanceof Function},Je=function(){let i=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};if(!(oe&&oe===i)){if((!i||typeof i!="object")&&(i={}),i=W(i),he=Mn.indexOf(i.PARSER_MEDIA_TYPE)===-1?vn:i.PARSER_MEDIA_TYPE,S=he==="application/xhtml+xml"?nt:Me,R=U(i,"ALLOWED_TAGS")?d({},i.ALLOWED_TAGS,S):St,L=U(i,"ALLOWED_ATTR")?d({},i.ALLOWED_ATTR,S):Rt,Ke=U(i,"ALLOWED_NAMESPACES")?d({},i.ALLOWED_NAMESPACES,nt):Nn,Qe=U(i,"ADD_URI_SAFE_ATTR")?d(W(Pt),i.ADD_URI_SAFE_ATTR,S):Pt,Ot=U(i,"ADD_DATA_URI_TAGS")?d(W(Nt),i.ADD_DATA_URI_TAGS,S):Nt,H=U(i,"FORBID_CONTENTS")?d({},i.FORBID_CONTENTS,S):Xe,ue=U(i,"FORBID_TAGS")?d({},i.FORBID_TAGS,S):W({}),We=U(i,"FORBID_ATTR")?d({},i.FORBID_ATTR,S):W({}),le=U(i,"USE_PROFILES")?i.USE_PROFILES:!1,yt=i.ALLOW_ARIA_ATTR!==!1,qe=i.ALLOW_DATA_ATTR!==!1,Lt=i.ALLOW_UNKNOWN_PROTOCOLS||!1,It=i.ALLOW_SELF_CLOSE_IN_ATTR!==!1,se=i.SAFE_FOR_TEMPLATES||!1,Se=i.SAFE_FOR_XML!==!1,V=i.WHOLE_DOCUMENT||!1,ie=i.RETURN_DOM||!1,Re=i.RETURN_DOM_FRAGMENT||!1,ye=i.RETURN_TRUSTED_TYPE||!1,Ye=i.FORCE_BODY||!1,Dt=i.SANITIZE_DOM!==!1,Ct=i.SANITIZE_NAMED_PROPS||!1,je=i.KEEP_CONTENT!==!1,pe=i.IN_PLACE||!1,Et=i.ALLOWED_URI_REGEXP||cn,ae=i.NAMESPACE||j,De=i.MATHML_TEXT_INTEGRATION_POINTS||De,Ce=i.HTML_INTEGRATION_POINTS||Ce,_=i.CUSTOM_ELEMENT_HANDLING||{},i.CUSTOM_ELEMENT_HANDLING&&Mt(i.CUSTOM_ELEMENT_HANDLING.tagNameCheck)&&(_.tagNameCheck=i.CUSTOM_ELEMENT_HANDLING.tagNameCheck),i.CUSTOM_ELEMENT_HANDLING&&Mt(i.CUSTOM_ELEMENT_HANDLING.attributeNameCheck)&&(_.attributeNameCheck=i.CUSTOM_ELEMENT_HANDLING.attributeNameCheck),i.CUSTOM_ELEMENT_HANDLING&&typeof i.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements=="boolean"&&(_.allowCustomizedBuiltInElements=i.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements),se&&(qe=!1),Re&&(ie=!0),le&&(R=d({},Qt),L=[],le.html===!0&&(d(R,Xt),d(L,Vt)),le.svg===!0&&(d(R,st),d(L,at),d(L,Ne)),le.svgFilters===!0&&(d(R,it),d(L,at),d(L,Ne)),le.mathMl===!0&&(d(R,lt),d(L,Kt),d(L,Ne))),i.ADD_TAGS&&(typeof i.ADD_TAGS=="function"?re.tagCheck=i.ADD_TAGS:(R===St&&(R=W(R)),d(R,i.ADD_TAGS,S))),i.ADD_ATTR&&(typeof i.ADD_ATTR=="function"?re.attributeCheck=i.ADD_ATTR:(L===Rt&&(L=W(L)),d(L,i.ADD_ATTR,S))),i.ADD_URI_SAFE_ATTR&&d(Qe,i.ADD_URI_SAFE_ATTR,S),i.FORBID_CONTENTS&&(H===Xe&&(H=W(H)),d(H,i.FORBID_CONTENTS,S)),i.ADD_FORBID_CONTENTS&&(H===Xe&&(H=W(H)),d(H,i.ADD_FORBID_CONTENTS,S)),je&&(R["#text"]=!0),V&&d(R,["html","head","body"]),R.table&&(d(R,["tbody"]),delete ue.tbody),i.TRUSTED_TYPES_POLICY){if(typeof i.TRUSTED_TYPES_POLICY.createHTML!="function")throw de('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');if(typeof i.TRUSTED_TYPES_POLICY.createScriptURL!="function")throw de('TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.');y=i.TRUSTED_TYPES_POLICY,Z=y.createHTML("")}else y===void 0&&(y=lr(A,t)),y!==null&&typeof Z=="string"&&(Z=y.createHTML(""));P&&P(i),oe=i}},vt=d({},[...st,...it,...Xn]),zt=d({},[...lt,...Qn]),$n=function(i){let c=ne(i);(!c||!c.tagName)&&(c={namespaceURI:ae,tagName:"template"});const h=Me(i.tagName),w=Me(c.tagName);return Ke[i.namespaceURI]?i.namespaceURI===Ie?c.namespaceURI===j?h==="svg":c.namespaceURI===Le?h==="svg"&&(w==="annotation-xml"||De[w]):!!vt[h]:i.namespaceURI===Le?c.namespaceURI===j?h==="math":c.namespaceURI===Ie?h==="math"&&Ce[w]:!!zt[h]:i.namespaceURI===j?c.namespaceURI===Ie&&!Ce[w]||c.namespaceURI===Le&&!De[w]?!1:!zt[h]&&(Pn[h]||!vt[h]):!!(he==="application/xhtml+xml"&&Ke[i.namespaceURI]):!1},G=function(i){fe(e.removed,{element:i});try{ne(i).removeChild(i)}catch{Ae(i)}},K=function(i,c){try{fe(e.removed,{attribute:c.getAttributeNode(i),from:c})}catch{fe(e.removed,{attribute:null,from:c})}if(c.removeAttribute(i),i==="is")if(ie||Re)try{G(c)}catch{}else try{c.setAttribute(i,"")}catch{}},$t=function(i){let c=null,h=null;if(Ye)i="<remove></remove>"+i;else{const E=rt(i,/^[\r\n\t ]+/);h=E&&E[0]}he==="application/xhtml+xml"&&ae===j&&(i='<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>'+i+"</body></html>");const w=y?y.createHTML(i):i;if(ae===j)try{c=new m().parseFromString(w,he)}catch{}if(!c||!c.documentElement){c=Y.createDocument(ae,"template",null);try{c.documentElement.innerHTML=Ve?Z:w}catch{}}const D=c.body||c.documentElement;return i&&h&&D.insertBefore(n.createTextNode(h),D.childNodes[0]||null),ae===j?Rn.call(c,V?"html":"body")[0]:V?c.documentElement:D},Ut=function(i){return En.call(i.ownerDocument||i,i,f.SHOW_ELEMENT|f.SHOW_COMMENT|f.SHOW_TEXT|f.SHOW_PROCESSING_INSTRUCTION|f.SHOW_CDATA_SECTION,null)},et=function(i){return i instanceof b&&(typeof i.nodeName!="string"||typeof i.textContent!="string"||typeof i.removeChild!="function"||!(i.attributes instanceof p)||typeof i.removeAttribute!="function"||typeof i.setAttribute!="function"||typeof i.namespaceURI!="string"||typeof i.insertBefore!="function"||typeof i.hasChildNodes!="function")},Ft=function(i){return typeof u=="function"&&i instanceof u};function X(g,i,c){Oe(g,h=>{h.call(e,i,c,oe)})}const Bt=function(i){let c=null;if(X(C.beforeSanitizeElements,i,null),et(i))return G(i),!0;const h=S(i.nodeName);if(X(C.uponSanitizeElement,i,{tagName:h,allowedTags:R}),Se&&i.hasChildNodes()&&!Ft(i.firstElementChild)&&O(/<[/\w!]/g,i.innerHTML)&&O(/<[/\w!]/g,i.textContent)||i.nodeType===ke.progressingInstruction||Se&&i.nodeType===ke.comment&&O(/<[/\w]/g,i.data))return G(i),!0;if(!(re.tagCheck instanceof Function&&re.tagCheck(h))&&(!R[h]||ue[h])){if(!ue[h]&&Gt(h)&&(_.tagNameCheck instanceof RegExp&&O(_.tagNameCheck,h)||_.tagNameCheck instanceof Function&&_.tagNameCheck(h)))return!1;if(je&&!H[h]){const w=ne(i)||i.parentNode,D=Ee(i)||i.childNodes;if(D&&w){const E=D.length;for(let v=E-1;v>=0;--v){const Q=$(D[v],!0);Q.__removalCount=(i.__removalCount||0)+1,w.insertBefore(Q,_e(i))}}}return G(i),!0}return i instanceof o&&!$n(i)||(h==="noscript"||h==="noembed"||h==="noframes")&&O(/<\/no(script|embed|frames)/i,i.innerHTML)?(G(i),!0):(se&&i.nodeType===ke.text&&(c=i.textContent,Oe([Be,He,Ge],w=>{c=ge(c,w," ")}),i.textContent!==c&&(fe(e.removed,{element:i.cloneNode()}),i.textContent=c)),X(C.afterSanitizeElements,i,null),!1)},Ht=function(i,c,h){if(Dt&&(c==="id"||c==="name")&&(h in n||h in zn))return!1;if(!(qe&&!We[c]&&O(Ln,c))){if(!(yt&&O(In,c))){if(!(re.attributeCheck instanceof Function&&re.attributeCheck(c,i))){if(!L[c]||We[c]){if(!(Gt(i)&&(_.tagNameCheck instanceof RegExp&&O(_.tagNameCheck,i)||_.tagNameCheck instanceof Function&&_.tagNameCheck(i))&&(_.attributeNameCheck instanceof RegExp&&O(_.attributeNameCheck,c)||_.attributeNameCheck instanceof Function&&_.attributeNameCheck(c,i))||c==="is"&&_.allowCustomizedBuiltInElements&&(_.tagNameCheck instanceof RegExp&&O(_.tagNameCheck,h)||_.tagNameCheck instanceof Function&&_.tagNameCheck(h))))return!1}else if(!Qe[c]){if(!O(Et,ge(h,_t,""))){if(!((c==="src"||c==="xlink:href"||c==="href")&&i!=="script"&&qn(h,"data:")===0&&Ot[i])){if(!(Lt&&!O(Dn,ge(h,_t,"")))){if(h)return!1}}}}}}}return!0},Gt=function(i){return i!=="annotation-xml"&&rt(i,Cn)},Wt=function(i){X(C.beforeSanitizeAttributes,i,null);const{attributes:c}=i;if(!c||et(i))return;const h={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:L,forceKeepAttr:void 0};let w=c.length;for(;w--;){const D=c[w],{name:E,namespaceURI:v,value:Q}=D,ce=S(E),tt=Q;let I=E==="value"?tt:Zn(tt);if(h.attrName=ce,h.attrValue=I,h.keepAttr=!0,h.forceKeepAttr=void 0,X(C.uponSanitizeAttribute,i,h),I=h.attrValue,Ct&&(ce==="id"||ce==="name")&&(K(E,i),I=On+I),Se&&O(/((--!?|])>)|<\/(style|title|textarea)/i,I)){K(E,i);continue}if(ce==="attributename"&&rt(I,"href")){K(E,i);continue}if(h.forceKeepAttr)continue;if(!h.keepAttr){K(E,i);continue}if(!It&&O(/\/>/i,I)){K(E,i);continue}se&&Oe([Be,He,Ge],Zt=>{I=ge(I,Zt," ")});const qt=S(i.nodeName);if(!Ht(qt,ce,I)){K(E,i);continue}if(y&&typeof A=="object"&&typeof A.getAttributeType=="function"&&!v)switch(A.getAttributeType(qt,ce)){case"TrustedHTML":{I=y.createHTML(I);break}case"TrustedScriptURL":{I=y.createScriptURL(I);break}}if(I!==tt)try{v?i.setAttributeNS(v,E,I):i.setAttribute(E,I),et(i)?G(i):jt(e.removed)}catch{K(E,i)}}X(C.afterSanitizeAttributes,i,null)},Un=function g(i){let c=null;const h=Ut(i);for(X(C.beforeSanitizeShadowDOM,i,null);c=h.nextNode();)X(C.uponSanitizeShadowNode,c,null),Bt(c),Wt(c),c.content instanceof a&&g(c.content);X(C.afterSanitizeShadowDOM,i,null)};return e.sanitize=function(g){let i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},c=null,h=null,w=null,D=null;if(Ve=!g,Ve&&(g="<!-->"),typeof g!="string"&&!Ft(g))if(typeof g.toString=="function"){if(g=g.toString(),typeof g!="string")throw de("dirty is not a string, aborting")}else throw de("toString is not a function");if(!e.isSupported)return g;if(Ze||Je(i),e.removed=[],typeof g=="string"&&(pe=!1),pe){if(g.nodeName){const Q=S(g.nodeName);if(!R[Q]||ue[Q])throw de("root node is forbidden and cannot be sanitized in-place")}}else if(g instanceof u)c=$t("<!---->"),h=c.ownerDocument.importNode(g,!0),h.nodeType===ke.element&&h.nodeName==="BODY"||h.nodeName==="HTML"?c=h:c.appendChild(h);else{if(!ie&&!se&&!V&&g.indexOf("<")===-1)return y&&ye?y.createHTML(g):g;if(c=$t(g),!c)return ie?null:ye?Z:""}c&&Ye&&G(c.firstChild);const E=Ut(pe?g:c);for(;w=E.nextNode();)Bt(w),Wt(w),w.content instanceof a&&Un(w.content);if(pe)return g;if(ie){if(Re)for(D=Sn.call(c.ownerDocument);c.firstChild;)D.appendChild(c.firstChild);else D=c;return(L.shadowroot||L.shadowrootmode)&&(D=yn.call(s,D,!0)),D}let v=V?c.outerHTML:c.innerHTML;return V&&R["!doctype"]&&c.ownerDocument&&c.ownerDocument.doctype&&c.ownerDocument.doctype.name&&O(un,c.ownerDocument.doctype.name)&&(v="<!DOCTYPE "+c.ownerDocument.doctype.name+`>
2
+ `+v),se&&Oe([Be,He,Ge],Q=>{v=ge(v,Q," ")}),y&&ye?y.createHTML(v):v},e.setConfig=function(){let g=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};Je(g),Ze=!0},e.clearConfig=function(){oe=null,Ze=!1},e.isValidAttribute=function(g,i,c){oe||Je({});const h=S(g),w=S(i);return Ht(h,w,c)},e.addHook=function(g,i){typeof i=="function"&&fe(C[g],i)},e.removeHook=function(g,i){if(i!==void 0){const c=Gn(C[g],i);return c===-1?void 0:Wn(C[g],c,1)[0]}return jt(C[g])},e.removeHooks=function(g){C[g]=[]},e.removeAllHooks=function(){C=en()},e}var Qr=pn();function gt(){return{async:!1,breaks:!1,extensions:null,gfm:!0,hooks:null,pedantic:!1,renderer:null,silent:!1,tokenizer:null,walkTokens:null}}var te=gt();function hn(r){te=r}var J={exec:()=>null};function k(r,e=""){let n=typeof r=="string"?r:r.source,s={replace:(t,a)=>{let l=typeof a=="string"?a:a.source;return l=l.replace(N.caret,"$1"),n=n.replace(t,l),s},getRegex:()=>new RegExp(n,e)};return s}var ar=(()=>{try{return!!new RegExp("(?<=1)(?<!1)")}catch{return!1}})(),N={codeRemoveIndent:/^(?: {1,4}| {0,3}\t)/gm,outputLinkReplace:/\\([\[\]])/g,indentCodeCompensation:/^(\s+)(?:```)/,beginningSpace:/^\s+/,endingHash:/#$/,startingSpaceChar:/^ /,endingSpaceChar:/ $/,nonSpaceChar:/[^ ]/,newLineCharGlobal:/\n/g,tabCharGlobal:/\t/g,multipleSpaceGlobal:/\s+/g,blankLine:/^[ \t]*$/,doubleBlankLine:/\n[ \t]*\n[ \t]*$/,blockquoteStart:/^ {0,3}>/,blockquoteSetextReplace:/\n {0,3}((?:=+|-+) *)(?=\n|$)/g,blockquoteSetextReplace2:/^ {0,3}>[ \t]?/gm,listReplaceNesting:/^ {1,4}(?=( {4})*[^ ])/g,listIsTask:/^\[[ xX]\] +\S/,listReplaceTask:/^\[[ xX]\] +/,listTaskCheckbox:/\[[ xX]\]/,anyLine:/\n.*\n/,hrefBrackets:/^<(.*)>$/,tableDelimiter:/[:|]/,tableAlignChars:/^\||\| *$/g,tableRowBlankLine:/\n[ \t]*$/,tableAlignRight:/^ *-+: *$/,tableAlignCenter:/^ *:-+: *$/,tableAlignLeft:/^ *:-+ *$/,startATag:/^<a /i,endATag:/^<\/a>/i,startPreScriptTag:/^<(pre|code|kbd|script)(\s|>)/i,endPreScriptTag:/^<\/(pre|code|kbd|script)(\s|>)/i,startAngleBracket:/^</,endAngleBracket:/>$/,pedanticHrefTitle:/^([^'"]*[^\s])\s+(['"])(.*)\2/,unicodeAlphaNumeric:/[\p{L}\p{N}]/u,escapeTest:/[&<>"']/,escapeReplace:/[&<>"']/g,escapeTestNoEncode:/[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/,escapeReplaceNoEncode:/[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/g,unescapeTest:/&(#(?:\d+)|(?:#x[0-9A-Fa-f]+)|(?:\w+));?/ig,caret:/(^|[^\[])\^/g,percentDecode:/%25/g,findPipe:/\|/g,splitPipe:/ \|/,slashPipe:/\\\|/g,carriageReturn:/\r\n|\r/g,spaceLine:/^ +$/gm,notSpaceStart:/^\S*/,endingNewline:/\n$/,listItemRegex:r=>new RegExp(`^( {0,3}${r})((?:[ ][^\\n]*)?(?:\\n|$))`),nextBulletRegex:r=>new RegExp(`^ {0,${Math.min(3,r-1)}}(?:[*+-]|\\d{1,9}[.)])((?:[ ][^\\n]*)?(?:\\n|$))`),hrRegex:r=>new RegExp(`^ {0,${Math.min(3,r-1)}}((?:- *){3,}|(?:_ *){3,}|(?:\\* *){3,})(?:\\n+|$)`),fencesBeginRegex:r=>new RegExp(`^ {0,${Math.min(3,r-1)}}(?:\`\`\`|~~~)`),headingBeginRegex:r=>new RegExp(`^ {0,${Math.min(3,r-1)}}#`),htmlBeginRegex:r=>new RegExp(`^ {0,${Math.min(3,r-1)}}<(?:[a-z].*>|!--)`,"i"),blockquoteBeginRegex:r=>new RegExp(`^ {0,${Math.min(3,r-1)}}>`)},or=/^(?:[ \t]*(?:\n|$))+/,cr=/^((?: {4}| {0,3}\t)[^\n]+(?:\n(?:[ \t]*(?:\n|$))*)?)+/,ur=/^ {0,3}(`{3,}(?=[^`\n]*(?:\n|$))|~{3,})([^\n]*)(?:\n|$)(?:|([\s\S]*?)(?:\n|$))(?: {0,3}\1[~`]* *(?=\n|$)|$)/,we=/^ {0,3}((?:-[\t ]*){3,}|(?:_[ \t]*){3,}|(?:\*[ \t]*){3,})(?:\n+|$)/,pr=/^ {0,3}(#{1,6})(?=\s|$)(.*)(?:\n+|$)/,dt=/ {0,3}(?:[*+-]|\d{1,9}[.)])/,fn=/^(?!bull |blockCode|fences|blockquote|heading|html|table)((?:.|\n(?!\s*?\n|bull |blockCode|fences|blockquote|heading|html|table))+?)\n {0,3}(=+|-+) *(?:\n+|$)/,gn=k(fn).replace(/bull/g,dt).replace(/blockCode/g,/(?: {4}| {0,3}\t)/).replace(/fences/g,/ {0,3}(?:`{3,}|~{3,})/).replace(/blockquote/g,/ {0,3}>/).replace(/heading/g,/ {0,3}#{1,6}/).replace(/html/g,/ {0,3}<[^\n>]+>\n/).replace(/\|table/g,"").getRegex(),hr=k(fn).replace(/bull/g,dt).replace(/blockCode/g,/(?: {4}| {0,3}\t)/).replace(/fences/g,/ {0,3}(?:`{3,}|~{3,})/).replace(/blockquote/g,/ {0,3}>/).replace(/heading/g,/ {0,3}#{1,6}/).replace(/html/g,/ {0,3}<[^\n>]+>\n/).replace(/table/g,/ {0,3}\|?(?:[:\- ]*\|)+[\:\- ]*\n/).getRegex(),mt=/^([^\n]+(?:\n(?!hr|heading|lheading|blockquote|fences|list|html|table| +\n)[^\n]+)*)/,fr=/^[^\n]+/,kt=/(?!\s*\])(?:\\[\s\S]|[^\[\]\\])+/,gr=k(/^ {0,3}\[(label)\]: *(?:\n[ \t]*)?([^<\s][^\s]*|<.*?>)(?:(?: +(?:\n[ \t]*)?| *\n[ \t]*)(title))? *(?:\n+|$)/).replace("label",kt).replace("title",/(?:"(?:\\"?|[^"\\])*"|'[^'\n]*(?:\n[^'\n]+)*\n?'|\([^()]*\))/).getRegex(),dr=k(/^(bull)([ \t][^\n]+?)?(?:\n|$)/).replace(/bull/g,dt).getRegex(),Ue="address|article|aside|base|basefont|blockquote|body|caption|center|col|colgroup|dd|details|dialog|dir|div|dl|dt|fieldset|figcaption|figure|footer|form|frame|frameset|h[1-6]|head|header|hr|html|iframe|legend|li|link|main|menu|menuitem|meta|nav|noframes|ol|optgroup|option|p|param|search|section|summary|table|tbody|td|tfoot|th|thead|title|tr|track|ul",bt=/<!--(?:-?>|[\s\S]*?(?:-->|$))/,mr=k("^ {0,3}(?:<(script|pre|style|textarea)[\\s>][\\s\\S]*?(?:</\\1>[^\\n]*\\n+|$)|comment[^\\n]*(\\n+|$)|<\\?[\\s\\S]*?(?:\\?>\\n*|$)|<![A-Z][\\s\\S]*?(?:>\\n*|$)|<!\\[CDATA\\[[\\s\\S]*?(?:\\]\\]>\\n*|$)|</?(tag)(?: +|\\n|/?>)[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$)|<(?!script|pre|style|textarea)([a-z][\\w-]*)(?:attribute)*? */?>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$)|</(?!script|pre|style|textarea)[a-z][\\w-]*\\s*>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$))","i").replace("comment",bt).replace("tag",Ue).replace("attribute",/ +[a-zA-Z:_][\w.:-]*(?: *= *"[^"\n]*"| *= *'[^'\n]*'| *= *[^\s"'=<>`]+)?/).getRegex(),dn=k(mt).replace("hr",we).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("|lheading","").replace("|table","").replace("blockquote"," {0,3}>").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)])[ \\t]").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",Ue).getRegex(),kr=k(/^( {0,3}> ?(paragraph|[^\n]*)(?:\n|$))+/).replace("paragraph",dn).getRegex(),xt={blockquote:kr,code:cr,def:gr,fences:ur,heading:pr,hr:we,html:mr,lheading:gn,list:dr,newline:or,paragraph:dn,table:J,text:fr},tn=k("^ *([^\\n ].*)\\n {0,3}((?:\\| *)?:?-+:? *(?:\\| *:?-+:? *)*(?:\\| *)?)(?:\\n((?:(?! *\\n|hr|heading|blockquote|code|fences|list|html).*(?:\\n|$))*)\\n*|$)").replace("hr",we).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("blockquote"," {0,3}>").replace("code","(?: {4}| {0,3} )[^\\n]").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)])[ \\t]").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",Ue).getRegex(),br={...xt,lheading:hr,table:tn,paragraph:k(mt).replace("hr",we).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("|lheading","").replace("table",tn).replace("blockquote"," {0,3}>").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)])[ \\t]").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",Ue).getRegex()},xr={...xt,html:k(`^ *(?:comment *(?:\\n|\\s*$)|<(tag)[\\s\\S]+?</\\1> *(?:\\n{2,}|\\s*$)|<tag(?:"[^"]*"|'[^']*'|\\s[^'"/>\\s]*)*?/?> *(?:\\n{2,}|\\s*$))`).replace("comment",bt).replace(/tag/g,"(?!(?:a|em|strong|small|s|cite|q|dfn|abbr|data|time|code|var|samp|kbd|sub|sup|i|b|u|mark|ruby|rt|rp|bdi|bdo|span|br|wbr|ins|del|img)\\b)\\w+(?!:|[^\\w\\s@]*@)\\b").getRegex(),def:/^ *\[([^\]]+)\]: *<?([^\s>]+)>?(?: +(["(][^\n]+[")]))? *(?:\n+|$)/,heading:/^(#{1,6})(.*)(?:\n+|$)/,fences:J,lheading:/^(.+?)\n {0,3}(=+|-+) *(?:\n+|$)/,paragraph:k(mt).replace("hr",we).replace("heading",` *#{1,6} *[^
3
+ ]`).replace("lheading",gn).replace("|table","").replace("blockquote"," {0,3}>").replace("|fences","").replace("|list","").replace("|html","").replace("|tag","").getRegex()},Tr=/^\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/,wr=/^(`+)([^`]|[^`][\s\S]*?[^`])\1(?!`)/,mn=/^( {2,}|\\)\n(?!\s*$)/,Ar=/^(`+|[^`])(?:(?= {2,}\n)|[\s\S]*?(?:(?=[\\<!\[`*_]|\b_|$)|[^ ](?= {2,}\n)))/,Fe=/[\p{P}\p{S}]/u,Tt=/[\s\p{P}\p{S}]/u,kn=/[^\s\p{P}\p{S}]/u,_r=k(/^((?![*_])punctSpace)/,"u").replace(/punctSpace/g,Tt).getRegex(),bn=/(?!~)[\p{P}\p{S}]/u,Er=/(?!~)[\s\p{P}\p{S}]/u,Sr=/(?:[^\s\p{P}\p{S}]|~)/u,xn=/(?![*_])[\p{P}\p{S}]/u,Rr=/(?![*_])[\s\p{P}\p{S}]/u,yr=/(?:[^\s\p{P}\p{S}]|[*_])/u,Lr=k(/link|precode-code|html/,"g").replace("link",/\[(?:[^\[\]`]|(?<a>`+)[^`]+\k<a>(?!`))*?\]\((?:\\[\s\S]|[^\\\(\)]|\((?:\\[\s\S]|[^\\\(\)])*\))*\)/).replace("precode-",ar?"(?<!`)()":"(^^|[^`])").replace("code",/(?<b>`+)[^`]+\k<b>(?!`)/).replace("html",/<(?! )[^<>]*?>/).getRegex(),Tn=/^(?:\*+(?:((?!\*)punct)|[^\s*]))|^_+(?:((?!_)punct)|([^\s_]))/,Ir=k(Tn,"u").replace(/punct/g,Fe).getRegex(),Dr=k(Tn,"u").replace(/punct/g,bn).getRegex(),wn="^[^_*]*?__[^_*]*?\\*[^_*]*?(?=__)|[^*]+(?=[^*])|(?!\\*)punct(\\*+)(?=[\\s]|$)|notPunctSpace(\\*+)(?!\\*)(?=punctSpace|$)|(?!\\*)punctSpace(\\*+)(?=notPunctSpace)|[\\s](\\*+)(?!\\*)(?=punct)|(?!\\*)punct(\\*+)(?!\\*)(?=punct)|notPunctSpace(\\*+)(?=notPunctSpace)",Cr=k(wn,"gu").replace(/notPunctSpace/g,kn).replace(/punctSpace/g,Tt).replace(/punct/g,Fe).getRegex(),Or=k(wn,"gu").replace(/notPunctSpace/g,Sr).replace(/punctSpace/g,Er).replace(/punct/g,bn).getRegex(),Nr=k("^[^_*]*?\\*\\*[^_*]*?_[^_*]*?(?=\\*\\*)|[^_]+(?=[^_])|(?!_)punct(_+)(?=[\\s]|$)|notPunctSpace(_+)(?!_)(?=punctSpace|$)|(?!_)punctSpace(_+)(?=notPunctSpace)|[\\s](_+)(?!_)(?=punct)|(?!_)punct(_+)(?!_)(?=punct)","gu").replace(/notPunctSpace/g,kn).replace(/punctSpace/g,Tt).replace(/punct/g,Fe).getRegex(),Pr=k(/^~~?(?:((?!~)punct)|[^\s~])/,"u").replace(/punct/g,xn).getRegex(),Mr="^[^~]+(?=[^~])|(?!~)punct(~~?)(?=[\\s]|$)|notPunctSpace(~~?)(?!~)(?=punctSpace|$)|(?!~)punctSpace(~~?)(?=notPunctSpace)|[\\s](~~?)(?!~)(?=punct)|(?!~)punct(~~?)(?!~)(?=punct)|notPunctSpace(~~?)(?=notPunctSpace)",vr=k(Mr,"gu").replace(/notPunctSpace/g,yr).replace(/punctSpace/g,Rr).replace(/punct/g,xn).getRegex(),zr=k(/\\(punct)/,"gu").replace(/punct/g,Fe).getRegex(),$r=k(/^<(scheme:[^\s\x00-\x1f<>]*|email)>/).replace("scheme",/[a-zA-Z][a-zA-Z0-9+.-]{1,31}/).replace("email",/[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+(@)[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)+(?![-_])/).getRegex(),Ur=k(bt).replace("(?:-->|$)","-->").getRegex(),Fr=k("^comment|^</[a-zA-Z][\\w:-]*\\s*>|^<[a-zA-Z][\\w-]*(?:attribute)*?\\s*/?>|^<\\?[\\s\\S]*?\\?>|^<![a-zA-Z]+\\s[\\s\\S]*?>|^<!\\[CDATA\\[[\\s\\S]*?\\]\\]>").replace("comment",Ur).replace("attribute",/\s+[a-zA-Z:_][\w.:-]*(?:\s*=\s*"[^"]*"|\s*=\s*'[^']*'|\s*=\s*[^\s"'=<>`]+)?/).getRegex(),ve=/(?:\[(?:\\[\s\S]|[^\[\]\\])*\]|\\[\s\S]|`+[^`]*?`+(?!`)|[^\[\]\\`])*?/,Br=k(/^!?\[(label)\]\(\s*(href)(?:(?:[ \t]*(?:\n[ \t]*)?)(title))?\s*\)/).replace("label",ve).replace("href",/<(?:\\.|[^\n<>\\])+>|[^ \t\n\x00-\x1f]*/).replace("title",/"(?:\\"?|[^"\\])*"|'(?:\\'?|[^'\\])*'|\((?:\\\)?|[^)\\])*\)/).getRegex(),An=k(/^!?\[(label)\]\[(ref)\]/).replace("label",ve).replace("ref",kt).getRegex(),_n=k(/^!?\[(ref)\](?:\[\])?/).replace("ref",kt).getRegex(),Hr=k("reflink|nolink(?!\\()","g").replace("reflink",An).replace("nolink",_n).getRegex(),nn=/[hH][tT][tT][pP][sS]?|[fF][tT][pP]/,wt={_backpedal:J,anyPunctuation:zr,autolink:$r,blockSkip:Lr,br:mn,code:wr,del:J,delLDelim:J,delRDelim:J,emStrongLDelim:Ir,emStrongRDelimAst:Cr,emStrongRDelimUnd:Nr,escape:Tr,link:Br,nolink:_n,punctuation:_r,reflink:An,reflinkSearch:Hr,tag:Fr,text:Ar,url:J},Gr={...wt,link:k(/^!?\[(label)\]\((.*?)\)/).replace("label",ve).getRegex(),reflink:k(/^!?\[(label)\]\s*\[([^\]]*)\]/).replace("label",ve).getRegex()},pt={...wt,emStrongRDelimAst:Or,emStrongLDelim:Dr,delLDelim:Pr,delRDelim:vr,url:k(/^((?:protocol):\/\/|www\.)(?:[a-zA-Z0-9\-]+\.?)+[^\s<]*|^email/).replace("protocol",nn).replace("email",/[A-Za-z0-9._+-]+(@)[a-zA-Z0-9-_]+(?:\.[a-zA-Z0-9-_]*[a-zA-Z0-9])+(?![-_])/).getRegex(),_backpedal:/(?:[^?!.,:;*_'"~()&]+|\([^)]*\)|&(?![a-zA-Z0-9]+;$)|[?!.,:;*_'"~)]+(?!$))+/,del:/^(~~?)(?=[^\s~])((?:\\[\s\S]|[^\\])*?(?:\\[\s\S]|[^\s~\\]))\1(?=[^~]|$)/,text:k(/^([`~]+|[^`~])(?:(?= {2,}\n)|(?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)|[\s\S]*?(?:(?=[\\<!\[`*~_]|\b_|protocol:\/\/|www\.|$)|[^ ](?= {2,}\n)|[^a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-](?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)))/).replace("protocol",nn).getRegex()},Wr={...pt,br:k(mn).replace("{2,}","*").getRegex(),text:k(pt.text).replace("\\b_","\\b_| {2,}\\n").replace(/\{2,\}/g,"*").getRegex()},Pe={normal:xt,gfm:br,pedantic:xr},be={normal:wt,gfm:pt,breaks:Wr,pedantic:Gr},qr={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"},rn=r=>qr[r];function q(r,e){if(e){if(N.escapeTest.test(r))return r.replace(N.escapeReplace,rn)}else if(N.escapeTestNoEncode.test(r))return r.replace(N.escapeReplaceNoEncode,rn);return r}function sn(r){try{r=encodeURI(r).replace(N.percentDecode,"%")}catch{return null}return r}function ln(r,e){let n=r.replace(N.findPipe,(a,l,u)=>{let o=!1,f=l;for(;--f>=0&&u[f]==="\\";)o=!o;return o?"|":" |"}),s=n.split(N.splitPipe),t=0;if(s[0].trim()||s.shift(),s.length>0&&!s.at(-1)?.trim()&&s.pop(),e)if(s.length>e)s.splice(e);else for(;s.length<e;)s.push("");for(;t<s.length;t++)s[t]=s[t].trim().replace(N.slashPipe,"|");return s}function xe(r,e,n){let s=r.length;if(s===0)return"";let t=0;for(;t<s&&r.charAt(s-t-1)===e;)t++;return r.slice(0,s-t)}function Zr(r,e){if(r.indexOf(e[1])===-1)return-1;let n=0;for(let s=0;s<r.length;s++)if(r[s]==="\\")s++;else if(r[s]===e[0])n++;else if(r[s]===e[1]&&(n--,n<0))return s;return n>0?-2:-1}function Yr(r,e=0){let n=e,s="";for(let t of r)if(t===" "){let a=4-n%4;s+=" ".repeat(a),n+=a}else s+=t,n++;return s}function an(r,e,n,s,t){let a=e.href,l=e.title||null,u=r[1].replace(t.other.outputLinkReplace,"$1");s.state.inLink=!0;let o={type:r[0].charAt(0)==="!"?"image":"link",raw:n,href:a,title:l,text:u,tokens:s.inlineTokens(u)};return s.state.inLink=!1,o}function jr(r,e,n){let s=r.match(n.other.indentCodeCompensation);if(s===null)return e;let t=s[1];return e.split(`
4
+ `).map(a=>{let l=a.match(n.other.beginningSpace);if(l===null)return a;let[u]=l;return u.length>=t.length?a.slice(t.length):a}).join(`
5
+ `)}var ze=class{options;rules;lexer;constructor(r){this.options=r||te}space(r){let e=this.rules.block.newline.exec(r);if(e&&e[0].length>0)return{type:"space",raw:e[0]}}code(r){let e=this.rules.block.code.exec(r);if(e){let n=e[0].replace(this.rules.other.codeRemoveIndent,"");return{type:"code",raw:e[0],codeBlockStyle:"indented",text:this.options.pedantic?n:xe(n,`
6
+ `)}}}fences(r){let e=this.rules.block.fences.exec(r);if(e){let n=e[0],s=jr(n,e[3]||"",this.rules);return{type:"code",raw:n,lang:e[2]?e[2].trim().replace(this.rules.inline.anyPunctuation,"$1"):e[2],text:s}}}heading(r){let e=this.rules.block.heading.exec(r);if(e){let n=e[2].trim();if(this.rules.other.endingHash.test(n)){let s=xe(n,"#");(this.options.pedantic||!s||this.rules.other.endingSpaceChar.test(s))&&(n=s.trim())}return{type:"heading",raw:e[0],depth:e[1].length,text:n,tokens:this.lexer.inline(n)}}}hr(r){let e=this.rules.block.hr.exec(r);if(e)return{type:"hr",raw:xe(e[0],`
7
+ `)}}blockquote(r){let e=this.rules.block.blockquote.exec(r);if(e){let n=xe(e[0],`
8
+ `).split(`
9
+ `),s="",t="",a=[];for(;n.length>0;){let l=!1,u=[],o;for(o=0;o<n.length;o++)if(this.rules.other.blockquoteStart.test(n[o]))u.push(n[o]),l=!0;else if(!l)u.push(n[o]);else break;n=n.slice(o);let f=u.join(`
10
+ `),p=f.replace(this.rules.other.blockquoteSetextReplace,`
11
+ $1`).replace(this.rules.other.blockquoteSetextReplace2,"");s=s?`${s}
12
+ ${f}`:f,t=t?`${t}
13
+ ${p}`:p;let b=this.lexer.state.top;if(this.lexer.state.top=!0,this.lexer.blockTokens(p,a,!0),this.lexer.state.top=b,n.length===0)break;let m=a.at(-1);if(m?.type==="code")break;if(m?.type==="blockquote"){let A=m,x=A.raw+`
14
+ `+n.join(`
15
+ `),$=this.blockquote(x);a[a.length-1]=$,s=s.substring(0,s.length-A.raw.length)+$.raw,t=t.substring(0,t.length-A.text.length)+$.text;break}else if(m?.type==="list"){let A=m,x=A.raw+`
16
+ `+n.join(`
17
+ `),$=this.list(x);a[a.length-1]=$,s=s.substring(0,s.length-m.raw.length)+$.raw,t=t.substring(0,t.length-A.raw.length)+$.raw,n=x.substring(a.at(-1).raw.length).split(`
18
+ `);continue}}return{type:"blockquote",raw:s,tokens:a,text:t}}}list(r){let e=this.rules.block.list.exec(r);if(e){let n=e[1].trim(),s=n.length>1,t={type:"list",raw:"",ordered:s,start:s?+n.slice(0,-1):"",loose:!1,items:[]};n=s?`\\d{1,9}\\${n.slice(-1)}`:`\\${n}`,this.options.pedantic&&(n=s?n:"[*+-]");let a=this.rules.other.listItemRegex(n),l=!1;for(;r;){let o=!1,f="",p="";if(!(e=a.exec(r))||this.rules.block.hr.test(r))break;f=e[0],r=r.substring(f.length);let b=Yr(e[2].split(`
19
+ `,1)[0],e[1].length),m=r.split(`
20
+ `,1)[0],A=!b.trim(),x=0;if(this.options.pedantic?(x=2,p=b.trimStart()):A?x=e[1].length+1:(x=b.search(this.rules.other.nonSpaceChar),x=x>4?1:x,p=b.slice(x),x+=e[1].length),A&&this.rules.other.blankLine.test(m)&&(f+=m+`
21
+ `,r=r.substring(m.length+1),o=!0),!o){let $=this.rules.other.nextBulletRegex(x),Ae=this.rules.other.hrRegex(x),_e=this.rules.other.fencesBeginRegex(x),Ee=this.rules.other.headingBeginRegex(x),ne=this.rules.other.htmlBeginRegex(x),y=this.rules.other.blockquoteBeginRegex(x);for(;r;){let Z=r.split(`
22
+ `,1)[0],Y;if(m=Z,this.options.pedantic?(m=m.replace(this.rules.other.listReplaceNesting," "),Y=m):Y=m.replace(this.rules.other.tabCharGlobal," "),_e.test(m)||Ee.test(m)||ne.test(m)||y.test(m)||$.test(m)||Ae.test(m))break;if(Y.search(this.rules.other.nonSpaceChar)>=x||!m.trim())p+=`
23
+ `+Y.slice(x);else{if(A||b.replace(this.rules.other.tabCharGlobal," ").search(this.rules.other.nonSpaceChar)>=4||_e.test(b)||Ee.test(b)||Ae.test(b))break;p+=`
24
+ `+m}A=!m.trim(),f+=Z+`
25
+ `,r=r.substring(Z.length+1),b=Y.slice(x)}}t.loose||(l?t.loose=!0:this.rules.other.doubleBlankLine.test(f)&&(l=!0)),t.items.push({type:"list_item",raw:f,task:!!this.options.gfm&&this.rules.other.listIsTask.test(p),loose:!1,text:p,tokens:[]}),t.raw+=f}let u=t.items.at(-1);if(u)u.raw=u.raw.trimEnd(),u.text=u.text.trimEnd();else return;t.raw=t.raw.trimEnd();for(let o of t.items){if(this.lexer.state.top=!1,o.tokens=this.lexer.blockTokens(o.text,[]),o.task){if(o.text=o.text.replace(this.rules.other.listReplaceTask,""),o.tokens[0]?.type==="text"||o.tokens[0]?.type==="paragraph"){o.tokens[0].raw=o.tokens[0].raw.replace(this.rules.other.listReplaceTask,""),o.tokens[0].text=o.tokens[0].text.replace(this.rules.other.listReplaceTask,"");for(let p=this.lexer.inlineQueue.length-1;p>=0;p--)if(this.rules.other.listIsTask.test(this.lexer.inlineQueue[p].src)){this.lexer.inlineQueue[p].src=this.lexer.inlineQueue[p].src.replace(this.rules.other.listReplaceTask,"");break}}let f=this.rules.other.listTaskCheckbox.exec(o.raw);if(f){let p={type:"checkbox",raw:f[0]+" ",checked:f[0]!=="[ ]"};o.checked=p.checked,t.loose?o.tokens[0]&&["paragraph","text"].includes(o.tokens[0].type)&&"tokens"in o.tokens[0]&&o.tokens[0].tokens?(o.tokens[0].raw=p.raw+o.tokens[0].raw,o.tokens[0].text=p.raw+o.tokens[0].text,o.tokens[0].tokens.unshift(p)):o.tokens.unshift({type:"paragraph",raw:p.raw,text:p.raw,tokens:[p]}):o.tokens.unshift(p)}}if(!t.loose){let f=o.tokens.filter(b=>b.type==="space"),p=f.length>0&&f.some(b=>this.rules.other.anyLine.test(b.raw));t.loose=p}}if(t.loose)for(let o of t.items){o.loose=!0;for(let f of o.tokens)f.type==="text"&&(f.type="paragraph")}return t}}html(r){let e=this.rules.block.html.exec(r);if(e)return{type:"html",block:!0,raw:e[0],pre:e[1]==="pre"||e[1]==="script"||e[1]==="style",text:e[0]}}def(r){let e=this.rules.block.def.exec(r);if(e){let n=e[1].toLowerCase().replace(this.rules.other.multipleSpaceGlobal," "),s=e[2]?e[2].replace(this.rules.other.hrefBrackets,"$1").replace(this.rules.inline.anyPunctuation,"$1"):"",t=e[3]?e[3].substring(1,e[3].length-1).replace(this.rules.inline.anyPunctuation,"$1"):e[3];return{type:"def",tag:n,raw:e[0],href:s,title:t}}}table(r){let e=this.rules.block.table.exec(r);if(!e||!this.rules.other.tableDelimiter.test(e[2]))return;let n=ln(e[1]),s=e[2].replace(this.rules.other.tableAlignChars,"").split("|"),t=e[3]?.trim()?e[3].replace(this.rules.other.tableRowBlankLine,"").split(`
26
+ `):[],a={type:"table",raw:e[0],header:[],align:[],rows:[]};if(n.length===s.length){for(let l of s)this.rules.other.tableAlignRight.test(l)?a.align.push("right"):this.rules.other.tableAlignCenter.test(l)?a.align.push("center"):this.rules.other.tableAlignLeft.test(l)?a.align.push("left"):a.align.push(null);for(let l=0;l<n.length;l++)a.header.push({text:n[l],tokens:this.lexer.inline(n[l]),header:!0,align:a.align[l]});for(let l of t)a.rows.push(ln(l,a.header.length).map((u,o)=>({text:u,tokens:this.lexer.inline(u),header:!1,align:a.align[o]})));return a}}lheading(r){let e=this.rules.block.lheading.exec(r);if(e)return{type:"heading",raw:e[0],depth:e[2].charAt(0)==="="?1:2,text:e[1],tokens:this.lexer.inline(e[1])}}paragraph(r){let e=this.rules.block.paragraph.exec(r);if(e){let n=e[1].charAt(e[1].length-1)===`
27
+ `?e[1].slice(0,-1):e[1];return{type:"paragraph",raw:e[0],text:n,tokens:this.lexer.inline(n)}}}text(r){let e=this.rules.block.text.exec(r);if(e)return{type:"text",raw:e[0],text:e[0],tokens:this.lexer.inline(e[0])}}escape(r){let e=this.rules.inline.escape.exec(r);if(e)return{type:"escape",raw:e[0],text:e[1]}}tag(r){let e=this.rules.inline.tag.exec(r);if(e)return!this.lexer.state.inLink&&this.rules.other.startATag.test(e[0])?this.lexer.state.inLink=!0:this.lexer.state.inLink&&this.rules.other.endATag.test(e[0])&&(this.lexer.state.inLink=!1),!this.lexer.state.inRawBlock&&this.rules.other.startPreScriptTag.test(e[0])?this.lexer.state.inRawBlock=!0:this.lexer.state.inRawBlock&&this.rules.other.endPreScriptTag.test(e[0])&&(this.lexer.state.inRawBlock=!1),{type:"html",raw:e[0],inLink:this.lexer.state.inLink,inRawBlock:this.lexer.state.inRawBlock,block:!1,text:e[0]}}link(r){let e=this.rules.inline.link.exec(r);if(e){let n=e[2].trim();if(!this.options.pedantic&&this.rules.other.startAngleBracket.test(n)){if(!this.rules.other.endAngleBracket.test(n))return;let a=xe(n.slice(0,-1),"\\");if((n.length-a.length)%2===0)return}else{let a=Zr(e[2],"()");if(a===-2)return;if(a>-1){let l=(e[0].indexOf("!")===0?5:4)+e[1].length+a;e[2]=e[2].substring(0,a),e[0]=e[0].substring(0,l).trim(),e[3]=""}}let s=e[2],t="";if(this.options.pedantic){let a=this.rules.other.pedanticHrefTitle.exec(s);a&&(s=a[1],t=a[3])}else t=e[3]?e[3].slice(1,-1):"";return s=s.trim(),this.rules.other.startAngleBracket.test(s)&&(this.options.pedantic&&!this.rules.other.endAngleBracket.test(n)?s=s.slice(1):s=s.slice(1,-1)),an(e,{href:s&&s.replace(this.rules.inline.anyPunctuation,"$1"),title:t&&t.replace(this.rules.inline.anyPunctuation,"$1")},e[0],this.lexer,this.rules)}}reflink(r,e){let n;if((n=this.rules.inline.reflink.exec(r))||(n=this.rules.inline.nolink.exec(r))){let s=(n[2]||n[1]).replace(this.rules.other.multipleSpaceGlobal," "),t=e[s.toLowerCase()];if(!t){let a=n[0].charAt(0);return{type:"text",raw:a,text:a}}return an(n,t,n[0],this.lexer,this.rules)}}emStrong(r,e,n=""){let s=this.rules.inline.emStrongLDelim.exec(r);if(!(!s||s[3]&&n.match(this.rules.other.unicodeAlphaNumeric))&&(!(s[1]||s[2])||!n||this.rules.inline.punctuation.exec(n))){let t=[...s[0]].length-1,a,l,u=t,o=0,f=s[0][0]==="*"?this.rules.inline.emStrongRDelimAst:this.rules.inline.emStrongRDelimUnd;for(f.lastIndex=0,e=e.slice(-1*r.length+t);(s=f.exec(e))!=null;){if(a=s[1]||s[2]||s[3]||s[4]||s[5]||s[6],!a)continue;if(l=[...a].length,s[3]||s[4]){u+=l;continue}else if((s[5]||s[6])&&t%3&&!((t+l)%3)){o+=l;continue}if(u-=l,u>0)continue;l=Math.min(l,l+u+o);let p=[...s[0]][0].length,b=r.slice(0,t+s.index+p+l);if(Math.min(t,l)%2){let A=b.slice(1,-1);return{type:"em",raw:b,text:A,tokens:this.lexer.inlineTokens(A)}}let m=b.slice(2,-2);return{type:"strong",raw:b,text:m,tokens:this.lexer.inlineTokens(m)}}}}codespan(r){let e=this.rules.inline.code.exec(r);if(e){let n=e[2].replace(this.rules.other.newLineCharGlobal," "),s=this.rules.other.nonSpaceChar.test(n),t=this.rules.other.startingSpaceChar.test(n)&&this.rules.other.endingSpaceChar.test(n);return s&&t&&(n=n.substring(1,n.length-1)),{type:"codespan",raw:e[0],text:n}}}br(r){let e=this.rules.inline.br.exec(r);if(e)return{type:"br",raw:e[0]}}del(r,e,n=""){let s=this.rules.inline.delLDelim.exec(r);if(s&&(!s[1]||!n||this.rules.inline.punctuation.exec(n))){let t=[...s[0]].length-1,a,l,u=t,o=this.rules.inline.delRDelim;for(o.lastIndex=0,e=e.slice(-1*r.length+t);(s=o.exec(e))!=null;){if(a=s[1]||s[2]||s[3]||s[4]||s[5]||s[6],!a||(l=[...a].length,l!==t))continue;if(s[3]||s[4]){u+=l;continue}if(u-=l,u>0)continue;l=Math.min(l,l+u);let f=[...s[0]][0].length,p=r.slice(0,t+s.index+f+l),b=p.slice(t,-t);return{type:"del",raw:p,text:b,tokens:this.lexer.inlineTokens(b)}}}}autolink(r){let e=this.rules.inline.autolink.exec(r);if(e){let n,s;return e[2]==="@"?(n=e[1],s="mailto:"+n):(n=e[1],s=n),{type:"link",raw:e[0],text:n,href:s,tokens:[{type:"text",raw:n,text:n}]}}}url(r){let e;if(e=this.rules.inline.url.exec(r)){let n,s;if(e[2]==="@")n=e[0],s="mailto:"+n;else{let t;do t=e[0],e[0]=this.rules.inline._backpedal.exec(e[0])?.[0]??"";while(t!==e[0]);n=e[0],e[1]==="www."?s="http://"+e[0]:s=e[0]}return{type:"link",raw:e[0],text:n,href:s,tokens:[{type:"text",raw:n,text:n}]}}}inlineText(r){let e=this.rules.inline.text.exec(r);if(e){let n=this.lexer.state.inRawBlock;return{type:"text",raw:e[0],text:e[0],escaped:n}}}},F=class ht{tokens;options;state;inlineQueue;tokenizer;constructor(e){this.tokens=[],this.tokens.links=Object.create(null),this.options=e||te,this.options.tokenizer=this.options.tokenizer||new ze,this.tokenizer=this.options.tokenizer,this.tokenizer.options=this.options,this.tokenizer.lexer=this,this.inlineQueue=[],this.state={inLink:!1,inRawBlock:!1,top:!0};let n={other:N,block:Pe.normal,inline:be.normal};this.options.pedantic?(n.block=Pe.pedantic,n.inline=be.pedantic):this.options.gfm&&(n.block=Pe.gfm,this.options.breaks?n.inline=be.breaks:n.inline=be.gfm),this.tokenizer.rules=n}static get rules(){return{block:Pe,inline:be}}static lex(e,n){return new ht(n).lex(e)}static lexInline(e,n){return new ht(n).inlineTokens(e)}lex(e){e=e.replace(N.carriageReturn,`
28
+ `),this.blockTokens(e,this.tokens);for(let n=0;n<this.inlineQueue.length;n++){let s=this.inlineQueue[n];this.inlineTokens(s.src,s.tokens)}return this.inlineQueue=[],this.tokens}blockTokens(e,n=[],s=!1){for(this.options.pedantic&&(e=e.replace(N.tabCharGlobal," ").replace(N.spaceLine,""));e;){let t;if(this.options.extensions?.block?.some(l=>(t=l.call({lexer:this},e,n))?(e=e.substring(t.raw.length),n.push(t),!0):!1))continue;if(t=this.tokenizer.space(e)){e=e.substring(t.raw.length);let l=n.at(-1);t.raw.length===1&&l!==void 0?l.raw+=`
29
+ `:n.push(t);continue}if(t=this.tokenizer.code(e)){e=e.substring(t.raw.length);let l=n.at(-1);l?.type==="paragraph"||l?.type==="text"?(l.raw+=(l.raw.endsWith(`
30
+ `)?"":`
31
+ `)+t.raw,l.text+=`
32
+ `+t.text,this.inlineQueue.at(-1).src=l.text):n.push(t);continue}if(t=this.tokenizer.fences(e)){e=e.substring(t.raw.length),n.push(t);continue}if(t=this.tokenizer.heading(e)){e=e.substring(t.raw.length),n.push(t);continue}if(t=this.tokenizer.hr(e)){e=e.substring(t.raw.length),n.push(t);continue}if(t=this.tokenizer.blockquote(e)){e=e.substring(t.raw.length),n.push(t);continue}if(t=this.tokenizer.list(e)){e=e.substring(t.raw.length),n.push(t);continue}if(t=this.tokenizer.html(e)){e=e.substring(t.raw.length),n.push(t);continue}if(t=this.tokenizer.def(e)){e=e.substring(t.raw.length);let l=n.at(-1);l?.type==="paragraph"||l?.type==="text"?(l.raw+=(l.raw.endsWith(`
33
+ `)?"":`
34
+ `)+t.raw,l.text+=`
35
+ `+t.raw,this.inlineQueue.at(-1).src=l.text):this.tokens.links[t.tag]||(this.tokens.links[t.tag]={href:t.href,title:t.title},n.push(t));continue}if(t=this.tokenizer.table(e)){e=e.substring(t.raw.length),n.push(t);continue}if(t=this.tokenizer.lheading(e)){e=e.substring(t.raw.length),n.push(t);continue}let a=e;if(this.options.extensions?.startBlock){let l=1/0,u=e.slice(1),o;this.options.extensions.startBlock.forEach(f=>{o=f.call({lexer:this},u),typeof o=="number"&&o>=0&&(l=Math.min(l,o))}),l<1/0&&l>=0&&(a=e.substring(0,l+1))}if(this.state.top&&(t=this.tokenizer.paragraph(a))){let l=n.at(-1);s&&l?.type==="paragraph"?(l.raw+=(l.raw.endsWith(`
36
+ `)?"":`
37
+ `)+t.raw,l.text+=`
38
+ `+t.text,this.inlineQueue.pop(),this.inlineQueue.at(-1).src=l.text):n.push(t),s=a.length!==e.length,e=e.substring(t.raw.length);continue}if(t=this.tokenizer.text(e)){e=e.substring(t.raw.length);let l=n.at(-1);l?.type==="text"?(l.raw+=(l.raw.endsWith(`
39
+ `)?"":`
40
+ `)+t.raw,l.text+=`
41
+ `+t.text,this.inlineQueue.pop(),this.inlineQueue.at(-1).src=l.text):n.push(t);continue}if(e){let l="Infinite loop on byte: "+e.charCodeAt(0);if(this.options.silent){console.error(l);break}else throw new Error(l)}}return this.state.top=!0,n}inline(e,n=[]){return this.inlineQueue.push({src:e,tokens:n}),n}inlineTokens(e,n=[]){let s=e,t=null;if(this.tokens.links){let o=Object.keys(this.tokens.links);if(o.length>0)for(;(t=this.tokenizer.rules.inline.reflinkSearch.exec(s))!=null;)o.includes(t[0].slice(t[0].lastIndexOf("[")+1,-1))&&(s=s.slice(0,t.index)+"["+"a".repeat(t[0].length-2)+"]"+s.slice(this.tokenizer.rules.inline.reflinkSearch.lastIndex))}for(;(t=this.tokenizer.rules.inline.anyPunctuation.exec(s))!=null;)s=s.slice(0,t.index)+"++"+s.slice(this.tokenizer.rules.inline.anyPunctuation.lastIndex);let a;for(;(t=this.tokenizer.rules.inline.blockSkip.exec(s))!=null;)a=t[2]?t[2].length:0,s=s.slice(0,t.index+a)+"["+"a".repeat(t[0].length-a-2)+"]"+s.slice(this.tokenizer.rules.inline.blockSkip.lastIndex);s=this.options.hooks?.emStrongMask?.call({lexer:this},s)??s;let l=!1,u="";for(;e;){l||(u=""),l=!1;let o;if(this.options.extensions?.inline?.some(p=>(o=p.call({lexer:this},e,n))?(e=e.substring(o.raw.length),n.push(o),!0):!1))continue;if(o=this.tokenizer.escape(e)){e=e.substring(o.raw.length),n.push(o);continue}if(o=this.tokenizer.tag(e)){e=e.substring(o.raw.length),n.push(o);continue}if(o=this.tokenizer.link(e)){e=e.substring(o.raw.length),n.push(o);continue}if(o=this.tokenizer.reflink(e,this.tokens.links)){e=e.substring(o.raw.length);let p=n.at(-1);o.type==="text"&&p?.type==="text"?(p.raw+=o.raw,p.text+=o.text):n.push(o);continue}if(o=this.tokenizer.emStrong(e,s,u)){e=e.substring(o.raw.length),n.push(o);continue}if(o=this.tokenizer.codespan(e)){e=e.substring(o.raw.length),n.push(o);continue}if(o=this.tokenizer.br(e)){e=e.substring(o.raw.length),n.push(o);continue}if(o=this.tokenizer.del(e,s,u)){e=e.substring(o.raw.length),n.push(o);continue}if(o=this.tokenizer.autolink(e)){e=e.substring(o.raw.length),n.push(o);continue}if(!this.state.inLink&&(o=this.tokenizer.url(e))){e=e.substring(o.raw.length),n.push(o);continue}let f=e;if(this.options.extensions?.startInline){let p=1/0,b=e.slice(1),m;this.options.extensions.startInline.forEach(A=>{m=A.call({lexer:this},b),typeof m=="number"&&m>=0&&(p=Math.min(p,m))}),p<1/0&&p>=0&&(f=e.substring(0,p+1))}if(o=this.tokenizer.inlineText(f)){e=e.substring(o.raw.length),o.raw.slice(-1)!=="_"&&(u=o.raw.slice(-1)),l=!0;let p=n.at(-1);p?.type==="text"?(p.raw+=o.raw,p.text+=o.text):n.push(o);continue}if(e){let p="Infinite loop on byte: "+e.charCodeAt(0);if(this.options.silent){console.error(p);break}else throw new Error(p)}}return n}},$e=class{options;parser;constructor(r){this.options=r||te}space(r){return""}code({text:r,lang:e,escaped:n}){let s=(e||"").match(N.notSpaceStart)?.[0],t=r.replace(N.endingNewline,"")+`
42
+ `;return s?'<pre><code class="language-'+q(s)+'">'+(n?t:q(t,!0))+`</code></pre>
43
+ `:"<pre><code>"+(n?t:q(t,!0))+`</code></pre>
44
+ `}blockquote({tokens:r}){return`<blockquote>
45
+ ${this.parser.parse(r)}</blockquote>
46
+ `}html({text:r}){return r}def(r){return""}heading({tokens:r,depth:e}){return`<h${e}>${this.parser.parseInline(r)}</h${e}>
47
+ `}hr(r){return`<hr>
48
+ `}list(r){let e=r.ordered,n=r.start,s="";for(let l=0;l<r.items.length;l++){let u=r.items[l];s+=this.listitem(u)}let t=e?"ol":"ul",a=e&&n!==1?' start="'+n+'"':"";return"<"+t+a+`>
49
+ `+s+"</"+t+`>
50
+ `}listitem(r){return`<li>${this.parser.parse(r.tokens)}</li>
51
+ `}checkbox({checked:r}){return"<input "+(r?'checked="" ':"")+'disabled="" type="checkbox"> '}paragraph({tokens:r}){return`<p>${this.parser.parseInline(r)}</p>
52
+ `}table(r){let e="",n="";for(let t=0;t<r.header.length;t++)n+=this.tablecell(r.header[t]);e+=this.tablerow({text:n});let s="";for(let t=0;t<r.rows.length;t++){let a=r.rows[t];n="";for(let l=0;l<a.length;l++)n+=this.tablecell(a[l]);s+=this.tablerow({text:n})}return s&&(s=`<tbody>${s}</tbody>`),`<table>
53
+ <thead>
54
+ `+e+`</thead>
55
+ `+s+`</table>
56
+ `}tablerow({text:r}){return`<tr>
57
+ ${r}</tr>
58
+ `}tablecell(r){let e=this.parser.parseInline(r.tokens),n=r.header?"th":"td";return(r.align?`<${n} align="${r.align}">`:`<${n}>`)+e+`</${n}>
59
+ `}strong({tokens:r}){return`<strong>${this.parser.parseInline(r)}</strong>`}em({tokens:r}){return`<em>${this.parser.parseInline(r)}</em>`}codespan({text:r}){return`<code>${q(r,!0)}</code>`}br(r){return"<br>"}del({tokens:r}){return`<del>${this.parser.parseInline(r)}</del>`}link({href:r,title:e,tokens:n}){let s=this.parser.parseInline(n),t=sn(r);if(t===null)return s;r=t;let a='<a href="'+r+'"';return e&&(a+=' title="'+q(e)+'"'),a+=">"+s+"</a>",a}image({href:r,title:e,text:n,tokens:s}){s&&(n=this.parser.parseInline(s,this.parser.textRenderer));let t=sn(r);if(t===null)return q(n);r=t;let a=`<img src="${r}" alt="${q(n)}"`;return e&&(a+=` title="${q(e)}"`),a+=">",a}text(r){return"tokens"in r&&r.tokens?this.parser.parseInline(r.tokens):"escaped"in r&&r.escaped?r.text:q(r.text)}},At=class{strong({text:r}){return r}em({text:r}){return r}codespan({text:r}){return r}del({text:r}){return r}html({text:r}){return r}text({text:r}){return r}link({text:r}){return""+r}image({text:r}){return""+r}br(){return""}checkbox({raw:r}){return r}},B=class ft{options;renderer;textRenderer;constructor(e){this.options=e||te,this.options.renderer=this.options.renderer||new $e,this.renderer=this.options.renderer,this.renderer.options=this.options,this.renderer.parser=this,this.textRenderer=new At}static parse(e,n){return new ft(n).parse(e)}static parseInline(e,n){return new ft(n).parseInline(e)}parse(e){let n="";for(let s=0;s<e.length;s++){let t=e[s];if(this.options.extensions?.renderers?.[t.type]){let l=t,u=this.options.extensions.renderers[l.type].call({parser:this},l);if(u!==!1||!["space","hr","heading","code","table","blockquote","list","html","def","paragraph","text"].includes(l.type)){n+=u||"";continue}}let a=t;switch(a.type){case"space":{n+=this.renderer.space(a);break}case"hr":{n+=this.renderer.hr(a);break}case"heading":{n+=this.renderer.heading(a);break}case"code":{n+=this.renderer.code(a);break}case"table":{n+=this.renderer.table(a);break}case"blockquote":{n+=this.renderer.blockquote(a);break}case"list":{n+=this.renderer.list(a);break}case"checkbox":{n+=this.renderer.checkbox(a);break}case"html":{n+=this.renderer.html(a);break}case"def":{n+=this.renderer.def(a);break}case"paragraph":{n+=this.renderer.paragraph(a);break}case"text":{n+=this.renderer.text(a);break}default:{let l='Token with "'+a.type+'" type was not found.';if(this.options.silent)return console.error(l),"";throw new Error(l)}}}return n}parseInline(e,n=this.renderer){let s="";for(let t=0;t<e.length;t++){let a=e[t];if(this.options.extensions?.renderers?.[a.type]){let u=this.options.extensions.renderers[a.type].call({parser:this},a);if(u!==!1||!["escape","html","link","image","strong","em","codespan","br","del","text"].includes(a.type)){s+=u||"";continue}}let l=a;switch(l.type){case"escape":{s+=n.text(l);break}case"html":{s+=n.html(l);break}case"link":{s+=n.link(l);break}case"image":{s+=n.image(l);break}case"checkbox":{s+=n.checkbox(l);break}case"strong":{s+=n.strong(l);break}case"em":{s+=n.em(l);break}case"codespan":{s+=n.codespan(l);break}case"br":{s+=n.br(l);break}case"del":{s+=n.del(l);break}case"text":{s+=n.text(l);break}default:{let u='Token with "'+l.type+'" type was not found.';if(this.options.silent)return console.error(u),"";throw new Error(u)}}}return s}},Te=class{options;block;constructor(r){this.options=r||te}static passThroughHooks=new Set(["preprocess","postprocess","processAllTokens","emStrongMask"]);static passThroughHooksRespectAsync=new Set(["preprocess","postprocess","processAllTokens"]);preprocess(r){return r}postprocess(r){return r}processAllTokens(r){return r}emStrongMask(r){return r}provideLexer(){return this.block?F.lex:F.lexInline}provideParser(){return this.block?B.parse:B.parseInline}},Xr=class{defaults=gt();options=this.setOptions;parse=this.parseMarkdown(!0);parseInline=this.parseMarkdown(!1);Parser=B;Renderer=$e;TextRenderer=At;Lexer=F;Tokenizer=ze;Hooks=Te;constructor(...r){this.use(...r)}walkTokens(r,e){let n=[];for(let s of r)switch(n=n.concat(e.call(this,s)),s.type){case"table":{let t=s;for(let a of t.header)n=n.concat(this.walkTokens(a.tokens,e));for(let a of t.rows)for(let l of a)n=n.concat(this.walkTokens(l.tokens,e));break}case"list":{let t=s;n=n.concat(this.walkTokens(t.items,e));break}default:{let t=s;this.defaults.extensions?.childTokens?.[t.type]?this.defaults.extensions.childTokens[t.type].forEach(a=>{let l=t[a].flat(1/0);n=n.concat(this.walkTokens(l,e))}):t.tokens&&(n=n.concat(this.walkTokens(t.tokens,e)))}}return n}use(...r){let e=this.defaults.extensions||{renderers:{},childTokens:{}};return r.forEach(n=>{let s={...n};if(s.async=this.defaults.async||s.async||!1,n.extensions&&(n.extensions.forEach(t=>{if(!t.name)throw new Error("extension name required");if("renderer"in t){let a=e.renderers[t.name];a?e.renderers[t.name]=function(...l){let u=t.renderer.apply(this,l);return u===!1&&(u=a.apply(this,l)),u}:e.renderers[t.name]=t.renderer}if("tokenizer"in t){if(!t.level||t.level!=="block"&&t.level!=="inline")throw new Error("extension level must be 'block' or 'inline'");let a=e[t.level];a?a.unshift(t.tokenizer):e[t.level]=[t.tokenizer],t.start&&(t.level==="block"?e.startBlock?e.startBlock.push(t.start):e.startBlock=[t.start]:t.level==="inline"&&(e.startInline?e.startInline.push(t.start):e.startInline=[t.start]))}"childTokens"in t&&t.childTokens&&(e.childTokens[t.name]=t.childTokens)}),s.extensions=e),n.renderer){let t=this.defaults.renderer||new $e(this.defaults);for(let a in n.renderer){if(!(a in t))throw new Error(`renderer '${a}' does not exist`);if(["options","parser"].includes(a))continue;let l=a,u=n.renderer[l],o=t[l];t[l]=(...f)=>{let p=u.apply(t,f);return p===!1&&(p=o.apply(t,f)),p||""}}s.renderer=t}if(n.tokenizer){let t=this.defaults.tokenizer||new ze(this.defaults);for(let a in n.tokenizer){if(!(a in t))throw new Error(`tokenizer '${a}' does not exist`);if(["options","rules","lexer"].includes(a))continue;let l=a,u=n.tokenizer[l],o=t[l];t[l]=(...f)=>{let p=u.apply(t,f);return p===!1&&(p=o.apply(t,f)),p}}s.tokenizer=t}if(n.hooks){let t=this.defaults.hooks||new Te;for(let a in n.hooks){if(!(a in t))throw new Error(`hook '${a}' does not exist`);if(["options","block"].includes(a))continue;let l=a,u=n.hooks[l],o=t[l];Te.passThroughHooks.has(a)?t[l]=f=>{if(this.defaults.async&&Te.passThroughHooksRespectAsync.has(a))return(async()=>{let b=await u.call(t,f);return o.call(t,b)})();let p=u.call(t,f);return o.call(t,p)}:t[l]=(...f)=>{if(this.defaults.async)return(async()=>{let b=await u.apply(t,f);return b===!1&&(b=await o.apply(t,f)),b})();let p=u.apply(t,f);return p===!1&&(p=o.apply(t,f)),p}}s.hooks=t}if(n.walkTokens){let t=this.defaults.walkTokens,a=n.walkTokens;s.walkTokens=function(l){let u=[];return u.push(a.call(this,l)),t&&(u=u.concat(t.call(this,l))),u}}this.defaults={...this.defaults,...s}}),this}setOptions(r){return this.defaults={...this.defaults,...r},this}lexer(r,e){return F.lex(r,e??this.defaults)}parser(r,e){return B.parse(r,e??this.defaults)}parseMarkdown(r){return(e,n)=>{let s={...n},t={...this.defaults,...s},a=this.onError(!!t.silent,!!t.async);if(this.defaults.async===!0&&s.async===!1)return a(new Error("marked(): The async option was set to true by an extension. Remove async: false from the parse options object to return a Promise."));if(typeof e>"u"||e===null)return a(new Error("marked(): input parameter is undefined or null"));if(typeof e!="string")return a(new Error("marked(): input parameter is of type "+Object.prototype.toString.call(e)+", string expected"));if(t.hooks&&(t.hooks.options=t,t.hooks.block=r),t.async)return(async()=>{let l=t.hooks?await t.hooks.preprocess(e):e,u=await(t.hooks?await t.hooks.provideLexer():r?F.lex:F.lexInline)(l,t),o=t.hooks?await t.hooks.processAllTokens(u):u;t.walkTokens&&await Promise.all(this.walkTokens(o,t.walkTokens));let f=await(t.hooks?await t.hooks.provideParser():r?B.parse:B.parseInline)(o,t);return t.hooks?await t.hooks.postprocess(f):f})().catch(a);try{t.hooks&&(e=t.hooks.preprocess(e));let l=(t.hooks?t.hooks.provideLexer():r?F.lex:F.lexInline)(e,t);t.hooks&&(l=t.hooks.processAllTokens(l)),t.walkTokens&&this.walkTokens(l,t.walkTokens);let u=(t.hooks?t.hooks.provideParser():r?B.parse:B.parseInline)(l,t);return t.hooks&&(u=t.hooks.postprocess(u)),u}catch(l){return a(l)}}}onError(r,e){return n=>{if(n.message+=`
60
+ Please report this to https://github.com/markedjs/marked.`,r){let s="<p>An error occurred:</p><pre>"+q(n.message+"",!0)+"</pre>";return e?Promise.resolve(s):s}if(e)return Promise.reject(n);throw n}}},ee=new Xr;function T(r,e){return ee.parse(r,e)}T.options=T.setOptions=function(r){return ee.setOptions(r),T.defaults=ee.defaults,hn(T.defaults),T};T.getDefaults=gt;T.defaults=te;T.use=function(...r){return ee.use(...r),T.defaults=ee.defaults,hn(T.defaults),T};T.walkTokens=function(r,e){return ee.walkTokens(r,e)};T.parseInline=ee.parseInline;T.Parser=B;T.parser=B.parse;T.Renderer=$e;T.TextRenderer=At;T.Lexer=F;T.lexer=F.lex;T.Tokenizer=ze;T.Hooks=Te;T.parse=T;T.options;T.setOptions;T.use;T.walkTokens;T.parseInline;B.parse;F.lex;export{T as g,Qr as p};
@@ -0,0 +1,9 @@
1
+ import{R as gt,A as Y,g as ke,x as F,I as Is,u as q,_ as mr,a as js,q as Oe,T as rt,y as Zt,O as gr,m as yr,b as vr,d as Te,k as Ie,D as Tr,c as xr}from"./preact-vendor-jo0muZ28.js";const je=gt({});function Ne(t){const e=Y(null);return e.current===null&&(e.current=t()),e.current}const Jt=gt(null),Ue=gt({transformPagePoint:t=>t,isStatic:!1,reducedMotion:"never"});class Pr extends js{getSnapshotBeforeUpdate(e){const n=this.props.childRef.current;if(n&&e.isPresent&&!this.props.isPresent){const s=this.props.sizeRef.current;s.height=n.offsetHeight||0,s.width=n.offsetWidth||0,s.top=n.offsetTop,s.left=n.offsetLeft}return null}componentDidUpdate(){}render(){return this.props.children}}function Sr({children:t,isPresent:e}){const n=ke(),s=Y(null),i=Y({width:0,height:0,top:0,left:0}),{nonce:o}=F(Ue);return Is(()=>{const{width:r,height:a,top:l,left:u}=i.current;if(e||!s.current||!r||!a)return;s.current.dataset.motionPopId=n;const c=document.createElement("style");return o&&(c.nonce=o),document.head.appendChild(c),c.sheet&&c.sheet.insertRule(`
2
+ [data-motion-pop-id="${n}"] {
3
+ position: absolute !important;
4
+ width: ${r}px !important;
5
+ height: ${a}px !important;
6
+ top: ${l}px !important;
7
+ left: ${u}px !important;
8
+ }
9
+ `),()=>{document.head.removeChild(c)}},[e]),q(Pr,{isPresent:e,childRef:s,sizeRef:i,children:mr(t,{ref:s})})}const Ar=({children:t,initial:e,isPresent:n,onExitComplete:s,custom:i,presenceAffectsLayout:o,mode:r})=>{const a=Ne(br),l=ke(),u=Oe(h=>{a.set(h,!0);for(const f of a.values())if(!f)return;s&&s()},[a,s]),c=rt(()=>({id:l,initial:e,isPresent:n,custom:i,onExitComplete:u,register:h=>(a.set(h,!1),()=>a.delete(h))}),o?[Math.random(),u]:[n,u]);return rt(()=>{a.forEach((h,f)=>a.set(f,!1))},[n]),Zt(()=>{!n&&!a.size&&s&&s()},[n]),r==="popLayout"&&(t=q(Sr,{isPresent:n,children:t})),q(Jt.Provider,{value:c,children:t})};function br(){return new Map}function Ns(t=!0){const e=F(Jt);if(e===null)return[!0,null];const{isPresent:n,onExitComplete:s,register:i}=e,o=ke();Zt(()=>{t&&i(o)},[t]);const r=Oe(()=>t&&s&&s(o),[o,s,t]);return!n&&s?[!1,r]:[!0]}const Ot=t=>t.key||"";function Sn(t){const e=[];return gr.forEach(t,n=>{yr(n)&&e.push(n)}),e}const _e=typeof window<"u",Us=_e?vr:Zt,qu=({children:t,custom:e,initial:n=!0,onExitComplete:s,presenceAffectsLayout:i=!0,mode:o="sync",propagate:r=!1})=>{const[a,l]=Ns(r),u=rt(()=>Sn(t),[t]),c=r&&!a?[]:u.map(Ot),h=Y(!0),f=Y(u),d=Ne(()=>new Map),[p,m]=Te(u),[y,g]=Te(u);Us(()=>{h.current=!1,f.current=u;for(let A=0;A<y.length;A++){const v=Ot(y[A]);c.includes(v)?d.delete(v):d.get(v)!==!0&&d.set(v,!1)}},[y,c.length,c.join("-")]);const T=[];if(u!==p){let A=[...u];for(let v=0;v<y.length;v++){const b=y[v],C=Ot(b);c.includes(C)||(A.splice(v,0,b),T.push(b))}o==="wait"&&T.length&&(A=T),g(Sn(A)),m(u);return}const{forceRender:x}=F(je);return q(Ie,{children:y.map(A=>{const v=Ot(A),b=r&&!a?!1:u===y||c.includes(v),C=()=>{if(d.has(v))d.set(v,!0);else return;let S=!0;d.forEach(E=>{E||(S=!1)}),S&&(x?.(),g(f.current),r&&l?.(),s&&s())};return q(Ar,{isPresent:b,initial:!h.current||n?void 0:!1,custom:b?void 0:e,presenceAffectsLayout:i,mode:o,onExitComplete:b?void 0:C,children:A},v)})})},O=t=>t;let _s=O;const wr={useManualTiming:!1};function Vr(t){let e=new Set,n=new Set,s=!1,i=!1;const o=new WeakSet;let r={delta:0,timestamp:0,isProcessing:!1};function a(u){o.has(u)&&(l.schedule(u),t()),u(r)}const l={schedule:(u,c=!1,h=!1)=>{const d=h&&s?e:n;return c&&o.add(u),d.has(u)||d.add(u),u},cancel:u=>{n.delete(u),o.delete(u)},process:u=>{if(r=u,s){i=!0;return}s=!0,[e,n]=[n,e],e.forEach(a),e.clear(),s=!1,i&&(i=!1,l.process(u))}};return l}const It=["read","resolveKeyframes","update","preRender","render","postRender"],Dr=40;function Ks(t,e){let n=!1,s=!0;const i={delta:0,timestamp:0,isProcessing:!1},o=()=>n=!0,r=It.reduce((g,T)=>(g[T]=Vr(o),g),{}),{read:a,resolveKeyframes:l,update:u,preRender:c,render:h,postRender:f}=r,d=()=>{const g=performance.now();n=!1,i.delta=s?1e3/60:Math.max(Math.min(g-i.timestamp,Dr),1),i.timestamp=g,i.isProcessing=!0,a.process(i),l.process(i),u.process(i),c.process(i),h.process(i),f.process(i),i.isProcessing=!1,n&&e&&(s=!1,t(d))},p=()=>{n=!0,s=!0,i.isProcessing||t(d)};return{schedule:It.reduce((g,T)=>{const x=r[T];return g[T]=(A,v=!1,b=!1)=>(n||p(),x.schedule(A,v,b)),g},{}),cancel:g=>{for(let T=0;T<It.length;T++)r[It[T]].cancel(g)},state:i,steps:r}}const{schedule:w,cancel:Z,state:R,steps:oe}=Ks(typeof requestAnimationFrame<"u"?requestAnimationFrame:O,!0),Ws=gt({strict:!1}),An={animation:["animate","variants","whileHover","whileTap","exit","whileInView","whileFocus","whileDrag"],exit:["exit"],drag:["drag","dragControls"],focus:["whileFocus"],hover:["whileHover","onHoverStart","onHoverEnd"],tap:["whileTap","onTap","onTapStart","onTapCancel"],pan:["onPan","onPanStart","onPanSessionStart","onPanEnd"],inView:["whileInView","onViewportEnter","onViewportLeave"],layout:["layout","layoutId"]},dt={};for(const t in An)dt[t]={isEnabled:e=>An[t].some(n=>!!e[n])};function Cr(t){for(const e in t)dt[e]={...dt[e],...t[e]}}const Mr=new Set(["animate","exit","variants","initial","style","values","variants","transition","transformTemplate","custom","inherit","onBeforeLayoutMeasure","onAnimationStart","onAnimationComplete","onUpdate","onDragStart","onDrag","onDragEnd","onMeasureDragConstraints","onDirectionLock","onDragTransitionEnd","_dragX","_dragY","onHoverStart","onHoverEnd","onViewportEnter","onViewportLeave","globalTapTarget","ignoreStrict","viewport"]);function Wt(t){return t.startsWith("while")||t.startsWith("drag")&&t!=="draggable"||t.startsWith("layout")||t.startsWith("onTap")||t.startsWith("onPan")||t.startsWith("onLayout")||Mr.has(t)}let $s=t=>!Wt(t);function Rr(t){t&&($s=e=>e.startsWith("on")?!Wt(e):t(e))}try{Rr(require("@emotion/is-prop-valid").default)}catch{}function Er(t,e,n){const s={};for(const i in t)i==="values"&&typeof t.values=="object"||($s(i)||n===!0&&Wt(i)||!e&&!Wt(i)||t.draggable&&i.startsWith("onDrag"))&&(s[i]=t[i]);return s}function Lr(t){if(typeof Proxy>"u")return t;const e=new Map,n=(...s)=>t(...s);return new Proxy(n,{get:(s,i)=>i==="create"?t:(e.has(i)||e.set(i,t(i)),e.get(i))})}const Qt=gt({});function Dt(t){return typeof t=="string"||Array.isArray(t)}function te(t){return t!==null&&typeof t=="object"&&typeof t.start=="function"}const Ke=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],We=["initial",...Ke];function ee(t){return te(t.animate)||We.some(e=>Dt(t[e]))}function Gs(t){return!!(ee(t)||t.variants)}function Fr(t,e){if(ee(t)){const{initial:n,animate:s}=t;return{initial:n===!1||Dt(n)?n:void 0,animate:Dt(s)?s:void 0}}return t.inherit!==!1?e:{}}function Br(t){const{initial:e,animate:n}=Fr(t,F(Qt));return rt(()=>({initial:e,animate:n}),[bn(e),bn(n)])}function bn(t){return Array.isArray(t)?t.join(" "):t}const kr=Symbol.for("motionComponentSymbol");function lt(t){return t&&typeof t=="object"&&Object.prototype.hasOwnProperty.call(t,"current")}function Or(t,e,n){return Oe(s=>{s&&t.onMount&&t.onMount(s),e&&(s?e.mount(s):e.unmount()),n&&(typeof n=="function"?n(s):lt(n)&&(n.current=s))},[e])}const $e=t=>t.replace(/([a-z])([A-Z])/gu,"$1-$2").toLowerCase(),Ir="framerAppearId",zs="data-"+$e(Ir),{schedule:Ge}=Ks(queueMicrotask,!1),Hs=gt({});function jr(t,e,n,s,i){var o,r;const{visualElement:a}=F(Qt),l=F(Ws),u=F(Jt),c=F(Ue).reducedMotion,h=Y(null);s=s||l.renderer,!h.current&&s&&(h.current=s(t,{visualState:e,parent:a,props:n,presenceContext:u,blockInitialAnimation:u?u.initial===!1:!1,reducedMotionConfig:c}));const f=h.current,d=F(Hs);f&&!f.projection&&i&&(f.type==="html"||f.type==="svg")&&Nr(h.current,n,i,d);const p=Y(!1);Is(()=>{f&&p.current&&f.update(n,u)});const m=n[zs],y=Y(!!m&&!(!((o=window.MotionHandoffIsComplete)===null||o===void 0)&&o.call(window,m))&&((r=window.MotionHasOptimisedAnimation)===null||r===void 0?void 0:r.call(window,m)));return Us(()=>{f&&(p.current=!0,window.MotionIsMounted=!0,f.updateFeatures(),Ge.render(f.render),y.current&&f.animationState&&f.animationState.animateChanges())}),Zt(()=>{f&&(!y.current&&f.animationState&&f.animationState.animateChanges(),y.current&&(queueMicrotask(()=>{var g;(g=window.MotionHandoffMarkAsComplete)===null||g===void 0||g.call(window,m)}),y.current=!1))}),f}function Nr(t,e,n,s){const{layoutId:i,layout:o,drag:r,dragConstraints:a,layoutScroll:l,layoutRoot:u}=e;t.projection=new n(t.latestValues,e["data-framer-portal-id"]?void 0:Xs(t.parent)),t.projection.setOptions({layoutId:i,layout:o,alwaysMeasureLayout:!!r||a&&lt(a),visualElement:t,animationType:typeof o=="string"?o:"both",initialPromotionConfig:s,layoutScroll:l,layoutRoot:u})}function Xs(t){if(t)return t.options.allowProjection!==!1?t.projection:Xs(t.parent)}function Ur({preloadedFeatures:t,createVisualElement:e,useRender:n,useVisualState:s,Component:i}){var o,r;t&&Cr(t);function a(u,c){let h;const f={...F(Ue),...u,layoutId:_r(u)},{isStatic:d}=f,p=Br(u),m=s(u,d);if(!d&&_e){Kr();const y=Wr(f);h=y.MeasureLayout,p.visualElement=jr(i,m,f,e,y.ProjectionNode)}return q(Qt.Provider,{value:p,children:[h&&p.visualElement?q(h,{visualElement:p.visualElement,...f}):null,n(i,u,Or(m,p.visualElement,c),m,d,p.visualElement)]})}a.displayName=`motion.${typeof i=="string"?i:`create(${(r=(o=i.displayName)!==null&&o!==void 0?o:i.name)!==null&&r!==void 0?r:""})`}`;const l=Tr(a);return l[kr]=i,l}function _r({layoutId:t}){const e=F(je).id;return e&&t!==void 0?e+"-"+t:t}function Kr(t,e){F(Ws).strict}function Wr(t){const{drag:e,layout:n}=dt;if(!e&&!n)return{};const s={...e,...n};return{MeasureLayout:e?.isEnabled(t)||n?.isEnabled(t)?s.MeasureLayout:void 0,ProjectionNode:s.ProjectionNode}}const $r=["animate","circle","defs","desc","ellipse","g","image","line","filter","marker","mask","metadata","path","pattern","polygon","polyline","rect","stop","switch","symbol","svg","text","tspan","use","view"];function ze(t){return typeof t!="string"||t.includes("-")?!1:!!($r.indexOf(t)>-1||/[A-Z]/u.test(t))}function wn(t){const e=[{},{}];return t?.values.forEach((n,s)=>{e[0][s]=n.get(),e[1][s]=n.getVelocity()}),e}function He(t,e,n,s){if(typeof e=="function"){const[i,o]=wn(s);e=e(n!==void 0?n:t.custom,i,o)}if(typeof e=="string"&&(e=t.variants&&t.variants[e]),typeof e=="function"){const[i,o]=wn(s);e=e(n!==void 0?n:t.custom,i,o)}return e}const xe=t=>Array.isArray(t),Gr=t=>!!(t&&typeof t=="object"&&t.mix&&t.toValue),zr=t=>xe(t)?t[t.length-1]||0:t,B=t=>!!(t&&t.getVelocity);function Ut(t){const e=B(t)?t.get():t;return Gr(e)?e.toValue():e}function Hr({scrapeMotionValuesFromProps:t,createRenderState:e,onUpdate:n},s,i,o){const r={latestValues:Xr(s,i,o,t),renderState:e()};return n&&(r.onMount=a=>n({props:s,current:a,...r}),r.onUpdate=a=>n(a)),r}const Ys=t=>(e,n)=>{const s=F(Qt),i=F(Jt),o=()=>Hr(t,e,s,i);return n?o():Ne(o)};function Xr(t,e,n,s){const i={},o=s(t,{});for(const f in o)i[f]=Ut(o[f]);let{initial:r,animate:a}=t;const l=ee(t),u=Gs(t);e&&u&&!l&&t.inherit!==!1&&(r===void 0&&(r=e.initial),a===void 0&&(a=e.animate));let c=n?n.initial===!1:!1;c=c||r===!1;const h=c?a:r;if(h&&typeof h!="boolean"&&!te(h)){const f=Array.isArray(h)?h:[h];for(let d=0;d<f.length;d++){const p=He(t,f[d]);if(p){const{transitionEnd:m,transition:y,...g}=p;for(const T in g){let x=g[T];if(Array.isArray(x)){const A=c?x.length-1:0;x=x[A]}x!==null&&(i[T]=x)}for(const T in m)i[T]=m[T]}}}return i}const yt=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],ot=new Set(yt),qs=t=>e=>typeof e=="string"&&e.startsWith(t),Zs=qs("--"),Yr=qs("var(--"),Xe=t=>Yr(t)?qr.test(t.split("/*")[0].trim()):!1,qr=/var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu,Js=(t,e)=>e&&typeof t=="number"?e.transform(t):t,H=(t,e,n)=>n>e?e:n<t?t:n,vt={test:t=>typeof t=="number",parse:parseFloat,transform:t=>t},Ct={...vt,transform:t=>H(0,1,t)},jt={...vt,default:1},Lt=t=>({test:e=>typeof e=="string"&&e.endsWith(t)&&e.split(" ").length===1,parse:parseFloat,transform:e=>`${e}${t}`}),X=Lt("deg"),K=Lt("%"),P=Lt("px"),Zr=Lt("vh"),Jr=Lt("vw"),Vn={...K,parse:t=>K.parse(t)/100,transform:t=>K.transform(t*100)},Qr={borderWidth:P,borderTopWidth:P,borderRightWidth:P,borderBottomWidth:P,borderLeftWidth:P,borderRadius:P,radius:P,borderTopLeftRadius:P,borderTopRightRadius:P,borderBottomRightRadius:P,borderBottomLeftRadius:P,width:P,maxWidth:P,height:P,maxHeight:P,top:P,right:P,bottom:P,left:P,padding:P,paddingTop:P,paddingRight:P,paddingBottom:P,paddingLeft:P,margin:P,marginTop:P,marginRight:P,marginBottom:P,marginLeft:P,backgroundPositionX:P,backgroundPositionY:P},to={rotate:X,rotateX:X,rotateY:X,rotateZ:X,scale:jt,scaleX:jt,scaleY:jt,scaleZ:jt,skew:X,skewX:X,skewY:X,distance:P,translateX:P,translateY:P,translateZ:P,x:P,y:P,z:P,perspective:P,transformPerspective:P,opacity:Ct,originX:Vn,originY:Vn,originZ:P},Dn={...vt,transform:Math.round},Ye={...Qr,...to,zIndex:Dn,size:P,fillOpacity:Ct,strokeOpacity:Ct,numOctaves:Dn},eo={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},no=yt.length;function so(t,e,n){let s="",i=!0;for(let o=0;o<no;o++){const r=yt[o],a=t[r];if(a===void 0)continue;let l=!0;if(typeof a=="number"?l=a===(r.startsWith("scale")?1:0):l=parseFloat(a)===0,!l||n){const u=Js(a,Ye[r]);if(!l){i=!1;const c=eo[r]||r;s+=`${c}(${u}) `}n&&(e[r]=u)}}return s=s.trim(),n?s=n(e,i?"":s):i&&(s="none"),s}function qe(t,e,n){const{style:s,vars:i,transformOrigin:o}=t;let r=!1,a=!1;for(const l in e){const u=e[l];if(ot.has(l)){r=!0;continue}else if(Zs(l)){i[l]=u;continue}else{const c=Js(u,Ye[l]);l.startsWith("origin")?(a=!0,o[l]=c):s[l]=c}}if(e.transform||(r||n?s.transform=so(e,t.transform,n):s.transform&&(s.transform="none")),a){const{originX:l="50%",originY:u="50%",originZ:c=0}=o;s.transformOrigin=`${l} ${u} ${c}`}}const io={offset:"stroke-dashoffset",array:"stroke-dasharray"},ro={offset:"strokeDashoffset",array:"strokeDasharray"};function oo(t,e,n=1,s=0,i=!0){t.pathLength=1;const o=i?io:ro;t[o.offset]=P.transform(-s);const r=P.transform(e),a=P.transform(n);t[o.array]=`${r} ${a}`}function Cn(t,e,n){return typeof t=="string"?t:P.transform(e+n*t)}function ao(t,e,n){const s=Cn(e,t.x,t.width),i=Cn(n,t.y,t.height);return`${s} ${i}`}function Ze(t,{attrX:e,attrY:n,attrScale:s,originX:i,originY:o,pathLength:r,pathSpacing:a=1,pathOffset:l=0,...u},c,h){if(qe(t,u,h),c){t.style.viewBox&&(t.attrs.viewBox=t.style.viewBox);return}t.attrs=t.style,t.style={};const{attrs:f,style:d,dimensions:p}=t;f.transform&&(p&&(d.transform=f.transform),delete f.transform),p&&(i!==void 0||o!==void 0||d.transform)&&(d.transformOrigin=ao(p,i!==void 0?i:.5,o!==void 0?o:.5)),e!==void 0&&(f.x=e),n!==void 0&&(f.y=n),s!==void 0&&(f.scale=s),r!==void 0&&oo(f,r,a,l,!1)}const Je=()=>({style:{},transform:{},transformOrigin:{},vars:{}}),Qs=()=>({...Je(),attrs:{}}),Qe=t=>typeof t=="string"&&t.toLowerCase()==="svg";function ti(t,{style:e,vars:n},s,i){Object.assign(t.style,e,i&&i.getProjectionStyles(s));for(const o in n)t.style.setProperty(o,n[o])}const ei=new Set(["baseFrequency","diffuseConstant","kernelMatrix","kernelUnitLength","keySplines","keyTimes","limitingConeAngle","markerHeight","markerWidth","numOctaves","targetX","targetY","surfaceScale","specularConstant","specularExponent","stdDeviation","tableValues","viewBox","gradientTransform","pathLength","startOffset","textLength","lengthAdjust"]);function ni(t,e,n,s){ti(t,e,void 0,s);for(const i in e.attrs)t.setAttribute(ei.has(i)?i:$e(i),e.attrs[i])}const $t={};function lo(t){Object.assign($t,t)}function si(t,{layout:e,layoutId:n}){return ot.has(t)||t.startsWith("origin")||(e||n!==void 0)&&(!!$t[t]||t==="opacity")}function tn(t,e,n){var s;const{style:i}=t,o={};for(const r in i)(B(i[r])||e.style&&B(e.style[r])||si(r,t)||((s=n?.getValue(r))===null||s===void 0?void 0:s.liveStyle)!==void 0)&&(o[r]=i[r]);return o}function ii(t,e,n){const s=tn(t,e,n);for(const i in t)if(B(t[i])||B(e[i])){const o=yt.indexOf(i)!==-1?"attr"+i.charAt(0).toUpperCase()+i.substring(1):i;s[o]=t[i]}return s}function uo(t,e){try{e.dimensions=typeof t.getBBox=="function"?t.getBBox():t.getBoundingClientRect()}catch{e.dimensions={x:0,y:0,width:0,height:0}}}const Mn=["x","y","width","height","cx","cy","r"],co={useVisualState:Ys({scrapeMotionValuesFromProps:ii,createRenderState:Qs,onUpdate:({props:t,prevProps:e,current:n,renderState:s,latestValues:i})=>{if(!n)return;let o=!!t.drag;if(!o){for(const a in i)if(ot.has(a)){o=!0;break}}if(!o)return;let r=!e;if(e)for(let a=0;a<Mn.length;a++){const l=Mn[a];t[l]!==e[l]&&(r=!0)}r&&w.read(()=>{uo(n,s),w.render(()=>{Ze(s,i,Qe(n.tagName),t.transformTemplate),ni(n,s)})})}})},ho={useVisualState:Ys({scrapeMotionValuesFromProps:tn,createRenderState:Je})};function ri(t,e,n){for(const s in e)!B(e[s])&&!si(s,n)&&(t[s]=e[s])}function fo({transformTemplate:t},e){return rt(()=>{const n=Je();return qe(n,e,t),Object.assign({},n.vars,n.style)},[e])}function po(t,e){const n=t.style||{},s={};return ri(s,n,t),Object.assign(s,fo(t,e)),s}function mo(t,e){const n={},s=po(t,e);return t.drag&&t.dragListener!==!1&&(n.draggable=!1,s.userSelect=s.WebkitUserSelect=s.WebkitTouchCallout="none",s.touchAction=t.drag===!0?"none":`pan-${t.drag==="x"?"y":"x"}`),t.tabIndex===void 0&&(t.onTap||t.onTapStart||t.whileTap)&&(n.tabIndex=0),n.style=s,n}function go(t,e,n,s){const i=rt(()=>{const o=Qs();return Ze(o,e,Qe(s),t.transformTemplate),{...o.attrs,style:{...o.style}}},[e]);if(t.style){const o={};ri(o,t.style,t),i.style={...o,...i.style}}return i}function yo(t=!1){return(n,s,i,{latestValues:o},r)=>{const l=(ze(n)?go:mo)(s,o,r,n),u=Er(s,typeof n=="string",t),c=n!==Ie?{...u,...l,ref:i}:{},{children:h}=s,f=rt(()=>B(h)?h.get():h,[h]);return xr(n,{...c,children:f})}}function vo(t,e){return function(s,{forwardMotionProps:i}={forwardMotionProps:!1}){const r={...ze(s)?co:ho,preloadedFeatures:t,useRender:yo(i),createVisualElement:e,Component:s};return Ur(r)}}function oi(t,e){if(!Array.isArray(e))return!1;const n=e.length;if(n!==t.length)return!1;for(let s=0;s<n;s++)if(e[s]!==t[s])return!1;return!0}function ne(t,e,n){const s=t.getProps();return He(s,e,n!==void 0?n:s.custom,t)}function en(t,e){return t?t[e]||t.default||t:void 0}const ai=new Set(["width","height","top","left","right","bottom",...yt]);let _t;function To(){_t=void 0}const W={now:()=>(_t===void 0&&W.set(R.isProcessing||wr.useManualTiming?R.timestamp:performance.now()),_t),set:t=>{_t=t,queueMicrotask(To)}};function nn(t,e){t.indexOf(e)===-1&&t.push(e)}function sn(t,e){const n=t.indexOf(e);n>-1&&t.splice(n,1)}class rn{constructor(){this.subscriptions=[]}add(e){return nn(this.subscriptions,e),()=>sn(this.subscriptions,e)}notify(e,n,s){const i=this.subscriptions.length;if(i)if(i===1)this.subscriptions[0](e,n,s);else for(let o=0;o<i;o++){const r=this.subscriptions[o];r&&r(e,n,s)}}getSize(){return this.subscriptions.length}clear(){this.subscriptions.length=0}}function li(t,e){return e?t*(1e3/e):0}const Rn=30,xo=t=>!isNaN(parseFloat(t));class Po{constructor(e,n={}){this.version="11.18.2",this.canTrackVelocity=null,this.events={},this.updateAndNotify=(s,i=!0)=>{const o=W.now();this.updatedAt!==o&&this.setPrevFrameValue(),this.prev=this.current,this.setCurrent(s),this.current!==this.prev&&this.events.change&&this.events.change.notify(this.current),i&&this.events.renderRequest&&this.events.renderRequest.notify(this.current)},this.hasAnimated=!1,this.setCurrent(e),this.owner=n.owner}setCurrent(e){this.current=e,this.updatedAt=W.now(),this.canTrackVelocity===null&&e!==void 0&&(this.canTrackVelocity=xo(this.current))}setPrevFrameValue(e=this.current){this.prevFrameValue=e,this.prevUpdatedAt=this.updatedAt}onChange(e){return this.on("change",e)}on(e,n){this.events[e]||(this.events[e]=new rn);const s=this.events[e].add(n);return e==="change"?()=>{s(),w.read(()=>{this.events.change.getSize()||this.stop()})}:s}clearListeners(){for(const e in this.events)this.events[e].clear()}attach(e,n){this.passiveEffect=e,this.stopPassiveEffect=n}set(e,n=!0){!n||!this.passiveEffect?this.updateAndNotify(e,n):this.passiveEffect(e,this.updateAndNotify)}setWithVelocity(e,n,s){this.set(n),this.prev=void 0,this.prevFrameValue=e,this.prevUpdatedAt=this.updatedAt-s}jump(e,n=!0){this.updateAndNotify(e),this.prev=e,this.prevUpdatedAt=this.prevFrameValue=void 0,n&&this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}get(){return this.current}getPrevious(){return this.prev}getVelocity(){const e=W.now();if(!this.canTrackVelocity||this.prevFrameValue===void 0||e-this.updatedAt>Rn)return 0;const n=Math.min(this.updatedAt-this.prevUpdatedAt,Rn);return li(parseFloat(this.current)-parseFloat(this.prevFrameValue),n)}start(e){return this.stop(),new Promise(n=>{this.hasAnimated=!0,this.animation=e(n),this.events.animationStart&&this.events.animationStart.notify()}).then(()=>{this.events.animationComplete&&this.events.animationComplete.notify(),this.clearAnimation()})}stop(){this.animation&&(this.animation.stop(),this.events.animationCancel&&this.events.animationCancel.notify()),this.clearAnimation()}isAnimating(){return!!this.animation}clearAnimation(){delete this.animation}destroy(){this.clearListeners(),this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}}function Mt(t,e){return new Po(t,e)}function So(t,e,n){t.hasValue(e)?t.getValue(e).set(n):t.addValue(e,Mt(n))}function Ao(t,e){const n=ne(t,e);let{transitionEnd:s={},transition:i={},...o}=n||{};o={...o,...s};for(const r in o){const a=zr(o[r]);So(t,r,a)}}function bo(t){return!!(B(t)&&t.add)}function Pe(t,e){const n=t.getValue("willChange");if(bo(n))return n.add(e)}function ui(t){return t.props[zs]}function on(t){let e;return()=>(e===void 0&&(e=t()),e)}const wo=on(()=>window.ScrollTimeline!==void 0);class Vo{constructor(e){this.stop=()=>this.runAll("stop"),this.animations=e.filter(Boolean)}get finished(){return Promise.all(this.animations.map(e=>"finished"in e?e.finished:e))}getAll(e){return this.animations[0][e]}setAll(e,n){for(let s=0;s<this.animations.length;s++)this.animations[s][e]=n}attachTimeline(e,n){const s=this.animations.map(i=>{if(wo()&&i.attachTimeline)return i.attachTimeline(e);if(typeof n=="function")return n(i)});return()=>{s.forEach((i,o)=>{i&&i(),this.animations[o].stop()})}}get time(){return this.getAll("time")}set time(e){this.setAll("time",e)}get speed(){return this.getAll("speed")}set speed(e){this.setAll("speed",e)}get startTime(){return this.getAll("startTime")}get duration(){let e=0;for(let n=0;n<this.animations.length;n++)e=Math.max(e,this.animations[n].duration);return e}runAll(e){this.animations.forEach(n=>n[e]())}flatten(){this.runAll("flatten")}play(){this.runAll("play")}pause(){this.runAll("pause")}cancel(){this.runAll("cancel")}complete(){this.runAll("complete")}}class Do extends Vo{then(e,n){return Promise.all(this.animations).then(e).catch(n)}}const G=t=>t*1e3,z=t=>t/1e3;function an(t){return typeof t=="function"}function En(t,e){t.timeline=e,t.onfinish=null}const ln=t=>Array.isArray(t)&&typeof t[0]=="number",Co={linearEasing:void 0};function Mo(t,e){const n=on(t);return()=>{var s;return(s=Co[e])!==null&&s!==void 0?s:n()}}const Gt=Mo(()=>{try{document.createElement("div").animate({opacity:0},{easing:"linear(0, 1)"})}catch{return!1}return!0},"linearEasing"),pt=(t,e,n)=>{const s=e-t;return s===0?1:(n-t)/s},ci=(t,e,n=10)=>{let s="";const i=Math.max(Math.round(e/n),2);for(let o=0;o<i;o++)s+=t(pt(0,i-1,o))+", ";return`linear(${s.substring(0,s.length-2)})`};function hi(t){return!!(typeof t=="function"&&Gt()||!t||typeof t=="string"&&(t in Se||Gt())||ln(t)||Array.isArray(t)&&t.every(hi))}const xt=([t,e,n,s])=>`cubic-bezier(${t}, ${e}, ${n}, ${s})`,Se={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:xt([0,.65,.55,1]),circOut:xt([.55,0,1,.45]),backIn:xt([.31,.01,.66,-.59]),backOut:xt([.33,1.53,.69,.99])};function fi(t,e){if(t)return typeof t=="function"&&Gt()?ci(t,e):ln(t)?xt(t):Array.isArray(t)?t.map(n=>fi(n,e)||Se.easeOut):Se[t]}const di=(t,e,n)=>(((1-3*n+3*e)*t+(3*n-6*e))*t+3*e)*t,Ro=1e-7,Eo=12;function Lo(t,e,n,s,i){let o,r,a=0;do r=e+(n-e)/2,o=di(r,s,i)-t,o>0?n=r:e=r;while(Math.abs(o)>Ro&&++a<Eo);return r}function Ft(t,e,n,s){if(t===e&&n===s)return O;const i=o=>Lo(o,0,1,t,n);return o=>o===0||o===1?o:di(i(o),e,s)}const pi=t=>e=>e<=.5?t(2*e)/2:(2-t(2*(1-e)))/2,mi=t=>e=>1-t(1-e),gi=Ft(.33,1.53,.69,.99),un=mi(gi),yi=pi(un),vi=t=>(t*=2)<1?.5*un(t):.5*(2-Math.pow(2,-10*(t-1))),cn=t=>1-Math.sin(Math.acos(t)),Ti=mi(cn),xi=pi(cn),Pi=t=>/^0[^.\s]+$/u.test(t);function Fo(t){return typeof t=="number"?t===0:t!==null?t==="none"||t==="0"||Pi(t):!0}const At=t=>Math.round(t*1e5)/1e5,hn=/-?(?:\d+(?:\.\d+)?|\.\d+)/gu;function Bo(t){return t==null}const ko=/^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu,fn=(t,e)=>n=>!!(typeof n=="string"&&ko.test(n)&&n.startsWith(t)||e&&!Bo(n)&&Object.prototype.hasOwnProperty.call(n,e)),Si=(t,e,n)=>s=>{if(typeof s!="string")return s;const[i,o,r,a]=s.match(hn);return{[t]:parseFloat(i),[e]:parseFloat(o),[n]:parseFloat(r),alpha:a!==void 0?parseFloat(a):1}},Oo=t=>H(0,255,t),ae={...vt,transform:t=>Math.round(Oo(t))},st={test:fn("rgb","red"),parse:Si("red","green","blue"),transform:({red:t,green:e,blue:n,alpha:s=1})=>"rgba("+ae.transform(t)+", "+ae.transform(e)+", "+ae.transform(n)+", "+At(Ct.transform(s))+")"};function Io(t){let e="",n="",s="",i="";return t.length>5?(e=t.substring(1,3),n=t.substring(3,5),s=t.substring(5,7),i=t.substring(7,9)):(e=t.substring(1,2),n=t.substring(2,3),s=t.substring(3,4),i=t.substring(4,5),e+=e,n+=n,s+=s,i+=i),{red:parseInt(e,16),green:parseInt(n,16),blue:parseInt(s,16),alpha:i?parseInt(i,16)/255:1}}const Ae={test:fn("#"),parse:Io,transform:st.transform},ut={test:fn("hsl","hue"),parse:Si("hue","saturation","lightness"),transform:({hue:t,saturation:e,lightness:n,alpha:s=1})=>"hsla("+Math.round(t)+", "+K.transform(At(e))+", "+K.transform(At(n))+", "+At(Ct.transform(s))+")"},L={test:t=>st.test(t)||Ae.test(t)||ut.test(t),parse:t=>st.test(t)?st.parse(t):ut.test(t)?ut.parse(t):Ae.parse(t),transform:t=>typeof t=="string"?t:t.hasOwnProperty("red")?st.transform(t):ut.transform(t)},jo=/(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu;function No(t){var e,n;return isNaN(t)&&typeof t=="string"&&(((e=t.match(hn))===null||e===void 0?void 0:e.length)||0)+(((n=t.match(jo))===null||n===void 0?void 0:n.length)||0)>0}const Ai="number",bi="color",Uo="var",_o="var(",Ln="${}",Ko=/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 Rt(t){const e=t.toString(),n=[],s={color:[],number:[],var:[]},i=[];let o=0;const a=e.replace(Ko,l=>(L.test(l)?(s.color.push(o),i.push(bi),n.push(L.parse(l))):l.startsWith(_o)?(s.var.push(o),i.push(Uo),n.push(l)):(s.number.push(o),i.push(Ai),n.push(parseFloat(l))),++o,Ln)).split(Ln);return{values:n,split:a,indexes:s,types:i}}function wi(t){return Rt(t).values}function Vi(t){const{split:e,types:n}=Rt(t),s=e.length;return i=>{let o="";for(let r=0;r<s;r++)if(o+=e[r],i[r]!==void 0){const a=n[r];a===Ai?o+=At(i[r]):a===bi?o+=L.transform(i[r]):o+=i[r]}return o}}const Wo=t=>typeof t=="number"?0:t;function $o(t){const e=wi(t);return Vi(t)(e.map(Wo))}const J={test:No,parse:wi,createTransformer:Vi,getAnimatableNone:$o},Go=new Set(["brightness","contrast","saturate","opacity"]);function zo(t){const[e,n]=t.slice(0,-1).split("(");if(e==="drop-shadow")return t;const[s]=n.match(hn)||[];if(!s)return t;const i=n.replace(s,"");let o=Go.has(e)?1:0;return s!==n&&(o*=100),e+"("+o+i+")"}const Ho=/\b([a-z-]*)\(.*?\)/gu,be={...J,getAnimatableNone:t=>{const e=t.match(Ho);return e?e.map(zo).join(" "):t}},Xo={...Ye,color:L,backgroundColor:L,outlineColor:L,fill:L,stroke:L,borderColor:L,borderTopColor:L,borderRightColor:L,borderBottomColor:L,borderLeftColor:L,filter:be,WebkitFilter:be},dn=t=>Xo[t];function Di(t,e){let n=dn(t);return n!==be&&(n=J),n.getAnimatableNone?n.getAnimatableNone(e):void 0}const Yo=new Set(["auto","none","0"]);function qo(t,e,n){let s=0,i;for(;s<t.length&&!i;){const o=t[s];typeof o=="string"&&!Yo.has(o)&&Rt(o).values.length&&(i=t[s]),s++}if(i&&n)for(const o of e)t[o]=Di(n,i)}const Fn=t=>t===vt||t===P,Bn=(t,e)=>parseFloat(t.split(", ")[e]),kn=(t,e)=>(n,{transform:s})=>{if(s==="none"||!s)return 0;const i=s.match(/^matrix3d\((.+)\)$/u);if(i)return Bn(i[1],e);{const o=s.match(/^matrix\((.+)\)$/u);return o?Bn(o[1],t):0}},Zo=new Set(["x","y","z"]),Jo=yt.filter(t=>!Zo.has(t));function Qo(t){const e=[];return Jo.forEach(n=>{const s=t.getValue(n);s!==void 0&&(e.push([n,s.get()]),s.set(n.startsWith("scale")?1:0))}),e}const mt={width:({x:t},{paddingLeft:e="0",paddingRight:n="0"})=>t.max-t.min-parseFloat(e)-parseFloat(n),height:({y:t},{paddingTop:e="0",paddingBottom:n="0"})=>t.max-t.min-parseFloat(e)-parseFloat(n),top:(t,{top:e})=>parseFloat(e),left:(t,{left:e})=>parseFloat(e),bottom:({y:t},{top:e})=>parseFloat(e)+(t.max-t.min),right:({x:t},{left:e})=>parseFloat(e)+(t.max-t.min),x:kn(4,13),y:kn(5,14)};mt.translateX=mt.x;mt.translateY=mt.y;const it=new Set;let we=!1,Ve=!1;function Ci(){if(Ve){const t=Array.from(it).filter(s=>s.needsMeasurement),e=new Set(t.map(s=>s.element)),n=new Map;e.forEach(s=>{const i=Qo(s);i.length&&(n.set(s,i),s.render())}),t.forEach(s=>s.measureInitialState()),e.forEach(s=>{s.render();const i=n.get(s);i&&i.forEach(([o,r])=>{var a;(a=s.getValue(o))===null||a===void 0||a.set(r)})}),t.forEach(s=>s.measureEndState()),t.forEach(s=>{s.suspendedScrollY!==void 0&&window.scrollTo(0,s.suspendedScrollY)})}Ve=!1,we=!1,it.forEach(t=>t.complete()),it.clear()}function Mi(){it.forEach(t=>{t.readKeyframes(),t.needsMeasurement&&(Ve=!0)})}function ta(){Mi(),Ci()}class pn{constructor(e,n,s,i,o,r=!1){this.isComplete=!1,this.isAsync=!1,this.needsMeasurement=!1,this.isScheduled=!1,this.unresolvedKeyframes=[...e],this.onComplete=n,this.name=s,this.motionValue=i,this.element=o,this.isAsync=r}scheduleResolve(){this.isScheduled=!0,this.isAsync?(it.add(this),we||(we=!0,w.read(Mi),w.resolveKeyframes(Ci))):(this.readKeyframes(),this.complete())}readKeyframes(){const{unresolvedKeyframes:e,name:n,element:s,motionValue:i}=this;for(let o=0;o<e.length;o++)if(e[o]===null)if(o===0){const r=i?.get(),a=e[e.length-1];if(r!==void 0)e[0]=r;else if(s&&n){const l=s.readValue(n,a);l!=null&&(e[0]=l)}e[0]===void 0&&(e[0]=a),i&&r===void 0&&i.set(e[0])}else e[o]=e[o-1]}setFinalKeyframe(){}measureInitialState(){}renderEndStyles(){}measureEndState(){}complete(){this.isComplete=!0,this.onComplete(this.unresolvedKeyframes,this.finalKeyframe),it.delete(this)}cancel(){this.isComplete||(this.isScheduled=!1,it.delete(this))}resume(){this.isComplete||this.scheduleResolve()}}const Ri=t=>/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(t),ea=/^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u;function na(t){const e=ea.exec(t);if(!e)return[,];const[,n,s,i]=e;return[`--${n??s}`,i]}function Ei(t,e,n=1){const[s,i]=na(t);if(!s)return;const o=window.getComputedStyle(e).getPropertyValue(s);if(o){const r=o.trim();return Ri(r)?parseFloat(r):r}return Xe(i)?Ei(i,e,n+1):i}const Li=t=>e=>e.test(t),sa={test:t=>t==="auto",parse:t=>t},Fi=[vt,P,K,X,Jr,Zr,sa],On=t=>Fi.find(Li(t));class Bi extends pn{constructor(e,n,s,i,o){super(e,n,s,i,o,!0)}readKeyframes(){const{unresolvedKeyframes:e,element:n,name:s}=this;if(!n||!n.current)return;super.readKeyframes();for(let l=0;l<e.length;l++){let u=e[l];if(typeof u=="string"&&(u=u.trim(),Xe(u))){const c=Ei(u,n.current);c!==void 0&&(e[l]=c),l===e.length-1&&(this.finalKeyframe=u)}}if(this.resolveNoneKeyframes(),!ai.has(s)||e.length!==2)return;const[i,o]=e,r=On(i),a=On(o);if(r!==a)if(Fn(r)&&Fn(a))for(let l=0;l<e.length;l++){const u=e[l];typeof u=="string"&&(e[l]=parseFloat(u))}else this.needsMeasurement=!0}resolveNoneKeyframes(){const{unresolvedKeyframes:e,name:n}=this,s=[];for(let i=0;i<e.length;i++)Fo(e[i])&&s.push(i);s.length&&qo(e,s,n)}measureInitialState(){const{element:e,unresolvedKeyframes:n,name:s}=this;if(!e||!e.current)return;s==="height"&&(this.suspendedScrollY=window.pageYOffset),this.measuredOrigin=mt[s](e.measureViewportBox(),window.getComputedStyle(e.current)),n[0]=this.measuredOrigin;const i=n[n.length-1];i!==void 0&&e.getValue(s,i).jump(i,!1)}measureEndState(){var e;const{element:n,name:s,unresolvedKeyframes:i}=this;if(!n||!n.current)return;const o=n.getValue(s);o&&o.jump(this.measuredOrigin,!1);const r=i.length-1,a=i[r];i[r]=mt[s](n.measureViewportBox(),window.getComputedStyle(n.current)),a!==null&&this.finalKeyframe===void 0&&(this.finalKeyframe=a),!((e=this.removedTransforms)===null||e===void 0)&&e.length&&this.removedTransforms.forEach(([l,u])=>{n.getValue(l).set(u)}),this.resolveNoneKeyframes()}}const In=(t,e)=>e==="zIndex"?!1:!!(typeof t=="number"||Array.isArray(t)||typeof t=="string"&&(J.test(t)||t==="0")&&!t.startsWith("url("));function ia(t){const e=t[0];if(t.length===1)return!0;for(let n=0;n<t.length;n++)if(t[n]!==e)return!0}function ra(t,e,n,s){const i=t[0];if(i===null)return!1;if(e==="display"||e==="visibility")return!0;const o=t[t.length-1],r=In(i,e),a=In(o,e);return!r||!a?!1:ia(t)||(n==="spring"||an(n))&&s}const oa=t=>t!==null;function se(t,{repeat:e,repeatType:n="loop"},s){const i=t.filter(oa),o=e&&n!=="loop"&&e%2===1?0:i.length-1;return!o||s===void 0?i[o]:s}const aa=40;class ki{constructor({autoplay:e=!0,delay:n=0,type:s="keyframes",repeat:i=0,repeatDelay:o=0,repeatType:r="loop",...a}){this.isStopped=!1,this.hasAttemptedResolve=!1,this.createdAt=W.now(),this.options={autoplay:e,delay:n,type:s,repeat:i,repeatDelay:o,repeatType:r,...a},this.updateFinishedPromise()}calcStartTime(){return this.resolvedAt?this.resolvedAt-this.createdAt>aa?this.resolvedAt:this.createdAt:this.createdAt}get resolved(){return!this._resolved&&!this.hasAttemptedResolve&&ta(),this._resolved}onKeyframesResolved(e,n){this.resolvedAt=W.now(),this.hasAttemptedResolve=!0;const{name:s,type:i,velocity:o,delay:r,onComplete:a,onUpdate:l,isGenerator:u}=this.options;if(!u&&!ra(e,s,i,o))if(r)this.options.duration=0;else{l&&l(se(e,this.options,n)),a&&a(),this.resolveFinishedPromise();return}const c=this.initPlayback(e,n);c!==!1&&(this._resolved={keyframes:e,finalKeyframe:n,...c},this.onPostResolved())}onPostResolved(){}then(e,n){return this.currentFinishedPromise.then(e,n)}flatten(){this.options.type="keyframes",this.options.ease="linear"}updateFinishedPromise(){this.currentFinishedPromise=new Promise(e=>{this.resolveFinishedPromise=e})}}const De=2e4;function Oi(t){let e=0;const n=50;let s=t.next(e);for(;!s.done&&e<De;)e+=n,s=t.next(e);return e>=De?1/0:e}const V=(t,e,n)=>t+(e-t)*n;function le(t,e,n){return n<0&&(n+=1),n>1&&(n-=1),n<1/6?t+(e-t)*6*n:n<1/2?e:n<2/3?t+(e-t)*(2/3-n)*6:t}function la({hue:t,saturation:e,lightness:n,alpha:s}){t/=360,e/=100,n/=100;let i=0,o=0,r=0;if(!e)i=o=r=n;else{const a=n<.5?n*(1+e):n+e-n*e,l=2*n-a;i=le(l,a,t+1/3),o=le(l,a,t),r=le(l,a,t-1/3)}return{red:Math.round(i*255),green:Math.round(o*255),blue:Math.round(r*255),alpha:s}}function zt(t,e){return n=>n>0?e:t}const ue=(t,e,n)=>{const s=t*t,i=n*(e*e-s)+s;return i<0?0:Math.sqrt(i)},ua=[Ae,st,ut],ca=t=>ua.find(e=>e.test(t));function jn(t){const e=ca(t);if(!e)return!1;let n=e.parse(t);return e===ut&&(n=la(n)),n}const Nn=(t,e)=>{const n=jn(t),s=jn(e);if(!n||!s)return zt(t,e);const i={...n};return o=>(i.red=ue(n.red,s.red,o),i.green=ue(n.green,s.green,o),i.blue=ue(n.blue,s.blue,o),i.alpha=V(n.alpha,s.alpha,o),st.transform(i))},ha=(t,e)=>n=>e(t(n)),Bt=(...t)=>t.reduce(ha),Ce=new Set(["none","hidden"]);function fa(t,e){return Ce.has(t)?n=>n<=0?t:e:n=>n>=1?e:t}function da(t,e){return n=>V(t,e,n)}function mn(t){return typeof t=="number"?da:typeof t=="string"?Xe(t)?zt:L.test(t)?Nn:ga:Array.isArray(t)?Ii:typeof t=="object"?L.test(t)?Nn:pa:zt}function Ii(t,e){const n=[...t],s=n.length,i=t.map((o,r)=>mn(o)(o,e[r]));return o=>{for(let r=0;r<s;r++)n[r]=i[r](o);return n}}function pa(t,e){const n={...t,...e},s={};for(const i in n)t[i]!==void 0&&e[i]!==void 0&&(s[i]=mn(t[i])(t[i],e[i]));return i=>{for(const o in s)n[o]=s[o](i);return n}}function ma(t,e){var n;const s=[],i={color:0,var:0,number:0};for(let o=0;o<e.values.length;o++){const r=e.types[o],a=t.indexes[r][i[r]],l=(n=t.values[a])!==null&&n!==void 0?n:0;s[o]=l,i[r]++}return s}const ga=(t,e)=>{const n=J.createTransformer(e),s=Rt(t),i=Rt(e);return s.indexes.var.length===i.indexes.var.length&&s.indexes.color.length===i.indexes.color.length&&s.indexes.number.length>=i.indexes.number.length?Ce.has(t)&&!i.values.length||Ce.has(e)&&!s.values.length?fa(t,e):Bt(Ii(ma(s,i),i.values),n):zt(t,e)};function ji(t,e,n){return typeof t=="number"&&typeof e=="number"&&typeof n=="number"?V(t,e,n):mn(t)(t,e)}const ya=5;function Ni(t,e,n){const s=Math.max(e-ya,0);return li(n-t(s),e-s)}const D={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},ce=.001;function va({duration:t=D.duration,bounce:e=D.bounce,velocity:n=D.velocity,mass:s=D.mass}){let i,o,r=1-e;r=H(D.minDamping,D.maxDamping,r),t=H(D.minDuration,D.maxDuration,z(t)),r<1?(i=u=>{const c=u*r,h=c*t,f=c-n,d=Me(u,r),p=Math.exp(-h);return ce-f/d*p},o=u=>{const h=u*r*t,f=h*n+n,d=Math.pow(r,2)*Math.pow(u,2)*t,p=Math.exp(-h),m=Me(Math.pow(u,2),r);return(-i(u)+ce>0?-1:1)*((f-d)*p)/m}):(i=u=>{const c=Math.exp(-u*t),h=(u-n)*t+1;return-ce+c*h},o=u=>{const c=Math.exp(-u*t),h=(n-u)*(t*t);return c*h});const a=5/t,l=xa(i,o,a);if(t=G(t),isNaN(l))return{stiffness:D.stiffness,damping:D.damping,duration:t};{const u=Math.pow(l,2)*s;return{stiffness:u,damping:r*2*Math.sqrt(s*u),duration:t}}}const Ta=12;function xa(t,e,n){let s=n;for(let i=1;i<Ta;i++)s=s-t(s)/e(s);return s}function Me(t,e){return t*Math.sqrt(1-e*e)}const Pa=["duration","bounce"],Sa=["stiffness","damping","mass"];function Un(t,e){return e.some(n=>t[n]!==void 0)}function Aa(t){let e={velocity:D.velocity,stiffness:D.stiffness,damping:D.damping,mass:D.mass,isResolvedFromDuration:!1,...t};if(!Un(t,Sa)&&Un(t,Pa))if(t.visualDuration){const n=t.visualDuration,s=2*Math.PI/(n*1.2),i=s*s,o=2*H(.05,1,1-(t.bounce||0))*Math.sqrt(i);e={...e,mass:D.mass,stiffness:i,damping:o}}else{const n=va(t);e={...e,...n,mass:D.mass},e.isResolvedFromDuration=!0}return e}function Ui(t=D.visualDuration,e=D.bounce){const n=typeof t!="object"?{visualDuration:t,keyframes:[0,1],bounce:e}:t;let{restSpeed:s,restDelta:i}=n;const o=n.keyframes[0],r=n.keyframes[n.keyframes.length-1],a={done:!1,value:o},{stiffness:l,damping:u,mass:c,duration:h,velocity:f,isResolvedFromDuration:d}=Aa({...n,velocity:-z(n.velocity||0)}),p=f||0,m=u/(2*Math.sqrt(l*c)),y=r-o,g=z(Math.sqrt(l/c)),T=Math.abs(y)<5;s||(s=T?D.restSpeed.granular:D.restSpeed.default),i||(i=T?D.restDelta.granular:D.restDelta.default);let x;if(m<1){const v=Me(g,m);x=b=>{const C=Math.exp(-m*g*b);return r-C*((p+m*g*y)/v*Math.sin(v*b)+y*Math.cos(v*b))}}else if(m===1)x=v=>r-Math.exp(-g*v)*(y+(p+g*y)*v);else{const v=g*Math.sqrt(m*m-1);x=b=>{const C=Math.exp(-m*g*b),S=Math.min(v*b,300);return r-C*((p+m*g*y)*Math.sinh(S)+v*y*Math.cosh(S))/v}}const A={calculatedDuration:d&&h||null,next:v=>{const b=x(v);if(d)a.done=v>=h;else{let C=0;m<1&&(C=v===0?G(p):Ni(x,v,b));const S=Math.abs(C)<=s,E=Math.abs(r-b)<=i;a.done=S&&E}return a.value=a.done?r:b,a},toString:()=>{const v=Math.min(Oi(A),De),b=ci(C=>A.next(v*C).value,v,30);return v+"ms "+b}};return A}function _n({keyframes:t,velocity:e=0,power:n=.8,timeConstant:s=325,bounceDamping:i=10,bounceStiffness:o=500,modifyTarget:r,min:a,max:l,restDelta:u=.5,restSpeed:c}){const h=t[0],f={done:!1,value:h},d=S=>a!==void 0&&S<a||l!==void 0&&S>l,p=S=>a===void 0?l:l===void 0||Math.abs(a-S)<Math.abs(l-S)?a:l;let m=n*e;const y=h+m,g=r===void 0?y:r(y);g!==y&&(m=g-h);const T=S=>-m*Math.exp(-S/s),x=S=>g+T(S),A=S=>{const E=T(S),j=x(S);f.done=Math.abs(E)<=u,f.value=f.done?g:j};let v,b;const C=S=>{d(f.value)&&(v=S,b=Ui({keyframes:[f.value,p(f.value)],velocity:Ni(x,S,f.value),damping:i,stiffness:o,restDelta:u,restSpeed:c}))};return C(0),{calculatedDuration:null,next:S=>{let E=!1;return!b&&v===void 0&&(E=!0,A(S),C(S)),v!==void 0&&S>=v?b.next(S-v):(!E&&A(S),f)}}}const ba=Ft(.42,0,1,1),wa=Ft(0,0,.58,1),_i=Ft(.42,0,.58,1),Va=t=>Array.isArray(t)&&typeof t[0]!="number",Da={linear:O,easeIn:ba,easeInOut:_i,easeOut:wa,circIn:cn,circInOut:xi,circOut:Ti,backIn:un,backInOut:yi,backOut:gi,anticipate:vi},Kn=t=>{if(ln(t)){_s(t.length===4);const[e,n,s,i]=t;return Ft(e,n,s,i)}else if(typeof t=="string")return Da[t];return t};function Ca(t,e,n){const s=[],i=n||ji,o=t.length-1;for(let r=0;r<o;r++){let a=i(t[r],t[r+1]);if(e){const l=Array.isArray(e)?e[r]||O:e;a=Bt(l,a)}s.push(a)}return s}function Ma(t,e,{clamp:n=!0,ease:s,mixer:i}={}){const o=t.length;if(_s(o===e.length),o===1)return()=>e[0];if(o===2&&e[0]===e[1])return()=>e[1];const r=t[0]===t[1];t[0]>t[o-1]&&(t=[...t].reverse(),e=[...e].reverse());const a=Ca(e,s,i),l=a.length,u=c=>{if(r&&c<t[0])return e[0];let h=0;if(l>1)for(;h<t.length-2&&!(c<t[h+1]);h++);const f=pt(t[h],t[h+1],c);return a[h](f)};return n?c=>u(H(t[0],t[o-1],c)):u}function Ra(t,e){const n=t[t.length-1];for(let s=1;s<=e;s++){const i=pt(0,e,s);t.push(V(n,1,i))}}function Ea(t){const e=[0];return Ra(e,t.length-1),e}function La(t,e){return t.map(n=>n*e)}function Fa(t,e){return t.map(()=>e||_i).splice(0,t.length-1)}function Ht({duration:t=300,keyframes:e,times:n,ease:s="easeInOut"}){const i=Va(s)?s.map(Kn):Kn(s),o={done:!1,value:e[0]},r=La(n&&n.length===e.length?n:Ea(e),t),a=Ma(r,e,{ease:Array.isArray(i)?i:Fa(e,i)});return{calculatedDuration:t,next:l=>(o.value=a(l),o.done=l>=t,o)}}const Ba=t=>{const e=({timestamp:n})=>t(n);return{start:()=>w.update(e,!0),stop:()=>Z(e),now:()=>R.isProcessing?R.timestamp:W.now()}},ka={decay:_n,inertia:_n,tween:Ht,keyframes:Ht,spring:Ui},Oa=t=>t/100;class gn extends ki{constructor(e){super(e),this.holdTime=null,this.cancelTime=null,this.currentTime=0,this.playbackSpeed=1,this.pendingPlayState="running",this.startTime=null,this.state="idle",this.stop=()=>{if(this.resolver.cancel(),this.isStopped=!0,this.state==="idle")return;this.teardown();const{onStop:l}=this.options;l&&l()};const{name:n,motionValue:s,element:i,keyframes:o}=this.options,r=i?.KeyframeResolver||pn,a=(l,u)=>this.onKeyframesResolved(l,u);this.resolver=new r(o,a,n,s,i),this.resolver.scheduleResolve()}flatten(){super.flatten(),this._resolved&&Object.assign(this._resolved,this.initPlayback(this._resolved.keyframes))}initPlayback(e){const{type:n="keyframes",repeat:s=0,repeatDelay:i=0,repeatType:o,velocity:r=0}=this.options,a=an(n)?n:ka[n]||Ht;let l,u;a!==Ht&&typeof e[0]!="number"&&(l=Bt(Oa,ji(e[0],e[1])),e=[0,100]);const c=a({...this.options,keyframes:e});o==="mirror"&&(u=a({...this.options,keyframes:[...e].reverse(),velocity:-r})),c.calculatedDuration===null&&(c.calculatedDuration=Oi(c));const{calculatedDuration:h}=c,f=h+i,d=f*(s+1)-i;return{generator:c,mirroredGenerator:u,mapPercentToKeyframes:l,calculatedDuration:h,resolvedDuration:f,totalDuration:d}}onPostResolved(){const{autoplay:e=!0}=this.options;this.play(),this.pendingPlayState==="paused"||!e?this.pause():this.state=this.pendingPlayState}tick(e,n=!1){const{resolved:s}=this;if(!s){const{keyframes:S}=this.options;return{done:!0,value:S[S.length-1]}}const{finalKeyframe:i,generator:o,mirroredGenerator:r,mapPercentToKeyframes:a,keyframes:l,calculatedDuration:u,totalDuration:c,resolvedDuration:h}=s;if(this.startTime===null)return o.next(0);const{delay:f,repeat:d,repeatType:p,repeatDelay:m,onUpdate:y}=this.options;this.speed>0?this.startTime=Math.min(this.startTime,e):this.speed<0&&(this.startTime=Math.min(e-c/this.speed,this.startTime)),n?this.currentTime=e:this.holdTime!==null?this.currentTime=this.holdTime:this.currentTime=Math.round(e-this.startTime)*this.speed;const g=this.currentTime-f*(this.speed>=0?1:-1),T=this.speed>=0?g<0:g>c;this.currentTime=Math.max(g,0),this.state==="finished"&&this.holdTime===null&&(this.currentTime=c);let x=this.currentTime,A=o;if(d){const S=Math.min(this.currentTime,c)/h;let E=Math.floor(S),j=S%1;!j&&S>=1&&(j=1),j===1&&E--,E=Math.min(E,d+1),E%2&&(p==="reverse"?(j=1-j,m&&(j-=m/h)):p==="mirror"&&(A=r)),x=H(0,1,j)*h}const v=T?{done:!1,value:l[0]}:A.next(x);a&&(v.value=a(v.value));let{done:b}=v;!T&&u!==null&&(b=this.speed>=0?this.currentTime>=c:this.currentTime<=0);const C=this.holdTime===null&&(this.state==="finished"||this.state==="running"&&b);return C&&i!==void 0&&(v.value=se(l,this.options,i)),y&&y(v.value),C&&this.finish(),v}get duration(){const{resolved:e}=this;return e?z(e.calculatedDuration):0}get time(){return z(this.currentTime)}set time(e){e=G(e),this.currentTime=e,this.holdTime!==null||this.speed===0?this.holdTime=e:this.driver&&(this.startTime=this.driver.now()-e/this.speed)}get speed(){return this.playbackSpeed}set speed(e){const n=this.playbackSpeed!==e;this.playbackSpeed=e,n&&(this.time=z(this.currentTime))}play(){if(this.resolver.isScheduled||this.resolver.resume(),!this._resolved){this.pendingPlayState="running";return}if(this.isStopped)return;const{driver:e=Ba,onPlay:n,startTime:s}=this.options;this.driver||(this.driver=e(o=>this.tick(o))),n&&n();const i=this.driver.now();this.holdTime!==null?this.startTime=i-this.holdTime:this.startTime?this.state==="finished"&&(this.startTime=i):this.startTime=s??this.calcStartTime(),this.state==="finished"&&this.updateFinishedPromise(),this.cancelTime=this.startTime,this.holdTime=null,this.state="running",this.driver.start()}pause(){var e;if(!this._resolved){this.pendingPlayState="paused";return}this.state="paused",this.holdTime=(e=this.currentTime)!==null&&e!==void 0?e:0}complete(){this.state!=="running"&&this.play(),this.pendingPlayState=this.state="finished",this.holdTime=null}finish(){this.teardown(),this.state="finished";const{onComplete:e}=this.options;e&&e()}cancel(){this.cancelTime!==null&&this.tick(this.cancelTime),this.teardown(),this.updateFinishedPromise()}teardown(){this.state="idle",this.stopDriver(),this.resolveFinishedPromise(),this.updateFinishedPromise(),this.startTime=this.cancelTime=null,this.resolver.cancel()}stopDriver(){this.driver&&(this.driver.stop(),this.driver=void 0)}sample(e){return this.startTime=0,this.tick(e,!0)}}const Ia=new Set(["opacity","clipPath","filter","transform"]);function ja(t,e,n,{delay:s=0,duration:i=300,repeat:o=0,repeatType:r="loop",ease:a="easeInOut",times:l}={}){const u={[e]:n};l&&(u.offset=l);const c=fi(a,i);return Array.isArray(c)&&(u.easing=c),t.animate(u,{delay:s,duration:i,easing:Array.isArray(c)?"linear":c,fill:"both",iterations:o+1,direction:r==="reverse"?"alternate":"normal"})}const Na=on(()=>Object.hasOwnProperty.call(Element.prototype,"animate")),Xt=10,Ua=2e4;function _a(t){return an(t.type)||t.type==="spring"||!hi(t.ease)}function Ka(t,e){const n=new gn({...e,keyframes:t,repeat:0,delay:0,isGenerator:!0});let s={done:!1,value:t[0]};const i=[];let o=0;for(;!s.done&&o<Ua;)s=n.sample(o),i.push(s.value),o+=Xt;return{times:void 0,keyframes:i,duration:o-Xt,ease:"linear"}}const Ki={anticipate:vi,backInOut:yi,circInOut:xi};function Wa(t){return t in Ki}class Wn extends ki{constructor(e){super(e);const{name:n,motionValue:s,element:i,keyframes:o}=this.options;this.resolver=new Bi(o,(r,a)=>this.onKeyframesResolved(r,a),n,s,i),this.resolver.scheduleResolve()}initPlayback(e,n){let{duration:s=300,times:i,ease:o,type:r,motionValue:a,name:l,startTime:u}=this.options;if(!a.owner||!a.owner.current)return!1;if(typeof o=="string"&&Gt()&&Wa(o)&&(o=Ki[o]),_a(this.options)){const{onComplete:h,onUpdate:f,motionValue:d,element:p,...m}=this.options,y=Ka(e,m);e=y.keyframes,e.length===1&&(e[1]=e[0]),s=y.duration,i=y.times,o=y.ease,r="keyframes"}const c=ja(a.owner.current,l,e,{...this.options,duration:s,times:i,ease:o});return c.startTime=u??this.calcStartTime(),this.pendingTimeline?(En(c,this.pendingTimeline),this.pendingTimeline=void 0):c.onfinish=()=>{const{onComplete:h}=this.options;a.set(se(e,this.options,n)),h&&h(),this.cancel(),this.resolveFinishedPromise()},{animation:c,duration:s,times:i,type:r,ease:o,keyframes:e}}get duration(){const{resolved:e}=this;if(!e)return 0;const{duration:n}=e;return z(n)}get time(){const{resolved:e}=this;if(!e)return 0;const{animation:n}=e;return z(n.currentTime||0)}set time(e){const{resolved:n}=this;if(!n)return;const{animation:s}=n;s.currentTime=G(e)}get speed(){const{resolved:e}=this;if(!e)return 1;const{animation:n}=e;return n.playbackRate}set speed(e){const{resolved:n}=this;if(!n)return;const{animation:s}=n;s.playbackRate=e}get state(){const{resolved:e}=this;if(!e)return"idle";const{animation:n}=e;return n.playState}get startTime(){const{resolved:e}=this;if(!e)return null;const{animation:n}=e;return n.startTime}attachTimeline(e){if(!this._resolved)this.pendingTimeline=e;else{const{resolved:n}=this;if(!n)return O;const{animation:s}=n;En(s,e)}return O}play(){if(this.isStopped)return;const{resolved:e}=this;if(!e)return;const{animation:n}=e;n.playState==="finished"&&this.updateFinishedPromise(),n.play()}pause(){const{resolved:e}=this;if(!e)return;const{animation:n}=e;n.pause()}stop(){if(this.resolver.cancel(),this.isStopped=!0,this.state==="idle")return;this.resolveFinishedPromise(),this.updateFinishedPromise();const{resolved:e}=this;if(!e)return;const{animation:n,keyframes:s,duration:i,type:o,ease:r,times:a}=e;if(n.playState==="idle"||n.playState==="finished")return;if(this.time){const{motionValue:u,onUpdate:c,onComplete:h,element:f,...d}=this.options,p=new gn({...d,keyframes:s,duration:i,type:o,ease:r,times:a,isGenerator:!0}),m=G(this.time);u.setWithVelocity(p.sample(m-Xt).value,p.sample(m).value,Xt)}const{onStop:l}=this.options;l&&l(),this.cancel()}complete(){const{resolved:e}=this;e&&e.animation.finish()}cancel(){const{resolved:e}=this;e&&e.animation.cancel()}static supports(e){const{motionValue:n,name:s,repeatDelay:i,repeatType:o,damping:r,type:a}=e;if(!n||!n.owner||!(n.owner.current instanceof HTMLElement))return!1;const{onUpdate:l,transformTemplate:u}=n.owner.getProps();return Na()&&s&&Ia.has(s)&&!l&&!u&&!i&&o!=="mirror"&&r!==0&&a!=="inertia"}}const $a={type:"spring",stiffness:500,damping:25,restSpeed:10},Ga=t=>({type:"spring",stiffness:550,damping:t===0?2*Math.sqrt(550):30,restSpeed:10}),za={type:"keyframes",duration:.8},Ha={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},Xa=(t,{keyframes:e})=>e.length>2?za:ot.has(t)?t.startsWith("scale")?Ga(e[1]):$a:Ha;function Ya({when:t,delay:e,delayChildren:n,staggerChildren:s,staggerDirection:i,repeat:o,repeatType:r,repeatDelay:a,from:l,elapsed:u,...c}){return!!Object.keys(c).length}const yn=(t,e,n,s={},i,o)=>r=>{const a=en(s,t)||{},l=a.delay||s.delay||0;let{elapsed:u=0}=s;u=u-G(l);let c={keyframes:Array.isArray(n)?n:[null,n],ease:"easeOut",velocity:e.getVelocity(),...a,delay:-u,onUpdate:f=>{e.set(f),a.onUpdate&&a.onUpdate(f)},onComplete:()=>{r(),a.onComplete&&a.onComplete()},name:t,motionValue:e,element:o?void 0:i};Ya(a)||(c={...c,...Xa(t,c)}),c.duration&&(c.duration=G(c.duration)),c.repeatDelay&&(c.repeatDelay=G(c.repeatDelay)),c.from!==void 0&&(c.keyframes[0]=c.from);let h=!1;if((c.type===!1||c.duration===0&&!c.repeatDelay)&&(c.duration=0,c.delay===0&&(h=!0)),h&&!o&&e.get()!==void 0){const f=se(c.keyframes,a);if(f!==void 0)return w.update(()=>{c.onUpdate(f),c.onComplete()}),new Do([])}return!o&&Wn.supports(c)?new Wn(c):new gn(c)};function qa({protectedKeys:t,needsAnimating:e},n){const s=t.hasOwnProperty(n)&&e[n]!==!0;return e[n]=!1,s}function Wi(t,e,{delay:n=0,transitionOverride:s,type:i}={}){var o;let{transition:r=t.getDefaultTransition(),transitionEnd:a,...l}=e;s&&(r=s);const u=[],c=i&&t.animationState&&t.animationState.getState()[i];for(const h in l){const f=t.getValue(h,(o=t.latestValues[h])!==null&&o!==void 0?o:null),d=l[h];if(d===void 0||c&&qa(c,h))continue;const p={delay:n,...en(r||{},h)};let m=!1;if(window.MotionHandoffAnimation){const g=ui(t);if(g){const T=window.MotionHandoffAnimation(g,h,w);T!==null&&(p.startTime=T,m=!0)}}Pe(t,h),f.start(yn(h,f,d,t.shouldReduceMotion&&ai.has(h)?{type:!1}:p,t,m));const y=f.animation;y&&u.push(y)}return a&&Promise.all(u).then(()=>{w.update(()=>{a&&Ao(t,a)})}),u}function Re(t,e,n={}){var s;const i=ne(t,e,n.type==="exit"?(s=t.presenceContext)===null||s===void 0?void 0:s.custom:void 0);let{transition:o=t.getDefaultTransition()||{}}=i||{};n.transitionOverride&&(o=n.transitionOverride);const r=i?()=>Promise.all(Wi(t,i,n)):()=>Promise.resolve(),a=t.variantChildren&&t.variantChildren.size?(u=0)=>{const{delayChildren:c=0,staggerChildren:h,staggerDirection:f}=o;return Za(t,e,c+u,h,f,n)}:()=>Promise.resolve(),{when:l}=o;if(l){const[u,c]=l==="beforeChildren"?[r,a]:[a,r];return u().then(()=>c())}else return Promise.all([r(),a(n.delay)])}function Za(t,e,n=0,s=0,i=1,o){const r=[],a=(t.variantChildren.size-1)*s,l=i===1?(u=0)=>u*s:(u=0)=>a-u*s;return Array.from(t.variantChildren).sort(Ja).forEach((u,c)=>{u.notify("AnimationStart",e),r.push(Re(u,e,{...o,delay:n+l(c)}).then(()=>u.notify("AnimationComplete",e)))}),Promise.all(r)}function Ja(t,e){return t.sortNodePosition(e)}function Qa(t,e,n={}){t.notify("AnimationStart",e);let s;if(Array.isArray(e)){const i=e.map(o=>Re(t,o,n));s=Promise.all(i)}else if(typeof e=="string")s=Re(t,e,n);else{const i=typeof e=="function"?ne(t,e,n.custom):e;s=Promise.all(Wi(t,i,n))}return s.then(()=>{t.notify("AnimationComplete",e)})}const tl=We.length;function $i(t){if(!t)return;if(!t.isControllingVariants){const n=t.parent?$i(t.parent)||{}:{};return t.props.initial!==void 0&&(n.initial=t.props.initial),n}const e={};for(let n=0;n<tl;n++){const s=We[n],i=t.props[s];(Dt(i)||i===!1)&&(e[s]=i)}return e}const el=[...Ke].reverse(),nl=Ke.length;function sl(t){return e=>Promise.all(e.map(({animation:n,options:s})=>Qa(t,n,s)))}function il(t){let e=sl(t),n=$n(),s=!0;const i=l=>(u,c)=>{var h;const f=ne(t,c,l==="exit"?(h=t.presenceContext)===null||h===void 0?void 0:h.custom:void 0);if(f){const{transition:d,transitionEnd:p,...m}=f;u={...u,...m,...p}}return u};function o(l){e=l(t)}function r(l){const{props:u}=t,c=$i(t.parent)||{},h=[],f=new Set;let d={},p=1/0;for(let y=0;y<nl;y++){const g=el[y],T=n[g],x=u[g]!==void 0?u[g]:c[g],A=Dt(x),v=g===l?T.isActive:null;v===!1&&(p=y);let b=x===c[g]&&x!==u[g]&&A;if(b&&s&&t.manuallyAnimateOnMount&&(b=!1),T.protectedKeys={...d},!T.isActive&&v===null||!x&&!T.prevProp||te(x)||typeof x=="boolean")continue;const C=rl(T.prevProp,x);let S=C||g===l&&T.isActive&&!b&&A||y>p&&A,E=!1;const j=Array.isArray(x)?x:[x];let at=j.reduce(i(g),{});v===!1&&(at={});const{prevResolvedValues:xn={}}=T,pr={...xn,...at},Pn=k=>{S=!0,f.has(k)&&(E=!0,f.delete(k)),T.needsAnimating[k]=!0;const $=t.getValue(k);$&&($.liveStyle=!1)};for(const k in pr){const $=at[k],ie=xn[k];if(d.hasOwnProperty(k))continue;let re=!1;xe($)&&xe(ie)?re=!oi($,ie):re=$!==ie,re?$!=null?Pn(k):f.add(k):$!==void 0&&f.has(k)?Pn(k):T.protectedKeys[k]=!0}T.prevProp=x,T.prevResolvedValues=at,T.isActive&&(d={...d,...at}),s&&t.blockInitialAnimation&&(S=!1),S&&(!(b&&C)||E)&&h.push(...j.map(k=>({animation:k,options:{type:g}})))}if(f.size){const y={};f.forEach(g=>{const T=t.getBaseTarget(g),x=t.getValue(g);x&&(x.liveStyle=!0),y[g]=T??null}),h.push({animation:y})}let m=!!h.length;return s&&(u.initial===!1||u.initial===u.animate)&&!t.manuallyAnimateOnMount&&(m=!1),s=!1,m?e(h):Promise.resolve()}function a(l,u){var c;if(n[l].isActive===u)return Promise.resolve();(c=t.variantChildren)===null||c===void 0||c.forEach(f=>{var d;return(d=f.animationState)===null||d===void 0?void 0:d.setActive(l,u)}),n[l].isActive=u;const h=r(l);for(const f in n)n[f].protectedKeys={};return h}return{animateChanges:r,setActive:a,setAnimateFunction:o,getState:()=>n,reset:()=>{n=$n(),s=!0}}}function rl(t,e){return typeof e=="string"?e!==t:Array.isArray(e)?!oi(e,t):!1}function tt(t=!1){return{isActive:t,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function $n(){return{animate:tt(!0),whileInView:tt(),whileHover:tt(),whileTap:tt(),whileDrag:tt(),whileFocus:tt(),exit:tt()}}class Q{constructor(e){this.isMounted=!1,this.node=e}update(){}}class ol extends Q{constructor(e){super(e),e.animationState||(e.animationState=il(e))}updateAnimationControlsSubscription(){const{animate:e}=this.node.getProps();te(e)&&(this.unmountControls=e.subscribe(this.node))}mount(){this.updateAnimationControlsSubscription()}update(){const{animate:e}=this.node.getProps(),{animate:n}=this.node.prevProps||{};e!==n&&this.updateAnimationControlsSubscription()}unmount(){var e;this.node.animationState.reset(),(e=this.unmountControls)===null||e===void 0||e.call(this)}}let al=0;class ll extends Q{constructor(){super(...arguments),this.id=al++}update(){if(!this.node.presenceContext)return;const{isPresent:e,onExitComplete:n}=this.node.presenceContext,{isPresent:s}=this.node.prevPresenceContext||{};if(!this.node.animationState||e===s)return;const i=this.node.animationState.setActive("exit",!e);n&&!e&&i.then(()=>n(this.id))}mount(){const{register:e}=this.node.presenceContext||{};e&&(this.unmount=e(this.id))}unmount(){}}const ul={animation:{Feature:ol},exit:{Feature:ll}},_={x:!1,y:!1};function Gi(){return _.x||_.y}function cl(t){return t==="x"||t==="y"?_[t]?null:(_[t]=!0,()=>{_[t]=!1}):_.x||_.y?null:(_.x=_.y=!0,()=>{_.x=_.y=!1})}const vn=t=>t.pointerType==="mouse"?typeof t.button!="number"||t.button<=0:t.isPrimary!==!1;function Et(t,e,n,s={passive:!0}){return t.addEventListener(e,n,s),()=>t.removeEventListener(e,n)}function kt(t){return{point:{x:t.pageX,y:t.pageY}}}const hl=t=>e=>vn(e)&&t(e,kt(e));function bt(t,e,n,s){return Et(t,e,hl(n),s)}const Gn=(t,e)=>Math.abs(t-e);function fl(t,e){const n=Gn(t.x,e.x),s=Gn(t.y,e.y);return Math.sqrt(n**2+s**2)}class zi{constructor(e,n,{transformPagePoint:s,contextWindow:i,dragSnapToOrigin:o=!1}={}){if(this.startEvent=null,this.lastMoveEvent=null,this.lastMoveEventInfo=null,this.handlers={},this.contextWindow=window,this.updatePoint=()=>{if(!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const h=fe(this.lastMoveEventInfo,this.history),f=this.startEvent!==null,d=fl(h.offset,{x:0,y:0})>=3;if(!f&&!d)return;const{point:p}=h,{timestamp:m}=R;this.history.push({...p,timestamp:m});const{onStart:y,onMove:g}=this.handlers;f||(y&&y(this.lastMoveEvent,h),this.startEvent=this.lastMoveEvent),g&&g(this.lastMoveEvent,h)},this.handlePointerMove=(h,f)=>{this.lastMoveEvent=h,this.lastMoveEventInfo=he(f,this.transformPagePoint),w.update(this.updatePoint,!0)},this.handlePointerUp=(h,f)=>{this.end();const{onEnd:d,onSessionEnd:p,resumeAnimation:m}=this.handlers;if(this.dragSnapToOrigin&&m&&m(),!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const y=fe(h.type==="pointercancel"?this.lastMoveEventInfo:he(f,this.transformPagePoint),this.history);this.startEvent&&d&&d(h,y),p&&p(h,y)},!vn(e))return;this.dragSnapToOrigin=o,this.handlers=n,this.transformPagePoint=s,this.contextWindow=i||window;const r=kt(e),a=he(r,this.transformPagePoint),{point:l}=a,{timestamp:u}=R;this.history=[{...l,timestamp:u}];const{onSessionStart:c}=n;c&&c(e,fe(a,this.history)),this.removeListeners=Bt(bt(this.contextWindow,"pointermove",this.handlePointerMove),bt(this.contextWindow,"pointerup",this.handlePointerUp),bt(this.contextWindow,"pointercancel",this.handlePointerUp))}updateHandlers(e){this.handlers=e}end(){this.removeListeners&&this.removeListeners(),Z(this.updatePoint)}}function he(t,e){return e?{point:e(t.point)}:t}function zn(t,e){return{x:t.x-e.x,y:t.y-e.y}}function fe({point:t},e){return{point:t,delta:zn(t,Hi(e)),offset:zn(t,dl(e)),velocity:pl(e,.1)}}function dl(t){return t[0]}function Hi(t){return t[t.length-1]}function pl(t,e){if(t.length<2)return{x:0,y:0};let n=t.length-1,s=null;const i=Hi(t);for(;n>=0&&(s=t[n],!(i.timestamp-s.timestamp>G(e)));)n--;if(!s)return{x:0,y:0};const o=z(i.timestamp-s.timestamp);if(o===0)return{x:0,y:0};const r={x:(i.x-s.x)/o,y:(i.y-s.y)/o};return r.x===1/0&&(r.x=0),r.y===1/0&&(r.y=0),r}const Xi=1e-4,ml=1-Xi,gl=1+Xi,Yi=.01,yl=0-Yi,vl=0+Yi;function I(t){return t.max-t.min}function Tl(t,e,n){return Math.abs(t-e)<=n}function Hn(t,e,n,s=.5){t.origin=s,t.originPoint=V(e.min,e.max,t.origin),t.scale=I(n)/I(e),t.translate=V(n.min,n.max,t.origin)-t.originPoint,(t.scale>=ml&&t.scale<=gl||isNaN(t.scale))&&(t.scale=1),(t.translate>=yl&&t.translate<=vl||isNaN(t.translate))&&(t.translate=0)}function wt(t,e,n,s){Hn(t.x,e.x,n.x,s?s.originX:void 0),Hn(t.y,e.y,n.y,s?s.originY:void 0)}function Xn(t,e,n){t.min=n.min+e.min,t.max=t.min+I(e)}function xl(t,e,n){Xn(t.x,e.x,n.x),Xn(t.y,e.y,n.y)}function Yn(t,e,n){t.min=e.min-n.min,t.max=t.min+I(e)}function Vt(t,e,n){Yn(t.x,e.x,n.x),Yn(t.y,e.y,n.y)}function Pl(t,{min:e,max:n},s){return e!==void 0&&t<e?t=s?V(e,t,s.min):Math.max(t,e):n!==void 0&&t>n&&(t=s?V(n,t,s.max):Math.min(t,n)),t}function qn(t,e,n){return{min:e!==void 0?t.min+e:void 0,max:n!==void 0?t.max+n-(t.max-t.min):void 0}}function Sl(t,{top:e,left:n,bottom:s,right:i}){return{x:qn(t.x,n,i),y:qn(t.y,e,s)}}function Zn(t,e){let n=e.min-t.min,s=e.max-t.max;return e.max-e.min<t.max-t.min&&([n,s]=[s,n]),{min:n,max:s}}function Al(t,e){return{x:Zn(t.x,e.x),y:Zn(t.y,e.y)}}function bl(t,e){let n=.5;const s=I(t),i=I(e);return i>s?n=pt(e.min,e.max-s,t.min):s>i&&(n=pt(t.min,t.max-i,e.min)),H(0,1,n)}function wl(t,e){const n={};return e.min!==void 0&&(n.min=e.min-t.min),e.max!==void 0&&(n.max=e.max-t.min),n}const Ee=.35;function Vl(t=Ee){return t===!1?t=0:t===!0&&(t=Ee),{x:Jn(t,"left","right"),y:Jn(t,"top","bottom")}}function Jn(t,e,n){return{min:Qn(t,e),max:Qn(t,n)}}function Qn(t,e){return typeof t=="number"?t:t[e]||0}const ts=()=>({translate:0,scale:1,origin:0,originPoint:0}),ct=()=>({x:ts(),y:ts()}),es=()=>({min:0,max:0}),M=()=>({x:es(),y:es()});function U(t){return[t("x"),t("y")]}function qi({top:t,left:e,right:n,bottom:s}){return{x:{min:e,max:n},y:{min:t,max:s}}}function Dl({x:t,y:e}){return{top:e.min,right:t.max,bottom:e.max,left:t.min}}function Cl(t,e){if(!e)return t;const n=e({x:t.left,y:t.top}),s=e({x:t.right,y:t.bottom});return{top:n.y,left:n.x,bottom:s.y,right:s.x}}function de(t){return t===void 0||t===1}function Le({scale:t,scaleX:e,scaleY:n}){return!de(t)||!de(e)||!de(n)}function et(t){return Le(t)||Zi(t)||t.z||t.rotate||t.rotateX||t.rotateY||t.skewX||t.skewY}function Zi(t){return ns(t.x)||ns(t.y)}function ns(t){return t&&t!=="0%"}function Yt(t,e,n){const s=t-n,i=e*s;return n+i}function ss(t,e,n,s,i){return i!==void 0&&(t=Yt(t,i,s)),Yt(t,n,s)+e}function Fe(t,e=0,n=1,s,i){t.min=ss(t.min,e,n,s,i),t.max=ss(t.max,e,n,s,i)}function Ji(t,{x:e,y:n}){Fe(t.x,e.translate,e.scale,e.originPoint),Fe(t.y,n.translate,n.scale,n.originPoint)}const is=.999999999999,rs=1.0000000000001;function Ml(t,e,n,s=!1){const i=n.length;if(!i)return;e.x=e.y=1;let o,r;for(let a=0;a<i;a++){o=n[a],r=o.projectionDelta;const{visualElement:l}=o.options;l&&l.props.style&&l.props.style.display==="contents"||(s&&o.options.layoutScroll&&o.scroll&&o!==o.root&&ft(t,{x:-o.scroll.offset.x,y:-o.scroll.offset.y}),r&&(e.x*=r.x.scale,e.y*=r.y.scale,Ji(t,r)),s&&et(o.latestValues)&&ft(t,o.latestValues))}e.x<rs&&e.x>is&&(e.x=1),e.y<rs&&e.y>is&&(e.y=1)}function ht(t,e){t.min=t.min+e,t.max=t.max+e}function os(t,e,n,s,i=.5){const o=V(t.min,t.max,i);Fe(t,e,n,o,s)}function ft(t,e){os(t.x,e.x,e.scaleX,e.scale,e.originX),os(t.y,e.y,e.scaleY,e.scale,e.originY)}function Qi(t,e){return qi(Cl(t.getBoundingClientRect(),e))}function Rl(t,e,n){const s=Qi(t,n),{scroll:i}=e;return i&&(ht(s.x,i.offset.x),ht(s.y,i.offset.y)),s}const tr=({current:t})=>t?t.ownerDocument.defaultView:null,El=new WeakMap;class Ll{constructor(e){this.openDragLock=null,this.isDragging=!1,this.currentDirection=null,this.originPoint={x:0,y:0},this.constraints=!1,this.hasMutatedConstraints=!1,this.elastic=M(),this.visualElement=e}start(e,{snapToCursor:n=!1}={}){const{presenceContext:s}=this.visualElement;if(s&&s.isPresent===!1)return;const i=c=>{const{dragSnapToOrigin:h}=this.getProps();h?this.pauseAnimation():this.stopAnimation(),n&&this.snapToCursor(kt(c).point)},o=(c,h)=>{const{drag:f,dragPropagation:d,onDragStart:p}=this.getProps();if(f&&!d&&(this.openDragLock&&this.openDragLock(),this.openDragLock=cl(f),!this.openDragLock))return;this.isDragging=!0,this.currentDirection=null,this.resolveConstraints(),this.visualElement.projection&&(this.visualElement.projection.isAnimationBlocked=!0,this.visualElement.projection.target=void 0),U(y=>{let g=this.getAxisMotionValue(y).get()||0;if(K.test(g)){const{projection:T}=this.visualElement;if(T&&T.layout){const x=T.layout.layoutBox[y];x&&(g=I(x)*(parseFloat(g)/100))}}this.originPoint[y]=g}),p&&w.postRender(()=>p(c,h)),Pe(this.visualElement,"transform");const{animationState:m}=this.visualElement;m&&m.setActive("whileDrag",!0)},r=(c,h)=>{const{dragPropagation:f,dragDirectionLock:d,onDirectionLock:p,onDrag:m}=this.getProps();if(!f&&!this.openDragLock)return;const{offset:y}=h;if(d&&this.currentDirection===null){this.currentDirection=Fl(y),this.currentDirection!==null&&p&&p(this.currentDirection);return}this.updateAxis("x",h.point,y),this.updateAxis("y",h.point,y),this.visualElement.render(),m&&m(c,h)},a=(c,h)=>this.stop(c,h),l=()=>U(c=>{var h;return this.getAnimationState(c)==="paused"&&((h=this.getAxisMotionValue(c).animation)===null||h===void 0?void 0:h.play())}),{dragSnapToOrigin:u}=this.getProps();this.panSession=new zi(e,{onSessionStart:i,onStart:o,onMove:r,onSessionEnd:a,resumeAnimation:l},{transformPagePoint:this.visualElement.getTransformPagePoint(),dragSnapToOrigin:u,contextWindow:tr(this.visualElement)})}stop(e,n){const s=this.isDragging;if(this.cancel(),!s)return;const{velocity:i}=n;this.startAnimation(i);const{onDragEnd:o}=this.getProps();o&&w.postRender(()=>o(e,n))}cancel(){this.isDragging=!1;const{projection:e,animationState:n}=this.visualElement;e&&(e.isAnimationBlocked=!1),this.panSession&&this.panSession.end(),this.panSession=void 0;const{dragPropagation:s}=this.getProps();!s&&this.openDragLock&&(this.openDragLock(),this.openDragLock=null),n&&n.setActive("whileDrag",!1)}updateAxis(e,n,s){const{drag:i}=this.getProps();if(!s||!Nt(e,i,this.currentDirection))return;const o=this.getAxisMotionValue(e);let r=this.originPoint[e]+s[e];this.constraints&&this.constraints[e]&&(r=Pl(r,this.constraints[e],this.elastic[e])),o.set(r)}resolveConstraints(){var e;const{dragConstraints:n,dragElastic:s}=this.getProps(),i=this.visualElement.projection&&!this.visualElement.projection.layout?this.visualElement.projection.measure(!1):(e=this.visualElement.projection)===null||e===void 0?void 0:e.layout,o=this.constraints;n&&lt(n)?this.constraints||(this.constraints=this.resolveRefConstraints()):n&&i?this.constraints=Sl(i.layoutBox,n):this.constraints=!1,this.elastic=Vl(s),o!==this.constraints&&i&&this.constraints&&!this.hasMutatedConstraints&&U(r=>{this.constraints!==!1&&this.getAxisMotionValue(r)&&(this.constraints[r]=wl(i.layoutBox[r],this.constraints[r]))})}resolveRefConstraints(){const{dragConstraints:e,onMeasureDragConstraints:n}=this.getProps();if(!e||!lt(e))return!1;const s=e.current,{projection:i}=this.visualElement;if(!i||!i.layout)return!1;const o=Rl(s,i.root,this.visualElement.getTransformPagePoint());let r=Al(i.layout.layoutBox,o);if(n){const a=n(Dl(r));this.hasMutatedConstraints=!!a,a&&(r=qi(a))}return r}startAnimation(e){const{drag:n,dragMomentum:s,dragElastic:i,dragTransition:o,dragSnapToOrigin:r,onDragTransitionEnd:a}=this.getProps(),l=this.constraints||{},u=U(c=>{if(!Nt(c,n,this.currentDirection))return;let h=l&&l[c]||{};r&&(h={min:0,max:0});const f=i?200:1e6,d=i?40:1e7,p={type:"inertia",velocity:s?e[c]:0,bounceStiffness:f,bounceDamping:d,timeConstant:750,restDelta:1,restSpeed:10,...o,...h};return this.startAxisValueAnimation(c,p)});return Promise.all(u).then(a)}startAxisValueAnimation(e,n){const s=this.getAxisMotionValue(e);return Pe(this.visualElement,e),s.start(yn(e,s,0,n,this.visualElement,!1))}stopAnimation(){U(e=>this.getAxisMotionValue(e).stop())}pauseAnimation(){U(e=>{var n;return(n=this.getAxisMotionValue(e).animation)===null||n===void 0?void 0:n.pause()})}getAnimationState(e){var n;return(n=this.getAxisMotionValue(e).animation)===null||n===void 0?void 0:n.state}getAxisMotionValue(e){const n=`_drag${e.toUpperCase()}`,s=this.visualElement.getProps(),i=s[n];return i||this.visualElement.getValue(e,(s.initial?s.initial[e]:void 0)||0)}snapToCursor(e){U(n=>{const{drag:s}=this.getProps();if(!Nt(n,s,this.currentDirection))return;const{projection:i}=this.visualElement,o=this.getAxisMotionValue(n);if(i&&i.layout){const{min:r,max:a}=i.layout.layoutBox[n];o.set(e[n]-V(r,a,.5))}})}scalePositionWithinConstraints(){if(!this.visualElement.current)return;const{drag:e,dragConstraints:n}=this.getProps(),{projection:s}=this.visualElement;if(!lt(n)||!s||!this.constraints)return;this.stopAnimation();const i={x:0,y:0};U(r=>{const a=this.getAxisMotionValue(r);if(a&&this.constraints!==!1){const l=a.get();i[r]=bl({min:l,max:l},this.constraints[r])}});const{transformTemplate:o}=this.visualElement.getProps();this.visualElement.current.style.transform=o?o({},""):"none",s.root&&s.root.updateScroll(),s.updateLayout(),this.resolveConstraints(),U(r=>{if(!Nt(r,e,null))return;const a=this.getAxisMotionValue(r),{min:l,max:u}=this.constraints[r];a.set(V(l,u,i[r]))})}addListeners(){if(!this.visualElement.current)return;El.set(this.visualElement,this);const e=this.visualElement.current,n=bt(e,"pointerdown",l=>{const{drag:u,dragListener:c=!0}=this.getProps();u&&c&&this.start(l)}),s=()=>{const{dragConstraints:l}=this.getProps();lt(l)&&l.current&&(this.constraints=this.resolveRefConstraints())},{projection:i}=this.visualElement,o=i.addEventListener("measure",s);i&&!i.layout&&(i.root&&i.root.updateScroll(),i.updateLayout()),w.read(s);const r=Et(window,"resize",()=>this.scalePositionWithinConstraints()),a=i.addEventListener("didUpdate",(({delta:l,hasLayoutChanged:u})=>{this.isDragging&&u&&(U(c=>{const h=this.getAxisMotionValue(c);h&&(this.originPoint[c]+=l[c].translate,h.set(h.get()+l[c].translate))}),this.visualElement.render())}));return()=>{r(),n(),o(),a&&a()}}getProps(){const e=this.visualElement.getProps(),{drag:n=!1,dragDirectionLock:s=!1,dragPropagation:i=!1,dragConstraints:o=!1,dragElastic:r=Ee,dragMomentum:a=!0}=e;return{...e,drag:n,dragDirectionLock:s,dragPropagation:i,dragConstraints:o,dragElastic:r,dragMomentum:a}}}function Nt(t,e,n){return(e===!0||e===t)&&(n===null||n===t)}function Fl(t,e=10){let n=null;return Math.abs(t.y)>e?n="y":Math.abs(t.x)>e&&(n="x"),n}class Bl extends Q{constructor(e){super(e),this.removeGroupControls=O,this.removeListeners=O,this.controls=new Ll(e)}mount(){const{dragControls:e}=this.node.getProps();e&&(this.removeGroupControls=e.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||O}unmount(){this.removeGroupControls(),this.removeListeners()}}const as=t=>(e,n)=>{t&&w.postRender(()=>t(e,n))};class kl extends Q{constructor(){super(...arguments),this.removePointerDownListener=O}onPointerDown(e){this.session=new zi(e,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint(),contextWindow:tr(this.node)})}createPanHandlers(){const{onPanSessionStart:e,onPanStart:n,onPan:s,onPanEnd:i}=this.node.getProps();return{onSessionStart:as(e),onStart:as(n),onMove:s,onEnd:(o,r)=>{delete this.session,i&&w.postRender(()=>i(o,r))}}}mount(){this.removePointerDownListener=bt(this.node.current,"pointerdown",e=>this.onPointerDown(e))}update(){this.session&&this.session.updateHandlers(this.createPanHandlers())}unmount(){this.removePointerDownListener(),this.session&&this.session.end()}}const Kt={hasAnimatedSinceResize:!0,hasEverUpdated:!1};function ls(t,e){return e.max===e.min?0:t/(e.max-e.min)*100}const Tt={correct:(t,e)=>{if(!e.target)return t;if(typeof t=="string")if(P.test(t))t=parseFloat(t);else return t;const n=ls(t,e.target.x),s=ls(t,e.target.y);return`${n}% ${s}%`}},Ol={correct:(t,{treeScale:e,projectionDelta:n})=>{const s=t,i=J.parse(t);if(i.length>5)return s;const o=J.createTransformer(t),r=typeof i[0]!="number"?1:0,a=n.x.scale*e.x,l=n.y.scale*e.y;i[0+r]/=a,i[1+r]/=l;const u=V(a,l,.5);return typeof i[2+r]=="number"&&(i[2+r]/=u),typeof i[3+r]=="number"&&(i[3+r]/=u),o(i)}};class Il extends js{componentDidMount(){const{visualElement:e,layoutGroup:n,switchLayoutGroup:s,layoutId:i}=this.props,{projection:o}=e;lo(jl),o&&(n.group&&n.group.add(o),s&&s.register&&i&&s.register(o),o.root.didUpdate(),o.addEventListener("animationComplete",()=>{this.safeToRemove()}),o.setOptions({...o.options,onExitComplete:()=>this.safeToRemove()})),Kt.hasEverUpdated=!0}getSnapshotBeforeUpdate(e){const{layoutDependency:n,visualElement:s,drag:i,isPresent:o}=this.props,r=s.projection;return r&&(r.isPresent=o,i||e.layoutDependency!==n||n===void 0?r.willUpdate():this.safeToRemove(),e.isPresent!==o&&(o?r.promote():r.relegate()||w.postRender(()=>{const a=r.getStack();(!a||!a.members.length)&&this.safeToRemove()}))),null}componentDidUpdate(){const{projection:e}=this.props.visualElement;e&&(e.root.didUpdate(),Ge.postRender(()=>{!e.currentAnimation&&e.isLead()&&this.safeToRemove()}))}componentWillUnmount(){const{visualElement:e,layoutGroup:n,switchLayoutGroup:s}=this.props,{projection:i}=e;i&&(i.scheduleCheckAfterUnmount(),n&&n.group&&n.group.remove(i),s&&s.deregister&&s.deregister(i))}safeToRemove(){const{safeToRemove:e}=this.props;e&&e()}render(){return null}}function er(t){const[e,n]=Ns(),s=F(je);return q(Il,{...t,layoutGroup:s,switchLayoutGroup:F(Hs),isPresent:e,safeToRemove:n})}const jl={borderRadius:{...Tt,applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]},borderTopLeftRadius:Tt,borderTopRightRadius:Tt,borderBottomLeftRadius:Tt,borderBottomRightRadius:Tt,boxShadow:Ol};function Nl(t,e,n){const s=B(t)?t:Mt(t);return s.start(yn("",s,e,n)),s.animation}function Ul(t){return t instanceof SVGElement&&t.tagName!=="svg"}const _l=(t,e)=>t.depth-e.depth;class Kl{constructor(){this.children=[],this.isDirty=!1}add(e){nn(this.children,e),this.isDirty=!0}remove(e){sn(this.children,e),this.isDirty=!0}forEach(e){this.isDirty&&this.children.sort(_l),this.isDirty=!1,this.children.forEach(e)}}function Wl(t,e){const n=W.now(),s=({timestamp:i})=>{const o=i-n;o>=e&&(Z(s),t(o-e))};return w.read(s,!0),()=>Z(s)}const nr=["TopLeft","TopRight","BottomLeft","BottomRight"],$l=nr.length,us=t=>typeof t=="string"?parseFloat(t):t,cs=t=>typeof t=="number"||P.test(t);function Gl(t,e,n,s,i,o){i?(t.opacity=V(0,n.opacity!==void 0?n.opacity:1,zl(s)),t.opacityExit=V(e.opacity!==void 0?e.opacity:1,0,Hl(s))):o&&(t.opacity=V(e.opacity!==void 0?e.opacity:1,n.opacity!==void 0?n.opacity:1,s));for(let r=0;r<$l;r++){const a=`border${nr[r]}Radius`;let l=hs(e,a),u=hs(n,a);if(l===void 0&&u===void 0)continue;l||(l=0),u||(u=0),l===0||u===0||cs(l)===cs(u)?(t[a]=Math.max(V(us(l),us(u),s),0),(K.test(u)||K.test(l))&&(t[a]+="%")):t[a]=u}(e.rotate||n.rotate)&&(t.rotate=V(e.rotate||0,n.rotate||0,s))}function hs(t,e){return t[e]!==void 0?t[e]:t.borderRadius}const zl=sr(0,.5,Ti),Hl=sr(.5,.95,O);function sr(t,e,n){return s=>s<t?0:s>e?1:n(pt(t,e,s))}function fs(t,e){t.min=e.min,t.max=e.max}function N(t,e){fs(t.x,e.x),fs(t.y,e.y)}function ds(t,e){t.translate=e.translate,t.scale=e.scale,t.originPoint=e.originPoint,t.origin=e.origin}function ps(t,e,n,s,i){return t-=e,t=Yt(t,1/n,s),i!==void 0&&(t=Yt(t,1/i,s)),t}function Xl(t,e=0,n=1,s=.5,i,o=t,r=t){if(K.test(e)&&(e=parseFloat(e),e=V(r.min,r.max,e/100)-r.min),typeof e!="number")return;let a=V(o.min,o.max,s);t===o&&(a-=e),t.min=ps(t.min,e,n,a,i),t.max=ps(t.max,e,n,a,i)}function ms(t,e,[n,s,i],o,r){Xl(t,e[n],e[s],e[i],e.scale,o,r)}const Yl=["x","scaleX","originX"],ql=["y","scaleY","originY"];function gs(t,e,n,s){ms(t.x,e,Yl,n?n.x:void 0,s?s.x:void 0),ms(t.y,e,ql,n?n.y:void 0,s?s.y:void 0)}function ys(t){return t.translate===0&&t.scale===1}function ir(t){return ys(t.x)&&ys(t.y)}function vs(t,e){return t.min===e.min&&t.max===e.max}function Zl(t,e){return vs(t.x,e.x)&&vs(t.y,e.y)}function Ts(t,e){return Math.round(t.min)===Math.round(e.min)&&Math.round(t.max)===Math.round(e.max)}function rr(t,e){return Ts(t.x,e.x)&&Ts(t.y,e.y)}function xs(t){return I(t.x)/I(t.y)}function Ps(t,e){return t.translate===e.translate&&t.scale===e.scale&&t.originPoint===e.originPoint}class Jl{constructor(){this.members=[]}add(e){nn(this.members,e),e.scheduleRender()}remove(e){if(sn(this.members,e),e===this.prevLead&&(this.prevLead=void 0),e===this.lead){const n=this.members[this.members.length-1];n&&this.promote(n)}}relegate(e){const n=this.members.findIndex(i=>e===i);if(n===0)return!1;let s;for(let i=n;i>=0;i--){const o=this.members[i];if(o.isPresent!==!1){s=o;break}}return s?(this.promote(s),!0):!1}promote(e,n){const s=this.lead;if(e!==s&&(this.prevLead=s,this.lead=e,e.show(),s)){s.instance&&s.scheduleRender(),e.scheduleRender(),e.resumeFrom=s,n&&(e.resumeFrom.preserveOpacity=!0),s.snapshot&&(e.snapshot=s.snapshot,e.snapshot.latestValues=s.animationValues||s.latestValues),e.root&&e.root.isUpdating&&(e.isLayoutDirty=!0);const{crossfade:i}=e.options;i===!1&&s.hide()}}exitAnimationComplete(){this.members.forEach(e=>{const{options:n,resumingFrom:s}=e;n.onExitComplete&&n.onExitComplete(),s&&s.options.onExitComplete&&s.options.onExitComplete()})}scheduleRender(){this.members.forEach(e=>{e.instance&&e.scheduleRender(!1)})}removeLeadSnapshot(){this.lead&&this.lead.snapshot&&(this.lead.snapshot=void 0)}}function Ql(t,e,n){let s="";const i=t.x.translate/e.x,o=t.y.translate/e.y,r=n?.z||0;if((i||o||r)&&(s=`translate3d(${i}px, ${o}px, ${r}px) `),(e.x!==1||e.y!==1)&&(s+=`scale(${1/e.x}, ${1/e.y}) `),n){const{transformPerspective:u,rotate:c,rotateX:h,rotateY:f,skewX:d,skewY:p}=n;u&&(s=`perspective(${u}px) ${s}`),c&&(s+=`rotate(${c}deg) `),h&&(s+=`rotateX(${h}deg) `),f&&(s+=`rotateY(${f}deg) `),d&&(s+=`skewX(${d}deg) `),p&&(s+=`skewY(${p}deg) `)}const a=t.x.scale*e.x,l=t.y.scale*e.y;return(a!==1||l!==1)&&(s+=`scale(${a}, ${l})`),s||"none"}const nt={type:"projectionFrame",totalNodes:0,resolvedTargetDeltas:0,recalculatedProjection:0},Pt=typeof window<"u"&&window.MotionDebug!==void 0,pe=["","X","Y","Z"],tu={visibility:"hidden"},Ss=1e3;let eu=0;function me(t,e,n,s){const{latestValues:i}=e;i[t]&&(n[t]=i[t],e.setStaticValue(t,0),s&&(s[t]=0))}function or(t){if(t.hasCheckedOptimisedAppear=!0,t.root===t)return;const{visualElement:e}=t.options;if(!e)return;const n=ui(e);if(window.MotionHasOptimisedAnimation(n,"transform")){const{layout:i,layoutId:o}=t.options;window.MotionCancelOptimisedAnimation(n,"transform",w,!(i||o))}const{parent:s}=t;s&&!s.hasCheckedOptimisedAppear&&or(s)}function ar({attachResizeListener:t,defaultParent:e,measureScroll:n,checkIsScrollRoot:s,resetTransform:i}){return class{constructor(r={},a=e?.()){this.id=eu++,this.animationId=0,this.children=new Set,this.options={},this.isTreeAnimating=!1,this.isAnimationBlocked=!1,this.isLayoutDirty=!1,this.isProjectionDirty=!1,this.isSharedProjectionDirty=!1,this.isTransformDirty=!1,this.updateManuallyBlocked=!1,this.updateBlockedByResize=!1,this.isUpdating=!1,this.isSVG=!1,this.needsReset=!1,this.shouldResetTransform=!1,this.hasCheckedOptimisedAppear=!1,this.treeScale={x:1,y:1},this.eventHandlers=new Map,this.hasTreeAnimated=!1,this.updateScheduled=!1,this.scheduleUpdate=()=>this.update(),this.projectionUpdateScheduled=!1,this.checkUpdateFailed=()=>{this.isUpdating&&(this.isUpdating=!1,this.clearAllSnapshots())},this.updateProjection=()=>{this.projectionUpdateScheduled=!1,Pt&&(nt.totalNodes=nt.resolvedTargetDeltas=nt.recalculatedProjection=0),this.nodes.forEach(iu),this.nodes.forEach(uu),this.nodes.forEach(cu),this.nodes.forEach(ru),Pt&&window.MotionDebug.record(nt)},this.resolvedRelativeTargetAt=0,this.hasProjected=!1,this.isVisible=!0,this.animationProgress=0,this.sharedNodes=new Map,this.latestValues=r,this.root=a?a.root||a:this,this.path=a?[...a.path,a]:[],this.parent=a,this.depth=a?a.depth+1:0;for(let l=0;l<this.path.length;l++)this.path[l].shouldResetTransform=!0;this.root===this&&(this.nodes=new Kl)}addEventListener(r,a){return this.eventHandlers.has(r)||this.eventHandlers.set(r,new rn),this.eventHandlers.get(r).add(a)}notifyListeners(r,...a){const l=this.eventHandlers.get(r);l&&l.notify(...a)}hasListeners(r){return this.eventHandlers.has(r)}mount(r,a=this.root.hasTreeAnimated){if(this.instance)return;this.isSVG=Ul(r),this.instance=r;const{layoutId:l,layout:u,visualElement:c}=this.options;if(c&&!c.current&&c.mount(r),this.root.nodes.add(this),this.parent&&this.parent.children.add(this),a&&(u||l)&&(this.isLayoutDirty=!0),t){let h;const f=()=>this.root.updateBlockedByResize=!1;t(r,()=>{this.root.updateBlockedByResize=!0,h&&h(),h=Wl(f,250),Kt.hasAnimatedSinceResize&&(Kt.hasAnimatedSinceResize=!1,this.nodes.forEach(bs))})}l&&this.root.registerSharedNode(l,this),this.options.animate!==!1&&c&&(l||u)&&this.addEventListener("didUpdate",({delta:h,hasLayoutChanged:f,hasRelativeTargetChanged:d,layout:p})=>{if(this.isTreeAnimationBlocked()){this.target=void 0,this.relativeTarget=void 0;return}const m=this.options.transition||c.getDefaultTransition()||mu,{onLayoutAnimationStart:y,onLayoutAnimationComplete:g}=c.getProps(),T=!this.targetLayout||!rr(this.targetLayout,p)||d,x=!f&&d;if(this.options.layoutRoot||this.resumeFrom&&this.resumeFrom.instance||x||f&&(T||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0),this.setAnimationOrigin(h,x);const A={...en(m,"layout"),onPlay:y,onComplete:g};(c.shouldReduceMotion||this.options.layoutRoot)&&(A.delay=0,A.type=!1),this.startAnimation(A)}else f||bs(this),this.isLead()&&this.options.onExitComplete&&this.options.onExitComplete();this.targetLayout=p})}unmount(){this.options.layoutId&&this.willUpdate(),this.root.nodes.remove(this);const r=this.getStack();r&&r.remove(this),this.parent&&this.parent.children.delete(this),this.instance=void 0,Z(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(hu),this.animationId++)}getTransformTemplate(){const{visualElement:r}=this.options;return r&&r.getProps().transformTemplate}willUpdate(r=!0){if(this.root.hasTreeAnimated=!0,this.root.isUpdateBlocked()){this.options.onExitComplete&&this.options.onExitComplete();return}if(window.MotionCancelOptimisedAnimation&&!this.hasCheckedOptimisedAppear&&or(this),!this.root.isUpdating&&this.root.startUpdate(),this.isLayoutDirty)return;this.isLayoutDirty=!0;for(let c=0;c<this.path.length;c++){const h=this.path[c];h.shouldResetTransform=!0,h.updateScroll("snapshot"),h.options.layoutRoot&&h.willUpdate(!1)}const{layoutId:a,layout:l}=this.options;if(a===void 0&&!l)return;const u=this.getTransformTemplate();this.prevTransformTemplateValue=u?u(this.latestValues,""):void 0,this.updateSnapshot(),r&&this.notifyListeners("willUpdate")}update(){if(this.updateScheduled=!1,this.isUpdateBlocked()){this.unblockUpdate(),this.clearAllSnapshots(),this.nodes.forEach(As);return}this.isUpdating||this.nodes.forEach(au),this.isUpdating=!1,this.nodes.forEach(lu),this.nodes.forEach(nu),this.nodes.forEach(su),this.clearAllSnapshots();const a=W.now();R.delta=H(0,1e3/60,a-R.timestamp),R.timestamp=a,R.isProcessing=!0,oe.update.process(R),oe.preRender.process(R),oe.render.process(R),R.isProcessing=!1}didUpdate(){this.updateScheduled||(this.updateScheduled=!0,Ge.read(this.scheduleUpdate))}clearAllSnapshots(){this.nodes.forEach(ou),this.sharedNodes.forEach(fu)}scheduleUpdateProjection(){this.projectionUpdateScheduled||(this.projectionUpdateScheduled=!0,w.preRender(this.updateProjection,!1,!0))}scheduleCheckAfterUnmount(){w.postRender(()=>{this.isLayoutDirty?this.root.didUpdate():this.root.checkUpdateFailed()})}updateSnapshot(){this.snapshot||!this.instance||(this.snapshot=this.measure())}updateLayout(){if(!this.instance||(this.updateScroll(),!(this.options.alwaysMeasureLayout&&this.isLead())&&!this.isLayoutDirty))return;if(this.resumeFrom&&!this.resumeFrom.instance)for(let l=0;l<this.path.length;l++)this.path[l].updateScroll();const r=this.layout;this.layout=this.measure(!1),this.layoutCorrected=M(),this.isLayoutDirty=!1,this.projectionDelta=void 0,this.notifyListeners("measure",this.layout.layoutBox);const{visualElement:a}=this.options;a&&a.notify("LayoutMeasure",this.layout.layoutBox,r?r.layoutBox:void 0)}updateScroll(r="measure"){let a=!!(this.options.layoutScroll&&this.instance);if(this.scroll&&this.scroll.animationId===this.root.animationId&&this.scroll.phase===r&&(a=!1),a){const l=s(this.instance);this.scroll={animationId:this.root.animationId,phase:r,isRoot:l,offset:n(this.instance),wasRoot:this.scroll?this.scroll.isRoot:l}}}resetTransform(){if(!i)return;const r=this.isLayoutDirty||this.shouldResetTransform||this.options.alwaysMeasureLayout,a=this.projectionDelta&&!ir(this.projectionDelta),l=this.getTransformTemplate(),u=l?l(this.latestValues,""):void 0,c=u!==this.prevTransformTemplateValue;r&&(a||et(this.latestValues)||c)&&(i(this.instance,u),this.shouldResetTransform=!1,this.scheduleRender())}measure(r=!0){const a=this.measurePageBox();let l=this.removeElementScroll(a);return r&&(l=this.removeTransform(l)),gu(l),{animationId:this.root.animationId,measuredBox:a,layoutBox:l,latestValues:{},source:this.id}}measurePageBox(){var r;const{visualElement:a}=this.options;if(!a)return M();const l=a.measureViewportBox();if(!(((r=this.scroll)===null||r===void 0?void 0:r.wasRoot)||this.path.some(yu))){const{scroll:c}=this.root;c&&(ht(l.x,c.offset.x),ht(l.y,c.offset.y))}return l}removeElementScroll(r){var a;const l=M();if(N(l,r),!((a=this.scroll)===null||a===void 0)&&a.wasRoot)return l;for(let u=0;u<this.path.length;u++){const c=this.path[u],{scroll:h,options:f}=c;c!==this.root&&h&&f.layoutScroll&&(h.wasRoot&&N(l,r),ht(l.x,h.offset.x),ht(l.y,h.offset.y))}return l}applyTransform(r,a=!1){const l=M();N(l,r);for(let u=0;u<this.path.length;u++){const c=this.path[u];!a&&c.options.layoutScroll&&c.scroll&&c!==c.root&&ft(l,{x:-c.scroll.offset.x,y:-c.scroll.offset.y}),et(c.latestValues)&&ft(l,c.latestValues)}return et(this.latestValues)&&ft(l,this.latestValues),l}removeTransform(r){const a=M();N(a,r);for(let l=0;l<this.path.length;l++){const u=this.path[l];if(!u.instance||!et(u.latestValues))continue;Le(u.latestValues)&&u.updateSnapshot();const c=M(),h=u.measurePageBox();N(c,h),gs(a,u.latestValues,u.snapshot?u.snapshot.layoutBox:void 0,c)}return et(this.latestValues)&&gs(a,this.latestValues),a}setTargetDelta(r){this.targetDelta=r,this.root.scheduleUpdateProjection(),this.isProjectionDirty=!0}setOptions(r){this.options={...this.options,...r,crossfade:r.crossfade!==void 0?r.crossfade:!0}}clearMeasurements(){this.scroll=void 0,this.layout=void 0,this.snapshot=void 0,this.prevTransformTemplateValue=void 0,this.targetDelta=void 0,this.target=void 0,this.isLayoutDirty=!1}forceRelativeParentToResolveTarget(){this.relativeParent&&this.relativeParent.resolvedRelativeTargetAt!==R.timestamp&&this.relativeParent.resolveTargetDelta(!0)}resolveTargetDelta(r=!1){var a;const l=this.getLead();this.isProjectionDirty||(this.isProjectionDirty=l.isProjectionDirty),this.isTransformDirty||(this.isTransformDirty=l.isTransformDirty),this.isSharedProjectionDirty||(this.isSharedProjectionDirty=l.isSharedProjectionDirty);const u=!!this.resumingFrom||this!==l;if(!(r||u&&this.isSharedProjectionDirty||this.isProjectionDirty||!((a=this.parent)===null||a===void 0)&&a.isProjectionDirty||this.attemptToResolveRelativeTarget||this.root.updateBlockedByResize))return;const{layout:h,layoutId:f}=this.options;if(!(!this.layout||!(h||f))){if(this.resolvedRelativeTargetAt=R.timestamp,!this.targetDelta&&!this.relativeTarget){const d=this.getClosestProjectingParent();d&&d.layout&&this.animationProgress!==1?(this.relativeParent=d,this.forceRelativeParentToResolveTarget(),this.relativeTarget=M(),this.relativeTargetOrigin=M(),Vt(this.relativeTargetOrigin,this.layout.layoutBox,d.layout.layoutBox),N(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}if(!(!this.relativeTarget&&!this.targetDelta)){if(this.target||(this.target=M(),this.targetWithTransforms=M()),this.relativeTarget&&this.relativeTargetOrigin&&this.relativeParent&&this.relativeParent.target?(this.forceRelativeParentToResolveTarget(),xl(this.target,this.relativeTarget,this.relativeParent.target)):this.targetDelta?(this.resumingFrom?this.target=this.applyTransform(this.layout.layoutBox):N(this.target,this.layout.layoutBox),Ji(this.target,this.targetDelta)):N(this.target,this.layout.layoutBox),this.attemptToResolveRelativeTarget){this.attemptToResolveRelativeTarget=!1;const d=this.getClosestProjectingParent();d&&!!d.resumingFrom==!!this.resumingFrom&&!d.options.layoutScroll&&d.target&&this.animationProgress!==1?(this.relativeParent=d,this.forceRelativeParentToResolveTarget(),this.relativeTarget=M(),this.relativeTargetOrigin=M(),Vt(this.relativeTargetOrigin,this.target,d.target),N(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}Pt&&nt.resolvedTargetDeltas++}}}getClosestProjectingParent(){if(!(!this.parent||Le(this.parent.latestValues)||Zi(this.parent.latestValues)))return this.parent.isProjecting()?this.parent:this.parent.getClosestProjectingParent()}isProjecting(){return!!((this.relativeTarget||this.targetDelta||this.options.layoutRoot)&&this.layout)}calcProjection(){var r;const a=this.getLead(),l=!!this.resumingFrom||this!==a;let u=!0;if((this.isProjectionDirty||!((r=this.parent)===null||r===void 0)&&r.isProjectionDirty)&&(u=!1),l&&(this.isSharedProjectionDirty||this.isTransformDirty)&&(u=!1),this.resolvedRelativeTargetAt===R.timestamp&&(u=!1),u)return;const{layout:c,layoutId:h}=this.options;if(this.isTreeAnimating=!!(this.parent&&this.parent.isTreeAnimating||this.currentAnimation||this.pendingAnimation),this.isTreeAnimating||(this.targetDelta=this.relativeTarget=void 0),!this.layout||!(c||h))return;N(this.layoutCorrected,this.layout.layoutBox);const f=this.treeScale.x,d=this.treeScale.y;Ml(this.layoutCorrected,this.treeScale,this.path,l),a.layout&&!a.target&&(this.treeScale.x!==1||this.treeScale.y!==1)&&(a.target=a.layout.layoutBox,a.targetWithTransforms=M());const{target:p}=a;if(!p){this.prevProjectionDelta&&(this.createProjectionDeltas(),this.scheduleRender());return}!this.projectionDelta||!this.prevProjectionDelta?this.createProjectionDeltas():(ds(this.prevProjectionDelta.x,this.projectionDelta.x),ds(this.prevProjectionDelta.y,this.projectionDelta.y)),wt(this.projectionDelta,this.layoutCorrected,p,this.latestValues),(this.treeScale.x!==f||this.treeScale.y!==d||!Ps(this.projectionDelta.x,this.prevProjectionDelta.x)||!Ps(this.projectionDelta.y,this.prevProjectionDelta.y))&&(this.hasProjected=!0,this.scheduleRender(),this.notifyListeners("projectionUpdate",p)),Pt&&nt.recalculatedProjection++}hide(){this.isVisible=!1}show(){this.isVisible=!0}scheduleRender(r=!0){var a;if((a=this.options.visualElement)===null||a===void 0||a.scheduleRender(),r){const l=this.getStack();l&&l.scheduleRender()}this.resumingFrom&&!this.resumingFrom.instance&&(this.resumingFrom=void 0)}createProjectionDeltas(){this.prevProjectionDelta=ct(),this.projectionDelta=ct(),this.projectionDeltaWithTransform=ct()}setAnimationOrigin(r,a=!1){const l=this.snapshot,u=l?l.latestValues:{},c={...this.latestValues},h=ct();(!this.relativeParent||!this.relativeParent.options.layoutRoot)&&(this.relativeTarget=this.relativeTargetOrigin=void 0),this.attemptToResolveRelativeTarget=!a;const f=M(),d=l?l.source:void 0,p=this.layout?this.layout.source:void 0,m=d!==p,y=this.getStack(),g=!y||y.members.length<=1,T=!!(m&&!g&&this.options.crossfade===!0&&!this.path.some(pu));this.animationProgress=0;let x;this.mixTargetDelta=A=>{const v=A/1e3;ws(h.x,r.x,v),ws(h.y,r.y,v),this.setTargetDelta(h),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout&&(Vt(f,this.layout.layoutBox,this.relativeParent.layout.layoutBox),du(this.relativeTarget,this.relativeTargetOrigin,f,v),x&&Zl(this.relativeTarget,x)&&(this.isProjectionDirty=!1),x||(x=M()),N(x,this.relativeTarget)),m&&(this.animationValues=c,Gl(c,u,this.latestValues,v,T,g)),this.root.scheduleUpdateProjection(),this.scheduleRender(),this.animationProgress=v},this.mixTargetDelta(this.options.layoutRoot?1e3:0)}startAnimation(r){this.notifyListeners("animationStart"),this.currentAnimation&&this.currentAnimation.stop(),this.resumingFrom&&this.resumingFrom.currentAnimation&&this.resumingFrom.currentAnimation.stop(),this.pendingAnimation&&(Z(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=w.update(()=>{Kt.hasAnimatedSinceResize=!0,this.currentAnimation=Nl(0,Ss,{...r,onUpdate:a=>{this.mixTargetDelta(a),r.onUpdate&&r.onUpdate(a)},onComplete:()=>{r.onComplete&&r.onComplete(),this.completeAnimation()}}),this.resumingFrom&&(this.resumingFrom.currentAnimation=this.currentAnimation),this.pendingAnimation=void 0})}completeAnimation(){this.resumingFrom&&(this.resumingFrom.currentAnimation=void 0,this.resumingFrom.preserveOpacity=void 0);const r=this.getStack();r&&r.exitAnimationComplete(),this.resumingFrom=this.currentAnimation=this.animationValues=void 0,this.notifyListeners("animationComplete")}finishAnimation(){this.currentAnimation&&(this.mixTargetDelta&&this.mixTargetDelta(Ss),this.currentAnimation.stop()),this.completeAnimation()}applyTransformsToTarget(){const r=this.getLead();let{targetWithTransforms:a,target:l,layout:u,latestValues:c}=r;if(!(!a||!l||!u)){if(this!==r&&this.layout&&u&&lr(this.options.animationType,this.layout.layoutBox,u.layoutBox)){l=this.target||M();const h=I(this.layout.layoutBox.x);l.x.min=r.target.x.min,l.x.max=l.x.min+h;const f=I(this.layout.layoutBox.y);l.y.min=r.target.y.min,l.y.max=l.y.min+f}N(a,l),ft(a,c),wt(this.projectionDeltaWithTransform,this.layoutCorrected,a,c)}}registerSharedNode(r,a){this.sharedNodes.has(r)||this.sharedNodes.set(r,new Jl),this.sharedNodes.get(r).add(a);const u=a.options.initialPromotionConfig;a.promote({transition:u?u.transition:void 0,preserveFollowOpacity:u&&u.shouldPreserveFollowOpacity?u.shouldPreserveFollowOpacity(a):void 0})}isLead(){const r=this.getStack();return r?r.lead===this:!0}getLead(){var r;const{layoutId:a}=this.options;return a?((r=this.getStack())===null||r===void 0?void 0:r.lead)||this:this}getPrevLead(){var r;const{layoutId:a}=this.options;return a?(r=this.getStack())===null||r===void 0?void 0:r.prevLead:void 0}getStack(){const{layoutId:r}=this.options;if(r)return this.root.sharedNodes.get(r)}promote({needsReset:r,transition:a,preserveFollowOpacity:l}={}){const u=this.getStack();u&&u.promote(this,l),r&&(this.projectionDelta=void 0,this.needsReset=!0),a&&this.setOptions({transition:a})}relegate(){const r=this.getStack();return r?r.relegate(this):!1}resetSkewAndRotation(){const{visualElement:r}=this.options;if(!r)return;let a=!1;const{latestValues:l}=r;if((l.z||l.rotate||l.rotateX||l.rotateY||l.rotateZ||l.skewX||l.skewY)&&(a=!0),!a)return;const u={};l.z&&me("z",r,u,this.animationValues);for(let c=0;c<pe.length;c++)me(`rotate${pe[c]}`,r,u,this.animationValues),me(`skew${pe[c]}`,r,u,this.animationValues);r.render();for(const c in u)r.setStaticValue(c,u[c]),this.animationValues&&(this.animationValues[c]=u[c]);r.scheduleRender()}getProjectionStyles(r){var a,l;if(!this.instance||this.isSVG)return;if(!this.isVisible)return tu;const u={visibility:""},c=this.getTransformTemplate();if(this.needsReset)return this.needsReset=!1,u.opacity="",u.pointerEvents=Ut(r?.pointerEvents)||"",u.transform=c?c(this.latestValues,""):"none",u;const h=this.getLead();if(!this.projectionDelta||!this.layout||!h.target){const m={};return this.options.layoutId&&(m.opacity=this.latestValues.opacity!==void 0?this.latestValues.opacity:1,m.pointerEvents=Ut(r?.pointerEvents)||""),this.hasProjected&&!et(this.latestValues)&&(m.transform=c?c({},""):"none",this.hasProjected=!1),m}const f=h.animationValues||h.latestValues;this.applyTransformsToTarget(),u.transform=Ql(this.projectionDeltaWithTransform,this.treeScale,f),c&&(u.transform=c(f,u.transform));const{x:d,y:p}=this.projectionDelta;u.transformOrigin=`${d.origin*100}% ${p.origin*100}% 0`,h.animationValues?u.opacity=h===this?(l=(a=f.opacity)!==null&&a!==void 0?a:this.latestValues.opacity)!==null&&l!==void 0?l:1:this.preserveOpacity?this.latestValues.opacity:f.opacityExit:u.opacity=h===this?f.opacity!==void 0?f.opacity:"":f.opacityExit!==void 0?f.opacityExit:0;for(const m in $t){if(f[m]===void 0)continue;const{correct:y,applyTo:g}=$t[m],T=u.transform==="none"?f[m]:y(f[m],h);if(g){const x=g.length;for(let A=0;A<x;A++)u[g[A]]=T}else u[m]=T}return this.options.layoutId&&(u.pointerEvents=h===this?Ut(r?.pointerEvents)||"":"none"),u}clearSnapshot(){this.resumeFrom=this.snapshot=void 0}resetTree(){this.root.nodes.forEach(r=>{var a;return(a=r.currentAnimation)===null||a===void 0?void 0:a.stop()}),this.root.nodes.forEach(As),this.root.sharedNodes.clear()}}}function nu(t){t.updateLayout()}function su(t){var e;const n=((e=t.resumeFrom)===null||e===void 0?void 0:e.snapshot)||t.snapshot;if(t.isLead()&&t.layout&&n&&t.hasListeners("didUpdate")){const{layoutBox:s,measuredBox:i}=t.layout,{animationType:o}=t.options,r=n.source!==t.layout.source;o==="size"?U(h=>{const f=r?n.measuredBox[h]:n.layoutBox[h],d=I(f);f.min=s[h].min,f.max=f.min+d}):lr(o,n.layoutBox,s)&&U(h=>{const f=r?n.measuredBox[h]:n.layoutBox[h],d=I(s[h]);f.max=f.min+d,t.relativeTarget&&!t.currentAnimation&&(t.isProjectionDirty=!0,t.relativeTarget[h].max=t.relativeTarget[h].min+d)});const a=ct();wt(a,s,n.layoutBox);const l=ct();r?wt(l,t.applyTransform(i,!0),n.measuredBox):wt(l,s,n.layoutBox);const u=!ir(a);let c=!1;if(!t.resumeFrom){const h=t.getClosestProjectingParent();if(h&&!h.resumeFrom){const{snapshot:f,layout:d}=h;if(f&&d){const p=M();Vt(p,n.layoutBox,f.layoutBox);const m=M();Vt(m,s,d.layoutBox),rr(p,m)||(c=!0),h.options.layoutRoot&&(t.relativeTarget=m,t.relativeTargetOrigin=p,t.relativeParent=h)}}}t.notifyListeners("didUpdate",{layout:s,snapshot:n,delta:l,layoutDelta:a,hasLayoutChanged:u,hasRelativeTargetChanged:c})}else if(t.isLead()){const{onExitComplete:s}=t.options;s&&s()}t.options.transition=void 0}function iu(t){Pt&&nt.totalNodes++,t.parent&&(t.isProjecting()||(t.isProjectionDirty=t.parent.isProjectionDirty),t.isSharedProjectionDirty||(t.isSharedProjectionDirty=!!(t.isProjectionDirty||t.parent.isProjectionDirty||t.parent.isSharedProjectionDirty)),t.isTransformDirty||(t.isTransformDirty=t.parent.isTransformDirty))}function ru(t){t.isProjectionDirty=t.isSharedProjectionDirty=t.isTransformDirty=!1}function ou(t){t.clearSnapshot()}function As(t){t.clearMeasurements()}function au(t){t.isLayoutDirty=!1}function lu(t){const{visualElement:e}=t.options;e&&e.getProps().onBeforeLayoutMeasure&&e.notify("BeforeLayoutMeasure"),t.resetTransform()}function bs(t){t.finishAnimation(),t.targetDelta=t.relativeTarget=t.target=void 0,t.isProjectionDirty=!0}function uu(t){t.resolveTargetDelta()}function cu(t){t.calcProjection()}function hu(t){t.resetSkewAndRotation()}function fu(t){t.removeLeadSnapshot()}function ws(t,e,n){t.translate=V(e.translate,0,n),t.scale=V(e.scale,1,n),t.origin=e.origin,t.originPoint=e.originPoint}function Vs(t,e,n,s){t.min=V(e.min,n.min,s),t.max=V(e.max,n.max,s)}function du(t,e,n,s){Vs(t.x,e.x,n.x,s),Vs(t.y,e.y,n.y,s)}function pu(t){return t.animationValues&&t.animationValues.opacityExit!==void 0}const mu={duration:.45,ease:[.4,0,.1,1]},Ds=t=>typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().includes(t),Cs=Ds("applewebkit/")&&!Ds("chrome/")?Math.round:O;function Ms(t){t.min=Cs(t.min),t.max=Cs(t.max)}function gu(t){Ms(t.x),Ms(t.y)}function lr(t,e,n){return t==="position"||t==="preserve-aspect"&&!Tl(xs(e),xs(n),.2)}function yu(t){var e;return t!==t.root&&((e=t.scroll)===null||e===void 0?void 0:e.wasRoot)}const vu=ar({attachResizeListener:(t,e)=>Et(t,"resize",e),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body.scrollLeft,y:document.documentElement.scrollTop||document.body.scrollTop}),checkIsScrollRoot:()=>!0}),ge={current:void 0},ur=ar({measureScroll:t=>({x:t.scrollLeft,y:t.scrollTop}),defaultParent:()=>{if(!ge.current){const t=new vu({});t.mount(window),t.setOptions({layoutScroll:!0}),ge.current=t}return ge.current},resetTransform:(t,e)=>{t.style.transform=e!==void 0?e:"none"},checkIsScrollRoot:t=>window.getComputedStyle(t).position==="fixed"}),Tu={pan:{Feature:kl},drag:{Feature:Bl,ProjectionNode:ur,MeasureLayout:er}};function xu(t,e,n){var s;if(t instanceof Element)return[t];if(typeof t=="string"){let i=document;const o=(s=void 0)!==null&&s!==void 0?s:i.querySelectorAll(t);return o?Array.from(o):[]}return Array.from(t)}function cr(t,e){const n=xu(t),s=new AbortController,i={passive:!0,...e,signal:s.signal};return[n,i,()=>s.abort()]}function Rs(t){return e=>{e.pointerType==="touch"||Gi()||t(e)}}function Pu(t,e,n={}){const[s,i,o]=cr(t,n),r=Rs(a=>{const{target:l}=a,u=e(a);if(typeof u!="function"||!l)return;const c=Rs(h=>{u(h),l.removeEventListener("pointerleave",c)});l.addEventListener("pointerleave",c,i)});return s.forEach(a=>{a.addEventListener("pointerenter",r,i)}),o}function Es(t,e,n){const{props:s}=t;t.animationState&&s.whileHover&&t.animationState.setActive("whileHover",n==="Start");const i="onHover"+n,o=s[i];o&&w.postRender(()=>o(e,kt(e)))}class Su extends Q{mount(){const{current:e}=this.node;e&&(this.unmount=Pu(e,n=>(Es(this.node,n,"Start"),s=>Es(this.node,s,"End"))))}unmount(){}}class Au extends Q{constructor(){super(...arguments),this.isActive=!1}onFocus(){let e=!1;try{e=this.node.current.matches(":focus-visible")}catch{e=!0}!e||!this.node.animationState||(this.node.animationState.setActive("whileFocus",!0),this.isActive=!0)}onBlur(){!this.isActive||!this.node.animationState||(this.node.animationState.setActive("whileFocus",!1),this.isActive=!1)}mount(){this.unmount=Bt(Et(this.node.current,"focus",()=>this.onFocus()),Et(this.node.current,"blur",()=>this.onBlur()))}unmount(){}}const hr=(t,e)=>e?t===e?!0:hr(t,e.parentElement):!1,bu=new Set(["BUTTON","INPUT","SELECT","TEXTAREA","A"]);function wu(t){return bu.has(t.tagName)||t.tabIndex!==-1}const St=new WeakSet;function Ls(t){return e=>{e.key==="Enter"&&t(e)}}function ye(t,e){t.dispatchEvent(new PointerEvent("pointer"+e,{isPrimary:!0,bubbles:!0}))}const Vu=(t,e)=>{const n=t.currentTarget;if(!n)return;const s=Ls(()=>{if(St.has(n))return;ye(n,"down");const i=Ls(()=>{ye(n,"up")}),o=()=>ye(n,"cancel");n.addEventListener("keyup",i,e),n.addEventListener("blur",o,e)});n.addEventListener("keydown",s,e),n.addEventListener("blur",()=>n.removeEventListener("keydown",s),e)};function Fs(t){return vn(t)&&!Gi()}function Du(t,e,n={}){const[s,i,o]=cr(t,n),r=a=>{const l=a.currentTarget;if(!Fs(a)||St.has(l))return;St.add(l);const u=e(a),c=(d,p)=>{window.removeEventListener("pointerup",h),window.removeEventListener("pointercancel",f),!(!Fs(d)||!St.has(l))&&(St.delete(l),typeof u=="function"&&u(d,{success:p}))},h=d=>{c(d,n.useGlobalTarget||hr(l,d.target))},f=d=>{c(d,!1)};window.addEventListener("pointerup",h,i),window.addEventListener("pointercancel",f,i)};return s.forEach(a=>{!wu(a)&&a.getAttribute("tabindex")===null&&(a.tabIndex=0),(n.useGlobalTarget?window:a).addEventListener("pointerdown",r,i),a.addEventListener("focus",u=>Vu(u,i),i)}),o}function Bs(t,e,n){const{props:s}=t;t.animationState&&s.whileTap&&t.animationState.setActive("whileTap",n==="Start");const i="onTap"+(n==="End"?"":n),o=s[i];o&&w.postRender(()=>o(e,kt(e)))}class Cu extends Q{mount(){const{current:e}=this.node;e&&(this.unmount=Du(e,n=>(Bs(this.node,n,"Start"),(s,{success:i})=>Bs(this.node,s,i?"End":"Cancel")),{useGlobalTarget:this.node.props.globalTapTarget}))}unmount(){}}const Be=new WeakMap,ve=new WeakMap,Mu=t=>{const e=Be.get(t.target);e&&e(t)},Ru=t=>{t.forEach(Mu)};function Eu({root:t,...e}){const n=t||document;ve.has(n)||ve.set(n,{});const s=ve.get(n),i=JSON.stringify(e);return s[i]||(s[i]=new IntersectionObserver(Ru,{root:t,...e})),s[i]}function Lu(t,e,n){const s=Eu(e);return Be.set(t,n),s.observe(t),()=>{Be.delete(t),s.unobserve(t)}}const Fu={some:0,all:1};class Bu extends Q{constructor(){super(...arguments),this.hasEnteredView=!1,this.isInView=!1}startObserver(){this.unmount();const{viewport:e={}}=this.node.getProps(),{root:n,margin:s,amount:i="some",once:o}=e,r={root:n?n.current:void 0,rootMargin:s,threshold:typeof i=="number"?i:Fu[i]},a=l=>{const{isIntersecting:u}=l;if(this.isInView===u||(this.isInView=u,o&&!u&&this.hasEnteredView))return;u&&(this.hasEnteredView=!0),this.node.animationState&&this.node.animationState.setActive("whileInView",u);const{onViewportEnter:c,onViewportLeave:h}=this.node.getProps(),f=u?c:h;f&&f(l)};return Lu(this.node.current,r,a)}mount(){this.startObserver()}update(){if(typeof IntersectionObserver>"u")return;const{props:e,prevProps:n}=this.node;["amount","margin","root"].some(ku(e,n))&&this.startObserver()}unmount(){}}function ku({viewport:t={}},{viewport:e={}}={}){return n=>t[n]!==e[n]}const Ou={inView:{Feature:Bu},tap:{Feature:Cu},focus:{Feature:Au},hover:{Feature:Su}},Iu={layout:{ProjectionNode:ur,MeasureLayout:er}},qt={current:null},Tn={current:!1};function fr(){if(Tn.current=!0,!!_e)if(window.matchMedia){const t=window.matchMedia("(prefers-reduced-motion)"),e=()=>qt.current=t.matches;t.addListener(e),e()}else qt.current=!1}const ju=[...Fi,L,J],Nu=t=>ju.find(Li(t)),ks=new WeakMap;function Uu(t,e,n){for(const s in e){const i=e[s],o=n[s];if(B(i))t.addValue(s,i);else if(B(o))t.addValue(s,Mt(i,{owner:t}));else if(o!==i)if(t.hasValue(s)){const r=t.getValue(s);r.liveStyle===!0?r.jump(i):r.hasAnimated||r.set(i)}else{const r=t.getStaticValue(s);t.addValue(s,Mt(r!==void 0?r:i,{owner:t}))}}for(const s in n)e[s]===void 0&&t.removeValue(s);return e}const Os=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"];class _u{scrapeMotionValuesFromProps(e,n,s){return{}}constructor({parent:e,props:n,presenceContext:s,reducedMotionConfig:i,blockInitialAnimation:o,visualState:r},a={}){this.current=null,this.children=new Set,this.isVariantNode=!1,this.isControllingVariants=!1,this.shouldReduceMotion=null,this.values=new Map,this.KeyframeResolver=pn,this.features={},this.valueSubscriptions=new Map,this.prevMotionValues={},this.events={},this.propEventSubscriptions={},this.notifyUpdate=()=>this.notify("Update",this.latestValues),this.render=()=>{this.current&&(this.triggerBuild(),this.renderInstance(this.current,this.renderState,this.props.style,this.projection))},this.renderScheduledAt=0,this.scheduleRender=()=>{const d=W.now();this.renderScheduledAt<d&&(this.renderScheduledAt=d,w.render(this.render,!1,!0))};const{latestValues:l,renderState:u,onUpdate:c}=r;this.onUpdate=c,this.latestValues=l,this.baseTarget={...l},this.initialValues=n.initial?{...l}:{},this.renderState=u,this.parent=e,this.props=n,this.presenceContext=s,this.depth=e?e.depth+1:0,this.reducedMotionConfig=i,this.options=a,this.blockInitialAnimation=!!o,this.isControllingVariants=ee(n),this.isVariantNode=Gs(n),this.isVariantNode&&(this.variantChildren=new Set),this.manuallyAnimateOnMount=!!(e&&e.current);const{willChange:h,...f}=this.scrapeMotionValuesFromProps(n,{},this);for(const d in f){const p=f[d];l[d]!==void 0&&B(p)&&p.set(l[d],!1)}}mount(e){this.current=e,ks.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((n,s)=>this.bindToMotionValue(s,n)),Tn.current||fr(),this.shouldReduceMotion=this.reducedMotionConfig==="never"?!1:this.reducedMotionConfig==="always"?!0:qt.current,this.parent&&this.parent.children.add(this),this.update(this.props,this.presenceContext)}unmount(){ks.delete(this.current),this.projection&&this.projection.unmount(),Z(this.notifyUpdate),Z(this.render),this.valueSubscriptions.forEach(e=>e()),this.valueSubscriptions.clear(),this.removeFromVariantTree&&this.removeFromVariantTree(),this.parent&&this.parent.children.delete(this);for(const e in this.events)this.events[e].clear();for(const e in this.features){const n=this.features[e];n&&(n.unmount(),n.isMounted=!1)}this.current=null}bindToMotionValue(e,n){this.valueSubscriptions.has(e)&&this.valueSubscriptions.get(e)();const s=ot.has(e),i=n.on("change",a=>{this.latestValues[e]=a,this.props.onUpdate&&w.preRender(this.notifyUpdate),s&&this.projection&&(this.projection.isTransformDirty=!0)}),o=n.on("renderRequest",this.scheduleRender);let r;window.MotionCheckAppearSync&&(r=window.MotionCheckAppearSync(this,e,n)),this.valueSubscriptions.set(e,()=>{i(),o(),r&&r(),n.owner&&n.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 dt){const n=dt[e];if(!n)continue;const{isEnabled:s,Feature:i}=n;if(!this.features[e]&&i&&s(this.props)&&(this.features[e]=new i(this)),this.features[e]){const o=this.features[e];o.isMounted?o.update():(o.mount(),o.isMounted=!0)}}}triggerBuild(){this.build(this.renderState,this.latestValues,this.props)}measureViewportBox(){return this.current?this.measureInstanceViewportBox(this.current,this.props):M()}getStaticValue(e){return this.latestValues[e]}setStaticValue(e,n){this.latestValues[e]=n}update(e,n){(e.transformTemplate||this.props.transformTemplate)&&this.scheduleRender(),this.prevProps=this.props,this.props=e,this.prevPresenceContext=this.presenceContext,this.presenceContext=n;for(let s=0;s<Os.length;s++){const i=Os[s];this.propEventSubscriptions[i]&&(this.propEventSubscriptions[i](),delete this.propEventSubscriptions[i]);const o="on"+i,r=e[o];r&&(this.propEventSubscriptions[i]=this.on(i,r))}this.prevMotionValues=Uu(this,this.scrapeMotionValuesFromProps(e,this.prevProps,this),this.prevMotionValues),this.handleChildMotionValue&&this.handleChildMotionValue(),this.onUpdate&&this.onUpdate(this)}getProps(){return this.props}getVariant(e){return this.props.variants?this.props.variants[e]:void 0}getDefaultTransition(){return this.props.transition}getTransformPagePoint(){return this.props.transformPagePoint}getClosestVariantNode(){return this.isVariantNode?this:this.parent?this.parent.getClosestVariantNode():void 0}addVariantChild(e){const n=this.getClosestVariantNode();if(n)return n.variantChildren&&n.variantChildren.add(e),()=>n.variantChildren.delete(e)}addValue(e,n){const s=this.values.get(e);n!==s&&(s&&this.removeValue(e),this.bindToMotionValue(e,n),this.values.set(e,n),this.latestValues[e]=n.get())}removeValue(e){this.values.delete(e);const n=this.valueSubscriptions.get(e);n&&(n(),this.valueSubscriptions.delete(e)),delete this.latestValues[e],this.removeValueFromRenderState(e,this.renderState)}hasValue(e){return this.values.has(e)}getValue(e,n){if(this.props.values&&this.props.values[e])return this.props.values[e];let s=this.values.get(e);return s===void 0&&n!==void 0&&(s=Mt(n===null?void 0:n,{owner:this}),this.addValue(e,s)),s}readValue(e,n){var s;let i=this.latestValues[e]!==void 0||!this.current?this.latestValues[e]:(s=this.getBaseTargetFromProps(this.props,e))!==null&&s!==void 0?s:this.readValueFromInstance(this.current,e,this.options);return i!=null&&(typeof i=="string"&&(Ri(i)||Pi(i))?i=parseFloat(i):!Nu(i)&&J.test(n)&&(i=Di(e,n)),this.setBaseTarget(e,B(i)?i.get():i)),B(i)?i.get():i}setBaseTarget(e,n){this.baseTarget[e]=n}getBaseTarget(e){var n;const{initial:s}=this.props;let i;if(typeof s=="string"||typeof s=="object"){const r=He(this.props,s,(n=this.presenceContext)===null||n===void 0?void 0:n.custom);r&&(i=r[e])}if(s&&i!==void 0)return i;const o=this.getBaseTargetFromProps(this.props,e);return o!==void 0&&!B(o)?o:this.initialValues[e]!==void 0&&i===void 0?void 0:this.baseTarget[e]}on(e,n){return this.events[e]||(this.events[e]=new rn),this.events[e].add(n)}notify(e,...n){this.events[e]&&this.events[e].notify(...n)}}class dr extends _u{constructor(){super(...arguments),this.KeyframeResolver=Bi}sortInstanceNodePosition(e,n){return e.compareDocumentPosition(n)&2?1:-1}getBaseTargetFromProps(e,n){return e.style?e.style[n]:void 0}removeValueFromRenderState(e,{vars:n,style:s}){delete n[e],delete s[e]}handleChildMotionValue(){this.childSubscription&&(this.childSubscription(),delete this.childSubscription);const{children:e}=this.props;B(e)&&(this.childSubscription=e.on("change",n=>{this.current&&(this.current.textContent=`${n}`)}))}}function Ku(t){return window.getComputedStyle(t)}class Wu extends dr{constructor(){super(...arguments),this.type="html",this.renderInstance=ti}readValueFromInstance(e,n){if(ot.has(n)){const s=dn(n);return s&&s.default||0}else{const s=Ku(e),i=(Zs(n)?s.getPropertyValue(n):s[n])||0;return typeof i=="string"?i.trim():i}}measureInstanceViewportBox(e,{transformPagePoint:n}){return Qi(e,n)}build(e,n,s){qe(e,n,s.transformTemplate)}scrapeMotionValuesFromProps(e,n,s){return tn(e,n,s)}}class $u extends dr{constructor(){super(...arguments),this.type="svg",this.isSVGTag=!1,this.measureInstanceViewportBox=M}getBaseTargetFromProps(e,n){return e[n]}readValueFromInstance(e,n){if(ot.has(n)){const s=dn(n);return s&&s.default||0}return n=ei.has(n)?n:$e(n),e.getAttribute(n)}scrapeMotionValuesFromProps(e,n,s){return ii(e,n,s)}build(e,n,s){Ze(e,n,this.isSVGTag,s.transformTemplate)}renderInstance(e,n,s,i){ni(e,n,s,i)}mount(e){this.isSVGTag=Qe(e.tagName),super.mount(e)}}const Gu=(t,e)=>ze(t)?new $u(e):new Wu(e,{allowProjection:t!==Ie}),zu=vo({...ul,...Ou,...Tu,...Iu},Gu),Ju=Lr(zu);function Qu(){!Tn.current&&fr();const[t]=Te(qt.current);return t}export{qu as A,Ju as m,Qu as u};
@@ -0,0 +1 @@
1
+ var O,p,N_,N,l_,U_,A_,T_,t_,Z,K,E_,q={},B=[],Z_=/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i,F=Array.isArray;function w(_,e){for(var t in e)_[t]=e[t];return _}function n_(_){_&&_.parentNode&&_.parentNode.removeChild(_)}function X(_,e,t){var n,o,r,u={};for(r in e)r=="key"?n=e[r]:r=="ref"?o=e[r]:u[r]=e[r];if(arguments.length>2&&(u.children=arguments.length>3?O.call(arguments,2):t),typeof _=="function"&&_.defaultProps!=null)for(r in _.defaultProps)u[r]===void 0&&(u[r]=_.defaultProps[r]);return W(_,u,n,o,null)}function W(_,e,t,n,o){var r={type:_,props:e,key:t,ref:n,__k:null,__:null,__b:0,__e:null,__c:null,constructor:void 0,__v:o??++N_,__i:-1,__u:0};return o==null&&p.vnode!=null&&p.vnode(r),r}function U(_){return _.children}function P(_,e){this.props=_,this.context=e}function T(_,e){if(e==null)return _.__?T(_.__,_.__i+1):null;for(var t;e<_.__k.length;e++)if((t=_.__k[e])!=null&&t.__e!=null)return t.__e;return typeof _.type=="function"?T(_):null}function K_(_){if(_.__P&&_.__d){var e=_.__v,t=e.__e,n=[],o=[],r=w({},e);r.__v=e.__v+1,p.vnode&&p.vnode(r),r_(_.__P,r,e,_.__n,_.__P.namespaceURI,32&e.__u?[t]:null,n,t??T(e),!!(32&e.__u),o),r.__v=e.__v,r.__.__k[r.__i]=r,O_(n,r,o),e.__e=e.__=null,r.__e!=t&&R_(r)}}function R_(_){if((_=_.__)!=null&&_.__c!=null)return _.__e=_.__c.base=null,_.__k.some(function(e){if(e!=null&&e.__e!=null)return _.__e=_.__c.base=e.__e}),R_(_)}function Y(_){(!_.__d&&(_.__d=!0)&&N.push(_)&&!V.__r++||l_!=p.debounceRendering)&&((l_=p.debounceRendering)||U_)(V)}function V(){for(var _,e=1;N.length;)N.length>e&&N.sort(A_),_=N.shift(),e=N.length,K_(_);V.__r=0}function W_(_,e,t,n,o,r,u,c,a,l,s){var i,h,f,g,k,b,d,v=n&&n.__k||B,x=e.length;for(a=X_(t,e,v,a,x),i=0;i<x;i++)(f=t.__k[i])!=null&&(h=f.__i!=-1&&v[f.__i]||q,f.__i=i,b=r_(_,f,h,o,r,u,c,a,l,s),g=f.__e,f.ref&&h.ref!=f.ref&&(h.ref&&o_(h.ref,null,f),s.push(f.ref,f.__c||g,f)),k==null&&g!=null&&(k=g),(d=!!(4&f.__u))||h.__k===f.__k?a=D_(f,a,_,d):typeof f.type=="function"&&b!==void 0?a=b:g&&(a=g.nextSibling),f.__u&=-7);return t.__e=k,a}function X_(_,e,t,n,o){var r,u,c,a,l,s=t.length,i=s,h=0;for(_.__k=new Array(o),r=0;r<o;r++)(u=e[r])!=null&&typeof u!="boolean"&&typeof u!="function"?(typeof u=="string"||typeof u=="number"||typeof u=="bigint"||u.constructor==String?u=_.__k[r]=W(null,u,null,null,null):F(u)?u=_.__k[r]=W(U,{children:u},null,null,null):u.constructor===void 0&&u.__b>0?u=_.__k[r]=W(u.type,u.props,u.key,u.ref?u.ref:null,u.__v):_.__k[r]=u,a=r+h,u.__=_,u.__b=_.__b+1,c=null,(l=u.__i=Y_(u,t,a,i))!=-1&&(i--,(c=t[l])&&(c.__u|=2)),c==null||c.__v==null?(l==-1&&(o>s?h--:o<s&&h++),typeof u.type!="function"&&(u.__u|=4)):l!=a&&(l==a-1?h--:l==a+1?h++:(l>a?h--:h++,u.__u|=4))):_.__k[r]=null;if(i)for(r=0;r<s;r++)(c=t[r])!=null&&(2&c.__u)==0&&(c.__e==n&&(n=T(c)),M_(c,c));return n}function D_(_,e,t,n){var o,r;if(typeof _.type=="function"){for(o=_.__k,r=0;o&&r<o.length;r++)o[r]&&(o[r].__=_,e=D_(o[r],e,t,n));return e}_.__e!=e&&(n&&(e&&_.type&&!e.parentNode&&(e=T(_)),t.insertBefore(_.__e,e||null)),e=_.__e);do e=e&&e.nextSibling;while(e!=null&&e.nodeType==8);return e}function C(_,e){return e=e||[],_==null||typeof _=="boolean"||(F(_)?_.some(function(t){C(t,e)}):e.push(_)),e}function Y_(_,e,t,n){var o,r,u,c=_.key,a=_.type,l=e[t],s=l!=null&&(2&l.__u)==0;if(l===null&&c==null||s&&c==l.key&&a==l.type)return t;if(n>(s?1:0)){for(o=t-1,r=t+1;o>=0||r<e.length;)if((l=e[u=o>=0?o--:r++])!=null&&(2&l.__u)==0&&c==l.key&&a==l.type)return u}return-1}function c_(_,e,t){e[0]=="-"?_.setProperty(e,t??""):_[e]=t==null?"":typeof t!="number"||Z_.test(e)?t:t+"px"}function L(_,e,t,n,o){var r,u;_:if(e=="style")if(typeof t=="string")_.style.cssText=t;else{if(typeof n=="string"&&(_.style.cssText=n=""),n)for(e in n)t&&e in t||c_(_.style,e,"");if(t)for(e in t)n&&t[e]==n[e]||c_(_.style,e,t[e])}else if(e[0]=="o"&&e[1]=="n")r=e!=(e=e.replace(T_,"$1")),u=e.toLowerCase(),e=u in _||e=="onFocusOut"||e=="onFocusIn"?u.slice(2):e.slice(2),_.l||(_.l={}),_.l[e+r]=t,t?n?t.u=n.u:(t.u=t_,_.addEventListener(e,r?K:Z,r)):_.removeEventListener(e,r?K:Z,r);else{if(o=="http://www.w3.org/2000/svg")e=e.replace(/xlink(H|:h)/,"h").replace(/sName$/,"s");else if(e!="width"&&e!="height"&&e!="href"&&e!="list"&&e!="form"&&e!="tabIndex"&&e!="download"&&e!="rowSpan"&&e!="colSpan"&&e!="role"&&e!="popover"&&e in _)try{_[e]=t??"";break _}catch{}typeof t=="function"||(t==null||t===!1&&e[4]!="-"?_.removeAttribute(e):_.setAttribute(e,e=="popover"&&t==1?"":t))}}function a_(_){return function(e){if(this.l){var t=this.l[e.type+_];if(e.t==null)e.t=t_++;else if(e.t<t.u)return;return t(p.event?p.event(e):e)}}}function r_(_,e,t,n,o,r,u,c,a,l){var s,i,h,f,g,k,b,d,v,x,H,R,i_,M,z,$=e.type;if(e.constructor!==void 0)return null;128&t.__u&&(a=!!(32&t.__u),r=[c=e.__e=t.__e]),(s=p.__b)&&s(e);_:if(typeof $=="function")try{if(d=e.props,v="prototype"in $&&$.prototype.render,x=(s=$.contextType)&&n[s.__c],H=s?x?x.props.value:s.__:n,t.__c?b=(i=e.__c=t.__c).__=i.__E:(v?e.__c=i=new $(d,H):(e.__c=i=new P(d,H),i.constructor=$,i.render=ee),x&&x.sub(i),i.state||(i.state={}),i.__n=n,h=i.__d=!0,i.__h=[],i._sb=[]),v&&i.__s==null&&(i.__s=i.state),v&&$.getDerivedStateFromProps!=null&&(i.__s==i.state&&(i.__s=w({},i.__s)),w(i.__s,$.getDerivedStateFromProps(d,i.__s))),f=i.props,g=i.state,i.__v=e,h)v&&$.getDerivedStateFromProps==null&&i.componentWillMount!=null&&i.componentWillMount(),v&&i.componentDidMount!=null&&i.__h.push(i.componentDidMount);else{if(v&&$.getDerivedStateFromProps==null&&d!==f&&i.componentWillReceiveProps!=null&&i.componentWillReceiveProps(d,H),e.__v==t.__v||!i.__e&&i.shouldComponentUpdate!=null&&i.shouldComponentUpdate(d,i.__s,H)===!1){e.__v!=t.__v&&(i.props=d,i.state=i.__s,i.__d=!1),e.__e=t.__e,e.__k=t.__k,e.__k.some(function(A){A&&(A.__=e)}),B.push.apply(i.__h,i._sb),i._sb=[],i.__h.length&&u.push(i);break _}i.componentWillUpdate!=null&&i.componentWillUpdate(d,i.__s,H),v&&i.componentDidUpdate!=null&&i.__h.push(function(){i.componentDidUpdate(f,g,k)})}if(i.context=H,i.props=d,i.__P=_,i.__e=!1,R=p.__r,i_=0,v)i.state=i.__s,i.__d=!1,R&&R(e),s=i.render(i.props,i.state,i.context),B.push.apply(i.__h,i._sb),i._sb=[];else do i.__d=!1,R&&R(e),s=i.render(i.props,i.state,i.context),i.state=i.__s;while(i.__d&&++i_<25);i.state=i.__s,i.getChildContext!=null&&(n=w(w({},n),i.getChildContext())),v&&!h&&i.getSnapshotBeforeUpdate!=null&&(k=i.getSnapshotBeforeUpdate(f,g)),M=s!=null&&s.type===U&&s.key==null?F_(s.props.children):s,c=W_(_,F(M)?M:[M],e,t,n,o,r,u,c,a,l),i.base=e.__e,e.__u&=-161,i.__h.length&&u.push(i),b&&(i.__E=i.__=null)}catch(A){if(e.__v=null,a||r!=null)if(A.then){for(e.__u|=a?160:128;c&&c.nodeType==8&&c.nextSibling;)c=c.nextSibling;r[r.indexOf(c)]=null,e.__e=c}else{for(z=r.length;z--;)n_(r[z]);__(e)}else e.__e=t.__e,e.__k=t.__k,A.then||__(e);p.__e(A,e,t)}else r==null&&e.__v==t.__v?(e.__k=t.__k,e.__e=t.__e):c=e.__e=_e(t.__e,e,t,n,o,r,u,a,l);return(s=p.diffed)&&s(e),128&e.__u?void 0:c}function __(_){_&&(_.__c&&(_.__c.__e=!0),_.__k&&_.__k.some(__))}function O_(_,e,t){for(var n=0;n<t.length;n++)o_(t[n],t[++n],t[++n]);p.__c&&p.__c(e,_),_.some(function(o){try{_=o.__h,o.__h=[],_.some(function(r){r.call(o)})}catch(r){p.__e(r,o.__v)}})}function F_(_){return typeof _!="object"||_==null||_.__b>0?_:F(_)?_.map(F_):w({},_)}function _e(_,e,t,n,o,r,u,c,a){var l,s,i,h,f,g,k,b=t.props||q,d=e.props,v=e.type;if(v=="svg"?o="http://www.w3.org/2000/svg":v=="math"?o="http://www.w3.org/1998/Math/MathML":o||(o="http://www.w3.org/1999/xhtml"),r!=null){for(l=0;l<r.length;l++)if((f=r[l])&&"setAttribute"in f==!!v&&(v?f.localName==v:f.nodeType==3)){_=f,r[l]=null;break}}if(_==null){if(v==null)return document.createTextNode(d);_=document.createElementNS(o,v,d.is&&d),c&&(p.__m&&p.__m(e,r),c=!1),r=null}if(v==null)b===d||c&&_.data==d||(_.data=d);else{if(r=r&&O.call(_.childNodes),!c&&r!=null)for(b={},l=0;l<_.attributes.length;l++)b[(f=_.attributes[l]).name]=f.value;for(l in b)f=b[l],l=="dangerouslySetInnerHTML"?i=f:l=="children"||l in d||l=="value"&&"defaultValue"in d||l=="checked"&&"defaultChecked"in d||L(_,l,null,f,o);for(l in d)f=d[l],l=="children"?h=f:l=="dangerouslySetInnerHTML"?s=f:l=="value"?g=f:l=="checked"?k=f:c&&typeof f!="function"||b[l]===f||L(_,l,f,b[l],o);if(s)c||i&&(s.__html==i.__html||s.__html==_.innerHTML)||(_.innerHTML=s.__html),e.__k=[];else if(i&&(_.innerHTML=""),W_(e.type=="template"?_.content:_,F(h)?h:[h],e,t,n,v=="foreignObject"?"http://www.w3.org/1999/xhtml":o,r,u,r?r[0]:t.__k&&T(t,0),c,a),r!=null)for(l=r.length;l--;)n_(r[l]);c||(l="value",v=="progress"&&g==null?_.removeAttribute("value"):g!=null&&(g!==_[l]||v=="progress"&&!g||v=="option"&&g!=b[l])&&L(_,l,g,b[l],o),l="checked",k!=null&&k!=_[l]&&L(_,l,k,b[l],o))}return _}function o_(_,e,t){try{if(typeof _=="function"){var n=typeof _.__u=="function";n&&_.__u(),n&&e==null||(_.__u=_(e))}else _.current=e}catch(o){p.__e(o,t)}}function M_(_,e,t){var n,o;if(p.unmount&&p.unmount(_),(n=_.ref)&&(n.current&&n.current!=_.__e||o_(n,null,e)),(n=_.__c)!=null){if(n.componentWillUnmount)try{n.componentWillUnmount()}catch(r){p.__e(r,e)}n.base=n.__P=null}if(n=_.__k)for(o=0;o<n.length;o++)n[o]&&M_(n[o],e,t||typeof _.type!="function");t||n_(_.__e),_.__c=_.__=_.__e=void 0}function ee(_,e,t){return this.constructor(_,t)}function L_(_,e,t){var n,o,r,u;e==document&&(e=document.documentElement),p.__&&p.__(_,e),o=(n=!1)?null:e.__k,r=[],u=[],r_(e,_=e.__k=X(U,null,[_]),o||q,q,e.namespaceURI,o?null:e.firstChild?O.call(e.childNodes):null,r,o?o.__e:e.firstChild,n,u),O_(r,_,u)}function te(_,e,t){var n,o,r,u,c=w({},_.props);for(r in _.type&&_.type.defaultProps&&(u=_.type.defaultProps),e)r=="key"?n=e[r]:r=="ref"?o=e[r]:c[r]=e[r]===void 0&&u!=null?u[r]:e[r];return arguments.length>2&&(c.children=arguments.length>3?O.call(arguments,2):t),W(_.type,c,n||_.key,o||_.ref,null)}function we(_){function e(t){var n,o;return this.getChildContext||(n=new Set,(o={})[e.__c]=this,this.getChildContext=function(){return o},this.componentWillUnmount=function(){n=null},this.shouldComponentUpdate=function(r){this.props.value!=r.value&&n.forEach(function(u){u.__e=!0,Y(u)})},this.sub=function(r){n.add(r);var u=r.componentWillUnmount;r.componentWillUnmount=function(){n&&n.delete(r),u&&u.call(r)}}),t.children}return e.__c="__cC"+E_++,e.__=_,e.Provider=e.__l=(e.Consumer=function(t,n){return t.children(n)}).contextType=e,e}O=B.slice,p={__e:function(_,e,t,n){for(var o,r,u;e=e.__;)if((o=e.__c)&&!o.__)try{if((r=o.constructor)&&r.getDerivedStateFromError!=null&&(o.setState(r.getDerivedStateFromError(_)),u=o.__d),o.componentDidCatch!=null&&(o.componentDidCatch(_,n||{}),u=o.__d),u)return o.__E=o}catch(c){_=c}throw _}},N_=0,P.prototype.setState=function(_,e){var t;t=this.__s!=null&&this.__s!=this.state?this.__s:this.__s=w({},this.state),typeof _=="function"&&(_=_(w({},t),this.props)),_&&w(t,_),_!=null&&this.__v&&(e&&this._sb.push(e),Y(this))},P.prototype.forceUpdate=function(_){this.__v&&(this.__e=!0,_&&this.__h.push(_),Y(this))},P.prototype.render=U,N=[],U_=typeof Promise=="function"?Promise.prototype.then.bind(Promise.resolve()):setTimeout,A_=function(_,e){return _.__v.__b-e.__v.__b},V.__r=0,T_=/(PointerCapture)$|Capture$/i,t_=0,Z=a_(!1),K=a_(!0),E_=0;var ne=0;function Pe(_,e,t,n,o,r){e||(e={});var u,c,a=e;if("ref"in a)for(c in a={},e)c=="ref"?u=e[c]:a[c]=e[c];var l={type:_,props:a,key:t,ref:u,__k:null,__:null,__b:0,__e:null,__c:null,constructor:void 0,__v:--ne,__i:-1,__u:0,__source:o,__self:r};if(typeof _=="function"&&(u=_.defaultProps))for(c in u)a[c]===void 0&&(a[c]=u[c]);return p.vnode&&p.vnode(l),l}var S,m,G,f_,D=0,I_=[],y=p,s_=y.__b,p_=y.__r,h_=y.diffed,v_=y.__c,d_=y.unmount,m_=y.__;function E(_,e){y.__h&&y.__h(m,_,D||e),D=0;var t=m.__H||(m.__H={__:[],__h:[]});return _>=t.__.length&&t.__.push({}),t.__[_]}function re(_){return D=1,oe(B_,_)}function oe(_,e,t){var n=E(S++,2);if(n.t=_,!n.__c&&(n.__=[t?t(e):B_(void 0,e),function(c){var a=n.__N?n.__N[0]:n.__[0],l=n.t(a,c);a!==l&&(n.__N=[l,n.__[1]],n.__c.setState({}))}],n.__c=m,!m.__f)){var o=function(c,a,l){if(!n.__c.__H)return!0;var s=n.__c.__H.__.filter(function(h){return h.__c});if(s.every(function(h){return!h.__N}))return!r||r.call(this,c,a,l);var i=n.__c.props!==c;return s.some(function(h){if(h.__N){var f=h.__[0];h.__=h.__N,h.__N=void 0,f!==h.__[0]&&(i=!0)}}),r&&r.call(this,c,a,l)||i};m.__f=!0;var r=m.shouldComponentUpdate,u=m.componentWillUpdate;m.componentWillUpdate=function(c,a,l){if(this.__e){var s=r;r=void 0,o(c,a,l),r=s}u&&u.call(this,c,a,l)},m.shouldComponentUpdate=o}return n.__N||n.__}function ue(_,e){var t=E(S++,3);!y.__s&&u_(t.__H,e)&&(t.__=_,t.u=e,m.__H.__h.push(t))}function j_(_,e){var t=E(S++,4);!y.__s&&u_(t.__H,e)&&(t.__=_,t.u=e,m.__h.push(t))}function Ce(_){return D=5,q_(function(){return{current:_}},[])}function q_(_,e){var t=E(S++,7);return u_(t.__H,e)&&(t.__=_(),t.__H=e,t.__h=_),t.__}function xe(_,e){return D=8,q_(function(){return _},e)}function Se(_){var e=m.context[_.__c],t=E(S++,9);return t.c=_,e?(t.__==null&&(t.__=!0,e.sub(m)),e.props.value):_.__}function He(){var _=E(S++,11);if(!_.__){for(var e=m.__v;e!==null&&!e.__m&&e.__!==null;)e=e.__;var t=e.__m||(e.__m=[0,0]);_.__="P"+t[0]+"-"+t[1]++}return _.__}function ie(){for(var _;_=I_.shift();){var e=_.__H;if(_.__P&&e)try{e.__h.some(j),e.__h.some(e_),e.__h=[]}catch(t){e.__h=[],y.__e(t,_.__v)}}}y.__b=function(_){m=null,s_&&s_(_)},y.__=function(_,e){_&&e.__k&&e.__k.__m&&(_.__m=e.__k.__m),m_&&m_(_,e)},y.__r=function(_){p_&&p_(_),S=0;var e=(m=_.__c).__H;e&&(G===m?(e.__h=[],m.__h=[],e.__.some(function(t){t.__N&&(t.__=t.__N),t.u=t.__N=void 0})):(e.__h.some(j),e.__h.some(e_),e.__h=[],S=0)),G=m},y.diffed=function(_){h_&&h_(_);var e=_.__c;e&&e.__H&&(e.__H.__h.length&&(I_.push(e)!==1&&f_===y.requestAnimationFrame||((f_=y.requestAnimationFrame)||le)(ie)),e.__H.__.some(function(t){t.u&&(t.__H=t.u),t.u=void 0})),G=m=null},y.__c=function(_,e){e.some(function(t){try{t.__h.some(j),t.__h=t.__h.filter(function(n){return!n.__||e_(n)})}catch(n){e.some(function(o){o.__h&&(o.__h=[])}),e=[],y.__e(n,t.__v)}}),v_&&v_(_,e)},y.unmount=function(_){d_&&d_(_);var e,t=_.__c;t&&t.__H&&(t.__H.__.some(function(n){try{j(n)}catch(o){e=o}}),t.__H=void 0,e&&y.__e(e,t.__v))};var y_=typeof requestAnimationFrame=="function";function le(_){var e,t=function(){clearTimeout(n),y_&&cancelAnimationFrame(e),setTimeout(_)},n=setTimeout(t,35);y_&&(e=requestAnimationFrame(t))}function j(_){var e=m,t=_.__c;typeof t=="function"&&(_.__c=void 0,t()),m=e}function e_(_){var e=m;_.__c=_.__(),m=e}function u_(_,e){return!_||_.length!==e.length||e.some(function(t,n){return t!==_[n]})}function B_(_,e){return typeof e=="function"?e(_):e}function V_(_,e){for(var t in e)_[t]=e[t];return _}function g_(_,e){for(var t in _)if(t!=="__source"&&!(t in e))return!0;for(var n in e)if(n!=="__source"&&_[n]!==e[n])return!0;return!1}function Ne(_,e){var t=e(),n=re({t:{__:t,u:e}}),o=n[0].t,r=n[1];return j_(function(){o.__=t,o.u=e,J(o)&&r({t:o})},[_,t,e]),ue(function(){return J(o)&&r({t:o}),_(function(){J(o)&&r({t:o})})},[_]),t}function J(_){try{return!((e=_.__)===(t=_.u())&&(e!==0||1/e==1/t)||e!=e&&t!=t)}catch{return!0}var e,t}var Ue=j_;function b_(_,e){this.props=_,this.context=e}(b_.prototype=new P).isPureReactComponent=!0,b_.prototype.shouldComponentUpdate=function(_,e){return g_(this.props,_)||g_(this.state,e)};var k_=p.__b;p.__b=function(_){_.type&&_.type.__f&&_.ref&&(_.props.ref=_.ref,_.ref=null),k_&&k_(_)};var ce=typeof Symbol<"u"&&Symbol.for&&Symbol.for("react.forward_ref")||3911;function Ae(_){function e(t){var n=V_({},t);return delete n.ref,_(n,t.ref||null)}return e.$$typeof=ce,e.render=_,e.prototype.isReactComponent=e.__f=!0,e.displayName="ForwardRef("+(_.displayName||_.name)+")",e}var $_=function(_,e){return _==null?null:C(C(_).map(e))},Te={map:$_,forEach:$_,count:function(_){return _?C(_).length:0},only:function(_){var e=C(_);if(e.length!==1)throw"Children.only";return e[0]},toArray:C},ae=p.__e;p.__e=function(_,e,t,n){if(_.then){for(var o,r=e;r=r.__;)if((o=r.__c)&&o.__c)return e.__e==null&&(e.__e=t.__e,e.__k=t.__k),o.__c(_,e)}ae(_,e,t,n)};var w_=p.unmount;function z_(_,e,t){return _&&(_.__c&&_.__c.__H&&(_.__c.__H.__.forEach(function(n){typeof n.__c=="function"&&n.__c()}),_.__c.__H=null),(_=V_({},_)).__c!=null&&(_.__c.__P===t&&(_.__c.__P=e),_.__c.__e=!0,_.__c=null),_.__k=_.__k&&_.__k.map(function(n){return z_(n,e,t)})),_}function G_(_,e,t){return _&&t&&(_.__v=null,_.__k=_.__k&&_.__k.map(function(n){return G_(n,e,t)}),_.__c&&_.__c.__P===e&&(_.__e&&t.appendChild(_.__e),_.__c.__e=!0,_.__c.__P=t)),_}function Q(){this.__u=0,this.o=null,this.__b=null}function J_(_){if(!_.__)return null;var e=_.__.__c;return e&&e.__a&&e.__a(_)}function I(){this.i=null,this.l=null}p.unmount=function(_){var e=_.__c;e&&(e.__z=!0),e&&e.__R&&e.__R(),e&&32&_.__u&&(_.type=null),w_&&w_(_)},(Q.prototype=new P).__c=function(_,e){var t=e.__c,n=this;n.o==null&&(n.o=[]),n.o.push(t);var o=J_(n.__v),r=!1,u=function(){r||n.__z||(r=!0,t.__R=null,o?o(a):a())};t.__R=u;var c=t.__P;t.__P=null;var a=function(){if(!--n.__u){if(n.state.__a){var l=n.state.__a;n.__v.__k[0]=G_(l,l.__c.__P,l.__c.__O)}var s;for(n.setState({__a:n.__b=null});s=n.o.pop();)s.__P=c,s.forceUpdate()}};n.__u++||32&e.__u||n.setState({__a:n.__b=n.__v.__k[0]}),_.then(u,u)},Q.prototype.componentWillUnmount=function(){this.o=[]},Q.prototype.render=function(_,e){if(this.__b){if(this.__v.__k){var t=document.createElement("div"),n=this.__v.__k[0].__c;this.__v.__k[0]=z_(this.__b,t,n.__O=n.__P)}this.__b=null}var o=e.__a&&X(U,null,_.fallback);return o&&(o.__u&=-33),[X(U,null,e.__a?null:_.children),o]};var P_=function(_,e,t){if(++t[1]===t[0]&&_.l.delete(e),_.props.revealOrder&&(_.props.revealOrder[0]!=="t"||!_.l.size))for(t=_.i;t;){for(;t.length>3;)t.pop()();if(t[1]<t[0])break;_.i=t=t[2]}};(I.prototype=new P).__a=function(_){var e=this,t=J_(e.__v),n=e.l.get(_);return n[0]++,function(o){var r=function(){e.props.revealOrder?(n.push(o),P_(e,_,n)):o()};t?t(r):r()}},I.prototype.render=function(_){this.i=null,this.l=new Map;var e=C(_.children);_.revealOrder&&_.revealOrder[0]==="b"&&e.reverse();for(var t=e.length;t--;)this.l.set(e[t],this.i=[1,0,this.i]);return _.children},I.prototype.componentDidUpdate=I.prototype.componentDidMount=function(){var _=this;this.l.forEach(function(e,t){P_(_,t,e)})};var Q_=typeof Symbol<"u"&&Symbol.for&&Symbol.for("react.element")||60103,fe=/^(?:accent|alignment|arabic|baseline|cap|clip(?!PathU)|color|dominant|fill|flood|font|glyph(?!R)|horiz|image(!S)|letter|lighting|marker(?!H|W|U)|overline|paint|pointer|shape|stop|strikethrough|stroke|text(?!L)|transform|underline|unicode|units|v|vector|vert|word|writing|x(?!C))[A-Z]/,se=/^on(Ani|Tra|Tou|BeforeInp|Compo)/,pe=/[A-Z0-9]/g,he=typeof document<"u",ve=function(_){return(typeof Symbol<"u"&&typeof Symbol()=="symbol"?/fil|che|rad/:/fil|che|ra/).test(_)};function de(_,e,t){return e.__k==null&&(e.textContent=""),L_(_,e),typeof t=="function"&&t(),_?_.__c:null}P.prototype.isReactComponent={},["componentWillMount","componentWillReceiveProps","componentWillUpdate"].forEach(function(_){Object.defineProperty(P.prototype,_,{configurable:!0,get:function(){return this["UNSAFE_"+_]},set:function(e){Object.defineProperty(this,_,{configurable:!0,writable:!0,value:e})}})});var C_=p.event;function me(){}function ye(){return this.cancelBubble}function ge(){return this.defaultPrevented}p.event=function(_){return C_&&(_=C_(_)),_.persist=me,_.isPropagationStopped=ye,_.isDefaultPrevented=ge,_.nativeEvent=_};var be={enumerable:!1,configurable:!0,get:function(){return this.class}},x_=p.vnode;p.vnode=function(_){typeof _.type=="string"&&(function(e){var t=e.props,n=e.type,o={},r=n.indexOf("-")===-1;for(var u in t){var c=t[u];if(!(u==="value"&&"defaultValue"in t&&c==null||he&&u==="children"&&n==="noscript"||u==="class"||u==="className")){var a=u.toLowerCase();u==="defaultValue"&&"value"in t&&t.value==null?u="value":u==="download"&&c===!0?c="":a==="translate"&&c==="no"?c=!1:a[0]==="o"&&a[1]==="n"?a==="ondoubleclick"?u="ondblclick":a!=="onchange"||n!=="input"&&n!=="textarea"||ve(t.type)?a==="onfocus"?u="onfocusin":a==="onblur"?u="onfocusout":se.test(u)&&(u=a):a=u="oninput":r&&fe.test(u)?u=u.replace(pe,"-$&").toLowerCase():c===null&&(c=void 0),a==="oninput"&&o[u=a]&&(u="oninputCapture"),o[u]=c}}n=="select"&&o.multiple&&Array.isArray(o.value)&&(o.value=C(t.children).forEach(function(l){l.props.selected=o.value.indexOf(l.props.value)!=-1})),n=="select"&&o.defaultValue!=null&&(o.value=C(t.children).forEach(function(l){l.props.selected=o.multiple?o.defaultValue.indexOf(l.props.value)!=-1:o.defaultValue==l.props.value})),t.class&&!t.className?(o.class=t.class,Object.defineProperty(o,"className",be)):t.className&&(o.class=o.className=t.className),e.props=o})(_),_.$$typeof=Q_,x_&&x_(_)};var S_=p.__r;p.__r=function(_){S_&&S_(_),_.__c};var H_=p.diffed;p.diffed=function(_){H_&&H_(_);var e=_.props,t=_.__e;t!=null&&_.type==="textarea"&&"value"in e&&e.value!==t.value&&(t.value=e.value==null?"":e.value)};function ke(_){return!!_&&_.$$typeof===Q_}function Ee(_){return ke(_)?te.apply(null,arguments):_}function $e(_){return!!_.__k&&(L_(null,_),!0)}var Re=U;function We(_){return{render:function(e){de(e,_)},unmount:function(){$e(_)}}}export{Ce as A,Ne as C,Ae as D,Ue as I,Te as O,we as R,q_ as T,Ee as _,P as a,j_ as b,X as c,re as d,We as e,Re as f,He as g,oe as h,U as k,ke as m,xe as q,Pe as u,Se as x,ue as y};